/*
 *             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 _0x19b45e,isVisible,Rect,Collection,FocusTracker,KeystrokeHandler,first,logWarning,logError,toArray as toArray$1,EmitterMixin,scrollViewportToShowTarget,scrollAncestorsToShowTarget,ResizeObserver as _0x5be1d1,_isMotionReduced,getConstrainedViewportRect,DomEmitterMixin,diff as _0x366723,priorities,getEnvKeystrokeText,toUnit,keyCodes,diffToChanges,collectStylesheets,createElement,env,version as _0xc2c9c,ElementReplacer,formatHtml,insertToPriorityArray,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,LabelView,CssTransitionDisablerMixin,ToolbarSeparatorView,normalizeToolbarConfig,BoxedEditorUIView,StickyPanelView,normalizeColorOptions,ListSeparatorView}from'ckeditor5';import{IconCopy,IconCheck,IconError,IconSubmit,IconAIHistory,IconMagicWand,IconRobotPencil,IconMaximize,IconMinimize,IconNotification,IconCancel,IconShowChangesOn,IconShowChangesOff,IconDocument,IconBoxWithCross,IconBoxWithCheck,IconBoxWithMarker,IconInfo,IconLoupe,IconStop,IconAIChat,IconPlus,IconPin,IconThreeHorizontalDots,IconChevronDown,IconChevronUp,IconOutdated,IconEye,IconEyeCrossedOut,IconChevronRight,IconAIReview as _0x358601,IconAITranslate as IconAITranslate$1,IconCaseChange,IconUndo,IconPencil,IconRemoveComment,IconThreeVerticalDots,IconAddComment,IconCommentsArchive,IconTableOfContents,IconExportPdf,IconExportWord,IconFootnote,IconListStyleDecimal,IconListStyleDecimalLeadingZero,IconListStyleLowerRoman,IconListStyleUpperRoman,IconListStyleLowerLatin,IconListStyleUpperLatin,IconPaintRoller,IconImportWord,IconLineHeight,IconMultiLevelList,IconWarning,IconInsertMergeField,IconPreviewMergeFields,IconArrowDown,IconArrowUp,IconHistory,IconUser,IconQuote,IconBulletedList,IconCodeBlock,IconBrowseFiles as _0x198b9b,IconEmoji,IconHeading1,IconHeading2,IconHeading3,IconHeading4,IconHeading5,IconHeading6,IconHorizontalLine,IconHtml,IconIndent,IconTable,IconNumberedList,IconOutdent,IconParagraph,IconTodoList,IconPlay,IconSource,IconTemplateGeneric,IconTemplate,IconTrackChanges,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,ViewContainerElement,ViewAttributeElement,ViewEmptyElement,ViewRawElement,ViewUIElement,ViewDocumentFragment,ViewText,ViewElement,ModelElement,ModelLivePosition}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{PasteFromOfficeMSWordNormalizer,parsePasteOfficeHtml}from'ckeditor5';import{MarkdownGfmMdToHtml}from'ckeditor5';import{IconWeb,IconClose,IconDocument as IconDocument$1,IconSelection,IconFileUpload,IconLink,IconBulb,IconAI,IconPreviousArrow,IconCheck as _0x4fdbbd,IconDocumentOutline,IconPaperClip,IconBrowseFiles,IconDropdownArrow,IconAIChat as IconAIChat$1,IconAIReview,IconAITranslate,IconAIAskAI,IconThumbUp,IconThumbDown,IconCopy as _0x48f9b6,IconShowChangesOff as _0x3e0152,IconShowChangesOn as _0x10f0e7,IconAIQuickActions,IconAIChatCommands,IconAIImproveWriting,IconAIContinueWriting,IconAIGrammarCheck,IconAIAdjustLength,IconAIChangeTone,IconAIOther,IconRefresh,IconNextArrow}from'ckeditor5';import{EmitterMixin as EmitterMixin$1,ObservableMixin as _0x30b1b9,priorities as priorities$1,global as _0x1bdc69,Collection as Collection$1}from'ckeditor5';import{FileRepository}from'ckeditor5';const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';function normalizeCommandsConfig(_0x55190b,_0x3eafbe){const _0x146786=(0x0,_0x3eafbe['t'])('Other');return _0x55190b['length']?'groupId'in _0x55190b[0x0]?_0x55190b:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0x146786,'order':0x1/0x0,'commands':_0x55190b}]:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0x146786,'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:_0x4cd5c2}=this,_0x25e5b0=['ck-fake-ai-selection'];_0x4cd5c2['config']['get']('ai.assistant.useTheme')&&_0x25e5b0['push']('ck-ai-assistant-ui_theme'),_0x4cd5c2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':VISUAL_SELECTION_MARKER_NAME,'view':{'classes':_0x25e5b0,'priority':0xc}}),_0x4cd5c2['conversion']['for']('editingDowncast')['markerToElement']({'model':VISUAL_SELECTION_MARKER_NAME,'view':(_0x1cb5e5,{writer:_0x47236a})=>{if(!_0x1cb5e5['markerRange']['isCollapsed'])return null;const _0x414dcf=_0x47236a['createUIElement']('span');return _0x47236a['addClass'](['ck-fake-ai-selection','ck-fake-ai-selection_collapsed'],_0x414dcf),_0x414dcf;}});}['afterInit'](){checkLicense$j(this);}['showFakeVisualSelection'](){const _0x469e99=this['editor']['model'];_0x469e99['change'](_0x1bd611=>{const _0x36e29e=_0x469e99['document']['selection']['getRanges']();let _0x27a20a=0x0;for(const _0xb1f864 of _0x36e29e){const _0x393604=VISUAL_SELECTION_MARKER_NAME+':'+_0x27a20a;if(_0x469e99['markers']['has'](_0x393604))_0x1bd611['updateMarker'](_0x393604,{'range':_0xb1f864});else{if(_0xb1f864['start']['isAtEnd']){const _0x3590be=_0xb1f864['start']['getLastMatchingPosition'](({item:_0xd895f8})=>!_0x469e99['schema']['isContent'](_0xd895f8),{'boundaries':_0xb1f864});_0x1bd611['addMarker'](_0x393604,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1bd611['createRange'](_0x3590be,_0xb1f864['end'])});}else _0x1bd611['addMarker'](_0x393604,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xb1f864});}_0x27a20a++;}});}['hideFakeVisualSelection'](){const _0x1dddf7=this['editor']['model'],_0x2a1dc6=Array['from'](this['editor']['model']['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME));_0x2a1dc6['length']&&_0x1dddf7['change'](_0x122d3c=>{_0x2a1dc6['forEach'](_0x397482=>{_0x122d3c['removeMarker'](_0x397482);});});}['insertContent'](_0x2b83b,_0x57b211){const _0x2bcf52=this['_getAISelection'](),_0x53aa4c=_0x57b211||_0x2bcf52['getFirstRange']();this['editor']['model']['canEditAt'](_0x53aa4c)&&this['editor']['model']['change'](_0xa1fa9=>{this['hideFakeVisualSelection'](),_0x57b211||this['_resetContentOfSelectedTableCells'](_0xa1fa9,_0x2bcf52),this['_pasteHTMLUsingClipboard']({'insertAt':_0x53aa4c,'writer':_0xa1fa9,'html':_0x2b83b});});}['insertContentBelow'](_0x4968b6){const {model:_0x104039}=this['editor'],_0x2e40f0=this['_getAISelection']();_0x104039['change'](()=>{const _0xcc59da=this['_prepareTableInsertBelowPosition'](_0x4968b6,_0x2e40f0)||this['_getDefaultInsertBelowPosition'](_0x2e40f0);this['insertContent'](_0x4968b6,_0xcc59da);});}['_getAISelection'](){const _0x13b34b=this['editor']['model'],_0x2bacd1=Array['from'](_0x13b34b['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME))['map'](_0x1c5770=>_0x1c5770['getRange']());return _0x13b34b['createSelection'](_0x2bacd1);}['_pasteHTMLUsingClipboard']({writer:_0x11aaa3,html:_0xc95ada,insertAt:_0xdcaa13}){const {view:_0x137add}=this['editor']['editing'],_0x3d0c5b=this['editor']['plugins']['get'](ClipboardPipeline),_0x1dfe7c=new DomDataTransfer$1();_0x1dfe7c['setData']('text/html',_0xc95ada);const _0x150831=new ClipboardEvent('paste',{'clipboardData':_0x1dfe7c}),_0x521df0=new ViewDocumentDomEventData(_0x137add,_0x150831,{'dataTransfer':new ViewDataTransfer(_0x1dfe7c)});_0x11aaa3['setSelection'](_0xdcaa13);const _0x41fcc6=(_0x4b1e7f,_0x5b4e09)=>{_0x5b4e09['resultRange']&&_0x11aaa3['setSelection'](_0x5b4e09['resultRange']);};_0x3d0c5b['once']('contentInsertion',_0x41fcc6,{'priority':'lowest'}),_0x137add['document']['fire']('paste',_0x521df0),_0x3d0c5b['off']('contentInsertion',_0x41fcc6);}['_getDefaultInsertBelowPosition'](_0x59365b){const {model:_0x4c5496}=this['editor'],_0x1f6e0f=Array['from'](_0x59365b['getSelectedBlocks']());return _0x1f6e0f['length']?_0x4c5496['createPositionAfter'](_0x1f6e0f['pop']()):_0x59365b['getLastPosition']();}['_prepareTableInsertBelowPosition'](_0x447770,_0x2c80a9){const {model:_0x5dd828,plugins:_0x23849a}=this['editor'];if(_0x23849a['has']('TableUtils')){const _0x1887a2=_0x23849a['get']('TableUtils')['getSelectedTableCells'](_0x2c80a9);if(_0x1887a2['length']){const _0x37c41b=this['_getTableRowCountFromContent'](_0x447770),_0x139413=this['_createEmptyTableRows'](_0x1887a2,_0x37c41b);return _0x5dd828['createPositionAt'](_0x139413,0x0);}}return null;}['_getTableRowCountFromContent'](_0x40d366){const _0x11a5dd=this['editor']['plugins']['get']('TableUtils'),_0x5042e8=this['editor']['data']['parse'](_0x40d366),_0x4d5dd1=Array['from'](_0x5042e8['getChildren']())['filter'](_0x51baf5=>_0x51baf5['is']('element','table'));let _0x1f8d91=0x0;return _0x4d5dd1['forEach'](_0x4e9c8d=>{_0x1f8d91+=_0x11a5dd['getRows'](_0x4e9c8d);}),_0x1f8d91;}['_createEmptyTableRows'](_0x5f0706,_0x4cf822){const _0x301959=this['editor']['plugins']['get']('TableUtils'),_0x5b4a29=_0x301959['getRowIndexes'](_0x5f0706),_0x229bce=_0x301959['getColumnIndexes'](_0x5f0706),_0xb58955=_0x5b4a29['last']+0x1,_0x215c63=_0x229bce['first'],_0x185025=_0x5f0706[0x0]['findAncestor']('table');for(let _0x49c0c5=0x0;_0x49c0c5<_0x4cf822;_0x49c0c5++)_0x301959['insertRows'](_0x185025,{'at':_0xb58955});return _0x185025['getChild'](_0xb58955)['getChild'](_0x215c63);}['_resetContentOfSelectedTableCells'](_0x4e1453,_0x330eb0){const {plugins:_0x1f583a}=this['editor'],{model:_0xc0b275}=_0x4e1453;if(!_0x1f583a['has']('TableUtils'))return;_0x1f583a['get']('TableUtils')['getSelectedTableCells'](_0x330eb0)['length']&&_0xc0b275['deleteContent'](_0x330eb0);}}async function checkLicense$j(_0x231206){const _0xc04d93=_0x1bbb5b([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]),_0x48a52b=window[_0x1bbb5b([0x44,0x61,0x74,0x65])][_0x1bbb5b([0x6e,0x6f,0x77])](),_0x30432c=_0x231206[_0x1bbb5b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e839d=new window[(_0x1bbb5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f491=>{_0x30432c[_0x1bbb5b([0x6f,0x6e,0x63,0x65])](_0x1bbb5b([0x72,0x65,0x61,0x64,0x79]),_0x3f491);}),_0x279959={[_0x1bbb5b([0x6b,0x74,0x79])]:_0x1bbb5b([0x45,0x43]),[_0x1bbb5b([0x75,0x73,0x65])]:_0x1bbb5b([0x73,0x69,0x67]),[_0x1bbb5b([0x63,0x72,0x76])]:_0x1bbb5b([0x50,0x2d,0x32,0x35,0x36]),[_0x1bbb5b([0x78])]:_0x1bbb5b([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]),[_0x1bbb5b([0x79])]:_0x1bbb5b([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]),[_0x1bbb5b([0x61,0x6c,0x67])]:_0x1bbb5b([0x45,0x53,0x32,0x35,0x36])},_0x4d99bf=_0x30432c[_0x1bbb5b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1bbb5b([0x67,0x65,0x74])](_0x1bbb5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x34e1bc=await(async function(){let _0x5c3520,_0xe87a5=null,_0x5a8bc1=null;try{if(_0x4d99bf==_0x1bbb5b([0x47,0x50,0x4c]))return _0x1bbb5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c3520=(function(){const _0x44ea61=_0x4d99bf[_0x1bbb5b([0x73,0x70,0x6c,0x69,0x74])](_0x1bbb5b([0x2e]));if(0x3!=_0x44ea61[_0x1bbb5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3748d3=_0x44ea61[0x1];return _0x3841af(_0x3748d3);function _0x3841af(_0x342da0){const _0x29001f=_0x2ca0c7(_0x342da0);return _0x29001f&&_0x57705f()?_0x29001f:null;function _0x57705f(){const _0x439002=_0x29001f[_0x1bbb5b([0x6a,0x74,0x69])],_0x38d54c=window[_0x1bbb5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x439002[_0x1bbb5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x439002[_0x1bbb5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a84d0={..._0x29001f,[_0x1bbb5b([0x6a,0x74,0x69])]:_0x439002[_0x1bbb5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x439002[_0x1bbb5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a84d0[_0x1bbb5b([0x76,0x63])],_0x279204(_0x4a84d0)==_0x38d54c;}}}()),!_0x5c3520)return _0x1bbb5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x5c3520[_0x1bbb5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a8bc1=function(_0x1a16f3,_0x564f29){return new window[(_0x1bbb5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26339a=>{if(_0x544732())return _0x26339a(_0x1bbb5b([0x56,0x61,0x6c,0x69,0x64]));_0x41f299(),_0x30432c[_0x1bbb5b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1bbb5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15c209=!0x1;const _0xeeae90=uid();function _0x2a2cf1(_0x4822f8){return!!_0x4822f8&&(typeof _0x4822f8===_0x1bbb5b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4822f8===_0x1bbb5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4822f8[_0x1bbb5b([0x74,0x68,0x65,0x6e])]===_0x1bbb5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4822f8[_0x1bbb5b([0x63,0x61,0x74,0x63,0x68])]===_0x1bbb5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b215a(_0x381a06){_0x51ff75(_0x381a06)[_0x1bbb5b([0x74,0x68,0x65,0x6e])](_0x340565=>{if(!_0x340565||_0x340565[_0x1bbb5b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1bbb5b([0x6f,0x6b]))return _0x1bbb5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2bc8f2(_0x279204(_0xeeae90+_0x564f29))!=_0x340565[_0x1bbb5b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1bbb5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1bbb5b([0x56,0x61,0x6c,0x69,0x64]);})[_0x1bbb5b([0x74,0x68,0x65,0x6e])](_0x38f9ef=>(_0x5a8dde(),_0x38f9ef),()=>{const _0x576d26=_0x365f4c();return null==_0x576d26?(_0x5a8dde(),_0x1bbb5b([0x56,0x61,0x6c,0x69,0x64])):_0x1bbb5b(_0x48a52b-_0x576d26>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1bbb5b([0x74,0x68,0x65,0x6e])](_0x26339a)[_0x1bbb5b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26339a(_0x1bbb5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47a454=0x36ee80;function _0x5a8dde(){const _0x5264f6=_0x1bbb5b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2bc8f2(_0x279204(_0x1a16f3)),_0x434695=_0x5baa95(_0x2bc8f2(window[_0x1bbb5b([0x4d,0x61,0x74,0x68])][_0x1bbb5b([0x63,0x65,0x69,0x6c])](_0x48a52b/_0x47a454)));window[_0x1bbb5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bbb5b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5264f6,_0x434695);}function _0x365f4c(){const _0x437379=_0x1bbb5b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2bc8f2(_0x279204(_0x1a16f3)),_0x59c03e=window[_0x1bbb5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bbb5b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x437379);return _0x59c03e?window[_0x1bbb5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5baa95(_0x59c03e),0x10)*_0x47a454:null;}function _0x51ff75(_0x541732){return new window[(_0x1bbb5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4364c6,_0x2b25a8)=>{_0x541732[_0x1bbb5b([0x74,0x68,0x65,0x6e])](_0x4364c6,_0x2b25a8),window[_0x1bbb5b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2b25a8,0x1d4c0);});}}_0x30432c[_0x1bbb5b([0x6f,0x6e])](_0x1bbb5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x24ce49,_0x3fe963)=>{if(_0x3fe963[0x0]!=_0x1a16f3)return _0x26339a(_0x1bbb5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fe963[0x1]={..._0x3fe963[0x1],[_0x1bbb5b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xeeae90};},{[_0x1bbb5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bbb5b([0x68,0x69,0x67,0x68])}),_0x30432c[_0x1bbb5b([0x6f,0x6e])](_0x1bbb5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1de9fa=>{_0x2a2cf1(_0x1de9fa[_0x1bbb5b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15c209=!0x0,_0x3b215a(_0x1de9fa[_0x1bbb5b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1bbb5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bbb5b([0x6c,0x6f,0x77])}),_0x1e839d[_0x1bbb5b([0x74,0x68,0x65,0x6e])](()=>{_0x15c209||_0x26339a(_0x1bbb5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x544732(){return _0x30432c[_0x1bbb5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bbb5b([0x76,0x69,0x65,0x77])][_0x1bbb5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1bbb5b([0x61,0x75,0x74,0x6f]);}function _0x41f299(){_0x30432c[_0x1bbb5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bbb5b([0x76,0x69,0x65,0x77])][_0x1bbb5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1bbb5b([0x61,0x75,0x74,0x6f]);}}(_0x5c3520[_0x1bbb5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c3520[_0x1bbb5b([0x6a,0x74,0x69])]));const _0x49ac79=await(async function(){let _0x5e0b09=!0x0;try{const _0x3d68c8=_0x4d99bf[_0x1bbb5b([0x73,0x70,0x6c,0x69,0x74])](_0x1bbb5b([0x2e])),[_0x11bec9,_0x2e545c,_0x1b1714]=_0x3d68c8;return _0x2e6233(_0x11bec9),await _0x225e9c(_0x11bec9,_0x2e545c,_0x1b1714),_0x5e0b09;}catch{return!0x1;}function _0x2e6233(_0x22fed3){const _0x4f3489=_0x2ca0c7(_0x22fed3);_0x4f3489&&_0x4f3489[_0x1bbb5b([0x61,0x6c,0x67])]==_0x1bbb5b([0x45,0x53,0x32,0x35,0x36])||(_0x5e0b09=!0x1);}async function _0x225e9c(_0x2ac4c7,_0x4eaaba,_0x253609){const _0x340900=window[_0x1bbb5b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1bbb5b([0x66,0x72,0x6f,0x6d])](_0x5df86e(_0x253609),_0x14fa5f=>_0x14fa5f[_0x1bbb5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x51560d=new window[(_0x1bbb5b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1bbb5b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ac4c7+_0x1bbb5b([0x2e])+_0x4eaaba),_0x169f35=window[_0x1bbb5b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1bbb5b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x169f35)return;const _0x4c5888=await _0x169f35[_0x1bbb5b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1bbb5b([0x6a,0x77,0x6b]),_0x279959,{[_0x1bbb5b([0x6e,0x61,0x6d,0x65])]:_0x1bbb5b([0x45,0x43,0x44,0x53,0x41]),[_0x1bbb5b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1bbb5b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1bbb5b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x169f35[_0x1bbb5b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1bbb5b([0x6e,0x61,0x6d,0x65])]:_0x1bbb5b([0x45,0x43,0x44,0x53,0x41]),[_0x1bbb5b([0x68,0x61,0x73,0x68])]:{[_0x1bbb5b([0x6e,0x61,0x6d,0x65])]:_0x1bbb5b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c5888,_0x340900,_0x51560d)||(_0x5e0b09=!0x1);}}());return _0x49ac79?(function(){const _0x353cea=_0x5c3520[_0x1bbb5b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x353cea)return!0x1;if(_0x353cea[_0x1bbb5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bbb5b([0x2a])))return!0x0;if(_0x353cea[_0x1bbb5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bbb5b([0x41,0x49])))return!0x0;return!0x1;}())?(function(){const _0x37d538=[_0x1bbb5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1bbb5b([0x74,0x72,0x69,0x61,0x6c])][_0x1bbb5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c3520[_0x1bbb5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48a52b/0x3e8:0x69d59a80;return _0x5c3520[_0x1bbb5b([0x65,0x78,0x70])]<_0x37d538;}())?_0x1bbb5b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1ec8fc=_0x5c3520[_0x1bbb5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ec8fc||0x0==_0x1ec8fc[_0x1bbb5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x28ba93}=new URL(window[_0x1bbb5b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1ec8fc[_0x1bbb5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28ba93))return!0x0;const _0x4fc16a=_0x28ba93[_0x1bbb5b([0x73,0x70,0x6c,0x69,0x74])](_0x1bbb5b([0x2e]));return _0x1ec8fc[_0x1bbb5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfffd7f=>_0xfffd7f[_0x1bbb5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bbb5b([0x2a])))[_0x1bbb5b([0x6d,0x61,0x70])](_0x516445=>_0x516445[_0x1bbb5b([0x73,0x70,0x6c,0x69,0x74])](_0x1bbb5b([0x2e])))[_0x1bbb5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d1a04=>_0x1d1a04[_0x1bbb5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4fc16a[_0x1bbb5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bbb5b([0x6d,0x61,0x70])](_0x406c6d=>Array(_0x4fc16a[_0x1bbb5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x406c6d[_0x1bbb5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bbb5b([0x66,0x69,0x6c,0x6c])](_0x406c6d[0x0]===_0x1bbb5b([0x2a])?_0x1bbb5b([0x2a]):'')[_0x1bbb5b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x406c6d))[_0x1bbb5b([0x73,0x6f,0x6d,0x65])](_0x206a3e=>_0x4fc16a[_0x1bbb5b([0x65,0x76,0x65,0x72,0x79])]((_0x5ac8f7,_0x1e5522)=>_0x206a3e[_0x1e5522]===_0x5ac8f7||_0x206a3e[_0x1e5522]===_0x1bbb5b([0x2a])));}())?(_0x5c3520[_0x1bbb5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1bbb5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe87a5=function(_0x2e9058){const _0x55f0c3=new window[(_0x1bbb5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2024e6=>setTimeout(_0x2024e6,0x93ecc)),_0xaf03a9=_0x1e839d[_0x1bbb5b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1bbb5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d044a=>{let _0x155c33=0x0;_0x30432c[_0x1bbb5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bbb5b([0x6f,0x6e])](_0x1bbb5b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x493e0b,_0x4341d6)=>{_0x4341d6[0x0][_0x1bbb5b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x155c33++,0x5e8==_0x155c33&&(_0x3d044a(),_0x493e0b[_0x1bbb5b([0x6f,0x66,0x66])]());});})),_0x348260=[_0x55f0c3,_0xaf03a9];return window[_0x1bbb5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1bbb5b([0x72,0x61,0x63,0x65])](_0x348260)[_0x1bbb5b([0x74,0x68,0x65,0x6e])](()=>_0x2e9058);}(_0x1bbb5b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0xe87a5&&_0x5a8bc1)return new window[(_0x1bbb5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45fb8a,_0x1a8f48)=>{_0xe87a5[_0x1bbb5b([0x74,0x68,0x65,0x6e])](_0x45fb8a,_0x1a8f48),_0x5a8bc1[_0x1bbb5b([0x74,0x68,0x65,0x6e])](_0x25a193=>{_0x25a193!=_0x1bbb5b([0x56,0x61,0x6c,0x69,0x64])&&_0x45fb8a(_0x25a193);},_0x1a8f48);});return _0xe87a5||_0x5a8bc1||_0x1bbb5b([0x56,0x61,0x6c,0x69,0x64]);}())):_0x1bbb5b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1bbb5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1bbb5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1bbb5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2ca0c7(_0xac4110){return _0xac4110[_0x1bbb5b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1bbb5b([0x65,0x79]))?JSON[_0x1bbb5b([0x70,0x61,0x72,0x73,0x65])](_0x5df86e(_0xac4110)):null;}function _0x5df86e(_0x49c0da){return window[_0x1bbb5b([0x61,0x74,0x6f,0x62])](_0x49c0da[_0x1bbb5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1bbb5b([0x2b]))[_0x1bbb5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1bbb5b([0x2f])));}function _0x279204(_0x4e5d39){let _0x473c71=0x1505;function _0x256c0d(_0x131928){for(let _0x2da653=0x0;_0x2da653<_0x131928[_0x1bbb5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2da653++){const _0x40b42e=_0x131928[_0x1bbb5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2da653);_0x473c71=(_0x473c71<<0x5)+_0x473c71+_0x40b42e,_0x473c71&=_0x473c71;}}return function _0x500ddb(_0x709d77){Array[_0x1bbb5b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x709d77)?_0x709d77[_0x1bbb5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x500ddb):_0x709d77&&typeof _0x709d77==_0x1bbb5b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1bbb5b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x709d77)[_0x1bbb5b([0x73,0x6f,0x72,0x74])]()[_0x1bbb5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x507d85,_0x39ebbe])=>{_0x256c0d(_0x507d85),_0x500ddb(_0x39ebbe);}):_0x256c0d(window[_0x1bbb5b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x709d77));}(_0x4e5d39),_0x473c71>>>0x0;}function _0x2bc8f2(_0x2aabd5){return _0x2aabd5[_0x1bbb5b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1bbb5b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1bbb5b([0x30]));}function _0x5baa95(_0x27ba2d){return _0x27ba2d[_0x1bbb5b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1bbb5b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1bbb5b([0x6a,0x6f,0x69,0x6e])]('');}function _0x24979f(){}function _0x1bbb5b(_0x41f2a3){return _0x41f2a3['map'](_0x5b927a=>String['fromCharCode'](_0x5b927a))['join']('');}!function(_0x49c6cb){const _0x10d93a=(function(){const _0x371bfb=window[_0x1bbb5b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1bbb5b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1bbb5b([0x6e,0x6f,0x77])]())[_0x1bbb5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1bbb5b([0x2e]),'');let _0x3b7cd7=_0x1bbb5b([0x6e]);for(let _0x45cc10=0x0;_0x45cc10<_0x371bfb[_0x1bbb5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45cc10+=0x2){let _0xfb7c45=window[_0x1bbb5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x371bfb[_0x1bbb5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45cc10,_0x45cc10+0x2));_0xfb7c45>=_0xc04d93[_0x1bbb5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfb7c45-=_0xc04d93[_0x1bbb5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b7cd7+=_0xc04d93[_0xfb7c45];}return _0x3b7cd7;}());_0x30432c[_0x10d93a]=_0x1bbb5b([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49c6cb,_0x49c6cb!=_0x1bbb5b([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x1e839d,_0x30432c[_0x1bbb5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bbb5b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24979f,_0x30432c[_0x1bbb5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bbb5b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24979f,_0x30432c[_0x1bbb5b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1bbb5b([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x34e1bc);}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(_0x36886c){super(_0x36886c),this['name']='AIRequestError';}}function getTranslation$j(_0x35c43e,_0xe263f6,_0x38974d){const t=_0x35c43e['t'];switch(_0xe263f6){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',_0x38974d);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x38974d);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'},_0x38974d);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 _0xe263f6;}}class ShowAIAssistantCommand extends Command{['_commandDefinitions'];constructor(_0x364acf,_0x4ded1f){super(_0x364acf),this['_commandDefinitions']=_0x4ded1f,this['set']('enabledCommandsIds',[]),this['on']('change:_hasContext',(_0x109651,_0x2a51d7,_0xe946f2)=>{this['isEnabled']&&(this['enabledCommandsIds']=_getEnabledCommands(this['_commandDefinitions'],_0xe946f2));}),this['set']('_hasContext',!0x1),this['on']('change:isEnabled',(_0xf3f816,_0x48c50e,_0x25a636)=>{this['enabledCommandsIds']=_0x25a636?_getEnabledCommands(this['_commandDefinitions'],this['_hasContext']):[];});}['refresh'](){const _0x23b515=this['editor']['model'];this['_hasContext']=_isContextAvailable(_0x23b515);const _0x222958=_0x23b515['document']['selection'],_0x404f16=this['editor']['config']['get']('ai.assistant.disabledElements');for(const _0x3e6e29 of _0x222958['getRanges']())for(const _0x149552 of _0x3e6e29['getItems']())if(_0x149552['is']('element')&&_0x404f16['includes'](_0x149552['name']))return void(this['isEnabled']=!0x1);this['isEnabled']=!0x0;}['execute'](_0x54a07c='',_0x2d7f60='',_0x4748b5='custom'){this['editor']['plugins']['get'](AIAssistantUI)['showUI'](_0x54a07c,_0x2d7f60,_0x4748b5);}}function _isContextAvailable(_0x2be108){const _0x286ab9=_0x2be108['document']['selection'];return _0x286ab9['isCollapsed']?0x0!==[..._0x286ab9['getSelectedBlocks']()]['length']&&![..._0x286ab9['getSelectedBlocks']()][0x0]['isEmpty']:!!_0x2be108['hasContent'](_0x286ab9['getFirstRange']());}function _getEnabledCommands(_0xd2787e,_0x2e6fa7){const _0x215d58=new Set();for(const _0x113896 of _0xd2787e['values']())(_0x2e6fa7||!0x1===_0x113896['requiresContent'])&&_0x215d58['add'](_0x113896['id']);return Array['from'](_0x215d58);}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(_0x31b32e,_0x12e2f1,_0xc685be){super(),this['editor']=_0x31b32e,this['textAdapter']=_0x12e2f1,this['_sanitizationContainer']=document['createElement']('div'),this['_domParser']=new DOMParser(),this['_xmlSerializer']=new XMLSerializer(),this['view']=_0xc685be,this['set']({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on']('set:currentContext',(_0x1d1d35,_0x40d7d9,_0x1d2a43)=>{this['view']['value']=this['_sanitizeHTML'](_0x1d2a43);}),this['listenTo'](this['view'],'submitPrompt',(_0x48f0d6,_0x50f2ad)=>{const _0x25c9fd=this['currentContext']||this['initialContext'];this['_handleQuery'](_0x50f2ad,_0x25c9fd,'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:_0x394376,query:_0x517f84,htmlContent:_0x432bc8,label:_0x319287,mainActionLabel:_0x1a1e1b}){this['view']['prompt']=_0x319287,this['view']['mainAction']=_0x1a1e1b,this['initialContext']=_0x432bc8,_0x517f84&&(this['view']['isRendered']?this['_handleQuery'](_0x517f84,_0x432bc8,_0x394376,_0x319287):this['view']['once']('render',()=>{this['_handleQuery'](_0x517f84,_0x432bc8,_0x394376,_0x319287);}));}['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'](_0x2f9f85,_0x3db214,_0x236d5d,_0x53796e){return this['isProcessing']=!0x0,this['view']['startProcessing'](),this['previousContext']=_0x3db214,this['previousQuery']=_0x2f9f85,this['previousLabel']=_0x53796e||_0x2f9f85,this['previousActionId']=_0x236d5d,new Promise(_0x54c4a0=>{this['textAdapter']['makeRequest']({'query':_0x2f9f85,'context':_0x3db214,'onData':_0x411f84=>{this['currentResponse']=_0x411f84,this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse']);},'actionId':_0x236d5d})['then'](()=>{!this['currentContext']&&this['currentResponse']&&(this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse'],!0x0));})['catch'](_0x2dc10e=>{_0x2dc10e instanceof AIRequestError?this['view']['handleError'](_0x2dc10e['message']):this['view']['handleError'](),_0x54c4a0();})['finally'](()=>{this['stopProcessing'](),_0x54c4a0();});});}['_parseAndNormalizeContent'](_0x26e289,_0x5d0421=!0x1){const _0x5325fd=ALL_UNTIL_FIRST_HTML_REGEX['exec'](_0x26e289);_0x26e289=_0x5325fd?_0x26e289['substring'](_0x5325fd[0x1]['length']):_0x26e289['length']<MIN_RESPONSE_LENGTH_TO_FIRST_HTML&&!_0x5d0421?'':this['_stripMarkdownSyntax'](_0x26e289);const _0x2312f2=this['_domParser']['parseFromString'](_0x26e289,'text/html');if(_0x5325fd){const _0x3372a7=Array['from'](_0x2312f2['body']['childNodes']);_0x3372a7['reverse']();for(const _0x279b7d of _0x3372a7){if(_0x279b7d['nodeType']==Node['ELEMENT_NODE'])break;_0x279b7d['remove']();}}const _0x45862f=this['editor']['data']['processor']['toView'](this['_xmlSerializer']['serializeToString'](_0x2312f2['body']));this['_isH1TagSupportEnabled']()||this['_normalizeResponseHeadings'](_0x45862f);const _0x1e9a92=this['editor']['config']['get']('ai.assistant.preserveComments'),_0x3b8155=this['editor']['data']['toModel'](_0x45862f);return _0x1e9a92||_0x3b8155['markers']['clear'](),this['editor']['data']['stringify'](_0x3b8155);}['_normalizeResponseHeadings'](_0x1133da){const _0x1e0bc4=new ViewUpcastWriter(this['editor']['editing']['view']['document']),_0xc81981=new Matcher({'name':/^h[1-5]$/}),_0x104f38=[];let _0x263349=!0x1;for(const _0x45a3c6 of _0x1133da)_0x45a3c6['is']('element')&&_0xc81981['match'](_0x45a3c6)&&(_0x104f38['push'](_0x45a3c6),'h1'==_0x45a3c6['name']&&(_0x263349=!0x0));if(_0x263349){for(const _0x9621bc of _0x104f38)_0x1e0bc4['rename']('h'+(parseInt(_0x9621bc['name'][0x1])+0x1),_0x9621bc);}}['_isH1TagSupportEnabled'](){const {data:_0x3b23c4,editing:_0x17e33e}=this['editor'],_0x3c2bfa=_0x3b23c4['htmlProcessor']['toView']('<h1></h1>'),_0x900e91=_0x3b23c4['toView'](_0x3b23c4['toModel'](_0x3c2bfa));return!!_0x17e33e['view']['domConverter']['viewToDom'](_0x900e91)['querySelector']('h1');}['_sanitizeHTML'](_0x5933a5){return this['editor']['editing']['view']['domConverter']['setContentOf'](this['_sanitizationContainer'],_0x5933a5),this['_sanitizationContainer']['innerHTML'];}['_stripMarkdownSyntax'](_0x32a0a4){const _0x46dae3=_0x32a0a4['trim']();return _0x46dae3['startsWith']('```html')?_0x46dae3['endsWith']('```')?_0x46dae3['substring'](0x7,_0x46dae3['length']-0x3):_0x46dae3['substring'](0x7):_0x32a0a4;}}const AIFormToolbarViewMainActionLabel={'REPLACE':'replace','INSERT':'insert'};class AIFormToolbarView extends ToolbarView{constructor(_0x488199){super(_0x488199),this['set']('isVisible',!0x1),this['set']('mainAction',AIFormToolbarViewMainActionLabel['REPLACE']),this['replaceButton']=this['_createButton']('','ck-button-action'),this['replaceButton']['bind']('label')['to'](this,'mainAction',_0x131ad9=>getTranslation$j(_0x488199,'AI_'+_0x131ad9['toUpperCase']()+'_CONTENT')),this['insertButton']=this['_createButton'](getTranslation$j(_0x488199,'Insert\x20below')),this['tryAgainButton']=this['_createButton'](getTranslation$j(_0x488199,'Try\x20again')),this['stopButton']=this['_createButton'](getTranslation$j(_0x488199,'Stop'));const _0x4e58f4=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-form__toolbar',_0x4e58f4['if']('isVisible','ck-hidden',_0x841dff=>!_0x841dff)]}}),this['items']['addMany']([this['replaceButton'],this['insertButton'],this['tryAgainButton'],this['stopButton']]);}['_createButton'](_0x248ab9,_0xca2e1b){const _0x1d5e29=new ButtonView(this['locale']);return _0x1d5e29['set']({'label':_0x248ab9,'class':_0xca2e1b||'','isVisible':!0x0,'withText':!0x0}),_0x1d5e29;}}class AIFormContentArea extends View{['contentFieldView'];['copyButtonView'];constructor(_0x95606,_0x5382f2=''){super(_0x95606),this['set']({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0xcaca14=this['bindTemplate'];this['contentFieldView']=new ContentFieldView(_0x95606,_0x5382f2),this['copyButtonView']=this['_createCopyButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area-wrapper',_0xcaca14['if']('isVisible','ck-hidden',_0x1b3eec=>!_0x1b3eec)],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area',_0xcaca14['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 _0x725b8=!0x1;this['on']('change:value',(_0x7b2a2a,_0x18743c,_0x56bd95)=>{const _0x1d6932=!this['contentFieldView']['element']['querySelector']('.ck-ai-form__loader');this['contentFieldView']['setContent'](_0x56bd95),this['isProcessing']&&_0x1d6932&&!_0x725b8&&this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':'smooth'});}),this['on']('change:isProcessing',(_0x138347,_0x55aa47,_0x4891b8)=>{_0x725b8=!0x1,_0x4891b8?(this['value']=null,this['contentFieldView']['appendLoader']()):this['value']||this['contentFieldView']['setContent']('');}),this['listenTo'](this['element'],'wheel',()=>{_0x725b8=!0x0;}),this['listenTo'](this['element'],'mousedown',()=>{_0x725b8=!0x0;});}['focus'](){this['element']['focus']();}['_createCopyButton'](){const _0x3053fc=this['locale'],_0x379f25=new ButtonView(this['locale']),_0x4d8edc='ck-ai-form__copy-button';return _0x379f25['set']({'label':getTranslation$j(_0x3053fc,'Copy'),'icon':IconCopy,'class':_0x4d8edc,'tooltip':!0x0}),_0x379f25['bind']('isVisible')['to'](this,'value',_0x4b4081=>!!_0x4b4081),_0x379f25['bind']('isEnabled')['to'](this,'isProcessing',_0x567972=>!_0x567972),_0x379f25['on']('execute',()=>{this['_copyHTMLToClipboard'](this['contentFieldView']['element']),_0x379f25['icon']=IconCheck,_0x379f25['class']=_0x4d8edc+'\x20ck-ai-form__copy-button--copied',this['focus'](),setTimeout(()=>{_0x379f25['icon']=IconCopy,_0x379f25['class']=_0x4d8edc;},0x3e8);}),_0x379f25;}['_copyHTMLToClipboard'](_0x371cfd){const {window:_0x527ef2,document:_0x4f6089}=_0x19b45e;if(_0x527ef2['ClipboardItem']){const {Blob:_0x507c9d,ClipboardItem:_0x39d59c}=_0x527ef2,_0x4abd75=[new _0x39d59c({'text/html':new _0x507c9d([_0x371cfd['innerHTML']],{'type':'text/html'}),'text/plain':new _0x507c9d([_0x371cfd['textContent']||''],{'type':'text/plain'})})];navigator['clipboard']['write'](_0x4abd75);}else{const _0x55f0f7=_0x4f6089['createElement']('div');_0x55f0f7['style']['position']='absolute',_0x55f0f7['style']['left']='-9999px',_0x55f0f7['innerHTML']='<span>[</span>'+_0x371cfd['innerHTML']+'<span>]</span>',_0x4f6089['body']['appendChild'](_0x55f0f7);const _0x4e29e6=_0x4f6089['createRange']();_0x4e29e6['setStartAfter'](_0x55f0f7['firstElementChild']),_0x4e29e6['setEndBefore'](_0x55f0f7['lastElementChild']);const _0x2fb11d=_0x527ef2['getSelection']();_0x2fb11d['removeAllRanges'](),_0x2fb11d['addRange'](_0x4e29e6),_0x4f6089['execCommand']('copy'),_0x55f0f7['remove']();}}}class ContentFieldView extends View{constructor(_0x477f0b,_0x14d62e=''){super(_0x477f0b),this['loaderView']=this['_createLoader'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content',_0x14d62e,'ck-reset_all-excluded','ck-ai-form__content-field']}});}['setContent'](_0x248363){this['element']['innerHTML']=_0x248363;}['appendLoader'](){this['element']['appendChild'](this['loaderView']['element']);}['_createLoader'](){const _0x17b3d4=new View(),_0x25a376=this['locale'],_0x350b3c=new SpinnerView();return _0x350b3c['isVisible']=!0x0,_0x17b3d4['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__loader']},'children':[_0x350b3c,{'text':getTranslation$j(_0x25a376,'AI\x20is\x20writing...')}]}),_0x17b3d4['render'](),_0x17b3d4;}}class AIFormErrorView extends View{constructor(_0x494009,_0xb248e9=''){super(_0x494009);const _0x2677cb=new IconView(),_0x18fbf4=this['bindTemplate'];this['set']('text',_0xb248e9),_0x2677cb['content']=IconError,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__error']},'children':[_0x2677cb,{'text':_0x18fbf4['to']('text')}]});}}class AIFormPromptView extends AutocompleteView{['submitButtonView'];['showHistoryButtonView'];constructor(_0x21085d,_0x3c3764){super(_0x21085d,_0x3c3764),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',(_0x1f5020,_0x5054cf)=>{_0x1f5020['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x5054cf());});}['_createSubmitButton'](){const _0xcfb84f=new ButtonView(this['locale']),_0x27ab90=this['locale'];return _0xcfb84f['set']({'icon':IconSubmit,'label':getTranslation$j(_0x27ab90,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0xcfb84f['on']('execute',()=>{this['submit']();}),_0xcfb84f['bind']('isEnabled')['to'](this['queryView']['fieldView'],'isEmpty',this,'isEnabled',(_0x528684,_0x159fd7)=>!_0x528684&&_0x159fd7),_0xcfb84f;}['_createShowHistoryButton'](){const _0x5c9725=new ButtonView(this['locale']),_0x463cd9=this['resultsView'],_0x5e3498=this['locale'];_0x5c9725['set']({'label':getTranslation$j(_0x5e3498,'History'),'withText':!0x1,'icon':IconAIHistory,'tooltip':!0x0,'tooltipPosition':'sw','class':'ck-ai-form__toggle-history'}),_0x5c9725['bind']('isOn')['to'](_0x463cd9,'isVisible'),_0x5c9725['bind']('isEnabled')['to'](this,'isEnabled'),_0x5c9725['on']('execute',()=>{_0x463cd9['isVisible']=!_0x463cd9['isVisible'],_0x463cd9['isVisible']?this['filteredView']['focus']():this['focus']();});const _0x28daa6=()=>{_0x19b45e['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x5e04d5=new Rect(this['queryView']['fieldView']['element']),_0x83f257=_0x5e04d5['width'],_0x3b969b='rtl'===_0x5e3498['uiLanguageDirection']?'left':'right';_0x5e04d5['excludeScrollbarsAndBorders'](),_0x5c9725['element']['style'][_0x3b969b]=_0x83f257-_0x5e04d5['width']+0x1+'px';}});};return this['queryView']['fieldView']['on']('update',_0x28daa6),this['on']('render',_0x28daa6),_0x5c9725;}['submit'](){const _0x2d3d95=this['queryView']['fieldView']['element']['value'];this['fire']('submit',_0x2d3d95);}['focus'](_0x262083){-0x1===_0x262083?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}}class AIHistoryListView extends ListView{['historyGroupView'];['clearHistoryButton'];constructor(_0x5738a8){super(_0x5738a8),this['clearHistoryButton']=this['_createClearHistoryButton'](),this['historyGroupView']=new ListItemGroupView(),this['historyGroupView']['children']['add'](this['clearHistoryButton'],0x1),this['historyGroupView']['label']=getTranslation$j(_0x5738a8,'Prompt\x20history'),this['historyGroupView']['items']['delegate']('execute')['to'](this),this['items']['add'](this['historyGroupView']);}['filter'](){let _0x16ba9b=0x0;for(const _0x4ba98c of this['items'])_0x16ba9b+=_0x4ba98c['items']['length'];return{'resultsCount':_0x16ba9b,'totalItemsCount':_0x16ba9b};}['_createClearHistoryButton'](){const _0x1ec2ee=this['locale'],_0x9c48e3=new ButtonView(this['locale']);return _0x9c48e3['set']({'label':'('+getTranslation$j(_0x1ec2ee,'Clear')+')','withText':!0x0}),_0x9c48e3['on']('execute',()=>this['fire']('clearHistory')),_0x9c48e3;}}function isUnsafeProperty(_0x47169d){return'__proto__'===_0x47169d;}function isDeepKey(_0x37ec5d){switch(typeof _0x37ec5d){case'number':case'symbol':return!0x1;case'string':return _0x37ec5d['includes']('.')||_0x37ec5d['includes']('[')||_0x37ec5d['includes'](']');}}function toKey(_0x5e0db6){return'string'==typeof _0x5e0db6||'symbol'==typeof _0x5e0db6?_0x5e0db6:Object['is'](_0x5e0db6?.['valueOf']?.(),-0x0)?'-0':String(_0x5e0db6);}function toPath(_0x2aff57){const _0x2a415c=[],_0x4831d3=_0x2aff57['length'];if(0x0===_0x4831d3)return _0x2a415c;let _0x105bb7=0x0,_0x392a07='',_0x32c9cd='',_0x5b8d33=!0x1;for(0x2e===_0x2aff57['charCodeAt'](0x0)&&(_0x2a415c['push'](''),_0x105bb7++);_0x105bb7<_0x4831d3;){const _0x334e26=_0x2aff57[_0x105bb7];_0x32c9cd?'\x5c'===_0x334e26&&_0x105bb7+0x1<_0x4831d3?(_0x105bb7++,_0x392a07+=_0x2aff57[_0x105bb7]):_0x334e26===_0x32c9cd?_0x32c9cd='':_0x392a07+=_0x334e26:_0x5b8d33?'\x22'===_0x334e26||'\x27'===_0x334e26?_0x32c9cd=_0x334e26:']'===_0x334e26?(_0x5b8d33=!0x1,_0x2a415c['push'](_0x392a07),_0x392a07=''):_0x392a07+=_0x334e26:'['===_0x334e26?(_0x5b8d33=!0x0,_0x392a07&&(_0x2a415c['push'](_0x392a07),_0x392a07='')):'.'===_0x334e26?_0x392a07&&(_0x2a415c['push'](_0x392a07),_0x392a07=''):_0x392a07+=_0x334e26,_0x105bb7++;}return _0x392a07&&_0x2a415c['push'](_0x392a07),_0x2a415c;}function get(_0x9ebfe3,_0x5977e0,_0x934a0){if(null==_0x9ebfe3)return _0x934a0;switch(typeof _0x5977e0){case'string':{if(isUnsafeProperty(_0x5977e0))return _0x934a0;const _0x332093=_0x9ebfe3[_0x5977e0];return void 0x0===_0x332093?isDeepKey(_0x5977e0)?get(_0x9ebfe3,toPath(_0x5977e0),_0x934a0):_0x934a0:_0x332093;}case'number':case'symbol':{'number'==typeof _0x5977e0&&(_0x5977e0=toKey(_0x5977e0));const _0x4a114f=_0x9ebfe3[_0x5977e0];return void 0x0===_0x4a114f?_0x934a0:_0x4a114f;}default:{if(Array['isArray'](_0x5977e0))return getWithPath(_0x9ebfe3,_0x5977e0,_0x934a0);if(isUnsafeProperty(_0x5977e0=Object['is'](_0x5977e0?.['valueOf'](),-0x0)?'-0':String(_0x5977e0)))return _0x934a0;const _0x6ed009=_0x9ebfe3[_0x5977e0];return void 0x0===_0x6ed009?_0x934a0:_0x6ed009;}}}function getWithPath(_0x1f93f1,_0x4755db,_0x4fe794){if(0x0===_0x4755db['length'])return _0x4fe794;let _0x5eff5f=_0x1f93f1;for(let _0x4f6583=0x0;_0x4f6583<_0x4755db['length'];_0x4f6583++){if(null==_0x5eff5f)return _0x4fe794;if(isUnsafeProperty(_0x4755db[_0x4f6583]))return _0x4fe794;_0x5eff5f=_0x5eff5f[_0x4755db[_0x4f6583]];}return void 0x0===_0x5eff5f?_0x4fe794:_0x5eff5f;}function isObject$3(_0x4bdc7c){return null!==_0x4bdc7c&&('object'==typeof _0x4bdc7c||'function'==typeof _0x4bdc7c);}function isPrimitive(_0x565084){return null==_0x565084||'object'!=typeof _0x565084&&'function'!=typeof _0x565084;}function eq(_0x464b6f,_0x5d18e0){return _0x464b6f===_0x5d18e0||Number['isNaN'](_0x464b6f)&&Number['isNaN'](_0x5d18e0);}function getSymbols(_0x597c9e){return Object['getOwnPropertySymbols'](_0x597c9e)['filter'](_0xcc99da=>Object['prototype']['propertyIsEnumerable']['call'](_0x597c9e,_0xcc99da));}function getTag(_0x3c9c13){return null==_0x3c9c13?void 0x0===_0x3c9c13?'[object\x20Undefined]':'[object\x20Null]':Object['prototype']['toString']['call'](_0x3c9c13);}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(_0x1e573d){return ArrayBuffer['isView'](_0x1e573d)&&!(_0x1e573d instanceof DataView);}function cloneDeepWith$1(_0x467dcd,_0x44879c){return cloneDeepWithImpl(_0x467dcd,void 0x0,_0x467dcd,new Map(),_0x44879c);}function cloneDeepWithImpl(_0xe78e9d,_0x2a8d4a,_0x557b4d,_0x1bffdd=new Map(),_0xaa7a26=void 0x0){const _0x51503c=_0xaa7a26?.(_0xe78e9d,_0x2a8d4a,_0x557b4d,_0x1bffdd);if(null!=_0x51503c)return _0x51503c;if(isPrimitive(_0xe78e9d))return _0xe78e9d;if(_0x1bffdd['has'](_0xe78e9d))return _0x1bffdd['get'](_0xe78e9d);if(Array['isArray'](_0xe78e9d)){const _0x3e3814=new Array(_0xe78e9d['length']);_0x1bffdd['set'](_0xe78e9d,_0x3e3814);for(let _0x2ed998=0x0;_0x2ed998<_0xe78e9d['length'];_0x2ed998++)_0x3e3814[_0x2ed998]=cloneDeepWithImpl(_0xe78e9d[_0x2ed998],_0x2ed998,_0x557b4d,_0x1bffdd,_0xaa7a26);return Object['hasOwn'](_0xe78e9d,'index')&&(_0x3e3814['index']=_0xe78e9d['index']),Object['hasOwn'](_0xe78e9d,'input')&&(_0x3e3814['input']=_0xe78e9d['input']),_0x3e3814;}if(_0xe78e9d instanceof Date)return new Date(_0xe78e9d['getTime']());if(_0xe78e9d instanceof RegExp){const _0x3a826a=new RegExp(_0xe78e9d['source'],_0xe78e9d['flags']);return _0x3a826a['lastIndex']=_0xe78e9d['lastIndex'],_0x3a826a;}if(_0xe78e9d instanceof Map){const _0x2863c7=new Map();_0x1bffdd['set'](_0xe78e9d,_0x2863c7);for(const [_0x432349,_0x55813a]of _0xe78e9d)_0x2863c7['set'](_0x432349,cloneDeepWithImpl(_0x55813a,_0x432349,_0x557b4d,_0x1bffdd,_0xaa7a26));return _0x2863c7;}if(_0xe78e9d instanceof Set){const _0x230bb9=new Set();_0x1bffdd['set'](_0xe78e9d,_0x230bb9);for(const _0x555dda of _0xe78e9d)_0x230bb9['add'](cloneDeepWithImpl(_0x555dda,void 0x0,_0x557b4d,_0x1bffdd,_0xaa7a26));return _0x230bb9;}if('undefined'!=typeof Buffer&&Buffer['isBuffer'](_0xe78e9d))return _0xe78e9d['subarray']();if(isTypedArray(_0xe78e9d)){const _0x5ed9b3=new(Object['getPrototypeOf'](_0xe78e9d))['constructor'](_0xe78e9d['length']);_0x1bffdd['set'](_0xe78e9d,_0x5ed9b3);for(let _0x2bd534=0x0;_0x2bd534<_0xe78e9d['length'];_0x2bd534++)_0x5ed9b3[_0x2bd534]=cloneDeepWithImpl(_0xe78e9d[_0x2bd534],_0x2bd534,_0x557b4d,_0x1bffdd,_0xaa7a26);return _0x5ed9b3;}if(_0xe78e9d instanceof ArrayBuffer||'undefined'!=typeof SharedArrayBuffer&&_0xe78e9d instanceof SharedArrayBuffer)return _0xe78e9d['slice'](0x0);if(_0xe78e9d instanceof DataView){const _0x1a477a=new DataView(_0xe78e9d['buffer']['slice'](0x0),_0xe78e9d['byteOffset'],_0xe78e9d['byteLength']);return _0x1bffdd['set'](_0xe78e9d,_0x1a477a),copyProperties(_0x1a477a,_0xe78e9d,_0x557b4d,_0x1bffdd,_0xaa7a26),_0x1a477a;}if('undefined'!=typeof File&&_0xe78e9d instanceof File){const _0x18e6f3=new File([_0xe78e9d],_0xe78e9d['name'],{'type':_0xe78e9d['type']});return _0x1bffdd['set'](_0xe78e9d,_0x18e6f3),copyProperties(_0x18e6f3,_0xe78e9d,_0x557b4d,_0x1bffdd,_0xaa7a26),_0x18e6f3;}if(_0xe78e9d instanceof Blob){const _0x301048=new Blob([_0xe78e9d],{'type':_0xe78e9d['type']});return _0x1bffdd['set'](_0xe78e9d,_0x301048),copyProperties(_0x301048,_0xe78e9d,_0x557b4d,_0x1bffdd,_0xaa7a26),_0x301048;}if(_0xe78e9d instanceof Error){const _0x43d388=new _0xe78e9d['constructor']();return _0x1bffdd['set'](_0xe78e9d,_0x43d388),_0x43d388['message']=_0xe78e9d['message'],_0x43d388['name']=_0xe78e9d['name'],_0x43d388['stack']=_0xe78e9d['stack'],_0x43d388['cause']=_0xe78e9d['cause'],copyProperties(_0x43d388,_0xe78e9d,_0x557b4d,_0x1bffdd,_0xaa7a26),_0x43d388;}if('object'==typeof _0xe78e9d&&isCloneableObject(_0xe78e9d)){const _0x651f45=Object['create'](Object['getPrototypeOf'](_0xe78e9d));return _0x1bffdd['set'](_0xe78e9d,_0x651f45),copyProperties(_0x651f45,_0xe78e9d,_0x557b4d,_0x1bffdd,_0xaa7a26),_0x651f45;}return _0xe78e9d;}function copyProperties(_0x2792ee,_0x242b9a,_0x17bd2e=_0x2792ee,_0x5183ec,_0x478be1){const _0x481bd0=[...Object['keys'](_0x242b9a),...getSymbols(_0x242b9a)];for(let _0x3d2a89=0x0;_0x3d2a89<_0x481bd0['length'];_0x3d2a89++){const _0x21bf3d=_0x481bd0[_0x3d2a89],_0x17ff4d=Object['getOwnPropertyDescriptor'](_0x2792ee,_0x21bf3d);(null==_0x17ff4d||_0x17ff4d['writable'])&&(_0x2792ee[_0x21bf3d]=cloneDeepWithImpl(_0x242b9a[_0x21bf3d],_0x21bf3d,_0x17bd2e,_0x5183ec,_0x478be1));}}function isCloneableObject(_0xf8fee){switch(getTag(_0xf8fee)){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 cloneDeep$1(_0x9e1dbd){return cloneDeepWithImpl(_0x9e1dbd,void 0x0,_0x9e1dbd,new Map(),void 0x0);}function cloneDeepWith(_0x3bfffa,_0x2f2b84){return cloneDeepWith$1(_0x3bfffa,(_0x3d452b,_0xe4eaf2,_0x47e4b1,_0x52ee66)=>{if('object'==typeof _0x3bfffa)switch(Object['prototype']['toString']['call'](_0x3bfffa)){case numberTag:case stringTag:case booleanTag:{const _0x10156b=new _0x3bfffa['constructor'](_0x3bfffa?.['valueOf']());return copyProperties(_0x10156b,_0x3bfffa),_0x10156b;}case argumentsTag:{const _0xb8e016={};return copyProperties(_0xb8e016,_0x3bfffa),_0xb8e016['length']=_0x3bfffa['length'],_0xb8e016[Symbol['iterator']]=_0x3bfffa[Symbol['iterator']],_0xb8e016;}default:return;}});}function cloneDeep(_0x48a740){return cloneDeepWith(_0x48a740);}const IS_UNSIGNED_INTEGER=/^(?:0|[1-9]\d*)$/;function isIndex(_0x350896,_0x3192bc=Number['MAX_SAFE_INTEGER']){switch(typeof _0x350896){case'number':return Number['isInteger'](_0x350896)&&_0x350896>=0x0&&_0x350896<_0x3192bc;case'symbol':return!0x1;case'string':return IS_UNSIGNED_INTEGER['test'](_0x350896);}}function isObjectLike(_0x445890){return'object'==typeof _0x445890&&null!==_0x445890;}function isSymbol(_0x39ac9a){return'symbol'==typeof _0x39ac9a||_0x39ac9a instanceof Symbol;}const regexIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,regexIsPlainProp=/^\w*$/;function isKey(_0x1483d6,_0x59282c){return!Array['isArray'](_0x1483d6)&&(!('number'!=typeof _0x1483d6&&'boolean'!=typeof _0x1483d6&&null!=_0x1483d6&&!isSymbol(_0x1483d6))||('string'==typeof _0x1483d6&&(regexIsPlainProp['test'](_0x1483d6)||!regexIsDeepProp['test'](_0x1483d6))||null!=_0x59282c&&Object['hasOwn'](_0x59282c,_0x1483d6)));}function unset(_0x14af85,_0x147549){if(null==_0x14af85)return!0x0;switch(typeof _0x147549){case'symbol':case'number':case'object':if(Array['isArray'](_0x147549))return unsetWithPath(_0x14af85,_0x147549);if('number'==typeof _0x147549?_0x147549=toKey(_0x147549):'object'==typeof _0x147549&&(_0x147549=Object['is'](_0x147549?.['valueOf'](),-0x0)?'-0':String(_0x147549)),isUnsafeProperty(_0x147549))return!0x1;if(void 0x0===_0x14af85?.[_0x147549])return!0x0;try{return delete _0x14af85[_0x147549],!0x0;}catch{return!0x1;}case'string':if(void 0x0===_0x14af85?.[_0x147549]&&isDeepKey(_0x147549))return unsetWithPath(_0x14af85,toPath(_0x147549));if(isUnsafeProperty(_0x147549))return!0x1;try{return delete _0x14af85[_0x147549],!0x0;}catch{return!0x1;}}}function unsetWithPath(_0x5c686c,_0x5b9ad7){const _0xaf3dde=get(_0x5c686c,_0x5b9ad7['slice'](0x0,-0x1),_0x5c686c),_0x8b694f=_0x5b9ad7[_0x5b9ad7['length']-0x1];if(void 0x0===_0xaf3dde?.[_0x8b694f])return!0x0;if(isUnsafeProperty(_0x8b694f))return!0x1;try{return delete _0xaf3dde[_0x8b694f],!0x0;}catch{return!0x1;}}const assignValue=(_0x2dd6e0,_0x180da0,_0x55852c)=>{const _0x5cb6ff=_0x2dd6e0[_0x180da0];Object['hasOwn'](_0x2dd6e0,_0x180da0)&&eq(_0x5cb6ff,_0x55852c)&&(void 0x0!==_0x55852c||_0x180da0 in _0x2dd6e0)||(_0x2dd6e0[_0x180da0]=_0x55852c);};function updateWith(_0x4630e2,_0x251560,_0x4def51,_0xbed85){if(null==_0x4630e2&&!isObject$3(_0x4630e2))return _0x4630e2;const _0x311d8a=isKey(_0x251560,_0x4630e2)?[_0x251560]:Array['isArray'](_0x251560)?_0x251560:'string'==typeof _0x251560?toPath(_0x251560):[_0x251560];let _0x463e4e=_0x4630e2;for(let _0x4c7162=0x0;_0x4c7162<_0x311d8a['length']&&null!=_0x463e4e;_0x4c7162++){const _0x48bd3e=toKey(_0x311d8a[_0x4c7162]);if(isUnsafeProperty(_0x48bd3e))continue;let _0x4337fd;if(_0x4c7162===_0x311d8a['length']-0x1)_0x4337fd=_0x4def51(_0x463e4e[_0x48bd3e]);else{const _0x2463fb=_0x463e4e[_0x48bd3e],_0x5b197d=_0xbed85?.(_0x2463fb,_0x48bd3e,_0x4630e2);_0x4337fd=void 0x0!==_0x5b197d?_0x5b197d:isObject$3(_0x2463fb)?_0x2463fb:isIndex(_0x311d8a[_0x4c7162+0x1])?[]:{};}assignValue(_0x463e4e,_0x48bd3e,_0x4337fd),_0x463e4e=_0x463e4e[_0x48bd3e];}return _0x4630e2;}function set(_0x44caa0,_0x4a3963,_0x5a728a){return updateWith(_0x44caa0,_0x4a3963,()=>_0x5a728a,()=>{});}function debounce$2(_0x3bca10,_0x4e840b,{signal:_0xa475b2,edges:_0xa56003}={}){let _0x25414d,_0x3f5251=null;const _0x156b70=null!=_0xa56003&&_0xa56003['includes']('leading'),_0x285b83=null==_0xa56003||_0xa56003['includes']('trailing'),_0x516d36=()=>{null!==_0x3f5251&&(_0x3bca10['apply'](_0x25414d,_0x3f5251),_0x25414d=void 0x0,_0x3f5251=null);};let _0x3c89c0=null;const _0x1fa361=()=>{null!=_0x3c89c0&&clearTimeout(_0x3c89c0),_0x3c89c0=setTimeout(()=>{_0x3c89c0=null,_0x285b83&&_0x516d36(),_0x2b0a4c();},_0x4e840b);},_0x2cbe1c=()=>{null!==_0x3c89c0&&(clearTimeout(_0x3c89c0),_0x3c89c0=null);},_0x2b0a4c=()=>{_0x2cbe1c(),_0x25414d=void 0x0,_0x3f5251=null;},_0x1efba7=function(..._0x27b74b){if(_0xa475b2?.['aborted'])return;_0x25414d=this,_0x3f5251=_0x27b74b;const _0x16dbb1=null==_0x3c89c0;_0x1fa361(),_0x156b70&&_0x16dbb1&&_0x516d36();};return _0x1efba7['schedule']=_0x1fa361,_0x1efba7['cancel']=_0x2b0a4c,_0x1efba7['flush']=()=>{_0x2cbe1c(),_0x516d36();},_0xa475b2?.['addEventListener']('abort',_0x2b0a4c,{'once':!0x0}),_0x1efba7;}function debounce$1(_0x1cbf02,_0x567ca7=0x0,_0x9984cc={}){'object'!=typeof _0x9984cc&&(_0x9984cc={});const {leading:_0x3b5e6d=!0x1,trailing:_0x1445df=!0x0,maxWait:_0x7698a8}=_0x9984cc,_0x4b5056=Array(0x2);let _0x5c6cac;_0x3b5e6d&&(_0x4b5056[0x0]='leading'),_0x1445df&&(_0x4b5056[0x1]='trailing');let _0x123186=null;const _0x204dbb=debounce$2(function(..._0x418015){_0x5c6cac=_0x1cbf02['apply'](this,_0x418015),_0x123186=null;},_0x567ca7,{'edges':_0x4b5056}),_0x1d5971=function(..._0x4849f5){return null!=_0x7698a8&&(null===_0x123186&&(_0x123186=Date['now']()),Date['now']()-_0x123186>=_0x7698a8)?(_0x5c6cac=_0x1cbf02['apply'](this,_0x4849f5),_0x123186=Date['now'](),_0x204dbb['cancel'](),_0x204dbb['schedule'](),_0x5c6cac):(_0x204dbb['apply'](this,_0x4849f5),_0x5c6cac);};return _0x1d5971['cancel']=_0x204dbb['cancel'],_0x1d5971['flush']=()=>(_0x204dbb['flush'](),_0x5c6cac),_0x1d5971;}function throttle$1(_0x298f21,_0x58bd4a=0x0,_0x19afcc={}){'object'!=typeof _0x19afcc&&(_0x19afcc={});const {leading:_0x5ecf62=!0x0,trailing:_0x27d6a3=!0x0}=_0x19afcc;return debounce$1(_0x298f21,_0x58bd4a,{'leading':_0x5ecf62,'trailing':_0x27d6a3,'maxWait':_0x58bd4a});}function toString$2(_0x1e4ef8){if(null==_0x1e4ef8)return'';if('string'==typeof _0x1e4ef8)return _0x1e4ef8;if(Array['isArray'](_0x1e4ef8))return _0x1e4ef8['map'](toString$2)['join'](',');const _0x172fcd=String(_0x1e4ef8);return'0'===_0x172fcd&&Object['is'](Number(_0x1e4ef8),-0x0)?'-0':_0x172fcd;}function isPlainObject$1(_0x39d0b2){if(!_0x39d0b2||'object'!=typeof _0x39d0b2)return!0x1;const _0x575bd3=Object['getPrototypeOf'](_0x39d0b2);return!(null!==_0x575bd3&&_0x575bd3!==Object['prototype']&&null!==Object['getPrototypeOf'](_0x575bd3))&&'[object\x20Object]'===Object['prototype']['toString']['call'](_0x39d0b2);}function isEqualWith(_0x373e4f,_0x409686,_0x59902d){return isEqualWithImpl(_0x373e4f,_0x409686,void 0x0,void 0x0,void 0x0,void 0x0,_0x59902d);}function isEqualWithImpl(_0x13b3d1,_0x414436,_0x2ab256,_0x38361a,_0x21a117,_0x39b862,_0x42ca12){const _0x143471=_0x42ca12(_0x13b3d1,_0x414436,_0x2ab256,_0x38361a,_0x21a117,_0x39b862);if(void 0x0!==_0x143471)return _0x143471;if(typeof _0x13b3d1==typeof _0x414436)switch(typeof _0x13b3d1){case'bigint':case'string':case'boolean':case'symbol':case'undefined':case'function':return _0x13b3d1===_0x414436;case'number':return _0x13b3d1===_0x414436||Object['is'](_0x13b3d1,_0x414436);case'object':return areObjectsEqual(_0x13b3d1,_0x414436,_0x39b862,_0x42ca12);}return areObjectsEqual(_0x13b3d1,_0x414436,_0x39b862,_0x42ca12);}function areObjectsEqual(_0x553646,_0x24aa13,_0x192c9d,_0x1884e6){if(Object['is'](_0x553646,_0x24aa13))return!0x0;let _0x257923=getTag(_0x553646),_0x498ea9=getTag(_0x24aa13);if(_0x257923===argumentsTag&&(_0x257923=objectTag),_0x498ea9===argumentsTag&&(_0x498ea9=objectTag),_0x257923!==_0x498ea9)return!0x1;switch(_0x257923){case stringTag:return _0x553646['toString']()===_0x24aa13['toString']();case numberTag:return eq(_0x553646['valueOf'](),_0x24aa13['valueOf']());case booleanTag:case dateTag:case symbolTag:return Object['is'](_0x553646['valueOf'](),_0x24aa13['valueOf']());case regexpTag:return _0x553646['source']===_0x24aa13['source']&&_0x553646['flags']===_0x24aa13['flags'];case functionTag:return _0x553646===_0x24aa13;}const _0x4bbe77=(_0x192c9d=_0x192c9d??new Map())['get'](_0x553646),_0x38ff22=_0x192c9d['get'](_0x24aa13);if(null!=_0x4bbe77&&null!=_0x38ff22)return _0x4bbe77===_0x24aa13;_0x192c9d['set'](_0x553646,_0x24aa13),_0x192c9d['set'](_0x24aa13,_0x553646);try{switch(_0x257923){case mapTag:if(_0x553646['size']!==_0x24aa13['size'])return!0x1;for(const [_0x1735c3,_0x4781f6]of _0x553646['entries']())if(!_0x24aa13['has'](_0x1735c3)||!isEqualWithImpl(_0x4781f6,_0x24aa13['get'](_0x1735c3),_0x1735c3,_0x553646,_0x24aa13,_0x192c9d,_0x1884e6))return!0x1;return!0x0;case setTag:{if(_0x553646['size']!==_0x24aa13['size'])return!0x1;const _0xced4dc=Array['from'](_0x553646['values']()),_0x5e4e93=Array['from'](_0x24aa13['values']());for(let _0x281211=0x0;_0x281211<_0xced4dc['length'];_0x281211++){const _0x5e24bb=_0xced4dc[_0x281211],_0x40e0e4=_0x5e4e93['findIndex'](_0x6ccfd2=>isEqualWithImpl(_0x5e24bb,_0x6ccfd2,void 0x0,_0x553646,_0x24aa13,_0x192c9d,_0x1884e6));if(-0x1===_0x40e0e4)return!0x1;_0x5e4e93['splice'](_0x40e0e4,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'](_0x553646)!==Buffer['isBuffer'](_0x24aa13))return!0x1;if(_0x553646['length']!==_0x24aa13['length'])return!0x1;for(let _0x2354ec=0x0;_0x2354ec<_0x553646['length'];_0x2354ec++)if(!isEqualWithImpl(_0x553646[_0x2354ec],_0x24aa13[_0x2354ec],_0x2354ec,_0x553646,_0x24aa13,_0x192c9d,_0x1884e6))return!0x1;return!0x0;case arrayBufferTag:return _0x553646['byteLength']===_0x24aa13['byteLength']&&areObjectsEqual(new Uint8Array(_0x553646),new Uint8Array(_0x24aa13),_0x192c9d,_0x1884e6);case dataViewTag:return _0x553646['byteLength']===_0x24aa13['byteLength']&&_0x553646['byteOffset']===_0x24aa13['byteOffset']&&areObjectsEqual(new Uint8Array(_0x553646),new Uint8Array(_0x24aa13),_0x192c9d,_0x1884e6);case errorTag:return _0x553646['name']===_0x24aa13['name']&&_0x553646['message']===_0x24aa13['message'];case objectTag:{if(!(areObjectsEqual(_0x553646['constructor'],_0x24aa13['constructor'],_0x192c9d,_0x1884e6)||isPlainObject$1(_0x553646)&&isPlainObject$1(_0x24aa13)))return!0x1;const _0xfa1c2d=[...Object['keys'](_0x553646),...getSymbols(_0x553646)],_0x2bcc74=[...Object['keys'](_0x24aa13),...getSymbols(_0x24aa13)];if(_0xfa1c2d['length']!==_0x2bcc74['length'])return!0x1;for(let _0x157cbf=0x0;_0x157cbf<_0xfa1c2d['length'];_0x157cbf++){const _0x59ab68=_0xfa1c2d[_0x157cbf],_0x24b24d=_0x553646[_0x59ab68];if(!Object['hasOwn'](_0x24aa13,_0x59ab68))return!0x1;if(!isEqualWithImpl(_0x24b24d,_0x24aa13[_0x59ab68],_0x59ab68,_0x553646,_0x24aa13,_0x192c9d,_0x1884e6))return!0x1;}return!0x0;}default:return!0x1;}}finally{_0x192c9d['delete'](_0x553646),_0x192c9d['delete'](_0x24aa13);}}function noop$2(){}function isEqual(_0x2b612a,_0x13d935){return isEqualWith(_0x2b612a,_0x13d935,noop$2);}function isPlainObject(_0x69f951){if('object'!=typeof _0x69f951)return!0x1;if(null==_0x69f951)return!0x1;if(null===Object['getPrototypeOf'](_0x69f951))return!0x0;if('[object\x20Object]'!==Object['prototype']['toString']['call'](_0x69f951)){const _0x4700e3=_0x69f951[Symbol['toStringTag']];if(null==_0x4700e3)return!0x1;return!!Object['getOwnPropertyDescriptor'](_0x69f951,Symbol['toStringTag'])?.['writable']&&_0x69f951['toString']()==='[object\x20'+_0x4700e3+']';}let _0x14d3e2=_0x69f951;for(;null!==Object['getPrototypeOf'](_0x14d3e2);)_0x14d3e2=Object['getPrototypeOf'](_0x14d3e2);return Object['getPrototypeOf'](_0x69f951)===_0x14d3e2;}function omit(_0x4cf259,..._0x1149b2){if(null==_0x4cf259)return{};const _0x3a30b6=cloneDeep$1(_0x4cf259);for(let _0x1cb076=0x0;_0x1cb076<_0x1149b2['length'];_0x1cb076++){let _0x4c6c63=_0x1149b2[_0x1cb076];switch(typeof _0x4c6c63){case'object':Array['isArray'](_0x4c6c63)||(_0x4c6c63=Array['from'](_0x4c6c63));for(let _0xcebf6d=0x0;_0xcebf6d<_0x4c6c63['length'];_0xcebf6d++){unset(_0x3a30b6,_0x4c6c63[_0xcebf6d]);}break;case'string':case'symbol':case'number':unset(_0x3a30b6,_0x4c6c63);}}return _0x3a30b6;}function isElement$2(_0x783f26){return isObjectLike(_0x783f26)&&0x1===_0x783f26['nodeType']&&!isPlainObject(_0x783f26);}const htmlEscapes={'&':'&amp;','<':'&lt;','>':'&gt;','\x22':'&quot;','\x27':'&#39;'};function escape$1(_0x2f24cf){return _0x2f24cf['replace'](/[&<>"']/g,_0x41c3ef=>htmlEscapes[_0x41c3ef]);}function escape(_0x33b6fb){return escape$1(toString$2(_0x33b6fb));}function escapeRegExp$2(_0x481b49){return _0x481b49['replace'](/[\\^$.*+?()[\]{}|]/g,'\x5c$&');}function escapeRegExp$1(_0x293ed0){return escapeRegExp$2(toString$2(_0x293ed0));}const htmlUnescapes={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'\x22','&#39;':'\x27'};function unescape$2(_0x22fad7){return _0x22fad7['replace'](/&(?:amp|lt|gt|quot|#(0+)?39);/g,_0x702220=>htmlUnescapes[_0x702220]||'\x27');}function unescape$1(_0x4f3dbe){return unescape$2(toString$2(_0x4f3dbe));}class AIHistoryListItemView extends ListItemView{constructor(_0xee5d12){super();const _0x129be1=new ButtonLabelView(),_0x35ed99=new ButtonView(this['locale'],_0x129be1);this['children']['add'](_0x35ed99),_0x35ed99['set']({'label':_0xee5d12['prompt'],'withText':!0x0}),_0x35ed99['on']('execute',()=>{this['fire']('execute',{'value':unescape$1(_0xee5d12['prompt'])});});}}const SESSION_STORAGE_KEY='CKEditor/AIFormView/PromptHistory',MAX_HISTORY_LENGTH=0x14;class PromptHistory extends Collection{constructor(){super(),this['_loadFromSessionStorage'](),this['on']('add',(_0x5e3e0a,_0xa03377)=>{const _0x3634f3=normalizePromptText(_0xa03377['prompt']);for(const _0x487b36 of this)if(_0x487b36!=_0xa03377&&normalizePromptText(_0x487b36['prompt'])===_0x3634f3){this['remove'](_0x487b36);break;}this['length']>MAX_HISTORY_LENGTH&&this['remove'](this['last']),this['_saveToSessionStorage']();}),this['on']('remove',()=>{this['_saveToSessionStorage']();});}['_loadFromSessionStorage'](){const _0x522fa2=sessionStorage['getItem'](SESSION_STORAGE_KEY)||'[]';this['addMany'](JSON['parse'](_0x522fa2));}['_saveToSessionStorage'](){sessionStorage['setItem'](SESSION_STORAGE_KEY,JSON['stringify'](this['map'](_0x4ff5ec=>_0x4ff5ec)));}}function normalizePromptText(_0x13fbfe){return _0x13fbfe['toLowerCase']()['trim']();}class AIFormView extends View{['focusTracker'];['keystrokes'];['contentArea'];['toolbar'];['promptView'];['errorView'];['_focusables'];['focusCycler'];['_promptHistory'];constructor(_0x4e79d2,_0x265027,_0x5ddf0e=''){super(_0x4e79d2),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(_0x4e79d2),this['contentArea']=new AIFormContentArea(_0x4e79d2,_0x5ddf0e),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 _0x36f0e2=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form',_0x265027],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':'div','attributes':{'class':[_0x36f0e2['if']('isError','ck-hidden',_0x3df64f=>!_0x3df64f)]},'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'](_0x39d69a=0x1){-0x1===_0x39d69a?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 _0x20fad4=this['locale'],_0x551e2f=new AIFormPromptView(_0x20fad4,{'queryView':{'label':getTranslation$j(_0x20fad4,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':getTranslation$j(_0x20fad4,'Empty\x20history'),'secondary':getTranslation$j(_0x20fad4,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this['_createHistoryView'](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x551e2f['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x3a7257,_0x34ef35)=>_0x3a7257&&!_0x34ef35),this['listenTo'](_0x551e2f,'submit',(_0x2b59b2,_0x9e4507)=>{this['prompt']=_0x9e4507;const _0x6de9f8=escape(_0x9e4507);this['fire']('submitPrompt',_0x6de9f8),_0x9e4507['trim']()&&this['_promptHistory']['add']({'prompt':_0x6de9f8},0x0);},{'priority':'high'}),_0x551e2f;}['_createHistoryView'](){const _0x50a0f6=new AIHistoryListView(this['locale']);return _0x50a0f6['historyGroupView']['items']['bindTo'](this['_promptHistory'])['as'](AIHistoryListItemView),_0x50a0f6['on']('clearHistory',()=>{this['_promptHistory']['clear'](),this['promptView']['search'](''),this['promptView']['focus']();}),_0x50a0f6;}['_createToolbar'](){const _0x5a303f=new AIFormToolbarView(this['locale']);return _0x5a303f['replaceButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x218b1f,_0x215b4c,_0x282ae8)=>_0x218b1f&&!_0x215b4c&&!!_0x282ae8),_0x5a303f['replaceButton']['delegate']('execute')['to'](this,'replaceContent'),_0x5a303f['insertButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x541259,_0x383e95,_0x4cd4d7)=>_0x541259&&!_0x383e95&&!!_0x4cd4d7),_0x5a303f['insertButton']['delegate']('execute')['to'](this,'insertContentBelow'),_0x5a303f['tryAgainButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x2439e6,_0x1cc9a0)=>_0x2439e6&&!_0x1cc9a0),_0x5a303f['tryAgainButton']['delegate']('execute')['to'](this,'tryAgainEvent'),_0x5a303f['stopButton']['bind']('isEnabled')['to'](this,'isProcessing'),_0x5a303f['stopButton']['delegate']('execute')['to'](this,'stopProcessing'),_0x5a303f;}['startProcessing'](){this['value']='',this['isError']=!0x1,this['isProcessing']=!0x0,this['contentArea']['isVisible']=!0x0,this['toolbar']['isVisible']=!0x0,this['contentArea']['focus']();}['finishProcessing'](){const _0x5705e4=this['locale'];this['isProcessing']=!0x1,this['prompt']='',this['promptView']['reset'](),this['value']&&(this['promptView']['queryView']['label']=getTranslation$j(_0x5705e4,'Ask\x20AI\x20to\x20improve\x20generated\x20text'));}['handleError'](_0x3a67ec){const _0x9db8f1=this['locale'];this['finishProcessing'](),this['isError']=!0x0,this['errorView']['text']=_0x3a67ec||getTranslation$j(_0x9db8f1,'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(_0x93730){super(_0x93730),_0x93730['config']['define']('ai.assistant.disabledElements',['media','rawHtml','tableOfContents']),_0x93730['config']['define']('ai.assistant.contentAreaCssClass',''),_0x93730['config']['define']('ai.assistant.useTheme',!0x0),this['_uiCssClasses']='ck-ai-assistant-ui'+(_0x93730['config']['get']('ai.assistant.useTheme')?'\x20ck-ai-assistant-ui_theme':'');}['init'](){const {editor:_0x7dfa5d}=this;this['_aiAdapter']=_0x7dfa5d['plugins']['get'](AIAdapter),this['_dialog']=_0x7dfa5d['plugins']['get'](Dialog),this['_formView']=null,this['_commandDefinitions']=this['_getResolvedCommandsDefinitions']();const _0x44f455=new ShowAIAssistantCommand(_0x7dfa5d,Array['from'](this['_commandDefinitions']['values']()));_0x7dfa5d['commands']['add']('showAIAssistant',_0x44f455),_0x7dfa5d['ui']['componentFactory']['add']('aiCommands',_0x53585c=>{const _0x526eca=createDropdown(_0x53585c);return _0x526eca['set']({'class':'ck-ai-commands-dropdown\x20'+this['_uiCssClasses']}),_0x526eca['buttonView']['set']({'label':getTranslation$j(_0x53585c,'AI\x20Commands'),'icon':IconMagicWand,'tooltip':!0x0}),_0x526eca['on']('execute',_0x2d5d69=>this['_onExecute'](_0x2d5d69['source']['id'])),addMenuToDropdown(_0x526eca,_0x7dfa5d['ui']['view']['body'],getMenuDropdownDefinition(_0x7dfa5d),{'ariaLabel':getTranslation$j(_0x53585c,'AI\x20Commands')}),_0x526eca['menuView']['menuPanelClass']='ck-ai-commands-dropdown\x20'+this['_uiCssClasses'],_0x44f455['on']('change:enabledCommandsIds',_0x1d02cb),_0x526eca['menuView']['once']('render',_0x1d02cb),_0x526eca;function _0x1d02cb(){_0x526eca['isEnabled']=_0x44f455['enabledCommandsIds']['length']>0x0;for(const _0x20cbe1 of _0x526eca['menuView']['buttons'])_0x20cbe1['isEnabled']=_0x44f455['enabledCommandsIds']['includes'](_0x20cbe1['id']);}}),_0x7dfa5d['ui']['componentFactory']['add']('menuBar:aiCommands',_0x51c061=>{const _0x1dbff8=new MenuBarMenuView(_0x51c061);_0x1dbff8['buttonView']['set']({'label':getTranslation$j(_0x51c061,'AI\x20Commands'),'icon':IconMagicWand}),_0x1dbff8['bind']('isEnabled')['to'](_0x44f455,'enabledCommandsIds',_0x45c4d3=>_0x45c4d3['length']>0x0);const _0x502613=normalizeCommandsConfig(_0x7dfa5d['config']['get']('ai.assistant.commands'),_0x51c061);return this['_populateMenuBarMenu'](_0x44f455,_0x1dbff8,_0x502613,_0x1a833e=>this['_onExecute'](_0x1a833e)),_0x1dbff8;}),_0x7dfa5d['ui']['componentFactory']['add']('aiAssistant',()=>{const _0x1c5fbb=this['_createAIAssistantUIButton'](ButtonView);return _0x1c5fbb['set']({'tooltip':!0x0,'class':'ck-ai-assistant-button\x20'+this['_uiCssClasses']}),_0x1c5fbb;}),_0x7dfa5d['ui']['componentFactory']['add']('menuBar:aiAssistant',()=>{const _0x20051e=this['_createAIAssistantUIButton'](MenuBarMenuListItemButtonView);return _0x20051e['set']({'role':'menuitemcheckbox'}),_0x20051e;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2d54e0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x570d54;for(const _0x385711 in _0x2d54e0){const _0x3f9717=_0x385711,_0x1ac2cf=_0x2d54e0[_0x3f9717];if('aiLicenseKeyValid'==_0x1ac2cf||'aiLicenseKeyInvalid'==_0x1ac2cf||'aiLicenseKeyExpired'==_0x1ac2cf||'aiLicenseKeyDomainLimit'==_0x1ac2cf||'aiLicenseKeyNotAllowed'==_0x1ac2cf||'aiLicenseKeyEvaluationLimit'==_0x1ac2cf||'aiLicenseKeyUsageLimit'==_0x1ac2cf){delete _0x2d54e0[_0x3f9717],_0x570d54=_0x1ac2cf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'aiLicenseKeyInvalid'==_0x570d54&&_0x2d54e0['_showLicenseError']('invalid'),'aiLicenseKeyExpired'==_0x570d54&&_0x2d54e0['_showLicenseError']('expired'),'aiLicenseKeyDomainLimit'==_0x570d54&&_0x2d54e0['_showLicenseError']('domainLimit'),'aiLicenseKeyNotAllowed'==_0x570d54&&_0x2d54e0['_showLicenseError']('featureNotAllowed','AIAssistant'),'aiLicenseKeyEvaluationLimit'==_0x570d54&&_0x2d54e0['_showLicenseError']('evaluationLimit'),'aiLicenseKeyUsageLimit'==_0x570d54&&_0x2d54e0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['showUI'](_0x5b6cde='',_0x542023='',_0xa2b858='custom'){const _0x18e554=this['editor'],_0x23c8df=_0x18e554['editing']['view'],_0x3ab656=_0x18e554['plugins']['get'](AIAssistantEditing),_0x51e8fe=_0x18e554['plugins']['get'](ClipboardMarkersUtils);_0x3ab656['showFakeVisualSelection']();const _0x512ff3=new DomDataTransfer(),_0x1e0078=new ClipboardEvent('copy',{'clipboardData':_0x512ff3}),_0x322b46=new ViewDataTransfer(_0x512ff3),_0x1ca736=new ViewDocumentDomEventData(_0x23c8df,_0x1e0078,{'dataTransfer':_0x322b46});_0x51e8fe['_forceMarkersCopy']('comment',()=>{_0x23c8df['document']['fire']('copy',_0x1ca736);}),this['_formView']||(this['_initView'](),this['_aiAssistantController']=new AIAssistantController(_0x18e554,this['_aiAdapter']['textAdapter'],this['_formView']));let _0x2c0506=_0x322b46['getData']('text/html');const _0x189179=_0x18e554['model']['document']['selection'],_0x5e97d3=Array['from'](_0x189179['getRanges']());0x1===_0x5e97d3['length']&&_0x5e97d3[0x0]['isFlat']&&!_0x189179['getSelectedElement']()&&''!==_0x2c0506['replace'](/&nbsp;/g,'')['trim']()&&(_0x2c0506='<p>'+_0x2c0506+'</p>'),this['_aiAssistantController']['updateView']({'actionId':_0xa2b858,'query':_0x5b6cde,'htmlContent':_0x2c0506,'label':_0x542023,'mainActionLabel':AIFormToolbarViewMainActionLabel[_0x18e554['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'](),_0x3ab656['hideFakeVisualSelection']();}}):this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}['hideUI'](){this['_dialog']['hide']();}['_getResolvedCommandsDefinitions'](){const _0x2743a8=new Map(),_0x75facf=normalizeCommandsConfig(this['editor']['config']['get']('ai.assistant.commands'),this['editor']['locale']);for(const _0x4ce3cc of _0x75facf)for(const _0x22ed29 of _0x4ce3cc['commands'])_0x2743a8['set'](_0x22ed29['id'],{..._0x22ed29,'groupId':_0x4ce3cc['groupId'],'groupLabel':_0x4ce3cc['groupLabel']||_0x4ce3cc['groupId']});return _0x2743a8;}['_createAIAssistantUIButton'](_0x2cb766){const _0x3cfb8e=this['editor'],_0x556b63=_0x3cfb8e['commands']['get']('showAIAssistant'),_0x5e9361=new _0x2cb766(_0x3cfb8e['locale']);return _0x5e9361['set']({'label':getTranslation$j(_0x3cfb8e['locale'],'AI\x20Assistant'),'icon':IconRobotPencil,'isToggleable':!0x0}),_0x5e9361['bind']('isEnabled')['to'](_0x556b63),_0x5e9361['bind']('isOn')['to'](this['_dialog'],'id',_0x35e343=>'aiAssistant'===_0x35e343),this['listenTo'](_0x5e9361,'execute',()=>{_0x5e9361['isOn']?this['hideUI']():_0x556b63['execute']();}),_0x5e9361;}['_initView'](){const _0x56fb11=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',()=>{_0x56fb11['insertContent'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['listenTo'](this['_formView'],'insertContentBelow',()=>{_0x56fb11['insertContentBelow'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['_initAriaAiStatusChangeAnnouncements']();}['_initAriaAiStatusChangeAnnouncements'](){const {locale:_0x1fe0f0,ui:{ariaLiveAnnouncer:_0x5acc19}}=this['editor'];this['_formView']['contentArea']['on']('change:isProcessing',(_0x548230,_0x92e5b,_0x511291)=>{const _0x379718=this['_aiAssistantController']['currentContext'];_0x511291?_0x5acc19['announce'](getTranslation$j(_0x1fe0f0,'AI\x20is\x20writing')):_0x379718&&_0x5acc19['announce'](getTranslation$j(_0x1fe0f0,'Generated\x20content:\x20%0',_0x379718),{'politeness':'polite','isUnsafeHTML':!0x0});}),this['_formView']['on']('change:isError',(_0x328574,_0x16abc6,_0x6a4201)=>{if(_0x6a4201){const _0x5b031e=this['_formView']['errorView']['text'];_0x5acc19['announce'](getTranslation$j(_0x1fe0f0,'Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x5b031e));}});}['_onExecute'](_0x4360ea){const _0xdb8499=this['_commandDefinitions']['get'](_0x4360ea),_0x2b64e9=this['editor'],_0x455f4c=_0x2b64e9['model']['document']['selection'],_0x5ae05e=_0x2b64e9['commands']['get']('showAIAssistant'),_0x5d8046=_0x2b64e9['plugins']['get'](AIAssistantEditing),_0xd0148c=''+(_0xdb8499['groupId']!==UNGROUPED_COMMANDS_GROUP_ID?_0xdb8499['groupLabel']+':\x20':'')+_0xdb8499['label'];if(!0x1!==_0xdb8499['requiresContent']&&_0x455f4c['isCollapsed']){const _0x2b9b0b=first(_0x455f4c['getSelectedBlocks']())||_0x2b64e9['model']['schema']['getLimitElement'](_0x455f4c);_0x2b64e9['model']['change'](_0x3b9641=>{_0x3b9641['setSelection'](_0x2b9b0b,'in');});}_0x5d8046['showFakeVisualSelection'](),_0x5ae05e['execute'](_0xdb8499['prompt'],_0xd0148c,'command:'+_0x4360ea);}['_populateMenuBarMenu'](_0x4c1e8a,_0xe833f8,_0x8066c9,_0x1782cf){const _0x3a8107=this['editor'],_0x1cdc59=_0x3a8107['locale'],_0x2c3ab7=new MenuBarMenuListView(_0x1cdc59),_0x14fcd2=sortDefinitionsByOrder(_0x3a8107,_0x8066c9)['filter'](_0x2db3b2=>_0x2db3b2['commands']['length']);0x1===_0x14fcd2['length']?this['_getMenuBarGroupButtons']({'command':_0x4c1e8a,'commands':_0x14fcd2[0x0]['commands'],'parentMenuView':_0xe833f8,'onExecute':_0x1782cf})['forEach'](_0x19473c=>_0x2c3ab7['items']['add'](_0x19473c)):_0x14fcd2['forEach'](({groupId:_0x22b517,groupLabel:_0x1f8652,commands:_0x8cc123})=>{const _0x442bba=new MenuBarMenuListItemView(_0x1cdc59,_0xe833f8),_0x21615e=new MenuBarMenuView(_0x1cdc59),_0xab0af4=new MenuBarMenuListView(_0x1cdc59),_0x4ef958=this['_getMenuBarGroupButtons']({'command':_0x4c1e8a,'commands':_0x8cc123,'parentMenuView':_0x21615e,'onExecute':_0x1782cf});_0x21615e['buttonView']['set']({'label':_0x1f8652||_0x22b517}),_0x21615e['delegate']('execute')['to'](_0xe833f8),_0xab0af4['items']['addMany'](_0x4ef958),_0x21615e['panelView']['children']['add'](_0xab0af4),_0x442bba['children']['add'](_0x21615e),_0x2c3ab7['items']['add'](_0x442bba);}),_0xe833f8['panelView']['children']['add'](_0x2c3ab7);}['_getMenuBarGroupButtons']({command:_0xbc7e81,commands:_0x5dc944,parentMenuView:_0x11b43d,onExecute:_0x41d060}){const _0x47620f=this['editor'],_0x17d6e5=_0x47620f['locale'];return sortDefinitionsByOrder(_0x47620f,_0x5dc944)['map'](_0x528a3b=>{const _0x124ccc=new MenuBarMenuListItemView(_0x17d6e5,_0x11b43d),_0x414e51=new MenuBarMenuListItemButtonView(_0x17d6e5);return _0x414e51['set']({'label':_0x528a3b['label']}),_0x414e51['delegate']('execute')['to'](_0x11b43d),_0x414e51['on']('execute',()=>_0x41d060(_0x528a3b['id'])),_0x414e51['bind']('isEnabled')['to'](_0xbc7e81,'enabledCommandsIds',_0x22b2f2=>_0x22b2f2['includes'](_0x528a3b['id'])),_0x124ccc['children']['add'](_0x414e51),_0x124ccc;});}}function getMenuDropdownDefinition(_0x5cd6a7){const _0x13248c=normalizeCommandsConfig(_0x5cd6a7['config']['get']('ai.assistant.commands'),_0x5cd6a7['locale']),_0x33d013=sortDefinitionsByOrder(_0x5cd6a7,_0x13248c)['filter'](_0x29b405=>_0x29b405['commands']['length']);return 0x1===_0x33d013['length']?sortDefinitionsByOrder(_0x5cd6a7,_0x33d013[0x0]['commands'])['map'](_0x17d2e4=>({'id':_0x17d2e4['id'],'label':_0x17d2e4['label']})):_0x33d013['map'](_0x343d44=>{const {groupId:_0x37b7e5,groupLabel:_0x1a55f8,commands:_0x8398e7}=_0x343d44,_0x3c7867=sortDefinitionsByOrder(_0x5cd6a7,_0x8398e7)['map'](_0x2a8517=>({'id':_0x2a8517['id'],'label':_0x2a8517['label']}));return{'id':_0x37b7e5,'menu':_0x1a55f8||_0x37b7e5,'children':_0x3c7867};});}function sortDefinitionsCallback(_0x1f0921,_0x36b68e){return void 0x0!==_0x1f0921['order']&&void 0x0===_0x36b68e['order']?0x1:void 0x0===_0x1f0921['order']&&void 0x0!==_0x36b68e['order']?-0x1:void 0x0!==_0x1f0921['order']&&void 0x0!==_0x36b68e['order']?_0x1f0921['order']-_0x36b68e['order']:0x0;}function sortDefinitionsByOrder(_0x3a4c29,_0x430a80){_0x430a80['sort'](sortDefinitionsCallback);const _0x43edf={},_0x4802d1=[];for(const _0x4a47af of _0x430a80)if(void 0x0!==_0x4a47af['order']){if(_0x4a47af['order']in _0x43edf)throw new CKEditorError('ai-commands-config-order-collision',_0x3a4c29,{'conflictingDefinitions':[_0x4a47af,_0x43edf[_0x4a47af['order']]]});_0x43edf[_0x4a47af['order']]=_0x4a47af,_0x4802d1['splice'](_0x4a47af['order'],0x0,_0x4a47af);}else _0x4802d1['push'](_0x4a47af);return _0x4802d1;}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(_0x22dee9){super(_0x22dee9);const _0xb3f5af=_0x22dee9['config'],_0x52a78b=_0x22dee9['locale'];_0xb3f5af['define']('ai.assistant.preserveComments',!0x0),_0xb3f5af['define']('ai.assistant.commands',getDefaultAICommands(_0x52a78b)),_0xb3f5af['define']('ai.assistant.extraCommandGroups',[]),_0xb3f5af['define']('ai.assistant.removeCommands',[]);let _0x2eec21=normalizeCommandsConfig(_0xb3f5af['get']('ai.assistant.commands'),_0x52a78b);const _0x3349f8=_0xb3f5af['get']('ai.assistant.extraCommandGroups'),_0x4d4716=_0xb3f5af['get']('ai.assistant.removeCommands');_0x3349f8['forEach'](_0xfe9dff=>{const _0x19a5e4=_0x2eec21['find'](_0x37bcb6=>_0x37bcb6['groupId']===_0xfe9dff['groupId']);_0x19a5e4?_0x19a5e4['commands']=_0x19a5e4['commands']['concat'](_0xfe9dff['commands']):_0x2eec21['push'](_0xfe9dff);}),_0x2eec21=_0x2eec21['filter'](_0x279f60=>!_0x4d4716['includes'](_0x279f60['groupId'])),_0x2eec21['forEach'](_0x184012=>{_0x184012['commands']=_0x184012['commands']['filter'](_0x1b55f0=>!_0x4d4716['includes'](_0x1b55f0['id']));}),_0xb3f5af['set']('ai.assistant.commands',_0x2eec21);}}function getDefaultAICommands(_0x59f0af){return[{'groupId':'editOrReview','groupLabel':getTranslation$j(_0x59f0af,'Edit\x20or\x20review'),'commands':[{'id':'improveWriting','label':getTranslation$j(_0x59f0af,'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(_0x59f0af,'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(_0x59f0af,'Make\x20longer'),'prompt':'Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.'},{'id':'simplifyLanguage','label':getTranslation$j(_0x59f0af,'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(_0x59f0af,'Generate\x20from\x20selection'),'commands':[{'id':'summarize','label':getTranslation$j(_0x59f0af,'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(_0x59f0af,'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(_0x59f0af,'Change\x20tone'),'commands':[{'id':'professional','label':getTranslation$j(_0x59f0af,'Professional'),'prompt':'Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'},{'id':'casual','label':getTranslation$j(_0x59f0af,'Casual'),'prompt':'Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.'},{'id':'direct','label':getTranslation$j(_0x59f0af,'Direct'),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':'confident','label':getTranslation$j(_0x59f0af,'Confident'),'prompt':'Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'},{'id':'friendly','label':getTranslation$j(_0x59f0af,'Friendly'),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':'changeStyle','groupLabel':getTranslation$j(_0x59f0af,'Change\x20style'),'commands':[{'id':'business','label':getTranslation$j(_0x59f0af,'Business'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.'},{'id':'legal','label':getTranslation$j(_0x59f0af,'Legal'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.'},{'id':'journalism','label':getTranslation$j(_0x59f0af,'Journalism'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':'poetic','label':getTranslation$j(_0x59f0af,'Poetic'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'}]},{'groupId':'translate','groupLabel':getTranslation$j(_0x59f0af,'Translate'),'commands':[{'id':'translateEnglish','label':getTranslation$j(_0x59f0af,'English'),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':'translateSpanish','label':getTranslation$j(_0x59f0af,'Spanish'),'prompt':'Translate\x20the\x20content\x20to\x20Spanish\x20language.'},{'id':'translatePortuguese','label':getTranslation$j(_0x59f0af,'Portuguese'),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':'translateGerman','label':getTranslation$j(_0x59f0af,'German'),'prompt':'Translate\x20the\x20content\x20to\x20German\x20language.'},{'id':'translateFrench','label':getTranslation$j(_0x59f0af,'French'),'prompt':'Translate\x20the\x20content\x20to\x20French\x20language.'},{'id':'translateChinese','label':getTranslation$j(_0x59f0af,'Simplified\x20Chinese'),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':'translateHindi','label':getTranslation$j(_0x59f0af,'Hindi'),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':'translateArabic','label':getTranslation$j(_0x59f0af,'Arabic'),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}];}class AITextAdapter extends Plugin{['abortController'];static get['requires'](){return[AIAdapter];}constructor(_0x4ce1cf){super(_0x4ce1cf),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'](_0x59a59c){return this['sendRequest'](_0x59a59c)['catch'](_0x512029=>{if(_0x512029 instanceof AIRequestError)return Promise['reject'](_0x512029);if('AbortError'==_0x512029['name'])return Promise['resolve']();throw console['error'](_0x512029),new CKEditorError('aitextadapter-send-request-failed',null);});}async['_prepareRequestHeaders'](_0xafcf3f,_0x14e664){const _0x3c723f=this['editor']['locale'],_0x16dc05={'Content-Type':'application/json'};if('object'==typeof _0xafcf3f)Object['assign'](_0x16dc05,_0xafcf3f);else{if(_0xafcf3f)try{const _0x378228=await _0xafcf3f(_0x14e664);Object['assign'](_0x16dc05,_0x378228);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0x3c723f,'AI_ERROR_GET_HEADERS')));}}return _0x16dc05;}async['_prepareRequestParameters'](_0x28ec9e,_0x1621bc){const _0x303967=this['editor']['locale'];if('object'==typeof _0x28ec9e)return _0x28ec9e;try{return await _0x28ec9e(_0x1621bc);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0x303967,'AI_ERROR_GET_PARAMETERS')));}}}class OpenAITextAdapter extends AITextAdapter{['_apiUrl'];['_requestHeaders'];['_requestParameters'];static get['pluginName'](){return'OpenAITextAdapter';}constructor(_0x249d89){super(_0x249d89),_0x249d89['config']['define']('ai.assistant.adapter.openAI.apiUrl','https://api.openai.com/v1/chat/completions'),_0x249d89['config']['get']('ai.assistant.adapter.openAI.requestParameters')||_0x249d89['config']['define']('ai.assistant.adapter.openAI.requestParameters',{'model':'gpt-4o','temperature':0x1,'top_p':0x1,'stream':!0x0}),this['_apiUrl']=_0x249d89['config']['get']('ai.assistant.adapter.openAI.apiUrl'),this['_requestHeaders']=_0x249d89['config']['get']('ai.assistant.adapter.openAI.requestHeaders')||{},this['_requestParameters']=_0x249d89['config']['get']('ai.assistant.adapter.openAI.requestParameters');}async['sendRequest']({query:_0x1afb11,context:_0xb65e70,onData:_0x13b586,actionId:_0x4f1e21}){const _0x5aac7a=this['editor']['locale'],_0x16c090=await this['prepareMessages'](_0x1afb11,_0xb65e70,_0x4f1e21),_0x45dca8=await this['_prepareRequestHeaders'](this['_requestHeaders'],_0x4f1e21),_0x19257f=await this['_prepareRequestParameters'](this['_requestParameters'],_0x4f1e21),_0x456022={'messages':_0x16c090,..._0x19257f},_0x2af963={'method':'POST','headers':_0x45dca8,'body':JSON['stringify'](_0x456022),'signal':this['abortController']['signal']},_0x21012f=await fetch(this['_apiUrl'],_0x2af963);if(_0x21012f['ok'])return _0x19257f['stream']?await this['_readStreamableResponse'](_0x21012f,_0x13b586):await this['_readStaticResponse'](_0x21012f,_0x13b586),Promise['resolve']();{const _0x1a12c8=await _0x21012f['text']();return _0x1a12c8['includes']('context_length_exceeded')?Promise['reject'](new AIRequestError(getTranslation$j(_0x5aac7a,'AI_ERROR_CONTEXT_LENGTH'))):_0x1a12c8['includes']('Moderation')?Promise['reject'](new AIRequestError(getTranslation$j(_0x5aac7a,'AI_ERROR_MODERATION'))):Promise['reject'](new Error(_0x1a12c8));}}async['prepareMessages'](_0x1a1225,_0xbc923a,_0x2e8ec8){let _0x226ce5,_0x22d19d;return _0xbc923a?(_0x226ce5='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.',_0x22d19d='Instruction:\x0a'+_0x1a1225+'\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'+_0xbc923a):(_0x226ce5='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.',_0x22d19d=_0x1a1225),[{'role':'system','content':_0x226ce5},{'role':'user','content':_0x22d19d}];}async['_readStreamableResponse'](_0x3723a5,_0x5d66da){const _0x406f38=_0x3723a5['body']['getReader'](),_0x2abaf3=new TextDecoder();let _0xa9992e='',_0x472a71='',_0x4ab56b='',_0x301a3c=!0x1;for(;!_0x301a3c;){const {done:_0x1d37a7,value:_0x567c0d}=await _0x406f38['read'](),_0x2aa87a=_0xa9992e+_0x2abaf3['decode'](_0x567c0d);let _0x437bb8='';_0x301a3c=_0x1d37a7;try{_0x437bb8=this['_cleanUpData'](_0x2aa87a),_0xa9992e='';}catch{_0xa9992e=_0x2aa87a;continue;}_0x472a71+=_0x437bb8,!_0x301a3c&&this['_isBufferIncomplete'](_0x472a71)||_0x472a71&&(_0x4ab56b+=_0x472a71,_0x472a71='',_0x5d66da(_0x4ab56b));}return Promise['resolve']();}async['_readStaticResponse'](_0x3b6089,_0x22264e){return _0x22264e((await _0x3b6089['json']())['choices'][0x0]['message']['content']),Promise['resolve']();}['_isBufferIncomplete'](_0x19fa8f){const _0x2ca0bb=_0x19fa8f['split']('<')['length']!==_0x19fa8f['split']('>')['length'],_0x56ec3d=_0x19fa8f['length']<0x1e;return _0x2ca0bb&&_0x56ec3d;}['_cleanUpData'](_0x46e4c5){return _0x46e4c5['split'](/\n(?![^{]*\})/g)['map'](_0x1be16b=>_0x1be16b['replace']('data:\x20',''))['filter'](_0x3a2c26=>_0x3a2c26&&_0x3a2c26['length']>0x0&&'[DONE]'!==_0x3a2c26)['map'](_0x2ace20=>{const {choices:_0x2ea68f}=JSON['parse'](_0x2ace20);if(_0x2ea68f[0x0]?.['delta']?.['content'])return _0x2ea68f[0x0]['delta']['content'];})['filter'](_0x4a9334=>_0x4a9334)['join']('');}}class AWSTextAdapter extends AITextAdapter{static get['pluginName'](){return'AWSTextAdapter';}['init'](){super['init'](),logWarning('ai-aws-adapter-not-supported');}async['sendRequest'](_0x3a20f0){throw logError('ai-aws-adapter-not-supported'),new AIRequestError(getTranslation$j(this['editor']['locale'],'AI_ERROR_AWS_NOT_SUPPORTED'));}}class TabButtonView extends ButtonView{constructor(_0x427c09,_0x47169c={}){super(_0x427c09),this['isToggleable']=!0x0,this['set']('side',_0x47169c['side']||'top');const _0x1e1d70=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-tab-button',...toArray$1(_0x47169c['class']||[]),_0x1e1d70['to']('side',_0x4b5e2d=>'ck-tab-button_'+_0x4b5e2d),_0x1e1d70['to']('class')]}});}['show'](){this['set']('isVisible',!0x0);}['hide'](){this['set']('isVisible',!0x1);}}class TabPanelView extends View{['children'];constructor(_0x2f4006,_0x478830={}){super(_0x2f4006);const _0x4f379e=this['bindTemplate'];this['set']('isVisible',!0x1),this['set']('class',''),this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-tab-panel',...toArray$1(_0x478830['class']||[]),_0x4f379e['to']('class'),_0x4f379e['if']('isVisible','ck-hidden',_0x14aded=>!_0x14aded)]},'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(_0x1af2ba,_0x41d57b={}){super(_0x1af2ba),this['set']('class',void 0x0),this['set']('activeTab',null),this['set']('side',_0x41d57b['side']||'top'),this['set']('isMaximized',!0x1);const _0x3c4cc9=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-tabs',...toArray$1(_0x41d57b['class']||[]),_0x3c4cc9['to']('side',_0x388acc=>'ck-tabs_'+_0x388acc),_0x3c4cc9['to']('class'),_0x3c4cc9['to']('isMaximized',_0x552910=>_0x552910?'ck-ai-tabs_maximized':'')],'tabindex':'0'},'children':[{'tag':'div','attributes':{'class':['ck','ck-tabs__buttons-container',_0x3c4cc9['to']('side',_0x40c5f9=>'ck-tabs__buttons-container_'+_0x40c5f9)]},'children':this['buttonViews']},{'tag':'div','attributes':{'class':['ck','ck-tabs__panels-container',_0x3c4cc9['to']('side',_0x48bbbf=>'ck-tabs__panels-container_'+_0x48bbbf)]},'children':this['panelViews']},...toArray$1(_0x41d57b['children']||[])]});}['getTabIds'](){return[...this['_tabs']['keys']()];}['getTab'](_0x3cb2d7){const _0x75a420=this['_tabs']['get'](_0x3cb2d7);return _0x75a420||null;}['addTab'](_0x937526){const _0x9b95f0=this['_setupButton']({'id':_0x937526['id'],'label':_0x937526['buttonLabel'],'icon':_0x937526['buttonIcon'],'order':_0x937526['order']}),_0x897a55=new TabPanelView(this['locale']);return _0x897a55['render'](),_0x937526['content']&&_0x897a55['children']['add'](_0x937526['content']),this['panelViews']['add'](_0x897a55),this['_tabs']['set'](_0x937526['id'],{'button':_0x9b95f0,'panel':_0x897a55,'order':void 0x0!==_0x937526['order']?_0x937526['order']:null}),this['fire']('addTab:'+_0x937526['id'],{'id':_0x937526['id'],'button':_0x9b95f0,'panel':_0x897a55}),null===this['activeTab']?this['activateTab'](_0x937526['id']):this['_hidePanel'](_0x937526['id']),{'button':_0x9b95f0,'panel':_0x897a55};}['activateTab'](_0x507f01){if(null!==_0x507f01&&!this['getTab'](_0x507f01))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x507f01});this['activeTab']!==_0x507f01&&(this['activeTab']&&this['_hidePanel'](this['activeTab']),this['activeTab']=_0x507f01,_0x507f01&&this['_showPanel'](_0x507f01),this['fire']('activateTab:'+_0x507f01,_0x507f01));}['showTab'](_0xf1e82e){if(!this['getTab'](_0xf1e82e))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0xf1e82e});this['_showPanel'](_0xf1e82e),this['_showButton'](_0xf1e82e),this['fire']('show:'+_0xf1e82e,_0xf1e82e);}['hideTab'](_0x19cc1a){if(!this['getTab'](_0x19cc1a))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x19cc1a});const _0x54b7cf=this['activeTab'];this['_hidePanel'](_0x19cc1a),this['_hideButton'](_0x19cc1a);const _0x10fa40=this['getTabIds']();_0x54b7cf===_0x19cc1a&&_0x10fa40['length']>0x1&&this['activateTab'](_0x10fa40['find'](_0x420db8=>_0x420db8!==_0x19cc1a)),this['fire']('hide:'+_0x19cc1a,_0x19cc1a);}['_getPanel'](_0x541c34){const _0x48baf3=this['_tabs']['get'](_0x541c34);return _0x48baf3?_0x48baf3['panel']:null;}['_showPanel'](_0x25d751){null!==this['activeTab']&&this['activeTab']!==_0x25d751||this['_getPanel'](_0x25d751)['show']();}['_hidePanel'](_0xd5cef){const _0x201e8a=this['_getPanel'](_0xd5cef);_0x201e8a['isVisible']&&(this['activeTab']===_0xd5cef&&(this['activeTab']=null),_0x201e8a['hide']());}['_getButton'](_0x1d3835){const _0x49b98e=this['_tabs']['get'](_0x1d3835);return _0x49b98e?_0x49b98e['button']:null;}['_showButton'](_0x333340){this['_getButton'](_0x333340)['show']();}['_hideButton'](_0x5ade7c){this['_getButton'](_0x5ade7c)['hide']();}['_setupButton'](_0x530afe){const _0x3ce39c=new TabButtonView(this['locale'],{'side':this['side']}),_0x5554fb=this['buttonViews'];if(_0x3ce39c['set']({'label':_0x530afe['label'],'icon':_0x530afe['icon'],'tooltip':!0x0,'withText':!0x0}),_0x3ce39c['bind']('isOn')['to'](this,'activeTab',_0xdad018=>_0xdad018===_0x530afe['id']),_0x3ce39c['bind']('side')['to'](this,'side'),_0x530afe['order']){const _0x2a2f72=[...this['_tabs']]['reduce']((_0xfbba7f,_0x5a7e24)=>{const _0x303605=_0x5a7e24[0x0],{order:_0x52c178}=_0x5a7e24[0x1];return!_0x52c178||_0x52c178>_0x530afe['order']?_0xfbba7f:_0x52c178>=_0xfbba7f['order']?{'id':_0x303605,'order':_0x52c178}:_0xfbba7f;},{'id':'','order':0x0}),_0x56d93f=_0x5554fb['getIndex'](this['_getButton'](_0x2a2f72['id']));_0x5554fb['add'](_0x3ce39c,_0x56d93f+0x1);}else _0x5554fb['add'](_0x3ce39c);return _0x3ce39c['on']('execute',()=>{this['activateTab'](_0x530afe['id']);}),_0x3ce39c;}}const AI_TABS_VIEW_TYPES=['overlay','sidebar','custom'],AI_TABS_VIEW_SIDES=['left','right'];class AITabsMainView extends AITabsView{constructor(_0x5165f9,_0x33b41e={}){super(_0x5165f9,_0x33b41e),this['set']('type',_0x33b41e['type']||'sidebar'),this['set']('side',_0x33b41e['side']||'right'),this['set']('isVisible',_0x33b41e['visibleByDefault']??!0x0);const _0x2a4a1e=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-tabs',_0x2a4a1e['if']('type','ck-ai-tabs__overlay',_0x4c9038=>'overlay'===_0x4c9038),_0x2a4a1e['if']('type','ck-ai-tabs__sidebar',_0x27fb7f=>'sidebar'===_0x27fb7f),_0x2a4a1e['if']('isVisible','ck-hidden',_0x42a40f=>!_0x42a40f)]}}),this['buttonViews']['on']('add',(_0x34d226,_0x1c0e91)=>{_0x1c0e91['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(_0x173bde){super(_0x173bde);const _0x5d657d=this['context']['config']['get']('ai.container');if(this['set']('side','right'),!_0x5d657d)throw new CKEditorError('ai-tabs-configuration-not-found');if(void 0x0!==_0x5d657d['showResizeButton']&&(this['showResizeButton']=_0x5d657d['showResizeButton']),'sidebar'!==_0x5d657d['type']&&'overlay'!==_0x5d657d['type']||_0x5d657d['side']&&(this['side']=_0x5d657d['side']),'sidebar'===_0x5d657d['type']){if(this['container']=_0x5d657d['element'],this['set']('type','sidebar'),!this['container'])throw new CKEditorError('ai-tabs-sidebar-container-element-not-found');}else'overlay'===_0x5d657d['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':void 0x0===_0x5d657d['visibleByDefault']||_0x5d657d['visibleByDefault']}),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']);}['switchType'](_0x3efcd3){if(_0x3efcd3&&this['type']!==_0x3efcd3){if(!AI_TABS_VIEW_TYPES['includes'](_0x3efcd3))throw new CKEditorError('ai-tabs-unsupported-ui-type');this['type']=_0x3efcd3;}}['switchSide'](_0x188e02){if(_0x188e02&&this['side']!==_0x188e02){if(!AI_TABS_VIEW_SIDES['includes'](_0x188e02))throw new CKEditorError('ai-tabs-unsupported-ui-side');this['side']=_0x188e02;}}['resize'](){this['view']['isMaximized']=!this['view']['isMaximized'],this['fire']('resizedTabs',this['view']['isMaximized']);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['view']['element']&&this['view']['element']['remove']();}}class ParseError extends Error{constructor(_0x4f23a5,_0x50c5d8){super(_0x4f23a5),this['name']='ParseError',this['type']=_0x50c5d8['type'],this['field']=_0x50c5d8['field'],this['value']=_0x50c5d8['value'],this['line']=_0x50c5d8['line'];}}function noop$1(_0x6d8816){}function createParser(_0x4f0743){if('function'==typeof _0x4f0743)throw new TypeError('`callbacks`\x20must\x20be\x20an\x20object,\x20got\x20a\x20function\x20instead.\x20Did\x20you\x20mean\x20`{onEvent:\x20fn}`?');const {onEvent:_0x2e511c=noop$1,onError:_0x2cb932=noop$1,onRetry:_0x2e49e6=noop$1,onComment:_0x535b80}=_0x4f0743;let _0x519688,_0x3c8ee9='',_0x550dc9=!0x0,_0x295747='',_0x5fe0e0='';function _0x50874e(_0x4a50ae){if(''===_0x4a50ae)return _0x295747['length']>0x0&&_0x2e511c({'id':_0x519688,'event':_0x5fe0e0||void 0x0,'data':_0x295747['endsWith']('\x0a')?_0x295747['slice'](0x0,-0x1):_0x295747}),_0x519688=void 0x0,_0x295747='',void(_0x5fe0e0='');if(_0x4a50ae['startsWith'](':'))return void(_0x535b80&&_0x535b80(_0x4a50ae['slice'](_0x4a50ae['startsWith'](':\x20')?0x2:0x1)));const _0x5901be=_0x4a50ae['indexOf'](':');if(-0x1!==_0x5901be){const _0x24d205=_0x4a50ae['slice'](0x0,_0x5901be),_0xedda1='\x20'===_0x4a50ae[_0x5901be+0x1]?0x2:0x1;return void _0x87ed05(_0x24d205,_0x4a50ae['slice'](_0x5901be+_0xedda1),_0x4a50ae);}_0x87ed05(_0x4a50ae,'',_0x4a50ae);}function _0x87ed05(_0x19a461,_0x4ae0db,_0x537232){switch(_0x19a461){case'event':_0x5fe0e0=_0x4ae0db;break;case'data':_0x295747=''+_0x295747+_0x4ae0db+'\x0a';break;case'id':_0x519688=_0x4ae0db['includes']('\x00')?void 0x0:_0x4ae0db;break;case'retry':/^\d+$/['test'](_0x4ae0db)?_0x2e49e6(parseInt(_0x4ae0db,0xa)):_0x2cb932(new ParseError('Invalid\x20`retry`\x20value:\x20\x22'+_0x4ae0db+'\x22',{'type':'invalid-retry','value':_0x4ae0db,'line':_0x537232}));break;default:_0x2cb932(new ParseError('Unknown\x20field\x20\x22'+(_0x19a461['length']>0x14?_0x19a461['slice'](0x0,0x14)+'…':_0x19a461)+'\x22',{'type':'unknown-field','field':_0x19a461,'value':_0x4ae0db,'line':_0x537232}));}}return{'feed':function(_0x2f39b5){const _0x40dd11=_0x550dc9?_0x2f39b5['replace'](/^\xEF\xBB\xBF/,''):_0x2f39b5,[_0x35df71,_0x59bba4]=splitLines(''+_0x3c8ee9+_0x40dd11);for(const _0x2e312d of _0x35df71)_0x50874e(_0x2e312d);_0x3c8ee9=_0x59bba4,_0x550dc9=!0x1;},'reset':function(_0x464f20={}){_0x3c8ee9&&_0x464f20['consume']&&_0x50874e(_0x3c8ee9),_0x550dc9=!0x0,_0x519688=void 0x0,_0x295747='',_0x5fe0e0='',_0x3c8ee9='';}};}function splitLines(_0x19c714){const _0x280f24=[];let _0x2ce290='',_0x179f20=0x0;for(;_0x179f20<_0x19c714['length'];){const _0x6f566c=_0x19c714['indexOf']('\x0d',_0x179f20),_0x1f35a9=_0x19c714['indexOf']('\x0a',_0x179f20);let _0x564a53=-0x1;if(-0x1!==_0x6f566c&&-0x1!==_0x1f35a9?_0x564a53=Math['min'](_0x6f566c,_0x1f35a9):-0x1!==_0x6f566c?_0x564a53=_0x6f566c:-0x1!==_0x1f35a9&&(_0x564a53=_0x1f35a9),-0x1===_0x564a53){_0x2ce290=_0x19c714['slice'](_0x179f20);break;}{const _0x437807=_0x19c714['slice'](_0x179f20,_0x564a53);_0x280f24['push'](_0x437807),_0x179f20=_0x564a53+0x1,'\x0d'===_0x19c714[_0x179f20-0x1]&&'\x0a'===_0x19c714[_0x179f20]&&_0x179f20++;}}return[_0x280f24,_0x2ce290];}const MODEL_COMPATIBILITY_VERSION='1';class AIConnector extends ContextPlugin{['_apiUrl'];['_token'];['_decoder'];static get['requires'](){return['CloudServices'];}static get['pluginName'](){return'AIConnector';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d405e){super(_0x3d405e),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();}['init'](){const _0x24f7df=this['context']['plugins']['get']('CloudServices');if(!_0x24f7df['token'])throw new CKEditorError('ai-missing-token',this);this['_token']=_0x24f7df['token'];}['startConversation'](_0x18f203,_0x3136c2){const _0x2d1906=this['_sendApiRequest']('/conversations','POST',{'id':_0x18f203,'group':_0x3136c2});return{'getConversation':async()=>(await _0x2d1906['request'])['json'](),'abortController':_0x2d1906['abortController']};}['queryAssistant']({message:_0x52fbfa,conversationId:_0x56b96b,parts:_0x28c442,capabilities:_0x5de72f,model:_0x45cb3c,attributes:_0x4b04c2}){const _0x2edb58={'prompt':_0x52fbfa,'content':_0x28c442,'model':_0x45cb3c,..._0x5de72f&&{'capabilities':_0x5de72f},..._0x4b04c2&&{'attributes':_0x4b04c2}},_0x21e75b=this['_sendApiRequest']('/conversations/'+_0x56b96b+'/messages','POST',_0x2edb58);return{'getStream':async()=>{const _0x76af82=(await _0x21e75b['request'])['body'];return this['_getStreamReader'](_0x76af82);},'abortController':_0x21e75b['abortController']};}['executeCustomAction']({content:_0x4c3da2,message:_0x478e99,model:_0x413eaa,outputFormat:_0x382321}){const _0x2cd2a3={'content':[{'type':'text','content':_0x4c3da2}],'prompt':_0x478e99,'model':_0x413eaa,'outputFormat':_0x382321},_0x405d37=this['_sendApiRequest']('/actions/custom/calls','POST',_0x2cd2a3);return{'getStream':async()=>{const _0x5d979=(await _0x405d37['request'])['body'];return this['_getStreamReader'](_0x5d979);},'abortController':_0x405d37['abortController']};}['executeAction']({actionName:_0x43a642,content:_0x8cb269,args:_0xb3e9ae}){const _0x1c1246={'content':[{'type':'text','content':_0x8cb269}],'args':_0xb3e9ae},_0x4d50fb=this['_sendApiRequest']('/actions/system/'+_0x43a642+'/calls','POST',_0x1c1246);return{'getStream':async()=>{const _0x3e2186=(await _0x4d50fb['request'])['body'];return this['_getStreamReader'](_0x3e2186);},'abortController':_0x4d50fb['abortController']};}['uploadFile'](_0x481e4d,_0x2feb30,_0x1c9309){const _0x490f90=new FormData();_0x490f90['append']('file',_0x2feb30,_0x2feb30['name']),_0x1c9309&&_0x490f90['append']('attributes',JSON['stringify'](_0x1c9309));const _0x2615fe=this['_sendApiRequest']('/conversations/'+_0x481e4d+'/files','POST',_0x490f90);return{'getId':async()=>(await _0x2615fe['request'])['json'](),'abortController':_0x2615fe['abortController']};}['fetchDocument'](_0x207248,_0x59a279){const _0x5dc193=this['_sendApiRequest']('/conversations/'+_0x207248+'/documents/'+_0x59a279,'GET');return{'getDocument':async()=>(await _0x5dc193['request'])['json'](),'abortController':_0x5dc193['abortController']};}['uploadDocument'](_0x3b6bbc,_0x111212,_0x5a22ad){const _0x305faf={'content':_0x111212};_0x5a22ad&&(_0x305faf['attributes']=_0x5a22ad);const _0x3e45d3=this['_sendApiRequest']('/conversations/'+_0x3b6bbc+'/documents','POST',_0x305faf);return{'getId':async()=>(await _0x3e45d3['request'])['json'](),'abortController':_0x3e45d3['abortController']};}['fetchConversations'](_0x1c637c,_0x4187a7={}){const _0x314216=new URLSearchParams();_0x314216['append']('group',_0x1c637c),_0x314216['append']('excludeEmpty',!0x1!==_0x4187a7['excludeEmpty']?'true':'false'),_0x314216['append']('limit',_0x4187a7['limit']?_0x4187a7['limit']['toString']():'100'),_0x314216['append']('sortBy',_0x4187a7['sortBy']?_0x4187a7['sortBy']:'createdAt'),_0x314216['append']('order',_0x4187a7['order']?_0x4187a7['order']:'desc');const _0x2ee839=this['_sendApiRequest']('/conversations?'+_0x314216['toString'](),'GET');return{'getConversations':async()=>{const _0x4564b3=await _0x2ee839['request'];return(await _0x4564b3['json']())['items'];},'abortController':_0x2ee839['abortController']};}['deleteConversation'](_0x356c36){const _0x32b13d=this['_sendApiRequest']('/conversations/'+_0x356c36,'DELETE');return{'execute':async()=>{await _0x32b13d['request'];},'abortController':_0x32b13d['abortController']};}['updateConversation'](_0xb45f59,_0x113453){const _0xc1d50a=this['_sendApiRequest']('/conversations/'+_0xb45f59,'PATCH',_0x113453);return{'getResult':async()=>(await _0xc1d50a['request'],_0x113453),'abortController':_0xc1d50a['abortController']};}['fetchConversation'](_0x21a568){const _0x5cdd5c=this['_sendApiRequest']('/conversations/'+_0x21a568,'GET');return{'getConversation':async()=>(await _0x5cdd5c['request'])['json'](),'abortController':_0x5cdd5c['abortController']};}['fetchConversationMessages'](_0x5a678e){const _0x291a0d=this['_sendApiRequest']('/conversations/'+_0x5a678e+'/messages','GET');return{'getMessages':async()=>{const _0x118092=await _0x291a0d['request'];return(await _0x118092['json']())['items'];},'abortController':_0x291a0d['abortController']};}['uploadUrl'](_0x329c1f,_0x176422,_0x5d636b){const _0x25b341=this['_sendApiRequest']('/conversations/'+_0x329c1f+'/web-resources','POST',{'url':_0x176422,'attributes':_0x5d636b});return{'getId':async()=>(await _0x25b341['request'])['json'](),'abortController':_0x25b341['abortController']};}['getModels'](_0x50aba4='en'){const _0x51f3ae=new URLSearchParams();_0x51f3ae['append']('language',_0x50aba4);const _0x1a154b='/models/'+MODEL_COMPATIBILITY_VERSION+'?'+_0x51f3ae['toString'](),_0x23f1bd=this['_sendApiRequest'](_0x1a154b,'GET');return{'list':async()=>await(await _0x23f1bd['request'])['json'](),'abortController':_0x23f1bd['abortController']};}['deleteFile'](_0x253249,_0x4d3d69){const _0x35139e=this['_sendApiRequest']('/conversations/'+_0x253249+'/files/'+_0x4d3d69,'DELETE');return{'execute':async()=>{await _0x35139e['request'];},'abortController':_0x35139e['abortController']};}['deleteDocument'](_0x10ddb2,_0x229e83){const _0x84fa23=this['_sendApiRequest']('/conversations/'+_0x10ddb2+'/documents/'+_0x229e83,'DELETE');return{'execute':async()=>{await _0x84fa23['request'];},'abortController':_0x84fa23['abortController']};}['deleteWebResource'](_0x48656a,_0x565f81){const _0x3dadbd=this['_sendApiRequest']('/conversations/'+_0x48656a+'/web-resources/'+_0x565f81,'DELETE');return{'execute':async()=>{await _0x3dadbd['request'];},'abortController':_0x3dadbd['abortController']};}['callSystemReview']({reviewName:_0x3cd1a3,content:_0x2bc25c,args:_0x2d3ade}){const _0x15471c=this['_sendApiRequest']('/reviews/system/'+_0x3cd1a3+'/calls','POST',{'content':[{'type':'text','content':_0x2bc25c}],'args':_0x2d3ade});return{'getStream':async()=>{const _0x41e43a=(await _0x15471c['request'])['body'];return this['_getStreamReader'](_0x41e43a);},'abortController':_0x15471c['abortController']};}['callCustomReview']({content:_0x2e8015,prompt:_0x23d1d8,model:_0x25619b}){const _0x57dcef=this['_sendApiRequest']('/reviews/custom/calls','POST',{'content':[{'type':'text','content':_0x2e8015}],'prompt':_0x23d1d8,'model':_0x25619b});return{'getStream':async()=>{const _0x52af51=(await _0x57dcef['request'])['body'];return this['_getStreamReader'](_0x52af51);},'abortController':_0x57dcef['abortController']};}['upsertAIChatRating'](_0x117c76,_0x404c24,_0x1bc07d){const _0x1fc7dd=this['_sendApiRequest']('/conversations/'+_0x117c76+'/messages/'+_0x404c24+'/ratings','PUT',{'positiveCount':_0x1bc07d['positiveCount'],'totalCount':_0x1bc07d['totalCount'],'modificationId':_0x1bc07d['modificationId']});return{'execute':async()=>{await _0x1fc7dd['request'];},'abortController':_0x1fc7dd['abortController']};}['upsertAIActionRating'](_0x34e156,_0x5c9e1c,_0x55ffe4){const _0x435894=this['_sendApiRequest']('/actions/system/'+_0x34e156+'/calls/'+_0x5c9e1c+'/ratings','PUT',{'positiveCount':_0x55ffe4['positiveCount'],'totalCount':_0x55ffe4['totalCount']});return{'execute':async()=>{await _0x435894['request'];},'abortController':_0x435894['abortController']};}['upsertCustomAIActionRating'](_0x354a8a,_0x18cd64){const _0x35b7c4=this['_sendApiRequest']('/actions/custom/calls/'+_0x354a8a+'/ratings','PUT',{'positiveCount':_0x18cd64['positiveCount'],'totalCount':_0x18cd64['totalCount']});return{'execute':async()=>{await _0x35b7c4['request'];},'abortController':_0x35b7c4['abortController']};}['upsertAIReviewRating'](_0x2cb277,_0x1c8852,_0x467c85,_0x1b88e7){const _0x30d559=this['_sendApiRequest']('/reviews/system/'+_0x2cb277+'/calls/'+_0x1c8852+'/ratings','PUT',{'positiveCount':_0x467c85['positiveCount'],'totalCount':_0x467c85['totalCount'],'dataId':_0x1b88e7});return{'execute':async()=>{await _0x30d559['request'];},'abortController':_0x30d559['abortController']};}['upsertCustomAIReviewRating'](_0x31030d,_0x571545,_0x49ebbe){const _0x2764df=this['_sendApiRequest']('/reviews/custom/calls/'+_0x31030d+'/ratings','PUT',{'positiveCount':_0x571545['positiveCount'],'totalCount':_0x571545['totalCount'],'dataId':_0x49ebbe});return{'execute':async()=>{await _0x2764df['request'];},'abortController':_0x2764df['abortController']};}['_sendApiRequest'](_0x92cc98,_0x393d2a,_0x57f582){const _0x35eebf=new AbortController(),_0x8757e3=_0x57f582 instanceof FormData,_0x54d926={'Authorization':'Bearer\x20'+this['_token']?.['value']};_0x57f582&&!_0x8757e3&&(_0x54d926['Content-Type']='application/json');const _0x209604={'method':_0x393d2a,'headers':_0x54d926,'signal':_0x35eebf['signal']};_0x57f582&&(_0x209604['body']=_0x8757e3?_0x57f582:JSON['stringify'](_0x57f582));const _0x16a3d8=fetch(''+this['_apiUrl']+_0x92cc98,_0x209604)['catch'](_0x3ce6b4=>{this['_handleError'](_0x3ce6b4);})['then'](_0x14f38d=>_0x14f38d['ok']?_0x14f38d:_0x14f38d['json']()['then'](_0x2f09a6=>{throw{'url':this['_apiUrl'],'path':_0x92cc98,'method':_0x393d2a,'body':_0x57f582,'status':(_0x14f38d||{})['status'],'statusText':(_0x14f38d||{})['statusText'],'code':_0x2f09a6['code'],'message':_0x2f09a6['message'],'traceId':_0x2f09a6['traceId']};}));return{'request':_0x16a3d8,'abortController':_0x35eebf};}async*['_getStreamReader'](_0x10cc5f){const _0x120ec3=[],_0x326899=_0x10cc5f['getReader'](),_0x3f0cd1=createParser({'onError':_0x1896c6=>{this['_handleError'](_0x1896c6);},'onEvent':_0xb0b1bc=>{_0xb0b1bc['data']=JSON['parse'](_0xb0b1bc['data']),_0x120ec3['push'](_0xb0b1bc);}});try{let _0x173f99=!0x1;for(;!_0x173f99;){const {done:_0x508443,value:_0x3b622c}=await _0x326899['read']();_0x508443&&(_0x173f99=!0x0),_0x3f0cd1['feed'](this['_decoder']['decode'](_0x3b622c,{'stream':!0x0})),yield*_0x120ec3,_0x120ec3['length']=0x0;}}catch(_0x5dbbe9){this['_handleError'](_0x5dbbe9);}finally{_0x326899['releaseLock'](),_0x3f0cd1['reset']();}}['_handleError'](_0x5ec65e){if(_0x5ec65e instanceof CKEditorError)throw _0x5ec65e;if(_0x5ec65e instanceof Error&&'AbortError'===_0x5ec65e['name'])throw new CKEditorError('ai-request-aborted',this,{'originalError':_0x5ec65e});throw new CKEditorError('ai-request-failed',this,{'originalError':_0x5ec65e});}}function getTranslation$i(_0x291516,_0x3df820,_0x303e74){const t=_0x291516['t'];switch(_0x3df820){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'},_0x303e74);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':'The\x20request\x20was\x20aborted.'});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.'},_0x303e74);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.'},_0x303e74);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.'},_0x303e74);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'},_0x303e74);case'AI_CHAT_SUGGESTION_ACTION_SUGGEST':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SUGGEST','string':'Suggest'},_0x303e74);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'},_0x303e74);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.'},_0x303e74);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.'},_0x303e74);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.'},_0x303e74);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.'},_0x303e74);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'},_0x303e74);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.'},_0x303e74);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 _0x3df820;}}function createResizeButton(_0x2d759a,_0x43ddd8){const _0x290687=new ButtonView(_0x2d759a),_0x3d4f1e=getTranslation$i(_0x2d759a,'AI_TABS_LABEL_MINIMIZE'),_0x400355=getTranslation$i(_0x2d759a,'AI_TABS_LABEL_MAXIMIZE');return _0x290687['set']({'withText':!0x1,'icon':IconMaximize,'tooltip':!0x0,'class':'ck-ai-tabs__resize\x20ck-ai-button-tertiary'}),_0x290687['bind']('label')['to'](_0x43ddd8,'isMaximized',_0x350444=>_0x350444?_0x3d4f1e:_0x400355),_0x290687['bind']('icon')['to'](_0x43ddd8,'isMaximized',_0x541b17=>_0x541b17?IconMinimize:IconMaximize),_0x290687['bind']('isOn')['to'](_0x43ddd8,'isMaximized'),_0x290687['on']('execute',()=>{_0x43ddd8['fire']('resizeTabs');}),_0x290687;}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'](_0x59a31c=>_0x59a31c['charCodeAt'](0x0))),xmlDecodeTree=new Uint16Array('Ȁaglq\x09\x15\x18\x1bɭ\x0f\x00\x00\x12p;䀦os;䀧t;䀾t;䀼uot;䀢'['split']('')['map'](_0x161a68=>_0x161a68['charCodeAt'](0x0)));var _a$1;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$1=String['fromCodePoint'])&&void 0x0!==_a$1?_a$1:function(_0x3f4aa4){let _0x208395='';return _0x3f4aa4>0xffff&&(_0x3f4aa4-=0x10000,_0x208395+=String['fromCharCode'](_0x3f4aa4>>>0xa&0x3ff|0xd800),_0x3f4aa4=0xdc00|0x3ff&_0x3f4aa4),_0x208395+=String['fromCharCode'](_0x3f4aa4),_0x208395;};function replaceCodePoint(_0x4cc884){var _0x2bb23f;return _0x4cc884>=0xd800&&_0x4cc884<=0xdfff||_0x4cc884>0x10ffff?0xfffd:null!==(_0x2bb23f=decodeMap['get'](_0x4cc884))&&void 0x0!==_0x2bb23f?_0x2bb23f:_0x4cc884;}var CharCodes$1;!function(_0x469c47){_0x469c47[_0x469c47['NUM']=0x23]='NUM',_0x469c47[_0x469c47['SEMI']=0x3b]='SEMI',_0x469c47[_0x469c47['EQUALS']=0x3d]='EQUALS',_0x469c47[_0x469c47['ZERO']=0x30]='ZERO',_0x469c47[_0x469c47['NINE']=0x39]='NINE',_0x469c47[_0x469c47['LOWER_A']=0x61]='LOWER_A',_0x469c47[_0x469c47['LOWER_F']=0x66]='LOWER_F',_0x469c47[_0x469c47['LOWER_X']=0x78]='LOWER_X',_0x469c47[_0x469c47['LOWER_Z']=0x7a]='LOWER_Z',_0x469c47[_0x469c47['UPPER_A']=0x41]='UPPER_A',_0x469c47[_0x469c47['UPPER_F']=0x46]='UPPER_F',_0x469c47[_0x469c47['UPPER_Z']=0x5a]='UPPER_Z';}(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=0x20;var BinTrieFlags,EntityDecoderState,DecodingMode,CharCodes,State,QuoteType;function isNumber$1(_0x577757){return _0x577757>=CharCodes$1['ZERO']&&_0x577757<=CharCodes$1['NINE'];}function isHexadecimalCharacter(_0x456e06){return _0x456e06>=CharCodes$1['UPPER_A']&&_0x456e06<=CharCodes$1['UPPER_F']||_0x456e06>=CharCodes$1['LOWER_A']&&_0x456e06<=CharCodes$1['LOWER_F'];}function isAsciiAlphaNumeric(_0x1182a1){return _0x1182a1>=CharCodes$1['UPPER_A']&&_0x1182a1<=CharCodes$1['UPPER_Z']||_0x1182a1>=CharCodes$1['LOWER_A']&&_0x1182a1<=CharCodes$1['LOWER_Z']||isNumber$1(_0x1182a1);}function isEntityInAttributeInvalidEnd(_0x956a15){return _0x956a15===CharCodes$1['EQUALS']||isAsciiAlphaNumeric(_0x956a15);}!function(_0x46ecfd){_0x46ecfd[_0x46ecfd['VALUE_LENGTH']=0xc000]='VALUE_LENGTH',_0x46ecfd[_0x46ecfd['BRANCH_LENGTH']=0x3f80]='BRANCH_LENGTH',_0x46ecfd[_0x46ecfd['JUMP_TABLE']=0x7f]='JUMP_TABLE';}(BinTrieFlags||(BinTrieFlags={})),function(_0x9b385a){_0x9b385a[_0x9b385a['EntityStart']=0x0]='EntityStart',_0x9b385a[_0x9b385a['NumericStart']=0x1]='NumericStart',_0x9b385a[_0x9b385a['NumericDecimal']=0x2]='NumericDecimal',_0x9b385a[_0x9b385a['NumericHex']=0x3]='NumericHex',_0x9b385a[_0x9b385a['NamedEntity']=0x4]='NamedEntity';}(EntityDecoderState||(EntityDecoderState={})),function(_0xaf074d){_0xaf074d[_0xaf074d['Legacy']=0x0]='Legacy',_0xaf074d[_0xaf074d['Strict']=0x1]='Strict',_0xaf074d[_0xaf074d['Attribute']=0x2]='Attribute';}(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(_0x1feb72,_0x2e062d,_0x343d7a){this['decodeTree']=_0x1feb72,this['emitCodePoint']=_0x2e062d,this['errors']=_0x343d7a,this['state']=EntityDecoderState['EntityStart'],this['consumed']=0x1,this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['decodeMode']=DecodingMode['Strict'];}['startEntity'](_0x2d34d3){this['decodeMode']=_0x2d34d3,this['state']=EntityDecoderState['EntityStart'],this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['consumed']=0x1;}['write'](_0x2999ed,_0x5dca27){switch(this['state']){case EntityDecoderState['EntityStart']:return _0x2999ed['charCodeAt'](_0x5dca27)===CharCodes$1['NUM']?(this['state']=EntityDecoderState['NumericStart'],this['consumed']+=0x1,this['stateNumericStart'](_0x2999ed,_0x5dca27+0x1)):(this['state']=EntityDecoderState['NamedEntity'],this['stateNamedEntity'](_0x2999ed,_0x5dca27));case EntityDecoderState['NumericStart']:return this['stateNumericStart'](_0x2999ed,_0x5dca27);case EntityDecoderState['NumericDecimal']:return this['stateNumericDecimal'](_0x2999ed,_0x5dca27);case EntityDecoderState['NumericHex']:return this['stateNumericHex'](_0x2999ed,_0x5dca27);case EntityDecoderState['NamedEntity']:return this['stateNamedEntity'](_0x2999ed,_0x5dca27);}}['stateNumericStart'](_0x1b3fff,_0x3f8930){return _0x3f8930>=_0x1b3fff['length']?-0x1:(_0x1b3fff['charCodeAt'](_0x3f8930)|TO_LOWER_BIT)===CharCodes$1['LOWER_X']?(this['state']=EntityDecoderState['NumericHex'],this['consumed']+=0x1,this['stateNumericHex'](_0x1b3fff,_0x3f8930+0x1)):(this['state']=EntityDecoderState['NumericDecimal'],this['stateNumericDecimal'](_0x1b3fff,_0x3f8930));}['addToNumericResult'](_0x3e55d8,_0x1be1a0,_0x7c752e,_0x2aa770){if(_0x1be1a0!==_0x7c752e){const _0x4b0fca=_0x7c752e-_0x1be1a0;this['result']=this['result']*Math['pow'](_0x2aa770,_0x4b0fca)+Number['parseInt'](_0x3e55d8['substr'](_0x1be1a0,_0x4b0fca),_0x2aa770),this['consumed']+=_0x4b0fca;}}['stateNumericHex'](_0x53acdb,_0x16fb5b){const _0xddbbad=_0x16fb5b;for(;_0x16fb5b<_0x53acdb['length'];){const _0x16f39b=_0x53acdb['charCodeAt'](_0x16fb5b);if(!isNumber$1(_0x16f39b)&&!isHexadecimalCharacter(_0x16f39b))return this['addToNumericResult'](_0x53acdb,_0xddbbad,_0x16fb5b,0x10),this['emitNumericEntity'](_0x16f39b,0x3);_0x16fb5b+=0x1;}return this['addToNumericResult'](_0x53acdb,_0xddbbad,_0x16fb5b,0x10),-0x1;}['stateNumericDecimal'](_0x208be6,_0x29aa50){const _0x1138b8=_0x29aa50;for(;_0x29aa50<_0x208be6['length'];){const _0x2b9d94=_0x208be6['charCodeAt'](_0x29aa50);if(!isNumber$1(_0x2b9d94))return this['addToNumericResult'](_0x208be6,_0x1138b8,_0x29aa50,0xa),this['emitNumericEntity'](_0x2b9d94,0x2);_0x29aa50+=0x1;}return this['addToNumericResult'](_0x208be6,_0x1138b8,_0x29aa50,0xa),-0x1;}['emitNumericEntity'](_0x11b83c,_0x4842d1){var _0x282618;if(this['consumed']<=_0x4842d1)return null===(_0x282618=this['errors'])||void 0x0===_0x282618||_0x282618['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;if(_0x11b83c===CharCodes$1['SEMI'])this['consumed']+=0x1;else{if(this['decodeMode']===DecodingMode['Strict'])return 0x0;}return this['emitCodePoint'](replaceCodePoint(this['result']),this['consumed']),this['errors']&&(_0x11b83c!==CharCodes$1['SEMI']&&this['errors']['missingSemicolonAfterCharacterReference'](),this['errors']['validateNumericCharacterReference'](this['result'])),this['consumed'];}['stateNamedEntity'](_0x22dd1c,_0x57543b){const {decodeTree:_0x3bf461}=this;let _0x3b0d02=_0x3bf461[this['treeIndex']],_0x42184c=(_0x3b0d02&BinTrieFlags['VALUE_LENGTH'])>>0xe;for(;_0x57543b<_0x22dd1c['length'];_0x57543b++,this['excess']++){const _0x5bafb0=_0x22dd1c['charCodeAt'](_0x57543b);if(this['treeIndex']=determineBranch(_0x3bf461,_0x3b0d02,this['treeIndex']+Math['max'](0x1,_0x42184c),_0x5bafb0),this['treeIndex']<0x0)return 0x0===this['result']||this['decodeMode']===DecodingMode['Attribute']&&(0x0===_0x42184c||isEntityInAttributeInvalidEnd(_0x5bafb0))?0x0:this['emitNotTerminatedNamedEntity']();if(_0x3b0d02=_0x3bf461[this['treeIndex']],_0x42184c=(_0x3b0d02&BinTrieFlags['VALUE_LENGTH'])>>0xe,0x0!==_0x42184c){if(_0x5bafb0===CharCodes$1['SEMI'])return this['emitNamedEntityData'](this['treeIndex'],_0x42184c,this['consumed']+this['excess']);this['decodeMode']!==DecodingMode['Strict']&&(this['result']=this['treeIndex'],this['consumed']+=this['excess'],this['excess']=0x0);}}return-0x1;}['emitNotTerminatedNamedEntity'](){var _0x5188e2;const {result:_0x4f0933,decodeTree:_0x2216ac}=this,_0x573fae=(_0x2216ac[_0x4f0933]&BinTrieFlags['VALUE_LENGTH'])>>0xe;return this['emitNamedEntityData'](_0x4f0933,_0x573fae,this['consumed']),null===(_0x5188e2=this['errors'])||void 0x0===_0x5188e2||_0x5188e2['missingSemicolonAfterCharacterReference'](),this['consumed'];}['emitNamedEntityData'](_0xfc4a03,_0x33ddf3,_0x4d06bb){const {decodeTree:_0x39a645}=this;return this['emitCodePoint'](0x1===_0x33ddf3?_0x39a645[_0xfc4a03]&~BinTrieFlags['VALUE_LENGTH']:_0x39a645[_0xfc4a03+0x1],_0x4d06bb),0x3===_0x33ddf3&&this['emitCodePoint'](_0x39a645[_0xfc4a03+0x2],_0x4d06bb),_0x4d06bb;}['end'](){var _0x5daebf;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===(_0x5daebf=this['errors'])||void 0x0===_0x5daebf||_0x5daebf['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;case EntityDecoderState['EntityStart']:return 0x0;}}}function determineBranch(_0x1963ce,_0x2ef309,_0x29322a,_0x4ca5a7){const _0x1132f0=(_0x2ef309&BinTrieFlags['BRANCH_LENGTH'])>>0x7,_0x429a01=_0x2ef309&BinTrieFlags['JUMP_TABLE'];if(0x0===_0x1132f0)return 0x0!==_0x429a01&&_0x4ca5a7===_0x429a01?_0x29322a:-0x1;if(_0x429a01){const _0xc9fa02=_0x4ca5a7-_0x429a01;return _0xc9fa02<0x0||_0xc9fa02>=_0x1132f0?-0x1:_0x1963ce[_0x29322a+_0xc9fa02]-0x1;}let _0x523f77=_0x29322a,_0x1e51a6=_0x523f77+_0x1132f0-0x1;for(;_0x523f77<=_0x1e51a6;){const _0x2761bc=_0x523f77+_0x1e51a6>>>0x1,_0x2fa12b=_0x1963ce[_0x2761bc];if(_0x2fa12b<_0x4ca5a7)_0x523f77=_0x2761bc+0x1;else{if(!(_0x2fa12b>_0x4ca5a7))return _0x1963ce[_0x2761bc+_0x1132f0];_0x1e51a6=_0x2761bc-0x1;}}return-0x1;}function isWhitespace(_0x179f56){return _0x179f56===CharCodes['Space']||_0x179f56===CharCodes['NewLine']||_0x179f56===CharCodes['Tab']||_0x179f56===CharCodes['FormFeed']||_0x179f56===CharCodes['CarriageReturn'];}function isEndOfTagSection(_0x21c1ec){return _0x21c1ec===CharCodes['Slash']||_0x21c1ec===CharCodes['Gt']||isWhitespace(_0x21c1ec);}function isASCIIAlpha(_0x26b5b9){return _0x26b5b9>=CharCodes['LowerA']&&_0x26b5b9<=CharCodes['LowerZ']||_0x26b5b9>=CharCodes['UpperA']&&_0x26b5b9<=CharCodes['UpperZ'];}!function(_0x5dec86){_0x5dec86[_0x5dec86['Tab']=0x9]='Tab',_0x5dec86[_0x5dec86['NewLine']=0xa]='NewLine',_0x5dec86[_0x5dec86['FormFeed']=0xc]='FormFeed',_0x5dec86[_0x5dec86['CarriageReturn']=0xd]='CarriageReturn',_0x5dec86[_0x5dec86['Space']=0x20]='Space',_0x5dec86[_0x5dec86['ExclamationMark']=0x21]='ExclamationMark',_0x5dec86[_0x5dec86['Number']=0x23]='Number',_0x5dec86[_0x5dec86['Amp']=0x26]='Amp',_0x5dec86[_0x5dec86['SingleQuote']=0x27]='SingleQuote',_0x5dec86[_0x5dec86['DoubleQuote']=0x22]='DoubleQuote',_0x5dec86[_0x5dec86['Dash']=0x2d]='Dash',_0x5dec86[_0x5dec86['Slash']=0x2f]='Slash',_0x5dec86[_0x5dec86['Zero']=0x30]='Zero',_0x5dec86[_0x5dec86['Nine']=0x39]='Nine',_0x5dec86[_0x5dec86['Semi']=0x3b]='Semi',_0x5dec86[_0x5dec86['Lt']=0x3c]='Lt',_0x5dec86[_0x5dec86['Eq']=0x3d]='Eq',_0x5dec86[_0x5dec86['Gt']=0x3e]='Gt',_0x5dec86[_0x5dec86['Questionmark']=0x3f]='Questionmark',_0x5dec86[_0x5dec86['UpperA']=0x41]='UpperA',_0x5dec86[_0x5dec86['LowerA']=0x61]='LowerA',_0x5dec86[_0x5dec86['UpperF']=0x46]='UpperF',_0x5dec86[_0x5dec86['LowerF']=0x66]='LowerF',_0x5dec86[_0x5dec86['UpperZ']=0x5a]='UpperZ',_0x5dec86[_0x5dec86['LowerZ']=0x7a]='LowerZ',_0x5dec86[_0x5dec86['LowerX']=0x78]='LowerX',_0x5dec86[_0x5dec86['OpeningSquareBracket']=0x5b]='OpeningSquareBracket';}(CharCodes||(CharCodes={})),function(_0x19846a){_0x19846a[_0x19846a['Text']=0x1]='Text',_0x19846a[_0x19846a['BeforeTagName']=0x2]='BeforeTagName',_0x19846a[_0x19846a['InTagName']=0x3]='InTagName',_0x19846a[_0x19846a['InSelfClosingTag']=0x4]='InSelfClosingTag',_0x19846a[_0x19846a['BeforeClosingTagName']=0x5]='BeforeClosingTagName',_0x19846a[_0x19846a['InClosingTagName']=0x6]='InClosingTagName',_0x19846a[_0x19846a['AfterClosingTagName']=0x7]='AfterClosingTagName',_0x19846a[_0x19846a['BeforeAttributeName']=0x8]='BeforeAttributeName',_0x19846a[_0x19846a['InAttributeName']=0x9]='InAttributeName',_0x19846a[_0x19846a['AfterAttributeName']=0xa]='AfterAttributeName',_0x19846a[_0x19846a['BeforeAttributeValue']=0xb]='BeforeAttributeValue',_0x19846a[_0x19846a['InAttributeValueDq']=0xc]='InAttributeValueDq',_0x19846a[_0x19846a['InAttributeValueSq']=0xd]='InAttributeValueSq',_0x19846a[_0x19846a['InAttributeValueNq']=0xe]='InAttributeValueNq',_0x19846a[_0x19846a['BeforeDeclaration']=0xf]='BeforeDeclaration',_0x19846a[_0x19846a['InDeclaration']=0x10]='InDeclaration',_0x19846a[_0x19846a['InProcessingInstruction']=0x11]='InProcessingInstruction',_0x19846a[_0x19846a['BeforeComment']=0x12]='BeforeComment',_0x19846a[_0x19846a['CDATASequence']=0x13]='CDATASequence',_0x19846a[_0x19846a['InSpecialComment']=0x14]='InSpecialComment',_0x19846a[_0x19846a['InCommentLike']=0x15]='InCommentLike',_0x19846a[_0x19846a['BeforeSpecialS']=0x16]='BeforeSpecialS',_0x19846a[_0x19846a['BeforeSpecialT']=0x17]='BeforeSpecialT',_0x19846a[_0x19846a['SpecialStartSequence']=0x18]='SpecialStartSequence',_0x19846a[_0x19846a['InSpecialTag']=0x19]='InSpecialTag',_0x19846a[_0x19846a['InEntity']=0x1a]='InEntity';}(State||(State={})),function(_0x44c355){_0x44c355[_0x44c355['NoValue']=0x0]='NoValue',_0x44c355[_0x44c355['Unquoted']=0x1]='Unquoted',_0x44c355[_0x44c355['Single']=0x2]='Single',_0x44c355[_0x44c355['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:_0x25a11e=!0x1,decodeEntities:_0x361ae0=!0x0},_0x7cba15){this['cbs']=_0x7cba15,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']=_0x25a11e,this['decodeEntities']=_0x361ae0,this['entityDecoder']=new EntityDecoder(_0x25a11e?xmlDecodeTree:htmlDecodeTree,(_0x17f937,_0x54159e)=>this['emitCodePoint'](_0x17f937,_0x54159e));}['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'](_0x41ffd8){this['offset']+=this['buffer']['length'],this['buffer']=_0x41ffd8,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'](_0x54d9d6){_0x54d9d6===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']&&_0x54d9d6===CharCodes['Amp']&&this['startEntity']();}['stateSpecialStartSequence'](_0x4c4452){const _0x3f54e3=this['sequenceIndex']===this['currentSequence']['length'];if(_0x3f54e3?isEndOfTagSection(_0x4c4452):(0x20|_0x4c4452)===this['currentSequence'][this['sequenceIndex']]){if(!_0x3f54e3)return void this['sequenceIndex']++;}else this['isSpecial']=!0x1;this['sequenceIndex']=0x0,this['state']=State['InTagName'],this['stateInTagName'](_0x4c4452);}['stateInSpecialTag'](_0x56bc20){if(this['sequenceIndex']===this['currentSequence']['length']){if(_0x56bc20===CharCodes['Gt']||isWhitespace(_0x56bc20)){const _0x136073=this['index']-this['currentSequence']['length'];if(this['sectionStart']<_0x136073){const _0x23f36b=this['index'];this['index']=_0x136073,this['cbs']['ontext'](this['sectionStart'],_0x136073),this['index']=_0x23f36b;}return this['isSpecial']=!0x1,this['sectionStart']=_0x136073+0x2,void this['stateInClosingTagName'](_0x56bc20);}this['sequenceIndex']=0x0;}(0x20|_0x56bc20)===this['currentSequence'][this['sequenceIndex']]?this['sequenceIndex']+=0x1:0x0===this['sequenceIndex']?this['currentSequence']===Sequences['TitleEnd']?this['decodeEntities']&&_0x56bc20===CharCodes['Amp']&&this['startEntity']():this['fastForwardTo'](CharCodes['Lt'])&&(this['sequenceIndex']=0x1):this['sequenceIndex']=Number(_0x56bc20===CharCodes['Lt']);}['stateCDATASequence'](_0x400c2e){_0x400c2e===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'](_0x400c2e));}['fastForwardTo'](_0x581071){for(;++this['index']<this['buffer']['length']+this['offset'];)if(this['buffer']['charCodeAt'](this['index']-this['offset'])===_0x581071)return!0x0;return this['index']=this['buffer']['length']+this['offset']-0x1,!0x1;}['stateInCommentLike'](_0x5736da){_0x5736da===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):_0x5736da!==this['currentSequence'][this['sequenceIndex']-0x1]&&(this['sequenceIndex']=0x0);}['isTagStartChar'](_0x2d67ac){return this['xmlMode']?!isEndOfTagSection(_0x2d67ac):isASCIIAlpha(_0x2d67ac);}['startSpecial'](_0x35ed2d,_0xad2ded){this['isSpecial']=!0x0,this['currentSequence']=_0x35ed2d,this['sequenceIndex']=_0xad2ded,this['state']=State['SpecialStartSequence'];}['stateBeforeTagName'](_0x107189){if(_0x107189===CharCodes['ExclamationMark'])this['state']=State['BeforeDeclaration'],this['sectionStart']=this['index']+0x1;else{if(_0x107189===CharCodes['Questionmark'])this['state']=State['InProcessingInstruction'],this['sectionStart']=this['index']+0x1;else{if(this['isTagStartChar'](_0x107189)){const _0x2647cc=0x20|_0x107189;this['sectionStart']=this['index'],this['xmlMode']?this['state']=State['InTagName']:_0x2647cc===Sequences['ScriptEnd'][0x2]?this['state']=State['BeforeSpecialS']:_0x2647cc===Sequences['TitleEnd'][0x2]||_0x2647cc===Sequences['XmpEnd'][0x2]?this['state']=State['BeforeSpecialT']:this['state']=State['InTagName'];}else _0x107189===CharCodes['Slash']?this['state']=State['BeforeClosingTagName']:(this['state']=State['Text'],this['stateText'](_0x107189));}}}['stateInTagName'](_0x4882c0){isEndOfTagSection(_0x4882c0)&&(this['cbs']['onopentagname'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x4882c0));}['stateBeforeClosingTagName'](_0x484251){isWhitespace(_0x484251)||(_0x484251===CharCodes['Gt']?this['state']=State['Text']:(this['state']=this['isTagStartChar'](_0x484251)?State['InClosingTagName']:State['InSpecialComment'],this['sectionStart']=this['index']));}['stateInClosingTagName'](_0x1b12a6){(_0x1b12a6===CharCodes['Gt']||isWhitespace(_0x1b12a6))&&(this['cbs']['onclosetag'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['AfterClosingTagName'],this['stateAfterClosingTagName'](_0x1b12a6));}['stateAfterClosingTagName'](_0x79fcf8){(_0x79fcf8===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeAttributeName'](_0x22babb){_0x22babb===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):_0x22babb===CharCodes['Slash']?this['state']=State['InSelfClosingTag']:isWhitespace(_0x22babb)||(this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateInSelfClosingTag'](_0x387111){_0x387111===CharCodes['Gt']?(this['cbs']['onselfclosingtag'](this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1,this['isSpecial']=!0x1):isWhitespace(_0x387111)||(this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x387111));}['stateInAttributeName'](_0x9e27f){(_0x9e27f===CharCodes['Eq']||isEndOfTagSection(_0x9e27f))&&(this['cbs']['onattribname'](this['sectionStart'],this['index']),this['sectionStart']=this['index'],this['state']=State['AfterAttributeName'],this['stateAfterAttributeName'](_0x9e27f));}['stateAfterAttributeName'](_0x48f12a){_0x48f12a===CharCodes['Eq']?this['state']=State['BeforeAttributeValue']:_0x48f12a===CharCodes['Slash']||_0x48f12a===CharCodes['Gt']?(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x48f12a)):isWhitespace(_0x48f12a)||(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateBeforeAttributeValue'](_0x3f7ac4){_0x3f7ac4===CharCodes['DoubleQuote']?(this['state']=State['InAttributeValueDq'],this['sectionStart']=this['index']+0x1):_0x3f7ac4===CharCodes['SingleQuote']?(this['state']=State['InAttributeValueSq'],this['sectionStart']=this['index']+0x1):isWhitespace(_0x3f7ac4)||(this['sectionStart']=this['index'],this['state']=State['InAttributeValueNq'],this['stateInAttributeValueNoQuotes'](_0x3f7ac4));}['handleInAttributeValue'](_0x74dfce,_0x2e93c8){_0x74dfce===_0x2e93c8||!this['decodeEntities']&&this['fastForwardTo'](_0x2e93c8)?(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['cbs']['onattribend'](_0x2e93c8===CharCodes['DoubleQuote']?QuoteType['Double']:QuoteType['Single'],this['index']+0x1),this['state']=State['BeforeAttributeName']):this['decodeEntities']&&_0x74dfce===CharCodes['Amp']&&this['startEntity']();}['stateInAttributeValueDoubleQuotes'](_0x39f94c){this['handleInAttributeValue'](_0x39f94c,CharCodes['DoubleQuote']);}['stateInAttributeValueSingleQuotes'](_0x27b227){this['handleInAttributeValue'](_0x27b227,CharCodes['SingleQuote']);}['stateInAttributeValueNoQuotes'](_0x58615c){isWhitespace(_0x58615c)||_0x58615c===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'](_0x58615c)):this['decodeEntities']&&_0x58615c===CharCodes['Amp']&&this['startEntity']();}['stateBeforeDeclaration'](_0x17a76c){_0x17a76c===CharCodes['OpeningSquareBracket']?(this['state']=State['CDATASequence'],this['sequenceIndex']=0x0):this['state']=_0x17a76c===CharCodes['Dash']?State['BeforeComment']:State['InDeclaration'];}['stateInDeclaration'](_0x4f5274){(_0x4f5274===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['ondeclaration'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateInProcessingInstruction'](_0x2f0530){(_0x2f0530===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['onprocessinginstruction'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeComment'](_0x5f1618){_0x5f1618===CharCodes['Dash']?(this['state']=State['InCommentLike'],this['currentSequence']=Sequences['CommentEnd'],this['sequenceIndex']=0x2,this['sectionStart']=this['index']+0x1):this['state']=State['InDeclaration'];}['stateInSpecialComment'](_0x521f97){(_0x521f97===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['oncomment'](this['sectionStart'],this['index'],0x0),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeSpecialS'](_0x2f1d0c){const _0x106eb8=0x20|_0x2f1d0c;_0x106eb8===Sequences['ScriptEnd'][0x3]?this['startSpecial'](Sequences['ScriptEnd'],0x4):_0x106eb8===Sequences['StyleEnd'][0x3]?this['startSpecial'](Sequences['StyleEnd'],0x4):(this['state']=State['InTagName'],this['stateInTagName'](_0x2f1d0c));}['stateBeforeSpecialT'](_0x4d431e){switch(0x20|_0x4d431e){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'](_0x4d431e);}}['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 _0x373873=this['entityDecoder']['write'](this['buffer'],this['index']-this['offset']);_0x373873>=0x0?(this['state']=this['baseState'],0x0===_0x373873&&(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 _0x22c4df=this['buffer']['charCodeAt'](this['index']-this['offset']);switch(this['state']){case State['Text']:this['stateText'](_0x22c4df);break;case State['SpecialStartSequence']:this['stateSpecialStartSequence'](_0x22c4df);break;case State['InSpecialTag']:this['stateInSpecialTag'](_0x22c4df);break;case State['CDATASequence']:this['stateCDATASequence'](_0x22c4df);break;case State['InAttributeValueDq']:this['stateInAttributeValueDoubleQuotes'](_0x22c4df);break;case State['InAttributeName']:this['stateInAttributeName'](_0x22c4df);break;case State['InCommentLike']:this['stateInCommentLike'](_0x22c4df);break;case State['InSpecialComment']:this['stateInSpecialComment'](_0x22c4df);break;case State['BeforeAttributeName']:this['stateBeforeAttributeName'](_0x22c4df);break;case State['InTagName']:this['stateInTagName'](_0x22c4df);break;case State['InClosingTagName']:this['stateInClosingTagName'](_0x22c4df);break;case State['BeforeTagName']:this['stateBeforeTagName'](_0x22c4df);break;case State['AfterAttributeName']:this['stateAfterAttributeName'](_0x22c4df);break;case State['InAttributeValueSq']:this['stateInAttributeValueSingleQuotes'](_0x22c4df);break;case State['BeforeAttributeValue']:this['stateBeforeAttributeValue'](_0x22c4df);break;case State['BeforeClosingTagName']:this['stateBeforeClosingTagName'](_0x22c4df);break;case State['AfterClosingTagName']:this['stateAfterClosingTagName'](_0x22c4df);break;case State['BeforeSpecialS']:this['stateBeforeSpecialS'](_0x22c4df);break;case State['BeforeSpecialT']:this['stateBeforeSpecialT'](_0x22c4df);break;case State['InAttributeValueNq']:this['stateInAttributeValueNoQuotes'](_0x22c4df);break;case State['InSelfClosingTag']:this['stateInSelfClosingTag'](_0x22c4df);break;case State['InDeclaration']:this['stateInDeclaration'](_0x22c4df);break;case State['BeforeDeclaration']:this['stateBeforeDeclaration'](_0x22c4df);break;case State['BeforeComment']:this['stateBeforeComment'](_0x22c4df);break;case State['InProcessingInstruction']:this['stateInProcessingInstruction'](_0x22c4df);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 _0x19c2d7=this['buffer']['length']+this['offset'];this['sectionStart']>=_0x19c2d7||(this['state']===State['InCommentLike']?this['currentSequence']===Sequences['CdataEnd']?this['cbs']['oncdata'](this['sectionStart'],_0x19c2d7,0x0):this['cbs']['oncomment'](this['sectionStart'],_0x19c2d7,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'],_0x19c2d7));}['emitCodePoint'](_0x8f8f64,_0x2cb473){this['baseState']!==State['Text']&&this['baseState']!==State['InSpecialTag']?(this['sectionStart']<this['entityStart']&&this['cbs']['onattribdata'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x2cb473,this['index']=this['sectionStart']-0x1,this['cbs']['onattribentity'](_0x8f8f64)):(this['sectionStart']<this['entityStart']&&this['cbs']['ontext'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x2cb473,this['index']=this['sectionStart']-0x1,this['cbs']['ontextentity'](_0x8f8f64,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(_0x514a59,_0x8f009={}){var _0x2a2a31,_0xd2223e,_0x17979c,_0x19a362,_0x9f1fa9,_0x5210e1;this['options']=_0x8f009,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!=_0x514a59?_0x514a59:{},this['htmlMode']=!this['options']['xmlMode'],this['lowerCaseTagNames']=null!==(_0x2a2a31=_0x8f009['lowerCaseTags'])&&void 0x0!==_0x2a2a31?_0x2a2a31:this['htmlMode'],this['lowerCaseAttributeNames']=null!==(_0xd2223e=_0x8f009['lowerCaseAttributeNames'])&&void 0x0!==_0xd2223e?_0xd2223e:this['htmlMode'],this['recognizeSelfClosing']=null!==(_0x17979c=_0x8f009['recognizeSelfClosing'])&&void 0x0!==_0x17979c?_0x17979c:!this['htmlMode'],this['tokenizer']=new(null!==(_0x19a362=_0x8f009['Tokenizer'])&&void 0x0!==_0x19a362?_0x19a362:Tokenizer)(this['options'],this),this['foreignContext']=[!this['htmlMode']],null===(_0x5210e1=(_0x9f1fa9=this['cbs'])['onparserinit'])||void 0x0===_0x5210e1||_0x5210e1['call'](_0x9f1fa9,this);}['ontext'](_0x44581f,_0x2eec90){var _0xd52a51,_0x49916d;const _0x13efca=this['getSlice'](_0x44581f,_0x2eec90);this['endIndex']=_0x2eec90-0x1,null===(_0x49916d=(_0xd52a51=this['cbs'])['ontext'])||void 0x0===_0x49916d||_0x49916d['call'](_0xd52a51,_0x13efca),this['startIndex']=_0x2eec90;}['ontextentity'](_0x4787e4,_0x2e82a6){var _0x41593b,_0x200e87;this['endIndex']=_0x2e82a6-0x1,null===(_0x200e87=(_0x41593b=this['cbs'])['ontext'])||void 0x0===_0x200e87||_0x200e87['call'](_0x41593b,fromCodePoint$1(_0x4787e4)),this['startIndex']=_0x2e82a6;}['isVoidElement'](_0x81efbe){return this['htmlMode']&&voidElements['has'](_0x81efbe);}['onopentagname'](_0xd8cef,_0xf7b029){this['endIndex']=_0xf7b029;let _0x3fb516=this['getSlice'](_0xd8cef,_0xf7b029);this['lowerCaseTagNames']&&(_0x3fb516=_0x3fb516['toLowerCase']()),this['emitOpenTag'](_0x3fb516);}['emitOpenTag'](_0x935eeb){var _0x4d6942,_0x2b9e5f,_0x190220,_0x3c0809;this['openTagStart']=this['startIndex'],this['tagname']=_0x935eeb;const _0x5e6fe6=this['htmlMode']&&openImpliesClose['get'](_0x935eeb);if(_0x5e6fe6)for(;this['stack']['length']>0x0&&_0x5e6fe6['has'](this['stack'][0x0]);){const _0xc036e0=this['stack']['shift']();null===(_0x2b9e5f=(_0x4d6942=this['cbs'])['onclosetag'])||void 0x0===_0x2b9e5f||_0x2b9e5f['call'](_0x4d6942,_0xc036e0,!0x0);}this['isVoidElement'](_0x935eeb)||(this['stack']['unshift'](_0x935eeb),this['htmlMode']&&(foreignContextElements['has'](_0x935eeb)?this['foreignContext']['unshift'](!0x0):htmlIntegrationElements['has'](_0x935eeb)&&this['foreignContext']['unshift'](!0x1))),null===(_0x3c0809=(_0x190220=this['cbs'])['onopentagname'])||void 0x0===_0x3c0809||_0x3c0809['call'](_0x190220,_0x935eeb),this['cbs']['onopentag']&&(this['attribs']={});}['endOpenTag'](_0x2c2e9c){var _0x1b1731,_0x1dfa0b;this['startIndex']=this['openTagStart'],this['attribs']&&(null===(_0x1dfa0b=(_0x1b1731=this['cbs'])['onopentag'])||void 0x0===_0x1dfa0b||_0x1dfa0b['call'](_0x1b1731,this['tagname'],this['attribs'],_0x2c2e9c),this['attribs']=null),this['cbs']['onclosetag']&&this['isVoidElement'](this['tagname'])&&this['cbs']['onclosetag'](this['tagname'],!0x0),this['tagname']='';}['onopentagend'](_0x5123d3){this['endIndex']=_0x5123d3,this['endOpenTag'](!0x1),this['startIndex']=_0x5123d3+0x1;}['onclosetag'](_0x63a7a2,_0x32218c){var _0x59300f,_0x1ff0d0,_0x4b864e,_0x4c04bb,_0x5d497f,_0x14a41d,_0x375a4f,_0x177841;this['endIndex']=_0x32218c;let _0xae4edb=this['getSlice'](_0x63a7a2,_0x32218c);if(this['lowerCaseTagNames']&&(_0xae4edb=_0xae4edb['toLowerCase']()),this['htmlMode']&&(foreignContextElements['has'](_0xae4edb)||htmlIntegrationElements['has'](_0xae4edb))&&this['foreignContext']['shift'](),this['isVoidElement'](_0xae4edb))this['htmlMode']&&'br'===_0xae4edb&&(null===(_0x4c04bb=(_0x4b864e=this['cbs'])['onopentagname'])||void 0x0===_0x4c04bb||_0x4c04bb['call'](_0x4b864e,'br'),null===(_0x14a41d=(_0x5d497f=this['cbs'])['onopentag'])||void 0x0===_0x14a41d||_0x14a41d['call'](_0x5d497f,'br',{},!0x0),null===(_0x177841=(_0x375a4f=this['cbs'])['onclosetag'])||void 0x0===_0x177841||_0x177841['call'](_0x375a4f,'br',!0x1));else{const _0x2cabe0=this['stack']['indexOf'](_0xae4edb);if(-0x1!==_0x2cabe0)for(let _0xb5f48b=0x0;_0xb5f48b<=_0x2cabe0;_0xb5f48b++){const _0x2c4450=this['stack']['shift']();null===(_0x1ff0d0=(_0x59300f=this['cbs'])['onclosetag'])||void 0x0===_0x1ff0d0||_0x1ff0d0['call'](_0x59300f,_0x2c4450,_0xb5f48b!==_0x2cabe0);}else this['htmlMode']&&'p'===_0xae4edb&&(this['emitOpenTag']('p'),this['closeCurrentTag'](!0x0));}this['startIndex']=_0x32218c+0x1;}['onselfclosingtag'](_0x5a8b92){this['endIndex']=_0x5a8b92,this['recognizeSelfClosing']||this['foreignContext'][0x0]?(this['closeCurrentTag'](!0x1),this['startIndex']=_0x5a8b92+0x1):this['onopentagend'](_0x5a8b92);}['closeCurrentTag'](_0x46aa64){var _0x38d402,_0x47d49a;const _0x447a3a=this['tagname'];this['endOpenTag'](_0x46aa64),this['stack'][0x0]===_0x447a3a&&(null===(_0x47d49a=(_0x38d402=this['cbs'])['onclosetag'])||void 0x0===_0x47d49a||_0x47d49a['call'](_0x38d402,_0x447a3a,!_0x46aa64),this['stack']['shift']());}['onattribname'](_0x2a25c1,_0x15b09f){this['startIndex']=_0x2a25c1;const _0x5cdc1b=this['getSlice'](_0x2a25c1,_0x15b09f);this['attribname']=this['lowerCaseAttributeNames']?_0x5cdc1b['toLowerCase']():_0x5cdc1b;}['onattribdata'](_0x472163,_0x23b3ad){this['attribvalue']+=this['getSlice'](_0x472163,_0x23b3ad);}['onattribentity'](_0x12739a){this['attribvalue']+=fromCodePoint$1(_0x12739a);}['onattribend'](_0x5ac398,_0x4d14bb){var _0x372439,_0x1d98ee;this['endIndex']=_0x4d14bb,null===(_0x1d98ee=(_0x372439=this['cbs'])['onattribute'])||void 0x0===_0x1d98ee||_0x1d98ee['call'](_0x372439,this['attribname'],this['attribvalue'],_0x5ac398===QuoteType['Double']?'\x22':_0x5ac398===QuoteType['Single']?'\x27':_0x5ac398===QuoteType['NoValue']?void 0x0:null),this['attribs']&&!Object['prototype']['hasOwnProperty']['call'](this['attribs'],this['attribname'])&&(this['attribs'][this['attribname']]=this['attribvalue']),this['attribvalue']='';}['getInstructionName'](_0x3dcba9){const _0x2c5780=_0x3dcba9['search'](reNameEnd);let _0x5b2a58=_0x2c5780<0x0?_0x3dcba9:_0x3dcba9['substr'](0x0,_0x2c5780);return this['lowerCaseTagNames']&&(_0x5b2a58=_0x5b2a58['toLowerCase']()),_0x5b2a58;}['ondeclaration'](_0x50eeff,_0x2bd226){this['endIndex']=_0x2bd226;const _0x364aff=this['getSlice'](_0x50eeff,_0x2bd226);if(this['cbs']['onprocessinginstruction']){const _0x31edfb=this['getInstructionName'](_0x364aff);this['cbs']['onprocessinginstruction']('!'+_0x31edfb,'!'+_0x364aff);}this['startIndex']=_0x2bd226+0x1;}['onprocessinginstruction'](_0x387011,_0x3d45ea){this['endIndex']=_0x3d45ea;const _0x48de6a=this['getSlice'](_0x387011,_0x3d45ea);if(this['cbs']['onprocessinginstruction']){const _0x3112b0=this['getInstructionName'](_0x48de6a);this['cbs']['onprocessinginstruction']('?'+_0x3112b0,'?'+_0x48de6a);}this['startIndex']=_0x3d45ea+0x1;}['oncomment'](_0x473498,_0x36eb2d,_0x4edf3b){var _0x5d90cd,_0x5d3d0d,_0x32e927,_0x25f068;this['endIndex']=_0x36eb2d,null===(_0x5d3d0d=(_0x5d90cd=this['cbs'])['oncomment'])||void 0x0===_0x5d3d0d||_0x5d3d0d['call'](_0x5d90cd,this['getSlice'](_0x473498,_0x36eb2d-_0x4edf3b)),null===(_0x25f068=(_0x32e927=this['cbs'])['oncommentend'])||void 0x0===_0x25f068||_0x25f068['call'](_0x32e927),this['startIndex']=_0x36eb2d+0x1;}['oncdata'](_0x201697,_0x334cf7,_0x31f3b5){var _0x3f0575,_0x49e508,_0x1c7ffe,_0x4641bf,_0x5e9a38,_0x447292,_0x324c09,_0x37a367,_0xf71b04,_0x30858c;this['endIndex']=_0x334cf7;const _0x338376=this['getSlice'](_0x201697,_0x334cf7-_0x31f3b5);!this['htmlMode']||this['options']['recognizeCDATA']?(null===(_0x49e508=(_0x3f0575=this['cbs'])['oncdatastart'])||void 0x0===_0x49e508||_0x49e508['call'](_0x3f0575),null===(_0x4641bf=(_0x1c7ffe=this['cbs'])['ontext'])||void 0x0===_0x4641bf||_0x4641bf['call'](_0x1c7ffe,_0x338376),null===(_0x447292=(_0x5e9a38=this['cbs'])['oncdataend'])||void 0x0===_0x447292||_0x447292['call'](_0x5e9a38)):(null===(_0x37a367=(_0x324c09=this['cbs'])['oncomment'])||void 0x0===_0x37a367||_0x37a367['call'](_0x324c09,'[CDATA['+_0x338376+']]'),null===(_0x30858c=(_0xf71b04=this['cbs'])['oncommentend'])||void 0x0===_0x30858c||_0x30858c['call'](_0xf71b04)),this['startIndex']=_0x334cf7+0x1;}['onend'](){var _0x1837d1,_0x29d16a;if(this['cbs']['onclosetag']){this['endIndex']=this['startIndex'];for(let _0x42dd20=0x0;_0x42dd20<this['stack']['length'];_0x42dd20++)this['cbs']['onclosetag'](this['stack'][_0x42dd20],!0x0);}null===(_0x29d16a=(_0x1837d1=this['cbs'])['onend'])||void 0x0===_0x29d16a||_0x29d16a['call'](_0x1837d1);}['reset'](){var _0x154788,_0x14101f,_0x5cd875,_0x1e222b;null===(_0x14101f=(_0x154788=this['cbs'])['onreset'])||void 0x0===_0x14101f||_0x14101f['call'](_0x154788),this['tokenizer']['reset'](),this['tagname']='',this['attribname']='',this['attribs']=null,this['stack']['length']=0x0,this['startIndex']=0x0,this['endIndex']=0x0,null===(_0x1e222b=(_0x5cd875=this['cbs'])['onparserinit'])||void 0x0===_0x1e222b||_0x1e222b['call'](_0x5cd875,this),this['buffers']['length']=0x0,this['foreignContext']['length']=0x0,this['foreignContext']['unshift'](!this['htmlMode']),this['bufferOffset']=0x0,this['writeIndex']=0x0,this['ended']=!0x1;}['parseComplete'](_0x31d3f5){this['reset'](),this['end'](_0x31d3f5);}['getSlice'](_0xcf08e6,_0x4a30ab){for(;_0xcf08e6-this['bufferOffset']>=this['buffers'][0x0]['length'];)this['shiftBuffer']();let _0x38d5bf=this['buffers'][0x0]['slice'](_0xcf08e6-this['bufferOffset'],_0x4a30ab-this['bufferOffset']);for(;_0x4a30ab-this['bufferOffset']>this['buffers'][0x0]['length'];)this['shiftBuffer'](),_0x38d5bf+=this['buffers'][0x0]['slice'](0x0,_0x4a30ab-this['bufferOffset']);return _0x38d5bf;}['shiftBuffer'](){this['bufferOffset']+=this['buffers'][0x0]['length'],this['writeIndex']--,this['buffers']['shift']();}['write'](_0x1e2d15){var _0x38cee1,_0x57574d;this['ended']?null===(_0x57574d=(_0x38cee1=this['cbs'])['onerror'])||void 0x0===_0x57574d||_0x57574d['call'](_0x38cee1,new Error('.write()\x20after\x20done!')):(this['buffers']['push'](_0x1e2d15),this['tokenizer']['running']&&(this['tokenizer']['write'](_0x1e2d15),this['writeIndex']++));}['end'](_0x4787fc){var _0x19522d,_0x365a4c;this['ended']?null===(_0x365a4c=(_0x19522d=this['cbs'])['onerror'])||void 0x0===_0x365a4c||_0x365a4c['call'](_0x19522d,new Error('.end()\x20after\x20done!')):(_0x4787fc&&this['write'](_0x4787fc),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'](_0x1ef2e7){this['write'](_0x1ef2e7);}['done'](_0x3ba2ff){this['end'](_0x3ba2ff);}};var ElementType;function isTag$1(_0x5d7a11){return _0x5d7a11['type']===ElementType['Tag']||_0x5d7a11['type']===ElementType['Script']||_0x5d7a11['type']===ElementType['Style'];}!function(_0x10ec72){_0x10ec72['Root']='root',_0x10ec72['Text']='text',_0x10ec72['Directive']='directive',_0x10ec72['Comment']='comment',_0x10ec72['Script']='script',_0x10ec72['Style']='style',_0x10ec72['Tag']='tag',_0x10ec72['CDATA']='cdata',_0x10ec72['Doctype']='doctype';}(ElementType||(ElementType={}));const Root=ElementType['Root'],Text$2=ElementType['Text'],Directive=ElementType['Directive'],Comment$2=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'](_0x3ad2fe){this['parent']=_0x3ad2fe;}get['previousSibling'](){return this['prev'];}set['previousSibling'](_0x1e2c67){this['prev']=_0x1e2c67;}get['nextSibling'](){return this['next'];}set['nextSibling'](_0x8badf4){this['next']=_0x8badf4;}['cloneNode'](_0x5ec72e=!0x1){return cloneNode(this,_0x5ec72e);}};class DataNode extends Node$1{constructor(_0xb945d){super(),this['data']=_0xb945d;}get['nodeValue'](){return this['data'];}set['nodeValue'](_0x579579){this['data']=_0x579579;}}let Text$1=class extends DataNode{constructor(){super(...arguments),this['type']=ElementType['Text'];}get['nodeType'](){return 0x3;}},Comment$1=class extends DataNode{constructor(){super(...arguments),this['type']=ElementType['Comment'];}get['nodeType'](){return 0x8;}};class ProcessingInstruction extends DataNode{constructor(_0x2954a2,_0x4b2325){super(_0x4b2325),this['name']=_0x2954a2,this['type']=ElementType['Directive'];}get['nodeType'](){return 0x1;}}class NodeWithChildren extends Node$1{constructor(_0x4a61a3){super(),this['children']=_0x4a61a3;}get['firstChild'](){var _0x48d9df;return null!==(_0x48d9df=this['children'][0x0])&&void 0x0!==_0x48d9df?_0x48d9df:null;}get['lastChild'](){return this['children']['length']>0x0?this['children'][this['children']['length']-0x1]:null;}get['childNodes'](){return this['children'];}set['childNodes'](_0x282e0e){this['children']=_0x282e0e;}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this['type']=ElementType['CDATA'];}get['nodeType'](){return 0x4;}}class Document extends NodeWithChildren{constructor(){super(...arguments),this['type']=ElementType['Root'];}get['nodeType'](){return 0x9;}}let Element$3=class extends NodeWithChildren{constructor(_0x403503,_0x204d01,_0x3e5150=[],_0x51bc21='script'===_0x403503?ElementType['Script']:'style'===_0x403503?ElementType['Style']:ElementType['Tag']){super(_0x3e5150),this['name']=_0x403503,this['attribs']=_0x204d01,this['type']=_0x51bc21;}get['nodeType'](){return 0x1;}get['tagName'](){return this['name'];}set['tagName'](_0x5c4f7d){this['name']=_0x5c4f7d;}get['attributes'](){return Object['keys'](this['attribs'])['map'](_0x2443a9=>{var _0x1b927f,_0x3e4a96;return{'name':_0x2443a9,'value':this['attribs'][_0x2443a9],'namespace':null===(_0x1b927f=this['x-attribsNamespace'])||void 0x0===_0x1b927f?void 0x0:_0x1b927f[_0x2443a9],'prefix':null===(_0x3e4a96=this['x-attribsPrefix'])||void 0x0===_0x3e4a96?void 0x0:_0x3e4a96[_0x2443a9]};});}};function isTag(_0x3d71d0){return isTag$1(_0x3d71d0);}function isCDATA(_0x52db9f){return _0x52db9f['type']===ElementType['CDATA'];}function isText$1(_0x458c36){return _0x458c36['type']===ElementType['Text'];}function isComment(_0x5365d2){return _0x5365d2['type']===ElementType['Comment'];}function isDirective(_0xb59ef6){return _0xb59ef6['type']===ElementType['Directive'];}function isDocument(_0x5d9ef){return _0x5d9ef['type']===ElementType['Root'];}function hasChildren(_0x44e974){return Object['prototype']['hasOwnProperty']['call'](_0x44e974,'children');}function cloneNode(_0xe98882,_0x5a45f4=!0x1){let _0x4e63c4;if(isText$1(_0xe98882))_0x4e63c4=new Text$1(_0xe98882['data']);else{if(isComment(_0xe98882))_0x4e63c4=new Comment$1(_0xe98882['data']);else{if(isTag(_0xe98882)){const _0x23a9a5=_0x5a45f4?cloneChildren(_0xe98882['children']):[],_0x5668da=new Element$3(_0xe98882['name'],{..._0xe98882['attribs']},_0x23a9a5);_0x23a9a5['forEach'](_0x188f83=>_0x188f83['parent']=_0x5668da),null!=_0xe98882['namespace']&&(_0x5668da['namespace']=_0xe98882['namespace']),_0xe98882['x-attribsNamespace']&&(_0x5668da['x-attribsNamespace']={..._0xe98882['x-attribsNamespace']}),_0xe98882['x-attribsPrefix']&&(_0x5668da['x-attribsPrefix']={..._0xe98882['x-attribsPrefix']}),_0x4e63c4=_0x5668da;}else{if(isCDATA(_0xe98882)){const _0x538abc=_0x5a45f4?cloneChildren(_0xe98882['children']):[],_0x17681d=new CDATA(_0x538abc);_0x538abc['forEach'](_0x2c1b33=>_0x2c1b33['parent']=_0x17681d),_0x4e63c4=_0x17681d;}else{if(isDocument(_0xe98882)){const _0x455b53=_0x5a45f4?cloneChildren(_0xe98882['children']):[],_0x356e85=new Document(_0x455b53);_0x455b53['forEach'](_0x4fb0e3=>_0x4fb0e3['parent']=_0x356e85),_0xe98882['x-mode']&&(_0x356e85['x-mode']=_0xe98882['x-mode']),_0x4e63c4=_0x356e85;}else{if(!isDirective(_0xe98882))throw new Error('Not\x20implemented\x20yet:\x20'+_0xe98882['type']);{const _0x42019c=new ProcessingInstruction(_0xe98882['name'],_0xe98882['data']);null!=_0xe98882['x-name']&&(_0x42019c['x-name']=_0xe98882['x-name'],_0x42019c['x-publicId']=_0xe98882['x-publicId'],_0x42019c['x-systemId']=_0xe98882['x-systemId']),_0x4e63c4=_0x42019c;}}}}}}return _0x4e63c4['startIndex']=_0xe98882['startIndex'],_0x4e63c4['endIndex']=_0xe98882['endIndex'],null!=_0xe98882['sourceCodeLocation']&&(_0x4e63c4['sourceCodeLocation']=_0xe98882['sourceCodeLocation']),_0x4e63c4;}function cloneChildren(_0x262079){const _0x2e95d6=_0x262079['map'](_0x35d103=>cloneNode(_0x35d103,!0x0));for(let _0x4f9a35=0x1;_0x4f9a35<_0x2e95d6['length'];_0x4f9a35++)_0x2e95d6[_0x4f9a35]['prev']=_0x2e95d6[_0x4f9a35-0x1],_0x2e95d6[_0x4f9a35-0x1]['next']=_0x2e95d6[_0x4f9a35];return _0x2e95d6;}const defaultOpts={'withStartIndices':!0x1,'withEndIndices':!0x1,'xmlMode':!0x1};class DomHandler{constructor(_0x4b4e42,_0x11a02e,_0x3eac5e){this['dom']=[],this['root']=new Document(this['dom']),this['done']=!0x1,this['tagStack']=[this['root']],this['lastNode']=null,this['parser']=null,'function'==typeof _0x11a02e&&(_0x3eac5e=_0x11a02e,_0x11a02e=defaultOpts),'object'==typeof _0x4b4e42&&(_0x11a02e=_0x4b4e42,_0x4b4e42=void 0x0),this['callback']=null!=_0x4b4e42?_0x4b4e42:null,this['options']=null!=_0x11a02e?_0x11a02e:defaultOpts,this['elementCB']=null!=_0x3eac5e?_0x3eac5e:null;}['onparserinit'](_0x5441c3){this['parser']=_0x5441c3;}['onreset'](){this['dom']=[],this['root']=new Document(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'](_0x580696){this['handleCallback'](_0x580696);}['onclosetag'](){this['lastNode']=null;const _0x56b87e=this['tagStack']['pop']();this['options']['withEndIndices']&&(_0x56b87e['endIndex']=this['parser']['endIndex']),this['elementCB']&&this['elementCB'](_0x56b87e);}['onopentag'](_0x4f8ef8,_0x35de9){const _0x53ccaf=this['options']['xmlMode']?ElementType['Tag']:void 0x0,_0x460e18=new Element$3(_0x4f8ef8,_0x35de9,void 0x0,_0x53ccaf);this['addNode'](_0x460e18),this['tagStack']['push'](_0x460e18);}['ontext'](_0x57bf63){const {lastNode:_0x564a2b}=this;if(_0x564a2b&&_0x564a2b['type']===ElementType['Text'])_0x564a2b['data']+=_0x57bf63,this['options']['withEndIndices']&&(_0x564a2b['endIndex']=this['parser']['endIndex']);else{const _0xcc327c=new Text$1(_0x57bf63);this['addNode'](_0xcc327c),this['lastNode']=_0xcc327c;}}['oncomment'](_0x84376){if(this['lastNode']&&this['lastNode']['type']===ElementType['Comment'])return void(this['lastNode']['data']+=_0x84376);const _0x47da6a=new Comment$1(_0x84376);this['addNode'](_0x47da6a),this['lastNode']=_0x47da6a;}['oncommentend'](){this['lastNode']=null;}['oncdatastart'](){const _0x23f89b=new Text$1(''),_0x3e15cb=new CDATA([_0x23f89b]);this['addNode'](_0x3e15cb),_0x23f89b['parent']=_0x3e15cb,this['lastNode']=_0x23f89b;}['oncdataend'](){this['lastNode']=null;}['onprocessinginstruction'](_0x4b6da3,_0x1564c6){const _0x12c518=new ProcessingInstruction(_0x4b6da3,_0x1564c6);this['addNode'](_0x12c518);}['handleCallback'](_0x4620b9){if('function'==typeof this['callback'])this['callback'](_0x4620b9,this['dom']);else{if(_0x4620b9)throw _0x4620b9;}}['addNode'](_0x352521){const _0x280bc3=this['tagStack'][this['tagStack']['length']-0x1],_0x2309bc=_0x280bc3['children'][_0x280bc3['children']['length']-0x1];this['options']['withStartIndices']&&(_0x352521['startIndex']=this['parser']['startIndex']),this['options']['withEndIndices']&&(_0x352521['endIndex']=this['parser']['endIndex']),_0x280bc3['children']['push'](_0x352521),_0x2309bc&&(_0x352521['prev']=_0x2309bc,_0x2309bc['next']=_0x352521),_0x352521['parent']=_0x280bc3,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']?(_0x23fcd9,_0xf6ad86)=>_0x23fcd9['codePointAt'](_0xf6ad86):(_0x5ca187,_0xf00c73)=>0xd800==(0xfc00&_0x5ca187['charCodeAt'](_0xf00c73))?0x400*(_0x5ca187['charCodeAt'](_0xf00c73)-0xd800)+_0x5ca187['charCodeAt'](_0xf00c73+0x1)-0xdc00+0x10000:_0x5ca187['charCodeAt'](_0xf00c73);function encodeXML(_0x386a2c){let _0x504509,_0x592593='',_0x3ca8db=0x0;for(;null!==(_0x504509=xmlReplacer['exec'](_0x386a2c));){const _0x2f3e7d=_0x504509['index'],_0x7c244=_0x386a2c['charCodeAt'](_0x2f3e7d),_0x56b399=xmlCodeMap['get'](_0x7c244);void 0x0!==_0x56b399?(_0x592593+=_0x386a2c['substring'](_0x3ca8db,_0x2f3e7d)+_0x56b399,_0x3ca8db=_0x2f3e7d+0x1):(_0x592593+=_0x386a2c['substring'](_0x3ca8db,_0x2f3e7d)+'&#x'+getCodePoint(_0x386a2c,_0x2f3e7d)['toString'](0x10)+';',_0x3ca8db=xmlReplacer['lastIndex']+=Number(0xd800==(0xfc00&_0x7c244)));}return _0x592593+_0x386a2c['substr'](_0x3ca8db);}function getEscaper(_0x2dc3d6,_0xca8c4a){return function(_0x716cc6){let _0x32a28a,_0x2682d3=0x0,_0x154dab='';for(;_0x32a28a=_0x2dc3d6['exec'](_0x716cc6);)_0x2682d3!==_0x32a28a['index']&&(_0x154dab+=_0x716cc6['substring'](_0x2682d3,_0x32a28a['index'])),_0x154dab+=_0xca8c4a['get'](_0x32a28a[0x0]['charCodeAt'](0x0)),_0x2682d3=_0x32a28a['index']+0x1;return _0x154dab+_0x716cc6['substring'](_0x2682d3);};}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'](_0x33c431=>[_0x33c431['toLowerCase'](),_0x33c431])),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'](_0xd743e4=>[_0xd743e4['toLowerCase'](),_0xd743e4])),unencodedElements=new Set(['style','script','xmp','iframe','noembed','noframes','plaintext','noscript']);function replaceQuotes(_0x37376b){return _0x37376b['replace'](/"/g,'&quot;');}function formatAttributes(_0x51fc77,_0x2b11ab){var _0x4d9f74;if(!_0x51fc77)return;const _0x178c94=!0x1===(null!==(_0x4d9f74=_0x2b11ab['encodeEntities'])&&void 0x0!==_0x4d9f74?_0x4d9f74:_0x2b11ab['decodeEntities'])?replaceQuotes:_0x2b11ab['xmlMode']||'utf8'!==_0x2b11ab['encodeEntities']?encodeXML:escapeAttribute;return Object['keys'](_0x51fc77)['map'](_0x2d4cb1=>{var _0x29d76b,_0x1d1190;const _0x2a57d2=null!==(_0x29d76b=_0x51fc77[_0x2d4cb1])&&void 0x0!==_0x29d76b?_0x29d76b:'';return'foreign'===_0x2b11ab['xmlMode']&&(_0x2d4cb1=null!==(_0x1d1190=attributeNames['get'](_0x2d4cb1))&&void 0x0!==_0x1d1190?_0x1d1190:_0x2d4cb1),_0x2b11ab['emptyAttrs']||_0x2b11ab['xmlMode']||''!==_0x2a57d2?_0x2d4cb1+'=\x22'+_0x178c94(_0x2a57d2)+'\x22':_0x2d4cb1;})['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(_0x5760e1,_0x235442={}){const _0xd6522c='length'in _0x5760e1?_0x5760e1:[_0x5760e1];let _0x4325b1='';for(let _0x1c82cf=0x0;_0x1c82cf<_0xd6522c['length'];_0x1c82cf++)_0x4325b1+=renderNode(_0xd6522c[_0x1c82cf],_0x235442);return _0x4325b1;}function renderNode(_0x50fd01,_0x5d8b79){switch(_0x50fd01['type']){case Root:return render(_0x50fd01['children'],_0x5d8b79);case Doctype:case Directive:return renderDirective(_0x50fd01);case Comment$2:return renderComment(_0x50fd01);case CDATA$1:return renderCdata(_0x50fd01);case Script:case Style:case Tag$1:return renderTag(_0x50fd01,_0x5d8b79);case Text$2:return renderText(_0x50fd01,_0x5d8b79);}}const foreignModeIntegrationPoints=new Set(['mi','mo','mn','ms','mtext','annotation-xml','foreignObject','desc','title']),foreignElements=new Set(['svg','math']);function renderTag(_0x8f8968,_0x2ffb8d){var _0x33df53;'foreign'===_0x2ffb8d['xmlMode']&&(_0x8f8968['name']=null!==(_0x33df53=elementNames['get'](_0x8f8968['name']))&&void 0x0!==_0x33df53?_0x33df53:_0x8f8968['name'],_0x8f8968['parent']&&foreignModeIntegrationPoints['has'](_0x8f8968['parent']['name'])&&(_0x2ffb8d={..._0x2ffb8d,'xmlMode':!0x1})),!_0x2ffb8d['xmlMode']&&foreignElements['has'](_0x8f8968['name'])&&(_0x2ffb8d={..._0x2ffb8d,'xmlMode':'foreign'});let _0x518f64='<'+_0x8f8968['name'];const _0x50bd32=formatAttributes(_0x8f8968['attribs'],_0x2ffb8d);return _0x50bd32&&(_0x518f64+='\x20'+_0x50bd32),0x0===_0x8f8968['children']['length']&&(_0x2ffb8d['xmlMode']?!0x1!==_0x2ffb8d['selfClosingTags']:_0x2ffb8d['selfClosingTags']&&singleTag['has'](_0x8f8968['name']))?(_0x2ffb8d['xmlMode']||(_0x518f64+='\x20'),_0x518f64+='/>'):(_0x518f64+='>',_0x8f8968['children']['length']>0x0&&(_0x518f64+=render(_0x8f8968['children'],_0x2ffb8d)),!_0x2ffb8d['xmlMode']&&singleTag['has'](_0x8f8968['name'])||(_0x518f64+='</'+_0x8f8968['name']+'>')),_0x518f64;}function renderDirective(_0x127c4b){return'<'+_0x127c4b['data']+'>';}function renderText(_0x1749f0,_0x1e4840){var _0x4878b3;let _0x1d67f3=_0x1749f0['data']||'';return!0x1===(null!==(_0x4878b3=_0x1e4840['encodeEntities'])&&void 0x0!==_0x4878b3?_0x4878b3:_0x1e4840['decodeEntities'])||!_0x1e4840['xmlMode']&&_0x1749f0['parent']&&unencodedElements['has'](_0x1749f0['parent']['name'])||(_0x1d67f3=_0x1e4840['xmlMode']||'utf8'!==_0x1e4840['encodeEntities']?encodeXML(_0x1d67f3):escapeText(_0x1d67f3)),_0x1d67f3;}function renderCdata(_0x123fbb){return'<![CDATA['+_0x123fbb['children'][0x0]['data']+']]>';}function renderComment(_0x4c4696){return'<!--'+_0x4c4696['data']+'-->';}function textContent(_0x4132cf){return Array['isArray'](_0x4132cf)?_0x4132cf['map'](textContent)['join'](''):hasChildren(_0x4132cf)&&!isComment(_0x4132cf)?textContent(_0x4132cf['children']):isText$1(_0x4132cf)?_0x4132cf['data']:'';}function getChildren$1(_0x1722ce){return hasChildren(_0x1722ce)?_0x1722ce['children']:[];}function getParent(_0x534b6f){return _0x534b6f['parent']||null;}function removeElement(_0x1203a6){if(_0x1203a6['prev']&&(_0x1203a6['prev']['next']=_0x1203a6['next']),_0x1203a6['next']&&(_0x1203a6['next']['prev']=_0x1203a6['prev']),_0x1203a6['parent']){const _0x232e9c=_0x1203a6['parent']['children'],_0x1abd72=_0x232e9c['lastIndexOf'](_0x1203a6);_0x1abd72>=0x0&&_0x232e9c['splice'](_0x1abd72,0x1);}_0x1203a6['next']=null,_0x1203a6['prev']=null,_0x1203a6['parent']=null;}function replaceElement(_0x3c9cd7,_0x471c18){const _0x324643=_0x471c18['prev']=_0x3c9cd7['prev'];_0x324643&&(_0x324643['next']=_0x471c18);const _0x165248=_0x471c18['next']=_0x3c9cd7['next'];_0x165248&&(_0x165248['prev']=_0x471c18);const _0x322cce=_0x471c18['parent']=_0x3c9cd7['parent'];if(_0x322cce){const _0x202ed5=_0x322cce['children'];_0x202ed5[_0x202ed5['lastIndexOf'](_0x3c9cd7)]=_0x471c18,_0x3c9cd7['parent']=null;}}function appendChild(_0xcb4cc,_0x49e4cf){if(removeElement(_0x49e4cf),_0x49e4cf['next']=null,_0x49e4cf['parent']=_0xcb4cc,_0xcb4cc['children']['push'](_0x49e4cf)>0x1){const _0x265bd2=_0xcb4cc['children'][_0xcb4cc['children']['length']-0x2];_0x265bd2['next']=_0x49e4cf,_0x49e4cf['prev']=_0x265bd2;}else _0x49e4cf['prev']=null;}function append(_0x53b969,_0x287692){removeElement(_0x287692);const {parent:_0x59f3e6}=_0x53b969,_0x3e073b=_0x53b969['next'];if(_0x287692['next']=_0x3e073b,_0x287692['prev']=_0x53b969,_0x53b969['next']=_0x287692,_0x287692['parent']=_0x59f3e6,_0x3e073b){if(_0x3e073b['prev']=_0x287692,_0x59f3e6){const _0x3bf9f4=_0x59f3e6['children'];_0x3bf9f4['splice'](_0x3bf9f4['lastIndexOf'](_0x3e073b),0x0,_0x287692);}}else _0x59f3e6&&_0x59f3e6['children']['push'](_0x287692);}function prependChild(_0x379472,_0x4cadc1){if(removeElement(_0x4cadc1),_0x4cadc1['parent']=_0x379472,_0x4cadc1['prev']=null,0x1!==_0x379472['children']['unshift'](_0x4cadc1)){const _0x50d40c=_0x379472['children'][0x1];_0x50d40c['prev']=_0x4cadc1,_0x4cadc1['next']=_0x50d40c;}else _0x4cadc1['next']=null;}function prepend(_0x2438fd,_0x3c6850){removeElement(_0x3c6850);const {parent:_0xb65dbd}=_0x2438fd;if(_0xb65dbd){const _0x29ab76=_0xb65dbd['children'];_0x29ab76['splice'](_0x29ab76['indexOf'](_0x2438fd),0x0,_0x3c6850);}_0x2438fd['prev']&&(_0x2438fd['prev']['next']=_0x3c6850),_0x3c6850['parent']=_0xb65dbd,_0x3c6850['prev']=_0x2438fd['prev'],_0x3c6850['next']=_0x2438fd,_0x2438fd['prev']=_0x3c6850;}function find$1(_0x3d47aa,_0x28fff3,_0x5091d6,_0x69173b){const _0x3461c9=[],_0x1b14a6=[Array['isArray'](_0x28fff3)?_0x28fff3:[_0x28fff3]],_0x2dd6f6=[0x0];for(;;){if(_0x2dd6f6[0x0]>=_0x1b14a6[0x0]['length']){if(0x1===_0x2dd6f6['length'])return _0x3461c9;_0x1b14a6['shift'](),_0x2dd6f6['shift']();continue;}const _0x23f3c6=_0x1b14a6[0x0][_0x2dd6f6[0x0]++];if(_0x3d47aa(_0x23f3c6)&&(_0x3461c9['push'](_0x23f3c6),--_0x69173b<=0x0))return _0x3461c9;hasChildren(_0x23f3c6)&&_0x23f3c6['children']['length']>0x0&&(_0x2dd6f6['unshift'](0x0),_0x1b14a6['unshift'](_0x23f3c6['children']));}}function findOne(_0x2555dc,_0x9b5ec4,_0x740ef5=!0x0){const _0x3dd50c=Array['isArray'](_0x9b5ec4)?_0x9b5ec4:[_0x9b5ec4];for(let _0x567ce9=0x0;_0x567ce9<_0x3dd50c['length'];_0x567ce9++){const _0x54dbdc=_0x3dd50c[_0x567ce9];if(isTag(_0x54dbdc)&&_0x2555dc(_0x54dbdc))return _0x54dbdc;if(_0x740ef5&&hasChildren(_0x54dbdc)&&_0x54dbdc['children']['length']>0x0){const _0x4195a8=findOne(_0x2555dc,_0x54dbdc['children'],!0x0);if(_0x4195a8)return _0x4195a8;}}return null;}function findAll(_0x3a8c81,_0xaf28fd){const _0x532b4f=[],_0xdd7176=[Array['isArray'](_0xaf28fd)?_0xaf28fd:[_0xaf28fd]],_0x272348=[0x0];for(;;){if(_0x272348[0x0]>=_0xdd7176[0x0]['length']){if(0x1===_0xdd7176['length'])return _0x532b4f;_0xdd7176['shift'](),_0x272348['shift']();continue;}const _0x4c00f0=_0xdd7176[0x0][_0x272348[0x0]++];isTag(_0x4c00f0)&&_0x3a8c81(_0x4c00f0)&&_0x532b4f['push'](_0x4c00f0),hasChildren(_0x4c00f0)&&_0x4c00f0['children']['length']>0x0&&(_0x272348['unshift'](0x0),_0xdd7176['unshift'](_0x4c00f0['children']));}}function parseDocument(_0x173b1e,_0x2cd384){const _0x2eff43=new DomHandler(void 0x0,_0x2cd384);return new Parser$1(_0x2eff43,_0x2cd384)['end'](_0x173b1e),_0x2eff43['root'];}function parse$2(_0x29962b){return parseDocument(_0x29962b);}function serialize(_0x52ff5f){return render(_0x52ff5f);}function findByAttribute(_0x36594b,_0x23fae7,_0x4e3d6e){const _0x2fb6ab=null!==_0x23fae7?_0x32bda5=>_0x32bda5['attribs'][_0x36594b]===_0x23fae7:_0x5b8e9b=>Boolean(_0x5b8e9b['attribs'][_0x36594b]);return findOne(_0x395c0f=>isTag(_0x395c0f)&&_0x2fb6ab(_0x395c0f),_0x4e3d6e);}function findAllByAttribute(_0x5f390a,_0x3c92f5,_0x3f98a9){const _0x590374=null!==_0x3c92f5?_0xfaea37=>_0xfaea37['attribs'][_0x5f390a]===_0x3c92f5:_0x2808f7=>Boolean(_0x2808f7['attribs'][_0x5f390a]);return findAll(_0x2ab0dd=>isTag(_0x2ab0dd)&&_0x590374(_0x2ab0dd),_0x3f98a9);}function findAllComments(_0x511b91){return find$1(_0x155c0a=>isComment(_0x155c0a),_0x511b91,!0x0,0x1/0x0);}function getAttribute(_0x4828ac,_0x5ec6f3){return _0x4828ac&&isTag(_0x4828ac)?_0x4828ac['attribs'][_0x5ec6f3]:null;}function setAttribute(_0x2f0016,_0x14f0dd,_0x42e690){isTag(_0x2f0016)&&(null===_0x42e690?delete _0x2f0016['attribs'][_0x14f0dd]:_0x2f0016['attribs'][_0x14f0dd]=_0x42e690);}function insertElement(_0x57451f,_0x422c2e,_0x14408c){const _0x4121dd=_0x422c2e['cloneNode'](!0x0);'beforebegin'===_0x14408c?prepend(_0x57451f,_0x4121dd):'afterbegin'===_0x14408c?prependChild(_0x57451f,_0x4121dd):'beforeend'===_0x14408c?appendChild(_0x57451f,_0x4121dd):'afterend'===_0x14408c&&append(_0x57451f,_0x4121dd);}function moveElement(_0x52e949,_0x56eeef){removeElement(_0x52e949),replaceElement(_0x56eeef,_0x52e949);}function clone$2(_0x3f1938){return _0x3f1938['cloneNode'](!0x0);}function getParents(_0x2fa120){const _0x232694=[];let _0xcae825=_0x2fa120;for(;_0xcae825;)_0xcae825=getParent(_0xcae825),_0xcae825&&_0x232694['push'](_0xcae825);return _0x232694;}function normalizeHTML(_0x4ff036){return _0x4ff036['replace'](/^\s+/gm,'')['replace'](/\s+$/gm,'')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/>\s*</g,'><');}function areNodesSame(_0x29f07d,_0x22ab6e){return normalizeHTML(serialize(_0x29f07d))===normalizeHTML(serialize(_0x22ab6e));}function getNodeNestingLevel(_0x3c91bf){let _0x4ee4b9=0x0;for(;_0x3c91bf['parentNode'];)_0x3c91bf=_0x3c91bf['parentNode'],_0x4ee4b9++;return _0x4ee4b9;}function removeElementsAfter(_0x487f5d){const _0x1fd334=[];let _0x3e4f42=_0x487f5d['nextSibling'];for(;_0x3e4f42;)_0x1fd334['push'](_0x3e4f42),_0x3e4f42=_0x3e4f42['nextSibling'];_0x1fd334['forEach'](_0x4ecc26=>{removeElement(_0x4ecc26);});}class AIResponseParser extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_m2html'];constructor(){super(),this['_m2html']=new MarkdownGfmMdToHtml();}['convertMarkdownToHTML'](_0x49aca3){const _0xec8280=this['_m2html']['parse'](_0x49aca3);return this['parseAndNormalizeHTML'](_0xec8280);}['parseAndNormalizeHTML'](_0xee3d25){return this['_parseHTML'](_0xee3d25);}['_parseHTML'](_0x469a3b){const _0x18a1f9=parse$2('<dummy>'+_0x469a3b['replace'](/^\t+/gm,'\x20')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/<[^>]*?$/g,'')+'</dummy>');return _0x18a1f9['children']=_0x18a1f9['children'][0x0]['children'],_0x18a1f9;}}class AIResponseApplier extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_generateUid'];['_touchedNodesState']={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};['_existingDataIds']=new Set();constructor(_0x101892){super(),this['_generateUid']=_0x101892||uid;}['merge'](_0x178ee6,_0x102c41,_0xe12edc){const _0x3d8553=clone$2(_0x178ee6);if(0x0===_0x102c41['childNodes']['length']){const _0x3ea1dd=[];return findAllByAttribute('data-id','new-element',_0x3d8553)['forEach'](_0x3c52ae=>{const _0x551144=this['_generateUid']();setAttribute(_0x3c52ae,'data-id',_0x551144),_0x3ea1dd['push'](_0x551144);}),this['_removeSpecialComments'](_0x3d8553),{'parsedContent':_0x3d8553,'newNodeIds':_0x3ea1dd,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xe12edc&&_0xe12edc['markUnstableElements']&&this['_markLastTagElementUnstable'](_0x3d8553),this['_touchedNodesState']['newIds']=[],this['_touchedNodesState']['modifiedIds']=[],this['_touchedNodesState']['removedIds']=[],this['_touchedNodesState']['invalidIds']=[],this['_touchedNodesState']['lastTouchedId']=null,this['_existingDataIds']=new Set(findAllByAttribute('data-id',null,_0x102c41)['map'](_0x226cf8=>getAttribute(_0x226cf8,'data-id'))['filter'](_0x1bdd43=>!!_0x1bdd43));let _0x31c2a9=-0x1,_0xbfb0fa=!0x1;const _0x42138b=_0x3d8553['childNodes'],_0x16b4e4=Array['from'](_0x42138b)['filter'](_0x30434d=>!(0x3===_0x30434d['nodeType']&&''===serialize(_0x30434d)['trim']())),_0x5d42c7=_0x16b4e4['length'];for(let _0x2c8813=0x0;_0x2c8813<_0x5d42c7;_0x2c8813++){const _0x3333e6=_0x16b4e4[_0x2c8813],_0x5ba589=_0x16b4e4[_0x2c8813+0x1];if(this['_isNewNode'](_0x3333e6)){if(-0x1===_0x31c2a9&&(_0x31c2a9=_0x2c8813),this['_markWrappedElements'](_0x3333e6),!this['_isNewNode'](_0x5ba589)){const [_0x565d62,_0x1842c1]=this['_findReferenceNode'](_0x3333e6,_0xbfb0fa,_0x102c41);if(_0x565d62){const _0x4a1bd3=Array['from'](_0x16b4e4)['slice'](_0x31c2a9,_0x2c8813+0x1);this['_insertNodes'](_0x565d62,_0x4a1bd3,_0x1842c1),_0x31c2a9=-0x1;}}}else{if(this['_isExistingContentComment'](_0x3333e6))_0xbfb0fa=!0x0;else{if(this['_isExistingNode'](_0x3333e6)){const _0x3eacef=getAttribute(_0x3333e6,'data-id');if(_0x3eacef&&this['_existingDataIds']['has'](_0x3eacef)){const _0x16c814=findByAttribute('data-id',_0x3eacef,_0x102c41);this['_replaceNode'](_0x16c814,_0x3333e6);}if(this['_touchedNodesState']['removedIds']['includes'](_0x3eacef)){const _0x515a2a=this['_touchedNodesState']['removedIds']['indexOf'](_0x3eacef);this['_touchedNodesState']['removedIds']['splice'](_0x515a2a,0x1);}}else{if(this['_isDelNode'](_0x3333e6)){const _0xb432fc=getAttribute(_0x3333e6,'data-id');this['_touchedNodesState']['modifiedIds']['includes'](_0xb432fc)||this['_storeDeletedElementIds'](_0x3333e6);}}}}}for(const _0x2e1d4d of this['_touchedNodesState']['removedIds']){const _0x2cd327=findByAttribute('data-id',_0x2e1d4d,_0x102c41);if(_0x2cd327){if(_0xe12edc&&_0xe12edc['replaceRemovedWith']){this['_touchedNodesState']['lastTouchedId']=_0x2e1d4d;const _0x330c74=_0xe12edc['replaceRemovedWith']['cloneNode'](!0x0);setAttribute(_0x330c74,'data-id',_0x2e1d4d),setAttribute(_0x330c74,'data-removed','true'),replaceElement(_0x2cd327,_0x330c74);}else removeElement(_0x2cd327);}}if(findAllByAttribute('data-wrapped-id',null,_0x102c41)['forEach'](_0x3f07b9=>{const _0x3e9daf=findByAttribute('data-id',getAttribute(_0x3f07b9,'data-wrapped-id'),_0x102c41);_0x3e9daf&&moveElement(_0x3e9daf,_0x3f07b9);}),findAllByAttribute('data-id','new-element',_0x102c41)['forEach'](_0x2f01c8=>{const _0x256874=this['_getUid'](_0x2f01c8);setAttribute(_0x2f01c8,'data-id',_0x256874),this['_touchedNodesState']['newIds']['push'](_0x256874);}),this['_removeSpecialComments'](_0x102c41),_0xe12edc&&_0xe12edc['markUnstableElements']&&this['_markUnstableElements'](_0x102c41,_0xe12edc['markUnstableElementsDepth']||0x0),_0xe12edc&&_0xe12edc['cutAfterLastChange']&&this['_touchedNodesState']['lastTouchedId']){let _0x3410fc=findByAttribute('data-id',this['_touchedNodesState']['lastTouchedId'],_0x102c41);for(;_0x3410fc;)removeElementsAfter(_0x3410fc),_0x3410fc=_0x3410fc['parentNode'];}return{'parsedContent':_0x102c41,'newNodeIds':this['_touchedNodesState']['newIds'],'modifiedNodeIds':this['_touchedNodesState']['modifiedIds'],'removedNodeIds':this['_touchedNodesState']['removedIds']};}['_insertNodes'](_0xf8ec7e,_0x315326,_0x45a4a0){for(const _0x58423d of _0x315326){const _0x130207=this['_getUid'](_0x58423d);setAttribute(_0x58423d,'data-id',_0x130207),this['_touchedNodesState']['newIds']['push'](_0x130207),this['_touchedNodesState']['lastTouchedId']=_0x130207;}const _0x72f6e1='afterbegin'===_0x45a4a0||'afterend'===_0x45a4a0?_0x315326['reverse']():_0x315326;for(const _0x4b79a1 of _0x72f6e1)insertElement(_0xf8ec7e,_0x4b79a1,_0x45a4a0);}['_replaceNode'](_0x4628d3,_0x5bda81){if(!_0x4628d3)return;if(areNodesSame(_0x4628d3,_0x5bda81))return;const _0x44ebd7=this['_getUid'](_0x4628d3);setAttribute(_0x5bda81,'data-id',_0x44ebd7),this['_touchedNodesState']['modifiedIds']['push'](_0x44ebd7),this['_touchedNodesState']['lastTouchedId']=_0x44ebd7,replaceElement(_0x4628d3,_0x5bda81['cloneNode'](!0x0));}['_findReferenceNode'](_0x4ec4e0,_0x34263b,_0x2fecd0){const _0x3979bc=this['_findPrevElementWithDataId'](_0x4ec4e0,!0x1);if(_0x3979bc){const _0x54dda1=this['_getNodeDataId'](_0x3979bc),_0xd0ab6c=findByAttribute('data-id',_0x54dda1,_0x2fecd0);if(_0xd0ab6c)return[_0xd0ab6c,'afterend'];this['_touchedNodesState']['invalidIds']['push'](_0x54dda1);}const _0x4aad50=this['_findNextElementWithDataId'](_0x4ec4e0,!0x1);if(_0x4aad50){const _0x6e1ee0=this['_getNodeDataId'](_0x4aad50),_0x2eb3b1=findByAttribute('data-id',_0x6e1ee0,_0x2fecd0);if(_0x2eb3b1)return[_0x2eb3b1,'beforebegin'];this['_touchedNodesState']['invalidIds']['push'](_0x6e1ee0);}return _0x34263b?_0x4ec4e0['nextSibling']?this['_findFallbackReferenceNode'](_0x4ec4e0,_0x2fecd0):[_0x2fecd0['childNodes'][_0x2fecd0['childNodes']['length']-0x1],'afterend']:[_0x2fecd0['childNodes'][0x0],'beforebegin'];}['_findFallbackReferenceNode'](_0x6b210d,_0x10ad1a){const _0x53257=[],_0x392971=this['_findPrevElementWithDataId'](_0x6b210d,!0x0);if(_0x392971){const _0xdba186=findByAttribute('data-id',this['_getNodeDataId'](_0x392971),_0x10ad1a);_0xdba186&&_0x53257['push']([_0xdba186,'afterend']);}const _0x4b4654=this['_findNextElementWithDataId'](_0x6b210d,!0x0);if(_0x4b4654){const _0x2e51eb=findByAttribute('data-id',this['_getNodeDataId'](_0x4b4654),_0x10ad1a);_0x2e51eb&&_0x53257['push']([_0x2e51eb,'beforebegin']);}if(_0x53257['length']>0x1)return getNodeNestingLevel(_0x53257[0x0][0x0])<=getNodeNestingLevel(_0x53257[0x1][0x0])?_0x53257[0x0]:_0x53257[0x1];return 0x1===_0x53257['length']?_0x53257[0x0]:[_0x10ad1a['lastChild'],'afterend'];}['_findNextElementWithDataId'](_0x27be34,_0x47d8d3){let _0x5485be=_0x27be34['nextSibling'],_0x2d7a9e=null,_0x47b163=!0x1;for(;_0x5485be;){if(isComment(_0x5485be)){if(this['_isDelNode'](_0x5485be)&&(_0x2d7a9e=_0x5485be),this['_isExistingContentComment'](_0x5485be)&&_0x47d8d3&&!_0x47b163){_0x47b163=!0x0,_0x5485be=_0x5485be['nextSibling'];continue;}break;}const _0x34c0a1=getAttribute(_0x5485be,'data-id');if(_0x34c0a1&&'new-element'!==_0x34c0a1&&this['_existingDataIds']['has'](_0x34c0a1)){_0x2d7a9e=_0x5485be;break;}_0x5485be=_0x5485be['nextSibling'];}return _0x2d7a9e;}['_findPrevElementWithDataId'](_0x4122b1,_0x410267){let _0x44b3f0=_0x4122b1['previousSibling'],_0x1ce7b0=null,_0x2c8e4d=!0x1;for(;_0x44b3f0;){if(isComment(_0x44b3f0)){if(this['_isDelNode'](_0x44b3f0)&&(_0x1ce7b0=_0x44b3f0),this['_isExistingContentComment'](_0x44b3f0)&&_0x410267&&!_0x2c8e4d){_0x2c8e4d=!0x0,_0x44b3f0=_0x44b3f0['previousSibling'];continue;}break;}const _0x3ede10=getAttribute(_0x44b3f0,'data-id');if(_0x3ede10&&'new-element'!==_0x3ede10&&this['_existingDataIds']['has'](_0x3ede10)){_0x1ce7b0=_0x44b3f0;break;}_0x44b3f0=_0x44b3f0['previousSibling'];}return _0x1ce7b0;}['_markWrappedElements'](_0x72e030){isTag(_0x72e030)&&findAllByAttribute('data-id',null,_0x72e030)['forEach'](_0x58edd6=>{this['_isExistingNode'](_0x58edd6)&&!this['_hasWrappedParent'](_0x58edd6)&&(setAttribute(_0x58edd6,'data-wrapped-id',getAttribute(_0x58edd6,'data-id')),setAttribute(_0x58edd6,'data-id',null));});}['_getNodeDataId'](_0x14ddb4){if(!_0x14ddb4)return null;if(isTag(_0x14ddb4))return getAttribute(_0x14ddb4,'data-id');if(isComment(_0x14ddb4)){const _0x1cfcac=serialize(_0x14ddb4)['match'](/removed[\s*-]data-id="([^"]+)"/);if(_0x1cfcac&&_0x1cfcac[0x1])return _0x1cfcac[0x1];}return null;}['_storeDeletedElementIds'](_0xcbd225){if(isComment(_0xcbd225)){const _0x2f34e7=serialize(_0xcbd225)['match'](/removed[\s*-]data-id="([^"]+)"/);_0x2f34e7&&_0x2f34e7[0x1]&&this['_touchedNodesState']['removedIds']['push'](_0x2f34e7[0x1]);}}['_getUid'](_0x353c7b){return this['_isExistingNode'](_0x353c7b)?getAttribute(_0x353c7b,'data-id'):this['_generateUid']();}['_removeSpecialComments'](_0x48dc22){findAllComments(_0x48dc22)['filter'](_0x423f37=>this['_isDelNode'](_0x423f37)||this['_isExistingContentComment'](_0x423f37))['forEach'](_0x25d541=>{removeElement(_0x25d541);});}['_markLastTagElementUnstable'](_0x8db402){const _0x306087=_0x8db402['childNodes'],_0xaf0ee9=_0x306087[_0x306087['length']-0x1];_0xaf0ee9&&isTag(_0xaf0ee9)&&setAttribute(_0xaf0ee9,'data-unstable','true');}['_markUnstableElements'](_0x20ed31,_0x34c123){const _0x2f7cd0=findByAttribute('data-unstable','true',_0x20ed31);if(!_0x2f7cd0)return;const _0x58b5ea=getParents(_0x2f7cd0)['slice'](0x0,-0x1),_0xc159b=_0x58b5ea['length'];let _0x14e66d=_0x2f7cd0;if(_0xc159b>_0x34c123){let _0x362298=_0xc159b,_0x522dbc=null;for(;_0x362298>_0x34c123&&_0x362298>=0x0;)_0x362298--,_0x522dbc=_0x58b5ea[_0x362298];_0x522dbc&&(_0x14e66d=_0x522dbc,setAttribute(_0x2f7cd0,'data-unstable',null),setAttribute(_0x522dbc,'data-unstable','true'));}else{if(_0xc159b<_0x34c123){let _0x5e0918=_0xc159b,_0x35dd09=_0x2f7cd0;for(;_0x5e0918<_0x34c123;){const _0x5d13df=_0x35dd09['childNodes']['filter'](_0x3af2a7=>isTag(_0x3af2a7));if(0x0===_0x5d13df['length'])break;_0x5e0918++,_0x35dd09=_0x5d13df[_0x5d13df['length']-0x1];}_0x35dd09&&(_0x14e66d=_0x35dd09,setAttribute(_0x2f7cd0,'data-unstable',null),setAttribute(_0x35dd09,'data-unstable','true'));}}let _0x5d635b=_0x14e66d;for(;_0x5d635b;){for(;_0x5d635b['nextSibling'];)_0x5d635b=_0x5d635b['nextSibling'],isTag(_0x5d635b)&&setAttribute(_0x5d635b,'data-unstable','true');_0x5d635b=_0x5d635b['parentNode'];}}['_isNewNode'](_0xa3238b){return Boolean('new-element'===getAttribute(_0xa3238b,'data-id'));}['_isExistingNode'](_0x32e2c1){return Boolean((getAttribute(_0x32e2c1,'data-id')||'')['length']>0x0&&'new-element'!==getAttribute(_0x32e2c1,'data-id'));}['_isDelNode'](_0x5e1457){return!!_0x5e1457&&Boolean(isComment(_0x5e1457)&&serialize(_0x5e1457)['match'](/removed[\s*-]data-id="[^"]+"/));}['_hasWrappedParent'](_0x57c57e){let _0x4eb51e=_0x57c57e['parentNode'];for(;_0x4eb51e;){if(getAttribute(_0x4eb51e,'data-wrapped-id'))return!0x0;_0x4eb51e=_0x4eb51e['parentNode'];}return!0x1;}['_isExistingContentComment'](_0x3be049){return Boolean(isComment(_0x3be049)&&serialize(_0x3be049)['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'](_0x5d2115,_0x37569a){let _0x283bcf;if(_0x37569a||(_0x37569a=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x37569a?_0x283bcf=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x283bcf=this['context']['editors']['find'](_0x1cf4a5=>_0x1cf4a5['config']['get']('collaboration.channelId')==_0x37569a)),!_0x283bcf)throw new CKEditorError('permissions-set-permissions-invalid-channel-id',null);const _0x30640a=_0x283bcf['plugins'],_0x38d7d6=_0x30640a['has']('CommentsRepository')?_0x30640a['get']('CommentsRepository'):void 0x0,_0x4e17f1=_0x30640a['has']('CommentsOnly')&&_0x30640a['get']('CommentsOnly'),_0x2dcbce=_0x5d2115['includes']('document:write'),_0x588323=_0x5d2115['includes']('comment:modify_all'),_0xa5efb=_0x5d2115['includes']('comment:admin'),_0x584c6d=_0x5d2115['includes']('comment:write'),_0x36f4f5=_0x584c6d||_0xa5efb,_0x5b02c7=_0x36f4f5||_0x588323,_0x5c21d3=_0x2dcbce||_0x36f4f5;(_0x4e17f1&&(_0x4e17f1['isEnabled']=!_0x2dcbce&&_0x5b02c7),_0x283bcf instanceof Editor)&&(!(_0x2dcbce||_0x5b02c7&&_0x38d7d6)?_0x283bcf['enableReadOnlyMode']('no-permissions'):_0x283bcf['disableReadOnlyMode']('no-permissions'));if(_0x38d7d6){_0x38d7d6['setPermissions']({'admin':_0xa5efb,'modifyAll':_0x588323,'write':_0x584c6d,'resolve':_0x5c21d3},_0x37569a);const _0x2cd8ec=_0x283bcf instanceof Editor&&_0x283bcf['commands']['get']('addCommentThread');_0x2cd8ec&&(_0x36f4f5?_0x2cd8ec['clearForceDisabled']('noPermissions'):_0x2cd8ec['forceDisabled']('noPermissions'));}}}function getTranslation$h(_0x4d998b,_0x2fe56f){const t=_0x4d998b['t'];switch(_0x2fe56f){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(_0x499f66){super(_0x499f66),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new Collection(),this['_locale']=_0x499f66['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:_0x513b1e,name:_0x22c5b1,..._0x14e195}){if(!_0x513b1e||'string'!=typeof _0x513b1e)throw new CKEditorError('users-add-invalid-id');if(this['users']['has'](_0x513b1e))throw new CKEditorError('users-add-duplicated-id',null,{'id':_0x513b1e});const _0x4ac632=this['context']['config']['get']('users.getInitialsCallback'),_0x57a69b={..._0x14e195,'id':_0x513b1e,'name':normalizeName(this['_locale'],_0x22c5b1),'color':this['_getNextColor']()};_0x57a69b['name']=normalizeName(this['_locale'],_0x57a69b['name']);const _0x2407d0=new User$1(_0x57a69b,_0x4ac632);return this['users']['add'](_0x2407d0),_0x2407d0;}['getUser'](_0x14be03){return this['users']['get'](_0x14be03);}['useAnonymousUser'](){const _0x5edc4e=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x5edc4e);}['defineMe'](_0x5870b0){if(this['_myId'])throw new CKEditorError('users-me-already-defined',null);const _0x55aa6b=this['getUser'](_0x5870b0);if(!_0x55aa6b)throw new CKEditorError('users-me-missing-user',null);this['_myId']=_0x5870b0,_0x55aa6b['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x209696=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x209696&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0x1d0f1f=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x1d0f1f,'name':getTranslation$h(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}let User$1=class{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x314e0b,_0x421cba){this['id']=_0x314e0b['id'],this['color']=_0x314e0b['color'],this['name']=_0x314e0b['name'],this['initials']=_0x421cba?_0x421cba(this['name']):this['_computeInitials'](),this['avatar']=_0x314e0b['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x10a282=this['name']['split']('\x20')['filter'](_0x16bd14=>/^[\p{Letter}]/u['test'](_0x16bd14));return 0x1===_0x10a282['length']?this['_getInitial'](_0x10a282[0x0]):0x0===_0x10a282['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x10a282[0x0])+this['_getInitial'](_0x10a282[_0x10a282['length']-0x1]);}['_getInitial'](_0x3346db){return String['fromCodePoint'](_0x3346db['codePointAt'](0x0))['toUpperCase']();}};function normalizeName(_0x43bc33,_0x33cfef=''){return''==(_0x33cfef=_0x33cfef['trim']())?getTranslation$h(_0x43bc33,'Anonymous'):_0x33cfef;}class CollaborationUserColor{['_id'];constructor(_0x47726e){this['_id']=_0x47726e;}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'];}}class UserView extends View{['name'];['notificationView'];constructor(_0xfd0cbf,_0x1d172b,_0x417246){super(_0xfd0cbf),this['name']=_0x1d172b['name'],this['notificationView']=null;const _0x4bdb76=['ck','ck-user'],_0xd5d31d=['ck','ck-user__img'];if(_0x1d172b['isAnonymous']&&_0xd5d31d['push']('ck-user__anonymous'),!_0x1d172b['isAnonymous']&&_0x1d172b['isMe']&&_0x4bdb76['push']('ck-user_me'),_0x1d172b['avatar']&&_0xd5d31d['push']('ck-user__avatar'),_0x417246){const _0x17c144=new IconView();_0x17c144['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x17c144['content']=IconNotification,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x417246},'children':[_0x17c144]};}const _0x4a4fa5=[{'tag':'div','attributes':{'class':_0xd5d31d,'style':{'background-image':_0x1d172b['avatar']?'url(\x27'+_0x1d172b['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x1d172b['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x1d172b['name']},'children':[{'text':_0x1d172b['initials']}]}];this['notificationView']&&_0x4a4fa5['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x4bdb76,'data-user-id':_0x1d172b['id']},'children':_0x4a4fa5});}}class AriaDescriptionView extends View{['id'];constructor(_0x35dc8,_0x167914){super(_0x35dc8),this['id']='ck-aria-description-'+uid(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x167914}]});}}class LateFocusButtonView extends ButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}class LateFocusDropdownButtonView extends DropdownButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}function delayFocusUntilMouseup(_0x36818b){_0x36818b['listenTo'](_0x36818b['element'],'mousedown',(_0x41b6ba,_0x3adc77)=>{_0x3adc77['stopPropagation'](),_0x3adc77['preventDefault']();}),_0x36818b['listenTo'](_0x36818b['element'],'mouseup',()=>{_0x36818b['element']['focus']();});}function splitSuggestionMarkerName(_0x363699){const _0x19bae5=_0x363699['split'](':');return{'group':_0x19bae5[0x0],'type':_0x19bae5[0x1],'subType':_0x19bae5['length']>=0x5?_0x19bae5[0x2]:null,'id':_0x19bae5['length']<0x5?_0x19bae5[0x2]:_0x19bae5[0x3],'authorId':_0x19bae5['length']<0x5?_0x19bae5[0x3]:_0x19bae5[0x4],'markerCount':0x6==_0x19bae5['length']?_0x19bae5[0x5]:null};}function fixElementSuggestionRange(_0x195426,_0x2774fd){const _0x213d80=_0x195426['end']['nodeBefore'];if(_0x213d80&&_0x213d80['is']('element')&&_0x2774fd['schema']['isBlock'](_0x213d80)&&!_0x2774fd['schema']['isObject'](_0x213d80)){const _0x45f896=_0x2774fd['createPositionAt'](_0x213d80,'end');return _0x2774fd['createRange'](_0x195426['start'],_0x45f896);}return _0x195426;}class SuggestionsConversionAlignment extends Plugin{['afterInit'](){const _0x39b94e=this['editor'];if(!_0x39b94e['plugins']['has']('AlignmentEditing'))return;_0x39b94e['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const basicStylesPlugins$1=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class SuggestionsConversionBasicStyles extends Plugin{['afterInit'](){const _0x3630bf=this['editor'],_0x2b85cd=_0x3630bf['plugins']['get']('SuggestionsConversion');for(const _0x4162f4 of basicStylesPlugins$1){if(!_0x3630bf['plugins']['has'](_0x4162f4))continue;const _0xe75ed9=_0x4162f4['slice'](0x0,-0x7)['toLowerCase']();_0x2b85cd['registerInlineAttribute'](_0xe75ed9);}}}class SuggestionsConversionBookmark extends Plugin{['afterInit'](){const _0x1905a1=this['editor'],_0x210ccc=_0x1905a1['plugins']['get']('SuggestionsConversion');_0x1905a1['plugins']['has']('BookmarkEditing')&&_0x210ccc['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 _0x1cb5c0=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x32cc73,commandName:_0x1e0428}of fontPlugins$1)this['editor']['plugins']['has'](_0x32cc73)&&_0x1cb5c0['registerInlineAttribute'](_0x1e0428);}}class SuggestionsConversionFootnotes extends Plugin{['afterInit'](){const {editor:_0x5a89eb}=this;if(!_0x5a89eb['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x5cb81c=_0x5a89eb['plugins']['get']('SuggestionsConversion');_0x5cb81c['registerBlockAttribute']('footnotesListStyle'),_0x5cb81c['registerBlockAttribute']('footnotesListStart');}}class SuggestionsConversionHighlight extends Plugin{['afterInit'](){const _0x4a7896=this['editor'];if(!_0x4a7896['plugins']['has']('HighlightEditing'))return;_0x4a7896['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class SuggestionsConversionHtmlEmbed extends Plugin{['afterInit'](){const _0x242084=this['editor'];if(!_0x242084['plugins']['has']('HtmlEmbed'))return;_0x242084['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class SuggestionsConversionImage extends Plugin{['afterInit'](){const _0x2c838b=this['editor'];if(!_0x2c838b['plugins']['has']('ImageEditing'))return;const _0x485703=_0x2c838b['plugins']['get']('SuggestionsConversion');_0x485703['registerBlockAttribute']('src'),_0x2c838b['plugins']['has']('ImageResize')&&_0x485703['registerBlockAttribute']('resizedWidth'),_0x2c838b['plugins']['has']('ImageTextAlternativeEditing')&&_0x485703['registerBlockAttribute']('alt'),_0x2c838b['plugins']['has']('PictureEditing')&&_0x485703['registerBlockAttribute']('sources'),_0x2c838b['plugins']['has']('ImageSizeAttributes')&&(_0x485703['registerBlockAttribute']('width'),_0x485703['registerBlockAttribute']('height'));}}class SuggestionsConversionIndent extends Plugin{['afterInit'](){const _0x57c4b5=this['editor'],_0x3423ae=_0x57c4b5['plugins']['get']('SuggestionsConversion');_0x57c4b5['plugins']['has']('IndentBlock')&&(_0x3423ae['registerBlockAttribute']('blockIndent'),_0x57c4b5['plugins']['has']('ListEditing')&&(_0x3423ae['registerBlockAttribute']('blockIndentList'),_0x3423ae['registerBlockAttribute']('blockIndentListItem')));}}class SuggestionsConversionLineHeight extends Plugin{['afterInit'](){const _0xaeac1e=this['editor'];if(!_0xaeac1e['plugins']['has']('LineHeight'))return;_0xaeac1e['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class SuggestionsConversionLink extends Plugin{['afterInit'](){const _0xc61644=this['editor'];if(!_0xc61644['plugins']['has']('LinkEditing'))return;const _0x425e6d=_0xc61644['plugins']['get']('SuggestionsConversion'),_0xdc00b5=_0xc61644['commands']['get']('link');_0x425e6d['registerInlineAttribute']('linkHref');for(const _0xc3d6d4 of _0xdc00b5['manualDecorators'])_0x425e6d['registerInlineAttribute'](_0xc3d6d4['id']);}}class SuggestionsConversionList extends Plugin{['afterInit'](){const _0x2a70f4=this['editor'];if(!_0x2a70f4['plugins']['has']('ListEditing'))return;const _0x9d8d44=_0x2a70f4['plugins']['get']('SuggestionsConversion'),_0x17d7e6=_0x2a70f4['plugins']['has']('TodoListEditing');_0x9d8d44['registerBlockAttribute']('listItemId'),_0x9d8d44['registerBlockAttribute']('listType'),_0x9d8d44['registerBlockAttribute']('listIndent'),_0x17d7e6&&_0x9d8d44['registerBlockAttribute']('todoListChecked');}}class SuggestionsConversionListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x203a18=this['editor']['config']['get']('list.properties'),_0x2e9bab=this['editor']['plugins']['get']('SuggestionsConversion');_0x203a18['styles']&&_0x2e9bab['registerBlockAttribute']('listStyle'),_0x203a18['reversed']&&_0x2e9bab['registerBlockAttribute']('listReversed'),_0x203a18['startIndex']&&_0x2e9bab['registerBlockAttribute']('listStart');}}class SuggestionsConversionMultiLevelList extends Plugin{['afterInit'](){const _0x4258a9=this['editor'],_0xd7f340=_0x4258a9['plugins']['get']('SuggestionsConversion');_0x4258a9['plugins']['has']('MultiLevelList')&&_0xd7f340['registerBlockAttribute']('listMarkerStyle');}}class SuggestionsConversionStylesDropdown extends Plugin{['afterInit'](){const _0x511f71=this['editor'];if(!_0x511f71['plugins']['has']('Style')||!_0x511f71['plugins']['has']('DataSchema')||!_0x511f71['config']['get']('style.definitions'))return;const _0x3e7d02=_0x511f71['plugins']['get']('SuggestionsConversion'),_0x3c5257=_0x511f71['config']['get']('style.definitions'),_0x6b5ce2=_0x511f71['plugins']['get']('GeneralHtmlSupport'),_0x354d0d=_0x511f71['plugins']['get']('StyleUtils')['normalizeConfig'](_0x511f71['plugins']['get']('DataSchema'),_0x3c5257),_0x55b2df=new Set();for(const _0x29e408 of _0x354d0d['block']){const _0x58e4dd=_0x6b5ce2['getGhsAttributeNameForElement'](_0x29e408['element']);_0x55b2df['add'](_0x58e4dd);}const _0x19fec3=new Set();for(const _0x5ce875 of _0x354d0d['inline']){const _0x1cb7cb=_0x6b5ce2['getGhsAttributeNameForElement'](_0x5ce875['element']);_0x19fec3['add'](_0x1cb7cb);for(const _0x530fc4 of _0x5ce875['ghsAttributes'])_0x19fec3['add'](_0x530fc4);}for(const _0x20a71c of _0x55b2df)_0x3e7d02['registerBlockAttribute'](_0x20a71c);for(const _0x1c707e of _0x19fec3)_0x3e7d02['registerInlineAttribute'](_0x1c707e);}}class SuggestionsConversionTableHeadings extends Plugin{['afterInit'](){const _0x38cd6e=this['editor'];if(!_0x38cd6e['plugins']['has']('TableEditing'))return;const _0x427412=_0x38cd6e['plugins']['get']('SuggestionsConversion');_0x427412['registerBlockAttribute']('headingRows'),_0x427412['registerBlockAttribute']('headingColumns');}}class SuggestionsConversionTableProperties extends Plugin{['afterInit'](){const {plugins:_0x5b3eba}=this['editor'];if(!_0x5b3eba['has']('TablePropertiesEditing'))return;const _0x1b4d1f=_0x5b3eba['get']('SuggestionsConversion'),_0x37b2ba=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x58e77a of _0x37b2ba)_0x1b4d1f['registerBlockAttribute'](_0x58e77a);}}class SuggestionsConversionTableLayout extends Plugin{['afterInit'](){const _0x40c414=this['editor'],_0x4b6f71=_0x40c414['plugins']['get']('SuggestionsConversion');_0x40c414['plugins']['has']('TableLayout')&&_0x4b6f71['registerBlockAttribute']('tableType');}}class SuggestionsConversionUploadcare extends Plugin{['afterInit'](){const _0x182614=this['editor'],_0x37c666=this['editor']['plugins']['get']('SuggestionsConversion');_0x182614['plugins']['has']('Uploadcare')&&_0x182614['plugins']['has']('UploadcareImageEdit')&&_0x37c666['registerBlockAttribute']('uploadcareImageId');}}class SuggestionsConversionShiftEnter extends Plugin{['afterInit'](){const _0x59100e=this['editor'];if(!_0x59100e['plugins']['has']('ShiftEnter'))return;const _0xa0e7de=_0x59100e['plugins']['get']('SuggestionsConversion'),_0x292afb=(_0x4d641b,_0x5e714f,_0x12611d,_0x5e3151)=>{if(_0x5e3151&&!_0x12611d['options']['showSuggestionHighlights'])return;if(!_0x12611d['consumable']['test'](_0x5e714f['markerRange'],_0x4d641b['name']))return;const _0x111d23=_0x59100e['model'];for(const _0x2ab3db of _0x5e714f['markerRange']['getItems']()){if(!_0x2ab3db['is']('element','softBreak'))continue;const _0x1db5b5='deletion'==_0x5e714f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4caf71,authorId:_0x72fa68}=splitSuggestionMarkerName(_0x5e714f['markerName']),_0x28f04d=_0x12611d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1db5b5,'data-suggestion':_0x4caf71,'data-author-id':_0x72fa68}),_0xa0fa18=_0x12611d['mapper']['toViewPosition'](_0x111d23['createPositionBefore'](_0x2ab3db));!_0x5e3151&&_0xa0e7de['_activeMarkers']['includes'](_0x5e714f['markerName'])&&_0x12611d['writer']['addClass']('ck-suggestion-marker--active',_0x28f04d),_0x12611d['writer']['insert'](_0xa0fa18,_0x28f04d),_0x12611d['mapper']['bindElementToMarker'](_0x28f04d,_0x5e714f['markerName']);}};_0x59100e['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1499d9,_0x526129,_0x3ff7e5)=>{_0x292afb(_0x1499d9,_0x526129,_0x3ff7e5,!0x1);},{'priority':'high'}),_0x59100e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5fa283,_0x4db2cc,_0x92d856)=>{_0x292afb(_0x5fa283,_0x4db2cc,_0x92d856,!0x0);},{'priority':'high'});}}class SuggestionsConversionMediaEmbed extends Plugin{['afterInit'](){const _0x461cbc=this['editor'];_0x461cbc['plugins']['has']('MediaEmbedEditing')&&(_0x461cbc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2cca8a,{writer:_0x19a06a,options:_0x281d72})=>{if(_0x281d72['showSuggestionHighlights'])return _0x19a06a['createEmptyElement']('div');},'converterPriority':'high'}),_0x461cbc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2eeb11,_0x4e83b1,_0x3f9e01)=>{_0x3f9e01['options']['showSuggestionHighlights']&&_0x2eeb11['stop']();},{'priority':'high'}));}}class SuggestionsConversionTable extends Plugin{['afterInit'](){const _0x159499=this['editor'];if(!_0x159499['plugins']['has']('Table'))return;_0x159499['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5b6d77,_0x4cdae3,_0x1230e5)=>{((_0x41b322,_0x3f1427,_0x3c5070)=>{if(!_0x3c5070['options']['showSuggestionHighlights'])return;const _0x3523a8=_0x3f1427['item'];if(!_0x3523a8||!_0x3523a8['is']('element','tableCell'))return;const _0x852201=_0x3c5070['mapper']['toViewElement'](_0x3523a8);if(_0x852201){const {id:_0x570126,authorId:_0x41c7f5}=splitSuggestionMarkerName(_0x3f1427['markerName']);setHighlightHandling(_0x852201,_0x3c5070['writer'],(_0x177d5b,_0x499a49,_0x2ccb49)=>{_0x2ccb49['addClass'](toArray$1(_0x499a49['classes']),_0x177d5b),_0x2ccb49['setAttribute']('data-suggestion-id',_0x570126,_0x177d5b),_0x2ccb49['setAttribute']('data-author-id',_0x41c7f5,_0x177d5b);});}})(0x0,_0x4cdae3,_0x1230e5);},{'priority':'highest'});}}class SuggestionsConversionHorizontalLine extends Plugin{['afterInit'](){const _0x3f9d3c=this['editor'];_0x3f9d3c['plugins']['has']('HorizontalLineEditing')&&_0x3f9d3c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3d608a,{writer:_0x20a213,options:_0x21e0f8})=>{if(!_0x21e0f8['showSuggestionHighlights'])return null;const _0x44cb09=_0x20a213['createContainerElement']('div'),_0x24a9fd=_0x20a213['createEmptyElement']('hr');return _0x20a213['addClass']('ck-horizontal-line',_0x44cb09),_0x20a213['insert'](_0x20a213['createPositionAt'](_0x44cb09,0x0),_0x24a9fd),_0x44cb09;},'converterPriority':'high'});}}class SuggestionsConversionTableCellProperties extends Plugin{['afterInit'](){const {plugins:_0xd21894,model:_0x5852f7}=this['editor'];if(!_0xd21894['has']('TableCellPropertiesEditing'))return;const _0x1315dd=_0xd21894['get']('SuggestionsConversion'),_0x390bf2=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x24c2f9 of _0x390bf2)_0x1315dd['registerBlockAttribute'](_0x24c2f9);_0x5852f7['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1315dd['registerBlockAttribute']('tableCellType');}}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,SuggestionsConversionTableLayout,SuggestionsConversionTableCellProperties,SuggestionsConversionTableProperties,SuggestionsConversionUploadcare];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3622=this['editor'],_0xf6ab58=(_0x23c716,_0x958922,_0x479ced)=>{const {id:_0x1733d1,authorId:_0x2a1189,type:_0x2e7e6f,subType:_0x2f75a1}=splitSuggestionMarkerName(_0x23c716['markerName']),_0x3318f3=['ck-suggestion-marker',this['_getClassName'](_0x2e7e6f,_0x2f75a1)];let _0x57e9fb=0xbb8;return!_0x479ced&&(this['_activeMarkers']['includes'](_0x23c716['markerName'])&&(_0x3318f3['push']('ck-suggestion-marker--active'),_0x57e9fb=0xbc2)),('deletion'==_0x2e7e6f&&(_0x57e9fb+=0x5),{'classes':_0x3318f3,'attributes':{'data-suggestion':_0x1733d1,'data-author-id':_0x2a1189},'priority':_0x57e9fb});};_0x3622['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1d7565,_0x30b846)=>_0xf6ab58(_0x1d7565,0x0,!0x1)}),_0x3622['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x35336f,_0x2ca8f7)=>_0xf6ab58(_0x35336f,0x0,!0x0)}),_0x3622['conversion']['for']('dataDowncast')['add'](_0x3137ed=>{_0x3137ed['on']('addMarker:suggestion',(_0x201b4f,_0x3f65a8,_0x4723fe)=>{if(!_0x4723fe['options']['showSuggestionHighlights'])return;const _0x2a7e1d=_0x3f65a8['item'];if(!_0x2a7e1d)return;const _0x5b5ea5=_0x4723fe['mapper']['toViewElement'](_0x2a7e1d);_0x3622['model']['schema']['isObject'](_0x2a7e1d)&&_0x5b5ea5&&!_0x5b5ea5['getCustomProperty']('widget')&&_0x5b5ea5['is']('containerElement')&&toWidget(_0x5b5ea5,_0x4723fe['writer']);},{'priority':'high'});});const _0x9ea079=(_0x219d18,_0x2da96e,_0x4b7d43,_0x341184,_0x24d0d9)=>{if(_0x341184&&!_0x4b7d43['options']['showSuggestionHighlights'])return;if(!_0x2da96e['item'])return;const {id:_0x370ce0,authorId:_0x4f9e6a,subType:_0xfb0954}=splitSuggestionMarkerName(_0x2da96e['markerName']);if(_0x24d0d9){const _0x583019=_0xfb0954['split']('|')[0x0];if(!this['isBlockAttribute'](_0x583019))return;}if(_0x2da96e['item']['is']('selection'))return void _0x4b7d43['consumable']['consume'](_0x2da96e['item'],_0x219d18['name']);const _0x2f04b5=_0x4b7d43['mapper']['toViewElement'](_0x2da96e['item']);if(_0x2da96e['item']['is']('element')&&_0x3622['model']['schema']['isBlock'](_0x2da96e['item'])&&!_0x2f04b5['getCustomProperty']('addHighlight')){_0x4b7d43['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2f04b5),_0x4b7d43['writer']['setAttribute']('data-suggestion',_0x370ce0,_0x2f04b5),_0x4b7d43['writer']['setAttribute']('data-author-id',_0x4f9e6a,_0x2f04b5),_0x4b7d43['mapper']['bindElementToMarker'](_0x2f04b5,_0x2da96e['markerName']),_0x341184||(this['_activeMarkers']['includes'](_0x2da96e['markerName'])?_0x4b7d43['writer']['addClass']('ck-suggestion-marker--active',_0x2f04b5):_0x4b7d43['writer']['removeClass']('ck-suggestion-marker--active',_0x2f04b5));for(const _0x11d1cd of _0x3622['model']['createRangeIn'](_0x2da96e['item'])['getItems']())_0x4b7d43['consumable']['consume'](_0x11d1cd,_0x219d18['name']);_0x4b7d43['consumable']['consume'](_0x2da96e['item'],_0x219d18['name']);}},_0x5148cb=(_0x41703a,_0x4016b9,_0x4fbeef,_0x114ae0)=>{const _0x163b2b=_0x4fbeef['mapper']['markerNameToElements'](_0x4016b9['markerName']);if(_0x163b2b){if(_0x114ae0){const {subType:_0x4a8f71}=splitSuggestionMarkerName(_0x4016b9['markerName']),_0xad80f8=_0x4a8f71['split']('|')[0x0];if(!this['isBlockAttribute'](_0xad80f8))return;}for(const _0x3be97f of _0x163b2b)_0x3be97f['getCustomProperty']('addHighlight')||(_0x4fbeef['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3be97f),_0x4fbeef['writer']['removeAttribute']('data-suggestion',_0x3be97f),_0x4fbeef['writer']['removeAttribute']('data-author-id',_0x3be97f),_0x4fbeef['mapper']['unbindElementFromMarkerName'](_0x3be97f,_0x4016b9['markerName']));}};_0x3622['conversion']['for']('editingDowncast')['add'](_0x63dae1=>{_0x63dae1['on']('addMarker:suggestion:formatBlock',(_0x57221a,_0x6d00a3,_0x17e60d)=>{_0x9ea079(_0x57221a,_0x6d00a3,_0x17e60d,!0x1,!0x1);},{'priority':'high'});}),_0x3622['conversion']['for']('editingDowncast')['add'](_0x2d32cd=>{_0x2d32cd['on']('addMarker:suggestion:attribute',(_0x337e7d,_0x222f21,_0xdb864c)=>{_0x9ea079(_0x337e7d,_0x222f21,_0xdb864c,!0x1,!0x0);},{'priority':'high'});}),_0x3622['conversion']['for']('editingDowncast')['add'](_0x101649=>{_0x101649['on']('removeMarker:suggestion:formatBlock',(_0x8bb4df,_0x511bee,_0x43fd2c)=>{_0x5148cb(0x0,_0x511bee,_0x43fd2c,!0x1);},{'priority':'high'});}),_0x3622['conversion']['for']('editingDowncast')['add'](_0x175b68=>{_0x175b68['on']('removeMarker:suggestion:attribute',(_0x3b7ac2,_0x333010,_0x5c46db)=>{_0x5148cb(0x0,_0x333010,_0x5c46db,!0x0);},{'priority':'high'});}),_0x3622['conversion']['for']('dataDowncast')['add'](_0x1d78f3=>{_0x1d78f3['on']('addMarker:suggestion:formatBlock',(_0x9026e7,_0x25a2be,_0x21bf70)=>{_0x9ea079(_0x9026e7,_0x25a2be,_0x21bf70,!0x0,!0x1);},{'priority':'highest'});}),_0x3622['conversion']['for']('dataDowncast')['add'](_0x3e7df7=>{_0x3e7df7['on']('addMarker:suggestion:attribute',(_0x46cc1e,_0x535069,_0x17a36)=>{_0x9ea079(_0x46cc1e,_0x535069,_0x17a36,!0x0,!0x0);},{'priority':'highest'});}),_0x3622['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5a8db4,_0x220626)=>{if(_0x220626['options']['showSuggestionHighlights']){const {id:_0x563907,authorId:_0x5d27ff}=splitSuggestionMarkerName(_0x5a8db4);return _0x5a8db4['includes'](':split')||_0x5a8db4['includes'](':merge')?{'group':'suggestion','name':_0x5a8db4['substr'](0xb),'attributes':{'data-suggestion':_0x563907,'data-author-id':_0x5d27ff}}:null;}return{'group':'suggestion','name':_0x5a8db4['substr'](0xb)};}});const _0x4a73df=(_0x2d99bf,_0x4d6cb5,_0x562e4c,_0x43f467,_0x2cbc54)=>{if(_0x43f467&&!_0x562e4c['options']['showSuggestionHighlights'])return;if(!_0x562e4c['consumable']['test'](_0x4d6cb5['markerRange'],_0x2d99bf['name']))return;const _0x2ed3bc=this['_activeMarkers'],_0x439361=_0x4d6cb5['markerRange']['getWalker'](),_0x8a92c6=_0x4d6cb5['markerRange']['start'],_0x55f355=_0x3622['model']['schema'];let _0x14d854=null,_0xd49321=null,_0x146b2d=!0x1,_0x5591cf=!0x1;for(const _0xdb1713 of _0x439361){const _0xf6040d=_0xdb1713['item'];_0x146b2d=_0x146b2d||_0x55f355['isContent'](_0xf6040d);const _0x5cc7f7=_0x562e4c['mapper']['toViewElement'](_0xf6040d);if(_0x5cc7f7&&_0x5cc7f7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdb1713['type']&&(_0x55f355['isBlock'](_0xf6040d)&&!_0x55f355['isLimit'](_0xf6040d)&&(_0xf6040d['nextSibling']||_0x8a92c6['isAtEnd']?_0x14d854&&_0x14d854['parent']==_0xf6040d||(_0x14d854=_0xf6040d,_0x1b0ab5(_0xdb1713['previousPosition']),_0x5591cf=!0x0):_0xd49321=_0xd49321||_0xdb1713['previousPosition']));}function _0x1b0ab5(_0xa62390){const {id:_0x1026a0,authorId:_0x369a4a}=splitSuggestionMarkerName(_0x4d6cb5['markerName']),_0x151175=_0x562e4c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cbc54,'data-suggestion':_0x1026a0,'data-author-id':_0x369a4a}),_0x180650=_0x562e4c['mapper']['toViewPosition'](_0xa62390);!_0x43f467&&_0x2ed3bc['includes'](_0x4d6cb5['markerName'])&&_0x562e4c['writer']['addClass']('ck-suggestion-marker--active',_0x151175),_0x562e4c['writer']['insert'](_0x180650,_0x151175),_0x562e4c['mapper']['bindElementToMarker'](_0x151175,_0x4d6cb5['markerName']);}_0x146b2d||_0x5591cf||!_0xd49321||_0x1b0ab5(_0xd49321);};_0x3622['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1bb7e9,_0x317929,_0x336869)=>{_0x4a73df(_0x1bb7e9,_0x317929,_0x336869,!0x1,'merge');},{'priority':'high'}),_0x3622['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3e5af2,_0x47cae0,_0x348f8e)=>{_0x4a73df(_0x3e5af2,_0x47cae0,_0x348f8e,!0x0,'merge');},{'priority':'high'}),_0x3622['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3a365b,_0x2779e1,_0x1678c6)=>{_0x4a73df(_0x3a365b,_0x2779e1,_0x1678c6,!0x1,'split');},{'priority':'high'}),_0x3622['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x387d7d,_0x1b650f,_0x14a22d)=>{_0x4a73df(_0x387d7d,_0x1b650f,_0x14a22d,!0x0,'split');},{'priority':'high'}),_0x3622['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x283c62,_0x25604f,_0x1ecf8b)=>{((_0xe54aa,_0xc59ae7,_0x253c86)=>{const _0x574019=_0x253c86['mapper']['markerNameToElements'](_0xc59ae7['markerName']);if(_0x574019){for(const _0x4c93e8 of _0x574019)(_0x4c93e8['hasClass']('ck-suggestion-marker-split')||_0x4c93e8['hasClass']('ck-suggestion-marker-merge'))&&(_0x253c86['mapper']['unbindElementFromMarkerName'](_0x4c93e8,_0xc59ae7['markerName']),_0x253c86['writer']['remove'](_0x4c93e8));}})(0x0,_0x25604f,_0x1ecf8b);},{'priority':'high'});const _0x173373=(_0x43b22a,_0x1715f8,_0x5be0b7,_0x34565d)=>{if(_0x34565d&&!_0x5be0b7['options']['showSuggestionHighlights'])return;const _0x4de4ec=_0x1715f8['markerRange']['start'],_0x2513d5=_0x1715f8['markerRange']['end'],_0x5e0141=_0x3622['model']['schema'];if(!_0x4de4ec['isTouching'](_0x2513d5)||!_0x4de4ec['nodeAfter'])return;const _0xf808b4=_0x4de4ec['nodeAfter'];if(_0x5e0141['isBlock'](_0xf808b4)&&!_0x5e0141['isLimit'](_0xf808b4)&&_0x5e0141['checkChild'](_0xf808b4,'$text')){if(!_0x5be0b7['consumable']['consume'](_0x1715f8['markerRange'],_0x43b22a['name']))return;const {id:_0x1f4fa9,authorId:_0x2cd1fb}=splitSuggestionMarkerName(_0x1715f8['markerName']),_0x1b3e84=_0x5be0b7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1f4fa9,'data-author-id':_0x2cd1fb}),_0x261324=_0x5be0b7['mapper']['toViewPosition'](_0x2513d5);!_0x34565d&&this['_activeMarkers']['includes'](_0x1715f8['markerName'])&&_0x5be0b7['writer']['addClass']('ck-suggestion-marker--active',_0x1b3e84),_0x5be0b7['writer']['insert'](_0x261324,_0x1b3e84),_0x5be0b7['mapper']['bindElementToMarker'](_0x1b3e84,_0x1715f8['markerName']);}};_0x3622['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43d6fc,_0x4f1ede,_0x55af6a)=>{_0x173373(_0x43d6fc,_0x4f1ede,_0x55af6a,!0x1);},{'priority':'high'}),_0x3622['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x30a795,_0x26f63d,_0x577892)=>{_0x173373(_0x30a795,_0x26f63d,_0x577892,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x2cffa4,_0x410f04,_0x57553b)=>{this['_activeMarkers']=_0x57553b['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x1c8b70){this['_blockAttributeKeys']['add'](_0x1c8b70);}['registerInlineAttribute'](_0x1f8e6c){this['_inlineAttributeKeys']['add'](_0x1f8e6c);}['isBlockAttribute'](_0x189144){return this['_blockAttributeKeys']['has'](_0x189144);}['isInlineAttribute'](_0x4d42f9){return this['_inlineAttributeKeys']['has'](_0x4d42f9);}['isRegisteredAttribute'](_0x34e96e){return this['isInlineAttribute'](_0x34e96e)||this['isBlockAttribute'](_0x34e96e);}['_getClassName'](_0x300d1a,_0x4ca9e5){if('attribute'!=_0x300d1a)return'ck-suggestion-marker-'+_0x300d1a;const _0x5a8195=_0x4ca9e5['split']('|')[0x0];return this['isBlockAttribute'](_0x5a8195)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(_0x61675f){super('Invalid\x20DateTime:\x20'+_0x61675f['toMessage']());}}class InvalidIntervalError extends LuxonError{constructor(_0x285759){super('Invalid\x20Interval:\x20'+_0x285759['toMessage']());}}class InvalidDurationError extends LuxonError{constructor(_0x5c5743){super('Invalid\x20Duration:\x20'+_0x5c5743['toMessage']());}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(_0x1d7c84){super('Invalid\x20unit\x20'+_0x1d7c84);}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super('Zone\x20is\x20an\x20abstract\x20class');}}const n='numeric',s$1='short',l$1='long',DATE_SHORT={'year':n,'month':n,'day':n},DATE_MED={'year':n,'month':s$1,'day':n},DATE_MED_WITH_WEEKDAY={'year':n,'month':s$1,'day':n,'weekday':s$1},DATE_FULL={'year':n,'month':l$1,'day':n},DATE_HUGE={'year':n,'month':l$1,'day':n,'weekday':l$1},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$1},TIME_WITH_LONG_OFFSET={'hour':n,'minute':n,'second':n,'timeZoneName':l$1},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$1},TIME_24_WITH_LONG_OFFSET={'hour':n,'minute':n,'second':n,'hourCycle':'h23','timeZoneName':l$1},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$1,'day':n,'hour':n,'minute':n},DATETIME_MED_WITH_SECONDS={'year':n,'month':s$1,'day':n,'hour':n,'minute':n,'second':n},DATETIME_MED_WITH_WEEKDAY={'year':n,'month':s$1,'day':n,'weekday':s$1,'hour':n,'minute':n},DATETIME_FULL={'year':n,'month':l$1,'day':n,'hour':n,'minute':n,'timeZoneName':s$1},DATETIME_FULL_WITH_SECONDS={'year':n,'month':l$1,'day':n,'hour':n,'minute':n,'second':n,'timeZoneName':s$1},DATETIME_HUGE={'year':n,'month':l$1,'day':n,'weekday':l$1,'hour':n,'minute':n,'timeZoneName':l$1},DATETIME_HUGE_WITH_SECONDS={'year':n,'month':l$1,'day':n,'weekday':l$1,'hour':n,'minute':n,'second':n,'timeZoneName':l$1};class Zone{get['type'](){throw new ZoneIsAbstractError();}get['name'](){throw new ZoneIsAbstractError();}get['ianaName'](){return this['name'];}get['isUniversal'](){throw new ZoneIsAbstractError();}['offsetName'](_0x5adf7e,_0xeb54fb){throw new ZoneIsAbstractError();}['formatOffset'](_0x1f656c,_0x28b2e3){throw new ZoneIsAbstractError();}['offset'](_0x222746){throw new ZoneIsAbstractError();}['equals'](_0xcac872){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'](_0x450dc0,{format:_0x399ea9,locale:_0x4f80c2}){return parseZoneInfo(_0x450dc0,_0x399ea9,_0x4f80c2);}['formatOffset'](_0x368a58,_0x16491f){return formatOffset(this['offset'](_0x368a58),_0x16491f);}['offset'](_0x163f63){return-new Date(_0x163f63)['getTimezoneOffset']();}['equals'](_0x25b3b7){return'system'===_0x25b3b7['type'];}get['isValid'](){return!0x0;}}const dtfCache=new Map();function makeDTF(_0x3dc341){let _0x1a89e6=dtfCache['get'](_0x3dc341);return void 0x0===_0x1a89e6&&(_0x1a89e6=new Intl['DateTimeFormat']('en-US',{'hour12':!0x1,'timeZone':_0x3dc341,'year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit','second':'2-digit','era':'short'}),dtfCache['set'](_0x3dc341,_0x1a89e6)),_0x1a89e6;}const typeToPos={'year':0x0,'month':0x1,'day':0x2,'era':0x3,'hour':0x4,'minute':0x5,'second':0x6};function hackyOffset(_0x574131,_0x1dbbbc){const _0xb9c1aa=_0x574131['format'](_0x1dbbbc)['replace'](/\u200E/g,''),_0x25fdee=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/['exec'](_0xb9c1aa),[,_0x5a9b65,_0x56db1f,_0x38f5b8,_0x3b70c1,_0x347e29,_0x45721a,_0x50594e]=_0x25fdee;return[_0x38f5b8,_0x5a9b65,_0x56db1f,_0x3b70c1,_0x347e29,_0x45721a,_0x50594e];}function partsOffset(_0x4d2772,_0x2e7464){const _0x5d3508=_0x4d2772['formatToParts'](_0x2e7464),_0x73fa2d=[];for(let _0x461767=0x0;_0x461767<_0x5d3508['length'];_0x461767++){const {type:_0xbeaa93,value:_0x5a9ea5}=_0x5d3508[_0x461767],_0x3a0398=typeToPos[_0xbeaa93];'era'===_0xbeaa93?_0x73fa2d[_0x3a0398]=_0x5a9ea5:isUndefined(_0x3a0398)||(_0x73fa2d[_0x3a0398]=parseInt(_0x5a9ea5,0xa));}return _0x73fa2d;}const ianaZoneCache=new Map();class IANAZone extends Zone{static['create'](_0x22f285){let _0x5eaee8=ianaZoneCache['get'](_0x22f285);return void 0x0===_0x5eaee8&&ianaZoneCache['set'](_0x22f285,_0x5eaee8=new IANAZone(_0x22f285)),_0x5eaee8;}static['resetCache'](){ianaZoneCache['clear'](),dtfCache['clear']();}static['isValidSpecifier'](_0x1f58f6){return this['isValidZone'](_0x1f58f6);}static['isValidZone'](_0x338ac8){if(!_0x338ac8)return!0x1;try{return new Intl['DateTimeFormat']('en-US',{'timeZone':_0x338ac8})['format'](),!0x0;}catch(_0x54cb31){return!0x1;}}constructor(_0x345205){super(),this['zoneName']=_0x345205,this['valid']=IANAZone['isValidZone'](_0x345205);}get['type'](){return'iana';}get['name'](){return this['zoneName'];}get['isUniversal'](){return!0x1;}['offsetName'](_0x31cd89,{format:_0x524039,locale:_0x3d1fd2}){return parseZoneInfo(_0x31cd89,_0x524039,_0x3d1fd2,this['name']);}['formatOffset'](_0x2bb4e9,_0x518b92){return formatOffset(this['offset'](_0x2bb4e9),_0x518b92);}['offset'](_0xc4d0c4){if(!this['valid'])return NaN;const _0xfe7adf=new Date(_0xc4d0c4);if(isNaN(_0xfe7adf))return NaN;const _0x15e9fe=makeDTF(this['name']);let [_0x589be0,_0x212800,_0x2e1d69,_0x4f16a8,_0x216e69,_0x1995a4,_0x3b3e04]=_0x15e9fe['formatToParts']?partsOffset(_0x15e9fe,_0xfe7adf):hackyOffset(_0x15e9fe,_0xfe7adf);'BC'===_0x4f16a8&&(_0x589be0=0x1-Math['abs'](_0x589be0));let _0x5d20c1=+_0xfe7adf;const _0x25f937=_0x5d20c1%0x3e8;return _0x5d20c1-=_0x25f937>=0x0?_0x25f937:0x3e8+_0x25f937,(objToLocalTS({'year':_0x589be0,'month':_0x212800,'day':_0x2e1d69,'hour':0x18===_0x216e69?0x0:_0x216e69,'minute':_0x1995a4,'second':_0x3b3e04,'millisecond':0x0})-_0x5d20c1)/0xea60;}['equals'](_0x41ce53){return'iana'===_0x41ce53['type']&&_0x41ce53['name']===this['name'];}get['isValid'](){return this['valid'];}}let intlLFCache={};function getCachedLF(_0x4d6f7f,_0x498864={}){const _0x5beeb0=JSON['stringify']([_0x4d6f7f,_0x498864]);let _0x20012b=intlLFCache[_0x5beeb0];return _0x20012b||(_0x20012b=new Intl['ListFormat'](_0x4d6f7f,_0x498864),intlLFCache[_0x5beeb0]=_0x20012b),_0x20012b;}const intlDTCache=new Map();function getCachedDTF(_0x37e349,_0x131c6d={}){const _0x34a585=JSON['stringify']([_0x37e349,_0x131c6d]);let _0x298da4=intlDTCache['get'](_0x34a585);return void 0x0===_0x298da4&&(_0x298da4=new Intl['DateTimeFormat'](_0x37e349,_0x131c6d),intlDTCache['set'](_0x34a585,_0x298da4)),_0x298da4;}const intlNumCache=new Map();function getCachedINF(_0x3ae7f1,_0x2e1d90={}){const _0x14aeba=JSON['stringify']([_0x3ae7f1,_0x2e1d90]);let _0x6ef453=intlNumCache['get'](_0x14aeba);return void 0x0===_0x6ef453&&(_0x6ef453=new Intl['NumberFormat'](_0x3ae7f1,_0x2e1d90),intlNumCache['set'](_0x14aeba,_0x6ef453)),_0x6ef453;}const intlRelCache=new Map();function getCachedRTF(_0x4be578,_0x285523={}){const {base:_0x2aa92b,..._0x20b8a2}=_0x285523,_0x41fd8b=JSON['stringify']([_0x4be578,_0x20b8a2]);let _0x3c6983=intlRelCache['get'](_0x41fd8b);return void 0x0===_0x3c6983&&(_0x3c6983=new Intl['RelativeTimeFormat'](_0x4be578,_0x285523),intlRelCache['set'](_0x41fd8b,_0x3c6983)),_0x3c6983;}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl['DateTimeFormat']()['resolvedOptions']()['locale'],sysLocaleCache);}const intlResolvedOptionsCache=new Map();function getCachedIntResolvedOptions(_0x462ff1){let _0x30be2e=intlResolvedOptionsCache['get'](_0x462ff1);return void 0x0===_0x30be2e&&(_0x30be2e=new Intl['DateTimeFormat'](_0x462ff1)['resolvedOptions'](),intlResolvedOptionsCache['set'](_0x462ff1,_0x30be2e)),_0x30be2e;}const weekInfoCache=new Map();function getCachedWeekInfo(_0x3aa973){let _0x378636=weekInfoCache['get'](_0x3aa973);if(!_0x378636){const _0x26d9f1=new Intl['Locale'](_0x3aa973);_0x378636='getWeekInfo'in _0x26d9f1?_0x26d9f1['getWeekInfo']():_0x26d9f1['weekInfo'],'minimalDays'in _0x378636||(_0x378636={...fallbackWeekSettings,..._0x378636}),weekInfoCache['set'](_0x3aa973,_0x378636);}return _0x378636;}function parseLocaleString(_0x2719ee){const _0x8ab4b4=_0x2719ee['indexOf']('-x-');-0x1!==_0x8ab4b4&&(_0x2719ee=_0x2719ee['substring'](0x0,_0x8ab4b4));const _0x56b127=_0x2719ee['indexOf']('-u-');if(-0x1===_0x56b127)return[_0x2719ee];{let _0x16099f,_0x20e3ec;try{_0x16099f=getCachedDTF(_0x2719ee)['resolvedOptions'](),_0x20e3ec=_0x2719ee;}catch(_0x460943){const _0x3e4015=_0x2719ee['substring'](0x0,_0x56b127);_0x16099f=getCachedDTF(_0x3e4015)['resolvedOptions'](),_0x20e3ec=_0x3e4015;}const {numberingSystem:_0x38cfd0,calendar:_0x52adfa}=_0x16099f;return[_0x20e3ec,_0x38cfd0,_0x52adfa];}}function intlConfigString(_0x70a71b,_0x135dce,_0x449a05){return _0x449a05||_0x135dce?(_0x70a71b['includes']('-u-')||(_0x70a71b+='-u'),_0x449a05&&(_0x70a71b+='-ca-'+_0x449a05),_0x135dce&&(_0x70a71b+='-nu-'+_0x135dce),_0x70a71b):_0x70a71b;}function mapMonths(_0x153f24){const _0x407390=[];for(let _0x42e295=0x1;_0x42e295<=0xc;_0x42e295++){const _0x14deba=DateTime['utc'](0x7d9,_0x42e295,0x1);_0x407390['push'](_0x153f24(_0x14deba));}return _0x407390;}function mapWeekdays(_0x99a125){const _0x4078fd=[];for(let _0xc11b2=0x1;_0xc11b2<=0x7;_0xc11b2++){const _0xf7a17c=DateTime['utc'](0x7e0,0xb,0xd+_0xc11b2);_0x4078fd['push'](_0x99a125(_0xf7a17c));}return _0x4078fd;}function listStuff(_0x7a42d8,_0x458062,_0x13bd74,_0x196385){const _0x4538e8=_0x7a42d8['listingMode']();return'error'===_0x4538e8?null:'en'===_0x4538e8?_0x13bd74(_0x458062):_0x196385(_0x458062);}function supportsFastNumbers(_0x506782){return(!_0x506782['numberingSystem']||'latn'===_0x506782['numberingSystem'])&&('latn'===_0x506782['numberingSystem']||!_0x506782['locale']||_0x506782['locale']['startsWith']('en')||'latn'===getCachedIntResolvedOptions(_0x506782['locale'])['numberingSystem']);}class PolyNumberFormatter{constructor(_0x1ff5b4,_0x2fa1f9,_0x3e9e92){this['padTo']=_0x3e9e92['padTo']||0x0,this['floor']=_0x3e9e92['floor']||!0x1;const {padTo:_0x5f0943,floor:_0x48bd45,..._0x4e8378}=_0x3e9e92;if(!_0x2fa1f9||Object['keys'](_0x4e8378)['length']>0x0){const _0x8da2b1={'useGrouping':!0x1,..._0x3e9e92};_0x3e9e92['padTo']>0x0&&(_0x8da2b1['minimumIntegerDigits']=_0x3e9e92['padTo']),this['inf']=getCachedINF(_0x1ff5b4,_0x8da2b1);}}['format'](_0x4bf788){if(this['inf']){const _0x3509fe=this['floor']?Math['floor'](_0x4bf788):_0x4bf788;return this['inf']['format'](_0x3509fe);}return padStart(this['floor']?Math['floor'](_0x4bf788):roundTo(_0x4bf788,0x3),this['padTo']);}}class PolyDateFormatter{constructor(_0x182dbb,_0x133505,_0x59f6b7){let _0x4ca314;if(this['opts']=_0x59f6b7,this['originalZone']=void 0x0,this['opts']['timeZone'])this['dt']=_0x182dbb;else{if('fixed'===_0x182dbb['zone']['type']){const _0x3cc457=_0x182dbb['offset']/0x3c*-0x1,_0x42ee48=_0x3cc457>=0x0?'Etc/GMT+'+_0x3cc457:'Etc/GMT'+_0x3cc457;0x0!==_0x182dbb['offset']&&IANAZone['create'](_0x42ee48)['valid']?(_0x4ca314=_0x42ee48,this['dt']=_0x182dbb):(_0x4ca314='UTC',this['dt']=0x0===_0x182dbb['offset']?_0x182dbb:_0x182dbb['setZone']('UTC')['plus']({'minutes':_0x182dbb['offset']}),this['originalZone']=_0x182dbb['zone']);}else'system'===_0x182dbb['zone']['type']?this['dt']=_0x182dbb:'iana'===_0x182dbb['zone']['type']?(this['dt']=_0x182dbb,_0x4ca314=_0x182dbb['zone']['name']):(_0x4ca314='UTC',this['dt']=_0x182dbb['setZone']('UTC')['plus']({'minutes':_0x182dbb['offset']}),this['originalZone']=_0x182dbb['zone']);}const _0x25e3bb={...this['opts']};_0x25e3bb['timeZone']=_0x25e3bb['timeZone']||_0x4ca314,this['dtf']=getCachedDTF(_0x133505,_0x25e3bb);}['format'](){return this['originalZone']?this['formatToParts']()['map'](({value:_0x4cda70})=>_0x4cda70)['join'](''):this['dtf']['format'](this['dt']['toJSDate']());}['formatToParts'](){const _0x4da51d=this['dtf']['formatToParts'](this['dt']['toJSDate']());return this['originalZone']?_0x4da51d['map'](_0x24e6f2=>{if('timeZoneName'===_0x24e6f2['type']){const _0x5edf82=this['originalZone']['offsetName'](this['dt']['ts'],{'locale':this['dt']['locale'],'format':this['opts']['timeZoneName']});return{..._0x24e6f2,'value':_0x5edf82};}return _0x24e6f2;}):_0x4da51d;}['resolvedOptions'](){return this['dtf']['resolvedOptions']();}}class PolyRelFormatter{constructor(_0x27a256,_0x58ad77,_0x3049b2){this['opts']={'style':'long',..._0x3049b2},!_0x58ad77&&hasRelative()&&(this['rtf']=getCachedRTF(_0x27a256,_0x3049b2));}['format'](_0x34468,_0x389098){return this['rtf']?this['rtf']['format'](_0x34468,_0x389098):formatRelativeTime(_0x389098,_0x34468,this['opts']['numeric'],'long'!==this['opts']['style']);}['formatToParts'](_0x160b61,_0x13f48f){return this['rtf']?this['rtf']['formatToParts'](_0x160b61,_0x13f48f):[];}}const fallbackWeekSettings={'firstDay':0x1,'minimalDays':0x4,'weekend':[0x6,0x7]};class Locale{static['fromOpts'](_0x3a5671){return Locale['create'](_0x3a5671['locale'],_0x3a5671['numberingSystem'],_0x3a5671['outputCalendar'],_0x3a5671['weekSettings'],_0x3a5671['defaultToEN']);}static['create'](_0x5a8c8b,_0xdb4175,_0x429d50,_0x212405,_0x3d31c8=!0x1){const _0x3aaa2c=_0x5a8c8b||Settings['defaultLocale'],_0xa9c2dd=_0x3aaa2c||(_0x3d31c8?'en-US':systemLocale()),_0x3518ce=_0xdb4175||Settings['defaultNumberingSystem'],_0x5a8baf=_0x429d50||Settings['defaultOutputCalendar'],_0x3e3948=validateWeekSettings(_0x212405)||Settings['defaultWeekSettings'];return new Locale(_0xa9c2dd,_0x3518ce,_0x5a8baf,_0x3e3948,_0x3aaa2c);}static['resetCache'](){sysLocaleCache=null,intlDTCache['clear'](),intlNumCache['clear'](),intlRelCache['clear'](),intlResolvedOptionsCache['clear'](),weekInfoCache['clear']();}static['fromObject']({locale:_0x44027f,numberingSystem:_0x537fab,outputCalendar:_0x117512,weekSettings:_0x5148b5}={}){return Locale['create'](_0x44027f,_0x537fab,_0x117512,_0x5148b5);}constructor(_0x413614,_0x2cc18d,_0x10159b,_0x522264,_0x284b8a){const [_0x49c5e5,_0x5d4a2a,_0x5ef6c4]=parseLocaleString(_0x413614);this['locale']=_0x49c5e5,this['numberingSystem']=_0x2cc18d||_0x5d4a2a||null,this['outputCalendar']=_0x10159b||_0x5ef6c4||null,this['weekSettings']=_0x522264,this['intl']=intlConfigString(this['locale'],this['numberingSystem'],this['outputCalendar']),this['weekdaysCache']={'format':{},'standalone':{}},this['monthsCache']={'format':{},'standalone':{}},this['meridiemCache']=null,this['eraCache']={},this['specifiedLocale']=_0x284b8a,this['fastNumbersCached']=null;}get['fastNumbers'](){return null==this['fastNumbersCached']&&(this['fastNumbersCached']=supportsFastNumbers(this)),this['fastNumbersCached'];}['listingMode'](){const _0x50c2d4=this['isEnglish'](),_0x748752=!(null!==this['numberingSystem']&&'latn'!==this['numberingSystem']||null!==this['outputCalendar']&&'gregory'!==this['outputCalendar']);return _0x50c2d4&&_0x748752?'en':'intl';}['clone'](_0x545ebc){return _0x545ebc&&0x0!==Object['getOwnPropertyNames'](_0x545ebc)['length']?Locale['create'](_0x545ebc['locale']||this['specifiedLocale'],_0x545ebc['numberingSystem']||this['numberingSystem'],_0x545ebc['outputCalendar']||this['outputCalendar'],validateWeekSettings(_0x545ebc['weekSettings'])||this['weekSettings'],_0x545ebc['defaultToEN']||!0x1):this;}['redefaultToEN'](_0x53d882={}){return this['clone']({..._0x53d882,'defaultToEN':!0x0});}['redefaultToSystem'](_0x20f79d={}){return this['clone']({..._0x20f79d,'defaultToEN':!0x1});}['months'](_0x45a2ae,_0x373487=!0x1){return listStuff(this,_0x45a2ae,months,()=>{const _0x392940=_0x373487?{'month':_0x45a2ae,'day':'numeric'}:{'month':_0x45a2ae},_0x11a8fa=_0x373487?'format':'standalone';return this['monthsCache'][_0x11a8fa][_0x45a2ae]||(this['monthsCache'][_0x11a8fa][_0x45a2ae]=mapMonths(_0x57ddcd=>this['extract'](_0x57ddcd,_0x392940,'month'))),this['monthsCache'][_0x11a8fa][_0x45a2ae];});}['weekdays'](_0x5426a7,_0x31b869=!0x1){return listStuff(this,_0x5426a7,weekdays,()=>{const _0x1d6bb5=_0x31b869?{'weekday':_0x5426a7,'year':'numeric','month':'long','day':'numeric'}:{'weekday':_0x5426a7},_0x4245f2=_0x31b869?'format':'standalone';return this['weekdaysCache'][_0x4245f2][_0x5426a7]||(this['weekdaysCache'][_0x4245f2][_0x5426a7]=mapWeekdays(_0x18627b=>this['extract'](_0x18627b,_0x1d6bb5,'weekday'))),this['weekdaysCache'][_0x4245f2][_0x5426a7];});}['meridiems'](){return listStuff(this,void 0x0,()=>meridiems,()=>{if(!this['meridiemCache']){const _0x206d62={'hour':'numeric','hourCycle':'h12'};this['meridiemCache']=[DateTime['utc'](0x7e0,0xb,0xd,0x9),DateTime['utc'](0x7e0,0xb,0xd,0x13)]['map'](_0x267154=>this['extract'](_0x267154,_0x206d62,'dayperiod'));}return this['meridiemCache'];});}['eras'](_0x5911b3){return listStuff(this,_0x5911b3,eras,()=>{const _0x1454b6={'era':_0x5911b3};return this['eraCache'][_0x5911b3]||(this['eraCache'][_0x5911b3]=[DateTime['utc'](-0x28,0x1,0x1),DateTime['utc'](0x7e1,0x1,0x1)]['map'](_0x116abe=>this['extract'](_0x116abe,_0x1454b6,'era'))),this['eraCache'][_0x5911b3];});}['extract'](_0x2ff57c,_0x25f8c2,_0x4eba52){const _0x3a7e3c=this['dtFormatter'](_0x2ff57c,_0x25f8c2)['formatToParts']()['find'](_0x3939c7=>_0x3939c7['type']['toLowerCase']()===_0x4eba52);return _0x3a7e3c?_0x3a7e3c['value']:null;}['numberFormatter'](_0x3303ee={}){return new PolyNumberFormatter(this['intl'],_0x3303ee['forceSimple']||this['fastNumbers'],_0x3303ee);}['dtFormatter'](_0x23a4e9,_0x5de614={}){return new PolyDateFormatter(_0x23a4e9,this['intl'],_0x5de614);}['relFormatter'](_0x4d9260={}){return new PolyRelFormatter(this['intl'],this['isEnglish'](),_0x4d9260);}['listFormatter'](_0x3b0f3a={}){return getCachedLF(this['intl'],_0x3b0f3a);}['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'](_0x152d48){return this['locale']===_0x152d48['locale']&&this['numberingSystem']===_0x152d48['numberingSystem']&&this['outputCalendar']===_0x152d48['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'](_0x2824cf){return 0x0===_0x2824cf?FixedOffsetZone['utcInstance']:new FixedOffsetZone(_0x2824cf);}static['parseSpecifier'](_0xa76162){if(_0xa76162){const _0x331ce6=_0xa76162['match'](/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(_0x331ce6)return new FixedOffsetZone(signedOffset(_0x331ce6[0x1],_0x331ce6[0x2]));}return null;}constructor(_0x17a564){super(),this['fixed']=_0x17a564;}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'](_0x1fde10,_0x5185d0){return formatOffset(this['fixed'],_0x5185d0);}get['isUniversal'](){return!0x0;}['offset'](){return this['fixed'];}['equals'](_0x343174){return'fixed'===_0x343174['type']&&_0x343174['fixed']===this['fixed'];}get['isValid'](){return!0x0;}}class InvalidZone extends Zone{constructor(_0x29041c){super(),this['zoneName']=_0x29041c;}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(_0x10e7d6,_0x30ae1e){if(isUndefined(_0x10e7d6)||null===_0x10e7d6)return _0x30ae1e;if(_0x10e7d6 instanceof Zone)return _0x10e7d6;if(isString(_0x10e7d6)){const _0x1e2a7f=_0x10e7d6['toLowerCase']();return'default'===_0x1e2a7f?_0x30ae1e:'local'===_0x1e2a7f||'system'===_0x1e2a7f?SystemZone['instance']:'utc'===_0x1e2a7f||'gmt'===_0x1e2a7f?FixedOffsetZone['utcInstance']:FixedOffsetZone['parseSpecifier'](_0x1e2a7f)||IANAZone['create'](_0x10e7d6);}return isNumber(_0x10e7d6)?FixedOffsetZone['instance'](_0x10e7d6):'object'==typeof _0x10e7d6&&'offset'in _0x10e7d6&&'function'==typeof _0x10e7d6['offset']?_0x10e7d6:new InvalidZone(_0x10e7d6);}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(_0x30bd59){let _0x3da51b=parseInt(_0x30bd59,0xa);if(isNaN(_0x3da51b)){_0x3da51b='';for(let _0x4e8021=0x0;_0x4e8021<_0x30bd59['length'];_0x4e8021++){const _0x301cd3=_0x30bd59['charCodeAt'](_0x4e8021);if(-0x1!==_0x30bd59[_0x4e8021]['search'](numberingSystems['hanidec']))_0x3da51b+=hanidecChars['indexOf'](_0x30bd59[_0x4e8021]);else for(const _0x4de84a in numberingSystemsUTF16){const [_0x5da26c,_0x4b8dcd]=numberingSystemsUTF16[_0x4de84a];_0x301cd3>=_0x5da26c&&_0x301cd3<=_0x4b8dcd&&(_0x3da51b+=_0x301cd3-_0x5da26c);}}return parseInt(_0x3da51b,0xa);}return _0x3da51b;}const digitRegexCache=new Map();function resetDigitRegexCache(){digitRegexCache['clear']();}function digitRegex({numberingSystem:_0x3f789b},_0x3100fb=''){const _0x2f550e=_0x3f789b||'latn';let _0x500d5c=digitRegexCache['get'](_0x2f550e);void 0x0===_0x500d5c&&(_0x500d5c=new Map(),digitRegexCache['set'](_0x2f550e,_0x500d5c));let _0x793f93=_0x500d5c['get'](_0x3100fb);return void 0x0===_0x793f93&&(_0x793f93=new RegExp(''+numberingSystems[_0x2f550e]+_0x3100fb),_0x500d5c['set'](_0x3100fb,_0x793f93)),_0x793f93;}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'](_0x364613){now=_0x364613;}static set['defaultZone'](_0xa581fa){defaultZone=_0xa581fa;}static get['defaultZone'](){return normalizeZone(defaultZone,SystemZone['instance']);}static get['defaultLocale'](){return defaultLocale;}static set['defaultLocale'](_0x7062bc){defaultLocale=_0x7062bc;}static get['defaultNumberingSystem'](){return defaultNumberingSystem;}static set['defaultNumberingSystem'](_0x257c37){defaultNumberingSystem=_0x257c37;}static get['defaultOutputCalendar'](){return defaultOutputCalendar;}static set['defaultOutputCalendar'](_0x19830e){defaultOutputCalendar=_0x19830e;}static get['defaultWeekSettings'](){return defaultWeekSettings;}static set['defaultWeekSettings'](_0x1c6fea){defaultWeekSettings=validateWeekSettings(_0x1c6fea);}static get['twoDigitCutoffYear'](){return twoDigitCutoffYear;}static set['twoDigitCutoffYear'](_0xc018db){twoDigitCutoffYear=_0xc018db%0x64;}static get['throwOnInvalid'](){return throwOnInvalid;}static set['throwOnInvalid'](t){throwOnInvalid=t;}static['resetCaches'](){Locale['resetCache'](),IANAZone['resetCache'](),DateTime['resetCache'](),resetDigitRegexCache();}}class Invalid{constructor(_0x5f1e13,_0x4f7816){this['reason']=_0x5f1e13,this['explanation']=_0x4f7816;}['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(_0x1f61b8,_0x1b77a4){return new Invalid('unit\x20out\x20of\x20range','you\x20specified\x20'+_0x1b77a4+'\x20(of\x20type\x20'+typeof _0x1b77a4+')\x20as\x20a\x20'+_0x1f61b8+',\x20which\x20is\x20invalid');}function dayOfWeek(_0xfa4d63,_0x5893d8,_0x54d709){const _0x839c76=new Date(Date['UTC'](_0xfa4d63,_0x5893d8-0x1,_0x54d709));_0xfa4d63<0x64&&_0xfa4d63>=0x0&&_0x839c76['setUTCFullYear'](_0x839c76['getUTCFullYear']()-0x76c);const _0x4e5e48=_0x839c76['getUTCDay']();return 0x0===_0x4e5e48?0x7:_0x4e5e48;}function computeOrdinal(_0x1b0799,_0x3b5a95,_0x5fd7fe){return _0x5fd7fe+(isLeapYear(_0x1b0799)?leapLadder:nonLeapLadder)[_0x3b5a95-0x1];}function uncomputeOrdinal(_0x35a77e,_0x3696bb){const _0x3fc468=isLeapYear(_0x35a77e)?leapLadder:nonLeapLadder,_0x3d499c=_0x3fc468['findIndex'](_0x1e7cc5=>_0x1e7cc5<_0x3696bb);return{'month':_0x3d499c+0x1,'day':_0x3696bb-_0x3fc468[_0x3d499c]};}function isoWeekdayToLocal(_0x30fdaf,_0x7debd5){return(_0x30fdaf-_0x7debd5+0x7)%0x7+0x1;}function gregorianToWeek(_0x3174cc,_0x43cdf0=0x4,_0x3866c2=0x1){const {year:_0xfce98a,month:_0x203e49,day:_0x2f9a37}=_0x3174cc,_0x3b1c3b=computeOrdinal(_0xfce98a,_0x203e49,_0x2f9a37),_0x2a57a4=isoWeekdayToLocal(dayOfWeek(_0xfce98a,_0x203e49,_0x2f9a37),_0x3866c2);let _0x4330ca,_0x1c6be4=Math['floor']((_0x3b1c3b-_0x2a57a4+0xe-_0x43cdf0)/0x7);return _0x1c6be4<0x1?(_0x4330ca=_0xfce98a-0x1,_0x1c6be4=weeksInWeekYear(_0x4330ca,_0x43cdf0,_0x3866c2)):_0x1c6be4>weeksInWeekYear(_0xfce98a,_0x43cdf0,_0x3866c2)?(_0x4330ca=_0xfce98a+0x1,_0x1c6be4=0x1):_0x4330ca=_0xfce98a,{'weekYear':_0x4330ca,'weekNumber':_0x1c6be4,'weekday':_0x2a57a4,...timeObject(_0x3174cc)};}function weekToGregorian(_0x1ccaa8,_0x5e4f3c=0x4,_0x2a7ffa=0x1){const {weekYear:_0x21f297,weekNumber:_0x323e93,weekday:_0x508c3c}=_0x1ccaa8,_0x64ef38=isoWeekdayToLocal(dayOfWeek(_0x21f297,0x1,_0x5e4f3c),_0x2a7ffa),_0x1fafb0=daysInYear(_0x21f297);let _0x5ba040,_0x5bdcc5=0x7*_0x323e93+_0x508c3c-_0x64ef38-0x7+_0x5e4f3c;_0x5bdcc5<0x1?(_0x5ba040=_0x21f297-0x1,_0x5bdcc5+=daysInYear(_0x5ba040)):_0x5bdcc5>_0x1fafb0?(_0x5ba040=_0x21f297+0x1,_0x5bdcc5-=daysInYear(_0x21f297)):_0x5ba040=_0x21f297;const {month:_0x55334a,day:_0x7b6ce4}=uncomputeOrdinal(_0x5ba040,_0x5bdcc5);return{'year':_0x5ba040,'month':_0x55334a,'day':_0x7b6ce4,...timeObject(_0x1ccaa8)};}function gregorianToOrdinal(_0x4f1540){const {year:_0x2a35c7,month:_0x36ea4a,day:_0x2c0877}=_0x4f1540;return{'year':_0x2a35c7,'ordinal':computeOrdinal(_0x2a35c7,_0x36ea4a,_0x2c0877),...timeObject(_0x4f1540)};}function ordinalToGregorian(_0x564ad7){const {year:_0x4832ae,ordinal:_0x2b637d}=_0x564ad7,{month:_0x283950,day:_0x2fbda2}=uncomputeOrdinal(_0x4832ae,_0x2b637d);return{'year':_0x4832ae,'month':_0x283950,'day':_0x2fbda2,...timeObject(_0x564ad7)};}function usesLocalWeekValues(_0x3ecdc0,_0x975c63){if(!isUndefined(_0x3ecdc0['localWeekday'])||!isUndefined(_0x3ecdc0['localWeekNumber'])||!isUndefined(_0x3ecdc0['localWeekYear'])){if(!isUndefined(_0x3ecdc0['weekday'])||!isUndefined(_0x3ecdc0['weekNumber'])||!isUndefined(_0x3ecdc0['weekYear']))throw new ConflictingSpecificationError('Cannot\x20mix\x20locale-based\x20week\x20fields\x20with\x20ISO-based\x20week\x20fields');return isUndefined(_0x3ecdc0['localWeekday'])||(_0x3ecdc0['weekday']=_0x3ecdc0['localWeekday']),isUndefined(_0x3ecdc0['localWeekNumber'])||(_0x3ecdc0['weekNumber']=_0x3ecdc0['localWeekNumber']),isUndefined(_0x3ecdc0['localWeekYear'])||(_0x3ecdc0['weekYear']=_0x3ecdc0['localWeekYear']),delete _0x3ecdc0['localWeekday'],delete _0x3ecdc0['localWeekNumber'],delete _0x3ecdc0['localWeekYear'],{'minDaysInFirstWeek':_0x975c63['getMinDaysInFirstWeek'](),'startOfWeek':_0x975c63['getStartOfWeek']()};}return{'minDaysInFirstWeek':0x4,'startOfWeek':0x1};}function hasInvalidWeekData(_0x1dac5a,_0x4397ef=0x4,_0x5bf9ba=0x1){const _0x506a9d=isInteger(_0x1dac5a['weekYear']),_0x333376=integerBetween(_0x1dac5a['weekNumber'],0x1,weeksInWeekYear(_0x1dac5a['weekYear'],_0x4397ef,_0x5bf9ba)),_0x3049b5=integerBetween(_0x1dac5a['weekday'],0x1,0x7);return _0x506a9d?_0x333376?!_0x3049b5&&unitOutOfRange('weekday',_0x1dac5a['weekday']):unitOutOfRange('week',_0x1dac5a['weekNumber']):unitOutOfRange('weekYear',_0x1dac5a['weekYear']);}function hasInvalidOrdinalData(_0x17c9c7){const _0x3fd9ee=isInteger(_0x17c9c7['year']),_0x428765=integerBetween(_0x17c9c7['ordinal'],0x1,daysInYear(_0x17c9c7['year']));return _0x3fd9ee?!_0x428765&&unitOutOfRange('ordinal',_0x17c9c7['ordinal']):unitOutOfRange('year',_0x17c9c7['year']);}function hasInvalidGregorianData(_0x5cfe74){const _0x2cd5b6=isInteger(_0x5cfe74['year']),_0x4dd68d=integerBetween(_0x5cfe74['month'],0x1,0xc),_0x3b38cb=integerBetween(_0x5cfe74['day'],0x1,daysInMonth(_0x5cfe74['year'],_0x5cfe74['month']));return _0x2cd5b6?_0x4dd68d?!_0x3b38cb&&unitOutOfRange('day',_0x5cfe74['day']):unitOutOfRange('month',_0x5cfe74['month']):unitOutOfRange('year',_0x5cfe74['year']);}function hasInvalidTimeData(_0x1014b9){const {hour:_0x14c17e,minute:_0x26d4ec,second:_0x4c79f5,millisecond:_0xb0e8af}=_0x1014b9,_0x4da4dd=integerBetween(_0x14c17e,0x0,0x17)||0x18===_0x14c17e&&0x0===_0x26d4ec&&0x0===_0x4c79f5&&0x0===_0xb0e8af,_0x5e0d37=integerBetween(_0x26d4ec,0x0,0x3b),_0x2d3866=integerBetween(_0x4c79f5,0x0,0x3b),_0x30ec67=integerBetween(_0xb0e8af,0x0,0x3e7);return _0x4da4dd?_0x5e0d37?_0x2d3866?!_0x30ec67&&unitOutOfRange('millisecond',_0xb0e8af):unitOutOfRange('second',_0x4c79f5):unitOutOfRange('minute',_0x26d4ec):unitOutOfRange('hour',_0x14c17e);}function isUndefined(_0x1e5458){return void 0x0===_0x1e5458;}function isNumber(_0x354638){return'number'==typeof _0x354638;}function isInteger(_0x20cb0d){return'number'==typeof _0x20cb0d&&_0x20cb0d%0x1==0x0;}function isString(_0x515f82){return'string'==typeof _0x515f82;}function isDate(_0x191ab5){return'[object\x20Date]'===Object['prototype']['toString']['call'](_0x191ab5);}function hasRelative(){try{return'undefined'!=typeof Intl&&!!Intl['RelativeTimeFormat'];}catch(_0x13916a){return!0x1;}}function hasLocaleWeekInfo(){try{return'undefined'!=typeof Intl&&!!Intl['Locale']&&('weekInfo'in Intl['Locale']['prototype']||'getWeekInfo'in Intl['Locale']['prototype']);}catch(_0x464fce){return!0x1;}}function maybeArray(_0x72f51){return Array['isArray'](_0x72f51)?_0x72f51:[_0x72f51];}function bestBy(_0x457749,_0x19ff1f,_0x100c02){if(0x0!==_0x457749['length'])return _0x457749['reduce']((_0x5ce2ce,_0x731e40)=>{const _0x3ed7c1=[_0x19ff1f(_0x731e40),_0x731e40];return _0x5ce2ce&&_0x100c02(_0x5ce2ce[0x0],_0x3ed7c1[0x0])===_0x5ce2ce[0x0]?_0x5ce2ce:_0x3ed7c1;},null)[0x1];}function pick$2(_0xebd1ba,_0x333ace){return _0x333ace['reduce']((_0x347306,_0x3beb1b)=>(_0x347306[_0x3beb1b]=_0xebd1ba[_0x3beb1b],_0x347306),{});}function hasOwnProperty(_0xcce570,_0x55969f){return Object['prototype']['hasOwnProperty']['call'](_0xcce570,_0x55969f);}function validateWeekSettings(_0x3d4ca8){if(null==_0x3d4ca8)return null;if('object'!=typeof _0x3d4ca8)throw new InvalidArgumentError('Week\x20settings\x20must\x20be\x20an\x20object');if(!integerBetween(_0x3d4ca8['firstDay'],0x1,0x7)||!integerBetween(_0x3d4ca8['minimalDays'],0x1,0x7)||!Array['isArray'](_0x3d4ca8['weekend'])||_0x3d4ca8['weekend']['some'](_0x3a15fa=>!integerBetween(_0x3a15fa,0x1,0x7)))throw new InvalidArgumentError('Invalid\x20week\x20settings');return{'firstDay':_0x3d4ca8['firstDay'],'minimalDays':_0x3d4ca8['minimalDays'],'weekend':Array['from'](_0x3d4ca8['weekend'])};}function integerBetween(_0x1a88d2,_0x59dc28,_0x5566fa){return isInteger(_0x1a88d2)&&_0x1a88d2>=_0x59dc28&&_0x1a88d2<=_0x5566fa;}function floorMod(_0x35a2b0,_0x17d66b){return _0x35a2b0-_0x17d66b*Math['floor'](_0x35a2b0/_0x17d66b);}function padStart(_0x5d373b,_0x4b39a8=0x2){let _0x4b5737;return _0x4b5737=_0x5d373b<0x0?'-'+(''+-_0x5d373b)['padStart'](_0x4b39a8,'0'):(''+_0x5d373b)['padStart'](_0x4b39a8,'0'),_0x4b5737;}function parseInteger(_0x508c0f){return isUndefined(_0x508c0f)||null===_0x508c0f||''===_0x508c0f?void 0x0:parseInt(_0x508c0f,0xa);}function parseFloating(_0x492b4a){return isUndefined(_0x492b4a)||null===_0x492b4a||''===_0x492b4a?void 0x0:parseFloat(_0x492b4a);}function parseMillis(_0x3390b9){if(!isUndefined(_0x3390b9)&&null!==_0x3390b9&&''!==_0x3390b9){const _0x4f7d07=0x3e8*parseFloat('0.'+_0x3390b9);return Math['floor'](_0x4f7d07);}}function roundTo(_0x461424,_0x3e0179,_0x501dbf=!0x1){const _0x17444c=0xa**_0x3e0179;return(_0x501dbf?Math['trunc']:Math['round'])(_0x461424*_0x17444c)/_0x17444c;}function isLeapYear(_0x33bf03){return _0x33bf03%0x4==0x0&&(_0x33bf03%0x64!=0x0||_0x33bf03%0x190==0x0);}function daysInYear(_0x54b171){return isLeapYear(_0x54b171)?0x16e:0x16d;}function daysInMonth(_0xfcf4f0,_0x14b39d){const _0x4a3cf8=floorMod(_0x14b39d-0x1,0xc)+0x1;return 0x2===_0x4a3cf8?isLeapYear(_0xfcf4f0+(_0x14b39d-_0x4a3cf8)/0xc)?0x1d:0x1c:[0x1f,null,0x1f,0x1e,0x1f,0x1e,0x1f,0x1f,0x1e,0x1f,0x1e,0x1f][_0x4a3cf8-0x1];}function objToLocalTS(_0x3f0be0){let _0x136067=Date['UTC'](_0x3f0be0['year'],_0x3f0be0['month']-0x1,_0x3f0be0['day'],_0x3f0be0['hour'],_0x3f0be0['minute'],_0x3f0be0['second'],_0x3f0be0['millisecond']);return _0x3f0be0['year']<0x64&&_0x3f0be0['year']>=0x0&&(_0x136067=new Date(_0x136067),_0x136067['setUTCFullYear'](_0x3f0be0['year'],_0x3f0be0['month']-0x1,_0x3f0be0['day'])),+_0x136067;}function firstWeekOffset(_0x222a27,_0x131570,_0x2ed275){return-isoWeekdayToLocal(dayOfWeek(_0x222a27,0x1,_0x131570),_0x2ed275)+_0x131570-0x1;}function weeksInWeekYear(_0x98c66f,_0x58f7e2=0x4,_0x49cc6e=0x1){const _0x4fc9fd=firstWeekOffset(_0x98c66f,_0x58f7e2,_0x49cc6e),_0xa538c0=firstWeekOffset(_0x98c66f+0x1,_0x58f7e2,_0x49cc6e);return(daysInYear(_0x98c66f)-_0x4fc9fd+_0xa538c0)/0x7;}function untruncateYear(_0xa4999b){return _0xa4999b>0x63?_0xa4999b:_0xa4999b>Settings['twoDigitCutoffYear']?0x76c+_0xa4999b:0x7d0+_0xa4999b;}function parseZoneInfo(_0x1beaae,_0x33614f,_0x597ff3,_0x33a6e4=null){const _0x3a2212=new Date(_0x1beaae),_0x206e86={'hourCycle':'h23','year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit'};_0x33a6e4&&(_0x206e86['timeZone']=_0x33a6e4);const _0x5843cd={'timeZoneName':_0x33614f,..._0x206e86},_0x3bc50e=new Intl['DateTimeFormat'](_0x597ff3,_0x5843cd)['formatToParts'](_0x3a2212)['find'](_0x4a7a26=>'timezonename'===_0x4a7a26['type']['toLowerCase']());return _0x3bc50e?_0x3bc50e['value']:null;}function signedOffset(_0x5016a1,_0x118fdf){let _0x361a8b=parseInt(_0x5016a1,0xa);Number['isNaN'](_0x361a8b)&&(_0x361a8b=0x0);const _0xf467f3=parseInt(_0x118fdf,0xa)||0x0;return 0x3c*_0x361a8b+(_0x361a8b<0x0||Object['is'](_0x361a8b,-0x0)?-_0xf467f3:_0xf467f3);}function asNumber$1(_0x3c6d35){const _0x15da87=Number(_0x3c6d35);if('boolean'==typeof _0x3c6d35||''===_0x3c6d35||Number['isNaN'](_0x15da87))throw new InvalidArgumentError('Invalid\x20unit\x20value\x20'+_0x3c6d35);return _0x15da87;}function normalizeObject(_0x2e1573,_0x28fd6c){const _0xb65af2={};for(const _0x4fa83a in _0x2e1573)if(hasOwnProperty(_0x2e1573,_0x4fa83a)){const _0x4284c0=_0x2e1573[_0x4fa83a];if(null==_0x4284c0)continue;_0xb65af2[_0x28fd6c(_0x4fa83a)]=asNumber$1(_0x4284c0);}return _0xb65af2;}function formatOffset(_0x130966,_0x5e59fd){const _0x4870ba=Math['trunc'](Math['abs'](_0x130966/0x3c)),_0x15360e=Math['trunc'](Math['abs'](_0x130966%0x3c)),_0x436d02=_0x130966>=0x0?'+':'-';switch(_0x5e59fd){case'short':return''+_0x436d02+padStart(_0x4870ba,0x2)+':'+padStart(_0x15360e,0x2);case'narrow':return''+_0x436d02+_0x4870ba+(_0x15360e>0x0?':'+_0x15360e:'');case'techie':return''+_0x436d02+padStart(_0x4870ba,0x2)+padStart(_0x15360e,0x2);default:throw new RangeError('Value\x20format\x20'+_0x5e59fd+'\x20is\x20out\x20of\x20range\x20for\x20property\x20format');}}function timeObject(_0x30d6f5){return pick$2(_0x30d6f5,['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(_0x5c41b6){switch(_0x5c41b6){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(_0x16cd08){switch(_0x16cd08){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(_0x570be5){switch(_0x570be5){case'narrow':return[...erasNarrow];case'short':return[...erasShort];case'long':return[...erasLong];default:return null;}}function meridiemForDateTime(_0xa3ca8c){return meridiems[_0xa3ca8c['hour']<0xc?0x0:0x1];}function weekdayForDateTime(_0x3fbb54,_0x73d3a){return weekdays(_0x73d3a)[_0x3fbb54['weekday']-0x1];}function monthForDateTime(_0x423f9c,_0x2ea62d){return months(_0x2ea62d)[_0x423f9c['month']-0x1];}function eraForDateTime(_0x4e06ae,_0x3067a7){return eras(_0x3067a7)[_0x4e06ae['year']<0x0?0x0:0x1];}function formatRelativeTime(_0x1799b8,_0x2f5320,_0x3d0602='always',_0x26179b=!0x1){const _0x1bd854={'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.']},_0x57a82c=-0x1===['hours','minutes','seconds']['indexOf'](_0x1799b8);if('auto'===_0x3d0602&&_0x57a82c){const _0x4ef96b='days'===_0x1799b8;switch(_0x2f5320){case 0x1:return _0x4ef96b?'tomorrow':'next\x20'+_0x1bd854[_0x1799b8][0x0];case-0x1:return _0x4ef96b?'yesterday':'last\x20'+_0x1bd854[_0x1799b8][0x0];case 0x0:return _0x4ef96b?'today':'this\x20'+_0x1bd854[_0x1799b8][0x0];}}const _0x97f7b8=Object['is'](_0x2f5320,-0x0)||_0x2f5320<0x0,_0x5ed06f=Math['abs'](_0x2f5320),_0x8ef399=0x1===_0x5ed06f,_0x5404f1=_0x1bd854[_0x1799b8],_0x11aac3=_0x26179b?_0x8ef399?_0x5404f1[0x1]:_0x5404f1[0x2]||_0x5404f1[0x1]:_0x8ef399?_0x1bd854[_0x1799b8][0x0]:_0x1799b8;return _0x97f7b8?_0x5ed06f+'\x20'+_0x11aac3+'\x20ago':'in\x20'+_0x5ed06f+'\x20'+_0x11aac3;}function stringifyTokens(_0x344169,_0x56a442){let _0x43494c='';for(const _0xee85b8 of _0x344169)_0xee85b8['literal']?_0x43494c+=_0xee85b8['val']:_0x43494c+=_0x56a442(_0xee85b8['val']);return _0x43494c;}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'](_0x452990,_0x1de6f8={}){return new Formatter(_0x452990,_0x1de6f8);}static['parseFormat'](_0x130003){let _0x607453=null,_0x478a14='',_0x54a279=!0x1;const _0x3767fc=[];for(let _0x2ac3e3=0x0;_0x2ac3e3<_0x130003['length'];_0x2ac3e3++){const _0x4728af=_0x130003['charAt'](_0x2ac3e3);'\x27'===_0x4728af?(_0x478a14['length']>0x0&&_0x3767fc['push']({'literal':_0x54a279||/^\s+$/['test'](_0x478a14),'val':_0x478a14}),_0x607453=null,_0x478a14='',_0x54a279=!_0x54a279):_0x54a279||_0x4728af===_0x607453?_0x478a14+=_0x4728af:(_0x478a14['length']>0x0&&_0x3767fc['push']({'literal':/^\s+$/['test'](_0x478a14),'val':_0x478a14}),_0x478a14=_0x4728af,_0x607453=_0x4728af);}return _0x478a14['length']>0x0&&_0x3767fc['push']({'literal':_0x54a279||/^\s+$/['test'](_0x478a14),'val':_0x478a14}),_0x3767fc;}static['macroTokenToFormatOpts'](_0x3912ca){return macroTokenToFormatOpts[_0x3912ca];}constructor(_0x3ba685,_0x188c44){this['opts']=_0x188c44,this['loc']=_0x3ba685,this['systemLoc']=null;}['formatWithSystemDefault'](_0x2e3d38,_0x54b89a){return null===this['systemLoc']&&(this['systemLoc']=this['loc']['redefaultToSystem']()),this['systemLoc']['dtFormatter'](_0x2e3d38,{...this['opts'],..._0x54b89a})['format']();}['dtFormatter'](_0x5518fb,_0x31b542={}){return this['loc']['dtFormatter'](_0x5518fb,{...this['opts'],..._0x31b542});}['formatDateTime'](_0x4f288b,_0x10121c){return this['dtFormatter'](_0x4f288b,_0x10121c)['format']();}['formatDateTimeParts'](_0xebcfa7,_0x2a16ee){return this['dtFormatter'](_0xebcfa7,_0x2a16ee)['formatToParts']();}['formatInterval'](_0x8e9368,_0x4986ab){return this['dtFormatter'](_0x8e9368['start'],_0x4986ab)['dtf']['formatRange'](_0x8e9368['start']['toJSDate'](),_0x8e9368['end']['toJSDate']());}['resolvedOptions'](_0x408900,_0x11a99f){return this['dtFormatter'](_0x408900,_0x11a99f)['resolvedOptions']();}['num'](_0x4b8bb7,_0x42d236=0x0){if(this['opts']['forceSimple'])return padStart(_0x4b8bb7,_0x42d236);const _0x558a3f={...this['opts']};return _0x42d236>0x0&&(_0x558a3f['padTo']=_0x42d236),this['loc']['numberFormatter'](_0x558a3f)['format'](_0x4b8bb7);}['formatDateTimeFromString'](_0x1be12d,_0x12677b){const _0x4b8d94='en'===this['loc']['listingMode'](),_0x18e28c=this['loc']['outputCalendar']&&'gregory'!==this['loc']['outputCalendar'],_0x21a762=(_0x3fb393,_0x5f3dd3)=>this['loc']['extract'](_0x1be12d,_0x3fb393,_0x5f3dd3),_0x53419b=_0x5d3e95=>_0x1be12d['isOffsetFixed']&&0x0===_0x1be12d['offset']&&_0x5d3e95['allowZ']?'Z':_0x1be12d['isValid']?_0x1be12d['zone']['formatOffset'](_0x1be12d['ts'],_0x5d3e95['format']):'',_0x53ee0f=(_0x2e3b03,_0x2be52a)=>_0x4b8d94?monthForDateTime(_0x1be12d,_0x2e3b03):_0x21a762(_0x2be52a?{'month':_0x2e3b03}:{'month':_0x2e3b03,'day':'numeric'},'month'),_0x52d60f=(_0x32ab68,_0x56ea14)=>_0x4b8d94?weekdayForDateTime(_0x1be12d,_0x32ab68):_0x21a762(_0x56ea14?{'weekday':_0x32ab68}:{'weekday':_0x32ab68,'month':'long','day':'numeric'},'weekday'),_0xdc09c=_0x32ffd1=>{const _0x29d1d0=Formatter['macroTokenToFormatOpts'](_0x32ffd1);return _0x29d1d0?this['formatWithSystemDefault'](_0x1be12d,_0x29d1d0):_0x32ffd1;},_0x5635ef=_0x3c6a61=>_0x4b8d94?eraForDateTime(_0x1be12d,_0x3c6a61):_0x21a762({'era':_0x3c6a61},'era');return stringifyTokens(Formatter['parseFormat'](_0x12677b),_0x223687=>{switch(_0x223687){case'S':return this['num'](_0x1be12d['millisecond']);case'u':case'SSS':return this['num'](_0x1be12d['millisecond'],0x3);case's':return this['num'](_0x1be12d['second']);case'ss':return this['num'](_0x1be12d['second'],0x2);case'uu':return this['num'](Math['floor'](_0x1be12d['millisecond']/0xa),0x2);case'uuu':return this['num'](Math['floor'](_0x1be12d['millisecond']/0x64));case'm':return this['num'](_0x1be12d['minute']);case'mm':return this['num'](_0x1be12d['minute'],0x2);case'h':return this['num'](_0x1be12d['hour']%0xc==0x0?0xc:_0x1be12d['hour']%0xc);case'hh':return this['num'](_0x1be12d['hour']%0xc==0x0?0xc:_0x1be12d['hour']%0xc,0x2);case'H':return this['num'](_0x1be12d['hour']);case'HH':return this['num'](_0x1be12d['hour'],0x2);case'Z':return _0x53419b({'format':'narrow','allowZ':this['opts']['allowZ']});case'ZZ':return _0x53419b({'format':'short','allowZ':this['opts']['allowZ']});case'ZZZ':return _0x53419b({'format':'techie','allowZ':this['opts']['allowZ']});case'ZZZZ':return _0x1be12d['zone']['offsetName'](_0x1be12d['ts'],{'format':'short','locale':this['loc']['locale']});case'ZZZZZ':return _0x1be12d['zone']['offsetName'](_0x1be12d['ts'],{'format':'long','locale':this['loc']['locale']});case'z':return _0x1be12d['zoneName'];case'a':return _0x4b8d94?meridiemForDateTime(_0x1be12d):_0x21a762({'hour':'numeric','hourCycle':'h12'},'dayperiod');case'd':return _0x18e28c?_0x21a762({'day':'numeric'},'day'):this['num'](_0x1be12d['day']);case'dd':return _0x18e28c?_0x21a762({'day':'2-digit'},'day'):this['num'](_0x1be12d['day'],0x2);case'c':case'E':return this['num'](_0x1be12d['weekday']);case'ccc':return _0x52d60f('short',!0x0);case'cccc':return _0x52d60f('long',!0x0);case'ccccc':return _0x52d60f('narrow',!0x0);case'EEE':return _0x52d60f('short',!0x1);case'EEEE':return _0x52d60f('long',!0x1);case'EEEEE':return _0x52d60f('narrow',!0x1);case'L':return _0x18e28c?_0x21a762({'month':'numeric','day':'numeric'},'month'):this['num'](_0x1be12d['month']);case'LL':return _0x18e28c?_0x21a762({'month':'2-digit','day':'numeric'},'month'):this['num'](_0x1be12d['month'],0x2);case'LLL':return _0x53ee0f('short',!0x0);case'LLLL':return _0x53ee0f('long',!0x0);case'LLLLL':return _0x53ee0f('narrow',!0x0);case'M':return _0x18e28c?_0x21a762({'month':'numeric'},'month'):this['num'](_0x1be12d['month']);case'MM':return _0x18e28c?_0x21a762({'month':'2-digit'},'month'):this['num'](_0x1be12d['month'],0x2);case'MMM':return _0x53ee0f('short',!0x1);case'MMMM':return _0x53ee0f('long',!0x1);case'MMMMM':return _0x53ee0f('narrow',!0x1);case'y':return _0x18e28c?_0x21a762({'year':'numeric'},'year'):this['num'](_0x1be12d['year']);case'yy':return _0x18e28c?_0x21a762({'year':'2-digit'},'year'):this['num'](_0x1be12d['year']['toString']()['slice'](-0x2),0x2);case'yyyy':return _0x18e28c?_0x21a762({'year':'numeric'},'year'):this['num'](_0x1be12d['year'],0x4);case'yyyyyy':return _0x18e28c?_0x21a762({'year':'numeric'},'year'):this['num'](_0x1be12d['year'],0x6);case'G':return _0x5635ef('short');case'GG':return _0x5635ef('long');case'GGGGG':return _0x5635ef('narrow');case'kk':return this['num'](_0x1be12d['weekYear']['toString']()['slice'](-0x2),0x2);case'kkkk':return this['num'](_0x1be12d['weekYear'],0x4);case'W':return this['num'](_0x1be12d['weekNumber']);case'WW':return this['num'](_0x1be12d['weekNumber'],0x2);case'n':return this['num'](_0x1be12d['localWeekNumber']);case'nn':return this['num'](_0x1be12d['localWeekNumber'],0x2);case'ii':return this['num'](_0x1be12d['localWeekYear']['toString']()['slice'](-0x2),0x2);case'iiii':return this['num'](_0x1be12d['localWeekYear'],0x4);case'o':return this['num'](_0x1be12d['ordinal']);case'ooo':return this['num'](_0x1be12d['ordinal'],0x3);case'q':return this['num'](_0x1be12d['quarter']);case'qq':return this['num'](_0x1be12d['quarter'],0x2);case'X':return this['num'](Math['floor'](_0x1be12d['ts']/0x3e8));case'x':return this['num'](_0x1be12d['ts']);default:return _0xdc09c(_0x223687);}});}['formatDurationFromString'](_0x19f910,_0x4f2e2c){const _0x237660=_0x466a49=>{switch(_0x466a49[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;}},_0x3662d6=Formatter['parseFormat'](_0x4f2e2c),_0x55feae=_0x3662d6['reduce']((_0x1d2768,{literal:_0xbdb5,val:_0x1f9be2})=>_0xbdb5?_0x1d2768:_0x1d2768['concat'](_0x1f9be2),[]),_0x300961=_0x19f910['shiftTo'](..._0x55feae['map'](_0x237660)['filter'](t=>t));return stringifyTokens(_0x3662d6,(_0x108f98=>_0x43b310=>{const _0x41afff=_0x237660(_0x43b310);return _0x41afff?this['num'](_0x108f98['get'](_0x41afff),_0x43b310['length']):_0x43b310;})(_0x300961));}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(..._0x1c9f64){const _0x496574=_0x1c9f64['reduce']((_0x29fd74,_0x33f4c8)=>_0x29fd74+_0x33f4c8['source'],'');return RegExp('^'+_0x496574+'$');}function combineExtractors(..._0x18fa86){return _0x398c2a=>_0x18fa86['reduce'](([_0x2500d4,_0x1458eb,_0x367382],_0x5e6ef3)=>{const [_0x1b34e9,_0xb1ddc1,_0x45ed9c]=_0x5e6ef3(_0x398c2a,_0x367382);return[{..._0x2500d4,..._0x1b34e9},_0xb1ddc1||_0x1458eb,_0x45ed9c];},[{},null,0x1])['slice'](0x0,0x2);}function parse$1(_0x264b3b,..._0x5b476f){if(null==_0x264b3b)return[null,null];for(const [_0xadaa10,_0x561c5a]of _0x5b476f){const _0xd2187a=_0xadaa10['exec'](_0x264b3b);if(_0xd2187a)return _0x561c5a(_0xd2187a);}return[null,null];}function simpleParse(..._0xe0490f){return(_0x2d67ed,_0x354927)=>{const _0x2992fd={};let _0x5bef88;for(_0x5bef88=0x0;_0x5bef88<_0xe0490f['length'];_0x5bef88++)_0x2992fd[_0xe0490f[_0x5bef88]]=parseInteger(_0x2d67ed[_0x354927+_0x5bef88]);return[_0x2992fd,null,_0x354927+_0x5bef88];};}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(_0x5adf97,_0x4e840f,_0x324691){const _0x15092f=_0x5adf97[_0x4e840f];return isUndefined(_0x15092f)?_0x324691:parseInteger(_0x15092f);}function extractISOYmd(_0x3f82ec,_0x3c2f36){return[{'year':int(_0x3f82ec,_0x3c2f36),'month':int(_0x3f82ec,_0x3c2f36+0x1,0x1),'day':int(_0x3f82ec,_0x3c2f36+0x2,0x1)},null,_0x3c2f36+0x3];}function extractISOTime(_0x1875cf,_0x1902e4){return[{'hours':int(_0x1875cf,_0x1902e4,0x0),'minutes':int(_0x1875cf,_0x1902e4+0x1,0x0),'seconds':int(_0x1875cf,_0x1902e4+0x2,0x0),'milliseconds':parseMillis(_0x1875cf[_0x1902e4+0x3])},null,_0x1902e4+0x4];}function extractISOOffset(_0x53a21b,_0x164b26){const _0x8a2e81=!_0x53a21b[_0x164b26]&&!_0x53a21b[_0x164b26+0x1],_0x30a357=signedOffset(_0x53a21b[_0x164b26+0x1],_0x53a21b[_0x164b26+0x2]);return[{},_0x8a2e81?null:FixedOffsetZone['instance'](_0x30a357),_0x164b26+0x3];}function extractIANAZone(_0x5351f6,_0x4dd886){return[{},_0x5351f6[_0x4dd886]?IANAZone['create'](_0x5351f6[_0x4dd886]):null,_0x4dd886+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(_0x36f660){const [_0x4f6d7f,_0x53c170,_0x2843a0,_0x3e6187,_0x1be9bc,_0x2f3728,_0x844c48,_0x11552a,_0x31fdcd]=_0x36f660,_0x1337bd='-'===_0x4f6d7f[0x0],_0x5e6211=_0x11552a&&'-'===_0x11552a[0x0],_0x4f9f39=(_0x271e08,_0x42ba16=!0x1)=>void 0x0!==_0x271e08&&(_0x42ba16||_0x271e08&&_0x1337bd)?-_0x271e08:_0x271e08;return[{'years':_0x4f9f39(parseFloating(_0x53c170)),'months':_0x4f9f39(parseFloating(_0x2843a0)),'weeks':_0x4f9f39(parseFloating(_0x3e6187)),'days':_0x4f9f39(parseFloating(_0x1be9bc)),'hours':_0x4f9f39(parseFloating(_0x2f3728)),'minutes':_0x4f9f39(parseFloating(_0x844c48)),'seconds':_0x4f9f39(parseFloating(_0x11552a),'-0'===_0x11552a),'milliseconds':_0x4f9f39(parseMillis(_0x31fdcd),_0x5e6211)}];}const obsOffsets={'GMT':0x0,'EDT':-0xf0,'EST':-0x12c,'CDT':-0x12c,'CST':-0x168,'MDT':-0x168,'MST':-0x1a4,'PDT':-0x1a4,'PST':-0x1e0};function fromStrings(_0x4d4efb,_0x39986c,_0xf56ea1,_0x1ebe55,_0x4e5471,_0x4f6c78,_0x5acb0e){const _0x336a0a={'year':0x2===_0x39986c['length']?untruncateYear(parseInteger(_0x39986c)):parseInteger(_0x39986c),'month':monthsShort['indexOf'](_0xf56ea1)+0x1,'day':parseInteger(_0x1ebe55),'hour':parseInteger(_0x4e5471),'minute':parseInteger(_0x4f6c78)};return _0x5acb0e&&(_0x336a0a['second']=parseInteger(_0x5acb0e)),_0x4d4efb&&(_0x336a0a['weekday']=_0x4d4efb['length']>0x3?weekdaysLong['indexOf'](_0x4d4efb)+0x1:weekdaysShort['indexOf'](_0x4d4efb)+0x1),_0x336a0a;}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(_0x4d6cef){const [,_0x58cc2e,_0x23bf33,_0x4297e6,_0x890fb4,_0x36075c,_0x4b8b78,_0x55ddda,_0x48fba4,_0x48863f,_0x468c0a,_0x44dc46]=_0x4d6cef,_0x1d2145=fromStrings(_0x58cc2e,_0x890fb4,_0x4297e6,_0x23bf33,_0x36075c,_0x4b8b78,_0x55ddda);let _0xb6c7da;return _0xb6c7da=_0x48fba4?obsOffsets[_0x48fba4]:_0x48863f?0x0:signedOffset(_0x468c0a,_0x44dc46),[_0x1d2145,new FixedOffsetZone(_0xb6c7da)];}function preprocessRFC2822(_0x5d91e8){return _0x5d91e8['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(_0x182d96){const [,_0x1f611f,_0x197a4c,_0x143c7b,_0x37419a,_0x5d7821,_0x1782f6,_0x5e132f]=_0x182d96;return[fromStrings(_0x1f611f,_0x37419a,_0x143c7b,_0x197a4c,_0x5d7821,_0x1782f6,_0x5e132f),FixedOffsetZone['utcInstance']];}function extractASCII(_0x4f147c){const [,_0x3023e4,_0x142ceb,_0xe2dc61,_0x2bd787,_0x2d25a8,_0xabf820,_0x519e96]=_0x4f147c;return[fromStrings(_0x3023e4,_0x519e96,_0x142ceb,_0xe2dc61,_0x2bd787,_0x2d25a8,_0xabf820),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(_0x4d85a7){return parse$1(_0x4d85a7,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset]);}function parseRFC2822Date(_0x2cc5d8){return parse$1(preprocessRFC2822(_0x2cc5d8),[rfc2822,extractRFC2822]);}function parseHTTPDate(_0x75e192){return parse$1(_0x75e192,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII]);}function parseISODuration(_0x215611){return parse$1(_0x215611,[isoDuration,extractISODuration]);}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(_0x12c99a){return parse$1(_0x12c99a,[isoTimeOnly,extractISOTimeOnly]);}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(_0x514f1a){return parse$1(_0x514f1a,[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(_0x1f57fc,_0x580bfb,_0x5b4de1=!0x1){const _0x1d6b79={'values':_0x5b4de1?_0x580bfb['values']:{..._0x1f57fc['values'],..._0x580bfb['values']||{}},'loc':_0x1f57fc['loc']['clone'](_0x580bfb['loc']),'conversionAccuracy':_0x580bfb['conversionAccuracy']||_0x1f57fc['conversionAccuracy'],'matrix':_0x580bfb['matrix']||_0x1f57fc['matrix']};return new Duration(_0x1d6b79);}function durationToMillis(_0x3267ca,_0x1a9796){let _0x4653f5=_0x1a9796['milliseconds']??0x0;for(const _0x5a80ae of reverseUnits['slice'](0x1))_0x1a9796[_0x5a80ae]&&(_0x4653f5+=_0x1a9796[_0x5a80ae]*_0x3267ca[_0x5a80ae]['milliseconds']);return _0x4653f5;}function normalizeValues(_0x4102b7,_0x3f0c00){const _0x55ede5=durationToMillis(_0x4102b7,_0x3f0c00)<0x0?-0x1:0x1;orderedUnits$1['reduceRight']((_0x2fa5b8,_0x263d6b)=>{if(isUndefined(_0x3f0c00[_0x263d6b]))return _0x2fa5b8;if(_0x2fa5b8){const _0xb3429e=_0x3f0c00[_0x2fa5b8]*_0x55ede5,_0x3408aa=_0x4102b7[_0x263d6b][_0x2fa5b8],_0x4dd272=Math['floor'](_0xb3429e/_0x3408aa);_0x3f0c00[_0x263d6b]+=_0x4dd272*_0x55ede5,_0x3f0c00[_0x2fa5b8]-=_0x4dd272*_0x3408aa*_0x55ede5;}return _0x263d6b;},null),orderedUnits$1['reduce']((_0x23044e,_0x2cc009)=>{if(isUndefined(_0x3f0c00[_0x2cc009]))return _0x23044e;if(_0x23044e){const _0x3b2879=_0x3f0c00[_0x23044e]%0x1;_0x3f0c00[_0x23044e]-=_0x3b2879,_0x3f0c00[_0x2cc009]+=_0x3b2879*_0x4102b7[_0x23044e][_0x2cc009];}return _0x2cc009;},null);}function removeZeroes(_0x3abd84){const _0x4684c6={};for(const [_0x3b8bb7,_0x3c2bcb]of Object['entries'](_0x3abd84))0x0!==_0x3c2bcb&&(_0x4684c6[_0x3b8bb7]=_0x3c2bcb);return _0x4684c6;}class Duration{constructor(_0x1cc073){const _0x39ac69='longterm'===_0x1cc073['conversionAccuracy']||!0x1;let _0x47c199=_0x39ac69?accurateMatrix:casualMatrix;_0x1cc073['matrix']&&(_0x47c199=_0x1cc073['matrix']),this['values']=_0x1cc073['values'],this['loc']=_0x1cc073['loc']||Locale['create'](),this['conversionAccuracy']=_0x39ac69?'longterm':'casual',this['invalid']=_0x1cc073['invalid']||null,this['matrix']=_0x47c199,this['isLuxonDuration']=!0x0;}static['fromMillis'](_0x461ca6,_0x263cca){return Duration['fromObject']({'milliseconds':_0x461ca6},_0x263cca);}static['fromObject'](_0x434d1b,_0x579395={}){if(null==_0x434d1b||'object'!=typeof _0x434d1b)throw new InvalidArgumentError('Duration.fromObject:\x20argument\x20expected\x20to\x20be\x20an\x20object,\x20got\x20'+(null===_0x434d1b?'null':typeof _0x434d1b));return new Duration({'values':normalizeObject(_0x434d1b,Duration['normalizeUnit']),'loc':Locale['fromObject'](_0x579395),'conversionAccuracy':_0x579395['conversionAccuracy'],'matrix':_0x579395['matrix']});}static['fromDurationLike'](_0x26bf43){if(isNumber(_0x26bf43))return Duration['fromMillis'](_0x26bf43);if(Duration['isDuration'](_0x26bf43))return _0x26bf43;if('object'==typeof _0x26bf43)return Duration['fromObject'](_0x26bf43);throw new InvalidArgumentError('Unknown\x20duration\x20argument\x20'+_0x26bf43+'\x20of\x20type\x20'+typeof _0x26bf43);}static['fromISO'](_0xc42288,_0x360afd){const [_0xa8eb0d]=parseISODuration(_0xc42288);return _0xa8eb0d?Duration['fromObject'](_0xa8eb0d,_0x360afd):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0xc42288+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['fromISOTime'](_0xa013b5,_0x1fdf67){const [_0xa7c830]=parseISOTimeOnly(_0xa013b5);return _0xa7c830?Duration['fromObject'](_0xa7c830,_0x1fdf67):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0xa013b5+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['invalid'](_0x3893f5,_0x27736a=null){if(!_0x3893f5)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Duration\x20is\x20invalid');const _0x462ab6=_0x3893f5 instanceof Invalid?_0x3893f5:new Invalid(_0x3893f5,_0x27736a);if(Settings['throwOnInvalid'])throw new InvalidDurationError(_0x462ab6);return new Duration({'invalid':_0x462ab6});}static['normalizeUnit'](_0x515b53){const _0x5e43a3={'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'}[_0x515b53?_0x515b53['toLowerCase']():_0x515b53];if(!_0x5e43a3)throw new InvalidUnitError(_0x515b53);return _0x5e43a3;}static['isDuration'](_0x3a029a){return _0x3a029a&&_0x3a029a['isLuxonDuration']||!0x1;}get['locale'](){return this['isValid']?this['loc']['locale']:null;}get['numberingSystem'](){return this['isValid']?this['loc']['numberingSystem']:null;}['toFormat'](_0x520ab8,_0x27c488={}){const _0x39012b={..._0x27c488,'floor':!0x1!==_0x27c488['round']&&!0x1!==_0x27c488['floor']};return this['isValid']?Formatter['create'](this['loc'],_0x39012b)['formatDurationFromString'](this,_0x520ab8):INVALID$2;}['toHuman'](_0x145598={}){if(!this['isValid'])return INVALID$2;const _0x404e50=orderedUnits$1['map'](_0x2f2ba5=>{const _0x29aa75=this['values'][_0x2f2ba5];return isUndefined(_0x29aa75)?null:this['loc']['numberFormatter']({'style':'unit','unitDisplay':'long',..._0x145598,'unit':_0x2f2ba5['slice'](0x0,-0x1)})['format'](_0x29aa75);})['filter'](_0x4dd346=>_0x4dd346);return this['loc']['listFormatter']({'type':'conjunction','style':_0x145598['listStyle']||'narrow',..._0x145598})['format'](_0x404e50);}['toObject'](){return this['isValid']?{...this['values']}:{};}['toISO'](){if(!this['isValid'])return null;let _0x304933='P';return 0x0!==this['years']&&(_0x304933+=this['years']+'Y'),0x0===this['months']&&0x0===this['quarters']||(_0x304933+=this['months']+0x3*this['quarters']+'M'),0x0!==this['weeks']&&(_0x304933+=this['weeks']+'W'),0x0!==this['days']&&(_0x304933+=this['days']+'D'),0x0===this['hours']&&0x0===this['minutes']&&0x0===this['seconds']&&0x0===this['milliseconds']||(_0x304933+='T'),0x0!==this['hours']&&(_0x304933+=this['hours']+'H'),0x0!==this['minutes']&&(_0x304933+=this['minutes']+'M'),0x0===this['seconds']&&0x0===this['milliseconds']||(_0x304933+=roundTo(this['seconds']+this['milliseconds']/0x3e8,0x3)+'S'),'P'===_0x304933&&(_0x304933+='T0S'),_0x304933;}['toISOTime'](_0x51d355={}){if(!this['isValid'])return null;const _0x465466=this['toMillis']();if(_0x465466<0x0||_0x465466>=0x5265c00)return null;return _0x51d355={'suppressMilliseconds':!0x1,'suppressSeconds':!0x1,'includePrefix':!0x1,'format':'extended',..._0x51d355,'includeOffset':!0x1},DateTime['fromMillis'](_0x465466,{'zone':'UTC'})['toISOTime'](_0x51d355);}['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'](_0x5038f1){if(!this['isValid'])return this;const _0x22e28f=Duration['fromDurationLike'](_0x5038f1),_0x296ee8={};for(const _0x5de6e8 of orderedUnits$1)(hasOwnProperty(_0x22e28f['values'],_0x5de6e8)||hasOwnProperty(this['values'],_0x5de6e8))&&(_0x296ee8[_0x5de6e8]=_0x22e28f['get'](_0x5de6e8)+this['get'](_0x5de6e8));return clone$1(this,{'values':_0x296ee8},!0x0);}['minus'](_0x53b655){if(!this['isValid'])return this;const _0x14c6ac=Duration['fromDurationLike'](_0x53b655);return this['plus'](_0x14c6ac['negate']());}['mapUnits'](_0x209627){if(!this['isValid'])return this;const _0x468b41={};for(const _0x3dc0fb of Object['keys'](this['values']))_0x468b41[_0x3dc0fb]=asNumber$1(_0x209627(this['values'][_0x3dc0fb],_0x3dc0fb));return clone$1(this,{'values':_0x468b41},!0x0);}['get'](_0x42f906){return this[Duration['normalizeUnit'](_0x42f906)];}['set'](_0x172d85){if(!this['isValid'])return this;return clone$1(this,{'values':{...this['values'],...normalizeObject(_0x172d85,Duration['normalizeUnit'])}});}['reconfigure']({locale:_0x48fabb,numberingSystem:_0x2f9895,conversionAccuracy:_0x234d66,matrix:_0x23e6b9}={}){return clone$1(this,{'loc':this['loc']['clone']({'locale':_0x48fabb,'numberingSystem':_0x2f9895}),'matrix':_0x23e6b9,'conversionAccuracy':_0x234d66});}['as'](_0x3a8bef){return this['isValid']?this['shiftTo'](_0x3a8bef)['get'](_0x3a8bef):NaN;}['normalize'](){if(!this['isValid'])return this;const _0x58c20e=this['toObject']();return normalizeValues(this['matrix'],_0x58c20e),clone$1(this,{'values':_0x58c20e},!0x0);}['rescale'](){if(!this['isValid'])return this;return clone$1(this,{'values':removeZeroes(this['normalize']()['shiftToAll']()['toObject']())},!0x0);}['shiftTo'](..._0x49c0bd){if(!this['isValid'])return this;if(0x0===_0x49c0bd['length'])return this;_0x49c0bd=_0x49c0bd['map'](_0x32c47c=>Duration['normalizeUnit'](_0x32c47c));const _0x43e56e={},_0x57e9b5={},_0x3dce13=this['toObject']();let _0x1143f2;for(const _0x2aee43 of orderedUnits$1)if(_0x49c0bd['indexOf'](_0x2aee43)>=0x0){_0x1143f2=_0x2aee43;let _0x19c0bb=0x0;for(const _0x4eb57e in _0x57e9b5)_0x19c0bb+=this['matrix'][_0x4eb57e][_0x2aee43]*_0x57e9b5[_0x4eb57e],_0x57e9b5[_0x4eb57e]=0x0;isNumber(_0x3dce13[_0x2aee43])&&(_0x19c0bb+=_0x3dce13[_0x2aee43]);const _0x18cd41=Math['trunc'](_0x19c0bb);_0x43e56e[_0x2aee43]=_0x18cd41,_0x57e9b5[_0x2aee43]=(0x3e8*_0x19c0bb-0x3e8*_0x18cd41)/0x3e8;}else isNumber(_0x3dce13[_0x2aee43])&&(_0x57e9b5[_0x2aee43]=_0x3dce13[_0x2aee43]);for(const _0x420925 in _0x57e9b5)0x0!==_0x57e9b5[_0x420925]&&(_0x43e56e[_0x1143f2]+=_0x420925===_0x1143f2?_0x57e9b5[_0x420925]:_0x57e9b5[_0x420925]/this['matrix'][_0x1143f2][_0x420925]);return normalizeValues(this['matrix'],_0x43e56e),clone$1(this,{'values':_0x43e56e},!0x0);}['shiftToAll'](){return this['isValid']?this['shiftTo']('years','months','weeks','days','hours','minutes','seconds','milliseconds'):this;}['negate'](){if(!this['isValid'])return this;const _0x41f0bb={};for(const _0x227430 of Object['keys'](this['values']))_0x41f0bb[_0x227430]=0x0===this['values'][_0x227430]?0x0:-this['values'][_0x227430];return clone$1(this,{'values':_0x41f0bb},!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'](_0x5f42c0){if(!this['isValid']||!_0x5f42c0['isValid'])return!0x1;if(!this['loc']['equals'](_0x5f42c0['loc']))return!0x1;function _0x4ca872(_0x3b1a3f,_0x3f7b78){return void 0x0===_0x3b1a3f||0x0===_0x3b1a3f?void 0x0===_0x3f7b78||0x0===_0x3f7b78:_0x3b1a3f===_0x3f7b78;}for(const _0x528294 of orderedUnits$1)if(!_0x4ca872(this['values'][_0x528294],_0x5f42c0['values'][_0x528294]))return!0x1;return!0x0;}}const INVALID$1='Invalid\x20Interval';function validateStartEnd(_0x432aa5,_0x2acaa6){return _0x432aa5&&_0x432aa5['isValid']?_0x2acaa6&&_0x2acaa6['isValid']?_0x2acaa6<_0x432aa5?Interval['invalid']('end\x20before\x20start','The\x20end\x20of\x20an\x20interval\x20must\x20be\x20after\x20its\x20start,\x20but\x20you\x20had\x20start='+_0x432aa5['toISO']()+'\x20and\x20end='+_0x2acaa6['toISO']()):null:Interval['invalid']('missing\x20or\x20invalid\x20end'):Interval['invalid']('missing\x20or\x20invalid\x20start');}class Interval{constructor(_0x3dde59){this['s']=_0x3dde59['start'],this['e']=_0x3dde59['end'],this['invalid']=_0x3dde59['invalid']||null,this['isLuxonInterval']=!0x0;}static['invalid'](_0x2d9a86,_0x4fed50=null){if(!_0x2d9a86)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Interval\x20is\x20invalid');const _0x261abf=_0x2d9a86 instanceof Invalid?_0x2d9a86:new Invalid(_0x2d9a86,_0x4fed50);if(Settings['throwOnInvalid'])throw new InvalidIntervalError(_0x261abf);return new Interval({'invalid':_0x261abf});}static['fromDateTimes'](_0x584cf4,_0xc402f6){const _0x1b2efd=friendlyDateTime(_0x584cf4),_0x44db74=friendlyDateTime(_0xc402f6),_0x1e87a9=validateStartEnd(_0x1b2efd,_0x44db74);return null==_0x1e87a9?new Interval({'start':_0x1b2efd,'end':_0x44db74}):_0x1e87a9;}static['after'](_0x5b2d34,_0x325b96){const _0x531af2=Duration['fromDurationLike'](_0x325b96),_0x4fcd48=friendlyDateTime(_0x5b2d34);return Interval['fromDateTimes'](_0x4fcd48,_0x4fcd48['plus'](_0x531af2));}static['before'](_0xa50a71,_0x1228fc){const _0xee80e5=Duration['fromDurationLike'](_0x1228fc),_0x5e5479=friendlyDateTime(_0xa50a71);return Interval['fromDateTimes'](_0x5e5479['minus'](_0xee80e5),_0x5e5479);}static['fromISO'](_0x54142d,_0x3e365e){const [_0x25dd30,_0x575e92]=(_0x54142d||'')['split']('/',0x2);if(_0x25dd30&&_0x575e92){let _0x2a7cdc,_0x2d98d3,_0xf4a621,_0x4a2986;try{_0x2a7cdc=DateTime['fromISO'](_0x25dd30,_0x3e365e),_0x2d98d3=_0x2a7cdc['isValid'];}catch(_0x20e54b){_0x2d98d3=!0x1;}try{_0xf4a621=DateTime['fromISO'](_0x575e92,_0x3e365e),_0x4a2986=_0xf4a621['isValid'];}catch(_0x157790){_0x4a2986=!0x1;}if(_0x2d98d3&&_0x4a2986)return Interval['fromDateTimes'](_0x2a7cdc,_0xf4a621);if(_0x2d98d3){const _0x4ca258=Duration['fromISO'](_0x575e92,_0x3e365e);if(_0x4ca258['isValid'])return Interval['after'](_0x2a7cdc,_0x4ca258);}else{if(_0x4a2986){const _0x1043c4=Duration['fromISO'](_0x25dd30,_0x3e365e);if(_0x1043c4['isValid'])return Interval['before'](_0xf4a621,_0x1043c4);}}}return Interval['invalid']('unparsable','the\x20input\x20\x22'+_0x54142d+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['isInterval'](_0x146588){return _0x146588&&_0x146588['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'](_0x557beb='milliseconds'){return this['isValid']?this['toDuration'](_0x557beb)['get'](_0x557beb):NaN;}['count'](_0xdca765='milliseconds',_0x28b5bc){if(!this['isValid'])return NaN;const _0x3eb5b1=this['start']['startOf'](_0xdca765,_0x28b5bc);let _0x220189;return _0x220189=_0x28b5bc?.['useLocaleWeeks']?this['end']['reconfigure']({'locale':_0x3eb5b1['locale']}):this['end'],_0x220189=_0x220189['startOf'](_0xdca765,_0x28b5bc),Math['floor'](_0x220189['diff'](_0x3eb5b1,_0xdca765)['get'](_0xdca765))+(_0x220189['valueOf']()!==this['end']['valueOf']());}['hasSame'](_0x56f543){return!!this['isValid']&&(this['isEmpty']()||this['e']['minus'](0x1)['hasSame'](this['s'],_0x56f543));}['isEmpty'](){return this['s']['valueOf']()===this['e']['valueOf']();}['isAfter'](_0x57389f){return!!this['isValid']&&this['s']>_0x57389f;}['isBefore'](_0x5065ee){return!!this['isValid']&&this['e']<=_0x5065ee;}['contains'](_0x208f43){return!!this['isValid']&&(this['s']<=_0x208f43&&this['e']>_0x208f43);}['set']({start:_0x439e53,end:_0x4b2bdf}={}){return this['isValid']?Interval['fromDateTimes'](_0x439e53||this['s'],_0x4b2bdf||this['e']):this;}['splitAt'](..._0x31631e){if(!this['isValid'])return[];const _0x57cfde=_0x31631e['map'](friendlyDateTime)['filter'](_0x4a3d2b=>this['contains'](_0x4a3d2b))['sort']((_0x51f305,_0x4a4452)=>_0x51f305['toMillis']()-_0x4a4452['toMillis']()),_0x4f1784=[];let {s:_0x4e322d}=this,_0x134eb7=0x0;for(;_0x4e322d<this['e'];){const _0x2b0ce1=_0x57cfde[_0x134eb7]||this['e'],_0x216573=+_0x2b0ce1>+this['e']?this['e']:_0x2b0ce1;_0x4f1784['push'](Interval['fromDateTimes'](_0x4e322d,_0x216573)),_0x4e322d=_0x216573,_0x134eb7+=0x1;}return _0x4f1784;}['splitBy'](_0x2ad883){const _0x29efb0=Duration['fromDurationLike'](_0x2ad883);if(!this['isValid']||!_0x29efb0['isValid']||0x0===_0x29efb0['as']('milliseconds'))return[];let _0x43dc44,{s:_0x582730}=this,_0x4eddeb=0x1;const _0x295e4a=[];for(;_0x582730<this['e'];){const _0x5ad9b0=this['start']['plus'](_0x29efb0['mapUnits'](_0x270a17=>_0x270a17*_0x4eddeb));_0x43dc44=+_0x5ad9b0>+this['e']?this['e']:_0x5ad9b0,_0x295e4a['push'](Interval['fromDateTimes'](_0x582730,_0x43dc44)),_0x582730=_0x43dc44,_0x4eddeb+=0x1;}return _0x295e4a;}['divideEqually'](_0x2f0017){return this['isValid']?this['splitBy'](this['length']()/_0x2f0017)['slice'](0x0,_0x2f0017):[];}['overlaps'](_0x9647ad){return this['e']>_0x9647ad['s']&&this['s']<_0x9647ad['e'];}['abutsStart'](_0x14a310){return!!this['isValid']&&+this['e']===+_0x14a310['s'];}['abutsEnd'](_0x225ed9){return!!this['isValid']&&+_0x225ed9['e']===+this['s'];}['engulfs'](_0x364c40){return!!this['isValid']&&(this['s']<=_0x364c40['s']&&this['e']>=_0x364c40['e']);}['equals'](_0x2f4d8b){return!(!this['isValid']||!_0x2f4d8b['isValid'])&&(this['s']['equals'](_0x2f4d8b['s'])&&this['e']['equals'](_0x2f4d8b['e']));}['intersection'](_0x2b3722){if(!this['isValid'])return this;const _0x4d5e1c=this['s']>_0x2b3722['s']?this['s']:_0x2b3722['s'],_0x1dc1a8=this['e']<_0x2b3722['e']?this['e']:_0x2b3722['e'];return _0x4d5e1c>=_0x1dc1a8?null:Interval['fromDateTimes'](_0x4d5e1c,_0x1dc1a8);}['union'](_0x1b9f82){if(!this['isValid'])return this;const _0x5784b6=this['s']<_0x1b9f82['s']?this['s']:_0x1b9f82['s'],_0x4c7e2c=this['e']>_0x1b9f82['e']?this['e']:_0x1b9f82['e'];return Interval['fromDateTimes'](_0x5784b6,_0x4c7e2c);}static['merge'](_0x154cd7){const [_0x55a53b,_0x362236]=_0x154cd7['sort']((_0x257ece,_0x18e693)=>_0x257ece['s']-_0x18e693['s'])['reduce'](([_0x18470d,_0x2371f4],_0x3ddcc8)=>_0x2371f4?_0x2371f4['overlaps'](_0x3ddcc8)||_0x2371f4['abutsStart'](_0x3ddcc8)?[_0x18470d,_0x2371f4['union'](_0x3ddcc8)]:[_0x18470d['concat']([_0x2371f4]),_0x3ddcc8]:[_0x18470d,_0x3ddcc8],[[],null]);return _0x362236&&_0x55a53b['push'](_0x362236),_0x55a53b;}static['xor'](_0x4aeec7){let _0x57df46=null,_0x4c1f91=0x0;const _0x36ded9=[],_0x1a1a1b=_0x4aeec7['map'](_0x31446e=>[{'time':_0x31446e['s'],'type':'s'},{'time':_0x31446e['e'],'type':'e'}]),_0x8a93ca=Array['prototype']['concat'](..._0x1a1a1b)['sort']((_0x56c0d6,_0x5c8509)=>_0x56c0d6['time']-_0x5c8509['time']);for(const _0x3499cd of _0x8a93ca)_0x4c1f91+='s'===_0x3499cd['type']?0x1:-0x1,0x1===_0x4c1f91?_0x57df46=_0x3499cd['time']:(_0x57df46&&+_0x57df46!==+_0x3499cd['time']&&_0x36ded9['push'](Interval['fromDateTimes'](_0x57df46,_0x3499cd['time'])),_0x57df46=null);return Interval['merge'](_0x36ded9);}['difference'](..._0x4da790){return Interval['xor']([this]['concat'](_0x4da790))['map'](_0x1839d9=>this['intersection'](_0x1839d9))['filter'](_0x492af0=>_0x492af0&&!_0x492af0['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'](_0xd4b155=DATE_SHORT,_0x1e3978={}){return this['isValid']?Formatter['create'](this['s']['loc']['clone'](_0x1e3978),_0xd4b155)['formatInterval'](this):INVALID$1;}['toISO'](_0x2a71f2){return this['isValid']?this['s']['toISO'](_0x2a71f2)+'/'+this['e']['toISO'](_0x2a71f2):INVALID$1;}['toISODate'](){return this['isValid']?this['s']['toISODate']()+'/'+this['e']['toISODate']():INVALID$1;}['toISOTime'](_0x2480da){return this['isValid']?this['s']['toISOTime'](_0x2480da)+'/'+this['e']['toISOTime'](_0x2480da):INVALID$1;}['toFormat'](_0x591bab,{separator:_0x2e055b='\x20–\x20'}={}){return this['isValid']?''+this['s']['toFormat'](_0x591bab)+_0x2e055b+this['e']['toFormat'](_0x591bab):INVALID$1;}['toDuration'](_0x30bfbc,_0x3fa710){return this['isValid']?this['e']['diff'](this['s'],_0x30bfbc,_0x3fa710):Duration['invalid'](this['invalidReason']);}['mapEndpoints'](_0x580b94){return Interval['fromDateTimes'](_0x580b94(this['s']),_0x580b94(this['e']));}}class Info{static['hasDST'](_0x1e72d4=Settings['defaultZone']){const _0x46dfa3=DateTime['now']()['setZone'](_0x1e72d4)['set']({'month':0xc});return!_0x1e72d4['isUniversal']&&_0x46dfa3['offset']!==_0x46dfa3['set']({'month':0x6})['offset'];}static['isValidIANAZone'](_0x22a17b){return IANAZone['isValidZone'](_0x22a17b);}static['normalizeZone'](_0x2976b4){return normalizeZone(_0x2976b4,Settings['defaultZone']);}static['getStartOfWeek']({locale:_0x3b1eab=null,locObj:_0x8b75a5=null}={}){return(_0x8b75a5||Locale['create'](_0x3b1eab))['getStartOfWeek']();}static['getMinimumDaysInFirstWeek']({locale:_0x2a424e=null,locObj:_0x17e8db=null}={}){return(_0x17e8db||Locale['create'](_0x2a424e))['getMinDaysInFirstWeek']();}static['getWeekendWeekdays']({locale:_0x3fff78=null,locObj:_0x345342=null}={}){return(_0x345342||Locale['create'](_0x3fff78))['getWeekendDays']()['slice']();}static['months'](_0x500989='long',{locale:_0x5ab903=null,numberingSystem:_0x5e1b85=null,locObj:_0x193698=null,outputCalendar:_0x310ac4='gregory'}={}){return(_0x193698||Locale['create'](_0x5ab903,_0x5e1b85,_0x310ac4))['months'](_0x500989);}static['monthsFormat'](_0x34be5a='long',{locale:_0x16f090=null,numberingSystem:_0x43900b=null,locObj:_0x5c588d=null,outputCalendar:_0x3d97a0='gregory'}={}){return(_0x5c588d||Locale['create'](_0x16f090,_0x43900b,_0x3d97a0))['months'](_0x34be5a,!0x0);}static['weekdays'](_0x1b79b0='long',{locale:_0x3fe35a=null,numberingSystem:_0x3a1ae0=null,locObj:_0x2f0861=null}={}){return(_0x2f0861||Locale['create'](_0x3fe35a,_0x3a1ae0,null))['weekdays'](_0x1b79b0);}static['weekdaysFormat'](_0x2b9ac8='long',{locale:_0x292c55=null,numberingSystem:_0x594df1=null,locObj:_0x4ce5d4=null}={}){return(_0x4ce5d4||Locale['create'](_0x292c55,_0x594df1,null))['weekdays'](_0x2b9ac8,!0x0);}static['meridiems']({locale:_0x25cf35=null}={}){return Locale['create'](_0x25cf35)['meridiems']();}static['eras'](_0x7e68ae='short',{locale:_0xb92a41=null}={}){return Locale['create'](_0xb92a41,null,'gregory')['eras'](_0x7e68ae);}static['features'](){return{'relative':hasRelative(),'localeWeek':hasLocaleWeekInfo()};}}function dayDiff(_0x308246,_0xa88e3d){const _0x5d6ad3=_0x1634d4=>_0x1634d4['toUTC'](0x0,{'keepLocalTime':!0x0})['startOf']('day')['valueOf'](),_0x33ef4a=_0x5d6ad3(_0xa88e3d)-_0x5d6ad3(_0x308246);return Math['floor'](Duration['fromMillis'](_0x33ef4a)['as']('days'));}function highOrderDiffs(_0x21fab9,_0x1e3aca,_0x2fa225){const _0x12ae4b=[['years',(_0x507c28,_0x5a2d00)=>_0x5a2d00['year']-_0x507c28['year']],['quarters',(_0x142e3b,_0x3da739)=>_0x3da739['quarter']-_0x142e3b['quarter']+0x4*(_0x3da739['year']-_0x142e3b['year'])],['months',(_0x4bdf05,_0x2bae84)=>_0x2bae84['month']-_0x4bdf05['month']+0xc*(_0x2bae84['year']-_0x4bdf05['year'])],['weeks',(_0x3709cb,_0x5bf210)=>{const _0x53e1c5=dayDiff(_0x3709cb,_0x5bf210);return(_0x53e1c5-_0x53e1c5%0x7)/0x7;}],['days',dayDiff]],_0x13d1ac={},_0x184266=_0x21fab9;let _0xf7cd14,_0x3d881b;for(const [_0x234af1,_0x36fd87]of _0x12ae4b)_0x2fa225['indexOf'](_0x234af1)>=0x0&&(_0xf7cd14=_0x234af1,_0x13d1ac[_0x234af1]=_0x36fd87(_0x21fab9,_0x1e3aca),_0x3d881b=_0x184266['plus'](_0x13d1ac),_0x3d881b>_0x1e3aca?(_0x13d1ac[_0x234af1]--,(_0x21fab9=_0x184266['plus'](_0x13d1ac))>_0x1e3aca&&(_0x3d881b=_0x21fab9,_0x13d1ac[_0x234af1]--,_0x21fab9=_0x184266['plus'](_0x13d1ac))):_0x21fab9=_0x3d881b);return[_0x21fab9,_0x13d1ac,_0x3d881b,_0xf7cd14];}function diff(_0x5823cc,_0x18121c,_0xbaa4c2,_0x130f36){let [_0x8910dc,_0x2cfe6a,_0x70df6b,_0x3d4fce]=highOrderDiffs(_0x5823cc,_0x18121c,_0xbaa4c2);const _0x433efc=_0x18121c-_0x8910dc,_0x38be37=_0xbaa4c2['filter'](_0x21e59b=>['hours','minutes','seconds','milliseconds']['indexOf'](_0x21e59b)>=0x0);0x0===_0x38be37['length']&&(_0x70df6b<_0x18121c&&(_0x70df6b=_0x8910dc['plus']({[_0x3d4fce]:0x1})),_0x70df6b!==_0x8910dc&&(_0x2cfe6a[_0x3d4fce]=(_0x2cfe6a[_0x3d4fce]||0x0)+_0x433efc/(_0x70df6b-_0x8910dc)));const _0x58e6b1=Duration['fromObject'](_0x2cfe6a,_0x130f36);return _0x38be37['length']>0x0?Duration['fromMillis'](_0x433efc,_0x130f36)['shiftTo'](..._0x38be37)['plus'](_0x58e6b1):_0x58e6b1;}const MISSING_FTP='missing\x20Intl.DateTimeFormat.formatToParts\x20support';function intUnit(_0x488158,_0x2d4d16=_0x9aceb3=>_0x9aceb3){return{'regex':_0x488158,'deser':([_0x5d648d])=>_0x2d4d16(parseDigits(_0x5d648d))};}const NBSP=String['fromCharCode'](0xa0),spaceOrNBSP='[\x20'+NBSP+']',spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,'g');function fixListRegex(_0xe66502){return _0xe66502['replace'](/\./g,'\x5c.?')['replace'](spaceOrNBSPRegExp,spaceOrNBSP);}function stripInsensitivities(_0x5d88dc){return _0x5d88dc['replace'](/\./g,'')['replace'](spaceOrNBSPRegExp,'\x20')['toLowerCase']();}function oneOf(_0x1ff0d1,_0x139dfe){return null===_0x1ff0d1?null:{'regex':RegExp(_0x1ff0d1['map'](fixListRegex)['join']('|')),'deser':([_0x2344e2])=>_0x1ff0d1['findIndex'](_0x1ffde0=>stripInsensitivities(_0x2344e2)===stripInsensitivities(_0x1ffde0))+_0x139dfe};}function offset(_0x41d227,_0x11a113){return{'regex':_0x41d227,'deser':([,_0x5bdb2e,_0x1c47d5])=>signedOffset(_0x5bdb2e,_0x1c47d5),'groups':_0x11a113};}function simple(_0x5804e2){return{'regex':_0x5804e2,'deser':([_0x37c5d9])=>_0x37c5d9};}function escapeToken(_0x466671){return _0x466671['replace'](/[\-\[\]{}()*+?.,\\\^$|#\s]/g,'\x5c$&');}function unitForToken(_0x349430,_0x1d4dd6){const _0x439e24=digitRegex(_0x1d4dd6),_0x22f2e4=digitRegex(_0x1d4dd6,'{2}'),_0x445aa5=digitRegex(_0x1d4dd6,'{3}'),_0x1bf9eb=digitRegex(_0x1d4dd6,'{4}'),_0x87d024=digitRegex(_0x1d4dd6,'{6}'),_0x49694f=digitRegex(_0x1d4dd6,'{1,2}'),_0x40689e=digitRegex(_0x1d4dd6,'{1,3}'),_0x302d61=digitRegex(_0x1d4dd6,'{1,6}'),_0x4e2b04=digitRegex(_0x1d4dd6,'{1,9}'),_0x145685=digitRegex(_0x1d4dd6,'{2,4}'),_0x50bf0b=digitRegex(_0x1d4dd6,'{4,6}'),_0x2bb92d=t=>({'regex':RegExp(escapeToken(t['val'])),'deser':([_0x57a370])=>_0x57a370,'literal':!0x0}),_0x37e10a=(t=>{if(_0x349430['literal'])return _0x2bb92d(t);switch(t['val']){case'G':return oneOf(_0x1d4dd6['eras']('short'),0x0);case'GG':return oneOf(_0x1d4dd6['eras']('long'),0x0);case'y':return intUnit(_0x302d61);case'yy':case'kk':return intUnit(_0x145685,untruncateYear);case'yyyy':case'kkkk':return intUnit(_0x1bf9eb);case'yyyyy':return intUnit(_0x50bf0b);case'yyyyyy':return intUnit(_0x87d024);case'M':case'L':case'd':case'H':case'h':case'm':case'q':case's':case'W':return intUnit(_0x49694f);case'MM':case'LL':case'dd':case'HH':case'hh':case'mm':case'qq':case'ss':case'WW':return intUnit(_0x22f2e4);case'MMM':return oneOf(_0x1d4dd6['months']('short',!0x0),0x1);case'MMMM':return oneOf(_0x1d4dd6['months']('long',!0x0),0x1);case'LLL':return oneOf(_0x1d4dd6['months']('short',!0x1),0x1);case'LLLL':return oneOf(_0x1d4dd6['months']('long',!0x1),0x1);case'o':case'S':return intUnit(_0x40689e);case'ooo':case'SSS':return intUnit(_0x445aa5);case'u':return simple(_0x4e2b04);case'uu':return simple(_0x49694f);case'uuu':case'E':case'c':return intUnit(_0x439e24);case'a':return oneOf(_0x1d4dd6['meridiems'](),0x0);case'EEE':return oneOf(_0x1d4dd6['weekdays']('short',!0x1),0x1);case'EEEE':return oneOf(_0x1d4dd6['weekdays']('long',!0x1),0x1);case'ccc':return oneOf(_0x1d4dd6['weekdays']('short',!0x0),0x1);case'cccc':return oneOf(_0x1d4dd6['weekdays']('long',!0x0),0x1);case'Z':case'ZZ':return offset(new RegExp('([+-]'+_0x49694f['source']+')(?::('+_0x22f2e4['source']+'))?'),0x2);case'ZZZ':return offset(new RegExp('([+-]'+_0x49694f['source']+')('+_0x22f2e4['source']+')?'),0x2);case'z':return simple(/[a-z_+-/]{1,256}?/i);case'\x20':return simple(/[^\S\n\r]/);default:return _0x2bb92d(t);}})(_0x349430)||{'invalidReason':MISSING_FTP};return _0x37e10a['token']=_0x349430,_0x37e10a;}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(_0x8bdaff,_0xaa25e4,_0x35303d){const {type:_0xbecb06,value:_0x1c5050}=_0x8bdaff;if('literal'===_0xbecb06){const _0x23970e=/^\s+$/['test'](_0x1c5050);return{'literal':!_0x23970e,'val':_0x23970e?'\x20':_0x1c5050};}const _0x31e519=_0xaa25e4[_0xbecb06];let _0x4ae6aa=_0xbecb06;'hour'===_0xbecb06&&(_0x4ae6aa=null!=_0xaa25e4['hour12']?_0xaa25e4['hour12']?'hour12':'hour24':null!=_0xaa25e4['hourCycle']?'h11'===_0xaa25e4['hourCycle']||'h12'===_0xaa25e4['hourCycle']?'hour12':'hour24':_0x35303d['hour12']?'hour12':'hour24');let _0x36bfee=partTypeStyleToTokenVal[_0x4ae6aa];if('object'==typeof _0x36bfee&&(_0x36bfee=_0x36bfee[_0x31e519]),_0x36bfee)return{'literal':!0x1,'val':_0x36bfee};}function buildRegex(_0x153930){const _0x5bf75b=_0x153930['map'](_0xca04e5=>_0xca04e5['regex'])['reduce']((_0x256649,_0x13064c)=>_0x256649+'('+_0x13064c['source']+')','');return['^'+_0x5bf75b+'$',_0x153930];}function match(_0x3df25e,_0x5db295,_0x30be7b){const _0xb249ca=_0x3df25e['match'](_0x5db295);if(_0xb249ca){const _0x14cb41={};let _0x138249=0x1;for(const _0x2a1641 in _0x30be7b)if(hasOwnProperty(_0x30be7b,_0x2a1641)){const _0x5baf08=_0x30be7b[_0x2a1641],_0xd2970c=_0x5baf08['groups']?_0x5baf08['groups']+0x1:0x1;!_0x5baf08['literal']&&_0x5baf08['token']&&(_0x14cb41[_0x5baf08['token']['val'][0x0]]=_0x5baf08['deser'](_0xb249ca['slice'](_0x138249,_0x138249+_0xd2970c))),_0x138249+=_0xd2970c;}return[_0xb249ca,_0x14cb41];}return[_0xb249ca,{}];}function dateTimeFromMatches(_0x399695){let _0x45f120,_0x30d89d=null;isUndefined(_0x399695['z'])||(_0x30d89d=IANAZone['create'](_0x399695['z'])),isUndefined(_0x399695['Z'])||(_0x30d89d||(_0x30d89d=new FixedOffsetZone(_0x399695['Z'])),_0x45f120=_0x399695['Z']),isUndefined(_0x399695['q'])||(_0x399695['M']=0x3*(_0x399695['q']-0x1)+0x1),isUndefined(_0x399695['h'])||(_0x399695['h']<0xc&&0x1===_0x399695['a']?_0x399695['h']+=0xc:0xc===_0x399695['h']&&0x0===_0x399695['a']&&(_0x399695['h']=0x0)),0x0===_0x399695['G']&&_0x399695['y']&&(_0x399695['y']=-_0x399695['y']),isUndefined(_0x399695['u'])||(_0x399695['S']=parseMillis(_0x399695['u']));const _0xe26f46=Object['keys'](_0x399695)['reduce']((_0x230fcb,_0x13931a)=>{const _0x65f811=(_0x2070e8=>{switch(_0x2070e8){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;}})(_0x13931a);return _0x65f811&&(_0x230fcb[_0x65f811]=_0x399695[_0x13931a]),_0x230fcb;},{});return[_0xe26f46,_0x30d89d,_0x45f120];}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime['fromMillis'](0x16a2e5618e3)),dummyDateTimeCache;}function maybeExpandMacroToken(_0x52d5ec,_0x73b256){if(_0x52d5ec['literal'])return _0x52d5ec;const _0x377dda=formatOptsToTokens(Formatter['macroTokenToFormatOpts'](_0x52d5ec['val']),_0x73b256);return null==_0x377dda||_0x377dda['includes'](void 0x0)?_0x52d5ec:_0x377dda;}function expandMacroTokens(_0x1b880b,_0x1022f1){return Array['prototype']['concat'](..._0x1b880b['map'](t=>maybeExpandMacroToken(t,_0x1022f1)));}class TokenParser{constructor(_0x2848e8,_0x46ce52){if(this['locale']=_0x2848e8,this['format']=_0x46ce52,this['tokens']=expandMacroTokens(Formatter['parseFormat'](_0x46ce52),_0x2848e8),this['units']=this['tokens']['map'](t=>unitForToken(t,_0x2848e8)),this['disqualifyingUnit']=this['units']['find'](t=>t['invalidReason']),!this['disqualifyingUnit']){const [_0x107bbc,_0x20d022]=buildRegex(this['units']);this['regex']=RegExp(_0x107bbc,'i'),this['handlers']=_0x20d022;}}['explainFromTokens'](_0x62afa8){if(this['isValid']){const [_0x2a4dba,_0x46a69a]=match(_0x62afa8,this['regex'],this['handlers']),[_0xd7cd6c,_0x5919f8,_0x348e26]=_0x46a69a?dateTimeFromMatches(_0x46a69a):[null,null,void 0x0];if(hasOwnProperty(_0x46a69a,'a')&&hasOwnProperty(_0x46a69a,'H'))throw new ConflictingSpecificationError('Can\x27t\x20include\x20meridiem\x20when\x20specifying\x2024-hour\x20format');return{'input':_0x62afa8,'tokens':this['tokens'],'regex':this['regex'],'rawMatches':_0x2a4dba,'matches':_0x46a69a,'result':_0xd7cd6c,'zone':_0x5919f8,'specificOffset':_0x348e26};}return{'input':_0x62afa8,'tokens':this['tokens'],'invalidReason':this['invalidReason']};}get['isValid'](){return!this['disqualifyingUnit'];}get['invalidReason'](){return this['disqualifyingUnit']?this['disqualifyingUnit']['invalidReason']:null;}}function explainFromTokens(_0x140fa3,_0x14f065,_0x264a2b){return new TokenParser(_0x140fa3,_0x264a2b)['explainFromTokens'](_0x14f065);}function parseFromTokens(_0x3ba453,_0x3482b3,_0x26dc09){const {result:_0x5c9caa,zone:_0x1e45d4,specificOffset:_0x5c95f1,invalidReason:_0x2d5a62}=explainFromTokens(_0x3ba453,_0x3482b3,_0x26dc09);return[_0x5c9caa,_0x1e45d4,_0x5c95f1,_0x2d5a62];}function formatOptsToTokens(_0x5b2f99,_0x5001e8){if(!_0x5b2f99)return null;const _0x497fc7=Formatter['create'](_0x5001e8,_0x5b2f99)['dtFormatter'](getDummyDateTime()),_0x5ca355=_0x497fc7['formatToParts'](),_0x162cd6=_0x497fc7['resolvedOptions']();return _0x5ca355['map'](_0x3dd8a5=>tokenForPart(_0x3dd8a5,_0x5b2f99,_0x162cd6));}const INVALID='Invalid\x20DateTime',MAX_DATE=0x1eb208c2dc0000;function unsupportedZone(_0x29bd6e){return new Invalid('unsupported\x20zone','the\x20zone\x20\x22'+_0x29bd6e['name']+'\x22\x20is\x20not\x20supported');}function possiblyCachedWeekData(_0x49340d){return null===_0x49340d['weekData']&&(_0x49340d['weekData']=gregorianToWeek(_0x49340d['c'])),_0x49340d['weekData'];}function possiblyCachedLocalWeekData(_0x499aa1){return null===_0x499aa1['localWeekData']&&(_0x499aa1['localWeekData']=gregorianToWeek(_0x499aa1['c'],_0x499aa1['loc']['getMinDaysInFirstWeek'](),_0x499aa1['loc']['getStartOfWeek']())),_0x499aa1['localWeekData'];}function clone(_0x11f768,_0x1b8501){const _0x5ce742={'ts':_0x11f768['ts'],'zone':_0x11f768['zone'],'c':_0x11f768['c'],'o':_0x11f768['o'],'loc':_0x11f768['loc'],'invalid':_0x11f768['invalid']};return new DateTime({..._0x5ce742,..._0x1b8501,'old':_0x5ce742});}function fixOffset(_0x565954,_0x374b32,_0x251f9a){let _0x29a714=_0x565954-0x3c*_0x374b32*0x3e8;const _0xd992a5=_0x251f9a['offset'](_0x29a714);if(_0x374b32===_0xd992a5)return[_0x29a714,_0x374b32];_0x29a714-=0x3c*(_0xd992a5-_0x374b32)*0x3e8;const _0xcce1a3=_0x251f9a['offset'](_0x29a714);return _0xd992a5===_0xcce1a3?[_0x29a714,_0xd992a5]:[_0x565954-0x3c*Math['min'](_0xd992a5,_0xcce1a3)*0x3e8,Math['max'](_0xd992a5,_0xcce1a3)];}function tsToObj(_0x5bee81,_0x26e198){const _0x2cb857=new Date(_0x5bee81+=0x3c*_0x26e198*0x3e8);return{'year':_0x2cb857['getUTCFullYear'](),'month':_0x2cb857['getUTCMonth']()+0x1,'day':_0x2cb857['getUTCDate'](),'hour':_0x2cb857['getUTCHours'](),'minute':_0x2cb857['getUTCMinutes'](),'second':_0x2cb857['getUTCSeconds'](),'millisecond':_0x2cb857['getUTCMilliseconds']()};}function objToTS(_0x813184,_0x2c7a2d,_0x4abef5){return fixOffset(objToLocalTS(_0x813184),_0x2c7a2d,_0x4abef5);}function adjustTime(_0x1bdf71,_0x3d22ff){const _0x3686b3=_0x1bdf71['o'],_0x4fa117=_0x1bdf71['c']['year']+Math['trunc'](_0x3d22ff['years']),_0x533f78=_0x1bdf71['c']['month']+Math['trunc'](_0x3d22ff['months'])+0x3*Math['trunc'](_0x3d22ff['quarters']),_0x2f1303={..._0x1bdf71['c'],'year':_0x4fa117,'month':_0x533f78,'day':Math['min'](_0x1bdf71['c']['day'],daysInMonth(_0x4fa117,_0x533f78))+Math['trunc'](_0x3d22ff['days'])+0x7*Math['trunc'](_0x3d22ff['weeks'])},_0x31b858=Duration['fromObject']({'years':_0x3d22ff['years']-Math['trunc'](_0x3d22ff['years']),'quarters':_0x3d22ff['quarters']-Math['trunc'](_0x3d22ff['quarters']),'months':_0x3d22ff['months']-Math['trunc'](_0x3d22ff['months']),'weeks':_0x3d22ff['weeks']-Math['trunc'](_0x3d22ff['weeks']),'days':_0x3d22ff['days']-Math['trunc'](_0x3d22ff['days']),'hours':_0x3d22ff['hours'],'minutes':_0x3d22ff['minutes'],'seconds':_0x3d22ff['seconds'],'milliseconds':_0x3d22ff['milliseconds']})['as']('milliseconds'),_0x5c1c62=objToLocalTS(_0x2f1303);let [_0x215ca2,_0x501417]=fixOffset(_0x5c1c62,_0x3686b3,_0x1bdf71['zone']);return 0x0!==_0x31b858&&(_0x215ca2+=_0x31b858,_0x501417=_0x1bdf71['zone']['offset'](_0x215ca2)),{'ts':_0x215ca2,'o':_0x501417};}function parseDataToDateTime(_0x2e56d7,_0x19c9c9,_0x5d1342,_0x10c80c,_0x455d08,_0x25eebd){const {setZone:_0x896c55,zone:_0x261a3a}=_0x5d1342;if(_0x2e56d7&&0x0!==Object['keys'](_0x2e56d7)['length']||_0x19c9c9){const _0x1ef4c9=_0x19c9c9||_0x261a3a,_0x35ed82=DateTime['fromObject'](_0x2e56d7,{..._0x5d1342,'zone':_0x1ef4c9,'specificOffset':_0x25eebd});return _0x896c55?_0x35ed82:_0x35ed82['setZone'](_0x261a3a);}return DateTime['invalid'](new Invalid('unparsable','the\x20input\x20\x22'+_0x455d08+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20'+_0x10c80c));}function toTechFormat(_0x5f4d2a,_0x38e3ba,_0x2a8913=!0x0){return _0x5f4d2a['isValid']?Formatter['create'](Locale['create']('en-US'),{'allowZ':_0x2a8913,'forceSimple':!0x0})['formatDateTimeFromString'](_0x5f4d2a,_0x38e3ba):null;}function toISODate(_0x519003,_0x306cfc){const _0x516f7a=_0x519003['c']['year']>0x270f||_0x519003['c']['year']<0x0;let _0x454a0f='';return _0x516f7a&&_0x519003['c']['year']>=0x0&&(_0x454a0f+='+'),_0x454a0f+=padStart(_0x519003['c']['year'],_0x516f7a?0x6:0x4),_0x306cfc?(_0x454a0f+='-',_0x454a0f+=padStart(_0x519003['c']['month']),_0x454a0f+='-',_0x454a0f+=padStart(_0x519003['c']['day'])):(_0x454a0f+=padStart(_0x519003['c']['month']),_0x454a0f+=padStart(_0x519003['c']['day'])),_0x454a0f;}function toISOTime(_0x5bdd7a,_0x46a9db,_0x5c4894,_0x2a397f,_0x3109bf,_0x6d2862){let _0x618134=padStart(_0x5bdd7a['c']['hour']);return _0x46a9db?(_0x618134+=':',_0x618134+=padStart(_0x5bdd7a['c']['minute']),0x0===_0x5bdd7a['c']['millisecond']&&0x0===_0x5bdd7a['c']['second']&&_0x5c4894||(_0x618134+=':')):_0x618134+=padStart(_0x5bdd7a['c']['minute']),0x0===_0x5bdd7a['c']['millisecond']&&0x0===_0x5bdd7a['c']['second']&&_0x5c4894||(_0x618134+=padStart(_0x5bdd7a['c']['second']),0x0===_0x5bdd7a['c']['millisecond']&&_0x2a397f||(_0x618134+='.',_0x618134+=padStart(_0x5bdd7a['c']['millisecond'],0x3))),_0x3109bf&&(_0x5bdd7a['isOffsetFixed']&&0x0===_0x5bdd7a['offset']&&!_0x6d2862?_0x618134+='Z':_0x5bdd7a['o']<0x0?(_0x618134+='-',_0x618134+=padStart(Math['trunc'](-_0x5bdd7a['o']/0x3c)),_0x618134+=':',_0x618134+=padStart(Math['trunc'](-_0x5bdd7a['o']%0x3c))):(_0x618134+='+',_0x618134+=padStart(Math['trunc'](_0x5bdd7a['o']/0x3c)),_0x618134+=':',_0x618134+=padStart(Math['trunc'](_0x5bdd7a['o']%0x3c)))),_0x6d2862&&(_0x618134+='['+_0x5bdd7a['zone']['ianaName']+']'),_0x618134;}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(_0x473f97){const _0x54a516={'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'}[_0x473f97['toLowerCase']()];if(!_0x54a516)throw new InvalidUnitError(_0x473f97);return _0x54a516;}function normalizeUnitWithLocalWeeks(_0x2d9e67){switch(_0x2d9e67['toLowerCase']()){case'localweekday':case'localweekdays':return'localWeekday';case'localweeknumber':case'localweeknumbers':return'localWeekNumber';case'localweekyear':case'localweekyears':return'localWeekYear';default:return normalizeUnit(_0x2d9e67);}}function guessOffsetForZone(_0x382a5b){if(void 0x0===zoneOffsetTs&&(zoneOffsetTs=Settings['now']()),'iana'!==_0x382a5b['type'])return _0x382a5b['offset'](zoneOffsetTs);const _0x3f2e7d=_0x382a5b['name'];let _0x234d9a=zoneOffsetGuessCache['get'](_0x3f2e7d);return void 0x0===_0x234d9a&&(_0x234d9a=_0x382a5b['offset'](zoneOffsetTs),zoneOffsetGuessCache['set'](_0x3f2e7d,_0x234d9a)),_0x234d9a;}function quickDT(_0x3ddef2,_0x3c7bac){const _0x46582b=normalizeZone(_0x3c7bac['zone'],Settings['defaultZone']);if(!_0x46582b['isValid'])return DateTime['invalid'](unsupportedZone(_0x46582b));const _0x384c05=Locale['fromObject'](_0x3c7bac);let _0x59d5f4,_0x470301;if(isUndefined(_0x3ddef2['year']))_0x59d5f4=Settings['now']();else{for(const _0x2ae67b of orderedUnits)isUndefined(_0x3ddef2[_0x2ae67b])&&(_0x3ddef2[_0x2ae67b]=defaultUnitValues[_0x2ae67b]);const _0x331892=hasInvalidGregorianData(_0x3ddef2)||hasInvalidTimeData(_0x3ddef2);if(_0x331892)return DateTime['invalid'](_0x331892);const _0x5dd529=guessOffsetForZone(_0x46582b);[_0x59d5f4,_0x470301]=objToTS(_0x3ddef2,_0x5dd529,_0x46582b);}return new DateTime({'ts':_0x59d5f4,'zone':_0x46582b,'loc':_0x384c05,'o':_0x470301});}function diffRelative(_0x38e4ff,_0x43ff94,_0x1b995d){const _0x1022ec=!!isUndefined(_0x1b995d['round'])||_0x1b995d['round'],_0x290357=(_0x595110,_0x5eab23)=>{return _0x595110=roundTo(_0x595110,_0x1022ec||_0x1b995d['calendary']?0x0:0x2,!0x0),_0x43ff94['loc']['clone'](_0x1b995d)['relFormatter'](_0x1b995d)['format'](_0x595110,_0x5eab23);},_0x524878=_0xae4a59=>_0x1b995d['calendary']?_0x43ff94['hasSame'](_0x38e4ff,_0xae4a59)?0x0:_0x43ff94['startOf'](_0xae4a59)['diff'](_0x38e4ff['startOf'](_0xae4a59),_0xae4a59)['get'](_0xae4a59):_0x43ff94['diff'](_0x38e4ff,_0xae4a59)['get'](_0xae4a59);if(_0x1b995d['unit'])return _0x290357(_0x524878(_0x1b995d['unit']),_0x1b995d['unit']);for(const _0x55f367 of _0x1b995d['units']){const _0x1f638b=_0x524878(_0x55f367);if(Math['abs'](_0x1f638b)>=0x1)return _0x290357(_0x1f638b,_0x55f367);}return _0x290357(_0x38e4ff>_0x43ff94?-0x0:0x0,_0x1b995d['units'][_0x1b995d['units']['length']-0x1]);}function lastOpts(_0x816301){let _0x114a4c,_0x9f77c9={};return _0x816301['length']>0x0&&'object'==typeof _0x816301[_0x816301['length']-0x1]?(_0x9f77c9=_0x816301[_0x816301['length']-0x1],_0x114a4c=Array['from'](_0x816301)['slice'](0x0,_0x816301['length']-0x1)):_0x114a4c=Array['from'](_0x816301),[_0x9f77c9,_0x114a4c];}let zoneOffsetTs;const zoneOffsetGuessCache=new Map();class DateTime{constructor(_0x585df6){const _0x3942ed=_0x585df6['zone']||Settings['defaultZone'];let _0x23995f=_0x585df6['invalid']||(Number['isNaN'](_0x585df6['ts'])?new Invalid('invalid\x20input'):null)||(_0x3942ed['isValid']?null:unsupportedZone(_0x3942ed));this['ts']=isUndefined(_0x585df6['ts'])?Settings['now']():_0x585df6['ts'];let _0x3b6b80=null,_0x71af9a=null;if(!_0x23995f){if(_0x585df6['old']&&_0x585df6['old']['ts']===this['ts']&&_0x585df6['old']['zone']['equals'](_0x3942ed))[_0x3b6b80,_0x71af9a]=[_0x585df6['old']['c'],_0x585df6['old']['o']];else{const _0x1d41ab=isNumber(_0x585df6['o'])&&!_0x585df6['old']?_0x585df6['o']:_0x3942ed['offset'](this['ts']);_0x3b6b80=tsToObj(this['ts'],_0x1d41ab),_0x23995f=Number['isNaN'](_0x3b6b80['year'])?new Invalid('invalid\x20input'):null,_0x3b6b80=_0x23995f?null:_0x3b6b80,_0x71af9a=_0x23995f?null:_0x1d41ab;}}this['_zone']=_0x3942ed,this['loc']=_0x585df6['loc']||Locale['create'](),this['invalid']=_0x23995f,this['weekData']=null,this['localWeekData']=null,this['c']=_0x3b6b80,this['o']=_0x71af9a,this['isLuxonDateTime']=!0x0;}static['now'](){return new DateTime({});}static['local'](){const [_0x461cd4,_0x3f092e]=lastOpts(arguments),[_0xd90a41,_0x2beb71,_0x2219d1,_0x1f7360,_0x1f044c,_0x49415f,_0x45285c]=_0x3f092e;return quickDT({'year':_0xd90a41,'month':_0x2beb71,'day':_0x2219d1,'hour':_0x1f7360,'minute':_0x1f044c,'second':_0x49415f,'millisecond':_0x45285c},_0x461cd4);}static['utc'](){const [_0x455074,_0x2e593d]=lastOpts(arguments),[_0x415c2b,_0x4c7e3f,_0x193a14,_0x553cb6,_0x7e147f,_0x1a4320,_0x3129b9]=_0x2e593d;return _0x455074['zone']=FixedOffsetZone['utcInstance'],quickDT({'year':_0x415c2b,'month':_0x4c7e3f,'day':_0x193a14,'hour':_0x553cb6,'minute':_0x7e147f,'second':_0x1a4320,'millisecond':_0x3129b9},_0x455074);}static['fromJSDate'](_0x517157,_0x1e79e7={}){const _0x45dc8c=isDate(_0x517157)?_0x517157['valueOf']():NaN;if(Number['isNaN'](_0x45dc8c))return DateTime['invalid']('invalid\x20input');const _0x4169fc=normalizeZone(_0x1e79e7['zone'],Settings['defaultZone']);return _0x4169fc['isValid']?new DateTime({'ts':_0x45dc8c,'zone':_0x4169fc,'loc':Locale['fromObject'](_0x1e79e7)}):DateTime['invalid'](unsupportedZone(_0x4169fc));}static['fromMillis'](_0x69f6fe,_0x300ddd={}){if(isNumber(_0x69f6fe))return _0x69f6fe<-MAX_DATE||_0x69f6fe>MAX_DATE?DateTime['invalid']('Timestamp\x20out\x20of\x20range'):new DateTime({'ts':_0x69f6fe,'zone':normalizeZone(_0x300ddd['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x300ddd)});throw new InvalidArgumentError('fromMillis\x20requires\x20a\x20numerical\x20input,\x20but\x20received\x20a\x20'+typeof _0x69f6fe+'\x20with\x20value\x20'+_0x69f6fe);}static['fromSeconds'](_0x4a0fc0,_0x347485={}){if(isNumber(_0x4a0fc0))return new DateTime({'ts':0x3e8*_0x4a0fc0,'zone':normalizeZone(_0x347485['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x347485)});throw new InvalidArgumentError('fromSeconds\x20requires\x20a\x20numerical\x20input');}static['fromObject'](_0x1ac7e8,_0x404d9f={}){_0x1ac7e8=_0x1ac7e8||{};const _0x40caae=normalizeZone(_0x404d9f['zone'],Settings['defaultZone']);if(!_0x40caae['isValid'])return DateTime['invalid'](unsupportedZone(_0x40caae));const _0x5a086b=Locale['fromObject'](_0x404d9f),_0x3e5cec=normalizeObject(_0x1ac7e8,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x35bde0,startOfWeek:_0xa5af6f}=usesLocalWeekValues(_0x3e5cec,_0x5a086b),_0x1ed595=Settings['now'](),_0x381c2e=isUndefined(_0x404d9f['specificOffset'])?_0x40caae['offset'](_0x1ed595):_0x404d9f['specificOffset'],_0x3cad61=!isUndefined(_0x3e5cec['ordinal']),_0x1998f6=!isUndefined(_0x3e5cec['year']),_0x4f32ff=!isUndefined(_0x3e5cec['month'])||!isUndefined(_0x3e5cec['day']),_0x262f3a=_0x1998f6||_0x4f32ff,_0x22ae61=_0x3e5cec['weekYear']||_0x3e5cec['weekNumber'];if((_0x262f3a||_0x3cad61)&&_0x22ae61)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x4f32ff&&_0x3cad61)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');const _0x3ce219=_0x22ae61||_0x3e5cec['weekday']&&!_0x262f3a;let _0x48461,_0x3bc848,_0x4ef92e=tsToObj(_0x1ed595,_0x381c2e);_0x3ce219?(_0x48461=orderedWeekUnits,_0x3bc848=defaultWeekUnitValues,_0x4ef92e=gregorianToWeek(_0x4ef92e,_0x35bde0,_0xa5af6f)):_0x3cad61?(_0x48461=orderedOrdinalUnits,_0x3bc848=defaultOrdinalUnitValues,_0x4ef92e=gregorianToOrdinal(_0x4ef92e)):(_0x48461=orderedUnits,_0x3bc848=defaultUnitValues);let _0x21847c=!0x1;for(const _0x245966 of _0x48461){isUndefined(_0x3e5cec[_0x245966])?_0x3e5cec[_0x245966]=_0x21847c?_0x3bc848[_0x245966]:_0x4ef92e[_0x245966]:_0x21847c=!0x0;}const _0x41b00f=(_0x3ce219?hasInvalidWeekData(_0x3e5cec,_0x35bde0,_0xa5af6f):_0x3cad61?hasInvalidOrdinalData(_0x3e5cec):hasInvalidGregorianData(_0x3e5cec))||hasInvalidTimeData(_0x3e5cec);if(_0x41b00f)return DateTime['invalid'](_0x41b00f);const _0x16453c=_0x3ce219?weekToGregorian(_0x3e5cec,_0x35bde0,_0xa5af6f):_0x3cad61?ordinalToGregorian(_0x3e5cec):_0x3e5cec,[_0x1938d8,_0x7fe39f]=objToTS(_0x16453c,_0x381c2e,_0x40caae),_0x326dae=new DateTime({'ts':_0x1938d8,'zone':_0x40caae,'o':_0x7fe39f,'loc':_0x5a086b});return _0x3e5cec['weekday']&&_0x262f3a&&_0x1ac7e8['weekday']!==_0x326dae['weekday']?DateTime['invalid']('mismatched\x20weekday','you\x20can\x27t\x20specify\x20both\x20a\x20weekday\x20of\x20'+_0x3e5cec['weekday']+'\x20and\x20a\x20date\x20of\x20'+_0x326dae['toISO']()):_0x326dae['isValid']?_0x326dae:DateTime['invalid'](_0x326dae['invalid']);}static['fromISO'](_0x3efad0,_0x6476d8={}){const [_0x7159f0,_0x23f410]=parseISODate(_0x3efad0);return parseDataToDateTime(_0x7159f0,_0x23f410,_0x6476d8,'ISO\x208601',_0x3efad0);}static['fromRFC2822'](_0x59dace,_0x5651f7={}){const [_0x37371b,_0x5c29f1]=parseRFC2822Date(_0x59dace);return parseDataToDateTime(_0x37371b,_0x5c29f1,_0x5651f7,'RFC\x202822',_0x59dace);}static['fromHTTP'](_0x2975f4,_0xa2810b={}){const [_0x5c4ffd,_0x13b3dc]=parseHTTPDate(_0x2975f4);return parseDataToDateTime(_0x5c4ffd,_0x13b3dc,_0xa2810b,'HTTP',_0xa2810b);}static['fromFormat'](_0x40e788,_0x915f70,_0xf6006c={}){if(isUndefined(_0x40e788)||isUndefined(_0x915f70))throw new InvalidArgumentError('fromFormat\x20requires\x20an\x20input\x20string\x20and\x20a\x20format');const {locale:_0x1435ea=null,numberingSystem:_0x1a5cf0=null}=_0xf6006c,_0x4a21a2=Locale['fromOpts']({'locale':_0x1435ea,'numberingSystem':_0x1a5cf0,'defaultToEN':!0x0}),[_0x53a60a,_0x5eada4,_0x58ec5f,_0x44ea60]=parseFromTokens(_0x4a21a2,_0x40e788,_0x915f70);return _0x44ea60?DateTime['invalid'](_0x44ea60):parseDataToDateTime(_0x53a60a,_0x5eada4,_0xf6006c,'format\x20'+_0x915f70,_0x40e788,_0x58ec5f);}static['fromString'](_0x48a555,_0x1fcebe,_0x44f75d={}){return DateTime['fromFormat'](_0x48a555,_0x1fcebe,_0x44f75d);}static['fromSQL'](_0x2a45db,_0x4a65b5={}){const [_0x5f1f91,_0x1c0d70]=parseSQL(_0x2a45db);return parseDataToDateTime(_0x5f1f91,_0x1c0d70,_0x4a65b5,'SQL',_0x2a45db);}static['invalid'](_0x1abaab,_0x1d6252=null){if(!_0x1abaab)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20DateTime\x20is\x20invalid');const _0x5e54b8=_0x1abaab instanceof Invalid?_0x1abaab:new Invalid(_0x1abaab,_0x1d6252);if(Settings['throwOnInvalid'])throw new InvalidDateTimeError(_0x5e54b8);return new DateTime({'invalid':_0x5e54b8});}static['isDateTime'](_0x45eab1){return _0x45eab1&&_0x45eab1['isLuxonDateTime']||!0x1;}static['parseFormatForOpts'](_0x4510d6,_0x451743={}){const _0x3b54f1=formatOptsToTokens(_0x4510d6,Locale['fromObject'](_0x451743));return _0x3b54f1?_0x3b54f1['map'](t=>t?t['val']:null)['join'](''):null;}static['expandFormat'](_0x5e137a,_0x3cd5d9={}){return expandMacroTokens(Formatter['parseFormat'](_0x5e137a),Locale['fromObject'](_0x3cd5d9))['map'](t=>t['val'])['join']('');}static['resetCache'](){zoneOffsetTs=void 0x0,zoneOffsetGuessCache['clear']();}['get'](_0x36e15a){return this[_0x36e15a];}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 _0x465b62=0x5265c00,_0x301405=0xea60,_0x2cb453=objToLocalTS(this['c']),_0x24f43f=this['zone']['offset'](_0x2cb453-_0x465b62),_0x4f8b49=this['zone']['offset'](_0x2cb453+_0x465b62),_0x57f6c2=this['zone']['offset'](_0x2cb453-_0x24f43f*_0x301405),_0x5bd16c=this['zone']['offset'](_0x2cb453-_0x4f8b49*_0x301405);if(_0x57f6c2===_0x5bd16c)return[this];const _0x3c6348=_0x2cb453-_0x57f6c2*_0x301405,_0x4f35a2=_0x2cb453-_0x5bd16c*_0x301405,_0x17f2c7=tsToObj(_0x3c6348,_0x57f6c2),_0x523c7b=tsToObj(_0x4f35a2,_0x5bd16c);return _0x17f2c7['hour']===_0x523c7b['hour']&&_0x17f2c7['minute']===_0x523c7b['minute']&&_0x17f2c7['second']===_0x523c7b['second']&&_0x17f2c7['millisecond']===_0x523c7b['millisecond']?[clone(this,{'ts':_0x3c6348}),clone(this,{'ts':_0x4f35a2})]:[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'](_0x3fd92f={}){const {locale:_0x4193bb,numberingSystem:_0x358140,calendar:_0x5afa3d}=Formatter['create'](this['loc']['clone'](_0x3fd92f),_0x3fd92f)['resolvedOptions'](this);return{'locale':_0x4193bb,'numberingSystem':_0x358140,'outputCalendar':_0x5afa3d};}['toUTC'](_0x4412b5=0x0,_0x9677c5={}){return this['setZone'](FixedOffsetZone['instance'](_0x4412b5),_0x9677c5);}['toLocal'](){return this['setZone'](Settings['defaultZone']);}['setZone'](_0xddec9d,{keepLocalTime:_0x6ab2cc=!0x1,keepCalendarTime:_0x1a9fa2=!0x1}={}){if((_0xddec9d=normalizeZone(_0xddec9d,Settings['defaultZone']))['equals'](this['zone']))return this;if(_0xddec9d['isValid']){let _0x4dd2f3=this['ts'];if(_0x6ab2cc||_0x1a9fa2){const _0x45806c=_0xddec9d['offset'](this['ts']),_0x12fe1c=this['toObject']();[_0x4dd2f3]=objToTS(_0x12fe1c,_0x45806c,_0xddec9d);}return clone(this,{'ts':_0x4dd2f3,'zone':_0xddec9d});}return DateTime['invalid'](unsupportedZone(_0xddec9d));}['reconfigure']({locale:_0x1bfbd4,numberingSystem:_0x50e2e,outputCalendar:_0xd1a7db}={}){return clone(this,{'loc':this['loc']['clone']({'locale':_0x1bfbd4,'numberingSystem':_0x50e2e,'outputCalendar':_0xd1a7db})});}['setLocale'](_0x5a7338){return this['reconfigure']({'locale':_0x5a7338});}['set'](_0x50098c){if(!this['isValid'])return this;const _0x34985d=normalizeObject(_0x50098c,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x370b45,startOfWeek:_0x2a5bcf}=usesLocalWeekValues(_0x34985d,this['loc']),_0x1cf006=!isUndefined(_0x34985d['weekYear'])||!isUndefined(_0x34985d['weekNumber'])||!isUndefined(_0x34985d['weekday']),_0x105bd2=!isUndefined(_0x34985d['ordinal']),_0x44509a=!isUndefined(_0x34985d['year']),_0x5a2a16=!isUndefined(_0x34985d['month'])||!isUndefined(_0x34985d['day']),_0x48ffe1=_0x44509a||_0x5a2a16,_0xa78bc8=_0x34985d['weekYear']||_0x34985d['weekNumber'];if((_0x48ffe1||_0x105bd2)&&_0xa78bc8)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x5a2a16&&_0x105bd2)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');let _0x412bdf;_0x1cf006?_0x412bdf=weekToGregorian({...gregorianToWeek(this['c'],_0x370b45,_0x2a5bcf),..._0x34985d},_0x370b45,_0x2a5bcf):isUndefined(_0x34985d['ordinal'])?(_0x412bdf={...this['toObject'](),..._0x34985d},isUndefined(_0x34985d['day'])&&(_0x412bdf['day']=Math['min'](daysInMonth(_0x412bdf['year'],_0x412bdf['month']),_0x412bdf['day']))):_0x412bdf=ordinalToGregorian({...gregorianToOrdinal(this['c']),..._0x34985d});const [_0x574c5e,_0x1b2bb9]=objToTS(_0x412bdf,this['o'],this['zone']);return clone(this,{'ts':_0x574c5e,'o':_0x1b2bb9});}['plus'](_0x4e4d3a){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x4e4d3a)));}['minus'](_0x35bae4){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x35bae4)['negate']()));}['startOf'](_0x37960d,{useLocaleWeeks:_0x13458c=!0x1}={}){if(!this['isValid'])return this;const _0x2acfb8={},_0x58518e=Duration['normalizeUnit'](_0x37960d);switch(_0x58518e){case'years':_0x2acfb8['month']=0x1;case'quarters':case'months':_0x2acfb8['day']=0x1;case'weeks':case'days':_0x2acfb8['hour']=0x0;case'hours':_0x2acfb8['minute']=0x0;case'minutes':_0x2acfb8['second']=0x0;case'seconds':_0x2acfb8['millisecond']=0x0;}if('weeks'===_0x58518e){if(_0x13458c){const _0x5da17a=this['loc']['getStartOfWeek'](),{weekday:_0x3de30b}=this;_0x3de30b<_0x5da17a&&(_0x2acfb8['weekNumber']=this['weekNumber']-0x1),_0x2acfb8['weekday']=_0x5da17a;}else _0x2acfb8['weekday']=0x1;}if('quarters'===_0x58518e){const _0x117552=Math['ceil'](this['month']/0x3);_0x2acfb8['month']=0x3*(_0x117552-0x1)+0x1;}return this['set'](_0x2acfb8);}['endOf'](_0x282210,_0x1e1518){return this['isValid']?this['plus']({[_0x282210]:0x1})['startOf'](_0x282210,_0x1e1518)['minus'](0x1):this;}['toFormat'](_0x1c93ec,_0x50469c={}){return this['isValid']?Formatter['create'](this['loc']['redefaultToEN'](_0x50469c))['formatDateTimeFromString'](this,_0x1c93ec):INVALID;}['toLocaleString'](_0x40ff07=DATE_SHORT,_0x28bf1a={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x28bf1a),_0x40ff07)['formatDateTime'](this):INVALID;}['toLocaleParts'](_0x491ac6={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x491ac6),_0x491ac6)['formatDateTimeParts'](this):[];}['toISO']({format:_0x1a52ef='extended',suppressSeconds:_0xc248c6=!0x1,suppressMilliseconds:_0x1f7322=!0x1,includeOffset:_0x39ba6a=!0x0,extendedZone:_0x55c226=!0x1}={}){if(!this['isValid'])return null;const _0x55fa83='extended'===_0x1a52ef;let _0x9f05bb=toISODate(this,_0x55fa83);return _0x9f05bb+='T',_0x9f05bb+=toISOTime(this,_0x55fa83,_0xc248c6,_0x1f7322,_0x39ba6a,_0x55c226),_0x9f05bb;}['toISODate']({format:_0x3e5953='extended'}={}){return this['isValid']?toISODate(this,'extended'===_0x3e5953):null;}['toISOWeekDate'](){return toTechFormat(this,'kkkk-\x27W\x27WW-c');}['toISOTime']({suppressMilliseconds:_0x4de158=!0x1,suppressSeconds:_0x26cf0c=!0x1,includeOffset:_0x3294d5=!0x0,includePrefix:_0x172429=!0x1,extendedZone:_0x3176a6=!0x1,format:_0x4813d8='extended'}={}){if(!this['isValid'])return null;return(_0x172429?'T':'')+toISOTime(this,'extended'===_0x4813d8,_0x26cf0c,_0x4de158,_0x3294d5,_0x3176a6);}['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:_0x8cee76=!0x0,includeZone:_0x4708b4=!0x1,includeOffsetSpace:_0x174cf8=!0x0}={}){let _0x1a364f='HH:mm:ss.SSS';return(_0x4708b4||_0x8cee76)&&(_0x174cf8&&(_0x1a364f+='\x20'),_0x4708b4?_0x1a364f+='z':_0x8cee76&&(_0x1a364f+='ZZ')),toTechFormat(this,_0x1a364f,!0x0);}['toSQL'](_0x1ac2ce={}){return this['isValid']?this['toSQLDate']()+'\x20'+this['toSQLTime'](_0x1ac2ce):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'](_0x365bfc={}){if(!this['isValid'])return{};const _0xaa46aa={...this['c']};return _0x365bfc['includeConfig']&&(_0xaa46aa['outputCalendar']=this['outputCalendar'],_0xaa46aa['numberingSystem']=this['loc']['numberingSystem'],_0xaa46aa['locale']=this['loc']['locale']),_0xaa46aa;}['toJSDate'](){return new Date(this['isValid']?this['ts']:NaN);}['diff'](_0x5b55b7,_0x3d78a7='milliseconds',_0xe3579d={}){if(!this['isValid']||!_0x5b55b7['isValid'])return Duration['invalid']('created\x20by\x20diffing\x20an\x20invalid\x20DateTime');const _0x2e53b1={'locale':this['locale'],'numberingSystem':this['numberingSystem'],..._0xe3579d},_0x45eecf=maybeArray(_0x3d78a7)['map'](Duration['normalizeUnit']),_0x63856a=_0x5b55b7['valueOf']()>this['valueOf'](),_0x449f40=diff(_0x63856a?this:_0x5b55b7,_0x63856a?_0x5b55b7:this,_0x45eecf,_0x2e53b1);return _0x63856a?_0x449f40['negate']():_0x449f40;}['diffNow'](_0x483637='milliseconds',_0x3602a2={}){return this['diff'](DateTime['now'](),_0x483637,_0x3602a2);}['until'](_0x224b48){return this['isValid']?Interval['fromDateTimes'](this,_0x224b48):this;}['hasSame'](_0x1ee873,_0x44dab0,_0x1530db){if(!this['isValid'])return!0x1;const _0x1e80be=_0x1ee873['valueOf'](),_0x3f7212=this['setZone'](_0x1ee873['zone'],{'keepLocalTime':!0x0});return _0x3f7212['startOf'](_0x44dab0,_0x1530db)<=_0x1e80be&&_0x1e80be<=_0x3f7212['endOf'](_0x44dab0,_0x1530db);}['equals'](_0x5d799e){return this['isValid']&&_0x5d799e['isValid']&&this['valueOf']()===_0x5d799e['valueOf']()&&this['zone']['equals'](_0x5d799e['zone'])&&this['loc']['equals'](_0x5d799e['loc']);}['toRelative'](_0x20ed8c={}){if(!this['isValid'])return null;const _0x2ceb8d=_0x20ed8c['base']||DateTime['fromObject']({},{'zone':this['zone']}),_0x238151=_0x20ed8c['padding']?this<_0x2ceb8d?-_0x20ed8c['padding']:_0x20ed8c['padding']:0x0;let _0x745bce=['years','months','days','hours','minutes','seconds'],_0xa908e5=_0x20ed8c['unit'];return Array['isArray'](_0x20ed8c['unit'])&&(_0x745bce=_0x20ed8c['unit'],_0xa908e5=void 0x0),diffRelative(_0x2ceb8d,this['plus'](_0x238151),{..._0x20ed8c,'numeric':'always','units':_0x745bce,'unit':_0xa908e5});}['toRelativeCalendar'](_0x4b6338={}){return this['isValid']?diffRelative(_0x4b6338['base']||DateTime['fromObject']({},{'zone':this['zone']}),this,{..._0x4b6338,'numeric':'auto','units':['years','months','days'],'calendary':!0x0}):null;}static['min'](..._0x46c38e){if(!_0x46c38e['every'](DateTime['isDateTime']))throw new InvalidArgumentError('min\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x46c38e,_0x267eda=>_0x267eda['valueOf'](),Math['min']);}static['max'](..._0x198b28){if(!_0x198b28['every'](DateTime['isDateTime']))throw new InvalidArgumentError('max\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x198b28,_0x633a21=>_0x633a21['valueOf'](),Math['max']);}static['fromFormatExplain'](_0x1dbcee,_0x2b7cdd,_0x5188ba={}){const {locale:_0x182d6e=null,numberingSystem:_0x32d24b=null}=_0x5188ba;return explainFromTokens(Locale['fromOpts']({'locale':_0x182d6e,'numberingSystem':_0x32d24b,'defaultToEN':!0x0}),_0x1dbcee,_0x2b7cdd);}static['fromStringExplain'](_0x48a86b,_0x300685,_0x492242={}){return DateTime['fromFormatExplain'](_0x48a86b,_0x300685,_0x492242);}static['buildFormatParser'](_0x5e4c3a,_0x4f701b={}){const {locale:_0x3a15db=null,numberingSystem:_0x52401b=null}=_0x4f701b,_0xc608d6=Locale['fromOpts']({'locale':_0x3a15db,'numberingSystem':_0x52401b,'defaultToEN':!0x0});return new TokenParser(_0xc608d6,_0x5e4c3a);}static['fromFormatParser'](_0x12d7b3,_0x5dbd6e,_0x3f2c52={}){if(isUndefined(_0x12d7b3)||isUndefined(_0x5dbd6e))throw new InvalidArgumentError('fromFormatParser\x20requires\x20an\x20input\x20string\x20and\x20a\x20format\x20parser');const {locale:_0x34ffa3=null,numberingSystem:_0x54780d=null}=_0x3f2c52,_0x2ac556=Locale['fromOpts']({'locale':_0x34ffa3,'numberingSystem':_0x54780d,'defaultToEN':!0x0});if(!_0x2ac556['equals'](_0x5dbd6e['locale']))throw new InvalidArgumentError('fromFormatParser\x20called\x20with\x20a\x20locale\x20of\x20'+_0x2ac556+',\x20but\x20the\x20format\x20parser\x20was\x20created\x20for\x20'+_0x5dbd6e['locale']);const {result:_0x526516,zone:_0x3a26c8,specificOffset:_0x276840,invalidReason:_0x4cb28a}=_0x5dbd6e['explainFromTokens'](_0x12d7b3);return _0x4cb28a?DateTime['invalid'](_0x4cb28a):parseDataToDateTime(_0x526516,_0x3a26c8,_0x3f2c52,'format\x20'+_0x5dbd6e['format'],_0x12d7b3,_0x276840);}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(_0x4ee075){if(DateTime['isDateTime'](_0x4ee075))return _0x4ee075;if(_0x4ee075&&_0x4ee075['valueOf']&&isNumber(_0x4ee075['valueOf']()))return DateTime['fromJSDate'](_0x4ee075);if(_0x4ee075&&'object'==typeof _0x4ee075)return DateTime['fromObject'](_0x4ee075);throw new InvalidArgumentError('Unknown\x20datetime\x20argument:\x20'+_0x4ee075+',\x20of\x20type\x20'+typeof _0x4ee075);}function getDateTimeFormatter(_0x49b171={},_0x2a4633){if(void 0x0!==_0x49b171['dateTimeFormat']&&'function'!=typeof _0x49b171['dateTimeFormat'])throw new CKEditorError('invalid-date-time-format');return _0x4c8b28=>{const _0x2bf81a='string'==typeof _0x4c8b28?DateTime['fromISO'](_0x4c8b28):DateTime['fromJSDate'](_0x4c8b28),_0x19284f=DateTime['now'](),_0x4f0b89=Math['floor'](_0x19284f['diff'](_0x2bf81a,'days')['days']);return _0x49b171['dateTimeFormat']?_0x49b171['dateTimeFormat'](_0x2bf81a['toJSDate'](),_0x2a4633&&_0x2a4633['t']?_0x2a4633['t']:void 0x0):0x0===_0x4f0b89?_0x2a4633?getTranslation$h(_0x2a4633,'Today')+'\x20'+_0x2bf81a['toFormat']('hh:mma'):_0x2bf81a['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x4f0b89?_0x2a4633?getTranslation$h(_0x2a4633,'Yesterday')+'\x20'+_0x2bf81a['toFormat']('hh:mma'):_0x2bf81a['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x4f0b89<0x7?_0x2a4633?getTranslation$h(_0x2a4633,'Last')+'\x20'+getTranslation$h(_0x2a4633,_0x2bf81a['toFormat']('EEEE'))+'\x20'+_0x2bf81a['toFormat']('hh:mma'):_0x2bf81a['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x2bf81a['toFormat']('LL-dd-yyyy\x20hh:mma');};}function getMarkerDomElement(_0x12cd66,_0x40d88c){const _0x2e2976=_0x12cd66['mapper']['markerNameToElements'](_0x40d88c['name']);if(!_0x2e2976)return null;const _0x3e82f7=first(_0x2e2976['values']());return _0x12cd66['view']['domConverter']['mapViewToDom'](_0x3e82f7)||null;}function getAllMarkersDomElementsSorted(_0x175a98,_0x9903e6){if(0x0===_0x9903e6['length'])return null;const _0x4fb1db=[],_0x4055c0=_0x175a98['view']['domConverter'];for(const _0x2589fc of _0x9903e6){const _0xf6677=_0x175a98['mapper']['markerNameToElements'](_0x2589fc['name']);if(!_0xf6677)continue;const _0x542098=Array['from'](_0xf6677)['map'](_0x5c209e=>_0x4055c0['mapViewToDom'](_0x5c209e))['filter'](_0x130f46=>!!_0x130f46);_0x4fb1db['push'](..._0x542098);}if(0x0===_0x4fb1db['length'])return null;const _0x1df5ae=[];for(const _0x3e36de of _0x4fb1db){const _0x7f3208=_0x3e36de['getClientRects']()['item'](0x0);_0x7f3208&&_0x1df5ae['push']({'x':_0x7f3208['x'],'y':_0x7f3208['y'],'domElement':_0x3e36de});}return 0x0===_0x1df5ae['length']?null:(_0x1df5ae['sort']((_0x180b90,_0xefd837)=>_0x180b90['y']-_0xefd837['y']||_0x180b90['x']-_0xefd837['x']),_0x1df5ae['map'](_0x1ee31b=>_0x1ee31b['domElement']));}function trimHtml(_0x4a4e54,{limit:_0x149944,suffix:_0x925b28='...'}){const _0x4d5458=[];let _0x31d57a=0x0;const _0x443ffb=_0x4a4e54['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x3c5df2=0x0;_0x3c5df2<_0x443ffb['length'];_0x3c5df2++){let _0x48a81e=_0x443ffb[_0x3c5df2];const _0x5a3abb=splitCharactersToArray(_0x48a81e);if(_0x48a81e['startsWith']('<')){if(_0x31d57a>=_0x149944){const _0x48233b=_0x48a81e['match'](/[a-zA-Z]+/);if(!_0x48233b){_0x443ffb[_0x3c5df2]='';continue;}const _0x15be59=_0x48233b[0x0];_0x48a81e['startsWith']('</')?(_0x4d5458['length']&&(_0x48a81e=''),_0x4d5458['pop']()):(_0x4d5458['push'](_0x15be59),_0x48a81e='');}}else{if(_0x31d57a>=_0x149944)_0x48a81e='';else{if(_0x31d57a+_0x5a3abb['length']>=_0x149944){let _0x39835b=_0x149944-_0x31d57a;if('\x20'===_0x5a3abb[_0x39835b-0x1])_0x39835b--;else{const _0x1f9875=_0x5a3abb['slice'](_0x39835b)['indexOf']('\x20');-0x1!==_0x1f9875?_0x39835b+=_0x1f9875:_0x39835b=_0x48a81e['length'];}_0x48a81e=_0x5a3abb['slice'](0x0,_0x39835b)['join']('')+_0x925b28,_0x31d57a=_0x149944;}else _0x31d57a+=_0x5a3abb['length'];}}_0x443ffb[_0x3c5df2]=_0x48a81e;}return _0x443ffb['join']('\x0a')['replace'](/\n/g,'');}function splitCharactersToArray(_0x39e14a){const _0x3c6d8a=[];for(let _0x5d951e=0x0;_0x5d951e<_0x39e14a['length'];_0x5d951e++){const _0x301d73=_0x39e14a['substring'](_0x5d951e)['match'](/^&[a-z0-9#]+;/);if(_0x301d73){const _0x1b23ed=_0x301d73[0x0];_0x3c6d8a['push'](_0x1b23ed),_0x5d951e+=_0x1b23ed['length']-0x1;}else _0x3c6d8a['push'](_0x39e14a[_0x5d951e]);}return _0x3c6d8a;}class ConfirmView extends View{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0xe94c40){super(_0xe94c40);const _0xb3672e=this['bindTemplate'];this['set']('message',getTranslation$h(_0xe94c40,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0xe94c40,getTranslation$h(_0xe94c40,'Yes'),IconCheck,'submit'),this['cancelView']=this['_createButtonView'](_0xe94c40,getTranslation$h(_0xe94c40,'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':_0xb3672e['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'](_0x5816c7,_0x565a69,_0x13ab9a,_0x1dc897){const _0x515a1e=new ButtonView(_0x5816c7);return _0x515a1e['label']=_0x565a69,_0x515a1e['icon']=_0x13ab9a,_0x515a1e['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x1dc897}}),_0x515a1e['on']('execute',()=>this['fire'](_0x1dc897)),_0x515a1e;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x39edd1=>{this['keystrokes']['listenTo'](_0x39edd1['element']),this['focusTracker']['add'](_0x39edd1['element']);}),this['keystrokes']['set']('esc',(_0x48f4bd,_0x4de891)=>{this['fire']('cancel'),_0x4de891();});}}function ConfirmMixin(_0x113d5f){return class extends _0x113d5f{['showConfirm'](_0x40d1b8,_0x4d0977){return this['confirmView']=new ConfirmView(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x40d1b8,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x4d0977['appendChild'](this['confirmView']['element']),_0x4d0977['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x249c2d,_0x4b3e75,_0xd3dae9)=>{_0xd3dae9||_0x4d0977['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x45bbc1=>this['confirmView']['on']('submit',_0x45bbc1));}['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(_0x10cafc){let _0x45fe8a=0x0,_0x1918c0=0x0;for(const _0x5424d5 of objectToNumberGenerator(_0x10cafc))_0x45fe8a=(_0x45fe8a<<0x5)-_0x45fe8a+_0x5424d5,_0x45fe8a&=_0x45fe8a,[_0x45fe8a,_0x1918c0]=[_0x1918c0,_0x45fe8a];return toString$1(_0x45fe8a)+toString$1(_0x1918c0);}function*toNumberGenerator(_0x496992){null==_0x496992||null==_0x496992?yield 0x12b9b0a1:0x0===_0x496992||!0x1===_0x496992?yield 0x0:0x1===_0x496992||0x1==_0x496992?yield 0x1:Array['isArray'](_0x496992)?yield*arrayToNumberGenerator(_0x496992):'object'==typeof _0x496992?yield*objectToNumberGenerator(_0x496992):'string'==typeof _0x496992?yield*stringToNumberGenerator(_0x496992):'number'==typeof _0x496992&&(yield _0x496992);}function*objectToNumberGenerator(_0x127a5b){if(yield charCode('{'),_0x127a5b){const _0x3a5f86=Object['keys'](_0x127a5b)['sort']();for(const _0x7fe717 of _0x3a5f86){yield*stringToNumberGenerator(_0x7fe717),yield charCode(':');const _0x311415=_0x127a5b[_0x7fe717];yield*toNumberGenerator(_0x311415);}}yield charCode('}');}function*arrayToNumberGenerator(_0x465a5e){for(const _0x41de12 of _0x465a5e)yield*toNumberGenerator(_0x41de12);}function*stringToNumberGenerator(_0x13633b){yield charCode('\x22');for(const _0x49d810 of _0x13633b)yield charCode(_0x49d810);yield charCode('\x22');}function charCode(_0x5f4726){return _0x5f4726['charCodeAt'](0x0);}function toString$1(_0x3d305c){return(_0x3d305c*=Math['sign'](_0x3d305c))['toString'](0x24);}const blackListedConfigOptions=['initialData','context','toolbar','rootsAttributes'],blackListedPlugins$2=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function skipRtcPlugins(_0x4a24bc,_0x180f15,_0x3b85db,_0x38cf83=[]){const _0x3c9d29='string'==typeof _0x4a24bc?_0x3b85db['get'](_0x4a24bc)['constructor']:_0x4a24bc['prototype']['constructor'];if(_0x180f15['has'](_0x3c9d29))return _0x180f15['get'](_0x3c9d29);_0x180f15['set'](_0x3c9d29,!0x0);const _0x6f8630=[...blackListedPlugins$2,..._0x38cf83]['map'](_0x57e8fa=>{if(_0x3b85db['has'](_0x57e8fa))return _0x3b85db['get'](_0x57e8fa)['constructor'];})['filter'](_0x1f9554=>_0x1f9554);if(_0x3c9d29&&_0x6f8630['includes'](_0x3c9d29))return _0x180f15['set'](_0x3c9d29,!0x1),!0x1;if(!_0x3c9d29['requires'])return _0x180f15['set'](_0x3c9d29,!0x0),!0x0;const _0x224dc1=_0x3c9d29['requires']['every'](_0x39babd=>skipRtcPlugins(_0x39babd,_0x180f15,_0x3b85db,_0x38cf83));return _0x180f15['set'](_0x3c9d29,_0x224dc1),_0x224dc1;}function sanitizeEditorConfig(_0x73ffce,_0x515dca){const _0x4a36e7={};for(const _0x4a0829 of _0x73ffce['config']['names']())blackListedConfigOptions['includes'](_0x4a0829)||(_0x4a36e7[_0x4a0829]=_0x73ffce['config']['get'](_0x4a0829));const _0x687b30=_0x4a36e7['plugins']||[],_0x3f0d55=_0x73ffce['constructor']['builtinPlugins']||[],_0x1e8111=_0x687b30['length']?_0x687b30:_0x3f0d55,_0x467c34=_0x4a36e7['extraPlugins']||[];delete _0x4a36e7['extraPlugins'];const _0x99e456=_0x4a36e7['removePlugins']||[];delete _0x4a36e7['removePlugins'];const _0x4d53af=_0x73ffce['_context']['config']['get']('plugins')||[],_0x51384e=_0x1e8111['concat'](_0x467c34)['concat'](_0x4d53af)['map'](_0x4c8287=>'string'==typeof _0x4c8287?_0x3f0d55['find'](_0x1a4567=>_0x1a4567['pluginName']==_0x4c8287):_0x4c8287)['filter'](_0x30bfef=>!_0x99e456['includes'](_0x30bfef)&&!_0x99e456['includes'](_0x30bfef['pluginName'])),_0x6df4b6=Array['from'](new Set(_0x51384e)),_0x55f43b=new Map();return _0x4a36e7['plugins']=_0x6df4b6['filter'](_0x396687=>skipRtcPlugins(_0x396687,_0x55f43b,_0x73ffce['plugins'],_0x515dca)),_0x4a36e7;}function surroundingMarkersDetector(_0x9bcecc,_0x5118ca){const _0x2fae12=[];_0x9bcecc['document']['selection']['on']('change:range',()=>{const _0x3ad1cb=getSurroundingMarkers(_0x9bcecc,_0x9bcecc['document']['selection']['focus']),_0x584d10=[],_0x475e55=[],_0x4c73c8=[];for(const _0x55f346 of _0x2fae12)_0x3ad1cb['includes'](_0x55f346)||_0x584d10['push'](_0x55f346);for(const _0x116a36 of _0x3ad1cb)_0x2fae12['includes'](_0x116a36)||_0x475e55['push'](_0x116a36),_0x4c73c8['push'](_0x116a36);(_0x584d10['length']||_0x475e55['length'])&&_0x5118ca({'left':_0x584d10,'entered':_0x475e55}),_0x2fae12['length']=0x0,_0x2fae12['push'](..._0x4c73c8);});}function getSurroundingMarkers(_0x7d7813,_0x414fd0){const _0x4cc761=[];for(const _0x4699a4 of _0x7d7813['markers']){const _0x28d6d7=_0x4699a4['getRange']();(_0x28d6d7['containsPosition'](_0x414fd0)||_0x28d6d7['start']['isEqual'](_0x414fd0)||_0x28d6d7['end']['isEqual'](_0x414fd0))&&_0x4cc761['push'](_0x4699a4);}return _0x4cc761;}const FOCUS_ANNOTATION_KEYSTROKE='Ctrl+Shift+E';function setupThreadKeyboardNavigation(_0x4dfcf7,_0x4c7a6d){const _0x5dee0f=_0x4dfcf7['element'];_0x4dfcf7['keystrokes']['listenTo'](_0x5dee0f);for(const _0x32b2dc of _0x4c7a6d)addViewToFocusCyclerNavigation(_0x4dfcf7,_0x32b2dc);_0x4c7a6d['on']('change',(_0xeb597b,_0x10844b)=>{for(const _0x3deb77 of _0x10844b['removed'])removeViewFromFocusCyclerNavigation(_0x4dfcf7,_0x3deb77);for(const _0x3006db of Array['from'](_0x10844b['added'])['reverse']())addViewToFocusCyclerNavigation(_0x4dfcf7,_0x3006db);}),_0x4dfcf7['keystrokes']['set']('enter',(_0x11cc45,_0x38a7ec)=>{_0x5dee0f===_0x11cc45['target']&&(_0x4dfcf7['focusCycler']['focusFirst'](),_0x38a7ec());},{'filter':_0x148645=>_0x148645['target']===_0x5dee0f}),_0x4dfcf7['keystrokes']['set']('esc',(_0x2b744a,_0x30e5fa)=>{_0x5dee0f!==_0x2b744a['target']?_0x4dfcf7['focus']():_0x4dfcf7['fire']('escape'),_0x30e5fa();}),_0x4dfcf7['keystrokes']['set']('arrowdown',(_0x266c7d,_0x5e6b27)=>{_0x5dee0f===_0x266c7d['target']&&(_0x4dfcf7['fire']('arrowdown'),_0x5e6b27());}),_0x4dfcf7['keystrokes']['set']('arrowup',(_0x262ceb,_0x37fea7)=>{_0x5dee0f===_0x262ceb['target']&&(_0x4dfcf7['fire']('arrowup'),_0x37fea7());});}function addViewToFocusCyclerNavigation(_0x634f5e,_0x4e255a){_0x4e255a['isRendered']&&(_0x634f5e['focusTracker']['add'](_0x4e255a['element']),_0x634f5e['keystrokes']['listenTo'](_0x4e255a['element']),isViewWithFocusCycler(_0x4e255a)&&areFocusCyclerActionsCompatible(_0x634f5e['focusCycler'],_0x4e255a['focusCycler'])&&_0x634f5e['focusCycler']['chain'](_0x4e255a['focusCycler']));}function removeViewFromFocusCyclerNavigation(_0x3aed2e,_0x52c127){_0x3aed2e['focusTracker']['remove'](_0x52c127['element']),_0x3aed2e['keystrokes']['stopListening'](_0x52c127['element']),isViewWithFocusCycler(_0x52c127)&&_0x3aed2e['focusCycler']['unchain'](_0x52c127['focusCycler']);}function areFocusCyclerActionsCompatible(_0x2630db,_0x2d088a){const _0x4de5f0=_0x2630db['actions'],_0x1a9a8a=_0x2d088a['actions'];for(const _0xd2538b of Object['keys'](_0x4de5f0))if(_0xd2538b in _0x1a9a8a&&_0x4de5f0[_0xd2538b]!==_0x1a9a8a[_0xd2538b])return!0x1;return!0x0;}class Diff{['diff'](_0x475702,_0x4167f3,_0x1eda7a={}){let _0x34240f;'function'==typeof _0x1eda7a?(_0x34240f=_0x1eda7a,_0x1eda7a={}):'callback'in _0x1eda7a&&(_0x34240f=_0x1eda7a['callback']);const _0xbe9f4a=this['castInput'](_0x475702,_0x1eda7a),_0xb34b7d=this['castInput'](_0x4167f3,_0x1eda7a),_0x3b61fb=this['removeEmpty'](this['tokenize'](_0xbe9f4a,_0x1eda7a)),_0x36329f=this['removeEmpty'](this['tokenize'](_0xb34b7d,_0x1eda7a));return this['diffWithOptionsObj'](_0x3b61fb,_0x36329f,_0x1eda7a,_0x34240f);}['diffWithOptionsObj'](_0x5e2aef,_0x57dfcf,_0x10a140,_0x5e2796){var _0x5a3c13;const _0x4128d7=_0x1e2f11=>(_0x1e2f11=this['postProcess'](_0x1e2f11,_0x10a140),_0x5e2796?void setTimeout(function(){_0x5e2796(_0x1e2f11);},0x0):_0x1e2f11),_0x103cbf=_0x57dfcf['length'],_0x5c7e19=_0x5e2aef['length'];let _0x314003=0x1,_0x216f77=_0x103cbf+_0x5c7e19;null!=_0x10a140['maxEditLength']&&(_0x216f77=Math['min'](_0x216f77,_0x10a140['maxEditLength']));const _0x1034ac=null!==(_0x5a3c13=_0x10a140['timeout'])&&void 0x0!==_0x5a3c13?_0x5a3c13:0x1/0x0,_0x162e96=Date['now']()+_0x1034ac,_0x210bd9=[{'oldPos':-0x1,'lastComponent':void 0x0}];let _0x4df799=this['extractCommon'](_0x210bd9[0x0],_0x57dfcf,_0x5e2aef,0x0,_0x10a140);if(_0x210bd9[0x0]['oldPos']+0x1>=_0x5c7e19&&_0x4df799+0x1>=_0x103cbf)return _0x4128d7(this['buildValues'](_0x210bd9[0x0]['lastComponent'],_0x57dfcf,_0x5e2aef));let _0x1790d6=-0x1/0x0,_0x4e46c2=0x1/0x0;const _0x395b68=()=>{for(let _0x2be654=Math['max'](_0x1790d6,-_0x314003);_0x2be654<=Math['min'](_0x4e46c2,_0x314003);_0x2be654+=0x2){let _0x4526c0;const _0x3be005=_0x210bd9[_0x2be654-0x1],_0x54e932=_0x210bd9[_0x2be654+0x1];_0x3be005&&(_0x210bd9[_0x2be654-0x1]=void 0x0);let _0x56eef3=!0x1;if(_0x54e932){const _0x3de34e=_0x54e932['oldPos']-_0x2be654;_0x56eef3=_0x54e932&&0x0<=_0x3de34e&&_0x3de34e<_0x103cbf;}const _0x5a1f01=_0x3be005&&_0x3be005['oldPos']+0x1<_0x5c7e19;if(_0x56eef3||_0x5a1f01){if(_0x4526c0=!_0x5a1f01||_0x56eef3&&_0x3be005['oldPos']<_0x54e932['oldPos']?this['addToPath'](_0x54e932,!0x0,!0x1,0x0,_0x10a140):this['addToPath'](_0x3be005,!0x1,!0x0,0x1,_0x10a140),_0x4df799=this['extractCommon'](_0x4526c0,_0x57dfcf,_0x5e2aef,_0x2be654,_0x10a140),_0x4526c0['oldPos']+0x1>=_0x5c7e19&&_0x4df799+0x1>=_0x103cbf)return _0x4128d7(this['buildValues'](_0x4526c0['lastComponent'],_0x57dfcf,_0x5e2aef))||!0x0;_0x210bd9[_0x2be654]=_0x4526c0,_0x4526c0['oldPos']+0x1>=_0x5c7e19&&(_0x4e46c2=Math['min'](_0x4e46c2,_0x2be654-0x1)),_0x4df799+0x1>=_0x103cbf&&(_0x1790d6=Math['max'](_0x1790d6,_0x2be654+0x1));}else _0x210bd9[_0x2be654]=void 0x0;}_0x314003++;};if(_0x5e2796)!function _0x1f6d3a(){setTimeout(function(){if(_0x314003>_0x216f77||Date['now']()>_0x162e96)return _0x5e2796(void 0x0);_0x395b68()||_0x1f6d3a();},0x0);}();else for(;_0x314003<=_0x216f77&&Date['now']()<=_0x162e96;){const _0x40ae40=_0x395b68();if(_0x40ae40)return _0x40ae40;}}['addToPath'](_0x18d7f4,_0xf175f,_0x18d8e9,_0x197b2e,_0x4f4bb8){const _0x2399d3=_0x18d7f4['lastComponent'];return _0x2399d3&&!_0x4f4bb8['oneChangePerToken']&&_0x2399d3['added']===_0xf175f&&_0x2399d3['removed']===_0x18d8e9?{'oldPos':_0x18d7f4['oldPos']+_0x197b2e,'lastComponent':{'count':_0x2399d3['count']+0x1,'added':_0xf175f,'removed':_0x18d8e9,'previousComponent':_0x2399d3['previousComponent']}}:{'oldPos':_0x18d7f4['oldPos']+_0x197b2e,'lastComponent':{'count':0x1,'added':_0xf175f,'removed':_0x18d8e9,'previousComponent':_0x2399d3}};}['extractCommon'](_0x18dba1,_0x293663,_0x5c6577,_0x441507,_0x276ca4){const _0x1d742e=_0x293663['length'],_0x227528=_0x5c6577['length'];let _0x4a1054=_0x18dba1['oldPos'],_0x283368=_0x4a1054-_0x441507,_0x22f52f=0x0;for(;_0x283368+0x1<_0x1d742e&&_0x4a1054+0x1<_0x227528&&this['equals'](_0x5c6577[_0x4a1054+0x1],_0x293663[_0x283368+0x1],_0x276ca4);)_0x283368++,_0x4a1054++,_0x22f52f++,_0x276ca4['oneChangePerToken']&&(_0x18dba1['lastComponent']={'count':0x1,'previousComponent':_0x18dba1['lastComponent'],'added':!0x1,'removed':!0x1});return _0x22f52f&&!_0x276ca4['oneChangePerToken']&&(_0x18dba1['lastComponent']={'count':_0x22f52f,'previousComponent':_0x18dba1['lastComponent'],'added':!0x1,'removed':!0x1}),_0x18dba1['oldPos']=_0x4a1054,_0x283368;}['equals'](_0x4bd87b,_0x4d3a45,_0x4ae678){return _0x4ae678['comparator']?_0x4ae678['comparator'](_0x4bd87b,_0x4d3a45):_0x4bd87b===_0x4d3a45||!!_0x4ae678['ignoreCase']&&_0x4bd87b['toLowerCase']()===_0x4d3a45['toLowerCase']();}['removeEmpty'](_0x1fa4d8){const _0x1663e0=[];for(let _0x31e219=0x0;_0x31e219<_0x1fa4d8['length'];_0x31e219++)_0x1fa4d8[_0x31e219]&&_0x1663e0['push'](_0x1fa4d8[_0x31e219]);return _0x1663e0;}['castInput'](_0x2c02c0,_0x512767){return _0x2c02c0;}['tokenize'](_0x25054c,_0x568579){return Array['from'](_0x25054c);}['join'](_0x3848a5){return _0x3848a5['join']('');}['postProcess'](_0x56c845,_0x2925c2){return _0x56c845;}get['useLongestToken'](){return!0x1;}['buildValues'](_0x238961,_0x430672,_0x4add61){const _0x1767ef=[];let _0x1ec91a;for(;_0x238961;)_0x1767ef['push'](_0x238961),_0x1ec91a=_0x238961['previousComponent'],delete _0x238961['previousComponent'],_0x238961=_0x1ec91a;_0x1767ef['reverse']();const _0x272f02=_0x1767ef['length'];let _0x3509fd=0x0,_0x342484=0x0,_0x4f3ef5=0x0;for(;_0x3509fd<_0x272f02;_0x3509fd++){const _0x1a376a=_0x1767ef[_0x3509fd];if(_0x1a376a['removed'])_0x1a376a['value']=this['join'](_0x4add61['slice'](_0x4f3ef5,_0x4f3ef5+_0x1a376a['count'])),_0x4f3ef5+=_0x1a376a['count'];else{if(!_0x1a376a['added']&&this['useLongestToken']){let _0x307718=_0x430672['slice'](_0x342484,_0x342484+_0x1a376a['count']);_0x307718=_0x307718['map'](function(_0x348fbd,_0x2047d5){const _0x57ee8d=_0x4add61[_0x4f3ef5+_0x2047d5];return _0x57ee8d['length']>_0x348fbd['length']?_0x57ee8d:_0x348fbd;}),_0x1a376a['value']=this['join'](_0x307718);}else _0x1a376a['value']=this['join'](_0x430672['slice'](_0x342484,_0x342484+_0x1a376a['count']));_0x342484+=_0x1a376a['count'],_0x1a376a['added']||(_0x4f3ef5+=_0x1a376a['count']);}}return _0x1767ef;}}class ArrayDiff extends Diff{['tokenize'](_0x4a561e){return _0x4a561e['slice']();}['join'](_0x47c13f){return _0x47c13f;}['removeEmpty'](_0x4b0f39){return _0x4b0f39;}}const arrayDiff=new ArrayDiff();function diffArrays(_0xc424da,_0x50f685,_0x2d1e1e){return arrayDiff['diff'](_0xc424da,_0x50f685,_0x2d1e1e);}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',(_0x5de219,_0x12805d)=>{_0x12805d['on']('ready',()=>{this['_integrateEditor'](_0x12805d);});});}get['editor'](){if(this['context']instanceof Editor)return this['context'];{const _0xf37fcd=this['context']['editors']['first'];if(!_0xf37fcd)throw new CKEditorError('documentcompare-no-editor',this);return _0xf37fcd;}}['getDiff'](_0x1900a9,_0x489c63,_0x1b53ce={'anchor':'main','markDeletions':!0x1}){let _0x3af7ce,_0x554317;const _0x56272c=this['editor'];if('string'==typeof _0x1b53ce['anchor']){const _0x45a927=_0x56272c['model']['document']['getRoot'](_0x1b53ce['anchor']);if(!_0x45a927)throw new CKEditorError('documentcompare-compare-no-root',this,{'anchor':_0x1b53ce['anchor']});_0x3af7ce=_0x45a927,_0x554317=_0x56272c['model']['createPositionAt'](_0x45a927,0x0);}else _0x3af7ce=_0x1b53ce['anchor']['clone'](),_0x554317=_0x1b53ce['anchor']['clone']();const _0x1db00=_0x56272c['data']['parse'](_0x1900a9,_0x3af7ce),_0x266da7=_0x56272c['data']['parse'](_0x489c63,_0x3af7ce);return new DocumentDiff(_0x1db00,_0x266da7,_0x56272c,{'anchor':_0x554317,'markDeletions':_0x1b53ce['markDeletions']});}['isMarkedRemoveOperation'](_0x31290d){return'marker'==_0x31290d['type']&&_0x31290d['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x1b9a38){_0x1b9a38['conversion']['for']('upcast')['add'](_0x3ea544=>{_0x3ea544['on']('element',(_0x505eb3,_0x37a06c,_0xd8aea7)=>{if(_0x37a06c['modelRange'])for(const _0x5401f3 of _0x37a06c['modelRange']['getItems']({'shallow':!0x0})){if(_0x5401f3['is']('$textProxy'))continue;const _0x59cfea=_0x37a06c['viewItem']['getAttribute'](DATA_ID_VIEW_ATTRIBUTE);_0x59cfea&&_0xd8aea7['writer']['setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x59cfea,_0x5401f3);}},{'priority':'lowest'});}),_0x1b9a38['model']['schema']['addAttributeCheck'](()=>!0x0,DATA_ID_MODEL_ATTRIBUTE);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x2c1b62,_0x2dd644,_0x73b571,_0xad0b95){this['_editor']=_0x73b571,this['_markDeletions']=!!_0xad0b95['markDeletions'],this['_anchor']=_0xad0b95['anchor'];const _0x70d894=this['_tokenizeModel'](_0x2c1b62),_0x39ebc9=this['_tokenizeModel'](_0x2dd644);this['_diffItems']=this['_diffModelTokens'](_0x70d894,_0x39ebc9),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x2c1b62['markers'],_0x2dd644['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x26a7ed=this['_editor']['model']['document'],_0x3cf373=[];let _0x18c825=_0x26a7ed['version'];for(const _0x4facca of this['_operationsData'])switch(_0x4facca['type']){case'attribute':{const _0x410847=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4facca['path']),_0x3e2a4c=_0x410847['getShiftedBy'](_0x4facca['howMany']),_0xd6094b=new ModelRange(_0x410847,_0x3e2a4c),_0x56f91b=JSON['parse'](_0x4facca['oldValue']),_0x2e8c1a=JSON['parse'](_0x4facca['newValue']);_0x3cf373['push'](new AttributeOperation(_0xd6094b,_0x4facca['key'],_0x56f91b,_0x2e8c1a,_0x18c825++));break;}case'insert':{const _0x48c152=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4facca['path']),_0xa52398=this['_makeModelFromTokens'](_0x4facca['tokens']);_0x3cf373['push'](new InsertOperation(_0x48c152,_0xa52398,_0x18c825++));break;}case'remove':{const _0x2d82b2=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4facca['path']),_0xffbf70=new ModelPosition(_0x26a7ed['graveyard'],[0x0]);_0x3cf373['push'](new MoveOperation(_0x2d82b2,_0x4facca['howMany'],_0xffbf70,_0x18c825++));break;}case'rename':{const _0x4b00bc=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4facca['path']);_0x3cf373['push'](new RenameOperation(_0x4b00bc,_0x4facca['oldName'],_0x4facca['newName'],_0x18c825++));break;}case'split':{const _0x805583=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4facca['path']),_0x29a97b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4facca['path']['slice'](0x0,-0x1));_0x29a97b['offset']++,_0x3cf373['push'](new SplitOperation(_0x805583,Number['NEGATIVE_INFINITY'],_0x29a97b,null,_0x18c825++));break;}case'merge':{const _0x1e9d91=_0x4facca['path']['slice'](),_0x16228c=_0x1e9d91['slice'](0x0,-0x1);_0x16228c[_0x16228c['length']-0x1]++,_0x16228c['push'](0x0);const _0x4c8678=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x16228c),_0x16159=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1e9d91),_0x10d0be=new ModelPosition(_0x26a7ed['graveyard'],[0x0]);_0x3cf373['push'](new MergeOperation(_0x4c8678,Number['NEGATIVE_INFINITY'],_0x16159,_0x10d0be,_0x18c825++));break;}case'marker':case'markedRemove':{let _0x281d96=null;if(_0x4facca['range']){const _0x559d6e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4facca['range']['start']),_0x347f3b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4facca['range']['end']);_0x281d96=new ModelRange(_0x559d6e,_0x347f3b);}const _0x1b1f4a='marker'==_0x4facca['type']?_0x4facca['name']:'$markedRemove:'+uid();_0x3cf373['push'](new MarkerOperation(_0x1b1f4a,null,_0x281d96,_0x26a7ed['model']['markers'],!0x0,_0x18c825++));break;}case'unwrap':{const _0xc7cab2=_0x4facca['path']['slice']();_0xc7cab2['push'](0x0);const _0x1f39cf=_0x4facca['path']['slice'](),_0x4a708a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xc7cab2),_0xf5348b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1f39cf),_0x3b0f0b=new ModelPosition(_0x26a7ed['graveyard'],[0x0]);_0x3cf373['push'](new MoveOperation(_0x4a708a,_0x4facca['howMany'],_0xf5348b,_0x18c825++)),_0x3cf373['push'](new MoveOperation(_0xf5348b['getShiftedBy'](_0x4facca['howMany']),0x1,_0x3b0f0b,_0x18c825++));break;}case'wrap':{const _0x179251=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4facca['range']['start']),_0x1ebd5d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4facca['range']['end']),_0xff5dbc=_0x4facca['token']['element']['_clone'](!0x1),_0x4ade96=_0x4facca['range']['end']['slice']();_0x4ade96['push'](0x0);const _0x584dd0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4ade96);_0x3cf373['push'](new InsertOperation(_0x1ebd5d,_0xff5dbc,_0x18c825++)),_0x3cf373['push'](new MoveOperation(_0x179251,_0x1ebd5d['offset']-_0x179251['offset'],_0x584dd0,_0x18c825++));break;}}return _0x3cf373;}['_tokenizeModel'](_0x5cfe6f){const _0x50f7a5=[],_0x217c8a=ModelRange['_createIn'](_0x5cfe6f),_0x37d456=new ModelTreeWalker({'boundaries':_0x217c8a});let _0x45dcf8='',_0x51267f=null;const _0x44bd30=[''],_0x471ab2=new Map();for(const _0xc789ba of _0x37d456)if('elementStart'==_0xc789ba['type']||'elementEnd'==_0xc789ba['type']){let _0x3a653=_0x44bd30[0x0];''!==_0x45dcf8&&(_0x50f7a5['push'](...this['_makeTokensFromTextByWords'](_0x45dcf8,_0x51267f,_0x3a653)),_0x45dcf8='');const _0x4b4e38=_0xc789ba['item'];let _0x412899;_0x4b4e38['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)?_0x412899=_0x4b4e38['getAttribute'](DATA_ID_MODEL_ATTRIBUTE):'elementStart'==_0xc789ba['type']?(_0x412899=makeUidForElement(_0x4b4e38),_0x471ab2['set'](_0x4b4e38,_0x412899)):_0x412899=_0x471ab2['get'](_0x4b4e38);const _0x3ea7fd=this['_getElementCategory'](_0x4b4e38);'solid'==_0x3ea7fd&&('elementStart'==_0xc789ba['type']?(_0x3a653=_0x412899,_0x44bd30['unshift'](_0x3a653)):_0x44bd30['shift']());const _0x2d448f={'type':'element','element':_0x4b4e38,'elementId':_0x412899,'category':_0x3ea7fd,'isStart':'elementStart'==_0xc789ba['type'],'limitId':_0x3a653};_0x50f7a5['push'](_0x2d448f);}else''==_0x45dcf8&&(_0x51267f=_0xc789ba['previousPosition']['clone']()),_0x45dcf8+=_0xc789ba['item']['data'];return''!==_0x45dcf8&&_0x50f7a5['push'](...this['_makeTokensFromTextByWords'](_0x45dcf8,_0x51267f,_0x44bd30[0x0])),_0x50f7a5;}['_makeTokensFromTextByWords'](_0x57e768,_0x1f9337,_0x1d1038){const _0x44c90e=_0x57e768['matchAll'](/(\s)/g),_0x5f3c7c=Array['from'](_0x44c90e)['map'](_0x1d07a7=>_0x1d07a7['index']);_0x5f3c7c['push'](_0x57e768['length']),0x0==_0x5f3c7c[0x0]&&_0x5f3c7c['shift']();const _0xe8ac40=[],_0x28f16a=_0x1f9337['parent'];let _0x3a2e74=0x0,_0x2512ff=_0x1f9337['offset'];for(let _0x4bc20b=0x0;_0x4bc20b<_0x5f3c7c['length'];_0x4bc20b++)_0xe8ac40['push']({'type':'text','data':_0x57e768['slice'](_0x3a2e74,_0x5f3c7c[_0x4bc20b]),'parent':_0x28f16a,'offset':_0x2512ff,'limitId':_0x1d1038}),_0x3a2e74=_0x5f3c7c[_0x4bc20b],_0x2512ff=_0x1f9337['offset']+_0x5f3c7c[_0x4bc20b];return _0xe8ac40;}['_getElementCategory'](_0x159382){const _0x27f7d5=this['_editor']['model']['schema'];return _0x27f7d5['isLimit'](_0x159382)||_0x27f7d5['isContent'](_0x159382)||_0x27f7d5['isInline'](_0x159382)?'solid':_0x27f7d5['isBlock'](_0x159382)?'block':'container';}['_diffModelTokens'](_0x3b7ae3,_0x2fe3d4){const _0x208f0b=diffArrays(_0x3b7ae3,_0x2fe3d4,{'comparator':compareModelTokens});this['_handleUnclosedBlockOpeningTags'](_0x208f0b);const _0x2830cd=_0x208f0b['flatMap'](_0x1c7159=>{const _0x40fdac=_0x1c7159['added']?'added':_0x1c7159['removed']?'removed':'unchanged';return _0x1c7159['value']['map'](_0x3155e6=>({'token':_0x3155e6,'change':_0x40fdac}));});let _0x20795e=0x0;for(const _0x4232c4 of _0x2830cd)'added'!=_0x4232c4['change']&&('unchanged'==_0x4232c4['change']&&(_0x4232c4['before']=_0x3b7ae3[_0x20795e]),_0x20795e++);return _0x2830cd;}['_handleUnclosedBlockOpeningTags'](_0x1e0a4f){for(let _0x2ea2f8=0x0;_0x2ea2f8<_0x1e0a4f['length']-0x1;_0x2ea2f8++)if(_0x1e0a4f[_0x2ea2f8]['removed']&&_0x1e0a4f[_0x2ea2f8+0x1]['added']){const _0x344f39=this['_findUnclosedBlockOpeningToken'](_0x1e0a4f[_0x2ea2f8]['value']);if(null!==_0x344f39){const _0x336e36=this['_findUnclosedBlockOpeningToken'](_0x1e0a4f[_0x2ea2f8+0x1]['value']),_0x478c6f=_0x1e0a4f[_0x2ea2f8]['value']['splice'](_0x344f39),_0x39d31d=_0x1e0a4f[_0x2ea2f8+0x1]['value']['splice'](_0x336e36),_0x464903=[_0x39d31d['shift']()];_0x478c6f['shift']();const _0x57aaa2={'value':_0x478c6f,'removed':!0x0},_0x5b6c4b={'value':_0x39d31d,'added':!0x0},_0x2f0d53={'value':_0x464903};_0x1e0a4f['splice'](_0x2ea2f8+0x2,0x0,_0x2f0d53,_0x57aaa2,_0x5b6c4b);}}}['_findUnclosedBlockOpeningToken'](_0x1ea3bc){let _0x591348=0x0,_0x216b70=-0x1;for(let _0x517d35=0x0;_0x517d35<_0x1ea3bc['length'];_0x517d35++){const _0x148b28=_0x1ea3bc[_0x517d35];'element'==_0x148b28['type']&&'block'==_0x148b28['category']&&(_0x591348+=_0x148b28['isStart']?0x1:-0x1,_0x148b28['isStart']&&(_0x216b70=_0x517d35));}return 0x0===_0x591348?null:_0x216b70;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x2d42f5=0x0;_0x2d42f5<this['_diffItems']['length'];_0x2d42f5++){const _0x3976d8=this['_diffItems'][_0x2d42f5]['change'],_0x1dc29d=[];_0x1dc29d['push'](this['_diffItems'][_0x2d42f5]);let _0x24ce1f=_0x2d42f5+0x1;for(;this['_diffItems'][_0x24ce1f]&&this['_diffItems'][_0x24ce1f]['change']==_0x3976d8;)_0x1dc29d['push'](this['_diffItems'][_0x24ce1f]),_0x24ce1f++,_0x2d42f5++;const _0x508a42=_0x1dc29d['map'](_0x49e524=>_0x49e524['token']);if('unchanged'==_0x3976d8)_0x1dc29d['map'](_0x17c830=>_0x17c830['before'])['forEach'](_0x10da19=>this['_traverseOverItem'](_0x10da19));else{if('removed'==_0x3976d8){if(this['_markDeletions']){const _0x57fcb4=this['_path']['slice']();_0x508a42['forEach'](_0x4cd376=>this['_traverseOverItem'](_0x4cd376));const _0x110e33=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x57fcb4,'end':_0x110e33}});}else this['_handleChanged'](_0x508a42,!0x0,this['_path']['slice']());}else{const _0x47a68d=_0x508a42['filter'](_0x22b340=>'element'!=_0x22b340['type']||'container'!=_0x22b340['category']);this['_handleChanged'](_0x47a68d,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x9951b0=0x0;_0x9951b0<this['_diffItems']['length'];_0x9951b0++){const _0x41b86d=this['_diffItems'][_0x9951b0]['change'],_0x12f9e5=[];_0x12f9e5['push'](this['_diffItems'][_0x9951b0]);let _0x1ae091=_0x9951b0+0x1;for(;this['_diffItems'][_0x1ae091]&&this['_diffItems'][_0x1ae091]['change']==_0x41b86d;)_0x12f9e5['push'](this['_diffItems'][_0x1ae091]),_0x1ae091++,_0x9951b0++;const _0x43d950=_0x12f9e5['map'](_0x17cdcf=>_0x17cdcf['token']);if('unchanged'==_0x41b86d){const _0xd2eee2=_0x12f9e5['map'](_0x53354f=>_0x53354f['before']);this['_handleUnchanged'](_0xd2eee2,_0x43d950);}else('removed'!=_0x41b86d||this['_markDeletions'])&&_0x43d950['forEach'](_0x2c66f9=>{this['_traverseOverItem'](_0x2c66f9);});}}['_calculateMarkersOperationsData'](_0x2d39de,_0x3e8a64){const _0x414fd8={};for(const [_0x1adbe2]of _0x2d39de)_0x414fd8[_0x1adbe2]=null;for(const [_0x1f7883,_0x2cc66e]of _0x3e8a64)_0x414fd8[_0x1f7883]=_0x2cc66e;const _0x4f9492=Object['entries'](_0x414fd8)['map'](([_0x2ef530,_0x1b8158])=>({'type':'marker','name':_0x2ef530,'range':_0x1b8158?{'start':_0x1b8158['start']['path']['slice'](),'end':_0x1b8158['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x4f9492);}['_handleUnwraps'](){const _0x486c07=new Map(),_0x225eb5=[],_0x5e594b=[0x0];let _0x178563=this['_diffItems']['length']+0x1;for(let _0x651dc9=this['_diffItems']['length']-0x1;_0x651dc9>=0x0;_0x651dc9--){const {token:_0x56c3a2,before:_0x2206dd,change:_0x4db0c9}=this['_diffItems'][_0x651dc9];if('removed'!=_0x4db0c9&&(_0x178563=_0x651dc9),'element'!=_0x56c3a2['type']||'container'!=_0x56c3a2['category']||'added'==_0x4db0c9)continue;const _0x39cc34=_0x2206dd?_0x2206dd['element']:_0x56c3a2['element'];if(_0x56c3a2['isStart']){const _0x27fe2d=_0x486c07['get'](_0x39cc34),_0x1c8e6e=this['_diffItems'][_0x27fe2d];('removed'==_0x4db0c9||'removed'==_0x1c8e6e['change'])&&_0x178563<_0x27fe2d&&(this['_operationsData']['push']({'type':'unwrap','path':_0x39cc34['getPath'](),'howMany':_0x39cc34['maxOffset']+_0x5e594b[0x0]}),_0x5e594b['shift'](),_0x5e594b[0x0]+=_0x39cc34['maxOffset']-0x1,_0x225eb5['push'](_0x651dc9),_0x225eb5['push'](_0x27fe2d));}else _0x486c07['set'](_0x39cc34,_0x651dc9),_0x5e594b['unshift'](0x0);}_0x225eb5['sort']((_0x59d309,_0x52dedc)=>_0x52dedc-_0x59d309),_0x225eb5['forEach'](_0x408361=>{const _0x295f0a=this['_diffItems'][_0x408361];'removed'==_0x295f0a['change']?this['_diffItems']['splice'](_0x408361,0x1):(_0x295f0a['change']='added',delete _0x295f0a['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x164229=[];for(let _0x360ed1=0x0;_0x360ed1<this['_diffItems']['length'];_0x360ed1++){const {change:_0x36e7d7,token:_0x7f852f}=this['_diffItems'][_0x360ed1];if('added'==_0x36e7d7&&'element'==_0x7f852f['type']&&'container'==_0x7f852f['category']){if(_0x7f852f['isStart'])_0x164229['push'](this['_path']['slice']());else{if(!_0x7f852f['isStart']){const _0x4c270e=_0x164229['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x4c270e,'end':this['_path']['slice']()},'token':_0x7f852f}),this['_path'][this['_path']['length']-0x1]=_0x4c270e[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x36e7d7||this['_markDeletions'])&&this['_traverseOverItem'](_0x7f852f);}}['_handleUnchanged'](_0x24172b,_0x54136c){for(let _0x2ab0ab=0x0;_0x2ab0ab<_0x24172b['length'];_0x2ab0ab++){const _0xfc7074=_0x24172b[_0x2ab0ab];if('element'==_0xfc7074['type']&&_0xfc7074['isStart']){const _0x3eb1cf=_0x54136c[_0x2ab0ab];'block'==_0xfc7074['category']&&this['_handleElementRename'](_0xfc7074['element'],_0x3eb1cf['element'],this['_path']),this['_handleElementAttributeChanges'](_0xfc7074['element'],_0x3eb1cf['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x3eb1cf);}else{if('element'!=_0xfc7074['type']||_0xfc7074['isStart']){if('text'==_0xfc7074['type']){const _0x4bb3f7=this['_path']['slice'](),_0x4058b0=[],_0x4623a5=[];for(;_0x24172b[_0x2ab0ab]&&'text'==_0x24172b[_0x2ab0ab]['type'];)_0x4058b0['push'](_0x24172b[_0x2ab0ab]),_0x4623a5['push'](_0x54136c[_0x2ab0ab]),this['_path'][this['_path']['length']-0x1]+=_0x24172b[_0x2ab0ab]['data']['length'],_0x2ab0ab++;_0x2ab0ab--,this['_handleTextAttributeChanges'](_0x4058b0,_0x4623a5,_0x4bb3f7);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x296141,_0x54ae2d,_0x451259){const _0x366ff2=[],_0x2fef7a=[],_0x2bc301=_0x451259['slice']();for(let _0x33be81=0x0;_0x33be81<_0x296141['length'];_0x33be81++){const _0x496be2=_0x296141[_0x33be81],_0x5a2c91=_0x451259['slice']();if('element'!=_0x496be2['type']||_0x496be2['isStart'])'element'==_0x496be2['type']&&_0x496be2['isStart']?(_0x451259['push'](0x0),_0x54ae2d||this['_parents']['push'](_0x496be2),_0x2fef7a['push']({'before':_0x5a2c91,'after':_0x451259['slice'](),'index':_0x33be81})):_0x451259[_0x451259['length']-0x1]+=_0x496be2['data']['length'];else{let _0x2b99f7;_0x451259['pop'](),_0x451259[_0x451259['length']-0x1]++,_0x2b99f7=_0x54ae2d?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x2fef7a['length']?_0x2fef7a['pop']():_0x366ff2['push']({'before':_0x5a2c91,'after':_0x451259['slice'](),'index':_0x33be81,'related':_0x2b99f7});}}if(_0x2fef7a['length']!==_0x366ff2['length'])throw new CKEditorError('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x296141,'isRemove':_0x54ae2d});const _0x4fcf36=[{'after':_0x2bc301['slice'](),'index':-0x1},..._0x366ff2,..._0x2fef7a,{'before':_0x451259['slice'](),'index':_0x296141['length']}];if(_0x54ae2d){for(let _0x14299d=_0x4fcf36['length']-0x1;_0x14299d>=0x1;_0x14299d--){const _0x3f9ae7=_0x4fcf36[_0x14299d-0x1]['after'],_0x268397=_0x4fcf36[_0x14299d]['before'],_0x3b16d5=_0x268397[_0x268397['length']-0x1]-_0x3f9ae7[_0x3f9ae7['length']-0x1];_0x3b16d5&&(this['_operationsData']['push']({'type':'remove','path':_0x3f9ae7,'howMany':_0x3b16d5}),_0x268397[_0x268397['length']-0x1]-=_0x3b16d5);}for(const {before:_0x7ddf3f}of _0x366ff2)this['_operationsData']['push']({'type':'merge','path':_0x7ddf3f});}else for(let _0x5a53cd=0x0;_0x5a53cd<_0x4fcf36['length']-0x1;_0x5a53cd++){const _0x2ebdee=_0x4fcf36[_0x5a53cd]['after'],_0x5a03fd=_0x4fcf36[_0x5a53cd+0x1]['before'],_0x5aec29=_0x4fcf36[_0x5a53cd]['index']+0x1,_0x47858a=_0x4fcf36[_0x5a53cd+0x1]['index'];if(_0x5aec29!==_0x47858a&&this['_operationsData']['push']({'type':'insert','path':_0x2ebdee,'tokens':_0x296141['slice'](_0x5aec29,_0x47858a)}),_0x5a53cd<_0x366ff2['length']){this['_operationsData']['push']({'type':'split','path':_0x5a03fd});const _0x31ab10=_0x296141[_0x2fef7a[_0x2fef7a['length']-0x1-_0x5a53cd]['index']],_0x2da0f2=_0x366ff2[_0x5a53cd]['after'],_0x538d82=_0x366ff2[_0x5a53cd]['related']['element'];this['_handleElementRename'](_0x538d82,_0x31ab10['element'],_0x2da0f2),this['_handleElementAttributeChanges'](_0x538d82,_0x31ab10['element'],_0x2da0f2);}}}['_traverseOverItem'](_0x27ad7d){'element'==_0x27ad7d['type']&&_0x27ad7d['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x27ad7d)):'element'!=_0x27ad7d['type']||_0x27ad7d['isStart']?'text'==_0x27ad7d['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x27ad7d['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x4abf4c,_0x565976,_0x53dc9b){_0x4abf4c['name']!=_0x565976['name']&&this['_operationsData']['push']({'type':'rename','path':_0x53dc9b['slice'](),'oldName':_0x4abf4c['name'],'newName':_0x565976['name']});}['_handleElementAttributeChanges'](_0x1f048c,_0x5a359a,_0xefed8c){const _0x2ac061=this['_getAttributeChanges'](_0x1f048c['getAttributes'](),_0x5a359a['getAttributes']());for(const _0xde720f in _0x2ac061){const {oldValue:_0x22ca0d,newValue:_0x2674e0}=_0x2ac061[_0xde720f];this['_operationsData']['push']({'type':'attribute','path':_0xefed8c['slice'](),'howMany':0x1,'key':_0xde720f,'oldValue':_0x22ca0d,'newValue':_0x2674e0});}}['_handleTextAttributeChanges'](_0x46263b,_0x2f4bd0,_0x4199e9){const _0x5db4c4=this['_operationsData'],_0x4e9f26=_0x46263b[0x0]['parent'],_0x45f73f=_0x46263b[0x0]['offset'],_0x28fa7d=_0x2f4bd0[0x0]['parent'],_0x4486a8=_0x2f4bd0[0x0]['offset'],_0x1d461b=_0x46263b['reduce']((_0x52b097,_0x2836b0)=>_0x52b097+_0x2836b0['data']['length'],0x0),_0x163696=this['_getAttrsForOffsets'](_0x4e9f26,_0x45f73f,_0x1d461b),_0x46e86d=this['_getAttrsForOffsets'](_0x28fa7d,_0x4486a8,_0x1d461b),_0x28b5b2={};for(let _0x1b83ba=0x0;_0x1b83ba<_0x1d461b;_0x1b83ba++){const _0x1471a0=_0x163696[_0x45f73f+_0x1b83ba],_0x1934f4=_0x46e86d[_0x4486a8+_0x1b83ba],_0x3968de=this['_getAttributeChanges'](_0x1471a0,_0x1934f4);for(const _0x460e08 in _0x28b5b2)_0x3968de[_0x460e08]||_0x349f85(_0x460e08);for(const _0x355185 in _0x3968de){const {oldValue:_0x4b3bbe,newValue:_0x4b2daf}=_0x3968de[_0x355185],_0x3c6a45=_0x28b5b2[_0x355185];_0x3c6a45?_0x3c6a45['oldValue']==_0x4b3bbe&&_0x3c6a45['newValue']==_0x4b2daf?_0x3c6a45['length']++:(_0x349f85(_0x355185),_0x28b5b2[_0x355185]={'oldValue':_0x4b3bbe,'newValue':_0x4b2daf,'start':_0x1b83ba,'length':0x1}):_0x28b5b2[_0x355185]={'oldValue':_0x4b3bbe,'newValue':_0x4b2daf,'start':_0x1b83ba,'length':0x1};}}for(const _0x124aa5 in _0x28b5b2)_0x349f85(_0x124aa5);function _0x349f85(_0x304bc3){const _0x56ac24=_0x28b5b2[_0x304bc3],_0x343e0c=_0x4199e9['slice']();_0x343e0c[_0x343e0c['length']-0x1]+=_0x56ac24['start'],_0x5db4c4['push']({'type':'attribute','path':_0x343e0c,'howMany':_0x56ac24['length'],'key':_0x304bc3,'oldValue':_0x56ac24['oldValue'],'newValue':_0x56ac24['newValue']}),delete _0x28b5b2[_0x304bc3];}}['_getAttributeChanges'](_0x24b1ae,_0x5dcc25){const _0x34d07c={};for(const [_0xfd7bdb,_0x27089c]of _0x24b1ae)_0x34d07c[_0xfd7bdb]={'oldValue':JSON['stringify'](_0x27089c),'newValue':'null'};for(const [_0x18acbe,_0x57a4b4]of _0x5dcc25){const _0x5c7013=JSON['stringify'](_0x57a4b4);_0x34d07c[_0x18acbe]?_0x34d07c[_0x18acbe]['oldValue']==_0x5c7013?delete _0x34d07c[_0x18acbe]:_0x34d07c[_0x18acbe]['newValue']=_0x5c7013:_0x34d07c[_0x18acbe]={'oldValue':'null','newValue':_0x5c7013};}return delete _0x34d07c[DATA_ID_MODEL_ATTRIBUTE],_0x34d07c;}['_getAttrsForOffsets'](_0x39da5f,_0x1f0b3b,_0x1b2a91){const _0x14bfb2=new Array(_0x1f0b3b+_0x1b2a91);let _0x41d0b9=_0x39da5f['getChildAtOffset'](_0x1f0b3b),_0x3c9140=_0x41d0b9['startOffset'];for(;_0x41d0b9&&_0x3c9140<_0x1f0b3b+_0x1b2a91;){const _0x14dc38=Array['from'](_0x41d0b9['getAttributes']());_0x14bfb2['fill'](_0x14dc38,_0x3c9140,_0x3c9140+_0x41d0b9['offsetSize']),_0x3c9140+=_0x41d0b9['offsetSize'],_0x41d0b9=_0x41d0b9['nextSibling'];}return _0x14bfb2;}['_getPositionFromAnchorAndPath'](_0x3f1602,_0x4b5dfc){const _0x4eb418=[..._0x3f1602['path']['slice'](0x0,-0x1),_0x3f1602['offset']+_0x4b5dfc[0x0],..._0x4b5dfc['slice'](0x1)];return new ModelPosition(_0x3f1602['root'],_0x4eb418);}['_makeModelFromTokens'](_0x53c894){const _0x46ceca=[];let _0x2d07bf=null;for(const _0x27afda of _0x53c894)if('element'!=_0x27afda['type']||_0x27afda['isStart']||_0x2d07bf!=_0x27afda['element']){if(!_0x2d07bf){if('text'==_0x27afda['type']){const _0xb90a30=ModelPosition['_createAt'](_0x27afda['parent'],_0x27afda['offset']),_0x26d594=ModelRange['_createFromPositionAndShift'](_0xb90a30,_0x27afda['data']['length']),_0x3bc160=Array['from'](_0x26d594['getItems']())['map'](_0x125c00=>new ModelText(_0x125c00['data'],_0x125c00['getAttributes']()));_0x46ceca['push'](..._0x3bc160);}else{_0x2d07bf=_0x27afda['element'];const _0x2a8a10=_0x27afda['element']['_clone'](!0x0);_0x2a8a10['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);for(const _0x4c8fd4 of this['_editor']['model']['createRangeIn'](_0x2a8a10)['getItems']())_0x4c8fd4['is']('element')&&_0x4c8fd4['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x46ceca['push'](_0x2a8a10);}}}else _0x2d07bf=null;return _0x46ceca;}}function compareModelTokens(_0x47515d,_0x4d47dc){return _0x47515d['type']===_0x4d47dc['type']&&(_0x47515d['limitId']===_0x4d47dc['limitId']&&('text'==_0x47515d['type']?_0x47515d['data']==_0x4d47dc['data']:compareModelElementTokens(_0x47515d,_0x4d47dc)));}function compareModelElementTokens(_0x48d8a7,_0x22b9c1){return _0x48d8a7['isStart']==_0x22b9c1['isStart']&&((!_0x48d8a7['isStart']||_0x48d8a7['elementId']==_0x22b9c1['elementId'])&&(_0x48d8a7['category']==_0x22b9c1['category']&&('block'==_0x48d8a7['category']||('container'!=_0x48d8a7['category']||_0x48d8a7['elementId']==_0x22b9c1['elementId'])&&_0x48d8a7['element']['name']==_0x22b9c1['element']['name'])));}function makeUidForElement(_0x4847c1){return hashObject({'name':_0x4847c1['name'],...Object['fromEntries'](_0x4847c1['getAttributes']())});}function getSuggestionPartsFromReply({editor:_0x2d06d0,changeGroups:_0x3cdf26,documentContextContent:_0x1a6a48,showDiff:_0x44a28f,trimUnchanged:_0x1b0cdf=!0x0}){return _0x3cdf26['map'](_0x49e82a=>{const _0x152c27=new Document([]),_0x4d2b9e=new Document([]);for(const _0x3796ff of _0x49e82a['changes'])if(_0x44a28f&&'removed'==_0x3796ff['type']||_0x4d2b9e['children']['push'](_0x3796ff['node']['cloneNode'](!0x0)),'new'!=_0x3796ff['type']&&(_0x44a28f||'removed'!=_0x3796ff['type'])){const _0x3f625e=findOne(_0x2547a6=>getAttribute(_0x2547a6,'data-id')==_0x3796ff['id'],_0x1a6a48,!0x0);_0x3f625e&&_0x152c27['children']['push'](_0x3f625e['cloneNode'](!0x0));}const {content:_0x2acdf3,hasChanges:_0x5a6d79}=passThroughEditorDataPipeline(_0x2d06d0,_0x152c27,_0x4d2b9e,_0x44a28f,_0x1b0cdf);return{'type':_0x49e82a['changes'][0x0]['type'],'index':_0x49e82a['index'],'content':_0x2acdf3,'hasChanges':_0x5a6d79};});}function passThroughEditorDataPipeline(_0xa3befb,_0x4d703d,_0x4a9cfb,_0x1f8a56,_0x4bf8f5=!0x0){const _0x21a935=_0xa3befb['plugins']['get']('DocumentCompare'),_0x535f0c=serialize(_0x4d703d),_0x24651a=serialize(_0x4a9cfb),_0x5bf936=_0xa3befb['data']['parse'](_0x535f0c,'$root'),_0x1e75e8=_0xa3befb['model']['createPositionAt'](_0x5bf936,0x0),_0x59323f=_0x21a935['getDiff'](_0x535f0c,_0x24651a,{'anchor':_0x1e75e8,'markDeletions':_0x1f8a56})['getOperations']();if(0x0==_0x59323f['length'])return{'content':_0x4d703d['cloneNode'](!0x0),'hasChanges':!0x1};if(_0x1f8a56?applyOperationsAndDiffMarkers(_0x59323f,_0x5bf936,_0xa3befb):_0xa3befb['model']['change'](_0x44ce70=>{for(const _0x579bec of _0x59323f)if('remove'==_0x579bec['type']){const _0x5d733a=_0x579bec['sourcePosition'],_0x393450=_0x579bec['howMany'],_0x44ad1a=new _DetachOperation(_0x5d733a,_0x393450);_0x44ce70['batch']['addOperation'](_0x44ad1a),_0xa3befb['model']['applyOperation'](_0x44ad1a);}else{if('marker'==_0x579bec['type']){const _0x52b029=_0x579bec['name'],_0x585d82=_0x579bec['newRange'];null!==_0x585d82?_0x5bf936['markers']['set'](_0x52b029,_0x585d82):_0x5bf936['markers']['delete'](_0x52b029);}else _0x579bec['baseVersion']=null,_0x579bec['isDocumentOperation']=!0x1,_0x44ce70['batch']['addOperation'](_0x579bec),_0xa3befb['model']['applyOperation'](_0x579bec);}}),_0x4bf8f5){const _0x555554=getMinimalSelection(_0xa3befb,_0x59323f,_0x5bf936);expandSelectionWithContext(_0xa3befb['model'],_0x555554),shrinkFragmentToSelection(_0xa3befb['model'],_0x555554);}return{'content':parse$2(_0xa3befb['data']['stringify'](_0x5bf936,{'showSuggestionHighlights':!0x0})),'hasChanges':!0x0};}function applyOperationsAndDiffMarkers(_0x233dc3,_0x51d565,_0x1a40ff){if(0x0==_0x233dc3['length'])return;const _0x13efc9=_0x1a40ff['plugins']['get']('DocumentCompare'),_0x304fb7=_0x1a40ff['plugins']['get']('SuggestionsConversion');_0x1a40ff['model']['change'](_0x3ccb4f=>{const _0x35b434=new Set();for(let _0x11c17a=0x0;_0x11c17a<_0x233dc3['length'];_0x11c17a++){const _0x42b671=_0x233dc3[_0x11c17a];if(_0x42b671['baseVersion']=null,_0x42b671['isDocumentOperation']=!0x1,_0x13efc9['isMarkedRemoveOperation'](_0x42b671)){const _0x360ead=fixElementSuggestionRange(_0x42b671['newRange'],_0x1a40ff['model']),_0x43215c='suggestion:deletion:'+uid()+':$aiSuggestion';_0x51d565['markers']['set'](_0x43215c,_0x360ead);}else switch(_0x42b671['type']){case'rename':{if(_0x42b671['oldName']==_0x42b671['newName'])break;_0x3ccb4f['batch']['addOperation'](_0x42b671),_0x1a40ff['model']['applyOperation'](_0x42b671);const _0x25d814='$elementName',_0x9a19cb=_0x42b671['position'],_0x49e580=_0x1a40ff['model']['createRange'](_0x9a19cb,_0x1a40ff['model']['createPositionAt'](_0x9a19cb['nodeAfter'],'end')),_0x46da79='suggestion:attribute:'+_0x25d814+':'+uid()+':$aiSuggestion';_0x51d565['markers']['set'](_0x46da79,_0x49e580);break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{if(_0x42b671['oldValue']==_0x42b671['newValue'])break;_0x3ccb4f['batch']['addOperation'](_0x42b671),_0x1a40ff['model']['applyOperation'](_0x42b671);const _0x5e7c52=_0x42b671['key'];if(!_0x304fb7['isRegisteredAttribute'](_0x5e7c52))break;const _0x5ee3ed=fixElementSuggestionRange(_0x42b671['range'],_0x1a40ff['model']),_0xdf7ab8='suggestion:attribute:'+_0x5e7c52+':'+uid()+':$aiSuggestion';_0x51d565['markers']['set'](_0xdf7ab8,_0x5ee3ed);break;}case'insert':{_0x3ccb4f['batch']['addOperation'](_0x42b671),_0x1a40ff['model']['applyOperation'](_0x42b671);if(_0x233dc3[_0x11c17a+0x1]&&'move'==_0x233dc3[_0x11c17a+0x1]['type']){transformMarkers(_0x51d565,_0x42b671);break;}const _0x138655=_0x42b671['position'],_0x52aba4=_0x42b671['howMany'],_0x40188a=fixElementSuggestionRange(_0x1a40ff['model']['createRange'](_0x138655,_0x138655['getShiftedBy'](_0x52aba4)),_0x1a40ff['model']),_0x40f878='suggestion:insertion:'+uid()+':$aiSuggestion';_0x51d565['markers']['set'](_0x40f878,_0x40188a);break;}case'split':{_0x3ccb4f['batch']['addOperation'](_0x42b671),_0x1a40ff['model']['applyOperation'](_0x42b671);const _0x22299d=_0x42b671['splitPosition'],_0x398720=_0x42b671['moveTargetPosition'],_0x54bde0=_0x1a40ff['model']['createRange'](_0x22299d,_0x398720),_0x37bd5e='suggestion:insertion:'+uid()+':$aiSuggestion';_0x51d565['markers']['set'](_0x37bd5e,_0x54bde0);break;}case'move':{_0x3ccb4f['batch']['addOperation'](_0x42b671),_0x1a40ff['model']['applyOperation'](_0x42b671),_0x233dc3[_0x11c17a-0x1]&&'insert'==_0x233dc3[_0x11c17a-0x1]['type']&&transformMarkers(_0x51d565,_0x42b671);const _0x1f004b=_0x42b671['getMovedRangeStart'](),_0x36b8fe=_0x42b671['howMany'];for(let _0x3718d2=0x0;_0x3718d2<_0x36b8fe;_0x3718d2++){const _0x3e52ef=_0x1f004b['getShiftedBy'](_0x3718d2)['nodeAfter'];_0x35b434['add'](_0x3e52ef);}break;}case'remove':{const _0x1b0a38=_0x42b671['sourcePosition'],_0x3616a7=_0x42b671['howMany'],_0x50bdc5=new _DetachOperation(_0x1b0a38,_0x3616a7);_0x3ccb4f['batch']['addOperation'](_0x50bdc5),_0x1a40ff['model']['applyOperation'](_0x50bdc5);break;}}}for(const _0x1a7359 of _0x35b434){const _0x59d07c=_0x1a40ff['model']['createRangeOn'](_0x1a7359),_0x1de55b='suggestion:formatBlock:$fakeWrap:'+uid()+':$aiSuggestion';_0x51d565['markers']['set'](_0x1de55b,fixElementSuggestionRange(_0x59d07c,_0x1a40ff['model']));}});}function transformMarkers(_0x3ba401,_0x41be7d){for(const [_0x300ea3,_0x84d0f3]of _0x3ba401['markers']){const _0x139b6d=ModelRange['_createFromRanges'](_0x84d0f3['getTransformedByOperation'](_0x41be7d));_0x3ba401['markers']['set'](_0x300ea3,_0x139b6d);}}function getMinimalSelection(_0x23a6c,_0x333455,_0xd3adee){const _0x516c39=_0x23a6c['plugins']['get']('DocumentCompare');let _0x3362d7=_0x23a6c['model']['createPositionAt'](_0xd3adee,Number['POSITIVE_INFINITY']),_0x46b528=_0x23a6c['model']['createPositionAt'](_0xd3adee,0x0);for(const _0xb88f2b of _0x333455){let _0x31984e,_0x539188;if(_0x516c39['isMarkedRemoveOperation'](_0xb88f2b))_0x31984e=_0xb88f2b['newRange']['start'],_0x539188=_0xb88f2b['newRange']['end'];else switch(_0x3362d7=_0x3362d7['getTransformedByOperation'](_0xb88f2b),_0x46b528=_0x46b528['getTransformedByOperation'](_0xb88f2b),_0xb88f2b['type']){case'rename':_0x31984e=_0xb88f2b['position'],_0x539188=_0x31984e['getShiftedBy'](0x1);break;case'addAttribute':case'removeAttribute':case'changeAttribute':_0x31984e=_0xb88f2b['range']['start'],_0x539188=_0xb88f2b['range']['end'];break;case'insert':_0x31984e=_0xb88f2b['position'],_0x539188=_0x31984e['getShiftedBy'](_0xb88f2b['howMany']);break;case'split':_0x31984e=_0xb88f2b['splitPosition'],_0x539188=_0xb88f2b['moveTargetPosition'];break;case'merge':{const _0x1e9ca1=_0xb88f2b['targetPosition']['path']['slice'](0x0,-0x1);_0x31984e=_0x23a6c['model']['createPositionFromPath'](_0xd3adee,_0x1e9ca1),_0x539188=_0x31984e['getShiftedBy'](0x1);break;}case'remove':{const _0x2b9c49=_0xb88f2b['howMany'],_0x47f22b=_0xb88f2b['sourcePosition']['_getTransformedByInsertion'](_0xb88f2b['targetPosition'],_0x2b9c49),_0x461cad=_0xb88f2b['getMovedRangeStart']();'remove'==_0xb88f2b['type']?(_0x31984e=_0x47f22b,_0x539188=_0x47f22b):(_0x31984e=_0x461cad,_0x539188=_0x461cad['getShiftedBy'](_0x2b9c49));break;}}_0x31984e&&_0x31984e['isBefore'](_0x3362d7)&&(_0x3362d7=_0x31984e['clone'](),_0x3362d7['stickiness']='toNone'),_0x539188&&_0x539188['isAfter'](_0x46b528)&&(_0x46b528=_0x539188['clone'](),_0x46b528['stickiness']='toNone');}return _0x23a6c['model']['createSelection'](_0x23a6c['model']['createRange'](_0x3362d7,_0x46b528));}function expandSelectionWithContext(_0x1893ef,_0x50449f){expandSelection(_0x1893ef,_0x50449f,'forward');const _0x3b15ef=_0x50449f['getFirstRange']();_0x50449f['setTo']([]),_0x50449f['setTo'](_0x3b15ef,{'backward':!0x0}),expandSelection(_0x1893ef,_0x50449f,'backward');}function expandSelection(_0x36a751,_0x1827a4,_0x1bec98){let _0x4b826c=0x14;for(;_0x4b826c;){_0x36a751['modifySelection'](_0x1827a4,{'unit':'word','direction':_0x1bec98}),_0x4b826c--;const _0x5a4abd=_0x1827a4['focus']['forward'==_0x1bec98?'nodeBefore':'nodeAfter'];if(_0x5a4abd&&_0x5a4abd['is']('element')&&_0x36a751['schema']['isBlock'](_0x5a4abd)&&_0x36a751['schema']['isObject'](_0x5a4abd))break;}}function shrinkFragmentToSelection(_0x4f80e9,_0x354e6f){const _0x63ea5=_0x354e6f['getFirstRange']()['start'];let _0x179f70=_0x354e6f['getFirstRange']()['end'];const _0x5f7e2d=_0x63ea5['root'];(_0x179f70['textNode']||_0x179f70['nodeAfter']&&_0x179f70['nodeAfter']['is']('$text'))&&(_insertIntoModelNodeList(_0x179f70,'...'),_0x179f70=_0x179f70['getShiftedBy'](0x3)),(_0x63ea5['textNode']||_0x63ea5['nodeBefore']&&_0x63ea5['nodeBefore']['is']('$text'))&&(_insertIntoModelNodeList(_0x63ea5,'...'),_transformMarkersByInsertion(_0x5f7e2d,_0x63ea5,0x3),_0x63ea5['parent']==_0x179f70['parent']&&(_0x179f70=_0x179f70['getShiftedBy'](0x3)));const _0x1774dc=_0x4f80e9['createRange'](_0x4f80e9['createPositionAt'](_0x5f7e2d,0x0),_0x63ea5),_0x114b0a=_0x4f80e9['createRange'](_0x179f70,_0x4f80e9['createPositionAt'](_0x5f7e2d,'end')),_0xcccf86=[..._0x1774dc['getMinimalFlatRanges'](),..._0x114b0a['getMinimalFlatRanges']()];_0xcccf86['reverse']();for(const _0x18dafc of _0xcccf86)_removeFromModelNodeList(_0x18dafc),_transformMarkersByDeletion(_0x5f7e2d,_0x18dafc);}function _transformMarkersByDeletion(_0x3301bc,_0x343876){for(const [_0x9ccda5,_0x336af9]of _0x3301bc['markers']){const _0x10314d=_0x336af9['_getTransformedByDeletion'](_0x343876['start'],_0x343876['end']['offset']-_0x343876['start']['offset']);null!=_0x10314d?_0x3301bc['markers']['set'](_0x9ccda5,_0x10314d):_0x3301bc['markers']['delete'](_0x9ccda5);}}function _transformMarkersByInsertion(_0x496225,_0x3584c0,_0x496ad6){for(let [_0x3df6ef,_0x2c7bce]of _0x496225['markers']){const _0x1a792f=_0x2c7bce['_getTransformedByInsertion'](_0x3584c0,_0x496ad6,!0x1);_0x2c7bce=_0x1a792f[0x0],_0x496225['markers']['set'](_0x3df6ef,_0x2c7bce);}}class AIReply extends ObservableMixin(){['id'];['interactionId'];['type'];['sources']=[];['parsedContent']=new Document([]);['parsedMergedContent']=new Document([]);['changeGroups']=[];['areActionsDisabled']=!0x1;['documentContextContent'];['aiResponseParser'];['aiResponseApplier'];['editor'];['cachedSuggestionContentParts']={'withDiff':[],'withoutDiff':[]};constructor({type:_0x1dbf83,content:_0x4ad4c3='',isDone:_0x43d398=!0x1,interactionId:_0x1ebc43,areActionsDisabled:_0x15cfe7,documentContextContent:_0xb8f05a,editor:_0x16c540,id:_0x104867}){super(),this['id']=_0x104867||uid(),this['interactionId']=_0x1ebc43,this['type']=_0x1dbf83,this['areActionsDisabled']=!!_0x15cfe7,this['editor']=_0x16c540,this['aiResponseParser']=new AIResponseParser(),this['aiResponseApplier']=new AIResponseApplier(),this['documentContextContent']=parse$2(_0xb8f05a||''),this['set']('isDone',_0x43d398),this['on']('change:content',()=>{this['onContentChange']();}),this['set']('content',_0x4ad4c3);}['appendContent'](_0xd6c53c){this['set']('content',this['content']+_0xd6c53c);}['done'](){this['isDone']||(this['set']('isDone',!0x0),this['onContentChange']());}['destroy'](){this['stopListening']();}['setChangeGroupState'](_0x37f71e,_0x2d9bc5){this['changeGroups'][_0x37f71e]['state']=_0x2d9bc5,this['fire']('replyChangeGroupStateUpdated',{'reply':this,'index':_0x37f71e,'state':_0x2d9bc5});}['getContentParts']({showDiff:_0x467aca,groupIndex:_0x3b5af3}){if(!this['editor'])throw new CKEditorError('ai-get-editor-from-context-no-editor',null,{'aiReply':this});const _0x1ca184=this['_getCachedContentParts'](_0x467aca,_0x3b5af3);if(_0x1ca184)return _0x1ca184;let _0x45d921=[];if(void 0x0===_0x3b5af3)_0x45d921=this['changeGroups'];else{const _0x55b0ca=this['changeGroups']['find'](({index:_0x2eacbb})=>_0x2eacbb===_0x3b5af3);if(!_0x55b0ca)throw new CKEditorError('ai-reply-get-content-parts-group-not-found',null,{'aiReply':this,'groupIndex':_0x3b5af3});_0x45d921=[_0x55b0ca];}const _0x4d4592=getSuggestionPartsFromReply({'editor':this['editor'],'showDiff':_0x467aca,'changeGroups':_0x45d921,'documentContextContent':this['documentContextContent']});return this['_setCachedContentParts'](_0x467aca,_0x4d4592),_0x4d4592;}['_getCachedContentParts'](_0x11a37b,_0x326337){const _0x4c0260=_0x11a37b?'withDiff':'withoutDiff';if(!this['cachedSuggestionContentParts'][_0x4c0260]['length'])return null;const _0xb289c1=this['cachedSuggestionContentParts'][_0x4c0260];if(void 0x0===_0x326337)return _0xb289c1['length']>0x0&&_0xb289c1['length']!==this['changeGroups']['length']?(this['_setCachedContentParts'](_0x11a37b,null),null):cloneDeep$1(_0xb289c1);{const _0x2347f9=_0xb289c1['find'](({index:_0x1b46e1})=>_0x1b46e1===_0x326337);if(_0x2347f9)return[cloneDeep$1(_0x2347f9)];}return null;}['_setCachedContentParts'](_0x837a4f,_0x266701){const _0x1eb427=_0x837a4f?'withDiff':'withoutDiff';_0x266701?_0x266701['forEach'](_0x38e13d=>{const _0x78da37=this['cachedSuggestionContentParts'][_0x1eb427],_0x394e55=_0x78da37['find'](({index:_0x4bfb86})=>_0x4bfb86===_0x38e13d['index']);if(_0x394e55){const _0x516e18=_0x78da37['indexOf'](_0x394e55);_0x78da37['splice'](_0x516e18,0x1,_0x38e13d);}else _0x78da37['push'](_0x38e13d);}):this['cachedSuggestionContentParts'][_0x1eb427]['length']=0x0;}['onContentChange'](){if('modification'===this['type']){this['parsedContent']=this['aiResponseParser']['parseAndNormalizeHTML'](this['content']);const _0x4d71dd=this['changeGroups'];this['updateChangeGroups']();const _0x36c2f5=this['_getDifferentChangeGroups'](_0x4d71dd,this['changeGroups']);(_0x36c2f5['length']||this['isDone'])&&(this['fire']('replyContentUpdated',this,_0x36c2f5),this['cachedSuggestionContentParts']['withDiff']['length']=this['cachedSuggestionContentParts']['withoutDiff']['length']=0x0);}else this['parsedContent']=this['aiResponseParser']['convertMarkdownToHTML'](this['content']),this['fire']('replyContentUpdated',this);}['_getDifferentChangeGroups'](_0x2073ec,_0xd8b574){const _0x1dd46f=[];for(const _0x164670 of _0xd8b574){const _0x5984b5=_0x2073ec[_0x164670['index']];_0x5984b5?_0x5984b5['changes']['length']!==_0x164670['changes']['length']?_0x1dd46f['push'](_0x164670):_0x5984b5['changes']['forEach']((_0x2ef30b,_0x25634a)=>{const _0x169bb6=_0x164670['changes'][_0x25634a];_0x2ef30b['id']!==_0x169bb6['id']&&_0x1dd46f['push'](_0x164670);}):_0x1dd46f['push'](_0x164670);}return _0x1dd46f;}['updateChangeGroups'](){const _0x52d21a=new Element$3('p',{},[new Element$3('span',{'style':'color:\x20#808080;\x20font-style:\x20italic'},[new Text$1(getTranslation$i(this['editor']['locale'],'AI_SUGGESTION_CONTENT_PART_REMOVED'))])]),_0x44a77b=this['aiResponseApplier']['merge'](this['parsedContent'],this['documentContextContent']['cloneNode'](!0x0),{'markUnstableElements':!this['isDone'],'replaceRemovedWith':_0x52d21a,'cutAfterLastChange':!this['isDone']});if(!_0x44a77b['modifiedNodeIds']['length']&&!this['isDone'])return;this['parsedMergedContent']=_0x44a77b['parsedContent'];let _0x33cbd8=[];if(findAll(_0x403a4d=>{const _0x284f72=getAttribute(_0x403a4d,'data-id');if(!_0x284f72||!_0x50191a(_0x284f72))return!0x1;const _0x96df85=[_0x403a4d,...getParents(_0x403a4d)]['at'](-0x2);if(_0x403a4d!=_0x96df85){const _0x5bf12=getAttribute(_0x96df85,'data-id');_0x50191a(_0x5bf12)||(_0x33cbd8['push']({'node':_0x96df85,'id':_0x5bf12,'type':'modified'}),_0x44a77b['modifiedNodeIds']['push'](_0x5bf12));}else _0x44a77b['modifiedNodeIds']['includes'](_0x284f72)?_0x33cbd8['push']({'node':_0x403a4d,'type':'modified','id':_0x284f72}):_0x44a77b['newNodeIds']['includes'](_0x284f72)?_0x33cbd8['push']({'node':_0x403a4d,'type':'new','id':_0x284f72,'anchorId':getAttribute(_0x403a4d['previousSibling'],'data-id')}):_0x33cbd8['push']({'node':_0x403a4d,'type':'removed','id':_0x284f72});return!0x0;},this['parsedMergedContent']),_0x33cbd8=_0x33cbd8['filter'](({node:_0x416ac2})=>[...getParents(_0x416ac2),_0x416ac2]['every'](_0x2ceb2d=>!getAttribute(_0x2ceb2d,'data-unstable'))),0x0==_0x33cbd8['length'])return;const _0x46ee53=[[_0x33cbd8[0x0]]];for(let _0x1439a5=0x1;_0x1439a5<_0x33cbd8['length'];_0x1439a5++){const _0x44eaed=_0x46ee53[_0x46ee53['length']-0x1],_0x54e655=_0x44eaed[_0x44eaed['length']-0x1];_0x33cbd8[_0x1439a5]['node']['previousSibling']==_0x54e655['node']&&'modified'!=_0x33cbd8[_0x1439a5]['type']&&'modified'!=_0x54e655['type']?_0x44eaed['push'](_0x33cbd8[_0x1439a5]):_0x46ee53['push']([_0x33cbd8[_0x1439a5]]);}for(const _0x50f164 of _0x46ee53){const _0x24cb45=_0x50f164[0x0],_0x5642e3=_0x50f164[_0x50f164['length']-0x1],_0x591cb2=_0x22c111(_0x24cb45['node']['previousSibling']);_0x591cb2&&_0x50f164['unshift'](_0x591cb2);const _0x32baf4=_0x22c111(_0x5642e3['node']['nextSibling']);_0x32baf4&&_0x50f164['push'](_0x32baf4);}function _0x50191a(_0x5657d9){return _0x44a77b['modifiedNodeIds']['includes'](_0x5657d9)||_0x44a77b['newNodeIds']['includes'](_0x5657d9)||_0x44a77b['removedNodeIds']['includes'](_0x5657d9);}function _0x22c111(_0x49701b){if(_0x49701b&&getAttribute(_0x49701b,'data-id')&&!getAttribute(_0x49701b,'data-unstable')){const _0x36f586=getAttribute(_0x49701b,'data-id');if(!_0x50191a(_0x36f586))return{'node':_0x49701b,'type':'context','id':_0x36f586};}return null;}this['changeGroups']=_0x46ee53['map']((_0x32177e,_0x22bf7a)=>({'changes':_0x32177e,'state':'pending','index':_0x22bf7a}));}}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;['editor'];['_isReasoning']=!0x1;['_isWebSearching']=!0x1;constructor({connector:_0x3ac48c,editor:_0x331cd3}){super(),this['id']=uid(),this['connector']=_0x3ac48c,this['isStopped']=!0x0,this['editor']=_0x331cd3;}async['start'](){const _0x2299f9=[];let _0x43495c,_0x5e9767,_0x3cb98a;this['isStopped']=!0x1;try{this['currentRequest']=await this['sendRequest'](),this['fire']('interactionStarted',this);const _0xd3dd0e=await this['currentRequest']['getStream']();for await(const _0x2b25e7 of _0xd3dd0e){if(this['isStopped'])return;if('error'==_0x2b25e7['event'])return void this['fire']('error',{'error':new CKEditorError('ai-chat-interaction-error',this)});switch(_0x2b25e7['event']){case'message-metadata':this['messageId']=_0x2b25e7['data']['messageId'];break;case'action-metadata':this['actionCallId']=_0x2b25e7['data']['callId'];break;case'conversation-title':this['setConversationTitle'](_0x2b25e7['data']['conversationTitle'],!0x0);break;case'source':_0x2299f9['push'](_0x2b25e7['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'](),_0x43495c='modification-delta'==_0x2b25e7['event']?'modification':'text',_0x5e9767='modification-delta'==_0x2b25e7['event']?_0x2b25e7['data']['id']:void 0x0,this['currentReply']&&this['currentReply']['type']!=_0x43495c&&(this['currentReply']['done'](),this['currentReply']=void 0x0),this['currentReply']||(this['currentReply']=this['createReply']({'type':_0x43495c,'interactionId':this['id'],'id':_0x5e9767}),'modification'==_0x43495c&&(this['currentReply']['sources']=_0x2299f9['splice'](0x0))),this['currentReply']['appendContent'](_0x2b25e7['data']['textDelta']);break;case'mcp-tool-result':_0x3cb98a=JSON['parse'](_0x2b25e7['data']['result']),this['_handleToolResultData']({'toolName':_0x2b25e7['data']['toolName'],'data':_0x3cb98a['data'],'attributes':_0x3cb98a['attributes']});break;case'mcp-tool-notification':this['_handleToolNotificationData']({'toolName':_0x2b25e7['data']['toolName'],'data':_0x2b25e7['data']['data']});}}}finally{this['isStopped']||(this['currentReply']&&_0x2299f9['length']>0x0&&(this['currentReply']['sources']=_0x2299f9['splice'](0x0)),this['_finalizeInteraction'](),this['fire']('interactionFinished',this));}}['stop'](){this['isStopped']||(this['_finalizeInteraction'](),this['fire']('interactionStopped',this));}['getReply'](_0x18aeaa){return this['replies']['find'](_0x5c86f2=>_0x5c86f2['id']===_0x18aeaa);}['destroy'](){this['isDestroyed']||(this['stop'](),this['replies']['forEach'](_0x1a3383=>_0x1a3383['destroy']()),this['replies']=[],this['isDestroyed']=!0x0,this['fire']('interactionDestroyed',this),this['stopListening']());}['createReply'](_0x172f17){const _0xe77275=new AIReply({'editor':this['editor'],'documentContextContent':this['getDocumentContext']()?.['content'],..._0x172f17});return this['replies']['push'](_0xe77275),_0xe77275['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0xe77275),_0xe77275;}['setConversationTitle'](_0x4d66d6,_0x28b982=!0x1){this['fire']('setConversationTitle',_0x4d66d6,_0x28b982);}['resetWebSearchState'](){this['_isWebSearching']&&(this['_isWebSearching']=!0x1,this['fire']('webSearchFinished',this));}['resetReasoningState'](){this['_isReasoning']&&(this['_isReasoning']=!0x1,this['fire']('reasoningFinished',this));}['_handleToolResultData'](_0x4fe0ad){this['fire']('toolDataReceived',{'type':'result','toolName':_0x4fe0ad['toolName'],'data':structuredClone(_0x4fe0ad['data']||{}),'attributes':structuredClone(_0x4fe0ad['attributes']||{})},this);}['_handleToolNotificationData'](_0x43ba40){this['fire']('toolDataReceived',{'type':'notification','toolName':_0x43ba40['toolName'],'data':structuredClone(_0x43ba40['data'])},this);}['_finalizeInteraction'](){this['isStopped']=!0x0,this['currentRequest']&&this['currentRequest']['abortController']['abort'](),this['currentReply']&&this['currentReply']['done'](),this['currentRequest']=this['currentReply']=void 0x0;}}var AIContextItemType=function(_0x5a37c5){return _0x5a37c5['TOOL']='mcp-tool-context',_0x5a37c5['FILE']='file',_0x5a37c5['DOCUMENT']='document',_0x5a37c5['URL']='web-resource',_0x5a37c5['TEXT']='text',_0x5a37c5['SELECTION']='selection',_0x5a37c5;}({}),AIContextTextResourceType=function(_0x2a8e33){return _0x2a8e33['TEXT']='text',_0x2a8e33['MARKDOWN']='markdown',_0x2a8e33['HTML']='html',_0x2a8e33;}({});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:_0x1ef5ba,config:_0x3a27a8,ownerId:_0x6099ad}){super(),this['_connector']=_0x1ef5ba,this['_config']=_0x3a27a8,this['_ownerId']=_0x6099ad;}['init'](){this['_pendingContextItems']=new Map(),this['_conversationContextItems']=new Map(),this['_ongoingUploads']=new Map(),this['_ongoingUploadOperations']=new Map(),this['_setAddContextOptionsDefaultState']();}['getPendingContextItems'](){return this['_pendingContextItems'];}async['populateFromMessage'](_0x198592){const _0x2fbf76=await this['_createContextItemFromContent'](_0x198592);return this['_addToConversationContextItem'](_0x2fbf76),'current-document'===_0x2fbf76['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x2fbf76;}async['_createContextItemFromContent'](_0x393f2b){if(_0x393f2b['type']===AIContextItemType['DOCUMENT']){const _0x27dc7d=await this['_connector']['fetchDocument'](this['_ownerId'],_0x393f2b['id'])['getDocument']();return{'id':'current-document','uiId':'current-document','label':'Current\x20document','type':_0x393f2b['type'],'content':_0x27dc7d['content'],'hidden':this['_conversationContextItems']['has']('current-document'),'version':_0x27dc7d['attributes']?.['version'],'sessionId':_0x27dc7d['attributes']?.['sessionId']};}if(_0x393f2b['type']===AIContextItemType['TOOL'])return{'id':_0x393f2b['id'],'uiId':_0x393f2b['id'],'label':_0x393f2b['data']?.['label']||_0x393f2b['id'],'type':AIContextItemType['TOOL'],'mcpServerName':_0x393f2b['mcpServerName'],'toolName':_0x393f2b['toolName'],'data':_0x393f2b['data']||{}};return{'id':_0x393f2b['id'],'uiId':_0x393f2b['id'],'label':_0x393f2b['attributes']?.['label']||_0x393f2b['name']||_0x393f2b['url']||_0x393f2b['id'],'type':_0x393f2b['type'],..._0x393f2b?.['attributes']?.['resourceId']?{'resourceId':_0x393f2b['attributes']?.['resourceId']}:{}};}['getSentContextItems'](){return new Map(this['_conversationContextItems']);}['removeFromContext'](_0x298165){const _0x2b76cb=this['_pendingContextItems']['get'](_0x298165);_0x2b76cb?.['isReadOnly']||this['_removeContextItem'](_0x298165);}['clearPendingContextItems'](){if(0x0===this['_pendingContextItems']['size'])return;for(const _0x395c8 of this['_pendingContextItems']['values']())this['_removeContextItem'](_0x395c8['uiId']);const _0x4bf7a0=this['_conversationContextItems']['get']('current-document')||this['_pendingContextItems']['get']('current-document');_0x4bf7a0&&this['_addContextItem']({..._0x4bf7a0,'isReadOnly':!0x0,'hidden':!0x0});}['addToConversationContext'](_0x1681b9){for(const _0x236821 of _0x1681b9['values']())this['_addToConversationContextItem'](_0x236821);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'](_0x12f951){return Array['from'](_0x12f951['values']())['map'](_0x3e67e9=>this['_mapContextItemToRequestData'](_0x3e67e9))['filter'](_0x5ee85d=>null!==_0x5ee85d);}async['addFilesToContext'](_0x29f026,_0x1e77f6,_0x357498=AIContextItemType['FILE']){const _0x5d48cc='files-'+uid();this['_startUploadOperation'](_0x5d48cc);try{await Promise['all'](_0x29f026['map'](async _0x3f4f42=>{const _0x32d932='file-'+uid(),_0x47b38a=escape(_0x3f4f42['name']);try{this['_addContextItem']({'type':_0x357498,'label':_0x1e77f6?.['label']||_0x47b38a,'uiId':_0x32d932,'resourceId':_0x1e77f6?.['resourceId']},!0x0);const _0x4d2c66=this['_connector']['uploadFile'](this['_ownerId'],_0x3f4f42,_0x1e77f6);this['_ongoingUploads']['set'](_0x32d932,_0x4d2c66['abortController']);const {id:_0x49d688}=await _0x4d2c66['getId']();this['_ongoingUploads']['delete'](_0x32d932),this['_finishContextItemLoading']({'type':_0x357498,'id':_0x49d688,'label':_0x1e77f6?.['label']||_0x47b38a,'uiId':_0x32d932,'resourceId':_0x1e77f6?.['resourceId']},!0x1);}catch(_0x3f4424){this['_ongoingUploads']['delete'](_0x32d932);if(!(_0x3f4424 instanceof CKEditorError&&_0x3f4424['message']['startsWith']('ai-request-aborted'))){const _0x4973eb=errorsMap['get'](_0x3f4424['code'])||'ai-chat-file-upload-failed',_0x148f38=new CKEditorError(_0x4973eb,null,{'fileName':_0x47b38a,..._0x3f4424});_0x148f38['stack']=_0x3f4424['stack'],this['fire']('error',{'error':_0x148f38});}this['_removeContextItem'](_0x32d932);}}));}finally{this['_finishUploadOperation'](_0x5d48cc);}}['addCurrentDocumentToContext'](_0x80175f){if(this['isCurrentDocumentInContext']()||!this['_addContextOptionsState']['document']['enabled'])return;const _0x16053f={'type':AIContextItemType['DOCUMENT'],'uiId':'current-document','label':_0x80175f,'isReadOnly':this['_conversationContextItems']['has']('current-document'),'hidden':this['_conversationContextItems']['has']('current-document')};this['_addContextItem'](_0x16053f);}async['updateCurrentDocument'](_0x2d1958,_0x4fd697,_0x2721b8,_0x289a4f){const _0x4324c1=this['_pendingContextItems']['get']('current-document');if(_0x4324c1&&_0x2d1958){_0x4324c1['selection']=_0x289a4f?_0x289a4f['map'](_0x1c96d5=>({'start':_0x1c96d5['start'],'end':_0x1c96d5['end']})):[];try{if(_0x4324c1['version']===_0x4fd697)return;const {id:_0x42adf4}=await this['_connector']['uploadDocument'](this['_ownerId'],_0x2d1958,{'version':_0x4fd697,'sessionId':_0x2721b8})['getId']();_0x4324c1['id']=_0x42adf4,_0x4324c1['content']=_0x2d1958,_0x4324c1['version']=_0x4fd697,_0x4324c1['sessionId']=_0x2721b8;}catch(_0x542887){const _0x56e2bd=new CKEditorError('ai-chat-document-upload-failed',null);_0x56e2bd['stack']=_0x542887['stack'],this['fire']('error',{'error':_0x56e2bd});}}}['addSelectionToContext'](_0x4d9a0b){this['_addContextItem']({'type':AIContextItemType['SELECTION'],'label':_0x4d9a0b,'uiId':'selection','content':_0x4d9a0b});}['removeSelectionFromContext'](){this['_removeContextItem']('selection');}async['addUrlToContext'](_0x5e75de,_0x258b9e){const _0x538180='url-'+uid();this['_startUploadOperation'](_0x538180);const _0x23346e='url-'+uid();try{this['_addContextItem']({'type':AIContextItemType['URL'],'label':_0x258b9e?.['label']||_0x5e75de,'uiId':_0x23346e,'resourceId':_0x258b9e?.['resourceId']},!0x0);const _0x46b7a9=this['_connector']['uploadUrl'](this['_ownerId'],_0x5e75de,_0x258b9e);this['_ongoingUploads']['set'](_0x23346e,_0x46b7a9['abortController']);const {id:_0x409a38}=await _0x46b7a9['getId']();this['_ongoingUploads']['delete'](_0x23346e),this['_finishContextItemLoading']({'type':AIContextItemType['URL'],'id':_0x409a38,'label':_0x258b9e?.['label']||_0x5e75de,'uiId':_0x23346e,'resourceId':_0x258b9e?.['resourceId']},!0x1);}catch(_0x14d7fe){this['_ongoingUploads']['delete'](_0x23346e),(_0x14d7fe['message']['startsWith']('ai-request-aborted')||this['fire']('error',{'error':new CKEditorError('ai-chat-url-upload-failed',this,{'url':_0x5e75de,'originalError':_0x14d7fe}),'url':_0x5e75de}),this['_removeContextItem'](_0x23346e));}finally{this['_finishUploadOperation'](_0x538180);}}['addToolItemToContext'](_0x1b795e){_0x1b795e['id']=_0x1b795e['id']??uid()['substring'](0x0,0x15),this['_pendingContextItems']['set'](_0x1b795e['uiId'],_0x1b795e),this['fire']('contextItemAdded',{'contextItem':_0x1b795e,'isLoading':!0x1});}async['loadSourceResources'](_0x2040f6,_0x1583d3,_0x77d067){const _0x5aaaab=this['_addContextOptionsState']['sources']['find'](_0x20c837=>_0x20c837['id']===_0x2040f6);if(!_0x5aaaab)return this['fire']('error',{'error':new CKEditorError('ai-chat-source-not-found',this,{'sourceId':_0x2040f6}),'sourceId':_0x2040f6}),[];try{const _0x34b36c=(await _0x5aaaab['getResources'](_0x1583d3))['map'](_0x1afa56=>{const _0x490b73=this['_isResourceInContext'](_0x1afa56['id']);return{..._0x1afa56,'isInContext':_0x490b73};});return _0x5aaaab['resources']=_0x34b36c,this['fire']('sourceResourcesLoaded',{'sourceId':_0x2040f6,'source':_0x5aaaab,'resources':_0x34b36c,'uid':_0x77d067}),_0x34b36c;}catch(_0x244357){return this['fire']('error',{'error':new CKEditorError('ai-chat-source-resources-load-failed',this,{'sourceId':_0x2040f6,'originalError':_0x244357}),'sourceId':_0x2040f6,'sourceLabel':_0x5aaaab['label']}),[];}}async['addResourceToContext'](_0x450143,_0x331f03){if(this['_isResourceInContext'](_0x331f03['id']))return;let _0x55dac5=_0x331f03['data'];if(!_0x55dac5&&_0x450143['getData'])try{_0x55dac5=await _0x450143['getData'](_0x331f03['id']);}catch(_0x36e92f){return void this['fire']('error',{'error':new CKEditorError('ai-chat-resource-load-failed',this,{'resourceId':_0x331f03['id'],'sourceId':_0x450143['id'],'originalError':_0x36e92f}),'resourceId':_0x331f03['id'],'sourceId':_0x450143['id']});}if(_0x55dac5)switch(_0x331f03['type']){case AIContextItemType['URL']:if('string'!=typeof _0x55dac5)return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x331f03['id'],'sourceId':_0x450143['id'],'expectedType':'string','actualType':typeof _0x55dac5}),'resourceId':_0x331f03['id'],'sourceId':_0x450143['id']});await this['addUrlToContext'](_0x55dac5,{'label':_0x331f03['label'],'resourceId':_0x331f03['id']});break;case AIContextItemType['FILE']:if(!(_0x55dac5 instanceof File))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x331f03['id'],'sourceId':_0x450143['id'],'expectedType':'File','actualType':typeof _0x55dac5}),'resourceId':_0x331f03['id'],'sourceId':_0x450143['id']});await this['addFilesToContext']([_0x55dac5],{'label':_0x331f03['label'],'resourceId':_0x331f03['id']});break;case AIContextItemType['TEXT']:if('object'!=typeof _0x55dac5||!('content'in _0x55dac5)||!('type'in _0x55dac5))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x331f03['id'],'sourceId':_0x450143['id'],'expectedType':'object\x20with\x20content\x20and\x20type\x20properties','actualType':typeof _0x55dac5}),'resourceId':_0x331f03['id'],'sourceId':_0x450143['id']});_0x55dac5=AIChatContext['_convertTextResourceToFile'](_0x55dac5,_0x331f03['label']),await this['addFilesToContext']([_0x55dac5],{'label':_0x331f03['label'],'resourceId':_0x331f03['id']},AIContextItemType['TEXT']);break;case AIContextItemType['TOOL']:break;default:this['fire']('error',{'error':new CKEditorError('ai-chat-context-unsupported-type',this,{'resourceId':_0x331f03['id'],'sourceId':_0x450143['id'],'resourceType':_0x331f03['type']}),'resourceId':_0x331f03['id'],'sourceId':_0x450143['id']});}else this['fire']('error',{'error':new CKEditorError('ai-chat-resource-no-data',this,{'resourceId':_0x331f03['id'],'sourceId':_0x450143['id']}),'resourceId':_0x331f03['id'],'sourceId':_0x450143['id']});}static['_convertTextResourceToFile'](_0x10f5d8,_0x77897e){switch(_0x10f5d8['type']){case AIContextTextResourceType['MARKDOWN']:return new File([_0x10f5d8['content']],_0x77897e,{'type':'text/markdown'});case AIContextTextResourceType['HTML']:return new File([_0x10f5d8['content']],_0x77897e,{'type':'text/html'});default:return new File([_0x10f5d8['content']],_0x77897e,{'type':'text/plain'});}}static['_mapContextItemToRequestData'](_0x857334){switch(_0x857334['type']){case AIContextItemType['FILE']:return{'type':AIContextItemType['FILE'],'id':_0x857334['id']};case AIContextItemType['URL']:return{'type':AIContextItemType['URL'],'id':_0x857334['id']};case AIContextItemType['DOCUMENT']:return{'type':AIContextItemType['DOCUMENT'],'id':_0x857334['id'],..._0x857334['selection']?.['length']&&{'selection':_0x857334['selection']}};case AIContextItemType['TEXT']:return{'type':AIContextItemType['FILE'],'id':_0x857334['id']};case AIContextItemType['TOOL']:{const _0x45a36a=_0x857334;return{'type':AIContextItemType['TOOL'],'mcpServerName':_0x45a36a['mcpServerName'],'toolName':_0x45a36a['toolName'],'data':_0x45a36a['data'],'id':_0x45a36a['id']};}default:return null;}}['_addContextItem'](_0x2c232c,_0x1716d7=!0x1){if(this['_pendingContextItems']['set'](_0x2c232c['uiId'],_0x2c232c),_0x2c232c['hidden']||this['fire']('contextItemAdded',{'contextItem':_0x2c232c,'isLoading':_0x1716d7}),'current-document'===_0x2c232c['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x2c232c['resourceId']){const _0x5f5999=this['_findSourceIdsByResourceId'](_0x2c232c['resourceId']);_0x5f5999&&_0x5f5999['forEach'](_0xa2df42=>{this['_updateResourceInContextState'](_0xa2df42,_0x2c232c['resourceId'],!0x0);});}}['_removeContextItem'](_0x9b48b8){const _0x1aed1e=this['_pendingContextItems']['get'](_0x9b48b8),_0x505d68=this['_ongoingUploads']['get'](_0x9b48b8);if(_0x505d68&&(_0x505d68['abort'](),this['_ongoingUploads']['delete'](_0x9b48b8)),_0x1aed1e?.['resourceId']){const _0x1e69bb=this['_findSourceIdsByResourceId'](_0x1aed1e['resourceId']);_0x1e69bb&&_0x1e69bb['forEach'](_0x5b6032=>{this['_updateResourceInContextState'](_0x5b6032,_0x1aed1e['resourceId'],!0x1);});}this['_pendingContextItems']['delete'](_0x9b48b8),this['fire']('contextItemRemoved',{'uiId':_0x9b48b8,'type':_0x1aed1e?.['type']}),'current-document'===_0x9b48b8&&this['_toggleAddCurrentDocumentOptionVisibility']();}['_finishContextItemLoading'](_0xb24094,_0x21658a){if(this['_pendingContextItems']['has'](_0xb24094['uiId'])&&(this['_pendingContextItems']['set'](_0xb24094['uiId'],_0xb24094),this['fire']('contextItemLoadingEnded',{'contextItem':_0xb24094,'isLoading':_0x21658a}),_0xb24094['resourceId'])){const _0x1aea66=this['_findSourceIdsByResourceId'](_0xb24094['resourceId']);_0x1aea66&&_0x1aea66['forEach'](_0x2b8be3=>{this['_updateResourceInContextState'](_0x2b8be3,_0xb24094['resourceId'],!0x0);});}}['_addToConversationContextItem'](_0x4f112a){this['_conversationContextItems']['set'](_0x4f112a['uiId'],_0x4f112a);}['_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'](_0xd24abb=>({..._0xd24abb,'enabled':!0x0}))??[]},this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_getCustomSourcesInitialState'](){return this['_config']?.['sources']?.['map'](_0x5def9c=>({..._0x5def9c,'resources':[]}))??[];}['_toggleAddCurrentDocumentOptionVisibility'](){const _0x3f0fe7=this['isCurrentDocumentInContext']()||this['isCurrentDocumentInConversation']();this['_addContextOptionsState']['document']['isHidden']=_0x3f0fe7,this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_isResourceInContext'](_0x1d5dbe){for(const _0x3f18c4 of this['_pendingContextItems']['values']())if(_0x3f18c4['resourceId']===_0x1d5dbe)return!0x0;for(const _0x1b2ceb of this['_conversationContextItems']['values']())if(_0x1b2ceb['resourceId']===_0x1d5dbe)return!0x0;return!0x1;}['_findSourceIdsByResourceId'](_0x1b3d6a){const _0x13aab6=[];for(const _0x589fc3 of this['_addContextOptionsState']['sources']){_0x589fc3['resources']['find'](_0x3e3e9e=>_0x3e3e9e['id']===_0x1b3d6a)&&_0x13aab6['push'](_0x589fc3['id']);}return 0x0===_0x13aab6['length']?null:_0x13aab6;}['_updateResourceInContextState'](_0x1b8297,_0x222d79,_0x301de9){const _0x579600=this['_addContextOptionsState']['sources']['find'](_0x4c943d=>_0x4c943d['id']===_0x1b8297);if(!_0x579600)return;const _0x4c35e1=_0x579600['resources']['find'](_0xa5de6c=>_0xa5de6c['id']===_0x222d79);_0x4c35e1&&(_0x4c35e1['isInContext']=_0x301de9,this['fire']('resourceStateChanged',{'sourceId':_0x1b8297,'resourceId':_0x222d79,'isInContext':_0x301de9}));}['_startUploadOperation'](_0x464b7e){this['_ongoingUploadOperations']['set'](_0x464b7e,!0x0),this['_ongoingUploadOperations']['size']&&this['fire']('uploadProgressChanged',{'isUploadInProgress':!0x0});}['_finishUploadOperation'](_0x44a048){this['_ongoingUploadOperations']['delete'](_0x44a048),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'](_0x228725){const _0x1b8a04={};return _0x228725&&_0x228725['isWebSearchEnabled']&&(_0x1b8a04['webSearch']={}),_0x228725&&_0x228725['isReasoningEnabled']&&(_0x1b8a04['reasoning']={}),_0x1b8a04;}['toggleWebSearch'](){this['setWebSearch'](!this['_isWebSearchEnabled']);}['toggleReasoning'](){this['setReasoning'](!this['_isReasoningEnabled']);}['setWebSearch'](_0x25c638){_0x25c638!==this['_isWebSearchEnabled']&&(this['_isWebSearchEnabled']=_0x25c638,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}['setReasoning'](_0x3c5220){_0x3c5220!==this['_isReasoningEnabled']&&(this['_isReasoningEnabled']=_0x3c5220,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}}class AIChatInteraction extends AIInteraction{['userMessage'];['conversationId'];['contextItems']=new Map();['model'];['attributes'];constructor(_0x4854db){super(_0x4854db),this['conversationId']=_0x4854db['conversationId'],this['contextItems']=_0x4854db['contextItems'],this['capabilities']=_0x4854db['capabilities'],this['userMessage']=_0x4854db['userMessage'],this['model']=_0x4854db['model'],this['attributes']=_0x4854db['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');}}class AIChatConversation extends EmitterMixin(){['id'];['isStarted']=!0x1;['isFromHistory'];['interactions']=[];['currentInteraction'];['selectedModel'];['connector'];['options'];constructor(_0x5b3724){super(),this['options']=_0x5b3724,this['connector']=_0x5b3724['connector'],this['chatModels']=_0x5b3724['chatModels'],this['id']=_0x5b3724['conversationId'],this['isFromHistory']=_0x5b3724['isFromHistory'];}async['init'](_0x4e01a8){try{this['chatContext']=new AIChatContext({'connector':this['connector'],'config':_0x4e01a8,'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 _0x481264=await this['chatModels']['getAvailableModels']();this['fire']('conversationInitialized',{'availableModels':_0x481264});const _0x34281d=await this['chatModels']['getModel'](this['options']['selectedModelId']);_0x34281d&&await this['setModel'](_0x34281d);}catch(_0x567097){const _0x4f173b=new CKEditorError('ai-chat-conversation-init-failed',null,{'message':_0x567097['message']||_0x567097});_0x4f173b['stack']=_0x567097['stack'],this['fire']('error',{'error':_0x4f173b});}}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:_0x13b710}=await this['connector']['startConversation'](this['id'],this['options']['group'])['getConversation']();this['id']=_0x13b710,this['isStarted']=!0x0,this['fire']('conversationStarted',{'conversationId':this['id'],'selectedModel':this['selectedModel']});}catch(_0x411466){const _0x929386=new CKEditorError('ai-chat-conversation-start-failed',null,{'message':_0x411466['message'],'conversationId':this['id']});throw _0x929386['stack']=_0x411466['stack'],this['fire']('error',{'error':_0x929386}),_0x929386;}}async['load'](_0x478a6,_0x54bfe2){try{const _0x5903c1=await this['connector']['fetchConversation'](_0x478a6)['getConversation'](),_0x1fd045=await this['connector']['fetchConversationMessages'](_0x478a6)['getMessages'](),_0x39c42c=_0x1fd045[0x0]['model'];this['isStarted']=!0x0,this['id']=_0x5903c1['id'],'title'in _0x5903c1?this['fire']('setConversationTitle',_0x5903c1['title'],!0x0):this['fire']('setConversationTitle','',!0x0);const _0x1bafb9=(await this['chatModels']['getAll']())['find'](_0x548d6f=>_0x548d6f['id']['toLowerCase']()===_0x39c42c['toLowerCase']());return this['selectedModel']=_0x1bafb9,this['fire']('modelSelected',{'selectedModel':_0x1bafb9,'isDisabled':!0x0}),await this['_processMessagesToInteractions'](_0x1fd045,_0x54bfe2,_0x39c42c),this['currentInteraction']=void 0x0,this;}catch(_0x5bc715){const _0x242df0=new CKEditorError('ai-chat-conversation-init-from-id-failed',null,{'message':_0x5bc715['message'],'conversationId':_0x478a6});throw _0x242df0['stack']=_0x5bc715['stack'],this['fire']('error',{'error':_0x242df0}),_0x242df0;}}async['_processMessagesToInteractions'](_0x365437,_0x3e5b8f,_0x53e50d){let _0x56dfe7;for(const _0x295c34 of _0x365437)if('user'===_0x295c34['role']){const _0x44250d=await this['_extractContextItems'](_0x295c34),_0xb38580={'isReasoningEnabled':Object['hasOwn'](_0x295c34['capabilities'],'reasoning'),'isWebSearchEnabled':Object['hasOwn'](_0x295c34['capabilities'],'webSearch')};_0x56dfe7=this['createInteraction']({'userMessage':_0x295c34['prompt'],'contextItems':_0x44250d,'capabilities':_0xb38580,'modelId':_0x53e50d,'attributes':_0x295c34['attributes']}),this['currentInteraction']=_0x56dfe7,this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}else{if('assistant'===_0x295c34['role']&&_0x56dfe7){const _0x55aebd=[];for(const _0x369ec4 of _0x295c34['content'])switch(_0x369ec4['type']){case'text':case'modification':{const _0x4c7559=_0x56dfe7['getDocumentContext']()?.['sessionId']!==_0x3e5b8f;_0x56dfe7['currentReply']=_0x56dfe7['createReply']({'type':_0x369ec4['type'],'isDone':!0x0,'interactionId':_0x56dfe7['id'],'areActionsDisabled':_0x4c7559}),_0x56dfe7['currentReply']['appendContent'](_0x369ec4['content']),_0x55aebd['length']>0x0&&(_0x56dfe7['currentReply']['sources']=_0x55aebd['splice'](0x0));break;}case'url':_0x55aebd['push'](_0x369ec4);break;case'mcp-tool-result':{const {data:_0x5c3725,attributes:_0x57a351}=JSON['parse'](_0x369ec4['content']);_0x56dfe7['_handleToolResultData']({'toolName':_0x369ec4['toolName'],'data':_0x5c3725,'attributes':_0x57a351});break;}}}}}async['_extractContextItems'](_0x1fe24b){const _0x4b6449=new Map();if(!_0x1fe24b['content'])return _0x4b6449;for(const _0x537947 of _0x1fe24b['content']){const _0x51bd2f=await this['chatContext']['populateFromMessage'](_0x537947);_0x51bd2f&&_0x4b6449['set'](_0x51bd2f['id'],_0x51bd2f);}return _0x4b6449;}async['handleUserInteraction']({userMessage:_0x30f52e,attributes:_0x250a2c}){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 _0x47bf61=this['chatContext']['getPendingContextItems'](),_0x59ae11=this['chatCapabilities']['getCapabilitiesConfig'](),_0xe84aff=this['selectedModel']['id'];this['currentInteraction']=this['createInteraction']({'userMessage':_0x30f52e,'contextItems':_0x47bf61,'capabilities':_0x59ae11,'modelId':_0xe84aff,'attributes':_0x250a2c}),await this['currentInteraction']['start'](),this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}catch(_0x876d1b){if(_0x876d1b instanceof CKEditorError)this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':_0x876d1b});else{const _0x491c5c=errorsMap['get'](_0x876d1b['code'])||'ai-chat-handle-user-interaction-start-failed';this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':new CKEditorError(_0x491c5c,null,{'error':_0x876d1b})});}}finally{this['currentInteraction']?.['stop'](),this['currentInteraction']=void 0x0;}}['createInteraction']({userMessage:_0x1e276f,contextItems:_0x48364f,capabilities:_0x5648c1,modelId:_0x17fcd2,attributes:_0x19b377}){const _0x280d14=new AIChatInteraction({'userMessage':_0x1e276f,'contextItems':_0x48364f,'capabilities':_0x5648c1,'conversationId':this['id'],'connector':this['connector'],'editor':this['options']['getEditor']&&this['options']['getEditor'](),'model':_0x17fcd2,'attributes':_0x19b377});return _0x280d14['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['interactions']['push'](_0x280d14),this['fire']('interactionCreated',_0x280d14),_0x280d14;}['getInteraction'](_0x172e85){return this['interactions']['find'](_0xa31ee7=>_0xa31ee7['id']===_0x172e85);}['removeInteraction'](_0x114dc6){const _0x3509dc=this['getInteraction'](_0x114dc6);_0x3509dc&&(_0x3509dc['destroy'](),this['interactions']['splice'](this['interactions']['indexOf'](_0x3509dc),0x1));}get['lastInteraction'](){return this['interactions'][this['interactions']['length']-0x1];}['addCurrentDocumentToContext'](_0x2089f5){this['chatContext']['addCurrentDocumentToContext'](_0x2089f5);}async['updateCurrentDocumentInContext']({content:_0x58be23,version:_0x59696c,sessionId:_0x4f7f9f,selections:_0x1c81aa}){await this['chatContext']['updateCurrentDocument'](_0x58be23,_0x59696c,_0x4f7f9f,_0x1c81aa);}['getCurrentDocumentContext'](){return this['currentInteraction']?.['getDocumentContext']()?.['content']||'';}['addSelectionToContext'](_0x2ad4ca){this['chatContext']['addSelectionToContext'](_0x2ad4ca);}['removeSelectionFromContext'](){this['chatContext']['removeSelectionFromContext']();}['addFilesToContext'](_0xc4e4dc){this['chatContext']['addFilesToContext'](_0xc4e4dc);}['addUrlToContext'](_0x5bbec1){this['chatContext']['addUrlToContext'](_0x5bbec1);}['addToolItemToContext'](_0x5d0544){this['chatContext']['addToolItemToContext'](_0x5d0544);}['addResourceToContext'](_0x11493f,_0x5d1b91){this['chatContext']['addResourceToContext'](_0x11493f,_0x5d1b91);}['loadSourceResources'](_0xb2f224,_0x5bd6f3,_0x8a329f){return this['chatContext']['loadSourceResources'](_0xb2f224,_0x5bd6f3,_0x8a329f);}['removeFromContext'](_0x99cf4b){this['chatContext']['removeFromContext'](_0x99cf4b);}['setWebSearch'](_0x4c0e2a){this['chatCapabilities']['setWebSearch'](_0x4c0e2a);}['toggleWebSearch'](){this['chatCapabilities']['toggleWebSearch']();}['setReasoning'](_0x2f692e){this['chatCapabilities']['setReasoning'](_0x2f692e);}['toggleReasoning'](){this['chatCapabilities']['toggleReasoning']();}['isCurrentDocumentInContext'](){return this['chatContext']['isCurrentDocumentInContext']();}['isCurrentDocumentInConversation'](){return this['chatContext']['isCurrentDocumentInConversation']();}['isSelectionInContext'](){return this['chatContext']['isSelectionInContext']();}async['setModel'](_0xe7ab53){_0xe7ab53?!0x1===await this['chatModels']['isAvailable'](_0xe7ab53)&&(logWarning('ai-chat-conversation-set-model-not-available',{'conversation':this,'model':_0xe7ab53}),_0xe7ab53=(await this['chatModels']['getAvailableModels']())[0x0]):(logWarning('ai-chat-conversation-set-model-null',{'conversation':this}),_0xe7ab53=(await this['chatModels']['getAvailableModels']())[0x0]),_0xe7ab53['id']!==this['selectedModel']?.['id']&&(this['selectedModel']=_0xe7ab53,this['chatCapabilities']['reset'](),this['fire']('modelSelected',{'selectedModel':_0xe7ab53}));}}class AIModels extends EmitterMixin(){['_connector'];['_config'];['_locale'];['_modelList']=[];['_modelsRequest']=null;constructor({connector:_0x288ae8,config:_0x258b5e,locale:_0x4ce4fd}){super(),this['_connector']=_0x288ae8,this['_config']=_0x258b5e,this['_locale']=_0x4ce4fd;}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 _0x421bcc=await this['getAll']();let _0x456a0e;return _0x456a0e=this['_availableModels']?this['_filterModels'](_0x421bcc,this['_availableModels']):_0x421bcc['filter'](_0x333e6e=>_0x333e6e['recommended']),_0x456a0e;}async['getModel'](_0xf98c7f){const _0x700978=await this['getAll']();if(!_0x700978['length'])return null;if(_0xf98c7f){const _0x3cb3d0=this['_getModelById'](_0x700978,_0xf98c7f);if(_0x3cb3d0)return _0x3cb3d0;logWarning('ai-chat-model-id-unrecognized',{'modelId':_0xf98c7f,'fallBackModelId':this['_defaultModelId']});}return this['getDefault']();}async['getDefault'](){const _0x48f8ef=await this['getAvailableModels']();if(!_0x48f8ef['length'])return null;if(this['_defaultModelId']){const _0x5605bd=this['_getModelById'](_0x48f8ef,this['_defaultModelId']);if(_0x5605bd)return _0x5605bd;logWarning('ai-chat-default-model-id-unrecognized',{'defaultModelId':this['_defaultModelId'],'fallBackModelId':_0x48f8ef[0x0]['id']});}return _0x48f8ef[0x0];}async['isAvailable'](_0x55b756){return(await this['getAvailableModels']())['some'](_0x28065c=>_0x28065c['name']===_0x55b756['name']&&_0x28065c['provider']===_0x55b756['provider']);}async['_retrieveModels'](){if(!this['_modelList']['length'])try{const _0x486459=this['_locale']['uiLanguage']||'en',_0x4f0cd4=this['_connector']['getModels'](_0x486459),_0x2f4d63=await _0x4f0cd4['list']();this['_modelList']=_0x2f4d63['items']['map'](_0x45c134=>isAutoModel(_0x45c134)?{..._0x45c134,'name':getTranslation$i(this['_locale'],'AI_MODEL_NAME_AUTO')}:_0x45c134);}catch(_0x2be725){throw logError('ai-models-unable-to-retrieve',{'error':_0x2be725}),_0x2be725;}return[...this['_modelList']];}['_filterModels'](_0x2b01bc,_0x47005f){let _0x4e177b;if(_0x47005f){_0x4e177b=[];const _0x33b15d=new Set(),_0x32f055='string'==typeof _0x47005f?[_0x47005f['toLocaleLowerCase']()]:_0x47005f['map'](_0x589f96=>_0x589f96['toLocaleLowerCase']());for(const _0xd4c906 of _0x32f055)for(const _0xdbc09e of _0x2b01bc)!_0x33b15d['has'](_0xdbc09e['id'])&&this['_isMatchingFilter'](_0xdbc09e,_0xd4c906)&&(_0x4e177b['push'](_0xdbc09e),_0x33b15d['add'](_0xdbc09e['id']));}else _0x4e177b=_0x2b01bc;return _0x4e177b;}['_isMatchingFilter'](_0x52b30f,_0x4350c4){const _0x209fb7=_0x52b30f['id']['toLocaleLowerCase'](),_0xdca5ae=_0x52b30f['name']['toLocaleLowerCase'](),_0xc8cb13=_0x52b30f['provider']['toLocaleLowerCase']();return _0x209fb7===_0x4350c4||_0xdca5ae===_0x4350c4||isAutoModel(_0x52b30f)&&'auto'===_0x4350c4||_0xc8cb13===_0x4350c4||_0x209fb7['startsWith'](_0x4350c4);}['_getModelById'](_0x3c2f3b,_0x862f2c){return _0x3c2f3b['find'](_0x5e222d=>isAutoModel(_0x5e222d)&&'auto'===_0x862f2c?_0x5e222d:_0x5e222d['id']===_0x862f2c)||null;}}function isAutoModel(_0x139a15){return _0x139a15['id']['startsWith']('agent');}function getEditorFromContext(_0x1dc10d){if(_0x1dc10d instanceof Editor)return _0x1dc10d;if(_0x1dc10d?.['editors']&&_0x1dc10d['editors']['get'](0x0))return _0x1dc10d['editors']['length']>0x1&&console['warn']('AIChat:\x20Multiple\x20editor\x20instances\x20detected.\x20Only\x20the\x20first\x20editor\x20instance\x20will\x20be\x20used\x20for\x20AI\x20operations.\x20This\x20configuration\x20is\x20not\x20fully\x20supported\x20and\x20may\x20lead\x20to\x20unexpected\x20behavior.'),_0x1dc10d['editors']['get'](0x0);throw new CKEditorError('ai-get-editor-from-context-no-editor');}function getOperationsFromReply({editor:_0x5f1089,interaction:_0x251f24,reply:_0x552f57,groups:_0x28db4d,transform:_0x1f850a,documentCompare:_0x1c30e0,documentCompareOptions:_0xe09108}){const _0xebbf52=_0x251f24['getDocumentContext']();if(!_0xebbf52)return[];const _0x3ab3a4=_0xebbf52['content'],_0x97ab09=_0xebbf52['version'],_0x55dfcd=_0x552f57['documentContextContent']['cloneNode'](!0x0);for(const {changes:_0x2ab317}of _0x28db4d){const _0x5f4090=_0x2ab317['filter'](_0x4a55e2=>'new'!=_0x4a55e2['type'])['map'](_0xe3ca59=>findByAttribute('data-id',_0xe3ca59['id'],_0x55dfcd)),_0x1fa51b=_0x2ab317['filter'](_0x1c8448=>'removed'!=_0x1c8448['type'])['map'](_0x3cbf30=>_0x3cbf30['node']['cloneNode'](!0x0));let _0x5d453b=null;if(_0x5f4090['length']){_0x5d453b=_0x5f4090[0x0]['previousSibling'];for(let _0x4c09e5=0x0;_0x4c09e5<_0x5f4090['length'];_0x4c09e5++)removeElement(_0x5f4090[_0x4c09e5]);}if(_0x1fa51b['length']){_0x5d453b||(_0x2ab317[0x0]['anchorId']?_0x5d453b=findByAttribute('data-id',_0x2ab317[0x0]['anchorId'],_0x55dfcd):(_0x5d453b=_0x1fa51b['shift'](),prependChild(_0x55dfcd,_0x5d453b)));for(let _0x4e0263=0x0;_0x4e0263<_0x1fa51b['length'];_0x4e0263++)append(_0x5d453b,_0x1fa51b[_0x4e0263]),_0x5d453b=_0x1fa51b[_0x4e0263];}}const _0x5e5a1e=serialize(_0x55dfcd),_0x465038=_0x1c30e0['getDiff'](_0x3ab3a4,_0x5e5a1e,_0xe09108)['getOperations']();if(_0x1f850a){const _0x288513=_0x5f1089['model']['document']['history']['getOperations'](_0x97ab09),_0x1a3957={'document':_0x5f1089['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1};return transformOperationSets(_0x465038,_0x288513,_0x1a3957)['operationsA'];}return _0x465038;}function fixMarkerOperationOldRange(_0x7805ba,_0x4ed833){if('marker'!=_0x4ed833['type'])return;const _0x4df851=_0x7805ba['model']['markers']['get'](_0x4ed833['name']);_0x4df851&&(_0x4ed833['oldRange']=_0x4df851['getRange']());}class AIChatController extends ContextPlugin{['_aiEditing'];['_aiConnector'];['_aiChatUi'];['_aiChatModels'];['_aiChatBalloon'];['_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 _0x341f4b=this['context']['plugins']['get']('AITabs');this['listenTo'](this['_aiChatUi'],'startConversation',()=>{this['_startConversationSafely']();}),this['listenTo'](this['_aiChatUi'],'sendUserMessage',(_0x177ae2,_0x58d230)=>{this['_handleUIUserMessage']({'userMessage':_0x58d230});}),this['listenTo'](_0x341f4b,'resizedTabs',(_0x5c09fc,_0x8d376c)=>{this['_setIsMaximized'](_0x8d376c);}),this['listenTo'](this['_aiChatUi'],'resizeTabs',()=>{_0x341f4b['resize']();}),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',(_0x1888d8,_0x58edd0)=>{this['activeConversation']?.['addFilesToContext'](Array['from'](_0x58edd0));}),this['listenTo'](this['_aiChatUi'],'addUrlToContext',(_0x11b228,_0x53ea4c)=>{this['activeConversation']?.['addUrlToContext'](_0x53ea4c);}),this['listenTo'](this['_aiChatUi'],'executeCustomItemCallback',(_0x2cd5af,_0x78f74)=>{_0x78f74['callback'](this['context']);}),this['listenTo'](this['_aiChatUi'],'addResourceToContext',(_0x375efb,_0xa33ec)=>{this['activeConversation']?.['addResourceToContext'](_0xa33ec['source'],_0xa33ec['resource']);}),this['listenTo'](this['_aiChatUi'],'removeContextItem',(_0x58d459,_0xd019a1)=>{this['_removeFromContext'](_0xd019a1);}),this['listenTo'](this['_aiChatUi'],'loadSourceResources',(_0x475de5,_0x713dc0)=>{this['activeConversation']?.['loadSourceResources'](_0x713dc0['sourceId'],_0x713dc0['query'],_0x713dc0['uid']);}),this['listenTo'](this['_aiChatUi'],'toggleWebSearch',()=>{this['_toggleWebSearch']();}),this['listenTo'](this['_aiChatUi'],'toggleReasoning',()=>{this['_toggleReasoning']();}),this['listenTo'](this['_aiChatUi'],'selectModel',(_0x4c81b4,_0x592563)=>{this['activeConversation']?.['setModel'](_0x592563);}),this['listenTo'](this['_aiChatUi'],'like',(_0x7cac99,{replyId:_0x53b3a5})=>{console['log']('Liked\x20response',_0x53b3a5);}),this['listenTo'](this['_aiChatUi'],'dislike',(_0x59ff35,{replyId:_0x5d1694})=>{console['log']('Disliked\x20response',_0x5d1694);}),this['listenTo'](this['_aiChatUi'],'insertSuggestion',(_0x37c81b,_0x393091)=>{this['_insertSuggestion'](_0x393091);}),this['listenTo'](this['_aiChatUi'],'showChangeInText',(_0x120bb4,{replyId:_0x33314d,partIndex:_0x1230d2})=>{this['_aiChatBalloonShowDiff']=this['_aiChatUi']['showDiff'],this['_openBalloonFor'](_0x33314d,_0x1230d2);}),this['listenTo'](this['_aiChatUi'],'mouseOverSuggestion',(_0x4e739f,{replyId:_0xd19a9e,partIndex:_0x27913c})=>{const _0x1b2587=this['_getDocumentRangeForReplyChanges'](_0xd19a9e,_0x27913c);_0x1b2587&&'$graveyard'!=_0x1b2587['range']['root']['rootName']&&this['_aiEditing']['showFakeVisualSelection']([_0x1b2587['range']],'ai-chat-controller-mouse-over');}),this['listenTo'](this['_aiChatUi'],'mouseLeaveSuggestion',()=>{this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['listenTo'](this['_aiChatUi'],'applySuggestion',(_0x1360a6,_0x1aab25)=>{this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over'),this['_applySuggestion'](_0x1aab25);}),this['listenTo'](this['_aiChatUi'],'toggleSuggestionDisplayMode',async(_0x35970f,{replyId:_0x12dbe7,showDiff:_0x2c46dc})=>{const {reply:_0x4c7c9a}=this['getInteractionAndReplyById'](_0x12dbe7),_0x478fea=_0x4c7c9a['getContentParts']({'showDiff':_0x2c46dc});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x4c7c9a['id'],'parts':_0x478fea,'renderingStrategy':'static'});}),this['listenTo'](this['_aiChatUi'],'rejectSuggestion',(_0x5c1d2f,{replyId:_0x1d1b5b,partIndex:_0x318e4c})=>{this['_rejectSuggestion']({'replyId':_0x1d1b5b,'partIndex':_0x318e4c}),this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['context']['plugins']['has']('AIChatBalloon')&&(this['_aiChatBalloon']=this['context']['plugins']['get']('AIChatBalloon'),this['set']('_aiChatBalloonShowDiff',!0x1),this['_aiChatBalloon']['bind']('showDiff')['to'](this,'_aiChatBalloonShowDiff'),this['listenTo'](this['_aiChatBalloon'],'toggleSuggestionDisplayMode',()=>{const {replyId:_0x2a28a3,partIndex:_0x308704}=this['_currentPreviewedChangeGroup'];this['_aiChatBalloonShowDiff']=!this['_aiChatBalloonShowDiff'];const {reply:_0x36416f}=this['getInteractionAndReplyById'](_0x2a28a3),_0x5ac334=_0x36416f['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff'],'groupIndex':_0x308704});this['_aiChatBalloon']['updateContent']({'part':_0x5ac334[0x0],'renderingStrategy':'static','keepErrors':!0x0});}),this['listenTo'](this['_aiChatBalloon'],'applySuggestion',()=>{const {replyId:_0x21156e,partIndex:_0x1e3bc2}=this['_currentPreviewedChangeGroup'];this['_applySuggestion']({'replyId':_0x21156e,'partIndex':_0x1e3bc2}),this['_aiChatBalloon']['setState']('accepted');}),this['listenTo'](this['_aiChatBalloon'],'insertSuggestion',()=>{const {replyId:_0x428708,partIndex:_0x2b241b}=this['_currentPreviewedChangeGroup'];this['_insertSuggestion']({'replyId':_0x428708,'partIndex':_0x2b241b}),this['_aiChatBalloon']['setState']('accepted');}),this['listenTo'](this['_aiChatBalloon'],'rejectSuggestion',()=>{const {replyId:_0x3d40ff,partIndex:_0x42d616}=this['_currentPreviewedChangeGroup'];this['_rejectSuggestion']({'replyId':_0x3d40ff,'partIndex':_0x42d616}),this['_aiChatBalloon']['setState']('rejected');}),this['listenTo'](this['_aiChatBalloon'],'showNext',()=>{const {replyId:_0x2c2537,partIndex:_0x2a8a04}=this['_currentPreviewedChangeGroup'],_0x11bf75=this['_getPresentableSiblingContentPartIndex'](_0x2c2537,_0x2a8a04,'next');null!==_0x11bf75&&this['_openBalloonFor'](_0x2c2537,_0x11bf75);}),this['listenTo'](this['_aiChatBalloon'],'showPrevious',()=>{const {replyId:_0xab7183,partIndex:_0x44ceab}=this['_currentPreviewedChangeGroup'],_0x2e91a8=this['_getPresentableSiblingContentPartIndex'](_0xab7183,_0x44ceab,'previous');null!==_0x2e91a8&&this['_openBalloonFor'](_0xab7183,_0x2e91a8);}),this['listenTo'](this['_aiChatBalloon'],'dialogClosed',(_0x12d6dc,{id:_0x2f834c})=>{if('aiChatBalloon'!==_0x2f834c)return;const {replyId:_0x478e4e,partIndex:_0x3afea6}=this['_currentPreviewedChangeGroup'];this['_currentPreviewedChangeGroup']=null,this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x478e4e,'index':_0x3afea6,'isActive':!0x1});}));}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x446c18,_0x442eb4)=>{_0x442eb4['on']('ready',()=>{this['_integrateEditor'](_0x442eb4);});});const _0x4277b4=this['context']['config']['get']('ai.chat.initialConversation');let _0x3c846c=_0x4277b4;if('lastCreated'!=_0x4277b4||(_0x3c846c=await this['_getLastCreatedConversationId'](),_0x3c846c))return'new'==_0x3c846c?this['_startConversationSafely']():this['loadConversation'](_0x3c846c);}async['destroy'](){return await this['_stopLastInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['_insertSuggestion'](_0x37d8be){const _0x57419d=getEditorFromContext(this['context']);if(!_0x57419d['plugins']['has']('TrackChanges'))throw new CKEditorError('ai-no-track-changes',null);const _0x407247=this['context']['plugins']['get']('DocumentCompare'),{reply:_0x4d1d24,interaction:_0x528787}=this['getInteractionAndReplyById'](_0x37d8be['replyId']),_0xea603=this['_getDocumentRangeForReplyChanges'](_0x37d8be['replyId'],_0x37d8be['partIndex']),_0x1f0c23=void 0x0!==_0x37d8be['partIndex']?[_0x4d1d24['changeGroups'][_0x37d8be['partIndex']]]:_0x4d1d24['changeGroups']['filter'](_0x2f3566=>'pending'==_0x2f3566['state']),_0x45396f=_0x1f0c23['map'](_0x1815d3=>_0x4d1d24['changeGroups']['indexOf'](_0x1815d3));if(!_0xea603||'$graveyard'==_0xea603['range']['root']['rootName'])return void _0x45396f['forEach'](_0x177ae5=>_0x4d1d24['setChangeGroupState'](_0x177ae5,'outdated'));_0x45396f['forEach'](_0x1ce260=>_0x4d1d24['setChangeGroupState'](_0x1ce260,'accepted'));const _0x1eff49=getOperationsFromReply({'editor':_0x57419d,'reply':_0x4d1d24,'interaction':_0x528787,'groups':_0x1f0c23,'transform':!0x0,'documentCompare':_0x407247,'documentCompareOptions':{'anchor':'main','markDeletions':!0x0}});let _0x746d81;_0xea603&&this['_scrollToSuggestionRange'](_0xea603['range']),_0x57419d['model']['change'](_0x2f64c2=>{_0x746d81=_0x2f64c2['batch'],_0x57419d['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x1eff49),this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['_batchToChanges']['set'](_0x746d81,{'interactionId':_0x528787['id'],'replyId':_0x4d1d24['id'],'indexes':_0x45396f['slice']()}),this['_updateRatings'](_0x4d1d24);}['_applySuggestion'](_0x499325){const _0x281616=getEditorFromContext(this['context']),_0xfd361a=this['context']['plugins']['get'](DocumentCompare),{reply:_0x5d5dd6,interaction:_0x41e1e4}=this['getInteractionAndReplyById'](_0x499325['replyId']),_0x266083=this['_getDocumentRangeForReplyChanges'](_0x499325['replyId'],_0x499325['partIndex']),_0x15744c=void 0x0!==_0x499325['partIndex']?[_0x5d5dd6['changeGroups'][_0x499325['partIndex']]]:_0x5d5dd6['changeGroups']['filter'](_0x5c5694=>'pending'==_0x5c5694['state']),_0x58ac29=_0x15744c['map'](_0x315809=>_0x5d5dd6['changeGroups']['indexOf'](_0x315809));if(!_0x266083||'$graveyard'==_0x266083['range']['root']['rootName'])return void _0x58ac29['forEach'](_0x507ccb=>_0x5d5dd6['setChangeGroupState'](_0x507ccb,'outdated'));_0x58ac29['forEach'](_0x5a485b=>_0x5d5dd6['setChangeGroupState'](_0x5a485b,'accepted'));const _0xb255a=getOperationsFromReply({'editor':_0x281616,'reply':_0x5d5dd6,'interaction':_0x41e1e4,'groups':_0x15744c,'transform':!0x0,'documentCompare':_0xfd361a,'documentCompareOptions':{'anchor':'main','markDeletions':!0x1}});let _0x457488;_0x266083&&this['_scrollToSuggestionRange'](_0x266083['range']),_0x281616['model']['change'](_0x3f9d5a=>{_0x457488=_0x3f9d5a['batch'];for(const _0x10c63b of _0xb255a)_0x10c63b['baseVersion']=_0x281616['model']['document']['version'],fixMarkerOperationOldRange(_0x281616,_0x10c63b),_0x3f9d5a['batch']['addOperation'](_0x10c63b),_0x281616['model']['applyOperation'](_0x10c63b);}),this['_batchToChanges']['set'](_0x457488,{'interactionId':_0x41e1e4['id'],'replyId':_0x5d5dd6['id'],'indexes':_0x58ac29['slice']()}),this['_updateRatings'](_0x5d5dd6);}['_rejectSuggestion'](_0x297c5a){const {reply:_0x383033}=this['getInteractionAndReplyById'](_0x297c5a['replyId']);_0x383033['setChangeGroupState'](_0x297c5a['partIndex'],'rejected');}['_openBalloonFor'](_0x1128a0,_0x2b06ab){if(!this['_aiChatBalloon'])return;const {reply:_0x1101c0}=this['getInteractionAndReplyById'](_0x1128a0),_0x57ff0b=_0x1101c0['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff']});let _0x1f7693,_0x4c3006;if(void 0x0!==_0x2b06ab?(_0x4c3006=_0x57ff0b['find'](_0x486840=>_0x486840['index']==_0x2b06ab),_0x1f7693=_0x4c3006?.['index']):(_0x4c3006=_0x57ff0b[0x0],_0x1f7693=_0x4c3006['index']),this['_currentPreviewedChangeGroup']?.['replyId']==_0x1128a0&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0x1f7693)return;const _0x18f632=this['_getUserPresentableContentPartDocumentRange'](_0x1128a0,_0x1101c0,_0x4c3006);if(!_0x18f632)return void this['_aiChatBalloon']['close']();this['_currentPreviewedChangeGroup']={'replyId':_0x1128a0,'partIndex':_0x1f7693},this['_scrollToSuggestionRange'](_0x18f632,!0x0);const _0x1ea6c2=this['_getPresentableSiblingContentPartIndex'](_0x1128a0,_0x1f7693,'next');this['_aiChatBalloon']['updateContent']({'part':_0x4c3006,'renderingStrategy':'static'}),this['_aiChatBalloon']['open']({'index':_0x1f7693,'title':getTranslation$i(this['context']['locale'],'AI_BALLOON_HEADER_TITLE',(_0x1f7693+0x1)['toString']()),'showRotator':null!==_0x1ea6c2,'ranges':[_0x18f632],'areActionsDisabled':_0x1101c0['areActionsDisabled']}),this['_aiChatBalloon']['setState']('pending'),this['_aiChatUi']['scrollFeedToSuggestion'](_0x1128a0,_0x1f7693),this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x1128a0,'index':_0x1f7693,'isActive':!0x0});}['_getPresentableSiblingContentPartIndex'](_0x1dec84,_0x31b0ab,_0x4de66a){const {reply:_0x4aa139}=this['getInteractionAndReplyById'](_0x1dec84),_0x4aabef=_0x4aa139['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff']});if(0x1==_0x4aabef['length'])return null;const _0x20c114=_0x4aabef['findIndex'](_0x3b5df8=>_0x3b5df8['index']==_0x31b0ab),_0xc10a2a='next'==_0x4de66a?0x1:-0x1;let _0x860673=_0x4aabef['at']((_0x20c114+_0xc10a2a)%_0x4aabef['length'])['index'],_0x44f552=_0x4aabef[_0x860673];for(;!this['_getUserPresentableContentPartDocumentRange'](_0x1dec84,_0x4aa139,_0x44f552);){if(_0x860673=_0x4aabef['at']((_0x860673+_0xc10a2a)%_0x4aabef['length'])['index'],_0x860673===_0x20c114)return null;_0x44f552=_0x4aabef[_0x860673];}return _0x860673;}['_getUserPresentableContentPartDocumentRange'](_0x5b5b98,_0x39db06,_0x3b7715){const _0x3a347b=_0x39db06['changeGroups'];if(!_0x3b7715['hasChanges'])return null;const _0x411104=_0x3a347b['find'](_0x25283d=>_0x25283d['index']==_0x3b7715['index']);if('pending'!==_0x411104?.['state'])return null;const _0x18b87a=this['_getDocumentRangeForReplyChanges'](_0x5b5b98,_0x3b7715['index']);if(!_0x18b87a)return null;const {range:_0x543057,currentIndex:_0x36928f}=_0x18b87a;return'$graveyard'==_0x543057['root']['rootName']?(_0x39db06['setChangeGroupState'](_0x36928f,'outdated'),null):_0x18b87a['range'];}['_getDocumentRangeForReplyChanges'](_0x17bd9a,_0x24e6e6){const _0x1f9659=getEditorFromContext(this['context']),{reply:_0x5d7149,interaction:_0x4306b5}=this['getInteractionAndReplyById'](_0x17bd9a),_0x1ae6ff=_0x5d7149['changeGroups']['filter'](_0x27555d=>'pending'==_0x27555d['state']),_0x42eb23=_0x1ae6ff['map'](_0x2916df=>_0x5d7149['changeGroups']['indexOf'](_0x2916df));void 0x0===_0x24e6e6&&(_0x24e6e6=_0x42eb23[0x0]);const _0x23749=_0x42eb23['indexOf'](_0x24e6e6);if(-0x1==_0x23749)return null;const _0x45e1b7=_0x1ae6ff[_0x23749],_0x17e330=new Document([]),_0x38acd3=new Document([]);for(const _0x30308a of _0x45e1b7['changes'])if('removed'!=_0x30308a['type']&&_0x38acd3['children']['push'](_0x30308a['node']['cloneNode'](!0x0)),'new'!=_0x30308a['type']){const _0x3bf606=findOne(_0x2ff649=>getAttribute(_0x2ff649,'data-id')==_0x30308a['id'],_0x5d7149['documentContextContent'],!0x0);_0x17e330['children']['push'](_0x3bf606['cloneNode'](!0x0));}if(0x0==_0x17e330['children']['length']){if(_0x45e1b7['changes'][0x0]['anchorId']){const _0x3c5107=findByAttribute('data-id',_0x45e1b7['changes'][0x0]['anchorId'],_0x5d7149['documentContextContent']);_0x17e330['children']['unshift'](_0x3c5107['cloneNode'](!0x0)),_0x38acd3['children']['unshift'](_0x3c5107['cloneNode'](!0x0)),_0x3c5107['nextSibling']&&(_0x17e330['children']['push'](_0x3c5107['nextSibling']['cloneNode'](!0x0)),_0x38acd3['children']['push'](_0x3c5107['nextSibling']['cloneNode'](!0x0)));}else{const _0x4cac72=_0x5d7149['documentContextContent']['children'][0x0];if(!_0x4cac72)return null;_0x17e330['children']['push'](_0x4cac72['cloneNode'](!0x0)),_0x38acd3['children']['push'](_0x4cac72['cloneNode'](!0x0));}}const _0xdf4b0c=_0x4306b5['getDocumentContext'](),_0x231a0d=_0x1f9659['data']['parse'](_0xdf4b0c['content']),_0x9e5de9=serialize(_0x17e330),_0x4127a4=_0x1f9659['data']['parse'](_0x9e5de9),_0x5a7e7a=_0x1f9659['data']['parse'](_0x9e5de9),_0x5c6078=_0x1f9659['model']['createPositionAt'](_0x4127a4,0x0),_0x104b89=serialize(_0x38acd3),_0x2ea00a={'anchor':_0x5c6078,'markDeletions':!0x1},_0x34f409=_0x1f9659['plugins']['get'](DocumentCompare)['getDiff'](_0x9e5de9,_0x104b89,_0x2ea00a)['getOperations']();if(!_0x34f409['length'])return null;_0x1f9659['model']['change'](_0x93235a=>{for(const _0x5dc2f4 of _0x34f409)if('remove'==_0x5dc2f4['type']){const _0x340fec=_0x5dc2f4['sourcePosition'],_0x4daaae=_0x5dc2f4['howMany'],_0x57b7c0=new _DetachOperation(_0x340fec,_0x4daaae);_0x93235a['batch']['addOperation'](_0x57b7c0),_0x1f9659['model']['applyOperation'](_0x57b7c0);}else'marker'!==_0x5dc2f4['type']&&(_0x5dc2f4['baseVersion']=null,_0x5dc2f4['isDocumentOperation']=!0x1,_0x93235a['batch']['addOperation'](_0x5dc2f4),_0x1f9659['model']['applyOperation'](_0x5dc2f4));});const _0x625752=getMinimalSelection(_0x1f9659,_0x34f409,_0x4127a4);expandSelectionWithContext(_0x1f9659['model'],_0x625752);const _0x2d0f0d=_0x625752['getFirstRange']()['start']['path']['slice'](),_0x54742d=_0x625752['getFirstRange']()['end']['path']['slice'](),_0x2f61e4=[];let _0x50b073=_0x4127a4,_0x2a529c=_0x5a7e7a;for(let _0x39aef1=0x0;_0x39aef1<_0x54742d['length'];_0x39aef1++){const _0xa735fa=_0x50b073['maxOffset']-_0x54742d[_0x39aef1];_0x2f61e4[_0x39aef1]=_0x2a529c['maxOffset']-_0xa735fa,_0x50b073=_0x50b073['getChildAtOffset'](_0x54742d[_0x39aef1]),_0x2a529c=_0x2a529c['getChildAtOffset'](_0x2f61e4[_0x39aef1]);}const _0x86ea2d=_0x1f9659['model']['createRange'](_0x1f9659['model']['createPositionFromPath'](_0x5a7e7a,_0x2d0f0d),_0x1f9659['model']['createPositionFromPath'](_0x5a7e7a,_0x2f61e4)),_0x397823=_0x5a7e7a['getChild'](0x0)['getAttribute'](DATA_ID_MODEL_ATTRIBUTE),_0x10ee2c=Array['from'](_0x231a0d['getChildren']())['find'](_0x203f5d=>_0x203f5d['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)==_0x397823)['getPath'](),_0x154393=_0x86ea2d['start']['path']['slice'](),_0x1fd7f2=_0x86ea2d['end']['path']['slice']();_0x154393[0x0]=_0x10ee2c[0x0]+_0x154393[0x0],_0x1fd7f2[0x0]=_0x10ee2c[0x0]+_0x1fd7f2[0x0];let _0x5bf32f=_0x1f9659['model']['createRange'](_0x1f9659['model']['createPositionFromPath'](_0x1f9659['model']['document']['getRoot'](),_0x154393),_0x1f9659['model']['createPositionFromPath'](_0x1f9659['model']['document']['getRoot'](),_0x1fd7f2));const _0x46f68e=_0x1f9659['model']['document']['history']['getOperations'](_0xdf4b0c['version']);for(const _0xc05c0a of _0x46f68e)_0x5bf32f=ModelRange['_createFromRanges'](_0x5bf32f['getTransformedByOperation'](_0xc05c0a));return{'range':_0x5bf32f,'currentIndex':_0x24e6e6};}['_integrateEditor'](_0x5a517a){if(!_0x5a517a['plugins']['has']('Undo'))return;const _0x285870=_0x5a517a['commands']['get']('undo'),_0x572471=_0x5a517a['commands']['get']('redo');this['listenTo'](_0x285870,'revert',(_0x4b4ec1,_0x21a5e0,_0xa18c0f)=>{const _0x7e26e8=this['_batchToChanges']['get'](_0x21a5e0);if(!_0x7e26e8)return;const _0x1ccc78=this['activeConversation']['getInteraction'](_0x7e26e8['interactionId'])['getReply'](_0x7e26e8['replyId']);_0x7e26e8['indexes']['forEach'](_0x4f020f=>_0x1ccc78['setChangeGroupState'](_0x4f020f,'pending')),this['_batchToChanges']['delete'](_0x21a5e0),this['_batchToChanges']['set'](_0xa18c0f,_0x7e26e8);}),this['listenTo'](_0x572471,'revert',(_0x9e2fa6,_0x439fbe,_0x1bc62f)=>{const _0x418f98=this['_batchToChanges']['get'](_0x439fbe);if(!_0x418f98)return;const _0x1c9deb=this['activeConversation']['getInteraction'](_0x418f98['interactionId'])['getReply'](_0x418f98['replyId']);_0x418f98['indexes']['forEach'](_0x4000d5=>_0x1c9deb['setChangeGroupState'](_0x4000d5,'accepted')),this['_batchToChanges']['delete'](_0x439fbe),this['_batchToChanges']['set'](_0x1bc62f,_0x418f98);});}async['loadConversation'](_0x50a3d1){this['context']['plugins']['has']('AIChatBalloon')&&this['context']['plugins']['get']('AIChatBalloon')['close'](),(this['context']['plugins']['get'](AITabs)['view']['activateTab']('chat'),this['_aiChatUi']['setFeedItemRenderingStrategy']('static'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x0),await this['_stopLastInteraction']());try{await this['_aiConnector']['fetchConversation'](_0x50a3d1)['getConversation'](),await this['_startConversationSafely'](_0x50a3d1),this['updateConversationTitle']('\x20'),await this['activeConversation']['load'](_0x50a3d1,this['_aiEditing']['sessionId']),this['activeConversation']['isCurrentDocumentInConversation']()&&this['addCurrentDocumentToChatContext']();}catch(_0x2f0a86){this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION'),'id':_0x50a3d1}),this['_logError'](new CKEditorError('ai-chat-conversation-not-found',this,{'error':_0x2f0a86}));}finally{this['_aiChatUi']['startAutoScroll'](),this['_aiChatUi']['setFeedItemRenderingStrategy']('streaming'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1);}}async['_getLastCreatedConversationId'](){const _0x146a47=this['_aiConnector']['fetchConversations'](this['getGroupId'](),{'limit':0x1,'sortBy':'createdAt'});try{const _0x2a255d=await _0x146a47['getConversations']();return _0x2a255d['length']?_0x2a255d[0x0]['id']:'new';}catch(_0x395406){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':_0x395406})),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1),this['_aiChatUi']['disableControls'](),null;}}['handleRemovedConversation'](_0x345d08){this['activeConversation']['id']===_0x345d08&&this['_startConversationSafely']();}['addCurrentDocumentToChatContext'](){this['activeConversation']?.['addCurrentDocumentToContext'](getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'));}async['addSelectionToChatContext'](){const _0x2bb384=this['_aiEditing']['getSelectionText']();this['activeConversation']?.['addSelectionToContext'](_0x2bb384),this['addCurrentDocumentToChatContext']();}['removeSelectionFromChatContext'](){this['activeConversation']?.['removeSelectionFromContext']();}['focusPromptInput'](){this['_aiChatUi']['focusPromptInput']();}async['startConversation'](){await this['_startConversationSafely']();}async['sendMessage']({message:_0x2ce34,attributes:_0x53e0a7}){await this['_handleUIUserMessage']({'userMessage':_0x2ce34,'attributes':_0x53e0a7});}['getGroupId'](){const _0x7831b2=this['context']['config']['get']('collaboration.channelId');if(!_0x7831b2)throw new CKEditorError('ai-chat-missing-channel-id',this);return _0x7831b2;}async['_startConversationSafely'](_0x2890bb){try{this['_aiChatUi']['enableControls'](),await this['_handleStartConversation'](_0x2890bb);}catch(_0xd3d7f6){this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x2890bb||uid()}),console['error'](_0xd3d7f6),this['activeConversation']=void 0x0,this['_aiChatUi']['disableControls']();}}async['_handleStartConversation'](_0x1aee41){let _0x4f59ed;this['context']['plugins']['has']('AIChatBalloon')&&this['context']['plugins']['get']('AIChatBalloon')['close'](),_0x1aee41||!this['activeConversation']?_0x4f59ed=this['context']['config']['get']('ai.models.defaultModelId'):this['_aiChatUi']['isModelAvailable']&&(_0x4f59ed=this['activeConversation']['selectedModel']['id']),await this['_stopLastInteraction']();const _0x174320=this['getGroupId'](),_0x3eb9e6=_0x1aee41||uid();this['activeConversation']=new AIChatConversation({'connector':this['_aiConnector'],'chatModels':this['_aiChatModels'],'selectedModelId':_0x4f59ed,'conversationId':_0x3eb9e6,'group':_0x174320,'getEditor':()=>getEditorFromContext(this['context']),'isFromHistory':!!_0x1aee41}),this['activeConversation']['delegate']('toolDataReceived','interactionStarted')['to'](this),this['activeConversation']['on']('conversationInitialized',(_0x5c9ca7,_0x1a5acb)=>{this['_aiChatUi']['createConversation'](_0x1a5acb),this['_aiChatUi']['resetMessageInput'](),this['_aiChatUi']['clearPendingContextUI'](),this['_aiChatUi']['clearConversationContextUI'](),_0x1aee41||(this['_aiChatUi']['resetConversationTitle'](),this['addCurrentDocumentToChatContext']());}),this['activeConversation']['on']('uploadProgressChanged',(_0x2f8e69,_0x58459b)=>{this['_aiChatUi']['setIsUploadInProgress'](_0x58459b['isUploadInProgress']);}),this['activeConversation']['on']('interactionCreated',(_0x4e21e0,_0x55d35e)=>{this['_aiChatUi']['addFeedItemUserMessage'](_0x55d35e);}),this['activeConversation']['on']('webSearchStarted',()=>{const _0x1271c6=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this['_aiChatUi']['setLoadingMessage'](_0x1271c6);}),this['activeConversation']['on']('reasoningStarted',()=>{const _0x49e91c=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this['_aiChatUi']['setLoadingMessage'](_0x49e91c);}),this['activeConversation']['on']('webSearchFinished',(_0x4f33ba,_0x1c0b9f)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x1c0b9f,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this['activeConversation']['on']('reasoningFinished',(_0x276977,_0x163ae4)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x163ae4,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this['activeConversation']['on']('interactionStarted',()=>{this['_aiChatUi']['startInteraction']();}),this['activeConversation']['on']('interactionFinished',async()=>{await this['_aiChatUi']['finishInteraction']();}),this['activeConversation']['on']('interactionDestroyed',(_0x3881d0,_0x3d096e)=>{this['_aiChatUi']['removeFeedInteraction'](_0x3d096e['id']);}),this['activeConversation']['on']('setConversationTitle',(_0x1c2e31,_0x46b725,_0x1e5e23)=>{this['updateConversationTitle'](_0x46b725,_0x1e5e23);}),this['activeConversation']['on']('replyCreated',(_0x4a8199,_0x3cb5df)=>{'text'===_0x3cb5df['type']?this['_aiChatUi']['addFeedItemAIReply'](_0x3cb5df):this['_aiChatUi']['addFeedItemAISuggestion'](_0x3cb5df);}),this['activeConversation']['on']('replyContentUpdated',async(_0x17a56e,_0x3b542e)=>{await this['_updateReplyContent']({'reply':_0x3b542e});}),this['activeConversation']['on']('replyChangeGroupStateUpdated',(_0x37cfb0,{reply:_0xd10d53,index:_0x3a73f4,state:_0x545777})=>{this['_aiChatUi']['updateFeedItemAIReplySuggestionPartState']({'id':_0xd10d53['id'],'index':_0x3a73f4,'state':_0x545777}),this['_currentPreviewedChangeGroup']?.['replyId']['includes'](_0xd10d53['id'])&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0x3a73f4&&this['_aiChatBalloon']?.['setState'](_0x545777);}),this['activeConversation']['on']('contextItemAdded',(_0x548895,_0x15ee6d)=>{if(this['_aiChatUi']['addContextItem'](_0x15ee6d['contextItem'],_0x15ee6d['isLoading']),'selection'===_0x15ee6d['contextItem']['type']){const _0x4f1b93=[...getEditorFromContext(this['context'])['model']['document']['selection']['getRanges']()];this['_aiEditing']['showFakeVisualSelection'](_0x4f1b93,'ai-conversation-'+this['activeConversation']?.['id']);}}),this['activeConversation']['on']('contextItemRemoved',(_0x4e39b0,_0x2bde03)=>{this['_aiChatUi']['removeContextItem'](_0x2bde03['uiId']),'current-document'==_0x2bde03['uiId']&&this['removeSelectionFromChatContext'](),'selection'===_0x2bde03['type']&&this['_aiEditing']['hideFakeVisualSelection']('ai-conversation-'+this['activeConversation']?.['id']);}),this['activeConversation']['on']('contextItemLoadingEnded',(_0x59f996,_0x3c85a7)=>{this['_aiChatUi']['setContextItemLoading'](_0x3c85a7['contextItem']['uiId'],_0x3c85a7['isLoading']);}),this['activeConversation']['on']('contextSent',(_0x501667,_0xb292e2)=>{this['_aiChatUi']['setConversationContext'](_0xb292e2['contextItems']);}),this['activeConversation']['on']('addContextOptionsChanged',(_0x49ed6a,_0x11564e)=>{this['_aiChatUi']['setAddContextOptions'](_0x11564e['options']);}),this['activeConversation']['on']('sourceResourcesLoaded',(_0x308f7e,_0x527b8c)=>{this['_aiChatUi']['populateSourceResourceBalloon'](_0x527b8c['sourceId'],_0x527b8c['source'],_0x527b8c['resources'],_0x527b8c['uid']);}),this['activeConversation']['on']('resourceStateChanged',(_0x42553f,_0x10d2e5)=>{this['_aiChatUi']['updateResourceState'](_0x10d2e5['sourceId'],_0x10d2e5['resourceId'],_0x10d2e5['isInContext']);}),this['activeConversation']['on']('capabilitiesUpdated',(_0x5a852e,_0x2465c8)=>{this['_aiChatUi']['updateCapabilities'](_0x2465c8);}),this['activeConversation']['on']('modelSelected',async(_0x149bd5,_0x326848)=>{const _0x4e95b2=(await this['_aiChatModels']['getAll']())['find'](_0xd1e7f2=>_0xd1e7f2['id']===_0x326848['selectedModel']?.['id'])||null;this['_aiChatUi']['setSelectedModel'](_0x4e95b2,_0x326848['isDisabled']);}),this['activeConversation']['on']('error',(_0x52efe4,{error:_0x16519a,interactionId:_0x52d053,fileName:_0x5bb62d,url:_0x1a79db,sourceId:_0xcd996,sourceLabel:_0x717e95})=>{const _0x3b7ecb=_0x52d053?_0x52d053+':'+uid():uid();_0x16519a['message']['startsWith']('ai-request-aborted')?this['_aiChatUi']['addFeedItemStaticMessage']({'staticMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_ABORTED_MESSAGE'),'id':_0x3b7ecb}):_0x16519a['message']['startsWith']('ai-chat-conversation-init-failed')||_0x16519a['message']['startsWith']('ai-chat-conversation-start-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x3b7ecb}),this['_logError'](_0x16519a)):_0x16519a['message']['startsWith']('ai-chat-file-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE',_0x5bb62d),'id':_0x3b7ecb}):_0x16519a['message']['startsWith']('ai-chat-url-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL',_0x1a79db),'id':_0x3b7ecb}):_0x16519a['message']['startsWith']('ai-chat-context-invalid-data')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_INVALID_DATA'),'id':_0x3b7ecb}):_0x16519a['message']['startsWith']('ai-chat-context-unsupported-type')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE'),'id':_0x3b7ecb}):_0x16519a['message']['startsWith']('ai-chat-source-resources-load-failed')?(_0xcd996&&this['_aiChatUi']['closeSourceResourceBalloon'](_0xcd996),this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES',_0x717e95||'source'),'id':_0x3b7ecb}),this['_logError'](_0x16519a)):_0x16519a['message']['startsWith']('ai-chat-resource-load-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_RESOURCE_LOAD_FAILED'),'id':_0x3b7ecb}),this['_logError'](_0x16519a)):_0x16519a['message']['startsWith']('ai-chat-invalid-request')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_INVALID_REQUEST'),'id':_0x3b7ecb}),this['_logError'](_0x16519a)):_0x16519a['message']['startsWith']('ai-chat-context-unsupported-file-type')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE'),'id':_0x3b7ecb}),this['_logError'](_0x16519a)):_0x16519a['message']['startsWith']('ai-chat-context-file-too-large')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_FILE_TOO_LARGE'),'id':_0x3b7ecb}),this['_logError'](_0x16519a)):_0x16519a['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':_0x3b7ecb}),this['_logError'](_0x16519a)):_0x16519a['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':_0x3b7ecb}),this['_logError'](_0x16519a)):(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_GENERIC_ERROR'),'id':_0x3b7ecb}),this['_logError'](_0x16519a));}),await this['activeConversation']['init'](this['context']['config']['get']('ai.chat.context')),_0x1aee41||await this['activeConversation']['start']();}async['_handleUIUserMessage']({userMessage:_0x39d83c,attributes:_0x3fb7ce}){if(!this['activeConversation'])throw new CKEditorError('ai-chat-controller-no-active-conversation');if(this['activeConversation']['isCurrentDocumentInContext']()){const _0x3f2b3a=await this['_aiEditing']['getDocumentData']();await this['activeConversation']['updateCurrentDocumentInContext'](_0x3f2b3a);}this['activeConversation']['id']&&this['activeConversation']['isStarted']&&await this['activeConversation']['handleUserInteraction']({'userMessage':_0x39d83c,'attributes':_0x3fb7ce});}['_showConversationHistory'](){console['log']('Showing\x20conversation\x20history...');}['_setIsMaximized'](_0x3f45b1){this['_aiChatUi']['setIsMaximized'](_0x3f45b1);}['_logError'](_0x363540){logError(_0x363540['message']);}['_removeFromContext'](_0x11ad5b){this['activeConversation']?.['removeFromContext'](_0x11ad5b);}['_toggleWebSearch'](){this['activeConversation']?.['toggleWebSearch']();}['_toggleReasoning'](){this['activeConversation']?.['toggleReasoning']();}['getInteractionAndReplyById'](_0x17b81a){const [_0xea57c4,_0x2b9279]=_0x17b81a['split'](':'),_0x27efdb=this['activeConversation']['getInteraction'](_0xea57c4),_0x23173e=_0x27efdb['getReply'](_0x2b9279);return{'interaction':_0x27efdb,'reply':_0x23173e};}['_scrollToSuggestionRange'](_0x24f838,_0x5e0bc4=!0x1){const _0x25610=getEditorFromContext(this['context']),_0x122be7={'target':_0x25610['editing']['view']['domConverter']['viewRangeToDom'](_0x25610['editing']['mapper']['toViewRange'](_0x24f838)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x5e0bc4};_0x5e0bc4&&(_0x122be7['alignToTop']=!0x0),scrollViewportToShowTarget(_0x122be7);}['updateConversationTitle'](_0x339894,_0x24c8ee=!0x1){this['_aiChatUi']['setConversationTitle'](_0x339894||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),_0x24c8ee);}async['_updateReplyContent']({reply:_0x406541,renderingStrategy:_0x5bc045}){const {id:_0x24fac9,interactionId:_0x36de9b,isDone:_0x3ff8d7,type:_0x1c3b50,parsedContent:_0x5df7a2}=_0x406541,_0x22f7d8=_0x36de9b+':'+_0x24fac9;if('modification'===_0x1c3b50){const _0xbc16d8=_0x406541['getContentParts']({'showDiff':this['_aiChatUi']['showDiff']});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x22f7d8,'parts':_0xbc16d8,'renderingStrategy':_0x5bc045,'isDone':_0x3ff8d7});}else'text'===_0x1c3b50&&await this['_aiChatUi']['updateFeedItemAIReplyContent']({'id':_0x22f7d8,'parsedContent':_0x5df7a2,'renderingStrategy':_0x5bc045,'isDone':_0x3ff8d7});_0x3ff8d7&&_0x406541['sources']['length']>0x0&&this['_aiChatUi']['updateFeedItemAIReplySources'](_0x22f7d8,_0x406541['sources']);}async['_stopLastInteraction'](){const _0x2a3cd9=this['activeConversation']?.['lastInteraction'];_0x2a3cd9&&(_0x2a3cd9['stop'](),this['_aiChatUi']['stopInteraction'](_0x2a3cd9));}async['_flushLastInteractionUI'](){const _0x1135a9=this['activeConversation']?.['lastInteraction'];if(_0x1135a9){for await(const _0x54f2b2 of _0x1135a9['replies'])await this['_updateReplyContent']({'reply':_0x54f2b2,'renderingStrategy':'static'});}}['_updateRatings'](_0x138a42){const _0x4a0cb7={'positiveCount':_0x138a42['changeGroups']['filter'](_0x455812=>'accepted'===_0x455812['state'])['length'],'totalCount':_0x138a42['changeGroups']['length'],'modificationId':_0x138a42['id']},_0x1b57b2=this['activeConversation']['getInteraction'](_0x138a42['interactionId'])['messageId'];_0x1b57b2&&this['_aiConnector']['upsertAIChatRating'](this['activeConversation']['id'],_0x1b57b2,_0x4a0cb7);}['_registerToolDataCallback'](_0x1ba035){let _0x367f55=null,_0x3b6ee3=null;this['on']('toolDataReceived',(_0x139f2f,_0x5ab12f,_0x511eee)=>{_0x511eee['id']!==_0x367f55&&(_0x367f55=_0x511eee['id'],_0x3b6ee3=this['_getAIChatInteractionAPI'](_0x511eee)),_0x1ba035(_0x5ab12f,_0x3b6ee3);});}['_getAIChatInteractionAPI'](_0x495277){const _0x4f325e=this['_aiChatUi'],_0x2edecf=()=>{_0x495277['resetWebSearchState'](),_0x495277['resetReasoningState'](),_0x4f325e['clearLoadingMessage']();},_0x2101f7=()=>{_0x495277['currentReply']&&(_0x495277['currentReply']['done'](),_0x495277['currentReply']=void 0x0);};return{'insertTextReply':(_0xfa660d,_0x36f3f7)=>{_0x2101f7(),_0x2edecf();const _0x4efc9a=_0x495277['currentReply']=_0x495277['createReply']({'type':'text','interactionId':_0x495277['id'],'content':_0xfa660d,'id':_0x36f3f7||uid()});return _0x2101f7(),_0x4efc9a;},'insertCustomElement':async(_0x453fe2,_0x4ce6c9)=>(_0x2101f7(),_0x2edecf(),_0x4f325e['addFeedItemCustomElement'](_0x453fe2,_0x4ce6c9||uid())),'setLoadingMessage':_0x3bdcc5=>{_0x4f325e['setLoadingMessage'](_0x3bdcc5);},'clearLoadingMessage':()=>{_0x4f325e['clearLoadingMessage']();}};}}const AI_VISUAL_SELECTION_MARKER_NAME='ai-selection';class AIEditing extends ContextPlugin{constructor(_0x5dc94d){super(_0x5dc94d),this['context']['config']['define']('ai.models.showModelSelector',!0x0);}['_outputDataProcessor'];['_displayedFakeSelectionId']=null;['_displayedFakeSelectionLocked']=!0x1;['_sessionId'];static get['pluginName'](){return'AIEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['sessionId'](){if(!this['_sessionId']){const _0x492789=getEditorFromContext(this['context']),_0x2997dd=_0x492789['plugins']['has']('RealTimeCollaborationClient')&&_0x492789['plugins']['get']('RealTimeCollaborationClient')['sessionId'];this['_sessionId']=_0x2997dd||uid();}return this['_sessionId'];}async['getDocumentData'](){const _0x5e6992=getEditorFromContext(this['context']),_0x4f952c=_0x5e6992['model'],_0x4448b5=_0x5e6992['data']['toView'](_0x4f952c['document']['getRoot'](),{'convertAiChatSelectionMarker':!0x0}),_0x5ac0d8=new ViewDowncastWriter(_0x5e6992['editing']['view']['document']);this['_setDataIdsOnChildren'](_0x4448b5,_0x5ac0d8);let _0x33a75d=await this['_getDocumentDataStringFromView'](_0x4448b5);const _0x2ac70f=this['_getMarkersInDocumentOrder'](),_0x21fb84=[];for(const _0x3bb0c2 of _0x2ac70f){const _0x318c33='<'+_0x3bb0c2['name']+':start></'+_0x3bb0c2['name']+':start>',_0x185510=_0x33a75d['indexOf'](_0x318c33);_0x33a75d=_0x33a75d['substring'](0x0,_0x185510)+_0x33a75d['substring'](_0x185510+_0x318c33['length']);const _0x4882a7='<'+_0x3bb0c2['name']+':end></'+_0x3bb0c2['name']+':end>',_0xf64415=_0x33a75d['indexOf'](_0x4882a7);_0x33a75d=_0x33a75d['substring'](0x0,_0xf64415)+_0x33a75d['substring'](_0xf64415+_0x4882a7['length']),_0x21fb84['push']({'markerName':_0x3bb0c2['name'],'start':_0x185510,'end':_0xf64415,'htmlFragment':_0x33a75d['substring'](_0x185510,_0xf64415)});}return{'content':_0x33a75d,'version':_0x5e6992['model']['document']['version'],'sessionId':this['sessionId'],'selections':_0x21fb84};}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x2c2990,_0x2cadfc)=>{_0x2cadfc['on']('ready',()=>{this['_integrateEditor'](_0x2cadfc);});});}['_setOutputDataProcessor'](_0x3d39b3){this['_outputDataProcessor']=_0x3d39b3;}async['_getDocumentDataStringFromView'](_0x573f4a){let _0x354209;const _0x395e15=getEditorFromContext(this['context']);if(this['_outputDataProcessor']){const _0x310634=_0x395e15['data']['processor']['domConverter']['viewToDom'](_0x573f4a),_0x7d0ab6=await this['_outputDataProcessor'](_0x310634);_0x354209=_0x395e15['data']['processor']['htmlWriter']['getHtml'](_0x7d0ab6);}else _0x354209=_0x395e15['data']['processor']['toData'](_0x573f4a);return _0x354209;}['_integrateEditor'](_0x59b255){_0x59b255['conversion']['for']('editingDowncast')['markerToHighlight']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':{'classes':['ck-fake-ai-selection','ck-ai-assistant-ui_theme'],'priority':0xc}}),_0x59b255['conversion']['for']('dataDowncast')['markerToElement']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':(_0x3999cc,{writer:_0x328a0c,options:_0x3e45c0})=>_0x3e45c0['convertAiChatSelectionMarker']?_0x328a0c['createUIElement'](_0x3999cc['markerName']+':'+(_0x3999cc['isOpening']?'start':'end')):null});}['showFakeVisualSelection'](_0x5465d5,_0x5614a4,_0x5e6938=!0x1,_0x58c335=!0x1){if(this['_displayedFakeSelectionLocked']&&!_0x58c335)return!0x1;const _0x1d9ff4=getEditorFromContext(this['context'])['model'];return _0x1d9ff4['change'](_0x21dc62=>{this['_displayedFakeSelectionId']&&this['hideFakeVisualSelection'](this['_displayedFakeSelectionId']),this['_displayedFakeSelectionId']=_0x5614a4,this['_displayedFakeSelectionLocked']=_0x5e6938;let _0x21f34f=0x0;for(let _0x43a5f0 of _0x5465d5){const _0x45e08c=AI_VISUAL_SELECTION_MARKER_NAME+':'+_0x21f34f;if(_0x43a5f0['start']['isAtEnd']){const _0x550776=_0x43a5f0['start']['getLastMatchingPosition'](({item:_0x2d943e})=>!_0x1d9ff4['schema']['isContent'](_0x2d943e),{'boundaries':_0x43a5f0});_0x43a5f0=_0x21dc62['createRange'](_0x550776,_0x43a5f0['end']);}_0x21dc62['addMarker'](_0x45e08c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x43a5f0}),_0x21f34f++;}}),window['getSelection']()?.['removeAllRanges'](),!0x0;}['hideFakeVisualSelection'](_0x251285){if(this['_displayedFakeSelectionId']!=_0x251285)return!0x1;this['_displayedFakeSelectionId']=null,this['_displayedFakeSelectionLocked']=!0x1;const _0x3d9373=getEditorFromContext(this['context']),_0x3d7204=_0x3d9373['model']['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME);return _0x3d9373['model']['change'](_0x47e44b=>{for(const _0xa9ed8b of _0x3d7204)_0x47e44b['removeMarker'](_0xa9ed8b);}),!0x0;}async['modelToDataWithIds'](_0x1b3409){const _0x5e2183=getEditorFromContext(this['context']),_0x88a40a=_0x5e2183['data']['toView'](_0x1b3409),_0x4cd971=new ViewDowncastWriter(_0x5e2183['editing']['view']['document']);return this['_setDataIdsOnChildren'](_0x88a40a,_0x4cd971),this['_getDocumentDataStringFromView'](_0x88a40a);}['_setDataIdsOnChildren'](_0x439373,_0x47e11b){let _0x5a2392=!0x1;const _0x5c13ae=new Set();for(const _0x46d844 of _0x439373['getChildren']()){const _0x281a2f=_0x46d844['is']('emptyElement')||_0x46d844['is']('containerElement');if(!_0x46d844['is']('element'))continue;(this['_setDataIdsOnChildren'](_0x46d844,_0x47e11b)||_0x281a2f)&&(_0x47e11b['setAttribute']('data-id',this['_nextDataId'](_0x5c13ae),_0x46d844),_0x5a2392=!0x0);}return _0x5a2392;}['_nextDataId'](_0x3bfe14){let _0x2d66d1;do{_0x2d66d1='';for(let _0x1c6b16=0x0;_0x1c6b16<0x4;_0x1c6b16++)_0x2d66d1+=String['fromCharCode'](0x61+Math['floor'](0x1a*Math['random']()));}while(_0x3bfe14['has'](_0x2d66d1));return _0x3bfe14['add'](_0x2d66d1),_0x2d66d1;}['getSelectionText'](){const {model:_0x48a13b}=getEditorFromContext(this['context']),_0x695f6e=_0x48a13b['document']['selection'],_0x2b389b=[];for(const _0x4a32d0 of _0x695f6e['getRanges']())for(const _0x25317e of _0x4a32d0['getItems']())_0x25317e['is']('$textProxy')?_0x2b389b['push'](_0x25317e['data']):_0x25317e['is']('element')&&_0x2b389b['length']>0x0&&'\x20'!==_0x2b389b[_0x2b389b['length']-0x1]&&_0x2b389b['push']('\x20');return _0x2b389b['length']?'\x22'+_0x2b389b['join']('')['trim']()+'\x22':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL');}['_getMarkersInDocumentOrder'](){const _0x48d081=getEditorFromContext(this['context'])['model'];return Array['from'](_0x48d081['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME))['sort']((_0x33ed9c,_0x316f8b)=>_0x33ed9c['getStart']()['isBefore'](_0x316f8b['getStart']())?-0x1:_0x33ed9c['getStart']()['isAfter'](_0x316f8b['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','resizeTabs','sendUserMessage','abortPromptStream','addDocumentToContext','addFileToContext','addUrlToContext','executeCustomItemCallback','addResourceToContext','removeContextItem','loadSourceResources','toggleWebSearch','toggleReasoning','selectModel'];var DOCUMENT_FRAGMENT_NODE=0xb,range;function morphAttrs(_0x2905c2,_0x4cac0e){var _0x40fea7,_0x56ceb,_0x593bc2,_0x34ef96,_0x37d311=_0x4cac0e['attributes'];if(_0x4cac0e['nodeType']!==DOCUMENT_FRAGMENT_NODE&&_0x2905c2['nodeType']!==DOCUMENT_FRAGMENT_NODE){for(var _0x326f4c=_0x37d311['length']-0x1;_0x326f4c>=0x0;_0x326f4c--)_0x56ceb=(_0x40fea7=_0x37d311[_0x326f4c])['name'],_0x593bc2=_0x40fea7['namespaceURI'],_0x34ef96=_0x40fea7['value'],_0x593bc2?(_0x56ceb=_0x40fea7['localName']||_0x56ceb,_0x2905c2['getAttributeNS'](_0x593bc2,_0x56ceb)!==_0x34ef96&&('xmlns'===_0x40fea7['prefix']&&(_0x56ceb=_0x40fea7['name']),_0x2905c2['setAttributeNS'](_0x593bc2,_0x56ceb,_0x34ef96))):_0x2905c2['getAttribute'](_0x56ceb)!==_0x34ef96&&_0x2905c2['setAttribute'](_0x56ceb,_0x34ef96);for(var _0x5745a8=_0x2905c2['attributes'],_0x268810=_0x5745a8['length']-0x1;_0x268810>=0x0;_0x268810--)_0x56ceb=(_0x40fea7=_0x5745a8[_0x268810])['name'],(_0x593bc2=_0x40fea7['namespaceURI'])?(_0x56ceb=_0x40fea7['localName']||_0x56ceb,_0x4cac0e['hasAttributeNS'](_0x593bc2,_0x56ceb)||_0x2905c2['removeAttributeNS'](_0x593bc2,_0x56ceb)):_0x4cac0e['hasAttribute'](_0x56ceb)||_0x2905c2['removeAttribute'](_0x56ceb);}}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(_0x726316){var _0xe959f0=doc$1['createElement']('template');return _0xe959f0['innerHTML']=_0x726316,_0xe959f0['content']['childNodes'][0x0];}function createFragmentFromRange(_0x9d63c6){return range||(range=doc$1['createRange']())['selectNode'](doc$1['body']),range['createContextualFragment'](_0x9d63c6)['childNodes'][0x0];}function createFragmentFromWrap(_0x3c8baa){var _0x6e97d5=doc$1['createElement']('body');return _0x6e97d5['innerHTML']=_0x3c8baa,_0x6e97d5['childNodes'][0x0];}function toElement(_0x3a97e5){return _0x3a97e5=_0x3a97e5['trim'](),HAS_TEMPLATE_SUPPORT?createFragmentFromTemplate(_0x3a97e5):HAS_RANGE_SUPPORT?createFragmentFromRange(_0x3a97e5):createFragmentFromWrap(_0x3a97e5);}function compareNodeNames(_0x15b533,_0x5b7e31){var _0x4aec4b,_0x320376,_0x173957=_0x15b533['nodeName'],_0x50236a=_0x5b7e31['nodeName'];return _0x173957===_0x50236a||(_0x4aec4b=_0x173957['charCodeAt'](0x0),_0x320376=_0x50236a['charCodeAt'](0x0),_0x4aec4b<=0x5a&&_0x320376>=0x61?_0x173957===_0x50236a['toUpperCase']():_0x320376<=0x5a&&_0x4aec4b>=0x61&&_0x50236a===_0x173957['toUpperCase']());}function createElementNS(_0x624fe8,_0xbf1741){return _0xbf1741&&_0xbf1741!==NS_XHTML?doc$1['createElementNS'](_0xbf1741,_0x624fe8):doc$1['createElement'](_0x624fe8);}function moveChildren(_0x2ae907,_0x5746ad){for(var _0x214722=_0x2ae907['firstChild'];_0x214722;){var _0xbaa66c=_0x214722['nextSibling'];_0x5746ad['appendChild'](_0x214722),_0x214722=_0xbaa66c;}return _0x5746ad;}function syncBooleanAttrProp(_0x55556e,_0x490091,_0x3bdde8){_0x55556e[_0x3bdde8]!==_0x490091[_0x3bdde8]&&(_0x55556e[_0x3bdde8]=_0x490091[_0x3bdde8],_0x55556e[_0x3bdde8]?_0x55556e['setAttribute'](_0x3bdde8,''):_0x55556e['removeAttribute'](_0x3bdde8));}var specialElHandlers={'OPTION':function(_0x4de07d,_0x5235cd){var _0x22c084=_0x4de07d['parentNode'];if(_0x22c084){var _0x5466fb=_0x22c084['nodeName']['toUpperCase']();'OPTGROUP'===_0x5466fb&&(_0x5466fb=(_0x22c084=_0x22c084['parentNode'])&&_0x22c084['nodeName']['toUpperCase']()),'SELECT'!==_0x5466fb||_0x22c084['hasAttribute']('multiple')||(_0x4de07d['hasAttribute']('selected')&&!_0x5235cd['selected']&&(_0x4de07d['setAttribute']('selected','selected'),_0x4de07d['removeAttribute']('selected')),_0x22c084['selectedIndex']=-0x1);}syncBooleanAttrProp(_0x4de07d,_0x5235cd,'selected');},'INPUT':function(_0x244b5c,_0x2a471d){syncBooleanAttrProp(_0x244b5c,_0x2a471d,'checked'),syncBooleanAttrProp(_0x244b5c,_0x2a471d,'disabled'),_0x244b5c['value']!==_0x2a471d['value']&&(_0x244b5c['value']=_0x2a471d['value']),_0x2a471d['hasAttribute']('value')||_0x244b5c['removeAttribute']('value');},'TEXTAREA':function(_0x5be9d3,_0x555472){var _0xdd182d=_0x555472['value'];_0x5be9d3['value']!==_0xdd182d&&(_0x5be9d3['value']=_0xdd182d);var _0x1fd154=_0x5be9d3['firstChild'];if(_0x1fd154){var _0x5b284e=_0x1fd154['nodeValue'];if(_0x5b284e==_0xdd182d||!_0xdd182d&&_0x5b284e==_0x5be9d3['placeholder'])return;_0x1fd154['nodeValue']=_0xdd182d;}},'SELECT':function(_0x56560d,_0x599800){if(!_0x599800['hasAttribute']('multiple')){for(var _0x4f4751,_0x26c471,_0x135864=-0x1,_0x2a90d9=0x0,_0x217cf3=_0x56560d['firstChild'];_0x217cf3;)if('OPTGROUP'===(_0x26c471=_0x217cf3['nodeName']&&_0x217cf3['nodeName']['toUpperCase']()))(_0x217cf3=(_0x4f4751=_0x217cf3)['firstChild'])||(_0x217cf3=_0x4f4751['nextSibling'],_0x4f4751=null);else{if('OPTION'===_0x26c471){if(_0x217cf3['hasAttribute']('selected')){_0x135864=_0x2a90d9;break;}_0x2a90d9++;}!(_0x217cf3=_0x217cf3['nextSibling'])&&_0x4f4751&&(_0x217cf3=_0x4f4751['nextSibling'],_0x4f4751=null);}_0x56560d['selectedIndex']=_0x135864;}}},ELEMENT_NODE=0x1,DOCUMENT_FRAGMENT_NODE$1=0xb,TEXT_NODE=0x3,COMMENT_NODE=0x8;function noop(){}function defaultGetNodeKey(_0x137cc5){if(_0x137cc5)return _0x137cc5['getAttribute']&&_0x137cc5['getAttribute']('id')||_0x137cc5['id'];}function morphdomFactory(_0x15c961){return function(_0x1a0b8d,_0x20510c,_0x24f96c){if(_0x24f96c||(_0x24f96c={}),'string'==typeof _0x20510c){if('#document'===_0x1a0b8d['nodeName']||'HTML'===_0x1a0b8d['nodeName']||'BODY'===_0x1a0b8d['nodeName']){var _0x2c5bf9=_0x20510c;(_0x20510c=doc$1['createElement']('html'))['innerHTML']=_0x2c5bf9;}else _0x20510c=toElement(_0x20510c);}else _0x20510c['nodeType']===DOCUMENT_FRAGMENT_NODE$1&&(_0x20510c=_0x20510c['firstElementChild']);var _0x307f12=_0x24f96c['getNodeKey']||defaultGetNodeKey,_0x465e61=_0x24f96c['onBeforeNodeAdded']||noop,_0x112074=_0x24f96c['onNodeAdded']||noop,_0x54dab5=_0x24f96c['onBeforeElUpdated']||noop,_0x1a1b09=_0x24f96c['onElUpdated']||noop,_0x58e22e=_0x24f96c['onBeforeNodeDiscarded']||noop,_0x1bd6f6=_0x24f96c['onNodeDiscarded']||noop,_0x4be47b=_0x24f96c['onBeforeElChildrenUpdated']||noop,_0x587778=_0x24f96c['skipFromChildren']||noop,_0x2529f1=_0x24f96c['addChild']||function(_0x20933b,_0x1efc78){return _0x20933b['appendChild'](_0x1efc78);},_0x51abb7=!0x0===_0x24f96c['childrenOnly'],_0x53de6d=Object['create'](null),_0x16b108=[];function _0x21da96(_0x3b84dd){_0x16b108['push'](_0x3b84dd);}function _0x5f47d2(_0x24e0fa,_0x602604){if(_0x24e0fa['nodeType']===ELEMENT_NODE)for(var _0x195c1f=_0x24e0fa['firstChild'];_0x195c1f;){var _0x4cab87=void 0x0;_0x602604&&(_0x4cab87=_0x307f12(_0x195c1f))?_0x21da96(_0x4cab87):(_0x1bd6f6(_0x195c1f),_0x195c1f['firstChild']&&_0x5f47d2(_0x195c1f,_0x602604)),_0x195c1f=_0x195c1f['nextSibling'];}}function _0xd2508a(_0x57fd38,_0x9b1b18,_0x5c5cc6){!0x1!==_0x58e22e(_0x57fd38)&&(_0x9b1b18&&_0x9b1b18['removeChild'](_0x57fd38),_0x1bd6f6(_0x57fd38),_0x5f47d2(_0x57fd38,_0x5c5cc6));}function _0x378009(_0x15c187){if(_0x15c187['nodeType']===ELEMENT_NODE||_0x15c187['nodeType']===DOCUMENT_FRAGMENT_NODE$1)for(var _0x1b2866=_0x15c187['firstChild'];_0x1b2866;){var _0x1fc475=_0x307f12(_0x1b2866);_0x1fc475&&(_0x53de6d[_0x1fc475]=_0x1b2866),_0x378009(_0x1b2866),_0x1b2866=_0x1b2866['nextSibling'];}}function _0x58d9c3(_0x457f87){_0x112074(_0x457f87);for(var _0x27f606=_0x457f87['firstChild'];_0x27f606;){var _0x255e3b=_0x27f606['nextSibling'],_0x14d45f=_0x307f12(_0x27f606);if(_0x14d45f){var _0x4ccf1c=_0x53de6d[_0x14d45f];_0x4ccf1c&&compareNodeNames(_0x27f606,_0x4ccf1c)?(_0x27f606['parentNode']['replaceChild'](_0x4ccf1c,_0x27f606),_0x20a1d5(_0x4ccf1c,_0x27f606)):_0x58d9c3(_0x27f606);}else _0x58d9c3(_0x27f606);_0x27f606=_0x255e3b;}}function _0x20a1d5(_0x4826c1,_0x4903cd,_0x396d2a){var _0x36c269=_0x307f12(_0x4903cd);if(_0x36c269&&delete _0x53de6d[_0x36c269],!_0x396d2a){var _0xed057c=_0x54dab5(_0x4826c1,_0x4903cd);if(!0x1===_0xed057c)return;if(_0xed057c instanceof HTMLElement&&_0x378009(_0x4826c1=_0xed057c),_0x15c961(_0x4826c1,_0x4903cd),_0x1a1b09(_0x4826c1),!0x1===_0x4be47b(_0x4826c1,_0x4903cd))return;}'TEXTAREA'!==_0x4826c1['nodeName']?function(_0x571ed5,_0x1c9923){var _0x4373f2,_0x562cb5,_0x43808c,_0x28aa48,_0x128bc5,_0x4657ba=_0x587778(_0x571ed5,_0x1c9923),_0xa5c8ca=_0x1c9923['firstChild'],_0x2e677b=_0x571ed5['firstChild'];t:for(;_0xa5c8ca;){for(_0x28aa48=_0xa5c8ca['nextSibling'],_0x4373f2=_0x307f12(_0xa5c8ca);!_0x4657ba&&_0x2e677b;){if(_0x43808c=_0x2e677b['nextSibling'],_0xa5c8ca['isSameNode']&&_0xa5c8ca['isSameNode'](_0x2e677b)){_0xa5c8ca=_0x28aa48,_0x2e677b=_0x43808c;continue t;}_0x562cb5=_0x307f12(_0x2e677b);var _0x280b7e=_0x2e677b['nodeType'],_0x15e721=void 0x0;if(_0x280b7e===_0xa5c8ca['nodeType']&&(_0x280b7e===ELEMENT_NODE?(_0x4373f2?_0x4373f2!==_0x562cb5&&((_0x128bc5=_0x53de6d[_0x4373f2])?_0x43808c===_0x128bc5?_0x15e721=!0x1:(_0x571ed5['insertBefore'](_0x128bc5,_0x2e677b),_0x562cb5?_0x21da96(_0x562cb5):_0xd2508a(_0x2e677b,_0x571ed5,!0x0),_0x562cb5=_0x307f12(_0x2e677b=_0x128bc5)):_0x15e721=!0x1):_0x562cb5&&(_0x15e721=!0x1),(_0x15e721=!0x1!==_0x15e721&&compareNodeNames(_0x2e677b,_0xa5c8ca))&&_0x20a1d5(_0x2e677b,_0xa5c8ca)):_0x280b7e!==TEXT_NODE&&_0x280b7e!=COMMENT_NODE||(_0x15e721=!0x0,_0x2e677b['nodeValue']!==_0xa5c8ca['nodeValue']&&(_0x2e677b['nodeValue']=_0xa5c8ca['nodeValue']))),_0x15e721){_0xa5c8ca=_0x28aa48,_0x2e677b=_0x43808c;continue t;}_0x562cb5?_0x21da96(_0x562cb5):_0xd2508a(_0x2e677b,_0x571ed5,!0x0),_0x2e677b=_0x43808c;}if(_0x4373f2&&(_0x128bc5=_0x53de6d[_0x4373f2])&&compareNodeNames(_0x128bc5,_0xa5c8ca))_0x4657ba||_0x2529f1(_0x571ed5,_0x128bc5),_0x20a1d5(_0x128bc5,_0xa5c8ca);else{var _0x4fcaac=_0x465e61(_0xa5c8ca);!0x1!==_0x4fcaac&&(_0x4fcaac&&(_0xa5c8ca=_0x4fcaac),_0xa5c8ca['actualize']&&(_0xa5c8ca=_0xa5c8ca['actualize'](_0x571ed5['ownerDocument']||doc$1)),_0x2529f1(_0x571ed5,_0xa5c8ca),_0x58d9c3(_0xa5c8ca));}_0xa5c8ca=_0x28aa48,_0x2e677b=_0x43808c;}!function(_0x4997f0,_0x512b86,_0x278cf5){for(;_0x512b86;){var _0x1ead90=_0x512b86['nextSibling'];(_0x278cf5=_0x307f12(_0x512b86))?_0x21da96(_0x278cf5):_0xd2508a(_0x512b86,_0x4997f0,!0x0),_0x512b86=_0x1ead90;}}(_0x571ed5,_0x2e677b,_0x562cb5);var _0x5d96ab=specialElHandlers[_0x571ed5['nodeName']];_0x5d96ab&&_0x5d96ab(_0x571ed5,_0x1c9923);}(_0x4826c1,_0x4903cd):specialElHandlers['TEXTAREA'](_0x4826c1,_0x4903cd);}_0x378009(_0x1a0b8d);var _0x2a9e9a=_0x1a0b8d,_0x27606a=_0x2a9e9a['nodeType'],_0xb752ae=_0x20510c['nodeType'];if(!_0x51abb7){if(_0x27606a===ELEMENT_NODE)_0xb752ae===ELEMENT_NODE?compareNodeNames(_0x1a0b8d,_0x20510c)||(_0x1bd6f6(_0x1a0b8d),_0x2a9e9a=moveChildren(_0x1a0b8d,createElementNS(_0x20510c['nodeName'],_0x20510c['namespaceURI']))):_0x2a9e9a=_0x20510c;else{if(_0x27606a===TEXT_NODE||_0x27606a===COMMENT_NODE){if(_0xb752ae===_0x27606a)return _0x2a9e9a['nodeValue']!==_0x20510c['nodeValue']&&(_0x2a9e9a['nodeValue']=_0x20510c['nodeValue']),_0x2a9e9a;_0x2a9e9a=_0x20510c;}}}if(_0x2a9e9a===_0x20510c)_0x1bd6f6(_0x1a0b8d);else{if(_0x20510c['isSameNode']&&_0x20510c['isSameNode'](_0x2a9e9a))return;if(_0x20a1d5(_0x2a9e9a,_0x20510c,_0x51abb7),_0x16b108)for(var _0x3d3a80=0x0,_0x82b987=_0x16b108['length'];_0x3d3a80<_0x82b987;_0x3d3a80++){var _0x400e95=_0x53de6d[_0x16b108[_0x3d3a80]];_0x400e95&&_0xd2508a(_0x400e95,_0x400e95['parentNode'],!0x1);}}return!_0x51abb7&&_0x2a9e9a!==_0x1a0b8d&&_0x1a0b8d['parentNode']&&(_0x2a9e9a['actualize']&&(_0x2a9e9a=_0x2a9e9a['actualize'](_0x1a0b8d['ownerDocument']||doc$1)),_0x1a0b8d['parentNode']['replaceChild'](_0x2a9e9a,_0x1a0b8d)),_0x2a9e9a;};}var morphdom=morphdomFactory(morphAttrs);class HTMLStreamer{['options'];['isStreaming']=!0x1;['document']=null;['nodesList']=[];['currentIndex']=0x0;['timeoutAbortController']=null;['lastUpdateTime']=0x0;constructor(_0x228cbd){this['options']={'delay':_0x228cbd['delay']??0x14,'textNodeStyle':_0x228cbd['textNodeStyle'],'onStreamUpdate':_0x228cbd['onStreamUpdate']||(()=>{})};}async['stream']({document:_0x612fdb,targetElement:_0x1a4845,abortSignal:_0x13675}){this['isStreaming']&&this['stop'](),_0x13675?.['addEventListener']('abort',this['stop']['bind'](this)),this['document']=cloneNode(_0x612fdb,!0x0),this['nodesList']=this['getParsedDocumentNodeList'](),this['isStreaming']=!0x0,this['currentIndex']>this['nodesList']['length']&&(this['currentIndex']=this['nodesList']['length']);for(let _0x2c86e4=0x0;_0x2c86e4<this['currentIndex'];_0x2c86e4++)this['nodesList'][_0x2c86e4]['shouldBeStreamed']=!0x0;do{const _0x56ce3d=Date['now'](),_0xf0e0ad=this['nodesList'][this['currentIndex']],_0x4b9fda=_0x56ce3d-this['lastUpdateTime'];if(_0xf0e0ad){_0xf0e0ad['shouldBeStreamed']=!0x0;let _0x508fd1=_0xf0e0ad['parent'];for(;_0x508fd1;)_0x508fd1['shouldBeStreamed']=!0x0,_0x508fd1=_0x508fd1['parent'];}if(_0x4b9fda<this['options']['delay'])try{const {promise:_0x372864,abortController:_0x524438}=createAbortableTimeout(this['options']['delay']-_0x4b9fda);this['timeoutAbortController']=_0x524438,await _0x372864;}catch(_0x1b2c51){return;}morphdom(_0x1a4845,'<'+_0x1a4845['tagName']+'>'+this['renderNode'](this['document'])+'</'+_0x1a4845['tagName']+'>',{'childrenOnly':!0x0}),this['options']['onStreamUpdate']&&this['options']['onStreamUpdate'](),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:_0x59efad}){Array['from'](_0x59efad['querySelectorAll']('span[data-ck-html-streamer-word-chunk]'))['reverse']()['forEach'](_0x165490=>{_0x165490['replaceWith'](_0x165490['childNodes'][0x0]);});}['stop'](){this['isStreaming']=!0x1,this['timeoutAbortController']&&(this['timeoutAbortController']['abort'](),this['timeoutAbortController']=null);}['renderNode'](_0x12a727){let _0x1dcae7='';if(isParsedDocumentNode(_0x12a727)){for(const _0x259692 of _0x12a727['children'])_0x1dcae7+=this['renderNode'](_0x259692);}else{if(isParsedElementNode(_0x12a727)){if(!_0x12a727['shouldBeStreamed'])return'';const _0x4dbc27=_0x12a727,_0x299a28=Object['entries'](_0x4dbc27['attribs'])['map'](([_0x1f7ca6,_0x194c3d])=>_0x1f7ca6+'=\x22'+_0x194c3d+'\x22')['join']('\x20');_0x1dcae7+='<'+_0x4dbc27['tagName']+(_0x299a28?'\x20'+_0x299a28:'')+'>';for(const _0x132176 of getChildren$1(_0x4dbc27))_0x1dcae7+=this['renderNode'](_0x132176);_0x1dcae7+='</'+_0x4dbc27['tagName']+'>';}else{if(!isParsedTextNode(_0x12a727))return'';if(!_0x12a727['shouldBeStreamed'])return'';canBecomeWordChunkSpan(_0x12a727)?_0x1dcae7+=render(new Element$3('span',{'data-ck-html-streamer-word-chunk':'','style':this['options']['textNodeStyle']},[_0x12a727])):_0x1dcae7+=render(_0x12a727);}}return _0x1dcae7;}['getParsedDocumentNodeList'](){const _0x55568d=[];return traverseParsedDocument(this['document'],_0x2d81df=>{if(isParsedTextNode(_0x2d81df)){const _0x19751b=this['splitTextNodeIntoWordNodes'](_0x2d81df);_0x19751b['length']&&_0x55568d['push'](..._0x19751b);}_0x2d81df['isWordSplitSource']||_0x2d81df['isWordSplitResult']||_0x55568d['push'](_0x2d81df);}),_0x55568d;}['splitTextNodeIntoWordNodes'](_0x18b112){if(_0x18b112['isWordSplitSource']||_0x18b112['isWordSplitResult'])return[];const _0x16d70f=textContent(_0x18b112)['match'](/(?:\s*\S+\s*)/g),_0x439ab1=[];if(_0x16d70f&&_0x16d70f['length']>0x1){for(const _0x26e0ea of _0x16d70f){const _0x5c8214=new Text$1(_0x26e0ea);_0x5c8214['isWordSplitResult']=!0x0,prepend(_0x18b112,_0x5c8214),_0x439ab1['push'](_0x5c8214);}_0x18b112['isWordSplitSource']=!0x0,removeElement(_0x18b112);}return _0x439ab1;}}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(_0xdb5fa1,_0x10d8be){const _0x5838ca=_0x1908e0=>{if(_0x10d8be(_0x1908e0),_0x1908e0 instanceof NodeWithChildren)for(let _0x458f35=0x0;_0x458f35<_0x1908e0['children']['length'];_0x458f35++){const _0x583dfc=_0x1908e0['children'][_0x458f35];_0x5838ca(_0x583dfc);}};for(let _0x5221f0=0x0;_0x5221f0<_0xdb5fa1['children']['length'];_0x5221f0++)_0x5838ca(_0xdb5fa1['children'][_0x5221f0]);}function canBecomeWordChunkSpan(_0x20da1d){return!(!_0x20da1d['parent']||!isParsedElementNode(_0x20da1d['parent']))&&(!!ELEMENTS_THAT_ALLOW_SPANS['includes'](_0x20da1d['parent']['tagName'])&&!textContent(_0x20da1d)['match'](/^\s*[<>]\s*$/));}function isParsedTextNode(_0x381b11){return isText$1(_0x381b11);}function isParsedElementNode(_0x48042c){return isTag(_0x48042c);}function isParsedDocumentNode(_0x3683fd){return isDocument(_0x3683fd);}function createAbortableTimeout(_0x411f31){const _0x57abb4=new AbortController();return{'promise':new Promise((_0x216536,_0x4ce568)=>{const _0x1c8e6c=setTimeout(_0x216536,_0x411f31);_0x57abb4['signal']['addEventListener']('abort',()=>{clearTimeout(_0x1c8e6c),_0x4ce568();});}),'abortController':_0x57abb4};}class AIChatFeedItemView extends View{['options'];['content']='';['htmlStreamer'];['children'];constructor(_0x2ef081){super();const _0x5d3b8b=this['bindTemplate'];this['set']('isDone',!0x1),this['set']('isVisible',!0x0),this['htmlStreamer']=new HTMLStreamer({'textNodeStyle':'animation:\x20ck-html-streamer-fade-in\x20.5s','delay':0x14}),this['options']=_0x2ef081,this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__item',_0x5d3b8b['if']('isDone','ck-ai-chat__feed__item_done'),_0x5d3b8b['if']('isVisible','ck-hidden',_0x2ff002=>!_0x2ff002),'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'](_0xb29a6e=>{_0xb29a6e['removeAttribute']('data-id');}),this['isDone']=!0x0;}async['streamIntoElement'](_0x303a39,_0x1e9776,_0x5afa33){await this['htmlStreamer']['stream']({'document':_0x303a39,'targetElement':_0x1e9776,'abortSignal':_0x5afa33});}}class AISuggestionHeaderView extends View{['showChangesToggleView'];constructor(_0x397bb6,_0x21676e){super(_0x397bb6),this['set']('isShowChangesToggleVisible',!0x0),this['showChangesToggleView']=new ShowChangesToggleView(_0x397bb6),this['showChangesToggleView']['set']({'class':'ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','label':getTranslation$i(_0x397bb6,'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':!0x0}),this['showChangesToggleView']['isOn']=_0x21676e['showDiff'],this['showChangesToggleView']['bind']('isVisible')['to'](this,'isShowChangesToggleVisible'),this['showChangesToggleView']['bind']('icon')['to'](this['showChangesToggleView'],'isOn',_0x5e97f2=>_0x5e97f2?IconShowChangesOn:IconShowChangesOff),this['showChangesToggleView']['on']('execute',()=>{this['showChangesToggleView']['isOn']=!this['showChangesToggleView']['isOn'],this['fire']('toggleShowChanges',{'isOn':this['showChangesToggleView']['isOn']});});const _0x2391f2=new IconView();_0x2391f2['content']=IconDocument,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__header',!0x1===_0x21676e['showHeader']?'ck-hidden':null]['filter'](Boolean)},'children':[_0x2391f2,{'tag':'span','children':[getTranslation$i(_0x397bb6,'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(_0x4d9370){super(_0x4d9370);const _0x20bcf8=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',_0x20bcf8['to']('state',_0xea32ee=>'ck-ai-suggestion__content-part-state_'+_0xea32ee),_0x20bcf8['if']('isVisible','ck-hidden',_0x3d82e7=>!_0x3d82e7)]},'children':[{'tag':'span','attributes':{'class':['ck-ai-suggestion__content-part-state__label']},'children':[{'text':_0x20bcf8['to']('state',_0x4ec0a6=>{switch(_0x4ec0a6){case'accepted':return getTranslation$i(_0x4d9370,'AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED');case'rejected':return getTranslation$i(_0x4d9370,'AI_SUGGESTION_CONTENT_PART_STATE_REJECTED');case'outdated':return getTranslation$i(_0x4d9370,'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED');}})}]},this['stateIconView']]});}['setState'](_0x3e6d60){this['state']=_0x3e6d60;}}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(_0x1193ce,_0x421be1,_0x5c8950){super(_0x1193ce);const _0xea6020=Boolean(_0x5c8950);this['set']('isEnabled',!_0xea6020),this['set']('isVisible',!0x0),this['class']='ck-ai-suggestion-content-part-toolbar';const _0x4b44e1=[];if(_0xea6020){const _0x4e6c47=new ButtonView(_0x1193ce);_0x4e6c47['set']({'label':getTranslation$i(_0x1193ce,'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconInfo}),_0x4b44e1['push'](_0x4e6c47);}else{_0x421be1['includes']('applySuggestion')&&(this['_applyButton']=new ButtonView(_0x1193ce),this['_applyButton']['set']({'label':getTranslation$i(_0x1193ce,'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');}),_0x4b44e1['push'](this['_applyButton'])),_0x421be1['includes']('insertSuggestion')&&(this['_suggestButton']=new ButtonView(_0x1193ce),this['_suggestButton']['set']({'label':getTranslation$i(_0x1193ce,'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');}),_0x4b44e1['push'](this['_suggestButton']));const _0x422cc2=new ButtonView(_0x1193ce);_0x422cc2['set']({'label':getTranslation$i(_0x1193ce,'AI_SUGGESTION_CONTENT_PART_REJECT'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconBoxWithCross}),_0x422cc2['bind']('isEnabled')['to'](this),_0x422cc2['on']('execute',()=>{this['fire']('rejectSuggestion');}),_0x4b44e1['push'](_0x422cc2);}this['items']['addMany'](_0x4b44e1);const _0x3c5151=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':[_0x3c5151['if']('isVisible','ck-hidden',_0x5b8db5=>!_0x5b8db5)]}});}['setButtonsVisibility']({showApplyButton:_0x1695c0,showSuggestButton:_0x2d548a}){this['_applyButton']&&(this['_applyButton']['isVisible']=_0x1695c0),this['_suggestButton']&&(this['_suggestButton']['isVisible']=_0x2d548a);}}class AISuggestionContentPartHeaderView extends View{['toolbarView'];['stateView'];['titleLabelView'];['children'];constructor(_0x476a30,{part:_0x13e0ff,uiIndex:_0x14f609,availableActions:_0x24a594,areActionsDisabled:_0x489c82}){super(_0x476a30),this['set']('isEnabled',!0x0),this['set']('state','pending'),this['toolbarView']=new AISuggestionContentPartToolbarView(_0x476a30,_0x24a594,_0x489c82),this['toolbarView']['on']('rejectSuggestion',()=>{this['fire']('rejectSuggestion',{'index':_0x13e0ff['index']});}),this['toolbarView']['on']('insertSuggestion',()=>{this['fire']('insertSuggestion',{'index':_0x13e0ff['index']});}),this['toolbarView']['on']('applySuggestion',()=>{this['fire']('applySuggestion',{'index':_0x13e0ff['index']});}),this['toolbarView']['bind']('isEnabled')['to'](this),this['stateView']=new AISuggestionContentPartStateView(_0x476a30),this['titleLabelView']=new AISuggestionBodyContentPartTitleLabelView(_0x476a30,_0x14f609),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',(_0x406853,_0x543d32,_0x50b1c8,_0x340ac5)=>{'pending'===_0x340ac5?this['children']['remove'](this['toolbarView']):this['children']['remove'](this['stateView']),'pending'===_0x50b1c8?this['children']['add'](this['toolbarView']):(this['stateView']['setState'](_0x50b1c8),this['children']['add'](this['stateView']));});}}class AISuggestionBodyContentPartTitleLabelView extends View{constructor(_0x51c612,_0x1008c3){super(_0x51c612),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__body__content-part__title__label']},'children':[getTranslation$i(_0x51c612,'AI_SUGGESTION_CONTENT_PART_TITLE',_0x1008c3['toString']())]});}}class AISuggestionStreamableContentView extends View{['htmlStreamer'];constructor(_0x14b08c){super(_0x14b08c),this['htmlStreamer']=new HTMLStreamer({'textNodeStyle':'animation:\x20ck-html-streamer-fade-in\x20.5s','delay':0x14}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content','ck-reset_all-excluded','ck-ai-suggestion-streamable-content']}});}async['update']({part:_0x1d948d,renderingStrategy:_0x577a4f,abortSignal:_0x2af0e8}){'streaming'===_0x577a4f?await this['htmlStreamer']['stream']({'document':_0x1d948d['content'],'targetElement':this['element'],'abortSignal':_0x2af0e8}):this['element']['innerHTML']=serialize(_0x1d948d['content']);}['clear'](){this['htmlStreamer']['reset'](),this['element']['innerHTML']='';}}class AISuggestionBodyViewContentPartView extends View{['_children'];['_headerView'];['_streamableContentView'];constructor(_0x1791b4,{part:_0x2fe00d,uiIndex:_0x4866bb,areActionsDisabled:_0x2e1576,availableActions:_0x28fe28}){super(_0x1791b4);const _0x209849=this['bindTemplate'];this['set']('state','pending'),this['set']('isDone',!0x1),this['set']('isVisible',!0x1),this['set']('isActive',!0x1),this['set']('isEnabled',!0x1);const _0xe0a198=()=>{this['isEnabled']=this['isDone']&&'pending'==this['state']&&!_0x2e1576;};this['on']('change:state',_0xe0a198),this['on']('change:isDone',_0xe0a198),_0xe0a198(),this['_children']=this['createCollection'](),this['_headerView']=new AISuggestionContentPartHeaderView(_0x1791b4,{'part':_0x2fe00d,'uiIndex':_0x4866bb,'availableActions':_0x28fe28,'areActionsDisabled':_0x2e1576}),this['_headerView']['bind']('isEnabled','state')['to'](this),this['_headerView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_streamableContentView']=new AISuggestionStreamableContentView(_0x1791b4),this['_children']['addMany']([this['_headerView'],this['_streamableContentView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body__content-part',_0x209849['to']('state',_0x5a7771=>'ck-ai-suggestion__body__content-part_'+_0x5a7771),_0x209849['if']('isEnabled','ck-ai-suggestion__body__content-part_enabled'),_0x209849['if']('isActive','ck-ai-suggestion__body__content-part_active'),_0x209849['if']('isVisible','ck-hidden',_0x5bc9d1=>!_0x5bc9d1)]},'children':this['_children'],'on':{'mouseenter':_0x209849['to'](()=>{this['isEnabled']&&this['fire']('mouseOverSuggestion',{'index':_0x2fe00d['index']});}),'mouseleave':_0x209849['to'](()=>{this['isEnabled']&&this['fire']('mouseLeaveSuggestion',{'index':_0x2fe00d['index']});}),'click':_0x209849['to'](_0x38e432=>{const _0x162bf2=_0x38e432['target'];this['isEnabled']&&!this['_headerView']['toolbarView']['element']['contains'](_0x162bf2)&&this['fire']('showChangeInText',{'index':_0x2fe00d['index']});})}});}async['updateContent']({part:_0x1c0c7c,renderingStrategy:_0x422dc0,showUnchangedParts:_0x437f5e=!0x1,abortSignal:_0xc6693a}){this['partDefinition']=_0x1c0c7c,this['isVisible']=this['partDefinition']['hasChanges']||_0x437f5e,this['isVisible']&&await this['_streamableContentView']['update']({'part':_0x1c0c7c,'renderingStrategy':_0x422dc0,'abortSignal':_0xc6693a});}['markAsDone'](){this['isDone']=!0x0;}}class PromiseQueue extends EmitterMixin(){['queue']=[];['isProcessing']=!0x1;['_abortController'];async['enqueue'](_0x5f45b4){const _0x41b230=this['createTask'](_0x5f45b4);return this['queue']['push'](_0x41b230),this['_processQueue'](),_0x41b230['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(_0x55759d=>{this['once']('_queueEmpty',()=>{_0x55759d();});}):Promise['resolve']();}async['_processQueue'](){if(!this['isProcessing']){this['_abortController']=new AbortController(),this['isProcessing']=!0x0;try{for(;this['queue']['length']&&this['isProcessing'];){const _0x424491=this['queue']['shift']();try{await _0x424491['callback'](this['_abortController']['signal']),_0x424491['resolve']();}catch(_0x467d7b){_0x424491['reject'](_0x467d7b);}}}finally{this['isProcessing']=!0x1,this['_abortController']=void 0x0;}this['fire']('_queueEmpty');}}['createTask'](_0x1244db){let _0xff07c,_0x4e9540;const _0x2954fe=new Promise((_0x3895e2,_0x121ef6)=>{_0xff07c=_0x3895e2,_0x4e9540=_0x121ef6;});return{'callback':_0x1244db,'resolve':_0xff07c,'reject':_0x4e9540,'completePromise':_0x2954fe};}}class AIChatFeedErrorItemView extends AIChatFeedItemView{constructor(_0x489284){super(_0x489284),this['extendTemplate']({'attributes':{'class':['ck-ai-notification','warning'===_0x489284['level']?'ck-ai-notification_warning':'ck-ai-notification_error']}});}['render'](){super['render'](),this['setContent'](this['options']['initialContent']),this['markAsDone']();}['setContent'](_0x25ba9e){this['element']['innerHTML']=_0x25ba9e;}}const AI_REPLY_ACTIONS=['applySuggestion','insertSuggestion'];class AIChatFeedSuggestionItemActionsView extends View{['_applyChangesButton'];['_insertSuggestionsButton'];['children'];constructor(_0x19dc67,_0x2cbf3a=[...AI_REPLY_ACTIONS],_0xba2fa6){super(_0x19dc67);const _0x1c5afe=this['bindTemplate'],_0x27cf48=Boolean(_0xba2fa6);if(this['set']('isEnabled',!_0x27cf48),this['set']('isVisible',!0x1),this['set']('isTrackChangesOn',!0x1),this['children']=this['createCollection'](),_0x27cf48){const _0x1f73bf=new ButtonView(_0x19dc67);_0x1f73bf['set']({'label':getTranslation$i(_0x19dc67,'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconInfo});const _0x2bfc64=new View(_0x19dc67);_0x2bfc64['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat__feed__suggestion__actions__info'},'children':[{'tag':'p','children':[getTranslation$i(_0x19dc67,'AI_SUGGESTION_DISABLED_FEED_MESSAGE'),_0x1f73bf]}]}),this['children']['add'](_0x2bfc64);}else this['_applyChangesButton']=new ButtonView(_0x19dc67),this['_applyChangesButton']['set']({'label':getTranslation$i(_0x19dc67,'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'),'withText':!0x0,'type':'button','isVisible':_0x2cbf3a['includes']('applySuggestion'),'class':'ck-ai-button-primary'}),this['_insertSuggestionsButton']=new ButtonView(_0x19dc67),this['_insertSuggestionsButton']['set']({'label':getTranslation$i(_0x19dc67,'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL'),'withText':!0x0,'type':'button','isVisible':_0x2cbf3a['includes']('insertSuggestion'),'class':'ck-ai-button-secondary'}),this['_insertSuggestionsButton']['on']('execute',()=>{this['fire']('insertSuggestion');}),this['_applyChangesButton']['on']('execute',()=>{this['fire']('applySuggestion');}),[this['_applyChangesButton'],this['_insertSuggestionsButton']]['forEach'](_0x45b120=>{_0x45b120['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',_0x1c5afe['if']('isVisible','ck-hidden',_0x5a8770=>!_0x5a8770)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_applyChangesButton']&&(this['_applyChangesButton']['isVisible']=!this['isTrackChangesOn']);});}['updateVisibility'](_0x4e3f4b){this['isVisible']=_0x4e3f4b;}['_switchButtonLabelsPlurality'](_0x2ff760){this['_applyChangesButton']&&this['_insertSuggestionsButton']&&(_0x2ff760?(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(_0x5346c8,_0x164b2b){super(_0x5346c8),this['bodyCollection']=_0x164b2b,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',_0x369372=>!_0x369372)]},'children':this['children']});const _0x3f82cf=new View(this['locale']),_0x3f8e5d=new IconView();_0x3f8e5d['content']=IconWeb,_0x3f82cf['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-sources__header']},'children':[_0x3f8e5d,{'tag':'span','children':[{'text':getTranslation$i(this['locale'],'AI_CHAT_SOURCES_HEADER')}]}]}),this['children']['add'](_0x3f82cf),this['_setupBalloonPanel'](_0x5346c8);}['addSource'](_0x595a88){this['children']['add'](new AIWebSourceView(this['locale'],_0x595a88,this['balloonPanelView']));}['_setupBalloonPanel'](_0x24e1be){this['balloonPanelView']=new BalloonPanelView(_0x24e1be),this['balloonPanelView']['extendTemplate']({'attributes':{'class':['ck-ai-web-source__tooltip-balloon']}}),this['bodyCollection']['add'](this['balloonPanelView']);}}class AIWebSourceView extends ButtonView{['balloonPanelView'];['source'];constructor(_0xdffe13,_0x2cf5c3,_0x1044b3){super(_0xdffe13),this['source']=_0x2cf5c3,this['balloonPanelView']=_0x1044b3,this['set']({'label':_0x2cf5c3['title'],'class':['ck\x20ck-ai-web-source'],'withText':!0x0});const _0x853f58=this['bindTemplate'];if(this['extendTemplate']({'on':{'click':_0x853f58['to'](()=>{window['open'](_0x2cf5c3['url'],'_blank');}),'mouseenter':_0x853f58['to'](()=>{this['_showTooltip']();}),'mouseleave':_0x853f58['to'](()=>{this['_hideTooltip']();})}}),_0x2cf5c3['favicon']){const _0x3d31c6=new View(_0xdffe13);_0x3d31c6['setTemplate']({'tag':'img','attributes':{'src':_0x2cf5c3['favicon']||IconWeb,'alt':_0x2cf5c3['title'],'class':['ck-ai-web-source__image']}}),this['children']['add'](_0x3d31c6);}else this['set']('icon',IconWeb);}['_createTooltipContentView'](_0x134f26,_0x23b8a9){const _0x29334e=new View(_0x134f26),_0x1f5860=[];let _0x4a9bf6;_0x23b8a9?.['favicon']?(_0x4a9bf6=new View(_0x134f26),_0x4a9bf6['setTemplate']({'tag':'img','attributes':{'src':_0x23b8a9['favicon'],'alt':_0x23b8a9['title'],'class':['ck-ai-web-source__tooltip-image']}})):(_0x4a9bf6=new IconView(),_0x4a9bf6['content']=IconWeb,_0x4a9bf6['extendTemplate']({'attributes':{'alt':_0x23b8a9['title'],'class':['ck-ai-web-source__tooltip-image']}})),_0x1f5860['push'](_0x4a9bf6);const _0x5f1530=new View(_0x134f26);_0x5f1530['setTemplate']({'tag':'a','attributes':{'class':['ck-ai-web-source__tooltip-url'],'href':_0x23b8a9['url']},'children':[{'text':new URL(_0x23b8a9['url'])?.['hostname']}]}),_0x1f5860['push'](_0x5f1530);const _0x2d1e72=new View(_0x134f26);_0x2d1e72['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-web-source__tooltip-row']},'children':_0x1f5860});const _0x5737e4=new View(_0x134f26);return _0x5737e4['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-web-source__tooltip-row','ck-ai-web-source__tooltip-title']},'children':[{'text':_0x23b8a9['title']['length']>TOOLTIP_TITLE_MAX_LENGTH?_0x23b8a9['title']['substring'](0x0,TOOLTIP_TITLE_MAX_LENGTH)+'...':_0x23b8a9['title']}]}),_0x29334e['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-source__tooltip']},'children':[_0x2d1e72,_0x5737e4]}),_0x29334e;}['_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 _0x559483=this['_createTooltipContentView'](this['locale'],this['source']);this['balloonPanelView']['content']['add'](_0x559483);}}class AISuggestionBodyView extends View{['_actionsView'];['_sourcesView'];['_children'];['_areActionsDisabled'];['_showUnchangedParts'];['_updateContentPartsPromiseQueue'];['_emptyPartsWarningView'];['_availableActions'];['_cachedContentParts']=[];constructor(_0x13774d,_0x454fe3){super(_0x13774d);const {areActionsDisabled:_0x340be5,showUnchangedParts:_0x2e57bd,availableActions:_0xe0320e}=_0x454fe3;this['_areActionsDisabled']=_0x340be5,this['_showUnchangedParts']=_0x2e57bd,this['_availableActions']=_0xe0320e,this['set']('hasPendingParts',!0x1),this['set']('isTrackChangesOn',!0x1),this['_children']=this['createCollection'](),this['_updateContentPartsPromiseQueue']=new PromiseQueue(),this['_emptyPartsWarningView']=new AIChatFeedErrorItemView({'id':'empty-parts-warning','initialContent':getTranslation$i(_0x13774d,'AI_SUGGESTION_EMPTY_PART_WARNING'),'level':'warning'}),this['_emptyPartsWarningView']['isVisible']=!0x1,this['_actionsView']=new AIChatFeedSuggestionItemActionsView(_0x13774d,_0x454fe3['availableActions'],this['_areActionsDisabled']),this['_actionsView']['bind']('isTrackChangesOn')['to'](this),this['_sourcesView']=new AIWebSourcesView(this['locale'],_0x454fe3['bodyCollection']),_0x454fe3['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']]});}get['partsCount'](){return this['_children']['length'];}async['updateContentParts']({parts:_0x3e5a98,renderingStrategy:_0x78c68d,abortSignal:_0x58ac08}){this['_children']['length']?_0x3e5a98['forEach'](_0x594bdc=>{const _0x26b10c=this['_cachedContentParts']['findIndex'](_0x52a2f1=>_0x52a2f1['index']==_0x594bdc['index']);-0x1===_0x26b10c?this['_cachedContentParts']['push'](_0x594bdc):this['_cachedContentParts'][_0x26b10c]=_0x594bdc;}):this['_cachedContentParts']=_0x3e5a98;const _0x2a4521=this['_showUnchangedParts']?_0x3e5a98:_0x3e5a98['filter'](_0x964a7c=>_0x964a7c['hasChanges']);this['_actionsView']['_switchButtonLabelsPlurality'](_0x2a4521['length']>0x1);for(const _0x38b992 of _0x2a4521)this['_updateContentPartsPromiseQueue']['enqueue'](async _0x20148f=>{let _0x3dbc49=this['getPartView'](_0x38b992['index']);_0x3dbc49||(_0x3dbc49=new AISuggestionBodyViewContentPartView(this['locale'],{'part':_0x38b992,'uiIndex':this['_children']['length']+0x1,'areActionsDisabled':this['_areActionsDisabled'],'availableActions':this['_availableActions']}),_0x3dbc49['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_children']['add'](_0x3dbc49),this['hasPendingParts']=!0x0),await _0x3dbc49['updateContent']({'part':_0x38b992,'renderingStrategy':_0x78c68d,'showUnchangedParts':this['_showUnchangedParts'],'abortSignal':_0x20148f}),_0x3dbc49['markAsDone']();});return _0x58ac08?.['addEventListener']('abort',()=>{this['_updateContentPartsPromiseQueue']['abort']();}),this['_updateContentPartsPromiseQueue']['queueEmptyPromise'];}['updatePartState'](_0xfb00ac,_0x29dcf2){const _0x32ec69=this['getPartView'](_0xfb00ac);_0x32ec69&&(_0x32ec69['state']=_0x29dcf2),this['hasPendingParts']='pending'==_0x29dcf2||Array['from'](this['_children'])['some'](_0x318fd5=>'pending'==_0x318fd5['state']);}['setPartActive'](_0x4c9e8c,_0x410ffc){if(!0x1===_0x4c9e8c){for(const _0x49f4df of this['_children'])_0x49f4df['isActive']=!0x1;}else{const _0x415a15=this['getPartView'](_0x4c9e8c);_0x415a15&&(_0x415a15['isActive']=_0x410ffc);}}['updateSources'](_0x134d73){_0x134d73['forEach'](_0x57962c=>this['_sourcesView']['addSource'](_0x57962c)),this['_sourcesView']['isVisible']=!0x0;}['getPartView'](_0x15c705){return this['_children']['find'](_0x2adf0b=>_0x2adf0b['partDefinition']['index']==_0x15c705)??null;}['markAsDone'](){if(!this['_showUnchangedParts']){const _0x1eb573=!this['_cachedContentParts']['find'](({hasChanges:_0x5b79f9})=>_0x5b79f9),_0x3e4a78=!!this['_cachedContentParts']['find'](({hasChanges:_0x4ba4a3})=>!_0x4ba4a3);this['_emptyPartsWarningView']['isVisible']=0x0==this['_children']['length']||_0x3e4a78,_0x1eb573?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['_children']['forEach'](_0x49edfe=>_0x49edfe['markAsDone']()),this['_actionsView']['updateVisibility'](this['hasNonEmptyParts']);}get['hasNonEmptyParts'](){return this['_children']['filter'](_0x390d3d=>_0x390d3d['partDefinition']['hasChanges'])['length']>0x0;}}class AISuggestionContainerView extends View{['bodyView'];['children'];['headerView'];constructor(_0x40aa6d,_0x1880a0,_0x507f96){super(_0x40aa6d);const {showDiff:_0x4d6ebf,areActionsDisabled:_0x320487,showUnchangedParts:_0x4bd193,availableActions:_0x4f1e56}=_0x1880a0;this['set']('isTrackChangesOn',!0x1),this['set']('areChangesVisible',!0x1),this['children']=this['createCollection'](),this['headerView']=new AISuggestionHeaderView(_0x40aa6d,{'showDiff':_0x4d6ebf}),this['headerView']['on']('toggleShowChanges',(_0x199ff2,_0x2bf8b6)=>{this['areChangesVisible']=_0x2bf8b6['isOn'],this['fire']('toggleSuggestionDisplayMode',{'showDiff':_0x2bf8b6['isOn']});}),this['children']['add'](this['headerView']),this['bodyView']=new AISuggestionBodyView(_0x40aa6d,{'areActionsDisabled':_0x320487,'showUnchangedParts':!!_0x4bd193,'availableActions':_0x4f1e56,'bodyCollection':_0x507f96}),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'](_0x352e3f){await this['bodyView']['updateContentParts'](_0x352e3f);}['updateSources'](_0x124e83){this['bodyView']['updateSources'](_0x124e83);}['markAsDone'](){this['bodyView']['markAsDone'](),this['headerView']&&(this['headerView']['isShowChangesToggleVisible']=this['bodyView']['hasNonEmptyParts']);}}class AIChatFeedSuggestionItemView extends AIChatFeedItemView{['containerView'];constructor(_0x3b3752,_0x1bff94,_0x5ede30){super(_0x1bff94),this['set']('isTrackChangesOn',!0x1),this['containerView']=new AISuggestionContainerView(_0x3b3752,{'showDiff':_0x1bff94['showDiff'],'areActionsDisabled':_0x1bff94['areActionsDisabled'],'availableActions':_0x1bff94['availableActions']},_0x5ede30),this['containerView']['on']('toggleSuggestionDisplayMode',(_0x5b0897,_0x74026a)=>{this['fire']('toggleSuggestionDisplayMode',{'replyId':this['options']['id'],'showDiff':_0x74026a['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',(_0x12b5e9,{index:_0x2f876b})=>{this['fire']('showChangeInText',{'replyId':this['options']['id'],'partIndex':_0x2f876b});}),this['containerView']['on']('applySuggestion',(_0x3dfa08,{index:_0x1d631b}={})=>{this['fire']('applySuggestion',{'replyId':this['options']['id'],'partIndex':_0x1d631b});}),this['containerView']['on']('insertSuggestion',(_0xa373cd,{index:_0x4e2eed}={})=>{this['fire']('insertSuggestion',{'replyId':this['options']['id'],'partIndex':_0x4e2eed});}),this['containerView']['on']('rejectSuggestion',(_0x3512ba,{index:_0x1b3cb6})=>{this['fire']('rejectSuggestion',{'replyId':this['options']['id'],'partIndex':_0x1b3cb6});}),this['containerView']['on']('mouseOverSuggestion',(_0x46a7c5,{index:_0x5b9c00})=>{this['fire']('mouseOverSuggestion',{'replyId':this['options']['id'],'partIndex':_0x5b9c00});}),this['containerView']['on']('mouseLeaveSuggestion',(_0x3433b3,{index:_0x56a99d})=>{this['fire']('mouseLeaveSuggestion',{'replyId':this['options']['id'],'partIndex':_0x56a99d});}),this['children']['addMany']([this['containerView']]),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__ai-suggestion']}});}async['updateContent'](_0x4f41f2){await this['containerView']['updateContent'](_0x4f41f2);}['updatePartState'](_0x9af145,_0x4c36de){this['containerView']['bodyView']['updatePartState'](_0x9af145,_0x4c36de);}['setPartActive'](_0x7fe983,_0x65ffda){!0x1===_0x7fe983?this['containerView']['bodyView']['setPartActive'](!0x1):this['containerView']['bodyView']['setPartActive'](_0x7fe983,_0x65ffda);}['updateSources'](_0xa481a0){this['containerView']['updateSources'](_0xa481a0);}['getPartView'](_0x38025f){return this['containerView']['bodyView']['getPartView'](_0x38025f);}['markAsDone'](){super['markAsDone'](),this['containerView']['markAsDone']();}}class AIChatFeedReplyItemView extends AIChatFeedItemView{['replyContainer'];['_bodyCollection'];constructor(_0x52f0f6,_0x17c2ab,_0x36a15f){super(_0x17c2ab),this['_bodyCollection']=_0x36a15f,this['locale']=_0x52f0f6,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:_0xe3e5e4,renderingStrategy:_0x5b3468,abortSignal:_0x14c077}){'streaming'===_0x5b3468?await this['streamIntoElement'](_0xe3e5e4,this['replyContainer']['element'],_0x14c077):this['replyContainer']['element']['innerHTML']=render(_0xe3e5e4);}['updateSources'](_0x10e954){const _0xf1c286=new AIWebSourcesView(this['locale'],this['_bodyCollection']);_0xf1c286['children']['addMany'](_0x10e954['map'](_0x326f02=>new AIWebSourceView(this['locale'],_0x326f02,_0xf1c286['balloonPanelView']))),_0xf1c286['isVisible']=!0x0,this['children']['add'](_0xf1c286);}}class AISpinnerView extends SpinnerView{constructor(_0x24719b=void 0x0){super();const _0x279112=_0x24719b?'ck-ai-spinner_'+_0x24719b:'';this['extendTemplate']({'tag':'span','attributes':{'class':['ck-ai-spinner',_0x279112]}});}}const CONTEXT_TYPES_TO_ICONS={'file':IconFileUpload,'document':IconDocument$1,'web-resource':IconLink,'text':IconFileUpload,'selection':IconSelection,'mcp-tool-context':IconDocument$1},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(_0x174cb5,_0x4eb82f,_0x5243e0,_0x48e7e2,_0x1c2fac=!0x1){super(_0x174cb5),this['_isAnimationOnEnterEnabled']=_0x48e7e2,this['_initializeProperties'](_0x4eb82f,_0x5243e0,_0x1c2fac),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'](_0x1d49ba,_0x4807fa,_0xe1feec){this['set']('label',_0x1d49ba['label']),this['set']('tooltip',!0x0),this['set']('itemType',_0x1d49ba['type']),this['set']('id',_0x1d49ba['uiId']),this['set']('readonly',_0x4807fa),this['set']('isLoading',_0xe1feec);}['_setupTemplate'](){const _0x56eac9=this['_createIconView'](),_0x291142=this['_createRemoveButton'](),_0x2747b7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':this['_createTemplateAttributes'](_0x2747b7),'children':this['_createTemplateChildren'](_0x56eac9,_0x291142,_0x2747b7)});}['_createTemplateAttributes'](_0x490711){return{'class':[CSS_CLASSES$7['contextChip'],_0x490711['if']('itemType',CSS_CLASSES$7['contextChipDocument'],_0x48a526=>'document'==_0x48a526),_0x490711['if']('itemType',CSS_CLASSES$7['contextChipWide'],_0x59ef71=>'selection'==_0x59ef71)],'data-cke-tooltip-text':_0x490711['to']('label',getTooltipForLabel),'data-cke-tooltip-position':TOOLTIP_CONFIG['position'],'data-cke-tooltip-class':CSS_CLASSES$7['chipTooltip']};}['_createTemplateChildren'](_0x453347,_0x42b23b,_0x2bef40){const _0x3febb7=this['_createLabelElement'](_0x2bef40),_0x1c193b=this['_createLoaderIcon']();return this['readonly']?[_0x453347,_0x3febb7]:[_0x453347,_0x1c193b,_0x3febb7,_0x42b23b];}['_createLabelElement'](_0x22aa96){return{'tag':'span','attributes':{'class':CSS_CLASSES$7['contextChipLabel']},'children':[{'text':_0x22aa96['to']('label')}]};}['_createRemoveButton'](){const _0x4ff3b4=new ButtonView(this['locale']);return _0x4ff3b4['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT'),'icon':IconClose}),this['_setupRemoveButtonEvent'](_0x4ff3b4),_0x4ff3b4;}['_setupRemoveButtonEvent'](_0x1ae1d6){_0x1ae1d6['on']('execute',()=>{this['fire']('removeContextItemChip',this['id']);});}['_createIconView'](){const _0x2adc1b=this['bindTemplate'],_0x19cbd9=new IconView();return _0x19cbd9['content']=CONTEXT_TYPES_TO_ICONS[this['itemType']],_0x19cbd9['extendTemplate']({'attributes':{'class':[CSS_CLASSES$7['contextChipTypeIcon'],_0x2adc1b['if']('isLoading','ck-hidden',_0x36bc9a=>_0x36bc9a)]}}),_0x19cbd9;}['_handleAnimationEndOnce'](_0x2cb687,_0x371429){if(!_0x2cb687)return;const _0x1ae0a6=()=>{_0x371429(),_0x2cb687['removeEventListener']('animationend',_0x1ae0a6),_0x2cb687['removeEventListener']('webkitAnimationEnd',_0x1ae0a6);};_0x2cb687['addEventListener']('animationend',_0x1ae0a6),_0x2cb687['addEventListener']('webkitAnimationEnd',_0x1ae0a6);}['_createLoaderIcon'](){const _0x53eea9=new AISpinnerView('small');return _0x53eea9['bind']('isVisible')['to'](this,'isLoading',_0x4f1bf2=>_0x4f1bf2),_0x53eea9;}}function getTooltipForLabel(_0x162928){if(!_0x162928)return _0x162928;if(_0x162928['length']<=TOOLTIP_MAX_CHAR_LENGTH)return _0x162928;const _0x49d2a6=_0x162928['slice'](0x0,TOOLTIP_MAX_CHAR_LENGTH),_0x31628e=_0x49d2a6['lastIndexOf']('\x20');return(_0x31628e>0x0?_0x49d2a6['slice'](0x0,_0x31628e):_0x49d2a6)+'…';}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(_0x550b89,_0x228688,_0x28d9b3,_0x373a3e,_0x5d467f){this['_locale']=_0x550b89,this['_visibleChips']=_0x228688,this['_config']={...DEFAULT_CONFIG,..._0x28d9b3,'cssClasses':{'controlsButton':'','calculationContainer':'ck-calculation-container',..._0x28d9b3['cssClasses']}},this['_overflowChips']=new Collection(),this['_bodyCollection']=_0x373a3e,this['_parentView']=_0x5d467f||null;}['setContainerElement'](_0x4f4a67){this['_intersectionObserver']&&(this['_intersectionObserver']['disconnect'](),this['_intersectionObserver']=null),this['_containerElement']=_0x4f4a67,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 _0x29197e=[...this['_visibleChips'],...this['_overflowChips']],_0x2e2a2f=this['_createCalculationContainer'](),_0x3b082e=this['_calculateOverflowInContainer'](_0x2e2a2f,_0x29197e),_0x51bf78=_0x2e2a2f['_ancestorsToRestore'];_0x51bf78&&this['_restoreAncestorVisibility'](_0x51bf78),_0x2e2a2f['remove'](),this['_applyOverflowResults'](_0x29197e,_0x3b082e);}['_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 _0x1f0b64=new ButtonView(this['_locale']);_0x1f0b64['set']({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x57d9df=[this['_config']['cssClasses']['showMoreButton']];return this['_config']['cssClasses']['controlsButton']&&_0x57d9df['push'](this['_config']['cssClasses']['controlsButton']),_0x1f0b64['extendTemplate']({'attributes':{'class':_0x57d9df}}),_0x1f0b64;}['_createShowMoreBalloonPanelView'](){const _0x1b2488=new BalloonPanelView(this['_locale']);return _0x1b2488['extendTemplate']({'attributes':{'class':this['_config']['cssClasses']['showMoreBalloon']}}),this['_bodyCollection']['add'](_0x1b2488),_0x1b2488;}['_updateBalloonContent'](){if(this['_showMoreBalloonPanelView']&&(this['_showMoreBalloonPanelView']['content']['clear'](),this['_overflowChips']['length']>0x0)){this['_overflowChips']['forEach'](_0x3ee661=>{_0x3ee661['disableAnimationOnEnter']();});const _0x3abf1a=new View(this['_locale']);_0x3abf1a['setTemplate']({'tag':'div','attributes':{'class':this['_config']['cssClasses']['overflowContainer']},'children':this['_overflowChips']}),this['_showMoreBalloonPanelView']['content']['add'](_0x3abf1a);}}['_handleShowMoreButtonClick'](){this['_showMoreButtonView']['isOn']?this['hideBalloonPanel']():this['showBalloonPanel']();}['_updateShowMoreButtonVisibility'](){const _0x5b000d=this['_overflowChips']['length']>0x0;this['_showMoreButtonView']?.['element']&&(this['_showMoreButtonView']['element']['style']['display']=_0x5b000d?'':'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'](_0x504621){const _0x2f3b5d=this['_containerElement']?.['tagName']['toLowerCase']()||'div',_0x594412=this['_containerElement']?.['classList'];if(_0x594412){const _0x3c171e=_0x594412[0x0]||'',_0x5e73dd=_0x504621['querySelector']('.'+_0x3c171e),_0x26e9f1=_0x504621['querySelector'](_0x2f3b5d);return _0x5e73dd||_0x26e9f1||_0x504621;}return _0x504621['querySelector'](_0x2f3b5d)||_0x504621;}['_calculateContainerWidth'](){const _0x3568ea=this['_parentView']?.['element']||this['_containerElement'];if(!_0x3568ea)return FALLBACK_CONTAINER_WIDTH;const _0x2d3b5e=window['getComputedStyle'](_0x3568ea)['width'];if('auto'===_0x2d3b5e||'0px'===_0x2d3b5e||!_0x2d3b5e){const _0x1cc78b=_0x3568ea['parentElement'];if(_0x1cc78b){const _0x5005ef=window['getComputedStyle'](_0x1cc78b);return'auto'!==_0x5005ef['width']?_0x5005ef['width']:FALLBACK_CONTAINER_WIDTH;}return FALLBACK_CONTAINER_WIDTH;}return _0x2d3b5e;}['_applyCalculationStyles'](_0x295d2f,_0x540d45){this['_config']['cssClasses']['calculationContainer']&&_0x295d2f['classList']['add'](this['_config']['cssClasses']['calculationContainer']),_0x295d2f['style']['width']=_0x540d45,_0x295d2f['style']['position']='absolute',_0x295d2f['style']['top']='-9999px',_0x295d2f['style']['left']='-9999px',_0x295d2f['style']['opacity']='0',_0x295d2f['style']['pointerEvents']='none',_0x295d2f['style']['zIndex']='-1',_0x295d2f['style']['visibility']='visible\x20!important',_0x295d2f['style']['display']='block\x20!important',_0x295d2f['style']['boxSizing']='border-box';}['_restoreAncestorVisibility'](_0x5987a9){_0x5987a9['forEach'](({element:_0x3ecc14,originalDisplay:_0x4aa159,originalVisibility:_0x1f49b4})=>{_0x3ecc14['style']['display']=_0x4aa159,_0x3ecc14['style']['visibility']=_0x1f49b4;});}['_makeAncestorsVisible'](_0x7c691f){const _0x3b4227=[];let _0x455494=_0x7c691f;for(;_0x455494&&_0x455494!==document['body'];){const _0x2a894e=window['getComputedStyle'](_0x455494);'none'!==_0x2a894e['display']&&'hidden'!==_0x2a894e['visibility']||(_0x3b4227['push']({'element':_0x455494,'originalDisplay':_0x455494['style']['display'],'originalVisibility':_0x455494['style']['visibility']}),_0x455494['style']['display']='block',_0x455494['style']['visibility']='visible'),_0x455494=_0x455494['parentElement'];}return _0x3b4227;}['_createContainerElements'](){let _0x1fb5c8,_0x197702;return this['_parentView']?.['element']?(_0x1fb5c8=this['_parentView']['element']['cloneNode'](!0x0),_0x197702=this['_findTargetContainer'](_0x1fb5c8)):(_0x1fb5c8=document['createElement']('div'),_0x197702=_0x1fb5c8),{'calculationContainer':_0x1fb5c8,'targetContainer':_0x197702};}['_createCalculationContainer'](){const {calculationContainer:_0x5bbcce,targetContainer:_0x53cbc7}=this['_createContainerElements'](),_0x7e2e9f=this['_calculateContainerWidth']();this['_applyCalculationStyles'](_0x5bbcce,_0x7e2e9f);const _0xb300be=this['_parentView']?.['element']||this['_containerElement'],_0x3ee6bf=_0xb300be?.['parentElement'];_0x3ee6bf?_0x3ee6bf['appendChild'](_0x5bbcce):document['body']['appendChild'](_0x5bbcce),_0x5bbcce['_targetContainer']=_0x53cbc7;const _0x564e3a=this['_makeAncestorsVisible'](_0x3ee6bf||null);return _0x5bbcce['offsetWidth'],_0x5bbcce['_ancestorsToRestore']=_0x564e3a,_0x5bbcce;}['_calculateOverflowInContainer'](_0x2c9829,_0x1f00f7){const _0x4e6581=_0x2c9829['_targetContainer']||_0x2c9829,_0x5cf332=[],{rowCount:_0xd778d4}=this['_renderChipsAndCountRows'](_0x4e6581,_0x1f00f7);if(_0xd778d4<=this['_config']['maxVisibleRows'])return _0x5cf332;const _0x53b289=_0x1f00f7['slice']();for(;_0x53b289['length']>0x0;){if(this['_testButtonFit'](_0x2c9829,_0x4e6581,_0x53b289)){const _0x1ccb92=_0x1f00f7['filter'](_0x2ed190=>!_0x53b289['includes'](_0x2ed190));_0x5cf332['push'](..._0x1ccb92);break;}if(!_0x53b289['pop']())break;}return _0x5cf332;}['_renderChipsAndCountRows'](_0x519be6,_0x5c8dfb){_0x519be6['innerHTML']='',_0x5c8dfb['forEach'](_0x252d13=>{if(_0x252d13['element']){const _0x491320=_0x252d13['element']['cloneNode'](!0x0);_0x519be6['appendChild'](_0x491320);}}),_0x519be6['offsetWidth'];const _0x5dd794=_0x519be6['children'],_0x5b4d86=[];return Array['from'](_0x5dd794)['forEach'](_0x1b9731=>{const _0x4a5434=_0x1b9731['getBoundingClientRect']()['top'];_0x5b4d86['some'](_0x41fd9f=>Math['abs'](_0x41fd9f-_0x4a5434)<this['_config']['rowDetectionTolerance'])||_0x5b4d86['push'](_0x4a5434);}),{'rowCount':_0x5b4d86['length']};}['_createMockButton'](){const _0x2711a1=document['createElement']('button');return _0x2711a1['className']=this['_config']['cssClasses']['showMoreButton'],this['_config']['cssClasses']['controlsButton']&&_0x2711a1['classList']['add'](this['_config']['cssClasses']['controlsButton']),_0x2711a1['textContent']='+\x201',_0x2711a1;}['_testButtonFit'](_0x3a0a60,_0x14032c,_0x4afa26){this['_renderChipsAndCountRows'](_0x14032c,_0x4afa26);const _0x3fa3db=this['_createMockButton']();_0x3a0a60['appendChild'](_0x3fa3db),_0x3a0a60['offsetWidth'];const _0xd6f73d=[..._0x14032c['children'],_0x3fa3db],_0x4f625b=[];_0xd6f73d['forEach'](_0x4d4ffa=>{const _0x5c5e5a=_0x4d4ffa['getBoundingClientRect']()['top'];_0x4f625b['some'](_0x7be790=>Math['abs'](_0x7be790-_0x5c5e5a)<this['_config']['rowDetectionTolerance'])||_0x4f625b['push'](_0x5c5e5a);});const _0x447b0b=_0x4f625b['length'];return _0x3fa3db['remove'](),_0x447b0b<=this['_config']['maxVisibleRows'];}['_distributeChips'](_0x33f108,_0x30ec48){this['_visibleChips']['clear'](),this['_overflowChips']['clear'](),_0x33f108['forEach'](_0x28a00e=>{_0x30ec48['includes'](_0x28a00e)?this['_overflowChips']['add'](_0x28a00e):this['_visibleChips']['add'](_0x28a00e);});}['_updateOverflowUI'](_0xf9ef0c){if(_0xf9ef0c>0x0&&!this['_showMoreButtonView']&&this['_createShowMoreButton'](),_0xf9ef0c>0x0&&this['_showMoreButtonView']){const _0x473914=''+this['_config']['showMoreLabelPrefix']+(_0xf9ef0c<0x63?_0xf9ef0c:'99');this['_showMoreButtonView']['label']=_0x473914;}this['_updateBalloonContent'](),this['_updateShowMoreButtonVisibility'](),this['_repinBalloonPanel']();}['_applyOverflowResults'](_0xc2bd93,_0x4c1eac){this['_distributeChips'](_0xc2bd93,_0x4c1eac),this['_updateOverflowUI'](_0x4c1eac['length']);}['_setupVisibilityObserver'](){this['_containerElement']&&'undefined'!=typeof IntersectionObserver&&(this['_intersectionObserver']=new IntersectionObserver(_0x4fbef9=>{_0x4fbef9[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 _0x322d64=this['_containerElement']['getBoundingClientRect']();if(0x0===_0x322d64['width']||0x0===_0x322d64['height'])return!0x1;const _0x5f00f0=window['innerHeight']||document['documentElement']['clientHeight'],_0x118c8b=window['innerWidth']||document['documentElement']['clientWidth'],_0x5831d2=0xc8;return _0x322d64['bottom']>=-0xc8&&_0x322d64['top']<=_0x5f00f0+_0x5831d2&&_0x322d64['right']>=-0xc8&&_0x322d64['left']<=_0x118c8b+_0x5831d2;}}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(_0x537dcb,_0x2bc942,_0x383bfc){super(_0x537dcb),this['_bodyCollection']=_0x383bfc,this['_createContextChips'](_0x2bc942);const _0xfce0df={'cssClasses':{'showMoreButton':CSS_CLASSES$6['SHOW_MORE_BUTTON'],'showMoreBalloon':CSS_CLASSES$6['SHOW_MORE_BALLOON'],'overflowContainer':CSS_CLASSES$6['CONTEXT_CHIPS_OVERFLOW'],'controlsButton':CSS_CLASSES$6['CONTROLS_BUTTON']}};this['_overflowManager']=new AIChatChipsOverflowManager(_0x537dcb,this['_contextChips'],_0xfce0df,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 _0x49bc8d=this['element']['querySelector']('.'+CSS_CLASSES$6['CONTEXT_CHIPS_VISIBLE']);_0x49bc8d&&(this['_overflowManager']['setContainerElement'](_0x49bc8d),this['_overflowManager']['reorganizeChips']());}['destroy'](){super['destroy'](),this['_overflowManager']['destroy']();}['_createContextChips'](_0x126d0a){for(const _0x36de67 of _0x126d0a){const _0x175ec4=new AIChatContextItemButtonView(this['locale'],_0x36de67,!0x0,!0x1);this['_contextChips']['add'](_0x175ec4);}}}class AIChatFeedUserMessageItemView extends AIChatFeedItemView{['_contextChipsView']=null;['_locale'];['_bodyCollection'];['_messageContentView'];constructor(_0x186bce,_0x4bdb07,_0x4fd243){super(_0x4bdb07),this['_locale']=_0x186bce,this['_bodyCollection']=_0x4fd243,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'](_0x56819a=>!_0x56819a['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(_0x3a35db,_0x15c04b){super(_0x15c04b);const {isWebSearchEnabled:_0x8498c0,isReasoningEnabled:_0x164a21}=_0x15c04b['capabilities'],_0x1c983a=[];let _0x4b8ff0='';_0x8498c0&&_0x164a21?(_0x4b8ff0=getTranslation$i(_0x3a35db,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING'),_0x1c983a['push'](createIcon(IconWeb)),_0x1c983a['push'](createIcon(IconBulb))):_0x8498c0?(_0x4b8ff0=getTranslation$i(_0x3a35db,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH'),_0x1c983a['push'](createIcon(IconWeb))):_0x164a21&&(_0x4b8ff0=getTranslation$i(_0x3a35db,'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING'),_0x1c983a['push'](createIcon(IconBulb))),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__interaction-header',_0x4b8ff0?'':'ck-hidden']}});const _0x295e6a=new View();_0x295e6a['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__interaction-header__capabilities']},'children':[..._0x1c983a,{'tag':'span','attributes':{'class':['ck-ai-chat__feed__interaction-header__capabilities__text']},'children':[_0x4b8ff0]}]}),this['children']['add'](_0x295e6a),this['capabilities']=_0x15c04b['capabilities'];}}function createIcon(_0x450a77){const _0x13e075=new IconView();return _0x13e075['content']=_0x450a77,_0x13e075;}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'];constructor(_0x37b179){this['element']=_0x37b179,this['animationFrameId']=null,this['isRunning']=!0x1,this['abortController']=new AbortController(),this['isUserPaused']=!0x1;for(const _0x3583e6 of USER_CANCEL_EVENT_NAMES){const _0x3fa265='keydown'!==_0x3583e6;this['element']['addEventListener'](_0x3583e6,this['_onUserEvent']['bind'](this),{'passive':_0x3fa265,'signal':this['abortController']['signal']});}}['start'](){this['isRunning']||(this['isRunning']=!0x0,this['isUserPaused']=!0x1,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'](_0x235b06){if(this['isRunning']){if('keydown'===_0x235b06['type']){const _0x329dea=_0x235b06['key'];if(!USER_CANCEL_SCROLL_KEYS['includes'](_0x329dea))return;}_0x235b06 instanceof WheelEvent?_0x235b06['deltaY']<0x0?this['isUserPaused']=!0x0:this['isUserPaused']=!this['_isAtBottom']():this['isUserPaused']=!0x0;}}['_isAtBottom'](){const {scrollTop:_0x58abd0,scrollHeight:_0x1f4099,clientHeight:_0x28050c}=this['element'];return _0x1f4099-_0x58abd0-_0x28050c<=BOTTOM_THRESHOLD;}['_rafUpdate'](){this['isRunning']&&(this['isUserPaused']||this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':'auto'}),this['animationFrameId']=requestAnimationFrame(this['_rafUpdate']['bind'](this)));}}class AISkeletonView extends View{constructor(_0x4da404,_0x1fd121){super(_0x4da404),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-skeleton']},'children':this['_createSkeletonItems'](_0x1fd121)});}['_createSkeletonItems'](_0xbb1a3f){const _0x291824=['ck','ck-ai-skeleton__item'];return _0xbb1a3f['map'](_0x16acd6=>{let _0x3e9a76='';switch(_0x16acd6['attributes']['align']){case'right':_0x3e9a76='margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;';break;case'center':_0x3e9a76='margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;';break;case'left':_0x3e9a76='margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;';}return{'tag':_0x16acd6['tag'],'attributes':{'class':[..._0x291824,_0x16acd6['attributes']['class']?_0x16acd6['attributes']['class']:''],'style':'width:\x20'+_0x16acd6['attributes']['width']+';\x20height:\x20'+_0x16acd6['attributes']['height']+';'+_0x3e9a76}};});}}const SKELETON_DEFINITIONS={'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(_0xca5c8a,_0x896da3,_0x40fb65,_0x429677){return new Array(_0xca5c8a)['fill'](null)['map'](()=>({'tag':'div','attributes':{'width':_0x896da3,'height':_0x40fb65,'align':_0x429677}}));}class AIChatFeedCustomElementView extends AIChatFeedItemView{constructor(_0x46524f){super(_0x46524f),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(_0x2b672b,_0xd1783d){super(_0x2b672b),this['_bodyCollection']=_0xd1783d,this['set']('isPending',!0x1),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'](_0x335955,_0x54a5da){let _0x3993be;return'ai-reply'===_0x335955?_0x3993be=new AIChatFeedReplyItemView(this['locale'],_0x54a5da,this['_bodyCollection']):'ai-suggestion-reply'===_0x335955?(_0x3993be=new AIChatFeedSuggestionItemView(this['locale'],_0x54a5da,this['_bodyCollection']),_0x3993be['bind']('isTrackChangesOn')['to'](this)):_0x3993be='user-message'===_0x335955?new AIChatFeedUserMessageItemView(this['locale'],_0x54a5da,this['_bodyCollection']):'interaction-header'===_0x335955?new AIChatFeedInteractionHeaderView(this['locale'],_0x54a5da):'custom-element'===_0x335955?new AIChatFeedCustomElementView(_0x54a5da):new AIChatFeedErrorItemView(_0x54a5da),this['children']['add'](_0x3993be),_0x3993be;}async['updateReplyItem']({id:_0x34d690,parsedContent:_0x51d810,renderingStrategy:_0x128499,abortSignal:_0x37b7d4}){const _0x4cf5df=this['getItemById'](_0x34d690);if(!(_0x4cf5df instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-reply-item',null,{'itemView':_0x4cf5df,'id':_0x34d690,'parsedContent':_0x51d810});await _0x4cf5df['updateContent']({'parsedContent':_0x51d810,'renderingStrategy':_0x128499,'abortSignal':_0x37b7d4});}async['updateWebSources'](_0x191a7b,_0x553674){const _0x2f9d39=this['getItemById'](_0x191a7b);if(_0x2f9d39 instanceof AIChatFeedSuggestionItemView)_0x2f9d39['updateSources'](_0x553674);else{if(!(_0x2f9d39 instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-or-reply-item',null,{'itemView':_0x2f9d39,'id':_0x191a7b,'sources':_0x553674});_0x2f9d39['updateSources'](_0x553674);}}async['updateSuggestionItem']({id:_0x52040f,parts:_0x76a36a,renderingStrategy:_0x434190,abortSignal:_0xf85f5b}){const _0x695092=this['getItemById'](_0x52040f);if(!(_0x695092 instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',null,{'itemView':_0x695092,'id':_0x52040f,'parts':_0x76a36a});await _0x695092['updateContent']({'parts':_0x76a36a,'renderingStrategy':_0x434190,'abortSignal':_0xf85f5b});}['updateSuggestionPartState']({id:_0x21893b,index:_0x55ccb2,state:_0x524131}){const _0x5ee2f1=this['getItemById'](_0x21893b);if(!(_0x5ee2f1 instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x21893b});_0x5ee2f1['updatePartState'](_0x55ccb2,_0x524131);}['setSuggestionPartActive']({id:_0x2ef0a8,index:_0x33a2dc,isActive:_0x48ec72}){const _0x49413d=this['getItemById'](_0x2ef0a8);if(!(_0x49413d instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x2ef0a8});this['children']['filter'](_0x9194b1=>_0x9194b1 instanceof AIChatFeedSuggestionItemView)['forEach'](_0x401afb=>{_0x401afb['setPartActive'](!0x1);}),_0x49413d['setPartActive'](_0x33a2dc,_0x48ec72);}['markItemAsDone'](_0x2bc2ad){this['getItemById'](_0x2bc2ad)['markAsDone']();}['getItemIds'](){return this['children']['map'](_0x2becd5=>_0x2becd5['options']['id']);}['removeItem'](_0x565619){this['children']['remove'](this['getItemById'](_0x565619));}['hasItem'](_0x30fba9){return!!this['children']['find'](_0x116980=>_0x116980['options']['id']['includes'](_0x30fba9));}['scrollToSuggestion'](_0x2f1825,_0x40dc83){const _0x291125=this['getItemById'](_0x2f1825);if(!(_0x291125 instanceof AIChatFeedSuggestionItemView))return void logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item',{'replyId':_0x2f1825,'partIndex':_0x40dc83});const _0x14d2b2=_0x291125['getPartView'](_0x40dc83);_0x14d2b2?scrollAncestorsToShowTarget(_0x14d2b2['element'],0x14,this['element']['parentElement'],!0x0,!0x0):logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found',{'replyId':_0x2f1825,'partIndex':_0x40dc83});}['_setupTemplate'](){this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed']},'children':this['_createTemplateChildren']()});}['_createTemplateChildren'](){const _0x41ee87=this['_createSkeletonLoader']();return[this['_createFeedItems'](),_0x41ee87,this['_createFeedLoader']()];}['_createSkeletonLoader'](){const _0x414d16=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiFeed']);return _0x414d16['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden',_0x5910e2=>!_0x5910e2)]}}),_0x414d16;}['_createFeedItems'](){const _0x4cf6f6=new View(this['locale']);return _0x4cf6f6['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__items',this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden')]},'children':this['children']}),_0x4cf6f6;}['_createFeedLoader'](){const _0x38bfc2=new View(this['locale']);return _0x38bfc2['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__loader',this['bindTemplate']['if']('isPending','ck-hidden',_0x2c1fad=>!_0x2c1fad)]},'children':this['_createLoaderChildren']()}),_0x38bfc2;}['_createLoaderChildren'](){const _0x163eaf=new AISpinnerView();return _0x163eaf['isVisible']=!0x0,[_0x163eaf,{'tag':'span','attributes':{'class':['ck','ck-ai-chat__loader-text']},'children':[{'text':this['bindTemplate']['to']('loadingMessage')}]}];}['getItemById'](_0x4f3d40){const _0x3c407a=this['children']['find'](_0x34c3e1=>_0x34c3e1['options']['id']['includes'](_0x4f3d40));if(!_0x3c407a)throw new CKEditorError('ai-chat-feed-view-item-not-found',this,{'id':_0x4f3d40});return _0x3c407a;}['setLoadingMessage'](_0x5d95ca){this['set']('loadingMessage',_0x5d95ca);}['toggleLoadingSkeleton'](_0x35477d){this['set']('isLoadingSkeletonVisible',_0x35477d);}['startAutoScroll'](){this['scrollManager']['start']();}['stopAutoScroll'](){this['scrollManager']['stop']();}}class AIChatPromptSuggestionsListView extends ListView{['filter'](){let _0xa7925=0x0;for(const _0xa395d4 of this['items'])_0xa7925+=_0xa395d4['items']['length'];return{'resultsCount':_0xa7925,'totalItemsCount':_0xa7925};}}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(_0x25cdef,_0x4b795d){super(_0x25cdef,{'queryView':{'label':'','creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new AIChatPromptSuggestionsListView(_0x25cdef),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this['set']('isEmpty',!0x0),this['set']('isUploadInProgress',!0x1),this['_addContextButtonView']=_0x4b795d,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',(_0x11bab1,_0x5a1388)=>!_0x11bab1&&!_0x5a1388),this['focusableChildren']['add'](this['submitButtonView']);}['render'](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this['submitButtonView']),this['keystrokes']['set']('enter',(_0xa5358,_0x25df0b)=>{this['isUploadInProgress']||this['isEmpty']||_0xa5358['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x25df0b());}),this['queryView']['fieldView']['on']('update',()=>{this['isEmpty']=''===this['queryView']['fieldView']['element']['value']?.['trim']();});}['destroy'](){super['destroy'](),this['_queryViewResizeObserver']&&this['_queryViewResizeObserver']['destroy']();}['submit'](){const _0x20d5ff=this['queryView']['fieldView']['element']['value']?.['trim']();if(!_0x20d5ff)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 _0x1e14fe=escape(_0x20d5ff);this['fire']('sendUserMessage',_0x1e14fe),this['queryView']['fieldView']['reset']();}['setPlaceholderText'](_0x577cbc){this['queryView']['fieldView']['set']('placeholder',_0x577cbc);}['focus'](_0x45eb3a=!0x1){super['focus'](),_0x45eb3a&&(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 _0x1bbd9b=new ButtonView(this['locale']);return _0x1bbd9b['set']({'icon':IconSubmit,'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_SUBMIT'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-chat__prompt-submit-button','isEnabled':!0x1}),_0x1bbd9b['on']('execute',()=>{this['submit']();}),_0x1bbd9b;}['setIsUploadInProgress'](_0x281619){this['isUploadInProgress']=_0x281619;}['_setUpAddContextButtonPositioning'](){const _0x3ced7a=this['locale'],_0x4c35c1=()=>{_0x19b45e['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x3a689e=new Rect(this['queryView']['fieldView']['element']),_0x88e336=new Rect(this['_addContextButtonView']['element']),_0x553391=_0x3a689e['width'],_0x24d45f='rtl'===_0x3ced7a['uiLanguageDirection']?'right':'left';_0x3a689e['excludeScrollbarsAndBorders']();const _0x45fc8b=_0x553391-_0x3a689e['width']+0x1;this['_addContextButtonView']['element']['style'][_0x24d45f]='calc('+(_0x553391-_0x88e336['width']-_0x45fc8b)+'px\x20-\x20var(--ck-spacing-tiny))';}});};this['queryView']['fieldView']['on']('update',_0x4c35c1),this['on']('render',()=>{_0x4c35c1(),this['_queryViewResizeObserver']=new _0x5be1d1(this['queryView']['fieldView']['element'],()=>{_0x4c35c1();});});}}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','TERTIARY_BUTTON':'ck-ai-button-tertiary','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(_0xdfdc3e){super(_0xdfdc3e),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',_0x55f934=>'selector'===_0x55f934),this['_modelSelectionDropdown']['buttonView']['bind']('tooltip')['to'](this,'modelSelectorEnabled',_0x553ca4=>_0x553ca4?this['_modelSelectionDropdown']['buttonView']['label']:getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP')),this['_modelSelectionDropdown']['bind']('isEnabled')['to'](this,'modelSelectorEnabled',_0x43fce3=>_0x43fce3),this['_webSearchButton']['bind']('isOn')['to'](this,'webSearchActive',_0x5dfe23=>_0x5dfe23),this['_webSearchButton']['bind']('tooltip')['to'](this,'webSearchActive',_0x49db25=>getTranslation$i(this['locale'],_0x49db25?'AI_CHAT_DISABLE_WEB_SEARCH':'AI_CHAT_ENABLE_WEB_SEARCH')),this['_reasoningButton']['bind']('isOn')['to'](this,'reasoningActive',_0x483541=>_0x483541),this['_reasoningButton']['bind']('tooltip')['to'](this,'reasoningActive',_0x42797d=>getTranslation$i(this['locale'],_0x42797d?'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'](_0x447eeb,_0x124cc8){if(_0x124cc8)this['set']('modelDisplayMode','hidden');else{const _0x49a7f4=0x1===_0x447eeb['length'];this['set']('modelDisplayMode',_0x49a7f4?'name':'selector');}if(this['_modelSelectionDropdownItems']['clear'](),_0x447eeb?.['length'])for(const _0x21586d of _0x447eeb){const _0x7b1304=new UIModel({'label':_0x21586d['name'],'withText':!0x0,'role':'menuitemradio','id':_0x21586d['id'],'model':_0x21586d});_0x7b1304['bind']('isOn')['to'](this,'activeModelId',_0x91a205=>_0x91a205===_0x21586d['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x7b1304,'labelView':new ModelButtonLabelView$1(this['locale'],_0x21586d)});}}['setWebSearch'](_0x5e8b63){this['set']('webSearchActive',_0x5e8b63);}['setReasoning'](_0x2357fd){this['set']('reasoningActive',_0x2357fd);}['setModel'](_0x44e944){if(!_0x44e944)return;this['activeModelId']=_0x44e944['id'],this['activeModelName']=_0x44e944['name']||_0x44e944['id'],this['_modelSelectionDropdown']['buttonView']['set']('label',_0x44e944['name']),this['_modelSelectionDropdown']['buttonView']['set']('tooltip',_0x44e944['name']);const _0x5dd2e4=_0x44e944['capabilities']['webSearch']?.['enabled']??!0x1;this['set']('webSearchActive',!0x1),this['_webSearchButton']['set']('isOn',!0x1),this['_webSearchButton']['set']('isEnabled',_0x5dd2e4),this['_webSearchButton']['set']('isVisible',_0x5dd2e4);const _0x8d6ef6=_0x44e944['capabilities']['reasoning']?.['enabled']??!0x1;this['set']('reasoningActive',!0x1),this['_reasoningButton']['set']('isOn',!0x1),this['_reasoningButton']['set']('isEnabled',_0x8d6ef6),this['_reasoningButton']['set']('isVisible',_0x8d6ef6);}['enableModelSelector'](){this['set']('modelSelectorEnabled',!0x0);}['disableModelSelector'](_0x52d8f6){this['set']('modelSelectorEnabled',!0x1),_0x52d8f6&&this['set']('modelDisplayMode','hidden');}['_createWebSearchButton'](){const _0x4d6750=new ButtonView();return _0x4d6750['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_SEARCH_WEB'),'icon':IconWeb,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x4d6750['on']('execute',()=>{this['fire']('toggleWebSearch');}),_0x4d6750;}['_createReasoningButton'](){const _0x2b6b47=new ButtonView();return _0x2b6b47['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_REASONING'),'icon':IconBulb,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x2b6b47['on']('execute',()=>{this['fire']('toggleReasoning');}),_0x2b6b47;}['_createCommandsButton'](){const _0x5a2b85=new ButtonView();return _0x5a2b85['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_COMMANDS'),'icon':IconAI,'withText':!0x0,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_COMMANDS'),'tooltipPosition':TOOLTIP_POSITION$3}),_0x5a2b85['extendTemplate']({'attributes':{'class':[CSS_CLASSES$5['COMMANDS_BUTTON']]}}),_0x5a2b85['on']('execute',()=>{console['log']('Commands\x20are\x20not\x20implemented\x20yet.'),alert('Commands\x20are\x20not\x20implemented\x20yet.');}),_0x5a2b85;}['_createModelSelectionDropdown'](){const _0x79bda5=createDropdown(this['locale']);return _0x79bda5['set']({'panelPosition':'ne','class':[CSS_CLASSES$5['MODEL_SELECTION']]}),_0x79bda5['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP'),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION$3,'class':CSS_CLASSES$5['TERTIARY_BUTTON']}),this['listenTo'](_0x79bda5,'execute',_0x293892=>{this['fire']('selectModel',_0x293892['source']['model']);}),_0x79bda5;}['_createModelNameView'](){const _0x445821=new ModelNameView$1(this['locale']);return _0x445821['bind']('text')['to'](this,'activeModelName',_0x4ffe5c=>_0x4ffe5c??''),_0x445821['bind']('isVisible')['to'](this,'modelDisplayMode',_0x3b3319=>'name'===_0x3b3319),_0x445821;}}let ModelButtonLabelView$1=class extends ButtonLabelView{constructor(_0x38b22f,_0x48a4e4){super();const _0x2cd524=this['bindTemplate'],_0x55ea44=this['createCollection']();this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x2cd524['to']('style'),'id':_0x2cd524['to']('id')},'children':[{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_NAME']]},'children':[{'text':_0x2cd524['to']('text')}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_DESCRIPTION']]},'children':[{'tag':'span','children':[{'text':_0x48a4e4['description']}]}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_CAPABILITIES']]},'children':_0x55ea44}]}),_0x55ea44['addMany'](this['_getCapabilityParts'](_0x38b22f,IconWeb,'AI_CHAT_SEARCH_WEB',_0x48a4e4['capabilities']['webSearch']?.['enabled']??!0x1)),_0x55ea44['addMany'](this['_getCapabilityParts'](_0x38b22f,IconBulb,'AI_CHAT_REASONING',_0x48a4e4['capabilities']['reasoning']?.['enabled']??!0x1));}['_getCapabilityParts'](_0x52cede,_0x1036cb,_0x47aed7,_0x54e59c){const _0x4c6bdc=new IconView();_0x4c6bdc['content']=_0x1036cb;const _0x53a7cd=new View(_0x52cede);_0x53a7cd['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x52cede,_0x47aed7)+':\x20'}]});const _0x28c2dc=new View(_0x52cede);return _0x28c2dc['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x52cede,_0x54e59c?'AI_CHAT_CAPABILITIES_YES':'AI_CHAT_CAPABILITIES_NO')}]}),[_0x4c6bdc,_0x53a7cd,_0x28c2dc];}},ModelNameView$1=class extends View{constructor(_0xd81d41){super(_0xd81d41),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x3e0002=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-chat-controls__model-name',_0x3e0002['if']('isVisible','ck-hidden',_0x4aedb7=>!_0x4aedb7)]},'children':[{'text':_0x3e0002['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(_0x3f184d){super(_0x3f184d),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'](_0x5049af=>{this['focusTracker']['add'](_0x5049af['element']),this['keystrokes']['listenTo'](_0x5049af['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'](_0x184375){this['urlInputField']['errorText']=_0x184375,this['_updateConfirmButtonState'](),this['fire']('refreshBalloon');}['clearError'](){this['urlInputField']['errorText']=null,this['_updateConfirmButtonState']();}['_createBackButton'](){const _0x533129=new ButtonView(this['locale']);return _0x533129['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',(_0x86f56f,_0x51bd75,_0x2cccda)=>{_0x533129['set']({'class':['ck-button-icon\x20ck-button-back'+(_0x2cccda?'':'\x20ck-hidden')]});}),_0x533129;}['_createUrlInputField'](){const _0x406e05=new LabeledFieldView(this['locale'],createLabeledInputText);return _0x406e05['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_LABEL'),'class':'ck-labeled-field-view_empty'}),_0x406e05['fieldView']['set']({'placeholder':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_PLACEHOLDER')}),_0x406e05;}['_createConfirmButton'](){const _0x23a37c=new ButtonView(this['locale']);return _0x23a37c['set']({'icon':_0x4fdbbd,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_ADD_URL'),'tooltipPosition':TOOLTIP_POSITION$2,'class':'ck-button-icon','type':'submit','isEnabled':!0x1}),_0x23a37c;}['_setupTemplate'](){const _0x398abc=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'});_0x398abc['children']['add'](this['backButton'],0x0),this['setTemplate']({'tag':'form','attributes':{'class':CSS_CLASSES$4['URL_FORM'],'tabindex':'-1'},'children':[_0x398abc,{'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',_0x593471=>{_0x593471['stop'](),this['_handleSubmit']();});}['_setupKeystrokes'](){this['keystrokes']['set']('esc',(_0x2e1966,_0xe130bc)=>{this['clear'](),this['fire']('cancel'),_0xe130bc();});}['_handleSubmit'](){const _0x2b2790=this['getValue']()['trim']();_0x2b2790?this['_isValidUrl'](_0x2b2790)?(this['clearError'](),this['fire']('submitUrl',_0x2b2790)):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 _0x9f362c=this['getValue']()['trim'](),_0x34f38d=!!this['urlInputField']['errorText'];this['confirmButton']['isEnabled']=_0x9f362c['length']>0x0&&!_0x34f38d;}['_isValidUrl'](_0x2f2b34){try{return!!new URL(_0x2f2b34);}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(_0x4b6c00,_0x594b08){super(_0x4b6c00),this['resource']=_0x594b08,this['set']('isInContext',!!_0x594b08['isInContext']),this['_titleView']=this['_createTitleView'](),this['_iconView']=this['_createIconView'](),this['_setupTemplate']();}['render'](){super['render']();}['getResourceIcon'](_0x3911c4){if(_0x3911c4['isInContext'])return _0x4fdbbd;switch(_0x3911c4['type']){case AIContextItemType['DOCUMENT']:return IconDocument$1;case AIContextItemType['URL']:return IconLink;case AIContextItemType['FILE']:case AIContextItemType['TEXT']:return IconFileUpload;default:return IconDocumentOutline;}}['highlightText'](_0xf6dd26){if(!_0xf6dd26||''===_0xf6dd26['trim']())return void this['_titleView']['highlightText'](null);const _0x2ce7e2=new RegExp(escapeRegExp$1(_0xf6dd26),'gi');this['_titleView']['highlightText'](_0x2ce7e2);}['updateResourceState'](_0x145954){this['resource']['isInContext']=_0x145954,this['isInContext']=_0x145954,this['_updateIcon']();}['_createTitleView'](){const _0x5a71de=new HighlightedTextView();return _0x5a71de['text']=this['resource']['label'],_0x5a71de['extendTemplate']({'tag':'span','attributes':{'class':[CSS_CLASSES$3['ITEM_TITLE']]}}),_0x5a71de;}['_createIconView'](){const _0x19b060=new IconView();return _0x19b060['content']=this['getResourceIcon'](this['resource']),_0x19b060;}['_setupTemplate'](){const _0x5368b0=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$3['ITEM'],_0x5368b0['if']('isVisible','ck-hidden',_0x5abfc5=>!_0x5abfc5),_0x5368b0['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':_0x5368b0['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(_0x1d875a,_0x3caf95){super(_0x1d875a),this['_source']=_0x3caf95,this['extendTemplate']({'attributes':{'class':[CSS_CLASSES$2['LIST']]}});}['setResources'](_0x241337,_0x17cfee){this['items']['clear']();let _0x167029=_0x241337;if(this['_source']['useDefaultFiltering']&&_0x17cfee&&''!==_0x17cfee['trim']()){const _0x40041c=new RegExp(_0x17cfee['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),'gi');_0x167029=_0x241337['filter'](_0x344a08=>_0x40041c['test'](_0x344a08['label']));}for(const _0x2dad0e of _0x167029){const _0x2198dd=new AIChatResourceListItemView(this['locale'],_0x2dad0e);_0x2198dd['on']('execute',()=>{this['_handleResourceSelection'](this['_source'],_0x2dad0e);}),this['items']['add'](_0x2198dd);}this['_source']['useDefaultFiltering']&&this['highlightText'](_0x17cfee);}['highlightText'](_0x155350){this['_source']['useDefaultFiltering']&&this['items']['forEach'](_0x3fdf5d=>{_0x3fdf5d['highlightText'](_0x155350);});}['updateResourceState'](_0xd1b60c,_0x38f8da){for(const _0x42aa45 of this['items']){const _0x594e69=_0x42aa45;_0x594e69['resource']['id']===_0xd1b60c&&_0x594e69['updateResourceState'](_0x38f8da);}}['_handleResourceSelection'](_0xbddfa0,_0x1665aa){this['fire']('addResourceToContext',{'source':_0xbddfa0,'resource':_0x1665aa});}}class AIChatContextResourcesSearchInputView extends LabeledFieldView{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x3cb89d){const t=_0x3cb89d['t'],_0x260490={'showResetButton':!0x0,'showIcon':!0x0,'creator':createLabeledInputText,'label':getTranslation$i(_0x3cb89d,'AI_CHAT_SEARCH_RESOURCES')};super(_0x3cb89d,_0x260490['creator']),this['label']=_0x260490['label'],this['_viewConfig']=_0x260490,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x3cb89d,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x3cf16a){this['fire']('search',_0x3cf16a);}['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'](_0xdf4420,t){this['resetButtonView']=new ButtonView(_0xdf4420),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',_0x5ac2e0=>!_0x5ac2e0),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(_0xc7d259,_0x20be61){super(_0xc7d259),this['_source']=_0x20be61['source'],this['_searchInputVisibleFrom']=_0x20be61['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 _0x1bb610=new View(this['locale']);return _0x1bb610['setTemplate']({'tag':'div','attributes':{'class':'ck\x20ck-search'},'children':[this['_searchView']]}),this['_searchView']['on']('search',(_0x234390,_0x9cd8e9)=>{this['loadResources'](_0x9cd8e9),this['_source']['useDefaultFiltering']&&this['_resourcesListView']['highlightText'](_0x9cd8e9);}),_0x1bb610;}['_createResourcesListView'](){const _0x3423ed=new AIChatContextResourcesListView(this['locale'],this['_source']);return _0x3423ed['delegate']('addResourceToContext')['to'](this),_0x3423ed['extendTemplate']({'attributes':{'class':this['bindTemplate']['if']('isLoading','ck-hidden')}}),_0x3423ed;}['_createSkeletonView'](){const _0x3b6d4f=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiChatResources']);return _0x3b6d4f['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoading','ck-hidden',_0x3b88e0=>!_0x3b88e0)]}}),_0x3b6d4f;}['render'](){super['render'](),this['loadResources']('');}['loadResources'](_0x432dff){const _0x595263=uid();this['_latestLoadResourcesUid']=_0x595263,this['fire']('loadSourceResources',{'sourceId':this['_source']['id'],'query':_0x432dff,'uid':_0x595263}),this['isLoading']=!0x0;}['setResources'](_0x5a6aba,_0x2c02de){if(_0x2c02de&&_0x2c02de!==this['_latestLoadResourcesUid'])return;const _0x2cbeac=this['_source']['useDefaultFiltering']?this['_searchView']['getQuery']():'';this['_resourcesListView']['setResources'](_0x5a6aba,_0x2cbeac),_0x5a6aba['length']>=this['_searchInputVisibleFrom']&&!this['children']['has'](this['_searchSection'])&&this['children']['add'](this['_searchSection'],0x0),requestAnimationFrame(()=>{this['isLoading']=!0x1;});}['updateResourceState'](_0x12d842,_0x3dbf19){this['_resourcesListView']['updateResourceState'](_0x12d842,_0x3dbf19);}}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(_0x4460e9,_0x50014b,_0x3f3e0b){this['_locale']=_0x4460e9,this['_bodyCollection']=_0x50014b,this['_config']=_0x3f3e0b;}['showSourceResourcesBalloon']({source:_0x149e7f,withBackButton:_0x4a5435}){let _0x2a278c=this['_sourceResourceBalloons']['get'](_0x149e7f['id']);_0x2a278c||(_0x2a278c=this['_createSourceResourceBalloonPanel'](),this['_sourceResourceBalloons']['set'](_0x149e7f['id'],_0x2a278c),this['_setupSingleResourceBalloonClickOutsideHandler'](_0x2a278c)),this['_addSourceResourceContent']({'balloonPanel':_0x2a278c,'source':_0x149e7f,'withBackButton':_0x4a5435}),_0x2a278c['show']();const _0x54508e=this['_config']['getTargetElement']();_0x54508e&&_0x2a278c['pin']({'target':_0x54508e,'limiter':this['_config']['getLimiterElement']()});}['populateSourceResourceBalloon'](_0x3c6b73,_0x37f077,_0x89f723){const _0x314ed7=this['_sourceResourceBalloons']['get'](_0x3c6b73);if(!_0x314ed7)return;const _0x227f9c=this['_getResourcesViewFromBalloon'](_0x314ed7);_0x227f9c&&(_0x227f9c['setResources'](_0x37f077,_0x89f723),_0x227f9c['once']('change:isLoading',()=>{_0x314ed7['pin']({'target':this['_config']['getTargetElement'](),'limiter':this['_config']['getLimiterElement']()});}));}['closeSourceResourceBalloon'](_0x1bde5c){const _0x48923a=this['_sourceResourceBalloons']['get'](_0x1bde5c);_0x48923a&&requestAnimationFrame(()=>{_0x48923a['hide'](),this['_sourceResourceBalloons']['delete'](_0x1bde5c),this['_config']['onBalloonClosed']();});}['isAnyResourceBalloonVisible'](){for(const _0x40b228 of this['_sourceResourceBalloons']['values']())if(_0x40b228['isVisible'])return!0x0;return!0x1;}['updateResourceState'](_0xdd01f3,_0x4b0da3,_0x536abb){const _0x3c89f8=this['_sourceResourceBalloons']['get'](_0xdd01f3);if(!_0x3c89f8||!_0x3c89f8['isVisible'])return;const _0x2feed7=this['_config']['getTargetElement']();if(!_0x2feed7)return;_0x3c89f8['pin']({'target':_0x2feed7,'limiter':this['_config']['getLimiterElement']()});const _0x3ee6d9=this['_getResourcesViewFromBalloon'](_0x3c89f8);_0x3ee6d9&&_0x3ee6d9['updateResourceState'](_0x4b0da3,_0x536abb);}['destroy'](){for(const _0x4bfdc6 of this['_sourceResourceBalloons']['values']())_0x4bfdc6['destroy']();this['_sourceResourceBalloons']['clear']();}['_createSourceResourceBalloonPanel'](){const _0xa27804=new BalloonPanelView(this['_locale']);return _0xa27804['extendTemplate']({'attributes':{'class':CSS_CLASSES$1['SOURCE_BALLOON_PANEL']}}),this['_bodyCollection']['add'](_0xa27804),_0xa27804;}['_addSourceResourceContent']({balloonPanel:_0x4225b5,source:_0x409a7c,withBackButton:_0x1d77f3}){_0x4225b5['content']['clear']();const _0x50521c=this['_createBalloonHeader']({'balloonPanel':_0x4225b5,'source':_0x409a7c,'withBackButton':_0x1d77f3});_0x4225b5['content']['add'](_0x50521c);const _0x41af09=this['_createBalloonResourcesView'](_0x409a7c);_0x4225b5['content']['add'](_0x41af09);}['_createBalloonHeader']({balloonPanel:_0x3cefd1,source:_0x211fc4,withBackButton:_0xf15393}){const _0x469329=new FormHeaderView(this['_locale'],{'label':_0x211fc4['label'],'class':CSS_CLASSES$1['SOURCE_HEADER']});return _0xf15393&&_0x469329['children']['add'](this['_createBackButton'](_0x3cefd1),0x0),_0x469329;}['_createBackButton'](_0x157030){const _0x36cd79=new ButtonView(this['_locale']);return _0x36cd79['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']}),_0x36cd79['on']('execute',()=>{_0x157030['hide'](),this['_config']['onBackToContext']();}),_0x36cd79;}['_createBalloonResourcesView'](_0x33b405){const _0x3da444=new AIChatContextResourcesView(this['_locale'],{'source':_0x33b405,'searchInputVisibleFrom':this['_config']['searchInputVisibleFrom']});return _0x3da444['on']('loadSourceResources',(_0x477e45,_0x159841)=>{this['_config']['onLoadSourceResources'](_0x159841);}),_0x3da444['on']('addResourceToContext',(_0x43fff1,_0x11f916)=>{this['_config']['onResourceSelected'](_0x11f916['source'],_0x11f916['resource']),this['closeSourceResourceBalloon'](_0x33b405['id']);}),_0x3da444;}['_getResourcesViewFromBalloon'](_0x3344f0){const _0x724dcc=_0x3344f0['content']['get'](0x1);return _0x724dcc instanceof AIChatContextResourcesView?_0x724dcc:null;}['_setupSingleResourceBalloonClickOutsideHandler'](_0x2c5b6e){clickOutsideHandler({'emitter':_0x2c5b6e,'contextElements':[_0x2c5b6e['element']],'callback':()=>{_0x2c5b6e['hide'](),this['_config']['onBalloonClosed']();},'activator':()=>_0x2c5b6e['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(_0x550bec,_0x4a35a4){super(_0x550bec),this['bodyCollection']=_0x4a35a4['bodyCollection'],this['_currentContextsChips']=this['createCollection'](),this['_conversationContextsChips']=this['createCollection'](),this['addContextButtonView']=this['_createAddContextButtonView'](_0x550bec),this['_addContextBalloonPanelView']=this['_createAddContextBalloonPanelView'](_0x550bec),this['_urlBalloonPanelView']=this['_createUrlBalloonPanelView'](_0x550bec),this['_resourcesBalloonView']=this['_createResourcesBalloonView'](_0x550bec,_0x4a35a4);const _0x5964ca={'cssClasses':{'showMoreButton':CSS_CLASSES['SHOW_MORE_BUTTON'],'showMoreBalloon':CSS_CLASSES['SHOW_MORE_BALLOON'],'overflowContainer':CSS_CLASSES['CONVERSATION_CONTEXT_CHIPS'],'controlsButton':CSS_CLASSES['CONTROLS_BUTTON']}};this['_overflowManager']=new AIChatChipsOverflowManager(_0x550bec,this['_currentContextsChips'],_0x5964ca,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'](_0x40df2e,_0x333fc0){const _0x3b4087=this['_createContextButton'](_0x40df2e,'current',!0x0,_0x333fc0);this['_addContextToCollection'](_0x3b4087,this['_currentContextsChips']),this['_overflowManager']['reorganizeChips']();}['removeContextItem'](_0x3b82c5){this['_removeContextFromCollection'](_0x3b82c5,this['_currentContextsChips']),this['_removeContextFromCollection'](_0x3b82c5,this['_overflowManager']['overflowChips']),this['_overflowManager']['reorganizeChips']();}['setContextItemLoading'](_0x3aeb04,_0xe9ff51){let _0x53cb69=this['_currentContextsChips']['find'](_0x12112c=>_0x12112c['id']===_0x3aeb04);_0x53cb69||(_0x53cb69=this['_overflowManager']['overflowChips']['find'](_0x4d57e0=>_0x4d57e0['id']===_0x3aeb04)),_0x53cb69&&(_0x53cb69['isLoading']=_0xe9ff51);}['setConversationContext'](_0x1e1d65){this['_conversationContextsChips']['clear']();for(const _0x367150 of _0x1e1d65){const _0x1d7b32=this['_createContextButton'](_0x367150,'conversation',!0x1,!0x1);this['_addContextToCollection'](_0x1d7b32,this['_conversationContextsChips']);}}['clearCurrentContextItems'](){this['_currentContextsChips']['clear'](),this['_overflowManager']['clear']();}['clearConversationContextItems'](){this['_conversationContextsChips']['clear']();}['updateResourceState'](_0x12db5a,_0x2f83b1,_0x46514d){this['_resourcesBalloonView']['updateResourceState'](_0x12db5a,_0x2f83b1,_0x46514d);}['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:_0x16e182,withBackButton:_0x36ea57}){this['_resourcesBalloonView']['showSourceResourcesBalloon']({'source':_0x16e182,'withBackButton':_0x36ea57}),this['addContextButtonView']['isOn']=!0x0;}['populateSourceResourceBalloon'](_0x4ea4c2,_0x19ca49,_0xc081b6,_0x436cfd){this['_resourcesBalloonView']['populateSourceResourceBalloon'](_0x4ea4c2,_0xc081b6,_0x436cfd);}['closeSourceResourceBalloon'](_0x16fb64){this['_resourcesBalloonView']['closeSourceResourceBalloon'](_0x16fb64),this['addContextButtonView']['isOn']=!0x1;}['setAddContextOptions'](_0x5e8130){this['_setBalloonPanelContent'](this['_addContextBalloonPanelView'],this['locale'],_0x5e8130),this['_setAddContextButtonEnabled'](_0x5e8130);}['_setAddContextButtonEnabled'](_0x5e0b0c){const _0x5893cc=!_0x5e0b0c['document']['isHidden']&&_0x5e0b0c['document']['enabled'],_0x29f567=_0x5e0b0c['urls']['enabled'],_0x22ccfd=_0x5e0b0c['files']['enabled'],_0x1884c2=_0x5e0b0c['sources']['length']>0x0,_0x3d7f01=_0x5e0b0c['customItems']&&_0x5e0b0c['customItems']['length']>0x0;this['addContextButtonView']['isEnabled']=_0x5893cc||_0x29f567||_0x22ccfd||_0x1884c2||_0x3d7f01;}['_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'](_0x4b4dc3){const _0x466e93=new ButtonView(_0x4b4dc3);return _0x466e93['set']({'label':getTranslation$i(_0x4b4dc3,'AI_CHAT_CONTEXT_ADD_CONTEXT'),'class':CSS_CLASSES['CONTROLS_BUTTON']+'\x20'+CSS_CLASSES['ADD_CONTEXT_BUTTON'],'icon':IconPaperClip,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION}),_0x466e93;}['_createAddContextBalloonPanelView'](_0x1517a3){return this['_createBaseBalloonPanel'](_0x1517a3,CSS_CLASSES['ADD_CONTEXT_BALLOON']);}['_createUrlBalloonPanelView'](_0xfe8f7c){const _0x58ad6c=this['_createBaseBalloonPanel'](_0xfe8f7c,CSS_CLASSES['URL_BALLOON']);return this['_addUrlContent'](_0x58ad6c,_0xfe8f7c),_0x58ad6c;}['_createResourcesBalloonView'](_0x367c70,_0x34dc0a){const _0x47798d={'searchInputVisibleFrom':_0x34dc0a['searchInputVisibleFrom'],'onBackToContext':()=>{this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS});},'onResourceSelected':(_0x20a8fa,_0x38243a)=>{this['fire']('addResourceToContext',{'source':_0x20a8fa,'resource':_0x38243a});},'onLoadSourceResources':_0x4250c8=>{this['fire']('loadSourceResources',_0x4250c8);},'onBalloonClosed':()=>{this['addContextButtonView']['isOn']=!0x1;},'getLimiterElement':()=>this['_getLimiterElement'](),'getTargetElement':()=>this['addContextButtonView']['element']};return new AIChatResourcesBalloonView(_0x367c70,_0x34dc0a['bodyCollection'],_0x47798d);}['_getLimiterElement'](){return this['element']?.['closest']('.'+CSS_CLASSES['CHAT_CONTAINER'])||document['body'];}['_createBaseBalloonPanel'](_0x37b2be,_0x30bc8d){const _0x1d4791=new BalloonPanelView(_0x37b2be);return _0x1d4791['extendTemplate']({'attributes':{'class':_0x30bc8d}}),this['bodyCollection']['add'](_0x1d4791),_0x1d4791;}['_setBalloonPanelContent'](_0xdad40d,_0x473755,_0x3fe24a){if(_0xdad40d['content']['clear'](),!_0x3fe24a['document']['isHidden']&&_0x3fe24a['document']['enabled']){const _0x5adbc4=this['_createBalloonButton'](_0x473755,{'label':getTranslation$i(_0x473755,'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'),'icon':IconDocument$1});_0x5adbc4['on']('execute',()=>{this['fire']('addDocumentToContext'),this['hideAddContextBalloonPanel']();}),_0xdad40d['content']['add'](_0x5adbc4);}if(_0x3fe24a['urls']['enabled']){const _0x971315=this['_createBalloonButton'](_0x473755,{'label':getTranslation$i(_0x473755,'AI_CHAT_CONTEXT_URL_LABEL'),'icon':IconLink});_0x971315['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['showUrlBalloonPanel'](),this['_urlBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}),this['_urlInputView']['focus']();}),_0xdad40d['content']['add'](_0x971315);}if(_0x3fe24a['files']['enabled']){const _0x4508ba=new FileDialogButtonView(_0x473755);_0x4508ba['set']({'label':getTranslation$i(_0x473755,'AI_CHAT_CONTEXT_FILE_LABEL'),'icon':IconBrowseFiles,'withText':!0x0,'tooltip':!0x0,'class':CSS_CLASSES['BALLOON_BUTTON'],'allowMultipleFiles':!0x0}),_0x4508ba['on']('execute',()=>{this['hideAddContextBalloonPanel']();}),_0x4508ba['on']('done',(_0x3c71a7,_0x57cc64)=>{this['fire']('addFileToContext',_0x57cc64);}),_0x4508ba['tooltip']=!0x0,_0xdad40d['content']['add'](_0x4508ba);}for(const _0x48884b of _0x3fe24a['sources']){const _0x26612f=this['_createBalloonButton'](_0x473755,{'label':_0x48884b['label'],'icon':_0x48884b['icon']||IconDocumentOutline,'type':'source'});_0xdad40d['content']['add'](_0x26612f),_0x26612f['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['_showSourceResourcesBalloon']({'source':_0x48884b,'withBackButton':!this['_hasExactlyOneSource']});});}for(const _0x544b22 of _0x3fe24a['customItems']||[]){const _0x4f5f0c=this['_createBalloonButton'](_0x473755,{'label':_0x544b22['label'],'icon':_0x544b22['icon']||IconDocumentOutline,'type':'customItem'});_0xdad40d['content']['add'](_0x4f5f0c),_0x4f5f0c['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['fire']('executeCustomItemCallback',_0x544b22);});}this['_hasExactlyOneSource']=0x1===_0xdad40d['content']['length'],this['_urlInputView']['withBackButton']=!this['_hasExactlyOneSource'];}['_addUrlContent'](_0x1d30d5,_0x5c42d8){this['_urlInputView']=new AIChatContextPanelUrlInputView(_0x5c42d8),this['_urlInputView']['on']('submitUrl',(_0x343881,_0x7f8d9d)=>{this['_handleUrlSubmit'](_0x7f8d9d);}),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});}),_0x1d30d5['content']['add'](this['_urlInputView']);}['_createBalloonButton'](_0x4ecec,_0x56bb41){const _0x5eea0e='source'===_0x56bb41['type']?new SourcesBalloonButtonView(_0x4ecec):new ButtonView(_0x4ecec);return _0x5eea0e['set']({'label':_0x56bb41['label'],'icon':_0x56bb41['icon'],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION,'class':CSS_CLASSES['BALLOON_BUTTON']}),_0x5eea0e;}['_setupAllBalloonClickOutsideHandlers'](){this['_setupAddContextBalloonClickOutsideHandler'](),this['_setupUrlBalloonClickOutsideHandler']();}['_setupUrlBalloonClickOutsideHandler'](){clickOutsideHandler({'emitter':this['_urlBalloonPanelView'],'contextElements':[this['_urlBalloonPanelView']['element']],'callback':()=>{this['hideUrlBalloonPanel']();},'activator':()=>this['_urlBalloonPanelView']['isVisible']});}['_toggleAddContextBalloon'](_0xad113e){const _0x354fa5=this['_addContextBalloonConfig'];_0x354fa5['buttonView']['isOn']=_0xad113e,_0xad113e?_0x354fa5['balloonView']['show']():_0x354fa5['balloonView']['hide']();}['_setupAddContextBalloonClickOutsideHandler'](){const {balloonView:_0x2714a4,buttonView:_0x278dbb,hideMethod:_0x391a4c}=this['_addContextBalloonConfig'];clickOutsideHandler({'emitter':_0x2714a4,'contextElements':[_0x2714a4['element'],_0x278dbb['element']],'callback':()=>{_0x391a4c();},'activator':()=>_0x278dbb['isOn']&&!this['_urlBalloonPanelView']['isVisible']&&!this['_resourcesBalloonView']['isAnyResourceBalloonVisible']()});}['_createContextButton'](_0x56f882,_0x1c7c3d,_0x1b7cee=!0x1,_0x7ed27c=!0x1){const _0x6bb640='conversation'===_0x1c7c3d||!0x0===_0x56f882['isReadOnly'],_0x485c11=new AIChatContextItemButtonView(this['locale'],_0x56f882,_0x6bb640,_0x1b7cee,_0x7ed27c);return _0x6bb640||_0x485c11['on']('removeContextItemChip',()=>{this['fire']('removeContextItem',_0x485c11['id']);}),_0x485c11;}['_addContextToCollection'](_0x34e9b2,_0x308991){_0x308991['add'](_0x34e9b2,0x0);}['_removeContextFromCollection'](_0x11dc25,_0x20b7a4){const _0x2c2d93=_0x20b7a4['find'](_0x2c4b94=>_0x2c4b94['id']===_0x11dc25);_0x2c2d93&&_0x20b7a4['remove'](_0x2c2d93);}['_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'](_0x4bf14f){this['_urlInputView']['clear'](),this['hideUrlBalloonPanel'](),this['fire']('addUrlToContext',_0x4bf14f);}}class SourcesBalloonButtonView extends ButtonView{['arrowView'];constructor(_0x33fae8){super(_0x33fae8),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 _0xedc738=new IconView();return _0xedc738['content']=IconDropdownArrow,_0xedc738['extendTemplate']({'attributes':{'class':CSS_CLASSES['BALLOON_BUTTON_SOURCE']+'__arrow'}}),_0xedc738;}}class AIChatControlsLoaderView extends View{['_cancelButtonView'];['_loaderView'];constructor(_0x3ec8e9){super(_0x3ec8e9),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 _0x18d5c7=new ButtonView(this['locale']);return _0x18d5c7['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_STOP_GENERATING'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-button-stop-generating','icon':IconStop}),_0x18d5c7['on']('execute',()=>{this['fire']('abortPromptStream');}),_0x18d5c7;}['_createLoaderView'](){const _0x40a622=new View(this['locale']);return _0x40a622['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')}]}),_0x40a622;}}class AIChatControlsView extends View{['_contextPanelView'];['_promptInputView'];['_promptCapabilitiesView'];['_loaderView'];['_modelUnavailableMessageView'];['_shouldRestorePromptInputFocus'];constructor(_0x39aea2,_0x3feac2){super(_0x39aea2),this['_contextPanelView']=this['_createContextPanelView'](_0x39aea2,{'bodyCollection':_0x3feac2['bodyCollection'],'searchInputVisibleFrom':_0x3feac2['contextResourcesSearchInputVisibleFrom']}),this['_promptInputView']=this['_createPromptInputView'](_0x39aea2),this['_promptCapabilitiesView']=this['_createPromptCapabilitiesView'](_0x39aea2),this['_loaderView']=this['_createLoaderView'](_0x39aea2),this['_modelUnavailableMessageView']=this['_createModelUnavailableMessageView'](_0x39aea2),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 _0x93902d=this['bindTemplate'];this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-ai-chat-controls',_0x93902d['if']('isDisabled','ck-ai-chat-controls-disabled')]},'children':[{'tag':'div','attributes':{'class':[_0x93902d['if']('isLoading','ck-hidden',_0x413ac0=>_0x413ac0||!this['isModelAvailable']),_0x93902d['if']('isModelAvailable','ck-hidden',_0x571b38=>!_0x571b38||this['isLoading'])]},'children':[this['_contextPanelView'],this['_promptInputView'],this['_promptCapabilitiesView']]},{'tag':'div','attributes':{'class':[_0x93902d['if']('isLoading','ck-hidden',_0x3cb3d9=>!_0x3cb3d9)]},'children':[this['_loaderView']]},{'tag':'div','attributes':{'class':[_0x93902d['if']('isModelAvailable','ck-hidden',_0x4c91d2=>_0x4c91d2)]},'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'](_0x245942,_0x3657e2){return new AIChatContextPanelView(_0x245942,_0x3657e2);}['_createPromptInputView'](_0x7da9bf){return new AIChatPromptInputView(_0x7da9bf,this['_contextPanelView']['addContextButtonView']);}['_createPromptCapabilitiesView'](_0x159882){return new AIChatPromptCapabilitiesView(_0x159882);}['_createLoaderView'](_0x5a8a4c){return new AIChatControlsLoaderView(_0x5a8a4c);}['_createModelUnavailableMessageView'](_0xe86804){const _0x15eacf=new AIChatModelUnavailableMessageView(_0xe86804);return _0x15eacf['delegate']('startConversation')['to'](this),_0x15eacf;}['_handlePromptInputFocus'](_0x3aa8c4,_0x1e7e3d,_0x2aa840){_0x2aa840?this['_shouldRestorePromptInputFocus']=!0x0:this['_shouldRestorePromptInputFocus']&&this['_promptInputView']['focus']();}['addContextItem'](_0x5d6489,_0x2618b0){this['_contextPanelView']['addContextItem'](_0x5d6489,_0x2618b0);}['removeContextItem'](_0x14a3aa){this['_contextPanelView']['removeContextItem'](_0x14a3aa);}['setContextItemLoading'](_0x37ce9f,_0x402346){this['_contextPanelView']['setContextItemLoading'](_0x37ce9f,_0x402346);}['setIsUploadInProgress'](_0x38a7eb){this['_promptInputView']['setIsUploadInProgress'](_0x38a7eb);}['setConversationContext'](_0x142653){this['_contextPanelView']['setConversationContext'](_0x142653);}['clearPendingContextUI'](){this['_contextPanelView']['clearCurrentContextItems']();}['clearConversationContextUI'](){this['_contextPanelView']['clearConversationContextItems']();}['updateResourceState'](_0x5c94d7,_0x3a4095,_0x5bc476){this['_contextPanelView']['updateResourceState'](_0x5c94d7,_0x3a4095,_0x5bc476);}['setWebSearch'](_0x2b5fe6){this['_promptCapabilitiesView']['setWebSearch'](_0x2b5fe6);}['setReasoning'](_0x5fcb01){this['_promptCapabilitiesView']['setReasoning'](_0x5fcb01);}['resetMessageInput'](){this['_promptInputView']['reset']();}['setAddContextOptions'](_0x488c7){this['_contextPanelView']['setAddContextOptions'](_0x488c7);}['setInputPlaceholder'](_0x5e3297){this['_promptInputView']['setPlaceholderText'](_0x5e3297);}['setModelList'](_0x2a003f,_0x5e1700){this['_promptCapabilitiesView']['setModelList'](_0x2a003f,_0x5e1700);}['setModel'](_0x3dfce2){_0x3dfce2?(this['isModelAvailable']=!0x0,this['_promptCapabilitiesView']['setModel'](_0x3dfce2)):this['isModelAvailable']=!0x1;}['enableModelSelector'](){this['_promptCapabilitiesView']['enableModelSelector']();}['disableModelSelector'](_0x23ca36){this['_promptCapabilitiesView']['disableModelSelector'](_0x23ca36);}['populateSourceResourceBalloon'](_0x262718,_0x294b97,_0x3ed966,_0x122297){this['_contextPanelView']['populateSourceResourceBalloon'](_0x262718,_0x294b97,_0x3ed966,_0x122297);}['closeSourceResourceBalloon'](_0x447f16){this['_contextPanelView']['closeSourceResourceBalloon'](_0x447f16);}['focusPromptInput'](_0x20549c=!0x1){this['_promptInputView']['focus'](_0x20549c);}['setPromptInputValue'](_0x5de557){this['_promptInputView']['queryView']['fieldView']['reset'](),this['_promptInputView']['queryView']['fieldView']['value']=_0x5de557;}}class AIChatModelUnavailableMessageView extends View{constructor(_0xa38797){super(_0xa38797);const _0x47a555=new ButtonView(_0xa38797);_0x47a555['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON'),'withText':!0x0,'class':['ck-ai-chat-controls__start-new-chat-button'],'tooltip':''}),_0x47a555['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'},_0x47a555]}]});}}class AIChatHeaderView extends FormHeaderView{['conversationStartButton'];['resizeButton'];constructor(_0x336261,_0x1b9b51){super(_0x336261,{'label':getTranslation$i(_0x336261,'AI_CHAT_HEADING'),'class':'ck-ai-header\x20ck-ai-header_chat','icon':IconAIChat}),this['set']('isMaximized',!0x1),this['conversationStartButton']=this['_createStartConversationButton'](_0x336261),this['children']['add'](this['conversationStartButton']),_0x1b9b51&&(this['resizeButton']=createResizeButton(_0x336261,this),this['children']['add'](this['resizeButton']));}['_createStartConversationButton'](_0x15f02b){const _0x585256=new ButtonView(_0x15f02b);return _0x585256['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation'}),_0x585256['on']('execute',()=>{this['fire']('startConversation');}),_0x585256;}}class AIDisclaimerView extends View{constructor(_0x2e9800){super(_0x2e9800),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-disclaimer']},'children':[{'tag':'p','attributes':{'class':['ck','ck-ai-disclaimer__content']},'children':[{'text':getTranslation$i(_0x2e9800,'AI_DISCLAIMER_TEXT')}]}]});}}class AIChatView extends View{['chatHeader'];['chatFeed'];['chatControls'];['chatDisclaimer'];['_bodyCollection'];constructor(_0x2766a2,_0x497f41){super(_0x2766a2),this['_bodyCollection']=new BodyCollection(_0x2766a2),this['_bodyCollection']['attachToDom'](),this['chatHeader']=new AIChatHeaderView(_0x2766a2,_0x497f41['showResizeButton']),this['chatHeader']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatFeed']=new AIChatFeedView(_0x2766a2,this['_bodyCollection']),this['chatFeed']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatControls']=new AIChatControlsView(_0x2766a2,{'bodyCollection':this['_bodyCollection'],'contextResourcesSearchInputVisibleFrom':_0x497f41['contextResourcesSearchInputVisibleFrom']}),this['chatControls']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatDisclaimer']=new AIDisclaimerView(_0x2766a2),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-chat','ck-rounded-corners'],'dir':_0x2766a2['uiLanguageDirection']},'children':[this['chatHeader'],this['chatFeed'],this['chatControls'],this['chatDisclaimer']]});}['populateSourceResourceBalloon'](_0x5ce391,_0x1d15c8,_0x55d892,_0x4e5287){this['chatControls']['populateSourceResourceBalloon'](_0x5ce391,_0x1d15c8,_0x55d892,_0x4e5287);}['closeSourceResourceBalloon'](_0x1cbd54){this['chatControls']['closeSourceResourceBalloon'](_0x1cbd54);}['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(_0x3794da){super(_0x3794da);const _0x30cf83=this['context']['plugins']['get']('AITabs');this['set']('isBusy',!0x1),this['_promiseQueue']=new PromiseQueue(),this['_view']=new AIChatView(this['context']['locale'],{'showResizeButton':_0x30cf83['showResizeButton'],'contextResourcesSearchInputVisibleFrom':this['context']['config']['get']('ai.chat.context.searchInputVisibleFrom')}),this['_view']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['_view']['on']('toggleSuggestionDisplayMode',(_0x3a4c76,{showDiff:_0x5b2d54})=>{this['showDiff']=_0x5b2d54;}),_0x30cf83['view']['addTab']({'id':'chat','buttonLabel':getTranslation$i(this['context']['locale'],'AI_CHAT_HEADING'),'buttonIcon':IconAIChat,'order':0x0,'content':this['_view']}),this['_view']['chatControls']['bind']('isLoading')['to'](this,'isBusy',_0x1325b4=>_0x1325b4),this['_view']['chatFeed']['bind']('isPending')['to'](this,'isBusy',_0x199930=>_0x199930),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']()),this['bind']('isModelAvailable')['to'](this['_view']['chatControls'],'isModelAvailable');}['destroy'](){super['destroy'](),this['_titleAnimationInterval']&&clearInterval(this['_titleAnimationInterval']);}['createConversation'](_0x54e445){const _0x30f219=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'](_0x54e445['availableModels'],!this['context']['config']['get']('ai.models.showModelSelector')),this['addFeedItemStaticMessage']({'id':'conversation-start','staticMessage':_0x30f219}),this['fire']('conversationCreated');}['addFeedItemStaticMessage']({id:_0x606269,staticMessage:_0x521271}){this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x606269,'initialContent':'<p>'+_0x521271+'</p>'});}['addFeedItemUserMessage'](_0x15ddfb){const _0x5d80ff=_0x15ddfb['attributes']?.['displayedPrompt']||_0x15ddfb['userMessage'];this['_view']['chatFeed']['addItem']('user-message',{'contextItems':Array['from'](_0x15ddfb['contextItems']['values']()),'initialContent':'<p>'+_0x5d80ff+'</p>','id':_0x15ddfb['id']});}['addFeedItemError']({errorMessage:_0x5d34d3,id:_0x328694}){this['_view']['chatFeed']['addItem']('error-message',{'initialContent':'<p>'+_0x5d34d3+'</p>','id':_0x328694});}['addFeedItemAIReply'](_0x2a522c){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x2a522c['interactionId']+':'+_0x2a522c['id']}),this['clearLoadingMessage']();});}async['addFeedItemAISuggestion'](_0x5a3cc7){const _0x51deac=getEditorFromContext(this['context']);let _0x58798f=_0x51deac['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];if(_0x51deac['plugins']['has']('TrackChanges')){if(!this['_isTrackChangesCommandValueBound']){this['_isTrackChangesCommandValueBound']=!0x0;const _0x29ff41=_0x51deac['commands']['get']('trackChanges');this['_view']['chatFeed']['bind']('isTrackChangesOn')['to'](_0x29ff41,'value');}}else _0x58798f=_0x58798f['filter'](_0x21d803=>'insertSuggestion'!=_0x21d803);return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-suggestion-reply',{'id':_0x5a3cc7['interactionId']+':'+_0x5a3cc7['id'],'areActionsDisabled':_0x5a3cc7['areActionsDisabled'],'showDiff':this['showDiff'],'availableActions':_0x58798f}),this['clearLoadingMessage']();});}['addFeedInteractionHeader'](_0x497b84,_0x360d5c){const _0x4e6c13=this['_view']['chatFeed']['children']['last'];if(_0x4e6c13 instanceof AIChatFeedInteractionHeaderView)return this['_view']['chatFeed']['children']['remove'](_0x4e6c13),void this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x497b84['id'],'capabilities':{'isWebSearchEnabled':_0x4e6c13['capabilities']['isWebSearchEnabled']||_0x360d5c['isWebSearchEnabled'],'isReasoningEnabled':_0x4e6c13['capabilities']['isReasoningEnabled']||_0x360d5c['isReasoningEnabled']}});this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x497b84['id'],'capabilities':_0x360d5c});}async['addFeedItemCustomElement'](_0x4e510e,_0x13510d){let _0x59d1f1;return await this['_promiseQueue']['enqueue'](async()=>{_0x59d1f1=this['_view']['chatFeed']['addItem']('custom-element',{'content':_0x4e510e,'id':_0x13510d});}),_0x59d1f1;}['removeFeedItem'](_0x4431f3){this['_view']['chatFeed']['removeItem'](_0x4431f3);}['hasFeedItem'](_0x4e4582){return this['_view']['chatFeed']['hasItem'](_0x4e4582);}['updateFeedInteractionHeader'](_0x489d36){const _0x6965aa=this['_view']['chatFeed']['children']['find'](_0x23a6c8=>_0x23a6c8['options']['id']==_0x489d36['id']&&_0x23a6c8 instanceof AIChatFeedInteractionHeaderView);_0x6965aa&&_0x6965aa['set']('isVisible',_0x489d36['isVisible']);}async['updateFeedItemAIReplyContent'](_0x1bcae6){const _0xb46728=_0x1bcae6['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x321c70=>{await this['_view']['chatFeed']['updateReplyItem']({..._0x1bcae6,'abortSignal':_0x321c70,'renderingStrategy':_0xb46728}),_0x1bcae6['isDone']&&this['markFeedItemAsDone'](_0x1bcae6['id']);});}['updateFeedItemAIReplySources'](_0x5928ef,_0x14374b){this['_view']['chatFeed']['updateWebSources'](_0x5928ef,_0x14374b);}async['updateFeedItemAIReplySuggestionContent'](_0x4b817f){const _0x1cc783=_0x4b817f['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x1f01d1=>{await this['_view']['chatFeed']['updateSuggestionItem']({..._0x4b817f,'abortSignal':_0x1f01d1,'renderingStrategy':_0x1cc783}),_0x4b817f['isDone']&&this['markFeedItemAsDone'](_0x4b817f['id']);});}['updateFeedItemAIReplySuggestionPartState'](_0x2e1dd2){this['_view']['chatFeed']['updateSuggestionPartState'](_0x2e1dd2);}['setFeedItemAIReplySuggestionPartActive'](_0x30d4b0){this['_view']['chatFeed']['setSuggestionPartActive'](_0x30d4b0);}['markFeedItemAsDone'](_0x1bda08){this['_view']['chatFeed']['markItemAsDone'](_0x1bda08);}['removeFeedInteraction'](_0x1c47be){this['_view']['chatFeed']['getItemIds']()['filter'](_0x53a1e4=>_0x53a1e4['startsWith'](_0x1c47be))['forEach'](_0x114a7c=>this['_view']['chatFeed']['removeItem'](_0x114a7c));}['startInteraction'](){const _0x209ad9=this['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this['setLoadingMessage'](_0x209ad9),this['_view']['chatControls']['disableModelSelector'](!this['context']['config']['get']('ai.models.showModelSelector')),this['isBusy']=!0x0,this['_view']['chatFeed']['startAutoScroll']();}['stopInteraction'](_0x36af6f){this['_promiseQueue']['abort'](),this['_view']['chatFeed']['getItemIds']()['filter'](_0x56d296=>_0x56d296['startsWith'](_0x36af6f['id']))['forEach'](_0x3da3ce=>this['markFeedItemAsDone'](_0x3da3ce)),this['isBusy']=!0x1,this['_view']['chatFeed']['stopAutoScroll']();}async['finishInteraction'](){return this['_promiseQueue']['queueEmptyPromise']['then'](()=>{this['isBusy']=!0x1,this['_view']['chatFeed']['stopAutoScroll']();});}['addContextItem'](_0xffa490,_0x228527){this['_view']['chatControls']['addContextItem'](_0xffa490,_0x228527);}['removeContextItem'](_0x1cb727){this['_view']['chatControls']['removeContextItem'](_0x1cb727);}['setContextItemLoading'](_0x1195a0,_0x2c4f93){this['_view']['chatControls']['setContextItemLoading'](_0x1195a0,_0x2c4f93);}['setIsUploadInProgress'](_0x5bf0f6){this['_view']['chatControls']['setIsUploadInProgress'](_0x5bf0f6);}['setConversationContext'](_0x74f8d8){this['_view']['chatControls']['setConversationContext'](_0x74f8d8);}['clearPendingContextUI'](){this['_view']['chatControls']['clearPendingContextUI']();}['clearConversationContextUI'](){this['_view']['chatControls']['clearConversationContextUI']();}['updateResourceState'](_0x481b63,_0x4bbe1c,_0x1764ec){this['_view']['chatControls']['updateResourceState'](_0x481b63,_0x4bbe1c,_0x1764ec);}['resetMessageInput'](){this['_view']['chatControls']['resetMessageInput'](),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']());}['setAddContextOptions'](_0x1259d0){this['_view']['chatControls']['setAddContextOptions'](_0x1259d0);}['updateCapabilities'](_0x147989){this['_view']['chatControls']['setWebSearch'](_0x147989['isWebSearchEnabled']),this['_view']['chatControls']['setReasoning'](_0x147989['isReasoningEnabled']),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder'](_0x147989));}['setSelectedModel'](_0x39e823,_0xdd8737){this['_view']['chatControls']['setModel'](_0x39e823),_0xdd8737&&this['_view']['chatControls']['disableModelSelector'](!0x1);}['setFeedItemRenderingStrategy'](_0x835051){this['feedItemRenderingStrategy']=_0x835051;}['toggleLoadingSkeleton'](_0x204237){this['_view']['chatFeed']['toggleLoadingSkeleton'](_0x204237);}['resetConversationTitle'](){this['setConversationTitle'](getTranslation$i(this['context']['locale'],'AI_CHAT_HEADING'));}['setConversationTitle'](_0x4dc5b0,_0x16d862=!0x1){if(_0x16d862&&!_isMotionReduced()&&_0x4dc5b0['length'])return this['_view']['chatHeader']['label']='',void this['_animateConversationTitle'](_0x4dc5b0);this['_view']['chatHeader']['label']=_0x4dc5b0;}['setLoadingMessage'](_0x47c9d4){this['_view']['chatFeed']['setLoadingMessage'](_0x47c9d4);}['clearLoadingMessage'](){this['_view']['chatFeed']['setLoadingMessage']('');}['_animateConversationTitle'](_0x94d716){let _0x45d5a9=0x0;clearInterval(this['_titleAnimationInterval']),this['_titleAnimationInterval']=setInterval(()=>{this['_view']['chatHeader']['label']=this['_view']['chatHeader']['label']+_0x94d716[_0x45d5a9],_0x45d5a9++,_0x45d5a9===_0x94d716['length']&&clearInterval(this['_titleAnimationInterval']);},AI_CHAT_TITLE_ANIMATION_INTERVAL);}['setIsMaximized'](_0x41f8c6){this['_view']['chatHeader']['isMaximized']=_0x41f8c6;}['prepareLoadingMessage'](_0x3bddde){return _0x3bddde['isWebSearchEnabled']&&_0x3bddde['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING'):_0x3bddde['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH'):_0x3bddde['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REASONING'):getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR');}['_getInputPlaceholder'](_0x242564){return _0x242564?_0x242564['isWebSearchEnabled']&&_0x242564['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING'):_0x242564['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH'):_0x242564['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'](_0x2f2dd1,_0x5c80d2,_0x2b3b49,_0x1e67a0){this['_view']['populateSourceResourceBalloon'](_0x2f2dd1,_0x5c80d2,_0x2b3b49,_0x1e67a0);}['closeSourceResourceBalloon'](_0x317352){this['_view']['closeSourceResourceBalloon'](_0x317352);}['setPromptInputValue'](_0x2b7e66){this['_view']['chatControls']['setPromptInputValue'](_0x2b7e66);}['focusPromptInput'](_0x79f6d1=!0x1){this['_view']['chatControls']['focusPromptInput'](_0x79f6d1);}['scrollFeedToSuggestion'](_0x26ce12,_0x47d161){this['_view']['chatFeed']['scrollToSuggestion'](_0x26ce12,_0x47d161);}['startAutoScroll'](){this['_view']['chatFeed']['startAutoScroll']();}['disableControls'](){this['_view']['chatControls']['isDisabled']=!0x0;}['enableControls'](){this['_view']['chatControls']['isDisabled']=!0x1;}}class AIChatHistorySectionListView extends ListView{['sections'];constructor(_0x2d3183,_0x59b9c0){super(_0x2d3183),this['sections']=_0x59b9c0,this['items']['addMany'](this['sections']),this['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__sections']}});}['filter'](_0x3577a0){let _0x3d02ca=0x0,_0x12937a=0x0;for(const _0x3c4a34 of this['sections']){const {resultsCount:_0x5dc3fd,totalItemsCount:_0x4de93a}=_0x3c4a34['filter'](_0x3577a0);_0x3d02ca+=_0x5dc3fd,_0x12937a+=_0x4de93a;}return{'resultsCount':_0x3d02ca,'totalItemsCount':_0x12937a};}}class AIChatHistoryListView extends ListItemView{['title'];['itemsViews'];['_itemsListView'];constructor(_0x420d28,{title:_0x20cb74,items:_0x52ccac}){super(_0x420d28);const _0x5e3b03=this['bindTemplate'];this['set']('isVisible',!0x0),this['title']=_0x20cb74,this['itemsViews']=_0x52ccac;const _0xde1f7c=new View(_0x420d28);_0xde1f7c['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__section-title']},'children':[this['title']]}),this['_itemsListView']=new ListView(_0x420d28),this['_itemsListView']['items']['addMany'](this['itemsViews']),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__section',_0x5e3b03['if']('isVisible','ck-hidden',_0x5a25e8=>!_0x5a25e8)]},'children':[_0xde1f7c,this['_itemsListView']]});}['filter'](_0x4923be){const _0x484f4e=this['itemsViews']['length'];let _0x36895e=0x0;for(const _0x13847c of this['itemsViews']){if(_0x4923be){const _0x5da0ee=_0x13847c['isMatching'](_0x4923be);_0x13847c['isVisible']=!!_0x5da0ee,_0x13847c['highlightText'](_0x4923be);}else _0x13847c['isVisible']=!0x0,_0x13847c['highlightText'](null);_0x13847c['isVisible']&&_0x36895e++;}return this['isVisible']=_0x36895e>0x0,{'resultsCount':_0x36895e,'totalItemsCount':_0x484f4e};}['getItem'](_0x48ae4a){return this['itemsViews']['find'](_0x744d09=>_0x744d09['id']===_0x48ae4a);}['removeItem'](_0x4338db){const _0xabcbfc=this['itemsViews']['indexOf'](_0x4338db);-0x1!==_0xabcbfc&&(this['itemsViews']['splice'](_0xabcbfc,0x1),this['_itemsListView']['items']['remove'](_0x4338db));}}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(_0x3cb0b8,_0x2faf08){super(_0x3cb0b8);const _0x3de132=this['bindTemplate'];this['set']('isEdit',!0x1),this['set']('isVisible',!0x0),this['set']('pinned',!!_0x2faf08['pinned']),this['set']('loadingState',null),this['id']=_0x2faf08['id'];const {title:_0x4fe08c,createdAt:_0x3e6682,active:_0x49783c=!0x1}=_0x2faf08;this['_titleView']=new HighlightedTextView(),this['_titleView']['text']=_0x4fe08c,this['_titleView']['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__item-title']}});const _0x934701=this['_createCheckView'](),_0x37bfc0=this['_createPinButtonView'](_0x3cb0b8),_0x29e2f0=this['_createMenuDropdownView'](),_0x21c3ea=this['_createEditInputView'](_0x3cb0b8,_0x4fe08c),_0x1d7303=this['_createAcceptEditButtonView'](_0x3cb0b8,_0x21c3ea),_0x41d3c2=this['_createCancelEditButtonView'](_0x3cb0b8,_0x21c3ea);this['actions']=this['createCollection'](),this['mainContent']=this['createCollection'](),this['mainContent']['add'](this['_titleView']),this['actions']['add'](_0x37bfc0),this['actions']['add'](_0x29e2f0),this['on']('change:isEdit',(_0x37a0f9,_0x52fdbd,_0x79feff)=>{this['actions']['clear'](),this['mainContent']['clear'](),_0x79feff?(this['actions']['add'](_0x1d7303),this['actions']['add'](_0x41d3c2),this['mainContent']['add'](_0x21c3ea),_0x21c3ea['element']['focus']()):(this['actions']['add'](_0x37bfc0),this['actions']['add'](_0x29e2f0),this['mainContent']['add'](this['_titleView']));}),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__item',_0x49783c?'ck-ai-chat-history__item--active':'',_0x3de132['if']('isVisible','ck-hidden',_0x5f3f69=>!_0x5f3f69),_0x3de132['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',_0x3de132['if']('loadingState','ck-hidden',_0x2b5f48=>!!_0x2b5f48)]},'children':_0x49783c?[_0x934701]:[]},{'tag':'div','attributes':{'class':['ck-ai-loader',_0x3de132['if']('loadingState','ck-hidden',_0x2b583a=>!_0x2b583a)]},'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',_0x3de132['if']('loadingState','ck-hidden',_0x48e5c2=>!!_0x48e5c2)]},'children':this['mainContent']},{'tag':'div','attributes':{'class':['ck-ai-loader__text',_0x3de132['if']('loadingState','ck-hidden',_0x5e0796=>!_0x5e0796)]},'children':[{'text':_0x3de132['to']('loadingState',_0x346efc=>_0x346efc?getTranslation$i(this['locale'],AIChatHistoryListItemView['LOADING_LABELS'][_0x346efc]):'')}]}]},{'tag':'span','attributes':{'class':['ck-ai-chat-history__item-date']},'children':[_0x3e6682]}]},{'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'](_0x40e648){this['_titleView']['text']=escape(_0x40e648);}['updateLoadingState'](_0x210c58,_0x12f431){this['set']('loadingState',_0x12f431?_0x210c58:null);}['_createCheckView'](){const _0x3d9dd7=new IconView();return _0x3d9dd7['set']({'content':IconCheck}),_0x3d9dd7;}['_createPinButtonView'](_0x3d6254){const _0x3f24fb=new ButtonView(_0x3d6254);return _0x3f24fb['set']({'label':getTranslation$i(_0x3d6254,'AI_CHAT_HISTORY_PIN_BUTTON'),'icon':IconPin,'withText':!0x1,'tooltip':!0x0}),_0x3f24fb['bind']('isOn')['to'](this,'pinned'),_0x3f24fb['on']('execute',()=>{const _0x2bfd01=!this['pinned'];this['fire']('setConversationPinned',{'id':this['id'],'pinned':_0x2bfd01});}),_0x3f24fb;}['_createMenuDropdownView'](){const _0x33b93a=createDropdown(this['locale'],LateFocusDropdownButtonView),_0x285e9=_0x33b93a['panelView']['children'];_0x33b93a['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SHOW_MORE_ITEMS'),'icon':IconThreeHorizontalDots}),_0x33b93a['panelPosition']='sw';const _0x37c4ae=new ButtonView(this['locale']);_0x37c4ae['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EDIT_NAME'),_0x37c4ae['withText']=!0x0,_0x37c4ae['on']('execute',()=>{this['isEdit']=!0x0;});const _0xb80b50=new ButtonView(this['locale']);_0xb80b50['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE'),_0xb80b50['withText']=!0x0,_0xb80b50['on']('execute',()=>{this['showConfirm'](getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE_CONFIRM'),this['element'])['then'](()=>{this['fire']('removeConversation',{'id':this['id']});});});const _0x1f429e=new ListView(this['locale']),_0x5989ca=new ListItemView(this['locale']);_0x5989ca['children']['add'](_0x37c4ae);const _0x47322b=new ListItemView(this['locale']);return _0x47322b['children']['add'](_0xb80b50),_0x1f429e['items']['addMany']([_0x5989ca,_0x47322b]),_0x285e9['add'](_0x1f429e),_0x33b93a;}['_createEditInputView'](_0x4c0f95,_0x3fadf2){const _0x57f91a=new InputTextView(_0x4c0f95),_0x1dee11=_0x57f91a['bindTemplate'];return _0x57f91a['value']=_0x3fadf2,_0x57f91a['extendTemplate']({'on':{'keydown':_0x1dee11['to'](_0x448d8d=>{'Enter'==_0x448d8d['key']&&this['_commitEditInputValue'](_0x57f91a);})}}),_0x57f91a;}['_createAcceptEditButtonView'](_0x59b24f,_0x8aa77a){const _0x7f52c8=new ButtonView(_0x59b24f);return _0x7f52c8['set']({'icon':IconCheck,'withText':!0x1,'tooltip':getTranslation$i(_0x59b24f,'AI_CHAT_HISTORY_ACCEPT')}),_0x7f52c8['extendTemplate']({'attributes':{'class':['ck-confirm-view-submit']}}),_0x7f52c8['on']('execute',()=>{this['_commitEditInputValue'](_0x8aa77a);}),_0x7f52c8;}['_commitEditInputValue'](_0x62fcb1){const _0x54df4e=_0x62fcb1['element']['value']||'';this['_titleView']['text']=_0x54df4e,this['isEdit']=!0x1,this['fire']('editConversationTitle',{'id':this['id'],'title':_0x54df4e});}['_createCancelEditButtonView'](_0x3206a3,_0x15f335){const _0x520113=new ButtonView(_0x3206a3);return _0x520113['set']({'icon':IconCancel,'withText':!0x1,'tooltip':getTranslation$i(_0x3206a3,'AI_CHAT_HISTORY_CANCEL')}),_0x520113['extendTemplate']({'attributes':{'class':['ck-confirm-view-cancel']}}),_0x520113['on']('execute',()=>{this['isEdit']=!0x1,_0x15f335['value']=this['_titleView']['text']||'',this['fire']('edit:cancel');}),_0x520113;}['_createSpinnerView'](){const _0x40ec86=new AISpinnerView('tiny');return _0x40ec86['isVisible']=!0x0,_0x40ec86;}['isMatching'](_0x3417ee){return this['_titleView']&&'string'==typeof this['_titleView']['text']&&this['_titleView']['text']['match'](_0x3417ee)?{'title':!0x0}:null;}['highlightText'](_0x1dbc48){this['_titleView']['highlightText'](_0x1dbc48);}}class AIChatHistoryView extends View{['searchView'];['mainErrorView'];['skeletonView'];['emptyView'];['sectionsView'];['resizeButton'];constructor(_0x97122c,_0x4a3b48){super(_0x97122c),this['set']('hasItems',!0x1),this['set']('isLoading',!0x0),this['set']('errorMessage',''),this['set']('isMaximized',!0x1),this['set']('isSearchViewVisible',!0x1),this['set']('isEmptyViewVisible',!0x1),this['set']('isMainErrorViewVisible',!0x1);const _0xdc7a32=new FormHeaderView(_0x97122c,{'label':getTranslation$i(_0x97122c,'AI_CHAT_HISTORY_HEADING'),'icon':IconAIHistory,'class':'ck-ai-header\x20ck-ai-header_history'});_0x4a3b48&&(this['resizeButton']=createResizeButton(_0x97122c,this),_0xdc7a32['children']['add'](this['resizeButton'])),this['sectionsView']=new AIChatHistorySectionListView(_0x97122c,[]),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',_0x61aaf7=>!_0x61aaf7)]}}),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':[_0xdc7a32,{'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 _0x9fa1ab=new SearchTextView(this['locale'],{'filteredView':this['sectionsView'],'queryView':{'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_LABEL')},'infoView':{'text':{'notFound':{'primary':_0x2f50f8=>getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY',_0x2f50f8),'secondary':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY')}}}}),_0x136901=this['_createErrorView']();return _0x136901['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('errorMessage','ck-hidden',_0x203752=>!_0x203752)]}}),_0x9fa1ab['on']('render',()=>{_0x9fa1ab['children']['add'](_0x136901,0x1);}),_0x9fa1ab['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isSearchViewVisible','ck-hidden',_0x4011d7=>!_0x4011d7)]}}),_0x9fa1ab;}['_createSkeletonView'](){const _0x385f1c=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiHistory']);return _0x385f1c['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoading','ck-hidden',_0x4c3a67=>!_0x4c3a67)]}}),_0x385f1c;}['_createErrorView'](){const _0x4a5f5d=new View(this['locale']),_0x292142=new ButtonView(this['locale']);_0x292142['set']({'withText':!0x1,'icon':IconCancel,'class':'ck-ai-notification_error__dismiss-button'}),_0x292142['bind']('isVisible')['to'](this,'hasItems',_0x2a8f8a=>!!_0x2a8f8a),_0x292142['on']('execute',()=>{this['errorMessage']='';});const _0xb173f0=this['bindTemplate'];return _0x4a5f5d['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error']},'children':[{'tag':'p','children':[{'text':_0xb173f0['to']('errorMessage')}]},_0x292142]}),_0x4a5f5d;}['_createEmptyStateView'](){const _0xf442e4=new ButtonView(this['locale']);_0xf442e4['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation'}),_0xf442e4['on']('execute',()=>{this['fire']('openChat');});const _0x558048=new View(this['locale']);return _0x558048['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__empty',this['bindTemplate']['if']('isEmptyViewVisible','ck-hidden',_0x4f26f2=>!_0x4f26f2)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-history__empty-message']},'children':[getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EMPTY_MESSAGE')]},_0xf442e4]}),_0x558048;}['_createListItemViews'](_0x5c1824,_0x25e272){const _0x148851=[];for(const _0x2020f8 of _0x5c1824){const _0x6eb2a5=new AIChatHistoryListItemView(_0x25e272,_0x2020f8);_0x6eb2a5['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x148851['push'](_0x6eb2a5);}return _0x148851;}['updateHistoryItemsWithCategories'](_0x2239d7){const _0x36f220=this['locale']||'en',_0x247cb8=[];for(const _0x560603 of _0x2239d7){const _0x2c6e22=this['_createListItemViews'](_0x560603['items'],_0x36f220);_0x247cb8['push'](new AIChatHistoryListView(_0x36f220,{'title':_0x560603['title'],'items':_0x2c6e22}));}this['sectionsView']['sections']=_0x247cb8,this['sectionsView']['items']['clear'](),this['sectionsView']['items']['addMany'](_0x247cb8),this['hasItems']=_0x2239d7['some'](_0x512b6a=>_0x512b6a['items']['length']>0x0),this['_refreshSearch']();}['removeHistoryItem'](_0x54c826){for(const _0x1aab0c of this['sectionsView']['sections']){const _0x3afa69=_0x1aab0c['getItem'](_0x54c826);if(_0x3afa69){if(_0x1aab0c['removeItem'](_0x3afa69),0x0===_0x1aab0c['itemsViews']['length']){const _0xba67d7=this['sectionsView']['sections']['indexOf'](_0x1aab0c);-0x1!==_0xba67d7&&(this['sectionsView']['sections']['splice'](_0xba67d7,0x1),this['sectionsView']['items']['remove'](_0x1aab0c));}this['hasItems']=this['sectionsView']['sections']['length']>0x0,this['_refreshSearch']();break;}}}['updateItemTitle'](_0x4d0031,_0x4454ed){for(const _0x5b1837 of this['sectionsView']['sections']){const _0x1d88cc=_0x5b1837['getItem'](_0x4d0031);if(_0x1d88cc){_0x1d88cc['updateTitle'](_0x4454ed);break;}}}['updateItemLoadingState'](_0x25f760,_0xb90022,_0x2a1f3f){for(const _0x2db48d of this['sectionsView']['sections']){const _0x50dfc3=_0x2db48d['getItem'](_0x25f760);if(_0x50dfc3){_0x50dfc3['updateLoadingState'](_0xb90022,_0x2a1f3f);break;}}}['_refreshSearch'](){if(this['hasItems']){const _0x1af6c1=this['searchView']['queryView']['fieldView']?.['element']?.['value']||'';this['searchView']['search'](_0x1af6c1);}}}const AI_CHAT_HISTORY_UI_EVENT_NAMES=['showConversationHistory','removeConversation','editConversationTitle','setConversationPinned','selectConversation','openChat','resizeTabs'];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(_0x46bd0a){super(_0x46bd0a);const _0x50152c=this['context']['plugins']['get']('AITabs');this['_historyView']=new AIChatHistoryView(this['context']['locale'],_0x50152c['showResizeButton']),this['_historyView']['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x50152c['view']['addTab']({'id':'history','buttonLabel':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_HEADING'),'buttonIcon':IconAIHistory,'order':0x0,'content':this['_historyView']});}['removeHistoryItem'](_0x1d1e16){this['_historyView']['removeHistoryItem'](_0x1d1e16);}['updateItems'](_0x27adaa){this['_historyView']['updateHistoryItemsWithCategories'](_0x27adaa);}['updateItemTitle'](_0x111931,_0x3279f8){this['_historyView']['updateItemTitle'](_0x111931,_0x3279f8);}['updateItemLoadingState'](_0x476dd9,_0x5afeb6,_0x4599ff){this['_historyView']['updateItemLoadingState'](_0x476dd9,_0x5afeb6,_0x4599ff);}['setLoadingSkeleton'](_0x4259d5){this['_historyView']['isLoading']=_0x4259d5;}['showError'](_0x5839bb){this['_historyView']['errorMessage']=_0x5839bb;}['hideError'](){this['_historyView']['errorMessage']='';}['setIsMaximized'](_0xe0a833){this['_historyView']['isMaximized']=_0xe0a833;}}class AIChatHistoryItem extends ObservableMixin(){['id'];['createdAt'];constructor({id:_0x377f8a,title:_0x2f4ea1,createdAt:_0x24127b,updatedAt:_0x322684,pinned:_0x20ff68}){super(),this['id']=_0x377f8a,this['createdAt']=new Date(_0x24127b),this['set']('title',_0x2f4ea1),this['set']('updatedAt',_0x322684?new Date(_0x322684):null),this['set']('pinned',_0x20ff68||!0x1);}['updateTitle'](_0x48e35b){this['set']('title',escape(_0x48e35b)),this['updatedAt']=new Date();}['updatePinned'](_0x23f277){this['set']('pinned',_0x23f277),this['updatedAt']=new Date();}}class AIChatHistoryConversations extends EmitterMixin(){['items']=[];['connector'];['group'];constructor({connector:_0xca999e,group:_0x434bbf}){super(),this['connector']=_0xca999e,this['group']=_0x434bbf;}async['init'](){try{const _0xefc3fe=this['connector']['fetchConversations'](this['group']),_0x1b845e=await _0xefc3fe['getConversations']();this['loadItems'](_0x1b845e);}catch(_0x2637b5){this['fire']('error',{'error':_0x2637b5,'operation':'init'});}}['addItem'](_0x3dcff8){this['items']['push'](_0x3dcff8);}async['removeItem'](_0x4de975){const _0x2c6673=this['items']['findIndex'](_0x424789=>_0x424789['id']===_0x4de975);if(-0x1===_0x2c6673)return!0x1;try{return await this['connector']['deleteConversation'](_0x4de975)['execute'](),this['items']['splice'](_0x2c6673,0x1),this['fire']('itemRemoved',{'itemId':_0x4de975}),!0x0;}catch(_0x2b2e77){return this['fire']('error',{'error':_0x2b2e77,'operation':'removeItem','itemId':_0x4de975}),!0x1;}}['getItem'](_0x475ecb){return this['items']['find'](_0x4a799a=>_0x4a799a['id']===_0x475ecb);}async['updateItemTitle'](_0x2fbb1c,_0x553d63){const _0x5f1469=this['getItem'](_0x2fbb1c);if(!_0x5f1469)return!0x1;try{return await this['connector']['updateConversation'](_0x2fbb1c,{'title':_0x553d63})['getResult'](),_0x5f1469['updateTitle'](_0x553d63),this['fire']('itemUpdated',{'itemId':_0x2fbb1c,'updates':{'title':_0x553d63}}),!0x0;}catch(_0x3cf18b){return this['fire']('error',{'error':_0x3cf18b,'operation':'updateItemTitle','itemId':_0x2fbb1c}),!0x1;}}async['updateItemPinned'](_0x2a7639,_0x4c433e){const _0x1d0cdd=this['getItem'](_0x2a7639);if(!_0x1d0cdd)return!0x1;try{return await this['connector']['updateConversation'](_0x2a7639,{'pinned':_0x4c433e})['getResult'](),_0x1d0cdd['updatePinned'](_0x4c433e),this['fire']('itemUpdated',{'itemId':_0x2a7639,'updates':{'pinned':_0x4c433e}}),!0x0;}catch(_0x33e93f){return this['fire']('error',{'error':_0x33e93f,'operation':'updateItemPinned','itemId':_0x2a7639}),!0x1;}}['loadItems'](_0x4631d5){try{this['items']=[],_0x4631d5['map'](_0x174046=>{this['addItem'](new AIChatHistoryItem(_0x174046));}),this['fire']('itemsLoaded',{'items':[...this['items']]});}catch(_0x189971){this['fire']('error',{'error':_0x189971,'operation':'loadItems'});}}['getItems'](_0x21aef1={}){const _0x45a844=void 0x0!==_0x21aef1['pinned']&&_0x21aef1['pinned'],_0x1d5b61=_0x21aef1['from']?new Date(_0x21aef1['from']['getFullYear'](),_0x21aef1['from']['getMonth'](),_0x21aef1['from']['getDate']()):null,_0x1033cf=_0x21aef1['to']?new Date(_0x21aef1['to']['getFullYear'](),_0x21aef1['to']['getMonth'](),_0x21aef1['to']['getDate']()):null;return this['items']['filter'](_0x21ca6a=>{if(_0x21ca6a['pinned']!==_0x45a844)return!0x1;if(_0x1033cf){const _0x31e257=new Date(_0x21ca6a['createdAt']['getFullYear'](),_0x21ca6a['createdAt']['getMonth'](),_0x21ca6a['createdAt']['getDate']());return _0x1d5b61?_0x1d5b61['getTime']()===_0x1033cf['getTime']()?_0x31e257['getTime']()===_0x1d5b61['getTime']():_0x31e257<_0x1033cf&&_0x31e257>=_0x1d5b61:_0x31e257<_0x1033cf;}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 _0x1a724a=this['context']['plugins']['get'](AITabs);try{const _0x4eed46=this['_aiChatController']['getGroupId']();this['history']=new AIChatHistoryConversations({'connector':this['_aiConnector'],'group':_0x4eed46}),this['listenTo'](this['_aiChatHistoryUi'],'removeConversation',(_0x5d3af6,_0x2563fd)=>{this['_setItemLoading'](_0x2563fd['id'],'remove'),this['_handleRemove'](_0x2563fd['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'editConversationTitle',(_0x257eba,_0x3b8f7c)=>{this['_setItemLoading'](_0x3b8f7c['id'],'rename'),this['_handleEditTitle'](_0x3b8f7c['id'],_0x3b8f7c['title']);}),this['listenTo'](this['history'],'itemUpdated',(_0x276560,_0x282914)=>{void 0x0!==_0x282914['updates']['title']&&this['_aiChatHistoryUi']['updateItemTitle'](_0x282914['itemId'],_0x282914['updates']['title']),void 0x0!==_0x282914['updates']['pinned']&&this['_updateHistoryItemsUI'](),this['_clearItemLoading'](_0x282914['itemId']);}),this['listenTo'](this['history'],'itemRemoved',(_0x45486a,_0x222390)=>{this['_aiChatController']['handleRemovedConversation'](_0x222390['itemId']),this['_aiChatHistoryUi']['removeHistoryItem'](_0x222390['itemId']),this['_clearItemLoading'](_0x222390['itemId']);}),this['listenTo'](this['history'],'itemsLoaded',()=>{this['_updateHistoryItemsUI']();}),this['listenTo'](this['history'],'error',(_0x203295,_0x1919e3)=>{this['_handleHistoryErrorUI'](_0x1919e3['error'],_0x1919e3['operation'],_0x1919e3['itemId']);}),this['listenTo'](this['_aiChatHistoryUi'],'selectConversation',(_0x1cd518,_0x518f4f)=>{this['_handleSelectConversation'](_0x518f4f['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'setConversationPinned',(_0x5f1af9,_0x4b9da7)=>{const _0x1c86dd=_0x4b9da7['pinned']?'pin':'unpin';this['_setItemLoading'](_0x4b9da7['id'],_0x1c86dd),this['_handleTogglePin'](_0x4b9da7['id'],_0x4b9da7['pinned']);}),this['listenTo'](this['_aiChatHistoryUi'],'openChat',()=>{_0x1a724a['view']['activateTab']('chat');}),this['listenTo'](this['_aiChatController'],'change:activeConversation',()=>{this['_updateHistoryItemsUI']();}),_0x1a724a['view']['on']('activateTab:history',()=>{this['_showConversationHistory']();}),this['listenTo'](_0x1a724a,'resizedTabs',(_0x4b9ce3,_0x4365df)=>{this['_setIsMaximized'](_0x4365df);}),this['listenTo'](this['_aiChatHistoryUi'],'resizeTabs',()=>{_0x1a724a['resize']();});}catch(_0x4fddcb){this['_handleHistoryErrorUI'](_0x4fddcb,'init');}}async['_handleEditTitle'](_0x27ca94,_0x175f61){await this['history']['updateItemTitle'](_0x27ca94,_0x175f61);}async['_handleTogglePin'](_0x265b02,_0x368fa9){await this['history']['updateItemPinned'](_0x265b02,_0x368fa9);}async['_handleRemove'](_0x3b4941){await this['history']['removeItem'](_0x3b4941);}async['_handleSelectConversation'](_0x4e1427){await this['_aiChatController']['loadConversation'](_0x4e1427);}async['_showConversationHistory'](){this['_aiChatHistoryUi']['showError'](''),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x0),await this['history']['init'](),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_updateHistoryItemsUI'](){const _0x3f4b28=this['_aiChatController']['activeConversation']?.['id'],_0x18dc6e=this['_getCategorizedItems']()['map'](_0x48ea89=>({'title':_0x48ea89['title'],'items':_0x48ea89['items']['map'](_0xa606e0=>({'id':_0xa606e0['id'],'title':_0xa606e0['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),'createdAt':new Date(_0xa606e0['createdAt'])['toLocaleDateString'](),'active':_0xa606e0['id']===_0x3f4b28,'pinned':_0xa606e0['pinned']}))}));this['_aiChatHistoryUi']['updateItems'](_0x18dc6e);}['_setItemLoading'](_0x5c5c17,_0x393769){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x5c5c17,_0x393769,!0x0);}['_clearItemLoading'](_0x3a212){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x3a212,null,!0x1);}['_handleHistoryErrorUI'](_0x4a19af,_0x3a1e75,_0x357d20){const _0x23ca14=this['_generateErrorMessage'](_0x3a1e75,_0x357d20);this['_aiChatHistoryUi']['showError'](_0x23ca14),_0x357d20&&this['_clearItemLoading'](_0x357d20),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_generateErrorMessage'](_0x4aa98e,_0x2835ad){const _0x576247=_0x2835ad?this['history']['getItem'](_0x2835ad):null,_0x2852c2=_0x576247?.['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION');switch(_0x4aa98e){case'updateItemTitle':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE',_0x2852c2);case'updateItemPinned':{const _0x2fb795=getTranslation$i(this['context']['locale'],_0x576247?.['pinned']?'AI_CHAT_HISTORY_UNPIN_ACTION':'AI_CHAT_HISTORY_PIN_ACTION');return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED',[_0x2fb795,_0x2852c2]);}case'removeItem':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM',_0x2852c2);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 _0x5ba329=new Date(),_0x334dcd=new Date(_0x5ba329['getFullYear'](),_0x5ba329['getMonth'](),_0x5ba329['getDate']()),_0x43ee8e=new Date(_0x334dcd);_0x43ee8e['setDate'](_0x43ee8e['getDate']()-0x1);const _0x2cc7a6=new Date(_0x334dcd);_0x2cc7a6['setDate'](_0x2cc7a6['getDate']()-0xe);const _0x319cf8=this['history']['getItems']({'pinned':!0x0}),_0x46871c=this['history']['getItems']({'from':_0x334dcd,'to':_0x334dcd}),_0x56a1b5=this['history']['getItems']({'from':_0x43ee8e,'to':_0x43ee8e}),_0x4787de=this['history']['getItems']({'from':_0x2cc7a6,'to':_0x43ee8e}),_0x56faf5=this['history']['getItems']({'to':_0x2cc7a6}),_0x1ff82a=[];return _0x319cf8['length']>0x0&&_0x1ff82a['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_PINNED'),'items':_0x319cf8}),_0x46871c['length']>0x0&&_0x1ff82a['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_TODAY'),'items':_0x46871c}),_0x56a1b5['length']>0x0&&_0x1ff82a['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_YESTERDAY'),'items':_0x56a1b5}),_0x4787de['length']>0x0&&_0x1ff82a['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS'),'items':_0x4787de}),_0x56faf5['length']>0x0&&_0x1ff82a['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LATER'),'items':_0x56faf5}),_0x1ff82a;}['_setIsMaximized'](_0x12ef48){this['_aiChatHistoryUi']['setIsMaximized'](_0x12ef48);}}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(_0x433bc9){super(_0x433bc9),this['context']['config']['define']('ai.chat.context',{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this['context']['config']['define']('ai.chat.initialConversation','new');}async['addSelectionToChatContext'](){await this['context']['plugins']['get'](AIChatController)['addSelectionToChatContext']();}async['startConversation'](){await this['context']['plugins']['get'](AIChatController)['startConversation']();}async['sendMessage']({message:_0x3dae5c,attributes:_0xb92027}){await this['context']['plugins']['get'](AIChatController)['sendMessage']({'message':_0x3dae5c,'attributes':_0xb92027});}['removeSelectionFromChatContext'](){this['context']['plugins']['get'](AIChatController)['removeSelectionFromChatContext']();}['focusPromptInput'](){this['context']['plugins']['get'](AIChatController)['focusPromptInput']();}['registerToolDataCallback'](_0x3cd5c6){this['context']['plugins']['get'](AIChatController)['_registerToolDataCallback'](_0x3cd5c6);}}class AIChatShortcutView extends ButtonView{['id'];constructor(_0x44aa27,_0x149a26){super(_0x44aa27);const {id:_0x203d03,type:_0x57736b,icon:_0x5120fb}=_0x149a26;this['id']=_0x203d03,this['set']({'label':_0x149a26['label'],'withText':!0x0,'class':'ck-ai-chat-shortcut'}),this['extendTemplate']({'attributes':{'data-cke-ai-shortcut-id':_0x149a26['id']}}),_0x5120fb?this['icon']=_0x5120fb:'chat'===_0x57736b?this['icon']=IconAIChat$1:'review'===_0x57736b?this['icon']=IconAIReview:'translate'===_0x57736b&&(this['icon']=IconAITranslate);}}class AIChatShortcutsView extends View{['listView'];constructor(_0xfdf666,_0x1a7acc){super(_0xfdf666);const _0x177ce6=_0x1a7acc['map'](_0x6c0edb=>{const _0xc5b808=new ListItemView(this['locale']),_0x3e3877=new AIChatShortcutView(this['locale'],_0x6c0edb);return _0xc5b808['children']['add'](_0x3e3877),_0x3e3877['delegate']('execute')['to'](this),_0xc5b808;});this['listView']=new ListView(this['locale']),this['listView']['items']['addMany'](_0x177ce6),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-shortcuts']},'children':[this['listView']]});}}const CHAT_SHORTCUTS_FEED_ITEM_ID='chat-shortcuts';var AIChatShortcutType=function(_0x3d0f54){return _0x3d0f54['CHAT']='chat',_0x3d0f54['REVIEW']='review',_0x3d0f54['TRANSLATE']='translate',_0x3d0f54;}({});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 _0x6c75c1=this['context']['plugins']['get']('AIChatController');this['_shortcuts']['length']&&(this['_validateShortcuts'](),this['_aiChatUI']['on']('conversationCreated',()=>{_0x6c75c1['activeConversation']['isFromHistory']||this['_injectShortcuts']();}),this['listenTo'](_0x6c75c1,'interactionStarted',()=>{this['_removeShortcuts']();}));}['_validateShortcuts'](){const _0x4087fa=Object['values'](AIChatShortcutType);this['_shortcuts']['forEach'](_0xfb0414=>{let _0x3db72b=!0x0;if(_0xfb0414['id']&&_0xfb0414['label']&&_0x4087fa['includes'](_0xfb0414['type'])?'chat'===_0xfb0414['type']&&(_0x3db72b='string'==typeof _0xfb0414['prompt']):_0x3db72b=!0x1,!_0x3db72b)throw new CKEditorError('ai-chat-shortcuts-invalid-config',this['context'],{'shortcut':_0xfb0414});});}['_injectShortcuts'](){const _0x337074=this['context']['plugins']['get'](AIChatUI);this['_shortcutsView']=new AIChatShortcutsView(this['context']['locale'],this['_shortcuts']),this['_shortcutsView']['render'](),_0x337074['addFeedItemCustomElement'](this['_shortcutsView']['element'],CHAT_SHORTCUTS_FEED_ITEM_ID),this['_shortcutsView']['on']('execute',_0x1783ed=>{const _0x18bec3=_0x1783ed['source']['id'];this['_executeShortcut'](_0x18bec3);});}['_removeShortcuts'](){const _0x231c06=this['context']['plugins']['get'](AIChatUI);_0x231c06['hasFeedItem'](CHAT_SHORTCUTS_FEED_ITEM_ID)&&_0x231c06['removeFeedItem'](CHAT_SHORTCUTS_FEED_ITEM_ID),this['_shortcutsView']?.['destroy']();}['_executeShortcut'](_0x48099e){const _0x3f7827=this['_shortcuts']['find'](_0x4cf43a=>_0x4cf43a['id']===_0x48099e),_0x40e55b=_0x3f7827['type'];'chat'===_0x40e55b?this['_runChatShortcut'](_0x3f7827):'review'===_0x40e55b?_0x3f7827['check']?this['_runReviewShortcut'](_0x3f7827):this['_switchTab']('reviewMode'):'translate'===_0x40e55b&&(_0x3f7827['language']?this['_runTranslateShortcut'](_0x3f7827):this['_switchTab']('translate'));}['_switchTab'](_0x10539d){if(!this['context']['plugins']['has']('AITabs'))throw new CKEditorError('ai-chat-shortcuts-ai-tabs-not-found',this['context'],{'tabName':_0x10539d});this['context']['plugins']['get']('AITabs')['view']['activateTab'](_0x10539d);}async['_runChatShortcut']({prompt:_0x4dc6bb,draftMode:_0x2111d2,useWebSearch:_0x62d876=!0x1,useReasoning:_0x217dc6=!0x1,model:_0x11f466}){const _0x3a924a=this['context']['plugins']['get']('AIChat'),_0x5e8e10=this['context']['plugins']['get']('AIChatController'),_0xf1a077=_0x5e8e10['activeConversation'];let _0x50360e;_0x50360e=_0x11f466?await _0xf1a077['chatModels']['getModel'](_0x11f466):await _0xf1a077['chatModels']['getDefault'](),_0x50360e&&await _0xf1a077['setModel'](_0x50360e),_0xf1a077['setWebSearch'](_0x62d876),_0xf1a077['setReasoning'](_0x217dc6),_0x5e8e10['addCurrentDocumentToChatContext'](),_0x2111d2?(this['_aiChatUI']['setPromptInputValue'](_0x4dc6bb),this['_aiChatUI']['focusPromptInput'](!0x0)):_0x3a924a['sendMessage']({'message':_0x4dc6bb});}['_runReviewShortcut']({check:_0x28d144,model:_0xe58159,prompt:_0x498cc4,params:_0x2a1b5c}){if(!this['context']['plugins']['has']('AIReviewModeUI'))throw new CKEditorError('ai-chat-shortcuts-review-mode-not-found',this['context']);this['_switchTab']('reviewMode');const _0x56b8d0={'id':_0x28d144,'isCustom':'custom'===_0x28d144};_0xe58159&&_0x498cc4&&(_0x56b8d0['args']={'model':_0xe58159,'prompt':_0x498cc4}),_0x2a1b5c&&(_0x56b8d0['params']=_0x2a1b5c),this['context']['plugins']['get']('AIReviewModeUI')['fire']('runReviewCheck',_0x56b8d0);}['_runTranslateShortcut']({language:_0x404f7d}){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':_0x404f7d,'args':{'language':_0x404f7d}});}}class ToggleAICommand extends Command{constructor(_0x40fc0e){super(_0x40fc0e);const _0x36193f=_0x40fc0e['plugins']['get']('AITabs')['view'];this['bind']('value')['to'](_0x36193f,'isVisible'),this['isEnabled']=!0x0;}['execute'](){const _0x3e5501=this['editor']['plugins']['get']('AITabs')['view'];_0x3e5501['isVisible']=!_0x3e5501['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 _0x21d779=this['editor'];_0x21d779['commands']['add']('toggleAi',new ToggleAICommand(_0x21d779)),_0x21d779['ui']['componentFactory']['add']('toggleAi',()=>{const _0x140611=this['_createAIUIButton'](ButtonView);return _0x140611['set']({'tooltip':!0x0,'class':'ck-ai-toggle-button'}),_0x140611;}),_0x21d779['ui']['componentFactory']['add']('menuBar:toggleAi',()=>{const _0x55343d=this['_createAIUIButton'](MenuBarMenuListItemButtonView);return _0x55343d['set']({'role':'menuitemcheckbox'}),_0x55343d;});}['_createAIUIButton'](_0x16c2c1){const _0x84d42d=this['editor'],_0x4c98ad=_0x84d42d['commands']['get']('toggleAi'),_0x33d797=new _0x16c2c1(_0x84d42d['locale']);return _0x33d797['set']({'label':getTranslation$i(_0x84d42d['locale'],'AI_TOGGLE_BUTTON_LABEL'),'icon':IconAIAskAI,'isToggleable':!0x0}),_0x33d797['bind']('isEnabled')['to'](_0x4c98ad),_0x33d797['bind']('isOn')['to'](_0x4c98ad,'value',_0x5545c2=>!!_0x5545c2),this['listenTo'](_0x33d797,'execute',()=>{_0x4c98ad['execute']();}),_0x33d797;}}const AI_BALLOON_VIEW_EVENT_NAMES=['applySuggestion','insertSuggestion','showNext','showPrevious'];class AIBalloonView extends View{['_errorView'];constructor(_0x29f478){super(_0x29f478),this['set']('_errorMessage',''),this['set']('_isErrorVisible',!0x1);}['showBlockingError'](_0x14b520){this['showError'](_0x14b520);}['showError'](_0x4de0d4){this['_errorView']||(this['_errorView']=this['_createErrorView']()),this['_errorMessage']=_0x4de0d4,this['_isErrorVisible']=!0x0;}['hideError'](){this['_isErrorVisible']=!0x1;}['_createErrorView'](){const _0x244623=new View(this['locale']),_0x4a4881=new View(this['locale']);return _0x4a4881['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__error-text']},'children':[{'text':this['bindTemplate']['to']('_errorMessage')}]}),_0x244623['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__error','ck-ai-balloon-error',this['bindTemplate']['if']('_isErrorVisible','ck-hidden',_0x4a942b=>!_0x4a942b)]},'children':[_0x4a4881]}),_0x244623;}}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'];['_isUpdatingMarkers']=!0x1;['open'](_0x21624a){const {id:_0x17d6e1}=this['_currentConfig']??{};this['_currentConfig']=_0x21624a;const {id:_0x542b05}=this['_currentConfig'];this['isOpen']&&_0x17d6e1===_0x542b05?this['_updateDialog']():this['_showDialog']();}['close'](){const _0x3c04d0=getEditorFromContext(this['context'])['plugins']['get']('Dialog');_0x3c04d0['isOpen']&&this['_currentConfig']&&_0x3c04d0['id']===this['_currentConfig']['id']&&_0x3c04d0['hide']();}['_updateDialog'](){const _0x5aa95f=getEditorFromContext(this['context'])['plugins']['get']('Dialog'),{icon:_0x364426,title:_0x43573c}=this['_currentConfig'];_0x5aa95f['view']?.['headerView']&&(_0x5aa95f['view']['headerView']['label']=_0x43573c,_0x5aa95f['view']['headerView']['iconView']&&_0x364426&&(_0x5aa95f['view']['headerView']['iconView']['content']=_0x364426)),this['_isUpdatingMarkers']=!0x0,this['_showFakeVisualSelection'](),this['_isUpdatingMarkers']=!0x1,_0x5aa95f['view']?.['updatePosition']();}['_showFakeVisualSelection'](){this['context']['plugins']['get'](AIEditing)['showFakeVisualSelection'](this['_currentConfig']['ranges'],'ai-balloon-'+this['_currentConfig']['index'],!0x0,!0x0);}['_hideFakeVisualSelection'](_0x1efefd){this['context']['plugins']['get'](AIEditing)['hideFakeVisualSelection']('ai-balloon-'+_0x1efefd);}['_showDialog'](){const _0x58789d=getEditorFromContext(this['context'])['plugins']['get']('Dialog'),{id:_0x4f65c2,title:_0xcc2fba,icon:_0x421718,class:_0x180400,mainView:_0x3ad59c}=this['_currentConfig'];_0x3ad59c['delegate'](...AI_BALLOON_VIEW_EVENT_NAMES)['to'](this),_0x58789d['show']({'title':_0xcc2fba,'icon':_0x421718,'hasCloseButton':!0x0,'id':_0x4f65c2,'position':this['_calculateDialogPosition']['bind'](this),'className':'ck-ai-balloon\x20'+(_0x180400||''),'content':_0x3ad59c,'onShow':_0x214f71=>{this['_showFakeVisualSelection'](),this['_setupFakeVisualSelectionMarkerRemovalListener']();const _0x2683a9=this['_getSelectionElements']();_0x2683a9&&_0x2683a9[0x0]&&scrollViewportToShowTarget({'target':_0x2683a9[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this['isOpen']=!0x0,_0x214f71['once']('hide',()=>{this['fire']('beforeDialogClosed',{'id':_0x4f65c2});},{'priority':'high'});},'onHide':()=>{this['_hideFakeVisualSelection'](this['_currentConfig']['index']),this['_cleanupFakeVisualSelectionMarkerRemovalListener'](),this['fire']('dialogClosed',{'id':_0x4f65c2}),this['isOpen']=!0x1;}});}['_calculateDialogPosition'](_0x4dec3e,_0x2e95cc){if(!_0x2e95cc)return null;const _0x239606=this['_getSelectionElements']();if(!_0x239606||0x0===_0x239606['length'])return{'left':Math['round'](_0x2e95cc['left']+_0x2e95cc['width']/0x2-_0x4dec3e['width']/0x2),'top':Math['round'](_0x2e95cc['top']+_0x2e95cc['height']/0x2-_0x4dec3e['height']/0x2)};const _0x5adf55=Math['round'](_0x2e95cc['left']+_0x2e95cc['width']/0x2-_0x4dec3e['width']/0x2),_0x5b9574=_0x239606['map'](_0x3b35b0=>new Rect(_0x3b35b0)),_0xba1077=_0x4dec3e['height'];return{'left':_0x5adf55,'top':this['_calculateOptimalTopPosition'](_0x5b9574,_0xba1077,_0x2e95cc)};}['_calculateOptimalTopPosition'](_0x4edb72,_0x23ade7,_0x21a60d){const _0x5d479a=new Rect(_0x19b45e['window']),_0x4436a9=_0x4edb72['map'](_0x1f47b3=>_0x1f47b3['getVisible']())['filter'](_0x483451=>_0x483451),_0x54972c=Rect['getBoundingRect'](_0x4436a9);if(!_0x54972c)return Math['round'](_0x21a60d['top']+_0x21a60d['height']/0x2);const _0x11a7df=_0x5d479a['getIntersection'](_0x54972c);if(!_0x11a7df)return Math['round'](_0x21a60d['top']+_0x21a60d['height']/0x2);const _0x3e582f=_0x21a60d['getVisible'](),_0x3bff82=_0x3e582f&&_0x54972c['height']>_0x3e582f['height'],_0x446705=_0x11a7df['top'],_0xa8bd0b=_0x11a7df['bottom'];if(_0x3bff82){const _0x3aa79d=(_0x3e582f||_0x5d479a)['height']/0x2-_0x23ade7/0x2,_0x3ee38b=_0x446705-DIALOG_TOP_OFFSET-_0x21a60d['top'],_0x4aec25=_0x21a60d['bottom']-_0xa8bd0b-DIALOG_TOP_OFFSET;return _0x3ee38b>=_0x23ade7?Math['max'](DIALOG_TOP_OFFSET,_0x446705-_0x23ade7-DIALOG_TOP_OFFSET):_0x4aec25>=_0x23ade7?_0xa8bd0b+DIALOG_TOP_OFFSET:Math['max'](DIALOG_TOP_OFFSET,_0x3aa79d);}const _0x30c8d5=_0x446705-_0x23ade7,_0x59c573=_0x21a60d['bottom']-_0xa8bd0b-DIALOG_TOP_OFFSET,_0x2b301d=_0x446705-DIALOG_TOP_OFFSET-_0x21a60d['top'];let _0x2b3358;if(_0x59c573>=_0x23ade7)_0x2b3358=_0xa8bd0b+DIALOG_TOP_OFFSET;else{if(_0x2b301d>=_0x23ade7)_0x2b3358=_0x30c8d5-DIALOG_TOP_OFFSET;else _0x2b3358=_0x446705+_0x54972c['height']/0x2-_0x23ade7/0x2;}return _0x2b3358;}['_setupFakeVisualSelectionMarkerRemovalListener'](){const _0x3a6bcf=getEditorFromContext(this['context']);this['listenTo'](_0x3a6bcf['model']['document'],'change',()=>{if(!this['_isUpdatingMarkers']){for(const {name:_0x258ae4,data:{newRange:_0x35cf53}}of _0x3a6bcf['model']['document']['differ']['getChangedMarkers']())if(_0x258ae4['startsWith'](AI_VISUAL_SELECTION_MARKER_NAME+':')&&(_0x35cf53&&(_0x35cf53['start']['isEqual'](_0x35cf53['end'])||'$graveyard'==_0x35cf53['root']['rootName'])||null==_0x35cf53)){const _0x519054=getTranslation$i(this['context']['locale'],'AI_BALLOON_SELECTION_REMOVED_ERROR');this['_currentConfig']['mainView']['showBlockingError'](_0x519054),this['fire']('selectionRemoved');}}});}['_cleanupFakeVisualSelectionMarkerRemovalListener'](){const _0x354518=getEditorFromContext(this['context']);this['_currentConfig']['mainView']['hideError'](),this['stopListening'](_0x354518['model']['document']);}['_getSelectionElements'](){const _0x3d277e=getEditorFromContext(this['context']);return getAllMarkersDomElementsSorted(_0x3d277e['editing'],[..._0x3d277e['model']['markers']['getMarkersGroup']('ai-selection'),..._0x3d277e['model']['markers']['getMarkersGroup']('ai-balloon-selection')]);}}class AIMiniToolbarView extends ToolbarView{['copyButton'];['likeButton'];['dislikeButton'];['showChangesButton'];['_config'];constructor(_0x18d9bb,_0x5c7351={}){super(_0x18d9bb),this['set']('isEnabled',!0x0),this['set']('isShowChangesOn',!0x1),this['_config']={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x5c7351};const _0x1ecaca=!(this['_config']['showCopy']||this['_config']['showChanges']||this['_config']['showLike']||this['_config']['showDislike']||this['_config']['customView']?.['length']);this['class']=_0x1ecaca?'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'](_0x24f59d){this['showChangesButton']['isEnabled']=_0x24f59d;}['_setupRatingButtons'](){this['likeButton']=new ButtonView(this['locale']),this['likeButton']['set']({'icon':IconThumbUp,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_LIKE'),'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'),'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':_0x48f9b6,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_COPY'),'class':'ck-ai-mini-toolbar-copy-button','tooltip':!0x0}),this['copyButton']['bind']('isEnabled')['to'](this);const _0x51b240=new IconView();_0x51b240['set']({'content':_0x4fdbbd}),_0x51b240['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',setTimeout(()=>{this['copyButton']['class']='ck-ai-mini-toolbar-copy-button';},0x7d0);}),this['copyButton']['children']['add'](_0x51b240);}['_setupShowChangesButton'](){this['showChangesButton']=new ButtonView(this['locale']),this['showChangesButton']['set']({'icon':_0x3e0152,'label':getTranslation$i(this['locale'],'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':'full'==this['_config']['showChanges'],'tooltip':'full'!=this['_config']['showChanges'],'class':'ck-ai-button-tertiary'}),this['showChangesButton']['bind']('isOn')['to'](this,'isShowChangesOn'),this['showChangesButton']['bind']('isEnabled')['to'](this),this['showChangesButton']['bind']('icon')['to'](this,'isShowChangesOn',_0x2dbe8c=>_0x2dbe8c?_0x10f0e7:_0x3e0152),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(_0x4512cf,_0x42ad44){super(_0x4512cf);const _0x130ec2=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']=_0x42ad44,this['nextButtonView']=this['_createNextButtonView'](),this['previousButtonView']=this['_createPreviousButtonView'](),this['_streamableContentView']=new AISuggestionStreamableContentView(_0x4512cf),this['_partToolbarView']=new AISuggestionContentPartToolbarView(_0x4512cf,_0x42ad44['availableActions']),this['_partToolbarView']['delegate']('applySuggestion','insertSuggestion','rejectSuggestion')['to'](this),this['_togglePartToolbarButtonsVisibility'](_0x42ad44),this['_stateView']=new AISuggestionContentPartStateView(_0x4512cf),this['_stateView']['isVisible']=!0x1,this['_miniToolbarView']=new AIMiniToolbarView(_0x4512cf,{'showChanges':'full'}),this['_miniToolbarView']['bind']('isShowChangesOn')['to'](this,'showDiff'),this['_miniToolbarView']['on']('toggleShowChanges',()=>{this['fire']('toggleSuggestionDisplayMode');}),this['_toolbarContainerView']=new AIChatBalloonToolbarContainerView(_0x4512cf,[this['_partToolbarView'],this['_stateView'],this['_miniToolbarView']]),this['children']=this['createCollection']([this['_streamableContentView'],this['_toolbarContainerView']]),this['on']('change:_state',(_0x45d4a4,_0x574f92,_0x18159a,_0x5afd40)=>{let _0x46ccaf,_0x49ee77;'pending'===_0x5afd40?(_0x46ccaf=this['_partToolbarView'],_0x49ee77=this['_stateView']):(_0x46ccaf=this['_stateView'],_0x49ee77=this['_partToolbarView']),this['_stateView']['setState'](_0x18159a),_0x46ccaf['isVisible']=!0x1,_0x49ee77['isVisible']=!0x0;}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-balloon-main',_0x130ec2['to']('_state',_0x2db049=>'ck-ai-chat-balloon-main_state_'+_0x2db049)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_togglePartToolbarButtonsVisibility'](_0x42ad44);});}['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'](_0x13f95f){_0x13f95f?.['keepErrors']||this['hideError'](),await this['_streamableContentView']['update'](_0x13f95f);}['setState'](_0x3275aa){this['_state']=_0x3275aa;}['showError'](_0x388d29){super['showError'](_0x388d29),this['children']['has'](this['_errorView'])||this['children']['add'](this['_errorView'],0x0);}['hideError'](){this['_isErrorVisible']&&(super['hideError'](),this['togglePartToolbarEnabled'](!0x0));}['showBlockingError'](_0x20c956){super['showBlockingError'](_0x20c956),this['togglePartToolbarEnabled'](!0x1);}['toggleRotatorButtonsVisibility'](_0x5d7030){this['nextButtonView']['isVisible']=this['previousButtonView']['isVisible']=_0x5d7030;}['togglePartToolbarEnabled'](_0x1535f4){this['_partToolbarView']['isEnabled']=_0x1535f4;}['_togglePartToolbarButtonsVisibility']({showApplyButton:_0x3f2a60,showSuggestButton:_0xb539b9}){_0x3f2a60=_0x3f2a60&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0xb539b9=_0xb539b9&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_partToolbarView']['setButtonsVisibility']({'showApplyButton':_0x3f2a60,'showSuggestButton':_0xb539b9});}['_createNextButtonView'](){const _0x557430=new ButtonView(this['locale']);return _0x557430['set']({'icon':IconChevronDown,'label':getTranslation$i(this['locale'],'AI_BALLOON_NEXT_LABEL'),'isVisible':!0x0}),_0x557430['on']('execute',()=>{this['fire']('showNext');}),_0x557430;}['_createPreviousButtonView'](){const _0x499197=new ButtonView(this['locale']);return _0x499197['set']({'icon':IconChevronUp,'label':getTranslation$i(this['locale'],'AI_BALLOON_PREVIOUS_LABEL'),'isVisible':!0x0}),_0x499197['on']('execute',()=>{this['fire']('showPrevious');}),_0x499197;}}class AIChatBalloonToolbarContainerView extends View{constructor(_0x3fd962,_0x402ba9){super(_0x3fd962),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-balloon__toolbar-container']},'children':_0x402ba9});}}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(_0x14379b){super(_0x14379b),this['set']('showDiff',!0x1);}['open'](_0x5188bd){const _0x57e73e=this['editor'];this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),_0x57e73e['plugins']['get']('AIBalloon')['open']({..._0x5188bd,'id':'aiChatBalloon','class':'ck-ai-chat-balloon','mainView':this['_chatBalloonView']}),this['_toggleRotatorButtonsInDialogHeader'](_0x5188bd['showRotator']),this['_chatBalloonView']['togglePartToolbarEnabled'](!_0x5188bd['areActionsDisabled']),this['_restoreDefaultViewFocus']();}['close'](){this['editor']['plugins']['get']('AIBalloon')['close']();}['updateContent'](_0xc1f949){return this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),this['_chatBalloonView']['updateContent'](_0xc1f949);}['setState'](_0x591727){this['_chatBalloonView']&&this['_chatBalloonView']['setState'](_0x591727);}['_createChatBalloonView'](){const _0xbc6cfc=this['editor'],_0x4baff6=_0xbc6cfc['plugins']['get']('AIBalloon'),_0x24050a=_0xbc6cfc['commands']['get']('trackChanges');let _0x43875c=_0xbc6cfc['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];_0xbc6cfc['plugins']['has']('TrackChanges')||(_0x43875c=_0x43875c['filter'](_0xb93efd=>'insertSuggestion'!=_0xb93efd));const _0x4d686b=new AIChatBalloonView(_0xbc6cfc['locale'],{'availableActions':_0x43875c,'showApplyButton':!0x0,'showSuggestButton':!!_0x24050a});return _0x4d686b['bind']('showDiff')['to'](this),_0x4d686b['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),_0x4d686b['delegate']('showPrevious','showNext')['to'](this),_0x4baff6['delegate']('dialogClosed')['to'](this),_0x4d686b['on']('applySuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x4d686b['on']('insertSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x4d686b['on']('rejectSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x24050a&&_0x4d686b['bind']('isTrackChangesOn')['to'](_0x24050a,'value'),_0x4d686b['render'](),_0x4d686b;}['_toggleRotatorButtonsInDialogHeader'](_0x4b4489){const _0x4ec413=this['editor'],_0x1841c8=_0x4ec413['plugins']['get']('Dialog')['view']['headerView']['children'];this['_chatBalloonView']['toggleRotatorButtonsVisibility'](_0x4b4489),_0x1841c8['has'](this['_chatBalloonView']['previousButtonView'])||(_0x1841c8['addMany']([this['_chatBalloonView']['previousButtonView'],this['_chatBalloonView']['nextButtonView']],0x0),_0x4ec413['plugins']['get']('AIBalloon')['once']('beforeDialogClosed',()=>{_0x1841c8['remove'](this['_chatBalloonView']['previousButtonView']),_0x1841c8['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(_0x2427fc){const {editor:_0xad211e,action:_0x54cbc7,withText:_0x11bf16=!0x1,withIcon:_0x5640ae=!0x0,isInDropdown:_0x4e785c=!0x0,shouldPreventFocus:_0x45cd95=!0x1}=_0x2427fc;return()=>{const _0x988fe8=_0xad211e['locale'],_0x3be6e6=new ButtonView(_0x988fe8),_0x27f363=_0x3be6e6['bindTemplate'];_0x4e785c&&_0x3be6e6['extendTemplate']({'on':{'mouseenter':_0x27f363['to'](()=>{_0x45cd95&&_0x45cd95()||_0x3be6e6['focus']();})}});const _0x230254=_0x54cbc7['icon']??_0x54cbc7['parent']?.['icon'];return _0x3be6e6['set']({'label':_0x54cbc7['displayedPrompt'],'withText':_0x11bf16,'role':'menuitem','icon':_0x5640ae?_0x230254??IconAIQuickActions:void 0x0,'tooltip':!_0x11bf16,'class':'ck-ai-quick-actions-button','isEnabled':_0x54cbc7['isEnabled']}),_0x3be6e6['on']('execute',()=>{_0xad211e['editing']['view']['focus'](),_0xad211e['commands']['execute']('aiQuickAction',_0x54cbc7);}),_0x3be6e6;};}class DropdownMenuButtonWithHighlightView extends ListItemButtonView{['arrowView'];constructor(_0x5e14c5,_0x1f23a4){super(_0x5e14c5,_0x1f23a4);const _0x3b54e6=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',_0x4015dc=>String(_0x4015dc)),'data-cke-tooltip-disabled':_0x3b54e6['to']('isOn')},'on':{'mouseenter':_0x3b54e6['to']('mouseenter')}});}['render'](){super['render'](),this['children']['add'](this['arrowView']);}['_createArrowView'](){const _0x4d6ae6=new IconView();return _0x4d6ae6['content']=IconDropdownArrow,_0x4d6ae6['extendTemplate']({'attributes':{'class':'ck-dropdown-menu-list__nested-menu__button__arrow'}}),_0x4d6ae6;}}class AIQuickActionsFilteredListView extends ListView{['_allListItems'];['_allSearchableItems'];constructor(_0x87c53b,_0x128488,_0x2bce31){super(_0x87c53b),this['_allListItems']=_0x128488,this['_allSearchableItems']=_0x2bce31;}['filter'](_0xcd0e56){if(!_0xcd0e56)return this['items']['clear'](),this['items']['addMany'](this['_allListItems']),this['_clearHighlight'](),{'resultsCount':this['_allListItems']['length'],'totalItemsCount':this['_allListItems']['length']};const _0xa19c4f=_0xcd0e56['source']['toLowerCase']()['trim'](),_0x49837d=this['_allSearchableItems']['filter'](_0x4f2786=>(_0x4f2786['groupLabel']?_0x4f2786['label']+'\x20('+_0x4f2786['groupLabel']+')':_0x4f2786['label'])['toLowerCase']()['includes'](_0xa19c4f));return this['items']['clear'](),this['items']['addMany'](_0x49837d['sort']((_0x4f7454,_0x4cb680)=>{const _0x29e870=_0x4f7454['groupLabel'],_0x3e5348=_0x4cb680['groupLabel'];return _0x29e870||_0x3e5348?_0x29e870?0x1:-0x1:0x0;})['map'](_0x512a2c=>_0x512a2c['item'])),this['_highlightQuery'](_0xa19c4f,_0x49837d),{'resultsCount':_0x49837d['length'],'totalItemsCount':this['_allSearchableItems']['length']};}['_highlightQuery'](_0x253bc8,_0x18cde9){if(!_0x253bc8)return;const _0x19f1b5=new RegExp(escapeRegExp$1(_0x253bc8),'gi');_0x18cde9['forEach'](_0x3e5180=>{_0x3e5180['highlightViews']&&_0x3e5180['highlightViews']['forEach'](_0x931a6c=>{'function'==typeof _0x931a6c['highlightText']&&_0x931a6c['highlightText'](_0x19f1b5);});});}['_clearHighlight'](){this['_allSearchableItems']['forEach'](_0x138362=>{_0x138362['highlightViews']&&_0x138362['highlightViews']['forEach'](_0x1d0fdc=>{'function'==typeof _0x1d0fdc['highlightText']&&_0x1d0fdc['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(_0x3f3369,_0x3ffa42,_0x398af4,_0x3c67c7,_0x1cad8d=!0x1){const _0x2a16ba=_0x3f3369['locale'];super(_0x2a16ba),this['_bodyCollection']=_0x3c67c7,this['_hasSearch']=_0x1cad8d;const _0x3047bd=this['_createListItems'](_0x3f3369,_0x3ffa42,_0x398af4);this['optionsListView']=new AIQuickActionsFilteredListView(_0x2a16ba,_0x3047bd,this['_allSearchableItems']),this['optionsListView']['role']=UI_ROLES['MENU'],this['optionsListView']['items']['addMany'](_0x3047bd),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),_0x1cad8d&&(this['_searchTextView']=this['_createSearchTextView']()),this['_focusables']=_0x3047bd,this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes']}),_0x1cad8d&&this['_searchTextView']&&this['focusCycler']['chain'](this['_searchTextView']['focusCycler']);const _0x496a1e=_0x1cad8d&&this['_searchTextView']?[this['_searchTextView']]:[this['optionsListView']];this['children']=new ViewCollection(_0x496a1e),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions','ck-rounded-corners'],'dir':_0x2a16ba['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 _0x31f756=this['_searchTextView']['queryView']['fieldView']['element']['ownerDocument']?.['activeElement'];return this['_searchTextView']['queryView']['fieldView']['element']['contains'](_0x31f756);}['_createListItems'](_0x356d24,_0x43a488,_0x5e26b6){const _0x2f7fb2=new ViewCollection();return _0x43a488['forEach'](_0x3ce9fa=>{if('actions'in _0x3ce9fa){const {listItem:_0x2ff047}=this['_createActionGroupButton'](_0x356d24,_0x3ce9fa,_0x5e26b6);_0x2f7fb2['add'](_0x2ff047),_0x3ce9fa['actions']['forEach'](_0x22854=>{this['_createActionButton'](_0x356d24,_0x22854,_0x3ce9fa['label'],_0x3ce9fa['icon']);const {listItem:_0x272e99,highlightViews:_0x413c12}=this['_createSearchResultActionButton'](_0x356d24,_0x22854,_0x3ce9fa['label'],_0x3ce9fa['icon']);this['_allSearchableItems']['push']({'item':_0x272e99,'label':_0x22854['displayedPrompt'],'groupLabel':_0x3ce9fa['label'],'highlightViews':_0x413c12});});}else{const {listItem:_0xd8e278}=this['_createActionButton'](_0x356d24,_0x3ce9fa);_0x2f7fb2['add'](_0xd8e278);const _0x14973d=_0xd8e278['children']['first'];if(_0x14973d){const {listItem:_0x16ffab,highlightViews:_0x322b66}=this['_createSearchResultActionButton'](_0x356d24,_0x3ce9fa);this['_allSearchableItems']['push']({'item':_0x16ffab,'label':_0x14973d['label']||'','highlightViews':_0x322b66});}}}),_0x2f7fb2;}['_createActionButton'](_0x1d2b15,_0x5b4d92,_0x1ba0d6,_0x2115d9){const _0x2e3323=new ListItemView(this['locale']);if(_0x1ba0d6&&_0x2115d9){const _0xcdf5fd=new ButtonView(this['locale']),_0xfed32d=_0xcdf5fd['bindTemplate'],_0x38eede=new HighlightedTextView();_0x38eede['text']=_0x5b4d92['displayedPrompt'];const _0x176a0e=new HighlightedTextView();_0x176a0e['text']=_0x1ba0d6;const _0xffc9a8=new IconView();_0xffc9a8['content']=_0x2115d9,_0xffc9a8['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x587c8a=new View(this['locale']);_0x587c8a['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__open-paren'},'children':[{'text':'\x20('}]});const _0x25112c=new View(this['locale']);return _0x25112c['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__close-paren'},'children':[{'text':')'}]}),_0xcdf5fd['set']({'label':_0x5b4d92['displayedPrompt']+'\x20('+_0x1ba0d6+')','withText':!0x0,'role':'menuitem','class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-button_with-group','tooltip':!0x1}),_0xcdf5fd['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':[_0x38eede,_0x587c8a,_0xffc9a8,_0x176a0e,_0x25112c],'on':{'mouseenter':_0xfed32d['to'](()=>{this['_isSearchFocused']()||_0xcdf5fd['focus']();}),'click':_0xfed32d['to'](()=>{_0xcdf5fd['fire']('execute');})}}),_0xcdf5fd['on']('execute',()=>{_0x1d2b15['editing']['view']['focus'](),_0x1d2b15['commands']['execute']('aiQuickAction',_0x5b4d92);}),_0x2e3323['children']['add'](_0xcdf5fd),{'listItem':_0x2e3323,'highlightViews':[_0x38eede,_0x176a0e]};}{const _0x9e8bc5=new ButtonLabelWithHighlightView(),_0x43a682=new ButtonView(this['locale'],_0x9e8bc5),_0x45252a=_0x43a682['bindTemplate'],_0x4d5f37=_0x5b4d92['icon']??_0x5b4d92['parent']?.['icon'],_0x3ea7d1=void 0x0!==_0x5b4d92['icon'];return _0x43a682['set']({'label':_0x5b4d92['displayedPrompt'],'withText':!0x0,'role':'menuitem','icon':_0x3ea7d1?_0x4d5f37??IconAIQuickActions:void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button'}),_0x43a682['extendTemplate']({'on':{'mouseenter':_0x45252a['to'](()=>{this['_isSearchFocused']()||_0x43a682['focus']();})}}),_0x43a682['on']('execute',()=>{_0x1d2b15['editing']['view']['focus'](),_0x1d2b15['commands']['execute']('aiQuickAction',_0x5b4d92);}),_0x2e3323['children']['add'](_0x43a682),{'listItem':_0x2e3323,'highlightViews':[_0x9e8bc5]};}}['_createSearchResultActionButton'](_0x29c985,_0x313204,_0x1b9535,_0x12578c){return _0x1b9535&&_0x12578c?this['_createSearchResultGroupedActionButton'](_0x29c985,_0x313204,_0x1b9535,_0x12578c):this['_createSearchResultIndividualActionButton'](_0x29c985,_0x313204);}['_createSearchResultGroupedActionButton'](_0x2087f5,_0x2d4ef6,_0x575cc2,_0x12d1bc){const _0x2f8a31=new ListItemView(this['locale']),_0x391cc9=new ButtonView(this['locale']),_0x5ed164=_0x391cc9['bindTemplate'],{view:_0x3b9ea1,highlightView:_0x4eb0b2}=this['_createSearchResultGroupRow'](_0x575cc2,_0x12d1bc),{view:_0x190eae,highlightView:_0x147e7c}=this['_createSearchResultActionRow'](_0x2d4ef6['displayedPrompt']),_0xa56a06=this['_createSearchResultContentView'](_0x3b9ea1,_0x190eae);return _0x391cc9['set']({'label':_0x2d4ef6['displayedPrompt'],'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}),_0x391cc9['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':[_0xa56a06],'on':{'mouseenter':_0x5ed164['to'](()=>{this['_isSearchFocused']()||_0x391cc9['focus']();}),'click':_0x5ed164['to'](()=>{this['_handleSearchResultButtonClick'](_0x391cc9);})}}),this['_setupActionButtonExecution'](_0x391cc9,_0x2087f5,_0x2d4ef6),_0x2f8a31['children']['add'](_0x391cc9),{'listItem':_0x2f8a31,'highlightViews':[_0x4eb0b2,_0x147e7c]};}['_createSearchResultIndividualActionButton'](_0x5745eb,_0x1e72ad){const _0x5f4ada=new ListItemView(this['locale']),_0xf1d16c=new ButtonLabelWithHighlightView(),_0x196988=new ButtonView(this['locale'],_0xf1d16c),_0x4e7473=_0x196988['bindTemplate'];return _0x196988['set']({'label':_0x1e72ad['displayedPrompt'],'withText':!0x0,'role':'menuitem','icon':void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button'}),_0x196988['extendTemplate']({'on':{'mouseenter':_0x4e7473['to'](()=>{this['_isSearchFocused']()||_0x196988['focus']();})}}),this['_setupActionButtonExecution'](_0x196988,_0x5745eb,_0x1e72ad),_0x5f4ada['children']['add'](_0x196988),{'listItem':_0x5f4ada,'highlightViews':[_0xf1d16c]};}['_createSearchResultGroupRow'](_0x279e05,_0x155691){const _0x5a8f11=new View(this['locale']),_0x466866=new IconView();_0x466866['content']=_0x155691,_0x466866['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x3268cb=new HighlightedTextView();return _0x3268cb['text']=_0x279e05,_0x5a8f11['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__group-row'},'children':[_0x466866,_0x3268cb]}),{'view':_0x5a8f11,'highlightView':_0x3268cb};}['_createSearchResultActionRow'](_0x247183){const _0x454b08=new View(this['locale']),_0x2929d9=new HighlightedTextView();return _0x2929d9['text']=_0x247183,_0x454b08['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__action-row'},'children':[_0x2929d9]}),{'view':_0x454b08,'highlightView':_0x2929d9};}['_createSearchResultContentView'](_0x4d7e03,_0x5c8765){const _0x82935f=new View(this['locale']);return _0x82935f['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__content'},'children':[_0x4d7e03,_0x5c8765]}),_0x82935f;}['_setupActionButtonExecution'](_0x345e27,_0x354cbf,_0x3254ca){_0x345e27['on']('execute',()=>{_0x354cbf['editing']['view']['focus'](),_0x354cbf['commands']['execute']('aiQuickAction',_0x3254ca);});}['_createActionGroupButton'](_0x2c13e0,_0x37821d,_0x25449d){const _0x269c73=new ListItemView(this['locale']),_0x57ed57=new ButtonLabelWithHighlightView(),_0x5bb8e7=new DropdownMenuButtonWithHighlightView(this['locale'],_0x57ed57),_0x540cfb=_0x5bb8e7['bindTemplate'],_0x57ff1e=this['_getPanelKeystroke'](_0x25449d),_0x4ff834=this['_createGroupActionsList'](_0x2c13e0,_0x37821d['actions'],_0x25449d);_0x5bb8e7['set']({'label':_0x37821d['label'],'withText':!0x0,'role':UI_ROLES['MENU_ITEM'],'icon':_0x37821d['icon']??IconAIQuickActions,'isEnabled':_0x37821d['actions']['some'](_0x5b8593=>_0x5b8593['isEnabled'])}),_0x5bb8e7['extendTemplate']({'on':{'mouseenter':_0x540cfb['to'](()=>{this['_isSearchFocused']()||_0x5bb8e7['focus']();})}});const _0x409187=new BalloonPanelView(this['locale']);return _0x409187['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-panel','ck-dropdown-menu__nested-menu__panel']},'on':{'keydown':_0x540cfb['to'](_0x308714=>{this['_handlePanelKeydown'](_0x308714,_0x57ff1e,_0x5bb8e7,_0x409187);})}}),_0x5bb8e7['bind']('isOn')['to'](_0x409187,'isVisible'),this['_bodyCollection']['add'](_0x409187),_0x409187['content']['add'](_0x4ff834),this['_setupGroupMenuBehavior'](_0x5bb8e7,_0x409187),_0x269c73['children']['add'](_0x5bb8e7),{'listItem':_0x269c73,'highlightView':_0x57ed57};}['_createGroupActionsList'](_0x104d81,_0x5011f8,_0x2173c9){const _0x59ceed=new ListView(this['locale']);return _0x59ceed['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-list','ck-dropdown-menu-list']}}),_0x5011f8['forEach'](_0x364e76=>{const _0x3001ef=new ListItemView(this['locale']),_0x1d34a5=aiQuickActionsButtonCreator({'editor':_0x104d81,'action':_0x364e76,'withText':!0x0,'withIcon':!0x1,'isInDropdown':!0x0,'shouldPreventFocus':()=>this['_isSearchFocused']()})();_0x3001ef['children']['add'](_0x1d34a5),_0x2173c9['focusTracker']['add'](_0x1d34a5),_0x59ceed['items']['add'](_0x3001ef);}),_0x59ceed;}['_setupGroupMenuBehavior'](_0x292baa,_0x4c0864){const _0x41a6fd=_0x292baa['bindTemplate'],_0x1449dc=this['_getButtonKeystroke'](_0x292baa);_0x292baa['extendTemplate']({'attributes':{'class':['ck-ai-quick-actions-group-button']},'on':{'mouseenter':_0x41a6fd['to'](()=>{this['_showNestedPanel'](_0x4c0864,_0x292baa);}),'mouseleave':_0x41a6fd['to'](_0x546050=>{const _0x3256bc=_0x546050['relatedTarget'];this['_isMovingToNestedMenu'](_0x3256bc,_0x4c0864)||this['_hideNestedPanel'](_0x4c0864);}),'keydown':_0x41a6fd['to'](_0x3fb1fd=>{_0x3fb1fd['key']==_0x1449dc&&(this['_showNestedPanel'](_0x4c0864,_0x292baa),_0x4c0864['content']['get'](0x0)['focus']());})}}),_0x4c0864['on']('render',()=>{_0x4c0864['element']?.['addEventListener']('mouseleave',_0x2a98d4=>{const _0x1baab4=_0x2a98d4['relatedTarget'];_0x292baa['element']?.['contains'](_0x1baab4)||this['_isMovingToNestedMenu'](_0x1baab4,_0x4c0864)||this['_hideNestedPanel'](_0x4c0864);});});}['_showNestedPanel'](_0x370ce9,_0x489fee){this['_openNestedPanels']['forEach'](_0x44c423=>{_0x44c423!==_0x370ce9&&_0x44c423['isVisible']&&_0x44c423['hide']();}),_0x370ce9['show'](),_0x370ce9['pin']({'positions':[DropdownMenuPanelPositioningFunctions['eastSouth']],'target':_0x489fee['element'],'fitInViewport':!0x0}),this['_openNestedPanels']['add'](_0x370ce9);}['_hideNestedPanel'](_0x1c1694){_0x1c1694['hide'](),this['_openNestedPanels']['delete'](_0x1c1694);}['_hideAllNestedPanels'](){this['_openNestedPanels']['forEach'](_0x20f1a3=>_0x20f1a3['hide']()),this['_openNestedPanels']['clear']();}['_isMovingToNestedMenu'](_0x526898,_0x348c22){if(!_0x526898)return!0x1;if(_0x348c22['element']?.['contains'](_0x526898))return!0x0;const _0x58eb89=_0x526898;return _0x58eb89['closest']&&(null!==_0x58eb89['closest']('.ck-ai-quick-actions-group-panel')||null!==_0x58eb89['closest']('.ck-ai-quick-actions-group-list')||null!==_0x58eb89['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'](_0x1a0ad1){return'rtl'===_0x1a0ad1['locale']['uiLanguageDirection']?'ArrowRight':'ArrowLeft';}['_getButtonKeystroke'](_0x5aa4ec){return'rtl'===_0x5aa4ec['locale']['uiLanguageDirection']?'ArrowLeft':'ArrowRight';}['_handlePanelKeydown'](_0xb21f8f,_0xfc78d3,_0x160c25,_0x277235){_0xb21f8f['key']==_0xfc78d3&&(_0x160c25['focus'](),this['_hideNestedPanel'](_0x277235));}['_handleSearchResultButtonClick'](_0x265383){_0x265383['fire']('execute');}}function aiQuickActionsDropdownCreator(_0x1027c8){const {editor:_0x597e6d,content:_0x24f523,buttonDefinition:_0x5b1f20,bodyCollection:_0x1f3e7f,hasSearch:_0x11da99=!0x1}=_0x1027c8;return()=>{const _0x1da9ae=_0x597e6d['locale'],_0x33a4d4=createDropdown(_0x1da9ae);_0x33a4d4['buttonView']['set']({'icon':_0x5b1f20['icon']??IconAIQuickActions,'label':_0x5b1f20['label'],'tooltip':!0x0}),_0x33a4d4['set']({'class':'ck-ai-quick-actions-dropdown'});const _0x338441=new AIQuickActionsDropdownContentView(_0x597e6d,_0x24f523,_0x33a4d4,_0x1f3e7f,_0x11da99);if(_0x33a4d4['panelView']['children']['add'](_0x338441),_0x11da99){const _0x346b02='ai-quick-actions-dropdown-selection';_0x33a4d4['on']('change:isOpen',(_0x2ba1b6,_0x4c9e71,_0x385c67)=>{if(_0x385c67){if(_0x597e6d['plugins']['has']('AIEditing')){const _0x28a564=_0x597e6d['plugins']['get'](AIEditing),_0x47feb7=_0x597e6d['model']['document']['selection'],_0x5424c6=Array['from'](_0x47feb7['getRanges']());_0x5424c6['length']>0x0&&_0x28a564['showFakeVisualSelection'](_0x5424c6,_0x346b02,!0x1,!0x0);}}else _0x597e6d['plugins']['has']('AIEditing')&&_0x597e6d['plugins']['get'](AIEditing)['hideFakeVisualSelection'](_0x346b02),_0x338441['resetSearch']();});}return _0x33a4d4;};}const AI_QUICK_ACTIONS_EXPLAIN_PROMPT='<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\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).Avoid\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><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>',AI_QUICK_ACTIONS_SUMMARIZE_PROMPT='<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\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><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>',AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS_PROMPT='<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</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><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>';var AIQuickActionType=function(_0x1787ee){return _0x1787ee['CHAT']='CHAT',_0x1787ee['ACTION']='ACTION',_0x1787ee['REVIEW']='REVIEW',_0x1787ee;}({}),AIQuickActionTypeToPluginName=function(_0x32a8bc){return _0x32a8bc['CHAT']='AIChat',_0x32a8bc['ACTION']='AIActions',_0x32a8bc['REVIEW']='AIReviewMode',_0x32a8bc;}({});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 _0x2ddf5a=await this['_getDefaultAndCustomActions']();this['_prepareQuickActionsDefinition'](_0x2ddf5a),this['_initializeQuickActionsComponentsAndCommands']();}static['getDefaultQuickActions'](_0x5f3f20){return getDefaultQuickActions(_0x5f3f20);}async['_getDefaultAndCustomActions'](){const _0x5e8893=AIQuickActionsUI['getDefaultQuickActions'](this['editor']['locale']),_0x2c8d5d=this['editor']['config']['get']('ai.quickActions.extraCommands')||[];let _0x4f727a=[];try{_0x4f727a=await new AIModels({'connector':this['editor']['plugins']['get']('AIConnector'),'locale':this['editor']['locale']})['getAll']();}catch(_0x42ba00){const _0x2b8938=new CKEditorError('ai-quick-actions-models-unable-to-retrieve',this,{'error':_0x42ba00});logError(_0x2b8938['message']);}finally{const _0x44d0ce=_0x2c8d5d['map'](_0x523cec=>({..._0x523cec,'icon':void 0x0})),_0x1f1d0a=_0x5e8893['find'](_0x171c2b=>'other'===_0x171c2b['id']);_0x1f1d0a['actions']['push'](..._0x44d0ce),_0x5e8893['forEach'](_0x107346=>{if('actions'in _0x107346)_0x107346['actions']['forEach'](_0x661a08=>{if(_0x661a08['isEnabled']=!!_0x4f727a['find'](_0x5eae62=>_0x5eae62['id']===_0x661a08['model'])||void 0x0===_0x661a08['model'],!_0x661a08['isEnabled']){const _0xcdf9ae=new CKEditorError('ai-quick-actions-unavailable-model',this,{'actionId':_0x661a08['id'],'modelId':_0x661a08['model']});logError(_0xcdf9ae['message']);}});else{if(_0x107346['isEnabled']=!!_0x4f727a['find'](_0x2f13c0=>_0x2f13c0['id']===_0x107346['model'])||void 0x0===_0x107346['model'],!_0x107346['isEnabled']){const _0x594acd=new CKEditorError('ai-quick-actions-unavailable-model',this,{'actionId':_0x107346['id'],'modelId':_0x107346['model']});logError(_0x594acd['message']);}}});}return _0x5e8893;}['_initializeQuickActionsComponentsAndCommands'](){const _0x2b9560=new BodyCollection(this['editor']['locale']);_0x2b9560['attachToDom'](),this['_initializeQuickActionsDropdown'](_0x2b9560),this['_initializeQuickActionsMenuBar'](),this['_initializeQuickActionsComponents'](_0x2b9560);}['_initializeQuickActionsDropdown'](_0x3d0709){const _0x2a9207=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':_0x3d0709,'hasSearch':_0x2a9207}));}['_prepareQuickActionsDefinition'](_0x3078b2){this['_quickActionsDefinition']=_0x3078b2['map'](_0x433dab=>{if('actions'in _0x433dab){const _0x5e4031=_0x433dab;return{..._0x5e4031,'actions':_0x5e4031['actions']['map'](_0x1dc8a4=>{const {actions:_0xc766d6,..._0x2b2d0f}=_0x5e4031;return{..._0x1dc8a4,'parent':_0x2b2d0f};})['filter'](_0x2ec658=>this['_shouldIncludeAction'](_0x2ec658))};}return _0x433dab;})['filter'](_0x133dbe=>'actions'in _0x133dbe?_0x133dbe['actions']['length']>0x0:this['_shouldIncludeAction'](_0x133dbe));}['_shouldIncludeAction'](_0x46af72){const _0x43f855=this['editor']['config']['get']('ai.quickActions.removeCommands')||[];return this['editor']['plugins']['has'](AIQuickActionTypeToPluginName[_0x46af72['type']])&&!_0x43f855['includes'](_0x46af72['id'])&&!('CHAT'===_0x46af72['type']&&!0x1===this['editor']['config']['get']('ai.chat.context.document.enabled'));}['_initializeQuickActionsComponents'](_0x10241d){this['_quickActionsDefinition']['forEach'](_0x361e74=>{if('actions'in _0x361e74){const _0x3ddd43=aiQuickActionsDropdownCreator({'editor':this['editor'],'content':_0x361e74['actions'],'buttonDefinition':_0x361e74,'bodyCollection':_0x10241d});this['editor']['ui']['componentFactory']['add'](_0x361e74['id'],_0x3ddd43),_0x361e74['actions']['forEach'](_0x2970ad=>{const _0x4c60a8=aiQuickActionsButtonCreator({'editor':this['editor'],'action':_0x2970ad});this['editor']['ui']['componentFactory']['add'](_0x2970ad['id'],_0x4c60a8);});}else{const _0x29c553=aiQuickActionsButtonCreator({'editor':this['editor'],'action':_0x361e74,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this['editor']['ui']['componentFactory']['add'](_0x361e74['id'],_0x29c553);}});}['_initializeQuickActionsMenuBar'](){this['editor']['ui']['componentFactory']['add']('menuBar:aiQuickActions',_0x137bb7=>{const _0x2a1803=new MenuBarMenuView(_0x137bb7),_0x338fdc=getTranslation$i(_0x137bb7,'AI_QUICK_ACTIONS_HEADING');_0x2a1803['buttonView']['set']({'label':_0x338fdc,'icon':IconAIQuickActions});const _0x22dd92=new MenuBarMenuListView(_0x137bb7);_0x22dd92['set']({'ariaLabel':_0x338fdc,'role':'menu'}),this['_quickActionsDefinition']['forEach'](_0x5131b1=>{if('actions'in _0x5131b1){const _0x1f57ac=_0x5131b1,_0x2b1c61=new MenuBarMenuListItemView(_0x137bb7,_0x2a1803),_0x31f6cf=new MenuBarMenuView(_0x137bb7),_0x308d31=new MenuBarMenuListView(_0x137bb7);_0x31f6cf['buttonView']['set']({'label':_0x1f57ac['label'],'icon':_0x1f57ac['icon']}),_0x1f57ac['actions']['forEach'](_0x5b8148=>{const _0x50148f=new MenuBarMenuListItemView(_0x137bb7,_0x31f6cf),_0x1b0dfb=new MenuBarMenuListItemButtonView(_0x137bb7);_0x1b0dfb['set']({'label':_0x5b8148['displayedPrompt'],'icon':_0x5b8148['icon'],'role':'menuitem','isEnabled':_0x5b8148['isEnabled']}),_0x1b0dfb['on']('execute',()=>{this['_executeQuickAction'](_0x5b8148);}),_0x1b0dfb['delegate']('execute')['to'](_0x31f6cf),_0x50148f['children']['add'](_0x1b0dfb),_0x308d31['items']['add'](_0x50148f);}),_0x31f6cf['panelView']['children']['add'](_0x308d31),_0x2b1c61['children']['add'](_0x31f6cf),_0x22dd92['items']['add'](_0x2b1c61);}else{const _0x46208d=_0x5131b1,_0x13966f=new MenuBarMenuListItemView(_0x137bb7,_0x2a1803),_0x42ada9=new MenuBarMenuListItemButtonView(_0x137bb7);_0x42ada9['set']({'label':_0x46208d['displayedPrompt'],'icon':_0x46208d['icon'],'role':'menuitem','isEnabled':_0x46208d['isEnabled']}),_0x42ada9['on']('execute',()=>{this['_executeQuickAction'](_0x46208d);}),_0x42ada9['delegate']('execute')['to'](_0x2a1803),_0x13966f['children']['add'](_0x42ada9),_0x22dd92['items']['add'](_0x13966f);}});const _0x55af8c=Object['values'](AIQuickActionTypeToPluginName)['some'](_0x2f8219=>this['editor']['plugins']['has'](_0x2f8219));return _0x2a1803['set']({'isEnabled':_0x55af8c}),_0x2a1803['panelView']['children']['add'](_0x22dd92),_0x2a1803;});}['_executeQuickAction'](_0x1e599e){const _0x1e6d3b=this['editor'];_0x1e6d3b['editing']['view']['focus'](),_0x1e6d3b['commands']['execute']('aiQuickAction',_0x1e599e);const _0x4f5d35=_0x1e6d3b['ui']['view']['menuBarView'];_0x4f5d35&&_0x4f5d35['close']&&_0x4f5d35['close']();}}function getDefaultQuickActions(_0x1dfaa0){const _0x3f50c0=new Intl['DisplayNames'](['en'],{'type':'language'})['of'](_0x1dfaa0['uiLanguage'])||'English';return[{'id':'ask-ai','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_ASK_AI'),'type':'CHAT','icon':IconAIChatCommands},{'id':'chat-commands','label':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_CHAT_COMMANDS'),'icon':IconAIChatCommands,'actions':[{'id':'explain','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_EXPLAIN'),'prompt':AI_QUICK_ACTIONS_EXPLAIN_PROMPT['replace']('%0',_0x3f50c0),'type':'CHAT'},{'id':'summarize','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_SUMMARIZE'),'prompt':AI_QUICK_ACTIONS_SUMMARIZE_PROMPT['replace']('%0',_0x3f50c0),'type':'CHAT'},{'id':'highlight-key-points','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'),'prompt':AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS_PROMPT['replace']('%0',_0x3f50c0),'type':'CHAT'}]},{'id':'improve-writing','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_IMPROVE_WRITING'),'type':'ACTION','icon':IconAIImproveWriting},{'id':'continue','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_CONTINUE_WRITING'),'type':'ACTION','icon':IconAIContinueWriting},{'id':'fix-grammar','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING'),'type':'ACTION','icon':IconAIGrammarCheck},{'id':'adjust-length','label':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_ADJUST_LENGTH'),'icon':IconAIAdjustLength,'actions':[{'id':'make-shorter','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_MAKE_SHORTER'),'type':'ACTION'},{'id':'make-longer','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_MAKE_LONGER'),'type':'ACTION'}]},{'id':'change-tone','label':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_CHANGE_TONE'),'icon':IconAIChangeTone,'actions':[{'id':'make-tone-casual','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_MORE_CASUAL'),'type':'ACTION'},{'id':'make-tone-direct','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_MORE_DIRECT'),'type':'ACTION'},{'id':'make-tone-friendly','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_MORE_FRIENDLY'),'type':'ACTION'},{'id':'make-tone-confident','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_MORE_CONFIDENT'),'type':'ACTION'},{'id':'make-tone-professional','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_MORE_PROFESSIONAL'),'type':'ACTION'}]},{'id':'translate','label':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_TRANSLATE'),'icon':IconAITranslate,'actions':[{'id':'translate-to-english','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH'),'type':'ACTION','actionName':'translate','args':{'language':'english'}},{'id':'translate-to-chinese','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_TRANSLATE_CHINESE'),'type':'ACTION','actionName':'translate','args':{'language':'chinese'}},{'id':'translate-to-spanish','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_TRANSLATE_SPANISH'),'type':'ACTION','actionName':'translate','args':{'language':'spanish'}},{'id':'translate-to-german','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_TRANSLATE_GERMAN'),'type':'ACTION','actionName':'translate','args':{'language':'german'}},{'id':'translate-to-french','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_TRANSLATE_FRENCH'),'type':'ACTION','actionName':'translate','args':{'language':'french'}},{'id':'translate-to-japanese','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE'),'type':'ACTION','actionName':'translate','args':{'language':'japanese'}},{'id':'translate-to-portuguese','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE'),'type':'ACTION','actionName':'translate','args':{'language':'portuguese'}},{'id':'translate-to-korean','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_TRANSLATE_KOREAN'),'type':'ACTION','actionName':'translate','args':{'language':'korean'}},{'id':'translate-to-italian','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN'),'type':'ACTION','actionName':'translate','args':{'language':'italian'}},{'id':'translate-to-russian','displayedPrompt':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN'),'type':'ACTION','actionName':'translate','args':{'language':'russian'}}]},{'id':'other','label':getTranslation$i(_0x1dfaa0,'AI_QUICK_ACTIONS_OTHER'),'icon':IconAIOther,'actions':[]}];}class AIQuickActionsCommand extends Command{['execute'](_0x1b3200){switch(this['_expandSelectionIfCollapsed'](),_0x1b3200['type']){case AIQuickActionType['CHAT']:if(!this['editor']['plugins']['has']('AIChat')){const _0x242690=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIChat');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x242690});}this['_handleAIChatAction'](_0x1b3200);break;case AIQuickActionType['ACTION']:if(!this['editor']['plugins']['has']('AIActions')){const _0x340f27=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIActions');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x340f27});}this['_handleAIActionsAction'](_0x1b3200);break;case AIQuickActionType['REVIEW']:if(!this['editor']['plugins']['has']('AIReviewMode')){const _0x43687d=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIReviewMode');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x43687d});}this['_handleAIReviewAction'](_0x1b3200);}}async['_handleAIChatAction'](_0x569dce){const _0x2101b6=this['editor']['plugins']['get']('AIChat'),_0x541f55=this['editor']['plugins']['get']('AIChatController'),_0x40dfa3=this['editor']['plugins']['get']('AITabs')['view'];if(_0x40dfa3['isVisible']||(_0x40dfa3['isVisible']=!0x0),'chat'!==_0x40dfa3['activeTab']&&_0x40dfa3['activateTab']('chat'),'ask-ai'===_0x569dce['id'])_0x541f55['removeSelectionFromChatContext'](),await _0x2101b6['addSelectionToChatContext'](),_0x2101b6['focusPromptInput']();else await _0x2101b6['startConversation'](),_0x541f55['removeSelectionFromChatContext'](),await _0x2101b6['addSelectionToChatContext'](),_0x2101b6['focusPromptInput'](),await _0x2101b6['sendMessage']({'message':_0x569dce['prompt']||_0x569dce['displayedPrompt'],'attributes':{'quickActionData':{'id':_0x569dce['id']},'displayedPrompt':_0x569dce['displayedPrompt']}});}['_expandSelectionIfCollapsed'](){const _0x342e75=this['editor'],_0x1b1889=_0x342e75['model']['document']['selection'];if(!_0x1b1889['isCollapsed'])return;const _0x5dcea0=first(_0x1b1889['getSelectedBlocks']())||_0x342e75['model']['schema']['getLimitElement'](_0x1b1889);_0x342e75['model']['change'](_0xf45f80=>{_0xf45f80['setSelection'](_0x5dcea0,'in');});}['_handleAIActionsActionLabel'](_0xb42ad6){return _0xb42ad6['parent']?.['label']&&'other'!==_0xb42ad6['parent']?.['id']?_0xb42ad6['parent']['label']+':\x20'+_0xb42ad6['displayedPrompt']:_0xb42ad6['displayedPrompt'];}async['_handleAIActionsAction'](_0x565611){const _0x15bf8d=this['editor']['plugins']['get']('AIActions'),_0x2c3ee1=_0x565611['prompt']?{'userMessage':_0x565611['prompt'],'model':_0x565611['model']}:{'actionName':_0x565611['actionName']||_0x565611['id'],'args':_0x565611['args']},_0x3a00e8=this['_handleAIActionsActionLabel'](_0x565611);await _0x15bf8d['executeAction'](_0x2c3ee1,_0x3a00e8,_0x565611['icon']);}async['_handleAIReviewAction'](_0x58815e){console['log']('handleAIReviewAction',_0x58815e);}}class AIQuickActionsEditing extends Plugin{static get['pluginName'](){return'AIQuickActionsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3eb4b4=this['editor'],_0x366716=new AIQuickActionsCommand(this['editor']);if(_0x3eb4b4['commands']['add']('aiQuickAction',_0x366716),_0x3eb4b4['plugins']['has']('AIChat')){const _0x199192=this['editor']['plugins']['get']('AIChat');_0x3eb4b4['model']['document']['selection']['on']('change:range',(_0x2ab413,_0x43deab)=>{_0x43deab['directChange']&&_0x199192['removeSelectionFromChatContext']();});}}}class AIActionsReply extends AIReply{['updateChangeGroups'](){if(this['parsedMergedContent']=this['parsedContent']['cloneNode'](!0x0),0x0==this['parsedMergedContent']['childNodes']['length'])return void(this['changeGroups']=[]);const _0x3ef119=diffArrays(this['documentContextContent']['children']['map'](_0x1a8a36=>({'node':_0x1a8a36,'id':getAttribute(_0x1a8a36,'data-id')})),this['parsedMergedContent']['children']['map'](_0x431d37=>({'node':_0x431d37,'id':getAttribute(_0x431d37,'data-id')||uid()})),{'comparator':(_0x350d16,_0x54f5dd)=>_0x350d16['id']==_0x54f5dd['id'],'oneChangePerToken':!0x0});if(!this['isDone']){for(;_0x3ef119['length']&&_0x3ef119[_0x3ef119['length']-0x1]['removed'];)_0x3ef119['pop']();}const _0x4fbe86=_0x3ef119['map'](_0x29aa6d=>{const _0x2d6f01=_0x29aa6d['added']?'new':_0x29aa6d['removed']?'removed':'modified';return{'node':_0x29aa6d['value'][0x0]['node'],'type':_0x2d6f01,'id':_0x29aa6d['value'][0x0]['id']};});this['changeGroups']=[{'changes':_0x4fbe86,'state':'pending','index':0x0}];}['_getDifferentChangeGroups'](_0x38121e,_0x2fd077){return _0x2fd077;}}class AIActionsInteraction extends AIInteraction{['content'];['version'];['actionName'];['args'];['userMessage'];['model'];['hasError']=!0x1;constructor(_0x4fe5de){super(_0x4fe5de),this['content']=_0x4fe5de['content'],this['version']=_0x4fe5de['version'],this['actionName']=_0x4fe5de['actionName'],this['args']=_0x4fe5de['args'],this['userMessage']=_0x4fe5de['userMessage'],this['model']=_0x4fe5de['model'];}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':AIContextItemType['TEXT'],'content':this['content'],'version':this['version'],'label':'Current\x20document','uiId':'current-document'};}['createReply'](_0x206234){const _0x34cec7=new AIActionsReply({'editor':this['editor'],'documentContextContent':this['content'],..._0x206234});return this['replies']['push'](_0x34cec7),_0x34cec7['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0x34cec7),_0x34cec7;}}class AIActionsBalloonToolbarView extends ToolbarView{constructor(_0x30ff7e,_0x34a502=!0x0,_0x336202=!0x0){super(_0x30ff7e),this['set']('isEnabled',!0x1),_0x34a502&&(this['applyButton']=this['_createButton'](getTranslation$i(_0x30ff7e,'AI_BALLOON_APPLY_BUTTON'),'ck-ai-button-primary'),this['applyButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['applyButton'])),_0x336202&&(this['suggestButton']=this['_createButton'](getTranslation$i(_0x30ff7e,'AI_BALLOON_SUGGEST_BUTTON'),_0x34a502?'ck-ai-button-secondary':'ck-ai-button-primary'),this['suggestButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['suggestButton'])),this['setButtonsVisibility']({'showApplyButton':_0x34a502,'showSuggestButton':_0x336202}),this['extendTemplate']({'attributes':{'class':['ck-ai-balloon__toolbar']}});}['setButtonsVisibility']({showApplyButton:_0x5d9d8d,showSuggestButton:_0x2488af}){this['applyButton']&&(this['applyButton']['isVisible']=_0x5d9d8d),this['suggestButton']&&(this['suggestButton']['isVisible']=_0x2488af);}['_createButton'](_0x35a0e2,_0x20711a){const _0x2b3997=new ButtonView(this['locale']);return _0x2b3997['set']({'label':_0x35a0e2,'class':_0x20711a,'isVisible':!0x0,'withText':!0x0}),_0x2b3997;}}class AIActionsBalloonDisclaimerView extends View{constructor(_0x26d5f1){super(_0x26d5f1),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(_0x26d5f1,'AI_DISCLAIMER_TEXT')}]}]});}}class AISuggestionLoaderView extends View{constructor(_0x354e4f){super(_0x354e4f),this['set']('isVisible',!0x0);const _0x4b469a=new AISpinnerView('small');_0x4b469a['isVisible']=!0x0;const _0x4aa972=new View(this['locale']);_0x4aa972['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',_0x52f0b0=>!_0x52f0b0)]},'children':[_0x4b469a,_0x4aa972]});}}class AIActionsBalloonView extends AIBalloonView{['focusCycler'];['_config'];['_contentWrapper'];['_streamableContentView'];['_toolbarView'];['_miniToolbarView'];['_loaderView'];['_disclaimerView'];['_focusTracker'];['_keystrokes'];['_dialogContent'];['_focusables'];['_scrollManager'];['_navigationPreviousButton'];['_navigationNextButton'];['_navigationTryAgainButton'];['_navigationCounter'];constructor(_0x5149ed,_0x5636f1){super(_0x5149ed),this['set']('isBusy',!0x1),this['set']('isTrackChangesOn',!0x1),this['set']('_isLoading',!0x1),this['set']('_hasError',!0x1),this['_config']=_0x5636f1,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'](_0x5636f1),this['_addDisclaimerView'](),this['_addToolbar'](_0x5636f1),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'](_0x5636f1);});}['render'](){super['render']();for(const _0x4b72ac of this['_focusables'])this['_focusTracker']['add'](_0x4b72ac['element']);this['_keystrokes']['listenTo'](this['element']),this['_initializeScrollManager']();}['destroy'](){super['destroy'](),this['_scrollManager']&&this['_scrollManager']['destroy']();}['focus'](_0x4a11ed){-0x1===_0x4a11ed?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['setIsLoading'](_0x1613f1){this['_isLoading']=_0x1613f1;}['setErrorState'](){this['_hasError']=!0x0,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x1);}['clearErrorState'](){this['_hasError']=!0x1,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x0);}['showError'](_0x28391f){super['showError'](_0x28391f),this['_dialogContent']['has'](this['_errorView'])||this['_dialogContent']['add'](this['_errorView'],0x0);}['hideError'](){super['hideError'](),this['clearErrorState']();}['showBlockingError'](_0x50dd53){super['showBlockingError'](_0x50dd53),this['setErrorState']();}['addMiniToolbarItem'](_0xf89e17){this['_miniToolbarView']['items']['has'](_0xf89e17)||this['_miniToolbarView']['items']['add'](_0xf89e17);}['removeMiniToolbarItem'](_0x36003){this['_miniToolbarView']['items']['has'](_0x36003)&&this['_miniToolbarView']['items']['remove'](_0x36003);}['showLoader'](){this['_loaderView']&&(this['_isLoading']=!0x0);}['hideLoader'](){this['_loaderView']&&(this['_isLoading']=!0x1);}['_toggleToolbarButtonsVisibility']({showApplyButton:_0x3d84df,showSuggestButton:_0x398f98}){_0x3d84df=_0x3d84df&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0x398f98=_0x398f98&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_toolbarView']['setButtonsVisibility']({'showApplyButton':_0x3d84df,'showSuggestButton':_0x398f98});}async['updateContent'](_0x49c961){await this['_streamableContentView']['update'](_0x49c961);}['clearContent'](){this['_streamableContentView']['clear']();}['_addContentWrapper'](_0x3b39de){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'](_0x3b39de['miniToolbarConfig'])]}),this['_dialogContent']['add'](this['_contentWrapper']);}['_addDisclaimerView'](){this['_disclaimerView']=new AIActionsBalloonDisclaimerView(this['locale']),this['_dialogContent']['add'](this['_disclaimerView']);}['_addToolbar']({showApplyButton:_0x15ac26,showSuggestButton:_0x5ea6d4}){this['_toolbarView']=new AIActionsBalloonToolbarView(this['locale'],_0x15ac26,_0x5ea6d4),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',(_0x5cb999,_0xe8f7e,_0x59e626)=>!(_0x5cb999||_0xe8f7e||_0x59e626)),this['_toggleToolbarButtonsVisibility']({'showApplyButton':_0x15ac26,'showSuggestButton':_0x5ea6d4}),this['_dialogContent']['add'](this['_toolbarView']);}['_createMiniToolbar'](_0x47ba99){return this['_miniToolbarView']=new AIMiniToolbarView(this['locale'],_0x47ba99),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',(_0x1b98b9,_0x4c624e)=>!(_0x1b98b9||_0x4c624e)),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 _0x42a91f=new ButtonView(this['locale']),_0x20401f=new ButtonView(this['locale']),_0x4a85d2=new AIActionsBalloonNavigationCounterView(this['locale']),_0x3e9c76=new ButtonView(this['locale']);_0x42a91f['set']({'icon':IconRefresh,'label':getTranslation$i(this['locale'],'AI_ACTIONS_TRY_AGAIN'),'tooltip':!0x0,'class':'ck-ai-custom-action-button'}),_0x20401f['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['locale'],'AI_ACTIONS_PREVIOUS_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-previous-button'}),_0x3e9c76['set']({'icon':IconNextArrow,'tooltip':getTranslation$i(this['locale'],'AI_ACTIONS_NEXT_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-next-button'}),_0x42a91f['bind']('isEnabled')['to'](this,'isBusy',_0x39ca0f=>!_0x39ca0f),_0x42a91f['on']('execute',()=>{this['fire']('tryAgain');}),_0x20401f['bind']('isEnabled')['to'](this,'isBusy',_0x5338dd=>!_0x5338dd),_0x20401f['on']('execute',()=>{this['fire']('showPrevious');}),_0x3e9c76['bind']('isEnabled')['to'](this,'isBusy',_0x476aca=>!_0x476aca),_0x3e9c76['on']('execute',()=>{this['fire']('showNext');}),this['_navigationPreviousButton']=_0x20401f,this['_navigationCounter']=_0x4a85d2,this['_navigationNextButton']=_0x3e9c76,this['_navigationTryAgainButton']=_0x42a91f;}['updateMiniToolbarButtons'](_0x4d9e22,_0x40dc0b){this['_navigationPreviousButton']||this['_setupMiniToolbarButtons']();const _0xfe4ec5=_0x4d9e22>0x1;if(this['addMiniToolbarItem'](this['_navigationTryAgainButton']),_0xfe4ec5){this['addMiniToolbarItem'](this['_navigationPreviousButton']),this['addMiniToolbarItem'](this['_navigationCounter']),this['addMiniToolbarItem'](this['_navigationNextButton']);const _0x893e01=_0x4d9e22-_0x40dc0b;this['_navigationCounter']['setInteractionCount'](_0x893e01+'/'+_0x4d9e22),this['_navigationPreviousButton']['isEnabled']=_0x40dc0b<_0x4d9e22-0x1,this['_navigationNextButton']['isEnabled']=_0x40dc0b>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'](_0x868d53){this['_isLoading']=_0x868d53;}['resetShowChangesButton'](){this['_miniToolbarView']['isShowChangesOn']=!0x1;}['_initializeScrollManager'](){const _0x15b3c9=this['_getScrollableElement']();_0x15b3c9&&!this['_scrollManager']&&(this['_scrollManager']=new ScrollManager(_0x15b3c9));}['_getScrollableElement'](){return this['_streamableContentView']['element'];}}class AIActionsBalloonNavigationCounterView extends View{constructor(_0x197614){super(_0x197614);const _0x174013=this['bindTemplate'];this['set']('interactionCount','1/1'),this['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-interaction-counter']},'children':[{'text':_0x174013['to']('interactionCount')}]});}['setInteractionCount'](_0x1d09e0){this['set']('interactionCount',_0x1d09e0);}}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(_0x536183){super(_0x536183),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'](_0x1e1c3f,_0x6d9411,_0x4fa1ff){if(this['_stopInteraction'](),this['editor']['plugins']['has']('TableSelection')){if(this['editor']['plugins']['get']('TableSelection')['getSelectedTableCells']()){const {modelFragment:_0x14ea4a,anchorData:_0x15bdee}=this['_getExecuteDataInTable']();return this['_executeAction'](_0x1e1c3f,_0x14ea4a,_0x15bdee,_0x6d9411,_0x4fa1ff);}}const {modelFragment:_0x57fcf7,anchorData:_0xc68141}=this['_getExecuteDataRegular']();return this['_executeAction'](_0x1e1c3f,_0x57fcf7,_0xc68141,_0x6d9411,_0x4fa1ff);}async['destroy'](){return this['_stopInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['_createActionsBalloonView'](){const _0x1ae0bc=this['editor']['plugins']['has']('TrackChanges');let _0x1a464f=this['editor']['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];_0x1ae0bc||(_0x1a464f=_0x1a464f['filter'](_0x5f1c1a=>'insertSuggestion'!=_0x5f1c1a));const _0x204285=this['editor']['commands']['get']('trackChanges'),_0xfd57a0=new AIActionsBalloonView(this['editor']['locale'],{'showApplyButton':!0x0,'showSuggestButton':_0x1ae0bc,'miniToolbarConfig':{'showChanges':'icon'},'availableActions':_0x1a464f});return _0xfd57a0['bind']('isBusy')['to'](this),_0x204285&&_0xfd57a0['bind']('isTrackChangesOn')['to'](_0x204285,'value'),_0xfd57a0['on']('tryAgain',()=>{this['_refreshInteraction']();}),_0xfd57a0['on']('showPrevious',()=>{this['_navigateToPrevious']();}),_0xfd57a0['on']('showNext',()=>{this['_navigateToNext']();}),_0xfd57a0;}['_getExecuteDataRegular'](){const _0x4e7940=this['editor']['model']['document']['selection'];if(_0x4e7940['isCollapsed']){const _0x32c040=first(_0x4e7940['getSelectedBlocks']())||this['editor']['model']['schema']['getLimitElement'](_0x4e7940);this['editor']['model']['change'](_0x42c826=>{_0x42c826['setSelection'](_0x32c040,'in');});}const _0x481aee=_0x4e7940['getFirstRange'](),_0x266a4e=this['_wrapWithCommonAncestors'](this['editor']['model']['getSelectedContent'](_0x4e7940),_0x481aee['start'],_0x481aee['end']);this['_copyMarkersToFragment'](_0x266a4e,_0x4e7940,{'isTableSelection':!0x1});const _0x1eca38=_0x4e7940['getFirstRange']()['start'],_0xaff74d=new Map();let _0x3d8d67=_0x266a4e;for(let _0x4c983e=0x0;_0x4c983e<_0x1eca38['path']['length'];_0x4c983e++)_0xaff74d['set'](_0x3d8d67,_0x1eca38['path'][_0x4c983e]),_0x3d8d67=_0x3d8d67['getChild'](0x0);return{'modelFragment':_0x266a4e,'anchorData':_0xaff74d};}['_getExecuteDataInTable'](){const _0x337e3c=this['editor']['model']['document']['selection'],_0xeb6cb0=this['editor']['plugins']['get']('TableSelection')['getSelectionAsFragment'](),_0x5ad1f4=_0x337e3c['getFirstRange']()['start']['parent']['parent'],_0x25bafb=this['editor']['model']['createRange'](this['editor']['model']['createPositionBefore'](_0x5ad1f4),this['editor']['model']['createPositionAfter'](_0x5ad1f4)),_0x203d3d=this['_wrapWithCommonAncestors'](_0xeb6cb0,_0x25bafb['start'],_0x25bafb['end']);this['_copyMarkersToFragment'](_0x203d3d,_0x337e3c,{'isTableSelection':!0x0});const _0xef2efd=_0x337e3c['getFirstRange']()['start'],_0x461096=new Map();let _0x48f93a=_0x203d3d;for(let _0x464607=0x0;_0x464607<_0xef2efd['path']['length'];_0x464607++)if(_0x461096['set'](_0x48f93a,_0xef2efd['path'][_0x464607]),_0x464607<_0xef2efd['path']['length']-0x1)_0x48f93a=_0x48f93a['getChild'](0x0);else{let _0xb303b6=_0x48f93a['nextSibling'];for(;_0xb303b6;)_0x461096['set'](_0xb303b6,_0xef2efd['path'][_0x464607]),_0xb303b6=_0xb303b6['nextSibling'];}return{'modelFragment':_0x203d3d,'anchorData':_0x461096};}async['_executeAction'](_0xaa5f06,_0x226f56,_0x43ef2e,_0x37fac4,_0x40fb42){const _0x236379=this['editor']['plugins']['get'](AIEditing),_0x1129da=this['editor']['plugins']['get'](AIBalloon),_0x42884b=this['editor']['model']['document']['selection'],_0x4f4265=await _0x236379['modelToDataWithIds'](_0x226f56),_0x182eb4=this['editor']['model']['document']['version'],_0x5b71a1=[..._0x42884b['getRanges']()];return this['_actionsBalloonView']||(this['_actionsBalloonView']=this['_createActionsBalloonView']()),this['_clearInteractionHistory'](),this['_clearErrorState'](),this['_actionsBalloonView']['clearContent'](),_0x1129da['open']({'index':0x3e8*Math['random']()%0x3e8,'title':_0x37fac4,'icon':_0x40fb42||IconAIQuickActions,'mainView':this['_actionsBalloonView'],'class':'ck-ai-actions-balloon','ranges':_0x5b71a1,'id':'aiActionsBalloon'}),this['_setLoadingState'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x1129da),this['_interactionParams']={'action':_0xaa5f06,'content':_0x4f4265,'version':_0x182eb4,'aiBalloon':_0x1129da,'modelFragment':_0x226f56,'anchorData':_0x43ef2e},this['_setupApplyListeners'](),this['listenTo'](_0x1129da,'selectionRemoved',()=>{this['_stopInteraction'](),this['_actionsBalloonView']['disableMiniToolbarButtons']();}),this['listenTo'](_0x1129da,'dialogClosed',(_0x581afd,{id:_0xf024b5})=>{if('aiActionsBalloon'===_0xf024b5){if(this['_interaction']&&this['_interaction']['replies']['length']>0x0){const _0x46bb8c=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1],_0x449b78=_0x46bb8c['changeGroups'][0x0];_0x449b78&&'pending'===_0x449b78['state']&&_0x46bb8c['setChangeGroupState'](0x0,'rejected');}this['_stopInteraction'](),this['_clearInteractionHistory'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x1129da);}}),this['_createInteraction'](_0x4f4265,_0x182eb4,_0x1129da,_0xaa5f06);}['_setupApplyListeners'](){if(!this['_interactionParams'])return;const {modelFragment:_0x335556,anchorData:_0x3ea16e}=this['_interactionParams'];this['listenTo'](this['_actionsBalloonView'],'applySuggestion',()=>{this['_applyChanges'](_0x335556,_0x3ea16e,!0x1);}),this['listenTo'](this['_actionsBalloonView'],'insertSuggestion',()=>{this['_applyChanges'](_0x335556,_0x3ea16e,!0x0);});}['_wrapWithCommonAncestors'](_0x19fff1,_0x1611af,_0x3aaa09){const _0x5a48d9=this['editor']['model']['createRange'](_0x1611af,_0x3aaa09)['getCommonAncestor'](),_0x230447=_0x5a48d9['is']('documentFragment')?[]:_0x5a48d9['getAncestors']({'includeSelf':!0x0})['slice'](0x1);if(_0x230447['length']){const _0x4164d3=_0x230447['map'](_0x16a139=>_0x16a139['_clone'](!0x1));for(let _0x445f37=0x1;_0x445f37<_0x4164d3['length'];_0x445f37++)_0x4164d3[_0x445f37-0x1]['_appendChild'](_0x4164d3[_0x445f37]);return _0x4164d3[_0x4164d3['length']-0x1]['_appendChild'](_0x19fff1),new ModelDocumentFragment(_0x4164d3[0x0]);}return _0x19fff1;}['_copyMarkersToFragment'](_0x4ada31,_0x215c9b,_0x369250={'isTableSelection':!0x1}){const _0x81867f=this['editor']['model'],_0x3d328f=Array['from'](_0x215c9b['getRanges']()),_0x57e430=_0x215c9b['getFirstRange']()['start'];for(const _0x27f81b of _0x81867f['markers']){if(_0x27f81b['name']['startsWith'](AI_VISUAL_SELECTION_MARKER_NAME)||!_0x27f81b['affectsData'])continue;const _0x4973f3=_0x27f81b['getRange']();if(!_0x3d328f['some'](_0x4f8bba=>_0x4f8bba['containsRange'](_0x4973f3,!0x0)))continue;const _0x396a71=this['_regularCalculateMarkerPath'](_0x4973f3['start'],_0x57e430,_0x369250['isTableSelection']),_0x3363e1=this['_regularCalculateMarkerPath'](_0x4973f3['end'],_0x57e430,_0x369250['isTableSelection']),_0x5e4be3=_0x81867f['createPositionFromPath'](_0x4ada31,_0x396a71),_0x26a9c7=_0x81867f['createPositionFromPath'](_0x4ada31,_0x3363e1);if(!_0x5e4be3['isEqual'](_0x26a9c7)){const _0x232c89=_0x81867f['createRange'](_0x5e4be3,_0x26a9c7);_0x4ada31['markers']['set'](_0x27f81b['name'],_0x232c89);}}}['_regularCalculateMarkerPath'](_0x565a77,_0x537f1c,_0x1c8d69=!0x1){const _0x7cdb99=[..._0x565a77['path']['slice']()];for(let _0x1277a8=0x0;_0x1277a8<Math['max'](_0x537f1c['path']['length'],_0x565a77['path']['length']);_0x1277a8++){const _0x467e62=_0x537f1c['path'][_0x1277a8]||0x0,_0x2d4ca2=(_0x565a77['path'][_0x1277a8]||0x0)-_0x467e62;if(_0x7cdb99[_0x1277a8]=_0x2d4ca2,0x0!==_0x2d4ca2&&!_0x1c8d69)break;}return _0x7cdb99;}async['_createInteraction'](_0x254437,_0x5c593e,_0x435872,_0x57e0e6){const _0xa636e9=this['editor'];this['_interactionParams']||(this['_interactionParams']={'action':_0x57e0e6,'content':_0x254437,'version':_0x5c593e,'aiBalloon':_0x435872,'modelFragment':this['editor']['model']['getSelectedContent'](this['editor']['model']['document']['selection']),'anchorData':new Map()});const _0x5cb8aa=new AIActionsInteraction({'connector':this['_aiConnector'],'editor':_0xa636e9,'content':_0x254437,'version':_0x5c593e,..._0x57e0e6});this['_interactions']['push'](_0x5cb8aa);const _0x50dd64=(_0x31f4ba,_0x346c80=!0x1,_0x347dc9='streaming')=>this['_promiseQueue']['enqueue'](async _0x27a47e=>{try{const _0x2e0f3b=getSuggestionPartsFromReply({'editor':_0xa636e9,'changeGroups':_0x31f4ba['changeGroups'],'documentContextContent':_0x31f4ba['documentContextContent'],'showDiff':_0x346c80,'trimUnchanged':!0x1});_0x2e0f3b['length']&&await this['_actionsBalloonView']['updateContent']({'part':_0x2e0f3b[0x0],'renderingStrategy':_0x347dc9,'abortSignal':_0x27a47e});}catch(_0x81491){if(this['_isAbortError'](_0x81491))return;throw _0x81491;}});this['_interaction']['on']('replyCreated',(_0x352d5f,_0x50be5e)=>{this['_actionsBalloonView']['hideLoader'](),this['_actionsBalloonView']['startAutoScroll'](),_0x50dd64(_0x50be5e)['catch'](_0x2fdddf=>{this['_isAbortError'](_0x2fdddf)||(console['error']('Error\x20updating\x20content\x20in\x20replyCreated:',_0x2fdddf),this['_setErrorState'](_0x5cb8aa));});}),this['_interaction']['on']('replyContentUpdated',(_0x117b44,_0x2c9104)=>{_0x50dd64(_0x2c9104)['catch'](_0x42d8a5=>{this['_isAbortError'](_0x42d8a5)||(console['error']('Error\x20updating\x20content\x20in\x20replyContentUpdated:',_0x42d8a5),this['_setErrorState'](_0x5cb8aa));});}),this['_interaction']['on']('interactionFinished',async()=>{try{await this['_clearLoadingState'](),this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),await this['_promiseQueue']['queueEmptyPromise'];}catch(_0x4c5825){this['_isAbortError'](_0x4c5825)||(console['error']('Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:',_0x4c5825),this['_setErrorState'](_0x5cb8aa));}finally{this['_actionsBalloonView']['stopAutoScroll']();}}),this['listenTo'](this['_actionsBalloonView'],'toggleSuggestionDisplayMode',async(_0x19c267,{showDiff:_0x43e7a2})=>{try{this['_balloonShowDiff']=_0x43e7a2;const _0x208d8b=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1];_0x208d8b&&await _0x50dd64(_0x208d8b,_0x43e7a2,'static');}catch(_0xc51a9f){this['_isAbortError'](_0xc51a9f)||(console['error']('Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:',_0xc51a9f),this['_setErrorState'](_0x5cb8aa));}}),this['_interaction']['on']('replyChangeGroupStateUpdated',(_0x29013f,{reply:_0xd48ba2})=>{const _0x2861ff={'positiveCount':_0xd48ba2['changeGroups']['filter'](_0x15025f=>'accepted'===_0x15025f['state'])['length'],'totalCount':_0xd48ba2['changeGroups']['length']},_0x17789b=this['_interaction']['actionCallId'],_0x59c008=this['_interaction']['actionName'];_0x59c008?this['_aiConnector']['upsertAIActionRating'](_0x59c008,_0x17789b,_0x2861ff):this['_aiConnector']['upsertCustomAIActionRating'](_0x17789b,_0x2861ff);}),this['_setLoadingState']();try{const _0x546bdd=await this['_interaction']['start']();return this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),_0x546bdd;}catch(_0x522db5){if(this['_isAbortError'](_0x522db5))return;this['_actionsBalloonView']['hideLoader'](),this['_setErrorState'](_0x5cb8aa);}}['_applyChanges'](_0x4c8a3f,_0x53d5b,_0x24857b){const _0x5932c7=this['editor'];if(_0x24857b&&!_0x5932c7['plugins']['has']('TrackChanges'))throw new CKEditorError('ai-no-track-changes',null);const _0x2c77c7=this['editor']['plugins']['get'](DocumentCompare),_0x4c87e3=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x4c87e3||!_0x4c87e3['replies']['length'])return;const _0x27ac9f=_0x4c87e3['replies'][_0x4c87e3['replies']['length']-0x1],_0x4731e2=_0x27ac9f['changeGroups'];_0x27ac9f['setChangeGroupState'](0x0,'accepted');let _0x17d9e5=getOperationsFromReply({'editor':_0x5932c7,'reply':_0x27ac9f,'interaction':_0x4c87e3,'groups':_0x4731e2,'transform':!0x1,'documentCompare':_0x2c77c7,'documentCompareOptions':{'anchor':_0x5932c7['model']['createPositionAt'](_0x4c8a3f,0x0),'markDeletions':_0x24857b}});_0x17d9e5=this['_filterOperationsOutsideRange'](_0x17d9e5,_0x53d5b);for(const _0x467aa4 of _0x17d9e5)this['_anchorOperation'](_0x53d5b,_0x467aa4,_0x5932c7['model']['document']['getRoot']());const _0x26431f=_0x4c87e3['getDocumentContext']()['version'],_0x51d757=_0x5932c7['model']['document']['history']['getOperations'](_0x26431f),_0x58e015={'document':_0x5932c7['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0xb2268b=transformOperationSets(_0x17d9e5,_0x51d757,_0x58e015)['operationsA'];_0x5932c7['model']['change'](_0x567358=>{if(_0x567358['setSelection'](_0x5932c7['model']['document']['selection']['focus']),_0x24857b)_0x5932c7['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0xb2268b);else{for(const _0xc20493 of _0xb2268b)_0xc20493['baseVersion']=_0x5932c7['model']['document']['version'],fixMarkerOperationOldRange(_0x5932c7,_0xc20493),_0x567358['batch']['addOperation'](_0xc20493),_0x5932c7['model']['applyOperation'](_0xc20493);}}),this['editor']['plugins']['get']('AIBalloon')['close']();}['_filterOperationsOutsideRange'](_0x437518,_0x3c26ec){return _0x437518['filter'](_0xb8a49=>{if('rename'==_0xb8a49['type']){const _0x10d306=_0xb8a49['position']['nodeAfter'];return!_0x3c26ec['has'](_0x10d306);}if(_0xb8a49['type']['indexOf']('Attribute')>-0x1){const _0x1ac3aa=_0xb8a49['range']['start']['nodeAfter'];return!_0x3c26ec['has'](_0x1ac3aa);}return!0x0;});}['_anchorOperation'](_0x14191c,_0x4cf7a0,_0x2995f8){const _0x384252=_0x4cf7a0['clone']();for(const _0x3607e8 in _0x4cf7a0){const _0x28b475=_0x4cf7a0[_0x3607e8];_0x28b475 instanceof ModelRange?_0x4cf7a0[_0x3607e8]=new ModelRange(_0x4d432d(_0x28b475['start']),_0x4d432d(_0x28b475['end'])):_0x28b475 instanceof ModelPosition&&(_0x4cf7a0[_0x3607e8]=_0x4d432d(_0x28b475));}if(['insert','move','remove','reinsert','split','merge']['includes'](_0x384252['type'])){if(_0x384252['isDocumentOperation']=!0x1,_0x384252['baseVersion']=null,'remove'==_0x384252['type']){const _0x37d4ad=_0x384252['sourcePosition'],_0x21d785=_0x384252['howMany'];new _DetachOperation(_0x37d4ad,_0x21d785)['_execute']();}else _0x384252['_execute']();}function _0x4d432d(_0x4489b5){if('$graveyard'==_0x4489b5['root']['rootName'])return _0x4489b5;const _0x4534cc=[];let _0x24d4da=_0x4489b5['root'];for(let _0x332525=0x0;_0x332525<_0x4489b5['path']['length'];_0x332525++){const _0x5d5e31=_0x14191c['get'](_0x24d4da)||0x0;_0x4534cc[_0x332525]=_0x4489b5['path'][_0x332525]+_0x5d5e31,_0x24d4da=_0x24d4da['getChildAtOffset'](_0x4489b5['path'][_0x332525]);}return new ModelPosition(_0x2995f8,_0x4534cc,_0x4489b5['stickiness']);}}['_refreshInteraction'](){if(!this['_interactionParams'])return;this['_interactions']['length']>0x0&&this['_stopInteraction'](),this['_currentInteractionIndex']=0x0,this['_balloonShowDiff']=!0x1;const {action:_0x3b8632,content:_0x2e19f4,version:_0x263aa6,aiBalloon:_0x3eef8c}=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'](_0x2e19f4,_0x263aa6,_0x3eef8c,_0x3b8632)['catch'](_0x1c48c2=>{this['_isAbortError'](_0x1c48c2)||console['error']('Error\x20refreshing\x20interaction:',_0x1c48c2);});}['_isAbortError'](_0xcbb42b){return!!_0xcbb42b['message']&&_0xcbb42b['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 _0x2e8e5e=this['_interactions']['length'];this['_currentInteractionIndex']<_0x2e8e5e-0x1&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']+0x1);}['_navigateToNext'](){this['_currentInteractionIndex']>0x0&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']-0x1);}async['_displayInteractionAtIndex'](_0x3bae66){if(!this['_interactionParams'])return;this['_currentInteractionIndex']=_0x3bae66;const _0x456b42=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x456b42)return;if(_0x456b42['hasError'])return this['_setErrorState'](_0x456b42),void this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);if(!_0x456b42['replies']['length'])return;this['_actionsBalloonView']['hideError'](),this['_interactionParams']&&this['_clearErrorState']();const _0x277e34=_0x456b42['replies'][_0x456b42['replies']['length']-0x1];if(_0x277e34){const _0x2963b0=this['editor'];try{const _0x382ecb=getSuggestionPartsFromReply({'editor':_0x2963b0,'changeGroups':_0x277e34['changeGroups'],'documentContextContent':_0x277e34['documentContextContent'],'showDiff':this['_balloonShowDiff'],'trimUnchanged':!0x1});await new Promise(_0x16cd86=>setTimeout(_0x16cd86,0x32)),await this['_actionsBalloonView']['updateContent']({'part':_0x382ecb[0x0],'renderingStrategy':'static','abortSignal':new AbortController()['signal']});}catch(_0x50b6ee){this['_isAbortError'](_0x50b6ee)||console['error']('Error\x20updating\x20content\x20during\x20navigation:',_0x50b6ee);}}this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);}['_setLoadingState'](){this['_actionsBalloonView']['setIsLoading'](!0x0),this['isBusy']=!0x0;}async['_setErrorState'](_0x367fea){const _0x19a1e1=getTranslation$i(this['editor']['locale'],'AI_ACTIONS_GENERIC_ERROR');this['_actionsBalloonView']['showError'](_0x19a1e1),_0x367fea['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(_0x2700ad){super(_0x2700ad),_0x2700ad['config']['define']('ai.quickActions',{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}class AIReviewCoreReviewCheckListItemResultsView extends View{['resultResponseView'];['acceptButtonView'];['dismissButtonView'];['infoButtonView'];['outdatedButtonView'];constructor(_0x5bf09e,_0x440405){super(_0x5bf09e),this['id']=_0x440405,this['set']('status','pending'),this['set']('changeId',_0x440405),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',(_0x3f6d1f,_0x340445)=>{_0x340445&&_0x340445['target']&&'A'===_0x340445['target']['tagName']&&_0x340445['preventDefault'](),this['fire']('activateChange',{'id':_0x440405,'source':this,'uiInteraction':'click'});}),this['on']('mouseover',()=>{this['fire']('activateChange',{'id':_0x440405,'source':this,'uiInteraction':'hover'});}),this['on']('mouseout',()=>{this['fire']('deactivateChange',{'origin':'panel','id':_0x440405,'source':this});});}['setItemAsActive'](){this['isActive']=!0x0;}['setItemAsInactive'](){this['isActive']=!0x1;}['_createResultResponseView'](){const _0x2d1913=new View(this['locale']);return _0x2d1913['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',_0x48528f=>!_0x48528f)]}}),_0x2d1913;}['_createAcceptButtonView'](){const _0x17cc86=new ButtonView(this['locale']);return _0x17cc86['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_CHANGE'),'withText':!0x0}),_0x17cc86['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x91f47a=>{this['fire']('acceptChange',{'id':this['changeId']}),_0x91f47a['stopPropagation']();})},'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-result-accept-button',this['bindTemplate']['if']('status','ck-hidden',_0x19c303=>'pending'!==_0x19c303&&'accepted'!==_0x19c303),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-accept-button',_0x1c5972=>'pending'===_0x1c5972),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0x583c31=>'accepted'===_0x583c31)]}}),this['on']('change:status',(_0x41168e,_0xe15889,_0x12b545)=>{_0x17cc86['isEnabled']='pending'===_0x12b545,'accepted'===_0x12b545&&(_0x17cc86['label']=getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED'),_0x17cc86['icon']=IconCheck);}),_0x17cc86;}['_createDismissButtonView'](){const _0x5578e6=new ButtonView(this['locale']);return _0x5578e6['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_DISMISS_CHANGE'),'withText':!0x0}),_0x5578e6['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x16ebb8=>{this['fire']('dismissChange',{'id':this['changeId']}),_0x16ebb8['stopPropagation']();})},'attributes':{'class':['ck-ai-button-tertiary',this['bindTemplate']['if']('status','ck-hidden',_0x1ba91d=>'pending'!==_0x1ba91d&&'rejected'!==_0x1ba91d),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-dismiss-button',_0x378a97=>'pending'===_0x378a97),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0x28ce0d=>'rejected'===_0x28ce0d)]}}),this['on']('change:status',(_0x14560d,_0x419e1d,_0x4552e5)=>{_0x5578e6['isEnabled']='pending'===_0x4552e5,'rejected'===_0x4552e5&&(_0x5578e6['label']=getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_REJECTED'),_0x5578e6['icon']=IconCancel);}),_0x5578e6;}['_createInfoButtonView'](){const _0x203f34=new ButtonView(this['locale']);return _0x203f34['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_LEARN_MORE'),'icon':IconInfo,'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox','class':'ck-ai-button-tertiary\x20ck-ai_review__check-run-result-info-button\x20ck-hidden'}),_0x203f34['bind']('isOn')['to'](this,'isInfoToggleOn',_0x329ceb=>_0x329ceb),_0x203f34['on']('execute',()=>{this['isInfoToggleOn']=!this['isInfoToggleOn'];}),_0x203f34;}['_createOutdatedButtonView'](){const _0x826eb3=new ButtonView(this['locale']);return _0x826eb3['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED'),'icon':IconOutdated,'withText':!0x0,'isEnabled':!0x1}),_0x826eb3['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-result-status-button',this['bindTemplate']['if']('status','ck-hidden',_0x301b1b=>'outdated'!==_0x301b1b)],'disabled':'disabled'}}),_0x826eb3;}}class AIReviewCoreBalloonSuggestionItemView extends BalloonPanelView{['resultItemView'];['_pinnedRectIndex']=void 0x0;['_pinnedTargetElement']=void 0x0;['_pinnedTargetChangeId']=void 0x0;constructor(_0x3fc1f4,_0x28e222){super(_0x3fc1f4),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']()),_0x28e222['add'](this);}['render'](){super['render'](),this['_setupClickOutsideHandler']();}['updateContent'](_0x5aa830){this['resultItemView']['changeId']=_0x5aa830['id'],this['resultItemView']['resultResponseView']['element']['innerHTML']=_0x5aa830['contentDiffed'];}['showBalloon'](_0x45624d,_0x76ef69,_0x21f521,_0x3fcdf1,_0x56816e,_0x81a554){const _0x20c41f=_0x76ef69();if(!_0x20c41f)return;this['updateContent'](_0x45624d),this['show']();const _0x25258a=Array['from'](_0x20c41f['getClientRects']())['reverse'](),_0x4502e7=this['_getPointedRectIndexFromEvent'](_0x21f521,_0x25258a),_0x4ff1b0=_0x25258a[_0x4502e7??0x0];'click'===_0x3fcdf1?(this['isDiffActive']=!0x0,this['pin']({'target':()=>this['_getBestRectPositionOnClick'](_0x76ef69(),_0x4502e7,_0x45624d['id'],_0x56816e,_0x81a554)||_0x4ff1b0})):'hover'===_0x3fcdf1&&(this['isDiffActive']=!0x1,this['pin']({'target':()=>this['_getBestRectPositionOnHover'](_0x76ef69(),_0x4502e7,_0x45624d['id'])||_0x4ff1b0}));}['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 _0x307569=[this['element']];return this['_pinnedTargetElement']&&_0x307569['push'](this['_pinnedTargetElement']),_0x307569;},'callback':()=>{this['hide'](),this['unpin'](),this['deactivateChange'](),this['_pinnedTargetElement']=void 0x0,this['_pinnedRectIndex']=void 0x0,this['_pinnedTargetChangeId']=void 0x0;}});}['_createContentView'](){const _0x39ea94=new View();return this['resultItemView']=new AIReviewCoreReviewCheckListItemResultsView(this['locale'],''),this['resultItemView']['resultResponseView']['extendTemplate']({'attributes':{'class':['ck-content']}}),this['resultItemView']['delegate']('acceptChange','dismissChange')['to'](this),_0x39ea94['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']]}]}),_0x39ea94;}['_getBestRectPositionOnClick'](_0x807957,_0x57f6af,_0x34b7ec,_0x3ce3e6,_0x74b6aa){if(!_0x807957)return null;const _0x8594e1=this['position']['replace']('arrow_',''),_0x596e1d=Array['from'](_0x807957['getClientRects']());let _0xde0c6,_0x5d58f3=_0x596e1d['reverse']();return void 0x0!==_0x57f6af&&this['_isPinnedRectVisible'](_0x5d58f3[_0x57f6af],_0x3ce3e6,_0x74b6aa)?(_0xde0c6=_0x5d58f3[_0x57f6af],this['_pinnedRectIndex']=_0x57f6af):this['_isPinnedRectVisible'](_0x5d58f3[0x0],_0x3ce3e6,_0x74b6aa)&&void 0x0===_0x57f6af?_0xde0c6=_0x5d58f3[0x0]:(_0x5d58f3='s'==_0x8594e1[0x0]?[..._0x596e1d]['reverse']():_0x596e1d,_0x5d58f3['forEach'](_0x43e096=>{this['_isPinnedRectVisible'](_0x43e096,_0x3ce3e6,_0x74b6aa)&&(_0xde0c6=_0x43e096);})),this['_pinnedTargetChangeId']=_0x34b7ec,this['_pinnedTargetElement']=_0x807957,_0xde0c6||_0x807957['getBoundingClientRect']();}['_getBestRectPositionOnHover'](_0x5db8c9,_0x4b6d33,_0x45f186){if(!_0x5db8c9)return null;const _0x4a78c=Array['from'](_0x5db8c9['getClientRects']())['reverse']();if(void 0x0===this['_pinnedRectIndex']&&void 0x0!==_0x4b6d33&&this['_pinnedTargetChangeId']!==_0x45f186)return this['_pinnedRectIndex']=_0x4b6d33,this['_pinnedTargetElement']=_0x5db8c9,this['_pinnedTargetChangeId']=_0x45f186,_0x4a78c[_0x4b6d33];if(void 0x0!==this['_pinnedRectIndex']&&this['_pinnedTargetChangeId']===_0x45f186){if(_0x5db8c9!==this['_pinnedTargetElement'])return Array['from'](this['_pinnedTargetElement']['getClientRects']())['reverse']()[this['_pinnedRectIndex']];return _0x4a78c[this['_pinnedRectIndex']];}return void 0x0!==_0x4b6d33&&this['_pinnedTargetChangeId']!==_0x45f186?(this['_pinnedRectIndex']=_0x4b6d33,this['_pinnedTargetElement']=_0x5db8c9,this['_pinnedTargetChangeId']=_0x45f186,_0x4a78c[_0x4b6d33]):_0x5db8c9['getBoundingClientRect']();}['_getPointedRectIndexFromEvent'](_0x1b32c3,_0x30160d){if(_0x1b32c3)for(let _0x515005=0x0;_0x515005<_0x30160d['length'];_0x515005++){const _0x480f93=_0x30160d[_0x515005];if(_0x1b32c3['clientX']>=_0x480f93['left']-0x3&&_0x1b32c3['clientX']<=_0x480f93['right']+0x3&&_0x1b32c3['clientY']>=_0x480f93['top']-0x3&&_0x1b32c3['clientY']<=_0x480f93['bottom']+0x3)return _0x515005;}}['_isPinnedRectVisible'](_0x2047f5,_0x9c73de,_0xb16959){const _0x4f267d=new Rect(_0x2047f5),_0x36c790=_0x9c73de||document['documentElement'],_0x22b6b5=_0x4f267d['getIntersection'](getConstrainedViewportRect(_0xb16959)),_0xc019dd=new Rect(_0x36c790)['getIntersection'](_0x4f267d);return!!(_0x22b6b5&&_0xc019dd&&_0x4f267d['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(_0x55d431){super(_0x55d431),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 _0x2fdb6b=this['context']['plugins']['get']('AITabs');this['registerTab'](_0x2fdb6b);}['destroy'](){this['_bodyCollection']['detachFromDom'](),super['destroy']();}['setAvailableChecks'](_0x1676ea){if(!this['_mainView']['reviewCheckListView']['hasChecks']()){const _0x2264e5=!this['context']['config']['get']('ai.models.showModelSelector');this['_mainView']['reviewCheckListView']['setChecks'](_0x1676ea,_0x2264e5);}this['_mainView']['showReviewCheckListView']();}['showReviewCheckList'](){this['fire']('getReviewCheckList');}['showCheckRunResults'](_0x5edb24){_0x5edb24&&('error-general'!==_0x5edb24['status']?'error-chunk'!==_0x5edb24['status']?this['_mainView']['showReviewCheckResultsView']():this['showChunkErrorView']():this['showGeneralResultsErrorView']());}['showCheckRunResult'](_0x32e25a){this['_mainView']['addCheckRunResult'](_0x32e25a);}['showGeneralResultsErrorView'](){this['_mainView']['showGeneralResultsErrorView']();}['showGeneralReviewCoreErrorView'](_0x126828){this['_mainView']['showGeneralReviewCoreErrorView'](_0x126828??getTranslation$i(this['context']['locale'],'AI_REVIEW_INITIALIZATION_ERROR_MESSAGE'));}['showChunkErrorView'](){this['_mainView']['showChunkErrorView']();}['setCheckResultTitle'](_0x4dc66a,_0x3f0470){this['_mainView']['reviewCheckResultsView']['setTitle'](_0x4dc66a,_0x3f0470);}['setActiveStateInResults'](_0x170bf9){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x39649f=>{_0x39649f['id']===_0x170bf9&&_0x39649f['setItemAsActive']();});}['resetActiveStateInResults'](){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x3a8a5c=>_0x3a8a5c['setItemAsInactive']());}['updateChangeState'](_0xc477e9,_0x1b4bdc){'accepted'===_0x1b4bdc||'rejected'===_0x1b4bdc||'outdated'===_0x1b4bdc?this['_mainView']['reviewCheckResultsView']['hideResult'](_0xc477e9,_0x1b4bdc):this['_mainView']['reviewCheckResultsView']['showResult'](_0xc477e9,_0x1b4bdc);}['showReviewCompletedView'](){this['_mainView']['showReviewCompletedView']();}['showActionsWhenResultIsReady'](){this['_mainView']['showActionsWhenResultIsReady']();}['showNoChangesView'](){this['_mainView']['showNoChangesView']();}['hideActionsWhenResultIsReady'](){this['_mainView']['hideActionsWhenResultIsReady']();}['showChangeBalloon'](_0x4faf89,_0x34dbac,_0x269a72,_0x50c3eb,_0x570198,_0x336276){this['_balloonSuggestionView']['showBalloon'](_0x4faf89,_0x34dbac,_0x269a72,_0x50c3eb,_0x570198,_0x336276);}['hideChangeBalloon'](){this['_balloonSuggestionView']['hideBalloon']();}['hideDiffInBalloon'](){this['_balloonSuggestionView']['hideDiffInBalloon']();}['showDiffInBalloon'](){this['_balloonSuggestionView']['showDiffInBalloon']();}['getChangeElement'](_0x52ece1){const _0x31a90b=this['_mainView']['reviewCheckResultsView']['getResults']()['find'](_0x36d3b5=>_0x36d3b5['id']===_0x52ece1);return _0x31a90b?_0x31a90b['element']:null;}['deactivateChange'](){this['_balloonSuggestionView']['deactivateChange']();}}class AIReviewCoreGeneralErrorView extends View{constructor(_0x4b6b15){super(_0x4b6b15),this['set']('isVisible',!0x1),this['set']('errorMessage','');const _0x2986fb=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__general-error-container',_0x2986fb['if']('isVisible','ck-hidden',_0x5e7d76=>!_0x5e7d76)]},'children':[{'tag':'p','attributes':{'class':'ck\x20ck-ai-notification\x20ck-ai-notification_error'},'children':[{'text':_0x2986fb['to']('errorMessage')}]}]});}}class AIReviewCoreView extends View{['reviewCoreHeader'];['generalErrorView'];['reviewCheckListView'];['reviewCheckResultsView'];['reviewCompletedView'];constructor(_0x14a9f4,_0x1b0822){super(_0x14a9f4),this['reviewCoreHeader']=_0x1b0822['header'],this['generalErrorView']=new AIReviewCoreGeneralErrorView(_0x14a9f4),this['reviewCheckListView']=_0x1b0822['list'],this['reviewCheckListView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCheckResultsView']=_0x1b0822['results'],this['reviewCheckResultsView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCompletedView']=_0x1b0822['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'](_0xeb6089){this['reviewCheckResultsView']['addResult'](_0xeb6089),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'](_0x39b5c4){this['generalErrorView']['set']('isVisible',!0x0),this['generalErrorView']['errorMessage']=_0x39b5c4;}['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(_0x44d7e5,_0x1ead5a){super(_0x1ead5a),this['set']({'label':_0x44d7e5,'withText':!0x0,'class':'ck-ai-button-primary'}),this['on']('execute',()=>{this['fire']('finishReview');});}}class AIReviewCoreUICheckResultsView extends ListItemView{['_resultViews'];['_resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0x38ce62,_0x24724b){super(_0x38ce62),this['_contents']=_0x24724b,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['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new AIDisclaimerView(_0x38ce62),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 _0x3b3924=this['_createCombinedSkeletonLoader'](),_0x4ac7aa=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x4ac7aa['if']('isLoading','ck-ai_review__check-run_loading',_0x3544ac=>_0x3544ac),_0x4ac7aa['if']('isResultReady','ck-ai_review__check-run_ready',_0x26756a=>_0x26756a),_0x4ac7aa['if']('isVisible','ck-hidden',_0xa2a207=>!_0xa2a207)]},'children':[this['_resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-container','ck-reset_all-excluded',this['bindTemplate']['if']('isLoading','ck-hidden',_0x2872f0=>_0x2872f0)]},'children':this['_resultViews']},_0x3b3924]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0xcf504f){const _0x19f4b2=new AIReviewCoreReviewCheckListItemResultsView(this['locale'],_0xcf504f['id']);_0x19f4b2['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x19f4b2),_0x19f4b2['resultResponseView']['element']['innerHTML']=_0xcf504f['contentDiffed'];}['hideResult'](_0x5be33b,_0x11f147){if('pending'===_0x11f147)return;const _0x1c712d=this['_resultViews']['find'](_0x5272c7=>_0x5272c7['id']===_0x5be33b);_0x1c712d&&(_0x1c712d['status']=_0x11f147,_0x1c712d['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0x5286f3,_0x145d6c){if('pending'!==_0x145d6c)return;const _0x5df1fa=this['_resultViews']['find'](_0xef03e8=>_0xef03e8['id']===_0x5286f3);_0x5df1fa&&(_0x5df1fa['status']=_0x145d6c,_0x5df1fa['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x58e57a,_0x4bde42){this['headerTitle']=_0x58e57a,this['headerSubtitle']=_0x4bde42||'';}['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 _0x2b077a=new View(this['locale']),_0x50f1ed=[];for(let _0x1a2533=0x0;_0x1a2533<0x10;_0x1a2533++){const _0xd7632a=this['_createSkeletonLoader']();_0xd7632a['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x50f1ed['push'](_0xd7632a);}return _0x2b077a['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x5745d1=>!_0x5745d1)]},'children':_0x50f1ed}),_0x2b077a;}['_createErrorView'](){const _0x7b821e=new View(this['locale']),_0x2ec057=new ButtonView(this['locale']),t=this['locale']['t'];return _0x7b821e['delegate']('retryReview')['to'](this),_0x2ec057['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai_review__check-run-error-retry-button'}),_0x2ec057['on']('execute',()=>{this['fire']('retryReview');}),_0x7b821e['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x1f0d5b=>!_0x1f0d5b),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x2a73a8=>'chunk'===_0x2a73a8)]},'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',_0x49bcb9=>'chunk'===_0x49bcb9)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x38a2ea=>'general'!==_0x38a2ea)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x2f0873=>'chunk'!==_0x2f0873)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x2ec057]}),_0x7b821e;}['_createCancelButtonView'](){const _0xbff0bc=new ButtonView(this['locale']);return _0xbff0bc['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':IconStop}),_0xbff0bc['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3706d9=>_0x3706d9),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x363561=>_0x363561)]}}),_0xbff0bc['on']('execute',()=>{this['fire']('abortReviewStream');}),_0xbff0bc;}['_createToggleDiffButtonView'](){const _0x33299e=new ButtonView(this['locale']);_0x33299e['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x33299e['bind']('isEnabled')['to'](this,'isError',_0x5eca8f=>!_0x5eca8f),_0x33299e['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1e4c07=>!_0x1e4c07),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2a52da=>_0x2a52da)]}});const _0x23d69b=getTranslation$i(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x5494b4=getTranslation$i(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x33299e['bind']('isOn')['to'](this,'isToggleDiffOn',_0x3e2f47=>_0x3e2f47),_0x33299e['bind']('icon')['to'](this,'isToggleDiffOn',_0x247e6d=>_0x247e6d?IconEye:IconEyeCrossedOut),_0x33299e['bind']('label')['to'](this,'isToggleDiffOn',_0x542561=>_0x542561?_0x23d69b:_0x5494b4),_0x33299e['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x33299e;}['_createAcceptAllButtonView'](){const _0x418353=new ButtonView(this['locale']);return _0x418353['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x418353['bind']('isEnabled')['to'](this,'isError',_0x5f041e=>!_0x5f041e),_0x418353['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0xafe50f=>!_0xafe50f),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5f120b=>_0x5f120b)]}}),_0x418353['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x418353;}['_createExitReviewButtonView'](){const _0x40317f=new ButtonView(this['locale']);return _0x40317f['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x40317f['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary','ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x31a7ba=>!_0x31a7ba),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2e7904=>_0x2e7904)]}}),_0x40317f['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x40317f;}['_createResultHeaderView'](){const _0x434e49=new View(this['locale']),_0x360cb9=this['_createTitleView']();return _0x434e49['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x2f6d1e=>_0x2f6d1e)]},'children':[_0x360cb9,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x434e49;}['_createTitleView'](){const _0x307675=new View(this['locale']),_0x223863=new AISpinnerView();return _0x223863['bind']('isVisible')['to'](this,'isResultReady',_0x3fccad=>!_0x3fccad),_0x307675['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0x223863,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x129a7c=>_0x129a7c)]},'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',_0x122669=>!_0x122669)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x307675;}['_createFinishReviewButtonView'](){const _0x365cb3=new AIReviewCoreFinishReviewButtonView(getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x365cb3['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x38786d=>!_0x38786d)]}}),_0x365cb3['delegate']('finishReview')['to'](this),_0x365cb3;}}class AIReviewCoreReviewCompletedView extends ListItemView{['_resultsHeader'];['_finishReviewButtonView'];constructor(_0xefe09b,_0x1a48b0){super(_0xefe09b),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](_0x1a48b0['buttonText']),this['_resultsHeader']=this['_createResultHeaderView'](_0x1a48b0['headerText']);const _0x129699=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__review-completed',_0x129699['if']('isVisible','ck-hidden',_0x4e7828=>!_0x4e7828)]},'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':_0x1a48b0['emptyResultsText']}]}]}]});}['_createFinishReviewButtonView'](_0x73f3af){const _0x3a7384=new AIReviewCoreFinishReviewButtonView(_0x73f3af,this['locale']);return _0x3a7384['delegate']('finishReview')['to'](this),_0x3a7384;}['_createResultHeaderView'](_0xc3ad87){const _0x47b3e2=new View(this['locale']);return _0x47b3e2['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':_0xc3ad87}]},{'tag':'div','attributes':{'class':['ck-ai_review__review-completed-header-buttons']},'children':[this['_finishReviewButtonView']]}]}),_0x47b3e2;}}class AIReviewCoreFormDropdownView extends View{['_dropdownView'];['_defaultValue'];['_defaultLabel'];constructor(_0x3ab2da,_0x2f937c){super(_0x3ab2da),this['_defaultValue']=_0x2f937c['default']||(_0x2f937c['data']['length']>0x0?_0x2f937c['data'][0x0]['id']:''),this['_defaultLabel']=_0x2f937c['data']['find'](_0x4e2e1d=>_0x4e2e1d['id']===this['_defaultValue'])?.['label']||'',this['set']('formValue',''),this['_dropdownView']=createDropdown(this['locale']);const _0x1a9480=this['_prepareListOptions'](_0x2f937c['data']);addListToDropdown(this['_dropdownView'],_0x1a9480,{'role':'menu','ariaLabel':_0x2f937c['label']}),this['_dropdownView']['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0}),this['_dropdownView']['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x409f24=>{_0x409f24['stopPropagation']();})}}),this['listenTo'](this['_dropdownView'],'execute',_0x5e73de=>{this['formValue']=_0x5e73de['source']['model']['id'],this['_dropdownView']['buttonView']['label']=_0x5e73de['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'](_0x37e6a5=[]){const _0x255bf9=new Collection();this['resetToDefault']();for(const _0x202054 of _0x37e6a5){const _0x1d0413=new UIModel({'label':_0x202054['label'],'withText':!0x0,'role':'menuitemradio','id':_0x202054['id'],'model':_0x202054});_0x1d0413['bind']('isOn')['to'](this,'formValue',_0x483756=>_0x483756===_0x1d0413['id']);const _0x58e5ac={'type':'button','model':_0x1d0413};_0x255bf9['add'](_0x58e5ac);}return _0x255bf9;}}class AIReviewCoreFormManagerView extends ListItemView{['_formItem']=null;constructor(_0x17f600,_0x8231aa,_0x3802a4){super(_0x17f600),this['argsKey']=_0x8231aa?.['argsKey'];if('dropdown'===_0x8231aa['formType'])this['_formItem']=new AIReviewCoreFormDropdownView(this['locale'],_0x8231aa);this['set']('value',''),this['bind']('value')['to'](this['_formItem'],'formValue');const _0x41da69=new FormRowView(this['locale'],{'children':[this['_formItem']],'class':[_0x3802a4?'ck-form__row_with-submit':'']});_0x3802a4&&_0x41da69['children']['add'](_0x3802a4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__form-item','ck-reset_all']},'children':[_0x41da69]});}['resetToDefault'](){this['_formItem']['resetToDefault']();}}class AIReviewCorePromptInputView extends TextareaView{['keystrokes'];static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;constructor(_0x462275){super(_0x462275),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(_0x21fbc9,_0x5a2e08,_0x584cbd=!0x1){super(_0x21fbc9),this['_check']=_0x5a2e08,this['set']('prompt',''),this['set']('modelId',''),this['set']('modelDisplayMode','selector'),this['set']('activeModelName',null),this['_defaultValue']=_0x5a2e08['defaultModel']?_0x5a2e08['defaultModel']['id']:'',this['_defaultLabel']=_0x5a2e08['defaultModel']?_0x5a2e08['defaultModel']['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new LabeledFieldView(this['locale'],()=>new AIReviewCorePromptInputView(_0x21fbc9)),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'](_0x584cbd),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',(_0x216514,_0x111cb6)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x111cb6()):_0x111cb6();}),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'](_0x4df0e9=>{this['_focusables']['add'](_0x4df0e9),this['focusTracker']['add'](_0x4df0e9['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 _0x34c4d5 of this['_getFormValidators']()){const _0x21431a=_0x34c4d5();if(_0x21431a)return this['promptInputView']['errorText']=_0x21431a,!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 _0x47a6c7=new ButtonView(this['locale']),t=this['locale']['t'];return _0x47a6c7['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x47a6c7['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x47a6c7;}['_createCancelButtonView'](){const _0x2d1f8c=new ButtonView(this['locale']),t=this['locale']['t'];return _0x2d1f8c['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary'}),_0x2d1f8c['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x46efa2=>{_0x46efa2['stopPropagation']();})}}),_0x2d1f8c['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x2d1f8c;}['_setModelList'](_0x1c1279){this['_modelSelectionDropdownItems']['clear']();const _0x5da5de=this['_check']['models'];if(_0x1c1279)this['set']('modelDisplayMode','hidden');else{const _0x4d29ba=0x1===_0x5da5de['length'];this['set']('modelDisplayMode',_0x4d29ba?'name':'selector');}if(this['resetToDefault'](),_0x5da5de?.['length']){0x1===_0x5da5de['length']&&this['set']('activeModelName',_0x5da5de[0x0]['name']||_0x5da5de[0x0]['id']);for(const _0x20ce94 of _0x5da5de){const _0xcbb7a3=new UIModel({'label':_0x20ce94['name'],'withText':!0x0,'role':'menuitemradio','id':_0x20ce94['id'],'model':_0x20ce94});_0xcbb7a3['bind']('isOn')['to'](this,'modelId',_0x1dc935=>_0x1dc935===_0x20ce94['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0xcbb7a3,'labelView':new ModelButtonLabelView(this['locale'],_0x20ce94)});}}}['_createModelSelectionDropdown'](){const _0x196a28=createDropdown(this['locale']);return _0x196a28['set']({'panelPosition':'se','class':'ck-ai_review__check-list-item-model-dropdown'}),_0x196a28['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),_0x196a28['buttonView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0x405aeb=>'selector'===_0x405aeb),this['listenTo'](_0x196a28,'execute',_0x184e11=>{this['modelId']=_0x184e11['source']['model']['id'],_0x196a28['buttonView']['label']=_0x184e11['source']['label'];}),_0x196a28;}['_createModelNameView'](){const _0x3150c1=new ModelNameView(this['locale']);return _0x3150c1['bind']('text')['to'](this,'activeModelName',_0x15c6ab=>_0x15c6ab??''),_0x3150c1['bind']('isVisible')['to'](this,'modelDisplayMode',_0x2c0105=>'name'===_0x2c0105),_0x3150c1;}['_createActionsFooterView'](){const _0x3a08ac=new View(this['locale']);return _0x3a08ac['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']]}]}),_0x3a08ac;}}class ModelNameView extends View{constructor(_0x2c90b2){super(_0x2c90b2),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x430eda=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai_review__check-list-item-model-name',_0x430eda['if']('isVisible','ck-hidden',_0x1e156b=>!_0x1e156b)]},'children':[{'text':_0x430eda['to']('text')}]});}}class ModelButtonLabelView extends ButtonLabelView{constructor(_0x20d95d,_0x3fc748){super();const _0x141040=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x141040['to']('style'),'id':_0x141040['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x141040['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x3fc748['description']||'']}]}]});}}class AIReviewCoreReviewCommandListItemView extends ListItemView{['_formItemsCollection']=new ViewCollection();['_customCheckView']=null;['_hideModels']=!0x1;constructor(_0x588023,_0x422ede,_0x512569,_0x3cbf07=!0x1){super(_0x588023),this['_hideModels']=_0x3cbf07,this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x422ede['isParameterized']);const _0x1710ed=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',_0x1ef4f4=>_0x1ef4f4),this['bindTemplate']['if']('isListItemRendered','ck-ai_review__check-list-item_rendered',_0x26c03b=>_0x26c03b)],'style':{'--ck-ai-review-check-list-item-index':_0x512569}},'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':_0x422ede['title']}]},_0x1710ed]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-description']},'children':_0x422ede['description']?[{'text':_0x422ede['description']}]:[]}]}]},..._0x422ede['isParameterized']?[this['_createParameterizedView'](_0x422ede)]:[],...'custom'===_0x422ede['id']?[this['_createCustomView'](_0x422ede,this['_hideModels'])]:[]]}),this['on']('click',()=>{_0x422ede['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x422ede['id'],'args':_0x422ede['useArgs']?_0x422ede['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'](_0x93b7e8=>{_0x93b7e8['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x14ff96=new IconView();return _0x14ff96['content']=IconChevronRight,_0x14ff96['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-title-icon']}}),_0x14ff96;}['_createParameterizedView'](_0x55acae){const _0x55c3c7=new View(),_0x189235=this['_createFormView'](_0x55acae);return _0x55c3c7['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x414332=>!_0x414332)]},'children':[_0x189235]}),_0x55c3c7;}['_createFormView'](_0x1f0ad5){const _0x2c69fb=new View(),_0x16636a=Array['isArray'](_0x1f0ad5['options'])?_0x1f0ad5['options']:[],_0x3e3778=new ButtonView(this['locale']),t=this['locale']['t'];_0x3e3778['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x3e3778['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x2177cc=>{_0x2177cc['stopPropagation']();})}}),_0x3e3778['on']('execute',()=>{const _0x5be779=[],_0x30417b={};this['_formItemsCollection']['forEach'](_0x26a545=>{_0x5be779['push'](_0x26a545['value']),_0x1f0ad5['useArgs']&&_0x1f0ad5['options']&&(_0x30417b[_0x26a545['argsKey']]=_0x26a545['value']);}),this['fire']('runReviewCheck',{'id':_0x1f0ad5['id'],'params':_0x5be779['length']?_0x5be779:void 0x0,'args':Object['keys'](_0x30417b)['length']?_0x30417b:void 0x0});});const _0x17d67f=_0x16636a['length'];return _0x16636a['forEach']((_0x3e65e6,_0x3af9b0)=>{const _0x2a9a25=_0x3af9b0===_0x17d67f-0x1;this['_formItemsCollection']['add'](new AIReviewCoreFormManagerView(this['locale'],_0x3e65e6,_0x2a9a25?_0x3e3778:null));}),_0x2c69fb['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x2c69fb;}['_createCustomView'](_0x93763b,_0xb1c18f=!0x1){return this['_customCheckView']=new AIReviewCoreCustomCheckView(this['locale'],_0x93763b,_0xb1c18f),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',_0x42bdfb=>!_0x42bdfb)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x359ac6,_0x5f03b1,_0x4f496c)=>{_0x4f496c||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}class AIReviewCoreReviewCheckListView extends ListItemView{['_checkViews'];constructor(_0x175678){super(_0x175678),this['_checkViews']=new ViewCollection(),this['_setupTemplate']();}['setChecks'](_0x332194,_0x2d2b4b=!0x1){this['_checkViews']['clear']();for(const [_0x15048e,_0x48cb9c]of _0x332194['entries']()){const _0x2466ca=new AIReviewCoreReviewCommandListItemView(this['locale'],_0x48cb9c,_0x15048e,_0x2d2b4b);_0x2466ca['delegate']('runReviewCheck')['to'](this),this['_checkViews']['add'](_0x2466ca);}}['hasChecks'](){return this['_checkViews']['length']>0x0;}['resetAllParameterizedChecks'](){for(const _0x1eadeb of this['_checkViews'])_0x1eadeb instanceof AIReviewCoreReviewCommandListItemView&&_0x1eadeb['resetToDefault']();}['_setupTemplate'](){const _0x1cacad=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list',_0x1cacad['if']('isVisible','ck-hidden',_0x2b6cfa=>!_0x2b6cfa)]},'children':this['_checkViews']});}}class AIReviewModeUI extends AIReviewCoreUI{static get['pluginName'](){return'AIReviewModeUI';}['createMainView'](){const _0x2716ac=this['context']['locale'],_0x2bd85f=new FormHeaderView(_0x2716ac,{'label':getTranslation$i(_0x2716ac,'AI_REVIEW_MODE'),'icon':_0x358601,'class':'ck-ai-header\x20ck-ai-header_review'});return new AIReviewCoreView(this['context']['locale'],{'header':_0x2bd85f,'list':new AIReviewCoreReviewCheckListView(_0x2716ac),'results':new AIReviewCoreUICheckResultsView(_0x2716ac,{'generalErrorText':getTranslation$i(_0x2716ac,'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}),'completed':new AIReviewCoreReviewCompletedView(_0x2716ac,{'headerText':getTranslation$i(_0x2716ac,'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE'),'emptyResultsText':getTranslation$i(_0x2716ac,'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT'),'buttonText':getTranslation$i(_0x2716ac,'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL')})});}['registerTab'](){const _0x3f9fc6=this['context']['plugins']['get']('AITabs');_0x3f9fc6['view']['on']('activateTab',(_0x461fcf,_0x52b61e)=>{'reviewMode'===_0x52b61e?this['fire']('getReviewCheckList'):this['fire']('leaveReview');}),_0x3f9fc6['view']['addTab']({'id':'reviewMode','buttonLabel':getTranslation$i(this['context']['locale'],'AI_REVIEW_MODE'),'buttonIcon':_0x358601,'order':0x0,'content':this['_mainView']});}}const MARKER_PREFIX='review-',CHANGE_CONTEXT_WORDS_LIMIT=0x6;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'];constructor(_0x18ea1c){super(_0x18ea1c),this['_domEmitter']=new(DomEmitterMixin())(),this['_eventEmitter']=new(EmitterMixin())();}get['emitter'](){return this['_eventEmitter'];}['afterInit'](){const _0x32b60f=getEditorFromContext(this['context']);_0x32b60f['conversion']['for']('editingDowncast')['markerToElement']({'model':MARKER_PREFIX+'insert','view':(_0x5373a8,{writer:_0x114a0c})=>{const _0x241682=this['_markers']['get'](_0x5373a8['markerName']),_0x51fb37={'class':'ck-ai_review-marker_add'+(this['_activeMarkers']['has'](_0x241682?.['id']||'')?'\x20ck-ai_review__change_active':''),'data-marker-id':_0x5373a8['markerName']};return _0x114a0c['createUIElement']('span',_0x51fb37,function(_0x30ca7f){const _0x35c807=this['toDomElement'](_0x30ca7f);return _0x35c807['innerHTML']=_0x241682?.['content']?.['asString']||'',_0x35c807;});}}),_0x32b60f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-only','view':_0x2652d5=>{const _0x2cc0c4=this['_markers']['get'](_0x2652d5['markerName']),_0x294911=['ck-ai_review-marker_strikethrough'];return this['_activeMarkers']['has'](_0x2cc0c4?.['id']||'')&&_0x294911['push']('ck-ai_review__change_active'),{'classes':_0x294911,'attributes':{'data-marker-id':_0x2652d5['markerName']}};}}),_0x32b60f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-context','view':_0x5ba6a=>{const _0x1a57c9=this['_markers']['get'](_0x5ba6a['markerName']),_0x1c8ea1=['ck-ai_review-marker_underline'];return this['_activeMarkers']['has'](_0x1a57c9?.['id']||'')&&_0x1c8ea1['push']('ck-ai_review__change_active'),{'classes':_0x1c8ea1,'attributes':{'data-marker-id':_0x5ba6a['markerName']}};}}),_0x32b60f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-text','view':_0x5a7a34=>{const _0x5f2a55=this['_markers']['get'](_0x5a7a34['markerName']),_0x46e20e=['ck-ai_review-marker_hide'];return this['_activeMarkers']['has'](_0x5f2a55?.['id']||'')&&_0x46e20e['push']('ck-ai_review__change_active'),{'classes':_0x46e20e,'attributes':{'data-marker-id':_0x5a7a34['markerName']}};}}),_0x32b60f['conversion']['for']('dataDowncast')['markerToElement']({'model':MARKER_PREFIX+'suggestion-context','view':(_0x389658,{writer:_0x200e78})=>_0x200e78['createRawElement']('span',{'class':'ck-ai_review-marker_context-'+(_0x389658['isOpening']?'start':'end')})}),_0x32b60f['conversion']['for']('downcast')['attributeToAttribute']({'model':DATA_ID_MODEL_ATTRIBUTE,'view':DATA_ID_VIEW_ATTRIBUTE});const _0x22254b=_0x32b60f['ui']['getEditableElement']()||document['body'];this['_domEmitter']['listenTo'](_0x22254b,'mouseup',(_0xbb242e,_0x59ef22)=>{const _0x3ea64b=_0x59ef22['target'],_0x41d8d4=this['_findMarkerElement'](_0x3ea64b);if(!_0x41d8d4)return;const _0x1b34d6=_0x41d8d4['getAttribute']('data-marker-id'),_0x54806e=_0x1b34d6['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerClicked',{'markerId':_0x1b34d6,'changeId':_0x54806e,'markerElement':()=>this['_findMarkerElementById'](_0x1b34d6),'domEvent':_0x59ef22});},{'usePassive':!0x0,'priority':'highest'}),this['_domEmitter']['listenTo'](_0x22254b,'mouseover',(_0x1e09eb,_0x15e7c8)=>{const _0x4c99cb=_0x15e7c8['target'],_0x4b0747=_0x15e7c8['relatedTarget'];let _0x3a4e75=this['_findMarkerElement'](_0x4c99cb);if(!_0x3a4e75&&_0x4b0747&&(_0x3a4e75=this['_findMarkerElement'](_0x4b0747)),!_0x3a4e75)return;const _0x94d4cd=_0x3a4e75['getAttribute']('data-marker-id'),_0x45db0a=_0x94d4cd['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerHovered',{'changeId':_0x45db0a,'markerElement':()=>this['_findMarkerElementById'](_0x94d4cd),'domEvent':_0x15e7c8});}),this['_domEmitter']['listenTo'](document,'mouseover',debounce$1((_0x458b1b,_0x4ce84a)=>{const _0x241622=_0x4ce84a['target'];if(this['_findMarkerElement'](_0x241622))return;_0x241622['closest']('.ck-reset.ck-ai_review-balloon-panel-suggestion')||this['_eventEmitter']['fire']('changeMarkerBlurred');},0xc8)),_0x32b60f['model']['document']['registerPostFixer'](_0x123169=>this['_validateMarkers'](_0x32b60f,_0x123169)),_0x32b60f['model']['document']['on']('change',()=>this['_handleMarkerChanges'](_0x32b60f));}['getDocumentData'](){const _0x251bfb=this['context']['plugins']['get']('AIEditing'),_0x581092=getEditorFromContext(this['context']),_0x4e982b=_0x581092['model'],_0x598a56=new ModelDocumentFragment();for(const _0x3687af of _0x4e982b['document']['getRoot']()['getChildren']()){const _0x3846a9=_0x3687af['_clone'](!0x0);_0x598a56['_appendChild'](_0x3846a9);}for(const _0x7e7797 of _0x4e982b['markers'])_0x598a56['markers']['set'](_0x7e7797['name'],this['_changeRangeOwnerDocument'](_0x7e7797['getRange']()['clone'](),_0x598a56));const _0x8bd8a=new ModelTreeWalker({'ignoreElementEnd':!0x0,'startPosition':_0x4e982b['createPositionAt'](_0x598a56,0x0)}),_0x44e031=new Set(),_0x556a6a=new Map();for(const {item:_0x3c7457}of _0x8bd8a){if(!_0x3c7457['is']('$textProxy'))continue;const _0x5559b3=_0x3c7457['parent'];if(_0x5559b3&&_0x5559b3['is']('element')){const _0x425ce7=this['_upsertDataId'](_0x5559b3,()=>_0x251bfb['_nextDataId'](_0x44e031));_0x44e031['add'](_0x425ce7);for(const _0x360a29 of _0x5559b3['getChildren']())_0x360a29['is']('element')&&_0x44e031['add'](this['_upsertDataId'](_0x360a29,()=>_0x251bfb['_nextDataId'](_0x44e031)));let _0x2d47b3=_0x5559b3;for(;_0x2d47b3['parent']&&!_0x2d47b3['parent']['is']('documentFragment');)_0x2d47b3=_0x2d47b3['parent'],_0x2d47b3['hasAttribute'](DATA_ID_MODEL_ATTRIBUTE)&&_0x2d47b3['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x556a6a['set'](_0x425ce7,{'path':_0x5559b3['getPath'](),'getContent':this['_createGetContentUsingDataIdFn'](_0x2d47b3['_clone'](!0x0),_0x425ce7,_0x581092['data'])}),_0x8bd8a['jumpTo'](_0x4e982b['createPositionAfter'](_0x5559b3));}}return{'content':_0x581092['data']['processor']['toData'](_0x581092['data']['toView'](_0x598a56)),'version':_0x581092['model']['document']['version'],'elements':_0x556a6a};}['diffContent'](_0x392acb,_0x446736,_0x29e1ab=!0x1){const _0x40a3be=[],_0x5466a8=getEditorFromContext(this['context']),_0x264142=_0x5466a8['data']['parse'](_0x446736,'$documentFragment'),_0x4c95eb=_0x5466a8['data']['parse'](_0x392acb,'$documentFragment'),_0x2efe60=_0x5466a8['model']['createPositionAt'](_0x4c95eb,0x0);if(this['_haveSingleTopLevelElement'](_0x264142)){if(!this['_hasSameTopLevelElement'](_0x4c95eb,_0x264142))return _0x40a3be;}else{const _0x1eb066=_0x5466a8['model']['schema'];if(!this['_haveOnlyInlineContent'](_0x4c95eb,_0x1eb066)||!this['_haveOnlyInlineContent'](_0x264142,_0x1eb066))return _0x40a3be;}const _0x39ce48=this['context']['plugins']['get']('DocumentCompare')['getDiff'](_0x392acb,_0x446736,{'anchor':_0x2efe60,'markDeletions':!0x0})['getOperations']()['filter'](_0x12f0fc=>'insert'===_0x12f0fc['type']||'marker'===_0x12f0fc['type']&&_0x12f0fc['name']['startsWith']('$markedRemove')),_0x79ab69=this['_groupAdjacentOperations'](_0x39ce48),_0x5aa2c9=[];if(_0x29e1ab){if(_0x79ab69['length']){const _0x2f6765=_0x79ab69[0x0]['operations'][0x0],_0x5c9401='insert'===_0x2f6765['type']?_0x2f6765['position']:_0x2f6765['newRange']['start'],_0x27dd95=this['_getPositionLimitingRange'](_0x5c9401,_0x5466a8,'inside'),_0x101b55=_0x27dd95?_0x264142['getChild'](0x0)['getChildren']():_0x264142['getChildren'](),_0x4d4bf5=_0x27dd95||_0x5466a8['model']['createRangeIn'](_0x4c95eb),_0x363918=[new MarkerOperation('$markedRemove:synthetic'+uid(),null,_0x4d4bf5,_0x5466a8['model']['document']['model']['markers'],!0x0,_0x5466a8['model']['document']['version']+0x1),new InsertOperation(_0x4d4bf5['end'],_0x101b55,_0x5466a8['model']['document']['version']+0x2)];_0x5aa2c9['push']({'operations':_0x363918,'operationsIsolated':_0x363918,'groupOffset':0x0});}}else _0x5aa2c9['push'](..._0x79ab69);let _0x36535a=0x0;return _0x5466a8['model']['change'](_0x285259=>{for(let _0x5ec816=0x0;_0x5ec816<_0x5aa2c9['length'];_0x5ec816++){const _0x3a4d80=_0x5aa2c9[_0x5ec816],_0x46cd6c=_0x285259['createDocumentFragment']();for(const _0x25f0c3 of _0x4c95eb['getChildren']())_0x285259['append'](_0x25f0c3['_clone'](!0x0),_0x46cd6c);for(const _0x1fc548 of _0x3a4d80['operationsIsolated'])if('insert'===_0x1fc548['type']){const _0x388330=_0x1fc548;_0x388330['baseVersion']=null,_0x388330['isDocumentOperation']=!0x1,this['_changeOperationOwnerDocument'](_0x388330,_0x46cd6c),_0x285259['batch']['addOperation'](_0x1fc548),_0x5466a8['model']['applyOperation'](_0x1fc548);const _0x5d248b='suggestion:insertion:id:authorId:'+_0x36535a++,_0x4a690b=_0x5466a8['model']['createRange'](_0x388330['position'],_0x388330['position']['getShiftedBy'](_0x388330['howMany']));_0x46cd6c['markers']['set'](_0x5d248b,_0x4a690b);}else{if('marker'===_0x1fc548['type']&&_0x1fc548['name']['startsWith']('$markedRemove')){const _0x46ee09=_0x1fc548,_0x131583='suggestion:deletion:id:authorId:'+_0x36535a++;this['_changeOperationOwnerDocument'](_0x46ee09,_0x46cd6c),_0x46cd6c['markers']['set'](_0x131583,_0x46ee09['newRange']);}}if(_0x29e1ab)_0x40a3be['push']({..._0x3a4d80,'context':this['_createGetContentFn'](_0x4c95eb,_0x5466a8['data']),'content':this['_createGetContentFn'](_0x4c95eb,_0x5466a8['data'])});else{const _0x2b6ac8=this['_getChangeContext'](this['_changePositionOwnerDocument'](this['_getOperationStart'](_0x3a4d80['operationsIsolated'][0x0]),_0x46cd6c),this['_changePositionOwnerDocument'](this['_getOperationEnd'](_0x3a4d80['operationsIsolated'][_0x3a4d80['operationsIsolated']['length']-0x1]),_0x46cd6c));_0x46cd6c['markers']['set'](MARKER_PREFIX+'suggestion-context',new ModelRange(_0x2b6ac8['start'],_0x2b6ac8['end'])),_0x40a3be['push']({..._0x3a4d80,'context':this['_createGetContextFn'](_0x46cd6c,_0x5466a8['data'],{'ellipsisBefore':_0x2b6ac8['hasContentBefore'],'ellipsisAfter':_0x2b6ac8['hasContentAfter']}),'content':this['_createGetContentFn'](_0x46cd6c,_0x5466a8['data'])});}}}),_0x40a3be;}['markChangePositionInEditorContent'](_0x140e48,_0x3dcdb2){if(!_0x140e48['length'])return;const _0x134531=_0x140e48[0x0]['parent']['id'],_0x56e0a5=_0x3dcdb2['elements']['get'](_0x134531);if(!_0x56e0a5)return void console['warn']('No\x20element\x20found\x20for\x20ID:\x20'+_0x134531);const _0x420c9a=_0x56e0a5['path'],_0x25554d=getEditorFromContext(this['context']),_0x3e737e=_0x25554d['model']['document']['history']['getOperations'](_0x3dcdb2['version']),_0x506c76=[];for(const _0x2ec759 of _0x140e48){const _0x21e21f=_0x2ec759['operationsIsolated']['map'](_0x4167d4=>this['_translateOperationToEditorContent'](_0x4167d4,_0x420c9a,_0x25554d['model']['document']['getRoots']()[0x0]));if(!_0x21e21f||!_0x21e21f['length'])continue;const _0x2ca3b5=_0x21e21f['every'](_0x573fa7=>'marker'===_0x573fa7['type']&&_0x573fa7['name']['startsWith']('$markedRemove')),_0x3a571e={'document':_0x25554d['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4f8e12=transformOperationSets(_0x21e21f,_0x3e737e,_0x3a571e)['operationsA'];for(const _0x3cbc95 of _0x4f8e12)if('insert'===_0x3cbc95['type']){const _0x6f8840=_0x3cbc95,_0x5f36fe=_0x6f8840['nodes'];_0x25554d['model']['change'](_0x28a9e5=>{const _0x3e850c=_0x28a9e5['createDocumentFragment']();for(const _0x132e4a of _0x5f36fe)_0x28a9e5['append'](_0x132e4a['_clone'](!0x0),_0x3e850c);_0x506c76['push']({'start':_0x6f8840['position'],'end':_0x6f8840['position'],'type':'insert','groupId':_0x2ec759['id'],'content':{'asString':this['_createGetContentFn'](_0x3e850c,_0x25554d['data'])(),'asFragment':_0x3e850c}});});}else{if('marker'===_0x3cbc95['type']&&_0x3cbc95['name']['startsWith']('$markedRemove')){const _0x2f31d8=_0x3cbc95;let _0xec80a8='remove-text';if(_0x2ca3b5){const _0x3221bf=this['_findAdjacentContextDistance'](_0x2f31d8['newRange']['start'],'backward',_0x25554d['model']['schema']),_0x149e32=this['_findAdjacentContextDistance'](_0x2f31d8['newRange']['end'],'forward',_0x25554d['model']['schema']);if(_0x3221bf||_0x149e32){const _0x4473fe=_0x2f31d8['newRange']['start']['getShiftedBy'](-_0x3221bf),_0x377d8a=_0x2f31d8['newRange']['end']['getShiftedBy'](_0x149e32);_0x506c76['push']({'start':_0x4473fe,'end':_0x377d8a,'groupId':_0x2ec759['id'],'type':'remove-context'});}else _0xec80a8='remove-only';}_0x506c76['push']({'start':_0x2f31d8['newRange']['start'],'end':_0x2f31d8['newRange']['end'],'groupId':_0x2ec759['id'],'type':_0xec80a8});}}}this['_insertMarkers'](_0x506c76);}['clearAllMarkers'](){const _0x328994=getEditorFromContext(this['context']);_0x328994['model']['change'](_0x73b6fe=>{for(const _0x336e09 of this['_markers']['keys']())_0x328994['model']['markers']['get'](_0x336e09)&&_0x73b6fe['removeMarker'](_0x336e09);}),this['_markers']['clear'](),this['_activeMarkers']['clear']();}['switchToReadOnly'](){getEditorFromContext(this['context'])['enableReadOnlyMode']('ai-review');}['switchToEdit'](){getEditorFromContext(this['context'])['disableReadOnlyMode']('ai-review');}['applyChange'](_0x3aba56){const _0x174a3a=getEditorFromContext(this['context']),_0xc9b137=_0x174a3a['model'],_0x4930f9=_0x3aba56['map'](_0x212dc2=>this['_getMarkersDataForGroup'](_0x212dc2))['flat']();_0xc9b137['change'](_0x3cf4b=>{for(const _0x3f8a2e of _0x4930f9){const _0x457f2d=_0x174a3a['model']['markers']['get'](_0x3f8a2e['id']);if(_0x457f2d){if('insert'===_0x3f8a2e['type']){if(!_0x3f8a2e['content'])continue;_0xc9b137['insertContent'](_0x3f8a2e['content']['asFragment']||null,_0x457f2d['getRange']()['start']);}else'remove-text'!==_0x3f8a2e['type']&&'remove-only'!==_0x3f8a2e['type']||_0xc9b137['deleteContent'](_0xc9b137['createSelection'](_0x457f2d['getRange']()));_0x3cf4b['removeMarker'](_0x3f8a2e['id']),this['_markers']['delete'](_0x3f8a2e['id']);}}});}['rejectChange'](_0x5990d6){const _0x4ac70e=getEditorFromContext(this['context']),_0x216b26=this['_getMarkersDataForGroup'](_0x5990d6);_0x4ac70e['model']['change'](_0x358d5f=>{for(const _0x16b9ce of _0x216b26)_0x358d5f['removeMarker'](_0x16b9ce['id']),this['_markers']['delete'](_0x16b9ce['id']);});}['getEditor'](){return getEditorFromContext(this['context']);}['getMarkerElementForChange'](_0x4b248e){const _0x2b4177=Array['from'](this['_markers']['values']())['filter'](_0x21d55f=>_0x21d55f['groupId']===_0x4b248e);if(!_0x2b4177['length'])return null;const _0x3f9730=0x1===_0x2b4177['length']?_0x2b4177[0x0]:this['_sortMarkers'](_0x2b4177)[0x0],_0x42b399=getEditorFromContext(this['context'])['model']['markers']['get'](_0x3f9730['id']);if(!_0x42b399)return null;return{'modelRange':_0x42b399['getRange'](),'getElement':()=>this['_findMarkerElementById'](_0x3f9730['id'])};}['getContentElementForChange'](_0x4111bb){const _0x13aa4d=Array['from'](this['_markers']['values']())['filter'](_0x4f2d0c=>_0x4f2d0c['groupId']===_0x4111bb);if(!_0x13aa4d['length'])return null;const _0x37353f=0x1===_0x13aa4d['length']?_0x13aa4d[0x0]:this['_sortMarkers'](_0x13aa4d)[0x0],_0x24f4af=getEditorFromContext(this['context']),_0x564cf8=_0x24f4af['model']['markers']['get'](_0x37353f['id']);if(!_0x564cf8)return null;const _0x25ca20=_0x564cf8['getRange'](),_0x251cfb=_0x24f4af['editing']['view']['getDomRoot']();if(!_0x251cfb||!_0x25ca20)return null;let _0x5d595c=_0x25ca20['start']['parent'];for(;_0x5d595c['parent']&&'$root'!==_0x5d595c['parent']['name'];)_0x5d595c=_0x5d595c['parent'];if(!_0x5d595c||!_0x5d595c['name'])return null;const _0x41b11c=_0x251cfb['querySelector']('[data-marker-id=\x22'+_0x37353f['id']+'\x22]');if(!_0x41b11c)return null;let _0x315c7a=null;_0x24f4af['model']['change'](_0x433c92=>{_0x315c7a=_0x433c92['createDocumentFragment'](),_0x433c92['append'](_0x5d595c['_clone'](!0x0),_0x315c7a);});const _0x39d85c=_0x24f4af['data']['toView'](_0x315c7a)['getChild'](0x0);return _0x41b11c['closest'](_0x39d85c['name']);}['reactivateMarkers'](_0x2ed4d5){const _0x76d70e=this['_getMarkersDataForGroup'](_0x2ed4d5);if(!_0x76d70e['length'])return;const _0x1b4d9a=Array['from'](this['_activeMarkers'])['sort'](),_0x257e20=Array['from'](new Set(_0x76d70e['map'](_0x134191=>_0x134191['id'])))['sort']();_0x1b4d9a['join']('|')!==_0x257e20['join']('|')&&(this['setAllMarkersAsInactive'](),this['setMarkersInElementAsActive'](_0x2ed4d5));}['setMarkersInElementAsActive'](_0x2cfdf7){const _0x1604aa=this['_getMarkersDataForGroup'](_0x2cfdf7);if(!_0x1604aa['length'])return;const _0x487040=getEditorFromContext(this['context']),_0x27c54d=new Set(_0x1604aa['map'](_0x1ee59c=>_0x1ee59c['id'])),_0x56b14a=Array['from'](_0x27c54d['values']())['map'](_0x2768a5=>_0x487040['model']['markers']['get'](_0x2768a5))['filter'](_0x47dc53=>!!_0x47dc53);_0x27c54d['forEach'](_0x4aedc2=>{this['_activeMarkers']['add'](_0x4aedc2);}),_0x487040['model']['change'](()=>{_0x56b14a['forEach'](_0x564d82=>{_0x487040['editing']['reconvertMarker'](_0x564d82);});});}['setAllMarkersAsInactive'](){const _0x1bee3a=Array['from'](this['_activeMarkers']);if(!_0x1bee3a['length'])return;this['_activeMarkers']['clear']();const _0x507f5c=getEditorFromContext(this['context']),_0x393a11=_0x1bee3a['map'](_0x18d322=>_0x507f5c['model']['markers']['get'](_0x18d322))['filter'](_0x43ba56=>!!_0x43ba56);_0x507f5c['model']['change'](()=>{_0x393a11['forEach'](_0x26b50c=>{_0x507f5c['editing']['reconvertMarker'](_0x26b50c);});});}['_getPositionLimitingRange'](_0x3372e6,_0x3ee56d,_0x1c5d59='outside'){if(!_0x3372e6)return null;let _0x5298ae=_0x3372e6['parent'];for(;_0x5298ae&&_0x5298ae['parent']&&'$root'!==_0x5298ae['parent']['name']&&!_0x3ee56d['model']['schema']['isLimit'](_0x5298ae)&&!_0x3ee56d['model']['schema']['isBlock'](_0x5298ae);)_0x5298ae=_0x5298ae['parent'];if(!_0x5298ae||!_0x5298ae['name']||'$root'===_0x5298ae['name'])return null;let _0x1e7315=null;return _0x3ee56d['model']['change'](_0x4edc51=>{_0x1e7315='inside'===_0x1c5d59?_0x4edc51['createRangeIn'](_0x5298ae):_0x4edc51['createRangeOn'](_0x5298ae);}),_0x1e7315;}['_validateMarkers'](_0x19582c,_0x2e34aa){const _0x55acfc=Array['from'](this['_markers']['keys']()),_0x4272a6=new Map();for(const _0x213ccc of _0x55acfc){const _0x12c042=_0x19582c['model']['markers']['get'](_0x213ccc);if(!_0x12c042)continue;const _0x3e4a94=_0x12c042['getStart']()['path'][0x0];_0x4272a6['has'](_0x3e4a94)||_0x4272a6['set'](_0x3e4a94,[]),_0x4272a6['get'](_0x3e4a94)['push'](_0x12c042);}const _0x44b8fc=new Set();for(const _0x1a6231 of _0x19582c['model']['document']['differ']['getChanges']()){let _0x402406=-0x1,_0x3110ae=null;if('insert'===_0x1a6231['type'])_0x3110ae=new ModelRange(_0x1a6231['position'],_0x1a6231['position']['getShiftedBy'](_0x1a6231['length'])),_0x402406=_0x1a6231['position']['path'][0x0];else{if('remove'!==_0x1a6231['type'])continue;_0x3110ae=new ModelRange(_0x1a6231['position']),_0x402406=_0x1a6231['position']['path'][0x0];}const _0x4eeb0e=_0x4272a6['get'](_0x402406)||[];if(_0x4eeb0e['length']){for(const _0x33136d of _0x4eeb0e)if(_0x3110ae['root']['rootName']===_0x33136d['getRange']()['root']['rootName']&&('insert'!==_0x1a6231['type']||!_0x3110ae['containsRange'](_0x33136d['getRange']()))&&(_0x3110ae['isIntersecting'](_0x33136d['getRange']())||_0x3110ae['start']['isTouching'](_0x33136d['getRange']()['end'])||_0x3110ae['end']['isTouching'](_0x33136d['getRange']()['start']))){const _0x5884d2=this['_parseMarkerName'](_0x33136d['name']);Array['from'](this['_markers']['values']())['filter'](_0x3c608f=>_0x3c608f['groupId']===_0x5884d2['groupId'])['forEach'](_0x1d41b7=>_0x44b8fc['add'](_0x1d41b7['id']));}}}if(_0x44b8fc['size']){for(const _0xfe52b8 of _0x44b8fc)_0x2e34aa['removeMarker'](_0xfe52b8);return!0x0;}return!0x1;}['_handleMarkerChanges'](_0x5a53a4){for(const {name:_0x265218,data:_0xb06b06}of _0x5a53a4['model']['document']['differ']['getChangedMarkers']()){if(!_0x265218['startsWith'](MARKER_PREFIX))continue;const _0x2f14b3=_0xb06b06['oldRange'],_0x2dc12e=_0xb06b06['newRange'],_0x5f4a53=_0x2f14b3&&'$graveyard'===_0x2f14b3['root']['rootName'],_0x25f801=_0x2dc12e&&'$graveyard'===_0x2dc12e['root']['rootName'];if(_0x5f4a53&&_0x25f801)continue;const _0x12036f=this['_parseMarkerName'](_0x265218);this['_markers']['get'](_0x265218)&&(_0x25f801||!_0x2dc12e?this['_eventEmitter']['fire']('changeMarkerRemoved',{'markerId':_0x265218,'changeId':_0x12036f['groupId']}):_0x5f4a53&&_0x2dc12e&&this['_eventEmitter']['fire']('changeMarkerRestored',{'markerId':_0x265218,'changeId':_0x12036f['groupId']}));}}['_parseMarkerName'](_0x47e9b4){const _0x28762f=_0x47e9b4['split'](':'),_0x2c5ee0=(_0x28762f[0x1]||'')['split']('_');return{'prefix':_0x28762f[0x0],'groupId':_0x2c5ee0[0x0],'suffix':_0x2c5ee0[0x1]};}['_translateOperationToEditorContent'](_0x24ff50,_0x17cff4,_0x2d0bf7){if('insert'===_0x24ff50['type']){const _0x4b4772=_0x24ff50;return new InsertOperation(this['_changePosition'](_0x17cff4['concat'](_0x4b4772['position']['offset']),_0x2d0bf7),_0x4b4772['nodes'],_0x4b4772['baseVersion']);}if('marker'===_0x24ff50['type']&&_0x24ff50['name']['startsWith']('$markedRemove')){const _0x5ebc6b=_0x24ff50;return new MarkerOperation(_0x5ebc6b['name'],_0x5ebc6b['oldRange'],this['_changeRange'](_0x5ebc6b['newRange'],_0x17cff4['concat'](_0x5ebc6b['newRange']['start']['offset']),_0x17cff4['concat'](_0x5ebc6b['newRange']['end']['offset']),_0x2d0bf7),_0x5ebc6b['_markers'],_0x5ebc6b['affectsData'],_0x5ebc6b['baseVersion']);}return _0x24ff50;}['_groupAdjacentOperations'](_0x23a868){if(!_0x23a868['length'])return[];const _0x122616=[];let _0x24182f=0x0,_0xfff76f=0x0,_0x12e866=[];for(let _0x5b839d=0x0;_0x5b839d<=_0x23a868['length'];_0x5b839d++){const _0x5f3e81=_0x23a868[_0x5b839d],_0x488c24=_0x23a868[_0x5b839d-0x1];!_0x5f3e81||_0x488c24&&!this['_getOperationEnd'](_0x488c24)['isTouching'](this['_getOperationStart'](_0x5f3e81))?(_0x122616['push']({'operations':_0x12e866,'operationsIsolated':_0x12e866['map'](_0xdaf6bc=>this['_shiftOperation'](_0xdaf6bc['clone'](),-_0xfff76f)),'groupOffset':_0x24182f}),_0x12e866=_0x5f3e81?[_0x5f3e81]:[],_0xfff76f+=_0x24182f,_0x24182f=0x0):_0x12e866['push'](_0x5f3e81),_0x5f3e81&&'insert'===_0x5f3e81['type']&&(_0x24182f+=_0x5f3e81['howMany']);}return _0x122616;}['_findAdjacentContextDistance'](_0x2b2ca4,_0x32e9d0,_0x2e2624,_0x2b377a=0x1){const _0x5b604c=new ModelTreeWalker({'startPosition':_0x2b2ca4,'direction':_0x32e9d0});let _0x459d8d=0x0;for(let _0x179623=0x0;_0x179623<_0x2b377a;_0x179623++){let _0x551c12=0x0,_0x2e1327=!0x1,_0x484692='forward'===_0x32e9d0?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x18551d}of _0x5b604c)if(_0x18551d['is']('$textProxy')){const _0x18f81a=_0x484692['exec'](_0x18551d['data']);if(_0x18f81a&&_0x18f81a['length']){if(_0x551c12+='forward'===_0x32e9d0?_0x18f81a['index']+_0x18f81a[0x0]['length']:_0x18551d['data']['length']-_0x18f81a['index'],_0x18f81a[0x0]['length']!==_0x18551d['data']['length'])break;_0x2e1327=!0x0,_0x484692='forward'===_0x32e9d0?/^\w+/:/\w+$/;}else{if(_0x2e1327)break;_0x551c12+=_0x18551d['offsetSize'];}}else{if(_0x18551d['is']('element')){_0x2e2624['isInline'](_0x18551d)&&!_0x2e1327&&(_0x551c12+=0x1);break;}}_0x459d8d+=_0x551c12,_0x5b604c['jumpTo'](_0x2b2ca4['getShiftedBy']('forward'===_0x32e9d0?_0x459d8d:-_0x459d8d));}return _0x459d8d;}['_getChangeContext'](_0x3979a4,_0x4f9142){const _0x53c65f=getEditorFromContext(this['context'])['model']['schema'],_0x5817bc=this['_findAdjacentContextDistance'](_0x3979a4,'backward',_0x53c65f,CHANGE_CONTEXT_WORDS_LIMIT),_0x3f431a=this['_findAdjacentContextDistance'](_0x4f9142,'forward',_0x53c65f,CHANGE_CONTEXT_WORDS_LIMIT),_0x15c39e=_0x3979a4['getShiftedBy'](-_0x5817bc),_0x3bc200=_0x4f9142['getShiftedBy'](_0x3f431a);return{'start':_0x15c39e,'end':_0x3bc200,'hasContentBefore':!_0x15c39e['isAtStart'],'hasContentAfter':!_0x3bc200['isAtEnd']};}['_insertMarkers'](_0x44b851){const _0x2dda49=this['context']['plugins']['get']('AIEditing'),_0xb2e7ca=new Set();getEditorFromContext(this['context'])['model']['change'](_0x2d26cc=>{for(const _0x174d18 of _0x44b851){const _0x472469=''+MARKER_PREFIX+_0x174d18['type']+':'+_0x174d18['groupId']+'_'+_0x2dda49['_nextDataId'](_0xb2e7ca);this['_markers']['set'](_0x472469,{'id':_0x472469,'groupId':_0x174d18['groupId'],'type':_0x174d18['type'],'content':_0x174d18['content']}),_0x2d26cc['addMarker'](_0x472469,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2d26cc['createRange'](_0x174d18['start'],_0x174d18['end'])});}});}['_createGetContextFn'](_0x31e8a7,_0x55d9e0,_0x173bc3){let _0x1f81a1='';return()=>{if(!_0x1f81a1){const _0xcb284b=_0x55d9e0['toView'](_0x31e8a7,{'showSuggestionHighlights':!0x0});let _0x4f0425=_0xcb284b['getChild'](0x0);if(_0x4f0425['is']('containerElement')||(_0x4f0425=_0xcb284b),!_0x4f0425)return'';let _0x5d8997=!0x1;const _0xb07541=[];for(const _0x29b496 of _0x4f0425['getChildren']())_0x29b496['is']('element','span')&&_0x29b496['hasClass']('ck-ai_review-marker_context-end')&&(_0x5d8997=!0x1),_0x5d8997&&_0xb07541['push'](_0x29b496),_0x29b496['is']('element','span')&&_0x29b496['hasClass']('ck-ai_review-marker_context-start')&&(_0x5d8997=!0x0);_0x4f0425['_removeChildren'](0x0,_0x4f0425['childCount']),_0x173bc3?.['ellipsisBefore']&&_0x4f0425['_appendChild']('…'),_0x4f0425['_appendChild'](_0xb07541),_0x173bc3?.['ellipsisAfter']&&_0x4f0425['_appendChild']('…');const _0x1136c3=_0x55d9e0['htmlProcessor']['domConverter']['viewToDom'](_0xcb284b),_0x37a29a=_0x55d9e0['htmlProcessor']['htmlWriter']['getHtml'](_0x1136c3);_0x1f81a1=_0x37a29a;}return _0x1f81a1;};}['_createGetContentFn'](_0x23f833,_0x1324a5){let _0x192fdf='';return()=>(_0x192fdf||(_0x192fdf=_0x1324a5['stringify'](_0x23f833,{'showSuggestionHighlights':!0x0})),_0x192fdf);}['_createGetContentUsingDataIdFn'](_0x2e4b42,_0x5786a3,_0x4c427f){let _0x2ffa33='';return()=>{if(!_0x2ffa33){const _0x5e8e6f=_0x4c427f['toView'](new ModelDocumentFragment(_0x2e4b42)),_0x2c693e=_0x4c427f['htmlProcessor']['domConverter']['viewToDom'](_0x5e8e6f)['querySelector']('[data-id=\x22'+_0x5786a3+'\x22]');_0x2ffa33=_0x2c693e?.['outerHTML']||'';}return _0x2ffa33;};}['_findMarkerElement'](_0x10fe60,_0x56f2e9=0x5){let _0x15c2f4=_0x10fe60,_0x3ae21c=null;for(let _0x4f8b0a=0x0;_0x4f8b0a<_0x56f2e9&&_0x15c2f4;_0x4f8b0a++){if(!_0x15c2f4['className']){_0x15c2f4=_0x15c2f4['parentElement'];continue;}if(!(''+_0x15c2f4['className'])['includes']('ck-ai_review-marker_')){_0x15c2f4=_0x15c2f4['parentElement'];continue;}if(!_0x15c2f4['getAttribute']('data-marker-id'))break;_0x3ae21c=_0x15c2f4;break;}return _0x3ae21c;}['_findMarkerElementById'](_0x4aa1e3){const _0x3b35ee=getEditorFromContext(this['context']),_0x413f0f=_0x3b35ee['model']['markers']['get'](_0x4aa1e3);return _0x413f0f?getMarkerDomElement(_0x3b35ee['editing'],_0x413f0f):null;}['_getMarkersDataForGroup'](_0x7665ca){return Array['from'](this['_markers']['values']())['filter'](_0x2e3884=>_0x2e3884['groupId']===_0x7665ca);}['_getOperationStart'](_0x24de29){return'insert'===_0x24de29['type']?_0x24de29['position']:_0x24de29['newRange']['start'];}['_getOperationEnd'](_0x390c06,_0x3ff244=!0x1){return'insert'===_0x390c06['type']?_0x3ff244?_0x390c06['position']:_0x390c06['position']['getShiftedBy'](_0x390c06['howMany']):_0x390c06['newRange']['end'];}['_shiftOperation'](_0x3cb7a6,_0x56c264){return'insert'===_0x3cb7a6['type']?_0x3cb7a6['position']=_0x3cb7a6['position']['getShiftedBy'](_0x56c264):'marker'===_0x3cb7a6['type']&&_0x3cb7a6['newRange']&&(_0x3cb7a6['newRange']=new ModelRange(_0x3cb7a6['newRange']['start']['getShiftedBy'](_0x56c264),_0x3cb7a6['newRange']['end']['getShiftedBy'](_0x56c264))),_0x3cb7a6;}['_changeOperationOwnerDocument'](_0x466a8b,_0xfbcaed){'insert'===_0x466a8b['type']?_0x466a8b['position']=this['_changePositionOwnerDocument'](_0x466a8b['position'],_0xfbcaed):'marker'===_0x466a8b['type']&&_0x466a8b['newRange']&&(_0x466a8b['newRange']=this['_changeRangeOwnerDocument'](_0x466a8b['newRange'],_0xfbcaed));}['_changePositionOwnerDocument'](_0x2dda2e,_0x1d546e){return new ModelPosition(_0x1d546e,_0x2dda2e['path']);}['_changeRangeOwnerDocument'](_0x1dc335,_0x3ab653){return new ModelRange(this['_changePositionOwnerDocument'](_0x1dc335['start'],_0x3ab653),this['_changePositionOwnerDocument'](_0x1dc335['end'],_0x3ab653));}['_changePosition'](_0x1440c8,_0x2e246a){return new ModelPosition(_0x2e246a,[..._0x1440c8]);}['_changeRange'](_0x483508,_0x32ed97,_0x275c96,_0x8216d0){return new ModelRange(this['_changePosition'](_0x32ed97,_0x8216d0),this['_changePosition'](_0x275c96,_0x8216d0));}['_sortMarkers'](_0x5a69ae){const _0x4ed52a=_0x37ad27=>{switch(_0x37ad27){case'insert':return 0x0;case'remove-context':return 0x1;case'remove-only':return 0x2;case'remove-text':return 0x3;}};return _0x5a69ae['sort']((_0x2547bc,_0xce17aa)=>_0x4ed52a(_0x2547bc['type'])-_0x4ed52a(_0xce17aa['type']));}['_hasSameTopLevelElement'](_0xcf70ae,_0x308ade){const _0xca07ca=_0xcf70ae['getChild'](0x0),_0x1221ef=_0x308ade['getChild'](0x0);return!(!_0xca07ca||!_0x1221ef)&&((!_0xca07ca['is']('element')||!_0x1221ef['is']('element')||_0xca07ca['name']===_0x1221ef['name'])&&!(_0xca07ca['is']('element')&&!_0x1221ef['is']('element')||!_0xca07ca['is']('element')&&_0x1221ef['is']('element')));}['_haveSingleTopLevelElement'](_0x23979d){return 0x1===_0x23979d['childCount'];}['_haveOnlyInlineContent'](_0x47caf7,_0x4dbf3e){for(const _0x853149 of _0x47caf7['getChildren']())if(_0x853149['is']('element')&&!_0x4dbf3e['isInline'](_0x853149))return!0x1;return!0x0;}['_upsertDataId'](_0x7e2bc2,_0x373b98){let _0x4433e3=_0x7e2bc2['getAttribute'](DATA_ID_MODEL_ATTRIBUTE);return _0x4433e3||(_0x4433e3=_0x373b98(),_0x7e2bc2['_setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x4433e3)),_0x4433e3;}}class AIReviewCheckResult extends EmitterMixin(){['id'];['contentNew'];['contentInitial'];['documentVersion'];constructor({id:_0x1c363a,contentNew:_0x35423f,contentInitial:_0x106c85,documentVersion:_0x2d10b3}){super(),this['id']=_0x1c363a,this['contentNew']=_0x35423f,this['contentInitial']=_0x106c85,this['documentVersion']=_0x2d10b3;}}class AIReviewCheckResultChange extends ObservableMixin(){['id'];['parent'];['_data'];['_editorOperations']=[];constructor(_0x46d1c5,_0x477c44,_0x5771f2){super(),this['id']=_0x46d1c5,this['parent']=_0x5771f2,this['_data']=_0x477c44,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(_0x594225,_0x3fed5c,_0x57efcf,_0x511209,_0x3ce5e6){super(),this['_sourceCheck']=_0x3fed5c,this['_documentData']=_0x594225,this['_aiConnector']=_0x57efcf,this['_reviewParams']=_0x511209,this['_reviewArgs']=_0x3ce5e6,this['on']('change:status',(_0x3f0a61,_0x3c3541,_0x1a7d73)=>{'aborted'==_0x1a7d73&&(this['_wasAborted']=!0x0),this['fire']('reviewCheckRunUpdated',{'status':_0x1a7d73,'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'](_0x1fa7bd=>'pending'===_0x1fa7bd['status']);}get['currentError'](){return this['_currentError'];}['updateDocumentData'](_0x20d31){this['_documentData']=_0x20d31;}async['start'](){this['status']='loading',this['_currentError']=void 0x0;try{this['_activeRequest']=this['_createApiRequest']();const _0x1ce3be=await this['_activeRequest']['getStream']();this['status']='data';for await(const _0x2ef742 of _0x1ce3be)'unmodified'!==_0x2ef742['data']['operation']&&('error'!==_0x2ef742['data']['operation']?'review-metadata'!==_0x2ef742['event']?this['_addReviewCheckResult'](_0x2ef742['data']['dataId'],_0x2ef742['data']['textDelta']):this['callId']=_0x2ef742['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(_0x4b84a4){this['_currentError']=_0x4b84a4,_0x4b84a4 instanceof Error&&_0x4b84a4['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'](_0x4f66b2,_0x381630){const _0x5994c4=this['_results']['get'](_0x4f66b2);if(!_0x5994c4)return;if(0x0===_0x381630['length'])return;const _0x4a3e97=[];_0x381630['forEach']((_0x1b4805,_0x2cad8e)=>{const _0x940900=new AIReviewCheckResultChange(_0x5994c4['id']+'-'+_0x2cad8e,_0x1b4805,_0x5994c4);_0x940900['on']('change:status',()=>{this['fire']('reviewCheckResultChangeStatusUpdated',{'change':_0x940900,'status':_0x940900['status']});}),_0x940900['on']('change:isActivated',()=>{_0x940900['isActivated']?this['fire']('reviewCheckResultActivated',{'change':_0x940900}):this['fire']('reviewCheckResultDeactivated',{'change':_0x940900});}),this['_changes']['push'](_0x940900),_0x4a3e97['push'](_0x940900);}),this['fire']('reviewCheckResultReady',{'changes':_0x4a3e97,'result':_0x5994c4,'source':this});}['abort'](){this['_activeRequest']&&(this['_activeRequest']['abortController']['abort'](),this['_activeRequest']=null,this['status']='aborted');}['isChangeActive'](_0x2c29f4){const _0xd5ab1f=this['_changes']['find'](_0x21f891=>_0x21f891['id']===_0x2c29f4);return!(!_0xd5ab1f||'pending'!==_0xd5ab1f['status']);}['isAnyChangeActivated'](){return this['_changes']['some'](_0x3f535e=>!0x0===_0x3f535e['isActivated']);}['getActiveChanges'](){return this['_changes']['filter'](_0x4c3a6c=>'pending'===_0x4c3a6c['status']);}['getChangeById'](_0x2eb8ab){return this['_changes']['find'](_0x39fb10=>_0x39fb10['id']===_0x2eb8ab);}['markAllChangesAsAccepted'](){for(const _0x280491 of this['_changes'])'pending'===_0x280491['status']&&(_0x280491['status']='accepted');this['_checkIfFinished']();}['markChangeAsAccepted'](_0x3ee5ae){const _0x28fe84=this['_changes']['find'](_0x4e49ed=>_0x4e49ed['id']===_0x3ee5ae);_0x28fe84&&'pending'===_0x28fe84['status']&&(_0x28fe84['status']='accepted'),this['_checkIfFinished']();}['markChangeAsRejected'](_0x147667){const _0x372d1b=this['_changes']['find'](_0x37f626=>_0x37f626['id']===_0x147667);_0x372d1b&&'pending'===_0x372d1b['status']&&(_0x372d1b['status']='rejected'),this['_checkIfFinished']();}['markChangeAsOutdated'](_0x411446){const _0x379937=this['_changes']['find'](_0x44fddb=>_0x44fddb['id']===_0x411446);_0x379937&&'pending'===_0x379937['status']&&(_0x379937['status']='outdated'),this['_checkIfFinished']();}['markChangeAsPending'](_0x45b27e){const _0x46933b=this['_changes']['find'](_0x10ba5b=>_0x10ba5b['id']===_0x45b27e);_0x46933b&&'outdated'===_0x46933b['status']&&(_0x46933b['status']='pending'),this['_checkIfFinished']();}['activateChange'](_0x423542){this['_changes']['filter'](_0x2e8dca=>_0x2e8dca['isActivated']&&_0x2e8dca['id']!==_0x423542)['forEach'](_0x2f8c6e=>{_0x2f8c6e['isActivated']=!0x1;});const _0x3f55bf=this['_changes']['find'](_0x37dea5=>_0x37dea5['id']===_0x423542);_0x3f55bf&&'pending'===_0x3f55bf['status']&&(_0x3f55bf['isActivated']=!0x0);}['deactivateChange'](){this['_changes']['filter'](_0x3d2580=>_0x3d2580['isActivated'])['forEach'](_0x5e44a1=>{_0x5e44a1['isActivated']=!0x1;});}['forceReadyState'](){this['status']='ready';}async['sendRating'](_0x3fa120){if('initialized'===this['status']||'loading'===this['status']||'data'===this['status']||this['_wasAborted'])return;if(!this['callId']||0x0===this['_changes']['length'])return;let _0x5b53bd;if(_0x3fa120){const _0x22d1eb=this['_changes']['find'](_0x1037e3=>_0x1037e3['id']===_0x3fa120);if(_0x22d1eb&&_0x22d1eb['isRated'])return;_0x22d1eb&&(_0x5b53bd=_0x22d1eb['parent']['id'],_0x22d1eb['isRated']=!0x0);}const _0x115e1e={'positiveCount':this['_changes']['filter'](_0x44c3c9=>'accepted'===_0x44c3c9['status'])['length'],'totalCount':this['_changes']['length']};this['_sendRatingRequest'](_0x115e1e,this['callId'],_0x5b53bd);}['_addReviewCheckResult'](_0x245b0e,_0x19c5d8){const _0x54c4f7=this['_documentData']['elements']['get'](_0x245b0e);if(!_0x54c4f7)return;const _0x1ec6f8=_0x54c4f7['getContent']();if(_0x1ec6f8===_0x19c5d8)return;const _0x12fab0=new AIReviewCheckResult({'id':_0x245b0e,'contentInitial':_0x1ec6f8,'contentNew':_0x19c5d8,'documentVersion':this['_documentData']['version']});this['_results']['set'](_0x12fab0['id'],_0x12fab0),this['fire']('reviewCheckResultAdded',{'result':_0x12fab0,'source':this});}['_checkIfFinished'](){'finished'===this['status']&&(this['_changes']['filter'](_0x248b06=>'pending'===_0x248b06['status'])['length']>0x0&&(this['status']='ready')),'ready'===this['status']&&(0x0===this['_changes']['filter'](_0x100c8c=>'pending'===_0x100c8c['status'])['length']&&(this['status']='finished'));}}class AIReviewSystemCheckRun extends AIReviewCheckRun{get['subTitle'](){if(!this['_reviewParams']||0x0===this['_reviewParams']['length'])return'';const _0x46bde2=[];if(this['_reviewParams']['length']>0x0&&this['_sourceCheck']['options'])for(let _0x5b22dc=0x0;_0x5b22dc<this['_reviewParams']['length'];_0x5b22dc++){if(!this['_reviewParams'][_0x5b22dc]||!this['_sourceCheck']['options'][_0x5b22dc])continue;const _0x544171=this['_sourceCheck']['options'][_0x5b22dc],_0x5c826d=_0x544171['data']?.['find'](_0x2b6958=>_0x2b6958['id']===this['_reviewParams'][_0x5b22dc]);_0x5c826d&&_0x46bde2['push'](_0x5c826d['label']);}return _0x46bde2['join'](',\x20');}get['reviewName'](){return this['_composeReviewName']();}['_createApiRequest'](){return this['_aiConnector']['callSystemReview']({'reviewName':this['_composeReviewName'](),'content':this['_documentData']['content'],'args':this['_reviewArgs']});}['_sendRatingRequest'](_0x5188f5,_0x114265,_0x18413c){return this['_aiConnector']['upsertAIReviewRating'](this['reviewName'],_0x114265,_0x5188f5,_0x18413c);}['_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(_0x28d93d,_0x57465c)=>{const _0x5e214c=this['_aiReviewCheckList']['getCheckById'](_0x57465c['id']);if(_0x5e214c){this['_onReviewCheckRun'](_0x57465c),this['_aiReviewCoreEditing']['switchToReadOnly'](),this['_currentReviewCheckRun']=this['_createReviewCheckRun'](_0x57465c,_0x5e214c),this['_aiReviewCoreUi']['setCheckResultTitle'](this['_currentReviewCheckRun']['title'],this['_currentReviewCheckRun']['subTitle']),this['_currentReviewCheckRun']['on']('reviewCheckRunUpdated',(_0x445874,_0x36dc78)=>{switch(_0x36dc78['status']){case'data':case'loading':this['_aiReviewCoreUi']['showCheckRunResults'](_0x36dc78);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'!==_0x36dc78['status']&&'error-chunk'!==_0x36dc78['status']&&'error-general'!==_0x36dc78['status']||this['_currentReviewCheckRun']?.['sendRating']();}),this['_currentReviewCheckRun']['on']('reviewCheckResultAdded',(_0x335a51,_0x4e823a)=>{if(!this['_currentReviewCheckRun'])throw new CKEditorError('ai-review-mode-no-current-check-run',this);const _0x5ce1fe=this['_diffContent'](_0x4e823a['result']['contentInitial'],_0x4e823a['result']['contentNew']);_0x4e823a['source']['addResultChanges'](_0x4e823a['result']['id'],_0x5ce1fe);}),this['_currentReviewCheckRun']['on']('reviewCheckResultReady',(_0x403dad,_0x3980cd)=>{for(const _0xddfa89 of _0x3980cd['changes'])this['_aiReviewCoreUi']['showCheckRunResult'](_0xddfa89);this['_markChangePositionInEditorContent'](_0x3980cd['changes'],_0x3980cd['source']['documentData']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultChangeStatusUpdated',(_0x41fd3a,_0x19b355)=>{this['_aiReviewCoreUi']['updateChangeState'](_0x19b355['change']['id'],_0x19b355['status']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultActivated',(_0x5ab48a,_0x5c4475)=>{this['_onReviewCheckResultActivated'](_0x5c4475);}),this['_currentReviewCheckRun']['on']('reviewCheckResultDeactivated',()=>{this['_onReviewCheckResultDeactivated']();});try{await this['_currentReviewCheckRun']['start']();}catch(_0x3f5a24){_0x3f5a24 instanceof Error&&_0x3f5a24['message']['includes']('ai-request-aborted')||(_0x3f5a24 instanceof CKEditorError?this['_logError'](_0x3f5a24):this['_logError'](new CKEditorError('ai-review-mode-check-run-failed',this,void 0x0,_0x3f5a24)));}}else this['_logError'](new CKEditorError('ai-review-mode-source-check-not-found',this,{'checkId':_0x57465c['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 _0x37c02e=this['_currentReviewCheckRun']['getActiveChanges']();if(!_0x37c02e['length'])return;this['_aiReviewCoreEditing']['applyChange'](_0x37c02e['map'](_0x1bab89=>_0x1bab89['id']));const _0x39c752=this['_currentReviewCheckRun'];_0x39c752['markAllChangesAsAccepted'](),_0x39c752['sendRating']();}),this['listenTo'](this['_aiReviewCoreUi'],'acceptChange',(_0x4fb450,_0x27c4bf)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x27c4bf['id'])&&(this['_aiReviewCoreEditing']['applyChange']([_0x27c4bf['id']]),this['_currentReviewCheckRun']['markChangeAsAccepted'](_0x27c4bf['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x27c4bf['id']));}),this['listenTo'](this['_aiReviewCoreUi'],'dismissChange',(_0x8adf48,_0x252a8e)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x252a8e['id'])&&(this['_aiReviewCoreEditing']['rejectChange'](_0x252a8e['id']),this['_currentReviewCheckRun']['markChangeAsRejected'](_0x252a8e['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x252a8e['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',(_0x30e90a,_0x49a8cf)=>{this['_onActivateChange'](_0x49a8cf);}),this['listenTo'](this['_aiReviewCoreUi'],'deactivateChange',(_0x2bf87f,_0x542c3a)=>{this['_onDeactivateChange'](_0x542c3a);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerClicked',(_0x322a16,_0x17f8dc)=>{this['_onChangeMarkerClicked'](_0x322a16,_0x17f8dc);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerHovered',(_0x3a7aff,_0x17d77b)=>{this['_onChangeMarkerHovered'](_0x3a7aff,_0x17d77b);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerBlurred',()=>{this['_onChangeMarkerBlurred']();}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRemoved',(_0x5e76eb,_0x14bcbb)=>{this['_onChangeMarkerRemoved'](_0x5e76eb,_0x14bcbb);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRestored',(_0x2a21f4,_0x5cccdc)=>{this['_onChangeMarkerRestored'](_0x2a21f4,_0x5cccdc);});}['_createReviewCheckRun'](_0x42e27e,_0x14e0b9){return new AIReviewSystemCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x14e0b9,this['_aiConnector'],_0x42e27e['params'],_0x42e27e['args']);}['_onChangeMarkerRemoved'](_0x11c61e,_0x24eece){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsOutdated'](_0x24eece['changeId']);}['_onChangeMarkerRestored'](_0x5168c5,_0x56c30b){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsPending'](_0x56c30b['changeId']);}['_onCheckRunFinished'](){this['_aiReviewCoreUi']['showReviewCompletedView']();}['_initRequiredPlugins'](){this['_aiConnector']=this['context']['plugins']['get']('AIConnector');}['_onReviewRunLeave'](_0x349afc=!0x1){this['_currentReviewCheckRun']&&(this['_currentReviewCheckRun']['hasModifications']||this['_currentReviewCheckRun']['sendRating'](),this['_currentReviewCheckRun']['stopListening'](),this['_currentReviewCheckRun']['abort'](),this['_currentReviewCheckRun']=void 0x0),_0x349afc&&this['_aiReviewCoreUi']['showReviewCheckList'](),this['_aiReviewCoreEditing']['clearAllMarkers'](),this['_aiReviewCoreEditing']['switchToEdit'](),this['_changeActivationSource']=null;const _0x2aebde=this['_aiReviewCoreEditing']['getEditor']();_0x2aebde&&_0x2aebde['editing']['view']['change'](_0x3231b2=>{const _0x874003=_0x2aebde['editing']['view']['document']['getRoot']();_0x3231b2['removeClass']('ck-ai_review-diff',_0x874003),_0x3231b2['removeClass']('ck-ai_review-highlights',_0x874003),_0x3231b2['removeClass']('ck-ai-translate-mode-content',_0x874003);});}['_getTranslationWithDefault'](_0x322dc3,_0x1203e1){const _0x59a4df=getTranslation$i(this['context']['locale'],_0x322dc3);return _0x59a4df===_0x322dc3?_0x1203e1:_0x59a4df;}['_logError'](_0x563dab,_0x2aca69=!0x1){logError(_0x563dab['message']),_0x2aca69||(_0x563dab['message']['startsWith']('ai-review-mode-models-unable-to-retrieve')?this['_aiReviewCoreUi']['showGeneralReviewCoreErrorView']():this['_aiReviewCoreUi']['showGeneralResultsErrorView']());}['_scrollToChange'](_0xd5177a){if('content'===this['_changeActivationSource']){const _0x51a140=this['_aiReviewCoreUi']['getChangeElement'](_0xd5177a);_0x51a140&&scrollAncestorsToShowTarget(_0x51a140['closest']('.ck-ai_review__check-run-result')||_0x51a140);}else{if('panel'===this['_changeActivationSource']){const _0x5ea2c2=this['_getChangeContentElement'](_0xd5177a);if(!_0x5ea2c2)return;scrollViewportToShowTarget({'target':_0x5ea2c2,'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(_0x5de462){this['id']=_0x5de462['id'],this['commandId']=_0x5de462['commandId'],this['title']=_0x5de462['title'],this['description']=_0x5de462['description'],this['isParameterized']=_0x5de462['isParameterized'],this['useArgs']=_0x5de462['useArgs'],this['options']=_0x5de462['options'],this['args']=_0x5de462['args'];}}class AIReviewCheckList extends ObservableMixin(){['_checks']=[];['setupChecks'](_0x3577af){this['_checks']=_0x3577af['map'](_0x5a4a62=>new AIReviewCheck(_0x5a4a62));}get['checks'](){return this['_checks'];}['getCheckById'](_0x1a1162){return this['checks']['find'](_0x5e382a=>_0x5e382a['id']===_0x1a1162);}['removeCheckById'](_0x541978){this['_checks']=this['_checks']['filter'](_0x50596b=>_0x50596b['id']!==_0x541978);}}class AIReviewCheckCustom extends AIReviewCheck{['_models']=[];['_defaultModel']=null;constructor(_0x3ddb3d,_0x350f1c,_0x346da6){super(_0x3ddb3d),this['_models']=_0x350f1c,this['_defaultModel']=_0x346da6;}get['models'](){return this['_models'];}get['defaultModel'](){return this['_defaultModel'];}}class AIReviewCheckExtra extends AIReviewCheck{['isExtra']=!0x0;['prompt'];['model'];['_defaultModel']=null;constructor(_0x8d4546,_0xef8aa,_0x51f38e){super(_0x8d4546),this['prompt']=_0x8d4546['prompt'],this['model']=_0x8d4546['model'],this['model']?this['_defaultModel']=_0xef8aa['find'](_0x1254a2=>_0x1254a2['id']===this['model'])||null:this['_defaultModel']=_0x51f38e;}get['defaultModel'](){return this['_defaultModel'];}}class AIReviewModeCheckList extends AIReviewCheckList{['_allModels']=[];['_recommendedModels']=[];['_defaultModel']=null;constructor(_0x123802,_0x45aedc,_0x2b138b){super(),this['_allModels']=_0x123802,this['_recommendedModels']=_0x45aedc,this['_defaultModel']=_0x2b138b;}['setupChecks'](_0x30ce9e){this['_checks']=_0x30ce9e['map'](_0x4566be=>!0x0===_0x4566be['isExtra']?new AIReviewCheckExtra(_0x4566be,this['_allModels'],this['_defaultModel']):'custom'===_0x4566be['id']?new AIReviewCheckCustom(_0x4566be,this['_recommendedModels'],this['_defaultModel']):new AIReviewCheck(_0x4566be));}}class AIReviewCustomCheckRun extends AIReviewCheckRun{['_prompt'];['_model'];constructor(_0x19d0bf,_0x120b28,_0x5ef89d,_0x1b791d,_0x3583d2){super(_0x5ef89d,_0x1b791d,_0x3583d2),this['_prompt']=_0x19d0bf,this['_model']=_0x120b28;}get['subTitle'](){return this['_prompt'];}['_createApiRequest'](){return this['_aiConnector']['callCustomReview']({'content':this['_documentData']['content'],'prompt':this['_prompt'],'model':this['_model']});}['_sendRatingRequest'](_0x281701,_0x142512,_0x33cc3e){return this['_aiConnector']['upsertCustomAIReviewRating'](_0x142512,_0x281701,_0x33cc3e);}}class AIReviewExtraCheckRun extends AIReviewCustomCheckRun{get['subTitle'](){return'';}set['prompt'](_0xcf0465){this['_prompt']=_0xcf0465;}set['model'](_0x19482f){this['_model']=_0x19482f;}}class AIReviewModeController extends AIReviewCoreController{static get['pluginName'](){return'AIReviewModeController';}['_isDiffOn']=!0x1;['_hasDefaultAvailableCommands']=!0x1;constructor(_0xe19e99){super(_0xe19e99),this['_hasDefaultAvailableCommands']=!this['context']['config']['get']('ai.review.availableCommands'),this['context']['config']['define']('ai.review.availableCommands',AI_REVIEW_CHECKS['map'](_0x163c01=>_0x163c01['id'])),this['context']['config']['define']('ai.review.extraCommands',[]);}async['init'](){await super['init'](),this['listenTo'](this['_aiReviewCoreUi'],'toggleDiff',(_0x18482c,_0x488270)=>{this['_isDiffOn']=_0x488270['on'],this['_onDiffChange'](this['_isDiffOn']);});}['_initRequiredPlugins'](){super['_initRequiredPlugins'](),this['_aiReviewCoreUi']=this['context']['plugins']['get']('AIReviewModeUI'),this['_aiReviewCoreEditing']=this['context']['plugins']['get']('AIReviewCoreEditing');}['_createReviewCheckRun'](_0x442fb3,_0x580838){return _0x442fb3['isCustom']?new AIReviewCustomCheckRun(_0x442fb3['args']['prompt'],_0x442fb3['args']['model'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x580838,this['_aiConnector']):_0x580838['isExtra']?new AIReviewExtraCheckRun(_0x580838['prompt'],_0x580838['defaultModel']['id'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x580838,this['_aiConnector']):new AIReviewSystemCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x580838,this['_aiConnector'],_0x442fb3['params'],_0x442fb3['args']);}['_onReviewCheckResultActivated'](_0x3ea792){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x3ea792['change']['id']),this['_scrollToChange'](_0x3ea792['change']['id']);const _0x59e59f=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x3ea792['change']['id']);if(!_0x59e59f)return;const _0xaee42e=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x3ea792['change'],()=>_0x59e59f['getElement'](),void 0x0,'click',_0xaee42e?.['editing']?.['view']?.['getDomRoot'](),_0xaee42e?.['ui']?.['viewportOffset']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x3ea792['change']['id']);}['_onReviewCheckResultDeactivated'](){this['_aiReviewCoreUi']['resetActiveStateInResults'](),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']();}['_onActivateChange'](_0x4ea47f){this['_currentReviewCheckRun']&&'click'===_0x4ea47f['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0x4ea47f['id']));}['_onDeactivateChange'](_0x5945af){this['_currentReviewCheckRun']&&'balloon'===_0x5945af['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x4d6ad7,_0x58961e){if(!this['_currentReviewCheckRun'])return;this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x58961e['changeId']);const _0x44386e=this['_currentReviewCheckRun']['getChangeById'](_0x58961e['changeId']);if(!_0x44386e)return;const _0x53b6d3=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x44386e,_0x58961e['markerElement'],_0x58961e['domEvent'],'click',_0x53b6d3?.['editing']?.['view']?.['getDomRoot'](),_0x53b6d3?.['ui']?.['viewportOffset']);}['_onChangeMarkerHovered'](_0xab9832,_0x599fbe){if(!this['_currentReviewCheckRun'])return;if(this['_currentReviewCheckRun']['isAnyChangeActivated']())return;const _0x2f251e=this['_currentReviewCheckRun']['getChangeById'](_0x599fbe['changeId']);if(!_0x2f251e)return;const _0x84c028=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x2f251e,_0x599fbe['markerElement'],_0x599fbe['domEvent'],'hover',_0x84c028?.['editing']?.['view']?.['getDomRoot'](),_0x84c028?.['ui']?.['viewportOffset']);}['_onChangeMarkerBlurred'](){if(!this['_currentReviewCheckRun'])return;this['_currentReviewCheckRun']['isAnyChangeActivated']()||this['_aiReviewCoreUi']['hideChangeBalloon']();}['_getChangeContentElement'](_0x453257){const _0x98c497=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x453257);return _0x98c497?_0x98c497['getElement']():null;}['_markChangePositionInEditorContent'](_0x4b952b,_0x4bcfd3){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x4b952b,_0x4bcfd3);}['_diffContent'](_0x187832,_0x3503a3){return this['_aiReviewCoreEditing']['diffContent'](_0x187832,_0x3503a3);}['_onReviewCheckRun'](){this['_onDiffChange'](this['_isDiffOn']);}['_onDiffChange'](_0x172428){const _0x21665e=this['_aiReviewCoreEditing']['getEditor']();_0x172428?this['_aiReviewCoreUi']['hideDiffInBalloon']():this['_aiReviewCoreUi']['showDiffInBalloon'](),_0x21665e&&_0x21665e['editing']['view']['change'](_0x44dccc=>{const _0x25d88b=_0x21665e['editing']['view']['document']['getRoot']();for(const _0x55b343 of _0x25d88b['getClassNames']())_0x55b343['startsWith']('ck-ai_review-')&&_0x44dccc['removeClass'](_0x55b343,_0x25d88b);_0x44dccc['addClass'](_0x172428?'ck-ai_review-diff':'ck-ai_review-highlights',_0x25d88b);});}async['_getChecksList'](){const _0x19ee56=[...AI_REVIEW_CHECKS,...this['_getExtraChecks']()],_0x20d12f=this['context']['config']['get']('ai.review.availableCommands')||[];this['_logErrorForNonExistentChecks'](_0x20d12f,_0x19ee56);let _0x5e9792=_0x19ee56;this['_hasDefaultAvailableCommands']||(_0x5e9792=_0x20d12f['map'](_0x585d97=>_0x19ee56['find'](_0xc48576=>_0xc48576['id']===_0x585d97))['filter'](_0x5270c1=>!!_0x5270c1)),_0x5e9792=_0x5e9792['map'](_0xe5d5a4=>_0xe5d5a4['isExtra']?_0xe5d5a4:this['_translateReviewCheck'](_0xe5d5a4));const _0x14ff05=_0x5e9792['some'](_0x1b74b7=>_0x1b74b7['isExtra']||'custom'===_0x1b74b7['id']);let _0x1ba6ac=[],_0x201b31=[],_0x31dd21=null;if(_0x14ff05){const _0x210e4a=await this['_getModels']();_0x1ba6ac=_0x210e4a['all'],_0x201b31=_0x210e4a['recommended'],_0x31dd21=_0x210e4a['default'];}const _0x82ec91=new AIReviewModeCheckList(_0x1ba6ac,_0x201b31,_0x31dd21);return _0x82ec91['setupChecks'](_0x5e9792),_0x14ff05&&this['_filterChecksWithMissingModel'](_0x82ec91),_0x82ec91;}['_getExtraChecks'](){return(this['context']['config']['get']('ai.review.extraCommands')||[])['map'](_0x1a4500=>({'id':_0x1a4500['id'],'commandId':_0x1a4500['id'],'title':_0x1a4500['label'],'description':_0x1a4500['description'],'isParameterized':!0x1,'isExtra':!0x0,'prompt':_0x1a4500['prompt'],'model':_0x1a4500['model']}));}['_logErrorForNonExistentChecks'](_0x6d246e,_0x278514){const _0x1ad915=_0x6d246e['filter'](_0x2431de=>!_0x278514['some'](_0x19ef68=>_0x19ef68['id']===_0x2431de));_0x1ad915['length']&&this['_logError'](new CKEditorError('ai-review-mode-non-existent-commands-used',this,{'commandIds':_0x1ad915['join'](',\x20')}),!0x0);}async['_getModels'](){try{const _0x1fc777=new AIModels({'connector':this['_aiConnector'],'config':this['context']['config']['get']('ai.models'),'locale':this['context']['locale']});return{'all':await _0x1fc777['getAll'](),'recommended':await _0x1fc777['getAvailableModels'](),'default':await _0x1fc777['getDefault']()};}catch(_0x482a17){return this['_logError'](new CKEditorError('ai-review-mode-models-unable-to-retrieve',this,void 0x0,_0x482a17)),{'all':[],'recommended':[],'default':null};}}['_translateReviewCheck'](_0x1e888c){const _0x48cdc2='AI_REVIEW_CHECK_'+_0x1e888c['id']['toUpperCase']()['replaceAll']('-','_'),_0x322b98={..._0x1e888c,'title':this['_getTranslationWithDefault'](_0x48cdc2+'_TITLE',_0x1e888c['title']),'description':this['_getTranslationWithDefault'](_0x48cdc2+'_DESCRIPTION',_0x1e888c['description'])};return _0x1e888c['options']&&(_0x322b98['options']=_0x1e888c['options']['map'](_0x16c947=>({..._0x16c947,'label':this['_getTranslationWithDefault'](_0x48cdc2+'_OPTIONS_LABEL',_0x16c947['label']||''),'data':_0x16c947['data']?_0x16c947['data']['map'](_0x4093e2=>({..._0x4093e2,'label':this['_getTranslationWithDefault'](_0x48cdc2+'_OPTIONS_DATA_'+_0x4093e2['id']['toUpperCase'](),_0x4093e2['label'])})):void 0x0}))),_0x322b98;}['_filterChecksWithMissingModel'](_0xc5de0e){const _0x126d20=[];_0xc5de0e['checks']['forEach'](_0x47d529=>{(_0x47d529 instanceof AIReviewCheckExtra&&!_0x47d529['defaultModel']||_0x47d529 instanceof AIReviewCheckCustom&&!_0x47d529['models']['length'])&&_0x126d20['push'](_0x47d529['id']);}),_0x126d20['length']&&_0x126d20['forEach'](_0x28575c=>{_0xc5de0e['removeCheckById'](_0x28575c),this['_logError'](new CKEditorError('ai-review-mode-command-unavailable-due-to-missing-model',this,{'commandId':_0x28575c}),!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'](_0x345c53){this['_checks']=_0x345c53['map'](_0x5faabd=>new AITranslateCheck(_0x5faabd));}}class AITranslateCheckRun extends AIReviewSystemCheckRun{['_title'];constructor(_0x3af9c8,_0x4f2eb0,_0x2456c4,_0x6e26df,_0x38b128,_0x432431){super(_0x3af9c8,_0x4f2eb0,_0x2456c4,_0x38b128,_0x432431),this['_title']=_0x6e26df;}get['title'](){return this['_title'];}get['subTitle'](){return this['_sourceCheck']['title'];}}class AITranslateController extends AIReviewCoreController{static get['pluginName'](){return'AITranslateController';}constructor(_0x31f469){super(_0x31f469),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'](_0x4cbeba,_0x36c97c){return new AITranslateCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x36c97c,this['_aiConnector'],getTranslation$i(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),_0x4cbeba['params'],_0x4cbeba['args']);}['_onReviewCheckResultActivated'](_0x3ef6cb){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x3ef6cb['change']['id']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x3ef6cb['change']['id']);}['_onReviewCheckResultDeactivated'](){this['_aiReviewCoreEditing']['setAllMarkersAsInactive'](),this['_aiReviewCoreUi']['resetActiveStateInResults']();}['_onActivateChange'](_0x593c06){this['_currentReviewCheckRun']&&('hover'===_0x593c06['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0x593c06['id'])),'click'===_0x593c06['uiInteraction']&&this['_scrollToChange'](_0x593c06['id']));}['_onDeactivateChange'](_0x535ece){this['_currentReviewCheckRun']&&'panel'===_0x535ece['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x4b5fd3,_0x253b38){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x253b38['changeId']),this['_scrollToChange'](_0x253b38['changeId']));}['_onChangeMarkerHovered'](_0x57e4d5,_0x2d919f){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x2d919f['changeId']),this['_aiReviewCoreEditing']['reactivateMarkers'](_0x2d919f['changeId']));}['_onChangeMarkerBlurred'](){this['_currentReviewCheckRun']&&'content'===this['_changeActivationSource']&&(this['_currentReviewCheckRun']['deactivateChange'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']());}['_getChangeContentElement'](_0x7bef8d){return this['_aiReviewCoreEditing']['getContentElementForChange'](_0x7bef8d);}['_markChangePositionInEditorContent'](_0x11a32f,_0x36716d){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x11a32f,_0x36716d);}['_diffContent'](_0x58d03f,_0x591a8f){return this['_aiReviewCoreEditing']['diffContent'](_0x58d03f,_0x591a8f,!0x0);}['_onReviewCheckRun'](){const _0x1c24ea=this['_aiReviewCoreEditing']['getEditor']();_0x1c24ea&&_0x1c24ea['editing']['view']['change'](_0x3c6150=>{const _0x4e0ba2=_0x1c24ea['editing']['view']['document']['getRoot']();for(const _0x5f2580 of _0x4e0ba2['getClassNames']())(_0x5f2580['startsWith']('ck-ai-review-')||'ck-ai-translate-'===_0x5f2580)&&_0x3c6150['removeClass'](_0x5f2580,_0x4e0ba2);_0x3c6150['addClass']('ck-ai-translate-mode-content',_0x4e0ba2);});}async['_getChecksList'](){const _0x3cd146=[],_0x25e32d=this['context']['config']['get']('ai.translate.languages')||[];for(const _0x2a5686 of _0x25e32d)_0x3cd146['push']({'title':_0x2a5686['label'],'id':_0x2a5686['id'],'commandId':_0x2a5686['id'],'description':'','isParameterized':!0x1,'useArgs':!0x0,'args':{'language':_0x2a5686['id']}});const _0x2f1e91=new AITranslateCheckList();return _0x2f1e91['setupChecks'](this['_translateChecks'](_0x3cd146)),_0x2f1e91;}['_translateChecks'](_0x40c122){return _0x40c122['map'](_0x267c0c=>{const _0x1dd078='AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_'+_0x267c0c['title']['toUpperCase']()['replaceAll']('-','_');return{..._0x267c0c,'title':this['_getTranslationWithDefault'](_0x1dd078,_0x267c0c['title'])};});}}class AITranslateCheckResultsView extends AIReviewCoreUICheckResultsView{constructor(_0x306a26,_0x5d5c08){super(_0x306a26,_0x5d5c08),this['on']('set:isLoading',(_0x122b70,_0x4829cc,_0x52958d)=>{_0x52958d&&(this['headerTitle']=getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE'));}),this['on']('set:isResultReady',(_0x18c2bf,_0x1bf69d,_0x55b467)=>{_0x55b467&&(this['headerTitle']=getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE'));});}['_createAcceptAllButtonView'](){const _0x564d3e=super['_createAcceptAllButtonView']();return _0x564d3e['set']('label',getTranslation$i(this['locale'],'AI_TRANSLATE_ACCEPT_ALL')),_0x564d3e;}['_createExitReviewButtonView'](){const _0x3e5e9d=super['_createExitReviewButtonView']();return _0x3e5e9d['set']('label',getTranslation$i(this['locale'],'AI_CHAT_HISTORY_CANCEL')),_0x3e5e9d;}}class AITranslateCheckListView extends AIReviewCoreReviewCheckListView{['_setupTemplate'](){const _0x597940=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-translate__check-list-wrapper',_0x597940['if']('isVisible','ck-hidden',_0x9e13a9=>!_0x9e13a9)]},'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',_0x597940['if']('isVisible','ck-hidden',_0x285465=>!_0x285465)]},'children':this['_checkViews']}]});}}class AITranslateUI extends AIReviewCoreUI{static get['pluginName'](){return'AITranslateUI';}['createMainView'](){const _0x1bd16a=this['context']['locale'],_0x43107c=new FormHeaderView(_0x1bd16a,{'label':getTranslation$i(_0x1bd16a,'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'icon':IconAITranslate$1,'class':'ck-ai-header\x20ck-ai-header_review-translate'}),_0x2b8b48=new AIReviewCoreView(_0x1bd16a,{'header':_0x43107c,'list':new AITranslateCheckListView(_0x1bd16a),'results':new AITranslateCheckResultsView(_0x1bd16a,{'generalErrorText':getTranslation$i(_0x1bd16a,'AI_TRANSLATE_GENERAL_ERROR_MESSAGE')}),'completed':new AIReviewCoreReviewCompletedView(_0x1bd16a,{'headerText':getTranslation$i(_0x1bd16a,'AI_TRANSLATE_FINISH_HEADER_TITLE'),'emptyResultsText':getTranslation$i(_0x1bd16a,'AI_TRANSLATE_EMPTY_RESULTS_TEXT'),'buttonText':getTranslation$i(_0x1bd16a,'AI_TRANSLATE_FINISH_BUTTON_LABEL')})});return _0x2b8b48['extendTemplate']({'attributes':{'class':'ck-ai-translate-mode'}}),_0x2b8b48;}['registerTab'](){const _0x145371=this['context']['plugins']['get']('AITabs');_0x145371['view']['on']('activateTab',(_0x36094a,_0x5c93cf)=>{'translate'===_0x5c93cf?this['fire']('getReviewCheckList'):this['fire']('leaveReview');}),_0x145371['view']['addTab']({'id':'translate','buttonLabel':getTranslation$i(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'buttonIcon':IconAITranslate$1,'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(_0x12b3ea,_0x196627){super(_0x12b3ea),this['_transformCallback']=_0x196627;}['execute'](){const _0x24fad0=this['editor']['model'],_0x418b32=Array['from'](this['_getAffectedRanges']()),_0x4785e2=Array['from'](_0x24fad0['document']['selection']['getRanges']());_0x24fad0['change'](_0x7213f7=>{for(const _0x20b0cf of _0x418b32)this['_modifyContent'](_0x20b0cf,_0x7213f7);_0x7213f7['setSelection'](_0x4785e2);});}['refresh'](){for(const _0x1137f8 of this['_getAffectedRanges']())for(const _0x528013 of _0x1137f8)if(_0x528013['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x38bbe6=this['editor']['model'],_0x3a3ac5=_0x38bbe6['document']['selection'];if(_0x3a3ac5['isCollapsed']){const _0x538617=this['_findAncestorTextBlock'](_0x3a3ac5['getFirstPosition']()['parent']);return _0x538617?[_0x38bbe6['createRangeIn'](_0x538617)]:[];}return _0x3a3ac5['getRanges']();}['_modifyContent'](_0x1223f9,_0x59b11e){for(const _0x3555c9 of this['_getElementsAllowingText'](_0x1223f9)){const _0x2eb7cd=this['_getElementTextContent'](_0x3555c9),_0x525932=this['_transformCallback'](_0x2eb7cd);for(const _0x704fd0 of this['_getTextNodesRangeLimited'](_0x3555c9,_0x1223f9))this['_replaceTextNodeData'](_0x704fd0,_0x525932,_0x59b11e);}}['_findAncestorTextBlock'](_0x5d562d){const _0x432525=this['editor']['model']['schema'];if(_0x5d562d['is']('element')&&_0x432525['checkChild'](_0x5d562d,'$text'))return _0x5d562d;const _0x1c9619=_0x5d562d['parent'];return!_0x1c9619||_0x432525['isLimit'](_0x5d562d)?null:this['_findAncestorTextBlock'](_0x1c9619);}*['_getElementsAllowingText'](_0x1840b4){const _0x5d5c49=new Set();for(const {item:_0x11d014}of _0x1840b4['getWalker']()){const _0x52a804=this['_findAncestorTextBlock'](_0x11d014);_0x52a804&&!_0x5d5c49['has'](_0x52a804)&&(_0x5d5c49['add'](_0x52a804),yield _0x52a804);}}['_getElementTextContent'](_0x1d8a9c){return Array['from'](_0x1d8a9c['getChildren']())['reduce']((_0x4d5368,_0x458629)=>_0x4d5368+(_0x458629['is']('$text')?_0x458629['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x226c14,_0x39f060){const _0x186600=_0x39f060['getIntersection'](this['editor']['model']['createRangeIn'](_0x226c14));if(_0x186600){for(const _0x5113d9 of _0x186600['getItems']())_0x5113d9['is']('$textProxy')&&_0x5113d9['parent']==_0x226c14&&(yield _0x5113d9);}}['_replaceTextNodeData'](_0xe74127,_0x3a2ec0,_0x447c4a){const _0x5c5a03=_0x3a2ec0['substring'](_0xe74127['startOffset'],_0xe74127['endOffset']);if(_0x5c5a03===_0xe74127['data'])return;const _0x588c0f=_0xe74127['getAttributes']();this['editor']['model']['insertContent'](_0x447c4a['createText'](_0x5c5a03,_0x588c0f),_0x447c4a['createSelection'](_0x447c4a['createRangeOn'](_0xe74127)));}}function getTranslation$g(_0xd5af2,_0x59a98c,..._0x41550e){const t=_0xd5af2['t'];switch(_0x59a98c){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',..._0x41550e);default:return _0x59a98c;}}class CaseChangeEditing extends Plugin{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3600aa=this['editor'],_0x37a76c=_0x3600aa['locale']['contentLanguage'],_0x47d0b2=normalizeExcludeWordCallback(_0x3600aa['config']['get']('caseChange.titleCase.excludeWords')),_0x5ad8fe={'changeCaseUpper':new CaseChangeCommand(_0x3600aa,_0x5ed57a=>_0x5ed57a['toLocaleUpperCase'](_0x37a76c)),'changeCaseLower':new CaseChangeCommand(_0x3600aa,_0x2d1612=>_0x2d1612['toLocaleLowerCase'](_0x37a76c)),'changeCaseTitle':new CaseChangeCommand(_0x3600aa,_0x36de3d=>capitalizeText(_0x36de3d,_0x47d0b2,_0x37a76c))};for(const [_0x53810a,_0x254bd1]of Object['entries'](_0x5ad8fe))_0x3600aa['commands']['add'](_0x53810a,_0x254bd1),_0x254bd1['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x53810a);});this['listenTo'](_0x3600aa['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x3600aa['keystrokes']['set']('shift+f3',(_0x28570e,_0x442ff3)=>{const _0x508af0=_getOptions(this['editor']['locale']),_0x42dc08=_0x508af0[this['_currentCommandIndex']%_0x508af0['length']]['commandName'];_0x3600aa['execute'](_0x42dc08),this['_currentCommandIndex']++,_0x442ff3();});}['afterInit'](){checkLicense$i(this);}['_announceCaseChangeOperation'](_0x111e99){const {ui:_0x3419fc,locale:_0x1a84b6}=this['editor'],_0xf740fa=_getOptions(_0x1a84b6)['find'](_0x22f3e4=>_0x22f3e4['commandName']===_0x111e99)['label']['toLowerCase']();_0x3419fc['ariaLiveAnnouncer']['announce'](getTranslation$g(_0x1a84b6,'Changed\x20case\x20to\x20%0',_0xf740fa));}}function _getOptions(_0x56a85b){return[{'label':getTranslation$g(_0x56a85b,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':getTranslation$g(_0x56a85b,'lowercase'),'commandName':'changeCaseLower'},{'label':getTranslation$g(_0x56a85b,'Title\x20Case'),'commandName':'changeCaseTitle'}];}function capitalizeText(_0x89208c,_0x43a48c,_0x38b3d){return replaceWords(_0x89208c,(_0x1165a1,_0x52acd6,_0x4874e6)=>{const _0x376037=_0x1165a1['toLocaleLowerCase'](_0x38b3d);return _0x43a48c(_0x376037,{'charOffset':_0x52acd6,'wordIndex':_0x4874e6,'blockText':_0x89208c})?_0x376037:_0x376037['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x1539a0=>_0x1539a0['toLocaleUpperCase'](_0x38b3d));});}function replaceWords(_0x5c6f18,_0x28b8f0){let _0x5a6ce1='',_0x128bc8=0x0,_0x477eca=0x0;for(const _0x1ccebd of _0x5c6f18['matchAll'](/ +/g)){const _0x2bd28f=_0x1ccebd['index'],_0x4a2280=_0x5c6f18['substring'](_0x128bc8,_0x2bd28f);_0x4a2280['length']&&(_0x5a6ce1+=_0x28b8f0(_0x4a2280,_0x128bc8,_0x477eca++)),_0x5a6ce1+=_0x1ccebd[0x0],_0x128bc8=_0x2bd28f+_0x1ccebd[0x0]['length'];}const _0x554712=_0x5c6f18['substring'](_0x128bc8);return _0x554712['length']&&(_0x5a6ce1+=_0x28b8f0(_0x554712,_0x128bc8,_0x477eca)),_0x5a6ce1;}function normalizeExcludeWordCallback(_0x655d28=[]){return'function'==typeof _0x655d28?_0x655d28:(_0x20f61d,{wordIndex:_0x3418e0})=>_0x3418e0>0x0&&_0x655d28['includes'](_0x20f61d);}async function checkLicense$i(_0x31ec51){const _0x568894=_0x1d5747([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]),_0x2b0f4a=window[_0x1d5747([0x44,0x61,0x74,0x65])][_0x1d5747([0x6e,0x6f,0x77])](),_0x3f9760=_0x31ec51[_0x1d5747([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x500dac=new window[(_0x1d5747([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4273f7=>{_0x3f9760[_0x1d5747([0x6f,0x6e,0x63,0x65])](_0x1d5747([0x72,0x65,0x61,0x64,0x79]),_0x4273f7);}),_0x12eb27={[_0x1d5747([0x6b,0x74,0x79])]:_0x1d5747([0x45,0x43]),[_0x1d5747([0x75,0x73,0x65])]:_0x1d5747([0x73,0x69,0x67]),[_0x1d5747([0x63,0x72,0x76])]:_0x1d5747([0x50,0x2d,0x32,0x35,0x36]),[_0x1d5747([0x78])]:_0x1d5747([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]),[_0x1d5747([0x79])]:_0x1d5747([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]),[_0x1d5747([0x61,0x6c,0x67])]:_0x1d5747([0x45,0x53,0x32,0x35,0x36])},_0x17a128=_0x3f9760[_0x1d5747([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d5747([0x67,0x65,0x74])](_0x1d5747([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x2220ca=await(async function(){let _0x39c1d0,_0x5e8438=null,_0x120f20=null;try{if(_0x17a128==_0x1d5747([0x47,0x50,0x4c]))return _0x1d5747([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x39c1d0=(function(){const _0x3b8170=_0x17a128[_0x1d5747([0x73,0x70,0x6c,0x69,0x74])](_0x1d5747([0x2e]));if(0x3!=_0x3b8170[_0x1d5747([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x1d97f9=_0x3b8170[0x1];return _0x42b0e1(_0x1d97f9);function _0x42b0e1(_0x3f963f){const _0x557ae6=_0x410d3d(_0x3f963f);return _0x557ae6&&_0x4c1997()?_0x557ae6:null;function _0x4c1997(){const _0x2b8f7a=_0x557ae6[_0x1d5747([0x6a,0x74,0x69])],_0x5dd1b8=window[_0x1d5747([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b8f7a[_0x1d5747([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b8f7a[_0x1d5747([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb5ba5e={..._0x557ae6,[_0x1d5747([0x6a,0x74,0x69])]:_0x2b8f7a[_0x1d5747([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b8f7a[_0x1d5747([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb5ba5e[_0x1d5747([0x76,0x63])],_0x19edfa(_0xb5ba5e)==_0x5dd1b8;}}}()),!_0x39c1d0)return _0x1d5747([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x39c1d0[_0x1d5747([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x120f20=function(_0x34ed2f,_0x511427){return new window[(_0x1d5747([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31663f=>{if(_0x534814())return _0x31663f(_0x1d5747([0x56,0x61,0x6c,0x69,0x64]));_0x75f57a(),_0x3f9760[_0x1d5747([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d5747([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26e49a=!0x1;const _0x37c39f=uid();function _0x361461(_0x3509ed){return!!_0x3509ed&&(typeof _0x3509ed===_0x1d5747([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3509ed===_0x1d5747([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3509ed[_0x1d5747([0x74,0x68,0x65,0x6e])]===_0x1d5747([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3509ed[_0x1d5747([0x63,0x61,0x74,0x63,0x68])]===_0x1d5747([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a0141(_0xa9394f){_0x24bba1(_0xa9394f)[_0x1d5747([0x74,0x68,0x65,0x6e])](_0x4565ad=>{if(!_0x4565ad||_0x4565ad[_0x1d5747([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d5747([0x6f,0x6b]))return _0x1d5747([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47ca62(_0x19edfa(_0x37c39f+_0x511427))!=_0x4565ad[_0x1d5747([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d5747([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d5747([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d5747([0x74,0x68,0x65,0x6e])](_0x1bcbf5=>(_0x130218(),_0x1bcbf5),()=>{const _0x3113c5=_0x245c81();return null==_0x3113c5?(_0x130218(),_0x1d5747([0x56,0x61,0x6c,0x69,0x64])):_0x1d5747(_0x2b0f4a-_0x3113c5>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d5747([0x74,0x68,0x65,0x6e])](_0x31663f)[_0x1d5747([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31663f(_0x1d5747([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5399c7=0x36ee80;function _0x130218(){const _0x336ff6=_0x1d5747([0x6c,0x6c,0x63,0x74,0x2d])+_0x47ca62(_0x19edfa(_0x34ed2f)),_0x21d9c4=_0x4f71e2(_0x47ca62(window[_0x1d5747([0x4d,0x61,0x74,0x68])][_0x1d5747([0x63,0x65,0x69,0x6c])](_0x2b0f4a/_0x5399c7)));window[_0x1d5747([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d5747([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x336ff6,_0x21d9c4);}function _0x245c81(){const _0x5a59b7=_0x1d5747([0x6c,0x6c,0x63,0x74,0x2d])+_0x47ca62(_0x19edfa(_0x34ed2f)),_0x4d6fe3=window[_0x1d5747([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d5747([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a59b7);return _0x4d6fe3?window[_0x1d5747([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f71e2(_0x4d6fe3),0x10)*_0x5399c7:null;}function _0x24bba1(_0x1e4da6){return new window[(_0x1d5747([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51e46c,_0x161ac4)=>{_0x1e4da6[_0x1d5747([0x74,0x68,0x65,0x6e])](_0x51e46c,_0x161ac4),window[_0x1d5747([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x161ac4,0x1d4c0);});}}_0x3f9760[_0x1d5747([0x6f,0x6e])](_0x1d5747([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x8ba523,_0x27c822)=>{if(_0x27c822[0x0]!=_0x34ed2f)return _0x31663f(_0x1d5747([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x27c822[0x1]={..._0x27c822[0x1],[_0x1d5747([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37c39f};},{[_0x1d5747([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d5747([0x68,0x69,0x67,0x68])}),_0x3f9760[_0x1d5747([0x6f,0x6e])](_0x1d5747([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5094a6=>{_0x361461(_0x5094a6[_0x1d5747([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26e49a=!0x0,_0x5a0141(_0x5094a6[_0x1d5747([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d5747([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d5747([0x6c,0x6f,0x77])}),_0x500dac[_0x1d5747([0x74,0x68,0x65,0x6e])](()=>{_0x26e49a||_0x31663f(_0x1d5747([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x534814(){return _0x3f9760[_0x1d5747([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d5747([0x76,0x69,0x65,0x77])][_0x1d5747([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d5747([0x61,0x75,0x74,0x6f]);}function _0x75f57a(){_0x3f9760[_0x1d5747([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d5747([0x76,0x69,0x65,0x77])][_0x1d5747([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d5747([0x61,0x75,0x74,0x6f]);}}(_0x39c1d0[_0x1d5747([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x39c1d0[_0x1d5747([0x6a,0x74,0x69])]));const _0xc2874e=await(async function(){let _0x3a4368=!0x0;try{const _0x3abcb2=_0x17a128[_0x1d5747([0x73,0x70,0x6c,0x69,0x74])](_0x1d5747([0x2e])),[_0x284091,_0x33368c,_0x4a5f36]=_0x3abcb2;return _0x578695(_0x284091),await _0xa0dd67(_0x284091,_0x33368c,_0x4a5f36),_0x3a4368;}catch{return!0x1;}function _0x578695(_0x53239c){const _0x43a0cc=_0x410d3d(_0x53239c);_0x43a0cc&&_0x43a0cc[_0x1d5747([0x61,0x6c,0x67])]==_0x1d5747([0x45,0x53,0x32,0x35,0x36])||(_0x3a4368=!0x1);}async function _0xa0dd67(_0x4a51b0,_0x1bfdb1,_0x14fad1){const _0xaf57ec=window[_0x1d5747([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d5747([0x66,0x72,0x6f,0x6d])](_0x42f80d(_0x14fad1),_0x3d3608=>_0x3d3608[_0x1d5747([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x168db3=new window[(_0x1d5747([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d5747([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a51b0+_0x1d5747([0x2e])+_0x1bfdb1),_0x4d6203=window[_0x1d5747([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d5747([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d6203)return;const _0x119100=await _0x4d6203[_0x1d5747([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d5747([0x6a,0x77,0x6b]),_0x12eb27,{[_0x1d5747([0x6e,0x61,0x6d,0x65])]:_0x1d5747([0x45,0x43,0x44,0x53,0x41]),[_0x1d5747([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d5747([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d5747([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d6203[_0x1d5747([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d5747([0x6e,0x61,0x6d,0x65])]:_0x1d5747([0x45,0x43,0x44,0x53,0x41]),[_0x1d5747([0x68,0x61,0x73,0x68])]:{[_0x1d5747([0x6e,0x61,0x6d,0x65])]:_0x1d5747([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x119100,_0xaf57ec,_0x168db3)||(_0x3a4368=!0x1);}}());return _0xc2874e?(function(){const _0x23be5b=_0x39c1d0[_0x1d5747([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x23be5b)return!0x1;if(_0x23be5b[_0x1d5747([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5747([0x2a])))return!0x0;if(_0x23be5b[_0x1d5747([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5747([0x43,0x43])))return!0x0;if(_0x23be5b[_0x1d5747([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5747([0x50,0x50])))return!0x0;return!0x1;}())?(function(){const _0x1c007b=[_0x1d5747([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d5747([0x74,0x72,0x69,0x61,0x6c])][_0x1d5747([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c1d0[_0x1d5747([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b0f4a/0x3e8:0x69d59a80;return _0x39c1d0[_0x1d5747([0x65,0x78,0x70])]<_0x1c007b;}())?_0x1d5747([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1a2164=_0x39c1d0[_0x1d5747([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a2164||0x0==_0x1a2164[_0x1d5747([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1dfab2}=new URL(window[_0x1d5747([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a2164[_0x1d5747([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dfab2))return!0x0;const _0x1225e4=_0x1dfab2[_0x1d5747([0x73,0x70,0x6c,0x69,0x74])](_0x1d5747([0x2e]));return _0x1a2164[_0x1d5747([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x570f2b=>_0x570f2b[_0x1d5747([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5747([0x2a])))[_0x1d5747([0x6d,0x61,0x70])](_0x1f5bf0=>_0x1f5bf0[_0x1d5747([0x73,0x70,0x6c,0x69,0x74])](_0x1d5747([0x2e])))[_0x1d5747([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48392c=>_0x48392c[_0x1d5747([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1225e4[_0x1d5747([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d5747([0x6d,0x61,0x70])](_0xc20bee=>Array(_0x1225e4[_0x1d5747([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc20bee[_0x1d5747([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d5747([0x66,0x69,0x6c,0x6c])](_0xc20bee[0x0]===_0x1d5747([0x2a])?_0x1d5747([0x2a]):'')[_0x1d5747([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc20bee))[_0x1d5747([0x73,0x6f,0x6d,0x65])](_0x4330d9=>_0x1225e4[_0x1d5747([0x65,0x76,0x65,0x72,0x79])]((_0x2bdd39,_0x9f9587)=>_0x4330d9[_0x9f9587]===_0x2bdd39||_0x4330d9[_0x9f9587]===_0x1d5747([0x2a])));}())?(_0x39c1d0[_0x1d5747([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d5747([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e8438=function(_0x52ccbd){const _0x368f6d=new window[(_0x1d5747([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df179=>setTimeout(_0x3df179,0x93ecc)),_0x23f47b=_0x500dac[_0x1d5747([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d5747([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x221ca6=>{let _0x1234b6=0x0;_0x3f9760[_0x1d5747([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d5747([0x6f,0x6e])](_0x1d5747([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xac3064,_0x245324)=>{_0x245324[0x0][_0x1d5747([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1234b6++,0x5e8==_0x1234b6&&(_0x221ca6(),_0xac3064[_0x1d5747([0x6f,0x66,0x66])]());});})),_0x24e523=[_0x368f6d,_0x23f47b];return window[_0x1d5747([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d5747([0x72,0x61,0x63,0x65])](_0x24e523)[_0x1d5747([0x74,0x68,0x65,0x6e])](()=>_0x52ccbd);}(_0x1d5747([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5e8438&&_0x120f20)return new window[(_0x1d5747([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1acb0c,_0xd64c2b)=>{_0x5e8438[_0x1d5747([0x74,0x68,0x65,0x6e])](_0x1acb0c,_0xd64c2b),_0x120f20[_0x1d5747([0x74,0x68,0x65,0x6e])](_0x5a8562=>{_0x5a8562!=_0x1d5747([0x56,0x61,0x6c,0x69,0x64])&&_0x1acb0c(_0x5a8562);},_0xd64c2b);});return _0x5e8438||_0x120f20||_0x1d5747([0x56,0x61,0x6c,0x69,0x64]);}())):_0x1d5747([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d5747([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d5747([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d5747([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x410d3d(_0x239c3a){return _0x239c3a[_0x1d5747([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d5747([0x65,0x79]))?JSON[_0x1d5747([0x70,0x61,0x72,0x73,0x65])](_0x42f80d(_0x239c3a)):null;}function _0x42f80d(_0x59eb87){return window[_0x1d5747([0x61,0x74,0x6f,0x62])](_0x59eb87[_0x1d5747([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d5747([0x2b]))[_0x1d5747([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d5747([0x2f])));}function _0x19edfa(_0x6604d4){let _0x45ec38=0x1505;function _0x49736e(_0x5a5f58){for(let _0x24f54d=0x0;_0x24f54d<_0x5a5f58[_0x1d5747([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24f54d++){const _0x3b6436=_0x5a5f58[_0x1d5747([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24f54d);_0x45ec38=(_0x45ec38<<0x5)+_0x45ec38+_0x3b6436,_0x45ec38&=_0x45ec38;}}return function _0x4411b7(_0x46827c){Array[_0x1d5747([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46827c)?_0x46827c[_0x1d5747([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4411b7):_0x46827c&&typeof _0x46827c==_0x1d5747([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d5747([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46827c)[_0x1d5747([0x73,0x6f,0x72,0x74])]()[_0x1d5747([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5da6a7,_0x2e97af])=>{_0x49736e(_0x5da6a7),_0x4411b7(_0x2e97af);}):_0x49736e(window[_0x1d5747([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46827c));}(_0x6604d4),_0x45ec38>>>0x0;}function _0x47ca62(_0x443cbf){return _0x443cbf[_0x1d5747([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d5747([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d5747([0x30]));}function _0x4f71e2(_0x2c3c6c){return _0x2c3c6c[_0x1d5747([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d5747([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d5747([0x6a,0x6f,0x69,0x6e])]('');}function _0x5ed41b(){}function _0x1d5747(_0x23db69){return _0x23db69['map'](_0x93dcc9=>String['fromCharCode'](_0x93dcc9))['join']('');}!function(_0x851ff3){const _0x4ebdac=(function(){const _0x442997=window[_0x1d5747([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d5747([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d5747([0x6e,0x6f,0x77])]())[_0x1d5747([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d5747([0x2e]),'');let _0x398f90=_0x1d5747([0x45]);for(let _0x39cf6c=0x0;_0x39cf6c<_0x442997[_0x1d5747([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39cf6c+=0x2){let _0x241ed3=window[_0x1d5747([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x442997[_0x1d5747([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39cf6c,_0x39cf6c+0x2));_0x241ed3>=_0x568894[_0x1d5747([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x241ed3-=_0x568894[_0x1d5747([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x398f90+=_0x568894[_0x241ed3];}return _0x398f90;}());_0x3f9760[_0x4ebdac]=_0x1d5747([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x851ff3,_0x851ff3!=_0x1d5747([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x500dac,_0x3f9760[_0x1d5747([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d5747([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5ed41b,_0x3f9760[_0x1d5747([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d5747([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5ed41b,_0x3f9760[_0x1d5747([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d5747([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x2220ca);}class CaseChangeUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x386b6d=this['editor'];this['_registerComponents'](),_0x386b6d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$g(_0x386b6d['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c402a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1be406;for(const _0x337455 in _0x4c402a){const _0x18db6a=_0x337455,_0x579266=_0x4c402a[_0x18db6a];if('caseChangeLicenseKeyValid'==_0x579266||'caseChangeLicenseKeyInvalid'==_0x579266||'caseChangeLicenseKeyExpired'==_0x579266||'caseChangeLicenseKeyDomainLimit'==_0x579266||'caseChangeLicenseKeyNotAllowed'==_0x579266||'caseChangeLicenseKeyEvaluationLimit'==_0x579266||'caseChangeLicenseKeyUsageLimit'==_0x579266){delete _0x4c402a[_0x18db6a],_0x1be406=_0x579266,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x1be406&&_0x4c402a['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x1be406&&_0x4c402a['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x1be406&&_0x4c402a['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x1be406&&_0x4c402a['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x1be406&&_0x4c402a['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x1be406&&_0x4c402a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x18284e=this['editor'],{itemDefinitions:_0x1906b9,commands:_0x24fd3f}=this['_getListItemDefinitionsAndCommands']();_0x18284e['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x1906b9,_0x24fd3f)),_0x18284e['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x1906b9,_0x24fd3f));}['_createMenuBarMenuView'](_0x1d3768,_0x26b5f7){const _0x429ace=this['editor'],_0x26d23f=_0x429ace['locale'],_0x1d80b6=new MenuBarMenuView(_0x26d23f),_0x23327c=new MenuBarMenuListView(_0x26d23f);_0x23327c['set']({'ariaLabel':getTranslation$g(_0x26d23f,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x1d80b6['buttonView']),_0x1d80b6['bind']('isEnabled')['toMany'](_0x26b5f7,'isEnabled',(..._0x19fd22)=>_0x19fd22['some'](_0x51f6da=>_0x51f6da));for(const _0x16b104 of _0x1d3768){const _0x6f5fe8=new MenuBarMenuListItemView(_0x26d23f,_0x1d80b6),_0xe4d2fa=new MenuBarMenuListItemButtonView(_0x26d23f);_0xe4d2fa['delegate']('execute')['to'](_0x1d80b6),_0xe4d2fa['bind'](...Object['keys'](_0x16b104['model']))['to'](_0x16b104['model']),_0xe4d2fa['on']('execute',()=>{_0x429ace['execute'](_0x16b104['model']['commandName']),_0x429ace['editing']['view']['focus']();}),_0x6f5fe8['children']['add'](_0xe4d2fa),_0x23327c['items']['add'](_0x6f5fe8);}return _0x1d80b6['panelView']['children']['add'](_0x23327c),_0x1d80b6;}['_createDropdownView'](_0x3ed53d,_0x3992c8){const _0x33c92e=this['editor'],_0x4fc7f9=createDropdown(_0x33c92e['locale']);return this['_setButtonProperties'](_0x4fc7f9['buttonView']),_0x4fc7f9['buttonView']['set']({'tooltip':!0x0}),_0x4fc7f9['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),addListToDropdown(_0x4fc7f9,_0x3ed53d,{'ariaLabel':getTranslation$g(_0x33c92e['locale'],'Case\x20change'),'role':'menu'}),_0x4fc7f9['bind']('isEnabled')['toMany'](_0x3992c8,'isEnabled',(..._0x5dd86d)=>_0x5dd86d['some'](_0xed27ad=>_0xed27ad)),this['listenTo'](_0x4fc7f9,'execute',_0x4e22c2=>{_0x33c92e['execute'](_0x4e22c2['source']['commandName']),_0x33c92e['editing']['view']['focus']();}),_0x4fc7f9;}['_setButtonProperties'](_0x2644a2){const _0x4dd042=this['editor'];_0x2644a2['set']({'label':getTranslation$g(_0x4dd042['locale'],'Case\x20change'),'icon':IconCaseChange,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0xff3861=new Collection(),_0x37b93d=[];for(const _0x2a2973 of _getOptions(this['editor']['locale'])){const _0xb3bd80=this['editor']['commands']['get'](_0x2a2973['commandName']),_0x107b6b=new UIModel({'commandName':_0x2a2973['commandName'],'label':_0x2a2973['label'],'role':'menuitemradio','withText':!0x0});_0x107b6b['bind']('isEnabled')['to'](_0xb3bd80,'isEnabled'),_0xff3861['add']({'type':'button','model':_0x107b6b}),_0x37b93d['push'](_0xb3bd80);}return{'itemDefinitions':_0xff3861,'commands':_0x37b93d};}}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(_0x4a172a,_0x43e5e9){super(),this['model']=_0x4a172a,this['model']['_isAttached']=!0x0,this['view']=_0x43e5e9,this['listenTo'](_0x43e5e9,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x43e5e9,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x43e5e9,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x43e5e9,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x43e5e9,'addComment',(_0x1fe0df,_0x27f81e)=>this['addComment'](_0x27f81e)),this['listenTo'](_0x43e5e9,'updateComment',(_0x1f5112,_0x5b7876,_0x1efeec)=>this['updateComment'](_0x5b7876,_0x1efeec)),this['listenTo'](_0x43e5e9,'removeComment',(_0x411c75,_0x559480)=>this['removeComment'](_0x559480));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x3302cb){this['model']['addComment']({'content':_0x3302cb,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x55508a,_0x18bd89){this['model']['getComment'](_0x55508a)['update']({'content':_0x18bd89});}['removeComment'](_0x55c71e){this['model']['getComment'](_0x55c71e)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function getTranslation$f(_0xd7462d,_0x8a4967,_0x3e42f8){const t=_0xd7462d['t'];switch(_0x8a4967){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'},_0x3e42f8);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'},_0x3e42f8);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'},_0x3e42f8);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'},_0x3e42f8);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x3e42f8);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'},_0x3e42f8);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'},_0x3e42f8);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'},_0x3e42f8);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(_0x507871,_0x58f637){super(_0x507871);const _0x1c41c7=uid();this['main']=this['createCollection'](),this['editable']=new InlineEditableUIView(_0x507871,_0x58f637,void 0x0,{'label':()=>getTranslation$f(_0x507871,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x507871['uiLanguageDirection'],'lang':_0x507871['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1c41c7},'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(_0x287c62){super(_0x287c62),this['view']=new CommentEditorUIView(_0x287c62['locale'],_0x287c62['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x54b6dd=this['editor']['editing']['view'],_0x827a90=this['view']['editable'],_0x5bfe38=_0x54b6dd['document']['getRoot']();_0x827a90['name']=_0x5bfe38['rootName'],this['view']['render']();const _0x4ae96e=_0x827a90['element'];this['setEditableElement'](_0x827a90['name'],_0x4ae96e),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x54b6dd['attachDomRoot'](_0x4ae96e),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(_0x4d627d={}){function _0xccfeca(_0x15fccf){return _0x15fccf['map'](_0x4e8b0d=>String['fromCharCode'](_0x4e8b0d))['join']('');}(_0x4d627d=Object['assign']({},_0x4d627d))['plugins']||(_0x4d627d['plugins']=CommentEditor['defaultPlugins']),super(_0x4d627d),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[_0xccfeca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xccfeca([0x76,0x69,0x65,0x77])][_0xccfeca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xccfeca([0x61,0x75,0x74,0x6f]),this[_0xccfeca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xccfeca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xccfeca([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xccfeca([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xccfeca([0x6f,0x6b])});}['create'](){const _0x2c6755=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x2c6755))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x177d61=>{const _0x1415fa=this['model']['document']['getRoot'](),_0x2a6c80=_0x1415fa&&_0x1415fa['getChild'](_0x1415fa['childCount']-0x1);_0x177d61['setSelection'](_0x2a6c80,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x3a7e49=this['editing']['view'],_0x5baeca=_0x3a7e49['document']['getRoot'](),_0x42af85=_0x5baeca['getChild'](0x0);_0x5baeca['childCount']>0x1||!_0x42af85||'p'!=_0x42af85['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(disableViewPlaceholder(_0x3a7e49,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x42af85['placeholder']=this['placeholder']),enableViewPlaceholder({'view':_0x3a7e49,'element':_0x42af85,'keepOnFocus':!0x0}),this['placeholderElement']=_0x42af85);}}class CommentInputView extends View{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3936a6,_0x191b40={}){super(_0x3936a6),this['editor']=null,this['_editorConfig']=_0x191b40,this['set']('value',_0x191b40['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',getTranslation$f(_0x3936a6,'Reply...')),this['set']('submitLabel',getTranslation$f(_0x3936a6,'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'],'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',(_0xd622ce,_0xe3edfd)=>{this['cancelButtonView']['fire']('execute'),_0xe3edfd();}),this['keystrokes']['set']('Ctrl+Enter',(_0x1b2804,_0x2a1af1)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x2a1af1());}),this['on']('submit',(_0x4e0ac8,_0x442732)=>{_0x442732['length']>0xfde8?(alert(getTranslation$f(_0x3936a6,'TOO_LONG_COMMENT_ALERT',[_0x442732['length'],0xfde8])),_0x4e0ac8['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 _0x360f99=this['editor'];this['element']['insertBefore'](_0x360f99['ui']['element'],this['element']['firstChild']),_0x360f99['model']['document']['on']('change',()=>this['value']=_0x360f99['getData']()),_0x360f99['bind']('placeholder')['to'](this),this['focusables']['add'](_0x360f99['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x528040){-0x1===_0x528040?(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:_0x45b91d}=this,_0x3ea99a=new ButtonView(_0x45b91d);return _0x3ea99a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3ea99a['withText']=!0x0,_0x3ea99a['bind']('label')['to'](this,'submitLabel'),_0x3ea99a['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3ea99a['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x30f1b2,_0x1b9215)=>!_0x1b9215&&!!_0x30f1b2['trim']()),_0x3ea99a;}['_createCancelButton'](){const {locale:_0x1a07ea}=this,_0x1d3e85=new ButtonView(_0x1a07ea);return _0x1d3e85['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x1d3e85['label']=getTranslation$f(_0x1a07ea,'Cancel'),_0x1d3e85['withText']=!0x0,_0x1d3e85['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x1d3e85;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x189c67=>{this['focusTracker']['add'](_0x189c67['element']);}),this['focusables']['on']('change',(_0x15318d,_0xc8ebb7)=>{for(const _0x32f087 of Array['from'](_0xc8ebb7['added'])['reverse']())this['focusTracker']['add'](_0x32f087['element']);});}}class CommentThreadInputView extends View{constructor(_0x119ecc,_0x1bf497,_0x3ef122){super(_0x119ecc),this['commentInputView']=new CommentInputView(_0x119ecc,_0x3ef122),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x1e4ee7,_0x3bebdf)=>_0x1e4ee7||!!_0x3bebdf),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(_0x119ecc,_0x1bf497),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'](_0x1f2e07){this['commentInputView']['focus'](_0x1f2e07);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x3ad89e,_0x1b153b)=>{const {submitButtonView:_0x1c864f,cancelButtonView:_0x5cab9d,editor:_0x31568e}=this['commentInputView'];[_0x1c864f['element'],_0x5cab9d['element'],_0x31568e?_0x31568e['editing']['view']['getDomRoot']():null]['filter'](_0x33f6f5=>_0x33f6f5)['some'](_0x389194=>_0x389194['contains'](_0x1b153b['target']))||(this['focus'](),_0x1b153b['preventDefault']());});}}class CollapsedCommentsView extends View{constructor(_0x56ddf8){super(_0x56ddf8);const _0x35ebff=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x35ebff['to']('count',_0x46e6b3=>getTranslation$f(_0x56ddf8,'NUMBER_OF_COMMENTS',_0x46e6b3))}]});}}class CommentsListView extends View{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x2ca9f2,_0x3af743,_0x48ab20){super(_0x2ca9f2);const _0x960eea=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x3af743['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x3af743,this['_config']=_0x48ab20,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':_0x5c7d1b=>this['commentViews']['map'](_0x8fc443=>_0x8fc443['element'])['includes'](_0x5c7d1b['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new CollapsedCommentsView(_0x2ca9f2),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x88e4ff=>_0x88e4ff-this['_config']['maxCommentsWhenCollapsed']);for(const _0x3e5eaf of _0x3af743['comments'])this['_handleNewCommentModel'](_0x3e5eaf);this['_handleInfoComment'](),this['listenTo'](_0x3af743['comments'],'add',(_0x1b53ed,_0x5d8806)=>{const _0x38ed12=this['_calculatePosition'](_0x5d8806);this['length']++,this['_handleNewCommentModel'](_0x5d8806,_0x38ed12),this['refreshVisibleViews']();}),this['listenTo'](_0x3af743['comments'],'remove',(_0xb24b1a,_0x5ef86f)=>{this['length']--,this['_handleRemoveCommentModel'](_0x5ef86f),this['refreshVisibleViews']();}),this['listenTo'](_0x3af743,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x3af743,'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',_0x960eea['if']('length','ck-hidden',_0xd9f9c6=>!_0xd9f9c6)],'aria-label':getTranslation$f(_0x2ca9f2,'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'](_0x2a47af){-0x1===_0x2a47af?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4d9c0d of this['commentViews'])_0x4d9c0d['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x148079,_0x2a1759){const _0x406715=new this['_config']['CommentView'](this['locale'],_0x148079,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x406715['viewUid']=_0x148079['id'],_0x406715['delegate']('removeComment')['to'](this),_0x406715['delegate']('updateComment')['to'](this),_0x406715['delegate']('resolveCommentThread')['to'](this),_0x406715['delegate']('editorReady')['to'](this),_0x406715['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x406715,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x406715,_0x2a1759);}['_calculatePosition'](_0x312496){const _0x420c96=this['_model']['_findOptimalIndex'](_0x312496);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x312496['authoredAt']?_0x420c96-0x1:_0x420c96:_0x420c96-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x4203c2={'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'],_0x4203c2,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x4203c2));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x2d966e){const _0x42998d=this['commentViews']['remove'](_0x2d966e['id']);this['stopListening'](_0x42998d),_0x42998d['isEditMode']&&this['_updateHasDirtyComment'](),_0x42998d['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x301f1a=>_0x301f1a['isEditMode']);}['_rearrangeCollapse'](){const _0x4a038b=cloneCollection(this['commentViews']),_0x523f74=this['_collapsedCommentsView']['count'];for(let _0x1dfc38=0x1;_0x1dfc38<=_0x523f74;_0x1dfc38++)_0x4a038b['remove'](0x1);for(const _0x44a6bc of _0x4a038b)_0x44a6bc['collapse']();_0x523f74>0x0&&_0x4a038b['add'](this['_collapsedCommentsView'],0x1),applyDiffToCollection(_0x366723(Array['from'](this['visibleViews']),Array['from'](_0x4a038b)),this['visibleViews'],_0x4a038b);}['_rearrangeExpand'](){applyDiffToCollection(_0x366723(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x4ebc34 of this['visibleViews'])_0x4ebc34['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2e7cc5=>{this['focusTracker']['add'](_0x2e7cc5['element']),this['keystrokes']['listenTo'](_0x2e7cc5['element']);}),this['commentViews']['on']('change',(_0x304c3c,_0x3ea715)=>{for(const _0x5d5f4b of _0x3ea715['removed'])this['focusTracker']['remove'](_0x5d5f4b['element']),this['keystrokes']['stopListening'](_0x5d5f4b['element']);for(const _0x2605f1 of Array['from'](_0x3ea715['added'])['reverse']())this['focusTracker']['add'](_0x2605f1['element']),this['keystrokes']['listenTo'](_0x2605f1['element']);});}}function cloneCollection(_0x31a7b7){const _0x5ba476=new Collection();for(const _0x4bf561 of _0x31a7b7)_0x5ba476['add'](_0x4bf561);return _0x5ba476;}function applyDiffToCollection(_0x338b4e,_0x3388ab,_0x309e4f){let _0x32caa7=0x0;for(const _0x4b9a8f of _0x338b4e)switch(_0x4b9a8f){case'insert':_0x3388ab['add'](_0x309e4f['get'](_0x32caa7),_0x32caa7),_0x32caa7++;break;case'delete':_0x3388ab['remove'](_0x32caa7);break;case'equal':_0x32caa7++;}}class CommentThreadHeaderContextView extends View{constructor(_0x3d0938){super(_0x3d0938);const _0x246fde=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x246fde['to']('contextValue',_0x42820a=>getTranslation$f(_0x3d0938,'THREAD_CONTEXT_LABEL',_0x42820a)),'tabindex':-0x1},'children':[{'text':_0x246fde['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}const MAX_CONTENT_LENGTH=0x96;class CommentThreadHeaderView extends View{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5dfb65,_0x3446ae){super(_0x5dfb65);const _0x72f27a=this['bindTemplate'];this['_model']=_0x3446ae,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',_0x3154cd=>!!_0x3154cd),this['bind']('contextValue')['to'](this['_model'],'context',_0x4307aa=>_0x4307aa&&_0x4307aa['value']?this['_trimContextValue'](_0x4307aa['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',_0x72f27a['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 _0x498900=new ButtonView(this['locale']);return _0x498900['label']=getTranslation$f(this['locale'],'Reopen'),_0x498900['tooltip']=getTranslation$f(this['locale'],'Reopen'),_0x498900['icon']=IconUndo,_0x498900['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1c5b48=>!_0x1c5b48),_0x498900['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x19d3d5,_0x29bbdd)=>_0x19d3d5&&_0x29bbdd),_0x498900['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x498900;}['_trimContextValue'](_0x39979d){const _0x53fa5f=MAX_CONTENT_LENGTH-0x3;if(_0x39979d['length']<MAX_CONTENT_LENGTH)return _0x39979d;const _0x56f385=_0x39979d['lastIndexOf']('\x20',_0x53fa5f);return _0x39979d['substring'](0x0,_0x56f385>-0x1?_0x56f385:_0x53fa5f)+'...';}['_attachContextActions'](){const _0x208716=this['element']['querySelector']('.ck-context'),_0x2e3787=_0x208716['querySelector']('.ck-context__value');this['listenTo'](_0x208716,'mouseenter',()=>{_0x2e3787['offsetWidth']<_0x2e3787['scrollWidth']&&_0x208716['classList']['add']('overlay');}),this['listenTo'](_0x208716,'mouseleave',()=>{_0x208716['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x588e13 of this['focusables'])this['focusTracker']['add'](_0x588e13['element']),this['keystrokes']['listenTo'](_0x588e13['element']);}['_createContextView'](){const _0xa349bc=new CommentThreadHeaderContextView(this['locale']);return _0xa349bc['bind']('contextValue')['to'](this),_0xa349bc;}}class BaseCommentThreadView extends View{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3e83a1,_0x32bbe2,_0x576aea,_0x5bc2bf){super(_0x3e83a1),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x32bbe2,this['_localUser']=_0x576aea,this['_config']=_0x5bc2bf,this['commentThreadHeaderView']=new CommentThreadHeaderView(_0x3e83a1,_0x32bbe2),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new AriaDescriptionView(_0x3e83a1,getTranslation$f(_0x3e83a1,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new CommentsListView(_0x3e83a1,_0x32bbe2,Object['assign']({'CommentView':this['_config']['CommentView']},_0x5bc2bf)),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',(_0x14cf22,_0x4ae1c7)=>_0x14cf22||!!_0x4ae1c7),this['bind']('isUnlinked')['to'](_0x32bbe2,'unlinkedAt',_0x2d9c7a=>!!_0x2d9c7a),this['bind']('ariaLabel')['to'](this,'length',_0x4408d6=>{const _0x473005=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return getTranslation$f(this['locale'],'COMMENT_THREAD_LABEL',[_0x4408d6,_0x473005]);}),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':_0x24a353=>_0x24a353['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 _0x2efaec=new CommentThreadInputView(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x324148=_0x2efaec['commentInputView'];return _0x2efaec['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x324148,'value',(_0x4f96e8,_0x3068a0,_0xa89566,_0x45643c,_0x369957)=>!!_0x369957||!!_0x45643c&&_0xa89566&&!_0x3068a0||_0x4f96e8&&_0xa89566&&!_0x3068a0),_0x324148['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x253783,_0x2b7b64,_0x3fb13f)=>{let _0x5a66e9;return _0x5a66e9=_0x3fb13f&&_0x2b7b64?'Reply\x20to\x20reopen\x20discussion...':_0x253783?'Reply...':'Write\x20a\x20comment...',getTranslation$f(this['locale'],_0x5a66e9);}),_0x324148['bind']('submitLabel')['to'](this,'length',_0x436f0e=>getTranslation$f(this['locale'],_0x436f0e?'Reply':'Comment')),_0x324148['on']('submit',(_0x429d8c,_0x7d2679)=>{this['fire']('addComment',_0x7d2679),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x324148['on']('cancel',()=>{this['focus']();}),_0x324148['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x324148['on']('cancel',_0x3fc652=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3fc652['stop']());}),this['on']('change:isActive',(_0x2c3646,_0xf827c6,_0x3a7bd5)=>{_0x3a7bd5||this['length']||_0x324148['value']||this['fire']('removeCommentThread');}),_0x2efaec;}}class CommentThreadView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentThreadView){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x327c28,_0x44f9c7,_0x4d1337,_0x627c3b){super(_0x327c28,_0x44f9c7,_0x4d1337,_0x627c3b),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x327c28,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x110080,_0x32bb7f,_0x210134)=>{_0x210134||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x3e80bf,_0x555fee,_0x3d3372)=>{_0x3d3372&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x268e39=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x268e39['if']('isActive','ck-thread--active'),_0x268e39['if']('isUnlinked','ck-thread--unlinked'),_0x268e39['to']('actionIndicator',_0x56f323=>_0x56f323?'ck-thread--'+_0x56f323:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x268e39['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 _0x5670b3 of this['commentsListView']['commentViews'])_0x5670b3['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x5c72b7}=this,_0x587aed=this['commentsListView']['commentViews']['get'](0x0);_0x587aed===this['_boundFirstCommentView']||_0x587aed['isSystemComment']||(this['_boundFirstCommentView']=_0x587aed,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x587aed,'actionIndicator',_0x1d29d6=>'remove'===_0x1d29d6?'remove':null),_0x587aed['placeholder']=getTranslation$f(_0x5c72b7,'Write\x20a\x20comment...'),_0x587aed['removeButton']['on']('execute',_0x1fb70c=>{_0x1fb70c['stop'](),this['showConfirm'](getTranslation$f(_0x5c72b7,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x587aed['focus']();}),_0x587aed['actionBar']['add'](this['resolveButton'],0x0),_0x587aed['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0xa8bca3=new LateFocusButtonView(this['locale']);return _0xa8bca3['label']=getTranslation$f(this['locale'],'Resolve'),_0xa8bca3['tooltip']=getTranslation$f(this['locale'],'Resolve'),_0xa8bca3['icon']=IconCheck,_0xa8bca3['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0xa8bca3['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xc58887=>!_0xc58887),_0xa8bca3['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1e329d,_0x371123)=>_0x1e329d&&!_0x371123),_0xa8bca3['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0xa8bca3;}['_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(_0x4dc5a4){super(_0x4dc5a4),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x1b6018,_0x54d5a7,_0x3d3f2d)=>{this['element']['innerHTML']=_0x3d3f2d;}),this['element']['innerHTML']=this['content'];}}class BaseCommentView extends View{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3d54d2,_0x1934a7,_0x15ffbd){super(_0x3d54d2),this['_model']=_0x1934a7,this['_config']=_0x15ffbd,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x1934a7,'content',_0x1934a7,'authoredAt',(_0x5c8f33,_0x20d1fa)=>getTranslation$f(_0x3d54d2,'COMMENT_ARIA_LABEL',[_0x1934a7['author']['name'],_0x15ffbd['formatDateTime'](_0x20d1fa),new DOMParser()['parseFromString'](_0x5c8f33,'text/html')['body']['textContent'],_0x1934a7['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new AriaDescriptionView(_0x3d54d2,getTranslation$f(_0x3d54d2,'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':_0x4a4824=>_0x4a4824['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 _0x189d77=new CommentContentView(this['locale']);return _0x189d77['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x3a5c93,_0x58acdd)=>_0x58acdd?trimHtml(_0x3a5c93,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x3a5c93),_0x189d77;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x44b122=new CommentInputView(this['locale'],this['_config']['editorConfig']);return _0x44b122['value']=this['_model']['content'],_0x44b122['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x44b122['submitLabel']=getTranslation$f(this['locale'],'Save'),_0x44b122['on']('submit',(_0xdd2df6,_0x1373c3)=>{this['fire']('updateComment',this['_model']['id'],_0x1373c3),this['switchToDisplayMode'](),this['focus']();}),_0x44b122['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x44b122['once']('editorReady',()=>{_0x44b122['focus']();}),_0x44b122['createEditor'](),_0x44b122['delegate']('editorReady')['to'](this),_0x44b122['delegate']('editorDestroyed')['to'](this),_0x44b122;}['_setupKeyboardNavigation'](){const _0x48401b=this['element'];this['keystrokes']['listenTo'](_0x48401b);for(const _0x7551f of this['focusables'])this['focusTracker']['add'](_0x7551f['element']),this['keystrokes']['listenTo'](_0x7551f['element']);this['focusables']['on']('change',(_0x5ea615,_0x114e8b)=>{for(const _0x1a0d5c of _0x114e8b['removed'])this['focusTracker']['remove'](_0x1a0d5c['element']),this['keystrokes']['stopListening'](_0x1a0d5c['element']);for(const _0x142dce of _0x114e8b['added'])this['focusTracker']['add'](_0x142dce['element']),this['keystrokes']['listenTo'](_0x142dce['element']);}),this['keystrokes']['set']('enter',(_0xe22627,_0x2057c4)=>{_0x48401b===_0xe22627['target']&&(this['focusCycler']['focusFirst'](),_0x2057c4());}),this['keystrokes']['set']('esc',(_0x2a928d,_0x416c0e)=>{_0x48401b!==_0x2a928d['target']&&(this['focus'](),_0x416c0e());});}}class CommentView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentView){['actionBar'];['userView'];constructor(_0x4849f0,_0x34cc68,_0x33e5bc){super(_0x4849f0,_0x34cc68,_0x33e5bc),this['set']('actionIndicator',null),this['set']('placeholder',getTranslation$f(_0x4849f0,'Reply...')),this['bind']('authoredAt')['to'](_0x34cc68),this['bind']('resolvedAt')['to'](_0x34cc68),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(_0x4849f0,_0x34cc68['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x34cc68,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x55319c=this['bindTemplate'],_0x270dc2=[{'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':_0x55319c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x55319c['to']('authoredAt',_0x3664b9=>this['_config']['formatDateTime'](_0x3664b9))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x55319c['if']('isEditMode','ck-comment__actions--hidden'),_0x55319c['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']&&_0x270dc2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x55319c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x55319c['if']('isEditMode','ck-comment--edit'),_0x55319c['if']('isSystemComment','ck-comment--info'),_0x55319c['to']('actionIndicator',_0x1b4766=>_0x1b4766?'ck-comment--'+_0x1b4766:'')],'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':_0x270dc2}]}]};}['_createEditButton'](){const _0x4fda7f=new ButtonView(this['locale']);return _0x4fda7f['label']=getTranslation$f(this['locale'],'Edit'),_0x4fda7f['icon']=IconPencil,_0x4fda7f['withText']=!0x0,_0x4fda7f['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x4fda7f['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3e2e5a=>!_0x3e2e5a),_0x4fda7f['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x4fda7f['on']('execute',()=>this['switchToEditMode']()),_0x4fda7f;}['_createRemoveButton'](){const _0x271ca4=new ButtonView(this['locale']);return _0x271ca4['label']=getTranslation$f(this['locale'],'Remove'),_0x271ca4['icon']=IconRemoveComment,_0x271ca4['withText']=!0x0,_0x271ca4['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x271ca4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3f3a7c=>!_0x3f3a7c),_0x271ca4['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x271ca4['on']('execute',()=>{this['showConfirm'](getTranslation$f(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x271ca4;}['_createDropdown'](){const _0x7a2b99=createDropdown(this['locale'],LateFocusDropdownButtonView),_0x2473fe=_0x7a2b99['panelView']['children'],_0x184941=new ListView(this['locale']),_0x433e0a=_0x7a2b99['bindTemplate'];focusChildOnDropdownOpen(_0x7a2b99,()=>this['items']['find'](_0x520c92=>_0x520c92['isVisible'])),_0x7a2b99['extendTemplate']({'attributes':{'class':[_0x433e0a['if']('isVisible','ck-hidden',_0x606da7=>!_0x606da7)]}});const _0x143dc6=(_0x2e28e7,_0x4162aa=-0x1)=>{const _0x318831=new ListItemView(this['locale']);_0x318831['children']['add'](_0x2e28e7);const _0x290657=_0x4162aa>-0x1?_0x4162aa:_0x184941['items']['length'];_0x184941['items']['add'](_0x318831,_0x290657);const _0x587bec=Array['from'](this['items']);_0x7a2b99['unbind']('isEnabled','isVisible'),_0x7a2b99['bind']('isEnabled')['toMany'](_0x587bec,'isEnabled',(..._0x52075a)=>_0x52075a['some'](_0x594446=>_0x594446)),_0x7a2b99['bind']('isVisible')['toMany'](_0x587bec,'isVisible',(..._0x182629)=>_0x182629['some'](_0x240b93=>_0x240b93));};_0x7a2b99['panelPosition']='sw',_0x7a2b99['buttonView']['set']({'label':getTranslation$f(this['locale'],'Show\x20more\x20items'),'icon':IconThreeVerticalDots});for(const _0x37c88e of this['items'])_0x143dc6(_0x37c88e);return _0x2473fe['add'](_0x184941),_0x7a2b99['listenTo'](this['items'],'add',(_0x3ae0fe,_0x1a2012,_0x2a54aa)=>{_0x143dc6(_0x1a2012,_0x2a54aa);}),_0x7a2b99['listenTo'](this['items'],'remove',(_0x2d3022,_0x3d9cd8,_0x4a2234)=>{_0x184941['items']['remove'](_0x4a2234);}),_0x7a2b99;}['_attachActions'](_0x2336c9,_0x2a6e6b){const _0x483d77=_0x2336c9&&_0x2336c9['element'];_0x483d77&&(this['listenTo'](_0x483d77,'mouseenter',()=>this['actionIndicator']=_0x2a6e6b),this['listenTo'](_0x483d77,'focus',()=>this['actionIndicator']=_0x2a6e6b),this['listenTo'](_0x483d77,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x483d77,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x11881b=super['_createCommentInputView']();return _0x11881b['bind']('placeholder')['to'](this),_0x11881b;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function createMutationObserver(_0xc26d0b){const _0x26275c=throttle$1(_0xc26d0b,0x1e),_0x94fded=new MutationObserver(_0x5c7acc=>{for(const _0x35db78 of _0x5c7acc)('attributes'==_0x35db78['type']&&'class'==_0x35db78['attributeName']||'childList'==_0x35db78['type']||'characterData'==_0x35db78['type'])&&_0x26275c();});return{'attach'(_0x40bb31){_0x94fded['observe'](_0x40bb31,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x94fded['disconnect'](),_0x26275c['cancel']();}};}class AnnotationView extends View{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x4e7465,_0x353685){super(_0x4e7465),this['id']=uid(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['keystrokes']['set']('Esc',(_0xa60e5e,_0x2fc7bb)=>this['fire']('Esc',_0x2fc7bb)),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'](_0x353685),this['mainView']=_0x353685;const _0x16e107=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x16e107['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 _0x20aee3=this['element']['clientHeight'];_0x20aee3&&(this['height']=_0x20aee3);}}let Annotation$1=class e extends/* #__PURE__ -- @preserve */
ObservableMixin(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x23dd0c,target:_0xdfa990,type:_0x264000,isVisible:_0x1d5465=!0x0}){super(),this['view']=_0x23dd0c,this['view']['element']||this['view']['render'](),this['_type']=_0x264000,this['_target']=_0xdfa990,e['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new Collection([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x44b3c7,_0x56fde1)=>{this['view']['focusTracker']['add'](_0x56fde1);}),this['focusableElements']['on']('remove',(_0x4db027,_0x3a4782)=>{this['view']['focusTracker']['remove'](_0x3a4782);}),this['set']('isVisible',_0x1d5465);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x43107f=this['_getNormalizedTarget']();return e['_assertCorrectTarget'](_0x43107f),_0x43107f;}get['targetRect'](){const _0x4de220=this['target'];if(null===_0x4de220)return null;if(_0x4de220 instanceof Rect)return _0x4de220;const _0x18b3bd=_0x4de220['filter'](_0x5a2107=>isDomElementVisible(_0x5a2107));return 0x0===_0x18b3bd['length']?null:new Rect(_0x18b3bd[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5bb019){this['view']['isActive']=_0x5bb019,this['view']['mainView']['isActive']=_0x5bb019;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x4fea7b){if(!(null===_0x4fea7b||_0x4fea7b instanceof Rect||Array['isArray'](_0x4fea7b)&&_0x4fea7b['every'](_0x5dab3b=>isElement$1(_0x5dab3b))))throw new CKEditorError('annotation-invalid-target',null,{'target':_0x4fea7b});}['_getNormalizedTarget'](){const _0xc042e='function'==typeof this['_target']?this['_target']():this['_target'];return isElement$1(_0xc042e)?[_0xc042e]:_0xc042e;}};function isElement$1(_0x4d71f9){return null!==_0x4d71f9&&'object'==typeof _0x4d71f9&&'nodeType'in _0x4d71f9&&0x1===_0x4d71f9['nodeType'];}function isDomElementVisible(_0x5f35df){if(_0x5f35df['offsetParent'])return!0x0;return!!_0x5f35df['getClientRects']()['item'](0x0);}class AnnotationCollection extends Collection{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x49290a=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new FocusTracker(),this['_focusTracker']['on']('change:isFocused',(_0x53c92d,_0x1fc25f,_0x4841ca)=>{_0x4841ca||this['fire']('blur');});for(const _0x69dd8f of _0x49290a)this['add'](_0x69dd8f);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x320a10){if(this['has'](_0x320a10))throw new CKEditorError('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x320a10['innerView'],_0x320a10),this['_viewToAnnotation']['set'](_0x320a10['view'],_0x320a10);for(const _0x343341 of _0x320a10['focusableElements'])this['_focusTracker']['add'](_0x343341);this['listenTo'](_0x320a10['focusableElements'],'add',(_0x4df539,_0x4701cf)=>{this['_focusTracker']['add'](_0x4701cf);}),this['listenTo'](_0x320a10['focusableElements'],'remove',(_0x299955,_0x3121b4)=>{this['_focusTracker']['remove'](_0x3121b4);}),this['listenTo'](_0x320a10['view']['focusTracker'],'change:isFocused',(_0x473073,_0x4c82d2,_0x2a9f31)=>{_0x2a9f31&&this['fire']('focus',_0x320a10);}),_0x320a10['updateTargetRect']();const _0x454fc2=this['_getOrderInContent'](_0x320a10['view']['targetRect']);return super['add'](_0x320a10,_0x454fc2);}['remove'](_0x2c7ef3){if(!this['has'](_0x2c7ef3))throw new CKEditorError('annotationcollection-not-existing-item',null);this['stopListening'](_0x2c7ef3['view']['focusTracker']),this['stopListening'](_0x2c7ef3['focusableElements']);for(const _0x2ce803 of _0x2c7ef3['focusableElements'])this['_focusTracker']['remove'](_0x2ce803);return this['_viewToAnnotation']['delete'](_0x2c7ef3['view']),this['_innerViewToAnnotation']['delete'](_0x2c7ef3['innerView']),super['remove'](_0x2c7ef3);}['getByInnerView'](_0x451659){return this['_innerViewToAnnotation']['get'](_0x451659);}['getByView'](_0x3a7d18){return this['_viewToAnnotation']['get'](_0x3a7d18);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x253dc9 of this)_0x253dc9['updateTargetRect']();this['_sort']();}['_sort'](){const _0x48d92c=Array['from'](this)['sort']((_0x267c9d,_0x5a4d4a)=>elementOffsetComparator(_0x267c9d['view']['targetRect'],_0x5a4d4a['view']['targetRect']));for(let _0x183b4c=_0x48d92c['length']-0x1;_0x183b4c>0x0;_0x183b4c--){const _0x28991e=_0x48d92c[_0x183b4c];_0x183b4c!==this['getIndex'](_0x28991e)&&(this['remove'](_0x28991e),this['add'](_0x28991e));}}['_getOrderInContent'](_0xd17364){let _0x15635d=0x0;if(!_0xd17364)return this['length'];for(const _0x334328 of this){const _0x35bc25=_0x334328['view']['targetRect'];if(_0x35bc25){if(elementOffsetComparator(_0xd17364,_0x35bc25)<0x0)return _0x15635d;_0x15635d++;}}return _0x15635d;}}function bindAnnotationCollections({source:_0x594a2d,target:_0x47961d,filter:_0x141a91}){for(const _0x469e8e of _0x594a2d)_0x141a91(_0x469e8e)&&_0x47961d['add'](_0x469e8e);_0x47961d['listenTo'](_0x594a2d,'add',(_0x1fcc5c,_0x178a8f)=>{_0x141a91(_0x178a8f)&&_0x47961d['add'](_0x178a8f);}),_0x47961d['listenTo'](_0x594a2d,'remove',(_0x4f80dd,_0x228248)=>{_0x47961d['has'](_0x228248)&&_0x47961d['remove'](_0x228248);});}function elementOffsetComparator(_0x13b451,_0x184d38){if(null===_0x13b451&&null===_0x184d38)return 0x0;if(null===_0x13b451)return-0x1;if(null===_0x184d38)return 0x1;const _0x206914=_0x13b451['top']-_0x184d38['top'];return 0x0==_0x206914?_0x13b451['left']-_0x184d38['left']:_0x206914;}class Annotations extends ContextPlugin{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45a2ec){if(super(_0x45a2ec),this['collection']=new AnnotationCollection(),this['_visibleAnnotations']=new AnnotationCollection(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x45a2ec instanceof Editor){const _0xc75bc0=_0x45a2ec['locale'];_0x45a2ec['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':getTranslation$f(_0xc75bc0,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':getTranslation$f(_0xc75bc0,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':getTranslation$f(_0xc75bc0,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':getTranslation$f(_0xc75bc0,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':getTranslation$f(_0xc75bc0,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':getTranslation$f(_0xc75bc0,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':getTranslation$f(_0xc75bc0,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x4ea9ac){this['collection']['add'](_0x4ea9ac);}['remove'](_0x3ec67a){this['collection']['remove'](_0x3ec67a),_0x3ec67a['destroy']();}['refreshVisibility'](){for(const _0x7ecd1e of this['collection'])_0x7ecd1e['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x218bf6){return this['collection']['getByInnerView'](_0x218bf6);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1cb409 of this['collection'])_0x1cb409['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x2d984b){this['fire']('_activateAnnotation',_0x2d984b);}['createAnnotation'](_0x145c08){return new Annotation$1(_0x145c08);}['createAnnotationView'](_0x124336,_0x1b5998){return new AnnotationView(_0x124336,_0x1b5998);}['_addActiveAnnotation'](_0xba97f5){const _0x417b1f=new Set(this['activeAnnotations']);_0x417b1f['add'](_0xba97f5),this['activeAnnotations']=_0x417b1f;}['_removeActiveAnnotation'](_0x42d74b){const _0x4e4eb4=new Set(this['activeAnnotations']);_0x4e4eb4['delete'](_0x42d74b),this['activeAnnotations']=_0x4e4eb4;}['_bindAnnotationsToVisibleAnnotations'](){const _0x533ebb=this['collection'],_0x34d55b=this['_visibleAnnotations'];function _0x3723db(_0x1e8d7b){const _0x56a4ce=_0x1e8d7b['source'];_0x56a4ce['isVisible']&&!_0x34d55b['has'](_0x56a4ce)?_0x34d55b['add'](_0x56a4ce):!_0x56a4ce['isVisible']&&_0x34d55b['has'](_0x56a4ce)&&_0x34d55b['remove'](_0x56a4ce),_0x56a4ce['view']['focusTracker']['remove'](_0x56a4ce['view']['element']),_0x56a4ce['view']['focusTracker']['add'](_0x56a4ce['view']['element']);}this['listenTo'](_0x533ebb,'add',(_0x360d25,_0x3f1e62)=>{_0x3f1e62['isVisible']&&_0x34d55b['add'](_0x3f1e62),this['listenTo'](_0x3f1e62,'change:isVisible',_0x3723db);}),this['listenTo'](_0x533ebb,'remove',(_0x7b224a,_0x2dd7dd)=>{_0x34d55b['has'](_0x2dd7dd)&&_0x34d55b['remove'](_0x2dd7dd),this['stopListening'](_0x2dd7dd,'change:isVisible',_0x3723db);});}['_setupEnterAnnotationKeystroke'](){const _0x598db7=_0x3120cf=>{_0x3120cf['on']('ready',()=>{_0x3120cf['keystrokes']['set'](FOCUS_ANNOTATION_KEYSTROKE,(_0x3f4de5,_0x3ac1b1)=>{const _0x5c7c1e=first(this['activeAnnotations']['values']());_0x5c7c1e&&(_0x5c7c1e['view']['focus'](),_0x3ac1b1());});});};this['context']instanceof Editor?_0x598db7(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x4cc07f,_0x3d73e1)=>{_0x598db7(_0x3d73e1);});}['_setupEscapeAnnotationHandling'](){const _0x7f16b7=_0x14d6f1=>{const _0x145aa6=_0x14d6f1['source'],_0x3e3bec=[];let _0x5a971c;if(Array['isArray'](_0x145aa6['target'])){_0x5a971c=_0x145aa6['target'][0x0],this['context']instanceof Editor?_0x3e3bec['push'](this['context']):this['context']['editors']&&_0x3e3bec['push'](...this['context']['editors']);for(const _0x475bd8 of _0x3e3bec)for(const _0x52ba3b of _0x475bd8['editing']['view']['domRoots']['values']())if(_0x52ba3b['contains'](_0x5a971c))return void _0x475bd8['editing']['view']['focus']();_0x5a971c['focus']();}};this['listenTo'](this['collection'],'add',(_0x314224,_0x34e9ec)=>{this['listenTo'](_0x34e9ec,'escape',_0x7f16b7,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x5a603b,_0x378726)=>{this['stopListening'](_0x378726,'escape',_0x7f16b7);});}}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(_0x2d4ef5){super(_0x2d4ef5),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x5dfb14=this['context']['config'];_0x5dfb14['define']('comments.maxCommentsWhenCollapsed',0x2),_0x5dfb14['define']('comments.maxThreadTotalWeight',0x1f4),_0x5dfb14['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x5dfb14['define']('comments.CommentThreadView',CommentThreadView),_0x5dfb14['define']('comments.CommentView',CommentView),_0x5dfb14['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x5cb17e=this['context']['plugins']['get'](Annotations);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x2bad5a,_0x54ff3c)=>this['_addCommentThread'](_0x54ff3c)),this['on']('submitCommentThread',(_0x52b08e,_0x2cfe0c)=>this['_submitCommentThread'](_0x2cfe0c)),this['on']('resolveCommentThread',(_0x45653d,_0x15ad79)=>this['_resolveCommentThread'](_0x15ad79)),this['on']('resolveCommentThread',(_0xd807aa,_0x363d93)=>this['_updateActiveAnnotation'](_0x363d93),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3cd2be,_0x3e5422)=>this['_reopenCommentThread'](_0x3e5422)),this['on']('reopenCommentThread',(_0x4d2657,_0x548d02)=>this['_updateActiveAnnotation'](_0x548d02),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x13ca2f,_0x423863)=>this['_removeCommentThread'](_0x423863)),this['on']('updateCommentThread',(_0x34d549,_0x22477a)=>this['_updateCommentThread'](_0x22477a)),this['on']('updateCommentThread',(_0x20d0da,_0xa8f287)=>this['_updateActiveAnnotation'](_0xa8f287),{'priority':'lowest'}),this['on']('addComment',(_0x347a9f,_0x36439b)=>this['_addComment'](_0x36439b)),this['on']('updateComment',(_0x2bbbee,_0x347ca1)=>this['_updateComment'](_0x347ca1)),this['on']('removeComment',(_0xb8773,_0x274c91)=>this['_removeComment'](_0x274c91)),this['on']('addComment',(_0x4085f6,{threadId:_0x14f20e,isFromAdapter:_0x64b238})=>{if(_0x64b238)return;const _0x3f8e80=this['getCommentThread'](_0x14f20e),_0x3889dc=_0x3f8e80&&this['_threadToController']['get'](_0x3f8e80);_0x3889dc&&_0x3889dc['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x5cb17e,'change:activeAnnotations',(_0x1a9907,_0x504118,_0x4b12e5)=>{const _0xf8d812=Array['from'](_0x4b12e5)['map'](_0x2f73cf=>this['_viewToController']['get'](_0x2f73cf['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xf8d812?_0xf8d812['model']:null;});}set['adapter'](_0x4c4876){if(this['_adapter'])throw new CKEditorError('commentsrepository-adapter-already-set');this['_adapter']=_0x4c4876;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x2354c7=noChannel,threadId:_0xd6de68=uid(),comments:_0x441e69=[],unlinkedAt:_0x616fba=null,resolvedAt:_0x27d24a=null,resolvedBy:_0x846a31=null,target:_0x3522ba=null,context:_0x3ed0b2=null,attributes:_0x1f0eba={},isResolvable:_0x35bab0=!0x0,isSubmitted:_0x18b4b5=!0x1,isFromAdapter:_0x1e6454=!0x1}={}){return this['fire'](toEventName('addCommentThread',_0x2354c7),{'channelId':_0x2354c7,'threadId':_0xd6de68,'comments':_0x441e69,'unlinkedAt':_0x616fba,'resolvedAt':_0x27d24a,'resolvedBy':_0x846a31,'target':_0x3522ba,'context':_0x3ed0b2,'attributes':_0x1f0eba,'isFromAdapter':_0x1e6454,'isResolvable':_0x35bab0,'isSubmitted':_0x18b4b5}),this['getCommentThread'](_0xd6de68);}['openNewCommentThread']({channelId:_0x2a8d51=noChannel,threadId:_0x4d74bd=uid(),target:_0x41c9cc,context:_0x219bd6=null,isResolvable:_0x418ab2=!0x0}){if(this['_readOnlyChannels']['has'](_0x2a8d51)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x41c9cc)throw new CKEditorError('commentsrepository-missing-target');const _0x36cf9e=this['addCommentThread']({'channelId':_0x2a8d51,'threadId':_0x4d74bd,'target':_0x41c9cc,'context':_0x219bd6,'isResolvable':_0x418ab2});if(!_0x36cf9e)return null;const _0x418315=this['_threadToController']['get'](_0x36cf9e),_0x41d86c=_0x418315['view']['commentThreadInputView']['commentInputView'],_0x4dec7f=this['context']['plugins']['get'](Annotations),_0x5ef3de=_0x4dec7f['getByInnerView'](_0x418315['view']);return _0x4dec7f['activate'](_0x5ef3de),_0x41d86c['once']('editorReady',()=>_0x41d86c['focus']()),_0x36cf9e;}['hasCommentThread'](_0x5c0a80){if('string'!=typeof _0x5c0a80)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x5c0a80);}['updateCommentThread']({channelId:_0x3fb0b3=noChannel,threadId:_0x1ac3b5,context:_0x2fe6dd,unlinkedAt:_0x3d1056,attributes:_0x13a761,isFromAdapter:_0x312470=!0x1}){return this['fire'](toEventName('updateCommentThread',_0x3fb0b3),{'channelId':_0x3fb0b3,'threadId':_0x1ac3b5,'context':_0x2fe6dd,'unlinkedAt':_0x3d1056,'attributes':_0x13a761,'isFromAdapter':_0x312470}),this['getCommentThread'](_0x1ac3b5);}['getCommentThread'](_0x24b94e){if('string'!=typeof _0x24b94e)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x24b94e);}['fetchCommentThread']({channelId:_0x54d6fc,threadId:_0x220872}={}){const _0x313e04=this['getCommentThread'](_0x220872);if(_0x313e04)return Promise['resolve'](_0x313e04);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':_0x54d6fc,'threadId':_0x220872})['then'](_0x1b525b=>this['hasCommentThread'](_0x220872)?this['getCommentThread'](_0x220872):_0x1b525b?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x54d6fc},_0x1b525b)):void 0x0)['catch'](_0x1157a3=>{throw console['error'](_0x1157a3),new CKEditorError('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x42b75b,skipNotAttached:_0x82ac18=!0x1,skipEmpty:_0x44cd5b=!0x1,toJSON:_0x3f693e=!0x1}={}){const _0x4b91b9=[];for(const _0x321087 of this['_threads']['values']())_0x42b75b&&_0x321087['channelId']!==_0x42b75b||_0x82ac18&&!_0x321087['isAttached']||_0x44cd5b&&0x0===_0x321087['length']||_0x4b91b9['push'](_0x321087);return _0x3f693e?_0x4b91b9['map'](_0x376c44=>_0x376c44['toJSON']()):_0x4b91b9;}['getAnnotationForCommentThread'](_0x2bff97){const _0x4550d4=this['_threadToController']['get'](_0x2bff97);if(!_0x4550d4)return null;return this['context']['plugins']['get'](Annotations)['getByInnerView'](_0x4550d4['view'])||null;}['getCommentThreadForAnnotation'](_0x2388d8){const _0x1fef76=this['_viewToController']['get'](_0x2388d8['innerView']);return _0x1fef76?_0x1fef76['model']:null;}['setActiveCommentThread'](_0x551770){const _0x5a010f=this['context']['plugins']['get'](Annotations);if(!_0x551770)return void(this['activeCommentThread']&&_0x5a010f['deactivateAll']());const _0x329400=this['getCommentThread'](_0x551770);if(!_0x329400)throw new CKEditorError('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x551770});if(!this['_threadToController']['has'](_0x329400))throw new CKEditorError('commentsrepository-active-not-attached',null,{'threadId':_0x551770});const _0x2797b2=_0x5a010f['getByInnerView'](this['_threadToController']['get'](_0x329400)['view']);_0x5a010f['activate'](_0x2797b2);}['switchReadOnly'](_0x4b3f0c,_0x37836e){_0x4b3f0c?this['_readOnlyChannels']['add'](_0x37836e):this['_readOnlyChannels']['delete'](_0x37836e),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x115338){return this['_readOnlyChannels']['has'](_0x115338)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x3e543d,_0x146a8f){return new CommentThreadController(_0x3e543d,_0x146a8f);}['setPermissions'](_0x5de178,_0x2ed535=noChannel){this['_permissions']['set'](_0x2ed535,_0x5de178),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x4b989d=noChannel){return this['_permissions']['has'](_0x4b989d)?this['_permissions']['get'](_0x4b989d):defaultPermissions;}['_addCommentThread']({channelId:_0x390c52,threadId:_0x590e33,comments:_0x2e7fec,unlinkedAt:_0x10418d,resolvedAt:_0x54a1c5,resolvedBy:_0x5e5d1a,target:_0x4cd8fb,context:_0x5a5876,attributes:_0x210b11,isFromAdapter:_0xd5c0d1,isResolvable:_0x3cbe8d,isSubmitted:_0x265e05}){if('string'!=typeof _0x590e33)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x590e33});if(this['hasCommentThread'](_0x590e33))throw new CKEditorError('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x590e33});const _0x5c017b=new CommentThread(this,{'channelId':_0x390c52,'id':_0x590e33,'context':_0x5a5876,'attributes':_0x210b11,'unlinkedAt':_0x10418d,'resolvedAt':_0x54a1c5,'resolvedBy':_0x5e5d1a?this['context']['plugins']['get'](Users)['getUser'](_0x5e5d1a):null,'isResolvable':_0x3cbe8d,'isSubmitted':_0x265e05||_0xd5c0d1});this['_threads']['set'](_0x590e33,_0x5c017b);for(const _0x15d2f3 of _0x2e7fec)_0x5c017b['_add'](this['_createNewComment']({'threadId':_0x590e33,..._0x15d2f3}));return _0x4cd8fb&&_0x5c017b['attachTo'](_0x4cd8fb),_0xd5c0d1||!_0x5c017b['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x390c52,'threadId':_0x590e33});}['_submitCommentThread']({channelId:_0x3524bd,threadId:_0x4428a9}){if(!this['hasCommentThread'](_0x4428a9))throw new CKEditorError('commentsrepository-missing-comment-thread',this);const _0x2403b4=this['getCommentThread'](_0x4428a9);if(_0x2403b4['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x1570bb,comments:_0x1d9bd9,resolvedAt:_0xcf2a01,resolvedBy:_0x39e268,context:_0x1524b5,attributes:_0x1a89f7}=_0x2403b4,_0x32c2b6=this['context']['plugins']['get']('PendingActions'),_0xbb034=_0x32c2b6['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x3524bd,'threadId':_0x1570bb,'comments':_0x1d9bd9['map'](_0x5e2394=>_0x5e2394['toJSON']()),'resolvedAt':_0xcf2a01,'resolvedBy':_0x39e268?_0x39e268['id']:_0x39e268,'context':_0x1524b5,'attributes':_0x1a89f7})['then'](({comments:_0xe678d2})=>{_0x32c2b6['remove'](_0xbb034);for(const _0x7a46f9 of _0xe678d2)this['_updateComment']({'channelId':_0x3524bd,'threadId':_0x4428a9,'commentId':_0x7a46f9['commentId'],'createdAt':_0x7a46f9['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x24830c=>{throw console['error'](_0x24830c),new CKEditorError('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x50a2a7,target:_0x12fd03}){const _0x5deaac=this['getCommentThread'](_0x50a2a7);if(!_0x5deaac)throw new CKEditorError('commentsrepository-attach-missing-comment-thread',this);const _0x5d5bf9=this['context']['plugins']['get']('PendingActions'),_0x1a67b2=this['context']['plugins']['get'](Annotations),_0x22b793=this['_createCommentThreadView'](_0x5deaac),_0x49f486=new CommentThreadController(_0x5deaac,_0x22b793);let _0x1117a5=null;_0x22b793['on']('change:isDirty',(_0xe24eb2,_0x3ceb90,_0x11bbce)=>{_0x11bbce?_0x1117a5=_0x5d5bf9['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x1117a5&&(_0x5d5bf9['remove'](_0x1117a5),_0x1117a5=null);}),this['_threadToController']['set'](_0x5deaac,_0x49f486),this['_viewToController']['set'](_0x22b793,_0x49f486);const _0x595932=new AnnotationView(this['context']['locale'],_0x22b793);_0x595932['bind']('length')['to'](_0x22b793),_0x595932['bind']('isDirty')['to'](_0x22b793,'isDirty',_0x22b793,'length',(_0x14655e,_0x258123)=>_0x14655e||!_0x258123),_0x595932['bind']('isActive')['to'](_0x22b793),_0x595932['type']='comment';const _0x1e5dd3=new Annotation$1({'view':_0x595932,'target':_0x12fd03,'type':'comment','isVisible':!_0x5deaac['archivedAt']&&!!('function'==typeof _0x12fd03?_0x12fd03():_0x12fd03)});return _0x22b793['on']('escape',()=>{_0x1e5dd3['fire']('escape');}),this['_bindAnnotationToEditors'](_0x22b793,_0x1e5dd3),_0x1a67b2['add'](_0x1e5dd3),_0x1e5dd3;}['_bindAnnotationToEditors'](_0x3b4dc9,_0x29d5ea){this['listenTo'](_0x3b4dc9,'editorReady',(_0x15010e,_0x133dee)=>{const _0x2e350d=_0x133dee['ui']['view']['body']['bodyCollectionContainer'];_0x29d5ea['focusableElements']['add'](_0x2e350d),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['add'](_0x2e350d);},{'priority':'highest'}),this['listenTo'](_0x3b4dc9,'editorDestroyed',(_0x1db9a3,_0x5eaebb)=>{const _0x35f607=_0x5eaebb['ui']['view']['body']['bodyCollectionContainer'];_0x29d5ea['focusableElements']['has'](_0x35f607)&&_0x29d5ea['focusableElements']['remove'](_0x35f607),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['remove'](_0x35f607);});}['_unbindEditors'](_0x15ae19){this['stopListening'](_0x15ae19,'editorReady'),this['stopListening'](_0x15ae19,'editorDestroyed');}['_createCommentThreadView'](_0x42b430){const _0x253edb=this['context']['plugins']['get'](Users),{config:_0x249a12,locale:_0x300d71}=this['context'],_0xb45c91=getDateTimeFormatter(_0x249a12['get']('locale'),_0x300d71);return new(0x0,(_0x249a12['get']('comments'))['CommentThreadView'])(_0x300d71,_0x42b430,_0x253edb['me'],{'editorConfig':{..._0x249a12['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x249a12['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x249a12['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x249a12['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x249a12['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xb45c91,'CommentView':_0x249a12['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x1c2325,channelId:_0x3de398,resolvedAt:_0xf02d79,resolvedBy:_0x10b9d9,isFromAdapter:_0x56b905}){if(!this['hasCommentThread'](_0x1c2325))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x1c2325});const _0x1b6329=this['getCommentThread'](_0x1c2325);if(_0x1b6329['isResolved'])throw new CKEditorError('commentsrepository-resolved-comment-thread',null,{'threadId':_0x1c2325});const _0x5b036b=this['context']['plugins']['get'](Users);if(_0x1b6329['resolvedBy']=_0x5b036b['getUser'](_0x10b9d9),_0x1b6329['resolvedAt']=_0xf02d79,_0x56b905||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x38d620=this['context']['plugins']['get']('PendingActions'),_0x4d89f6=_0x38d620['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x3de398,'threadId':_0x1c2325})['then'](({resolvedAt:_0x3820e8,resolvedBy:_0x548638})=>{_0x38d620['remove'](_0x4d89f6),_0x1b6329['resolvedBy']['id']!==_0x548638&&(_0x1b6329['resolvedBy']=_0x5b036b['getUser'](_0x548638)),_0x1b6329['resolvedAt']=_0x3820e8;})['catch'](_0x1b077e=>{throw console['error'](_0x1b077e),new CKEditorError('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x88f4ed,channelId:_0x5004af,isFromAdapter:_0x23be64}){if(!this['hasCommentThread'](_0x88f4ed))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x88f4ed});const _0x4370ba=this['getCommentThread'](_0x88f4ed);if(!_0x4370ba['isResolved'])throw new CKEditorError('commentsrepository-reopen-comment-thread',null,{'threadId':_0x88f4ed});if(_0x4370ba['resolvedBy']=null,_0x4370ba['resolvedAt']=null,_0x23be64||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3d36a7=this['context']['plugins']['get']('PendingActions'),_0xea6e26=_0x3d36a7['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x5004af,'threadId':_0x88f4ed})['then'](()=>_0x3d36a7['remove'](_0xea6e26))['catch'](_0x1a91c8=>{throw console['error'](_0x1a91c8),new CKEditorError('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x335a69,isFromAdapter:_0x54b2a5}){const _0x401b4b=this['getCommentThread'](_0x335a69);if(!_0x401b4b)throw new CKEditorError('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x335a69),this['_threads']['delete'](_0x335a69),!_0x401b4b['isSubmitted']||_0x54b2a5||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x2f761d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x53972a}=_0x401b4b,_0x2940a9=_0x2f761d['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x53972a,'threadId':_0x335a69})['then'](()=>_0x2f761d['remove'](_0x2940a9))['catch'](_0x4142ee=>{throw console['error'](_0x4142ee),new CKEditorError('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x3c625a,unlinkedAt:_0x37ee78,context:_0x4296c0,attributes:_0x5ebe22,isFromAdapter:_0x566821}){if('string'!=typeof _0x3c625a)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3c625a});if(!this['hasCommentThread'](_0x3c625a))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x3c625a});const _0x3459c5=this['getCommentThread'](_0x3c625a);let _0x3c5841=!0x1;if(void 0x0!==_0x4296c0&&_0x3459c5['context']!==_0x4296c0&&(_0x3459c5['context']=_0x4296c0,_0x3c5841=!0x0),void 0x0!==_0x37ee78&&_0x3459c5['unlinkedAt']!==_0x37ee78&&(_0x3459c5['unlinkedAt']=_0x37ee78,_0x3c5841=!0x0),_0x5ebe22&&!isEqual(_0x5ebe22,_0x3459c5['attributes'])&&(_0x3459c5['attributes']=_0x5ebe22,_0x3c5841=!0x0),!_0x3c5841)return Promise['resolve']();if(!_0x3459c5['isSubmitted']||_0x566821||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x3c3d3f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x40d719}=_0x3459c5,_0x465181=_0x3c3d3f['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x40d719,'threadId':_0x3c625a,'context':_0x4296c0,'unlinkedAt':_0x37ee78,'attributes':_0x5ebe22})['then'](()=>_0x3c3d3f['remove'](_0x465181))['catch'](_0x2251b2=>{throw console['error'](_0x2251b2),new CKEditorError('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x1d9bb8){const _0x32925b=this['context']['plugins']['get'](Annotations),_0xd36398=this['getCommentThread'](_0x1d9bb8);if(_0xd36398['_isAttached']=!0x1,this['_threadToController']['has'](_0xd36398)){const _0xc9eb2b=this['_threadToController']['get'](_0xd36398),_0x517cbd=_0xc9eb2b['view'],_0x395cde=_0x32925b['getByInnerView'](_0x517cbd);this['_threadToController']['delete'](_0xd36398),this['_viewToController']['delete'](_0x517cbd),_0x395cde&&_0x32925b['remove'](_0x395cde),_0xc9eb2b['destroy'](),_0x517cbd['destroy']()['then'](()=>{this['_unbindEditors'](_0x517cbd);});}}['_updateActiveAnnotation']({threadId:_0xf5cbf5,resolvedAt:_0x2e3962,unlinkedAt:_0x1653ae}){const _0x5c6217=!!_0x2e3962,_0x366e05=this['context']['plugins']['get'](Annotations),_0x4891fa=this['getCommentThread'](_0xf5cbf5);if(this['_threadToController']['has'](_0x4891fa)){const _0x3a0849=this['_threadToController']['get'](_0x4891fa)['view'],_0x478978=_0x366e05['getByInnerView'](_0x3a0849);_0x478978&&(_0x5c6217&&_0x366e05['_removeActiveAnnotation'](_0x478978),_0x1653ae?_0x478978['isVisible']=!0x1:_0x478978['refreshVisibility']());}}['_getExternalAuthor'](_0x534bc1){const _0x4e9343=this['context']['plugins']['get'](Users),_0x17e709=hashObject('external:'+_0x534bc1),_0xb0d445=_0x4e9343['getUser'](_0x17e709);return _0xb0d445||_0x4e9343['addUser']({'id':_0x17e709,'name':_0x534bc1});}['_createNewComment']({threadId:_0x2d898f,commentId:_0x5bf121=uid(),content:_0x49c4d5,authorId:_0x70aee4,createdAt:_0x40bdb6,attributes:_0x425e13}){if('string'!=typeof _0x5bf121)throw new CKEditorError('commentsrepository-invalid-commentid');if('string'!=typeof _0x70aee4)throw new CKEditorError('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x49c4d5||!_0x49c4d5['trim']())throw new CKEditorError('commentsrepository-invalid-comment-content');const _0x56aed4=this['context']['plugins']['get'](Users)['getUser'](_0x70aee4);if(!_0x56aed4)throw new CKEditorError('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x70aee4});let _0x37db7d=null,_0x116e10=_0x40bdb6;return _0x425e13?.['@external']&&(_0x37db7d=this['_getExternalAuthor'](_0x425e13['@external']['authorName']),_0x116e10=new Date(_0x425e13['@external']['createdAt'])),new Comment(this,{'threadId':_0x2d898f,'id':_0x5bf121,'author':_0x37db7d||_0x56aed4,'creator':_0x56aed4,'content':_0x49c4d5,'createdAt':_0x40bdb6,'authoredAt':_0x116e10,'attributes':_0x425e13});}['_addComment'](_0x29a64d){let {threadId:_0x11866f,content:_0x29f51b,attributes:_0x222f0c,isFromAdapter:_0x3a1c5e}=_0x29a64d;const _0x1a7427=this['getCommentThread'](_0x29a64d['threadId']);if(!_0x1a7427)throw new CKEditorError('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x173ed9=this['_createNewComment'](_0x29a64d),{id:_0x4d810f}=_0x173ed9;if(_0x1a7427['_add'](_0x173ed9),_0x3a1c5e||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x1a7427['isSubmitted'])return Promise['resolve']();const _0x56beb3=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4a18b7}=_0x1a7427,_0x230731=_0x56beb3['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x222f0c||(_0x222f0c={}),this['adapter']['addComment']({'channelId':_0x4a18b7,'threadId':_0x11866f,'commentId':_0x4d810f,'content':_0x29f51b,'attributes':_0x222f0c})['then'](_0x40bab4=>{_0x56beb3['remove'](_0x230731),_0x40bab4&&this['_updateComment']({'channelId':_0x4a18b7,'threadId':_0x11866f,'commentId':_0x4d810f,'createdAt':_0x40bab4['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x329f32=>{throw console['error'](_0x329f32),new CKEditorError('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x2ca1fe,commentId:_0x306c2c,content:_0x110125,createdAt:_0x7329f7,attributes:_0x40edd7,isFromAdapter:_0x56706b}){if(void 0x0!==_0x110125&&('string'!=typeof _0x110125||!_0x110125['trim']()['length']))throw new CKEditorError('commentsrepository-update-comment-invalid-content');const _0x57fc35=this['getCommentThread'](_0x2ca1fe),_0x1904fe=_0x57fc35['getComment'](_0x306c2c);if(!_0x1904fe)throw new CKEditorError('commentsrepository-update-missing-comment',this);let _0x5b119c=!0x1;if(_0x110125&&_0x110125!==_0x1904fe['content']&&(_0x1904fe['isEditable']||_0x56706b)&&(_0x1904fe['content']=_0x110125,_0x5b119c=!0x0),_0x7329f7&&_0x7329f7!==_0x1904fe['createdAt']&&(_0x1904fe['createdAt']=_0x7329f7,_0x1904fe['attributes']&&_0x1904fe['attributes']['@external']||(_0x1904fe['authoredAt']=_0x7329f7),_0x5b119c=!0x0),_0x40edd7&&!isEqual(_0x40edd7,_0x1904fe['attributes'])&&(_0x1904fe['attributes']=_0x40edd7,_0x5b119c=!0x0),!_0x5b119c)return Promise['resolve']();if(_0x57fc35['fire']('commentUpdated'),_0x56706b||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x1b518e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5a5094}=this['getCommentThread'](_0x1904fe['threadId']),_0x3eedcb=_0x1b518e['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x5a5094,'threadId':_0x2ca1fe,'commentId':_0x306c2c,'content':_0x110125,'attributes':_0x40edd7})['then'](()=>_0x1b518e['remove'](_0x3eedcb))['catch'](_0x13fa9a=>{throw console['error'](_0x13fa9a),new CKEditorError('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x53747e,commentId:_0x5f4793,isFromAdapter:_0x25c353}){const _0x4dad73=this['getCommentThread'](_0x53747e),_0xc1460=_0x4dad73['getComment'](_0x5f4793);if(!_0xc1460)throw new CKEditorError('commentsrepository-remove-missing-comment',this);if(_0x4dad73['_remove'](_0xc1460),_0x25c353||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x307086=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1d6f3c}=_0x4dad73,_0x26e4cb=_0x307086['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x1d6f3c,'threadId':_0x53747e,'commentId':_0x5f4793})['then'](()=>_0x307086['remove'](_0x26e4cb))['catch'](_0x1698e5=>{throw console['error'](_0x1698e5),new CKEditorError('commentsrepository-remove-comment-internal-error',this);});}}class CommentThread extends/* #__PURE__ -- @preserve */
ObservableMixin(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x1a2960,_0x3978b4){super();const _0x1a360b=_0x3978b4['isResolvable'];this['channelId']=_0x3978b4['channelId'],this['id']=_0x3978b4['id'],this['comments']=new Collection(),this['_repository']=_0x1a2960,this['_isAttached']=!0x1,this['_isSubmitted']=_0x3978b4['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x1a2960,'_permissions',_0x1a2960,'_readOnlyChannels',()=>_0x1a2960['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x1a2960,'_permissions',()=>_0x1a2960['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x1a2960,'_permissions',()=>{const _0x47e31c=_0x1a2960['getPermissions'](this['channelId']);return _0x47e31c['write']||_0x47e31c['admin'];}),this['bind']('isResolvable')['to'](_0x1a2960,'_permissions',()=>_0x1a360b&&_0x1a2960['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x3978b4['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x9b56a4,_0x1ea951)=>_0x9b56a4?_0x1ea951?_0x9b56a4<_0x1ea951?_0x9b56a4:_0x1ea951:_0x9b56a4:_0x1ea951),this['set']('unlinkedAt',_0x3978b4['unlinkedAt']||null),this['set']('resolvedAt',_0x3978b4['resolvedAt']||null),this['set']('resolvedBy',_0x3978b4['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x5e3347=>!!_0x5e3347),this['set']('attributes',_0x3978b4['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x2f8b9c,_0x54c633)=>_0x2f8b9c+_0x54c633['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x1967f1,id:_0x1ade66}=this;this['_repository']['fire'](toEventName('submitCommentThread',_0x1967f1),{'channelId':_0x1967f1,'threadId':_0x1ade66});}['setUnlinkedAt'](_0x697e4f){this['_update']({'unlinkedAt':_0x697e4f});}['resolve']({resolvedAt:_0x46d9a2=new Date(),resolvedBy:_0x593476='',isFromAdapter:_0x276b63=!0x1}={}){const _0x121595=this['_repository']['context']['plugins']['get'](Users)['me'],{channelId:_0x3e8b28,id:_0x5e77bd}=this;this['_repository']['fire'](toEventName('resolveCommentThread',_0x3e8b28),{'channelId':_0x3e8b28,'threadId':_0x5e77bd,'resolvedAt':_0x46d9a2,'resolvedBy':_0x593476||_0x121595['id'],'isFromAdapter':_0x276b63});}['reopen']({isFromAdapter:_0x17e538=!0x1}={}){const {channelId:_0x10e7a5,id:_0x4dd43e}=this;this['_repository']['fire'](toEventName('reopenCommentThread',_0x10e7a5),{'channelId':_0x10e7a5,'threadId':_0x4dd43e,'isFromAdapter':_0x17e538});}['setContext'](_0x1bcdba){this['context']||this['_update']({'context':_0x1bcdba});}['setAttribute'](_0x4edf47,_0x40524c){const _0x5f70e1=cloneDeep(this['attributes']);set(_0x5f70e1,_0x4edf47,_0x40524c),this['_update']({'attributes':_0x5f70e1});}['removeAttribute'](_0x150c98){const _0x47a392=cloneDeep(this['attributes']);unset(_0x47a392,_0x150c98),this['_update']({'attributes':_0x47a392});}['remove']({isFromAdapter:_0x319316=!0x1}={}){const {channelId:_0x21f849,id:_0x1d987a}=this;this['_repository']['fire'](toEventName('removeCommentThread',_0x21f849),{'channelId':_0x21f849,'threadId':_0x1d987a,'isFromAdapter':_0x319316});}['attachTo'](_0x241d40){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x241d40});}['addComment'](_0x2bf9a9){const {channelId:_0x45c164,id:_0x2ab4c3}=this;this['_repository']['fire'](toEventName('addComment',_0x45c164,_0x2ab4c3),Object['assign']({'channelId':_0x45c164,'threadId':_0x2ab4c3},_0x2bf9a9));}['getComment'](_0x34b796){if('string'!=typeof _0x34b796)throw new CKEditorError('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x34b796});return this['comments']['get'](_0x34b796);}['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'](_0x28aa16=>_0x28aa16['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3512ca){return this['listenTo'](_0x3512ca,'change:authoredAt',()=>{const _0x4f4858=this['_findOptimalIndex'](_0x3512ca),_0x21aa4f=this['comments'];_0x4f4858-0x1!=_0x21aa4f['getIndex'](_0x3512ca)&&_0x4f4858+0x1!=_0x21aa4f['getIndex'](_0x3512ca)&&(this['_remove'](_0x3512ca),this['_add'](_0x3512ca));}),this['comments']['add'](_0x3512ca,this['_findOptimalIndex'](_0x3512ca));}['_update'](_0x309ab4){const {channelId:_0xd6cc4d,id:_0x291f67}=this;this['_repository']['fire'](toEventName('updateCommentThread',_0xd6cc4d),{..._0x309ab4,'channelId':_0xd6cc4d,'threadId':_0x291f67});}['_remove'](_0x31716c){return this['stopListening'](_0x31716c),_0x31716c['destroy'](),this['comments']['remove'](_0x31716c);}['_findOptimalIndex'](_0x40754d){const _0x2218f5=this['comments']['find'](_0x42dae1=>new Date(_0x42dae1['authoredAt'])['getTime']()>new Date(_0x40754d['authoredAt'])['getTime']());return _0x2218f5?this['comments']['getIndex'](_0x2218f5):this['length'];}}const MIN_WEIGHT=0xc8;function getContentLength(_0x2a5dae){const _0x1e1e6c=document['createElement']('div');return _0x1e1e6c['innerHTML']=_0x2a5dae,_0x1e1e6c['textContent']['length'];}class Comment extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x90e5d,_0x4ad3aa){super();const _0x32ed14=_0x90e5d['context']['plugins']['get'](Users)['me'],_0x211848=_0x90e5d['getCommentThread'](_0x4ad3aa['threadId']),_0x4154c1=0x0===_0x211848['comments']['length'],_0x1e7e95=_0x32ed14===_0x4ad3aa['author'];this['id']=_0x4ad3aa['id'],this['threadId']=_0x4ad3aa['threadId'],this['author']=_0x4ad3aa['author'],this['creator']=_0x4ad3aa['creator'],this['isExternal']=Boolean(_0x4ad3aa['attributes']&&_0x4ad3aa['attributes']['@external']),this['set']('content',_0x4ad3aa['content']),this['createdAt']=_0x4ad3aa['createdAt']||new Date(),this['set']('authoredAt',_0x4ad3aa['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x211848,'resolvedAt'),this['set']('attributes',_0x4ad3aa['attributes']||{}),this['bind']('isEditable')['to'](_0x90e5d,'_permissions',()=>{const _0x49f1ff=_0x90e5d['getPermissions'](_0x211848['channelId'])['write'],_0x413e5a=_0x90e5d['getPermissions'](_0x211848['channelId'])['modifyAll'];return _0x1e7e95&&_0x49f1ff||!_0x1e7e95&&_0x413e5a;}),this['bind']('isRemovable')['to'](_0x211848,'isRemovable',_0x90e5d,'_permissions',_0x1e3876=>{const _0x500158=_0x90e5d['getPermissions'](_0x211848['channelId'])['write'],_0x1822a3=_0x90e5d['getPermissions'](_0x211848['channelId'])['modifyAll'];return _0x1e7e95&&_0x500158||_0x1e3876&&_0x4154c1||!_0x1e7e95&&_0x1822a3&&!_0x4154c1;}),this['bind']('isReadOnly')['to'](_0x211848,'isReadOnly'),this['_repository']=_0x90e5d;}get['weight'](){return Math['max'](getContentLength(this['content']),MIN_WEIGHT);}['update'](_0x521bda){const {threadId:_0x1b1406,id:_0x13bfd7}=this;if(!this['_repository']['hasCommentThread'](_0x1b1406))throw new CKEditorError('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x37ba64}=this['_repository']['getCommentThread'](_0x1b1406);this['_repository']['fire'](toEventName('updateComment',_0x37ba64,_0x1b1406),{'channelId':_0x37ba64,'threadId':_0x1b1406,'commentId':_0x13bfd7,..._0x521bda});}['setAttribute'](_0x4e3e2e,_0x242b1f){const _0x467feb=cloneDeep(this['attributes']);set(_0x467feb,_0x4e3e2e,_0x242b1f),this['update']({'attributes':_0x467feb});}['removeAttribute'](_0x1463b8){const _0x4ca942=cloneDeep(this['attributes']);unset(_0x4ca942,_0x1463b8),this['update']({'attributes':_0x4ca942});}['remove'](_0x1da059={}){if(!_0x1da059['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x4d1449,id:_0x10d0b0}=this;if(!this['_repository']['hasCommentThread'](_0x4d1449))throw new CKEditorError('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x435ef2}=this['_repository']['getCommentThread'](_0x4d1449);this['_repository']['fire'](toEventName('removeComment',_0x435ef2,_0x4d1449),{'channelId':_0x435ef2,'threadId':_0x4d1449,'commentId':_0x10d0b0,..._0x1da059});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function toEventName(_0x375b5a,..._0x21a4f0){for(const _0x328dad of _0x21a4f0)void 0x0!==_0x328dad&&(_0x375b5a+=':'+String(_0x328dad));return _0x375b5a;}class AddCommentThreadCommand extends Command{constructor(_0xce914e){super(_0xce914e),this['set']('hasContent',!0x1);}['refresh'](){const _0x5a6c40=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x5db0b2 of _0x5a6c40['getRanges']())if(this['_hasContent'](_0x5db0b2))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x91245d=uid(),ranges:_0x133cc5,comment:_0x1784a2}={}){const _0x2c951f=this['editor']['model'],_0x5f2fc8=_0x133cc5??Array['from'](_0x2c951f['document']['selection']['getRanges']()),_0x1b39a0=[];for(const _0x361a9d of _0x5f2fc8)this['_hasContent'](_0x361a9d)&&_0x1b39a0['push'](this['_trimToContent'](_0x361a9d));if(!_0x1b39a0['length'])throw new CKEditorError('addcommentthreadcommand-incorrect-ranges',null);_0x1784a2&&this['_createCommentThread'](_0x91245d,_0x1784a2),this['_createMarkersFromRanges'](_0x91245d,_0x1b39a0,!!_0x1784a2);}['_createMarkersFromRanges'](_0x3f687a,_0x41e02c,_0x2eb7e9){this['editor']['model']['change'](_0x5590c2=>{for(const _0x202cd0 of _0x41e02c){const _0x3a4102=uid()['substr'](0x1,0x5),_0x17f13a='comment:'+_0x3f687a+':'+_0x3a4102;_0x5590c2['addMarker'](_0x17f13a,{'range':_0x202cd0,'usingOperation':_0x2eb7e9,'affectsData':_0x2eb7e9});}});}['_createCommentThread'](_0x4fe2bb,_0x25b89c){const _0x5260f4=this['editor']['plugins']['get']('CommentsRepository'),_0xfbca74=this['editor']['config']['get']('collaboration.channelId'),_0x5c7b40=this['editor']['plugins']['get']('Users')['me'];if(!_0x5c7b40)throw new CKEditorError('addcommentthreadcommand-user-not-found',null);_0x5260f4['addCommentThread']({'threadId':_0x4fe2bb,'channelId':_0xfbca74,'comments':[{'authorId':_0x5c7b40['id'],'content':_0x25b89c,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x49aac3){for(const _0x1680c2 of _0x49aac3['getItems']())if(this['_itemIsContent'](_0x1680c2))return!0x0;return!0x1;}['_itemIsContent'](_0x3f3fb4){return _0x3f3fb4['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x3f3fb4)&&!_0x3f3fb4['is']('element','tableCell');}['_trimToContent'](_0x2b2e74){const _0x4a2916=_0x2ff939=>!this['_itemIsContent'](_0x2ff939['item']),_0x266a67=_0x2b2e74['start']['getLastMatchingPosition'](_0x4a2916),_0x133bfe=_0x2b2e74['end']['getLastMatchingPosition'](_0x4a2916,{'direction':'backward'});return this['editor']['model']['createRange'](_0x266a67,_0x133bfe);}}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(_0xf6140f){super(_0xf6140f),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x168e4d=this['editor'],_0x848cc2=_0x168e4d['model']['document']['selection'],_0x510635=debounce$1(()=>this['refreshSelectedViews'](),0xa);_0x848cc2['on']('change:range',(_0x1c989e,_0x440ac8)=>{_0x440ac8['directChange']&&(_0x510635['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x168e4d['editing']['view']['document'],'change:isFocused',(_0x1485c3,_0x54abd0,_0x24fd00)=>{_0x24fd00&&_0x510635();}),this['listenTo'](_0x168e4d['ui']['focusTracker'],'change:isFocused',(_0xd9d615,_0x35a9bf,_0x3199d1)=>{_0x3199d1||this['fire']('blur',{'isAnnotationTracked':_0x1d4def=>this['_editorAnnotationsData']['has'](_0x1d4def['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x199238){if(this['_editorAnnotations']['has'](_0x199238['view']))return;this['_editorAnnotations']['add'](_0x199238['view']),this['editor']['ui']['focusTracker']['add'](_0x199238['view']['element']);const _0x58a50c=this['editor']['plugins']['get'](Annotations);this['listenTo'](_0x58a50c['collection'],'remove',(_0x5ab186,_0x45c5de)=>{this['editor']['ui']['focusTracker']['remove'](_0x45c5de['view']['element']),this['_editorAnnotations']['delete'](_0x45c5de['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x24963f){if('function'!=typeof _0x24963f)throw new CKEditorError('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x24963f);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4b1dcf,annotations:_0x45a9cd}){const _0x21bcf8=[],_0xe203b6=this['editor']['model']['document']['selection'],_0x16b93d=Array['from'](_0xe203b6['getRanges']());for(const [_0x2baf22,_0x4b9935]of this['_editorAnnotationsData']){const _0x5cadb4=_0x589312(_0x4b9935),_0x291554=_0x45a9cd['getByInnerView'](_0x2baf22);_0x5cadb4&&_0x291554&&_0x21bcf8['push']({'annotation':_0x291554,'range':_0x5cadb4});}function _0x589312(_0x5bb975){for(const _0xc86201 of _0x5bb975)for(const _0x35e2eb of _0x16b93d)if(_0xc86201['containsRange'](_0x35e2eb,!_0xe203b6['isCollapsed']))return _0xc86201;return null;}return _0x21bcf8['sort']((_0x1017b0,_0x40fb9d)=>{const _0x15457a=_0x1017b0['range'],_0x34f256=_0x40fb9d['range'];if(!_0x15457a['isEqual'](_0x34f256)){if(_0x15457a['containsRange'](_0x34f256,!0x0))return 0x1;if(_0x34f256['containsRange'](_0x15457a,!0x0))return-0x1;}return _0x1017b0['annotation']==_0x4b1dcf?-0x1:_0x40fb9d['annotation']==_0x4b1dcf?0x1:0x0;})['map'](_0x3862d1=>_0x3862d1['annotation']);}get['_editorAnnotationsData'](){const _0x5570d6=new Map();for(const _0x801589 of Array['from'](this['_dataCollectors']))for(const [_0x42bff2,_0x5b5c46]of _0x801589())_0x5570d6['set'](_0x42bff2,_0x5b5c46);return _0x5570d6;}}class CommentsRestrictedEditingMode extends Plugin{['afterInit'](){const _0x4e728a=this['editor'];if(!_0x4e728a['plugins']['has']('RestrictedEditingModeEditing'))return;_0x4e728a['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class CommentsImportWord extends Plugin{constructor(_0x27d831){super(_0x27d831),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x5ed336=this['editor'],_0x10fa24=_0x5ed336['commands']['get']('importWord'),_0x5e3b3e=_0x5ed336['plugins']['get'](Users);_0x10fa24&&(_0x10fa24['on']('execute',(_0x2175d2,[,_0x2b54fb])=>{_0x2b54fb['collaboration_features']={'comments':!0x0,'user_id':_0x5e3b3e['me']['id']};},{'priority':priorities['high']+0xa}),this['listenTo'](_0x10fa24,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x331a92,_0x19e025){const {comment_threads:_0x1881dc}=_0x19e025;_0x1881dc&&_0x1881dc['forEach'](({thread_id:_0x1cc71f,comments:_0x282e60,is_resolved:_0x397309})=>{const _0x1a08eb=new Date(),_0x29e4e2=_0x282e60['map'](({author:_0xf206c5,content:_0x20ecba,created_at:_0x26044a})=>({'content':_0x20ecba,'authorId':this['editor']['plugins']['get'](Users)['me']['id'],'createdAt':_0x1a08eb,'attributes':{'@external':{'authorName':_0xf206c5,'createdAt':_0x26044a?new Date(_0x26044a):new Date(),'source':'importWord'}}})),_0xf9556a=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](CommentsRepository)['addCommentThread']({'channelId':_0xf9556a,'threadId':_0x1cc71f,'comments':_0x29e4e2,'resolvedAt':_0x397309?_0x1a08eb:null});});}}class CommentsClipboard extends Plugin{constructor(_0x47d13a){super(_0x47d13a),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[ClipboardMarkersUtils,ClipboardPipeline];}['afterInit'](){const _0x1bb606=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x1bb606,'contentInsertion',(_0x15b457,_0x58bbd9)=>this['_removeMarkersWithoutThreads'](_0x58bbd9['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x5177c3){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x5177c3;const _0x50f2ee=this['editor']['plugins']['get']('CommentsRepository');for(const _0x554789 of _0x5177c3['keys']()){const [_0x547039,_0x1c1531]=_0x554789['split'](':');'comment'!=_0x547039||_0x50f2ee['hasCommentThread'](_0x1c1531)||_0x5177c3['delete'](_0x554789);}return _0x5177c3;}['_registerMarkerInClipboardPipeline'](){const _0xbfc6e9=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x28dd72=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x28dd72&&_0xbfc6e9['_registerMarkerToCopy']('comment',_0x28dd72);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x4fc57c){switch(_0x4fc57c){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function splitMarkerName(_0x34738d){const _0x574073=_0x34738d['split'](':');return{'group':_0x574073[0x0],'id':_0x574073[0x1],'part':_0x574073[0x2]};}class ShowCommentHighlights extends Plugin{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1159a9,_0xfbb510)=>{if(!_0xfbb510['options']['showCommentHighlights'])return null;if(_0xfbb510['options']['ignoreResolvedComments']){const {id:_0xb0a270}=splitMarkerName(_0x1159a9['markerName']),_0x3e39f4=this['editor']['plugins']['get'](CommentsRepository);if(_0x3e39f4['getCommentThread'](_0xb0a270)?.['isResolved']&&_0x1159a9['item'])return _0xfbb510['consumable']['consume'](_0x1159a9['item'],'addMarker:'+_0x1159a9['markerName']),_0xfbb510['consumable']['consume'](_0x1159a9['item'],'removeMarker:'+_0x1159a9['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x47bb03=>{_0x47bb03['on']('addMarker:comment',(_0x1fb525,_0x9dab4,_0x4d1d3e)=>{if(!_0x4d1d3e['options']['showCommentHighlights'])return;const _0x6785bb=_0x9dab4['item'];if(!_0x6785bb)return;const _0x36afc5=_0x4d1d3e['mapper']['toViewElement'](_0x6785bb);this['editor']['model']['schema']['isObject'](_0x6785bb)&&_0x36afc5&&!_0x36afc5['getCustomProperty']('widget')&&_0x36afc5['is']('containerElement')&&toWidget(_0x36afc5,_0x4d1d3e['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x21da8d,{writer:_0x507ee3,options:_0x5d7ced})=>{if(!_0x5d7ced['showCommentHighlights'])return null;const _0xacc66d=_0x507ee3['createContainerElement']('div'),_0x1c842d=_0x507ee3['createEmptyElement']('hr');return _0x507ee3['addClass']('ck-horizontal-line',_0xacc66d),_0x507ee3['insert'](_0x507ee3['createPositionAt'](_0xacc66d,0x0),_0x1c842d),_0xacc66d;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x3e185f,{writer:_0x161728,options:_0x1d84b5})=>{if(!_0x1d84b5['showCommentHighlights'])return null;const _0x50b7f3=_0x161728['createContainerElement']('span'),_0x25ed5a=_0x161728['createEmptyElement']('img');return _0x161728['addClass']('image-inline',_0x50b7f3),_0x161728['insert'](_0x161728['createPositionAt'](_0x50b7f3,0x0),_0x25ed5a),_0x50b7f3;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x365220,{writer:_0x2b3b02,options:_0x5008a6})=>{if(_0x5008a6['showCommentHighlights'])return _0x2b3b02['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2bacb7,_0x19fce8,_0x227fcb)=>{_0x227fcb['options']['showCommentHighlights']&&_0x2bacb7['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(_0x4654f2){super(_0x4654f2),this['set']('isThreadsLoadingPaused',!0x0),_0x4654f2['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2e1c0f,_0x22b48e,_0x48c133,_0x5c787b)=>{const _0x256438=_0x4654f2['plugins']['get'](CommentsRepository),_0x15639a=_0x48c133?splitMarkerName(_0x48c133)['id']:null;_0x4654f2['model']['change'](()=>{if(_0x15639a){const _0x30262f=this['getAllMarkersForId'](_0x15639a);for(const _0x1b8beb of _0x30262f)_0x4654f2['editing']['reconvertMarker'](_0x1b8beb);}if(_0x5c787b){const {id:_0x3bca75}=splitMarkerName(_0x5c787b),_0x302be3=_0x256438['getCommentThread'](_0x3bca75);if(_0x302be3&&_0x302be3['unlinkedAt'])return;if(_0x302be3&&!_0x302be3['isAttached'])return;const _0x49077b=this['getAllMarkersForId'](_0x3bca75);for(const _0x3d106d of _0x49077b)_0x4654f2['editing']['reconvertMarker'](_0x3d106d);}}),_0x15639a&&this['scrollToThreadMarker'](_0x15639a);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1883c9=this['editor'],_0x3a947a=_0x1883c9['plugins']['get'](CommentsRepository),_0x2c89f1=_0x1883c9['config']['get']('collaboration.channelId'),_0x12e8ec=_0x3a947a['getCommentThreads']()['filter'](_0x1cb0d9=>_0x1cb0d9['channelId']!==_0x2c89f1);_0x1883c9['commands']['add']('addCommentThread',new AddCommentThreadCommand(_0x1883c9)),this['listenTo'](_0x1883c9,'change:isReadOnly',(_0x3f15ec,_0x24933d,_0x376d9e)=>{_0x3a947a['switchReadOnly'](_0x376d9e,_0x1883c9['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x3a947a,createChannelEvent('addCommentThread',_0x2c89f1),(_0x325d30,{threadId:_0x840fad})=>{const _0x56f193=this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0x840fad);_0x56f193?.['unlinkedAt']&&this['_attachArchivedThread'](_0x840fad);}),this['listenTo'](_0x3a947a,createChannelEvent('removeCommentThread',_0x2c89f1),(_0x68c225,{threadId:_0x1db5ea})=>{_0x1883c9['model']['enqueueChange']({'isUndoable':!0x1},_0x433efa=>{const _0x113892=this['getAllMarkersForId'](_0x1db5ea);for(const _0xe2d950 of _0x113892)_0x433efa['removeMarker'](_0xe2d950);});}),this['listenTo'](_0x3a947a,createChannelEvent('resolveCommentThread',_0x2c89f1),(_0x14776d,{threadId:_0xa5409a})=>{(this['_reconvertMarkers'](_0xa5409a),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0xa5409a)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x3a947a,createChannelEvent('reopenCommentThread',_0x2c89f1),(_0x826308,{threadId:_0x44f918})=>{this['_reconvertMarkers'](_0x44f918);},{'priority':'low'}),this['listenTo'](_0x3a947a,createChannelEvent('addComment',_0x2c89f1),(_0x49a3e0,{threadId:_0x5360ae,isFromAdapter:_0x3d2ed3})=>{const _0x4fd4cf=this['getAllMarkersForId'](_0x5360ae);if(_0x3d2ed3||0x0==_0x4fd4cf['length']||!_0x3a947a['hasCommentThread'](_0x5360ae))return;0x1===_0x3a947a['getCommentThread'](_0x5360ae)['length']&&_0x1883c9['model']['enqueueChange']({'isUndoable':!0x1},_0xe124df=>{for(const _0x15ca95 of _0x4fd4cf)_0xe124df['updateMarker'](_0x15ca95,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x12e8ec);}['afterInit'](){checkLicense$h(this);}['destroy'](){const _0x166967=this['editor']['plugins']['get'](CommentsRepository),_0x3ca8f7=this['editor']['config']['get']('collaboration.channelId');for(const _0x2702b3 of _0x166967['getCommentThreads']({'channelId':_0x3ca8f7}))_0x166967['_detachCommentThread'](_0x2702b3['id']),_0x166967['_threads']['delete'](_0x2702b3['id']);super['destroy']();}['hasMarkerForId'](_0x2524fb){return this['getAllMarkersForId'](_0x2524fb)['length']>0x0;}['getAllMarkersForId'](_0x226d3e){const _0x14478e=[];for(const _0xd730b5 of this['editor']['model']['markers'])_0xd730b5['name']['startsWith']('comment:'+_0x226d3e)&&_0x14478e['push'](_0xd730b5);return _0x14478e;}['scrollToThreadMarker'](_0x4b6ced){setTimeout(()=>{const _0x2b5543=this['_getTargetForId'](_0x4b6ced);if(!_0x2b5543)return;this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x4b6ced&&scrollViewportToShowTarget({'target':_0x2b5543[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x40e655){this['editor']['model']['change'](()=>{for(const _0x1cfbeb of this['getAllMarkersForId'](_0x40e655))this['editor']['editing']['reconvertMarker'](_0x1cfbeb);});}['_attachArchivedThread'](_0x3c4848){const _0x512ee4=this['editor']['plugins']['get'](CommentsRepository),_0x52dcbe=this['editor']['plugins']['get'](EditorAnnotations),_0x331071=_0x512ee4['getCommentThread'](_0x3c4848);if(!_0x331071['isAttached']){const _0x57f5e7=_0x331071['attachTo'](()=>this['_getTargetForId'](_0x331071['id']));_0x52dcbe['registerAnnotation'](_0x57f5e7),_0x331071['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1490fa=this['editor'],_0x4de20f=_0x1490fa['plugins']['get'](Users);_0x1490fa['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x141d4e,_0x4d3037)=>{const {id:_0x7128eb}=splitMarkerName(_0x141d4e['markerName']),_0x1fb352=_0x1490fa['plugins']['get'](CommentsRepository)['getCommentThread'](_0x7128eb),_0x2dd989=this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x7128eb;let _0x3c240f;if(_0x1fb352&&_0x1fb352['isResolved']&&!_0x2dd989&&_0x141d4e['item'])return _0x4d3037['consumable']['consume'](_0x141d4e['item'],'addMarker:'+_0x141d4e['markerName']),_0x4d3037['consumable']['consume'](_0x141d4e['item'],'removeMarker:'+_0x141d4e['markerName']),null;const _0x19812d=['ck-comment-marker'];return _0x2dd989&&_0x19812d['push']('ck-comment-marker--active'),_0x3c240f=_0x1fb352?.['length']?_0x1fb352['comments']['first']['author']['id']:_0x4de20f['me']['id'],{'classes':_0x19812d,'attributes':{'data-comment':_0x7128eb,'data-author-id':_0x3c240f}};}}),_0x1490fa['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x34e9f9,{options:_0x2e3a9d})=>{if(_0x2e3a9d['showCommentHighlights'])return null;const _0x3cf1f1=_0x1490fa['plugins']['get'](CommentsRepository),_0x482ad6=_0x1490fa['model']['markers']['get'](_0x34e9f9),{id:_0xa92831,part:_0xd035f6}=splitMarkerName(_0x34e9f9);return _0x482ad6&&!_0x482ad6['affectsData']||_0x2e3a9d['ignoreResolvedComments']&&_0x3cf1f1['getCommentThread'](_0xa92831)?.['isResolved']?null:{'group':'comment','name':_0xd035f6?_0xa92831+':'+_0xd035f6:_0xa92831};}}),_0x1490fa['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x1d23b6,{writer:_0x433f70})=>_0x433f70['createElement']('$marker',{'data-name':'comment:'+_0x1d23b6['getAttribute']('id')})}),_0x1490fa['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x334cb3=this['editor'],_0x41894a=_0x334cb3['plugins']['get'](CommentsRepository),_0x248b96=new Set(),_0x5b53a2=new Set();_0x334cb3['model']['document']['registerPostFixer'](_0x584d6b=>{let _0x149bb0=!0x1;for(const {name:_0x4bae36,data:_0x32307f}of _0x334cb3['model']['document']['differ']['getChangedMarkers']()){const {group:_0x573294,id:_0xb27e42}=splitMarkerName(_0x4bae36);let _0x2e1f6c=_0x32307f['newRange'];if('comment'!==_0x573294||!_0x2e1f6c)continue;const _0x591c1a='$graveyard'===_0x2e1f6c['root']['rootName'];_0x591c1a||(_0x2e1f6c=fixMarkerRange(_0x2e1f6c,_0x334cb3['model']),!_0x2e1f6c||_0x2e1f6c['isCollapsed']||!_0x32307f['newRange']||_0x2e1f6c['isEqual'](_0x32307f['newRange']))?_0x334cb3['model']['hasContent'](_0x2e1f6c)&&!_0x591c1a?this['isThreadsLoadingPaused']?_0x248b96['add'](_0x4bae36):this['_handleThreadMarker'](_0x4bae36,_0xb27e42):(_0x5b53a2['add'](_0x4bae36),_0x248b96['delete'](_0x4bae36),_0x584d6b['removeMarker'](_0x4bae36),_0x149bb0=!0x0):(_0x584d6b['updateMarker'](_0x4bae36,{'range':_0x2e1f6c}),_0x149bb0=!0x0);}return _0x149bb0;}),this['on']('change:isThreadsLoadingPaused',(_0xf07435,_0x3b9b38,_0x1cc019)=>{if(!_0x1cc019&&_0x248b96['size'])for(const _0x518cf9 of _0x248b96){const {id:_0x5e4375}=splitMarkerName(_0x518cf9);_0x248b96['delete'](_0x518cf9),_0x334cb3['model']['markers']['get'](_0x518cf9)&&this['_handleThreadMarker'](_0x518cf9,_0x5e4375);}}),this['listenTo'](_0x334cb3['model']['document'],'change',()=>{for(const {name:_0x4fd31f,data:{newRange:_0x2d2a06}}of _0x334cb3['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1820dc,id:_0x541027}=splitMarkerName(_0x4fd31f);if('comment'!==_0x1820dc)continue;const _0x417f27=_0x41894a['getCommentThread'](_0x541027),_0x1b313e=this['hasMarkerForId'](_0x541027);_0x417f27&&(!_0x417f27['_hasTargetInContent']&&_0x2d2a06&&_0x334cb3['editing']['view']['once']('render',()=>{const _0x5d8d47=_0x334cb3['plugins']['get'](Annotations),_0x338799=_0x41894a['_threadToController']['get'](_0x417f27)['view'];_0x5d8d47['getByInnerView'](_0x338799)['refreshVisibility']();},{'priority':'low'}),_0x417f27['_hasTargetInContent']=_0x1b313e||!!_0x2d2a06),_0x2d2a06||(_0x5b53a2['add'](_0x4fd31f),_0x248b96['delete'](_0x4fd31f));}for(const _0x1cbfea of _0x5b53a2){const {id:_0x49eb31}=splitMarkerName(_0x1cbfea),_0x682bde=_0x41894a['getCommentThread'](_0x49eb31);if(_0x248b96['delete'](_0x1cbfea),!_0x682bde)continue;const _0x3b9268=this['hasMarkerForId'](_0x49eb31);_0x3b9268||_0x682bde['isSubmitted']?_0x3b9268||_0x682bde['unlinkedAt']||_0x682bde['setUnlinkedAt'](new Date()):_0x682bde['remove']();}_0x5b53a2['clear']();});}['_handleInitialThreads'](_0x4261fc){_0x4261fc['forEach'](_0x190782=>{_0x190782['unlinkedAt']&&this['_attachArchivedThread'](_0x190782['id']);});}['_getTargetForId'](_0xcccbbe){const _0x34dffb=this['editor'],_0x389816=this['getAllMarkersForId'](_0xcccbbe);return getAllMarkersDomElementsSorted(_0x34dffb['editing'],_0x389816);}['_getTextContext'](_0x4c531d){const _0x5e3a36=this['getAllMarkersForId'](_0x4c531d);let _0x44f48a='',_0x1511ca=!0x1;for(const _0x1d029d of _0x5e3a36){const _0x5364f4=_0x1d029d['getRange']();for(const _0x1a6953 of Array['from'](_0x5364f4['getItems']()))_0x1a6953['is']('$textProxy')?(_0x44f48a&&_0x1511ca&&(_0x44f48a+='\x20',_0x1511ca=!0x1),_0x44f48a+=_0x1a6953['data']):_0x1511ca=!0x0;_0x1511ca=!0x0;}return _0x44f48a['substring'](0x0,MAX_CONTEXT_LENGTH);}['_attachMarkerToThread'](_0x3c2783,_0x1a8175){const _0x1f33e8=this['editor'],_0x42fcc2=_0x1f33e8['plugins']['get'](CommentsRepository);let _0x3dd470=_0x42fcc2['getCommentThread'](_0x1a8175);const _0x183a14=_0x1f33e8['config']['get']('collaboration.channelId'),_0x1533a8=_0x1f33e8['plugins']['get'](EditorAnnotations);if(_0x3dd470&&(_0x3dd470['unlinkedAt']&&_0x3dd470['setUnlinkedAt'](null),_0x3dd470['isAttached']))return _0x3dd470;return!this['getAllMarkersForId'](_0x1a8175)[0x0]['managedUsingOperations']?_0x1f33e8['editing']['view']['once']('render',()=>{if(_0x42fcc2['getCommentThread'](_0x1a8175))return;const _0x17bd6f=_0x1f33e8['plugins']['get'](Annotations);_0x3dd470=_0x42fcc2['openNewCommentThread']({'channelId':_0x183a14,'threadId':_0x1a8175,'target':()=>this['_getTargetForId'](_0x1a8175),'context':{'type':'text','value':this['_getTextContext'](_0x1a8175)}});const _0x4e3639=_0x42fcc2['_threadToController']['get'](_0x3dd470)['view'],_0x1d716d=_0x17bd6f['getByInnerView'](_0x4e3639);_0x1d716d&&_0x1533a8['registerAnnotation'](_0x1d716d);},{'priority':'low'}):_0x42fcc2['fetchCommentThread']({'channelId':_0x183a14,'threadId':_0x1a8175})['then'](_0x344f6a=>{if('destroyed'!==_0x1f33e8['state']){if(_0x3dd470=_0x344f6a,_0x3dd470&&!_0x3dd470['isAttached']){const _0x521457=_0x3dd470['attachTo'](()=>this['_getTargetForId'](_0x1a8175));_0x1533a8['registerAnnotation'](_0x521457),_0x3dd470['isResolved']&&this['_reconvertMarkers'](_0x1a8175);}else{if(!_0x3dd470){const _0x33fa21=this['getAllMarkersForId'](_0x1a8175);_0x1f33e8['model']['change'](_0x2288c3=>{for(const _0x5537a8 of _0x33fa21)_0x2288c3['removeMarker'](_0x5537a8);});}}}}),_0x3dd470;}['_handleThreadMarker'](_0x28851b,_0x4d6ef3){const _0x16a0f2=this['_attachMarkerToThread'](_0x28851b,_0x4d6ef3);_0x16a0f2&&!_0x16a0f2['context']&&_0x16a0f2['setContext']({'type':'text','value':this['_getTextContext'](_0x4d6ef3)});}['_initAriaMarkerChangeAnnouncements'](){const _0x53e5f6=this['editor'];surroundingMarkersDetector(_0x53e5f6['model'],({left:_0x3e2dc3,entered:_0x39a49f})=>{for(const _0x277629 of _0x3e2dc3)if(isCommentMarker(_0x277629)){_0x53e5f6['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x53e5f6['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x412c88 of _0x39a49f)if(isCommentMarker(_0x412c88)){_0x53e5f6['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x53e5f6['locale'],'ENTER_COMMENT_ANNOUNCEMENT',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}});}}function createChannelEvent(_0x57f0b3,_0x26d7da){return _0x26d7da?_0x57f0b3+':'+_0x26d7da:_0x57f0b3;}function fixMarkerRange(_0x36e6ac,_0x29d228){const _0x27a9f4=_0x29d228['schema'],_0x16c790=_0x29d228['createRange'](_0x36e6ac['start']);for(const _0x168ab3 of _0x36e6ac['getWalker']()){const {type:_0x14cd8f,item:_0xe4aa91,nextPosition:_0x367119}=_0x168ab3;if('text'===_0x14cd8f||_0x27a9f4['isObject'](_0xe4aa91)){const _0x248abc=_0x29d228['createPositionBefore'](_0xe4aa91);_0x16c790['isCollapsed']&&(_0x16c790['start']=_0x248abc),_0x16c790['end']=_0x367119;}}return _0x16c790;}function isCommentMarker(_0x5ed5d4){return'comment'===splitMarkerName(_0x5ed5d4['name'])['group'];}async function checkLicense$h(_0x4243b0){const _0x2f933b=_0x747aa1([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]),_0x370c6e=window[_0x747aa1([0x44,0x61,0x74,0x65])][_0x747aa1([0x6e,0x6f,0x77])](),_0x3f7a4a=_0x4243b0[_0x747aa1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x441b13=new window[(_0x747aa1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x439e4b=>{_0x3f7a4a[_0x747aa1([0x6f,0x6e,0x63,0x65])](_0x747aa1([0x72,0x65,0x61,0x64,0x79]),_0x439e4b);}),_0x57bdf0={[_0x747aa1([0x6b,0x74,0x79])]:_0x747aa1([0x45,0x43]),[_0x747aa1([0x75,0x73,0x65])]:_0x747aa1([0x73,0x69,0x67]),[_0x747aa1([0x63,0x72,0x76])]:_0x747aa1([0x50,0x2d,0x32,0x35,0x36]),[_0x747aa1([0x78])]:_0x747aa1([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]),[_0x747aa1([0x79])]:_0x747aa1([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]),[_0x747aa1([0x61,0x6c,0x67])]:_0x747aa1([0x45,0x53,0x32,0x35,0x36])},_0xfe9a5c=_0x3f7a4a[_0x747aa1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x747aa1([0x67,0x65,0x74])](_0x747aa1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x30e2ce=await(async function(){let _0x3c10a6,_0x2f0393=null,_0x2a8b96=null;try{if(_0xfe9a5c==_0x747aa1([0x47,0x50,0x4c]))return _0x747aa1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c10a6=(function(){const _0x16524b=_0xfe9a5c[_0x747aa1([0x73,0x70,0x6c,0x69,0x74])](_0x747aa1([0x2e]));if(0x3!=_0x16524b[_0x747aa1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x4d980c=_0x16524b[0x1];return _0x3e659e(_0x4d980c);function _0x3e659e(_0x4a6f05){const _0x3f59f6=_0x480f12(_0x4a6f05);return _0x3f59f6&&_0x403173()?_0x3f59f6:null;function _0x403173(){const _0x5d0554=_0x3f59f6[_0x747aa1([0x6a,0x74,0x69])],_0x57311a=window[_0x747aa1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d0554[_0x747aa1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d0554[_0x747aa1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cd0aa={..._0x3f59f6,[_0x747aa1([0x6a,0x74,0x69])]:_0x5d0554[_0x747aa1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d0554[_0x747aa1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cd0aa[_0x747aa1([0x76,0x63])],_0xb2abe4(_0x1cd0aa)==_0x57311a;}}}()),!_0x3c10a6)return _0x747aa1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x3c10a6[_0x747aa1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a8b96=function(_0x8ba1ca,_0x69ee89){return new window[(_0x747aa1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c431=>{if(_0x20a284())return _0x26c431(_0x747aa1([0x56,0x61,0x6c,0x69,0x64]));_0x57ed8e(),_0x3f7a4a[_0x747aa1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x747aa1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2041c0=!0x1;const _0x165780=uid();function _0x18fb28(_0x68d3a9){return!!_0x68d3a9&&(typeof _0x68d3a9===_0x747aa1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x68d3a9===_0x747aa1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x68d3a9[_0x747aa1([0x74,0x68,0x65,0x6e])]===_0x747aa1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x68d3a9[_0x747aa1([0x63,0x61,0x74,0x63,0x68])]===_0x747aa1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27a844(_0x33e6a5){_0x17097f(_0x33e6a5)[_0x747aa1([0x74,0x68,0x65,0x6e])](_0x278461=>{if(!_0x278461||_0x278461[_0x747aa1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x747aa1([0x6f,0x6b]))return _0x747aa1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45897b(_0xb2abe4(_0x165780+_0x69ee89))!=_0x278461[_0x747aa1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x747aa1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x747aa1([0x56,0x61,0x6c,0x69,0x64]);})[_0x747aa1([0x74,0x68,0x65,0x6e])](_0x175560=>(_0x23fe78(),_0x175560),()=>{const _0x2ad032=_0x46aa52();return null==_0x2ad032?(_0x23fe78(),_0x747aa1([0x56,0x61,0x6c,0x69,0x64])):_0x747aa1(_0x370c6e-_0x2ad032>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x747aa1([0x74,0x68,0x65,0x6e])](_0x26c431)[_0x747aa1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26c431(_0x747aa1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13dac3=0x36ee80;function _0x23fe78(){const _0x971904=_0x747aa1([0x6c,0x6c,0x63,0x74,0x2d])+_0x45897b(_0xb2abe4(_0x8ba1ca)),_0x2c609b=_0x352f33(_0x45897b(window[_0x747aa1([0x4d,0x61,0x74,0x68])][_0x747aa1([0x63,0x65,0x69,0x6c])](_0x370c6e/_0x13dac3)));window[_0x747aa1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x747aa1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x971904,_0x2c609b);}function _0x46aa52(){const _0x12c616=_0x747aa1([0x6c,0x6c,0x63,0x74,0x2d])+_0x45897b(_0xb2abe4(_0x8ba1ca)),_0x5e325a=window[_0x747aa1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x747aa1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12c616);return _0x5e325a?window[_0x747aa1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x352f33(_0x5e325a),0x10)*_0x13dac3:null;}function _0x17097f(_0x28faf){return new window[(_0x747aa1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdc2d5c,_0x54f1ff)=>{_0x28faf[_0x747aa1([0x74,0x68,0x65,0x6e])](_0xdc2d5c,_0x54f1ff),window[_0x747aa1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54f1ff,0x1d4c0);});}}_0x3f7a4a[_0x747aa1([0x6f,0x6e])](_0x747aa1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4630ea,_0x3e72ac)=>{if(_0x3e72ac[0x0]!=_0x8ba1ca)return _0x26c431(_0x747aa1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e72ac[0x1]={..._0x3e72ac[0x1],[_0x747aa1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x165780};},{[_0x747aa1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x747aa1([0x68,0x69,0x67,0x68])}),_0x3f7a4a[_0x747aa1([0x6f,0x6e])](_0x747aa1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c8f87=>{_0x18fb28(_0x5c8f87[_0x747aa1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2041c0=!0x0,_0x27a844(_0x5c8f87[_0x747aa1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x747aa1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x747aa1([0x6c,0x6f,0x77])}),_0x441b13[_0x747aa1([0x74,0x68,0x65,0x6e])](()=>{_0x2041c0||_0x26c431(_0x747aa1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x20a284(){return _0x3f7a4a[_0x747aa1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x747aa1([0x76,0x69,0x65,0x77])][_0x747aa1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x747aa1([0x61,0x75,0x74,0x6f]);}function _0x57ed8e(){_0x3f7a4a[_0x747aa1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x747aa1([0x76,0x69,0x65,0x77])][_0x747aa1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x747aa1([0x61,0x75,0x74,0x6f]);}}(_0x3c10a6[_0x747aa1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c10a6[_0x747aa1([0x6a,0x74,0x69])]));const _0x35bef2=await(async function(){let _0x560248=!0x0;try{const _0x7e69cf=_0xfe9a5c[_0x747aa1([0x73,0x70,0x6c,0x69,0x74])](_0x747aa1([0x2e])),[_0x44afaf,_0x27326f,_0x5e9c02]=_0x7e69cf;return _0xe7054b(_0x44afaf),await _0x39fd2e(_0x44afaf,_0x27326f,_0x5e9c02),_0x560248;}catch{return!0x1;}function _0xe7054b(_0x2368e6){const _0x1fc7aa=_0x480f12(_0x2368e6);_0x1fc7aa&&_0x1fc7aa[_0x747aa1([0x61,0x6c,0x67])]==_0x747aa1([0x45,0x53,0x32,0x35,0x36])||(_0x560248=!0x1);}async function _0x39fd2e(_0x51403e,_0x38f4f2,_0x15cc97){const _0x533453=window[_0x747aa1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x747aa1([0x66,0x72,0x6f,0x6d])](_0x16804c(_0x15cc97),_0x1b0db5=>_0x1b0db5[_0x747aa1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x192de9=new window[(_0x747aa1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x747aa1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51403e+_0x747aa1([0x2e])+_0x38f4f2),_0x3c55e4=window[_0x747aa1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x747aa1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c55e4)return;const _0x1a3130=await _0x3c55e4[_0x747aa1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x747aa1([0x6a,0x77,0x6b]),_0x57bdf0,{[_0x747aa1([0x6e,0x61,0x6d,0x65])]:_0x747aa1([0x45,0x43,0x44,0x53,0x41]),[_0x747aa1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x747aa1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x747aa1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c55e4[_0x747aa1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x747aa1([0x6e,0x61,0x6d,0x65])]:_0x747aa1([0x45,0x43,0x44,0x53,0x41]),[_0x747aa1([0x68,0x61,0x73,0x68])]:{[_0x747aa1([0x6e,0x61,0x6d,0x65])]:_0x747aa1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a3130,_0x533453,_0x192de9)||(_0x560248=!0x1);}}());return _0x35bef2?(function(){const _0x50b48d=_0x3c10a6[_0x747aa1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x50b48d)return!0x1;if(_0x50b48d[_0x747aa1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x747aa1([0x2a])))return!0x0;if(_0x50b48d[_0x747aa1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x747aa1([0x43,0x4d,0x54])))return!0x0;if(_0x50b48d[_0x747aa1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x747aa1([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x747aa1([0x67,0x6c,0x6f,0x62])]&&window[_0x747aa1([0x67,0x6c,0x6f,0x62])][_0x747aa1([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;if(_0x50b48d[_0x747aa1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x747aa1([0x52,0x43,0x4d,0x54]))){if(_0x4d6a39(_0x747aa1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x5e28f9=_0x747aa1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x3f7a4a[_0x747aa1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x747aa1([0x67,0x65,0x74])](_0x5e28f9))[_0x747aa1([0x73,0x74,0x61,0x74,0x65])]==_0x747aa1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x4d6a39(_0x747aa1([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]))||_0x4d6a39(_0x747aa1([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 _0x5e28f9;return!0x1;}())?(function(){const _0x3af0ad=[_0x747aa1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x747aa1([0x74,0x72,0x69,0x61,0x6c])][_0x747aa1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c10a6[_0x747aa1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x370c6e/0x3e8:0x69d59a80;return _0x3c10a6[_0x747aa1([0x65,0x78,0x70])]<_0x3af0ad;}())?_0x747aa1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xa03592=_0x3c10a6[_0x747aa1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa03592||0x0==_0xa03592[_0x747aa1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57fd11}=new URL(window[_0x747aa1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa03592[_0x747aa1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57fd11))return!0x0;const _0x1bf1a5=_0x57fd11[_0x747aa1([0x73,0x70,0x6c,0x69,0x74])](_0x747aa1([0x2e]));return _0xa03592[_0x747aa1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45e91f=>_0x45e91f[_0x747aa1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x747aa1([0x2a])))[_0x747aa1([0x6d,0x61,0x70])](_0x4c0ce5=>_0x4c0ce5[_0x747aa1([0x73,0x70,0x6c,0x69,0x74])](_0x747aa1([0x2e])))[_0x747aa1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12eedf=>_0x12eedf[_0x747aa1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1bf1a5[_0x747aa1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x747aa1([0x6d,0x61,0x70])](_0x2dfeba=>Array(_0x1bf1a5[_0x747aa1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2dfeba[_0x747aa1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x747aa1([0x66,0x69,0x6c,0x6c])](_0x2dfeba[0x0]===_0x747aa1([0x2a])?_0x747aa1([0x2a]):'')[_0x747aa1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2dfeba))[_0x747aa1([0x73,0x6f,0x6d,0x65])](_0x9c10a4=>_0x1bf1a5[_0x747aa1([0x65,0x76,0x65,0x72,0x79])]((_0x39db85,_0x45ee33)=>_0x9c10a4[_0x45ee33]===_0x39db85||_0x9c10a4[_0x45ee33]===_0x747aa1([0x2a])));}())?(_0x3c10a6[_0x747aa1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x747aa1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f0393=function(_0x72e5d7){const _0x114ecf=new window[(_0x747aa1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39b6ba=>setTimeout(_0x39b6ba,0x93ecc)),_0x556da4=_0x441b13[_0x747aa1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x747aa1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7ab33a=>{let _0x5b2bdb=0x0;_0x3f7a4a[_0x747aa1([0x6d,0x6f,0x64,0x65,0x6c])][_0x747aa1([0x6f,0x6e])](_0x747aa1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a103e,_0x556d6b)=>{_0x556d6b[0x0][_0x747aa1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5b2bdb++,0x5e8==_0x5b2bdb&&(_0x7ab33a(),_0x1a103e[_0x747aa1([0x6f,0x66,0x66])]());});})),_0x11695c=[_0x114ecf,_0x556da4];return window[_0x747aa1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x747aa1([0x72,0x61,0x63,0x65])](_0x11695c)[_0x747aa1([0x74,0x68,0x65,0x6e])](()=>_0x72e5d7);}(_0x747aa1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2f0393&&_0x2a8b96)return new window[(_0x747aa1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26bf5c,_0x30e19e)=>{_0x2f0393[_0x747aa1([0x74,0x68,0x65,0x6e])](_0x26bf5c,_0x30e19e),_0x2a8b96[_0x747aa1([0x74,0x68,0x65,0x6e])](_0x2f8fc9=>{_0x2f8fc9!=_0x747aa1([0x56,0x61,0x6c,0x69,0x64])&&_0x26bf5c(_0x2f8fc9);},_0x30e19e);});return _0x2f0393||_0x2a8b96||_0x747aa1([0x56,0x61,0x6c,0x69,0x64]);}())):_0x747aa1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x747aa1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x747aa1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x747aa1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x480f12(_0x21d792){return _0x21d792[_0x747aa1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x747aa1([0x65,0x79]))?JSON[_0x747aa1([0x70,0x61,0x72,0x73,0x65])](_0x16804c(_0x21d792)):null;}function _0x16804c(_0x322994){return window[_0x747aa1([0x61,0x74,0x6f,0x62])](_0x322994[_0x747aa1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x747aa1([0x2b]))[_0x747aa1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x747aa1([0x2f])));}function _0xb2abe4(_0x43f06b){let _0xce37f6=0x1505;function _0x3a6f46(_0x1506a0){for(let _0x4ac5f5=0x0;_0x4ac5f5<_0x1506a0[_0x747aa1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ac5f5++){const _0x5a4b0b=_0x1506a0[_0x747aa1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ac5f5);_0xce37f6=(_0xce37f6<<0x5)+_0xce37f6+_0x5a4b0b,_0xce37f6&=_0xce37f6;}}return function _0x53a8ab(_0x3936df){Array[_0x747aa1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3936df)?_0x3936df[_0x747aa1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x53a8ab):_0x3936df&&typeof _0x3936df==_0x747aa1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x747aa1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3936df)[_0x747aa1([0x73,0x6f,0x72,0x74])]()[_0x747aa1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x499f1b,_0x282cbe])=>{_0x3a6f46(_0x499f1b),_0x53a8ab(_0x282cbe);}):_0x3a6f46(window[_0x747aa1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3936df));}(_0x43f06b),_0xce37f6>>>0x0;}function _0x45897b(_0x24303b){return _0x24303b[_0x747aa1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x747aa1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x747aa1([0x30]));}function _0x352f33(_0x1cb30e){return _0x1cb30e[_0x747aa1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x747aa1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x747aa1([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d6a39(_0x172c48){return _0x3f7a4a[_0x747aa1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x747aa1([0x68,0x61,0x73])](_0x172c48);}function _0x536353(){}function _0x747aa1(_0x3ca53a){return _0x3ca53a['map'](_0x4bd2da=>String['fromCharCode'](_0x4bd2da))['join']('');}!function(_0x16c9c7){const _0x3d0a8d=(function(){const _0x49c717=window[_0x747aa1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x747aa1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x747aa1([0x6e,0x6f,0x77])]())[_0x747aa1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x747aa1([0x2e]),'');let _0x220d50=_0x747aa1([0x4b]);for(let _0x2bf042=0x0;_0x2bf042<_0x49c717[_0x747aa1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bf042+=0x2){let _0x4d98c1=window[_0x747aa1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49c717[_0x747aa1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bf042,_0x2bf042+0x2));_0x4d98c1>=_0x2f933b[_0x747aa1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d98c1-=_0x2f933b[_0x747aa1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x220d50+=_0x2f933b[_0x4d98c1];}return _0x220d50;}());_0x3f7a4a[_0x3d0a8d]=_0x747aa1([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x16c9c7,_0x16c9c7!=_0x747aa1([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x441b13,_0x3f7a4a[_0x747aa1([0x6d,0x6f,0x64,0x65,0x6c])][_0x747aa1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x536353,_0x3f7a4a[_0x747aa1([0x6d,0x6f,0x64,0x65,0x6c])][_0x747aa1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x536353,_0x3f7a4a[_0x747aa1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x747aa1([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x30e2ce);}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 _0x3a8b27=this['editor'],_0x2cf4f0=_0x3a8b27['plugins']['get'](CommentsRepository),_0x5334ce=_0x3a8b27['plugins']['get'](CommentsEditing),_0x212853=_0x3a8b27['plugins']['get'](Annotations),_0x589773=_0x3a8b27['plugins']['get'](EditorAnnotations);_0x3a8b27['ui']['componentFactory']['add']('comment',()=>{const _0x528413=this['_createUIButton'](ButtonView);return _0x528413['tooltip']=!0x0,_0x528413;}),_0x3a8b27['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](MenuBarMenuListItemButtonView)),_0x589773['addSourceCollector'](()=>{const _0x354e5e=[];for(const [_0x3c7fdf,_0x4948b6]of _0x2cf4f0['_threadToController']){const _0x22ffbd=_0x5334ce['getAllMarkersForId'](_0x3c7fdf['id']),_0x4a079e=_0x22ffbd['map'](_0xdc1fbf=>_0xdc1fbf['getRange']());_0x22ffbd['length']>0x0&&_0x354e5e['push']([_0x4948b6['view'],_0x4a079e]);}return _0x354e5e;}),this['listenTo'](_0x212853,'change:activeAnnotations',(_0x5b5ec5,_0x4d9dc1,_0x3aaffb)=>{const _0x5bbb14=Array['from'](_0x3aaffb)['map'](_0xeacbc4=>_0xeacbc4['innerView'])['find'](_0x244e48=>_0x2cf4f0['_viewToController']['has'](_0x244e48));if(!_0x5bbb14)return void(_0x5334ce['activeMarker']=null);const _0x115371=_0x2cf4f0['_viewToController']['get'](_0x5bbb14)['model']['id'],_0x14f4c9='comment:'+_0x115371;_0x115371&&_0x5334ce['hasMarkerForId'](_0x115371)?_0x5334ce['activeMarker']=_0x14f4c9:_0x5334ce['activeMarker']&&(_0x5334ce['activeMarker']=null);}),this['listenTo'](_0x2cf4f0,'removeCommentThread',(_0x2791e0,{threadId:_0x5aa3fc,isFromAdapter:_0x340018})=>{!_0x340018&&_0x3a8b27['ui']['focusTracker']['isFocused']&&_0x5334ce['hasMarkerForId'](_0x5aa3fc)&&_0x3a8b27['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x2cf4f0,'addComment',(_0x3dbf99,{threadId:_0x1bf6d8,isFromAdapter:_0x4f4642})=>{if(_0x4f4642||!_0x5334ce['hasMarkerForId'](_0x1bf6d8)||!_0x2cf4f0['hasCommentThread'](_0x1bf6d8))return;0x1===_0x2cf4f0['getCommentThread'](_0x1bf6d8)['length']&&(_0x3a8b27['editing']['view']['focus'](),_0x3dbf99['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4512ab=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44007b;for(const _0x33ca91 in _0x4512ab){const _0x4df941=_0x33ca91,_0xbe25c1=_0x4512ab[_0x4df941];if('commentsLicenseKeyValid'==_0xbe25c1||'commentsLicenseKeyInvalid'==_0xbe25c1||'commentsLicenseKeyExpired'==_0xbe25c1||'commentsLicenseKeyDomainLimit'==_0xbe25c1||'commentsLicenseKeyNotAllowed'==_0xbe25c1||'commentsLicenseKeyEvaluationLimit'==_0xbe25c1||'commentsLicenseKeyUsageLimit'==_0xbe25c1){delete _0x4512ab[_0x4df941],_0x44007b=_0xbe25c1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x44007b&&_0x4512ab['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x44007b&&_0x4512ab['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x44007b&&_0x4512ab['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x44007b&&_0x4512ab['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x44007b&&_0x4512ab['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x44007b&&_0x4512ab['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x53752a){const _0x44bd82=this['editor'],_0x1a375b=new _0x53752a(_0x44bd82['locale']),_0x45411c=_0x44bd82['commands']['get']('addCommentThread');return _0x1a375b['set']({'label':getTranslation$f(_0x44bd82['locale'],'Comment'),'icon':IconAddComment}),_0x1a375b['bind']('isEnabled')['to'](_0x45411c,'isEnabled',_0x45411c,'hasContent',(_0x25c52f,_0x2bfba7)=>_0x25c52f&&_0x2bfba7),this['listenTo'](_0x1a375b,'execute',()=>{_0x45411c['execute']();}),_0x1a375b;}}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(_0x289ddd){super(_0x289ddd),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x4f8cf8,_0x4a43eb,_0x375a74)=>{_0x375a74?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x3c351b,_0x39f57d]of this['editor']['commands'])_0x39f57d['affectsData']&&'addCommentThread'!==_0x3c351b&&_0x39f57d['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 _0x1b4e03=this['editor']['editing']['view']['document'];this['listenTo'](_0x1b4e03,'cut',_0x2704d1=>_0x2704d1['stop'](),{'priority':'highest'}),this['listenTo'](_0x1b4e03,'clipboardInput',_0x2d57bb=>_0x2d57bb['stop'](),{'priority':'highest'}),this['listenTo'](_0x1b4e03,'delete',_0x2f91be=>_0x2f91be['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x3642a4,_0x19d55b]of this['editor']['commands'])_0x19d55b['affectsData']&&'addCommentThread'!==_0x3642a4&&_0x19d55b['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(_0x4a6909){super(_0x4a6909),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x3cc1d9=this['context']['plugins']['get'](Annotations);this['listenTo'](_0x3cc1d9,'_activateAnnotation',(_0x156efd,_0x4a0880)=>{for(const _0x124d52 of this['activeUIs']){const _0x25eb8=this['_uis']['get'](_0x124d52);(0x0,this['uisData']['get'](_0x124d52)['filter'])(_0x4a0880)&&_0x25eb8['setActiveAnnotation'](_0x4a0880);}}),this['listenTo'](_0x3cc1d9,'_deactivateAllAnnotations',()=>{for(const _0x41f212 of this['activeUIs']){this['_uis']['get'](_0x41f212)['setActiveAnnotation'](null);}}),this['listenTo'](_0x3cc1d9['_visibleAnnotations'],'add',(_0x320491,_0x4dd60f)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4dd60f);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3e4870){return this['activeUIs']['has'](_0x3e4870);}['activate'](_0x5293fc,_0x30f1c3=this['defaultFilter']){const _0x81e631=this['context']['plugins']['get'](Annotations);if(!this['_uis']['has'](_0x5293fc))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x5293fc});this['isActive'](_0x5293fc)&&this['deactivate'](_0x5293fc),this['activeUIs']['add'](_0x5293fc);const _0x269c95=new AnnotationCollection();bindAnnotationCollections({'source':_0x81e631['_visibleAnnotations'],'target':_0x269c95,'filter':_0x30f1c3}),this['uisData']['set'](_0x5293fc,{'collection':_0x269c95,'filter':_0x30f1c3});const _0x4040e9=this['_uis']['get'](_0x5293fc);_0x4040e9['attach'](_0x269c95),this['listenTo'](_0x4040e9,'change:activeAnnotation',(_0x406029,_0x2c8dbc,_0x3f6cec,_0x5c2673)=>{_0x5c2673&&_0x81e631['_removeActiveAnnotation'](_0x5c2673),_0x3f6cec&&_0x81e631['_addActiveAnnotation'](_0x3f6cec);});}['deactivate'](_0x1603a5){if(this['activeUIs']['delete'](_0x1603a5),!this['_uis']['has'](_0x1603a5))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x1603a5});const _0x2ee9af=this['_uis']['get'](_0x1603a5);_0x2ee9af['detach'](),this['stopListening'](_0x2ee9af),this['uisData']['get'](_0x1603a5)['collection']['destroy'](),this['uisData']['delete'](_0x1603a5);}['switchTo'](_0x235556){if(!this['_uis']['has'](_0x235556))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x235556});const _0x15ff87=this['context']['plugins']['get'](Annotations),_0x5f20e1=Array['from'](_0x15ff87['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x235556);const _0x192a44=this['_uis']['get'](_0x235556);_0x192a44['setActiveAnnotation'](_0x5f20e1),_0x192a44['_setSelectedAnnotations']&&_0x5f20e1&&_0x192a44['_setSelectedAnnotations']([_0x5f20e1]);}['deactivateAll'](){for(const _0x422a73 of this['activeUIs'])this['deactivate'](_0x422a73);}['register'](_0x660030,_0xc5957e){if(this['_uis']['has'](_0x660030))throw new CKEditorError('annotationsuis-register-already-registered');if('function'!=typeof _0xc5957e['attach']||'function'!=typeof _0xc5957e['detach']||'function'!=typeof _0xc5957e['setActiveAnnotation'])throw new CKEditorError('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x660030,_0xc5957e);}['refilterAnnotations'](){const _0x39953f=this['context']['plugins']['get'](Annotations)['collection'],_0x897feb=new Map(),_0x2eadce=Array['from'](this['activeUIs']);for(const _0xe35ec9 of this['activeUIs']){const _0x78a4ce=this['uisData']['get'](_0xe35ec9)['collection'];for(const _0x1b06d2 of _0x78a4ce)_0x897feb['set'](_0x1b06d2,_0xe35ec9);}for(const _0x4e1913 of _0x39953f){const _0x35f42f=_0x897feb['get'](_0x4e1913);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4e1913);const _0x317d62=_0x2eadce['find'](_0x48cfa4=>this['uisData']['get'](_0x48cfa4)['filter'](_0x4e1913));_0x35f42f!==_0x317d62&&(_0x35f42f&&this['uisData']['get'](_0x35f42f)['collection']['remove'](_0x4e1913),_0x317d62&&this['uisData']['get'](_0x317d62)['collection']['add'](_0x4e1913));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xe3212c){const _0x2dc05f=[];for(const _0x2a3132 of this['activeUIs']){(0x0,this['uisData']['get'](_0x2a3132)['filter'])(_0xe3212c)&&_0x2dc05f['push'](_0x2a3132);}if(_0x2dc05f['length']>0x1)throw new CKEditorError('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x2dc05f,'annotationType':_0xe3212c['type']});}}const toPx$2=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarView extends View{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5ab6b4){super(_0x5ab6b4);const _0x4e0e21=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',_0x4e0e21['to']('class')],'style':{'minHeight':_0x4e0e21['to']('minHeight',_0xfc19e4=>'number'==typeof _0xfc19e4?toPx$2(_0xfc19e4+0xa):null)},'dir':_0x5ab6b4['uiLanguageDirection'],'role':'application','aria-label':getTranslation$f(_0x5ab6b4,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':getTranslation$f(_0x5ab6b4,'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',_0x52c315=>{this['_updateItemPositionInFocusables'](_0x52c315['source']);}),this['list']['forEach'](_0x432ff8=>{this['focusTracker']['add'](_0x432ff8['element']),this['_updateItemPositionInFocusables'](_0x432ff8);}),this['list']['on']('change',(_0x5bd96b,_0x1af676)=>{for(const _0x4af8f9 of _0x1af676['removed'])this['focusTracker']['remove'](_0x4af8f9['element']),this['focusables']['remove'](_0x4af8f9);for(const _0x2e79e2 of _0x1af676['added'])this['focusTracker']['add'](_0x2e79e2['element']),this['_updateItemPositionInFocusables'](_0x2e79e2);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x256ff0){const _0xda9454=this['focusables']['getIndex'](_0x256ff0);let _0xe8a251,_0x22a13f;for(const _0x2522e5 of this['focusables'])if(_0x256ff0['top']<_0x2522e5['top']){_0xe8a251=_0x2522e5;break;}if(_0x22a13f=_0xe8a251?this['focusables']['getIndex'](_0xe8a251):this['focusables']['length'],-0x1!==_0xda9454){if(_0xda9454===_0x22a13f-0x1)return;this['focusables']['remove'](_0x256ff0),_0x22a13f=_0xe8a251?this['focusables']['getIndex'](_0xe8a251):this['focusables']['length'];}this['focusables']['add'](_0x256ff0,_0x22a13f);}}const toPx$1=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarItemView extends View{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x423091){super(_0x423091),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5eba4b,_0x3b909a)=>_0x5eba4b+_0x3b909a),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=createMutationObserver(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x2db27c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x2db27c['to']('isAnimationDisabled',_0x40d500=>_0x40d500?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x2db27c['to']('top',_0x187ac2=>toPx$1(_0x187ac2))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x2dfeb8=this['element']['clientHeight'];_0x2dfeb8&&(this['height']=_0x2dfeb8);}['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(_0x2fc033){super(_0x2fc033),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 _0x5f0f53=this['context']['config']['get']('sidebar.container');_0x5f0f53&&this['setContainer'](_0x5f0f53);}['setContainer'](_0x189dd9){if(!isElement(_0x189dd9))throw new CKEditorError('sidebar-setcontainer-invalid-element');this['container']=_0x189dd9;}['_attachToContainer']({viewClass:_0x23a74e='',spaceBetweenItems:_0x16d14e=0x19}={}){if(!isElement(this['container']))throw new CKEditorError('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x23a74e,this['_spaceBetweenItems']=_0x16d14e;}['rearrange']({removedAnnotation:_0x54442e,previousAnnotation:_0x37929c,nextAnnotation:_0x18e6d5}){const _0x5679ca=this['getSidebarItemView'](_0x54442e);this['view']['list']['remove'](_0x5679ca),this['_destroySidebarItemView'](_0x54442e),_0x37929c&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x37929c)),_0x18e6d5&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x18e6d5)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0xbf3489,activatedAnnotation:_0x39ec19,disableAnimationOnActivatedAnnotation:_0x899dbe}){if(this['_activeAnnotation']=_0x39ec19,_0xbf3489){_0xbf3489['isActive']=!0x1;const _0x2f1ebf=this['getSidebarItemView'](_0xbf3489);_0x2f1ebf&&_0x899dbe&&(_0x2f1ebf['isAnimationDisabled']=!0x1);}if(_0x39ec19){const _0x302aa1=this['getSidebarItemView'](_0x39ec19);_0x302aa1&&(_0x39ec19['isActive']=!0x0,_0x899dbe&&(_0x302aa1['isAnimationDisabled']=!0x0,_0x302aa1['top']+=0x1),this['_alignToTargetRect'](_0x302aa1));}}['_detachFromContainer'](_0x4cfa73){if(this['view']['element']['remove'](),_0x4cfa73){for(const _0xfb79ac of _0x4cfa73)this['_destroySidebarItemView'](_0xfb79ac);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x4bb21c,_0x19514a){_0x19514a||(_0x19514a=_0x4bb21c['view']);const _0x13bd95=new AnnotationsSidebarItemView(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x13bd95,_0x4bb21c),this['_annotationToSidebarItemView']['set'](_0x4bb21c,_0x13bd95),_0x13bd95['content']['add'](_0x19514a),this['listenTo'](_0x4bb21c['view'],'change:targetRect',(_0x38d261,_0x317326,_0x300fdd)=>{const _0x189339=this['_getTargetTop'](_0x4bb21c,_0x300fdd);_0x13bd95['_targetTop']!=_0x189339&&(_0x13bd95['_targetTop']=_0x189339,this['_setItemTop'](_0x13bd95,_0x189339));}),this['listenTo'](_0x13bd95,'change:top',()=>{this['_recalculate'](_0x13bd95,'top');}),this['listenTo'](_0x13bd95,'change:bottom',()=>{this['_recalculate'](_0x13bd95,'bottom');}),this['_alignToTargetRect'](_0x13bd95);const _0x1e7f32=this['_getItemBefore'](_0x13bd95);if(_0x1e7f32)this['_alignAfterItem'](_0x1e7f32,_0x13bd95)||this['_alignToTargetRect'](_0x13bd95);else this['_alignToTargetRect'](_0x13bd95);return this['_updateLastItem'](),this['view']['list']['add'](_0x13bd95),_0x13bd95;}['_alignForTopChange'](_0x318710){if(!_0x318710['content']['length'])return;const _0x4b0001=this['_getItemBefore'](_0x318710);if(!_0x4b0001)return;const _0xa1e74e=this['_sidebarItemViewToAnnotation']['get'](_0x4b0001),_0x2e8b36=this['_activeAnnotation'];_0x2e8b36&&_0x2e8b36===_0xa1e74e?this['_alignAfterItem'](_0x4b0001,_0x318710):this['_alignBeforeItem'](_0x318710,_0x4b0001);}['_alignForBottomChange'](_0x16718e){if(!_0x16718e['content']['length'])return;const _0x46b3b7=this['_getItemAfter'](_0x16718e);if(!_0x46b3b7)return;const _0x34e6a7=this['_sidebarItemViewToAnnotation']['get'](_0x46b3b7),_0x173e17=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x1c52a3=this['_activeAnnotation'];_0x1c52a3&&_0x1c52a3===_0x34e6a7&&_0x173e17?(this['_alignBeforeItem'](_0x46b3b7,_0x16718e),this['_alignAfterItem'](_0x16718e,_0x46b3b7)):_0x1c52a3&&_0x1c52a3===_0x34e6a7?this['_alignBeforeItem'](_0x46b3b7,_0x16718e):this['_alignAfterItem'](_0x16718e,_0x46b3b7);}['_recalculate'](_0x5d30bb,_0x531ee6){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x20bd8d,changedProp:_0x57eecb}of this['_recalculateBuffer'])'top'===_0x57eecb?this['_alignForTopChange'](_0x20bd8d):this['_alignForBottomChange'](_0x20bd8d);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x5d30bb,'changedProp':_0x531ee6});}['getSidebarItemView'](_0x301267){return this['_annotationToSidebarItemView']['get'](_0x301267);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x5a99e4){const _0x517db7=this['getSidebarItemView'](_0x5a99e4);this['stopListening'](_0x517db7),this['stopListening'](_0x5a99e4['view']),_0x517db7['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x5a99e4),this['_sidebarItemViewToAnnotation']['delete'](_0x517db7);}['_createSidebarView'](){const _0x3abbc3=new AnnotationsSidebarView(this['context']['locale']);return _0x3abbc3['render'](),this['on']('change:_lastItem',(_0x462334,_0x172739,_0xf4a598,_0x31953e)=>{_0x31953e&&_0x3abbc3['unbind']('minHeight'),_0xf4a598?_0x3abbc3['bind']('minHeight')['to'](_0xf4a598,'bottom'):_0x3abbc3['minHeight']=null;}),_0x3abbc3;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0xcf1514){const _0x28ddd4=this['_sidebarItemViewToAnnotation']['get'](_0xcf1514),_0x5d6580=_0x28ddd4&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x28ddd4)-0x1);return _0x5d6580&&this['getSidebarItemView'](_0x5d6580)||null;}['_getItemAfter'](_0x4a429b){const _0x941603=this['_sidebarItemViewToAnnotation']['get'](_0x4a429b),_0x150d2a=_0x941603&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x941603)+0x1);return _0x150d2a&&this['getSidebarItemView'](_0x150d2a)||null;}['_alignBeforeItem'](_0x2d8612,_0x454b62){_0x2d8612['updateHeight']();const _0x5aef3c=getOverlap(_0x454b62['bottom']+this['_spaceBetweenItems'],_0x2d8612['top']);return!!_0x5aef3c&&(this['_setItemTop'](_0x454b62,_0x454b62['top']-_0x5aef3c),!0x0);}['_alignAfterItem'](_0x25f129,_0x218145){_0x25f129['updateHeight']();const _0x467366=getOverlap(_0x25f129['bottom']+this['_spaceBetweenItems'],_0x218145['top']);return!!_0x467366&&(this['_setItemTop'](_0x218145,_0x218145['top']+_0x467366,!0x1),!0x0);}['_alignToTargetRect'](_0x128585){const _0x151561=this['_sidebarItemViewToAnnotation']['get'](_0x128585);if(!_0x151561||!_0x151561['target']||!_0x151561['targetRect'])return;const _0x2d124f=this['_getTargetTop'](_0x151561,_0x151561['targetRect']);this['_setItemTop'](_0x128585,_0x2d124f);}['_getTargetTop'](_0x1ec833,_0x1e4c51){if(null===_0x1e4c51)return 0x0;if(_0x1ec833['target']instanceof Rect)return _0x1e4c51['top'];{const _0x562379=new Rect(this['view']['element'])['top'];return _0x1e4c51['top']-_0x562379;}}['_setItemTop'](_0x1d6532,_0x1529f3,_0x2d2769=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x2d2769&&(_0x1529f3=Math['max'](_0x1529f3,this['_getMaxAvailableTop'](_0x1d6532))),_0x1d6532['top']=_0x1529f3;}['_getMaxAvailableTop'](_0x2a8822){let _0x3db8a8=this['_getItemBefore'](_0x2a8822),_0x383d7e=0x0;for(;_0x3db8a8;)_0x3db8a8['updateHeight'](),_0x383d7e+=this['_spaceBetweenItems']+_0x3db8a8['height'],_0x3db8a8=this['_getItemBefore'](_0x3db8a8);return _0x383d7e;}}function getOverlap(_0x10627e,_0x58bdcd){return Math['max'](_0x10627e-_0x58bdcd,0x0);}function isElement(_0x4c2523){return null!==_0x4c2523&&'object'==typeof _0x4c2523&&0x1===_0x4c2523['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(_0x5319ec){super(_0x5319ec),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new Collection(),this['_refreshPositioningDebounced']=debounce$1(()=>{_0x5319ec['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x53deca=this['context']['plugins']['get'](AnnotationsUIs),_0x468924=this['context']['plugins']['get'](Sidebar);_0x53deca['register']('wideSidebar',this),_0x468924['container']&&_0x53deca['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3793cb){if(_0x3793cb===this['activeAnnotation'])return;const _0x2726ae=this['context']['plugins']['get'](Sidebar);_0x2726ae['_activeAnnotation']=_0x3793cb;const _0xeb0308=this['activeAnnotation'];_0x2726ae['refresh']({'blurredAnnotation':_0xeb0308,'activatedAnnotation':_0x3793cb}),this['activeAnnotation']=_0x3793cb;}['attach'](_0x90a0b2){this['annotations']=_0x90a0b2;const _0x2debe2=this['context']['plugins']['get'](Sidebar);if(_0x2debe2['_annotations']=_0x90a0b2,this['isAttached'])throw new CKEditorError('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2debe2,'set:container',()=>{this['detach'](),this['listenTo'](_0x2debe2,'change:container',_0x469619=>{_0x469619['off'](),this['attach'](_0x90a0b2);});}),_0x2debe2['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x40de0b=_0x148da1=>{_0x148da1['updateTargetRect'](),_0x2debe2['addAnnotation'](_0x148da1);};for(const _0x1ce2c1 of _0x90a0b2)_0x40de0b(_0x1ce2c1);this['listenTo'](_0x90a0b2,'add',(_0x321c0e,_0x417644)=>{_0x40de0b(_0x417644);}),this['listenTo'](_0x90a0b2,'remove',(_0x1a1b3e,_0x5543ab,_0x3c26a8)=>{_0x2debe2['rearrange']({'removedAnnotation':_0x5543ab,'previousAnnotation':_0x90a0b2['get'](_0x3c26a8-0x1),'nextAnnotation':_0x90a0b2['get'](_0x3c26a8+0x1)}),_0x5543ab===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x90a0b2,'focus',(_0x4bf00a,_0x6d3f4e)=>{this['setActiveAnnotation'](_0x6d3f4e);}),this['listenTo'](_0x90a0b2,'blur',()=>{this['setActiveAnnotation'](null);});const _0x231759=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x293101 of _0x231759)this['_integrateWithEditorAnnotations'](_0x293101);this['listenTo'](_0x231759,'add',(_0x55295e,_0x4e6f0a)=>{this['listenTo'](_0x4e6f0a,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4e6f0a);});}),this['listenTo'](_0x231759,'remove',(_0x19b7e9,_0x1d036f)=>{_0x1d036f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1d036f['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 _0x541ca9=this['context']['plugins']['get'](Sidebar);_0x541ca9['_detachFromContainer'](this['annotations']),this['stopListening'](_0x541ca9),this['stopListening'](this['annotations']),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0x36300a of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x36300a);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0xe59016){if(!_0xe59016['plugins']['has']('EditorAnnotations'))return;const _0x435fb1=_0xe59016['plugins']['get']('EditorAnnotations'),_0x164a10=()=>{const _0x3e8a48=_0x435fb1['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x3e8a48[0x0]||null);};this['listenTo'](_0x435fb1,'refresh',_0x164a10),this['listenTo'](_0x435fb1,'blur',(_0x2a9cdb,{isAnnotationTracked:_0x4f95be})=>{this['activeAnnotation']&&_0x4f95be(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x435fb1,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x3cb0ba=>{_0x435fb1['hasDomSelection']()&&(_0x164a10(),_0x3cb0ba['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x435fb1);}['_destroyEditorAnnotationsIntegration'](_0x346df4){this['stopListening'](_0x346df4),this['_editorAnnotations']['remove'](_0x346df4);}}class AnnotationCounterButtonView extends ButtonView{['counterView'];constructor(_0x3b65ac){super(_0x3b65ac);const _0x528f65=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x51f136,_0x585fec)=>_0x51f136?'...':_0x585fec['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',_0x528f65['to']('annotationType',_0x4d64b7=>'ck-annotation-counter__badge--'+_0x4d64b7),_0x528f65['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x528f65['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(_0x42d0fd){super(_0x42d0fd),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$1(()=>{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'](_0x42bc0e){this['annotations']=_0x42bc0e;const _0x72b3e3=this['context']['plugins']['get'](Sidebar),_0x148159=this['balloonPanelView'];if(_0x72b3e3['_annotations']=_0x42bc0e,this['isAttached'])throw new CKEditorError('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x72b3e3,'set:container',()=>{this['detach'](),this['listenTo'](_0x72b3e3,'change:container',_0x422bca=>{_0x422bca['off'](),this['attach'](_0x42bc0e);});}),_0x72b3e3['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x333703=_0x5573b4=>{const _0x2e5e17=new AnnotationCounterButtonView(this['context']['locale']);_0x72b3e3['addAnnotation'](_0x5573b4,_0x2e5e17),this['_annotationToNarrowView']['set'](_0x5573b4,_0x2e5e17),_0x2e5e17['bind']('isDirty','annotationType','number')['to'](_0x5573b4['view'],'isDirty','type','length'),_0x2e5e17['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x148159['content']['first']!==_0x5573b4['view']?(this['_showBalloon'](_0x5573b4),_0x5573b4['view']['element']['focus'](),this['setActiveAnnotation'](_0x5573b4)):this['setActiveAnnotation'](null);});};for(const _0x52dc5a of _0x42bc0e)_0x333703(_0x52dc5a);this['listenTo'](_0x42bc0e,'add',(_0x3b3f34,_0x3abcfc)=>{_0x333703(_0x3abcfc);}),this['listenTo'](_0x42bc0e,'remove',(_0x4f6481,_0x87492,_0x43351b)=>{this['_annotationToNarrowView']['get'](_0x87492)['destroy'](),this['_annotationToNarrowView']['delete'](_0x87492),_0x72b3e3['rearrange']({'removedAnnotation':_0x87492,'previousAnnotation':_0x42bc0e['get'](_0x43351b-0x1),'nextAnnotation':_0x42bc0e['get'](_0x43351b+0x1)}),_0x87492===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x42bc0e,'focus',(_0x6e4f7f,_0x3e6394)=>{this['setActiveAnnotation'](_0x3e6394);}),this['listenTo'](_0x42bc0e,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0xfd8058,_0x29f39e)=>{_0x29f39e['keyCode']===keyCodes['esc']&&_0x148159['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x148159['content']['first']),this['_hideBalloon'](),_0x29f39e['stopPropagation'](),_0x29f39e['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x24f07d,_0x51aa80)=>{const _0x17175b=_0x51aa80['target'];_0x148159['isVisible']&&_0x148159['element']['contains'](_0x17175b)||_0x72b3e3['view']['element']['contains'](_0x17175b)||_0x24f07d['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x33c038=>_0x33c038['contains'](_0x17175b))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x28e392=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x10791d of _0x28e392)this['_integrateWithEditorAnnotations'](_0x10791d);this['listenTo'](_0x28e392,'add',(_0x329857,_0x49116a)=>{this['listenTo'](_0x49116a,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x49116a);});}),this['listenTo'](_0x28e392,'remove',(_0x3206d5,_0x13aa71)=>{_0x13aa71['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x13aa71['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x4e98aa){if(_0x4e98aa===this['activeAnnotation'])return;const _0x17ac5d=this['context']['plugins']['get'](Sidebar);if(_0x17ac5d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4e98aa,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4e98aa)_0x17ac5d['getSidebarItemView'](_0x4e98aa)?this['_showBalloon'](_0x4e98aa):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x4e98aa;}['detach'](){if(!this['isAttached'])throw new CKEditorError('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4307f8=this['context']['plugins']['get'](Sidebar);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x4c2e4a=>_0x4c2e4a['destroy']()),this['_annotationToNarrowView']['clear'](),_0x4307f8['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0x40d5f3 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x40d5f3);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'](_0x214559){if(!_0x214559['plugins']['has']('EditorAnnotations'))return;const _0x10b428=_0x214559['plugins']['get']('EditorAnnotations'),_0x132b45=this['context']['plugins']['get'](Sidebar),_0x46440f=this['annotations'],_0x5e2438=this['balloonPanelView'],_0x15cf74=()=>{const _0x31bf8e=_0x10b428['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x31bf8e),this['setActiveAnnotation'](_0x31bf8e[0x0]||null);};this['listenTo'](_0x10b428,'refresh',_0x15cf74),this['listenTo'](_0x10b428,'blur',(_0x19fc5d,{isAnnotationTracked:_0x418969})=>{this['activeAnnotation']&&_0x418969(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x10b428,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x46440f,'blur',_0x433503=>{_0x10b428['hasDomSelection']()&&_0x433503['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x401d8f,_0x35a561)=>{const _0x343452=_0x35a561['target'];_0x5e2438['isVisible']&&_0x5e2438['element']['contains'](_0x343452)||_0x132b45['view']['element']['contains'](_0x343452)||this['activeAnnotation']&&_0x10b428['hasDomSelection']()&&(_0x15cf74(),_0x401d8f['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x10b428);}['_destroyEditorAnnotationsIntegration'](_0x19d558){_0x19d558&&(this['stopListening'](_0x19d558),this['_editorAnnotations']['remove'](_0x19d558));}['_setSelectedAnnotations'](_0x1e7c35){for(const _0x396393 of this['_selectedAnnotations'])_0x1e7c35['includes'](_0x396393)||this['_manuallyClosedAnnotationViews']['delete'](_0x396393['view']);this['_selectedAnnotations']=_0x1e7c35;}['_refreshPositioning'](){const _0x27bd34=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x27bd34['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x5948d9){if(this['_manuallyClosedAnnotationViews']['has'](_0x5948d9['view']))return;const _0x555305=this['balloonPanelView']['content']['first'];_0x555305!==_0x5948d9['view']?(_0x555305&&this['_detachListeners'](_0x555305),this['_attachListeners'](_0x5948d9['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x5948d9['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x26c2ca=this['balloonPanelView']['content']['first'],_0x5d3c90=_0x26c2ca&&this['annotations']['getByView'](_0x26c2ca);if(!_0x5d3c90||!this['_annotationToNarrowView']['has'](_0x5d3c90))return;const _0x38c2dd=this['_annotationToNarrowView']['get'](_0x5d3c90)['element'],_0x957b46=getBalloonPositions();this['balloonPanelView']['pin']({'target':_0x38c2dd,'positions':_0x957b46});}['_hideBalloon'](){const _0x411477=this['balloonPanelView'],_0x16bd52=_0x411477['content']['first'];_0x16bd52&&(this['_detachListeners'](_0x16bd52),_0x411477['unpin'](),_0x411477['content']['clear']());}['_attachListeners'](_0x33e03d){this['listenTo'](_0x33e03d,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x33e03d,'Esc',(_0x175b54,_0x33b7d9)=>{this['_manuallyClosedAnnotationViews']['add'](_0x33e03d),this['_hideBalloon'](),_0x33b7d9();});}['_detachListeners'](_0x58a463){this['stopListening'](_0x58a463);}}function getBalloonPositions(){const _0x126d3c=BalloonPanelView['defaultPositions'];return[_0x126d3c['southArrowNorthEast'],_0x126d3c['northArrowSouthEast'],_0x126d3c['southArrowNorth'],_0x126d3c['northArrowSouth'],_0x126d3c['southArrowNorthWest'],_0x126d3c['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(_0x222196){super(_0x222196),_0x222196['editing']['view']['addObserver'](MouseObserver),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x222196['plugins']['get'](ContextualBalloon),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=debounce$1(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x547f37=this['editor']['plugins']['get'](AnnotationsUIs);_0x547f37['context']===this['editor']&&(_0x547f37['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0xe28b33,_0x1628d9)=>{const _0x4bd910=this['_balloon'];if(this['isAttached']&&_0x4bd910['visibleView']){const _0x5cf244=this['annotations']['getByView'](_0x4bd910['visibleView']);_0x5cf244&&this['_closeAnnotation'](_0x5cf244),_0x1628d9();}}));}['afterInit'](){const _0x3b7410=this['editor']['plugins']['get'](AnnotationsUIs);_0x3b7410['context']===this['editor']&&(_0x3b7410['hasActive']()||_0x3b7410['switchTo']('inline'));}['setActiveAnnotation'](_0x406f59){_0x406f59!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x406f59&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x406f59)&&this['_addAnnotationToBalloon'](_0x406f59,!0x0),_0x406f59['isActive']=!0x0),_0x406f59||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x406f59);}['attach'](_0x55629c){this['annotations']=_0x55629c;const _0x303a4a=this['editor']['plugins']['get'](AnnotationsUIs),_0x23dffe=this['_balloon'];if(this['isAttached'])throw new CKEditorError('inlineannotations-attach-already-attached',this);if(_0x303a4a['context']!==this['editor'])throw new CKEditorError('inlineannotations-not-allowed-with-context',this);const _0x298a30=this['editor']['plugins']['get'](EditorAnnotations);this['listenTo'](_0x298a30,'refresh',()=>{const _0x9e5b5f=_0x298a30['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});!this['_forceRefresh']&&arraysEqual(_0x9e5b5f,this['_selectedAnnotations'])||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x9e5b5f),this['setActiveAnnotation'](_0x9e5b5f[0x0]||null));}),this['listenTo'](_0x298a30,'blur',(_0x3d47d7,{isAnnotationTracked:_0x5c2fa5})=>{this['activeAnnotation']&&_0x5c2fa5(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x298a30,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1a1023,_0x443a3f,_0x52a92e)=>{_0x52a92e||this['setActiveAnnotation'](null);}),this['listenTo'](_0x55629c,'remove',(_0x52acf1,_0x2d5892)=>{this['_removeAnnotationFromBalloon'](_0x2d5892),_0x2d5892===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x23dffe,'change:visibleView',(_0x4fa5e0,_0x174a09,_0x2a880d,_0x259fc0)=>{_0x259fc0&&this['stopListening'](_0x259fc0);const _0x5be5bc=_0x55629c['getByView'](_0x2a880d);_0x2a880d&&_0x5be5bc&&(this['listenTo'](_0x2a880d,'change:height',()=>{_0x23dffe['updatePosition']();}),this['listenTo'](_0x2a880d,'Esc',()=>{this['_closeAnnotation'](_0x5be5bc),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x5be5bc&&this['setActiveAnnotation'](_0x5be5bc));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x23dffe['visibleView']&&(_0x55629c['getByView'](_0x23dffe['visibleView'])&&_0x23dffe['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 _0x599ed3 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x599ed3);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x1324cc){for(const _0x430cb3 of this['_selectedAnnotations'])_0x1324cc['includes'](_0x430cb3)||this['_manuallyClosed']['delete'](_0x430cb3);for(const _0x4f272c of this['annotations'])_0x1324cc['includes'](_0x4f272c)||this['_removeAnnotationFromBalloon'](_0x4f272c);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x1b4217 of _0x1324cc)this['_addAnnotationToBalloon'](_0x1b4217);}this['_selectedAnnotations']=_0x1324cc;}['_addAnnotationToBalloon'](_0x4585ac,_0x319ebb=!0x1){this['_manuallyClosed']['has'](_0x4585ac)||(this['_addedAnnotations']['has'](_0x4585ac)||this['_balloon']['hasView'](_0x4585ac['view'])||(this['_addedAnnotations']['add'](_0x4585ac),this['_balloon']['add']({'stackId':_0x4585ac['view']['id'],'view':_0x4585ac['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x4585ac)}})),_0x319ebb&&this['_balloon']['showStack'](_0x4585ac['view']['id']));}['_getBalloonTargetForAnnotation'](_0x15c458){const _0x25dd38=_0x15c458['target'],_0x493c46=this['editor']['editing']['view'],_0xc9b14a=_0x493c46['document']['selection']['getFirstRange'](),_0x3f433b=_0x493c46['domConverter']['viewRangeToDom'](_0xc9b14a);if(_0x3f433b['collapse'](!0x0),_0x25dd38){if(_0x25dd38 instanceof Rect)return _0x25dd38;let _0x46d98b=[];for(const _0x2ab985 of _0x25dd38)_0x46d98b['push'](...cloneRects(_0x2ab985['getClientRects']()));_0x46d98b=joinClientRects(_0x46d98b);const _0x837f7f=_0x3f433b['getBoundingClientRect']();return _0x46d98b['find'](_0x33672d=>_0x33672d['top']<=_0x837f7f['top']&&_0x33672d['bottom']>=_0x837f7f['bottom']&&_0x33672d['left']<=_0x837f7f['left']&&_0x33672d['right']>=_0x837f7f['right'])||_0x46d98b[0x0];}return _0x15c458['targetRect']||_0x3f433b;}['_removeAnnotationFromBalloon'](_0x2a6c9d){this['_addedAnnotations']['has'](_0x2a6c9d)&&this['_balloon']['hasView'](_0x2a6c9d['view'])&&(this['_addedAnnotations']['delete'](_0x2a6c9d),this['_balloon']['remove'](_0x2a6c9d['view']));}['_closeAnnotation'](_0xa4911d){this['_manuallyClosed']['add'](_0xa4911d),this['_removeAnnotationFromBalloon'](_0xa4911d);}}function arraysEqual(_0x4cf19e,_0x212d82){return _0x4cf19e['length']===_0x212d82['length']&&_0x4cf19e['every'](_0x1211b5=>_0x212d82['includes'](_0x1211b5));}function cloneRects(_0x2acbb2){return Array['from'](_0x2acbb2)['map'](DOMRect['fromRect']);}function joinClientRects(_0x3dee2d){const _0x1aac57=[];let _0x2ef5fe=_0x3dee2d[0x0];for(let _0x5b969c=0x1;_0x5b969c<_0x3dee2d['length'];_0x5b969c++)canJoinRects(_0x2ef5fe,_0x3dee2d[_0x5b969c])?_0x2ef5fe['width']+=_0x3dee2d[_0x5b969c]['width']:(_0x1aac57['push'](_0x2ef5fe),_0x2ef5fe=_0x3dee2d[_0x5b969c]);return _0x1aac57['push'](_0x2ef5fe),_0x1aac57;}function canJoinRects(_0x492513,_0x22be2b){return _0x492513['top']===_0x22be2b['top']&&_0x492513['bottom']===_0x22be2b['bottom']&&_0x492513['right']===_0x22be2b['left'];}class CommentsArchiveView extends View{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x21a1b1,_0x57a274){super(_0x21a1b1),this['set']('isEmpty',!_0x57a274['length']),this['focusTracker']=new FocusTracker(),this['_annotationViews']=_0x57a274,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new FocusCycler({'focusables':_0x57a274,'focusTracker':this['focusTracker']}),this['listenTo'](_0x57a274,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x57a274,'remove',(_0x880b83,_0x27e82d)=>{_0x27e82d['isActive']&&this['focus'](),_0x57a274['length']||(this['isEmpty']=!0x0);});const _0x491eeb=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':getTranslation$f(_0x21a1b1,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x57a274},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x491eeb['if']('isEmpty','ck-hidden',_0x42a824=>!_0x42a824)]},'children':[{'text':getTranslation$f(_0x21a1b1,'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 _0x334dc1 of this['_annotationViews'])this['focusTracker']['add'](_0x334dc1['element']);this['_annotationViews']['on']('change',(_0x5115bd,{added:_0x24f5ec,removed:_0x1a09f7})=>{for(const _0x2d3938 of _0x24f5ec)this['focusTracker']['add'](_0x2d3938['element']);for(const _0x5d8b69 of _0x1a09f7)this['focusTracker']['remove'](_0x5d8b69['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(_0x18aad6){super(_0x18aad6),this['archivedThreads']=new Collection();}['init'](){const _0x207edd=this['context'],_0x2adc3c=_0x207edd['plugins']['get'](CommentsRepository),_0x4fe606=_0x207edd['plugins']['get'](Annotations);this['listenTo'](_0x2adc3c,'addCommentThread',(_0x37cdbf,{threadId:_0x5ea383})=>{const _0x556909=_0x2adc3c['getCommentThread'](_0x5ea383);_0x556909['archivedAt']&&this['archivedThreads']['add'](_0x556909,this['_calculatePosition'](_0x556909['archivedAt'])),this['listenTo'](_0x556909,'change:archivedAt',(_0x557bea,_0x1c9bc4,_0x2f21e5)=>{_0x2f21e5?this['archivedThreads']['has'](_0x556909)||this['archivedThreads']['add'](_0x556909,this['_calculatePosition'](_0x556909['archivedAt'])):this['archivedThreads']['has'](_0x556909)&&this['archivedThreads']['remove'](_0x556909);});}),this['listenTo'](_0x2adc3c,'removeCommentThread',(_0x38e4fb,{threadId:_0x282f67})=>{const _0x2b2746=_0x2adc3c['getCommentThread'](_0x282f67);this['stopListening'](_0x2b2746),this['archivedThreads']['has'](_0x2b2746)&&this['archivedThreads']['remove'](_0x2b2746);},{'priority':'highest'}),this['listenTo'](_0x4fe606['collection'],'focus',(_0x1e0e08,_0x12ed58)=>{_0x12ed58['isVisible']||(_0x12ed58['isActive']=!0x0,_0x4fe606['activate'](_0x12ed58));});}['_calculatePosition'](_0x281468){const _0x528b66=[...this['archivedThreads']]['findIndex'](_0x224e76=>_0x224e76['archivedAt']<_0x281468);return _0x528b66>-0x1?_0x528b66: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(_0x1ef9f9){super(_0x1ef9f9),this['annotationViews']=new ViewCollection(),this['_pendingThreads']=[];}['init'](){const _0x266fdc=this['editor'],_0x2ab99e=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x266fdc['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](ButtonView,!0x0)),_0x266fdc['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x5c2f3d=this['_createCommentsArchiveButton'](MenuBarMenuListItemButtonView);return _0x5c2f3d['set']({'role':'menuitemcheckbox'}),_0x5c2f3d;});const _0x573978=_0x266fdc['plugins']['get'](CommentsArchive),_0x500acc=_0x266fdc['plugins']['get']('Annotations'),_0x13c02d=_0x266fdc['plugins']['get']('CommentsRepository');_0x573978['archivedThreads']['forEach'](_0x1e0aa3=>{this['_handleNewThread'](_0x1e0aa3);}),this['listenTo'](_0x573978['archivedThreads'],'add',(_0xa9208c,_0x21adb1)=>{this['_handleNewThread'](_0x21adb1);}),this['listenTo'](_0x500acc['collection'],'add',(_0x2b0326,_0x252b3b)=>{const _0x1af972=this['_pendingThreads']['find'](_0x6a20b2=>{const _0x1cf379=_0x13c02d['_threadToController']['get'](_0x6a20b2);return _0x1cf379&&_0x252b3b['innerView']===_0x1cf379['view'];});if(_0x1af972){const _0x57c95e=this['_calculatePosition'](_0x1af972['archivedAt']);this['_addAnnotationToArchive'](_0x252b3b,_0x57c95e),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x1af972),0x1);}}),this['listenTo'](_0x573978['archivedThreads'],'remove',(_0x2bbcfb,_0x473666)=>{const _0x594516=_0x266fdc['config']['get']('collaboration.channelId');if(!_0x594516||_0x473666['channelId']===_0x594516){if(this['_pendingThreads']['includes'](_0x473666))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x473666),0x1);else{const _0x345c19=_0x13c02d['_threadToController']['get'](_0x473666),_0x578f9b=_0x500acc['getByInnerView'](_0x345c19['view']);this['annotationViews']['remove'](_0x578f9b['view']),this['stopListening'](_0x578f9b),this['stopListening'](_0x578f9b['focusableElements']);}}}),this['listenTo'](_0x500acc['collection'],'add',(_0x57ef48,_0x4befd4)=>{this['listenTo'](_0x4befd4,'escape',_0x2ab99e);}),this['listenTo'](_0x500acc['collection'],'remove',(_0x46532a,_0x1011f0)=>{this['stopListening'](_0x1011f0,'escape',_0x2ab99e);});}['_addAnnotationToArchive'](_0x362b53,_0x1a3840){this['listenTo'](_0x362b53,'set:isVisible',_0xc18364=>{_0xc18364['return']=!0x1,_0xc18364['stop']();}),this['annotationViews']['add'](_0x362b53['view'],_0x1a3840);}['_handleNewThread'](_0x5ac099){const _0x2b84ca=this['editor']['plugins']['get']('CommentsRepository'),_0x3e229a=this['editor']['plugins']['get']('Annotations'),_0x3f8b48=this['editor']['config']['get']('collaboration.channelId');if(!_0x3f8b48||_0x5ac099['channelId']===_0x3f8b48){const _0x374cad=_0x2b84ca['_threadToController']['get'](_0x5ac099);if(!_0x374cad)return void this['_pendingThreads']['push'](_0x5ac099);const _0x44bfc6=this['_calculatePosition'](_0x5ac099['archivedAt']),_0x12e791=_0x3e229a['getByInnerView'](_0x374cad['view']);_0x12e791['isVisible']&&_0x3e229a['_visibleAnnotations']['remove'](_0x12e791),this['_addAnnotationToArchive'](_0x12e791,_0x44bfc6);}}['_calculatePosition'](_0x3b3cc2){const _0x8d464e=this['editor']['config']['get']('collaboration.channelId'),_0x4210fc=[...this['editor']['plugins']['get'](CommentsArchive)['archivedThreads']]['filter'](_0x349674=>_0x349674['channelId']===_0x8d464e)['findIndex'](_0x4e7111=>_0x4e7111['archivedAt']<_0x3b3cc2);return _0x4210fc<0x0||_0x4210fc>this['annotationViews']['length']?this['annotationViews']['length']:_0x4210fc-0x1;}['_toggleDialog'](){const _0x3d6721=this['editor'],_0x116755=_0x3d6721['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new CommentsArchiveView(_0x3d6721['locale'],this['annotationViews'])),'commentsArchive'===_0x116755['id']?_0x116755['hide']():_0x116755['show']({'id':'commentsArchive','title':getTranslation$f(_0x3d6721['locale'],'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':DialogViewPosition['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x4465a6,_0x2e6b85=!0x1){const _0x2a96a3=this['editor']['locale'],_0x103548=this['editor']['plugins']['get']('Dialog'),_0x4fac25=new _0x4465a6(_0x2a96a3);return _0x4fac25['bind']('isEnabled')['to'](this,'isEnabled'),_0x4fac25['bind']('isOn')['to'](_0x103548,'id',_0x407d42=>'commentsArchive'===_0x407d42),_0x4fac25['set']({'label':getTranslation$f(_0x2a96a3,'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'isToggleable':!0x0}),_0x2e6b85&&(_0x4fac25['tooltip']=!0x0),this['listenTo'](_0x4fac25,'execute',()=>this['_toggleDialog']()),_0x4fac25;}['_hideDialogOnAnnotationEscape']=_0x302266=>{const _0x59cf19=_0x302266['source'];if(!this['annotationViews']['has'](_0x59cf19['view']))return;const _0x478936=this['editor']['plugins']['get']('Dialog');_0x478936['isOpen']&&'commentsArchive'===_0x478936['id']&&(_0x478936['hide'](),_0x302266['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(_0x511c31){let _0x3efa7d='';for(const _0x903eac of _0x511c31['getChildren']())_0x903eac instanceof ModelText&&(_0x3efa7d+=_0x903eac['data']);return _0x3efa7d;}function getDefaultFeatureHeadingNames(_0x2572c5){const _0x2c3b09=_0x2572c5['config']['get']('heading.options');return _0x2c3b09?_0x2c3b09['reduce']((_0x5decd0,_0x342a26)=>('paragraph'!==_0x342a26['model']&&_0x5decd0['push'](_0x342a26['model']),_0x5decd0),[]):_0x2572c5['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 _0xdc3a0a=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x373002=[];_0xdc3a0a['model']['document']['on']('change',debounce$1(()=>{const _0x51bb71=_0x373002;_0x373002=this['_getOutlineDefinitions']();const _0x4dac1d=_0x366723(_0x51bb71,_0x373002,(_0x4b7b9f,_0x49508f)=>_0x4b7b9f['level']===_0x49508f['level']&&_0x4b7b9f['text']===_0x49508f['text']&&_0x4b7b9f['modelElement']===_0x49508f['modelElement']),_0x428471=diffToChanges(_0x4dac1d,_0x373002),_0xf65342=this['_getActiveHeading'](),_0x336912=_0x373002['findIndex'](_0x5cb33f=>_0x5cb33f['modelElement']===_0xf65342);_0x428471['length']&&this['fire']('change',{'outlineDefinitions':_0x373002,'activeItemIndex':_0x336912,'outlineChanges':_0x428471}),this['fire']('activeItemIndex',{'index':_0x336912});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x4c44a6=this['editor'],_0x2d7534=[],_0xef0cad=this['_headingNames'];for(const _0x3c3a7b of _0x4c44a6['model']['document']['getRootNames']())_0x38ef51(_0x4c44a6['model']['document']['getRoot'](_0x3c3a7b));function _0x38ef51(_0x2e31f5){for(const _0x191bde of _0x2e31f5['getChildren']())_0x191bde['is']('element')&&(_0xef0cad['includes'](_0x191bde['name'])&&_0x2d7534['push']({'level':_0xef0cad['indexOf'](_0x191bde['name'])+0x1,'text':getElementText(_0x191bde),'modelElement':_0x191bde}),_0x38ef51(_0x191bde));}return _0x2d7534;}['_getActiveHeading'](){const _0x4a46af=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x255f0a=new ModelTreeWalker({'direction':'backward','startPosition':_0x4a46af});for(const _0x391877 of _0x255f0a)if(_0x391877['item']['is']('element')&&this['_headingNames']['includes'](_0x391877['item']['name']))return _0x391877['item'];}['_getHeadingNames'](){const _0x33cb22=this['editor']['config']['get']('documentOutline.headings');return _0x33cb22||getDefaultFeatureHeadingNames(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x4c88b1=this['editor'],_0x3e3617=['h1','h2','h3','h4','h5','h6'],_0x1a8262=[];for(const _0x461a4e of _0x3e3617){const _0x3f6b25=_0x4c88b1['editing']['view']['domConverter']['domToView'](document['createElement'](_0x461a4e)),_0x11e944=_0x4c88b1['data']['toModel'](_0x3f6b25)['getChild'](0x0);_0x11e944?.['is']('element')&&_0x1a8262['push'](_0x11e944['name']);}this['_headingNames']=_0x1a8262;}}function getTranslation$e(_0x3bdbd5,_0x51806b){const t=_0x3bdbd5['t'];switch(_0x51806b){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 _0x51806b;}}class DocumentOutlineItemView extends View{constructor(_0x2322fb,_0x18bcbf=!0x1){super(_0x2322fb);const _0x380d9f=this['bindTemplate'],_0x193d04=_0x18bcbf?'['+getTranslation$e(_0x2322fb,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x2ff29b=>!_0x2ff29b),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x380d9f['to']('level',_0x45ec24=>'ck-document-outline__item_level-'+_0x45ec24),_0x380d9f['if']('isActive','ck-document-outline__item_active'),_0x380d9f['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x380d9f['to']('text')},'children':[{'text':_0x380d9f['to']('text',_0x422705=>_0x422705||_0x193d04)}],'on':{'click':_0x380d9f['to']('click')}});}}class DocumentOutlineView extends View{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x47021d,_0xae868d=!0x1,_0x54f737){super(_0x47021d),this['showEmptyHeadingText']=_0xae868d,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x54f737,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x3346dd,_0x2485df,_0x2ac1fc,_0x4bcaf4)=>{this['_setActiveItem'](_0x4bcaf4,_0x2ac1fc);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x47021d['contentLanguageDirection'],'data-document-outline-empty-placeholder':getTranslation$e(_0x47021d,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x2d92ff){_0x2d92ff['forEach'](_0x1622a4=>{'insert'==_0x1622a4['type']?this['_insertItem'](_0x1622a4['index'],..._0x1622a4['values']):'delete'==_0x1622a4['type']&&this['_deleteItem'](_0x1622a4['index'],_0x1622a4['howMany']);});}['_setActiveItem'](_0xcd87cb,_0x4ef993){if(-0x1!==_0xcd87cb){const _0x394d46=this['items']['get'](_0xcd87cb);_0x394d46&&(_0x394d46['isActive']=!0x1);}-0x1!==_0x4ef993&&(this['items']['get'](_0x4ef993)['isActive']=!0x0,this['_scrollToItem'](_0x4ef993));}['_insertItem'](_0x14eb68,..._0x210bed){const _0x3f5b87=_0x210bed['map']((_0x4db710,_0x46b007)=>{const _0x98069d=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x98069d['text']=_0x4db710['text'],_0x98069d['level']=_0x4db710['level'],_0x14eb68+_0x46b007===this['activeItemIndex']&&(_0x98069d['isActive']=!0x0),_0x98069d;});this['items']['addMany'](_0x3f5b87,_0x14eb68);}['_deleteItem'](_0x539a2f,_0x29d1ac){do{this['items']['remove'](_0x539a2f);}while(--_0x29d1ac);}['_handleItemClick'](_0xa1d48){const _0x3535cf=this['items']['getIndex'](_0xa1d48['source']);this['fire']('itemSelected',_0x3535cf);}['_scrollToItem'](_0x145a7d){scrollAncestorsToShowTarget(this['items']['get'](_0x145a7d)['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(_0x41b9cb){super(_0x41b9cb),this['view']=new DocumentOutlineView(_0x41b9cb['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=throttle$1(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x50d632=this['editor'],_0xa6a0f7=_0x50d632['plugins']['get']('DocumentOutlineUtils');let _0x4a581f=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x50d632['config']['get']('documentOutline.container'))throw new CKEditorError('document-outline-container-not-provided',{'editor':_0x50d632});_0x50d632['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0xa6a0f7['on']('change',this['_handleOutlineChange']['bind'](this)),_0xa6a0f7['on']('activeItemIndex',(_0x549c44,{index:_0x38c1b3})=>this['_setActiveViewItem'](_0x38c1b3)),this['view']['on']('itemSelected',(_0x183779,_0x3fc05b)=>{_0x4a581f=!0x0,this['_handleItemSelected'](_0x3fc05b);}),this['view']['listenTo'](_0x19b45e['document'],'scroll',()=>{_0x4a581f?_0x4a581f=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x19b45e['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){checkLicense$g(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x8e3853,{outlineDefinitions:_0x1da623,outlineChanges:_0x12f6e8}){this['_currentOutlineDefinitions']=_0x1da623,this['view']['sync'](_0x12f6e8);}['_setActiveViewItem'](_0x2cc6d4){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x2cc6d4]&&(this['view']['activeItemIndex']=_0x2cc6d4);}['_handleItemSelected'](_0x2db153){const _0x1376d8=this['_currentOutlineDefinitions'][_0x2db153]['modelElement'];this['editor']['model']['change'](_0x5eb9bc=>{_0x5eb9bc['setSelection'](_0x1376d8,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x2db153);}['_updateActiveDefinitionOnViewportChange'](){const _0x3ca837=this['editor'];let _0x276308;for(const _0x46b7a1 of _0x3ca837['model']['document']['getRootNames']()){const _0x4381e7=_0x3ca837['editing']['view']['getDomRoot'](_0x46b7a1),_0x2dce69=_0x4381e7&&new Rect(_0x4381e7)['getVisible']();if(_0x2dce69){const _0x2b8f16=new Rect(_0x19b45e['window'])['getIntersection'](_0x2dce69);_0x2b8f16&&(_0x276308=_0x2b8f16['top']+0.25*_0x2b8f16['height']);}}if(void 0x0===_0x276308)return;const _0xf65900=binaryActiveDefinitionSearch(_0x3ca837['editing'],this['_currentOutlineDefinitions'],_0x276308);_0xf65900?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0xf65900)):this['_setActiveViewItem'](-0x1);}}function binaryActiveDefinitionSearch(_0x1d94dc,_0x4a44aa,_0x1a2ae4,_0x1ddcf6=0x0,_0x3c7151=_0x4a44aa['length']-0x1){const _0x27c8e9=Math['floor'](_0x1ddcf6+(_0x3c7151-_0x1ddcf6)/0x2);if(_0x3c7151>=_0x1ddcf6){const _0x3ef5fd=_0x4a44aa[_0x27c8e9],_0x4277eb=_0x1d94dc['mapper']['toViewElement'](_0x3ef5fd['modelElement']);if(!_0x4277eb)return null;const _0x21dc5b=_0x1d94dc['view']['domConverter']['mapViewToDom'](_0x4277eb);return new Rect(_0x21dc5b)['bottom']>_0x1a2ae4?binaryActiveDefinitionSearch(_0x1d94dc,_0x4a44aa,_0x1a2ae4,_0x1ddcf6,_0x27c8e9-0x1):binaryActiveDefinitionSearch(_0x1d94dc,_0x4a44aa,_0x1a2ae4,_0x27c8e9+0x1,_0x3c7151);}return _0x27c8e9<0x0?null:_0x4a44aa[_0x27c8e9];}async function checkLicense$g(_0x2ac0e1){const _0x385298=_0x48f741([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]),_0xf3105f=window[_0x48f741([0x44,0x61,0x74,0x65])][_0x48f741([0x6e,0x6f,0x77])](),_0x1d57ae=_0x2ac0e1[_0x48f741([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x197f9a=new window[(_0x48f741([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cfb36=>{_0x1d57ae[_0x48f741([0x6f,0x6e,0x63,0x65])](_0x48f741([0x72,0x65,0x61,0x64,0x79]),_0x2cfb36);}),_0x38a7bd={[_0x48f741([0x6b,0x74,0x79])]:_0x48f741([0x45,0x43]),[_0x48f741([0x75,0x73,0x65])]:_0x48f741([0x73,0x69,0x67]),[_0x48f741([0x63,0x72,0x76])]:_0x48f741([0x50,0x2d,0x32,0x35,0x36]),[_0x48f741([0x78])]:_0x48f741([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]),[_0x48f741([0x79])]:_0x48f741([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]),[_0x48f741([0x61,0x6c,0x67])]:_0x48f741([0x45,0x53,0x32,0x35,0x36])},_0x2ef3b6=_0x1d57ae[_0x48f741([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48f741([0x67,0x65,0x74])](_0x48f741([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x46355f=await(async function(){let _0x8f504a,_0x2cdc53=null,_0x4e8a74=null;try{if(_0x2ef3b6==_0x48f741([0x47,0x50,0x4c]))return _0x48f741([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8f504a=(function(){const _0x274672=_0x2ef3b6[_0x48f741([0x73,0x70,0x6c,0x69,0x74])](_0x48f741([0x2e]));if(0x3!=_0x274672[_0x48f741([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5f0352=_0x274672[0x1];return _0x1ee221(_0x5f0352);function _0x1ee221(_0x43262b){const _0x17f77b=_0x654bf5(_0x43262b);return _0x17f77b&&_0x1fbd7c()?_0x17f77b:null;function _0x1fbd7c(){const _0x13bd2f=_0x17f77b[_0x48f741([0x6a,0x74,0x69])],_0x22d9a5=window[_0x48f741([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13bd2f[_0x48f741([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13bd2f[_0x48f741([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4fab4c={..._0x17f77b,[_0x48f741([0x6a,0x74,0x69])]:_0x13bd2f[_0x48f741([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13bd2f[_0x48f741([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4fab4c[_0x48f741([0x76,0x63])],_0x564059(_0x4fab4c)==_0x22d9a5;}}}()),!_0x8f504a)return _0x48f741([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x8f504a[_0x48f741([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e8a74=function(_0x431fce,_0x32c541){return new window[(_0x48f741([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfbe691=>{if(_0x2d8994())return _0xfbe691(_0x48f741([0x56,0x61,0x6c,0x69,0x64]));_0x48b609(),_0x1d57ae[_0x48f741([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48f741([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7707ee=!0x1;const _0x357216=uid();function _0x40c39b(_0x49798b){return!!_0x49798b&&(typeof _0x49798b===_0x48f741([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49798b===_0x48f741([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49798b[_0x48f741([0x74,0x68,0x65,0x6e])]===_0x48f741([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49798b[_0x48f741([0x63,0x61,0x74,0x63,0x68])]===_0x48f741([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1281c9(_0x553f65){_0x5848bc(_0x553f65)[_0x48f741([0x74,0x68,0x65,0x6e])](_0x2873b2=>{if(!_0x2873b2||_0x2873b2[_0x48f741([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48f741([0x6f,0x6b]))return _0x48f741([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xeaa61(_0x564059(_0x357216+_0x32c541))!=_0x2873b2[_0x48f741([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48f741([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48f741([0x56,0x61,0x6c,0x69,0x64]);})[_0x48f741([0x74,0x68,0x65,0x6e])](_0xc64615=>(_0x33c51a(),_0xc64615),()=>{const _0x4d56ad=_0x3170f6();return null==_0x4d56ad?(_0x33c51a(),_0x48f741([0x56,0x61,0x6c,0x69,0x64])):_0x48f741(_0xf3105f-_0x4d56ad>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48f741([0x74,0x68,0x65,0x6e])](_0xfbe691)[_0x48f741([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfbe691(_0x48f741([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2bcc75=0x36ee80;function _0x33c51a(){const _0x1ac7a=_0x48f741([0x6c,0x6c,0x63,0x74,0x2d])+_0xeaa61(_0x564059(_0x431fce)),_0x5466fe=_0x808a66(_0xeaa61(window[_0x48f741([0x4d,0x61,0x74,0x68])][_0x48f741([0x63,0x65,0x69,0x6c])](_0xf3105f/_0x2bcc75)));window[_0x48f741([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48f741([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ac7a,_0x5466fe);}function _0x3170f6(){const _0x56380b=_0x48f741([0x6c,0x6c,0x63,0x74,0x2d])+_0xeaa61(_0x564059(_0x431fce)),_0x52d403=window[_0x48f741([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48f741([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56380b);return _0x52d403?window[_0x48f741([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x808a66(_0x52d403),0x10)*_0x2bcc75:null;}function _0x5848bc(_0x523e35){return new window[(_0x48f741([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42f2e5,_0x5c0c37)=>{_0x523e35[_0x48f741([0x74,0x68,0x65,0x6e])](_0x42f2e5,_0x5c0c37),window[_0x48f741([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c0c37,0x1d4c0);});}}_0x1d57ae[_0x48f741([0x6f,0x6e])](_0x48f741([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2292df,_0x4dc661)=>{if(_0x4dc661[0x0]!=_0x431fce)return _0xfbe691(_0x48f741([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4dc661[0x1]={..._0x4dc661[0x1],[_0x48f741([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x357216};},{[_0x48f741([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48f741([0x68,0x69,0x67,0x68])}),_0x1d57ae[_0x48f741([0x6f,0x6e])](_0x48f741([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x26e729=>{_0x40c39b(_0x26e729[_0x48f741([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7707ee=!0x0,_0x1281c9(_0x26e729[_0x48f741([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48f741([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48f741([0x6c,0x6f,0x77])}),_0x197f9a[_0x48f741([0x74,0x68,0x65,0x6e])](()=>{_0x7707ee||_0xfbe691(_0x48f741([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d8994(){return _0x1d57ae[_0x48f741([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48f741([0x76,0x69,0x65,0x77])][_0x48f741([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48f741([0x61,0x75,0x74,0x6f]);}function _0x48b609(){_0x1d57ae[_0x48f741([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48f741([0x76,0x69,0x65,0x77])][_0x48f741([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48f741([0x61,0x75,0x74,0x6f]);}}(_0x8f504a[_0x48f741([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8f504a[_0x48f741([0x6a,0x74,0x69])]));const _0x599a01=await(async function(){let _0x189b84=!0x0;try{const _0x3360d5=_0x2ef3b6[_0x48f741([0x73,0x70,0x6c,0x69,0x74])](_0x48f741([0x2e])),[_0xa41d3f,_0x2fcfbe,_0x3fb3f7]=_0x3360d5;return _0x48fa77(_0xa41d3f),await _0x18f5a7(_0xa41d3f,_0x2fcfbe,_0x3fb3f7),_0x189b84;}catch{return!0x1;}function _0x48fa77(_0x119d31){const _0x4df1f4=_0x654bf5(_0x119d31);_0x4df1f4&&_0x4df1f4[_0x48f741([0x61,0x6c,0x67])]==_0x48f741([0x45,0x53,0x32,0x35,0x36])||(_0x189b84=!0x1);}async function _0x18f5a7(_0x1c290d,_0x7a884d,_0x5cf7c8){const _0x2353e7=window[_0x48f741([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48f741([0x66,0x72,0x6f,0x6d])](_0x4e5150(_0x5cf7c8),_0x1b8a61=>_0x1b8a61[_0x48f741([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16d553=new window[(_0x48f741([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48f741([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c290d+_0x48f741([0x2e])+_0x7a884d),_0x3abcd6=window[_0x48f741([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48f741([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3abcd6)return;const _0x4fb3de=await _0x3abcd6[_0x48f741([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48f741([0x6a,0x77,0x6b]),_0x38a7bd,{[_0x48f741([0x6e,0x61,0x6d,0x65])]:_0x48f741([0x45,0x43,0x44,0x53,0x41]),[_0x48f741([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48f741([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48f741([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3abcd6[_0x48f741([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48f741([0x6e,0x61,0x6d,0x65])]:_0x48f741([0x45,0x43,0x44,0x53,0x41]),[_0x48f741([0x68,0x61,0x73,0x68])]:{[_0x48f741([0x6e,0x61,0x6d,0x65])]:_0x48f741([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fb3de,_0x2353e7,_0x16d553)||(_0x189b84=!0x1);}}());return _0x599a01?(function(){const _0x4904fe=_0x8f504a[_0x48f741([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4904fe)return!0x1;if(_0x4904fe[_0x48f741([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f741([0x2a])))return!0x0;if(_0x4904fe[_0x48f741([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f741([0x44,0x4f])))return!0x0;if(_0x4904fe[_0x48f741([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f741([0x50,0x50])))return!0x0;if(_0x4904fe[_0x48f741([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f741([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x48f741([0x67,0x6c,0x6f,0x62])]&&window[_0x48f741([0x67,0x6c,0x6f,0x62])][_0x48f741([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x267391=[_0x48f741([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48f741([0x74,0x72,0x69,0x61,0x6c])][_0x48f741([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8f504a[_0x48f741([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf3105f/0x3e8:0x69d59a80;return _0x8f504a[_0x48f741([0x65,0x78,0x70])]<_0x267391;}())?_0x48f741([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1c9f75=_0x8f504a[_0x48f741([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c9f75||0x0==_0x1c9f75[_0x48f741([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e3455}=new URL(window[_0x48f741([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c9f75[_0x48f741([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3455))return!0x0;const _0x49c68e=_0x4e3455[_0x48f741([0x73,0x70,0x6c,0x69,0x74])](_0x48f741([0x2e]));return _0x1c9f75[_0x48f741([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31a2d7=>_0x31a2d7[_0x48f741([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f741([0x2a])))[_0x48f741([0x6d,0x61,0x70])](_0x230fe5=>_0x230fe5[_0x48f741([0x73,0x70,0x6c,0x69,0x74])](_0x48f741([0x2e])))[_0x48f741([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2dd106=>_0x2dd106[_0x48f741([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49c68e[_0x48f741([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48f741([0x6d,0x61,0x70])](_0x863f23=>Array(_0x49c68e[_0x48f741([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x863f23[_0x48f741([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48f741([0x66,0x69,0x6c,0x6c])](_0x863f23[0x0]===_0x48f741([0x2a])?_0x48f741([0x2a]):'')[_0x48f741([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x863f23))[_0x48f741([0x73,0x6f,0x6d,0x65])](_0x43553f=>_0x49c68e[_0x48f741([0x65,0x76,0x65,0x72,0x79])]((_0x2f4a10,_0xf7ac71)=>_0x43553f[_0xf7ac71]===_0x2f4a10||_0x43553f[_0xf7ac71]===_0x48f741([0x2a])));}())?(_0x8f504a[_0x48f741([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48f741([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2cdc53=function(_0x4fc0d9){const _0x26936d=new window[(_0x48f741([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f7b62=>setTimeout(_0x2f7b62,0x93ecc)),_0x27df39=_0x197f9a[_0x48f741([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48f741([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5099df=>{let _0x38dc1c=0x0;_0x1d57ae[_0x48f741([0x6d,0x6f,0x64,0x65,0x6c])][_0x48f741([0x6f,0x6e])](_0x48f741([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41de79,_0x19dbba)=>{_0x19dbba[0x0][_0x48f741([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38dc1c++,0x5e8==_0x38dc1c&&(_0x5099df(),_0x41de79[_0x48f741([0x6f,0x66,0x66])]());});})),_0x5ece5b=[_0x26936d,_0x27df39];return window[_0x48f741([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48f741([0x72,0x61,0x63,0x65])](_0x5ece5b)[_0x48f741([0x74,0x68,0x65,0x6e])](()=>_0x4fc0d9);}(_0x48f741([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2cdc53&&_0x4e8a74)return new window[(_0x48f741([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x528a26,_0x507340)=>{_0x2cdc53[_0x48f741([0x74,0x68,0x65,0x6e])](_0x528a26,_0x507340),_0x4e8a74[_0x48f741([0x74,0x68,0x65,0x6e])](_0x1f6f1c=>{_0x1f6f1c!=_0x48f741([0x56,0x61,0x6c,0x69,0x64])&&_0x528a26(_0x1f6f1c);},_0x507340);});return _0x2cdc53||_0x4e8a74||_0x48f741([0x56,0x61,0x6c,0x69,0x64]);}())):_0x48f741([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48f741([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48f741([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48f741([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x654bf5(_0x5036b5){return _0x5036b5[_0x48f741([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48f741([0x65,0x79]))?JSON[_0x48f741([0x70,0x61,0x72,0x73,0x65])](_0x4e5150(_0x5036b5)):null;}function _0x4e5150(_0xb362ba){return window[_0x48f741([0x61,0x74,0x6f,0x62])](_0xb362ba[_0x48f741([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48f741([0x2b]))[_0x48f741([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48f741([0x2f])));}function _0x564059(_0x5101ea){let _0x415083=0x1505;function _0x484a87(_0xed592b){for(let _0x5522f9=0x0;_0x5522f9<_0xed592b[_0x48f741([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5522f9++){const _0x40677d=_0xed592b[_0x48f741([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5522f9);_0x415083=(_0x415083<<0x5)+_0x415083+_0x40677d,_0x415083&=_0x415083;}}return function _0x5121ed(_0x4a619e){Array[_0x48f741([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a619e)?_0x4a619e[_0x48f741([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5121ed):_0x4a619e&&typeof _0x4a619e==_0x48f741([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48f741([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a619e)[_0x48f741([0x73,0x6f,0x72,0x74])]()[_0x48f741([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x519e7c,_0x484f09])=>{_0x484a87(_0x519e7c),_0x5121ed(_0x484f09);}):_0x484a87(window[_0x48f741([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a619e));}(_0x5101ea),_0x415083>>>0x0;}function _0xeaa61(_0x147fd3){return _0x147fd3[_0x48f741([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48f741([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48f741([0x30]));}function _0x808a66(_0x37d91f){return _0x37d91f[_0x48f741([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48f741([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48f741([0x6a,0x6f,0x69,0x6e])]('');}function _0x352aac(){}function _0x48f741(_0x3efa24){return _0x3efa24['map'](_0x5d086e=>String['fromCharCode'](_0x5d086e))['join']('');}!function(_0x4ec6cf){const _0x1654b2=(function(){const _0x7d1364=window[_0x48f741([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48f741([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48f741([0x6e,0x6f,0x77])]())[_0x48f741([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48f741([0x2e]),'');let _0x3453e3=_0x48f741([0x61]);for(let _0x52e8d7=0x0;_0x52e8d7<_0x7d1364[_0x48f741([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52e8d7+=0x2){let _0x50e03d=window[_0x48f741([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7d1364[_0x48f741([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52e8d7,_0x52e8d7+0x2));_0x50e03d>=_0x385298[_0x48f741([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x50e03d-=_0x385298[_0x48f741([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3453e3+=_0x385298[_0x50e03d];}return _0x3453e3;}());_0x1d57ae[_0x1654b2]=_0x48f741([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])+_0x4ec6cf,_0x4ec6cf!=_0x48f741([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x197f9a,_0x1d57ae[_0x48f741([0x6d,0x6f,0x64,0x65,0x6c])][_0x48f741([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x352aac,_0x1d57ae[_0x48f741([0x6d,0x6f,0x64,0x65,0x6c])][_0x48f741([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x352aac,_0x1d57ae[_0x48f741([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48f741([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x46355f);}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 _0x11f2a5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5167bc;for(const _0x54cb05 in _0x11f2a5){const _0x402084=_0x54cb05,_0x2786e9=_0x11f2a5[_0x402084];if('documentOutlineLicenseKeyValid'==_0x2786e9||'documentOutlineLicenseKeyInvalid'==_0x2786e9||'documentOutlineLicenseKeyExpired'==_0x2786e9||'documentOutlineLicenseKeyDomainLimit'==_0x2786e9||'documentOutlineLicenseKeyNotAllowed'==_0x2786e9||'documentOutlineLicenseKeyEvaluationLimit'==_0x2786e9||'documentOutlineLicenseKeyUsageLimit'==_0x2786e9){delete _0x11f2a5[_0x402084],_0x5167bc=_0x2786e9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x5167bc&&_0x11f2a5['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x5167bc&&_0x11f2a5['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x5167bc&&_0x11f2a5['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x5167bc&&_0x11f2a5['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x5167bc&&_0x11f2a5['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x5167bc&&_0x11f2a5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends Command{['execute'](){this['editor']['model']['change'](_0x590e8d=>{this['editor']['model']['insertObject'](_0x590e8d['createElement']('tableOfContents'));});}['refresh'](){const _0x58a95a=this['editor']['model'],_0x33ee4a=_0x58a95a['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x33ee4a&&_0x58a95a['schema']['findAllowedParent'](_0x33ee4a,'tableOfContents'));}}class HeadingId extends Plugin{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x50e8a4=this['editor'];if(_0x50e8a4['config']['get']('headingId.modelAttributeName'))return;getDefaultHeadingMapNames(this['editor']['config']['get']('heading.options'))['forEach']((_0x912aa1,_0x59ca08)=>{this['_customUpcastHeadingsConversion'](_0x59ca08),this['_customDataDowncastHeadingsConversion'](_0x912aa1),_0x50e8a4['model']['schema']['isRegistered'](_0x912aa1)&&_0x50e8a4['model']['schema']['extend'](_0x912aa1,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']();}['_customUpcastHeadingsConversion'](_0x250bf8){this['editor']['conversion']['for']('upcast')['add'](_0x25a687=>_0x25a687['on']('element:'+_0x250bf8,(_0x43359c,_0x4f357d,_0x1aaeb9)=>{const {consumable:_0x52c677,writer:_0x3ebc05}=_0x1aaeb9,_0xeb3955=_0x4f357d['viewItem']['getAttribute']('id'),_0x2b9272=_0x4f357d['modelRange']['getContainedElement']();if(_0x2b9272)return _0xeb3955&&_0xeb3955['length']||_0x2b9272['hasAttribute']('headingId')?void(_0x52c677['consume'](_0x4f357d['viewItem'],{'attributes':['id']})&&_0x3ebc05['setAttribute']('headingId',_0xeb3955,_0x2b9272)):(_0x52c677['consume'](_0x4f357d['viewItem'],{'attributes':['id']}),void _0x3ebc05['setAttribute']('headingId',uid(),_0x2b9272));},{'priority':priorities['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x22d339){this['editor']['conversion']['for']('downcast')['add'](_0xd4b22d=>_0xd4b22d['on']('attribute:headingId:'+_0x22d339,(_0x18af86,_0x1bf861,_0x29120f)=>{if(!_0x29120f['consumable']['consume'](_0x1bf861['item'],_0x18af86['name']))return;const _0xa61c0e=_0x1bf861['item']['getAttribute']('headingId'),_0x39a86c=_0x29120f['mapper']['toViewElement'](_0x1bf861['item']);_0x29120f['writer']['setAttribute']('id',_0xa61c0e,_0x39a86c);}));}['_registerHeadingIdAttributePostfixer'](){const _0xf8027c=this['editor'],_0x302e43=new Set(),_0x988053=new Set();function _0x5ba767(_0x3d2a92,_0x5ac5f6){const _0x162911=uid();return _0x988053['add'](_0x162911),_0x3d2a92['setAttribute']('headingId',_0x162911,_0x5ac5f6),_0x162911;}function _0x163e89(_0x33763f,_0x3b04d6){_0x33763f['removeAttribute']('headingId',_0x3b04d6);}_0xf8027c['model']['document']['registerPostFixer'](_0x4678ad=>{const _0x112c49=_0xf8027c['model']['document']['differ']['getChanges']();let _0x398225=!0x1;for(const _0x2af4ba of _0x112c49)if('insert'==_0x2af4ba['type']&&_0x2af4ba['name']){if(isHeading$1(_0x2af4ba['name'])){const _0x46f153=_0x2af4ba['attributes']['get']('headingId');'string'==typeof _0x46f153?_0x302e43['has'](_0x46f153)?(_0x5ba767(_0x4678ad,_0x2af4ba['position']['nodeAfter']),_0x398225=!0x0):_0x988053['add'](_0x46f153):(_0x5ba767(_0x4678ad,_0x2af4ba['position']['nodeAfter']),_0x398225=!0x0);}else'string'==typeof _0x2af4ba['attributes']['get']('headingId')&&(_0x163e89(_0x4678ad,_0x2af4ba['position']['nodeAfter']),_0x398225=!0x0);}else{if('remove'==_0x2af4ba['type']){const _0x4732f1=_0x2af4ba['attributes']['get']('headingId');'string'==typeof _0x4732f1&&_0x302e43['delete'](_0x4732f1);}}return _0x398225;}),_0xf8027c['model']['document']['on']('change',()=>{_0x988053['forEach'](_0x2abb04=>_0x302e43['add'](_0x2abb04)),_0x988053['clear']();});}}function isHeading$1(_0x4e191a){return!!_0x4e191a['match'](/heading\d/);}function getDefaultHeadingMapNames(_0x36c1c7){const _0x56771f=new Map();return _0x36c1c7?(_0x36c1c7['forEach'](_0x9138ed=>{'paragraph'!==_0x9138ed['model']&&_0x56771f['set'](_0x9138ed['view'],_0x9138ed['model']);}),_0x56771f['get']('h1')||_0x56771f['set']('h1','heading1'),_0x56771f):_0x56771f;}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(_0x3db8b7){super(_0x3db8b7),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x42d64a=this['editor'],_0x3b23c7=_0x42d64a['editing']['view']['document'];_0x42d64a['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x42d64a['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x3b23c7,'click',(_0x5f0a9c,_0x58463b)=>{if(!_0x58463b['target'])return;const _0x50e416=_0x58463b['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x50e416)&&(_0x58463b['domEvent']['preventDefault'](),_0x5f0a9c['stop'](),this['_handleScrollToHeading'](_0x50e416));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x42d64a['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x42d64a)),(_0x42d64a['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x45bd2c,_0x58a819)=>{this['_currentOutlineDefinitions']=_0x58a819['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x42d64a['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){checkLicense$f(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x52bac2=>{'$graveyard'!==_0x52bac2['rootName']&&this['editor']['editing']['reconvertItem'](_0x52bac2);});}['_trackNewToCElements'](){for(const _0x1781c6 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x1781c6['type']||'tableOfContents'!==_0x1781c6['name'])return;this['_tableOfContentsElements']['add'](_0x1781c6['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x52d8d9=this['editor']['conversion'];_0x52d8d9['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x52d8d9['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x11dc6c,{writer:_0xfd413c})=>this['_createTableOfContents'](_0xfd413c,!0x0)}),_0x52d8d9['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x169f68,{writer:_0x31e025})=>{this['_tableOfContentsElements']['add'](_0x169f68);const _0x595fa5=this['_createTableOfContents'](_0x31e025);return toWidget(_0x595fa5,_0x31e025,{'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'](_0x101dad,_0x10697d=!0x1){const {locale:_0x3ecb23}=this['editor'],_0xcc8f1c=_0x101dad['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x10697d&&{'data-table-of-contents-label':getTranslation$e(_0x3ecb23,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x10697d&&_0x101dad['insert'](_0x101dad['createPositionAt'](_0xcc8f1c,'end'),_0x101dad['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x101dad['createText'](getTranslation$e(_0x3ecb23,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x5d43e6=_0x10697d?'':'['+getTranslation$e(_0x3ecb23,'Empty\x20heading')+']';let _0x39533b=_0xcc8f1c;return this['_currentOutlineDefinitions']['forEach']((_0x3eb4cc,_0x431d11,_0x66643d)=>{const _0x1a8bb6=this['editor']['model']['hasContent'](_0x3eb4cc['modelElement'],{'ignoreWhitespaces':!0x0}),_0x5f04b0=_0x1a8bb6?_0x3eb4cc['text']:_0x5d43e6,_0x179b43=_0x3eb4cc['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x56f5f4=_0x101dad['createContainerElement']('a',{'href':'#'+_0x179b43,...!_0x10697d&&{'tabindex':'-1'}},[_0x101dad['createText'](_0x5f04b0)]),_0x595762=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x101dad['setCustomProperty']('tableOfContentsHeadingIndex',_0x431d11,_0x56f5f4);const _0x22e844=_0x101dad['createContainerElement']('li',null,[_0x1a8bb6||!_0x10697d&&_0x595762?_0x56f5f4:_0x101dad['createText']('')]),_0x554759=_0x431d11?_0x66643d[_0x431d11-0x1]['level']:0x0,_0x60b646=Math['abs'](_0x3eb4cc['level']-_0x554759);if(_0x3eb4cc['level']>_0x554759){const _0x50ae03=wrapInList(_0x22e844,_0x60b646,_0x101dad);_0x101dad['insert'](_0x101dad['createPositionAt'](_0x39533b,'end'),_0x50ae03);}else{const _0x48d9e2=getOuterListByLevelDifference(_0x39533b,_0x60b646);_0x101dad['insert'](_0x101dad['createPositionAt'](_0x48d9e2,'end'),_0x22e844);}_0x39533b=_0x22e844;}),_0xcc8f1c;}['_handleScrollToHeading'](_0x33d19f){const _0x1a9d8d=this['_currentOutlineDefinitions'][_0x33d19f]['modelElement'];this['editor']['model']['change'](_0x2817b3=>{_0x2817b3['setSelection'](_0x1a9d8d,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x363fed,_0x3a6b90)=>{const _0x1b8e4c=_0x3a6b90['mapper'],_0x3e240e=_0x1b8e4c['findMappedViewAncestor'](_0x3a6b90['viewPosition']),_0x2393ec=_0x1b8e4c['toModelElement'](_0x3e240e);_0x2393ec['is']('element','tableOfContents')&&(_0x3a6b90['modelPosition']=this['editor']['model']['createPositionAt'](_0x2393ec,0x0),_0x363fed['stop']());};}}function wrapInList(_0xb6bd7d,_0x2cd881,_0x3dd485){return 0x1===_0x2cd881?_0x3dd485['createContainerElement']('ol',null,[_0xb6bd7d]):_0x3dd485['createContainerElement']('ol',null,[_0x3dd485['createContainerElement']('li',null,[wrapInList(_0xb6bd7d,_0x2cd881-0x1,_0x3dd485)])]);}function getOuterListByLevelDifference(_0x4d582f,_0x2a4a35){return _0x4d582f['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x968182=>_0x968182['is']('element','ol'))[_0x2a4a35];}async function checkLicense$f(_0x5ae391){const _0xb8ad04=_0x44b426([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]),_0x59c768=window[_0x44b426([0x44,0x61,0x74,0x65])][_0x44b426([0x6e,0x6f,0x77])](),_0x104bca=_0x5ae391[_0x44b426([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30a4c8=new window[(_0x44b426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46cdb8=>{_0x104bca[_0x44b426([0x6f,0x6e,0x63,0x65])](_0x44b426([0x72,0x65,0x61,0x64,0x79]),_0x46cdb8);}),_0x3b2f4d={[_0x44b426([0x6b,0x74,0x79])]:_0x44b426([0x45,0x43]),[_0x44b426([0x75,0x73,0x65])]:_0x44b426([0x73,0x69,0x67]),[_0x44b426([0x63,0x72,0x76])]:_0x44b426([0x50,0x2d,0x32,0x35,0x36]),[_0x44b426([0x78])]:_0x44b426([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]),[_0x44b426([0x79])]:_0x44b426([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]),[_0x44b426([0x61,0x6c,0x67])]:_0x44b426([0x45,0x53,0x32,0x35,0x36])},_0x31506b=_0x104bca[_0x44b426([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44b426([0x67,0x65,0x74])](_0x44b426([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x2d1aaf=await(async function(){let _0x493255,_0x1e5f95=null,_0x22dd93=null;try{if(_0x31506b==_0x44b426([0x47,0x50,0x4c]))return _0x44b426([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x493255=(function(){const _0x8a87ce=_0x31506b[_0x44b426([0x73,0x70,0x6c,0x69,0x74])](_0x44b426([0x2e]));if(0x3!=_0x8a87ce[_0x44b426([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x20a761=_0x8a87ce[0x1];return _0x1e176a(_0x20a761);function _0x1e176a(_0x47aeb6){const _0x5e60f8=_0x1a8969(_0x47aeb6);return _0x5e60f8&&_0x4b66e3()?_0x5e60f8:null;function _0x4b66e3(){const _0x19ec32=_0x5e60f8[_0x44b426([0x6a,0x74,0x69])],_0x2babdc=window[_0x44b426([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19ec32[_0x44b426([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19ec32[_0x44b426([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x546061={..._0x5e60f8,[_0x44b426([0x6a,0x74,0x69])]:_0x19ec32[_0x44b426([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19ec32[_0x44b426([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x546061[_0x44b426([0x76,0x63])],_0x7ab8e5(_0x546061)==_0x2babdc;}}}()),!_0x493255)return _0x44b426([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x493255[_0x44b426([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x22dd93=function(_0x2d6d1f,_0x541e1f){return new window[(_0x44b426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4230c4=>{if(_0x31676b())return _0x4230c4(_0x44b426([0x56,0x61,0x6c,0x69,0x64]));_0x2b36e1(),_0x104bca[_0x44b426([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44b426([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x580e7a=!0x1;const _0x4099a9=uid();function _0x27fe39(_0x2cfff3){return!!_0x2cfff3&&(typeof _0x2cfff3===_0x44b426([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2cfff3===_0x44b426([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2cfff3[_0x44b426([0x74,0x68,0x65,0x6e])]===_0x44b426([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2cfff3[_0x44b426([0x63,0x61,0x74,0x63,0x68])]===_0x44b426([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19c7f7(_0x1dcd2d){_0x15ded6(_0x1dcd2d)[_0x44b426([0x74,0x68,0x65,0x6e])](_0x31195a=>{if(!_0x31195a||_0x31195a[_0x44b426([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44b426([0x6f,0x6b]))return _0x44b426([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x306aab(_0x7ab8e5(_0x4099a9+_0x541e1f))!=_0x31195a[_0x44b426([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44b426([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44b426([0x56,0x61,0x6c,0x69,0x64]);})[_0x44b426([0x74,0x68,0x65,0x6e])](_0x22a68c=>(_0x428d98(),_0x22a68c),()=>{const _0x37e593=_0x4532b2();return null==_0x37e593?(_0x428d98(),_0x44b426([0x56,0x61,0x6c,0x69,0x64])):_0x44b426(_0x59c768-_0x37e593>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44b426([0x74,0x68,0x65,0x6e])](_0x4230c4)[_0x44b426([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4230c4(_0x44b426([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e6616=0x36ee80;function _0x428d98(){const _0x2031b2=_0x44b426([0x6c,0x6c,0x63,0x74,0x2d])+_0x306aab(_0x7ab8e5(_0x2d6d1f)),_0x35498e=_0x4eb33a(_0x306aab(window[_0x44b426([0x4d,0x61,0x74,0x68])][_0x44b426([0x63,0x65,0x69,0x6c])](_0x59c768/_0x4e6616)));window[_0x44b426([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44b426([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2031b2,_0x35498e);}function _0x4532b2(){const _0x5f59d5=_0x44b426([0x6c,0x6c,0x63,0x74,0x2d])+_0x306aab(_0x7ab8e5(_0x2d6d1f)),_0xe9d3e6=window[_0x44b426([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44b426([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f59d5);return _0xe9d3e6?window[_0x44b426([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4eb33a(_0xe9d3e6),0x10)*_0x4e6616:null;}function _0x15ded6(_0x256627){return new window[(_0x44b426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cfce5,_0x39c06f)=>{_0x256627[_0x44b426([0x74,0x68,0x65,0x6e])](_0x4cfce5,_0x39c06f),window[_0x44b426([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39c06f,0x1d4c0);});}}_0x104bca[_0x44b426([0x6f,0x6e])](_0x44b426([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x475e5d,_0x577912)=>{if(_0x577912[0x0]!=_0x2d6d1f)return _0x4230c4(_0x44b426([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x577912[0x1]={..._0x577912[0x1],[_0x44b426([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4099a9};},{[_0x44b426([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44b426([0x68,0x69,0x67,0x68])}),_0x104bca[_0x44b426([0x6f,0x6e])](_0x44b426([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe9b959=>{_0x27fe39(_0xe9b959[_0x44b426([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x580e7a=!0x0,_0x19c7f7(_0xe9b959[_0x44b426([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44b426([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44b426([0x6c,0x6f,0x77])}),_0x30a4c8[_0x44b426([0x74,0x68,0x65,0x6e])](()=>{_0x580e7a||_0x4230c4(_0x44b426([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31676b(){return _0x104bca[_0x44b426([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44b426([0x76,0x69,0x65,0x77])][_0x44b426([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44b426([0x61,0x75,0x74,0x6f]);}function _0x2b36e1(){_0x104bca[_0x44b426([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44b426([0x76,0x69,0x65,0x77])][_0x44b426([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44b426([0x61,0x75,0x74,0x6f]);}}(_0x493255[_0x44b426([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x493255[_0x44b426([0x6a,0x74,0x69])]));const _0x3cd7b3=await(async function(){let _0x345e2e=!0x0;try{const _0x441c99=_0x31506b[_0x44b426([0x73,0x70,0x6c,0x69,0x74])](_0x44b426([0x2e])),[_0x4721ec,_0x3cd699,_0x241a85]=_0x441c99;return _0x51532d(_0x4721ec),await _0x4bd2e3(_0x4721ec,_0x3cd699,_0x241a85),_0x345e2e;}catch{return!0x1;}function _0x51532d(_0x3393ba){const _0x1d0914=_0x1a8969(_0x3393ba);_0x1d0914&&_0x1d0914[_0x44b426([0x61,0x6c,0x67])]==_0x44b426([0x45,0x53,0x32,0x35,0x36])||(_0x345e2e=!0x1);}async function _0x4bd2e3(_0x1c9884,_0x5c7cb7,_0x542306){const _0x33aad7=window[_0x44b426([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44b426([0x66,0x72,0x6f,0x6d])](_0x419252(_0x542306),_0x3a02f6=>_0x3a02f6[_0x44b426([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3dd615=new window[(_0x44b426([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44b426([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c9884+_0x44b426([0x2e])+_0x5c7cb7),_0x50f273=window[_0x44b426([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44b426([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50f273)return;const _0x5415ca=await _0x50f273[_0x44b426([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44b426([0x6a,0x77,0x6b]),_0x3b2f4d,{[_0x44b426([0x6e,0x61,0x6d,0x65])]:_0x44b426([0x45,0x43,0x44,0x53,0x41]),[_0x44b426([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44b426([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44b426([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50f273[_0x44b426([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44b426([0x6e,0x61,0x6d,0x65])]:_0x44b426([0x45,0x43,0x44,0x53,0x41]),[_0x44b426([0x68,0x61,0x73,0x68])]:{[_0x44b426([0x6e,0x61,0x6d,0x65])]:_0x44b426([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5415ca,_0x33aad7,_0x3dd615)||(_0x345e2e=!0x1);}}());return _0x3cd7b3?(function(){const _0x13983a=_0x493255[_0x44b426([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x13983a)return!0x1;if(_0x13983a[_0x44b426([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44b426([0x2a])))return!0x0;if(_0x13983a[_0x44b426([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44b426([0x54,0x4f,0x43])))return!0x0;if(_0x13983a[_0x44b426([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44b426([0x50,0x50])))return!0x0;if(_0x13983a[_0x44b426([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44b426([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x44b426([0x67,0x6c,0x6f,0x62])]&&window[_0x44b426([0x67,0x6c,0x6f,0x62])][_0x44b426([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x15de63=[_0x44b426([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44b426([0x74,0x72,0x69,0x61,0x6c])][_0x44b426([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x493255[_0x44b426([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59c768/0x3e8:0x69d59a80;return _0x493255[_0x44b426([0x65,0x78,0x70])]<_0x15de63;}())?_0x44b426([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xc827ea=_0x493255[_0x44b426([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc827ea||0x0==_0xc827ea[_0x44b426([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a106c}=new URL(window[_0x44b426([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc827ea[_0x44b426([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a106c))return!0x0;const _0x2a6ec9=_0x5a106c[_0x44b426([0x73,0x70,0x6c,0x69,0x74])](_0x44b426([0x2e]));return _0xc827ea[_0x44b426([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e1f35=>_0x5e1f35[_0x44b426([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44b426([0x2a])))[_0x44b426([0x6d,0x61,0x70])](_0x4f3da5=>_0x4f3da5[_0x44b426([0x73,0x70,0x6c,0x69,0x74])](_0x44b426([0x2e])))[_0x44b426([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18c27a=>_0x18c27a[_0x44b426([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a6ec9[_0x44b426([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44b426([0x6d,0x61,0x70])](_0x786b29=>Array(_0x2a6ec9[_0x44b426([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x786b29[_0x44b426([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44b426([0x66,0x69,0x6c,0x6c])](_0x786b29[0x0]===_0x44b426([0x2a])?_0x44b426([0x2a]):'')[_0x44b426([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x786b29))[_0x44b426([0x73,0x6f,0x6d,0x65])](_0x582999=>_0x2a6ec9[_0x44b426([0x65,0x76,0x65,0x72,0x79])]((_0x15faf8,_0x17469b)=>_0x582999[_0x17469b]===_0x15faf8||_0x582999[_0x17469b]===_0x44b426([0x2a])));}())?(_0x493255[_0x44b426([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44b426([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e5f95=function(_0x1da7c8){const _0x4f62f0=new window[(_0x44b426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2aec9e=>setTimeout(_0x2aec9e,0x93ecc)),_0x2a88d3=_0x30a4c8[_0x44b426([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44b426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdb5142=>{let _0x20094f=0x0;_0x104bca[_0x44b426([0x6d,0x6f,0x64,0x65,0x6c])][_0x44b426([0x6f,0x6e])](_0x44b426([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5685ce,_0x68ecca)=>{_0x68ecca[0x0][_0x44b426([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x20094f++,0x5e8==_0x20094f&&(_0xdb5142(),_0x5685ce[_0x44b426([0x6f,0x66,0x66])]());});})),_0x79e08a=[_0x4f62f0,_0x2a88d3];return window[_0x44b426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44b426([0x72,0x61,0x63,0x65])](_0x79e08a)[_0x44b426([0x74,0x68,0x65,0x6e])](()=>_0x1da7c8);}(_0x44b426([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x1e5f95&&_0x22dd93)return new window[(_0x44b426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x536896,_0x58cc44)=>{_0x1e5f95[_0x44b426([0x74,0x68,0x65,0x6e])](_0x536896,_0x58cc44),_0x22dd93[_0x44b426([0x74,0x68,0x65,0x6e])](_0x10620f=>{_0x10620f!=_0x44b426([0x56,0x61,0x6c,0x69,0x64])&&_0x536896(_0x10620f);},_0x58cc44);});return _0x1e5f95||_0x22dd93||_0x44b426([0x56,0x61,0x6c,0x69,0x64]);}())):_0x44b426([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44b426([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44b426([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x44b426([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x1a8969(_0x427e84){return _0x427e84[_0x44b426([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44b426([0x65,0x79]))?JSON[_0x44b426([0x70,0x61,0x72,0x73,0x65])](_0x419252(_0x427e84)):null;}function _0x419252(_0x3a9c28){return window[_0x44b426([0x61,0x74,0x6f,0x62])](_0x3a9c28[_0x44b426([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44b426([0x2b]))[_0x44b426([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44b426([0x2f])));}function _0x7ab8e5(_0x306b07){let _0x3ed9ee=0x1505;function _0x182207(_0x46a222){for(let _0x140c43=0x0;_0x140c43<_0x46a222[_0x44b426([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x140c43++){const _0x3eaf5c=_0x46a222[_0x44b426([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x140c43);_0x3ed9ee=(_0x3ed9ee<<0x5)+_0x3ed9ee+_0x3eaf5c,_0x3ed9ee&=_0x3ed9ee;}}return function _0xe4eb3f(_0x54a697){Array[_0x44b426([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54a697)?_0x54a697[_0x44b426([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe4eb3f):_0x54a697&&typeof _0x54a697==_0x44b426([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44b426([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54a697)[_0x44b426([0x73,0x6f,0x72,0x74])]()[_0x44b426([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30bd02,_0x439b3d])=>{_0x182207(_0x30bd02),_0xe4eb3f(_0x439b3d);}):_0x182207(window[_0x44b426([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54a697));}(_0x306b07),_0x3ed9ee>>>0x0;}function _0x306aab(_0x1a149b){return _0x1a149b[_0x44b426([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44b426([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44b426([0x30]));}function _0x4eb33a(_0xc9024){return _0xc9024[_0x44b426([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44b426([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44b426([0x6a,0x6f,0x69,0x6e])]('');}function _0x40e969(){}function _0x44b426(_0x2b3079){return _0x2b3079['map'](_0x3e0be9=>String['fromCharCode'](_0x3e0be9))['join']('');}!function(_0x1aa13e){const _0x10e89b=(function(){const _0x36c492=window[_0x44b426([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44b426([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44b426([0x6e,0x6f,0x77])]())[_0x44b426([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44b426([0x2e]),'');let _0x140993=_0x44b426([0x6d]);for(let _0x5f362a=0x0;_0x5f362a<_0x36c492[_0x44b426([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f362a+=0x2){let _0x16c22b=window[_0x44b426([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36c492[_0x44b426([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f362a,_0x5f362a+0x2));_0x16c22b>=_0xb8ad04[_0x44b426([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16c22b-=_0xb8ad04[_0x44b426([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x140993+=_0xb8ad04[_0x16c22b];}return _0x140993;}());_0x104bca[_0x10e89b]=_0x44b426([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])+_0x1aa13e,_0x1aa13e!=_0x44b426([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x30a4c8,_0x104bca[_0x44b426([0x6d,0x6f,0x64,0x65,0x6c])][_0x44b426([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x40e969,_0x104bca[_0x44b426([0x6d,0x6f,0x64,0x65,0x6c])][_0x44b426([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x40e969,_0x104bca[_0x44b426([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44b426([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x2d1aaf);}class TableOfContentsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x8a8cb0=this['editor'];_0x8a8cb0['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x1b53af=this['_createButton'](ButtonView);return _0x1b53af['tooltip']=!0x0,_0x1b53af;}),_0x8a8cb0['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x6e5adf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x346b7d;for(const _0x25fbfd in _0x6e5adf){const _0x4ea9be=_0x25fbfd,_0x45a1cc=_0x6e5adf[_0x4ea9be];if('tableOfContentsLicenseKeyValid'==_0x45a1cc||'tableOfContentsLicenseKeyInvalid'==_0x45a1cc||'tableOfContentsLicenseKeyExpired'==_0x45a1cc||'tableOfContentsLicenseKeyDomainLimit'==_0x45a1cc||'tableOfContentsLicenseKeyNotAllowed'==_0x45a1cc||'tableOfContentsLicenseKeyEvaluationLimit'==_0x45a1cc||'tableOfContentsLicenseKeyUsageLimit'==_0x45a1cc){delete _0x6e5adf[_0x4ea9be],_0x346b7d=_0x45a1cc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x346b7d&&_0x6e5adf['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x346b7d&&_0x6e5adf['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x346b7d&&_0x6e5adf['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x346b7d&&_0x6e5adf['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x346b7d&&_0x6e5adf['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x346b7d&&_0x6e5adf['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x138d95){const _0x179254=this['editor'],_0x2a011d=_0x179254['locale'],_0x7344dd=_0x179254['commands']['get']('insertTableOfContents'),_0x1b470f=new _0x138d95(_0x2a011d);return _0x1b470f['set']({'label':getTranslation$e(_0x2a011d,'Table\x20of\x20contents'),'icon':IconTableOfContents}),_0x1b470f['bind']('isEnabled')['to'](_0x7344dd,'isEnabled'),this['listenTo'](_0x1b470f,'execute',()=>{_0x179254['execute']('insertTableOfContents'),_0x179254['editing']['view']['focus']();}),_0x1b470f;}['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(_0x1957f8){super(_0x1957f8),_0x1957f8['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){checkLicense$e(this);}['_logSuppressibleWarning'](_0x57831f,_0x543a4f){if(this['_isSuppressedLog'](_0x57831f,_0x543a4f))return;const _0x494177=BASE_DOCUMENTATION_URL+'/support/error-codes.html#error-'+_0x57831f;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x57831f,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x543a4f?[_0x543a4f]:[],'\x0aRead\x20more:\x20'+_0x494177);}['_logSuppressibleInfo'](_0x67d4c9,_0x53d7a5,_0x443b35){if(this['_isSuppressedLog'](_0x67d4c9))return;let _0x3336fa=_0x53d7a5;_0x443b35&&(_0x3336fa+='\x0aRead\x20more:\x20'+(BASE_DOCUMENTATION_URL+'/'+_0x443b35)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x67d4c9,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x3336fa);}['_checkUnsupportedPlugin'](_0x40b1bc,_0x21fa0f){this['editor']['plugins']['has'](_0x40b1bc)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x40b1bc,..._0x21fa0f});}['_validateConfigColorValue'](_0x47d8bf){const _0x3616ce=this['editor']['config']['get'](_0x47d8bf);if(!_0x3616ce)return;const _0x4f9ddb=Array['isArray'](_0x3616ce),_0x1a8202=_0x4f9ddb?_0x3616ce:[_0x3616ce];for(const [_0x3a9053,_0x39c15e]of _0x1a8202['entries']()){const _0x579c3b='string'==typeof _0x39c15e?_0x39c15e:_0x39c15e['color'];isUnsupportedEmailColorValue(_0x579c3b)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x4f9ddb?_0x47d8bf+'['+_0x3a9053+']':_0x47d8bf,'color':_0x579c3b});}}['_validateConfigColorFormat'](_0xd9ec9c){const _0x181eca=this['editor']['config']['get'](_0xd9ec9c);_0x181eca&&isUnsupportedEmailColorFormat(_0x181eca)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0xd9ec9c,'format':_0x181eca});}['_isSuppressedLog'](_0x19f5f2,_0x52f2a0){const _0x47953f=this['editor']['config']['get']('email.logs');return!!_0x47953f['suppressAll']||(!('function'!=typeof _0x47953f['suppress']||!_0x47953f['suppress'](_0x19f5f2,_0x52f2a0))||!(!Array['isArray'](_0x47953f['suppress'])||!_0x47953f['suppress']['includes'](_0x19f5f2)));}}const UNSUPPORTED_COLOR_FORMATS=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function isUnsupportedEmailColorValue(_0xe187a8){return!!_0xe187a8&&UNSUPPORTED_COLOR_FORMATS['some'](_0x45c42c=>_0xe187a8['includes'](_0x45c42c+'('));}function isUnsupportedEmailColorFormat(_0x49bda9){return!!_0x49bda9&&UNSUPPORTED_COLOR_FORMATS['includes'](_0x49bda9);}async function checkLicense$e(_0x4c10f7){const _0x43ef7f=_0x206c80([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]),_0x4caba1=window[_0x206c80([0x44,0x61,0x74,0x65])][_0x206c80([0x6e,0x6f,0x77])](),_0x4bd5c7=_0x4c10f7[_0x206c80([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b8764=new window[(_0x206c80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b1b6e=>{_0x4bd5c7[_0x206c80([0x6f,0x6e,0x63,0x65])](_0x206c80([0x72,0x65,0x61,0x64,0x79]),_0x2b1b6e);}),_0x461a78={[_0x206c80([0x6b,0x74,0x79])]:_0x206c80([0x45,0x43]),[_0x206c80([0x75,0x73,0x65])]:_0x206c80([0x73,0x69,0x67]),[_0x206c80([0x63,0x72,0x76])]:_0x206c80([0x50,0x2d,0x32,0x35,0x36]),[_0x206c80([0x78])]:_0x206c80([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]),[_0x206c80([0x79])]:_0x206c80([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]),[_0x206c80([0x61,0x6c,0x67])]:_0x206c80([0x45,0x53,0x32,0x35,0x36])},_0x321d87=_0x4bd5c7[_0x206c80([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x206c80([0x67,0x65,0x74])](_0x206c80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4684c0=await(async function(){let _0x34e0a6,_0x2315b3=null,_0x45dba7=null;try{if(_0x321d87==_0x206c80([0x47,0x50,0x4c]))return _0x206c80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34e0a6=(function(){const _0xfc7a69=_0x321d87[_0x206c80([0x73,0x70,0x6c,0x69,0x74])](_0x206c80([0x2e]));if(0x3!=_0xfc7a69[_0x206c80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x44f39a=_0xfc7a69[0x1];return _0x285b95(_0x44f39a);function _0x285b95(_0x146213){const _0x333c23=_0x240f88(_0x146213);return _0x333c23&&_0x5849b5()?_0x333c23:null;function _0x5849b5(){const _0x249caa=_0x333c23[_0x206c80([0x6a,0x74,0x69])],_0x30fdf7=window[_0x206c80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x249caa[_0x206c80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x249caa[_0x206c80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x113351={..._0x333c23,[_0x206c80([0x6a,0x74,0x69])]:_0x249caa[_0x206c80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x249caa[_0x206c80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x113351[_0x206c80([0x76,0x63])],_0x1eda55(_0x113351)==_0x30fdf7;}}}()),!_0x34e0a6)return _0x206c80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x34e0a6[_0x206c80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45dba7=function(_0x51fe24,_0x3452b2){return new window[(_0x206c80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8393=>{if(_0x5cfd8c())return _0x3e8393(_0x206c80([0x56,0x61,0x6c,0x69,0x64]));_0x442198(),_0x4bd5c7[_0x206c80([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x206c80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x70d910=!0x1;const _0x415b7f=uid();function _0x55f219(_0x2164c8){return!!_0x2164c8&&(typeof _0x2164c8===_0x206c80([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2164c8===_0x206c80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2164c8[_0x206c80([0x74,0x68,0x65,0x6e])]===_0x206c80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2164c8[_0x206c80([0x63,0x61,0x74,0x63,0x68])]===_0x206c80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32cc01(_0x4cc16f){_0x452ffc(_0x4cc16f)[_0x206c80([0x74,0x68,0x65,0x6e])](_0x257bcc=>{if(!_0x257bcc||_0x257bcc[_0x206c80([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x206c80([0x6f,0x6b]))return _0x206c80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14f97e(_0x1eda55(_0x415b7f+_0x3452b2))!=_0x257bcc[_0x206c80([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x206c80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x206c80([0x56,0x61,0x6c,0x69,0x64]);})[_0x206c80([0x74,0x68,0x65,0x6e])](_0x226a32=>(_0x5fa7d1(),_0x226a32),()=>{const _0x594f4a=_0x1a4aaa();return null==_0x594f4a?(_0x5fa7d1(),_0x206c80([0x56,0x61,0x6c,0x69,0x64])):_0x206c80(_0x4caba1-_0x594f4a>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x206c80([0x74,0x68,0x65,0x6e])](_0x3e8393)[_0x206c80([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e8393(_0x206c80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ea954=0x36ee80;function _0x5fa7d1(){const _0x9409c=_0x206c80([0x6c,0x6c,0x63,0x74,0x2d])+_0x14f97e(_0x1eda55(_0x51fe24)),_0x5dc1e4=_0x393a06(_0x14f97e(window[_0x206c80([0x4d,0x61,0x74,0x68])][_0x206c80([0x63,0x65,0x69,0x6c])](_0x4caba1/_0x2ea954)));window[_0x206c80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x206c80([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9409c,_0x5dc1e4);}function _0x1a4aaa(){const _0x445c96=_0x206c80([0x6c,0x6c,0x63,0x74,0x2d])+_0x14f97e(_0x1eda55(_0x51fe24)),_0x20f585=window[_0x206c80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x206c80([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x445c96);return _0x20f585?window[_0x206c80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x393a06(_0x20f585),0x10)*_0x2ea954:null;}function _0x452ffc(_0x4a4b81){return new window[(_0x206c80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1110ff,_0x5288ff)=>{_0x4a4b81[_0x206c80([0x74,0x68,0x65,0x6e])](_0x1110ff,_0x5288ff),window[_0x206c80([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5288ff,0x1d4c0);});}}_0x4bd5c7[_0x206c80([0x6f,0x6e])](_0x206c80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59ef0f,_0x1eb497)=>{if(_0x1eb497[0x0]!=_0x51fe24)return _0x3e8393(_0x206c80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1eb497[0x1]={..._0x1eb497[0x1],[_0x206c80([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x415b7f};},{[_0x206c80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x206c80([0x68,0x69,0x67,0x68])}),_0x4bd5c7[_0x206c80([0x6f,0x6e])](_0x206c80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x300b0f=>{_0x55f219(_0x300b0f[_0x206c80([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x70d910=!0x0,_0x32cc01(_0x300b0f[_0x206c80([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x206c80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x206c80([0x6c,0x6f,0x77])}),_0x5b8764[_0x206c80([0x74,0x68,0x65,0x6e])](()=>{_0x70d910||_0x3e8393(_0x206c80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cfd8c(){return _0x4bd5c7[_0x206c80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x206c80([0x76,0x69,0x65,0x77])][_0x206c80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x206c80([0x61,0x75,0x74,0x6f]);}function _0x442198(){_0x4bd5c7[_0x206c80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x206c80([0x76,0x69,0x65,0x77])][_0x206c80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x206c80([0x61,0x75,0x74,0x6f]);}}(_0x34e0a6[_0x206c80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34e0a6[_0x206c80([0x6a,0x74,0x69])]));const _0x236490=await(async function(){let _0x7ca6fc=!0x0;try{const _0x5b051d=_0x321d87[_0x206c80([0x73,0x70,0x6c,0x69,0x74])](_0x206c80([0x2e])),[_0x42951a,_0x4b7f8c,_0x4fb315]=_0x5b051d;return _0x3e2262(_0x42951a),await _0x1bc838(_0x42951a,_0x4b7f8c,_0x4fb315),_0x7ca6fc;}catch{return!0x1;}function _0x3e2262(_0x1733ea){const _0x40df6c=_0x240f88(_0x1733ea);_0x40df6c&&_0x40df6c[_0x206c80([0x61,0x6c,0x67])]==_0x206c80([0x45,0x53,0x32,0x35,0x36])||(_0x7ca6fc=!0x1);}async function _0x1bc838(_0x29dafd,_0x274b89,_0x4b5797){const _0x431145=window[_0x206c80([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x206c80([0x66,0x72,0x6f,0x6d])](_0xb12988(_0x4b5797),_0x379820=>_0x379820[_0x206c80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c4ef9=new window[(_0x206c80([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x206c80([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x29dafd+_0x206c80([0x2e])+_0x274b89),_0x5846e9=window[_0x206c80([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x206c80([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5846e9)return;const _0x49cfee=await _0x5846e9[_0x206c80([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x206c80([0x6a,0x77,0x6b]),_0x461a78,{[_0x206c80([0x6e,0x61,0x6d,0x65])]:_0x206c80([0x45,0x43,0x44,0x53,0x41]),[_0x206c80([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x206c80([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x206c80([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5846e9[_0x206c80([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x206c80([0x6e,0x61,0x6d,0x65])]:_0x206c80([0x45,0x43,0x44,0x53,0x41]),[_0x206c80([0x68,0x61,0x73,0x68])]:{[_0x206c80([0x6e,0x61,0x6d,0x65])]:_0x206c80([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49cfee,_0x431145,_0x4c4ef9)||(_0x7ca6fc=!0x1);}}());return _0x236490?(function(){const _0x294af9=_0x34e0a6[_0x206c80([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x294af9)return!0x1;if(_0x294af9[_0x206c80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x206c80([0x2a])))return!0x0;if(_0x294af9[_0x206c80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x206c80([0x45,0x43,0x48])))return!0x0;return!0x1;}())?(function(){const _0x16e60c=[_0x206c80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x206c80([0x74,0x72,0x69,0x61,0x6c])][_0x206c80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34e0a6[_0x206c80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4caba1/0x3e8:0x69d59a80;return _0x34e0a6[_0x206c80([0x65,0x78,0x70])]<_0x16e60c;}())?_0x206c80([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xe4b1b9=_0x34e0a6[_0x206c80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe4b1b9||0x0==_0xe4b1b9[_0x206c80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1821e5}=new URL(window[_0x206c80([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe4b1b9[_0x206c80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1821e5))return!0x0;const _0x29dedd=_0x1821e5[_0x206c80([0x73,0x70,0x6c,0x69,0x74])](_0x206c80([0x2e]));return _0xe4b1b9[_0x206c80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d8574=>_0x3d8574[_0x206c80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x206c80([0x2a])))[_0x206c80([0x6d,0x61,0x70])](_0x4dd084=>_0x4dd084[_0x206c80([0x73,0x70,0x6c,0x69,0x74])](_0x206c80([0x2e])))[_0x206c80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43de94=>_0x43de94[_0x206c80([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x29dedd[_0x206c80([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x206c80([0x6d,0x61,0x70])](_0x52c84c=>Array(_0x29dedd[_0x206c80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x52c84c[_0x206c80([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x206c80([0x66,0x69,0x6c,0x6c])](_0x52c84c[0x0]===_0x206c80([0x2a])?_0x206c80([0x2a]):'')[_0x206c80([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x52c84c))[_0x206c80([0x73,0x6f,0x6d,0x65])](_0x485ba1=>_0x29dedd[_0x206c80([0x65,0x76,0x65,0x72,0x79])]((_0x547e7c,_0x3c0c92)=>_0x485ba1[_0x3c0c92]===_0x547e7c||_0x485ba1[_0x3c0c92]===_0x206c80([0x2a])));}())?(_0x34e0a6[_0x206c80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x206c80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2315b3=function(_0x4919ce){const _0x888d=new window[(_0x206c80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a4a25=>setTimeout(_0x2a4a25,0x93ecc)),_0x4f22e8=_0x5b8764[_0x206c80([0x74,0x68,0x65,0x6e])](()=>new window[(_0x206c80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10e8b2=>{let _0x88903a=0x0;_0x4bd5c7[_0x206c80([0x6d,0x6f,0x64,0x65,0x6c])][_0x206c80([0x6f,0x6e])](_0x206c80([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x46947c,_0x1ed9ae)=>{_0x1ed9ae[0x0][_0x206c80([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x88903a++,0x5e8==_0x88903a&&(_0x10e8b2(),_0x46947c[_0x206c80([0x6f,0x66,0x66])]());});})),_0x30c27a=[_0x888d,_0x4f22e8];return window[_0x206c80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x206c80([0x72,0x61,0x63,0x65])](_0x30c27a)[_0x206c80([0x74,0x68,0x65,0x6e])](()=>_0x4919ce);}(_0x206c80([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2315b3&&_0x45dba7)return new window[(_0x206c80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14a7aa,_0x391bed)=>{_0x2315b3[_0x206c80([0x74,0x68,0x65,0x6e])](_0x14a7aa,_0x391bed),_0x45dba7[_0x206c80([0x74,0x68,0x65,0x6e])](_0x2d02de=>{_0x2d02de!=_0x206c80([0x56,0x61,0x6c,0x69,0x64])&&_0x14a7aa(_0x2d02de);},_0x391bed);});return _0x2315b3||_0x45dba7||_0x206c80([0x56,0x61,0x6c,0x69,0x64]);}())):_0x206c80([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x206c80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x206c80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x206c80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x240f88(_0x23303b){return _0x23303b[_0x206c80([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x206c80([0x65,0x79]))?JSON[_0x206c80([0x70,0x61,0x72,0x73,0x65])](_0xb12988(_0x23303b)):null;}function _0xb12988(_0xb9487){return window[_0x206c80([0x61,0x74,0x6f,0x62])](_0xb9487[_0x206c80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x206c80([0x2b]))[_0x206c80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x206c80([0x2f])));}function _0x1eda55(_0x461e0a){let _0x41186b=0x1505;function _0x12f8d0(_0xd74c2d){for(let _0x50b5b1=0x0;_0x50b5b1<_0xd74c2d[_0x206c80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50b5b1++){const _0x3e4ae2=_0xd74c2d[_0x206c80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50b5b1);_0x41186b=(_0x41186b<<0x5)+_0x41186b+_0x3e4ae2,_0x41186b&=_0x41186b;}}return function _0x50dc7b(_0x2bc4a3){Array[_0x206c80([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bc4a3)?_0x2bc4a3[_0x206c80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50dc7b):_0x2bc4a3&&typeof _0x2bc4a3==_0x206c80([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x206c80([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bc4a3)[_0x206c80([0x73,0x6f,0x72,0x74])]()[_0x206c80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xdb401d,_0x557425])=>{_0x12f8d0(_0xdb401d),_0x50dc7b(_0x557425);}):_0x12f8d0(window[_0x206c80([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bc4a3));}(_0x461e0a),_0x41186b>>>0x0;}function _0x14f97e(_0x2404bd){return _0x2404bd[_0x206c80([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x206c80([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x206c80([0x30]));}function _0x393a06(_0xfc4ed2){return _0xfc4ed2[_0x206c80([0x73,0x70,0x6c,0x69,0x74])]('')[_0x206c80([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x206c80([0x6a,0x6f,0x69,0x6e])]('');}function _0xcfc0c(){}function _0x206c80(_0x176feb){return _0x176feb['map'](_0x57cefc=>String['fromCharCode'](_0x57cefc))['join']('');}!function(_0x4677a8){const _0x4925e9=(function(){const _0x47f40b=window[_0x206c80([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x206c80([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x206c80([0x6e,0x6f,0x77])]())[_0x206c80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x206c80([0x2e]),'');let _0xd63167=_0x206c80([0x75]);for(let _0x301cc0=0x0;_0x301cc0<_0x47f40b[_0x206c80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x301cc0+=0x2){let _0x3128b8=window[_0x206c80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47f40b[_0x206c80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x301cc0,_0x301cc0+0x2));_0x3128b8>=_0x43ef7f[_0x206c80([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3128b8-=_0x43ef7f[_0x206c80([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd63167+=_0x43ef7f[_0x3128b8];}return _0xd63167;}());_0x4bd5c7[_0x4925e9]=_0x206c80([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])+_0x4677a8,_0x4677a8!=_0x206c80([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x5b8764,_0x4bd5c7[_0x206c80([0x6d,0x6f,0x64,0x65,0x6c])][_0x206c80([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xcfc0c,_0x4bd5c7[_0x206c80([0x6d,0x6f,0x64,0x65,0x6c])][_0x206c80([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xcfc0c,_0x4bd5c7[_0x206c80([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x206c80([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4684c0);}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(_0x33b637){var _0x534805,_0x39531e,_0x290826,_0x1373a1,_0x432b09=[];for(_0x290826=0x0,_0x1373a1=(_0x534805=_0x33b637['split'](','))['length'];_0x290826<_0x1373a1;_0x290826+=0x1)(_0x39531e=_0x534805[_0x290826])['length']>0x0&&_0x432b09['push'](calculateSingle(_0x39531e));return _0x432b09;},calculateSingle=function(_0x35a382){var _0x179f3a,_0x20a713,_0xa669e2=_0x35a382,_0x161966={'a':0x0,'b':0x0,'c':0x0},_0x7d93fc=[];return _0x179f3a=function(_0x3f0785,_0xeb15f1){var _0x47f1de,_0x559747,_0x417ac3,_0xeec71d,_0x57bff8,_0x12f05e;if(_0x3f0785['test'](_0xa669e2)){for(_0x559747=0x0,_0x417ac3=(_0x47f1de=_0xa669e2['match'](_0x3f0785))['length'];_0x559747<_0x417ac3;_0x559747+=0x1)_0x161966[_0xeb15f1]+=0x1,_0xeec71d=_0x47f1de[_0x559747],_0x57bff8=_0xa669e2['indexOf'](_0xeec71d),_0x12f05e=_0xeec71d['length'],_0x7d93fc['push']({'selector':_0x35a382['substr'](_0x57bff8,_0x12f05e),'type':_0xeb15f1,'index':_0x57bff8,'length':_0x12f05e}),_0xa669e2=_0xa669e2['replace'](_0xeec71d,Array(_0x12f05e+0x1)['join']('\x20'));}},_0x20a713=function(_0x558f94){var _0x2592ba,_0x108a65,_0x4e8cd6,_0x35c7c6;if(_0x558f94['test'](_0xa669e2)){for(_0x108a65=0x0,_0x4e8cd6=(_0x2592ba=_0xa669e2['match'](_0x558f94))['length'];_0x108a65<_0x4e8cd6;_0x108a65+=0x1)_0x35c7c6=_0x2592ba[_0x108a65],_0xa669e2=_0xa669e2['replace'](_0x35c7c6,Array(_0x35c7c6['length']+0x1)['join']('A'));}},_0x20a713(/\\[0-9A-Fa-f]{6}\s?/g),_0x20a713(/\\[0-9A-Fa-f]{1,5}\s/g),_0x20a713(/\\./g),(function(){var _0x3f036b,_0x5a45b5,_0x45c1be,_0x32c62a,_0x17aa13=/{[^]*/gm;if(_0x17aa13['test'](_0xa669e2)){for(_0x5a45b5=0x0,_0x45c1be=(_0x3f036b=_0xa669e2['match'](_0x17aa13))['length'];_0x5a45b5<_0x45c1be;_0x5a45b5+=0x1)_0x32c62a=_0x3f036b[_0x5a45b5],_0xa669e2=_0xa669e2['replace'](_0x32c62a,Array(_0x32c62a['length']+0x1)['join']('\x20'));}}()),_0x179f3a(/(\[[^\]]+\])/g,'b'),_0x179f3a(/(#[^\#\s\+>~\.\[:\)]+)/g,'a'),_0x179f3a(/(\.[^\s\+>~\.\[:\)]+)/g,'b'),_0x179f3a(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,'c'),_0x179f3a(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,'b'),_0x179f3a(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,'b'),_0xa669e2=(_0xa669e2=(_0xa669e2=(_0xa669e2=(_0xa669e2=(_0xa669e2=_0xa669e2['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'),_0x179f3a(/([^\s\+>~\.\[:]+)/g,'c'),_0x7d93fc['sort'](function(_0x205e18,_0x1f7bf2){return _0x205e18['index']-_0x1f7bf2['index'];}),{'selector':_0x35a382,'specificity':'0,'+_0x161966['a']['toString']()+','+_0x161966['b']['toString']()+','+_0x161966['c']['toString'](),'specificityArray':[0x0,_0x161966['a'],_0x161966['b'],_0x161966['c']],'parts':_0x7d93fc};},compare$1=function(_0x3ff76e,_0x171fa8){var _0x1493e1,_0x5be694,_0x9e268f;if('string'==typeof _0x3ff76e){if(-0x1!==_0x3ff76e['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x1493e1=calculateSingle(_0x3ff76e)['specificityArray'];}else{if(!Array['isArray'](_0x3ff76e))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x3ff76e['filter'](function(_0x371d95){return'number'==typeof _0x371d95;})['length'])throw'Invalid\x20specificity\x20array';_0x1493e1=_0x3ff76e;}if('string'==typeof _0x171fa8){if(-0x1!==_0x171fa8['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x5be694=calculateSingle(_0x171fa8)['specificityArray'];}else{if(!Array['isArray'](_0x171fa8))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x171fa8['filter'](function(_0x593e57){return'number'==typeof _0x593e57;})['length'])throw'Invalid\x20specificity\x20array';_0x5be694=_0x171fa8;}for(_0x9e268f=0x0;_0x9e268f<0x4;_0x9e268f+=0x1){if(_0x1493e1[_0x9e268f]<_0x5be694[_0x9e268f])return-0x1;if(_0x1493e1[_0x9e268f]>_0x5be694[_0x9e268f])return 0x1;}return 0x0;};function splitByTopLevelComma(_0x561f5f){const _0x2b10ce=[];let _0x3c7787='',_0x181b13=0x0;for(;_0x181b13<_0x561f5f['length'];){const _0x80a694=_0x561f5f[_0x181b13];if('('===_0x80a694){const _0x2c3bac=findMatchingParenthesis(_0x561f5f,_0x181b13+0x1);if(-0x1===_0x2c3bac)return[];_0x3c7787+=_0x561f5f['slice'](_0x181b13,_0x2c3bac+0x1),_0x181b13=_0x2c3bac+0x1;}else','!==_0x80a694||_0x3c7787['endsWith']('\x5c')?(_0x3c7787+=_0x80a694,_0x181b13++):(_0x2b10ce['push'](_0x3c7787['trim']()),_0x3c7787='',_0x181b13++);}return _0x3c7787['trim']()&&_0x2b10ce['push'](_0x3c7787['trim']()),_0x2b10ce['filter'](Boolean);}function findMatchingParenthesis(_0x44b6f6,_0x27ab5e){let _0x57646b=0x1;for(let _0xa3636c=_0x27ab5e;_0xa3636c<_0x44b6f6['length'];_0xa3636c++){const _0x314321=_0x44b6f6[_0xa3636c];if('('===_0x314321)_0x57646b++;else{if(')'===_0x314321&&(_0x57646b--,0x0===_0x57646b))return _0xa3636c;}}return-0x1;}function dropImportantStyleSuffix(_0x150ad0){return _0x150ad0['replace'](/!\s*important/i,'')['trim']();}function collectRootStylesheetsVariables(_0x12730a){const _0x2a9308=new Map();for(const {stylesMap:_0x45d02e,flatSelector:_0x3d6664}of _0x12730a){if(':root'!==_0x3d6664)continue;const _0x148319=inlineStylesMapCSSVariables(_0x2a9308['get']['bind'](_0x2a9308),_0x45d02e);for(const [_0x5fce45,_0x192ffb]of _0x148319)_0x2a9308['set'](_0x5fce45,_0x192ffb);}return _0x2a9308;}function inlineStylesMapCSSVariables(_0x2f23cf,_0x4fd52b){const _0xc064bc=new Map(),_0x512bb4=_0x3199b0=>_0xc064bc['has'](_0x3199b0)?_0xc064bc['get'](_0x3199b0):_0x2f23cf(_0x3199b0);for(const [_0x53e0e0,_0x2c22dc]of _0x4fd52b['getStylesEntries']())if(_0x2c22dc&&_0x53e0e0['startsWith']('--')){const _0x33fa3f=inlineCSSVariablesInString(_0x512bb4,_0x2c22dc);_0xc064bc['set'](_0x53e0e0,_0x33fa3f),_0x4fd52b['remove'](_0x53e0e0);}for(const [_0x1dce87,_0x5b695c]of _0x4fd52b['getStylesEntries']())if(_0x5b695c){const _0xcf50aa=inlineCSSVariablesInString(_0x512bb4,_0x5b695c);_0x4fd52b['set'](_0x1dce87,_0xcf50aa);}return _0xc064bc;}function inlineCSSVariablesInString(_0x55c4e4,_0x3c07c7){return resolveCSSVariables(_0x3c07c7,_0xccc916=>{const [_0x5d173d,_0x46d108]=splitByTopLevelComma(_0xccc916),_0x4f53f7=_0x55c4e4(_0x5d173d);return void 0x0!==_0x4f53f7?_0x4f53f7:_0x46d108?inlineCSSVariablesInString(_0x55c4e4,_0x46d108):'var('+_0x5d173d+')';});}function resolveCSSVariables(_0xf659b7,_0x263b67){let _0x335c82='',_0x4a7592=0x0;for(;_0x4a7592<_0xf659b7['length'];){const _0x4e1423=_0xf659b7['indexOf']('var(',_0x4a7592);if(-0x1===_0x4e1423){_0x335c82+=_0xf659b7['slice'](_0x4a7592);break;}_0x335c82+=_0xf659b7['slice'](_0x4a7592,_0x4e1423);const _0x5b1eca=_0x4e1423+0x4,_0x52723a=findMatchingParenthesis(_0xf659b7,_0x5b1eca);_0x335c82+=_0x263b67(_0xf659b7['substring'](_0x5b1eca,_0x52723a)),_0x4a7592=_0x52723a+0x1;}return _0x335c82;}async function collectAndProcessStylesheets(_0x2be840){const _0xdfba83=[await collectStylesheets(_0x2be840['stylesheets']),_0x2be840['inlineCss']]['filter'](_0x1b0fde=>_0x1b0fde&&_0x1b0fde['length'])['join']('\x0a'),_0x423164=await convertRawStylesheetToParsedCSSRules(_0x2be840['stylesProcessor'],_0xdfba83);return{'parsedCssRules':_0x423164,'rootCssVariables':collectRootStylesheetsVariables(_0x423164)};}async function convertRawStylesheetToParsedCSSRules(_0x56caea,_0x5d9d34){const _0x32e7f8=new CSSStyleSheet();return await _0x32e7f8['replace'](_0x5d9d34),dropCSSNesting(Array['from'](_0x32e7f8['cssRules'])['filter'](_0x1f58a4=>_0x1f58a4 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x20f3a6,contentCssText:_0x151396})=>{const _0x146a85=splitByTopLevelComma(_0x20f3a6),_0x2f3a25=new StylesMap(_0x56caea)['setTo'](_0x151396);return _0x146a85['map'](_0x27f4d9=>{const _0x4f001f=dropWherePseudoClasses(_0x27f4d9),_0x55f64f=_0x4f001f?calculate(_0x4f001f)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x2f3a25,'flatSelector':_0x27f4d9,'specificity':_0x55f64f};});})['sort']((_0x45c958,_0x337d09)=>compare$1(_0x45c958['specificity'],_0x337d09['specificity']));}function dropWherePseudoClasses(_0x35d8fd){const _0x26dd04=':where(';let _0x2d705e=_0x35d8fd,_0x4d73d0=0x0;for(let _0x51f7b9=0x0;_0x51f7b9<0x64;_0x51f7b9++){const _0x3d211f=_0x2d705e['indexOf'](_0x26dd04,_0x4d73d0);if(-0x1===_0x3d211f)break;let _0x3901e3=0x0;for(let _0x1807aa=0x0;_0x1807aa<_0x3d211f;_0x1807aa++)'('===_0x2d705e[_0x1807aa]?_0x3901e3++:')'===_0x2d705e[_0x1807aa]&&_0x3901e3--;if(_0x3901e3>0x0){_0x4d73d0=_0x3d211f+0x7;continue;}let _0x5c5c5f=-0x1;for(let _0x1ded0a=_0x3d211f+0x7,_0x470daa=0x1;_0x1ded0a<_0x2d705e['length'];_0x1ded0a++)if('('===_0x2d705e[_0x1ded0a]?_0x470daa++:')'===_0x2d705e[_0x1ded0a]&&_0x470daa--,!_0x470daa){_0x5c5c5f=_0x1ded0a;break;}-0x1!==_0x5c5c5f?(_0x2d705e=_0x2d705e['slice'](0x0,_0x3d211f)+_0x2d705e['slice'](_0x5c5c5f+0x1),_0x4d73d0=_0x3d211f):_0x4d73d0=_0x3d211f+0x7;}return _0x2d705e['replace'](/\s+/g,'\x20')['trim']();}function dropCSSNesting(_0x257ba4,_0x5a5fbf=''){return _0x257ba4['flatMap'](_0x488af9=>{const {selectorText:_0x4ee5c4,cssText:_0x28f724,cssRules:_0x397634}=_0x488af9;if(!_0x4ee5c4)return[];const _0x35392e=_0x4ee5c4['replace'](/&/g,_0x5a5fbf);let _0x58308d=_0x28f724['replace'](_0x4ee5c4,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x397634||!_0x397634['length'])return[{'selectorText':_0x35392e,'contentCssText':_0x58308d}];for(const _0x504967 of _0x397634)_0x58308d=_0x58308d['replace'](_0x504967['cssText'],'')['trim']();return[{'selectorText':_0x35392e,'contentCssText':_0x58308d},...dropCSSNesting(Array['from'](_0x397634),_0x35392e)];});}function getElementInlineStyles(_0x53ca23){const _0x3d9b6b=_0x53ca23['element']['getAttribute']('style')||'',_0x422b4b=_0x53ca23['parsedCssRules']['filter'](_0x5bff3c=>_0x53ca23['element']['matches'](_0x5bff3c['flatSelector']))['map'](_0x30acb6=>_0x30acb6['stylesMap']),_0x2c6976=concatStylesMaps(_0x53ca23['stylesProcessor'],[..._0x422b4b,_0x3d9b6b]);return{'localCSSVariables':inlineStylesMapCSSVariables(_0x53ca23['fallbackCSSVariablesLookup'],_0x2c6976),'stylesMap':_0x2c6976};}function concatStylesMaps(_0x5f55e3,_0x1b6082){const _0x62fc50=new StylesMap(_0x5f55e3);for(const _0x7c7737 of _0x1b6082){let _0x2f3d8c=null;if(_0x2f3d8c='string'==typeof _0x7c7737?new StylesMap(_0x5f55e3)['setTo'](_0x7c7737):_0x7c7737,_0x2f3d8c){for(const [_0x5bb707,_0x4c2fd9]of _0x2f3d8c['getStylesEntries']())_0x62fc50['set'](_0x5bb707,_0x4c2fd9);}}return _0x62fc50;}class ExportInlineStylesCommand extends Command{['_stylesProcessor'];constructor(_0x4c9c82){super(_0x4c9c82),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'](_0x82f170){const _0x130bef=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x1a1840}=this['editor']['locale'],{rootName:_0x53b44b='main',dataControllerDowncastOptions:_0x2dc0b3={},transformations:_0x4b3fb3=_0x130bef['transformations']||[]}=_0x82f170||{};this['isBusy']=!0x0,this['refresh']();const _0x225ddf=this['_getRootDataHTMLFragment'](_0x53b44b,_0x2dc0b3),_0x4cd40d=createElement(_0x225ddf['ownerDocument'],'div',{'dir':_0x1a1840,'class':'ck-content'},[_0x225ddf]);return this['_collectAndApplyStyles'](_0x4b3fb3,_0x4cd40d)['then'](()=>{const _0x4312a1=extractElementChildrenAsFragment(_0x4cd40d),_0x2bb958=_0x4cd40d['getAttribute']('style');if(_0x2bb958)for(const _0x4b6895 of _0x4312a1['children']){const _0x443a5a=_0x4b6895['getAttribute']('style'),_0x448088=concatStylesMaps(this['_stylesProcessor'],[_0x2bb958,_0x443a5a]);_0x4b6895['setAttribute']('style',dumpNonSortedStylesMap(_0x448088));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x4312a1);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x35014f,_0x1572f0){const {data:_0x107ba5,model:_0x43add4}=this['editor'],_0x5f15e0=_0x43add4['document']['getRoot'](_0x35014f),_0xa0c4e4=_0x107ba5['toView'](_0x5f15e0,_0x1572f0);return _0x107ba5['htmlProcessor']['domConverter']['viewToDom'](_0xa0c4e4);}async['_collectAndApplyStyles'](_0x45d83d,_0x1a53ee){const {stylesheets:_0xa42bcf,inlineCss:_0x4f1032,stripCssClasses:_0x92c99f}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x22cdd0,rootCssVariables:_0x1e4b90}=await collectAndProcessStylesheets({'stylesheets':_0xa42bcf||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x4f1032});this['_processElementTree']({'transformations':_0x45d83d,'parsedCssRules':_0x22cdd0,'element':_0x1a53ee,'stripCssClasses':_0x92c99f,'parentCSSVariablesLookup':_0x1e4b90['get']['bind'](_0x1e4b90)});}['_processElementTree']({element:_0x3829c8,parsedCssRules:_0x38160b,parentCSSVariablesLookup:_0x34b978,stripCssClasses:_0x299c11,transformations:_0x52ae4c}){const {stylesMap:_0x34ac44,localCSSVariables:_0x4fd2e0}=getElementInlineStyles({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x34b978,'parsedCssRules':_0x38160b,'element':_0x3829c8});for(const _0x31a6b1 of _0x52ae4c){const _0x399214=_0x31a6b1(_0x3829c8,_0x34ac44);_0x399214&&_0x399214 instanceof HTMLElement&&(_0x3829c8=_0x399214);}_0x34ac44['size']?_0x3829c8['setAttribute']('style',dumpNonSortedStylesMap(_0x34ac44)):_0x3829c8['removeAttribute']('style');const _0x4ac55e=_0x4b99f7=>_0x4fd2e0['has'](_0x4b99f7)?_0x4fd2e0['get'](_0x4b99f7):_0x34b978(_0x4b99f7);for(const _0x2d092e of _0x3829c8['children'])_0x2d092e instanceof HTMLElement&&this['_processElementTree']({'element':_0x2d092e,'parentCSSVariablesLookup':_0x4ac55e,'parsedCssRules':_0x38160b,'stripCssClasses':_0x299c11,'transformations':_0x52ae4c});_0x299c11&&_0x3829c8['removeAttribute']('class');}}function dumpNonSortedStylesMap(_0x2780d4){return _0x2780d4['getStylesEntries']()['map'](_0x145b8d=>_0x145b8d['join'](':'))['join'](';')+';';}function extractElementChildrenAsFragment(_0x8bb859){const _0xdafe30=_0x8bb859['ownerDocument']['createDocumentFragment']();for(;_0x8bb859['firstChild'];)_0xdafe30['appendChild'](_0x8bb859['firstChild']);return _0xdafe30;}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(_0xce3587){const _0x4da4fe=_0x45d7fd([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]),_0x40d577=window[_0x45d7fd([0x44,0x61,0x74,0x65])][_0x45d7fd([0x6e,0x6f,0x77])](),_0x20a79a=_0xce3587[_0x45d7fd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x49fcdf=new window[(_0x45d7fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1589fe=>{_0x20a79a[_0x45d7fd([0x6f,0x6e,0x63,0x65])](_0x45d7fd([0x72,0x65,0x61,0x64,0x79]),_0x1589fe);}),_0xc8a92={[_0x45d7fd([0x6b,0x74,0x79])]:_0x45d7fd([0x45,0x43]),[_0x45d7fd([0x75,0x73,0x65])]:_0x45d7fd([0x73,0x69,0x67]),[_0x45d7fd([0x63,0x72,0x76])]:_0x45d7fd([0x50,0x2d,0x32,0x35,0x36]),[_0x45d7fd([0x78])]:_0x45d7fd([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]),[_0x45d7fd([0x79])]:_0x45d7fd([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]),[_0x45d7fd([0x61,0x6c,0x67])]:_0x45d7fd([0x45,0x53,0x32,0x35,0x36])},_0x2a8223=_0x20a79a[_0x45d7fd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45d7fd([0x67,0x65,0x74])](_0x45d7fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x145039=await(async function(){let _0x4740c0,_0x30eb3e=null,_0x31e8ad=null;try{if(_0x2a8223==_0x45d7fd([0x47,0x50,0x4c]))return _0x45d7fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4740c0=(function(){const _0x302e89=_0x2a8223[_0x45d7fd([0x73,0x70,0x6c,0x69,0x74])](_0x45d7fd([0x2e]));if(0x3!=_0x302e89[_0x45d7fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x2df0c4=_0x302e89[0x1];return _0x2f3232(_0x2df0c4);function _0x2f3232(_0x58c60f){const _0x42fb09=_0x1b4dac(_0x58c60f);return _0x42fb09&&_0x35b98b()?_0x42fb09:null;function _0x35b98b(){const _0x174347=_0x42fb09[_0x45d7fd([0x6a,0x74,0x69])],_0x214950=window[_0x45d7fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x174347[_0x45d7fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x174347[_0x45d7fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9eeed6={..._0x42fb09,[_0x45d7fd([0x6a,0x74,0x69])]:_0x174347[_0x45d7fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x174347[_0x45d7fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9eeed6[_0x45d7fd([0x76,0x63])],_0x2e6636(_0x9eeed6)==_0x214950;}}}()),!_0x4740c0)return _0x45d7fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4740c0[_0x45d7fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31e8ad=function(_0x1fbf5d,_0x213950){return new window[(_0x45d7fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d3d=>{if(_0x27fb1f())return _0x29d3d(_0x45d7fd([0x56,0x61,0x6c,0x69,0x64]));_0x16b1a2(),_0x20a79a[_0x45d7fd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45d7fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x280269=!0x1;const _0x1a578c=uid();function _0x31a7bf(_0x512cf1){return!!_0x512cf1&&(typeof _0x512cf1===_0x45d7fd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x512cf1===_0x45d7fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x512cf1[_0x45d7fd([0x74,0x68,0x65,0x6e])]===_0x45d7fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x512cf1[_0x45d7fd([0x63,0x61,0x74,0x63,0x68])]===_0x45d7fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51a384(_0x33d1d4){_0x1a7c88(_0x33d1d4)[_0x45d7fd([0x74,0x68,0x65,0x6e])](_0x19c0ae=>{if(!_0x19c0ae||_0x19c0ae[_0x45d7fd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45d7fd([0x6f,0x6b]))return _0x45d7fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17917f(_0x2e6636(_0x1a578c+_0x213950))!=_0x19c0ae[_0x45d7fd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45d7fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45d7fd([0x56,0x61,0x6c,0x69,0x64]);})[_0x45d7fd([0x74,0x68,0x65,0x6e])](_0x335d6d=>(_0x5d3f0e(),_0x335d6d),()=>{const _0x288e8a=_0x1ded95();return null==_0x288e8a?(_0x5d3f0e(),_0x45d7fd([0x56,0x61,0x6c,0x69,0x64])):_0x45d7fd(_0x40d577-_0x288e8a>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45d7fd([0x74,0x68,0x65,0x6e])](_0x29d3d)[_0x45d7fd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29d3d(_0x45d7fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a21f2=0x36ee80;function _0x5d3f0e(){const _0x28a1f9=_0x45d7fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x17917f(_0x2e6636(_0x1fbf5d)),_0x53de91=_0xb81802(_0x17917f(window[_0x45d7fd([0x4d,0x61,0x74,0x68])][_0x45d7fd([0x63,0x65,0x69,0x6c])](_0x40d577/_0x3a21f2)));window[_0x45d7fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45d7fd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28a1f9,_0x53de91);}function _0x1ded95(){const _0x1fdbfb=_0x45d7fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x17917f(_0x2e6636(_0x1fbf5d)),_0x37283f=window[_0x45d7fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45d7fd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fdbfb);return _0x37283f?window[_0x45d7fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb81802(_0x37283f),0x10)*_0x3a21f2:null;}function _0x1a7c88(_0x72acfc){return new window[(_0x45d7fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2885c3,_0x269b8d)=>{_0x72acfc[_0x45d7fd([0x74,0x68,0x65,0x6e])](_0x2885c3,_0x269b8d),window[_0x45d7fd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x269b8d,0x1d4c0);});}}_0x20a79a[_0x45d7fd([0x6f,0x6e])](_0x45d7fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x56eff6,_0xd4ecb0)=>{if(_0xd4ecb0[0x0]!=_0x1fbf5d)return _0x29d3d(_0x45d7fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd4ecb0[0x1]={..._0xd4ecb0[0x1],[_0x45d7fd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a578c};},{[_0x45d7fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45d7fd([0x68,0x69,0x67,0x68])}),_0x20a79a[_0x45d7fd([0x6f,0x6e])](_0x45d7fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x513166=>{_0x31a7bf(_0x513166[_0x45d7fd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x280269=!0x0,_0x51a384(_0x513166[_0x45d7fd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45d7fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45d7fd([0x6c,0x6f,0x77])}),_0x49fcdf[_0x45d7fd([0x74,0x68,0x65,0x6e])](()=>{_0x280269||_0x29d3d(_0x45d7fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27fb1f(){return _0x20a79a[_0x45d7fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45d7fd([0x76,0x69,0x65,0x77])][_0x45d7fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45d7fd([0x61,0x75,0x74,0x6f]);}function _0x16b1a2(){_0x20a79a[_0x45d7fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45d7fd([0x76,0x69,0x65,0x77])][_0x45d7fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45d7fd([0x61,0x75,0x74,0x6f]);}}(_0x4740c0[_0x45d7fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4740c0[_0x45d7fd([0x6a,0x74,0x69])]));const _0x4d05e0=await(async function(){let _0x17f21a=!0x0;try{const _0x31c8f8=_0x2a8223[_0x45d7fd([0x73,0x70,0x6c,0x69,0x74])](_0x45d7fd([0x2e])),[_0x12dc52,_0x4a2cb7,_0xafcc8f]=_0x31c8f8;return _0x3d168a(_0x12dc52),await _0x204f69(_0x12dc52,_0x4a2cb7,_0xafcc8f),_0x17f21a;}catch{return!0x1;}function _0x3d168a(_0x5070e8){const _0x345594=_0x1b4dac(_0x5070e8);_0x345594&&_0x345594[_0x45d7fd([0x61,0x6c,0x67])]==_0x45d7fd([0x45,0x53,0x32,0x35,0x36])||(_0x17f21a=!0x1);}async function _0x204f69(_0x52a5d5,_0xeaf540,_0x4496a0){const _0x309c8f=window[_0x45d7fd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45d7fd([0x66,0x72,0x6f,0x6d])](_0x2f7a96(_0x4496a0),_0x30e3bd=>_0x30e3bd[_0x45d7fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b3fc4=new window[(_0x45d7fd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45d7fd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52a5d5+_0x45d7fd([0x2e])+_0xeaf540),_0x2949c9=window[_0x45d7fd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45d7fd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2949c9)return;const _0x19a315=await _0x2949c9[_0x45d7fd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45d7fd([0x6a,0x77,0x6b]),_0xc8a92,{[_0x45d7fd([0x6e,0x61,0x6d,0x65])]:_0x45d7fd([0x45,0x43,0x44,0x53,0x41]),[_0x45d7fd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45d7fd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45d7fd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2949c9[_0x45d7fd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45d7fd([0x6e,0x61,0x6d,0x65])]:_0x45d7fd([0x45,0x43,0x44,0x53,0x41]),[_0x45d7fd([0x68,0x61,0x73,0x68])]:{[_0x45d7fd([0x6e,0x61,0x6d,0x65])]:_0x45d7fd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19a315,_0x309c8f,_0x2b3fc4)||(_0x17f21a=!0x1);}}());return _0x4d05e0?(function(){const _0x262bd7=_0x4740c0[_0x45d7fd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x262bd7)return!0x1;if(_0x262bd7[_0x45d7fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d7fd([0x2a])))return!0x0;if(_0x262bd7[_0x45d7fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d7fd([0x45,0x49,0x53])))return!0x0;return!0x1;}())?(function(){const _0x466857=[_0x45d7fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45d7fd([0x74,0x72,0x69,0x61,0x6c])][_0x45d7fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4740c0[_0x45d7fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x40d577/0x3e8:0x69d59a80;return _0x4740c0[_0x45d7fd([0x65,0x78,0x70])]<_0x466857;}())?_0x45d7fd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x2acdcc=_0x4740c0[_0x45d7fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2acdcc||0x0==_0x2acdcc[_0x45d7fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x583c97}=new URL(window[_0x45d7fd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2acdcc[_0x45d7fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x583c97))return!0x0;const _0x5f467a=_0x583c97[_0x45d7fd([0x73,0x70,0x6c,0x69,0x74])](_0x45d7fd([0x2e]));return _0x2acdcc[_0x45d7fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fdd95=>_0x3fdd95[_0x45d7fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d7fd([0x2a])))[_0x45d7fd([0x6d,0x61,0x70])](_0x2ef4dd=>_0x2ef4dd[_0x45d7fd([0x73,0x70,0x6c,0x69,0x74])](_0x45d7fd([0x2e])))[_0x45d7fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x101a5f=>_0x101a5f[_0x45d7fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5f467a[_0x45d7fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45d7fd([0x6d,0x61,0x70])](_0x5e89af=>Array(_0x5f467a[_0x45d7fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e89af[_0x45d7fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45d7fd([0x66,0x69,0x6c,0x6c])](_0x5e89af[0x0]===_0x45d7fd([0x2a])?_0x45d7fd([0x2a]):'')[_0x45d7fd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e89af))[_0x45d7fd([0x73,0x6f,0x6d,0x65])](_0x1ff5a=>_0x5f467a[_0x45d7fd([0x65,0x76,0x65,0x72,0x79])]((_0x11f562,_0x2cba3d)=>_0x1ff5a[_0x2cba3d]===_0x11f562||_0x1ff5a[_0x2cba3d]===_0x45d7fd([0x2a])));}())?(_0x4740c0[_0x45d7fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45d7fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30eb3e=function(_0x4871af){const _0x484671=new window[(_0x45d7fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2476cf=>setTimeout(_0x2476cf,0x93ecc)),_0x13d4b=_0x49fcdf[_0x45d7fd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45d7fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x454cf2=>{let _0x5c1b77=0x0;_0x20a79a[_0x45d7fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x45d7fd([0x6f,0x6e])](_0x45d7fd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e58db,_0x3272f2)=>{_0x3272f2[0x0][_0x45d7fd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c1b77++,0x5e8==_0x5c1b77&&(_0x454cf2(),_0x1e58db[_0x45d7fd([0x6f,0x66,0x66])]());});})),_0xc33e85=[_0x484671,_0x13d4b];return window[_0x45d7fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45d7fd([0x72,0x61,0x63,0x65])](_0xc33e85)[_0x45d7fd([0x74,0x68,0x65,0x6e])](()=>_0x4871af);}(_0x45d7fd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x30eb3e&&_0x31e8ad)return new window[(_0x45d7fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c03e2,_0x5545fd)=>{_0x30eb3e[_0x45d7fd([0x74,0x68,0x65,0x6e])](_0x5c03e2,_0x5545fd),_0x31e8ad[_0x45d7fd([0x74,0x68,0x65,0x6e])](_0x49232f=>{_0x49232f!=_0x45d7fd([0x56,0x61,0x6c,0x69,0x64])&&_0x5c03e2(_0x49232f);},_0x5545fd);});return _0x30eb3e||_0x31e8ad||_0x45d7fd([0x56,0x61,0x6c,0x69,0x64]);}())):_0x45d7fd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45d7fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45d7fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x45d7fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x1b4dac(_0x126acd){return _0x126acd[_0x45d7fd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45d7fd([0x65,0x79]))?JSON[_0x45d7fd([0x70,0x61,0x72,0x73,0x65])](_0x2f7a96(_0x126acd)):null;}function _0x2f7a96(_0x59a583){return window[_0x45d7fd([0x61,0x74,0x6f,0x62])](_0x59a583[_0x45d7fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45d7fd([0x2b]))[_0x45d7fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45d7fd([0x2f])));}function _0x2e6636(_0x978bac){let _0x48d092=0x1505;function _0x55c2ca(_0x51a5cf){for(let _0x3b56f2=0x0;_0x3b56f2<_0x51a5cf[_0x45d7fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b56f2++){const _0x5cf661=_0x51a5cf[_0x45d7fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b56f2);_0x48d092=(_0x48d092<<0x5)+_0x48d092+_0x5cf661,_0x48d092&=_0x48d092;}}return function _0x280663(_0x2b3264){Array[_0x45d7fd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b3264)?_0x2b3264[_0x45d7fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x280663):_0x2b3264&&typeof _0x2b3264==_0x45d7fd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45d7fd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b3264)[_0x45d7fd([0x73,0x6f,0x72,0x74])]()[_0x45d7fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3359b0,_0x463535])=>{_0x55c2ca(_0x3359b0),_0x280663(_0x463535);}):_0x55c2ca(window[_0x45d7fd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b3264));}(_0x978bac),_0x48d092>>>0x0;}function _0x17917f(_0x5a4280){return _0x5a4280[_0x45d7fd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45d7fd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45d7fd([0x30]));}function _0xb81802(_0x229baa){return _0x229baa[_0x45d7fd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45d7fd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45d7fd([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c7944(){}function _0x45d7fd(_0x4f2326){return _0x4f2326['map'](_0x311e32=>String['fromCharCode'](_0x311e32))['join']('');}!function(_0x50ce72){const _0xc6a372=(function(){const _0x33cefd=window[_0x45d7fd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45d7fd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45d7fd([0x6e,0x6f,0x77])]())[_0x45d7fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45d7fd([0x2e]),'');let _0x4ca988=_0x45d7fd([0x44]);for(let _0xa7892d=0x0;_0xa7892d<_0x33cefd[_0x45d7fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa7892d+=0x2){let _0x4ca145=window[_0x45d7fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33cefd[_0x45d7fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa7892d,_0xa7892d+0x2));_0x4ca145>=_0x4da4fe[_0x45d7fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ca145-=_0x4da4fe[_0x45d7fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ca988+=_0x4da4fe[_0x4ca145];}return _0x4ca988;}());_0x20a79a[_0xc6a372]=_0x45d7fd([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])+_0x50ce72,_0x50ce72!=_0x45d7fd([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x49fcdf;const _0x4f82b4=_0x20a79a['commands'][_0x45d7fd([0x67,0x65,0x74])](_0x45d7fd([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x4f82b4&&_0x4f82b4[_0x45d7fd([0x6f,0x6e])](_0x45d7fd([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x3023ba=>{_0x3023ba['stop']();},{'priority':_0x45d7fd([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),(_0x20a79a[_0x45d7fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x45d7fd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c7944,_0x20a79a[_0x45d7fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x45d7fd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c7944,_0x20a79a[_0x45d7fd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45d7fd([0x6d,0x6f,0x64,0x65,0x6c])));}());}(_0x145039);}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 _0x4a55ad=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6db195;for(const _0x160c55 in _0x4a55ad){const _0x303a87=_0x160c55,_0x34f266=_0x4a55ad[_0x303a87];if('exportInlineStylesLicenseKeyValid'==_0x34f266||'exportInlineStylesLicenseKeyInvalid'==_0x34f266||'exportInlineStylesLicenseKeyExpired'==_0x34f266||'exportInlineStylesLicenseKeyDomainLimit'==_0x34f266||'exportInlineStylesLicenseKeyNotAllowed'==_0x34f266||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x34f266||'exportInlineStylesLicenseKeyUsageLimit'==_0x34f266){delete _0x4a55ad[_0x303a87],_0x6db195=_0x34f266,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x6db195&&_0x4a55ad['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x6db195&&_0x4a55ad['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x6db195&&_0x4a55ad['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x6db195&&_0x4a55ad['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x6db195&&_0x4a55ad['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x6db195&&_0x4a55ad['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getEmailInlineStylesTransformations(_0x4f5796={}){const _0x2ef8c2=[transformEmailFloatToAlign,transformEmailMarginToAlign,transformEmailImageWidthAttributes];return _0x4f5796['useFigureToTableFallback']&&_0x2ef8c2['push'](transformEmailFigureToTable,transformEmailFigcaptionToDiv),_0x2ef8c2;}function transformEmailFloatToAlign(_0x238bdf,_0x4148fc){if(!['TABLE','IMG']['includes'](_0x238bdf['tagName']))return;const _0x1d63ec=_0x4148fc['getAsString']('float');if(_0x1d63ec){const _0xcc0ad3=dropImportantStyleSuffix(_0x1d63ec);'left'!==_0xcc0ad3&&'right'!==_0xcc0ad3||_0x238bdf['setAttribute']('align',_0xcc0ad3);}}function transformEmailMarginToAlign(_0x3406ef,_0x33433d){if('TABLE'!==_0x3406ef['tagName']||_0x33433d['has']('float'))return;const _0xe7e86a=getAlignFromMargins(_0x33433d),_0x52b801=_0x33433d['getAsString']('width');(_0xe7e86a||_0x52b801)&&(applyWrapperTable(_0x3406ef,_0x3406ef,{'align':_0xe7e86a,'width':_0x52b801}),_0x33433d['remove']('width'),_0x33433d['remove']('margin-left'),_0x33433d['remove']('margin-right'),_0x33433d['remove']('min-width'),_0x33433d['remove']('max-width'));}function transformEmailImageWidthAttributes(_0x2b307c,_0x500865){if('IMG'!==_0x2b307c['tagName'])return;const _0x1fbed2=_0x500865['getAsString']('width');_0x1fbed2&&(_0x2b307c['setAttribute']('width',_0x1fbed2),_0x2b307c['setAttribute']('height','auto'));}function transformEmailFigureToTable(_0x163f15,_0x1ee6e3){if('FIGURE'!==_0x163f15['tagName'])return;const _0x30b4af=getAlignFromMargins(_0x1ee6e3),_0x388ea5=_0x1ee6e3['getAsString']('width');if(!_0x30b4af&&!_0x388ea5)return;const _0x2b367e=createReplacementElement(_0x163f15,'div');return applyWrapperTable(_0x163f15,_0x2b367e,{'align':_0x30b4af,'width':_0x388ea5}),_0x1ee6e3['set']('width','100%'),_0x1ee6e3['remove']('margin-left'),_0x1ee6e3['remove']('margin-right'),_0x1ee6e3['remove']('min-width'),_0x1ee6e3['remove']('max-width'),_0x2b367e;}function transformEmailFigcaptionToDiv(_0x182d36){if('FIGCAPTION'!==_0x182d36['tagName'])return;const _0x1eb51a=createReplacementElement(_0x182d36,'div');return _0x182d36['replaceWith'](_0x1eb51a),_0x1eb51a;}function applyWrapperTable(_0x413ef2,_0x653b4c,_0x3aa42e){const _0x3357bd=_0x413ef2['ownerDocument'],{table:_0x5ce8b0,cell:_0x530144}=createWrapperTable(_0x3357bd,'100%');_0x3aa42e['align']&&_0x530144['setAttribute']('align',dropImportantStyleSuffix(_0x3aa42e['align']));let _0x5abf0a=_0x530144;if(_0x3aa42e['width']){const {table:_0x2bc96b,cell:_0x21567a}=createWrapperTable(_0x3357bd,dropImportantStyleSuffix(_0x3aa42e['width']));_0x530144['appendChild'](_0x2bc96b),_0x5abf0a=_0x21567a;}_0x413ef2['replaceWith'](_0x5ce8b0),_0x413ef2['removeAttribute']('align'),_0x413ef2['removeAttribute']('width'),_0x5abf0a['appendChild'](_0x653b4c);}function createWrapperTable(_0x441e4b,_0xc8db94){const _0x531a09=_0x441e4b['createElement']('table');_0x531a09['setAttribute']('width',_0xc8db94),_0x531a09['setAttribute']('cellpadding','0'),_0x531a09['setAttribute']('cellspacing','0'),_0x531a09['setAttribute']('border','0'),_0x531a09['setAttribute']('role','presentation');const _0x1f074f=_0x441e4b['createElement']('tbody'),_0x464cf8=_0x441e4b['createElement']('tr'),_0x1decff=_0x441e4b['createElement']('td');return _0x531a09['appendChild'](_0x1f074f),_0x1f074f['appendChild'](_0x464cf8),_0x464cf8['appendChild'](_0x1decff),{'table':_0x531a09,'cell':_0x1decff};}function getAlignFromMargins(_0x1e5bd5){const _0x11e124=_0x1e5bd5['getAsString']('margin-left'),_0x4b5637=_0x1e5bd5['getAsString']('margin-right'),_0x531235=_0x11e124&&dropImportantStyleSuffix(_0x11e124),_0x4156ab=_0x4b5637&&dropImportantStyleSuffix(_0x4b5637);return'auto'===_0x531235&&'auto'===_0x4156ab?'center':'auto'===_0x531235?'right':'auto'===_0x4156ab?'left':void 0x0;}function createReplacementElement(_0x5cdbe9,_0x474af5){const _0x5c6207=_0x5cdbe9['ownerDocument']['createElement'](_0x474af5);for(const _0x1c161e of Array['from'](_0x5cdbe9['attributes']))_0x5c6207['setAttribute'](_0x1c161e['name'],_0x1c161e['value']);for(;_0x5cdbe9['firstChild'];)_0x5c6207['appendChild'](_0x5cdbe9['firstChild']);return _0x5c6207;}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:_0x1cf9fe,plugins:_0x5d7e47}=this['editor'],_0x46985f=_0x1cf9fe['get']('exportInlineStyles');if(_0x46985f?.['transformations']?.['includes'](transformEmailFigureToTable))return;_0x5d7e47['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 _0x2e021b=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('ExportInlineStyles')||_0x2e021b['_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 _0x567732=this['editor']['plugins']['get'](EmailConfigurationLogger),_0x29f0d2=this['editor']['config']['get']('list');_0x29f0d2&&_0x29f0d2['properties']&&_0x29f0d2['properties']['reversed']&&_0x567732['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x29f0d2&&_0x29f0d2['enableListItemMarkerFormatting']&&_0x567732['_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:_0x294676}=this['editor'],_0x1256e4=_0x294676['get'](EmailConfigurationLogger);_0x294676['has']('Table')&&(_0x294676['has']('PlainTableOutput')||_0x1256e4['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x294676['has']('TableLayout')||_0x1256e4['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x449a34,plugins:_0x9d1afd}=this['editor'];_0x449a34['get']('table')&&_0x9d1afd['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x2ae6b5){const _0x5cd027=this['editor']['plugins']['get'](EmailConfigurationLogger);_0x5cd027['_validateConfigColorValue']('table.'+_0x2ae6b5+'.borderColors'),_0x5cd027['_validateConfigColorValue']('table.'+_0x2ae6b5+'.backgroundColors'),_0x5cd027['_validateConfigColorValue']('table.'+_0x2ae6b5+'.defaultProperties.borderColor'),_0x5cd027['_validateConfigColorValue']('table.'+_0x2ae6b5+'.defaultProperties'),_0x5cd027['_validateConfigColorFormat']('table.'+_0x2ae6b5+'.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 _0x5532ae=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('EmptyBlock')||_0x5532ae['_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:_0x130333}=this['editor'];_0x130333['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x130333['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x3329aa){const _0x56f97b=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['config']['get'](_0x3329aa)&&(_0x56f97b['_validateConfigColorValue'](_0x3329aa+'.colors'),_0x56f97b['_validateConfigColorValue'](_0x3329aa+'.documentColors'),_0x56f97b['_validateConfigColorFormat'](_0x3329aa+'.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:_0x59163d}=this['editor'],_0x33cceb=_0x59163d['get'](EmailConfigurationLogger);_0x59163d['has']('SourceEditing')||_0x59163d['has']('SourceEditingEnhanced')||_0x33cceb['_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:_0x17a8e5}=this['editor'];if(!_0x17a8e5['has']('DataFilter'))return;const _0x24ccd2=_0x17a8e5['get']('DataFilter'),_0x39744a=_0x17a8e5['get'](EmailConfigurationLogger);for(const _0x513c82 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x24ccd2['once']('register:'+_0x513c82,(_0x2fb0d8,_0x29942b)=>{_0x39744a['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x29942b['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 _0x566a55=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('MergeFields')||_0x566a55['_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 _0x131d77=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('Template')||_0x131d77['_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:_0x582bba,plugins:_0x3af431}=this['editor'],_0x4912ef=_0x3af431['get'](EmailConfigurationLogger),_0x4adbd1=_0x582bba['get']('exportInlineStyles');_0x4adbd1?.['transformations']?.['includes'](transformEmailFigureToTable)||_0x4912ef['_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 _0xee6354=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x386e4e;for(const _0x1b5da5 in _0xee6354){const _0x8ad908=_0x1b5da5,_0x2b3aae=_0xee6354[_0x8ad908];if('emailConfigurationHelperLicenseKeyValid'==_0x2b3aae||'emailConfigurationHelperLicenseKeyInvalid'==_0x2b3aae||'emailConfigurationHelperLicenseKeyExpired'==_0x2b3aae||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x2b3aae||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x2b3aae||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x2b3aae||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x2b3aae){delete _0xee6354[_0x8ad908],_0x386e4e=_0x2b3aae,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x386e4e&&_0xee6354['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x386e4e&&_0xee6354['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x386e4e&&_0xee6354['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x386e4e&&_0xee6354['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x386e4e&&_0xee6354['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x386e4e&&_0xee6354['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getTranslation$d(_0x57d4fd,_0x49b338){const t=_0x57d4fd['t'];switch(_0x49b338){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 _0x49b338;}}const PRODUCTION_URL$1='https://pdf-converter.cke-cs.com/v1/convert/';class ExportPdfCommand extends Command{constructor(_0x41de54){super(_0x41de54),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x331f97={}){const _0x4485e3=this['editor'],_0x125b4d=_0x331f97['converterUrl']||PRODUCTION_URL$1,_0x460624=_0x331f97['dataCallback']||(_0x130286=>_0x130286['data']['get']()),_0x2b332d=_0x4485e3['plugins']['get']('ExportPdf'),_0x1a9900=_0x331f97['token']||_0x2b332d['_token'];return this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x331f97['stylesheets']||['EDITOR_STYLES'])['then'](async _0x90f966=>{if(_0x4485e3['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x4485e3['locale'],'PDF\x20export\x20started')),_0x4485e3['plugins']['has']('MergeFields')){_0x331f97['converterOptions']||(_0x331f97['converterOptions']={});const _0x28eeed=_0x4485e3['plugins']['get']('MergeFieldsEditing'),_0x15bbe9=_0x28eeed['previewMode'],{prefix:_0x3d29ec,suffix:_0x4f774f}=_0x4485e3['config']['get']('mergeFields'),_0x1f59d2='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x2b11ac={'prefix':_0x3d29ec,'suffix':_0x4f774f,'data':{}};if('$labels'===_0x15bbe9){for(const _0x2369f7 of _0x28eeed['getMergeFieldsIds']())'image'===_0x28eeed['getMergeFieldType'](_0x2369f7)?_0x2b11ac['data'][_0x2369f7]=_0x1f59d2:_0x2b11ac['data'][_0x2369f7]=_0x28eeed['wrapInAffixes'](_0x28eeed['getLabel'](_0x2369f7)||_0x2369f7);}else{const _0x9f30c0='$defaultValues'===_0x15bbe9?_0x28eeed['getDefaultValues']():_0x28eeed['getDataSetValues'](_0x15bbe9,!0x0);for(const _0x5701ce of Object['entries'](_0x9f30c0)){const [_0x488b52,_0x379c55]=_0x5701ce;'image'===_0x28eeed['getMergeFieldType'](_0x488b52)?_0x2b11ac['data'][_0x488b52]=null!==_0x379c55?_0x379c55:_0x1f59d2:_0x2b11ac['data'][_0x488b52]=null!==_0x379c55?_0x379c55:_0x28eeed['getLabel'](_0x488b52)||_0x488b52;}}_0x331f97['converterOptions']['merge_fields']=_0x2b11ac;}const _0xc6e458=0x2===_0x331f97['version']?prepareContentInlineStyleV2(_0x331f97['converterOptions']):prepareContentInlineStyle(_0x331f97['converterOptions']),_0x2407cf={'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'+_0x4485e3['locale']['contentLanguageDirection']+'\x22\x20style=\x22'+_0xc6e458+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x460624(_0x4485e3)+'\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':_0x90f966,[0x2===_0x331f97['version']?'config':'options']:_0x331f97['converterOptions']},_0x1df98e={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x1a9900?{'Authorization':_0x1a9900['value']}:null,'x-cs-app-id':_0x331f97['appID']||'cke5'},'body':JSON['stringify'](_0x2407cf)};return window['fetch'](_0x125b4d,_0x1df98e)['then'](_0x5d58f9=>{if(0xc8!==_0x5d58f9['status'])throw _0x5d58f9;return _0x5d58f9['blob']();})['then'](_0x288baa=>{_0x4485e3['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x4485e3['locale'],'PDF\x20export\x20successful'));const _0x8a15a6='function'==typeof _0x331f97['fileName']?_0x331f97['fileName']():_0x331f97['fileName'];this['_downloadFile'](_0x288baa,_0x8a15a6||'document.pdf');});})['catch'](_0x36b2c4=>{const _0x12df5e=_0x4485e3['plugins']['get']('Notification');throw _0x4485e3['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x4485e3['locale'],'PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x12df5e['showWarning'](getTranslation$d(_0x4485e3['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x36b2c4;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x6ecdad,_0x390d95){const _0x9a4ad4=document['createElement']('a');_0x9a4ad4['href']=window['URL']['createObjectURL'](_0x6ecdad),_0x9a4ad4['download']=_0x390d95,_0x9a4ad4['click'](),_0x9a4ad4['remove']();}}function prepareContentInlineStyle(_0x2983c2){return generatePageWidthStyle({'pageWidth':pageFormatToWidth(_0x2983c2?.['format']||'A4'),'marginLeft':_0x2983c2?.['margin_left'],'marginRight':_0x2983c2?.['margin_right']});}function prepareContentInlineStyleV2(_0x1d2969){const _0x32b2c9=_0x1d2969?.['document']?.['margins'];return generatePageWidthStyle({'pageWidth':pageFormatToWidth(_0x1d2969?.['document']?.['size']||'A4'),'marginLeft':_0x32b2c9?.['left'],'marginRight':_0x32b2c9?.['right']});}function generatePageWidthStyle({pageWidth:_0xbce92b,marginLeft:_0x165d9b,marginRight:_0x407f7b}){return'width:calc('+[_0xbce92b,_0x165d9b,_0x407f7b]['filter'](Boolean)['join']('\x20-\x20')+');';}function pageFormatToWidth(_0x50ef89){if('object'==typeof _0x50ef89&&'width'in _0x50ef89)return _0x50ef89['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']}[_0x50ef89['toLowerCase']()][0x0];}class ExportPdfUI extends Plugin{static get['pluginName'](){return'ExportPdfUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1869bf=this['editor'];_0x1869bf['ui']['componentFactory']['add']('exportPdf',()=>{const _0x45050e=this['_createButton'](ButtonView),_0x340ccc=_0x1869bf['commands']['get']('exportPdf');return _0x45050e['set']({'tooltip':!0x0}),_0x45050e['bind']('isOn')['to'](_0x340ccc,'isBusy'),_0x45050e;}),_0x1869bf['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x478fa7){const _0x274388=this['editor'],_0x107a4c=_0x274388['config']['get']('exportPdf')||{},_0x5a9c32=_0x274388['commands']['get']('exportPdf'),_0x2857d2=new _0x478fa7(_0x274388['locale']),_0x94d3a5=new SpinnerView();return _0x2857d2['children']['add'](_0x94d3a5),_0x94d3a5['bind']('isVisible')['to'](_0x5a9c32,'isBusy'),_0x2857d2['iconView']['bind']('isVisible')['to'](_0x5a9c32,'isBusy',_0x23b13b=>!_0x23b13b),_0x2857d2['set']({'icon':IconExportPdf}),_0x2857d2['bind']('isEnabled')['to'](_0x5a9c32,'isEnabled'),_0x2857d2['bind']('label')['to'](_0x5a9c32,'isBusy',_0x5d6cdf=>getTranslation$d(_0x274388['locale'],_0x5d6cdf?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x2857d2,'execute',()=>{_0x274388['execute']('exportPdf',_0x107a4c),_0x274388['editing']['view']['focus']();}),_0x2857d2;}}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 _0x1416cd=this['editor'],_0x512f9e=_0x1416cd['config']['get']('exportPdf')||{};_0x1416cd['commands']['add']('exportPdf',new ExportPdfCommand(_0x1416cd));const _0x47c905=_0x1416cd['plugins']['get']('CloudServices');!0x1===_0x512f9e['tokenUrl']?this['_token']=null:_0x512f9e['tokenUrl']?_0x47c905['registerTokenUrl'](_0x512f9e['tokenUrl'])['then'](_0x3aa92a=>{this['_token']=_0x3aa92a;}):this['_token']=_0x47c905['token'];}}function getConverterOptions(_0x2f2ada,_0x5d8935={}){const _0x4d40c8=_0x2f2ada['plugins']['has']('Users'),_0x48e703=_0x2f2ada['plugins']['has']('CommentsRepository'),_0x42567f=_0x2f2ada['plugins']['has']('TrackChanges'),_0x15b85f=_0x5d8935;if(_0x4d40c8&&_0x48e703){const _0x2210a9=getComments(_0x2f2ada['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object['keys'](_0x2210a9)['length']&&(_0x15b85f['comments']=_0x2210a9);}if(_0x4d40c8&&_0x42567f){const _0x17232b=_0x2f2ada['plugins']['get']('TrackChanges'),_0x3f1f81=_0x2f2ada['plugins']['get']('Users'),_0x4087bd=getSuggestions(_0x17232b['getSuggestions']({'toJSON':!0x0}),_0x3f1f81['users']);Object['keys'](_0x4087bd)['length']&&(_0x15b85f['suggestions']=_0x4087bd);}return(_0x15b85f['suggestions']||_0x15b85f['comments'])&&(_0x15b85f['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']),_0x15b85f;}function getComments(_0x34e316){const _0x4ba091={};if(!_0x34e316['length'])return _0x4ba091;for(const _0xc8c2c0 of _0x34e316)_0xc8c2c0['comments']['map'](_0x3cb5c6=>{void 0x0===_0x4ba091[_0xc8c2c0['id']]&&(_0x4ba091[_0xc8c2c0['id']]=[]),_0x4ba091[_0xc8c2c0['id']]['push']({'author':_0x3cb5c6['author']['name'],'content':_0x3cb5c6['content'],'created':_0x3cb5c6['createdAt'],'is_resolved':_0xc8c2c0['isResolved']});});return _0x4ba091;}function getSuggestions(_0xe9ee9b,_0x307ebc){const _0x5f3797={};if(!_0xe9ee9b['length']||!_0x307ebc['length'])return _0x5f3797;for(const {id:_0x58ddc3,createdAt:_0x5532a2,authorId:_0x6707f8,attributes:_0x3cb0c5}of _0xe9ee9b){const _0x4257ae=_0x3cb0c5&&_0x3cb0c5['@external'],_0x328cf0=_0x4257ae?_0x4257ae['authorName']:_0x307ebc['get'](_0x6707f8)['name'];_0x5f3797[_0x58ddc3]={'author':_0x328cf0,'created':_0x5532a2};}return _0x5f3797;}function getConverterOptionsV2(_0x1a2f9a,_0x22cb3b={}){const _0x315cf6=_0x1a2f9a['plugins']['has']('Users'),_0x3cffb1=_0x1a2f9a['plugins']['has']('CommentsRepository'),_0x159b59=_0x1a2f9a['plugins']['has']('TrackChanges'),_0xa9bd03=_0x1a2f9a['plugins']['has']('MergeFields'),_0x106721=_0x1a2f9a['locale']['contentLanguage'],_0x43c8bf=_0x22cb3b,_0x3ea1de={};if(_0x43c8bf['document']=_0x43c8bf['document']||{},_0x43c8bf['document']['language']=_0x43c8bf['document']['language']||_0x106721,_0x315cf6&&_0x3cffb1){const _0x55b98e=getCommentsV2(_0x1a2f9a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x55b98e['length']&&(_0x3ea1de['comment_threads']=_0x55b98e);}if(_0x315cf6&&_0x159b59){const _0x452f21=_0x1a2f9a['plugins']['get']('TrackChanges'),_0x211fc1=_0x1a2f9a['plugins']['get']('Users'),_0x42d504=getSuggestionsV2(_0x452f21['getSuggestions']({'toJSON':!0x0}),_0x211fc1['users']);_0x42d504['length']&&(_0x3ea1de['suggestions']=_0x42d504);}if(_0xa9bd03){const _0x1d8849=_0x1a2f9a['plugins']['get']('MergeFieldsEditing'),_0x332957=_0x1d8849['previewMode'],{prefix:_0x1dfe85,suffix:_0x287852}=_0x1a2f9a['config']['get']('mergeFields');if(_0x43c8bf['merge_fields']={'prefix':_0x1dfe85,'suffix':_0x287852},'$labels'!==_0x332957){_0x43c8bf['merge_fields']['data']={};const _0x29f87c='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x43d70f='$defaultValues'===_0x332957?_0x1d8849['getDefaultValues']():_0x1d8849['getDataSetValues'](_0x332957,!0x0);for(const _0x496965 of Object['entries'](_0x43d70f)){const [_0x138204,_0x11b4a2]=_0x496965;'image'===_0x1d8849['getMergeFieldType'](_0x138204)?_0x43c8bf['merge_fields']['data'][_0x138204]=null!==_0x11b4a2?_0x11b4a2:_0x29f87c:_0x43c8bf['merge_fields']['data'][_0x138204]=null!==_0x11b4a2?_0x11b4a2:_0x1d8849['getLabel'](_0x138204)||_0x138204;}}}return(_0x3ea1de['comment_threads']||_0x3ea1de['suggestions'])&&(_0x43c8bf['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'],_0x43c8bf['collaboration_features']=_0x3ea1de),_0x43c8bf;}function getCommentsV2(_0x3f8bba){const _0x1a9b7b=[];if(!_0x3f8bba['length'])return _0x1a9b7b;for(const _0x59da87 of _0x3f8bba){const _0x4a1ec6=_0x59da87['comments']['map'](_0x4b1116=>({'author':_0x4b1116['author']['name'],'content':_0x4b1116['content'],'created_at':_0x4b1116['createdAt']}));_0x1a9b7b['push']({'thread_id':_0x59da87['id'],'is_resolved':_0x59da87['isResolved'],'comments':_0x4a1ec6});}return _0x1a9b7b;}function getSuggestionsV2(_0x1433f0,_0x1a7936){return _0x1433f0['length']&&_0x1a7936['length']?_0x1433f0['map'](({id:_0x7ac197,createdAt:_0x5c7375,authorId:_0x4d507f,attributes:_0x286716})=>{const _0x121a0=_0x286716&&_0x286716['@external'];return{'id':_0x7ac197,'author':_0x121a0?_0x121a0['authorName']:_0x1a7936['get'](_0x4d507f)['name'],'created_at':_0x5c7375};}):[];}function getTranslation$c(_0x23757d,_0x5f53ff){const t=_0x23757d['t'];switch(_0x5f53ff){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 _0x5f53ff;}}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(_0x265f6c){super(_0x265f6c),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x25d066={}){const _0xbb9470=this['editor'],_0x975d67=_0x25d066['version']||0x2,_0x201db7=0x1===_0x975d67,_0x44bd4d=_0x25d066['converterUrl']||(_0x201db7?PRODUCTION_URL:PRODUCTION_URL_V2),_0xc5014a=_0x25d066['converterOptions']||{},_0x39c49c=_0xbb9470['plugins']['get']('ExportWord'),_0x2425c5=_0x25d066['token']||_0x39c49c['_token'],_0x4cb1e0=!0x0===_0xc5014a['auto_pagination'],_0x538fad=_0x25d066['dataCallback']||(_0x1161ba=>_0x1161ba['data']['get']({'pagination':_0x4cb1e0}));return 0x2===_0x975d67&&isV1ApiUsed(_0xc5014a)&&logWarning('export-word-v1-api-is-deprecated'),this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x25d066['stylesheets']||['EDITOR_STYLES'])['then'](async _0x45e121=>{_0xbb9470['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0xbb9470['locale'],'Word\x20document\x20export\x20started'));const _0x3d2235=await _0x538fad(_0xbb9470),_0x5e1206={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0xbb9470['locale']['contentLanguageDirection']+'\x22>'+_0x3d2235+'</div>','css':_0x45e121,[_0x201db7?'options':'config']:{..._0xc5014a,..._0x201db7?getConverterOptions(_0xbb9470,_0xc5014a):getConverterOptionsV2(_0xbb9470,_0xc5014a)}},_0x54202a={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x2425c5?{'Authorization':_0x2425c5['value']}:null},'body':JSON['stringify'](_0x5e1206)};return window['fetch'](_0x44bd4d,_0x54202a)['then'](_0x2fd398=>{if(0xc8!==_0x2fd398['status'])throw _0x2fd398;return _0x2fd398['blob']();})['then'](_0x35e4b3=>{_0xbb9470['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0xbb9470['locale'],'Word\x20document\x20export\x20successful'));const _0x17fa82='function'==typeof _0x25d066['fileName']?_0x25d066['fileName']():_0x25d066['fileName'];this['_downloadFile'](_0x35e4b3,_0x17fa82||'document.docx');});})['catch'](_0x22ceef=>{const _0x39d925=_0xbb9470['plugins']['get']('Notification');throw _0xbb9470['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0xbb9470['locale'],'Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x39d925['showWarning'](getTranslation$c(_0xbb9470['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x22ceef;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0xb63527,_0x4b1a20){const _0x2fb603=document['createElement']('a');_0x2fb603['href']=window['URL']['createObjectURL'](_0xb63527),_0x2fb603['download']=_0x4b1a20,_0x2fb603['click'](),_0x2fb603['remove']();}}function isV1ApiUsed(_0x7cf426){for(const _0x381fdf of firstVersionApiKeys)if(void 0x0!==_0x7cf426[_0x381fdf])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 _0x2c3bd5=this['editor'];_0x2c3bd5['ui']['componentFactory']['add']('exportWord',()=>{const _0x5d84eb=_0x2c3bd5['commands']['get']('exportWord'),_0xe2bde4=this['_createButton'](ButtonView);return _0xe2bde4['set']({'tooltip':!0x0}),_0xe2bde4['bind']('isOn')['to'](_0x5d84eb,'isBusy'),_0xe2bde4;}),_0x2c3bd5['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x43a779){const _0x240f08=this['editor'],_0x579121=_0x240f08['config']['get']('exportWord')||{},_0x2f6e70=_0x240f08['commands']['get']('exportWord'),_0x1482a1=new _0x43a779(_0x240f08['locale']),_0x2c2275=new SpinnerView();return _0x1482a1['children']['add'](_0x2c2275),_0x2c2275['bind']('isVisible')['to'](_0x2f6e70,'isBusy'),_0x1482a1['iconView']['bind']('isVisible')['to'](_0x2f6e70,'isBusy',_0x31b116=>!_0x31b116),_0x1482a1['set']({'icon':IconExportWord}),_0x1482a1['bind']('isEnabled')['to'](_0x2f6e70,'isEnabled'),_0x1482a1['bind']('label')['to'](_0x2f6e70,'isBusy',_0x5c046f=>getTranslation$c(_0x240f08['locale'],_0x5c046f?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x1482a1,'execute',()=>{_0x240f08['execute']('exportWord',_0x579121),_0x240f08['editing']['view']['focus']();}),_0x1482a1;}}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 _0x24d23a=this['editor'],_0x44db4a=_0x24d23a['config']['get']('exportWord')||{};_0x24d23a['commands']['add']('exportWord',new ExportWordCommand(_0x24d23a));const _0x264d58=_0x24d23a['plugins']['get']('CloudServices');!0x1===_0x44db4a['tokenUrl']?this['_token']=null:_0x44db4a['tokenUrl']?_0x264d58['registerTokenUrl'](_0x44db4a['tokenUrl'])['then'](_0x18536a=>{this['_token']=_0x18536a;}):this['_token']=_0x264d58['token'];}}class ModelElementTracker{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x6fc559,_0xb91fd3){this['_model']=_0x6fc559,this['_elementName']=_0xb91fd3['elementName'],this['_getElementKey']=_0xb91fd3['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x594614){const _0x5b2f8b=new Set(),_0x14d22e=new Map();for(const _0x2004e1 of _0x594614){if('insert'===_0x2004e1['type']&&'$text'!==_0x2004e1['name']&&_0x2004e1['position']['nodeAfter']){const _0x284caf=this['_model']['createRangeOn'](_0x2004e1['position']['nodeAfter']);for(const _0x561f5b of _0x284caf['getItems']()){if(!_0x561f5b['is']('element',this['_elementName']))continue;const _0x29587c=this['_getElementKey'](_0x561f5b);_0x14d22e['has'](_0x29587c)||_0x14d22e['set'](_0x29587c,[]),_0x14d22e['get'](_0x29587c)['push'](_0x561f5b);}}if('remove'===_0x2004e1['type']&&_0x2004e1['name']===this['_elementName']){const _0xba8c52=this['_getElementKey']({'getAttribute':_0x4250a7=>_0x2004e1['attributes']['get'](_0x4250a7)});_0x5b2f8b['add'](_0xba8c52);}}for(const [_0x55fff5,_0x5839b0]of this['_trackedElements'])'$graveyard'===_0x5839b0['root']['rootName']&&_0x5b2f8b['add'](_0x55fff5);for(const _0x3a84db of _0x5b2f8b)this['_trackedElements']['delete'](_0x3a84db);for(const [_0x5d9d61,_0x112da3]of _0x14d22e)this['_trackedElements']['set'](_0x5d9d61,_0x112da3[_0x112da3['length']-0x1]);const _0xee62d=new Set();for(const [_0xf00d01,_0x80a108]of _0x14d22e)_0x5b2f8b['has'](_0xf00d01)&&(_0xee62d['add'](_0x80a108[0x0]),_0x80a108['length']>0x1?_0x14d22e['set'](_0xf00d01,_0x80a108['slice'](0x1)):_0x14d22e['delete'](_0xf00d01),_0x5b2f8b['delete'](_0xf00d01));return{'removed':Array['from'](_0x5b2f8b),'inserted':Array['from'](_0x14d22e['values']())['flat'](),'moved':Array['from'](_0xee62d)};}}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(_0x249c6e){super(_0x249c6e),this['_footnoteDefsContainerTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5ebf33=>_0x5ebf33['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x2b2cfd=>_0x2b2cfd['getAttribute']('footnoteId')});}['init'](){const {editor:_0x59ebf4}=this,{model:_0x949d38,data:_0x5ceb28}=_0x59ebf4;_0x949d38['document']['registerPostFixer'](_0x1a1325=>{const _0x3fc04d=_0x949d38['document']['differ']['getChanges']();let _0x1df6ff=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x1a1325,_0x3fc04d)&&(_0x1df6ff=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x1a1325,_0x3fc04d)&&(_0x1df6ff=!0x0),this['_handleFootnoteReferencesChanges'](_0x1a1325,_0x3fc04d)&&(_0x1df6ff=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x1a1325)&&(_0x1df6ff=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x1a1325)&&(_0x1df6ff=!0x0),this['_sortFootnoteDefinitions'](_0x1a1325)&&(_0x1df6ff=!0x0),_0x1df6ff;}),this['listenTo'](_0x949d38['document'],'change:data',()=>{_0x949d38['enqueueChange']({'isUndoable':!0x1},_0x284ac0=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x284ac0);});},{'priority':'low'}),this['listenTo'](_0x5ceb28,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3e8705){return this['_footnotes']['find'](_0x1e002a=>_0x1e002a['id']===_0x3e8705)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x513c58){this['_footnoteFormatter']=_0x513c58;}['_updateFootnotesCounters'](_0xcfcb62,_0x2d6f31=0x0){let _0x21df85=!0x1;for(let _0x99d6ec=_0x2d6f31;_0x99d6ec<this['_footnotes']['length'];_0x99d6ec++)this['_updateFootnoteRefCounter'](_0xcfcb62,_0x99d6ec)&&(_0x21df85=!0x0);return _0x21df85;}['_insertEmptyFootnotesDefinitionsContainer'](_0x969635,_0x162b12){const _0x992cca=_0x969635['createElement']('footnotesDefinitions',{});return _0x969635['append'](_0x992cca,_0x162b12),this['_footnotesDefinitions']=_0x992cca,_0x992cca;}['_ensureFootnotesDefinitionsContainerExists'](_0x2c617b){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x2efd7a=this['_footnotes'][0x0]['reference']['root'],_0x5ad59e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x2c617b,_0x2efd7a);for(const _0x12fe97 of this['_footnotes'])_0x12fe97['definition']['parent']||_0x2c617b['insert'](_0x12fe97['definition'],_0x5ad59e,'end');this['_updateFootnotesCounters'](_0x2c617b);}['_handleFootnotesDefinitionsObjectChanges'](_0x39d2f6,_0x1bbd9f){let _0x2cddee=!0x1;const {inserted:_0x3e34fb,removed:_0x3f0232,moved:_0x4daefb}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1bbd9f);if(_0x4daefb['length']&&(this['_footnotesDefinitions']=_0x4daefb[0x0]),_0x3e34fb['length']){if(_0x3e34fb['length']>0x1||this['_footnotesDefinitions']&&_0x3e34fb['some'](_0x5ba595=>_0x5ba595!==this['_footnotesDefinitions'])){const _0x3768bf=_0x39d2f6['createElement']('footnotesDefinitions',{}),_0x464f0f=[];this['_footnotesDefinitions']&&_0x464f0f['push'](this['_footnotesDefinitions']),_0x464f0f['push'](..._0x3e34fb),_0x39d2f6['insert'](_0x3768bf,_0x464f0f[0x0],'before');for(const _0x9e79ba of _0x464f0f)_0x39d2f6['move'](_0x39d2f6['createRangeIn'](_0x9e79ba),_0x39d2f6['createPositionAt'](_0x3768bf,'end')),_0x39d2f6['remove'](_0x9e79ba);this['_footnotesDefinitions']=_0x3768bf,this['_updateFootnotesCounters'](_0x39d2f6),_0x2cddee=!0x0;}else this['_footnotesDefinitions']=_0x3e34fb[0x0];}if(_0x3f0232['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1a22d4 of this['_footnotes'])_0x39d2f6['remove'](_0x1a22d4['reference']),_0x2cddee=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x2cddee;}['_handleFootnoteDefinitionsChanges'](_0x58b5ab,_0x3ab767){let _0x9f26cf=!0x1;const _0x3a3721=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x2e517c,moved:_0x231a68}=this['_footnoteDefsTracker']['getChanges'](_0x3ab767);for(const _0x1677fe of[..._0x231a68,..._0x2e517c]){const _0x40cdbe=_0x1677fe['getAttribute']('footnoteId'),_0x555b79=this['getFootnote'](_0x40cdbe);_0x555b79&&(_0x555b79['definition']=_0x1677fe),ensureDefinitionIsNotEmpty(_0x58b5ab,_0x3a3721,_0x1677fe)&&(_0x9f26cf=!0x0);}return _0x9f26cf;}['_handleFootnoteReferencesChanges'](_0x543fa1,_0x1ecb3a){let _0x1c98ed=!0x1;const {removed:_0x2610bc,inserted:_0x1599ac,moved:_0x31eaa2}=this['_footnoteRefsTracker']['getChanges'](_0x1ecb3a);for(const _0x3a76c4 of _0x2610bc)this['_handleRemoveFootnoteReferenceById'](_0x543fa1,_0x3a76c4)&&(_0x1c98ed=!0x0);for(const _0x852d97 of _0x1599ac)this['_handleInsertedFootnoteReference'](_0x543fa1,_0x852d97)&&(_0x1c98ed=!0x0);for(const _0x7412f of _0x31eaa2)this['_handleMovedFootnoteReference'](_0x543fa1,_0x7412f)&&(_0x1c98ed=!0x0);return _0x1c98ed;}['_handleFootnotesDefinitionsObjectSync'](_0x291dd8){if(!this['_footnotesDefinitions'])return!0x1;let _0x354289=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x55300e=[];for(const _0x5504df of this['_footnotesDefinitions']['getChildren']()){const _0x5bb569=_0x5504df['getAttribute']('footnoteId');this['getFootnote'](_0x5bb569)||(_0x55300e['unshift'](_0x5504df),_0x354289=!0x0);}for(const _0xc18a91 of _0x55300e)_0x291dd8['remove'](_0xc18a91);}const _0x165e77=new Set(),_0x5ddcd0=[];for(const _0x37943d of this['_footnotesDefinitions']['getChildren']()){const _0x2f61bb=_0x37943d['getAttribute']('footnoteId');_0x165e77['has'](_0x2f61bb)?(_0x5ddcd0['unshift'](_0x37943d),_0x354289=!0x0):_0x165e77['add'](_0x2f61bb);}for(const _0x386d15 of _0x5ddcd0)_0x291dd8['remove'](_0x386d15);return this['_footnotesDefinitions']['childCount']||(_0x291dd8['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x354289=!0x0),_0x354289;}['_handleInsertedFootnoteReference'](_0x35f4e4,_0x22e622){if(this['_footnotes']['find'](_0x4cf1c0=>_0x4cf1c0['reference']===_0x22e622))return!0x1;let _0xd88364=!0x1;const _0x21dd46=_0x22e622['getAttribute']('footnoteId'),_0x22a28b=this['_footnotes']['findIndex'](_0x51e743=>_0x51e743['id']===_0x21dd46);-0x1!==_0x22a28b&&(_0x35f4e4['remove'](this['_footnotes'][_0x22a28b]['reference']),this['_footnotes']['splice'](_0x22a28b,0x1),_0xd88364=!0x0);let _0x1788cb=this['_footnotesDefinitions']?findFootnoteDefinitionInContainer(this['_footnotesDefinitions'],_0x21dd46):null;_0x1788cb||(_0x1788cb=_0x35f4e4['createElement']('footnoteDefinition',{'footnoteId':_0x21dd46}),this['_footnotesDefinitions']&&(_0x35f4e4['insert'](_0x1788cb,this['_footnotesDefinitions'],'end'),_0xd88364=!0x0));const _0x540794={'id':_0x21dd46,'reference':_0x22e622,'definition':_0x1788cb},_0x2e9757=findInsertFootnoteReferenceIndex(this['editor']['model'],this['_footnotes'],_0x22e622);this['_footnotes']['splice'](_0x2e9757,0x0,_0x540794);let _0x41c3f2=_0x2e9757;return-0x1!==_0x22a28b&&(_0x41c3f2=Math['min'](_0x2e9757,_0x22a28b)),this['_updateFootnotesCounters'](_0x35f4e4,_0x41c3f2)&&(_0xd88364=!0x0),_0xd88364;}['_handleRemoveFootnoteReferenceById'](_0xc727fa,_0x3fc546){const _0x2325d6=this['_footnotes']['findIndex'](_0x6a396d=>_0x6a396d['id']===_0x3fc546);if(-0x1===_0x2325d6)return!0x1;let _0x4b5f40=!0x1;const _0x470ecd=this['_footnotes'][_0x2325d6];return'$graveyard'!==_0x470ecd['definition']['root']['rootName']&&(_0xc727fa['remove'](_0x470ecd['definition']),_0x4b5f40=!0x0),this['_footnotes']['splice'](_0x2325d6,0x1),this['_updateFootnotesCounters'](_0xc727fa,_0x2325d6)&&(_0x4b5f40=!0x0),_0x4b5f40;}['_handleMovedFootnoteReference'](_0xf25abb,_0x53ead4){const _0x4ab61b=_0x53ead4['getAttribute']('footnoteId'),_0x50be8f=this['_footnotes']['findIndex'](_0x3a4afe=>_0x3a4afe['id']===_0x4ab61b),_0x27f733=this['_footnotes'][_0x50be8f];let _0x22920d=!0x1;_0x27f733['reference']=_0x53ead4,this['_footnotes']['splice'](_0x50be8f,0x1);const _0x4673ec=findInsertFootnoteReferenceIndex(this['editor']['model'],this['_footnotes'],_0x53ead4);return this['_footnotes']['splice'](_0x4673ec,0x0,_0x27f733),this['_updateFootnotesCounters'](_0xf25abb,Math['min'](_0x50be8f,_0x4673ec))&&(_0x22920d=!0x0),_0x22920d;}['_updateFootnoteRefCounter'](_0x56d874,_0x2316d8){if(!this['_footnotesDefinitions'])return!0x1;const _0x32396b=this['_footnotes'][_0x2316d8];let _0x5dc836;return _0x5dc836=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x32396b,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x2316d8+0x1}):String(_0x2316d8+0x1),_0x32396b['reference']['getAttribute']('footnoteCounter')!=_0x5dc836&&(_0x56d874['setAttribute']('footnoteCounter',_0x5dc836,_0x32396b['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3d282e){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(areArraysEqual(this['_footnotes']['map'](_0x1fdee4=>_0x1fdee4['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x173702=>_0x173702['getAttribute']('footnoteId'))))return!0x1;let _0x518f08=!0x1;for(let _0x4bc695=0x0;_0x4bc695<this['_footnotes']['length'];_0x4bc695++){const _0x1eff83=this['_footnotes'][_0x4bc695],_0x4557cb=_0x3d282e['createPositionBefore'](_0x1eff83['definition']),_0x17949b=_0x3d282e['createPositionAt'](this['_footnotesDefinitions'],_0x4bc695);_0x4557cb['isEqual'](_0x17949b)||(_0x3d282e['move'](_0x3d282e['createRangeOn'](_0x1eff83['definition']),_0x17949b),_0x518f08=!0x0);}return _0x518f08;}['_ensureFootnotesReferencesHaveProperOrder'](_0x10695a){if(!this['_footnotes']['length'])return!0x1;const {model:_0x277deb}=this['editor'];let _0x41f21e=!0x1;for(let _0x3bc3e7=0x0;_0x3bc3e7<this['_footnotes']['length']-0x1;_0x3bc3e7++){const _0x265efc=this['_footnotes'][_0x3bc3e7],_0x4c1a79=this['_footnotes'][_0x3bc3e7+0x1],_0x1f57b1=_0x277deb['createPositionBefore'](_0x265efc['reference']),_0x17edaf=_0x277deb['createPositionBefore'](_0x4c1a79['reference']);'after'===_0x1f57b1['compareWith'](_0x17edaf)&&(this['_handleMovedFootnoteReference'](_0x10695a,_0x265efc['reference']),_0x3bc3e7=-0x1,_0x41f21e=!0x0);}return _0x41f21e;}}function ensureDefinitionIsNotEmpty(_0x41023f,_0x2ed788,_0x3650a6){if(_0x3650a6['childCount'])return!0x1;const _0x34e87e=_0x2ed788?'paragraph':'footnoteInlineContent';return _0x41023f['insert'](_0x41023f['createElement'](_0x34e87e),_0x3650a6),!0x0;}function findFootnoteDefinitionInContainer(_0x4d9f91,_0x4dd918){for(const _0x4177b4 of _0x4d9f91['getChildren']())if(_0x4177b4['getAttribute']('footnoteId')===_0x4dd918)return _0x4177b4;return null;}function findInsertFootnoteReferenceIndex(_0x3230e8,_0x4a2741,_0x352620){if(0x0===_0x4a2741['length'])return 0x0;const _0x11d758=_0x3230e8['createPositionBefore'](_0x352620);for(let _0x365638=0x0;_0x365638<_0x4a2741['length'];_0x365638++){const _0x56fe5a=_0x4a2741[_0x365638],_0x43a148=_0x3230e8['createPositionBefore'](_0x56fe5a['reference']);if('before'===_0x11d758['compareWith'](_0x43a148))return _0x365638;}const _0x14d4d3=_0x352620['root'];let _0x25a720=-0x1;for(let _0x316ea2=_0x4a2741['length']-0x1;_0x316ea2>=0x0;_0x316ea2--)if(_0x4a2741[_0x316ea2]['reference']['root']===_0x14d4d3){_0x25a720=_0x316ea2;break;}if(-0x1!==_0x25a720)return _0x25a720+0x1;const _0xd58a0a=_0x3230e8['document']['getRootNames'](),_0x53beea=_0xd58a0a['indexOf'](_0x14d4d3['rootName']),_0x43e8b6=_0xd58a0a[_0x53beea+0x1];if(_0x43e8b6){for(let _0x2ab521=0x0;_0x2ab521<_0x4a2741['length'];_0x2ab521++)if(_0x4a2741[_0x2ab521]['reference']['root']['rootName']===_0x43e8b6)return _0x2ab521;}return _0x4a2741['length'];}function areArraysEqual(_0x336de9,_0x56a760){if(_0x336de9['length']!==_0x56a760['length'])return!0x1;for(let _0xfb3283=0x0;_0xfb3283<_0x336de9['length'];_0xfb3283++)if(_0x336de9[_0xfb3283]!==_0x56a760[_0xfb3283])return!0x1;return!0x0;}class InsertFootnoteCommand extends Command{['refresh'](){const _0x3c82ad=this['editor']['model']['document']['selection'],_0x37d10f=this['_getPositionToInsertFootnote'](_0x3c82ad);this['isEnabled']=!!_0x37d10f;}['execute'](_0x507b0a){const {editor:_0x5402df}=this,{model:_0xb45cca}=_0x5402df,{selection:_0x3b447a}=_0xb45cca['document'],_0x1451f3=this['_getPositionToInsertFootnote'](_0x3b447a);if(!_0x1451f3)return;const _0x3b700b=_0x5402df['plugins']['get']('FootnotesEditing'),_0x5c01b=_0x507b0a?.['footnoteId']??uid();isFootnoteIdValid(_0x5c01b)?(_0xb45cca['change'](_0x29265b=>{const _0x182a52=_0x29265b['createElement']('footnoteRef',{'footnoteId':_0x5c01b});_0xb45cca['insertObject'](_0x182a52,_0x1451f3,null);}),_0x3b700b['_moveSelectionToFootnoteDefinition'](_0x5c01b)):logWarning('insert-footnote-command-executed-with-invalid-id');}['_getPositionToInsertFootnote'](_0x562075){const {model:_0x8ad7f4}=this['editor'],{schema:_0x327145}=_0x8ad7f4,_0x58f040=_0x562075['getFirstRange']();for(const _0x49ed8b of _0x58f040['getItems']())if(_0x327145['isBlock'](_0x49ed8b)||_0x327145['isObject'](_0x49ed8b))return null;const _0x598f06=_0x58f040['end'];return _0x327145['checkChild'](_0x598f06,'footnoteRef')?_0x598f06:null;}}function isFootnoteIdValid(_0x292d65){return'string'==typeof _0x292d65&&_0x292d65['length']>0x0&&!/\s/['test'](_0x292d65)&&!/^\d/['test'](_0x292d65);}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:_0x785b58}=this;_0x785b58['config']['define']('footnotes.multiBlock',!0x0),_0x785b58['commands']['add']('insertFootnote',new InsertFootnoteCommand(_0x785b58)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){checkLicense$c(this);}['_moveSelectionToFootnoteDefinition'](_0x24b31b){const {plugins:_0x419a86,editing:_0x4e96a4,model:_0x26c0ef}=this['editor'],_0x449f45=_0x419a86['get'](FootnotesTracker)['getFootnote'](_0x24b31b);return!!_0x449f45&&(_0x26c0ef['change'](_0x16c2c5=>{_0x16c2c5['setSelection'](_0x16c2c5['createPositionAt'](_0x449f45['definition'],'end'));}),_0x4e96a4['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x37df0a){const {plugins:_0x283272,editing:_0x47e3ae,model:_0xe270f7}=this['editor'],_0xd96bd0=_0x283272['get'](FootnotesTracker)['getFootnote'](_0x37df0a);return!!_0xd96bd0&&(_0xe270f7['change'](_0x2b8904=>{_0x2b8904['setSelection'](_0xd96bd0['reference'],'on');}),_0x47e3ae['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x56f915}=this['editor']['model'],_0x5b7a76=this['editor']['config']['get']('footnotes.multiBlock');_0x56f915['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x56f915['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x56f915['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5b7a76?_0x56f915['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x56f915['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x56f915['addChildCheck'](_0x56c497=>{for(const _0x2f94f3 of _0x56c497)if('footnoteDefinition'===_0x2f94f3['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x340bee}=this,{conversion:_0x62578a,editing:_0x333ca5}=_0x340bee,{t:t}=_0x340bee['locale'];_0x62578a['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3611f6,{writer:_0x72b1c6,consumable:_0x238a79})=>{const _0x1c770d=_0x3611f6['getChild'](0x0);if(!_0x1c770d||!_0x1c770d['is']('element','a'))return null;const _0x15f052=_0x1c770d['getAttribute']('href')||'';if(!_0x15f052['startsWith']('#'))return null;const _0x4b0ea5=_0x15f052['replace'](/^#/,'');if(!_0x4b0ea5)return null;_0x238a79['consume'](_0x1c770d,{'name':!0x0,'attributes':['href']});for(const {item:_0x3423ac}of _0x333ca5['view']['createRangeIn'](_0x1c770d))_0x3423ac['is']('$textProxy')?_0x238a79['consume'](_0x3423ac['textNode'],{'name':!0x0}):_0x3423ac['is']('element')&&_0x238a79['consume'](_0x3423ac,{'name':!0x0});return _0x72b1c6['createElement']('footnoteRef',{'footnoteId':_0x4b0ea5});}}),_0x62578a['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x8ae5b6,{writer:_0x42ede3})=>createFootnoteRefView(_0x8ae5b6,_0x42ede3)}),_0x62578a['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x36dc8d,{writer:_0x2cbee6})=>{const _0x5d33c7=_0x36dc8d['getAttribute']('footnoteCounter');return toWidget(createFootnoteRefView(_0x36dc8d,_0x2cbee6),_0x2cbee6,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5d33c7)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4109cf}=this,{t:t}=_0x4109cf['locale'],{conversion:_0x5cb546}=_0x4109cf;_0x5cb546['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5cb546['for']('upcast')['add'](_0x507d6f=>{_0x507d6f['on']('element:ol',(_0x424b00,_0x25abc4,_0x3e4836)=>{const _0x2622d7=_0x25abc4['viewItem'];if(!_0x2622d7['hasClass']('footnotes-list')||!_0x25abc4['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3e4836['consumable']['consume'](_0x2622d7,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5df0be,modelCursor:_0x50b8a0}=_0x3e4836['convertChildren'](_0x25abc4['viewItem'],_0x25abc4['modelCursor']);_0x25abc4['modelRange']=_0x5df0be,_0x25abc4['modelCursor']=_0x50b8a0;}),_0x507d6f['on']('element:hr',(_0x19fc62,_0xb87ae5,_0xb5234a)=>{const _0x4c4193=_0xb87ae5['viewItem'];_0x4c4193['hasClass']('footnotes-divider')&&_0xb87ae5['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xb5234a['consumable']['consume'](_0x4c4193,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5cb546['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x19fad7,{writer:_0x5259c0})=>createFootnotesWrapperView(_0x5259c0)}),_0x5cb546['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1f6487,{writer:_0xb5249f})=>{const _0x53b55=createFootnotesWrapperView(_0xb5249f,{'data-footnotes-list-label':t('Footnotes')}),_0x337f36=toWidget(_0x53b55,_0xb5249f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xb5249f['setCustomProperty']('footnotesDefinitions',!0x0,_0x337f36),_0x337f36;}});}['_defineDefinitionConverters'](){const {editor:_0x3f90ae}=this,{conversion:_0x3ca874,locale:_0x150acf}=_0x3f90ae,_0x2b4d81=_0x3f90ae['config']['get']('footnotes.multiBlock');_0x3ca874['for']('upcast')['add'](_0x3fef30=>{_0x3fef30['on']('element:li',(_0x297d17,_0x458254,_0x2588d3)=>{const _0x59cbb8=_0x458254['viewItem'];if(!_0x59cbb8['hasClass']('footnote-definition')||!_0x59cbb8['getAttribute']('id'))return;const _0x4eb6ba=_0x59cbb8['parent'];if(!_0x4eb6ba['is']('element','ol')||!_0x4eb6ba['hasClass']('footnotes-list'))return;if(!_0x2588d3['consumable']['test'](_0x59cbb8,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x295251=_0x2588d3['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x59cbb8['getAttribute']('id')});if(!_0x2588d3['safeInsert'](_0x295251,_0x458254['modelCursor']))return;_0x2588d3['consumable']['consume'](_0x59cbb8,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x42d0f2=Array['from'](_0x59cbb8['getChildren']())['find'](_0x3dd622=>_0x3dd622['is']('element')&&_0x3dd622['hasClass']('footnote-content'));for(const _0x3adba4 of _0x59cbb8['getChildren']())_0x3adba4['is']('element')&&(_0x2588d3['consumable']['consume'](_0x3adba4,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2588d3['consumable']['consume'](_0x3adba4,{'name':!0x0,'classes':'footnote-content'}));if(_0x42d0f2){if(_0x2b4d81)_0x2588d3['convertChildren'](_0x42d0f2,_0x295251);else{const _0x408124=_0x2588d3['writer']['createElement']('footnoteInlineContent');_0x2588d3['writer']['insert'](_0x408124,_0x295251),_0x2588d3['convertChildren'](_0x42d0f2,_0x408124);}}_0x2588d3['updateConversionResult'](_0x295251,_0x458254);});}),_0x3ca874['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3e4ff2,{writer:_0x151a14})=>createFootnoteDefinitionView(_0x3e4ff2,_0x151a14,_0x150acf,{'dataPipeline':!0x0})}),_0x3ca874['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4f589b,{writer:_0x31bb01})=>createFootnoteDefinitionView(_0x4f589b,_0x31bb01,_0x150acf)});}['_defineBogusParagraphConverters'](){const {editor:_0x3facaa}=this,{conversion:_0x1ef296}=_0x3facaa;_0x3facaa['config']['get']('footnotes.multiBlock')?(_0x1ef296['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':footnoteBogusParagraphCreator(),'converterPriority':'high'}),_0x1ef296['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':footnoteBogusParagraphCreator({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3facaa['model']['document'],'change:data',()=>{footnoteDefinitionRefreshHandler(_0x3facaa['model'],_0x3facaa['editing']);})):(_0x1ef296['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':footnoteBogusParagraphCreator()}),_0x1ef296['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x515e41,{writer:_0x5986e6})=>{const _0x455e17=_0x5986e6['createContainerElement']('span');return _0x5986e6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x455e17),_0x455e17;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4e2190}=this,{editing:_0x3b5714,t:t}=_0x4e2190,_0x19b63b=_0x4e2190['model']['document']['selection'];_0x4e2190['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4e2190['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3b5714['view']['document'],'enter',(_0x2cd57b,_0x36f8d2)=>{const _0x9465cb=getSelectedFootnoteRef(_0x19b63b);if(_0x9465cb){const _0x4fb567=_0x9465cb['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4fb567),_0x36f8d2['preventDefault'](),_0x2cd57b['stop']();}},{'context':isWidget});}['_defineClickHandlers'](){const {editor:_0x51c740}=this,{editing:_0x3cac12}=_0x51c740;_0x51c740['editing']['view']['addObserver'](PointerObserver),_0x51c740['editing']['view']['addObserver'](ClickObserver);let _0x30ff28=!0x1;this['listenTo'](_0x3cac12['view']['document'],'pointerdown',(_0x1d39f4,_0x35a85b)=>{const {target:_0x1d17f5}=_0x35a85b,_0x359715=_0x3cac12['view']['document']['selection'];_0x30ff28=!!(_0x1d17f5?.['is']('element','a')&&_0x1d17f5['parent']?.['is']('element','sup')&&_0x1d17f5['parent']['hasClass']('footnote'))&&_0x359715['getSelectedElement']()===_0x1d17f5['parent'];},{'priority':'high'}),this['listenTo'](_0x3cac12['view']['document'],'click',(_0x591c0f,_0xc6f18e)=>{const {target:_0x5d4865}=_0xc6f18e;if(!_0x5d4865?.['is']('element','a'))return;if(_0x5d4865['parent']?.['is']('element','sup')&&_0x5d4865['parent']['hasClass']('footnote')&&!_0x30ff28)return void _0xc6f18e['preventDefault']();let _0x1c8e70=_0x5d4865['getAttribute']('href');if(!_0x1c8e70?.['startsWith']('#'))return;_0x1c8e70=_0x1c8e70['slice'](0x1);let _0x55de08=!0x1;(_0x1c8e70['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1c8e70['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1c8e70))&&(_0x55de08=!0x0),_0x55de08&&(_0xc6f18e['preventDefault'](),_0x591c0f['stop']());},{'priority':'high','context':'$capture'});}}function getSelectedFootnoteRef(_0x57fabd){const _0xa792b2=_0x57fabd['getSelectedElement']();return _0xa792b2?.['is']('element','footnoteRef')?_0xa792b2:null;}function footnoteBogusParagraphCreator({dataPipeline:_0xa0b81}={}){return(_0x597bca,{writer:_0x268445})=>{if(!shouldUseBogusParagraphInFootnote(_0x597bca))return null;if(!_0xa0b81)return _0x268445['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2f778d=_0x268445['createContainerElement']('p');return _0x268445['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2f778d),_0x2f778d;};}function shouldUseBogusParagraphInFootnote(_0x4d28b7){const {parent:_0x2f58db}=_0x4d28b7;if(!_0x2f58db?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2f58db['childCount'])return!0x1;for(const _0x315e0d of _0x4d28b7['getAttributeKeys']())if(!_0x315e0d['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x315e0d)return!0x1;return!0x0;}function footnoteDefinitionRefreshHandler(_0x50be0d,_0xf62af0){const _0x541f8f=_0x50be0d['document']['differ'],_0x2d9ecf=new Set();for(const _0x4f5439 of _0x541f8f['getChanges']()){const _0xc09e4a='attribute'==_0x4f5439['type']?_0x4f5439['range']['start']['parent']:_0x4f5439['position']['parent'];_0xc09e4a['is']('element','footnoteDefinition')&&_0x2d9ecf['add'](_0xc09e4a);}for(const _0x8e8594 of _0x2d9ecf['values']()){const _0x120097=Array['from'](_0x8e8594['getChildren']())['filter'](_0xcc4fac=>shouldRefresh(_0xcc4fac,_0xf62af0['mapper']));for(const _0x3a9bd4 of _0x120097)_0xf62af0['reconvertItem'](_0x3a9bd4);}}function shouldRefresh(_0x40faac,_0x10fc8e){if(!_0x40faac['is']('element','paragraph'))return!0x1;const _0x40208e=_0x10fc8e['toViewElement'](_0x40faac);return!!_0x40208e&&shouldUseBogusParagraphInFootnote(_0x40faac)!==_0x40208e['is']('element','span');}function isFootnotesDefinitionsWidget(_0x5bde1e){return isWidget(_0x5bde1e)&&_0x5bde1e['is']('containerElement')&&!!_0x5bde1e['getCustomProperty']('footnotesDefinitions');}function createFootnotesWrapperView(_0x46694e,_0x4e871e={}){const _0x278ae7=_0x46694e['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x11049e=_0x46694e['createContainerElement']('ol',{'class':'footnotes-list'},_0x46694e['createSlot']());return _0x46694e['createContainerElement']('div',{'class':'footnotes',..._0x4e871e},[_0x278ae7,_0x11049e]);}function createFootnoteRefView(_0x10dd4b,_0x493875){const _0x59e8d2=_0x10dd4b['getAttribute']('footnoteId'),_0x5ab63f=_0x10dd4b['getAttribute']('footnoteCounter'),_0xf6a02d=_0x493875['createUIElement']('a',{'href':'#'+_0x59e8d2},function(_0x265693){const _0x5e9330=this['toDomElement'](_0x265693);return _0x5e9330['textContent']=_0x5ab63f,_0x5e9330;}),_0x211489=_0x493875['createContainerElement']('sup',{'id':'ref-'+_0x59e8d2,'class':'footnote'},[_0xf6a02d]);return _0x211489['getFillerOffset']=()=>null,_0x211489;}function createFootnoteDefinitionView(_0x3c23b9,_0x5651af,_0x145f5b,{dataPipeline:_0x76cd32}={}){const {t:t}=_0x145f5b,_0x379894=_0x3c23b9['getAttribute']('footnoteId'),_0x13456d=_0x5651af['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x379894},function(_0x5b93e){const _0x1c42b5=this['toDomElement'](_0x5b93e);return _0x1c42b5['innerText']='^',_0x1c42b5;}),_0x1c93ea=_0x76cd32?_0x5651af['createContainerElement']('div',{'class':'footnote-content'}):toWidgetEditable(_0x5651af['createEditableElement']('div',{'class':'footnote-content'}),_0x5651af,{'label':t('Footnote\x20content.')});return _0x5651af['insert'](_0x5651af['createPositionAt'](_0x1c93ea,0x0),_0x5651af['createSlot']()),_0x5651af['createContainerElement']('li',{'class':'footnote-definition','id':_0x379894},[_0x13456d,_0x1c93ea]);}async function checkLicense$c(_0x272b0c){const _0x303df3=_0x427ffb([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]),_0x1c79e3=window[_0x427ffb([0x44,0x61,0x74,0x65])][_0x427ffb([0x6e,0x6f,0x77])](),_0x4acf3c=_0x272b0c[_0x427ffb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e1773=new window[(_0x427ffb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d332c=>{_0x4acf3c[_0x427ffb([0x6f,0x6e,0x63,0x65])](_0x427ffb([0x72,0x65,0x61,0x64,0x79]),_0x4d332c);}),_0x31fbf6={[_0x427ffb([0x6b,0x74,0x79])]:_0x427ffb([0x45,0x43]),[_0x427ffb([0x75,0x73,0x65])]:_0x427ffb([0x73,0x69,0x67]),[_0x427ffb([0x63,0x72,0x76])]:_0x427ffb([0x50,0x2d,0x32,0x35,0x36]),[_0x427ffb([0x78])]:_0x427ffb([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]),[_0x427ffb([0x79])]:_0x427ffb([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]),[_0x427ffb([0x61,0x6c,0x67])]:_0x427ffb([0x45,0x53,0x32,0x35,0x36])},_0x5e76e7=_0x4acf3c[_0x427ffb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x427ffb([0x67,0x65,0x74])](_0x427ffb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x3491da=await(async function(){let _0x39d1f7,_0x383d9f=null,_0x13ee72=null;try{if(_0x5e76e7==_0x427ffb([0x47,0x50,0x4c]))return _0x427ffb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x39d1f7=(function(){const _0x1ddcb2=_0x5e76e7[_0x427ffb([0x73,0x70,0x6c,0x69,0x74])](_0x427ffb([0x2e]));if(0x3!=_0x1ddcb2[_0x427ffb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x16e16e=_0x1ddcb2[0x1];return _0x10afda(_0x16e16e);function _0x10afda(_0x360414){const _0x1e7e5a=_0x3b451e(_0x360414);return _0x1e7e5a&&_0x38209d()?_0x1e7e5a:null;function _0x38209d(){const _0x396b87=_0x1e7e5a[_0x427ffb([0x6a,0x74,0x69])],_0x1d790f=window[_0x427ffb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x396b87[_0x427ffb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x396b87[_0x427ffb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3de0ba={..._0x1e7e5a,[_0x427ffb([0x6a,0x74,0x69])]:_0x396b87[_0x427ffb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x396b87[_0x427ffb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3de0ba[_0x427ffb([0x76,0x63])],_0x560f29(_0x3de0ba)==_0x1d790f;}}}()),!_0x39d1f7)return _0x427ffb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x39d1f7[_0x427ffb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13ee72=function(_0x24bd8a,_0x1e5da9){return new window[(_0x427ffb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25ee8f=>{if(_0x5cb42a())return _0x25ee8f(_0x427ffb([0x56,0x61,0x6c,0x69,0x64]));_0x2d5a45(),_0x4acf3c[_0x427ffb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x427ffb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4dcf4f=!0x1;const _0x25d1e5=uid();function _0x24f887(_0x1fe383){return!!_0x1fe383&&(typeof _0x1fe383===_0x427ffb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1fe383===_0x427ffb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1fe383[_0x427ffb([0x74,0x68,0x65,0x6e])]===_0x427ffb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1fe383[_0x427ffb([0x63,0x61,0x74,0x63,0x68])]===_0x427ffb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fc750(_0x2c9525){_0x2d244e(_0x2c9525)[_0x427ffb([0x74,0x68,0x65,0x6e])](_0x24f835=>{if(!_0x24f835||_0x24f835[_0x427ffb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x427ffb([0x6f,0x6b]))return _0x427ffb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5fac4e(_0x560f29(_0x25d1e5+_0x1e5da9))!=_0x24f835[_0x427ffb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x427ffb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x427ffb([0x56,0x61,0x6c,0x69,0x64]);})[_0x427ffb([0x74,0x68,0x65,0x6e])](_0x1a8776=>(_0x1ee704(),_0x1a8776),()=>{const _0x1dc864=_0x557e8d();return null==_0x1dc864?(_0x1ee704(),_0x427ffb([0x56,0x61,0x6c,0x69,0x64])):_0x427ffb(_0x1c79e3-_0x1dc864>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x427ffb([0x74,0x68,0x65,0x6e])](_0x25ee8f)[_0x427ffb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25ee8f(_0x427ffb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x177960=0x36ee80;function _0x1ee704(){const _0x2dc552=_0x427ffb([0x6c,0x6c,0x63,0x74,0x2d])+_0x5fac4e(_0x560f29(_0x24bd8a)),_0x3f2d68=_0x4e9c96(_0x5fac4e(window[_0x427ffb([0x4d,0x61,0x74,0x68])][_0x427ffb([0x63,0x65,0x69,0x6c])](_0x1c79e3/_0x177960)));window[_0x427ffb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x427ffb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dc552,_0x3f2d68);}function _0x557e8d(){const _0x5e3a06=_0x427ffb([0x6c,0x6c,0x63,0x74,0x2d])+_0x5fac4e(_0x560f29(_0x24bd8a)),_0x5baabd=window[_0x427ffb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x427ffb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e3a06);return _0x5baabd?window[_0x427ffb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e9c96(_0x5baabd),0x10)*_0x177960:null;}function _0x2d244e(_0x1a0df3){return new window[(_0x427ffb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x362ed8,_0x846aa9)=>{_0x1a0df3[_0x427ffb([0x74,0x68,0x65,0x6e])](_0x362ed8,_0x846aa9),window[_0x427ffb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x846aa9,0x1d4c0);});}}_0x4acf3c[_0x427ffb([0x6f,0x6e])](_0x427ffb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x80df67,_0x3095ae)=>{if(_0x3095ae[0x0]!=_0x24bd8a)return _0x25ee8f(_0x427ffb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3095ae[0x1]={..._0x3095ae[0x1],[_0x427ffb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25d1e5};},{[_0x427ffb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x427ffb([0x68,0x69,0x67,0x68])}),_0x4acf3c[_0x427ffb([0x6f,0x6e])](_0x427ffb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x22b7b7=>{_0x24f887(_0x22b7b7[_0x427ffb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4dcf4f=!0x0,_0x3fc750(_0x22b7b7[_0x427ffb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x427ffb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x427ffb([0x6c,0x6f,0x77])}),_0x3e1773[_0x427ffb([0x74,0x68,0x65,0x6e])](()=>{_0x4dcf4f||_0x25ee8f(_0x427ffb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cb42a(){return _0x4acf3c[_0x427ffb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x427ffb([0x76,0x69,0x65,0x77])][_0x427ffb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x427ffb([0x61,0x75,0x74,0x6f]);}function _0x2d5a45(){_0x4acf3c[_0x427ffb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x427ffb([0x76,0x69,0x65,0x77])][_0x427ffb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x427ffb([0x61,0x75,0x74,0x6f]);}}(_0x39d1f7[_0x427ffb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x39d1f7[_0x427ffb([0x6a,0x74,0x69])]));const _0x10aec4=await(async function(){let _0x58acaa=!0x0;try{const _0x2e1185=_0x5e76e7[_0x427ffb([0x73,0x70,0x6c,0x69,0x74])](_0x427ffb([0x2e])),[_0x5e98b3,_0x9cf7c2,_0xca9318]=_0x2e1185;return _0x3a0597(_0x5e98b3),await _0x39d11a(_0x5e98b3,_0x9cf7c2,_0xca9318),_0x58acaa;}catch{return!0x1;}function _0x3a0597(_0x1c1a78){const _0x256cbb=_0x3b451e(_0x1c1a78);_0x256cbb&&_0x256cbb[_0x427ffb([0x61,0x6c,0x67])]==_0x427ffb([0x45,0x53,0x32,0x35,0x36])||(_0x58acaa=!0x1);}async function _0x39d11a(_0x47474a,_0x249b28,_0x3e79a0){const _0x5f2ab0=window[_0x427ffb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x427ffb([0x66,0x72,0x6f,0x6d])](_0x285a91(_0x3e79a0),_0x24179c=>_0x24179c[_0x427ffb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c7917=new window[(_0x427ffb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x427ffb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47474a+_0x427ffb([0x2e])+_0x249b28),_0x360c47=window[_0x427ffb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x427ffb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x360c47)return;const _0x42546e=await _0x360c47[_0x427ffb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x427ffb([0x6a,0x77,0x6b]),_0x31fbf6,{[_0x427ffb([0x6e,0x61,0x6d,0x65])]:_0x427ffb([0x45,0x43,0x44,0x53,0x41]),[_0x427ffb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x427ffb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x427ffb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x360c47[_0x427ffb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x427ffb([0x6e,0x61,0x6d,0x65])]:_0x427ffb([0x45,0x43,0x44,0x53,0x41]),[_0x427ffb([0x68,0x61,0x73,0x68])]:{[_0x427ffb([0x6e,0x61,0x6d,0x65])]:_0x427ffb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x42546e,_0x5f2ab0,_0x5c7917)||(_0x58acaa=!0x1);}}());return _0x10aec4?(function(){const _0x5aaa23=_0x39d1f7[_0x427ffb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5aaa23)return!0x1;if(_0x5aaa23[_0x427ffb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x427ffb([0x2a])))return!0x0;if(_0x5aaa23[_0x427ffb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x427ffb([0x46,0x4f,0x4f])))return!0x0;return!0x1;}())?(function(){const _0x20839e=[_0x427ffb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x427ffb([0x74,0x72,0x69,0x61,0x6c])][_0x427ffb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39d1f7[_0x427ffb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c79e3/0x3e8:0x69d59a80;return _0x39d1f7[_0x427ffb([0x65,0x78,0x70])]<_0x20839e;}())?_0x427ffb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x108ac1=_0x39d1f7[_0x427ffb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x108ac1||0x0==_0x108ac1[_0x427ffb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10bf0d}=new URL(window[_0x427ffb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x108ac1[_0x427ffb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10bf0d))return!0x0;const _0x479c4f=_0x10bf0d[_0x427ffb([0x73,0x70,0x6c,0x69,0x74])](_0x427ffb([0x2e]));return _0x108ac1[_0x427ffb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc2bab=>_0xc2bab[_0x427ffb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x427ffb([0x2a])))[_0x427ffb([0x6d,0x61,0x70])](_0x24aa90=>_0x24aa90[_0x427ffb([0x73,0x70,0x6c,0x69,0x74])](_0x427ffb([0x2e])))[_0x427ffb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c736b=>_0x1c736b[_0x427ffb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x479c4f[_0x427ffb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x427ffb([0x6d,0x61,0x70])](_0x4bc59b=>Array(_0x479c4f[_0x427ffb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4bc59b[_0x427ffb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x427ffb([0x66,0x69,0x6c,0x6c])](_0x4bc59b[0x0]===_0x427ffb([0x2a])?_0x427ffb([0x2a]):'')[_0x427ffb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4bc59b))[_0x427ffb([0x73,0x6f,0x6d,0x65])](_0x275c79=>_0x479c4f[_0x427ffb([0x65,0x76,0x65,0x72,0x79])]((_0x31964c,_0x39a3c5)=>_0x275c79[_0x39a3c5]===_0x31964c||_0x275c79[_0x39a3c5]===_0x427ffb([0x2a])));}())?(_0x39d1f7[_0x427ffb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x427ffb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x383d9f=function(_0x55d3dd){const _0x420f58=new window[(_0x427ffb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a3a8b=>setTimeout(_0x5a3a8b,0x93ecc)),_0x26ee5e=_0x3e1773[_0x427ffb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x427ffb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dd5f0=>{let _0x519cde=0x0;_0x4acf3c[_0x427ffb([0x6d,0x6f,0x64,0x65,0x6c])][_0x427ffb([0x6f,0x6e])](_0x427ffb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x407a13,_0x1dbf3d)=>{_0x1dbf3d[0x0][_0x427ffb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x519cde++,0x5e8==_0x519cde&&(_0x5dd5f0(),_0x407a13[_0x427ffb([0x6f,0x66,0x66])]());});})),_0x652397=[_0x420f58,_0x26ee5e];return window[_0x427ffb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x427ffb([0x72,0x61,0x63,0x65])](_0x652397)[_0x427ffb([0x74,0x68,0x65,0x6e])](()=>_0x55d3dd);}(_0x427ffb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x383d9f&&_0x13ee72)return new window[(_0x427ffb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x231cf9,_0xdd12a)=>{_0x383d9f[_0x427ffb([0x74,0x68,0x65,0x6e])](_0x231cf9,_0xdd12a),_0x13ee72[_0x427ffb([0x74,0x68,0x65,0x6e])](_0x57cd5f=>{_0x57cd5f!=_0x427ffb([0x56,0x61,0x6c,0x69,0x64])&&_0x231cf9(_0x57cd5f);},_0xdd12a);});return _0x383d9f||_0x13ee72||_0x427ffb([0x56,0x61,0x6c,0x69,0x64]);}())):_0x427ffb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x427ffb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x427ffb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x427ffb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x3b451e(_0x48bf2c){return _0x48bf2c[_0x427ffb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x427ffb([0x65,0x79]))?JSON[_0x427ffb([0x70,0x61,0x72,0x73,0x65])](_0x285a91(_0x48bf2c)):null;}function _0x285a91(_0x14e403){return window[_0x427ffb([0x61,0x74,0x6f,0x62])](_0x14e403[_0x427ffb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x427ffb([0x2b]))[_0x427ffb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x427ffb([0x2f])));}function _0x560f29(_0x527640){let _0x2db031=0x1505;function _0xb5a074(_0x50daf3){for(let _0x57f2c4=0x0;_0x57f2c4<_0x50daf3[_0x427ffb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57f2c4++){const _0x4bc877=_0x50daf3[_0x427ffb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57f2c4);_0x2db031=(_0x2db031<<0x5)+_0x2db031+_0x4bc877,_0x2db031&=_0x2db031;}}return function _0x1998b0(_0x2bcb39){Array[_0x427ffb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bcb39)?_0x2bcb39[_0x427ffb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1998b0):_0x2bcb39&&typeof _0x2bcb39==_0x427ffb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x427ffb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bcb39)[_0x427ffb([0x73,0x6f,0x72,0x74])]()[_0x427ffb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a8945,_0x287a5d])=>{_0xb5a074(_0x3a8945),_0x1998b0(_0x287a5d);}):_0xb5a074(window[_0x427ffb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bcb39));}(_0x527640),_0x2db031>>>0x0;}function _0x5fac4e(_0x41756f){return _0x41756f[_0x427ffb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x427ffb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x427ffb([0x30]));}function _0x4e9c96(_0x5c7356){return _0x5c7356[_0x427ffb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x427ffb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x427ffb([0x6a,0x6f,0x69,0x6e])]('');}function _0x976ac4(){}function _0x427ffb(_0x1e92ae){return _0x1e92ae['map'](_0x5e53a4=>String['fromCharCode'](_0x5e53a4))['join']('');}!function(_0x2e858c){const _0xcf1083=(function(){const _0x42dcea=window[_0x427ffb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x427ffb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x427ffb([0x6e,0x6f,0x77])]())[_0x427ffb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x427ffb([0x2e]),'');let _0x150379=_0x427ffb([0x75]);for(let _0x3e3e54=0x0;_0x3e3e54<_0x42dcea[_0x427ffb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e3e54+=0x2){let _0x270553=window[_0x427ffb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42dcea[_0x427ffb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e3e54,_0x3e3e54+0x2));_0x270553>=_0x303df3[_0x427ffb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x270553-=_0x303df3[_0x427ffb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x150379+=_0x303df3[_0x270553];}return _0x150379;}());_0x4acf3c[_0xcf1083]=_0x427ffb([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e858c,_0x2e858c!=_0x427ffb([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x3e1773,_0x4acf3c[_0x427ffb([0x6d,0x6f,0x64,0x65,0x6c])][_0x427ffb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x976ac4,_0x4acf3c[_0x427ffb([0x6d,0x6f,0x64,0x65,0x6c])][_0x427ffb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x976ac4,_0x4acf3c[_0x427ffb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x427ffb([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x3491da);}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:_0x2dc738}=this,{plugins:_0x569fae,model:_0x1e3e8a}=_0x2dc738,_0x398863=_0x569fae['get'](ClipboardPipeline),_0xacae29=_0x569fae['get'](FootnotesTracker);this['listenTo'](_0x398863,'outputTransformation',(_0x3cfe40,_0x173eba)=>{const _0x1338d8=pickAllFootnotesRefsIdsFromRange(_0x1e3e8a['createRangeIn'](_0x173eba['content']));if(!_0x1338d8['length'])return;const _0x15d22a=_0xacae29['getFootnotes'](),_0x1ab51d=_0x1338d8['reduce']((_0x1f2378,_0x2ea48c)=>{const _0x5070b6=_0x15d22a['find'](_0x225042=>_0x225042['id']===_0x2ea48c);if(_0x5070b6){const _0x443971=_0x2dc738['data']['toView'](_0x5070b6['definition'],{'isClipboardPipeline':!0x0}),_0x4c3e35=_0x2dc738['data']['htmlProcessor']['toData'](_0x443971);_0x1f2378[_0x5070b6['id']]=_0x4c3e35;}return _0x1f2378;},Object['create'](null));_0x173eba['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x1ab51d));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x2cb0d9}=this,{model:_0x540c87,plugins:_0xa9ad34}=_0x2cb0d9,{view:_0x2c239b}=_0x2cb0d9['editing'],_0xd9de5c=_0xa9ad34['get'](ClipboardPipeline),_0x20cf7d=_0xa9ad34['get'](FootnotesTracker),_0x2ba720=_0x2cb0d9['config']['get']('footnotes.multiBlock');let _0x492f51=null;this['listenTo'](_0x2c239b['document'],'clipboardInput',(_0x2f4bc6,_0x433ae6)=>{const _0x5c2615=_0x433ae6['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x492f51=_0x5c2615?JSON['parse'](_0x5c2615):null;}),this['listenTo'](_0xd9de5c,'contentInsertion',(_0x533ca9,_0x58f94f)=>{const _0x4893db=_0x58f94f['sourceEditorId']===this['editor']['id'];_0x4893db&&'drop'===_0x58f94f['method']||_0x540c87['change'](_0x46f925=>{let _0x1f9198=_0x20cf7d['getFootnotesDefinitionsObjectElement']();const _0x2ba665=!!_0x1f9198&&Array['from'](_0x540c87['document']['selection']['getSelectedBlocks']())['includes'](_0x1f9198);if(!_0x492f51&&areThereFootnotesRefsInRange(_0x540c87['createRangeIn'](_0x58f94f['content']))&&(_0x492f51=extractFootnotesDefinitionsFromContent(_0x46f925,_0x58f94f['content'])),(_0x1f9198&&!_0x2ba665||!_0x1f9198&&!_0x492f51)&&removeFootnoteDefinitionsFromFragment(_0x46f925,_0x58f94f['content']),!_0x492f51)return;const {selection:_0x88e591}=_0x540c87['document'],_0x512de4=_0x88e591['getFirstRange']()['root'];_0x1f9198&&!_0x2ba665||(_0x1f9198=findFootnoteDefinitionsElementInFragment(_0x46f925,_0x58f94f['content']),_0x1f9198||=_0x20cf7d['_insertEmptyFootnotesDefinitionsContainer'](_0x46f925,_0x512de4));const _0x4e507f=Array['from'](_0x88e591['getRanges']())['flatMap'](pickAllFootnotesRefsIdsFromRange),_0x3f04c4=regenerateFootnoteIdsInFragment(_0x46f925,_0x58f94f['content'],_0x2318ad=>{if(!_0x4893db)return!0x0;return!!_0x20cf7d['getFootnote'](_0x2318ad)&&!_0x4e507f['includes'](_0x2318ad);});for(const [_0x24211a,_0x554ef6]of Object['entries'](_0x492f51)){const _0x41c648=_0x3f04c4[_0x24211a]||_0x24211a;let _0xb2a477;if('string'!=typeof _0x554ef6)_0xb2a477=_0x554ef6,_0x41c648!==_0x24211a&&_0x46f925['setAttribute']('footnoteId',_0x41c648,_0xb2a477);else{_0xb2a477=_0x46f925['createElement']('footnoteDefinition',{'footnoteId':_0x41c648});const _0x36dda5=_0x2cb0d9['data']['htmlProcessor']['toView'](_0x554ef6);let _0x3659bd;if(_0x2ba720)_0x3659bd=_0x2cb0d9['data']['toModel'](_0x36dda5,_0xb2a477);else{_0x3659bd=_0x46f925['createElement']('footnoteInlineContent');const _0x3c3568=_0x2cb0d9['data']['toModel'](_0x36dda5,_0x3659bd);_0x46f925['insert'](_0x3c3568,_0x3659bd);}_0x46f925['append'](_0x3659bd,_0xb2a477);}_0x46f925['insert'](_0xb2a477,_0x1f9198,'end');}_0x492f51=null;});});}}function removeFootnoteDefinitionsFromFragment(_0x22ac3c,_0x5919aa){const _0x502f23=[];for(const {item:_0x3fe508}of _0x22ac3c['createRangeIn'](_0x5919aa))_0x3fe508['is']('element','footnotesDefinitions')&&_0x502f23['push'](_0x3fe508);for(const _0x2a7f37 of _0x502f23)_0x22ac3c['remove'](_0x2a7f37);}function findFootnoteDefinitionsElementInFragment(_0x597ab0,_0x4d7785){for(const {item:_0x3dd85d}of _0x597ab0['createRangeIn'](_0x4d7785))if(_0x3dd85d['is']('element','footnotesDefinitions'))return _0x3dd85d;return null;}function pickAllFootnotesRefsIdsFromRange(_0x8df0df){const _0x592922=new Set();for(const {item:_0x3480a3}of _0x8df0df)_0x3480a3['is']('element','footnoteRef')&&_0x592922['add'](_0x3480a3['getAttribute']('footnoteId'));return Array['from'](_0x592922);}function areThereFootnotesRefsInRange(_0xcd9938){for(const {item:_0x1dfa81}of _0xcd9938)if(_0x1dfa81['is']('element','footnoteRef'))return!0x0;return!0x1;}function extractFootnotesDefinitionsFromContent(_0x4e97e1,_0xa91091){const _0x3aa8e8=findFootnoteDefinitionsElementInFragment(_0x4e97e1,_0xa91091);if(!_0x3aa8e8)return null;const _0x587c9e=Object['create'](null);for(const _0x416bff of _0x3aa8e8['getChildren']())_0x416bff['is']('element','footnoteDefinition')&&_0x416bff['hasAttribute']('footnoteId')&&(_0x587c9e[_0x416bff['getAttribute']('footnoteId')]=_0x4e97e1['cloneElement'](_0x416bff,!0x0));return Object['keys'](_0x587c9e)['length']?_0x587c9e:null;}function regenerateFootnoteIdsInFragment(_0x3cce67,_0x26ce9b,_0x3a361b){const _0x32cce1=Object['create'](null);for(const {item:_0x4f2c11}of _0x3cce67['createRangeIn'](_0x26ce9b))if(_0x4f2c11['is']('element','footnoteRef')){const _0x382a86=_0x4f2c11['getAttribute']('footnoteId');if(!_0x3a361b(_0x382a86))continue;_0x32cce1[_0x382a86]||(_0x32cce1[_0x382a86]=uid()),_0x3cce67['setAttribute']('footnoteId',_0x32cce1[_0x382a86],_0x4f2c11);}return _0x32cce1;}class FootnotesUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xbdd0c8}=this,{componentFactory:_0x411bc5}=_0xbdd0c8['ui'];_0x411bc5['add']('insertFootnote',getInsertFootnoteButtonCreator(_0xbdd0c8,ButtonView)),_0x411bc5['add']('menuBar:insertFootnote',getInsertFootnoteButtonCreator(_0xbdd0c8,MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2e4856=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x428f3b;for(const _0x4801d7 in _0x2e4856){const _0x4bf531=_0x4801d7,_0x576dbb=_0x2e4856[_0x4bf531];if('footnotesLicenseKeyValid'==_0x576dbb||'footnotesLicenseKeyInvalid'==_0x576dbb||'footnotesLicenseKeyExpired'==_0x576dbb||'footnotesLicenseKeyDomainLimit'==_0x576dbb||'footnotesLicenseKeyNotAllowed'==_0x576dbb||'footnotesLicenseKeyEvaluationLimit'==_0x576dbb||'footnotesLicenseKeyUsageLimit'==_0x576dbb){delete _0x2e4856[_0x4bf531],_0x428f3b=_0x576dbb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x428f3b&&_0x2e4856['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x428f3b&&_0x2e4856['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x428f3b&&_0x2e4856['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x428f3b&&_0x2e4856['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x428f3b&&_0x2e4856['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x428f3b&&_0x2e4856['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getInsertFootnoteButtonCreator(_0x216d8b,_0x103f3f){const _0x317b52=_0x216d8b['commands']['get']('insertFootnote');return _0x498a84=>{const {t:t}=_0x498a84,_0x40764f=new _0x103f3f(_0x498a84),_0x12250b=_0x40764f instanceof MenuBarMenuListItemButtonView;return _0x40764f['bind']('isEnabled')['to'](_0x317b52,'isEnabled'),_0x40764f['set']({'label':t(_0x12250b?'Footnote':'Insert\x20footnote'),'icon':IconFootnote,'tooltip':!0x0}),_0x40764f['on']('execute',()=>{_0x317b52['execute'](),_0x216d8b['editing']['view']['focus']();}),_0x40764f;};}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_DEFINITIONS_STYLES=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class FootnotesStyleCommand extends Command{['refresh'](){const {editor:_0x291ab6}=this,_0x33e3b0=_0x291ab6['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x33e3b0,this['value']=_0x33e3b0?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0xde6c75}){const {editor:_0x4458af}=this,_0x468c52=_0x4458af['plugins']['get'](FootnotesTracker),_0x229e30=_0x468c52['getFootnotesDefinitionsObjectElement']();_0x229e30&&FOOTNOTES_DEFINITIONS_STYLES['includes'](_0xde6c75)&&_0x4458af['model']['change'](_0x1d2cbf=>{_0x1d2cbf['setAttribute']('footnotesListStyle',_0xde6c75,_0x229e30),_0x468c52['_updateFootnotesCounters'](_0x1d2cbf);});}}class FootnotesStartCommand extends Command{['refresh'](){const {editor:_0x1808bf}=this,_0xd838c2=_0x1808bf['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0xd838c2,this['value']=_0xd838c2?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x4b5583}){const {editor:_0x24bbe0}=this,_0x196638=_0x24bbe0['plugins']['get'](FootnotesTracker),_0x536f88=_0x196638['getFootnotesDefinitionsObjectElement']();_0x536f88&&Number['isInteger'](_0x4b5583)&&_0x24bbe0['model']['change'](_0x4d1031=>{_0x4d1031['setAttribute']('footnotesListStart',_0x4b5583,_0x536f88),_0x196638['_updateFootnotesCounters'](_0x4d1031);});}}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:_0x4a1342}=this;_0x4a1342['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4a1342['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4a1342['commands']['add']('footnotesStyle',new FootnotesStyleCommand(_0x4a1342)),_0x4a1342['commands']['add']('footnotesStart',new FootnotesStartCommand(_0x4a1342)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3af06b}=this,{schema:_0x47feb3}=_0x3af06b['model'];_0x47feb3['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x3ad3cc}=this,{conversion:_0x560ea8,model:_0x662b8b}=_0x3ad3cc,{schema:_0x381da8}=_0x662b8b;_0x560ea8['for']('upcast')['add'](_0x11a9f0=>{_0x11a9f0['on']('element:ol',(_0x11bfab,_0x33d494,_0x525b7e)=>{const _0x3643ac=_0x33d494['viewItem'],_0x1c2466=_0x33d494['modelCursor']?.['parent'];_0x3643ac['hasClass']('footnotes-list')&&_0x1c2466?.['is']('element','footnotesDefinitions')&&(upcastFootnotesListStart(_0x3643ac,_0x1c2466,_0x525b7e,_0x381da8),upcastFootnotesListStyle(_0x3643ac,_0x1c2466,_0x525b7e,_0x381da8));});}),_0x560ea8['for']('downcast')['add'](_0x4192e3=>{_0x4192e3['on']('attribute:footnotesListStart:footnotesDefinitions',downcastFootnotesListStart()),_0x4192e3['on']('attribute:footnotesListStyle:footnotesDefinitions',downcastFootnotesListStyle());});}['_definePostfixer'](){const {editor:_0x183b17}=this,{model:_0x490bc3}=_0x183b17,_0x255695=_0x183b17['plugins']['get'](FootnotesTracker),_0x6d6de=this['_getDefaultListStyle'](),_0x3cc4d4=this['_getDefaultStartIndex']();_0x490bc3['document']['registerPostFixer'](_0x7d7f8d=>{const _0x193c8c=_0x490bc3['document']['differ']['getChanges']();let _0x2dd4fd=!0x1;for(const _0x585a3c of _0x193c8c){if('insert'!==_0x585a3c['type']||'$text'===_0x585a3c['name'])continue;const _0x5a58b0=_0x490bc3['createRangeOn'](_0x585a3c['position']['nodeAfter']);for(const _0x49b7c7 of _0x5a58b0['getItems']())_0x49b7c7['is']('element','footnotesDefinitions')&&(!_0x49b7c7['hasAttribute']('footnotesListStart')&&_0x490bc3['schema']['checkAttribute'](_0x49b7c7,'footnotesListStart')&&(_0x7d7f8d['setAttribute']('footnotesListStart',_0x3cc4d4,_0x49b7c7),_0x2dd4fd=!0x0),!_0x49b7c7['hasAttribute']('footnotesListStyle')&&_0x490bc3['schema']['checkAttribute'](_0x49b7c7,'footnotesListStyle')&&(_0x7d7f8d['setAttribute']('footnotesListStyle',_0x6d6de,_0x49b7c7),_0x2dd4fd=!0x0));}return _0x2dd4fd&&_0x255695['_updateFootnotesCounters'](_0x7d7f8d),_0x2dd4fd;});}['_defineFormatter'](){const {editor:_0x35bf06}=this;_0x35bf06['plugins']['get'](FootnotesTracker)['setFootnoteFormatter'](_0x5c98cf=>this['_formatFootnoteListValue'](_0x5c98cf));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2ed2b3,value:_0xde2e1f,digits:_0xf9aff5}){const _0x1f1924=_0x2ed2b3['getAttribute']('footnotesListStyle'),_0x5a6f0d=_0x2ed2b3['getAttribute']('footnotesListStart'),_0x508b19=Math['floor'](_0xde2e1f)+(_0x5a6f0d??0x1)-0x1;switch(_0x1f1924){case'decimal-leading-zero':return formatDecimalLeadingZero(_0x508b19,Math['max'](0x2,_0xf9aff5));case'lower-alpha':case'lower-latin':return toLatin(_0x508b19,!0x1);case'upper-alpha':case'upper-latin':return toLatin(_0x508b19,!0x0);case'lower-roman':return toRoman(_0x508b19,!0x1);case'upper-roman':return toRoman(_0x508b19,!0x0);default:return String(_0x508b19);}}}function upcastFootnotesListStart(_0x592a5d,_0x3ab736,_0x5551af,_0xd80be3){if(!_0xd80be3['checkAttribute'](_0x3ab736,'footnotesListStart'))return;let _0x427c2f=0x1;const _0x3eceda=_0x5551af['consumable']['consume'](_0x592a5d,{'attributes':'start'});if(_0x3eceda){const _0x8cc1ba=Number['parseInt'](_0x592a5d['getAttribute']('start'),0xa);Number['isNaN'](_0x8cc1ba)||(_0x427c2f=_0x8cc1ba);}!_0x3eceda&&_0x3ab736['hasAttribute']('footnotesListStart')||_0x5551af['writer']['setAttribute']('footnotesListStart',_0x427c2f,_0x3ab736);}function upcastFootnotesListStyle(_0x2d8bbd,_0x4470ff,_0x355f29,_0xce4a4a){if(!_0xce4a4a['checkAttribute'](_0x4470ff,'footnotesListStyle'))return;let _0x4848c8='decimal',_0x106ccc=!0x1;if(_0x355f29['consumable']['consume'](_0x2d8bbd,{'attributes':'type'})){const _0xd70092={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2d8bbd['getAttribute']('type')];_0xd70092&&(_0x4848c8=_0xd70092),_0x106ccc=!0x0;}_0x355f29['consumable']['consume'](_0x2d8bbd,{'styles':'list-style-type'})&&(_0x4848c8=normalizeFootnotesListStyle(_0x2d8bbd['getStyle']('list-style-type')),_0x106ccc=!0x0),!_0x106ccc&&_0x4470ff['hasAttribute']('footnotesListStyle')||_0x355f29['writer']['setAttribute']('footnotesListStyle',_0x4848c8,_0x4470ff);}function normalizeFootnotesListStyle(_0xcb7bb8){switch(_0xcb7bb8){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0xcb7bb8;}}function downcastFootnotesListStart(){return(_0x3d8559,_0x500acf,_0x147bc2)=>{if(!_0x147bc2['consumable']['consume'](_0x500acf['item'],_0x3d8559['name']))return;const _0x2844e7=getOlElementFromFootnotesDefinitions(_0x500acf['item'],_0x147bc2['mapper']),{attributeNewValue:_0xa3f2c0}=_0x500acf;null==_0xa3f2c0||0x1===_0xa3f2c0?_0x147bc2['writer']['removeAttribute']('start',_0x2844e7):_0x147bc2['writer']['setAttribute']('start',String(_0xa3f2c0),_0x2844e7);};}function downcastFootnotesListStyle(){return(_0x280cdc,_0x58f528,_0x101477)=>{if(!_0x101477['consumable']['consume'](_0x58f528['item'],_0x280cdc['name']))return;const _0x4282a3=getOlElementFromFootnotesDefinitions(_0x58f528['item'],_0x101477['mapper']),{attributeNewValue:_0x28e0ee}=_0x58f528;_0x28e0ee&&'decimal'!==_0x28e0ee?_0x101477['writer']['setStyle']('list-style-type',_0x28e0ee,_0x4282a3):_0x101477['writer']['removeStyle']('list-style-type',_0x4282a3);};}function getOlElementFromFootnotesDefinitions(_0x911308,_0x1269cb){const _0x422d46=_0x1269cb['toViewElement'](_0x911308);return Array['from'](_0x422d46['getChildren']())['find'](_0x539154=>_0x539154['is']('element','ol')&&_0x539154['hasClass']('footnotes-list'));}function formatDecimalLeadingZero(_0x1659fc,_0x429a62){return String(_0x1659fc)['padStart'](_0x429a62,'0');}function toLatin(_0x210e43,_0x366cac){let _0x124a92='',_0x4361c5=_0x210e43;for(;_0x4361c5>0x0;){const _0x485490=(_0x4361c5-0x1)%0x1a;_0x124a92=String['fromCharCode'](0x61+_0x485490)+_0x124a92,_0x4361c5=Math['floor']((_0x4361c5-0x1)/0x1a);}return _0x366cac?_0x124a92['toUpperCase']():_0x124a92;}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 toRoman(_0x230952,_0x53011a){let _0xe5b679='',_0x8c3cf=_0x230952;for(const {value:_0x400b6a,numeral:_0x400ad8}of ROMAN_MAP)for(;_0x8c3cf>=_0x400b6a;)_0xe5b679+=_0x400ad8,_0x8c3cf-=_0x400b6a;return _0x53011a?_0xe5b679:_0xe5b679['toLowerCase']();}class FootnotesDefinitionsPropertiesView extends View{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0x235c55,{styleButtonViews:_0x953cd8,styleGridAriaLabel:_0xb97a1}){super(_0x235c55),(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'](_0x953cd8,_0xb97a1),[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 _0x279e70 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x279e70['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x19b45e['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 _0x53b52d=_0x2aa358=>_0x2aa358['stopPropagation']();this['keystrokes']['set']('arrowright',_0x53b52d),this['keystrokes']['set']('arrowleft',_0x53b52d),this['keystrokes']['set']('arrowup',_0x53b52d),this['keystrokes']['set']('arrowdown',_0x53b52d);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x1d3cfe,_0x5efb9c){const _0x46e004=new View(this['locale']);return _0x46e004['children']=_0x46e004['createCollection'](),_0x46e004['children']['addMany'](_0x1d3cfe),_0x46e004['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5efb9c,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x46e004['children']}),_0x46e004['children']['delegate']('execute')['to'](this),_0x46e004['focus']=function(){for(const _0x4ca9c0 of this['children'])if(_0x4ca9c0 instanceof ButtonView&&_0x4ca9c0['isOn'])return void _0x4ca9c0['focus']();this['children']['first']['focus']();},_0x46e004['focusTracker']=new FocusTracker(),_0x46e004['keystrokes']=new KeystrokeHandler(),_0x46e004['render'](),_0x46e004['keystrokes']['listenTo'](_0x46e004['element']),this['children']['add'](_0x46e004),_0x46e004;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x19f953=this['_createStartIndexPropertyView'](),_0x6cb8d9=[_0x19f953],_0x3a8f34=new CollapsibleView(this['locale'],_0x6cb8d9);return _0x3a8f34['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3a8f34['buttonView']['bind']('isEnabled')['toMany'](_0x6cb8d9,'isEnabled',(..._0x2b7b43)=>_0x2b7b43['some'](_0x45711e=>_0x45711e)),_0x3a8f34['buttonView']['on']('change:isEnabled',(_0x39443b,_0x281117,_0x23080c)=>{_0x23080c||(_0x3a8f34['isCollapsed']=!0x0);}),this['children']['add'](_0x3a8f34),[_0x19f953,_0x3a8f34];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5cfde5=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0x5cfde5['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5cfde5['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5cfde5['fieldView']['on']('input',()=>{const _0x1bc0dc=_0x5cfde5['fieldView']['element'],_0x9f42bf=_0x1bc0dc['valueAsNumber'];Number['isNaN'](_0x9f42bf)?_0x5cfde5['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1bc0dc['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x9f42bf}):_0x5cfde5['errorText']=t(_0x9f42bf<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5cfde5;}}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:_0x595f9f}=this,{componentFactory:_0x4ec4d7}=_0x595f9f['ui'];_0x595f9f['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4ec4d7['add']('footnotesStyle',getFootnotesStyleDropdownViewCreator(_0x595f9f));}['afterInit'](){const {editor:_0x285298}=this,{t:t}=_0x285298['locale'],_0x28270e=_0x285298['plugins']['get'](WidgetToolbarRepository),{defaultPositions:_0x2e9776}=BalloonPanelView;_0x28270e['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x285298['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x567861=>{let _0x4510c7=_0x567861['getFirstPosition']()?.['parent'];return _0x4510c7?.['is']('$text')&&(_0x4510c7=_0x4510c7['parent']),_0x4510c7?.['is']('element')?_0x4510c7['findAncestor'](isFootnotesDefinitionsWidget):null;},'positions':[_0x2e9776['southArrowNorth'],_0x2e9776['southArrowNorthMiddleWest'],_0x2e9776['southArrowNorthMiddleEast'],_0x2e9776['southArrowNorthWest'],_0x2e9776['southArrowNorthEast'],_0x2e9776['northArrowSouth'],_0x2e9776['northArrowSouthMiddleWest'],_0x2e9776['northArrowSouthMiddleEast'],_0x2e9776['northArrowSouthWest'],_0x2e9776['northArrowSouthEast'],_0x2e9776['viewportStickyNorth']]});}}function getFootnotesStyleDropdownViewCreator(_0x30307b){return _0x1a7d2f=>{const {t:t}=_0x1a7d2f,_0x58467b=_0x30307b['commands']['get']('footnotesStyle'),_0x1c6799=createDropdown(_0x1a7d2f),{buttonView:_0x558127}=_0x1c6799;return _0x1c6799['class']='ck-footnotes-styles-dropdown',_0x1c6799['bind']('isEnabled')['to'](_0x58467b,'isEnabled'),_0x558127['set']({'label':t('Footnotes\x20style'),'icon':IconFootnote,'tooltip':!0x0}),_0x1c6799['once']('change:isOpen',()=>{const _0x4056ab=createFootnotesDefinitionsPropertiesView({'editor':_0x30307b,'dropdownView':_0x1c6799});_0x1c6799['panelView']['children']['add'](_0x4056ab);}),_0x1c6799;};}function createFootnotesDefinitionsPropertiesView({editor:_0x592215,dropdownView:_0x406d84}){const {t:t}=_0x592215['locale'],_0x25e6db=t('Footnotes\x20definitions\x20styles'),_0xa1d630=createFootnotesDefinitionStyleButtons(_0x592215),_0x5e7280=new FootnotesDefinitionsPropertiesView(_0x592215['locale'],{'styleGridAriaLabel':_0x25e6db,'styleButtonViews':_0xa1d630}),_0x306c43=_0x592215['commands']['get']('footnotesStart');return _0x5e7280['startIndexFieldView']['bind']('isEnabled')['to'](_0x306c43),_0x5e7280['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x306c43),_0x5e7280['on']('footnotesListStart',(_0x443d23,_0x2edd1c)=>{_0x592215['execute']('footnotesStart',{'value':_0x2edd1c['startIndex']});}),_0x5e7280['delegate']('execute')['to'](_0x406d84),_0x5e7280;}function createFootnotesDefinitionStyleButtons(_0x46ec50){const t=_0x46ec50['locale']['t'];return[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':IconListStyleDecimal},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':IconListStyleDecimalLeadingZero},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':IconListStyleLowerRoman},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':IconListStyleUpperRoman},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':IconListStyleLowerLatin},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':IconListStyleUpperLatin}]['map'](getFootnoteStyleButtonCreator(_0x46ec50));}function getFootnoteStyleButtonCreator(_0x36a4ab){const _0x4ad4dd=_0x36a4ab['locale'];return({label:_0x3de23b,icon:_0xc55175,tooltip:_0x71be94,style:_0xe08799})=>{const _0x41081c=_0x36a4ab['commands']['get']('footnotesStyle'),_0x56d0a6=new ButtonView(_0x4ad4dd);return _0x56d0a6['set']({'label':_0x3de23b,'icon':_0xc55175,'tooltip':_0x71be94}),_0x56d0a6['bind']('isOn')['to'](_0x41081c,'value',_0x2a4ee4=>_0x2a4ee4===_0xe08799),_0x56d0a6['bind']('isEnabled')['to'](_0x41081c,'isEnabled'),_0x56d0a6['on']('execute',()=>{_0x36a4ab['execute']('footnotesStyle',{'value':_0xe08799}),_0x36a4ab['editing']['view']['focus']();}),_0x56d0a6;};}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(_0x2c4d65){super(_0x2c4d65),this['value']=void 0x0,this['on']('change:isEnabled',(_0x33010f,_0x3b274c,_0x2170bf)=>{_0x2170bf||this['reset']();}),this['on']('change:value',()=>_0x2c4d65['commands']['get'](PASTE_FORMAT_COMMAND_NAME)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0xf58c26=this['editor']['model'],_0x181ac5=_0xf58c26['document']['selection'];return Object['fromEntries'](Array['from'](_0x181ac5['getAttributes']())['filter'](([_0xd87285])=>_0xf58c26['schema']['getAttributeProperties'](_0xd87285)['isFormatting']));}}class PasteFormatCommand extends Command{constructor(_0x2b1ec3){super(_0x2b1ec3),this['_removeFormatCommand']=new RemoveFormatCommandAlias(_0x2b1ec3);}['execute'](_0x3ca674={}){const _0xb5a8bf=this['editor']['model'],_0x11adfa=_0xb5a8bf['document']['selection'],_0x204779=Array['from'](_0x11adfa['getRanges']()),_0xc16ec1=_0x11adfa['isCollapsed']?[this['_createRangeOnEntireWord'](_0xb5a8bf,_0x11adfa)]:_0x204779;_0xb5a8bf['change'](_0xb5120a=>{_0xb5120a['setSelection'](_0xc16ec1),this['_removeFormatCommand']['execute']();for(const _0x4c6085 in _0x3ca674)for(const _0x112a72 of _0xb5a8bf['schema']['getValidRanges'](_0xc16ec1,_0x4c6085))_0xb5120a['setAttribute'](_0x4c6085,_0x3ca674[_0x4c6085],_0x112a72);_0xb5120a['setSelection'](_0x204779);});}['_createRangeOnEntireWord'](_0x1d43b2,_0x43fad2){const _0x2424a8=_0x1d43b2['createSelection'](_0x43fad2);_0x1d43b2['modifySelection'](_0x2424a8,{'unit':'word','direction':'backward'});const _0x2fab2d=_0x2424a8['getFirstPosition']();_0x1d43b2['modifySelection'](_0x2424a8,{'unit':'word','direction':'forward'});const _0x19952e=_0x2424a8['getLastPosition']();return _0x1d43b2['createRange'](_0x2fab2d,_0x19952e);}}class RemoveFormatCommandAlias extends Command{['execute'](){const _0x504017=this['editor']['model'],_0x337a1e=_0x504017['schema'];_0x504017['change'](_0x9ed3f9=>{for(const _0x58d967 of this['_getFormattingItems'](_0x504017['document']['selection'],_0x337a1e))if(_0x58d967['is']('selection')){for(const _0x34e509 of this['_getFormattingAttributes'](_0x58d967,_0x337a1e))_0x9ed3f9['removeSelectionAttribute'](_0x34e509);}else{const _0x5c8a06=_0x9ed3f9['createRangeOn'](_0x58d967);for(const _0x500018 of this['_getFormattingAttributes'](_0x58d967,_0x337a1e))_0x9ed3f9['removeAttribute'](_0x500018,_0x5c8a06);}});}*['_getFormattingItems'](_0x75a895,_0x4ce127){const _0x5c20f0=_0x20c3ed=>!!first(this['_getFormattingAttributes'](_0x20c3ed,_0x4ce127));for(const _0x555a60 of _0x75a895['getRanges']())for(const _0x4592a6 of _0x555a60['getItems']())!_0x4ce127['isBlock'](_0x4592a6)&&_0x5c20f0(_0x4592a6)&&(yield _0x4592a6);for(const _0x25a358 of _0x75a895['getSelectedBlocks']())_0x5c20f0(_0x25a358)&&(yield _0x25a358);_0x5c20f0(_0x75a895)&&(yield _0x75a895);}*['_getFormattingAttributes'](_0xc68f2f,_0x2a1cee){for(const [_0x2e6096]of _0xc68f2f['getAttributes']()){const _0x11fabf=_0x2a1cee['getAttributeProperties'](_0x2e6096);_0x11fabf&&_0x11fabf['isFormatting']&&(yield _0x2e6096);}}}class FormatPainterEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x59f2ab=this['editor'];_0x59f2ab['commands']['add'](COPY_FORMAT_COMMAND_NAME,new CopyFormatCommand(_0x59f2ab)),_0x59f2ab['commands']['add'](PASTE_FORMAT_COMMAND_NAME,new PasteFormatCommand(_0x59f2ab)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x51efce=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x496fc8;for(const _0xb39a2b in _0x51efce){const _0x7d986c=_0xb39a2b,_0x350c72=_0x51efce[_0x7d986c];if('formatPainterLicenseKeyValid'==_0x350c72||'formatPainterLicenseKeyInvalid'==_0x350c72||'formatPainterLicenseKeyExpired'==_0x350c72||'formatPainterLicenseKeyDomainLimit'==_0x350c72||'formatPainterLicenseKeyNotAllowed'==_0x350c72||'formatPainterLicenseKeyEvaluationLimit'==_0x350c72||'formatPainterLicenseKeyUsageLimit'==_0x350c72){delete _0x51efce[_0x7d986c],_0x496fc8=_0x350c72,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x496fc8&&_0x51efce['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x496fc8&&_0x51efce['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x496fc8&&_0x51efce['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x496fc8&&_0x51efce['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x496fc8&&_0x51efce['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x496fc8&&_0x51efce['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getTranslation$b(_0x5195be,_0x11b62b){const t=_0x5195be['t'];switch(_0x11b62b){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.');default:return _0x11b62b;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
DomEmitterMixin(Plugin){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2e69b5=this['editor'];_0x2e69b5['editing']['view']['addObserver'](ClickObserver),_0x2e69b5['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$b(_0x2e69b5['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':getTranslation$b(_0x2e69b5['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x2e69b5['ui']['componentFactory']['add']('formatPainter',_0x2b7580=>{const _0x59ea61=createDropdown(_0x2b7580,SplitButtonView),_0x17c374=_0x2e69b5['commands']['get'](COPY_FORMAT_COMMAND_NAME);_0x59ea61['buttonView']['set']({'label':getTranslation$b(_0x2e69b5['locale'],'Paint\x20formatting'),'icon':IconPaintRoller,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x59ea61['class']='ck-format-painter-dropdown',_0x17c374&&(_0x59ea61['bind']('isEnabled')['to'](_0x17c374,'isEnabled'),this['listenTo'](_0x17c374,'change:isEnabled',(_0x94a154,_0x36b9e9,_0x4052cf)=>{_0x4052cf||this['_finishPainting']();}),_0x59ea61['buttonView']['bind']('isOn')['to'](_0x17c374,'value',_0x527f15=>!!_0x527f15),this['listenTo'](_0x2e69b5,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x17c374,'change:value',(_0x103844,_0xfb1080,_0xc96edd)=>{this['_toggleSpecialCursor'](!!_0xc96edd);}));const _0x188b59=new UIModel({'withText':!0x0,'label':getTranslation$b(_0x2e69b5['locale'],'Continuous\x20painting'),'tooltip':getTranslation$b(_0x2e69b5['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});addListToDropdown(_0x59ea61,new Collection([{'type':'switchbutton','model':_0x188b59}]),{'role':'menu'});const _0x16a130=()=>{this['_copyFormatting'](),this['listenTo'](_0x19b45e['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x188b59['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x59ea61,'execute',()=>{_0x188b59['isOn']=!_0x188b59['isOn'];}),this['listenTo'](_0x59ea61['buttonView'],'execute',()=>{_0x2e69b5['editing']['view']['focus'](),_0x59ea61['buttonView']['isOn']?this['_finishPainting']():_0x16a130();}),_0x2e69b5['keystrokes']['set']('Ctrl+Alt+C',(_0x3819e7,_0x380cb1)=>{_0x16a130(),_0x188b59['isOn']=!0x0,_0x380cb1();},{'priority':'high'}),_0x2e69b5['keystrokes']['set']('Ctrl+Alt+V',(_0x45e349,_0x14ac78)=>{_0x59ea61['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x188b59['isOn']||this['_finishPainting'](),_0x14ac78());},{'priority':'high'}),_0x2e69b5['keystrokes']['set']('Esc',(_0x1f7271,_0x4af97a)=>{_0x59ea61['buttonView']['isOn']&&(_0x188b59['isOn']=!0x1,this['_finishPainting'](),_0x4af97a());}),_0x59ea61;});}['afterInit'](){checkLicense$b(this);}['_toggleSpecialCursor'](_0x4dce9b){this['editor']['editing']['view']['change'](_0x1678ea=>{for(const _0xd4cfcb of this['editor']['editing']['view']['document']['roots'])_0x4dce9b?_0x1678ea['addClass'](CURSOR_ACTIVE_CSS_CLASS,_0xd4cfcb):_0x1678ea['removeClass'](CURSOR_ACTIVE_CSS_CLASS,_0xd4cfcb);});}['_copyFormatting'](){const {editor:_0x480bc2}=this;_0x480bc2['execute'](COPY_FORMAT_COMMAND_NAME),_0x480bc2['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x480bc2['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x1381c8}=this,_0x5de15d=_0x1381c8['commands']['get'](COPY_FORMAT_COMMAND_NAME)['value'];_0x1381c8['execute'](PASTE_FORMAT_COMMAND_NAME,_0x5de15d),_0x1381c8['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x1381c8['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](COPY_FORMAT_COMMAND_NAME)['reset'](),this['stopListening'](_0x19b45e['window']['document'],'mouseup');}}async function checkLicense$b(_0x24e7b9){const _0x308d71=_0x1fca1e([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]),_0x30273f=window[_0x1fca1e([0x44,0x61,0x74,0x65])][_0x1fca1e([0x6e,0x6f,0x77])](),_0x3aa712=_0x24e7b9[_0x1fca1e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d200c=new window[(_0x1fca1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xda68e2=>{_0x3aa712[_0x1fca1e([0x6f,0x6e,0x63,0x65])](_0x1fca1e([0x72,0x65,0x61,0x64,0x79]),_0xda68e2);}),_0x329fab={[_0x1fca1e([0x6b,0x74,0x79])]:_0x1fca1e([0x45,0x43]),[_0x1fca1e([0x75,0x73,0x65])]:_0x1fca1e([0x73,0x69,0x67]),[_0x1fca1e([0x63,0x72,0x76])]:_0x1fca1e([0x50,0x2d,0x32,0x35,0x36]),[_0x1fca1e([0x78])]:_0x1fca1e([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]),[_0x1fca1e([0x79])]:_0x1fca1e([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]),[_0x1fca1e([0x61,0x6c,0x67])]:_0x1fca1e([0x45,0x53,0x32,0x35,0x36])},_0x1f622f=_0x3aa712[_0x1fca1e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1fca1e([0x67,0x65,0x74])](_0x1fca1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0xc4db53=await(async function(){let _0x3fae31,_0x5a586a=null,_0x41fafd=null;try{if(_0x1f622f==_0x1fca1e([0x47,0x50,0x4c]))return _0x1fca1e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3fae31=(function(){const _0x477a5d=_0x1f622f[_0x1fca1e([0x73,0x70,0x6c,0x69,0x74])](_0x1fca1e([0x2e]));if(0x3!=_0x477a5d[_0x1fca1e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x112eee=_0x477a5d[0x1];return _0x4a6b56(_0x112eee);function _0x4a6b56(_0x23112b){const _0x3eed9f=_0x4e7bf4(_0x23112b);return _0x3eed9f&&_0x578428()?_0x3eed9f:null;function _0x578428(){const _0x22eb1f=_0x3eed9f[_0x1fca1e([0x6a,0x74,0x69])],_0x57f265=window[_0x1fca1e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22eb1f[_0x1fca1e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22eb1f[_0x1fca1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17c03e={..._0x3eed9f,[_0x1fca1e([0x6a,0x74,0x69])]:_0x22eb1f[_0x1fca1e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x22eb1f[_0x1fca1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17c03e[_0x1fca1e([0x76,0x63])],_0xbad71e(_0x17c03e)==_0x57f265;}}}()),!_0x3fae31)return _0x1fca1e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x3fae31[_0x1fca1e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41fafd=function(_0x3dbcb9,_0x1f0559){return new window[(_0x1fca1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d503f=>{if(_0x1bf596())return _0x3d503f(_0x1fca1e([0x56,0x61,0x6c,0x69,0x64]));_0x57c12e(),_0x3aa712[_0x1fca1e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1fca1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12cecd=!0x1;const _0x109740=uid();function _0x4f281f(_0x25849c){return!!_0x25849c&&(typeof _0x25849c===_0x1fca1e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25849c===_0x1fca1e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25849c[_0x1fca1e([0x74,0x68,0x65,0x6e])]===_0x1fca1e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25849c[_0x1fca1e([0x63,0x61,0x74,0x63,0x68])]===_0x1fca1e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f56e6(_0x5d362e){_0x3f0e94(_0x5d362e)[_0x1fca1e([0x74,0x68,0x65,0x6e])](_0x11828b=>{if(!_0x11828b||_0x11828b[_0x1fca1e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1fca1e([0x6f,0x6b]))return _0x1fca1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10d043(_0xbad71e(_0x109740+_0x1f0559))!=_0x11828b[_0x1fca1e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1fca1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1fca1e([0x56,0x61,0x6c,0x69,0x64]);})[_0x1fca1e([0x74,0x68,0x65,0x6e])](_0x1bd26a=>(_0x4b89ba(),_0x1bd26a),()=>{const _0x3f6b2c=_0x22511d();return null==_0x3f6b2c?(_0x4b89ba(),_0x1fca1e([0x56,0x61,0x6c,0x69,0x64])):_0x1fca1e(_0x30273f-_0x3f6b2c>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1fca1e([0x74,0x68,0x65,0x6e])](_0x3d503f)[_0x1fca1e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d503f(_0x1fca1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59e25a=0x36ee80;function _0x4b89ba(){const _0x292f87=_0x1fca1e([0x6c,0x6c,0x63,0x74,0x2d])+_0x10d043(_0xbad71e(_0x3dbcb9)),_0x189228=_0x2a831e(_0x10d043(window[_0x1fca1e([0x4d,0x61,0x74,0x68])][_0x1fca1e([0x63,0x65,0x69,0x6c])](_0x30273f/_0x59e25a)));window[_0x1fca1e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1fca1e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x292f87,_0x189228);}function _0x22511d(){const _0x3b8409=_0x1fca1e([0x6c,0x6c,0x63,0x74,0x2d])+_0x10d043(_0xbad71e(_0x3dbcb9)),_0x23a712=window[_0x1fca1e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1fca1e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b8409);return _0x23a712?window[_0x1fca1e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a831e(_0x23a712),0x10)*_0x59e25a:null;}function _0x3f0e94(_0x23f406){return new window[(_0x1fca1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b3f7f,_0x40d50b)=>{_0x23f406[_0x1fca1e([0x74,0x68,0x65,0x6e])](_0x1b3f7f,_0x40d50b),window[_0x1fca1e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x40d50b,0x1d4c0);});}}_0x3aa712[_0x1fca1e([0x6f,0x6e])](_0x1fca1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x141a7f,_0x5ca16a)=>{if(_0x5ca16a[0x0]!=_0x3dbcb9)return _0x3d503f(_0x1fca1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ca16a[0x1]={..._0x5ca16a[0x1],[_0x1fca1e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x109740};},{[_0x1fca1e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1fca1e([0x68,0x69,0x67,0x68])}),_0x3aa712[_0x1fca1e([0x6f,0x6e])](_0x1fca1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c133e=>{_0x4f281f(_0x5c133e[_0x1fca1e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12cecd=!0x0,_0x3f56e6(_0x5c133e[_0x1fca1e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1fca1e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1fca1e([0x6c,0x6f,0x77])}),_0x2d200c[_0x1fca1e([0x74,0x68,0x65,0x6e])](()=>{_0x12cecd||_0x3d503f(_0x1fca1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1bf596(){return _0x3aa712[_0x1fca1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1fca1e([0x76,0x69,0x65,0x77])][_0x1fca1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1fca1e([0x61,0x75,0x74,0x6f]);}function _0x57c12e(){_0x3aa712[_0x1fca1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1fca1e([0x76,0x69,0x65,0x77])][_0x1fca1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1fca1e([0x61,0x75,0x74,0x6f]);}}(_0x3fae31[_0x1fca1e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3fae31[_0x1fca1e([0x6a,0x74,0x69])]));const _0x5e5386=await(async function(){let _0x2cf9f6=!0x0;try{const _0x2e4769=_0x1f622f[_0x1fca1e([0x73,0x70,0x6c,0x69,0x74])](_0x1fca1e([0x2e])),[_0x50d4f7,_0x36b629,_0xfd5c7d]=_0x2e4769;return _0xcb1477(_0x50d4f7),await _0x4c8886(_0x50d4f7,_0x36b629,_0xfd5c7d),_0x2cf9f6;}catch{return!0x1;}function _0xcb1477(_0x478f97){const _0x11a8cb=_0x4e7bf4(_0x478f97);_0x11a8cb&&_0x11a8cb[_0x1fca1e([0x61,0x6c,0x67])]==_0x1fca1e([0x45,0x53,0x32,0x35,0x36])||(_0x2cf9f6=!0x1);}async function _0x4c8886(_0x4d3573,_0x1a0d35,_0x2ab1){const _0x991e2d=window[_0x1fca1e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1fca1e([0x66,0x72,0x6f,0x6d])](_0x34cca8(_0x2ab1),_0x34fbf7=>_0x34fbf7[_0x1fca1e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x144372=new window[(_0x1fca1e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1fca1e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d3573+_0x1fca1e([0x2e])+_0x1a0d35),_0x13195a=window[_0x1fca1e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1fca1e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13195a)return;const _0x224deb=await _0x13195a[_0x1fca1e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1fca1e([0x6a,0x77,0x6b]),_0x329fab,{[_0x1fca1e([0x6e,0x61,0x6d,0x65])]:_0x1fca1e([0x45,0x43,0x44,0x53,0x41]),[_0x1fca1e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1fca1e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1fca1e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13195a[_0x1fca1e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1fca1e([0x6e,0x61,0x6d,0x65])]:_0x1fca1e([0x45,0x43,0x44,0x53,0x41]),[_0x1fca1e([0x68,0x61,0x73,0x68])]:{[_0x1fca1e([0x6e,0x61,0x6d,0x65])]:_0x1fca1e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x224deb,_0x991e2d,_0x144372)||(_0x2cf9f6=!0x1);}}());return _0x5e5386?(function(){const _0x32e82f=_0x3fae31[_0x1fca1e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x32e82f)return!0x1;if(_0x32e82f[_0x1fca1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fca1e([0x2a])))return!0x0;if(_0x32e82f[_0x1fca1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fca1e([0x46,0x50])))return!0x0;if(_0x32e82f[_0x1fca1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fca1e([0x50,0x50])))return!0x0;if(_0x32e82f[_0x1fca1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fca1e([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x1fca1e([0x67,0x6c,0x6f,0x62])]&&window[_0x1fca1e([0x67,0x6c,0x6f,0x62])][_0x1fca1e([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x285089=[_0x1fca1e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1fca1e([0x74,0x72,0x69,0x61,0x6c])][_0x1fca1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fae31[_0x1fca1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30273f/0x3e8:0x69d59a80;return _0x3fae31[_0x1fca1e([0x65,0x78,0x70])]<_0x285089;}())?_0x1fca1e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x2958de=_0x3fae31[_0x1fca1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2958de||0x0==_0x2958de[_0x1fca1e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c16b9}=new URL(window[_0x1fca1e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2958de[_0x1fca1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c16b9))return!0x0;const _0x4bebed=_0x1c16b9[_0x1fca1e([0x73,0x70,0x6c,0x69,0x74])](_0x1fca1e([0x2e]));return _0x2958de[_0x1fca1e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44e412=>_0x44e412[_0x1fca1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fca1e([0x2a])))[_0x1fca1e([0x6d,0x61,0x70])](_0x42ad6a=>_0x42ad6a[_0x1fca1e([0x73,0x70,0x6c,0x69,0x74])](_0x1fca1e([0x2e])))[_0x1fca1e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x270fde=>_0x270fde[_0x1fca1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4bebed[_0x1fca1e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1fca1e([0x6d,0x61,0x70])](_0x514ae8=>Array(_0x4bebed[_0x1fca1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x514ae8[_0x1fca1e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1fca1e([0x66,0x69,0x6c,0x6c])](_0x514ae8[0x0]===_0x1fca1e([0x2a])?_0x1fca1e([0x2a]):'')[_0x1fca1e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x514ae8))[_0x1fca1e([0x73,0x6f,0x6d,0x65])](_0x2b1303=>_0x4bebed[_0x1fca1e([0x65,0x76,0x65,0x72,0x79])]((_0x54e141,_0x505e24)=>_0x2b1303[_0x505e24]===_0x54e141||_0x2b1303[_0x505e24]===_0x1fca1e([0x2a])));}())?(_0x3fae31[_0x1fca1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1fca1e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a586a=function(_0x1b73cc){const _0x3ba3ef=new window[(_0x1fca1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cd5f6=>setTimeout(_0x2cd5f6,0x93ecc)),_0x1ab911=_0x2d200c[_0x1fca1e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1fca1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x297a3b=>{let _0x7b107f=0x0;_0x3aa712[_0x1fca1e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1fca1e([0x6f,0x6e])](_0x1fca1e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x292844,_0x21d7fa)=>{_0x21d7fa[0x0][_0x1fca1e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x7b107f++,0x5e8==_0x7b107f&&(_0x297a3b(),_0x292844[_0x1fca1e([0x6f,0x66,0x66])]());});})),_0x4a2067=[_0x3ba3ef,_0x1ab911];return window[_0x1fca1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1fca1e([0x72,0x61,0x63,0x65])](_0x4a2067)[_0x1fca1e([0x74,0x68,0x65,0x6e])](()=>_0x1b73cc);}(_0x1fca1e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5a586a&&_0x41fafd)return new window[(_0x1fca1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35fd61,_0x4ed444)=>{_0x5a586a[_0x1fca1e([0x74,0x68,0x65,0x6e])](_0x35fd61,_0x4ed444),_0x41fafd[_0x1fca1e([0x74,0x68,0x65,0x6e])](_0x2c9f3f=>{_0x2c9f3f!=_0x1fca1e([0x56,0x61,0x6c,0x69,0x64])&&_0x35fd61(_0x2c9f3f);},_0x4ed444);});return _0x5a586a||_0x41fafd||_0x1fca1e([0x56,0x61,0x6c,0x69,0x64]);}())):_0x1fca1e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1fca1e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1fca1e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1fca1e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x4e7bf4(_0x1571f4){return _0x1571f4[_0x1fca1e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1fca1e([0x65,0x79]))?JSON[_0x1fca1e([0x70,0x61,0x72,0x73,0x65])](_0x34cca8(_0x1571f4)):null;}function _0x34cca8(_0x4109b8){return window[_0x1fca1e([0x61,0x74,0x6f,0x62])](_0x4109b8[_0x1fca1e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1fca1e([0x2b]))[_0x1fca1e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1fca1e([0x2f])));}function _0xbad71e(_0x482ddd){let _0x20fa89=0x1505;function _0x15a38d(_0x5525cc){for(let _0xeb88ee=0x0;_0xeb88ee<_0x5525cc[_0x1fca1e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xeb88ee++){const _0x398ce0=_0x5525cc[_0x1fca1e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xeb88ee);_0x20fa89=(_0x20fa89<<0x5)+_0x20fa89+_0x398ce0,_0x20fa89&=_0x20fa89;}}return function _0xa1844a(_0x37b205){Array[_0x1fca1e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37b205)?_0x37b205[_0x1fca1e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa1844a):_0x37b205&&typeof _0x37b205==_0x1fca1e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1fca1e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37b205)[_0x1fca1e([0x73,0x6f,0x72,0x74])]()[_0x1fca1e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57e3f9,_0x143c83])=>{_0x15a38d(_0x57e3f9),_0xa1844a(_0x143c83);}):_0x15a38d(window[_0x1fca1e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37b205));}(_0x482ddd),_0x20fa89>>>0x0;}function _0x10d043(_0x325f6f){return _0x325f6f[_0x1fca1e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1fca1e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1fca1e([0x30]));}function _0x2a831e(_0x490d47){return _0x490d47[_0x1fca1e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1fca1e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1fca1e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f55ca(){}function _0x1fca1e(_0x5ba2e4){return _0x5ba2e4['map'](_0x200146=>String['fromCharCode'](_0x200146))['join']('');}!function(_0x59fcfa){const _0x5e7a55=(function(){const _0x4149b3=window[_0x1fca1e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1fca1e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1fca1e([0x6e,0x6f,0x77])]())[_0x1fca1e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1fca1e([0x2e]),'');let _0x292aa9=_0x1fca1e([0x51]);for(let _0x5b31df=0x0;_0x5b31df<_0x4149b3[_0x1fca1e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b31df+=0x2){let _0xee7540=window[_0x1fca1e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4149b3[_0x1fca1e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b31df,_0x5b31df+0x2));_0xee7540>=_0x308d71[_0x1fca1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xee7540-=_0x308d71[_0x1fca1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x292aa9+=_0x308d71[_0xee7540];}return _0x292aa9;}());_0x3aa712[_0x5e7a55]=_0x1fca1e([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59fcfa,_0x59fcfa!=_0x1fca1e([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2d200c,_0x3aa712[_0x1fca1e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1fca1e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f55ca,_0x3aa712[_0x1fca1e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1fca1e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f55ca,_0x3aa712[_0x1fca1e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1fca1e([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0xc4db53);}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(_0x365f2a,_0x3b2dd4){const t=_0x365f2a['t'];switch(_0x3b2dd4){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 _0x3b2dd4;}}class ImportWordUI extends Plugin{static get['pluginName'](){return'ImportWordUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x197bf3=this['editor'];_0x197bf3['ui']['componentFactory']['add']('importWord',()=>{const _0x55f83a=this['_createButton'](FileDialogButtonView),_0x150d20=_0x197bf3['commands']['get']('importWord');return _0x55f83a['bind']('isOn')['to'](_0x150d20,'isBusy'),_0x55f83a['tooltip']=!0x0,_0x55f83a;}),_0x197bf3['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](MenuBarMenuListItemFileDialogButtonView));}['_createButton'](_0x1278ee){const _0x4c894f=this['editor'],_0x5b019a=_0x4c894f['commands']['get']('importWord'),_0x14667c=new _0x1278ee(_0x4c894f['locale']),_0x34b874=new SpinnerView();return _0x14667c['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x14667c['set']({'icon':IconImportWord}),_0x14667c['bind']('isEnabled')['to'](_0x5b019a),_0x14667c['bind']('label')['to'](_0x5b019a,'isBusy',_0x83f237=>getTranslation$a(_0x4c894f['locale'],_0x83f237?'Importing\x20Word\x20document':'Import\x20from\x20Word')),_0x34b874['bind']('isVisible')['to'](_0x5b019a,'isBusy'),_0x14667c['iconView']['bind']('isVisible')['to'](_0x5b019a,'isBusy',_0x23b562=>!_0x23b562),_0x14667c['children']['add'](_0x34b874),_0x14667c['on']('done',(_0x4fb649,_0x3f9406)=>{_0x4c894f['execute']('importWord',_0x3f9406[0x0],{}),_0x4c894f['editing']['view']['focus']();}),_0x14667c;}}class ImportWordCommand extends Command{['_importMarker'];['_undoStepBatch'];['_abortController'];constructor(_0x14dc4b){super(_0x14dc4b),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x42aae9,_0x5bf177)=>{const _0x14087d=new DataTransfer();_0x14087d['setData']('text/html',_0x5bf177['html']);const _0x5bc218=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x58d95e=>{this['_importMarker']['stopListening'](),_0x58d95e['setSelection'](_0x5bc218),_0x14dc4b['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x14087d});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3b8398,_0x2ed05e={}){if(this['isBusy'])return Promise['resolve']();const _0x3caeab=this['editor']['config']['get']('importWord');if(this['editor']['plugins']['has']('MergeFields')){const {prefix:_0x44fb38,suffix:_0xe07c78}=this['editor']['config']['get']('mergeFields');_0x2ed05e['merge_fields']={'prefix':_0x44fb38,'suffix':_0xe07c78};}const _0x1acf34={'url':_0x3caeab['converterUrl'],'file':_0x3b8398,'serviceConfig':{..._0x2ed05e,'formatting':_0x3caeab['formatting'],'timezone':new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0x1acf34)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0x54462d=this['editor']['model'],_0x555ec5=_0x54462d['schema'],_0x55a882=_0x54462d['document']['selection'],_0x39e5b5=first(_0x55a882['getSelectedBlocks']());return!!_0x39e5b5&&_0x555ec5['checkChild'](_0x39e5b5['parent'],'paragraph');}['_prepareForImport'](){const _0x568ea2=this['editor'],_0x423d52=_0x568ea2['model'],_0x549ec8=_0x423d52['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x568ea2['model']['createBatch']({'isUndoable':!0x0}),_0x423d52['enqueueChange'](this['_undoStepBatch'],_0x33e21e=>{_0x549ec8['isCollapsed']||_0x423d52['deleteContent'](_0x549ec8,{'leaveUnmerged':!0x0});const _0x553217=_0x549ec8['getFirstPosition'](),_0x4bb766=first(_0x549ec8['getSelectedBlocks']());let _0x2a7954;_0x2a7954=_0x4bb766['is']('element','paragraph')&&_0x4bb766['isEmpty']?_0x553217:_0x553217['isAtStart']?_0x423d52['createPositionBefore'](_0x4bb766):_0x553217['isAtEnd']?_0x423d52['createPositionAfter'](_0x4bb766):_0x33e21e['split'](_0x553217)['position'],this['_importMarker']=_0x33e21e['addMarker']('importWord:'+uid(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new ModelRange(_0x2a7954)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['_cleanUpAfterImport'](){const _0x3e054b=this['editor']['model'];_0x3e054b['markers']['has'](this['_importMarker'])&&_0x3e054b['enqueueChange'](this['_undoStepBatch'],_0x6682f2=>{_0x6682f2['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}['_sendImportRequest']({url:_0xc0676d,file:_0x2b7bfb,serviceConfig:_0x3e01ed}){const _0x5cdb4a=this['editor']['plugins']['get']('ImportWordEditing')['getToken'](),_0x57e0b9=new FormData();_0x57e0b9['set']('config',JSON['stringify'](_0x3e01ed)),_0x57e0b9['set']('file',_0x2b7bfb);const _0x132f26={'method':'POST','headers':{},'body':_0x57e0b9,'signal':this['_abortController']['signal']};return _0x5cdb4a&&(_0x132f26['headers']['Authorization']=_0x5cdb4a['value']),fetch(_0xc0676d,_0x132f26);}['_handleImportResponse'](_0x1e4606){return _0x1e4606['ok']?_0x1e4606['json']()['then'](_0x458221=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',{..._0x458221,'undoStepBatch':this['_undoStepBatch']});}):Promise['reject']();}['_handleImportFailure'](){if(this['_abortController']['signal']['aborted'])return void logWarning('import-word-plugin-import-cancelled');const _0x1647d7=this['editor'],_0x4771bb=getTranslation$a(_0x1647d7['locale'],'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x1647d7['plugins']['get']('Notification')['showWarning'](_0x4771bb),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'];}constructor(_0x482d66){super(_0x482d66),this['_token']=null;}async['init'](){const _0x212995=this['editor'];_0x212995['config']['define']('importWord',{'converterUrl':'https://docx-converter.cke-cs.com/v2/convert/docx-html','tokenUrl':(_0x212995['config']['get']('cloudServices')||{})['tokenUrl'],'formatting':{'resets':'none','defaults':'none','styles':'inline'}}),_0x212995['commands']['add']('importWord',new ImportWordCommand(_0x212995));const {tokenUrl:_0x32e012}=_0x212995['config']['get']('importWord');if(_0x32e012){const {tokenUrl:_0x51fb84}=_0x212995['config']['get']('cloudServices')||{};this['_token']=_0x32e012===_0x51fb84?_0x212995['plugins']['get']('CloudServices')['token']:await _0x212995['plugins']['get']('CloudServices')['registerTokenUrl'](_0x32e012);}}['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 _0x4cdc27=this['editor']['model']['document'],_0x5770f8=first(_0x4cdc27['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x5770f8)&&this['_canHaveLineHeight'](_0x5770f8),this['value']=this['isEnabled']&&_0x5770f8['getAttribute']('lineHeight');}['execute'](_0x5b6325={}){const _0x18c935=this['editor']['model'],_0x2452a6=_0x18c935['document']['selection'],_0x147db4=_0x5b6325['value'];_0x18c935['change'](_0x1c5ecb=>{const _0x1b8fd7=Array['from'](_0x2452a6['getSelectedBlocks']())['filter'](_0x33a321=>this['_canHaveLineHeight'](_0x33a321));for(const _0x199b4a of _0x1b8fd7)_0x147db4?_0x1c5ecb['setAttribute']('lineHeight',_0x147db4,_0x199b4a):_0x1c5ecb['removeAttribute']('lineHeight',_0x199b4a);});}['_canHaveLineHeight'](_0x3fc6fc){return this['editor']['model']['schema']['checkAttribute'](_0x3fc6fc,'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(_0x3d48a5){return'string'==typeof _0x3d48a5&&'default'===_0x3d48a5['toLowerCase']();}function normalizeOptions(_0x26a18b){return _0x26a18b['options']['map'](_0x38c5f4=>isLineHeightDefaultValue(_0x38c5f4)?{'title':String(_0x26a18b['defaultValue']),'model':'default'}:('number'==typeof _0x38c5f4&&(_0x38c5f4=String(_0x38c5f4)),'string'!=typeof _0x38c5f4?_0x38c5f4:parseFloat(_0x38c5f4)?{'title':_0x38c5f4,'model':_0x38c5f4,'view':{'name':'span','styles':{'line-height':_0x38c5f4}}}:findPreset(_0x38c5f4)))['filter'](_0x3231c2=>void 0x0!==_0x3231c2);}function findPreset(_0x1b9773){return'string'==typeof _0x1b9773?namedPresets[_0x1b9773]:namedPresets[_0x1b9773['model']];}function buildDefinition(_0x5b2879,_0x5820f0){const _0x287606={'model':{'key':_0x5b2879,'values':[]},'view':{}};for(const _0xd85e01 of _0x5820f0)'class'===_0xd85e01['view']?.['key']?(_0x287606['model']['values']['push'](_0xd85e01['model']),_0x287606['view'][_0xd85e01['model']]={'key':'class','value':_0xd85e01['view']['value']}):(_0x287606['model']['values']['push'](_0xd85e01['model']),_0x287606['view'][_0xd85e01['model']]={'key':'style','value':'line-height:'+_0xd85e01['model']+';'});return _0x287606;}class LineHeightTodoListIntegration extends Plugin{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x224ae9,conversion:_0x1d8753}=this['editor'];if(!_0x224ae9['has']('ListEditing')||!_0x224ae9['has']('TodoListEditing'))return;_0x224ae9['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x3b2ca6,_0x40e146,_0x3cd007,_0x59dffb,_0x5bb4cc){'todo'==_0x5bb4cc['getAttribute']('listType')&&_0x40e146&&(_0x3b2ca6['addClass']('ck-list-marker-line-height',_0x3cd007),_0x3b2ca6['setStyle']('--ck-content-list-marker-line-height',_0x40e146,_0x3cd007));}}),_0x1d8753['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x1d8753['for']('upcast')['add'](_0x33c872=>{_0x33c872['on']('element:li',attributeUpcastConsumingConverter({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}function attributeUpcastConsumingConverter(_0x19cd1c){const _0x377c95=new Matcher(_0x19cd1c);return(_0x211f4f,_0x5d2755,_0x17891a)=>{const _0x3d04a8=_0x377c95['match'](_0x5d2755['viewItem']);if(!_0x3d04a8)return;const _0x56eb62=_0x3d04a8['match'];_0x56eb62['name']=!0x1,_0x17891a['consumable']['consume'](_0x5d2755['viewItem'],_0x56eb62);};}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(_0x21a40b){super(_0x21a40b),_0x21a40b['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x52c4d5=this['editor'];this['_validateConfig'](),_0x52c4d5['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x52c4d5['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x52c4d5['commands']['add']('lineHeight',new LineHeightCommand(_0x52c4d5)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){checkLicense$a(this);}['_validateConfig'](){const _0x10e3db=this['editor'];if(!_0x10e3db['config']['get']('lineHeight.supportAllValues'))return;const _0x12f6ec=_0x10e3db['config']['get']('lineHeight.options')['filter'](_0x4ce63a=>'string'==typeof _0x4ce63a&&(!isLineHeightDefaultValue(_0x4ce63a)&&isNaN(Number(_0x4ce63a))));if(_0x12f6ec['length'])throw new CKEditorError('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x12f6ec});}['_prepareAnyValueConverters'](){const _0x68024f=this['editor'],_0x2c1fba=this['editor']['config']['get']('lineHeight.defaultValue');_0x68024f['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x290734=>String(_0x290734)===String(_0x2c1fba)?null:{'key':'style','value':{'line-height':_0x290734}}}),_0x68024f['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x19159f=>{let _0x24f308=_0x19159f['getStyle']('line-height');return isPercentageStyleValue(_0x24f308)&&(_0x24f308=String(Number(_0x24f308['slice'](0x0,-0x1))/0x64)),String(_0x24f308)===String(_0x2c1fba)?null:_0x24f308;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x3ccfe8=this['editor'],_0x150d24=this['editor']['config']['get']('lineHeight.defaultValue'),_0xe43aa3=buildDefinition('lineHeight',normalizeOptions(this['editor']['config']['get']('lineHeight'))['filter'](_0x725711=>_0x725711['model']));_0x3ccfe8['conversion']['attributeToAttribute'](_0xe43aa3),_0x3ccfe8['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x39c46e=>{let _0x1687bb=_0x39c46e['getStyle']('line-height');return isPercentageStyleValue(_0x1687bb)&&(_0x1687bb=String(Number(_0x1687bb['slice'](0x0,-0x1))/0x64)),_0x1687bb===String(_0x150d24)?null:_0xe43aa3['model']['values']['includes'](_0x1687bb)?_0x1687bb:null;}}});}}async function checkLicense$a(_0xc0a5ee){const _0x4781d6=_0x3a5555([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]),_0x4f17d8=window[_0x3a5555([0x44,0x61,0x74,0x65])][_0x3a5555([0x6e,0x6f,0x77])](),_0x3e71e2=_0xc0a5ee[_0x3a5555([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50b2b6=new window[(_0x3a5555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x559ee6=>{_0x3e71e2[_0x3a5555([0x6f,0x6e,0x63,0x65])](_0x3a5555([0x72,0x65,0x61,0x64,0x79]),_0x559ee6);}),_0x44767f={[_0x3a5555([0x6b,0x74,0x79])]:_0x3a5555([0x45,0x43]),[_0x3a5555([0x75,0x73,0x65])]:_0x3a5555([0x73,0x69,0x67]),[_0x3a5555([0x63,0x72,0x76])]:_0x3a5555([0x50,0x2d,0x32,0x35,0x36]),[_0x3a5555([0x78])]:_0x3a5555([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]),[_0x3a5555([0x79])]:_0x3a5555([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]),[_0x3a5555([0x61,0x6c,0x67])]:_0x3a5555([0x45,0x53,0x32,0x35,0x36])},_0x1cbec9=_0x3e71e2[_0x3a5555([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a5555([0x67,0x65,0x74])](_0x3a5555([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x253c9f=await(async function(){let _0x5c270a,_0x2c7e75=null,_0xbc3ee7=null;try{if(_0x1cbec9==_0x3a5555([0x47,0x50,0x4c]))return _0x3a5555([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c270a=(function(){const _0x2d0e44=_0x1cbec9[_0x3a5555([0x73,0x70,0x6c,0x69,0x74])](_0x3a5555([0x2e]));if(0x3!=_0x2d0e44[_0x3a5555([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x8ac639=_0x2d0e44[0x1];return _0x1b09c2(_0x8ac639);function _0x1b09c2(_0x38f645){const _0x3008e9=_0x28256c(_0x38f645);return _0x3008e9&&_0x4872d6()?_0x3008e9:null;function _0x4872d6(){const _0x479658=_0x3008e9[_0x3a5555([0x6a,0x74,0x69])],_0x4c27b0=window[_0x3a5555([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x479658[_0x3a5555([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x479658[_0x3a5555([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15360b={..._0x3008e9,[_0x3a5555([0x6a,0x74,0x69])]:_0x479658[_0x3a5555([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x479658[_0x3a5555([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15360b[_0x3a5555([0x76,0x63])],_0x4c8eb7(_0x15360b)==_0x4c27b0;}}}()),!_0x5c270a)return _0x3a5555([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x5c270a[_0x3a5555([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbc3ee7=function(_0xfded7d,_0x5efa02){return new window[(_0x3a5555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x494a5b=>{if(_0x59885a())return _0x494a5b(_0x3a5555([0x56,0x61,0x6c,0x69,0x64]));_0x1ced84(),_0x3e71e2[_0x3a5555([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a5555([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2be5c7=!0x1;const _0x3e3c66=uid();function _0x5bbb33(_0x4b5ddb){return!!_0x4b5ddb&&(typeof _0x4b5ddb===_0x3a5555([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b5ddb===_0x3a5555([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b5ddb[_0x3a5555([0x74,0x68,0x65,0x6e])]===_0x3a5555([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b5ddb[_0x3a5555([0x63,0x61,0x74,0x63,0x68])]===_0x3a5555([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f8721(_0x3af0b1){_0x36a78d(_0x3af0b1)[_0x3a5555([0x74,0x68,0x65,0x6e])](_0x439756=>{if(!_0x439756||_0x439756[_0x3a5555([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a5555([0x6f,0x6b]))return _0x3a5555([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5314c7(_0x4c8eb7(_0x3e3c66+_0x5efa02))!=_0x439756[_0x3a5555([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a5555([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a5555([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a5555([0x74,0x68,0x65,0x6e])](_0x45758a=>(_0x15ae51(),_0x45758a),()=>{const _0x432af0=_0x28cadb();return null==_0x432af0?(_0x15ae51(),_0x3a5555([0x56,0x61,0x6c,0x69,0x64])):_0x3a5555(_0x4f17d8-_0x432af0>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a5555([0x74,0x68,0x65,0x6e])](_0x494a5b)[_0x3a5555([0x63,0x61,0x74,0x63,0x68])](()=>{_0x494a5b(_0x3a5555([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f97db=0x36ee80;function _0x15ae51(){const _0x4d724f=_0x3a5555([0x6c,0x6c,0x63,0x74,0x2d])+_0x5314c7(_0x4c8eb7(_0xfded7d)),_0x170323=_0x469f17(_0x5314c7(window[_0x3a5555([0x4d,0x61,0x74,0x68])][_0x3a5555([0x63,0x65,0x69,0x6c])](_0x4f17d8/_0x4f97db)));window[_0x3a5555([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a5555([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d724f,_0x170323);}function _0x28cadb(){const _0x81e413=_0x3a5555([0x6c,0x6c,0x63,0x74,0x2d])+_0x5314c7(_0x4c8eb7(_0xfded7d)),_0x5e6843=window[_0x3a5555([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a5555([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x81e413);return _0x5e6843?window[_0x3a5555([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x469f17(_0x5e6843),0x10)*_0x4f97db:null;}function _0x36a78d(_0x1af77b){return new window[(_0x3a5555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ba2d2,_0x186b97)=>{_0x1af77b[_0x3a5555([0x74,0x68,0x65,0x6e])](_0x2ba2d2,_0x186b97),window[_0x3a5555([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x186b97,0x1d4c0);});}}_0x3e71e2[_0x3a5555([0x6f,0x6e])](_0x3a5555([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5db0d2,_0xbbcd36)=>{if(_0xbbcd36[0x0]!=_0xfded7d)return _0x494a5b(_0x3a5555([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbbcd36[0x1]={..._0xbbcd36[0x1],[_0x3a5555([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e3c66};},{[_0x3a5555([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a5555([0x68,0x69,0x67,0x68])}),_0x3e71e2[_0x3a5555([0x6f,0x6e])](_0x3a5555([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x26b35f=>{_0x5bbb33(_0x26b35f[_0x3a5555([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2be5c7=!0x0,_0x3f8721(_0x26b35f[_0x3a5555([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a5555([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a5555([0x6c,0x6f,0x77])}),_0x50b2b6[_0x3a5555([0x74,0x68,0x65,0x6e])](()=>{_0x2be5c7||_0x494a5b(_0x3a5555([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59885a(){return _0x3e71e2[_0x3a5555([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a5555([0x76,0x69,0x65,0x77])][_0x3a5555([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a5555([0x61,0x75,0x74,0x6f]);}function _0x1ced84(){_0x3e71e2[_0x3a5555([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a5555([0x76,0x69,0x65,0x77])][_0x3a5555([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a5555([0x61,0x75,0x74,0x6f]);}}(_0x5c270a[_0x3a5555([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c270a[_0x3a5555([0x6a,0x74,0x69])]));const _0x402134=await(async function(){let _0x1dfde8=!0x0;try{const _0x5af52e=_0x1cbec9[_0x3a5555([0x73,0x70,0x6c,0x69,0x74])](_0x3a5555([0x2e])),[_0x4518f3,_0x21323b,_0x40c66c]=_0x5af52e;return _0x35c37a(_0x4518f3),await _0x37561e(_0x4518f3,_0x21323b,_0x40c66c),_0x1dfde8;}catch{return!0x1;}function _0x35c37a(_0x41af9a){const _0x5713ca=_0x28256c(_0x41af9a);_0x5713ca&&_0x5713ca[_0x3a5555([0x61,0x6c,0x67])]==_0x3a5555([0x45,0x53,0x32,0x35,0x36])||(_0x1dfde8=!0x1);}async function _0x37561e(_0x26d1d4,_0x26e107,_0x35dc59){const _0xf3576a=window[_0x3a5555([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a5555([0x66,0x72,0x6f,0x6d])](_0x170672(_0x35dc59),_0x54a0f0=>_0x54a0f0[_0x3a5555([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d6e65=new window[(_0x3a5555([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a5555([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26d1d4+_0x3a5555([0x2e])+_0x26e107),_0x181873=window[_0x3a5555([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a5555([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x181873)return;const _0x5aa4ba=await _0x181873[_0x3a5555([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a5555([0x6a,0x77,0x6b]),_0x44767f,{[_0x3a5555([0x6e,0x61,0x6d,0x65])]:_0x3a5555([0x45,0x43,0x44,0x53,0x41]),[_0x3a5555([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a5555([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a5555([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x181873[_0x3a5555([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a5555([0x6e,0x61,0x6d,0x65])]:_0x3a5555([0x45,0x43,0x44,0x53,0x41]),[_0x3a5555([0x68,0x61,0x73,0x68])]:{[_0x3a5555([0x6e,0x61,0x6d,0x65])]:_0x3a5555([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5aa4ba,_0xf3576a,_0x2d6e65)||(_0x1dfde8=!0x1);}}());return _0x402134?(function(){const _0x252344=_0x5c270a[_0x3a5555([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x252344)return!0x1;if(_0x252344[_0x3a5555([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a5555([0x2a])))return!0x0;if(_0x252344[_0x3a5555([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a5555([0x4c,0x48])))return!0x0;return!0x1;}())?(function(){const _0x5758da=[_0x3a5555([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a5555([0x74,0x72,0x69,0x61,0x6c])][_0x3a5555([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c270a[_0x3a5555([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4f17d8/0x3e8:0x69d59a80;return _0x5c270a[_0x3a5555([0x65,0x78,0x70])]<_0x5758da;}())?_0x3a5555([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1c46c6=_0x5c270a[_0x3a5555([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c46c6||0x0==_0x1c46c6[_0x3a5555([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x7c3482}=new URL(window[_0x3a5555([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c46c6[_0x3a5555([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7c3482))return!0x0;const _0x5ef04a=_0x7c3482[_0x3a5555([0x73,0x70,0x6c,0x69,0x74])](_0x3a5555([0x2e]));return _0x1c46c6[_0x3a5555([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55fd5b=>_0x55fd5b[_0x3a5555([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a5555([0x2a])))[_0x3a5555([0x6d,0x61,0x70])](_0x2d43c4=>_0x2d43c4[_0x3a5555([0x73,0x70,0x6c,0x69,0x74])](_0x3a5555([0x2e])))[_0x3a5555([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46ad8c=>_0x46ad8c[_0x3a5555([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ef04a[_0x3a5555([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a5555([0x6d,0x61,0x70])](_0x5ee1cd=>Array(_0x5ef04a[_0x3a5555([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5ee1cd[_0x3a5555([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a5555([0x66,0x69,0x6c,0x6c])](_0x5ee1cd[0x0]===_0x3a5555([0x2a])?_0x3a5555([0x2a]):'')[_0x3a5555([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5ee1cd))[_0x3a5555([0x73,0x6f,0x6d,0x65])](_0x5f329c=>_0x5ef04a[_0x3a5555([0x65,0x76,0x65,0x72,0x79])]((_0x4c48cd,_0x22e749)=>_0x5f329c[_0x22e749]===_0x4c48cd||_0x5f329c[_0x22e749]===_0x3a5555([0x2a])));}())?(_0x5c270a[_0x3a5555([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a5555([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c7e75=function(_0xc96e80){const _0x3bbcf2=new window[(_0x3a5555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d000b=>setTimeout(_0x2d000b,0x93ecc)),_0x24cf6d=_0x50b2b6[_0x3a5555([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a5555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x116c8a=>{let _0x4a05cd=0x0;_0x3e71e2[_0x3a5555([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a5555([0x6f,0x6e])](_0x3a5555([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f2e56,_0x76b87b)=>{_0x76b87b[0x0][_0x3a5555([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a05cd++,0x5e8==_0x4a05cd&&(_0x116c8a(),_0x2f2e56[_0x3a5555([0x6f,0x66,0x66])]());});})),_0x5d49fb=[_0x3bbcf2,_0x24cf6d];return window[_0x3a5555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a5555([0x72,0x61,0x63,0x65])](_0x5d49fb)[_0x3a5555([0x74,0x68,0x65,0x6e])](()=>_0xc96e80);}(_0x3a5555([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2c7e75&&_0xbc3ee7)return new window[(_0x3a5555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d5b26,_0x383b36)=>{_0x2c7e75[_0x3a5555([0x74,0x68,0x65,0x6e])](_0x3d5b26,_0x383b36),_0xbc3ee7[_0x3a5555([0x74,0x68,0x65,0x6e])](_0x53da1a=>{_0x53da1a!=_0x3a5555([0x56,0x61,0x6c,0x69,0x64])&&_0x3d5b26(_0x53da1a);},_0x383b36);});return _0x2c7e75||_0xbc3ee7||_0x3a5555([0x56,0x61,0x6c,0x69,0x64]);}())):_0x3a5555([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a5555([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a5555([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a5555([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x28256c(_0x53b1d6){return _0x53b1d6[_0x3a5555([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a5555([0x65,0x79]))?JSON[_0x3a5555([0x70,0x61,0x72,0x73,0x65])](_0x170672(_0x53b1d6)):null;}function _0x170672(_0x4f8249){return window[_0x3a5555([0x61,0x74,0x6f,0x62])](_0x4f8249[_0x3a5555([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a5555([0x2b]))[_0x3a5555([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a5555([0x2f])));}function _0x4c8eb7(_0x6d7c5e){let _0x52f7f4=0x1505;function _0x4c15d4(_0x5b5329){for(let _0x38cc91=0x0;_0x38cc91<_0x5b5329[_0x3a5555([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38cc91++){const _0x5da319=_0x5b5329[_0x3a5555([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38cc91);_0x52f7f4=(_0x52f7f4<<0x5)+_0x52f7f4+_0x5da319,_0x52f7f4&=_0x52f7f4;}}return function _0x2d3c43(_0x1bccb9){Array[_0x3a5555([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1bccb9)?_0x1bccb9[_0x3a5555([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d3c43):_0x1bccb9&&typeof _0x1bccb9==_0x3a5555([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a5555([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1bccb9)[_0x3a5555([0x73,0x6f,0x72,0x74])]()[_0x3a5555([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x395925,_0x2824c6])=>{_0x4c15d4(_0x395925),_0x2d3c43(_0x2824c6);}):_0x4c15d4(window[_0x3a5555([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1bccb9));}(_0x6d7c5e),_0x52f7f4>>>0x0;}function _0x5314c7(_0x316ed6){return _0x316ed6[_0x3a5555([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a5555([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a5555([0x30]));}function _0x469f17(_0x2b6ea0){return _0x2b6ea0[_0x3a5555([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a5555([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a5555([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b3688(){}function _0x3a5555(_0x211332){return _0x211332['map'](_0x227a21=>String['fromCharCode'](_0x227a21))['join']('');}!function(_0x4fb9d6){const _0x388c32=(function(){const _0x3ef92a=window[_0x3a5555([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a5555([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a5555([0x6e,0x6f,0x77])]())[_0x3a5555([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a5555([0x2e]),'');let _0x4a57f4=_0x3a5555([0x50]);for(let _0x2b23b5=0x0;_0x2b23b5<_0x3ef92a[_0x3a5555([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b23b5+=0x2){let _0x183d06=window[_0x3a5555([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ef92a[_0x3a5555([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b23b5,_0x2b23b5+0x2));_0x183d06>=_0x4781d6[_0x3a5555([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x183d06-=_0x4781d6[_0x3a5555([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a57f4+=_0x4781d6[_0x183d06];}return _0x4a57f4;}());_0x3e71e2[_0x388c32]=_0x3a5555([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4fb9d6,_0x4fb9d6!=_0x3a5555([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x50b2b6,_0x3e71e2[_0x3a5555([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a5555([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b3688,_0x3e71e2[_0x3a5555([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a5555([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b3688,_0x3e71e2[_0x3a5555([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a5555([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x253c9f);}class LineHeightUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x39c1e1={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x39c1e1),this['_registerMenuBarComponent'](_0x39c1e1),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x41b2a5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2405ad;for(const _0x120379 in _0x41b2a5){const _0xa58790=_0x120379,_0xe04331=_0x41b2a5[_0xa58790];if('lineHeightLicenseKeyValid'==_0xe04331||'lineHeightLicenseKeyInvalid'==_0xe04331||'lineHeightLicenseKeyExpired'==_0xe04331||'lineHeightLicenseKeyDomainLimit'==_0xe04331||'lineHeightLicenseKeyNotAllowed'==_0xe04331||'lineHeightLicenseKeyEvaluationLimit'==_0xe04331||'lineHeightLicenseKeyUsageLimit'==_0xe04331){delete _0x41b2a5[_0xa58790],_0x2405ad=_0xe04331,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x2405ad&&_0x41b2a5['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x2405ad&&_0x41b2a5['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x2405ad&&_0x41b2a5['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x2405ad&&_0x41b2a5['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x2405ad&&_0x41b2a5['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x2405ad&&_0x41b2a5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x3daaa9=this['editor'],t=_0x3daaa9['t'],_0x83de5c=_0x3daaa9['config']['get']('lineHeight'),_0xab3c0b={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return normalizeOptions(_0x83de5c)['map'](_0x322e16=>{const _0x596010=_0xab3c0b[_0x322e16['title']];return _0x596010&&_0x596010!=_0x322e16['title']&&(_0x322e16=Object['assign']({},_0x322e16,{'title':_0x596010})),_0x322e16;});}['_prepareListOptions'](){const _0x1c590c=this['editor']['commands']['get']('lineHeight'),_0x468a12=this['editor']['config']['get']('lineHeight.defaultValue'),_0x4aa9ca=this['_getLocalizedLineHeightOptions'](),_0x31ac9e=new Collection(),_0x310031=_0x30d643=>'default'===_0x30d643||String(_0x468a12)===_0x30d643;for(const _0x571df7 of _0x4aa9ca){const _0x30b687={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x571df7['title'],'withText':!0x0})};_0x310031(_0x571df7['model'])?(_0x30b687['model']['bind']('isOn')['to'](_0x1c590c,'value',_0x788354=>!_0x788354),_0x30b687['model']['commandParam']=void 0x0):(_0x30b687['model']['bind']('isOn')['to'](_0x1c590c,'value',_0x2b5b83=>_0x2b5b83===_0x571df7['model']),_0x30b687['model']['commandParam']=_0x571df7['model']),_0x31ac9e['add'](_0x30b687);}if(this['_shouldRenderCustomValueOption']()){const _0x35c0e4=this['_getCustomValueOptionDefinition'](_0x4aa9ca);_0x31ac9e['add'](_0x35c0e4);}return _0x31ac9e;}['_getCustomValueOptionDefinition'](_0xbc3d){const _0x175ef4=this['editor'],t=_0x175ef4['t'],_0x4a2900=_0x175ef4['commands']['get']('lineHeight'),_0x134740=_0xbc3d['map'](_0x18b454=>_0x18b454['model']),_0x3123be={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x3123be['model']['bind']('commandParam')['to'](_0x4a2900,'value'),_0x3123be['model']['bind']('isOn')['to'](_0x4a2900,'value',_0x129cb6=>!!_0x129cb6&&!_0x134740['includes'](String(_0x129cb6))),_0x3123be['model']['bind']('label')['to'](_0x4a2900,'value',_0x169292=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x169292))),_0x3123be;}['_registerToolbarComponent']({accessibleLabel:_0x5dad84,options:_0x5dd5a9}){const _0x4d5b0f=this['editor'],_0xd8d874=_0x4d5b0f['commands']['get']('lineHeight');_0x4d5b0f['ui']['componentFactory']['add']('lineHeight',_0x1c6333=>{const _0x222d63=createDropdown(_0x1c6333);return addListToDropdown(_0x222d63,_0x5dd5a9,{'role':'menu','ariaLabel':_0x5dad84}),_0x222d63['buttonView']['set']({'label':_0x5dad84,'tooltip':!0x0,'icon':IconLineHeight}),_0x222d63['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x222d63['bind']('isEnabled')['to'](_0xd8d874),this['listenTo'](_0x222d63,'execute',_0x341ccf=>{_0x4d5b0f['execute'](_0x341ccf['source']['commandName'],{'value':_0x341ccf['source']['commandParam']}),_0x4d5b0f['editing']['view']['focus']();}),_0x222d63['once']('change:isOpen',()=>{const _0x32100e=_0x222d63['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x222d63,_0x5dd5a9,_0x32100e);}),_0x222d63;});}['_registerMenuBarComponent']({accessibleLabel:_0x36ce1e,options:_0x3d7bdf}){const _0x2b06b8=this['editor'],_0x4b81ed=_0x2b06b8['commands']['get']('lineHeight');_0x2b06b8['ui']['componentFactory']['add']('menuBar:lineHeight',_0x2b2327=>{const _0x28e570=new MenuBarMenuView(_0x2b2327);_0x28e570['buttonView']['set']({'label':_0x36ce1e,'icon':IconLineHeight}),_0x28e570['bind']('isEnabled')['to'](_0x4b81ed);const _0x5c5fed=new MenuBarMenuListView(_0x2b2327);for(const _0x122f4c of _0x3d7bdf){const _0x1cc285=new MenuBarMenuListItemView(_0x2b2327,_0x28e570),_0x2a56e2=new MenuBarMenuListItemButtonView(_0x2b2327);_0x2a56e2['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x2a56e2['bind'](...Object['keys'](_0x122f4c['model']))['to'](_0x122f4c['model']),_0x2a56e2['delegate']('execute')['to'](_0x28e570),_0x2a56e2['on']('execute',()=>{_0x2b06b8['execute'](_0x122f4c['model']['commandName'],{'value':_0x122f4c['model']['commandParam']}),_0x2b06b8['editing']['view']['focus']();}),_0x1cc285['children']['add'](_0x2a56e2),_0x5c5fed['items']['add'](_0x1cc285);}return _0x28e570['panelView']['children']['add'](_0x5c5fed),this['_attachCustomOptionVisibilityHandler'](_0x28e570,_0x3d7bdf,_0x5c5fed),_0x28e570;});}['_attachCustomOptionVisibilityHandler'](_0x261d28,_0x2ce500,_0x3e7d3b){if(!this['_shouldRenderCustomValueOption']())return;const _0x4e069b=()=>{if(!_0x261d28['isOpen'])return;_0x3e7d3b['items']['last']['isVisible']=Boolean(_0x2ce500['last']['model']['isOn']);};_0x4e069b(),_0x261d28['on']('change:isOpen',()=>{_0x4e069b();});}}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(_0x172725,_0x556e10,_0x3b9680){super(_0x172725),this['defaultListMarkerStyle']=_0x556e10,this['_listDefinitions']=_0x3b9680,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3e76f7={}){const _0x23e10f=this['editor']['model'],_0xc99ad9=_0x3e76f7['listMarkerStyle']||this['defaultListMarkerStyle'];_0x23e10f['change'](()=>{const _0x2e293f=this['_getListTypeFromListMarkerStyle'](_0xc99ad9);if(!_0x2e293f)return;const _0xacadeb=_0x2e293f+'List';this['editor']['execute'](_0xacadeb,{'additionalAttributes':{'listMarkerStyle':_0xc99ad9}});});}['_getValue'](){const _0x5c9c5c=first(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x5c9c5c)?_0x5c9c5c['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x5bbbd8=this['editor'],_0x3ea3cc=_0x5bbbd8['commands']['get']('customNumberedList'),_0x5c3f59=_0x5bbbd8['commands']['get']('customBulletedList');return _0x3ea3cc['isEnabled']||_0x5c3f59['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x4cdad7){const _0x3c8127=this['_listDefinitions']['find'](_0x5ba1c6=>_0x5ba1c6['listMarkerStyle']==_0x4cdad7);return _0x3c8127?_0x3c8127['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(_0x5f5225){super(_0x5f5225);const _0x3630d4=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x14adb3=>_0x14adb3+'.'}]},..._0x3630d4];}['init'](){const _0x4bbb02=this['editor'],_0x519661=_0x4bbb02['model'],_0x36fdba=_0x4bbb02['editing']['view'],_0x34e1ee=_0x4bbb02['plugins']['get']('ListEditing');_0x4bbb02['commands']['add']('multiLevelList',new MultiLevelListCommand(_0x4bbb02,'legal',this['_listDefinitions'])),_0x519661['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x519661['schema']['addAttributeCheck']((_0x27e0c6,_0x263c8e)=>{const _0x2cc472=_0x27e0c6['last'];if('listMarker'==_0x263c8e||'listMarkerStyle'==_0x263c8e)return!(!_0x2cc472['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x5bc51d=>_0x5bc51d['listType']==_0x2cc472['getAttribute']('listType')))&&void 0x0;});for(const _0x26d404 of this['_listDefinitions'])_0x4bbb02['conversion']['for']('upcast')['add'](_0x1a3874=>{_0x1a3874['on']('element:'+('customNumbered'==_0x26d404['listType']?'ol':'ul'),multiLevelListUpcastConverter(_0x26d404,_0x519661['schema']),{'priority':'low'});}),_0x34e1ee['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x1f079b,_0x4d478d,_0x3841bd){_0x4d478d==_0x26d404['listMarkerStyle']?(_0x1f079b['addClass'](['multi-level-list',_0x26d404['className']],_0x3841bd),_0x1f079b['setStyle']('list-style-type','none',_0x3841bd)):(_0x1f079b['removeClass'](['multi-level-list',_0x26d404['className']],_0x3841bd),_0x1f079b['removeStyle']('list-style-type',_0x3841bd));}}),_0x34e1ee['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x42672f,_0x424c98,{dataPipeline:_0x6626e7}){if(!_0x424c98['hasAttribute']('listMarker'))return null;if(_0x424c98['getAttribute']('listType')!=_0x26d404['listType']||_0x424c98['getAttribute']('listMarkerStyle')!=_0x26d404['listMarkerStyle'])return null;const _0x282862=String(_0x424c98['getAttribute']('listMarker')),_0x2dfd74=this['canInjectMarkerIntoElement'](_0x424c98);return _0x42672f['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x6626e7&&{'contenteditable':'false','data-multi-level-list-marker':_0x282862}},function(_0x3fc35c){const _0x522bfd=this['toDomElement'](_0x3fc35c);return _0x2dfd74?(_0x522bfd['appendChild'](createElement(_0x3fc35c,'span',{},_0x6626e7?_0x3fc35c['createTextNode'](_0x282862):[])),_0x522bfd['appendChild'](_0x3fc35c['createTextNode']('\u00a0'))):_0x6626e7&&_0x522bfd['appendChild'](_0x3fc35c['createTextNode'](_0x282862)),_0x522bfd;});},'canInjectMarkerIntoElement':_0xc236ed=>_0x519661['schema']['checkChild'](_0xc236ed,'$text')&&_0x519661['schema']['checkChild'](_0xc236ed,'$inlineObject')&&!_0x519661['schema']['isLimit'](_0xc236ed)&&_0xc236ed['getAttribute']('listType')==_0x26d404['listType']&&_0xc236ed['getAttribute']('listMarkerStyle')==_0x26d404['listMarkerStyle']});_0x4bbb02['conversion']['for']('upcast')['add'](_0x4e795a=>{_0x4e795a['on']('element:span',multiLevelListMarkerUpcastConverter(_0x36fdba));}),_0x34e1ee['on']('postFixer',(_0xe9e3ee,{listNodes:_0x18fbee,writer:_0x4bbe17})=>{const _0x2f2ef8=[];for(const {node:_0x34d2b4,previousNodeInList:_0x4b21b0}of _0x18fbee){const _0x12807c=_0x34d2b4['getAttribute']('listType'),_0x1cf08f=_0x34d2b4['getAttribute']('listMarkerStyle')||('customNumbered'==_0x12807c?'legal':void 0x0),_0x4701d4=this['_listDefinitions']['find'](_0x122891=>_0x122891['listType']==_0x12807c&&_0x122891['listMarkerStyle']==_0x1cf08f);if('customNumbered'!=_0x12807c&&'customBulleted'!=_0x12807c&&(_0x34d2b4['hasAttribute']('listMarker')&&(_0x4bbe17['removeAttribute']('listMarker',_0x34d2b4),_0xe9e3ee['return']=!0x0),_0x34d2b4['hasAttribute']('listMarkerStyle')&&(_0x4bbe17['removeAttribute']('listMarkerStyle',_0x34d2b4),_0xe9e3ee['return']=!0x0)),!_0x4701d4){'customBulleted'!=_0x12807c||_0x1cf08f||(_0x4bbe17['setAttribute']('listType','bulleted',_0x34d2b4),_0xe9e3ee['return']=!0x0);continue;}_0x34d2b4['hasAttribute']('listMarkerStyle')||(_0x4bbe17['setAttribute']('listMarkerStyle',_0x1cf08f,_0x34d2b4),_0xe9e3ee['return']=!0x0);const _0x51412f=_0x34d2b4['getAttribute']('listIndent');if(_0x4b21b0&&_0x4b21b0['getAttribute']('listItemId')==_0x34d2b4['getAttribute']('listItemId'))continue;_0x2f2ef8['length']=_0x51412f+0x1,_0x4b21b0||_0x2f2ef8[_0x51412f]?_0x4b21b0&&_0x4b21b0['getAttribute']('listType')!=_0x4701d4['listType']?_0x2f2ef8[_0x51412f]=0x1:_0x2f2ef8[_0x51412f]++:_0x2f2ef8[_0x51412f]=_0x34d2b4['getAttribute']('listStart')||0x1;const _0x389932=generateMarker(_0x51412f,_0x4701d4,_0x2f2ef8);_0x34d2b4['getAttribute']('listMarker')!=_0x389932&&(_0x4bbe17['setAttribute']('listMarker',_0x389932,_0x34d2b4),_0xe9e3ee['return']=!0x0);}});const _0xd1970a=_0x4bbb02['editing']['view']['document'];this['listenTo'](_0xd1970a,'clipboardOutput',(_0x5557ea,_0x1354c8)=>{const _0x1bcbbf=new Matcher({'name':'span','classes':'multi-level-list__marker'}),_0x9598df=new Matcher({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x485d98=new ViewUpcastWriter(_0x1354c8['content']['document']),_0x1e737c=[];for(const _0x2a12f6 of _0x485d98['createRangeIn'](_0x1354c8['content'])['getItems']())_0x2a12f6['is']('element')&&_0x1bcbbf['match'](_0x2a12f6)&&_0x1e737c['push'](_0x2a12f6),_0x2a12f6['is']('element')&&_0x9598df['match'](_0x2a12f6)&&_0x485d98['removeStyle']('list-style-type',_0x2a12f6);for(const _0x39cf72 of _0x1e737c)_0x485d98['remove'](_0x39cf72);});}['afterInit'](){checkLicense$9(this);}}function generateMarker(_0x86d6a,_0x1e4773,_0x42bf70){let _0x567bc1=_0x1e4773['listMarkers'][_0x86d6a%_0x1e4773['listMarkers']['length']];if(void 0x0===_0x567bc1['showMarkerPath']||_0x567bc1['showMarkerPath'])return _0x42bf70['slice'](0x0,_0x86d6a+0x1)['map']((_0x225937,_0x37fa25)=>(_0x567bc1=_0x1e4773['listMarkers'][_0x37fa25%_0x1e4773['listMarkers']['length']],getMarkerString(_0x567bc1['marker'],_0x225937)))['join']('');{const _0x30a145=_0x42bf70[_0x42bf70['length']-0x1];return getMarkerString(_0x567bc1['marker'],_0x30a145);}}function getMarkerString(_0x1aac72,_0x2b843d){return'function'==typeof _0x1aac72?_0x1aac72(_0x2b843d):_0x1aac72;}function multiLevelListUpcastConverter(_0x135212,_0x306f0e){return(_0x47e62f,_0xbc0c1,_0x50b832)=>{const _0x2e3878=_0xbc0c1['viewItem'];if(_0xbc0c1['modelRange']||Object['assign'](_0xbc0c1,_0x50b832['convertChildren'](_0xbc0c1['viewItem'],_0xbc0c1['modelCursor'])),!_0x50b832['consumable']['test'](_0x2e3878,{'classes':_0x135212['className']}))return;const _0x3c461d=Array['from'](_0xbc0c1['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x5f222a=>_0x306f0e['checkAttribute'](_0x5f222a,'listItemId'));if(!_0x3c461d['length'])return;_0x50b832['consumable']['consume'](_0x2e3878,{'classes':_0x135212['className']}),_0x50b832['consumable']['consume'](_0x2e3878,{'classes':'multi-level-list'}),_0x50b832['consumable']['consume'](_0x2e3878,{'styles':'list-style-type'});const _0x459707=_0x3c461d[0x0]['getAttribute']('listIndent');for(const _0x403c97 of _0x3c461d)_0x403c97['getAttribute']('listIndent')==_0x459707&&(_0x50b832['writer']['setAttribute']('listType',_0x135212['listType'],_0x403c97),_0x50b832['writer']['setAttribute']('listMarkerStyle',_0x135212['listMarkerStyle'],_0x403c97));};}function multiLevelListMarkerUpcastConverter(_0x1497c1){return(_0x421b1f,_0x44f845,{writer:_0x4f8708,consumable:_0x57842c})=>{const _0x53f636=_0x44f845['modelCursor'],_0x301b22=_0x53f636['parent'],_0x4ad49a=_0x44f845['viewItem'];if(_0x57842c['consume'](_0x4ad49a,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x53f636['isAtStart']&&_0x301b22['hasAttribute']('listType')&&_0x4ad49a['childCount']>0x0){const _0x3f23dc=_0x1497c1['createRangeIn'](_0x4ad49a);let _0x8ac297='';for(const _0x5a545c of _0x3f23dc['getItems']())_0x5a545c['is']('$textProxy')?(_0x8ac297+=_0x5a545c['data']['trim'](),_0x57842c['consume'](_0x5a545c['textNode'])):_0x57842c['consume'](_0x5a545c,{'name':!0x0});_0x4f8708['setAttribute']('listMarker',_0x8ac297['trim'](),_0x301b22);}};}async function checkLicense$9(_0x301576){const _0x171b57=_0x2fc760([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]),_0x23aa2a=window[_0x2fc760([0x44,0x61,0x74,0x65])][_0x2fc760([0x6e,0x6f,0x77])](),_0x321505=_0x301576[_0x2fc760([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x243540=new window[(_0x2fc760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b5cac=>{_0x321505[_0x2fc760([0x6f,0x6e,0x63,0x65])](_0x2fc760([0x72,0x65,0x61,0x64,0x79]),_0x5b5cac);}),_0x8f12bf={[_0x2fc760([0x6b,0x74,0x79])]:_0x2fc760([0x45,0x43]),[_0x2fc760([0x75,0x73,0x65])]:_0x2fc760([0x73,0x69,0x67]),[_0x2fc760([0x63,0x72,0x76])]:_0x2fc760([0x50,0x2d,0x32,0x35,0x36]),[_0x2fc760([0x78])]:_0x2fc760([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]),[_0x2fc760([0x79])]:_0x2fc760([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]),[_0x2fc760([0x61,0x6c,0x67])]:_0x2fc760([0x45,0x53,0x32,0x35,0x36])},_0x1735be=_0x321505[_0x2fc760([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fc760([0x67,0x65,0x74])](_0x2fc760([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x26a995=await(async function(){let _0x3b6743,_0x2307ec=null,_0x29f676=null;try{if(_0x1735be==_0x2fc760([0x47,0x50,0x4c]))return _0x2fc760([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b6743=(function(){const _0x107114=_0x1735be[_0x2fc760([0x73,0x70,0x6c,0x69,0x74])](_0x2fc760([0x2e]));if(0x3!=_0x107114[_0x2fc760([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5e9ef2=_0x107114[0x1];return _0x27d407(_0x5e9ef2);function _0x27d407(_0x119e26){const _0x12e716=_0x46f814(_0x119e26);return _0x12e716&&_0x4b807f()?_0x12e716:null;function _0x4b807f(){const _0xf6d296=_0x12e716[_0x2fc760([0x6a,0x74,0x69])],_0x1df71d=window[_0x2fc760([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf6d296[_0x2fc760([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf6d296[_0x2fc760([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54259f={..._0x12e716,[_0x2fc760([0x6a,0x74,0x69])]:_0xf6d296[_0x2fc760([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf6d296[_0x2fc760([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54259f[_0x2fc760([0x76,0x63])],_0x5c8fa1(_0x54259f)==_0x1df71d;}}}()),!_0x3b6743)return _0x2fc760([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x3b6743[_0x2fc760([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29f676=function(_0x17ba74,_0x175ed5){return new window[(_0x2fc760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x596b39=>{if(_0x5e265c())return _0x596b39(_0x2fc760([0x56,0x61,0x6c,0x69,0x64]));_0xd364e4(),_0x321505[_0x2fc760([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fc760([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x40228e=!0x1;const _0x48409b=uid();function _0x46834d(_0x17bc99){return!!_0x17bc99&&(typeof _0x17bc99===_0x2fc760([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17bc99===_0x2fc760([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17bc99[_0x2fc760([0x74,0x68,0x65,0x6e])]===_0x2fc760([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17bc99[_0x2fc760([0x63,0x61,0x74,0x63,0x68])]===_0x2fc760([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc696e6(_0x1b859f){_0x53682d(_0x1b859f)[_0x2fc760([0x74,0x68,0x65,0x6e])](_0x3f6451=>{if(!_0x3f6451||_0x3f6451[_0x2fc760([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fc760([0x6f,0x6b]))return _0x2fc760([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x284220(_0x5c8fa1(_0x48409b+_0x175ed5))!=_0x3f6451[_0x2fc760([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fc760([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fc760([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fc760([0x74,0x68,0x65,0x6e])](_0x54035a=>(_0x5d76c1(),_0x54035a),()=>{const _0x2a41b7=_0x30cd26();return null==_0x2a41b7?(_0x5d76c1(),_0x2fc760([0x56,0x61,0x6c,0x69,0x64])):_0x2fc760(_0x23aa2a-_0x2a41b7>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fc760([0x74,0x68,0x65,0x6e])](_0x596b39)[_0x2fc760([0x63,0x61,0x74,0x63,0x68])](()=>{_0x596b39(_0x2fc760([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x115946=0x36ee80;function _0x5d76c1(){const _0x1cc3bb=_0x2fc760([0x6c,0x6c,0x63,0x74,0x2d])+_0x284220(_0x5c8fa1(_0x17ba74)),_0x43827e=_0x39c948(_0x284220(window[_0x2fc760([0x4d,0x61,0x74,0x68])][_0x2fc760([0x63,0x65,0x69,0x6c])](_0x23aa2a/_0x115946)));window[_0x2fc760([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fc760([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cc3bb,_0x43827e);}function _0x30cd26(){const _0x1e498e=_0x2fc760([0x6c,0x6c,0x63,0x74,0x2d])+_0x284220(_0x5c8fa1(_0x17ba74)),_0x2640be=window[_0x2fc760([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fc760([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e498e);return _0x2640be?window[_0x2fc760([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39c948(_0x2640be),0x10)*_0x115946:null;}function _0x53682d(_0x4ccc2e){return new window[(_0x2fc760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bfd44,_0x10e93b)=>{_0x4ccc2e[_0x2fc760([0x74,0x68,0x65,0x6e])](_0x4bfd44,_0x10e93b),window[_0x2fc760([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10e93b,0x1d4c0);});}}_0x321505[_0x2fc760([0x6f,0x6e])](_0x2fc760([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12ae83,_0x44c31a)=>{if(_0x44c31a[0x0]!=_0x17ba74)return _0x596b39(_0x2fc760([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44c31a[0x1]={..._0x44c31a[0x1],[_0x2fc760([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48409b};},{[_0x2fc760([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fc760([0x68,0x69,0x67,0x68])}),_0x321505[_0x2fc760([0x6f,0x6e])](_0x2fc760([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4049be=>{_0x46834d(_0x4049be[_0x2fc760([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x40228e=!0x0,_0xc696e6(_0x4049be[_0x2fc760([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fc760([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fc760([0x6c,0x6f,0x77])}),_0x243540[_0x2fc760([0x74,0x68,0x65,0x6e])](()=>{_0x40228e||_0x596b39(_0x2fc760([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e265c(){return _0x321505[_0x2fc760([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fc760([0x76,0x69,0x65,0x77])][_0x2fc760([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fc760([0x61,0x75,0x74,0x6f]);}function _0xd364e4(){_0x321505[_0x2fc760([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fc760([0x76,0x69,0x65,0x77])][_0x2fc760([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fc760([0x61,0x75,0x74,0x6f]);}}(_0x3b6743[_0x2fc760([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b6743[_0x2fc760([0x6a,0x74,0x69])]));const _0x55ed7a=await(async function(){let _0x44ee44=!0x0;try{const _0x41f116=_0x1735be[_0x2fc760([0x73,0x70,0x6c,0x69,0x74])](_0x2fc760([0x2e])),[_0x3964cc,_0x2a27bd,_0x2f6695]=_0x41f116;return _0x590098(_0x3964cc),await _0x503c22(_0x3964cc,_0x2a27bd,_0x2f6695),_0x44ee44;}catch{return!0x1;}function _0x590098(_0xaed887){const _0x3abb5d=_0x46f814(_0xaed887);_0x3abb5d&&_0x3abb5d[_0x2fc760([0x61,0x6c,0x67])]==_0x2fc760([0x45,0x53,0x32,0x35,0x36])||(_0x44ee44=!0x1);}async function _0x503c22(_0xb8e19,_0x40828a,_0x6d483a){const _0x575f02=window[_0x2fc760([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fc760([0x66,0x72,0x6f,0x6d])](_0xb00bf(_0x6d483a),_0xa79499=>_0xa79499[_0x2fc760([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a89f7=new window[(_0x2fc760([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fc760([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xb8e19+_0x2fc760([0x2e])+_0x40828a),_0x1f38bb=window[_0x2fc760([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fc760([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f38bb)return;const _0xf390e5=await _0x1f38bb[_0x2fc760([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fc760([0x6a,0x77,0x6b]),_0x8f12bf,{[_0x2fc760([0x6e,0x61,0x6d,0x65])]:_0x2fc760([0x45,0x43,0x44,0x53,0x41]),[_0x2fc760([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fc760([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fc760([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f38bb[_0x2fc760([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fc760([0x6e,0x61,0x6d,0x65])]:_0x2fc760([0x45,0x43,0x44,0x53,0x41]),[_0x2fc760([0x68,0x61,0x73,0x68])]:{[_0x2fc760([0x6e,0x61,0x6d,0x65])]:_0x2fc760([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf390e5,_0x575f02,_0x5a89f7)||(_0x44ee44=!0x1);}}());return _0x55ed7a?(function(){const _0xb7ef66=_0x3b6743[_0x2fc760([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xb7ef66)return!0x1;if(_0xb7ef66[_0x2fc760([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fc760([0x2a])))return!0x0;if(_0xb7ef66[_0x2fc760([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fc760([0x4d,0x4c,0x4c])))return!0x0;return!0x1;}())?(function(){const _0x47a63e=[_0x2fc760([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fc760([0x74,0x72,0x69,0x61,0x6c])][_0x2fc760([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b6743[_0x2fc760([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x23aa2a/0x3e8:0x69d59a80;return _0x3b6743[_0x2fc760([0x65,0x78,0x70])]<_0x47a63e;}())?_0x2fc760([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x188a64=_0x3b6743[_0x2fc760([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x188a64||0x0==_0x188a64[_0x2fc760([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2829d8}=new URL(window[_0x2fc760([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x188a64[_0x2fc760([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2829d8))return!0x0;const _0x608ed8=_0x2829d8[_0x2fc760([0x73,0x70,0x6c,0x69,0x74])](_0x2fc760([0x2e]));return _0x188a64[_0x2fc760([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e1dfa=>_0x1e1dfa[_0x2fc760([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fc760([0x2a])))[_0x2fc760([0x6d,0x61,0x70])](_0x40bb36=>_0x40bb36[_0x2fc760([0x73,0x70,0x6c,0x69,0x74])](_0x2fc760([0x2e])))[_0x2fc760([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe9ab72=>_0xe9ab72[_0x2fc760([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x608ed8[_0x2fc760([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fc760([0x6d,0x61,0x70])](_0x2799d5=>Array(_0x608ed8[_0x2fc760([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2799d5[_0x2fc760([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fc760([0x66,0x69,0x6c,0x6c])](_0x2799d5[0x0]===_0x2fc760([0x2a])?_0x2fc760([0x2a]):'')[_0x2fc760([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2799d5))[_0x2fc760([0x73,0x6f,0x6d,0x65])](_0x36744b=>_0x608ed8[_0x2fc760([0x65,0x76,0x65,0x72,0x79])]((_0x580d36,_0xb9b03c)=>_0x36744b[_0xb9b03c]===_0x580d36||_0x36744b[_0xb9b03c]===_0x2fc760([0x2a])));}())?(_0x3b6743[_0x2fc760([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fc760([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2307ec=function(_0x32f5fc){const _0x4091be=new window[(_0x2fc760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x320984=>setTimeout(_0x320984,0x93ecc)),_0x1d4b98=_0x243540[_0x2fc760([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fc760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a29d7=>{let _0x2f44b8=0x0;_0x321505[_0x2fc760([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fc760([0x6f,0x6e])](_0x2fc760([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a7435,_0x5f4b54)=>{_0x5f4b54[0x0][_0x2fc760([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f44b8++,0x5e8==_0x2f44b8&&(_0x2a29d7(),_0x4a7435[_0x2fc760([0x6f,0x66,0x66])]());});})),_0x1acb25=[_0x4091be,_0x1d4b98];return window[_0x2fc760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fc760([0x72,0x61,0x63,0x65])](_0x1acb25)[_0x2fc760([0x74,0x68,0x65,0x6e])](()=>_0x32f5fc);}(_0x2fc760([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2307ec&&_0x29f676)return new window[(_0x2fc760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13dde7,_0x3fe754)=>{_0x2307ec[_0x2fc760([0x74,0x68,0x65,0x6e])](_0x13dde7,_0x3fe754),_0x29f676[_0x2fc760([0x74,0x68,0x65,0x6e])](_0x2703aa=>{_0x2703aa!=_0x2fc760([0x56,0x61,0x6c,0x69,0x64])&&_0x13dde7(_0x2703aa);},_0x3fe754);});return _0x2307ec||_0x29f676||_0x2fc760([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2fc760([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fc760([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fc760([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2fc760([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x46f814(_0x127049){return _0x127049[_0x2fc760([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fc760([0x65,0x79]))?JSON[_0x2fc760([0x70,0x61,0x72,0x73,0x65])](_0xb00bf(_0x127049)):null;}function _0xb00bf(_0x16b037){return window[_0x2fc760([0x61,0x74,0x6f,0x62])](_0x16b037[_0x2fc760([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fc760([0x2b]))[_0x2fc760([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fc760([0x2f])));}function _0x5c8fa1(_0x4f8063){let _0x2d5bac=0x1505;function _0x178118(_0x41542e){for(let _0x2f4002=0x0;_0x2f4002<_0x41542e[_0x2fc760([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f4002++){const _0x1d588d=_0x41542e[_0x2fc760([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f4002);_0x2d5bac=(_0x2d5bac<<0x5)+_0x2d5bac+_0x1d588d,_0x2d5bac&=_0x2d5bac;}}return function _0x45387d(_0xb63cea){Array[_0x2fc760([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb63cea)?_0xb63cea[_0x2fc760([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45387d):_0xb63cea&&typeof _0xb63cea==_0x2fc760([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fc760([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb63cea)[_0x2fc760([0x73,0x6f,0x72,0x74])]()[_0x2fc760([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a384b,_0x2a1267])=>{_0x178118(_0x4a384b),_0x45387d(_0x2a1267);}):_0x178118(window[_0x2fc760([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb63cea));}(_0x4f8063),_0x2d5bac>>>0x0;}function _0x284220(_0x4af6dc){return _0x4af6dc[_0x2fc760([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fc760([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fc760([0x30]));}function _0x39c948(_0x61a7f7){return _0x61a7f7[_0x2fc760([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fc760([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fc760([0x6a,0x6f,0x69,0x6e])]('');}function _0x211305(){}function _0x2fc760(_0x2cf2c0){return _0x2cf2c0['map'](_0x33ce2f=>String['fromCharCode'](_0x33ce2f))['join']('');}!function(_0x8348db){const _0x2f22cc=(function(){const _0xdfc772=window[_0x2fc760([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fc760([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fc760([0x6e,0x6f,0x77])]())[_0x2fc760([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fc760([0x2e]),'');let _0x7a929c=_0x2fc760([0x75]);for(let _0x754c76=0x0;_0x754c76<_0xdfc772[_0x2fc760([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x754c76+=0x2){let _0x2689fe=window[_0x2fc760([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdfc772[_0x2fc760([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x754c76,_0x754c76+0x2));_0x2689fe>=_0x171b57[_0x2fc760([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2689fe-=_0x171b57[_0x2fc760([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x7a929c+=_0x171b57[_0x2689fe];}return _0x7a929c;}());_0x321505[_0x2f22cc]=_0x2fc760([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x8348db,_0x8348db!=_0x2fc760([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x243540,_0x321505[_0x2fc760([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fc760([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x211305,_0x321505[_0x2fc760([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fc760([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x211305,_0x321505[_0x2fc760([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fc760([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x26a995);}function getTranslation$9(_0x4257b4,_0x11a4ad){const _0xd3e15=_0x4257b4['t'],t=_0x4257b4['t'];switch(_0x11a4ad){case'Start\x20at':return _0xd3e15('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0xd3e15('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0xd3e15('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0xd3e15('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 _0x11a4ad;}}class MultiLevelListView extends View{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0xda6f4,{enabledProperties:_0x57f4c1,styleButtonViews:_0x4383ea,styleGridAriaLabel:_0x5cdb19}){super(_0xda6f4);const _0x4aa954=['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'}}),_0x57f4c1['styles']?(this['stylesView']=this['_createStylesView'](_0x4383ea,_0x5cdb19),this['children']['add'](this['stylesView'])):_0x4aa954['push']('ck-multi-level-list-properties_without-styles'),_0x57f4c1['startIndex']&&(this['_addListPropertyViews'](_0x57f4c1),_0x4aa954['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x4aa954},'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 _0x8ac6aa of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x8ac6aa['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x19b45e['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 _0x318e00=_0x5d90d1=>_0x5d90d1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x318e00),this['keystrokes']['set']('arrowleft',_0x318e00),this['keystrokes']['set']('arrowup',_0x318e00),this['keystrokes']['set']('arrowdown',_0x318e00);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x2c77fd,_0x289304){const _0x455064=new View(this['locale']);return _0x455064['children']=_0x455064['createCollection'](),_0x455064['children']['addMany'](_0x2c77fd),_0x455064['setTemplate']({'tag':'div','attributes':{'aria-label':_0x289304,'class':['ck','ck-multi-level-list-styles']},'children':_0x455064['children']}),_0x455064['children']['delegate']('execute')['to'](this),_0x455064['focus']=function(){this['children']['first']['focus']();},_0x455064['focusTracker']=new FocusTracker(),_0x455064['keystrokes']=new KeystrokeHandler(),_0x455064['render'](),_0x455064['keystrokes']['listenTo'](_0x455064['element']),_0x455064;}['_addListPropertyViews'](_0x13430a){const _0x35b7d0=[];_0x13430a['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x35b7d0['push'](this['startIndexFieldView'])),_0x13430a['styles']?(this['additionalPropertiesCollapsibleView']=new CollapsibleView(this['locale'],_0x35b7d0),this['additionalPropertiesCollapsibleView']['set']({'label':getTranslation$9(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x35b7d0,'isEnabled',(..._0x3ac978)=>_0x3ac978['some'](_0x55c2d9=>_0x55c2d9)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x22f2f3,_0x4ea8f0,_0x133d05)=>{_0x133d05||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x35b7d0);}['_createStartIndexField'](){const _0x1de2e1=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0x1de2e1['set']({'label':getTranslation$9(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x1de2e1['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1de2e1['fieldView']['on']('input',()=>{const _0x5cba1a=_0x1de2e1['fieldView']['element'],_0xe0578a=_0x5cba1a['valueAsNumber'];Number['isNaN'](_0xe0578a)?_0x1de2e1['errorText']=getTranslation$9(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x5cba1a['checkValidity']()?this['fire']('listStart',{'startIndex':_0xe0578a}):_0x1de2e1['errorText']=getTranslation$9(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x1de2e1;}}class MultiLevelListUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x8df481=this['editor'];_0x8df481['ui']['componentFactory']['add']('multiLevelList',getViewCreator({'editor':_0x8df481,'parentCommandName':'multiLevelList','buttonLabel':getTranslation$9(_0x8df481['locale'],'Multi-level\x20List'),'buttonIcon':IconMultiLevelList,'styleGridAriaLabel':getTranslation$9(_0x8df481['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x8df481['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x5f3e55=_0x8df481['commands']['get']('multiLevelList'),_0x3dfbf3=new MenuBarMenuListItemButtonView(_0x8df481['locale']);return _0x3dfbf3['set']({'label':getTranslation$9(_0x8df481['locale'],'Multi-level\x20List'),'icon':IconMultiLevelList}),_0x3dfbf3['bind']('isEnabled')['to'](_0x5f3e55),_0x3dfbf3['bind']('isOn')['to'](_0x5f3e55,'value',_0x41667e=>!!_0x41667e),_0x3dfbf3['on']('execute',()=>{_0x8df481['execute']('multiLevelList'),_0x8df481['editing']['view']['focus']();}),_0x3dfbf3;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xceaf00=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2efed1;for(const _0x1cbeec in _0xceaf00){const _0x161195=_0x1cbeec,_0x368daa=_0xceaf00[_0x161195];if('multiLevelListLicenseKeyValid'==_0x368daa||'multiLevelListLicenseKeyInvalid'==_0x368daa||'multiLevelListLicenseKeyExpired'==_0x368daa||'multiLevelListLicenseKeyDomainLimit'==_0x368daa||'multiLevelListLicenseKeyNotAllowed'==_0x368daa||'multiLevelListLicenseKeyEvaluationLimit'==_0x368daa||'multiLevelListLicenseKeyUsageLimit'==_0x368daa){delete _0xceaf00[_0x161195],_0x2efed1=_0x368daa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x2efed1&&_0xceaf00['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x2efed1&&_0xceaf00['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x2efed1&&_0xceaf00['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x2efed1&&_0xceaf00['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x2efed1&&_0xceaf00['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x2efed1&&_0xceaf00['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getViewCreator({editor:_0x22173f,parentCommandName:_0x38e447,buttonLabel:_0x3cd71a,buttonIcon:_0x508983,styleGridAriaLabel:_0x5af9b2,styleDefinitions:_0x551db9}){const _0x31f34a=_0x22173f['commands']['get'](_0x38e447),_0x3719c4=_0x22173f['config']['get']('list.properties')||{},_0x1a219b=_0x22173f['plugins']['has']('ListProperties'),_0x293e37=_0x3719c4['startIndex'];return _0x1a219b&&_0x293e37?_0x25bbc5=>{const _0x444a6d=createDropdown(_0x25bbc5,SplitButtonView),_0x51aa30=_0x444a6d['buttonView'];return _0x444a6d['bind']('isEnabled')['to'](_0x31f34a),_0x444a6d['class']='ck-list-styles-dropdown',_0x51aa30['on']('execute',()=>{_0x22173f['execute'](_0x38e447),_0x22173f['editing']['view']['focus']();}),_0x51aa30['set']({'label':_0x3cd71a,'icon':_0x508983,'tooltip':!0x0,'isToggleable':!0x0}),_0x51aa30['bind']('isOn')['to'](_0x31f34a,'value',_0x5110ca=>!!_0x5110ca),_0x444a6d['once']('change:isOpen',()=>{const _0x542bbb=createListPropertiesView({'editor':_0x22173f,'dropdownView':_0x444a6d,'styleGridAriaLabel':_0x5af9b2,'styleDefinitions':_0x551db9});_0x444a6d['panelView']['children']['add'](_0x542bbb);}),_0x444a6d['on']('execute',()=>{_0x22173f['editing']['view']['focus']();}),_0x444a6d;}:_0x3dbc52=>{const _0x3aa681=new ButtonView(_0x3dbc52);return _0x3aa681['set']({'label':_0x3cd71a,'icon':_0x508983,'tooltip':!0x0,'isToggleable':!0x0}),_0x3aa681['bind']('isOn')['to'](_0x31f34a,'value',_0x400b02=>!!_0x400b02),_0x3aa681['on']('execute',()=>{_0x22173f['execute'](_0x38e447),_0x22173f['editing']['view']['focus']();}),_0x3aa681;};}function createListPropertiesView({editor:_0x5e1519,dropdownView:_0x3fc9e7,styleDefinitions:_0x220408,styleGridAriaLabel:_0x1664eb}){const _0x5cc32c=_0x5e1519['locale'],_0x469d19=_0x5e1519['config']['get']('list.properties');_0x469d19['reversed']=!0x1,_0x220408['length']||(_0x469d19['styles']=!0x1);const _0x5c733d=new MultiLevelListView(_0x5cc32c,{'styleGridAriaLabel':_0x1664eb,'enabledProperties':_0x469d19,'styleButtonViews':null});if(_0x469d19['startIndex']){const _0x61adc3=_0x5e1519['commands']['get']('listStart');_0x5c733d['startIndexFieldView']['bind']('isEnabled')['to'](_0x61adc3),_0x5c733d['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x61adc3),_0x5c733d['on']('listStart',(_0x41980d,_0x571992)=>_0x5e1519['execute']('listStart',_0x571992));}return _0x5c733d['delegate']('execute')['to'](_0x3fc9e7),_0x5c733d;}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 _0x109dd1=this['editor']['model'],_0x51a9c1=_0x109dd1['schema']['checkChild'](_0x109dd1['document']['selection']['focus'],'mergeField');this['isEnabled']=_0x51a9c1;}['execute'](_0x2428c0){if(!_0x2428c0||'string'!=typeof _0x2428c0)return;const _0xcebb0f=this['editor']['model'];_0xcebb0f['change'](_0x5ca3a3=>{_0xcebb0f['deleteContent'](_0xcebb0f['document']['selection']);const _0x545df4=_0x5ca3a3['createElement']('mergeField',{'id':_0x2428c0});for(const [_0x305e34,_0x5996f5]of _0xcebb0f['document']['selection']['getAttributes']())_0xcebb0f['schema']['checkAttribute'](_0x545df4,_0x305e34)&&_0x5ca3a3['setAttribute'](_0x305e34,_0x5996f5,_0x545df4);_0xcebb0f['insertContent'](_0x545df4,_0xcebb0f['document']['selection'],0x0,{'setSelection':'after'});});}}class InsertMergeFieldBlockCommand extends Command{['refresh'](){const _0x163182=this['editor']['model'],_0x3b7391=_0x163182['document']['selection'];this['isEnabled']=isAllowedInParent(_0x3b7391,_0x163182);}['execute'](_0x1027ac,_0x9fe08f){if(!_0x1027ac||'string'!=typeof _0x1027ac)return;const _0x3c7107=this['editor']['model'];_0x3c7107['change'](_0x3fcaa3=>{const _0x527cb8=_0x3fcaa3['createElement']('mergeFieldBlock',{'id':_0x1027ac});_0x3c7107['insertObject'](_0x527cb8,_0x3c7107['document']['selection'],null,{'setSelection':'on','findOptimalPosition':!0x1===_0x9fe08f?void 0x0:'auto'});});}}function isAllowedInParent(_0x86cf2d,_0x2d1e0a){let _0xbe237b=findOptimalInsertionRange(_0x86cf2d,_0x2d1e0a)['start']['parent'];return _0xbe237b['isEmpty']&&!_0x2d1e0a['schema']['isLimit'](_0xbe237b)&&(_0xbe237b=_0xbe237b['parent']),_0x2d1e0a['schema']['checkChild'](_0xbe237b,'mergeFieldBlock');}class InsertMergeFieldImageCommand extends Command{constructor(_0x56ae34){super(_0x56ae34),this['bind']('isEnabled')['to'](this['editor']['commands']['get']('insertImage'));}['execute'](_0x4165ce,_0x373de8){if(!_0x4165ce||'string'!=typeof _0x4165ce)return;const _0x2ea9bc=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5f2960=_0x2ea9bc['getMergeFieldWidth'](_0x4165ce),_0x4d1949=_0x2ea9bc['getMergeFieldHeight'](_0x4165ce);this['editor']['execute']('insertImage',{'source':{'src':_0x2ea9bc['wrapInAffixes'](_0x4165ce),'width':_0x5f2960,'height':_0x4d1949},'breakBlock':_0x373de8&&_0x373de8['breakBlock']});}}class PreviewMergeFieldsCommand extends Command{constructor(_0x868cc8){super(_0x868cc8);const _0x174906=this['editor']['plugins']['get']('MergeFieldsEditing');this['bind']('value')['to'](_0x174906,'previewMode'),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2a3266){this['editor']['plugins']['get']('MergeFieldsEditing')['previewMode']=_0x2a3266;}}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(_0x32a4f1){super(_0x32a4f1),_0x32a4f1['config']['define']('mergeFields.previewModes',['$labels','$defaultValues','$dataSets']),_0x32a4f1['config']['define']('mergeFields.dataSets',[]),_0x32a4f1['config']['define']('mergeFields.definitions',[]),_0x32a4f1['config']['define']('mergeFields.prefix','{{'),_0x32a4f1['config']['define']('mergeFields.suffix','}}'),_0x32a4f1['config']['define']('mergeFields.previewHtmlValues',!0x1),_0x32a4f1['config']['define']('mergeFields.sanitizeHtml',_0x349175=>(logWarning('merge-fields-provide-sanitize-function'),{'html':_0x349175,'hasChanged':!0x1})),this['_mergeFieldPrefix']=_0x32a4f1['config']['get']('mergeFields.prefix'),this['_mergeFieldSuffix']=_0x32a4f1['config']['get']('mergeFields.suffix'),this['_shouldPreviewHtmlValues']=_0x32a4f1['config']['get']('mergeFields.previewHtmlValues'),this['flattenedMergeFieldDefinitions']=this['_getFlattenedMergeFieldDefinitions'](),this['_validateConfig']();const _0x39c754='\x5c'+this['_mergeFieldPrefix']['split']('')['join']('\x5c'),_0x1819b3='\x5c'+this['_mergeFieldSuffix']['split']('')['join']('\x5c');this['_mergeFieldRegExp']=new RegExp('('+_0x39c754+'[^'+(_0x39c754+_0x1819b3)+'\x20]+'+_0x1819b3+')','g'),this['availablePreviewModes']=this['_getAvailablePreviewModes']();const _0x3d1c5d=_0x32a4f1['config']['get']('mergeFields.initialPreviewMode')||this['availablePreviewModes'][0x0];this['_validatePreviewMode'](_0x3d1c5d),this['set']('previewMode',_0x3d1c5d),this['_mergeFieldElements']=new Set();}['init'](){const _0x556507=this['editor'];_0x556507['commands']['add']('insertMergeField',new InsertMergeFieldCommand(_0x556507)),_0x556507['commands']['add']('insertMergeFieldBlock',new InsertMergeFieldBlockCommand(_0x556507)),_0x556507['commands']['add']('insertMergeFieldImage',new InsertMergeFieldImageCommand(_0x556507)),_0x556507['commands']['add']('previewMergeFields',new PreviewMergeFieldsCommand(_0x556507)),this['_defineSchema'](),this['_defineConverters'](),this['_registerConversionPostFixer'](),this['listenTo'](this['editor']['editing']['view']['document'],'imageLoaded',this['_setupTooltipsTogglingForImageMergeField']),this['on']('change:previewMode',(_0x469df8,_0xdc2d87,_0x19153a)=>{this['_validatePreviewMode'](_0x19153a),this['refreshMergeFields']();}),this['listenTo'](_0x556507['model']['document'],'change:data',()=>{this['_trackAddedMergeFields']();}),_0x556507['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x556507['model'],_0x26d1f0=>_0x26d1f0['hasClass']('ck-merge-field'))),_0x556507['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x556507['model'],_0xbb799e=>_0xbb799e['hasClass']('ck-merge-field-block'))),_0x556507['editing']['view']['domConverter']['registerInlineObjectMatcher']({'name':'span','classes':['ck-merge-field']});}['afterInit'](){this['_disableCommandOnMergeFields']('ckboxImageEdit'),this['_disableCommandOnMergeFields']('uploadcareImageEdit'),checkLicense$8(this);}['isMergeField'](_0x23f3d3){return'mergeField'===_0x23f3d3['name']||'mergeFieldBlock'===_0x23f3d3['name']||!!('imageBlock'===_0x23f3d3['name']||'imageInline'===_0x23f3d3['name']&&_0x23f3d3['getAttribute']('src'))&&!!_0x23f3d3['getAttribute']('src')['match'](this['_mergeFieldRegExp']);}['getDefaultValues'](){const _0x5bf9bb={},_0x2225f6=this['getMergeFieldsIds']();for(const _0x1e6640 of _0x2225f6)_0x5bf9bb[_0x1e6640]=this['getMergeFieldDefaultValue'](_0x1e6640);return _0x5bf9bb;}['getDataSetValues'](_0x2aebe3,_0x503b49=!0x1){const _0x39b20d={},_0x523ed1=this['getMergeFieldsIds']();for(const _0x328e8a of _0x523ed1){let _0x590f92=this['getMergeFieldValue'](_0x328e8a,_0x2aebe3);null===_0x590f92&&_0x503b49&&(_0x590f92=this['getMergeFieldDefaultValue'](_0x328e8a)),_0x39b20d[_0x328e8a]=_0x590f92;}return _0x39b20d;}['getLabel'](_0x391f7f){const _0x37e50d=this['getDefinition'](_0x391f7f);return _0x37e50d&&_0x37e50d['label']?_0x37e50d['label']:null;}['getMergeFieldDefaultValue'](_0x27212b){const _0x3a0ac6=this['getDefinition'](_0x27212b);if(!_0x3a0ac6||void 0x0===_0x3a0ac6['defaultValue'])return null;const _0x221986='function'==typeof _0x3a0ac6['defaultValue']?_0x3a0ac6['defaultValue'](this['editor']):_0x3a0ac6['defaultValue'];return String(_0x221986);}['getMergeFieldValue'](_0x4c18c8,_0x2013d9){const _0x26133b=this['editor']['config']['get']('mergeFields.dataSets')['find'](_0x433177=>_0x433177['id']===_0x2013d9);if(!_0x26133b)throw new CKEditorError('merge-fields-data-set-not-found',null);const _0x45cdaa=_0x26133b['values'][_0x4c18c8];if(void 0x0===_0x45cdaa)return null;const _0x3fc8ca='function'==typeof _0x45cdaa?_0x45cdaa(this['editor']):_0x45cdaa;return String(_0x3fc8ca);}['getMergeFieldType'](_0x27ccd9){if('string'!=typeof _0x27ccd9){const _0x5245e8=_0x27ccd9;return'mergeField'===_0x5245e8['name']?'text':'mergeFieldBlock'===_0x5245e8['name']?'block':'imageBlock'!==_0x5245e8['name']&&'imageInline'!==_0x5245e8['name']||!_0x5245e8['getAttribute']('src')?null:_0x5245e8['getAttribute']('src')['match'](this['_mergeFieldRegExp'])?'image':null;}const _0x2f0a0a=this['getDefinition'](_0x27ccd9);return _0x2f0a0a&&_0x2f0a0a['type']?_0x2f0a0a['type']:'text';}['getMergeFieldHeight'](_0x24390f){const _0x7a78c9=this['getDefinition'](_0x24390f);return _0x7a78c9&&'block'===_0x7a78c9['type']?_0x7a78c9['height']||DEFAULT_MERGE_FIELD_BLOCK_HEIGHT:_0x7a78c9&&'image'===_0x7a78c9['type']?_0x7a78c9['height']||DEFAULT_MERGE_FIELD_IMAGE_HEIGHT:null;}['getMergeFieldWidth'](_0x312243){const _0x3df6fd=this['getDefinition'](_0x312243);return _0x3df6fd&&'image'===_0x3df6fd['type']?_0x3df6fd['width']||DEFAULT_MERGE_FIELD_IMAGE_WIDTH:null;}['getDocumentMergeFieldsIds'](){const _0x59fe76=new Set();for(const _0x274ceb of this['_mergeFieldElements'])'$graveyard'!==_0x274ceb['root']['rootName']&&('image'===this['getMergeFieldType'](_0x274ceb)?_0x59fe76['add'](this['unwrapAffixes'](_0x274ceb['getAttribute']('src'))):_0x59fe76['add'](_0x274ceb['getAttribute']('id')));return Array['from'](_0x59fe76);}['getMergeFieldsIds'](){const _0x2fd7b3=this['flattenedMergeFieldDefinitions']['map'](_0x455493=>_0x455493['id']),_0x414733=this['getDocumentMergeFieldsIds']();return Array['from'](new Set([..._0x2fd7b3,..._0x414733]));}['getDefinition'](_0x10f08c){return this['flattenedMergeFieldDefinitions']['find'](_0x140056=>_0x140056['id']===_0x10f08c)||null;}['refreshMergeFields'](){this['_mergeFieldElements']['forEach'](_0xb0139b=>{'$graveyard'!==_0xb0139b['root']['rootName']&&this['editor']['editing']['reconvertItem'](_0xb0139b);});}['wrapInAffixes'](_0x48dd14){return this['_mergeFieldPrefix']+_0x48dd14+this['_mergeFieldSuffix'];}['unwrapAffixes'](_0x458ea3){return _0x458ea3['slice'](this['_mergeFieldPrefix']['length'],_0x458ea3['length']-this['_mergeFieldSuffix']['length']);}['_getFlattenedMergeFieldDefinitions'](){const _0x1b9997=new Set(),_0x423bfa=this['editor'];return _0x423bfa['config']['get']('mergeFields.definitions')['reduce']((_0x3545cb,_0x58723c)=>{if('groupId'in _0x58723c){if(_0x1b9997['has'](_0x58723c['groupId']))throw new CKEditorError('merge-fields-duplicate-group-id',_0x423bfa,{'duplicateId':_0x58723c['groupId']});_0x1b9997['add'](_0x58723c['groupId']);}return'groupId'in _0x58723c?function(_0x59c5ee,_0x4dd5a5){for(const _0x5748b1 of _0x4dd5a5['definitions'])_0x59c5ee=_0x59c5ee['concat'](_0x5748b1);return _0x59c5ee;}['bind'](_0x423bfa)(_0x3545cb,_0x58723c):_0x3545cb['concat'](_0x58723c);},new Array());}['_validateConfig'](){const _0x32bff7=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x32bff7['test'](this['_mergeFieldPrefix'])||!_0x32bff7['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 _0x413fd1=new Set();if(this['flattenedMergeFieldDefinitions']['map'](_0x50e6c1=>{if(!ALLOWED_IN_IDS['test'](_0x50e6c1['id']))throw new CKEditorError('merge-fields-invalid-id',this,{'incorrectId':_0x50e6c1['id']});if(_0x413fd1['has'](_0x50e6c1['id']))throw new CKEditorError('merge-fields-duplicate-merge-field-id',this,{'duplicateId':_0x50e6c1['id']});_0x413fd1['add'](_0x50e6c1['id']);}),this['_mergeFieldPrefix']===this['_mergeFieldSuffix'])throw new CKEditorError('merge-fields-prefix-and-suffix-must-differ',this);const _0x56f012=this['editor']['config']['get']('mergeFields.previewModes'),_0x337608=['$labels','$defaultValues','$dataSets'];if(!_0x56f012['length']||!_0x56f012['every'](_0x21f525=>_0x337608['includes'](_0x21f525)))throw new CKEditorError('merge-fields-invalid-preview-modes-configuration',this,{'invalidConfig':_0x56f012});const _0x5f5b5e=new Set(),_0xad6b2a=this['editor']['config']['get']('mergeFields.dataSets');for(const _0xd87102 of _0xad6b2a){if(_0x5f5b5e['has'](_0xd87102['id']))throw new CKEditorError('merge-fields-duplicate-data-set-id',this,{'duplicateId':_0xd87102['id']});_0x5f5b5e['add'](_0xd87102['id']);}}['_getAvailablePreviewModes'](){const _0x2db19e=this['editor']['config']['get']('mergeFields.previewModes'),_0xf8b84f=[];if(_0x2db19e['includes']('$labels')&&_0xf8b84f['push']('$labels'),_0x2db19e['includes']('$defaultValues')&&_0xf8b84f['push']('$defaultValues'),_0x2db19e['includes']('$dataSets')){const _0x5b4d3b=this['editor']['config']['get']('mergeFields.dataSets');_0xf8b84f['push'](..._0x5b4d3b['map'](_0xb3661b=>_0xb3661b['id']));}return _0xf8b84f;}['_defineSchema'](){const _0x41d94f=this['editor']['model']['schema'];_0x41d94f['register']('mergeField',{'inheritAllFrom':'$inlineObject','allowAttributes':['id'],'allowWhere':'$text'}),_0x41d94f['register']('mergeFieldBlock',{'inheritAllFrom':'$blockObject','allowAttributes':['id']});}['_defineConverters'](){const _0x5d5578=this['editor']['conversion'];_0x5d5578['for']('upcast')['add'](_0x1e4165=>{_0x1e4165['on']('text',(_0x43e180,_0x5d5564,_0x44819e)=>{const {writer:_0x3189ab,safeInsert:_0x1f1f8d}=_0x44819e,{viewItem:_0x18e596}=_0x5d5564,_0x3bdb72=_0x18e596['data']['split'](this['_mergeFieldRegExp'])['filter'](_0x1c9397=>_0x1c9397);if(0x1===_0x3bdb72['length']&&!_0x3bdb72[0x0]['match'](this['_mergeFieldRegExp']))return;if(!_0x5d5564['modelRange'])return;const _0x43d2b6=_0x3189ab['createElement']('$cursor');_0x3189ab['insert'](_0x43d2b6,_0x5d5564['modelCursor']);const _0x15be60=[];for(const _0x46bd82 of _0x5d5564['modelRange']['getItems']()){if(!_0x46bd82['is']('$textProxy'))continue;const _0x1e9c2c=_0x46bd82['textNode']['data']['matchAll'](this['_mergeFieldRegExp']),_0x3a0201=_0x46bd82['parent'],_0x4053d6=_0x46bd82['textNode']['startOffset'];for(const _0x29b53a of[..._0x1e9c2c]['reverse']()){const _0x42038b=_0x29b53a[0x0],_0x5805fd=_0x3189ab['createPositionAt'](_0x3a0201,_0x29b53a['index']+_0x4053d6),_0x3dae9a=_0x5805fd['getShiftedBy'](_0x42038b['length']),_0x3859b1=_0x3189ab['createRange'](_0x5805fd,_0x3dae9a),_0x5b522d=this['unwrapAffixes'](_0x42038b),_0x132abc=this['getMergeFieldType'](_0x5b522d),_0xe2aff7='block'==_0x132abc?'mergeFieldBlock':'mergeField',_0x23d57a=_0x3189ab['createElement'](_0xe2aff7,{'id':_0x5b522d});_0x3189ab['remove'](_0x3859b1),_0x3189ab['insert'](_0x23d57a,_0x5805fd),'block'==_0x132abc&&_0x15be60['push'](_0x23d57a);}}_0x15be60['reverse']();for(const _0xfbabb6 of _0x15be60){const _0x1b9a5c=_0x3189ab['createPositionBefore'](_0xfbabb6),_0x2439da=_0xfbabb6['nextSibling']==_0x43d2b6;_0x3189ab['remove'](_0xfbabb6),_0x1f1f8d(_0xfbabb6,_0x1b9a5c)&&_0x2439da&&_0x3189ab['move'](_0x3189ab['createRangeOn'](_0x43d2b6),_0x3189ab['createPositionAfter'](_0xfbabb6));}_0x5d5564['modelCursor']=_0x3189ab['createPositionBefore'](_0x43d2b6),_0x5d5564['modelRange']=_0x3189ab['createRange'](_0x5d5564['modelRange']['start'],_0x5d5564['modelCursor']),_0x3189ab['remove'](_0x43d2b6);},{'priority':priorities['get']('lowest')-0x1});}),_0x5d5578['for']('upcast')['elementToElement']({'view':{'name':'span','attributes':'data-ck-merge-field'},'model':(_0x532dfc,{writer:_0x2ab6be})=>_0x2ab6be['createElement']('mergeField',{'id':_0x532dfc['getAttribute']('data-ck-merge-field')})}),_0x5d5578['for']('upcast')['elementToElement']({'view':{'name':'div','attributes':'data-ck-merge-field'},'model':(_0x20bd25,{writer:_0x297752})=>_0x297752['createElement']('mergeFieldBlock',{'id':_0x20bd25['getAttribute']('data-ck-merge-field')})}),_0x5d5578['for']('upcast')['add'](this['_upcastSrcAttributeFromClipboard']()),_0x5d5578['for']('editingDowncast')['elementToElement']({'model':'mergeField','view':(_0x35a679,{writer:_0x47fd03})=>this['_createMergeFieldWidget'](_0x35a679,_0x47fd03,'text')}),_0x5d5578['for']('dataDowncast')['elementToElement']({'model':'mergeField','view':(_0x56c2b7,{writer:_0x322411,options:_0x3ec4e3})=>this['_createTextualMergeField'](_0x56c2b7,_0x322411,_0x3ec4e3)}),_0x5d5578['for']('editingDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x380a5e,{writer:_0x2e693c})=>this['_createMergeFieldWidget'](_0x380a5e,_0x2e693c,'block')}),_0x5d5578['for']('dataDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x4aad9f,{writer:_0x3cab0a,options:_0x5d0552})=>this['_createTextualMergeField'](_0x4aad9f,_0x3cab0a,_0x5d0552)}),_0x5d5578['for']('editingDowncast')['add'](this['_downcastSrcAttributeToEditing']('imageBlock'))['add'](this['_downcastSrcAttributeToEditing']('imageInline')),_0x5d5578['for']('dataDowncast')['add'](this['_downcastSrcAttributeToData']('imageBlock'))['add'](this['_downcastSrcAttributeToData']('imageInline'));}['_upcastSrcAttributeFromClipboard'](){return _0x160f1a=>{_0x160f1a['on']('element:img',(_0x271cae,_0x4c0a3a,_0x3f7ae7)=>{_0x3f7ae7['consumable']['test'](_0x4c0a3a['viewItem'],{'attributes':'data-ck-merge-field'})&&(_0x3f7ae7['writer']['setAttribute']('src',this['wrapInAffixes'](_0x4c0a3a['viewItem']['getAttribute']('data-ck-merge-field')),_0x4c0a3a['modelCursor']['nodeBefore']),_0x3f7ae7['consumable']['consume'](_0x4c0a3a['viewItem'],{'attributes':'data-ck-merge-field'}));},{'priority':'low'});};}['_downcastSrcAttributeToData'](_0x5f2d67){const _0x498d02=this['editor']['plugins']['get']('ImageUtils'),_0x5a97dd=(_0x4c728a,_0x32483e,_0x24c8ed)=>{if(!0x1!==_0x24c8ed['consumable']['test'](_0x32483e['item'],_0x4c728a['name']))return;if(!String(_0x32483e['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x33a5a0=_0x24c8ed['writer'],_0x26de3a=_0x24c8ed['mapper']['toViewElement'](_0x32483e['item']),_0x2a3c1b=_0x498d02['findViewImgElement'](_0x26de3a),_0x866b72=String(_0x32483e['attributeNewValue']),_0x1a1ca3=this['unwrapAffixes'](_0x866b72),_0x112092=_0x24c8ed['options']['mergeFieldsData'];if(_0x24c8ed['options']['isClipboardPipeline']&&'$labels'!==this['previewMode']){let _0x2fe59c;return _0x2fe59c='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x1a1ca3)||this['getLabel'](_0x1a1ca3)||this['wrapInAffixes'](_0x1a1ca3):this['getMergeFieldValue'](_0x1a1ca3,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x1a1ca3)||this['getLabel'](_0x1a1ca3)||this['wrapInAffixes'](_0x1a1ca3),_0x33a5a0['setAttribute']('data-ck-merge-field',_0x1a1ca3,_0x2a3c1b),void _0x33a5a0['setAttribute'](_0x32483e['attributeKey'],_0x2fe59c,_0x2a3c1b);}const _0x530c65=_0x112092&&_0x112092[_0x1a1ca3]?_0x112092[_0x1a1ca3]:_0x866b72;_0x33a5a0['setAttribute'](_0x32483e['attributeKey'],_0x530c65,_0x2a3c1b);};return _0x196b91=>{_0x196b91['on']('attribute:src:'+_0x5f2d67,_0x5a97dd,{'priority':'low'});};}['_downcastSrcAttributeToEditing'](_0x44bdeb){const _0x553b6c=this['editor']['plugins']['get']('ImageUtils'),_0x55bb6b=(_0x45e784,_0x39881d,_0x599417)=>{if(!0x1!==_0x599417['consumable']['test'](_0x39881d['item'],_0x45e784['name']))return;if(!String(_0x39881d['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x37170c=_0x599417['writer'],_0x5b9f06=_0x599417['mapper']['toViewElement'](_0x39881d['item']),_0x2f330c=_0x553b6c['findViewImgElement'](_0x5b9f06),_0x1a47ba=String(_0x39881d['attributeNewValue']),_0x5a90cb=this['unwrapAffixes'](_0x1a47ba),_0x29da35=this['getMergeFieldDefaultValue'](_0x5a90cb),_0xdd9faa='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC';let _0x48a755,_0x482f0c='',_0x50e1bf='';if('$labels'===this['previewMode'])_0x48a755=_0xdd9faa;else{if('$defaultValues'===this['previewMode'])_0x29da35?(_0x48a755=_0x29da35,_0x50e1bf='\x20ck-merge-field-image_with-value'):(_0x48a755=_0xdd9faa,_0x482f0c='WARNING_MISSING_DEFAULT_VALUE',_0x50e1bf='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_no-default');else{const _0x4cfabf=this['getMergeFieldValue'](_0x5a90cb,this['previewMode']);_0x4cfabf?(_0x48a755=_0x4cfabf,_0x50e1bf='\x20ck-merge-field-image_with-value'):_0x29da35?(_0x48a755=_0x29da35,_0x50e1bf='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_default-value-used',_0x482f0c='WARNING_MISSING_DATA_USED_DEFAULT_VALUE'):(_0x48a755=_0xdd9faa,_0x50e1bf='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_missing-data',_0x482f0c='WARNING_MISSING_DATA');}}if(_0x37170c['addClass']('ck-merge-field-image'+_0x50e1bf,_0x5b9f06),_0x37170c['setAttribute'](_0x39881d['attributeKey'],_0x48a755,_0x2f330c),'$labels'===this['previewMode']){const _0x63b8ee='imageInline'===_0x44bdeb?'span':'div',_0x1650fd=this['_mergeFieldPrefix'],_0x211e43=this['_mergeFieldSuffix'],_0xfecfd0=_0x37170c['createContainerElement'](_0x63b8ee,{'class':'ck-merge-field','data-cke-tooltip-instant':'true'},[_0x37170c['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x203a4d){const _0x53de13=this['toDomElement'](_0x203a4d);return _0x53de13['innerHTML']=_0x1650fd,_0x53de13;}),_0x37170c['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x37170c['createText'](this['getLabel'](_0x5a90cb)||_0x5a90cb)),_0x37170c['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x565e56){const _0xc2b04b=this['toDomElement'](_0x565e56);return _0xc2b04b['innerHTML']=_0x211e43,_0xc2b04b;})]);_0x37170c['insert'](_0x37170c['createPositionAt'](_0x5b9f06,'end'),_0xfecfd0),_0x37170c['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x5a90cb)||_0x5a90cb,_0xfecfd0);}else{if(_0x482f0c&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x482f0c)){const _0x41b02e='imageInline'===_0x44bdeb?'span':'div',_0x33b80c=_0x50e1bf['replace'](/ck-merge-field-image/g,'ck-merge-field'),_0x41b849=_0x37170c['createContainerElement'](_0x41b02e,{'class':'ck-merge-field'+_0x33b80c,'data-cke-tooltip-instant':'true'},[_0x37170c['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x37170c['createText'](this['getLabel'](_0x5a90cb)||_0x5a90cb))]),_0x19c712=_0x37170c['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x340f8a){const _0x362867=this['toDomElement'](_0x340f8a),_0x22ef7a=new IconView();return _0x22ef7a['set']({'content':IconWarning}),_0x22ef7a['render'](),_0x362867['appendChild'](_0x22ef7a['element']),_0x362867;});_0x37170c['insert'](_0x37170c['createPositionAt'](_0x41b849,'end'),_0x19c712),_0x37170c['insert'](_0x37170c['createPositionAt'](_0x5b9f06,'end'),_0x41b849),_0x37170c['setCustomProperty']('mergeFieldStatus',_0x482f0c,_0x41b849),_0x37170c['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x5a90cb)||_0x5a90cb,_0x41b849);}}_0x37170c['setAttribute']('data-merge-field-name',_0x5a90cb,_0x5b9f06),_0x482f0c&&_0x37170c['setCustomProperty']('mergeFieldStatus',_0x482f0c,_0x5b9f06);};return _0x4ed3fa=>{_0x4ed3fa['on']('attribute:src:'+_0x44bdeb,_0x55bb6b,{'priority':'low'});};}['_setupTooltipsTogglingForImageMergeField'](_0x21b108,_0x1bf122){if(!_0x1bf122['target'])return null;const _0x51098b=_0x1bf122['target']['parentElement'];return _0x51098b&&_0x51098b['classList']['contains']('ck-merge-field-image')?new _0x5be1d1(_0x51098b,_0xe9796=>{const _0x402ac5=_0xe9796['target'],_0x59776f=_0x402ac5['querySelector']('.ck-merge-field'),_0x49ac6f=_0x402ac5['querySelector']('.ck-merge-field__content');_0x59776f&&_0x49ac6f&&(_0x49ac6f['scrollWidth']>_0x49ac6f['getBoundingClientRect']()['width']?_0x59776f['removeAttribute']('data-cke-tooltip-disabled'):_0x59776f['setAttribute']('data-cke-tooltip-disabled','true'));}):null;}['_createMergeFieldWidget'](_0x2bd5ca,_0x39b742,_0x6a3f80){const {label:_0x360b07,classes:_0x3a816a,status:_0x48f6eb,height:_0x2c9916}=this['_prepareViewElementData'](_0x2bd5ca),_0x46250f=this['_mergeFieldPrefix'],_0x313e99=this['_mergeFieldSuffix'],_0x2bffdd=this['editor']['config']['get']('mergeFields.sanitizeHtml'),_0x57fdd3='text'===_0x6a3f80?'span':'div';let _0x3bd1db;if('$labels'===this['previewMode'])_0x3bd1db=_0x39b742['createContainerElement'](_0x57fdd3,{'class':_0x3a816a},[_0x39b742['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x3011d9){const _0x2258d8=this['toDomElement'](_0x3011d9);return _0x2258d8['innerHTML']=_0x46250f,_0x2258d8;}),_0x39b742['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x39b742['createText'](String(_0x360b07))),_0x39b742['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x5268cf){const _0x2654fb=this['toDomElement'](_0x5268cf);return _0x2654fb['innerHTML']=_0x313e99,_0x2654fb;})]);else{if(_0x48f6eb){const _0x202d1d=this['_shouldPreviewHtmlValues']?_0x39b742['createRawElement']('span',{'class':'ck-merge-field__content'},function(_0x579a7e,_0x2cce39){_0x2cce39['setContentOf'](_0x579a7e,_0x2bffdd(_0x360b07)['html']);}):_0x39b742['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x39b742['createText'](_0x360b07));if(_0x3bd1db=_0x39b742['createContainerElement'](_0x57fdd3,{'class':_0x3a816a},[_0x202d1d]),'text'===_0x6a3f80||['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x48f6eb)){const _0x9e3f81=_0x39b742['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x3aa68c){const _0x3c9de6=this['toDomElement'](_0x3aa68c),_0x5b31c5=new IconView();return _0x5b31c5['set']({'content':IconWarning}),_0x5b31c5['render'](),_0x3c9de6['appendChild'](_0x5b31c5['element']),_0x3c9de6;});_0x39b742['insert'](_0x39b742['createPositionAt'](_0x3bd1db,'end'),_0x9e3f81);}_0x39b742['setCustomProperty']('mergeFieldStatus',_0x48f6eb,_0x3bd1db);}else{const _0x832956=this['_shouldPreviewHtmlValues']?_0x39b742['createRawElement'](_0x57fdd3,{},function(_0x4759f0,_0x33aacb){_0x33aacb['setContentOf'](_0x4759f0,_0x2bffdd(_0x360b07)['html']);}):_0x39b742['createText'](_0x360b07);_0x3bd1db=_0x39b742['createContainerElement'](_0x57fdd3,{'class':_0x3a816a},_0x832956);}}if('block'===_0x6a3f80){const _0x19fcc9=_0x39b742['createContainerElement']('div',{'class':'ck-merge-field-block'},[_0x3bd1db]);if(('$labels'===this['previewMode']||_0x48f6eb&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x48f6eb))&&_0x39b742['setAttribute']('style','height:\x20'+_0x2c9916+'px',_0x19fcc9),_0x3bd1db['hasClass']('ck-merge-field_with-value'))_0x39b742['addClass']('ck-merge-field-block_with-value',_0x19fcc9);else{if(_0x3bd1db['hasClass']('ck-merge-field_with-warning')){for(const _0x199592 of _0x3bd1db['getClassNames']())if('ck-merge-field'!==_0x199592){const _0xd1da60=_0x199592['replace']('ck-merge-field','ck-merge-field-block');_0x39b742['addClass'](_0xd1da60,_0x19fcc9);}_0x39b742['setCustomProperty']('mergeFieldStatus',_0x48f6eb,_0x19fcc9);}}return _0x39b742['setCustomProperty']('mergeFieldBlock',!0x0,_0x19fcc9),_0x39b742['setAttribute']('data-merge-field-name',_0x2bd5ca['getAttribute']('id'),_0x19fcc9),toWidget(_0x19fcc9,_0x39b742,{'hasSelectionHandle':!0x0});}return _0x39b742['setCustomProperty']('mergeField',!0x0,_0x3bd1db),_0x39b742['setAttribute']('data-merge-field-name',_0x2bd5ca['getAttribute']('id'),_0x3bd1db),toWidget(_0x3bd1db,_0x39b742);}['_prepareViewElementData'](_0xba321d){const _0x299f2d=_0xba321d['getAttribute']('id'),_0x14d079=this['getDefinition'](_0x299f2d);if(!_0x14d079)return'$labels'===this['previewMode']?{'label':_0x299f2d,'classes':'ck-merge-field'}:{'label':_0x299f2d,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','status':'WARNING_MISSING_DATA'};const _0x303748=this['getLabel'](_0x299f2d)||_0x299f2d,_0x4ee16d=this['getMergeFieldDefaultValue'](_0x299f2d),_0x172247=this['getMergeFieldHeight'](_0x299f2d);if('$labels'===this['previewMode'])return{'label':_0x303748,'height':_0x172247,'classes':'ck-merge-field'};if('$defaultValues'===this['previewMode'])return _0x4ee16d?{'label':_0x4ee16d,'height':_0x172247,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:{'label':_0x303748,'height':_0x172247,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','status':'WARNING_MISSING_DEFAULT_VALUE'};const _0x273aea=this['getMergeFieldValue'](_0x14d079['id'],this['previewMode']);return _0x273aea?{'label':_0x273aea,'height':_0x172247,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:_0x4ee16d?{'label':_0x4ee16d,'height':_0x172247,'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':_0x303748,'height':_0x172247,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','status':'WARNING_MISSING_DATA'};}['_createTextualMergeField'](_0x357211,_0x409ea5,_0x5edcf8){const _0x3e9613=_0x357211['getAttribute']('id');let _0x31ebb7;if(_0x5edcf8['isClipboardPipeline']&&'$labels'!==this['previewMode'])return this['_downcastForClipboard'](_0x3e9613,_0x409ea5);const _0x1de24d=_0x5edcf8['mergeFieldsData'],_0x5622d1=_0x1de24d&&_0x1de24d[_0x3e9613]?_0x1de24d[_0x3e9613]:this['wrapInAffixes'](_0x3e9613);if(_0x1de24d)_0x31ebb7=_0x409ea5['createRawElement']('span',{},function(_0x39007a,_0x25cd51){_0x25cd51['setContentOf'](_0x39007a,String(_0x5622d1));});else{_0x31ebb7=_0x409ea5['createContainerElement']('span');const _0x2854c9=_0x409ea5['createText'](_0x5622d1);_0x409ea5['insert'](_0x409ea5['createPositionAt'](_0x31ebb7,'end'),_0x2854c9);}return _0x409ea5['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x31ebb7),_0x31ebb7;}['_downcastForClipboard'](_0x3c6209,_0x299e7f){const _0x47129a='block'===this['getMergeFieldType'](_0x3c6209)?'div':'span';let _0x55c6de,_0x12fcdd;_0x55c6de='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x3c6209)||this['getLabel'](_0x3c6209)||this['wrapInAffixes'](_0x3c6209):this['getMergeFieldValue'](_0x3c6209,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x3c6209)||this['getLabel'](_0x3c6209)||this['wrapInAffixes'](_0x3c6209);const _0x56ee47=this['editor']['config']['get']('mergeFields.sanitizeHtml');return _0x12fcdd=this['_shouldPreviewHtmlValues']?_0x299e7f['createRawElement'](_0x47129a,{'data-ck-merge-field':_0x3c6209},function(_0x460f66,_0x58a356){_0x58a356['setContentOf'](_0x460f66,_0x56ee47(_0x55c6de)['html']);}):_0x299e7f['createContainerElement'](_0x47129a,{'data-ck-merge-field':_0x3c6209},_0x299e7f['createText'](_0x55c6de)),_0x12fcdd;}['_validatePreviewMode'](_0x32a405){if(!this['availablePreviewModes']['includes'](_0x32a405))throw new CKEditorError('merge-fields-invalid-preview-mode-set',this,{'availablePreviewModes':this['availablePreviewModes'],'previewMode':_0x32a405});}['_trackAddedMergeFields'](){for(const _0x16dc67 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x16dc67['type']||'$text'===_0x16dc67['name'])continue;if('mergeField'===_0x16dc67['name']||'mergeFieldBlock'===_0x16dc67['name']){this['_mergeFieldElements']['add'](_0x16dc67['position']['nodeAfter']);continue;}if('imageInline'===_0x16dc67['name']||'imageBlock'===_0x16dc67['name']&&_0x16dc67['attributes']['get']('src')&&String(_0x16dc67['attributes']['get']('src'))['match'](this['_mergeFieldRegExp'])){this['_mergeFieldElements']['add'](_0x16dc67['position']['nodeAfter']);continue;}const _0x548824=this['editor']['model']['createRangeIn'](_0x16dc67['position']['nodeAfter']);for(const _0x205ce7 of _0x548824['getItems']())_0x205ce7['is']('element')&&this['isMergeField'](_0x205ce7)&&this['_mergeFieldElements']['add'](_0x205ce7);}}['_registerConversionPostFixer'](){const _0x1d2991=this['editor'];_0x1d2991['model']['document']['registerPostFixer'](_0x3aaffe=>{if(!_0x3aaffe['batch']['isLocal'])return!0x1;const _0x3d48a2=[],_0x12558d=new Set(),_0x2e3318=this['_mergeFieldRegExp'];let _0x261f01=!0x1;for(const _0xda2a79 of _0x1d2991['model']['document']['differ']['getChanges']())if('insert'===_0xda2a79['type']||'remove'===_0xda2a79['type']){let _0x4fca5b='$text'==_0xda2a79['name']?_0xda2a79['position']['parent']:_0xda2a79['position']['nodeAfter'];if(!_0x4fca5b)continue;_0x4fca5b['is']('$text')&&(_0x4fca5b=_0x4fca5b['parent']),_0x2d48d8(_0x4fca5b);}for(const _0x222903 of _0x3d48a2['reverse']()){const {match:_0x57939f,item:_0x2719c0}=_0x222903,_0x41b5de=_0x3aaffe['createPositionAt'](_0x2719c0,_0x57939f['index']),_0x1c62d4=_0x41b5de['getShiftedBy'](_0x57939f[0x0]['length']),_0xa20313=_0x3aaffe['createRange'](_0x41b5de,_0x1c62d4),_0x5ea64e=_0x57939f[0x0],_0x561ef4=this['unwrapAffixes'](_0x5ea64e),_0x246eaf=_0x4f0534(_0xa20313),_0x58975b=this['getMergeFieldType'](_0x561ef4);if(ALLOWED_IN_IDS['test'](_0x561ef4)){if(_0x246eaf['set']('id',_0x561ef4),'block'===_0x58975b){const _0x23fb00=_0x3aaffe['createElement']('mergeFieldBlock',{'id':_0x561ef4});_0x3aaffe['remove'](_0xa20313),_0x1d2991['model']['insertObject'](_0x23fb00,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{if('image'===_0x58975b){const _0x55a046=_0x3aaffe['createElement']('imageBlock',{'src':this['wrapInAffixes'](_0x561ef4)});_0x3aaffe['remove'](_0xa20313),_0x1d2991['model']['insertObject'](_0x55a046,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{const _0x327cd3=_0x3aaffe['createElement']('mergeField',_0x246eaf);_0x1d2991['model']['schema']['checkChild'](_0xa20313['start'],'mergeField')?_0x1d2991['model']['insertObject'](_0x327cd3,_0xa20313):_0x3aaffe['remove'](_0xa20313);}}_0x261f01=!0x0;}}return _0x261f01;function _0x2d48d8(_0x3bc50f){let _0x18ffc9='',_0x8c573e=0x0;if(!_0x12558d['has'](_0x3bc50f))for(const _0x1f8130 of _0x3bc50f['getChildren']()){const _0x156ba2=_0x1f8130['nextSibling'];if(_0x1f8130['is']('$text')&&(''===_0x18ffc9&&_0x1f8130['startOffset']&&(_0x8c573e=_0x1f8130['startOffset']),_0x18ffc9+=_0x1f8130['data']),!_0x156ba2||_0x156ba2['is']('element')){for(const _0x1285bc of _0x18ffc9['matchAll'](_0x2e3318))_0x1285bc['index']=_0x1285bc['index']+_0x8c573e,_0x3d48a2['push']({'match':_0x1285bc,'item':_0x3bc50f});_0x12558d['add'](_0x3bc50f),_0x18ffc9='';}_0x1f8130['is']('element')&&_0x2d48d8(_0x1f8130);}}function _0x4f0534(_0x527782){const _0x11d621=_0x527782['getItems'](),_0x241208=_0x11d621['next']()['value'],_0x4df5ea=new Map(_0x241208['getAttributes']());for(const _0x3106c1 of _0x11d621)for(const [_0x5833b3,_0x3f43f3]of _0x4df5ea)_0x3106c1['getAttribute'](_0x5833b3)!==_0x3f43f3&&_0x4df5ea['delete'](_0x5833b3);return _0x4df5ea;}});}['_disableCommandOnMergeFields'](_0x4588d6){const _0x35dab0=this['editor'],_0xd0ef26=_0x35dab0['commands']['get'](_0x4588d6);_0xd0ef26&&_0xd0ef26['on']('set:isEnabled',(_0x3d89c5,_0x386b82,_0x2a9f49)=>{if(0x1==_0x2a9f49){const _0xeb05c3=_0x35dab0['model']['document']['selection']['getSelectedElement']();_0xeb05c3&&this['isMergeField'](_0xeb05c3)&&(_0x3d89c5['return']=!0x1,_0x3d89c5['stop']());}});}}async function checkLicense$8(_0x3d802e){const _0x32101a=_0x4396fd([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]),_0x3e8652=window[_0x4396fd([0x44,0x61,0x74,0x65])][_0x4396fd([0x6e,0x6f,0x77])](),_0x190161=_0x3d802e[_0x4396fd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15ab34=new window[(_0x4396fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bdf9c=>{_0x190161[_0x4396fd([0x6f,0x6e,0x63,0x65])](_0x4396fd([0x72,0x65,0x61,0x64,0x79]),_0x5bdf9c);}),_0x1f3916={[_0x4396fd([0x6b,0x74,0x79])]:_0x4396fd([0x45,0x43]),[_0x4396fd([0x75,0x73,0x65])]:_0x4396fd([0x73,0x69,0x67]),[_0x4396fd([0x63,0x72,0x76])]:_0x4396fd([0x50,0x2d,0x32,0x35,0x36]),[_0x4396fd([0x78])]:_0x4396fd([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]),[_0x4396fd([0x79])]:_0x4396fd([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]),[_0x4396fd([0x61,0x6c,0x67])]:_0x4396fd([0x45,0x53,0x32,0x35,0x36])},_0x5a9eec=_0x190161[_0x4396fd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4396fd([0x67,0x65,0x74])](_0x4396fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x164f79=await(async function(){let _0x2b5747,_0x1f9d8e=null,_0x408b46=null;try{if(_0x5a9eec==_0x4396fd([0x47,0x50,0x4c]))return _0x4396fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b5747=(function(){const _0xeaadd1=_0x5a9eec[_0x4396fd([0x73,0x70,0x6c,0x69,0x74])](_0x4396fd([0x2e]));if(0x3!=_0xeaadd1[_0x4396fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x186ef4=_0xeaadd1[0x1];return _0x331ddb(_0x186ef4);function _0x331ddb(_0x3b2f37){const _0xce222b=_0x4dd6ac(_0x3b2f37);return _0xce222b&&_0x5bd33c()?_0xce222b:null;function _0x5bd33c(){const _0x1a6dee=_0xce222b[_0x4396fd([0x6a,0x74,0x69])],_0x21aaa4=window[_0x4396fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a6dee[_0x4396fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a6dee[_0x4396fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f837a={..._0xce222b,[_0x4396fd([0x6a,0x74,0x69])]:_0x1a6dee[_0x4396fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a6dee[_0x4396fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f837a[_0x4396fd([0x76,0x63])],_0x4eb31e(_0x2f837a)==_0x21aaa4;}}}()),!_0x2b5747)return _0x4396fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x2b5747[_0x4396fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x408b46=function(_0x1ec121,_0x11eb15){return new window[(_0x4396fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x246997=>{if(_0x445f42())return _0x246997(_0x4396fd([0x56,0x61,0x6c,0x69,0x64]));_0x506484(),_0x190161[_0x4396fd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4396fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x204224=!0x1;const _0x43fa67=uid();function _0x43e34b(_0x316982){return!!_0x316982&&(typeof _0x316982===_0x4396fd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x316982===_0x4396fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x316982[_0x4396fd([0x74,0x68,0x65,0x6e])]===_0x4396fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x316982[_0x4396fd([0x63,0x61,0x74,0x63,0x68])]===_0x4396fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31d524(_0x163d5b){_0x5c5d7a(_0x163d5b)[_0x4396fd([0x74,0x68,0x65,0x6e])](_0x29f417=>{if(!_0x29f417||_0x29f417[_0x4396fd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4396fd([0x6f,0x6b]))return _0x4396fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1df7d6(_0x4eb31e(_0x43fa67+_0x11eb15))!=_0x29f417[_0x4396fd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4396fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4396fd([0x56,0x61,0x6c,0x69,0x64]);})[_0x4396fd([0x74,0x68,0x65,0x6e])](_0x1e2b9d=>(_0x5a5e54(),_0x1e2b9d),()=>{const _0x47eab4=_0x34f02e();return null==_0x47eab4?(_0x5a5e54(),_0x4396fd([0x56,0x61,0x6c,0x69,0x64])):_0x4396fd(_0x3e8652-_0x47eab4>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4396fd([0x74,0x68,0x65,0x6e])](_0x246997)[_0x4396fd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x246997(_0x4396fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6357d7=0x36ee80;function _0x5a5e54(){const _0x29948d=_0x4396fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x1df7d6(_0x4eb31e(_0x1ec121)),_0x2d34a3=_0x566ab6(_0x1df7d6(window[_0x4396fd([0x4d,0x61,0x74,0x68])][_0x4396fd([0x63,0x65,0x69,0x6c])](_0x3e8652/_0x6357d7)));window[_0x4396fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4396fd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29948d,_0x2d34a3);}function _0x34f02e(){const _0x2a8a3e=_0x4396fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x1df7d6(_0x4eb31e(_0x1ec121)),_0x5c1b1a=window[_0x4396fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4396fd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a8a3e);return _0x5c1b1a?window[_0x4396fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x566ab6(_0x5c1b1a),0x10)*_0x6357d7:null;}function _0x5c5d7a(_0x52f907){return new window[(_0x4396fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b067c,_0x165b56)=>{_0x52f907[_0x4396fd([0x74,0x68,0x65,0x6e])](_0x4b067c,_0x165b56),window[_0x4396fd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x165b56,0x1d4c0);});}}_0x190161[_0x4396fd([0x6f,0x6e])](_0x4396fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf1f83d,_0x180a93)=>{if(_0x180a93[0x0]!=_0x1ec121)return _0x246997(_0x4396fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x180a93[0x1]={..._0x180a93[0x1],[_0x4396fd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43fa67};},{[_0x4396fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4396fd([0x68,0x69,0x67,0x68])}),_0x190161[_0x4396fd([0x6f,0x6e])](_0x4396fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4cd6b1=>{_0x43e34b(_0x4cd6b1[_0x4396fd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x204224=!0x0,_0x31d524(_0x4cd6b1[_0x4396fd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4396fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4396fd([0x6c,0x6f,0x77])}),_0x15ab34[_0x4396fd([0x74,0x68,0x65,0x6e])](()=>{_0x204224||_0x246997(_0x4396fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x445f42(){return _0x190161[_0x4396fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4396fd([0x76,0x69,0x65,0x77])][_0x4396fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4396fd([0x61,0x75,0x74,0x6f]);}function _0x506484(){_0x190161[_0x4396fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4396fd([0x76,0x69,0x65,0x77])][_0x4396fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4396fd([0x61,0x75,0x74,0x6f]);}}(_0x2b5747[_0x4396fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b5747[_0x4396fd([0x6a,0x74,0x69])]));const _0x597a1b=await(async function(){let _0x598626=!0x0;try{const _0x50369a=_0x5a9eec[_0x4396fd([0x73,0x70,0x6c,0x69,0x74])](_0x4396fd([0x2e])),[_0x227030,_0x5dfd55,_0x311d42]=_0x50369a;return _0xe12e71(_0x227030),await _0x3c73ff(_0x227030,_0x5dfd55,_0x311d42),_0x598626;}catch{return!0x1;}function _0xe12e71(_0xbcb84b){const _0x4e5905=_0x4dd6ac(_0xbcb84b);_0x4e5905&&_0x4e5905[_0x4396fd([0x61,0x6c,0x67])]==_0x4396fd([0x45,0x53,0x32,0x35,0x36])||(_0x598626=!0x1);}async function _0x3c73ff(_0x17f0e5,_0xd6532f,_0x45a1f9){const _0x3a54c3=window[_0x4396fd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4396fd([0x66,0x72,0x6f,0x6d])](_0x53097(_0x45a1f9),_0x1459ed=>_0x1459ed[_0x4396fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ae105=new window[(_0x4396fd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4396fd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17f0e5+_0x4396fd([0x2e])+_0xd6532f),_0x4e3cf6=window[_0x4396fd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4396fd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e3cf6)return;const _0x145fba=await _0x4e3cf6[_0x4396fd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4396fd([0x6a,0x77,0x6b]),_0x1f3916,{[_0x4396fd([0x6e,0x61,0x6d,0x65])]:_0x4396fd([0x45,0x43,0x44,0x53,0x41]),[_0x4396fd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4396fd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4396fd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e3cf6[_0x4396fd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4396fd([0x6e,0x61,0x6d,0x65])]:_0x4396fd([0x45,0x43,0x44,0x53,0x41]),[_0x4396fd([0x68,0x61,0x73,0x68])]:{[_0x4396fd([0x6e,0x61,0x6d,0x65])]:_0x4396fd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x145fba,_0x3a54c3,_0x1ae105)||(_0x598626=!0x1);}}());return _0x597a1b?(function(){const _0x40a8e0=_0x2b5747[_0x4396fd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x40a8e0)return!0x1;if(_0x40a8e0[_0x4396fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4396fd([0x2a])))return!0x0;if(_0x40a8e0[_0x4396fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4396fd([0x4d,0x46])))return!0x0;return!0x1;}())?(function(){const _0x4b0517=[_0x4396fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4396fd([0x74,0x72,0x69,0x61,0x6c])][_0x4396fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5747[_0x4396fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e8652/0x3e8:0x69d59a80;return _0x2b5747[_0x4396fd([0x65,0x78,0x70])]<_0x4b0517;}())?_0x4396fd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x4e9fbb=_0x2b5747[_0x4396fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e9fbb||0x0==_0x4e9fbb[_0x4396fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6c4111}=new URL(window[_0x4396fd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e9fbb[_0x4396fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6c4111))return!0x0;const _0x5c2153=_0x6c4111[_0x4396fd([0x73,0x70,0x6c,0x69,0x74])](_0x4396fd([0x2e]));return _0x4e9fbb[_0x4396fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x630410=>_0x630410[_0x4396fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4396fd([0x2a])))[_0x4396fd([0x6d,0x61,0x70])](_0xcfb4=>_0xcfb4[_0x4396fd([0x73,0x70,0x6c,0x69,0x74])](_0x4396fd([0x2e])))[_0x4396fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5052aa=>_0x5052aa[_0x4396fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5c2153[_0x4396fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4396fd([0x6d,0x61,0x70])](_0x6af4d1=>Array(_0x5c2153[_0x4396fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x6af4d1[_0x4396fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4396fd([0x66,0x69,0x6c,0x6c])](_0x6af4d1[0x0]===_0x4396fd([0x2a])?_0x4396fd([0x2a]):'')[_0x4396fd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x6af4d1))[_0x4396fd([0x73,0x6f,0x6d,0x65])](_0x1778f5=>_0x5c2153[_0x4396fd([0x65,0x76,0x65,0x72,0x79])]((_0x1f21a7,_0x2384b2)=>_0x1778f5[_0x2384b2]===_0x1f21a7||_0x1778f5[_0x2384b2]===_0x4396fd([0x2a])));}())?(_0x2b5747[_0x4396fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4396fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f9d8e=function(_0x34f31a){const _0x4dcfe6=new window[(_0x4396fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x541b29=>setTimeout(_0x541b29,0x93ecc)),_0x1490c1=_0x15ab34[_0x4396fd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4396fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ce613=>{let _0x318675=0x0;_0x190161[_0x4396fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4396fd([0x6f,0x6e])](_0x4396fd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe1e5bf,_0xee635d)=>{_0xee635d[0x0][_0x4396fd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x318675++,0x5e8==_0x318675&&(_0x1ce613(),_0xe1e5bf[_0x4396fd([0x6f,0x66,0x66])]());});})),_0x256738=[_0x4dcfe6,_0x1490c1];return window[_0x4396fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4396fd([0x72,0x61,0x63,0x65])](_0x256738)[_0x4396fd([0x74,0x68,0x65,0x6e])](()=>_0x34f31a);}(_0x4396fd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x1f9d8e&&_0x408b46)return new window[(_0x4396fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x185ea1,_0x592714)=>{_0x1f9d8e[_0x4396fd([0x74,0x68,0x65,0x6e])](_0x185ea1,_0x592714),_0x408b46[_0x4396fd([0x74,0x68,0x65,0x6e])](_0x1b7707=>{_0x1b7707!=_0x4396fd([0x56,0x61,0x6c,0x69,0x64])&&_0x185ea1(_0x1b7707);},_0x592714);});return _0x1f9d8e||_0x408b46||_0x4396fd([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4396fd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4396fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4396fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4396fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x4dd6ac(_0x34fb4c){return _0x34fb4c[_0x4396fd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4396fd([0x65,0x79]))?JSON[_0x4396fd([0x70,0x61,0x72,0x73,0x65])](_0x53097(_0x34fb4c)):null;}function _0x53097(_0x49206b){return window[_0x4396fd([0x61,0x74,0x6f,0x62])](_0x49206b[_0x4396fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4396fd([0x2b]))[_0x4396fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4396fd([0x2f])));}function _0x4eb31e(_0x33eb7c){let _0x1ce94b=0x1505;function _0x1a176c(_0x5dae93){for(let _0x3da19b=0x0;_0x3da19b<_0x5dae93[_0x4396fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3da19b++){const _0x4bfa3d=_0x5dae93[_0x4396fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3da19b);_0x1ce94b=(_0x1ce94b<<0x5)+_0x1ce94b+_0x4bfa3d,_0x1ce94b&=_0x1ce94b;}}return function _0x5e9d8e(_0x2516e3){Array[_0x4396fd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2516e3)?_0x2516e3[_0x4396fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e9d8e):_0x2516e3&&typeof _0x2516e3==_0x4396fd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4396fd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2516e3)[_0x4396fd([0x73,0x6f,0x72,0x74])]()[_0x4396fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b8e80,_0x183c9])=>{_0x1a176c(_0x4b8e80),_0x5e9d8e(_0x183c9);}):_0x1a176c(window[_0x4396fd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2516e3));}(_0x33eb7c),_0x1ce94b>>>0x0;}function _0x1df7d6(_0x16914f){return _0x16914f[_0x4396fd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4396fd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4396fd([0x30]));}function _0x566ab6(_0x1f7487){return _0x1f7487[_0x4396fd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4396fd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4396fd([0x6a,0x6f,0x69,0x6e])]('');}function _0xe524bc(){}function _0x4396fd(_0x1e896e){return _0x1e896e['map'](_0x15d8f4=>String['fromCharCode'](_0x15d8f4))['join']('');}!function(_0x1ac13a){const _0x2acf3d=(function(){const _0x5e9072=window[_0x4396fd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4396fd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4396fd([0x6e,0x6f,0x77])]())[_0x4396fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4396fd([0x2e]),'');let _0x546a52=_0x4396fd([0x63]);for(let _0x40f843=0x0;_0x40f843<_0x5e9072[_0x4396fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40f843+=0x2){let _0x3cd0e0=window[_0x4396fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e9072[_0x4396fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40f843,_0x40f843+0x2));_0x3cd0e0>=_0x32101a[_0x4396fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3cd0e0-=_0x32101a[_0x4396fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x546a52+=_0x32101a[_0x3cd0e0];}return _0x546a52;}());_0x190161[_0x2acf3d]=_0x4396fd([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ac13a,_0x1ac13a!=_0x4396fd([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x15ab34,_0x190161[_0x4396fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4396fd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe524bc,_0x190161[_0x4396fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4396fd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe524bc,_0x190161[_0x4396fd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4396fd([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x164f79);}class MergeFieldsListView extends ListView{['filter'](_0x2889a5){return filterGroupAndItemNames(_0x2889a5,this['items']);}}class MergeFieldsPanelView extends View{constructor(_0x26f13d){super(_0x26f13d),this['set']('text','');const _0x1b4c7d=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':_0x1b4c7d['to']('text')}]}]});}}function getTranslation$8(_0x1ec9af,_0x3559de){const t=_0x1ec9af['t'];switch(_0x3559de){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 _0x3559de;}}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(_0x1b2cad){super(_0x1b2cad),this['_removeDefaultValuesPreviewIfUnnecessary'](),this['_removeMenuBarButtonIfUnnecessary'](),this['_setupMentionConfiguration']();}['init'](){const _0x218469=this['editor'];_0x218469['ui']['componentFactory']['add']('insertMergeField',_0x334633=>{const _0x61ce6b=createInsertMergeFieldDropdown(_0x334633);return _0x61ce6b['bind']('isEnabled')['toMany']([_0x218469['commands']['get']('insertMergeField'),_0x218469['commands']['get']('insertMergeFieldBlock'),_0x218469['commands']['get']('insertMergeFieldImage')],'isEnabled',(..._0x376f82)=>_0x376f82['some'](_0x3643a0=>_0x3643a0)),_0x61ce6b['once']('change:isOpen',()=>{const _0xf70ecd={'insertInline':_0x218469['commands']['get']('insertMergeField'),'insertBlock':_0x218469['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x218469['commands']['get']('insertMergeFieldImage')},_0x578367=createMergeFieldsListView(_0x334633,_0x218469['config']['get']('mergeFields.definitions'),_0xf70ecd);_0x578367['delegate']('execute')['to'](_0x61ce6b),_0x61ce6b['on']('execute',(_0x41f091,_0x32ea6f)=>{const _0x1e9856=_0x218469['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x32ea6f);'image'===_0x1e9856?_0x218469['execute']('insertMergeFieldImage',_0x32ea6f):'block'===_0x1e9856?_0x218469['execute']('insertMergeFieldBlock',_0x32ea6f):_0x218469['execute']('insertMergeField',_0x32ea6f),_0x218469['editing']['view']['focus']();});const _0x24ff12=createMergeFieldsSearchTextView(_0x334633,_0x578367);_0x61ce6b['panelView']['children']['add'](_0x24ff12),_0x61ce6b['on']('change:isOpen',(_0x47cc9c,_0x48635a,_0x2f0af2)=>{_0x2f0af2&&_0x24ff12['reset']();});}),_0x61ce6b;}),_0x218469['ui']['componentFactory']['add']('menuBar:insertMergeField',_0x2f7730=>{const _0x518783=new MenuBarMenuView(_0x2f7730),_0x39d3be={'insertInline':_0x218469['commands']['get']('insertMergeField'),'insertBlock':_0x218469['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x218469['commands']['get']('insertMergeFieldImage')};_0x518783['buttonView']['set']({'label':getTranslation$8(_0x2f7730,'Merge\x20field'),'icon':IconInsertMergeField}),_0x518783['bind']('isEnabled')['toMany']([...Object['values'](_0x39d3be)],'isEnabled',(..._0x3c181e)=>_0x3c181e['some'](_0x58c935=>_0x58c935));const _0x79f7b3=[],_0x3b64ee=new MenuBarMenuListView(_0x2f7730);for(const _0x6b6478 of _0x218469['config']['get']('mergeFields.definitions'))if('groupId'in _0x6b6478){const _0x5b159e=new MenuBarMenuListItemView(_0x2f7730,_0x518783),_0x29e405=createMenuBarSubmenu(_0x2f7730,_0x6b6478,_0x39d3be);_0x5b159e['children']['add'](_0x29e405),_0x29e405['delegate']('execute')['to'](_0x518783),_0x3b64ee['items']['add'](_0x5b159e);}else _0x79f7b3['push'](_0x6b6478);if(_0x79f7b3['length']){if(0x0===_0x3b64ee['items']['length'])for(const _0x431723 of _0x79f7b3){let _0x321b99;_0x321b99='block'===_0x431723['type']?_0x39d3be['insertBlock']:'image'===_0x431723['type']?_0x39d3be['insertImage']:_0x39d3be['insertInline'];const _0x4e6d3a=createMenuBarListItem(_0x2f7730,_0x431723,_0x518783,_0x321b99);_0x3b64ee['items']['add'](_0x4e6d3a);}else{const _0x11c393=new MenuBarMenuListItemView(_0x2f7730,_0x518783),_0x21e9ec=createMenuBarSubmenu(_0x2f7730,{'groupId':'Other','definitions':_0x79f7b3},_0x39d3be);_0x11c393['children']['add'](_0x21e9ec),_0x21e9ec['delegate']('execute')['to'](_0x518783),_0x3b64ee['items']['add'](_0x11c393);}}return _0x518783['panelView']['children']['add'](_0x3b64ee),_0x518783['on']('execute',(_0x2f1970,_0x332ea1)=>{const _0x191f46=_0x218469['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x332ea1);'image'===_0x191f46?_0x218469['execute']('insertMergeFieldImage',_0x332ea1):'block'===_0x191f46?_0x218469['execute']('insertMergeFieldBlock',_0x332ea1):_0x218469['execute']('insertMergeField',_0x332ea1),_0x218469['editing']['view']['focus']();}),_0x518783;});const _0x41d143=_0x218469['config']['get']('mergeFields.previewModes'),_0x2f2dff=[];if(_0x41d143['includes']('$labels')&&_0x2f2dff['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Labels'),'commandValue':'$labels'})}),_0x41d143['includes']('$defaultValues')&&_0x2f2dff['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Default\x20values'),'commandValue':'$defaultValues'})}),_0x41d143['includes']('$dataSets')){const _0x2b8ee5=_0x218469['config']['get']('mergeFields.dataSets');if(_0x2b8ee5['length']){for(const _0x45c807 of _0x2b8ee5)_0x2f2dff['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x45c807['label']||_0x45c807['id'],'commandValue':_0x45c807['id']})});}}_0x218469['ui']['componentFactory']['add']('previewMergeFields',_0x47e584=>{const _0x536364=_0x218469['commands']['get']('previewMergeFields'),_0x33ba09=new Collection();for(const _0x3b2c69 of cloneDeep(_0x2f2dff))_0x3b2c69['model']['bind']('isOn')['to'](_0x536364,'value',_0x1f05ce=>_0x1f05ce===_0x3b2c69['model']['commandValue']),_0x33ba09['add'](_0x3b2c69);const _0x4d0c66=createDropdown(_0x47e584),_0x4addd3=getTranslation$8(_0x47e584,'Merge\x20fields\x20preview');return _0x4d0c66['bind']('isEnabled')['to'](_0x536364),addListToDropdown(_0x4d0c66,_0x33ba09,{'ariaLabel':_0x4addd3,'role':'menu'}),_0x4d0c66['set']({'class':'ck-merge-fields-preview-dropdown'}),_0x4d0c66['buttonView']['set']({'label':_0x4addd3,'ariaLabel':_0x4addd3,'ariaLabelledBy':void 0x0,'isOn':!0x1,'icon':IconPreviewMergeFields,'tooltip':!0x0}),this['listenTo'](_0x4d0c66,'execute',_0x20af57=>{const {commandValue:_0x3b644e}=_0x20af57['source'];_0x218469['execute']('previewMergeFields',_0x3b644e),_0x218469['editing']['view']['focus']();}),_0x4d0c66;}),_0x218469['ui']['componentFactory']['add']('menuBar:previewMergeFields',_0xa6f38=>{const _0x1c8f00=new MenuBarMenuView(_0xa6f38),_0x2da989=_0x218469['commands']['get']('previewMergeFields');_0x1c8f00['buttonView']['set']({'label':getTranslation$8(_0xa6f38,'Merge\x20fields\x20preview'),'icon':IconPreviewMergeFields}),_0x1c8f00['bind']('isEnabled')['to'](_0x2da989);const _0xc5bb55=new MenuBarMenuListView(_0xa6f38);_0xc5bb55['set']({'ariaLabel':getTranslation$8(_0xa6f38,'Merge\x20fields\x20preview')});for(const _0x120f6e of cloneDeep(_0x2f2dff)){const _0x12586b=new MenuBarMenuListItemView(_0xa6f38,_0x1c8f00),_0x28794d=new MenuBarMenuListItemButtonView(_0xa6f38);_0x120f6e['model']['bind']('isOn')['to'](_0x2da989,'value',_0x884346=>_0x884346===_0x120f6e['model']['commandValue']),_0x28794d['isToggleable']=!0x0,_0x28794d['bind'](...Object['keys'](_0x120f6e['model']))['to'](_0x120f6e['model']),_0x28794d['delegate']('execute')['to'](_0x1c8f00),_0x28794d['on']('execute',_0x119c6e=>{const {commandValue:_0x5ad275}=_0x119c6e['source'];_0x218469['execute']('previewMergeFields',_0x5ad275),_0x218469['editing']['view']['focus']();}),_0x12586b['children']['add'](_0x28794d),_0xc5bb55['items']['add'](_0x12586b);}return _0x1c8f00['panelView']['children']['add'](_0xc5bb55),_0x1c8f00;}),this['_balloon']=_0x218469['plugins']['get'](ContextualBalloon),this['listenTo'](_0x218469['ui'],'update',()=>{this['_updateBalloonVisibility']();},{'priority':'low'}),this['listenTo'](_0x218469['ui']['focusTracker'],'change:isFocused',(_0x407e54,_0x52e9fb,_0x362222)=>{this['_balloon']['visibleView']&&this['_balloon']['visibleView']===this['_balloonPanelView']&&(_0x362222?this['_updateBalloonVisibility']():this['_hideBalloon']());},{'priority':'low'}),this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x336aaf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a6417;for(const _0x54c8be in _0x336aaf){const _0x4e90f5=_0x54c8be,_0x2237aa=_0x336aaf[_0x4e90f5];if('mergeFieldsLicenseKeyValid'==_0x2237aa||'mergeFieldsLicenseKeyInvalid'==_0x2237aa||'mergeFieldsLicenseKeyExpired'==_0x2237aa||'mergeFieldsLicenseKeyDomainLimit'==_0x2237aa||'mergeFieldsLicenseKeyNotAllowed'==_0x2237aa||'mergeFieldsLicenseKeyEvaluationLimit'==_0x2237aa||'mergeFieldsLicenseKeyUsageLimit'==_0x2237aa){delete _0x336aaf[_0x4e90f5],_0x2a6417=_0x2237aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'mergeFieldsLicenseKeyInvalid'==_0x2a6417&&_0x336aaf['_showLicenseError']('invalid'),'mergeFieldsLicenseKeyExpired'==_0x2a6417&&_0x336aaf['_showLicenseError']('expired'),'mergeFieldsLicenseKeyDomainLimit'==_0x2a6417&&_0x336aaf['_showLicenseError']('domainLimit'),'mergeFieldsLicenseKeyNotAllowed'==_0x2a6417&&_0x336aaf['_showLicenseError']('featureNotAllowed','MergeFields'),'mergeFieldsLicenseKeyEvaluationLimit'==_0x2a6417&&_0x336aaf['_showLicenseError']('evaluationLimit'),'mergeFieldsLicenseKeyUsageLimit'==_0x2a6417&&_0x336aaf['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_updateBalloonVisibility'](){const _0x177a39=this['editor']['editing']['view']['document']['selection']['getSelectedElement'](),_0xefbcfe=!(!_0x177a39||!_0x177a39['getCustomProperty']('mergeFieldStatus'));if(this['_balloon']['hasView'](this['_balloonPanelView'])&&this['_balloon']['visibleView']===this['_balloonPanelView']){if(_0xefbcfe){const _0x5dec50=_0x177a39['getCustomProperty']('mergeFieldStatus');this['_balloonPanelView']['text']=getTranslation$8(this['editor']['locale'],_0x5dec50),this['_balloon']['updatePosition'](this['_getBalloonPositionData']());}else this['_hideBalloon']();}else{if(_0xefbcfe){const _0x2ebf77=_0x177a39['getCustomProperty']('mergeFieldStatus');this['_showBalloon'](getTranslation$8(this['editor']['locale'],_0x2ebf77));}}}['_showBalloon'](_0x328600){this['_balloonPanelView']||(this['_balloonPanelView']=new MergeFieldsPanelView(this['editor']['locale']),this['_balloonPanelView']['text']=_0x328600),this['_balloon']['hasView'](this['_balloonPanelView'])||(this['_balloon']['add']({'stackId':'mergeFieldsStatus','view':this['_balloonPanelView'],'position':this['_getBalloonPositionData']()}),this['_balloon']['showStack']('mergeFieldsStatus'));}['_getBalloonPositionData'](){const _0x5a9dce=this['editor']['editing']['view'];return{'target':()=>{const _0x3ffa18=_0x5a9dce['document']['selection']['getFirstRange'](),_0x46e2fd=_0x5a9dce['domConverter']['mapViewToDom'](_0x3ffa18['getContainedElement']());return _0x46e2fd?Array['from'](_0x46e2fd['getClientRects']())[0x0]:_0x5a9dce['domConverter']['viewRangeToDom'](_0x3ffa18);}};}['_hideBalloon'](){this['_balloon']['remove'](this['_balloonPanelView']);}['_removeDefaultValuesPreviewIfUnnecessary'](){if(Object['values'](this['editor']['plugins']['get']('MergeFieldsEditing')['getDefaultValues']())['some'](_0x4dc20b=>_0x4dc20b))return;const _0x56aaf4=this['editor']['config']['get']('mergeFields.previewModes');_0x56aaf4['indexOf']('$defaultValues')>-0x1&&_0x56aaf4['length']>0x1&&(_0x56aaf4['splice'](_0x56aaf4['indexOf']('$defaultValues'),0x1),this['editor']['config']['set']('mergeFields.previewModes',_0x56aaf4));}['_removeMenuBarButtonIfUnnecessary'](){const _0x35b871=this['editor']['config'];if(_0x35b871['get']('mergeFields.previewModes')){const _0x323b78=_0x35b871['get']('mergeFields.previewModes');if(0x1===_0x323b78['length']){if(_0x323b78['includes']('$dataSets'))0x1===_0x35b871['get']('mergeFields.dataSets')['length']&&_0x435b1f();else _0x435b1f();}}function _0x435b1f(){const _0xa8bcd9=_0x35b871['get']('menuBar.removeItems');_0xa8bcd9?(_0xa8bcd9['push']('menuBar:previewMergeFields'),_0x35b871['set']('menuBar.removeItems',_0xa8bcd9)):_0x35b871['set']('menuBar.removeItems',['menuBar:previewMergeFields']);}}['_setupMentionConfiguration'](){const _0x5bab69=this['editor'],_0x41cb8e=_0x5bab69['config']['get']('mention.feeds'),_0x5efe1b=_0x5bab69['config']['get']('mergeFields.prefix');_0x41cb8e['push']({'marker':_0x5efe1b,'dropdownLimit':0xa,'feed':_0x32a161=>_0x5bab69['plugins']['get']('MergeFieldsEditing')['flattenedMergeFieldDefinitions']['filter'](_0x4513ac=>{const _0x496bc5=_0x5bab69['commands']['get']('insertMergeField')['isEnabled'],_0x5153a8=_0x5bab69['commands']['get']('insertMergeFieldBlock')['isEnabled'],_0x3f5d92=_0x5bab69['commands']['get']('insertMergeFieldImage')['isEnabled'],_0x1cbaa2=_0x5bab69['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x4513ac['id']);if('text'===_0x1cbaa2&&!_0x496bc5)return!0x1;if('block'===_0x1cbaa2&&!_0x5153a8)return!0x1;if('image'===_0x1cbaa2&&!_0x3f5d92)return!0x1;return(_0x5bab69['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4513ac['id'])||_0x4513ac['id'])['toLowerCase']()['includes'](_0x32a161['toLowerCase']());}),'itemRenderer':_0x4028d4=>{const _0x28de6a=document['createElement']('button');return _0x28de6a['innerHTML']=''+(_0x4028d4['label']||_0x4028d4['id']),_0x28de6a;}}),_0x5bab69['config']['set']('mention.feeds',_0x41cb8e);}['_overrideMentionExecuteListener'](){const _0x518a78=this['editor'];_0x518a78['commands']['get']('mention')['on']('execute',(_0x56d0ca,_0x580f52)=>{const _0x44faf7=_0x580f52[0x0];_0x44faf7['marker']===_0x518a78['config']['get']('mergeFields.prefix')&&_0x518a78['model']['change'](_0xbaa84f=>{_0xbaa84f['remove'](_0x44faf7['range']);const _0x446207=_0x44faf7['mention']['id'],_0x6f0ba5=_0x518a78['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x446207);'text'===_0x6f0ba5?_0x518a78['execute']('insertMergeField',_0x446207):'block'===_0x6f0ba5?_0x518a78['execute']('insertMergeFieldBlock',_0x446207,!0x1):_0x518a78['execute']('insertMergeFieldImage',_0x446207,{'breakBlock':!0x0}),_0x56d0ca['stop']();});},{'priority':'high'});}}function createInsertMergeFieldDropdown(_0x58b244){const _0x12f9ce=createDropdown(_0x58b244);return _0x12f9ce['set']({'class':'ck-insert-merge-field-dropdown','isEnabled':!0x0}),_0x12f9ce['buttonView']['set']({'label':getTranslation$8(_0x58b244,'Insert\x20merge\x20field'),'icon':IconInsertMergeField,'tooltip':!0x0}),_0x12f9ce;}function createMergeFieldsListView(_0x497a49,_0x11f9d2,_0x1d0550){const _0x2030eb=new MergeFieldsListView(_0x497a49),_0x6b9bdb=[],_0x3325ed=[];for(const _0x51d19d of _0x11f9d2)if('groupId'in _0x51d19d){const _0x76ffc8=createMergeFieldsGroupView(_0x497a49,_0x51d19d['groupLabel']||_0x51d19d['groupId'],_0x51d19d['definitions'],_0x1d0550);_0x76ffc8['delegate']('execute')['to'](_0x2030eb),_0x3325ed['push'](_0x76ffc8);}else _0x6b9bdb['push'](_0x51d19d);if(_0x6b9bdb['length']){const _0x11be8a=createMergeFieldsGroupView(_0x497a49,'Other',_0x6b9bdb,_0x1d0550);_0x11be8a['delegate']('execute')['to'](_0x2030eb),_0x3325ed['push'](_0x11be8a);}return _0x2030eb['items']['addMany'](_0x3325ed),_0x2030eb;}function createMergeFieldsGroupView(_0x49fba7,_0x1fb8ef,_0x171fe7,_0x58dcfc){const _0x15f2f1=new ListItemGroupView(_0x49fba7,new LabelWithHighlightView());_0x15f2f1['label']=_0x1fb8ef;for(const _0x2d39e9 of _0x171fe7){let _0x372bef;_0x372bef='block'===_0x2d39e9['type']?_0x58dcfc['insertBlock']:'image'===_0x2d39e9['type']?_0x58dcfc['insertImage']:_0x58dcfc['insertInline'];const _0x53d770=createMergeFieldListItemView(_0x49fba7,_0x2d39e9,_0x372bef);_0x53d770['delegate']('execute')['to'](_0x15f2f1),_0x15f2f1['items']['add'](_0x53d770);}return _0x15f2f1;}function createMergeFieldListItemView(_0x2c8e49,_0x5d2961,_0x4813e1){const _0x4f9c82=new ListItemView(_0x2c8e49),_0x4bfde9=new ButtonLabelWithHighlightView(),_0x340076=new ButtonView(_0x2c8e49,_0x4bfde9);return _0x4f9c82['children']['add'](_0x340076),_0x340076['set']({'label':_0x5d2961['label']||_0x5d2961['id'],'withText':!0x0}),_0x340076['bind']('isEnabled')['to'](_0x4813e1),_0x340076['on']('execute',()=>{_0x4f9c82['fire']('execute',_0x5d2961['id']);}),_0x4f9c82;}function createMergeFieldsSearchTextView(_0x17dcbe,_0xa2e334){return new SearchTextView(_0x17dcbe,{'filteredView':_0xa2e334,'queryView':{'label':getTranslation$8(_0x17dcbe,'Search\x20merge\x20field')},'class':'ck-merge-fields-search','infoView':{'text':{'notFound':{'primary':getTranslation$8(_0x17dcbe,'No\x20merge\x20fields\x20found')},'noSearchableItems':{'primary':getTranslation$8(_0x17dcbe,'No\x20merge\x20fields\x20available')}}}});}function createMenuBarSubmenu(_0x2eed3f,_0x196df6,_0x397512){const _0x2e17fe=new MenuBarMenuView(_0x2eed3f),_0x8c37ee=new MenuBarMenuListView(_0x2eed3f);for(const _0x504d05 of _0x196df6['definitions']){let _0x4d0f3e;_0x4d0f3e='block'===_0x504d05['type']?_0x397512['insertBlock']:'image'===_0x504d05['type']?_0x397512['insertImage']:_0x397512['insertInline'];const _0xb80377=createMenuBarListItem(_0x2eed3f,_0x504d05,_0x2e17fe,_0x4d0f3e);_0x8c37ee['items']['add'](_0xb80377);}return _0x2e17fe['set']({'class':'ck-menu-bar__merge-fields-submenu'}),_0x2e17fe['buttonView']['set']({'label':_0x196df6['groupLabel']||_0x196df6['groupId']}),_0x2e17fe['panelView']['children']['add'](_0x8c37ee),_0x2e17fe;}function createMenuBarListItem(_0x394d9d,_0x281294,_0x328f4e,_0x2a7730){const _0x56c855=new MenuBarMenuListItemView(_0x394d9d,_0x328f4e),_0x2409ff=new MenuBarMenuListItemButtonView(_0x394d9d);return _0x2409ff['set']({'label':_0x281294['label']||_0x281294['id']}),_0x56c855['delegate']('execute')['to'](_0x328f4e),_0x56c855['children']['add'](_0x2409ff),_0x2409ff['bind']('isEnabled')['to'](_0x2a7730),_0x2409ff['on']('execute',()=>{_0x56c855['fire']('execute',_0x281294['id']);}),_0x56c855;}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$1(()=>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 _0x19a323=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x19a323),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x5725ce,_0x5602af,_0x3f8694)=>{_0x3f8694&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){checkLicense$7(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x3937a1=this['editor'],_0x335ff5=_0x3937a1['editing']['view'],_0x2898a2=this['_getAttachedDomRoot']();if(!_0x2898a2||0x0===_0x2898a2['childElementCount'])return void _0x3937a1['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x24e729,pageHeight:_0x3e9282}=_0x3937a1['config']['get']('pagination'),{top:_0x51f90f,left:_0x112d67,bottom:_0x2abc0d,right:_0x3bd84d}=this['_configuredPaddings'];this['_pagesContainer']=new View(_0x3937a1['locale']);const _0x528b39=this['_pagesContainer'];_0x528b39['set']('class',''),_0x528b39['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x24e729,'width':_0x24e729,'height':'calc(\x20'+_0x3e9282+'\x20-\x20'+_0x51f90f+'\x20-\x20'+_0x2abc0d+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x3bd84d+'\x200\x20'+_0x112d67,'columnGap':'calc('+_0x112d67+'\x20+\x20'+_0x3bd84d+'\x20+\x20'+COLUMN_GAP+'px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x528b39['bindTemplate']['to']('class')}}),_0x528b39['render'](),_0x2898a2['parentNode']['insertBefore'](_0x528b39['element'],_0x2898a2['nextSibling']),this['listenTo'](_0x335ff5,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x465d60 of this['editor']['editing']['view']['domRoots']['values']())if(_0x465d60['ownerDocument']['body']['contains'](_0x465d60))return _0x465d60;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x24c767=this['editor']['editing']['view'],_0x405bfe=this['_pagesContainer'],_0x4c9b7c=this['_getAttachedDomRoot']();if(!_0x4c9b7c)return Promise['resolve']();for(_0x405bfe['class']=['ck-reset','ck-pagination-view',..._0x4c9b7c['classList']]['join']('\x20');_0x405bfe['element']['firstChild'];)_0x405bfe['element']['firstChild']['remove']();const _0x11daac=Array['from'](_0x24c767['domRoots']);_0x11daac['sort'](([,_0x3dac61],[,_0xbc41b9])=>_0x3dac61['compareDocumentPosition'](_0xbc41b9)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x33a33b,_0x461527]of _0x11daac){const _0x5224ea=_0x461527['cloneNode'](!0x0);'attributeStyleMap'in _0x5224ea&&_0x5224ea['attributeStyleMap']['clear'](),_0x5224ea['dataset']['rootName']=_0x33a33b,_0x5224ea['className']='ck-content\x20ck-pagination_enabled',_0x5224ea['removeAttribute']('id'),_0x5224ea['tabIndex']=-0x1,_0x405bfe['element']['append'](_0x5224ea);}const _0xed4d5d=Array['from'](_0x405bfe['element']['querySelectorAll']('img'));return allImagesAreReady(_0xed4d5d)['then'](()=>{for(const _0x4b7412 of _0xed4d5d['filter'](_0x5ddcb7=>!_0x5ddcb7['closest']('table')))if(_0x4b7412['offsetParent']){const _0x3cb474=_0x19b45e['window']['getComputedStyle'](_0x4b7412),_0x2e571a=_0x19b45e['document']['createElement']('span');for(const _0x54e84c of _0x3cb474)_0x2e571a['style']['setProperty'](_0x54e84c,_0x3cb474[_0x54e84c]);_0x2e571a['style']['backgroundImage']='url(\x20'+_0x4b7412['src']+'\x20)',_0x2e571a['style']['breakInside']='avoid','PICTURE'==_0x4b7412['parentElement']?.['tagName']?_0x4b7412['parentElement']['replaceWith'](_0x2e571a):_0x4b7412['replaceWith'](_0x2e571a);}return nextAnimationFrame();})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x1f835b=this['_pagesContainer']['element'];if(!_0x1f835b['ownerDocument']['body']['contains'](_0x1f835b))return;const _0x205dc1=new Rect(_0x1f835b)['excludeScrollbarsAndBorders'](),_0x263c3d=Math['floor'](_0x205dc1['width']+COLUMN_GAP),_0x30eed6=findPageStarterInfos(_0x1f835b,Math['floor'](_0x205dc1['left']-_0x1f835b['scrollLeft']),_0x263c3d,_0x205dc1['height'])['map'](_0x28a0bd=>this['_mapPageStarterInfoToPageBreakInfo'](_0x28a0bd))['filter'](_0x6140ad=>!0x1!==_0x6140ad);_0x30eed6['every'](_0x15e908=>!!_0x15e908)&&(this['pageBreaks']=_0x30eed6);}['_mapPageStarterInfoToPageBreakInfo'](_0x3082cd){const _0x392dbd=this['editor']['editing']['view'],_0x577361=this['editor']['editing']['mapper'],_0x57ac81=_0x392dbd['domConverter'],_0x1b0ab8=_0x3082cd['path']['shift'](),_0x389fae=this['_pagesContainer']['element']['childNodes'][_0x1b0ab8]['dataset']['rootName'],_0xa7cf11=_0x392dbd['getDomRoot'](_0x389fae);if(!_0xa7cf11)return null;const _0xf8cda6=pageElementToViewElement(_0xa7cf11,_0x3082cd);if(!_0xf8cda6)return null;const _0x512ab9=_0x57ac81['domPositionToView'](_0xf8cda6,_0x3082cd['textOffset']||0x0);return _0x512ab9?'manual'==_0x3082cd['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x512ab9,_0xf8cda6):'text'==_0x3082cd['type']&&_0x577361['toModelPosition'](_0x512ab9)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x512ab9,_0xf8cda6,_0x3082cd['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x512ab9,_0xf8cda6,_0x3082cd['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x31ffc4,_0x31608d){const _0x5b8517=this['editor']['model'],_0x2edffe=this['editor']['editing']['mapper']['toModelElement'](_0x31ffc4['parent']),_0x197e18=_0x5b8517['createRangeOn'](_0x2edffe);return new PageBreakInfo({'type':'manual','modelRange':_0x197e18,'domNode':_0x31608d,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x325994,_0x14146f,_0x1323e8){const _0x38434e=this['editor']['model'],_0x1019ff=this['editor']['editing']['mapper'],_0x4dea23=this['editor']['editing']['view']['domConverter'];if(_0x1323e8>=_0x14146f['length'])return null;const _0x2b8621=_0x1019ff['toModelPosition'](_0x325994),_0x3bbe7a=_0x38434e['createRange'](_0x2b8621),_0x1ddb25=_0x1019ff['findMappedViewAncestor'](_0x325994),_0x15c6a4=_0x4dea23['mapViewToDom'](_0x1ddb25);return new PageBreakInfo({'type':'text','modelRange':_0x3bbe7a,'domNode':_0x14146f,'offset':findOffsetTopForTextOffset(_0x14146f,_0x1323e8,_0x15c6a4)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x55ea0f,_0x46db8c,_0x22fb6e){const _0x25167e=this['editor']['model'],_0x26ddc1=this['editor']['editing'],_0x2447e3=_0x26ddc1['mapper'],_0x240f12=_0x26ddc1['view']['domConverter'],_0x532e05=_0x2447e3['findMappedViewAncestor'](_0x55ea0f),_0x1efddb=_0x2447e3['toModelElement'](_0x532e05);if(!_0x1efddb||_0x1efddb['is']('element','$root'))return!0x1;const _0x3ca808=getTopMostParentBlockTouchingPosition(_0x25167e['createPositionBefore'](_0x1efddb))||_0x1efddb;let _0x353c8c=_0x2447e3['toViewElement'](_0x3ca808),_0x3f8de7=_0x25167e['createRangeOn'](_0x3ca808);const _0x10eeac=_0x25167e['createPositionBefore'](_0x3ca808)['nodeBefore'];if(_0x10eeac&&_0x10eeac['is']('element','imageBlock')){const _0x2c94ef=_0x2447e3['toViewElement'](_0x10eeac),_0x5605f9=_0x240f12['mapViewToDom'](_0x2c94ef),_0x4b604c=_0x19b45e['window']['getComputedStyle'](_0x5605f9)['float'];'left'!=_0x4b604c&&'right'!=_0x4b604c||(_0x3f8de7=_0x25167e['createRangeOn'](_0x10eeac));}for(;_0x353c8c['parent']!==_0x353c8c['root']&&0x0===_0x353c8c['index'];)_0x353c8c=_0x353c8c['parent'];const _0xab57f4=new Rect(isHTMLElement(_0x46db8c)?_0x46db8c:createDomRangeOn(_0x46db8c)),_0x9d47ae=_0x22fb6e?_0xab57f4['height']-_0x22fb6e:0x0,_0x1ede57=_0x240f12['mapViewToDom'](_0x353c8c),_0x6d1fbf=new Rect(_0x1ede57);return new PageBreakInfo({'type':'element','modelRange':_0x3f8de7,'domNode':_0x1ede57,'offset':Math['round'](_0x9d47ae)||_0x532e05!=findBlockAncestor(_0x55ea0f)?_0x9d47ae+_0xab57f4['top']-_0x6d1fbf['top']:0x0});}get['_configuredPaddings'](){const _0x558bb9=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x558bb9);}static['_findPageStarterInfos'](_0x2258c8,_0x204606,_0x41f7f3,_0x285f0c,_0x340473){return findPageStarterInfos(_0x2258c8,_0x204606,_0x41f7f3,_0x285f0c,_0x340473);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x3325e8,modelRange:_0x2df26d,domNode:_0x5e77dc,offset:_0x2e51c5}){this['type']=_0x3325e8,this['modelRange']=_0x2df26d,this['_domNode']=_0x5e77dc,this['_offset']=_0x2e51c5;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x1dd9c6=new Rect(isHTMLElement(this['_domNode'])?this['_domNode']:createDomRangeOn(this['_domNode']));return'manual'==this['type']?_0x1dd9c6['top']+_0x1dd9c6['height']/0x2:_0x1dd9c6['top']+this['_offset'];}}function isPageBreak(_0x211af6){return!(!_0x211af6||!isHTMLElement(_0x211af6))&&Boolean(_0x211af6['classList']['contains']('page-break')||_0x211af6['closest']('.page-break'));}function pageElementToViewElement(_0x19c377,_0x327413){let _0x234046=_0x19c377;for(const _0x174b13 of _0x327413['path']){if(!_0x234046)return null;_0x234046=_0x234046['childNodes'][_0x174b13];}return _0x234046;}function findOffsetTopForTextOffset(_0x296f03,_0x5494d6,_0x4f0280){const _0x6f4f5e=createDomRangeOn(_0x296f03),_0x456add=createDomRangeIn(_0x4f0280);let _0x38e0f6;_0x38e0f6=0x0==_0x5494d6?createDomRangeMultiNode(_0x456add['startContainer'],_0x456add['startOffset'],_0x296f03['parentNode'],Array['from'](_0x296f03['parentNode']['childNodes'])['indexOf'](_0x296f03)):createDomRangeMultiNode(_0x456add['startContainer'],_0x456add['startOffset'],_0x296f03,_0x5494d6);const _0x5952f3=createDomRangeMultiNode(_0x296f03,_0x5494d6,_0x456add['endContainer'],_0x456add['endOffset']),_0xf24cb0=new Rect(_0x38e0f6)['bottom'];return(new Rect(_0x5952f3)['top']+_0xf24cb0)/0x2-new Rect(_0x6f4f5e)['top'];}function getTopMostParentBlockTouchingPosition(_0x5af1e1){const _0x592d10=_0x5af1e1['parent'],_0x4bfd3b=_0x592d10['root']['document']['model'],_0x2c3b30=_0x592d10['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x541e9c=null;for(const _0x298e13 of _0x2c3b30){if(_0x298e13['is']('rootElement'))return _0x541e9c;if(!_0x4bfd3b['createPositionBefore'](_0x298e13)['isTouching'](_0x5af1e1))return _0x541e9c;_0x541e9c=_0x298e13;}}function findBlockAncestor(_0x6da4d9){let _0x102429=_0x6da4d9['parent'];for(;_0x102429['is']('$text')||_0x102429['is']('attributeElement');)_0x102429=_0x102429['parent'];return _0x102429;}function allImagesAreReady(_0x34b9e1){return Promise['all'](_0x34b9e1['map'](_0x10fd00=>Promise['race']([imageReady(_0x10fd00),timeout(0x3e8)])));}function imageReady(_0x434df8){return _0x434df8['hasAttribute']('width')&&_0x434df8['hasAttribute']('height')?Promise['resolve']():new Promise(_0x250d34=>{function _0x3591f5(){_0x434df8['removeEventListener']('load',_0x3591f5),_0x434df8['removeEventListener']('error',_0x3591f5),_0x250d34();}_0x434df8['complete']?_0x250d34():(_0x434df8['addEventListener']('load',_0x3591f5),_0x434df8['addEventListener']('error',_0x3591f5));});}function timeout(_0x2f3e32){return new Promise(_0x372e9f=>setTimeout(_0x372e9f,_0x2f3e32));}function nextAnimationFrame(){return new Promise(_0x1a4b4a=>_0x19b45e['window']['requestAnimationFrame'](()=>_0x1a4b4a()));}function createDomRangeOn(_0xb15324){const _0x1d2bce=_0x19b45e['document']['createRange']();return _0x1d2bce['selectNode'](_0xb15324),_0x1d2bce;}function createDomRangeIn(_0x2a929c){const _0x285346=_0x19b45e['document']['createRange']();return _0x285346['selectNodeContents'](_0x2a929c),_0x285346;}function createDomRange(_0x43e2e9,_0x2ad852,_0x219e1c){const _0x257d0c=_0x19b45e['document']['createRange']();return _0x257d0c['setStart'](_0x43e2e9,_0x2ad852),_0x257d0c['setEnd'](_0x43e2e9,_0x219e1c),_0x257d0c;}function createDomRangeMultiNode(_0x11eb12,_0x3b8303,_0x220e25,_0x2f2b31){const _0x4c6532=_0x19b45e['document']['createRange']();return _0x4c6532['setStart'](_0x11eb12,_0x3b8303),_0x4c6532['setEnd'](_0x220e25,_0x2f2b31),_0x4c6532;}function findPageStarterInfos(_0x4541a1,_0x32fa2e,_0x717ddb,_0x32aecd,_0x1d79ad){const _0x2a4027=[];for(const [_0x4d0a7d,_0x1b3f33]of _0x4541a1['childNodes']['entries']()){let _0xb53877=[];isHTMLElement(_0x1b3f33)&&_0x1b3f33['offsetParent']&&['static','relative']['includes'](_0x19b45e['window']['getComputedStyle'](_0x1b3f33)['position'])?_0xb53877=findPageStartersInElementNode(_0x1b3f33,_0x4d0a7d,_0x32fa2e,_0x717ddb,_0x32aecd,_0x1d79ad):isText(_0x1b3f33)&&(_0xb53877=findPageStartersInTextNode(_0x1b3f33,_0x4d0a7d,_0x32fa2e,_0x717ddb,_0x1d79ad)),_0xb53877['length']&&(_0x2a4027['push'](..._0xb53877),_0x32fa2e+=_0xb53877['length']*_0x717ddb,_0x1d79ad=!0x1);}return _0x2a4027;}function findPageStartersInElementNode(_0x2538b1,_0x419110,_0x3f0da0,_0x33c725,_0x5b752a,_0x224526){const _0x7e509f=[];if(isPageBreak(_0x2538b1['previousSibling'])&&(_0x7e509f['push']({'type':'manual','offset':0x0,'path':[_0x419110-0x1]}),_0x224526=!0x0),'table-row'==_0x19b45e['window']['getComputedStyle'](_0x2538b1)['display']){let _0x3caf8c=0x0,_0x2863bf=!0x1;for(const _0x2bc9f4 of _0x2538b1['getClientRects']())_0x3caf8c+=_0x2bc9f4['height'],_0x2bc9f4['left']>=_0x3f0da0&&(_0x2863bf=!0x0);if(_0x3caf8c<_0x5b752a&&_0x2863bf)return _0x224526||_0x7e509f['push']({'type':'element','offset':0x0,'path':[_0x419110]}),_0x7e509f;}const _0x39bcd7=_0x2538b1['closest']('figure.image');if(_0x39bcd7&&shouldIgnoreFigure(_0x39bcd7)){const _0x48b63f=_0x19b45e['window']['getComputedStyle'](_0x39bcd7)['float'];if('left'==_0x48b63f||'right'==_0x48b63f)return _0x7e509f;}const _0x3de863=findPageStarterInfos(_0x2538b1,_0x3f0da0,_0x33c725,_0x5b752a,_0x224526);if(_0x3de863['length']){for(const _0x83f1f3 of _0x3de863)_0x7e509f['push']({'type':_0x83f1f3['type'],'offset':_0x83f1f3['offset'],'textOffset':_0x83f1f3['textOffset'],'path':[_0x419110,..._0x83f1f3['path']]}),_0x3f0da0+=_0x33c725,_0x224526=!0x1;return _0x7e509f;}return _0x7e509f['push'](...findPageStartersInLeafElementNode(_0x2538b1,_0x419110,_0x3f0da0,_0x33c725,_0x224526)),_0x7e509f;}function findPageStartersInLeafElementNode(_0x154c35,_0x2acb5b,_0x5257a5,_0x463060,_0x384b53){const _0x35d0e8=[];if('table-cell'==_0x19b45e['window']['getComputedStyle'](_0x154c35)['display'])return[];const _0x5cbd73=[];for(const _0x2fd905 of _0x154c35['getClientRects']())if(_0x2fd905['left']>=_0x5257a5){for(const _0x274ddf of _0x5cbd73)_0x274ddf['height']+=_0x2fd905['height'];_0x5cbd73['push']({'height':_0x2fd905['height']}),_0x5257a5+=_0x463060;}for(const _0x12c547 of _0x5cbd73)_0x384b53||_0x35d0e8['push']({'type':'element','offset':_0x12c547['height'],'textOffset':0x0,'path':[_0x2acb5b]}),_0x384b53=!0x1;return _0x35d0e8;}function findPageStartersInTextNode(_0x5566ea,_0x5002f8,_0x1288e5,_0x51b4e6,_0x47605d){const _0x29e36b=createDomRangeOn(_0x5566ea),_0x3aa0db=[];let _0x1becf9=0x0;for(const _0x516682 of _0x29e36b['getClientRects']())if(_0x516682['left']>=_0x1288e5){const _0x74fb2c=findLastTextOffsetOnPage(_0x5566ea,_0x1becf9,_0x1288e5,_0x51b4e6);_0x47605d||_0x3aa0db['push']({'type':'text','path':[_0x5002f8],'textOffset':_0x74fb2c}),_0x1becf9=_0x74fb2c,_0x1288e5+=_0x51b4e6,_0x47605d=!0x1;}return _0x3aa0db;}function findLastTextOffsetOnPage(_0x32bd3b,_0x2b0e3a,_0x14b9b2,_0x2011f2){let _0x4b9cd3=_0x2b0e3a,_0x1ae6b6=_0x32bd3b['length'];for(;_0x1ae6b6-_0x4b9cd3>0x1;){const _0x4c7f48=Math['ceil']((_0x4b9cd3+_0x1ae6b6)/0x2);domRangeContainsPageBreak(createDomRange(_0x32bd3b,_0x4b9cd3,_0x4c7f48),_0x14b9b2,_0x2011f2)?_0x1ae6b6=_0x4c7f48:_0x4b9cd3=_0x4c7f48;}return _0x4b9cd3;}function domRangeContainsPageBreak(_0x5d2509,_0xf18da5,_0x379b6f){for(const _0x5b857c of _0x5d2509['getClientRects']())if(_0x5b857c['left']>=_0xf18da5&&_0x5b857c['left']<_0xf18da5+_0x379b6f)return!0x0;return!0x1;}function shouldIgnoreFigure(_0x42d66d){let _0x5473b7=!0x1;const _0x4b370b=_0x42d66d['parentElement']['dataset']['rootName'],_0x2ab2c2=_0x42d66d['nextElementSibling'],_0xa16815=_0x42d66d['previousElementSibling'],_0x5ec192=_0x2ab2c2&&_0x19b45e['window']['getComputedStyle'](_0x2ab2c2)['float'],_0x1e43ed=_0x2ab2c2&&'ck-fake-selection-container'===_0x2ab2c2['className'];return!_0x4b370b||_0x2ab2c2||_0xa16815||(_0x5473b7=!0x0),_0x4b370b&&!_0xa16815&&_0x1e43ed&&(_0x5473b7=!0x0),_0x4b370b&&!_0xa16815&&'none'!==_0x5ec192&&(_0x5473b7=!0x0),!_0x5473b7;}function isHTMLElement(_0x169cfe){return _0x169cfe['nodeType']==Node['ELEMENT_NODE'];}function isText(_0x293024){return _0x293024['nodeType']==Node['TEXT_NODE'];}async function checkLicense$7(_0x549ea1){const _0x514e44=_0x46bd47([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]),_0x2e1241=window[_0x46bd47([0x44,0x61,0x74,0x65])][_0x46bd47([0x6e,0x6f,0x77])](),_0x2f722c=_0x549ea1[_0x46bd47([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6156dd=new window[(_0x46bd47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c2df8=>{_0x2f722c[_0x46bd47([0x6f,0x6e,0x63,0x65])](_0x46bd47([0x72,0x65,0x61,0x64,0x79]),_0x4c2df8);}),_0x8648ec={[_0x46bd47([0x6b,0x74,0x79])]:_0x46bd47([0x45,0x43]),[_0x46bd47([0x75,0x73,0x65])]:_0x46bd47([0x73,0x69,0x67]),[_0x46bd47([0x63,0x72,0x76])]:_0x46bd47([0x50,0x2d,0x32,0x35,0x36]),[_0x46bd47([0x78])]:_0x46bd47([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]),[_0x46bd47([0x79])]:_0x46bd47([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]),[_0x46bd47([0x61,0x6c,0x67])]:_0x46bd47([0x45,0x53,0x32,0x35,0x36])},_0x38e5e1=_0x2f722c[_0x46bd47([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46bd47([0x67,0x65,0x74])](_0x46bd47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x48f380=await(async function(){let _0x5a7424,_0x3c363c=null,_0x24e5cc=null;try{if(_0x38e5e1==_0x46bd47([0x47,0x50,0x4c]))return _0x46bd47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a7424=(function(){const _0x443415=_0x38e5e1[_0x46bd47([0x73,0x70,0x6c,0x69,0x74])](_0x46bd47([0x2e]));if(0x3!=_0x443415[_0x46bd47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3b9b12=_0x443415[0x1];return _0x40e1d(_0x3b9b12);function _0x40e1d(_0x27a9ee){const _0x3557f7=_0x3903d0(_0x27a9ee);return _0x3557f7&&_0x45ed33()?_0x3557f7:null;function _0x45ed33(){const _0x4cdbb3=_0x3557f7[_0x46bd47([0x6a,0x74,0x69])],_0x3babff=window[_0x46bd47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cdbb3[_0x46bd47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cdbb3[_0x46bd47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29cc9c={..._0x3557f7,[_0x46bd47([0x6a,0x74,0x69])]:_0x4cdbb3[_0x46bd47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4cdbb3[_0x46bd47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29cc9c[_0x46bd47([0x76,0x63])],_0x98b8e6(_0x29cc9c)==_0x3babff;}}}()),!_0x5a7424)return _0x46bd47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x5a7424[_0x46bd47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24e5cc=function(_0x15c726,_0x59667a){return new window[(_0x46bd47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa09ed4=>{if(_0x24205e())return _0xa09ed4(_0x46bd47([0x56,0x61,0x6c,0x69,0x64]));_0x29d580(),_0x2f722c[_0x46bd47([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46bd47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35e3e3=!0x1;const _0x29ca6e=uid();function _0x3b7236(_0x2cd5ed){return!!_0x2cd5ed&&(typeof _0x2cd5ed===_0x46bd47([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2cd5ed===_0x46bd47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2cd5ed[_0x46bd47([0x74,0x68,0x65,0x6e])]===_0x46bd47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2cd5ed[_0x46bd47([0x63,0x61,0x74,0x63,0x68])]===_0x46bd47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45ad95(_0x46711d){_0x4d681b(_0x46711d)[_0x46bd47([0x74,0x68,0x65,0x6e])](_0xc9adce=>{if(!_0xc9adce||_0xc9adce[_0x46bd47([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46bd47([0x6f,0x6b]))return _0x46bd47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b7987(_0x98b8e6(_0x29ca6e+_0x59667a))!=_0xc9adce[_0x46bd47([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46bd47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46bd47([0x56,0x61,0x6c,0x69,0x64]);})[_0x46bd47([0x74,0x68,0x65,0x6e])](_0x2ad3ae=>(_0xf876bf(),_0x2ad3ae),()=>{const _0x42aff3=_0x5d3e2a();return null==_0x42aff3?(_0xf876bf(),_0x46bd47([0x56,0x61,0x6c,0x69,0x64])):_0x46bd47(_0x2e1241-_0x42aff3>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46bd47([0x74,0x68,0x65,0x6e])](_0xa09ed4)[_0x46bd47([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa09ed4(_0x46bd47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x231669=0x36ee80;function _0xf876bf(){const _0x124b99=_0x46bd47([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b7987(_0x98b8e6(_0x15c726)),_0x109876=_0x183566(_0x1b7987(window[_0x46bd47([0x4d,0x61,0x74,0x68])][_0x46bd47([0x63,0x65,0x69,0x6c])](_0x2e1241/_0x231669)));window[_0x46bd47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46bd47([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x124b99,_0x109876);}function _0x5d3e2a(){const _0x2d7ff2=_0x46bd47([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b7987(_0x98b8e6(_0x15c726)),_0x46a650=window[_0x46bd47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46bd47([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d7ff2);return _0x46a650?window[_0x46bd47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x183566(_0x46a650),0x10)*_0x231669:null;}function _0x4d681b(_0x5a3674){return new window[(_0x46bd47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x146959,_0x4eef4f)=>{_0x5a3674[_0x46bd47([0x74,0x68,0x65,0x6e])](_0x146959,_0x4eef4f),window[_0x46bd47([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4eef4f,0x1d4c0);});}}_0x2f722c[_0x46bd47([0x6f,0x6e])](_0x46bd47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x230e05,_0x26586e)=>{if(_0x26586e[0x0]!=_0x15c726)return _0xa09ed4(_0x46bd47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26586e[0x1]={..._0x26586e[0x1],[_0x46bd47([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29ca6e};},{[_0x46bd47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46bd47([0x68,0x69,0x67,0x68])}),_0x2f722c[_0x46bd47([0x6f,0x6e])](_0x46bd47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x409588=>{_0x3b7236(_0x409588[_0x46bd47([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35e3e3=!0x0,_0x45ad95(_0x409588[_0x46bd47([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46bd47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46bd47([0x6c,0x6f,0x77])}),_0x6156dd[_0x46bd47([0x74,0x68,0x65,0x6e])](()=>{_0x35e3e3||_0xa09ed4(_0x46bd47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24205e(){return _0x2f722c[_0x46bd47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46bd47([0x76,0x69,0x65,0x77])][_0x46bd47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46bd47([0x61,0x75,0x74,0x6f]);}function _0x29d580(){_0x2f722c[_0x46bd47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46bd47([0x76,0x69,0x65,0x77])][_0x46bd47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46bd47([0x61,0x75,0x74,0x6f]);}}(_0x5a7424[_0x46bd47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a7424[_0x46bd47([0x6a,0x74,0x69])]));const _0x23ed99=await(async function(){let _0x2b65ca=!0x0;try{const _0x3709a4=_0x38e5e1[_0x46bd47([0x73,0x70,0x6c,0x69,0x74])](_0x46bd47([0x2e])),[_0x234dd4,_0x624cec,_0x1113d7]=_0x3709a4;return _0xe15f59(_0x234dd4),await _0x97df70(_0x234dd4,_0x624cec,_0x1113d7),_0x2b65ca;}catch{return!0x1;}function _0xe15f59(_0x1adc61){const _0x3b6fee=_0x3903d0(_0x1adc61);_0x3b6fee&&_0x3b6fee[_0x46bd47([0x61,0x6c,0x67])]==_0x46bd47([0x45,0x53,0x32,0x35,0x36])||(_0x2b65ca=!0x1);}async function _0x97df70(_0x5b9e33,_0x3d60df,_0x46cd41){const _0x19fccb=window[_0x46bd47([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46bd47([0x66,0x72,0x6f,0x6d])](_0x511886(_0x46cd41),_0x19b6e6=>_0x19b6e6[_0x46bd47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c7f2d=new window[(_0x46bd47([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46bd47([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b9e33+_0x46bd47([0x2e])+_0x3d60df),_0x32af67=window[_0x46bd47([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46bd47([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x32af67)return;const _0x4dbf28=await _0x32af67[_0x46bd47([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46bd47([0x6a,0x77,0x6b]),_0x8648ec,{[_0x46bd47([0x6e,0x61,0x6d,0x65])]:_0x46bd47([0x45,0x43,0x44,0x53,0x41]),[_0x46bd47([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46bd47([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46bd47([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x32af67[_0x46bd47([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46bd47([0x6e,0x61,0x6d,0x65])]:_0x46bd47([0x45,0x43,0x44,0x53,0x41]),[_0x46bd47([0x68,0x61,0x73,0x68])]:{[_0x46bd47([0x6e,0x61,0x6d,0x65])]:_0x46bd47([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4dbf28,_0x19fccb,_0x1c7f2d)||(_0x2b65ca=!0x1);}}());return _0x23ed99?(function(){const _0x3f15c6=_0x5a7424[_0x46bd47([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3f15c6)return!0x1;if(_0x3f15c6[_0x46bd47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46bd47([0x2a])))return!0x0;if(_0x3f15c6[_0x46bd47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46bd47([0x50,0x41,0x47])))return!0x0;return!0x1;}())?(function(){const _0x2ed366=[_0x46bd47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46bd47([0x74,0x72,0x69,0x61,0x6c])][_0x46bd47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a7424[_0x46bd47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e1241/0x3e8:0x69d59a80;return _0x5a7424[_0x46bd47([0x65,0x78,0x70])]<_0x2ed366;}())?_0x46bd47([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3583b1=_0x5a7424[_0x46bd47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3583b1||0x0==_0x3583b1[_0x46bd47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x66c1ca}=new URL(window[_0x46bd47([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3583b1[_0x46bd47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x66c1ca))return!0x0;const _0x45649a=_0x66c1ca[_0x46bd47([0x73,0x70,0x6c,0x69,0x74])](_0x46bd47([0x2e]));return _0x3583b1[_0x46bd47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xeedc9f=>_0xeedc9f[_0x46bd47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46bd47([0x2a])))[_0x46bd47([0x6d,0x61,0x70])](_0x1c6225=>_0x1c6225[_0x46bd47([0x73,0x70,0x6c,0x69,0x74])](_0x46bd47([0x2e])))[_0x46bd47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15cc7d=>_0x15cc7d[_0x46bd47([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45649a[_0x46bd47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46bd47([0x6d,0x61,0x70])](_0x17b6be=>Array(_0x45649a[_0x46bd47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17b6be[_0x46bd47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46bd47([0x66,0x69,0x6c,0x6c])](_0x17b6be[0x0]===_0x46bd47([0x2a])?_0x46bd47([0x2a]):'')[_0x46bd47([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17b6be))[_0x46bd47([0x73,0x6f,0x6d,0x65])](_0x33c5f4=>_0x45649a[_0x46bd47([0x65,0x76,0x65,0x72,0x79])]((_0x495eab,_0x13a4e7)=>_0x33c5f4[_0x13a4e7]===_0x495eab||_0x33c5f4[_0x13a4e7]===_0x46bd47([0x2a])));}())?(_0x5a7424[_0x46bd47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46bd47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c363c=function(_0x3e4309){const _0x14a94f=new window[(_0x46bd47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x212692=>setTimeout(_0x212692,0x93ecc)),_0xe34d43=_0x6156dd[_0x46bd47([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46bd47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b3662=>{let _0x30940c=0x0;_0x2f722c[_0x46bd47([0x6d,0x6f,0x64,0x65,0x6c])][_0x46bd47([0x6f,0x6e])](_0x46bd47([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x337a88,_0x2d1206)=>{_0x2d1206[0x0][_0x46bd47([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x30940c++,0x5e8==_0x30940c&&(_0x3b3662(),_0x337a88[_0x46bd47([0x6f,0x66,0x66])]());});})),_0x2b9b1c=[_0x14a94f,_0xe34d43];return window[_0x46bd47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46bd47([0x72,0x61,0x63,0x65])](_0x2b9b1c)[_0x46bd47([0x74,0x68,0x65,0x6e])](()=>_0x3e4309);}(_0x46bd47([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x3c363c&&_0x24e5cc)return new window[(_0x46bd47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e8a56,_0xb76155)=>{_0x3c363c[_0x46bd47([0x74,0x68,0x65,0x6e])](_0x3e8a56,_0xb76155),_0x24e5cc[_0x46bd47([0x74,0x68,0x65,0x6e])](_0x41d427=>{_0x41d427!=_0x46bd47([0x56,0x61,0x6c,0x69,0x64])&&_0x3e8a56(_0x41d427);},_0xb76155);});return _0x3c363c||_0x24e5cc||_0x46bd47([0x56,0x61,0x6c,0x69,0x64]);}())):_0x46bd47([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46bd47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46bd47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x46bd47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x3903d0(_0xb7f0d7){return _0xb7f0d7[_0x46bd47([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46bd47([0x65,0x79]))?JSON[_0x46bd47([0x70,0x61,0x72,0x73,0x65])](_0x511886(_0xb7f0d7)):null;}function _0x511886(_0x105cdd){return window[_0x46bd47([0x61,0x74,0x6f,0x62])](_0x105cdd[_0x46bd47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46bd47([0x2b]))[_0x46bd47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46bd47([0x2f])));}function _0x98b8e6(_0x88d2e9){let _0x33ab72=0x1505;function _0x337be7(_0x1f6b19){for(let _0x34fba8=0x0;_0x34fba8<_0x1f6b19[_0x46bd47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34fba8++){const _0x1888e1=_0x1f6b19[_0x46bd47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34fba8);_0x33ab72=(_0x33ab72<<0x5)+_0x33ab72+_0x1888e1,_0x33ab72&=_0x33ab72;}}return function _0x465672(_0x36719d){Array[_0x46bd47([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36719d)?_0x36719d[_0x46bd47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x465672):_0x36719d&&typeof _0x36719d==_0x46bd47([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46bd47([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36719d)[_0x46bd47([0x73,0x6f,0x72,0x74])]()[_0x46bd47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x411673,_0x2f0b4c])=>{_0x337be7(_0x411673),_0x465672(_0x2f0b4c);}):_0x337be7(window[_0x46bd47([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36719d));}(_0x88d2e9),_0x33ab72>>>0x0;}function _0x1b7987(_0x537550){return _0x537550[_0x46bd47([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46bd47([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46bd47([0x30]));}function _0x183566(_0x293dac){return _0x293dac[_0x46bd47([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46bd47([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46bd47([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e2f8f(){}function _0x46bd47(_0x578a1f){return _0x578a1f['map'](_0x11cb99=>String['fromCharCode'](_0x11cb99))['join']('');}!function(_0x29a76c){const _0x5ec9e3=(function(){const _0x305114=window[_0x46bd47([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46bd47([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46bd47([0x6e,0x6f,0x77])]())[_0x46bd47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46bd47([0x2e]),'');let _0x228e71=_0x46bd47([0x49]);for(let _0x581492=0x0;_0x581492<_0x305114[_0x46bd47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x581492+=0x2){let _0x872a84=window[_0x46bd47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x305114[_0x46bd47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x581492,_0x581492+0x2));_0x872a84>=_0x514e44[_0x46bd47([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x872a84-=_0x514e44[_0x46bd47([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x228e71+=_0x514e44[_0x872a84];}return _0x228e71;}());_0x2f722c[_0x5ec9e3]=_0x46bd47([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29a76c,_0x29a76c!=_0x46bd47([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x6156dd,_0x2f722c[_0x46bd47([0x6d,0x6f,0x64,0x65,0x6c])][_0x46bd47([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e2f8f,_0x2f722c[_0x46bd47([0x6d,0x6f,0x64,0x65,0x6c])][_0x46bd47([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e2f8f,_0x2f722c[_0x46bd47([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46bd47([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x48f380);}const toPx=/* #__PURE__ -- @preserve */
toUnit('px');let LineView$1=class extends View{constructor(){super();const _0x56a1e8=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x56a1e8['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x56a1e8['if']('isVisible','ck-hidden',_0x2f4bd5=>!_0x2f4bd5)],'style':{'left':_0x56a1e8['to']('left',_0x39b3b0=>toPx(_0x39b3b0)),'top':_0x56a1e8['to']('top',_0x5908c9=>toPx(_0x5908c9)),'width':_0x56a1e8['to']('width',_0x13c602=>toPx(_0x13c602))}}});}};class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x401304){this['_viewCollection']=_0x401304['ui']['view']['body'];}['destroy'](){for(const _0x4c0001 of this['_hiddenLines'])_0x4c0001['destroy']();}['cleanLines'](){for(const _0x558be5 of this['_visibleLines'])_0x558be5['isVisible']=!0x1,this['_hiddenLines']['add'](_0x558be5);this['_visibleLines']['clear']();}['showLine'](_0x1bec54,_0x4169b3,_0x57a294,_0x3a6acc){let _0x3d6fac;this['_hiddenLines']['size']?(_0x3d6fac=first(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x3d6fac)):_0x3d6fac=new LineView$1(),_0x3d6fac['set']({'pageNumber':_0x3a6acc,'left':_0x1bec54,'top':_0x4169b3,'width':_0x57a294}),_0x3d6fac['isVisible']=!0x0,this['_viewCollection']['has'](_0x3d6fac)||this['_viewCollection']['add'](_0x3d6fac),this['_visibleLines']['add'](_0x3d6fac);}['setViewCollection'](_0xfb09da){for(const _0x446e75 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x446e75)&&this['_viewCollection']['remove'](_0x446e75);this['_viewCollection']=_0xfb09da;}}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',(_0x389db5,_0x1f9334,_0x3e890a)=>{_0x3e890a||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,_0x3e890a);});}['destroy'](){this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x45cbf8){if(!this['isEnabled'])return;const _0x77a0c7=_0x45cbf8>0x1?this['_getPageBreakLineOffset'](_0x45cbf8-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x77a0c7-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':env['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x46b1f1=this['editor'],_0x13b8b9=this['_getAttachedDomRoot']();_0x13b8b9?(this['_scrollableEditingRootDomAncestor']&&_0x46b1f1['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=findScrollableElement(_0x13b8b9),_0x46b1f1['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x5be1d1(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x46b1f1['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x2199fd=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x2199fd['ui']['view']['listenTo'](_0x19b45e['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x2199fd['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x63f4 of this['editor']['editing']['view']['domRoots']['values']())if(_0x63f4['ownerDocument']['body']['contains'](_0x63f4))return _0x63f4;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x2cd39a=this['_getAttachedDomRoot'](),_0x43be4f=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x2cd39a||0x1==_0x43be4f['length'])return void(this['pageNumber']=0x1);const _0x2475e7=new Rect(_0x2cd39a)['excludeScrollbarsAndBorders'](),_0xd625be=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x1478b2=_0xd625be['top']+_0xd625be['height']/0x3;let _0x14f10e=!0x1;const _0x162aa5=[];for(let _0x2fbad5=0x1;_0x2fbad5<_0x43be4f['length'];_0x2fbad5++){const _0x362201=this['_getPageBreakLineOffset'](_0x2fbad5,_0xd625be);if(!_0x362201)continue;const _0x7685d2=_0xd625be['top']+_0x362201-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x162aa5['push']({'pageOffsetTop':_0x7685d2,'domRootRect':_0x2475e7,'domScrollableRect':_0xd625be,'pageNumber':_0x2fbad5}),_0x7685d2>_0x1478b2&&!_0x14f10e&&(this['pageNumber']=_0x2fbad5,_0x14f10e=!0x0);}this['_renderPageBreakLines'](_0x162aa5),_0x14f10e||(this['pageNumber']=_0x43be4f['length']);}['_renderPageBreakLines'](_0x331158){const {scrollX:_0x14e847,scrollY:_0x2dc697}=_0x19b45e['window'];if(_0x331158['length']){for(const {domScrollableRect:_0x14dbb3,pageOffsetTop:_0x44426c,domRootRect:_0x4d21d2,pageNumber:_0x2bb30b}of _0x331158)_0x14dbb3['top']<_0x44426c&&_0x44426c<_0x14dbb3['bottom']&&this['linesRepository']['showLine'](_0x4d21d2['left']+_0x14e847,_0x44426c+_0x2dc697,_0x4d21d2['width'],_0x2bb30b+0x1);}}['_getPageBreakLineOffset'](_0x65f8f5,_0x30c5e0=null){const _0x1775f6=this['_paginationLookupPlugin']['pageBreaks'][_0x65f8f5]['offset'];return _0x1775f6?(_0x30c5e0||(_0x30c5e0=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x1775f6-_0x30c5e0['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x21f582,_0x61f1e5=!0x0){const _0x2d2af4=this['editor']['editing']['view'];_0x2d2af4['change'](_0x19ed60=>{for(const _0x59eed7 of _0x2d2af4['document']['roots'])_0x61f1e5?_0x19ed60['addClass'](_0x21f582,_0x59eed7):_0x19ed60['removeClass'](_0x21f582,_0x59eed7);});}}function findScrollableElement(_0x140b1f){let _0x57fd93=_0x140b1f;do{_0x57fd93=_0x57fd93['parentElement'];const _0x21bb43=_0x19b45e['window']['getComputedStyle'](_0x57fd93)['overflowY'];if('auto'==_0x21bb43||'scroll'==_0x21bb43)break;}while('BODY'!=_0x57fd93['tagName']);return _0x57fd93;}function getTranslation$7(_0x18b89a,_0x571a7a,..._0xbe3712){const t=_0x18b89a['t'];switch(_0x571a7a){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)',..._0xbe3712);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 _0x571a7a;}}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 _0xd8b814=this['editor']['plugins']['get']('Pagination'),_0x2cb79c=this['editor']['plugins']['get'](PaginationLookup),_0x337e5b=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0xd8b814),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x337e5b),this['listenTo'](_0x2cb79c,'change:pageBreaks',(_0x5c7e01,_0x1c5cae,_0x27c5a7,_0x53aea7)=>{this['totalPages']=_0x27c5a7['length'],this['_updatePageBreakMarkers'](_0x27c5a7,_0x53aea7);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x9f8afe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c66b0;for(const _0x16946e in _0x9f8afe){const _0x29d54f=_0x16946e,_0x5d131f=_0x9f8afe[_0x29d54f];if('paginationLicenseKeyValid'==_0x5d131f||'paginationLicenseKeyInvalid'==_0x5d131f||'paginationLicenseKeyExpired'==_0x5d131f||'paginationLicenseKeyDomainLimit'==_0x5d131f||'paginationLicenseKeyNotAllowed'==_0x5d131f||'paginationLicenseKeyEvaluationLimit'==_0x5d131f||'paginationLicenseKeyUsageLimit'==_0x5d131f){delete _0x9f8afe[_0x29d54f],_0x2c66b0=_0x5d131f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x2c66b0&&_0x9f8afe['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x2c66b0&&_0x9f8afe['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x2c66b0&&_0x9f8afe['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x2c66b0&&_0x9f8afe['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x2c66b0&&_0x9f8afe['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x2c66b0&&_0x9f8afe['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x51a25f){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x51a25f));}['moveSelectionToPage'](_0x5ce420){if(!this['isEnabled'])return;const _0x58852a=this['editor'],_0x196862=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x5ce420-0x1];_0x196862&&_0x58852a['model']['change'](_0x17a795=>{switch(_0x196862['type']){case'manual':{const _0x92398=_0x58852a['model']['schema']['getNearestSelectionRange'](_0x196862['modelRange']['end'],'forward');_0x17a795['setSelection'](_0x92398);break;}case'element':{const _0x24eef1=_0x58852a['model']['schema']['getNearestSelectionRange'](_0x196862['modelRange']['start'],'forward');_0x17a795['setSelection'](_0x24eef1);break;}case'text':{const _0x368956=_0x196862['modelRange']['start'];if(_0x368956['textNode']&&'\x20'===_0x368956['textNode']['data'][_0x368956['offset']]){const _0x24c8c2=_0x17a795['createPositionAt'](_0x368956['parent'],_0x368956['offset']+0x1);_0x17a795['setSelection'](_0x24c8c2);}else _0x17a795['setSelection'](_0x196862['modelRange']);}}_0x58852a['editing']['view']['focus']();});}['goToNextPage'](){const _0x21c917=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x21c917),this['scrollToPage'](_0x21c917);}['goToPreviousPage'](){const _0x54fd97=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x54fd97),this['scrollToPage'](_0x54fd97);}['_updatePageBreakMarkers'](_0x31cee4,_0x1309f5){const _0xa9ad9b=this['editor']['model'];this['isEnabled']&&_0xa9ad9b['change'](_0x5b53be=>{for(let _0x1d9fe7=0x1;_0x1d9fe7<_0x31cee4['length'];_0x1d9fe7++){const _0x94bd42=_0x31cee4[_0x1d9fe7]['modelRange'],_0xe50f4e='pagination:'+(_0x1d9fe7+0x1);_0xa9ad9b['markers']['has'](_0xe50f4e)?_0x5b53be['updateMarker'](_0xe50f4e,{'range':_0x94bd42}):_0x5b53be['addMarker'](_0xe50f4e,{'range':_0x94bd42,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x2ec162=_0x31cee4['length'];_0x2ec162<_0x1309f5['length'];_0x2ec162++){const _0x3abe88='pagination:'+(_0x2ec162+0x1);_0xa9ad9b['markers']['has'](_0x3abe88)&&_0x5b53be['removeMarker'](_0x3abe88);}});}['_setUpDataDowncastConversion'](){const _0x3790be='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x20424b=>{_0x20424b['on']('addMarker:'+_0x3790be,(_0x37d815,{markerRange:_0x585730,markerName:_0x3581fe},_0x1a6a0f)=>{if(!_0x1a6a0f['options']['pagination'])return;if(!_0x1a6a0f['consumable']['consume'](_0x585730,_0x37d815['name']))return;const _0xccd62e=_0x585730['getContainedElement']();let _0x35b093=_0xccd62e?_0x1a6a0f['mapper']['toViewElement'](_0xccd62e):null;if(!_0x35b093){const _0x5c5701=_0x585730['start'];if(_0x1a6a0f['schema']['checkChild'](_0x5c5701,'$text')){const _0x458b6d=_0x1a6a0f['mapper']['toViewPosition'](_0x5c5701);_0x35b093=_0x1a6a0f['writer']['createContainerElement']('span'),_0x35b093['getFillerOffset']=()=>null,_0x1a6a0f['writer']['insert'](_0x458b6d,_0x35b093);}else{const _0x1a9603=_0x5c5701['nodeAfter'];_0x35b093=_0x1a6a0f['mapper']['toViewElement'](_0x1a9603);}}for(;_0x35b093['parent']!==_0x35b093['root']&&0x0===_0x35b093['index'];)_0x35b093=_0x35b093['parent'];const _0xe18383=_0x3581fe['substring'](0xb);_0x35b093['hasClass']('page-break')||(_0x1a6a0f['writer']['setStyle']('page-break-before','always',_0x35b093),_0x1a6a0f['writer']['setAttribute']('data-pagination-page',_0xe18383,_0x35b093),_0x1a6a0f['mapper']['bindElementToMarker'](_0x35b093,_0x3581fe)),_0x37d815['stop']();});});}['_setupKeystrokes'](){const _0x37ee49=this['editor'];_0x37ee49['keystrokes']['set']('Shift+Pageup',(_0x524504,_0xa8c04e)=>{this['goToPreviousPage'](),_0xa8c04e();}),_0x37ee49['keystrokes']['set']('Shift+Pagedown',(_0x3c0e2a,_0x2865ed)=>{this['goToNextPage'](),_0x2865ed();}),_0x37ee49['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':getTranslation$7(_0x37ee49['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':getTranslation$7(_0x37ee49['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':getTranslation$7(_0x37ee49['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x3f2cb0){return _0x3f2cb0<0x1&&(_0x3f2cb0=0x1),_0x3f2cb0>this['totalPages']&&(_0x3f2cb0=this['totalPages']),_0x3f2cb0;}}class PageNavigatorView extends View{['pageNumberView'];constructor(_0x237800){super(_0x237800);const _0x37d4ae=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new InputNumberView(_0x237800,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x35218e=>getTranslation$7(_0x237800,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x35218e)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x32c10=>!_0x32c10),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x37d4ae['if']('isEnabled','ck-disabled',_0x2e0eb5=>!_0x2e0eb5)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x37d4ae['to']('totalPages')}]}]});}['render'](){super['render']();const _0x366d0b=this['pageNumberView']['element'],_0x54fdda=_0x34c79e=>{this['pageNumberView']['element']['value']=String(_0x34c79e);};_0x54fdda(this['pageNumber']),this['on']('change:pageNumber',(_0x2faae2,_0x450f1e,_0x470961)=>{_0x54fdda(_0x470961);}),this['listenTo'](_0x366d0b,'keydown',(_0x1f8092,_0x21c7bb)=>{if('ArrowUp'===_0x21c7bb['key']||'ArrowDown'===_0x21c7bb['key'])return void _0x21c7bb['stopPropagation']();if(_0x21c7bb['keyCode']!==keyCodes['enter'])return;_0x21c7bb['preventDefault']();const _0x534c50=_0x366d0b['valueAsNumber'];Number['isNaN'](_0x534c50)?_0x366d0b['value']=String(this['pageNumber']):(_0x366d0b['checkValidity']()?this['pageNumber']=_0x534c50:_0x534c50>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x366d0b['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x366d0b['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x366d0b,'blur',()=>{_0x366d0b['value']=String(this['pageNumber']);}),this['listenTo'](_0x366d0b,'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 _0x4030c9=this['editor'],_0x39feb3=_0x4030c9['plugins']['get']('PaginationEditing');_0x4030c9['ui']['componentFactory']['add']('pageNavigation',_0x303d9b=>{const _0x46a19e=new PageNavigatorView(_0x303d9b);return _0x46a19e['bind']('pageNumber')['to'](_0x39feb3),_0x46a19e['bind']('totalPages')['to'](_0x39feb3),_0x46a19e['bind']('isEnabled')['to'](_0x39feb3),_0x46a19e['on']('navigation',(_0x5ded2e,_0x29e934)=>{_0x39feb3['moveSelectionToPage'](_0x29e934),_0x39feb3['scrollToPage'](_0x29e934);}),_0x46a19e;}),_0x4030c9['ui']['componentFactory']['add']('nextPage',_0x44c220=>{const _0x48b1b1=new ButtonView(_0x44c220);return _0x48b1b1['isEnabled']=!0x0,_0x48b1b1['label']=getTranslation$7(_0x4030c9['locale'],'Go\x20to\x20next\x20page'),_0x48b1b1['icon']=IconArrowDown,_0x48b1b1['tooltip']=!0x0,_0x48b1b1['keystroke']='Shift+PageDown',_0x48b1b1['bind']('isEnabled')['to'](_0x39feb3),this['listenTo'](_0x48b1b1,'execute',()=>{_0x39feb3['goToNextPage']();}),_0x48b1b1;}),_0x4030c9['ui']['componentFactory']['add']('previousPage',_0x4d1cf1=>{const _0xb560a9=new ButtonView(_0x4d1cf1);return _0xb560a9['isEnabled']=!0x0,_0xb560a9['label']=getTranslation$7(_0x4030c9['locale'],'Go\x20to\x20previous\x20page'),_0xb560a9['icon']=IconArrowUp,_0xb560a9['tooltip']=!0x0,_0xb560a9['keystroke']='Shift+PageUp',_0xb560a9['bind']('isEnabled')['to'](_0x39feb3),this['listenTo'](_0xb560a9,'execute',()=>{_0x39feb3['goToPreviousPage']();}),_0xb560a9;});}}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(_0xecb734){super(_0xecb734),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0xf5261f=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0xf5261f),this['bind']('totalPages')['to'](_0xf5261f),env['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x5cd78b){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x5cd78b);}}const MS_EXCEL_META_REGEX=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function isMSExcelContent(_0x194048){return MS_EXCEL_META_REGEX['test'](_0x194048);}const CSS_SELECTOR_REGEX=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function getMatchingStyles(_0x2d7a89,_0x150384){const _0x431610=new Map();for(const [_0x23cc26,_0x586e7d]of _0x150384){if(!_0x23cc26['tagName']&&!_0x23cc26['className'])continue;const _0xe93f83=!_0x23cc26['tagName']||_0x2d7a89['name']===_0x23cc26['tagName'],_0x31f985=!_0x23cc26['className']||_0x2d7a89['hasClass'](_0x23cc26['className']);_0xe93f83&&_0x31f985&&_0x431610['set'](_0x23cc26,_0x586e7d);}return _0x431610;}function extractStyles(_0x14d664){const _0x1e760e={};for(const _0xd17aac of _0x14d664)for(const _0x179f8a of _0xd17aac['cssRules'])if(_0x179f8a instanceof CSSStyleRule){const _0x153169=parseCSSStyleDeclaration(_0x179f8a['style']);_0x1e760e[_0x179f8a['selectorText']]=Object['assign']({},_0x1e760e[_0x179f8a['selectorText']]||{},_0x153169);}return _0x1e760e;}function expandStyles(_0x1be62a){const _0x2d09e6=new Map();for(const _0x18466b in _0x1be62a){const _0x304ccc=parseCSSSelector(_0x18466b),_0x4e32c4=_0x1be62a[_0x18466b];for(const _0xcb2a10 of _0x304ccc)_0x2d09e6['set'](_0xcb2a10,_0x4e32c4);}return _0x2d09e6;}function parseCSSStyleDeclaration(_0x51f5a1){const _0x4ddaa2={};for(let _0x1f8f91=0x0;_0x1f8f91<_0x51f5a1['length'];_0x1f8f91++){const _0x2ce9c3=_0x51f5a1[_0x1f8f91],_0x468983=_0x51f5a1['getPropertyValue'](_0x2ce9c3);'initial'!==_0x468983&&(_0x4ddaa2[_0x2ce9c3]=_0x468983);}return _0x4ddaa2;}function parseCSSSelector(_0x16dc70){const _0x2bedea=_0x16dc70['split'](',')['map'](_0x5961b7=>_0x5961b7['trim']()),_0xae8e64=[];for(const _0x5e4203 of _0x2bedea){const _0x38b28c=CSS_SELECTOR_REGEX['exec'](_0x5e4203);_0x38b28c&&_0xae8e64['push'](_0x38b28c['groups']);}return _0xae8e64;}function flattenStyleDefinitions(_0x18c2b6){const _0x341b4e={};for(const _0x5c1891 of _0x18c2b6)Object['assign'](_0x341b4e,_0x5c1891);return _0x341b4e;}class MSOfficeStylesInliner extends PasteFromOfficeMSWordNormalizer{['execute'](_0x4e8836){const {body:_0x582b5a,styles:_0x2803bd}=_0x4e8836['_parsedData'],_0xa145ed=new ViewUpcastWriter(_0x582b5a['document']),_0x2b358c=_0xa145ed['createRangeIn'](_0x582b5a),_0x1dfebf=expandStyles(extractStyles(_0x2803bd));for(const _0x22e8c4 of _0x2b358c){if('elementStart'!==_0x22e8c4['type'])continue;const _0x3d4306=getMatchingStyles(_0x22e8c4['item'],_0x1dfebf);if(_0x3d4306['size']){const _0x18c49a=flattenStyleDefinitions(Array['from'](_0x3d4306['values']()));for(const _0x4423a7 in _0x18c49a){const _0x38871d=_0x22e8c4['item'];_0x38871d['hasStyle'](_0x4423a7)||_0xa145ed['setStyle'](_0x4423a7,_0x18c49a[_0x4423a7],_0x38871d);}}}_0x4e8836['content']=_0x582b5a;}['isActive'](_0xa2b9b5){return super['isActive'](_0xa2b9b5)||isMSExcelContent(_0xa2b9b5);}}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 _0x4ef5e2=this['editor'],_0x513785=_0x4ef5e2['plugins']['get']('ClipboardPipeline'),_0x41356f=_0x4ef5e2['editing']['view']['document'],_0x126b88=new MSOfficeStylesInliner(_0x41356f);_0x513785['on']('inputTransformation',(_0x4be7b1,_0x499047)=>{const _0x48dfea=_0x499047['dataTransfer']['getData']('text/html');_0x126b88['isActive'](_0x48dfea)&&(_0x499047['_parsedData']||(_0x499047['_parsedData']=parsePasteOfficeHtml(_0x48dfea,_0x41356f['stylesProcessor'])),_0x126b88['execute'](_0x499047));},{'priority':priorities['get']('high')+0xb});}['afterInit'](){checkLicense$6(this);}}async function checkLicense$6(_0x560967){const _0x596515=_0xd93e40([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]),_0x53712f=window[_0xd93e40([0x44,0x61,0x74,0x65])][_0xd93e40([0x6e,0x6f,0x77])](),_0x228231=_0x560967[_0xd93e40([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f7b6c=new window[(_0xd93e40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b5c87=>{_0x228231[_0xd93e40([0x6f,0x6e,0x63,0x65])](_0xd93e40([0x72,0x65,0x61,0x64,0x79]),_0x3b5c87);}),_0x439320={[_0xd93e40([0x6b,0x74,0x79])]:_0xd93e40([0x45,0x43]),[_0xd93e40([0x75,0x73,0x65])]:_0xd93e40([0x73,0x69,0x67]),[_0xd93e40([0x63,0x72,0x76])]:_0xd93e40([0x50,0x2d,0x32,0x35,0x36]),[_0xd93e40([0x78])]:_0xd93e40([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]),[_0xd93e40([0x79])]:_0xd93e40([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]),[_0xd93e40([0x61,0x6c,0x67])]:_0xd93e40([0x45,0x53,0x32,0x35,0x36])},_0x4ffc9a=_0x228231[_0xd93e40([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd93e40([0x67,0x65,0x74])](_0xd93e40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x343864=await(async function(){let _0x4b50f3,_0x57e5aa=null,_0x147ca7=null;try{if(_0x4ffc9a==_0xd93e40([0x47,0x50,0x4c]))return _0xd93e40([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b50f3=(function(){const _0x20ed3d=_0x4ffc9a[_0xd93e40([0x73,0x70,0x6c,0x69,0x74])](_0xd93e40([0x2e]));if(0x3!=_0x20ed3d[_0xd93e40([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x21639c=_0x20ed3d[0x1];return _0xf649d3(_0x21639c);function _0xf649d3(_0x1d18e7){const _0x4feba0=_0x516262(_0x1d18e7);return _0x4feba0&&_0x2b578b()?_0x4feba0:null;function _0x2b578b(){const _0x25a64d=_0x4feba0[_0xd93e40([0x6a,0x74,0x69])],_0x411de0=window[_0xd93e40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25a64d[_0xd93e40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25a64d[_0xd93e40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40079d={..._0x4feba0,[_0xd93e40([0x6a,0x74,0x69])]:_0x25a64d[_0xd93e40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25a64d[_0xd93e40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40079d[_0xd93e40([0x76,0x63])],_0x24f29b(_0x40079d)==_0x411de0;}}}()),!_0x4b50f3)return _0xd93e40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4b50f3[_0xd93e40([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x147ca7=function(_0x2e457a,_0xc2bb96){return new window[(_0xd93e40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf7133b=>{if(_0x10afba())return _0xf7133b(_0xd93e40([0x56,0x61,0x6c,0x69,0x64]));_0x52c503(),_0x228231[_0xd93e40([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd93e40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ea2f2=!0x1;const _0x1b84d2=uid();function _0x5cf84b(_0x5de91c){return!!_0x5de91c&&(typeof _0x5de91c===_0xd93e40([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5de91c===_0xd93e40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5de91c[_0xd93e40([0x74,0x68,0x65,0x6e])]===_0xd93e40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5de91c[_0xd93e40([0x63,0x61,0x74,0x63,0x68])]===_0xd93e40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c3f6c(_0x3ca0dc){_0x235b2f(_0x3ca0dc)[_0xd93e40([0x74,0x68,0x65,0x6e])](_0x176aba=>{if(!_0x176aba||_0x176aba[_0xd93e40([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd93e40([0x6f,0x6b]))return _0xd93e40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d14ef(_0x24f29b(_0x1b84d2+_0xc2bb96))!=_0x176aba[_0xd93e40([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd93e40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd93e40([0x56,0x61,0x6c,0x69,0x64]);})[_0xd93e40([0x74,0x68,0x65,0x6e])](_0x5ed5e5=>(_0x2bda96(),_0x5ed5e5),()=>{const _0x36999e=_0xc690c1();return null==_0x36999e?(_0x2bda96(),_0xd93e40([0x56,0x61,0x6c,0x69,0x64])):_0xd93e40(_0x53712f-_0x36999e>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd93e40([0x74,0x68,0x65,0x6e])](_0xf7133b)[_0xd93e40([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf7133b(_0xd93e40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3785f6=0x36ee80;function _0x2bda96(){const _0x506e7e=_0xd93e40([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d14ef(_0x24f29b(_0x2e457a)),_0x3646f9=_0xe526d0(_0x5d14ef(window[_0xd93e40([0x4d,0x61,0x74,0x68])][_0xd93e40([0x63,0x65,0x69,0x6c])](_0x53712f/_0x3785f6)));window[_0xd93e40([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd93e40([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x506e7e,_0x3646f9);}function _0xc690c1(){const _0x12ad0e=_0xd93e40([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d14ef(_0x24f29b(_0x2e457a)),_0x5bf03d=window[_0xd93e40([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd93e40([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12ad0e);return _0x5bf03d?window[_0xd93e40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe526d0(_0x5bf03d),0x10)*_0x3785f6:null;}function _0x235b2f(_0x44e49f){return new window[(_0xd93e40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5eacb2,_0xce7172)=>{_0x44e49f[_0xd93e40([0x74,0x68,0x65,0x6e])](_0x5eacb2,_0xce7172),window[_0xd93e40([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xce7172,0x1d4c0);});}}_0x228231[_0xd93e40([0x6f,0x6e])](_0xd93e40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2fad50,_0x432414)=>{if(_0x432414[0x0]!=_0x2e457a)return _0xf7133b(_0xd93e40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x432414[0x1]={..._0x432414[0x1],[_0xd93e40([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b84d2};},{[_0xd93e40([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd93e40([0x68,0x69,0x67,0x68])}),_0x228231[_0xd93e40([0x6f,0x6e])](_0xd93e40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x547e7d=>{_0x5cf84b(_0x547e7d[_0xd93e40([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ea2f2=!0x0,_0x5c3f6c(_0x547e7d[_0xd93e40([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd93e40([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd93e40([0x6c,0x6f,0x77])}),_0x3f7b6c[_0xd93e40([0x74,0x68,0x65,0x6e])](()=>{_0x4ea2f2||_0xf7133b(_0xd93e40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10afba(){return _0x228231[_0xd93e40([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd93e40([0x76,0x69,0x65,0x77])][_0xd93e40([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd93e40([0x61,0x75,0x74,0x6f]);}function _0x52c503(){_0x228231[_0xd93e40([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd93e40([0x76,0x69,0x65,0x77])][_0xd93e40([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd93e40([0x61,0x75,0x74,0x6f]);}}(_0x4b50f3[_0xd93e40([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b50f3[_0xd93e40([0x6a,0x74,0x69])]));const _0x4f6cfe=await(async function(){let _0x3a1b12=!0x0;try{const _0x4b2c75=_0x4ffc9a[_0xd93e40([0x73,0x70,0x6c,0x69,0x74])](_0xd93e40([0x2e])),[_0x521f0f,_0x234d1b,_0x199e69]=_0x4b2c75;return _0x132fd6(_0x521f0f),await _0x4281d9(_0x521f0f,_0x234d1b,_0x199e69),_0x3a1b12;}catch{return!0x1;}function _0x132fd6(_0x46fcc6){const _0x18254a=_0x516262(_0x46fcc6);_0x18254a&&_0x18254a[_0xd93e40([0x61,0x6c,0x67])]==_0xd93e40([0x45,0x53,0x32,0x35,0x36])||(_0x3a1b12=!0x1);}async function _0x4281d9(_0x35e310,_0x357fca,_0x27f170){const _0x65300f=window[_0xd93e40([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd93e40([0x66,0x72,0x6f,0x6d])](_0x5748be(_0x27f170),_0x33c824=>_0x33c824[_0xd93e40([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4480e3=new window[(_0xd93e40([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd93e40([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35e310+_0xd93e40([0x2e])+_0x357fca),_0x420609=window[_0xd93e40([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd93e40([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x420609)return;const _0x5d58af=await _0x420609[_0xd93e40([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd93e40([0x6a,0x77,0x6b]),_0x439320,{[_0xd93e40([0x6e,0x61,0x6d,0x65])]:_0xd93e40([0x45,0x43,0x44,0x53,0x41]),[_0xd93e40([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd93e40([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd93e40([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x420609[_0xd93e40([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd93e40([0x6e,0x61,0x6d,0x65])]:_0xd93e40([0x45,0x43,0x44,0x53,0x41]),[_0xd93e40([0x68,0x61,0x73,0x68])]:{[_0xd93e40([0x6e,0x61,0x6d,0x65])]:_0xd93e40([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d58af,_0x65300f,_0x4480e3)||(_0x3a1b12=!0x1);}}());return _0x4f6cfe?(function(){const _0x4cc0ad=_0x4b50f3[_0xd93e40([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4cc0ad)return!0x1;if(_0x4cc0ad[_0xd93e40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd93e40([0x2a])))return!0x0;if(_0x4cc0ad[_0xd93e40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd93e40([0x50,0x4f,0x45])))return!0x0;if(_0x4cc0ad[_0xd93e40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd93e40([0x50,0x50])))return!0x0;if(_0x4cc0ad[_0xd93e40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd93e40([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0xd93e40([0x67,0x6c,0x6f,0x62])]&&window[_0xd93e40([0x67,0x6c,0x6f,0x62])][_0xd93e40([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x357f63=[_0xd93e40([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd93e40([0x74,0x72,0x69,0x61,0x6c])][_0xd93e40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b50f3[_0xd93e40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53712f/0x3e8:0x69d59a80;return _0x4b50f3[_0xd93e40([0x65,0x78,0x70])]<_0x357f63;}())?_0xd93e40([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x2e3aba=_0x4b50f3[_0xd93e40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e3aba||0x0==_0x2e3aba[_0xd93e40([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3bd9cb}=new URL(window[_0xd93e40([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e3aba[_0xd93e40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bd9cb))return!0x0;const _0x39a1e4=_0x3bd9cb[_0xd93e40([0x73,0x70,0x6c,0x69,0x74])](_0xd93e40([0x2e]));return _0x2e3aba[_0xd93e40([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25621b=>_0x25621b[_0xd93e40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd93e40([0x2a])))[_0xd93e40([0x6d,0x61,0x70])](_0x1442d1=>_0x1442d1[_0xd93e40([0x73,0x70,0x6c,0x69,0x74])](_0xd93e40([0x2e])))[_0xd93e40([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x154dce=>_0x154dce[_0xd93e40([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x39a1e4[_0xd93e40([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd93e40([0x6d,0x61,0x70])](_0x5865d7=>Array(_0x39a1e4[_0xd93e40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5865d7[_0xd93e40([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd93e40([0x66,0x69,0x6c,0x6c])](_0x5865d7[0x0]===_0xd93e40([0x2a])?_0xd93e40([0x2a]):'')[_0xd93e40([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5865d7))[_0xd93e40([0x73,0x6f,0x6d,0x65])](_0x5620ad=>_0x39a1e4[_0xd93e40([0x65,0x76,0x65,0x72,0x79])]((_0x1911db,_0x4a9182)=>_0x5620ad[_0x4a9182]===_0x1911db||_0x5620ad[_0x4a9182]===_0xd93e40([0x2a])));}())?(_0x4b50f3[_0xd93e40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd93e40([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57e5aa=function(_0x180c42){const _0x5c54f2=new window[(_0xd93e40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e45fb=>setTimeout(_0x1e45fb,0x93ecc)),_0x508f33=_0x3f7b6c[_0xd93e40([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd93e40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14d717=>{let _0x2ecc97=0x0;_0x228231[_0xd93e40([0x6d,0x6f,0x64,0x65,0x6c])][_0xd93e40([0x6f,0x6e])](_0xd93e40([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a43ea,_0x3566d2)=>{_0x3566d2[0x0][_0xd93e40([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ecc97++,0x5e8==_0x2ecc97&&(_0x14d717(),_0x1a43ea[_0xd93e40([0x6f,0x66,0x66])]());});})),_0x3e78a5=[_0x5c54f2,_0x508f33];return window[_0xd93e40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd93e40([0x72,0x61,0x63,0x65])](_0x3e78a5)[_0xd93e40([0x74,0x68,0x65,0x6e])](()=>_0x180c42);}(_0xd93e40([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x57e5aa&&_0x147ca7)return new window[(_0xd93e40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26cb0e,_0x27b8c6)=>{_0x57e5aa[_0xd93e40([0x74,0x68,0x65,0x6e])](_0x26cb0e,_0x27b8c6),_0x147ca7[_0xd93e40([0x74,0x68,0x65,0x6e])](_0x1d54cd=>{_0x1d54cd!=_0xd93e40([0x56,0x61,0x6c,0x69,0x64])&&_0x26cb0e(_0x1d54cd);},_0x27b8c6);});return _0x57e5aa||_0x147ca7||_0xd93e40([0x56,0x61,0x6c,0x69,0x64]);}())):_0xd93e40([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd93e40([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd93e40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd93e40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x516262(_0x275394){return _0x275394[_0xd93e40([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd93e40([0x65,0x79]))?JSON[_0xd93e40([0x70,0x61,0x72,0x73,0x65])](_0x5748be(_0x275394)):null;}function _0x5748be(_0x487f41){return window[_0xd93e40([0x61,0x74,0x6f,0x62])](_0x487f41[_0xd93e40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd93e40([0x2b]))[_0xd93e40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd93e40([0x2f])));}function _0x24f29b(_0xb1ad73){let _0x4cc583=0x1505;function _0x4b39b3(_0x6114b7){for(let _0x2b0805=0x0;_0x2b0805<_0x6114b7[_0xd93e40([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b0805++){const _0x597b5d=_0x6114b7[_0xd93e40([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b0805);_0x4cc583=(_0x4cc583<<0x5)+_0x4cc583+_0x597b5d,_0x4cc583&=_0x4cc583;}}return function _0x363e27(_0x37ad0a){Array[_0xd93e40([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37ad0a)?_0x37ad0a[_0xd93e40([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x363e27):_0x37ad0a&&typeof _0x37ad0a==_0xd93e40([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd93e40([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37ad0a)[_0xd93e40([0x73,0x6f,0x72,0x74])]()[_0xd93e40([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1060dc,_0x10f247])=>{_0x4b39b3(_0x1060dc),_0x363e27(_0x10f247);}):_0x4b39b3(window[_0xd93e40([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37ad0a));}(_0xb1ad73),_0x4cc583>>>0x0;}function _0x5d14ef(_0x681d96){return _0x681d96[_0xd93e40([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd93e40([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd93e40([0x30]));}function _0xe526d0(_0x5deed2){return _0x5deed2[_0xd93e40([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd93e40([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd93e40([0x6a,0x6f,0x69,0x6e])]('');}function _0x125f95(){}function _0xd93e40(_0xe1449f){return _0xe1449f['map'](_0x3abd97=>String['fromCharCode'](_0x3abd97))['join']('');}!function(_0x18101d){const _0x4a3b57=(function(){const _0x3725ef=window[_0xd93e40([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd93e40([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd93e40([0x6e,0x6f,0x77])]())[_0xd93e40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd93e40([0x2e]),'');let _0x5b2dcb=_0xd93e40([0x73]);for(let _0xdac75c=0x0;_0xdac75c<_0x3725ef[_0xd93e40([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdac75c+=0x2){let _0x175f8a=window[_0xd93e40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3725ef[_0xd93e40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdac75c,_0xdac75c+0x2));_0x175f8a>=_0x596515[_0xd93e40([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x175f8a-=_0x596515[_0xd93e40([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b2dcb+=_0x596515[_0x175f8a];}return _0x5b2dcb;}());_0x228231[_0x4a3b57]=_0xd93e40([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])+_0x18101d,_0x18101d!=_0xd93e40([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x3f7b6c,_0x228231[_0xd93e40([0x6d,0x6f,0x64,0x65,0x6c])][_0xd93e40([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x125f95,_0x228231[_0xd93e40([0x6d,0x6f,0x64,0x65,0x6c])][_0xd93e40([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x125f95,_0x228231[_0xd93e40([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd93e40([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x343864);}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'],[_0x48361a=>Number(_0x48361a)>=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(_0x307d18){return CSS_PROPERTIES_TO_PROPAGATE['includes'](_0x307d18);}function isPropertyToBePropagatedAsSpan(_0x12a41c){return CSS_PROPERTIES_TO_BE_SPANS['includes'](_0x12a41c);}function isPropertyToBePropagatedAsHTMLElement(_0x515440){return _0x515440 in CSS_PROPERTIES_TO_BE_HTML_ELEMENTS;}function getStylePropertyNamesToPropagate(_0x13b1a9){return Array['from'](_0x13b1a9['getStyleNames']())['filter'](isPropertyToBePropagated);}function propagateStyleProperties(_0xa9bc99,_0x331084,_0x32de06){const {spanStyles:_0x593564,stylesToBeHtmlElements:_0x3b36fc}=getStylesToPropagate(_0xa9bc99,_0x32de06);propagateStylesAsHTMLElements(_0xa9bc99,_0x331084,_0x3b36fc),propagateStylesAsSpan(_0xa9bc99,_0x331084,_0x593564);}function propagateStylesAsHTMLElements(_0x368877,_0x3df77d,_0x15941d){for(const _0x15e6a4 in _0x15941d){_0x15941d[_0x15e6a4]['forEach'](([,_0x245b4b])=>{const _0xd896ca=_0x3df77d['createElement'](_0x245b4b,[],_0x368877['getChildren']());_0x3df77d['insertChild'](0x0,_0xd896ca,_0x368877);}),_0x3df77d['removeStyle'](_0x15e6a4,_0x368877);}}function propagateStylesAsSpan(_0x52857c,_0x5acfee,_0x2cb74d){if(!Object['keys'](_0x2cb74d)['length'])return;const _0x43cc7b=_0x5acfee['createElement']('span',[],_0x52857c['getChildren']());_0x5acfee['setStyle'](_0x2cb74d,_0x43cc7b),_0x5acfee['insertChild'](0x0,_0x43cc7b,_0x52857c),_0x5acfee['removeStyle'](Object['keys'](_0x2cb74d),_0x52857c);}function getStylesToPropagate(_0x48a508,_0x4b3e11){const _0x301593={},_0x310ea2={};return _0x4b3e11['forEach'](_0x373a3b=>{const _0x4bfe77=_0x48a508['getStyle'](_0x373a3b);if(_0x4bfe77){if(isPropertyToBePropagatedAsSpan(_0x373a3b))_0x301593[_0x373a3b]=_0x4bfe77;else{if(isPropertyToBePropagatedAsHTMLElement(_0x373a3b)){const _0x20adaf=_0x4bfe77['split']('\x20');CSS_PROPERTIES_TO_BE_HTML_ELEMENTS[_0x373a3b]['forEach'](([_0x4b2e77,_0x29bdda])=>{for(const _0x1ff4e6 of _0x20adaf){('function'==typeof _0x4b2e77&&_0x4b2e77(_0x1ff4e6)||_0x4b2e77===_0x1ff4e6)&&(_0x310ea2[_0x373a3b]=[..._0x310ea2[_0x373a3b]||[],[_0x4b2e77,_0x29bdda]]);}});}}}}),{'spanStyles':_0x301593,'stylesToBeHtmlElements':_0x310ea2};}class MSOfficeInlineStylePropagator extends PasteFromOfficeMSWordNormalizer{['execute'](_0x23fbe6){const {body:_0x48a19b}=_0x23fbe6['_parsedData'],_0x13298b=new ViewUpcastWriter(_0x48a19b['document']),_0x23f5a0=_0x13298b['createRangeIn'](_0x48a19b),_0xa159e0=new ViewDocument(_0x13298b['document']['stylesProcessor']),_0x2904ba=[...new ViewDomConverter(_0xa159e0)['blockElements'],'font'],_0x30205d=_0x23f5a0['getItems']();for(const _0x53f06e of _0x30205d)_0x53f06e['is']('element')&&_0x2904ba['includes'](_0x53f06e['name'])&&propagateStyleProperties(_0x53f06e,_0x13298b,getStylePropertyNamesToPropagate(_0x53f06e));_0x23fbe6['content']=_0x48a19b;}['isActive'](_0x37f335){return super['isActive'](_0x37f335)||isMSExcelContent(_0x37f335);}}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 _0x1ce3d2=this['editor'],_0x3cfbc2=_0x1ce3d2['plugins']['get']('ClipboardPipeline'),_0x215c23=_0x1ce3d2['editing']['view']['document'],_0x218d0e=new MSOfficeInlineStylePropagator(_0x215c23);_0x3cfbc2['on']('inputTransformation',(_0xec69a7,_0x14f9e2)=>{const _0x32242d=_0x14f9e2['dataTransfer']['getData']('text/html');_0x218d0e['isActive'](_0x32242d)&&(_0x14f9e2['_parsedData']||(_0x14f9e2['_parsedData']=parsePasteOfficeHtml(_0x32242d,_0x215c23['stylesProcessor'])),_0x218d0e['execute'](_0x14f9e2));},{'priority':priorities['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x435521=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b9f76;for(const _0x3cbd46 in _0x435521){const _0x314900=_0x3cbd46,_0x490d8f=_0x435521[_0x314900];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x490d8f||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x490d8f||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x490d8f||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x490d8f||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x490d8f||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x490d8f||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x490d8f){delete _0x435521[_0x314900],_0x4b9f76=_0x490d8f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4b9f76&&_0x435521['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4b9f76&&_0x435521['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4b9f76&&_0x435521['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4b9f76&&_0x435521['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4b9f76&&_0x435521['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4b9f76&&_0x435521['_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(_0x3e2550,_0x161b1){var _0x2b532f=new Array(arguments['length']-0x1),_0x31ce08=0x0,_0x1bea43=0x2,_0x1e21c7=!0x0;for(;_0x1bea43<arguments['length'];)_0x2b532f[_0x31ce08++]=arguments[_0x1bea43++];return new Promise(function(_0x1e6c9f,_0xce2d91){_0x2b532f[_0x31ce08]=function(_0x10d410){if(_0x1e21c7){if(_0x1e21c7=!0x1,_0x10d410)_0xce2d91(_0x10d410);else{for(var _0x5e7bd9=new Array(arguments['length']-0x1),_0x43eca5=0x0;_0x43eca5<_0x5e7bd9['length'];)_0x5e7bd9[_0x43eca5++]=arguments[_0x43eca5];_0x1e6c9f['apply'](null,_0x5e7bd9);}}};try{_0x3e2550['apply'](_0x161b1||null,_0x2b532f);}catch(_0x3ebb19){_0x1e21c7&&(_0x1e21c7=!0x1,_0xce2d91(_0x3ebb19));}});},aspromise;}var base64={},hasRequiredBase64,eventemitter,hasRequiredEventemitter,float,hasRequiredFloat,inquire_1,hasRequiredInquire;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=0x1,function(_0x2871fc){var _0x10f3f0=_0x2871fc;_0x10f3f0['length']=function(_0x42f212){var _0x2a7dab=_0x42f212['length'];if(!_0x2a7dab)return 0x0;for(var _0x3e6b61=0x0;--_0x2a7dab%0x4>0x1&&'='===_0x42f212['charAt'](_0x2a7dab);)++_0x3e6b61;return Math['ceil'](0x3*_0x42f212['length'])/0x4-_0x3e6b61;};for(var _0x3df88b=new Array(0x40),_0x585e15=new Array(0x7b),_0x306e2b=0x0;_0x306e2b<0x40;)_0x585e15[_0x3df88b[_0x306e2b]=_0x306e2b<0x1a?_0x306e2b+0x41:_0x306e2b<0x34?_0x306e2b+0x47:_0x306e2b<0x3e?_0x306e2b-0x4:_0x306e2b-0x3b|0x2b]=_0x306e2b++;_0x10f3f0['encode']=function(_0x3a0b88,_0x9440e9,_0x292377){for(var t,_0x435e81=null,_0x3df21e=[],_0x29f1f9=0x0,_0x1d81fa=0x0;_0x9440e9<_0x292377;){var _0x28bf6d=_0x3a0b88[_0x9440e9++];switch(_0x1d81fa){case 0x0:_0x3df21e[_0x29f1f9++]=_0x3df88b[_0x28bf6d>>0x2],t=(0x3&_0x28bf6d)<<0x4,_0x1d81fa=0x1;break;case 0x1:_0x3df21e[_0x29f1f9++]=_0x3df88b[t|_0x28bf6d>>0x4],t=(0xf&_0x28bf6d)<<0x2,_0x1d81fa=0x2;break;case 0x2:_0x3df21e[_0x29f1f9++]=_0x3df88b[t|_0x28bf6d>>0x6],_0x3df21e[_0x29f1f9++]=_0x3df88b[0x3f&_0x28bf6d],_0x1d81fa=0x0;}_0x29f1f9>0x1fff&&((_0x435e81||(_0x435e81=[]))['push'](String['fromCharCode']['apply'](String,_0x3df21e)),_0x29f1f9=0x0);}return _0x1d81fa&&(_0x3df21e[_0x29f1f9++]=_0x3df88b[t],_0x3df21e[_0x29f1f9++]=0x3d,0x1===_0x1d81fa&&(_0x3df21e[_0x29f1f9++]=0x3d)),_0x435e81?(_0x29f1f9&&_0x435e81['push'](String['fromCharCode']['apply'](String,_0x3df21e['slice'](0x0,_0x29f1f9))),_0x435e81['join']('')):String['fromCharCode']['apply'](String,_0x3df21e['slice'](0x0,_0x29f1f9));};var _0x2daa5d='invalid\x20encoding';_0x10f3f0['decode']=function(_0x2b6bf2,_0x4506ae,_0x39068b){for(var t,_0x1a6094=_0x39068b,_0x28c90b=0x0,_0x1271fe=0x0;_0x1271fe<_0x2b6bf2['length'];){var _0x43f9da=_0x2b6bf2['charCodeAt'](_0x1271fe++);if(0x3d===_0x43f9da&&_0x28c90b>0x1)break;if(void 0x0===(_0x43f9da=_0x585e15[_0x43f9da]))throw Error(_0x2daa5d);switch(_0x28c90b){case 0x0:t=_0x43f9da,_0x28c90b=0x1;break;case 0x1:_0x4506ae[_0x39068b++]=t<<0x2|(0x30&_0x43f9da)>>0x4,t=_0x43f9da,_0x28c90b=0x2;break;case 0x2:_0x4506ae[_0x39068b++]=(0xf&t)<<0x4|(0x3c&_0x43f9da)>>0x2,t=_0x43f9da,_0x28c90b=0x3;break;case 0x3:_0x4506ae[_0x39068b++]=(0x3&t)<<0x6|_0x43f9da,_0x28c90b=0x0;}}if(0x1===_0x28c90b)throw Error(_0x2daa5d);return _0x39068b-_0x1a6094;},_0x10f3f0['test']=function(_0x32642d){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/['test'](_0x32642d);};}(base64)),base64;}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function _0x42c4b0(){this['_listeners']={};}return hasRequiredEventemitter=0x1,eventemitter=_0x42c4b0,_0x42c4b0['prototype']['on']=function(_0x667b4,_0x2676e2,_0x19f023){return(this['_listeners'][_0x667b4]||(this['_listeners'][_0x667b4]=[]))['push']({'fn':_0x2676e2,'ctx':_0x19f023||this}),this;},_0x42c4b0['prototype']['off']=function(_0x1243f2,_0x2de43d){if(void 0x0===_0x1243f2)this['_listeners']={};else{if(void 0x0===_0x2de43d)this['_listeners'][_0x1243f2]=[];else{for(var _0x333ea4=this['_listeners'][_0x1243f2],_0x5a5cc0=0x0;_0x5a5cc0<_0x333ea4['length'];)_0x333ea4[_0x5a5cc0]['fn']===_0x2de43d?_0x333ea4['splice'](_0x5a5cc0,0x1):++_0x5a5cc0;}}return this;},_0x42c4b0['prototype']['emit']=function(_0x558656){var _0x46f5a1=this['_listeners'][_0x558656];if(_0x46f5a1){for(var _0x4737d4=[],_0x1ccada=0x1;_0x1ccada<arguments['length'];)_0x4737d4['push'](arguments[_0x1ccada++]);for(_0x1ccada=0x0;_0x1ccada<_0x46f5a1['length'];)_0x46f5a1[_0x1ccada]['fn']['apply'](_0x46f5a1[_0x1ccada++]['ctx'],_0x4737d4);}return this;},eventemitter;}function requireFloat(){if(hasRequiredFloat)return float;function _0xf10509(_0x7a5bde){return'undefined'!=typeof Float32Array?(function(){var _0x3d9ab7=new Float32Array([-0x0]),_0x4fcafe=new Uint8Array(_0x3d9ab7['buffer']),_0x58c609=0x80===_0x4fcafe[0x3];function _0x299b17(_0x4555ae,_0x2f9c24,_0x455948){_0x3d9ab7[0x0]=_0x4555ae,_0x2f9c24[_0x455948]=_0x4fcafe[0x0],_0x2f9c24[_0x455948+0x1]=_0x4fcafe[0x1],_0x2f9c24[_0x455948+0x2]=_0x4fcafe[0x2],_0x2f9c24[_0x455948+0x3]=_0x4fcafe[0x3];}function _0x41990f(_0x3b786e,_0x1cfba3,_0x39cadd){_0x3d9ab7[0x0]=_0x3b786e,_0x1cfba3[_0x39cadd]=_0x4fcafe[0x3],_0x1cfba3[_0x39cadd+0x1]=_0x4fcafe[0x2],_0x1cfba3[_0x39cadd+0x2]=_0x4fcafe[0x1],_0x1cfba3[_0x39cadd+0x3]=_0x4fcafe[0x0];}function _0x46e4fe(_0x52791c,_0x55ad9d){return _0x4fcafe[0x0]=_0x52791c[_0x55ad9d],_0x4fcafe[0x1]=_0x52791c[_0x55ad9d+0x1],_0x4fcafe[0x2]=_0x52791c[_0x55ad9d+0x2],_0x4fcafe[0x3]=_0x52791c[_0x55ad9d+0x3],_0x3d9ab7[0x0];}function _0x434018(_0x1fbe21,_0x35c16d){return _0x4fcafe[0x3]=_0x1fbe21[_0x35c16d],_0x4fcafe[0x2]=_0x1fbe21[_0x35c16d+0x1],_0x4fcafe[0x1]=_0x1fbe21[_0x35c16d+0x2],_0x4fcafe[0x0]=_0x1fbe21[_0x35c16d+0x3],_0x3d9ab7[0x0];}_0x7a5bde['writeFloatLE']=_0x58c609?_0x299b17:_0x41990f,_0x7a5bde['writeFloatBE']=_0x58c609?_0x41990f:_0x299b17,_0x7a5bde['readFloatLE']=_0x58c609?_0x46e4fe:_0x434018,_0x7a5bde['readFloatBE']=_0x58c609?_0x434018:_0x46e4fe;}()):(function(){function _0x338e9b(_0x1c182f,_0x90fa75,_0x2f56ec,_0x2a70e5){var _0x34f533=_0x90fa75<0x0?0x1:0x0;if(_0x34f533&&(_0x90fa75=-_0x90fa75),0x0===_0x90fa75)_0x1c182f(0x1/_0x90fa75>0x0?0x0:0x80000000,_0x2f56ec,_0x2a70e5);else{if(isNaN(_0x90fa75))_0x1c182f(0x7fc00000,_0x2f56ec,_0x2a70e5);else{if(_0x90fa75>0xffffff00000000000000000000000000)_0x1c182f((_0x34f533<<0x1f|0x7f800000)>>>0x0,_0x2f56ec,_0x2a70e5);else{if(_0x90fa75<1.1754943508222875e-38)_0x1c182f((_0x34f533<<0x1f|Math['round'](_0x90fa75/1.401298464324817e-45))>>>0x0,_0x2f56ec,_0x2a70e5);else{var _0x4a5dda=Math['floor'](Math['log'](_0x90fa75)/Math['LN2']);_0x1c182f((_0x34f533<<0x1f|_0x4a5dda+0x7f<<0x17|0x7fffff&Math['round'](_0x90fa75*Math['pow'](0x2,-_0x4a5dda)*0x800000))>>>0x0,_0x2f56ec,_0x2a70e5);}}}}}function _0x463ea7(_0x3c2b8c,_0x28d6aa,_0x3c6d03){var _0x526c23=_0x3c2b8c(_0x28d6aa,_0x3c6d03),_0x4c0974=0x2*(_0x526c23>>0x1f)+0x1,_0x553b91=_0x526c23>>>0x17&0xff,_0x1aa9f9=0x7fffff&_0x526c23;return 0xff===_0x553b91?_0x1aa9f9?NaN:_0x4c0974*(0x1/0x0):0x0===_0x553b91?1.401298464324817e-45*_0x4c0974*_0x1aa9f9:_0x4c0974*Math['pow'](0x2,_0x553b91-0x96)*(_0x1aa9f9+0x800000);}_0x7a5bde['writeFloatLE']=_0x338e9b['bind'](null,_0x5736f5),_0x7a5bde['writeFloatBE']=_0x338e9b['bind'](null,_0x239692),_0x7a5bde['readFloatLE']=_0x463ea7['bind'](null,_0x38c235),_0x7a5bde['readFloatBE']=_0x463ea7['bind'](null,_0xc022d0);}()),'undefined'!=typeof Float64Array?(function(){var _0x30b820=new Float64Array([-0x0]),_0x5f38cd=new Uint8Array(_0x30b820['buffer']),_0x54a82c=0x80===_0x5f38cd[0x7];function _0x58f795(_0x3f7bb3,_0x54d924,_0x4c3942){_0x30b820[0x0]=_0x3f7bb3,_0x54d924[_0x4c3942]=_0x5f38cd[0x0],_0x54d924[_0x4c3942+0x1]=_0x5f38cd[0x1],_0x54d924[_0x4c3942+0x2]=_0x5f38cd[0x2],_0x54d924[_0x4c3942+0x3]=_0x5f38cd[0x3],_0x54d924[_0x4c3942+0x4]=_0x5f38cd[0x4],_0x54d924[_0x4c3942+0x5]=_0x5f38cd[0x5],_0x54d924[_0x4c3942+0x6]=_0x5f38cd[0x6],_0x54d924[_0x4c3942+0x7]=_0x5f38cd[0x7];}function _0x52a0dc(_0x381d47,_0x552918,_0x215144){_0x30b820[0x0]=_0x381d47,_0x552918[_0x215144]=_0x5f38cd[0x7],_0x552918[_0x215144+0x1]=_0x5f38cd[0x6],_0x552918[_0x215144+0x2]=_0x5f38cd[0x5],_0x552918[_0x215144+0x3]=_0x5f38cd[0x4],_0x552918[_0x215144+0x4]=_0x5f38cd[0x3],_0x552918[_0x215144+0x5]=_0x5f38cd[0x2],_0x552918[_0x215144+0x6]=_0x5f38cd[0x1],_0x552918[_0x215144+0x7]=_0x5f38cd[0x0];}function _0x2ba0d3(_0xe4c77a,_0x3fbaf2){return _0x5f38cd[0x0]=_0xe4c77a[_0x3fbaf2],_0x5f38cd[0x1]=_0xe4c77a[_0x3fbaf2+0x1],_0x5f38cd[0x2]=_0xe4c77a[_0x3fbaf2+0x2],_0x5f38cd[0x3]=_0xe4c77a[_0x3fbaf2+0x3],_0x5f38cd[0x4]=_0xe4c77a[_0x3fbaf2+0x4],_0x5f38cd[0x5]=_0xe4c77a[_0x3fbaf2+0x5],_0x5f38cd[0x6]=_0xe4c77a[_0x3fbaf2+0x6],_0x5f38cd[0x7]=_0xe4c77a[_0x3fbaf2+0x7],_0x30b820[0x0];}function _0x514a1a(_0x3e4720,_0x2c0cfe){return _0x5f38cd[0x7]=_0x3e4720[_0x2c0cfe],_0x5f38cd[0x6]=_0x3e4720[_0x2c0cfe+0x1],_0x5f38cd[0x5]=_0x3e4720[_0x2c0cfe+0x2],_0x5f38cd[0x4]=_0x3e4720[_0x2c0cfe+0x3],_0x5f38cd[0x3]=_0x3e4720[_0x2c0cfe+0x4],_0x5f38cd[0x2]=_0x3e4720[_0x2c0cfe+0x5],_0x5f38cd[0x1]=_0x3e4720[_0x2c0cfe+0x6],_0x5f38cd[0x0]=_0x3e4720[_0x2c0cfe+0x7],_0x30b820[0x0];}_0x7a5bde['writeDoubleLE']=_0x54a82c?_0x58f795:_0x52a0dc,_0x7a5bde['writeDoubleBE']=_0x54a82c?_0x52a0dc:_0x58f795,_0x7a5bde['readDoubleLE']=_0x54a82c?_0x2ba0d3:_0x514a1a,_0x7a5bde['readDoubleBE']=_0x54a82c?_0x514a1a:_0x2ba0d3;}()):(function(){function _0x3aa769(_0x3a8299,_0x54286e,_0xa4d06d,_0x3e9df8,_0x578887,_0x5e4100){var _0x4fe8a=_0x3e9df8<0x0?0x1:0x0;if(_0x4fe8a&&(_0x3e9df8=-_0x3e9df8),0x0===_0x3e9df8)_0x3a8299(0x0,_0x578887,_0x5e4100+_0x54286e),_0x3a8299(0x1/_0x3e9df8>0x0?0x0:0x80000000,_0x578887,_0x5e4100+_0xa4d06d);else{if(isNaN(_0x3e9df8))_0x3a8299(0x0,_0x578887,_0x5e4100+_0x54286e),_0x3a8299(0x7ff80000,_0x578887,_0x5e4100+_0xa4d06d);else{if(_0x3e9df8>0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)_0x3a8299(0x0,_0x578887,_0x5e4100+_0x54286e),_0x3a8299((_0x4fe8a<<0x1f|0x7ff00000)>>>0x0,_0x578887,_0x5e4100+_0xa4d06d);else{var _0x4197e0;if(_0x3e9df8<2.2250738585072014e-308)_0x3a8299((_0x4197e0=_0x3e9df8/5e-324)>>>0x0,_0x578887,_0x5e4100+_0x54286e),_0x3a8299((_0x4fe8a<<0x1f|_0x4197e0/0x100000000)>>>0x0,_0x578887,_0x5e4100+_0xa4d06d);else{var _0x4e37c2=Math['floor'](Math['log'](_0x3e9df8)/Math['LN2']);0x400===_0x4e37c2&&(_0x4e37c2=0x3ff),_0x3a8299(0x10000000000000*(_0x4197e0=_0x3e9df8*Math['pow'](0x2,-_0x4e37c2))>>>0x0,_0x578887,_0x5e4100+_0x54286e),_0x3a8299((_0x4fe8a<<0x1f|_0x4e37c2+0x3ff<<0x14|0x100000*_0x4197e0&0xfffff)>>>0x0,_0x578887,_0x5e4100+_0xa4d06d);}}}}}function _0x515d0b(_0x10d9f5,_0x399fa7,_0x56be8e,_0x277fe8,_0x11c0bd){var _0x20150b=_0x10d9f5(_0x277fe8,_0x11c0bd+_0x399fa7),_0x4f8204=_0x10d9f5(_0x277fe8,_0x11c0bd+_0x56be8e),_0x595c73=0x2*(_0x4f8204>>0x1f)+0x1,_0x4fbe2a=_0x4f8204>>>0x14&0x7ff,_0x4e944c=0x100000000*(0xfffff&_0x4f8204)+_0x20150b;return 0x7ff===_0x4fbe2a?_0x4e944c?NaN:_0x595c73*(0x1/0x0):0x0===_0x4fbe2a?5e-324*_0x595c73*_0x4e944c:_0x595c73*Math['pow'](0x2,_0x4fbe2a-0x433)*(_0x4e944c+0x10000000000000);}_0x7a5bde['writeDoubleLE']=_0x3aa769['bind'](null,_0x5736f5,0x0,0x4),_0x7a5bde['writeDoubleBE']=_0x3aa769['bind'](null,_0x239692,0x4,0x0),_0x7a5bde['readDoubleLE']=_0x515d0b['bind'](null,_0x38c235,0x0,0x4),_0x7a5bde['readDoubleBE']=_0x515d0b['bind'](null,_0xc022d0,0x4,0x0);}()),_0x7a5bde;}function _0x5736f5(_0x5c01d6,_0x3b93e8,_0x338677){_0x3b93e8[_0x338677]=0xff&_0x5c01d6,_0x3b93e8[_0x338677+0x1]=_0x5c01d6>>>0x8&0xff,_0x3b93e8[_0x338677+0x2]=_0x5c01d6>>>0x10&0xff,_0x3b93e8[_0x338677+0x3]=_0x5c01d6>>>0x18;}function _0x239692(_0x13c018,_0x582bad,_0x49a198){_0x582bad[_0x49a198]=_0x13c018>>>0x18,_0x582bad[_0x49a198+0x1]=_0x13c018>>>0x10&0xff,_0x582bad[_0x49a198+0x2]=_0x13c018>>>0x8&0xff,_0x582bad[_0x49a198+0x3]=0xff&_0x13c018;}function _0x38c235(_0x5235bf,_0x42977f){return(_0x5235bf[_0x42977f]|_0x5235bf[_0x42977f+0x1]<<0x8|_0x5235bf[_0x42977f+0x2]<<0x10|_0x5235bf[_0x42977f+0x3]<<0x18)>>>0x0;}function _0xc022d0(_0x421b9d,_0x1ffe56){return(_0x421b9d[_0x1ffe56]<<0x18|_0x421b9d[_0x1ffe56+0x1]<<0x10|_0x421b9d[_0x1ffe56+0x2]<<0x8|_0x421b9d[_0x1ffe56+0x3])>>>0x0;}return hasRequiredFloat=0x1,float=_0xf10509(_0xf10509);}function requireInquire(){if(hasRequiredInquire)return inquire_1;function _0x1efe1c(_0x105ebd){try{var _0x2ec70d=eval('quire'['replace'](/^/,'re'))(_0x105ebd);if(_0x2ec70d&&(_0x2ec70d['length']||Object['keys'](_0x2ec70d)['length']))return _0x2ec70d;}catch(_0x3dbb75){}return null;}return hasRequiredInquire=0x1,inquire_1=_0x1efe1c,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(_0x11dca8){var _0x26eb3a=_0x11dca8;_0x26eb3a['length']=function(_0x12a980){for(var _0x465442=0x0,_0x398d87=0x0,_0xb1414e=0x0;_0xb1414e<_0x12a980['length'];++_0xb1414e)(_0x398d87=_0x12a980['charCodeAt'](_0xb1414e))<0x80?_0x465442+=0x1:_0x398d87<0x800?_0x465442+=0x2:0xd800==(0xfc00&_0x398d87)&&0xdc00==(0xfc00&_0x12a980['charCodeAt'](_0xb1414e+0x1))?(++_0xb1414e,_0x465442+=0x4):_0x465442+=0x3;return _0x465442;},_0x26eb3a['read']=function(_0x5c2cd1,_0x4ce516,_0x8a5137){if(_0x8a5137-_0x4ce516<0x1)return'';for(var t,_0xe37e02=null,_0x13656f=[],_0x30467f=0x0;_0x4ce516<_0x8a5137;)(t=_0x5c2cd1[_0x4ce516++])<0x80?_0x13656f[_0x30467f++]=t:t>0xbf&&t<0xe0?_0x13656f[_0x30467f++]=(0x1f&t)<<0x6|0x3f&_0x5c2cd1[_0x4ce516++]:t>0xef&&t<0x16d?(t=((0x7&t)<<0x12|(0x3f&_0x5c2cd1[_0x4ce516++])<<0xc|(0x3f&_0x5c2cd1[_0x4ce516++])<<0x6|0x3f&_0x5c2cd1[_0x4ce516++])-0x10000,_0x13656f[_0x30467f++]=0xd800+(t>>0xa),_0x13656f[_0x30467f++]=0xdc00+(0x3ff&t)):_0x13656f[_0x30467f++]=(0xf&t)<<0xc|(0x3f&_0x5c2cd1[_0x4ce516++])<<0x6|0x3f&_0x5c2cd1[_0x4ce516++],_0x30467f>0x1fff&&((_0xe37e02||(_0xe37e02=[]))['push'](String['fromCharCode']['apply'](String,_0x13656f)),_0x30467f=0x0);return _0xe37e02?(_0x30467f&&_0xe37e02['push'](String['fromCharCode']['apply'](String,_0x13656f['slice'](0x0,_0x30467f))),_0xe37e02['join']('')):String['fromCharCode']['apply'](String,_0x13656f['slice'](0x0,_0x30467f));},_0x26eb3a['write']=function(_0x70f59f,_0x5f0e6b,_0x1198f4){for(var _0x37523f,_0x4e782a,_0x13cf45=_0x1198f4,_0x3038f2=0x0;_0x3038f2<_0x70f59f['length'];++_0x3038f2)(_0x37523f=_0x70f59f['charCodeAt'](_0x3038f2))<0x80?_0x5f0e6b[_0x1198f4++]=_0x37523f:_0x37523f<0x800?(_0x5f0e6b[_0x1198f4++]=_0x37523f>>0x6|0xc0,_0x5f0e6b[_0x1198f4++]=0x3f&_0x37523f|0x80):0xd800==(0xfc00&_0x37523f)&&0xdc00==(0xfc00&(_0x4e782a=_0x70f59f['charCodeAt'](_0x3038f2+0x1)))?(_0x37523f=0x10000+((0x3ff&_0x37523f)<<0xa)+(0x3ff&_0x4e782a),++_0x3038f2,_0x5f0e6b[_0x1198f4++]=_0x37523f>>0x12|0xf0,_0x5f0e6b[_0x1198f4++]=_0x37523f>>0xc&0x3f|0x80,_0x5f0e6b[_0x1198f4++]=_0x37523f>>0x6&0x3f|0x80,_0x5f0e6b[_0x1198f4++]=0x3f&_0x37523f|0x80):(_0x5f0e6b[_0x1198f4++]=_0x37523f>>0xc|0xe0,_0x5f0e6b[_0x1198f4++]=_0x37523f>>0x6&0x3f|0x80,_0x5f0e6b[_0x1198f4++]=0x3f&_0x37523f|0x80);return _0x1198f4-_0x13cf45;};}(utf8)),utf8;}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=0x1,pool_1=function(_0x29368f,_0x129de8,_0x2aad6a){var _0x56ae20=_0x2aad6a||0x2000,_0x59c158=_0x56ae20>>>0x1,_0x1f758c=null,_0x1c818b=_0x56ae20;return function(_0x41f383){if(_0x41f383<0x1||_0x41f383>_0x59c158)return _0x29368f(_0x41f383);_0x1c818b+_0x41f383>_0x56ae20&&(_0x1f758c=_0x29368f(_0x56ae20),_0x1c818b=0x0);var _0x217988=_0x129de8['call'](_0x1f758c,_0x1c818b,_0x1c818b+=_0x41f383);return 0x7&_0x1c818b&&(_0x1c818b=0x1+(0x7|_0x1c818b)),_0x217988;};},pool_1;}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=0x1,longbits=_0x3e5e38;var _0x14a4dd=requireMinimal$1();function _0x3e5e38(_0x3f73d5,_0x4bf49c){this['lo']=_0x3f73d5>>>0x0,this['hi']=_0x4bf49c>>>0x0;}var _0x716300=_0x3e5e38['zero']=new _0x3e5e38(0x0,0x0);_0x716300['toNumber']=function(){return 0x0;},_0x716300['zzEncode']=_0x716300['zzDecode']=function(){return this;},_0x716300['length']=function(){return 0x1;};var _0x1f1a1a=_0x3e5e38['zeroHash']='\x00\x00\x00\x00\x00\x00\x00\x00';_0x3e5e38['fromNumber']=function(_0x5ef4fe){if(0x0===_0x5ef4fe)return _0x716300;var _0x9c16c2=_0x5ef4fe<0x0;_0x9c16c2&&(_0x5ef4fe=-_0x5ef4fe);var _0x5365db=_0x5ef4fe>>>0x0,_0x3f5785=(_0x5ef4fe-_0x5365db)/0x100000000>>>0x0;return _0x9c16c2&&(_0x3f5785=~_0x3f5785>>>0x0,_0x5365db=~_0x5365db>>>0x0,++_0x5365db>0xffffffff&&(_0x5365db=0x0,++_0x3f5785>0xffffffff&&(_0x3f5785=0x0))),new _0x3e5e38(_0x5365db,_0x3f5785);},_0x3e5e38['from']=function(_0x35459b){if('number'==typeof _0x35459b)return _0x3e5e38['fromNumber'](_0x35459b);if(_0x14a4dd['isString'](_0x35459b)){if(!_0x14a4dd['Long'])return _0x3e5e38['fromNumber'](parseInt(_0x35459b,0xa));_0x35459b=_0x14a4dd['Long']['fromString'](_0x35459b);}return _0x35459b['low']||_0x35459b['high']?new _0x3e5e38(_0x35459b['low']>>>0x0,_0x35459b['high']>>>0x0):_0x716300;},_0x3e5e38['prototype']['toNumber']=function(_0x329499){if(!_0x329499&&this['hi']>>>0x1f){var _0x1801d0=0x1+~this['lo']>>>0x0,_0x2f761c=~this['hi']>>>0x0;return _0x1801d0||(_0x2f761c=_0x2f761c+0x1>>>0x0),-(_0x1801d0+0x100000000*_0x2f761c);}return this['lo']+0x100000000*this['hi'];},_0x3e5e38['prototype']['toLong']=function(_0x1eab11){return _0x14a4dd['Long']?new _0x14a4dd['Long'](0x0|this['lo'],0x0|this['hi'],Boolean(_0x1eab11)):{'low':0x0|this['lo'],'high':0x0|this['hi'],'unsigned':Boolean(_0x1eab11)};};var _0x4de3df=String['prototype']['charCodeAt'];return _0x3e5e38['fromHash']=function(_0x4d59a1){return _0x4d59a1===_0x1f1a1a?_0x716300:new _0x3e5e38((_0x4de3df['call'](_0x4d59a1,0x0)|_0x4de3df['call'](_0x4d59a1,0x1)<<0x8|_0x4de3df['call'](_0x4d59a1,0x2)<<0x10|_0x4de3df['call'](_0x4d59a1,0x3)<<0x18)>>>0x0,(_0x4de3df['call'](_0x4d59a1,0x4)|_0x4de3df['call'](_0x4d59a1,0x5)<<0x8|_0x4de3df['call'](_0x4d59a1,0x6)<<0x10|_0x4de3df['call'](_0x4d59a1,0x7)<<0x18)>>>0x0);},_0x3e5e38['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);},_0x3e5e38['prototype']['zzEncode']=function(){var _0x177e7a=this['hi']>>0x1f;return this['hi']=((this['hi']<<0x1|this['lo']>>>0x1f)^_0x177e7a)>>>0x0,this['lo']=(this['lo']<<0x1^_0x177e7a)>>>0x0,this;},_0x3e5e38['prototype']['zzDecode']=function(){var _0x2d08e4=-(0x1&this['lo']);return this['lo']=((this['lo']>>>0x1|this['hi']<<0x1f)^_0x2d08e4)>>>0x0,this['hi']=(this['hi']>>>0x1^_0x2d08e4)>>>0x0,this;},_0x3e5e38['prototype']['length']=function(){var _0x3c9828=this['lo'],_0x41e42f=(this['lo']>>>0x1c|this['hi']<<0x4)>>>0x0,_0x9b805e=this['hi']>>>0x18;return 0x0===_0x9b805e?0x0===_0x41e42f?_0x3c9828<0x4000?_0x3c9828<0x80?0x1:0x2:_0x3c9828<0x200000?0x3:0x4:_0x41e42f<0x4000?_0x41e42f<0x80?0x5:0x6:_0x41e42f<0x200000?0x7:0x8:_0x9b805e<0x80?0x9:0xa;},longbits;}function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=0x1,(function(){var _0x132168=minimal$1;function _0x229ca1(_0x1d25c5,_0x546688,_0x14ad0c){for(var _0x516670=Object['keys'](_0x546688),_0x4c2498=0x0;_0x4c2498<_0x516670['length'];++_0x4c2498)void 0x0!==_0x1d25c5[_0x516670[_0x4c2498]]&&_0x14ad0c||(_0x1d25c5[_0x516670[_0x4c2498]]=_0x546688[_0x516670[_0x4c2498]]);return _0x1d25c5;}function _0x35a3f5(_0x18794d){function _0x5523e3(_0x1c3eb4,_0x291534){if(!(this instanceof _0x5523e3))return new _0x5523e3(_0x1c3eb4,_0x291534);Object['defineProperty'](this,'message',{'get':function(){return _0x1c3eb4;}}),Error['captureStackTrace']?Error['captureStackTrace'](this,_0x5523e3):Object['defineProperty'](this,'stack',{'value':new Error()['stack']||''}),_0x291534&&_0x229ca1(this,_0x291534);}return _0x5523e3['prototype']=Object['create'](Error['prototype'],{'constructor':{'value':_0x5523e3,'writable':!0x0,'enumerable':!0x1,'configurable':!0x0},'name':{'get':function(){return _0x18794d;},'set':void 0x0,'enumerable':!0x1,'configurable':!0x0},'toString':{'value':function(){return this['name']+':\x20'+this['message'];},'writable':!0x0,'enumerable':!0x1,'configurable':!0x0}}),_0x5523e3;}_0x132168['asPromise']=requireAspromise(),_0x132168['base64']=requireBase64(),_0x132168['EventEmitter']=requireEventemitter(),_0x132168['float']=requireFloat(),_0x132168['inquire']=requireInquire(),_0x132168['utf8']=requireUtf8(),_0x132168['pool']=requirePool(),_0x132168['LongBits']=requireLongbits(),_0x132168['isNode']=Boolean(void 0x0!==commonjsGlobal&&commonjsGlobal&&commonjsGlobal['process']&&commonjsGlobal['process']['versions']&&commonjsGlobal['process']['versions']['node']),_0x132168['global']=_0x132168['isNode']&&commonjsGlobal||'undefined'!=typeof window&&window||'undefined'!=typeof self&&self||minimal$1,_0x132168['emptyArray']=Object['freeze']?Object['freeze']([]):[],_0x132168['emptyObject']=Object['freeze']?Object['freeze']({}):{},_0x132168['isInteger']=Number['isInteger']||function(_0x4abc43){return'number'==typeof _0x4abc43&&isFinite(_0x4abc43)&&Math['floor'](_0x4abc43)===_0x4abc43;},_0x132168['isString']=function(_0x5f0636){return'string'==typeof _0x5f0636||_0x5f0636 instanceof String;},_0x132168['isObject']=function(_0x285a09){return _0x285a09&&'object'==typeof _0x285a09;},_0x132168['isset']=_0x132168['isSet']=function(_0x5d3516,_0x5efa89){var _0x238d37=_0x5d3516[_0x5efa89];return!(null==_0x238d37||!_0x5d3516['hasOwnProperty'](_0x5efa89))&&('object'!=typeof _0x238d37||(Array['isArray'](_0x238d37)?_0x238d37['length']:Object['keys'](_0x238d37)['length'])>0x0);},_0x132168['Buffer']=(function(){try{var _0x477820=_0x132168['inquire']('buffer')['Buffer'];return _0x477820['prototype']['utf8Write']?_0x477820:null;}catch(_0x5f4429){return null;}}()),_0x132168['_Buffer_from']=null,_0x132168['_Buffer_allocUnsafe']=null,_0x132168['newBuffer']=function(_0x34d736){return'number'==typeof _0x34d736?_0x132168['Buffer']?_0x132168['_Buffer_allocUnsafe'](_0x34d736):new _0x132168['Array'](_0x34d736):_0x132168['Buffer']?_0x132168['_Buffer_from'](_0x34d736):'undefined'==typeof Uint8Array?_0x34d736:new Uint8Array(_0x34d736);},_0x132168['Array']='undefined'!=typeof Uint8Array?Uint8Array:Array,_0x132168['Long']=_0x132168['global']['dcodeIO']&&_0x132168['global']['dcodeIO']['Long']||_0x132168['global']['Long']||_0x132168['inquire']('long'),_0x132168['key2Re']=/^true|false|0|1$/,_0x132168['key32Re']=/^-?(?:0|[1-9][0-9]*)$/,_0x132168['key64Re']=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,_0x132168['longToHash']=function(_0x582231){return _0x582231?_0x132168['LongBits']['from'](_0x582231)['toHash']():_0x132168['LongBits']['zeroHash'];},_0x132168['longFromHash']=function(_0x144291,_0x19c59c){var _0x4ce230=_0x132168['LongBits']['fromHash'](_0x144291);return _0x132168['Long']?_0x132168['Long']['fromBits'](_0x4ce230['lo'],_0x4ce230['hi'],_0x19c59c):_0x4ce230['toNumber'](Boolean(_0x19c59c));},_0x132168['merge']=_0x229ca1,_0x132168['lcFirst']=function(_0x183456){return _0x183456['charAt'](0x0)['toLowerCase']()+_0x183456['substring'](0x1);},_0x132168['newError']=_0x35a3f5,_0x132168['ProtocolError']=_0x35a3f5('ProtocolError'),_0x132168['oneOfGetter']=function(_0x555b0b){for(var _0x5bfeee={},_0x4a8803=0x0;_0x4a8803<_0x555b0b['length'];++_0x4a8803)_0x5bfeee[_0x555b0b[_0x4a8803]]=0x1;return function(){for(var _0x59c6bd=Object['keys'](this),_0x2214d4=_0x59c6bd['length']-0x1;_0x2214d4>-0x1;--_0x2214d4)if(0x1===_0x5bfeee[_0x59c6bd[_0x2214d4]]&&void 0x0!==this[_0x59c6bd[_0x2214d4]]&&null!==this[_0x59c6bd[_0x2214d4]])return _0x59c6bd[_0x2214d4];};},_0x132168['oneOfSetter']=function(_0x1792ab){return function(_0xcbcdb2){for(var _0x186cdf=0x0;_0x186cdf<_0x1792ab['length'];++_0x186cdf)_0x1792ab[_0x186cdf]!==_0xcbcdb2&&delete this[_0x1792ab[_0x186cdf]];};},_0x132168['toJSONOptions']={'longs':String,'enums':String,'bytes':String,'json':!0x0},_0x132168['_configure']=function(){var _0x342b8d=_0x132168['Buffer'];_0x342b8d?(_0x132168['_Buffer_from']=_0x342b8d['from']!==Uint8Array['from']&&_0x342b8d['from']||function(_0x293894,_0x125d8d){return new _0x342b8d(_0x293894,_0x125d8d);},_0x132168['_Buffer_allocUnsafe']=_0x342b8d['allocUnsafe']||function(_0x542138){return new _0x342b8d(_0x542138);}):_0x132168['_Buffer_from']=_0x132168['_Buffer_allocUnsafe']=null;};}())),minimal$1;}function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=0x1,writer=_0x5d9881;var _0x10bffe,_0x5d5a34=requireMinimal$1(),_0x1a9797=_0x5d5a34['LongBits'],_0x7a9a13=_0x5d5a34['base64'],_0xd2f20e=_0x5d5a34['utf8'];function _0x2e2f4b(_0x15c929,_0x507aa4,_0x162685){this['fn']=_0x15c929,this['len']=_0x507aa4,this['next']=void 0x0,this['val']=_0x162685;}function _0x572eff(){}function _0x5b735c(_0x416390){this['head']=_0x416390['head'],this['tail']=_0x416390['tail'],this['len']=_0x416390['len'],this['next']=_0x416390['states'];}function _0x5d9881(){this['len']=0x0,this['head']=new _0x2e2f4b(_0x572eff,0x0,0x0),this['tail']=this['head'],this['states']=null;}var _0x4a0a81=function(){return _0x5d5a34['Buffer']?function(){return(_0x5d9881['create']=function(){return new _0x10bffe();})();}:function(){return new _0x5d9881();};};function _0x3968c5(_0x508ac0,_0x2c12aa,_0x187e7f){_0x2c12aa[_0x187e7f]=0xff&_0x508ac0;}function _0x34bdfc(_0x200a49,_0x7becd){this['len']=_0x200a49,this['next']=void 0x0,this['val']=_0x7becd;}function _0x8c77b8(_0x21290f,_0x35afa5,_0x4111b9){for(;_0x21290f['hi'];)_0x35afa5[_0x4111b9++]=0x7f&_0x21290f['lo']|0x80,_0x21290f['lo']=(_0x21290f['lo']>>>0x7|_0x21290f['hi']<<0x19)>>>0x0,_0x21290f['hi']>>>=0x7;for(;_0x21290f['lo']>0x7f;)_0x35afa5[_0x4111b9++]=0x7f&_0x21290f['lo']|0x80,_0x21290f['lo']=_0x21290f['lo']>>>0x7;_0x35afa5[_0x4111b9++]=_0x21290f['lo'];}function _0x4f41fd(_0x3f6cb8,_0x1e1884,_0x4e865a){_0x1e1884[_0x4e865a]=0xff&_0x3f6cb8,_0x1e1884[_0x4e865a+0x1]=_0x3f6cb8>>>0x8&0xff,_0x1e1884[_0x4e865a+0x2]=_0x3f6cb8>>>0x10&0xff,_0x1e1884[_0x4e865a+0x3]=_0x3f6cb8>>>0x18;}_0x5d9881['create']=_0x4a0a81(),_0x5d9881['alloc']=function(_0x36d01e){return new _0x5d5a34['Array'](_0x36d01e);},_0x5d5a34['Array']!==Array&&(_0x5d9881['alloc']=_0x5d5a34['pool'](_0x5d9881['alloc'],_0x5d5a34['Array']['prototype']['subarray'])),_0x5d9881['prototype']['_push']=function(_0x294b23,_0x4492dc,_0x7bf9d){return this['tail']=this['tail']['next']=new _0x2e2f4b(_0x294b23,_0x4492dc,_0x7bf9d),this['len']+=_0x4492dc,this;},_0x34bdfc['prototype']=Object['create'](_0x2e2f4b['prototype']),_0x34bdfc['prototype']['fn']=function(_0x5147c7,_0x1ef49c,_0x3a3237){for(;_0x5147c7>0x7f;)_0x1ef49c[_0x3a3237++]=0x7f&_0x5147c7|0x80,_0x5147c7>>>=0x7;_0x1ef49c[_0x3a3237]=_0x5147c7;},_0x5d9881['prototype']['uint32']=function(_0xd9e641){return this['len']+=(this['tail']=this['tail']['next']=new _0x34bdfc((_0xd9e641>>>=0x0)<0x80?0x1:_0xd9e641<0x4000?0x2:_0xd9e641<0x200000?0x3:_0xd9e641<0x10000000?0x4:0x5,_0xd9e641))['len'],this;},_0x5d9881['prototype']['int32']=function(_0x2a0c17){return _0x2a0c17<0x0?this['_push'](_0x8c77b8,0xa,_0x1a9797['fromNumber'](_0x2a0c17)):this['uint32'](_0x2a0c17);},_0x5d9881['prototype']['sint32']=function(_0x2c4830){return this['uint32']((_0x2c4830<<0x1^_0x2c4830>>0x1f)>>>0x0);},_0x5d9881['prototype']['uint64']=function(_0x54e444){var _0x5e6f26=_0x1a9797['from'](_0x54e444);return this['_push'](_0x8c77b8,_0x5e6f26['length'](),_0x5e6f26);},_0x5d9881['prototype']['int64']=_0x5d9881['prototype']['uint64'],_0x5d9881['prototype']['sint64']=function(_0x3d2fdd){var _0x961821=_0x1a9797['from'](_0x3d2fdd)['zzEncode']();return this['_push'](_0x8c77b8,_0x961821['length'](),_0x961821);},_0x5d9881['prototype']['bool']=function(_0x8fd754){return this['_push'](_0x3968c5,0x1,_0x8fd754?0x1:0x0);},_0x5d9881['prototype']['fixed32']=function(_0x5c2bd6){return this['_push'](_0x4f41fd,0x4,_0x5c2bd6>>>0x0);},_0x5d9881['prototype']['sfixed32']=_0x5d9881['prototype']['fixed32'],_0x5d9881['prototype']['fixed64']=function(_0x5cf7be){var _0x48aa3d=_0x1a9797['from'](_0x5cf7be);return this['_push'](_0x4f41fd,0x4,_0x48aa3d['lo'])['_push'](_0x4f41fd,0x4,_0x48aa3d['hi']);},_0x5d9881['prototype']['sfixed64']=_0x5d9881['prototype']['fixed64'],_0x5d9881['prototype']['float']=function(_0x529f14){return this['_push'](_0x5d5a34['float']['writeFloatLE'],0x4,_0x529f14);},_0x5d9881['prototype']['double']=function(_0x53a427){return this['_push'](_0x5d5a34['float']['writeDoubleLE'],0x8,_0x53a427);};var _0x53eedf=_0x5d5a34['Array']['prototype']['set']?function(_0x175f58,_0x58f75b,_0x440ea4){_0x58f75b['set'](_0x175f58,_0x440ea4);}:function(_0x423643,_0xc68c0b,_0xa99cad){for(var _0x5cc6aa=0x0;_0x5cc6aa<_0x423643['length'];++_0x5cc6aa)_0xc68c0b[_0xa99cad+_0x5cc6aa]=_0x423643[_0x5cc6aa];};return _0x5d9881['prototype']['bytes']=function(_0x30703e){var _0x5c6032=_0x30703e['length']>>>0x0;if(!_0x5c6032)return this['_push'](_0x3968c5,0x1,0x0);if(_0x5d5a34['isString'](_0x30703e)){var _0x5e8256=_0x5d9881['alloc'](_0x5c6032=_0x7a9a13['length'](_0x30703e));_0x7a9a13['decode'](_0x30703e,_0x5e8256,0x0),_0x30703e=_0x5e8256;}return this['uint32'](_0x5c6032)['_push'](_0x53eedf,_0x5c6032,_0x30703e);},_0x5d9881['prototype']['string']=function(_0x5d7b83){var _0x185f35=_0xd2f20e['length'](_0x5d7b83);return _0x185f35?this['uint32'](_0x185f35)['_push'](_0xd2f20e['write'],_0x185f35,_0x5d7b83):this['_push'](_0x3968c5,0x1,0x0);},_0x5d9881['prototype']['fork']=function(){return this['states']=new _0x5b735c(this),this['head']=this['tail']=new _0x2e2f4b(_0x572eff,0x0,0x0),this['len']=0x0,this;},_0x5d9881['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 _0x2e2f4b(_0x572eff,0x0,0x0),this['len']=0x0),this;},_0x5d9881['prototype']['ldelim']=function(){var _0xc8650f=this['head'],_0x2c4052=this['tail'],_0x5080b2=this['len'];return this['reset']()['uint32'](_0x5080b2),_0x5080b2&&(this['tail']['next']=_0xc8650f['next'],this['tail']=_0x2c4052,this['len']+=_0x5080b2),this;},_0x5d9881['prototype']['finish']=function(){for(var _0x592044=this['head']['next'],_0x27073a=this['constructor']['alloc'](this['len']),_0x1ac27f=0x0;_0x592044;)_0x592044['fn'](_0x592044['val'],_0x27073a,_0x1ac27f),_0x1ac27f+=_0x592044['len'],_0x592044=_0x592044['next'];return _0x27073a;},_0x5d9881['_configure']=function(_0x51c032){_0x10bffe=_0x51c032,_0x5d9881['create']=_0x4a0a81(),_0x10bffe['_configure']();},writer;}function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=0x1,writer_buffer=_0x23122b;var _0x2aff9e=requireWriter();(_0x23122b['prototype']=Object['create'](_0x2aff9e['prototype']))['constructor']=_0x23122b;var _0x45200b=requireMinimal$1();function _0x23122b(){_0x2aff9e['call'](this);}function _0x47ee48(_0xcc77f,_0x4681a9,_0x340e1c){_0xcc77f['length']<0x28?_0x45200b['utf8']['write'](_0xcc77f,_0x4681a9,_0x340e1c):_0x4681a9['utf8Write']?_0x4681a9['utf8Write'](_0xcc77f,_0x340e1c):_0x4681a9['write'](_0xcc77f,_0x340e1c);}return _0x23122b['_configure']=function(){_0x23122b['alloc']=_0x45200b['_Buffer_allocUnsafe'],_0x23122b['writeBytesBuffer']=_0x45200b['Buffer']&&_0x45200b['Buffer']['prototype']instanceof Uint8Array&&'set'===_0x45200b['Buffer']['prototype']['set']['name']?function(_0x3999ee,_0xf4c073,_0x280cfa){_0xf4c073['set'](_0x3999ee,_0x280cfa);}:function(_0xa7c4c8,_0x4f2df1,_0x44cb53){if(_0xa7c4c8['copy'])_0xa7c4c8['copy'](_0x4f2df1,_0x44cb53,0x0,_0xa7c4c8['length']);else{for(var _0x262c52=0x0;_0x262c52<_0xa7c4c8['length'];)_0x4f2df1[_0x44cb53++]=_0xa7c4c8[_0x262c52++];}};},_0x23122b['prototype']['bytes']=function(_0x8c5e37){_0x45200b['isString'](_0x8c5e37)&&(_0x8c5e37=_0x45200b['_Buffer_from'](_0x8c5e37,'base64'));var _0x5ebf50=_0x8c5e37['length']>>>0x0;return this['uint32'](_0x5ebf50),_0x5ebf50&&this['_push'](_0x23122b['writeBytesBuffer'],_0x5ebf50,_0x8c5e37),this;},_0x23122b['prototype']['string']=function(_0xeaf1df){var _0x526a3b=_0x45200b['Buffer']['byteLength'](_0xeaf1df);return this['uint32'](_0x526a3b),_0x526a3b&&this['_push'](_0x47ee48,_0x526a3b,_0xeaf1df),this;},_0x23122b['_configure'](),writer_buffer;}function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=0x1,reader=_0x19e3cc;var _0x48ff07,_0x5d5e7e=requireMinimal$1(),_0x36be72=_0x5d5e7e['LongBits'],_0xef9ba7=_0x5d5e7e['utf8'];function _0x13c54c(_0x12fed4,_0x3ec0e5){return RangeError('index\x20out\x20of\x20range:\x20'+_0x12fed4['pos']+'\x20+\x20'+(_0x3ec0e5||0x1)+'\x20>\x20'+_0x12fed4['len']);}function _0x19e3cc(_0x4b3a4a){this['buf']=_0x4b3a4a,this['pos']=0x0,this['len']=_0x4b3a4a['length'];}var _0x944058='undefined'!=typeof Uint8Array?function(_0x5cc901){if(_0x5cc901 instanceof Uint8Array||Array['isArray'](_0x5cc901))return new _0x19e3cc(_0x5cc901);throw Error('illegal\x20buffer');}:function(_0x1d3d37){if(Array['isArray'](_0x1d3d37))return new _0x19e3cc(_0x1d3d37);throw Error('illegal\x20buffer');},_0x3374a7=function(){return _0x5d5e7e['Buffer']?function(_0x1392bd){return(_0x19e3cc['create']=function(_0x3f1352){return _0x5d5e7e['Buffer']['isBuffer'](_0x3f1352)?new _0x48ff07(_0x3f1352):_0x944058(_0x3f1352);})(_0x1392bd);}:_0x944058;};function _0x5385ad(){var _0x32a78e=new _0x36be72(0x0,0x0),_0x5664fd=0x0;if(!(this['len']-this['pos']>0x4)){for(;_0x5664fd<0x3;++_0x5664fd){if(this['pos']>=this['len'])throw _0x13c54c(this);if(_0x32a78e['lo']=(_0x32a78e['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x5664fd)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x32a78e;}return _0x32a78e['lo']=(_0x32a78e['lo']|(0x7f&this['buf'][this['pos']++])<<0x7*_0x5664fd)>>>0x0,_0x32a78e;}for(;_0x5664fd<0x4;++_0x5664fd)if(_0x32a78e['lo']=(_0x32a78e['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x5664fd)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x32a78e;if(_0x32a78e['lo']=(_0x32a78e['lo']|(0x7f&this['buf'][this['pos']])<<0x1c)>>>0x0,_0x32a78e['hi']=(_0x32a78e['hi']|(0x7f&this['buf'][this['pos']])>>0x4)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x32a78e;if(_0x5664fd=0x0,this['len']-this['pos']>0x4){for(;_0x5664fd<0x5;++_0x5664fd)if(_0x32a78e['hi']=(_0x32a78e['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x5664fd+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x32a78e;}else for(;_0x5664fd<0x5;++_0x5664fd){if(this['pos']>=this['len'])throw _0x13c54c(this);if(_0x32a78e['hi']=(_0x32a78e['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x5664fd+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x32a78e;}throw Error('invalid\x20varint\x20encoding');}function _0x450a9b(_0x32c84b,_0x2b4fbd){return(_0x32c84b[_0x2b4fbd-0x4]|_0x32c84b[_0x2b4fbd-0x3]<<0x8|_0x32c84b[_0x2b4fbd-0x2]<<0x10|_0x32c84b[_0x2b4fbd-0x1]<<0x18)>>>0x0;}function _0x147314(){if(this['pos']+0x8>this['len'])throw _0x13c54c(this,0x8);return new _0x36be72(_0x450a9b(this['buf'],this['pos']+=0x4),_0x450a9b(this['buf'],this['pos']+=0x4));}return _0x19e3cc['create']=_0x3374a7(),_0x19e3cc['prototype']['_slice']=_0x5d5e7e['Array']['prototype']['subarray']||_0x5d5e7e['Array']['prototype']['slice'],_0x19e3cc['prototype']['uint32']=(function(){var _0x13e75e=0xffffffff;return function(){if(_0x13e75e=(0x7f&this['buf'][this['pos']])>>>0x0,this['buf'][this['pos']++]<0x80)return _0x13e75e;if(_0x13e75e=(_0x13e75e|(0x7f&this['buf'][this['pos']])<<0x7)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x13e75e;if(_0x13e75e=(_0x13e75e|(0x7f&this['buf'][this['pos']])<<0xe)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x13e75e;if(_0x13e75e=(_0x13e75e|(0x7f&this['buf'][this['pos']])<<0x15)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x13e75e;if(_0x13e75e=(_0x13e75e|(0xf&this['buf'][this['pos']])<<0x1c)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x13e75e;if((this['pos']+=0x5)>this['len'])throw this['pos']=this['len'],_0x13c54c(this,0xa);return _0x13e75e;};}()),_0x19e3cc['prototype']['int32']=function(){return 0x0|this['uint32']();},_0x19e3cc['prototype']['sint32']=function(){var _0x286eb5=this['uint32']();return _0x286eb5>>>0x1^-(0x1&_0x286eb5);},_0x19e3cc['prototype']['bool']=function(){return 0x0!==this['uint32']();},_0x19e3cc['prototype']['fixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x13c54c(this,0x4);return _0x450a9b(this['buf'],this['pos']+=0x4);},_0x19e3cc['prototype']['sfixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x13c54c(this,0x4);return 0x0|_0x450a9b(this['buf'],this['pos']+=0x4);},_0x19e3cc['prototype']['float']=function(){if(this['pos']+0x4>this['len'])throw _0x13c54c(this,0x4);var _0x7c43a3=_0x5d5e7e['float']['readFloatLE'](this['buf'],this['pos']);return this['pos']+=0x4,_0x7c43a3;},_0x19e3cc['prototype']['double']=function(){if(this['pos']+0x8>this['len'])throw _0x13c54c(this,0x4);var _0x4507ef=_0x5d5e7e['float']['readDoubleLE'](this['buf'],this['pos']);return this['pos']+=0x8,_0x4507ef;},_0x19e3cc['prototype']['bytes']=function(){var _0x183bf5=this['uint32'](),_0x29d846=this['pos'],_0x1adfce=this['pos']+_0x183bf5;if(_0x1adfce>this['len'])throw _0x13c54c(this,_0x183bf5);if(this['pos']+=_0x183bf5,Array['isArray'](this['buf']))return this['buf']['slice'](_0x29d846,_0x1adfce);if(_0x29d846===_0x1adfce){var _0x61ce02=_0x5d5e7e['Buffer'];return _0x61ce02?_0x61ce02['alloc'](0x0):new this['buf']['constructor'](0x0);}return this['_slice']['call'](this['buf'],_0x29d846,_0x1adfce);},_0x19e3cc['prototype']['string']=function(){var _0x208820=this['bytes']();return _0xef9ba7['read'](_0x208820,0x0,_0x208820['length']);},_0x19e3cc['prototype']['skip']=function(_0x3833a4){if('number'==typeof _0x3833a4){if(this['pos']+_0x3833a4>this['len'])throw _0x13c54c(this,_0x3833a4);this['pos']+=_0x3833a4;}else do{if(this['pos']>=this['len'])throw _0x13c54c(this);}while(0x80&this['buf'][this['pos']++]);return this;},_0x19e3cc['prototype']['skipType']=function(_0x2a7327){switch(_0x2a7327){case 0x0:this['skip']();break;case 0x1:this['skip'](0x8);break;case 0x2:this['skip'](this['uint32']());break;case 0x3:for(;0x4!=(_0x2a7327=0x7&this['uint32']());)this['skipType'](_0x2a7327);break;case 0x5:this['skip'](0x4);break;default:throw Error('invalid\x20wire\x20type\x20'+_0x2a7327+'\x20at\x20offset\x20'+this['pos']);}return this;},_0x19e3cc['_configure']=function(_0x4f8a4d){_0x48ff07=_0x4f8a4d,_0x19e3cc['create']=_0x3374a7(),_0x48ff07['_configure']();var _0xdc4ed2=_0x5d5e7e['Long']?'toLong':'toNumber';_0x5d5e7e['merge'](_0x19e3cc['prototype'],{'int64':function(){return _0x5385ad['call'](this)[_0xdc4ed2](!0x1);},'uint64':function(){return _0x5385ad['call'](this)[_0xdc4ed2](!0x0);},'sint64':function(){return _0x5385ad['call'](this)['zzDecode']()[_0xdc4ed2](!0x1);},'fixed64':function(){return _0x147314['call'](this)[_0xdc4ed2](!0x0);},'sfixed64':function(){return _0x147314['call'](this)[_0xdc4ed2](!0x1);}});},reader;}function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=0x1,reader_buffer=_0x3647ff;var _0xe3f892=requireReader();(_0x3647ff['prototype']=Object['create'](_0xe3f892['prototype']))['constructor']=_0x3647ff;var _0x30dd19=requireMinimal$1();function _0x3647ff(_0xc0bca5){_0xe3f892['call'](this,_0xc0bca5);}return _0x3647ff['_configure']=function(){_0x30dd19['Buffer']&&(_0x3647ff['prototype']['_slice']=_0x30dd19['Buffer']['prototype']['slice']);},_0x3647ff['prototype']['string']=function(){var _0x2f8f30=this['uint32']();return this['buf']['utf8Slice']?this['buf']['utf8Slice'](this['pos'],this['pos']=Math['min'](this['pos']+_0x2f8f30,this['len'])):this['buf']['toString']('utf-8',this['pos'],this['pos']=Math['min'](this['pos']+_0x2f8f30,this['len']));},_0x3647ff['_configure'](),reader_buffer;}var rpc={},service,hasRequiredService,hasRequiredRpc,roots,hasRequiredRoots,hasRequiredIndexMinimal,minimal,hasRequiredMinimal;function requireService(){if(hasRequiredService)return service;hasRequiredService=0x1,service=_0x48e6a4;var _0xedcdf3=requireMinimal$1();function _0x48e6a4(_0x202db9,_0x4b96d4,_0x499f71){if('function'!=typeof _0x202db9)throw TypeError('rpcImpl\x20must\x20be\x20a\x20function');_0xedcdf3['EventEmitter']['call'](this),this['rpcImpl']=_0x202db9,this['requestDelimited']=Boolean(_0x4b96d4),this['responseDelimited']=Boolean(_0x499f71);}return(_0x48e6a4['prototype']=Object['create'](_0xedcdf3['EventEmitter']['prototype']))['constructor']=_0x48e6a4,_0x48e6a4['prototype']['rpcCall']=function _0x214840(_0x2a690e,_0xcc1b5,_0x4cd5d6,_0x1b8401,_0x13597c){if(!_0x1b8401)throw TypeError('request\x20must\x20be\x20specified');var _0x220e7b=this;if(!_0x13597c)return _0xedcdf3['asPromise'](_0x214840,_0x220e7b,_0x2a690e,_0xcc1b5,_0x4cd5d6,_0x1b8401);if(_0x220e7b['rpcImpl'])try{return _0x220e7b['rpcImpl'](_0x2a690e,_0xcc1b5[_0x220e7b['requestDelimited']?'encodeDelimited':'encode'](_0x1b8401)['finish'](),function(_0x2943f2,_0x536cc6){if(_0x2943f2)return _0x220e7b['emit']('error',_0x2943f2,_0x2a690e),_0x13597c(_0x2943f2);if(null!==_0x536cc6){if(!(_0x536cc6 instanceof _0x4cd5d6))try{_0x536cc6=_0x4cd5d6[_0x220e7b['responseDelimited']?'decodeDelimited':'decode'](_0x536cc6);}catch(_0xe0e588){return _0x220e7b['emit']('error',_0xe0e588,_0x2a690e),_0x13597c(_0xe0e588);}return _0x220e7b['emit']('data',_0x536cc6,_0x2a690e),_0x13597c(null,_0x536cc6);}_0x220e7b['end'](!0x0);});}catch(_0x24cf22){return _0x220e7b['emit']('error',_0x24cf22,_0x2a690e),void setTimeout(function(){_0x13597c(_0x24cf22);},0x0);}else setTimeout(function(){_0x13597c(Error('already\x20ended'));},0x0);},_0x48e6a4['prototype']['end']=function(_0x4dca88){return this['rpcImpl']&&(_0x4dca88||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 _0xf1a8cc=indexMinimal;function _0x5412fa(){_0xf1a8cc['util']['_configure'](),_0xf1a8cc['Writer']['_configure'](_0xf1a8cc['BufferWriter']),_0xf1a8cc['Reader']['_configure'](_0xf1a8cc['BufferReader']);}_0xf1a8cc['build']='minimal',_0xf1a8cc['Writer']=requireWriter(),_0xf1a8cc['BufferWriter']=requireWriter_buffer(),_0xf1a8cc['Reader']=requireReader(),_0xf1a8cc['BufferReader']=requireReader_buffer(),_0xf1a8cc['util']=requireMinimal$1(),_0xf1a8cc['rpc']=requireRpc(),_0xf1a8cc['roots']=requireRoots(),_0xf1a8cc['configure']=_0x5412fa,_0x5412fa();}())),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'](_0x58bb28=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_0x58bb28]]=_0x58bb28;});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=_0x32ac6e=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x32ac6e):_0x32ac6e&&_0x32ac6e['buffer']instanceof ArrayBuffer,encodePacket=({type:_0x2158a8,data:_0x207fdf},_0x28c4fa,_0x20cd69)=>withNativeBlob$1&&_0x207fdf instanceof Blob?_0x28c4fa?_0x20cd69(_0x207fdf):encodeBlobAsBase64(_0x207fdf,_0x20cd69):withNativeArrayBuffer$2&&(_0x207fdf instanceof ArrayBuffer||isView$1(_0x207fdf))?_0x28c4fa?_0x20cd69(_0x207fdf):encodeBlobAsBase64(new Blob([_0x207fdf]),_0x20cd69):_0x20cd69(PACKET_TYPES[_0x2158a8]+(_0x207fdf||'')),encodeBlobAsBase64=(_0x5a1862,_0x5b42cc)=>{const _0x36fb67=new FileReader();return _0x36fb67['onload']=function(){const _0xbae595=_0x36fb67['result']['split'](',')[0x1];_0x5b42cc('b'+(_0xbae595||''));},_0x36fb67['readAsDataURL'](_0x5a1862);};function toArray(_0x15ce21){return _0x15ce21 instanceof Uint8Array?_0x15ce21:_0x15ce21 instanceof ArrayBuffer?new Uint8Array(_0x15ce21):new Uint8Array(_0x15ce21['buffer'],_0x15ce21['byteOffset'],_0x15ce21['byteLength']);}let TEXT_ENCODER;function encodePacketToBinary(_0x55e823,_0x796dd7){return withNativeBlob$1&&_0x55e823['data']instanceof Blob?_0x55e823['data']['arrayBuffer']()['then'](toArray)['then'](_0x796dd7):withNativeArrayBuffer$2&&(_0x55e823['data']instanceof ArrayBuffer||isView$1(_0x55e823['data']))?_0x796dd7(toArray(_0x55e823['data'])):void encodePacket(_0x55e823,!0x1,_0x2e7440=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder()),_0x796dd7(TEXT_ENCODER['encode'](_0x2e7440));});}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=_0x1e48b7=>{let _0x5bd8e5,_0x3eddc6,_0x3c8908,_0x3abf28,_0x4f117c,_0x4e3879=0.75*_0x1e48b7['length'],_0x144b40=_0x1e48b7['length'],_0xcb9f78=0x0;'='===_0x1e48b7[_0x1e48b7['length']-0x1]&&(_0x4e3879--,'='===_0x1e48b7[_0x1e48b7['length']-0x2]&&_0x4e3879--);const _0x21cf5e=new ArrayBuffer(_0x4e3879),_0x51388b=new Uint8Array(_0x21cf5e);for(_0x5bd8e5=0x0;_0x5bd8e5<_0x144b40;_0x5bd8e5+=0x4)_0x3eddc6=lookup$1[_0x1e48b7['charCodeAt'](_0x5bd8e5)],_0x3c8908=lookup$1[_0x1e48b7['charCodeAt'](_0x5bd8e5+0x1)],_0x3abf28=lookup$1[_0x1e48b7['charCodeAt'](_0x5bd8e5+0x2)],_0x4f117c=lookup$1[_0x1e48b7['charCodeAt'](_0x5bd8e5+0x3)],_0x51388b[_0xcb9f78++]=_0x3eddc6<<0x2|_0x3c8908>>0x4,_0x51388b[_0xcb9f78++]=(0xf&_0x3c8908)<<0x4|_0x3abf28>>0x2,_0x51388b[_0xcb9f78++]=(0x3&_0x3abf28)<<0x6|0x3f&_0x4f117c;return _0x21cf5e;},withNativeArrayBuffer$1='function'==typeof ArrayBuffer,decodePacket=(_0x4e7211,_0x4e9728)=>{if('string'!=typeof _0x4e7211)return{'type':'message','data':mapBinary(_0x4e7211,_0x4e9728)};const _0x3ed74e=_0x4e7211['charAt'](0x0);if('b'===_0x3ed74e)return{'type':'message','data':decodeBase64Packet(_0x4e7211['substring'](0x1),_0x4e9728)};return PACKET_TYPES_REVERSE[_0x3ed74e]?_0x4e7211['length']>0x1?{'type':PACKET_TYPES_REVERSE[_0x3ed74e],'data':_0x4e7211['substring'](0x1)}:{'type':PACKET_TYPES_REVERSE[_0x3ed74e]}:ERROR_PACKET;},decodeBase64Packet=(_0x4f509f,_0x8f0492)=>{if(withNativeArrayBuffer$1){const _0x2a92c6=decode$1(_0x4f509f);return mapBinary(_0x2a92c6,_0x8f0492);}return{'base64':!0x0,'data':_0x4f509f};},mapBinary=(_0x5a9947,_0x1c61be)=>'blob'===_0x1c61be?_0x5a9947 instanceof Blob?_0x5a9947:new Blob([_0x5a9947]):_0x5a9947 instanceof ArrayBuffer?_0x5a9947:_0x5a9947['buffer'],SEPARATOR$2=String['fromCharCode'](0x1e),encodePayload=(_0x15f7f0,_0x4a2103)=>{const _0x64cb37=_0x15f7f0['length'],_0x54fc18=new Array(_0x64cb37);let _0x3e439e=0x0;_0x15f7f0['forEach']((_0xb3362a,_0x54b742)=>{encodePacket(_0xb3362a,!0x1,_0x522615=>{_0x54fc18[_0x54b742]=_0x522615,++_0x3e439e===_0x64cb37&&_0x4a2103(_0x54fc18['join'](SEPARATOR$2));});});},decodePayload=(_0x3e4942,_0x227e0b)=>{const _0x30a20a=_0x3e4942['split'](SEPARATOR$2),_0x7e5ca2=[];for(let _0x4931be=0x0;_0x4931be<_0x30a20a['length'];_0x4931be++){const _0x3fe7f4=decodePacket(_0x30a20a[_0x4931be],_0x227e0b);if(_0x7e5ca2['push'](_0x3fe7f4),'error'===_0x3fe7f4['type'])break;}return _0x7e5ca2;};function createPacketEncoderStream(){return new TransformStream({'transform'(_0x2e7127,_0x1d5484){encodePacketToBinary(_0x2e7127,_0x52c640=>{const _0x25c91a=_0x52c640['length'];let _0x2062db;if(_0x25c91a<0x7e)_0x2062db=new Uint8Array(0x1),new DataView(_0x2062db['buffer'])['setUint8'](0x0,_0x25c91a);else{if(_0x25c91a<0x10000){_0x2062db=new Uint8Array(0x3);const _0x4cd82d=new DataView(_0x2062db['buffer']);_0x4cd82d['setUint8'](0x0,0x7e),_0x4cd82d['setUint16'](0x1,_0x25c91a);}else{_0x2062db=new Uint8Array(0x9);const _0x17da83=new DataView(_0x2062db['buffer']);_0x17da83['setUint8'](0x0,0x7f),_0x17da83['setBigUint64'](0x1,BigInt(_0x25c91a));}}_0x2e7127['data']&&'string'!=typeof _0x2e7127['data']&&(_0x2062db[0x0]|=0x80),_0x1d5484['enqueue'](_0x2062db),_0x1d5484['enqueue'](_0x52c640);});}});}let TEXT_DECODER;function totalLength(_0x5efa8c){return _0x5efa8c['reduce']((_0x3d300c,_0x1caaa1)=>_0x3d300c+_0x1caaa1['length'],0x0);}function concatChunks(_0x400241,_0x548b30){if(_0x400241[0x0]['length']===_0x548b30)return _0x400241['shift']();const _0x21abdf=new Uint8Array(_0x548b30);let _0x503e44=0x0;for(let _0x2baed4=0x0;_0x2baed4<_0x548b30;_0x2baed4++)_0x21abdf[_0x2baed4]=_0x400241[0x0][_0x503e44++],_0x503e44===_0x400241[0x0]['length']&&(_0x400241['shift'](),_0x503e44=0x0);return _0x400241['length']&&_0x503e44<_0x400241[0x0]['length']&&(_0x400241[0x0]=_0x400241[0x0]['slice'](_0x503e44)),_0x21abdf;}function createPacketDecoderStream(_0x237a2a,_0x4d2a3c){TEXT_DECODER||(TEXT_DECODER=new TextDecoder());const _0x95039b=[];let _0x2f8a69=0x0,_0x3c6f34=-0x1,_0x18cde3=!0x1;return new TransformStream({'transform'(_0x358644,_0x39da77){for(_0x95039b['push'](_0x358644);;){if(0x0===_0x2f8a69){if(totalLength(_0x95039b)<0x1)break;const _0x4c67f6=concatChunks(_0x95039b,0x1);_0x18cde3=!(0x80&~_0x4c67f6[0x0]),_0x3c6f34=0x7f&_0x4c67f6[0x0],_0x2f8a69=_0x3c6f34<0x7e?0x3:0x7e===_0x3c6f34?0x1:0x2;}else{if(0x1===_0x2f8a69){if(totalLength(_0x95039b)<0x2)break;const _0x310aef=concatChunks(_0x95039b,0x2);_0x3c6f34=new DataView(_0x310aef['buffer'],_0x310aef['byteOffset'],_0x310aef['length'])['getUint16'](0x0),_0x2f8a69=0x3;}else{if(0x2===_0x2f8a69){if(totalLength(_0x95039b)<0x8)break;const _0x29f65e=concatChunks(_0x95039b,0x8),_0x6bef99=new DataView(_0x29f65e['buffer'],_0x29f65e['byteOffset'],_0x29f65e['length']),_0x1882ed=_0x6bef99['getUint32'](0x0);if(_0x1882ed>Math['pow'](0x2,0x15)-0x1){_0x39da77['enqueue'](ERROR_PACKET);break;}_0x3c6f34=_0x1882ed*Math['pow'](0x2,0x20)+_0x6bef99['getUint32'](0x4),_0x2f8a69=0x3;}else{if(totalLength(_0x95039b)<_0x3c6f34)break;const _0x337331=concatChunks(_0x95039b,_0x3c6f34);_0x39da77['enqueue'](decodePacket(_0x18cde3?_0x337331:TEXT_DECODER['decode'](_0x337331),_0x4d2a3c)),_0x2f8a69=0x0;}}}if(0x0===_0x3c6f34||_0x3c6f34>_0x237a2a){_0x39da77['enqueue'](ERROR_PACKET);break;}}}});}const protocol$1=0x4;function Emitter(_0x2f64d8){if(_0x2f64d8)return mixin(_0x2f64d8);}function mixin(_0x42e2ec){for(var _0x214c62 in Emitter['prototype'])_0x42e2ec[_0x214c62]=Emitter['prototype'][_0x214c62];return _0x42e2ec;}Emitter['prototype']['on']=Emitter['prototype']['addEventListener']=function(_0x40cbad,_0x42ea7c){return this['_callbacks']=this['_callbacks']||{},(this['_callbacks']['$'+_0x40cbad]=this['_callbacks']['$'+_0x40cbad]||[])['push'](_0x42ea7c),this;},Emitter['prototype']['once']=function(_0x20840d,_0x18a6fd){function _0x138cf5(){this['off'](_0x20840d,_0x138cf5),_0x18a6fd['apply'](this,arguments);}return _0x138cf5['fn']=_0x18a6fd,this['on'](_0x20840d,_0x138cf5),this;},Emitter['prototype']['off']=Emitter['prototype']['removeListener']=Emitter['prototype']['removeAllListeners']=Emitter['prototype']['removeEventListener']=function(_0x54e97a,_0x2d3bf4){if(this['_callbacks']=this['_callbacks']||{},0x0==arguments['length'])return this['_callbacks']={},this;var _0x11c3e6,_0x182f14=this['_callbacks']['$'+_0x54e97a];if(!_0x182f14)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+_0x54e97a],this;for(var _0x4a256c=0x0;_0x4a256c<_0x182f14['length'];_0x4a256c++)if((_0x11c3e6=_0x182f14[_0x4a256c])===_0x2d3bf4||_0x11c3e6['fn']===_0x2d3bf4){_0x182f14['splice'](_0x4a256c,0x1);break;}return 0x0===_0x182f14['length']&&delete this['_callbacks']['$'+_0x54e97a],this;},Emitter['prototype']['emit']=function(_0x457916){this['_callbacks']=this['_callbacks']||{};for(var _0xb374bf=new Array(arguments['length']-0x1),_0x685337=this['_callbacks']['$'+_0x457916],_0x2dc878=0x1;_0x2dc878<arguments['length'];_0x2dc878++)_0xb374bf[_0x2dc878-0x1]=arguments[_0x2dc878];if(_0x685337){_0x2dc878=0x0;for(var _0x35f67a=(_0x685337=_0x685337['slice'](0x0))['length'];_0x2dc878<_0x35f67a;++_0x2dc878)_0x685337[_0x2dc878]['apply'](this,_0xb374bf);}return this;},Emitter['prototype']['emitReserved']=Emitter['prototype']['emit'],Emitter['prototype']['listeners']=function(_0x53b4d0){return this['_callbacks']=this['_callbacks']||{},this['_callbacks']['$'+_0x53b4d0]||[];},Emitter['prototype']['hasListeners']=function(_0xe4571){return!!this['listeners'](_0xe4571)['length'];};const globalThisShim='undefined'!=typeof self?self:'undefined'!=typeof window?window:Function('return\x20this')();function pick$1(_0x410bca,..._0x594003){return _0x594003['reduce']((_0x14f7ad,_0x582fe9)=>(_0x410bca['hasOwnProperty'](_0x582fe9)&&(_0x14f7ad[_0x582fe9]=_0x410bca[_0x582fe9]),_0x14f7ad),{});}const NATIVE_SET_TIMEOUT=globalThisShim['setTimeout'],NATIVE_CLEAR_TIMEOUT=globalThisShim['clearTimeout'];function installTimerFunctions(_0x2ee7cc,_0x2388c2){_0x2388c2['useNativeTimers']?(_0x2ee7cc['setTimeoutFn']=NATIVE_SET_TIMEOUT['bind'](globalThisShim),_0x2ee7cc['clearTimeoutFn']=NATIVE_CLEAR_TIMEOUT['bind'](globalThisShim)):(_0x2ee7cc['setTimeoutFn']=globalThisShim['setTimeout']['bind'](globalThisShim),_0x2ee7cc['clearTimeoutFn']=globalThisShim['clearTimeout']['bind'](globalThisShim));}const BASE64_OVERHEAD=1.33;function byteLength(_0x53c28a){return'string'==typeof _0x53c28a?utf8Length(_0x53c28a):Math['ceil']((_0x53c28a['byteLength']||_0x53c28a['size'])*BASE64_OVERHEAD);}function utf8Length(_0x154bcf){let _0x46aada=0x0,_0x20ad78=0x0;for(let _0xfaeb34=0x0,_0x2a8598=_0x154bcf['length'];_0xfaeb34<_0x2a8598;_0xfaeb34++)_0x46aada=_0x154bcf['charCodeAt'](_0xfaeb34),_0x46aada<0x80?_0x20ad78+=0x1:_0x46aada<0x800?_0x20ad78+=0x2:_0x46aada<0xd800||_0x46aada>=0xe000?_0x20ad78+=0x3:(_0xfaeb34++,_0x20ad78+=0x4);return _0x20ad78;}function encode$1(_0x3fc68b){let _0xa1f7='';for(let _0x3d970d in _0x3fc68b)_0x3fc68b['hasOwnProperty'](_0x3d970d)&&(_0xa1f7['length']&&(_0xa1f7+='&'),_0xa1f7+=encodeURIComponent(_0x3d970d)+'='+encodeURIComponent(_0x3fc68b[_0x3d970d]));return _0xa1f7;}function decode(_0x1256e1){let _0x213f9b={},_0x32c916=_0x1256e1['split']('&');for(let _0x13fc05=0x0,_0x3538ee=_0x32c916['length'];_0x13fc05<_0x3538ee;_0x13fc05++){let _0x56f781=_0x32c916[_0x13fc05]['split']('=');_0x213f9b[decodeURIComponent(_0x56f781[0x0])]=decodeURIComponent(_0x56f781[0x1]);}return _0x213f9b;}class TransportError extends Error{constructor(_0x5de540,_0x1aeb86,_0x37eb90){super(_0x5de540),this['description']=_0x1aeb86,this['context']=_0x37eb90,this['type']='TransportError';}}class Transport extends Emitter{constructor(_0x23a9ab){super(),this['writable']=!0x1,installTimerFunctions(this,_0x23a9ab),this['opts']=_0x23a9ab,this['query']=_0x23a9ab['query'],this['socket']=_0x23a9ab['socket'];}['onError'](_0x555f1e,_0x373e12,_0x2930d2){return super['emitReserved']('error',new TransportError(_0x555f1e,_0x373e12,_0x2930d2)),this;}['open'](){return this['readyState']='opening',this['doOpen'](),this;}['close'](){return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['doClose'](),this['onClose']()),this;}['send'](_0x12ac30){'open'===this['readyState']&&this['write'](_0x12ac30);}['onOpen'](){this['readyState']='open',this['writable']=!0x0,super['emitReserved']('open');}['onData'](_0x315b89){const _0x418322=decodePacket(_0x315b89,this['socket']['binaryType']);this['onPacket'](_0x418322);}['onPacket'](_0x3b22a7){super['emitReserved']('packet',_0x3b22a7);}['onClose'](_0x358dbd){this['readyState']='closed',super['emitReserved']('close',_0x358dbd);}['pause'](_0x1ba874){}['createUri'](_0x13c3dc,_0x299797={}){return _0x13c3dc+'://'+this['_hostname']()+this['_port']()+this['opts']['path']+this['_query'](_0x299797);}['_hostname'](){const _0x316742=this['opts']['hostname'];return-0x1===_0x316742['indexOf'](':')?_0x316742:'['+_0x316742+']';}['_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'](_0x236831){const _0x2be542=encode$1(_0x236831);return _0x2be542['length']?'?'+_0x2be542:'';}}const alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'['split'](''),length=0x40,map={};let seed=0x0,i$3=0x0,prev;function encode(_0x60c55d){let _0xd88f3e='';do{_0xd88f3e=alphabet[_0x60c55d%length]+_0xd88f3e,_0x60c55d=Math['floor'](_0x60c55d/length);}while(_0x60c55d>0x0);return _0xd88f3e;}function yeast(){const _0xb3e17d=encode(+new Date());return _0xb3e17d!==prev?(seed=0x0,prev=_0xb3e17d):_0xb3e17d+'.'+encode(seed++);}for(;i$3<length;i$3++)map[alphabet[i$3]]=i$3;let value=!0x1;try{value='undefined'!=typeof XMLHttpRequest&&'withCredentials'in new XMLHttpRequest();}catch(_0x1fef80){}const hasCORS=value;function XHR(_0x5049de){const _0x5e3779=_0x5049de['xdomain'];try{if('undefined'!=typeof XMLHttpRequest&&(!_0x5e3779||hasCORS))return new XMLHttpRequest();}catch(_0x423f40){}if(!_0x5e3779)try{return new globalThisShim[(['Active']['concat']('Object')['join']('X'))]('Microsoft.XMLHTTP');}catch(_0x492324){}}function createCookieJar(){}function empty(){}const hasXHR2=null!=new XHR({'xdomain':!0x1})['responseType'];class Polling extends Transport{constructor(_0x4bcfb5){if(super(_0x4bcfb5),this['polling']=!0x1,'undefined'!=typeof location){const _0x24a4b8='https:'===location['protocol'];let _0x167223=location['port'];_0x167223||(_0x167223=_0x24a4b8?'443':'80'),this['xd']='undefined'!=typeof location&&_0x4bcfb5['hostname']!==location['hostname']||_0x167223!==_0x4bcfb5['port'];}const _0x78ca5e=_0x4bcfb5&&_0x4bcfb5['forceBase64'];this['supportsBinary']=hasXHR2&&!_0x78ca5e,this['opts']['withCredentials']&&(this['cookieJar']=createCookieJar());}get['name'](){return'polling';}['doOpen'](){this['poll']();}['pause'](_0x21464d){this['readyState']='pausing';const _0x2266ea=()=>{this['readyState']='paused',_0x21464d();};if(this['polling']||!this['writable']){let _0x528224=0x0;this['polling']&&(_0x528224++,this['once']('pollComplete',function(){--_0x528224||_0x2266ea();})),this['writable']||(_0x528224++,this['once']('drain',function(){--_0x528224||_0x2266ea();}));}else _0x2266ea();}['poll'](){this['polling']=!0x0,this['doPoll'](),this['emitReserved']('poll');}['onData'](_0x5b6b3a){decodePayload(_0x5b6b3a,this['socket']['binaryType'])['forEach'](_0x28482b=>{if('opening'===this['readyState']&&'open'===_0x28482b['type']&&this['onOpen'](),'close'===_0x28482b['type'])return this['onClose']({'description':'transport\x20closed\x20by\x20the\x20server'}),!0x1;this['onPacket'](_0x28482b);}),'closed'!==this['readyState']&&(this['polling']=!0x1,this['emitReserved']('pollComplete'),'open'===this['readyState']&&this['poll']());}['doClose'](){const _0x2a70cd=()=>{this['write']([{'type':'close'}]);};'open'===this['readyState']?_0x2a70cd():this['once']('open',_0x2a70cd);}['write'](_0x46ac7b){this['writable']=!0x1,encodePayload(_0x46ac7b,_0x1b0818=>{this['doWrite'](_0x1b0818,()=>{this['writable']=!0x0,this['emitReserved']('drain');});});}['uri'](){const _0x443a6a=this['opts']['secure']?'https':'http',_0x1fd066=this['query']||{};return!0x1!==this['opts']['timestampRequests']&&(_0x1fd066[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||_0x1fd066['sid']||(_0x1fd066['b64']=0x1),this['createUri'](_0x443a6a,_0x1fd066);}['request'](_0x387392={}){return Object['assign'](_0x387392,{'xd':this['xd'],'cookieJar':this['cookieJar']},this['opts']),new Request(this['uri'](),_0x387392);}['doWrite'](_0x31455f,_0x8962c1){const _0x3f7bd9=this['request']({'method':'POST','data':_0x31455f});_0x3f7bd9['on']('success',_0x8962c1),_0x3f7bd9['on']('error',(_0x25cb9c,_0x45b4d5)=>{this['onError']('xhr\x20post\x20error',_0x25cb9c,_0x45b4d5);});}['doPoll'](){const _0x4ee72d=this['request']();_0x4ee72d['on']('data',this['onData']['bind'](this)),_0x4ee72d['on']('error',(_0x291204,_0x20286c)=>{this['onError']('xhr\x20poll\x20error',_0x291204,_0x20286c);}),this['pollXhr']=_0x4ee72d;}}class Request extends Emitter{constructor(_0x47ae91,_0x5df1aa){super(),installTimerFunctions(this,_0x5df1aa),this['opts']=_0x5df1aa,this['method']=_0x5df1aa['method']||'GET',this['uri']=_0x47ae91,this['data']=void 0x0!==_0x5df1aa['data']?_0x5df1aa['data']:null,this['create']();}['create'](){var _0x25ab0d;const _0xb41987=pick$1(this['opts'],'agent','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','autoUnref');_0xb41987['xdomain']=!!this['opts']['xd'];const _0x67512d=this['xhr']=new XHR(_0xb41987);try{_0x67512d['open'](this['method'],this['uri'],!0x0);try{if(this['opts']['extraHeaders']){_0x67512d['setDisableHeaderCheck']&&_0x67512d['setDisableHeaderCheck'](!0x0);for(let _0x55d0b7 in this['opts']['extraHeaders'])this['opts']['extraHeaders']['hasOwnProperty'](_0x55d0b7)&&_0x67512d['setRequestHeader'](_0x55d0b7,this['opts']['extraHeaders'][_0x55d0b7]);}}catch(_0x4ba1c3){}if('POST'===this['method'])try{_0x67512d['setRequestHeader']('Content-type','text/plain;charset=UTF-8');}catch(_0x2dc662){}try{_0x67512d['setRequestHeader']('Accept','*/*');}catch(_0x169205){}null===(_0x25ab0d=this['opts']['cookieJar'])||void 0x0===_0x25ab0d||_0x25ab0d['addCookies'](_0x67512d),'withCredentials'in _0x67512d&&(_0x67512d['withCredentials']=this['opts']['withCredentials']),this['opts']['requestTimeout']&&(_0x67512d['timeout']=this['opts']['requestTimeout']),_0x67512d['onreadystatechange']=()=>{var _0xa7542a;0x3===_0x67512d['readyState']&&(null===(_0xa7542a=this['opts']['cookieJar'])||void 0x0===_0xa7542a||_0xa7542a['parseCookies'](_0x67512d)),0x4===_0x67512d['readyState']&&(0xc8===_0x67512d['status']||0x4c7===_0x67512d['status']?this['onLoad']():this['setTimeoutFn'](()=>{this['onError']('number'==typeof _0x67512d['status']?_0x67512d['status']:0x0);},0x0));},_0x67512d['send'](this['data']);}catch(_0xfd2bea){return void this['setTimeoutFn'](()=>{this['onError'](_0xfd2bea);},0x0);}'undefined'!=typeof document&&(this['index']=Request['requestsCount']++,Request['requests'][this['index']]=this);}['onError'](_0x2a6f67){this['emitReserved']('error',_0x2a6f67,this['xhr']),this['cleanup'](!0x0);}['cleanup'](_0x454edb){if(void 0x0!==this['xhr']&&null!==this['xhr']){if(this['xhr']['onreadystatechange']=empty,_0x454edb)try{this['xhr']['abort']();}catch(_0x63c094){}'undefined'!=typeof document&&delete Request['requests'][this['index']],this['xhr']=null;}}['onLoad'](){const _0x88b572=this['xhr']['responseText'];null!==_0x88b572&&(this['emitReserved']('data',_0x88b572),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 _0x1f3617 in Request['requests'])Request['requests']['hasOwnProperty'](_0x1f3617)&&Request['requests'][_0x1f3617]['abort']();}const nextTick='function'==typeof Promise&&'function'==typeof Promise['resolve']?_0x5ea28b=>Promise['resolve']()['then'](_0x5ea28b):(_0xf832d9,_0x1137ca)=>_0x1137ca(_0xf832d9,0x0),WebSocket$2=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(_0x42c2a0){super(_0x42c2a0),this['supportsBinary']=!_0x42c2a0['forceBase64'];}get['name'](){return'websocket';}['doOpen'](){if(!this['check']())return;const _0x19968b=this['uri'](),_0x4b24a8=this['opts']['protocols'],_0x11d26a=isReactNative?{}:pick$1(this['opts'],'agent','perMessageDeflate','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','localAddress','protocolVersion','origin','maxPayload','family','checkServerIdentity');this['opts']['extraHeaders']&&(_0x11d26a['headers']=this['opts']['extraHeaders']);try{this['ws']=usingBrowserWebSocket&&!isReactNative?_0x4b24a8?new WebSocket$2(_0x19968b,_0x4b24a8):new WebSocket$2(_0x19968b):new WebSocket$2(_0x19968b,_0x4b24a8,_0x11d26a);}catch(_0xf99f){return this['emitReserved']('error',_0xf99f);}this['ws']['binaryType']=this['socket']['binaryType'],this['addEventListeners']();}['addEventListeners'](){this['ws']['onopen']=()=>{this['opts']['autoUnref']&&this['ws']['_socket']['unref'](),this['onOpen']();},this['ws']['onclose']=_0x3604ff=>this['onClose']({'description':'websocket\x20connection\x20closed','context':_0x3604ff}),this['ws']['onmessage']=_0x5db5eb=>this['onData'](_0x5db5eb['data']),this['ws']['onerror']=_0x3eab23=>this['onError']('websocket\x20error',_0x3eab23);}['write'](_0x4507ab){this['writable']=!0x1;for(let _0x57243f=0x0;_0x57243f<_0x4507ab['length'];_0x57243f++){const _0x3ac72a=_0x4507ab[_0x57243f],_0x3a7a12=_0x57243f===_0x4507ab['length']-0x1;encodePacket(_0x3ac72a,this['supportsBinary'],_0x25840e=>{try{usingBrowserWebSocket&&this['ws']['send'](_0x25840e);}catch(_0x172c3e){}_0x3a7a12&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){void 0x0!==this['ws']&&(this['ws']['close'](),this['ws']=null);}['uri'](){const _0x1ece97=this['opts']['secure']?'wss':'ws',_0x24301f=this['query']||{};return this['opts']['timestampRequests']&&(_0x24301f[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||(_0x24301f['b64']=0x1),this['createUri'](_0x1ece97,_0x24301f);}['check'](){return!!WebSocket$2;}}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'](_0x11e720=>{this['onError']('webtransport\x20error',_0x11e720);}),this['transport']['ready']['then'](()=>{this['transport']['createBidirectionalStream']()['then'](_0x4cefd9=>{const _0xd0038c=createPacketDecoderStream(Number['MAX_SAFE_INTEGER'],this['socket']['binaryType']),_0x289ce3=_0x4cefd9['readable']['pipeThrough'](_0xd0038c)['getReader'](),_0x3242df=createPacketEncoderStream();_0x3242df['readable']['pipeTo'](_0x4cefd9['writable']),this['writer']=_0x3242df['writable']['getWriter']();const _0x4a5ed3=()=>{_0x289ce3['read']()['then'](({done:_0x3d9551,value:_0xeca7fe})=>{_0x3d9551||(this['onPacket'](_0xeca7fe),_0x4a5ed3());})['catch'](_0x44470d=>{});};_0x4a5ed3();const _0x561639={'type':'open'};this['query']['sid']&&(_0x561639['data']='{\x22sid\x22:\x22'+this['query']['sid']+'\x22}'),this['writer']['write'](_0x561639)['then'](()=>this['onOpen']());});}));}['write'](_0x466dc9){this['writable']=!0x1;for(let _0x33ae83=0x0;_0x33ae83<_0x466dc9['length'];_0x33ae83++){const _0x3b739f=_0x466dc9[_0x33ae83],_0x55822d=_0x33ae83===_0x466dc9['length']-0x1;this['writer']['write'](_0x3b739f)['then'](()=>{_0x55822d&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){var _0x170cd9;null===(_0x170cd9=this['transport'])||void 0x0===_0x170cd9||_0x170cd9['close']();}}const transports={'websocket':WS,'webtransport':WT,'polling':Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(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(_0x264b87){if(_0x264b87['length']>0x7d0)throw'URI\x20too\x20long';const _0x3db906=_0x264b87,_0x2bbf0b=_0x264b87['indexOf']('['),_0x5c19c3=_0x264b87['indexOf'](']');-0x1!=_0x2bbf0b&&-0x1!=_0x5c19c3&&(_0x264b87=_0x264b87['substring'](0x0,_0x2bbf0b)+_0x264b87['substring'](_0x2bbf0b,_0x5c19c3)['replace'](/:/g,';')+_0x264b87['substring'](_0x5c19c3,_0x264b87['length']));let _0x55098f=re['exec'](_0x264b87||''),_0x4f0a3c={},_0x81c2f1=0xe;for(;_0x81c2f1--;)_0x4f0a3c[parts[_0x81c2f1]]=_0x55098f[_0x81c2f1]||'';return-0x1!=_0x2bbf0b&&-0x1!=_0x5c19c3&&(_0x4f0a3c['source']=_0x3db906,_0x4f0a3c['host']=_0x4f0a3c['host']['substring'](0x1,_0x4f0a3c['host']['length']-0x1)['replace'](/;/g,':'),_0x4f0a3c['authority']=_0x4f0a3c['authority']['replace']('[','')['replace'](']','')['replace'](/;/g,':'),_0x4f0a3c['ipv6uri']=!0x0),_0x4f0a3c['pathNames']=pathNames(_0x4f0a3c,_0x4f0a3c['path']),_0x4f0a3c['queryKey']=queryKey(_0x4f0a3c,_0x4f0a3c['query']),_0x4f0a3c;}function pathNames(_0xbfad5c,_0x4472ac){const _0x201e13=_0x4472ac['replace'](/\/{2,9}/g,'/')['split']('/');return'/'!=_0x4472ac['slice'](0x0,0x1)&&0x0!==_0x4472ac['length']||_0x201e13['splice'](0x0,0x1),'/'==_0x4472ac['slice'](-0x1)&&_0x201e13['splice'](_0x201e13['length']-0x1,0x1),_0x201e13;}function queryKey(_0x57335a,_0x5645b8){const _0x5c824e={};return _0x5645b8['replace'](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x490a4d,_0x7320e0,_0x12fabb){_0x7320e0&&(_0x5c824e[_0x7320e0]=_0x12fabb);}),_0x5c824e;}let Socket$1=class e extends Emitter{constructor(_0x48688e,_0x969494={}){super(),this['binaryType']=defaultBinaryType,this['writeBuffer']=[],_0x48688e&&'object'==typeof _0x48688e&&(_0x969494=_0x48688e,_0x48688e=null),_0x48688e?(_0x48688e=parse(_0x48688e),_0x969494['hostname']=_0x48688e['host'],_0x969494['secure']='https'===_0x48688e['protocol']||'wss'===_0x48688e['protocol'],_0x969494['port']=_0x48688e['port'],_0x48688e['query']&&(_0x969494['query']=_0x48688e['query'])):_0x969494['host']&&(_0x969494['hostname']=parse(_0x969494['host'])['host']),installTimerFunctions(this,_0x969494),this['secure']=null!=_0x969494['secure']?_0x969494['secure']:'undefined'!=typeof location&&'https:'===location['protocol'],_0x969494['hostname']&&!_0x969494['port']&&(_0x969494['port']=this['secure']?'443':'80'),this['hostname']=_0x969494['hostname']||('undefined'!=typeof location?location['hostname']:'localhost'),this['port']=_0x969494['port']||('undefined'!=typeof location&&location['port']?location['port']:this['secure']?'443':'80'),this['transports']=_0x969494['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},_0x969494),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'](_0x19671a){const _0x435a24=Object['assign']({},this['opts']['query']);_0x435a24['EIO']=protocol$1,_0x435a24['transport']=_0x19671a,this['id']&&(_0x435a24['sid']=this['id']);const _0x515939=Object['assign']({},this['opts'],{'query':_0x435a24,'socket':this,'hostname':this['hostname'],'secure':this['secure'],'port':this['port']},this['opts']['transportOptions'][_0x19671a]);return new transports[_0x19671a](_0x515939);}['open'](){let _0x4bffa0;if(this['opts']['rememberUpgrade']&&e['priorWebsocketSuccess']&&-0x1!==this['transports']['indexOf']('websocket'))_0x4bffa0='websocket';else{if(0x0===this['transports']['length'])return void this['setTimeoutFn'](()=>{this['emitReserved']('error','No\x20transports\x20available');},0x0);_0x4bffa0=this['transports'][0x0];}this['readyState']='opening';try{_0x4bffa0=this['createTransport'](_0x4bffa0);}catch(_0x2e7a63){return this['transports']['shift'](),void this['open']();}_0x4bffa0['open'](),this['setTransport'](_0x4bffa0);}['setTransport'](_0xda67ce){this['transport']&&this['transport']['removeAllListeners'](),this['transport']=_0xda67ce,_0xda67ce['on']('drain',this['onDrain']['bind'](this))['on']('packet',this['onPacket']['bind'](this))['on']('error',this['onError']['bind'](this))['on']('close',_0x387500=>this['onClose']('transport\x20close',_0x387500));}['probe'](_0x448dd7){let _0x11180a=this['createTransport'](_0x448dd7),_0x580b70=!0x1;e['priorWebsocketSuccess']=!0x1;const _0x690f43=()=>{_0x580b70||(_0x11180a['send']([{'type':'ping','data':'probe'}]),_0x11180a['once']('packet',_0x57112c=>{if(!_0x580b70){if('pong'===_0x57112c['type']&&'probe'===_0x57112c['data']){if(this['upgrading']=!0x0,this['emitReserved']('upgrading',_0x11180a),!_0x11180a)return;e['priorWebsocketSuccess']='websocket'===_0x11180a['name'],this['transport']['pause'](()=>{_0x580b70||'closed'!==this['readyState']&&(_0x578974(),this['setTransport'](_0x11180a),_0x11180a['send']([{'type':'upgrade'}]),this['emitReserved']('upgrade',_0x11180a),_0x11180a=null,this['upgrading']=!0x1,this['flush']());});}else{const _0x4216d4=new Error('probe\x20error');_0x4216d4['transport']=_0x11180a['name'],this['emitReserved']('upgradeError',_0x4216d4);}}}));};function _0x1dfb91(){_0x580b70||(_0x580b70=!0x0,_0x578974(),_0x11180a['close'](),_0x11180a=null);}const _0xd99110=_0x42ea81=>{const _0x46b213=new Error('probe\x20error:\x20'+_0x42ea81);_0x46b213['transport']=_0x11180a['name'],_0x1dfb91(),this['emitReserved']('upgradeError',_0x46b213);};function _0x3f61b7(){_0xd99110('transport\x20closed');}function _0x380737(){_0xd99110('socket\x20closed');}function _0xc18f31(_0x4e9fbe){_0x11180a&&_0x4e9fbe['name']!==_0x11180a['name']&&_0x1dfb91();}const _0x578974=()=>{_0x11180a['removeListener']('open',_0x690f43),_0x11180a['removeListener']('error',_0xd99110),_0x11180a['removeListener']('close',_0x3f61b7),this['off']('close',_0x380737),this['off']('upgrading',_0xc18f31);};_0x11180a['once']('open',_0x690f43),_0x11180a['once']('error',_0xd99110),_0x11180a['once']('close',_0x3f61b7),this['once']('close',_0x380737),this['once']('upgrading',_0xc18f31),-0x1!==this['upgrades']['indexOf']('webtransport')&&'webtransport'!==_0x448dd7?this['setTimeoutFn'](()=>{_0x580b70||_0x11180a['open']();},0xc8):_0x11180a['open']();}['onOpen'](){if(this['readyState']='open',e['priorWebsocketSuccess']='websocket'===this['transport']['name'],this['emitReserved']('open'),this['flush'](),'open'===this['readyState']&&this['opts']['upgrade']){let _0x5b58e5=0x0;const _0x1cf0aa=this['upgrades']['length'];for(;_0x5b58e5<_0x1cf0aa;_0x5b58e5++)this['probe'](this['upgrades'][_0x5b58e5]);}}['onPacket'](_0x2db43a){if('opening'===this['readyState']||'open'===this['readyState']||'closing'===this['readyState'])switch(this['emitReserved']('packet',_0x2db43a),this['emitReserved']('heartbeat'),this['resetPingTimeout'](),_0x2db43a['type']){case'open':this['onHandshake'](JSON['parse'](_0x2db43a['data']));break;case'ping':this['sendPacket']('pong'),this['emitReserved']('ping'),this['emitReserved']('pong');break;case'error':const _0xeec2aa=new Error('server\x20error');_0xeec2aa['code']=_0x2db43a['data'],this['onError'](_0xeec2aa);break;case'message':this['emitReserved']('data',_0x2db43a['data']),this['emitReserved']('message',_0x2db43a['data']);}}['onHandshake'](_0x26e4e2){this['emitReserved']('handshake',_0x26e4e2),this['id']=_0x26e4e2['sid'],this['transport']['query']['sid']=_0x26e4e2['sid'],this['upgrades']=this['filterUpgrades'](_0x26e4e2['upgrades']),this['pingInterval']=_0x26e4e2['pingInterval'],this['pingTimeout']=_0x26e4e2['pingTimeout'],this['maxPayload']=_0x26e4e2['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 _0x18299c=this['getWritablePackets']();this['transport']['send'](_0x18299c),this['prevBufferLen']=_0x18299c['length'],this['emitReserved']('flush');}}['getWritablePackets'](){if(!(this['maxPayload']&&'polling'===this['transport']['name']&&this['writeBuffer']['length']>0x1))return this['writeBuffer'];let _0x55a083=0x1;for(let _0x3293fa=0x0;_0x3293fa<this['writeBuffer']['length'];_0x3293fa++){const _0x550a7f=this['writeBuffer'][_0x3293fa]['data'];if(_0x550a7f&&(_0x55a083+=byteLength(_0x550a7f)),_0x3293fa>0x0&&_0x55a083>this['maxPayload'])return this['writeBuffer']['slice'](0x0,_0x3293fa);_0x55a083+=0x2;}return this['writeBuffer'];}['write'](_0x18c965,_0x30bbb4,_0x3eb195){return this['sendPacket']('message',_0x18c965,_0x30bbb4,_0x3eb195),this;}['send'](_0x5cc884,_0x2d49f4,_0x57aef4){return this['sendPacket']('message',_0x5cc884,_0x2d49f4,_0x57aef4),this;}['sendPacket'](_0x51b26e,_0x94522d,_0x1efc5f,_0x789ec2){if('function'==typeof _0x94522d&&(_0x789ec2=_0x94522d,_0x94522d=void 0x0),'function'==typeof _0x1efc5f&&(_0x789ec2=_0x1efc5f,_0x1efc5f=null),'closing'===this['readyState']||'closed'===this['readyState'])return;(_0x1efc5f=_0x1efc5f||{})['compress']=!0x1!==_0x1efc5f['compress'];const _0x497a5c={'type':_0x51b26e,'data':_0x94522d,'options':_0x1efc5f};this['emitReserved']('packetCreate',_0x497a5c),this['writeBuffer']['push'](_0x497a5c),_0x789ec2&&this['once']('flush',_0x789ec2),this['flush']();}['close'](){const _0x23b681=()=>{this['onClose']('forced\x20close'),this['transport']['close']();},_0x2eccec=()=>{this['off']('upgrade',_0x2eccec),this['off']('upgradeError',_0x2eccec),_0x23b681();},_0x13efe0=()=>{this['once']('upgrade',_0x2eccec),this['once']('upgradeError',_0x2eccec);};return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['readyState']='closing',this['writeBuffer']['length']?this['once']('drain',()=>{this['upgrading']?_0x13efe0():_0x23b681();}):this['upgrading']?_0x13efe0():_0x23b681()),this;}['onError'](_0x3581a4){e['priorWebsocketSuccess']=!0x1,this['emitReserved']('error',_0x3581a4),this['onClose']('transport\x20error',_0x3581a4);}['onClose'](_0x250e02,_0x46f63b){'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',_0x250e02,_0x46f63b),this['writeBuffer']=[],this['prevBufferLen']=0x0);}['filterUpgrades'](_0x46b63e){const _0x492c0f=[];let _0x539030=0x0;const _0x5943b3=_0x46b63e['length'];for(;_0x539030<_0x5943b3;_0x539030++)~this['transports']['indexOf'](_0x46b63e[_0x539030])&&_0x492c0f['push'](_0x46b63e[_0x539030]);return _0x492c0f;}};function url(_0x1fb97b,_0x5308e='',_0x3aabbc){let _0x9949d9=_0x1fb97b;_0x3aabbc=_0x3aabbc||'undefined'!=typeof location&&location,null==_0x1fb97b&&(_0x1fb97b=_0x3aabbc['protocol']+'//'+_0x3aabbc['host']),'string'==typeof _0x1fb97b&&('/'===_0x1fb97b['charAt'](0x0)&&(_0x1fb97b='/'===_0x1fb97b['charAt'](0x1)?_0x3aabbc['protocol']+_0x1fb97b:_0x3aabbc['host']+_0x1fb97b),/^(https?|wss?):\/\//['test'](_0x1fb97b)||(_0x1fb97b=void 0x0!==_0x3aabbc?_0x3aabbc['protocol']+'//'+_0x1fb97b:'https://'+_0x1fb97b),_0x9949d9=parse(_0x1fb97b)),_0x9949d9['port']||(/^(http|ws)$/['test'](_0x9949d9['protocol'])?_0x9949d9['port']='80':/^(http|ws)s$/['test'](_0x9949d9['protocol'])&&(_0x9949d9['port']='443')),_0x9949d9['path']=_0x9949d9['path']||'/';const _0x26551d=-0x1!==_0x9949d9['host']['indexOf'](':')?'['+_0x9949d9['host']+']':_0x9949d9['host'];return _0x9949d9['id']=_0x9949d9['protocol']+'://'+_0x26551d+':'+_0x9949d9['port']+_0x5308e,_0x9949d9['href']=_0x9949d9['protocol']+'://'+_0x26551d+(_0x3aabbc&&_0x3aabbc['port']===_0x9949d9['port']?'':':'+_0x9949d9['port']),_0x9949d9;}Socket$1['protocol']=protocol$1;const withNativeArrayBuffer='function'==typeof ArrayBuffer,isView=_0x4f5967=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x4f5967):_0x4f5967['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(_0x3c6a20){return withNativeArrayBuffer&&(_0x3c6a20 instanceof ArrayBuffer||isView(_0x3c6a20))||withNativeBlob&&_0x3c6a20 instanceof Blob||withNativeFile&&_0x3c6a20 instanceof File;}function hasBinary(_0x6d9559,_0xb38c6e){if(!_0x6d9559||'object'!=typeof _0x6d9559)return!0x1;if(Array['isArray'](_0x6d9559)){for(let _0x1dd132=0x0,_0x27f90c=_0x6d9559['length'];_0x1dd132<_0x27f90c;_0x1dd132++)if(hasBinary(_0x6d9559[_0x1dd132]))return!0x0;return!0x1;}if(isBinary(_0x6d9559))return!0x0;if(_0x6d9559['toJSON']&&'function'==typeof _0x6d9559['toJSON']&&0x1===arguments['length'])return hasBinary(_0x6d9559['toJSON'](),!0x0);for(const _0x2988bd in _0x6d9559)if(Object['prototype']['hasOwnProperty']['call'](_0x6d9559,_0x2988bd)&&hasBinary(_0x6d9559[_0x2988bd]))return!0x0;return!0x1;}function deconstructPacket(_0x28afb1){const _0x3ddcbe=[],_0x407212=_0x28afb1['data'],_0x46a66d=_0x28afb1;return _0x46a66d['data']=_deconstructPacket(_0x407212,_0x3ddcbe),_0x46a66d['attachments']=_0x3ddcbe['length'],{'packet':_0x46a66d,'buffers':_0x3ddcbe};}function _deconstructPacket(_0x382506,_0x2b6b1a){if(!_0x382506)return _0x382506;if(isBinary(_0x382506)){const _0x2a829c={'_placeholder':!0x0,'num':_0x2b6b1a['length']};return _0x2b6b1a['push'](_0x382506),_0x2a829c;}if(Array['isArray'](_0x382506)){const _0x36fe70=new Array(_0x382506['length']);for(let _0x263fa5=0x0;_0x263fa5<_0x382506['length'];_0x263fa5++)_0x36fe70[_0x263fa5]=_deconstructPacket(_0x382506[_0x263fa5],_0x2b6b1a);return _0x36fe70;}if('object'==typeof _0x382506&&!(_0x382506 instanceof Date)){const _0x8f1cb0={};for(const _0x5a1456 in _0x382506)Object['prototype']['hasOwnProperty']['call'](_0x382506,_0x5a1456)&&(_0x8f1cb0[_0x5a1456]=_deconstructPacket(_0x382506[_0x5a1456],_0x2b6b1a));return _0x8f1cb0;}return _0x382506;}function reconstructPacket(_0x4ea910,_0x41955b){return _0x4ea910['data']=_reconstructPacket(_0x4ea910['data'],_0x41955b),delete _0x4ea910['attachments'],_0x4ea910;}function _reconstructPacket(_0x2db7a4,_0x24eacb){if(!_0x2db7a4)return _0x2db7a4;if(_0x2db7a4&&!0x0===_0x2db7a4['_placeholder']){if('number'==typeof _0x2db7a4['num']&&_0x2db7a4['num']>=0x0&&_0x2db7a4['num']<_0x24eacb['length'])return _0x24eacb[_0x2db7a4['num']];throw new Error('illegal\x20attachments');}if(Array['isArray'](_0x2db7a4)){for(let _0xec5386=0x0;_0xec5386<_0x2db7a4['length'];_0xec5386++)_0x2db7a4[_0xec5386]=_reconstructPacket(_0x2db7a4[_0xec5386],_0x24eacb);}else{if('object'==typeof _0x2db7a4){for(const _0x382492 in _0x2db7a4)Object['prototype']['hasOwnProperty']['call'](_0x2db7a4,_0x382492)&&(_0x2db7a4[_0x382492]=_reconstructPacket(_0x2db7a4[_0x382492],_0x24eacb));}}return _0x2db7a4;}const RESERVED_EVENTS$1=['connect','connect_error','disconnect','disconnecting','newListener','removeListener'],protocol=0x5;var PacketType;!function(_0x199d2f){_0x199d2f[_0x199d2f['CONNECT']=0x0]='CONNECT',_0x199d2f[_0x199d2f['DISCONNECT']=0x1]='DISCONNECT',_0x199d2f[_0x199d2f['EVENT']=0x2]='EVENT',_0x199d2f[_0x199d2f['ACK']=0x3]='ACK',_0x199d2f[_0x199d2f['CONNECT_ERROR']=0x4]='CONNECT_ERROR',_0x199d2f[_0x199d2f['BINARY_EVENT']=0x5]='BINARY_EVENT',_0x199d2f[_0x199d2f['BINARY_ACK']=0x6]='BINARY_ACK';}(PacketType||(PacketType={}));let Encoder$1=class{constructor(_0x458af0){this['replacer']=_0x458af0;}['encode'](_0x15c071){return _0x15c071['type']!==PacketType['EVENT']&&_0x15c071['type']!==PacketType['ACK']||!hasBinary(_0x15c071)?[this['encodeAsString'](_0x15c071)]:this['encodeAsBinary']({'type':_0x15c071['type']===PacketType['EVENT']?PacketType['BINARY_EVENT']:PacketType['BINARY_ACK'],'nsp':_0x15c071['nsp'],'data':_0x15c071['data'],'id':_0x15c071['id']});}['encodeAsString'](_0x57e8ec){let _0x386975=''+_0x57e8ec['type'];return _0x57e8ec['type']!==PacketType['BINARY_EVENT']&&_0x57e8ec['type']!==PacketType['BINARY_ACK']||(_0x386975+=_0x57e8ec['attachments']+'-'),_0x57e8ec['nsp']&&'/'!==_0x57e8ec['nsp']&&(_0x386975+=_0x57e8ec['nsp']+','),null!=_0x57e8ec['id']&&(_0x386975+=_0x57e8ec['id']),null!=_0x57e8ec['data']&&(_0x386975+=JSON['stringify'](_0x57e8ec['data'],this['replacer'])),_0x386975;}['encodeAsBinary'](_0x1fc221){const _0xb48402=deconstructPacket(_0x1fc221),_0x1c2d2d=this['encodeAsString'](_0xb48402['packet']),_0x12a42a=_0xb48402['buffers'];return _0x12a42a['unshift'](_0x1c2d2d),_0x12a42a;}};function isObject$2(_0x5329a7){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x5329a7);}let Decoder$1=class e extends Emitter{constructor(_0xdf3c0d){super(),this['reviver']=_0xdf3c0d;}['add'](_0x383dfa){let _0x3da927;if('string'==typeof _0x383dfa){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');_0x3da927=this['decodeString'](_0x383dfa);const _0x34a005=_0x3da927['type']===PacketType['BINARY_EVENT'];_0x34a005||_0x3da927['type']===PacketType['BINARY_ACK']?(_0x3da927['type']=_0x34a005?PacketType['EVENT']:PacketType['ACK'],this['reconstructor']=new BinaryReconstructor(_0x3da927),0x0===_0x3da927['attachments']&&super['emitReserved']('decoded',_0x3da927)):super['emitReserved']('decoded',_0x3da927);}else{if(!isBinary(_0x383dfa)&&!_0x383dfa['base64'])throw new Error('Unknown\x20type:\x20'+_0x383dfa);if(!this['reconstructor'])throw new Error('got\x20binary\x20data\x20when\x20not\x20reconstructing\x20a\x20packet');_0x3da927=this['reconstructor']['takeBinaryData'](_0x383dfa),_0x3da927&&(this['reconstructor']=null,super['emitReserved']('decoded',_0x3da927));}}['decodeString'](_0x48cb36){let _0x293f67=0x0;const _0x3b52f5={'type':Number(_0x48cb36['charAt'](0x0))};if(void 0x0===PacketType[_0x3b52f5['type']])throw new Error('unknown\x20packet\x20type\x20'+_0x3b52f5['type']);if(_0x3b52f5['type']===PacketType['BINARY_EVENT']||_0x3b52f5['type']===PacketType['BINARY_ACK']){const _0x372ce4=_0x293f67+0x1;for(;'-'!==_0x48cb36['charAt'](++_0x293f67)&&_0x293f67!=_0x48cb36['length'];);const _0x33cffe=_0x48cb36['substring'](_0x372ce4,_0x293f67);if(_0x33cffe!=Number(_0x33cffe)||'-'!==_0x48cb36['charAt'](_0x293f67))throw new Error('Illegal\x20attachments');_0x3b52f5['attachments']=Number(_0x33cffe);}if('/'===_0x48cb36['charAt'](_0x293f67+0x1)){const _0x57b7a5=_0x293f67+0x1;for(;++_0x293f67;){if(','===_0x48cb36['charAt'](_0x293f67))break;if(_0x293f67===_0x48cb36['length'])break;}_0x3b52f5['nsp']=_0x48cb36['substring'](_0x57b7a5,_0x293f67);}else _0x3b52f5['nsp']='/';const _0x3b07ea=_0x48cb36['charAt'](_0x293f67+0x1);if(''!==_0x3b07ea&&Number(_0x3b07ea)==_0x3b07ea){const _0x3ae1ad=_0x293f67+0x1;for(;++_0x293f67;){const _0x4aff77=_0x48cb36['charAt'](_0x293f67);if(null==_0x4aff77||Number(_0x4aff77)!=_0x4aff77){--_0x293f67;break;}if(_0x293f67===_0x48cb36['length'])break;}_0x3b52f5['id']=Number(_0x48cb36['substring'](_0x3ae1ad,_0x293f67+0x1));}if(_0x48cb36['charAt'](++_0x293f67)){const _0x5179d5=this['tryParse'](_0x48cb36['substr'](_0x293f67));if(!e['isPayloadValid'](_0x3b52f5['type'],_0x5179d5))throw new Error('invalid\x20payload');_0x3b52f5['data']=_0x5179d5;}return _0x3b52f5;}['tryParse'](_0x1aeb79){try{return JSON['parse'](_0x1aeb79,this['reviver']);}catch(_0x32c466){return!0x1;}}static['isPayloadValid'](_0x36bcc9,_0x5095d5){switch(_0x36bcc9){case PacketType['CONNECT']:return isObject$2(_0x5095d5);case PacketType['DISCONNECT']:return void 0x0===_0x5095d5;case PacketType['CONNECT_ERROR']:return'string'==typeof _0x5095d5||isObject$2(_0x5095d5);case PacketType['EVENT']:case PacketType['BINARY_EVENT']:return Array['isArray'](_0x5095d5)&&('number'==typeof _0x5095d5[0x0]||'string'==typeof _0x5095d5[0x0]&&-0x1===RESERVED_EVENTS$1['indexOf'](_0x5095d5[0x0]));case PacketType['ACK']:case PacketType['BINARY_ACK']:return Array['isArray'](_0x5095d5);}}['destroy'](){this['reconstructor']&&(this['reconstructor']['finishedReconstruction'](),this['reconstructor']=null);}};class BinaryReconstructor{constructor(_0x168727){this['packet']=_0x168727,this['buffers']=[],this['reconPack']=_0x168727;}['takeBinaryData'](_0x5b1100){if(this['buffers']['push'](_0x5b1100),this['buffers']['length']===this['reconPack']['attachments']){const _0x1e5863=reconstructPacket(this['reconPack'],this['buffers']);return this['finishedReconstruction'](),_0x1e5863;}return null;}['finishedReconstruction'](){this['reconPack']=null,this['buffers']=[];}}var parser$4=Object['freeze']({'__proto__':null,'Decoder':Decoder$1,'Encoder':Encoder$1,get 'PacketType'(){return PacketType;},'protocol':protocol});function on(_0x22b73d,_0x42c7c4,_0x405dd3){return _0x22b73d['on'](_0x42c7c4,_0x405dd3),function(){_0x22b73d['off'](_0x42c7c4,_0x405dd3);};}const RESERVED_EVENTS=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});class Socket extends Emitter{constructor(_0x5dde79,_0x4e9782,_0x19a536){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']=_0x5dde79,this['nsp']=_0x4e9782,_0x19a536&&_0x19a536['auth']&&(this['auth']=_0x19a536['auth']),this['_opts']=Object['assign']({},_0x19a536),this['io']['_autoConnect']&&this['open']();}get['disconnected'](){return!this['connected'];}['subEvents'](){if(this['subs'])return;const _0xf7e5dc=this['io'];this['subs']=[on(_0xf7e5dc,'open',this['onopen']['bind'](this)),on(_0xf7e5dc,'packet',this['onpacket']['bind'](this)),on(_0xf7e5dc,'error',this['onerror']['bind'](this)),on(_0xf7e5dc,'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'](..._0xf7d2d3){return _0xf7d2d3['unshift']('message'),this['emit']['apply'](this,_0xf7d2d3),this;}['emit'](_0x53dc50,..._0x49ba3c){if(RESERVED_EVENTS['hasOwnProperty'](_0x53dc50))throw new Error('\x22'+_0x53dc50['toString']()+'\x22\x20is\x20a\x20reserved\x20event\x20name');if(_0x49ba3c['unshift'](_0x53dc50),this['_opts']['retries']&&!this['flags']['fromQueue']&&!this['flags']['volatile'])return this['_addToQueue'](_0x49ba3c),this;const _0x57f2d7={'type':PacketType['EVENT'],'data':_0x49ba3c,'options':{}};if(_0x57f2d7['options']['compress']=!0x1!==this['flags']['compress'],'function'==typeof _0x49ba3c[_0x49ba3c['length']-0x1]){const _0x437e98=this['ids']++,_0x38364b=_0x49ba3c['pop']();this['_registerAckCallback'](_0x437e98,_0x38364b),_0x57f2d7['id']=_0x437e98;}const _0x220d27=this['io']['engine']&&this['io']['engine']['transport']&&this['io']['engine']['transport']['writable'];return this['flags']['volatile']&&(!_0x220d27||!this['connected'])||(this['connected']?(this['notifyOutgoingListeners'](_0x57f2d7),this['packet'](_0x57f2d7)):this['sendBuffer']['push'](_0x57f2d7)),this['flags']={},this;}['_registerAckCallback'](_0x11e5c1,_0x67dbca){var _0x597897;const _0x25d176=null!==(_0x597897=this['flags']['timeout'])&&void 0x0!==_0x597897?_0x597897:this['_opts']['ackTimeout'];if(void 0x0===_0x25d176)return void(this['acks'][_0x11e5c1]=_0x67dbca);const _0x56a13b=this['io']['setTimeoutFn'](()=>{delete this['acks'][_0x11e5c1];for(let _0x17e1e8=0x0;_0x17e1e8<this['sendBuffer']['length'];_0x17e1e8++)this['sendBuffer'][_0x17e1e8]['id']===_0x11e5c1&&this['sendBuffer']['splice'](_0x17e1e8,0x1);_0x67dbca['call'](this,new Error('operation\x20has\x20timed\x20out'));},_0x25d176);this['acks'][_0x11e5c1]=(..._0x4109bc)=>{this['io']['clearTimeoutFn'](_0x56a13b),_0x67dbca['apply'](this,[null,..._0x4109bc]);};}['emitWithAck'](_0x1123b1,..._0x50b37a){const _0xf9b212=void 0x0!==this['flags']['timeout']||void 0x0!==this['_opts']['ackTimeout'];return new Promise((_0x25a68d,_0x34cd5e)=>{_0x50b37a['push']((_0x40a18c,_0x26d856)=>_0xf9b212?_0x40a18c?_0x34cd5e(_0x40a18c):_0x25a68d(_0x26d856):_0x25a68d(_0x40a18c)),this['emit'](_0x1123b1,..._0x50b37a);});}['_addToQueue'](_0x3ce584){let _0x4a1b7d;'function'==typeof _0x3ce584[_0x3ce584['length']-0x1]&&(_0x4a1b7d=_0x3ce584['pop']());const _0x459340={'id':this['_queueSeq']++,'tryCount':0x0,'pending':!0x1,'args':_0x3ce584,'flags':Object['assign']({'fromQueue':!0x0},this['flags'])};_0x3ce584['push']((_0x1cf991,..._0x4291cf)=>{if(_0x459340!==this['_queue'][0x0])return;return null!==_0x1cf991?_0x459340['tryCount']>this['_opts']['retries']&&(this['_queue']['shift'](),_0x4a1b7d&&_0x4a1b7d(_0x1cf991)):(this['_queue']['shift'](),_0x4a1b7d&&_0x4a1b7d(null,..._0x4291cf)),_0x459340['pending']=!0x1,this['_drainQueue']();}),this['_queue']['push'](_0x459340),this['_drainQueue']();}['_drainQueue'](_0x111d7a=!0x1){if(!this['connected']||0x0===this['_queue']['length'])return;const _0x2a8fe0=this['_queue'][0x0];_0x2a8fe0['pending']&&!_0x111d7a||(_0x2a8fe0['pending']=!0x0,_0x2a8fe0['tryCount']++,this['flags']=_0x2a8fe0['flags'],this['emit']['apply'](this,_0x2a8fe0['args']));}['packet'](_0x21fa62){_0x21fa62['nsp']=this['nsp'],this['io']['_packet'](_0x21fa62);}['onopen'](){'function'==typeof this['auth']?this['auth'](_0x1e805a=>{this['_sendConnectPacket'](_0x1e805a);}):this['_sendConnectPacket'](this['auth']);}['_sendConnectPacket'](_0xfbae2d){this['packet']({'type':PacketType['CONNECT'],'data':this['_pid']?Object['assign']({'pid':this['_pid'],'offset':this['_lastOffset']},_0xfbae2d):_0xfbae2d});}['onerror'](_0x2ff8bc){this['connected']||this['emitReserved']('connect_error',_0x2ff8bc);}['onclose'](_0x1d7db2,_0xbc88c){this['connected']=!0x1,delete this['id'],this['emitReserved']('disconnect',_0x1d7db2,_0xbc88c);}['onpacket'](_0x128cd5){if(_0x128cd5['nsp']===this['nsp'])switch(_0x128cd5['type']){case PacketType['CONNECT']:_0x128cd5['data']&&_0x128cd5['data']['sid']?this['onconnect'](_0x128cd5['data']['sid'],_0x128cd5['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'](_0x128cd5);break;case PacketType['ACK']:case PacketType['BINARY_ACK']:this['onack'](_0x128cd5);break;case PacketType['DISCONNECT']:this['ondisconnect']();break;case PacketType['CONNECT_ERROR']:this['destroy']();const _0x337354=new Error(_0x128cd5['data']['message']);_0x337354['data']=_0x128cd5['data']['data'],this['emitReserved']('connect_error',_0x337354);}}['onevent'](_0x1daf49){const _0x2ff721=_0x1daf49['data']||[];null!=_0x1daf49['id']&&_0x2ff721['push'](this['ack'](_0x1daf49['id'])),this['connected']?this['emitEvent'](_0x2ff721):this['receiveBuffer']['push'](Object['freeze'](_0x2ff721));}['emitEvent'](_0x1f8b63){if(this['_anyListeners']&&this['_anyListeners']['length']){const _0x5dcd77=this['_anyListeners']['slice']();for(const _0x48504f of _0x5dcd77)_0x48504f['apply'](this,_0x1f8b63);}super['emit']['apply'](this,_0x1f8b63),this['_pid']&&_0x1f8b63['length']&&'string'==typeof _0x1f8b63[_0x1f8b63['length']-0x1]&&(this['_lastOffset']=_0x1f8b63[_0x1f8b63['length']-0x1]);}['ack'](_0x56a4d4){const _0x20b1f6=this;let _0x47e7eb=!0x1;return function(..._0x460239){_0x47e7eb||(_0x47e7eb=!0x0,_0x20b1f6['packet']({'type':PacketType['ACK'],'id':_0x56a4d4,'data':_0x460239}));};}['onack'](_0x4eeffd){const _0x108cce=this['acks'][_0x4eeffd['id']];'function'==typeof _0x108cce&&(_0x108cce['apply'](this,_0x4eeffd['data']),delete this['acks'][_0x4eeffd['id']]);}['onconnect'](_0x29bd05,_0x591c18){this['id']=_0x29bd05,this['recovered']=_0x591c18&&this['_pid']===_0x591c18,this['_pid']=_0x591c18,this['connected']=!0x0,this['emitBuffered'](),this['emitReserved']('connect'),this['_drainQueue'](!0x0);}['emitBuffered'](){this['receiveBuffer']['forEach'](_0xa2d198=>this['emitEvent'](_0xa2d198)),this['receiveBuffer']=[],this['sendBuffer']['forEach'](_0x123a70=>{this['notifyOutgoingListeners'](_0x123a70),this['packet'](_0x123a70);}),this['sendBuffer']=[];}['ondisconnect'](){this['destroy'](),this['onclose']('io\x20server\x20disconnect');}['destroy'](){this['subs']&&(this['subs']['forEach'](_0x2aed54=>_0x2aed54()),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'](_0x5a456e){return this['flags']['compress']=_0x5a456e,this;}get['volatile'](){return this['flags']['volatile']=!0x0,this;}['timeout'](_0x850d04){return this['flags']['timeout']=_0x850d04,this;}['onAny'](_0x56e83b){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['push'](_0x56e83b),this;}['prependAny'](_0x52e0d9){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['unshift'](_0x52e0d9),this;}['offAny'](_0x333663){if(!this['_anyListeners'])return this;if(_0x333663){const _0x2b0806=this['_anyListeners'];for(let _0xb9a73a=0x0;_0xb9a73a<_0x2b0806['length'];_0xb9a73a++)if(_0x333663===_0x2b0806[_0xb9a73a])return _0x2b0806['splice'](_0xb9a73a,0x1),this;}else this['_anyListeners']=[];return this;}['listenersAny'](){return this['_anyListeners']||[];}['onAnyOutgoing'](_0x1d9c4a){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['push'](_0x1d9c4a),this;}['prependAnyOutgoing'](_0xf2bf83){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['unshift'](_0xf2bf83),this;}['offAnyOutgoing'](_0x387621){if(!this['_anyOutgoingListeners'])return this;if(_0x387621){const _0x39e2d8=this['_anyOutgoingListeners'];for(let _0x5dbb9a=0x0;_0x5dbb9a<_0x39e2d8['length'];_0x5dbb9a++)if(_0x387621===_0x39e2d8[_0x5dbb9a])return _0x39e2d8['splice'](_0x5dbb9a,0x1),this;}else this['_anyOutgoingListeners']=[];return this;}['listenersAnyOutgoing'](){return this['_anyOutgoingListeners']||[];}['notifyOutgoingListeners'](_0x88d5e){if(this['_anyOutgoingListeners']&&this['_anyOutgoingListeners']['length']){const _0x56465f=this['_anyOutgoingListeners']['slice']();for(const _0x1edad5 of _0x56465f)_0x1edad5['apply'](this,_0x88d5e['data']);}}}function Backoff(_0x2b6878){_0x2b6878=_0x2b6878||{},this['ms']=_0x2b6878['min']||0x64,this['max']=_0x2b6878['max']||0x2710,this['factor']=_0x2b6878['factor']||0x2,this['jitter']=_0x2b6878['jitter']>0x0&&_0x2b6878['jitter']<=0x1?_0x2b6878['jitter']:0x0,this['attempts']=0x0;}Backoff['prototype']['duration']=function(){var _0x480739=this['ms']*Math['pow'](this['factor'],this['attempts']++);if(this['jitter']){var _0x35cf74=Math['random'](),_0x73349e=Math['floor'](_0x35cf74*this['jitter']*_0x480739);_0x480739=0x1&Math['floor'](0xa*_0x35cf74)?_0x480739+_0x73349e:_0x480739-_0x73349e;}return 0x0|Math['min'](_0x480739,this['max']);},Backoff['prototype']['reset']=function(){this['attempts']=0x0;},Backoff['prototype']['setMin']=function(_0x4d6844){this['ms']=_0x4d6844;},Backoff['prototype']['setMax']=function(_0x5ea8e8){this['max']=_0x5ea8e8;},Backoff['prototype']['setJitter']=function(_0x3054a0){this['jitter']=_0x3054a0;};class Manager extends Emitter{constructor(_0xee1b07,_0x4c787c){var _0x448db1;super(),this['nsps']={},this['subs']=[],_0xee1b07&&'object'==typeof _0xee1b07&&(_0x4c787c=_0xee1b07,_0xee1b07=void 0x0),(_0x4c787c=_0x4c787c||{})['path']=_0x4c787c['path']||'/socket.io',this['opts']=_0x4c787c,installTimerFunctions(this,_0x4c787c),this['reconnection'](!0x1!==_0x4c787c['reconnection']),this['reconnectionAttempts'](_0x4c787c['reconnectionAttempts']||0x1/0x0),this['reconnectionDelay'](_0x4c787c['reconnectionDelay']||0x3e8),this['reconnectionDelayMax'](_0x4c787c['reconnectionDelayMax']||0x1388),this['randomizationFactor'](null!==(_0x448db1=_0x4c787c['randomizationFactor'])&&void 0x0!==_0x448db1?_0x448db1:0.5),this['backoff']=new Backoff({'min':this['reconnectionDelay'](),'max':this['reconnectionDelayMax'](),'jitter':this['randomizationFactor']()}),this['timeout'](null==_0x4c787c['timeout']?0x4e20:_0x4c787c['timeout']),this['_readyState']='closed',this['uri']=_0xee1b07;const _0x546cee=_0x4c787c['parser']||parser$4;this['encoder']=new _0x546cee['Encoder'](),this['decoder']=new _0x546cee['Decoder'](),this['_autoConnect']=!0x1!==_0x4c787c['autoConnect'],this['_autoConnect']&&this['open']();}['reconnection'](_0x4071e5){return arguments['length']?(this['_reconnection']=!!_0x4071e5,this):this['_reconnection'];}['reconnectionAttempts'](_0x483d01){return void 0x0===_0x483d01?this['_reconnectionAttempts']:(this['_reconnectionAttempts']=_0x483d01,this);}['reconnectionDelay'](_0x22c7cd){var _0x336759;return void 0x0===_0x22c7cd?this['_reconnectionDelay']:(this['_reconnectionDelay']=_0x22c7cd,null===(_0x336759=this['backoff'])||void 0x0===_0x336759||_0x336759['setMin'](_0x22c7cd),this);}['randomizationFactor'](_0x500bca){var _0x41e76f;return void 0x0===_0x500bca?this['_randomizationFactor']:(this['_randomizationFactor']=_0x500bca,null===(_0x41e76f=this['backoff'])||void 0x0===_0x41e76f||_0x41e76f['setJitter'](_0x500bca),this);}['reconnectionDelayMax'](_0x38185a){var _0x18d664;return void 0x0===_0x38185a?this['_reconnectionDelayMax']:(this['_reconnectionDelayMax']=_0x38185a,null===(_0x18d664=this['backoff'])||void 0x0===_0x18d664||_0x18d664['setMax'](_0x38185a),this);}['timeout'](_0x1e2cfd){return arguments['length']?(this['_timeout']=_0x1e2cfd,this):this['_timeout'];}['maybeReconnectOnOpen'](){!this['_reconnecting']&&this['_reconnection']&&0x0===this['backoff']['attempts']&&this['reconnect']();}['open'](_0x290520){if(~this['_readyState']['indexOf']('open'))return this;this['engine']=new Socket$1(this['uri'],this['opts']);const _0x5ab875=this['engine'],_0x5445df=this;this['_readyState']='opening',this['skipReconnect']=!0x1;const _0x9fc028=on(_0x5ab875,'open',function(){_0x5445df['onopen'](),_0x290520&&_0x290520();}),_0x41e3ca=_0x306f0a=>{this['cleanup'](),this['_readyState']='closed',this['emitReserved']('error',_0x306f0a),_0x290520?_0x290520(_0x306f0a):this['maybeReconnectOnOpen']();},_0x4fc54d=on(_0x5ab875,'error',_0x41e3ca);if(!0x1!==this['_timeout']){const _0x3a9502=this['_timeout'],_0x32ac26=this['setTimeoutFn'](()=>{_0x9fc028(),_0x41e3ca(new Error('timeout')),_0x5ab875['close']();},_0x3a9502);this['opts']['autoUnref']&&_0x32ac26['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x32ac26);});}return this['subs']['push'](_0x9fc028),this['subs']['push'](_0x4fc54d),this;}['connect'](_0x5689bb){return this['open'](_0x5689bb);}['onopen'](){this['cleanup'](),this['_readyState']='open',this['emitReserved']('open');const _0x222d89=this['engine'];this['subs']['push'](on(_0x222d89,'ping',this['onping']['bind'](this)),on(_0x222d89,'data',this['ondata']['bind'](this)),on(_0x222d89,'error',this['onerror']['bind'](this)),on(_0x222d89,'close',this['onclose']['bind'](this)),on(this['decoder'],'decoded',this['ondecoded']['bind'](this)));}['onping'](){this['emitReserved']('ping');}['ondata'](_0x3ef522){try{this['decoder']['add'](_0x3ef522);}catch(_0x5423da){this['onclose']('parse\x20error',_0x5423da);}}['ondecoded'](_0x285a10){nextTick(()=>{this['emitReserved']('packet',_0x285a10);},this['setTimeoutFn']);}['onerror'](_0x3a4a65){this['emitReserved']('error',_0x3a4a65);}['socket'](_0x4d7b92,_0x2ee92f){let _0x3af739=this['nsps'][_0x4d7b92];return _0x3af739?this['_autoConnect']&&!_0x3af739['active']&&_0x3af739['connect']():(_0x3af739=new Socket(this,_0x4d7b92,_0x2ee92f),this['nsps'][_0x4d7b92]=_0x3af739),_0x3af739;}['_destroy'](_0x448dcd){const _0x10b9fa=Object['keys'](this['nsps']);for(const _0x37636d of _0x10b9fa){if(this['nsps'][_0x37636d]['active'])return;}this['_close']();}['_packet'](_0x120798){const _0x4eb1d5=this['encoder']['encode'](_0x120798);for(let _0x2744d1=0x0;_0x2744d1<_0x4eb1d5['length'];_0x2744d1++)this['engine']['write'](_0x4eb1d5[_0x2744d1],_0x120798['options']);}['cleanup'](){this['subs']['forEach'](_0x2d481e=>_0x2d481e()),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'](_0x3bc615,_0x47376d){this['cleanup'](),this['backoff']['reset'](),this['_readyState']='closed',this['emitReserved']('close',_0x3bc615,_0x47376d),this['_reconnection']&&!this['skipReconnect']&&this['reconnect']();}['reconnect'](){if(this['_reconnecting']||this['skipReconnect'])return this;const _0x2b1987=this;if(this['backoff']['attempts']>=this['_reconnectionAttempts'])this['backoff']['reset'](),this['emitReserved']('reconnect_failed'),this['_reconnecting']=!0x1;else{const _0x1d7da9=this['backoff']['duration']();this['_reconnecting']=!0x0;const _0x3b6092=this['setTimeoutFn'](()=>{_0x2b1987['skipReconnect']||(this['emitReserved']('reconnect_attempt',_0x2b1987['backoff']['attempts']),_0x2b1987['skipReconnect']||_0x2b1987['open'](_0x16d718=>{_0x16d718?(_0x2b1987['_reconnecting']=!0x1,_0x2b1987['reconnect'](),this['emitReserved']('reconnect_error',_0x16d718)):_0x2b1987['onreconnect']();}));},_0x1d7da9);this['opts']['autoUnref']&&_0x3b6092['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x3b6092);});}}['onreconnect'](){const _0x3140f0=this['backoff']['attempts'];this['_reconnecting']=!0x1,this['backoff']['reset'](),this['emitReserved']('reconnect',_0x3140f0);}}const cache$1={};function lookup(_0x94dfdd,_0x3f68d4){'object'==typeof _0x94dfdd&&(_0x3f68d4=_0x94dfdd,_0x94dfdd=void 0x0);const _0x41d3dc=url(_0x94dfdd,(_0x3f68d4=_0x3f68d4||{})['path']||'/socket.io'),_0x1da25e=_0x41d3dc['source'],_0x240ca1=_0x41d3dc['id'],_0x3e34fe=_0x41d3dc['path'],_0x3b0366=cache$1[_0x240ca1]&&_0x3e34fe in cache$1[_0x240ca1]['nsps'];let _0xc1e6d;return _0x3f68d4['forceNew']||_0x3f68d4['force\x20new\x20connection']||!0x1===_0x3f68d4['multiplex']||_0x3b0366?_0xc1e6d=new Manager(_0x1da25e,_0x3f68d4):(cache$1[_0x240ca1]||(cache$1[_0x240ca1]=new Manager(_0x1da25e,_0x3f68d4)),_0xc1e6d=cache$1[_0x240ca1]),_0x41d3dc['query']&&!_0x3f68d4['query']&&(_0x3f68d4['query']=_0x41d3dc['queryKey']),_0xc1e6d['socket'](_0x41d3dc['path'],_0x3f68d4);}var requiresPort,hasRequiredRequiresPort;function requireRequiresPort(){return hasRequiredRequiresPort||(hasRequiredRequiresPort=0x1,requiresPort=function(_0x361c1b,_0x20e7ab){if(_0x20e7ab=_0x20e7ab['split'](':')[0x0],!(_0x361c1b=+_0x361c1b))return!0x1;switch(_0x20e7ab){case'http':case'ws':return 0x50!==_0x361c1b;case'https':case'wss':return 0x1bb!==_0x361c1b;case'ftp':return 0x15!==_0x361c1b;case'gopher':return 0x46!==_0x361c1b;case'file':return!0x1;}return 0x0!==_0x361c1b;}),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 _0x349b73=Object['prototype']['hasOwnProperty'];function _0x98868a(_0x4857d0){try{return decodeURIComponent(_0x4857d0['replace'](/\+/g,'\x20'));}catch(_0x572bd7){return null;}}function _0x3f1b79(_0x1d10a3){try{return encodeURIComponent(_0x1d10a3);}catch(_0x5b04ad){return null;}}return querystringify['stringify']=function(_0x2b12a9,_0x296ddf){_0x296ddf=_0x296ddf||'';var _0x276f53,_0x45e1e8,_0x28538e=[];for(_0x45e1e8 in('string'!=typeof _0x296ddf&&(_0x296ddf='?'),_0x2b12a9))if(_0x349b73['call'](_0x2b12a9,_0x45e1e8)){if((_0x276f53=_0x2b12a9[_0x45e1e8])||null!=_0x276f53&&!isNaN(_0x276f53)||(_0x276f53=''),_0x45e1e8=_0x3f1b79(_0x45e1e8),_0x276f53=_0x3f1b79(_0x276f53),null===_0x45e1e8||null===_0x276f53)continue;_0x28538e['push'](_0x45e1e8+'='+_0x276f53);}return _0x28538e['length']?_0x296ddf+_0x28538e['join']('&'):'';},querystringify['parse']=function(_0x499d3a){for(var _0x1d826f,_0x2d8bb0=/([^=?#&]+)=?([^&]*)/g,_0x52218b={};_0x1d826f=_0x2d8bb0['exec'](_0x499d3a);){var _0x2a6846=_0x98868a(_0x1d826f[0x1]),_0x388f74=_0x98868a(_0x1d826f[0x2]);null===_0x2a6846||null===_0x388f74||_0x2a6846 in _0x52218b||(_0x52218b[_0x2a6846]=_0x388f74);}return _0x52218b;},querystringify;}function requireUrlParse(){if(hasRequiredUrlParse)return urlParse;hasRequiredUrlParse=0x1;var _0x229743=requireRequiresPort(),_0x7b5058=requireQuerystringify(),_0x3e0fe0=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,_0x8a9826=/[\n\r\t]/g,_0x127905=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,_0xbc743b=/:\d+$/,_0x25f02b=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,_0x13de87=/^[a-zA-Z]:/;function _0x51ab7e(_0x4a0ac3){return(_0x4a0ac3||'')['toString']()['replace'](_0x3e0fe0,'');}var _0x40a2f3=[['#','hash'],['?','query'],function(_0x433e1d,_0x2e5b9a){return _0x4db702(_0x2e5b9a['protocol'])?_0x433e1d['replace'](/\\/g,'/'):_0x433e1d;},['/','pathname'],['@','auth',0x1],[NaN,'host',void 0x0,0x1,0x1],[/:(\d*)$/,'port',void 0x0,0x1],[NaN,'hostname',void 0x0,0x1,0x1]],_0x4696f1={'hash':0x1,'query':0x1};function _0x1ac7bb(_0x5afc1f){var _0x2e98dc,_0x32901f=('undefined'!=typeof window?window:void 0x0!==commonjsGlobal?commonjsGlobal:'undefined'!=typeof self?self:{})['location']||{},_0x1b009a={},_0x13d4d7=typeof(_0x5afc1f=_0x5afc1f||_0x32901f);if('blob:'===_0x5afc1f['protocol'])_0x1b009a=new _0x226a1a(unescape(_0x5afc1f['pathname']),{});else{if('string'===_0x13d4d7){for(_0x2e98dc in(_0x1b009a=new _0x226a1a(_0x5afc1f,{}),_0x4696f1))delete _0x1b009a[_0x2e98dc];}else{if('object'===_0x13d4d7){for(_0x2e98dc in _0x5afc1f)_0x2e98dc in _0x4696f1||(_0x1b009a[_0x2e98dc]=_0x5afc1f[_0x2e98dc]);void 0x0===_0x1b009a['slashes']&&(_0x1b009a['slashes']=_0x127905['test'](_0x5afc1f['href']));}}}return _0x1b009a;}function _0x4db702(_0xd5007d){return'file:'===_0xd5007d||'ftp:'===_0xd5007d||'http:'===_0xd5007d||'https:'===_0xd5007d||'ws:'===_0xd5007d||'wss:'===_0xd5007d;}function _0x1c06d3(_0x17057a,_0x209ae4){_0x17057a=(_0x17057a=_0x51ab7e(_0x17057a))['replace'](_0x8a9826,''),_0x209ae4=_0x209ae4||{};var _0x1a3077,_0x1f3eb1=_0x25f02b['exec'](_0x17057a),_0x66d5ab=_0x1f3eb1[0x1]?_0x1f3eb1[0x1]['toLowerCase']():'',_0x49260b=!!_0x1f3eb1[0x2],_0x23b782=!!_0x1f3eb1[0x3],_0x4679d7=0x0;return _0x49260b?_0x23b782?(_0x1a3077=_0x1f3eb1[0x2]+_0x1f3eb1[0x3]+_0x1f3eb1[0x4],_0x4679d7=_0x1f3eb1[0x2]['length']+_0x1f3eb1[0x3]['length']):(_0x1a3077=_0x1f3eb1[0x2]+_0x1f3eb1[0x4],_0x4679d7=_0x1f3eb1[0x2]['length']):_0x23b782?(_0x1a3077=_0x1f3eb1[0x3]+_0x1f3eb1[0x4],_0x4679d7=_0x1f3eb1[0x3]['length']):_0x1a3077=_0x1f3eb1[0x4],'file:'===_0x66d5ab?_0x4679d7>=0x2&&(_0x1a3077=_0x1a3077['slice'](0x2)):_0x4db702(_0x66d5ab)?_0x1a3077=_0x1f3eb1[0x4]:_0x66d5ab?_0x49260b&&(_0x1a3077=_0x1a3077['slice'](0x2)):_0x4679d7>=0x2&&_0x4db702(_0x209ae4['protocol'])&&(_0x1a3077=_0x1f3eb1[0x4]),{'protocol':_0x66d5ab,'slashes':_0x49260b||_0x4db702(_0x66d5ab),'slashesCount':_0x4679d7,'rest':_0x1a3077};}function _0x226a1a(_0x49d267,_0x40ed86,_0x383485){if(_0x49d267=(_0x49d267=_0x51ab7e(_0x49d267))['replace'](_0x8a9826,''),!(this instanceof _0x226a1a))return new _0x226a1a(_0x49d267,_0x40ed86,_0x383485);var _0xd23125,_0x38eb12,_0x53d63d,_0x4e7a3b,_0x4affca,_0x1d7203,_0x383ddc=_0x40a2f3['slice'](),_0xcd6fa0=typeof _0x40ed86,_0x587d0b=this,_0x2fb0ef=0x0;for('object'!==_0xcd6fa0&&'string'!==_0xcd6fa0&&(_0x383485=_0x40ed86,_0x40ed86=null),_0x383485&&'function'!=typeof _0x383485&&(_0x383485=_0x7b5058['parse']),_0xd23125=!(_0x38eb12=_0x1c06d3(_0x49d267||'',_0x40ed86=_0x1ac7bb(_0x40ed86)))['protocol']&&!_0x38eb12['slashes'],_0x587d0b['slashes']=_0x38eb12['slashes']||_0xd23125&&_0x40ed86['slashes'],_0x587d0b['protocol']=_0x38eb12['protocol']||_0x40ed86['protocol']||'',_0x49d267=_0x38eb12['rest'],('file:'===_0x38eb12['protocol']&&(0x2!==_0x38eb12['slashesCount']||_0x13de87['test'](_0x49d267))||!_0x38eb12['slashes']&&(_0x38eb12['protocol']||_0x38eb12['slashesCount']<0x2||!_0x4db702(_0x587d0b['protocol'])))&&(_0x383ddc[0x3]=[/(.*)/,'pathname']);_0x2fb0ef<_0x383ddc['length'];_0x2fb0ef++)'function'!=typeof(_0x4e7a3b=_0x383ddc[_0x2fb0ef])?(_0x53d63d=_0x4e7a3b[0x0],_0x1d7203=_0x4e7a3b[0x1],_0x53d63d!=_0x53d63d?_0x587d0b[_0x1d7203]=_0x49d267:'string'==typeof _0x53d63d?~(_0x4affca='@'===_0x53d63d?_0x49d267['lastIndexOf'](_0x53d63d):_0x49d267['indexOf'](_0x53d63d))&&('number'==typeof _0x4e7a3b[0x2]?(_0x587d0b[_0x1d7203]=_0x49d267['slice'](0x0,_0x4affca),_0x49d267=_0x49d267['slice'](_0x4affca+_0x4e7a3b[0x2])):(_0x587d0b[_0x1d7203]=_0x49d267['slice'](_0x4affca),_0x49d267=_0x49d267['slice'](0x0,_0x4affca))):(_0x4affca=_0x53d63d['exec'](_0x49d267))&&(_0x587d0b[_0x1d7203]=_0x4affca[0x1],_0x49d267=_0x49d267['slice'](0x0,_0x4affca['index'])),_0x587d0b[_0x1d7203]=_0x587d0b[_0x1d7203]||_0xd23125&&_0x4e7a3b[0x3]&&_0x40ed86[_0x1d7203]||'',_0x4e7a3b[0x4]&&(_0x587d0b[_0x1d7203]=_0x587d0b[_0x1d7203]['toLowerCase']())):_0x49d267=_0x4e7a3b(_0x49d267,_0x587d0b);_0x383485&&(_0x587d0b['query']=_0x383485(_0x587d0b['query'])),_0xd23125&&_0x40ed86['slashes']&&'/'!==_0x587d0b['pathname']['charAt'](0x0)&&(''!==_0x587d0b['pathname']||''!==_0x40ed86['pathname'])&&(_0x587d0b['pathname']=function(_0xc5558c,_0x4354a9){if(''===_0xc5558c)return _0x4354a9;for(var _0x7d0e1f=(_0x4354a9||'/')['split']('/')['slice'](0x0,-0x1)['concat'](_0xc5558c['split']('/')),_0x4b5d59=_0x7d0e1f['length'],_0x130cfe=_0x7d0e1f[_0x4b5d59-0x1],_0x4a2e35=!0x1,_0x319b37=0x0;_0x4b5d59--;)'.'===_0x7d0e1f[_0x4b5d59]?_0x7d0e1f['splice'](_0x4b5d59,0x1):'..'===_0x7d0e1f[_0x4b5d59]?(_0x7d0e1f['splice'](_0x4b5d59,0x1),_0x319b37++):_0x319b37&&(0x0===_0x4b5d59&&(_0x4a2e35=!0x0),_0x7d0e1f['splice'](_0x4b5d59,0x1),_0x319b37--);return _0x4a2e35&&_0x7d0e1f['unshift'](''),'.'!==_0x130cfe&&'..'!==_0x130cfe||_0x7d0e1f['push'](''),_0x7d0e1f['join']('/');}(_0x587d0b['pathname'],_0x40ed86['pathname'])),'/'!==_0x587d0b['pathname']['charAt'](0x0)&&_0x4db702(_0x587d0b['protocol'])&&(_0x587d0b['pathname']='/'+_0x587d0b['pathname']),_0x229743(_0x587d0b['port'],_0x587d0b['protocol'])||(_0x587d0b['host']=_0x587d0b['hostname'],_0x587d0b['port']=''),_0x587d0b['username']=_0x587d0b['password']='',_0x587d0b['auth']&&(~(_0x4affca=_0x587d0b['auth']['indexOf'](':'))?(_0x587d0b['username']=_0x587d0b['auth']['slice'](0x0,_0x4affca),_0x587d0b['username']=encodeURIComponent(decodeURIComponent(_0x587d0b['username'])),_0x587d0b['password']=_0x587d0b['auth']['slice'](_0x4affca+0x1),_0x587d0b['password']=encodeURIComponent(decodeURIComponent(_0x587d0b['password']))):_0x587d0b['username']=encodeURIComponent(decodeURIComponent(_0x587d0b['auth'])),_0x587d0b['auth']=_0x587d0b['password']?_0x587d0b['username']+':'+_0x587d0b['password']:_0x587d0b['username']),_0x587d0b['origin']='file:'!==_0x587d0b['protocol']&&_0x4db702(_0x587d0b['protocol'])&&_0x587d0b['host']?_0x587d0b['protocol']+'//'+_0x587d0b['host']:'null',_0x587d0b['href']=_0x587d0b['toString']();}return _0x226a1a['prototype']={'set':function(_0x30242d,_0x3a1f1c,_0x112550){var _0x37460a=this;switch(_0x30242d){case'query':'string'==typeof _0x3a1f1c&&_0x3a1f1c['length']&&(_0x3a1f1c=(_0x112550||_0x7b5058['parse'])(_0x3a1f1c)),_0x37460a[_0x30242d]=_0x3a1f1c;break;case'port':_0x37460a[_0x30242d]=_0x3a1f1c,_0x229743(_0x3a1f1c,_0x37460a['protocol'])?_0x3a1f1c&&(_0x37460a['host']=_0x37460a['hostname']+':'+_0x3a1f1c):(_0x37460a['host']=_0x37460a['hostname'],_0x37460a[_0x30242d]='');break;case'hostname':_0x37460a[_0x30242d]=_0x3a1f1c,_0x37460a['port']&&(_0x3a1f1c+=':'+_0x37460a['port']),_0x37460a['host']=_0x3a1f1c;break;case'host':_0x37460a[_0x30242d]=_0x3a1f1c,_0xbc743b['test'](_0x3a1f1c)?(_0x3a1f1c=_0x3a1f1c['split'](':'),_0x37460a['port']=_0x3a1f1c['pop'](),_0x37460a['hostname']=_0x3a1f1c['join'](':')):(_0x37460a['hostname']=_0x3a1f1c,_0x37460a['port']='');break;case'protocol':_0x37460a['protocol']=_0x3a1f1c['toLowerCase'](),_0x37460a['slashes']=!_0x112550;break;case'pathname':case'hash':if(_0x3a1f1c){var _0x19a8b1='pathname'===_0x30242d?'/':'#';_0x37460a[_0x30242d]=_0x3a1f1c['charAt'](0x0)!==_0x19a8b1?_0x19a8b1+_0x3a1f1c:_0x3a1f1c;}else _0x37460a[_0x30242d]=_0x3a1f1c;break;case'username':case'password':_0x37460a[_0x30242d]=encodeURIComponent(_0x3a1f1c);break;case'auth':var _0x3b3c62=_0x3a1f1c['indexOf'](':');~_0x3b3c62?(_0x37460a['username']=_0x3a1f1c['slice'](0x0,_0x3b3c62),_0x37460a['username']=encodeURIComponent(decodeURIComponent(_0x37460a['username'])),_0x37460a['password']=_0x3a1f1c['slice'](_0x3b3c62+0x1),_0x37460a['password']=encodeURIComponent(decodeURIComponent(_0x37460a['password']))):_0x37460a['username']=encodeURIComponent(decodeURIComponent(_0x3a1f1c));}for(var _0x1a6fc2=0x0;_0x1a6fc2<_0x40a2f3['length'];_0x1a6fc2++){var _0x18d3ca=_0x40a2f3[_0x1a6fc2];_0x18d3ca[0x4]&&(_0x37460a[_0x18d3ca[0x1]]=_0x37460a[_0x18d3ca[0x1]]['toLowerCase']());}return _0x37460a['auth']=_0x37460a['password']?_0x37460a['username']+':'+_0x37460a['password']:_0x37460a['username'],_0x37460a['origin']='file:'!==_0x37460a['protocol']&&_0x4db702(_0x37460a['protocol'])&&_0x37460a['host']?_0x37460a['protocol']+'//'+_0x37460a['host']:'null',_0x37460a['href']=_0x37460a['toString'](),_0x37460a;},'toString':function(_0x215ccf){_0x215ccf&&'function'==typeof _0x215ccf||(_0x215ccf=_0x7b5058['stringify']);var _0x21933f,_0x358d59=this,_0x121350=_0x358d59['host'],_0x9d4873=_0x358d59['protocol'];_0x9d4873&&':'!==_0x9d4873['charAt'](_0x9d4873['length']-0x1)&&(_0x9d4873+=':');var _0x1dd1b7=_0x9d4873+(_0x358d59['protocol']&&_0x358d59['slashes']||_0x4db702(_0x358d59['protocol'])?'//':'');return _0x358d59['username']?(_0x1dd1b7+=_0x358d59['username'],_0x358d59['password']&&(_0x1dd1b7+=':'+_0x358d59['password']),_0x1dd1b7+='@'):_0x358d59['password']?(_0x1dd1b7+=':'+_0x358d59['password'],_0x1dd1b7+='@'):'file:'!==_0x358d59['protocol']&&_0x4db702(_0x358d59['protocol'])&&!_0x121350&&'/'!==_0x358d59['pathname']&&(_0x1dd1b7+='@'),(':'===_0x121350[_0x121350['length']-0x1]||_0xbc743b['test'](_0x358d59['hostname'])&&!_0x358d59['port'])&&(_0x121350+=':'),_0x1dd1b7+=_0x121350+_0x358d59['pathname'],(_0x21933f='object'==typeof _0x358d59['query']?_0x215ccf(_0x358d59['query']):_0x358d59['query'])&&(_0x1dd1b7+='?'!==_0x21933f['charAt'](0x0)?'?'+_0x21933f:_0x21933f),_0x358d59['hash']&&(_0x1dd1b7+=_0x358d59['hash']),_0x1dd1b7;}},_0x226a1a['extractProtocol']=_0x1c06d3,_0x226a1a['location']=_0x1ac7bb,_0x226a1a['trimLeft']=_0x51ab7e,_0x226a1a['qs']=_0x7b5058,urlParse=_0x226a1a;}var urlParseExports=requireUrlParse();let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){if(!getRandomValues&&(getRandomValues='undefined'!=typeof crypto&&crypto['getRandomValues']&&crypto['getRandomValues']['bind'](crypto),!getRandomValues))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return getRandomValues(rnds8);}const byteToHex=[];for(let e=0x0;e<0x100;++e)byteToHex['push']((e+0x100)['toString'](0x10)['slice'](0x1));function unsafeStringify(_0x50711b,_0x5347ee=0x0){return byteToHex[_0x50711b[_0x5347ee+0x0]]+byteToHex[_0x50711b[_0x5347ee+0x1]]+byteToHex[_0x50711b[_0x5347ee+0x2]]+byteToHex[_0x50711b[_0x5347ee+0x3]]+'-'+byteToHex[_0x50711b[_0x5347ee+0x4]]+byteToHex[_0x50711b[_0x5347ee+0x5]]+'-'+byteToHex[_0x50711b[_0x5347ee+0x6]]+byteToHex[_0x50711b[_0x5347ee+0x7]]+'-'+byteToHex[_0x50711b[_0x5347ee+0x8]]+byteToHex[_0x50711b[_0x5347ee+0x9]]+'-'+byteToHex[_0x50711b[_0x5347ee+0xa]]+byteToHex[_0x50711b[_0x5347ee+0xb]]+byteToHex[_0x50711b[_0x5347ee+0xc]]+byteToHex[_0x50711b[_0x5347ee+0xd]]+byteToHex[_0x50711b[_0x5347ee+0xe]]+byteToHex[_0x50711b[_0x5347ee+0xf]];}const randomUUID='undefined'!=typeof crypto&&crypto['randomUUID']&&crypto['randomUUID']['bind'](crypto);var native$1={'randomUUID':randomUUID};function v4(_0x35cfaf,_0x20fa58,_0x25a1dc){if(native$1['randomUUID']&&!_0x35cfaf)return native$1['randomUUID']();const _0x35a405=(_0x35cfaf=_0x35cfaf||{})['random']||(_0x35cfaf['rng']||rng)();return _0x35a405[0x6]=0xf&_0x35a405[0x6]|0x40,_0x35a405[0x8]=0x3f&_0x35a405[0x8]|0x80,unsafeStringify(_0x35a405);}class Descriptor{static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x5d00ae){}}class Message extends Descriptor{static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x1dd68f){super();}static['fromJSON'](_0x3b2292){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(_0x2a9c48){super(),this['id']=_0x2a9c48;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x585438){return new GetUserMessage(_0x585438['id']);}}class GetUserResponse extends Message{['attributes'];static ['DESCRIPTOR_NAME']='GetUserResponse';static ['DESCRIPTOR']={'fields':{'attributes':{'rule':'repeated','type':'KeyValueDescriptor','id':0x1}}};constructor(_0x3bf263){super(),this['attributes']=_0x3bf263;}['toJSON'](){return{'attributes':Object['keys'](this['attributes'])['map'](_0x52a5aa=>({'key':_0x52a5aa,'value':JSON['stringify'](this['attributes'][_0x52a5aa])}))};}static['fromJSON'](_0x250dec){const _0x1570f5=_0x250dec['attributes']['reduce']((_0x5b00e1,_0x14500c)=>(_0x5b00e1[_0x14500c['key']]=_0x14500c['value']?JSON['parse'](_0x14500c['value']):null,_0x5b00e1),{});return new GetUserResponse(_0x1570f5);}}const messages$1=/* #__PURE__ -- @preserve */
((()=>{var _0x254bdb=minimalExports['Reader'],_0x320e1c=minimalExports['Writer'],_0x32c136=minimalExports['util'],_0xdb1853=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0xdb1853['StringStringPacketDataMessage']=(function(){function _0x4be4a4(_0xb6ca22){if(_0xb6ca22){for(var _0x240b13=Object['keys'](_0xb6ca22),_0x9aaa6d=0x0;_0x9aaa6d<_0x240b13['length'];++_0x9aaa6d)null!=_0xb6ca22[_0x240b13[_0x9aaa6d]]&&(this[_0x240b13[_0x9aaa6d]]=_0xb6ca22[_0x240b13[_0x9aaa6d]]);}}return _0x4be4a4['prototype']['data']='',_0x4be4a4['prototype']['data1']='',_0x4be4a4['create']=function(_0x4ee6eb){return new _0x4be4a4(_0x4ee6eb);},_0x4be4a4['encode']=function(_0x25448f,_0x32391d){return _0x32391d||(_0x32391d=_0x320e1c['create']()),null!=_0x25448f['data']&&Object['hasOwnProperty']['call'](_0x25448f,'data')&&_0x32391d['uint32'](0xa)['string'](_0x25448f['data']),null!=_0x25448f['data1']&&Object['hasOwnProperty']['call'](_0x25448f,'data1')&&_0x32391d['uint32'](0x12)['string'](_0x25448f['data1']),_0x32391d;},_0x4be4a4['encodeDelimited']=function(_0x3da6fc,_0x5381e9){return this['encode'](_0x3da6fc,_0x5381e9)['ldelim']();},_0x4be4a4['decode']=function(_0x804e56,_0x56ce55,_0x28f98c){_0x804e56 instanceof _0x254bdb||(_0x804e56=_0x254bdb['create'](_0x804e56));for(var _0xcb500e=void 0x0===_0x56ce55?_0x804e56['len']:_0x804e56['pos']+_0x56ce55,_0xa45849=new _0xdb1853['StringStringPacketDataMessage']();_0x804e56['pos']<_0xcb500e;){var _0x3cdec0=_0x804e56['uint32']();if(_0x3cdec0===_0x28f98c)break;switch(_0x3cdec0>>>0x3){case 0x1:_0xa45849['data']=_0x804e56['string']();break;case 0x2:_0xa45849['data1']=_0x804e56['string']();break;default:_0x804e56['skipType'](0x7&_0x3cdec0);}}return _0xa45849;},_0x4be4a4['decodeDelimited']=function(_0xfbc90d){return _0xfbc90d instanceof _0x254bdb||(_0xfbc90d=new _0x254bdb(_0xfbc90d)),this['decode'](_0xfbc90d,_0xfbc90d['uint32']());},_0x4be4a4['verify']=function(_0x4bfcd8){return'object'!=typeof _0x4bfcd8||null===_0x4bfcd8?'object\x20expected':null!=_0x4bfcd8['data']&&_0x4bfcd8['hasOwnProperty']('data')&&!_0x32c136['isString'](_0x4bfcd8['data'])?'data:\x20string\x20expected':null!=_0x4bfcd8['data1']&&_0x4bfcd8['hasOwnProperty']('data1')&&!_0x32c136['isString'](_0x4bfcd8['data1'])?'data1:\x20string\x20expected':null;},_0x4be4a4['fromObject']=function(_0x33e5d5){if(_0x33e5d5 instanceof _0xdb1853['StringStringPacketDataMessage'])return _0x33e5d5;var _0x26b7f0=new _0xdb1853['StringStringPacketDataMessage']();return null!=_0x33e5d5['data']&&(_0x26b7f0['data']=String(_0x33e5d5['data'])),null!=_0x33e5d5['data1']&&(_0x26b7f0['data1']=String(_0x33e5d5['data1'])),_0x26b7f0;},_0x4be4a4['toObject']=function(_0x2cbd29,_0x12a27f){_0x12a27f||(_0x12a27f={});var _0x23977a={};return _0x12a27f['defaults']&&(_0x23977a['data']='',_0x23977a['data1']=''),null!=_0x2cbd29['data']&&_0x2cbd29['hasOwnProperty']('data')&&(_0x23977a['data']=_0x2cbd29['data']),null!=_0x2cbd29['data1']&&_0x2cbd29['hasOwnProperty']('data1')&&(_0x23977a['data1']=_0x2cbd29['data1']),_0x23977a;},_0x4be4a4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4be4a4['getTypeUrl']=function(_0x1d37c0){return void 0x0===_0x1d37c0&&(_0x1d37c0='type.googleapis.com'),_0x1d37c0+'/StringStringPacketDataMessage';},_0x4be4a4;}()),_0xdb1853['StringObjectPacketDataMessage']=(function(){function _0x2f838e(_0x25077d){if(_0x25077d){for(var _0x5a1e6a=Object['keys'](_0x25077d),_0x52f86a=0x0;_0x52f86a<_0x5a1e6a['length'];++_0x52f86a)null!=_0x25077d[_0x5a1e6a[_0x52f86a]]&&(this[_0x5a1e6a[_0x52f86a]]=_0x25077d[_0x5a1e6a[_0x52f86a]]);}}return _0x2f838e['prototype']['data']='',_0x2f838e['prototype']['data1']='',_0x2f838e['create']=function(_0x4564c5){return new _0x2f838e(_0x4564c5);},_0x2f838e['encode']=function(_0x3e2f14,_0x5a19b3){return _0x5a19b3||(_0x5a19b3=_0x320e1c['create']()),null!=_0x3e2f14['data']&&Object['hasOwnProperty']['call'](_0x3e2f14,'data')&&_0x5a19b3['uint32'](0xa)['string'](_0x3e2f14['data']),null!=_0x3e2f14['data1']&&Object['hasOwnProperty']['call'](_0x3e2f14,'data1')&&_0x5a19b3['uint32'](0x12)['string'](_0x3e2f14['data1']),_0x5a19b3;},_0x2f838e['encodeDelimited']=function(_0x2bf3dd,_0x3a5d0f){return this['encode'](_0x2bf3dd,_0x3a5d0f)['ldelim']();},_0x2f838e['decode']=function(_0x47aeb2,_0x6a5cc,_0x1d4301){_0x47aeb2 instanceof _0x254bdb||(_0x47aeb2=_0x254bdb['create'](_0x47aeb2));for(var _0x20ebf6=void 0x0===_0x6a5cc?_0x47aeb2['len']:_0x47aeb2['pos']+_0x6a5cc,_0x13f92a=new _0xdb1853['StringObjectPacketDataMessage']();_0x47aeb2['pos']<_0x20ebf6;){var _0x3ba54b=_0x47aeb2['uint32']();if(_0x3ba54b===_0x1d4301)break;switch(_0x3ba54b>>>0x3){case 0x1:_0x13f92a['data']=_0x47aeb2['string']();break;case 0x2:_0x13f92a['data1']=_0x47aeb2['string']();break;default:_0x47aeb2['skipType'](0x7&_0x3ba54b);}}return _0x13f92a;},_0x2f838e['decodeDelimited']=function(_0x2fb5b8){return _0x2fb5b8 instanceof _0x254bdb||(_0x2fb5b8=new _0x254bdb(_0x2fb5b8)),this['decode'](_0x2fb5b8,_0x2fb5b8['uint32']());},_0x2f838e['verify']=function(_0x2813a3){return'object'!=typeof _0x2813a3||null===_0x2813a3?'object\x20expected':null!=_0x2813a3['data']&&_0x2813a3['hasOwnProperty']('data')&&!_0x32c136['isString'](_0x2813a3['data'])?'data:\x20string\x20expected':null!=_0x2813a3['data1']&&_0x2813a3['hasOwnProperty']('data1')&&!_0x32c136['isString'](_0x2813a3['data1'])?'data1:\x20string\x20expected':null;},_0x2f838e['fromObject']=function(_0x13f66a){if(_0x13f66a instanceof _0xdb1853['StringObjectPacketDataMessage'])return _0x13f66a;var _0x1e99fa=new _0xdb1853['StringObjectPacketDataMessage']();return null!=_0x13f66a['data']&&(_0x1e99fa['data']=String(_0x13f66a['data'])),null!=_0x13f66a['data1']&&(_0x1e99fa['data1']=String(_0x13f66a['data1'])),_0x1e99fa;},_0x2f838e['toObject']=function(_0x28916d,_0x456a6b){_0x456a6b||(_0x456a6b={});var _0x5a0235={};return _0x456a6b['defaults']&&(_0x5a0235['data']='',_0x5a0235['data1']=''),null!=_0x28916d['data']&&_0x28916d['hasOwnProperty']('data')&&(_0x5a0235['data']=_0x28916d['data']),null!=_0x28916d['data1']&&_0x28916d['hasOwnProperty']('data1')&&(_0x5a0235['data1']=_0x28916d['data1']),_0x5a0235;},_0x2f838e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2f838e['getTypeUrl']=function(_0x5262f8){return void 0x0===_0x5262f8&&(_0x5262f8='type.googleapis.com'),_0x5262f8+'/StringObjectPacketDataMessage';},_0x2f838e;}()),_0xdb1853['StringNumberPacketDataMessage']=(function(){function _0x212d8c(_0x50929d){if(_0x50929d){for(var _0x355794=Object['keys'](_0x50929d),_0xb3f8d2=0x0;_0xb3f8d2<_0x355794['length'];++_0xb3f8d2)null!=_0x50929d[_0x355794[_0xb3f8d2]]&&(this[_0x355794[_0xb3f8d2]]=_0x50929d[_0x355794[_0xb3f8d2]]);}}return _0x212d8c['prototype']['data']='',_0x212d8c['prototype']['data1']=0x0,_0x212d8c['create']=function(_0x227744){return new _0x212d8c(_0x227744);},_0x212d8c['encode']=function(_0x2648ec,_0x1b88af){return _0x1b88af||(_0x1b88af=_0x320e1c['create']()),null!=_0x2648ec['data']&&Object['hasOwnProperty']['call'](_0x2648ec,'data')&&_0x1b88af['uint32'](0xa)['string'](_0x2648ec['data']),null!=_0x2648ec['data1']&&Object['hasOwnProperty']['call'](_0x2648ec,'data1')&&_0x1b88af['uint32'](0x10)['uint32'](_0x2648ec['data1']),_0x1b88af;},_0x212d8c['encodeDelimited']=function(_0x14088e,_0x33435c){return this['encode'](_0x14088e,_0x33435c)['ldelim']();},_0x212d8c['decode']=function(_0x5c6c65,_0x2f0806,_0x1e4918){_0x5c6c65 instanceof _0x254bdb||(_0x5c6c65=_0x254bdb['create'](_0x5c6c65));for(var _0x51387b=void 0x0===_0x2f0806?_0x5c6c65['len']:_0x5c6c65['pos']+_0x2f0806,_0x58e929=new _0xdb1853['StringNumberPacketDataMessage']();_0x5c6c65['pos']<_0x51387b;){var _0x45cba8=_0x5c6c65['uint32']();if(_0x45cba8===_0x1e4918)break;switch(_0x45cba8>>>0x3){case 0x1:_0x58e929['data']=_0x5c6c65['string']();break;case 0x2:_0x58e929['data1']=_0x5c6c65['uint32']();break;default:_0x5c6c65['skipType'](0x7&_0x45cba8);}}return _0x58e929;},_0x212d8c['decodeDelimited']=function(_0x5df4cc){return _0x5df4cc instanceof _0x254bdb||(_0x5df4cc=new _0x254bdb(_0x5df4cc)),this['decode'](_0x5df4cc,_0x5df4cc['uint32']());},_0x212d8c['verify']=function(_0x3a98af){return'object'!=typeof _0x3a98af||null===_0x3a98af?'object\x20expected':null!=_0x3a98af['data']&&_0x3a98af['hasOwnProperty']('data')&&!_0x32c136['isString'](_0x3a98af['data'])?'data:\x20string\x20expected':null!=_0x3a98af['data1']&&_0x3a98af['hasOwnProperty']('data1')&&!_0x32c136['isInteger'](_0x3a98af['data1'])?'data1:\x20integer\x20expected':null;},_0x212d8c['fromObject']=function(_0x2caeb8){if(_0x2caeb8 instanceof _0xdb1853['StringNumberPacketDataMessage'])return _0x2caeb8;var _0x145e03=new _0xdb1853['StringNumberPacketDataMessage']();return null!=_0x2caeb8['data']&&(_0x145e03['data']=String(_0x2caeb8['data'])),null!=_0x2caeb8['data1']&&(_0x145e03['data1']=_0x2caeb8['data1']>>>0x0),_0x145e03;},_0x212d8c['toObject']=function(_0xf0de04,_0xa64494){_0xa64494||(_0xa64494={});var _0x40fae0={};return _0xa64494['defaults']&&(_0x40fae0['data']='',_0x40fae0['data1']=0x0),null!=_0xf0de04['data']&&_0xf0de04['hasOwnProperty']('data')&&(_0x40fae0['data']=_0xf0de04['data']),null!=_0xf0de04['data1']&&_0xf0de04['hasOwnProperty']('data1')&&(_0x40fae0['data1']=_0xf0de04['data1']),_0x40fae0;},_0x212d8c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x212d8c['getTypeUrl']=function(_0x1d8170){return void 0x0===_0x1d8170&&(_0x1d8170='type.googleapis.com'),_0x1d8170+'/StringNumberPacketDataMessage';},_0x212d8c;}()),_0xdb1853['StringBytesPacketDataMessage']=(function(){function _0x5ac906(_0x4b3036){if(_0x4b3036){for(var _0x5c1b9d=Object['keys'](_0x4b3036),_0x341712=0x0;_0x341712<_0x5c1b9d['length'];++_0x341712)null!=_0x4b3036[_0x5c1b9d[_0x341712]]&&(this[_0x5c1b9d[_0x341712]]=_0x4b3036[_0x5c1b9d[_0x341712]]);}}return _0x5ac906['prototype']['data']='',_0x5ac906['prototype']['data1']=_0x32c136['newBuffer']([]),_0x5ac906['create']=function(_0x5131cb){return new _0x5ac906(_0x5131cb);},_0x5ac906['encode']=function(_0xae35ed,_0x32ce20){return _0x32ce20||(_0x32ce20=_0x320e1c['create']()),null!=_0xae35ed['data']&&Object['hasOwnProperty']['call'](_0xae35ed,'data')&&_0x32ce20['uint32'](0xa)['string'](_0xae35ed['data']),null!=_0xae35ed['data1']&&Object['hasOwnProperty']['call'](_0xae35ed,'data1')&&_0x32ce20['uint32'](0x12)['bytes'](_0xae35ed['data1']),_0x32ce20;},_0x5ac906['encodeDelimited']=function(_0x352c94,_0x144629){return this['encode'](_0x352c94,_0x144629)['ldelim']();},_0x5ac906['decode']=function(_0x2f1de0,_0x59ef7e,_0x4e6ccd){_0x2f1de0 instanceof _0x254bdb||(_0x2f1de0=_0x254bdb['create'](_0x2f1de0));for(var _0x5db69b=void 0x0===_0x59ef7e?_0x2f1de0['len']:_0x2f1de0['pos']+_0x59ef7e,_0x2f0098=new _0xdb1853['StringBytesPacketDataMessage']();_0x2f1de0['pos']<_0x5db69b;){var _0x2b5804=_0x2f1de0['uint32']();if(_0x2b5804===_0x4e6ccd)break;switch(_0x2b5804>>>0x3){case 0x1:_0x2f0098['data']=_0x2f1de0['string']();break;case 0x2:_0x2f0098['data1']=_0x2f1de0['bytes']();break;default:_0x2f1de0['skipType'](0x7&_0x2b5804);}}return _0x2f0098;},_0x5ac906['decodeDelimited']=function(_0x452bab){return _0x452bab instanceof _0x254bdb||(_0x452bab=new _0x254bdb(_0x452bab)),this['decode'](_0x452bab,_0x452bab['uint32']());},_0x5ac906['verify']=function(_0x5b88ab){return'object'!=typeof _0x5b88ab||null===_0x5b88ab?'object\x20expected':null!=_0x5b88ab['data']&&_0x5b88ab['hasOwnProperty']('data')&&!_0x32c136['isString'](_0x5b88ab['data'])?'data:\x20string\x20expected':null!=_0x5b88ab['data1']&&_0x5b88ab['hasOwnProperty']('data1')&&!(_0x5b88ab['data1']&&'number'==typeof _0x5b88ab['data1']['length']||_0x32c136['isString'](_0x5b88ab['data1']))?'data1:\x20buffer\x20expected':null;},_0x5ac906['fromObject']=function(_0x24a3a2){if(_0x24a3a2 instanceof _0xdb1853['StringBytesPacketDataMessage'])return _0x24a3a2;var _0x265d28=new _0xdb1853['StringBytesPacketDataMessage']();return null!=_0x24a3a2['data']&&(_0x265d28['data']=String(_0x24a3a2['data'])),null!=_0x24a3a2['data1']&&('string'==typeof _0x24a3a2['data1']?_0x32c136['base64']['decode'](_0x24a3a2['data1'],_0x265d28['data1']=_0x32c136['newBuffer'](_0x32c136['base64']['length'](_0x24a3a2['data1'])),0x0):_0x24a3a2['data1']['length']>=0x0&&(_0x265d28['data1']=_0x24a3a2['data1'])),_0x265d28;},_0x5ac906['toObject']=function(_0x592e97,_0x27909a){_0x27909a||(_0x27909a={});var _0x493b82={};return _0x27909a['defaults']&&(_0x493b82['data']='',_0x27909a['bytes']===String?_0x493b82['data1']='':(_0x493b82['data1']=[],_0x27909a['bytes']!==Array&&(_0x493b82['data1']=_0x32c136['newBuffer'](_0x493b82['data1'])))),null!=_0x592e97['data']&&_0x592e97['hasOwnProperty']('data')&&(_0x493b82['data']=_0x592e97['data']),null!=_0x592e97['data1']&&_0x592e97['hasOwnProperty']('data1')&&(_0x493b82['data1']=_0x27909a['bytes']===String?_0x32c136['base64']['encode'](_0x592e97['data1'],0x0,_0x592e97['data1']['length']):_0x27909a['bytes']===Array?Array['prototype']['slice']['call'](_0x592e97['data1']):_0x592e97['data1']),_0x493b82;},_0x5ac906['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5ac906['getTypeUrl']=function(_0x1304a5){return void 0x0===_0x1304a5&&(_0x1304a5='type.googleapis.com'),_0x1304a5+'/StringBytesPacketDataMessage';},_0x5ac906;}()),_0xdb1853['PacketOptionsMessage']=(function(){function _0x221731(_0x309451){if(this['rooms']=[],this['except']=[],_0x309451){for(var _0x5dc12a=Object['keys'](_0x309451),_0x4590e6=0x0;_0x4590e6<_0x5dc12a['length'];++_0x4590e6)null!=_0x309451[_0x5dc12a[_0x4590e6]]&&(this[_0x5dc12a[_0x4590e6]]=_0x309451[_0x5dc12a[_0x4590e6]]);}}return _0x221731['prototype']['flags']='',_0x221731['prototype']['rooms']=_0x32c136['emptyArray'],_0x221731['prototype']['except']=_0x32c136['emptyArray'],_0x221731['create']=function(_0xec9a04){return new _0x221731(_0xec9a04);},_0x221731['encode']=function(_0x23f7e3,_0x2925b2){if(_0x2925b2||(_0x2925b2=_0x320e1c['create']()),null!=_0x23f7e3['flags']&&Object['hasOwnProperty']['call'](_0x23f7e3,'flags')&&_0x2925b2['uint32'](0xa)['string'](_0x23f7e3['flags']),null!=_0x23f7e3['rooms']&&_0x23f7e3['rooms']['length']){for(var _0x103941=0x0;_0x103941<_0x23f7e3['rooms']['length'];++_0x103941)_0x2925b2['uint32'](0x12)['string'](_0x23f7e3['rooms'][_0x103941]);}if(null!=_0x23f7e3['except']&&_0x23f7e3['except']['length']){for(_0x103941=0x0;_0x103941<_0x23f7e3['except']['length'];++_0x103941)_0x2925b2['uint32'](0x1a)['string'](_0x23f7e3['except'][_0x103941]);}return _0x2925b2;},_0x221731['encodeDelimited']=function(_0x27cce3,_0x56c6a1){return this['encode'](_0x27cce3,_0x56c6a1)['ldelim']();},_0x221731['decode']=function(_0x32c129,_0x2bf443,_0x69e4c7){_0x32c129 instanceof _0x254bdb||(_0x32c129=_0x254bdb['create'](_0x32c129));for(var _0x24bb03=void 0x0===_0x2bf443?_0x32c129['len']:_0x32c129['pos']+_0x2bf443,_0x12a02a=new _0xdb1853['PacketOptionsMessage']();_0x32c129['pos']<_0x24bb03;){var _0x2e3c7d=_0x32c129['uint32']();if(_0x2e3c7d===_0x69e4c7)break;switch(_0x2e3c7d>>>0x3){case 0x1:_0x12a02a['flags']=_0x32c129['string']();break;case 0x2:_0x12a02a['rooms']&&_0x12a02a['rooms']['length']||(_0x12a02a['rooms']=[]),_0x12a02a['rooms']['push'](_0x32c129['string']());break;case 0x3:_0x12a02a['except']&&_0x12a02a['except']['length']||(_0x12a02a['except']=[]),_0x12a02a['except']['push'](_0x32c129['string']());break;default:_0x32c129['skipType'](0x7&_0x2e3c7d);}}return _0x12a02a;},_0x221731['decodeDelimited']=function(_0x2e8193){return _0x2e8193 instanceof _0x254bdb||(_0x2e8193=new _0x254bdb(_0x2e8193)),this['decode'](_0x2e8193,_0x2e8193['uint32']());},_0x221731['verify']=function(_0x41e542){if('object'!=typeof _0x41e542||null===_0x41e542)return'object\x20expected';if(null!=_0x41e542['flags']&&_0x41e542['hasOwnProperty']('flags')&&!_0x32c136['isString'](_0x41e542['flags']))return'flags:\x20string\x20expected';if(null!=_0x41e542['rooms']&&_0x41e542['hasOwnProperty']('rooms')){if(!Array['isArray'](_0x41e542['rooms']))return'rooms:\x20array\x20expected';for(var _0x462413=0x0;_0x462413<_0x41e542['rooms']['length'];++_0x462413)if(!_0x32c136['isString'](_0x41e542['rooms'][_0x462413]))return'rooms:\x20string[]\x20expected';}if(null!=_0x41e542['except']&&_0x41e542['hasOwnProperty']('except')){if(!Array['isArray'](_0x41e542['except']))return'except:\x20array\x20expected';for(_0x462413=0x0;_0x462413<_0x41e542['except']['length'];++_0x462413)if(!_0x32c136['isString'](_0x41e542['except'][_0x462413]))return'except:\x20string[]\x20expected';}return null;},_0x221731['fromObject']=function(_0x24a617){if(_0x24a617 instanceof _0xdb1853['PacketOptionsMessage'])return _0x24a617;var _0x3914ed=new _0xdb1853['PacketOptionsMessage']();if(null!=_0x24a617['flags']&&(_0x3914ed['flags']=String(_0x24a617['flags'])),_0x24a617['rooms']){if(!Array['isArray'](_0x24a617['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0x3914ed['rooms']=[];for(var _0x132319=0x0;_0x132319<_0x24a617['rooms']['length'];++_0x132319)_0x3914ed['rooms'][_0x132319]=String(_0x24a617['rooms'][_0x132319]);}if(_0x24a617['except']){if(!Array['isArray'](_0x24a617['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');for(_0x3914ed['except']=[],_0x132319=0x0;_0x132319<_0x24a617['except']['length'];++_0x132319)_0x3914ed['except'][_0x132319]=String(_0x24a617['except'][_0x132319]);}return _0x3914ed;},_0x221731['toObject']=function(_0xefb4e5,_0x236023){_0x236023||(_0x236023={});var _0x292383={};if((_0x236023['arrays']||_0x236023['defaults'])&&(_0x292383['rooms']=[],_0x292383['except']=[]),_0x236023['defaults']&&(_0x292383['flags']=''),null!=_0xefb4e5['flags']&&_0xefb4e5['hasOwnProperty']('flags')&&(_0x292383['flags']=_0xefb4e5['flags']),_0xefb4e5['rooms']&&_0xefb4e5['rooms']['length']){_0x292383['rooms']=[];for(var _0x4ec0d8=0x0;_0x4ec0d8<_0xefb4e5['rooms']['length'];++_0x4ec0d8)_0x292383['rooms'][_0x4ec0d8]=_0xefb4e5['rooms'][_0x4ec0d8];}if(_0xefb4e5['except']&&_0xefb4e5['except']['length']){for(_0x292383['except']=[],_0x4ec0d8=0x0;_0x4ec0d8<_0xefb4e5['except']['length'];++_0x4ec0d8)_0x292383['except'][_0x4ec0d8]=_0xefb4e5['except'][_0x4ec0d8];}return _0x292383;},_0x221731['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x221731['getTypeUrl']=function(_0x3a9d97){return void 0x0===_0x3a9d97&&(_0x3a9d97='type.googleapis.com'),_0x3a9d97+'/PacketOptionsMessage';},_0x221731;}()),_0xdb1853['PacketMessage']=(function(){function _0x4c5883(_0x1580c2){if(_0x1580c2){for(var _0x3c5556=Object['keys'](_0x1580c2),_0x606f0d=0x0;_0x606f0d<_0x3c5556['length'];++_0x606f0d)null!=_0x1580c2[_0x3c5556[_0x606f0d]]&&(this[_0x3c5556[_0x606f0d]]=_0x1580c2[_0x3c5556[_0x606f0d]]);}}return _0x4c5883['prototype']['type']=0x0,_0x4c5883['prototype']['id']=0x0,_0x4c5883['prototype']['nsp']='',_0x4c5883['prototype']['data']=_0x32c136['newBuffer']([]),_0x4c5883['prototype']['options']=_0x32c136['newBuffer']([]),_0x4c5883['create']=function(_0x3920b4){return new _0x4c5883(_0x3920b4);},_0x4c5883['encode']=function(_0xb44593,_0xb3a4e0){return _0xb3a4e0||(_0xb3a4e0=_0x320e1c['create']()),null!=_0xb44593['type']&&Object['hasOwnProperty']['call'](_0xb44593,'type')&&_0xb3a4e0['uint32'](0x8)['uint32'](_0xb44593['type']),null!=_0xb44593['id']&&Object['hasOwnProperty']['call'](_0xb44593,'id')&&_0xb3a4e0['uint32'](0x10)['uint32'](_0xb44593['id']),null!=_0xb44593['nsp']&&Object['hasOwnProperty']['call'](_0xb44593,'nsp')&&_0xb3a4e0['uint32'](0x1a)['string'](_0xb44593['nsp']),null!=_0xb44593['data']&&Object['hasOwnProperty']['call'](_0xb44593,'data')&&_0xb3a4e0['uint32'](0x22)['bytes'](_0xb44593['data']),null!=_0xb44593['options']&&Object['hasOwnProperty']['call'](_0xb44593,'options')&&_0xb3a4e0['uint32'](0x2a)['bytes'](_0xb44593['options']),_0xb3a4e0;},_0x4c5883['encodeDelimited']=function(_0x23a590,_0x447351){return this['encode'](_0x23a590,_0x447351)['ldelim']();},_0x4c5883['decode']=function(_0x11b31e,_0x21f602,_0x5c8080){_0x11b31e instanceof _0x254bdb||(_0x11b31e=_0x254bdb['create'](_0x11b31e));for(var _0x4ade31=void 0x0===_0x21f602?_0x11b31e['len']:_0x11b31e['pos']+_0x21f602,_0xb4469e=new _0xdb1853['PacketMessage']();_0x11b31e['pos']<_0x4ade31;){var _0x459048=_0x11b31e['uint32']();if(_0x459048===_0x5c8080)break;switch(_0x459048>>>0x3){case 0x1:_0xb4469e['type']=_0x11b31e['uint32']();break;case 0x2:_0xb4469e['id']=_0x11b31e['uint32']();break;case 0x3:_0xb4469e['nsp']=_0x11b31e['string']();break;case 0x4:_0xb4469e['data']=_0x11b31e['bytes']();break;case 0x5:_0xb4469e['options']=_0x11b31e['bytes']();break;default:_0x11b31e['skipType'](0x7&_0x459048);}}return _0xb4469e;},_0x4c5883['decodeDelimited']=function(_0x2d6a99){return _0x2d6a99 instanceof _0x254bdb||(_0x2d6a99=new _0x254bdb(_0x2d6a99)),this['decode'](_0x2d6a99,_0x2d6a99['uint32']());},_0x4c5883['verify']=function(_0x2dd4a8){return'object'!=typeof _0x2dd4a8||null===_0x2dd4a8?'object\x20expected':null!=_0x2dd4a8['type']&&_0x2dd4a8['hasOwnProperty']('type')&&!_0x32c136['isInteger'](_0x2dd4a8['type'])?'type:\x20integer\x20expected':null!=_0x2dd4a8['id']&&_0x2dd4a8['hasOwnProperty']('id')&&!_0x32c136['isInteger'](_0x2dd4a8['id'])?'id:\x20integer\x20expected':null!=_0x2dd4a8['nsp']&&_0x2dd4a8['hasOwnProperty']('nsp')&&!_0x32c136['isString'](_0x2dd4a8['nsp'])?'nsp:\x20string\x20expected':null!=_0x2dd4a8['data']&&_0x2dd4a8['hasOwnProperty']('data')&&!(_0x2dd4a8['data']&&'number'==typeof _0x2dd4a8['data']['length']||_0x32c136['isString'](_0x2dd4a8['data']))?'data:\x20buffer\x20expected':null!=_0x2dd4a8['options']&&_0x2dd4a8['hasOwnProperty']('options')&&!(_0x2dd4a8['options']&&'number'==typeof _0x2dd4a8['options']['length']||_0x32c136['isString'](_0x2dd4a8['options']))?'options:\x20buffer\x20expected':null;},_0x4c5883['fromObject']=function(_0x1021d8){if(_0x1021d8 instanceof _0xdb1853['PacketMessage'])return _0x1021d8;var _0xa8ed23=new _0xdb1853['PacketMessage']();return null!=_0x1021d8['type']&&(_0xa8ed23['type']=_0x1021d8['type']>>>0x0),null!=_0x1021d8['id']&&(_0xa8ed23['id']=_0x1021d8['id']>>>0x0),null!=_0x1021d8['nsp']&&(_0xa8ed23['nsp']=String(_0x1021d8['nsp'])),null!=_0x1021d8['data']&&('string'==typeof _0x1021d8['data']?_0x32c136['base64']['decode'](_0x1021d8['data'],_0xa8ed23['data']=_0x32c136['newBuffer'](_0x32c136['base64']['length'](_0x1021d8['data'])),0x0):_0x1021d8['data']['length']>=0x0&&(_0xa8ed23['data']=_0x1021d8['data'])),null!=_0x1021d8['options']&&('string'==typeof _0x1021d8['options']?_0x32c136['base64']['decode'](_0x1021d8['options'],_0xa8ed23['options']=_0x32c136['newBuffer'](_0x32c136['base64']['length'](_0x1021d8['options'])),0x0):_0x1021d8['options']['length']>=0x0&&(_0xa8ed23['options']=_0x1021d8['options'])),_0xa8ed23;},_0x4c5883['toObject']=function(_0x31580b,_0x19e0ff){_0x19e0ff||(_0x19e0ff={});var _0x6b75a9={};return _0x19e0ff['defaults']&&(_0x6b75a9['type']=0x0,_0x6b75a9['id']=0x0,_0x6b75a9['nsp']='',_0x19e0ff['bytes']===String?_0x6b75a9['data']='':(_0x6b75a9['data']=[],_0x19e0ff['bytes']!==Array&&(_0x6b75a9['data']=_0x32c136['newBuffer'](_0x6b75a9['data']))),_0x19e0ff['bytes']===String?_0x6b75a9['options']='':(_0x6b75a9['options']=[],_0x19e0ff['bytes']!==Array&&(_0x6b75a9['options']=_0x32c136['newBuffer'](_0x6b75a9['options'])))),null!=_0x31580b['type']&&_0x31580b['hasOwnProperty']('type')&&(_0x6b75a9['type']=_0x31580b['type']),null!=_0x31580b['id']&&_0x31580b['hasOwnProperty']('id')&&(_0x6b75a9['id']=_0x31580b['id']),null!=_0x31580b['nsp']&&_0x31580b['hasOwnProperty']('nsp')&&(_0x6b75a9['nsp']=_0x31580b['nsp']),null!=_0x31580b['data']&&_0x31580b['hasOwnProperty']('data')&&(_0x6b75a9['data']=_0x19e0ff['bytes']===String?_0x32c136['base64']['encode'](_0x31580b['data'],0x0,_0x31580b['data']['length']):_0x19e0ff['bytes']===Array?Array['prototype']['slice']['call'](_0x31580b['data']):_0x31580b['data']),null!=_0x31580b['options']&&_0x31580b['hasOwnProperty']('options')&&(_0x6b75a9['options']=_0x19e0ff['bytes']===String?_0x32c136['base64']['encode'](_0x31580b['options'],0x0,_0x31580b['options']['length']):_0x19e0ff['bytes']===Array?Array['prototype']['slice']['call'](_0x31580b['options']):_0x31580b['options']),_0x6b75a9;},_0x4c5883['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4c5883['getTypeUrl']=function(_0x80881d){return void 0x0===_0x80881d&&(_0x80881d='type.googleapis.com'),_0x80881d+'/PacketMessage';},_0x4c5883;}()),_0xdb1853['ObjectObjectPacketDataMessage']=(function(){function _0x1141a5(_0x3d6f89){if(_0x3d6f89){for(var _0x4f511e=Object['keys'](_0x3d6f89),_0x3cdeed=0x0;_0x3cdeed<_0x4f511e['length'];++_0x3cdeed)null!=_0x3d6f89[_0x4f511e[_0x3cdeed]]&&(this[_0x4f511e[_0x3cdeed]]=_0x3d6f89[_0x4f511e[_0x3cdeed]]);}}return _0x1141a5['prototype']['data']='',_0x1141a5['prototype']['data1']='',_0x1141a5['create']=function(_0x3e5709){return new _0x1141a5(_0x3e5709);},_0x1141a5['encode']=function(_0xca039c,_0x282e85){return _0x282e85||(_0x282e85=_0x320e1c['create']()),null!=_0xca039c['data']&&Object['hasOwnProperty']['call'](_0xca039c,'data')&&_0x282e85['uint32'](0xa)['string'](_0xca039c['data']),null!=_0xca039c['data1']&&Object['hasOwnProperty']['call'](_0xca039c,'data1')&&_0x282e85['uint32'](0x12)['string'](_0xca039c['data1']),_0x282e85;},_0x1141a5['encodeDelimited']=function(_0x371b68,_0x55c425){return this['encode'](_0x371b68,_0x55c425)['ldelim']();},_0x1141a5['decode']=function(_0x27f03c,_0x455a82,_0x4b15ea){_0x27f03c instanceof _0x254bdb||(_0x27f03c=_0x254bdb['create'](_0x27f03c));for(var _0x4b22bd=void 0x0===_0x455a82?_0x27f03c['len']:_0x27f03c['pos']+_0x455a82,_0x1d32e3=new _0xdb1853['ObjectObjectPacketDataMessage']();_0x27f03c['pos']<_0x4b22bd;){var _0x31416c=_0x27f03c['uint32']();if(_0x31416c===_0x4b15ea)break;switch(_0x31416c>>>0x3){case 0x1:_0x1d32e3['data']=_0x27f03c['string']();break;case 0x2:_0x1d32e3['data1']=_0x27f03c['string']();break;default:_0x27f03c['skipType'](0x7&_0x31416c);}}return _0x1d32e3;},_0x1141a5['decodeDelimited']=function(_0x506de5){return _0x506de5 instanceof _0x254bdb||(_0x506de5=new _0x254bdb(_0x506de5)),this['decode'](_0x506de5,_0x506de5['uint32']());},_0x1141a5['verify']=function(_0x1728c0){return'object'!=typeof _0x1728c0||null===_0x1728c0?'object\x20expected':null!=_0x1728c0['data']&&_0x1728c0['hasOwnProperty']('data')&&!_0x32c136['isString'](_0x1728c0['data'])?'data:\x20string\x20expected':null!=_0x1728c0['data1']&&_0x1728c0['hasOwnProperty']('data1')&&!_0x32c136['isString'](_0x1728c0['data1'])?'data1:\x20string\x20expected':null;},_0x1141a5['fromObject']=function(_0x20f6a5){if(_0x20f6a5 instanceof _0xdb1853['ObjectObjectPacketDataMessage'])return _0x20f6a5;var _0x474817=new _0xdb1853['ObjectObjectPacketDataMessage']();return null!=_0x20f6a5['data']&&(_0x474817['data']=String(_0x20f6a5['data'])),null!=_0x20f6a5['data1']&&(_0x474817['data1']=String(_0x20f6a5['data1'])),_0x474817;},_0x1141a5['toObject']=function(_0x33a982,_0x1afb90){_0x1afb90||(_0x1afb90={});var _0x62a595={};return _0x1afb90['defaults']&&(_0x62a595['data']='',_0x62a595['data1']=''),null!=_0x33a982['data']&&_0x33a982['hasOwnProperty']('data')&&(_0x62a595['data']=_0x33a982['data']),null!=_0x33a982['data1']&&_0x33a982['hasOwnProperty']('data1')&&(_0x62a595['data1']=_0x33a982['data1']),_0x62a595;},_0x1141a5['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1141a5['getTypeUrl']=function(_0x41ca9f){return void 0x0===_0x41ca9f&&(_0x41ca9f='type.googleapis.com'),_0x41ca9f+'/ObjectObjectPacketDataMessage';},_0x1141a5;}()),_0xdb1853['ObjectBufferPacketDataMessage']=(function(){function _0x5750cf(_0x58db77){if(_0x58db77){for(var _0x802ae2=Object['keys'](_0x58db77),_0x292c6d=0x0;_0x292c6d<_0x802ae2['length'];++_0x292c6d)null!=_0x58db77[_0x802ae2[_0x292c6d]]&&(this[_0x802ae2[_0x292c6d]]=_0x58db77[_0x802ae2[_0x292c6d]]);}}return _0x5750cf['prototype']['data']='',_0x5750cf['prototype']['data1']=_0x32c136['newBuffer']([]),_0x5750cf['create']=function(_0x36f759){return new _0x5750cf(_0x36f759);},_0x5750cf['encode']=function(_0x1d98cb,_0x378d8a){return _0x378d8a||(_0x378d8a=_0x320e1c['create']()),null!=_0x1d98cb['data']&&Object['hasOwnProperty']['call'](_0x1d98cb,'data')&&_0x378d8a['uint32'](0xa)['string'](_0x1d98cb['data']),null!=_0x1d98cb['data1']&&Object['hasOwnProperty']['call'](_0x1d98cb,'data1')&&_0x378d8a['uint32'](0x12)['bytes'](_0x1d98cb['data1']),_0x378d8a;},_0x5750cf['encodeDelimited']=function(_0x406f61,_0x150947){return this['encode'](_0x406f61,_0x150947)['ldelim']();},_0x5750cf['decode']=function(_0x52b91f,_0x11c419,_0x49c630){_0x52b91f instanceof _0x254bdb||(_0x52b91f=_0x254bdb['create'](_0x52b91f));for(var _0x238860=void 0x0===_0x11c419?_0x52b91f['len']:_0x52b91f['pos']+_0x11c419,_0x2770e8=new _0xdb1853['ObjectBufferPacketDataMessage']();_0x52b91f['pos']<_0x238860;){var _0x592a89=_0x52b91f['uint32']();if(_0x592a89===_0x49c630)break;switch(_0x592a89>>>0x3){case 0x1:_0x2770e8['data']=_0x52b91f['string']();break;case 0x2:_0x2770e8['data1']=_0x52b91f['bytes']();break;default:_0x52b91f['skipType'](0x7&_0x592a89);}}return _0x2770e8;},_0x5750cf['decodeDelimited']=function(_0x8b0544){return _0x8b0544 instanceof _0x254bdb||(_0x8b0544=new _0x254bdb(_0x8b0544)),this['decode'](_0x8b0544,_0x8b0544['uint32']());},_0x5750cf['verify']=function(_0x24007e){return'object'!=typeof _0x24007e||null===_0x24007e?'object\x20expected':null!=_0x24007e['data']&&_0x24007e['hasOwnProperty']('data')&&!_0x32c136['isString'](_0x24007e['data'])?'data:\x20string\x20expected':null!=_0x24007e['data1']&&_0x24007e['hasOwnProperty']('data1')&&!(_0x24007e['data1']&&'number'==typeof _0x24007e['data1']['length']||_0x32c136['isString'](_0x24007e['data1']))?'data1:\x20buffer\x20expected':null;},_0x5750cf['fromObject']=function(_0x5bb87c){if(_0x5bb87c instanceof _0xdb1853['ObjectBufferPacketDataMessage'])return _0x5bb87c;var _0x22e018=new _0xdb1853['ObjectBufferPacketDataMessage']();return null!=_0x5bb87c['data']&&(_0x22e018['data']=String(_0x5bb87c['data'])),null!=_0x5bb87c['data1']&&('string'==typeof _0x5bb87c['data1']?_0x32c136['base64']['decode'](_0x5bb87c['data1'],_0x22e018['data1']=_0x32c136['newBuffer'](_0x32c136['base64']['length'](_0x5bb87c['data1'])),0x0):_0x5bb87c['data1']['length']>=0x0&&(_0x22e018['data1']=_0x5bb87c['data1'])),_0x22e018;},_0x5750cf['toObject']=function(_0x13c2f1,_0x13ad24){_0x13ad24||(_0x13ad24={});var _0x527316={};return _0x13ad24['defaults']&&(_0x527316['data']='',_0x13ad24['bytes']===String?_0x527316['data1']='':(_0x527316['data1']=[],_0x13ad24['bytes']!==Array&&(_0x527316['data1']=_0x32c136['newBuffer'](_0x527316['data1'])))),null!=_0x13c2f1['data']&&_0x13c2f1['hasOwnProperty']('data')&&(_0x527316['data']=_0x13c2f1['data']),null!=_0x13c2f1['data1']&&_0x13c2f1['hasOwnProperty']('data1')&&(_0x527316['data1']=_0x13ad24['bytes']===String?_0x32c136['base64']['encode'](_0x13c2f1['data1'],0x0,_0x13c2f1['data1']['length']):_0x13ad24['bytes']===Array?Array['prototype']['slice']['call'](_0x13c2f1['data1']):_0x13c2f1['data1']),_0x527316;},_0x5750cf['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5750cf['getTypeUrl']=function(_0x18b32c){return void 0x0===_0x18b32c&&(_0x18b32c='type.googleapis.com'),_0x18b32c+'/ObjectBufferPacketDataMessage';},_0x5750cf;}()),_0xdb1853['NumberStringPacketDataMessage']=(function(){function _0x16a9bf(_0x39b9a7){if(_0x39b9a7){for(var _0x299691=Object['keys'](_0x39b9a7),_0x4d452d=0x0;_0x4d452d<_0x299691['length'];++_0x4d452d)null!=_0x39b9a7[_0x299691[_0x4d452d]]&&(this[_0x299691[_0x4d452d]]=_0x39b9a7[_0x299691[_0x4d452d]]);}}return _0x16a9bf['prototype']['data']=0x0,_0x16a9bf['prototype']['data1']='',_0x16a9bf['create']=function(_0x2bda3d){return new _0x16a9bf(_0x2bda3d);},_0x16a9bf['encode']=function(_0x2066ef,_0xa086b6){return _0xa086b6||(_0xa086b6=_0x320e1c['create']()),null!=_0x2066ef['data']&&Object['hasOwnProperty']['call'](_0x2066ef,'data')&&_0xa086b6['uint32'](0x8)['uint32'](_0x2066ef['data']),null!=_0x2066ef['data1']&&Object['hasOwnProperty']['call'](_0x2066ef,'data1')&&_0xa086b6['uint32'](0x12)['string'](_0x2066ef['data1']),_0xa086b6;},_0x16a9bf['encodeDelimited']=function(_0x1cb55c,_0x33bca2){return this['encode'](_0x1cb55c,_0x33bca2)['ldelim']();},_0x16a9bf['decode']=function(_0x29fbda,_0x5f25db,_0x42f6a9){_0x29fbda instanceof _0x254bdb||(_0x29fbda=_0x254bdb['create'](_0x29fbda));for(var _0x494120=void 0x0===_0x5f25db?_0x29fbda['len']:_0x29fbda['pos']+_0x5f25db,_0x159c21=new _0xdb1853['NumberStringPacketDataMessage']();_0x29fbda['pos']<_0x494120;){var _0x1ca8e9=_0x29fbda['uint32']();if(_0x1ca8e9===_0x42f6a9)break;switch(_0x1ca8e9>>>0x3){case 0x1:_0x159c21['data']=_0x29fbda['uint32']();break;case 0x2:_0x159c21['data1']=_0x29fbda['string']();break;default:_0x29fbda['skipType'](0x7&_0x1ca8e9);}}return _0x159c21;},_0x16a9bf['decodeDelimited']=function(_0x38fcea){return _0x38fcea instanceof _0x254bdb||(_0x38fcea=new _0x254bdb(_0x38fcea)),this['decode'](_0x38fcea,_0x38fcea['uint32']());},_0x16a9bf['verify']=function(_0x1cba9b){return'object'!=typeof _0x1cba9b||null===_0x1cba9b?'object\x20expected':null!=_0x1cba9b['data']&&_0x1cba9b['hasOwnProperty']('data')&&!_0x32c136['isInteger'](_0x1cba9b['data'])?'data:\x20integer\x20expected':null!=_0x1cba9b['data1']&&_0x1cba9b['hasOwnProperty']('data1')&&!_0x32c136['isString'](_0x1cba9b['data1'])?'data1:\x20string\x20expected':null;},_0x16a9bf['fromObject']=function(_0x495928){if(_0x495928 instanceof _0xdb1853['NumberStringPacketDataMessage'])return _0x495928;var _0x47c1cc=new _0xdb1853['NumberStringPacketDataMessage']();return null!=_0x495928['data']&&(_0x47c1cc['data']=_0x495928['data']>>>0x0),null!=_0x495928['data1']&&(_0x47c1cc['data1']=String(_0x495928['data1'])),_0x47c1cc;},_0x16a9bf['toObject']=function(_0x2522ef,_0x2ab581){_0x2ab581||(_0x2ab581={});var _0x2d4833={};return _0x2ab581['defaults']&&(_0x2d4833['data']=0x0,_0x2d4833['data1']=''),null!=_0x2522ef['data']&&_0x2522ef['hasOwnProperty']('data')&&(_0x2d4833['data']=_0x2522ef['data']),null!=_0x2522ef['data1']&&_0x2522ef['hasOwnProperty']('data1')&&(_0x2d4833['data1']=_0x2522ef['data1']),_0x2d4833;},_0x16a9bf['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x16a9bf['getTypeUrl']=function(_0x473f3a){return void 0x0===_0x473f3a&&(_0x473f3a='type.googleapis.com'),_0x473f3a+'/NumberStringPacketDataMessage';},_0x16a9bf;}()),_0xdb1853['NumberObjectPacketDataMessage']=(function(){function _0x5ae376(_0x221044){if(_0x221044){for(var _0x1fe41f=Object['keys'](_0x221044),_0x6ff422=0x0;_0x6ff422<_0x1fe41f['length'];++_0x6ff422)null!=_0x221044[_0x1fe41f[_0x6ff422]]&&(this[_0x1fe41f[_0x6ff422]]=_0x221044[_0x1fe41f[_0x6ff422]]);}}return _0x5ae376['prototype']['data']=0x0,_0x5ae376['prototype']['data1']='',_0x5ae376['create']=function(_0x473c93){return new _0x5ae376(_0x473c93);},_0x5ae376['encode']=function(_0x12b7f2,_0x3715eb){return _0x3715eb||(_0x3715eb=_0x320e1c['create']()),null!=_0x12b7f2['data']&&Object['hasOwnProperty']['call'](_0x12b7f2,'data')&&_0x3715eb['uint32'](0x8)['uint32'](_0x12b7f2['data']),null!=_0x12b7f2['data1']&&Object['hasOwnProperty']['call'](_0x12b7f2,'data1')&&_0x3715eb['uint32'](0x12)['string'](_0x12b7f2['data1']),_0x3715eb;},_0x5ae376['encodeDelimited']=function(_0x478ead,_0x1961fb){return this['encode'](_0x478ead,_0x1961fb)['ldelim']();},_0x5ae376['decode']=function(_0x50aece,_0x43263a,_0x1c303f){_0x50aece instanceof _0x254bdb||(_0x50aece=_0x254bdb['create'](_0x50aece));for(var _0x2cc47e=void 0x0===_0x43263a?_0x50aece['len']:_0x50aece['pos']+_0x43263a,_0x551302=new _0xdb1853['NumberObjectPacketDataMessage']();_0x50aece['pos']<_0x2cc47e;){var _0x3309b2=_0x50aece['uint32']();if(_0x3309b2===_0x1c303f)break;switch(_0x3309b2>>>0x3){case 0x1:_0x551302['data']=_0x50aece['uint32']();break;case 0x2:_0x551302['data1']=_0x50aece['string']();break;default:_0x50aece['skipType'](0x7&_0x3309b2);}}return _0x551302;},_0x5ae376['decodeDelimited']=function(_0x4c96d6){return _0x4c96d6 instanceof _0x254bdb||(_0x4c96d6=new _0x254bdb(_0x4c96d6)),this['decode'](_0x4c96d6,_0x4c96d6['uint32']());},_0x5ae376['verify']=function(_0x606fe5){return'object'!=typeof _0x606fe5||null===_0x606fe5?'object\x20expected':null!=_0x606fe5['data']&&_0x606fe5['hasOwnProperty']('data')&&!_0x32c136['isInteger'](_0x606fe5['data'])?'data:\x20integer\x20expected':null!=_0x606fe5['data1']&&_0x606fe5['hasOwnProperty']('data1')&&!_0x32c136['isString'](_0x606fe5['data1'])?'data1:\x20string\x20expected':null;},_0x5ae376['fromObject']=function(_0x31570a){if(_0x31570a instanceof _0xdb1853['NumberObjectPacketDataMessage'])return _0x31570a;var _0x43e1b7=new _0xdb1853['NumberObjectPacketDataMessage']();return null!=_0x31570a['data']&&(_0x43e1b7['data']=_0x31570a['data']>>>0x0),null!=_0x31570a['data1']&&(_0x43e1b7['data1']=String(_0x31570a['data1'])),_0x43e1b7;},_0x5ae376['toObject']=function(_0x19f1b4,_0x5651f0){_0x5651f0||(_0x5651f0={});var _0x5c9874={};return _0x5651f0['defaults']&&(_0x5c9874['data']=0x0,_0x5c9874['data1']=''),null!=_0x19f1b4['data']&&_0x19f1b4['hasOwnProperty']('data')&&(_0x5c9874['data']=_0x19f1b4['data']),null!=_0x19f1b4['data1']&&_0x19f1b4['hasOwnProperty']('data1')&&(_0x5c9874['data1']=_0x19f1b4['data1']),_0x5c9874;},_0x5ae376['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5ae376['getTypeUrl']=function(_0x4861ef){return void 0x0===_0x4861ef&&(_0x4861ef='type.googleapis.com'),_0x4861ef+'/NumberObjectPacketDataMessage';},_0x5ae376;}()),_0xdb1853['NumberNumberPacketDataMessage']=(function(){function _0x8165a4(_0x335af8){if(_0x335af8){for(var _0x3edcc5=Object['keys'](_0x335af8),_0x1ae707=0x0;_0x1ae707<_0x3edcc5['length'];++_0x1ae707)null!=_0x335af8[_0x3edcc5[_0x1ae707]]&&(this[_0x3edcc5[_0x1ae707]]=_0x335af8[_0x3edcc5[_0x1ae707]]);}}return _0x8165a4['prototype']['data']=0x0,_0x8165a4['prototype']['data1']=0x0,_0x8165a4['create']=function(_0x5808cf){return new _0x8165a4(_0x5808cf);},_0x8165a4['encode']=function(_0xc30ac4,_0x3b88fa){return _0x3b88fa||(_0x3b88fa=_0x320e1c['create']()),null!=_0xc30ac4['data']&&Object['hasOwnProperty']['call'](_0xc30ac4,'data')&&_0x3b88fa['uint32'](0x8)['uint32'](_0xc30ac4['data']),null!=_0xc30ac4['data1']&&Object['hasOwnProperty']['call'](_0xc30ac4,'data1')&&_0x3b88fa['uint32'](0x10)['uint32'](_0xc30ac4['data1']),_0x3b88fa;},_0x8165a4['encodeDelimited']=function(_0x378d9e,_0x5c5da0){return this['encode'](_0x378d9e,_0x5c5da0)['ldelim']();},_0x8165a4['decode']=function(_0xaa1d4,_0x36e39c,_0x34add9){_0xaa1d4 instanceof _0x254bdb||(_0xaa1d4=_0x254bdb['create'](_0xaa1d4));for(var _0x428003=void 0x0===_0x36e39c?_0xaa1d4['len']:_0xaa1d4['pos']+_0x36e39c,_0x1ad61e=new _0xdb1853['NumberNumberPacketDataMessage']();_0xaa1d4['pos']<_0x428003;){var _0x14b78f=_0xaa1d4['uint32']();if(_0x14b78f===_0x34add9)break;switch(_0x14b78f>>>0x3){case 0x1:_0x1ad61e['data']=_0xaa1d4['uint32']();break;case 0x2:_0x1ad61e['data1']=_0xaa1d4['uint32']();break;default:_0xaa1d4['skipType'](0x7&_0x14b78f);}}return _0x1ad61e;},_0x8165a4['decodeDelimited']=function(_0x538a94){return _0x538a94 instanceof _0x254bdb||(_0x538a94=new _0x254bdb(_0x538a94)),this['decode'](_0x538a94,_0x538a94['uint32']());},_0x8165a4['verify']=function(_0x1a23e6){return'object'!=typeof _0x1a23e6||null===_0x1a23e6?'object\x20expected':null!=_0x1a23e6['data']&&_0x1a23e6['hasOwnProperty']('data')&&!_0x32c136['isInteger'](_0x1a23e6['data'])?'data:\x20integer\x20expected':null!=_0x1a23e6['data1']&&_0x1a23e6['hasOwnProperty']('data1')&&!_0x32c136['isInteger'](_0x1a23e6['data1'])?'data1:\x20integer\x20expected':null;},_0x8165a4['fromObject']=function(_0x278a03){if(_0x278a03 instanceof _0xdb1853['NumberNumberPacketDataMessage'])return _0x278a03;var _0x3746cf=new _0xdb1853['NumberNumberPacketDataMessage']();return null!=_0x278a03['data']&&(_0x3746cf['data']=_0x278a03['data']>>>0x0),null!=_0x278a03['data1']&&(_0x3746cf['data1']=_0x278a03['data1']>>>0x0),_0x3746cf;},_0x8165a4['toObject']=function(_0x2eb9e1,_0x3e526c){_0x3e526c||(_0x3e526c={});var _0x194f16={};return _0x3e526c['defaults']&&(_0x194f16['data']=0x0,_0x194f16['data1']=0x0),null!=_0x2eb9e1['data']&&_0x2eb9e1['hasOwnProperty']('data')&&(_0x194f16['data']=_0x2eb9e1['data']),null!=_0x2eb9e1['data1']&&_0x2eb9e1['hasOwnProperty']('data1')&&(_0x194f16['data1']=_0x2eb9e1['data1']),_0x194f16;},_0x8165a4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x8165a4['getTypeUrl']=function(_0x477475){return void 0x0===_0x477475&&(_0x477475='type.googleapis.com'),_0x477475+'/NumberNumberPacketDataMessage';},_0x8165a4;}()),_0xdb1853['NumberBytesPacketDataMessage']=(function(){function _0x5894b1(_0x16cee8){if(_0x16cee8){for(var _0x5bd6f1=Object['keys'](_0x16cee8),_0x1de6b5=0x0;_0x1de6b5<_0x5bd6f1['length'];++_0x1de6b5)null!=_0x16cee8[_0x5bd6f1[_0x1de6b5]]&&(this[_0x5bd6f1[_0x1de6b5]]=_0x16cee8[_0x5bd6f1[_0x1de6b5]]);}}return _0x5894b1['prototype']['data']=0x0,_0x5894b1['prototype']['data1']=_0x32c136['newBuffer']([]),_0x5894b1['create']=function(_0x512ad0){return new _0x5894b1(_0x512ad0);},_0x5894b1['encode']=function(_0x385367,_0x3fb7f6){return _0x3fb7f6||(_0x3fb7f6=_0x320e1c['create']()),null!=_0x385367['data']&&Object['hasOwnProperty']['call'](_0x385367,'data')&&_0x3fb7f6['uint32'](0x8)['uint32'](_0x385367['data']),null!=_0x385367['data1']&&Object['hasOwnProperty']['call'](_0x385367,'data1')&&_0x3fb7f6['uint32'](0x12)['bytes'](_0x385367['data1']),_0x3fb7f6;},_0x5894b1['encodeDelimited']=function(_0x88d817,_0x549fd7){return this['encode'](_0x88d817,_0x549fd7)['ldelim']();},_0x5894b1['decode']=function(_0x320763,_0x254c96,_0x5e5a64){_0x320763 instanceof _0x254bdb||(_0x320763=_0x254bdb['create'](_0x320763));for(var _0x48d559=void 0x0===_0x254c96?_0x320763['len']:_0x320763['pos']+_0x254c96,_0x1715c3=new _0xdb1853['NumberBytesPacketDataMessage']();_0x320763['pos']<_0x48d559;){var _0x33f028=_0x320763['uint32']();if(_0x33f028===_0x5e5a64)break;switch(_0x33f028>>>0x3){case 0x1:_0x1715c3['data']=_0x320763['uint32']();break;case 0x2:_0x1715c3['data1']=_0x320763['bytes']();break;default:_0x320763['skipType'](0x7&_0x33f028);}}return _0x1715c3;},_0x5894b1['decodeDelimited']=function(_0x562967){return _0x562967 instanceof _0x254bdb||(_0x562967=new _0x254bdb(_0x562967)),this['decode'](_0x562967,_0x562967['uint32']());},_0x5894b1['verify']=function(_0x5765b5){return'object'!=typeof _0x5765b5||null===_0x5765b5?'object\x20expected':null!=_0x5765b5['data']&&_0x5765b5['hasOwnProperty']('data')&&!_0x32c136['isInteger'](_0x5765b5['data'])?'data:\x20integer\x20expected':null!=_0x5765b5['data1']&&_0x5765b5['hasOwnProperty']('data1')&&!(_0x5765b5['data1']&&'number'==typeof _0x5765b5['data1']['length']||_0x32c136['isString'](_0x5765b5['data1']))?'data1:\x20buffer\x20expected':null;},_0x5894b1['fromObject']=function(_0x27d6c3){if(_0x27d6c3 instanceof _0xdb1853['NumberBytesPacketDataMessage'])return _0x27d6c3;var _0x1bba04=new _0xdb1853['NumberBytesPacketDataMessage']();return null!=_0x27d6c3['data']&&(_0x1bba04['data']=_0x27d6c3['data']>>>0x0),null!=_0x27d6c3['data1']&&('string'==typeof _0x27d6c3['data1']?_0x32c136['base64']['decode'](_0x27d6c3['data1'],_0x1bba04['data1']=_0x32c136['newBuffer'](_0x32c136['base64']['length'](_0x27d6c3['data1'])),0x0):_0x27d6c3['data1']['length']>=0x0&&(_0x1bba04['data1']=_0x27d6c3['data1'])),_0x1bba04;},_0x5894b1['toObject']=function(_0x49d9ac,_0x3c5cf4){_0x3c5cf4||(_0x3c5cf4={});var _0x1c98ac={};return _0x3c5cf4['defaults']&&(_0x1c98ac['data']=0x0,_0x3c5cf4['bytes']===String?_0x1c98ac['data1']='':(_0x1c98ac['data1']=[],_0x3c5cf4['bytes']!==Array&&(_0x1c98ac['data1']=_0x32c136['newBuffer'](_0x1c98ac['data1'])))),null!=_0x49d9ac['data']&&_0x49d9ac['hasOwnProperty']('data')&&(_0x1c98ac['data']=_0x49d9ac['data']),null!=_0x49d9ac['data1']&&_0x49d9ac['hasOwnProperty']('data1')&&(_0x1c98ac['data1']=_0x3c5cf4['bytes']===String?_0x32c136['base64']['encode'](_0x49d9ac['data1'],0x0,_0x49d9ac['data1']['length']):_0x3c5cf4['bytes']===Array?Array['prototype']['slice']['call'](_0x49d9ac['data1']):_0x49d9ac['data1']),_0x1c98ac;},_0x5894b1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5894b1['getTypeUrl']=function(_0x5bf2e4){return void 0x0===_0x5bf2e4&&(_0x5bf2e4='type.googleapis.com'),_0x5bf2e4+'/NumberBytesPacketDataMessage';},_0x5894b1;}()),_0xdb1853['BytesBytesPacketDataMessage']=(function(){function _0x30a2db(_0x2798c2){if(_0x2798c2){for(var _0x49632c=Object['keys'](_0x2798c2),_0x2f8010=0x0;_0x2f8010<_0x49632c['length'];++_0x2f8010)null!=_0x2798c2[_0x49632c[_0x2f8010]]&&(this[_0x49632c[_0x2f8010]]=_0x2798c2[_0x49632c[_0x2f8010]]);}}return _0x30a2db['prototype']['data']=_0x32c136['newBuffer']([]),_0x30a2db['prototype']['data1']=_0x32c136['newBuffer']([]),_0x30a2db['create']=function(_0x4958cf){return new _0x30a2db(_0x4958cf);},_0x30a2db['encode']=function(_0x194fb3,_0x1817d3){return _0x1817d3||(_0x1817d3=_0x320e1c['create']()),null!=_0x194fb3['data']&&Object['hasOwnProperty']['call'](_0x194fb3,'data')&&_0x1817d3['uint32'](0xa)['bytes'](_0x194fb3['data']),null!=_0x194fb3['data1']&&Object['hasOwnProperty']['call'](_0x194fb3,'data1')&&_0x1817d3['uint32'](0x12)['bytes'](_0x194fb3['data1']),_0x1817d3;},_0x30a2db['encodeDelimited']=function(_0x181b3d,_0x104bf7){return this['encode'](_0x181b3d,_0x104bf7)['ldelim']();},_0x30a2db['decode']=function(_0x1b3769,_0x3ce190,_0x315ab1){_0x1b3769 instanceof _0x254bdb||(_0x1b3769=_0x254bdb['create'](_0x1b3769));for(var _0x3581e2=void 0x0===_0x3ce190?_0x1b3769['len']:_0x1b3769['pos']+_0x3ce190,_0x5846d3=new _0xdb1853['BytesBytesPacketDataMessage']();_0x1b3769['pos']<_0x3581e2;){var _0x4cb1f7=_0x1b3769['uint32']();if(_0x4cb1f7===_0x315ab1)break;switch(_0x4cb1f7>>>0x3){case 0x1:_0x5846d3['data']=_0x1b3769['bytes']();break;case 0x2:_0x5846d3['data1']=_0x1b3769['bytes']();break;default:_0x1b3769['skipType'](0x7&_0x4cb1f7);}}return _0x5846d3;},_0x30a2db['decodeDelimited']=function(_0x523291){return _0x523291 instanceof _0x254bdb||(_0x523291=new _0x254bdb(_0x523291)),this['decode'](_0x523291,_0x523291['uint32']());},_0x30a2db['verify']=function(_0x512ee3){return'object'!=typeof _0x512ee3||null===_0x512ee3?'object\x20expected':null!=_0x512ee3['data']&&_0x512ee3['hasOwnProperty']('data')&&!(_0x512ee3['data']&&'number'==typeof _0x512ee3['data']['length']||_0x32c136['isString'](_0x512ee3['data']))?'data:\x20buffer\x20expected':null!=_0x512ee3['data1']&&_0x512ee3['hasOwnProperty']('data1')&&!(_0x512ee3['data1']&&'number'==typeof _0x512ee3['data1']['length']||_0x32c136['isString'](_0x512ee3['data1']))?'data1:\x20buffer\x20expected':null;},_0x30a2db['fromObject']=function(_0x565f58){if(_0x565f58 instanceof _0xdb1853['BytesBytesPacketDataMessage'])return _0x565f58;var _0xf5aa2e=new _0xdb1853['BytesBytesPacketDataMessage']();return null!=_0x565f58['data']&&('string'==typeof _0x565f58['data']?_0x32c136['base64']['decode'](_0x565f58['data'],_0xf5aa2e['data']=_0x32c136['newBuffer'](_0x32c136['base64']['length'](_0x565f58['data'])),0x0):_0x565f58['data']['length']>=0x0&&(_0xf5aa2e['data']=_0x565f58['data'])),null!=_0x565f58['data1']&&('string'==typeof _0x565f58['data1']?_0x32c136['base64']['decode'](_0x565f58['data1'],_0xf5aa2e['data1']=_0x32c136['newBuffer'](_0x32c136['base64']['length'](_0x565f58['data1'])),0x0):_0x565f58['data1']['length']>=0x0&&(_0xf5aa2e['data1']=_0x565f58['data1'])),_0xf5aa2e;},_0x30a2db['toObject']=function(_0x56aab0,_0x22ffdb){_0x22ffdb||(_0x22ffdb={});var _0x34c97c={};return _0x22ffdb['defaults']&&(_0x22ffdb['bytes']===String?_0x34c97c['data']='':(_0x34c97c['data']=[],_0x22ffdb['bytes']!==Array&&(_0x34c97c['data']=_0x32c136['newBuffer'](_0x34c97c['data']))),_0x22ffdb['bytes']===String?_0x34c97c['data1']='':(_0x34c97c['data1']=[],_0x22ffdb['bytes']!==Array&&(_0x34c97c['data1']=_0x32c136['newBuffer'](_0x34c97c['data1'])))),null!=_0x56aab0['data']&&_0x56aab0['hasOwnProperty']('data')&&(_0x34c97c['data']=_0x22ffdb['bytes']===String?_0x32c136['base64']['encode'](_0x56aab0['data'],0x0,_0x56aab0['data']['length']):_0x22ffdb['bytes']===Array?Array['prototype']['slice']['call'](_0x56aab0['data']):_0x56aab0['data']),null!=_0x56aab0['data1']&&_0x56aab0['hasOwnProperty']('data1')&&(_0x34c97c['data1']=_0x22ffdb['bytes']===String?_0x32c136['base64']['encode'](_0x56aab0['data1'],0x0,_0x56aab0['data1']['length']):_0x22ffdb['bytes']===Array?Array['prototype']['slice']['call'](_0x56aab0['data1']):_0x56aab0['data1']),_0x34c97c;},_0x30a2db['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x30a2db['getTypeUrl']=function(_0x464f77){return void 0x0===_0x464f77&&(_0x464f77='type.googleapis.com'),_0x464f77+'/BytesBytesPacketDataMessage';},_0x30a2db;}()),_0xdb1853['ChannelMessage']=(function(){function _0x54cc2b(_0x4eff03){if(_0x4eff03){for(var _0x487a37=Object['keys'](_0x4eff03),_0x1deddf=0x0;_0x1deddf<_0x487a37['length'];++_0x1deddf)null!=_0x4eff03[_0x487a37[_0x1deddf]]&&(this[_0x487a37[_0x1deddf]]=_0x4eff03[_0x487a37[_0x1deddf]]);}}return _0x54cc2b['prototype']['type']=0x0,_0x54cc2b['prototype']['socketId']='',_0x54cc2b['prototype']['data']=_0x32c136['newBuffer']([]),_0x54cc2b['create']=function(_0x518d9f){return new _0x54cc2b(_0x518d9f);},_0x54cc2b['encode']=function(_0x19a4f0,_0x3015d1){return _0x3015d1||(_0x3015d1=_0x320e1c['create']()),null!=_0x19a4f0['type']&&Object['hasOwnProperty']['call'](_0x19a4f0,'type')&&_0x3015d1['uint32'](0x8)['uint32'](_0x19a4f0['type']),null!=_0x19a4f0['socketId']&&Object['hasOwnProperty']['call'](_0x19a4f0,'socketId')&&_0x3015d1['uint32'](0x12)['string'](_0x19a4f0['socketId']),null!=_0x19a4f0['data']&&Object['hasOwnProperty']['call'](_0x19a4f0,'data')&&_0x3015d1['uint32'](0x1a)['bytes'](_0x19a4f0['data']),_0x3015d1;},_0x54cc2b['encodeDelimited']=function(_0x374566,_0x1644f9){return this['encode'](_0x374566,_0x1644f9)['ldelim']();},_0x54cc2b['decode']=function(_0x232bb2,_0x155078,_0x2608e0){_0x232bb2 instanceof _0x254bdb||(_0x232bb2=_0x254bdb['create'](_0x232bb2));for(var _0x27c981=void 0x0===_0x155078?_0x232bb2['len']:_0x232bb2['pos']+_0x155078,_0x5a5424=new _0xdb1853['ChannelMessage']();_0x232bb2['pos']<_0x27c981;){var _0x44d978=_0x232bb2['uint32']();if(_0x44d978===_0x2608e0)break;switch(_0x44d978>>>0x3){case 0x1:_0x5a5424['type']=_0x232bb2['uint32']();break;case 0x2:_0x5a5424['socketId']=_0x232bb2['string']();break;case 0x3:_0x5a5424['data']=_0x232bb2['bytes']();break;default:_0x232bb2['skipType'](0x7&_0x44d978);}}return _0x5a5424;},_0x54cc2b['decodeDelimited']=function(_0x5182b0){return _0x5182b0 instanceof _0x254bdb||(_0x5182b0=new _0x254bdb(_0x5182b0)),this['decode'](_0x5182b0,_0x5182b0['uint32']());},_0x54cc2b['verify']=function(_0x5a57c7){return'object'!=typeof _0x5a57c7||null===_0x5a57c7?'object\x20expected':null!=_0x5a57c7['type']&&_0x5a57c7['hasOwnProperty']('type')&&!_0x32c136['isInteger'](_0x5a57c7['type'])?'type:\x20integer\x20expected':null!=_0x5a57c7['socketId']&&_0x5a57c7['hasOwnProperty']('socketId')&&!_0x32c136['isString'](_0x5a57c7['socketId'])?'socketId:\x20string\x20expected':null!=_0x5a57c7['data']&&_0x5a57c7['hasOwnProperty']('data')&&!(_0x5a57c7['data']&&'number'==typeof _0x5a57c7['data']['length']||_0x32c136['isString'](_0x5a57c7['data']))?'data:\x20buffer\x20expected':null;},_0x54cc2b['fromObject']=function(_0x241ff6){if(_0x241ff6 instanceof _0xdb1853['ChannelMessage'])return _0x241ff6;var _0x4c3176=new _0xdb1853['ChannelMessage']();return null!=_0x241ff6['type']&&(_0x4c3176['type']=_0x241ff6['type']>>>0x0),null!=_0x241ff6['socketId']&&(_0x4c3176['socketId']=String(_0x241ff6['socketId'])),null!=_0x241ff6['data']&&('string'==typeof _0x241ff6['data']?_0x32c136['base64']['decode'](_0x241ff6['data'],_0x4c3176['data']=_0x32c136['newBuffer'](_0x32c136['base64']['length'](_0x241ff6['data'])),0x0):_0x241ff6['data']['length']>=0x0&&(_0x4c3176['data']=_0x241ff6['data'])),_0x4c3176;},_0x54cc2b['toObject']=function(_0x2fdbab,_0x31f3af){_0x31f3af||(_0x31f3af={});var _0x20a032={};return _0x31f3af['defaults']&&(_0x20a032['type']=0x0,_0x20a032['socketId']='',_0x31f3af['bytes']===String?_0x20a032['data']='':(_0x20a032['data']=[],_0x31f3af['bytes']!==Array&&(_0x20a032['data']=_0x32c136['newBuffer'](_0x20a032['data'])))),null!=_0x2fdbab['type']&&_0x2fdbab['hasOwnProperty']('type')&&(_0x20a032['type']=_0x2fdbab['type']),null!=_0x2fdbab['socketId']&&_0x2fdbab['hasOwnProperty']('socketId')&&(_0x20a032['socketId']=_0x2fdbab['socketId']),null!=_0x2fdbab['data']&&_0x2fdbab['hasOwnProperty']('data')&&(_0x20a032['data']=_0x31f3af['bytes']===String?_0x32c136['base64']['encode'](_0x2fdbab['data'],0x0,_0x2fdbab['data']['length']):_0x31f3af['bytes']===Array?Array['prototype']['slice']['call'](_0x2fdbab['data']):_0x2fdbab['data']),_0x20a032;},_0x54cc2b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x54cc2b['getTypeUrl']=function(_0x2df882){return void 0x0===_0x2df882&&(_0x2df882='type.googleapis.com'),_0x2df882+'/ChannelMessage';},_0x54cc2b;}()),_0xdb1853['GetUserResponse']=(function(){function _0x27678a(_0x13af36){if(this['attributes']=[],_0x13af36){for(var _0x433ede=Object['keys'](_0x13af36),_0x3058ff=0x0;_0x3058ff<_0x433ede['length'];++_0x3058ff)null!=_0x13af36[_0x433ede[_0x3058ff]]&&(this[_0x433ede[_0x3058ff]]=_0x13af36[_0x433ede[_0x3058ff]]);}}return _0x27678a['prototype']['attributes']=_0x32c136['emptyArray'],_0x27678a['create']=function(_0x5b9363){return new _0x27678a(_0x5b9363);},_0x27678a['encode']=function(_0x1fddc5,_0x434cce){if(_0x434cce||(_0x434cce=_0x320e1c['create']()),null!=_0x1fddc5['attributes']&&_0x1fddc5['attributes']['length']){for(var _0x4c372d=0x0;_0x4c372d<_0x1fddc5['attributes']['length'];++_0x4c372d)_0xdb1853['KeyValueDescriptor']['encode'](_0x1fddc5['attributes'][_0x4c372d],_0x434cce['uint32'](0xa)['fork']())['ldelim']();}return _0x434cce;},_0x27678a['encodeDelimited']=function(_0x2e726f,_0x3e6c3f){return this['encode'](_0x2e726f,_0x3e6c3f)['ldelim']();},_0x27678a['decode']=function(_0x1dadd0,_0x1d0b4f,_0x55508e){_0x1dadd0 instanceof _0x254bdb||(_0x1dadd0=_0x254bdb['create'](_0x1dadd0));for(var _0x2bc2d3=void 0x0===_0x1d0b4f?_0x1dadd0['len']:_0x1dadd0['pos']+_0x1d0b4f,_0x3733f3=new _0xdb1853['GetUserResponse']();_0x1dadd0['pos']<_0x2bc2d3;){var _0x43ce0b=_0x1dadd0['uint32']();if(_0x43ce0b===_0x55508e)break;_0x43ce0b>>>0x3==0x1?(_0x3733f3['attributes']&&_0x3733f3['attributes']['length']||(_0x3733f3['attributes']=[]),_0x3733f3['attributes']['push'](_0xdb1853['KeyValueDescriptor']['decode'](_0x1dadd0,_0x1dadd0['uint32']()))):_0x1dadd0['skipType'](0x7&_0x43ce0b);}return _0x3733f3;},_0x27678a['decodeDelimited']=function(_0x617e31){return _0x617e31 instanceof _0x254bdb||(_0x617e31=new _0x254bdb(_0x617e31)),this['decode'](_0x617e31,_0x617e31['uint32']());},_0x27678a['verify']=function(_0x2701c2){if('object'!=typeof _0x2701c2||null===_0x2701c2)return'object\x20expected';if(null!=_0x2701c2['attributes']&&_0x2701c2['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x2701c2['attributes']))return'attributes:\x20array\x20expected';for(var _0x3c185b=0x0;_0x3c185b<_0x2701c2['attributes']['length'];++_0x3c185b){var _0x2dedf8=_0xdb1853['KeyValueDescriptor']['verify'](_0x2701c2['attributes'][_0x3c185b]);if(_0x2dedf8)return'attributes.'+_0x2dedf8;}}return null;},_0x27678a['fromObject']=function(_0x3baaf0){if(_0x3baaf0 instanceof _0xdb1853['GetUserResponse'])return _0x3baaf0;var _0x30bca0=new _0xdb1853['GetUserResponse']();if(_0x3baaf0['attributes']){if(!Array['isArray'](_0x3baaf0['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x30bca0['attributes']=[];for(var _0x9d12ac=0x0;_0x9d12ac<_0x3baaf0['attributes']['length'];++_0x9d12ac){if('object'!=typeof _0x3baaf0['attributes'][_0x9d12ac])throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x30bca0['attributes'][_0x9d12ac]=_0xdb1853['KeyValueDescriptor']['fromObject'](_0x3baaf0['attributes'][_0x9d12ac]);}}return _0x30bca0;},_0x27678a['toObject']=function(_0x1b0c31,_0x5d809b){_0x5d809b||(_0x5d809b={});var _0x3acbde={};if((_0x5d809b['arrays']||_0x5d809b['defaults'])&&(_0x3acbde['attributes']=[]),_0x1b0c31['attributes']&&_0x1b0c31['attributes']['length']){_0x3acbde['attributes']=[];for(var _0x393620=0x0;_0x393620<_0x1b0c31['attributes']['length'];++_0x393620)_0x3acbde['attributes'][_0x393620]=_0xdb1853['KeyValueDescriptor']['toObject'](_0x1b0c31['attributes'][_0x393620],_0x5d809b);}return _0x3acbde;},_0x27678a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x27678a['getTypeUrl']=function(_0x8d8d79){return void 0x0===_0x8d8d79&&(_0x8d8d79='type.googleapis.com'),_0x8d8d79+'/GetUserResponse';},_0x27678a;}()),_0xdb1853['GetManyUsersResponse']=(function(){function _0x20ff70(_0x2d4f32){if(this['users']=[],_0x2d4f32){for(var _0x3d2a84=Object['keys'](_0x2d4f32),_0x54d197=0x0;_0x54d197<_0x3d2a84['length'];++_0x54d197)null!=_0x2d4f32[_0x3d2a84[_0x54d197]]&&(this[_0x3d2a84[_0x54d197]]=_0x2d4f32[_0x3d2a84[_0x54d197]]);}}return _0x20ff70['prototype']['users']=_0x32c136['emptyArray'],_0x20ff70['create']=function(_0x3a7ffd){return new _0x20ff70(_0x3a7ffd);},_0x20ff70['encode']=function(_0x2172d9,_0x34b0b4){if(_0x34b0b4||(_0x34b0b4=_0x320e1c['create']()),null!=_0x2172d9['users']&&_0x2172d9['users']['length']){for(var _0x1e33e7=0x0;_0x1e33e7<_0x2172d9['users']['length'];++_0x1e33e7)_0xdb1853['UserDescriptor']['encode'](_0x2172d9['users'][_0x1e33e7],_0x34b0b4['uint32'](0xa)['fork']())['ldelim']();}return _0x34b0b4;},_0x20ff70['encodeDelimited']=function(_0x19fab0,_0x1fb1fb){return this['encode'](_0x19fab0,_0x1fb1fb)['ldelim']();},_0x20ff70['decode']=function(_0x34a9af,_0x262f7e,_0x23a9a2){_0x34a9af instanceof _0x254bdb||(_0x34a9af=_0x254bdb['create'](_0x34a9af));for(var _0x4fc249=void 0x0===_0x262f7e?_0x34a9af['len']:_0x34a9af['pos']+_0x262f7e,_0x383cbd=new _0xdb1853['GetManyUsersResponse']();_0x34a9af['pos']<_0x4fc249;){var _0x184f13=_0x34a9af['uint32']();if(_0x184f13===_0x23a9a2)break;_0x184f13>>>0x3==0x1?(_0x383cbd['users']&&_0x383cbd['users']['length']||(_0x383cbd['users']=[]),_0x383cbd['users']['push'](_0xdb1853['UserDescriptor']['decode'](_0x34a9af,_0x34a9af['uint32']()))):_0x34a9af['skipType'](0x7&_0x184f13);}return _0x383cbd;},_0x20ff70['decodeDelimited']=function(_0x1f0790){return _0x1f0790 instanceof _0x254bdb||(_0x1f0790=new _0x254bdb(_0x1f0790)),this['decode'](_0x1f0790,_0x1f0790['uint32']());},_0x20ff70['verify']=function(_0x2f76cf){if('object'!=typeof _0x2f76cf||null===_0x2f76cf)return'object\x20expected';if(null!=_0x2f76cf['users']&&_0x2f76cf['hasOwnProperty']('users')){if(!Array['isArray'](_0x2f76cf['users']))return'users:\x20array\x20expected';for(var _0x5f05ba=0x0;_0x5f05ba<_0x2f76cf['users']['length'];++_0x5f05ba){var _0x21a26d=_0xdb1853['UserDescriptor']['verify'](_0x2f76cf['users'][_0x5f05ba]);if(_0x21a26d)return'users.'+_0x21a26d;}}return null;},_0x20ff70['fromObject']=function(_0x2b94ca){if(_0x2b94ca instanceof _0xdb1853['GetManyUsersResponse'])return _0x2b94ca;var _0x1936ac=new _0xdb1853['GetManyUsersResponse']();if(_0x2b94ca['users']){if(!Array['isArray'](_0x2b94ca['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x1936ac['users']=[];for(var _0x5473fe=0x0;_0x5473fe<_0x2b94ca['users']['length'];++_0x5473fe){if('object'!=typeof _0x2b94ca['users'][_0x5473fe])throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x1936ac['users'][_0x5473fe]=_0xdb1853['UserDescriptor']['fromObject'](_0x2b94ca['users'][_0x5473fe]);}}return _0x1936ac;},_0x20ff70['toObject']=function(_0x3b7ecc,_0x3dee6c){_0x3dee6c||(_0x3dee6c={});var _0x51abc8={};if((_0x3dee6c['arrays']||_0x3dee6c['defaults'])&&(_0x51abc8['users']=[]),_0x3b7ecc['users']&&_0x3b7ecc['users']['length']){_0x51abc8['users']=[];for(var _0x576987=0x0;_0x576987<_0x3b7ecc['users']['length'];++_0x576987)_0x51abc8['users'][_0x576987]=_0xdb1853['UserDescriptor']['toObject'](_0x3b7ecc['users'][_0x576987],_0x3dee6c);}return _0x51abc8;},_0x20ff70['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x20ff70['getTypeUrl']=function(_0x12566a){return void 0x0===_0x12566a&&(_0x12566a='type.googleapis.com'),_0x12566a+'/GetManyUsersResponse';},_0x20ff70;}()),_0xdb1853['GetUserMessage']=(function(){function _0x568108(_0x553162){if(_0x553162){for(var _0x132782=Object['keys'](_0x553162),_0x33dc08=0x0;_0x33dc08<_0x132782['length'];++_0x33dc08)null!=_0x553162[_0x132782[_0x33dc08]]&&(this[_0x132782[_0x33dc08]]=_0x553162[_0x132782[_0x33dc08]]);}}return _0x568108['prototype']['id']='',_0x568108['create']=function(_0x3a5f66){return new _0x568108(_0x3a5f66);},_0x568108['encode']=function(_0x16b959,_0x39a072){return _0x39a072||(_0x39a072=_0x320e1c['create']()),null!=_0x16b959['id']&&Object['hasOwnProperty']['call'](_0x16b959,'id')&&_0x39a072['uint32'](0xa)['string'](_0x16b959['id']),_0x39a072;},_0x568108['encodeDelimited']=function(_0x30ff87,_0x1c6194){return this['encode'](_0x30ff87,_0x1c6194)['ldelim']();},_0x568108['decode']=function(_0x3945f7,_0x10499b,_0x3316e1){_0x3945f7 instanceof _0x254bdb||(_0x3945f7=_0x254bdb['create'](_0x3945f7));for(var _0x5d9f64=void 0x0===_0x10499b?_0x3945f7['len']:_0x3945f7['pos']+_0x10499b,_0x1994bc=new _0xdb1853['GetUserMessage']();_0x3945f7['pos']<_0x5d9f64;){var _0x472be5=_0x3945f7['uint32']();if(_0x472be5===_0x3316e1)break;_0x472be5>>>0x3==0x1?_0x1994bc['id']=_0x3945f7['string']():_0x3945f7['skipType'](0x7&_0x472be5);}return _0x1994bc;},_0x568108['decodeDelimited']=function(_0x2b87b8){return _0x2b87b8 instanceof _0x254bdb||(_0x2b87b8=new _0x254bdb(_0x2b87b8)),this['decode'](_0x2b87b8,_0x2b87b8['uint32']());},_0x568108['verify']=function(_0x55717a){return'object'!=typeof _0x55717a||null===_0x55717a?'object\x20expected':null!=_0x55717a['id']&&_0x55717a['hasOwnProperty']('id')&&!_0x32c136['isString'](_0x55717a['id'])?'id:\x20string\x20expected':null;},_0x568108['fromObject']=function(_0x2fb76b){if(_0x2fb76b instanceof _0xdb1853['GetUserMessage'])return _0x2fb76b;var _0x32a4cb=new _0xdb1853['GetUserMessage']();return null!=_0x2fb76b['id']&&(_0x32a4cb['id']=String(_0x2fb76b['id'])),_0x32a4cb;},_0x568108['toObject']=function(_0x3cc6cc,_0x2ee937){_0x2ee937||(_0x2ee937={});var _0x48fd27={};return _0x2ee937['defaults']&&(_0x48fd27['id']=''),null!=_0x3cc6cc['id']&&_0x3cc6cc['hasOwnProperty']('id')&&(_0x48fd27['id']=_0x3cc6cc['id']),_0x48fd27;},_0x568108['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x568108['getTypeUrl']=function(_0x29420e){return void 0x0===_0x29420e&&(_0x29420e='type.googleapis.com'),_0x29420e+'/GetUserMessage';},_0x568108;}()),_0xdb1853['GetManyUsersMessage']=(function(){function _0x17b38(_0x3dd668){if(this['ids']=[],_0x3dd668){for(var _0x2f6931=Object['keys'](_0x3dd668),_0x47ebce=0x0;_0x47ebce<_0x2f6931['length'];++_0x47ebce)null!=_0x3dd668[_0x2f6931[_0x47ebce]]&&(this[_0x2f6931[_0x47ebce]]=_0x3dd668[_0x2f6931[_0x47ebce]]);}}return _0x17b38['prototype']['ids']=_0x32c136['emptyArray'],_0x17b38['create']=function(_0xb0f978){return new _0x17b38(_0xb0f978);},_0x17b38['encode']=function(_0x541db8,_0x56bdc6){if(_0x56bdc6||(_0x56bdc6=_0x320e1c['create']()),null!=_0x541db8['ids']&&_0x541db8['ids']['length']){for(var _0x333675=0x0;_0x333675<_0x541db8['ids']['length'];++_0x333675)_0x56bdc6['uint32'](0xa)['string'](_0x541db8['ids'][_0x333675]);}return _0x56bdc6;},_0x17b38['encodeDelimited']=function(_0x34a1ed,_0x18f4e6){return this['encode'](_0x34a1ed,_0x18f4e6)['ldelim']();},_0x17b38['decode']=function(_0x386615,_0x5dadb1,_0x531980){_0x386615 instanceof _0x254bdb||(_0x386615=_0x254bdb['create'](_0x386615));for(var _0x1be895=void 0x0===_0x5dadb1?_0x386615['len']:_0x386615['pos']+_0x5dadb1,_0x337d1e=new _0xdb1853['GetManyUsersMessage']();_0x386615['pos']<_0x1be895;){var _0x5b23e6=_0x386615['uint32']();if(_0x5b23e6===_0x531980)break;_0x5b23e6>>>0x3==0x1?(_0x337d1e['ids']&&_0x337d1e['ids']['length']||(_0x337d1e['ids']=[]),_0x337d1e['ids']['push'](_0x386615['string']())):_0x386615['skipType'](0x7&_0x5b23e6);}return _0x337d1e;},_0x17b38['decodeDelimited']=function(_0x2c357c){return _0x2c357c instanceof _0x254bdb||(_0x2c357c=new _0x254bdb(_0x2c357c)),this['decode'](_0x2c357c,_0x2c357c['uint32']());},_0x17b38['verify']=function(_0x42b2af){if('object'!=typeof _0x42b2af||null===_0x42b2af)return'object\x20expected';if(null!=_0x42b2af['ids']&&_0x42b2af['hasOwnProperty']('ids')){if(!Array['isArray'](_0x42b2af['ids']))return'ids:\x20array\x20expected';for(var _0x3d34e1=0x0;_0x3d34e1<_0x42b2af['ids']['length'];++_0x3d34e1)if(!_0x32c136['isString'](_0x42b2af['ids'][_0x3d34e1]))return'ids:\x20string[]\x20expected';}return null;},_0x17b38['fromObject']=function(_0x5b5dc7){if(_0x5b5dc7 instanceof _0xdb1853['GetManyUsersMessage'])return _0x5b5dc7;var _0x52abaa=new _0xdb1853['GetManyUsersMessage']();if(_0x5b5dc7['ids']){if(!Array['isArray'](_0x5b5dc7['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0x52abaa['ids']=[];for(var _0x1db0bb=0x0;_0x1db0bb<_0x5b5dc7['ids']['length'];++_0x1db0bb)_0x52abaa['ids'][_0x1db0bb]=String(_0x5b5dc7['ids'][_0x1db0bb]);}return _0x52abaa;},_0x17b38['toObject']=function(_0xe65e16,_0x17ded2){_0x17ded2||(_0x17ded2={});var _0x513091={};if((_0x17ded2['arrays']||_0x17ded2['defaults'])&&(_0x513091['ids']=[]),_0xe65e16['ids']&&_0xe65e16['ids']['length']){_0x513091['ids']=[];for(var _0x206fe4=0x0;_0x206fe4<_0xe65e16['ids']['length'];++_0x206fe4)_0x513091['ids'][_0x206fe4]=_0xe65e16['ids'][_0x206fe4];}return _0x513091;},_0x17b38['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x17b38['getTypeUrl']=function(_0x264566){return void 0x0===_0x264566&&(_0x264566='type.googleapis.com'),_0x264566+'/GetManyUsersMessage';},_0x17b38;}()),_0xdb1853['UserDescriptor']=(function(){function _0x497b0f(_0x5b6888){if(this['attributes']=[],_0x5b6888){for(var _0x3e54ac=Object['keys'](_0x5b6888),_0x3abf7c=0x0;_0x3abf7c<_0x3e54ac['length'];++_0x3abf7c)null!=_0x5b6888[_0x3e54ac[_0x3abf7c]]&&(this[_0x3e54ac[_0x3abf7c]]=_0x5b6888[_0x3e54ac[_0x3abf7c]]);}}return _0x497b0f['prototype']['attributes']=_0x32c136['emptyArray'],_0x497b0f['create']=function(_0x271f0f){return new _0x497b0f(_0x271f0f);},_0x497b0f['encode']=function(_0x2d142c,_0xd80181){if(_0xd80181||(_0xd80181=_0x320e1c['create']()),null!=_0x2d142c['attributes']&&_0x2d142c['attributes']['length']){for(var _0x4c4253=0x0;_0x4c4253<_0x2d142c['attributes']['length'];++_0x4c4253)_0xdb1853['KeyValueDescriptor']['encode'](_0x2d142c['attributes'][_0x4c4253],_0xd80181['uint32'](0xa)['fork']())['ldelim']();}return _0xd80181;},_0x497b0f['encodeDelimited']=function(_0x2903ad,_0x37bf97){return this['encode'](_0x2903ad,_0x37bf97)['ldelim']();},_0x497b0f['decode']=function(_0x2f02de,_0x51b30f,_0x4c3098){_0x2f02de instanceof _0x254bdb||(_0x2f02de=_0x254bdb['create'](_0x2f02de));for(var _0x3692d0=void 0x0===_0x51b30f?_0x2f02de['len']:_0x2f02de['pos']+_0x51b30f,_0x4f3534=new _0xdb1853['UserDescriptor']();_0x2f02de['pos']<_0x3692d0;){var _0x5b0044=_0x2f02de['uint32']();if(_0x5b0044===_0x4c3098)break;_0x5b0044>>>0x3==0x1?(_0x4f3534['attributes']&&_0x4f3534['attributes']['length']||(_0x4f3534['attributes']=[]),_0x4f3534['attributes']['push'](_0xdb1853['KeyValueDescriptor']['decode'](_0x2f02de,_0x2f02de['uint32']()))):_0x2f02de['skipType'](0x7&_0x5b0044);}return _0x4f3534;},_0x497b0f['decodeDelimited']=function(_0x37752b){return _0x37752b instanceof _0x254bdb||(_0x37752b=new _0x254bdb(_0x37752b)),this['decode'](_0x37752b,_0x37752b['uint32']());},_0x497b0f['verify']=function(_0x19d90f){if('object'!=typeof _0x19d90f||null===_0x19d90f)return'object\x20expected';if(null!=_0x19d90f['attributes']&&_0x19d90f['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x19d90f['attributes']))return'attributes:\x20array\x20expected';for(var _0x31e0b4=0x0;_0x31e0b4<_0x19d90f['attributes']['length'];++_0x31e0b4){var _0x781118=_0xdb1853['KeyValueDescriptor']['verify'](_0x19d90f['attributes'][_0x31e0b4]);if(_0x781118)return'attributes.'+_0x781118;}}return null;},_0x497b0f['fromObject']=function(_0x441f7a){if(_0x441f7a instanceof _0xdb1853['UserDescriptor'])return _0x441f7a;var _0x179c11=new _0xdb1853['UserDescriptor']();if(_0x441f7a['attributes']){if(!Array['isArray'](_0x441f7a['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x179c11['attributes']=[];for(var _0x187b0f=0x0;_0x187b0f<_0x441f7a['attributes']['length'];++_0x187b0f){if('object'!=typeof _0x441f7a['attributes'][_0x187b0f])throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x179c11['attributes'][_0x187b0f]=_0xdb1853['KeyValueDescriptor']['fromObject'](_0x441f7a['attributes'][_0x187b0f]);}}return _0x179c11;},_0x497b0f['toObject']=function(_0x3f9c31,_0x39418a){_0x39418a||(_0x39418a={});var _0x47cda9={};if((_0x39418a['arrays']||_0x39418a['defaults'])&&(_0x47cda9['attributes']=[]),_0x3f9c31['attributes']&&_0x3f9c31['attributes']['length']){_0x47cda9['attributes']=[];for(var _0x5efa78=0x0;_0x5efa78<_0x3f9c31['attributes']['length'];++_0x5efa78)_0x47cda9['attributes'][_0x5efa78]=_0xdb1853['KeyValueDescriptor']['toObject'](_0x3f9c31['attributes'][_0x5efa78],_0x39418a);}return _0x47cda9;},_0x497b0f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x497b0f['getTypeUrl']=function(_0xf6aa63){return void 0x0===_0xf6aa63&&(_0xf6aa63='type.googleapis.com'),_0xf6aa63+'/UserDescriptor';},_0x497b0f;}()),_0xdb1853['TrackChangesGetSuggestionResponse']=(function(){function _0x6d2569(_0x137a56){if(_0x137a56){for(var _0x19d309=Object['keys'](_0x137a56),_0x173ee6=0x0;_0x173ee6<_0x19d309['length'];++_0x173ee6)null!=_0x137a56[_0x19d309[_0x173ee6]]&&(this[_0x19d309[_0x173ee6]]=_0x137a56[_0x19d309[_0x173ee6]]);}}return _0x6d2569['prototype']['id']='',_0x6d2569['prototype']['authorId']='',_0x6d2569['prototype']['type']='',_0x6d2569['prototype']['createdAt']='',_0x6d2569['prototype']['data']='',_0x6d2569['prototype']['hasComments']=!0x1,_0x6d2569['prototype']['state']='',_0x6d2569['prototype']['attributes']='',_0x6d2569['create']=function(_0x19601e){return new _0x6d2569(_0x19601e);},_0x6d2569['encode']=function(_0x372087,_0x1f0da0){return _0x1f0da0||(_0x1f0da0=_0x320e1c['create']()),null!=_0x372087['id']&&Object['hasOwnProperty']['call'](_0x372087,'id')&&_0x1f0da0['uint32'](0xa)['string'](_0x372087['id']),null!=_0x372087['authorId']&&Object['hasOwnProperty']['call'](_0x372087,'authorId')&&_0x1f0da0['uint32'](0x12)['string'](_0x372087['authorId']),null!=_0x372087['type']&&Object['hasOwnProperty']['call'](_0x372087,'type')&&_0x1f0da0['uint32'](0x1a)['string'](_0x372087['type']),null!=_0x372087['createdAt']&&Object['hasOwnProperty']['call'](_0x372087,'createdAt')&&_0x1f0da0['uint32'](0x22)['string'](_0x372087['createdAt']),null!=_0x372087['data']&&Object['hasOwnProperty']['call'](_0x372087,'data')&&_0x1f0da0['uint32'](0x2a)['string'](_0x372087['data']),null!=_0x372087['hasComments']&&Object['hasOwnProperty']['call'](_0x372087,'hasComments')&&_0x1f0da0['uint32'](0x30)['bool'](_0x372087['hasComments']),null!=_0x372087['state']&&Object['hasOwnProperty']['call'](_0x372087,'state')&&_0x1f0da0['uint32'](0x3a)['string'](_0x372087['state']),null!=_0x372087['attributes']&&Object['hasOwnProperty']['call'](_0x372087,'attributes')&&_0x1f0da0['uint32'](0x42)['string'](_0x372087['attributes']),_0x1f0da0;},_0x6d2569['encodeDelimited']=function(_0x1ad166,_0x51e278){return this['encode'](_0x1ad166,_0x51e278)['ldelim']();},_0x6d2569['decode']=function(_0x24d17d,_0x2d048b,_0x2d7107){_0x24d17d instanceof _0x254bdb||(_0x24d17d=_0x254bdb['create'](_0x24d17d));for(var _0x48087e=void 0x0===_0x2d048b?_0x24d17d['len']:_0x24d17d['pos']+_0x2d048b,_0x18b1dd=new _0xdb1853['TrackChangesGetSuggestionResponse']();_0x24d17d['pos']<_0x48087e;){var _0x3dd58e=_0x24d17d['uint32']();if(_0x3dd58e===_0x2d7107)break;switch(_0x3dd58e>>>0x3){case 0x1:_0x18b1dd['id']=_0x24d17d['string']();break;case 0x2:_0x18b1dd['authorId']=_0x24d17d['string']();break;case 0x3:_0x18b1dd['type']=_0x24d17d['string']();break;case 0x4:_0x18b1dd['createdAt']=_0x24d17d['string']();break;case 0x5:_0x18b1dd['data']=_0x24d17d['string']();break;case 0x6:_0x18b1dd['hasComments']=_0x24d17d['bool']();break;case 0x7:_0x18b1dd['state']=_0x24d17d['string']();break;case 0x8:_0x18b1dd['attributes']=_0x24d17d['string']();break;default:_0x24d17d['skipType'](0x7&_0x3dd58e);}}return _0x18b1dd;},_0x6d2569['decodeDelimited']=function(_0x5504cd){return _0x5504cd instanceof _0x254bdb||(_0x5504cd=new _0x254bdb(_0x5504cd)),this['decode'](_0x5504cd,_0x5504cd['uint32']());},_0x6d2569['verify']=function(_0x4169fa){return'object'!=typeof _0x4169fa||null===_0x4169fa?'object\x20expected':null!=_0x4169fa['id']&&_0x4169fa['hasOwnProperty']('id')&&!_0x32c136['isString'](_0x4169fa['id'])?'id:\x20string\x20expected':null!=_0x4169fa['authorId']&&_0x4169fa['hasOwnProperty']('authorId')&&!_0x32c136['isString'](_0x4169fa['authorId'])?'authorId:\x20string\x20expected':null!=_0x4169fa['type']&&_0x4169fa['hasOwnProperty']('type')&&!_0x32c136['isString'](_0x4169fa['type'])?'type:\x20string\x20expected':null!=_0x4169fa['createdAt']&&_0x4169fa['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0x4169fa['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x4169fa['data']&&_0x4169fa['hasOwnProperty']('data')&&!_0x32c136['isString'](_0x4169fa['data'])?'data:\x20string\x20expected':null!=_0x4169fa['hasComments']&&_0x4169fa['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x4169fa['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x4169fa['state']&&_0x4169fa['hasOwnProperty']('state')&&!_0x32c136['isString'](_0x4169fa['state'])?'state:\x20string\x20expected':null!=_0x4169fa['attributes']&&_0x4169fa['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x4169fa['attributes'])?'attributes:\x20string\x20expected':null;},_0x6d2569['fromObject']=function(_0x350047){if(_0x350047 instanceof _0xdb1853['TrackChangesGetSuggestionResponse'])return _0x350047;var _0x3295c4=new _0xdb1853['TrackChangesGetSuggestionResponse']();return null!=_0x350047['id']&&(_0x3295c4['id']=String(_0x350047['id'])),null!=_0x350047['authorId']&&(_0x3295c4['authorId']=String(_0x350047['authorId'])),null!=_0x350047['type']&&(_0x3295c4['type']=String(_0x350047['type'])),null!=_0x350047['createdAt']&&(_0x3295c4['createdAt']=String(_0x350047['createdAt'])),null!=_0x350047['data']&&(_0x3295c4['data']=String(_0x350047['data'])),null!=_0x350047['hasComments']&&(_0x3295c4['hasComments']=Boolean(_0x350047['hasComments'])),null!=_0x350047['state']&&(_0x3295c4['state']=String(_0x350047['state'])),null!=_0x350047['attributes']&&(_0x3295c4['attributes']=String(_0x350047['attributes'])),_0x3295c4;},_0x6d2569['toObject']=function(_0xc6289a,_0x354b9b){_0x354b9b||(_0x354b9b={});var _0x3df040={};return _0x354b9b['defaults']&&(_0x3df040['id']='',_0x3df040['authorId']='',_0x3df040['type']='',_0x3df040['createdAt']='',_0x3df040['data']='',_0x3df040['hasComments']=!0x1,_0x3df040['state']='',_0x3df040['attributes']=''),null!=_0xc6289a['id']&&_0xc6289a['hasOwnProperty']('id')&&(_0x3df040['id']=_0xc6289a['id']),null!=_0xc6289a['authorId']&&_0xc6289a['hasOwnProperty']('authorId')&&(_0x3df040['authorId']=_0xc6289a['authorId']),null!=_0xc6289a['type']&&_0xc6289a['hasOwnProperty']('type')&&(_0x3df040['type']=_0xc6289a['type']),null!=_0xc6289a['createdAt']&&_0xc6289a['hasOwnProperty']('createdAt')&&(_0x3df040['createdAt']=_0xc6289a['createdAt']),null!=_0xc6289a['data']&&_0xc6289a['hasOwnProperty']('data')&&(_0x3df040['data']=_0xc6289a['data']),null!=_0xc6289a['hasComments']&&_0xc6289a['hasOwnProperty']('hasComments')&&(_0x3df040['hasComments']=_0xc6289a['hasComments']),null!=_0xc6289a['state']&&_0xc6289a['hasOwnProperty']('state')&&(_0x3df040['state']=_0xc6289a['state']),null!=_0xc6289a['attributes']&&_0xc6289a['hasOwnProperty']('attributes')&&(_0x3df040['attributes']=_0xc6289a['attributes']),_0x3df040;},_0x6d2569['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x6d2569['getTypeUrl']=function(_0x1c9022){return void 0x0===_0x1c9022&&(_0x1c9022='type.googleapis.com'),_0x1c9022+'/TrackChangesGetSuggestionResponse';},_0x6d2569;}()),_0xdb1853['TrackChangesGetAllSuggestionsResponse']=(function(){function _0x393771(_0x31e80b){if(this['suggestions']=[],this['suggestionsV2']=[],_0x31e80b){for(var _0x1f4c25=Object['keys'](_0x31e80b),_0x36bdc8=0x0;_0x36bdc8<_0x1f4c25['length'];++_0x36bdc8)null!=_0x31e80b[_0x1f4c25[_0x36bdc8]]&&(this[_0x1f4c25[_0x36bdc8]]=_0x31e80b[_0x1f4c25[_0x36bdc8]]);}}return _0x393771['prototype']['suggestions']=_0x32c136['emptyArray'],_0x393771['prototype']['suggestionsV2']=_0x32c136['emptyArray'],_0x393771['create']=function(_0x2cebf0){return new _0x393771(_0x2cebf0);},_0x393771['encode']=function(_0x1b7bea,_0x3627cf){if(_0x3627cf||(_0x3627cf=_0x320e1c['create']()),null!=_0x1b7bea['suggestions']&&_0x1b7bea['suggestions']['length']){for(var _0x29ed6f=0x0;_0x29ed6f<_0x1b7bea['suggestions']['length'];++_0x29ed6f)_0x3627cf['uint32'](0xa)['string'](_0x1b7bea['suggestions'][_0x29ed6f]);}if(null!=_0x1b7bea['suggestionsV2']&&_0x1b7bea['suggestionsV2']['length']){for(_0x29ed6f=0x0;_0x29ed6f<_0x1b7bea['suggestionsV2']['length'];++_0x29ed6f)_0xdb1853['SuggestionDescriptor']['encode'](_0x1b7bea['suggestionsV2'][_0x29ed6f],_0x3627cf['uint32'](0x12)['fork']())['ldelim']();}return _0x3627cf;},_0x393771['encodeDelimited']=function(_0x2c688e,_0x57c727){return this['encode'](_0x2c688e,_0x57c727)['ldelim']();},_0x393771['decode']=function(_0x2e33f1,_0x61b29e,_0x1c73e6){_0x2e33f1 instanceof _0x254bdb||(_0x2e33f1=_0x254bdb['create'](_0x2e33f1));for(var _0x58e00e=void 0x0===_0x61b29e?_0x2e33f1['len']:_0x2e33f1['pos']+_0x61b29e,_0x169936=new _0xdb1853['TrackChangesGetAllSuggestionsResponse']();_0x2e33f1['pos']<_0x58e00e;){var _0x1472e6=_0x2e33f1['uint32']();if(_0x1472e6===_0x1c73e6)break;switch(_0x1472e6>>>0x3){case 0x1:_0x169936['suggestions']&&_0x169936['suggestions']['length']||(_0x169936['suggestions']=[]),_0x169936['suggestions']['push'](_0x2e33f1['string']());break;case 0x2:_0x169936['suggestionsV2']&&_0x169936['suggestionsV2']['length']||(_0x169936['suggestionsV2']=[]),_0x169936['suggestionsV2']['push'](_0xdb1853['SuggestionDescriptor']['decode'](_0x2e33f1,_0x2e33f1['uint32']()));break;default:_0x2e33f1['skipType'](0x7&_0x1472e6);}}return _0x169936;},_0x393771['decodeDelimited']=function(_0x27293c){return _0x27293c instanceof _0x254bdb||(_0x27293c=new _0x254bdb(_0x27293c)),this['decode'](_0x27293c,_0x27293c['uint32']());},_0x393771['verify']=function(_0x565046){if('object'!=typeof _0x565046||null===_0x565046)return'object\x20expected';if(null!=_0x565046['suggestions']&&_0x565046['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x565046['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x2540ca=0x0;_0x2540ca<_0x565046['suggestions']['length'];++_0x2540ca)if(!_0x32c136['isString'](_0x565046['suggestions'][_0x2540ca]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x565046['suggestionsV2']&&_0x565046['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x565046['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x2540ca=0x0;_0x2540ca<_0x565046['suggestionsV2']['length'];++_0x2540ca){var _0x5e4996=_0xdb1853['SuggestionDescriptor']['verify'](_0x565046['suggestionsV2'][_0x2540ca]);if(_0x5e4996)return'suggestionsV2.'+_0x5e4996;}}return null;},_0x393771['fromObject']=function(_0x3dc75c){if(_0x3dc75c instanceof _0xdb1853['TrackChangesGetAllSuggestionsResponse'])return _0x3dc75c;var _0x59abdf=new _0xdb1853['TrackChangesGetAllSuggestionsResponse']();if(_0x3dc75c['suggestions']){if(!Array['isArray'](_0x3dc75c['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x59abdf['suggestions']=[];for(var _0x271caa=0x0;_0x271caa<_0x3dc75c['suggestions']['length'];++_0x271caa)_0x59abdf['suggestions'][_0x271caa]=String(_0x3dc75c['suggestions'][_0x271caa]);}if(_0x3dc75c['suggestionsV2']){if(!Array['isArray'](_0x3dc75c['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');for(_0x59abdf['suggestionsV2']=[],_0x271caa=0x0;_0x271caa<_0x3dc75c['suggestionsV2']['length'];++_0x271caa){if('object'!=typeof _0x3dc75c['suggestionsV2'][_0x271caa])throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x59abdf['suggestionsV2'][_0x271caa]=_0xdb1853['SuggestionDescriptor']['fromObject'](_0x3dc75c['suggestionsV2'][_0x271caa]);}}return _0x59abdf;},_0x393771['toObject']=function(_0x54322e,_0x3760af){_0x3760af||(_0x3760af={});var _0x21d44c={};if((_0x3760af['arrays']||_0x3760af['defaults'])&&(_0x21d44c['suggestions']=[],_0x21d44c['suggestionsV2']=[]),_0x54322e['suggestions']&&_0x54322e['suggestions']['length']){_0x21d44c['suggestions']=[];for(var _0x4819ab=0x0;_0x4819ab<_0x54322e['suggestions']['length'];++_0x4819ab)_0x21d44c['suggestions'][_0x4819ab]=_0x54322e['suggestions'][_0x4819ab];}if(_0x54322e['suggestionsV2']&&_0x54322e['suggestionsV2']['length']){for(_0x21d44c['suggestionsV2']=[],_0x4819ab=0x0;_0x4819ab<_0x54322e['suggestionsV2']['length'];++_0x4819ab)_0x21d44c['suggestionsV2'][_0x4819ab]=_0xdb1853['SuggestionDescriptor']['toObject'](_0x54322e['suggestionsV2'][_0x4819ab],_0x3760af);}return _0x21d44c;},_0x393771['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x393771['getTypeUrl']=function(_0x5afd43){return void 0x0===_0x5afd43&&(_0x5afd43='type.googleapis.com'),_0x5afd43+'/TrackChangesGetAllSuggestionsResponse';},_0x393771;}()),_0xdb1853['TrackChangesConnectResponse']=(function(){function _0x4bdaa2(_0x2bab89){if(this['suggestions']=[],this['suggestionsV2']=[],_0x2bab89){for(var _0x171676=Object['keys'](_0x2bab89),_0x17ccd6=0x0;_0x17ccd6<_0x171676['length'];++_0x17ccd6)null!=_0x2bab89[_0x171676[_0x17ccd6]]&&(this[_0x171676[_0x17ccd6]]=_0x2bab89[_0x171676[_0x17ccd6]]);}}return _0x4bdaa2['prototype']['channel']='',_0x4bdaa2['prototype']['suggestions']=_0x32c136['emptyArray'],_0x4bdaa2['prototype']['suggestionsV2']=_0x32c136['emptyArray'],_0x4bdaa2['create']=function(_0x497598){return new _0x4bdaa2(_0x497598);},_0x4bdaa2['encode']=function(_0xf70108,_0x182833){if(_0x182833||(_0x182833=_0x320e1c['create']()),null!=_0xf70108['channel']&&Object['hasOwnProperty']['call'](_0xf70108,'channel')&&_0x182833['uint32'](0xa)['string'](_0xf70108['channel']),null!=_0xf70108['suggestions']&&_0xf70108['suggestions']['length']){for(var _0x459a05=0x0;_0x459a05<_0xf70108['suggestions']['length'];++_0x459a05)_0x182833['uint32'](0x12)['string'](_0xf70108['suggestions'][_0x459a05]);}if(null!=_0xf70108['suggestionsV2']&&_0xf70108['suggestionsV2']['length']){for(_0x459a05=0x0;_0x459a05<_0xf70108['suggestionsV2']['length'];++_0x459a05)_0xdb1853['SuggestionDescriptor']['encode'](_0xf70108['suggestionsV2'][_0x459a05],_0x182833['uint32'](0x1a)['fork']())['ldelim']();}return _0x182833;},_0x4bdaa2['encodeDelimited']=function(_0x151e64,_0x41a76c){return this['encode'](_0x151e64,_0x41a76c)['ldelim']();},_0x4bdaa2['decode']=function(_0x50e504,_0x1a8c1f,_0x1f064d){_0x50e504 instanceof _0x254bdb||(_0x50e504=_0x254bdb['create'](_0x50e504));for(var _0x14560b=void 0x0===_0x1a8c1f?_0x50e504['len']:_0x50e504['pos']+_0x1a8c1f,_0x267f8b=new _0xdb1853['TrackChangesConnectResponse']();_0x50e504['pos']<_0x14560b;){var _0x413356=_0x50e504['uint32']();if(_0x413356===_0x1f064d)break;switch(_0x413356>>>0x3){case 0x1:_0x267f8b['channel']=_0x50e504['string']();break;case 0x2:_0x267f8b['suggestions']&&_0x267f8b['suggestions']['length']||(_0x267f8b['suggestions']=[]),_0x267f8b['suggestions']['push'](_0x50e504['string']());break;case 0x3:_0x267f8b['suggestionsV2']&&_0x267f8b['suggestionsV2']['length']||(_0x267f8b['suggestionsV2']=[]),_0x267f8b['suggestionsV2']['push'](_0xdb1853['SuggestionDescriptor']['decode'](_0x50e504,_0x50e504['uint32']()));break;default:_0x50e504['skipType'](0x7&_0x413356);}}return _0x267f8b;},_0x4bdaa2['decodeDelimited']=function(_0x256b9a){return _0x256b9a instanceof _0x254bdb||(_0x256b9a=new _0x254bdb(_0x256b9a)),this['decode'](_0x256b9a,_0x256b9a['uint32']());},_0x4bdaa2['verify']=function(_0x5558ed){if('object'!=typeof _0x5558ed||null===_0x5558ed)return'object\x20expected';if(null!=_0x5558ed['channel']&&_0x5558ed['hasOwnProperty']('channel')&&!_0x32c136['isString'](_0x5558ed['channel']))return'channel:\x20string\x20expected';if(null!=_0x5558ed['suggestions']&&_0x5558ed['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x5558ed['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x11b87d=0x0;_0x11b87d<_0x5558ed['suggestions']['length'];++_0x11b87d)if(!_0x32c136['isString'](_0x5558ed['suggestions'][_0x11b87d]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x5558ed['suggestionsV2']&&_0x5558ed['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x5558ed['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x11b87d=0x0;_0x11b87d<_0x5558ed['suggestionsV2']['length'];++_0x11b87d){var _0x5bb7a2=_0xdb1853['SuggestionDescriptor']['verify'](_0x5558ed['suggestionsV2'][_0x11b87d]);if(_0x5bb7a2)return'suggestionsV2.'+_0x5bb7a2;}}return null;},_0x4bdaa2['fromObject']=function(_0x6234f6){if(_0x6234f6 instanceof _0xdb1853['TrackChangesConnectResponse'])return _0x6234f6;var _0x58cacb=new _0xdb1853['TrackChangesConnectResponse']();if(null!=_0x6234f6['channel']&&(_0x58cacb['channel']=String(_0x6234f6['channel'])),_0x6234f6['suggestions']){if(!Array['isArray'](_0x6234f6['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0x58cacb['suggestions']=[];for(var _0x188422=0x0;_0x188422<_0x6234f6['suggestions']['length'];++_0x188422)_0x58cacb['suggestions'][_0x188422]=String(_0x6234f6['suggestions'][_0x188422]);}if(_0x6234f6['suggestionsV2']){if(!Array['isArray'](_0x6234f6['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');for(_0x58cacb['suggestionsV2']=[],_0x188422=0x0;_0x188422<_0x6234f6['suggestionsV2']['length'];++_0x188422){if('object'!=typeof _0x6234f6['suggestionsV2'][_0x188422])throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0x58cacb['suggestionsV2'][_0x188422]=_0xdb1853['SuggestionDescriptor']['fromObject'](_0x6234f6['suggestionsV2'][_0x188422]);}}return _0x58cacb;},_0x4bdaa2['toObject']=function(_0x3a7fa9,_0xe927d9){_0xe927d9||(_0xe927d9={});var _0x3187ab={};if((_0xe927d9['arrays']||_0xe927d9['defaults'])&&(_0x3187ab['suggestions']=[],_0x3187ab['suggestionsV2']=[]),_0xe927d9['defaults']&&(_0x3187ab['channel']=''),null!=_0x3a7fa9['channel']&&_0x3a7fa9['hasOwnProperty']('channel')&&(_0x3187ab['channel']=_0x3a7fa9['channel']),_0x3a7fa9['suggestions']&&_0x3a7fa9['suggestions']['length']){_0x3187ab['suggestions']=[];for(var _0x146c4e=0x0;_0x146c4e<_0x3a7fa9['suggestions']['length'];++_0x146c4e)_0x3187ab['suggestions'][_0x146c4e]=_0x3a7fa9['suggestions'][_0x146c4e];}if(_0x3a7fa9['suggestionsV2']&&_0x3a7fa9['suggestionsV2']['length']){for(_0x3187ab['suggestionsV2']=[],_0x146c4e=0x0;_0x146c4e<_0x3a7fa9['suggestionsV2']['length'];++_0x146c4e)_0x3187ab['suggestionsV2'][_0x146c4e]=_0xdb1853['SuggestionDescriptor']['toObject'](_0x3a7fa9['suggestionsV2'][_0x146c4e],_0xe927d9);}return _0x3187ab;},_0x4bdaa2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4bdaa2['getTypeUrl']=function(_0x252dc6){return void 0x0===_0x252dc6&&(_0x252dc6='type.googleapis.com'),_0x252dc6+'/TrackChangesConnectResponse';},_0x4bdaa2;}()),_0xdb1853['TrackChangesAddSuggestionResponse']=(function(){function _0x800808(_0x562c74){if(_0x562c74){for(var _0x22fed8=Object['keys'](_0x562c74),_0x157aae=0x0;_0x157aae<_0x22fed8['length'];++_0x157aae)null!=_0x562c74[_0x22fed8[_0x157aae]]&&(this[_0x22fed8[_0x157aae]]=_0x562c74[_0x22fed8[_0x157aae]]);}}return _0x800808['prototype']['id']='',_0x800808['prototype']['authorId']='',_0x800808['prototype']['type']='',_0x800808['prototype']['createdAt']='',_0x800808['prototype']['data']='',_0x800808['prototype']['hasComments']=!0x1,_0x800808['prototype']['state']='',_0x800808['prototype']['attributes']='',_0x800808['create']=function(_0x394de8){return new _0x800808(_0x394de8);},_0x800808['encode']=function(_0x23fa6e,_0x5b2eff){return _0x5b2eff||(_0x5b2eff=_0x320e1c['create']()),null!=_0x23fa6e['id']&&Object['hasOwnProperty']['call'](_0x23fa6e,'id')&&_0x5b2eff['uint32'](0xa)['string'](_0x23fa6e['id']),null!=_0x23fa6e['authorId']&&Object['hasOwnProperty']['call'](_0x23fa6e,'authorId')&&_0x5b2eff['uint32'](0x12)['string'](_0x23fa6e['authorId']),null!=_0x23fa6e['type']&&Object['hasOwnProperty']['call'](_0x23fa6e,'type')&&_0x5b2eff['uint32'](0x1a)['string'](_0x23fa6e['type']),null!=_0x23fa6e['createdAt']&&Object['hasOwnProperty']['call'](_0x23fa6e,'createdAt')&&_0x5b2eff['uint32'](0x22)['string'](_0x23fa6e['createdAt']),null!=_0x23fa6e['data']&&Object['hasOwnProperty']['call'](_0x23fa6e,'data')&&_0x5b2eff['uint32'](0x2a)['string'](_0x23fa6e['data']),null!=_0x23fa6e['hasComments']&&Object['hasOwnProperty']['call'](_0x23fa6e,'hasComments')&&_0x5b2eff['uint32'](0x30)['bool'](_0x23fa6e['hasComments']),null!=_0x23fa6e['state']&&Object['hasOwnProperty']['call'](_0x23fa6e,'state')&&_0x5b2eff['uint32'](0x3a)['string'](_0x23fa6e['state']),null!=_0x23fa6e['attributes']&&Object['hasOwnProperty']['call'](_0x23fa6e,'attributes')&&_0x5b2eff['uint32'](0x42)['string'](_0x23fa6e['attributes']),_0x5b2eff;},_0x800808['encodeDelimited']=function(_0xfd1a6f,_0x584092){return this['encode'](_0xfd1a6f,_0x584092)['ldelim']();},_0x800808['decode']=function(_0x24b2f1,_0x1a12d0,_0x2f5194){_0x24b2f1 instanceof _0x254bdb||(_0x24b2f1=_0x254bdb['create'](_0x24b2f1));for(var _0x2c07cc=void 0x0===_0x1a12d0?_0x24b2f1['len']:_0x24b2f1['pos']+_0x1a12d0,_0x10061c=new _0xdb1853['TrackChangesAddSuggestionResponse']();_0x24b2f1['pos']<_0x2c07cc;){var _0x174b5d=_0x24b2f1['uint32']();if(_0x174b5d===_0x2f5194)break;switch(_0x174b5d>>>0x3){case 0x1:_0x10061c['id']=_0x24b2f1['string']();break;case 0x2:_0x10061c['authorId']=_0x24b2f1['string']();break;case 0x3:_0x10061c['type']=_0x24b2f1['string']();break;case 0x4:_0x10061c['createdAt']=_0x24b2f1['string']();break;case 0x5:_0x10061c['data']=_0x24b2f1['string']();break;case 0x6:_0x10061c['hasComments']=_0x24b2f1['bool']();break;case 0x7:_0x10061c['state']=_0x24b2f1['string']();break;case 0x8:_0x10061c['attributes']=_0x24b2f1['string']();break;default:_0x24b2f1['skipType'](0x7&_0x174b5d);}}return _0x10061c;},_0x800808['decodeDelimited']=function(_0x803e9a){return _0x803e9a instanceof _0x254bdb||(_0x803e9a=new _0x254bdb(_0x803e9a)),this['decode'](_0x803e9a,_0x803e9a['uint32']());},_0x800808['verify']=function(_0x54da1b){return'object'!=typeof _0x54da1b||null===_0x54da1b?'object\x20expected':null!=_0x54da1b['id']&&_0x54da1b['hasOwnProperty']('id')&&!_0x32c136['isString'](_0x54da1b['id'])?'id:\x20string\x20expected':null!=_0x54da1b['authorId']&&_0x54da1b['hasOwnProperty']('authorId')&&!_0x32c136['isString'](_0x54da1b['authorId'])?'authorId:\x20string\x20expected':null!=_0x54da1b['type']&&_0x54da1b['hasOwnProperty']('type')&&!_0x32c136['isString'](_0x54da1b['type'])?'type:\x20string\x20expected':null!=_0x54da1b['createdAt']&&_0x54da1b['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0x54da1b['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x54da1b['data']&&_0x54da1b['hasOwnProperty']('data')&&!_0x32c136['isString'](_0x54da1b['data'])?'data:\x20string\x20expected':null!=_0x54da1b['hasComments']&&_0x54da1b['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x54da1b['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x54da1b['state']&&_0x54da1b['hasOwnProperty']('state')&&!_0x32c136['isString'](_0x54da1b['state'])?'state:\x20string\x20expected':null!=_0x54da1b['attributes']&&_0x54da1b['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x54da1b['attributes'])?'attributes:\x20string\x20expected':null;},_0x800808['fromObject']=function(_0x57c406){if(_0x57c406 instanceof _0xdb1853['TrackChangesAddSuggestionResponse'])return _0x57c406;var _0x1bcb93=new _0xdb1853['TrackChangesAddSuggestionResponse']();return null!=_0x57c406['id']&&(_0x1bcb93['id']=String(_0x57c406['id'])),null!=_0x57c406['authorId']&&(_0x1bcb93['authorId']=String(_0x57c406['authorId'])),null!=_0x57c406['type']&&(_0x1bcb93['type']=String(_0x57c406['type'])),null!=_0x57c406['createdAt']&&(_0x1bcb93['createdAt']=String(_0x57c406['createdAt'])),null!=_0x57c406['data']&&(_0x1bcb93['data']=String(_0x57c406['data'])),null!=_0x57c406['hasComments']&&(_0x1bcb93['hasComments']=Boolean(_0x57c406['hasComments'])),null!=_0x57c406['state']&&(_0x1bcb93['state']=String(_0x57c406['state'])),null!=_0x57c406['attributes']&&(_0x1bcb93['attributes']=String(_0x57c406['attributes'])),_0x1bcb93;},_0x800808['toObject']=function(_0x2b6eb6,_0x4d170a){_0x4d170a||(_0x4d170a={});var _0x83f2ed={};return _0x4d170a['defaults']&&(_0x83f2ed['id']='',_0x83f2ed['authorId']='',_0x83f2ed['type']='',_0x83f2ed['createdAt']='',_0x83f2ed['data']='',_0x83f2ed['hasComments']=!0x1,_0x83f2ed['state']='',_0x83f2ed['attributes']=''),null!=_0x2b6eb6['id']&&_0x2b6eb6['hasOwnProperty']('id')&&(_0x83f2ed['id']=_0x2b6eb6['id']),null!=_0x2b6eb6['authorId']&&_0x2b6eb6['hasOwnProperty']('authorId')&&(_0x83f2ed['authorId']=_0x2b6eb6['authorId']),null!=_0x2b6eb6['type']&&_0x2b6eb6['hasOwnProperty']('type')&&(_0x83f2ed['type']=_0x2b6eb6['type']),null!=_0x2b6eb6['createdAt']&&_0x2b6eb6['hasOwnProperty']('createdAt')&&(_0x83f2ed['createdAt']=_0x2b6eb6['createdAt']),null!=_0x2b6eb6['data']&&_0x2b6eb6['hasOwnProperty']('data')&&(_0x83f2ed['data']=_0x2b6eb6['data']),null!=_0x2b6eb6['hasComments']&&_0x2b6eb6['hasOwnProperty']('hasComments')&&(_0x83f2ed['hasComments']=_0x2b6eb6['hasComments']),null!=_0x2b6eb6['state']&&_0x2b6eb6['hasOwnProperty']('state')&&(_0x83f2ed['state']=_0x2b6eb6['state']),null!=_0x2b6eb6['attributes']&&_0x2b6eb6['hasOwnProperty']('attributes')&&(_0x83f2ed['attributes']=_0x2b6eb6['attributes']),_0x83f2ed;},_0x800808['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x800808['getTypeUrl']=function(_0x59ff08){return void 0x0===_0x59ff08&&(_0x59ff08='type.googleapis.com'),_0x59ff08+'/TrackChangesAddSuggestionResponse';},_0x800808;}()),_0xdb1853['TrackChangesUpdateSuggestionMessage']=(function(){function _0x4fd7cf(_0x5c20ee){if(_0x5c20ee){for(var _0x597591=Object['keys'](_0x5c20ee),_0x40b269=0x0;_0x40b269<_0x597591['length'];++_0x40b269)null!=_0x5c20ee[_0x597591[_0x40b269]]&&(this[_0x597591[_0x40b269]]=_0x5c20ee[_0x597591[_0x40b269]]);}}return _0x4fd7cf['prototype']['id']='',_0x4fd7cf['prototype']['documentId']='',_0x4fd7cf['prototype']['hasComments']=!0x1,_0x4fd7cf['prototype']['isHasCommentsModified']=!0x1,_0x4fd7cf['prototype']['state']='',_0x4fd7cf['prototype']['attributes']='',_0x4fd7cf['create']=function(_0x2da0d7){return new _0x4fd7cf(_0x2da0d7);},_0x4fd7cf['encode']=function(_0x5ef664,_0x5a8979){return _0x5a8979||(_0x5a8979=_0x320e1c['create']()),null!=_0x5ef664['id']&&Object['hasOwnProperty']['call'](_0x5ef664,'id')&&_0x5a8979['uint32'](0xa)['string'](_0x5ef664['id']),null!=_0x5ef664['documentId']&&Object['hasOwnProperty']['call'](_0x5ef664,'documentId')&&_0x5a8979['uint32'](0x12)['string'](_0x5ef664['documentId']),null!=_0x5ef664['hasComments']&&Object['hasOwnProperty']['call'](_0x5ef664,'hasComments')&&_0x5a8979['uint32'](0x18)['bool'](_0x5ef664['hasComments']),null!=_0x5ef664['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x5ef664,'isHasCommentsModified')&&_0x5a8979['uint32'](0x20)['bool'](_0x5ef664['isHasCommentsModified']),null!=_0x5ef664['state']&&Object['hasOwnProperty']['call'](_0x5ef664,'state')&&_0x5a8979['uint32'](0x2a)['string'](_0x5ef664['state']),null!=_0x5ef664['attributes']&&Object['hasOwnProperty']['call'](_0x5ef664,'attributes')&&_0x5a8979['uint32'](0x32)['string'](_0x5ef664['attributes']),_0x5a8979;},_0x4fd7cf['encodeDelimited']=function(_0x3c4431,_0x42ae2d){return this['encode'](_0x3c4431,_0x42ae2d)['ldelim']();},_0x4fd7cf['decode']=function(_0xbd68aa,_0x147ca8,_0x26983b){_0xbd68aa instanceof _0x254bdb||(_0xbd68aa=_0x254bdb['create'](_0xbd68aa));for(var _0x4fb2dc=void 0x0===_0x147ca8?_0xbd68aa['len']:_0xbd68aa['pos']+_0x147ca8,_0x1a21e0=new _0xdb1853['TrackChangesUpdateSuggestionMessage']();_0xbd68aa['pos']<_0x4fb2dc;){var _0x567978=_0xbd68aa['uint32']();if(_0x567978===_0x26983b)break;switch(_0x567978>>>0x3){case 0x1:_0x1a21e0['id']=_0xbd68aa['string']();break;case 0x2:_0x1a21e0['documentId']=_0xbd68aa['string']();break;case 0x3:_0x1a21e0['hasComments']=_0xbd68aa['bool']();break;case 0x4:_0x1a21e0['isHasCommentsModified']=_0xbd68aa['bool']();break;case 0x5:_0x1a21e0['state']=_0xbd68aa['string']();break;case 0x6:_0x1a21e0['attributes']=_0xbd68aa['string']();break;default:_0xbd68aa['skipType'](0x7&_0x567978);}}return _0x1a21e0;},_0x4fd7cf['decodeDelimited']=function(_0x5f32eb){return _0x5f32eb instanceof _0x254bdb||(_0x5f32eb=new _0x254bdb(_0x5f32eb)),this['decode'](_0x5f32eb,_0x5f32eb['uint32']());},_0x4fd7cf['verify']=function(_0x4bd738){return'object'!=typeof _0x4bd738||null===_0x4bd738?'object\x20expected':null!=_0x4bd738['id']&&_0x4bd738['hasOwnProperty']('id')&&!_0x32c136['isString'](_0x4bd738['id'])?'id:\x20string\x20expected':null!=_0x4bd738['documentId']&&_0x4bd738['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x4bd738['documentId'])?'documentId:\x20string\x20expected':null!=_0x4bd738['hasComments']&&_0x4bd738['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x4bd738['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x4bd738['isHasCommentsModified']&&_0x4bd738['hasOwnProperty']('isHasCommentsModified')&&'boolean'!=typeof _0x4bd738['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x4bd738['state']&&_0x4bd738['hasOwnProperty']('state')&&!_0x32c136['isString'](_0x4bd738['state'])?'state:\x20string\x20expected':null!=_0x4bd738['attributes']&&_0x4bd738['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x4bd738['attributes'])?'attributes:\x20string\x20expected':null;},_0x4fd7cf['fromObject']=function(_0x3a515c){if(_0x3a515c instanceof _0xdb1853['TrackChangesUpdateSuggestionMessage'])return _0x3a515c;var _0x118fdc=new _0xdb1853['TrackChangesUpdateSuggestionMessage']();return null!=_0x3a515c['id']&&(_0x118fdc['id']=String(_0x3a515c['id'])),null!=_0x3a515c['documentId']&&(_0x118fdc['documentId']=String(_0x3a515c['documentId'])),null!=_0x3a515c['hasComments']&&(_0x118fdc['hasComments']=Boolean(_0x3a515c['hasComments'])),null!=_0x3a515c['isHasCommentsModified']&&(_0x118fdc['isHasCommentsModified']=Boolean(_0x3a515c['isHasCommentsModified'])),null!=_0x3a515c['state']&&(_0x118fdc['state']=String(_0x3a515c['state'])),null!=_0x3a515c['attributes']&&(_0x118fdc['attributes']=String(_0x3a515c['attributes'])),_0x118fdc;},_0x4fd7cf['toObject']=function(_0x49da09,_0x1b3781){_0x1b3781||(_0x1b3781={});var _0x3d6348={};return _0x1b3781['defaults']&&(_0x3d6348['id']='',_0x3d6348['documentId']='',_0x3d6348['hasComments']=!0x1,_0x3d6348['isHasCommentsModified']=!0x1,_0x3d6348['state']='',_0x3d6348['attributes']=''),null!=_0x49da09['id']&&_0x49da09['hasOwnProperty']('id')&&(_0x3d6348['id']=_0x49da09['id']),null!=_0x49da09['documentId']&&_0x49da09['hasOwnProperty']('documentId')&&(_0x3d6348['documentId']=_0x49da09['documentId']),null!=_0x49da09['hasComments']&&_0x49da09['hasOwnProperty']('hasComments')&&(_0x3d6348['hasComments']=_0x49da09['hasComments']),null!=_0x49da09['isHasCommentsModified']&&_0x49da09['hasOwnProperty']('isHasCommentsModified')&&(_0x3d6348['isHasCommentsModified']=_0x49da09['isHasCommentsModified']),null!=_0x49da09['state']&&_0x49da09['hasOwnProperty']('state')&&(_0x3d6348['state']=_0x49da09['state']),null!=_0x49da09['attributes']&&_0x49da09['hasOwnProperty']('attributes')&&(_0x3d6348['attributes']=_0x49da09['attributes']),_0x3d6348;},_0x4fd7cf['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4fd7cf['getTypeUrl']=function(_0x53ef03){return void 0x0===_0x53ef03&&(_0x53ef03='type.googleapis.com'),_0x53ef03+'/TrackChangesUpdateSuggestionMessage';},_0x4fd7cf;}()),_0xdb1853['TrackChangesGetSuggestionMessage']=(function(){function _0xb3f473(_0xe22a11){if(_0xe22a11){for(var _0x56ad2b=Object['keys'](_0xe22a11),_0x5e9171=0x0;_0x5e9171<_0x56ad2b['length'];++_0x5e9171)null!=_0xe22a11[_0x56ad2b[_0x5e9171]]&&(this[_0x56ad2b[_0x5e9171]]=_0xe22a11[_0x56ad2b[_0x5e9171]]);}}return _0xb3f473['prototype']['id']='',_0xb3f473['prototype']['documentId']='',_0xb3f473['create']=function(_0x568cff){return new _0xb3f473(_0x568cff);},_0xb3f473['encode']=function(_0x2bf0b1,_0x1865a4){return _0x1865a4||(_0x1865a4=_0x320e1c['create']()),null!=_0x2bf0b1['id']&&Object['hasOwnProperty']['call'](_0x2bf0b1,'id')&&_0x1865a4['uint32'](0xa)['string'](_0x2bf0b1['id']),null!=_0x2bf0b1['documentId']&&Object['hasOwnProperty']['call'](_0x2bf0b1,'documentId')&&_0x1865a4['uint32'](0x12)['string'](_0x2bf0b1['documentId']),_0x1865a4;},_0xb3f473['encodeDelimited']=function(_0x3cf9d4,_0x567bb7){return this['encode'](_0x3cf9d4,_0x567bb7)['ldelim']();},_0xb3f473['decode']=function(_0x546ef8,_0x1d799d,_0x2ce545){_0x546ef8 instanceof _0x254bdb||(_0x546ef8=_0x254bdb['create'](_0x546ef8));for(var _0x4da610=void 0x0===_0x1d799d?_0x546ef8['len']:_0x546ef8['pos']+_0x1d799d,_0x17e6f7=new _0xdb1853['TrackChangesGetSuggestionMessage']();_0x546ef8['pos']<_0x4da610;){var _0x112e64=_0x546ef8['uint32']();if(_0x112e64===_0x2ce545)break;switch(_0x112e64>>>0x3){case 0x1:_0x17e6f7['id']=_0x546ef8['string']();break;case 0x2:_0x17e6f7['documentId']=_0x546ef8['string']();break;default:_0x546ef8['skipType'](0x7&_0x112e64);}}return _0x17e6f7;},_0xb3f473['decodeDelimited']=function(_0x1cf106){return _0x1cf106 instanceof _0x254bdb||(_0x1cf106=new _0x254bdb(_0x1cf106)),this['decode'](_0x1cf106,_0x1cf106['uint32']());},_0xb3f473['verify']=function(_0x108f75){return'object'!=typeof _0x108f75||null===_0x108f75?'object\x20expected':null!=_0x108f75['id']&&_0x108f75['hasOwnProperty']('id')&&!_0x32c136['isString'](_0x108f75['id'])?'id:\x20string\x20expected':null!=_0x108f75['documentId']&&_0x108f75['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x108f75['documentId'])?'documentId:\x20string\x20expected':null;},_0xb3f473['fromObject']=function(_0x5168f6){if(_0x5168f6 instanceof _0xdb1853['TrackChangesGetSuggestionMessage'])return _0x5168f6;var _0x5a2f9e=new _0xdb1853['TrackChangesGetSuggestionMessage']();return null!=_0x5168f6['id']&&(_0x5a2f9e['id']=String(_0x5168f6['id'])),null!=_0x5168f6['documentId']&&(_0x5a2f9e['documentId']=String(_0x5168f6['documentId'])),_0x5a2f9e;},_0xb3f473['toObject']=function(_0x651850,_0x1ec5a2){_0x1ec5a2||(_0x1ec5a2={});var _0x4e77f6={};return _0x1ec5a2['defaults']&&(_0x4e77f6['id']='',_0x4e77f6['documentId']=''),null!=_0x651850['id']&&_0x651850['hasOwnProperty']('id')&&(_0x4e77f6['id']=_0x651850['id']),null!=_0x651850['documentId']&&_0x651850['hasOwnProperty']('documentId')&&(_0x4e77f6['documentId']=_0x651850['documentId']),_0x4e77f6;},_0xb3f473['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xb3f473['getTypeUrl']=function(_0xb8c3aa){return void 0x0===_0xb8c3aa&&(_0xb8c3aa='type.googleapis.com'),_0xb8c3aa+'/TrackChangesGetSuggestionMessage';},_0xb3f473;}()),_0xdb1853['TrackChangesGetAllSuggestionMessage']=(function(){function _0x58c1a3(_0x3865af){if(_0x3865af){for(var _0x22cd30=Object['keys'](_0x3865af),_0x3c0ccf=0x0;_0x3c0ccf<_0x22cd30['length'];++_0x3c0ccf)null!=_0x3865af[_0x22cd30[_0x3c0ccf]]&&(this[_0x22cd30[_0x3c0ccf]]=_0x3865af[_0x22cd30[_0x3c0ccf]]);}}return _0x58c1a3['prototype']['documentId']='',_0x58c1a3['create']=function(_0x43a50d){return new _0x58c1a3(_0x43a50d);},_0x58c1a3['encode']=function(_0x3b4e5f,_0x4f99d1){return _0x4f99d1||(_0x4f99d1=_0x320e1c['create']()),null!=_0x3b4e5f['documentId']&&Object['hasOwnProperty']['call'](_0x3b4e5f,'documentId')&&_0x4f99d1['uint32'](0xa)['string'](_0x3b4e5f['documentId']),_0x4f99d1;},_0x58c1a3['encodeDelimited']=function(_0x2fd504,_0x193791){return this['encode'](_0x2fd504,_0x193791)['ldelim']();},_0x58c1a3['decode']=function(_0x3c4461,_0x4a1ff9,_0x7a599d){_0x3c4461 instanceof _0x254bdb||(_0x3c4461=_0x254bdb['create'](_0x3c4461));for(var _0xc7d238=void 0x0===_0x4a1ff9?_0x3c4461['len']:_0x3c4461['pos']+_0x4a1ff9,_0x553b71=new _0xdb1853['TrackChangesGetAllSuggestionMessage']();_0x3c4461['pos']<_0xc7d238;){var _0x3a6448=_0x3c4461['uint32']();if(_0x3a6448===_0x7a599d)break;_0x3a6448>>>0x3==0x1?_0x553b71['documentId']=_0x3c4461['string']():_0x3c4461['skipType'](0x7&_0x3a6448);}return _0x553b71;},_0x58c1a3['decodeDelimited']=function(_0x26c8a8){return _0x26c8a8 instanceof _0x254bdb||(_0x26c8a8=new _0x254bdb(_0x26c8a8)),this['decode'](_0x26c8a8,_0x26c8a8['uint32']());},_0x58c1a3['verify']=function(_0x515d75){return'object'!=typeof _0x515d75||null===_0x515d75?'object\x20expected':null!=_0x515d75['documentId']&&_0x515d75['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x515d75['documentId'])?'documentId:\x20string\x20expected':null;},_0x58c1a3['fromObject']=function(_0x3838ba){if(_0x3838ba instanceof _0xdb1853['TrackChangesGetAllSuggestionMessage'])return _0x3838ba;var _0x3e145a=new _0xdb1853['TrackChangesGetAllSuggestionMessage']();return null!=_0x3838ba['documentId']&&(_0x3e145a['documentId']=String(_0x3838ba['documentId'])),_0x3e145a;},_0x58c1a3['toObject']=function(_0x2108cd,_0x153346){_0x153346||(_0x153346={});var _0x12df34={};return _0x153346['defaults']&&(_0x12df34['documentId']=''),null!=_0x2108cd['documentId']&&_0x2108cd['hasOwnProperty']('documentId')&&(_0x12df34['documentId']=_0x2108cd['documentId']),_0x12df34;},_0x58c1a3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x58c1a3['getTypeUrl']=function(_0xb48aba){return void 0x0===_0xb48aba&&(_0xb48aba='type.googleapis.com'),_0xb48aba+'/TrackChangesGetAllSuggestionMessage';},_0x58c1a3;}()),_0xdb1853['TrackChangesConnectMessage']=(function(){function _0x57cf74(_0x1ed20d){if(_0x1ed20d){for(var _0x11847b=Object['keys'](_0x1ed20d),_0x564dec=0x0;_0x564dec<_0x11847b['length'];++_0x564dec)null!=_0x1ed20d[_0x11847b[_0x564dec]]&&(this[_0x11847b[_0x564dec]]=_0x1ed20d[_0x11847b[_0x564dec]]);}}return _0x57cf74['prototype']['documentId']='',_0x57cf74['create']=function(_0x3aa449){return new _0x57cf74(_0x3aa449);},_0x57cf74['encode']=function(_0x4c2fbd,_0x2a6b7f){return _0x2a6b7f||(_0x2a6b7f=_0x320e1c['create']()),null!=_0x4c2fbd['documentId']&&Object['hasOwnProperty']['call'](_0x4c2fbd,'documentId')&&_0x2a6b7f['uint32'](0xa)['string'](_0x4c2fbd['documentId']),_0x2a6b7f;},_0x57cf74['encodeDelimited']=function(_0x242e54,_0x21fb4a){return this['encode'](_0x242e54,_0x21fb4a)['ldelim']();},_0x57cf74['decode']=function(_0xfd5d8,_0x3c82f6,_0x4a22c2){_0xfd5d8 instanceof _0x254bdb||(_0xfd5d8=_0x254bdb['create'](_0xfd5d8));for(var _0x1d939b=void 0x0===_0x3c82f6?_0xfd5d8['len']:_0xfd5d8['pos']+_0x3c82f6,_0x31996f=new _0xdb1853['TrackChangesConnectMessage']();_0xfd5d8['pos']<_0x1d939b;){var _0x13f810=_0xfd5d8['uint32']();if(_0x13f810===_0x4a22c2)break;_0x13f810>>>0x3==0x1?_0x31996f['documentId']=_0xfd5d8['string']():_0xfd5d8['skipType'](0x7&_0x13f810);}return _0x31996f;},_0x57cf74['decodeDelimited']=function(_0x49b05b){return _0x49b05b instanceof _0x254bdb||(_0x49b05b=new _0x254bdb(_0x49b05b)),this['decode'](_0x49b05b,_0x49b05b['uint32']());},_0x57cf74['verify']=function(_0x383a17){return'object'!=typeof _0x383a17||null===_0x383a17?'object\x20expected':null!=_0x383a17['documentId']&&_0x383a17['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x383a17['documentId'])?'documentId:\x20string\x20expected':null;},_0x57cf74['fromObject']=function(_0x503539){if(_0x503539 instanceof _0xdb1853['TrackChangesConnectMessage'])return _0x503539;var _0x229711=new _0xdb1853['TrackChangesConnectMessage']();return null!=_0x503539['documentId']&&(_0x229711['documentId']=String(_0x503539['documentId'])),_0x229711;},_0x57cf74['toObject']=function(_0x220ddd,_0x3cf45d){_0x3cf45d||(_0x3cf45d={});var _0x4e28ab={};return _0x3cf45d['defaults']&&(_0x4e28ab['documentId']=''),null!=_0x220ddd['documentId']&&_0x220ddd['hasOwnProperty']('documentId')&&(_0x4e28ab['documentId']=_0x220ddd['documentId']),_0x4e28ab;},_0x57cf74['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x57cf74['getTypeUrl']=function(_0x20740b){return void 0x0===_0x20740b&&(_0x20740b='type.googleapis.com'),_0x20740b+'/TrackChangesConnectMessage';},_0x57cf74;}()),_0xdb1853['TrackChangesBatchUpdateSuggestionsStateMessage']=(function(){function _0x24cdd3(_0x598e8d){if(this['ids']=[],_0x598e8d){for(var _0x135309=Object['keys'](_0x598e8d),_0x372a2a=0x0;_0x372a2a<_0x135309['length'];++_0x372a2a)null!=_0x598e8d[_0x135309[_0x372a2a]]&&(this[_0x135309[_0x372a2a]]=_0x598e8d[_0x135309[_0x372a2a]]);}}return _0x24cdd3['prototype']['ids']=_0x32c136['emptyArray'],_0x24cdd3['prototype']['documentId']='',_0x24cdd3['prototype']['state']='',_0x24cdd3['create']=function(_0x5b218b){return new _0x24cdd3(_0x5b218b);},_0x24cdd3['encode']=function(_0x2c9798,_0x40d123){if(_0x40d123||(_0x40d123=_0x320e1c['create']()),null!=_0x2c9798['ids']&&_0x2c9798['ids']['length']){for(var _0x5c0f96=0x0;_0x5c0f96<_0x2c9798['ids']['length'];++_0x5c0f96)_0x40d123['uint32'](0xa)['string'](_0x2c9798['ids'][_0x5c0f96]);}return null!=_0x2c9798['documentId']&&Object['hasOwnProperty']['call'](_0x2c9798,'documentId')&&_0x40d123['uint32'](0x12)['string'](_0x2c9798['documentId']),null!=_0x2c9798['state']&&Object['hasOwnProperty']['call'](_0x2c9798,'state')&&_0x40d123['uint32'](0x1a)['string'](_0x2c9798['state']),_0x40d123;},_0x24cdd3['encodeDelimited']=function(_0x299039,_0x14e0cb){return this['encode'](_0x299039,_0x14e0cb)['ldelim']();},_0x24cdd3['decode']=function(_0x2ea771,_0x2e4d9e,_0x226bfe){_0x2ea771 instanceof _0x254bdb||(_0x2ea771=_0x254bdb['create'](_0x2ea771));for(var _0x559319=void 0x0===_0x2e4d9e?_0x2ea771['len']:_0x2ea771['pos']+_0x2e4d9e,_0x1be9fa=new _0xdb1853['TrackChangesBatchUpdateSuggestionsStateMessage']();_0x2ea771['pos']<_0x559319;){var _0x2c8263=_0x2ea771['uint32']();if(_0x2c8263===_0x226bfe)break;switch(_0x2c8263>>>0x3){case 0x1:_0x1be9fa['ids']&&_0x1be9fa['ids']['length']||(_0x1be9fa['ids']=[]),_0x1be9fa['ids']['push'](_0x2ea771['string']());break;case 0x2:_0x1be9fa['documentId']=_0x2ea771['string']();break;case 0x3:_0x1be9fa['state']=_0x2ea771['string']();break;default:_0x2ea771['skipType'](0x7&_0x2c8263);}}return _0x1be9fa;},_0x24cdd3['decodeDelimited']=function(_0x4794ff){return _0x4794ff instanceof _0x254bdb||(_0x4794ff=new _0x254bdb(_0x4794ff)),this['decode'](_0x4794ff,_0x4794ff['uint32']());},_0x24cdd3['verify']=function(_0x1565db){if('object'!=typeof _0x1565db||null===_0x1565db)return'object\x20expected';if(null!=_0x1565db['ids']&&_0x1565db['hasOwnProperty']('ids')){if(!Array['isArray'](_0x1565db['ids']))return'ids:\x20array\x20expected';for(var _0x333a19=0x0;_0x333a19<_0x1565db['ids']['length'];++_0x333a19)if(!_0x32c136['isString'](_0x1565db['ids'][_0x333a19]))return'ids:\x20string[]\x20expected';}return null!=_0x1565db['documentId']&&_0x1565db['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x1565db['documentId'])?'documentId:\x20string\x20expected':null!=_0x1565db['state']&&_0x1565db['hasOwnProperty']('state')&&!_0x32c136['isString'](_0x1565db['state'])?'state:\x20string\x20expected':null;},_0x24cdd3['fromObject']=function(_0x5739fb){if(_0x5739fb instanceof _0xdb1853['TrackChangesBatchUpdateSuggestionsStateMessage'])return _0x5739fb;var _0x362026=new _0xdb1853['TrackChangesBatchUpdateSuggestionsStateMessage']();if(_0x5739fb['ids']){if(!Array['isArray'](_0x5739fb['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x362026['ids']=[];for(var _0x382471=0x0;_0x382471<_0x5739fb['ids']['length'];++_0x382471)_0x362026['ids'][_0x382471]=String(_0x5739fb['ids'][_0x382471]);}return null!=_0x5739fb['documentId']&&(_0x362026['documentId']=String(_0x5739fb['documentId'])),null!=_0x5739fb['state']&&(_0x362026['state']=String(_0x5739fb['state'])),_0x362026;},_0x24cdd3['toObject']=function(_0x5b2861,_0x12dd78){_0x12dd78||(_0x12dd78={});var _0x5e93ec={};if((_0x12dd78['arrays']||_0x12dd78['defaults'])&&(_0x5e93ec['ids']=[]),_0x12dd78['defaults']&&(_0x5e93ec['documentId']='',_0x5e93ec['state']=''),_0x5b2861['ids']&&_0x5b2861['ids']['length']){_0x5e93ec['ids']=[];for(var _0x471ddb=0x0;_0x471ddb<_0x5b2861['ids']['length'];++_0x471ddb)_0x5e93ec['ids'][_0x471ddb]=_0x5b2861['ids'][_0x471ddb];}return null!=_0x5b2861['documentId']&&_0x5b2861['hasOwnProperty']('documentId')&&(_0x5e93ec['documentId']=_0x5b2861['documentId']),null!=_0x5b2861['state']&&_0x5b2861['hasOwnProperty']('state')&&(_0x5e93ec['state']=_0x5b2861['state']),_0x5e93ec;},_0x24cdd3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x24cdd3['getTypeUrl']=function(_0x5cd6e6){return void 0x0===_0x5cd6e6&&(_0x5cd6e6='type.googleapis.com'),_0x5cd6e6+'/TrackChangesBatchUpdateSuggestionsStateMessage';},_0x24cdd3;}()),_0xdb1853['TrackChangesAddSuggestionMessage']=(function(){function _0x5c631d(_0x21e046){if(_0x21e046){for(var _0x1b7cc4=Object['keys'](_0x21e046),_0x5040b1=0x0;_0x5040b1<_0x1b7cc4['length'];++_0x5040b1)null!=_0x21e046[_0x1b7cc4[_0x5040b1]]&&(this[_0x1b7cc4[_0x5040b1]]=_0x21e046[_0x1b7cc4[_0x5040b1]]);}}return _0x5c631d['prototype']['id']='',_0x5c631d['prototype']['documentId']='',_0x5c631d['prototype']['type']='',_0x5c631d['prototype']['data']='',_0x5c631d['prototype']['originalSuggestionId']='',_0x5c631d['prototype']['attributes']='',_0x5c631d['create']=function(_0x1f3d79){return new _0x5c631d(_0x1f3d79);},_0x5c631d['encode']=function(_0x7b70f,_0x36fc6f){return _0x36fc6f||(_0x36fc6f=_0x320e1c['create']()),null!=_0x7b70f['id']&&Object['hasOwnProperty']['call'](_0x7b70f,'id')&&_0x36fc6f['uint32'](0xa)['string'](_0x7b70f['id']),null!=_0x7b70f['documentId']&&Object['hasOwnProperty']['call'](_0x7b70f,'documentId')&&_0x36fc6f['uint32'](0x12)['string'](_0x7b70f['documentId']),null!=_0x7b70f['type']&&Object['hasOwnProperty']['call'](_0x7b70f,'type')&&_0x36fc6f['uint32'](0x1a)['string'](_0x7b70f['type']),null!=_0x7b70f['data']&&Object['hasOwnProperty']['call'](_0x7b70f,'data')&&_0x36fc6f['uint32'](0x22)['string'](_0x7b70f['data']),null!=_0x7b70f['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x7b70f,'originalSuggestionId')&&_0x36fc6f['uint32'](0x2a)['string'](_0x7b70f['originalSuggestionId']),null!=_0x7b70f['attributes']&&Object['hasOwnProperty']['call'](_0x7b70f,'attributes')&&_0x36fc6f['uint32'](0x32)['string'](_0x7b70f['attributes']),_0x36fc6f;},_0x5c631d['encodeDelimited']=function(_0x37f6b4,_0x1e3aaa){return this['encode'](_0x37f6b4,_0x1e3aaa)['ldelim']();},_0x5c631d['decode']=function(_0x436cd5,_0x37fb2c,_0xb58540){_0x436cd5 instanceof _0x254bdb||(_0x436cd5=_0x254bdb['create'](_0x436cd5));for(var _0x27f127=void 0x0===_0x37fb2c?_0x436cd5['len']:_0x436cd5['pos']+_0x37fb2c,_0x313ec6=new _0xdb1853['TrackChangesAddSuggestionMessage']();_0x436cd5['pos']<_0x27f127;){var _0x3108d4=_0x436cd5['uint32']();if(_0x3108d4===_0xb58540)break;switch(_0x3108d4>>>0x3){case 0x1:_0x313ec6['id']=_0x436cd5['string']();break;case 0x2:_0x313ec6['documentId']=_0x436cd5['string']();break;case 0x3:_0x313ec6['type']=_0x436cd5['string']();break;case 0x4:_0x313ec6['data']=_0x436cd5['string']();break;case 0x5:_0x313ec6['originalSuggestionId']=_0x436cd5['string']();break;case 0x6:_0x313ec6['attributes']=_0x436cd5['string']();break;default:_0x436cd5['skipType'](0x7&_0x3108d4);}}return _0x313ec6;},_0x5c631d['decodeDelimited']=function(_0x9ccf32){return _0x9ccf32 instanceof _0x254bdb||(_0x9ccf32=new _0x254bdb(_0x9ccf32)),this['decode'](_0x9ccf32,_0x9ccf32['uint32']());},_0x5c631d['verify']=function(_0x219a59){return'object'!=typeof _0x219a59||null===_0x219a59?'object\x20expected':null!=_0x219a59['id']&&_0x219a59['hasOwnProperty']('id')&&!_0x32c136['isString'](_0x219a59['id'])?'id:\x20string\x20expected':null!=_0x219a59['documentId']&&_0x219a59['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x219a59['documentId'])?'documentId:\x20string\x20expected':null!=_0x219a59['type']&&_0x219a59['hasOwnProperty']('type')&&!_0x32c136['isString'](_0x219a59['type'])?'type:\x20string\x20expected':null!=_0x219a59['data']&&_0x219a59['hasOwnProperty']('data')&&!_0x32c136['isString'](_0x219a59['data'])?'data:\x20string\x20expected':null!=_0x219a59['originalSuggestionId']&&_0x219a59['hasOwnProperty']('originalSuggestionId')&&!_0x32c136['isString'](_0x219a59['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0x219a59['attributes']&&_0x219a59['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x219a59['attributes'])?'attributes:\x20string\x20expected':null;},_0x5c631d['fromObject']=function(_0x2e431c){if(_0x2e431c instanceof _0xdb1853['TrackChangesAddSuggestionMessage'])return _0x2e431c;var _0x495dda=new _0xdb1853['TrackChangesAddSuggestionMessage']();return null!=_0x2e431c['id']&&(_0x495dda['id']=String(_0x2e431c['id'])),null!=_0x2e431c['documentId']&&(_0x495dda['documentId']=String(_0x2e431c['documentId'])),null!=_0x2e431c['type']&&(_0x495dda['type']=String(_0x2e431c['type'])),null!=_0x2e431c['data']&&(_0x495dda['data']=String(_0x2e431c['data'])),null!=_0x2e431c['originalSuggestionId']&&(_0x495dda['originalSuggestionId']=String(_0x2e431c['originalSuggestionId'])),null!=_0x2e431c['attributes']&&(_0x495dda['attributes']=String(_0x2e431c['attributes'])),_0x495dda;},_0x5c631d['toObject']=function(_0x961b47,_0xa8af03){_0xa8af03||(_0xa8af03={});var _0x30e00e={};return _0xa8af03['defaults']&&(_0x30e00e['id']='',_0x30e00e['documentId']='',_0x30e00e['type']='',_0x30e00e['data']='',_0x30e00e['originalSuggestionId']='',_0x30e00e['attributes']=''),null!=_0x961b47['id']&&_0x961b47['hasOwnProperty']('id')&&(_0x30e00e['id']=_0x961b47['id']),null!=_0x961b47['documentId']&&_0x961b47['hasOwnProperty']('documentId')&&(_0x30e00e['documentId']=_0x961b47['documentId']),null!=_0x961b47['type']&&_0x961b47['hasOwnProperty']('type')&&(_0x30e00e['type']=_0x961b47['type']),null!=_0x961b47['data']&&_0x961b47['hasOwnProperty']('data')&&(_0x30e00e['data']=_0x961b47['data']),null!=_0x961b47['originalSuggestionId']&&_0x961b47['hasOwnProperty']('originalSuggestionId')&&(_0x30e00e['originalSuggestionId']=_0x961b47['originalSuggestionId']),null!=_0x961b47['attributes']&&_0x961b47['hasOwnProperty']('attributes')&&(_0x30e00e['attributes']=_0x961b47['attributes']),_0x30e00e;},_0x5c631d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5c631d['getTypeUrl']=function(_0x1fc17b){return void 0x0===_0x1fc17b&&(_0x1fc17b='type.googleapis.com'),_0x1fc17b+'/TrackChangesAddSuggestionMessage';},_0x5c631d;}()),_0xdb1853['SuggestionDescriptor']=(function(){function _0xb58b4d(_0x10d6e8){if(_0x10d6e8){for(var _0x1fd743=Object['keys'](_0x10d6e8),_0x616c6e=0x0;_0x616c6e<_0x1fd743['length'];++_0x616c6e)null!=_0x10d6e8[_0x1fd743[_0x616c6e]]&&(this[_0x1fd743[_0x616c6e]]=_0x10d6e8[_0x1fd743[_0x616c6e]]);}}return _0xb58b4d['prototype']['id']='',_0xb58b4d['prototype']['authorId']='',_0xb58b4d['prototype']['type']='',_0xb58b4d['prototype']['createdAt']='',_0xb58b4d['prototype']['data']='',_0xb58b4d['prototype']['hasComments']=!0x1,_0xb58b4d['prototype']['state']='',_0xb58b4d['prototype']['attributes']='',_0xb58b4d['create']=function(_0x4c5ccf){return new _0xb58b4d(_0x4c5ccf);},_0xb58b4d['encode']=function(_0x2db282,_0x21b1cf){return _0x21b1cf||(_0x21b1cf=_0x320e1c['create']()),null!=_0x2db282['id']&&Object['hasOwnProperty']['call'](_0x2db282,'id')&&_0x21b1cf['uint32'](0xa)['string'](_0x2db282['id']),null!=_0x2db282['authorId']&&Object['hasOwnProperty']['call'](_0x2db282,'authorId')&&_0x21b1cf['uint32'](0x12)['string'](_0x2db282['authorId']),null!=_0x2db282['type']&&Object['hasOwnProperty']['call'](_0x2db282,'type')&&_0x21b1cf['uint32'](0x1a)['string'](_0x2db282['type']),null!=_0x2db282['createdAt']&&Object['hasOwnProperty']['call'](_0x2db282,'createdAt')&&_0x21b1cf['uint32'](0x22)['string'](_0x2db282['createdAt']),null!=_0x2db282['data']&&Object['hasOwnProperty']['call'](_0x2db282,'data')&&_0x21b1cf['uint32'](0x2a)['string'](_0x2db282['data']),null!=_0x2db282['hasComments']&&Object['hasOwnProperty']['call'](_0x2db282,'hasComments')&&_0x21b1cf['uint32'](0x30)['bool'](_0x2db282['hasComments']),null!=_0x2db282['state']&&Object['hasOwnProperty']['call'](_0x2db282,'state')&&_0x21b1cf['uint32'](0x3a)['string'](_0x2db282['state']),null!=_0x2db282['attributes']&&Object['hasOwnProperty']['call'](_0x2db282,'attributes')&&_0x21b1cf['uint32'](0x42)['string'](_0x2db282['attributes']),_0x21b1cf;},_0xb58b4d['encodeDelimited']=function(_0x123d69,_0x3ebe40){return this['encode'](_0x123d69,_0x3ebe40)['ldelim']();},_0xb58b4d['decode']=function(_0x5bb8a6,_0x545575,_0x47950d){_0x5bb8a6 instanceof _0x254bdb||(_0x5bb8a6=_0x254bdb['create'](_0x5bb8a6));for(var _0x200879=void 0x0===_0x545575?_0x5bb8a6['len']:_0x5bb8a6['pos']+_0x545575,_0x42c8b4=new _0xdb1853['SuggestionDescriptor']();_0x5bb8a6['pos']<_0x200879;){var _0x563ad9=_0x5bb8a6['uint32']();if(_0x563ad9===_0x47950d)break;switch(_0x563ad9>>>0x3){case 0x1:_0x42c8b4['id']=_0x5bb8a6['string']();break;case 0x2:_0x42c8b4['authorId']=_0x5bb8a6['string']();break;case 0x3:_0x42c8b4['type']=_0x5bb8a6['string']();break;case 0x4:_0x42c8b4['createdAt']=_0x5bb8a6['string']();break;case 0x5:_0x42c8b4['data']=_0x5bb8a6['string']();break;case 0x6:_0x42c8b4['hasComments']=_0x5bb8a6['bool']();break;case 0x7:_0x42c8b4['state']=_0x5bb8a6['string']();break;case 0x8:_0x42c8b4['attributes']=_0x5bb8a6['string']();break;default:_0x5bb8a6['skipType'](0x7&_0x563ad9);}}return _0x42c8b4;},_0xb58b4d['decodeDelimited']=function(_0x4392bc){return _0x4392bc instanceof _0x254bdb||(_0x4392bc=new _0x254bdb(_0x4392bc)),this['decode'](_0x4392bc,_0x4392bc['uint32']());},_0xb58b4d['verify']=function(_0x38232d){return'object'!=typeof _0x38232d||null===_0x38232d?'object\x20expected':null!=_0x38232d['id']&&_0x38232d['hasOwnProperty']('id')&&!_0x32c136['isString'](_0x38232d['id'])?'id:\x20string\x20expected':null!=_0x38232d['authorId']&&_0x38232d['hasOwnProperty']('authorId')&&!_0x32c136['isString'](_0x38232d['authorId'])?'authorId:\x20string\x20expected':null!=_0x38232d['type']&&_0x38232d['hasOwnProperty']('type')&&!_0x32c136['isString'](_0x38232d['type'])?'type:\x20string\x20expected':null!=_0x38232d['createdAt']&&_0x38232d['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0x38232d['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x38232d['data']&&_0x38232d['hasOwnProperty']('data')&&!_0x32c136['isString'](_0x38232d['data'])?'data:\x20string\x20expected':null!=_0x38232d['hasComments']&&_0x38232d['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x38232d['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x38232d['state']&&_0x38232d['hasOwnProperty']('state')&&!_0x32c136['isString'](_0x38232d['state'])?'state:\x20string\x20expected':null!=_0x38232d['attributes']&&_0x38232d['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x38232d['attributes'])?'attributes:\x20string\x20expected':null;},_0xb58b4d['fromObject']=function(_0x2ad395){if(_0x2ad395 instanceof _0xdb1853['SuggestionDescriptor'])return _0x2ad395;var _0x3e8de7=new _0xdb1853['SuggestionDescriptor']();return null!=_0x2ad395['id']&&(_0x3e8de7['id']=String(_0x2ad395['id'])),null!=_0x2ad395['authorId']&&(_0x3e8de7['authorId']=String(_0x2ad395['authorId'])),null!=_0x2ad395['type']&&(_0x3e8de7['type']=String(_0x2ad395['type'])),null!=_0x2ad395['createdAt']&&(_0x3e8de7['createdAt']=String(_0x2ad395['createdAt'])),null!=_0x2ad395['data']&&(_0x3e8de7['data']=String(_0x2ad395['data'])),null!=_0x2ad395['hasComments']&&(_0x3e8de7['hasComments']=Boolean(_0x2ad395['hasComments'])),null!=_0x2ad395['state']&&(_0x3e8de7['state']=String(_0x2ad395['state'])),null!=_0x2ad395['attributes']&&(_0x3e8de7['attributes']=String(_0x2ad395['attributes'])),_0x3e8de7;},_0xb58b4d['toObject']=function(_0x1bec00,_0x1f730c){_0x1f730c||(_0x1f730c={});var _0x1367f9={};return _0x1f730c['defaults']&&(_0x1367f9['id']='',_0x1367f9['authorId']='',_0x1367f9['type']='',_0x1367f9['createdAt']='',_0x1367f9['data']='',_0x1367f9['hasComments']=!0x1,_0x1367f9['state']='',_0x1367f9['attributes']=''),null!=_0x1bec00['id']&&_0x1bec00['hasOwnProperty']('id')&&(_0x1367f9['id']=_0x1bec00['id']),null!=_0x1bec00['authorId']&&_0x1bec00['hasOwnProperty']('authorId')&&(_0x1367f9['authorId']=_0x1bec00['authorId']),null!=_0x1bec00['type']&&_0x1bec00['hasOwnProperty']('type')&&(_0x1367f9['type']=_0x1bec00['type']),null!=_0x1bec00['createdAt']&&_0x1bec00['hasOwnProperty']('createdAt')&&(_0x1367f9['createdAt']=_0x1bec00['createdAt']),null!=_0x1bec00['data']&&_0x1bec00['hasOwnProperty']('data')&&(_0x1367f9['data']=_0x1bec00['data']),null!=_0x1bec00['hasComments']&&_0x1bec00['hasOwnProperty']('hasComments')&&(_0x1367f9['hasComments']=_0x1bec00['hasComments']),null!=_0x1bec00['state']&&_0x1bec00['hasOwnProperty']('state')&&(_0x1367f9['state']=_0x1bec00['state']),null!=_0x1bec00['attributes']&&_0x1bec00['hasOwnProperty']('attributes')&&(_0x1367f9['attributes']=_0x1bec00['attributes']),_0x1367f9;},_0xb58b4d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xb58b4d['getTypeUrl']=function(_0x13c0d1){return void 0x0===_0x13c0d1&&(_0x13c0d1='type.googleapis.com'),_0x13c0d1+'/SuggestionDescriptor';},_0xb58b4d;}()),_0xdb1853['SessionsConnectResponse']=(function(){function _0x319972(_0x368565){if(this['sockets']=[],_0x368565){for(var _0x334f9e=Object['keys'](_0x368565),_0x361866=0x0;_0x361866<_0x334f9e['length'];++_0x361866)null!=_0x368565[_0x334f9e[_0x361866]]&&(this[_0x334f9e[_0x361866]]=_0x368565[_0x334f9e[_0x361866]]);}}return _0x319972['prototype']['channel']='',_0x319972['prototype']['sockets']=_0x32c136['emptyArray'],_0x319972['create']=function(_0x32cd0d){return new _0x319972(_0x32cd0d);},_0x319972['encode']=function(_0x2ab55e,_0x1d3ada){if(_0x1d3ada||(_0x1d3ada=_0x320e1c['create']()),null!=_0x2ab55e['channel']&&Object['hasOwnProperty']['call'](_0x2ab55e,'channel')&&_0x1d3ada['uint32'](0xa)['string'](_0x2ab55e['channel']),null!=_0x2ab55e['sockets']&&_0x2ab55e['sockets']['length']){for(var _0x2a2dcc=0x0;_0x2a2dcc<_0x2ab55e['sockets']['length'];++_0x2a2dcc)_0xdb1853['SessionsSocketDescriptor']['encode'](_0x2ab55e['sockets'][_0x2a2dcc],_0x1d3ada['uint32'](0x12)['fork']())['ldelim']();}return _0x1d3ada;},_0x319972['encodeDelimited']=function(_0x238168,_0x49584b){return this['encode'](_0x238168,_0x49584b)['ldelim']();},_0x319972['decode']=function(_0x1cb690,_0x747a62,_0x22b9bd){_0x1cb690 instanceof _0x254bdb||(_0x1cb690=_0x254bdb['create'](_0x1cb690));for(var _0x162d33=void 0x0===_0x747a62?_0x1cb690['len']:_0x1cb690['pos']+_0x747a62,_0x18012b=new _0xdb1853['SessionsConnectResponse']();_0x1cb690['pos']<_0x162d33;){var _0x5e4150=_0x1cb690['uint32']();if(_0x5e4150===_0x22b9bd)break;switch(_0x5e4150>>>0x3){case 0x1:_0x18012b['channel']=_0x1cb690['string']();break;case 0x2:_0x18012b['sockets']&&_0x18012b['sockets']['length']||(_0x18012b['sockets']=[]),_0x18012b['sockets']['push'](_0xdb1853['SessionsSocketDescriptor']['decode'](_0x1cb690,_0x1cb690['uint32']()));break;default:_0x1cb690['skipType'](0x7&_0x5e4150);}}return _0x18012b;},_0x319972['decodeDelimited']=function(_0x51fd7d){return _0x51fd7d instanceof _0x254bdb||(_0x51fd7d=new _0x254bdb(_0x51fd7d)),this['decode'](_0x51fd7d,_0x51fd7d['uint32']());},_0x319972['verify']=function(_0x5299c1){if('object'!=typeof _0x5299c1||null===_0x5299c1)return'object\x20expected';if(null!=_0x5299c1['channel']&&_0x5299c1['hasOwnProperty']('channel')&&!_0x32c136['isString'](_0x5299c1['channel']))return'channel:\x20string\x20expected';if(null!=_0x5299c1['sockets']&&_0x5299c1['hasOwnProperty']('sockets')){if(!Array['isArray'](_0x5299c1['sockets']))return'sockets:\x20array\x20expected';for(var _0x59ac52=0x0;_0x59ac52<_0x5299c1['sockets']['length'];++_0x59ac52){var _0x2369ef=_0xdb1853['SessionsSocketDescriptor']['verify'](_0x5299c1['sockets'][_0x59ac52]);if(_0x2369ef)return'sockets.'+_0x2369ef;}}return null;},_0x319972['fromObject']=function(_0x2e6bee){if(_0x2e6bee instanceof _0xdb1853['SessionsConnectResponse'])return _0x2e6bee;var _0x524f56=new _0xdb1853['SessionsConnectResponse']();if(null!=_0x2e6bee['channel']&&(_0x524f56['channel']=String(_0x2e6bee['channel'])),_0x2e6bee['sockets']){if(!Array['isArray'](_0x2e6bee['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x524f56['sockets']=[];for(var _0x30436b=0x0;_0x30436b<_0x2e6bee['sockets']['length'];++_0x30436b){if('object'!=typeof _0x2e6bee['sockets'][_0x30436b])throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x524f56['sockets'][_0x30436b]=_0xdb1853['SessionsSocketDescriptor']['fromObject'](_0x2e6bee['sockets'][_0x30436b]);}}return _0x524f56;},_0x319972['toObject']=function(_0x159409,_0x12eb8c){_0x12eb8c||(_0x12eb8c={});var _0x37b646={};if((_0x12eb8c['arrays']||_0x12eb8c['defaults'])&&(_0x37b646['sockets']=[]),_0x12eb8c['defaults']&&(_0x37b646['channel']=''),null!=_0x159409['channel']&&_0x159409['hasOwnProperty']('channel')&&(_0x37b646['channel']=_0x159409['channel']),_0x159409['sockets']&&_0x159409['sockets']['length']){_0x37b646['sockets']=[];for(var _0x107169=0x0;_0x107169<_0x159409['sockets']['length'];++_0x107169)_0x37b646['sockets'][_0x107169]=_0xdb1853['SessionsSocketDescriptor']['toObject'](_0x159409['sockets'][_0x107169],_0x12eb8c);}return _0x37b646;},_0x319972['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x319972['getTypeUrl']=function(_0x58250e){return void 0x0===_0x58250e&&(_0x58250e='type.googleapis.com'),_0x58250e+'/SessionsConnectResponse';},_0x319972;}()),_0xdb1853['SocketDisconnectMessage']=(function(){function _0x1640ad(_0x2b67dc){if(_0x2b67dc){for(var _0x5a29dc=Object['keys'](_0x2b67dc),_0x416b07=0x0;_0x416b07<_0x5a29dc['length'];++_0x416b07)null!=_0x2b67dc[_0x5a29dc[_0x416b07]]&&(this[_0x5a29dc[_0x416b07]]=_0x2b67dc[_0x5a29dc[_0x416b07]]);}}return _0x1640ad['prototype']['id']='',_0x1640ad['create']=function(_0x22aa49){return new _0x1640ad(_0x22aa49);},_0x1640ad['encode']=function(_0x152c54,_0x4e9d08){return _0x4e9d08||(_0x4e9d08=_0x320e1c['create']()),null!=_0x152c54['id']&&Object['hasOwnProperty']['call'](_0x152c54,'id')&&_0x4e9d08['uint32'](0xa)['string'](_0x152c54['id']),_0x4e9d08;},_0x1640ad['encodeDelimited']=function(_0x31568d,_0x5a0700){return this['encode'](_0x31568d,_0x5a0700)['ldelim']();},_0x1640ad['decode']=function(_0x32e51a,_0xe6a97,_0x2290fa){_0x32e51a instanceof _0x254bdb||(_0x32e51a=_0x254bdb['create'](_0x32e51a));for(var _0x15dc20=void 0x0===_0xe6a97?_0x32e51a['len']:_0x32e51a['pos']+_0xe6a97,_0x1b77f5=new _0xdb1853['SocketDisconnectMessage']();_0x32e51a['pos']<_0x15dc20;){var _0x484db1=_0x32e51a['uint32']();if(_0x484db1===_0x2290fa)break;_0x484db1>>>0x3==0x1?_0x1b77f5['id']=_0x32e51a['string']():_0x32e51a['skipType'](0x7&_0x484db1);}return _0x1b77f5;},_0x1640ad['decodeDelimited']=function(_0x1763ce){return _0x1763ce instanceof _0x254bdb||(_0x1763ce=new _0x254bdb(_0x1763ce)),this['decode'](_0x1763ce,_0x1763ce['uint32']());},_0x1640ad['verify']=function(_0x35f1f5){return'object'!=typeof _0x35f1f5||null===_0x35f1f5?'object\x20expected':null!=_0x35f1f5['id']&&_0x35f1f5['hasOwnProperty']('id')&&!_0x32c136['isString'](_0x35f1f5['id'])?'id:\x20string\x20expected':null;},_0x1640ad['fromObject']=function(_0x3301fc){if(_0x3301fc instanceof _0xdb1853['SocketDisconnectMessage'])return _0x3301fc;var _0x4137bb=new _0xdb1853['SocketDisconnectMessage']();return null!=_0x3301fc['id']&&(_0x4137bb['id']=String(_0x3301fc['id'])),_0x4137bb;},_0x1640ad['toObject']=function(_0x467ee5,_0x44f926){_0x44f926||(_0x44f926={});var _0x4565bf={};return _0x44f926['defaults']&&(_0x4565bf['id']=''),null!=_0x467ee5['id']&&_0x467ee5['hasOwnProperty']('id')&&(_0x4565bf['id']=_0x467ee5['id']),_0x4565bf;},_0x1640ad['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1640ad['getTypeUrl']=function(_0x5b598a){return void 0x0===_0x5b598a&&(_0x5b598a='type.googleapis.com'),_0x5b598a+'/SocketDisconnectMessage';},_0x1640ad;}()),_0xdb1853['SocketConnectMessage']=(function(){function _0x43865b(_0x2da8b5){if(this['permissions']=[],_0x2da8b5){for(var _0x2a7255=Object['keys'](_0x2da8b5),_0x5c0fcf=0x0;_0x5c0fcf<_0x2a7255['length'];++_0x5c0fcf)null!=_0x2da8b5[_0x2a7255[_0x5c0fcf]]&&(this[_0x2a7255[_0x5c0fcf]]=_0x2da8b5[_0x2a7255[_0x5c0fcf]]);}}return _0x43865b['prototype']['id']='',_0x43865b['prototype']['userId']='',_0x43865b['prototype']['role']='',_0x43865b['prototype']['permissions']=_0x32c136['emptyArray'],_0x43865b['create']=function(_0x3ca56d){return new _0x43865b(_0x3ca56d);},_0x43865b['encode']=function(_0x3bec7d,_0x1c68a9){if(_0x1c68a9||(_0x1c68a9=_0x320e1c['create']()),null!=_0x3bec7d['id']&&Object['hasOwnProperty']['call'](_0x3bec7d,'id')&&_0x1c68a9['uint32'](0xa)['string'](_0x3bec7d['id']),null!=_0x3bec7d['userId']&&Object['hasOwnProperty']['call'](_0x3bec7d,'userId')&&_0x1c68a9['uint32'](0x12)['string'](_0x3bec7d['userId']),null!=_0x3bec7d['role']&&Object['hasOwnProperty']['call'](_0x3bec7d,'role')&&_0x1c68a9['uint32'](0x1a)['string'](_0x3bec7d['role']),null!=_0x3bec7d['permissions']&&_0x3bec7d['permissions']['length']){for(var _0x2f9f25=0x0;_0x2f9f25<_0x3bec7d['permissions']['length'];++_0x2f9f25)_0x1c68a9['uint32'](0x22)['string'](_0x3bec7d['permissions'][_0x2f9f25]);}return _0x1c68a9;},_0x43865b['encodeDelimited']=function(_0x4e4cb8,_0x49cb72){return this['encode'](_0x4e4cb8,_0x49cb72)['ldelim']();},_0x43865b['decode']=function(_0x51fc99,_0x558bc9,_0x197789){_0x51fc99 instanceof _0x254bdb||(_0x51fc99=_0x254bdb['create'](_0x51fc99));for(var _0xbc2630=void 0x0===_0x558bc9?_0x51fc99['len']:_0x51fc99['pos']+_0x558bc9,_0x4d5764=new _0xdb1853['SocketConnectMessage']();_0x51fc99['pos']<_0xbc2630;){var _0x1cdc13=_0x51fc99['uint32']();if(_0x1cdc13===_0x197789)break;switch(_0x1cdc13>>>0x3){case 0x1:_0x4d5764['id']=_0x51fc99['string']();break;case 0x2:_0x4d5764['userId']=_0x51fc99['string']();break;case 0x3:_0x4d5764['role']=_0x51fc99['string']();break;case 0x4:_0x4d5764['permissions']&&_0x4d5764['permissions']['length']||(_0x4d5764['permissions']=[]),_0x4d5764['permissions']['push'](_0x51fc99['string']());break;default:_0x51fc99['skipType'](0x7&_0x1cdc13);}}return _0x4d5764;},_0x43865b['decodeDelimited']=function(_0x351511){return _0x351511 instanceof _0x254bdb||(_0x351511=new _0x254bdb(_0x351511)),this['decode'](_0x351511,_0x351511['uint32']());},_0x43865b['verify']=function(_0xd790f5){if('object'!=typeof _0xd790f5||null===_0xd790f5)return'object\x20expected';if(null!=_0xd790f5['id']&&_0xd790f5['hasOwnProperty']('id')&&!_0x32c136['isString'](_0xd790f5['id']))return'id:\x20string\x20expected';if(null!=_0xd790f5['userId']&&_0xd790f5['hasOwnProperty']('userId')&&!_0x32c136['isString'](_0xd790f5['userId']))return'userId:\x20string\x20expected';if(null!=_0xd790f5['role']&&_0xd790f5['hasOwnProperty']('role')&&!_0x32c136['isString'](_0xd790f5['role']))return'role:\x20string\x20expected';if(null!=_0xd790f5['permissions']&&_0xd790f5['hasOwnProperty']('permissions')){if(!Array['isArray'](_0xd790f5['permissions']))return'permissions:\x20array\x20expected';for(var _0x191a33=0x0;_0x191a33<_0xd790f5['permissions']['length'];++_0x191a33)if(!_0x32c136['isString'](_0xd790f5['permissions'][_0x191a33]))return'permissions:\x20string[]\x20expected';}return null;},_0x43865b['fromObject']=function(_0x5cdde2){if(_0x5cdde2 instanceof _0xdb1853['SocketConnectMessage'])return _0x5cdde2;var _0x2aeb19=new _0xdb1853['SocketConnectMessage']();if(null!=_0x5cdde2['id']&&(_0x2aeb19['id']=String(_0x5cdde2['id'])),null!=_0x5cdde2['userId']&&(_0x2aeb19['userId']=String(_0x5cdde2['userId'])),null!=_0x5cdde2['role']&&(_0x2aeb19['role']=String(_0x5cdde2['role'])),_0x5cdde2['permissions']){if(!Array['isArray'](_0x5cdde2['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x2aeb19['permissions']=[];for(var _0x45387f=0x0;_0x45387f<_0x5cdde2['permissions']['length'];++_0x45387f)_0x2aeb19['permissions'][_0x45387f]=String(_0x5cdde2['permissions'][_0x45387f]);}return _0x2aeb19;},_0x43865b['toObject']=function(_0x3014f3,_0x86e21a){_0x86e21a||(_0x86e21a={});var _0x43bda6={};if((_0x86e21a['arrays']||_0x86e21a['defaults'])&&(_0x43bda6['permissions']=[]),_0x86e21a['defaults']&&(_0x43bda6['id']='',_0x43bda6['userId']='',_0x43bda6['role']=''),null!=_0x3014f3['id']&&_0x3014f3['hasOwnProperty']('id')&&(_0x43bda6['id']=_0x3014f3['id']),null!=_0x3014f3['userId']&&_0x3014f3['hasOwnProperty']('userId')&&(_0x43bda6['userId']=_0x3014f3['userId']),null!=_0x3014f3['role']&&_0x3014f3['hasOwnProperty']('role')&&(_0x43bda6['role']=_0x3014f3['role']),_0x3014f3['permissions']&&_0x3014f3['permissions']['length']){_0x43bda6['permissions']=[];for(var _0x328618=0x0;_0x328618<_0x3014f3['permissions']['length'];++_0x328618)_0x43bda6['permissions'][_0x328618]=_0x3014f3['permissions'][_0x328618];}return _0x43bda6;},_0x43865b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x43865b['getTypeUrl']=function(_0x17a05c){return void 0x0===_0x17a05c&&(_0x17a05c='type.googleapis.com'),_0x17a05c+'/SocketConnectMessage';},_0x43865b;}()),_0xdb1853['SessionsConnectMessage']=(function(){function _0x1176cb(_0x4c3ac7){if(_0x4c3ac7){for(var _0x35d5ef=Object['keys'](_0x4c3ac7),_0x539852=0x0;_0x539852<_0x35d5ef['length'];++_0x539852)null!=_0x4c3ac7[_0x35d5ef[_0x539852]]&&(this[_0x35d5ef[_0x539852]]=_0x4c3ac7[_0x35d5ef[_0x539852]]);}}return _0x1176cb['prototype']['id']='',_0x1176cb['prototype']['sessionType']=0x0,_0x1176cb['create']=function(_0x8aaa7f){return new _0x1176cb(_0x8aaa7f);},_0x1176cb['encode']=function(_0x120e72,_0x3f539d){return _0x3f539d||(_0x3f539d=_0x320e1c['create']()),null!=_0x120e72['id']&&Object['hasOwnProperty']['call'](_0x120e72,'id')&&_0x3f539d['uint32'](0xa)['string'](_0x120e72['id']),null!=_0x120e72['sessionType']&&Object['hasOwnProperty']['call'](_0x120e72,'sessionType')&&_0x3f539d['uint32'](0x10)['uint32'](_0x120e72['sessionType']),_0x3f539d;},_0x1176cb['encodeDelimited']=function(_0x2417c3,_0x30e427){return this['encode'](_0x2417c3,_0x30e427)['ldelim']();},_0x1176cb['decode']=function(_0x187edf,_0x2aff73,_0x40d31c){_0x187edf instanceof _0x254bdb||(_0x187edf=_0x254bdb['create'](_0x187edf));for(var _0x5bca75=void 0x0===_0x2aff73?_0x187edf['len']:_0x187edf['pos']+_0x2aff73,_0x33f28b=new _0xdb1853['SessionsConnectMessage']();_0x187edf['pos']<_0x5bca75;){var _0x10b450=_0x187edf['uint32']();if(_0x10b450===_0x40d31c)break;switch(_0x10b450>>>0x3){case 0x1:_0x33f28b['id']=_0x187edf['string']();break;case 0x2:_0x33f28b['sessionType']=_0x187edf['uint32']();break;default:_0x187edf['skipType'](0x7&_0x10b450);}}return _0x33f28b;},_0x1176cb['decodeDelimited']=function(_0x3c8d00){return _0x3c8d00 instanceof _0x254bdb||(_0x3c8d00=new _0x254bdb(_0x3c8d00)),this['decode'](_0x3c8d00,_0x3c8d00['uint32']());},_0x1176cb['verify']=function(_0xeafe7c){return'object'!=typeof _0xeafe7c||null===_0xeafe7c?'object\x20expected':null!=_0xeafe7c['id']&&_0xeafe7c['hasOwnProperty']('id')&&!_0x32c136['isString'](_0xeafe7c['id'])?'id:\x20string\x20expected':null!=_0xeafe7c['sessionType']&&_0xeafe7c['hasOwnProperty']('sessionType')&&!_0x32c136['isInteger'](_0xeafe7c['sessionType'])?'sessionType:\x20integer\x20expected':null;},_0x1176cb['fromObject']=function(_0x5748a2){if(_0x5748a2 instanceof _0xdb1853['SessionsConnectMessage'])return _0x5748a2;var _0x4dcfe0=new _0xdb1853['SessionsConnectMessage']();return null!=_0x5748a2['id']&&(_0x4dcfe0['id']=String(_0x5748a2['id'])),null!=_0x5748a2['sessionType']&&(_0x4dcfe0['sessionType']=_0x5748a2['sessionType']>>>0x0),_0x4dcfe0;},_0x1176cb['toObject']=function(_0x3b0e80,_0x261af8){_0x261af8||(_0x261af8={});var _0x45ecfb={};return _0x261af8['defaults']&&(_0x45ecfb['id']='',_0x45ecfb['sessionType']=0x0),null!=_0x3b0e80['id']&&_0x3b0e80['hasOwnProperty']('id')&&(_0x45ecfb['id']=_0x3b0e80['id']),null!=_0x3b0e80['sessionType']&&_0x3b0e80['hasOwnProperty']('sessionType')&&(_0x45ecfb['sessionType']=_0x3b0e80['sessionType']),_0x45ecfb;},_0x1176cb['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1176cb['getTypeUrl']=function(_0x49d6b5){return void 0x0===_0x49d6b5&&(_0x49d6b5='type.googleapis.com'),_0x49d6b5+'/SessionsConnectMessage';},_0x1176cb;}()),_0xdb1853['SessionsSocketDescriptor']=(function(){function _0x488341(_0x5a7b5f){if(this['permissions']=[],_0x5a7b5f){for(var _0x4f49c6=Object['keys'](_0x5a7b5f),_0x383338=0x0;_0x383338<_0x4f49c6['length'];++_0x383338)null!=_0x5a7b5f[_0x4f49c6[_0x383338]]&&(this[_0x4f49c6[_0x383338]]=_0x5a7b5f[_0x4f49c6[_0x383338]]);}}return _0x488341['prototype']['session']='',_0x488341['prototype']['user']='',_0x488341['prototype']['role']='',_0x488341['prototype']['permissions']=_0x32c136['emptyArray'],_0x488341['create']=function(_0x4bb02e){return new _0x488341(_0x4bb02e);},_0x488341['encode']=function(_0x5cdc36,_0x2f20d1){if(_0x2f20d1||(_0x2f20d1=_0x320e1c['create']()),null!=_0x5cdc36['session']&&Object['hasOwnProperty']['call'](_0x5cdc36,'session')&&_0x2f20d1['uint32'](0xa)['string'](_0x5cdc36['session']),null!=_0x5cdc36['user']&&Object['hasOwnProperty']['call'](_0x5cdc36,'user')&&_0x2f20d1['uint32'](0x12)['string'](_0x5cdc36['user']),null!=_0x5cdc36['role']&&Object['hasOwnProperty']['call'](_0x5cdc36,'role')&&_0x2f20d1['uint32'](0x1a)['string'](_0x5cdc36['role']),null!=_0x5cdc36['permissions']&&_0x5cdc36['permissions']['length']){for(var _0x21b2b6=0x0;_0x21b2b6<_0x5cdc36['permissions']['length'];++_0x21b2b6)_0x2f20d1['uint32'](0x22)['string'](_0x5cdc36['permissions'][_0x21b2b6]);}return _0x2f20d1;},_0x488341['encodeDelimited']=function(_0x3a57ae,_0x23edbc){return this['encode'](_0x3a57ae,_0x23edbc)['ldelim']();},_0x488341['decode']=function(_0x445df3,_0x489e62,_0x4c0ab4){_0x445df3 instanceof _0x254bdb||(_0x445df3=_0x254bdb['create'](_0x445df3));for(var _0x51696c=void 0x0===_0x489e62?_0x445df3['len']:_0x445df3['pos']+_0x489e62,_0x457871=new _0xdb1853['SessionsSocketDescriptor']();_0x445df3['pos']<_0x51696c;){var _0x551132=_0x445df3['uint32']();if(_0x551132===_0x4c0ab4)break;switch(_0x551132>>>0x3){case 0x1:_0x457871['session']=_0x445df3['string']();break;case 0x2:_0x457871['user']=_0x445df3['string']();break;case 0x3:_0x457871['role']=_0x445df3['string']();break;case 0x4:_0x457871['permissions']&&_0x457871['permissions']['length']||(_0x457871['permissions']=[]),_0x457871['permissions']['push'](_0x445df3['string']());break;default:_0x445df3['skipType'](0x7&_0x551132);}}return _0x457871;},_0x488341['decodeDelimited']=function(_0x42e8b4){return _0x42e8b4 instanceof _0x254bdb||(_0x42e8b4=new _0x254bdb(_0x42e8b4)),this['decode'](_0x42e8b4,_0x42e8b4['uint32']());},_0x488341['verify']=function(_0x5d3023){if('object'!=typeof _0x5d3023||null===_0x5d3023)return'object\x20expected';if(null!=_0x5d3023['session']&&_0x5d3023['hasOwnProperty']('session')&&!_0x32c136['isString'](_0x5d3023['session']))return'session:\x20string\x20expected';if(null!=_0x5d3023['user']&&_0x5d3023['hasOwnProperty']('user')&&!_0x32c136['isString'](_0x5d3023['user']))return'user:\x20string\x20expected';if(null!=_0x5d3023['role']&&_0x5d3023['hasOwnProperty']('role')&&!_0x32c136['isString'](_0x5d3023['role']))return'role:\x20string\x20expected';if(null!=_0x5d3023['permissions']&&_0x5d3023['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x5d3023['permissions']))return'permissions:\x20array\x20expected';for(var _0x2a0f18=0x0;_0x2a0f18<_0x5d3023['permissions']['length'];++_0x2a0f18)if(!_0x32c136['isString'](_0x5d3023['permissions'][_0x2a0f18]))return'permissions:\x20string[]\x20expected';}return null;},_0x488341['fromObject']=function(_0x534f3c){if(_0x534f3c instanceof _0xdb1853['SessionsSocketDescriptor'])return _0x534f3c;var _0x26c1cd=new _0xdb1853['SessionsSocketDescriptor']();if(null!=_0x534f3c['session']&&(_0x26c1cd['session']=String(_0x534f3c['session'])),null!=_0x534f3c['user']&&(_0x26c1cd['user']=String(_0x534f3c['user'])),null!=_0x534f3c['role']&&(_0x26c1cd['role']=String(_0x534f3c['role'])),_0x534f3c['permissions']){if(!Array['isArray'](_0x534f3c['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x26c1cd['permissions']=[];for(var _0xee99c8=0x0;_0xee99c8<_0x534f3c['permissions']['length'];++_0xee99c8)_0x26c1cd['permissions'][_0xee99c8]=String(_0x534f3c['permissions'][_0xee99c8]);}return _0x26c1cd;},_0x488341['toObject']=function(_0x18fb2c,_0x3cba36){_0x3cba36||(_0x3cba36={});var _0x58f2e4={};if((_0x3cba36['arrays']||_0x3cba36['defaults'])&&(_0x58f2e4['permissions']=[]),_0x3cba36['defaults']&&(_0x58f2e4['session']='',_0x58f2e4['user']='',_0x58f2e4['role']=''),null!=_0x18fb2c['session']&&_0x18fb2c['hasOwnProperty']('session')&&(_0x58f2e4['session']=_0x18fb2c['session']),null!=_0x18fb2c['user']&&_0x18fb2c['hasOwnProperty']('user')&&(_0x58f2e4['user']=_0x18fb2c['user']),null!=_0x18fb2c['role']&&_0x18fb2c['hasOwnProperty']('role')&&(_0x58f2e4['role']=_0x18fb2c['role']),_0x18fb2c['permissions']&&_0x18fb2c['permissions']['length']){_0x58f2e4['permissions']=[];for(var _0x38b909=0x0;_0x38b909<_0x18fb2c['permissions']['length'];++_0x38b909)_0x58f2e4['permissions'][_0x38b909]=_0x18fb2c['permissions'][_0x38b909];}return _0x58f2e4;},_0x488341['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x488341['getTypeUrl']=function(_0x5b43b1){return void 0x0===_0x5b43b1&&(_0x5b43b1='type.googleapis.com'),_0x5b43b1+'/SessionsSocketDescriptor';},_0x488341;}()),_0xdb1853['RevisionHistoryUpdateRevisionsResponse']=(function(){function _0x1b047b(_0x576a4b){if(_0x576a4b){for(var _0x3361bf=Object['keys'](_0x576a4b),_0x5eb072=0x0;_0x5eb072<_0x3361bf['length'];++_0x5eb072)null!=_0x576a4b[_0x3361bf[_0x5eb072]]&&(this[_0x3361bf[_0x5eb072]]=_0x576a4b[_0x3361bf[_0x5eb072]]);}}return _0x1b047b['prototype']['requestId']=0x0,_0x1b047b['create']=function(_0x3f66db){return new _0x1b047b(_0x3f66db);},_0x1b047b['encode']=function(_0x53d430,_0x2eb3af){return _0x2eb3af||(_0x2eb3af=_0x320e1c['create']()),null!=_0x53d430['requestId']&&Object['hasOwnProperty']['call'](_0x53d430,'requestId')&&_0x2eb3af['uint32'](0x8)['uint32'](_0x53d430['requestId']),_0x2eb3af;},_0x1b047b['encodeDelimited']=function(_0x421543,_0x978c30){return this['encode'](_0x421543,_0x978c30)['ldelim']();},_0x1b047b['decode']=function(_0x190336,_0x38c559,_0x36fab3){_0x190336 instanceof _0x254bdb||(_0x190336=_0x254bdb['create'](_0x190336));for(var _0x30c358=void 0x0===_0x38c559?_0x190336['len']:_0x190336['pos']+_0x38c559,_0x3fca80=new _0xdb1853['RevisionHistoryUpdateRevisionsResponse']();_0x190336['pos']<_0x30c358;){var _0xf8f0a8=_0x190336['uint32']();if(_0xf8f0a8===_0x36fab3)break;_0xf8f0a8>>>0x3==0x1?_0x3fca80['requestId']=_0x190336['uint32']():_0x190336['skipType'](0x7&_0xf8f0a8);}return _0x3fca80;},_0x1b047b['decodeDelimited']=function(_0x351192){return _0x351192 instanceof _0x254bdb||(_0x351192=new _0x254bdb(_0x351192)),this['decode'](_0x351192,_0x351192['uint32']());},_0x1b047b['verify']=function(_0x4d2e4a){return'object'!=typeof _0x4d2e4a||null===_0x4d2e4a?'object\x20expected':null!=_0x4d2e4a['requestId']&&_0x4d2e4a['hasOwnProperty']('requestId')&&!_0x32c136['isInteger'](_0x4d2e4a['requestId'])?'requestId:\x20integer\x20expected':null;},_0x1b047b['fromObject']=function(_0x50ec03){if(_0x50ec03 instanceof _0xdb1853['RevisionHistoryUpdateRevisionsResponse'])return _0x50ec03;var _0x3a174e=new _0xdb1853['RevisionHistoryUpdateRevisionsResponse']();return null!=_0x50ec03['requestId']&&(_0x3a174e['requestId']=_0x50ec03['requestId']>>>0x0),_0x3a174e;},_0x1b047b['toObject']=function(_0x4ba585,_0x3e4a41){_0x3e4a41||(_0x3e4a41={});var _0x9d8f8b={};return _0x3e4a41['defaults']&&(_0x9d8f8b['requestId']=0x0),null!=_0x4ba585['requestId']&&_0x4ba585['hasOwnProperty']('requestId')&&(_0x9d8f8b['requestId']=_0x4ba585['requestId']),_0x9d8f8b;},_0x1b047b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1b047b['getTypeUrl']=function(_0xb93e96){return void 0x0===_0xb93e96&&(_0xb93e96='type.googleapis.com'),_0xb93e96+'/RevisionHistoryUpdateRevisionsResponse';},_0x1b047b;}()),_0xdb1853['RevisionHistoryGetRevisionResponse']=(function(){function _0x16dd69(_0x545f4c){if(_0x545f4c){for(var _0x2785cb=Object['keys'](_0x545f4c),_0x41365f=0x0;_0x41365f<_0x2785cb['length'];++_0x41365f)null!=_0x545f4c[_0x2785cb[_0x41365f]]&&(this[_0x2785cb[_0x41365f]]=_0x545f4c[_0x2785cb[_0x41365f]]);}}return _0x16dd69['prototype']['revisionId']='',_0x16dd69['prototype']['name']='',_0x16dd69['prototype']['creatorId']='',_0x16dd69['prototype']['authorsIds']='',_0x16dd69['prototype']['diffData']='',_0x16dd69['prototype']['createdAt']='',_0x16dd69['prototype']['attributes']='',_0x16dd69['prototype']['toVersion']=0x0,_0x16dd69['prototype']['fromVersion']=0x0,_0x16dd69['prototype']['isEmptyCurrent']=!0x1,_0x16dd69['create']=function(_0x253b3f){return new _0x16dd69(_0x253b3f);},_0x16dd69['encode']=function(_0x287d1a,_0x5afa98){return _0x5afa98||(_0x5afa98=_0x320e1c['create']()),null!=_0x287d1a['revisionId']&&Object['hasOwnProperty']['call'](_0x287d1a,'revisionId')&&_0x5afa98['uint32'](0xa)['string'](_0x287d1a['revisionId']),null!=_0x287d1a['name']&&Object['hasOwnProperty']['call'](_0x287d1a,'name')&&_0x5afa98['uint32'](0x12)['string'](_0x287d1a['name']),null!=_0x287d1a['creatorId']&&Object['hasOwnProperty']['call'](_0x287d1a,'creatorId')&&_0x5afa98['uint32'](0x1a)['string'](_0x287d1a['creatorId']),null!=_0x287d1a['authorsIds']&&Object['hasOwnProperty']['call'](_0x287d1a,'authorsIds')&&_0x5afa98['uint32'](0x22)['string'](_0x287d1a['authorsIds']),null!=_0x287d1a['diffData']&&Object['hasOwnProperty']['call'](_0x287d1a,'diffData')&&_0x5afa98['uint32'](0x2a)['string'](_0x287d1a['diffData']),null!=_0x287d1a['createdAt']&&Object['hasOwnProperty']['call'](_0x287d1a,'createdAt')&&_0x5afa98['uint32'](0x32)['string'](_0x287d1a['createdAt']),null!=_0x287d1a['attributes']&&Object['hasOwnProperty']['call'](_0x287d1a,'attributes')&&_0x5afa98['uint32'](0x3a)['string'](_0x287d1a['attributes']),null!=_0x287d1a['toVersion']&&Object['hasOwnProperty']['call'](_0x287d1a,'toVersion')&&_0x5afa98['uint32'](0x40)['uint32'](_0x287d1a['toVersion']),null!=_0x287d1a['fromVersion']&&Object['hasOwnProperty']['call'](_0x287d1a,'fromVersion')&&_0x5afa98['uint32'](0x48)['uint32'](_0x287d1a['fromVersion']),null!=_0x287d1a['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x287d1a,'isEmptyCurrent')&&_0x5afa98['uint32'](0x50)['bool'](_0x287d1a['isEmptyCurrent']),_0x5afa98;},_0x16dd69['encodeDelimited']=function(_0x19c57c,_0x1d96e8){return this['encode'](_0x19c57c,_0x1d96e8)['ldelim']();},_0x16dd69['decode']=function(_0x3f6d9d,_0x1a378b,_0x4f6ab3){_0x3f6d9d instanceof _0x254bdb||(_0x3f6d9d=_0x254bdb['create'](_0x3f6d9d));for(var _0xc2953a=void 0x0===_0x1a378b?_0x3f6d9d['len']:_0x3f6d9d['pos']+_0x1a378b,_0x2b2ff9=new _0xdb1853['RevisionHistoryGetRevisionResponse']();_0x3f6d9d['pos']<_0xc2953a;){var _0x4cb861=_0x3f6d9d['uint32']();if(_0x4cb861===_0x4f6ab3)break;switch(_0x4cb861>>>0x3){case 0x1:_0x2b2ff9['revisionId']=_0x3f6d9d['string']();break;case 0x2:_0x2b2ff9['name']=_0x3f6d9d['string']();break;case 0x3:_0x2b2ff9['creatorId']=_0x3f6d9d['string']();break;case 0x4:_0x2b2ff9['authorsIds']=_0x3f6d9d['string']();break;case 0x5:_0x2b2ff9['diffData']=_0x3f6d9d['string']();break;case 0x6:_0x2b2ff9['createdAt']=_0x3f6d9d['string']();break;case 0x7:_0x2b2ff9['attributes']=_0x3f6d9d['string']();break;case 0x8:_0x2b2ff9['toVersion']=_0x3f6d9d['uint32']();break;case 0x9:_0x2b2ff9['fromVersion']=_0x3f6d9d['uint32']();break;case 0xa:_0x2b2ff9['isEmptyCurrent']=_0x3f6d9d['bool']();break;default:_0x3f6d9d['skipType'](0x7&_0x4cb861);}}return _0x2b2ff9;},_0x16dd69['decodeDelimited']=function(_0x5d7d76){return _0x5d7d76 instanceof _0x254bdb||(_0x5d7d76=new _0x254bdb(_0x5d7d76)),this['decode'](_0x5d7d76,_0x5d7d76['uint32']());},_0x16dd69['verify']=function(_0x6c3bda){return'object'!=typeof _0x6c3bda||null===_0x6c3bda?'object\x20expected':null!=_0x6c3bda['revisionId']&&_0x6c3bda['hasOwnProperty']('revisionId')&&!_0x32c136['isString'](_0x6c3bda['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x6c3bda['name']&&_0x6c3bda['hasOwnProperty']('name')&&!_0x32c136['isString'](_0x6c3bda['name'])?'name:\x20string\x20expected':null!=_0x6c3bda['creatorId']&&_0x6c3bda['hasOwnProperty']('creatorId')&&!_0x32c136['isString'](_0x6c3bda['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x6c3bda['authorsIds']&&_0x6c3bda['hasOwnProperty']('authorsIds')&&!_0x32c136['isString'](_0x6c3bda['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x6c3bda['diffData']&&_0x6c3bda['hasOwnProperty']('diffData')&&!_0x32c136['isString'](_0x6c3bda['diffData'])?'diffData:\x20string\x20expected':null!=_0x6c3bda['createdAt']&&_0x6c3bda['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0x6c3bda['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x6c3bda['attributes']&&_0x6c3bda['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x6c3bda['attributes'])?'attributes:\x20string\x20expected':null!=_0x6c3bda['toVersion']&&_0x6c3bda['hasOwnProperty']('toVersion')&&!_0x32c136['isInteger'](_0x6c3bda['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x6c3bda['fromVersion']&&_0x6c3bda['hasOwnProperty']('fromVersion')&&!_0x32c136['isInteger'](_0x6c3bda['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x6c3bda['isEmptyCurrent']&&_0x6c3bda['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x6c3bda['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0x16dd69['fromObject']=function(_0x180f52){if(_0x180f52 instanceof _0xdb1853['RevisionHistoryGetRevisionResponse'])return _0x180f52;var _0x24ceef=new _0xdb1853['RevisionHistoryGetRevisionResponse']();return null!=_0x180f52['revisionId']&&(_0x24ceef['revisionId']=String(_0x180f52['revisionId'])),null!=_0x180f52['name']&&(_0x24ceef['name']=String(_0x180f52['name'])),null!=_0x180f52['creatorId']&&(_0x24ceef['creatorId']=String(_0x180f52['creatorId'])),null!=_0x180f52['authorsIds']&&(_0x24ceef['authorsIds']=String(_0x180f52['authorsIds'])),null!=_0x180f52['diffData']&&(_0x24ceef['diffData']=String(_0x180f52['diffData'])),null!=_0x180f52['createdAt']&&(_0x24ceef['createdAt']=String(_0x180f52['createdAt'])),null!=_0x180f52['attributes']&&(_0x24ceef['attributes']=String(_0x180f52['attributes'])),null!=_0x180f52['toVersion']&&(_0x24ceef['toVersion']=_0x180f52['toVersion']>>>0x0),null!=_0x180f52['fromVersion']&&(_0x24ceef['fromVersion']=_0x180f52['fromVersion']>>>0x0),null!=_0x180f52['isEmptyCurrent']&&(_0x24ceef['isEmptyCurrent']=Boolean(_0x180f52['isEmptyCurrent'])),_0x24ceef;},_0x16dd69['toObject']=function(_0x4379a7,_0x9452f2){_0x9452f2||(_0x9452f2={});var _0x2d596d={};return _0x9452f2['defaults']&&(_0x2d596d['revisionId']='',_0x2d596d['name']='',_0x2d596d['creatorId']='',_0x2d596d['authorsIds']='',_0x2d596d['diffData']='',_0x2d596d['createdAt']='',_0x2d596d['attributes']='',_0x2d596d['toVersion']=0x0,_0x2d596d['fromVersion']=0x0,_0x2d596d['isEmptyCurrent']=!0x1),null!=_0x4379a7['revisionId']&&_0x4379a7['hasOwnProperty']('revisionId')&&(_0x2d596d['revisionId']=_0x4379a7['revisionId']),null!=_0x4379a7['name']&&_0x4379a7['hasOwnProperty']('name')&&(_0x2d596d['name']=_0x4379a7['name']),null!=_0x4379a7['creatorId']&&_0x4379a7['hasOwnProperty']('creatorId')&&(_0x2d596d['creatorId']=_0x4379a7['creatorId']),null!=_0x4379a7['authorsIds']&&_0x4379a7['hasOwnProperty']('authorsIds')&&(_0x2d596d['authorsIds']=_0x4379a7['authorsIds']),null!=_0x4379a7['diffData']&&_0x4379a7['hasOwnProperty']('diffData')&&(_0x2d596d['diffData']=_0x4379a7['diffData']),null!=_0x4379a7['createdAt']&&_0x4379a7['hasOwnProperty']('createdAt')&&(_0x2d596d['createdAt']=_0x4379a7['createdAt']),null!=_0x4379a7['attributes']&&_0x4379a7['hasOwnProperty']('attributes')&&(_0x2d596d['attributes']=_0x4379a7['attributes']),null!=_0x4379a7['toVersion']&&_0x4379a7['hasOwnProperty']('toVersion')&&(_0x2d596d['toVersion']=_0x4379a7['toVersion']),null!=_0x4379a7['fromVersion']&&_0x4379a7['hasOwnProperty']('fromVersion')&&(_0x2d596d['fromVersion']=_0x4379a7['fromVersion']),null!=_0x4379a7['isEmptyCurrent']&&_0x4379a7['hasOwnProperty']('isEmptyCurrent')&&(_0x2d596d['isEmptyCurrent']=_0x4379a7['isEmptyCurrent']),_0x2d596d;},_0x16dd69['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x16dd69['getTypeUrl']=function(_0x915940){return void 0x0===_0x915940&&(_0x915940='type.googleapis.com'),_0x915940+'/RevisionHistoryGetRevisionResponse';},_0x16dd69;}()),_0xdb1853['RevisionHistoryConnectResponse']=(function(){function _0x452f52(_0x2600e0){if(this['revisions']=[],_0x2600e0){for(var _0x18fc52=Object['keys'](_0x2600e0),_0x3d1233=0x0;_0x3d1233<_0x18fc52['length'];++_0x3d1233)null!=_0x2600e0[_0x18fc52[_0x3d1233]]&&(this[_0x18fc52[_0x3d1233]]=_0x2600e0[_0x18fc52[_0x3d1233]]);}}return _0x452f52['prototype']['channel']='',_0x452f52['prototype']['requestId']=0x0,_0x452f52['prototype']['revisions']=_0x32c136['emptyArray'],_0x452f52['create']=function(_0x1559f0){return new _0x452f52(_0x1559f0);},_0x452f52['encode']=function(_0x1c88d1,_0x33fd88){if(_0x33fd88||(_0x33fd88=_0x320e1c['create']()),null!=_0x1c88d1['channel']&&Object['hasOwnProperty']['call'](_0x1c88d1,'channel')&&_0x33fd88['uint32'](0xa)['string'](_0x1c88d1['channel']),null!=_0x1c88d1['requestId']&&Object['hasOwnProperty']['call'](_0x1c88d1,'requestId')&&_0x33fd88['uint32'](0x10)['uint32'](_0x1c88d1['requestId']),null!=_0x1c88d1['revisions']&&_0x1c88d1['revisions']['length']){for(var _0x344c84=0x0;_0x344c84<_0x1c88d1['revisions']['length'];++_0x344c84)_0xdb1853['RevisionDescriptor']['encode'](_0x1c88d1['revisions'][_0x344c84],_0x33fd88['uint32'](0x1a)['fork']())['ldelim']();}return _0x33fd88;},_0x452f52['encodeDelimited']=function(_0x11cbee,_0x191c54){return this['encode'](_0x11cbee,_0x191c54)['ldelim']();},_0x452f52['decode']=function(_0x281390,_0x54fef4,_0x48f3d5){_0x281390 instanceof _0x254bdb||(_0x281390=_0x254bdb['create'](_0x281390));for(var _0x427443=void 0x0===_0x54fef4?_0x281390['len']:_0x281390['pos']+_0x54fef4,_0x3563dc=new _0xdb1853['RevisionHistoryConnectResponse']();_0x281390['pos']<_0x427443;){var _0x39ceba=_0x281390['uint32']();if(_0x39ceba===_0x48f3d5)break;switch(_0x39ceba>>>0x3){case 0x1:_0x3563dc['channel']=_0x281390['string']();break;case 0x2:_0x3563dc['requestId']=_0x281390['uint32']();break;case 0x3:_0x3563dc['revisions']&&_0x3563dc['revisions']['length']||(_0x3563dc['revisions']=[]),_0x3563dc['revisions']['push'](_0xdb1853['RevisionDescriptor']['decode'](_0x281390,_0x281390['uint32']()));break;default:_0x281390['skipType'](0x7&_0x39ceba);}}return _0x3563dc;},_0x452f52['decodeDelimited']=function(_0xa0d01c){return _0xa0d01c instanceof _0x254bdb||(_0xa0d01c=new _0x254bdb(_0xa0d01c)),this['decode'](_0xa0d01c,_0xa0d01c['uint32']());},_0x452f52['verify']=function(_0x5a90a4){if('object'!=typeof _0x5a90a4||null===_0x5a90a4)return'object\x20expected';if(null!=_0x5a90a4['channel']&&_0x5a90a4['hasOwnProperty']('channel')&&!_0x32c136['isString'](_0x5a90a4['channel']))return'channel:\x20string\x20expected';if(null!=_0x5a90a4['requestId']&&_0x5a90a4['hasOwnProperty']('requestId')&&!_0x32c136['isInteger'](_0x5a90a4['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x5a90a4['revisions']&&_0x5a90a4['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x5a90a4['revisions']))return'revisions:\x20array\x20expected';for(var _0x27574f=0x0;_0x27574f<_0x5a90a4['revisions']['length'];++_0x27574f){var _0x3f419a=_0xdb1853['RevisionDescriptor']['verify'](_0x5a90a4['revisions'][_0x27574f]);if(_0x3f419a)return'revisions.'+_0x3f419a;}}return null;},_0x452f52['fromObject']=function(_0x344aab){if(_0x344aab instanceof _0xdb1853['RevisionHistoryConnectResponse'])return _0x344aab;var _0x1759a2=new _0xdb1853['RevisionHistoryConnectResponse']();if(null!=_0x344aab['channel']&&(_0x1759a2['channel']=String(_0x344aab['channel'])),null!=_0x344aab['requestId']&&(_0x1759a2['requestId']=_0x344aab['requestId']>>>0x0),_0x344aab['revisions']){if(!Array['isArray'](_0x344aab['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x1759a2['revisions']=[];for(var _0x4b1e3c=0x0;_0x4b1e3c<_0x344aab['revisions']['length'];++_0x4b1e3c){if('object'!=typeof _0x344aab['revisions'][_0x4b1e3c])throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x1759a2['revisions'][_0x4b1e3c]=_0xdb1853['RevisionDescriptor']['fromObject'](_0x344aab['revisions'][_0x4b1e3c]);}}return _0x1759a2;},_0x452f52['toObject']=function(_0x37e996,_0xaf71f7){_0xaf71f7||(_0xaf71f7={});var _0x2f2cee={};if((_0xaf71f7['arrays']||_0xaf71f7['defaults'])&&(_0x2f2cee['revisions']=[]),_0xaf71f7['defaults']&&(_0x2f2cee['channel']='',_0x2f2cee['requestId']=0x0),null!=_0x37e996['channel']&&_0x37e996['hasOwnProperty']('channel')&&(_0x2f2cee['channel']=_0x37e996['channel']),null!=_0x37e996['requestId']&&_0x37e996['hasOwnProperty']('requestId')&&(_0x2f2cee['requestId']=_0x37e996['requestId']),_0x37e996['revisions']&&_0x37e996['revisions']['length']){_0x2f2cee['revisions']=[];for(var _0x4ef855=0x0;_0x4ef855<_0x37e996['revisions']['length'];++_0x4ef855)_0x2f2cee['revisions'][_0x4ef855]=_0xdb1853['RevisionDescriptor']['toObject'](_0x37e996['revisions'][_0x4ef855],_0xaf71f7);}return _0x2f2cee;},_0x452f52['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x452f52['getTypeUrl']=function(_0x5cd31a){return void 0x0===_0x5cd31a&&(_0x5cd31a='type.googleapis.com'),_0x5cd31a+'/RevisionHistoryConnectResponse';},_0x452f52;}()),_0xdb1853['RevisionHistoryUpdateRevisionsMessage']=(function(){function _0x3960c0(_0x2e23a6){if(this['revisions']=[],_0x2e23a6){for(var _0xecfb1=Object['keys'](_0x2e23a6),_0x3ae5a5=0x0;_0x3ae5a5<_0xecfb1['length'];++_0x3ae5a5)null!=_0x2e23a6[_0xecfb1[_0x3ae5a5]]&&(this[_0xecfb1[_0x3ae5a5]]=_0x2e23a6[_0xecfb1[_0x3ae5a5]]);}}return _0x3960c0['prototype']['documentId']='',_0x3960c0['prototype']['requestId']=0x0,_0x3960c0['prototype']['revisions']=_0x32c136['emptyArray'],_0x3960c0['create']=function(_0x4fb444){return new _0x3960c0(_0x4fb444);},_0x3960c0['encode']=function(_0x32c296,_0x29f31e){if(_0x29f31e||(_0x29f31e=_0x320e1c['create']()),null!=_0x32c296['documentId']&&Object['hasOwnProperty']['call'](_0x32c296,'documentId')&&_0x29f31e['uint32'](0xa)['string'](_0x32c296['documentId']),null!=_0x32c296['requestId']&&Object['hasOwnProperty']['call'](_0x32c296,'requestId')&&_0x29f31e['uint32'](0x10)['uint32'](_0x32c296['requestId']),null!=_0x32c296['revisions']&&_0x32c296['revisions']['length']){for(var _0x2196fe=0x0;_0x2196fe<_0x32c296['revisions']['length'];++_0x2196fe)_0xdb1853['RevisionDescriptor']['encode'](_0x32c296['revisions'][_0x2196fe],_0x29f31e['uint32'](0x1a)['fork']())['ldelim']();}return _0x29f31e;},_0x3960c0['encodeDelimited']=function(_0x5499f4,_0x511e97){return this['encode'](_0x5499f4,_0x511e97)['ldelim']();},_0x3960c0['decode']=function(_0x19b9e5,_0x1eb92c,_0x3a5573){_0x19b9e5 instanceof _0x254bdb||(_0x19b9e5=_0x254bdb['create'](_0x19b9e5));for(var _0xafd58e=void 0x0===_0x1eb92c?_0x19b9e5['len']:_0x19b9e5['pos']+_0x1eb92c,_0x472766=new _0xdb1853['RevisionHistoryUpdateRevisionsMessage']();_0x19b9e5['pos']<_0xafd58e;){var _0xb3aab7=_0x19b9e5['uint32']();if(_0xb3aab7===_0x3a5573)break;switch(_0xb3aab7>>>0x3){case 0x1:_0x472766['documentId']=_0x19b9e5['string']();break;case 0x2:_0x472766['requestId']=_0x19b9e5['uint32']();break;case 0x3:_0x472766['revisions']&&_0x472766['revisions']['length']||(_0x472766['revisions']=[]),_0x472766['revisions']['push'](_0xdb1853['RevisionDescriptor']['decode'](_0x19b9e5,_0x19b9e5['uint32']()));break;default:_0x19b9e5['skipType'](0x7&_0xb3aab7);}}return _0x472766;},_0x3960c0['decodeDelimited']=function(_0x23150c){return _0x23150c instanceof _0x254bdb||(_0x23150c=new _0x254bdb(_0x23150c)),this['decode'](_0x23150c,_0x23150c['uint32']());},_0x3960c0['verify']=function(_0x3ef679){if('object'!=typeof _0x3ef679||null===_0x3ef679)return'object\x20expected';if(null!=_0x3ef679['documentId']&&_0x3ef679['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x3ef679['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x3ef679['requestId']&&_0x3ef679['hasOwnProperty']('requestId')&&!_0x32c136['isInteger'](_0x3ef679['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x3ef679['revisions']&&_0x3ef679['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x3ef679['revisions']))return'revisions:\x20array\x20expected';for(var _0x2c9c94=0x0;_0x2c9c94<_0x3ef679['revisions']['length'];++_0x2c9c94){var _0x1092d6=_0xdb1853['RevisionDescriptor']['verify'](_0x3ef679['revisions'][_0x2c9c94]);if(_0x1092d6)return'revisions.'+_0x1092d6;}}return null;},_0x3960c0['fromObject']=function(_0x5b0c83){if(_0x5b0c83 instanceof _0xdb1853['RevisionHistoryUpdateRevisionsMessage'])return _0x5b0c83;var _0x2579f0=new _0xdb1853['RevisionHistoryUpdateRevisionsMessage']();if(null!=_0x5b0c83['documentId']&&(_0x2579f0['documentId']=String(_0x5b0c83['documentId'])),null!=_0x5b0c83['requestId']&&(_0x2579f0['requestId']=_0x5b0c83['requestId']>>>0x0),_0x5b0c83['revisions']){if(!Array['isArray'](_0x5b0c83['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x2579f0['revisions']=[];for(var _0x58963b=0x0;_0x58963b<_0x5b0c83['revisions']['length'];++_0x58963b){if('object'!=typeof _0x5b0c83['revisions'][_0x58963b])throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x2579f0['revisions'][_0x58963b]=_0xdb1853['RevisionDescriptor']['fromObject'](_0x5b0c83['revisions'][_0x58963b]);}}return _0x2579f0;},_0x3960c0['toObject']=function(_0x37765b,_0x3ef46b){_0x3ef46b||(_0x3ef46b={});var _0x2aa989={};if((_0x3ef46b['arrays']||_0x3ef46b['defaults'])&&(_0x2aa989['revisions']=[]),_0x3ef46b['defaults']&&(_0x2aa989['documentId']='',_0x2aa989['requestId']=0x0),null!=_0x37765b['documentId']&&_0x37765b['hasOwnProperty']('documentId')&&(_0x2aa989['documentId']=_0x37765b['documentId']),null!=_0x37765b['requestId']&&_0x37765b['hasOwnProperty']('requestId')&&(_0x2aa989['requestId']=_0x37765b['requestId']),_0x37765b['revisions']&&_0x37765b['revisions']['length']){_0x2aa989['revisions']=[];for(var _0x112ea3=0x0;_0x112ea3<_0x37765b['revisions']['length'];++_0x112ea3)_0x2aa989['revisions'][_0x112ea3]=_0xdb1853['RevisionDescriptor']['toObject'](_0x37765b['revisions'][_0x112ea3],_0x3ef46b);}return _0x2aa989;},_0x3960c0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3960c0['getTypeUrl']=function(_0x1b584c){return void 0x0===_0x1b584c&&(_0x1b584c='type.googleapis.com'),_0x1b584c+'/RevisionHistoryUpdateRevisionsMessage';},_0x3960c0;}()),_0xdb1853['RevisionHistoryReconnectMessage']=(function(){function _0xc8bf63(_0x46bb63){if(_0x46bb63){for(var _0x5c178d=Object['keys'](_0x46bb63),_0x1de051=0x0;_0x1de051<_0x5c178d['length'];++_0x1de051)null!=_0x46bb63[_0x5c178d[_0x1de051]]&&(this[_0x5c178d[_0x1de051]]=_0x46bb63[_0x5c178d[_0x1de051]]);}}return _0xc8bf63['prototype']['documentId']='',_0xc8bf63['prototype']['requestId']=0x0,_0xc8bf63['create']=function(_0x3647cb){return new _0xc8bf63(_0x3647cb);},_0xc8bf63['encode']=function(_0xc5dee6,_0x3fedfa){return _0x3fedfa||(_0x3fedfa=_0x320e1c['create']()),null!=_0xc5dee6['documentId']&&Object['hasOwnProperty']['call'](_0xc5dee6,'documentId')&&_0x3fedfa['uint32'](0xa)['string'](_0xc5dee6['documentId']),null!=_0xc5dee6['requestId']&&Object['hasOwnProperty']['call'](_0xc5dee6,'requestId')&&_0x3fedfa['uint32'](0x10)['uint32'](_0xc5dee6['requestId']),_0x3fedfa;},_0xc8bf63['encodeDelimited']=function(_0x3b9f12,_0x4c0a7a){return this['encode'](_0x3b9f12,_0x4c0a7a)['ldelim']();},_0xc8bf63['decode']=function(_0x4dc44e,_0x556a5a,_0x5a52cd){_0x4dc44e instanceof _0x254bdb||(_0x4dc44e=_0x254bdb['create'](_0x4dc44e));for(var _0x2ca565=void 0x0===_0x556a5a?_0x4dc44e['len']:_0x4dc44e['pos']+_0x556a5a,_0x68a276=new _0xdb1853['RevisionHistoryReconnectMessage']();_0x4dc44e['pos']<_0x2ca565;){var _0x1743fa=_0x4dc44e['uint32']();if(_0x1743fa===_0x5a52cd)break;switch(_0x1743fa>>>0x3){case 0x1:_0x68a276['documentId']=_0x4dc44e['string']();break;case 0x2:_0x68a276['requestId']=_0x4dc44e['uint32']();break;default:_0x4dc44e['skipType'](0x7&_0x1743fa);}}return _0x68a276;},_0xc8bf63['decodeDelimited']=function(_0x331d49){return _0x331d49 instanceof _0x254bdb||(_0x331d49=new _0x254bdb(_0x331d49)),this['decode'](_0x331d49,_0x331d49['uint32']());},_0xc8bf63['verify']=function(_0x514ed8){return'object'!=typeof _0x514ed8||null===_0x514ed8?'object\x20expected':null!=_0x514ed8['documentId']&&_0x514ed8['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x514ed8['documentId'])?'documentId:\x20string\x20expected':null!=_0x514ed8['requestId']&&_0x514ed8['hasOwnProperty']('requestId')&&!_0x32c136['isInteger'](_0x514ed8['requestId'])?'requestId:\x20integer\x20expected':null;},_0xc8bf63['fromObject']=function(_0x289a53){if(_0x289a53 instanceof _0xdb1853['RevisionHistoryReconnectMessage'])return _0x289a53;var _0x2ba5dc=new _0xdb1853['RevisionHistoryReconnectMessage']();return null!=_0x289a53['documentId']&&(_0x2ba5dc['documentId']=String(_0x289a53['documentId'])),null!=_0x289a53['requestId']&&(_0x2ba5dc['requestId']=_0x289a53['requestId']>>>0x0),_0x2ba5dc;},_0xc8bf63['toObject']=function(_0x10fe31,_0x51a156){_0x51a156||(_0x51a156={});var _0xdacee1={};return _0x51a156['defaults']&&(_0xdacee1['documentId']='',_0xdacee1['requestId']=0x0),null!=_0x10fe31['documentId']&&_0x10fe31['hasOwnProperty']('documentId')&&(_0xdacee1['documentId']=_0x10fe31['documentId']),null!=_0x10fe31['requestId']&&_0x10fe31['hasOwnProperty']('requestId')&&(_0xdacee1['requestId']=_0x10fe31['requestId']),_0xdacee1;},_0xc8bf63['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xc8bf63['getTypeUrl']=function(_0x317f24){return void 0x0===_0x317f24&&(_0x317f24='type.googleapis.com'),_0x317f24+'/RevisionHistoryReconnectMessage';},_0xc8bf63;}()),_0xdb1853['RevisionHistoryGetRevisionMessage']=(function(){function _0xfe6b5c(_0x16cad1){if(_0x16cad1){for(var _0x56b6af=Object['keys'](_0x16cad1),_0x40f111=0x0;_0x40f111<_0x56b6af['length'];++_0x40f111)null!=_0x16cad1[_0x56b6af[_0x40f111]]&&(this[_0x56b6af[_0x40f111]]=_0x16cad1[_0x56b6af[_0x40f111]]);}}return _0xfe6b5c['prototype']['documentId']='',_0xfe6b5c['prototype']['revisionId']='',_0xfe6b5c['create']=function(_0xc50dae){return new _0xfe6b5c(_0xc50dae);},_0xfe6b5c['encode']=function(_0x5e55ce,_0x246d01){return _0x246d01||(_0x246d01=_0x320e1c['create']()),null!=_0x5e55ce['documentId']&&Object['hasOwnProperty']['call'](_0x5e55ce,'documentId')&&_0x246d01['uint32'](0xa)['string'](_0x5e55ce['documentId']),null!=_0x5e55ce['revisionId']&&Object['hasOwnProperty']['call'](_0x5e55ce,'revisionId')&&_0x246d01['uint32'](0x12)['string'](_0x5e55ce['revisionId']),_0x246d01;},_0xfe6b5c['encodeDelimited']=function(_0x39dfdd,_0x3aa209){return this['encode'](_0x39dfdd,_0x3aa209)['ldelim']();},_0xfe6b5c['decode']=function(_0x6d7035,_0x4a9151,_0x26ab88){_0x6d7035 instanceof _0x254bdb||(_0x6d7035=_0x254bdb['create'](_0x6d7035));for(var _0x54e5df=void 0x0===_0x4a9151?_0x6d7035['len']:_0x6d7035['pos']+_0x4a9151,_0x530193=new _0xdb1853['RevisionHistoryGetRevisionMessage']();_0x6d7035['pos']<_0x54e5df;){var _0x4e3642=_0x6d7035['uint32']();if(_0x4e3642===_0x26ab88)break;switch(_0x4e3642>>>0x3){case 0x1:_0x530193['documentId']=_0x6d7035['string']();break;case 0x2:_0x530193['revisionId']=_0x6d7035['string']();break;default:_0x6d7035['skipType'](0x7&_0x4e3642);}}return _0x530193;},_0xfe6b5c['decodeDelimited']=function(_0x58f529){return _0x58f529 instanceof _0x254bdb||(_0x58f529=new _0x254bdb(_0x58f529)),this['decode'](_0x58f529,_0x58f529['uint32']());},_0xfe6b5c['verify']=function(_0x1c0cd2){return'object'!=typeof _0x1c0cd2||null===_0x1c0cd2?'object\x20expected':null!=_0x1c0cd2['documentId']&&_0x1c0cd2['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x1c0cd2['documentId'])?'documentId:\x20string\x20expected':null!=_0x1c0cd2['revisionId']&&_0x1c0cd2['hasOwnProperty']('revisionId')&&!_0x32c136['isString'](_0x1c0cd2['revisionId'])?'revisionId:\x20string\x20expected':null;},_0xfe6b5c['fromObject']=function(_0x3ba9e3){if(_0x3ba9e3 instanceof _0xdb1853['RevisionHistoryGetRevisionMessage'])return _0x3ba9e3;var _0x64c4cf=new _0xdb1853['RevisionHistoryGetRevisionMessage']();return null!=_0x3ba9e3['documentId']&&(_0x64c4cf['documentId']=String(_0x3ba9e3['documentId'])),null!=_0x3ba9e3['revisionId']&&(_0x64c4cf['revisionId']=String(_0x3ba9e3['revisionId'])),_0x64c4cf;},_0xfe6b5c['toObject']=function(_0x5b52aa,_0x38228d){_0x38228d||(_0x38228d={});var _0x494161={};return _0x38228d['defaults']&&(_0x494161['documentId']='',_0x494161['revisionId']=''),null!=_0x5b52aa['documentId']&&_0x5b52aa['hasOwnProperty']('documentId')&&(_0x494161['documentId']=_0x5b52aa['documentId']),null!=_0x5b52aa['revisionId']&&_0x5b52aa['hasOwnProperty']('revisionId')&&(_0x494161['revisionId']=_0x5b52aa['revisionId']),_0x494161;},_0xfe6b5c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xfe6b5c['getTypeUrl']=function(_0x628ea4){return void 0x0===_0x628ea4&&(_0x628ea4='type.googleapis.com'),_0x628ea4+'/RevisionHistoryGetRevisionMessage';},_0xfe6b5c;}()),_0xdb1853['RevisionHistoryConnectMessage']=(function(){function _0xdf81c5(_0x4bb8bb){if(_0x4bb8bb){for(var _0x1273db=Object['keys'](_0x4bb8bb),_0xe5056f=0x0;_0xe5056f<_0x1273db['length'];++_0xe5056f)null!=_0x4bb8bb[_0x1273db[_0xe5056f]]&&(this[_0x1273db[_0xe5056f]]=_0x4bb8bb[_0x1273db[_0xe5056f]]);}}return _0xdf81c5['prototype']['documentId']='',_0xdf81c5['create']=function(_0x5dcb2d){return new _0xdf81c5(_0x5dcb2d);},_0xdf81c5['encode']=function(_0x181f89,_0x118123){return _0x118123||(_0x118123=_0x320e1c['create']()),null!=_0x181f89['documentId']&&Object['hasOwnProperty']['call'](_0x181f89,'documentId')&&_0x118123['uint32'](0xa)['string'](_0x181f89['documentId']),_0x118123;},_0xdf81c5['encodeDelimited']=function(_0x1f6bc1,_0xb6accf){return this['encode'](_0x1f6bc1,_0xb6accf)['ldelim']();},_0xdf81c5['decode']=function(_0x2e9243,_0x1e88e4,_0x2448b5){_0x2e9243 instanceof _0x254bdb||(_0x2e9243=_0x254bdb['create'](_0x2e9243));for(var _0x17ce72=void 0x0===_0x1e88e4?_0x2e9243['len']:_0x2e9243['pos']+_0x1e88e4,_0x4a1859=new _0xdb1853['RevisionHistoryConnectMessage']();_0x2e9243['pos']<_0x17ce72;){var _0x1bb2b8=_0x2e9243['uint32']();if(_0x1bb2b8===_0x2448b5)break;_0x1bb2b8>>>0x3==0x1?_0x4a1859['documentId']=_0x2e9243['string']():_0x2e9243['skipType'](0x7&_0x1bb2b8);}return _0x4a1859;},_0xdf81c5['decodeDelimited']=function(_0x28b74a){return _0x28b74a instanceof _0x254bdb||(_0x28b74a=new _0x254bdb(_0x28b74a)),this['decode'](_0x28b74a,_0x28b74a['uint32']());},_0xdf81c5['verify']=function(_0x232ca8){return'object'!=typeof _0x232ca8||null===_0x232ca8?'object\x20expected':null!=_0x232ca8['documentId']&&_0x232ca8['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x232ca8['documentId'])?'documentId:\x20string\x20expected':null;},_0xdf81c5['fromObject']=function(_0x25f488){if(_0x25f488 instanceof _0xdb1853['RevisionHistoryConnectMessage'])return _0x25f488;var _0x1daa10=new _0xdb1853['RevisionHistoryConnectMessage']();return null!=_0x25f488['documentId']&&(_0x1daa10['documentId']=String(_0x25f488['documentId'])),_0x1daa10;},_0xdf81c5['toObject']=function(_0x4a21ee,_0x36d525){_0x36d525||(_0x36d525={});var _0x240868={};return _0x36d525['defaults']&&(_0x240868['documentId']=''),null!=_0x4a21ee['documentId']&&_0x4a21ee['hasOwnProperty']('documentId')&&(_0x240868['documentId']=_0x4a21ee['documentId']),_0x240868;},_0xdf81c5['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xdf81c5['getTypeUrl']=function(_0x5deae5){return void 0x0===_0x5deae5&&(_0x5deae5='type.googleapis.com'),_0x5deae5+'/RevisionHistoryConnectMessage';},_0xdf81c5;}()),_0xdb1853['RevisionDescriptor']=(function(){function _0x308396(_0x437f6d){if(_0x437f6d){for(var _0x4bbafd=Object['keys'](_0x437f6d),_0x5544cd=0x0;_0x5544cd<_0x4bbafd['length'];++_0x5544cd)null!=_0x437f6d[_0x4bbafd[_0x5544cd]]&&(this[_0x4bbafd[_0x5544cd]]=_0x437f6d[_0x4bbafd[_0x5544cd]]);}}return _0x308396['prototype']['revisionId']='',_0x308396['prototype']['name']='',_0x308396['prototype']['creatorId']='',_0x308396['prototype']['authorsIds']='',_0x308396['prototype']['diffData']='',_0x308396['prototype']['createdAt']='',_0x308396['prototype']['attributes']='',_0x308396['prototype']['toVersion']=0x0,_0x308396['prototype']['fromVersion']=0x0,_0x308396['prototype']['isEmptyCurrent']=!0x1,_0x308396['create']=function(_0x229f3c){return new _0x308396(_0x229f3c);},_0x308396['encode']=function(_0x3cd22d,_0x5e7ce2){return _0x5e7ce2||(_0x5e7ce2=_0x320e1c['create']()),null!=_0x3cd22d['revisionId']&&Object['hasOwnProperty']['call'](_0x3cd22d,'revisionId')&&_0x5e7ce2['uint32'](0xa)['string'](_0x3cd22d['revisionId']),null!=_0x3cd22d['name']&&Object['hasOwnProperty']['call'](_0x3cd22d,'name')&&_0x5e7ce2['uint32'](0x12)['string'](_0x3cd22d['name']),null!=_0x3cd22d['creatorId']&&Object['hasOwnProperty']['call'](_0x3cd22d,'creatorId')&&_0x5e7ce2['uint32'](0x1a)['string'](_0x3cd22d['creatorId']),null!=_0x3cd22d['authorsIds']&&Object['hasOwnProperty']['call'](_0x3cd22d,'authorsIds')&&_0x5e7ce2['uint32'](0x22)['string'](_0x3cd22d['authorsIds']),null!=_0x3cd22d['diffData']&&Object['hasOwnProperty']['call'](_0x3cd22d,'diffData')&&_0x5e7ce2['uint32'](0x2a)['string'](_0x3cd22d['diffData']),null!=_0x3cd22d['createdAt']&&Object['hasOwnProperty']['call'](_0x3cd22d,'createdAt')&&_0x5e7ce2['uint32'](0x32)['string'](_0x3cd22d['createdAt']),null!=_0x3cd22d['attributes']&&Object['hasOwnProperty']['call'](_0x3cd22d,'attributes')&&_0x5e7ce2['uint32'](0x3a)['string'](_0x3cd22d['attributes']),null!=_0x3cd22d['toVersion']&&Object['hasOwnProperty']['call'](_0x3cd22d,'toVersion')&&_0x5e7ce2['uint32'](0x40)['uint32'](_0x3cd22d['toVersion']),null!=_0x3cd22d['fromVersion']&&Object['hasOwnProperty']['call'](_0x3cd22d,'fromVersion')&&_0x5e7ce2['uint32'](0x48)['uint32'](_0x3cd22d['fromVersion']),null!=_0x3cd22d['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x3cd22d,'isEmptyCurrent')&&_0x5e7ce2['uint32'](0x50)['bool'](_0x3cd22d['isEmptyCurrent']),_0x5e7ce2;},_0x308396['encodeDelimited']=function(_0x23da35,_0x276bf2){return this['encode'](_0x23da35,_0x276bf2)['ldelim']();},_0x308396['decode']=function(_0x45a1b4,_0x70bf22,_0x32c7e8){_0x45a1b4 instanceof _0x254bdb||(_0x45a1b4=_0x254bdb['create'](_0x45a1b4));for(var _0x464b21=void 0x0===_0x70bf22?_0x45a1b4['len']:_0x45a1b4['pos']+_0x70bf22,_0x12641d=new _0xdb1853['RevisionDescriptor']();_0x45a1b4['pos']<_0x464b21;){var _0x2431f8=_0x45a1b4['uint32']();if(_0x2431f8===_0x32c7e8)break;switch(_0x2431f8>>>0x3){case 0x1:_0x12641d['revisionId']=_0x45a1b4['string']();break;case 0x2:_0x12641d['name']=_0x45a1b4['string']();break;case 0x3:_0x12641d['creatorId']=_0x45a1b4['string']();break;case 0x4:_0x12641d['authorsIds']=_0x45a1b4['string']();break;case 0x5:_0x12641d['diffData']=_0x45a1b4['string']();break;case 0x6:_0x12641d['createdAt']=_0x45a1b4['string']();break;case 0x7:_0x12641d['attributes']=_0x45a1b4['string']();break;case 0x8:_0x12641d['toVersion']=_0x45a1b4['uint32']();break;case 0x9:_0x12641d['fromVersion']=_0x45a1b4['uint32']();break;case 0xa:_0x12641d['isEmptyCurrent']=_0x45a1b4['bool']();break;default:_0x45a1b4['skipType'](0x7&_0x2431f8);}}return _0x12641d;},_0x308396['decodeDelimited']=function(_0x4e0dad){return _0x4e0dad instanceof _0x254bdb||(_0x4e0dad=new _0x254bdb(_0x4e0dad)),this['decode'](_0x4e0dad,_0x4e0dad['uint32']());},_0x308396['verify']=function(_0x37182c){return'object'!=typeof _0x37182c||null===_0x37182c?'object\x20expected':null!=_0x37182c['revisionId']&&_0x37182c['hasOwnProperty']('revisionId')&&!_0x32c136['isString'](_0x37182c['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x37182c['name']&&_0x37182c['hasOwnProperty']('name')&&!_0x32c136['isString'](_0x37182c['name'])?'name:\x20string\x20expected':null!=_0x37182c['creatorId']&&_0x37182c['hasOwnProperty']('creatorId')&&!_0x32c136['isString'](_0x37182c['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x37182c['authorsIds']&&_0x37182c['hasOwnProperty']('authorsIds')&&!_0x32c136['isString'](_0x37182c['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x37182c['diffData']&&_0x37182c['hasOwnProperty']('diffData')&&!_0x32c136['isString'](_0x37182c['diffData'])?'diffData:\x20string\x20expected':null!=_0x37182c['createdAt']&&_0x37182c['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0x37182c['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x37182c['attributes']&&_0x37182c['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x37182c['attributes'])?'attributes:\x20string\x20expected':null!=_0x37182c['toVersion']&&_0x37182c['hasOwnProperty']('toVersion')&&!_0x32c136['isInteger'](_0x37182c['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x37182c['fromVersion']&&_0x37182c['hasOwnProperty']('fromVersion')&&!_0x32c136['isInteger'](_0x37182c['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x37182c['isEmptyCurrent']&&_0x37182c['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x37182c['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0x308396['fromObject']=function(_0x4db0d2){if(_0x4db0d2 instanceof _0xdb1853['RevisionDescriptor'])return _0x4db0d2;var _0x4ee760=new _0xdb1853['RevisionDescriptor']();return null!=_0x4db0d2['revisionId']&&(_0x4ee760['revisionId']=String(_0x4db0d2['revisionId'])),null!=_0x4db0d2['name']&&(_0x4ee760['name']=String(_0x4db0d2['name'])),null!=_0x4db0d2['creatorId']&&(_0x4ee760['creatorId']=String(_0x4db0d2['creatorId'])),null!=_0x4db0d2['authorsIds']&&(_0x4ee760['authorsIds']=String(_0x4db0d2['authorsIds'])),null!=_0x4db0d2['diffData']&&(_0x4ee760['diffData']=String(_0x4db0d2['diffData'])),null!=_0x4db0d2['createdAt']&&(_0x4ee760['createdAt']=String(_0x4db0d2['createdAt'])),null!=_0x4db0d2['attributes']&&(_0x4ee760['attributes']=String(_0x4db0d2['attributes'])),null!=_0x4db0d2['toVersion']&&(_0x4ee760['toVersion']=_0x4db0d2['toVersion']>>>0x0),null!=_0x4db0d2['fromVersion']&&(_0x4ee760['fromVersion']=_0x4db0d2['fromVersion']>>>0x0),null!=_0x4db0d2['isEmptyCurrent']&&(_0x4ee760['isEmptyCurrent']=Boolean(_0x4db0d2['isEmptyCurrent'])),_0x4ee760;},_0x308396['toObject']=function(_0x55eb81,_0x17c8a0){_0x17c8a0||(_0x17c8a0={});var _0x787a87={};return _0x17c8a0['defaults']&&(_0x787a87['revisionId']='',_0x787a87['name']='',_0x787a87['creatorId']='',_0x787a87['authorsIds']='',_0x787a87['diffData']='',_0x787a87['createdAt']='',_0x787a87['attributes']='',_0x787a87['toVersion']=0x0,_0x787a87['fromVersion']=0x0,_0x787a87['isEmptyCurrent']=!0x1),null!=_0x55eb81['revisionId']&&_0x55eb81['hasOwnProperty']('revisionId')&&(_0x787a87['revisionId']=_0x55eb81['revisionId']),null!=_0x55eb81['name']&&_0x55eb81['hasOwnProperty']('name')&&(_0x787a87['name']=_0x55eb81['name']),null!=_0x55eb81['creatorId']&&_0x55eb81['hasOwnProperty']('creatorId')&&(_0x787a87['creatorId']=_0x55eb81['creatorId']),null!=_0x55eb81['authorsIds']&&_0x55eb81['hasOwnProperty']('authorsIds')&&(_0x787a87['authorsIds']=_0x55eb81['authorsIds']),null!=_0x55eb81['diffData']&&_0x55eb81['hasOwnProperty']('diffData')&&(_0x787a87['diffData']=_0x55eb81['diffData']),null!=_0x55eb81['createdAt']&&_0x55eb81['hasOwnProperty']('createdAt')&&(_0x787a87['createdAt']=_0x55eb81['createdAt']),null!=_0x55eb81['attributes']&&_0x55eb81['hasOwnProperty']('attributes')&&(_0x787a87['attributes']=_0x55eb81['attributes']),null!=_0x55eb81['toVersion']&&_0x55eb81['hasOwnProperty']('toVersion')&&(_0x787a87['toVersion']=_0x55eb81['toVersion']),null!=_0x55eb81['fromVersion']&&_0x55eb81['hasOwnProperty']('fromVersion')&&(_0x787a87['fromVersion']=_0x55eb81['fromVersion']),null!=_0x55eb81['isEmptyCurrent']&&_0x55eb81['hasOwnProperty']('isEmptyCurrent')&&(_0x787a87['isEmptyCurrent']=_0x55eb81['isEmptyCurrent']),_0x787a87;},_0x308396['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x308396['getTypeUrl']=function(_0x2b4938){return void 0x0===_0x2b4938&&(_0x2b4938='type.googleapis.com'),_0x2b4938+'/RevisionDescriptor';},_0x308396;}()),_0xdb1853['IsEditorBundleUploadedResponse']=(function(){function _0xe5e2e4(_0xfaeb47){if(_0xfaeb47){for(var _0x1f948e=Object['keys'](_0xfaeb47),_0x24514b=0x0;_0x24514b<_0x1f948e['length'];++_0x24514b)null!=_0xfaeb47[_0x1f948e[_0x24514b]]&&(this[_0x1f948e[_0x24514b]]=_0xfaeb47[_0x1f948e[_0x24514b]]);}}return _0xe5e2e4['prototype']['isUploaded']=!0x1,_0xe5e2e4['create']=function(_0x25dd62){return new _0xe5e2e4(_0x25dd62);},_0xe5e2e4['encode']=function(_0x46e42c,_0x28b538){return _0x28b538||(_0x28b538=_0x320e1c['create']()),null!=_0x46e42c['isUploaded']&&Object['hasOwnProperty']['call'](_0x46e42c,'isUploaded')&&_0x28b538['uint32'](0x8)['bool'](_0x46e42c['isUploaded']),_0x28b538;},_0xe5e2e4['encodeDelimited']=function(_0x2b3773,_0x12e3ba){return this['encode'](_0x2b3773,_0x12e3ba)['ldelim']();},_0xe5e2e4['decode']=function(_0xf10786,_0x6d08b7,_0x41c157){_0xf10786 instanceof _0x254bdb||(_0xf10786=_0x254bdb['create'](_0xf10786));for(var _0x3488a4=void 0x0===_0x6d08b7?_0xf10786['len']:_0xf10786['pos']+_0x6d08b7,_0x5b77cf=new _0xdb1853['IsEditorBundleUploadedResponse']();_0xf10786['pos']<_0x3488a4;){var _0x257883=_0xf10786['uint32']();if(_0x257883===_0x41c157)break;_0x257883>>>0x3==0x1?_0x5b77cf['isUploaded']=_0xf10786['bool']():_0xf10786['skipType'](0x7&_0x257883);}return _0x5b77cf;},_0xe5e2e4['decodeDelimited']=function(_0x314f99){return _0x314f99 instanceof _0x254bdb||(_0x314f99=new _0x254bdb(_0x314f99)),this['decode'](_0x314f99,_0x314f99['uint32']());},_0xe5e2e4['verify']=function(_0x23e943){return'object'!=typeof _0x23e943||null===_0x23e943?'object\x20expected':null!=_0x23e943['isUploaded']&&_0x23e943['hasOwnProperty']('isUploaded')&&'boolean'!=typeof _0x23e943['isUploaded']?'isUploaded:\x20boolean\x20expected':null;},_0xe5e2e4['fromObject']=function(_0x3219f6){if(_0x3219f6 instanceof _0xdb1853['IsEditorBundleUploadedResponse'])return _0x3219f6;var _0x51fc48=new _0xdb1853['IsEditorBundleUploadedResponse']();return null!=_0x3219f6['isUploaded']&&(_0x51fc48['isUploaded']=Boolean(_0x3219f6['isUploaded'])),_0x51fc48;},_0xe5e2e4['toObject']=function(_0x13462f,_0x5ce0c1){_0x5ce0c1||(_0x5ce0c1={});var _0x4a9575={};return _0x5ce0c1['defaults']&&(_0x4a9575['isUploaded']=!0x1),null!=_0x13462f['isUploaded']&&_0x13462f['hasOwnProperty']('isUploaded')&&(_0x4a9575['isUploaded']=_0x13462f['isUploaded']),_0x4a9575;},_0xe5e2e4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xe5e2e4['getTypeUrl']=function(_0xfe654b){return void 0x0===_0xfe654b&&(_0xfe654b='type.googleapis.com'),_0xfe654b+'/IsEditorBundleUploadedResponse';},_0xe5e2e4;}()),_0xdb1853['IsEditorBundleUploadedMessage']=(function(){function _0x17977d(_0x414597){if(_0x414597){for(var _0x26c01d=Object['keys'](_0x414597),_0x46353d=0x0;_0x46353d<_0x26c01d['length'];++_0x46353d)null!=_0x414597[_0x26c01d[_0x46353d]]&&(this[_0x26c01d[_0x46353d]]=_0x414597[_0x26c01d[_0x46353d]]);}}return _0x17977d['prototype']['bundleVersion']='',_0x17977d['create']=function(_0x56ecee){return new _0x17977d(_0x56ecee);},_0x17977d['encode']=function(_0x29f9eb,_0x52ca28){return _0x52ca28||(_0x52ca28=_0x320e1c['create']()),null!=_0x29f9eb['bundleVersion']&&Object['hasOwnProperty']['call'](_0x29f9eb,'bundleVersion')&&_0x52ca28['uint32'](0xa)['string'](_0x29f9eb['bundleVersion']),_0x52ca28;},_0x17977d['encodeDelimited']=function(_0x26b887,_0x468362){return this['encode'](_0x26b887,_0x468362)['ldelim']();},_0x17977d['decode']=function(_0x4afe6b,_0x31a404,_0x195321){_0x4afe6b instanceof _0x254bdb||(_0x4afe6b=_0x254bdb['create'](_0x4afe6b));for(var _0x2bd2b9=void 0x0===_0x31a404?_0x4afe6b['len']:_0x4afe6b['pos']+_0x31a404,_0x2c9986=new _0xdb1853['IsEditorBundleUploadedMessage']();_0x4afe6b['pos']<_0x2bd2b9;){var _0x15a988=_0x4afe6b['uint32']();if(_0x15a988===_0x195321)break;_0x15a988>>>0x3==0x1?_0x2c9986['bundleVersion']=_0x4afe6b['string']():_0x4afe6b['skipType'](0x7&_0x15a988);}return _0x2c9986;},_0x17977d['decodeDelimited']=function(_0x3412ca){return _0x3412ca instanceof _0x254bdb||(_0x3412ca=new _0x254bdb(_0x3412ca)),this['decode'](_0x3412ca,_0x3412ca['uint32']());},_0x17977d['verify']=function(_0x592c67){return'object'!=typeof _0x592c67||null===_0x592c67?'object\x20expected':null!=_0x592c67['bundleVersion']&&_0x592c67['hasOwnProperty']('bundleVersion')&&!_0x32c136['isString'](_0x592c67['bundleVersion'])?'bundleVersion:\x20string\x20expected':null;},_0x17977d['fromObject']=function(_0x1e05ed){if(_0x1e05ed instanceof _0xdb1853['IsEditorBundleUploadedMessage'])return _0x1e05ed;var _0x198f7b=new _0xdb1853['IsEditorBundleUploadedMessage']();return null!=_0x1e05ed['bundleVersion']&&(_0x198f7b['bundleVersion']=String(_0x1e05ed['bundleVersion'])),_0x198f7b;},_0x17977d['toObject']=function(_0x29cff6,_0x45273f){_0x45273f||(_0x45273f={});var _0x1dc808={};return _0x45273f['defaults']&&(_0x1dc808['bundleVersion']=''),null!=_0x29cff6['bundleVersion']&&_0x29cff6['hasOwnProperty']('bundleVersion')&&(_0x1dc808['bundleVersion']=_0x29cff6['bundleVersion']),_0x1dc808;},_0x17977d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x17977d['getTypeUrl']=function(_0x4a0feb){return void 0x0===_0x4a0feb&&(_0x4a0feb='type.googleapis.com'),_0x4a0feb+'/IsEditorBundleUploadedMessage';},_0x17977d;}()),_0xdb1853['KeyValueDescriptor']=(function(){function _0x5296c9(_0x424afd){if(_0x424afd){for(var _0x554bfe=Object['keys'](_0x424afd),_0x3d9dda=0x0;_0x3d9dda<_0x554bfe['length'];++_0x3d9dda)null!=_0x424afd[_0x554bfe[_0x3d9dda]]&&(this[_0x554bfe[_0x3d9dda]]=_0x424afd[_0x554bfe[_0x3d9dda]]);}}return _0x5296c9['prototype']['key']='',_0x5296c9['prototype']['value']='',_0x5296c9['create']=function(_0x412ed1){return new _0x5296c9(_0x412ed1);},_0x5296c9['encode']=function(_0x5561e4,_0x4e46f1){return _0x4e46f1||(_0x4e46f1=_0x320e1c['create']()),null!=_0x5561e4['key']&&Object['hasOwnProperty']['call'](_0x5561e4,'key')&&_0x4e46f1['uint32'](0xa)['string'](_0x5561e4['key']),null!=_0x5561e4['value']&&Object['hasOwnProperty']['call'](_0x5561e4,'value')&&_0x4e46f1['uint32'](0x12)['string'](_0x5561e4['value']),_0x4e46f1;},_0x5296c9['encodeDelimited']=function(_0x35088f,_0x110e4a){return this['encode'](_0x35088f,_0x110e4a)['ldelim']();},_0x5296c9['decode']=function(_0x26bcaf,_0x119af6,_0x1bd6e7){_0x26bcaf instanceof _0x254bdb||(_0x26bcaf=_0x254bdb['create'](_0x26bcaf));for(var _0x110a65=void 0x0===_0x119af6?_0x26bcaf['len']:_0x26bcaf['pos']+_0x119af6,_0x19e4e9=new _0xdb1853['KeyValueDescriptor']();_0x26bcaf['pos']<_0x110a65;){var _0x142176=_0x26bcaf['uint32']();if(_0x142176===_0x1bd6e7)break;switch(_0x142176>>>0x3){case 0x1:_0x19e4e9['key']=_0x26bcaf['string']();break;case 0x2:_0x19e4e9['value']=_0x26bcaf['string']();break;default:_0x26bcaf['skipType'](0x7&_0x142176);}}return _0x19e4e9;},_0x5296c9['decodeDelimited']=function(_0x3b1559){return _0x3b1559 instanceof _0x254bdb||(_0x3b1559=new _0x254bdb(_0x3b1559)),this['decode'](_0x3b1559,_0x3b1559['uint32']());},_0x5296c9['verify']=function(_0x2b5594){return'object'!=typeof _0x2b5594||null===_0x2b5594?'object\x20expected':null!=_0x2b5594['key']&&_0x2b5594['hasOwnProperty']('key')&&!_0x32c136['isString'](_0x2b5594['key'])?'key:\x20string\x20expected':null!=_0x2b5594['value']&&_0x2b5594['hasOwnProperty']('value')&&!_0x32c136['isString'](_0x2b5594['value'])?'value:\x20string\x20expected':null;},_0x5296c9['fromObject']=function(_0x2ee882){if(_0x2ee882 instanceof _0xdb1853['KeyValueDescriptor'])return _0x2ee882;var _0x1969c9=new _0xdb1853['KeyValueDescriptor']();return null!=_0x2ee882['key']&&(_0x1969c9['key']=String(_0x2ee882['key'])),null!=_0x2ee882['value']&&(_0x1969c9['value']=String(_0x2ee882['value'])),_0x1969c9;},_0x5296c9['toObject']=function(_0x5bd236,_0x11ded4){_0x11ded4||(_0x11ded4={});var _0x57213c={};return _0x11ded4['defaults']&&(_0x57213c['key']='',_0x57213c['value']=''),null!=_0x5bd236['key']&&_0x5bd236['hasOwnProperty']('key')&&(_0x57213c['key']=_0x5bd236['key']),null!=_0x5bd236['value']&&_0x5bd236['hasOwnProperty']('value')&&(_0x57213c['value']=_0x5bd236['value']),_0x57213c;},_0x5296c9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5296c9['getTypeUrl']=function(_0x1bb25d){return void 0x0===_0x1bb25d&&(_0x1bb25d='type.googleapis.com'),_0x1bb25d+'/KeyValueDescriptor';},_0x5296c9;}()),_0xdb1853['CommentsV2GetDocumentThreadsResponse']=(function(){function _0x30acb4(_0x3769ce){if(this['threads']=[],this['threadsV2']=[],_0x3769ce){for(var _0x306133=Object['keys'](_0x3769ce),_0xebe0e8=0x0;_0xebe0e8<_0x306133['length'];++_0xebe0e8)null!=_0x3769ce[_0x306133[_0xebe0e8]]&&(this[_0x306133[_0xebe0e8]]=_0x3769ce[_0x306133[_0xebe0e8]]);}}return _0x30acb4['prototype']['threads']=_0x32c136['emptyArray'],_0x30acb4['prototype']['threadsV2']=_0x32c136['emptyArray'],_0x30acb4['create']=function(_0x28a37f){return new _0x30acb4(_0x28a37f);},_0x30acb4['encode']=function(_0x5c66b0,_0x44def0){if(_0x44def0||(_0x44def0=_0x320e1c['create']()),null!=_0x5c66b0['threads']&&_0x5c66b0['threads']['length']){for(var _0x5c1e55=0x0;_0x5c1e55<_0x5c66b0['threads']['length'];++_0x5c1e55)_0x44def0['uint32'](0xa)['string'](_0x5c66b0['threads'][_0x5c1e55]);}if(null!=_0x5c66b0['threadsV2']&&_0x5c66b0['threadsV2']['length']){for(_0x5c1e55=0x0;_0x5c1e55<_0x5c66b0['threadsV2']['length'];++_0x5c1e55)_0xdb1853['CommentsThreadDescriptor']['encode'](_0x5c66b0['threadsV2'][_0x5c1e55],_0x44def0['uint32'](0x12)['fork']())['ldelim']();}return _0x44def0;},_0x30acb4['encodeDelimited']=function(_0xe03941,_0x2ad312){return this['encode'](_0xe03941,_0x2ad312)['ldelim']();},_0x30acb4['decode']=function(_0x40a611,_0x2c3e22,_0x51f022){_0x40a611 instanceof _0x254bdb||(_0x40a611=_0x254bdb['create'](_0x40a611));for(var _0x45692f=void 0x0===_0x2c3e22?_0x40a611['len']:_0x40a611['pos']+_0x2c3e22,_0x37a5c7=new _0xdb1853['CommentsV2GetDocumentThreadsResponse']();_0x40a611['pos']<_0x45692f;){var _0x35d03d=_0x40a611['uint32']();if(_0x35d03d===_0x51f022)break;switch(_0x35d03d>>>0x3){case 0x1:_0x37a5c7['threads']&&_0x37a5c7['threads']['length']||(_0x37a5c7['threads']=[]),_0x37a5c7['threads']['push'](_0x40a611['string']());break;case 0x2:_0x37a5c7['threadsV2']&&_0x37a5c7['threadsV2']['length']||(_0x37a5c7['threadsV2']=[]),_0x37a5c7['threadsV2']['push'](_0xdb1853['CommentsThreadDescriptor']['decode'](_0x40a611,_0x40a611['uint32']()));break;default:_0x40a611['skipType'](0x7&_0x35d03d);}}return _0x37a5c7;},_0x30acb4['decodeDelimited']=function(_0xbaf15f){return _0xbaf15f instanceof _0x254bdb||(_0xbaf15f=new _0x254bdb(_0xbaf15f)),this['decode'](_0xbaf15f,_0xbaf15f['uint32']());},_0x30acb4['verify']=function(_0x4a3747){if('object'!=typeof _0x4a3747||null===_0x4a3747)return'object\x20expected';if(null!=_0x4a3747['threads']&&_0x4a3747['hasOwnProperty']('threads')){if(!Array['isArray'](_0x4a3747['threads']))return'threads:\x20array\x20expected';for(var _0x32f80e=0x0;_0x32f80e<_0x4a3747['threads']['length'];++_0x32f80e)if(!_0x32c136['isString'](_0x4a3747['threads'][_0x32f80e]))return'threads:\x20string[]\x20expected';}if(null!=_0x4a3747['threadsV2']&&_0x4a3747['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x4a3747['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x32f80e=0x0;_0x32f80e<_0x4a3747['threadsV2']['length'];++_0x32f80e){var _0x3b4edc=_0xdb1853['CommentsThreadDescriptor']['verify'](_0x4a3747['threadsV2'][_0x32f80e]);if(_0x3b4edc)return'threadsV2.'+_0x3b4edc;}}return null;},_0x30acb4['fromObject']=function(_0x51431e){if(_0x51431e instanceof _0xdb1853['CommentsV2GetDocumentThreadsResponse'])return _0x51431e;var _0x24a851=new _0xdb1853['CommentsV2GetDocumentThreadsResponse']();if(_0x51431e['threads']){if(!Array['isArray'](_0x51431e['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x24a851['threads']=[];for(var _0x180593=0x0;_0x180593<_0x51431e['threads']['length'];++_0x180593)_0x24a851['threads'][_0x180593]=String(_0x51431e['threads'][_0x180593]);}if(_0x51431e['threadsV2']){if(!Array['isArray'](_0x51431e['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');for(_0x24a851['threadsV2']=[],_0x180593=0x0;_0x180593<_0x51431e['threadsV2']['length'];++_0x180593){if('object'!=typeof _0x51431e['threadsV2'][_0x180593])throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x24a851['threadsV2'][_0x180593]=_0xdb1853['CommentsThreadDescriptor']['fromObject'](_0x51431e['threadsV2'][_0x180593]);}}return _0x24a851;},_0x30acb4['toObject']=function(_0x208681,_0x38efc8){_0x38efc8||(_0x38efc8={});var _0x2b9ad1={};if((_0x38efc8['arrays']||_0x38efc8['defaults'])&&(_0x2b9ad1['threads']=[],_0x2b9ad1['threadsV2']=[]),_0x208681['threads']&&_0x208681['threads']['length']){_0x2b9ad1['threads']=[];for(var _0x2f68de=0x0;_0x2f68de<_0x208681['threads']['length'];++_0x2f68de)_0x2b9ad1['threads'][_0x2f68de]=_0x208681['threads'][_0x2f68de];}if(_0x208681['threadsV2']&&_0x208681['threadsV2']['length']){for(_0x2b9ad1['threadsV2']=[],_0x2f68de=0x0;_0x2f68de<_0x208681['threadsV2']['length'];++_0x2f68de)_0x2b9ad1['threadsV2'][_0x2f68de]=_0xdb1853['CommentsThreadDescriptor']['toObject'](_0x208681['threadsV2'][_0x2f68de],_0x38efc8);}return _0x2b9ad1;},_0x30acb4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x30acb4['getTypeUrl']=function(_0x164c1d){return void 0x0===_0x164c1d&&(_0x164c1d='type.googleapis.com'),_0x164c1d+'/CommentsV2GetDocumentThreadsResponse';},_0x30acb4;}()),_0xdb1853['CommentsV2GetCommentThreadResponse']=(function(){function _0x25dc6e(_0xb0f7b){if(this['comments']=[],this['commentsV2']=[],_0xb0f7b){for(var _0x313cc3=Object['keys'](_0xb0f7b),_0x4326ab=0x0;_0x4326ab<_0x313cc3['length'];++_0x4326ab)null!=_0xb0f7b[_0x313cc3[_0x4326ab]]&&(this[_0x313cc3[_0x4326ab]]=_0xb0f7b[_0x313cc3[_0x4326ab]]);}}return _0x25dc6e['prototype']['commentThreadId']='',_0x25dc6e['prototype']['comments']=_0x32c136['emptyArray'],_0x25dc6e['prototype']['commentsV2']=_0x32c136['emptyArray'],_0x25dc6e['prototype']['resolvedAt']='',_0x25dc6e['prototype']['resolvedBy']='',_0x25dc6e['prototype']['context']='',_0x25dc6e['prototype']['createdAt']='',_0x25dc6e['prototype']['deletedAt']='',_0x25dc6e['prototype']['attributes']='',_0x25dc6e['prototype']['unlinkedAt']='',_0x25dc6e['create']=function(_0x3bf510){return new _0x25dc6e(_0x3bf510);},_0x25dc6e['encode']=function(_0x363c14,_0x3c0c2c){if(_0x3c0c2c||(_0x3c0c2c=_0x320e1c['create']()),null!=_0x363c14['commentThreadId']&&Object['hasOwnProperty']['call'](_0x363c14,'commentThreadId')&&_0x3c0c2c['uint32'](0xa)['string'](_0x363c14['commentThreadId']),null!=_0x363c14['comments']&&_0x363c14['comments']['length']){for(var _0x2093ab=0x0;_0x2093ab<_0x363c14['comments']['length'];++_0x2093ab)_0x3c0c2c['uint32'](0x12)['string'](_0x363c14['comments'][_0x2093ab]);}if(null!=_0x363c14['commentsV2']&&_0x363c14['commentsV2']['length']){for(_0x2093ab=0x0;_0x2093ab<_0x363c14['commentsV2']['length'];++_0x2093ab)_0xdb1853['CommentDescriptor']['encode'](_0x363c14['commentsV2'][_0x2093ab],_0x3c0c2c['uint32'](0x1a)['fork']())['ldelim']();}return null!=_0x363c14['resolvedAt']&&Object['hasOwnProperty']['call'](_0x363c14,'resolvedAt')&&_0x3c0c2c['uint32'](0x22)['string'](_0x363c14['resolvedAt']),null!=_0x363c14['resolvedBy']&&Object['hasOwnProperty']['call'](_0x363c14,'resolvedBy')&&_0x3c0c2c['uint32'](0x2a)['string'](_0x363c14['resolvedBy']),null!=_0x363c14['context']&&Object['hasOwnProperty']['call'](_0x363c14,'context')&&_0x3c0c2c['uint32'](0x32)['string'](_0x363c14['context']),null!=_0x363c14['createdAt']&&Object['hasOwnProperty']['call'](_0x363c14,'createdAt')&&_0x3c0c2c['uint32'](0x3a)['string'](_0x363c14['createdAt']),null!=_0x363c14['deletedAt']&&Object['hasOwnProperty']['call'](_0x363c14,'deletedAt')&&_0x3c0c2c['uint32'](0x42)['string'](_0x363c14['deletedAt']),null!=_0x363c14['attributes']&&Object['hasOwnProperty']['call'](_0x363c14,'attributes')&&_0x3c0c2c['uint32'](0x4a)['string'](_0x363c14['attributes']),null!=_0x363c14['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x363c14,'unlinkedAt')&&_0x3c0c2c['uint32'](0x52)['string'](_0x363c14['unlinkedAt']),_0x3c0c2c;},_0x25dc6e['encodeDelimited']=function(_0x5be6dd,_0x5046b4){return this['encode'](_0x5be6dd,_0x5046b4)['ldelim']();},_0x25dc6e['decode']=function(_0x105c9c,_0x3504ba,_0x825e22){_0x105c9c instanceof _0x254bdb||(_0x105c9c=_0x254bdb['create'](_0x105c9c));for(var _0x5f58d7=void 0x0===_0x3504ba?_0x105c9c['len']:_0x105c9c['pos']+_0x3504ba,_0x12052c=new _0xdb1853['CommentsV2GetCommentThreadResponse']();_0x105c9c['pos']<_0x5f58d7;){var _0x169d21=_0x105c9c['uint32']();if(_0x169d21===_0x825e22)break;switch(_0x169d21>>>0x3){case 0x1:_0x12052c['commentThreadId']=_0x105c9c['string']();break;case 0x2:_0x12052c['comments']&&_0x12052c['comments']['length']||(_0x12052c['comments']=[]),_0x12052c['comments']['push'](_0x105c9c['string']());break;case 0x3:_0x12052c['commentsV2']&&_0x12052c['commentsV2']['length']||(_0x12052c['commentsV2']=[]),_0x12052c['commentsV2']['push'](_0xdb1853['CommentDescriptor']['decode'](_0x105c9c,_0x105c9c['uint32']()));break;case 0x4:_0x12052c['resolvedAt']=_0x105c9c['string']();break;case 0x5:_0x12052c['resolvedBy']=_0x105c9c['string']();break;case 0x6:_0x12052c['context']=_0x105c9c['string']();break;case 0x7:_0x12052c['createdAt']=_0x105c9c['string']();break;case 0x8:_0x12052c['deletedAt']=_0x105c9c['string']();break;case 0x9:_0x12052c['attributes']=_0x105c9c['string']();break;case 0xa:_0x12052c['unlinkedAt']=_0x105c9c['string']();break;default:_0x105c9c['skipType'](0x7&_0x169d21);}}return _0x12052c;},_0x25dc6e['decodeDelimited']=function(_0xcfda63){return _0xcfda63 instanceof _0x254bdb||(_0xcfda63=new _0x254bdb(_0xcfda63)),this['decode'](_0xcfda63,_0xcfda63['uint32']());},_0x25dc6e['verify']=function(_0x4bc2cd){if('object'!=typeof _0x4bc2cd||null===_0x4bc2cd)return'object\x20expected';if(null!=_0x4bc2cd['commentThreadId']&&_0x4bc2cd['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x4bc2cd['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x4bc2cd['comments']&&_0x4bc2cd['hasOwnProperty']('comments')){if(!Array['isArray'](_0x4bc2cd['comments']))return'comments:\x20array\x20expected';for(var _0xddc134=0x0;_0xddc134<_0x4bc2cd['comments']['length'];++_0xddc134)if(!_0x32c136['isString'](_0x4bc2cd['comments'][_0xddc134]))return'comments:\x20string[]\x20expected';}if(null!=_0x4bc2cd['commentsV2']&&_0x4bc2cd['hasOwnProperty']('commentsV2')){if(!Array['isArray'](_0x4bc2cd['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0xddc134=0x0;_0xddc134<_0x4bc2cd['commentsV2']['length'];++_0xddc134){var _0x2f78a4=_0xdb1853['CommentDescriptor']['verify'](_0x4bc2cd['commentsV2'][_0xddc134]);if(_0x2f78a4)return'commentsV2.'+_0x2f78a4;}}return null!=_0x4bc2cd['resolvedAt']&&_0x4bc2cd['hasOwnProperty']('resolvedAt')&&!_0x32c136['isString'](_0x4bc2cd['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x4bc2cd['resolvedBy']&&_0x4bc2cd['hasOwnProperty']('resolvedBy')&&!_0x32c136['isString'](_0x4bc2cd['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x4bc2cd['context']&&_0x4bc2cd['hasOwnProperty']('context')&&!_0x32c136['isString'](_0x4bc2cd['context'])?'context:\x20string\x20expected':null!=_0x4bc2cd['createdAt']&&_0x4bc2cd['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0x4bc2cd['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x4bc2cd['deletedAt']&&_0x4bc2cd['hasOwnProperty']('deletedAt')&&!_0x32c136['isString'](_0x4bc2cd['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x4bc2cd['attributes']&&_0x4bc2cd['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x4bc2cd['attributes'])?'attributes:\x20string\x20expected':null!=_0x4bc2cd['unlinkedAt']&&_0x4bc2cd['hasOwnProperty']('unlinkedAt')&&!_0x32c136['isString'](_0x4bc2cd['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x25dc6e['fromObject']=function(_0x320457){if(_0x320457 instanceof _0xdb1853['CommentsV2GetCommentThreadResponse'])return _0x320457;var _0x4b47a6=new _0xdb1853['CommentsV2GetCommentThreadResponse']();if(null!=_0x320457['commentThreadId']&&(_0x4b47a6['commentThreadId']=String(_0x320457['commentThreadId'])),_0x320457['comments']){if(!Array['isArray'](_0x320457['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x4b47a6['comments']=[];for(var _0x5f5a11=0x0;_0x5f5a11<_0x320457['comments']['length'];++_0x5f5a11)_0x4b47a6['comments'][_0x5f5a11]=String(_0x320457['comments'][_0x5f5a11]);}if(_0x320457['commentsV2']){if(!Array['isArray'](_0x320457['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');for(_0x4b47a6['commentsV2']=[],_0x5f5a11=0x0;_0x5f5a11<_0x320457['commentsV2']['length'];++_0x5f5a11){if('object'!=typeof _0x320457['commentsV2'][_0x5f5a11])throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x4b47a6['commentsV2'][_0x5f5a11]=_0xdb1853['CommentDescriptor']['fromObject'](_0x320457['commentsV2'][_0x5f5a11]);}}return null!=_0x320457['resolvedAt']&&(_0x4b47a6['resolvedAt']=String(_0x320457['resolvedAt'])),null!=_0x320457['resolvedBy']&&(_0x4b47a6['resolvedBy']=String(_0x320457['resolvedBy'])),null!=_0x320457['context']&&(_0x4b47a6['context']=String(_0x320457['context'])),null!=_0x320457['createdAt']&&(_0x4b47a6['createdAt']=String(_0x320457['createdAt'])),null!=_0x320457['deletedAt']&&(_0x4b47a6['deletedAt']=String(_0x320457['deletedAt'])),null!=_0x320457['attributes']&&(_0x4b47a6['attributes']=String(_0x320457['attributes'])),null!=_0x320457['unlinkedAt']&&(_0x4b47a6['unlinkedAt']=String(_0x320457['unlinkedAt'])),_0x4b47a6;},_0x25dc6e['toObject']=function(_0x3a2b83,_0x561470){_0x561470||(_0x561470={});var _0x1afa12={};if((_0x561470['arrays']||_0x561470['defaults'])&&(_0x1afa12['comments']=[],_0x1afa12['commentsV2']=[]),_0x561470['defaults']&&(_0x1afa12['commentThreadId']='',_0x1afa12['resolvedAt']='',_0x1afa12['resolvedBy']='',_0x1afa12['context']='',_0x1afa12['createdAt']='',_0x1afa12['deletedAt']='',_0x1afa12['attributes']='',_0x1afa12['unlinkedAt']=''),null!=_0x3a2b83['commentThreadId']&&_0x3a2b83['hasOwnProperty']('commentThreadId')&&(_0x1afa12['commentThreadId']=_0x3a2b83['commentThreadId']),_0x3a2b83['comments']&&_0x3a2b83['comments']['length']){_0x1afa12['comments']=[];for(var _0x306412=0x0;_0x306412<_0x3a2b83['comments']['length'];++_0x306412)_0x1afa12['comments'][_0x306412]=_0x3a2b83['comments'][_0x306412];}if(_0x3a2b83['commentsV2']&&_0x3a2b83['commentsV2']['length']){for(_0x1afa12['commentsV2']=[],_0x306412=0x0;_0x306412<_0x3a2b83['commentsV2']['length'];++_0x306412)_0x1afa12['commentsV2'][_0x306412]=_0xdb1853['CommentDescriptor']['toObject'](_0x3a2b83['commentsV2'][_0x306412],_0x561470);}return null!=_0x3a2b83['resolvedAt']&&_0x3a2b83['hasOwnProperty']('resolvedAt')&&(_0x1afa12['resolvedAt']=_0x3a2b83['resolvedAt']),null!=_0x3a2b83['resolvedBy']&&_0x3a2b83['hasOwnProperty']('resolvedBy')&&(_0x1afa12['resolvedBy']=_0x3a2b83['resolvedBy']),null!=_0x3a2b83['context']&&_0x3a2b83['hasOwnProperty']('context')&&(_0x1afa12['context']=_0x3a2b83['context']),null!=_0x3a2b83['createdAt']&&_0x3a2b83['hasOwnProperty']('createdAt')&&(_0x1afa12['createdAt']=_0x3a2b83['createdAt']),null!=_0x3a2b83['deletedAt']&&_0x3a2b83['hasOwnProperty']('deletedAt')&&(_0x1afa12['deletedAt']=_0x3a2b83['deletedAt']),null!=_0x3a2b83['attributes']&&_0x3a2b83['hasOwnProperty']('attributes')&&(_0x1afa12['attributes']=_0x3a2b83['attributes']),null!=_0x3a2b83['unlinkedAt']&&_0x3a2b83['hasOwnProperty']('unlinkedAt')&&(_0x1afa12['unlinkedAt']=_0x3a2b83['unlinkedAt']),_0x1afa12;},_0x25dc6e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x25dc6e['getTypeUrl']=function(_0x30ce1){return void 0x0===_0x30ce1&&(_0x30ce1='type.googleapis.com'),_0x30ce1+'/CommentsV2GetCommentThreadResponse';},_0x25dc6e;}()),_0xdb1853['CommentsV2ConnectResponse']=(function(){function _0x50585a(_0x4afe4e){if(this['threads']=[],this['threadsV2']=[],_0x4afe4e){for(var _0x30b9ce=Object['keys'](_0x4afe4e),_0x45a8c1=0x0;_0x45a8c1<_0x30b9ce['length'];++_0x45a8c1)null!=_0x4afe4e[_0x30b9ce[_0x45a8c1]]&&(this[_0x30b9ce[_0x45a8c1]]=_0x4afe4e[_0x30b9ce[_0x45a8c1]]);}}return _0x50585a['prototype']['channel']='',_0x50585a['prototype']['threads']=_0x32c136['emptyArray'],_0x50585a['prototype']['threadsV2']=_0x32c136['emptyArray'],_0x50585a['create']=function(_0x330f4a){return new _0x50585a(_0x330f4a);},_0x50585a['encode']=function(_0x2c207b,_0x1ea355){if(_0x1ea355||(_0x1ea355=_0x320e1c['create']()),null!=_0x2c207b['channel']&&Object['hasOwnProperty']['call'](_0x2c207b,'channel')&&_0x1ea355['uint32'](0xa)['string'](_0x2c207b['channel']),null!=_0x2c207b['threads']&&_0x2c207b['threads']['length']){for(var _0x3914f9=0x0;_0x3914f9<_0x2c207b['threads']['length'];++_0x3914f9)_0x1ea355['uint32'](0x12)['string'](_0x2c207b['threads'][_0x3914f9]);}if(null!=_0x2c207b['threadsV2']&&_0x2c207b['threadsV2']['length']){for(_0x3914f9=0x0;_0x3914f9<_0x2c207b['threadsV2']['length'];++_0x3914f9)_0xdb1853['CommentsThreadDescriptor']['encode'](_0x2c207b['threadsV2'][_0x3914f9],_0x1ea355['uint32'](0x1a)['fork']())['ldelim']();}return _0x1ea355;},_0x50585a['encodeDelimited']=function(_0x23280a,_0x54698f){return this['encode'](_0x23280a,_0x54698f)['ldelim']();},_0x50585a['decode']=function(_0x3c9b66,_0x3c42a1,_0x10b59){_0x3c9b66 instanceof _0x254bdb||(_0x3c9b66=_0x254bdb['create'](_0x3c9b66));for(var _0x1d06d4=void 0x0===_0x3c42a1?_0x3c9b66['len']:_0x3c9b66['pos']+_0x3c42a1,_0x23ef4d=new _0xdb1853['CommentsV2ConnectResponse']();_0x3c9b66['pos']<_0x1d06d4;){var _0x52961b=_0x3c9b66['uint32']();if(_0x52961b===_0x10b59)break;switch(_0x52961b>>>0x3){case 0x1:_0x23ef4d['channel']=_0x3c9b66['string']();break;case 0x2:_0x23ef4d['threads']&&_0x23ef4d['threads']['length']||(_0x23ef4d['threads']=[]),_0x23ef4d['threads']['push'](_0x3c9b66['string']());break;case 0x3:_0x23ef4d['threadsV2']&&_0x23ef4d['threadsV2']['length']||(_0x23ef4d['threadsV2']=[]),_0x23ef4d['threadsV2']['push'](_0xdb1853['CommentsThreadDescriptor']['decode'](_0x3c9b66,_0x3c9b66['uint32']()));break;default:_0x3c9b66['skipType'](0x7&_0x52961b);}}return _0x23ef4d;},_0x50585a['decodeDelimited']=function(_0x79bd34){return _0x79bd34 instanceof _0x254bdb||(_0x79bd34=new _0x254bdb(_0x79bd34)),this['decode'](_0x79bd34,_0x79bd34['uint32']());},_0x50585a['verify']=function(_0x8b3cb){if('object'!=typeof _0x8b3cb||null===_0x8b3cb)return'object\x20expected';if(null!=_0x8b3cb['channel']&&_0x8b3cb['hasOwnProperty']('channel')&&!_0x32c136['isString'](_0x8b3cb['channel']))return'channel:\x20string\x20expected';if(null!=_0x8b3cb['threads']&&_0x8b3cb['hasOwnProperty']('threads')){if(!Array['isArray'](_0x8b3cb['threads']))return'threads:\x20array\x20expected';for(var _0x110243=0x0;_0x110243<_0x8b3cb['threads']['length'];++_0x110243)if(!_0x32c136['isString'](_0x8b3cb['threads'][_0x110243]))return'threads:\x20string[]\x20expected';}if(null!=_0x8b3cb['threadsV2']&&_0x8b3cb['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x8b3cb['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x110243=0x0;_0x110243<_0x8b3cb['threadsV2']['length'];++_0x110243){var _0x32472e=_0xdb1853['CommentsThreadDescriptor']['verify'](_0x8b3cb['threadsV2'][_0x110243]);if(_0x32472e)return'threadsV2.'+_0x32472e;}}return null;},_0x50585a['fromObject']=function(_0x1de4ea){if(_0x1de4ea instanceof _0xdb1853['CommentsV2ConnectResponse'])return _0x1de4ea;var _0x450910=new _0xdb1853['CommentsV2ConnectResponse']();if(null!=_0x1de4ea['channel']&&(_0x450910['channel']=String(_0x1de4ea['channel'])),_0x1de4ea['threads']){if(!Array['isArray'](_0x1de4ea['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x450910['threads']=[];for(var _0xebd4e8=0x0;_0xebd4e8<_0x1de4ea['threads']['length'];++_0xebd4e8)_0x450910['threads'][_0xebd4e8]=String(_0x1de4ea['threads'][_0xebd4e8]);}if(_0x1de4ea['threadsV2']){if(!Array['isArray'](_0x1de4ea['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');for(_0x450910['threadsV2']=[],_0xebd4e8=0x0;_0xebd4e8<_0x1de4ea['threadsV2']['length'];++_0xebd4e8){if('object'!=typeof _0x1de4ea['threadsV2'][_0xebd4e8])throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x450910['threadsV2'][_0xebd4e8]=_0xdb1853['CommentsThreadDescriptor']['fromObject'](_0x1de4ea['threadsV2'][_0xebd4e8]);}}return _0x450910;},_0x50585a['toObject']=function(_0x2c881d,_0x1c554a){_0x1c554a||(_0x1c554a={});var _0x6121f5={};if((_0x1c554a['arrays']||_0x1c554a['defaults'])&&(_0x6121f5['threads']=[],_0x6121f5['threadsV2']=[]),_0x1c554a['defaults']&&(_0x6121f5['channel']=''),null!=_0x2c881d['channel']&&_0x2c881d['hasOwnProperty']('channel')&&(_0x6121f5['channel']=_0x2c881d['channel']),_0x2c881d['threads']&&_0x2c881d['threads']['length']){_0x6121f5['threads']=[];for(var _0x6efb43=0x0;_0x6efb43<_0x2c881d['threads']['length'];++_0x6efb43)_0x6121f5['threads'][_0x6efb43]=_0x2c881d['threads'][_0x6efb43];}if(_0x2c881d['threadsV2']&&_0x2c881d['threadsV2']['length']){for(_0x6121f5['threadsV2']=[],_0x6efb43=0x0;_0x6efb43<_0x2c881d['threadsV2']['length'];++_0x6efb43)_0x6121f5['threadsV2'][_0x6efb43]=_0xdb1853['CommentsThreadDescriptor']['toObject'](_0x2c881d['threadsV2'][_0x6efb43],_0x1c554a);}return _0x6121f5;},_0x50585a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x50585a['getTypeUrl']=function(_0x25468d){return void 0x0===_0x25468d&&(_0x25468d='type.googleapis.com'),_0x25468d+'/CommentsV2ConnectResponse';},_0x50585a;}()),_0xdb1853['CommentsV2AddCommentResponse']=(function(){function _0x1140de(_0x436e61){if(_0x436e61){for(var _0x2dd083=Object['keys'](_0x436e61),_0x1475bd=0x0;_0x1475bd<_0x2dd083['length'];++_0x1475bd)null!=_0x436e61[_0x2dd083[_0x1475bd]]&&(this[_0x2dd083[_0x1475bd]]=_0x436e61[_0x2dd083[_0x1475bd]]);}}return _0x1140de['prototype']['commentThreadId']='',_0x1140de['prototype']['commentId']='',_0x1140de['prototype']['createdAt']='',_0x1140de['create']=function(_0x3b6db3){return new _0x1140de(_0x3b6db3);},_0x1140de['encode']=function(_0x82ca0e,_0x30a03c){return _0x30a03c||(_0x30a03c=_0x320e1c['create']()),null!=_0x82ca0e['commentThreadId']&&Object['hasOwnProperty']['call'](_0x82ca0e,'commentThreadId')&&_0x30a03c['uint32'](0xa)['string'](_0x82ca0e['commentThreadId']),null!=_0x82ca0e['commentId']&&Object['hasOwnProperty']['call'](_0x82ca0e,'commentId')&&_0x30a03c['uint32'](0x12)['string'](_0x82ca0e['commentId']),null!=_0x82ca0e['createdAt']&&Object['hasOwnProperty']['call'](_0x82ca0e,'createdAt')&&_0x30a03c['uint32'](0x1a)['string'](_0x82ca0e['createdAt']),_0x30a03c;},_0x1140de['encodeDelimited']=function(_0x1af354,_0x341b5c){return this['encode'](_0x1af354,_0x341b5c)['ldelim']();},_0x1140de['decode']=function(_0x2bf416,_0x295011,_0x1bc107){_0x2bf416 instanceof _0x254bdb||(_0x2bf416=_0x254bdb['create'](_0x2bf416));for(var _0x455db7=void 0x0===_0x295011?_0x2bf416['len']:_0x2bf416['pos']+_0x295011,_0x1aa66d=new _0xdb1853['CommentsV2AddCommentResponse']();_0x2bf416['pos']<_0x455db7;){var _0x2c10f2=_0x2bf416['uint32']();if(_0x2c10f2===_0x1bc107)break;switch(_0x2c10f2>>>0x3){case 0x1:_0x1aa66d['commentThreadId']=_0x2bf416['string']();break;case 0x2:_0x1aa66d['commentId']=_0x2bf416['string']();break;case 0x3:_0x1aa66d['createdAt']=_0x2bf416['string']();break;default:_0x2bf416['skipType'](0x7&_0x2c10f2);}}return _0x1aa66d;},_0x1140de['decodeDelimited']=function(_0x3cbb0d){return _0x3cbb0d instanceof _0x254bdb||(_0x3cbb0d=new _0x254bdb(_0x3cbb0d)),this['decode'](_0x3cbb0d,_0x3cbb0d['uint32']());},_0x1140de['verify']=function(_0x61fd5f){return'object'!=typeof _0x61fd5f||null===_0x61fd5f?'object\x20expected':null!=_0x61fd5f['commentThreadId']&&_0x61fd5f['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x61fd5f['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x61fd5f['commentId']&&_0x61fd5f['hasOwnProperty']('commentId')&&!_0x32c136['isString'](_0x61fd5f['commentId'])?'commentId:\x20string\x20expected':null!=_0x61fd5f['createdAt']&&_0x61fd5f['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0x61fd5f['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x1140de['fromObject']=function(_0x32ab4d){if(_0x32ab4d instanceof _0xdb1853['CommentsV2AddCommentResponse'])return _0x32ab4d;var _0x4c5912=new _0xdb1853['CommentsV2AddCommentResponse']();return null!=_0x32ab4d['commentThreadId']&&(_0x4c5912['commentThreadId']=String(_0x32ab4d['commentThreadId'])),null!=_0x32ab4d['commentId']&&(_0x4c5912['commentId']=String(_0x32ab4d['commentId'])),null!=_0x32ab4d['createdAt']&&(_0x4c5912['createdAt']=String(_0x32ab4d['createdAt'])),_0x4c5912;},_0x1140de['toObject']=function(_0x3ee557,_0x1d7110){_0x1d7110||(_0x1d7110={});var _0xe1d302={};return _0x1d7110['defaults']&&(_0xe1d302['commentThreadId']='',_0xe1d302['commentId']='',_0xe1d302['createdAt']=''),null!=_0x3ee557['commentThreadId']&&_0x3ee557['hasOwnProperty']('commentThreadId')&&(_0xe1d302['commentThreadId']=_0x3ee557['commentThreadId']),null!=_0x3ee557['commentId']&&_0x3ee557['hasOwnProperty']('commentId')&&(_0xe1d302['commentId']=_0x3ee557['commentId']),null!=_0x3ee557['createdAt']&&_0x3ee557['hasOwnProperty']('createdAt')&&(_0xe1d302['createdAt']=_0x3ee557['createdAt']),_0xe1d302;},_0x1140de['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1140de['getTypeUrl']=function(_0x1eddcb){return void 0x0===_0x1eddcb&&(_0x1eddcb='type.googleapis.com'),_0x1eddcb+'/CommentsV2AddCommentResponse';},_0x1140de;}()),_0xdb1853['CommentsV2ResolveCommentThreadResponse']=(function(){function _0x55b9ef(_0x259ef8){if(_0x259ef8){for(var _0x116662=Object['keys'](_0x259ef8),_0x5f1b4c=0x0;_0x5f1b4c<_0x116662['length'];++_0x5f1b4c)null!=_0x259ef8[_0x116662[_0x5f1b4c]]&&(this[_0x116662[_0x5f1b4c]]=_0x259ef8[_0x116662[_0x5f1b4c]]);}}return _0x55b9ef['prototype']['commentThreadId']='',_0x55b9ef['prototype']['documentId']='',_0x55b9ef['prototype']['resolvedAt']='',_0x55b9ef['prototype']['resolvedBy']='',_0x55b9ef['create']=function(_0x34b2e9){return new _0x55b9ef(_0x34b2e9);},_0x55b9ef['encode']=function(_0x51684a,_0x165ebf){return _0x165ebf||(_0x165ebf=_0x320e1c['create']()),null!=_0x51684a['commentThreadId']&&Object['hasOwnProperty']['call'](_0x51684a,'commentThreadId')&&_0x165ebf['uint32'](0xa)['string'](_0x51684a['commentThreadId']),null!=_0x51684a['documentId']&&Object['hasOwnProperty']['call'](_0x51684a,'documentId')&&_0x165ebf['uint32'](0x12)['string'](_0x51684a['documentId']),null!=_0x51684a['resolvedAt']&&Object['hasOwnProperty']['call'](_0x51684a,'resolvedAt')&&_0x165ebf['uint32'](0x1a)['string'](_0x51684a['resolvedAt']),null!=_0x51684a['resolvedBy']&&Object['hasOwnProperty']['call'](_0x51684a,'resolvedBy')&&_0x165ebf['uint32'](0x22)['string'](_0x51684a['resolvedBy']),_0x165ebf;},_0x55b9ef['encodeDelimited']=function(_0x5f36c8,_0x97b90b){return this['encode'](_0x5f36c8,_0x97b90b)['ldelim']();},_0x55b9ef['decode']=function(_0x5919bd,_0x46183b,_0x310b9d){_0x5919bd instanceof _0x254bdb||(_0x5919bd=_0x254bdb['create'](_0x5919bd));for(var _0x180045=void 0x0===_0x46183b?_0x5919bd['len']:_0x5919bd['pos']+_0x46183b,_0x4a7d8e=new _0xdb1853['CommentsV2ResolveCommentThreadResponse']();_0x5919bd['pos']<_0x180045;){var _0x5ea4d8=_0x5919bd['uint32']();if(_0x5ea4d8===_0x310b9d)break;switch(_0x5ea4d8>>>0x3){case 0x1:_0x4a7d8e['commentThreadId']=_0x5919bd['string']();break;case 0x2:_0x4a7d8e['documentId']=_0x5919bd['string']();break;case 0x3:_0x4a7d8e['resolvedAt']=_0x5919bd['string']();break;case 0x4:_0x4a7d8e['resolvedBy']=_0x5919bd['string']();break;default:_0x5919bd['skipType'](0x7&_0x5ea4d8);}}return _0x4a7d8e;},_0x55b9ef['decodeDelimited']=function(_0x5984b1){return _0x5984b1 instanceof _0x254bdb||(_0x5984b1=new _0x254bdb(_0x5984b1)),this['decode'](_0x5984b1,_0x5984b1['uint32']());},_0x55b9ef['verify']=function(_0x5b3b5b){return'object'!=typeof _0x5b3b5b||null===_0x5b3b5b?'object\x20expected':null!=_0x5b3b5b['commentThreadId']&&_0x5b3b5b['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x5b3b5b['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x5b3b5b['documentId']&&_0x5b3b5b['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x5b3b5b['documentId'])?'documentId:\x20string\x20expected':null!=_0x5b3b5b['resolvedAt']&&_0x5b3b5b['hasOwnProperty']('resolvedAt')&&!_0x32c136['isString'](_0x5b3b5b['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x5b3b5b['resolvedBy']&&_0x5b3b5b['hasOwnProperty']('resolvedBy')&&!_0x32c136['isString'](_0x5b3b5b['resolvedBy'])?'resolvedBy:\x20string\x20expected':null;},_0x55b9ef['fromObject']=function(_0x30931f){if(_0x30931f instanceof _0xdb1853['CommentsV2ResolveCommentThreadResponse'])return _0x30931f;var _0x575bd1=new _0xdb1853['CommentsV2ResolveCommentThreadResponse']();return null!=_0x30931f['commentThreadId']&&(_0x575bd1['commentThreadId']=String(_0x30931f['commentThreadId'])),null!=_0x30931f['documentId']&&(_0x575bd1['documentId']=String(_0x30931f['documentId'])),null!=_0x30931f['resolvedAt']&&(_0x575bd1['resolvedAt']=String(_0x30931f['resolvedAt'])),null!=_0x30931f['resolvedBy']&&(_0x575bd1['resolvedBy']=String(_0x30931f['resolvedBy'])),_0x575bd1;},_0x55b9ef['toObject']=function(_0x4667c3,_0x287500){_0x287500||(_0x287500={});var _0x386066={};return _0x287500['defaults']&&(_0x386066['commentThreadId']='',_0x386066['documentId']='',_0x386066['resolvedAt']='',_0x386066['resolvedBy']=''),null!=_0x4667c3['commentThreadId']&&_0x4667c3['hasOwnProperty']('commentThreadId')&&(_0x386066['commentThreadId']=_0x4667c3['commentThreadId']),null!=_0x4667c3['documentId']&&_0x4667c3['hasOwnProperty']('documentId')&&(_0x386066['documentId']=_0x4667c3['documentId']),null!=_0x4667c3['resolvedAt']&&_0x4667c3['hasOwnProperty']('resolvedAt')&&(_0x386066['resolvedAt']=_0x4667c3['resolvedAt']),null!=_0x4667c3['resolvedBy']&&_0x4667c3['hasOwnProperty']('resolvedBy')&&(_0x386066['resolvedBy']=_0x4667c3['resolvedBy']),_0x386066;},_0x55b9ef['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x55b9ef['getTypeUrl']=function(_0x22d0e7){return void 0x0===_0x22d0e7&&(_0x22d0e7='type.googleapis.com'),_0x22d0e7+'/CommentsV2ResolveCommentThreadResponse';},_0x55b9ef;}()),_0xdb1853['CommentsV2AddCommentThreadResponse']=(function(){function _0x17bc3f(_0x9e44f){if(this['comments']=[],_0x9e44f){for(var _0x45aba7=Object['keys'](_0x9e44f),_0x29b6d7=0x0;_0x29b6d7<_0x45aba7['length'];++_0x29b6d7)null!=_0x9e44f[_0x45aba7[_0x29b6d7]]&&(this[_0x45aba7[_0x29b6d7]]=_0x9e44f[_0x45aba7[_0x29b6d7]]);}}return _0x17bc3f['prototype']['commentThreadId']='',_0x17bc3f['prototype']['createdAt']='',_0x17bc3f['prototype']['comments']=_0x32c136['emptyArray'],_0x17bc3f['create']=function(_0x146c60){return new _0x17bc3f(_0x146c60);},_0x17bc3f['encode']=function(_0x1176c0,_0x3d0fa3){if(_0x3d0fa3||(_0x3d0fa3=_0x320e1c['create']()),null!=_0x1176c0['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1176c0,'commentThreadId')&&_0x3d0fa3['uint32'](0xa)['string'](_0x1176c0['commentThreadId']),null!=_0x1176c0['createdAt']&&Object['hasOwnProperty']['call'](_0x1176c0,'createdAt')&&_0x3d0fa3['uint32'](0x12)['string'](_0x1176c0['createdAt']),null!=_0x1176c0['comments']&&_0x1176c0['comments']['length']){for(var _0x49d4a3=0x0;_0x49d4a3<_0x1176c0['comments']['length'];++_0x49d4a3)_0xdb1853['CommentThreadAddedCommentDescriptor']['encode'](_0x1176c0['comments'][_0x49d4a3],_0x3d0fa3['uint32'](0x1a)['fork']())['ldelim']();}return _0x3d0fa3;},_0x17bc3f['encodeDelimited']=function(_0x48da35,_0x12efdd){return this['encode'](_0x48da35,_0x12efdd)['ldelim']();},_0x17bc3f['decode']=function(_0x4cffa0,_0x150271,_0xb89c77){_0x4cffa0 instanceof _0x254bdb||(_0x4cffa0=_0x254bdb['create'](_0x4cffa0));for(var _0x4f4dde=void 0x0===_0x150271?_0x4cffa0['len']:_0x4cffa0['pos']+_0x150271,_0x10883c=new _0xdb1853['CommentsV2AddCommentThreadResponse']();_0x4cffa0['pos']<_0x4f4dde;){var _0x5f439a=_0x4cffa0['uint32']();if(_0x5f439a===_0xb89c77)break;switch(_0x5f439a>>>0x3){case 0x1:_0x10883c['commentThreadId']=_0x4cffa0['string']();break;case 0x2:_0x10883c['createdAt']=_0x4cffa0['string']();break;case 0x3:_0x10883c['comments']&&_0x10883c['comments']['length']||(_0x10883c['comments']=[]),_0x10883c['comments']['push'](_0xdb1853['CommentThreadAddedCommentDescriptor']['decode'](_0x4cffa0,_0x4cffa0['uint32']()));break;default:_0x4cffa0['skipType'](0x7&_0x5f439a);}}return _0x10883c;},_0x17bc3f['decodeDelimited']=function(_0x135b9d){return _0x135b9d instanceof _0x254bdb||(_0x135b9d=new _0x254bdb(_0x135b9d)),this['decode'](_0x135b9d,_0x135b9d['uint32']());},_0x17bc3f['verify']=function(_0xe58af4){if('object'!=typeof _0xe58af4||null===_0xe58af4)return'object\x20expected';if(null!=_0xe58af4['commentThreadId']&&_0xe58af4['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0xe58af4['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0xe58af4['createdAt']&&_0xe58af4['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0xe58af4['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0xe58af4['comments']&&_0xe58af4['hasOwnProperty']('comments')){if(!Array['isArray'](_0xe58af4['comments']))return'comments:\x20array\x20expected';for(var _0x4185dc=0x0;_0x4185dc<_0xe58af4['comments']['length'];++_0x4185dc){var _0x4c2bd1=_0xdb1853['CommentThreadAddedCommentDescriptor']['verify'](_0xe58af4['comments'][_0x4185dc]);if(_0x4c2bd1)return'comments.'+_0x4c2bd1;}}return null;},_0x17bc3f['fromObject']=function(_0x31f68c){if(_0x31f68c instanceof _0xdb1853['CommentsV2AddCommentThreadResponse'])return _0x31f68c;var _0x5d4bd1=new _0xdb1853['CommentsV2AddCommentThreadResponse']();if(null!=_0x31f68c['commentThreadId']&&(_0x5d4bd1['commentThreadId']=String(_0x31f68c['commentThreadId'])),null!=_0x31f68c['createdAt']&&(_0x5d4bd1['createdAt']=String(_0x31f68c['createdAt'])),_0x31f68c['comments']){if(!Array['isArray'](_0x31f68c['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x5d4bd1['comments']=[];for(var _0xac1cc9=0x0;_0xac1cc9<_0x31f68c['comments']['length'];++_0xac1cc9){if('object'!=typeof _0x31f68c['comments'][_0xac1cc9])throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x5d4bd1['comments'][_0xac1cc9]=_0xdb1853['CommentThreadAddedCommentDescriptor']['fromObject'](_0x31f68c['comments'][_0xac1cc9]);}}return _0x5d4bd1;},_0x17bc3f['toObject']=function(_0x1995b4,_0x98238b){_0x98238b||(_0x98238b={});var _0x14e362={};if((_0x98238b['arrays']||_0x98238b['defaults'])&&(_0x14e362['comments']=[]),_0x98238b['defaults']&&(_0x14e362['commentThreadId']='',_0x14e362['createdAt']=''),null!=_0x1995b4['commentThreadId']&&_0x1995b4['hasOwnProperty']('commentThreadId')&&(_0x14e362['commentThreadId']=_0x1995b4['commentThreadId']),null!=_0x1995b4['createdAt']&&_0x1995b4['hasOwnProperty']('createdAt')&&(_0x14e362['createdAt']=_0x1995b4['createdAt']),_0x1995b4['comments']&&_0x1995b4['comments']['length']){_0x14e362['comments']=[];for(var _0x5d61e3=0x0;_0x5d61e3<_0x1995b4['comments']['length'];++_0x5d61e3)_0x14e362['comments'][_0x5d61e3]=_0xdb1853['CommentThreadAddedCommentDescriptor']['toObject'](_0x1995b4['comments'][_0x5d61e3],_0x98238b);}return _0x14e362;},_0x17bc3f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x17bc3f['getTypeUrl']=function(_0x2ed214){return void 0x0===_0x2ed214&&(_0x2ed214='type.googleapis.com'),_0x2ed214+'/CommentsV2AddCommentThreadResponse';},_0x17bc3f;}()),_0xdb1853['CommentsV2UpdateCommentMessage']=(function(){function _0x4294ea(_0x2e8afa){if(_0x2e8afa){for(var _0x1880f4=Object['keys'](_0x2e8afa),_0x14002a=0x0;_0x14002a<_0x1880f4['length'];++_0x14002a)null!=_0x2e8afa[_0x1880f4[_0x14002a]]&&(this[_0x1880f4[_0x14002a]]=_0x2e8afa[_0x1880f4[_0x14002a]]);}}return _0x4294ea['prototype']['commentThreadId']='',_0x4294ea['prototype']['commentId']='',_0x4294ea['prototype']['content']='',_0x4294ea['prototype']['documentId']='',_0x4294ea['prototype']['attributes']='',_0x4294ea['prototype']['isAttributesUpdated']=!0x1,_0x4294ea['prototype']['commentThread']=null,_0x4294ea['create']=function(_0x130581){return new _0x4294ea(_0x130581);},_0x4294ea['encode']=function(_0x1bd199,_0x1af7dd){return _0x1af7dd||(_0x1af7dd=_0x320e1c['create']()),null!=_0x1bd199['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1bd199,'commentThreadId')&&_0x1af7dd['uint32'](0xa)['string'](_0x1bd199['commentThreadId']),null!=_0x1bd199['commentId']&&Object['hasOwnProperty']['call'](_0x1bd199,'commentId')&&_0x1af7dd['uint32'](0x12)['string'](_0x1bd199['commentId']),null!=_0x1bd199['content']&&Object['hasOwnProperty']['call'](_0x1bd199,'content')&&_0x1af7dd['uint32'](0x1a)['string'](_0x1bd199['content']),null!=_0x1bd199['documentId']&&Object['hasOwnProperty']['call'](_0x1bd199,'documentId')&&_0x1af7dd['uint32'](0x22)['string'](_0x1bd199['documentId']),null!=_0x1bd199['attributes']&&Object['hasOwnProperty']['call'](_0x1bd199,'attributes')&&_0x1af7dd['uint32'](0x2a)['string'](_0x1bd199['attributes']),null!=_0x1bd199['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x1bd199,'isAttributesUpdated')&&_0x1af7dd['uint32'](0x30)['bool'](_0x1bd199['isAttributesUpdated']),null!=_0x1bd199['commentThread']&&Object['hasOwnProperty']['call'](_0x1bd199,'commentThread')&&_0xdb1853['CommentsThreadDescriptor']['encode'](_0x1bd199['commentThread'],_0x1af7dd['uint32'](0x3a)['fork']())['ldelim'](),_0x1af7dd;},_0x4294ea['encodeDelimited']=function(_0x23f65c,_0x20d19f){return this['encode'](_0x23f65c,_0x20d19f)['ldelim']();},_0x4294ea['decode']=function(_0x43d929,_0xe8d9b0,_0x3bf999){_0x43d929 instanceof _0x254bdb||(_0x43d929=_0x254bdb['create'](_0x43d929));for(var _0x7fadf=void 0x0===_0xe8d9b0?_0x43d929['len']:_0x43d929['pos']+_0xe8d9b0,_0x542609=new _0xdb1853['CommentsV2UpdateCommentMessage']();_0x43d929['pos']<_0x7fadf;){var _0x511a86=_0x43d929['uint32']();if(_0x511a86===_0x3bf999)break;switch(_0x511a86>>>0x3){case 0x1:_0x542609['commentThreadId']=_0x43d929['string']();break;case 0x2:_0x542609['commentId']=_0x43d929['string']();break;case 0x3:_0x542609['content']=_0x43d929['string']();break;case 0x4:_0x542609['documentId']=_0x43d929['string']();break;case 0x5:_0x542609['attributes']=_0x43d929['string']();break;case 0x6:_0x542609['isAttributesUpdated']=_0x43d929['bool']();break;case 0x7:_0x542609['commentThread']=_0xdb1853['CommentsThreadDescriptor']['decode'](_0x43d929,_0x43d929['uint32']());break;default:_0x43d929['skipType'](0x7&_0x511a86);}}return _0x542609;},_0x4294ea['decodeDelimited']=function(_0x2f674e){return _0x2f674e instanceof _0x254bdb||(_0x2f674e=new _0x254bdb(_0x2f674e)),this['decode'](_0x2f674e,_0x2f674e['uint32']());},_0x4294ea['verify']=function(_0x173e4d){if('object'!=typeof _0x173e4d||null===_0x173e4d)return'object\x20expected';if(null!=_0x173e4d['commentThreadId']&&_0x173e4d['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x173e4d['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x173e4d['commentId']&&_0x173e4d['hasOwnProperty']('commentId')&&!_0x32c136['isString'](_0x173e4d['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x173e4d['content']&&_0x173e4d['hasOwnProperty']('content')&&!_0x32c136['isString'](_0x173e4d['content']))return'content:\x20string\x20expected';if(null!=_0x173e4d['documentId']&&_0x173e4d['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x173e4d['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x173e4d['attributes']&&_0x173e4d['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x173e4d['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x173e4d['isAttributesUpdated']&&_0x173e4d['hasOwnProperty']('isAttributesUpdated')&&'boolean'!=typeof _0x173e4d['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x173e4d['commentThread']&&_0x173e4d['hasOwnProperty']('commentThread')){var _0x1f579b=_0xdb1853['CommentsThreadDescriptor']['verify'](_0x173e4d['commentThread']);if(_0x1f579b)return'commentThread.'+_0x1f579b;}return null;},_0x4294ea['fromObject']=function(_0x299bba){if(_0x299bba instanceof _0xdb1853['CommentsV2UpdateCommentMessage'])return _0x299bba;var _0x24106e=new _0xdb1853['CommentsV2UpdateCommentMessage']();if(null!=_0x299bba['commentThreadId']&&(_0x24106e['commentThreadId']=String(_0x299bba['commentThreadId'])),null!=_0x299bba['commentId']&&(_0x24106e['commentId']=String(_0x299bba['commentId'])),null!=_0x299bba['content']&&(_0x24106e['content']=String(_0x299bba['content'])),null!=_0x299bba['documentId']&&(_0x24106e['documentId']=String(_0x299bba['documentId'])),null!=_0x299bba['attributes']&&(_0x24106e['attributes']=String(_0x299bba['attributes'])),null!=_0x299bba['isAttributesUpdated']&&(_0x24106e['isAttributesUpdated']=Boolean(_0x299bba['isAttributesUpdated'])),null!=_0x299bba['commentThread']){if('object'!=typeof _0x299bba['commentThread'])throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x24106e['commentThread']=_0xdb1853['CommentsThreadDescriptor']['fromObject'](_0x299bba['commentThread']);}return _0x24106e;},_0x4294ea['toObject']=function(_0x596b2e,_0x21765f){_0x21765f||(_0x21765f={});var _0x262f08={};return _0x21765f['defaults']&&(_0x262f08['commentThreadId']='',_0x262f08['commentId']='',_0x262f08['content']='',_0x262f08['documentId']='',_0x262f08['attributes']='',_0x262f08['isAttributesUpdated']=!0x1,_0x262f08['commentThread']=null),null!=_0x596b2e['commentThreadId']&&_0x596b2e['hasOwnProperty']('commentThreadId')&&(_0x262f08['commentThreadId']=_0x596b2e['commentThreadId']),null!=_0x596b2e['commentId']&&_0x596b2e['hasOwnProperty']('commentId')&&(_0x262f08['commentId']=_0x596b2e['commentId']),null!=_0x596b2e['content']&&_0x596b2e['hasOwnProperty']('content')&&(_0x262f08['content']=_0x596b2e['content']),null!=_0x596b2e['documentId']&&_0x596b2e['hasOwnProperty']('documentId')&&(_0x262f08['documentId']=_0x596b2e['documentId']),null!=_0x596b2e['attributes']&&_0x596b2e['hasOwnProperty']('attributes')&&(_0x262f08['attributes']=_0x596b2e['attributes']),null!=_0x596b2e['isAttributesUpdated']&&_0x596b2e['hasOwnProperty']('isAttributesUpdated')&&(_0x262f08['isAttributesUpdated']=_0x596b2e['isAttributesUpdated']),null!=_0x596b2e['commentThread']&&_0x596b2e['hasOwnProperty']('commentThread')&&(_0x262f08['commentThread']=_0xdb1853['CommentsThreadDescriptor']['toObject'](_0x596b2e['commentThread'],_0x21765f)),_0x262f08;},_0x4294ea['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4294ea['getTypeUrl']=function(_0x180209){return void 0x0===_0x180209&&(_0x180209='type.googleapis.com'),_0x180209+'/CommentsV2UpdateCommentMessage';},_0x4294ea;}()),_0xdb1853['CommentsV2RemoveCommentThreadMessage']=(function(){function _0x394ccb(_0x267ec6){if(_0x267ec6){for(var _0x1aab04=Object['keys'](_0x267ec6),_0x5b7ea1=0x0;_0x5b7ea1<_0x1aab04['length'];++_0x5b7ea1)null!=_0x267ec6[_0x1aab04[_0x5b7ea1]]&&(this[_0x1aab04[_0x5b7ea1]]=_0x267ec6[_0x1aab04[_0x5b7ea1]]);}}return _0x394ccb['prototype']['commentThreadId']='',_0x394ccb['prototype']['documentId']='',_0x394ccb['create']=function(_0x9f2c8){return new _0x394ccb(_0x9f2c8);},_0x394ccb['encode']=function(_0x5dfde9,_0x4cde03){return _0x4cde03||(_0x4cde03=_0x320e1c['create']()),null!=_0x5dfde9['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5dfde9,'commentThreadId')&&_0x4cde03['uint32'](0xa)['string'](_0x5dfde9['commentThreadId']),null!=_0x5dfde9['documentId']&&Object['hasOwnProperty']['call'](_0x5dfde9,'documentId')&&_0x4cde03['uint32'](0x12)['string'](_0x5dfde9['documentId']),_0x4cde03;},_0x394ccb['encodeDelimited']=function(_0x1fed3d,_0x98ae2b){return this['encode'](_0x1fed3d,_0x98ae2b)['ldelim']();},_0x394ccb['decode']=function(_0xe03d8a,_0x4d6b39,_0x1f710c){_0xe03d8a instanceof _0x254bdb||(_0xe03d8a=_0x254bdb['create'](_0xe03d8a));for(var _0x50ef71=void 0x0===_0x4d6b39?_0xe03d8a['len']:_0xe03d8a['pos']+_0x4d6b39,_0x54ffa8=new _0xdb1853['CommentsV2RemoveCommentThreadMessage']();_0xe03d8a['pos']<_0x50ef71;){var _0x305326=_0xe03d8a['uint32']();if(_0x305326===_0x1f710c)break;switch(_0x305326>>>0x3){case 0x1:_0x54ffa8['commentThreadId']=_0xe03d8a['string']();break;case 0x2:_0x54ffa8['documentId']=_0xe03d8a['string']();break;default:_0xe03d8a['skipType'](0x7&_0x305326);}}return _0x54ffa8;},_0x394ccb['decodeDelimited']=function(_0x5bd390){return _0x5bd390 instanceof _0x254bdb||(_0x5bd390=new _0x254bdb(_0x5bd390)),this['decode'](_0x5bd390,_0x5bd390['uint32']());},_0x394ccb['verify']=function(_0x20972d){return'object'!=typeof _0x20972d||null===_0x20972d?'object\x20expected':null!=_0x20972d['commentThreadId']&&_0x20972d['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x20972d['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x20972d['documentId']&&_0x20972d['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x20972d['documentId'])?'documentId:\x20string\x20expected':null;},_0x394ccb['fromObject']=function(_0x361500){if(_0x361500 instanceof _0xdb1853['CommentsV2RemoveCommentThreadMessage'])return _0x361500;var _0xab8fa5=new _0xdb1853['CommentsV2RemoveCommentThreadMessage']();return null!=_0x361500['commentThreadId']&&(_0xab8fa5['commentThreadId']=String(_0x361500['commentThreadId'])),null!=_0x361500['documentId']&&(_0xab8fa5['documentId']=String(_0x361500['documentId'])),_0xab8fa5;},_0x394ccb['toObject']=function(_0x52a44d,_0x357810){_0x357810||(_0x357810={});var _0x25262d={};return _0x357810['defaults']&&(_0x25262d['commentThreadId']='',_0x25262d['documentId']=''),null!=_0x52a44d['commentThreadId']&&_0x52a44d['hasOwnProperty']('commentThreadId')&&(_0x25262d['commentThreadId']=_0x52a44d['commentThreadId']),null!=_0x52a44d['documentId']&&_0x52a44d['hasOwnProperty']('documentId')&&(_0x25262d['documentId']=_0x52a44d['documentId']),_0x25262d;},_0x394ccb['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x394ccb['getTypeUrl']=function(_0x4b8a9d){return void 0x0===_0x4b8a9d&&(_0x4b8a9d='type.googleapis.com'),_0x4b8a9d+'/CommentsV2RemoveCommentThreadMessage';},_0x394ccb;}()),_0xdb1853['CommentsV2RemoveCommentMessage']=(function(){function _0x1fb22f(_0x1d9754){if(_0x1d9754){for(var _0x3c75d1=Object['keys'](_0x1d9754),_0xf5c1d=0x0;_0xf5c1d<_0x3c75d1['length'];++_0xf5c1d)null!=_0x1d9754[_0x3c75d1[_0xf5c1d]]&&(this[_0x3c75d1[_0xf5c1d]]=_0x1d9754[_0x3c75d1[_0xf5c1d]]);}}return _0x1fb22f['prototype']['commentThreadId']='',_0x1fb22f['prototype']['commentId']='',_0x1fb22f['prototype']['documentId']='',_0x1fb22f['create']=function(_0x103f82){return new _0x1fb22f(_0x103f82);},_0x1fb22f['encode']=function(_0x5894cb,_0x5a9f19){return _0x5a9f19||(_0x5a9f19=_0x320e1c['create']()),null!=_0x5894cb['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5894cb,'commentThreadId')&&_0x5a9f19['uint32'](0xa)['string'](_0x5894cb['commentThreadId']),null!=_0x5894cb['commentId']&&Object['hasOwnProperty']['call'](_0x5894cb,'commentId')&&_0x5a9f19['uint32'](0x12)['string'](_0x5894cb['commentId']),null!=_0x5894cb['documentId']&&Object['hasOwnProperty']['call'](_0x5894cb,'documentId')&&_0x5a9f19['uint32'](0x1a)['string'](_0x5894cb['documentId']),_0x5a9f19;},_0x1fb22f['encodeDelimited']=function(_0x46e329,_0xadb83f){return this['encode'](_0x46e329,_0xadb83f)['ldelim']();},_0x1fb22f['decode']=function(_0x1e50e8,_0x42d0dc,_0x135eb5){_0x1e50e8 instanceof _0x254bdb||(_0x1e50e8=_0x254bdb['create'](_0x1e50e8));for(var _0x20bd71=void 0x0===_0x42d0dc?_0x1e50e8['len']:_0x1e50e8['pos']+_0x42d0dc,_0xb0bb68=new _0xdb1853['CommentsV2RemoveCommentMessage']();_0x1e50e8['pos']<_0x20bd71;){var _0x532b9c=_0x1e50e8['uint32']();if(_0x532b9c===_0x135eb5)break;switch(_0x532b9c>>>0x3){case 0x1:_0xb0bb68['commentThreadId']=_0x1e50e8['string']();break;case 0x2:_0xb0bb68['commentId']=_0x1e50e8['string']();break;case 0x3:_0xb0bb68['documentId']=_0x1e50e8['string']();break;default:_0x1e50e8['skipType'](0x7&_0x532b9c);}}return _0xb0bb68;},_0x1fb22f['decodeDelimited']=function(_0x4b3394){return _0x4b3394 instanceof _0x254bdb||(_0x4b3394=new _0x254bdb(_0x4b3394)),this['decode'](_0x4b3394,_0x4b3394['uint32']());},_0x1fb22f['verify']=function(_0x1a3db1){return'object'!=typeof _0x1a3db1||null===_0x1a3db1?'object\x20expected':null!=_0x1a3db1['commentThreadId']&&_0x1a3db1['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x1a3db1['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1a3db1['commentId']&&_0x1a3db1['hasOwnProperty']('commentId')&&!_0x32c136['isString'](_0x1a3db1['commentId'])?'commentId:\x20string\x20expected':null!=_0x1a3db1['documentId']&&_0x1a3db1['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x1a3db1['documentId'])?'documentId:\x20string\x20expected':null;},_0x1fb22f['fromObject']=function(_0x2d2ec9){if(_0x2d2ec9 instanceof _0xdb1853['CommentsV2RemoveCommentMessage'])return _0x2d2ec9;var _0x4d71f2=new _0xdb1853['CommentsV2RemoveCommentMessage']();return null!=_0x2d2ec9['commentThreadId']&&(_0x4d71f2['commentThreadId']=String(_0x2d2ec9['commentThreadId'])),null!=_0x2d2ec9['commentId']&&(_0x4d71f2['commentId']=String(_0x2d2ec9['commentId'])),null!=_0x2d2ec9['documentId']&&(_0x4d71f2['documentId']=String(_0x2d2ec9['documentId'])),_0x4d71f2;},_0x1fb22f['toObject']=function(_0x1cf4fb,_0x360e1a){_0x360e1a||(_0x360e1a={});var _0xa50570={};return _0x360e1a['defaults']&&(_0xa50570['commentThreadId']='',_0xa50570['commentId']='',_0xa50570['documentId']=''),null!=_0x1cf4fb['commentThreadId']&&_0x1cf4fb['hasOwnProperty']('commentThreadId')&&(_0xa50570['commentThreadId']=_0x1cf4fb['commentThreadId']),null!=_0x1cf4fb['commentId']&&_0x1cf4fb['hasOwnProperty']('commentId')&&(_0xa50570['commentId']=_0x1cf4fb['commentId']),null!=_0x1cf4fb['documentId']&&_0x1cf4fb['hasOwnProperty']('documentId')&&(_0xa50570['documentId']=_0x1cf4fb['documentId']),_0xa50570;},_0x1fb22f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1fb22f['getTypeUrl']=function(_0x4d3148){return void 0x0===_0x4d3148&&(_0x4d3148='type.googleapis.com'),_0x4d3148+'/CommentsV2RemoveCommentMessage';},_0x1fb22f;}()),_0xdb1853['CommentsV2GetDocumentThreadsMessage']=(function(){function _0x44ec30(_0x51b140){if(_0x51b140){for(var _0x232b26=Object['keys'](_0x51b140),_0x5e1b5a=0x0;_0x5e1b5a<_0x232b26['length'];++_0x5e1b5a)null!=_0x51b140[_0x232b26[_0x5e1b5a]]&&(this[_0x232b26[_0x5e1b5a]]=_0x51b140[_0x232b26[_0x5e1b5a]]);}}return _0x44ec30['prototype']['documentId']='',_0x44ec30['create']=function(_0x15c285){return new _0x44ec30(_0x15c285);},_0x44ec30['encode']=function(_0xaacf44,_0x5042f6){return _0x5042f6||(_0x5042f6=_0x320e1c['create']()),null!=_0xaacf44['documentId']&&Object['hasOwnProperty']['call'](_0xaacf44,'documentId')&&_0x5042f6['uint32'](0xa)['string'](_0xaacf44['documentId']),_0x5042f6;},_0x44ec30['encodeDelimited']=function(_0xd8172c,_0x2b5c40){return this['encode'](_0xd8172c,_0x2b5c40)['ldelim']();},_0x44ec30['decode']=function(_0x53d2c7,_0x4e3ea9,_0x21fd5b){_0x53d2c7 instanceof _0x254bdb||(_0x53d2c7=_0x254bdb['create'](_0x53d2c7));for(var _0x4a6dad=void 0x0===_0x4e3ea9?_0x53d2c7['len']:_0x53d2c7['pos']+_0x4e3ea9,_0x4b3d14=new _0xdb1853['CommentsV2GetDocumentThreadsMessage']();_0x53d2c7['pos']<_0x4a6dad;){var _0x56fa3c=_0x53d2c7['uint32']();if(_0x56fa3c===_0x21fd5b)break;_0x56fa3c>>>0x3==0x1?_0x4b3d14['documentId']=_0x53d2c7['string']():_0x53d2c7['skipType'](0x7&_0x56fa3c);}return _0x4b3d14;},_0x44ec30['decodeDelimited']=function(_0x27ee9f){return _0x27ee9f instanceof _0x254bdb||(_0x27ee9f=new _0x254bdb(_0x27ee9f)),this['decode'](_0x27ee9f,_0x27ee9f['uint32']());},_0x44ec30['verify']=function(_0x202f8e){return'object'!=typeof _0x202f8e||null===_0x202f8e?'object\x20expected':null!=_0x202f8e['documentId']&&_0x202f8e['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x202f8e['documentId'])?'documentId:\x20string\x20expected':null;},_0x44ec30['fromObject']=function(_0x4c0421){if(_0x4c0421 instanceof _0xdb1853['CommentsV2GetDocumentThreadsMessage'])return _0x4c0421;var _0x962205=new _0xdb1853['CommentsV2GetDocumentThreadsMessage']();return null!=_0x4c0421['documentId']&&(_0x962205['documentId']=String(_0x4c0421['documentId'])),_0x962205;},_0x44ec30['toObject']=function(_0x3aa4a2,_0x234127){_0x234127||(_0x234127={});var _0x5d309a={};return _0x234127['defaults']&&(_0x5d309a['documentId']=''),null!=_0x3aa4a2['documentId']&&_0x3aa4a2['hasOwnProperty']('documentId')&&(_0x5d309a['documentId']=_0x3aa4a2['documentId']),_0x5d309a;},_0x44ec30['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x44ec30['getTypeUrl']=function(_0x1e80cb){return void 0x0===_0x1e80cb&&(_0x1e80cb='type.googleapis.com'),_0x1e80cb+'/CommentsV2GetDocumentThreadsMessage';},_0x44ec30;}()),_0xdb1853['CommentsV2GetCommentThreadMessage']=(function(){function _0x534695(_0x546ed5){if(_0x546ed5){for(var _0x96320b=Object['keys'](_0x546ed5),_0x44a422=0x0;_0x44a422<_0x96320b['length'];++_0x44a422)null!=_0x546ed5[_0x96320b[_0x44a422]]&&(this[_0x96320b[_0x44a422]]=_0x546ed5[_0x96320b[_0x44a422]]);}}return _0x534695['prototype']['commentThreadId']='',_0x534695['prototype']['documentId']='',_0x534695['create']=function(_0x35cf65){return new _0x534695(_0x35cf65);},_0x534695['encode']=function(_0x49b481,_0x2a39c3){return _0x2a39c3||(_0x2a39c3=_0x320e1c['create']()),null!=_0x49b481['commentThreadId']&&Object['hasOwnProperty']['call'](_0x49b481,'commentThreadId')&&_0x2a39c3['uint32'](0xa)['string'](_0x49b481['commentThreadId']),null!=_0x49b481['documentId']&&Object['hasOwnProperty']['call'](_0x49b481,'documentId')&&_0x2a39c3['uint32'](0x12)['string'](_0x49b481['documentId']),_0x2a39c3;},_0x534695['encodeDelimited']=function(_0x1174d1,_0x5dbcbc){return this['encode'](_0x1174d1,_0x5dbcbc)['ldelim']();},_0x534695['decode']=function(_0x9da3d1,_0x55cc7e,_0x4f40d1){_0x9da3d1 instanceof _0x254bdb||(_0x9da3d1=_0x254bdb['create'](_0x9da3d1));for(var _0x41fb58=void 0x0===_0x55cc7e?_0x9da3d1['len']:_0x9da3d1['pos']+_0x55cc7e,_0xe2d4eb=new _0xdb1853['CommentsV2GetCommentThreadMessage']();_0x9da3d1['pos']<_0x41fb58;){var _0x23a3ca=_0x9da3d1['uint32']();if(_0x23a3ca===_0x4f40d1)break;switch(_0x23a3ca>>>0x3){case 0x1:_0xe2d4eb['commentThreadId']=_0x9da3d1['string']();break;case 0x2:_0xe2d4eb['documentId']=_0x9da3d1['string']();break;default:_0x9da3d1['skipType'](0x7&_0x23a3ca);}}return _0xe2d4eb;},_0x534695['decodeDelimited']=function(_0x23ddf5){return _0x23ddf5 instanceof _0x254bdb||(_0x23ddf5=new _0x254bdb(_0x23ddf5)),this['decode'](_0x23ddf5,_0x23ddf5['uint32']());},_0x534695['verify']=function(_0x7c9bac){return'object'!=typeof _0x7c9bac||null===_0x7c9bac?'object\x20expected':null!=_0x7c9bac['commentThreadId']&&_0x7c9bac['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x7c9bac['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x7c9bac['documentId']&&_0x7c9bac['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x7c9bac['documentId'])?'documentId:\x20string\x20expected':null;},_0x534695['fromObject']=function(_0x350045){if(_0x350045 instanceof _0xdb1853['CommentsV2GetCommentThreadMessage'])return _0x350045;var _0x150724=new _0xdb1853['CommentsV2GetCommentThreadMessage']();return null!=_0x350045['commentThreadId']&&(_0x150724['commentThreadId']=String(_0x350045['commentThreadId'])),null!=_0x350045['documentId']&&(_0x150724['documentId']=String(_0x350045['documentId'])),_0x150724;},_0x534695['toObject']=function(_0x1e529f,_0x2e76b9){_0x2e76b9||(_0x2e76b9={});var _0x369a77={};return _0x2e76b9['defaults']&&(_0x369a77['commentThreadId']='',_0x369a77['documentId']=''),null!=_0x1e529f['commentThreadId']&&_0x1e529f['hasOwnProperty']('commentThreadId')&&(_0x369a77['commentThreadId']=_0x1e529f['commentThreadId']),null!=_0x1e529f['documentId']&&_0x1e529f['hasOwnProperty']('documentId')&&(_0x369a77['documentId']=_0x1e529f['documentId']),_0x369a77;},_0x534695['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x534695['getTypeUrl']=function(_0x3dd3c4){return void 0x0===_0x3dd3c4&&(_0x3dd3c4='type.googleapis.com'),_0x3dd3c4+'/CommentsV2GetCommentThreadMessage';},_0x534695;}()),_0xdb1853['CommentsV2ConnectMessage']=(function(){function _0x29fe9d(_0x29b47d){if(_0x29b47d){for(var _0x58e58d=Object['keys'](_0x29b47d),_0x926f8b=0x0;_0x926f8b<_0x58e58d['length'];++_0x926f8b)null!=_0x29b47d[_0x58e58d[_0x926f8b]]&&(this[_0x58e58d[_0x926f8b]]=_0x29b47d[_0x58e58d[_0x926f8b]]);}}return _0x29fe9d['prototype']['documentId']='',_0x29fe9d['create']=function(_0x25215e){return new _0x29fe9d(_0x25215e);},_0x29fe9d['encode']=function(_0x17f0c5,_0x44e483){return _0x44e483||(_0x44e483=_0x320e1c['create']()),null!=_0x17f0c5['documentId']&&Object['hasOwnProperty']['call'](_0x17f0c5,'documentId')&&_0x44e483['uint32'](0xa)['string'](_0x17f0c5['documentId']),_0x44e483;},_0x29fe9d['encodeDelimited']=function(_0x1eb787,_0xd27ce6){return this['encode'](_0x1eb787,_0xd27ce6)['ldelim']();},_0x29fe9d['decode']=function(_0x2ff964,_0x4b707e,_0x50e0bd){_0x2ff964 instanceof _0x254bdb||(_0x2ff964=_0x254bdb['create'](_0x2ff964));for(var _0x372ece=void 0x0===_0x4b707e?_0x2ff964['len']:_0x2ff964['pos']+_0x4b707e,_0x550002=new _0xdb1853['CommentsV2ConnectMessage']();_0x2ff964['pos']<_0x372ece;){var _0x573f8b=_0x2ff964['uint32']();if(_0x573f8b===_0x50e0bd)break;_0x573f8b>>>0x3==0x1?_0x550002['documentId']=_0x2ff964['string']():_0x2ff964['skipType'](0x7&_0x573f8b);}return _0x550002;},_0x29fe9d['decodeDelimited']=function(_0x562d7b){return _0x562d7b instanceof _0x254bdb||(_0x562d7b=new _0x254bdb(_0x562d7b)),this['decode'](_0x562d7b,_0x562d7b['uint32']());},_0x29fe9d['verify']=function(_0x28ea66){return'object'!=typeof _0x28ea66||null===_0x28ea66?'object\x20expected':null!=_0x28ea66['documentId']&&_0x28ea66['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x28ea66['documentId'])?'documentId:\x20string\x20expected':null;},_0x29fe9d['fromObject']=function(_0x3d149c){if(_0x3d149c instanceof _0xdb1853['CommentsV2ConnectMessage'])return _0x3d149c;var _0x27f2db=new _0xdb1853['CommentsV2ConnectMessage']();return null!=_0x3d149c['documentId']&&(_0x27f2db['documentId']=String(_0x3d149c['documentId'])),_0x27f2db;},_0x29fe9d['toObject']=function(_0x2a06f6,_0xc94d98){_0xc94d98||(_0xc94d98={});var _0x444c3f={};return _0xc94d98['defaults']&&(_0x444c3f['documentId']=''),null!=_0x2a06f6['documentId']&&_0x2a06f6['hasOwnProperty']('documentId')&&(_0x444c3f['documentId']=_0x2a06f6['documentId']),_0x444c3f;},_0x29fe9d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x29fe9d['getTypeUrl']=function(_0x976af){return void 0x0===_0x976af&&(_0x976af='type.googleapis.com'),_0x976af+'/CommentsV2ConnectMessage';},_0x29fe9d;}()),_0xdb1853['CommentsV2AddCommentMessage']=(function(){function _0x560337(_0x28d1c2){if(_0x28d1c2){for(var _0x5155df=Object['keys'](_0x28d1c2),_0x77b61d=0x0;_0x77b61d<_0x5155df['length'];++_0x77b61d)null!=_0x28d1c2[_0x5155df[_0x77b61d]]&&(this[_0x5155df[_0x77b61d]]=_0x28d1c2[_0x5155df[_0x77b61d]]);}}return _0x560337['prototype']['commentThreadId']='',_0x560337['prototype']['content']='',_0x560337['prototype']['documentId']='',_0x560337['prototype']['commentId']='',_0x560337['prototype']['createdAt']='',_0x560337['prototype']['userId']='',_0x560337['prototype']['attributes']='',_0x560337['prototype']['commentThread']=null,_0x560337['create']=function(_0x3bc239){return new _0x560337(_0x3bc239);},_0x560337['encode']=function(_0x14aaae,_0x4c08f3){return _0x4c08f3||(_0x4c08f3=_0x320e1c['create']()),null!=_0x14aaae['commentThreadId']&&Object['hasOwnProperty']['call'](_0x14aaae,'commentThreadId')&&_0x4c08f3['uint32'](0xa)['string'](_0x14aaae['commentThreadId']),null!=_0x14aaae['content']&&Object['hasOwnProperty']['call'](_0x14aaae,'content')&&_0x4c08f3['uint32'](0x12)['string'](_0x14aaae['content']),null!=_0x14aaae['documentId']&&Object['hasOwnProperty']['call'](_0x14aaae,'documentId')&&_0x4c08f3['uint32'](0x1a)['string'](_0x14aaae['documentId']),null!=_0x14aaae['commentId']&&Object['hasOwnProperty']['call'](_0x14aaae,'commentId')&&_0x4c08f3['uint32'](0x22)['string'](_0x14aaae['commentId']),null!=_0x14aaae['createdAt']&&Object['hasOwnProperty']['call'](_0x14aaae,'createdAt')&&_0x4c08f3['uint32'](0x2a)['string'](_0x14aaae['createdAt']),null!=_0x14aaae['userId']&&Object['hasOwnProperty']['call'](_0x14aaae,'userId')&&_0x4c08f3['uint32'](0x32)['string'](_0x14aaae['userId']),null!=_0x14aaae['attributes']&&Object['hasOwnProperty']['call'](_0x14aaae,'attributes')&&_0x4c08f3['uint32'](0x3a)['string'](_0x14aaae['attributes']),null!=_0x14aaae['commentThread']&&Object['hasOwnProperty']['call'](_0x14aaae,'commentThread')&&_0xdb1853['CommentsThreadDescriptor']['encode'](_0x14aaae['commentThread'],_0x4c08f3['uint32'](0x42)['fork']())['ldelim'](),_0x4c08f3;},_0x560337['encodeDelimited']=function(_0x5916e8,_0x5e1784){return this['encode'](_0x5916e8,_0x5e1784)['ldelim']();},_0x560337['decode']=function(_0x151178,_0x354e16,_0x106e0d){_0x151178 instanceof _0x254bdb||(_0x151178=_0x254bdb['create'](_0x151178));for(var _0x542d5c=void 0x0===_0x354e16?_0x151178['len']:_0x151178['pos']+_0x354e16,_0x1e1fba=new _0xdb1853['CommentsV2AddCommentMessage']();_0x151178['pos']<_0x542d5c;){var _0x59b051=_0x151178['uint32']();if(_0x59b051===_0x106e0d)break;switch(_0x59b051>>>0x3){case 0x1:_0x1e1fba['commentThreadId']=_0x151178['string']();break;case 0x2:_0x1e1fba['content']=_0x151178['string']();break;case 0x3:_0x1e1fba['documentId']=_0x151178['string']();break;case 0x4:_0x1e1fba['commentId']=_0x151178['string']();break;case 0x5:_0x1e1fba['createdAt']=_0x151178['string']();break;case 0x6:_0x1e1fba['userId']=_0x151178['string']();break;case 0x7:_0x1e1fba['attributes']=_0x151178['string']();break;case 0x8:_0x1e1fba['commentThread']=_0xdb1853['CommentsThreadDescriptor']['decode'](_0x151178,_0x151178['uint32']());break;default:_0x151178['skipType'](0x7&_0x59b051);}}return _0x1e1fba;},_0x560337['decodeDelimited']=function(_0x4039ec){return _0x4039ec instanceof _0x254bdb||(_0x4039ec=new _0x254bdb(_0x4039ec)),this['decode'](_0x4039ec,_0x4039ec['uint32']());},_0x560337['verify']=function(_0x228df3){if('object'!=typeof _0x228df3||null===_0x228df3)return'object\x20expected';if(null!=_0x228df3['commentThreadId']&&_0x228df3['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x228df3['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x228df3['content']&&_0x228df3['hasOwnProperty']('content')&&!_0x32c136['isString'](_0x228df3['content']))return'content:\x20string\x20expected';if(null!=_0x228df3['documentId']&&_0x228df3['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x228df3['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x228df3['commentId']&&_0x228df3['hasOwnProperty']('commentId')&&!_0x32c136['isString'](_0x228df3['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x228df3['createdAt']&&_0x228df3['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0x228df3['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x228df3['userId']&&_0x228df3['hasOwnProperty']('userId')&&!_0x32c136['isString'](_0x228df3['userId']))return'userId:\x20string\x20expected';if(null!=_0x228df3['attributes']&&_0x228df3['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x228df3['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x228df3['commentThread']&&_0x228df3['hasOwnProperty']('commentThread')){var _0x224ad7=_0xdb1853['CommentsThreadDescriptor']['verify'](_0x228df3['commentThread']);if(_0x224ad7)return'commentThread.'+_0x224ad7;}return null;},_0x560337['fromObject']=function(_0x1fff37){if(_0x1fff37 instanceof _0xdb1853['CommentsV2AddCommentMessage'])return _0x1fff37;var _0x1bf582=new _0xdb1853['CommentsV2AddCommentMessage']();if(null!=_0x1fff37['commentThreadId']&&(_0x1bf582['commentThreadId']=String(_0x1fff37['commentThreadId'])),null!=_0x1fff37['content']&&(_0x1bf582['content']=String(_0x1fff37['content'])),null!=_0x1fff37['documentId']&&(_0x1bf582['documentId']=String(_0x1fff37['documentId'])),null!=_0x1fff37['commentId']&&(_0x1bf582['commentId']=String(_0x1fff37['commentId'])),null!=_0x1fff37['createdAt']&&(_0x1bf582['createdAt']=String(_0x1fff37['createdAt'])),null!=_0x1fff37['userId']&&(_0x1bf582['userId']=String(_0x1fff37['userId'])),null!=_0x1fff37['attributes']&&(_0x1bf582['attributes']=String(_0x1fff37['attributes'])),null!=_0x1fff37['commentThread']){if('object'!=typeof _0x1fff37['commentThread'])throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0x1bf582['commentThread']=_0xdb1853['CommentsThreadDescriptor']['fromObject'](_0x1fff37['commentThread']);}return _0x1bf582;},_0x560337['toObject']=function(_0x2ffec1,_0x2605a8){_0x2605a8||(_0x2605a8={});var _0x6650fa={};return _0x2605a8['defaults']&&(_0x6650fa['commentThreadId']='',_0x6650fa['content']='',_0x6650fa['documentId']='',_0x6650fa['commentId']='',_0x6650fa['createdAt']='',_0x6650fa['userId']='',_0x6650fa['attributes']='',_0x6650fa['commentThread']=null),null!=_0x2ffec1['commentThreadId']&&_0x2ffec1['hasOwnProperty']('commentThreadId')&&(_0x6650fa['commentThreadId']=_0x2ffec1['commentThreadId']),null!=_0x2ffec1['content']&&_0x2ffec1['hasOwnProperty']('content')&&(_0x6650fa['content']=_0x2ffec1['content']),null!=_0x2ffec1['documentId']&&_0x2ffec1['hasOwnProperty']('documentId')&&(_0x6650fa['documentId']=_0x2ffec1['documentId']),null!=_0x2ffec1['commentId']&&_0x2ffec1['hasOwnProperty']('commentId')&&(_0x6650fa['commentId']=_0x2ffec1['commentId']),null!=_0x2ffec1['createdAt']&&_0x2ffec1['hasOwnProperty']('createdAt')&&(_0x6650fa['createdAt']=_0x2ffec1['createdAt']),null!=_0x2ffec1['userId']&&_0x2ffec1['hasOwnProperty']('userId')&&(_0x6650fa['userId']=_0x2ffec1['userId']),null!=_0x2ffec1['attributes']&&_0x2ffec1['hasOwnProperty']('attributes')&&(_0x6650fa['attributes']=_0x2ffec1['attributes']),null!=_0x2ffec1['commentThread']&&_0x2ffec1['hasOwnProperty']('commentThread')&&(_0x6650fa['commentThread']=_0xdb1853['CommentsThreadDescriptor']['toObject'](_0x2ffec1['commentThread'],_0x2605a8)),_0x6650fa;},_0x560337['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x560337['getTypeUrl']=function(_0x360570){return void 0x0===_0x360570&&(_0x360570='type.googleapis.com'),_0x360570+'/CommentsV2AddCommentMessage';},_0x560337;}()),_0xdb1853['CommentsV2UpdateCommentThreadMessage']=(function(){function _0x3a0192(_0x3233fa){if(_0x3233fa){for(var _0x1be082=Object['keys'](_0x3233fa),_0x3ad9ea=0x0;_0x3ad9ea<_0x1be082['length'];++_0x3ad9ea)null!=_0x3233fa[_0x1be082[_0x3ad9ea]]&&(this[_0x1be082[_0x3ad9ea]]=_0x3233fa[_0x1be082[_0x3ad9ea]]);}}return _0x3a0192['prototype']['commentThreadId']='',_0x3a0192['prototype']['documentId']='',_0x3a0192['prototype']['context']='',_0x3a0192['prototype']['attributes']='',_0x3a0192['prototype']['unlinkedAt']='',_0x3a0192['create']=function(_0x2a40a5){return new _0x3a0192(_0x2a40a5);},_0x3a0192['encode']=function(_0x186f38,_0x1aa0e){return _0x1aa0e||(_0x1aa0e=_0x320e1c['create']()),null!=_0x186f38['commentThreadId']&&Object['hasOwnProperty']['call'](_0x186f38,'commentThreadId')&&_0x1aa0e['uint32'](0xa)['string'](_0x186f38['commentThreadId']),null!=_0x186f38['documentId']&&Object['hasOwnProperty']['call'](_0x186f38,'documentId')&&_0x1aa0e['uint32'](0x12)['string'](_0x186f38['documentId']),null!=_0x186f38['context']&&Object['hasOwnProperty']['call'](_0x186f38,'context')&&_0x1aa0e['uint32'](0x1a)['string'](_0x186f38['context']),null!=_0x186f38['attributes']&&Object['hasOwnProperty']['call'](_0x186f38,'attributes')&&_0x1aa0e['uint32'](0x22)['string'](_0x186f38['attributes']),null!=_0x186f38['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x186f38,'unlinkedAt')&&_0x1aa0e['uint32'](0x2a)['string'](_0x186f38['unlinkedAt']),_0x1aa0e;},_0x3a0192['encodeDelimited']=function(_0x1ef822,_0x21d228){return this['encode'](_0x1ef822,_0x21d228)['ldelim']();},_0x3a0192['decode']=function(_0xb9e83f,_0x37000c,_0x3eeb9a){_0xb9e83f instanceof _0x254bdb||(_0xb9e83f=_0x254bdb['create'](_0xb9e83f));for(var _0x2a60c8=void 0x0===_0x37000c?_0xb9e83f['len']:_0xb9e83f['pos']+_0x37000c,_0xb8497a=new _0xdb1853['CommentsV2UpdateCommentThreadMessage']();_0xb9e83f['pos']<_0x2a60c8;){var _0x5724c4=_0xb9e83f['uint32']();if(_0x5724c4===_0x3eeb9a)break;switch(_0x5724c4>>>0x3){case 0x1:_0xb8497a['commentThreadId']=_0xb9e83f['string']();break;case 0x2:_0xb8497a['documentId']=_0xb9e83f['string']();break;case 0x3:_0xb8497a['context']=_0xb9e83f['string']();break;case 0x4:_0xb8497a['attributes']=_0xb9e83f['string']();break;case 0x5:_0xb8497a['unlinkedAt']=_0xb9e83f['string']();break;default:_0xb9e83f['skipType'](0x7&_0x5724c4);}}return _0xb8497a;},_0x3a0192['decodeDelimited']=function(_0x41b1f7){return _0x41b1f7 instanceof _0x254bdb||(_0x41b1f7=new _0x254bdb(_0x41b1f7)),this['decode'](_0x41b1f7,_0x41b1f7['uint32']());},_0x3a0192['verify']=function(_0x10eaa9){return'object'!=typeof _0x10eaa9||null===_0x10eaa9?'object\x20expected':null!=_0x10eaa9['commentThreadId']&&_0x10eaa9['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x10eaa9['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x10eaa9['documentId']&&_0x10eaa9['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x10eaa9['documentId'])?'documentId:\x20string\x20expected':null!=_0x10eaa9['context']&&_0x10eaa9['hasOwnProperty']('context')&&!_0x32c136['isString'](_0x10eaa9['context'])?'context:\x20string\x20expected':null!=_0x10eaa9['attributes']&&_0x10eaa9['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x10eaa9['attributes'])?'attributes:\x20string\x20expected':null!=_0x10eaa9['unlinkedAt']&&_0x10eaa9['hasOwnProperty']('unlinkedAt')&&!_0x32c136['isString'](_0x10eaa9['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x3a0192['fromObject']=function(_0x39922c){if(_0x39922c instanceof _0xdb1853['CommentsV2UpdateCommentThreadMessage'])return _0x39922c;var _0x28f67f=new _0xdb1853['CommentsV2UpdateCommentThreadMessage']();return null!=_0x39922c['commentThreadId']&&(_0x28f67f['commentThreadId']=String(_0x39922c['commentThreadId'])),null!=_0x39922c['documentId']&&(_0x28f67f['documentId']=String(_0x39922c['documentId'])),null!=_0x39922c['context']&&(_0x28f67f['context']=String(_0x39922c['context'])),null!=_0x39922c['attributes']&&(_0x28f67f['attributes']=String(_0x39922c['attributes'])),null!=_0x39922c['unlinkedAt']&&(_0x28f67f['unlinkedAt']=String(_0x39922c['unlinkedAt'])),_0x28f67f;},_0x3a0192['toObject']=function(_0xe9ffe7,_0x5a1aa9){_0x5a1aa9||(_0x5a1aa9={});var _0x1edf1c={};return _0x5a1aa9['defaults']&&(_0x1edf1c['commentThreadId']='',_0x1edf1c['documentId']='',_0x1edf1c['context']='',_0x1edf1c['attributes']='',_0x1edf1c['unlinkedAt']=''),null!=_0xe9ffe7['commentThreadId']&&_0xe9ffe7['hasOwnProperty']('commentThreadId')&&(_0x1edf1c['commentThreadId']=_0xe9ffe7['commentThreadId']),null!=_0xe9ffe7['documentId']&&_0xe9ffe7['hasOwnProperty']('documentId')&&(_0x1edf1c['documentId']=_0xe9ffe7['documentId']),null!=_0xe9ffe7['context']&&_0xe9ffe7['hasOwnProperty']('context')&&(_0x1edf1c['context']=_0xe9ffe7['context']),null!=_0xe9ffe7['attributes']&&_0xe9ffe7['hasOwnProperty']('attributes')&&(_0x1edf1c['attributes']=_0xe9ffe7['attributes']),null!=_0xe9ffe7['unlinkedAt']&&_0xe9ffe7['hasOwnProperty']('unlinkedAt')&&(_0x1edf1c['unlinkedAt']=_0xe9ffe7['unlinkedAt']),_0x1edf1c;},_0x3a0192['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3a0192['getTypeUrl']=function(_0x2df3ff){return void 0x0===_0x2df3ff&&(_0x2df3ff='type.googleapis.com'),_0x2df3ff+'/CommentsV2UpdateCommentThreadMessage';},_0x3a0192;}()),_0xdb1853['CommentsV2ResolveCommentThreadMessage']=(function(){function _0x4d73cc(_0x4c5762){if(_0x4c5762){for(var _0x4ba52b=Object['keys'](_0x4c5762),_0xd0ae24=0x0;_0xd0ae24<_0x4ba52b['length'];++_0xd0ae24)null!=_0x4c5762[_0x4ba52b[_0xd0ae24]]&&(this[_0x4ba52b[_0xd0ae24]]=_0x4c5762[_0x4ba52b[_0xd0ae24]]);}}return _0x4d73cc['prototype']['commentThreadId']='',_0x4d73cc['prototype']['documentId']='',_0x4d73cc['prototype']['resolvedBy']='',_0x4d73cc['prototype']['resolvedAt']='',_0x4d73cc['create']=function(_0x507772){return new _0x4d73cc(_0x507772);},_0x4d73cc['encode']=function(_0x378765,_0x8c762c){return _0x8c762c||(_0x8c762c=_0x320e1c['create']()),null!=_0x378765['commentThreadId']&&Object['hasOwnProperty']['call'](_0x378765,'commentThreadId')&&_0x8c762c['uint32'](0xa)['string'](_0x378765['commentThreadId']),null!=_0x378765['documentId']&&Object['hasOwnProperty']['call'](_0x378765,'documentId')&&_0x8c762c['uint32'](0x12)['string'](_0x378765['documentId']),null!=_0x378765['resolvedBy']&&Object['hasOwnProperty']['call'](_0x378765,'resolvedBy')&&_0x8c762c['uint32'](0x1a)['string'](_0x378765['resolvedBy']),null!=_0x378765['resolvedAt']&&Object['hasOwnProperty']['call'](_0x378765,'resolvedAt')&&_0x8c762c['uint32'](0x22)['string'](_0x378765['resolvedAt']),_0x8c762c;},_0x4d73cc['encodeDelimited']=function(_0x3fa558,_0x7500e1){return this['encode'](_0x3fa558,_0x7500e1)['ldelim']();},_0x4d73cc['decode']=function(_0x4f184d,_0x1ae7f2,_0x5cb640){_0x4f184d instanceof _0x254bdb||(_0x4f184d=_0x254bdb['create'](_0x4f184d));for(var _0x5cf308=void 0x0===_0x1ae7f2?_0x4f184d['len']:_0x4f184d['pos']+_0x1ae7f2,_0x1e34a9=new _0xdb1853['CommentsV2ResolveCommentThreadMessage']();_0x4f184d['pos']<_0x5cf308;){var _0x2c8f83=_0x4f184d['uint32']();if(_0x2c8f83===_0x5cb640)break;switch(_0x2c8f83>>>0x3){case 0x1:_0x1e34a9['commentThreadId']=_0x4f184d['string']();break;case 0x2:_0x1e34a9['documentId']=_0x4f184d['string']();break;case 0x3:_0x1e34a9['resolvedBy']=_0x4f184d['string']();break;case 0x4:_0x1e34a9['resolvedAt']=_0x4f184d['string']();break;default:_0x4f184d['skipType'](0x7&_0x2c8f83);}}return _0x1e34a9;},_0x4d73cc['decodeDelimited']=function(_0x2b9ab0){return _0x2b9ab0 instanceof _0x254bdb||(_0x2b9ab0=new _0x254bdb(_0x2b9ab0)),this['decode'](_0x2b9ab0,_0x2b9ab0['uint32']());},_0x4d73cc['verify']=function(_0x17340c){return'object'!=typeof _0x17340c||null===_0x17340c?'object\x20expected':null!=_0x17340c['commentThreadId']&&_0x17340c['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x17340c['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x17340c['documentId']&&_0x17340c['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x17340c['documentId'])?'documentId:\x20string\x20expected':null!=_0x17340c['resolvedBy']&&_0x17340c['hasOwnProperty']('resolvedBy')&&!_0x32c136['isString'](_0x17340c['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x17340c['resolvedAt']&&_0x17340c['hasOwnProperty']('resolvedAt')&&!_0x32c136['isString'](_0x17340c['resolvedAt'])?'resolvedAt:\x20string\x20expected':null;},_0x4d73cc['fromObject']=function(_0x520f7e){if(_0x520f7e instanceof _0xdb1853['CommentsV2ResolveCommentThreadMessage'])return _0x520f7e;var _0x3e5801=new _0xdb1853['CommentsV2ResolveCommentThreadMessage']();return null!=_0x520f7e['commentThreadId']&&(_0x3e5801['commentThreadId']=String(_0x520f7e['commentThreadId'])),null!=_0x520f7e['documentId']&&(_0x3e5801['documentId']=String(_0x520f7e['documentId'])),null!=_0x520f7e['resolvedBy']&&(_0x3e5801['resolvedBy']=String(_0x520f7e['resolvedBy'])),null!=_0x520f7e['resolvedAt']&&(_0x3e5801['resolvedAt']=String(_0x520f7e['resolvedAt'])),_0x3e5801;},_0x4d73cc['toObject']=function(_0x32dbec,_0x1d3c32){_0x1d3c32||(_0x1d3c32={});var _0x4e47b7={};return _0x1d3c32['defaults']&&(_0x4e47b7['commentThreadId']='',_0x4e47b7['documentId']='',_0x4e47b7['resolvedBy']='',_0x4e47b7['resolvedAt']=''),null!=_0x32dbec['commentThreadId']&&_0x32dbec['hasOwnProperty']('commentThreadId')&&(_0x4e47b7['commentThreadId']=_0x32dbec['commentThreadId']),null!=_0x32dbec['documentId']&&_0x32dbec['hasOwnProperty']('documentId')&&(_0x4e47b7['documentId']=_0x32dbec['documentId']),null!=_0x32dbec['resolvedBy']&&_0x32dbec['hasOwnProperty']('resolvedBy')&&(_0x4e47b7['resolvedBy']=_0x32dbec['resolvedBy']),null!=_0x32dbec['resolvedAt']&&_0x32dbec['hasOwnProperty']('resolvedAt')&&(_0x4e47b7['resolvedAt']=_0x32dbec['resolvedAt']),_0x4e47b7;},_0x4d73cc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4d73cc['getTypeUrl']=function(_0x568b3d){return void 0x0===_0x568b3d&&(_0x568b3d='type.googleapis.com'),_0x568b3d+'/CommentsV2ResolveCommentThreadMessage';},_0x4d73cc;}()),_0xdb1853['CommentsV2ReopenCommentThreadMessage']=(function(){function _0x5755f0(_0x3d9a93){if(_0x3d9a93){for(var _0x4c57bd=Object['keys'](_0x3d9a93),_0x1516bf=0x0;_0x1516bf<_0x4c57bd['length'];++_0x1516bf)null!=_0x3d9a93[_0x4c57bd[_0x1516bf]]&&(this[_0x4c57bd[_0x1516bf]]=_0x3d9a93[_0x4c57bd[_0x1516bf]]);}}return _0x5755f0['prototype']['commentThreadId']='',_0x5755f0['prototype']['documentId']='',_0x5755f0['create']=function(_0x3337b0){return new _0x5755f0(_0x3337b0);},_0x5755f0['encode']=function(_0x384a9d,_0x285b93){return _0x285b93||(_0x285b93=_0x320e1c['create']()),null!=_0x384a9d['commentThreadId']&&Object['hasOwnProperty']['call'](_0x384a9d,'commentThreadId')&&_0x285b93['uint32'](0xa)['string'](_0x384a9d['commentThreadId']),null!=_0x384a9d['documentId']&&Object['hasOwnProperty']['call'](_0x384a9d,'documentId')&&_0x285b93['uint32'](0x12)['string'](_0x384a9d['documentId']),_0x285b93;},_0x5755f0['encodeDelimited']=function(_0x4fa063,_0x140d90){return this['encode'](_0x4fa063,_0x140d90)['ldelim']();},_0x5755f0['decode']=function(_0x3e3426,_0x5acf10,_0x49fdb9){_0x3e3426 instanceof _0x254bdb||(_0x3e3426=_0x254bdb['create'](_0x3e3426));for(var _0xae9e0a=void 0x0===_0x5acf10?_0x3e3426['len']:_0x3e3426['pos']+_0x5acf10,_0x49eca1=new _0xdb1853['CommentsV2ReopenCommentThreadMessage']();_0x3e3426['pos']<_0xae9e0a;){var _0x14d489=_0x3e3426['uint32']();if(_0x14d489===_0x49fdb9)break;switch(_0x14d489>>>0x3){case 0x1:_0x49eca1['commentThreadId']=_0x3e3426['string']();break;case 0x2:_0x49eca1['documentId']=_0x3e3426['string']();break;default:_0x3e3426['skipType'](0x7&_0x14d489);}}return _0x49eca1;},_0x5755f0['decodeDelimited']=function(_0x1de5f1){return _0x1de5f1 instanceof _0x254bdb||(_0x1de5f1=new _0x254bdb(_0x1de5f1)),this['decode'](_0x1de5f1,_0x1de5f1['uint32']());},_0x5755f0['verify']=function(_0x5ae4ec){return'object'!=typeof _0x5ae4ec||null===_0x5ae4ec?'object\x20expected':null!=_0x5ae4ec['commentThreadId']&&_0x5ae4ec['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x5ae4ec['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x5ae4ec['documentId']&&_0x5ae4ec['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x5ae4ec['documentId'])?'documentId:\x20string\x20expected':null;},_0x5755f0['fromObject']=function(_0x1ed43e){if(_0x1ed43e instanceof _0xdb1853['CommentsV2ReopenCommentThreadMessage'])return _0x1ed43e;var _0x387514=new _0xdb1853['CommentsV2ReopenCommentThreadMessage']();return null!=_0x1ed43e['commentThreadId']&&(_0x387514['commentThreadId']=String(_0x1ed43e['commentThreadId'])),null!=_0x1ed43e['documentId']&&(_0x387514['documentId']=String(_0x1ed43e['documentId'])),_0x387514;},_0x5755f0['toObject']=function(_0x4b054a,_0x378381){_0x378381||(_0x378381={});var _0x157966={};return _0x378381['defaults']&&(_0x157966['commentThreadId']='',_0x157966['documentId']=''),null!=_0x4b054a['commentThreadId']&&_0x4b054a['hasOwnProperty']('commentThreadId')&&(_0x157966['commentThreadId']=_0x4b054a['commentThreadId']),null!=_0x4b054a['documentId']&&_0x4b054a['hasOwnProperty']('documentId')&&(_0x157966['documentId']=_0x4b054a['documentId']),_0x157966;},_0x5755f0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5755f0['getTypeUrl']=function(_0x565ff1){return void 0x0===_0x565ff1&&(_0x565ff1='type.googleapis.com'),_0x565ff1+'/CommentsV2ReopenCommentThreadMessage';},_0x5755f0;}()),_0xdb1853['CommentsV2AddCommentThreadMessage']=(function(){function _0x1c4838(_0xcd76cb){if(this['comments']=[],_0xcd76cb){for(var _0x5d22a3=Object['keys'](_0xcd76cb),_0x3d2301=0x0;_0x3d2301<_0x5d22a3['length'];++_0x3d2301)null!=_0xcd76cb[_0x5d22a3[_0x3d2301]]&&(this[_0x5d22a3[_0x3d2301]]=_0xcd76cb[_0x5d22a3[_0x3d2301]]);}}return _0x1c4838['prototype']['documentId']='',_0x1c4838['prototype']['commentThreadId']='',_0x1c4838['prototype']['context']='',_0x1c4838['prototype']['createdAt']='',_0x1c4838['prototype']['resolvedAt']='',_0x1c4838['prototype']['resolvedBy']='',_0x1c4838['prototype']['attributes']='',_0x1c4838['prototype']['deletedAt']='',_0x1c4838['prototype']['comments']=_0x32c136['emptyArray'],_0x1c4838['create']=function(_0x207e55){return new _0x1c4838(_0x207e55);},_0x1c4838['encode']=function(_0x2f26be,_0x13c884){if(_0x13c884||(_0x13c884=_0x320e1c['create']()),null!=_0x2f26be['documentId']&&Object['hasOwnProperty']['call'](_0x2f26be,'documentId')&&_0x13c884['uint32'](0xa)['string'](_0x2f26be['documentId']),null!=_0x2f26be['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2f26be,'commentThreadId')&&_0x13c884['uint32'](0x12)['string'](_0x2f26be['commentThreadId']),null!=_0x2f26be['context']&&Object['hasOwnProperty']['call'](_0x2f26be,'context')&&_0x13c884['uint32'](0x1a)['string'](_0x2f26be['context']),null!=_0x2f26be['createdAt']&&Object['hasOwnProperty']['call'](_0x2f26be,'createdAt')&&_0x13c884['uint32'](0x22)['string'](_0x2f26be['createdAt']),null!=_0x2f26be['resolvedAt']&&Object['hasOwnProperty']['call'](_0x2f26be,'resolvedAt')&&_0x13c884['uint32'](0x2a)['string'](_0x2f26be['resolvedAt']),null!=_0x2f26be['resolvedBy']&&Object['hasOwnProperty']['call'](_0x2f26be,'resolvedBy')&&_0x13c884['uint32'](0x32)['string'](_0x2f26be['resolvedBy']),null!=_0x2f26be['attributes']&&Object['hasOwnProperty']['call'](_0x2f26be,'attributes')&&_0x13c884['uint32'](0x3a)['string'](_0x2f26be['attributes']),null!=_0x2f26be['deletedAt']&&Object['hasOwnProperty']['call'](_0x2f26be,'deletedAt')&&_0x13c884['uint32'](0x42)['string'](_0x2f26be['deletedAt']),null!=_0x2f26be['comments']&&_0x2f26be['comments']['length']){for(var _0x41a3aa=0x0;_0x41a3aa<_0x2f26be['comments']['length'];++_0x41a3aa)_0xdb1853['CommentDescriptor']['encode'](_0x2f26be['comments'][_0x41a3aa],_0x13c884['uint32'](0x4a)['fork']())['ldelim']();}return _0x13c884;},_0x1c4838['encodeDelimited']=function(_0x1deb49,_0x2b7e86){return this['encode'](_0x1deb49,_0x2b7e86)['ldelim']();},_0x1c4838['decode']=function(_0x25ae87,_0x4f4555,_0x2951c7){_0x25ae87 instanceof _0x254bdb||(_0x25ae87=_0x254bdb['create'](_0x25ae87));for(var _0x3b7c99=void 0x0===_0x4f4555?_0x25ae87['len']:_0x25ae87['pos']+_0x4f4555,_0x15150b=new _0xdb1853['CommentsV2AddCommentThreadMessage']();_0x25ae87['pos']<_0x3b7c99;){var _0x1af6f9=_0x25ae87['uint32']();if(_0x1af6f9===_0x2951c7)break;switch(_0x1af6f9>>>0x3){case 0x1:_0x15150b['documentId']=_0x25ae87['string']();break;case 0x2:_0x15150b['commentThreadId']=_0x25ae87['string']();break;case 0x3:_0x15150b['context']=_0x25ae87['string']();break;case 0x4:_0x15150b['createdAt']=_0x25ae87['string']();break;case 0x5:_0x15150b['resolvedAt']=_0x25ae87['string']();break;case 0x6:_0x15150b['resolvedBy']=_0x25ae87['string']();break;case 0x7:_0x15150b['attributes']=_0x25ae87['string']();break;case 0x8:_0x15150b['deletedAt']=_0x25ae87['string']();break;case 0x9:_0x15150b['comments']&&_0x15150b['comments']['length']||(_0x15150b['comments']=[]),_0x15150b['comments']['push'](_0xdb1853['CommentDescriptor']['decode'](_0x25ae87,_0x25ae87['uint32']()));break;default:_0x25ae87['skipType'](0x7&_0x1af6f9);}}return _0x15150b;},_0x1c4838['decodeDelimited']=function(_0x2fff6b){return _0x2fff6b instanceof _0x254bdb||(_0x2fff6b=new _0x254bdb(_0x2fff6b)),this['decode'](_0x2fff6b,_0x2fff6b['uint32']());},_0x1c4838['verify']=function(_0x303289){if('object'!=typeof _0x303289||null===_0x303289)return'object\x20expected';if(null!=_0x303289['documentId']&&_0x303289['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x303289['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x303289['commentThreadId']&&_0x303289['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x303289['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x303289['context']&&_0x303289['hasOwnProperty']('context')&&!_0x32c136['isString'](_0x303289['context']))return'context:\x20string\x20expected';if(null!=_0x303289['createdAt']&&_0x303289['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0x303289['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x303289['resolvedAt']&&_0x303289['hasOwnProperty']('resolvedAt')&&!_0x32c136['isString'](_0x303289['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x303289['resolvedBy']&&_0x303289['hasOwnProperty']('resolvedBy')&&!_0x32c136['isString'](_0x303289['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x303289['attributes']&&_0x303289['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x303289['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x303289['deletedAt']&&_0x303289['hasOwnProperty']('deletedAt')&&!_0x32c136['isString'](_0x303289['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x303289['comments']&&_0x303289['hasOwnProperty']('comments')){if(!Array['isArray'](_0x303289['comments']))return'comments:\x20array\x20expected';for(var _0x3b1ae1=0x0;_0x3b1ae1<_0x303289['comments']['length'];++_0x3b1ae1){var _0x1d6657=_0xdb1853['CommentDescriptor']['verify'](_0x303289['comments'][_0x3b1ae1]);if(_0x1d6657)return'comments.'+_0x1d6657;}}return null;},_0x1c4838['fromObject']=function(_0x1f3f03){if(_0x1f3f03 instanceof _0xdb1853['CommentsV2AddCommentThreadMessage'])return _0x1f3f03;var _0x210475=new _0xdb1853['CommentsV2AddCommentThreadMessage']();if(null!=_0x1f3f03['documentId']&&(_0x210475['documentId']=String(_0x1f3f03['documentId'])),null!=_0x1f3f03['commentThreadId']&&(_0x210475['commentThreadId']=String(_0x1f3f03['commentThreadId'])),null!=_0x1f3f03['context']&&(_0x210475['context']=String(_0x1f3f03['context'])),null!=_0x1f3f03['createdAt']&&(_0x210475['createdAt']=String(_0x1f3f03['createdAt'])),null!=_0x1f3f03['resolvedAt']&&(_0x210475['resolvedAt']=String(_0x1f3f03['resolvedAt'])),null!=_0x1f3f03['resolvedBy']&&(_0x210475['resolvedBy']=String(_0x1f3f03['resolvedBy'])),null!=_0x1f3f03['attributes']&&(_0x210475['attributes']=String(_0x1f3f03['attributes'])),null!=_0x1f3f03['deletedAt']&&(_0x210475['deletedAt']=String(_0x1f3f03['deletedAt'])),_0x1f3f03['comments']){if(!Array['isArray'](_0x1f3f03['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0x210475['comments']=[];for(var _0x4dd5c9=0x0;_0x4dd5c9<_0x1f3f03['comments']['length'];++_0x4dd5c9){if('object'!=typeof _0x1f3f03['comments'][_0x4dd5c9])throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0x210475['comments'][_0x4dd5c9]=_0xdb1853['CommentDescriptor']['fromObject'](_0x1f3f03['comments'][_0x4dd5c9]);}}return _0x210475;},_0x1c4838['toObject']=function(_0x42d7b5,_0x25acd2){_0x25acd2||(_0x25acd2={});var _0x3f4055={};if((_0x25acd2['arrays']||_0x25acd2['defaults'])&&(_0x3f4055['comments']=[]),_0x25acd2['defaults']&&(_0x3f4055['documentId']='',_0x3f4055['commentThreadId']='',_0x3f4055['context']='',_0x3f4055['createdAt']='',_0x3f4055['resolvedAt']='',_0x3f4055['resolvedBy']='',_0x3f4055['attributes']='',_0x3f4055['deletedAt']=''),null!=_0x42d7b5['documentId']&&_0x42d7b5['hasOwnProperty']('documentId')&&(_0x3f4055['documentId']=_0x42d7b5['documentId']),null!=_0x42d7b5['commentThreadId']&&_0x42d7b5['hasOwnProperty']('commentThreadId')&&(_0x3f4055['commentThreadId']=_0x42d7b5['commentThreadId']),null!=_0x42d7b5['context']&&_0x42d7b5['hasOwnProperty']('context')&&(_0x3f4055['context']=_0x42d7b5['context']),null!=_0x42d7b5['createdAt']&&_0x42d7b5['hasOwnProperty']('createdAt')&&(_0x3f4055['createdAt']=_0x42d7b5['createdAt']),null!=_0x42d7b5['resolvedAt']&&_0x42d7b5['hasOwnProperty']('resolvedAt')&&(_0x3f4055['resolvedAt']=_0x42d7b5['resolvedAt']),null!=_0x42d7b5['resolvedBy']&&_0x42d7b5['hasOwnProperty']('resolvedBy')&&(_0x3f4055['resolvedBy']=_0x42d7b5['resolvedBy']),null!=_0x42d7b5['attributes']&&_0x42d7b5['hasOwnProperty']('attributes')&&(_0x3f4055['attributes']=_0x42d7b5['attributes']),null!=_0x42d7b5['deletedAt']&&_0x42d7b5['hasOwnProperty']('deletedAt')&&(_0x3f4055['deletedAt']=_0x42d7b5['deletedAt']),_0x42d7b5['comments']&&_0x42d7b5['comments']['length']){_0x3f4055['comments']=[];for(var _0x1b86ce=0x0;_0x1b86ce<_0x42d7b5['comments']['length'];++_0x1b86ce)_0x3f4055['comments'][_0x1b86ce]=_0xdb1853['CommentDescriptor']['toObject'](_0x42d7b5['comments'][_0x1b86ce],_0x25acd2);}return _0x3f4055;},_0x1c4838['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1c4838['getTypeUrl']=function(_0x43ef7c){return void 0x0===_0x43ef7c&&(_0x43ef7c='type.googleapis.com'),_0x43ef7c+'/CommentsV2AddCommentThreadMessage';},_0x1c4838;}()),_0xdb1853['CommentThreadAddedCommentDescriptor']=(function(){function _0x220f1e(_0x1750f6){if(_0x1750f6){for(var _0x3720d1=Object['keys'](_0x1750f6),_0x9cb70=0x0;_0x9cb70<_0x3720d1['length'];++_0x9cb70)null!=_0x1750f6[_0x3720d1[_0x9cb70]]&&(this[_0x3720d1[_0x9cb70]]=_0x1750f6[_0x3720d1[_0x9cb70]]);}}return _0x220f1e['prototype']['commentId']='',_0x220f1e['prototype']['createdAt']='',_0x220f1e['create']=function(_0x1c6db3){return new _0x220f1e(_0x1c6db3);},_0x220f1e['encode']=function(_0x3435b0,_0x2ebfb4){return _0x2ebfb4||(_0x2ebfb4=_0x320e1c['create']()),null!=_0x3435b0['commentId']&&Object['hasOwnProperty']['call'](_0x3435b0,'commentId')&&_0x2ebfb4['uint32'](0xa)['string'](_0x3435b0['commentId']),null!=_0x3435b0['createdAt']&&Object['hasOwnProperty']['call'](_0x3435b0,'createdAt')&&_0x2ebfb4['uint32'](0x12)['string'](_0x3435b0['createdAt']),_0x2ebfb4;},_0x220f1e['encodeDelimited']=function(_0x2d5a65,_0x52cc5b){return this['encode'](_0x2d5a65,_0x52cc5b)['ldelim']();},_0x220f1e['decode']=function(_0x58f11b,_0xc8476f,_0x3930e9){_0x58f11b instanceof _0x254bdb||(_0x58f11b=_0x254bdb['create'](_0x58f11b));for(var _0x379ac8=void 0x0===_0xc8476f?_0x58f11b['len']:_0x58f11b['pos']+_0xc8476f,_0x5ea448=new _0xdb1853['CommentThreadAddedCommentDescriptor']();_0x58f11b['pos']<_0x379ac8;){var _0x562ce9=_0x58f11b['uint32']();if(_0x562ce9===_0x3930e9)break;switch(_0x562ce9>>>0x3){case 0x1:_0x5ea448['commentId']=_0x58f11b['string']();break;case 0x2:_0x5ea448['createdAt']=_0x58f11b['string']();break;default:_0x58f11b['skipType'](0x7&_0x562ce9);}}return _0x5ea448;},_0x220f1e['decodeDelimited']=function(_0x216cbb){return _0x216cbb instanceof _0x254bdb||(_0x216cbb=new _0x254bdb(_0x216cbb)),this['decode'](_0x216cbb,_0x216cbb['uint32']());},_0x220f1e['verify']=function(_0x3ad1aa){return'object'!=typeof _0x3ad1aa||null===_0x3ad1aa?'object\x20expected':null!=_0x3ad1aa['commentId']&&_0x3ad1aa['hasOwnProperty']('commentId')&&!_0x32c136['isString'](_0x3ad1aa['commentId'])?'commentId:\x20string\x20expected':null!=_0x3ad1aa['createdAt']&&_0x3ad1aa['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0x3ad1aa['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x220f1e['fromObject']=function(_0x5ac046){if(_0x5ac046 instanceof _0xdb1853['CommentThreadAddedCommentDescriptor'])return _0x5ac046;var _0x2a739a=new _0xdb1853['CommentThreadAddedCommentDescriptor']();return null!=_0x5ac046['commentId']&&(_0x2a739a['commentId']=String(_0x5ac046['commentId'])),null!=_0x5ac046['createdAt']&&(_0x2a739a['createdAt']=String(_0x5ac046['createdAt'])),_0x2a739a;},_0x220f1e['toObject']=function(_0x527b9d,_0x661a4c){_0x661a4c||(_0x661a4c={});var _0x19845d={};return _0x661a4c['defaults']&&(_0x19845d['commentId']='',_0x19845d['createdAt']=''),null!=_0x527b9d['commentId']&&_0x527b9d['hasOwnProperty']('commentId')&&(_0x19845d['commentId']=_0x527b9d['commentId']),null!=_0x527b9d['createdAt']&&_0x527b9d['hasOwnProperty']('createdAt')&&(_0x19845d['createdAt']=_0x527b9d['createdAt']),_0x19845d;},_0x220f1e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x220f1e['getTypeUrl']=function(_0x251d66){return void 0x0===_0x251d66&&(_0x251d66='type.googleapis.com'),_0x251d66+'/CommentThreadAddedCommentDescriptor';},_0x220f1e;}()),_0xdb1853['CommentsThreadDescriptor']=(function(){function _0x523338(_0x23fbb1){if(this['comments']=[],_0x23fbb1){for(var _0x51872a=Object['keys'](_0x23fbb1),_0xfedec7=0x0;_0xfedec7<_0x51872a['length'];++_0xfedec7)null!=_0x23fbb1[_0x51872a[_0xfedec7]]&&(this[_0x51872a[_0xfedec7]]=_0x23fbb1[_0x51872a[_0xfedec7]]);}}return _0x523338['prototype']['commentThreadId']='',_0x523338['prototype']['comments']=_0x32c136['emptyArray'],_0x523338['prototype']['resolvedAt']='',_0x523338['prototype']['resolvedBy']='',_0x523338['prototype']['context']='',_0x523338['prototype']['createdAt']='',_0x523338['prototype']['deletedAt']='',_0x523338['prototype']['attributes']='',_0x523338['prototype']['unlinkedAt']='',_0x523338['create']=function(_0x21941c){return new _0x523338(_0x21941c);},_0x523338['encode']=function(_0x54bc2f,_0x1eb9aa){if(_0x1eb9aa||(_0x1eb9aa=_0x320e1c['create']()),null!=_0x54bc2f['commentThreadId']&&Object['hasOwnProperty']['call'](_0x54bc2f,'commentThreadId')&&_0x1eb9aa['uint32'](0xa)['string'](_0x54bc2f['commentThreadId']),null!=_0x54bc2f['comments']&&_0x54bc2f['comments']['length']){for(var _0x115580=0x0;_0x115580<_0x54bc2f['comments']['length'];++_0x115580)_0xdb1853['CommentDescriptor']['encode'](_0x54bc2f['comments'][_0x115580],_0x1eb9aa['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x54bc2f['resolvedAt']&&Object['hasOwnProperty']['call'](_0x54bc2f,'resolvedAt')&&_0x1eb9aa['uint32'](0x1a)['string'](_0x54bc2f['resolvedAt']),null!=_0x54bc2f['resolvedBy']&&Object['hasOwnProperty']['call'](_0x54bc2f,'resolvedBy')&&_0x1eb9aa['uint32'](0x22)['string'](_0x54bc2f['resolvedBy']),null!=_0x54bc2f['context']&&Object['hasOwnProperty']['call'](_0x54bc2f,'context')&&_0x1eb9aa['uint32'](0x2a)['string'](_0x54bc2f['context']),null!=_0x54bc2f['createdAt']&&Object['hasOwnProperty']['call'](_0x54bc2f,'createdAt')&&_0x1eb9aa['uint32'](0x32)['string'](_0x54bc2f['createdAt']),null!=_0x54bc2f['deletedAt']&&Object['hasOwnProperty']['call'](_0x54bc2f,'deletedAt')&&_0x1eb9aa['uint32'](0x3a)['string'](_0x54bc2f['deletedAt']),null!=_0x54bc2f['attributes']&&Object['hasOwnProperty']['call'](_0x54bc2f,'attributes')&&_0x1eb9aa['uint32'](0x42)['string'](_0x54bc2f['attributes']),null!=_0x54bc2f['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x54bc2f,'unlinkedAt')&&_0x1eb9aa['uint32'](0x4a)['string'](_0x54bc2f['unlinkedAt']),_0x1eb9aa;},_0x523338['encodeDelimited']=function(_0x42298f,_0x28c9ef){return this['encode'](_0x42298f,_0x28c9ef)['ldelim']();},_0x523338['decode']=function(_0x41d5b9,_0x1511e5,_0x50dc44){_0x41d5b9 instanceof _0x254bdb||(_0x41d5b9=_0x254bdb['create'](_0x41d5b9));for(var _0x264191=void 0x0===_0x1511e5?_0x41d5b9['len']:_0x41d5b9['pos']+_0x1511e5,_0x1a8579=new _0xdb1853['CommentsThreadDescriptor']();_0x41d5b9['pos']<_0x264191;){var _0x3af52f=_0x41d5b9['uint32']();if(_0x3af52f===_0x50dc44)break;switch(_0x3af52f>>>0x3){case 0x1:_0x1a8579['commentThreadId']=_0x41d5b9['string']();break;case 0x2:_0x1a8579['comments']&&_0x1a8579['comments']['length']||(_0x1a8579['comments']=[]),_0x1a8579['comments']['push'](_0xdb1853['CommentDescriptor']['decode'](_0x41d5b9,_0x41d5b9['uint32']()));break;case 0x3:_0x1a8579['resolvedAt']=_0x41d5b9['string']();break;case 0x4:_0x1a8579['resolvedBy']=_0x41d5b9['string']();break;case 0x5:_0x1a8579['context']=_0x41d5b9['string']();break;case 0x6:_0x1a8579['createdAt']=_0x41d5b9['string']();break;case 0x7:_0x1a8579['deletedAt']=_0x41d5b9['string']();break;case 0x8:_0x1a8579['attributes']=_0x41d5b9['string']();break;case 0x9:_0x1a8579['unlinkedAt']=_0x41d5b9['string']();break;default:_0x41d5b9['skipType'](0x7&_0x3af52f);}}return _0x1a8579;},_0x523338['decodeDelimited']=function(_0x44de34){return _0x44de34 instanceof _0x254bdb||(_0x44de34=new _0x254bdb(_0x44de34)),this['decode'](_0x44de34,_0x44de34['uint32']());},_0x523338['verify']=function(_0x3bb5fb){if('object'!=typeof _0x3bb5fb||null===_0x3bb5fb)return'object\x20expected';if(null!=_0x3bb5fb['commentThreadId']&&_0x3bb5fb['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x3bb5fb['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x3bb5fb['comments']&&_0x3bb5fb['hasOwnProperty']('comments')){if(!Array['isArray'](_0x3bb5fb['comments']))return'comments:\x20array\x20expected';for(var _0x23a7a8=0x0;_0x23a7a8<_0x3bb5fb['comments']['length'];++_0x23a7a8){var _0xa1f5c4=_0xdb1853['CommentDescriptor']['verify'](_0x3bb5fb['comments'][_0x23a7a8]);if(_0xa1f5c4)return'comments.'+_0xa1f5c4;}}return null!=_0x3bb5fb['resolvedAt']&&_0x3bb5fb['hasOwnProperty']('resolvedAt')&&!_0x32c136['isString'](_0x3bb5fb['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x3bb5fb['resolvedBy']&&_0x3bb5fb['hasOwnProperty']('resolvedBy')&&!_0x32c136['isString'](_0x3bb5fb['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x3bb5fb['context']&&_0x3bb5fb['hasOwnProperty']('context')&&!_0x32c136['isString'](_0x3bb5fb['context'])?'context:\x20string\x20expected':null!=_0x3bb5fb['createdAt']&&_0x3bb5fb['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0x3bb5fb['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3bb5fb['deletedAt']&&_0x3bb5fb['hasOwnProperty']('deletedAt')&&!_0x32c136['isString'](_0x3bb5fb['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x3bb5fb['attributes']&&_0x3bb5fb['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x3bb5fb['attributes'])?'attributes:\x20string\x20expected':null!=_0x3bb5fb['unlinkedAt']&&_0x3bb5fb['hasOwnProperty']('unlinkedAt')&&!_0x32c136['isString'](_0x3bb5fb['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x523338['fromObject']=function(_0x3c5f2c){if(_0x3c5f2c instanceof _0xdb1853['CommentsThreadDescriptor'])return _0x3c5f2c;var _0x442905=new _0xdb1853['CommentsThreadDescriptor']();if(null!=_0x3c5f2c['commentThreadId']&&(_0x442905['commentThreadId']=String(_0x3c5f2c['commentThreadId'])),_0x3c5f2c['comments']){if(!Array['isArray'](_0x3c5f2c['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x442905['comments']=[];for(var _0xd2f900=0x0;_0xd2f900<_0x3c5f2c['comments']['length'];++_0xd2f900){if('object'!=typeof _0x3c5f2c['comments'][_0xd2f900])throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x442905['comments'][_0xd2f900]=_0xdb1853['CommentDescriptor']['fromObject'](_0x3c5f2c['comments'][_0xd2f900]);}}return null!=_0x3c5f2c['resolvedAt']&&(_0x442905['resolvedAt']=String(_0x3c5f2c['resolvedAt'])),null!=_0x3c5f2c['resolvedBy']&&(_0x442905['resolvedBy']=String(_0x3c5f2c['resolvedBy'])),null!=_0x3c5f2c['context']&&(_0x442905['context']=String(_0x3c5f2c['context'])),null!=_0x3c5f2c['createdAt']&&(_0x442905['createdAt']=String(_0x3c5f2c['createdAt'])),null!=_0x3c5f2c['deletedAt']&&(_0x442905['deletedAt']=String(_0x3c5f2c['deletedAt'])),null!=_0x3c5f2c['attributes']&&(_0x442905['attributes']=String(_0x3c5f2c['attributes'])),null!=_0x3c5f2c['unlinkedAt']&&(_0x442905['unlinkedAt']=String(_0x3c5f2c['unlinkedAt'])),_0x442905;},_0x523338['toObject']=function(_0x15a7aa,_0x481328){_0x481328||(_0x481328={});var _0x3c97d2={};if((_0x481328['arrays']||_0x481328['defaults'])&&(_0x3c97d2['comments']=[]),_0x481328['defaults']&&(_0x3c97d2['commentThreadId']='',_0x3c97d2['resolvedAt']='',_0x3c97d2['resolvedBy']='',_0x3c97d2['context']='',_0x3c97d2['createdAt']='',_0x3c97d2['deletedAt']='',_0x3c97d2['attributes']='',_0x3c97d2['unlinkedAt']=''),null!=_0x15a7aa['commentThreadId']&&_0x15a7aa['hasOwnProperty']('commentThreadId')&&(_0x3c97d2['commentThreadId']=_0x15a7aa['commentThreadId']),_0x15a7aa['comments']&&_0x15a7aa['comments']['length']){_0x3c97d2['comments']=[];for(var _0x133493=0x0;_0x133493<_0x15a7aa['comments']['length'];++_0x133493)_0x3c97d2['comments'][_0x133493]=_0xdb1853['CommentDescriptor']['toObject'](_0x15a7aa['comments'][_0x133493],_0x481328);}return null!=_0x15a7aa['resolvedAt']&&_0x15a7aa['hasOwnProperty']('resolvedAt')&&(_0x3c97d2['resolvedAt']=_0x15a7aa['resolvedAt']),null!=_0x15a7aa['resolvedBy']&&_0x15a7aa['hasOwnProperty']('resolvedBy')&&(_0x3c97d2['resolvedBy']=_0x15a7aa['resolvedBy']),null!=_0x15a7aa['context']&&_0x15a7aa['hasOwnProperty']('context')&&(_0x3c97d2['context']=_0x15a7aa['context']),null!=_0x15a7aa['createdAt']&&_0x15a7aa['hasOwnProperty']('createdAt')&&(_0x3c97d2['createdAt']=_0x15a7aa['createdAt']),null!=_0x15a7aa['deletedAt']&&_0x15a7aa['hasOwnProperty']('deletedAt')&&(_0x3c97d2['deletedAt']=_0x15a7aa['deletedAt']),null!=_0x15a7aa['attributes']&&_0x15a7aa['hasOwnProperty']('attributes')&&(_0x3c97d2['attributes']=_0x15a7aa['attributes']),null!=_0x15a7aa['unlinkedAt']&&_0x15a7aa['hasOwnProperty']('unlinkedAt')&&(_0x3c97d2['unlinkedAt']=_0x15a7aa['unlinkedAt']),_0x3c97d2;},_0x523338['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x523338['getTypeUrl']=function(_0x3a1fd6){return void 0x0===_0x3a1fd6&&(_0x3a1fd6='type.googleapis.com'),_0x3a1fd6+'/CommentsThreadDescriptor';},_0x523338;}()),_0xdb1853['CommentDescriptor']=(function(){function _0x1d6513(_0x4a1860){if(_0x4a1860){for(var _0x8b971f=Object['keys'](_0x4a1860),_0x23b07a=0x0;_0x23b07a<_0x8b971f['length'];++_0x23b07a)null!=_0x4a1860[_0x8b971f[_0x23b07a]]&&(this[_0x8b971f[_0x23b07a]]=_0x4a1860[_0x8b971f[_0x23b07a]]);}}return _0x1d6513['prototype']['commentId']='',_0x1d6513['prototype']['commentThreadId']='',_0x1d6513['prototype']['userId']='',_0x1d6513['prototype']['content']='',_0x1d6513['prototype']['documentId']='',_0x1d6513['prototype']['createdAt']='',_0x1d6513['prototype']['attributes']='',_0x1d6513['create']=function(_0x38e9ff){return new _0x1d6513(_0x38e9ff);},_0x1d6513['encode']=function(_0x54422c,_0x1791e1){return _0x1791e1||(_0x1791e1=_0x320e1c['create']()),null!=_0x54422c['commentId']&&Object['hasOwnProperty']['call'](_0x54422c,'commentId')&&_0x1791e1['uint32'](0xa)['string'](_0x54422c['commentId']),null!=_0x54422c['commentThreadId']&&Object['hasOwnProperty']['call'](_0x54422c,'commentThreadId')&&_0x1791e1['uint32'](0x12)['string'](_0x54422c['commentThreadId']),null!=_0x54422c['userId']&&Object['hasOwnProperty']['call'](_0x54422c,'userId')&&_0x1791e1['uint32'](0x1a)['string'](_0x54422c['userId']),null!=_0x54422c['content']&&Object['hasOwnProperty']['call'](_0x54422c,'content')&&_0x1791e1['uint32'](0x22)['string'](_0x54422c['content']),null!=_0x54422c['documentId']&&Object['hasOwnProperty']['call'](_0x54422c,'documentId')&&_0x1791e1['uint32'](0x2a)['string'](_0x54422c['documentId']),null!=_0x54422c['createdAt']&&Object['hasOwnProperty']['call'](_0x54422c,'createdAt')&&_0x1791e1['uint32'](0x32)['string'](_0x54422c['createdAt']),null!=_0x54422c['attributes']&&Object['hasOwnProperty']['call'](_0x54422c,'attributes')&&_0x1791e1['uint32'](0x3a)['string'](_0x54422c['attributes']),_0x1791e1;},_0x1d6513['encodeDelimited']=function(_0x4fd378,_0xdf34c6){return this['encode'](_0x4fd378,_0xdf34c6)['ldelim']();},_0x1d6513['decode']=function(_0x4e3fbe,_0x586abb,_0x2bc02a){_0x4e3fbe instanceof _0x254bdb||(_0x4e3fbe=_0x254bdb['create'](_0x4e3fbe));for(var _0x22f83c=void 0x0===_0x586abb?_0x4e3fbe['len']:_0x4e3fbe['pos']+_0x586abb,_0x497cd0=new _0xdb1853['CommentDescriptor']();_0x4e3fbe['pos']<_0x22f83c;){var _0x2d837e=_0x4e3fbe['uint32']();if(_0x2d837e===_0x2bc02a)break;switch(_0x2d837e>>>0x3){case 0x1:_0x497cd0['commentId']=_0x4e3fbe['string']();break;case 0x2:_0x497cd0['commentThreadId']=_0x4e3fbe['string']();break;case 0x3:_0x497cd0['userId']=_0x4e3fbe['string']();break;case 0x4:_0x497cd0['content']=_0x4e3fbe['string']();break;case 0x5:_0x497cd0['documentId']=_0x4e3fbe['string']();break;case 0x6:_0x497cd0['createdAt']=_0x4e3fbe['string']();break;case 0x7:_0x497cd0['attributes']=_0x4e3fbe['string']();break;default:_0x4e3fbe['skipType'](0x7&_0x2d837e);}}return _0x497cd0;},_0x1d6513['decodeDelimited']=function(_0xfe38d8){return _0xfe38d8 instanceof _0x254bdb||(_0xfe38d8=new _0x254bdb(_0xfe38d8)),this['decode'](_0xfe38d8,_0xfe38d8['uint32']());},_0x1d6513['verify']=function(_0x5fa89d){return'object'!=typeof _0x5fa89d||null===_0x5fa89d?'object\x20expected':null!=_0x5fa89d['commentId']&&_0x5fa89d['hasOwnProperty']('commentId')&&!_0x32c136['isString'](_0x5fa89d['commentId'])?'commentId:\x20string\x20expected':null!=_0x5fa89d['commentThreadId']&&_0x5fa89d['hasOwnProperty']('commentThreadId')&&!_0x32c136['isString'](_0x5fa89d['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x5fa89d['userId']&&_0x5fa89d['hasOwnProperty']('userId')&&!_0x32c136['isString'](_0x5fa89d['userId'])?'userId:\x20string\x20expected':null!=_0x5fa89d['content']&&_0x5fa89d['hasOwnProperty']('content')&&!_0x32c136['isString'](_0x5fa89d['content'])?'content:\x20string\x20expected':null!=_0x5fa89d['documentId']&&_0x5fa89d['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x5fa89d['documentId'])?'documentId:\x20string\x20expected':null!=_0x5fa89d['createdAt']&&_0x5fa89d['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0x5fa89d['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x5fa89d['attributes']&&_0x5fa89d['hasOwnProperty']('attributes')&&!_0x32c136['isString'](_0x5fa89d['attributes'])?'attributes:\x20string\x20expected':null;},_0x1d6513['fromObject']=function(_0x4f6dbc){if(_0x4f6dbc instanceof _0xdb1853['CommentDescriptor'])return _0x4f6dbc;var _0x1ac162=new _0xdb1853['CommentDescriptor']();return null!=_0x4f6dbc['commentId']&&(_0x1ac162['commentId']=String(_0x4f6dbc['commentId'])),null!=_0x4f6dbc['commentThreadId']&&(_0x1ac162['commentThreadId']=String(_0x4f6dbc['commentThreadId'])),null!=_0x4f6dbc['userId']&&(_0x1ac162['userId']=String(_0x4f6dbc['userId'])),null!=_0x4f6dbc['content']&&(_0x1ac162['content']=String(_0x4f6dbc['content'])),null!=_0x4f6dbc['documentId']&&(_0x1ac162['documentId']=String(_0x4f6dbc['documentId'])),null!=_0x4f6dbc['createdAt']&&(_0x1ac162['createdAt']=String(_0x4f6dbc['createdAt'])),null!=_0x4f6dbc['attributes']&&(_0x1ac162['attributes']=String(_0x4f6dbc['attributes'])),_0x1ac162;},_0x1d6513['toObject']=function(_0x130fcb,_0x25ccd1){_0x25ccd1||(_0x25ccd1={});var _0x36111f={};return _0x25ccd1['defaults']&&(_0x36111f['commentId']='',_0x36111f['commentThreadId']='',_0x36111f['userId']='',_0x36111f['content']='',_0x36111f['documentId']='',_0x36111f['createdAt']='',_0x36111f['attributes']=''),null!=_0x130fcb['commentId']&&_0x130fcb['hasOwnProperty']('commentId')&&(_0x36111f['commentId']=_0x130fcb['commentId']),null!=_0x130fcb['commentThreadId']&&_0x130fcb['hasOwnProperty']('commentThreadId')&&(_0x36111f['commentThreadId']=_0x130fcb['commentThreadId']),null!=_0x130fcb['userId']&&_0x130fcb['hasOwnProperty']('userId')&&(_0x36111f['userId']=_0x130fcb['userId']),null!=_0x130fcb['content']&&_0x130fcb['hasOwnProperty']('content')&&(_0x36111f['content']=_0x130fcb['content']),null!=_0x130fcb['documentId']&&_0x130fcb['hasOwnProperty']('documentId')&&(_0x36111f['documentId']=_0x130fcb['documentId']),null!=_0x130fcb['createdAt']&&_0x130fcb['hasOwnProperty']('createdAt')&&(_0x36111f['createdAt']=_0x130fcb['createdAt']),null!=_0x130fcb['attributes']&&_0x130fcb['hasOwnProperty']('attributes')&&(_0x36111f['attributes']=_0x130fcb['attributes']),_0x36111f;},_0x1d6513['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1d6513['getTypeUrl']=function(_0x55916e){return void 0x0===_0x55916e&&(_0x55916e='type.googleapis.com'),_0x55916e+'/CommentDescriptor';},_0x1d6513;}()),_0xdb1853['GetDocumentDetailsResponse']=(function(){function _0x10eb38(_0x1e7f80){if(_0x1e7f80){for(var _0x3ee44c=Object['keys'](_0x1e7f80),_0x56497c=0x0;_0x56497c<_0x3ee44c['length'];++_0x56497c)null!=_0x1e7f80[_0x3ee44c[_0x56497c]]&&(this[_0x3ee44c[_0x56497c]]=_0x1e7f80[_0x3ee44c[_0x56497c]]);}}return _0x10eb38['prototype']['lastDocumentSessionId']='',_0x10eb38['prototype']['lastDocumentSessionOperationId']='',_0x10eb38['prototype']['currentDocumentSessionId']='',_0x10eb38['prototype']['currentDocumentSessionVersion']=0x0,_0x10eb38['prototype']['currentDocumentSessionOperationId']='',_0x10eb38['create']=function(_0x45afff){return new _0x10eb38(_0x45afff);},_0x10eb38['encode']=function(_0x34256b,_0x4a7238){return _0x4a7238||(_0x4a7238=_0x320e1c['create']()),null!=_0x34256b['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x34256b,'lastDocumentSessionId')&&_0x4a7238['uint32'](0xa)['string'](_0x34256b['lastDocumentSessionId']),null!=_0x34256b['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x34256b,'lastDocumentSessionOperationId')&&_0x4a7238['uint32'](0x12)['string'](_0x34256b['lastDocumentSessionOperationId']),null!=_0x34256b['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x34256b,'currentDocumentSessionId')&&_0x4a7238['uint32'](0x1a)['string'](_0x34256b['currentDocumentSessionId']),null!=_0x34256b['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x34256b,'currentDocumentSessionVersion')&&_0x4a7238['uint32'](0x20)['uint32'](_0x34256b['currentDocumentSessionVersion']),null!=_0x34256b['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x34256b,'currentDocumentSessionOperationId')&&_0x4a7238['uint32'](0x2a)['string'](_0x34256b['currentDocumentSessionOperationId']),_0x4a7238;},_0x10eb38['encodeDelimited']=function(_0x1a9ddf,_0x5e8ec7){return this['encode'](_0x1a9ddf,_0x5e8ec7)['ldelim']();},_0x10eb38['decode']=function(_0x40869d,_0x22fb0a,_0xd040a8){_0x40869d instanceof _0x254bdb||(_0x40869d=_0x254bdb['create'](_0x40869d));for(var _0x353650=void 0x0===_0x22fb0a?_0x40869d['len']:_0x40869d['pos']+_0x22fb0a,_0x4b29c1=new _0xdb1853['GetDocumentDetailsResponse']();_0x40869d['pos']<_0x353650;){var _0x5d1c22=_0x40869d['uint32']();if(_0x5d1c22===_0xd040a8)break;switch(_0x5d1c22>>>0x3){case 0x1:_0x4b29c1['lastDocumentSessionId']=_0x40869d['string']();break;case 0x2:_0x4b29c1['lastDocumentSessionOperationId']=_0x40869d['string']();break;case 0x3:_0x4b29c1['currentDocumentSessionId']=_0x40869d['string']();break;case 0x4:_0x4b29c1['currentDocumentSessionVersion']=_0x40869d['uint32']();break;case 0x5:_0x4b29c1['currentDocumentSessionOperationId']=_0x40869d['string']();break;default:_0x40869d['skipType'](0x7&_0x5d1c22);}}return _0x4b29c1;},_0x10eb38['decodeDelimited']=function(_0xce5cb3){return _0xce5cb3 instanceof _0x254bdb||(_0xce5cb3=new _0x254bdb(_0xce5cb3)),this['decode'](_0xce5cb3,_0xce5cb3['uint32']());},_0x10eb38['verify']=function(_0x415f1f){return'object'!=typeof _0x415f1f||null===_0x415f1f?'object\x20expected':null!=_0x415f1f['lastDocumentSessionId']&&_0x415f1f['hasOwnProperty']('lastDocumentSessionId')&&!_0x32c136['isString'](_0x415f1f['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x415f1f['lastDocumentSessionOperationId']&&_0x415f1f['hasOwnProperty']('lastDocumentSessionOperationId')&&!_0x32c136['isString'](_0x415f1f['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x415f1f['currentDocumentSessionId']&&_0x415f1f['hasOwnProperty']('currentDocumentSessionId')&&!_0x32c136['isString'](_0x415f1f['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x415f1f['currentDocumentSessionVersion']&&_0x415f1f['hasOwnProperty']('currentDocumentSessionVersion')&&!_0x32c136['isInteger'](_0x415f1f['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x415f1f['currentDocumentSessionOperationId']&&_0x415f1f['hasOwnProperty']('currentDocumentSessionOperationId')&&!_0x32c136['isString'](_0x415f1f['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null;},_0x10eb38['fromObject']=function(_0x3ac91d){if(_0x3ac91d instanceof _0xdb1853['GetDocumentDetailsResponse'])return _0x3ac91d;var _0x24faf7=new _0xdb1853['GetDocumentDetailsResponse']();return null!=_0x3ac91d['lastDocumentSessionId']&&(_0x24faf7['lastDocumentSessionId']=String(_0x3ac91d['lastDocumentSessionId'])),null!=_0x3ac91d['lastDocumentSessionOperationId']&&(_0x24faf7['lastDocumentSessionOperationId']=String(_0x3ac91d['lastDocumentSessionOperationId'])),null!=_0x3ac91d['currentDocumentSessionId']&&(_0x24faf7['currentDocumentSessionId']=String(_0x3ac91d['currentDocumentSessionId'])),null!=_0x3ac91d['currentDocumentSessionVersion']&&(_0x24faf7['currentDocumentSessionVersion']=_0x3ac91d['currentDocumentSessionVersion']>>>0x0),null!=_0x3ac91d['currentDocumentSessionOperationId']&&(_0x24faf7['currentDocumentSessionOperationId']=String(_0x3ac91d['currentDocumentSessionOperationId'])),_0x24faf7;},_0x10eb38['toObject']=function(_0x33c6bb,_0x586b5b){_0x586b5b||(_0x586b5b={});var _0x453cfb={};return _0x586b5b['defaults']&&(_0x453cfb['lastDocumentSessionId']='',_0x453cfb['lastDocumentSessionOperationId']='',_0x453cfb['currentDocumentSessionId']='',_0x453cfb['currentDocumentSessionVersion']=0x0,_0x453cfb['currentDocumentSessionOperationId']=''),null!=_0x33c6bb['lastDocumentSessionId']&&_0x33c6bb['hasOwnProperty']('lastDocumentSessionId')&&(_0x453cfb['lastDocumentSessionId']=_0x33c6bb['lastDocumentSessionId']),null!=_0x33c6bb['lastDocumentSessionOperationId']&&_0x33c6bb['hasOwnProperty']('lastDocumentSessionOperationId')&&(_0x453cfb['lastDocumentSessionOperationId']=_0x33c6bb['lastDocumentSessionOperationId']),null!=_0x33c6bb['currentDocumentSessionId']&&_0x33c6bb['hasOwnProperty']('currentDocumentSessionId')&&(_0x453cfb['currentDocumentSessionId']=_0x33c6bb['currentDocumentSessionId']),null!=_0x33c6bb['currentDocumentSessionVersion']&&_0x33c6bb['hasOwnProperty']('currentDocumentSessionVersion')&&(_0x453cfb['currentDocumentSessionVersion']=_0x33c6bb['currentDocumentSessionVersion']),null!=_0x33c6bb['currentDocumentSessionOperationId']&&_0x33c6bb['hasOwnProperty']('currentDocumentSessionOperationId')&&(_0x453cfb['currentDocumentSessionOperationId']=_0x33c6bb['currentDocumentSessionOperationId']),_0x453cfb;},_0x10eb38['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x10eb38['getTypeUrl']=function(_0x35afe2){return void 0x0===_0x35afe2&&(_0x35afe2='type.googleapis.com'),_0x35afe2+'/GetDocumentDetailsResponse';},_0x10eb38;}()),_0xdb1853['CollaborativeEditingResponse']=(function(){function _0x166a46(_0x5cb2d0){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x5cb2d0){for(var _0x43f189=Object['keys'](_0x5cb2d0),_0x5831ea=0x0;_0x5831ea<_0x43f189['length'];++_0x5831ea)null!=_0x5cb2d0[_0x43f189[_0x5831ea]]&&(this[_0x43f189[_0x5831ea]]=_0x5cb2d0[_0x43f189[_0x5831ea]]);}}return _0x166a46['prototype']['version']=0x0,_0x166a46['prototype']['buffers']=_0x32c136['emptyArray'],_0x166a46['prototype']['types']=_0x32c136['emptyArray'],_0x166a46['prototype']['metadata']=_0x32c136['emptyArray'],_0x166a46['prototype']['lastOperationId']='',_0x166a46['prototype']['lastOperationAcceptedAt']='',_0x166a46['create']=function(_0x483d00){return new _0x166a46(_0x483d00);},_0x166a46['encode']=function(_0x25b8d9,_0x220639){if(_0x220639||(_0x220639=_0x320e1c['create']()),null!=_0x25b8d9['version']&&Object['hasOwnProperty']['call'](_0x25b8d9,'version')&&_0x220639['uint32'](0x8)['uint32'](_0x25b8d9['version']),null!=_0x25b8d9['buffers']&&_0x25b8d9['buffers']['length']){for(var _0x2f569d=0x0;_0x2f569d<_0x25b8d9['buffers']['length'];++_0x2f569d)_0x220639['uint32'](0x12)['bytes'](_0x25b8d9['buffers'][_0x2f569d]);}if(null!=_0x25b8d9['types']&&_0x25b8d9['types']['length']){for(_0x220639['uint32'](0x1a)['fork'](),_0x2f569d=0x0;_0x2f569d<_0x25b8d9['types']['length'];++_0x2f569d)_0x220639['uint32'](_0x25b8d9['types'][_0x2f569d]);_0x220639['ldelim']();}if(null!=_0x25b8d9['metadata']&&_0x25b8d9['metadata']['length']){for(_0x2f569d=0x0;_0x2f569d<_0x25b8d9['metadata']['length'];++_0x2f569d)_0xdb1853['OperationMetadataDescriptor']['encode'](_0x25b8d9['metadata'][_0x2f569d],_0x220639['uint32'](0x2a)['fork']())['ldelim']();}return null!=_0x25b8d9['lastOperationId']&&Object['hasOwnProperty']['call'](_0x25b8d9,'lastOperationId')&&_0x220639['uint32'](0x32)['string'](_0x25b8d9['lastOperationId']),null!=_0x25b8d9['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x25b8d9,'lastOperationAcceptedAt')&&_0x220639['uint32'](0x3a)['string'](_0x25b8d9['lastOperationAcceptedAt']),_0x220639;},_0x166a46['encodeDelimited']=function(_0x300c7,_0x4d1275){return this['encode'](_0x300c7,_0x4d1275)['ldelim']();},_0x166a46['decode']=function(_0x46392e,_0x3a8f88,_0x3d4239){_0x46392e instanceof _0x254bdb||(_0x46392e=_0x254bdb['create'](_0x46392e));for(var _0x24027f=void 0x0===_0x3a8f88?_0x46392e['len']:_0x46392e['pos']+_0x3a8f88,_0x510b44=new _0xdb1853['CollaborativeEditingResponse']();_0x46392e['pos']<_0x24027f;){var _0x5f5a75=_0x46392e['uint32']();if(_0x5f5a75===_0x3d4239)break;switch(_0x5f5a75>>>0x3){case 0x1:_0x510b44['version']=_0x46392e['uint32']();break;case 0x2:_0x510b44['buffers']&&_0x510b44['buffers']['length']||(_0x510b44['buffers']=[]),_0x510b44['buffers']['push'](_0x46392e['bytes']());break;case 0x3:if(_0x510b44['types']&&_0x510b44['types']['length']||(_0x510b44['types']=[]),0x2==(0x7&_0x5f5a75)){for(var _0xfd1384=_0x46392e['uint32']()+_0x46392e['pos'];_0x46392e['pos']<_0xfd1384;)_0x510b44['types']['push'](_0x46392e['uint32']());}else _0x510b44['types']['push'](_0x46392e['uint32']());break;case 0x5:_0x510b44['metadata']&&_0x510b44['metadata']['length']||(_0x510b44['metadata']=[]),_0x510b44['metadata']['push'](_0xdb1853['OperationMetadataDescriptor']['decode'](_0x46392e,_0x46392e['uint32']()));break;case 0x6:_0x510b44['lastOperationId']=_0x46392e['string']();break;case 0x7:_0x510b44['lastOperationAcceptedAt']=_0x46392e['string']();break;default:_0x46392e['skipType'](0x7&_0x5f5a75);}}return _0x510b44;},_0x166a46['decodeDelimited']=function(_0x3600e6){return _0x3600e6 instanceof _0x254bdb||(_0x3600e6=new _0x254bdb(_0x3600e6)),this['decode'](_0x3600e6,_0x3600e6['uint32']());},_0x166a46['verify']=function(_0x284f21){if('object'!=typeof _0x284f21||null===_0x284f21)return'object\x20expected';if(null!=_0x284f21['version']&&_0x284f21['hasOwnProperty']('version')&&!_0x32c136['isInteger'](_0x284f21['version']))return'version:\x20integer\x20expected';if(null!=_0x284f21['buffers']&&_0x284f21['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x284f21['buffers']))return'buffers:\x20array\x20expected';for(var _0x2e7817=0x0;_0x2e7817<_0x284f21['buffers']['length'];++_0x2e7817)if(!(_0x284f21['buffers'][_0x2e7817]&&'number'==typeof _0x284f21['buffers'][_0x2e7817]['length']||_0x32c136['isString'](_0x284f21['buffers'][_0x2e7817])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x284f21['types']&&_0x284f21['hasOwnProperty']('types')){if(!Array['isArray'](_0x284f21['types']))return'types:\x20array\x20expected';for(_0x2e7817=0x0;_0x2e7817<_0x284f21['types']['length'];++_0x2e7817)if(!_0x32c136['isInteger'](_0x284f21['types'][_0x2e7817]))return'types:\x20integer[]\x20expected';}if(null!=_0x284f21['metadata']&&_0x284f21['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x284f21['metadata']))return'metadata:\x20array\x20expected';for(_0x2e7817=0x0;_0x2e7817<_0x284f21['metadata']['length'];++_0x2e7817){var _0x2c467d=_0xdb1853['OperationMetadataDescriptor']['verify'](_0x284f21['metadata'][_0x2e7817]);if(_0x2c467d)return'metadata.'+_0x2c467d;}}return null!=_0x284f21['lastOperationId']&&_0x284f21['hasOwnProperty']('lastOperationId')&&!_0x32c136['isString'](_0x284f21['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x284f21['lastOperationAcceptedAt']&&_0x284f21['hasOwnProperty']('lastOperationAcceptedAt')&&!_0x32c136['isString'](_0x284f21['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},_0x166a46['fromObject']=function(_0x3975a8){if(_0x3975a8 instanceof _0xdb1853['CollaborativeEditingResponse'])return _0x3975a8;var _0x43d563=new _0xdb1853['CollaborativeEditingResponse']();if(null!=_0x3975a8['version']&&(_0x43d563['version']=_0x3975a8['version']>>>0x0),_0x3975a8['buffers']){if(!Array['isArray'](_0x3975a8['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0x43d563['buffers']=[];for(var _0xd6cc45=0x0;_0xd6cc45<_0x3975a8['buffers']['length'];++_0xd6cc45)'string'==typeof _0x3975a8['buffers'][_0xd6cc45]?_0x32c136['base64']['decode'](_0x3975a8['buffers'][_0xd6cc45],_0x43d563['buffers'][_0xd6cc45]=_0x32c136['newBuffer'](_0x32c136['base64']['length'](_0x3975a8['buffers'][_0xd6cc45])),0x0):_0x3975a8['buffers'][_0xd6cc45]['length']>=0x0&&(_0x43d563['buffers'][_0xd6cc45]=_0x3975a8['buffers'][_0xd6cc45]);}if(_0x3975a8['types']){if(!Array['isArray'](_0x3975a8['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');for(_0x43d563['types']=[],_0xd6cc45=0x0;_0xd6cc45<_0x3975a8['types']['length'];++_0xd6cc45)_0x43d563['types'][_0xd6cc45]=_0x3975a8['types'][_0xd6cc45]>>>0x0;}if(_0x3975a8['metadata']){if(!Array['isArray'](_0x3975a8['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');for(_0x43d563['metadata']=[],_0xd6cc45=0x0;_0xd6cc45<_0x3975a8['metadata']['length'];++_0xd6cc45){if('object'!=typeof _0x3975a8['metadata'][_0xd6cc45])throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0x43d563['metadata'][_0xd6cc45]=_0xdb1853['OperationMetadataDescriptor']['fromObject'](_0x3975a8['metadata'][_0xd6cc45]);}}return null!=_0x3975a8['lastOperationId']&&(_0x43d563['lastOperationId']=String(_0x3975a8['lastOperationId'])),null!=_0x3975a8['lastOperationAcceptedAt']&&(_0x43d563['lastOperationAcceptedAt']=String(_0x3975a8['lastOperationAcceptedAt'])),_0x43d563;},_0x166a46['toObject']=function(_0x243ef2,_0x3e16b2){_0x3e16b2||(_0x3e16b2={});var _0x5422ea={};if((_0x3e16b2['arrays']||_0x3e16b2['defaults'])&&(_0x5422ea['buffers']=[],_0x5422ea['types']=[],_0x5422ea['metadata']=[]),_0x3e16b2['defaults']&&(_0x5422ea['version']=0x0,_0x5422ea['lastOperationId']='',_0x5422ea['lastOperationAcceptedAt']=''),null!=_0x243ef2['version']&&_0x243ef2['hasOwnProperty']('version')&&(_0x5422ea['version']=_0x243ef2['version']),_0x243ef2['buffers']&&_0x243ef2['buffers']['length']){_0x5422ea['buffers']=[];for(var _0x405083=0x0;_0x405083<_0x243ef2['buffers']['length'];++_0x405083)_0x5422ea['buffers'][_0x405083]=_0x3e16b2['bytes']===String?_0x32c136['base64']['encode'](_0x243ef2['buffers'][_0x405083],0x0,_0x243ef2['buffers'][_0x405083]['length']):_0x3e16b2['bytes']===Array?Array['prototype']['slice']['call'](_0x243ef2['buffers'][_0x405083]):_0x243ef2['buffers'][_0x405083];}if(_0x243ef2['types']&&_0x243ef2['types']['length']){for(_0x5422ea['types']=[],_0x405083=0x0;_0x405083<_0x243ef2['types']['length'];++_0x405083)_0x5422ea['types'][_0x405083]=_0x243ef2['types'][_0x405083];}if(_0x243ef2['metadata']&&_0x243ef2['metadata']['length']){for(_0x5422ea['metadata']=[],_0x405083=0x0;_0x405083<_0x243ef2['metadata']['length'];++_0x405083)_0x5422ea['metadata'][_0x405083]=_0xdb1853['OperationMetadataDescriptor']['toObject'](_0x243ef2['metadata'][_0x405083],_0x3e16b2);}return null!=_0x243ef2['lastOperationId']&&_0x243ef2['hasOwnProperty']('lastOperationId')&&(_0x5422ea['lastOperationId']=_0x243ef2['lastOperationId']),null!=_0x243ef2['lastOperationAcceptedAt']&&_0x243ef2['hasOwnProperty']('lastOperationAcceptedAt')&&(_0x5422ea['lastOperationAcceptedAt']=_0x243ef2['lastOperationAcceptedAt']),_0x5422ea;},_0x166a46['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x166a46['getTypeUrl']=function(_0x150cfc){return void 0x0===_0x150cfc&&(_0x150cfc='type.googleapis.com'),_0x150cfc+'/CollaborativeEditingResponse';},_0x166a46;}()),_0xdb1853['CollaborativeEditingConnectResponse']=(function(){function _0x48ed37(_0x525ff2){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x525ff2){for(var _0x550861=Object['keys'](_0x525ff2),_0x944717=0x0;_0x944717<_0x550861['length'];++_0x944717)null!=_0x525ff2[_0x550861[_0x944717]]&&(this[_0x550861[_0x944717]]=_0x525ff2[_0x550861[_0x944717]]);}}return _0x48ed37['prototype']['channel']='',_0x48ed37['prototype']['offset']=0x0,_0x48ed37['prototype']['version']=0x0,_0x48ed37['prototype']['buffers']=_0x32c136['emptyArray'],_0x48ed37['prototype']['types']=_0x32c136['emptyArray'],_0x48ed37['prototype']['metadata']=_0x32c136['emptyArray'],_0x48ed37['prototype']['initData']='',_0x48ed37['prototype']['isInitialized']=!0x1,_0x48ed37['prototype']['sessionId']='',_0x48ed37['prototype']['lastOperationId']='',_0x48ed37['prototype']['sessionCreatedAt']='',_0x48ed37['create']=function(_0x596fe8){return new _0x48ed37(_0x596fe8);},_0x48ed37['encode']=function(_0x74f207,_0x986468){if(_0x986468||(_0x986468=_0x320e1c['create']()),null!=_0x74f207['channel']&&Object['hasOwnProperty']['call'](_0x74f207,'channel')&&_0x986468['uint32'](0xa)['string'](_0x74f207['channel']),null!=_0x74f207['offset']&&Object['hasOwnProperty']['call'](_0x74f207,'offset')&&_0x986468['uint32'](0x10)['uint32'](_0x74f207['offset']),null!=_0x74f207['version']&&Object['hasOwnProperty']['call'](_0x74f207,'version')&&_0x986468['uint32'](0x18)['uint32'](_0x74f207['version']),null!=_0x74f207['buffers']&&_0x74f207['buffers']['length']){for(var _0x4c5b19=0x0;_0x4c5b19<_0x74f207['buffers']['length'];++_0x4c5b19)_0x986468['uint32'](0x22)['bytes'](_0x74f207['buffers'][_0x4c5b19]);}if(null!=_0x74f207['types']&&_0x74f207['types']['length']){for(_0x986468['uint32'](0x2a)['fork'](),_0x4c5b19=0x0;_0x4c5b19<_0x74f207['types']['length'];++_0x4c5b19)_0x986468['uint32'](_0x74f207['types'][_0x4c5b19]);_0x986468['ldelim']();}if(null!=_0x74f207['metadata']&&_0x74f207['metadata']['length']){for(_0x4c5b19=0x0;_0x4c5b19<_0x74f207['metadata']['length'];++_0x4c5b19)_0xdb1853['OperationMetadataDescriptor']['encode'](_0x74f207['metadata'][_0x4c5b19],_0x986468['uint32'](0x3a)['fork']())['ldelim']();}return null!=_0x74f207['initData']&&Object['hasOwnProperty']['call'](_0x74f207,'initData')&&_0x986468['uint32'](0x42)['string'](_0x74f207['initData']),null!=_0x74f207['isInitialized']&&Object['hasOwnProperty']['call'](_0x74f207,'isInitialized')&&_0x986468['uint32'](0x48)['bool'](_0x74f207['isInitialized']),null!=_0x74f207['sessionId']&&Object['hasOwnProperty']['call'](_0x74f207,'sessionId')&&_0x986468['uint32'](0x52)['string'](_0x74f207['sessionId']),null!=_0x74f207['lastOperationId']&&Object['hasOwnProperty']['call'](_0x74f207,'lastOperationId')&&_0x986468['uint32'](0x5a)['string'](_0x74f207['lastOperationId']),null!=_0x74f207['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x74f207,'sessionCreatedAt')&&_0x986468['uint32'](0x62)['string'](_0x74f207['sessionCreatedAt']),_0x986468;},_0x48ed37['encodeDelimited']=function(_0x1693c5,_0x293c42){return this['encode'](_0x1693c5,_0x293c42)['ldelim']();},_0x48ed37['decode']=function(_0x2fde24,_0x5dc4bc,_0x38216f){_0x2fde24 instanceof _0x254bdb||(_0x2fde24=_0x254bdb['create'](_0x2fde24));for(var _0x39ca36=void 0x0===_0x5dc4bc?_0x2fde24['len']:_0x2fde24['pos']+_0x5dc4bc,_0x1d450b=new _0xdb1853['CollaborativeEditingConnectResponse']();_0x2fde24['pos']<_0x39ca36;){var _0x5d72da=_0x2fde24['uint32']();if(_0x5d72da===_0x38216f)break;switch(_0x5d72da>>>0x3){case 0x1:_0x1d450b['channel']=_0x2fde24['string']();break;case 0x2:_0x1d450b['offset']=_0x2fde24['uint32']();break;case 0x3:_0x1d450b['version']=_0x2fde24['uint32']();break;case 0x4:_0x1d450b['buffers']&&_0x1d450b['buffers']['length']||(_0x1d450b['buffers']=[]),_0x1d450b['buffers']['push'](_0x2fde24['bytes']());break;case 0x5:if(_0x1d450b['types']&&_0x1d450b['types']['length']||(_0x1d450b['types']=[]),0x2==(0x7&_0x5d72da)){for(var _0x1edb09=_0x2fde24['uint32']()+_0x2fde24['pos'];_0x2fde24['pos']<_0x1edb09;)_0x1d450b['types']['push'](_0x2fde24['uint32']());}else _0x1d450b['types']['push'](_0x2fde24['uint32']());break;case 0x7:_0x1d450b['metadata']&&_0x1d450b['metadata']['length']||(_0x1d450b['metadata']=[]),_0x1d450b['metadata']['push'](_0xdb1853['OperationMetadataDescriptor']['decode'](_0x2fde24,_0x2fde24['uint32']()));break;case 0x8:_0x1d450b['initData']=_0x2fde24['string']();break;case 0x9:_0x1d450b['isInitialized']=_0x2fde24['bool']();break;case 0xa:_0x1d450b['sessionId']=_0x2fde24['string']();break;case 0xb:_0x1d450b['lastOperationId']=_0x2fde24['string']();break;case 0xc:_0x1d450b['sessionCreatedAt']=_0x2fde24['string']();break;default:_0x2fde24['skipType'](0x7&_0x5d72da);}}return _0x1d450b;},_0x48ed37['decodeDelimited']=function(_0x4bf66a){return _0x4bf66a instanceof _0x254bdb||(_0x4bf66a=new _0x254bdb(_0x4bf66a)),this['decode'](_0x4bf66a,_0x4bf66a['uint32']());},_0x48ed37['verify']=function(_0x123b33){if('object'!=typeof _0x123b33||null===_0x123b33)return'object\x20expected';if(null!=_0x123b33['channel']&&_0x123b33['hasOwnProperty']('channel')&&!_0x32c136['isString'](_0x123b33['channel']))return'channel:\x20string\x20expected';if(null!=_0x123b33['offset']&&_0x123b33['hasOwnProperty']('offset')&&!_0x32c136['isInteger'](_0x123b33['offset']))return'offset:\x20integer\x20expected';if(null!=_0x123b33['version']&&_0x123b33['hasOwnProperty']('version')&&!_0x32c136['isInteger'](_0x123b33['version']))return'version:\x20integer\x20expected';if(null!=_0x123b33['buffers']&&_0x123b33['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x123b33['buffers']))return'buffers:\x20array\x20expected';for(var _0x2eb541=0x0;_0x2eb541<_0x123b33['buffers']['length'];++_0x2eb541)if(!(_0x123b33['buffers'][_0x2eb541]&&'number'==typeof _0x123b33['buffers'][_0x2eb541]['length']||_0x32c136['isString'](_0x123b33['buffers'][_0x2eb541])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x123b33['types']&&_0x123b33['hasOwnProperty']('types')){if(!Array['isArray'](_0x123b33['types']))return'types:\x20array\x20expected';for(_0x2eb541=0x0;_0x2eb541<_0x123b33['types']['length'];++_0x2eb541)if(!_0x32c136['isInteger'](_0x123b33['types'][_0x2eb541]))return'types:\x20integer[]\x20expected';}if(null!=_0x123b33['metadata']&&_0x123b33['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x123b33['metadata']))return'metadata:\x20array\x20expected';for(_0x2eb541=0x0;_0x2eb541<_0x123b33['metadata']['length'];++_0x2eb541){var _0x334a8f=_0xdb1853['OperationMetadataDescriptor']['verify'](_0x123b33['metadata'][_0x2eb541]);if(_0x334a8f)return'metadata.'+_0x334a8f;}}return null!=_0x123b33['initData']&&_0x123b33['hasOwnProperty']('initData')&&!_0x32c136['isString'](_0x123b33['initData'])?'initData:\x20string\x20expected':null!=_0x123b33['isInitialized']&&_0x123b33['hasOwnProperty']('isInitialized')&&'boolean'!=typeof _0x123b33['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x123b33['sessionId']&&_0x123b33['hasOwnProperty']('sessionId')&&!_0x32c136['isString'](_0x123b33['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x123b33['lastOperationId']&&_0x123b33['hasOwnProperty']('lastOperationId')&&!_0x32c136['isString'](_0x123b33['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x123b33['sessionCreatedAt']&&_0x123b33['hasOwnProperty']('sessionCreatedAt')&&!_0x32c136['isString'](_0x123b33['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},_0x48ed37['fromObject']=function(_0x1fe2a9){if(_0x1fe2a9 instanceof _0xdb1853['CollaborativeEditingConnectResponse'])return _0x1fe2a9;var _0xa3c391=new _0xdb1853['CollaborativeEditingConnectResponse']();if(null!=_0x1fe2a9['channel']&&(_0xa3c391['channel']=String(_0x1fe2a9['channel'])),null!=_0x1fe2a9['offset']&&(_0xa3c391['offset']=_0x1fe2a9['offset']>>>0x0),null!=_0x1fe2a9['version']&&(_0xa3c391['version']=_0x1fe2a9['version']>>>0x0),_0x1fe2a9['buffers']){if(!Array['isArray'](_0x1fe2a9['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0xa3c391['buffers']=[];for(var _0x3ba574=0x0;_0x3ba574<_0x1fe2a9['buffers']['length'];++_0x3ba574)'string'==typeof _0x1fe2a9['buffers'][_0x3ba574]?_0x32c136['base64']['decode'](_0x1fe2a9['buffers'][_0x3ba574],_0xa3c391['buffers'][_0x3ba574]=_0x32c136['newBuffer'](_0x32c136['base64']['length'](_0x1fe2a9['buffers'][_0x3ba574])),0x0):_0x1fe2a9['buffers'][_0x3ba574]['length']>=0x0&&(_0xa3c391['buffers'][_0x3ba574]=_0x1fe2a9['buffers'][_0x3ba574]);}if(_0x1fe2a9['types']){if(!Array['isArray'](_0x1fe2a9['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');for(_0xa3c391['types']=[],_0x3ba574=0x0;_0x3ba574<_0x1fe2a9['types']['length'];++_0x3ba574)_0xa3c391['types'][_0x3ba574]=_0x1fe2a9['types'][_0x3ba574]>>>0x0;}if(_0x1fe2a9['metadata']){if(!Array['isArray'](_0x1fe2a9['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');for(_0xa3c391['metadata']=[],_0x3ba574=0x0;_0x3ba574<_0x1fe2a9['metadata']['length'];++_0x3ba574){if('object'!=typeof _0x1fe2a9['metadata'][_0x3ba574])throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0xa3c391['metadata'][_0x3ba574]=_0xdb1853['OperationMetadataDescriptor']['fromObject'](_0x1fe2a9['metadata'][_0x3ba574]);}}return null!=_0x1fe2a9['initData']&&(_0xa3c391['initData']=String(_0x1fe2a9['initData'])),null!=_0x1fe2a9['isInitialized']&&(_0xa3c391['isInitialized']=Boolean(_0x1fe2a9['isInitialized'])),null!=_0x1fe2a9['sessionId']&&(_0xa3c391['sessionId']=String(_0x1fe2a9['sessionId'])),null!=_0x1fe2a9['lastOperationId']&&(_0xa3c391['lastOperationId']=String(_0x1fe2a9['lastOperationId'])),null!=_0x1fe2a9['sessionCreatedAt']&&(_0xa3c391['sessionCreatedAt']=String(_0x1fe2a9['sessionCreatedAt'])),_0xa3c391;},_0x48ed37['toObject']=function(_0x55886a,_0x985c77){_0x985c77||(_0x985c77={});var _0x1c103a={};if((_0x985c77['arrays']||_0x985c77['defaults'])&&(_0x1c103a['buffers']=[],_0x1c103a['types']=[],_0x1c103a['metadata']=[]),_0x985c77['defaults']&&(_0x1c103a['channel']='',_0x1c103a['offset']=0x0,_0x1c103a['version']=0x0,_0x1c103a['initData']='',_0x1c103a['isInitialized']=!0x1,_0x1c103a['sessionId']='',_0x1c103a['lastOperationId']='',_0x1c103a['sessionCreatedAt']=''),null!=_0x55886a['channel']&&_0x55886a['hasOwnProperty']('channel')&&(_0x1c103a['channel']=_0x55886a['channel']),null!=_0x55886a['offset']&&_0x55886a['hasOwnProperty']('offset')&&(_0x1c103a['offset']=_0x55886a['offset']),null!=_0x55886a['version']&&_0x55886a['hasOwnProperty']('version')&&(_0x1c103a['version']=_0x55886a['version']),_0x55886a['buffers']&&_0x55886a['buffers']['length']){_0x1c103a['buffers']=[];for(var _0x141438=0x0;_0x141438<_0x55886a['buffers']['length'];++_0x141438)_0x1c103a['buffers'][_0x141438]=_0x985c77['bytes']===String?_0x32c136['base64']['encode'](_0x55886a['buffers'][_0x141438],0x0,_0x55886a['buffers'][_0x141438]['length']):_0x985c77['bytes']===Array?Array['prototype']['slice']['call'](_0x55886a['buffers'][_0x141438]):_0x55886a['buffers'][_0x141438];}if(_0x55886a['types']&&_0x55886a['types']['length']){for(_0x1c103a['types']=[],_0x141438=0x0;_0x141438<_0x55886a['types']['length'];++_0x141438)_0x1c103a['types'][_0x141438]=_0x55886a['types'][_0x141438];}if(_0x55886a['metadata']&&_0x55886a['metadata']['length']){for(_0x1c103a['metadata']=[],_0x141438=0x0;_0x141438<_0x55886a['metadata']['length'];++_0x141438)_0x1c103a['metadata'][_0x141438]=_0xdb1853['OperationMetadataDescriptor']['toObject'](_0x55886a['metadata'][_0x141438],_0x985c77);}return null!=_0x55886a['initData']&&_0x55886a['hasOwnProperty']('initData')&&(_0x1c103a['initData']=_0x55886a['initData']),null!=_0x55886a['isInitialized']&&_0x55886a['hasOwnProperty']('isInitialized')&&(_0x1c103a['isInitialized']=_0x55886a['isInitialized']),null!=_0x55886a['sessionId']&&_0x55886a['hasOwnProperty']('sessionId')&&(_0x1c103a['sessionId']=_0x55886a['sessionId']),null!=_0x55886a['lastOperationId']&&_0x55886a['hasOwnProperty']('lastOperationId')&&(_0x1c103a['lastOperationId']=_0x55886a['lastOperationId']),null!=_0x55886a['sessionCreatedAt']&&_0x55886a['hasOwnProperty']('sessionCreatedAt')&&(_0x1c103a['sessionCreatedAt']=_0x55886a['sessionCreatedAt']),_0x1c103a;},_0x48ed37['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x48ed37['getTypeUrl']=function(_0x4da214){return void 0x0===_0x4da214&&(_0x4da214='type.googleapis.com'),_0x4da214+'/CollaborativeEditingConnectResponse';},_0x48ed37;}()),_0xdb1853['GetDocumentDetailsMessage']=(function(){function _0x2fefb6(_0xfc0c72){if(_0xfc0c72){for(var _0x3eb657=Object['keys'](_0xfc0c72),_0x524449=0x0;_0x524449<_0x3eb657['length'];++_0x524449)null!=_0xfc0c72[_0x3eb657[_0x524449]]&&(this[_0x3eb657[_0x524449]]=_0xfc0c72[_0x3eb657[_0x524449]]);}}return _0x2fefb6['prototype']['documentId']='',_0x2fefb6['prototype']['environmentId']='',_0x2fefb6['create']=function(_0x2d94d2){return new _0x2fefb6(_0x2d94d2);},_0x2fefb6['encode']=function(_0x3738cc,_0x538d5c){return _0x538d5c||(_0x538d5c=_0x320e1c['create']()),null!=_0x3738cc['documentId']&&Object['hasOwnProperty']['call'](_0x3738cc,'documentId')&&_0x538d5c['uint32'](0xa)['string'](_0x3738cc['documentId']),null!=_0x3738cc['environmentId']&&Object['hasOwnProperty']['call'](_0x3738cc,'environmentId')&&_0x538d5c['uint32'](0x12)['string'](_0x3738cc['environmentId']),_0x538d5c;},_0x2fefb6['encodeDelimited']=function(_0x439659,_0xab6568){return this['encode'](_0x439659,_0xab6568)['ldelim']();},_0x2fefb6['decode']=function(_0x5e637b,_0x555ca6,_0x2cf2ee){_0x5e637b instanceof _0x254bdb||(_0x5e637b=_0x254bdb['create'](_0x5e637b));for(var _0x57de5a=void 0x0===_0x555ca6?_0x5e637b['len']:_0x5e637b['pos']+_0x555ca6,_0x4409df=new _0xdb1853['GetDocumentDetailsMessage']();_0x5e637b['pos']<_0x57de5a;){var _0x40390d=_0x5e637b['uint32']();if(_0x40390d===_0x2cf2ee)break;switch(_0x40390d>>>0x3){case 0x1:_0x4409df['documentId']=_0x5e637b['string']();break;case 0x2:_0x4409df['environmentId']=_0x5e637b['string']();break;default:_0x5e637b['skipType'](0x7&_0x40390d);}}return _0x4409df;},_0x2fefb6['decodeDelimited']=function(_0x312ae1){return _0x312ae1 instanceof _0x254bdb||(_0x312ae1=new _0x254bdb(_0x312ae1)),this['decode'](_0x312ae1,_0x312ae1['uint32']());},_0x2fefb6['verify']=function(_0x545472){return'object'!=typeof _0x545472||null===_0x545472?'object\x20expected':null!=_0x545472['documentId']&&_0x545472['hasOwnProperty']('documentId')&&!_0x32c136['isString'](_0x545472['documentId'])?'documentId:\x20string\x20expected':null!=_0x545472['environmentId']&&_0x545472['hasOwnProperty']('environmentId')&&!_0x32c136['isString'](_0x545472['environmentId'])?'environmentId:\x20string\x20expected':null;},_0x2fefb6['fromObject']=function(_0x3f38e8){if(_0x3f38e8 instanceof _0xdb1853['GetDocumentDetailsMessage'])return _0x3f38e8;var _0xbaedaa=new _0xdb1853['GetDocumentDetailsMessage']();return null!=_0x3f38e8['documentId']&&(_0xbaedaa['documentId']=String(_0x3f38e8['documentId'])),null!=_0x3f38e8['environmentId']&&(_0xbaedaa['environmentId']=String(_0x3f38e8['environmentId'])),_0xbaedaa;},_0x2fefb6['toObject']=function(_0x269630,_0x59f387){_0x59f387||(_0x59f387={});var _0x10ae69={};return _0x59f387['defaults']&&(_0x10ae69['documentId']='',_0x10ae69['environmentId']=''),null!=_0x269630['documentId']&&_0x269630['hasOwnProperty']('documentId')&&(_0x10ae69['documentId']=_0x269630['documentId']),null!=_0x269630['environmentId']&&_0x269630['hasOwnProperty']('environmentId')&&(_0x10ae69['environmentId']=_0x269630['environmentId']),_0x10ae69;},_0x2fefb6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2fefb6['getTypeUrl']=function(_0x3f915f){return void 0x0===_0x3f915f&&(_0x3f915f='type.googleapis.com'),_0x3f915f+'/GetDocumentDetailsMessage';},_0x2fefb6;}()),_0xdb1853['CollaborativeEditingUpdateMessage']=(function(){function _0x98823(_0x1cd5b8){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x1cd5b8){for(var _0x43a275=Object['keys'](_0x1cd5b8),_0x5c971a=0x0;_0x5c971a<_0x43a275['length'];++_0x5c971a)null!=_0x1cd5b8[_0x43a275[_0x5c971a]]&&(this[_0x43a275[_0x5c971a]]=_0x1cd5b8[_0x43a275[_0x5c971a]]);}}return _0x98823['prototype']['id']='',_0x98823['prototype']['baseVersion']=0x0,_0x98823['prototype']['buffers']=_0x32c136['emptyArray'],_0x98823['prototype']['types']=_0x32c136['emptyArray'],_0x98823['prototype']['metadata']=_0x32c136['emptyArray'],_0x98823['prototype']['lastOperationId']='',_0x98823['create']=function(_0x35376e){return new _0x98823(_0x35376e);},_0x98823['encode']=function(_0x6baf35,_0x17ece2){if(_0x17ece2||(_0x17ece2=_0x320e1c['create']()),null!=_0x6baf35['id']&&Object['hasOwnProperty']['call'](_0x6baf35,'id')&&_0x17ece2['uint32'](0xa)['string'](_0x6baf35['id']),null!=_0x6baf35['baseVersion']&&Object['hasOwnProperty']['call'](_0x6baf35,'baseVersion')&&_0x17ece2['uint32'](0x10)['uint32'](_0x6baf35['baseVersion']),null!=_0x6baf35['buffers']&&_0x6baf35['buffers']['length']){for(var _0x7ba24b=0x0;_0x7ba24b<_0x6baf35['buffers']['length'];++_0x7ba24b)_0x17ece2['uint32'](0x1a)['bytes'](_0x6baf35['buffers'][_0x7ba24b]);}if(null!=_0x6baf35['types']&&_0x6baf35['types']['length']){for(_0x17ece2['uint32'](0x22)['fork'](),_0x7ba24b=0x0;_0x7ba24b<_0x6baf35['types']['length'];++_0x7ba24b)_0x17ece2['uint32'](_0x6baf35['types'][_0x7ba24b]);_0x17ece2['ldelim']();}if(null!=_0x6baf35['metadata']&&_0x6baf35['metadata']['length']){for(_0x7ba24b=0x0;_0x7ba24b<_0x6baf35['metadata']['length'];++_0x7ba24b)_0xdb1853['OperationMetadataDescriptor']['encode'](_0x6baf35['metadata'][_0x7ba24b],_0x17ece2['uint32'](0x32)['fork']())['ldelim']();}return null!=_0x6baf35['lastOperationId']&&Object['hasOwnProperty']['call'](_0x6baf35,'lastOperationId')&&_0x17ece2['uint32'](0x3a)['string'](_0x6baf35['lastOperationId']),_0x17ece2;},_0x98823['encodeDelimited']=function(_0x295a6a,_0x514f51){return this['encode'](_0x295a6a,_0x514f51)['ldelim']();},_0x98823['decode']=function(_0x255a86,_0x208824,_0x245322){_0x255a86 instanceof _0x254bdb||(_0x255a86=_0x254bdb['create'](_0x255a86));for(var _0x45dfb4=void 0x0===_0x208824?_0x255a86['len']:_0x255a86['pos']+_0x208824,_0x331bf9=new _0xdb1853['CollaborativeEditingUpdateMessage']();_0x255a86['pos']<_0x45dfb4;){var _0x22a7a5=_0x255a86['uint32']();if(_0x22a7a5===_0x245322)break;switch(_0x22a7a5>>>0x3){case 0x1:_0x331bf9['id']=_0x255a86['string']();break;case 0x2:_0x331bf9['baseVersion']=_0x255a86['uint32']();break;case 0x3:_0x331bf9['buffers']&&_0x331bf9['buffers']['length']||(_0x331bf9['buffers']=[]),_0x331bf9['buffers']['push'](_0x255a86['bytes']());break;case 0x4:if(_0x331bf9['types']&&_0x331bf9['types']['length']||(_0x331bf9['types']=[]),0x2==(0x7&_0x22a7a5)){for(var _0x170740=_0x255a86['uint32']()+_0x255a86['pos'];_0x255a86['pos']<_0x170740;)_0x331bf9['types']['push'](_0x255a86['uint32']());}else _0x331bf9['types']['push'](_0x255a86['uint32']());break;case 0x6:_0x331bf9['metadata']&&_0x331bf9['metadata']['length']||(_0x331bf9['metadata']=[]),_0x331bf9['metadata']['push'](_0xdb1853['OperationMetadataDescriptor']['decode'](_0x255a86,_0x255a86['uint32']()));break;case 0x7:_0x331bf9['lastOperationId']=_0x255a86['string']();break;default:_0x255a86['skipType'](0x7&_0x22a7a5);}}return _0x331bf9;},_0x98823['decodeDelimited']=function(_0x292bd7){return _0x292bd7 instanceof _0x254bdb||(_0x292bd7=new _0x254bdb(_0x292bd7)),this['decode'](_0x292bd7,_0x292bd7['uint32']());},_0x98823['verify']=function(_0x2bb387){if('object'!=typeof _0x2bb387||null===_0x2bb387)return'object\x20expected';if(null!=_0x2bb387['id']&&_0x2bb387['hasOwnProperty']('id')&&!_0x32c136['isString'](_0x2bb387['id']))return'id:\x20string\x20expected';if(null!=_0x2bb387['baseVersion']&&_0x2bb387['hasOwnProperty']('baseVersion')&&!_0x32c136['isInteger'](_0x2bb387['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0x2bb387['buffers']&&_0x2bb387['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x2bb387['buffers']))return'buffers:\x20array\x20expected';for(var _0xa6b15f=0x0;_0xa6b15f<_0x2bb387['buffers']['length'];++_0xa6b15f)if(!(_0x2bb387['buffers'][_0xa6b15f]&&'number'==typeof _0x2bb387['buffers'][_0xa6b15f]['length']||_0x32c136['isString'](_0x2bb387['buffers'][_0xa6b15f])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x2bb387['types']&&_0x2bb387['hasOwnProperty']('types')){if(!Array['isArray'](_0x2bb387['types']))return'types:\x20array\x20expected';for(_0xa6b15f=0x0;_0xa6b15f<_0x2bb387['types']['length'];++_0xa6b15f)if(!_0x32c136['isInteger'](_0x2bb387['types'][_0xa6b15f]))return'types:\x20integer[]\x20expected';}if(null!=_0x2bb387['metadata']&&_0x2bb387['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x2bb387['metadata']))return'metadata:\x20array\x20expected';for(_0xa6b15f=0x0;_0xa6b15f<_0x2bb387['metadata']['length'];++_0xa6b15f){var _0x540957=_0xdb1853['OperationMetadataDescriptor']['verify'](_0x2bb387['metadata'][_0xa6b15f]);if(_0x540957)return'metadata.'+_0x540957;}}return null!=_0x2bb387['lastOperationId']&&_0x2bb387['hasOwnProperty']('lastOperationId')&&!_0x32c136['isString'](_0x2bb387['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x98823['fromObject']=function(_0x1b429a){if(_0x1b429a instanceof _0xdb1853['CollaborativeEditingUpdateMessage'])return _0x1b429a;var _0x4e7dcb=new _0xdb1853['CollaborativeEditingUpdateMessage']();if(null!=_0x1b429a['id']&&(_0x4e7dcb['id']=String(_0x1b429a['id'])),null!=_0x1b429a['baseVersion']&&(_0x4e7dcb['baseVersion']=_0x1b429a['baseVersion']>>>0x0),_0x1b429a['buffers']){if(!Array['isArray'](_0x1b429a['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0x4e7dcb['buffers']=[];for(var _0x30b3b7=0x0;_0x30b3b7<_0x1b429a['buffers']['length'];++_0x30b3b7)'string'==typeof _0x1b429a['buffers'][_0x30b3b7]?_0x32c136['base64']['decode'](_0x1b429a['buffers'][_0x30b3b7],_0x4e7dcb['buffers'][_0x30b3b7]=_0x32c136['newBuffer'](_0x32c136['base64']['length'](_0x1b429a['buffers'][_0x30b3b7])),0x0):_0x1b429a['buffers'][_0x30b3b7]['length']>=0x0&&(_0x4e7dcb['buffers'][_0x30b3b7]=_0x1b429a['buffers'][_0x30b3b7]);}if(_0x1b429a['types']){if(!Array['isArray'](_0x1b429a['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');for(_0x4e7dcb['types']=[],_0x30b3b7=0x0;_0x30b3b7<_0x1b429a['types']['length'];++_0x30b3b7)_0x4e7dcb['types'][_0x30b3b7]=_0x1b429a['types'][_0x30b3b7]>>>0x0;}if(_0x1b429a['metadata']){if(!Array['isArray'](_0x1b429a['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');for(_0x4e7dcb['metadata']=[],_0x30b3b7=0x0;_0x30b3b7<_0x1b429a['metadata']['length'];++_0x30b3b7){if('object'!=typeof _0x1b429a['metadata'][_0x30b3b7])throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0x4e7dcb['metadata'][_0x30b3b7]=_0xdb1853['OperationMetadataDescriptor']['fromObject'](_0x1b429a['metadata'][_0x30b3b7]);}}return null!=_0x1b429a['lastOperationId']&&(_0x4e7dcb['lastOperationId']=String(_0x1b429a['lastOperationId'])),_0x4e7dcb;},_0x98823['toObject']=function(_0x309211,_0xcbd122){_0xcbd122||(_0xcbd122={});var _0x145f2e={};if((_0xcbd122['arrays']||_0xcbd122['defaults'])&&(_0x145f2e['buffers']=[],_0x145f2e['types']=[],_0x145f2e['metadata']=[]),_0xcbd122['defaults']&&(_0x145f2e['id']='',_0x145f2e['baseVersion']=0x0,_0x145f2e['lastOperationId']=''),null!=_0x309211['id']&&_0x309211['hasOwnProperty']('id')&&(_0x145f2e['id']=_0x309211['id']),null!=_0x309211['baseVersion']&&_0x309211['hasOwnProperty']('baseVersion')&&(_0x145f2e['baseVersion']=_0x309211['baseVersion']),_0x309211['buffers']&&_0x309211['buffers']['length']){_0x145f2e['buffers']=[];for(var _0x12a290=0x0;_0x12a290<_0x309211['buffers']['length'];++_0x12a290)_0x145f2e['buffers'][_0x12a290]=_0xcbd122['bytes']===String?_0x32c136['base64']['encode'](_0x309211['buffers'][_0x12a290],0x0,_0x309211['buffers'][_0x12a290]['length']):_0xcbd122['bytes']===Array?Array['prototype']['slice']['call'](_0x309211['buffers'][_0x12a290]):_0x309211['buffers'][_0x12a290];}if(_0x309211['types']&&_0x309211['types']['length']){for(_0x145f2e['types']=[],_0x12a290=0x0;_0x12a290<_0x309211['types']['length'];++_0x12a290)_0x145f2e['types'][_0x12a290]=_0x309211['types'][_0x12a290];}if(_0x309211['metadata']&&_0x309211['metadata']['length']){for(_0x145f2e['metadata']=[],_0x12a290=0x0;_0x12a290<_0x309211['metadata']['length'];++_0x12a290)_0x145f2e['metadata'][_0x12a290]=_0xdb1853['OperationMetadataDescriptor']['toObject'](_0x309211['metadata'][_0x12a290],_0xcbd122);}return null!=_0x309211['lastOperationId']&&_0x309211['hasOwnProperty']('lastOperationId')&&(_0x145f2e['lastOperationId']=_0x309211['lastOperationId']),_0x145f2e;},_0x98823['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x98823['getTypeUrl']=function(_0x5ded8e){return void 0x0===_0x5ded8e&&(_0x5ded8e='type.googleapis.com'),_0x5ded8e+'/CollaborativeEditingUpdateMessage';},_0x98823;}()),_0xdb1853['CollaborativeEditingReconnectMessage']=(function(){function _0x53dd72(_0x50bf53){if(_0x50bf53){for(var _0x1def1e=Object['keys'](_0x50bf53),_0x470582=0x0;_0x470582<_0x1def1e['length'];++_0x470582)null!=_0x50bf53[_0x1def1e[_0x470582]]&&(this[_0x1def1e[_0x470582]]=_0x50bf53[_0x1def1e[_0x470582]]);}}return _0x53dd72['prototype']['id']='',_0x53dd72['prototype']['bundleVersion']='',_0x53dd72['prototype']['lastKnowVersion']=0x0,_0x53dd72['create']=function(_0x5761df){return new _0x53dd72(_0x5761df);},_0x53dd72['encode']=function(_0x35b6cd,_0xc1c277){return _0xc1c277||(_0xc1c277=_0x320e1c['create']()),null!=_0x35b6cd['id']&&Object['hasOwnProperty']['call'](_0x35b6cd,'id')&&_0xc1c277['uint32'](0xa)['string'](_0x35b6cd['id']),null!=_0x35b6cd['bundleVersion']&&Object['hasOwnProperty']['call'](_0x35b6cd,'bundleVersion')&&_0xc1c277['uint32'](0x12)['string'](_0x35b6cd['bundleVersion']),null!=_0x35b6cd['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x35b6cd,'lastKnowVersion')&&_0xc1c277['uint32'](0x18)['uint32'](_0x35b6cd['lastKnowVersion']),_0xc1c277;},_0x53dd72['encodeDelimited']=function(_0x5da54a,_0x3bedfa){return this['encode'](_0x5da54a,_0x3bedfa)['ldelim']();},_0x53dd72['decode']=function(_0x337772,_0x6479c,_0x4b1a9d){_0x337772 instanceof _0x254bdb||(_0x337772=_0x254bdb['create'](_0x337772));for(var _0x17ce95=void 0x0===_0x6479c?_0x337772['len']:_0x337772['pos']+_0x6479c,_0x201321=new _0xdb1853['CollaborativeEditingReconnectMessage']();_0x337772['pos']<_0x17ce95;){var _0xf4e508=_0x337772['uint32']();if(_0xf4e508===_0x4b1a9d)break;switch(_0xf4e508>>>0x3){case 0x1:_0x201321['id']=_0x337772['string']();break;case 0x2:_0x201321['bundleVersion']=_0x337772['string']();break;case 0x3:_0x201321['lastKnowVersion']=_0x337772['uint32']();break;default:_0x337772['skipType'](0x7&_0xf4e508);}}return _0x201321;},_0x53dd72['decodeDelimited']=function(_0x3b0dc5){return _0x3b0dc5 instanceof _0x254bdb||(_0x3b0dc5=new _0x254bdb(_0x3b0dc5)),this['decode'](_0x3b0dc5,_0x3b0dc5['uint32']());},_0x53dd72['verify']=function(_0x117c6c){return'object'!=typeof _0x117c6c||null===_0x117c6c?'object\x20expected':null!=_0x117c6c['id']&&_0x117c6c['hasOwnProperty']('id')&&!_0x32c136['isString'](_0x117c6c['id'])?'id:\x20string\x20expected':null!=_0x117c6c['bundleVersion']&&_0x117c6c['hasOwnProperty']('bundleVersion')&&!_0x32c136['isString'](_0x117c6c['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0x117c6c['lastKnowVersion']&&_0x117c6c['hasOwnProperty']('lastKnowVersion')&&!_0x32c136['isInteger'](_0x117c6c['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null;},_0x53dd72['fromObject']=function(_0x4f78db){if(_0x4f78db instanceof _0xdb1853['CollaborativeEditingReconnectMessage'])return _0x4f78db;var _0x3ce2c9=new _0xdb1853['CollaborativeEditingReconnectMessage']();return null!=_0x4f78db['id']&&(_0x3ce2c9['id']=String(_0x4f78db['id'])),null!=_0x4f78db['bundleVersion']&&(_0x3ce2c9['bundleVersion']=String(_0x4f78db['bundleVersion'])),null!=_0x4f78db['lastKnowVersion']&&(_0x3ce2c9['lastKnowVersion']=_0x4f78db['lastKnowVersion']>>>0x0),_0x3ce2c9;},_0x53dd72['toObject']=function(_0x1d42c9,_0x585314){_0x585314||(_0x585314={});var _0x26ccc6={};return _0x585314['defaults']&&(_0x26ccc6['id']='',_0x26ccc6['bundleVersion']='',_0x26ccc6['lastKnowVersion']=0x0),null!=_0x1d42c9['id']&&_0x1d42c9['hasOwnProperty']('id')&&(_0x26ccc6['id']=_0x1d42c9['id']),null!=_0x1d42c9['bundleVersion']&&_0x1d42c9['hasOwnProperty']('bundleVersion')&&(_0x26ccc6['bundleVersion']=_0x1d42c9['bundleVersion']),null!=_0x1d42c9['lastKnowVersion']&&_0x1d42c9['hasOwnProperty']('lastKnowVersion')&&(_0x26ccc6['lastKnowVersion']=_0x1d42c9['lastKnowVersion']),_0x26ccc6;},_0x53dd72['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x53dd72['getTypeUrl']=function(_0x3ba47e){return void 0x0===_0x3ba47e&&(_0x3ba47e='type.googleapis.com'),_0x3ba47e+'/CollaborativeEditingReconnectMessage';},_0x53dd72;}()),_0xdb1853['CollaborativeEditingConnectMessage']=(function(){function _0x3e9b43(_0x486b87){if(this['buffers']=[],this['types']=[],_0x486b87){for(var _0x5e83ac=Object['keys'](_0x486b87),_0x1bf19d=0x0;_0x1bf19d<_0x5e83ac['length'];++_0x1bf19d)null!=_0x486b87[_0x5e83ac[_0x1bf19d]]&&(this[_0x5e83ac[_0x1bf19d]]=_0x486b87[_0x5e83ac[_0x1bf19d]]);}}return _0x3e9b43['prototype']['id']='',_0x3e9b43['prototype']['bundleVersion']='',_0x3e9b43['prototype']['buffers']=_0x32c136['emptyArray'],_0x3e9b43['prototype']['types']=_0x32c136['emptyArray'],_0x3e9b43['prototype']['lastOperationId']='',_0x3e9b43['create']=function(_0x324309){return new _0x3e9b43(_0x324309);},_0x3e9b43['encode']=function(_0x1f8c5c,_0x4d4d0c){if(_0x4d4d0c||(_0x4d4d0c=_0x320e1c['create']()),null!=_0x1f8c5c['id']&&Object['hasOwnProperty']['call'](_0x1f8c5c,'id')&&_0x4d4d0c['uint32'](0xa)['string'](_0x1f8c5c['id']),null!=_0x1f8c5c['bundleVersion']&&Object['hasOwnProperty']['call'](_0x1f8c5c,'bundleVersion')&&_0x4d4d0c['uint32'](0x12)['string'](_0x1f8c5c['bundleVersion']),null!=_0x1f8c5c['buffers']&&_0x1f8c5c['buffers']['length']){for(var _0x364458=0x0;_0x364458<_0x1f8c5c['buffers']['length'];++_0x364458)_0x4d4d0c['uint32'](0x1a)['bytes'](_0x1f8c5c['buffers'][_0x364458]);}if(null!=_0x1f8c5c['types']&&_0x1f8c5c['types']['length']){for(_0x4d4d0c['uint32'](0x22)['fork'](),_0x364458=0x0;_0x364458<_0x1f8c5c['types']['length'];++_0x364458)_0x4d4d0c['uint32'](_0x1f8c5c['types'][_0x364458]);_0x4d4d0c['ldelim']();}return null!=_0x1f8c5c['lastOperationId']&&Object['hasOwnProperty']['call'](_0x1f8c5c,'lastOperationId')&&_0x4d4d0c['uint32'](0x2a)['string'](_0x1f8c5c['lastOperationId']),_0x4d4d0c;},_0x3e9b43['encodeDelimited']=function(_0x32a56c,_0xcb3b4){return this['encode'](_0x32a56c,_0xcb3b4)['ldelim']();},_0x3e9b43['decode']=function(_0x6945cc,_0x42eaa8,_0x2948a5){_0x6945cc instanceof _0x254bdb||(_0x6945cc=_0x254bdb['create'](_0x6945cc));for(var _0x34e8c6=void 0x0===_0x42eaa8?_0x6945cc['len']:_0x6945cc['pos']+_0x42eaa8,_0x2102f5=new _0xdb1853['CollaborativeEditingConnectMessage']();_0x6945cc['pos']<_0x34e8c6;){var _0x157a84=_0x6945cc['uint32']();if(_0x157a84===_0x2948a5)break;switch(_0x157a84>>>0x3){case 0x1:_0x2102f5['id']=_0x6945cc['string']();break;case 0x2:_0x2102f5['bundleVersion']=_0x6945cc['string']();break;case 0x3:_0x2102f5['buffers']&&_0x2102f5['buffers']['length']||(_0x2102f5['buffers']=[]),_0x2102f5['buffers']['push'](_0x6945cc['bytes']());break;case 0x4:if(_0x2102f5['types']&&_0x2102f5['types']['length']||(_0x2102f5['types']=[]),0x2==(0x7&_0x157a84)){for(var _0x5ee7e2=_0x6945cc['uint32']()+_0x6945cc['pos'];_0x6945cc['pos']<_0x5ee7e2;)_0x2102f5['types']['push'](_0x6945cc['uint32']());}else _0x2102f5['types']['push'](_0x6945cc['uint32']());break;case 0x5:_0x2102f5['lastOperationId']=_0x6945cc['string']();break;default:_0x6945cc['skipType'](0x7&_0x157a84);}}return _0x2102f5;},_0x3e9b43['decodeDelimited']=function(_0x4b78de){return _0x4b78de instanceof _0x254bdb||(_0x4b78de=new _0x254bdb(_0x4b78de)),this['decode'](_0x4b78de,_0x4b78de['uint32']());},_0x3e9b43['verify']=function(_0xb0cfa7){if('object'!=typeof _0xb0cfa7||null===_0xb0cfa7)return'object\x20expected';if(null!=_0xb0cfa7['id']&&_0xb0cfa7['hasOwnProperty']('id')&&!_0x32c136['isString'](_0xb0cfa7['id']))return'id:\x20string\x20expected';if(null!=_0xb0cfa7['bundleVersion']&&_0xb0cfa7['hasOwnProperty']('bundleVersion')&&!_0x32c136['isString'](_0xb0cfa7['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0xb0cfa7['buffers']&&_0xb0cfa7['hasOwnProperty']('buffers')){if(!Array['isArray'](_0xb0cfa7['buffers']))return'buffers:\x20array\x20expected';for(var _0x4bd6e0=0x0;_0x4bd6e0<_0xb0cfa7['buffers']['length'];++_0x4bd6e0)if(!(_0xb0cfa7['buffers'][_0x4bd6e0]&&'number'==typeof _0xb0cfa7['buffers'][_0x4bd6e0]['length']||_0x32c136['isString'](_0xb0cfa7['buffers'][_0x4bd6e0])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0xb0cfa7['types']&&_0xb0cfa7['hasOwnProperty']('types')){if(!Array['isArray'](_0xb0cfa7['types']))return'types:\x20array\x20expected';for(_0x4bd6e0=0x0;_0x4bd6e0<_0xb0cfa7['types']['length'];++_0x4bd6e0)if(!_0x32c136['isInteger'](_0xb0cfa7['types'][_0x4bd6e0]))return'types:\x20integer[]\x20expected';}return null!=_0xb0cfa7['lastOperationId']&&_0xb0cfa7['hasOwnProperty']('lastOperationId')&&!_0x32c136['isString'](_0xb0cfa7['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x3e9b43['fromObject']=function(_0x43c720){if(_0x43c720 instanceof _0xdb1853['CollaborativeEditingConnectMessage'])return _0x43c720;var _0x333c10=new _0xdb1853['CollaborativeEditingConnectMessage']();if(null!=_0x43c720['id']&&(_0x333c10['id']=String(_0x43c720['id'])),null!=_0x43c720['bundleVersion']&&(_0x333c10['bundleVersion']=String(_0x43c720['bundleVersion'])),_0x43c720['buffers']){if(!Array['isArray'](_0x43c720['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x333c10['buffers']=[];for(var _0x57dad8=0x0;_0x57dad8<_0x43c720['buffers']['length'];++_0x57dad8)'string'==typeof _0x43c720['buffers'][_0x57dad8]?_0x32c136['base64']['decode'](_0x43c720['buffers'][_0x57dad8],_0x333c10['buffers'][_0x57dad8]=_0x32c136['newBuffer'](_0x32c136['base64']['length'](_0x43c720['buffers'][_0x57dad8])),0x0):_0x43c720['buffers'][_0x57dad8]['length']>=0x0&&(_0x333c10['buffers'][_0x57dad8]=_0x43c720['buffers'][_0x57dad8]);}if(_0x43c720['types']){if(!Array['isArray'](_0x43c720['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');for(_0x333c10['types']=[],_0x57dad8=0x0;_0x57dad8<_0x43c720['types']['length'];++_0x57dad8)_0x333c10['types'][_0x57dad8]=_0x43c720['types'][_0x57dad8]>>>0x0;}return null!=_0x43c720['lastOperationId']&&(_0x333c10['lastOperationId']=String(_0x43c720['lastOperationId'])),_0x333c10;},_0x3e9b43['toObject']=function(_0x139981,_0x4b9c45){_0x4b9c45||(_0x4b9c45={});var _0x212f99={};if((_0x4b9c45['arrays']||_0x4b9c45['defaults'])&&(_0x212f99['buffers']=[],_0x212f99['types']=[]),_0x4b9c45['defaults']&&(_0x212f99['id']='',_0x212f99['bundleVersion']='',_0x212f99['lastOperationId']=''),null!=_0x139981['id']&&_0x139981['hasOwnProperty']('id')&&(_0x212f99['id']=_0x139981['id']),null!=_0x139981['bundleVersion']&&_0x139981['hasOwnProperty']('bundleVersion')&&(_0x212f99['bundleVersion']=_0x139981['bundleVersion']),_0x139981['buffers']&&_0x139981['buffers']['length']){_0x212f99['buffers']=[];for(var _0x2150e7=0x0;_0x2150e7<_0x139981['buffers']['length'];++_0x2150e7)_0x212f99['buffers'][_0x2150e7]=_0x4b9c45['bytes']===String?_0x32c136['base64']['encode'](_0x139981['buffers'][_0x2150e7],0x0,_0x139981['buffers'][_0x2150e7]['length']):_0x4b9c45['bytes']===Array?Array['prototype']['slice']['call'](_0x139981['buffers'][_0x2150e7]):_0x139981['buffers'][_0x2150e7];}if(_0x139981['types']&&_0x139981['types']['length']){for(_0x212f99['types']=[],_0x2150e7=0x0;_0x2150e7<_0x139981['types']['length'];++_0x2150e7)_0x212f99['types'][_0x2150e7]=_0x139981['types'][_0x2150e7];}return null!=_0x139981['lastOperationId']&&_0x139981['hasOwnProperty']('lastOperationId')&&(_0x212f99['lastOperationId']=_0x139981['lastOperationId']),_0x212f99;},_0x3e9b43['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3e9b43['getTypeUrl']=function(_0x2f4ecc){return void 0x0===_0x2f4ecc&&(_0x2f4ecc='type.googleapis.com'),_0x2f4ecc+'/CollaborativeEditingConnectMessage';},_0x3e9b43;}()),_0xdb1853['OperationMetadataDescriptor']=(function(){function _0x1ee512(_0xc6d5c6){if(_0xc6d5c6){for(var _0x25b825=Object['keys'](_0xc6d5c6),_0x302a69=0x0;_0x302a69<_0x25b825['length'];++_0x302a69)null!=_0xc6d5c6[_0x25b825[_0x302a69]]&&(this[_0x25b825[_0x302a69]]=_0xc6d5c6[_0x25b825[_0x302a69]]);}}return _0x1ee512['prototype']['userId']='',_0x1ee512['prototype']['type']='',_0x1ee512['prototype']['createdAt']='',_0x1ee512['create']=function(_0x5bb001){return new _0x1ee512(_0x5bb001);},_0x1ee512['encode']=function(_0x57d3d6,_0x114269){return _0x114269||(_0x114269=_0x320e1c['create']()),null!=_0x57d3d6['userId']&&Object['hasOwnProperty']['call'](_0x57d3d6,'userId')&&_0x114269['uint32'](0xa)['string'](_0x57d3d6['userId']),null!=_0x57d3d6['type']&&Object['hasOwnProperty']['call'](_0x57d3d6,'type')&&_0x114269['uint32'](0x12)['string'](_0x57d3d6['type']),null!=_0x57d3d6['createdAt']&&Object['hasOwnProperty']['call'](_0x57d3d6,'createdAt')&&_0x114269['uint32'](0x1a)['string'](_0x57d3d6['createdAt']),_0x114269;},_0x1ee512['encodeDelimited']=function(_0x52e4c8,_0x5f5180){return this['encode'](_0x52e4c8,_0x5f5180)['ldelim']();},_0x1ee512['decode']=function(_0x1a0af1,_0x375c3d,_0x21546f){_0x1a0af1 instanceof _0x254bdb||(_0x1a0af1=_0x254bdb['create'](_0x1a0af1));for(var _0x433268=void 0x0===_0x375c3d?_0x1a0af1['len']:_0x1a0af1['pos']+_0x375c3d,_0x5e6893=new _0xdb1853['OperationMetadataDescriptor']();_0x1a0af1['pos']<_0x433268;){var _0x4d148b=_0x1a0af1['uint32']();if(_0x4d148b===_0x21546f)break;switch(_0x4d148b>>>0x3){case 0x1:_0x5e6893['userId']=_0x1a0af1['string']();break;case 0x2:_0x5e6893['type']=_0x1a0af1['string']();break;case 0x3:_0x5e6893['createdAt']=_0x1a0af1['string']();break;default:_0x1a0af1['skipType'](0x7&_0x4d148b);}}return _0x5e6893;},_0x1ee512['decodeDelimited']=function(_0x2b87fe){return _0x2b87fe instanceof _0x254bdb||(_0x2b87fe=new _0x254bdb(_0x2b87fe)),this['decode'](_0x2b87fe,_0x2b87fe['uint32']());},_0x1ee512['verify']=function(_0xfc07b){return'object'!=typeof _0xfc07b||null===_0xfc07b?'object\x20expected':null!=_0xfc07b['userId']&&_0xfc07b['hasOwnProperty']('userId')&&!_0x32c136['isString'](_0xfc07b['userId'])?'userId:\x20string\x20expected':null!=_0xfc07b['type']&&_0xfc07b['hasOwnProperty']('type')&&!_0x32c136['isString'](_0xfc07b['type'])?'type:\x20string\x20expected':null!=_0xfc07b['createdAt']&&_0xfc07b['hasOwnProperty']('createdAt')&&!_0x32c136['isString'](_0xfc07b['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x1ee512['fromObject']=function(_0x31b70a){if(_0x31b70a instanceof _0xdb1853['OperationMetadataDescriptor'])return _0x31b70a;var _0x3cdb42=new _0xdb1853['OperationMetadataDescriptor']();return null!=_0x31b70a['userId']&&(_0x3cdb42['userId']=String(_0x31b70a['userId'])),null!=_0x31b70a['type']&&(_0x3cdb42['type']=String(_0x31b70a['type'])),null!=_0x31b70a['createdAt']&&(_0x3cdb42['createdAt']=String(_0x31b70a['createdAt'])),_0x3cdb42;},_0x1ee512['toObject']=function(_0x502376,_0x165394){_0x165394||(_0x165394={});var _0x3b0ef7={};return _0x165394['defaults']&&(_0x3b0ef7['userId']='',_0x3b0ef7['type']='',_0x3b0ef7['createdAt']=''),null!=_0x502376['userId']&&_0x502376['hasOwnProperty']('userId')&&(_0x3b0ef7['userId']=_0x502376['userId']),null!=_0x502376['type']&&_0x502376['hasOwnProperty']('type')&&(_0x3b0ef7['type']=_0x502376['type']),null!=_0x502376['createdAt']&&_0x502376['hasOwnProperty']('createdAt')&&(_0x3b0ef7['createdAt']=_0x502376['createdAt']),_0x3b0ef7;},_0x1ee512['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1ee512['getTypeUrl']=function(_0x190342){return void 0x0===_0x190342&&(_0x190342='type.googleapis.com'),_0x190342+'/OperationMetadataDescriptor';},_0x1ee512;}()),_0xdb1853;})());class MessagesCompressor{static['decode'](_0x22b107,_0x3e34d1){const _0x532caa=_getType(_0x3e34d1)['decode']('undefined'==typeof window?_0x22b107:new Uint8Array(_0x22b107));return _0x3e34d1['fromJSON']({..._0x532caa});}static['encode'](_0x15daa9){const _0x126c76=_getType(_0x15daa9['constructor']),_0x4e2cf2=_0x15daa9['toJSON'](),_0x368a57=_0x126c76['verify'](_0x4e2cf2);if(_0x368a57)throw Error(_0x368a57);return _0x126c76['encode'](_0x126c76['create'](_0x4e2cf2))['finish']();}}function _getType(_0x17e097){return messages$1[_0x17e097['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(_0x431a0a){super(),this['ids']=_0x431a0a;}['toJSON'](){return{'ids':this['ids']};}static['fromJSON'](_0x2ecfed){return new GetManyUsersMessage(_0x2ecfed['ids']);}}class GetManyUsersResponse extends Message{['users'];static ['DESCRIPTOR_NAME']='GetManyUsersResponse';static ['DESCRIPTOR']={'fields':{'users':{'rule':'repeated','type':'UserDescriptor','id':0x1}}};constructor(_0x1a2e5d){super(),this['users']=_0x1a2e5d;}['toJSON'](){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](_0x2f4196){return new GetManyUsersResponse(_0x2f4196['users']['map'](_userFromJson));}}function _userToJson(_0x214184){return{'attributes':Object['keys'](_0x214184)['map'](_0x381c3a=>({'key':_0x381c3a,'value':JSON['stringify'](_0x214184[_0x381c3a])}))};}function _userFromJson(_0x488d24){return _0x488d24['attributes']['reduce']((_0x4acc66,_0x4a0202)=>(_0x4acc66[_0x4a0202['key']]=_0x4a0202['value']?JSON['parse'](_0x4a0202['value']):null,_0x4acc66),{});}class User{static ['_SERVICE']=0x2;constructor(_0x18c8e1={}){this['_attributes']=new Map();for(const _0x3ed4f4 of Object['keys'](_0x18c8e1))'id'!==_0x3ed4f4?(this['_attributes']['set'](_0x3ed4f4,_0x18c8e1[_0x3ed4f4]),Object['defineProperty'](this,_0x3ed4f4,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x3ed4f4)})):this['id']=_0x18c8e1['id'];}static['fromData'](_0x493f44){return new User(_0x493f44);}static async['get'](_0x4e262e,_0x2369bb){const _0x24b4be=new GetUserMessage(_0x2369bb);try{const _0x58776e=await _0x4e262e['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x24b4be)),_0x16475c=MessagesCompressor['decode'](_0x58776e,GetUserResponse);return new User(_0x16475c['attributes']);}catch(_0x5c081b){return new User({'id':_0x2369bb});}}static async['getMany'](_0x35f64f,_0xe4c9fa){const _0x5f45ba=new GetManyUsersMessage(_0xe4c9fa);try{const _0xdd28fb=await _0x35f64f['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0x5f45ba));return MessagesCompressor['decode'](_0xdd28fb,GetManyUsersResponse)['users']['map'](_0x52b12b=>new User(_0x52b12b));}catch(_0x3c9164){return _0xe4c9fa['map'](_0x2695f8=>new User({'id':_0x2695f8}));}}}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(_0xa7a3e4,_0x5226fb,_0x487b3c){super(),this['type']=_0xa7a3e4,this['socketId']=_0x5226fb,this['data']=_0x487b3c;}['toJSON'](){return{'type':this['type'],'socketId':this['socketId'],'data':this['data']};}static['fromJSON'](_0x369cbe){return new ChannelMessage(_0x369cbe['type'],_0x369cbe['socketId'],_0x369cbe['data']);}}class Channel extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_channelName'];['_wsGateway'];['_socket'];constructor(_0x484885,_0x595a57,_0x11ca05){super(),this['_channelName']=_0x484885,this['_wsGateway']=_0x595a57,this['_socket']=_0x11ca05,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}['getEventName'](_0x3e189d,_0x2b12f8=!0x1){let _0x225b0b='';return _0x2b12f8&&(_0x225b0b+='all:'),_0x225b0b+='event',_0x3e189d&&(_0x225b0b+=':'+_0x3e189d),_0x225b0b;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x31fc82=>{const _0x4703b6=MessagesCompressor['decode'](_0x31fc82,ChannelMessage);this['fire'](this['getEventName'](_0x4703b6['type'],!0x0),_0x4703b6['data'],_0x4703b6['socketId']),_0x4703b6['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0x4703b6['type']),_0x4703b6['data'],_0x4703b6['socketId']);});}}class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x7922d2,_0x65fa93,_0x2b71fa=null,_0x47210a={}){super('cloud-services-internal-error:\x20'+_0x7922d2),this['context']=_0x65fa93,this['code']=_0x2b71fa,this['data']=_0x47210a,this['name']='CKEditorError';}static['fromPublicError'](_0x561b34){return new CKEditorCloudServicesError(function(_0x1d2707){let _0x253054='cloud-services-error:\x20'+_0x1d2707['message'];return _0x1d2707['data']&&(_0x253054+='\x0aError\x20data:\x20'+JSON['stringify'](_0x1d2707['data'])),_0x1d2707['explanation']&&(_0x253054+='\x0aExplanation:\x20'+_0x1d2707['explanation']),_0x1d2707['action']&&(_0x253054+='\x0aAction:\x20'+_0x1d2707['action']),_0x1d2707['traceId']&&(_0x253054+='\x0aTraceId:\x20'+_0x1d2707['traceId']),_0x1d2707['code']&&(_0x253054+='\x0aCode:\x20'+_0x1d2707['code']),_0x253054;}(_0x561b34),_0x561b34);}}class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x3fefa3,_0x1e7941){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x3fefa3,this['code']=_0x1e7941['code'],this['traceId']=_0x1e7941['traceId'],this['data']=_0x1e7941['data'];}static['fromPublicError'](_0xb352d3){return new CKEditorCloudServicesServerError(function(_0x21ecc1){let _0x119567='cloud-services-server-error:\x20'+_0x21ecc1['message'];return _0x21ecc1['explanation']&&(_0x119567+='\x0aExplanation:\x20'+_0x21ecc1['explanation']),_0x21ecc1['action']&&(_0x119567+='\x0aAction:\x20'+_0x21ecc1['action']),_0x21ecc1['traceId']&&(_0x119567+='\x0aTraceId:\x20'+_0x21ecc1['traceId']),_0x21ecc1['code']&&(_0x119567+='\x0aCode:\x20'+_0x21ecc1['code']),_0x119567;}(_0xb352d3),_0xb352d3);}}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(_0x18b662,_0x4f412f=[],_0x3a17c9=[]){super(),this['flags']=_0x18b662,this['rooms']=_0x4f412f,this['except']=_0x3a17c9;}['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'](_0x479977){return new PacketOptionsMessage(_0x479977['flags']&&JSON['parse'](_0x479977['flags']),_0x479977['rooms'],_0x479977['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'](..._0x754c65){let _0x15b40b=0x0;for(let _0x486866=0x0;_0x486866<_0x754c65['length'];_0x486866++)_0x15b40b+=_0x754c65[_0x486866]*Math['pow'](0xa,_0x754c65['length']-_0x486866-0x1);return _0x15b40b;}static['getType'](_0x1768d4){if(ParserUtils['isBuffer'](_0x1768d4))return MessageDataTypes_BUFFER;const _0xe9063=typeof _0x1768d4;return'string'===_0xe9063?MessageDataTypes_STRING:'number'===_0xe9063?MessageDataTypes_NUMBER:MessageDataTypes_OBJECT;}static['isBuffer'](_0xd0c25){return IS_NODE&&Buffer['isBuffer'](_0xd0c25)||_0xd0c25 instanceof ArrayBuffer||_0xd0c25 instanceof Uint8Array||this['_isBufferView'](_0xd0c25);}static['_isBufferView'](_0x4235e2){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x4235e2):_0x4235e2['buffer']instanceof ArrayBuffer;}}class PackageDataMessage extends Message{['data'];['data1'];static['create'](_0x1978a0,_0x101f02){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(_0x280551,_0x769a46){super(),this['data']=_0x280551,this['data1']=_0x769a46;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x2b2220){return new NumberBytesPacketDataMessage(_0x2b2220['data'],_0x2b2220['data1']);}static['create'](_0x3bf3b6,_0x10710c){return new NumberBytesPacketDataMessage(_0x3bf3b6,_0x10710c);}}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(_0x195769,_0xe53287){super(),this['data']=_0x195769,this['data1']=_0xe53287;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x5c926e){return new StringBytesPacketDataMessage(_0x5c926e['data'],_0x5c926e['data1']);}static['create'](_0x2d0c00,_0x2af5fe){return new StringBytesPacketDataMessage(_0x2d0c00,_0x2af5fe);}}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(_0x437e37,_0x5f5322){super(),this['data']=_0x437e37,this['data1']=_0x5f5322;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x3e7264){return new BytesBytesPacketDataMessage(_0x3e7264['data'],_0x3e7264['data1']);}static['create'](_0x518659,_0x14b81e){return new BytesBytesPacketDataMessage(_0x518659,_0x14b81e);}}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(_0x908c74,_0x1bb03f){super(),this['data']=_0x908c74,this['data1']=_0x1bb03f;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x459cc3){return new StringObjectPacketDataMessage(_0x459cc3['data'],_0x459cc3['data1']&&JSON['parse'](_0x459cc3['data1']));}static['create'](_0x1e821c,_0x2690ab){return new StringObjectPacketDataMessage(_0x1e821c,_0x2690ab);}}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(_0x30d366,_0x264a69){super(),this['data']=_0x30d366,this['data1']=_0x264a69;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x154536){return new NumberObjectPacketDataMessage(_0x154536['data'],_0x154536['data1']&&JSON['parse'](_0x154536['data1']));}static['create'](_0x34bcb1,_0x3ec946){return new NumberObjectPacketDataMessage(_0x34bcb1,_0x3ec946);}}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(_0x44ecaf,_0x31d82c){super(),this['data']=_0x44ecaf,this['data1']=_0x31d82c;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x4f6d76){return new ObjectObjectPacketDataMessage(_0x4f6d76['data']&&JSON['parse'](_0x4f6d76['data']),_0x4f6d76['data1']&&JSON['parse'](_0x4f6d76['data1']));}static['create'](_0x358589,_0x21c7ec){return new ObjectObjectPacketDataMessage(_0x358589,_0x21c7ec);}}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(_0x47868b,_0x3d2212){super(),this['data']=_0x47868b,this['data1']=_0x3d2212;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']};}static['fromJSON'](_0x546b3d){return new ObjectBufferPacketDataMessage(_0x546b3d['data']&&JSON['parse'](_0x546b3d['data']),_0x546b3d['data1']);}static['create'](_0x515da0,_0x54bf78){return new ObjectBufferPacketDataMessage(_0x515da0,_0x54bf78);}}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(_0x179591,_0xadd9b3){super(),this['data']=_0x179591,this['data1']=_0xadd9b3;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x2fcbb2){return new StringStringPacketDataMessage(_0x2fcbb2['data'],_0x2fcbb2['data1']);}static['create'](_0x299653,_0x16c502){return new StringStringPacketDataMessage(_0x299653,_0x16c502);}}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(_0x332954,_0x5e6ef5){super(),this['data']=_0x332954,this['data1']=_0x5e6ef5;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x2bcf1c){return new StringNumberPacketDataMessage(_0x2bcf1c['data'],_0x2bcf1c['data1']);}static['create'](_0x4536cd,_0x5f4f99){return new StringNumberPacketDataMessage(_0x4536cd,_0x5f4f99);}}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(_0x1b9599,_0x45c4a1){super(),this['data']=_0x1b9599,this['data1']=_0x45c4a1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x2b9df3){return new NumberNumberPacketDataMessage(_0x2b9df3['data'],_0x2b9df3['data1']);}static['create'](_0x184406,_0x4d3db0){return new NumberNumberPacketDataMessage(_0x184406,_0x4d3db0);}}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(_0x27b744,_0x159c20){super(),this['data']=_0x27b744,this['data1']=_0x159c20;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x413117){return new NumberStringPacketDataMessage(_0x413117['data'],_0x413117['data1']);}static['create'](_0x5db6e1,_0x6bd0d6){return new NumberStringPacketDataMessage(_0x5db6e1,_0x6bd0d6);}}const PACKET_DATA_MESSAGES=/* #__PURE__ -- @preserve */
((()=>[NumberBytesPacketDataMessage,StringBytesPacketDataMessage,BytesBytesPacketDataMessage,StringObjectPacketDataMessage,NumberObjectPacketDataMessage,ObjectObjectPacketDataMessage,ObjectBufferPacketDataMessage,StringStringPacketDataMessage,StringNumberPacketDataMessage,NumberNumberPacketDataMessage,NumberStringPacketDataMessage]['reduce']((_0xf1aa57,_0x4ba912)=>(_0xf1aa57[_0x4ba912['TYPE']]=_0x4ba912,_0xf1aa57),{}))());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(_0x4bd2fa,_0x353a96,_0x2dfb5d,_0x38db2c='/',_0x16b415){super(),this['type']=_0x4bd2fa,this['data']=_0x353a96,this['id']=_0x2dfb5d,this['nsp']=_0x38db2c,this['options']=_0x16b415??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 _0x436031=MessagesCompressor['encode'](this['options']),_0x347465=MessagesCompressor['encode'](this['data']);return{'type':this['type']+0xa*this['data']['constructor']['TYPE'],'id':this['id'],'nsp':'/'===this['nsp']?void 0x0:this['nsp'],'data':_0x347465,'options':_0x436031};}static['fromJSON'](_0x3ba29b){const _0x1e0cc6=Math['floor'](_0x3ba29b['type']/0xa);return new PacketMessage(_0x3ba29b['type']-0xa*_0x1e0cc6,MessagesCompressor['decode'](_0x3ba29b['data'],PACKET_DATA_MESSAGES[_0x1e0cc6]),_0x3ba29b['id'],_0x3ba29b['nsp'],_0x3ba29b['options']?MessagesCompressor['decode'](_0x3ba29b['options'],PacketOptionsMessage):new PacketOptionsMessage());}static['create'](_0x5c968d,_0x128645={}){const _0x129c37=ParserUtils['getPacketType'](ParserUtils['getType'](_0x5c968d['data'][0x0]),ParserUtils['getType'](_0x5c968d['data'][0x1]??_0x5c968d['data'][0x0]));return new PacketMessage(_0x5c968d['type'],PACKET_DATA_MESSAGES[_0x129c37]['create'](_0x5c968d['data'][0x0],_0x5c968d['data'][0x1]),_0x5c968d['id'],_0x5c968d['nsp'],new PacketOptionsMessage(_0x128645['flags'],_0x128645['rooms'],_0x128645['except']));}}class PacketParser{['encode'](_0x277ccb,_0x20722c,_0x3e8e94,_0x16cdfe='/',_0x32b99d={}){if(_0x20722c['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const _0x4d3bf6={'type':_0x277ccb,'data':_0x20722c,'id':_0x3e8e94,'nsp':_0x16cdfe};return MessagesCompressor['encode'](PacketMessage['create'](_0x4d3bf6,_0x32b99d));}['decode'](_0x5b78bb){const _0x5cbe67=MessagesCompressor['decode'](_0x5b78bb,PacketMessage);return{'packet':{'id':_0x5cbe67['id'],'type':_0x5cbe67['type'],'data':_0x5cbe67['packetData'],'nsp':_0x5cbe67['nsp']},'options':{'flags':_0x5cbe67['options']['flags'],'rooms':_0x5cbe67['options']['rooms'],'except':_0x5cbe67['options']['except']}};}}const ENCODED_TYPES=/* #__PURE__ -- @preserve */
((()=>[PacketType['EVENT'],PacketType['ACK'],PacketType['BINARY_ACK'],PacketType['BINARY_EVENT']])());class Encoder extends Encoder$1{['_packetParser'];constructor(_0x144355){super(),this['_packetParser']=_0x144355??new PacketParser();}['encode'](_0x3c3044){if(ENCODED_TYPES['includes'](_0x3c3044['type']))try{return[this['_packetParser']['encode'](_0x3c3044['type'],_0x3c3044['data'],_0x3c3044['id'],_0x3c3044['nsp'])];}catch(_0x16f3b1){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0x16f3b1['message']}});}return super['encode'](_0x3c3044);}}class Decoder extends Decoder$1{['_packetParser'];constructor(_0x3a2e8f){super(),this['_packetParser']=_0x3a2e8f??new PacketParser();}['add'](_0x291693){if(!ParserUtils['isBuffer'](_0x291693))return super['add'](_0x291693);let _0x2cf7dd;try{_0x2cf7dd=this['_packetParser']['decode'](_0x291693)['packet'];}catch(_0x57f00e){return super['add'](_0x291693);}super['emitReserved']('decoded',_0x2cf7dd);}}class WebSocketRequest{['_context'];['_deferredPromise']=/* #__PURE__ -- @preserve */
_deferPromise();['timeout'];constructor(_0x9606c1,_0x198979){this['_context']=_0x9606c1,this['timeout']=setTimeout(()=>this['error'](new CKEditorCloudServicesError('Request\x20timeout.',this['_context'])),_0x198979);}get['promise'](){return this['_deferredPromise']['promise'];}['response'](_0x27fd35){this['_deferredPromise']['resolve'](_0x27fd35);}['error'](_0x3c294c){this['_deferredPromise']['reject'](_0x3c294c);}}class WebSocketGatewayRequestsManager{['_context'];['_requests']=new Set();constructor(_0x38dea3){this['_context']=_0x38dea3;}async['send'](_0x1d5068,_0x39d3d9=0xafc8){const _0x170d78=this['_createRequest'](_0x39d3d9);try{return _0x1d5068(_0x170d78),await _0x170d78['promise'];}finally{this['_finishRequest'](_0x170d78);}}['errorAll'](_0x1871e0){for(const _0x1bf450 of this['_requests'])_0x1bf450['error'](_0x1871e0);}['waitForAllRequests'](_0x245b30=0xafc8){return this['_waitForRequests'](_0x245b30);}['_createRequest'](_0xc17f24){const _0x15f924=new WebSocketRequest(this['_context'],_0xc17f24);return this['_requests']['add'](_0x15f924),_0x15f924;}['_finishRequest'](_0x931abd){this['_requests']['delete'](_0x931abd),clearTimeout(_0x931abd['timeout']);}async['_waitForRequests'](_0x154647=0x1388,_0x23dbb2=0x0){return!this['_requests']['size']||_0x23dbb2>=_0x154647/0x1f4?Promise['resolve']():(await new Promise(_0xe3c469=>{setTimeout(_0xe3c469,0x1f4);}),this['_waitForRequests'](_0x154647,_0x23dbb2++));}}function _deferPromise(){let _0xdfe938,_0xe7581b;const _0x27a57c=new Promise((_0x502e9e,_0x172078)=>{_0xdfe938=_0x502e9e,_0xe7581b=_0x172078;});return{'resolve':_0xdfe938,'reject':_0xe7581b,'promise':_0x27a57c};}const WEB_SOCKET_GATEWAY_STATES={'DISCONNECTED':'disconnected','CONNECTING':'connecting','CONNECTED':'connected'};let WebSocketGateway$1=class e extends/* #__PURE__ -- @preserve */
_0x30b1b9(){['_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$1['get']('highest')+0xf423f)());constructor(_0xd9aca6,_0x217507,_0x5d1108,_0x11d487,_0x390e46){if(super(),this['_token']=_0x217507,this['_options']=_0x5d1108??{},this['_connectionProvider']=_0x11d487??lookup,this['_userFactory']=_0x390e46??User['get'],this['_requestsManager']=new WebSocketGatewayRequestsManager(this),this['_channels']=new Map(),!_0xd9aca6)throw new TypeError('Api\x20address\x20must\x20be\x20provided.');if(!this['_token'])throw new TypeError('Token\x20must\x20be\x20provided.');this['_options']['requestTimeout']||(this['_options']['requestTimeout']=0x4e20),this['_url']=urlParseExports(_0xd9aca6['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(_0x13aa74,_0x5c6498,_0x3fdfa3)=>{if(this['_debugEvent']('ws-gw:change:state',_0x3fdfa3),_0x3fdfa3!==e['STATE_CONNECTED']){if(_0x3fdfa3===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(_0x56f6fd){}},{'priority':e['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(_0x158b4f,_0xa1e2c7)=>{this['_options']['onError']?this['_options']['onError'](_0xa1e2c7):console['error'](_0xa1e2c7);});}get['sessionId'](){return this['socketId'];}['waitForAllRequests'](_0x49b113){return this['_requestsManager']['waitForAllRequests'](_0x49b113);}['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'](_0x144484,_0xaed891='local.cs.dev:443/ws-v2',_0x10dec5={},_0x50921f=lookup,_0x1fb610=User['get']){const _0x597eae=new e(_0xaed891,_0x144484,_0x10dec5,_0x50921f,_0x1fb610);return await _0x597eae['_connect'](),_0x597eae;}['_sendRequest'](_0x479be3,_0x269bc1,_0x4c6dc7){if(!_0x479be3)throw new CKEditorCloudServicesError('`serviceName`\x20must\x20be\x20provided.',this);if(this['state']!==e['STATE_CONNECTED'])throw new CKEditorCloudServicesError('Not\x20connected.',this);if(!this['_socketAuth']||!this['_socketAuth']['isAuthenticated'])throw new CKEditorCloudServicesError('Not\x20authenticated.',this);const _0x1f9ff2=new ArrayBuffer(_0x4c6dc7['length']+0x2),_0x3395fc=new Uint8Array(_0x1f9ff2);return _0x3395fc[0x0]=_0x479be3,_0x3395fc[0x1]=parseInt(_0x269bc1),_0x3395fc['set'](_0x4c6dc7,0x2),this['_emit'](0x1,_0x3395fc);}['_getChannel'](_0x5894e2,_0x1f8909){const _0x37c301=''+_0x5894e2+_0x1f8909;return!this['_channels']['has'](_0x37c301)&&this['_socket']&&this['_channels']['set'](_0x37c301,new Channel(_0x37c301,this,this['_socket'])),this['_channels']['get'](_0x37c301);}['_connect'](){return new Promise((_0x11aeeb,_0x70ab25)=>{const _0x5c4f90=this['_setupSocket']();!this['socketId']&&_0x5c4f90['io']['on']('reconnect_error',()=>{this['_debugEvent']('reconnect_error'),this['_reconnectionAttemptError'](_0x70ab25);}),_0x5c4f90['once']('connect',async()=>{this['_debugEvent']('once-connect');try{await this['_onConnect'](),_0x11aeeb();}catch(_0x48a9bb){_0x70ab25(_0x48a9bb);}}),_0x5c4f90['connect']();});}['_getPortByProtocol'](_0x18e34f){return['http:','ws:']['includes'](_0x18e34f)?0x50:0x1bb;}['_setupSocket'](){if(this['_socket'])return this['_socket'];const _0x2e180a=this['_url']['port']||this['_getPortByProtocol'](this['_url']['protocol']),_0x39ba8c=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+_0x2e180a,_0x1b3444=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',_0x2fb84e=this['_connectionProvider'](_0x39ba8c,{'parser':{'Encoder':Encoder,'Decoder':Decoder},'path':_0x1b3444+'/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':'53.0.3'},'agent':this['_options']['agent']??!0x1,'closeOnBeforeunload':!0x1});return this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],_0x2fb84e['on']('connect',()=>{this['_debugEvent']('connect'),this['socketId']=_0x2fb84e['id'];}),_0x2fb84e['on']('connect_error',_0x1d2ddd=>{this['_debugEvent']('connect_error',_0x1d2ddd);}),_0x2fb84e['on']('disconnect',()=>{this['_debugEvent']('disconnect'),this['_onDisconnect']();}),_0x2fb84e['io']['on']('reconnect',async()=>{this['_debugEvent']('reconnect'),await this['_onReconnect']();}),_0x2fb84e['io']['on']('reconnect_attempt',_0x1c337d=>{this['_debugEvent']('reconnect_attempt',_0x1c337d),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],this['_connectionAttempt']=_0x1c337d;}),_0x2fb84e['on']('unauthorized',_0x19f52e=>{this['_debugEvent']('unauthorized'),this['_onUnauthorized'](_0x19f52e);}),_0x2fb84e['on']('authenticationRequest',async _0x47b89d=>{this['_debugEvent']('authenticationRequest',_0x47b89d['attempt']),await this['_onReconnect']();}),this['_socket']=_0x2fb84e,_0x2fb84e;}['_emit'](_0x16534d,_0x377441){const _0x488c06=this['_socket'];return this['_requestsManager']['send'](_0x52016e=>{_0x488c06['emit'](_0x16534d,_0x377441,(_0x199503,_0x56f1c3)=>{if(_0x199503)return _0x52016e['error'](CKEditorCloudServicesServerError['fromPublicError'](_0x199503));_0x52016e['response'](_0x56f1c3);});},this['_options']['requestTimeout']);}['_addAuthData'](_0x233c61,_0x59c54c){this['_socketAuth']={'environmentId':_0x233c61,'userId':_0x59c54c,'isAuthenticated':!0x0};}['_removeAuthData'](){this['_socketAuth']=void 0x0;}async['_onConnect'](){await this['_authenticate'](this['_token']['value']),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];const _0x3cc597=async(_0x2635ce,_0x25db79,_0x16c81b)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0x16c81b);}catch(_0x2bc6ca){}};this['_token']['on']('change:value',_0x3cc597),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x3cc597);});}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 _0x2525c2 of this['_channels']['values']())_0x2525c2['remove']();this['_channels']['clear'](),void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect']||(this['_socket']=void 0x0);}['_debugEvent'](_0x143266,_0x2ec5af){if(!this['_isDebugModeEnabled']())return;const _0xd365d5=void 0x0!==_0x2ec5af?',\x20data:\x20'+_0x2ec5af:'';console['info'](new Date()['toLocaleString']()+'\x20'+_0x143266+_0xd365d5);}['_reconnectionAttemptError'](_0x1f55ad){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0x1f55ad(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:_0x29700d}){this['_removeAuthData'](),this['fire']('error',CKEditorCloudServicesServerError['fromPublicError'](_0x29700d));}async['_authenticate'](_0x3da867){try{this['_debugEvent']('authenticate:start');const _0x1b7418=await this['_emit'](0x2,{'token':_0x3da867});this['_debugEvent']('authenticate:success','envId:\x20'+_0x1b7418['environmentId']+',\x20userId:\x20'+_0x1b7418['userId']),this['_addAuthData'](_0x1b7418['environmentId'],_0x1b7418['userId']);}catch(_0x340381){throw this['_debugEvent']('authenticate:error',_0x340381['message']),this['_removeAuthData'](),_0x340381;}}['_isDebugModeEnabled'](){return!!_0x1bdc69['window']['localStorage']&&'true'===(_0x1bdc69['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(_0x10d268){super(),this['bundleVersion']=_0x10d268;}['toJSON'](){return{'bundleVersion':this['bundleVersion']};}static['fromJSON'](_0x12fb6c){return new IsEditorBundleUploadedMessage(_0x12fb6c['bundleVersion']);}}class IsEditorBundleUploadedResponse extends Message{['isUploaded'];static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedResponse';static ['DESCRIPTOR']={'fields':{'isUploaded':{'type':'bool','id':0x1}}};constructor(_0x376087){super(),this['isUploaded']=_0x376087;}['toJSON'](){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0x3d32ad){return new IsEditorBundleUploadedResponse(_0x3d32ad['isUploaded']);}}class EditorService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](_0x3bee5a,_0x181477){const _0x22cd37=new IsEditorBundleUploadedMessage(_0x181477);if(_0x3bee5a['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x3bee5a);const _0x24cc21=await _0x3bee5a['_sendRequest'](EditorService['_SERVICE'],IsEditorBundleUploadedMessage['TYPE'],MessagesCompressor['encode'](_0x22cd37));return MessagesCompressor['decode'](_0x24cc21,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(_0x22586f,_0x35c6d5){super(),this['documentId']=_0x22586f,this['revisionId']=_0x35c6d5;}['toJSON'](){return{'documentId':this['documentId'],'revisionId':this['revisionId']};}static['fromJSON'](_0x210bd0){return new RevisionHistoryGetRevisionMessage(_0x210bd0['documentId'],_0x210bd0['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'](_0x3fa70c){return{'revisionId':_0x3fa70c['id'],'name':_0x3fa70c['name'],'creatorId':_0x3fa70c['creatorId'],'createdAt':_0x3fa70c['createdAt'],'fromVersion':_0x3fa70c['fromVersion'],'toVersion':_0x3fa70c['toVersion'],'isEmptyCurrent':_0x3fa70c['isEmptyCurrent'],'diffData':_0x3fa70c['diffData']?JSON['stringify'](_0x3fa70c['diffData']):void 0x0,'attributes':_0x3fa70c['attributes'],'authorsIds':_0x3fa70c['authorsIds']};}static['toJSON'](_0x5b8b83){return{'revisionId':_0x5b8b83['revisionId'],'name':_0x5b8b83['name'],'creatorId':_0x5b8b83['creatorId'],'authorsIds':_0x5b8b83['authorsIds']?JSON['stringify'](_0x5b8b83['authorsIds']):void 0x0,'diffData':_0x5b8b83['diffData'],'createdAt':_0x5b8b83['createdAt']?.['toISOString'](),'attributes':_0x5b8b83['attributes']?JSON['stringify'](_0x5b8b83['attributes']):void 0x0,'toVersion':_0x5b8b83['toVersion'],'fromVersion':_0x5b8b83['fromVersion'],'isEmptyCurrent':_0x5b8b83['isEmptyCurrent']};}static['fromJSON'](_0x19621e){return{'revisionId':(_0x19621e={..._0x19621e})['revisionId'],'name':_0x19621e['name'],'creatorId':_0x19621e['creatorId'],'authorsIds':_0x19621e['authorsIds']?JSON['parse'](_0x19621e['authorsIds']):void 0x0,'diffData':_0x19621e['diffData'],'createdAt':_0x19621e['createdAt']?new Date(_0x19621e['createdAt']):void 0x0,'attributes':_0x19621e['attributes']?JSON['parse'](_0x19621e['attributes']):void 0x0,'toVersion':_0x19621e['toVersion'],'fromVersion':_0x19621e['fromVersion'],'isEmptyCurrent':_0x19621e['isEmptyCurrent']};}static['toObject'](_0x37386a){return function(_0x3ab9d7){for(const [_0x1c8947,_0x3057d1]of Object['entries'](_0x3ab9d7))void 0x0===_0x3057d1&&delete _0x3ab9d7[_0x1c8947];return _0x3ab9d7;}({'id':_0x37386a['revisionId'],'name':_0x37386a['name'],'creatorId':_0x37386a['creatorId'],'createdAt':_0x37386a['createdAt'],'fromVersion':_0x37386a['fromVersion'],'toVersion':_0x37386a['toVersion'],'isEmptyCurrent':_0x37386a['isEmptyCurrent'],'diffData':_0x37386a['diffData']?JSON['parse'](_0x37386a['diffData']):void 0x0,'attributes':_0x37386a['attributes'],'authorsIds':_0x37386a['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(_0x144927,_0x3b8736,_0x347002,_0x98ac19,_0x36df4f,_0x418d3b,_0x5ab231,_0x2ff5ea,_0x1b24c9,_0x58f89a){super(),this['revisionId']=_0x144927,this['name']=_0x3b8736,this['creatorId']=_0x347002,this['authorsIds']=_0x98ac19,this['createdAt']=_0x36df4f,this['diffData']=_0x418d3b,this['attributes']=_0x5ab231,this['fromVersion']=_0x2ff5ea,this['toVersion']=_0x1b24c9,this['isEmptyCurrent']=_0x58f89a;}['toJSON'](){return RevisionDescriptor['toJSON'](this);}['toObject'](){return RevisionDescriptor['toObject'](this);}static['create'](_0x40e2b3){return new RevisionHistoryGetRevisionResponse(_0x40e2b3['revisionId'],_0x40e2b3['name'],_0x40e2b3['creatorId'],_0x40e2b3['authorsIds'],_0x40e2b3['createdAt'],_0x40e2b3['diffData'],_0x40e2b3['attributes'],_0x40e2b3['fromVersion'],_0x40e2b3['toVersion'],_0x40e2b3['isEmptyCurrent']);}static['fromJSON'](_0x33b02b){return new RevisionHistoryGetRevisionResponse(_0x33b02b['revisionId'],_0x33b02b['name'],_0x33b02b['creatorId'],_0x33b02b['authorsIds']?JSON['parse'](_0x33b02b['authorsIds']):void 0x0,_0x33b02b['createdAt']?new Date(_0x33b02b['createdAt']):void 0x0,_0x33b02b['diffData'],_0x33b02b['attributes']?JSON['parse'](_0x33b02b['attributes']):void 0x0,_0x33b02b['fromVersion'],_0x33b02b['toVersion'],_0x33b02b['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(_0x2a4a65,_0x2a7f0d,_0x576fca){super(),this['documentId']=_0x2a4a65,this['requestId']=_0x2a7f0d,this['revisions']=_0x576fca;}['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'](_0x432eb1){return new RevisionHistoryUpdateRevisionsMessage(_0x432eb1['documentId'],_0x432eb1['requestId'],_0x432eb1['revisions']['map'](RevisionDescriptor['create']));}static['fromJSON'](_0x4ca93a){return new RevisionHistoryUpdateRevisionsMessage(_0x4ca93a['documentId'],_0x4ca93a['requestId'],_0x4ca93a['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryUpdateRevisionsResponse extends Message{['requestId'];static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsResponse';static ['DESCRIPTOR']={'fields':{'requestId':{'type':'uint32','id':0x1}}};constructor(_0x3b1dbc){super(),this['requestId']=_0x3b1dbc;}['toJSON'](){return{'requestId':this['requestId']};}static['fromJSON'](_0x5012cb){return new RevisionHistoryUpdateRevisionsResponse(_0x5012cb['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(_0x550857){super(),this['documentId']=_0x550857;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x2003e6){return new RevisionHistoryConnectMessage(_0x2003e6['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(_0x2205b8,_0x164539,_0x103f0f){super(),this['channel']=_0x2205b8,this['requestId']=_0x164539,this['revisions']=_0x103f0f;}['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'](_0x180e14){return new RevisionHistoryConnectResponse(_0x180e14['channel'],_0x180e14['requestId'],_0x180e14['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(_0xc373ac,_0xa50ddc){super(),this['documentId']=_0xc373ac,this['requestId']=_0xa50ddc;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId']};}static['fromJSON'](_0x25736c){return new RevisionHistoryReconnectMessage(_0x25736c['documentId'],_0x25736c['requestId']);}}class ServiceNotConnectedError extends CKEditorCloudServicesError{constructor(_0x3f3eed,_0x1756dc){super(_0x3f3eed+'\x20Service\x20is\x20not\x20connected.',_0x1756dc);}}class RevisionHistoryService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xc;constructor(_0x1014a7){super(),this['_documentId']=_0x1014a7;}get['isConnected'](){return this['_isConnected'];}['connect'](_0x12c2a6){return this['_isConnected']?Promise['resolve']():this['_connect'](_0x12c2a6,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'](_0x38672d,_0x1bd021){if(this['isConnected'])throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x38672d);return this['_connect'](_0x38672d,new RevisionHistoryReconnectMessage(this['_documentId'],_0x1bd021));}async['updateRevisions'](_0x2a1494,_0x31f7d7){const _0x480a6f=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':_0x31f7d7,'revisions':_0x2a1494}),_0x6ab043=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0x480a6f),{requestId:_0x43aa7b}=MessagesCompressor['decode'](_0x6ab043,RevisionHistoryUpdateRevisionsResponse);return _0x43aa7b;}async['getRevision'](_0x286c50){const _0x330ca4=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0x286c50),_0x4dc931=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0x330ca4);return MessagesCompressor['decode'](_0x4dc931,RevisionHistoryGetRevisionResponse)['toObject']();}async['_connect'](_0x30751f,_0x5f1c98){if(_0x30751f['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x30751f);this['_wsGateway']=_0x30751f,this['stopListening'](_0x30751f,'change:state');const _0x200111=await _0x30751f['_sendRequest'](0xc,_0x5f1c98['constructor']['TYPE'],MessagesCompressor['encode'](_0x5f1c98)),{channel:_0xfa18a7,requestId:_0x573419,revisions:_0x6cb937}=MessagesCompressor['decode'](_0x200111,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](_0x30751f,'change:state',(_0x353fd2,_0x4c4788,_0x4751e2)=>this['_onWsGatewayStateChange'](_0x4751e2),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x30751f,_0xfa18a7),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x6cb937,'requestId':_0x573419};}['_connectToChannel'](_0x523f9e,_0x22ab07){this['_channel']=_0x523f9e['_getChannel'](RevisionHistoryService['_SERVICE'],_0x22ab07),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(_0x722af2,_0x4d0135)=>{const {documentId:_0x1ffaa7,requestId:_0x269618,revisions:_0x230d09}=MessagesCompressor['decode'](_0x4d0135,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':_0x1ffaa7,'requestId':_0x269618,'revisionsData':_0x230d09});});}['_onWsGatewayStateChange'](_0xf49183){_0xf49183===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x5a6c18,_0x2ce2db){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,_0x5a6c18,MessagesCompressor['encode'](_0x2ce2db));}}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(_0x26dcb4,_0x7f3f25,_0x5d908a,_0x3bc764={},_0x53bb14=null,_0x3916c3=null){super(),this['id']=_0x26dcb4,this['documentId']=_0x7f3f25,this['type']=_0x5d908a,this['data']=_0x3bc764,this['originalSuggestionId']=_0x53bb14,this['attributes']=_0x3916c3;}['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'](_0x180050){return new AddSuggestionMessage(_0x180050['id'],_0x180050['documentId'],_0x180050['type'],JSON['parse'](_0x180050['data']),_0x180050['originalSuggestionId']??null,_0x180050['attributes']?JSON['parse'](_0x180050['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(_0x5e013e,_0x55b363,_0x2cab74,_0x41b21c,_0x269046,_0x3f6161,_0x5e1861={},_0x54c1b5=null){super(),this['id']=_0x5e013e,this['authorId']=_0x55b363,this['type']=_0x2cab74,this['hasComments']=_0x269046,this['state']=_0x3f6161,this['data']=_0x5e1861,this['attributes']=_0x54c1b5,this['createdAt']=_0x41b21c?new Date(_0x41b21c):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'](_0x5bb6b8){return new AddSuggestionResponse(_0x5bb6b8['id'],_0x5bb6b8['authorId'],_0x5bb6b8['type'],_0x5bb6b8['createdAt'],_0x5bb6b8['hasComments'],_0x5bb6b8['state'],JSON['parse'](_0x5bb6b8['data']),_0x5bb6b8['attributes']?JSON['parse'](_0x5bb6b8['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(_0x55ad56,_0x1f4928){super(),this['id']=_0x55ad56,this['documentId']=_0x1f4928;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId']};}static['fromJSON'](_0x63b1b){return new GetSuggestionMessage(_0x63b1b['id'],_0x63b1b['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(_0x5a0470,_0x3390ec,_0xe532ec,_0x424fc3,_0x121faa,_0x6946cb,_0x3cc3ba={},_0x46e4ae=null){super(),this['id']=_0x5a0470,this['authorId']=_0x3390ec,this['type']=_0xe532ec,this['hasComments']=_0x121faa,this['state']=_0x6946cb,this['data']=_0x3cc3ba,this['attributes']=_0x46e4ae,this['createdAt']=new Date(_0x424fc3);}['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'](_0x45e52a){return new GetSuggestionResponse(_0x45e52a['id'],_0x45e52a['authorId'],_0x45e52a['type'],_0x45e52a['createdAt'],_0x45e52a['hasComments'],_0x45e52a['state'],JSON['parse'](_0x45e52a['data']),_0x45e52a['attributes']?JSON['parse'](_0x45e52a['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(_0x31b9b1){super(),this['documentId']=_0x31b9b1;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x28dccc){return new GetAllSuggestionsMessage(_0x28dccc['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'](_0x31966c){return{..._0x31966c,'data':_0x31966c['data']?JSON['stringify'](_0x31966c['data']):_0x31966c['data'],'attributes':_0x31966c['attributes']?JSON['stringify'](_0x31966c['attributes']):_0x31966c['attributes'],'createdAt':_0x31966c['createdAt']?.['toISOString']()};}static['fromJSON'](_0x42c87c){return{..._0x42c87c,'data':_0x42c87c['data']?JSON['parse'](_0x42c87c['data']):_0x42c87c['data'],'attributes':_0x42c87c['attributes']?JSON['parse'](_0x42c87c['attributes']):_0x42c87c['attributes'],'createdAt':_0x42c87c['createdAt']?new Date(_0x42c87c['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(_0x1a3729,_0x4c7326){super(),this['_suggestions']=_0x1a3729,this['_suggestionsV2']=_0x4c7326,this['suggestions']=_0x4c7326?.['length']?_0x4c7326:_0x1a3729;}['toJSON'](){return{'suggestions':this['_suggestions']?.['map'](_0x16bc59=>JSON['stringify'](_0x16bc59)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x3da40b){return new GetAllSuggestionResponse(_0x3da40b['suggestions']?.['map'](_suggestionFromString),_0x3da40b['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}}function _suggestionFromString(_0x4c8685){const _0x5083d0=JSON['parse'](_0x4c8685);return _0x5083d0['createdAt']=_0x5083d0['createdAt']?new Date(_0x5083d0['createdAt']):void 0x0,_0x5083d0;}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(_0x198473,_0x19473e,_0x4b1c8d,_0x261715,_0x29e038,_0xc61a84=null){super(),this['id']=_0x198473,this['documentId']=_0x19473e,this['hasComments']=_0x4b1c8d,this['isHasCommentsModified']=_0x261715,this['state']=_0x29e038,this['attributes']=_0xc61a84;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'hasComments':this['hasComments'],'isHasCommentsModified':this['isHasCommentsModified'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x1b0352){return new UpdateSuggestionMessage(_0x1b0352['id'],_0x1b0352['documentId'],_0x1b0352['hasComments'],_0x1b0352['isHasCommentsModified'],_0x1b0352['state'],_0x1b0352['attributes']?JSON['parse'](_0x1b0352['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(_0x7de24f){super(),this['documentId']=_0x7de24f;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x2a8fd4){return new e(_0x2a8fd4['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(_0xcf595d,_0x462407,_0xf712e9){super(),this['channel']=_0xcf595d,this['_suggestions']=_0x462407,this['_suggestionsV2']=_0xf712e9,this['suggestions']=_0xf712e9?.['length']?_0xf712e9:_0x462407;}['toJSON'](){return{'channel':this['channel'],'suggestions':this['_suggestions']?.['map'](_0x3cc3d8=>JSON['stringify'](_0x3cc3d8)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x22bee7){return new e(_0x22bee7['channel'],_0x22bee7['suggestions']?.['map'](_0x54a975=>JSON['parse'](_0x54a975)),_0x22bee7['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(_0x32bbcc,_0x471a62,_0x14cc98){super(),this['ids']=_0x32bbcc,this['documentId']=_0x471a62,this['state']=_0x14cc98;}['toJSON'](){return{'ids':this['ids'],'documentId':this['documentId'],'state':this['state']};}static['fromJSON'](_0x2eccc5){return new BatchUpdateSuggestionsStateMessage(_0x2eccc5['ids'],_0x2eccc5['documentId'],_0x2eccc5['state']);}}class TrackChangesService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xa;constructor(_0x33052f){super(),this['_documentId']=_0x33052f;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x222a97){if(this['_isConnected'])return;if(_0x222a97['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x222a97);const _0x4bf5ff=new ConnectMessage$1(this['_documentId']);this['_wsGateway']=_0x222a97,this['stopListening'](_0x222a97,'change:state');const _0x4ab2e8=await _0x222a97['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](_0x4bf5ff)),_0x3386a0=MessagesCompressor['decode'](_0x4ab2e8,ConnectResponse$1);return this['listenTo'](_0x222a97,'change:state',(_0x2181c7,_0x5b3296,_0x279fc5)=>this['_onWsGatewayStateChange'](_0x279fc5),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x222a97,_0x3386a0['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x3386a0['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'](_0x50b28e,_0x556700,_0x380e93,_0xaf9390=null,_0x4863a0){const _0x99ede0=new AddSuggestionMessage(_0x50b28e,this['_documentId'],_0x556700,_0x380e93,_0xaf9390,_0x4863a0),_0x4ee0eb=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0x99ede0);return MessagesCompressor['decode'](_0x4ee0eb,AddSuggestionResponse);}async['get'](_0x16a28b,_0x81c542=0x1){const _0x7c6759=new GetSuggestionMessage(_0x16a28b,this['_documentId']);try{const _0x565ff3=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0x7c6759);return MessagesCompressor['decode'](_0x565ff3,GetSuggestionResponse);}catch(_0x2bce21){if('CKEditorCloudServicesServerError'===_0x2bce21['name']&&'404'===_0x2bce21['code']&&_0x81c542<0x5)return await(_0x557a29=0x64*_0x81c542,new Promise(_0x360ae2=>{setTimeout(_0x360ae2,_0x557a29);})),this['get'](_0x16a28b,_0x81c542+0x1);if('CKEditorCloudServicesServerError'===_0x2bce21['name'])throw _0x2bce21;throw CKEditorCloudServicesServerError['fromPublicError'](_0x2bce21);}var _0x557a29;}async['getAll'](){const _0x58a9f7=new GetAllSuggestionsMessage(this['_documentId']),_0x490be1=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0x58a9f7),{suggestions:_0x3545db}=MessagesCompressor['decode'](_0x490be1,GetAllSuggestionResponse);return _0x3545db;}async['update'](_0x2742fc,_0x3f530a={}){const {hasComments:_0x210420,state:_0x689ded,attributes:_0x116fb0}=_0x3f530a,_0x5a1dd3=void 0x0!==_0x210420,_0x55f4ab=new UpdateSuggestionMessage(_0x2742fc,this['_documentId'],_0x210420,_0x5a1dd3,_0x689ded,_0x116fb0);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0x55f4ab);}async['batchUpdateState'](_0x525abe){const _0x2c8ef6=new BatchUpdateSuggestionsStateMessage(_0x525abe['ids'],this['_documentId'],_0x525abe['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x2c8ef6);}['_connectToChannel'](_0x437114,_0x404846){this['_channel']=_0x437114['_getChannel'](TrackChangesService['_SERVICE'],_0x404846),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(_0x33a7ee,_0x3afe2c)=>{const _0x259887=MessagesCompressor['decode'](_0x3afe2c,UpdateSuggestionMessage);this['fire']('suggestionUpdated',_0x259887);});}['_onWsGatewayStateChange'](_0x5d4961){_0x5d4961===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x58288d,_0x375de8){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,_0x58288d,MessagesCompressor['encode'](_0x375de8));}}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(_0xcc33cd,_0x5f4248=[]){super(),this['channel']=_0xcc33cd,this['sockets']=_0x5f4248;}['toJSON'](){return{'channel':this['channel'],'sockets':this['sockets']['map'](_0x4d33c1=>({'user':_0x4d33c1['userId'],'session':_0x4d33c1['id'],'role':_0x4d33c1['role'],'permissions':_0x4d33c1['permissions']}))};}static['fromJSON'](_0x33dc02){return new SessionsConnectResponse(_0x33dc02['channel'],_0x33dc02['sockets']['map'](_0x57c23d=>({'id':_0x57c23d['session'],'userId':_0x57c23d['user'],'role':_0x57c23d['role'],'permissions':_0x57c23d['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(_0x1c9e34,_0xa88da3){super(),this['id']=_0x1c9e34,this['sessionType']=_0xa88da3;}['toJSON'](){return{'id':this['id'],'sessionType':this['sessionType']};}static['fromJSON'](_0x5be0b8){return new SessionsConnectMessage(_0x5be0b8['id'],_0x5be0b8['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(_0x4879e8,_0x4b1d2b,_0x2a695a,_0x3087dd){super(),this['id']=_0x4879e8,this['userId']=_0x4b1d2b,this['role']=_0x2a695a,this['permissions']=_0x3087dd;}['toJSON'](){return{'id':this['id'],'userId':this['userId']??void 0x0,'role':this['role']??void 0x0,'permissions':this['permissions']??void 0x0};}static['fromJSON'](_0x1a9e28){return new SocketConnectMessage(_0x1a9e28['id'],_0x1a9e28['userId'],_0x1a9e28['role'],_0x1a9e28['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(_0x2cc385){super(),this['id']=_0x2cc385;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x199c68){return new SocketDisconnectMessage(_0x199c68['id']);}}class SessionCollection extends Collection$1{['_id'];['_sessionType'];['_handlers']=new Map();['_channel'];['_wsGateway'];['_connected'];['_eventsQueue']=[];['_isRunning']=!0x1;constructor(_0x453e39,_0x2076db){super({'idProperty':'id'}),this['_id']=_0x453e39,this['_sessionType']=_0x2076db;}async['connect'](_0x15d528){this['_wsGateway']=_0x15d528,this['stopListening'](_0x15d528,'change:state');const _0x127698=new SessionsConnectMessage(this['_id'],this['_sessionType']);let _0x4c7c0b;try{const _0x46ef2b=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0x127698));_0x4c7c0b=MessagesCompressor['decode'](_0x46ef2b,SessionsConnectResponse);}catch(_0x1e672d){_0x4c7c0b=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],_0x4c7c0b['channel'],this['_sessionType']);const _0x1f5e22=await async function(_0x2cd694,_0x2f7c7e){const _0x3d28e2=_0x2f7c7e['map'](_0x536704=>_0x536704['userId']),_0x23afa8=_0x3d28e2['length']?await User['getMany'](_0x2cd694,_0x3d28e2):[];return _0x2f7c7e['map'](_0x1334e3=>{const _0x59c007={'id':_0x1334e3['id'],'role':_0x1334e3['role'],'permissions':_0x1334e3['permissions']};return _0x59c007['user']=_0x1334e3['userId']&&_0x23afa8['find'](_0x195423=>_0x195423['id']===_0x1334e3['userId'])||new User(),_0x59c007;});}(this['_wsGateway'],_0x4c7c0b['sockets']);for(const _0x958b7f of _0x1f5e22)super['add'](_0x958b7f);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x36fe97,_0x2c0567,_0x10e9c3)=>this['_onWsGatewayStateChange'](_0x10e9c3),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}['disconnect'](_0x2de96f=!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']&&_0x2de96f&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0x2de96f&&this['stopListening']();}}['add'](_0x44e749,_0x1ab030){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0x55f085){throw new TypeError('The\x20collection\x20is\x20read-only.');}['_connectToChannel'](_0x40e13f,_0x1cbb9d,_0x522613){this['_channel']=_0x40e13f['_getChannel'](_0x522613,_0x1cbb9d),this['_channel']&&(this['_addHandler'](this['_channel'],SocketConnectMessage['TYPE'],async _0x46f01c=>{const _0x46f29d=MessagesCompressor['decode'](_0x46f01c,SocketConnectMessage);if(-0x1===this['getIndex'](_0x46f29d['id'])){const _0x323ba5={'id':_0x46f29d['id'],'role':_0x46f29d['role'],'permissions':_0x46f29d['permissions']};_0x46f29d['userId']&&(_0x323ba5['user']=await User['get'](_0x40e13f,_0x46f29d['userId'])),super['add'](_0x323ba5);}}),this['_addHandler'](this['_channel'],SocketDisconnectMessage['TYPE'],_0x501c15=>{const _0x45029f=MessagesCompressor['decode'](_0x501c15,SocketDisconnectMessage);-0x1!==this['getIndex'](_0x45029f['id'])&&super['remove'](_0x45029f['id']);}));}async['_onWsGatewayStateChange'](_0x369083){_0x369083===WebSocketGateway$1['STATE_DISCONNECTED']&&this['disconnect'](!0x1),_0x369083===WebSocketGateway$1['STATE_CONNECTED']&&await this['connect'](this['_wsGateway']);}async['_runQueue'](){if(this['_isRunning']||!this['_connected'])return;let _0x569e6f;for(this['_isRunning']=!0x0;_0x569e6f=this['_eventsQueue']['shift']();){const _0x7500b1=this['_handlers']['get'](_0x569e6f['eventName']);_0x7500b1&&await _0x7500b1(_0x569e6f['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x156b71,_0x699171,_0x5d02b0){const _0x53b8eb=_0x156b71['getEventName'](_0x699171,!0x0);this['listenTo'](_0x156b71,_0x53b8eb,async(_0x233014,_0x43071d)=>{const _0x5a37cd=_0x233014['name'];this['_eventsQueue']['push']({'eventName':_0x5a37cd,'data':_0x43071d}),await this['_runQueue']();}),this['_handlers']['set'](_0x53b8eb,_0x5d02b0);}}let Sessions$1=class{static async['getConnectedSessions'](_0x50f949,_0x4c08b0,_0x3d0f3e){const _0x43bf20=new SessionCollection(_0x4c08b0,_0x3d0f3e);return await _0x43bf20['connect'](_0x50f949),_0x43bf20;}};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(_0x4ffdfb,_0x3dec07,_0x23efab,_0x337ac2,_0x5b5df6=''){super(),this['id']=_0x4ffdfb,this['buffers']=_0x3dec07,this['types']=_0x23efab,this['bundleVersion']=_0x337ac2,this['lastOperationId']=_0x5b5df6;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x194726){return new CollaborativeEditingConnectMessage(_0x194726['id'],_0x194726['buffers'],_0x194726['types'],_0x194726['bundleVersion'],_0x194726['lastOperationId']);}}class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x127623,_0x4cee12){if(!_0x127623?.['length']||!_0x4cee12?.['length'])return[];const _0x19e8ba=[];let _0x6fc539=0x0;for(const _0x44e123 of _0x127623)if(0x0!==_0x44e123){if(!_0x4cee12[_0x6fc539])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x19e8ba['push'](_0x4cee12[_0x6fc539]),_0x6fc539++;}else _0x19e8ba['push'](_0x19e8ba[_0x19e8ba['length']-0x1]);return _0x19e8ba;}static['removeUnnecessaryMetadata'](_0x43d62e,_0x57a784){if(!_0x43d62e?.['length']||!_0x57a784?.['length'])return[];const _0x4de1dd=[];for(let _0x11a69d=0x0;_0x11a69d<_0x43d62e['length'];_0x11a69d++)if(0x0!==_0x43d62e[_0x11a69d]){if(!_0x57a784[_0x11a69d])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x4de1dd['push'](_0x57a784[_0x11a69d]);}return _0x4de1dd;}}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:_0x2579c9,..._0x2c21f6}){const _0x3c749b={..._0x2c21f6};return _0x2579c9?.['toISOString']&&(_0x3c749b['createdAt']=_0x2579c9['toISOString']()),_0x3c749b;}static['fromJSON']({createdAt:_0x2f4f6f,..._0x14038f}){const _0x3c4383={..._0x14038f};return _0x2f4f6f&&(_0x3c4383['createdAt']=new Date(_0x2f4f6f)),_0x3c4383;}}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(_0x9f2093,_0x404475,_0x524588,_0x162a62,_0x2282e6=[],_0x10fdde=''){super(),this['id']=_0x9f2093,this['buffers']=_0x404475,this['types']=_0x524588,this['baseVersion']=_0x162a62,this['metadata']=_0x2282e6,this['lastOperationId']=_0x10fdde;}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'](_0x46d95a){return new CollaborativeEditingUpdateMessage(_0x46d95a['id'],_0x46d95a['buffers'],_0x46d95a['types'],_0x46d95a['baseVersion'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x46d95a['types'],_0x46d95a['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x46d95a['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(_0x39c19f,_0x2af22d,_0x56d968){super(),this['id']=_0x39c19f,this['lastKnowVersion']=_0x2af22d,this['bundleVersion']=_0x56d968;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x15a990){return new CollaborativeEditingReconnectMessage(_0x15a990['id'],_0x15a990['lastKnowVersion'],_0x15a990['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(_0x28279a,_0x2d606e=[],_0x250595=[],_0x3e3a62=[],_0x4d2455='',_0x284ff2=null){super(),this['version']=_0x28279a,this['buffers']=_0x2d606e,this['types']=_0x250595,this['metadata']=_0x3e3a62,this['lastOperationId']=_0x4d2455,this['lastOperationAcceptedAt']=_0x284ff2;}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'](_0x25de0a){return new CollaborativeEditingResponse(_0x25de0a['version'],_0x25de0a['buffers'],_0x25de0a['types'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x25de0a['types'],_0x25de0a['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x25de0a['lastOperationId'],_0x25de0a['lastOperationAcceptedAt']?new Date(_0x25de0a['lastOperationAcceptedAt']):null);}static['create'](_0x3d3927){return new CollaborativeEditingResponse(_0x3d3927['version'],_0x3d3927['buffers'],_0x3d3927['types'],_0x3d3927['metadata'],_0x3d3927['lastOperationId'],_0x3d3927['lastOperationAcceptedAt']?new Date(_0x3d3927['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(_0x38e270,_0x4b4c80,_0x448a56=[],_0x3f62c8=[],_0x3d5c58=0x0,_0x51cb65=[],_0x43ebeb=null,_0x3d05a0='',_0x3939a7='',_0x20f131=null){super(),this['channel']=_0x38e270,this['version']=_0x4b4c80,this['buffers']=_0x448a56,this['types']=_0x3f62c8,this['offset']=_0x3d5c58,this['metadata']=_0x51cb65,this['initData']=_0x43ebeb,this['sessionId']=_0x3d05a0,this['lastOperationId']=_0x3939a7,this['sessionCreatedAt']=_0x20f131;}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'](_0x189987){return new CollaborativeEditingConnectResponse(_0x189987['channel'],_0x189987['version'],_0x189987['buffers'],_0x189987['types'],_0x189987['offset'],_0x189987['metadata'],_0x189987['initData'],_0x189987['sessionId'],_0x189987['lastOperationId'],_0x189987['sessionCreatedAt']);}static['fromJSON'](_0x296810){let _0x16708d=null;return!0x0===_0x296810['isInitialized']?_0x16708d=_0x296810['initData']??'':'boolean'!=typeof _0x296810['isInitialized']&&_0x296810['initData']&&(_0x16708d=_0x296810['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x296810['channel'],'version':_0x296810['version'],'buffers':_0x296810['buffers'],'types':_0x296810['types'],'offset':_0x296810['offset'],'metadata':OperationMetadataHelpers['prepareMetadataForOperations'](_0x296810['types'],_0x296810['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),'initData':_0x16708d,'sessionId':_0x296810['sessionId'],'lastOperationId':_0x296810['lastOperationId'],'sessionCreatedAt':_0x296810['sessionCreatedAt']?new Date(_0x296810['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(_0x4b0f6c,_0x4f88e3){super(),this['lastDocumentSession']=_0x4b0f6c,this['currentDocumentSession']=_0x4f88e3;}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'](_0x5e3c9e){const _0x1d7d08=_0x5e3c9e['lastDocumentSessionId']?{'id':_0x5e3c9e['lastDocumentSessionId'],'lastOperationId':_0x5e3c9e['lastDocumentSessionOperationId']}:void 0x0,_0x3f46c8=_0x5e3c9e['currentDocumentSessionId']?{'lastOperationId':_0x5e3c9e['currentDocumentSessionOperationId'],'version':_0x5e3c9e['currentDocumentSessionVersion'],'id':_0x5e3c9e['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x1d7d08,_0x3f46c8);}}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(_0x90baa4){super(),this['documentId']=_0x90baa4;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x30e067){return new GetDocumentDetailsMessage(_0x30e067['documentId']);}}class CollaborativeEditingService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x30fdab,_0x169950){if(super(),!_0x30fdab)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x169950??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x30fdab;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x481eea,_0x11a54={'buffers':[],'types':[]},_0x55f68d){const _0x36da2e=new CollaborativeEditingConnectMessage(this['getId'](),_0x11a54['buffers'],_0x11a54['types'],this['_bundleVersion'],_0x55f68d);return this['_connect'](_0x481eea,_0x36da2e);}['reconnect'](_0x36aa86,_0x92b57b){if(this['isConnected']())throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x36aa86);return this['_connect'](_0x36aa86,new CollaborativeEditingReconnectMessage(this['getId'](),_0x92b57b,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 _0x3666c7=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x2635a0=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x3666c7));return MessagesCompressor['decode'](_0x2635a0,GetDocumentDetailsResponse);}async['sendOperations'](_0x465e98,_0x3bb110,_0x43dbb1){if(!_0x465e98?.['types']?.['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x4eba72='number'==typeof _0x3bb110?_0x3bb110:parseInt(_0x3bb110);if(!Number['isInteger'](_0x4eba72)||_0x4eba72<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x1aa4aa=new CollaborativeEditingUpdateMessage(this['getId'](),_0x465e98['buffers'],_0x465e98['types'],_0x4eba72,[],_0x43dbb1);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x26f8bd=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x1aa4aa));return MessagesCompressor['decode'](_0x26f8bd,CollaborativeEditingResponse);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions$1['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x21b64e,_0x21456f){return Sessions$1['getConnectedSessions'](_0x21b64e,_0x21456f,0x1);}async['_connect'](_0x5cd90f,_0x4f5b22){if(this['isConnected']())return;if(_0x5cd90f['state']!==WebSocketGateway$1['STATE_CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x5cd90f);this['_wsGateway']=_0x5cd90f,this['stopListening'](_0x5cd90f,'change:state');const _0x4a1b71=await _0x5cd90f['_sendRequest'](0x1,_0x4f5b22['constructor']['TYPE'],MessagesCompressor['encode'](_0x4f5b22)),_0x3da566=MessagesCompressor['decode'](_0x4a1b71,CollaborativeEditingConnectResponse);return this['listenTo'](_0x5cd90f,'change:state',(_0x1252a4,_0xb32c86,_0x1cca0a)=>this['_onWsGatewayStateChange'](_0x1cca0a),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x5cd90f,_0x3da566['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x3da566;}['_connectToChannel'](_0x53114a,_0x3ba0f2){this['_channel']=_0x53114a['_getChannel'](0x1,_0x3ba0f2),this['listenTo'](this['_channel'],this['_channel']['getEventName'](CollaborativeEditingUpdateMessage['TYPE']),(_0x9ed189,_0x4b196f)=>{const _0x4325f7=MessagesCompressor['decode'](_0x4b196f,CollaborativeEditingUpdateMessage);this['fire']('operationsReceived',_0x4325f7['baseVersion'],_0x4325f7['data'],_0x4325f7['metadata']);});}['_onWsGatewayStateChange'](_0x27e8c1){_0x27e8c1===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'](_0x59b052){return{..._0x59b052,'createdAt':_0x59b052['createdAt']?.['toISOString'](),'attributes':_0x59b052['attributes']?JSON['stringify'](_0x59b052['attributes']):null};}static['fromJSON'](_0x33fb58){return{..._0x33fb58,'createdAt':new Date(_0x33fb58['createdAt']),'attributes':_0x33fb58['attributes']?JSON['parse'](_0x33fb58['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'](_0x244497){return{..._0x244497,'createdAt':_0x244497['createdAt']?.['toISOString'](),'deletedAt':_0x244497['deletedAt']?.['toISOString'](),'resolvedAt':_0x244497['resolvedAt']?.['toISOString'](),'attributes':_0x244497['attributes']?JSON['stringify'](_0x244497['attributes']):null,'context':_0x244497['context']?JSON['stringify'](_0x244497['context']):_0x244497['context'],'comments':_0x244497['comments']?.['map'](CommentDescriptor['toJSON']),'unlinkedAt':_0x244497['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x43e554){return{..._0x43e554,'createdAt':_0x43e554['createdAt']?new Date(_0x43e554['createdAt']):void 0x0,'deletedAt':_0x43e554['deletedAt']?new Date(_0x43e554['deletedAt']):void 0x0,'resolvedAt':_0x43e554['resolvedAt']?new Date(_0x43e554['resolvedAt']):void 0x0,'attributes':_0x43e554['attributes']?JSON['parse'](_0x43e554['attributes']):null,'context':_0x43e554['context']?JSON['parse'](_0x43e554['context']):void 0x0,'comments':_0x43e554['comments']?.['map'](CommentDescriptor['fromJSON']),'unlinkedAt':_0x43e554['unlinkedAt']?new Date(_0x43e554['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(_0x527860,_0x2ab062,_0x394934,_0x560138='',_0x3b2a91,_0xa54536='',_0x429189=null,_0x39f206){super(),this['documentId']=_0x527860,this['commentThreadId']=_0x2ab062,this['content']=_0x394934,this['commentId']=_0x560138,this['userId']=_0xa54536,this['attributes']=_0x429189,this['commentThread']=_0x39f206,this['createdAt']=_0x3b2a91?new Date(_0x3b2a91):'';}['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'](_0x48a077){return new AddCommentMessage(_0x48a077['documentId'],_0x48a077['commentThreadId'],_0x48a077['content'],_0x48a077['commentId']?_0x48a077['commentId']:void 0x0,_0x48a077['createdAt']?new Date(_0x48a077['createdAt']):void 0x0,_0x48a077['userId']?_0x48a077['userId']:void 0x0,_0x48a077['attributes']?JSON['parse'](_0x48a077['attributes']):{},_0x48a077['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x48a077['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(_0x57cbb6,_0x5bce49,_0x20cb72){super(),this['commentThreadId']=_0x57cbb6,this['commentId']=_0x5bce49,this['createdAt']=new Date(_0x20cb72);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x31343d){return new AddCommentResponse(_0x31343d['commentThreadId'],_0x31343d['commentId'],_0x31343d['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(_0x1ef7a2){super(),this['documentId']=_0x1ef7a2;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x225867){return new ConnectMessage(_0x225867['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(_0x160063,_0x4eac0b,_0x2a793d){super(),this['channel']=_0x160063,this['_threads']=_0x4eac0b,this['_threadsV2']=_0x2a793d,this['threads']=_0x2a793d?.['length']?_0x2a793d:_0x4eac0b;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x27b730=>JSON['stringify'](_0x27b730)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x5e8d61){return new ConnectResponse(_0x5e8d61['channel'],_0x5e8d61['threads']?.['map'](_0x5ce218=>JSON['parse'](_0x5ce218)),_0x5e8d61['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(_0x4b7cfd,_0xaddf71,_0x30c7f6){super(),this['documentId']=_0x4b7cfd,this['commentThreadId']=_0xaddf71,this['commentId']=_0x30c7f6;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x54e161){return new RemoveCommentMessage(_0x54e161['documentId'],_0x54e161['commentThreadId'],_0x54e161['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(_0x300934,_0x1b5a7d){super(),this['documentId']=_0x300934,this['commentThreadId']=_0x1b5a7d;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x3338e9){return new RemoveCommentThreadMessage(_0x3338e9['documentId'],_0x3338e9['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(_0x43dc90,_0x2bc835,_0x207787,_0x25d052,_0x42557c=null,_0x2994d9=!0x1,_0x508878){super(),this['documentId']=_0x43dc90,this['commentThreadId']=_0x2bc835,this['commentId']=_0x207787,this['content']=_0x25d052,this['attributes']=_0x42557c,this['isAttributesUpdated']=_0x2994d9,this['commentThread']=_0x508878;}['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'](_0x22cab4){return new UpdateCommentMessage(_0x22cab4['documentId'],_0x22cab4['commentThreadId'],_0x22cab4['commentId'],_0x22cab4['content'],_0x22cab4['attributes']?JSON['parse'](_0x22cab4['attributes']):null,_0x22cab4['isAttributesUpdated'],_0x22cab4['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x22cab4['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(_0x436fe7,_0x331441){super(),this['commentThreadId']=_0x436fe7,this['documentId']=_0x331441;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x37f092){return new GetCommentThreadMessage(_0x37f092['commentThreadId'],_0x37f092['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(_0x7ef6aa,_0x21fc8e,_0x1547c1,_0x455309,_0x1764ca,_0x359ba9,_0x3a694b,_0x39d9f2,_0x6923c0,_0x101388){super(),this['commentThreadId']=_0x7ef6aa,this['_comments']=_0x21fc8e,this['_commentsV2']=_0x1547c1,this['resolvedBy']=_0x1764ca,this['comments']=_0x1547c1?.['length']?_0x1547c1:_0x21fc8e,this['createdAt']=_0x3a694b?new Date(_0x3a694b):void 0x0,this['deletedAt']='string'==typeof _0x39d9f2?new Date(_0x39d9f2):_0x39d9f2,this['resolvedAt']='string'==typeof _0x6923c0?new Date(_0x6923c0):_0x6923c0,this['unlinkedAt']='string'==typeof _0x101388?new Date(_0x101388):_0x101388,this['attributes']='string'==typeof _0x455309?JSON['parse'](_0x455309):_0x455309,this['context']='string'==typeof _0x359ba9?JSON['parse'](_0x359ba9):_0x359ba9;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'comments':this['_comments']?.['map'](_0x2f35e3=>JSON['stringify'](_0x2f35e3)),'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'](_0x1764cf){return new GetCommentThreadResponse(_0x1764cf['commentThreadId'],_0x1764cf['comments']?.['map'](_0x12584f=>function(_0x55059b){const _0xec5f48=JSON['parse'](_0x55059b);return{..._0xec5f48,'createdAt':new Date(_0xec5f48['createdAt'])};}(_0x12584f)),_0x1764cf['commentsV2']?.['map'](CommentDescriptor['fromJSON']),_0x1764cf['attributes']?JSON['parse'](_0x1764cf['attributes']):_0x1764cf['attributes'],_0x1764cf['resolvedBy'],_0x1764cf['context']?JSON['parse'](_0x1764cf['context']):_0x1764cf['context'],_0x1764cf['createdAt'],_0x1764cf['deletedAt'],_0x1764cf['resolvedAt'],_0x1764cf['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(_0x3f9520){super(),this['documentId']=_0x3f9520;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x127272){return new GetDocumentThreadsMessage(_0x127272['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(_0x5ab66c,_0x1c4bbd){super(),this['_threads']=_0x5ab66c,this['_threadsV2']=_0x1c4bbd,this['threads']=_0x1c4bbd?.['length']?_0x1c4bbd:_0x5ab66c;}['toJSON'](){return{'threads':this['_threads']?.['map'](_0x1b23e0=>JSON['stringify'](_0x1b23e0)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x5ccfa8){return new GetDocumentThreadsResponse(_0x5ccfa8['threads']?.['map'](_0x16236b=>function(_0x1aa2e3){const _0x3eabf2=JSON['parse'](_0x1aa2e3),_0x50ffd0={..._0x3eabf2};return _0x3eabf2['comments']&&(_0x50ffd0['comments']=_0x3eabf2['comments']?.['map'](_0x2092fa=>({..._0x2092fa,'createdAt':new Date(_0x2092fa['createdAt'])}))),_0x50ffd0;}(_0x16236b)),_0x5ccfa8['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'](_0xfdddb4){return{'commentId':_0xfdddb4['commentId'],'createdAt':_0xfdddb4['createdAt']?.['toISOString']()};}static['fromJSON'](_0x368109){return{'commentId':_0x368109['commentId'],'createdAt':new Date(_0x368109['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(_0x52782c,_0x25689f,_0x2df33a=[]){super(),this['commentThreadId']=_0x52782c,this['comments']=_0x2df33a,this['createdAt']=new Date(_0x25689f);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x3d9c2a=>CommentThreadAddedCommentDescriptor['toJSON'](_0x3d9c2a))};}static['fromJSON'](_0x14ad20){return new AddCommentThreadResponse(_0x14ad20['commentThreadId'],_0x14ad20['createdAt'],_0x14ad20['comments']['map'](_0x35890f=>CommentThreadAddedCommentDescriptor['fromJSON'](_0x35890f)));}}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(_0x3cc0b3,_0x47807f,_0x13dd5e=[],_0x2b9829,_0x5b33ee=null,_0x771b86=null,_0x1a4701=null,_0x120d84=null,_0x2f0a1=null){super(),this['documentId']=_0x3cc0b3,this['commentThreadId']=_0x47807f,this['comments']=_0x13dd5e,this['context']=_0x2b9829,this['resolvedBy']=_0x5b33ee,this['attributes']=_0x2f0a1,this['createdAt']=_0x771b86?new Date(_0x771b86):'',this['resolvedAt']=_0x1a4701?new Date(_0x1a4701):'',this['deletedAt']=_0x120d84?new Date(_0x120d84):'';}['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'](_0x142881=>CommentDescriptor['toJSON'](_0x142881))};}static['fromJSON'](_0x3255d2){return new AddCommentThreadMessage(_0x3255d2['documentId'],_0x3255d2['commentThreadId'],_0x3255d2['comments']?.['map'](_0x1bc224=>CommentDescriptor['fromJSON']({..._0x1bc224,'documentId':_0x3255d2['documentId'],'commentThreadId':_0x3255d2['commentThreadId']})),_0x3255d2['context']?JSON['parse'](_0x3255d2['context']):_0x3255d2['context'],_0x3255d2['resolvedBy'],_0x3255d2['createdAt']?new Date(_0x3255d2['createdAt']):void 0x0,_0x3255d2['resolvedAt']?new Date(_0x3255d2['resolvedAt']):void 0x0,_0x3255d2['deletedAt']?new Date(_0x3255d2['deletedAt']):void 0x0,_0x3255d2['attributes']?JSON['parse'](_0x3255d2['attributes']):_0x3255d2['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(_0x703780,_0x4c6490,_0x2887c0,_0x35ce9d){super(),this['commentThreadId']=_0x703780,this['documentId']=_0x4c6490,this['resolvedBy']=_0x2887c0,this['resolvedAt']=_0x35ce9d?new Date(_0x35ce9d):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x29f2d5){return new ResolveCommentThreadMessage(_0x29f2d5['commentThreadId'],_0x29f2d5['documentId'],_0x29f2d5['resolvedBy'],_0x29f2d5['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(_0x3fc25f,_0x48d1fe){super(),this['commentThreadId']=_0x3fc25f,this['documentId']=_0x48d1fe;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x324b81){return new ReopenCommentThreadMessage(_0x324b81['commentThreadId'],_0x324b81['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(_0x48acd7,_0x30d4c8,_0x35e124,_0x1078a9=null,_0x4ae1a1=null){super(),this['commentThreadId']=_0x48acd7,this['documentId']=_0x30d4c8,this['context']=_0x35e124,this['attributes']=_0x1078a9,this['unlinkedAt']=_0x4ae1a1?new Date(_0x4ae1a1):'';}['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'](_0x274aa1){return new UpdateCommentThreadMessage(_0x274aa1['commentThreadId'],_0x274aa1['documentId'],_0x274aa1['context']?JSON['parse'](_0x274aa1['context']):_0x274aa1['context'],_0x274aa1['attributes']?JSON['parse'](_0x274aa1['attributes']):null,_0x274aa1['unlinkedAt']?new Date(_0x274aa1['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(_0x222fe3,_0x11a153,_0x5dccb9,_0x584476){super(),this['commentThreadId']=_0x222fe3,this['documentId']=_0x11a153,this['resolvedBy']=_0x5dccb9,this['resolvedAt']=new Date(_0x584476);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x12beda){return new ResolveCommentThreadResponse(_0x12beda['commentThreadId'],_0x12beda['documentId'],_0x12beda['resolvedBy'],_0x12beda['resolvedAt']);}}class CommentsService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_0x19e115){super(),this['_documentId']=_0x19e115;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x40edaa){if(this['_isConnected'])return;if(_0x40edaa['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x40edaa);const _0x398bb7=new ConnectMessage(this['_documentId']);this['_wsGateway']=_0x40edaa,this['stopListening'](_0x40edaa,'change:state');const _0x2897e9=await _0x40edaa['_sendRequest'](0x9,ConnectMessage['TYPE'],MessagesCompressor['encode'](_0x398bb7)),{channel:_0x4a4650,threads:_0x30c359}=MessagesCompressor['decode'](_0x2897e9,ConnectResponse);return this['listenTo'](_0x40edaa,'change:state',(_0x5b2c0b,_0x34c717,_0x580d27)=>this['_onWsGatewayStateChange'](_0x580d27),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x40edaa,_0x4a4650),this['_isConnected']=!0x0,this['fire']('connected'),_0x30c359;}['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'](_0x3774da,_0x4e13bf,_0x145104,_0xd764d8){const _0x59aed5=new AddCommentMessage(this['_documentId'],_0x3774da,_0x145104,_0x4e13bf,void 0x0,void 0x0,_0xd764d8),_0x592b62=await this['_sendRequest'](AddCommentMessage['TYPE'],_0x59aed5);return MessagesCompressor['decode'](_0x592b62,AddCommentResponse);}async['updateComment'](_0x380d13,_0x4f33f7,_0x1a0683,_0x48ffcc){const _0x3137c6=void 0x0!==_0x48ffcc,_0x353855=new UpdateCommentMessage(this['_documentId'],_0x380d13,_0x4f33f7,_0x1a0683,_0x48ffcc,_0x3137c6);await this['_sendRequest'](UpdateCommentMessage['TYPE'],_0x353855);}async['removeComment'](_0x841e6f,_0x50b569){const _0x39c32a=new RemoveCommentMessage(this['_documentId'],_0x841e6f,_0x50b569);await this['_sendRequest'](RemoveCommentMessage['TYPE'],_0x39c32a);}async['removeCommentThread'](_0x105aa8){const _0x282797=new RemoveCommentThreadMessage(this['_documentId'],_0x105aa8);await this['_sendRequest'](RemoveCommentThreadMessage['TYPE'],_0x282797);}async['addCommentThread'](_0x2b38b3){const _0x3449c8=new AddCommentThreadMessage(this['_documentId'],_0x2b38b3['commentThreadId'],_0x2b38b3['comments']?.['map'](_0x24fa4f=>({..._0x24fa4f,'documentId':this['_documentId'],'commentThreadId':_0x2b38b3['commentThreadId']})),_0x2b38b3['context'],_0x2b38b3['resolvedBy'],_0x2b38b3['createdAt'],_0x2b38b3['resolvedAt'],_0x2b38b3['deletedAt'],_0x2b38b3['attributes']),_0x2f9eb6=await this['_sendRequest'](AddCommentThreadMessage['TYPE'],_0x3449c8);return MessagesCompressor['decode'](_0x2f9eb6,AddCommentThreadResponse);}async['resolveCommentThread'](_0xf0d5fe){const _0x3edf6e=new ResolveCommentThreadMessage(_0xf0d5fe,this['_documentId']),_0x5b822c=await this['_sendRequest'](ResolveCommentThreadMessage['TYPE'],_0x3edf6e);return MessagesCompressor['decode'](_0x5b822c,ResolveCommentThreadResponse);}async['reopenCommentThread'](_0x32f4e9){const _0x1906ea=new ReopenCommentThreadMessage(_0x32f4e9,this['_documentId']);await this['_sendRequest'](ReopenCommentThreadMessage['TYPE'],_0x1906ea);}async['updateCommentThread'](_0x38a98b){const _0x4a93c7=new UpdateCommentThreadMessage(_0x38a98b['commentThreadId'],this['_documentId'],_0x38a98b['context'],_0x38a98b['attributes'],_0x38a98b['unlinkedAt']);await this['_sendRequest'](UpdateCommentThreadMessage['TYPE'],_0x4a93c7);}async['getCommentThread'](_0x76735f,_0x540db2=0x1){const _0x1119b4=new GetCommentThreadMessage(_0x76735f,this['_documentId']);try{const _0x20f6c8=await this['_sendRequest'](GetCommentThreadMessage['TYPE'],_0x1119b4),_0x18beff=MessagesCompressor['decode'](_0x20f6c8,GetCommentThreadResponse);return{'commentThreadId':_0x18beff['commentThreadId'],'comments':_0x18beff['comments'],'attributes':_0x18beff['attributes'],'context':_0x18beff['context'],'resolvedAt':_0x18beff['resolvedAt'],'resolvedBy':_0x18beff['resolvedBy'],'deletedAt':_0x18beff['deletedAt'],'unlinkedAt':_0x18beff['unlinkedAt']};}catch(_0x5abd6f){if('CKEditorCloudServicesServerError'===_0x5abd6f['name']&&'404'===_0x5abd6f['code']&&_0x540db2<0x5)return await(_0x5b37aa=0x64*_0x540db2,new Promise(_0x3b4547=>{setTimeout(_0x3b4547,_0x5b37aa);})),this['getCommentThread'](_0x76735f,_0x540db2+0x1);if('CKEditorCloudServicesServerError'===_0x5abd6f['name'])throw _0x5abd6f;throw CKEditorCloudServicesServerError['fromPublicError'](_0x5abd6f);}var _0x5b37aa;}async['getDocumentThreads'](){const _0x307e57=new GetDocumentThreadsMessage(this['_documentId']),_0x23a4cc=await this['_sendRequest'](GetDocumentThreadsMessage['TYPE'],_0x307e57),{threads:_0x3f400a}=MessagesCompressor['decode'](_0x23a4cc,GetDocumentThreadsResponse);return{'threads':_0x3f400a};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions$1['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x2d6505,_0x3475e6){this['_channel']=_0x2d6505['_getChannel'](CommentsService['_SERVICE'],_0x3475e6),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentMessage['TYPE']),(_0x38ab46,_0x3bce9b)=>{const _0x37c2c0=MessagesCompressor['decode'](_0x3bce9b,AddCommentMessage);this['fire']('commentAdded',_0x37c2c0);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentMessage['TYPE']),(_0x40b714,_0x38db35)=>{const _0x31114a=MessagesCompressor['decode'](_0x38db35,RemoveCommentMessage);this['fire']('commentRemoved',_0x31114a);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentMessage['TYPE']),(_0x1ceb30,_0x3e7cf0)=>{const _0x4fcce2=MessagesCompressor['decode'](_0x3e7cf0,UpdateCommentMessage);this['fire']('commentUpdated',_0x4fcce2);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentThreadMessage['TYPE']),(_0x3f0c78,_0x2c8c36)=>{const _0x2c70a4=MessagesCompressor['decode'](_0x2c8c36,RemoveCommentThreadMessage);this['fire']('commentThreadRemoved',_0x2c70a4);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentThreadMessage['TYPE']),(_0x33cddb,_0x3253f6)=>{const _0x429894=MessagesCompressor['decode'](_0x3253f6,AddCommentThreadMessage);this['fire']('commentThreadAdded',_0x429894);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentThreadMessage['TYPE']),(_0x5d68b7,_0x2020a7)=>{const _0x1fb047=MessagesCompressor['decode'](_0x2020a7,UpdateCommentThreadMessage);this['fire']('commentThreadUpdated',_0x1fb047);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ResolveCommentThreadMessage['TYPE']),(_0x5a95ca,_0x1e3bb6)=>{const _0x2dad07=MessagesCompressor['decode'](_0x1e3bb6,ResolveCommentThreadMessage);this['fire']('commentThreadResolved',_0x2dad07);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ReopenCommentThreadMessage['TYPE']),(_0x11fe72,_0x503ae6)=>{const _0x4aa78c=MessagesCompressor['decode'](_0x503ae6,ReopenCommentThreadMessage);this['fire']('commentThreadReopened',_0x4aa78c);}));}['_onWsGatewayStateChange'](_0x45e77c){_0x45e77c===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x1b2741,_0x103f0a){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x1b2741,MessagesCompressor['encode'](_0x103f0a));}}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(_0x8c15a2){super(_0x8c15a2),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 _0x382abc=this['context'],_0x127400=_0x382abc['plugins']['get']('CloudServices'),_0x1d757c=_0x382abc['plugins']['get'](Notification);if(!_0x127400['token'])throw new CKEditorError('websocketgateway-missing-token',this);if(!_0x127400['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'](_0x127400['token'],_0x127400['webSocketUrl'],{'timeout':0x3e8*this['context']['config']['get']('cloudServices.connectionTimeout'),'requestTimeout':0x3e8*this['context']['config']['get']('cloudServices.requestTimeout')})['then'](_0x1a24ed=>{if(this['connection']=_0x1a24ed,this['bind']('state')['to'](_0x1a24ed,'state',this,'_isBrowserOffline',(_0x295ecd,_0x4339d3)=>('connected'!==_0x295ecd&&(this['_shouldPluginsReconnect']=!0x0),_0x4339d3||_0x295ecd!==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',(_0x581dde,_0x2cc31c)=>{if('limitExceeded'!==_0x2cc31c['code'])throw console['error'](_0x2cc31c),new CKEditorError('cloudservices-init',null,{'originalError':_0x2cc31c});_0x1d757c['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'});}),!_0x1a24ed['me'])return new Promise(_0xa73952=>_0x1a24ed['on']('change:me',_0xa73952));})['catch'](_0x65fda1=>{throw console['error'](_0x65fda1),new CKEditorError('cloudservices-init',null,{'originalError':_0x65fda1});});}['addToReconnectionStack'](_0x122997){if('function'!=typeof _0x122997['reconnect'])throw new CKEditorError('websocketgateway-invalid-plugin-interface',this);if(this['isInReconnectionStack'](_0x122997))throw new CKEditorError('websocketgateway-plugin-already-registered',this,{'name':_0x122997['constructor']['pluginName']});this['_reconnectionStack']['add'](_0x122997);}['removeFromReconnectionStack'](_0x2e6dc0){this['_reconnectionStack']['delete'](_0x2e6dc0);}['isInReconnectionStack'](_0x618829){return this['_reconnectionStack']['has'](_0x618829);}['_reconnect'](){return this['connection']['reconnect']()['then'](()=>Promise['all'](Array['from'](this['_reconnectionStack'],_0x4c3457=>_0x4c3457['reconnect']())))['then'](()=>this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'])['catch'](_0xfb3c56=>{throw console['error'](_0xfb3c56),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(_0x121200){super(_0x121200),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 _0x250ca2=this['context']['plugins']['get'](WebSocketGateway);this['listenTo'](_0x250ca2,'change:state',(_0x158416,_0xa29ffb,_0x432b49)=>{if('connected'!==_0x432b49)this['channelSessions']['forEach'](_0x4e6018=>_0x4e6018['clear']()),this['channelConnectedUsers']['forEach'](_0x5a1f2d=>_0x5a1f2d['clear']()),this['allConnectedUsers']['clear']();else{for(const [_0x1d4678,_0x4ee224]of this['_registeredSessions'])for(const _0x47ca75 of _0x4ee224)this['_handleSessionAdd'](_0x1d4678,_0x47ca75);}}),this['_createUser'](_0x250ca2['connection']['me'],!0x0);}['register'](_0x1d6640,_0x5b3eab){if(this['_registeredSessions']['has'](_0x1d6640))throw new CKEditorError('sessions-register-already-registered',null,{'channelId':_0x1d6640});this['_registeredSessions']['set'](_0x1d6640,_0x5b3eab),this['channelSessions']['set'](_0x1d6640,new Collection()),this['channelConnectedUsers']['set'](_0x1d6640,new Collection()),this['listenTo'](_0x5b3eab,'add',(_0x29861b,_0x559552)=>this['_handleSessionAdd'](_0x1d6640,_0x559552)),this['listenTo'](_0x5b3eab,'remove',(_0x43c807,_0x4f185f)=>this['_handleSessionRemove'](_0x1d6640,_0x4f185f));for(const _0x4324a1 of _0x5b3eab)this['_handleSessionAdd'](_0x1d6640,_0x4324a1);}['unregister'](_0x216a55){if(!this['_registeredSessions']['has'](_0x216a55))throw new CKEditorError('sessions-unregister-not-exist',null,{'channelId':_0x216a55});const _0x1e221d=this['_registeredSessions']['get'](_0x216a55);this['stopListening'](_0x1e221d);for(const _0xce241f of _0x1e221d)'connected'===this['context']['plugins']['get'](WebSocketGateway)['state']&&this['_handleSessionRemove'](_0x216a55,_0xce241f);this['_registeredSessions']['delete'](_0x216a55),this['channelSessions']['delete'](_0x216a55),this['channelConnectedUsers']['delete'](_0x216a55);}get['mySessionId'](){return this['context']['plugins']['get'](WebSocketGateway)['connection']['sessionId'];}['getUserBySessionId'](_0x393791){for(const _0x491caa of this['channelSessions']['values']())for(const _0x493a6c of _0x491caa)if(_0x493a6c['id']===_0x393791)return _0x493a6c['user'];}['getUserSessions'](_0x59c9b0,_0x4a0358){const _0x124163=_0x4a0358?[this['channelSessions']['get'](_0x4a0358)]:this['channelSessions']['values'](),_0x349259=new Set();for(const _0x4122da of _0x124163)for(const _0x11ef60 of _0x4122da)_0x11ef60['user']['id']===_0x59c9b0['id']&&_0x349259['add'](_0x11ef60['id']);return _0x349259;}['getUserRole'](_0x450b69){for(const _0x444b92 of this['channelSessions']['values']())for(const _0x59a0c8 of _0x444b92)if(_0x59a0c8['user']===_0x450b69)return _0x59a0c8['role'];}['_handleSessionAdd'](_0x1fb3bf,_0x13109){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0x30c3e1=_0x13109['user'],_0x3214c0=this['_users']['getUser'](_0x30c3e1['id'])||this['_createUser'](_0x30c3e1),_0x2705fd=Object['assign']({},_0x13109,{'user':_0x3214c0});if(this['channelSessions']['get'](_0x1fb3bf)['add'](_0x2705fd),!_0x30c3e1['hiddenInPresenceList']){const _0x562ce3=this['channelConnectedUsers']['get'](_0x1fb3bf);_0x562ce3['has'](_0x3214c0['id'])||_0x562ce3['add'](_0x3214c0),this['allConnectedUsers']['has'](_0x3214c0['id'])||_0x30c3e1['hiddenInPresenceList']||this['allConnectedUsers']['add'](_0x3214c0,_0x3214c0['isMe']?0x0:void 0x0);}this['fire']('sessionAdd:'+_0x1fb3bf,{'channelId':_0x1fb3bf,'session':_0x2705fd});}['_handleSessionRemove'](_0xe14b74,_0xbb710b){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0xa4dfcd=this['channelConnectedUsers']['get'](_0xe14b74),_0xda12ab=_0xbb710b['user'];_0xda12ab['id']&&(this['channelSessions']['get'](_0xe14b74)['remove'](_0xbb710b['id']),_0xa4dfcd['has'](_0xda12ab['id'])&&!this['getUserSessions'](_0xda12ab,_0xe14b74)['size']&&_0xa4dfcd['remove'](_0xda12ab['id']),this['allConnectedUsers']['get'](_0xda12ab['id'])&&!this['getUserSessions'](_0xda12ab)['size']&&this['allConnectedUsers']['remove'](_0xda12ab['id']));}['_createUser'](_0x59d1f8,_0x3647e7){const _0x245a11=this['_users']['addUser'](_0x59d1f8);return _0x3647e7&&this['_users']['defineMe'](_0x59d1f8['id']),_0x245a11['orderNumber']=this['_uniqueUsersCount']++,_0x245a11;}}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 _0x5f4152=this['editor'],_0x3f43ae=_0x5f4152['plugins']['get'](Sessions);_0x5f4152['conversion']['for']('editingDowncast')['markerToElement']({'model':'user:position','view':(_0x151ed0,{writer:_0x40678e})=>createUserPositionViewElement(_0x151ed0,_0x40678e,_0x3f43ae,_0x5f4152)}),_0x5f4152['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'user:range','view':_0x154b44=>createUserRangeViewElement(_0x154b44,_0x3f43ae)}),createUserMarkerPostFixer(_0x5f4152),this['_domEmitter']['listenTo'](_0x19b45e['document'],'keydown',(_0x1fd3c6,{key:_0x2d2bf0})=>{'Escape'===_0x2d2bf0&&hideHoveredUserPositionMarkersTooltips(_0x5f4152);},{'useCapture':!0x0});}['afterInit'](){const _0x29e17d=this['editor'],_0x15fe43=_0x29e17d['commands']['get']('undo');_0x15fe43&&_0x29e17d['model']['on']('applyOperation',(_0x1c92fd,_0x596f86)=>{const _0x2a9a90=_0x596f86[0x0];if(!_0x2a9a90['isDocumentOperation'])return;if('marker'!=_0x2a9a90['type']||!_0x2a9a90['name']['startsWith']('user:'))return;const _0xabda78=_0x2a9a90['batch'];_0x15fe43['_createdBatches']['has'](_0xabda78)&&(_0x2a9a90['newRange']=_0x2a9a90['oldRange']?_0x29e17d['model']['createRange'](_0x2a9a90['oldRange']['start'],_0x2a9a90['oldRange']['end']):null);},{'priority':'highest'});}['destroy'](){return this['_domEmitter']['stopListening'](),super['destroy']();}['createUserMarkerOperations'](){const _0xb5e5ce=this['editor'],_0x26afd6=_0xb5e5ce['model']['document'],_0x5a3de6=_0xb5e5ce['plugins']['get'](Sessions);_0xb5e5ce['model']['enqueueChange']({'isUndoable':!0x1},_0x26fe8f=>{const _0x2f8ad8='user:range:'+_0x5a3de6['mySessionId'],_0x178975='user:position:'+_0x5a3de6['mySessionId'],_0x3dd4e7=_0xb5e5ce['model']['markers']['has'](_0x2f8ad8);_0xb5e5ce['editing']['view']['hasDomSelection']?updateUserMarkers(_0x5a3de6['mySessionId'],_0x26afd6['selection']['getFirstRange'](),_0xb5e5ce['model'],_0x26fe8f):_0x3dd4e7&&(_0x26fe8f['removeMarker'](_0x2f8ad8),_0x26fe8f['removeMarker'](_0x178975));});}}function updateUserMarkers(_0x287b27,_0x5d1624,_0x5c4caa,_0x7bdb39){const _0x30df5d='user:range:'+_0x287b27,_0x544646='user:position:'+_0x287b27,_0x15fb11=_0x5d1624['getContainedElement']();let _0x33b2fa=_0x5d1624['start'];if(_0x15fb11&&_0x15fb11['is']('element','tableCell')){const _0x38d047=getPositionForText(_0x5d1624,_0x5c4caa);_0x38d047&&(_0x33b2fa=_0x38d047,_0x5d1624=_0x7bdb39['createRange'](_0x33b2fa));}const _0x5c6eda=_0x7bdb39['createRange'](_0x33b2fa);_0x5c4caa['markers']['has'](_0x30df5d)?(_0x7bdb39['updateMarker'](_0x30df5d,{'range':_0x5d1624}),_0x7bdb39['updateMarker'](_0x544646,{'range':_0x5c6eda})):(_0x7bdb39['addMarker'](_0x30df5d,{'range':_0x5d1624,'usingOperation':!0x0}),_0x7bdb39['addMarker'](_0x544646,{'range':_0x5c6eda,'usingOperation':!0x0}));}function getPositionForText(_0x56b47c,_0x6b55cb){for(const _0x16b4b8 of _0x56b47c['getPositions']())if(_0x6b55cb['schema']['checkChild'](_0x16b4b8,'$text'))return _0x16b4b8;}function createUserPositionViewElement(_0x3e2036,_0x3557d9,_0x36292d,_0x1ea4df){const _0x539f7c=_0x3e2036['markerName']['split'](':')[0x2],_0x5613d3=_0x36292d['getUserBySessionId'](_0x539f7c);if(!_0x5613d3||_0x539f7c===_0x36292d['mySessionId'])return;if(!_0x1ea4df['model']['schema']['checkChild'](_0x3e2036['markerRange']['start'],'$text'))return;const _0x54d190={'class':'ck-user__marker\x20'+_0x5613d3['color']['getMarkerClass'](),'data-name':_0x5613d3['name'],'data-session-id':_0x539f7c},_0xddef82=_0x1ea4df['model']['markers']['get'](_0x3e2036['markerName'])['getStart'](),_0x3f5815=_0xddef82['nodeAfter'],_0x3f2f8c=_0x1ea4df['model']['schema'];if(_0x3f5815&&_0x3f2f8c['isObject'](_0x3f5815)&&_0x3f2f8c['isInline'](_0x3f5815)&&!_0x1ea4df['model']['markers']['get']('user:range:'+_0x539f7c)['getRange']()['isCollapsed'])return;const _0x482dea=_0xddef82['parent'];return _0x1ea4df['model']['schema']['isLimit'](_0x482dea)&&!_0x1ea4df['model']['hasContent'](_0x482dea)&&(_0x54d190['contenteditable']=!0x1),createUserPositionMarkerElement(_0x3557d9,_0x54d190,_0x5613d3);}function createUserRangeViewElement(_0x583ff9,_0x3c5142){const _0x1e4f06=_0x583ff9['markerName']['split'](':')[0x2];if(_0x1e4f06===_0x3c5142['mySessionId'])return null;const _0x2e8b0f=_0x3c5142['getUserBySessionId'](_0x1e4f06);return _0x2e8b0f?{'id':_0x1e4f06,'classes':['ck-user__selection',_0x2e8b0f['color']['getSelectionClass']()],'attributes':{'data-session-id':_0x1e4f06},'priority':0x7d0+_0x2e8b0f['orderNumber']}:{'id':_0x1e4f06,'classes':[]};}function createUserPositionMarkerElement(_0x235306,_0x2abd37,_0x59aa71){const _0x239396=_0x235306['createUIElement']('span',_0x2abd37);return _0x235306['setCustomProperty']('userPositionMarker',!0x0,_0x239396),_0x239396['render']=function(_0x298b8b){const _0x2dc854=this['toDomElement'](_0x298b8b),_0x1d342f=document['createElement']('span');return _0x1d342f['classList']['add']('ck-user__marker-tooltip'),_0x1d342f['setAttribute']('contenteditable','false'),_0x1d342f['setAttribute']('spellcheck','false'),_0x1d342f['textContent']=_0x59aa71['name'],_0x2dc854['innerHTML']='⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>'+_0x1d342f['outerHTML']+'⁠',_0x2dc854['addEventListener']('mouseenter',()=>{_0x2dc854['classList']['add']('ck-user__marker_hovered');}),_0x2dc854['addEventListener']('mouseleave',()=>{_0x2dc854['classList']['remove']('ck-user__marker_hovered');}),_0x2dc854;},_0x239396['isSimilar']=function(_0x3c3dc8){return!(!this['getCustomProperty']('userPositionMarker')||!_0x3c3dc8['getCustomProperty']('userPositionMarker')||this['getAttribute']('data-session-id')!=_0x3c3dc8['getAttribute']('data-session-id'));},_0x239396;}function hideHoveredUserPositionMarkersTooltips(_0xf3af50){_0xf3af50['editing']['view']['change'](_0xb7a546=>{for(const _0xd71184 of _0xf3af50['model']['markers']){if(!_0xd71184['name']['startsWith']('user:position'))continue;const _0xc89fe5=_0xf3af50['editing']['mapper']['markerNameToElements'](_0xd71184['name']);if(_0xc89fe5){for(const _0x1e71f1 of _0xc89fe5)_0xb7a546['removeClass']('ck-user__marker_hovered',_0x1e71f1);}}});}function createUserMarkerPostFixer(_0x33bd62){const _0x16961c=_0x33bd62['model'],_0x1c877a=new Map(),_0x5ad87f=_0x33bd62['plugins']['get'](Sessions);_0x16961c['markers']['on']('update:user:range',(_0x24fc69,_0x1d8c5d,_0x5bf422,_0x4bb47e)=>{if(!_0x4bb47e&&_0x1c877a['get'](_0x1d8c5d['name']))return _0x1c877a['get'](_0x1d8c5d['name'])['detach'](),void _0x1c877a['delete'](_0x1d8c5d['name']);const _0x2dfe23=_0x1d8c5d['name']['split'](':')[0x2];if(_0x2dfe23===_0x5ad87f['mySessionId'])return;const _0x577c94='user:position:'+_0x2dfe23;_0x16961c['markers']['has'](_0x577c94)&&_0x33bd62['editing']['reconvertMarker'](_0x577c94),_0x1d8c5d['on']('change:range',(_0x2d2ef3,_0x55f2a0,_0x40ee7c)=>{if('$graveyard'!=_0x55f2a0['root']['rootName']&&'$graveyard'==_0x1d8c5d['getRange']()['root']['rootName']&&!_0x1c877a['has'](_0x1d8c5d['name'])){const _0x3c3e4a=_0x16961c['schema']['getNearestSelectionRange'](_0x40ee7c['deletionPosition']);if(_0x3c3e4a){const _0x3ff28a=ModelLiveRange['fromRange'](_0x3c3e4a);_0x1c877a['set'](_0x1d8c5d['name'],_0x3ff28a),_0x3ff28a['on']('change:range',(_0x53f2e1,_0x49023c,_0x4f0689)=>{if('$graveyard'==_0x3ff28a['root']['rootName']){const _0x1d29ff=_0x16961c['schema']['getNearestSelectionRange'](_0x4f0689['deletionPosition']);_0x1d29ff?(_0x3ff28a['start']=_0x1d29ff['start'],_0x3ff28a['end']=_0x1d29ff['end']):(_0x1c877a['delete'](_0x1d8c5d['name']),_0x3ff28a['detach']());}});}}});}),_0x16961c['document']['on']('change',()=>{_0x1c877a['size']>0x0&&_0x16961c['enqueueChange']({'isUndoable':!0x1},_0x57332c=>{for(const [_0x4fdadb,_0x24eb65]of _0x1c877a)'$graveyard'==_0x16961c['markers']['get'](_0x4fdadb)['getRange']()['root']['rootName']&&(updateUserMarkers(_0x4fdadb['split'](':')[0x2],_0x24eb65['toRange'](),_0x16961c,_0x57332c),_0x24eb65['detach']());_0x1c877a['clear']();});});}function getTranslation$6(_0x8b3ea2,_0x53733f,_0x296c1f){const _0x3c2077=_0x8b3ea2['t'],t=_0x8b3ea2['t'];switch(_0x53733f){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 _0x3c2077({'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'},_0x296c1f);default:return'';}}const messages=/* #__PURE__ -- @preserve */
((()=>{var _0x32d958=minimalExports['Reader'],_0x125534=minimalExports['Writer'],_0x49b5b4=minimalExports['util'],_0x25f4e9=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0x25f4e9['AttributeOperation']=(function(){function _0x4a5213(_0x397587){if(_0x397587){for(var _0x4cb5a6=Object['keys'](_0x397587),_0x942842=0x0;_0x942842<_0x4cb5a6['length'];++_0x942842)null!=_0x397587[_0x4cb5a6[_0x942842]]&&(this[_0x4cb5a6[_0x942842]]=_0x397587[_0x4cb5a6[_0x942842]]);}}return _0x4a5213['prototype']['range']=null,_0x4a5213['prototype']['key']='',_0x4a5213['prototype']['oldValueBoolean']=!0x1,_0x4a5213['prototype']['oldValueJson']='',_0x4a5213['prototype']['newValueBoolean']=!0x1,_0x4a5213['prototype']['newValueJson']='',_0x4a5213['prototype']['wasUndone']=!0x1,_0x4a5213['create']=function(_0x77933c){return new _0x4a5213(_0x77933c);},_0x4a5213['encode']=function(_0x49b3a0,_0x8b184f){return _0x8b184f||(_0x8b184f=_0x125534['create']()),null!=_0x49b3a0['range']&&Object['hasOwnProperty']['call'](_0x49b3a0,'range')&&_0x25f4e9['Range']['encode'](_0x49b3a0['range'],_0x8b184f['uint32'](0xa)['fork']())['ldelim'](),null!=_0x49b3a0['key']&&Object['hasOwnProperty']['call'](_0x49b3a0,'key')&&_0x8b184f['uint32'](0x12)['string'](_0x49b3a0['key']),null!=_0x49b3a0['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x49b3a0,'oldValueBoolean')&&_0x8b184f['uint32'](0x18)['bool'](_0x49b3a0['oldValueBoolean']),null!=_0x49b3a0['oldValueJson']&&Object['hasOwnProperty']['call'](_0x49b3a0,'oldValueJson')&&_0x8b184f['uint32'](0x22)['string'](_0x49b3a0['oldValueJson']),null!=_0x49b3a0['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x49b3a0,'newValueBoolean')&&_0x8b184f['uint32'](0x28)['bool'](_0x49b3a0['newValueBoolean']),null!=_0x49b3a0['newValueJson']&&Object['hasOwnProperty']['call'](_0x49b3a0,'newValueJson')&&_0x8b184f['uint32'](0x32)['string'](_0x49b3a0['newValueJson']),null!=_0x49b3a0['wasUndone']&&Object['hasOwnProperty']['call'](_0x49b3a0,'wasUndone')&&_0x8b184f['uint32'](0x38)['bool'](_0x49b3a0['wasUndone']),_0x8b184f;},_0x4a5213['encodeDelimited']=function(_0x154dc0,_0x50af2d){return this['encode'](_0x154dc0,_0x50af2d)['ldelim']();},_0x4a5213['decode']=function(_0x56d92f,_0x4be6d2){_0x56d92f instanceof _0x32d958||(_0x56d92f=_0x32d958['create'](_0x56d92f));for(var _0x33de18=void 0x0===_0x4be6d2?_0x56d92f['len']:_0x56d92f['pos']+_0x4be6d2,_0x44cc3e=new _0x25f4e9['AttributeOperation']();_0x56d92f['pos']<_0x33de18;){var _0x5e0599=_0x56d92f['uint32']();switch(_0x5e0599>>>0x3){case 0x1:_0x44cc3e['range']=_0x25f4e9['Range']['decode'](_0x56d92f,_0x56d92f['uint32']());break;case 0x2:_0x44cc3e['key']=_0x56d92f['string']();break;case 0x3:_0x44cc3e['oldValueBoolean']=_0x56d92f['bool']();break;case 0x4:_0x44cc3e['oldValueJson']=_0x56d92f['string']();break;case 0x5:_0x44cc3e['newValueBoolean']=_0x56d92f['bool']();break;case 0x6:_0x44cc3e['newValueJson']=_0x56d92f['string']();break;case 0x7:_0x44cc3e['wasUndone']=_0x56d92f['bool']();break;default:_0x56d92f['skipType'](0x7&_0x5e0599);}}return _0x44cc3e;},_0x4a5213['decodeDelimited']=function(_0x1204e8){return _0x1204e8 instanceof _0x32d958||(_0x1204e8=new _0x32d958(_0x1204e8)),this['decode'](_0x1204e8,_0x1204e8['uint32']());},_0x4a5213['verify']=function(_0x278fd7){if('object'!=typeof _0x278fd7||null===_0x278fd7)return'object\x20expected';if(null!=_0x278fd7['range']&&_0x278fd7['hasOwnProperty']('range')){var _0x561260=_0x25f4e9['Range']['verify'](_0x278fd7['range']);if(_0x561260)return'range.'+_0x561260;}return null!=_0x278fd7['key']&&_0x278fd7['hasOwnProperty']('key')&&!_0x49b5b4['isString'](_0x278fd7['key'])?'key:\x20string\x20expected':null!=_0x278fd7['oldValueBoolean']&&_0x278fd7['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x278fd7['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x278fd7['oldValueJson']&&_0x278fd7['hasOwnProperty']('oldValueJson')&&!_0x49b5b4['isString'](_0x278fd7['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x278fd7['newValueBoolean']&&_0x278fd7['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x278fd7['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x278fd7['newValueJson']&&_0x278fd7['hasOwnProperty']('newValueJson')&&!_0x49b5b4['isString'](_0x278fd7['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x278fd7['wasUndone']&&_0x278fd7['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x278fd7['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x4a5213['fromObject']=function(_0x4fc652){if(_0x4fc652 instanceof _0x25f4e9['AttributeOperation'])return _0x4fc652;var _0x39d2f4=new _0x25f4e9['AttributeOperation']();if(null!=_0x4fc652['range']){if('object'!=typeof _0x4fc652['range'])throw TypeError('.AttributeOperation.range:\x20object\x20expected');_0x39d2f4['range']=_0x25f4e9['Range']['fromObject'](_0x4fc652['range']);}return null!=_0x4fc652['key']&&(_0x39d2f4['key']=String(_0x4fc652['key'])),null!=_0x4fc652['oldValueBoolean']&&(_0x39d2f4['oldValueBoolean']=Boolean(_0x4fc652['oldValueBoolean'])),null!=_0x4fc652['oldValueJson']&&(_0x39d2f4['oldValueJson']=String(_0x4fc652['oldValueJson'])),null!=_0x4fc652['newValueBoolean']&&(_0x39d2f4['newValueBoolean']=Boolean(_0x4fc652['newValueBoolean'])),null!=_0x4fc652['newValueJson']&&(_0x39d2f4['newValueJson']=String(_0x4fc652['newValueJson'])),null!=_0x4fc652['wasUndone']&&(_0x39d2f4['wasUndone']=Boolean(_0x4fc652['wasUndone'])),_0x39d2f4;},_0x4a5213['toObject']=function(_0x374c63,_0x453275){_0x453275||(_0x453275={});var _0x1515a1={};return _0x453275['defaults']&&(_0x1515a1['range']=null,_0x1515a1['key']='',_0x1515a1['oldValueBoolean']=!0x1,_0x1515a1['oldValueJson']='',_0x1515a1['newValueBoolean']=!0x1,_0x1515a1['newValueJson']='',_0x1515a1['wasUndone']=!0x1),null!=_0x374c63['range']&&_0x374c63['hasOwnProperty']('range')&&(_0x1515a1['range']=_0x25f4e9['Range']['toObject'](_0x374c63['range'],_0x453275)),null!=_0x374c63['key']&&_0x374c63['hasOwnProperty']('key')&&(_0x1515a1['key']=_0x374c63['key']),null!=_0x374c63['oldValueBoolean']&&_0x374c63['hasOwnProperty']('oldValueBoolean')&&(_0x1515a1['oldValueBoolean']=_0x374c63['oldValueBoolean']),null!=_0x374c63['oldValueJson']&&_0x374c63['hasOwnProperty']('oldValueJson')&&(_0x1515a1['oldValueJson']=_0x374c63['oldValueJson']),null!=_0x374c63['newValueBoolean']&&_0x374c63['hasOwnProperty']('newValueBoolean')&&(_0x1515a1['newValueBoolean']=_0x374c63['newValueBoolean']),null!=_0x374c63['newValueJson']&&_0x374c63['hasOwnProperty']('newValueJson')&&(_0x1515a1['newValueJson']=_0x374c63['newValueJson']),null!=_0x374c63['wasUndone']&&_0x374c63['hasOwnProperty']('wasUndone')&&(_0x1515a1['wasUndone']=_0x374c63['wasUndone']),_0x1515a1;},_0x4a5213['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4a5213['getTypeUrl']=function(_0x11a8eb){return void 0x0===_0x11a8eb&&(_0x11a8eb='type.googleapis.com'),_0x11a8eb+'/AttributeOperation';},_0x4a5213;}()),_0x25f4e9['InsertOperation']=(function(){function _0x2c869a(_0xb80401){if(this['nodes']=[],_0xb80401){for(var _0x2a6b0b=Object['keys'](_0xb80401),_0x28ae1b=0x0;_0x28ae1b<_0x2a6b0b['length'];++_0x28ae1b)null!=_0xb80401[_0x2a6b0b[_0x28ae1b]]&&(this[_0x2a6b0b[_0x28ae1b]]=_0xb80401[_0x2a6b0b[_0x28ae1b]]);}}return _0x2c869a['prototype']['position']=null,_0x2c869a['prototype']['nodes']=_0x49b5b4['emptyArray'],_0x2c869a['prototype']['shouldReceiveAttributes']=!0x1,_0x2c869a['prototype']['wasUndone']=!0x1,_0x2c869a['create']=function(_0x1ccc94){return new _0x2c869a(_0x1ccc94);},_0x2c869a['encode']=function(_0x5326fd,_0x55e9fd){if(_0x55e9fd||(_0x55e9fd=_0x125534['create']()),null!=_0x5326fd['position']&&Object['hasOwnProperty']['call'](_0x5326fd,'position')&&_0x25f4e9['Position']['encode'](_0x5326fd['position'],_0x55e9fd['uint32'](0xa)['fork']())['ldelim'](),null!=_0x5326fd['nodes']&&_0x5326fd['nodes']['length']){for(var _0x231897=0x0;_0x231897<_0x5326fd['nodes']['length'];++_0x231897)_0x25f4e9['Element']['encode'](_0x5326fd['nodes'][_0x231897],_0x55e9fd['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x5326fd['shouldReceiveAttributes']&&Object['hasOwnProperty']['call'](_0x5326fd,'shouldReceiveAttributes')&&_0x55e9fd['uint32'](0x18)['bool'](_0x5326fd['shouldReceiveAttributes']),null!=_0x5326fd['wasUndone']&&Object['hasOwnProperty']['call'](_0x5326fd,'wasUndone')&&_0x55e9fd['uint32'](0x20)['bool'](_0x5326fd['wasUndone']),_0x55e9fd;},_0x2c869a['encodeDelimited']=function(_0x4eb5e1,_0x3be719){return this['encode'](_0x4eb5e1,_0x3be719)['ldelim']();},_0x2c869a['decode']=function(_0x247dea,_0x1cc591){_0x247dea instanceof _0x32d958||(_0x247dea=_0x32d958['create'](_0x247dea));for(var _0x368ee4=void 0x0===_0x1cc591?_0x247dea['len']:_0x247dea['pos']+_0x1cc591,_0x331203=new _0x25f4e9['InsertOperation']();_0x247dea['pos']<_0x368ee4;){var _0x50f70a=_0x247dea['uint32']();switch(_0x50f70a>>>0x3){case 0x1:_0x331203['position']=_0x25f4e9['Position']['decode'](_0x247dea,_0x247dea['uint32']());break;case 0x2:_0x331203['nodes']&&_0x331203['nodes']['length']||(_0x331203['nodes']=[]),_0x331203['nodes']['push'](_0x25f4e9['Element']['decode'](_0x247dea,_0x247dea['uint32']()));break;case 0x3:_0x331203['shouldReceiveAttributes']=_0x247dea['bool']();break;case 0x4:_0x331203['wasUndone']=_0x247dea['bool']();break;default:_0x247dea['skipType'](0x7&_0x50f70a);}}return _0x331203;},_0x2c869a['decodeDelimited']=function(_0x33ab29){return _0x33ab29 instanceof _0x32d958||(_0x33ab29=new _0x32d958(_0x33ab29)),this['decode'](_0x33ab29,_0x33ab29['uint32']());},_0x2c869a['verify']=function(_0x31770a){if('object'!=typeof _0x31770a||null===_0x31770a)return'object\x20expected';if(null!=_0x31770a['position']&&_0x31770a['hasOwnProperty']('position')&&(_0x58ea4b=_0x25f4e9['Position']['verify'](_0x31770a['position'])))return'position.'+_0x58ea4b;if(null!=_0x31770a['nodes']&&_0x31770a['hasOwnProperty']('nodes')){if(!Array['isArray'](_0x31770a['nodes']))return'nodes:\x20array\x20expected';for(var _0x534d00=0x0;_0x534d00<_0x31770a['nodes']['length'];++_0x534d00){var _0x58ea4b;if(_0x58ea4b=_0x25f4e9['Element']['verify'](_0x31770a['nodes'][_0x534d00]))return'nodes.'+_0x58ea4b;}}return null!=_0x31770a['shouldReceiveAttributes']&&_0x31770a['hasOwnProperty']('shouldReceiveAttributes')&&'boolean'!=typeof _0x31770a['shouldReceiveAttributes']?'shouldReceiveAttributes:\x20boolean\x20expected':null!=_0x31770a['wasUndone']&&_0x31770a['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x31770a['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x2c869a['fromObject']=function(_0x989323){if(_0x989323 instanceof _0x25f4e9['InsertOperation'])return _0x989323;var _0x550e50=new _0x25f4e9['InsertOperation']();if(null!=_0x989323['position']){if('object'!=typeof _0x989323['position'])throw TypeError('.InsertOperation.position:\x20object\x20expected');_0x550e50['position']=_0x25f4e9['Position']['fromObject'](_0x989323['position']);}if(_0x989323['nodes']){if(!Array['isArray'](_0x989323['nodes']))throw TypeError('.InsertOperation.nodes:\x20array\x20expected');_0x550e50['nodes']=[];for(var _0x25935a=0x0;_0x25935a<_0x989323['nodes']['length'];++_0x25935a){if('object'!=typeof _0x989323['nodes'][_0x25935a])throw TypeError('.InsertOperation.nodes:\x20object\x20expected');_0x550e50['nodes'][_0x25935a]=_0x25f4e9['Element']['fromObject'](_0x989323['nodes'][_0x25935a]);}}return null!=_0x989323['shouldReceiveAttributes']&&(_0x550e50['shouldReceiveAttributes']=Boolean(_0x989323['shouldReceiveAttributes'])),null!=_0x989323['wasUndone']&&(_0x550e50['wasUndone']=Boolean(_0x989323['wasUndone'])),_0x550e50;},_0x2c869a['toObject']=function(_0x196e67,_0xc315ba){_0xc315ba||(_0xc315ba={});var _0xfd97ef={};if((_0xc315ba['arrays']||_0xc315ba['defaults'])&&(_0xfd97ef['nodes']=[]),_0xc315ba['defaults']&&(_0xfd97ef['position']=null,_0xfd97ef['shouldReceiveAttributes']=!0x1,_0xfd97ef['wasUndone']=!0x1),null!=_0x196e67['position']&&_0x196e67['hasOwnProperty']('position')&&(_0xfd97ef['position']=_0x25f4e9['Position']['toObject'](_0x196e67['position'],_0xc315ba)),_0x196e67['nodes']&&_0x196e67['nodes']['length']){_0xfd97ef['nodes']=[];for(var _0x5bcdf7=0x0;_0x5bcdf7<_0x196e67['nodes']['length'];++_0x5bcdf7)_0xfd97ef['nodes'][_0x5bcdf7]=_0x25f4e9['Element']['toObject'](_0x196e67['nodes'][_0x5bcdf7],_0xc315ba);}return null!=_0x196e67['shouldReceiveAttributes']&&_0x196e67['hasOwnProperty']('shouldReceiveAttributes')&&(_0xfd97ef['shouldReceiveAttributes']=_0x196e67['shouldReceiveAttributes']),null!=_0x196e67['wasUndone']&&_0x196e67['hasOwnProperty']('wasUndone')&&(_0xfd97ef['wasUndone']=_0x196e67['wasUndone']),_0xfd97ef;},_0x2c869a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2c869a['getTypeUrl']=function(_0xbafe91){return void 0x0===_0xbafe91&&(_0xbafe91='type.googleapis.com'),_0xbafe91+'/InsertOperation';},_0x2c869a;}()),_0x25f4e9['MarkerOperation']=(function(){function _0x2c589b(_0x52afad){if(_0x52afad){for(var _0xabc946=Object['keys'](_0x52afad),_0xb3ff9f=0x0;_0xb3ff9f<_0xabc946['length'];++_0xb3ff9f)null!=_0x52afad[_0xabc946[_0xb3ff9f]]&&(this[_0xabc946[_0xb3ff9f]]=_0x52afad[_0xabc946[_0xb3ff9f]]);}}return _0x2c589b['prototype']['name']='',_0x2c589b['prototype']['oldRange']=null,_0x2c589b['prototype']['newRange']=null,_0x2c589b['prototype']['affectsData']=!0x1,_0x2c589b['prototype']['wasUndone']=!0x1,_0x2c589b['create']=function(_0x19bdf6){return new _0x2c589b(_0x19bdf6);},_0x2c589b['encode']=function(_0x5c1cbb,_0x5c6ede){return _0x5c6ede||(_0x5c6ede=_0x125534['create']()),null!=_0x5c1cbb['name']&&Object['hasOwnProperty']['call'](_0x5c1cbb,'name')&&_0x5c6ede['uint32'](0xa)['string'](_0x5c1cbb['name']),null!=_0x5c1cbb['oldRange']&&Object['hasOwnProperty']['call'](_0x5c1cbb,'oldRange')&&_0x25f4e9['Range']['encode'](_0x5c1cbb['oldRange'],_0x5c6ede['uint32'](0x12)['fork']())['ldelim'](),null!=_0x5c1cbb['newRange']&&Object['hasOwnProperty']['call'](_0x5c1cbb,'newRange')&&_0x25f4e9['Range']['encode'](_0x5c1cbb['newRange'],_0x5c6ede['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x5c1cbb['affectsData']&&Object['hasOwnProperty']['call'](_0x5c1cbb,'affectsData')&&_0x5c6ede['uint32'](0x20)['bool'](_0x5c1cbb['affectsData']),null!=_0x5c1cbb['wasUndone']&&Object['hasOwnProperty']['call'](_0x5c1cbb,'wasUndone')&&_0x5c6ede['uint32'](0x28)['bool'](_0x5c1cbb['wasUndone']),_0x5c6ede;},_0x2c589b['encodeDelimited']=function(_0x15103e,_0x42c018){return this['encode'](_0x15103e,_0x42c018)['ldelim']();},_0x2c589b['decode']=function(_0x50d926,_0x441d5c){_0x50d926 instanceof _0x32d958||(_0x50d926=_0x32d958['create'](_0x50d926));for(var _0x53d3b0=void 0x0===_0x441d5c?_0x50d926['len']:_0x50d926['pos']+_0x441d5c,_0x1b61c7=new _0x25f4e9['MarkerOperation']();_0x50d926['pos']<_0x53d3b0;){var _0x348692=_0x50d926['uint32']();switch(_0x348692>>>0x3){case 0x1:_0x1b61c7['name']=_0x50d926['string']();break;case 0x2:_0x1b61c7['oldRange']=_0x25f4e9['Range']['decode'](_0x50d926,_0x50d926['uint32']());break;case 0x3:_0x1b61c7['newRange']=_0x25f4e9['Range']['decode'](_0x50d926,_0x50d926['uint32']());break;case 0x4:_0x1b61c7['affectsData']=_0x50d926['bool']();break;case 0x5:_0x1b61c7['wasUndone']=_0x50d926['bool']();break;default:_0x50d926['skipType'](0x7&_0x348692);}}return _0x1b61c7;},_0x2c589b['decodeDelimited']=function(_0x3e4b7c){return _0x3e4b7c instanceof _0x32d958||(_0x3e4b7c=new _0x32d958(_0x3e4b7c)),this['decode'](_0x3e4b7c,_0x3e4b7c['uint32']());},_0x2c589b['verify']=function(_0x46cbea){if('object'!=typeof _0x46cbea||null===_0x46cbea)return'object\x20expected';if(null!=_0x46cbea['name']&&_0x46cbea['hasOwnProperty']('name')&&!_0x49b5b4['isString'](_0x46cbea['name']))return'name:\x20string\x20expected';var _0x5919ec;if(null!=_0x46cbea['oldRange']&&_0x46cbea['hasOwnProperty']('oldRange')&&(_0x5919ec=_0x25f4e9['Range']['verify'](_0x46cbea['oldRange'])))return'oldRange.'+_0x5919ec;if(null!=_0x46cbea['newRange']&&_0x46cbea['hasOwnProperty']('newRange')&&(_0x5919ec=_0x25f4e9['Range']['verify'](_0x46cbea['newRange'])))return'newRange.'+_0x5919ec;return null!=_0x46cbea['affectsData']&&_0x46cbea['hasOwnProperty']('affectsData')&&'boolean'!=typeof _0x46cbea['affectsData']?'affectsData:\x20boolean\x20expected':null!=_0x46cbea['wasUndone']&&_0x46cbea['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x46cbea['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x2c589b['fromObject']=function(_0x16f927){if(_0x16f927 instanceof _0x25f4e9['MarkerOperation'])return _0x16f927;var _0x4a603b=new _0x25f4e9['MarkerOperation']();if(null!=_0x16f927['name']&&(_0x4a603b['name']=String(_0x16f927['name'])),null!=_0x16f927['oldRange']){if('object'!=typeof _0x16f927['oldRange'])throw TypeError('.MarkerOperation.oldRange:\x20object\x20expected');_0x4a603b['oldRange']=_0x25f4e9['Range']['fromObject'](_0x16f927['oldRange']);}if(null!=_0x16f927['newRange']){if('object'!=typeof _0x16f927['newRange'])throw TypeError('.MarkerOperation.newRange:\x20object\x20expected');_0x4a603b['newRange']=_0x25f4e9['Range']['fromObject'](_0x16f927['newRange']);}return null!=_0x16f927['affectsData']&&(_0x4a603b['affectsData']=Boolean(_0x16f927['affectsData'])),null!=_0x16f927['wasUndone']&&(_0x4a603b['wasUndone']=Boolean(_0x16f927['wasUndone'])),_0x4a603b;},_0x2c589b['toObject']=function(_0x21407e,_0x2fb8ec){_0x2fb8ec||(_0x2fb8ec={});var _0x499af3={};return _0x2fb8ec['defaults']&&(_0x499af3['name']='',_0x499af3['oldRange']=null,_0x499af3['newRange']=null,_0x499af3['affectsData']=!0x1,_0x499af3['wasUndone']=!0x1),null!=_0x21407e['name']&&_0x21407e['hasOwnProperty']('name')&&(_0x499af3['name']=_0x21407e['name']),null!=_0x21407e['oldRange']&&_0x21407e['hasOwnProperty']('oldRange')&&(_0x499af3['oldRange']=_0x25f4e9['Range']['toObject'](_0x21407e['oldRange'],_0x2fb8ec)),null!=_0x21407e['newRange']&&_0x21407e['hasOwnProperty']('newRange')&&(_0x499af3['newRange']=_0x25f4e9['Range']['toObject'](_0x21407e['newRange'],_0x2fb8ec)),null!=_0x21407e['affectsData']&&_0x21407e['hasOwnProperty']('affectsData')&&(_0x499af3['affectsData']=_0x21407e['affectsData']),null!=_0x21407e['wasUndone']&&_0x21407e['hasOwnProperty']('wasUndone')&&(_0x499af3['wasUndone']=_0x21407e['wasUndone']),_0x499af3;},_0x2c589b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2c589b['getTypeUrl']=function(_0x241e51){return void 0x0===_0x241e51&&(_0x241e51='type.googleapis.com'),_0x241e51+'/MarkerOperation';},_0x2c589b;}()),_0x25f4e9['MergeOperation']=(function(){function _0x14ecbd(_0xce35a6){if(_0xce35a6){for(var _0x5821b8=Object['keys'](_0xce35a6),_0x10fc0b=0x0;_0x10fc0b<_0x5821b8['length'];++_0x10fc0b)null!=_0xce35a6[_0x5821b8[_0x10fc0b]]&&(this[_0x5821b8[_0x10fc0b]]=_0xce35a6[_0x5821b8[_0x10fc0b]]);}}return _0x14ecbd['prototype']['sourcePosition']=null,_0x14ecbd['prototype']['targetPosition']=null,_0x14ecbd['prototype']['graveyardPosition']=null,_0x14ecbd['prototype']['howMany']=0x0,_0x14ecbd['prototype']['wasUndone']=!0x1,_0x14ecbd['create']=function(_0x2d609d){return new _0x14ecbd(_0x2d609d);},_0x14ecbd['encode']=function(_0x40ad8,_0x37a128){return _0x37a128||(_0x37a128=_0x125534['create']()),null!=_0x40ad8['sourcePosition']&&Object['hasOwnProperty']['call'](_0x40ad8,'sourcePosition')&&_0x25f4e9['Position']['encode'](_0x40ad8['sourcePosition'],_0x37a128['uint32'](0xa)['fork']())['ldelim'](),null!=_0x40ad8['targetPosition']&&Object['hasOwnProperty']['call'](_0x40ad8,'targetPosition')&&_0x25f4e9['Position']['encode'](_0x40ad8['targetPosition'],_0x37a128['uint32'](0x12)['fork']())['ldelim'](),null!=_0x40ad8['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x40ad8,'graveyardPosition')&&_0x25f4e9['Position']['encode'](_0x40ad8['graveyardPosition'],_0x37a128['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x40ad8['howMany']&&Object['hasOwnProperty']['call'](_0x40ad8,'howMany')&&_0x37a128['uint32'](0x20)['uint32'](_0x40ad8['howMany']),null!=_0x40ad8['wasUndone']&&Object['hasOwnProperty']['call'](_0x40ad8,'wasUndone')&&_0x37a128['uint32'](0x28)['bool'](_0x40ad8['wasUndone']),_0x37a128;},_0x14ecbd['encodeDelimited']=function(_0x209c7f,_0x3efd70){return this['encode'](_0x209c7f,_0x3efd70)['ldelim']();},_0x14ecbd['decode']=function(_0x40de2a,_0x48b395){_0x40de2a instanceof _0x32d958||(_0x40de2a=_0x32d958['create'](_0x40de2a));for(var _0x80a7a=void 0x0===_0x48b395?_0x40de2a['len']:_0x40de2a['pos']+_0x48b395,_0x146933=new _0x25f4e9['MergeOperation']();_0x40de2a['pos']<_0x80a7a;){var _0x3d4713=_0x40de2a['uint32']();switch(_0x3d4713>>>0x3){case 0x1:_0x146933['sourcePosition']=_0x25f4e9['Position']['decode'](_0x40de2a,_0x40de2a['uint32']());break;case 0x2:_0x146933['targetPosition']=_0x25f4e9['Position']['decode'](_0x40de2a,_0x40de2a['uint32']());break;case 0x3:_0x146933['graveyardPosition']=_0x25f4e9['Position']['decode'](_0x40de2a,_0x40de2a['uint32']());break;case 0x4:_0x146933['howMany']=_0x40de2a['uint32']();break;case 0x5:_0x146933['wasUndone']=_0x40de2a['bool']();break;default:_0x40de2a['skipType'](0x7&_0x3d4713);}}return _0x146933;},_0x14ecbd['decodeDelimited']=function(_0x4a7a38){return _0x4a7a38 instanceof _0x32d958||(_0x4a7a38=new _0x32d958(_0x4a7a38)),this['decode'](_0x4a7a38,_0x4a7a38['uint32']());},_0x14ecbd['verify']=function(_0x219235){if('object'!=typeof _0x219235||null===_0x219235)return'object\x20expected';var _0x5d3da4;if(null!=_0x219235['sourcePosition']&&_0x219235['hasOwnProperty']('sourcePosition')&&(_0x5d3da4=_0x25f4e9['Position']['verify'](_0x219235['sourcePosition'])))return'sourcePosition.'+_0x5d3da4;if(null!=_0x219235['targetPosition']&&_0x219235['hasOwnProperty']('targetPosition')&&(_0x5d3da4=_0x25f4e9['Position']['verify'](_0x219235['targetPosition'])))return'targetPosition.'+_0x5d3da4;if(null!=_0x219235['graveyardPosition']&&_0x219235['hasOwnProperty']('graveyardPosition')&&(_0x5d3da4=_0x25f4e9['Position']['verify'](_0x219235['graveyardPosition'])))return'graveyardPosition.'+_0x5d3da4;return null!=_0x219235['howMany']&&_0x219235['hasOwnProperty']('howMany')&&!_0x49b5b4['isInteger'](_0x219235['howMany'])?'howMany:\x20integer\x20expected':null!=_0x219235['wasUndone']&&_0x219235['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x219235['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x14ecbd['fromObject']=function(_0xfb08bc){if(_0xfb08bc instanceof _0x25f4e9['MergeOperation'])return _0xfb08bc;var _0xfa6aa6=new _0x25f4e9['MergeOperation']();if(null!=_0xfb08bc['sourcePosition']){if('object'!=typeof _0xfb08bc['sourcePosition'])throw TypeError('.MergeOperation.sourcePosition:\x20object\x20expected');_0xfa6aa6['sourcePosition']=_0x25f4e9['Position']['fromObject'](_0xfb08bc['sourcePosition']);}if(null!=_0xfb08bc['targetPosition']){if('object'!=typeof _0xfb08bc['targetPosition'])throw TypeError('.MergeOperation.targetPosition:\x20object\x20expected');_0xfa6aa6['targetPosition']=_0x25f4e9['Position']['fromObject'](_0xfb08bc['targetPosition']);}if(null!=_0xfb08bc['graveyardPosition']){if('object'!=typeof _0xfb08bc['graveyardPosition'])throw TypeError('.MergeOperation.graveyardPosition:\x20object\x20expected');_0xfa6aa6['graveyardPosition']=_0x25f4e9['Position']['fromObject'](_0xfb08bc['graveyardPosition']);}return null!=_0xfb08bc['howMany']&&(_0xfa6aa6['howMany']=_0xfb08bc['howMany']>>>0x0),null!=_0xfb08bc['wasUndone']&&(_0xfa6aa6['wasUndone']=Boolean(_0xfb08bc['wasUndone'])),_0xfa6aa6;},_0x14ecbd['toObject']=function(_0x3f17ac,_0x23b20b){_0x23b20b||(_0x23b20b={});var _0x4d3dce={};return _0x23b20b['defaults']&&(_0x4d3dce['sourcePosition']=null,_0x4d3dce['targetPosition']=null,_0x4d3dce['graveyardPosition']=null,_0x4d3dce['howMany']=0x0,_0x4d3dce['wasUndone']=!0x1),null!=_0x3f17ac['sourcePosition']&&_0x3f17ac['hasOwnProperty']('sourcePosition')&&(_0x4d3dce['sourcePosition']=_0x25f4e9['Position']['toObject'](_0x3f17ac['sourcePosition'],_0x23b20b)),null!=_0x3f17ac['targetPosition']&&_0x3f17ac['hasOwnProperty']('targetPosition')&&(_0x4d3dce['targetPosition']=_0x25f4e9['Position']['toObject'](_0x3f17ac['targetPosition'],_0x23b20b)),null!=_0x3f17ac['graveyardPosition']&&_0x3f17ac['hasOwnProperty']('graveyardPosition')&&(_0x4d3dce['graveyardPosition']=_0x25f4e9['Position']['toObject'](_0x3f17ac['graveyardPosition'],_0x23b20b)),null!=_0x3f17ac['howMany']&&_0x3f17ac['hasOwnProperty']('howMany')&&(_0x4d3dce['howMany']=_0x3f17ac['howMany']),null!=_0x3f17ac['wasUndone']&&_0x3f17ac['hasOwnProperty']('wasUndone')&&(_0x4d3dce['wasUndone']=_0x3f17ac['wasUndone']),_0x4d3dce;},_0x14ecbd['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x14ecbd['getTypeUrl']=function(_0x1d6f67){return void 0x0===_0x1d6f67&&(_0x1d6f67='type.googleapis.com'),_0x1d6f67+'/MergeOperation';},_0x14ecbd;}()),_0x25f4e9['MoveOperation']=(function(){function _0x4d13b9(_0x3adcb6){if(_0x3adcb6){for(var _0x3a1c64=Object['keys'](_0x3adcb6),_0x38bc6c=0x0;_0x38bc6c<_0x3a1c64['length'];++_0x38bc6c)null!=_0x3adcb6[_0x3a1c64[_0x38bc6c]]&&(this[_0x3a1c64[_0x38bc6c]]=_0x3adcb6[_0x3a1c64[_0x38bc6c]]);}}return _0x4d13b9['prototype']['sourcePosition']=null,_0x4d13b9['prototype']['howMany']=0x0,_0x4d13b9['prototype']['targetPosition']=null,_0x4d13b9['prototype']['wasUndone']=!0x1,_0x4d13b9['create']=function(_0x50ecb3){return new _0x4d13b9(_0x50ecb3);},_0x4d13b9['encode']=function(_0x568e69,_0x10c302){return _0x10c302||(_0x10c302=_0x125534['create']()),null!=_0x568e69['sourcePosition']&&Object['hasOwnProperty']['call'](_0x568e69,'sourcePosition')&&_0x25f4e9['Position']['encode'](_0x568e69['sourcePosition'],_0x10c302['uint32'](0xa)['fork']())['ldelim'](),null!=_0x568e69['howMany']&&Object['hasOwnProperty']['call'](_0x568e69,'howMany')&&_0x10c302['uint32'](0x10)['uint32'](_0x568e69['howMany']),null!=_0x568e69['targetPosition']&&Object['hasOwnProperty']['call'](_0x568e69,'targetPosition')&&_0x25f4e9['Position']['encode'](_0x568e69['targetPosition'],_0x10c302['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x568e69['wasUndone']&&Object['hasOwnProperty']['call'](_0x568e69,'wasUndone')&&_0x10c302['uint32'](0x20)['bool'](_0x568e69['wasUndone']),_0x10c302;},_0x4d13b9['encodeDelimited']=function(_0x23cd6b,_0x31d41f){return this['encode'](_0x23cd6b,_0x31d41f)['ldelim']();},_0x4d13b9['decode']=function(_0x5bab97,_0x5de174){_0x5bab97 instanceof _0x32d958||(_0x5bab97=_0x32d958['create'](_0x5bab97));for(var _0x5a8db1=void 0x0===_0x5de174?_0x5bab97['len']:_0x5bab97['pos']+_0x5de174,_0x23836e=new _0x25f4e9['MoveOperation']();_0x5bab97['pos']<_0x5a8db1;){var _0x9713ff=_0x5bab97['uint32']();switch(_0x9713ff>>>0x3){case 0x1:_0x23836e['sourcePosition']=_0x25f4e9['Position']['decode'](_0x5bab97,_0x5bab97['uint32']());break;case 0x2:_0x23836e['howMany']=_0x5bab97['uint32']();break;case 0x3:_0x23836e['targetPosition']=_0x25f4e9['Position']['decode'](_0x5bab97,_0x5bab97['uint32']());break;case 0x4:_0x23836e['wasUndone']=_0x5bab97['bool']();break;default:_0x5bab97['skipType'](0x7&_0x9713ff);}}return _0x23836e;},_0x4d13b9['decodeDelimited']=function(_0x4cf661){return _0x4cf661 instanceof _0x32d958||(_0x4cf661=new _0x32d958(_0x4cf661)),this['decode'](_0x4cf661,_0x4cf661['uint32']());},_0x4d13b9['verify']=function(_0x5d2c28){if('object'!=typeof _0x5d2c28||null===_0x5d2c28)return'object\x20expected';var _0x164bf0;if(null!=_0x5d2c28['sourcePosition']&&_0x5d2c28['hasOwnProperty']('sourcePosition')&&(_0x164bf0=_0x25f4e9['Position']['verify'](_0x5d2c28['sourcePosition'])))return'sourcePosition.'+_0x164bf0;if(null!=_0x5d2c28['howMany']&&_0x5d2c28['hasOwnProperty']('howMany')&&!_0x49b5b4['isInteger'](_0x5d2c28['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x5d2c28['targetPosition']&&_0x5d2c28['hasOwnProperty']('targetPosition')&&(_0x164bf0=_0x25f4e9['Position']['verify'](_0x5d2c28['targetPosition'])))return'targetPosition.'+_0x164bf0;return null!=_0x5d2c28['wasUndone']&&_0x5d2c28['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x5d2c28['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x4d13b9['fromObject']=function(_0x323830){if(_0x323830 instanceof _0x25f4e9['MoveOperation'])return _0x323830;var _0x21df52=new _0x25f4e9['MoveOperation']();if(null!=_0x323830['sourcePosition']){if('object'!=typeof _0x323830['sourcePosition'])throw TypeError('.MoveOperation.sourcePosition:\x20object\x20expected');_0x21df52['sourcePosition']=_0x25f4e9['Position']['fromObject'](_0x323830['sourcePosition']);}if(null!=_0x323830['howMany']&&(_0x21df52['howMany']=_0x323830['howMany']>>>0x0),null!=_0x323830['targetPosition']){if('object'!=typeof _0x323830['targetPosition'])throw TypeError('.MoveOperation.targetPosition:\x20object\x20expected');_0x21df52['targetPosition']=_0x25f4e9['Position']['fromObject'](_0x323830['targetPosition']);}return null!=_0x323830['wasUndone']&&(_0x21df52['wasUndone']=Boolean(_0x323830['wasUndone'])),_0x21df52;},_0x4d13b9['toObject']=function(_0xe0c5ca,_0x4ed28e){_0x4ed28e||(_0x4ed28e={});var _0xf3cd14={};return _0x4ed28e['defaults']&&(_0xf3cd14['sourcePosition']=null,_0xf3cd14['howMany']=0x0,_0xf3cd14['targetPosition']=null,_0xf3cd14['wasUndone']=!0x1),null!=_0xe0c5ca['sourcePosition']&&_0xe0c5ca['hasOwnProperty']('sourcePosition')&&(_0xf3cd14['sourcePosition']=_0x25f4e9['Position']['toObject'](_0xe0c5ca['sourcePosition'],_0x4ed28e)),null!=_0xe0c5ca['howMany']&&_0xe0c5ca['hasOwnProperty']('howMany')&&(_0xf3cd14['howMany']=_0xe0c5ca['howMany']),null!=_0xe0c5ca['targetPosition']&&_0xe0c5ca['hasOwnProperty']('targetPosition')&&(_0xf3cd14['targetPosition']=_0x25f4e9['Position']['toObject'](_0xe0c5ca['targetPosition'],_0x4ed28e)),null!=_0xe0c5ca['wasUndone']&&_0xe0c5ca['hasOwnProperty']('wasUndone')&&(_0xf3cd14['wasUndone']=_0xe0c5ca['wasUndone']),_0xf3cd14;},_0x4d13b9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4d13b9['getTypeUrl']=function(_0x5efdbb){return void 0x0===_0x5efdbb&&(_0x5efdbb='type.googleapis.com'),_0x5efdbb+'/MoveOperation';},_0x4d13b9;}()),_0x25f4e9['RenameOperation']=(function(){function _0x2e9772(_0x432771){if(_0x432771){for(var _0x35a2b8=Object['keys'](_0x432771),_0x96f99d=0x0;_0x96f99d<_0x35a2b8['length'];++_0x96f99d)null!=_0x432771[_0x35a2b8[_0x96f99d]]&&(this[_0x35a2b8[_0x96f99d]]=_0x432771[_0x35a2b8[_0x96f99d]]);}}return _0x2e9772['prototype']['position']=null,_0x2e9772['prototype']['oldName']='',_0x2e9772['prototype']['newName']='',_0x2e9772['prototype']['wasUndone']=!0x1,_0x2e9772['create']=function(_0x15b9db){return new _0x2e9772(_0x15b9db);},_0x2e9772['encode']=function(_0x4647d9,_0x21a228){return _0x21a228||(_0x21a228=_0x125534['create']()),null!=_0x4647d9['position']&&Object['hasOwnProperty']['call'](_0x4647d9,'position')&&_0x25f4e9['Position']['encode'](_0x4647d9['position'],_0x21a228['uint32'](0xa)['fork']())['ldelim'](),null!=_0x4647d9['oldName']&&Object['hasOwnProperty']['call'](_0x4647d9,'oldName')&&_0x21a228['uint32'](0x12)['string'](_0x4647d9['oldName']),null!=_0x4647d9['newName']&&Object['hasOwnProperty']['call'](_0x4647d9,'newName')&&_0x21a228['uint32'](0x1a)['string'](_0x4647d9['newName']),null!=_0x4647d9['wasUndone']&&Object['hasOwnProperty']['call'](_0x4647d9,'wasUndone')&&_0x21a228['uint32'](0x20)['bool'](_0x4647d9['wasUndone']),_0x21a228;},_0x2e9772['encodeDelimited']=function(_0x2e51bb,_0x416f90){return this['encode'](_0x2e51bb,_0x416f90)['ldelim']();},_0x2e9772['decode']=function(_0x2effba,_0xd28b14){_0x2effba instanceof _0x32d958||(_0x2effba=_0x32d958['create'](_0x2effba));for(var _0x5d110f=void 0x0===_0xd28b14?_0x2effba['len']:_0x2effba['pos']+_0xd28b14,_0x2f6929=new _0x25f4e9['RenameOperation']();_0x2effba['pos']<_0x5d110f;){var _0x350d9a=_0x2effba['uint32']();switch(_0x350d9a>>>0x3){case 0x1:_0x2f6929['position']=_0x25f4e9['Position']['decode'](_0x2effba,_0x2effba['uint32']());break;case 0x2:_0x2f6929['oldName']=_0x2effba['string']();break;case 0x3:_0x2f6929['newName']=_0x2effba['string']();break;case 0x4:_0x2f6929['wasUndone']=_0x2effba['bool']();break;default:_0x2effba['skipType'](0x7&_0x350d9a);}}return _0x2f6929;},_0x2e9772['decodeDelimited']=function(_0x1dd3ce){return _0x1dd3ce instanceof _0x32d958||(_0x1dd3ce=new _0x32d958(_0x1dd3ce)),this['decode'](_0x1dd3ce,_0x1dd3ce['uint32']());},_0x2e9772['verify']=function(_0xe0d2ce){if('object'!=typeof _0xe0d2ce||null===_0xe0d2ce)return'object\x20expected';if(null!=_0xe0d2ce['position']&&_0xe0d2ce['hasOwnProperty']('position')){var _0x1e1d6e=_0x25f4e9['Position']['verify'](_0xe0d2ce['position']);if(_0x1e1d6e)return'position.'+_0x1e1d6e;}return null!=_0xe0d2ce['oldName']&&_0xe0d2ce['hasOwnProperty']('oldName')&&!_0x49b5b4['isString'](_0xe0d2ce['oldName'])?'oldName:\x20string\x20expected':null!=_0xe0d2ce['newName']&&_0xe0d2ce['hasOwnProperty']('newName')&&!_0x49b5b4['isString'](_0xe0d2ce['newName'])?'newName:\x20string\x20expected':null!=_0xe0d2ce['wasUndone']&&_0xe0d2ce['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0xe0d2ce['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x2e9772['fromObject']=function(_0x239996){if(_0x239996 instanceof _0x25f4e9['RenameOperation'])return _0x239996;var _0x2e8641=new _0x25f4e9['RenameOperation']();if(null!=_0x239996['position']){if('object'!=typeof _0x239996['position'])throw TypeError('.RenameOperation.position:\x20object\x20expected');_0x2e8641['position']=_0x25f4e9['Position']['fromObject'](_0x239996['position']);}return null!=_0x239996['oldName']&&(_0x2e8641['oldName']=String(_0x239996['oldName'])),null!=_0x239996['newName']&&(_0x2e8641['newName']=String(_0x239996['newName'])),null!=_0x239996['wasUndone']&&(_0x2e8641['wasUndone']=Boolean(_0x239996['wasUndone'])),_0x2e8641;},_0x2e9772['toObject']=function(_0x5b322c,_0x48e0b1){_0x48e0b1||(_0x48e0b1={});var _0x4ba29c={};return _0x48e0b1['defaults']&&(_0x4ba29c['position']=null,_0x4ba29c['oldName']='',_0x4ba29c['newName']='',_0x4ba29c['wasUndone']=!0x1),null!=_0x5b322c['position']&&_0x5b322c['hasOwnProperty']('position')&&(_0x4ba29c['position']=_0x25f4e9['Position']['toObject'](_0x5b322c['position'],_0x48e0b1)),null!=_0x5b322c['oldName']&&_0x5b322c['hasOwnProperty']('oldName')&&(_0x4ba29c['oldName']=_0x5b322c['oldName']),null!=_0x5b322c['newName']&&_0x5b322c['hasOwnProperty']('newName')&&(_0x4ba29c['newName']=_0x5b322c['newName']),null!=_0x5b322c['wasUndone']&&_0x5b322c['hasOwnProperty']('wasUndone')&&(_0x4ba29c['wasUndone']=_0x5b322c['wasUndone']),_0x4ba29c;},_0x2e9772['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2e9772['getTypeUrl']=function(_0x4a2615){return void 0x0===_0x4a2615&&(_0x4a2615='type.googleapis.com'),_0x4a2615+'/RenameOperation';},_0x2e9772;}()),_0x25f4e9['RootAttributeOperation']=(function(){function _0x1fb075(_0xaef10){if(_0xaef10){for(var _0x2956aa=Object['keys'](_0xaef10),_0x2fa34d=0x0;_0x2fa34d<_0x2956aa['length'];++_0x2fa34d)null!=_0xaef10[_0x2956aa[_0x2fa34d]]&&(this[_0x2956aa[_0x2fa34d]]=_0xaef10[_0x2956aa[_0x2fa34d]]);}}return _0x1fb075['prototype']['root']='',_0x1fb075['prototype']['key']='',_0x1fb075['prototype']['oldValueBoolean']=!0x1,_0x1fb075['prototype']['oldValueJson']='',_0x1fb075['prototype']['newValueBoolean']=!0x1,_0x1fb075['prototype']['newValueJson']='',_0x1fb075['prototype']['wasUndone']=!0x1,_0x1fb075['create']=function(_0x21af42){return new _0x1fb075(_0x21af42);},_0x1fb075['encode']=function(_0x1620a3,_0x1e11e4){return _0x1e11e4||(_0x1e11e4=_0x125534['create']()),null!=_0x1620a3['root']&&Object['hasOwnProperty']['call'](_0x1620a3,'root')&&_0x1e11e4['uint32'](0xa)['string'](_0x1620a3['root']),null!=_0x1620a3['key']&&Object['hasOwnProperty']['call'](_0x1620a3,'key')&&_0x1e11e4['uint32'](0x12)['string'](_0x1620a3['key']),null!=_0x1620a3['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x1620a3,'oldValueBoolean')&&_0x1e11e4['uint32'](0x18)['bool'](_0x1620a3['oldValueBoolean']),null!=_0x1620a3['oldValueJson']&&Object['hasOwnProperty']['call'](_0x1620a3,'oldValueJson')&&_0x1e11e4['uint32'](0x22)['string'](_0x1620a3['oldValueJson']),null!=_0x1620a3['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x1620a3,'newValueBoolean')&&_0x1e11e4['uint32'](0x28)['bool'](_0x1620a3['newValueBoolean']),null!=_0x1620a3['newValueJson']&&Object['hasOwnProperty']['call'](_0x1620a3,'newValueJson')&&_0x1e11e4['uint32'](0x32)['string'](_0x1620a3['newValueJson']),null!=_0x1620a3['wasUndone']&&Object['hasOwnProperty']['call'](_0x1620a3,'wasUndone')&&_0x1e11e4['uint32'](0x38)['bool'](_0x1620a3['wasUndone']),_0x1e11e4;},_0x1fb075['encodeDelimited']=function(_0x59442c,_0x11774d){return this['encode'](_0x59442c,_0x11774d)['ldelim']();},_0x1fb075['decode']=function(_0x51dda5,_0x2c53ad){_0x51dda5 instanceof _0x32d958||(_0x51dda5=_0x32d958['create'](_0x51dda5));for(var _0xe26e1f=void 0x0===_0x2c53ad?_0x51dda5['len']:_0x51dda5['pos']+_0x2c53ad,_0x2b882a=new _0x25f4e9['RootAttributeOperation']();_0x51dda5['pos']<_0xe26e1f;){var _0xf8e75f=_0x51dda5['uint32']();switch(_0xf8e75f>>>0x3){case 0x1:_0x2b882a['root']=_0x51dda5['string']();break;case 0x2:_0x2b882a['key']=_0x51dda5['string']();break;case 0x3:_0x2b882a['oldValueBoolean']=_0x51dda5['bool']();break;case 0x4:_0x2b882a['oldValueJson']=_0x51dda5['string']();break;case 0x5:_0x2b882a['newValueBoolean']=_0x51dda5['bool']();break;case 0x6:_0x2b882a['newValueJson']=_0x51dda5['string']();break;case 0x7:_0x2b882a['wasUndone']=_0x51dda5['bool']();break;default:_0x51dda5['skipType'](0x7&_0xf8e75f);}}return _0x2b882a;},_0x1fb075['decodeDelimited']=function(_0x52b621){return _0x52b621 instanceof _0x32d958||(_0x52b621=new _0x32d958(_0x52b621)),this['decode'](_0x52b621,_0x52b621['uint32']());},_0x1fb075['verify']=function(_0x58dae1){return'object'!=typeof _0x58dae1||null===_0x58dae1?'object\x20expected':null!=_0x58dae1['root']&&_0x58dae1['hasOwnProperty']('root')&&!_0x49b5b4['isString'](_0x58dae1['root'])?'root:\x20string\x20expected':null!=_0x58dae1['key']&&_0x58dae1['hasOwnProperty']('key')&&!_0x49b5b4['isString'](_0x58dae1['key'])?'key:\x20string\x20expected':null!=_0x58dae1['oldValueBoolean']&&_0x58dae1['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x58dae1['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x58dae1['oldValueJson']&&_0x58dae1['hasOwnProperty']('oldValueJson')&&!_0x49b5b4['isString'](_0x58dae1['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x58dae1['newValueBoolean']&&_0x58dae1['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x58dae1['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x58dae1['newValueJson']&&_0x58dae1['hasOwnProperty']('newValueJson')&&!_0x49b5b4['isString'](_0x58dae1['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x58dae1['wasUndone']&&_0x58dae1['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x58dae1['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x1fb075['fromObject']=function(_0x33d989){if(_0x33d989 instanceof _0x25f4e9['RootAttributeOperation'])return _0x33d989;var _0x3a0879=new _0x25f4e9['RootAttributeOperation']();return null!=_0x33d989['root']&&(_0x3a0879['root']=String(_0x33d989['root'])),null!=_0x33d989['key']&&(_0x3a0879['key']=String(_0x33d989['key'])),null!=_0x33d989['oldValueBoolean']&&(_0x3a0879['oldValueBoolean']=Boolean(_0x33d989['oldValueBoolean'])),null!=_0x33d989['oldValueJson']&&(_0x3a0879['oldValueJson']=String(_0x33d989['oldValueJson'])),null!=_0x33d989['newValueBoolean']&&(_0x3a0879['newValueBoolean']=Boolean(_0x33d989['newValueBoolean'])),null!=_0x33d989['newValueJson']&&(_0x3a0879['newValueJson']=String(_0x33d989['newValueJson'])),null!=_0x33d989['wasUndone']&&(_0x3a0879['wasUndone']=Boolean(_0x33d989['wasUndone'])),_0x3a0879;},_0x1fb075['toObject']=function(_0x44da83,_0x1b11a8){_0x1b11a8||(_0x1b11a8={});var _0x42bebe={};return _0x1b11a8['defaults']&&(_0x42bebe['root']='',_0x42bebe['key']='',_0x42bebe['oldValueBoolean']=!0x1,_0x42bebe['oldValueJson']='',_0x42bebe['newValueBoolean']=!0x1,_0x42bebe['newValueJson']='',_0x42bebe['wasUndone']=!0x1),null!=_0x44da83['root']&&_0x44da83['hasOwnProperty']('root')&&(_0x42bebe['root']=_0x44da83['root']),null!=_0x44da83['key']&&_0x44da83['hasOwnProperty']('key')&&(_0x42bebe['key']=_0x44da83['key']),null!=_0x44da83['oldValueBoolean']&&_0x44da83['hasOwnProperty']('oldValueBoolean')&&(_0x42bebe['oldValueBoolean']=_0x44da83['oldValueBoolean']),null!=_0x44da83['oldValueJson']&&_0x44da83['hasOwnProperty']('oldValueJson')&&(_0x42bebe['oldValueJson']=_0x44da83['oldValueJson']),null!=_0x44da83['newValueBoolean']&&_0x44da83['hasOwnProperty']('newValueBoolean')&&(_0x42bebe['newValueBoolean']=_0x44da83['newValueBoolean']),null!=_0x44da83['newValueJson']&&_0x44da83['hasOwnProperty']('newValueJson')&&(_0x42bebe['newValueJson']=_0x44da83['newValueJson']),null!=_0x44da83['wasUndone']&&_0x44da83['hasOwnProperty']('wasUndone')&&(_0x42bebe['wasUndone']=_0x44da83['wasUndone']),_0x42bebe;},_0x1fb075['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1fb075['getTypeUrl']=function(_0x3fe55d){return void 0x0===_0x3fe55d&&(_0x3fe55d='type.googleapis.com'),_0x3fe55d+'/RootAttributeOperation';},_0x1fb075;}()),_0x25f4e9['RootOperation']=(function(){function _0x1e4454(_0x43091d){if(_0x43091d){for(var _0x10d032=Object['keys'](_0x43091d),_0xd43b7d=0x0;_0xd43b7d<_0x10d032['length'];++_0xd43b7d)null!=_0x43091d[_0x10d032[_0xd43b7d]]&&(this[_0x10d032[_0xd43b7d]]=_0x43091d[_0x10d032[_0xd43b7d]]);}}return _0x1e4454['prototype']['rootName']='',_0x1e4454['prototype']['elementName']='',_0x1e4454['prototype']['isAdd']=!0x1,_0x1e4454['prototype']['wasUndone']=!0x1,_0x1e4454['create']=function(_0x41de52){return new _0x1e4454(_0x41de52);},_0x1e4454['encode']=function(_0x9a8744,_0x1392ba){return _0x1392ba||(_0x1392ba=_0x125534['create']()),null!=_0x9a8744['rootName']&&Object['hasOwnProperty']['call'](_0x9a8744,'rootName')&&_0x1392ba['uint32'](0xa)['string'](_0x9a8744['rootName']),null!=_0x9a8744['elementName']&&Object['hasOwnProperty']['call'](_0x9a8744,'elementName')&&_0x1392ba['uint32'](0x12)['string'](_0x9a8744['elementName']),null!=_0x9a8744['isAdd']&&Object['hasOwnProperty']['call'](_0x9a8744,'isAdd')&&_0x1392ba['uint32'](0x18)['bool'](_0x9a8744['isAdd']),null!=_0x9a8744['wasUndone']&&Object['hasOwnProperty']['call'](_0x9a8744,'wasUndone')&&_0x1392ba['uint32'](0x20)['bool'](_0x9a8744['wasUndone']),_0x1392ba;},_0x1e4454['encodeDelimited']=function(_0x439b16,_0xcd5d){return this['encode'](_0x439b16,_0xcd5d)['ldelim']();},_0x1e4454['decode']=function(_0x4fa03d,_0xdc8ac0){_0x4fa03d instanceof _0x32d958||(_0x4fa03d=_0x32d958['create'](_0x4fa03d));for(var _0x1be0bc=void 0x0===_0xdc8ac0?_0x4fa03d['len']:_0x4fa03d['pos']+_0xdc8ac0,_0x151745=new _0x25f4e9['RootOperation']();_0x4fa03d['pos']<_0x1be0bc;){var _0x2a4acb=_0x4fa03d['uint32']();switch(_0x2a4acb>>>0x3){case 0x1:_0x151745['rootName']=_0x4fa03d['string']();break;case 0x2:_0x151745['elementName']=_0x4fa03d['string']();break;case 0x3:_0x151745['isAdd']=_0x4fa03d['bool']();break;case 0x4:_0x151745['wasUndone']=_0x4fa03d['bool']();break;default:_0x4fa03d['skipType'](0x7&_0x2a4acb);}}return _0x151745;},_0x1e4454['decodeDelimited']=function(_0x412d0b){return _0x412d0b instanceof _0x32d958||(_0x412d0b=new _0x32d958(_0x412d0b)),this['decode'](_0x412d0b,_0x412d0b['uint32']());},_0x1e4454['verify']=function(_0x1112e9){return'object'!=typeof _0x1112e9||null===_0x1112e9?'object\x20expected':null!=_0x1112e9['rootName']&&_0x1112e9['hasOwnProperty']('rootName')&&!_0x49b5b4['isString'](_0x1112e9['rootName'])?'rootName:\x20string\x20expected':null!=_0x1112e9['elementName']&&_0x1112e9['hasOwnProperty']('elementName')&&!_0x49b5b4['isString'](_0x1112e9['elementName'])?'elementName:\x20string\x20expected':null!=_0x1112e9['isAdd']&&_0x1112e9['hasOwnProperty']('isAdd')&&'boolean'!=typeof _0x1112e9['isAdd']?'isAdd:\x20boolean\x20expected':null!=_0x1112e9['wasUndone']&&_0x1112e9['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x1112e9['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x1e4454['fromObject']=function(_0x43ab29){if(_0x43ab29 instanceof _0x25f4e9['RootOperation'])return _0x43ab29;var _0x2d1f55=new _0x25f4e9['RootOperation']();return null!=_0x43ab29['rootName']&&(_0x2d1f55['rootName']=String(_0x43ab29['rootName'])),null!=_0x43ab29['elementName']&&(_0x2d1f55['elementName']=String(_0x43ab29['elementName'])),null!=_0x43ab29['isAdd']&&(_0x2d1f55['isAdd']=Boolean(_0x43ab29['isAdd'])),null!=_0x43ab29['wasUndone']&&(_0x2d1f55['wasUndone']=Boolean(_0x43ab29['wasUndone'])),_0x2d1f55;},_0x1e4454['toObject']=function(_0x37c135,_0x1a2b1d){_0x1a2b1d||(_0x1a2b1d={});var _0xa2fd73={};return _0x1a2b1d['defaults']&&(_0xa2fd73['rootName']='',_0xa2fd73['elementName']='',_0xa2fd73['isAdd']=!0x1,_0xa2fd73['wasUndone']=!0x1),null!=_0x37c135['rootName']&&_0x37c135['hasOwnProperty']('rootName')&&(_0xa2fd73['rootName']=_0x37c135['rootName']),null!=_0x37c135['elementName']&&_0x37c135['hasOwnProperty']('elementName')&&(_0xa2fd73['elementName']=_0x37c135['elementName']),null!=_0x37c135['isAdd']&&_0x37c135['hasOwnProperty']('isAdd')&&(_0xa2fd73['isAdd']=_0x37c135['isAdd']),null!=_0x37c135['wasUndone']&&_0x37c135['hasOwnProperty']('wasUndone')&&(_0xa2fd73['wasUndone']=_0x37c135['wasUndone']),_0xa2fd73;},_0x1e4454['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1e4454['getTypeUrl']=function(_0x1a4990){return void 0x0===_0x1a4990&&(_0x1a4990='type.googleapis.com'),_0x1a4990+'/RootOperation';},_0x1e4454;}()),_0x25f4e9['SplitOperation']=(function(){function _0x1e181b(_0x52b792){if(_0x52b792){for(var _0x3edc54=Object['keys'](_0x52b792),_0x3d5ffa=0x0;_0x3d5ffa<_0x3edc54['length'];++_0x3d5ffa)null!=_0x52b792[_0x3edc54[_0x3d5ffa]]&&(this[_0x3edc54[_0x3d5ffa]]=_0x52b792[_0x3edc54[_0x3d5ffa]]);}}return _0x1e181b['prototype']['splitPosition']=null,_0x1e181b['prototype']['graveyardPosition']=null,_0x1e181b['prototype']['howMany']=0x0,_0x1e181b['prototype']['insertionPosition']=null,_0x1e181b['prototype']['wasUndone']=!0x1,_0x1e181b['create']=function(_0x26749){return new _0x1e181b(_0x26749);},_0x1e181b['encode']=function(_0x53d8e9,_0x3c59e6){return _0x3c59e6||(_0x3c59e6=_0x125534['create']()),null!=_0x53d8e9['splitPosition']&&Object['hasOwnProperty']['call'](_0x53d8e9,'splitPosition')&&_0x25f4e9['Position']['encode'](_0x53d8e9['splitPosition'],_0x3c59e6['uint32'](0xa)['fork']())['ldelim'](),null!=_0x53d8e9['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x53d8e9,'graveyardPosition')&&_0x25f4e9['Position']['encode'](_0x53d8e9['graveyardPosition'],_0x3c59e6['uint32'](0x12)['fork']())['ldelim'](),null!=_0x53d8e9['howMany']&&Object['hasOwnProperty']['call'](_0x53d8e9,'howMany')&&_0x3c59e6['uint32'](0x18)['uint32'](_0x53d8e9['howMany']),null!=_0x53d8e9['insertionPosition']&&Object['hasOwnProperty']['call'](_0x53d8e9,'insertionPosition')&&_0x25f4e9['Position']['encode'](_0x53d8e9['insertionPosition'],_0x3c59e6['uint32'](0x22)['fork']())['ldelim'](),null!=_0x53d8e9['wasUndone']&&Object['hasOwnProperty']['call'](_0x53d8e9,'wasUndone')&&_0x3c59e6['uint32'](0x28)['bool'](_0x53d8e9['wasUndone']),_0x3c59e6;},_0x1e181b['encodeDelimited']=function(_0x2eba0b,_0x53c9d0){return this['encode'](_0x2eba0b,_0x53c9d0)['ldelim']();},_0x1e181b['decode']=function(_0x2fb6e7,_0x32853c){_0x2fb6e7 instanceof _0x32d958||(_0x2fb6e7=_0x32d958['create'](_0x2fb6e7));for(var _0x4a6deb=void 0x0===_0x32853c?_0x2fb6e7['len']:_0x2fb6e7['pos']+_0x32853c,_0x2d9a5f=new _0x25f4e9['SplitOperation']();_0x2fb6e7['pos']<_0x4a6deb;){var _0x42f1ae=_0x2fb6e7['uint32']();switch(_0x42f1ae>>>0x3){case 0x1:_0x2d9a5f['splitPosition']=_0x25f4e9['Position']['decode'](_0x2fb6e7,_0x2fb6e7['uint32']());break;case 0x2:_0x2d9a5f['graveyardPosition']=_0x25f4e9['Position']['decode'](_0x2fb6e7,_0x2fb6e7['uint32']());break;case 0x3:_0x2d9a5f['howMany']=_0x2fb6e7['uint32']();break;case 0x4:_0x2d9a5f['insertionPosition']=_0x25f4e9['Position']['decode'](_0x2fb6e7,_0x2fb6e7['uint32']());break;case 0x5:_0x2d9a5f['wasUndone']=_0x2fb6e7['bool']();break;default:_0x2fb6e7['skipType'](0x7&_0x42f1ae);}}return _0x2d9a5f;},_0x1e181b['decodeDelimited']=function(_0x57d8ca){return _0x57d8ca instanceof _0x32d958||(_0x57d8ca=new _0x32d958(_0x57d8ca)),this['decode'](_0x57d8ca,_0x57d8ca['uint32']());},_0x1e181b['verify']=function(_0x5970bd){if('object'!=typeof _0x5970bd||null===_0x5970bd)return'object\x20expected';var _0x35dc0c;if(null!=_0x5970bd['splitPosition']&&_0x5970bd['hasOwnProperty']('splitPosition')&&(_0x35dc0c=_0x25f4e9['Position']['verify'](_0x5970bd['splitPosition'])))return'splitPosition.'+_0x35dc0c;if(null!=_0x5970bd['graveyardPosition']&&_0x5970bd['hasOwnProperty']('graveyardPosition')&&(_0x35dc0c=_0x25f4e9['Position']['verify'](_0x5970bd['graveyardPosition'])))return'graveyardPosition.'+_0x35dc0c;if(null!=_0x5970bd['howMany']&&_0x5970bd['hasOwnProperty']('howMany')&&!_0x49b5b4['isInteger'](_0x5970bd['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x5970bd['insertionPosition']&&_0x5970bd['hasOwnProperty']('insertionPosition')&&(_0x35dc0c=_0x25f4e9['Position']['verify'](_0x5970bd['insertionPosition'])))return'insertionPosition.'+_0x35dc0c;return null!=_0x5970bd['wasUndone']&&_0x5970bd['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x5970bd['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x1e181b['fromObject']=function(_0x451b79){if(_0x451b79 instanceof _0x25f4e9['SplitOperation'])return _0x451b79;var _0x4cd3ff=new _0x25f4e9['SplitOperation']();if(null!=_0x451b79['splitPosition']){if('object'!=typeof _0x451b79['splitPosition'])throw TypeError('.SplitOperation.splitPosition:\x20object\x20expected');_0x4cd3ff['splitPosition']=_0x25f4e9['Position']['fromObject'](_0x451b79['splitPosition']);}if(null!=_0x451b79['graveyardPosition']){if('object'!=typeof _0x451b79['graveyardPosition'])throw TypeError('.SplitOperation.graveyardPosition:\x20object\x20expected');_0x4cd3ff['graveyardPosition']=_0x25f4e9['Position']['fromObject'](_0x451b79['graveyardPosition']);}if(null!=_0x451b79['howMany']&&(_0x4cd3ff['howMany']=_0x451b79['howMany']>>>0x0),null!=_0x451b79['insertionPosition']){if('object'!=typeof _0x451b79['insertionPosition'])throw TypeError('.SplitOperation.insertionPosition:\x20object\x20expected');_0x4cd3ff['insertionPosition']=_0x25f4e9['Position']['fromObject'](_0x451b79['insertionPosition']);}return null!=_0x451b79['wasUndone']&&(_0x4cd3ff['wasUndone']=Boolean(_0x451b79['wasUndone'])),_0x4cd3ff;},_0x1e181b['toObject']=function(_0x39f517,_0x387213){_0x387213||(_0x387213={});var _0x5505db={};return _0x387213['defaults']&&(_0x5505db['splitPosition']=null,_0x5505db['graveyardPosition']=null,_0x5505db['howMany']=0x0,_0x5505db['insertionPosition']=null,_0x5505db['wasUndone']=!0x1),null!=_0x39f517['splitPosition']&&_0x39f517['hasOwnProperty']('splitPosition')&&(_0x5505db['splitPosition']=_0x25f4e9['Position']['toObject'](_0x39f517['splitPosition'],_0x387213)),null!=_0x39f517['graveyardPosition']&&_0x39f517['hasOwnProperty']('graveyardPosition')&&(_0x5505db['graveyardPosition']=_0x25f4e9['Position']['toObject'](_0x39f517['graveyardPosition'],_0x387213)),null!=_0x39f517['howMany']&&_0x39f517['hasOwnProperty']('howMany')&&(_0x5505db['howMany']=_0x39f517['howMany']),null!=_0x39f517['insertionPosition']&&_0x39f517['hasOwnProperty']('insertionPosition')&&(_0x5505db['insertionPosition']=_0x25f4e9['Position']['toObject'](_0x39f517['insertionPosition'],_0x387213)),null!=_0x39f517['wasUndone']&&_0x39f517['hasOwnProperty']('wasUndone')&&(_0x5505db['wasUndone']=_0x39f517['wasUndone']),_0x5505db;},_0x1e181b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1e181b['getTypeUrl']=function(_0x4dd3ce){return void 0x0===_0x4dd3ce&&(_0x4dd3ce='type.googleapis.com'),_0x4dd3ce+'/SplitOperation';},_0x1e181b;}()),_0x25f4e9['Position']=(function(){function _0x3d0971(_0x39608e){if(this['path']=[],_0x39608e){for(var _0x352fd2=Object['keys'](_0x39608e),_0x1475a8=0x0;_0x1475a8<_0x352fd2['length'];++_0x1475a8)null!=_0x39608e[_0x352fd2[_0x1475a8]]&&(this[_0x352fd2[_0x1475a8]]=_0x39608e[_0x352fd2[_0x1475a8]]);}}return _0x3d0971['prototype']['root']='',_0x3d0971['prototype']['rootMain']=!0x1,_0x3d0971['prototype']['rootGraveyard']=!0x1,_0x3d0971['prototype']['path']=_0x49b5b4['emptyArray'],_0x3d0971['prototype']['stickiness']='',_0x3d0971['create']=function(_0x58b640){return new _0x3d0971(_0x58b640);},_0x3d0971['encode']=function(_0x52e664,_0x587513){if(_0x587513||(_0x587513=_0x125534['create']()),null!=_0x52e664['root']&&Object['hasOwnProperty']['call'](_0x52e664,'root')&&_0x587513['uint32'](0xa)['string'](_0x52e664['root']),null!=_0x52e664['rootMain']&&Object['hasOwnProperty']['call'](_0x52e664,'rootMain')&&_0x587513['uint32'](0x10)['bool'](_0x52e664['rootMain']),null!=_0x52e664['rootGraveyard']&&Object['hasOwnProperty']['call'](_0x52e664,'rootGraveyard')&&_0x587513['uint32'](0x18)['bool'](_0x52e664['rootGraveyard']),null!=_0x52e664['path']&&_0x52e664['path']['length']){_0x587513['uint32'](0x22)['fork']();for(var _0x2fa14e=0x0;_0x2fa14e<_0x52e664['path']['length'];++_0x2fa14e)_0x587513['uint32'](_0x52e664['path'][_0x2fa14e]);_0x587513['ldelim']();}return null!=_0x52e664['stickiness']&&Object['hasOwnProperty']['call'](_0x52e664,'stickiness')&&_0x587513['uint32'](0x2a)['string'](_0x52e664['stickiness']),_0x587513;},_0x3d0971['encodeDelimited']=function(_0x2a0e5e,_0x3bcf70){return this['encode'](_0x2a0e5e,_0x3bcf70)['ldelim']();},_0x3d0971['decode']=function(_0x5491c1,_0x23bfe1){_0x5491c1 instanceof _0x32d958||(_0x5491c1=_0x32d958['create'](_0x5491c1));for(var _0x523829=void 0x0===_0x23bfe1?_0x5491c1['len']:_0x5491c1['pos']+_0x23bfe1,_0x252786=new _0x25f4e9['Position']();_0x5491c1['pos']<_0x523829;){var _0x21d2ce=_0x5491c1['uint32']();switch(_0x21d2ce>>>0x3){case 0x1:_0x252786['root']=_0x5491c1['string']();break;case 0x2:_0x252786['rootMain']=_0x5491c1['bool']();break;case 0x3:_0x252786['rootGraveyard']=_0x5491c1['bool']();break;case 0x4:if(_0x252786['path']&&_0x252786['path']['length']||(_0x252786['path']=[]),0x2==(0x7&_0x21d2ce)){for(var _0x15ea1d=_0x5491c1['uint32']()+_0x5491c1['pos'];_0x5491c1['pos']<_0x15ea1d;)_0x252786['path']['push'](_0x5491c1['uint32']());}else _0x252786['path']['push'](_0x5491c1['uint32']());break;case 0x5:_0x252786['stickiness']=_0x5491c1['string']();break;default:_0x5491c1['skipType'](0x7&_0x21d2ce);}}return _0x252786;},_0x3d0971['decodeDelimited']=function(_0x39eb65){return _0x39eb65 instanceof _0x32d958||(_0x39eb65=new _0x32d958(_0x39eb65)),this['decode'](_0x39eb65,_0x39eb65['uint32']());},_0x3d0971['verify']=function(_0xf7ff8a){if('object'!=typeof _0xf7ff8a||null===_0xf7ff8a)return'object\x20expected';if(null!=_0xf7ff8a['root']&&_0xf7ff8a['hasOwnProperty']('root')&&!_0x49b5b4['isString'](_0xf7ff8a['root']))return'root:\x20string\x20expected';if(null!=_0xf7ff8a['rootMain']&&_0xf7ff8a['hasOwnProperty']('rootMain')&&'boolean'!=typeof _0xf7ff8a['rootMain'])return'rootMain:\x20boolean\x20expected';if(null!=_0xf7ff8a['rootGraveyard']&&_0xf7ff8a['hasOwnProperty']('rootGraveyard')&&'boolean'!=typeof _0xf7ff8a['rootGraveyard'])return'rootGraveyard:\x20boolean\x20expected';if(null!=_0xf7ff8a['path']&&_0xf7ff8a['hasOwnProperty']('path')){if(!Array['isArray'](_0xf7ff8a['path']))return'path:\x20array\x20expected';for(var _0x49c2a1=0x0;_0x49c2a1<_0xf7ff8a['path']['length'];++_0x49c2a1)if(!_0x49b5b4['isInteger'](_0xf7ff8a['path'][_0x49c2a1]))return'path:\x20integer[]\x20expected';}return null!=_0xf7ff8a['stickiness']&&_0xf7ff8a['hasOwnProperty']('stickiness')&&!_0x49b5b4['isString'](_0xf7ff8a['stickiness'])?'stickiness:\x20string\x20expected':null;},_0x3d0971['fromObject']=function(_0x41e4a4){if(_0x41e4a4 instanceof _0x25f4e9['Position'])return _0x41e4a4;var _0x1fedbf=new _0x25f4e9['Position']();if(null!=_0x41e4a4['root']&&(_0x1fedbf['root']=String(_0x41e4a4['root'])),null!=_0x41e4a4['rootMain']&&(_0x1fedbf['rootMain']=Boolean(_0x41e4a4['rootMain'])),null!=_0x41e4a4['rootGraveyard']&&(_0x1fedbf['rootGraveyard']=Boolean(_0x41e4a4['rootGraveyard'])),_0x41e4a4['path']){if(!Array['isArray'](_0x41e4a4['path']))throw TypeError('.Position.path:\x20array\x20expected');_0x1fedbf['path']=[];for(var _0x49fd8f=0x0;_0x49fd8f<_0x41e4a4['path']['length'];++_0x49fd8f)_0x1fedbf['path'][_0x49fd8f]=_0x41e4a4['path'][_0x49fd8f]>>>0x0;}return null!=_0x41e4a4['stickiness']&&(_0x1fedbf['stickiness']=String(_0x41e4a4['stickiness'])),_0x1fedbf;},_0x3d0971['toObject']=function(_0x174538,_0x3c4db2){_0x3c4db2||(_0x3c4db2={});var _0x168fc7={};if((_0x3c4db2['arrays']||_0x3c4db2['defaults'])&&(_0x168fc7['path']=[]),_0x3c4db2['defaults']&&(_0x168fc7['root']='',_0x168fc7['rootMain']=!0x1,_0x168fc7['rootGraveyard']=!0x1,_0x168fc7['stickiness']=''),null!=_0x174538['root']&&_0x174538['hasOwnProperty']('root')&&(_0x168fc7['root']=_0x174538['root']),null!=_0x174538['rootMain']&&_0x174538['hasOwnProperty']('rootMain')&&(_0x168fc7['rootMain']=_0x174538['rootMain']),null!=_0x174538['rootGraveyard']&&_0x174538['hasOwnProperty']('rootGraveyard')&&(_0x168fc7['rootGraveyard']=_0x174538['rootGraveyard']),_0x174538['path']&&_0x174538['path']['length']){_0x168fc7['path']=[];for(var _0x2bc9ab=0x0;_0x2bc9ab<_0x174538['path']['length'];++_0x2bc9ab)_0x168fc7['path'][_0x2bc9ab]=_0x174538['path'][_0x2bc9ab];}return null!=_0x174538['stickiness']&&_0x174538['hasOwnProperty']('stickiness')&&(_0x168fc7['stickiness']=_0x174538['stickiness']),_0x168fc7;},_0x3d0971['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3d0971['getTypeUrl']=function(_0x3b8ba9){return void 0x0===_0x3b8ba9&&(_0x3b8ba9='type.googleapis.com'),_0x3b8ba9+'/Position';},_0x3d0971;}()),_0x25f4e9['Range']=(function(){function _0x38b0e0(_0x53534a){if(_0x53534a){for(var _0x542323=Object['keys'](_0x53534a),_0x3884a1=0x0;_0x3884a1<_0x542323['length'];++_0x3884a1)null!=_0x53534a[_0x542323[_0x3884a1]]&&(this[_0x542323[_0x3884a1]]=_0x53534a[_0x542323[_0x3884a1]]);}}return _0x38b0e0['prototype']['start']=null,_0x38b0e0['prototype']['end']=null,_0x38b0e0['create']=function(_0x225b72){return new _0x38b0e0(_0x225b72);},_0x38b0e0['encode']=function(_0x5de54f,_0x501686){return _0x501686||(_0x501686=_0x125534['create']()),null!=_0x5de54f['start']&&Object['hasOwnProperty']['call'](_0x5de54f,'start')&&_0x25f4e9['Position']['encode'](_0x5de54f['start'],_0x501686['uint32'](0xa)['fork']())['ldelim'](),null!=_0x5de54f['end']&&Object['hasOwnProperty']['call'](_0x5de54f,'end')&&_0x25f4e9['Position']['encode'](_0x5de54f['end'],_0x501686['uint32'](0x12)['fork']())['ldelim'](),_0x501686;},_0x38b0e0['encodeDelimited']=function(_0x136b55,_0x46e4a9){return this['encode'](_0x136b55,_0x46e4a9)['ldelim']();},_0x38b0e0['decode']=function(_0x2d2566,_0x5be24b){_0x2d2566 instanceof _0x32d958||(_0x2d2566=_0x32d958['create'](_0x2d2566));for(var _0x3bdad8=void 0x0===_0x5be24b?_0x2d2566['len']:_0x2d2566['pos']+_0x5be24b,_0x227844=new _0x25f4e9['Range']();_0x2d2566['pos']<_0x3bdad8;){var _0x1fe83b=_0x2d2566['uint32']();switch(_0x1fe83b>>>0x3){case 0x1:_0x227844['start']=_0x25f4e9['Position']['decode'](_0x2d2566,_0x2d2566['uint32']());break;case 0x2:_0x227844['end']=_0x25f4e9['Position']['decode'](_0x2d2566,_0x2d2566['uint32']());break;default:_0x2d2566['skipType'](0x7&_0x1fe83b);}}return _0x227844;},_0x38b0e0['decodeDelimited']=function(_0x42e04d){return _0x42e04d instanceof _0x32d958||(_0x42e04d=new _0x32d958(_0x42e04d)),this['decode'](_0x42e04d,_0x42e04d['uint32']());},_0x38b0e0['verify']=function(_0x342454){if('object'!=typeof _0x342454||null===_0x342454)return'object\x20expected';var _0xd30058;if(null!=_0x342454['start']&&_0x342454['hasOwnProperty']('start')&&(_0xd30058=_0x25f4e9['Position']['verify'](_0x342454['start'])))return'start.'+_0xd30058;if(null!=_0x342454['end']&&_0x342454['hasOwnProperty']('end')&&(_0xd30058=_0x25f4e9['Position']['verify'](_0x342454['end'])))return'end.'+_0xd30058;return null;},_0x38b0e0['fromObject']=function(_0x2af87c){if(_0x2af87c instanceof _0x25f4e9['Range'])return _0x2af87c;var _0x450021=new _0x25f4e9['Range']();if(null!=_0x2af87c['start']){if('object'!=typeof _0x2af87c['start'])throw TypeError('.Range.start:\x20object\x20expected');_0x450021['start']=_0x25f4e9['Position']['fromObject'](_0x2af87c['start']);}if(null!=_0x2af87c['end']){if('object'!=typeof _0x2af87c['end'])throw TypeError('.Range.end:\x20object\x20expected');_0x450021['end']=_0x25f4e9['Position']['fromObject'](_0x2af87c['end']);}return _0x450021;},_0x38b0e0['toObject']=function(_0x1fed22,_0x557231){_0x557231||(_0x557231={});var _0x2cf740={};return _0x557231['defaults']&&(_0x2cf740['start']=null,_0x2cf740['end']=null),null!=_0x1fed22['start']&&_0x1fed22['hasOwnProperty']('start')&&(_0x2cf740['start']=_0x25f4e9['Position']['toObject'](_0x1fed22['start'],_0x557231)),null!=_0x1fed22['end']&&_0x1fed22['hasOwnProperty']('end')&&(_0x2cf740['end']=_0x25f4e9['Position']['toObject'](_0x1fed22['end'],_0x557231)),_0x2cf740;},_0x38b0e0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x38b0e0['getTypeUrl']=function(_0x8ee8a9){return void 0x0===_0x8ee8a9&&(_0x8ee8a9='type.googleapis.com'),_0x8ee8a9+'/Range';},_0x38b0e0;}()),_0x25f4e9['Element']=(function(){function _0x4d273e(_0x2daa23){if(this['children']=[],this['attributesBoolean']={},_0x2daa23){for(var _0x11636b=Object['keys'](_0x2daa23),_0x4a30ae=0x0;_0x4a30ae<_0x11636b['length'];++_0x4a30ae)null!=_0x2daa23[_0x11636b[_0x4a30ae]]&&(this[_0x11636b[_0x4a30ae]]=_0x2daa23[_0x11636b[_0x4a30ae]]);}}return _0x4d273e['prototype']['name']='',_0x4d273e['prototype']['children']=_0x49b5b4['emptyArray'],_0x4d273e['prototype']['data']='',_0x4d273e['prototype']['attributesBoolean']=_0x49b5b4['emptyObject'],_0x4d273e['prototype']['attributesJson']='',_0x4d273e['create']=function(_0x41377f){return new _0x4d273e(_0x41377f);},_0x4d273e['encode']=function(_0x5a04df,_0x3c5add){if(_0x3c5add||(_0x3c5add=_0x125534['create']()),null!=_0x5a04df['name']&&Object['hasOwnProperty']['call'](_0x5a04df,'name')&&_0x3c5add['uint32'](0xa)['string'](_0x5a04df['name']),null!=_0x5a04df['children']&&_0x5a04df['children']['length']){for(var _0x3d7314=0x0;_0x3d7314<_0x5a04df['children']['length'];++_0x3d7314)_0x25f4e9['Element']['encode'](_0x5a04df['children'][_0x3d7314],_0x3c5add['uint32'](0x12)['fork']())['ldelim']();}if(null!=_0x5a04df['data']&&Object['hasOwnProperty']['call'](_0x5a04df,'data')&&_0x3c5add['uint32'](0x1a)['string'](_0x5a04df['data']),null!=_0x5a04df['attributesBoolean']&&Object['hasOwnProperty']['call'](_0x5a04df,'attributesBoolean')){var _0x21c2f9=Object['keys'](_0x5a04df['attributesBoolean']);for(_0x3d7314=0x0;_0x3d7314<_0x21c2f9['length'];++_0x3d7314)_0x3c5add['uint32'](0x22)['fork']()['uint32'](0xa)['string'](_0x21c2f9[_0x3d7314])['uint32'](0x10)['bool'](_0x5a04df['attributesBoolean'][_0x21c2f9[_0x3d7314]])['ldelim']();}return null!=_0x5a04df['attributesJson']&&Object['hasOwnProperty']['call'](_0x5a04df,'attributesJson')&&_0x3c5add['uint32'](0x2a)['string'](_0x5a04df['attributesJson']),_0x3c5add;},_0x4d273e['encodeDelimited']=function(_0x457b25,_0x3c34a5){return this['encode'](_0x457b25,_0x3c34a5)['ldelim']();},_0x4d273e['decode']=function(_0x140cdd,_0x554bd8){_0x140cdd instanceof _0x32d958||(_0x140cdd=_0x32d958['create'](_0x140cdd));for(var _0x537a9e,_0x2fbac9,_0x401f18=void 0x0===_0x554bd8?_0x140cdd['len']:_0x140cdd['pos']+_0x554bd8,_0x3e09d2=new _0x25f4e9['Element']();_0x140cdd['pos']<_0x401f18;){var _0x7fdc8f=_0x140cdd['uint32']();switch(_0x7fdc8f>>>0x3){case 0x1:_0x3e09d2['name']=_0x140cdd['string']();break;case 0x2:_0x3e09d2['children']&&_0x3e09d2['children']['length']||(_0x3e09d2['children']=[]),_0x3e09d2['children']['push'](_0x25f4e9['Element']['decode'](_0x140cdd,_0x140cdd['uint32']()));break;case 0x3:_0x3e09d2['data']=_0x140cdd['string']();break;case 0x4:_0x3e09d2['attributesBoolean']===_0x49b5b4['emptyObject']&&(_0x3e09d2['attributesBoolean']={});var _0x11a279=_0x140cdd['uint32']()+_0x140cdd['pos'];for(_0x537a9e='',_0x2fbac9=!0x1;_0x140cdd['pos']<_0x11a279;){var _0x18dd6d=_0x140cdd['uint32']();switch(_0x18dd6d>>>0x3){case 0x1:_0x537a9e=_0x140cdd['string']();break;case 0x2:_0x2fbac9=_0x140cdd['bool']();break;default:_0x140cdd['skipType'](0x7&_0x18dd6d);}}_0x3e09d2['attributesBoolean'][_0x537a9e]=_0x2fbac9;break;case 0x5:_0x3e09d2['attributesJson']=_0x140cdd['string']();break;default:_0x140cdd['skipType'](0x7&_0x7fdc8f);}}return _0x3e09d2;},_0x4d273e['decodeDelimited']=function(_0x47e3d4){return _0x47e3d4 instanceof _0x32d958||(_0x47e3d4=new _0x32d958(_0x47e3d4)),this['decode'](_0x47e3d4,_0x47e3d4['uint32']());},_0x4d273e['verify']=function(_0x4b0c5e){if('object'!=typeof _0x4b0c5e||null===_0x4b0c5e)return'object\x20expected';if(null!=_0x4b0c5e['name']&&_0x4b0c5e['hasOwnProperty']('name')&&!_0x49b5b4['isString'](_0x4b0c5e['name']))return'name:\x20string\x20expected';if(null!=_0x4b0c5e['children']&&_0x4b0c5e['hasOwnProperty']('children')){if(!Array['isArray'](_0x4b0c5e['children']))return'children:\x20array\x20expected';for(var _0x255d2b=0x0;_0x255d2b<_0x4b0c5e['children']['length'];++_0x255d2b){var _0x2c62f5=_0x25f4e9['Element']['verify'](_0x4b0c5e['children'][_0x255d2b]);if(_0x2c62f5)return'children.'+_0x2c62f5;}}if(null!=_0x4b0c5e['data']&&_0x4b0c5e['hasOwnProperty']('data')&&!_0x49b5b4['isString'](_0x4b0c5e['data']))return'data:\x20string\x20expected';if(null!=_0x4b0c5e['attributesBoolean']&&_0x4b0c5e['hasOwnProperty']('attributesBoolean')){if(!_0x49b5b4['isObject'](_0x4b0c5e['attributesBoolean']))return'attributesBoolean:\x20object\x20expected';var _0xd8018=Object['keys'](_0x4b0c5e['attributesBoolean']);for(_0x255d2b=0x0;_0x255d2b<_0xd8018['length'];++_0x255d2b)if('boolean'!=typeof _0x4b0c5e['attributesBoolean'][_0xd8018[_0x255d2b]])return'attributesBoolean:\x20boolean{k:string}\x20expected';}return null!=_0x4b0c5e['attributesJson']&&_0x4b0c5e['hasOwnProperty']('attributesJson')&&!_0x49b5b4['isString'](_0x4b0c5e['attributesJson'])?'attributesJson:\x20string\x20expected':null;},_0x4d273e['fromObject']=function(_0x14a053){if(_0x14a053 instanceof _0x25f4e9['Element'])return _0x14a053;var _0x496188=new _0x25f4e9['Element']();if(null!=_0x14a053['name']&&(_0x496188['name']=String(_0x14a053['name'])),_0x14a053['children']){if(!Array['isArray'](_0x14a053['children']))throw TypeError('.Element.children:\x20array\x20expected');_0x496188['children']=[];for(var _0x2d3962=0x0;_0x2d3962<_0x14a053['children']['length'];++_0x2d3962){if('object'!=typeof _0x14a053['children'][_0x2d3962])throw TypeError('.Element.children:\x20object\x20expected');_0x496188['children'][_0x2d3962]=_0x25f4e9['Element']['fromObject'](_0x14a053['children'][_0x2d3962]);}}if(null!=_0x14a053['data']&&(_0x496188['data']=String(_0x14a053['data'])),_0x14a053['attributesBoolean']){if('object'!=typeof _0x14a053['attributesBoolean'])throw TypeError('.Element.attributesBoolean:\x20object\x20expected');_0x496188['attributesBoolean']={};var _0xb97f00=Object['keys'](_0x14a053['attributesBoolean']);for(_0x2d3962=0x0;_0x2d3962<_0xb97f00['length'];++_0x2d3962)_0x496188['attributesBoolean'][_0xb97f00[_0x2d3962]]=Boolean(_0x14a053['attributesBoolean'][_0xb97f00[_0x2d3962]]);}return null!=_0x14a053['attributesJson']&&(_0x496188['attributesJson']=String(_0x14a053['attributesJson'])),_0x496188;},_0x4d273e['toObject']=function(_0x4d265b,_0x46ef66){_0x46ef66||(_0x46ef66={});var _0x22096a,_0xeb0c71={};if((_0x46ef66['arrays']||_0x46ef66['defaults'])&&(_0xeb0c71['children']=[]),(_0x46ef66['objects']||_0x46ef66['defaults'])&&(_0xeb0c71['attributesBoolean']={}),_0x46ef66['defaults']&&(_0xeb0c71['name']='',_0xeb0c71['data']='',_0xeb0c71['attributesJson']=''),null!=_0x4d265b['name']&&_0x4d265b['hasOwnProperty']('name')&&(_0xeb0c71['name']=_0x4d265b['name']),_0x4d265b['children']&&_0x4d265b['children']['length']){_0xeb0c71['children']=[];for(var _0x1d9a16=0x0;_0x1d9a16<_0x4d265b['children']['length'];++_0x1d9a16)_0xeb0c71['children'][_0x1d9a16]=_0x25f4e9['Element']['toObject'](_0x4d265b['children'][_0x1d9a16],_0x46ef66);}if(null!=_0x4d265b['data']&&_0x4d265b['hasOwnProperty']('data')&&(_0xeb0c71['data']=_0x4d265b['data']),_0x4d265b['attributesBoolean']&&(_0x22096a=Object['keys'](_0x4d265b['attributesBoolean']))['length']){_0xeb0c71['attributesBoolean']={};for(_0x1d9a16=0x0;_0x1d9a16<_0x22096a['length'];++_0x1d9a16)_0xeb0c71['attributesBoolean'][_0x22096a[_0x1d9a16]]=_0x4d265b['attributesBoolean'][_0x22096a[_0x1d9a16]];}return null!=_0x4d265b['attributesJson']&&_0x4d265b['hasOwnProperty']('attributesJson')&&(_0xeb0c71['attributesJson']=_0x4d265b['attributesJson']),_0xeb0c71;},_0x4d273e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4d273e['getTypeUrl']=function(_0x55aeef){return void 0x0===_0x55aeef&&(_0x55aeef='type.googleapis.com'),_0x55aeef+'/Element';},_0x4d273e;}()),_0x25f4e9;})());class ProtobufFactory{['_protobufRoot'];constructor(){this['_protobufRoot']=messages;}['getDescriptor'](_0x543ebc){return new ProtobufDescriptor(this['_protobufRoot'][_0x543ebc]);}}class ProtobufDescriptor{['_protobuf'];constructor(_0x22c75e){this['_protobuf']=_0x22c75e;}['compress'](_0x3f48da){const _0x487209=this['_protobuf']['verify'](_0x3f48da);if(_0x487209)throw Error(_0x487209);return this['_protobuf']['encode'](this['_protobuf']['create'](_0x3f48da))['finish']();}['decompress'](_0x515cd1){return this['_protobuf']['toObject'](this['_protobuf']['decode'](_0x515cd1),{'oneofs':!0x0});}}function getPositionShiftedBy(_0xe7c142,_0x532d1c){const _0x350080=cloneDeep(_0xe7c142);return _0x350080['path'][_0x350080['path']['length']-0x1]+=_0x532d1c,_0x350080;}function arePositionsEqual(_0x14b937,_0x586895){return _0x14b937['root']===_0x586895['root']&&isEqual(_0x14b937['path'],_0x586895['path']);}function parsePositionBeforeCompression(_0x4c1b69){_mapPositions(_0x4c1b69,_0x226797=>('main'==_0x226797['root']?(_0x226797['rootMain']=!0x0,delete _0x226797['root']):'$graveyard'==_0x226797['root']&&(_0x226797['rootGraveyard']=!0x0,delete _0x226797['root']),_0x226797));}function parsePositionAfterCompression(_0x2b21ee){_mapPositions(_0x2b21ee,_0x2bc273=>(_0x2bc273['rootMain']?(_0x2bc273['root']='main',delete _0x2bc273['rootMain']):_0x2bc273['rootGraveyard']&&(_0x2bc273['root']='$graveyard',delete _0x2bc273['rootGraveyard']),_0x2bc273));}function _mapPositions(_0x57549f,_0x57f565){for(const _0x531770 in _0x57549f){const _0x37da00=_0x57549f[_0x531770];'nodes'!==_0x531770&&isObject$3(_0x37da00)&&(_0x37da00['path']&&(_0x37da00['root']||_0x37da00['rootMain']||_0x37da00['rootGraveyard'])?_0x57549f[_0x531770]=_0x57f565(_0x37da00):_mapPositions(_0x37da00,_0x57f565));}return _0x57549f;}class OperationCompressor{['_id'];['_operationName'];['_protobufDescriptor'];constructor(_0x5813a9,_0x12db21,_0x2fd4ed){this['_id']=_0x5813a9,this['_operationName']=_0x12db21,this['_protobufDescriptor']=_0x2fd4ed;}['compress'](_0x3c4e5d,_0x35c76e){const _0x286276=_0x35c76e['operations'][_0x35c76e['index']++];return parsePositionBeforeCompression(_0x286276),_0x3c4e5d['buffers']['push'](this['_protobufDescriptor']['compress'](_0x286276)),_0x3c4e5d['types']['push'](this['_id']),!0x0;}['decompress'](_0x9a4ee1,_0x520bee){_0x520bee['typeIndex']++;const _0x295405=_0x520bee['buffers'][_0x520bee['bufferIndex']++],_0x4125d1=this['_protobufDescriptor']['decompress'](_0x295405);parsePositionAfterCompression(_0x4125d1),_0x4125d1['__className']=this['_operationName'],_0x9a4ee1['push'](_0x4125d1);}}class AttributeOperationCompressor extends OperationCompressor{['compress'](_0x1ad680,_0x3c8507){const _0x492977=_0x3c8507['operations'][_0x3c8507['index']++];return this['_serializeOneOf']('oldValue',_0x492977),this['_serializeOneOf']('newValue',_0x492977),parsePositionBeforeCompression(_0x492977),_0x1ad680['buffers']['push'](this['_protobufDescriptor']['compress'](_0x492977)),_0x1ad680['types']['push'](this['_id']),!0x0;}['decompress'](_0x34f3e4,_0x53b67a){_0x53b67a['typeIndex']++;const _0x385989=_0x53b67a['buffers'][_0x53b67a['bufferIndex']++],_0x130107=this['_protobufDescriptor']['decompress'](_0x385989);this['_deserializeOneOf']('oldValue',_0x130107),this['_deserializeOneOf']('newValue',_0x130107),parsePositionAfterCompression(_0x130107),_0x130107['__className']=this['_operationName'],_0x34f3e4['push'](_0x130107);}['_serializeOneOf'](_0xa8c245,_0x5ef257){const _0x23cfaa=_0x5ef257[_0xa8c245];'boolean'==typeof _0x23cfaa?_0x5ef257[_0xa8c245+'Boolean']=_0x23cfaa:_0x5ef257[_0xa8c245+'Json']=JSON['stringify'](_0x23cfaa);}['_deserializeOneOf'](_0x3418f5,_0x2fa543){const _0x243915=_0x3418f5+'Json';_0x2fa543[_0x243915]?(_0x2fa543[_0x3418f5]=JSON['parse'](_0x2fa543[_0x243915]),delete _0x2fa543[_0x243915]):(_0x2fa543[_0x3418f5]=_0x2fa543[_0x3418f5+'Boolean'],delete _0x2fa543[_0x3418f5+'Boolean']);}}class InsertOperationCompressor extends OperationCompressor{['compress'](_0x176aaf,_0x50701e){const _0x47ad27=_0x50701e['operations'][_0x50701e['index']++];return this['_serializeNodesAttributes'](_0x47ad27['nodes']),parsePositionBeforeCompression(_0x47ad27),_0x176aaf['buffers']['push'](this['_protobufDescriptor']['compress'](_0x47ad27)),_0x176aaf['types']['push'](this['_id']),!0x0;}['decompress'](_0x119891,_0x56f6c3){_0x56f6c3['typeIndex']++;const _0x59d947=_0x56f6c3['buffers'][_0x56f6c3['bufferIndex']++],_0x3326e3=this['_protobufDescriptor']['decompress'](_0x59d947);_0x3326e3['nodes']||(_0x3326e3['nodes']=[]),this['_deserializeNodesAttributes'](_0x3326e3['nodes']),parsePositionAfterCompression(_0x3326e3),_0x3326e3['__className']=this['_operationName'],_0x119891['push'](_0x3326e3);}['_serializeNodesAttributes'](_0x4dd5c8){for(const _0x17468b of _0x4dd5c8){if(_0x17468b['attributes']){const _0x19863e=_0x17468b['attributes'];this['_areValuesBoolean'](_0x19863e)?_0x17468b['attributesBoolean']=_0x19863e:_0x17468b['attributesJson']=JSON['stringify'](_0x19863e);}_0x17468b['children']&&this['_serializeNodesAttributes'](_0x17468b['children']);}}['_deserializeNodesAttributes'](_0x3e5cf3){for(const _0xba943d of _0x3e5cf3)(_0xba943d['attributesBoolean']||_0xba943d['attributesJson'])&&(_0xba943d['attributesBoolean']?(_0xba943d['attributes']=_0xba943d['attributesBoolean'],delete _0xba943d['attributesBoolean']):(_0xba943d['attributes']=JSON['parse'](_0xba943d['attributesJson']),delete _0xba943d['attributesJson'])),_0xba943d['children']&&this['_deserializeNodesAttributes'](_0xba943d['children']);}['_areValuesBoolean'](_0x557c85){return Object['keys'](_0x557c85)['every'](_0x59efed=>'boolean'==typeof _0x557c85[_0x59efed]);}}class MarkerOperationCompressor extends OperationCompressor{['decompress'](_0x4cb8a2,_0x5f0ac2){super['decompress'](_0x4cb8a2,_0x5f0ac2);const _0x24e80d=_0x4cb8a2[_0x4cb8a2['length']-0x1];_0x24e80d['oldRange']||(_0x24e80d['oldRange']=null),_0x24e80d['newRange']||(_0x24e80d['newRange']=null);}}class NoOperationCompressor extends OperationCompressor{['compress'](_0xf3997d,_0x2e17a4){return _0x2e17a4['index']++,_0xf3997d['types']['push'](this['_id']),!0x0;}['decompress'](_0x534928,_0x3d094d){_0x3d094d['typeIndex']++,_0x534928['push']({'__className':this['_operationName']});}}class AnnotationMarkerOperationCompressor extends MarkerOperationCompressor{['_omittedNamespace'];constructor(_0x213f0a,_0xf983d,_0x5f4389,_0x4f3297){super(_0x213f0a,_0xf983d,_0x5f4389),this['_omittedNamespace']=_0x4f3297+':';}['compress'](_0xa1d55a,_0x46ec64){const _0x385f33=_0x46ec64['operations'][_0x46ec64['index']];return!('MarkerOperation'!=_0x385f33['__className']||!_0x385f33['name']['startsWith'](this['_omittedNamespace']))&&(_0x385f33['name']=_0x385f33['name']['replace'](new RegExp('^'+this['_omittedNamespace']),''),super['compress'](_0xa1d55a,_0x46ec64),!0x0);}['decompress'](_0x48068f,_0x2b1ef1){super['decompress'](_0x48068f,_0x2b1ef1);const _0x117407=_0x48068f[_0x48068f['length']-0x1];_0x117407['name']=this['_omittedNamespace']+_0x117407['name'];}}class ActionCompressor{['_id'];['_context'];constructor(_0x2777d5,_0x4532a0){this['_id']=_0x2777d5,this['_context']=_0x4532a0;}['compress'](_0x2cc1b1,_0x5cc712){let _0x11b2d0,_0x5508a8=_0x5cc712['operations'][_0x5cc712['index']],_0x2ddb27=_0x5cc712['operations'][_0x5cc712['index']+0x1];for(;_0x2ddb27&&this['_compareOperations'](_0x5508a8,_0x2ddb27);)_0x11b2d0?(_0x11b2d0=this['_combineNext'](_0x5508a8,_0x11b2d0),_0x2cc1b1['types']['push'](0x0)):(_0x11b2d0=cloneDeep(_0x5508a8),_0x2cc1b1['types']['push'](this['_id'])),_0x5cc712['index']++,_0x5508a8=_0x5cc712['operations'][_0x5cc712['index']],_0x2ddb27=_0x5cc712['operations'][_0x5cc712['index']+0x1];return!!_0x11b2d0&&(_0x11b2d0=this['_combineNext'](_0x5cc712['operations'][_0x5cc712['index']++],_0x11b2d0),_0x2cc1b1['types']['push'](0x0),_0x2cc1b1['buffers']['push'](this['_compressSingleOperation'](_0x11b2d0)),!0x0);}['decompress'](_0x9627f4,_0x2c5181){const _0x76515b=this['_decompressSingleOperation'](_0x2c5181);for(;0x0==_0x2c5181['types'][_0x2c5181['typeIndex']];)_0x2c5181['typeIndex']++,_0x9627f4['push'](this['_splitCurrent'](_0x76515b));_0x9627f4['push'](_0x76515b);}}class TypingActionCompressor extends ActionCompressor{['_combineNext'](_0x37b408,_0x43efcd){return _0x43efcd['nodes'][0x0]['data']+=_0x37b408['nodes'][0x0]['data'],_0x43efcd;}['_splitCurrent'](_0x3937d3){const _0x3f65bf=cloneDeep(_0x3937d3),_0x4ae908=_0x3f65bf['nodes'][0x0],_0x3103df=_0x3937d3['nodes'][0x0],_0x578f6a=_0x3103df['data'][Symbol['iterator']]()['next']()['value'],_0x2b36af=_0x578f6a['length'];return _0x4ae908['data']=_0x578f6a,_0x3103df['data']=_0x3103df['data']['substr'](_0x2b36af),_0x3937d3['position']=getPositionShiftedBy(_0x3937d3['position'],_0x2b36af),_0x3f65bf;}['_compareOperations'](_0x4066be,_0x5e0e97){if(this['_checkOperation'](_0x4066be)&&this['_checkOperation'](_0x5e0e97)){const _0x504d80=_0x4066be['nodes'][0x0]['data']['length'],_0x2ede9a=arePositionsEqual(getPositionShiftedBy(_0x4066be['position'],_0x504d80),_0x5e0e97['position']),_0xae639d=_0x4066be['nodes'][0x0],_0x11d088=_0x5e0e97['nodes'][0x0];return _0x2ede9a&&this['_compareAttributes'](_0xae639d,_0x11d088);}return!0x1;}['_compressSingleOperation'](_0x44fc31){const _0x158741={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('InsertOperation')['compress'](_0x158741,{'operations':[_0x44fc31],'index':0x0}),_0x158741['buffers'][0x0];}['_decompressSingleOperation'](_0x465dd1){const _0x498132=[];return this['_context']['_getCompressorByName']('InsertOperation')['decompress'](_0x498132,_0x465dd1),_0x498132[0x0];}['_checkOperation'](_0x23e2f3){return'InsertOperation'==_0x23e2f3['__className']&&0x1==_0x23e2f3['nodes']['length']&&_0x23e2f3['nodes'][0x0]['data']&&!_0x23e2f3['wasUndone']&&0x1==Array['from'](_0x23e2f3['nodes'][0x0]['data'])['length'];}['_compareAttributes'](_0x475d3e,_0x3825d4){const _0x3bd62b=Object['keys'](_0x475d3e['attributes']||{}),_0x3161ea=Object['keys'](_0x3825d4['attributes']||{});return _0x3bd62b['length']===_0x3161ea['length']&&_0x3bd62b['every'](_0x55f16b=>_0x3825d4['attributes'][_0x55f16b]&&_0x3825d4['attributes'][_0x55f16b]===_0x475d3e['attributes'][_0x55f16b]);}}class DeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x44cb6d,_0x56273b){return _0x56273b['howMany']++,_0x56273b['sourcePosition']=cloneDeep(_0x44cb6d['sourcePosition']),_0x56273b;}['_splitCurrent'](_0x2ccdfc){const _0x3b621d=cloneDeep(_0x2ccdfc);return _0x2ccdfc['howMany']--,_0x3b621d['howMany']=0x1,_0x3b621d['sourcePosition']=getPositionShiftedBy(_0x3b621d['sourcePosition'],_0x2ccdfc['howMany']),_0x3b621d;}['_compareOperations'](_0x379af1,_0x5ce128){return!(!this['_checkOperation'](_0x379af1)||!this['_checkOperation'](_0x5ce128))&&(arePositionsEqual(getPositionShiftedBy(_0x379af1['sourcePosition'],-0x1),_0x5ce128['sourcePosition'])&&arePositionsEqual(_0x379af1['targetPosition'],_0x5ce128['targetPosition']));}['_compressSingleOperation'](_0x2b40cb){const _0xadada6={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0xadada6,{'operations':[_0x2b40cb],'index':0x0}),_0xadada6['buffers'][0x0];}['_decompressSingleOperation'](_0x5f7985){const _0x3606de=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x3606de,_0x5f7985),_0x3606de[0x0];}['_checkOperation'](_0x9faf2){return'MoveOperation'==_0x9faf2['__className']&&'$graveyard'==_0x9faf2['targetPosition']['root']&&0x1==_0x9faf2['howMany']&&!_0x9faf2['wasUndone'];}}class ForwardDeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x5090bc,_0x2bd430){return _0x2bd430['howMany']++,_0x2bd430;}['_splitCurrent'](_0x539835){const _0x363dcd=cloneDeep(_0x539835);return _0x363dcd['howMany']=0x1,_0x539835['howMany']--,_0x363dcd;}['_compareOperations'](_0x383a21,_0x460fbb){return!(!this['_checkOperation'](_0x383a21)||!this['_checkOperation'](_0x460fbb))&&(arePositionsEqual(_0x383a21['sourcePosition'],_0x460fbb['sourcePosition'])&&arePositionsEqual(_0x383a21['targetPosition'],_0x460fbb['targetPosition']));}['_compressSingleOperation'](_0x128f49){const _0x3dbf9c={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x3dbf9c,{'operations':[_0x128f49],'index':0x0}),_0x3dbf9c['buffers'][0x0];}['_decompressSingleOperation'](_0x57e194){const _0x9baa87=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x9baa87,_0x57e194),_0x9baa87[0x0];}['_checkOperation'](_0x295b5e){return'MoveOperation'==_0x295b5e['__className']&&'$graveyard'==_0x295b5e['targetPosition']['root']&&0x1==_0x295b5e['howMany']&&!_0x295b5e['wasUndone'];}}class UserSelectionActionCompressor extends ActionCompressor{['compress'](_0x49254e,_0x4daaa2){if(!this['_compareOperations'](_0x4daaa2['operations'][_0x4daaa2['index']],_0x4daaa2['operations'][_0x4daaa2['index']+0x1]))return!0x1;const _0x56d880=_0x4daaa2['operations'][_0x4daaa2['index']++];return _0x56d880['oldRange']=null,_0x56d880['newRange']&&arePositionsEqual(_0x56d880['newRange']['start'],_0x56d880['newRange']['end'])&&(_0x56d880['newRange']['end']=null),_0x4daaa2['index']++,_0x49254e['types']['push'](this['_id']),_0x49254e['types']['push'](0x0),_0x49254e['buffers']['push'](this['_compressSingleOperation'](_0x56d880)),!0x0;}['decompress'](_0x22c6aa,_0x255c2d){const _0x3790f7=this['_decompressSingleOperation'](_0x255c2d);_0x3790f7['newRange']&&!_0x3790f7['newRange']['end']&&(_0x3790f7['newRange']['end']=cloneDeep(_0x3790f7['newRange']['start']));const _0x155c9f=cloneDeep(_0x3790f7);_0x155c9f['newRange']&&(_0x155c9f['newRange']['start']['stickiness']='toNone',_0x155c9f['newRange']['end']=cloneDeep(_0x155c9f['newRange']['start'])),_0x155c9f['name']='user:position:'+_0x155c9f['name']['split'](':')[0x2],_0x255c2d['typeIndex']++,_0x22c6aa['push'](_0x3790f7),_0x22c6aa['push'](_0x155c9f);}['_compressSingleOperation'](_0xdd3ed9){const _0x410363={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MarkerOperation')['compress'](_0x410363,{'operations':[_0xdd3ed9],'index':0x0}),_0x410363['buffers'][0x0];}['_decompressSingleOperation'](_0x1d1d45){const _0x8522a8=[];return this['_context']['_getCompressorByName']('MarkerOperation')['decompress'](_0x8522a8,_0x1d1d45),_0x8522a8[0x0];}['_compareOperations'](_0x343458,_0x16db20){return!(!_0x343458||!_0x16db20)&&('MarkerOperation'==_0x343458['__className']&&'MarkerOperation'==_0x16db20['__className']&&!(!_0x343458['name']['startsWith']('user:')||!_0x16db20['name']['startsWith']('user:')||_0x343458['name']==_0x16db20['name']));}}class Compressor{['_compressorById'];['_compressorByName'];['_protobufFactory'];constructor(){this['_compressorById']=new Map(),this['_compressorByName']=new Map(),this['_protobufFactory']=new ProtobufFactory();const _0x5016c6=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',_0x5016c6,'comment')),this['_registerCompressor'](0x13,'SuggestionMarkerOperation',new AnnotationMarkerOperationCompressor(0x13,'MarkerOperation',_0x5016c6,'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'](_0x3c582e){if(!_0x3c582e||!_0x3c582e[0x0])throw new CKEditorError('no-operations-provided',this);const _0x3afa1d={'operations':_0x3c582e,'index':0x0},_0x3b7d33={'types':[],'buffers':[],'baseVersion':_0x3c582e[0x0]['baseVersion']};for(;_0x3afa1d['index']<_0x3afa1d['operations']['length'];){if(this['_getCompressorByName']('UserSelectionAction')['compress'](_0x3b7d33,_0x3afa1d))continue;if(this['_getCompressorByName']('TypingAction')['compress'](_0x3b7d33,_0x3afa1d))continue;if(this['_getCompressorByName']('DeletingAction')['compress'](_0x3b7d33,_0x3afa1d))continue;if(this['_getCompressorByName']('ForwardDeletingAction')['compress'](_0x3b7d33,_0x3afa1d))continue;if(this['_getCompressorByName']('CommentMarkerOperation')['compress'](_0x3b7d33,_0x3afa1d))continue;if(this['_getCompressorByName']('SuggestionMarkerOperation')['compress'](_0x3b7d33,_0x3afa1d))continue;const _0x27e26c=_0x3afa1d['operations'][_0x3afa1d['index']]['__className'];this['_getCompressorByName'](_0x27e26c)['compress'](_0x3b7d33,_0x3afa1d);}return _0x3b7d33;}['decompress'](_0x34fdf0){const _0x901b00=[],_0x50e2bc={'types':_0x34fdf0['types'],'buffers':_0x34fdf0['buffers'],'baseVersion':_0x34fdf0['baseVersion'],'typeIndex':0x0,'bufferIndex':0x0};for(;_0x50e2bc['typeIndex']<_0x50e2bc['types']['length'];){const _0x2ce1c3=_0x50e2bc['types'][_0x50e2bc['typeIndex']],_0x3c4545=this['_compressorById']['get'](_0x2ce1c3);if(!_0x3c4545)throw new CKEditorError('decompress-compressor-not-found',this,{'type':_0x2ce1c3});_0x3c4545['decompress'](_0x901b00,_0x50e2bc);}return _0x901b00['forEach']((_0x1c2841,_0x588799)=>_0x1c2841['baseVersion']=_0x34fdf0['baseVersion']+_0x588799),_0x901b00;}['_getCompressorByName'](_0x37c1eb){return this['_compressorByName']['get'](_0x37c1eb);}['_registerOperationCompressor'](_0x944a79,_0x5afd4d,_0x410a16){const _0x36dca3=new _0x410a16(_0x944a79,_0x5afd4d,this['_protobufFactory']['getDescriptor'](_0x5afd4d));this['_registerCompressor'](_0x944a79,_0x5afd4d,_0x36dca3);}['_registerActionCompressor'](_0x327cee,_0x3f5d60,_0x4bdb71){const _0x37f016=new _0x4bdb71(_0x327cee,this);this['_registerCompressor'](_0x327cee,_0x3f5d60,_0x37f016);}['_registerCompressor'](_0x3f33c0,_0x3da914,_0x2befbf){this['_compressorById']['set'](_0x3f33c0,_0x2befbf),this['_compressorByName']['set'](_0x3da914,_0x2befbf);}}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 _0x1f63bf=this['serverHistory']['getOperations']();for(let _0x4fad74=_0x1f63bf['length']-0x1;_0x4fad74>=0x0;_0x4fad74--){const _0x2f02b1=_0x1f63bf[_0x4fad74];if(!this['_disconnectionOperations']['has'](_0x2f02b1))return _0x2f02b1['baseVersion']+0x1-this['_offset'];}return 0x0;}constructor(_0x1374e5){if(super(_0x1374e5),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 _0x40e782=_0x1374e5['config']['get']('cloudServices.bundleVersion')||_0xc2c9c;this['_service']=new RealTimeCollaborationClient['CollaborativeEditingService'](_0x40e782,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 _0x2c0363=this['editor'],_0x4d8f2a=_0x2c0363['plugins']['get'](Users),_0x153e98=_0x2c0363['plugins']['get'](WebSocketGateway);this['listenTo'](_0x4d8f2a,'getOperationAuthor',(_0x397814,_0x4c246e)=>{const _0x398b27=_0x4c246e[0x0];_0x398b27['_authorId']&&(_0x397814['return']=_0x4d8f2a['getUser'](_0x398b27['_authorId']),_0x397814['stop']()),null===_0x398b27['_authorId']&&(_0x397814['return']=null,_0x397814['stop']());},{'priority':'high'}),this['listenTo'](_0x2c0363['model']['document']['selection'],'change:range',(_0x3e52b6,_0x211316)=>{_0x211316['directChange']&&this['_refreshUserSelectionMarkers']();}),this['listenTo'](_0x2c0363['editing']['view'],'change:hasDomSelection',()=>{this['_refreshUserSelectionMarkers']();}),this['_initThrowingOnDataSet'](),_0x2c0363['model']['on']('applyOperation',(_0x2672bb,_0x8ec0de)=>{const _0x1ae40a=_0x8ec0de[0x0];_0x1ae40a['isDocumentOperation']&&(this['_saveOperationInBuffer'](_0x1ae40a),this['_shouldSendUpdate']()&&this['_sendBufferedOperationsDelayed']());}),this['_setUpDataInit'](),this['bind']('_isEditingAllowed')['to'](_0x153e98,'state',this,'_hasSynchronizationProblem',(_0x37d785,_0x4f5b6e)=>'connected'===_0x37d785&&!_0x4f5b6e),this['on']('change:_isEditingAllowed',()=>{this['_isEditingAllowed']?_0x2c0363['disableReadOnlyMode']('rtc-offline'):_0x2c0363['enableReadOnlyMode']('rtc-offline');}),this['_isEditingAllowed']?_0x2c0363['disableReadOnlyMode']('rtc-offline'):_0x2c0363['enableReadOnlyMode']('rtc-offline'),this['set']('_isConnected',!0x1);}async['reconnect'](){const _0x29a417=this['editor']['plugins']['get'](Sessions),_0x247607=this['editor']['plugins']['get'](WebSocketGateway);try{this['_isPendingUpdate']=!0x0,_0x29a417['unregister'](this['_channelId']);const _0x4ae7fc=await this['_service']['reconnect'](_0x247607['connection'],this['lastSyncVersion']);await this['_handleReconnectionResponse'](_0x4ae7fc)&&(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());const _0x32c69c=await this['_service']['getConnectedSessions']();_0x29a417['register'](this['_channelId'],_0x32c69c),this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}catch(_0xa6d878){if(isSessionNotExistingError(_0xa6d878)&&this['sessionId'])await this['_connectAfterSessionHasBeenFlushed']();else{if(isBaseVersionMismatchError(_0xa6d878)){const _0x370985=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'](_0x370985);}else{if(!(_0xa6d878 instanceof ReconnectionError))throw _0xa6d878;this['_handleReconnectionError']();}}}}['destroy'](){const _0x4b36c9=this['editor']['plugins']['get'](WebSocketGateway),_0x319712=this['editor']['plugins']['get'](Sessions);this['editor']['enableReadOnlyMode']('rtc-destroyed'),_0x319712['channelSessions']['has'](this['_channelId'])&&_0x319712['unregister'](this['_channelId']),_0x4b36c9['removeFromReconnectionStack'](this),this['_disconnectService'](),super['destroy']();}async['_handleReconnectionResponse'](_0x262c5a){if(this['sessionId']!==_0x262c5a['sessionId']&&this['_lastSyncedOperationId']!==_0x262c5a['lastOperationId'])throw new ReconnectionError();return this['sessionId']=_0x262c5a['sessionId'],this['_handleServerResponse']([],{..._0x262c5a,'wereChangesApplied':!0x1,'data':_0x262c5a['data']},'reconnect');}async['_connectService'](_0x123fcd,_0x30eb92=!0x1){const {connection:_0x363b4f}=this['editor']['plugins']['get'](WebSocketGateway);RealTimeCollaborationClient['CollaborativeEditingService']['getConnectedSessions'](_0x363b4f,this['_channelId'])['then'](_0x2e944c=>this['_initSessionsHandling'](_0x2e944c))['catch'](_0x6e8278=>{this['_crash']('realtimecollaborationclient-init-session-connection-error',_0x6e8278);}),this['listenTo'](this['_service'],'operationsReceived',this['_handleReceivedOperations']['bind'](this)),this['listenTo'](this['_service'],'error',(_0x212da5,_0x17eac5)=>{this['_crash']('realtimecollaborationclient-init-service-internal-error',_0x17eac5);}),this['listenTo'](this['_service'],'disconnected',()=>{this['_isConnected']=!0x1;});const _0xc5de81=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x123fcd);this['_isPendingUpdate']=!0x0;const _0x3c752c=await this['_service']['connect'](_0x363b4f,this['_compressOperations'](_0x123fcd),_0xc5de81);if(this['sessionId']=_0x3c752c['sessionId'],_0x30eb92){if(!_0x3c752c['wereChangesApplied'])return void this['_handleReconnectionError']();this['_isPendingUpdate']=!0x1,this['_clearPendingAction'](),this['serverHistory']['reset'](),this['_offset']=_0x3c752c['offset'],this['serverHistory']['version']=this['_offset'],await this['_handleServerResponse'](_0x123fcd,_0x3c752c,'reconnection:\x20flushed\x20session');}else await this['_handleInitialConnectionData'](_0x3c752c,_0x123fcd);this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}['_handleSendingSelectionMarkers'](){const _0x39a5c5=this['editor']['plugins']['get'](Sessions),_0xcb4258=this['editor']['plugins']['get'](UserMarkers),_0x4f2c75=_0x39a5c5['channelSessions']['get'](this['_channelId']);_0x4f2c75&&_0x4f2c75['length']>0x1?_0xcb4258['createUserMarkerOperations']():this['listenTo'](_0x39a5c5,'sessionAdd:'+this['_channelId'],()=>{0x2===_0x39a5c5['channelSessions']['get'](this['_channelId'])['length']&&_0xcb4258['createUserMarkerOperations']();});}async['_handleReceivedOperations'](_0x30e21b,_0x185a96,_0x326b02,_0x579409){if(!this['_isPendingUpdate']&&this['_document']['version']==_0x185a96){const _0x40b60c=this['_decompressOperations'](_0x326b02,_0x579409);await this['_fetchMissingUsers'](_0x40b60c),this['_handleExternalOperations'](_0x40b60c,_0x185a96,_0x326b02['lastOperationId'])||this['_crash']('realtimecollaborationclient-init-service-incorrect-server-operation');}}async['_connectAfterSessionHasBeenFlushed'](){this['_disconnectService']();const {locale:_0x130467}=this['editor'];let _0x36aab5;try{_0x36aab5=await this['_service']['getDocumentDetails']();}catch{const _0x5b0218=getTranslation$6(_0x130467,'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'](_0x5b0218);}const _0x305414=_0x36aab5['currentDocumentSession']||_0x36aab5['lastDocumentSession'];if(this['_lastSyncedOperationId']!==_0x305414['lastOperationId']){const _0x47c1b1=getTranslation$6(_0x130467,'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'](_0x47c1b1);}await this['_connectService'](this['editor']['model']['document']['history']['getOperations'](),!0x0);}['_disconnectService'](){this['_service']['disconnect'](),this['_bufferedOperations']=[],clearTimeout(this['_sendBufferedOperationsDelayId']),this['stopListening'](this['_service']);}['_initSessionsHandling'](_0x513e49){const _0x16d5fd=this['editor']['plugins']['get'](Sessions);this['listenTo'](_0x16d5fd,'sessionAdd:'+this['_channelId'],(_0x576113,{session:_0x503c4f})=>{if(_0x503c4f['id']===_0x16d5fd['mySessionId']){_0x576113['off']();const _0x360d4f=this['editor']['plugins']['has']('CommentsOnly')&&this['editor']['plugins']['get']('CommentsOnly');let _0x39a3be=_0x503c4f['permissions'];_0x360d4f&&_0x360d4f['isEnabled']&&(_0x39a3be=_0x39a3be['filter'](_0xf888e=>'document:write'!==_0xf888e)),this['editor']['plugins']['get']('Permissions')['setPermissions'](_0x39a3be,this['_channelId']);}}),_0x16d5fd['register'](this['_channelId'],_0x513e49);}['_initThrowingOnDataSet'](){const _0x4142bd=this['editor']['data']['set'];this['editor']['data']['set']=(..._0x7ba421)=>{if(!_0x7ba421[_0x7ba421['length']-0x1]['suppressErrorInCollaboration'])throw new CKEditorError('realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration',this);_0x4142bd['apply'](this['editor']['data'],_0x7ba421);};}['_setUpDataInit'](){this['editor']['data']['on']('init',(_0x11e68d,[_0x5bf1a1])=>{if(this['_document']['version'])throw new CKEditorError('realtimecollaborationclient-init-document-already-initialized',this);_0x11e68d['stop'](),this['_setPendingAction']();const _0x3124ca=this['editor']['config']['get']('rootsAttributes'),_0x4a1592=this['_getOperationsFromInitData'](_0x5bf1a1,_0x3124ca);0x0==_0x4a1592['length']&&_0x4a1592['push'](new NoOperation(0x0)),_0x11e68d['return']=this['_connectService'](_0x4a1592)['then'](()=>{this['editor']['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),this['editor']['data']['fire']('ready');})['catch'](_0x3b66db=>this['_crash']('realtimecollaborationclient-init-connection-failed',_0x3b66db))['finally'](()=>this['_clearPendingAction']());},{'priority':'high'}),this['editor']['on']('loadRoot',async(_0x51dfa1,[_0x5bb788,_0x5c1e46])=>{_0x51dfa1['stop']();const _0x4cde0c=this['editor']['model']['document']['getRoot'](_0x5bb788);if(!this['_knownRootNames']['has'](_0x5bb788)){const _0x502ed2=_0x5c1e46&&_0x5c1e46['data']?_0x5c1e46['data']:'',_0x1d2d07=_0x5c1e46&&_0x5c1e46['attributes']?_0x5c1e46['attributes']:{};await this['_loadRoot'](_0x5bb788,_0x502ed2,_0x1d2d07);}this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4cde0c['_isLoaded']=!0x0,this['editor']['model']['document']['differ']['_bufferRootLoad'](_0x4cde0c);});},{'priority':'high'});}async['_fetchMissingUsers'](_0x3e8cb1){const _0xd0eea8=this['editor']['plugins']['get'](Users),{connection:_0x30f2a1}=this['editor']['plugins']['get'](WebSocketGateway),_0x280fd5=new Set();for(const _0xbc44f9 of _0x3e8cb1){const _0x3a0c93=_0xbc44f9['_authorId'];_0x3a0c93&&!_0xd0eea8['getUser'](_0x3a0c93)&&_0x280fd5['add'](_0x3a0c93);}if(0x0===_0x280fd5['size'])return;const _0x3e3c0a=await User['getMany'](_0x30f2a1,Array['from'](_0x280fd5));for(const _0x210a86 of _0x3e3c0a)_0xd0eea8['getUser'](_0x210a86['id'])||_0xd0eea8['addUser'](_0x210a86);}['_getOperationsFromInitData'](_0x1f7e85,_0x261257={}){const _0x1a876f=this['editor']['model'],_0x4fd3dc=[];let _0xf0cea7=0x0;const _0x31160e='string'==typeof _0x1f7e85?{'main':_0x1f7e85}:_0x1f7e85;for(const _0xf8877b of Object['keys'](_0x31160e)){if(!this['_document']['roots']['has'](_0xf8877b))throw new CKEditorError('realtimecollaborationclient-init-non-existent-root',this);const _0x1b421c=this['editor']['data']['parse'](_0x31160e[_0xf8877b]),_0x5db446=this['_document']['getRoot'](_0xf8877b),_0x29c6a4=new InsertOperation(_0x1a876f['createPositionAt'](_0x5db446,0x0),_0x1b421c,_0xf0cea7++);_0x4fd3dc['push'](_0x29c6a4);for(const [_0x3aedd6,_0x980912]of _0x1b421c['markers']){const _0x576ee9=_0x1a876f['createRange'](_0x1a876f['createPositionFromPath'](_0x5db446,_0x980912['start']['path']['slice']()),_0x1a876f['createPositionFromPath'](_0x5db446,_0x980912['end']['path']['slice']())),_0x28bb39=new MarkerOperation(_0x3aedd6,null,_0x576ee9,_0x1a876f['markers'],!0x0,_0xf0cea7++);_0x4fd3dc['push'](_0x28bb39);}}if(_0x261257)for(const [_0x3e9691,_0x4d0d2d]of Object['entries'](_0x261257)){const _0x334d7d=_0x1a876f['document']['getRoot'](_0x3e9691);if(!_0x334d7d)throw new CKEditorError('multi-root-editor-root-attributes-no-root',null);for(const [_0x5565da,_0x438b48]of Object['entries'](_0x4d0d2d))if(null!==_0x438b48){const _0x38c91d=new RootAttributeOperation(_0x334d7d,_0x5565da,null,_0x438b48,_0xf0cea7++);_0x4fd3dc['push'](_0x38c91d);}}return _0x4fd3dc;}async['_loadRoot'](_0x264c87,_0x466aa4,_0x22a722){this['_getOperationsFromInitData']({[_0x264c87]:_0x466aa4},{[_0x264c87]:_0x22a722})['forEach']((_0x2230ec,_0x38f249)=>{_0x2230ec['baseVersion']=this['_document']['version']+_0x38f249,_0x2230ec['_isInit']=!0x0,this['_saveOperationInBuffer'](_0x2230ec);}),this['_sendBufferedOperationsDelayed'](),await this['_waitUntilSynced']();}async['_handleInitialConnectionData'](_0x7d4236,_0x540933){let _0x108cd4;this['_offset']=_0x7d4236['offset'];const _0x2c48cc=_0x7d4236['wereChangesApplied']&&!_0x7d4236['initData'],_0xf0409=_0x2c48cc?0x0:_0x7d4236['data']['baseVersion'];if(_0x540933['forEach'](_0x4339f7=>{_0x4339f7['_isInit']=!0x0,_0x4339f7['createdAt']=_0x7d4236['sessionCreatedAt'],_0x4339f7['_authorId']=null;}),_0x2c48cc)_0x108cd4=_0x540933,this['_applyOperationsSet'](_0x108cd4,_0x2c48cc);else{if(_0x7d4236['initData']){const _0x212e9a=this['_getOperationsFromInitData'](_0x7d4236['initData']);this['_document']['history']['version']=-_0x212e9a['length'],_0x212e9a['forEach'](_0x4b7a8e=>{_0x4b7a8e['baseVersion']-=_0x212e9a['length'],_0x4b7a8e['createdAt']=_0x7d4236['sessionCreatedAt'],_0x4b7a8e['_isInit']=!0x0,_0x4b7a8e['_authorId']=null;}),this['_applyOperationsSet'](_0x212e9a,!0x0),this['serverHistory']['version']=-_0x212e9a['length']+this['_offset'],this['_updateServerHistory'](_0x212e9a);}this['_document']['history']['version']=_0xf0409,_0x108cd4=this['_decompressOperations'](_0x7d4236['data'],_0x7d4236['metadata']),await this['_fetchMissingUsers'](_0x108cd4),this['_applyOperationsSet'](_0x108cd4,_0x2c48cc);}_0x7d4236['lastOperationId']&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x108cd4,_0x7d4236['lastOperationId']),this['_lastSyncedOperationId']=_0x7d4236['lastOperationId']),this['serverHistory']['version']=_0xf0409+this['_offset'],this['_updateServerHistory'](_0x108cd4),_0x540933['filter'](_0x5d80ce=>{const _0x542ece=this['_getAffectedRoot'](_0x5d80ce);return _0x542ece&&!this['_knownRootNames']['has'](_0x542ece);})['forEach']((_0x1e78c3,_0x46cfff)=>{_0x1e78c3['baseVersion']=this['_document']['version']+_0x46cfff,this['_saveOperationInBuffer'](_0x1e78c3);}),this['_shouldSendUpdate']()?(this['_currentBufferDelay']=0x0,this['_sendBufferedOperationsDelayed'](!0x0),await this['_waitUntilSynced']()):(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());}['_crash'](_0x1bd5b1,_0x451b9f){const _0x5520da=_0x451b9f&&_0x451b9f['message'];if(_0x5520da&&_0x5520da['startsWith']('realtimecollaborationclient'))throw _0x451b9f;const _0x683c3c=this['editor']['plugins']['get'](WebSocketGateway);throw this['_isPendingUpdate']=!0x0,_0x683c3c['disconnect'](),this['editor']['enableReadOnlyMode']('realtimecollaborationclient-error'),new CKEditorError(_0x1bd5b1,this['editor'],_0x5520da?{'originalError':_0x5520da}:void 0x0);}['_saveOperationInBuffer'](_0x1d831f){this['_knownOperations']['has'](_0x1d831f)||(this['_knownOperations']['add'](_0x1d831f),this['_bufferedOperations']['push'](_0x1d831f),this['_pendingAction']||'marker'==_0x1d831f['type']&&!_0x1d831f['affectsData']||this['_setPendingAction']());}['_sendBufferedOperationsDelayed'](_0xab547c=!0x1){!_0xab547c&&this['_isPendingUpdate']||(this['_isPendingUpdate']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_sendBufferedOperationsDelayId']=setTimeout(()=>{this['_sendBufferedOperations']()['then'](_0x3bdec2=>{_0x3bdec2&&(this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1);})['catch'](_0x2ba280=>{this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1,isDisconnectionError$3(_0x2ba280)||this['_crash'](_0x2ba280['message'],_0x2ba280);});},this['_currentBufferDelay']));}['_waitUntilSynced'](){return new Promise(_0x4abb28=>{this['on']('change:_isPendingUpdate',()=>{_0x4abb28();});});}async['_sendBufferedOperations'](){const _0x34974c=this['editor']['plugins']['get'](UserMarkers);if(this['_shouldSendSelectionUpdate']()&&(_0x34974c['createUserMarkerOperations'](),this['_hasSelectionChanged']=!0x1),!this['_shouldSendUpdate']())return!0x0;const _0x506369=[...this['_bufferedOperations']];for(const _0x112213 of _0x506369)_0x112213['wasUndone']=this['_document']['history']['isUndoneOperation'](_0x112213);const _0x12fc86=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x506369),_0x11ee47=requestCount++,_0x7b0efd=this['_compressOperations'](_0x506369),_0x101a9b=await this['_service']['sendOperations'](_0x7b0efd,_0x7b0efd['baseVersion'],_0x12fc86);try{return await this['_handleServerResponse'](_0x506369,_0x101a9b,_0x11ee47);}catch(_0x5985de){return this['_crash']('realtimecollaborationclient-sendbufferedoperations',_0x5985de);}}async['_handleServerResponse'](_0x4c245d,_0x534e7d,_0x16cd60){if('error'in _0x534e7d)throw _0x534e7d['error'];let _0x188eda=!0x1;if(_0x534e7d['wereChangesApplied']){_0x534e7d['lastOperationId']&&(this['_lastSyncedOperationId']=_0x534e7d['lastOperationId']),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x42a9cc=>!_0x4c245d['includes'](_0x42a9cc));for(const _0x185248 of _0x4c245d)_0x185248['createdAt']='lastOperationAcceptedAt'in _0x534e7d&&_0x534e7d['lastOperationAcceptedAt']||void 0x0;updateBaseVersions(_0x4c245d,_0x534e7d['version']-_0x4c245d['length']),this['_updateServerHistory'](_0x4c245d);const _0x5a5491=_0x4c245d['filter'](_0x1a2d6c=>{if(!_0x1a2d6c['_isInit'])return!0x1;const _0x3faf8c=this['_getAffectedRoot'](_0x1a2d6c);return _0x3faf8c&&!this['_knownRootNames']['has'](_0x3faf8c);});updateBaseVersions(_0x5a5491,this['_document']['version']),this['_applyOperationsSet'](_0x5a5491),_0x188eda=!0x0,this['_currentBufferDelay']=this['_baseBufferDelay'];}else{const _0x181664=this['_decompressOperations'](_0x534e7d['data'],_0x534e7d['metadata'])['filter'](_0x308bb7=>_0x308bb7['baseVersion']>=this['_lastServerVersion']);_0x181664['forEach'](_0x425107=>this['_addKnownRoot'](_0x425107)),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x5284c7=>!_0x5284c7['_isInit']||!this['_knownRootNames']['has'](this['_getAffectedRoot'](_0x5284c7))),this['_bufferedOperations']['length']&&updateBaseVersions(this['_bufferedOperations'],this['_bufferedOperations'][0x0]['baseVersion']),await this['_fetchMissingUsers'](_0x181664),_0x188eda=this['_handleExternalOperations'](_0x181664,_0x534e7d['version'],_0x534e7d['lastOperationId']),this['_currentBufferDelay']=Math['round'](this['_currentBufferDelay']/0x2);}return _0x188eda?!this['_shouldSendUpdate']()||(this['_sendBufferedOperationsDelayed'](!0x0),!0x1):this['_crash']('realtimecollaborationclient-handleserverresponse');}['_handleExternalOperations'](_0x374949,_0x19aa33,_0x12d9f){try{const _0x5052f4={'document':this['_document'],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x2b14b1,operationsB:_0x5aafb4,originalOperations:_0x5b1ec2}=transformOperationSets(_0x374949,this['_bufferedOperations'],_0x5052f4);updateBaseVersions(_0x2b14b1,this['_document']['version']),updateBaseVersions(_0x5aafb4,_0x19aa33);for(const _0x5ba330 of _0x2b14b1){const _0xc01260=_0x5b1ec2['get'](_0x5ba330);_0x5ba330['_authorId']=_0xc01260?_0xc01260['_authorId']:null;}_0x12d9f&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x374949,_0x12d9f),this['_lastSyncedOperationId']=_0x12d9f),this['_bufferedOperations']=[..._0x5aafb4],this['_applyOperationsSet'](_0x2b14b1),this['_updateServerHistory'](_0x374949);}catch(_0xbf6ce0){return console['error'](_0xbf6ce0),!0x1;}return!0x0;}['_applyOperationsSet'](_0x4ffd37,_0x547ed9=!0x1){this['editor']['model']['enqueueChange']({'isUndoable':!0x1,'isLocal':!0x1},_0x29c26b=>{for(const _0xf1fa79 of _0x4ffd37)this['_knownOperations']['add'](_0xf1fa79),this['_addKnownRoot'](_0xf1fa79),_0x29c26b['batch']['addOperation'](_0xf1fa79),this['editor']['model']['applyOperation'](_0xf1fa79);});}['_addKnownRoot'](_0x1aa7bf){const _0x583b8d=this['_getAffectedRoot'](_0x1aa7bf);_0x583b8d&&this['_knownRootNames']['add'](_0x583b8d);}['_getAffectedRoot'](_0x3c2a2c){let _0x396d18,_0xf33e60;switch(_0x3c2a2c['type']){case'insert':_0x396d18=_0x3c2a2c['position']['root'];break;case'marker':if(_0xf33e60=_0x3c2a2c['newRange'],!_0xf33e60)return null;_0x396d18=_0xf33e60['root'];break;case'addRootAttribute':_0x396d18=_0x3c2a2c['root'];break;case'addRoot':_0x396d18=_0x3c2a2c['affectedSelectable'];break;case'move':_0x396d18=_0x3c2a2c['targetPosition']['root'];break;default:return null;}return _0x396d18['rootName'];}['_updateServerHistory'](_0x168ca7){_0x168ca7['forEach'](_0x2cb48a=>{const _0x1ec329=_0x2cb48a['clone']();_0x1ec329['_authorId']=_0x2cb48a['_authorId'],_0x1ec329['_isInit']=!!_0x2cb48a['_isInit'],_0x1ec329['createdAt']=_0x2cb48a['createdAt'],_0x1ec329['baseVersion']+=this['_offset'],_0x2cb48a['_isDisconnection']&&this['_disconnectionOperations']['add'](_0x1ec329),this['serverHistory']['addOperation'](_0x1ec329);});}['_handleReconnectionError'](_0x4d6e71){const _0xdeb7c9=this['editor']['plugins']['get']('Notification'),_0xdf782c=this['editor']['locale'];_0x4d6e71||(_0x4d6e71=getTranslation$6(_0xdf782c,'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.')),_0xdeb7c9['showWarning'](_0x4d6e71,{'title':getTranslation$6(_0xdf782c,'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'](_0x248ca8){const _0x5530d6=_0x248ca8['map'](_0x23aa1e=>_0x23aa1e['toJSON']());return this['_compressor']['compress'](_0x5530d6);}['_decompressOperations'](_0x131a10,_0x576e30){return this['_compressor']['decompress'](_0x131a10)['map']((_0x33c260,_0x29fab1)=>{const _0x5a2951='init'==_0x576e30[_0x29fab1]['type'];if('InsertOperation'==_0x33c260['__className']){const _0x2b5968=_0x33c260['position']['root'];!this['_document']['getRoot'](_0x2b5968)&&(this['_document']['createRoot']('$root',_0x2b5968)['_isAttached']=!0x1);}const _0x152a0f=OperationFactory['fromJSON'](_0x33c260,this['_document']);return _0x152a0f['wasUndone']=_0x33c260['wasUndone'],_0x152a0f['_isInit']=_0x5a2951,_0x152a0f['_authorId']=_0x5a2951?null:_0x576e30[_0x29fab1]['userId'],_0x152a0f['_isDisconnection']='cs:removeUser'===_0x576e30[_0x29fab1]['type'],_0x152a0f['createdAt']=_0x576e30[_0x29fab1]['createdAt'],_0x152a0f;});}['_refreshUserSelectionMarkers'](){this['_hasSelectionChanged']=!0x0,this['_shouldSendSelectionUpdate']()?this['_sendBufferedOperationsDelayed']():this['_hasSelectionChanged']=!0x1;}['_shouldSendSelectionUpdate'](){const _0x5c57db=this['editor']['plugins']['get'](Sessions)['channelSessions']['get'](this['_channelId']);return!this['editor']['isReadOnly']&&!!_0x5c57db&&_0x5c57db['length']>0x1&&this['_hasSelectionChanged'];}['_shouldSendUpdate'](){return this['_bufferedOperations']['length']>0x0||this['_shouldSendSelectionUpdate']();}}class ReconnectionError extends Error{}function updateBaseVersions(_0x54a0d1,_0x1faea3){for(const _0x484949 of _0x54a0d1)_0x484949['baseVersion']=_0x1faea3++;}function isSessionNotExistingError(_0xb7b87c){return'404'===_0xb7b87c['code'];}function isBaseVersionMismatchError(_0x35e2f1){return'409'===_0x35e2f1['code'];}function isDisconnectionError$3(_0x4b1e37){return _0x4b1e37['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x4b1e37['message']['startsWith']('cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.')||_0x4b1e37['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class OperationIdentifier{['_ignoredOperations'];['_operationToId'];constructor(_0x3a0ba2){this['_ignoredOperations']=_0x3a0ba2,this['_operationToId']=new WeakMap();}['getIdOfTheLastOperation'](_0x5cf461){let _0x1bd9b1=_0x5cf461['length'];for(;_0x1bd9b1--;){const _0x451d2c=_0x5cf461[_0x1bd9b1];if(!this['_ignoredOperations']['has'](_0x451d2c)){if(!this['_operationToId']['has'](_0x451d2c)){const _0x424223=uid()['slice'](0x1,0x12);this['_operationToId']['set'](_0x451d2c,_0x424223);}return this['_operationToId']['get'](_0x451d2c);}}}['setIdForTheLastOperation'](_0x2d5495,_0x1b20b0){if(!_0x1b20b0)return;let _0x1a4aa2=_0x2d5495['length'];for(;_0x1a4aa2--;){const _0xbbb390=_0x2d5495[_0x1a4aa2];this['_ignoredOperations']['has'](_0xbbb390)||this['_operationToId']['set'](_0xbbb390,_0x1b20b0);}}}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 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(_0x5cd23a){super(_0x5cd23a),this['_services']=new Map();}async['init'](){const _0x44d9cb=this['context'],_0x5549b1=_0x44d9cb['plugins']['get']('CommentsRepository');if(_0x44d9cb['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),_0x5549b1['adapter']={'addCommentThread':async({channelId:_0x355ee5,threadId:_0x463e0d,comments:_0x35bce8,resolvedAt:_0x5b05aa,resolvedBy:_0x272e52,context:_0x478ae1,attributes:_0x81de3e})=>{const _0x4291a4=await this['_getService'](_0x355ee5)['addCommentThread']({'commentThreadId':_0x463e0d,'comments':_0x35bce8['map'](_0x4fe4fd=>parseLocalCommentToRemote(_0x4fe4fd,_0x355ee5,_0x463e0d)),'resolvedAt':_0x5b05aa,'resolvedBy':_0x272e52,'context':_0x478ae1,'attributes':_0x81de3e})['catch'](handleDisconnectionError$1);return{'threadId':_0x4291a4['commentThreadId'],'comments':_0x4291a4['comments']};},'getCommentThread':async({channelId:_0x16f53f,threadId:_0x25de6e})=>{const _0x518339=await this['_getService'](_0x16f53f)['getCommentThread'](_0x25de6e)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return _0x518339?_0x518339['deletedAt']?null:(await this['_fetchMissingUsersForThreads']([_0x518339]),{'threadId':_0x518339['commentThreadId'],'comments':_0x518339['comments']['map'](parseRemoteCommentToLocal),'context':_0x518339['context'],'resolvedAt':_0x518339['resolvedAt'],'resolvedBy':_0x518339['resolvedBy'],'attributes':_0x518339['attributes']||{}}):null;},'updateCommentThread':async({channelId:_0x46482a,threadId:_0x187ff0,context:_0x13a469,unlinkedAt:_0x4612b9,attributes:_0x5de06f})=>this['_getService'](_0x46482a)['updateCommentThread']({'commentThreadId':_0x187ff0,'context':_0x13a469,'attributes':_0x5de06f,'unlinkedAt':_0x4612b9})['catch'](handleServerError)['catch'](handleDisconnectionError$1),'resolveCommentThread':async({channelId:_0x3b3e70,threadId:_0x8a6a40})=>{const _0x483533=await this['_getService'](_0x3b3e70)['resolveCommentThread'](_0x8a6a40)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return{'threadId':_0x483533['commentThreadId'],'resolvedAt':_0x483533['resolvedAt'],'resolvedBy':_0x483533['resolvedBy']};},'reopenCommentThread':async({channelId:_0x45d43c,threadId:_0x1a4014})=>this['_getService'](_0x45d43c)['reopenCommentThread'](_0x1a4014)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeCommentThread':({channelId:_0x53d6e9,threadId:_0x37a868})=>this['_getService'](_0x53d6e9)['removeCommentThread'](_0x37a868)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'addComment':({channelId:_0x49ddca,threadId:_0x3be686,commentId:_0x2d2543,content:_0x5f3313,attributes:_0x129cd4})=>this['_getService'](_0x49ddca)['addComment'](_0x3be686,_0x2d2543,_0x5f3313,_0x129cd4)['catch'](handleDisconnectionError$1),'updateComment':({channelId:_0x94749,threadId:_0x4ecb79,commentId:_0x964cec,content:_0x3758c3,attributes:_0x476175})=>this['_getService'](_0x94749)['updateComment'](_0x4ecb79,_0x964cec,_0x3758c3,_0x476175)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeComment':({channelId:_0x224c63,threadId:_0x568a5f,commentId:_0x1c1269})=>this['_getService'](_0x224c63)['removeComment'](_0x568a5f,_0x1c1269)['catch'](handleServerError)['catch'](handleDisconnectionError$1)},_0x44d9cb instanceof Context$1){const _0x1dbb34=_0x44d9cb['config']['get']('collaboration.channelId'),_0x5adec9=_0x44d9cb['plugins']['get'](Sessions);await this['_setUpService'](_0x1dbb34);const _0x9401af=await this['_services']['get'](_0x1dbb34)['getConnectedSessions']();this['listenTo'](_0x5adec9,'sessionAdd:'+_0x1dbb34,(_0x841f63,{session:_0x481786})=>{_0x481786['id']===_0x5adec9['mySessionId']&&(_0x841f63['off'](),this['context']['plugins']['get']('Permissions')['setPermissions'](_0x481786['permissions'],_0x1dbb34));}),_0x5adec9['register'](_0x1dbb34,_0x9401af);}}async['_setUpService'](_0x578ed2){if(this['_services']['has'](_0x578ed2))throw new CKEditorError('cloudservicescommentsadapter-connect-already-connected',null,{'channelId':_0x578ed2});const _0x407a61=this['context']['plugins']['get']('CommentsRepository'),_0xc3ba60=new CloudServicesCommentsAdapter['CommentsService'](_0x578ed2);this['_services']['set'](_0x578ed2,_0xc3ba60),this['listenTo'](_0xc3ba60,'commentThreadAdded',(_0xb23c64,_0x3fa285)=>{const {commentThreadId:_0x17e2e6,documentId:_0x3a229e,context:_0x30ace3,attributes:_0x346bd3,resolvedAt:_0x4e2df9,resolvedBy:_0x26a76e,comments:_0x40989e}=_0x3fa285;_0x407a61['getCommentThread'](_0x17e2e6)||_0x407a61['addCommentThread']({'threadId':_0x17e2e6,'channelId':_0x3a229e,'comments':_0x40989e?_0x40989e['map'](parseRemoteCommentToLocal):[],'context':_0x30ace3,'attributes':_0x346bd3,'resolvedAt':_0x4e2df9,'resolvedBy':_0x26a76e,'isFromAdapter':!0x0});}),this['listenTo'](_0xc3ba60,'commentThreadUpdated',(_0x3eb06e,{commentThreadId:_0x591710,documentId:_0x485e68,context:_0x21d246,unlinkedAt:_0x56f9b9,attributes:_0x10768b})=>{_0x407a61['getCommentThread'](_0x591710)&&_0x407a61['updateCommentThread']({'threadId':_0x591710,'channelId':_0x485e68,'context':_0x21d246,'unlinkedAt':_0x56f9b9,'attributes':_0x10768b,'isFromAdapter':!0x0});}),this['listenTo'](_0xc3ba60,'commentThreadResolved',(_0x2da1df,{commentThreadId:_0x4b10ca,resolvedBy:_0x2d4b72,resolvedAt:_0x253201})=>{const _0x292281=_0x407a61['getCommentThread'](_0x4b10ca);_0x292281&&_0x292281['resolve']({'resolvedBy':_0x2d4b72,'resolvedAt':_0x253201,'isFromAdapter':!0x0});}),this['listenTo'](_0xc3ba60,'commentThreadReopened',(_0x198ae9,{commentThreadId:_0x5e88d5})=>{const _0xbb635e=_0x407a61['getCommentThread'](_0x5e88d5);_0xbb635e&&_0xbb635e['reopen']({'isFromAdapter':!0x0});}),this['listenTo'](_0xc3ba60,'commentThreadRemoved',(_0x441015,{commentThreadId:_0x2c0dc1})=>{const _0x3dd0dd=_0x407a61['getCommentThread'](_0x2c0dc1);_0x3dd0dd&&_0x3dd0dd['remove']({'isFromAdapter':!0x0});}),this['listenTo'](_0xc3ba60,'commentAdded',(_0x3ed398,_0x1f4224)=>{const _0xc36e88=_0x1f4224['commentThreadId'],_0x599cd1=_0x407a61['getCommentThread'](_0xc36e88);_0x599cd1&&_0x599cd1['addComment']({...parseRemoteCommentToLocal(_0x1f4224),'isFromAdapter':!0x0});}),this['listenTo'](_0xc3ba60,'commentUpdated',(_0x4eab52,{commentThreadId:_0x1d0473,commentId:_0xcd26a4,content:_0x3c220d,attributes:_0x554246})=>{const _0x4234a1=_0x407a61['getCommentThread'](_0x1d0473);if(_0x4234a1){const _0xc5ac9c=_0x4234a1['getComment'](_0xcd26a4);_0xc5ac9c&&_0xc5ac9c['update']({'content':_0x3c220d,'attributes':_0x554246,'isFromAdapter':!0x0});}}),this['listenTo'](_0xc3ba60,'commentRemoved',(_0xa2f0c7,{commentThreadId:_0x20d3f9,commentId:_0x475fd1})=>{const _0x19d4c5=_0x407a61['getCommentThread'](_0x20d3f9);if(_0x19d4c5){const _0x377533=_0x19d4c5['getComment'](_0x475fd1);_0x377533&&_0x377533['remove']({'isFromAdapter':!0x0});}}),await this['_connectService'](_0x578ed2);}['destroy'](){if(this['context']instanceof Context$1){const _0x423803=this['context']['config']['get']('collaboration.channelId');this['_terminateService'](_0x423803);}}['_terminateService'](_0x58170c){if(!this['_services']['has'](_0x58170c))throw new CKEditorError('cloudservicescommentsadapter-disconnect-not-exist',null,{'channelId':_0x58170c});this['_getService'](_0x58170c)['disconnect'](),this['_services']['delete'](_0x58170c);}async['reconnect'](){for(const _0x5754bd of this['_services']['keys']())await this['_connectService'](_0x5754bd);if(this['context']instanceof Context$1){const _0x1a22b1=this['context']['config']['get']('collaboration.channelId'),_0x47a442=this['context']['plugins']['get'](Sessions);_0x47a442['unregister'](_0x1a22b1);const _0x276610=await this['_services']['get'](_0x1a22b1)['getConnectedSessions']();_0x47a442['register'](_0x1a22b1,_0x276610);}}async['_connectService'](_0x1e51f9){const {connection:_0x47ea10}=this['context']['plugins']['get'](WebSocketGateway),_0x2fdbd5=this['context']['plugins']['get']('CommentsRepository'),_0x4dc9a7=this['_services']['get'](_0x1e51f9),_0x356dd6=await _0x4dc9a7['connect'](_0x47ea10);await this['_fetchMissingUsersForThreads'](_0x356dd6);const _0x141815=new Set(Array['from'](_0x2fdbd5['getCommentThreads']({'channelId':_0x1e51f9}),_0x11595a=>_0x11595a['id']));for(const _0x2fc5a2 of _0x356dd6)_0x2fc5a2['deletedAt']||_0x141815['delete'](_0x2fc5a2['commentThreadId']);for(const _0x265934 of _0x141815)_0x2fdbd5['getCommentThread'](_0x265934)['remove']({'isFromAdapter':!0x0});for(const _0x146ed0 of _0x356dd6){let _0x4b1380=_0x2fdbd5['getCommentThread'](_0x146ed0['commentThreadId']);const {commentThreadId:_0x1d5183,context:_0x1e6614,attributes:_0x11f990,resolvedBy:_0x2b51d5,resolvedAt:_0x6ad98f,unlinkedAt:_0x1ac59f,deletedAt:_0x21cde6}=_0x146ed0;if(_0x21cde6)continue;_0x4b1380||(_0x4b1380=_0x2fdbd5['addCommentThread']({'channelId':_0x1e51f9,'threadId':_0x1d5183,'context':_0x1e6614,'attributes':_0x11f990||{},'resolvedBy':_0x2b51d5,'resolvedAt':_0x6ad98f,'unlinkedAt':_0x1ac59f,'isFromAdapter':!0x0}));const _0x5b0a66=new Set(Array['from'](_0x4b1380['comments'],_0x49fbb1=>_0x49fbb1['id']));for(const _0x431fab of _0x146ed0['comments'])_0x5b0a66['delete'](_0x431fab['commentId']);for(const _0x2251cb of _0x5b0a66)_0x4b1380['getComment'](_0x2251cb)['remove']({'isFromAdapter':!0x0});for(const _0x1f86aa of _0x146ed0['comments']){const _0x153abe=_0x4b1380['getComment'](_0x1f86aa['commentId']);_0x153abe?_0x153abe['content']!==_0x1f86aa['content']&&_0x153abe['update']({'content':_0x1f86aa['content'],'isFromAdapter':!0x0}):_0x4b1380['addComment'](Object['assign'](parseRemoteCommentToLocal(_0x1f86aa),{'isFromAdapter':!0x0}));}}}['_getService'](_0x359a33){if(!this['_services']['has'](_0x359a33))throw new CKEditorError('cloudservicescommentsadapter-service-not-exist',null,{'channelId':_0x359a33});return this['_services']['get'](_0x359a33);}async['_fetchMissingUsersForThreads'](_0x535afd){const _0x5097cc=this['context']['plugins']['get'](Users),{connection:_0x169e14}=this['context']['plugins']['get'](WebSocketGateway),_0x233f05=new Set();for(const {resolvedBy:_0xed409c,comments:_0x2fb9f6}of _0x535afd){_0xed409c&&!_0x5097cc['getUser'](_0xed409c)&&_0x233f05['add'](_0xed409c);for(const {userId:_0xfe5624}of _0x2fb9f6)_0x5097cc['getUser'](_0xfe5624)||_0x233f05['add'](_0xfe5624);}if(0x0===_0x233f05['size'])return;const _0x33c68a=await User['getMany'](_0x169e14,Array['from'](_0x233f05));for(const _0xef9f3d of _0x33c68a)_0x5097cc['getUser'](_0xef9f3d['id'])||_0x5097cc['addUser'](_0xef9f3d);}}async function handleServerError(_0x26a9c3){if('404'!==_0x26a9c3['code'])throw _0x26a9c3;}function handleDisconnectionError$1(_0x10dad6){if(isDisconnectionError$2(_0x10dad6))return new Promise(()=>{});throw _0x10dad6;}function isDisconnectionError$2(_0x1bae8c){return _0x1bae8c['message']['startsWith']('cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.')||_0x1bae8c['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x1bae8c['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}function parseRemoteCommentToLocal(_0xaffecc){return{'threadId':_0xaffecc['commentThreadId'],'commentId':_0xaffecc['commentId'],'content':_0xaffecc['content'],'createdAt':_0xaffecc['createdAt'],'authorId':_0xaffecc['userId'],'attributes':_0xaffecc['attributes']||{}};}function parseLocalCommentToRemote(_0x1b9a2c,_0x35829d,_0x2518cc){return{'commentThreadId':_0x2518cc,'commentId':_0x1b9a2c['commentId'],'userId':_0x1b9a2c['authorId'],'content':_0x1b9a2c['content'],'documentId':_0x35829d,'createdAt':_0x1b9a2c['createdAt'],'attributes':_0x1b9a2c['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(_0x3ab9c1){super(_0x3ab9c1);const _0x42d3a6=this['editor']['config']['get']('collaboration.channelId');this['_bufferedRequests']=new Map(),this['_trackChangesService']=new CloudServicesTrackChangesAdapter['TrackChangesService'](_0x42d3a6);}['init'](){const _0xcecc42=this['editor']['plugins']['get'](WebSocketGateway),_0x1816e9=this['editor']['plugins']['get']('TrackChangesEditing');return _0x1816e9['adapter']={'getSuggestion':async _0xbe8e57=>{await this['_waitForServiceReady']();const _0x15a49f=await this['_trackChangesService']['get'](_0xbe8e57)['catch'](handleDisconnectionError);return await this['_fetchMissingUsersForThreads']([_0x15a49f]),_0x15a49f;},'addSuggestion':async({id:_0x54aa1f,type:_0x503873,data:_0xa39e0c,originalSuggestionId:_0x293477,attributes:_0x32bbee})=>{await this['_waitForServiceReady']();const _0x203cff={'id':_0x54aa1f,'type':_0x503873,'data':_0xa39e0c,'originalSuggestionId':_0x293477,'attributes':_0x32bbee},_0x257ea5=await this['_trackChangesService']['add'](_0x54aa1f,_0x503873,_0xa39e0c,_0x293477,_0x32bbee)['catch'](_0x4e83fa=>{if(isDisconnectionError$1(_0x4e83fa))return new Promise(_0x2557f3=>{this['_bufferedRequests']['set'](_0x54aa1f,{'resolve':_0x2557f3,'suggestionData':_0x203cff});});throw _0x4e83fa;});return this['_bufferedRequests']['delete'](_0x54aa1f),_0x257ea5;},'updateSuggestion':async(_0x5becbf,_0x502e59)=>{if(await this['_waitForServiceReady'](),'open'!==_0x502e59['state'])return this['_trackChangesService']['update'](_0x5becbf,_0x502e59)['catch'](handleDisconnectionError);}},this['listenTo'](this['_trackChangesService'],'suggestionUpdated',(_0x996107,_0x1450c2)=>{_0x1816e9['hasSuggestion'](_0x1450c2['id'])&&(_0x1816e9['getSuggestion'](_0x1450c2['id'])['attributes']=_0x1450c2['attributes']);}),this['_trackChangesService']['connect'](_0xcecc42['connection'])['then'](_0x27423a=>(_0xcecc42['addToReconnectionStack'](this),this['_fetchMissingUsersForThreads'](_0x27423a)['then'](()=>{for(const _0x281040 of _0x27423a){_0x1816e9['addSuggestionData'](_0x281040)['_saved']=!0x0;}})));}async['reconnect'](){const _0x5893ca=this['editor']['plugins']['get']('TrackChangesEditing'),{connection:_0x5f17ac}=this['editor']['plugins']['get'](WebSocketGateway),_0x5d35e2=await this['_trackChangesService']['connect'](_0x5f17ac);await this['_fetchMissingUsersForThreads'](_0x5d35e2);for(const {suggestionData:_0x45900d,resolve:_0xfb8192}of this['_bufferedRequests']['values']()){let _0x5e3123=_0x5d35e2['find'](_0x269781=>_0x269781['id']===_0x45900d['id']);_0x5e3123||(_0x5e3123=await this['_trackChangesService']['add'](_0x45900d['id'],_0x45900d['type'],_0x45900d['data'],_0x45900d['originalSuggestionId'])),_0xfb8192(_0x5e3123);}for(const _0x26a298 of _0x5d35e2)_0x5893ca['hasSuggestion'](_0x26a298['id'])||_0x5893ca['addSuggestionData'](_0x26a298);}async['_waitForServiceReady'](){this['_trackChangesService']['isConnected']||await new Promise(_0x433283=>{this['listenTo'](this['_trackChangesService'],'connected',_0x3e9b33=>{_0x3e9b33['off'](),_0x433283();});});}async['_fetchMissingUsersForThreads'](_0x3756cc){const _0x2567c2=this['editor']['plugins']['get'](Users),{connection:_0x1d507b}=this['editor']['plugins']['get'](WebSocketGateway),_0x26874f=new Set();for(const {authorId:_0xbd5e74}of _0x3756cc)_0x2567c2['getUser'](_0xbd5e74)||_0x26874f['add'](_0xbd5e74);if(0x0===_0x26874f['size'])return;const _0x41a226=await User['getMany'](_0x1d507b,Array['from'](_0x26874f));for(const _0x1cdd67 of _0x41a226)_0x2567c2['getUser'](_0x1cdd67['id'])||_0x2567c2['addUser'](_0x1cdd67);}}function handleDisconnectionError(_0x193fed){if(isDisconnectionError$1(_0x193fed))return new Promise(()=>{});throw _0x193fed;}function isDisconnectionError$1(_0xd1dac5){return _0xd1dac5['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0xd1dac5['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 _0x38095c=this['editor']['plugins']['get'](WebSocketGateway),_0x5bf0b6=this['editor']['plugins']['get']('CommentsEditing'),_0x6cb284=this['editor']['plugins']['get'](CloudServicesCommentsAdapter);return this['editor']['data']['once']('ready',()=>{this['listenTo'](_0x38095c,'change:state',(_0x18d341,_0x2f14d4,_0x3d7e2a)=>{_0x5bf0b6['isThreadsLoadingPaused']='connected'!==_0x3d7e2a;});}),this['listenTo'](_0x38095c,'change:state',(_0x2fce00,_0x2e370c,_0xdcd1b)=>{this['editor']['plugins']['get']('CommentsRepository')['switchReadOnly']('connected'!==_0xdcd1b);}),_0x6cb284['_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 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(_0x53dec0){super(_0x53dec0);const _0xfe9402=this['editor']['config']['get']('collaboration.channelId');this['_lastRequestId']=null,this['_revisionTracker']=this['editor']['plugins']['get']('RevisionTracker'),this['_revisionHistoryService']=new CloudServicesRevisionHistoryAdapter['RevisionHistoryService'](_0xfe9402);}async['init'](){const _0x177425=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x2a8a24=_0x177425['serverHistory'],_0x41a820=this['editor']['plugins']['get'](WebSocketGateway);this['_revisionTracker']['setSource']({'history':_0x2a8a24,'getLatestVersion':()=>this['_getLatestVersion'](),'getCurrentRevisionId':()=>_0x177425['sessionId']});const _0x2fcd72=this['editor']['config']['get']('cloudServices.bundleVersion')||_0xc2c9c,_0x5138b1=await EditorService['isBundleUploaded'](_0x41a820['connection'],_0x2fcd72);this['editor']['plugins']['get']('RevisionHistory')['adapter']={'getRevision':async({revisionId:_0x5e7662})=>(await this['_waitForServiceReady'](),await this['_revisionHistoryService']['getRevision'](_0x5e7662)),'updateRevisions':async _0x1a5704=>{await this['_waitForServiceReady']();const _0x47c254=this['_revisionTracker']['currentRevision'];if(_0x5138b1&&0x1===_0x1a5704['length']&&_0x1a5704[0x0]['id']===_0x47c254['id'])return _0x1a5704;for(const _0x53c43e of _0x1a5704)_0x53c43e['id']===_0x47c254['id']&&(_0x53c43e['isEmptyCurrent']=_0x53c43e['fromVersion']===_0x53c43e['toVersion']);return this['_revisionHistoryService']['updateRevisions'](_0x1a5704,this['_lastRequestId'])['then'](_0x2e3102=>(this['_lastRequestId']=_0x2e3102,_0x1a5704))['catch'](_0x2b7a75=>{if(isDisconnectionError(_0x2b7a75)||'400'===_0x2b7a75['code']&&void 0x0!==_0x2b7a75['data']['wrongRequestId']){for(const _0x422726 of _0x1a5704){!this['_revisionTracker']['repository']['getRevision'](_0x422726['id'])||this['_revisionTracker']['_bufferUpdate'](_0x422726['id'],_0x422726,!0x1);}if(isDisconnectionError(_0x2b7a75))throw _0x2b7a75;return _0x1a5704;}throw _0x2b7a75;});}},this['listenTo'](this['_revisionHistoryService'],'revisionsUpdated',(_0x581d46,{revisionsData:_0x3c7559,requestId:_0x41322e})=>{Math['max'](..._0x3c7559['map'](_0x3bfe75=>_0x3bfe75['toVersion']))>this['_getLatestVersionFromServerOperations']()-0x1?this['_getLatestVersion']()['then'](()=>{this['_handleRevisionsUpdate'](_0x3c7559,_0x41322e);}):this['_handleRevisionsUpdate'](_0x3c7559,_0x41322e);});const {revisions:_0x5aae14,requestId:_0x1852e5}=await this['_revisionHistoryService']['connect'](_0x41a820['connection']);_0x41a820['addToReconnectionStack'](this),this['_lastRequestId']=_0x1852e5,await this['_fetchMissingUsers'](_0x5aae14);for(const _0x1d29b0 of _0x5aae14)this['_revisionTracker']['addRevisionData'](_0x1d29b0);this['listenTo'](_0x177425,'change:_isConnected',(_0x42448d,_0x5c9c4c,_0x4ae0e2)=>{_0x4ae0e2&&(this['_oldOffset']=_0x177425['_offset'],_0x42448d['off']());}),this['_revisionTracker']['bind']('isEnabled')['to'](_0x41a820,'state',_0x147224=>_0x147224===WEB_SOCKET_GATEWAY_STATES['CONNECTED']);}async['reconnect'](){const _0x3670a0=this['editor']['plugins']['get'](WebSocketGateway),_0x3fa3e7=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x43fe18=async()=>{const _0x4dba0b=this['_revisionTracker']['currentRevision'],_0x478c37=_0x4dba0b['id'],_0x21a760=_0x478c37!==_0x3fa3e7['sessionId'];if(_0x21a760){const _0xa3b0=_0x3fa3e7['_offset']-this['_oldOffset'],_0x2018e1=this['_getLatestVersionFromServerOperations']();this['_revisionTracker']['_revisionDataBuilder']['reInit']();if(_0x4dba0b['toVersion']+_0xa3b0!==_0x2018e1){const _0x24be4c=_0x4dba0b['fromVersion']+_0xa3b0,_0x2b7c8d=this['editor']['plugins']['get'](Users),_0xb85242=this['_revisionTracker']['buildRevisionData']({'revision':_0x4dba0b,'from':_0x24be4c,'to':_0x2018e1});_0xb85242['id']=_0x4dba0b['id'];const _0x558e16=_0xb85242['authorsIds']['map'](_0x2f1df5=>_0x2b7c8d['getUser'](_0x2f1df5));_0x4dba0b['_update']({..._0xb85242,'authors':_0x558e16},!0x0),this['_revisionTracker']['_bufferUpdate'](_0x4dba0b['id'],_0xb85242,!0x0);}this['_revisionTracker']['_startingVersion']=_0x2018e1,(_0x4dba0b['toVersion']===_0x4dba0b['fromVersion']&&!this['_revisionTracker']['_bufferedUpdates']['has'](_0x478c37)&&this['_revisionTracker']['repository']['_revisions']['remove'](_0x478c37),this['_revisionTracker']['_createCurrentRevision'](_0x2018e1));}const {revisions:_0x4843ae,requestId:_0x2a0142}=await this['_revisionHistoryService']['reconnect'](_0x3670a0['connection'],this['_lastRequestId']);_0x21a760&&_0x4843ae['length']>0x0?_0x3fa3e7['_handleReconnectionError']():(await this['_fetchMissingUsers'](_0x4843ae),this['_handleRevisionsUpdate'](_0x4843ae,_0x2a0142),this['_revisionTracker']['sendBufferedUpdates']());};return _0x3fa3e7['_isConnected']?_0x43fe18():new Promise((_0x4c54a3,_0x312e74)=>{_0x3fa3e7['once']('change:_isConnected',()=>{_0x43fe18()['then'](_0x4c54a3)['catch'](_0x312e74);});});}['destroy'](){super['destroy']();}async['_waitForServiceReady'](){this['_revisionHistoryService']['isConnected']||await new Promise(_0x50d0a6=>{this['listenTo'](this['_revisionHistoryService'],'connected',_0x3f6f22=>{_0x3f6f22['off'](),_0x50d0a6();});});}['_getLatestVersionFromServerOperations'](){const _0x20a126=this['editor']['plugins']['get'](RealTimeCollaborationClient)['serverHistory']['getOperations']()['reverse']();for(const _0x39ad8c of _0x20a126)if('marker'!==_0x39ad8c['type']||_0x39ad8c['affectsData'])return _0x39ad8c['baseVersion']+0x1;}['_getLatestVersion'](){const _0x3b12da=this['editor']['plugins']['get'](RealTimeCollaborationClient);return new Promise(_0x45f519=>{_0x3b12da['_isPendingUpdate']?_0x3b12da['once']('change:_isPendingUpdate',()=>{_0x45f519(this['_getLatestVersionFromServerOperations']());}):_0x45f519(this['_getLatestVersionFromServerOperations']());});}['_handleRevisionsUpdate'](_0x2fc213,_0x27c8f6){const _0x229c0e=this['_revisionTracker']['repository'];this['_lastRequestId']=_0x27c8f6;for(const _0x149f9e of _0x2fc213){const _0x169da1=_0x229c0e['getRevision'](_0x149f9e['id']);if(_0x169da1){if((_0x149f9e['fromVersion']||_0x149f9e['toVersion'])&&(_0x149f9e['diffData']=null),_0x169da1===this['_revisionTracker']['currentRevision']){const _0xafee14=Math['max'](_0x169da1['toVersion'],_0x149f9e['toVersion']),_0x145e26=Math['max'](_0x169da1['fromVersion'],_0x149f9e['fromVersion']);let _0x172e20;_0x169da1['toVersion']===_0x149f9e['toVersion']&&_0x169da1['fromVersion']===_0x149f9e['fromVersion']?(_0x172e20=!0x0,this['_preventResendingRevisionData'](_0x149f9e)):_0x149f9e['toVersion']===_0xafee14&&_0x149f9e['fromVersion']===_0x145e26?_0x172e20=!0x1:(_0x169da1['toVersion']===_0xafee14&&_0x169da1['fromVersion']===_0x145e26||this['_fixRevision']({'revision':_0x169da1,'from':_0x145e26,'to':_0xafee14}),_0x172e20=!0x0),_0x172e20&&(delete _0x149f9e['fromVersion'],delete _0x149f9e['toVersion'],delete _0x149f9e['diffData'],delete _0x149f9e['createdAt'],delete _0x149f9e['authorsIds']);}this['_revisionTracker']['setRevisionData'](_0x149f9e),this['_preventResendingRevisionData'](_0x149f9e);}else this['_revisionTracker']['addRevisionData'](_0x149f9e);}const _0x147439=_0x229c0e['getRevisions']();_0x147439['reverse']();for(let _0xa5ac2d=0x0;_0xa5ac2d<_0x147439['length']-0x1;_0xa5ac2d++){const _0x4d690e=_0x147439[_0xa5ac2d],_0x270772=_0x147439[_0xa5ac2d+0x1];if(_0x4d690e['fromVersion']<_0x270772['toVersion']){const _0x3756be=_0x270772['toVersion'],_0x8b0ef1=Math['max'](_0x3756be,_0x4d690e['toVersion']);this['_fixRevision']({'revision':_0x4d690e,'from':_0x3756be,'to':_0x8b0ef1});}}}['_fixRevision']({revision:_0x548335,from:_0x3d6f15,to:_0x1d7974}={}){const _0x543add=this['editor']['plugins']['get'](Users),_0x52ffb5=this['_revisionTracker']['buildRevisionData']({'revision':_0x548335,'from':_0x3d6f15,'to':_0x1d7974});_0x52ffb5['authors']=_0x52ffb5['authorsIds']['map'](_0x5837c0=>_0x543add['getUser'](_0x5837c0)),_0x548335['_update'](_0x52ffb5);}['_preventResendingRevisionData'](_0x237d18){const _0x187c03={};_0x187c03['id']=_0x237d18['id'];for(const _0x4ca83c of Object['keys'](_0x237d18))'id'!==_0x4ca83c&&(_0x187c03[_0x4ca83c]=void 0x0);this['_revisionTracker']['_bufferUpdate'](_0x187c03['id'],_0x187c03,!0x0);}async['_fetchMissingUsers'](_0x1b7a94){const _0x20f5d6=this['editor']['plugins']['get'](Users),{connection:_0x52e21f}=this['editor']['plugins']['get'](WebSocketGateway),_0x228c07=new Set();for(const _0x5353be of _0x1b7a94){for(const _0x532c9a of _0x5353be['authorsIds'])_0x53bde0(_0x532c9a);_0x5353be['creatorId']&&_0x53bde0(_0x5353be['creatorId']);}if(0x0===_0x228c07['size'])return;const _0x51e1a0=await User['getMany'](_0x52e21f,Array['from'](_0x228c07));for(const _0x57839c of _0x51e1a0)_0x20f5d6['getUser'](_0x57839c['id'])||_0x20f5d6['addUser'](_0x57839c);function _0x53bde0(_0x583e00){_0x20f5d6['getUser'](_0x583e00)||_0x228c07['add'](_0x583e00);}}}function isDisconnectionError(_0x27a010){return _0x27a010['message']['startsWith']('cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.')||_0x27a010['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x27a010['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(_0x33a059,_0xe5edf6=0x6){super(_0x33a059);const _0x3556bc=this['bindTemplate'];this['set']('isHidden',!0x0),this['set']('usersCount',0x0),this['_collapseAt']=_0xe5edf6,this['bind']('isHidden')['to'](this,'usersCount',_0x14a93b=>_0x14a93b<_0xe5edf6),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item',_0x3556bc['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':_0x3556bc['to']('usersCount',_0x276fdd=>'+'+(_0x276fdd-this['_collapseAt']+0x2)['toString']())}]}]}]});}}class PresenceInlineListView extends View{['items'];['keystrokes'];constructor(_0x5e5021){super(_0x5e5021);const _0x5074f1=this['bindTemplate'];this['items']=this['createCollection'](),this['keystrokes']=new KeystrokeHandler(),this['set']({'hasPopup':!0x1,'isExpanded':!0x1}),this['setTemplate']({'tag':'div','attributes':{'aria-haspopup':_0x5074f1['if']('hasPopup'),'aria-expanded':_0x5074f1['to']('isExpanded',_0x2fc86a=>this['hasPopup']&&String(_0x2fc86a)),'aria-label':_0x5074f1['to']('hasPopup',_0x71ae9=>getTranslation$6(_0x5e5021,_0x71ae9?'Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)':'Connected\x20users\x20list')),'role':'list','tabindex':_0x5074f1['to']('hasPopup',_0x502253=>!!_0x502253&&0x0),'class':['ck','ck-presence-list__list']},'children':this['items'],'on':{'mouseenter':_0x5074f1['to'](()=>this['fire']('presencelist:show')),'mouseleave':_0x5074f1['to'](_0x4100f1=>{const _0x49a595=_0x4100f1,_0x491e45=document['querySelector']('.ck-presence-list__dropdown-list'),_0x27f8ec=document['querySelector']('.ck-balloon-panel_with-arrow');_0x491e45?.['contains'](_0x49a595['relatedTarget'])||_0x27f8ec?.['contains'](_0x49a595['relatedTarget'])||this['fire']('presencelist:hide');})}}),this['on']('change:hasPopup',(_0x2da73e,_0x589430,_0xbda508)=>{this['element']&&(_0xbda508?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(_0x2a6e22,_0x24e0bb=0x6){super(_0x2a6e22);const _0x3fbad9=this['bindTemplate'];this['set']('isCollapsed',!0x0),this['counterView']=new PresenceCounterView(this['locale'],_0x24e0bb),this['inlineListView']=new PresenceInlineListView(_0x2a6e22),this['inlineListView']['bind']('hasPopup')['to'](this,'isCollapsed'),this['listenTo'](this['inlineListView']['items'],'change',()=>{for(const _0x39722c of this['inlineListView']['items'])_0x39722c['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',_0x3fbad9['if']('isCollapsed','ck-presence-list--collapsed')]},'children':[this['inlineListView']]});}}class PresenceDropdownListView extends View{['listWrapperView'];constructor(_0x309d01,_0x379b62){super(_0x309d01);const _0x2aecfb=this['bindTemplate'];this['listWrapperView']=new PresenceDropdownListWrapperView(_0x309d01,_0x379b62),this['setTemplate']({'tag':'div','attributes':{'tabindex':-0x1,'role':'application','class':['ck','ck-presence-list__dropdown-list'],'aria-label':getTranslation$6(_0x309d01,'Connected\x20users\x20list\x20dropdown\x20menu')},'children':[this['listWrapperView']],'on':{'mouseleave':_0x2aecfb['to'](_0x54b22=>{const _0x54029d=_0x54b22,_0xaaba9=document['querySelector']('.ck-presence-list__list'),_0x25c737=document['querySelector']('.ck-balloon-panel_with-arrow');_0xaaba9?.['contains'](_0x54029d['relatedTarget'])||_0x25c737?.['contains'](_0x54029d['relatedTarget'])||this['fire']('presencelist:hide');})}});}}class PresenceDropdownListWrapperView extends ListView{constructor(_0x3999cf,_0x20429c){super(_0x3999cf);const _0x524d39=this['bindTemplate'];this['set']('_isScrollable',!0x1),this['setTemplate']({'tag':_0x20429c?'div':'ul','attributes':{'class':['ck','ck-reset','ck-list','ck-presence-list__dropdown-list-wrapper',_0x524d39['if']('_isScrollable','ck-presence-list__dropdown-list-wrapper_scrollable')],'role':_0x524d39['to']('role'),'aria-label':_0x524d39['to']('ariaLabel'),'aria-labelledby':_0x524d39['to']('ariaLabelledBy')},'children':this['items']}),this['listenTo'](_0x19b45e['window'],'resize',()=>this['checkIfScrollable']()),this['items']['on']('change',()=>this['checkIfScrollable']());}['render'](){super['render'](),this['checkIfScrollable']();}['checkIfScrollable'](){const _0x5a9f69=this['element'];_0x5a9f69&&(this['_isScrollable']=Math['max'](_0x5a9f69['scrollHeight'],_0x5a9f69['clientHeight'])>0.8*window['innerHeight']);}}class PresenceDropdownListItemView extends ListItemView{['userView'];constructor(_0x2561ba,_0xc32cbe,_0x2e78b2){super(_0x2561ba);const _0xb90c86=this['bindTemplate'];this['userView']=new UserView(_0x2561ba,_0xc32cbe);const _0x567f53={'tag':'li','attributes':{'class':['ck','ck-presence-list__dropdown-list-item'],'tabindex':-0x1,'role':'presentation','aria-label':_0xc32cbe['name']},'children':[this['userView'],{'tag':'span','attributes':{'class':['ck','ck-user__full-name']},'children':[{'text':_0xc32cbe['name']}]},{'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0xc32cbe['color']['getBackgroundColorClass']()],'aria-hidden':'true'}}]};_0x2e78b2&&(_0x567f53['tag']='button',_0x567f53['on']={'click':_0xb90c86['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x567f53);}['focus'](){this['element']['focus']();}}class PresenceInlineListItemView extends View{['userView'];['markerView'];constructor(_0x2addeb,_0x46c393,_0x4e670d){super(_0x2addeb);const _0x5e0835=this['bindTemplate'];this['set']('isFocusable',!0x1),this['set']('hasTooltip',!0x0),this['set']('tooltipPosition',''),this['userView']=new UserView(_0x2addeb,_0x46c393),this['markerView']=new MarkerView(_0x2addeb,_0x46c393);const _0x3ee3ae=new LabelView(_0x2addeb);_0x3ee3ae['template']['tag']='span',_0x3ee3ae['text']=_0x46c393['name'];const _0x1d59b8={'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item'],'role':'listitem','tabindex':_0x5e0835['to']('isFocusable',_0x261c6a=>!!_0x261c6a&&0x0),'aria-labelledby':_0x3ee3ae['id'],'data-cke-tooltip-text':this['userView']['name'],'data-cke-tooltip-position':_0x5e0835['to']('tooltipPosition'),'data-cke-tooltip-disabled':_0x5e0835['to']('hasTooltip',_0x5aee10=>!_0x5aee10),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this['userView'],this['markerView'],_0x3ee3ae]};_0x4e670d&&(_0x1d59b8['tag']='button',_0x1d59b8['on']={'click':_0x5e0835['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x1d59b8);}}class MarkerView extends View{constructor(_0x45188b,_0x354d74){super(_0x45188b),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x354d74['color']['getBackgroundColorClass']()],'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(_0x397c7f){super(_0x397c7f),this['context']['config']['define']('presenceList',defaultPresenceListConfig);const _0x18b45e=_0x397c7f['config']['get']('presenceList.collapseAt');if('number'!=typeof _0x18b45e)throw new CKEditorError('presencelist-collapseat-invalid-format',this);if(_0x18b45e<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 _0x557136 of this['_allConnectedUsers'])this['_handleUserAdd'](_0x557136);this['listenTo'](this['_allConnectedUsers'],'add',(_0x4df2f8,_0x46e5d6)=>{this['_handleUserAdd'](_0x46e5d6);}),this['listenTo'](this['_allConnectedUsers'],'remove',(_0x4c9b4f,_0x2bb5b3)=>{this['_handleUserRemove'](_0x2bb5b3);});}['_createView'](){const _0x473756=this['context'],_0x363fc4=new PresenceListView(this['context']['locale'],this['context']['config']['get']('presenceList.collapseAt')),_0x4e7b0f=this['balloonPanelView'];if(!isElement$2(_0x473756['config']['get']('presenceList.container')))throw new CKEditorError('presencelist-missing-container',this);return _0x363fc4['counterView']['bind']('usersCount')['to'](this),_0x363fc4['bind']('isCollapsed')['to'](this,'usersCount',_0x9e6854=>{const {collapseAt:_0x2a4a43}=_0x473756['config']['get']('presenceList'),_0x3aa1d6=_0x9e6854>=_0x2a4a43;if(_0x3aa1d6&&!_0x363fc4['inlineListView']['items']['find'](_0xc8a893=>_0xc8a893 instanceof PresenceCounterView)){const _0x3cf0c9=this['context']['config']['get']('presenceList.collapseAt')-0x1;this['currentDisplayedUsers']['length']==_0x3cf0c9&&this['currentDisplayedUsers']['length']>0x1&&this['currentDisplayedUsers']['remove'](this['currentDisplayedUsers']['length']-0x1),_0x363fc4['inlineListView']['items']['add'](_0x363fc4['counterView']);}return _0x3aa1d6||this['hideDropdown'](),_0x3aa1d6;}),_0x363fc4['inlineListView']['items']['bindTo'](this['currentDisplayedUsers'])['using'](_0x37c5d8=>{const _0x5166cd=_0x473756['config']['get']('presenceList'),_0x5c16ed=new PresenceInlineListItemView(_0x473756['locale'],_0x37c5d8,!!_0x5166cd['onClick']);return _0x5c16ed['bind']('hasTooltip')['to'](_0x363fc4,'isCollapsed',_0x2e27a0=>!_0x2e27a0),_0x5c16ed['bind']('isFocusable')['to'](_0x363fc4,'isCollapsed',_0x112ce7=>!_0x112ce7),_0x5166cd['onClick']&&this['listenTo'](_0x5c16ed,'execute',()=>{this['view']['isCollapsed']||_0x5166cd['onClick'](_0x37c5d8,_0x5c16ed['element']);}),_0x5c16ed;}),this['listenTo'](_0x363fc4['inlineListView'],'presencelist:show',()=>{this['view']['isCollapsed']&&this['showDropdown']();}),this['listenTo'](_0x363fc4['inlineListView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();}),_0x363fc4['inlineListView']['keystrokes']['set']('Enter',(_0x53440e,_0x1cb0ed)=>{this['view']['isCollapsed']&&(this['showDropdown'](),_0x1cb0ed());}),_0x363fc4['render'](),_0x4e7b0f['render'](),clickOutsideHandler({'emitter':_0x363fc4,'activator':()=>_0x4e7b0f['isVisible'],'contextElements':[_0x4e7b0f['element'],_0x363fc4['inlineListView']['element']],'callback':()=>this['hideDropdown']()}),_0x473756['config']['get']('presenceList.container')['appendChild'](_0x363fc4['element']),this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_bodyCollection']['add'](this['balloonPanelView']),_0x363fc4;}['_handleUserAdd'](_0x47c1ca){if(!this['context']['config']['get']('presenceList.displayMe')&&_0x47c1ca['isMe'])return;const _0x376664=this['context']['config']['get']('presenceList.collapseAt')-0x1;for(this['usersCount']++;this['currentDisplayedUsers']['length']>=_0x376664-(this['view']['isCollapsed']?0x1:0x0)&&this['currentDisplayedUsers']['length']>0x1;)this['currentDisplayedUsers']['remove'](0x1);const _0x55274d=_0x47c1ca['isMe']?0x0:this['currentDisplayedUsers']['length'];this['currentDisplayedUsers']['add'](_0x47c1ca,_0x55274d);}['_handleUserRemove'](_0x4ac05c){this['usersCount']--;const {collapseAt:_0x40ef5e}=this['context']['config']['get']('presenceList'),_0x2947d8=this['usersCount']>=_0x40ef5e;if(this['currentDisplayedUsers']['get'](_0x4ac05c['id']))this['currentDisplayedUsers']['remove'](_0x4ac05c['id']);else{if(_0x2947d8&&this['currentDisplayedUsers']['length']+0x1===_0x40ef5e-0x1)return;}if(this['currentDisplayedUsers']['length']+(_0x2947d8?0x1:0x0)<this['usersCount']){for(const _0x2ef59c of Array['from'](this['_allConnectedUsers'])['reverse']())if(!this['currentDisplayedUsers']['get'](_0x2ef59c['id'])&&(this['currentDisplayedUsers']['add'](_0x2ef59c,Math['min'](this['currentDisplayedUsers']['length']-(_0x2947d8?0x1:0x0),0x1)),this['currentDisplayedUsers']['length']+(_0x2947d8?0x1:0x0)===_0x40ef5e-0x1))return;}}['showDropdown'](){if(this['presenceDropdownView'])return;const _0x24ccc1=this['context']['config']['get']('presenceList');this['presenceDropdownView']=new PresenceDropdownListView(this['context']['locale'],!!_0x24ccc1['onClick']),this['view']['inlineListView']['isExpanded']=!0x0,this['listenTo'](this['presenceDropdownView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();});const {listWrapperView:_0x211614}=this['presenceDropdownView'];_0x211614['items']['bindTo'](this['_allConnectedUsers'])['using'](_0x3954a1=>{if(!_0x24ccc1['displayMe']&&_0x3954a1['isMe'])return null;const _0x4a7eaf=new PresenceDropdownListItemView(this['context']['locale'],_0x3954a1,!!_0x24ccc1['onClick']);return _0x24ccc1['onClick']&&this['listenTo'](_0x4a7eaf,'execute',()=>{_0x24ccc1['onClick'](_0x3954a1,_0x4a7eaf['element']);}),_0x4a7eaf;}),this['balloonPanelView']['content']['add'](this['presenceDropdownView']),this['balloonPanelView']['pin']({'target':this['view']['inlineListView']['element']}),_0x211614['focus'](),_0x211614['checkIfScrollable']();const _0x54c450=(_0x4001c9,_0x282c53)=>{this['hideDropdown'](),this['view']['inlineListView']['focus'](),_0x282c53();};_0x211614['keystrokes']['set']('Esc',_0x54c450),_0x211614['keystrokes']['set']('Shift+Tab',_0x54c450),_0x211614['keystrokes']['set']('Tab',(_0xcd270b,_0x8e2149)=>{focusNextElement(this['view']['element']),this['hideDropdown'](),_0x8e2149();}),_0x211614['focusTracker']['add'](this['view']['element']),_0x211614['focusTracker']['on']('change:isFocused',(_0x19925c,_0x513afc,_0x56efd2)=>{_0x56efd2||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(_0x2800f4){const _0x3bea97=['a','button','input','select','textarea','[tabindex]','[contenteditable]']['map'](_0x54fde0=>_0x54fde0+':not([disabled]):not([tabindex=\x22-1\x22])')['join'](','),_0x381364=[...document['body']['querySelectorAll'](_0x3bea97)]['filter'](_0xc1aedb=>_0xc1aedb===document['activeElement']||_0xc1aedb['offsetWidth']+_0xc1aedb['offsetHeight']>0x0)['sort']((_0x30a146,_0x338e0d)=>(_0x30a146['tabIndex']||0x0)-(_0x338e0d['tabIndex']||0x0)),_0x43f9a9=_0x381364['indexOf'](_0x2800f4),_0x5c454a=_0x381364[(_0x43f9a9+0x1)%_0x381364['length']];_0x5c454a&&_0x5c454a['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;}}class Revision extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3b06bd){super(),this['id']=_0x3b06bd['id']||uid(),this['creator']=_0x3b06bd['creator']||null,this['authors']=_0x3b06bd['authors']||[],this['diffData']=_0x3b06bd['diffData']||null,this['toVersion']=_0x3b06bd['toVersion']||0x0,this['fromVersion']=_0x3b06bd['fromVersion']||0x0,this['set']('name',_0x3b06bd['name']||''),this['set']('createdAt',_0x3b06bd['createdAt']||new Date()),this['set']('attributes',_0x3b06bd['attributes']||{});}['setName'](_0x138ec2){this['_update']({'name':_0x138ec2});}['setAttribute'](_0x51873a,_0x9f713a){const _0x3ed0ea=cloneDeep(this['attributes']);set(_0x3ed0ea,_0x51873a,_0x9f713a),this['_update']({'attributes':_0x3ed0ea});}['removeAttribute'](_0x59f43c){const _0x8ac4a8=cloneDeep(this['attributes']);unset(_0x8ac4a8,_0x59f43c),this['_update']({'attributes':_0x8ac4a8});}['_update'](_0x5be030,_0x38b4cc=!0x1){let _0xb40041=!0x1;const _0x4516f2={'id':this['id']},_0x2451d4=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3f43a2 of _0x2451d4){const _0x33d58d=_0x5be030[_0x3f43a2];void 0x0!==_0x33d58d&&_0x33d58d!==this[_0x3f43a2]&&(this[_0x3f43a2]=_0x33d58d,_0x4516f2[_0x3f43a2]=_0x33d58d,_0xb40041=!0x0);}_0xb40041&&(_0x4516f2['authors']&&(_0x4516f2['authorsIds']=_0x4516f2['authors']['map'](_0x23db37=>_0x23db37['id']),delete _0x4516f2['authors']),this['fire']('_update',_0x4516f2,_0x38b4cc));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3a6bfb=>_0x3a6bfb['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(_0x72c4e6){super(_0x72c4e6),this['_revisions']=new Collection();}['afterInit'](){checkLicense$5(this);}['createRevision'](_0x615ddd){const _0x56cf2a=this['editor']['plugins']['get']('Users');return new Revision({'id':_0x615ddd['id'],'name':_0x615ddd['name'],'creator':_0x615ddd['creatorId']?_0x56cf2a['getUser'](_0x615ddd['creatorId']):null,'diffData':_0x615ddd['diffData']||_0x615ddd['data'],'authors':_0x615ddd['authorsIds']['map'](_0x4a67e1=>_0x56cf2a['getUser'](_0x4a67e1)),'createdAt':new Date(_0x615ddd['createdAt']),'attributes':_0x615ddd['attributes'],'fromVersion':_0x615ddd['fromVersion'],'toVersion':_0x615ddd['toVersion']});}['addRevision'](_0x232047,_0x372bd7=0x0){this['_revisions']['add'](_0x232047,_0x372bd7);}['getRevision'](_0x4edf37){return this['_revisions']['get'](_0x4edf37);}['getRevisions'](_0x2d0e29={'toJSON':!0x1}){const _0x54434d=Array['from'](this['_revisions']);return _0x54434d['reverse'](),_0x2d0e29['toJSON']?_0x54434d['map'](_0x384be2=>_0x384be2['toJSON']()):_0x54434d;}['getIndex'](_0x1c6e1f){return this['_revisions']['getIndex'](_0x1c6e1f);}['getEarlierVisibleRevision'](_0x162a37){const [,_0xa79c5a]=this['getRevisionsIterator'](_0x162a37,{'direction':'earlier'});return _0xa79c5a;}['getLaterVisibleRevision'](_0x434146){const [,_0x43a2f2]=this['getRevisionsIterator'](_0x434146,{'direction':'later'});return _0x43a2f2;}['getRevisionsInDiff'](_0x35aa09){const _0x2404ee=[];for(const _0x4ece59 of this['getRevisionsIterator'](_0x35aa09['newRevisionId']))if(_0x2404ee['push'](_0x4ece59),_0x4ece59['id']===_0x35aa09['oldRevisionId'])break;return _0x2404ee;}*['getRevisionsIterator'](_0x53d401,{direction:_0x3ed107='earlier',filter:_0x49998f=()=>!0x0}={}){const _0x590a1e='earlier'===_0x3ed107?0x1:-0x1;let _0x3e4d0b=this['_revisions']['get'](_0x53d401),_0x33a2ae=this['getIndex'](_0x3e4d0b);for(yield _0x3e4d0b;_0x3e4d0b;){if(_0x33a2ae+=_0x590a1e,_0x3e4d0b=this['getRevision'](_0x33a2ae),!_0x3e4d0b)return;_0x49998f(_0x3e4d0b)&&(yield _0x3e4d0b);}}}async function checkLicense$5(_0x567a12){const _0x453ad1=_0x4c376c([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]),_0x122cb7=0xeb829,_0x20b1d9=window[_0x4c376c([0x44,0x61,0x74,0x65])][_0x4c376c([0x6e,0x6f,0x77])](),_0x3d2213=_0x567a12[_0x4c376c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ea6c3=new window[(_0x4c376c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11fcff=>{_0x3d2213[_0x4c376c([0x6f,0x6e,0x63,0x65])](_0x4c376c([0x72,0x65,0x61,0x64,0x79]),_0x11fcff);}),_0xce4b06={[_0x4c376c([0x6b,0x74,0x79])]:_0x4c376c([0x45,0x43]),[_0x4c376c([0x75,0x73,0x65])]:_0x4c376c([0x73,0x69,0x67]),[_0x4c376c([0x63,0x72,0x76])]:_0x4c376c([0x50,0x2d,0x32,0x35,0x36]),[_0x4c376c([0x78])]:_0x4c376c([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]),[_0x4c376c([0x79])]:_0x4c376c([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]),[_0x4c376c([0x61,0x6c,0x67])]:_0x4c376c([0x45,0x53,0x32,0x35,0x36])},_0x2fc448=_0x3d2213[_0x4c376c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c376c([0x67,0x65,0x74])](_0x4c376c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0xba28c3=await(async function(){let _0x39b97c,_0x3a3125=null,_0x21d897=null;try{if(_0x2fc448==_0x4c376c([0x47,0x50,0x4c]))return _0x4c376c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x39b97c=(function(){const _0x5ee669=_0x2fc448[_0x4c376c([0x73,0x70,0x6c,0x69,0x74])](_0x4c376c([0x2e]));if(0x3!=_0x5ee669[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x21c7ca=_0x5ee669[0x1];return _0x15b32d(_0x21c7ca);function _0x15b32d(_0x119df3){const _0x57a9fb=_0x2697ce(_0x119df3);return _0x57a9fb&&_0x58a4b6()?_0x57a9fb:null;function _0x58a4b6(){const _0x184921=_0x57a9fb[_0x4c376c([0x6a,0x74,0x69])],_0x37caf5=window[_0x4c376c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x184921[_0x4c376c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x184921[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16a40c={..._0x57a9fb,[_0x4c376c([0x6a,0x74,0x69])]:_0x184921[_0x4c376c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x184921[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16a40c[_0x4c376c([0x76,0x63])],_0x75f035(_0x16a40c)==_0x37caf5;}}}()),!_0x39b97c)return _0x4c376c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x39b97c[_0x4c376c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21d897=function(_0x2b110f,_0x5b7c59){return new window[(_0x4c376c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x324ad7=>{if(_0x76cb40())return _0x324ad7(_0x4c376c([0x56,0x61,0x6c,0x69,0x64]));_0x12fbe6(),_0x3d2213[_0x4c376c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c376c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3228cb=!0x1;const _0x4d572e=uid();function _0x47c50c(_0x1da6e4){return!!_0x1da6e4&&(typeof _0x1da6e4===_0x4c376c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1da6e4===_0x4c376c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1da6e4[_0x4c376c([0x74,0x68,0x65,0x6e])]===_0x4c376c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1da6e4[_0x4c376c([0x63,0x61,0x74,0x63,0x68])]===_0x4c376c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16b944(_0x3f6351){_0xb442d3(_0x3f6351)[_0x4c376c([0x74,0x68,0x65,0x6e])](_0x5af3b3=>{if(!_0x5af3b3||_0x5af3b3[_0x4c376c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c376c([0x6f,0x6b]))return _0x4c376c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6a592a(_0x75f035(_0x4d572e+_0x5b7c59))!=_0x5af3b3[_0x4c376c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c376c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c376c([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c376c([0x74,0x68,0x65,0x6e])](_0x531253=>(_0x57e9a9(),_0x531253),()=>{const _0x4f0efa=_0x5a4b0c();return null==_0x4f0efa?(_0x57e9a9(),_0x4c376c([0x56,0x61,0x6c,0x69,0x64])):_0x4c376c(_0x20b1d9-_0x4f0efa>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c376c([0x74,0x68,0x65,0x6e])](_0x324ad7)[_0x4c376c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x324ad7(_0x4c376c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x43e2de=0x36ee80;function _0x57e9a9(){const _0x18cddd=_0x4c376c([0x6c,0x6c,0x63,0x74,0x2d])+_0x6a592a(_0x75f035(_0x2b110f)),_0x1863e3=_0xa2f424(_0x6a592a(window[_0x4c376c([0x4d,0x61,0x74,0x68])][_0x4c376c([0x63,0x65,0x69,0x6c])](_0x20b1d9/_0x43e2de)));window[_0x4c376c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c376c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18cddd,_0x1863e3);}function _0x5a4b0c(){const _0x2ce657=_0x4c376c([0x6c,0x6c,0x63,0x74,0x2d])+_0x6a592a(_0x75f035(_0x2b110f)),_0x177921=window[_0x4c376c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c376c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ce657);return _0x177921?window[_0x4c376c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa2f424(_0x177921),0x10)*_0x43e2de:null;}function _0xb442d3(_0x1345bd){return new window[(_0x4c376c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2dc58a,_0x4ea7c4)=>{_0x1345bd[_0x4c376c([0x74,0x68,0x65,0x6e])](_0x2dc58a,_0x4ea7c4),window[_0x4c376c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ea7c4,0x1d4c0);});}}_0x3d2213[_0x4c376c([0x6f,0x6e])](_0x4c376c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2dda1e,_0x5c1092)=>{if(_0x5c1092[0x0]!=_0x2b110f)return _0x324ad7(_0x4c376c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c1092[0x1]={..._0x5c1092[0x1],[_0x4c376c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d572e};},{[_0x4c376c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c376c([0x68,0x69,0x67,0x68])}),_0x3d2213[_0x4c376c([0x6f,0x6e])](_0x4c376c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45416a=>{_0x47c50c(_0x45416a[_0x4c376c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3228cb=!0x0,_0x16b944(_0x45416a[_0x4c376c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c376c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c376c([0x6c,0x6f,0x77])}),_0x2ea6c3[_0x4c376c([0x74,0x68,0x65,0x6e])](()=>{_0x3228cb||_0x324ad7(_0x4c376c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x76cb40(){return _0x3d2213[_0x4c376c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c376c([0x76,0x69,0x65,0x77])][_0x4c376c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c376c([0x61,0x75,0x74,0x6f]);}function _0x12fbe6(){_0x3d2213[_0x4c376c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c376c([0x76,0x69,0x65,0x77])][_0x4c376c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c376c([0x61,0x75,0x74,0x6f]);}}(_0x39b97c[_0x4c376c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x39b97c[_0x4c376c([0x6a,0x74,0x69])]));const _0xd975cf=await(async function(){let _0x8bdfdf=!0x0;try{const _0x53bef6=_0x2fc448[_0x4c376c([0x73,0x70,0x6c,0x69,0x74])](_0x4c376c([0x2e])),[_0x4eb9c6,_0x4253c6,_0xca51df]=_0x53bef6;return _0x48b097(_0x4eb9c6),await _0x4a4690(_0x4eb9c6,_0x4253c6,_0xca51df),_0x8bdfdf;}catch{return!0x1;}function _0x48b097(_0x158bda){const _0x401a88=_0x2697ce(_0x158bda);_0x401a88&&_0x401a88[_0x4c376c([0x61,0x6c,0x67])]==_0x4c376c([0x45,0x53,0x32,0x35,0x36])||(_0x8bdfdf=!0x1);}async function _0x4a4690(_0x202d6f,_0x197001,_0xd4a427){const _0x35a109=window[_0x4c376c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c376c([0x66,0x72,0x6f,0x6d])](_0x5da05d(_0xd4a427),_0x5c686d=>_0x5c686d[_0x4c376c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f9fe5=new window[(_0x4c376c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c376c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x202d6f+_0x4c376c([0x2e])+_0x197001),_0x223b79=window[_0x4c376c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c376c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x223b79)return;const _0x5875dd=await _0x223b79[_0x4c376c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c376c([0x6a,0x77,0x6b]),_0xce4b06,{[_0x4c376c([0x6e,0x61,0x6d,0x65])]:_0x4c376c([0x45,0x43,0x44,0x53,0x41]),[_0x4c376c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c376c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c376c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x223b79[_0x4c376c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c376c([0x6e,0x61,0x6d,0x65])]:_0x4c376c([0x45,0x43,0x44,0x53,0x41]),[_0x4c376c([0x68,0x61,0x73,0x68])]:{[_0x4c376c([0x6e,0x61,0x6d,0x65])]:_0x4c376c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5875dd,_0x35a109,_0x2f9fe5)||(_0x8bdfdf=!0x1);}}());return _0xd975cf?(function(){const _0x2ce2e7=_0x39b97c[_0x4c376c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2ce2e7)return!0x1;if(_0x2ce2e7[_0x4c376c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c376c([0x2a])))return!0x0;if(_0x2ce2e7[_0x4c376c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c376c([0x52,0x48])))return!0x0;if(_0x2ce2e7[_0x4c376c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c376c([0x52,0x52,0x48]))){if(_0x275371(_0x4c376c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x370c51(_0x4c376c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4c376c([0x73,0x74,0x61,0x74,0x65])]==_0x4c376c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x275371(_0x4c376c([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]))||_0x275371(_0x4c376c([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 _0x22c67a=[_0x4c376c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c376c([0x74,0x72,0x69,0x61,0x6c])][_0x4c376c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39b97c[_0x4c376c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20b1d9/0x3e8:0x69d59a80;return _0x39b97c[_0x4c376c([0x65,0x78,0x70])]<_0x22c67a;}())?_0x4c376c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x26b982=_0x39b97c[_0x4c376c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26b982||0x0==_0x26b982[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3fa297}=new URL(window[_0x4c376c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26b982[_0x4c376c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fa297))return!0x0;const _0x629b56=_0x3fa297[_0x4c376c([0x73,0x70,0x6c,0x69,0x74])](_0x4c376c([0x2e]));return _0x26b982[_0x4c376c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e0efd=>_0x2e0efd[_0x4c376c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c376c([0x2a])))[_0x4c376c([0x6d,0x61,0x70])](_0xe98eca=>_0xe98eca[_0x4c376c([0x73,0x70,0x6c,0x69,0x74])](_0x4c376c([0x2e])))[_0x4c376c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4184c9=>_0x4184c9[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x629b56[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c376c([0x6d,0x61,0x70])](_0x47d49d=>Array(_0x629b56[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47d49d[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c376c([0x66,0x69,0x6c,0x6c])](_0x47d49d[0x0]===_0x4c376c([0x2a])?_0x4c376c([0x2a]):'')[_0x4c376c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47d49d))[_0x4c376c([0x73,0x6f,0x6d,0x65])](_0x2e99a5=>_0x629b56[_0x4c376c([0x65,0x76,0x65,0x72,0x79])]((_0x509cc2,_0x388456)=>_0x2e99a5[_0x388456]===_0x509cc2||_0x2e99a5[_0x388456]===_0x4c376c([0x2a])));}())?(_0x39b97c[_0x4c376c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c376c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a3125=function(_0x3c20e2){const _0x1c7390=new window[(_0x4c376c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18f4ed=>setTimeout(_0x18f4ed,0x93ecc)),_0x1dfdd2=_0x2ea6c3[_0x4c376c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c376c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21eed7=>{const _0x12af3a=0x7,_0x1276a7=_0x567a12[_0x4c376c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3e6a11(){_0x1276a7[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x12af3a&&_0x21eed7();}_0x3e6a11(),_0x1276a7[_0x4c376c([0x6f,0x6e])](_0x4c376c([0x61,0x64,0x64]),_0x3e6a11);})),_0x75e6a6=new window[(_0x4c376c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25e4ac=>{function _0xc8836e(){for(const _0x1db8cc in window)if(window[_0x4c376c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4c376c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1db8cc))&&window[_0x1db8cc]==_0x122cb7)return _0x25e4ac();_0x3d2213[_0x4c376c([0x73,0x74,0x61,0x74,0x65])]!=_0x4c376c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4c376c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc8836e,0x1388);}_0x275371(_0x4c376c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xc8836e();}),_0x48550a=[_0x1c7390,_0x1dfdd2,_0x75e6a6];return window[_0x4c376c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c376c([0x72,0x61,0x63,0x65])](_0x48550a)[_0x4c376c([0x74,0x68,0x65,0x6e])](()=>_0x3c20e2);}(_0x4c376c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x3a3125&&_0x21d897)return new window[(_0x4c376c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5eb1ff,_0x2a40d8)=>{_0x3a3125[_0x4c376c([0x74,0x68,0x65,0x6e])](_0x5eb1ff,_0x2a40d8),_0x21d897[_0x4c376c([0x74,0x68,0x65,0x6e])](_0x2f9318=>{_0x2f9318!=_0x4c376c([0x56,0x61,0x6c,0x69,0x64])&&_0x5eb1ff(_0x2f9318);},_0x2a40d8);});return _0x3a3125||_0x21d897||_0x4c376c([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4c376c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c376c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c376c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4c376c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x3b5a24(){const _0x41dd08=window[_0x4c376c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c376c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c376c([0x6e,0x6f,0x77])]())[_0x4c376c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c376c([0x2e]),'');let _0x1f8e6a=_0x4c376c([0x76]);for(let _0x161b63=0x0;_0x161b63<_0x41dd08[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x161b63+=0x2){let _0x29b4e2=window[_0x4c376c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41dd08[_0x4c376c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x161b63,_0x161b63+0x2));_0x29b4e2>=_0x453ad1[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29b4e2-=_0x453ad1[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f8e6a+=_0x453ad1[_0x29b4e2];}return _0x1f8e6a;}function _0x2697ce(_0x127aeb){return _0x127aeb[_0x4c376c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c376c([0x65,0x79]))?JSON[_0x4c376c([0x70,0x61,0x72,0x73,0x65])](_0x5da05d(_0x127aeb)):null;}function _0x5da05d(_0x464fd0){return window[_0x4c376c([0x61,0x74,0x6f,0x62])](_0x464fd0[_0x4c376c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c376c([0x2b]))[_0x4c376c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c376c([0x2f])));}function _0x75f035(_0x275685){let _0x952b5c=0x1505;function _0x376719(_0x46ea51){for(let _0x4117be=0x0;_0x4117be<_0x46ea51[_0x4c376c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4117be++){const _0x54cc3e=_0x46ea51[_0x4c376c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4117be);_0x952b5c=(_0x952b5c<<0x5)+_0x952b5c+_0x54cc3e,_0x952b5c&=_0x952b5c;}}return function _0x58d64f(_0x1ea348){Array[_0x4c376c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ea348)?_0x1ea348[_0x4c376c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58d64f):_0x1ea348&&typeof _0x1ea348==_0x4c376c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c376c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ea348)[_0x4c376c([0x73,0x6f,0x72,0x74])]()[_0x4c376c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a8ba7,_0x4aec97])=>{_0x376719(_0x5a8ba7),_0x58d64f(_0x4aec97);}):_0x376719(window[_0x4c376c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ea348));}(_0x275685),_0x952b5c>>>0x0;}function _0x6a592a(_0x20d595){return _0x20d595[_0x4c376c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c376c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c376c([0x30]));}function _0xa2f424(_0x133526){return _0x133526[_0x4c376c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c376c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c376c([0x6a,0x6f,0x69,0x6e])]('');}function _0x275371(_0x452e18){return _0x3d2213[_0x4c376c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4c376c([0x68,0x61,0x73])](_0x452e18);}function _0x370c51(_0x2976a3){return _0x3d2213[_0x4c376c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4c376c([0x67,0x65,0x74])](_0x2976a3);}function _0x5dfdc8(){}function _0x4c376c(_0x241d28){return _0x241d28['map'](_0x1c0148=>String['fromCharCode'](_0x1c0148))['join']('');}!function(_0x4cf3dc){const _0xa0fcc9=_0x3b5a24();_0x3d2213[_0xa0fcc9]=_0x4c376c([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])+_0x4cf3dc,_0x4cf3dc[_0x4c376c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4c376c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3b5a24()]=_0x122cb7),_0x4cf3dc!=_0x4c376c([0x56,0x61,0x6c,0x69,0x64])&&(async function(){if(await _0x2ea6c3,_0x275371(_0x4c376c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1c05ca=_0x567a12[_0x4c376c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3136e1=_0x567a12[_0x4c376c([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])](_0x1c05ca[_0x4c376c([0x69,0x64])]),_0x1f5e55=_0x370c51(_0x4c376c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1f5e55[_0x4c376c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1c05ca['id'],_0x3136e1?_0x3136e1['id']:null,!0x0),_0x1f5e55[_0x4c376c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4c376c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1f5e55[_0x4c376c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1f5e55[_0x4c376c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5dfdc8,void(_0x1f5e55[_0x4c376c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5dfdc8);}if(_0x275371(_0x4c376c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x577572=_0x370c51(_0x4c376c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x577572[_0x4c376c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4c376c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x577572[_0x4c376c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x577572[_0x4c376c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5dfdc8,_0x577572[_0x4c376c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5dfdc8;}_0x3d2213[_0x4c376c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c376c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5dfdc8,_0x3d2213[_0x4c376c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c376c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5dfdc8,_0x3d2213[_0x4c376c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c376c([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0xba28c3);}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'](_0x54fb87,_0x221b32){if(_0x54fb87['diffData']||!_0x221b32)return;const _0x2fc2e2=this['editor']['config']['get']('collaboration.channelId'),_0x2d948c=await _0x221b32['getRevision']({'channelId':_0x2fc2e2,'revisionId':_0x54fb87['id']});_0x54fb87['diffData']=_0x2d948c['diffData'];}['getRevisionDocumentData'](_0x521c2a){const _0x542b13={};for(const _0x916c2a in _0x521c2a['diffData']){if(_0x521c2a['diffData'][_0x916c2a]['attachChange']&&!_0x521c2a['diffData'][_0x916c2a]['attachChange']['isAttached'])continue;const _0x3ac90f=this['_removeRevisionMarkers'](JSON['parse'](_0x521c2a['diffData'][_0x916c2a]['insertions'])),_0x4b05db=this['editor']['editing']['view']['document'],_0x2cee31=new ViewDocumentFragment(_0x4b05db,_0x3ac90f['map'](_0xd37b46=>this['_getViewFromDiffObj'](_0xd37b46,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x542b13[_0x916c2a]=this['editor']['data']['processor']['toData'](_0x2cee31),this['editor']['data']['processor']['useFillerType']('default');}return _0x542b13;}['getRevisionRootsAttributes'](_0x52488d){const _0x499883={};for(const _0x5e1966 in _0x52488d['diffData'])_0x52488d['diffData'][_0x5e1966]['attachChange']&&!_0x52488d['diffData'][_0x5e1966]['attachChange']['isAttached']||(_0x499883[_0x5e1966]=_0x52488d['diffData'][_0x5e1966]['attributesAfter']||{});return _0x499883;}['_getTypeCharForViewElement'](_0x22f2af){return this['_viewClassToTypeChar']['get'](_0x22f2af['constructor']);}['_getViewFromDiffObj'](_0x315f54,_0x517f70){const _0x558e63=this['editor']['editing']['view']['document'];if('string'==typeof _0x315f54)return new ViewText(_0x558e63,_0x315f54);{let _0xd73c41,_0x130b85;_0x130b85='u'==_0x315f54['type']||'r'==_0x315f54['type']?[]:_0x315f54['children']['map'](_0x3a3517=>this['_getViewFromDiffObj'](_0x3a3517,_0x517f70));const _0x1cadbb=this['_typeCharToViewClass']['get'](_0x315f54['type'])||ViewElement,_0x5a55d5=this['editor']['data']['htmlProcessor']['domConverter'];if(_0xd73c41=new _0x1cadbb(_0x558e63,_0x315f54['name'],_0x315f54['attributes'],_0x130b85),'u'==_0x315f54['type']&&_0x315f54['children'][0x0]){const _0x34ae5a=_0x315f54['children'][0x0];if(_0xd73c41['render']=function(_0x2bde52){const _0x4296da=_0x2bde52['createElement']('div');return _0x4296da['innerHTML']=_0x34ae5a,_0x4296da['childNodes'][0x0];},_0x517f70){const _0x32a852=new ViewDocumentFragment(_0x558e63);_0x32a852['_appendChild'](_0xd73c41);const _0x4ce662=Array['from'](_0x5a55d5['viewChildrenToDom'](_0x32a852,{'bind':!0x1})),_0x318e9e=_0x5a55d5['domDocument']['createElement']('div');_0x318e9e['append'](..._0x4ce662),_0xd73c41=Array['from'](_0x5a55d5['domChildrenToView'](_0x318e9e))[0x0];}}else{if('r'==_0x315f54['type']&&_0x315f54['children'][0x0]){const _0xfeeda3=_0x315f54['children'][0x0];if(_0xd73c41['render']=function(_0x9b36d9){_0x9b36d9['innerHTML']=_0xfeeda3;},_0x517f70){const _0x1d4d25=new ViewDocumentFragment(_0x558e63);_0x1d4d25['_appendChild'](_0xd73c41);const _0x491607=Array['from'](_0x5a55d5['viewChildrenToDom'](_0x1d4d25,{'bind':!0x1})),_0x92fb07=_0x5a55d5['domDocument']['createElement']('div');_0x92fb07['append'](..._0x491607);const _0x24a57e=Array['from'](_0x5a55d5['domChildrenToView'](_0x92fb07));_0x24a57e['length']>0x1?_0xd73c41['_appendChild'](_0x24a57e):_0xd73c41=_0x24a57e[0x0];}}}if(_0x315f54['customProperties']){for(const [_0x84e5bf,_0x43bf16]of _0x315f54['customProperties'])_0xd73c41['_setCustomProperty'](_0x84e5bf,_0x43bf16);}const _0x43d63e=void 0x0===_0x315f54['fillerOffset']?null:_0x315f54['fillerOffset'];return null!==_0x43d63e&&(_0xd73c41['getFillerOffset']=()=>_0x43d63e),_0xd73c41;}}['_makeModelFromViewString'](_0x388d5a){const _0x155263=JSON['parse'](_0x388d5a),_0x26faae=this['editor']['editing']['view']['document'],_0x41bc9f=new ViewDocumentFragment(_0x26faae,_0x155263['map'](_0xe85883=>this['_getViewFromDiffObj'](_0xe85883,!0x0)));return this['editor']['data']['toModel'](_0x41bc9f);}['_removeRevisionMarkers'](_0x35e54c){return(_0x35e54c=_0x35e54c['filter'](_0x3fe627=>!_0x3fe627['name']||'revision-start'!==_0x3fe627['name']&&'revision-end'!==_0x3fe627['name']))['forEach'](_0x14566e=>{'string'!=typeof _0x14566e&&(_0x14566e['children']=this['_removeRevisionMarkers'](_0x14566e['children']),_0x14566e['attributes']=_0x14566e['attributes']['filter'](_0x2cffb8=>!_0x2cffb8[0x0]['startsWith']('data-revision-')));}),_0x35e54c;}}function getTranslation$5(_0x1cd0be,_0x2af73b,_0x314c01){const t=_0x1cd0be['t'];switch(_0x2af73b){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'},_0x314c01);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x314c01);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(_0xf7bc6c){super(_0xf7bc6c),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 _0x479688=uid();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x479688},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 _0x34d65e=this['repository']['getRevision'](0x0),_0xb67228=_0x34d65e&&null===_0x34d65e['creator']?_0x34d65e:null;if(this['_continueCurrentRevision']=!!_0xb67228&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x583bba=this['_source']['getCurrentRevisionId'](),_0x2f5886=this['repository']['getRevision'](_0x583bba);if(_0x2f5886)this['_startingVersion']=_0x2f5886['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1efe36=this['_source']['history']['_operations']['find'](_0x5eb432=>!_0x5eb432['_isInit']),_0x4b4c91=_0x1efe36?_0x1efe36['baseVersion']:this['_source']['history']['version'];_0x34d65e?(_0x34d65e['toVersion']<_0x4b4c91&&_0x34d65e['_update']({'toVersion':_0x4b4c91}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xb67228['id'],this['_startingVersion']=_0xb67228['fromVersion']):(this['_startingVersion']=_0x34d65e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4b4c91,this['_continueCurrentRevision']=!0x1);}}else _0xb67228&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xb67228['toVersion'],this['editor']['model']['document']['history']['version']),_0xb67228['fromVersion']===_0xb67228['toVersion']?(0x0!==_0xb67228['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xb67228['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xb67228['id'],this['_startingVersion']=_0xb67228['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',_0x424ace=>!_0x424ace),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x438386=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x29c4dd;for(const _0x6d9dab in _0x438386){const _0x2f7321=_0x6d9dab,_0x3a81f6=_0x438386[_0x2f7321];if('revisionHistoryLicenseKeyValid'==_0x3a81f6||'revisionHistoryLicenseKeyInvalid'==_0x3a81f6||'revisionHistoryLicenseKeyExpired'==_0x3a81f6||'revisionHistoryLicenseKeyDomainLimit'==_0x3a81f6||'revisionHistoryLicenseKeyNotAllowed'==_0x3a81f6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3a81f6||'revisionHistoryLicenseKeyUsageLimit'==_0x3a81f6){delete _0x438386[_0x2f7321],_0x29c4dd=_0x3a81f6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x29c4dd&&_0x438386['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x29c4dd&&_0x438386['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x29c4dd&&_0x438386['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x29c4dd&&_0x438386['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x29c4dd&&_0x438386['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x29c4dd&&_0x438386['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x9a69fd=this['repository']['getRevision'](0x0),_0x1ae668=await this['getRevisionDocumentData'](_0x9a69fd),_0x4807fb=await this['getRevisionRootsAttributes'](_0x9a69fd);this['_replaceEditorDataWithRevisionData'](_0x1ae668,_0x4807fb);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x46053e){this['_source']=_0x46053e;}async['update'](){const _0x514051=await this['_source']['getLatestVersion']();if(_0x514051>this['currentRevision']['toVersion']){await this['_loadState']();const _0x27d8c5=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x514051});_0x27d8c5['authors']=_0x27d8c5['authorsIds']['map'](_0x590f8b=>this['editor']['plugins']['get']('Users')['getUser'](_0x590f8b)),this['currentRevision']['_update'](_0x27d8c5);}}async['saveRevision'](_0x14c875={},_0x6bb003=null){const _0x1b3ee4=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x6bb003>this['currentRevision']['toVersion']&&(_0x6bb003=null),null===_0x6bb003&&(_0x6bb003=await this['_source']['getLatestVersion']());const _0x6cd92=this['_getFromVersion'](_0x6bb003),_0x2e9397=this['buildRevisionData']({'from':_0x6cd92,'to':_0x6bb003});if(this['currentRevision']['toVersion']<_0x6bb003){const _0x2738d6=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x6bb003,'to':_0x6bb003});_0x2738d6['authors']=[],_0x2738d6['authorsIds']=[],_0x2738d6['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2738d6,!0x0),delete _0x2738d6['authors'],_0x1b3ee4['push'](_0x2738d6);}_0x14c875['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x14c875['name']=_0x14c875['name']||null,_0x14c875['id']=_0x14c875['id']||uid(),_0x14c875={..._0x14c875,..._0x2e9397};const _0x3ca2d9=this['addRevisionData'](_0x14c875);_0x1b3ee4['push'](_0x14c875);const _0x506987=this['repository']['getIndex'](_0x3ca2d9);if(0x0!==_0x506987){const _0x33c6d9=this['repository']['getRevision'](_0x506987-0x1);if(_0x33c6d9['fromVersion']!==_0x6bb003){const _0x5bdee1=this['_revisionDataBuilder']['getData'](_0x6bb003,_0x33c6d9['toVersion']),_0x39d582={'id':_0x33c6d9['id'],'diffData':_0x5bdee1['diffData'],'authorsIds':_0x5bdee1['authorsIds'],'authors':_0x5bdee1['authorsIds']['map'](_0x2f9dc2=>this['editor']['plugins']['get']('Users')['getUser'](_0x2f9dc2)),'fromVersion':_0x6bb003};_0x33c6d9===this['currentRevision']&&(_0x39d582['createdAt']=new Date(_0x14c875['createdAt']['getTime']()+0xa)),_0x33c6d9['_update'](_0x39d582,!0x0),delete _0x39d582['authors'],_0x1b3ee4['push'](_0x39d582);}}if(this['adapter']){for(const _0x58d91f of _0x1b3ee4)this['_bufferUpdate'](_0x58d91f['id'],_0x58d91f,!0x0);this['sendBufferedUpdates']();}return _0x3ca2d9;}['addRevisionData'](_0x440070){const _0x3d621d=this['repository']['createRevision'](_0x440070);return this['adapter']&&_0x3d621d['on']('_update',(_0x3539da,_0x384e06,_0x1992ee)=>{_0x1992ee||(this['_bufferUpdate'](_0x384e06['id'],_0x384e06,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3d621d,this['_findInsertionIndex'](_0x3d621d)),_0x3d621d;}async['getRevisionDocumentData'](_0x1d251d){return await this['_utils']['loadRevisionData'](_0x1d251d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1d251d);}async['getRevisionRootsAttributes'](_0x5b8aea){return await this['_utils']['loadRevisionData'](_0x5b8aea,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5b8aea);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x36a5bd=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1feb12=0x0;_0x1feb12<_0x36a5bd['length'];_0x1feb12++){const _0x281122=_0x36a5bd[_0x1feb12];let _0xd70df0=!0x1;for(const _0x11597c of Object['keys'](_0x281122))void 0x0===_0x281122[_0x11597c]?delete _0x281122[_0x11597c]:'id'!==_0x11597c&&(_0xd70df0=!0x0);_0xd70df0||(_0x36a5bd[_0x1feb12]=null);}if(_0x36a5bd=_0x36a5bd['filter'](_0x515673=>null!==_0x515673),!_0x36a5bd['length'])return;for(let _0x3098bc=0x0;_0x3098bc<_0x36a5bd['length'];_0x3098bc++){const _0x123b31=_0x36a5bd[_0x3098bc];void 0x0!==_0x123b31['fromVersion']&&void 0x0===_0x123b31['toVersion']&&(_0x123b31['toVersion']=this['repository']['getRevision'](_0x123b31['id'])['toVersion']),void 0x0!==_0x123b31['toVersion']&&void 0x0===_0x123b31['fromVersion']&&(_0x123b31['fromVersion']=this['repository']['getRevision'](_0x123b31['id'])['fromVersion']);}const _0x26c2cd=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x36a5bd,_0x26c2cd)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x38ecef=>{if(_0x38ecef){for(const _0x200bac of _0x38ecef)this['setRevisionData']({'id':_0x200bac['id'],'createdAt':_0x200bac['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x658012=null,from:_0x312ac2=null,to:_0x1f4485=null}){_0x312ac2=null!==_0x312ac2?_0x312ac2:_0x658012['fromVersion'],_0x1f4485=null!==_0x1f4485?_0x1f4485:_0x658012['toVersion'];const _0x10e547=this['_revisionDataBuilder']['getData'](_0x312ac2,_0x1f4485),_0x404a8b={'diffData':_0x10e547['diffData'],'authorsIds':_0x10e547['authorsIds'],'fromVersion':_0x312ac2,'toVersion':_0x1f4485};if(!_0x658012||_0x1f4485!==_0x658012['toVersion']){const _0x22c41d=_0x1f4485-0x1,_0x25637b=this['_source']['history']['getOperation'](_0x22c41d);_0x404a8b['createdAt']=_0x25637b&&_0x25637b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x312ac2===this['_loadedStateData']['fromVersion']){for(const _0x20f91e of this['_loadedStateData']['authors'])_0x404a8b['authorsIds']['includes'](_0x20f91e['id'])||_0x404a8b['authorsIds']['push'](_0x20f91e['id']);}return _0x404a8b;}['_bufferUpdate'](_0x2542c8,_0x155104,_0x226656){if(this['_bufferedUpdates']['has'](_0x2542c8)){const _0x386003=this['_bufferedUpdates']['get'](_0x2542c8);_0x155104=_0x226656?{..._0x386003,..._0x155104}:{..._0x155104,..._0x386003};}this['_bufferedUpdates']['set'](_0x2542c8,_0x155104);}['setRevisionData'](_0x44386b){const _0x22a9ca=this['repository']['getRevision'](_0x44386b['id']);if(_0x44386b['createdAt']&&(_0x44386b['createdAt']=new Date(_0x44386b['createdAt'])),_0x44386b['authorsIds']){const _0xcf6990=this['editor']['plugins']['get']('Users');_0x44386b['authors']=_0x44386b['authorsIds']['map'](_0x2d1474=>_0xcf6990['getUser'](_0x2d1474));}_0x22a9ca['_update'](_0x44386b,!0x0);}['_createInitialRevision'](_0x485acf){const _0x3a4b98=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3a4b98)this['_initialRevisionId']=_0x3a4b98['id'];else{const _0x337769=!this['editor']['model']['document']['roots']['find'](_0xa67534=>this['editor']['model']['hasContent'](_0xa67534)),_0x39fe74=this['editor']['plugins']['get']('Users')['me']['id'],_0x3a12c6=getTranslation$5(this['editor']['locale'],_0x337769?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x485acf,'to':_0x485acf,'id':this['_initialRevisionId'],'name':_0x3a12c6,'creatorId':_0x39fe74});}}['_createCurrentRevision'](_0x2d5e0e){const _0x2c3655=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2c3655),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2d5e0e,'to':_0x2d5e0e,'id':_0x2c3655,'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'](_0x24933c,_0x1cd213){let _0x1b88bb=this['editor']['config']['get']('initialData'),_0x1f4161=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1b88bb){_0x1b88bb={};for(const _0x43d26a of this['editor']['model']['document']['getRootNames']())_0x1b88bb[_0x43d26a]='';}if('string'==typeof _0x1b88bb&&(_0x1b88bb={'main':_0x1b88bb}),void 0x0===_0x1f4161){_0x1f4161={};for(const _0x164362 of this['editor']['model']['document']['getRootNames']())_0x1f4161[_0x164362]={};}let _0x30b04c=!0x1;const _0x2398d6=Object['keys'](_0x1b88bb),_0x3ea893=Object['keys'](_0x24933c);for(const _0x235474 of _0x2398d6){if(_0x1b88bb[_0x235474]!==_0x24933c[_0x235474]&&''!==_0x1b88bb[_0x235474]['trim']()){_0x30b04c=!0x0;break;}if(!isEqual(_0x1f4161[_0x235474],_0x1cd213[_0x235474])&&Object['keys'](_0x1f4161[_0x235474])['length']>0x0){_0x30b04c=!0x0;break;}}_0x30b04c||(_0x30b04c=_0x3ea893['some'](_0xa4781a=>!this['editor']['model']['document']['getRoot'](_0xa4781a))),_0x30b04c&&logWarning('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1b88bb,'editorRootsAttributes':_0x1f4161,'revisionData':_0x24933c,'revisionRootsAttributes':_0x1cd213}),this['editor']['config']['set']('initialData',_0x24933c),this['editor']['config']['set']('rootsAttributes',_0x1cd213);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2d183e=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2d183e['add'](getTranslation$5(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x368d95){const _0x255efa=this['repository']['getRevisions']();_0x255efa['reverse']();let _0x1ca6ec=0x0;for(;_0x1ca6ec<_0x255efa['length'];){const _0x6087bb=_0x255efa[_0x1ca6ec];if(_0x6087bb===this['currentRevision']){_0x1ca6ec++;continue;}if(_0x6087bb['id']===this['_initialRevisionId'])break;const _0x15a06d=_0x368d95['toVersion']-_0x6087bb['toVersion']||_0x368d95['fromVersion']-_0x6087bb['fromVersion'];if(_0x15a06d>0x0)break;if(_0x15a06d<0x0)_0x1ca6ec++;else{if(!_0x368d95['creator']&&_0x6087bb['creator'])break;if(_0x6087bb['creator']||!_0x368d95['creator']){if(_0x368d95['createdAt']>_0x6087bb['createdAt'])break;_0x1ca6ec++;}else _0x1ca6ec++;}}return _0x1ca6ec;}['_getFromVersion'](_0x10a551){const _0x372804=this['repository']['getRevisions']();_0x372804['reverse'](),_0x372804['shift']();const _0x2ba08b=_0x372804['find'](_0x4f7bce=>_0x4f7bce['toVersion']<=_0x10a551)['toVersion'];return _0x2ba08b<this['_startingVersion']?this['_startingVersion']:_0x2ba08b;}['_makeRevision']({name:_0x2d966a,from:_0x594113,to:_0x26e9fe,creatorId:_0x327c43,id:_0x55a465}){const _0x52a897=this['buildRevisionData']({'from':_0x594113,'to':_0x26e9fe});_0x52a897['name']=_0x2d966a,_0x52a897['creatorId']=_0x327c43,_0x52a897['id']=_0x55a465;const _0x3152d7=this['addRevisionData'](_0x52a897);return this['adapter']&&this['_bufferUpdate'](_0x52a897['id'],_0x52a897,!0x0),_0x3152d7;}['_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(_0x5f2cbc){this['editor']=_0x5f2cbc,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'](_0x20e641){this['source']=_0x20e641;const _0x279329=new Map(),_0x2c679f=new Map(),_0x1213f5=this['editor']['model']['document']['roots']['map'](_0x441f1a=>_0x441f1a['rootName']);for(const _0x551e18 of _0x1213f5){const _0xeeef52=this['editor']['model']['document']['getRoot'](_0x551e18),_0xa26e53=_cloneRoot(_0xeeef52);_0x279329['set'](_0x551e18,_0xa26e53),_0x2c679f['set'](_0x551e18,Object['fromEntries'](_0xeeef52['getAttributes']()));}const _0x5b1f7c=Array['from'](this['editor']['model']['markers'])['map'](_0x38667=>[_0x38667['name'],_0x38667['getRange']()]),_0x24cb5c=this['source']['version'];this['_saveMetaData'](_0x24cb5c,_0x279329,_0x5b1f7c,_0x2c679f),this['_startingRevisionId']=this['_revisionId'];const _0x4b5190=new Map(),_0x3f8c73=new Map();for(const _0x32b288 of _0x1213f5){const _0x422d8a=_emptyRoot(_0x32b288);_0x4b5190['set'](_0x32b288,_0x422d8a),_0x3f8c73['set'](_0x32b288,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4b5190,[],_0x3f8c73);}['getData'](_0x11ee52,_0xdb7f99){if(this['_lastFrom']===_0x11ee52&&this['_lastTo']<=_0xdb7f99)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xdb7f99,!0x0);else{if(!this['_savedMetaData']['has'](_0x11ee52)){const _0xd10d5=this['_getPreviousFrom'](_0x11ee52);this['_calculateMetaData'](_0xd10d5,_0x11ee52,!0x1);}this['_calculateMetaData'](_0x11ee52,_0xdb7f99,!0x0);}return this['_lastFrom']=_0x11ee52,this['_lastTo']=_0xdb7f99,this['_getState']();}['loadState'](_0x12193e){if(!this['_savedMetaData']['has'](_0x12193e['fromVersion'])){const _0x4212f1=this['_getPreviousFrom'](_0x12193e['fromVersion']);this['_calculateMetaData'](_0x4212f1,_0x12193e['fromVersion'],!0x1);}this['_calculateMetaData'](_0x12193e['fromVersion'],_0x12193e['toVersion'],!0x1);const _0x5f2217=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x12193e['fromVersion'],this['_lastTo']=_0x12193e['toVersion'];for(const _0x1cad3e in _0x12193e['diffData']){const _0xdb52ac=_0x12193e['diffData'][_0x1cad3e]['attachChange'],_0x4b79e6=cloneDeep(_0x12193e['diffData'][_0x1cad3e]['attributesBefore'])||{},_0x2c9b49=_0x5f2217['_makeModelFromViewString'](_0x12193e['diffData'][_0x1cad3e]['deletions']);_0x2c9b49['rootName']=_0x1cad3e,_0x2c9b49['_isAttached']=!_0xdb52ac||!_0xdb52ac['isAttached'],_0x2c9b49['isAttached']=()=>_0x2c9b49['_isAttached'],this['_baseRoots']['set'](_0x1cad3e,_0x2c9b49),this['_baseRootsAttributes']['set'](_0x1cad3e,_0x4b79e6),_0xdb52ac&&this['_touchedRoots']['set'](_0x1cad3e,_0xdb52ac);const _0x473e3e=this['_makeIdsRoot'](_0x2c9b49);this['_baseIdsRoots']['set'](_0x1cad3e,_0x473e3e);for(const [_0x108e6c,_0x5690a3]of _0x2c9b49['markers']){if(!_0x108e6c['startsWith']('revision:'))continue;const _0x3b65ab=_0x108e6c['split'](':')[0x2];for(const _0x49452c of _0x5690a3['getWalker']({'singleCharacters':!0x0})){const _0x5804e3=this['_getVidAttributeName'](_0x49452c),_0x239da3='elementEnd'==_0x49452c['type']?_0x49452c['previousPosition']['path']['slice'](0x0,-0x1):_0x49452c['previousPosition']['path'],_0x2b6b6a=_0x473e3e['getNodeByPath'](_0x239da3)['getAttribute'](_0x5804e3);this['_touched']['set'](_0x2b6b6a,{'userId':_0x3b65ab});}_0x2c9b49['markers']['delete'](_0x108e6c);}}this['_startingRevisionId']=this['_revisionId'];const _0xe08a64=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x553b61=>!this['_touched']['has'](_0x553b61));let _0x1d4d6e=0x0;const _0x16d3e0=new Map();for(const _0x44638e in _0x12193e['diffData']){const _0x5f1ec2=_0x12193e['diffData'][_0x44638e]['attachChange'],_0x362a1e=cloneDeep(_0x12193e['diffData'][_0x44638e]['attributesAfter'])||{},_0x4a92a9=_0x5f2217['_makeModelFromViewString'](_0x12193e['diffData'][_0x44638e]['insertions']);_0x4a92a9['rootName']=_0x44638e,_0x4a92a9['_isAttached']=!_0x5f1ec2||_0x5f1ec2['isAttached'],_0x4a92a9['isAttached']=()=>_0x4a92a9['_isAttached'],this['_diffRoots']['set'](_0x44638e,_0x4a92a9),this['_diffRootsAttributes']['set'](_0x44638e,_0x362a1e);const _0x207a46=this['_makeIdsRoot'](_0x4a92a9,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x44638e,_0x207a46),_0x16d3e0['set'](_0x44638e,_0x4a92a9['isAttached']()?_0x362a1e:{});for(const [_0x4cc7e2,_0x511ccc]of _0x4a92a9['markers']){if(!_0x4cc7e2['startsWith']('revision:'))continue;const _0x45d0a3=_0x4cc7e2['split'](':')[0x2];for(const _0x56a9fe of _0x511ccc['getWalker']({'singleCharacters':!0x0})){const _0x4df5c0=this['_getVidAttributeName'](_0x56a9fe),_0x4760c7=this['_revisionId']++,_0x3d4557='elementEnd'==_0x56a9fe['type']?_0x56a9fe['previousPosition']['path']['slice'](0x0,-0x1):_0x56a9fe['previousPosition']['path'];_0x207a46['getNodeByPath'](_0x3d4557)['_setAttribute'](_0x4df5c0,_0x4760c7),this['_touched']['set'](_0x4760c7,{'userId':_0x45d0a3});}_0x4a92a9['markers']['delete'](_0x4cc7e2);}for(const _0x5c18c5 of this['editor']['model']['createRangeIn'](_0x4a92a9)['getWalker']({'singleCharacters':!0x0})){const _0x13617d=this['_getVidAttributeName'](_0x5c18c5),_0x1c3e1a='elementEnd'==_0x5c18c5['type']?_0x5c18c5['previousPosition']['path']['slice'](0x0,-0x1):_0x5c18c5['previousPosition']['path'],_0x30f191=_0x207a46['getNodeByPath'](_0x1c3e1a);_0x30f191['getAttribute'](_0x13617d)>0x0||_0x30f191['_setAttribute'](_0x13617d,_0xe08a64[_0x1d4d6e++]);}for(const [_0x9c9775,_0x53362f]of _0x4a92a9['markers'])_0x9c9775['startsWith']('revision:')||this['_markers']['set'](_0x9c9775,_0x53362f);}const {roots:_0x5f468a}=this['_savedMetaData']['get'](_0x12193e['fromVersion']),{roots:_0x2a872b}=this['_savedMetaData']['get'](_0x12193e['toVersion']),_0x354b29=_cloneRoot(_0x5f468a['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x354b29),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x354b29,Number['NEGATIVE_INFINITY']));const _0x159a32=_cloneRoot(_0x2a872b['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x159a32),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x159a32));const _0x18d61c=Array['from'](this['_diffRoots'])['map'](([_0x23a65d,_0x5397d4])=>[_0x23a65d,_cloneRoot(_0x5397d4)]);this['_saveMetaData'](this['_lastTo'],_0x18d61c,this['_markers'],_0x16d3e0);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x33f698,_0x1390fd,_0x40f982,_0xad0cfe){const _0x555b6=new Map(_0x1390fd),_0x309cf0=new Map(cloneDeep(_0xad0cfe)),_0x2b63e0=new Map();for(const [_0x524935,_0x283a7b]of _0x40f982)_0x2b63e0['set'](_0x524935,{'start':_0x283a7b['start']['clone'](),'end':_0x283a7b['end']['clone'](),'rootName':_0x283a7b['root']['rootName']});this['_savedMetaData']['set'](_0x33f698,{'roots':_0x555b6,'markers':_0x2b63e0,'rootsAttributes':_0x309cf0});}['_removeMetaData'](_0x5c187e){this['_savedMetaData']['delete'](_0x5c187e);}['_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'](_0x3237a4,_0x409dec=null){let _0x6333af=null;_0x3237a4['is']('documentFragment')||(_0x6333af=new ModelElement(_0x3237a4['name'],{'vid_start':null===_0x409dec?this['_revisionId']++:_0x409dec++}));const _0x1a639a=[];for(const _0x559de7 of _0x3237a4['getChildren']())if(_0x559de7['is']('element')){_0x1a639a['push'](this['_makeIdsRoot'](_0x559de7,_0x409dec));const _0x4349a4=_0x1a639a[_0x1a639a['length']-0x1];null!==_0x409dec&&(_0x409dec=_0x4349a4['is']('element','$text')?_0x4349a4['getAttribute']('vid')+0x1:_0x4349a4['getAttribute']('vid_end')+0x1);}else{for(let _0x463f75=0x0;_0x463f75<_0x559de7['offsetSize'];_0x463f75++)_0x1a639a['push'](new ModelElement('$text',{'vid':null===_0x409dec?this['_revisionId']++:_0x409dec++}));}if(_0x3237a4['is']('documentFragment')){const _0x112bf8=_emptyRoot(_0x3237a4['rootName']);return _0x112bf8['_insertChild'](0x0,_0x1a639a),_0x112bf8;}return _0x6333af['_setAttribute']('vid_end',null===_0x409dec?this['_revisionId']++:_0x409dec++),_0x6333af['_insertChild'](0x0,_0x1a639a),_0x6333af;}['_calculateMetaData'](_0x400c95,_0x3627bc,_0x495334){this['_reset']();const {roots:_0x34103f,markers:_0x37bf38,rootsAttributes:_0x16b5f5}=this['_savedMetaData']['get'](_0x400c95);this['_baseRoots']=new Map(_0x34103f),this['_baseRootsAttributes']=new Map(cloneDeep(_0x16b5f5));for(const [_0x6fa17a,_0x3f5625]of this['_baseRoots'])if('$graveyard'!==_0x6fa17a&&(this['_diffRoots']['set'](_0x6fa17a,_cloneRoot(_0x3f5625)),this['_diffRootsAttributes']=new Map(cloneDeep(_0x16b5f5)),_0x495334)){const _0x8749ec=this['_revisionId'];this['_idsRoots']['set'](_0x6fa17a,this['_makeIdsRoot'](_0x3f5625)),this['_baseIdsRoots']['set'](_0x6fa17a,this['_makeIdsRoot'](_0x3f5625,_0x8749ec));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',_cloneRoot(this['_baseRoots']['get']('$graveyard'))),_0x495334&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1150fe,_0x124c73]of _0x37bf38){const _0x4dbca9=this['_baseRoots']['get'](_0x124c73['rootName']),_0x1c3886=this['_diffRoots']['get'](_0x124c73['rootName']),_0x511656=new ModelRange(this['_fixPosition'](_0x124c73['start'],_0x4dbca9),this['_fixPosition'](_0x124c73['end'],_0x4dbca9)),_0x508ae1=this['_fixRange'](_0x511656,_0x1c3886);_0x4dbca9['markers']['set'](_0x1150fe,_0x511656),this['_markers']['set'](_0x1150fe,_0x508ae1);}this['_applyOperations'](_0x400c95,_0x3627bc,_0x495334);}['_applyOperations'](_0x3164b9,_0x563824,_0x108e18){for(const _0x4f1e0f of this['source']['getOperations'](_0x3164b9,_0x563824))this['_handleOperation'](_0x4f1e0f,_0x108e18);for(const _0x30d882 of this['_diffRoots']['values']())_0x30d882['markers']['clear']();for(const [_0x1363eb,_0x56bbf9]of this['_markers']){this['_diffRoots']['get'](_0x56bbf9['root']['rootName'])['markers']['set'](_0x1363eb,_0x56bbf9['clone']());}const _0x5cfea6=new Map(),_0x49d890=new Map();for(const [_0x447f6c,_0x40c31e]of this['_diffRoots'])_0x5cfea6['set'](_0x447f6c,_cloneRoot(_0x40c31e)),_0x49d890['set'](_0x447f6c,this['_diffRootsAttributes']['get'](_0x447f6c));this['_saveMetaData'](_0x563824,_0x5cfea6,this['_markers'],_0x49d890);}['_getPreviousFrom'](_0x1e2272){const _0x21c701=Array['from'](this['_savedMetaData']['keys']());_0x21c701['sort']((_0x85fd68,_0x1f0afe)=>_0x85fd68-_0x1f0afe),_0x21c701['reverse']();for(const _0x1534c3 of _0x21c701)if(_0x1534c3<_0x1e2272)return _0x1534c3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x81de4,_0x49e0fb){const _0x517b48=Array['from'](_0x49e0fb['markers'])['map'](([_0x1b4af2,_0x250437])=>[_0x1b4af2,this['_fixRange'](_0x250437,_0x81de4)]);_0x81de4['markers']=new Map(_0x517b48);}['_transformMarkers'](_0x1a6647){for(const _0x34deef of this['_markers']['values']()){const _0x41f9e1=_0x34deef['getTransformedByOperation'](_0x1a6647),_0x557045=ModelRange['_createFromRanges'](_0x41f9e1);_0x34deef['start']=_0x557045['start'],_0x34deef['end']=_0x557045['end'];}}['_handleOperation'](_0x1e8c83,_0x5f222c){if('addRoot'!=_0x1e8c83['type']&&'detachRoot'!=_0x1e8c83['type']){if('insert'==_0x1e8c83['type']){const _0x39e893=_0x1e8c83['position']['root']['rootName'];this['_diffRoots']['has'](_0x39e893)||(this['_diffRoots']['set'](_0x39e893,_emptyRoot(_0x39e893,!0x0)),this['_diffRootsAttributes']['set'](_0x39e893,{}),_0x5f222c&&this['_idsRoots']['set'](_0x39e893,_emptyRoot(_0x39e893,!0x0)));}else{if('addRootAttribute'==_0x1e8c83['type']||'removeRootAttribute'==_0x1e8c83['type']||'changeRootAttribute'==_0x1e8c83['type'])return void this['_handleRootAttributeOperation'](_0x1e8c83);'marker'==_0x1e8c83['type']&&this['_handleMarkerOperation'](_0x1e8c83);}if('marker'!==_0x1e8c83['type']){const _0x2a3b7d=this['_cloneOperation'](_0x1e8c83,this['_diffRoots']);_0x2a3b7d['_execute'](),this['_transformMarkers'](_0x2a3b7d);}if(_0x5f222c)switch(_0x1e8c83['type']){case'insert':this['_handleInsertOperation'](_0x1e8c83);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1e8c83);break;case'merge':this['_handleMergeOperation'](_0x1e8c83);break;case'split':this['_handleSplitOperation'](_0x1e8c83);}}else this['_handleRootOperation'](_0x1e8c83,_0x5f222c);}['_cloneOperation'](_0x1c10b5,_0x18de34){const _0x46c320=_0x1c10b5['clone']();return _0x46c320['_authorId']=_0x1c10b5['_authorId'],this['_fixOperation'](_0x46c320,_0x18de34),_0x46c320;}['_getBaseVids'](_0x37ce99){return _0x37ce99['map'](_0x427247=>{const _0x4acdbc=this['_getVidAttributeName'](_0x427247);return Number(_0x427247['item']['getAttribute'](_0x4acdbc));});}['_generateTape'](_0x4669eb,_0x13ceb2){if(_0x4669eb['is']('element','$text'))_0x13ceb2['push']({'item':_0x4669eb,'type':'text'});else{_0x4669eb['is']('element')&&_0x13ceb2['push']({'item':_0x4669eb,'type':'elementStart'});for(const _0x1966f3 of _0x4669eb['getChildren']())this['_generateTape'](_0x1966f3,_0x13ceb2);_0x4669eb['is']('element')&&_0x13ceb2['push']({'item':_0x4669eb,'type':'elementEnd'});}return _0x13ceb2;}['_getState'](){const _0x2ae07a=new Map(this['_touched']),_0xda2d2c=new Map(_0x2ae07a),_0x21281d=new Map(),_0x4e8ab5={'insertions':{},'deletions':{}},_0x439612={'insertions':{},'deletions':{}},_0x5011bb=new Map(),_0x556542=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x556542['delete']('$graveyard');for(const _0x12b363 of _0x556542){const _0x59fa76=this['_diffRoots']['get'](_0x12b363)||_emptyRoot(_0x12b363,!0x1),_0x27b98e=this['_baseRoots']['get'](_0x12b363)||_emptyRoot(_0x12b363,!0x1);_0x59fa76['isAttached']()||_0x27b98e['isAttached']()?(_0x4e8ab5['insertions'][_0x12b363]=_cloneRoot(_0x59fa76),_0x4e8ab5['deletions'][_0x12b363]=_cloneRoot(_0x27b98e),this['_copyMarkers'](_0x4e8ab5['deletions'][_0x12b363],_0x27b98e),this['_copyMarkers'](_0x4e8ab5['insertions'][_0x12b363],_0x59fa76),_0x439612['insertions'][_0x12b363]=this['_generateTape'](this['_idsRoots']['get'](_0x12b363),[]),_0x439612['deletions'][_0x12b363]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x12b363)||_emptyRoot(_0x12b363,!0x1),[])):_0x556542['delete'](_0x12b363);}for(const _0x5d7c7d of _0x556542){const _0x30251f=_0x439612['insertions'][_0x5d7c7d];for(const _0x18c3c4 of _0x30251f){const _0x3f8e10=this['_getVidAttributeName'](_0x18c3c4),_0x43e830=_0x18c3c4['item']['getAttribute'](_0x3f8e10);_0xda2d2c['delete'](_0x43e830),_0x43e830>=this['_startingRevisionId']&&_0x21281d['set'](_0x43e830,_0x2ae07a['get'](_0x43e830));}}for(const _0xa50c38 of _0x556542){const _0x1a95a0=_0x439612['insertions'][_0xa50c38],_0x49c6a8=this['_getBaseVids'](_0x439612['deletions'][_0xa50c38]);let _0x722c0c=0x0;for(const _0x1a1c24 of _0x1a95a0){const _0x44214d=this['_getVidAttributeName'](_0x1a1c24),_0x387501=_0x1a1c24['item']['getAttribute'](_0x44214d);if(!_0x21281d['has'](_0x387501)&&!_0x5011bb['has'](_0x387501)){if(_0xda2d2c['has'](_0x387501))_0x722c0c++;else{if(_0x387501!=_0x49c6a8[_0x722c0c]){const _0x5666db=_0x2ae07a['get'](_0x387501)||_0x2ae07a['get'](_0x49c6a8[_0x722c0c]);for(;_0x387501!=_0x49c6a8[_0x722c0c];)_0xda2d2c['has'](_0x49c6a8[_0x722c0c])||(_0x5011bb['set'](_0x49c6a8[_0x722c0c],_0x5666db),_0x2ae07a['set'](_0x49c6a8[_0x722c0c],_0x5666db)),_0x722c0c++;}_0x722c0c++;}}}}for(const _0x2e8919 of _0x556542){const _0x5f523a=_0x439612['insertions'][_0x2e8919];for(const _0x357d6d of _0x5f523a){const _0x3778f6=this['_getVidAttributeName'](_0x357d6d),_0x33f377=_0x357d6d['item']['getAttribute'](_0x3778f6);if(_0x5011bb['has'](_0x33f377)){const _0x261d1c=_0x5011bb['get'](_0x33f377);_0xda2d2c['has'](_0x33f377)||_0xda2d2c['set'](_0x33f377,{..._0x261d1c}),_0x21281d['set'](_0x33f377,{..._0x261d1c});}}}for(const _0x23f725 of _0xda2d2c['keys']())_0x23f725>=this['_startingRevisionId']&&_0xda2d2c['delete'](_0x23f725);const _0xbc2875=new Map();for(const _0xa1c70a of _0x556542){let _0x41e730=_0x439612['insertions'][_0xa1c70a];for(const _0x2a8559 of _0x41e730)if(_0x2a8559['item']['is']('element','tableCell')){const _0x3e4cb4=this['_getVidAttributeName'](_0x2a8559),_0x59996c=_0x2a8559['item']['getAttribute'](_0x3e4cb4);if(_0x21281d['has'](_0x59996c)){const _0x23724b=_0x2a8559['item']['parent']['parent']['getAttribute']('vid_start'),_0x37b7d2=_0xbc2875['get'](_0x23724b)||new Set();_0x37b7d2['add'](_0x21281d['get'](_0x59996c)['userId']),_0xbc2875['set'](_0x23724b,_0x37b7d2);}}_0x41e730=_0x439612['deletions'][_0xa1c70a];for(const _0x20422d of _0x41e730)if(_0x20422d['item']['is']('element','tableCell')){const _0x12c22c=this['_getVidAttributeName'](_0x20422d),_0x2011e6=_0x20422d['item']['getAttribute'](_0x12c22c);if(_0xda2d2c['has'](_0x2011e6)){const _0x493cff=_0x20422d['item']['parent']['parent']['getAttribute']('vid_start'),_0x1149d8=_0xbc2875['get'](_0x493cff)||new Set();_0x1149d8['add'](_0xda2d2c['get'](_0x2011e6)['userId']),_0xbc2875['set'](_0x493cff,_0x1149d8);}}for(const _0x157642 of _0xbc2875['keys']())(_0x21281d['has'](_0x157642)||_0xda2d2c['has'](_0x157642))&&_0xbc2875['delete'](_0x157642);}for(const _0x4183de of _0x556542){const _0x10665f=_0x439612['insertions'][_0x4183de];let _0x397f5a=null,_0x24cb6e=null;for(const _0xc711d5 of _0x10665f){const _0x354eb7=this['_getVidAttributeName'](_0xc711d5),_0x3ce790=_0xc711d5['item']['getAttribute'](_0x354eb7),_0x595d50=_0xbc2875['get'](_0x3ce790);_0x595d50&&'elementStart'==_0xc711d5['type']&&(_0x397f5a=Array['from'](_0x595d50)[0x0],_0x24cb6e=_0xc711d5['item']['getAttribute']('vid_end')),_0x397f5a&&(_0xda2d2c['set'](_0x3ce790,{'userId':_0x397f5a}),_0x21281d['set'](_0x3ce790,{'userId':_0x397f5a})),_0x3ce790==_0x24cb6e&&(_0x397f5a=null,_0x24cb6e=null);}}const _0x3659c6={},_0x2f4567=new Set();for(const _0x33be21 of _0x556542){const _0x4939b9=_0x4e8ab5['deletions'][_0x33be21],_0x4e0069=_0x4e8ab5['insertions'][_0x33be21];for(const {userId:_0x33e201}of this['_touchedMarkers']['values']())null!==_0x33e201&&_0x2f4567['add'](_0x33e201);for(const {userId:_0x26e89b}of this['_touchedRoots']['values']())null!==_0x26e89b&&_0x2f4567['add'](_0x26e89b);this['_markChanges'](_0x4e0069,_0x439612['insertions'][_0x33be21],_0x21281d,'insertion',_0x2f4567),this['_markChanges'](_0x4939b9,_0x439612['deletions'][_0x33be21],_0xda2d2c,'deletion',_0x2f4567),_0x3659c6[_0x33be21]={'insertions':this['_prepareViewToSave'](_0x4e0069),'deletions':this['_prepareViewToSave'](_0x4939b9),'attachChange':this['_touchedRoots']['get'](_0x33be21)||null,'attributesBefore':cloneDeep(this['_baseRootsAttributes']['get'](_0x33be21))||{},'attributesAfter':cloneDeep(this['_diffRootsAttributes']['get'](_0x33be21))};}return{'diffData':_0x3659c6,'authorsIds':Array['from'](_0x2f4567)};}['_processRootBeforeSave'](_0x4a9f94){for(const [,_0x1ec2fe]of _0x4a9f94['markers']){const _0x522935=_0x1ec2fe['start']['getAncestors']()['filter'](_0x1f8e64=>'tableCell'==_0x1f8e64['name']);for(const _0x251c59 of _0x522935)0x1==_0x251c59['childCount']&&_0x251c59['getChild'](0x0)['is']('element','paragraph')&&_0x251c59['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1236aa){this['_processRootBeforeSave'](_0x1236aa);const _0x23449f=this['editor']['data']['toView'](_0x1236aa,{}),_0x24237a=Array['from'](_0x23449f['getChildren']())['map'](_0x4fc192=>this['_getViewJson'](_0x4fc192));return JSON['stringify'](_0x24237a);}['_getViewJson'](_0x47451c){if(_0x47451c['is']('$text'))return _0x47451c['data'];{const _0x542530=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2db7ce=_0x47451c,_0x310618=this['editor']['data']['htmlProcessor']['domConverter'],_0x4f9b1d={'type':_0x542530['_getTypeCharForViewElement'](_0x2db7ce),'name':_0x2db7ce['name'],'attributes':Array['from'](_0x2db7ce['getAttributes']()),'children':Array['from'](_0x2db7ce['getChildren']())['map'](_0x175024=>this['_getViewJson'](_0x175024))};if(_0x47451c['is']('uiElement')&&'$comment'!=_0x47451c['name']){const _0x39c1ef=_0x47451c['render'](_0x310618['domDocument'],_0x310618);_0x4f9b1d['children']['push'](_0x39c1ef['outerHTML']);}else{if(_0x47451c['is']('rawElement')){const _0x52acd7=_0x310618['domDocument']['createElement'](_0x2db7ce['name']);_0x47451c['render'](_0x52acd7,_0x310618),_0x4f9b1d['children']['push'](_0x52acd7['innerHTML']);}}const _0x48404f=Array['from'](_0x2db7ce['getCustomProperties']());_0x48404f['length']>0x0&&(_0x4f9b1d['customProperties']=_0x48404f);const _0x4f391f=_0x2db7ce['getFillerOffset']();return null!==_0x4f391f&&(_0x4f9b1d['fillerOffset']=_0x4f391f),_0x4f9b1d;}}['_markChanges'](_0x362d84,_0x25809d,_0x40d688,_0x48be64,_0x198030){let _0x40abb7=null,_0x210991=null,_0x32e406=0x0;const _0x25238a=this['editor']['model'];for(let _0x54722b=0x0;_0x54722b<_0x25809d['length'];_0x54722b++){const _0x21ca7b=this['_getVidAttributeName'](_0x25809d[_0x54722b]),_0x32a69c=_0x25809d[_0x54722b]['item']['getAttribute'](_0x21ca7b),_0x59b1d6=_0x40d688['get'](_0x32a69c),_0x30a65b=_0x54722b==_0x25809d['length']-0x1;(!_0x40abb7&&_0x59b1d6&&(_0x40abb7=_0x59b1d6,_0x210991=_0x25809d[_0x54722b]),_0x40abb7&&(!_0x59b1d6||_0x59b1d6['userId']!=_0x40abb7['userId']))&&(_0x3cb73f(_0x59b1d6,_getPosBefore(_0x210991,_0x362d84,_0x25238a),_getPosBefore(_0x25809d[_0x54722b],_0x362d84,_0x25238a)),_0x40abb7=_0x59b1d6||null,_0x210991=_0x59b1d6?_0x25809d[_0x54722b]:null),_0x40abb7&&_0x30a65b&&_0x3cb73f(_0x59b1d6,_getPosBefore(_0x210991,_0x362d84,_0x25238a),_getPosAfter(_0x25809d[_0x54722b],_0x362d84,_0x25238a));}function _0x3cb73f(_0x4f5513,_0x56fafe,_0x2e23ea){const _0x5872ef=_0x40abb7['userId'],_0x619bbe='revision:'+_0x48be64+':'+_0x5872ef+':'+_0x32e406++,_0x132b3a=_0x25238a['createRange'](_0x56fafe,_0x2e23ea);_0x362d84['markers']['set'](_0x619bbe,_0x132b3a),null!==_0x5872ef&&_0x198030['add'](_0x5872ef);}}['_getVidAttributeName'](_0x11e95c){switch(_0x11e95c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x47241a,_0x560e67){_0x47241a['baseVersion']=null;for(const _0x4b6361 in _0x47241a){const _0x26abea=_0x47241a[_0x4b6361];if(_0x26abea instanceof ModelPosition){const _0x228bd3=_0x560e67['get'](_0x26abea['root']['rootName']);_0x47241a[_0x4b6361]=this['_fixPosition'](_0x26abea,_0x228bd3);}if(_0x26abea instanceof ModelRange){const _0x15fe49=_0x560e67['get'](_0x26abea['root']['rootName']);_0x47241a[_0x4b6361]=this['_fixRange'](_0x26abea,_0x15fe49);}'root'===_0x4b6361&&(_0x47241a['root']=_0x560e67['get'](_0x47241a['root']['rootName']));}}['_fixRange'](_0x4cefd8,_0x5a5fbb){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4cefd8['start'],_0x5a5fbb),this['_fixPosition'](_0x4cefd8['end'],_0x5a5fbb));}['_fixPosition'](_0x51cb1b,_0x4c4894){return this['editor']['model']['createPositionFromPath'](_0x4c4894,_0x51cb1b['path'],_0x51cb1b['stickiness']);}['_handleInsertOperation'](_0x2b61f0){const _0x50946e=this['_idsRoots']['get'](_0x2b61f0['position']['root']['rootName']),_0x4035a1=this['_fixPosition'](_0x2b61f0['position'],_0x50946e),_0x2d1700=null===_0x2b61f0['_authorId']?null:_0x2b61f0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3030f7=_0x4035a1['parent'],_0x53b8d0=this['_revisionId'],_0x4713ae=[];for(const _0x51ecb9 of _0x2b61f0['nodes'])if(_0x51ecb9['is']('element'))_0x4713ae['push'](this['_makeIdsRoot'](_0x51ecb9));else{for(let _0xe02fc9=0x0;_0xe02fc9<_0x51ecb9['offsetSize'];_0xe02fc9++)_0x4713ae['push'](new ModelElement('$text',{'vid':this['_revisionId']++}));}const _0x4fadbe=this['_revisionId'];for(let _0x104233=_0x53b8d0;_0x104233<_0x4fadbe;_0x104233++)this['_touched']['set'](_0x104233,{'userId':_0x2d1700});_0x3030f7['_insertChild'](_0x4035a1['offset'],_0x4713ae);}['_handleMoveOperation'](_0x217ee1){(_0x217ee1=this['_cloneOperation'](_0x217ee1,this['_idsRoots']))['_execute']();const _0x57beb7=null===_0x217ee1['_authorId']?null:_0x217ee1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32162a=_0x217ee1['getMovedRangeStart'](),_0x5aa147=_0x32162a['parent'],_0x19252d=_0x32162a['offset'];!function _0x22f98e(_0x3d31b6,_0x23ac93,_0x4a422e,_0x168ac5){for(let _0x125c2d=_0x4a422e;_0x125c2d<_0x168ac5;_0x125c2d++){const _0x501e5c=_0x23ac93['getChild'](_0x125c2d);_0x501e5c['is']('element','$text')?_0x3d31b6['set'](_0x501e5c['getAttribute']('vid'),{'userId':_0x57beb7}):(_0x3d31b6['set'](_0x501e5c['getAttribute']('vid_start'),{'userId':_0x57beb7}),_0x22f98e(_0x3d31b6,_0x501e5c,0x0,_0x501e5c['childCount']),_0x3d31b6['set'](_0x501e5c['getAttribute']('vid_end'),{'userId':_0x57beb7}));}}(this['_touched'],_0x5aa147,_0x19252d,_0x19252d+_0x217ee1['howMany']);}['_handleMergeOperation'](_0x1f0340){const _0x46adc5=null===(_0x1f0340=this['_cloneOperation'](_0x1f0340,this['_idsRoots']))['_authorId']?null:_0x1f0340['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b7d97=_0x1f0340['targetPosition']['parent'],_0x4d8830=_0x1f0340['sourcePosition']['parent'],_0x58f83d=_0x1b7d97['getAttribute']('vid_end'),_0x4027d3=_0x4d8830['getAttribute']('vid_start');_0x1b7d97['_setAttribute']('vid_end',_0x4d8830['getAttribute']('vid_end')),_0x4d8830['_setAttribute']('vid_end',_0x58f83d),this['_touched']['set'](_0x4027d3,{'userId':_0x46adc5}),this['_touched']['set'](_0x58f83d,{'userId':_0x46adc5}),_0x1f0340['_execute']();}['_handleSplitOperation'](_0x41d735){const _0x4c6819=null===(_0x41d735=this['_cloneOperation'](_0x41d735,this['_idsRoots']))['_authorId']?null:_0x41d735['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47b21c=_0x41d735['graveyardPosition'],_0x1dd9d5=_0x41d735['splitPosition']['parent'];_0x41d735['_execute']();const _0x5ddff6=_0x1dd9d5['getAttribute']('vid_end'),_0x8487fc=_0x41d735['insertionPosition']['nodeAfter'];if(_0x47b21c){const _0x54f02a=_0x8487fc['getAttribute']('vid_end'),_0x13d8db=_0x1dd9d5['getAttribute']('vid_end');_0x1dd9d5['_setAttribute']('vid_end',_0x54f02a),_0x8487fc['_setAttribute']('vid_end',_0x13d8db),this['_touched']['set'](_0x1dd9d5['getAttribute']('vid_end'),{'userId':_0x4c6819}),this['_touched']['set'](_0x8487fc['getAttribute']('vid_start'),{'userId':_0x4c6819});}else{const _0x47e249=this['_revisionId']++,_0x78d2f4=this['_revisionId']++;_0x1dd9d5['_setAttribute']('vid_end',_0x47e249),_0x8487fc['_setAttribute']('vid_start',_0x78d2f4),_0x8487fc['_setAttribute']('vid_end',_0x5ddff6),this['_touched']['set'](_0x47e249,{'userId':_0x4c6819}),this['_touched']['set'](_0x78d2f4,{'userId':_0x4c6819});}}['_handleMarkerOperation'](_0xdca7c5){if(!_0xdca7c5['affectsData'])return;const _0x1a7b97=(_0xdca7c5=this['_cloneOperation'](_0xdca7c5,this['_diffRoots']))['oldRange']?_0xdca7c5['oldRange']['root']:null,_0x780e7a=_0xdca7c5['newRange']?_0xdca7c5['newRange']['root']:null;_0x1a7b97&&this['_markers']['delete'](_0xdca7c5['name']),_0x780e7a&&this['_markers']['set'](_0xdca7c5['name'],_0xdca7c5['newRange']['clone']());const _0x84bfb4=null===_0xdca7c5['_authorId']?null:_0xdca7c5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b132a=_0xdca7c5['name'];if(!this['_touchedMarkers']['has'](_0x3b132a))return void this['_touchedMarkers']['set'](_0x3b132a,{'range':_0xdca7c5['oldRange'],'userId':_0x84bfb4});const _0x456780=this['_touchedMarkers']['get'](_0x3b132a),_0x5ee1b2=_0x456780['range'],_0x410d5f=_0xdca7c5['newRange'];null==_0x5ee1b2&&null==_0x410d5f||_0x5ee1b2&&_0x410d5f&&_0x5ee1b2['isEqual'](_0x410d5f)?this['_touchedMarkers']['delete'](_0xdca7c5['name']):_0x456780['userId']=_0x84bfb4;}['_handleRootOperation'](_0x553d5d,_0x59dd18){this['_diffRoots']['has'](_0x553d5d['rootName'])?this['_diffRoots']['get'](_0x553d5d['rootName'])['_isAttached']=_0x553d5d['isAdd']:(this['_diffRoots']['set'](_0x553d5d['rootName'],_emptyRoot(_0x553d5d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x553d5d['rootName'],{}),_0x59dd18&&this['_idsRoots']['set'](_0x553d5d['rootName'],_emptyRoot(_0x553d5d['rootName'],!0x0)));const _0x42680f=null===_0x553d5d['_authorId']?null:_0x553d5d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x500e6f=this['_touchedRoots']['get'](_0x553d5d['rootName']);_0x500e6f&&_0x500e6f['userId']===_0x42680f?this['_touchedRoots']['delete'](_0x553d5d['rootName']):this['_touchedRoots']['set'](_0x553d5d['rootName'],{'userId':_0x42680f,'isAttached':_0x553d5d['isAdd']});}['_handleRootAttributeOperation'](_0x336209){const _0x3ecb5d=this['_diffRootsAttributes']['get'](_0x336209['root']['rootName']);null===_0x336209['newValue']?delete _0x3ecb5d[_0x336209['key']]:_0x3ecb5d[_0x336209['key']]=_0x336209['newValue'];}}function _cloneRoot(_0xba82ff){const _0x1a0bde=_emptyRoot(_0xba82ff['rootName'],_0xba82ff['isAttached']());for(const _0x53f6b3 of _0xba82ff['getChildren']()){const _0x169dce=_0x53f6b3['_clone'](!0x0);_0x1a0bde['_appendChild'](_0x169dce);}return _0x1a0bde;}function _emptyRoot(_0x5cfe3a,_0x4b05ef=!0x0){const _0x134eab=new ModelDocumentFragment();return _0x134eab['rootName']=_0x5cfe3a,_0x134eab['_isAttached']=_0x4b05ef,_0x134eab['isAttached']=()=>_0x134eab['_isAttached'],_0x134eab;}function _getPosBefore(_0x3c5f49,_0x26bf62,_0x417b4f){const _0x4c821b='elementEnd'==_0x3c5f49['type']?_0x417b4f['createPositionAt'](_0x3c5f49['item'],'end'):_0x417b4f['createPositionBefore'](_0x3c5f49['item']);return _0x417b4f['createPositionFromPath'](_0x26bf62,_0x4c821b['path'],_0x4c821b['stickiness']);}function _getPosAfter(_0x4eef46,_0x5e5e7e,_0x130813){const _0x4a7039='elementStart'==_0x4eef46['type']?_0x130813['createPositionAt'](_0x4eef46['item'],0x0):_0x130813['createPositionAfter'](_0x4eef46['item']);return _0x130813['createPositionFromPath'](_0x5e5e7e,_0x4a7039['path'],_0x4a7039['stickiness']);}class RevisionHistorySaveRevisionFormView extends/* #__PURE__ -- @preserve */
CssTransitionDisablerMixin(View){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1a66e4,_0x5d26e9){super(_0x1a66e4),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5d26e9),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 _0x5e467f=_0x217f41=>_0x217f41['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5e467f),this['keystrokes']['set']('arrowleft',_0x5e467f),this['keystrokes']['set']('arrowup',_0x5e467f),this['keystrokes']['set']('arrowdown',_0x5e467f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x281461){this['revisionNameInputView']['fieldView']['element']['value']=_0x281461['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x52ba65){const _0x346d4b=new LabeledFieldView(this['locale'],createLabeledInputText),_0x23b257=_0x346d4b['fieldView'];_0x23b257['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x25ecde=getTranslation$5(this['locale'],'Name\x20of\x20the\x20revision');return!_0x52ba65&&(_0x25ecde+='\x20('+getTranslation$5(this['locale'],'optional')+')'),(_0x346d4b['label']=_0x25ecde,_0x23b257['on']('input',()=>{this['revisionNameInputValue']=_0x23b257['element']['value']['trim']();}),_0x346d4b);}}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 _0x4ba918=this['editor'],_0x23da6e=_0x4ba918['plugins']['get']('RevisionTracker');_0x4ba918['ui']['componentFactory']['add']('revisionHistory',_0x54892b=>{const _0x49112f=createDropdown(_0x54892b),_0x3ca829=_0x49112f['panelView']['children'],_0x2ba3fe=new ListView(_0x54892b),_0x49ae6f=new ListItemView(_0x54892b),_0x503e3d=this['_createSaveRevisionButton'](ButtonView),_0x190d77=new ListItemView(_0x54892b),_0x483f23=this['_createOpenRevisionButton'](ButtonView);return _0x49112f['bind']('isEnabled')['to'](_0x23da6e,'isReady',_0x23da6e,'isEnabled',_0x4ba918,'isReadOnly',(_0x2484a9,_0x2ed815,_0x5b2d4a)=>_0x2484a9&&_0x2ed815&&!_0x5b2d4a),_0x49112f['buttonView']['set']({'icon':IconHistory,'label':getTranslation$5(_0x54892b,'Revision\x20history'),'tooltip':!0x0}),_0x503e3d['set']({'withText':!0x0,'role':'menuitem'}),_0x483f23['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x483f23,'execute',()=>{_0x49112f['isOpen']=!0x1,_0x4ba918['editing']['view']['focus']();},{'priority':'low'}),_0x49ae6f['children']['add'](_0x503e3d),_0x190d77['children']['add'](_0x483f23),_0x2ba3fe['role']='menu',_0x2ba3fe['items']['addMany']([_0x49ae6f,_0x190d77]),_0x3ca829['add'](_0x2ba3fe),_0x49112f;}),_0x4ba918['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x29b663=this['editor'],_0x328cce=_0x29b663['locale'],_0x33641d=_0x29b663['plugins']['get']('RevisionTracker'),_0x5e4b89=new MenuBarMenuView(_0x328cce),_0x27eff4=new MenuBarMenuListView(_0x328cce);_0x5e4b89['bind']('isEnabled')['to'](_0x33641d,'isReady',_0x33641d,'isEnabled',_0x29b663,'isReadOnly',(_0xb4536,_0x37b262,_0x47f224)=>_0xb4536&&_0x37b262&&!_0x47f224),_0x5e4b89['buttonView']['set']({'icon':IconHistory,'label':getTranslation$5(_0x328cce,'Revision\x20history')});const _0x157358=new MenuBarMenuListItemView(_0x328cce,_0x5e4b89),_0x13b452=this['_createSaveRevisionButton'](MenuBarMenuListItemButtonView);_0x13b452['delegate']('execute')['to'](_0x5e4b89),_0x157358['children']['add'](_0x13b452),_0x27eff4['items']['add'](_0x157358);const _0x23125c=new MenuBarMenuListItemView(_0x328cce,_0x5e4b89),_0x30dc60=this['_createOpenRevisionButton'](MenuBarMenuListItemButtonView);return _0x30dc60['delegate']('execute')['to'](_0x5e4b89),_0x23125c['children']['add'](_0x30dc60),_0x27eff4['items']['add'](_0x23125c),_0x5e4b89['panelView']['children']['add'](_0x27eff4),_0x5e4b89;}['_createSaveRevisionButton'](_0x33e3f9){const _0x1bcb4a=this['editor'],_0x3f5d93=_0x1bcb4a['plugins']['get']('RevisionTracker'),_0x20a2f3=new _0x33e3f9(_0x1bcb4a['locale']);return _0x20a2f3['set']({'label':getTranslation$5(_0x1bcb4a['locale'],'Save\x20current\x20revision')}),_0x20a2f3['bind']('isEnabled')['to'](_0x3f5d93,'isReady',_0x3f5d93,'isEnabled',_0x1bcb4a,'isReadOnly',(_0x56d0ac,_0x472475,_0x41b3a6)=>_0x56d0ac&&_0x472475&&!_0x41b3a6),this['listenTo'](_0x20a2f3,'execute',()=>{this['_showDialog']();}),_0x20a2f3;}['_createOpenRevisionButton'](_0x704a7c){const _0x40f930=this['editor'],_0x54e58c=_0x40f930['plugins']['get']('RevisionTracker'),_0x1e1025=new _0x704a7c(_0x40f930['locale']);return _0x1e1025['set']({'label':getTranslation$5(_0x40f930['locale'],'Open\x20revision\x20history')}),_0x1e1025['bind']('isEnabled')['to'](_0x54e58c,'isReady',_0x40f930,'isReadOnly',(_0x43dd0b,_0x76223f)=>_0x43dd0b&&!_0x76223f),this['listenTo'](_0x1e1025,'execute',()=>{_0x40f930['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1e1025;}['_showDialog'](){const _0x2d7454=this['editor'],_0x10c1c1=_0x2d7454['locale'],_0x315cd3=_0x2d7454['plugins']['get']('Dialog'),_0x3ebb62=_0x2d7454['plugins']['get']('RevisionTracker');function _0xf6b119(_0x587d7e){_0x2d7454['config']['get']('revisionHistory.requireRevisionName')&&''===_0x587d7e['revisionName']?_0x587d7e['revisionNameInputView']['errorText']=getTranslation$5(_0x10c1c1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2d7454['plugins']['get'](RevisionTracker)['saveRevision']({'name':_0x587d7e['revisionName']}),_0x315cd3['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xf6b119(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x315cd3['show']({'id':'revisionSave','title':getTranslation$5(_0x10c1c1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':getTranslation$5(_0x2d7454['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x315cd3['hide']()},{'label':getTranslation$5(_0x2d7454['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x53c6fa){_0x53c6fa['bind']('isEnabled')['to'](_0x3ebb62,'isReady',_0x3ebb62,'isEnabled',_0x2d7454,'isReadOnly',(_0x46f28d,_0x13a062,_0x24021b)=>_0x46f28d&&_0x13a062&&!_0x24021b);},'onExecute':()=>_0xf6b119(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4a8a34=this['editor'],_0x5c4de1=_0x4a8a34['locale'];this['_saveRevisionFormView']=new RevisionHistorySaveRevisionFormView(_0x5c4de1,_0x4a8a34['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class ChangeDetailsView extends View{['changeId'];['_model'];constructor(_0xbaf97d,_0x2a6d30){super(_0xbaf97d),this['_model']=_0x2a6d30,this['changeId']=_0x2a6d30['id'];const _0x3a459b=this['bindTemplate'],_0x41cb09=getTranslation$5(_0xbaf97d,_0x2a6d30['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2a6d30['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2a6d30['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3a459b['to']('type',_0x54616f=>'ck-revision-change__'+_0x54616f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x41cb09}]},{'text':'\x20'+_0x2a6d30['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class ChangeItem extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xadf942){super(),this['id']=_0xadf942['id']||uid(),this['author']=_0xadf942['author'],this['type']=_0xadf942['type'],this['data']=_0xadf942['data']||{},this['rootName']=_0xadf942['rootName'],this['set']('createdAt',_0xadf942['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(_0x56937a,_0x3815f7){this['newRevisionId']=_0x56937a,this['oldRevisionId']=_0x3815f7,this['changes']=new Collection();}['_setChanges'](_0x5e9e30){for(const _0x5a87e5 of _0x5e9e30)this['changes']['add'](_0x5a87e5);}}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(_0x2d5fc8){super(_0x2d5fc8),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',(_0x19a769,_0x53485f,_0x2eef93)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x18caa9=>{for(const _0x1d2156 of this['editor']['editing']['view']['document']['roots'])_0x2eef93?_0x18caa9['removeClass']('ck-editor__editable__overlay',_0x1d2156):_0x18caa9['addClass']('ck-editor__editable__overlay',_0x1d2156);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2d942c=>null!==_0x2d942c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x307415,_0x35137c,_0x48dca8)=>_0x307415&&_0x48dca8?_0x35137c['changes']['getIndex'](_0x48dca8):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4cbdf7,_0x2b731e)=>_0x4cbdf7?_0x2b731e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](ContextualBalloon);}['init'](){const _0x582b04=this['editor'],_0x3fb011=new ShowChangeCommand(_0x582b04,{'direction':'backward'}),_0x1532f9=new ShowChangeCommand(_0x582b04,{'direction':'forward'});(_0x582b04['commands']['add']('showPreviousChange',_0x3fb011),_0x582b04['commands']['add']('showNextChange',_0x1532f9),_0x582b04['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x582b04)),this['on']('change:numberOfChanges',()=>{_0x3fb011['refresh'](),_0x1532f9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x582b04['enableReadOnlyMode']('revision-viewer'),_0x582b04['plugins']['has']('WidgetToolbarRepository'))&&_0x582b04['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x33fdf2){return await this['_utils']['loadRevisionData'](_0x33fdf2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x33fdf2);}async['getRevisionRootsAttributes'](_0x4d5c1f){return await this['_utils']['loadRevisionData'](_0x4d5c1f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4d5c1f);}async['compare'](_0x26d937,_0x36044e,_0x4983=!0x1){if(!this['isEnabled'])return;const _0x4ca9c1=this['diff'],_0x53eaef=this['repository'],_0x15563a='string'==typeof _0x26d937?_0x53eaef['getRevision'](_0x26d937):_0x26d937,_0x1e6449='string'==typeof _0x36044e?_0x53eaef['getRevision'](_0x36044e):_0x36044e,_0x4e578e=_0x15563a['id'],_0x5c9d35=_0x1e6449?_0x1e6449['id']:null;if(!_0x4983&&this['diff']&&this['diff']['newRevisionId']===_0x4e578e&&this['diff']['oldRevisionId']===_0x5c9d35)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new RevisionDiff(_0x4e578e,_0x5c9d35);const _0x569f92=this['_getRevisionsRange'](_0x15563a,_0x1e6449,!0x0)['map'](_0x6f750c=>this['_utils']['loadRevisionData'](_0x6f750c,this['adapter']));return _0x569f92['push'](new Promise(_0x5035a8=>{setTimeout(_0x5035a8,0x14);})),Promise['all'](_0x569f92)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1e3e27=this['_getDiff'](_0x4e578e,_0x5c9d35);for(const _0x191e41 of _0x1e3e27['changes'])this['_changeIdToChange']['set'](_0x191e41['id'],_0x191e41);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x50b519=>{for(const _0x302ab7 of this['editor']['model']['document']['getRootNames']())_0x50b519['detachRoot'](_0x302ab7);for(const _0x10b5b2 of Object['keys'](_0x1e3e27['model'])){const _0x2b2ea8=_0x50b519['addRoot'](_0x10b5b2);for(const _0x293124 of Object['keys'](_0x1e3e27['attributes'][_0x10b5b2]))_0x50b519['setAttribute'](_0x293124,_0x1e3e27['attributes'][_0x10b5b2][_0x293124],_0x2b2ea8);_0x50b519['insert'](_0x1e3e27['model'][_0x10b5b2],_0x2b2ea8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1e3e27['changes'])),this['isReady']=!0x0;})['catch'](_0x57906b=>{console['error'](_0x57906b),this['_cleanUp'](),_0x4ca9c1&&(this['diff']=_0x4ca9c1),this['isReady']=!0x0;});}['addRevisionData'](_0x35ea08,_0x289622){const _0x3f2e85=this['repository']['createRevision'](_0x35ea08);return _0x3f2e85['on']('_update',(_0x4d7df5,_0xb93db4,_0xd6c0)=>_0x289622(_0xb93db4,_0xd6c0,_0x3f2e85)),this['repository']['addRevision'](_0x3f2e85),_0x3f2e85;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xe4a1a1=>{for(const _0x29fbec of this['editor']['model']['document']['getRootNames']())_0xe4a1a1['detachRoot'](_0x29fbec);});}['_sortAndFilterDiffChanges'](_0x5a53ae){const _0x271ecd=[],_0xb0665a=new Map();for(const _0x2571b5 of this['editor']['model']['document']['getRootNames']()){const _0x4b0686=this['editor']['editing']['view']['getDomRoot'](_0x2571b5);if(!_0x4b0686)continue;const _0x2b6b89=_0x4b0686['getClientRects']()['item'](0x0);_0x2b6b89&&(_0x271ecd['push'](_0x2571b5),_0xb0665a['set'](_0x2571b5,_0x2b6b89));}return _0x271ecd['sort']((_0x57a5c4,_0x39452f)=>{const _0x21e157=_0xb0665a['get'](_0x57a5c4),_0x2b1670=_0xb0665a['get'](_0x39452f);return _0x21e157['y']-_0x2b1670['y']||_0x21e157['x']-_0x2b1670['x'];}),(_0x5a53ae=_0x5a53ae['filter'](_0x30081f=>_0x271ecd['includes'](_0x30081f['rootName'])))['sort']((_0x370a21,_0x476d6b)=>_0x271ecd['indexOf'](_0x370a21['rootName'])-_0x271ecd['indexOf'](_0x476d6b['rootName'])),_0x5a53ae;}['_makeTape'](_0x5287d1){const _0x3276dd=Array['from'](_0x5287d1['markers'])['filter'](([_0x93501,_0x14c9af])=>_0x93501['startsWith']('revision:')&&!_0x14c9af['isCollapsed']),_0x5b0227=Array['from'](this['editor']['model']['createRangeIn'](_0x5287d1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3276dd['length'])for(const _0x1cf997 of _0x5b0227){const [_0x4b1ba8,_0x50432f]=_0x3276dd[0x0],[,_0x188126,_0x2e111f]=_0x4b1ba8['split'](':');if(_0x50432f['end']['isEqual'](_0x1cf997['nextPosition'])&&_0x3276dd['shift'](),(_0x1cf997['previousPosition']['isEqual'](_0x50432f['start'])||_0x1cf997['previousPosition']['isAfter'](_0x50432f['start']))&&('insertion'==_0x188126?_0x1cf997['isAdded']={'userId':_0x2e111f}:'deletion'==_0x188126&&(_0x1cf997['isRemoved']={'userId':_0x2e111f})),0x0==_0x3276dd['length'])break;}return _0x5b0227;}['_refreshStartEndIndex'](_0x360095){const _0x3d036d=new Map();for(let _0x17130a=0x0;_0x17130a<_0x360095['length'];_0x17130a++)'text'===_0x360095[_0x17130a]['type']?(_0x360095[_0x17130a]['item']['startIndex']=_0x17130a,_0x360095[_0x17130a]['item']['endIndex']=_0x17130a):('elementStart'===_0x360095[_0x17130a]['type']?_0x360095[_0x17130a]['item']['startIndex']=_0x17130a:'elementEnd'===_0x360095[_0x17130a]['type']&&(_0x360095[_0x17130a]['item']['endIndex']=_0x17130a),_0x3d036d['set'](_0x360095[_0x17130a]['id'],_0x17130a));for(const _0x1dbdfb of _0x3d036d['values']())'elementStart'===_0x360095[_0x1dbdfb]['type']?_0x360095[_0x1dbdfb]['item']['endIndex']=_0x3d036d['get'](_0x360095[_0x1dbdfb]['pairId']):'elementEnd'===_0x360095[_0x1dbdfb]['type']&&(_0x360095[_0x1dbdfb]['item']['startIndex']=_0x3d036d['get'](_0x360095[_0x1dbdfb]['pairId']));}['_processTape'](_0x2e173a){for(let _0x3e8e5e=0x0;_0x3e8e5e<_0x2e173a['length'];_0x3e8e5e++){if('elementStart'===_0x2e173a[_0x3e8e5e]['type'])_0x2e173a[_0x3e8e5e]['item']['startIndex']=_0x3e8e5e;else{if('elementEnd'===_0x2e173a[_0x3e8e5e]['type']){_0x2e173a[_0x3e8e5e]['item']['endIndex']=_0x3e8e5e;const _0x156fa5=_0x2e173a[_0x3e8e5e]['item']['startIndex'];_0x2e173a[_0x156fa5]['pairId']=_0x2e173a[_0x3e8e5e]['id'],_0x2e173a[_0x3e8e5e]['pairId']=_0x2e173a[_0x156fa5]['id'];}else _0x2e173a[_0x3e8e5e]['item']['startIndex']=_0x3e8e5e,_0x2e173a[_0x3e8e5e]['item']['endIndex']=_0x3e8e5e,_0x2e173a[_0x3e8e5e]['pairId']=null;}_0x2e173a[_0x3e8e5e]['markersStart']||(_0x2e173a[_0x3e8e5e]['markersStart']=[],_0x2e173a[_0x3e8e5e]['markersEnd']=[]);}}['_markInsertions'](_0x5b1fe0,_0x53e163){const _0x213f57=_0x5b1fe0['filter'](_0x3f5cda=>!_0x3f5cda['isAdded']);for(let _0x3fabf7=0x0;_0x3fabf7<_0x53e163['length'];_0x3fabf7++)_0x53e163[_0x3fabf7]['isAdded']&&(_0x213f57[_0x3fabf7]['isAdded']=_0x53e163[_0x3fabf7]['isAdded']);}['_getDiff'](_0x394ad7,_0x193d7f=null){const _0x5a5e4d=this['repository']['getRevision'](_0x394ad7),_0x4b0545=_0x193d7f?this['repository']['getRevision'](_0x193d7f):null,_0x5abaf7=this['_getRevisionsRange'](_0x5a5e4d,_0x4b0545),_0x152fbc=_0x5abaf7[_0x5abaf7['length']-0x1],_0x2097f8=new Map(),_0x284f76={'model':{},'attributes':{},'changes':[]},_0x37220e=new Set(),_0x2741e6=new Map();for(let _0x4fdba0=_0x5abaf7['length']-0x1;_0x4fdba0>=0x0;_0x4fdba0--){const _0x1f90a2=_0x5abaf7[_0x4fdba0];for(const _0x2bec92 of Object['keys'](_0x1f90a2['diffData']))if(_0x1f90a2['diffData'][_0x2bec92]['attachChange']){const _0x4ecf6e=_0x1f90a2['diffData'][_0x2bec92]['attachChange'];_0x4ecf6e['isAttached']?(_0x37220e['add'](_0x2bec92),_0x2741e6['has'](_0x2bec92)&&_0x2741e6['get'](_0x2bec92)['userId']==_0x4ecf6e['userId']?_0x2741e6['delete'](_0x2bec92):_0x2741e6['set'](_0x2bec92,_0x4ecf6e)):_0x2741e6['has'](_0x2bec92)?(_0x37220e['delete'](_0x2bec92),_0x2741e6['delete'](_0x2bec92)):(_0x37220e['add'](_0x2bec92),_0x2741e6['set'](_0x2bec92,_0x4ecf6e));}else _0x37220e['add'](_0x2bec92);}for(const _0x1aae64 of _0x37220e){const _0x2e6b1a=_0x2741e6['has'](_0x1aae64)&&!_0x2741e6['get'](_0x1aae64)['isAttached'];let _0x1688e9=_0x2e6b1a?_0x5abaf7['length']-0x1:0x0;const _0x489ad4=_0x2e6b1a?-0x1:0x1;for(;_0x5abaf7[_0x1688e9];){const _0x33743c=_0x5abaf7[_0x1688e9];if(_0x33743c['diffData'][_0x1aae64]){const _0x5cc394=_0x2e6b1a?_0x33743c['diffData'][_0x1aae64]['attributesBefore']:_0x33743c['diffData'][_0x1aae64]['attributesAfter'];_0x284f76['attributes'][_0x1aae64]=_0x5cc394?cloneDeep(_0x5cc394):{};break;}_0x1688e9+=_0x489ad4;}}for(const _0x14b912 of _0x5abaf7){_0x14b912['model']={};for(const _0x93186e of _0x14b912['authors'])_0x2097f8['set'](_0x93186e['id'],_0x93186e);for(const _0x2ea5cf of _0x37220e){const _0x1f546d=_0x14b912['diffData'][_0x2ea5cf]?_0x14b912['diffData'][_0x2ea5cf]['insertions']:'[]',_0x867430=_0x14b912['diffData'][_0x2ea5cf]?_0x14b912['diffData'][_0x2ea5cf]['deletions']:'[]';_0x14b912['model'][_0x2ea5cf]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1f546d),'deletions':this['_utils']['_makeModelFromViewString'](_0x867430)};}}for(const _0x354cae of _0x37220e){let _0x2f2231=null,_0x462dcc=0x0;const _0x1a2d8b=new Map(Array['from'](_0x5a5e4d['model'][_0x354cae]['insertions']['markers'])['filter'](([_0x5945d3])=>!_0x5945d3['startsWith']('revision:')));let _0x3fb0d0=0x0;for(const _0x4a1b96 of _0x5abaf7){const _0x23c117=this['_makeTape'](_0x4a1b96['model'][_0x354cae]['insertions']);_0x4a1b96==_0x5a5e4d?(_0x2f2231=_0x23c117,_0x462dcc=_0x2f2231['length'],_0x2f2231['forEach'](_0x1c4870=>{_0x1c4870['id']=_0x3fb0d0++;}),this['_processTape'](_0x2f2231)):this['_markInsertions'](_0x2f2231,_0x23c117);const _0x30b7b0=_0x2f2231['filter'](_0x271aeb=>!_0x271aeb['isAdded'])['map'](_0x58018d=>_0x58018d['id']);let _0x450614=0x0;const _0x197013=this['_makeTape'](_0x4a1b96['model'][_0x354cae]['deletions']);_0x197013['forEach'](_0x590f8e=>{_0x590f8e['isRemoved']?_0x590f8e['id']=_0x462dcc++:_0x590f8e['id']=_0x30b7b0[_0x450614++];}),this['_processTape'](_0x197013),this['_setDistance'](_0x2f2231,'isAdded'),this['_setDistance'](_0x197013,'isRemoved'),_0x4a1b96==_0x5a5e4d&&this['_markMarkers'](_0x2f2231,_0x1a2d8b),_0x2f2231=this['_joinTapes'](_0x2f2231,_0x197013),this['_refreshStartEndIndex'](_0x2f2231),this['_setDistance'](_0x2f2231,'isRemoved');}_0x2f2231=_0x2f2231['filter'](_0x50ee82=>!(_0x50ee82['isAdded']&&_0x50ee82['isRemoved']));const _0x40aeaf=new Map(_0x152fbc['model'][_0x354cae]['deletions']['markers']),_0x30ec3c=new Set(_0x1a2d8b['keys']());for(const _0x3b37c2 of _0x40aeaf['keys']())_0x30ec3c['delete'](_0x3b37c2);this['_markSuggestions'](_0x2f2231,_0x30ec3c),this['_fixObsoleteTags'](_0x2f2231),_0x2f2231=this['_removeMissingPairs'](_0x2f2231),_0x2f2231=this['_markMismatchedRemovedTags'](_0x2f2231),_0x2f2231=this['_removeUnsupportedChanges'](_0x2f2231);const {root:_0x4e2bed,changes:_0x15bb77}=this['_makeModelFromTape'](_0x2f2231,_0x2097f8,_0x354cae);_0x284f76['model'][_0x354cae]=_0x4e2bed;const _0x195b8b=_0x2741e6['get'](_0x354cae);if(_0x195b8b){const _0x23920e=_0x2097f8['get'](_0x195b8b['userId']),_0x4855ae=new ChangeItem({'author':_0x23920e,'type':_0x195b8b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x354cae});_0x15bb77['unshift'](_0x4855ae),_0x284f76['attributes'][_0x354cae]['revisionHistoryAttachChange']=_0x4855ae['id'];}_0x284f76['changes']=_0x284f76['changes']['concat'](_0x15bb77);}return _0x284f76;}['_markMarkers'](_0x2b1680,_0x2a32e7){for(let _0x16359c=0x0;_0x16359c<_0x2b1680['length'];_0x16359c++)for(const [_0x3b29e6,_0x281592]of _0x2a32e7)!_0x281592['isCollapsed']&&_0x281592['start']['isEqual'](_0x2b1680[_0x16359c]['previousPosition'])&&_0x2b1680[_0x16359c]['markersStart']['push'](_0x3b29e6),_0x281592['end']['isEqual'](_0x2b1680[_0x16359c]['nextPosition'])&&_0x2b1680[_0x16359c]['markersEnd']['push'](_0x3b29e6);}['_joinTapes'](_0x26f9bb,_0x23976c){let _0x1a170c=[],_0xb3e327=0x0,_0x377c31=0x0;for(;_0xb3e327<_0x26f9bb['length']||_0x377c31<_0x23976c['length'];){const _0x10c149=_0x26f9bb[_0xb3e327]||{},_0x3368d4=_0x23976c[_0x377c31]||{};if(_0x10c149['id']==_0x3368d4['id'])_0xb3e327++,_0x377c31++,_0x1a170c['push'](_0x10c149);else{if(_0x3368d4['isRemoved']&&_0x10c149['isAdded']){const {commonTape:_0x5a9607,iEnd:_0x38c79a,jEnd:_0x34f379}=this['_threeWayMerge'](_0x26f9bb,_0xb3e327,_0x23976c,_0x377c31);_0x1a170c=_0x1a170c['concat'](_0x5a9607),_0xb3e327=_0x38c79a,_0x377c31=_0x34f379;}else _0x3368d4['isRemoved']?(_0x377c31++,_0x1a170c['push'](_0x3368d4)):(_0xb3e327++,_0x1a170c['push'](_0x10c149));}}return _0x1a170c;}['_markSuggestions'](_0xd0cb75,_0x490571){const _0x86d752=[];for(let _0x7557a6=0x0;_0x7557a6<_0xd0cb75['length'];_0x7557a6++){for(let _0x347bae=0x0;_0x347bae<_0xd0cb75[_0x7557a6]['markersStart']['length'];_0x347bae++){const _0x2293a3=_0xd0cb75[_0x7557a6]['markersStart'][_0x347bae];if(!_0x490571['has'](_0x2293a3))continue;const {group:_0x337dff,type:_0x2b53cb,authorId:_0x5ca4c0}=_0x25d337(_0x2293a3);'revision-suggestion'!=_0x337dff||'insertion'!=_0x2b53cb&&'deletion'!=_0x2b53cb||(_0x86d752['unshift']({'type':_0x2b53cb,'name':_0x2293a3,'userId':_0x5ca4c0}),_0xd0cb75[_0x7557a6]['markersStart']['splice'](_0x347bae,0x1),_0x347bae--);}_0x2d7114(_0xd0cb75[_0x7557a6]);for(let _0x283f47=0x0;_0x283f47<_0xd0cb75[_0x7557a6]['markersEnd']['length'];_0x283f47++){const _0x4abe2d=_0xd0cb75[_0x7557a6]['markersEnd'][_0x283f47];if(!_0x490571['has'](_0x4abe2d))continue;const {group:_0x4e946a,type:_0x16805d}=_0x25d337(_0x4abe2d);if('revision-suggestion'!=_0x4e946a||'insertion'!=_0x16805d&&'deletion'!=_0x16805d)continue;_0xd0cb75[_0x7557a6]['markersEnd']['splice'](_0x283f47,0x1),_0x283f47--;const _0xf69972=_0x86d752['findIndex'](_0x55e3d0=>_0x55e3d0['name']==_0x4abe2d);_0xf69972>-0x1&&_0x86d752['splice'](_0xf69972,0x1);}}function _0x25d337(_0x552bd6){const _0x5ed2af=_0x552bd6['split'](':');return{'group':_0x5ed2af[0x0],'type':_0x5ed2af[0x1],'subType':_0x5ed2af['length']>=0x5?_0x5ed2af[0x2]:null,'id':_0x5ed2af['length']<0x5?_0x5ed2af[0x2]:_0x5ed2af[0x3],'authorId':_0x5ed2af['length']<0x5?_0x5ed2af[0x3]:_0x5ed2af[0x4],'markerCount':0x6==_0x5ed2af['length']?_0x5ed2af[0x5]:null};}function _0x2d7114(_0xa48ffe){for(let _0x2c7633=0x0;_0x2c7633<_0x86d752['length'];_0x2c7633++){if(_0xa48ffe['isAdded']&&'insertion'==_0x86d752[_0x2c7633]['type']&&_0xa48ffe['isAdded']['userId']==_0x86d752[_0x2c7633]['userId'])return _0xa48ffe['isAddSuggestion']=_0x86d752[_0x2c7633],void delete _0xa48ffe['isAdded'];if(!_0xa48ffe['isAdded']&&!_0xa48ffe['isRemoved']&&'deletion'==_0x86d752[_0x2c7633]['type'])return void(_0xa48ffe['isRemoveSuggestion']=_0x86d752[_0x2c7633]);}}}['_setDistance'](_0x45bf59,_0x5dd83d){let _0x5b5f55=0x0,_0x42115d=!0x1;const _0x2cdb73=new Map();for(const _0x2585b8 of _0x45bf59)_0x2585b8[_0x5dd83d]?_0x42115d&&(_0x5b5f55++,_0x42115d=!0x1):(_0x5b5f55++,_0x42115d=!0x0),_0x2cdb73['set'](_0x2585b8['id'],_0x5b5f55);for(let _0x411be4=0x0;_0x411be4<_0x45bf59['length'];_0x411be4++){if('isRemoved'==_0x5dd83d&&_0x45bf59[_0x411be4]['isAdded']||'isAdded'==_0x5dd83d&&_0x45bf59[_0x411be4]['isRemoved'])continue;if('text'==_0x45bf59[_0x411be4]['type']){_0x45bf59[_0x411be4]['distance']=0x0;continue;}const _0x49389e=_0x2cdb73['get'](_0x45bf59[_0x411be4]['pairId']),_0x5a294f=_0x2cdb73['get'](_0x45bf59[_0x411be4]['id']);_0x45bf59[_0x411be4]['distance']=_0x49389e-_0x5a294f;}}['_getRevisionsRange'](_0x5d7599,_0x3c3657,_0x4a639b=!0x1){const _0x2e6de5=[];let _0x375f4c=this['repository']['getIndex'](_0x5d7599),_0x1c3235=this['repository']['getIndex'](_0x3c3657);for(-0x1==_0x1c3235&&(_0x1c3235=this['repository']['_revisions']['length'],_0x4a639b=!0x1);_0x375f4c<_0x1c3235;)_0x2e6de5['push'](this['repository']['getRevision'](_0x375f4c)),_0x375f4c++;return _0x4a639b&&_0x2e6de5['push'](this['repository']['getRevision'](_0x375f4c)),_0x2e6de5;}['_threeWayMerge'](_0xb37379,_0x449940,_0x17fc5f,_0x10589a){const _0xc2f42b=this['editor']['model']['schema'];let _0xe8b2c5=_0x449940;for(;_0xb37379[_0xe8b2c5]&&_0xb37379[_0xe8b2c5]['isAdded'];)_0xe8b2c5++;let _0x452299=_0x10589a;for(;_0x17fc5f[_0x452299]&&_0x17fc5f[_0x452299]['isRemoved'];)_0x452299++;_0x41dd32(_0xb37379,_0x449940,_0xe8b2c5),_0x41dd32(_0x17fc5f,_0x10589a,_0x452299);const _0x756a2a=_0x17fc5f['slice'](_0x10589a,_0x452299)['concat'](_0xb37379['slice'](_0x449940,_0xe8b2c5));return _0x756a2a['sort']((_0x13b941,_0x4ce50a)=>_0x13b941['side']!=_0x4ce50a['side']?_0x13b941['side']-_0x4ce50a['side']:_0x13b941['level']!=_0x4ce50a['level']?_0x13b941['level']-_0x4ce50a['level']:_0x13b941['distance']!=_0x4ce50a['distance']?_0x4ce50a['distance']-_0x13b941['distance']:!!_0x13b941['isAdded']!=!!_0x4ce50a['isAdded']?-0x1==_0x13b941['side']||0x0==_0x13b941['side']?_0x13b941['isAdded']?-0x1:0x1:_0x13b941['isAdded']?0x1:-0x1:_0x13b941['index']-_0x4ce50a['index']),{'commonTape':_0x756a2a,'iEnd':_0xe8b2c5,'jEnd':_0x452299};function _0x41dd32(_0x161006,_0x187b93,_0x1edd1c){let _0x8094a9=-0x1,_0x17df68=Number['POSITIVE_INFINITY'],_0x3b9b4f=!0x0;for(let _0x4d55c0=_0x187b93;_0x4d55c0<_0x1edd1c;_0x4d55c0++)if(_0xc2f42b['isInline'](_0x161006[_0x4d55c0]['item'])||(_0x3b9b4f=!0x1),_0x161006[_0x4d55c0]['item']['startIndex']<_0x187b93&&(_0x8094a9=_0x4d55c0),_0x161006[_0x4d55c0]['item']['endIndex']>=_0x1edd1c){_0x17df68=_0x4d55c0;break;}_0x3b9b4f&&(_0x8094a9=_0x1edd1c-0x1);for(let _0x49a8e9=_0x187b93;_0x49a8e9<_0x1edd1c;_0x49a8e9++)_0x161006[_0x49a8e9]['side']=_0x49a8e9<=_0x8094a9?-0x1:_0x49a8e9<_0x17df68?0x0:0x1,_0x161006[_0x49a8e9]['index']=_0x49a8e9;let _0x140e5d=0x0;for(let _0x105974=_0x187b93;_0x105974<=_0x8094a9;_0x105974++)0x0==_0x161006[_0x105974]['distance']?_0x161006[_0x105974]['level']=_0x140e5d:(_0x140e5d++,_0x161006[_0x105974]['level']=_0x140e5d,_0x140e5d++);for(let _0x37e79f=_0x187b93;_0x37e79f<_0x1edd1c;_0x37e79f++)0x0==_0x161006[_0x37e79f]['side']&&(_0x161006[_0x37e79f]['level']=_0x140e5d);_0x140e5d=0x0;for(let _0x27ad63=_0x1edd1c-0x1;_0x27ad63>=_0x17df68;_0x27ad63--)0x0==_0x161006[_0x27ad63]['distance']?_0x161006[_0x27ad63]['level']=_0x140e5d:(_0x140e5d--,_0x161006[_0x27ad63]['level']=_0x140e5d,_0x140e5d--);}}['_fixObsoleteTags'](_0x201d5f){const _0x4b6ce6=new Map(),_0x3bdc66=this['editor']['model']['schema'];for(let _0x1cc7bc=0x1;_0x1cc7bc<_0x201d5f['length'];_0x1cc7bc++){let _0x2601ef,_0x3a5338,_0x2e9d26;const _0x564482=_0x201d5f[_0x1cc7bc],_0x12dc10=_0x201d5f[_0x1cc7bc-0x1];if('text'==_0x564482['type'])continue;if(_0x564482['type']!=_0x12dc10['type'])continue;if(!_0x3bdc66['isBlock'](_0x12dc10['item'])||_0x3bdc66['isLimit'](_0x12dc10['item']))continue;if(!_0x3bdc66['isBlock'](_0x564482['item'])||_0x3bdc66['isLimit'](_0x564482['item']))continue;if((_0x201d5f[_0x1cc7bc]['isAdded']||_0x201d5f[_0x1cc7bc]['isAddSuggestion'])&&_0x201d5f[_0x1cc7bc-0x1]['isRemoved'])_0x2601ef=_0x201d5f[_0x1cc7bc],_0x3a5338=_0x201d5f[_0x1cc7bc-0x1],_0x2e9d26=_0x1cc7bc-0x1;else{if(!_0x201d5f[_0x1cc7bc]['isRemoved']||!_0x201d5f[_0x1cc7bc-0x1]['isAdded']&&!_0x201d5f[_0x1cc7bc-0x1]['isAddSuggestion'])continue;_0x2601ef=_0x201d5f[_0x1cc7bc-0x1],_0x3a5338=_0x201d5f[_0x1cc7bc],_0x2e9d26=_0x1cc7bc;}const _0x55cd39=_0x2601ef['level']==_0x3a5338['level'],_0xb9651b=Math['abs'](_0x2601ef['level'])<Math['abs'](_0x3a5338['level'])&&0x0==_0x3a5338['distance'];(_0x55cd39||_0xb9651b)&&(_0x4b6ce6['set'](_0x3a5338['id'],_0x2601ef['id']),_0x201d5f['splice'](_0x2e9d26,0x1),_0x1cc7bc--,_0x2601ef['isAdded']=!0x1);}for(let _0x393367=0x0;_0x393367<_0x201d5f['length'];_0x393367++)_0x4b6ce6['has'](_0x201d5f[_0x393367]['pairId'])&&(_0x201d5f[_0x393367]['pairId']=_0x4b6ce6['get'](_0x201d5f[_0x393367]['pairId']));}['_removeMissingPairs'](_0x23c5cb){const _0x2e7cf0=new Set(_0x23c5cb['map'](_0x1bcd93=>_0x1bcd93['id']));for(let _0x3a28d3=0x0;_0x3a28d3<_0x23c5cb['length'];_0x3a28d3++)_0x2e7cf0['has'](_0x23c5cb[_0x3a28d3]['pairId'])||0x0==_0x23c5cb[_0x3a28d3]['distance']||(_0x23c5cb[_0x3a28d3]['isIncorrect']=!0x0);return _0x23c5cb['filter'](_0xedf377=>!_0xedf377['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5b47e1){const _0x5a504d=new Set();for(let _0xa0065=0x0;_0xa0065<_0x5b47e1['length'];_0xa0065++){if(_0x5a504d['has'](_0x5b47e1[_0xa0065]['id'])&&_0x5b47e1[_0xa0065]['isRemoved']&&(_0x5b47e1[_0xa0065]['isIncorrect']=!0x0),_0x5b47e1[_0xa0065]['isIncorrect'])continue;if(0x0==_0x5b47e1[_0xa0065]['distance'])continue;if('elementStart'!=_0x5b47e1[_0xa0065]['type'])continue;if(null==_0x5b47e1[_0xa0065]['pairId'])continue;let _0x444e29=_0xa0065+0x1,_0x228440=0x0;for(;_0x5b47e1[_0x444e29]['id']!=_0x5b47e1[_0xa0065]['pairId'];)'elementStart'==_0x5b47e1[_0x444e29]['type']?_0x228440++:'elementEnd'==_0x5b47e1[_0x444e29]['type']&&_0x228440--,_0x444e29++;if(0x0!=_0x228440){if(_0x5b47e1[_0xa0065]['isRemoved'])_0x5b47e1[_0xa0065]['isIncorrect']=!0x0;else{for(;_0x444e29!=_0xa0065;)_0x5b47e1[_0x444e29]['isRemoved']&&0x0!=_0x5b47e1[_0x444e29]['distance']&&(_0x5b47e1[_0x444e29]['isIncorrect']=!0x0,_0x5a504d['add'](_0x5b47e1[_0x444e29]['pairId'])),_0x444e29--;}}}return _0x5b47e1['filter'](_0x216a3c=>!_0x216a3c['isIncorrect']);}['_removeUnsupportedChanges'](_0x5a5db2){const _0x4fce23=this['editor']['model']['schema'];for(let _0x467964=0x0;_0x467964<_0x5a5db2['length'];_0x467964++){if(!(_0x5a5db2[_0x467964]['isAdded']||_0x5a5db2[_0x467964]['isAddSuggestion']||_0x5a5db2[_0x467964]['isRemoved']||_0x5a5db2[_0x467964]['isRemoveSuggestion']))continue;if(0x0==_0x5a5db2[_0x467964]['distance'])continue;const _0x259a08=_0x5a5db2[_0x467964]['item'];_0x4fce23['isBlock'](_0x259a08)||_0x4fce23['isLimit'](_0x259a08)||(_0x5a5db2[_0x467964]['isAdded']&&delete _0x5a5db2[_0x467964]['isAdded'],_0x5a5db2[_0x467964]['isAddSuggestion']&&delete _0x5a5db2[_0x467964]['isAddSuggestion'],_0x5a5db2[_0x467964]['isRemoveSuggestion']&&delete _0x5a5db2[_0x467964]['isRemoveSuggestion'],_0x5a5db2[_0x467964]['isRemoved']&&(_0x5a5db2[_0x467964]['isIncorrect']=!0x0));}return _0x5a5db2['filter'](_0x4a9415=>!_0x4a9415['isIncorrect']);}['_makeModelFromTape'](_0x4c5878,_0x1c2345,_0x5a0f48){const _0x353419=new ModelDocumentFragment(),_0x4a5dea=[],_0x2575b0=new Map(),_0x3f1337=this['editor']['model'],_0x46efc1=_0x3f1337['schema'],_0x3ff102=[_0x353419],_0x532f41={},_0x3c8ab6={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xd3731c=null;const _0x532806=[0x0];for(let _0x21c0f8=0x0;_0x21c0f8<_0x4c5878['length'];_0x21c0f8++)if('elementStart'===_0x4c5878[_0x21c0f8]['type']){_0x4c5878[_0x21c0f8]['previousPosition']=_0x3f1337['createPositionFromPath'](_0x353419,_0x532806);const _0x3c0102=new ModelElement(_0x4c5878[_0x21c0f8]['item']['name'],_0x4c5878[_0x21c0f8]['item']['getAttributes']());_0x3ff102[0x0]['_appendChild'](_0x3c0102),_0x532806['push'](0x0),_0x3ff102['unshift'](_0x3c0102),_0x4c5878[_0x21c0f8]['nextPosition']=_0x3f1337['createPositionFromPath'](_0x353419,_0x532806);}else'elementEnd'===_0x4c5878[_0x21c0f8]['type']?(_0x3ff102['shift'](),_0x4c5878[_0x21c0f8]['previousPosition']=_0x3f1337['createPositionFromPath'](_0x353419,_0x532806),_0x532806['pop'](),_0x532806[_0x532806['length']-0x1]++,_0x4c5878[_0x21c0f8]['nextPosition']=_0x3f1337['createPositionFromPath'](_0x353419,_0x532806)):(_0x4c5878[_0x21c0f8]['previousPosition']=_0x3f1337['createPositionFromPath'](_0x353419,_0x532806),_0xd3731c?_0xd3731c['_data']+=_0x4c5878[_0x21c0f8]['item']['data']:_0xd3731c=new ModelText(_0x4c5878[_0x21c0f8]['item']['data'],_0x4c5878[_0x21c0f8]['item']['getAttributes']()),_0x4c5878[_0x21c0f8+0x1]&&'text'===_0x4c5878[_0x21c0f8+0x1]['type']&&_0x512138(_0xd3731c,_0x4c5878[_0x21c0f8+0x1]['item'])||(_0x3ff102[0x0]['_appendChild'](_0xd3731c),_0xd3731c=null),_0x532806[_0x532806['length']-0x1]+=_0x4c5878[_0x21c0f8]['item']['offsetSize'],_0x4c5878[_0x21c0f8]['nextPosition']=_0x3f1337['createPositionFromPath'](_0x353419,_0x532806));for(let _0x5a4d89=0x0;_0x5a4d89<_0x4c5878['length'];_0x5a4d89++){const _0x4577f5=_0x4c5878[_0x5a4d89]['previousPosition'],_0x31d3a9=_0x4c5878[_0x5a4d89]['nextPosition'];for(const _0x5b5668 of _0x4c5878[_0x5a4d89]['markersStart'])_0x2575b0['set'](_0x5b5668,{'start':_0x4577f5,'end':null});_0x23261e('isRemoveSuggestion',_0x5a4d89,_0x4577f5,_0x31d3a9),_0x23261e('isAddSuggestion',_0x5a4d89,_0x4577f5,_0x31d3a9),_0x23261e('isRemoved',_0x5a4d89,_0x4577f5,_0x31d3a9),_0x23261e('isAdded',_0x5a4d89,_0x4577f5,_0x31d3a9);for(const _0x55b626 of _0x4c5878[_0x5a4d89]['markersEnd']){const _0x2db0d0=_0x2575b0['get'](_0x55b626);_0x2db0d0?_0x2db0d0['end']=_0x31d3a9:_0x2575b0['set'](_0x55b626,{'start':_0x31d3a9,'end':_0x31d3a9});}}for(const [_0x73fe0b,_0x1eea8f]of _0x2575b0){const _0x2dcb3c=this['editor']['model']['createRange'](_0x1eea8f['start'],_0x1eea8f['end']);_0x353419['markers']['set'](_0x73fe0b,_0x2dcb3c);}return _0x4a5dea['sort']((_0x264709,_0x38d185)=>{const _0x1bb3ae=_0x353419['markers']['get']('revision:'+_0x264709['id']),_0x13f17f=_0x353419['markers']['get']('revision:'+_0x38d185['id']);return _0x1bb3ae['start']['isBefore'](_0x13f17f['start'])?-0x1:_0x1bb3ae['start']['isAfter'](_0x13f17f['start'])?0x1:_0x1bb3ae['end']['isBefore'](_0x13f17f['end'])?-0x1:_0x1bb3ae['end']['isAfter'](_0x13f17f['end'])?0x1:'add'===_0x264709['type']?-0x1:0x1;}),{'root':_0x353419,'changes':_0x4a5dea};function _0x23261e(_0x55987f,_0x204b92,_0x39ef91,_0x3f9113){const _0x44ebdd=!!_0x4c5878[_0x204b92][_0x55987f],_0x169045=_0x44ebdd?_0x4c5878[_0x204b92][_0x55987f]['userId']:null,_0x4a2819=_0x204b92===_0x4c5878['length']-0x1,_0x928158=_0x3c8ab6[_0x55987f][0x0],_0x4611d2=_0x46efc1['isObject'](_0x4c5878[_0x204b92]['item']);!_0x532f41[_0x55987f]&&_0x44ebdd?_0x532f41[_0x55987f]={'start':_0x39ef91,'tapeItem':_0x4c5878[_0x204b92],'userId':_0x169045,'type':_0x55987f}:_0x532f41[_0x55987f]&&!_0x44ebdd?(_0x532f41[_0x55987f]['end']=_0x39ef91,_0x5c9a35(_0x532f41[_0x55987f]),_0x532f41[_0x55987f]=null):_0x532f41[_0x55987f]&&_0x44ebdd&&_0x532f41[_0x55987f]['userId']!==_0x169045&&(_0x532f41[_0x55987f]['end']=_0x39ef91,_0x928158&&_0x928158['userId']===_0x532f41[_0x55987f]['userId']||_0x5c9a35(_0x532f41[_0x55987f]),_0x532f41[_0x55987f]={'start':_0x39ef91,'tapeItem':_0x4c5878[_0x204b92],'userId':_0x169045,'type':_0x55987f}),_0x532f41[_0x55987f]&&_0x4611d2&&('elementStart'!==_0x4c5878[_0x204b92]['type']||_0x928158&&_0x928158['userId']===_0x169045||_0x3c8ab6[_0x55987f]['unshift']({'userId':_0x169045,'object':_0x4c5878[_0x204b92]['item'],'change':_0x532f41[_0x55987f]}),'elementEnd'===_0x4c5878[_0x204b92]['type']&&_0x928158&&_0x928158['object']===_0x4c5878[_0x204b92]['item']&&(_0x3c8ab6[_0x55987f]['shift'](),_0x532f41[_0x55987f]=_0x928158['change'])),_0x532f41[_0x55987f]&&_0x4a2819&&(_0x532f41[_0x55987f]['end']=_0x3f9113,_0x5c9a35(_0x532f41[_0x55987f]),_0x532f41[_0x55987f]=null);}function _0x5c9a35({start:_0x145e07,end:_0x34e00c,tapeItem:_0x27b25a,userId:_0x3232ad,type:_0x880023}){const _0x40f613=_0x27b25a['item'],_0x2e51bf=_0x3f1337['schema']['isBlock'](_0x40f613)&&!_0x3f1337['schema']['isLimit'](_0x40f613),_0x19d7ee=_0x145e07['nodeAfter']==_0x34e00c['parent']&&_0x34e00c['isAtStart'];if(_0x2e51bf&&_0x19d7ee)return;const _0x51e4b2=_0x3f1337['createRange'](_0x145e07,_0x34e00c),_0x51e4a3=_0x1c2345['get'](_0x3232ad),_0x1a269c=new ChangeItem({'author':_0x51e4a3,'type':'isAdded'==_0x880023||'isAddSuggestion'==_0x880023?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x880023||'isRemoveSuggestion'==_0x880023},'createdAt':new Date(),'rootName':_0x5a0f48});_0x4a5dea['push'](_0x1a269c),_0x353419['markers']['set']('revision:'+_0x1a269c['id'],_0x51e4b2);}function _0x512138(_0x4b4a43,_0x578456){const _0x5e939d=_0x4b4a43['getAttributes'](),_0x383f90=_0x578456['getAttributes']();for(const _0x48a5f8 of _0x5e939d){if(_0x48a5f8[0x1]!==_0x578456['getAttribute'](_0x48a5f8[0x0]))return!0x1;_0x383f90['next']();}return _0x383f90['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x564f92=>{const _0x2e2eb4=_0x564f92['markerName']['split'](':')[0x1],_0x4fe852=this['_getChangeFromId'](_0x2e2eb4);if(!_0x4fe852)return null;const _0x14d30f='add'==_0x4fe852['type']?'insertion':'deletion',_0x5541bd=['ck-suggestion-marker','ck-suggestion-marker-'+_0x14d30f];return _0x4fe852['data']['isSuggestion']&&_0x5541bd['push']('ck-suggestion-marker-'+_0x14d30f+'-new'),this['activeChange']==_0x4fe852&&_0x5541bd['push']('ck-suggestion-marker--active'),{'classes':_0x5541bd,'attributes':{'data-change-id':_0x2e2eb4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x505c61=>{_0x505c61['on']('element:pre',(_0x27499a,_0x39a1e9,_0x4f6d26)=>{const _0x2b959f=_0x39a1e9['viewItem']['getChild'](0x0);if(!_0x2b959f||!_0x2b959f['is']('element','code'))return;if(!_0x4f6d26['consumable']['consume'](_0x2b959f,{'attributes':['vid_start','vid_end']}))return;const _0x178979=_0x39a1e9['modelRange']['start']['nodeAfter'];_0x4f6d26['writer']['setAttribute']('vid_start',_0x2b959f['getAttribute']('vid_start'),_0x178979),_0x4f6d26['writer']['setAttribute']('vid_end',_0x2b959f['getAttribute']('vid_end'),_0x178979);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4e554a=>{_0x4e554a['on']('element',(_0x6e4ce5,_0x5d0c91,_0x5de9a5)=>{if(!_0x5de9a5['consumable']['consume'](_0x5d0c91['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5d0c91['modelRange']['isCollapsed'])return;const _0x5c65c5=_0x5d0c91['modelRange']['start']['nodeAfter'];_0x5c65c5['hasAttribute']('vid_start')||_0x5c65c5['hasAttribute']('vid')||(_0x5de9a5['writer']['setAttribute']('vid_start',_0x5d0c91['viewItem']['getAttribute']('vid_start'),_0x5c65c5),_0x5de9a5['writer']['setAttribute']('vid_end',_0x5d0c91['viewItem']['getAttribute']('vid_end'),_0x5c65c5));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3caa1c=>_0x3caa1c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2c22ea,[,_0x5ce8fe])=>{['vid_start','vid_end','vid']['includes'](_0x5ce8fe)&&(_0x2c22ea['return']=!0x0,_0x2c22ea['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2e3daf=>{_0x2e3daf['on']('attribute:vid',(_0x2d96a8,_0x2c8c99,_0x823fad)=>{if('\x20'!=_0x2c8c99['item']['data']||_0x2c8c99['item']['parent']['maxOffset']>0x1)return;if(!_0x823fad['consumable']['consume'](_0x2c8c99['item'],_0x2d96a8['name']))return;const _0x3efd3c=_0x823fad['writer'],_0x3daa4b=_0x823fad['mapper']['toViewRange'](_0x2c8c99['range']);_0x3efd3c['wrap'](_0x3daa4b,_0x3efd3c['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',(_0x168374,_0x50c03b,_0x1661bd)=>{const _0x415c59=_0x1661bd['mapper']['markerNameToElements'](_0x50c03b['markerName']);if(_0x415c59){for(const _0x3e7228 of _0x415c59)(_0x3e7228['hasClass']('ck-suggestion-marker-split')||_0x3e7228['hasClass']('ck-suggestion-marker-merge'))&&(_0x1661bd['mapper']['unbindElementFromMarkerName'](_0x3e7228,_0x50c03b['markerName']),_0x1661bd['writer']['remove'](_0x3e7228));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x89959e,_0x2b0de3,_0x2839ac)=>{const _0x83103d=_0x2b0de3['markerName']['split'](':')[0x1],_0x5f113b=this['_getChangeFromId'](_0x83103d);if(!_0x5f113b)return null;const _0x3d9195='add'==_0x5f113b['type']?'split':'merge';if(_0x2839ac['consumable']['test'](_0x2b0de3['markerRange'],_0x89959e['name']))for(const _0xc66034 of _0x2b0de3['markerRange']['getItems']()){if(!_0xc66034['is']('element','softBreak'))continue;const _0x694b7=_0x2839ac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d9195}),_0x2791bc=_0x2839ac['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xc66034));_0x5f113b['data']['isSuggestion']&&_0x2839ac['writer']['addClass']('ck-suggestion-marker-'+_0x3d9195+'-new',_0x694b7),this['activeChange']==_0x5f113b&&_0x2839ac['writer']['addClass']('ck-suggestion-marker--active',_0x694b7),_0x2839ac['writer']['insert'](_0x2791bc,_0x694b7),_0x2839ac['mapper']['bindElementToMarker'](_0x694b7,_0x2b0de3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x492d2c=>{for(const _0x30aafa of this['editor']['model']['document']['getRootNames']()){const _0x1ecbb3=this['editor']['model']['document']['getRoot'](_0x30aafa),_0x2af293=this['editor']['editing']['view']['document']['getRoot'](_0x30aafa);if(_0x2af293){const _0x1d6c20=_0x1ecbb3['getAttribute']('revisionHistoryAttachChange');if(_0x492d2c['removeAttribute']('data-change-id',_0x2af293),_0x492d2c['removeClass']('ck-revision-history-root-add',_0x2af293),_0x492d2c['removeClass']('ck-revision-history-root-remove',_0x2af293),_0x492d2c['removeClass']('ck-revision-history-root--active',_0x2af293),_0x1d6c20){const _0x856a9d=this['_getChangeFromId'](_0x1d6c20);if(!_0x856a9d)return null;_0x492d2c['setAttribute']('data-change-id',_0x1d6c20,_0x2af293),_0x492d2c['addClass']('ck-revision-history-root-'+_0x856a9d['type'],_0x2af293),this['activeChange']==_0x856a9d&&_0x492d2c['addClass']('ck-revision-history-root--active',_0x2af293);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x814d15=>'revision-comment:'+_0x814d15,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5b9f27=>'revision-suggestion:'+_0x5b9f27,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3e43ba=>({'name':'suggestion:'+_0x3e43ba,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x53cd1c=>{const _0x2a01db=_0x53cd1c['markerName']['split'](':')[0x1];return'insertion'!=_0x2a01db&&'deletion'!=_0x2a01db?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2a01db]};}}),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',(_0x38a185,_0x298b25,_0x121ac9)=>{const _0x2811d5=_0x121ac9['mapper']['markerNameToElements'](_0x298b25['markerName']);if(_0x2811d5){for(const _0x2f73e1 of _0x2811d5)_0x2f73e1['is']('uiElement')&&(_0x121ac9['mapper']['unbindElementFromMarkerName'](_0x2f73e1,_0x298b25['markerName']),_0x121ac9['writer']['remove'](_0x2f73e1));}},{'priority':'high'});}['_getChangeFromId'](_0x981109){return this['_changeIdToChange']['get'](_0x981109);}['_getViewForChange'](_0x177b1a){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new ChangeDetailsView(this['editor']['locale'],_0x177b1a),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x515aa6,_0x2c7e8e,_0x4f8558,_0xaa2a3c)=>{_0xaa2a3c&&this['_balloon']['remove'](_0xaa2a3c),_0x4f8558&&(this['_balloon']['add']({'view':_0x4f8558,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5b00d1=this['editor']['editing'],_0xea82a2=this['_getChangeFromId'](_0x4f8558['changeId']);let _0x19a817;if(_0xea82a2['data']['isOnRoot']){const _0x3947bb=_0x5b00d1['view']['getDomRoot'](_0xea82a2['rootName']);_0x19a817=Array['from'](_0x3947bb['getClientRects']());}else{const _0x290cb7=this['editor']['model']['markers']['get']('revision:'+_0x4f8558['changeId']);_0x19a817=Array['from'](_0x5b00d1['mapper']['markerNameToElements'](_0x290cb7['name']))['map'](_0x95f8ac=>_0x5b00d1['view']['domConverter']['mapViewToDom'](_0x95f8ac))['map'](_0x1186f5=>Array['from'](_0x1186f5['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x19a817[0x0];return _0x19a817['find'](_0x310212=>_0x310212['top']-0x3<=this['_activeViewTarget']['y']&&_0x310212['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x310212['left']-0x3<=this['_activeViewTarget']['x']&&_0x310212['right']+0x3>=this['_activeViewTarget']['x'])||_0x19a817[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x29fb5d,_0x10179b,_0x3baeea,_0x386764)=>{this['activeView']=_0x3baeea?this['_getViewForChange'](_0x3baeea):null,this['editor']['model']['change'](()=>{const _0x351188=this['editor']['editing'];_0x386764&&(_0x386764['data']['isOnRoot']?_0x351188['view']['change'](_0x174bf1=>{_0x174bf1['removeClass']('ck-revision-history-root--active',_0x351188['view']['document']['getRoot'](_0x386764['rootName']));}):_0x351188['reconvertMarker']('revision:'+_0x386764['id'])),_0x3baeea&&(_0x3baeea['data']['isOnRoot']?_0x351188['view']['change'](_0x16a178=>{_0x16a178['addClass']('ck-revision-history-root--active',_0x351188['view']['document']['getRoot'](_0x3baeea['rootName']));}):_0x351188['reconvertMarker']('revision:'+_0x3baeea['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x56116b,_0x3d2dee)=>{if(this['activeChange'])return;const _0x58be43=this['_findChangeIdFromDomTarget'](_0x3d2dee['target']),_0x2e7224=this['_changeIdToChange']['get'](_0x58be43);_0x2e7224?(this['_activeViewTarget']={'x':_0x3d2dee['domEvent']['x'],'y':_0x3d2dee['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2e7224)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x417709,_0xab7614)=>{const _0x3dace1=this['_findChangeIdFromDomTarget'](_0xab7614['target']),_0x52c7ae=this['_changeIdToChange']['get'](_0x3dace1);_0x52c7ae?(this['_activeViewTarget']={'x':_0xab7614['domEvent']['x'],'y':_0xab7614['domEvent']['y']},_0x52c7ae===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x52c7ae):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x56db7b){do{const _0x3e312e=_0x56db7b['getAttribute']('data-change-id');if(_0x3e312e)return _0x3e312e;_0x56db7b=_0x56db7b['parent'];}while(_0x56db7b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x544433=>{for(const _0x341496 of this['editor']['model']['markers'])_0x544433['removeMarker'](_0x341496);});}}function downcastSplitMergeMarker(_0x3f62b9){const _0xcd682c=_0x3f62b9['plugins']['get']('RevisionViewer');return(_0x37ca6c,_0x3487dc,_0x242111)=>{const _0x3fbf00=_0x3487dc['markerName']['split'](':')[0x1],_0x5beeb1=_0xcd682c['_getChangeFromId'](_0x3fbf00);if(!_0x5beeb1)return null;const _0x57923d='add'==_0x5beeb1['type']?'split':'merge';if(!_0x242111['consumable']['test'](_0x3487dc['markerRange'],_0x37ca6c['name']))return;const _0x298cc7=_0x3487dc['markerRange']['getWalker'](),_0x2da603=_0x3487dc['markerRange']['start'],_0x1cf326=_0x3f62b9['model']['schema'];let _0x5ef89a=null,_0x307925=null,_0x57f655=!0x1,_0x42bed3=!0x1;for(const _0x5d0cb0 of _0x298cc7){const _0x5e6560=_0x5d0cb0['item'];_0x57f655=_0x57f655||_0x1cf326['isContent'](_0x5e6560);const _0x9e82cf=_0x242111['mapper']['toViewElement'](_0x5e6560);if(_0x9e82cf&&_0x9e82cf['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5d0cb0['type']&&(_0x1cf326['isBlock'](_0x5e6560)&&!_0x1cf326['isLimit'](_0x5e6560)&&(_0x5e6560['nextSibling']||_0x2da603['isAtEnd']?_0x5ef89a&&_0x5ef89a['parent']==_0x5e6560||(_0x5ef89a=_0x5e6560,_0x24d578(_0x5d0cb0['previousPosition']),_0x42bed3=!0x0):_0x307925=_0x307925||_0x5d0cb0['previousPosition']));}function _0x24d578(_0x37d6e5){const _0x2003c6=_0x242111['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x57923d}),_0x5049a1=_0x242111['mapper']['toViewPosition'](_0x37d6e5);_0x5beeb1['data']['isSuggestion']&&_0x242111['writer']['addClass']('ck-suggestion-marker-'+_0x57923d+'-new',_0x2003c6),_0xcd682c['activeChange']==_0x5beeb1&&_0x242111['writer']['addClass']('ck-suggestion-marker--active',_0x2003c6),_0x242111['writer']['insert'](_0x5049a1,_0x2003c6),_0x242111['mapper']['bindElementToMarker'](_0x2003c6,_0x3487dc['markerName']);}_0x57f655||_0x42bed3||!_0x307925||_0x24d578(_0x307925);};}function downcastSplitMergeMarkerSuggestion(_0x3a306b,_0x56b7ef){return(_0xfe5354,_0x29a1d6,_0x3f0430)=>{if(!_0x3f0430['consumable']['test'](_0x29a1d6['markerRange'],_0xfe5354['name']))return;const _0x27d246=_0x29a1d6['markerRange']['getWalker'](),_0xba00cb=_0x29a1d6['markerRange']['start'],_0x1b594f=_0x3a306b['model']['schema'];let _0xd4f8e8=null,_0x209237=null,_0x33626a=!0x1,_0x3f5644=!0x1;for(const _0x3ecd69 of _0x27d246){const _0x398f4f=_0x3ecd69['item'];_0x33626a=_0x33626a||_0x1b594f['isContent'](_0x398f4f);const _0x1cbd35=_0x3f0430['mapper']['toViewElement'](_0x398f4f);if(_0x1cbd35&&_0x1cbd35['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ecd69['type']&&(_0x1b594f['isBlock'](_0x398f4f)&&!_0x1b594f['isLimit'](_0x398f4f)&&(_0x398f4f['nextSibling']||_0xba00cb['isAtEnd']?_0xd4f8e8&&_0xd4f8e8['parent']==_0x398f4f||(_0xd4f8e8=_0x398f4f,_0x2f3848(_0x3ecd69['previousPosition']),_0x3f5644=!0x0):_0x209237=_0x209237||_0x3ecd69['previousPosition']));}function _0x2f3848(_0x3ed55c){const _0x5a5ba2=_0x3f0430['mapper']['toViewPosition'](_0x3ed55c),_0x236730=_0x3f0430['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x56b7ef});_0x3f0430['writer']['insert'](_0x5a5ba2,_0x236730),_0x3f0430['mapper']['bindElementToMarker'](_0x236730,_0x29a1d6['markerName']);}_0x33626a||_0x3f5644||!_0x209237||_0x2f3848(_0x209237);};}class RestoreRevisionCommand extends Command{constructor(_0x1810ac){super(_0x1810ac);const _0x14bc9b=_0x1810ac['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['listenTo'](_0x14bc9b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x14bc9b,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xc494bf=this['editor'],_0x174818=_0xc494bf['plugins']['get'](RevisionViewer),_0x426511=_0x174818['isReady']?_0x174818['diff']['newRevisionId']:null;_0xc494bf['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x426511);}['refresh'](){const {isReady:_0x31a91f,isEnabled:_0x1b28cd,repository:_0x4b4d2c,diff:_0x148084}=this['editor']['plugins']['get'](RevisionViewer),_0x221db1=_0x148084&&_0x4b4d2c['getLaterVisibleRevision'](_0x148084['newRevisionId']);this['isEnabled']=_0x31a91f&&_0x1b28cd&&Boolean(_0x221db1);}}class ShowChangeCommand extends Command{['_step'];constructor(_0x493a76,{direction:_0x5152de}){super(_0x493a76);const _0x2c825a=_0x493a76['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['_step']='forward'===_0x5152de?0x1:-0x1,this['listenTo'](_0x2c825a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2c825a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2c825a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x14806a=this['editor'],_0x356651=_0x14806a['plugins']['get'](RevisionViewer),{isNavigationMode:_0x3e6d89,currentChangeNumber:_0x38a918}=_0x356651;let _0xcce82c;if(_0x356651['activeChange']=_0x3e6d89?_0x356651['diff']['changes']['get'](_0x38a918+this['_step']):_0x356651['diff']['changes']['first'],_0x356651['activeChange']['data']['isOnRoot'])_0xcce82c=_0x14806a['editing']['view']['getDomRoot'](_0x356651['activeChange']['rootName']);else{const _0x1f146c=_0x14806a['model']['markers']['get']('revision:'+_0x356651['activeChange']['id']);_0xcce82c=getMarkerDomElement(_0x14806a['editing'],_0x1f146c);}scrollViewportToShowTarget({'target':_0xcce82c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x596276,currentChangeNumber:_0x312768,numberOfChanges:_0x310059,isReady:_0x54d653,isEnabled:_0x56abb8}=this['editor']['plugins']['get'](RevisionViewer);this['isEnabled']=!!(_0x56abb8&&_0x54d653&&_0x310059)&&(!_0x596276||(0x1===this['_step']?_0x312768<_0x310059-0x1:_0x312768>0x0));}}class ChangesNavigationView extends View{constructor(_0x5380e2){super(_0x5380e2);const _0x538270=this['bindTemplate'],_0x2f1d2d=new ButtonView(_0x5380e2),_0x3658d2=new ButtonView(_0x5380e2);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',(_0x87ac6b,_0x32618d)=>_0x87ac6b&&_0x32618d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x11eb33,_0x35c6ee,_0x4ebac5,_0x35e633)=>{if(!_0x11eb33)return getTranslation$5(_0x5380e2,'Loading...');if(!_0x4ebac5)return getTranslation$5(_0x5380e2,'No\x20changes');const _0x2a8bf2=getTranslation$5(_0x5380e2,'NUMBER_OF_CHANGES',_0x4ebac5);return _0x35e633?getTranslation$5(_0x5380e2,'X_OF_Y_CHANGES',[_0x35c6ee+0x1,_0x4ebac5]):_0x2a8bf2;}),_0x2f1d2d['set']({'label':getTranslation$5(_0x5380e2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':IconChevronUp}),_0x3658d2['set']({'label':getTranslation$5(_0x5380e2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':IconChevronDown}),_0x2f1d2d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3658d2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2f1d2d['on']('execute',()=>this['fire']('execute','backward')),_0x3658d2['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',_0x538270['if']('_isStatusLabelVisible','ck-hidden',_0x18577a=>!_0x18577a)]},'children':[{'text':_0x538270['to']('isNavigationMode',_0x224cbd=>_0x224cbd?getTranslation$5(_0x5380e2,'EDIT_X_OF_Y_REVISIONS')+':\x20':getTranslation$5(_0x5380e2,'Total')+':\x20')}]},{'text':_0x538270['to']('_statusText')}]},new ToolbarSeparatorView(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2f1d2d,_0x3658d2]}]});}}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 _0x245280=this['editor']['editing']['view'];_0x245280['change'](_0x5e047a=>{for(const _0x411f25 of _0x245280['document']['roots'])_0x5e047a['addClass'](OVERLAY_CSS_CLASS,_0x411f25);});}['hide'](){const _0x3bf8d5=this['editor']['editing']['view'];_0x3bf8d5['change'](_0x311397=>{for(const _0xa6f391 of _0x3bf8d5['document']['roots'])_0x311397['removeClass'](OVERLAY_CSS_CLASS,_0xa6f391);});}}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 _0x1642c2=this['editor'],_0x6138af=_0x1642c2['plugins']['get'](RevisionViewer),_0x139d34=_0x1642c2['plugins']['get'](RevisionViewerLoadingOverlay);_0x1642c2['ui']['componentFactory']['add']('exitToEditing',_0x4460db=>{const _0x31f524=new ButtonView(_0x4460db);return _0x31f524['set']({'label':getTranslation$5(_0x4460db,'Back\x20to\x20editing'),'icon':IconUndo,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x31f524,'execute',()=>{_0x1642c2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x31f524;}),_0x1642c2['ui']['componentFactory']['add']('restoreRevision',_0x3c756a=>{const _0x371bc1=new ButtonView(_0x3c756a);return _0x371bc1['set']({'label':getTranslation$5(_0x3c756a,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x371bc1['bind']('isEnabled')['to'](_0x1642c2['commands']['get']('restoreRevision')),this['listenTo'](_0x371bc1,'execute',()=>_0x1642c2['execute']('restoreRevision')),_0x371bc1;}),_0x1642c2['ui']['componentFactory']['add']('changesNavigation',_0x5912b5=>{const _0x23ef84=new ChangesNavigationView(_0x5912b5),_0x3bfb2d=_0x1642c2['commands']['get']('showPreviousChange'),_0x41f7f1=_0x1642c2['commands']['get']('showNextChange');return _0x23ef84['bind']('isBackwardNavigationEnabled')['to'](_0x3bfb2d,'isEnabled'),_0x23ef84['bind']('isForwardNavigationEnabled')['to'](_0x41f7f1,'isEnabled'),_0x23ef84['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x6138af),this['listenTo'](_0x23ef84,'execute',(_0x575234,_0x3916cb)=>{_0x1642c2['execute']('forward'===_0x3916cb?'showNextChange':'showPreviousChange');}),_0x23ef84;}),_0x139d34['show'](),_0x6138af['on']('change:isReady',(_0x86736f,_0x3d4b0f,_0x1371d0)=>{_0x1371d0?_0x139d34['hide']():_0x139d34['show']();});}}class RevisionNameView extends LabeledFieldView{['_resizeObserver']=null;constructor(_0x5013f5,_0xd8ccc8){super(_0x5013f5,_0xd8ccc8);const _0x3fbc1c=this['bindTemplate'];this['set']({'label':getTranslation$5(_0x5013f5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=getTranslation$5(_0x5013f5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3fbc1c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new _0x5be1d1(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x279856=this['fieldView']['element'];this['_tooltipString']=_0x279856['scrollWidth']>_0x279856['clientWidth']&&_0x279856['value']||'';}}class RevisionAuthorView extends View{constructor(_0x34d29a,_0x18cf32,_0x472fc3){super(_0x34d29a);const _0x4389ee=new IconView();_0x4389ee['set']({'content':IconUser,'viewBox':'0\x200\x2011\x2010'});const _0x5a01e1=['ck','ck-revision-history-sidebar__revision-author'];_0x472fc3&&_0x5a01e1['push']('ck-revision-history-sidebar__revision-author_creator');const _0x294ace=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':getTranslation$5(_0x34d29a,_0x472fc3?'Revision\x20creator':'Revision\x20author')},'children':[_0x4389ee,_0x18cf32['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5a01e1},'children':_0x294ace});}}function dateToPrettyFormat(_0x1174c3,_0x14f61a){return _0x14f61a['toLocaleDateString'](_0x1174c3,{'month':'long','day':'numeric'})+',\x20'+_0x14f61a['toLocaleTimeString'](_0x1174c3,{'hour':'numeric','minute':'numeric'});}function createActionsDropdownView(_0x3fc1d8,_0x1bdddc){const _0xf9cc39=_0x3fc1d8['bindTemplate'],_0x345869=_0x3fc1d8['locale'],_0x30b36b=createDropdown(_0x345869);_0x30b36b['panelPosition']='sw';const _0xe71b6e=_createDropdownOptions(_0x3fc1d8,_0x1bdddc);return _0x3fc1d8['bind']('isActionsDropdownOpen')['to'](_0x30b36b,'isOpen'),_0x30b36b['buttonView']['set']({'label':getTranslation$5(_0x345869,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':IconThreeVerticalDots}),_0x30b36b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xf9cc39['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xf9cc39['to'](_0x31d51b=>_0x31d51b['stopPropagation']())}}),_0x30b36b['on']('execute',_0x44fcec=>{_0x3fc1d8['isReady']&&'function'==typeof _0x44fcec['source']['_action']&&_0x44fcec['source']['_action'](_0x3fc1d8);}),addListToDropdown(_0x30b36b,_0xe71b6e,{'role':'menu'}),_0x30b36b['listenTo'](_0x3fc1d8,'change:isActionsDropdownOpen',(_0x2e0484,_0x179701,_0xe4bf7)=>{if(_0xe4bf7)for(const _0x38526c of _0x30b36b['listView']['items']){const _0x2227c9=_0x38526c['children']['first'],_0x3c4fd9=_0x1bdddc['find'](_0x3be9fc=>_0x3be9fc['action']===_0x2227c9['_action'])['isVisible'];_0x38526c['isVisible']=void 0x0===_0x3c4fd9||_0x3c4fd9(_0x3fc1d8);}}),_0x30b36b;}function _createDropdownOptions(_0x2c6194,_0x266ed4){const _0x968c7f=_getLocalizedOptions(_0x2c6194,_0x266ed4),_0x47f4eb=new Collection();for(const _0x277cf1 of _0x968c7f){const _0xcf114f={'type':'button','model':new UIModel({'label':_0x277cf1['name'],'class':_0x277cf1['class'],'withText':!0x0,'role':'menuitem','_action':_0x277cf1['action']})};_0xcf114f['model']['bind']('isEnabled')['to'](_0x2c6194,'isActionsDropdownOpen',_0x34f5ec=>'function'!=typeof _0x277cf1['isEnabled']||(!_0x34f5ec||_0x277cf1['isEnabled'](_0x2c6194))),_0x47f4eb['add'](_0xcf114f);}return _0x47f4eb;}function _getLocalizedOptions(_0x3a0509,_0x24e702){const _0x569b96=_0x3a0509['locale'],_0x3aebb7={'Compare\x20against\x20selected':getTranslation$5(_0x569b96,'Compare\x20against\x20selected'),'Name\x20this\x20revision':getTranslation$5(_0x569b96,'Name\x20this\x20revision'),'Restore\x20this\x20revision':getTranslation$5(_0x569b96,'Restore\x20this\x20revision')};return _0x24e702['map'](_0x52c270=>{const _0x3e8551=_0x3aebb7[_0x52c270['name']];return _0x3e8551&&_0x3e8551!==_0x52c270['name']&&(_0x52c270['name']=_0x3e8551),_0x52c270;});}class RevisionView extends/* #__PURE__ -- @preserve */
ConfirmMixin(View){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x20be1f,_0x3e2106,_0x23af89,_0x51aaed){super(_0x20be1f);const _0x27aa9b=this['bindTemplate'],_0x56bc5b=getAuthorViews(_0x20be1f,_0x3e2106);this['id']=_0x3e2106['id'],this['_revision']=_0x3e2106,this['_requireRevisionName']=_0x51aaed,this['bind']('name','createdAt')['to'](_0x3e2106),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x7a0519=>dateToPrettyFormat(_0x20be1f['uiLanguage'],_0x7a0519)),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new RevisionNameView(_0x20be1f,createLabeledInputText),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x57e31f=>_0x57e31f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4c86c0,_0x15e5c9)=>_0x4c86c0&&_0x15e5c9),this['revisionActionsView']=_0x23af89&&_0x23af89['length']?createActionsDropdownView(this,_0x23af89):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x27aa9b['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x27aa9b['if']('isEnabled','ck-disabled',_0x14eb58=>!_0x14eb58),_0x27aa9b['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x27aa9b['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x27aa9b['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':_0x27aa9b['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':_0x56bc5b}]},this['revisionActionsView']],'on':{'click':_0x27aa9b['to'](_0x20d3ff=>{_0x20d3ff['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4a4433=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4a4433,'change',()=>{this['_requireRevisionName']&&!_0x4a4433['value']||this['fire']('setName',{'id':this['id'],'name':_0x4a4433['value']}),_0x4a4433['value']||(_0x4a4433['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(_0x590703,_0xcf863c){const _0x4eead5=Array['from'](_0xcf863c['authors'])['filter'](_0x53b63e=>_0x53b63e!=_0xcf863c['creator']);return _0xcf863c['creator']&&_0x4eead5['unshift'](_0xcf863c['creator']),_0x4eead5['map'](_0x5d55c8=>new RevisionAuthorView(_0x590703,_0x5d55c8,_0x5d55c8==_0xcf863c['creator']));}function getDateTimePeriodInfo(_0x216ca2,_0x13da24){const _0x20a509=DateTime['fromJSDate'](_0x216ca2)['setLocale'](_0x13da24),_0x272ea8=DateTime['local'](),_0xf98524=_0x272ea8['minus']({'days':0x1})['startOf']('day');let _0x2a309c,_0x2e3543;return _0x20a509['hasSame'](_0x272ea8,'day')?(_0x2a309c=_0x20a509['startOf']('day')['toJSDate'](),_0x2e3543=_0x20a509['toRelativeCalendar']()):_0x20a509['hasSame'](_0xf98524,'day')?(_0x2a309c=_0xf98524['toJSDate'](),_0x2e3543=_0x20a509['toRelativeCalendar']()):_0x20a509['hasSame'](_0x272ea8,'week')?(_0x2a309c=_0x20a509['startOf']('week')['toJSDate'](),_0x2e3543=_0x20a509['weekdayLong']||''):_0x20a509['hasSame'](_0x272ea8,'year')?(_0x2a309c=_0x20a509['startOf']('month')['toJSDate'](),_0x2e3543=_0x20a509['monthLong']||''):(_0x2a309c=_0x20a509['startOf']('year')['toJSDate'](),_0x2e3543=String(_0x20a509['year'])),{'startDate':_0x2a309c,'localizedPeriodName':_0x2e3543};}class RevisionsSidebarTimePeriodView extends View{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1214e7,_0x59880f,_0x2ece09,_0x1f7503){super(_0x1214e7);const _0x393cd7=getDateTimePeriodInfo(_0x59880f,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x59880f,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2ece09,this['_requireRevisionName']=_0x1f7503,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':_0x393cd7}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xacf662){const _0x502358=new RevisionView(this['locale'],_0xacf662,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x502358);}['removeRevision'](_0x5d0e86){const _0x754696=this['revisionViews']['find'](_0x1818f2=>_0x1818f2['id']===_0x5d0e86['id']);this['revisionViews']['remove'](_0x754696);}}class RevisionsSidebarHeaderView extends View{constructor(_0x53def1){super(_0x53def1);const _0xa9746b=new IconView();_0xa9746b['content']=IconHistory,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xa9746b,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[getTranslation$5(_0x53def1,'Revision\x20history')]}]});}}class RevisionsSidebarView extends View{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x26dd96,_0x35816f,_0x58eeb6,_0x475aeb){super(_0x26dd96);const _0x530c03=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x35816f,this['_revisionActions']=_0x58eeb6,this['_requireRevisionName']=_0x475aeb,this['on']('select',(_0x1d6c31,_0xbb8a9f)=>{this['fire']('revisionSelected',_0xbb8a9f);}),this['on']('setName',(_0x1a0b1a,_0x88c31c)=>{this['fire']('revisionSetName',_0x88c31c);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new RevisionsSidebarHeaderView(_0x26dd96),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x530c03['if']('isEnabled','ck-disabled',_0x459391=>!_0x459391)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x315eb8 of this['_revisions'])this['_addRevision'](_0x315eb8);this['_revisions']['on']('add',(_0x561e44,_0x3dbf1d)=>{this['_addRevision'](_0x3dbf1d);}),this['_revisions']['on']('remove',(_0xea656b,_0xa461d3)=>{this['_removeRevision'](_0xa461d3);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3d6ee6=>_0x3d6ee6['revisionViews']['map'](_0x5ce234=>_0x5ce234))['flat']();}['selectRevision'](_0x31a946){for(const _0xc03c2f of this['revisionViews'])_0x31a946&&_0x31a946['id']===_0xc03c2f['id']?_0xc03c2f['select']():_0xc03c2f['deselect']();}['highlightRevisions'](_0x3793af){for(const _0x303227 of this['revisionViews'])_0x3793af['some'](({id:_0x259744})=>_0x259744===_0x303227['id'])?_0x303227['highlight']():_0x303227['unhighlight']();}['_addRevision'](_0x2b2b87){const _0x21d094=getDateTimePeriodInfo(_0x2b2b87['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x316ab9=this['timePeriodViews']['get'](0x0);_0x316ab9&&_0x316ab9['startDate']['getTime']()===_0x21d094['getTime']()||(_0x316ab9=new RevisionsSidebarTimePeriodView(this['locale'],_0x21d094,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x316ab9)),_0x316ab9['addRevision'](_0x2b2b87);}['_removeRevision'](_0x45c157){const _0x140bba=getDateTimePeriodInfo(_0x45c157['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x140bba)['removeRevision'](_0x45c157);}['_getTimePeriodViewByStartDate'](_0x29e755){return this['timePeriodViews']['find'](_0x123580=>_0x123580['startDate']['getTime']()===_0x29e755['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(_0x371cd5){super(_0x371cd5),this['_revisionViewer']=_0x371cd5['plugins']['get'](RevisionViewer),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x438bcf=this['_revisionsRepository']['_revisions'],_0xf13221=this['_createRevisionActions'](),_0x114695=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new RevisionsSidebarView(this['editor']['locale'],_0x438bcf,_0xf13221,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',(_0x5455c4,_0x562e26)=>{_0x562e26['revisionViews']['on']('add',(_0x5c0174,_0x44c893)=>{_0x44c893['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)),_0x114695['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x58ae25=this['_revisionsRepository']['getRevision'](0x0);if(_0x58ae25){const _0x21932f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x58ae25['id']);this['_revisionViewer']['compare'](_0x58ae25,_0x21932f);}}['_handleRevisionSelected'](_0x2b1964,_0x359c4b){const _0x4b4df7=this['_revisionsRepository']['getRevision'](_0x359c4b['id']),_0x2ea2f2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4b4df7['id']);this['_revisionViewer']['compare'](_0x4b4df7,_0x2ea2f2);}['_handleRevisionSetName'](_0x101ccb,_0x505e73){this['_revisionsRepository']['getRevision'](_0x505e73['id'])['setName'](_0x505e73['name']);}['_handleDiffChange'](_0x289266,_0x10d8a9,_0x563217){const _0xdce560=this['_revisionsRepository']['getRevisionsInDiff'](_0x563217);_0xdce560['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xdce560),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xdce560[0x0]));}['_createRevisionActions'](){const _0x4ace23=this['editor'],_0x1cf153=RevisionsSidebar['availableRevisionActions'],_0x3dcc4a=_0x4ace23['config']['get']('revisionHistory.revisionActions')||RevisionsSidebar['defaultRevisionActions'];if(_0x3dcc4a['length'])return _0x3dcc4a['map'](_0x234cc9=>{const _0xa099c5='string'==typeof _0x234cc9?Object['assign']({},_0x1cf153[_0x234cc9]):_0x234cc9;return _0xa099c5['action']=_0xa099c5['action']['bind'](this,_0x4ace23),_0xa099c5['isVisible']&&(_0xa099c5['isVisible']=_0xa099c5['isVisible']['bind'](this,_0x4ace23)),_0xa099c5;});}}function availableRevisionActions(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x34d4ed},_0x58aa88)=>{const _0x5832de=_0x34d4ed['get'](RevisionViewer),_0x125202=_0x5832de['repository'];let _0x2429d1=_0x5832de['diff']['newRevisionId'],_0x14c069=_0x58aa88['id'];_0x125202['getIndex'](_0x2429d1)>_0x125202['getIndex'](_0x14c069)&&([_0x2429d1,_0x14c069]=[_0x14c069,_0x2429d1]),_0x5832de['compare'](_0x2429d1,_0x14c069);},'isVisible':({plugins:_0x4e0a61},_0x52ac46)=>{const _0xad8f28=_0x4e0a61['get'](RevisionViewer);return!(_0xad8f28['repository']['getRevisionsInDiff'](_0xad8f28['diff'])['length']>0x2)&&!_0x52ac46['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x16ed87,{id:_0x2bfd94})=>{_0x16ed87['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2bfd94);},'isVisible':({plugins:_0x1e4167},_0x1afcb3)=>!!_0x1e4167['get'](RevisionViewer)['repository']['getLaterVisibleRevision'](_0x1afcb3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x389625},{id:_0x5a54ae,revisionNameView:_0x263b13})=>{const _0x4ccef6=_0x389625['get'](RevisionViewer),_0x534eb3=_0x4ccef6['repository']['getEarlierVisibleRevision'](_0x5a54ae);_0x4ccef6['compare'](_0x5a54ae,_0x534eb3),_0x263b13['focus'](),_0x263b13['fieldView']['select']();}}};}class RevisionViewerEditorUI extends EditorUI{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x521e46,_0x3ca946){super(_0x521e46),this['_view']=_0x3ca946,this['_toolbarConfig']=normalizeToolbarConfig(_0x521e46['config']['get']('toolbar')),this['_elementReplacer']=new ElementReplacer();}get['element'](){return this['view']['element'];}['init'](_0x1e426b){const _0x452199=this['editor'],_0x167fed=this['view'],_0x505d5d=_0x452199['editing']['view'],_0x570391=_0x167fed['editable'],_0x257f3d=_0x505d5d['document']['getRoot']();_0x570391['name']=_0x257f3d['rootName'],_0x167fed['render']();const _0x3570f2=_0x570391['element'];this['setEditableElement'](_0x570391['name'],_0x3570f2),_0x167fed['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x505d5d['attachDomRoot'](_0x3570f2),this['_elementReplacer']['replace'](_0x1e426b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x448034=this['view'],_0xdf66f6=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xdf66f6['detachDomRoot'](_0x448034['editable']['name']),_0x448034['destroy']();}['_initToolbar'](){const _0x57edc3=this['view'];_0x57edc3['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x57edc3['stickyPanel']['limiterElement']=_0x57edc3['element'],_0x57edc3['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3f9511})=>_0x3f9511),_0x57edc3['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x57edc3['toolbar']);}}class RevisionViewerEditorUIView extends BoxedEditorUIView{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xd682ad,_0x392b29,_0x334065={}){super(_0xd682ad),this['stickyPanel']=new StickyPanelView(_0xd682ad),this['toolbar']=new ToolbarView(_0xd682ad,{'shouldGroupWhenFull':_0x334065['shouldToolbarGroupWhenFull']}),this['_editable']=new InlineEditableUIView(_0xd682ad,_0x392b29);}['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(_0x3ed325,_0x44beee){super(_0x44beee),this['sourceElement']=_0x3ed325,this['model']['document']['createRoot']();const _0x509098=new RevisionViewerEditorUIView(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new RevisionViewerEditorUI(this,_0x509098);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x24c757,_0x1cc472){const _0x1bfe62=new this(_0x24c757,_0x1cc472);return await _0x1bfe62['initPlugins'](),await _0x1bfe62['ui']['init'](_0x24c757),await _0x1bfe62['data']['init'](_0x1bfe62['config']['get']('initialData')||''),_0x1bfe62['fire']('ready'),_0x1bfe62;}}const blackListedPlugins$1=['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(_0x22a34e){function _0x466f8f(_0x572aab){return _0x572aab['map'](_0x54ae55=>String['fromCharCode'](_0x54ae55))['join']('');}super(_0x22a34e),this['result']='end',_0x22a34e[_0x466f8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x466f8f([0x76,0x69,0x65,0x77])][_0x466f8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x466f8f([0x61,0x75,0x74,0x6f]),_0x22a34e[_0x466f8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x466f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x466f8f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x466f8f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x466f8f([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(_0x5295db){if(super(_0x5295db),!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',_0x4fe80f=>this['_showRevisionViewer']({..._0x4fe80f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1204cb=>this['_closeRevisionViewer'](_0x1204cb)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xe1a345=>this['_restoreRevision'](_0xe1a345)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x539db2){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x539db2;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x48d329){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x48d329);}['getRevision'](_0x65c7ed){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x65c7ed);}['getRevisions'](_0x2f5e27){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2f5e27||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x88eac1=this['editor'],_0x4024ea=sanitizeEditorConfig(_0x88eac1,blackListedPlugins$1),_0x34be26=_0x88eac1['plugins']['get']('RevisionTracker'),_0x4cc184=_0x88eac1['plugins']['get']('Users')['users'];return _0x4024ea['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4024ea['lazyRoots'],(_0x4024ea['plugins']['push'](RevisionViewerIntegration,RevisionViewer,RevisionViewerUI,class extends Plugin{static get['requires'](){return[RevisionViewer,'Users'];}['init'](){const _0x5a815b=this['editor']['plugins']['get']('Users');for(const _0x553d14 of _0x4cc184)_0x553d14['isAnonymous']||_0x5a815b['getUser'](_0x553d14['id'])||_0x5a815b['addUser'](_0x553d14);const _0x232b24=_0x34be26['repository']['getRevisions']();let _0x443dd6=null;const _0x16fe68=this['editor']['plugins']['get']('RevisionViewer');_0x16fe68['adapter']=_0x34be26['adapter'],_0x16fe68['bind']('isEnabled')['to'](_0x34be26),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x88eac1,'isReadOnly',_0xec6e2e=>!_0xec6e2e);for(const _0x2c8c7e of _0x232b24){const _0x1bacb0=null===_0x2c8c7e['creator'];if(_0x1bacb0&&_0x2c8c7e['toVersion']===_0x2c8c7e['fromVersion'])continue;const _0x5c350e=_0x2c8c7e['toJSON']();_0x16fe68['addRevisionData'](_0x5c350e,(_0x3a062c,_0x3fcf3,_0x37bade)=>{if(_0x1bacb0){if(_0x443dd6)_0x443dd6['_update'](_0x3a062c,_0x3fcf3);else{if(!_0x3fcf3){const _0x3f4532=_0x37bade['toJSON']();_0x3f4532['id']=uid(),_0x34be26['saveRevision'](_0x3f4532,_0x37bade['toVersion'])['then'](_0x3ee713=>{_0x443dd6=_0x3ee713;});}}}else _0x2c8c7e['_update'](_0x3a062c,_0x3fcf3);});}}},RevisionsSidebar),_0x4024ea);}['_enhanceShowRevisionViewerCallback'](){const _0x4157f1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5bb2ac=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x39746b=this['editor']['plugins']['get']('Autosave');await _0x39746b['save']();}else await _0x5bb2ac['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x7db801=this['editor']['plugins']['get']('Dialog');_0x7db801['isOpen']&&_0x7db801['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x508d86=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x3ee03e of _0x508d86)_0x3ee03e['class']=_0x3ee03e['class']?_0x3ee03e['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x5d803f=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x5d803f&&_0x5d803f['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x522ef=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x522ef&&_0x522ef['setAttribute']('tabindex','-1');}}const _0x254836=this['_getRevisionViewerEditorConfig']();return _0x4157f1(_0x254836)['then'](_0x1c0996=>{return(this['_viewerEditor']=_0x1c0996,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'),_0x1c0996);})['catch'](_0x8f2106=>(console['error'](_0x8f2106),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3bcd7e=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 _0x418522=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x2c81f3 of _0x418522)_0x2c81f3['class']='ck-tab-panel_disabled'===_0x2c81f3['class']?'':_0x2c81f3['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x46fad3=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x46fad3&&_0x46fad3['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x1b864b=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x1b864b&&_0x1b864b['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3bcd7e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x463dd7=this['editor']['plugins']['get']('Annotations');_0x463dd7['refreshVisibility'](),_0x463dd7['refreshPositioning']();}});});}['_showRevisionViewer'](_0x37832a){const _0x242aa6=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x14d4cd=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x404e62=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return RevisionViewerEditor['create'](_0x404e62,_0x37832a)['then'](_0x2f324b=>(_0x14d4cd['style']['display']='block',_0x242aa6['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2f324b));}['_closeRevisionViewer'](_0xcec2c5){const _0x3e219d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3e219d['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0xcec2c5['destroy']();}async['_restoreRevision'](_0x22f465){const _0x3411d7=this['editor'],_0x3e8d67=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xc17176=_0x3411d7['plugins']['get']('RevisionTracker'),_0x1ae3cf=_0x3411d7['plugins']['get']('RevisionHistoryUtils'),_0x15a85a=_0x3e8d67['repository']['getRevision'](_0x22f465);let _0x4dc971,_0x5063e5,_0xc85b26;try{await _0x1ae3cf['loadRevisionData'](_0x15a85a,this['adapter']),_0x4dc971=_0x1ae3cf['getRevisionDocumentData'](_0x15a85a),_0x5063e5=_0x1ae3cf['getRevisionRootsAttributes'](_0x15a85a);}catch(_0x595d12){return void console['error'](_0x595d12);}_0x3411d7['model']['change'](_0xc66247=>{for(const _0x322904 of Array['from'](_0x3411d7['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xc66247['removeMarker'](_0x322904);}),_0x3e8d67['isReady']=!0x1,_0x3411d7['model']['enqueueChange'](_0x527259=>{_0x527259['setSelection'](null),_0x527259['removeSelectionAttribute'](_0x3411d7['model']['document']['selection']['getAttributeKeys']());const _0x241b02=Object['keys'](_0x4dc971);for(const _0x592864 of _0x3411d7['model']['document']['roots'])'$graveyard'!=_0x592864['rootName']&&_0x592864['isAttached']()&&!_0x241b02['includes'](_0x592864['rootName'])&&_0x527259['detachRoot'](_0x592864);for(const _0xe30f76 of _0x241b02){let _0xff2ddf=_0x3411d7['model']['document']['getRoot'](_0xe30f76);_0xff2ddf&&_0xff2ddf['isAttached']()||(_0xff2ddf=_0x527259['addRoot'](_0xe30f76));const _0x5edb25=_0x5063e5[_0xe30f76],_0x1999b1=Object['keys'](_0x5edb25),_0x17553d=_0x4dc971[_0xe30f76];for(const _0x45707a of _0xff2ddf['getAttributeKeys']())_0x1999b1['includes'](_0x45707a)||_0x527259['removeAttribute'](_0x45707a,_0xff2ddf);for(const _0x577f91 of _0x1999b1)_0x527259['setAttribute'](_0x577f91,_0x5063e5[_0xe30f76][_0x577f91],_0xff2ddf);_0x527259['remove'](_0x527259['createRangeIn'](_0xff2ddf)),_0x527259['insert'](_0x3411d7['data']['parse'](_0x17553d,_0xff2ddf),_0xff2ddf,0x0);}});const _0x2b4ae9=getTranslation$5(_0x3411d7['locale'],'Restored');if(_0x15a85a['name'])_0xc85b26=-0x1==_0x15a85a['name']['indexOf'](_0x2b4ae9)?_0x2b4ae9+':\x20'+_0x15a85a['name']:_0x15a85a['name'];else _0xc85b26=_0x2b4ae9+':\x20'+(_0x15a85a['createdAt']['toLocaleDateString'](_0x3411d7['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x15a85a['createdAt']['toLocaleTimeString'](_0x3411d7['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xc17176['saveRevision']({'name':_0xc85b26}),_0x3e8d67['isReady']=!0x0,_0x3411d7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}function getTranslation$4(_0x3710d9,_0x5d24ff){const t=_0x3710d9['t'],_0x53be66=_0x3710d9['t'];switch(_0x5d24ff){case'AI\x20Assistant':return _0x53be66('AI\x20Assistant');case'Block\x20quote':return _0x53be66('Block\x20quote');case'Bulleted\x20list':return _0x53be66('Bulleted\x20list');case'Insert\x20code\x20block':return _0x53be66('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x53be66('Open\x20file\x20manager');case'Insert\x20image':return _0x53be66('Insert\x20image');case'Heading\x201':return _0x53be66('Heading\x201');case'Heading\x202':return _0x53be66('Heading\x202');case'Heading\x203':return _0x53be66('Heading\x203');case'Heading\x204':return _0x53be66('Heading\x204');case'Heading\x205':return _0x53be66('Heading\x205');case'Heading\x206':return _0x53be66('Heading\x206');case'Horizontal\x20line':return _0x53be66('Horizontal\x20line');case'Insert\x20HTML':return _0x53be66('Insert\x20HTML');case'Increase\x20indent':return _0x53be66('Increase\x20indent');case'Insert\x20table':return _0x53be66('Insert\x20table');case'Table\x20of\x20contents':return _0x53be66('Table\x20of\x20contents');case'Numbered\x20list':return _0x53be66('Numbered\x20list');case'Decrease\x20indent':return _0x53be66('Decrease\x20indent');case'Paragraph':return _0x53be66('Paragraph');case'To-do\x20list':return _0x53be66('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 _0x5d24ff;}}class SlashCommandConfig extends Plugin{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d5828){super(_0x5d5828),this['_allowedCommands']=null;}['afterInit'](){const _0x550f72=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x262405=getExcludedHeadings(this['editor']['config']['get']('heading.options')),_0x506a82=this['getDefaultCommands']()['filter'](_0x4317dc=>!_0x262405['includes'](_0x4317dc['id']));let _0x149ad3=_0x506a82['filter'](_0x220d35=>!_0x550f72['includes'](_0x220d35['commandName']));const _0x554414=this['editor']['config']['get']('slashCommand.extraCommands');_0x554414&&_0x554414['length']&&(_0x149ad3=_0x149ad3['concat'](_0x554414));const _0x94a0c9=this['editor']['config']['get']('template.definitions');_0x94a0c9&&_0x94a0c9['length']&&(_0x149ad3=_0x149ad3['concat'](mapTemplates(_0x94a0c9)));const _0x5801e6=this['editor']['config']['get']('style.definitions');_0x5801e6&&_0x5801e6['length']&&(_0x149ad3=_0x149ad3['concat'](mapStyles(_0x5801e6)));const _0x256e63=_0x149ad3['filter'](_0x588d55=>!_0x588d55['commandName']||void 0x0!==this['editor']['commands']['get'](_0x588d55['commandName'])),_0x32eba5=[];for(const _0x12fefe of _0x256e63)_0x32eba5['push']({'id':_0x12fefe['id'],'commandName':_0x12fefe['commandName'],'title':'function'==typeof _0x12fefe['title']?_0x12fefe['title'](this['editor']):_0x12fefe['title'],'description':_0x12fefe['description'],'icon':_0x12fefe['icon'],'isIconColorInherited':_0x12fefe['isIconColorInherited'],'aliases':_0x12fefe['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x12fefe),'execute':()=>this['_proxyExecute'](_0x12fefe)});this['_allowedCommands']=_0x32eba5['sort'](compareCommands),checkLicense$4(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x2aef39=_0x112919=>getTranslation$4(this['editor']['locale'],_0x112919);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':IconRobotPencil,'title':_0x2aef39('AI\x20Assistant'),'description':_0x2aef39('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x2211fc=>{setTimeout(()=>_0x2211fc['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':IconQuote,'title':_0x2aef39('Block\x20quote'),'description':_0x2aef39('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':IconBulletedList,'title':_0x2aef39('Bulleted\x20list'),'description':_0x2aef39('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':IconCodeBlock,'title':_0x2aef39('Insert\x20code\x20block'),'description':_0x2aef39('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x198b9b,'title':_0x2aef39('Open\x20file\x20manager'),'description':_0x2aef39('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x198b9b,'title':_0x2aef39('Insert\x20image'),'description':_0x2aef39('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':IconEmoji,'title':_0x2aef39('Emoji'),'description':_0x2aef39('Insert\x20an\x20emoji'),'execute':_0x2458e4=>{setTimeout(()=>_0x2458e4['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':IconHeading1,'title':_0x2aef39('Heading\x201'),'description':_0x2aef39('Create\x20a\x20heading\x20level\x201'),'execute':_0x28d05e=>{_0x28d05e['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':IconHeading2,'title':_0x2aef39('Heading\x202'),'description':_0x2aef39('Create\x20a\x20heading\x20level\x202'),'execute':_0x35229b=>{_0x35229b['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':IconHeading3,'title':_0x2aef39('Heading\x203'),'description':_0x2aef39('Create\x20a\x20heading\x20level\x203'),'execute':_0x1d9a50=>{_0x1d9a50['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':IconHeading4,'title':_0x2aef39('Heading\x204'),'description':_0x2aef39('Create\x20a\x20heading\x20level\x204'),'execute':_0x1335c8=>{_0x1335c8['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':IconHeading5,'title':_0x2aef39('Heading\x205'),'description':_0x2aef39('Create\x20a\x20heading\x20level\x205'),'execute':_0x146b00=>{_0x146b00['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':IconHeading6,'title':_0x2aef39('Heading\x206'),'description':_0x2aef39('Create\x20a\x20heading\x20level\x206'),'execute':_0x3a54fb=>{_0x3a54fb['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':IconHorizontalLine,'title':_0x2aef39('Horizontal\x20line'),'description':_0x2aef39('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':IconHtml,'title':_0x2aef39('Insert\x20HTML'),'description':_0x2aef39('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':IconIndent,'title':_0x2aef39('Increase\x20indent'),'description':_0x2aef39('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x2aef39('Insert\x20Mermaid\x20diagram'),'description':_0x2aef39('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':IconTable,'title':_0x2aef39('Insert\x20table'),'description':_0x2aef39('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':IconTableOfContents,'title':_0x2aef39('Table\x20of\x20contents'),'description':_0x2aef39('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':IconNumberedList,'title':_0x2aef39('Numbered\x20list'),'description':_0x2aef39('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':IconOutdent,'title':_0x2aef39('Decrease\x20indent'),'description':_0x2aef39('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':IconParagraph,'title':_0x2aef39('Paragraph'),'description':_0x2aef39('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':IconTodoList,'title':_0x2aef39('To-do\x20list'),'description':_0x2aef39('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':IconFootnote,'title':_0x2aef39('Footnote'),'description':_0x2aef39('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x4a63be){return _0x4a63be['isEnabled']?_0x4a63be['isEnabled'](this['editor']):!_0x4a63be['commandName']||this['editor']['commands']['get'](_0x4a63be['commandName'])['isEnabled'];}['_proxyExecute'](_0x45dade){if(_0x45dade['execute'])_0x45dade['execute'](this['editor']);else{if(!_0x45dade['commandName'])throw new CKEditorError('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x45dade});this['editor']['execute'](_0x45dade['commandName']);}}}function compareCommands(_0x452818,_0x4fcaf8){return _0x452818['title']<_0x4fcaf8['title']?-0x1:_0x452818['title']>_0x4fcaf8['title']?0x1:0x0;}function convertTitleToId(_0x4c819f,_0x408a4d){return _0x408a4d+'-'+_0x4c819f['toLowerCase']()['split']('\x20')['join']('-');}function mapTemplates(_0x44988f){return _0x44988f['map'](_0x141d01=>{const {title:_0x15269a,icon:_0x16d700,description:_0x44a54f,data:_0x14338d}=_0x141d01,_0x3d3084={'id':convertTitleToId(_0x15269a,'template'),'commandName':'insertTemplate','execute':_0x1c807c=>{_0x1c807c['execute']('insertTemplate',_0x14338d);},'description':_0x44a54f,'icon':_0x16d700,'title':_0x15269a};return _0x16d700&&(_0x3d3084['isIconColorInherited']=!0x1),_0x3d3084;});}function mapStyles(_0x5843ff){return _0x5843ff['map'](_0x59bdfb=>{const _0x8e813e={'id':convertTitleToId(_0x59bdfb['name'],'style'),'commandName':'style','execute':_0x3c6e4d=>{_0x3c6e4d['execute']('style',{'styleName':_0x59bdfb['name']});},'isEnabled':_0x641a59=>{const _0x53ded5=_0x641a59['commands']['get']('style');return _0x53ded5['isEnabled']&&_0x53ded5['enabledStyles']['includes'](_0x59bdfb['name']);},'title':_0x59bdfb['name']};return _0x8e813e;});}function getExcludedHeadings(_0x1fe2ac){let _0x18afb0=['heading4','heading5','heading6'];if(_0x1fe2ac){const _0xb9c49c=_0x1fe2ac['map'](_0x818055=>_0x818055['model']);_0x18afb0=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x238065=>!_0xb9c49c['includes'](_0x238065));}return _0x18afb0;}async function checkLicense$4(_0x2a5eec){const _0x52837a=_0x59e258([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]),_0x5c99ff=window[_0x59e258([0x44,0x61,0x74,0x65])][_0x59e258([0x6e,0x6f,0x77])](),_0x44eee6=_0x2a5eec[_0x59e258([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x540d1a=new window[(_0x59e258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x422855=>{_0x44eee6[_0x59e258([0x6f,0x6e,0x63,0x65])](_0x59e258([0x72,0x65,0x61,0x64,0x79]),_0x422855);}),_0x2cbbc2={[_0x59e258([0x6b,0x74,0x79])]:_0x59e258([0x45,0x43]),[_0x59e258([0x75,0x73,0x65])]:_0x59e258([0x73,0x69,0x67]),[_0x59e258([0x63,0x72,0x76])]:_0x59e258([0x50,0x2d,0x32,0x35,0x36]),[_0x59e258([0x78])]:_0x59e258([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]),[_0x59e258([0x79])]:_0x59e258([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]),[_0x59e258([0x61,0x6c,0x67])]:_0x59e258([0x45,0x53,0x32,0x35,0x36])},_0x160f72=_0x44eee6[_0x59e258([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59e258([0x67,0x65,0x74])](_0x59e258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x2c40f6=await(async function(){let _0x35f4b2,_0x399912=null,_0x337091=null;try{if(_0x160f72==_0x59e258([0x47,0x50,0x4c]))return _0x59e258([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35f4b2=(function(){const _0x4dd6fa=_0x160f72[_0x59e258([0x73,0x70,0x6c,0x69,0x74])](_0x59e258([0x2e]));if(0x3!=_0x4dd6fa[_0x59e258([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x17c676=_0x4dd6fa[0x1];return _0x2ccf5e(_0x17c676);function _0x2ccf5e(_0x2e0a3d){const _0x1c5f14=_0x2c7eba(_0x2e0a3d);return _0x1c5f14&&_0x57a17b()?_0x1c5f14:null;function _0x57a17b(){const _0x468d41=_0x1c5f14[_0x59e258([0x6a,0x74,0x69])],_0x90d586=window[_0x59e258([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x468d41[_0x59e258([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x468d41[_0x59e258([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27060b={..._0x1c5f14,[_0x59e258([0x6a,0x74,0x69])]:_0x468d41[_0x59e258([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x468d41[_0x59e258([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27060b[_0x59e258([0x76,0x63])],_0x450ab8(_0x27060b)==_0x90d586;}}}()),!_0x35f4b2)return _0x59e258([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x35f4b2[_0x59e258([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x337091=function(_0x2ded61,_0x2760f9){return new window[(_0x59e258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a1756=>{if(_0x4e6076())return _0x5a1756(_0x59e258([0x56,0x61,0x6c,0x69,0x64]));_0x50c8d4(),_0x44eee6[_0x59e258([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59e258([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x305028=!0x1;const _0x19f156=uid();function _0x33080e(_0x38c3a1){return!!_0x38c3a1&&(typeof _0x38c3a1===_0x59e258([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38c3a1===_0x59e258([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38c3a1[_0x59e258([0x74,0x68,0x65,0x6e])]===_0x59e258([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38c3a1[_0x59e258([0x63,0x61,0x74,0x63,0x68])]===_0x59e258([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ad997(_0x1132a8){_0x420599(_0x1132a8)[_0x59e258([0x74,0x68,0x65,0x6e])](_0x29cffc=>{if(!_0x29cffc||_0x29cffc[_0x59e258([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59e258([0x6f,0x6b]))return _0x59e258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4add2d(_0x450ab8(_0x19f156+_0x2760f9))!=_0x29cffc[_0x59e258([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59e258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59e258([0x56,0x61,0x6c,0x69,0x64]);})[_0x59e258([0x74,0x68,0x65,0x6e])](_0x1d1a0f=>(_0x366a5e(),_0x1d1a0f),()=>{const _0x97a07f=_0xd8ed53();return null==_0x97a07f?(_0x366a5e(),_0x59e258([0x56,0x61,0x6c,0x69,0x64])):_0x59e258(_0x5c99ff-_0x97a07f>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59e258([0x74,0x68,0x65,0x6e])](_0x5a1756)[_0x59e258([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a1756(_0x59e258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44f21b=0x36ee80;function _0x366a5e(){const _0x17e8c9=_0x59e258([0x6c,0x6c,0x63,0x74,0x2d])+_0x4add2d(_0x450ab8(_0x2ded61)),_0x4f9621=_0x19b79e(_0x4add2d(window[_0x59e258([0x4d,0x61,0x74,0x68])][_0x59e258([0x63,0x65,0x69,0x6c])](_0x5c99ff/_0x44f21b)));window[_0x59e258([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59e258([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17e8c9,_0x4f9621);}function _0xd8ed53(){const _0x2eff6b=_0x59e258([0x6c,0x6c,0x63,0x74,0x2d])+_0x4add2d(_0x450ab8(_0x2ded61)),_0x153b2e=window[_0x59e258([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59e258([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2eff6b);return _0x153b2e?window[_0x59e258([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19b79e(_0x153b2e),0x10)*_0x44f21b:null;}function _0x420599(_0x286eb1){return new window[(_0x59e258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f5f9c,_0x19682f)=>{_0x286eb1[_0x59e258([0x74,0x68,0x65,0x6e])](_0x1f5f9c,_0x19682f),window[_0x59e258([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19682f,0x1d4c0);});}}_0x44eee6[_0x59e258([0x6f,0x6e])](_0x59e258([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17e743,_0x43f2fb)=>{if(_0x43f2fb[0x0]!=_0x2ded61)return _0x5a1756(_0x59e258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43f2fb[0x1]={..._0x43f2fb[0x1],[_0x59e258([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x19f156};},{[_0x59e258([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59e258([0x68,0x69,0x67,0x68])}),_0x44eee6[_0x59e258([0x6f,0x6e])](_0x59e258([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2074da=>{_0x33080e(_0x2074da[_0x59e258([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x305028=!0x0,_0x2ad997(_0x2074da[_0x59e258([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59e258([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59e258([0x6c,0x6f,0x77])}),_0x540d1a[_0x59e258([0x74,0x68,0x65,0x6e])](()=>{_0x305028||_0x5a1756(_0x59e258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e6076(){return _0x44eee6[_0x59e258([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59e258([0x76,0x69,0x65,0x77])][_0x59e258([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59e258([0x61,0x75,0x74,0x6f]);}function _0x50c8d4(){_0x44eee6[_0x59e258([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59e258([0x76,0x69,0x65,0x77])][_0x59e258([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59e258([0x61,0x75,0x74,0x6f]);}}(_0x35f4b2[_0x59e258([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35f4b2[_0x59e258([0x6a,0x74,0x69])]));const _0x57b908=await(async function(){let _0x214d5d=!0x0;try{const _0x5af1c9=_0x160f72[_0x59e258([0x73,0x70,0x6c,0x69,0x74])](_0x59e258([0x2e])),[_0x17c30d,_0x68f5b1,_0x507cf5]=_0x5af1c9;return _0x513571(_0x17c30d),await _0x12e623(_0x17c30d,_0x68f5b1,_0x507cf5),_0x214d5d;}catch{return!0x1;}function _0x513571(_0x23ba34){const _0x12fcbb=_0x2c7eba(_0x23ba34);_0x12fcbb&&_0x12fcbb[_0x59e258([0x61,0x6c,0x67])]==_0x59e258([0x45,0x53,0x32,0x35,0x36])||(_0x214d5d=!0x1);}async function _0x12e623(_0x49ebcf,_0x72077e,_0xc0ca84){const _0xf91877=window[_0x59e258([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59e258([0x66,0x72,0x6f,0x6d])](_0x15ef63(_0xc0ca84),_0x3ef4e6=>_0x3ef4e6[_0x59e258([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50a1b9=new window[(_0x59e258([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59e258([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49ebcf+_0x59e258([0x2e])+_0x72077e),_0x3f0766=window[_0x59e258([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59e258([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f0766)return;const _0x33c477=await _0x3f0766[_0x59e258([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59e258([0x6a,0x77,0x6b]),_0x2cbbc2,{[_0x59e258([0x6e,0x61,0x6d,0x65])]:_0x59e258([0x45,0x43,0x44,0x53,0x41]),[_0x59e258([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59e258([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59e258([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f0766[_0x59e258([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59e258([0x6e,0x61,0x6d,0x65])]:_0x59e258([0x45,0x43,0x44,0x53,0x41]),[_0x59e258([0x68,0x61,0x73,0x68])]:{[_0x59e258([0x6e,0x61,0x6d,0x65])]:_0x59e258([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x33c477,_0xf91877,_0x50a1b9)||(_0x214d5d=!0x1);}}());return _0x57b908?(function(){const _0xcf048=_0x35f4b2[_0x59e258([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xcf048)return!0x1;if(_0xcf048[_0x59e258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e258([0x2a])))return!0x0;if(_0xcf048[_0x59e258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e258([0x53,0x43])))return!0x0;if(_0xcf048[_0x59e258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e258([0x50,0x50])))return!0x0;if(_0xcf048[_0x59e258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e258([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x59e258([0x67,0x6c,0x6f,0x62])]&&window[_0x59e258([0x67,0x6c,0x6f,0x62])][_0x59e258([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x57961c=[_0x59e258([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59e258([0x74,0x72,0x69,0x61,0x6c])][_0x59e258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35f4b2[_0x59e258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c99ff/0x3e8:0x69d59a80;return _0x35f4b2[_0x59e258([0x65,0x78,0x70])]<_0x57961c;}())?_0x59e258([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x16e5fa=_0x35f4b2[_0x59e258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16e5fa||0x0==_0x16e5fa[_0x59e258([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x270e33}=new URL(window[_0x59e258([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x16e5fa[_0x59e258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x270e33))return!0x0;const _0x559162=_0x270e33[_0x59e258([0x73,0x70,0x6c,0x69,0x74])](_0x59e258([0x2e]));return _0x16e5fa[_0x59e258([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x561006=>_0x561006[_0x59e258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e258([0x2a])))[_0x59e258([0x6d,0x61,0x70])](_0x11520b=>_0x11520b[_0x59e258([0x73,0x70,0x6c,0x69,0x74])](_0x59e258([0x2e])))[_0x59e258([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18ca14=>_0x18ca14[_0x59e258([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x559162[_0x59e258([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59e258([0x6d,0x61,0x70])](_0x40ff9d=>Array(_0x559162[_0x59e258([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x40ff9d[_0x59e258([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59e258([0x66,0x69,0x6c,0x6c])](_0x40ff9d[0x0]===_0x59e258([0x2a])?_0x59e258([0x2a]):'')[_0x59e258([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x40ff9d))[_0x59e258([0x73,0x6f,0x6d,0x65])](_0x2ecc74=>_0x559162[_0x59e258([0x65,0x76,0x65,0x72,0x79])]((_0x4da907,_0x327e8d)=>_0x2ecc74[_0x327e8d]===_0x4da907||_0x2ecc74[_0x327e8d]===_0x59e258([0x2a])));}())?(_0x35f4b2[_0x59e258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59e258([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x399912=function(_0x1d8ce2){const _0xedef98=new window[(_0x59e258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1abe2b=>setTimeout(_0x1abe2b,0x93ecc)),_0x610a5b=_0x540d1a[_0x59e258([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59e258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499613=>{let _0x4bb7e3=0x0;_0x44eee6[_0x59e258([0x6d,0x6f,0x64,0x65,0x6c])][_0x59e258([0x6f,0x6e])](_0x59e258([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x81dbce,_0x1dd15b)=>{_0x1dd15b[0x0][_0x59e258([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4bb7e3++,0x5e8==_0x4bb7e3&&(_0x499613(),_0x81dbce[_0x59e258([0x6f,0x66,0x66])]());});})),_0x12888a=[_0xedef98,_0x610a5b];return window[_0x59e258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59e258([0x72,0x61,0x63,0x65])](_0x12888a)[_0x59e258([0x74,0x68,0x65,0x6e])](()=>_0x1d8ce2);}(_0x59e258([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x399912&&_0x337091)return new window[(_0x59e258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d4186,_0x1428dd)=>{_0x399912[_0x59e258([0x74,0x68,0x65,0x6e])](_0x1d4186,_0x1428dd),_0x337091[_0x59e258([0x74,0x68,0x65,0x6e])](_0x229cfc=>{_0x229cfc!=_0x59e258([0x56,0x61,0x6c,0x69,0x64])&&_0x1d4186(_0x229cfc);},_0x1428dd);});return _0x399912||_0x337091||_0x59e258([0x56,0x61,0x6c,0x69,0x64]);}())):_0x59e258([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59e258([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59e258([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59e258([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2c7eba(_0x37c92b){return _0x37c92b[_0x59e258([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59e258([0x65,0x79]))?JSON[_0x59e258([0x70,0x61,0x72,0x73,0x65])](_0x15ef63(_0x37c92b)):null;}function _0x15ef63(_0x24e735){return window[_0x59e258([0x61,0x74,0x6f,0x62])](_0x24e735[_0x59e258([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59e258([0x2b]))[_0x59e258([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59e258([0x2f])));}function _0x450ab8(_0x504f04){let _0x40d114=0x1505;function _0x4dd32b(_0x436d44){for(let _0x382484=0x0;_0x382484<_0x436d44[_0x59e258([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x382484++){const _0x375d59=_0x436d44[_0x59e258([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x382484);_0x40d114=(_0x40d114<<0x5)+_0x40d114+_0x375d59,_0x40d114&=_0x40d114;}}return function _0xbffc33(_0x126074){Array[_0x59e258([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x126074)?_0x126074[_0x59e258([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xbffc33):_0x126074&&typeof _0x126074==_0x59e258([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59e258([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x126074)[_0x59e258([0x73,0x6f,0x72,0x74])]()[_0x59e258([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x219242,_0x3f0a7b])=>{_0x4dd32b(_0x219242),_0xbffc33(_0x3f0a7b);}):_0x4dd32b(window[_0x59e258([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x126074));}(_0x504f04),_0x40d114>>>0x0;}function _0x4add2d(_0x4e4dd6){return _0x4e4dd6[_0x59e258([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59e258([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59e258([0x30]));}function _0x19b79e(_0x33a0f1){return _0x33a0f1[_0x59e258([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59e258([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59e258([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c1f35(){}function _0x59e258(_0x171d7e){return _0x171d7e['map'](_0x5ba04d=>String['fromCharCode'](_0x5ba04d))['join']('');}!function(_0x56b097){const _0x2c8668=(function(){const _0x2b36d5=window[_0x59e258([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59e258([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59e258([0x6e,0x6f,0x77])]())[_0x59e258([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59e258([0x2e]),'');let _0x261b34=_0x59e258([0x75]);for(let _0x339e5b=0x0;_0x339e5b<_0x2b36d5[_0x59e258([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x339e5b+=0x2){let _0x48efd5=window[_0x59e258([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b36d5[_0x59e258([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x339e5b,_0x339e5b+0x2));_0x48efd5>=_0x52837a[_0x59e258([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x48efd5-=_0x52837a[_0x59e258([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x261b34+=_0x52837a[_0x48efd5];}return _0x261b34;}());_0x44eee6[_0x2c8668]=_0x59e258([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x56b097,_0x56b097!=_0x59e258([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x540d1a,_0x44eee6[_0x59e258([0x6d,0x6f,0x64,0x65,0x6c])][_0x59e258([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c1f35,_0x44eee6[_0x59e258([0x6d,0x6f,0x64,0x65,0x6c])][_0x59e258([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c1f35,_0x44eee6[_0x59e258([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59e258([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x2c40f6);}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'](_0x2b80ae){const _0x2d4047=_0x2b80ae&&_0x2b80ae['toLowerCase']();let _0x4462f9=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x4462f9=_0x4462f9['filter'](_0x359c12=>_0x359c12['isEnabled']()),_0x2d4047){const _0x36025b=[],_0x481e73=[],_0x37cfd5=[],_0x1546fb=[];for(const _0x2e3b3e of _0x4462f9)_0x2e3b3e['id']['toLowerCase']()['includes'](_0x2d4047)?_0x36025b['push'](_0x2e3b3e):_0x2e3b3e['title']['toLowerCase']()['includes'](_0x2d4047)?_0x481e73['push'](_0x2e3b3e):_0x2e3b3e['aliases']&&_0x2e3b3e['aliases']['some'](_0xaef4f6=>_0xaef4f6['toLowerCase']()['includes'](_0x2d4047))?_0x37cfd5['push'](_0x2e3b3e):_0x2e3b3e['description']&&_0x2e3b3e['description']['toLowerCase']()['includes'](_0x2d4047)&&_0x1546fb['push'](_0x2e3b3e);_0x4462f9=_0x36025b['concat'](_0x481e73,_0x37cfd5,_0x1546fb);}return _0x4462f9;}}class SlashCommandButtonView extends ButtonView{constructor(_0x552837,_0x466bd8){super(_0x552837),this['textPartView']=this['_createTextPartView'](_0x552837,_0x466bd8),void 0x0!==_0x466bd8['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x466bd8['isIconColorInherited']),this['set']({'icon':_0x466bd8['icon']||IconPlay,'withText':!0x0,'label':_0x466bd8['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x303d7c,_0x4aa450){const _0x10a9c0=new View(_0x303d7c);return _0x10a9c0['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x4aa450['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x4aa450['description']}]}]:[this['labelView']]}),_0x10a9c0;}}class SlashCommandUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b2712){super(_0x3b2712),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e4445=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x105886;for(const _0x3ab5fa in _0x1e4445){const _0x27b29a=_0x3ab5fa,_0x3165b6=_0x1e4445[_0x27b29a];if('slashCommandLicenseKeyValid'==_0x3165b6||'slashCommandLicenseKeyInvalid'==_0x3165b6||'slashCommandLicenseKeyExpired'==_0x3165b6||'slashCommandLicenseKeyDomainLimit'==_0x3165b6||'slashCommandLicenseKeyNotAllowed'==_0x3165b6||'slashCommandLicenseKeyEvaluationLimit'==_0x3165b6||'slashCommandLicenseKeyUsageLimit'==_0x3165b6){delete _0x1e4445[_0x27b29a],_0x105886=_0x3165b6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x105886&&_0x1e4445['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x105886&&_0x1e4445['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x105886&&_0x1e4445['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x105886&&_0x1e4445['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x105886&&_0x1e4445['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x105886&&_0x1e4445['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x284ab2=this['editor'],_0xb325dd=this['editor']['plugins']['get']('SlashCommandEditing'),_0x236969=_0x284ab2['config']['get']('mention.feeds');_0x236969['push']({'marker':'/','feed':_0x43c9c5=>_0xb325dd['getMatchingCommands'](_0x43c9c5),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x284ab2['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x284ab2['config']['set']('mention.feeds',_0x236969);}['_overrideMentionExecuteListener'](){const _0x3f1ddc=this['editor'];_0x3f1ddc['commands']['get']('mention')['on']('execute',(_0x478231,_0x578ffd)=>{const _0x40a1b5=_0x578ffd[0x0],_0x26b08d=_0x3f1ddc['model'];'/'===_0x40a1b5['marker']&&_0x26b08d['change'](_0x3db764=>{_0x3db764['remove'](_0x40a1b5['range']),_0x40a1b5['mention']['execute'](),_0x478231['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x517422){const _0x4c97dc=this['editor']['locale'],_0x5aa62e=new SlashCommandButtonView(_0x4c97dc,_0x517422);return _0x5aa62e['render'](),_0x5aa62e['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$3(_0x307eb1,_0x8ab643){const t=_0x307eb1['t'];switch(_0x8ab643){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 _0x8ab643;}}function getActiveRootName(_0x288913){const _0x46516b=_0x288913['editing']['view']['document']['roots'],_0x431775=_0x46516b['length'];if(0x0===_0x431775)throw new CKEditorError('source-editing-enhanced-editor-no-root',_0x288913);if(0x1===_0x431775)return _0x46516b['first']['rootName'];return Array['from'](_0x288913['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function formatSource(_0x226f9d){return isHtml(_0x226f9d)?formatHtml(_0x226f9d):_0x226f9d;}function unformatSource(_0x40952e){return isHtml(_0x40952e['replace'](/^[\n\s]*/g,''))?_0x40952e['replace'](/\s+/g,''):_0x40952e;}function isHtml(_0x3950b9){return _0x3950b9['startsWith']('<');}let rangeFrom=[],rangeTo=[];function isExtendingChar(_0x94c69b){if(_0x94c69b<0x300)return!0x1;for(let _0x36f7b6=0x0,_0x3abf31=rangeFrom['length'];;){let _0x2d3533=_0x36f7b6+_0x3abf31>>0x1;if(_0x94c69b<rangeFrom[_0x2d3533])_0x3abf31=_0x2d3533;else{if(!(_0x94c69b>=rangeTo[_0x2d3533]))return!0x0;_0x36f7b6=_0x2d3533+0x1;}if(_0x36f7b6==_0x3abf31)return!0x1;}}function isRegionalIndicator(_0x346f62){return _0x346f62>=0x1f1e6&&_0x346f62<=0x1f1ff;}((()=>{let _0x3c4004='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'](_0x4b4a80=>_0x4b4a80?parseInt(_0x4b4a80,0x24):0x1);for(let _0x2cf674=0x0,_0x496996=0x0;_0x2cf674<_0x3c4004['length'];_0x2cf674++)(_0x2cf674%0x2?rangeTo:rangeFrom)['push'](_0x496996+=_0x3c4004[_0x2cf674]);})());const ZWJ=0x200d;function findClusterBreak$1(_0x3c1ae2,_0x5ea5dc,_0x5083b6=!0x0,_0x2a78b9=!0x0){return(_0x5083b6?nextClusterBreak:prevClusterBreak)(_0x3c1ae2,_0x5ea5dc,_0x2a78b9);}function nextClusterBreak(_0x3a20d6,_0x11cf6c,_0x4ef03e){if(_0x11cf6c==_0x3a20d6['length'])return _0x11cf6c;_0x11cf6c&&surrogateLow$1(_0x3a20d6['charCodeAt'](_0x11cf6c))&&surrogateHigh$1(_0x3a20d6['charCodeAt'](_0x11cf6c-0x1))&&_0x11cf6c--;let _0x326665=codePointAt$1(_0x3a20d6,_0x11cf6c);for(_0x11cf6c+=codePointSize$1(_0x326665);_0x11cf6c<_0x3a20d6['length'];){let _0x1c726a=codePointAt$1(_0x3a20d6,_0x11cf6c);if(_0x326665==ZWJ||_0x1c726a==ZWJ||_0x4ef03e&&isExtendingChar(_0x1c726a))_0x11cf6c+=codePointSize$1(_0x1c726a),_0x326665=_0x1c726a;else{if(!isRegionalIndicator(_0x1c726a))break;{let _0x2e525f=0x0,_0x4b7685=_0x11cf6c-0x2;for(;_0x4b7685>=0x0&&isRegionalIndicator(codePointAt$1(_0x3a20d6,_0x4b7685));)_0x2e525f++,_0x4b7685-=0x2;if(_0x2e525f%0x2==0x0)break;_0x11cf6c+=0x2;}}}return _0x11cf6c;}function prevClusterBreak(_0x32ce1b,_0x2ba65c,_0x2543c8){for(;_0x2ba65c>0x0;){let _0x53e4d1=nextClusterBreak(_0x32ce1b,_0x2ba65c-0x2,_0x2543c8);if(_0x53e4d1<_0x2ba65c)return _0x53e4d1;_0x2ba65c--;}return 0x0;}function codePointAt$1(_0x3bdb94,_0x37b3d4){let _0x56e8df=_0x3bdb94['charCodeAt'](_0x37b3d4);if(!surrogateHigh$1(_0x56e8df)||_0x37b3d4+0x1==_0x3bdb94['length'])return _0x56e8df;let _0x32a2ea=_0x3bdb94['charCodeAt'](_0x37b3d4+0x1);return surrogateLow$1(_0x32a2ea)?_0x32a2ea-0xdc00+(_0x56e8df-0xd800<<0xa)+0x10000:_0x56e8df;}function surrogateLow$1(_0x2ac64c){return _0x2ac64c>=0xdc00&&_0x2ac64c<0xe000;}function surrogateHigh$1(_0x33d28e){return _0x33d28e>=0xd800&&_0x33d28e<0xdc00;}function codePointSize$1(_0x3e90f3){return _0x3e90f3<0x10000?0x1:0x2;}class Text{['lineAt'](_0x3a348a){if(_0x3a348a<0x0||_0x3a348a>this['length'])throw new RangeError('Invalid\x20position\x20'+_0x3a348a+'\x20in\x20document\x20of\x20length\x20'+this['length']);return this['lineInner'](_0x3a348a,!0x1,0x1,0x0);}['line'](_0x618d19){if(_0x618d19<0x1||_0x618d19>this['lines'])throw new RangeError('Invalid\x20line\x20number\x20'+_0x618d19+'\x20in\x20'+this['lines']+'-line\x20document');return this['lineInner'](_0x618d19,!0x0,0x1,0x0);}['replace'](_0xd84d51,_0x42a79b,_0x113e76){[_0xd84d51,_0x42a79b]=clip(this,_0xd84d51,_0x42a79b);let _0x156251=[];return this['decompose'](0x0,_0xd84d51,_0x156251,0x2),_0x113e76['length']&&_0x113e76['decompose'](0x0,_0x113e76['length'],_0x156251,0x3),this['decompose'](_0x42a79b,this['length'],_0x156251,0x1),TextNode['from'](_0x156251,this['length']-(_0x42a79b-_0xd84d51)+_0x113e76['length']);}['append'](_0x474bfe){return this['replace'](this['length'],this['length'],_0x474bfe);}['slice'](_0x495fdc,_0x3f6464=this['length']){[_0x495fdc,_0x3f6464]=clip(this,_0x495fdc,_0x3f6464);let _0x30f3c4=[];return this['decompose'](_0x495fdc,_0x3f6464,_0x30f3c4,0x0),TextNode['from'](_0x30f3c4,_0x3f6464-_0x495fdc);}['eq'](_0x114771){if(_0x114771==this)return!0x0;if(_0x114771['length']!=this['length']||_0x114771['lines']!=this['lines'])return!0x1;let _0x63d1f2=this['scanIdentical'](_0x114771,0x1),_0x41c00b=this['length']-this['scanIdentical'](_0x114771,-0x1),_0x4757c3=new RawTextCursor(this),_0x1ab706=new RawTextCursor(_0x114771);for(let _0xebd881=_0x63d1f2,_0x2f51cc=_0x63d1f2;;){if(_0x4757c3['next'](_0xebd881),_0x1ab706['next'](_0xebd881),_0xebd881=0x0,_0x4757c3['lineBreak']!=_0x1ab706['lineBreak']||_0x4757c3['done']!=_0x1ab706['done']||_0x4757c3['value']!=_0x1ab706['value'])return!0x1;if(_0x2f51cc+=_0x4757c3['value']['length'],_0x4757c3['done']||_0x2f51cc>=_0x41c00b)return!0x0;}}['iter'](_0x330ecd=0x1){return new RawTextCursor(this,_0x330ecd);}['iterRange'](_0x2c3400,_0x542f7d=this['length']){return new PartialTextCursor(this,_0x2c3400,_0x542f7d);}['iterLines'](_0x6a48af,_0x240d08){let _0xbb2294;if(null==_0x6a48af)_0xbb2294=this['iter']();else{null==_0x240d08&&(_0x240d08=this['lines']+0x1);let _0x349353=this['line'](_0x6a48af)['from'];_0xbb2294=this['iterRange'](_0x349353,Math['max'](_0x349353,_0x240d08==this['lines']+0x1?this['length']:_0x240d08<=0x1?0x0:this['line'](_0x240d08-0x1)['to']));}return new LineCursor(_0xbb2294);}['toString'](){return this['sliceString'](0x0);}['toJSON'](){let _0x5c172b=[];return this['flatten'](_0x5c172b),_0x5c172b;}constructor(){}static['of'](_0x1445e4){if(0x0==_0x1445e4['length'])throw new RangeError('A\x20document\x20must\x20have\x20at\x20least\x20one\x20line');return 0x1!=_0x1445e4['length']||_0x1445e4[0x0]?_0x1445e4['length']<=0x20?new TextLeaf(_0x1445e4):TextNode['from'](TextLeaf['split'](_0x1445e4,[])):Text['empty'];}}class TextLeaf extends Text{constructor(_0x159636,_0x29dcac=textLength(_0x159636)){super(),this['text']=_0x159636,this['length']=_0x29dcac;}get['lines'](){return this['text']['length'];}get['children'](){return null;}['lineInner'](_0x29b18a,_0x2da31c,_0x9169a,_0x4477fe){for(let _0x17c11d=0x0;;_0x17c11d++){let _0x8b5c75=this['text'][_0x17c11d],_0x2c3f26=_0x4477fe+_0x8b5c75['length'];if((_0x2da31c?_0x9169a:_0x2c3f26)>=_0x29b18a)return new Line$1(_0x4477fe,_0x2c3f26,_0x9169a,_0x8b5c75);_0x4477fe=_0x2c3f26+0x1,_0x9169a++;}}['decompose'](_0x68f26f,_0x9b7311,_0x1abbe7,_0x165e26){let _0x896cd2=_0x68f26f<=0x0&&_0x9b7311>=this['length']?this:new TextLeaf(sliceText(this['text'],_0x68f26f,_0x9b7311),Math['min'](_0x9b7311,this['length'])-Math['max'](0x0,_0x68f26f));if(0x1&_0x165e26){let _0x7bfcce=_0x1abbe7['pop'](),_0x5a0737=appendText(_0x896cd2['text'],_0x7bfcce['text']['slice'](),0x0,_0x896cd2['length']);if(_0x5a0737['length']<=0x20)_0x1abbe7['push'](new TextLeaf(_0x5a0737,_0x7bfcce['length']+_0x896cd2['length']));else{let _0x3f0ac7=_0x5a0737['length']>>0x1;_0x1abbe7['push'](new TextLeaf(_0x5a0737['slice'](0x0,_0x3f0ac7)),new TextLeaf(_0x5a0737['slice'](_0x3f0ac7)));}}else _0x1abbe7['push'](_0x896cd2);}['replace'](_0x4a454c,_0x349821,_0x10d28f){if(!(_0x10d28f instanceof TextLeaf))return super['replace'](_0x4a454c,_0x349821,_0x10d28f);[_0x4a454c,_0x349821]=clip(this,_0x4a454c,_0x349821);let _0x4b286f=appendText(this['text'],appendText(_0x10d28f['text'],sliceText(this['text'],0x0,_0x4a454c)),_0x349821),_0x4e0c82=this['length']+_0x10d28f['length']-(_0x349821-_0x4a454c);return _0x4b286f['length']<=0x20?new TextLeaf(_0x4b286f,_0x4e0c82):TextNode['from'](TextLeaf['split'](_0x4b286f,[]),_0x4e0c82);}['sliceString'](_0x13ca97,_0xcb0eda=this['length'],_0xd0ec0a='\x0a'){[_0x13ca97,_0xcb0eda]=clip(this,_0x13ca97,_0xcb0eda);let _0x12bc84='';for(let _0x498f4c=0x0,_0x31e97b=0x0;_0x498f4c<=_0xcb0eda&&_0x31e97b<this['text']['length'];_0x31e97b++){let _0x45c135=this['text'][_0x31e97b],_0x5e5e24=_0x498f4c+_0x45c135['length'];_0x498f4c>_0x13ca97&&_0x31e97b&&(_0x12bc84+=_0xd0ec0a),_0x13ca97<_0x5e5e24&&_0xcb0eda>_0x498f4c&&(_0x12bc84+=_0x45c135['slice'](Math['max'](0x0,_0x13ca97-_0x498f4c),_0xcb0eda-_0x498f4c)),_0x498f4c=_0x5e5e24+0x1;}return _0x12bc84;}['flatten'](_0x5e7bf6){for(let _0x1a313e of this['text'])_0x5e7bf6['push'](_0x1a313e);}['scanIdentical'](){return 0x0;}static['split'](_0x1010a3,_0x23603e){let _0x5c378e=[],_0x1f2715=-0x1;for(let _0xa74224 of _0x1010a3)_0x5c378e['push'](_0xa74224),_0x1f2715+=_0xa74224['length']+0x1,0x20==_0x5c378e['length']&&(_0x23603e['push'](new TextLeaf(_0x5c378e,_0x1f2715)),_0x5c378e=[],_0x1f2715=-0x1);return _0x1f2715>-0x1&&_0x23603e['push'](new TextLeaf(_0x5c378e,_0x1f2715)),_0x23603e;}}class TextNode extends Text{constructor(_0x1c0457,_0x4e493b){super(),this['children']=_0x1c0457,this['length']=_0x4e493b,this['lines']=0x0;for(let _0x11b136 of _0x1c0457)this['lines']+=_0x11b136['lines'];}['lineInner'](_0x21d629,_0x4bcfaf,_0x5efeb9,_0x28e299){for(let _0x3ae01a=0x0;;_0x3ae01a++){let _0x390762=this['children'][_0x3ae01a],_0x2a25f2=_0x28e299+_0x390762['length'],_0x203d81=_0x5efeb9+_0x390762['lines']-0x1;if((_0x4bcfaf?_0x203d81:_0x2a25f2)>=_0x21d629)return _0x390762['lineInner'](_0x21d629,_0x4bcfaf,_0x5efeb9,_0x28e299);_0x28e299=_0x2a25f2+0x1,_0x5efeb9=_0x203d81+0x1;}}['decompose'](_0x17628a,_0x2f7be7,_0x1ea9e6,_0x9f9122){for(let _0x4dc157=0x0,_0x300050=0x0;_0x300050<=_0x2f7be7&&_0x4dc157<this['children']['length'];_0x4dc157++){let _0x1edbda=this['children'][_0x4dc157],_0x30d7a0=_0x300050+_0x1edbda['length'];if(_0x17628a<=_0x30d7a0&&_0x2f7be7>=_0x300050){let _0x1a6149=_0x9f9122&((_0x300050<=_0x17628a?0x1:0x0)|(_0x30d7a0>=_0x2f7be7?0x2:0x0));_0x300050>=_0x17628a&&_0x30d7a0<=_0x2f7be7&&!_0x1a6149?_0x1ea9e6['push'](_0x1edbda):_0x1edbda['decompose'](_0x17628a-_0x300050,_0x2f7be7-_0x300050,_0x1ea9e6,_0x1a6149);}_0x300050=_0x30d7a0+0x1;}}['replace'](_0x17cc17,_0x3c83f5,_0x392a41){if([_0x17cc17,_0x3c83f5]=clip(this,_0x17cc17,_0x3c83f5),_0x392a41['lines']<this['lines'])for(let _0x466df6=0x0,_0x1f6a4b=0x0;_0x466df6<this['children']['length'];_0x466df6++){let _0x1e6e03=this['children'][_0x466df6],_0x527b86=_0x1f6a4b+_0x1e6e03['length'];if(_0x17cc17>=_0x1f6a4b&&_0x3c83f5<=_0x527b86){let _0x118d88=_0x1e6e03['replace'](_0x17cc17-_0x1f6a4b,_0x3c83f5-_0x1f6a4b,_0x392a41),_0x64d82=this['lines']-_0x1e6e03['lines']+_0x118d88['lines'];if(_0x118d88['lines']<_0x64d82>>0x4&&_0x118d88['lines']>_0x64d82>>0x6){let _0x1e6d2b=this['children']['slice']();return _0x1e6d2b[_0x466df6]=_0x118d88,new TextNode(_0x1e6d2b,this['length']-(_0x3c83f5-_0x17cc17)+_0x392a41['length']);}return super['replace'](_0x1f6a4b,_0x527b86,_0x118d88);}_0x1f6a4b=_0x527b86+0x1;}return super['replace'](_0x17cc17,_0x3c83f5,_0x392a41);}['sliceString'](_0x2f6a0b,_0x501b88=this['length'],_0x132ccb='\x0a'){[_0x2f6a0b,_0x501b88]=clip(this,_0x2f6a0b,_0x501b88);let _0x16f527='';for(let _0x3b5ccc=0x0,_0x287fa9=0x0;_0x3b5ccc<this['children']['length']&&_0x287fa9<=_0x501b88;_0x3b5ccc++){let _0x4ea1fd=this['children'][_0x3b5ccc],_0x58e8d1=_0x287fa9+_0x4ea1fd['length'];_0x287fa9>_0x2f6a0b&&_0x3b5ccc&&(_0x16f527+=_0x132ccb),_0x2f6a0b<_0x58e8d1&&_0x501b88>_0x287fa9&&(_0x16f527+=_0x4ea1fd['sliceString'](_0x2f6a0b-_0x287fa9,_0x501b88-_0x287fa9,_0x132ccb)),_0x287fa9=_0x58e8d1+0x1;}return _0x16f527;}['flatten'](_0x471472){for(let _0x100986 of this['children'])_0x100986['flatten'](_0x471472);}['scanIdentical'](_0x51a982,_0x1f278c){if(!(_0x51a982 instanceof TextNode))return 0x0;let _0xc1c70a=0x0,[_0x53a816,_0x45a89a,_0x4fb3c6,_0x344077]=_0x1f278c>0x0?[0x0,0x0,this['children']['length'],_0x51a982['children']['length']]:[this['children']['length']-0x1,_0x51a982['children']['length']-0x1,-0x1,-0x1];for(;;_0x53a816+=_0x1f278c,_0x45a89a+=_0x1f278c){if(_0x53a816==_0x4fb3c6||_0x45a89a==_0x344077)return _0xc1c70a;let _0x118f0e=this['children'][_0x53a816],_0x55d76d=_0x51a982['children'][_0x45a89a];if(_0x118f0e!=_0x55d76d)return _0xc1c70a+_0x118f0e['scanIdentical'](_0x55d76d,_0x1f278c);_0xc1c70a+=_0x118f0e['length']+0x1;}}static['from'](_0x26fd7f,_0x3877c4=_0x26fd7f['reduce']((_0x4b5762,_0x1e526f)=>_0x4b5762+_0x1e526f['length']+0x1,-0x1)){let _0xf6eae0=0x0;for(let _0x5aa2b1 of _0x26fd7f)_0xf6eae0+=_0x5aa2b1['lines'];if(_0xf6eae0<0x20){let _0x32138f=[];for(let _0x3f7804 of _0x26fd7f)_0x3f7804['flatten'](_0x32138f);return new TextLeaf(_0x32138f,_0x3877c4);}let _0x4f7414=Math['max'](0x20,_0xf6eae0>>0x5),_0x4421ab=_0x4f7414<<0x1,_0x84f734=_0x4f7414>>0x1,_0x588153=[],_0x30161d=0x0,_0x3bc603=-0x1,_0x1e6184=[];function _0x2b9825(_0x316193){let _0x52182a;if(_0x316193['lines']>_0x4421ab&&_0x316193 instanceof TextNode){for(let _0x491082 of _0x316193['children'])_0x2b9825(_0x491082);}else _0x316193['lines']>_0x84f734&&(_0x30161d>_0x84f734||!_0x30161d)?(_0x5ad96a(),_0x588153['push'](_0x316193)):_0x316193 instanceof TextLeaf&&_0x30161d&&(_0x52182a=_0x1e6184[_0x1e6184['length']-0x1])instanceof TextLeaf&&_0x316193['lines']+_0x52182a['lines']<=0x20?(_0x30161d+=_0x316193['lines'],_0x3bc603+=_0x316193['length']+0x1,_0x1e6184[_0x1e6184['length']-0x1]=new TextLeaf(_0x52182a['text']['concat'](_0x316193['text']),_0x52182a['length']+0x1+_0x316193['length'])):(_0x30161d+_0x316193['lines']>_0x4f7414&&_0x5ad96a(),_0x30161d+=_0x316193['lines'],_0x3bc603+=_0x316193['length']+0x1,_0x1e6184['push'](_0x316193));}function _0x5ad96a(){0x0!=_0x30161d&&(_0x588153['push'](0x1==_0x1e6184['length']?_0x1e6184[0x0]:TextNode['from'](_0x1e6184,_0x3bc603)),_0x3bc603=-0x1,_0x30161d=_0x1e6184['length']=0x0);}for(let _0x4177e0 of _0x26fd7f)_0x2b9825(_0x4177e0);return _0x5ad96a(),0x1==_0x588153['length']?_0x588153[0x0]:new TextNode(_0x588153,_0x3877c4);}}function textLength(_0xae2642){let _0x51a73e=-0x1;for(let _0x3e70df of _0xae2642)_0x51a73e+=_0x3e70df['length']+0x1;return _0x51a73e;}function appendText(_0x8c1c3a,_0x4b491e,_0x4bc978=0x0,_0x32ceda=0x3b9aca00){for(let _0x18223a=0x0,_0x445488=0x0,_0x66cf31=!0x0;_0x445488<_0x8c1c3a['length']&&_0x18223a<=_0x32ceda;_0x445488++){let _0x153882=_0x8c1c3a[_0x445488],_0x59daeb=_0x18223a+_0x153882['length'];_0x59daeb>=_0x4bc978&&(_0x59daeb>_0x32ceda&&(_0x153882=_0x153882['slice'](0x0,_0x32ceda-_0x18223a)),_0x18223a<_0x4bc978&&(_0x153882=_0x153882['slice'](_0x4bc978-_0x18223a)),_0x66cf31?(_0x4b491e[_0x4b491e['length']-0x1]+=_0x153882,_0x66cf31=!0x1):_0x4b491e['push'](_0x153882)),_0x18223a=_0x59daeb+0x1;}return _0x4b491e;}function sliceText(_0x1b01c8,_0x1e26e6,_0xdb70cc){return appendText(_0x1b01c8,[''],_0x1e26e6,_0xdb70cc);}Text['empty']=new TextLeaf([''],0x0);class RawTextCursor{constructor(_0x570cac,_0x1d69ba=0x1){this['dir']=_0x1d69ba,this['done']=!0x1,this['lineBreak']=!0x1,this['value']='',this['nodes']=[_0x570cac],this['offsets']=[_0x1d69ba>0x0?0x1:(_0x570cac instanceof TextLeaf?_0x570cac['text']['length']:_0x570cac['children']['length'])<<0x1];}['nextInner'](_0x5c5d34,_0xdd209e){for(this['done']=this['lineBreak']=!0x1;;){let _0x482e68=this['nodes']['length']-0x1,_0x5c4acf=this['nodes'][_0x482e68],_0x45ee7d=this['offsets'][_0x482e68],_0x350ab8=_0x45ee7d>>0x1,_0x3aa074=_0x5c4acf instanceof TextLeaf?_0x5c4acf['text']['length']:_0x5c4acf['children']['length'];if(_0x350ab8==(_0xdd209e>0x0?_0x3aa074:0x0)){if(0x0==_0x482e68)return this['done']=!0x0,this['value']='',this;_0xdd209e>0x0&&this['offsets'][_0x482e68-0x1]++,this['nodes']['pop'](),this['offsets']['pop']();}else{if((0x1&_0x45ee7d)==(_0xdd209e>0x0?0x0:0x1)){if(this['offsets'][_0x482e68]+=_0xdd209e,0x0==_0x5c5d34)return this['lineBreak']=!0x0,this['value']='\x0a',this;_0x5c5d34--;}else{if(_0x5c4acf instanceof TextLeaf){let _0xf900e8=_0x5c4acf['text'][_0x350ab8+(_0xdd209e<0x0?-0x1:0x0)];if(this['offsets'][_0x482e68]+=_0xdd209e,_0xf900e8['length']>Math['max'](0x0,_0x5c5d34))return this['value']=0x0==_0x5c5d34?_0xf900e8:_0xdd209e>0x0?_0xf900e8['slice'](_0x5c5d34):_0xf900e8['slice'](0x0,_0xf900e8['length']-_0x5c5d34),this;_0x5c5d34-=_0xf900e8['length'];}else{let _0x55e44c=_0x5c4acf['children'][_0x350ab8+(_0xdd209e<0x0?-0x1:0x0)];_0x5c5d34>_0x55e44c['length']?(_0x5c5d34-=_0x55e44c['length'],this['offsets'][_0x482e68]+=_0xdd209e):(_0xdd209e<0x0&&this['offsets'][_0x482e68]--,this['nodes']['push'](_0x55e44c),this['offsets']['push'](_0xdd209e>0x0?0x1:(_0x55e44c instanceof TextLeaf?_0x55e44c['text']['length']:_0x55e44c['children']['length'])<<0x1));}}}}}['next'](_0x257374=0x0){return _0x257374<0x0&&(this['nextInner'](-_0x257374,-this['dir']),_0x257374=this['value']['length']),this['nextInner'](_0x257374,this['dir']);}}class PartialTextCursor{constructor(_0x1a3001,_0x28b2ce,_0x397536){this['value']='',this['done']=!0x1,this['cursor']=new RawTextCursor(_0x1a3001,_0x28b2ce>_0x397536?-0x1:0x1),this['pos']=_0x28b2ce>_0x397536?_0x1a3001['length']:0x0,this['from']=Math['min'](_0x28b2ce,_0x397536),this['to']=Math['max'](_0x28b2ce,_0x397536);}['nextInner'](_0x524f94,_0x172b72){if(_0x172b72<0x0?this['pos']<=this['from']:this['pos']>=this['to'])return this['value']='',this['done']=!0x0,this;_0x524f94+=Math['max'](0x0,_0x172b72<0x0?this['pos']-this['to']:this['from']-this['pos']);let _0x4950ff=_0x172b72<0x0?this['pos']-this['from']:this['to']-this['pos'];_0x524f94>_0x4950ff&&(_0x524f94=_0x4950ff),_0x4950ff-=_0x524f94;let {value:_0x49c96c}=this['cursor']['next'](_0x524f94);return this['pos']+=(_0x49c96c['length']+_0x524f94)*_0x172b72,this['value']=_0x49c96c['length']<=_0x4950ff?_0x49c96c:_0x172b72<0x0?_0x49c96c['slice'](_0x49c96c['length']-_0x4950ff):_0x49c96c['slice'](0x0,_0x4950ff),this['done']=!this['value'],this;}['next'](_0x1c2421=0x0){return _0x1c2421<0x0?_0x1c2421=Math['max'](_0x1c2421,this['from']-this['pos']):_0x1c2421>0x0&&(_0x1c2421=Math['min'](_0x1c2421,this['to']-this['pos'])),this['nextInner'](_0x1c2421,this['cursor']['dir']);}get['lineBreak'](){return this['cursor']['lineBreak']&&''!=this['value'];}}class LineCursor{constructor(_0x463f95){this['inner']=_0x463f95,this['afterBreak']=!0x0,this['value']='',this['done']=!0x1;}['next'](_0x181f28=0x0){let {done:_0x52da82,lineBreak:_0x793d8c,value:_0x37eb9a}=this['inner']['next'](_0x181f28);return _0x52da82&&this['afterBreak']?(this['value']='',this['afterBreak']=!0x1):_0x52da82?(this['done']=!0x0,this['value']=''):_0x793d8c?this['afterBreak']?this['value']='':(this['afterBreak']=!0x0,this['next']()):(this['value']=_0x37eb9a,this['afterBreak']=!0x1),this;}get['lineBreak'](){return!0x1;}}'undefined'!=typeof Symbol&&(Text['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(_0xd5b63b,_0x3a8226,_0x2e40c0,_0x1dd75c){this['from']=_0xd5b63b,this['to']=_0x3a8226,this['number']=_0x2e40c0,this['text']=_0x1dd75c;}get['length'](){return this['to']-this['from'];}};function clip(_0x4c6168,_0xbf1853,_0x17c760){return[_0xbf1853=Math['max'](0x0,Math['min'](_0x4c6168['length'],_0xbf1853)),Math['max'](_0xbf1853,Math['min'](_0x4c6168['length'],_0x17c760))];}function findClusterBreak(_0x3f4894,_0x440d30,_0x1e0c05=!0x0,_0x34440c=!0x0){return findClusterBreak$1(_0x3f4894,_0x440d30,_0x1e0c05,_0x34440c);}function surrogateLow(_0x5901b6){return _0x5901b6>=0xdc00&&_0x5901b6<0xe000;}function surrogateHigh(_0x1cfce7){return _0x1cfce7>=0xd800&&_0x1cfce7<0xdc00;}function codePointAt(_0x182e27,_0x312f36){let _0x580cc5=_0x182e27['charCodeAt'](_0x312f36);if(!surrogateHigh(_0x580cc5)||_0x312f36+0x1==_0x182e27['length'])return _0x580cc5;let _0x27026f=_0x182e27['charCodeAt'](_0x312f36+0x1);return surrogateLow(_0x27026f)?_0x27026f-0xdc00+(_0x580cc5-0xd800<<0xa)+0x10000:_0x580cc5;}function fromCodePoint(_0xf2119d){return _0xf2119d<=0xffff?String['fromCharCode'](_0xf2119d):(_0xf2119d-=0x10000,String['fromCharCode'](0xd800+(_0xf2119d>>0xa),0xdc00+(0x3ff&_0xf2119d)));}function codePointSize(_0x2a9d3b){return _0x2a9d3b<0x10000?0x1:0x2;}const DefaultSplit=/\r\n?|\n/;var MapMode=function(_0x979dd4){return _0x979dd4[_0x979dd4['Simple']=0x0]='Simple',_0x979dd4[_0x979dd4['TrackDel']=0x1]='TrackDel',_0x979dd4[_0x979dd4['TrackBefore']=0x2]='TrackBefore',_0x979dd4[_0x979dd4['TrackAfter']=0x3]='TrackAfter',_0x979dd4;}(MapMode||(MapMode={}));class ChangeDesc{constructor(_0x5cf082){this['sections']=_0x5cf082;}get['length'](){let _0x1221b2=0x0;for(let _0xd98ed6=0x0;_0xd98ed6<this['sections']['length'];_0xd98ed6+=0x2)_0x1221b2+=this['sections'][_0xd98ed6];return _0x1221b2;}get['newLength'](){let _0x5a7872=0x0;for(let _0xeb1efa=0x0;_0xeb1efa<this['sections']['length'];_0xeb1efa+=0x2){let _0x32aaa9=this['sections'][_0xeb1efa+0x1];_0x5a7872+=_0x32aaa9<0x0?this['sections'][_0xeb1efa]:_0x32aaa9;}return _0x5a7872;}get['empty'](){return 0x0==this['sections']['length']||0x2==this['sections']['length']&&this['sections'][0x1]<0x0;}['iterGaps'](_0x39c4ee){for(let _0x3e475d=0x0,_0x23b40f=0x0,_0x48323d=0x0;_0x3e475d<this['sections']['length'];){let _0x5d57c3=this['sections'][_0x3e475d++],_0x521e2c=this['sections'][_0x3e475d++];_0x521e2c<0x0?(_0x39c4ee(_0x23b40f,_0x48323d,_0x5d57c3),_0x48323d+=_0x5d57c3):_0x48323d+=_0x521e2c,_0x23b40f+=_0x5d57c3;}}['iterChangedRanges'](_0x2031c5,_0x310b5c=!0x1){iterChanges(this,_0x2031c5,_0x310b5c);}get['invertedDesc'](){let _0x58accd=[];for(let _0x2efba0=0x0;_0x2efba0<this['sections']['length'];){let _0x28b95d=this['sections'][_0x2efba0++],_0x4d9e45=this['sections'][_0x2efba0++];_0x4d9e45<0x0?_0x58accd['push'](_0x28b95d,_0x4d9e45):_0x58accd['push'](_0x4d9e45,_0x28b95d);}return new ChangeDesc(_0x58accd);}['composeDesc'](_0xef453e){return this['empty']?_0xef453e:_0xef453e['empty']?this:composeSets(this,_0xef453e);}['mapDesc'](_0x1f1a1f,_0x270bac=!0x1){return _0x1f1a1f['empty']?this:mapSet(this,_0x1f1a1f,_0x270bac);}['mapPos'](_0x321b34,_0x505266=-0x1,_0x5856f6=MapMode['Simple']){let _0x5ac249=0x0,_0x3f5437=0x0;for(let _0x5d8d55=0x0;_0x5d8d55<this['sections']['length'];){let _0x3dfa09=this['sections'][_0x5d8d55++],_0x41a56c=this['sections'][_0x5d8d55++],_0x29f817=_0x5ac249+_0x3dfa09;if(_0x41a56c<0x0){if(_0x29f817>_0x321b34)return _0x3f5437+(_0x321b34-_0x5ac249);_0x3f5437+=_0x3dfa09;}else{if(_0x5856f6!=MapMode['Simple']&&_0x29f817>=_0x321b34&&(_0x5856f6==MapMode['TrackDel']&&_0x5ac249<_0x321b34&&_0x29f817>_0x321b34||_0x5856f6==MapMode['TrackBefore']&&_0x5ac249<_0x321b34||_0x5856f6==MapMode['TrackAfter']&&_0x29f817>_0x321b34))return null;if(_0x29f817>_0x321b34||_0x29f817==_0x321b34&&_0x505266<0x0&&!_0x3dfa09)return _0x321b34==_0x5ac249||_0x505266<0x0?_0x3f5437:_0x3f5437+_0x41a56c;_0x3f5437+=_0x41a56c;}_0x5ac249=_0x29f817;}if(_0x321b34>_0x5ac249)throw new RangeError('Position\x20'+_0x321b34+'\x20is\x20out\x20of\x20range\x20for\x20changeset\x20of\x20length\x20'+_0x5ac249);return _0x3f5437;}['touchesRange'](_0x3fb36f,_0x2d671c=_0x3fb36f){for(let _0x139387=0x0,_0x25e4ab=0x0;_0x139387<this['sections']['length']&&_0x25e4ab<=_0x2d671c;){let _0x3f07cf=_0x25e4ab+this['sections'][_0x139387++];if(this['sections'][_0x139387++]>=0x0&&_0x25e4ab<=_0x2d671c&&_0x3f07cf>=_0x3fb36f)return!(_0x25e4ab<_0x3fb36f&&_0x3f07cf>_0x2d671c)||'cover';_0x25e4ab=_0x3f07cf;}return!0x1;}['toString'](){let _0x54a41f='';for(let _0x24a2dc=0x0;_0x24a2dc<this['sections']['length'];){let _0x2eea2b=this['sections'][_0x24a2dc++],_0x626b41=this['sections'][_0x24a2dc++];_0x54a41f+=(_0x54a41f?'\x20':'')+_0x2eea2b+(_0x626b41>=0x0?':'+_0x626b41:'');}return _0x54a41f;}['toJSON'](){return this['sections'];}static['fromJSON'](_0x137366){if(!Array['isArray'](_0x137366)||_0x137366['length']%0x2||_0x137366['some'](_0x34bf7c=>'number'!=typeof _0x34bf7c))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeDesc');return new ChangeDesc(_0x137366);}static['create'](_0x4b5f41){return new ChangeDesc(_0x4b5f41);}}class ChangeSet extends ChangeDesc{constructor(_0x39abd9,_0x479b71){super(_0x39abd9),this['inserted']=_0x479b71;}['apply'](_0x4981d0){if(this['length']!=_0x4981d0['length'])throw new RangeError('Applying\x20change\x20set\x20to\x20a\x20document\x20with\x20the\x20wrong\x20length');return iterChanges(this,(_0x99852a,_0x2c2060,_0x2629c4,_0x3774fa,_0x1d8f81)=>_0x4981d0=_0x4981d0['replace'](_0x2629c4,_0x2629c4+(_0x2c2060-_0x99852a),_0x1d8f81),!0x1),_0x4981d0;}['mapDesc'](_0x1c1054,_0x573824=!0x1){return mapSet(this,_0x1c1054,_0x573824,!0x0);}['invert'](_0x408f82){let _0xfc4af7=this['sections']['slice'](),_0x312bc5=[];for(let _0x33483e=0x0,_0x47a823=0x0;_0x33483e<_0xfc4af7['length'];_0x33483e+=0x2){let _0x3d6dff=_0xfc4af7[_0x33483e],_0x3a6043=_0xfc4af7[_0x33483e+0x1];if(_0x3a6043>=0x0){_0xfc4af7[_0x33483e]=_0x3a6043,_0xfc4af7[_0x33483e+0x1]=_0x3d6dff;let _0x5469b5=_0x33483e>>0x1;for(;_0x312bc5['length']<_0x5469b5;)_0x312bc5['push'](Text['empty']);_0x312bc5['push'](_0x3d6dff?_0x408f82['slice'](_0x47a823,_0x47a823+_0x3d6dff):Text['empty']);}_0x47a823+=_0x3d6dff;}return new ChangeSet(_0xfc4af7,_0x312bc5);}['compose'](_0x49c746){return this['empty']?_0x49c746:_0x49c746['empty']?this:composeSets(this,_0x49c746,!0x0);}['map'](_0x51715d,_0x5bb1c5=!0x1){return _0x51715d['empty']?this:mapSet(this,_0x51715d,_0x5bb1c5,!0x0);}['iterChanges'](_0xd33768,_0x11baed=!0x1){iterChanges(this,_0xd33768,_0x11baed);}get['desc'](){return ChangeDesc['create'](this['sections']);}['filter'](_0x2cbc7a){let _0xe10ea6=[],_0x38f933=[],_0x470cde=[],_0x3a32e3=new SectionIter(this);t:for(let _0x4f4004=0x0,_0x4b0a47=0x0;;){let _0x56cb6b=_0x4f4004==_0x2cbc7a['length']?0x3b9aca00:_0x2cbc7a[_0x4f4004++];for(;_0x4b0a47<_0x56cb6b||_0x4b0a47==_0x56cb6b&&0x0==_0x3a32e3['len'];){if(_0x3a32e3['done'])break t;let _0x4fa8e9=Math['min'](_0x3a32e3['len'],_0x56cb6b-_0x4b0a47);addSection(_0x470cde,_0x4fa8e9,-0x1);let _0x28ba6d=-0x1==_0x3a32e3['ins']?-0x1:0x0==_0x3a32e3['off']?_0x3a32e3['ins']:0x0;addSection(_0xe10ea6,_0x4fa8e9,_0x28ba6d),_0x28ba6d>0x0&&addInsert(_0x38f933,_0xe10ea6,_0x3a32e3['text']),_0x3a32e3['forward'](_0x4fa8e9),_0x4b0a47+=_0x4fa8e9;}let _0x22d9ab=_0x2cbc7a[_0x4f4004++];for(;_0x4b0a47<_0x22d9ab;){if(_0x3a32e3['done'])break t;let _0x1edc1d=Math['min'](_0x3a32e3['len'],_0x22d9ab-_0x4b0a47);addSection(_0xe10ea6,_0x1edc1d,-0x1),addSection(_0x470cde,_0x1edc1d,-0x1==_0x3a32e3['ins']?-0x1:0x0==_0x3a32e3['off']?_0x3a32e3['ins']:0x0),_0x3a32e3['forward'](_0x1edc1d),_0x4b0a47+=_0x1edc1d;}}return{'changes':new ChangeSet(_0xe10ea6,_0x38f933),'filtered':ChangeDesc['create'](_0x470cde)};}['toJSON'](){let _0x126bdd=[];for(let _0x3561e2=0x0;_0x3561e2<this['sections']['length'];_0x3561e2+=0x2){let _0x454c6c=this['sections'][_0x3561e2],_0x351b58=this['sections'][_0x3561e2+0x1];_0x351b58<0x0?_0x126bdd['push'](_0x454c6c):0x0==_0x351b58?_0x126bdd['push']([_0x454c6c]):_0x126bdd['push']([_0x454c6c]['concat'](this['inserted'][_0x3561e2>>0x1]['toJSON']()));}return _0x126bdd;}static['of'](_0x4caa2e,_0x35eada,_0x316f59){let _0x3c3b5e=[],_0xa1aea3=[],_0x2daa62=0x0,_0x3e7b9b=null;function _0xd8954d(_0x1ebe61=!0x1){if(!_0x1ebe61&&!_0x3c3b5e['length'])return;_0x2daa62<_0x35eada&&addSection(_0x3c3b5e,_0x35eada-_0x2daa62,-0x1);let _0xc0e660=new ChangeSet(_0x3c3b5e,_0xa1aea3);_0x3e7b9b=_0x3e7b9b?_0x3e7b9b['compose'](_0xc0e660['map'](_0x3e7b9b)):_0xc0e660,_0x3c3b5e=[],_0xa1aea3=[],_0x2daa62=0x0;}return function _0x441c78(_0x473034){if(Array['isArray'](_0x473034)){for(let _0x23582b of _0x473034)_0x441c78(_0x23582b);}else{if(_0x473034 instanceof ChangeSet){if(_0x473034['length']!=_0x35eada)throw new RangeError('Mismatched\x20change\x20set\x20length\x20(got\x20'+_0x473034['length']+',\x20expected\x20'+_0x35eada+')');_0xd8954d(),_0x3e7b9b=_0x3e7b9b?_0x3e7b9b['compose'](_0x473034['map'](_0x3e7b9b)):_0x473034;}else{let {from:_0x310915,to:_0x5337ad=_0x310915,insert:_0x49ec6b}=_0x473034;if(_0x310915>_0x5337ad||_0x310915<0x0||_0x5337ad>_0x35eada)throw new RangeError('Invalid\x20change\x20range\x20'+_0x310915+'\x20to\x20'+_0x5337ad+'\x20(in\x20doc\x20of\x20length\x20'+_0x35eada+')');let _0x25ac79=_0x49ec6b?'string'==typeof _0x49ec6b?Text['of'](_0x49ec6b['split'](_0x316f59||DefaultSplit)):_0x49ec6b:Text['empty'],_0x560397=_0x25ac79['length'];if(_0x310915==_0x5337ad&&0x0==_0x560397)return;_0x310915<_0x2daa62&&_0xd8954d(),_0x310915>_0x2daa62&&addSection(_0x3c3b5e,_0x310915-_0x2daa62,-0x1),addSection(_0x3c3b5e,_0x5337ad-_0x310915,_0x560397),addInsert(_0xa1aea3,_0x3c3b5e,_0x25ac79),_0x2daa62=_0x5337ad;}}}(_0x4caa2e),_0xd8954d(!_0x3e7b9b),_0x3e7b9b;}static['empty'](_0x16b4c4){return new ChangeSet(_0x16b4c4?[_0x16b4c4,-0x1]:[],[]);}static['fromJSON'](_0x233217){if(!Array['isArray'](_0x233217))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');let _0x31d6a2=[],_0x51bcf2=[];for(let _0xcf6192=0x0;_0xcf6192<_0x233217['length'];_0xcf6192++){let _0x183cff=_0x233217[_0xcf6192];if('number'==typeof _0x183cff)_0x31d6a2['push'](_0x183cff,-0x1);else{if(!Array['isArray'](_0x183cff)||'number'!=typeof _0x183cff[0x0]||_0x183cff['some']((_0x1b54aa,_0x43f013)=>_0x43f013&&'string'!=typeof _0x1b54aa))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');if(0x1==_0x183cff['length'])_0x31d6a2['push'](_0x183cff[0x0],0x0);else{for(;_0x51bcf2['length']<_0xcf6192;)_0x51bcf2['push'](Text['empty']);_0x51bcf2[_0xcf6192]=Text['of'](_0x183cff['slice'](0x1)),_0x31d6a2['push'](_0x183cff[0x0],_0x51bcf2[_0xcf6192]['length']);}}}return new ChangeSet(_0x31d6a2,_0x51bcf2);}static['createSet'](_0x2694e9,_0x2e509b){return new ChangeSet(_0x2694e9,_0x2e509b);}}function addSection(_0x140445,_0x57ef8b,_0x4e40ac,_0x527d22=!0x1){if(0x0==_0x57ef8b&&_0x4e40ac<=0x0)return;let _0x3390bf=_0x140445['length']-0x2;_0x3390bf>=0x0&&_0x4e40ac<=0x0&&_0x4e40ac==_0x140445[_0x3390bf+0x1]?_0x140445[_0x3390bf]+=_0x57ef8b:_0x3390bf>=0x0&&0x0==_0x57ef8b&&0x0==_0x140445[_0x3390bf]?_0x140445[_0x3390bf+0x1]+=_0x4e40ac:_0x527d22?(_0x140445[_0x3390bf]+=_0x57ef8b,_0x140445[_0x3390bf+0x1]+=_0x4e40ac):_0x140445['push'](_0x57ef8b,_0x4e40ac);}function addInsert(_0x377e6d,_0xc6957a,_0x97a159){if(0x0==_0x97a159['length'])return;let _0x23aebc=_0xc6957a['length']-0x2>>0x1;if(_0x23aebc<_0x377e6d['length'])_0x377e6d[_0x377e6d['length']-0x1]=_0x377e6d[_0x377e6d['length']-0x1]['append'](_0x97a159);else{for(;_0x377e6d['length']<_0x23aebc;)_0x377e6d['push'](Text['empty']);_0x377e6d['push'](_0x97a159);}}function iterChanges(_0x58b4f0,_0x4bb1ed,_0x3c3011){let _0x49740d=_0x58b4f0['inserted'];for(let _0x1ba0d7=0x0,_0x46b8e3=0x0,_0x4ad3b5=0x0;_0x4ad3b5<_0x58b4f0['sections']['length'];){let _0x49a064=_0x58b4f0['sections'][_0x4ad3b5++],_0x3c4df6=_0x58b4f0['sections'][_0x4ad3b5++];if(_0x3c4df6<0x0)_0x1ba0d7+=_0x49a064,_0x46b8e3+=_0x49a064;else{let _0x46839b=_0x1ba0d7,_0x501097=_0x46b8e3,_0x422abd=Text['empty'];for(;_0x46839b+=_0x49a064,_0x501097+=_0x3c4df6,_0x3c4df6&&_0x49740d&&(_0x422abd=_0x422abd['append'](_0x49740d[_0x4ad3b5-0x2>>0x1])),!(_0x3c3011||_0x4ad3b5==_0x58b4f0['sections']['length']||_0x58b4f0['sections'][_0x4ad3b5+0x1]<0x0);)_0x49a064=_0x58b4f0['sections'][_0x4ad3b5++],_0x3c4df6=_0x58b4f0['sections'][_0x4ad3b5++];_0x4bb1ed(_0x1ba0d7,_0x46839b,_0x46b8e3,_0x501097,_0x422abd),_0x1ba0d7=_0x46839b,_0x46b8e3=_0x501097;}}}function mapSet(_0x159923,_0x4b165d,_0x1658aa,_0x24b9db=!0x1){let _0x24263e=[],_0x51c5fc=_0x24b9db?[]:null,_0x3b3c06=new SectionIter(_0x159923),_0x5acfeb=new SectionIter(_0x4b165d);for(let _0x54342a=-0x1;;){if(_0x3b3c06['done']&&_0x5acfeb['len']||_0x5acfeb['done']&&_0x3b3c06['len'])throw new Error('Mismatched\x20change\x20set\x20lengths');if(-0x1==_0x3b3c06['ins']&&-0x1==_0x5acfeb['ins']){let _0x472622=Math['min'](_0x3b3c06['len'],_0x5acfeb['len']);addSection(_0x24263e,_0x472622,-0x1),_0x3b3c06['forward'](_0x472622),_0x5acfeb['forward'](_0x472622);}else{if(_0x5acfeb['ins']>=0x0&&(_0x3b3c06['ins']<0x0||_0x54342a==_0x3b3c06['i']||0x0==_0x3b3c06['off']&&(_0x5acfeb['len']<_0x3b3c06['len']||_0x5acfeb['len']==_0x3b3c06['len']&&!_0x1658aa))){let _0xf0cee=_0x5acfeb['len'];for(addSection(_0x24263e,_0x5acfeb['ins'],-0x1);_0xf0cee;){let _0x524f39=Math['min'](_0x3b3c06['len'],_0xf0cee);_0x3b3c06['ins']>=0x0&&_0x54342a<_0x3b3c06['i']&&_0x3b3c06['len']<=_0x524f39&&(addSection(_0x24263e,0x0,_0x3b3c06['ins']),_0x51c5fc&&addInsert(_0x51c5fc,_0x24263e,_0x3b3c06['text']),_0x54342a=_0x3b3c06['i']),_0x3b3c06['forward'](_0x524f39),_0xf0cee-=_0x524f39;}_0x5acfeb['next']();}else{if(!(_0x3b3c06['ins']>=0x0)){if(_0x3b3c06['done']&&_0x5acfeb['done'])return _0x51c5fc?ChangeSet['createSet'](_0x24263e,_0x51c5fc):ChangeDesc['create'](_0x24263e);throw new Error('Mismatched\x20change\x20set\x20lengths');}{let _0xad0787=0x0,_0x170e35=_0x3b3c06['len'];for(;_0x170e35;)if(-0x1==_0x5acfeb['ins']){let _0x4380b4=Math['min'](_0x170e35,_0x5acfeb['len']);_0xad0787+=_0x4380b4,_0x170e35-=_0x4380b4,_0x5acfeb['forward'](_0x4380b4);}else{if(!(0x0==_0x5acfeb['ins']&&_0x5acfeb['len']<_0x170e35))break;_0x170e35-=_0x5acfeb['len'],_0x5acfeb['next']();}addSection(_0x24263e,_0xad0787,_0x54342a<_0x3b3c06['i']?_0x3b3c06['ins']:0x0),_0x51c5fc&&_0x54342a<_0x3b3c06['i']&&addInsert(_0x51c5fc,_0x24263e,_0x3b3c06['text']),_0x54342a=_0x3b3c06['i'],_0x3b3c06['forward'](_0x3b3c06['len']-_0x170e35);}}}}}function composeSets(_0x56436b,_0x1aa68d,_0x33b544=!0x1){let _0x5663e4=[],_0x1c78ca=_0x33b544?[]:null,_0x177081=new SectionIter(_0x56436b),_0x252af6=new SectionIter(_0x1aa68d);for(let _0x2ea3ca=!0x1;;){if(_0x177081['done']&&_0x252af6['done'])return _0x1c78ca?ChangeSet['createSet'](_0x5663e4,_0x1c78ca):ChangeDesc['create'](_0x5663e4);if(0x0==_0x177081['ins'])addSection(_0x5663e4,_0x177081['len'],0x0,_0x2ea3ca),_0x177081['next']();else{if(0x0!=_0x252af6['len']||_0x252af6['done']){if(_0x177081['done']||_0x252af6['done'])throw new Error('Mismatched\x20change\x20set\x20lengths');{let _0x4d60ab=Math['min'](_0x177081['len2'],_0x252af6['len']),_0x1a43f8=_0x5663e4['length'];if(-0x1==_0x177081['ins']){let _0x41c0c8=-0x1==_0x252af6['ins']?-0x1:_0x252af6['off']?0x0:_0x252af6['ins'];addSection(_0x5663e4,_0x4d60ab,_0x41c0c8,_0x2ea3ca),_0x1c78ca&&_0x41c0c8&&addInsert(_0x1c78ca,_0x5663e4,_0x252af6['text']);}else-0x1==_0x252af6['ins']?(addSection(_0x5663e4,_0x177081['off']?0x0:_0x177081['len'],_0x4d60ab,_0x2ea3ca),_0x1c78ca&&addInsert(_0x1c78ca,_0x5663e4,_0x177081['textBit'](_0x4d60ab))):(addSection(_0x5663e4,_0x177081['off']?0x0:_0x177081['len'],_0x252af6['off']?0x0:_0x252af6['ins'],_0x2ea3ca),_0x1c78ca&&!_0x252af6['off']&&addInsert(_0x1c78ca,_0x5663e4,_0x252af6['text']));_0x2ea3ca=(_0x177081['ins']>_0x4d60ab||_0x252af6['ins']>=0x0&&_0x252af6['len']>_0x4d60ab)&&(_0x2ea3ca||_0x5663e4['length']>_0x1a43f8),_0x177081['forward2'](_0x4d60ab),_0x252af6['forward'](_0x4d60ab);}}else addSection(_0x5663e4,0x0,_0x252af6['ins'],_0x2ea3ca),_0x1c78ca&&addInsert(_0x1c78ca,_0x5663e4,_0x252af6['text']),_0x252af6['next']();}}}class SectionIter{constructor(_0x5e927f){this['set']=_0x5e927f,this['i']=0x0,this['next']();}['next'](){let {sections:_0x574acf}=this['set'];this['i']<_0x574acf['length']?(this['len']=_0x574acf[this['i']++],this['ins']=_0x574acf[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:_0x14f663}=this['set'],_0x4b5185=this['i']-0x2>>0x1;return _0x4b5185>=_0x14f663['length']?Text['empty']:_0x14f663[_0x4b5185];}['textBit'](_0x347666){let {inserted:_0x545088}=this['set'],_0x3666b2=this['i']-0x2>>0x1;return _0x3666b2>=_0x545088['length']&&!_0x347666?Text['empty']:_0x545088[_0x3666b2]['slice'](this['off'],null==_0x347666?void 0x0:this['off']+_0x347666);}['forward'](_0x13533b){_0x13533b==this['len']?this['next']():(this['len']-=_0x13533b,this['off']+=_0x13533b);}['forward2'](_0x2a933d){-0x1==this['ins']?this['forward'](_0x2a933d):_0x2a933d==this['ins']?this['next']():(this['ins']-=_0x2a933d,this['off']+=_0x2a933d);}}class SelectionRange{constructor(_0x3a27b4,_0x5682c8,_0x29727b){this['from']=_0x3a27b4,this['to']=_0x5682c8,this['flags']=_0x29727b;}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 _0x58f71e=0x7&this['flags'];return 0x7==_0x58f71e?null:_0x58f71e;}get['goalColumn'](){let _0x3ed5d4=this['flags']>>0x6;return 0xffffff==_0x3ed5d4?void 0x0:_0x3ed5d4;}['map'](_0x4808a3,_0x3c5748=-0x1){let _0x1519c0,_0x2bcac1;return this['empty']?_0x1519c0=_0x2bcac1=_0x4808a3['mapPos'](this['from'],_0x3c5748):(_0x1519c0=_0x4808a3['mapPos'](this['from'],0x1),_0x2bcac1=_0x4808a3['mapPos'](this['to'],-0x1)),_0x1519c0==this['from']&&_0x2bcac1==this['to']?this:new SelectionRange(_0x1519c0,_0x2bcac1,this['flags']);}['extend'](_0x275975,_0x51b00d=_0x275975){if(_0x275975<=this['anchor']&&_0x51b00d>=this['anchor'])return EditorSelection['range'](_0x275975,_0x51b00d);let _0x34c680=Math['abs'](_0x275975-this['anchor'])>Math['abs'](_0x51b00d-this['anchor'])?_0x275975:_0x51b00d;return EditorSelection['range'](this['anchor'],_0x34c680);}['eq'](_0x34724b,_0x36a26f=!0x1){return!(this['anchor']!=_0x34724b['anchor']||this['head']!=_0x34724b['head']||_0x36a26f&&this['empty']&&this['assoc']!=_0x34724b['assoc']);}['toJSON'](){return{'anchor':this['anchor'],'head':this['head']};}static['fromJSON'](_0x571f5c){if(!_0x571f5c||'number'!=typeof _0x571f5c['anchor']||'number'!=typeof _0x571f5c['head'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20SelectionRange');return EditorSelection['range'](_0x571f5c['anchor'],_0x571f5c['head']);}static['create'](_0x2ab75b,_0x46f558,_0x2854fd){return new SelectionRange(_0x2ab75b,_0x46f558,_0x2854fd);}}class EditorSelection{constructor(_0x1bd2f9,_0x523924){this['ranges']=_0x1bd2f9,this['mainIndex']=_0x523924;}['map'](_0x1736a2,_0x29c0b3=-0x1){return _0x1736a2['empty']?this:EditorSelection['create'](this['ranges']['map'](_0x16bd24=>_0x16bd24['map'](_0x1736a2,_0x29c0b3)),this['mainIndex']);}['eq'](_0x5ba525,_0x11be1b=!0x1){if(this['ranges']['length']!=_0x5ba525['ranges']['length']||this['mainIndex']!=_0x5ba525['mainIndex'])return!0x1;for(let _0x11e78b=0x0;_0x11e78b<this['ranges']['length'];_0x11e78b++)if(!this['ranges'][_0x11e78b]['eq'](_0x5ba525['ranges'][_0x11e78b],_0x11be1b))return!0x1;return!0x0;}get['main'](){return this['ranges'][this['mainIndex']];}['asSingle'](){return 0x1==this['ranges']['length']?this:new EditorSelection([this['main']],0x0);}['addRange'](_0x3958fa,_0x2b8988=!0x0){return EditorSelection['create']([_0x3958fa]['concat'](this['ranges']),_0x2b8988?0x0:this['mainIndex']+0x1);}['replaceRange'](_0x1ccafb,_0x2f8c2b=this['mainIndex']){let _0x1e1e0a=this['ranges']['slice']();return _0x1e1e0a[_0x2f8c2b]=_0x1ccafb,EditorSelection['create'](_0x1e1e0a,this['mainIndex']);}['toJSON'](){return{'ranges':this['ranges']['map'](_0x5d937e=>_0x5d937e['toJSON']()),'main':this['mainIndex']};}static['fromJSON'](_0x353fad){if(!_0x353fad||!Array['isArray'](_0x353fad['ranges'])||'number'!=typeof _0x353fad['main']||_0x353fad['main']>=_0x353fad['ranges']['length'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorSelection');return new EditorSelection(_0x353fad['ranges']['map'](_0x185047=>SelectionRange['fromJSON'](_0x185047)),_0x353fad['main']);}static['single'](_0x58092f,_0x393950=_0x58092f){return new EditorSelection([EditorSelection['range'](_0x58092f,_0x393950)],0x0);}static['create'](_0x3eac95,_0x176a3b=0x0){if(0x0==_0x3eac95['length'])throw new RangeError('A\x20selection\x20needs\x20at\x20least\x20one\x20range');for(let _0x4160fe=0x0,_0x48751a=0x0;_0x48751a<_0x3eac95['length'];_0x48751a++){let _0x12a737=_0x3eac95[_0x48751a];if(_0x12a737['empty']?_0x12a737['from']<=_0x4160fe:_0x12a737['from']<_0x4160fe)return EditorSelection['normalized'](_0x3eac95['slice'](),_0x176a3b);_0x4160fe=_0x12a737['to'];}return new EditorSelection(_0x3eac95,_0x176a3b);}static['cursor'](_0xe29c95,_0x11c2ec=0x0,_0x4d4e1d,_0x3998a2){return SelectionRange['create'](_0xe29c95,_0xe29c95,(0x0==_0x11c2ec?0x0:_0x11c2ec<0x0?0x8:0x10)|(null==_0x4d4e1d?0x7:Math['min'](0x6,_0x4d4e1d))|(null!=_0x3998a2?_0x3998a2:0xffffff)<<0x6);}static['range'](_0x537ac5,_0x1760be,_0x4a6955,_0x3cf0bd){let _0x1f06a8=(null!=_0x4a6955?_0x4a6955:0xffffff)<<0x6|(null==_0x3cf0bd?0x7:Math['min'](0x6,_0x3cf0bd));return _0x1760be<_0x537ac5?SelectionRange['create'](_0x1760be,_0x537ac5,0x30|_0x1f06a8):SelectionRange['create'](_0x537ac5,_0x1760be,(_0x1760be>_0x537ac5?0x8:0x0)|_0x1f06a8);}static['normalized'](_0x2d5a41,_0x5e5976=0x0){let _0x2d13e1=_0x2d5a41[_0x5e5976];_0x2d5a41['sort']((_0xda53e8,_0x6b89d)=>_0xda53e8['from']-_0x6b89d['from']),_0x5e5976=_0x2d5a41['indexOf'](_0x2d13e1);for(let _0x4c90f0=0x1;_0x4c90f0<_0x2d5a41['length'];_0x4c90f0++){let _0x103a93=_0x2d5a41[_0x4c90f0],_0x400a2b=_0x2d5a41[_0x4c90f0-0x1];if(_0x103a93['empty']?_0x103a93['from']<=_0x400a2b['to']:_0x103a93['from']<_0x400a2b['to']){let _0x51e986=_0x400a2b['from'],_0x4519cb=Math['max'](_0x103a93['to'],_0x400a2b['to']);_0x4c90f0<=_0x5e5976&&_0x5e5976--,_0x2d5a41['splice'](--_0x4c90f0,0x2,_0x103a93['anchor']>_0x103a93['head']?EditorSelection['range'](_0x4519cb,_0x51e986):EditorSelection['range'](_0x51e986,_0x4519cb));}}return new EditorSelection(_0x2d5a41,_0x5e5976);}}function checkSelection(_0x54be25,_0x3f434d){for(let _0x3ea6d0 of _0x54be25['ranges'])if(_0x3ea6d0['to']>_0x3f434d)throw new RangeError('Selection\x20points\x20outside\x20of\x20document');}let nextID=0x0;class Facet{constructor(_0x1a14a2,_0x277ec7,_0x43e5d7,_0x2f66df,_0x25a2fb){this['combine']=_0x1a14a2,this['compareInput']=_0x277ec7,this['compare']=_0x43e5d7,this['isStatic']=_0x2f66df,this['id']=nextID++,this['default']=_0x1a14a2([]),this['extensions']='function'==typeof _0x25a2fb?_0x25a2fb(this):_0x25a2fb;}get['reader'](){return this;}static['define'](_0x4d733c={}){return new Facet(_0x4d733c['combine']||(_0x13f589=>_0x13f589),_0x4d733c['compareInput']||((_0x5c60fe,_0x4a6538)=>_0x5c60fe===_0x4a6538),_0x4d733c['compare']||(_0x4d733c['combine']?(_0x2030f1,_0x88b8e0)=>_0x2030f1===_0x88b8e0:sameArray$1),!!_0x4d733c['static'],_0x4d733c['enables']);}['of'](_0x11b4eb){return new FacetProvider([],this,0x0,_0x11b4eb);}['compute'](_0x1ecd4f,_0x343ad4){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x1ecd4f,this,0x1,_0x343ad4);}['computeN'](_0x5216ee,_0x31af48){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x5216ee,this,0x2,_0x31af48);}['from'](_0x4e0a25,_0xac3ba6){return _0xac3ba6||(_0xac3ba6=_0x227094=>_0x227094),this['compute']([_0x4e0a25],_0x56949c=>_0xac3ba6(_0x56949c['field'](_0x4e0a25)));}}function sameArray$1(_0x5ca457,_0x2f7a2f){return _0x5ca457==_0x2f7a2f||_0x5ca457['length']==_0x2f7a2f['length']&&_0x5ca457['every']((_0x48775b,_0x2ef20d)=>_0x48775b===_0x2f7a2f[_0x2ef20d]);}class FacetProvider{constructor(_0x48501d,_0x1015a4,_0x589c97,_0x4b4c69){this['dependencies']=_0x48501d,this['facet']=_0x1015a4,this['type']=_0x589c97,this['value']=_0x4b4c69,this['id']=nextID++;}['dynamicSlot'](_0x59908d){var _0x398509;let _0x50fa80=this['value'],_0x848ddf=this['facet']['compareInput'],_0x309f8c=this['id'],_0x2f4b20=_0x59908d[_0x309f8c]>>0x1,_0x634f11=0x2==this['type'],_0x1712a1=!0x1,_0x381433=!0x1,_0x56c824=[];for(let _0x2c6ef4 of this['dependencies'])'doc'==_0x2c6ef4?_0x1712a1=!0x0:'selection'==_0x2c6ef4?_0x381433=!0x0:0x1&(null!==(_0x398509=_0x59908d[_0x2c6ef4['id']])&&void 0x0!==_0x398509?_0x398509:0x1)||_0x56c824['push'](_0x59908d[_0x2c6ef4['id']]);return{'create':_0x2b8677=>(_0x2b8677['values'][_0x2f4b20]=_0x50fa80(_0x2b8677),0x1),'update'(_0x4ed853,_0x3e3536){if(_0x1712a1&&_0x3e3536['docChanged']||_0x381433&&(_0x3e3536['docChanged']||_0x3e3536['selection'])||ensureAll(_0x4ed853,_0x56c824)){let _0x589b4a=_0x50fa80(_0x4ed853);if(_0x634f11?!compareArray(_0x589b4a,_0x4ed853['values'][_0x2f4b20],_0x848ddf):!_0x848ddf(_0x589b4a,_0x4ed853['values'][_0x2f4b20]))return _0x4ed853['values'][_0x2f4b20]=_0x589b4a,0x1;}return 0x0;},'reconfigure':(_0x56bebf,_0x558611)=>{let _0x464668,_0x401987=_0x558611['config']['address'][_0x309f8c];if(null!=_0x401987){let _0xa11181=getAddr(_0x558611,_0x401987);if(this['dependencies']['every'](_0x4c7016=>_0x4c7016 instanceof Facet?_0x558611['facet'](_0x4c7016)===_0x56bebf['facet'](_0x4c7016):!(_0x4c7016 instanceof StateField)||_0x558611['field'](_0x4c7016,!0x1)==_0x56bebf['field'](_0x4c7016,!0x1))||(_0x634f11?compareArray(_0x464668=_0x50fa80(_0x56bebf),_0xa11181,_0x848ddf):_0x848ddf(_0x464668=_0x50fa80(_0x56bebf),_0xa11181)))return _0x56bebf['values'][_0x2f4b20]=_0xa11181,0x0;}else _0x464668=_0x50fa80(_0x56bebf);return _0x56bebf['values'][_0x2f4b20]=_0x464668,0x1;}};}}function compareArray(_0x53bf27,_0x183a0a,_0x1494cf){if(_0x53bf27['length']!=_0x183a0a['length'])return!0x1;for(let _0x250f11=0x0;_0x250f11<_0x53bf27['length'];_0x250f11++)if(!_0x1494cf(_0x53bf27[_0x250f11],_0x183a0a[_0x250f11]))return!0x1;return!0x0;}function ensureAll(_0xacd84a,_0x4af138){let _0x460c2d=!0x1;for(let _0x581314 of _0x4af138)0x1&ensureAddr(_0xacd84a,_0x581314)&&(_0x460c2d=!0x0);return _0x460c2d;}function dynamicFacetSlot(_0x50ff42,_0x3c9f88,_0x346d45){let _0x326c2e=_0x346d45['map'](_0x589f84=>_0x50ff42[_0x589f84['id']]),_0x2fe7f6=_0x346d45['map'](_0x4a0bcd=>_0x4a0bcd['type']),_0x52d536=_0x326c2e['filter'](_0x453fce=>!(0x1&_0x453fce)),_0x3e3227=_0x50ff42[_0x3c9f88['id']]>>0x1;function _0x1daf8c(_0x5d13ce){let _0x7bb077=[];for(let _0x280fe1=0x0;_0x280fe1<_0x326c2e['length'];_0x280fe1++){let _0x338f95=getAddr(_0x5d13ce,_0x326c2e[_0x280fe1]);if(0x2==_0x2fe7f6[_0x280fe1]){for(let _0x591536 of _0x338f95)_0x7bb077['push'](_0x591536);}else _0x7bb077['push'](_0x338f95);}return _0x3c9f88['combine'](_0x7bb077);}return{'create'(_0x38dfb2){for(let _0x148443 of _0x326c2e)ensureAddr(_0x38dfb2,_0x148443);return _0x38dfb2['values'][_0x3e3227]=_0x1daf8c(_0x38dfb2),0x1;},'update'(_0x3b4556,_0x521eb9){if(!ensureAll(_0x3b4556,_0x52d536))return 0x0;let _0x573cb4=_0x1daf8c(_0x3b4556);return _0x3c9f88['compare'](_0x573cb4,_0x3b4556['values'][_0x3e3227])?0x0:(_0x3b4556['values'][_0x3e3227]=_0x573cb4,0x1);},'reconfigure'(_0x455908,_0x4ca639){let _0xea20ef=ensureAll(_0x455908,_0x326c2e),_0x4b4feb=_0x4ca639['config']['facets'][_0x3c9f88['id']],_0x3e487c=_0x4ca639['facet'](_0x3c9f88);if(_0x4b4feb&&!_0xea20ef&&sameArray$1(_0x346d45,_0x4b4feb))return _0x455908['values'][_0x3e3227]=_0x3e487c,0x0;let _0x34f034=_0x1daf8c(_0x455908);return _0x3c9f88['compare'](_0x34f034,_0x3e487c)?(_0x455908['values'][_0x3e3227]=_0x3e487c,0x0):(_0x455908['values'][_0x3e3227]=_0x34f034,0x1);}};}const initField=Facet['define']({'static':!0x0});class StateField{constructor(_0x321847,_0x2dff8c,_0x35edb7,_0x358236,_0x21c3c0){this['id']=_0x321847,this['createF']=_0x2dff8c,this['updateF']=_0x35edb7,this['compareF']=_0x358236,this['spec']=_0x21c3c0,this['provides']=void 0x0;}static['define'](_0x565051){let _0x5ee3f5=new StateField(nextID++,_0x565051['create'],_0x565051['update'],_0x565051['compare']||((_0x49b340,_0x2c5bfd)=>_0x49b340===_0x2c5bfd),_0x565051);return _0x565051['provide']&&(_0x5ee3f5['provides']=_0x565051['provide'](_0x5ee3f5)),_0x5ee3f5;}['create'](_0x530f2d){let _0x4c1669=_0x530f2d['facet'](initField)['find'](_0x386610=>_0x386610['field']==this);return((null==_0x4c1669?void 0x0:_0x4c1669['create'])||this['createF'])(_0x530f2d);}['slot'](_0x122080){let _0x31d473=_0x122080[this['id']]>>0x1;return{'create':_0x5b7592=>(_0x5b7592['values'][_0x31d473]=this['create'](_0x5b7592),0x1),'update':(_0x4a95f2,_0x3ca752)=>{let _0x17d1a1=_0x4a95f2['values'][_0x31d473],_0x455faa=this['updateF'](_0x17d1a1,_0x3ca752);return this['compareF'](_0x17d1a1,_0x455faa)?0x0:(_0x4a95f2['values'][_0x31d473]=_0x455faa,0x1);},'reconfigure':(_0xc228cb,_0xa3834a)=>{let _0x675707,_0x475451=_0xc228cb['facet'](initField),_0x2d7f0a=_0xa3834a['facet'](initField);return(_0x675707=_0x475451['find'](_0x478d0b=>_0x478d0b['field']==this))&&_0x675707!=_0x2d7f0a['find'](_0x582bcd=>_0x582bcd['field']==this)?(_0xc228cb['values'][_0x31d473]=_0x675707['create'](_0xc228cb),0x1):null!=_0xa3834a['config']['address'][this['id']]?(_0xc228cb['values'][_0x31d473]=_0xa3834a['field'](this),0x0):(_0xc228cb['values'][_0x31d473]=this['create'](_0xc228cb),0x1);}};}['init'](_0x180056){return[this,initField['of']({'field':this,'create':_0x180056})];}get['extension'](){return this;}}const Prec_={'lowest':0x4,'low':0x3,'default':0x2,'high':0x1,'highest':0x0};function prec(_0x469038){return _0x3be3cb=>new PrecExtension(_0x3be3cb,_0x469038);}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(_0x7ca941,_0x9c0721){this['inner']=_0x7ca941,this['prec']=_0x9c0721;}}class Compartment{['of'](_0x2689c1){return new CompartmentInstance(this,_0x2689c1);}['reconfigure'](_0x2a669e){return Compartment['reconfigure']['of']({'compartment':this,'extension':_0x2a669e});}['get'](_0x399c4e){return _0x399c4e['config']['compartments']['get'](this);}}class CompartmentInstance{constructor(_0x1f8892,_0x380e6b){this['compartment']=_0x1f8892,this['inner']=_0x380e6b;}}class Configuration{constructor(_0xd27a3c,_0x39d7de,_0x476eb1,_0x5b50cd,_0x1897a4,_0x44baca){for(this['base']=_0xd27a3c,this['compartments']=_0x39d7de,this['dynamicSlots']=_0x476eb1,this['address']=_0x5b50cd,this['staticValues']=_0x1897a4,this['facets']=_0x44baca,this['statusTemplate']=[];this['statusTemplate']['length']<_0x476eb1['length'];)this['statusTemplate']['push'](0x0);}['staticFacet'](_0x557fdd){let _0x2eaad1=this['address'][_0x557fdd['id']];return null==_0x2eaad1?_0x557fdd['default']:this['staticValues'][_0x2eaad1>>0x1];}static['resolve'](_0x20d81b,_0x9cacdb,_0x4bcba9){let _0x4978a3=[],_0x67a9a5=Object['create'](null),_0xeaae4d=new Map();for(let _0x427672 of flatten(_0x20d81b,_0x9cacdb,_0xeaae4d))_0x427672 instanceof StateField?_0x4978a3['push'](_0x427672):(_0x67a9a5[_0x427672['facet']['id']]||(_0x67a9a5[_0x427672['facet']['id']]=[]))['push'](_0x427672);let _0x3c5437=Object['create'](null),_0x686f29=[],_0x84e78e=[];for(let _0x55011a of _0x4978a3)_0x3c5437[_0x55011a['id']]=_0x84e78e['length']<<0x1,_0x84e78e['push'](_0x2066a9=>_0x55011a['slot'](_0x2066a9));let _0x29b2fb=null==_0x4bcba9?void 0x0:_0x4bcba9['config']['facets'];for(let _0x523df3 in _0x67a9a5){let _0x3d67c7=_0x67a9a5[_0x523df3],_0x29ac47=_0x3d67c7[0x0]['facet'],_0x49d8a1=_0x29b2fb&&_0x29b2fb[_0x523df3]||[];if(_0x3d67c7['every'](_0x253fbf=>0x0==_0x253fbf['type'])){if(_0x3c5437[_0x29ac47['id']]=_0x686f29['length']<<0x1|0x1,sameArray$1(_0x49d8a1,_0x3d67c7))_0x686f29['push'](_0x4bcba9['facet'](_0x29ac47));else{let _0x5e2364=_0x29ac47['combine'](_0x3d67c7['map'](_0x290ab3=>_0x290ab3['value']));_0x686f29['push'](_0x4bcba9&&_0x29ac47['compare'](_0x5e2364,_0x4bcba9['facet'](_0x29ac47))?_0x4bcba9['facet'](_0x29ac47):_0x5e2364);}}else{for(let _0x271503 of _0x3d67c7)0x0==_0x271503['type']?(_0x3c5437[_0x271503['id']]=_0x686f29['length']<<0x1|0x1,_0x686f29['push'](_0x271503['value'])):(_0x3c5437[_0x271503['id']]=_0x84e78e['length']<<0x1,_0x84e78e['push'](_0x5cb391=>_0x271503['dynamicSlot'](_0x5cb391)));_0x3c5437[_0x29ac47['id']]=_0x84e78e['length']<<0x1,_0x84e78e['push'](_0x403dd3=>dynamicFacetSlot(_0x403dd3,_0x29ac47,_0x3d67c7));}}let _0x31b12a=_0x84e78e['map'](_0x4ba94a=>_0x4ba94a(_0x3c5437));return new Configuration(_0x20d81b,_0xeaae4d,_0x31b12a,_0x3c5437,_0x686f29,_0x67a9a5);}}function flatten(_0x4d5aec,_0x2a8c5c,_0x55202e){let _0x3609c1=[[],[],[],[],[]],_0x26e900=new Map();return function _0x10b110(_0x5d5779,_0x10f9b4){let _0x189024=_0x26e900['get'](_0x5d5779);if(null!=_0x189024){if(_0x189024<=_0x10f9b4)return;let _0x5cc6f3=_0x3609c1[_0x189024]['indexOf'](_0x5d5779);_0x5cc6f3>-0x1&&_0x3609c1[_0x189024]['splice'](_0x5cc6f3,0x1),_0x5d5779 instanceof CompartmentInstance&&_0x55202e['delete'](_0x5d5779['compartment']);}if(_0x26e900['set'](_0x5d5779,_0x10f9b4),Array['isArray'](_0x5d5779)){for(let _0x3fab97 of _0x5d5779)_0x10b110(_0x3fab97,_0x10f9b4);}else{if(_0x5d5779 instanceof CompartmentInstance){if(_0x55202e['has'](_0x5d5779['compartment']))throw new RangeError('Duplicate\x20use\x20of\x20compartment\x20in\x20extensions');let _0x538a2a=_0x2a8c5c['get'](_0x5d5779['compartment'])||_0x5d5779['inner'];_0x55202e['set'](_0x5d5779['compartment'],_0x538a2a),_0x10b110(_0x538a2a,_0x10f9b4);}else{if(_0x5d5779 instanceof PrecExtension)_0x10b110(_0x5d5779['inner'],_0x5d5779['prec']);else{if(_0x5d5779 instanceof StateField)_0x3609c1[_0x10f9b4]['push'](_0x5d5779),_0x5d5779['provides']&&_0x10b110(_0x5d5779['provides'],_0x10f9b4);else{if(_0x5d5779 instanceof FacetProvider)_0x3609c1[_0x10f9b4]['push'](_0x5d5779),_0x5d5779['facet']['extensions']&&_0x10b110(_0x5d5779['facet']['extensions'],Prec_['default']);else{let _0xf391a8=_0x5d5779['extension'];if(!_0xf391a8)throw new Error('Unrecognized\x20extension\x20value\x20in\x20extension\x20set\x20('+_0x5d5779+').\x20This\x20sometimes\x20happens\x20because\x20multiple\x20instances\x20of\x20@codemirror/state\x20are\x20loaded,\x20breaking\x20instanceof\x20checks.');_0x10b110(_0xf391a8,_0x10f9b4);}}}}}}(_0x4d5aec,Prec_['default']),_0x3609c1['reduce']((_0x309313,_0x4311d4)=>_0x309313['concat'](_0x4311d4));}function ensureAddr(_0x95289,_0x287315){if(0x1&_0x287315)return 0x2;let _0x480f29=_0x287315>>0x1,_0x4f62d1=_0x95289['status'][_0x480f29];if(0x4==_0x4f62d1)throw new Error('Cyclic\x20dependency\x20between\x20fields\x20and/or\x20facets');if(0x2&_0x4f62d1)return _0x4f62d1;_0x95289['status'][_0x480f29]=0x4;let _0x357e0b=_0x95289['computeSlot'](_0x95289,_0x95289['config']['dynamicSlots'][_0x480f29]);return _0x95289['status'][_0x480f29]=0x2|_0x357e0b;}function getAddr(_0xeab823,_0x598cbe){return 0x1&_0x598cbe?_0xeab823['config']['staticValues'][_0x598cbe>>0x1]:_0xeab823['values'][_0x598cbe>>0x1];}const languageData=Facet['define'](),allowMultipleSelections=Facet['define']({'combine':_0x203828=>_0x203828['some'](_0xead21e=>_0xead21e),'static':!0x0}),lineSeparator=Facet['define']({'combine':_0x42da8d=>_0x42da8d['length']?_0x42da8d[0x0]:void 0x0,'static':!0x0}),changeFilter=Facet['define'](),transactionFilter=Facet['define'](),transactionExtender=Facet['define'](),readOnly=Facet['define']({'combine':_0x57dce2=>!!_0x57dce2['length']&&_0x57dce2[0x0]});class Annotation{constructor(_0x4920f3,_0x398663){this['type']=_0x4920f3,this['value']=_0x398663;}static['define'](){return new AnnotationType();}}class AnnotationType{['of'](_0xb20198){return new Annotation(this,_0xb20198);}}class StateEffectType{constructor(_0x500268){this['map']=_0x500268;}['of'](_0x566df5){return new StateEffect(this,_0x566df5);}}class StateEffect{constructor(_0x4f4f0f,_0xd4be54){this['type']=_0x4f4f0f,this['value']=_0xd4be54;}['map'](_0x545b3c){let _0x29d0da=this['type']['map'](this['value'],_0x545b3c);return void 0x0===_0x29d0da?void 0x0:_0x29d0da==this['value']?this:new StateEffect(this['type'],_0x29d0da);}['is'](_0x61b103){return this['type']==_0x61b103;}static['define'](_0x7641ad={}){return new StateEffectType(_0x7641ad['map']||(_0x44e18a=>_0x44e18a));}static['mapEffects'](_0x9c9eb0,_0x4faea5){if(!_0x9c9eb0['length'])return _0x9c9eb0;let _0x4c5718=[];for(let _0x519589 of _0x9c9eb0){let _0x39bb7a=_0x519589['map'](_0x4faea5);_0x39bb7a&&_0x4c5718['push'](_0x39bb7a);}return _0x4c5718;}}StateEffect['reconfigure']=StateEffect['define'](),StateEffect['appendConfig']=StateEffect['define']();class Transaction{constructor(_0x39944e,_0x6a5a4f,_0x486565,_0x42d259,_0x58d28e,_0x3f0970){this['startState']=_0x39944e,this['changes']=_0x6a5a4f,this['selection']=_0x486565,this['effects']=_0x42d259,this['annotations']=_0x58d28e,this['scrollIntoView']=_0x3f0970,this['_doc']=null,this['_state']=null,_0x486565&&checkSelection(_0x486565,_0x6a5a4f['newLength']),_0x58d28e['some'](_0x2e4ae1=>_0x2e4ae1['type']==Transaction['time'])||(this['annotations']=_0x58d28e['concat'](Transaction['time']['of'](Date['now']())));}static['create'](_0x4a4cac,_0xbe8587,_0x463c62,_0x3171ed,_0x5891d7,_0x3506ba){return new Transaction(_0x4a4cac,_0xbe8587,_0x463c62,_0x3171ed,_0x5891d7,_0x3506ba);}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'](_0x138a8e){for(let _0x378e00 of this['annotations'])if(_0x378e00['type']==_0x138a8e)return _0x378e00['value'];}get['docChanged'](){return!this['changes']['empty'];}get['reconfigured'](){return this['startState']['config']!=this['state']['config'];}['isUserEvent'](_0x11c2be){let _0x50bb57=this['annotation'](Transaction['userEvent']);return!(!_0x50bb57||!(_0x50bb57==_0x11c2be||_0x50bb57['length']>_0x11c2be['length']&&_0x50bb57['slice'](0x0,_0x11c2be['length'])==_0x11c2be&&'.'==_0x50bb57[_0x11c2be['length']]));}}function joinRanges(_0x1e4222,_0x130176){let _0x56be7a=[];for(let _0x534b20=0x0,_0x53a7f5=0x0;;){let _0x42969b,_0x5d0118;if(_0x534b20<_0x1e4222['length']&&(_0x53a7f5==_0x130176['length']||_0x130176[_0x53a7f5]>=_0x1e4222[_0x534b20]))_0x42969b=_0x1e4222[_0x534b20++],_0x5d0118=_0x1e4222[_0x534b20++];else{if(!(_0x53a7f5<_0x130176['length']))return _0x56be7a;_0x42969b=_0x130176[_0x53a7f5++],_0x5d0118=_0x130176[_0x53a7f5++];}!_0x56be7a['length']||_0x56be7a[_0x56be7a['length']-0x1]<_0x42969b?_0x56be7a['push'](_0x42969b,_0x5d0118):_0x56be7a[_0x56be7a['length']-0x1]<_0x5d0118&&(_0x56be7a[_0x56be7a['length']-0x1]=_0x5d0118);}}function mergeTransaction(_0x5e6b17,_0x58e436,_0x316e34){var _0x274453;let _0x114746,_0x3c400e,_0x16f125;return _0x316e34?(_0x114746=_0x58e436['changes'],_0x3c400e=ChangeSet['empty'](_0x58e436['changes']['length']),_0x16f125=_0x5e6b17['changes']['compose'](_0x58e436['changes'])):(_0x114746=_0x58e436['changes']['map'](_0x5e6b17['changes']),_0x3c400e=_0x5e6b17['changes']['mapDesc'](_0x58e436['changes'],!0x0),_0x16f125=_0x5e6b17['changes']['compose'](_0x114746)),{'changes':_0x16f125,'selection':_0x58e436['selection']?_0x58e436['selection']['map'](_0x3c400e):null===(_0x274453=_0x5e6b17['selection'])||void 0x0===_0x274453?void 0x0:_0x274453['map'](_0x114746),'effects':StateEffect['mapEffects'](_0x5e6b17['effects'],_0x114746)['concat'](StateEffect['mapEffects'](_0x58e436['effects'],_0x3c400e)),'annotations':_0x5e6b17['annotations']['length']?_0x5e6b17['annotations']['concat'](_0x58e436['annotations']):_0x58e436['annotations'],'scrollIntoView':_0x5e6b17['scrollIntoView']||_0x58e436['scrollIntoView']};}function resolveTransactionInner(_0x285d16,_0x27b621,_0x54115d){let _0x1bea03=_0x27b621['selection'],_0x42ddcd=asArray$2(_0x27b621['annotations']);return _0x27b621['userEvent']&&(_0x42ddcd=_0x42ddcd['concat'](Transaction['userEvent']['of'](_0x27b621['userEvent']))),{'changes':_0x27b621['changes']instanceof ChangeSet?_0x27b621['changes']:ChangeSet['of'](_0x27b621['changes']||[],_0x54115d,_0x285d16['facet'](lineSeparator)),'selection':_0x1bea03&&(_0x1bea03 instanceof EditorSelection?_0x1bea03:EditorSelection['single'](_0x1bea03['anchor'],_0x1bea03['head'])),'effects':asArray$2(_0x27b621['effects']),'annotations':_0x42ddcd,'scrollIntoView':!!_0x27b621['scrollIntoView']};}function resolveTransaction(_0x413fb4,_0x5f598c,_0x3d7338){let _0x3caa9a=resolveTransactionInner(_0x413fb4,_0x5f598c['length']?_0x5f598c[0x0]:{},_0x413fb4['doc']['length']);_0x5f598c['length']&&!0x1===_0x5f598c[0x0]['filter']&&(_0x3d7338=!0x1);for(let _0x4aae1f=0x1;_0x4aae1f<_0x5f598c['length'];_0x4aae1f++){!0x1===_0x5f598c[_0x4aae1f]['filter']&&(_0x3d7338=!0x1);let _0x3f35db=!!_0x5f598c[_0x4aae1f]['sequential'];_0x3caa9a=mergeTransaction(_0x3caa9a,resolveTransactionInner(_0x413fb4,_0x5f598c[_0x4aae1f],_0x3f35db?_0x3caa9a['changes']['newLength']:_0x413fb4['doc']['length']),_0x3f35db);}let _0x283156=Transaction['create'](_0x413fb4,_0x3caa9a['changes'],_0x3caa9a['selection'],_0x3caa9a['effects'],_0x3caa9a['annotations'],_0x3caa9a['scrollIntoView']);return extendTransaction(_0x3d7338?filterTransaction(_0x283156):_0x283156);}function filterTransaction(_0xedb78){let _0x224a3c=_0xedb78['startState'],_0x3d1d87=!0x0;for(let _0x59ac37 of _0x224a3c['facet'](changeFilter)){let _0x327373=_0x59ac37(_0xedb78);if(!0x1===_0x327373){_0x3d1d87=!0x1;break;}Array['isArray'](_0x327373)&&(_0x3d1d87=!0x0===_0x3d1d87?_0x327373:joinRanges(_0x3d1d87,_0x327373));}if(!0x0!==_0x3d1d87){let _0x2ddeb2,_0x3b2f62;if(!0x1===_0x3d1d87)_0x3b2f62=_0xedb78['changes']['invertedDesc'],_0x2ddeb2=ChangeSet['empty'](_0x224a3c['doc']['length']);else{let _0x331a31=_0xedb78['changes']['filter'](_0x3d1d87);_0x2ddeb2=_0x331a31['changes'],_0x3b2f62=_0x331a31['filtered']['mapDesc'](_0x331a31['changes'])['invertedDesc'];}_0xedb78=Transaction['create'](_0x224a3c,_0x2ddeb2,_0xedb78['selection']&&_0xedb78['selection']['map'](_0x3b2f62),StateEffect['mapEffects'](_0xedb78['effects'],_0x3b2f62),_0xedb78['annotations'],_0xedb78['scrollIntoView']);}let _0x5ed7ac=_0x224a3c['facet'](transactionFilter);for(let _0x111eb2=_0x5ed7ac['length']-0x1;_0x111eb2>=0x0;_0x111eb2--){let _0xbab82e=_0x5ed7ac[_0x111eb2](_0xedb78);_0xedb78=_0xbab82e instanceof Transaction?_0xbab82e:Array['isArray'](_0xbab82e)&&0x1==_0xbab82e['length']&&_0xbab82e[0x0]instanceof Transaction?_0xbab82e[0x0]:resolveTransaction(_0x224a3c,asArray$2(_0xbab82e),!0x1);}return _0xedb78;}function extendTransaction(_0x482aac){let _0x58a9d0=_0x482aac['startState'],_0x2597da=_0x58a9d0['facet'](transactionExtender),_0xd1bc3d=_0x482aac;for(let _0x6158bd=_0x2597da['length']-0x1;_0x6158bd>=0x0;_0x6158bd--){let _0x58fb5f=_0x2597da[_0x6158bd](_0x482aac);_0x58fb5f&&Object['keys'](_0x58fb5f)['length']&&(_0xd1bc3d=mergeTransaction(_0xd1bc3d,resolveTransactionInner(_0x58a9d0,_0x58fb5f,_0x482aac['changes']['newLength']),!0x0));}return _0xd1bc3d==_0x482aac?_0x482aac:Transaction['create'](_0x58a9d0,_0x482aac['changes'],_0x482aac['selection'],_0xd1bc3d['effects'],_0xd1bc3d['annotations'],_0xd1bc3d['scrollIntoView']);}Transaction['time']=Annotation['define'](),Transaction['userEvent']=Annotation['define'](),Transaction['addToHistory']=Annotation['define'](),Transaction['remote']=Annotation['define']();const none$3=[];function asArray$2(_0xafc92c){return null==_0xafc92c?none$3:Array['isArray'](_0xafc92c)?_0xafc92c:[_0xafc92c];}var CharCategory=function(_0x558844){return _0x558844[_0x558844['Word']=0x0]='Word',_0x558844[_0x558844['Space']=0x1]='Space',_0x558844[_0x558844['Other']=0x2]='Other',_0x558844;}(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(_0x2f3582){}function hasWordChar(_0x1bdde7){if(wordChar)return wordChar['test'](_0x1bdde7);for(let _0x414f74=0x0;_0x414f74<_0x1bdde7['length'];_0x414f74++){let _0x4884d4=_0x1bdde7[_0x414f74];if(/\w/['test'](_0x4884d4)||_0x4884d4>'\u0080'&&(_0x4884d4['toUpperCase']()!=_0x4884d4['toLowerCase']()||nonASCIISingleCaseWordChar['test'](_0x4884d4)))return!0x0;}return!0x1;}function makeCategorizer(_0x3f3c5f){return _0x1740c9=>{if(!/\S/['test'](_0x1740c9))return CharCategory['Space'];if(hasWordChar(_0x1740c9))return CharCategory['Word'];for(let _0x5da514=0x0;_0x5da514<_0x3f3c5f['length'];_0x5da514++)if(_0x1740c9['indexOf'](_0x3f3c5f[_0x5da514])>-0x1)return CharCategory['Word'];return CharCategory['Other'];};}class EditorState{constructor(_0x42834a,_0x323a6f,_0x287483,_0x39a740,_0x34d659,_0x5af592){this['config']=_0x42834a,this['doc']=_0x323a6f,this['selection']=_0x287483,this['values']=_0x39a740,this['status']=_0x42834a['statusTemplate']['slice'](),this['computeSlot']=_0x34d659,_0x5af592&&(_0x5af592['_state']=this);for(let _0x13f665=0x0;_0x13f665<this['config']['dynamicSlots']['length'];_0x13f665++)ensureAddr(this,_0x13f665<<0x1);this['computeSlot']=null;}['field'](_0xc2254,_0x5e48a2=!0x0){let _0x5c39e7=this['config']['address'][_0xc2254['id']];if(null!=_0x5c39e7)return ensureAddr(this,_0x5c39e7),getAddr(this,_0x5c39e7);if(_0x5e48a2)throw new RangeError('Field\x20is\x20not\x20present\x20in\x20this\x20state');}['update'](..._0x4c5c5f){return resolveTransaction(this,_0x4c5c5f,!0x0);}['applyTransaction'](_0x3e67d9){let _0xf60340,_0x3aa36c=this['config'],{base:_0x27bb28,compartments:_0x749aa4}=_0x3aa36c;for(let _0x588982 of _0x3e67d9['effects'])_0x588982['is'](Compartment['reconfigure'])?(_0x3aa36c&&(_0x749aa4=new Map(),_0x3aa36c['compartments']['forEach']((_0x5a81fd,_0x555f7b)=>_0x749aa4['set'](_0x555f7b,_0x5a81fd)),_0x3aa36c=null),_0x749aa4['set'](_0x588982['value']['compartment'],_0x588982['value']['extension'])):_0x588982['is'](StateEffect['reconfigure'])?(_0x3aa36c=null,_0x27bb28=_0x588982['value']):_0x588982['is'](StateEffect['appendConfig'])&&(_0x3aa36c=null,_0x27bb28=asArray$2(_0x27bb28)['concat'](_0x588982['value']));if(_0x3aa36c)_0xf60340=_0x3e67d9['startState']['values']['slice']();else _0x3aa36c=Configuration['resolve'](_0x27bb28,_0x749aa4,this),_0xf60340=new EditorState(_0x3aa36c,this['doc'],this['selection'],_0x3aa36c['dynamicSlots']['map'](()=>null),(_0x319d70,_0x41f0f3)=>_0x41f0f3['reconfigure'](_0x319d70,this),null)['values'];let _0x31c26b=_0x3e67d9['startState']['facet'](allowMultipleSelections)?_0x3e67d9['newSelection']:_0x3e67d9['newSelection']['asSingle']();new EditorState(_0x3aa36c,_0x3e67d9['newDoc'],_0x31c26b,_0xf60340,(_0x361c85,_0x1fd005)=>_0x1fd005['update'](_0x361c85,_0x3e67d9),_0x3e67d9);}['replaceSelection'](_0x8452f9){return'string'==typeof _0x8452f9&&(_0x8452f9=this['toText'](_0x8452f9)),this['changeByRange'](_0x52e48a=>({'changes':{'from':_0x52e48a['from'],'to':_0x52e48a['to'],'insert':_0x8452f9},'range':EditorSelection['cursor'](_0x52e48a['from']+_0x8452f9['length'])}));}['changeByRange'](_0x28feec){let _0x5d45a7=this['selection'],_0x1c1ca5=_0x28feec(_0x5d45a7['ranges'][0x0]),_0x2fa88b=this['changes'](_0x1c1ca5['changes']),_0x4a794d=[_0x1c1ca5['range']],_0x56969c=asArray$2(_0x1c1ca5['effects']);for(let _0x4c32a3=0x1;_0x4c32a3<_0x5d45a7['ranges']['length'];_0x4c32a3++){let _0x25cc42=_0x28feec(_0x5d45a7['ranges'][_0x4c32a3]),_0xb5fcbf=this['changes'](_0x25cc42['changes']),_0x43173c=_0xb5fcbf['map'](_0x2fa88b);for(let _0xde28c1=0x0;_0xde28c1<_0x4c32a3;_0xde28c1++)_0x4a794d[_0xde28c1]=_0x4a794d[_0xde28c1]['map'](_0x43173c);let _0x577c90=_0x2fa88b['mapDesc'](_0xb5fcbf,!0x0);_0x4a794d['push'](_0x25cc42['range']['map'](_0x577c90)),_0x2fa88b=_0x2fa88b['compose'](_0x43173c),_0x56969c=StateEffect['mapEffects'](_0x56969c,_0x43173c)['concat'](StateEffect['mapEffects'](asArray$2(_0x25cc42['effects']),_0x577c90));}return{'changes':_0x2fa88b,'selection':EditorSelection['create'](_0x4a794d,_0x5d45a7['mainIndex']),'effects':_0x56969c};}['changes'](_0x348705=[]){return _0x348705 instanceof ChangeSet?_0x348705:ChangeSet['of'](_0x348705,this['doc']['length'],this['facet'](EditorState['lineSeparator']));}['toText'](_0x3d5c4b){return Text['of'](_0x3d5c4b['split'](this['facet'](EditorState['lineSeparator'])||DefaultSplit));}['sliceDoc'](_0x2af5bb=0x0,_0x471815=this['doc']['length']){return this['doc']['sliceString'](_0x2af5bb,_0x471815,this['lineBreak']);}['facet'](_0x45ca0b){let _0x47c581=this['config']['address'][_0x45ca0b['id']];return null==_0x47c581?_0x45ca0b['default']:(ensureAddr(this,_0x47c581),getAddr(this,_0x47c581));}['toJSON'](_0x4ff302){let _0x5ec9ed={'doc':this['sliceDoc'](),'selection':this['selection']['toJSON']()};if(_0x4ff302)for(let _0x15972e in _0x4ff302){let _0x37609d=_0x4ff302[_0x15972e];_0x37609d instanceof StateField&&null!=this['config']['address'][_0x37609d['id']]&&(_0x5ec9ed[_0x15972e]=_0x37609d['spec']['toJSON'](this['field'](_0x4ff302[_0x15972e]),this));}return _0x5ec9ed;}static['fromJSON'](_0x115e0a,_0x1ee58a={},_0xf686c8){if(!_0x115e0a||'string'!=typeof _0x115e0a['doc'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorState');let _0x4d18ad=[];if(_0xf686c8){for(let _0x37764b in _0xf686c8)if(Object['prototype']['hasOwnProperty']['call'](_0x115e0a,_0x37764b)){let _0xb8402c=_0xf686c8[_0x37764b],_0x5f0b1c=_0x115e0a[_0x37764b];_0x4d18ad['push'](_0xb8402c['init'](_0x41f423=>_0xb8402c['spec']['fromJSON'](_0x5f0b1c,_0x41f423)));}}return EditorState['create']({'doc':_0x115e0a['doc'],'selection':EditorSelection['fromJSON'](_0x115e0a['selection']),'extensions':_0x1ee58a['extensions']?_0x4d18ad['concat']([_0x1ee58a['extensions']]):_0x4d18ad});}static['create'](_0x2060e2={}){let _0x17cec6=Configuration['resolve'](_0x2060e2['extensions']||[],new Map()),_0x22586e=_0x2060e2['doc']instanceof Text?_0x2060e2['doc']:Text['of']((_0x2060e2['doc']||'')['split'](_0x17cec6['staticFacet'](EditorState['lineSeparator'])||DefaultSplit)),_0x311b44=_0x2060e2['selection']?_0x2060e2['selection']instanceof EditorSelection?_0x2060e2['selection']:EditorSelection['single'](_0x2060e2['selection']['anchor'],_0x2060e2['selection']['head']):EditorSelection['single'](0x0);return checkSelection(_0x311b44,_0x22586e['length']),_0x17cec6['staticFacet'](allowMultipleSelections)||(_0x311b44=_0x311b44['asSingle']()),new EditorState(_0x17cec6,_0x22586e,_0x311b44,_0x17cec6['dynamicSlots']['map'](()=>null),(_0xf6af3c,_0x43900c)=>_0x43900c['create'](_0xf6af3c),null);}get['tabSize'](){return this['facet'](EditorState['tabSize']);}get['lineBreak'](){return this['facet'](EditorState['lineSeparator'])||'\x0a';}get['readOnly'](){return this['facet'](readOnly);}['phrase'](_0x37a6e9,..._0x4df77d){for(let _0x1d07ce of this['facet'](EditorState['phrases']))if(Object['prototype']['hasOwnProperty']['call'](_0x1d07ce,_0x37a6e9)){_0x37a6e9=_0x1d07ce[_0x37a6e9];break;}return _0x4df77d['length']&&(_0x37a6e9=_0x37a6e9['replace'](/\$(\$|\d*)/g,(_0x502187,_0x211b80)=>{if('$'==_0x211b80)return'$';let _0x593a0d=+(_0x211b80||0x1);return!_0x593a0d||_0x593a0d>_0x4df77d['length']?_0x502187:_0x4df77d[_0x593a0d-0x1];})),_0x37a6e9;}['languageDataAt'](_0x355ef0,_0x1e9b5f,_0x3d0f77=-0x1){let _0xaf2a97=[];for(let _0x41a70d of this['facet'](languageData))for(let _0x2a85c1 of _0x41a70d(this,_0x1e9b5f,_0x3d0f77))Object['prototype']['hasOwnProperty']['call'](_0x2a85c1,_0x355ef0)&&_0xaf2a97['push'](_0x2a85c1[_0x355ef0]);return _0xaf2a97;}['charCategorizer'](_0x4ea005){return makeCategorizer(this['languageDataAt']('wordChars',_0x4ea005)['join'](''));}['wordAt'](_0x32c75f){let {text:_0xf2976f,from:_0x5585b7,length:_0x447efe}=this['doc']['lineAt'](_0x32c75f),_0x2cf1f3=this['charCategorizer'](_0x32c75f),_0x3bd311=_0x32c75f-_0x5585b7,_0x86d8ca=_0x32c75f-_0x5585b7;for(;_0x3bd311>0x0;){let _0x5e1c8a=findClusterBreak(_0xf2976f,_0x3bd311,!0x1);if(_0x2cf1f3(_0xf2976f['slice'](_0x5e1c8a,_0x3bd311))!=CharCategory['Word'])break;_0x3bd311=_0x5e1c8a;}for(;_0x86d8ca<_0x447efe;){let _0x19bb54=findClusterBreak(_0xf2976f,_0x86d8ca);if(_0x2cf1f3(_0xf2976f['slice'](_0x86d8ca,_0x19bb54))!=CharCategory['Word'])break;_0x86d8ca=_0x19bb54;}return _0x3bd311==_0x86d8ca?null:EditorSelection['range'](_0x3bd311+_0x5585b7,_0x86d8ca+_0x5585b7);}}function combineConfig(_0x5307fd,_0x313700,_0x103f21={}){let _0x8c204d={};for(let _0x48c40c of _0x5307fd)for(let _0xa683d8 of Object['keys'](_0x48c40c)){let _0x28747d=_0x48c40c[_0xa683d8],_0x3dfaa9=_0x8c204d[_0xa683d8];if(void 0x0===_0x3dfaa9)_0x8c204d[_0xa683d8]=_0x28747d;else{if(_0x3dfaa9===_0x28747d||void 0x0===_0x28747d);else{if(!Object['hasOwnProperty']['call'](_0x103f21,_0xa683d8))throw new Error('Config\x20merge\x20conflict\x20for\x20field\x20'+_0xa683d8);_0x8c204d[_0xa683d8]=_0x103f21[_0xa683d8](_0x3dfaa9,_0x28747d);}}}for(let _0x454399 in _0x313700)void 0x0===_0x8c204d[_0x454399]&&(_0x8c204d[_0x454399]=_0x313700[_0x454399]);return _0x8c204d;}EditorState['allowMultipleSelections']=allowMultipleSelections,EditorState['tabSize']=Facet['define']({'combine':_0x39a47c=>_0x39a47c['length']?_0x39a47c[0x0]:0x4}),EditorState['lineSeparator']=lineSeparator,EditorState['readOnly']=readOnly,EditorState['phrases']=Facet['define']({'compare'(_0x2704e7,_0x51156d){let _0x4a068b=Object['keys'](_0x2704e7),_0x26c768=Object['keys'](_0x51156d);return _0x4a068b['length']==_0x26c768['length']&&_0x4a068b['every'](_0x32910b=>_0x2704e7[_0x32910b]==_0x51156d[_0x32910b]);}}),EditorState['languageData']=languageData,EditorState['changeFilter']=changeFilter,EditorState['transactionFilter']=transactionFilter,EditorState['transactionExtender']=transactionExtender,Compartment['reconfigure']=StateEffect['define']();class RangeValue{['eq'](_0x380405){return this==_0x380405;}['range'](_0x4af9af,_0xd236a6=_0x4af9af){return Range$1['create'](_0x4af9af,_0xd236a6,this);}}RangeValue['prototype']['startSide']=RangeValue['prototype']['endSide']=0x0,RangeValue['prototype']['point']=!0x1,RangeValue['prototype']['mapMode']=MapMode['TrackDel'];let Range$1=class e{constructor(_0x2dca96,_0x25462b,_0x4152cb){this['from']=_0x2dca96,this['to']=_0x25462b,this['value']=_0x4152cb;}static['create'](_0x20871c,_0x4ecf49,_0x137d8c){return new e(_0x20871c,_0x4ecf49,_0x137d8c);}};function cmpRange(_0x244920,_0x71ebe9){return _0x244920['from']-_0x71ebe9['from']||_0x244920['value']['startSide']-_0x71ebe9['value']['startSide'];}class Chunk{constructor(_0x58a2d7,_0x3c7aa0,_0x23c85a,_0x2a7d0e){this['from']=_0x58a2d7,this['to']=_0x3c7aa0,this['value']=_0x23c85a,this['maxPoint']=_0x2a7d0e;}get['length'](){return this['to'][this['to']['length']-0x1];}['findIndex'](_0x4d93c0,_0x13bf65,_0x2f9c5f,_0x7dc129=0x0){let _0x5337f0=_0x2f9c5f?this['to']:this['from'];for(let _0x1c027c=_0x7dc129,_0x3f30eb=_0x5337f0['length'];;){if(_0x1c027c==_0x3f30eb)return _0x1c027c;let _0x3fab13=_0x1c027c+_0x3f30eb>>0x1,_0x6be478=_0x5337f0[_0x3fab13]-_0x4d93c0||(_0x2f9c5f?this['value'][_0x3fab13]['endSide']:this['value'][_0x3fab13]['startSide'])-_0x13bf65;if(_0x3fab13==_0x1c027c)return _0x6be478>=0x0?_0x1c027c:_0x3f30eb;_0x6be478>=0x0?_0x3f30eb=_0x3fab13:_0x1c027c=_0x3fab13+0x1;}}['between'](_0x581fe7,_0x3fc298,_0x63ab96,_0x31afc7){for(let _0x298011=this['findIndex'](_0x3fc298,-0x3b9aca00,!0x0),_0x3587cf=this['findIndex'](_0x63ab96,0x3b9aca00,!0x1,_0x298011);_0x298011<_0x3587cf;_0x298011++)if(!0x1===_0x31afc7(this['from'][_0x298011]+_0x581fe7,this['to'][_0x298011]+_0x581fe7,this['value'][_0x298011]))return!0x1;}['map'](_0x5648d3,_0x541167){let _0x24049b=[],_0x172b51=[],_0x1dc1f9=[],_0x4a968c=-0x1,_0x1ba671=-0x1;for(let _0x5d14b4=0x0;_0x5d14b4<this['value']['length'];_0x5d14b4++){let _0x117dda,_0x4cdaf5,_0x37d1e5=this['value'][_0x5d14b4],_0x30d0a8=this['from'][_0x5d14b4]+_0x5648d3,_0x166a1a=this['to'][_0x5d14b4]+_0x5648d3;if(_0x30d0a8==_0x166a1a){let _0x544ef0=_0x541167['mapPos'](_0x30d0a8,_0x37d1e5['startSide'],_0x37d1e5['mapMode']);if(null==_0x544ef0)continue;if(_0x117dda=_0x4cdaf5=_0x544ef0,_0x37d1e5['startSide']!=_0x37d1e5['endSide']&&(_0x4cdaf5=_0x541167['mapPos'](_0x30d0a8,_0x37d1e5['endSide']),_0x4cdaf5<_0x117dda))continue;}else{if(_0x117dda=_0x541167['mapPos'](_0x30d0a8,_0x37d1e5['startSide']),_0x4cdaf5=_0x541167['mapPos'](_0x166a1a,_0x37d1e5['endSide']),_0x117dda>_0x4cdaf5||_0x117dda==_0x4cdaf5&&_0x37d1e5['startSide']>0x0&&_0x37d1e5['endSide']<=0x0)continue;}(_0x4cdaf5-_0x117dda||_0x37d1e5['endSide']-_0x37d1e5['startSide'])<0x0||(_0x4a968c<0x0&&(_0x4a968c=_0x117dda),_0x37d1e5['point']&&(_0x1ba671=Math['max'](_0x1ba671,_0x4cdaf5-_0x117dda)),_0x24049b['push'](_0x37d1e5),_0x172b51['push'](_0x117dda-_0x4a968c),_0x1dc1f9['push'](_0x4cdaf5-_0x4a968c));}return{'mapped':_0x24049b['length']?new Chunk(_0x172b51,_0x1dc1f9,_0x24049b,_0x1ba671):null,'pos':_0x4a968c};}}class RangeSet{constructor(_0x4c2222,_0x3a939c,_0xe765bf,_0xee5842){this['chunkPos']=_0x4c2222,this['chunk']=_0x3a939c,this['nextLayer']=_0xe765bf,this['maxPoint']=_0xee5842;}static['create'](_0x4dd2e9,_0x3a98fe,_0xb1e3cd,_0x1b92a8){return new RangeSet(_0x4dd2e9,_0x3a98fe,_0xb1e3cd,_0x1b92a8);}get['length'](){let _0x27cd38=this['chunk']['length']-0x1;return _0x27cd38<0x0?0x0:Math['max'](this['chunkEnd'](_0x27cd38),this['nextLayer']['length']);}get['size'](){if(this['isEmpty'])return 0x0;let _0x2d87d6=this['nextLayer']['size'];for(let _0x2ceee3 of this['chunk'])_0x2d87d6+=_0x2ceee3['value']['length'];return _0x2d87d6;}['chunkEnd'](_0x5741ea){return this['chunkPos'][_0x5741ea]+this['chunk'][_0x5741ea]['length'];}['update'](_0x3917f8){let {add:_0x28e013=[],sort:_0x2fa5cf=!0x1,filterFrom:_0x19c137=0x0,filterTo:_0x209c4b=this['length']}=_0x3917f8,_0x4b5350=_0x3917f8['filter'];if(0x0==_0x28e013['length']&&!_0x4b5350)return this;if(_0x2fa5cf&&(_0x28e013=_0x28e013['slice']()['sort'](cmpRange)),this['isEmpty'])return _0x28e013['length']?RangeSet['of'](_0x28e013):this;let _0x5c5a0a=new LayerCursor(this,null,-0x1)['goto'](0x0),_0x3247c7=0x0,_0x3c8703=[],_0x3d2581=new RangeSetBuilder();for(;_0x5c5a0a['value']||_0x3247c7<_0x28e013['length'];)if(_0x3247c7<_0x28e013['length']&&(_0x5c5a0a['from']-_0x28e013[_0x3247c7]['from']||_0x5c5a0a['startSide']-_0x28e013[_0x3247c7]['value']['startSide'])>=0x0){let _0x3824d5=_0x28e013[_0x3247c7++];_0x3d2581['addInner'](_0x3824d5['from'],_0x3824d5['to'],_0x3824d5['value'])||_0x3c8703['push'](_0x3824d5);}else 0x1==_0x5c5a0a['rangeIndex']&&_0x5c5a0a['chunkIndex']<this['chunk']['length']&&(_0x3247c7==_0x28e013['length']||this['chunkEnd'](_0x5c5a0a['chunkIndex'])<_0x28e013[_0x3247c7]['from'])&&(!_0x4b5350||_0x19c137>this['chunkEnd'](_0x5c5a0a['chunkIndex'])||_0x209c4b<this['chunkPos'][_0x5c5a0a['chunkIndex']])&&_0x3d2581['addChunk'](this['chunkPos'][_0x5c5a0a['chunkIndex']],this['chunk'][_0x5c5a0a['chunkIndex']])?_0x5c5a0a['nextChunk']():((!_0x4b5350||_0x19c137>_0x5c5a0a['to']||_0x209c4b<_0x5c5a0a['from']||_0x4b5350(_0x5c5a0a['from'],_0x5c5a0a['to'],_0x5c5a0a['value']))&&(_0x3d2581['addInner'](_0x5c5a0a['from'],_0x5c5a0a['to'],_0x5c5a0a['value'])||_0x3c8703['push'](Range$1['create'](_0x5c5a0a['from'],_0x5c5a0a['to'],_0x5c5a0a['value']))),_0x5c5a0a['next']());return _0x3d2581['finishInner'](this['nextLayer']['isEmpty']&&!_0x3c8703['length']?RangeSet['empty']:this['nextLayer']['update']({'add':_0x3c8703,'filter':_0x4b5350,'filterFrom':_0x19c137,'filterTo':_0x209c4b}));}['map'](_0x7a3c0a){if(_0x7a3c0a['empty']||this['isEmpty'])return this;let _0x3d7e3a=[],_0x1c4f8c=[],_0x20d012=-0x1;for(let _0x19ff59=0x0;_0x19ff59<this['chunk']['length'];_0x19ff59++){let _0x5a300b=this['chunkPos'][_0x19ff59],_0x324c60=this['chunk'][_0x19ff59],_0x33e946=_0x7a3c0a['touchesRange'](_0x5a300b,_0x5a300b+_0x324c60['length']);if(!0x1===_0x33e946)_0x20d012=Math['max'](_0x20d012,_0x324c60['maxPoint']),_0x3d7e3a['push'](_0x324c60),_0x1c4f8c['push'](_0x7a3c0a['mapPos'](_0x5a300b));else{if(!0x0===_0x33e946){let {mapped:_0x1aaf3a,pos:_0x560130}=_0x324c60['map'](_0x5a300b,_0x7a3c0a);_0x1aaf3a&&(_0x20d012=Math['max'](_0x20d012,_0x1aaf3a['maxPoint']),_0x3d7e3a['push'](_0x1aaf3a),_0x1c4f8c['push'](_0x560130));}}}let _0x159b30=this['nextLayer']['map'](_0x7a3c0a);return 0x0==_0x3d7e3a['length']?_0x159b30:new RangeSet(_0x1c4f8c,_0x3d7e3a,_0x159b30||RangeSet['empty'],_0x20d012);}['between'](_0x383aab,_0x151c91,_0x4d9e9f){if(!this['isEmpty']){for(let _0x54e0f8=0x0;_0x54e0f8<this['chunk']['length'];_0x54e0f8++){let _0x5ee16b=this['chunkPos'][_0x54e0f8],_0xe9274c=this['chunk'][_0x54e0f8];if(_0x151c91>=_0x5ee16b&&_0x383aab<=_0x5ee16b+_0xe9274c['length']&&!0x1===_0xe9274c['between'](_0x5ee16b,_0x383aab-_0x5ee16b,_0x151c91-_0x5ee16b,_0x4d9e9f))return;}this['nextLayer']['between'](_0x383aab,_0x151c91,_0x4d9e9f);}}['iter'](_0x3785f7=0x0){return HeapCursor['from']([this])['goto'](_0x3785f7);}get['isEmpty'](){return this['nextLayer']==this;}static['iter'](_0x146c92,_0x15e8a9=0x0){return HeapCursor['from'](_0x146c92)['goto'](_0x15e8a9);}static['compare'](_0x3eccdb,_0xfed990,_0x32f213,_0x5a6673,_0x56f66d=-0x1){let _0x1e26db=_0x3eccdb['filter'](_0x53e0b0=>_0x53e0b0['maxPoint']>0x0||!_0x53e0b0['isEmpty']&&_0x53e0b0['maxPoint']>=_0x56f66d),_0x1ed4e6=_0xfed990['filter'](_0x5ddce4=>_0x5ddce4['maxPoint']>0x0||!_0x5ddce4['isEmpty']&&_0x5ddce4['maxPoint']>=_0x56f66d),_0x264da0=findSharedChunks(_0x1e26db,_0x1ed4e6,_0x32f213),_0x4b813e=new SpanCursor(_0x1e26db,_0x264da0,_0x56f66d),_0x2cf796=new SpanCursor(_0x1ed4e6,_0x264da0,_0x56f66d);_0x32f213['iterGaps']((_0x2ae43e,_0x389b33,_0x13f3ce)=>compare(_0x4b813e,_0x2ae43e,_0x2cf796,_0x389b33,_0x13f3ce,_0x5a6673)),_0x32f213['empty']&&0x0==_0x32f213['length']&&compare(_0x4b813e,0x0,_0x2cf796,0x0,0x0,_0x5a6673);}static['eq'](_0x101020,_0x35a383,_0x46a2b7=0x0,_0x221fd6){null==_0x221fd6&&(_0x221fd6=0x3b9ac9ff);let _0xbc946b=_0x101020['filter'](_0x3a1bd4=>!_0x3a1bd4['isEmpty']&&_0x35a383['indexOf'](_0x3a1bd4)<0x0),_0x5ac7ce=_0x35a383['filter'](_0x1d71d2=>!_0x1d71d2['isEmpty']&&_0x101020['indexOf'](_0x1d71d2)<0x0);if(_0xbc946b['length']!=_0x5ac7ce['length'])return!0x1;if(!_0xbc946b['length'])return!0x0;let _0x147d34=findSharedChunks(_0xbc946b,_0x5ac7ce),_0xb1066=new SpanCursor(_0xbc946b,_0x147d34,0x0)['goto'](_0x46a2b7),_0x114ea1=new SpanCursor(_0x5ac7ce,_0x147d34,0x0)['goto'](_0x46a2b7);for(;;){if(_0xb1066['to']!=_0x114ea1['to']||!sameValues(_0xb1066['active'],_0x114ea1['active'])||_0xb1066['point']&&(!_0x114ea1['point']||!_0xb1066['point']['eq'](_0x114ea1['point'])))return!0x1;if(_0xb1066['to']>_0x221fd6)return!0x0;_0xb1066['next'](),_0x114ea1['next']();}}static['spans'](_0x5169c3,_0x17171a,_0xc59c75,_0x58b1fb,_0x8f5679=-0x1){let _0x4b0adc=new SpanCursor(_0x5169c3,null,_0x8f5679)['goto'](_0x17171a),_0x2ce7f2=_0x17171a,_0x460097=_0x4b0adc['openStart'];for(;;){let _0x5b4cca=Math['min'](_0x4b0adc['to'],_0xc59c75);if(_0x4b0adc['point']){let _0x46c058=_0x4b0adc['activeForPoint'](_0x4b0adc['to']),_0x52c9cc=_0x4b0adc['pointFrom']<_0x17171a?_0x46c058['length']+0x1:_0x4b0adc['point']['startSide']<0x0?_0x46c058['length']:Math['min'](_0x46c058['length'],_0x460097);_0x58b1fb['point'](_0x2ce7f2,_0x5b4cca,_0x4b0adc['point'],_0x46c058,_0x52c9cc,_0x4b0adc['pointRank']),_0x460097=Math['min'](_0x4b0adc['openEnd'](_0x5b4cca),_0x46c058['length']);}else _0x5b4cca>_0x2ce7f2&&(_0x58b1fb['span'](_0x2ce7f2,_0x5b4cca,_0x4b0adc['active'],_0x460097),_0x460097=_0x4b0adc['openEnd'](_0x5b4cca));if(_0x4b0adc['to']>_0xc59c75)return _0x460097+(_0x4b0adc['point']&&_0x4b0adc['to']>_0xc59c75?0x1:0x0);_0x2ce7f2=_0x4b0adc['to'],_0x4b0adc['next']();}}static['of'](_0xd59d27,_0x30d071=!0x1){let _0x2d1a1d=new RangeSetBuilder();for(let _0x29a3e8 of _0xd59d27 instanceof Range$1?[_0xd59d27]:_0x30d071?lazySort(_0xd59d27):_0xd59d27)_0x2d1a1d['add'](_0x29a3e8['from'],_0x29a3e8['to'],_0x29a3e8['value']);return _0x2d1a1d['finish']();}static['join'](_0x27727a){if(!_0x27727a['length'])return RangeSet['empty'];let _0xdc87a7=_0x27727a[_0x27727a['length']-0x1];for(let _0x4c5d7b=_0x27727a['length']-0x2;_0x4c5d7b>=0x0;_0x4c5d7b--)for(let _0x5fd75a=_0x27727a[_0x4c5d7b];_0x5fd75a!=RangeSet['empty'];_0x5fd75a=_0x5fd75a['nextLayer'])_0xdc87a7=new RangeSet(_0x5fd75a['chunkPos'],_0x5fd75a['chunk'],_0xdc87a7,Math['max'](_0x5fd75a['maxPoint'],_0xdc87a7['maxPoint']));return _0xdc87a7;}}function lazySort(_0x2f2fc7){if(_0x2f2fc7['length']>0x1)for(let _0x2134ff=_0x2f2fc7[0x0],_0x59707f=0x1;_0x59707f<_0x2f2fc7['length'];_0x59707f++){let _0xf934ad=_0x2f2fc7[_0x59707f];if(cmpRange(_0x2134ff,_0xf934ad)>0x0)return _0x2f2fc7['slice']()['sort'](cmpRange);_0x2134ff=_0xf934ad;}return _0x2f2fc7;}RangeSet['empty']=new RangeSet([],[],null,-0x1),RangeSet['empty']['nextLayer']=RangeSet['empty'];class RangeSetBuilder{['finishChunk'](_0x44d8a9){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,_0x44d8a9&&(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'](_0x24ffdd,_0x11a7f0,_0x2abe6b){this['addInner'](_0x24ffdd,_0x11a7f0,_0x2abe6b)||(this['nextLayer']||(this['nextLayer']=new RangeSetBuilder()))['add'](_0x24ffdd,_0x11a7f0,_0x2abe6b);}['addInner'](_0x48b888,_0xf882f0,_0x2af675){let _0x3415cd=_0x48b888-this['lastTo']||_0x2af675['startSide']-this['last']['endSide'];if(_0x3415cd<=0x0&&(_0x48b888-this['lastFrom']||_0x2af675['startSide']-this['last']['startSide'])<0x0)throw new Error('Ranges\x20must\x20be\x20added\x20sorted\x20by\x20`from`\x20position\x20and\x20`startSide`');return!(_0x3415cd<0x0)&&(0xfa==this['from']['length']&&this['finishChunk'](!0x0),this['chunkStart']<0x0&&(this['chunkStart']=_0x48b888),this['from']['push'](_0x48b888-this['chunkStart']),this['to']['push'](_0xf882f0-this['chunkStart']),this['last']=_0x2af675,this['lastFrom']=_0x48b888,this['lastTo']=_0xf882f0,this['value']['push'](_0x2af675),_0x2af675['point']&&(this['maxPoint']=Math['max'](this['maxPoint'],_0xf882f0-_0x48b888)),!0x0);}['addChunk'](_0x42d553,_0xebe3ac){if((_0x42d553-this['lastTo']||_0xebe3ac['value'][0x0]['startSide']-this['last']['endSide'])<0x0)return!0x1;this['from']['length']&&this['finishChunk'](!0x0),this['setMaxPoint']=Math['max'](this['setMaxPoint'],_0xebe3ac['maxPoint']),this['chunks']['push'](_0xebe3ac),this['chunkPos']['push'](_0x42d553);let _0x13c910=_0xebe3ac['value']['length']-0x1;return this['last']=_0xebe3ac['value'][_0x13c910],this['lastFrom']=_0xebe3ac['from'][_0x13c910]+_0x42d553,this['lastTo']=_0xebe3ac['to'][_0x13c910]+_0x42d553,!0x0;}['finish'](){return this['finishInner'](RangeSet['empty']);}['finishInner'](_0x531fef){if(this['from']['length']&&this['finishChunk'](!0x1),0x0==this['chunks']['length'])return _0x531fef;let _0x27bcc4=RangeSet['create'](this['chunkPos'],this['chunks'],this['nextLayer']?this['nextLayer']['finishInner'](_0x531fef):_0x531fef,this['setMaxPoint']);return this['from']=null,_0x27bcc4;}}function findSharedChunks(_0x5b6dac,_0x328f6a,_0x4320a6){let _0x408756=new Map();for(let _0x3d65e4 of _0x5b6dac)for(let _0x2c0d36=0x0;_0x2c0d36<_0x3d65e4['chunk']['length'];_0x2c0d36++)_0x3d65e4['chunk'][_0x2c0d36]['maxPoint']<=0x0&&_0x408756['set'](_0x3d65e4['chunk'][_0x2c0d36],_0x3d65e4['chunkPos'][_0x2c0d36]);let _0x505f0e=new Set();for(let _0x5e2290 of _0x328f6a)for(let _0x53671b=0x0;_0x53671b<_0x5e2290['chunk']['length'];_0x53671b++){let _0x37cccd=_0x408756['get'](_0x5e2290['chunk'][_0x53671b]);null==_0x37cccd||(_0x4320a6?_0x4320a6['mapPos'](_0x37cccd):_0x37cccd)!=_0x5e2290['chunkPos'][_0x53671b]||(null==_0x4320a6?void 0x0:_0x4320a6['touchesRange'](_0x37cccd,_0x37cccd+_0x5e2290['chunk'][_0x53671b]['length']))||_0x505f0e['add'](_0x5e2290['chunk'][_0x53671b]);}return _0x505f0e;}class LayerCursor{constructor(_0x5c0e69,_0x3febce,_0x26b104,_0xeb4362=0x0){this['layer']=_0x5c0e69,this['skip']=_0x3febce,this['minPoint']=_0x26b104,this['rank']=_0xeb4362;}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}get['endSide'](){return this['value']?this['value']['endSide']:0x0;}['goto'](_0x5946c2,_0x466c71=-0x3b9aca00){return this['chunkIndex']=this['rangeIndex']=0x0,this['gotoInner'](_0x5946c2,_0x466c71,!0x1),this;}['gotoInner'](_0x37f957,_0x525ffb,_0x5aafe7){for(;this['chunkIndex']<this['layer']['chunk']['length'];){let _0x42aae4=this['layer']['chunk'][this['chunkIndex']];if(!(this['skip']&&this['skip']['has'](_0x42aae4)||this['layer']['chunkEnd'](this['chunkIndex'])<_0x37f957||_0x42aae4['maxPoint']<this['minPoint']))break;this['chunkIndex']++,_0x5aafe7=!0x1;}if(this['chunkIndex']<this['layer']['chunk']['length']){let _0x5a14bf=this['layer']['chunk'][this['chunkIndex']]['findIndex'](_0x37f957-this['layer']['chunkPos'][this['chunkIndex']],_0x525ffb,!0x0);(!_0x5aafe7||this['rangeIndex']<_0x5a14bf)&&this['setRangeIndex'](_0x5a14bf);}this['next']();}['forward'](_0x45a1f4,_0x4df6e6){(this['to']-_0x45a1f4||this['endSide']-_0x4df6e6)<0x0&&this['gotoInner'](_0x45a1f4,_0x4df6e6,!0x0);}['next'](){for(;;){if(this['chunkIndex']==this['layer']['chunk']['length']){this['from']=this['to']=0x3b9aca00,this['value']=null;break;}{let _0x5a4b9a=this['layer']['chunkPos'][this['chunkIndex']],_0x379abc=this['layer']['chunk'][this['chunkIndex']],_0x544d9f=_0x5a4b9a+_0x379abc['from'][this['rangeIndex']];if(this['from']=_0x544d9f,this['to']=_0x5a4b9a+_0x379abc['to'][this['rangeIndex']],this['value']=_0x379abc['value'][this['rangeIndex']],this['setRangeIndex'](this['rangeIndex']+0x1),this['minPoint']<0x0||this['value']['point']&&this['to']-this['from']>=this['minPoint'])break;}}}['setRangeIndex'](_0x20542a){if(_0x20542a==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']=_0x20542a;}['nextChunk'](){this['chunkIndex']++,this['rangeIndex']=0x0,this['next']();}['compare'](_0x5ae699){return this['from']-_0x5ae699['from']||this['startSide']-_0x5ae699['startSide']||this['rank']-_0x5ae699['rank']||this['to']-_0x5ae699['to']||this['endSide']-_0x5ae699['endSide'];}}class HeapCursor{constructor(_0x58a3a1){this['heap']=_0x58a3a1;}static['from'](_0x1fd369,_0x1588cc=null,_0x32fa8a=-0x1){let _0x44af71=[];for(let _0x35905d=0x0;_0x35905d<_0x1fd369['length'];_0x35905d++)for(let _0x31f9af=_0x1fd369[_0x35905d];!_0x31f9af['isEmpty'];_0x31f9af=_0x31f9af['nextLayer'])_0x31f9af['maxPoint']>=_0x32fa8a&&_0x44af71['push'](new LayerCursor(_0x31f9af,_0x1588cc,_0x32fa8a,_0x35905d));return 0x1==_0x44af71['length']?_0x44af71[0x0]:new HeapCursor(_0x44af71);}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}['goto'](_0x2a1600,_0x457e6c=-0x3b9aca00){for(let _0x497fe2 of this['heap'])_0x497fe2['goto'](_0x2a1600,_0x457e6c);for(let _0x434897=this['heap']['length']>>0x1;_0x434897>=0x0;_0x434897--)heapBubble(this['heap'],_0x434897);return this['next'](),this;}['forward'](_0x2f7611,_0x1edd42){for(let _0xc01a23 of this['heap'])_0xc01a23['forward'](_0x2f7611,_0x1edd42);for(let _0x5aaae7=this['heap']['length']>>0x1;_0x5aaae7>=0x0;_0x5aaae7--)heapBubble(this['heap'],_0x5aaae7);(this['to']-_0x2f7611||this['value']['endSide']-_0x1edd42)<0x0&&this['next']();}['next'](){if(0x0==this['heap']['length'])this['from']=this['to']=0x3b9aca00,this['value']=null,this['rank']=-0x1;else{let _0x2059ab=this['heap'][0x0];this['from']=_0x2059ab['from'],this['to']=_0x2059ab['to'],this['value']=_0x2059ab['value'],this['rank']=_0x2059ab['rank'],_0x2059ab['value']&&_0x2059ab['next'](),heapBubble(this['heap'],0x0);}}}function heapBubble(_0x481973,_0x39ba9b){for(let _0x3e034b=_0x481973[_0x39ba9b];;){let _0x327cf2=0x1+(_0x39ba9b<<0x1);if(_0x327cf2>=_0x481973['length'])break;let _0x11a4ac=_0x481973[_0x327cf2];if(_0x327cf2+0x1<_0x481973['length']&&_0x11a4ac['compare'](_0x481973[_0x327cf2+0x1])>=0x0&&(_0x11a4ac=_0x481973[_0x327cf2+0x1],_0x327cf2++),_0x3e034b['compare'](_0x11a4ac)<0x0)break;_0x481973[_0x327cf2]=_0x3e034b,_0x481973[_0x39ba9b]=_0x11a4ac,_0x39ba9b=_0x327cf2;}}class SpanCursor{constructor(_0x35ce83,_0xb24081,_0x7ee04e){this['minPoint']=_0x7ee04e,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'](_0x35ce83,_0xb24081,_0x7ee04e);}['goto'](_0x1f9396,_0x4e8516=-0x3b9aca00){return this['cursor']['goto'](_0x1f9396,_0x4e8516),this['active']['length']=this['activeTo']['length']=this['activeRank']['length']=0x0,this['minActive']=-0x1,this['to']=_0x1f9396,this['endSide']=_0x4e8516,this['openStart']=-0x1,this['next'](),this;}['forward'](_0x47670a,_0x45a72e){for(;this['minActive']>-0x1&&(this['activeTo'][this['minActive']]-_0x47670a||this['active'][this['minActive']]['endSide']-_0x45a72e)<0x0;)this['removeActive'](this['minActive']);this['cursor']['forward'](_0x47670a,_0x45a72e);}['removeActive'](_0x17cdce){remove(this['active'],_0x17cdce),remove(this['activeTo'],_0x17cdce),remove(this['activeRank'],_0x17cdce),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['addActive'](_0x1f38e0){let _0x26cf97=0x0,{value:_0x9c8cf2,to:_0x4802d4,rank:_0x3c7ae1}=this['cursor'];for(;_0x26cf97<this['activeRank']['length']&&(_0x3c7ae1-this['activeRank'][_0x26cf97]||_0x4802d4-this['activeTo'][_0x26cf97])>0x0;)_0x26cf97++;insert(this['active'],_0x26cf97,_0x9c8cf2),insert(this['activeTo'],_0x26cf97,_0x4802d4),insert(this['activeRank'],_0x26cf97,_0x3c7ae1),_0x1f38e0&&insert(_0x1f38e0,_0x26cf97,this['cursor']['from']),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['next'](){let _0x2ee7c9=this['to'],_0x4caca2=this['point'];this['point']=null;let _0x12d80f=this['openStart']<0x0?[]:null;for(;;){let _0x17a884=this['minActive'];if(_0x17a884>-0x1&&(this['activeTo'][_0x17a884]-this['cursor']['from']||this['active'][_0x17a884]['endSide']-this['cursor']['startSide'])<0x0){if(this['activeTo'][_0x17a884]>_0x2ee7c9){this['to']=this['activeTo'][_0x17a884],this['endSide']=this['active'][_0x17a884]['endSide'];break;}this['removeActive'](_0x17a884),_0x12d80f&&remove(_0x12d80f,_0x17a884);}else{if(!this['cursor']['value']){this['to']=this['endSide']=0x3b9aca00;break;}if(this['cursor']['from']>_0x2ee7c9){this['to']=this['cursor']['from'],this['endSide']=this['cursor']['startSide'];break;}{let _0x4f0b4f=this['cursor']['value'];if(_0x4f0b4f['point']){if(!(_0x4caca2&&this['cursor']['to']==this['to']&&this['cursor']['from']<this['cursor']['to'])){this['point']=_0x4f0b4f,this['pointFrom']=this['cursor']['from'],this['pointRank']=this['cursor']['rank'],this['to']=this['cursor']['to'],this['endSide']=_0x4f0b4f['endSide'],this['cursor']['next'](),this['forward'](this['to'],this['endSide']);break;}this['cursor']['next']();}else this['addActive'](_0x12d80f),this['cursor']['next']();}}}if(_0x12d80f){this['openStart']=0x0;for(let _0xa0c358=_0x12d80f['length']-0x1;_0xa0c358>=0x0&&_0x12d80f[_0xa0c358]<_0x2ee7c9;_0xa0c358--)this['openStart']++;}}['activeForPoint'](_0x7efe1d){if(!this['active']['length'])return this['active'];let _0x18857b=[];for(let _0x58212b=this['active']['length']-0x1;_0x58212b>=0x0&&!(this['activeRank'][_0x58212b]<this['pointRank']);_0x58212b--)(this['activeTo'][_0x58212b]>_0x7efe1d||this['activeTo'][_0x58212b]==_0x7efe1d&&this['active'][_0x58212b]['endSide']>=this['point']['endSide'])&&_0x18857b['push'](this['active'][_0x58212b]);return _0x18857b['reverse']();}['openEnd'](_0x44fd93){let _0x5ba7a0=0x0;for(let _0x335430=this['activeTo']['length']-0x1;_0x335430>=0x0&&this['activeTo'][_0x335430]>_0x44fd93;_0x335430--)_0x5ba7a0++;return _0x5ba7a0;}}function compare(_0x4e1f88,_0x13629f,_0x249f55,_0x1ce8e6,_0x3c2d5e,_0xdc07b0){_0x4e1f88['goto'](_0x13629f),_0x249f55['goto'](_0x1ce8e6);let _0x4b3577=_0x1ce8e6+_0x3c2d5e,_0xfb2195=_0x1ce8e6,_0x3d5a6c=_0x1ce8e6-_0x13629f;for(;;){let _0x1c260d=_0x4e1f88['to']+_0x3d5a6c-_0x249f55['to'],_0x193729=_0x1c260d||_0x4e1f88['endSide']-_0x249f55['endSide'],_0x4f8b88=_0x193729<0x0?_0x4e1f88['to']+_0x3d5a6c:_0x249f55['to'],_0x32c635=Math['min'](_0x4f8b88,_0x4b3577);if(_0x4e1f88['point']||_0x249f55['point']?_0x4e1f88['point']&&_0x249f55['point']&&(_0x4e1f88['point']==_0x249f55['point']||_0x4e1f88['point']['eq'](_0x249f55['point']))&&sameValues(_0x4e1f88['activeForPoint'](_0x4e1f88['to']),_0x249f55['activeForPoint'](_0x249f55['to']))||_0xdc07b0['comparePoint'](_0xfb2195,_0x32c635,_0x4e1f88['point'],_0x249f55['point']):_0x32c635>_0xfb2195&&!sameValues(_0x4e1f88['active'],_0x249f55['active'])&&_0xdc07b0['compareRange'](_0xfb2195,_0x32c635,_0x4e1f88['active'],_0x249f55['active']),_0x4f8b88>_0x4b3577)break;(_0x1c260d||_0x4e1f88['openEnd']!=_0x249f55['openEnd'])&&_0xdc07b0['boundChange']&&_0xdc07b0['boundChange'](_0x4f8b88),_0xfb2195=_0x4f8b88,_0x193729<=0x0&&_0x4e1f88['next'](),_0x193729>=0x0&&_0x249f55['next']();}}function sameValues(_0x4d6bb9,_0x3a6e13){if(_0x4d6bb9['length']!=_0x3a6e13['length'])return!0x1;for(let _0x19ea95=0x0;_0x19ea95<_0x4d6bb9['length'];_0x19ea95++)if(_0x4d6bb9[_0x19ea95]!=_0x3a6e13[_0x19ea95]&&!_0x4d6bb9[_0x19ea95]['eq'](_0x3a6e13[_0x19ea95]))return!0x1;return!0x0;}function remove(_0x3f9b96,_0x54d7dc){for(let _0x10775a=_0x54d7dc,_0x388266=_0x3f9b96['length']-0x1;_0x10775a<_0x388266;_0x10775a++)_0x3f9b96[_0x10775a]=_0x3f9b96[_0x10775a+0x1];_0x3f9b96['pop']();}function insert(_0x3f58fe,_0x30f2c9,_0x18b836){for(let _0x5ac4b1=_0x3f58fe['length']-0x1;_0x5ac4b1>=_0x30f2c9;_0x5ac4b1--)_0x3f58fe[_0x5ac4b1+0x1]=_0x3f58fe[_0x5ac4b1];_0x3f58fe[_0x30f2c9]=_0x18b836;}function findMinIndex(_0x1778dd,_0xefbb27){let _0x2f5acc=-0x1,_0x523e34=0x3b9aca00;for(let _0x14f0cf=0x0;_0x14f0cf<_0xefbb27['length'];_0x14f0cf++)(_0xefbb27[_0x14f0cf]-_0x523e34||_0x1778dd[_0x14f0cf]['endSide']-_0x1778dd[_0x2f5acc]['endSide'])<0x0&&(_0x2f5acc=_0x14f0cf,_0x523e34=_0xefbb27[_0x14f0cf]);return _0x2f5acc;}function countColumn(_0x572789,_0x49873e,_0x4882ac=_0x572789['length']){let _0x32bc2c=0x0;for(let _0x3bc31e=0x0;_0x3bc31e<_0x4882ac&&_0x3bc31e<_0x572789['length'];)0x9==_0x572789['charCodeAt'](_0x3bc31e)?(_0x32bc2c+=_0x49873e-_0x32bc2c%_0x49873e,_0x3bc31e++):(_0x32bc2c++,_0x3bc31e=findClusterBreak(_0x572789,_0x3bc31e));return _0x32bc2c;}function findColumn(_0x256fec,_0x39bed5,_0xe19dd9,_0x7e8a9c){for(let _0x28c0eb=0x0,_0x49f1d0=0x0;;){if(_0x49f1d0>=_0x39bed5)return _0x28c0eb;if(_0x28c0eb==_0x256fec['length'])break;_0x49f1d0+=0x9==_0x256fec['charCodeAt'](_0x28c0eb)?_0xe19dd9-_0x49f1d0%_0xe19dd9:0x1,_0x28c0eb=findClusterBreak(_0x256fec,_0x28c0eb);}return!0x0===_0x7e8a9c?-0x1:_0x256fec['length'];}const C='ͼ',COUNT='undefined'==typeof Symbol?'__'+C:Symbol['for'](C),SET='undefined'==typeof Symbol?'__styleSet'+Math['floor'](0x5f5e100*Math['random']()):Symbol('styleSet'),top='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:{};class StyleModule{constructor(_0x4e620c,_0x91ab37){this['rules']=[];let {finish:_0x45b606}=_0x91ab37||{};function _0x2bde8c(_0x347945){return/^@/['test'](_0x347945)?[_0x347945]:_0x347945['split'](/,\s*/);}function _0x30e3c5(_0x556c07,_0x451200,_0x15aa93,_0x11fc91){let _0x10a20b=[],_0xa36a9=/^@(\w+)\b/['exec'](_0x556c07[0x0]),_0x4445a7=_0xa36a9&&'keyframes'==_0xa36a9[0x1];if(_0xa36a9&&null==_0x451200)return _0x15aa93['push'](_0x556c07[0x0]+';');for(let _0x25284b in _0x451200){let _0x4071e4=_0x451200[_0x25284b];if(/&/['test'](_0x25284b))_0x30e3c5(_0x25284b['split'](/,\s*/)['map'](_0xb49988=>_0x556c07['map'](_0x541b87=>_0xb49988['replace'](/&/,_0x541b87)))['reduce']((_0xd4ab61,_0x5ab6b5)=>_0xd4ab61['concat'](_0x5ab6b5)),_0x4071e4,_0x15aa93);else{if(_0x4071e4&&'object'==typeof _0x4071e4){if(!_0xa36a9)throw new RangeError('The\x20value\x20of\x20a\x20property\x20('+_0x25284b+')\x20should\x20be\x20a\x20primitive\x20value.');_0x30e3c5(_0x2bde8c(_0x25284b),_0x4071e4,_0x10a20b,_0x4445a7);}else null!=_0x4071e4&&_0x10a20b['push'](_0x25284b['replace'](/_.*/,'')['replace'](/[A-Z]/g,_0x53cf7a=>'-'+_0x53cf7a['toLowerCase']())+':\x20'+_0x4071e4+';');}}(_0x10a20b['length']||_0x4445a7)&&_0x15aa93['push']((!_0x45b606||_0xa36a9||_0x11fc91?_0x556c07:_0x556c07['map'](_0x45b606))['join'](',\x20')+'\x20{'+_0x10a20b['join']('\x20')+'}');}for(let _0x5a0672 in _0x4e620c)_0x30e3c5(_0x2bde8c(_0x5a0672),_0x4e620c[_0x5a0672],this['rules']);}['getRules'](){return this['rules']['join']('\x0a');}static['newName'](){let _0xa7159d=top[COUNT]||0x1;return top[COUNT]=_0xa7159d+0x1,C+_0xa7159d['toString'](0x24);}static['mount'](_0x12db15,_0x29eaa1,_0x1df377){let _0x4bd668=_0x12db15[SET],_0x3c2981=_0x1df377&&_0x1df377['nonce'];_0x4bd668?_0x3c2981&&_0x4bd668['setNonce'](_0x3c2981):_0x4bd668=new StyleSet(_0x12db15,_0x3c2981),_0x4bd668['mount'](Array['isArray'](_0x29eaa1)?_0x29eaa1:[_0x29eaa1],_0x12db15);}}let adoptedSet=new Map();class StyleSet{constructor(_0x5579df,_0x3f0b9d){let _0x5a5e8b=_0x5579df['ownerDocument']||_0x5579df,_0x527b80=_0x5a5e8b['defaultView'];if(!_0x5579df['head']&&_0x5579df['adoptedStyleSheets']&&_0x527b80['CSSStyleSheet']){let _0x26559d=adoptedSet['get'](_0x5a5e8b);if(_0x26559d)return _0x5579df[SET]=_0x26559d;this['sheet']=new _0x527b80['CSSStyleSheet'](),adoptedSet['set'](_0x5a5e8b,this);}else this['styleTag']=_0x5a5e8b['createElement']('style'),_0x3f0b9d&&this['styleTag']['setAttribute']('nonce',_0x3f0b9d);this['modules']=[],_0x5579df[SET]=this;}['mount'](_0x20a635,_0x207f9e){let _0x37e748=this['sheet'],_0x154ae0=0x0,_0x58a1f8=0x0;for(let _0x2a833e=0x0;_0x2a833e<_0x20a635['length'];_0x2a833e++){let _0x591166=_0x20a635[_0x2a833e],_0x526b52=this['modules']['indexOf'](_0x591166);if(_0x526b52<_0x58a1f8&&_0x526b52>-0x1&&(this['modules']['splice'](_0x526b52,0x1),_0x58a1f8--,_0x526b52=-0x1),-0x1==_0x526b52){if(this['modules']['splice'](_0x58a1f8++,0x0,_0x591166),_0x37e748){for(let _0x4491ed=0x0;_0x4491ed<_0x591166['rules']['length'];_0x4491ed++)_0x37e748['insertRule'](_0x591166['rules'][_0x4491ed],_0x154ae0++);}}else{for(;_0x58a1f8<_0x526b52;)_0x154ae0+=this['modules'][_0x58a1f8++]['rules']['length'];_0x154ae0+=_0x591166['rules']['length'],_0x58a1f8++;}}if(_0x37e748)_0x207f9e['adoptedStyleSheets']['indexOf'](this['sheet'])<0x0&&(_0x207f9e['adoptedStyleSheets']=[this['sheet'],..._0x207f9e['adoptedStyleSheets']]);else{let _0x10fae0='';for(let _0x2153ae=0x0;_0x2153ae<this['modules']['length'];_0x2153ae++)_0x10fae0+=this['modules'][_0x2153ae]['getRules']()+'\x0a';this['styleTag']['textContent']=_0x10fae0;let _0x352372=_0x207f9e['head']||_0x207f9e;this['styleTag']['parentNode']!=_0x352372&&_0x352372['insertBefore'](this['styleTag'],_0x352372['firstChild']);}}['setNonce'](_0x504060){this['styleTag']&&this['styleTag']['getAttribute']('nonce')!=_0x504060&&this['styleTag']['setAttribute']('nonce',_0x504060);}}for(var base$2={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$1='undefined'!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/['exec'](navigator['userAgent']),i$2=0x0;i$2<0xa;i$2++)base$2[0x30+i$2]=base$2[0x60+i$2]=String(i$2);for(var i$2=0x1;i$2<=0x18;i$2++)base$2[i$2+0x6f]='F'+i$2;for(var i$2=0x41;i$2<=0x5a;i$2++)base$2[i$2]=String['fromCharCode'](i$2+0x20),shift[i$2]=String['fromCharCode'](i$2);for(var code in base$2)shift['hasOwnProperty'](code)||(shift[code]=base$2[code]);function keyName(_0x370438){var _0x2e7279=!(mac&&_0x370438['metaKey']&&_0x370438['shiftKey']&&!_0x370438['ctrlKey']&&!_0x370438['altKey']||ie$1&&_0x370438['shiftKey']&&_0x370438['key']&&0x1==_0x370438['key']['length']||'Unidentified'==_0x370438['key'])&&_0x370438['key']||(_0x370438['shiftKey']?shift:base$2)[_0x370438['keyCode']]||_0x370438['key']||'Unidentified';return'Esc'==_0x2e7279&&(_0x2e7279='Escape'),'Del'==_0x2e7279&&(_0x2e7279='Delete'),'Left'==_0x2e7279&&(_0x2e7279='ArrowLeft'),'Up'==_0x2e7279&&(_0x2e7279='ArrowUp'),'Right'==_0x2e7279&&(_0x2e7279='ArrowRight'),'Down'==_0x2e7279&&(_0x2e7279='ArrowDown'),_0x2e7279;}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=!!(ie_upto10||ie_11up||ie_edge),gecko=!ie&&/gecko\/(\d+)/i['test'](nav['userAgent']),chrome=!ie&&/Chrome\/(\d+)/['exec'](nav['userAgent']),webkit='webkitFontSmoothing'in doc['documentElement']['style'],safari=!ie&&/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,'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(_0x43ed30){let _0x22bd77;return _0x22bd77=0xb==_0x43ed30['nodeType']?_0x43ed30['getSelection']?_0x43ed30:_0x43ed30['ownerDocument']:_0x43ed30,_0x22bd77['getSelection']();}function contains(_0x46a9d4,_0x431e62){return!!_0x431e62&&(_0x46a9d4==_0x431e62||_0x46a9d4['contains'](0x1!=_0x431e62['nodeType']?_0x431e62['parentNode']:_0x431e62));}function hasSelection(_0x4afe56,_0x2022c8){if(!_0x2022c8['anchorNode'])return!0x1;try{return contains(_0x4afe56,_0x2022c8['anchorNode']);}catch(_0x18061f){return!0x1;}}function clientRectsFor(_0x39f9e4){return 0x3==_0x39f9e4['nodeType']?textRange(_0x39f9e4,0x0,_0x39f9e4['nodeValue']['length'])['getClientRects']():0x1==_0x39f9e4['nodeType']?_0x39f9e4['getClientRects']():[];}function isEquivalentPosition(_0x54da8d,_0x191627,_0x307301,_0x5639e1){return!!_0x307301&&(scanFor(_0x54da8d,_0x191627,_0x307301,_0x5639e1,-0x1)||scanFor(_0x54da8d,_0x191627,_0x307301,_0x5639e1,0x1));}function domIndex(_0x2df375){for(var _0x31c5f9=0x0;;_0x31c5f9++)if(!(_0x2df375=_0x2df375['previousSibling']))return _0x31c5f9;}function isBlockElement(_0x6e5b0){return 0x1==_0x6e5b0['nodeType']&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/['test'](_0x6e5b0['nodeName']);}function scanFor(_0x430f3d,_0x3fa914,_0x576b9e,_0x1fe308,_0x2c5e9b){for(;;){if(_0x430f3d==_0x576b9e&&_0x3fa914==_0x1fe308)return!0x0;if(_0x3fa914==(_0x2c5e9b<0x0?0x0:maxOffset(_0x430f3d))){if('DIV'==_0x430f3d['nodeName'])return!0x1;let _0x5d2540=_0x430f3d['parentNode'];if(!_0x5d2540||0x1!=_0x5d2540['nodeType'])return!0x1;_0x3fa914=domIndex(_0x430f3d)+(_0x2c5e9b<0x0?0x0:0x1),_0x430f3d=_0x5d2540;}else{if(0x1!=_0x430f3d['nodeType'])return!0x1;if(0x1==(_0x430f3d=_0x430f3d['childNodes'][_0x3fa914+(_0x2c5e9b<0x0?-0x1:0x0)])['nodeType']&&'false'==_0x430f3d['contentEditable'])return!0x1;_0x3fa914=_0x2c5e9b<0x0?maxOffset(_0x430f3d):0x0;}}}function maxOffset(_0x297090){return 0x3==_0x297090['nodeType']?_0x297090['nodeValue']['length']:_0x297090['childNodes']['length'];}function flattenRect(_0x283dde,_0x1c4a4f){let _0x17d29f=_0x1c4a4f?_0x283dde['left']:_0x283dde['right'];return{'left':_0x17d29f,'right':_0x17d29f,'top':_0x283dde['top'],'bottom':_0x283dde['bottom']};}function windowRect(_0x30a149){let _0x1cdb53=_0x30a149['visualViewport'];return _0x1cdb53?{'left':0x0,'right':_0x1cdb53['width'],'top':0x0,'bottom':_0x1cdb53['height']}:{'left':0x0,'right':_0x30a149['innerWidth'],'top':0x0,'bottom':_0x30a149['innerHeight']};}function getScale(_0x5bfefa,_0x545925){let _0x4d1eb9=_0x545925['width']/_0x5bfefa['offsetWidth'],_0x851b38=_0x545925['height']/_0x5bfefa['offsetHeight'];return(_0x4d1eb9>0.995&&_0x4d1eb9<1.005||!isFinite(_0x4d1eb9)||Math['abs'](_0x545925['width']-_0x5bfefa['offsetWidth'])<0x1)&&(_0x4d1eb9=0x1),(_0x851b38>0.995&&_0x851b38<1.005||!isFinite(_0x851b38)||Math['abs'](_0x545925['height']-_0x5bfefa['offsetHeight'])<0x1)&&(_0x851b38=0x1),{'scaleX':_0x4d1eb9,'scaleY':_0x851b38};}function scrollRectIntoView(_0x5de42f,_0x242011,_0x3e0518,_0x412a3c,_0x4b8194,_0xc2554e,_0x294f4e,_0x122d00){let _0x247661=_0x5de42f['ownerDocument'],_0x566deb=_0x247661['defaultView']||window;for(let _0x243ccd=_0x5de42f,_0x3e424f=!0x1;_0x243ccd&&!_0x3e424f;)if(0x1==_0x243ccd['nodeType']){let _0x4d6338,_0x331d6c=_0x243ccd==_0x247661['body'],_0x596932=0x1,_0x2e5213=0x1;if(_0x331d6c)_0x4d6338=windowRect(_0x566deb);else{if(/^(fixed|sticky)$/['test'](getComputedStyle(_0x243ccd)['position'])&&(_0x3e424f=!0x0),_0x243ccd['scrollHeight']<=_0x243ccd['clientHeight']&&_0x243ccd['scrollWidth']<=_0x243ccd['clientWidth']){_0x243ccd=_0x243ccd['assignedSlot']||_0x243ccd['parentNode'];continue;}let _0x1a0298=_0x243ccd['getBoundingClientRect']();({scaleX:_0x596932,scaleY:_0x2e5213}=getScale(_0x243ccd,_0x1a0298),_0x4d6338={'left':_0x1a0298['left'],'right':_0x1a0298['left']+_0x243ccd['clientWidth']*_0x596932,'top':_0x1a0298['top'],'bottom':_0x1a0298['top']+_0x243ccd['clientHeight']*_0x2e5213});}let _0x4caa74=0x0,_0x3b6b61=0x0;if('nearest'==_0x4b8194)_0x242011['top']<_0x4d6338['top']?(_0x3b6b61=_0x242011['top']-(_0x4d6338['top']+_0x294f4e),_0x3e0518>0x0&&_0x242011['bottom']>_0x4d6338['bottom']+_0x3b6b61&&(_0x3b6b61=_0x242011['bottom']-_0x4d6338['bottom']+_0x294f4e)):_0x242011['bottom']>_0x4d6338['bottom']&&(_0x3b6b61=_0x242011['bottom']-_0x4d6338['bottom']+_0x294f4e,_0x3e0518<0x0&&_0x242011['top']-_0x3b6b61<_0x4d6338['top']&&(_0x3b6b61=_0x242011['top']-(_0x4d6338['top']+_0x294f4e)));else{let _0x1d7ca7=_0x242011['bottom']-_0x242011['top'],_0xa76a51=_0x4d6338['bottom']-_0x4d6338['top'];_0x3b6b61=('center'==_0x4b8194&&_0x1d7ca7<=_0xa76a51?_0x242011['top']+_0x1d7ca7/0x2-_0xa76a51/0x2:'start'==_0x4b8194||'center'==_0x4b8194&&_0x3e0518<0x0?_0x242011['top']-_0x294f4e:_0x242011['bottom']-_0xa76a51+_0x294f4e)-_0x4d6338['top'];}if('nearest'==_0x412a3c)_0x242011['left']<_0x4d6338['left']?(_0x4caa74=_0x242011['left']-(_0x4d6338['left']+_0xc2554e),_0x3e0518>0x0&&_0x242011['right']>_0x4d6338['right']+_0x4caa74&&(_0x4caa74=_0x242011['right']-_0x4d6338['right']+_0xc2554e)):_0x242011['right']>_0x4d6338['right']&&(_0x4caa74=_0x242011['right']-_0x4d6338['right']+_0xc2554e,_0x3e0518<0x0&&_0x242011['left']<_0x4d6338['left']+_0x4caa74&&(_0x4caa74=_0x242011['left']-(_0x4d6338['left']+_0xc2554e)));else _0x4caa74=('center'==_0x412a3c?_0x242011['left']+(_0x242011['right']-_0x242011['left'])/0x2-(_0x4d6338['right']-_0x4d6338['left'])/0x2:'start'==_0x412a3c==_0x122d00?_0x242011['left']-_0xc2554e:_0x242011['right']-(_0x4d6338['right']-_0x4d6338['left'])+_0xc2554e)-_0x4d6338['left'];if(_0x4caa74||_0x3b6b61){if(_0x331d6c)_0x566deb['scrollBy'](_0x4caa74,_0x3b6b61);else{let _0x2f533e=0x0,_0x14bab5=0x0;if(_0x3b6b61){let _0x2c03bc=_0x243ccd['scrollTop'];_0x243ccd['scrollTop']+=_0x3b6b61/_0x2e5213,_0x14bab5=(_0x243ccd['scrollTop']-_0x2c03bc)*_0x2e5213;}if(_0x4caa74){let _0x2886fc=_0x243ccd['scrollLeft'];_0x243ccd['scrollLeft']+=_0x4caa74/_0x596932,_0x2f533e=(_0x243ccd['scrollLeft']-_0x2886fc)*_0x596932;}_0x242011={'left':_0x242011['left']-_0x2f533e,'top':_0x242011['top']-_0x14bab5,'right':_0x242011['right']-_0x2f533e,'bottom':_0x242011['bottom']-_0x14bab5},_0x2f533e&&Math['abs'](_0x2f533e-_0x4caa74)<0x1&&(_0x412a3c='nearest'),_0x14bab5&&Math['abs'](_0x14bab5-_0x3b6b61)<0x1&&(_0x4b8194='nearest');}}if(_0x331d6c)break;(_0x242011['top']<_0x4d6338['top']||_0x242011['bottom']>_0x4d6338['bottom']||_0x242011['left']<_0x4d6338['left']||_0x242011['right']>_0x4d6338['right'])&&(_0x242011={'left':Math['max'](_0x242011['left'],_0x4d6338['left']),'right':Math['min'](_0x242011['right'],_0x4d6338['right']),'top':Math['max'](_0x242011['top'],_0x4d6338['top']),'bottom':Math['min'](_0x242011['bottom'],_0x4d6338['bottom'])}),_0x243ccd=_0x243ccd['assignedSlot']||_0x243ccd['parentNode'];}else{if(0xb!=_0x243ccd['nodeType'])break;_0x243ccd=_0x243ccd['host'];}}function scrollableParents(_0x41bb64){let _0xa23b74,_0x5dca8c,_0x262ee2=_0x41bb64['ownerDocument'];for(let _0x314647=_0x41bb64['parentNode'];_0x314647&&!(_0x314647==_0x262ee2['body']||_0xa23b74&&_0x5dca8c);)if(0x1==_0x314647['nodeType'])!_0x5dca8c&&_0x314647['scrollHeight']>_0x314647['clientHeight']&&(_0x5dca8c=_0x314647),!_0xa23b74&&_0x314647['scrollWidth']>_0x314647['clientWidth']&&(_0xa23b74=_0x314647),_0x314647=_0x314647['assignedSlot']||_0x314647['parentNode'];else{if(0xb!=_0x314647['nodeType'])break;_0x314647=_0x314647['host'];}return{'x':_0xa23b74,'y':_0x5dca8c};}class DOMSelectionState{constructor(){this['anchorNode']=null,this['anchorOffset']=0x0,this['focusNode']=null,this['focusOffset']=0x0;}['eq'](_0x4c6b26){return this['anchorNode']==_0x4c6b26['anchorNode']&&this['anchorOffset']==_0x4c6b26['anchorOffset']&&this['focusNode']==_0x4c6b26['focusNode']&&this['focusOffset']==_0x4c6b26['focusOffset'];}['setRange'](_0x3e8277){let {anchorNode:_0xecd325,focusNode:_0x2bfb5e}=_0x3e8277;this['set'](_0xecd325,Math['min'](_0x3e8277['anchorOffset'],_0xecd325?maxOffset(_0xecd325):0x0),_0x2bfb5e,Math['min'](_0x3e8277['focusOffset'],_0x2bfb5e?maxOffset(_0x2bfb5e):0x0));}['set'](_0x4d868c,_0x3168d3,_0x2f71f1,_0x15f7c2){this['anchorNode']=_0x4d868c,this['anchorOffset']=_0x3168d3,this['focusNode']=_0x2f71f1,this['focusOffset']=_0x15f7c2;}}let preventScrollSupported=null,scratchRange;function focusPreventScroll(_0x3161e4){if(_0x3161e4['setActive'])return _0x3161e4['setActive']();if(preventScrollSupported)return _0x3161e4['focus'](preventScrollSupported);let _0x5524e6=[];for(let _0x661470=_0x3161e4;_0x661470&&(_0x5524e6['push'](_0x661470,_0x661470['scrollTop'],_0x661470['scrollLeft']),_0x661470!=_0x661470['ownerDocument']);_0x661470=_0x661470['parentNode']);if(_0x3161e4['focus'](null==preventScrollSupported?{get 'preventScroll'(){return preventScrollSupported={'preventScroll':!0x0},!0x0;}}:void 0x0),!preventScrollSupported){preventScrollSupported=!0x1;for(let _0x3e7e0f=0x0;_0x3e7e0f<_0x5524e6['length'];){let _0x176a13=_0x5524e6[_0x3e7e0f++],_0x304fcd=_0x5524e6[_0x3e7e0f++],_0xba8fd9=_0x5524e6[_0x3e7e0f++];_0x176a13['scrollTop']!=_0x304fcd&&(_0x176a13['scrollTop']=_0x304fcd),_0x176a13['scrollLeft']!=_0xba8fd9&&(_0x176a13['scrollLeft']=_0xba8fd9);}}}function textRange(_0x403749,_0x5682ef,_0x1f3644=_0x5682ef){let _0x14ae8a=scratchRange||(scratchRange=document['createRange']());return _0x14ae8a['setEnd'](_0x403749,_0x1f3644),_0x14ae8a['setStart'](_0x403749,_0x5682ef),_0x14ae8a;}function dispatchKey(_0x15179e,_0x4e3f62,_0x564d7c,_0x4d78a7){let _0x1b091f={'key':_0x4e3f62,'code':_0x4e3f62,'keyCode':_0x564d7c,'which':_0x564d7c,'cancelable':!0x0};_0x4d78a7&&({altKey:_0x1b091f['altKey'],ctrlKey:_0x1b091f['ctrlKey'],shiftKey:_0x1b091f['shiftKey'],metaKey:_0x1b091f['metaKey']}=_0x4d78a7);let _0x5b177b=new KeyboardEvent('keydown',_0x1b091f);_0x5b177b['synthetic']=!0x0,_0x15179e['dispatchEvent'](_0x5b177b);let _0x4c0d33=new KeyboardEvent('keyup',_0x1b091f);return _0x4c0d33['synthetic']=!0x0,_0x15179e['dispatchEvent'](_0x4c0d33),_0x5b177b['defaultPrevented']||_0x4c0d33['defaultPrevented'];}function getRoot(_0x29c333){for(;_0x29c333;){if(_0x29c333&&(0x9==_0x29c333['nodeType']||0xb==_0x29c333['nodeType']&&_0x29c333['host']))return _0x29c333;_0x29c333=_0x29c333['assignedSlot']||_0x29c333['parentNode'];}return null;}function clearAttributes(_0x3d5bf8){for(;_0x3d5bf8['attributes']['length'];)_0x3d5bf8['removeAttributeNode'](_0x3d5bf8['attributes'][0x0]);}function atElementStart(_0x2892dc,_0x2996b1){let _0x538eda=_0x2996b1['focusNode'],_0x3a0296=_0x2996b1['focusOffset'];if(!_0x538eda||_0x2996b1['anchorNode']!=_0x538eda||_0x2996b1['anchorOffset']!=_0x3a0296)return!0x1;for(_0x3a0296=Math['min'](_0x3a0296,maxOffset(_0x538eda));;)if(_0x3a0296){if(0x1!=_0x538eda['nodeType'])return!0x1;let _0x40531d=_0x538eda['childNodes'][_0x3a0296-0x1];'false'==_0x40531d['contentEditable']?_0x3a0296--:(_0x538eda=_0x40531d,_0x3a0296=maxOffset(_0x538eda));}else{if(_0x538eda==_0x2892dc)return!0x0;_0x3a0296=domIndex(_0x538eda),_0x538eda=_0x538eda['parentNode'];}}function isScrolledToBottom(_0x3154e9){return _0x3154e9['scrollTop']>Math['max'](0x1,_0x3154e9['scrollHeight']-_0x3154e9['clientHeight']-0x4);}function textNodeBefore(_0x41a360,_0x2cfff0){for(let _0x49ffa3=_0x41a360,_0xb6bb5a=_0x2cfff0;;){if(0x3==_0x49ffa3['nodeType']&&_0xb6bb5a>0x0)return{'node':_0x49ffa3,'offset':_0xb6bb5a};if(0x1==_0x49ffa3['nodeType']&&_0xb6bb5a>0x0){if('false'==_0x49ffa3['contentEditable'])return null;_0x49ffa3=_0x49ffa3['childNodes'][_0xb6bb5a-0x1],_0xb6bb5a=maxOffset(_0x49ffa3);}else{if(!_0x49ffa3['parentNode']||isBlockElement(_0x49ffa3))return null;_0xb6bb5a=domIndex(_0x49ffa3),_0x49ffa3=_0x49ffa3['parentNode'];}}}function textNodeAfter(_0x410b46,_0x151b84){for(let _0x5170ba=_0x410b46,_0x462c4d=_0x151b84;;){if(0x3==_0x5170ba['nodeType']&&_0x462c4d<_0x5170ba['nodeValue']['length'])return{'node':_0x5170ba,'offset':_0x462c4d};if(0x1==_0x5170ba['nodeType']&&_0x462c4d<_0x5170ba['childNodes']['length']){if('false'==_0x5170ba['contentEditable'])return null;_0x5170ba=_0x5170ba['childNodes'][_0x462c4d],_0x462c4d=0x0;}else{if(!_0x5170ba['parentNode']||isBlockElement(_0x5170ba))return null;_0x462c4d=domIndex(_0x5170ba)+0x1,_0x5170ba=_0x5170ba['parentNode'];}}}browser['safari']&&browser['safari_version']>=0x1a&&(preventScrollSupported=!0x1);class DOMPos{constructor(_0x298fb8,_0x247df9,_0x155222=!0x0){this['node']=_0x298fb8,this['offset']=_0x247df9,this['precise']=_0x155222;}static['before'](_0x500027,_0x373bd2){return new DOMPos(_0x500027['parentNode'],domIndex(_0x500027),_0x373bd2);}static['after'](_0x24a588,_0x4312b4){return new DOMPos(_0x24a588['parentNode'],domIndex(_0x24a588)+0x1,_0x4312b4);}}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'](_0x39363b){let _0x7737f8=this['posAtStart'];for(let _0x19a20f of this['children']){if(_0x19a20f==_0x39363b)return _0x7737f8;_0x7737f8+=_0x19a20f['length']+_0x19a20f['breakAfter'];}throw new RangeError('Invalid\x20child\x20in\x20posBefore');}['posAfter'](_0x58acce){return this['posBefore'](_0x58acce)+_0x58acce['length'];}['sync'](_0x4cb6ba,_0x29cadb){if(0x2&this['flags']){let _0x50c73e,_0x443a67=this['dom'],_0x37eed7=null;for(let _0x2563cb of this['children']){if(0x7&_0x2563cb['flags']){if(!_0x2563cb['dom']&&(_0x50c73e=_0x37eed7?_0x37eed7['nextSibling']:_0x443a67['firstChild'])){let _0x521db9=ContentView['get'](_0x50c73e);(!_0x521db9||!_0x521db9['parent']&&_0x521db9['canReuseDOM'](_0x2563cb))&&_0x2563cb['reuseDOM'](_0x50c73e);}_0x2563cb['sync'](_0x4cb6ba,_0x29cadb),_0x2563cb['flags']&=-0x8;}if(_0x50c73e=_0x37eed7?_0x37eed7['nextSibling']:_0x443a67['firstChild'],_0x29cadb&&!_0x29cadb['written']&&_0x29cadb['node']==_0x443a67&&_0x50c73e!=_0x2563cb['dom']&&(_0x29cadb['written']=!0x0),_0x2563cb['dom']['parentNode']==_0x443a67){for(;_0x50c73e&&_0x50c73e!=_0x2563cb['dom'];)_0x50c73e=rm$1(_0x50c73e);}else _0x443a67['insertBefore'](_0x2563cb['dom'],_0x50c73e);_0x37eed7=_0x2563cb['dom'];}for(_0x50c73e=_0x37eed7?_0x37eed7['nextSibling']:_0x443a67['firstChild'],_0x50c73e&&_0x29cadb&&_0x29cadb['node']==_0x443a67&&(_0x29cadb['written']=!0x0);_0x50c73e;)_0x50c73e=rm$1(_0x50c73e);}else{if(0x1&this['flags']){for(let _0x5c6e61 of this['children'])0x7&_0x5c6e61['flags']&&(_0x5c6e61['sync'](_0x4cb6ba,_0x29cadb),_0x5c6e61['flags']&=-0x8);}}}['reuseDOM'](_0x339cce){}['localPosFromDOM'](_0x3cde2a,_0x4d1e0e){let _0x316989;if(_0x3cde2a==this['dom'])_0x316989=this['dom']['childNodes'][_0x4d1e0e];else{let _0xadbe54=0x0==maxOffset(_0x3cde2a)?0x0:0x0==_0x4d1e0e?-0x1:0x1;for(;;){let _0xf63185=_0x3cde2a['parentNode'];if(_0xf63185==this['dom'])break;0x0==_0xadbe54&&_0xf63185['firstChild']!=_0xf63185['lastChild']&&(_0xadbe54=_0x3cde2a==_0xf63185['firstChild']?-0x1:0x1),_0x3cde2a=_0xf63185;}_0x316989=_0xadbe54<0x0?_0x3cde2a:_0x3cde2a['nextSibling'];}if(_0x316989==this['dom']['firstChild'])return 0x0;for(;_0x316989&&!ContentView['get'](_0x316989);)_0x316989=_0x316989['nextSibling'];if(!_0x316989)return this['length'];for(let _0x468762=0x0,_0x3ac767=0x0;;_0x468762++){let _0x534316=this['children'][_0x468762];if(_0x534316['dom']==_0x316989)return _0x3ac767;_0x3ac767+=_0x534316['length']+_0x534316['breakAfter'];}}['domBoundsAround'](_0x11879e,_0x3e72e7,_0x5f5368=0x0){let _0x27123c=-0x1,_0x391ada=-0x1,_0x28f5fc=-0x1,_0x4122a1=-0x1;for(let _0x5d95cf=0x0,_0x244daf=_0x5f5368,_0x134be1=_0x5f5368;_0x5d95cf<this['children']['length'];_0x5d95cf++){let _0x2eaa2e=this['children'][_0x5d95cf],_0x38fb05=_0x244daf+_0x2eaa2e['length'];if(_0x244daf<_0x11879e&&_0x38fb05>_0x3e72e7)return _0x2eaa2e['domBoundsAround'](_0x11879e,_0x3e72e7,_0x244daf);if(_0x38fb05>=_0x11879e&&-0x1==_0x27123c&&(_0x27123c=_0x5d95cf,_0x391ada=_0x244daf),_0x244daf>_0x3e72e7&&_0x2eaa2e['dom']['parentNode']==this['dom']){_0x28f5fc=_0x5d95cf,_0x4122a1=_0x134be1;break;}_0x134be1=_0x38fb05,_0x244daf=_0x38fb05+_0x2eaa2e['breakAfter'];}return{'from':_0x391ada,'to':_0x4122a1<0x0?_0x5f5368+this['length']:_0x4122a1,'startDOM':(_0x27123c?this['children'][_0x27123c-0x1]['dom']['nextSibling']:null)||this['dom']['firstChild'],'endDOM':_0x28f5fc<this['children']['length']&&_0x28f5fc>=0x0?this['children'][_0x28f5fc]['dom']:null};}['markDirty'](_0x2eff53=!0x1){this['flags']|=0x2,this['markParentsDirty'](_0x2eff53);}['markParentsDirty'](_0x3c6e46){for(let _0x5e0549=this['parent'];_0x5e0549;_0x5e0549=_0x5e0549['parent']){if(_0x3c6e46&&(_0x5e0549['flags']|=0x2),0x1&_0x5e0549['flags'])return;_0x5e0549['flags']|=0x1,_0x3c6e46=!0x1;}}['setParent'](_0x54e22f){this['parent']!=_0x54e22f&&(this['parent']=_0x54e22f,0x7&this['flags']&&this['markParentsDirty'](!0x0));}['setDOM'](_0x610947){this['dom']!=_0x610947&&(this['dom']&&(this['dom']['cmView']=null),this['dom']=_0x610947,_0x610947['cmView']=this);}get['rootView'](){for(let _0x3abd9b=this;;){let _0x16d121=_0x3abd9b['parent'];if(!_0x16d121)return _0x3abd9b;_0x3abd9b=_0x16d121;}}['replaceChildren'](_0x35cdb1,_0x2e4d78,_0x327a29=noChildren){this['markDirty']();for(let _0x14c97f=_0x35cdb1;_0x14c97f<_0x2e4d78;_0x14c97f++){let _0x23ea5e=this['children'][_0x14c97f];_0x23ea5e['parent']==this&&_0x327a29['indexOf'](_0x23ea5e)<0x0&&_0x23ea5e['destroy']();}_0x327a29['length']<0xfa?this['children']['splice'](_0x35cdb1,_0x2e4d78-_0x35cdb1,..._0x327a29):this['children']=[]['concat'](this['children']['slice'](0x0,_0x35cdb1),_0x327a29,this['children']['slice'](_0x2e4d78));for(let _0x275708=0x0;_0x275708<_0x327a29['length'];_0x275708++)_0x327a29[_0x275708]['setParent'](this);}['ignoreMutation'](_0x24ab0a){return!0x1;}['ignoreEvent'](_0x59c512){return!0x1;}['childCursor'](_0x2b56ed=this['length']){return new ChildCursor(this['children'],_0x2b56ed,this['children']['length']);}['childPos'](_0x613e50,_0x11a8d2=0x1){return this['childCursor']()['findPos'](_0x613e50,_0x11a8d2);}['toString'](){let _0x3675a2=this['constructor']['name']['replace']('View','');return _0x3675a2+(this['children']['length']?'('+this['children']['join']()+')':this['length']?'['+('Text'==_0x3675a2?this['text']:this['length'])+']':'')+(this['breakAfter']?'#':'');}static['get'](_0x40c3a1){return _0x40c3a1['cmView'];}get['isEditable'](){return!0x0;}get['isWidget'](){return!0x1;}get['isHidden'](){return!0x1;}['merge'](_0xbcefdd,_0x12870b,_0x2ef9fb,_0xb61732,_0x11b1cd,_0x6ea0c8){return!0x1;}['become'](_0x4adb4b){return!0x1;}['canReuseDOM'](_0x181a76){return _0x181a76['constructor']==this['constructor']&&!(0x8&(this['flags']|_0x181a76['flags']));}['getSide'](){return 0x0;}['destroy'](){for(let _0x383162 of this['children'])_0x383162['parent']==this&&_0x383162['destroy']();this['parent']=null;}}function rm$1(_0x190e11){let _0x16dd1e=_0x190e11['nextSibling'];return _0x190e11['parentNode']['removeChild'](_0x190e11),_0x16dd1e;}ContentView['prototype']['breakAfter']=0x0;class ChildCursor{constructor(_0x21ad94,_0x518063,_0x1ae7f1){this['children']=_0x21ad94,this['pos']=_0x518063,this['i']=_0x1ae7f1,this['off']=0x0;}['findPos'](_0x36013f,_0x64bbc9=0x1){for(;;){if(_0x36013f>this['pos']||_0x36013f==this['pos']&&(_0x64bbc9>0x0||0x0==this['i']||this['children'][this['i']-0x1]['breakAfter']))return this['off']=_0x36013f-this['pos'],this;let _0xcad06b=this['children'][--this['i']];this['pos']-=_0xcad06b['length']+_0xcad06b['breakAfter'];}}}function replaceRange(_0x447305,_0x4a6b69,_0x6258f9,_0x328774,_0x11a728,_0x3c6e4a,_0x381396,_0x2e6706,_0x31847b){let {children:_0x1cc33e}=_0x447305,_0x469fc2=_0x1cc33e['length']?_0x1cc33e[_0x4a6b69]:null,_0x1a19bc=_0x3c6e4a['length']?_0x3c6e4a[_0x3c6e4a['length']-0x1]:null,_0x3faac9=_0x1a19bc?_0x1a19bc['breakAfter']:_0x381396;if(!(_0x4a6b69==_0x328774&&_0x469fc2&&!_0x381396&&!_0x3faac9&&_0x3c6e4a['length']<0x2&&_0x469fc2['merge'](_0x6258f9,_0x11a728,_0x3c6e4a['length']?_0x1a19bc:null,0x0==_0x6258f9,_0x2e6706,_0x31847b))){if(_0x328774<_0x1cc33e['length']){let _0x39cac2=_0x1cc33e[_0x328774];_0x39cac2&&(_0x11a728<_0x39cac2['length']||_0x39cac2['breakAfter']&&(null==_0x1a19bc?void 0x0:_0x1a19bc['breakAfter']))?(_0x4a6b69==_0x328774&&(_0x39cac2=_0x39cac2['split'](_0x11a728),_0x11a728=0x0),!_0x3faac9&&_0x1a19bc&&_0x39cac2['merge'](0x0,_0x11a728,_0x1a19bc,!0x0,0x0,_0x31847b)?_0x3c6e4a[_0x3c6e4a['length']-0x1]=_0x39cac2:((_0x11a728||_0x39cac2['children']['length']&&!_0x39cac2['children'][0x0]['length'])&&_0x39cac2['merge'](0x0,_0x11a728,null,!0x1,0x0,_0x31847b),_0x3c6e4a['push'](_0x39cac2))):(null==_0x39cac2?void 0x0:_0x39cac2['breakAfter'])&&(_0x1a19bc?_0x1a19bc['breakAfter']=0x1:_0x381396=0x1),_0x328774++;}for(_0x469fc2&&(_0x469fc2['breakAfter']=_0x381396,_0x6258f9>0x0&&(!_0x381396&&_0x3c6e4a['length']&&_0x469fc2['merge'](_0x6258f9,_0x469fc2['length'],_0x3c6e4a[0x0],!0x1,_0x2e6706,0x0)?_0x469fc2['breakAfter']=_0x3c6e4a['shift']()['breakAfter']:(_0x6258f9<_0x469fc2['length']||_0x469fc2['children']['length']&&0x0==_0x469fc2['children'][_0x469fc2['children']['length']-0x1]['length'])&&_0x469fc2['merge'](_0x6258f9,_0x469fc2['length'],null,!0x1,_0x2e6706,0x0),_0x4a6b69++));_0x4a6b69<_0x328774&&_0x3c6e4a['length'];)if(_0x1cc33e[_0x328774-0x1]['become'](_0x3c6e4a[_0x3c6e4a['length']-0x1]))_0x328774--,_0x3c6e4a['pop'](),_0x31847b=_0x3c6e4a['length']?0x0:_0x2e6706;else{if(!_0x1cc33e[_0x4a6b69]['become'](_0x3c6e4a[0x0]))break;_0x4a6b69++,_0x3c6e4a['shift'](),_0x2e6706=_0x3c6e4a['length']?0x0:_0x31847b;}!_0x3c6e4a['length']&&_0x4a6b69&&_0x328774<_0x1cc33e['length']&&!_0x1cc33e[_0x4a6b69-0x1]['breakAfter']&&_0x1cc33e[_0x328774]['merge'](0x0,0x0,_0x1cc33e[_0x4a6b69-0x1],!0x1,_0x2e6706,_0x31847b)&&_0x4a6b69--,(_0x4a6b69<_0x328774||_0x3c6e4a['length'])&&_0x447305['replaceChildren'](_0x4a6b69,_0x328774,_0x3c6e4a);}}function mergeChildrenInto(_0xc55afc,_0x5e23c4,_0x4fbcd7,_0xe40966,_0x153311,_0x45b9f1){let _0x482972=_0xc55afc['childCursor'](),{i:_0x57d7c4,off:_0x511429}=_0x482972['findPos'](_0x4fbcd7,0x1),{i:_0x580f5c,off:_0x1d5878}=_0x482972['findPos'](_0x5e23c4,-0x1),_0xee50a1=_0x5e23c4-_0x4fbcd7;for(let _0x2e4c62 of _0xe40966)_0xee50a1+=_0x2e4c62['length'];_0xc55afc['length']+=_0xee50a1,replaceRange(_0xc55afc,_0x580f5c,_0x1d5878,_0x57d7c4,_0x511429,_0xe40966,0x0,_0x153311,_0x45b9f1);}const MaxJoinLen=0x100;class TextView extends ContentView{constructor(_0x37a72b){super(),this['text']=_0x37a72b;}get['length'](){return this['text']['length'];}['createDOM'](_0x264152){this['setDOM'](_0x264152||document['createTextNode'](this['text']));}['sync'](_0x50273a,_0x315095){this['dom']||this['createDOM'](),this['dom']['nodeValue']!=this['text']&&(_0x315095&&_0x315095['node']==this['dom']&&(_0x315095['written']=!0x0),this['dom']['nodeValue']=this['text']);}['reuseDOM'](_0x4c98be){0x3==_0x4c98be['nodeType']&&this['createDOM'](_0x4c98be);}['merge'](_0x282ff1,_0x120c6f,_0x5c565e){return!(0x8&this['flags']||_0x5c565e&&(!(_0x5c565e instanceof TextView)||this['length']-(_0x120c6f-_0x282ff1)+_0x5c565e['length']>MaxJoinLen||0x8&_0x5c565e['flags']))&&(this['text']=this['text']['slice'](0x0,_0x282ff1)+(_0x5c565e?_0x5c565e['text']:'')+this['text']['slice'](_0x120c6f),this['markDirty'](),!0x0);}['split'](_0x1f4578){let _0x5c5dbf=new TextView(this['text']['slice'](_0x1f4578));return this['text']=this['text']['slice'](0x0,_0x1f4578),this['markDirty'](),_0x5c5dbf['flags']|=0x8&this['flags'],_0x5c5dbf;}['localPosFromDOM'](_0x34a0c3,_0xc85caf){return _0x34a0c3==this['dom']?_0xc85caf:_0xc85caf?this['text']['length']:0x0;}['domAtPos'](_0x162f48){return new DOMPos(this['dom'],_0x162f48);}['domBoundsAround'](_0x1d43d0,_0x4f4bc8,_0xcb7d1d){return{'from':_0xcb7d1d,'to':_0xcb7d1d+this['length'],'startDOM':this['dom'],'endDOM':this['dom']['nextSibling']};}['coordsAt'](_0xd9d930,_0x228313){return textCoords(this['dom'],_0xd9d930,_0x228313);}}class MarkView extends ContentView{constructor(_0x121ab7,_0x135f1f=[],_0x551941=0x0){super(),this['mark']=_0x121ab7,this['children']=_0x135f1f,this['length']=_0x551941;for(let _0x19958d of _0x135f1f)_0x19958d['setParent'](this);}['setAttrs'](_0xd48183){if(clearAttributes(_0xd48183),this['mark']['class']&&(_0xd48183['className']=this['mark']['class']),this['mark']['attrs']){for(let _0x478b3e in this['mark']['attrs'])_0xd48183['setAttribute'](_0x478b3e,this['mark']['attrs'][_0x478b3e]);}return _0xd48183;}['canReuseDOM'](_0x53363a){return super['canReuseDOM'](_0x53363a)&&!(0x8&(this['flags']|_0x53363a['flags']));}['reuseDOM'](_0x4ce7c8){_0x4ce7c8['nodeName']==this['mark']['tagName']['toUpperCase']()&&(this['setDOM'](_0x4ce7c8),this['flags']|=0x6);}['sync'](_0x10bf65,_0x36cc00){this['dom']?0x4&this['flags']&&this['setAttrs'](this['dom']):this['setDOM'](this['setAttrs'](document['createElement'](this['mark']['tagName']))),super['sync'](_0x10bf65,_0x36cc00);}['merge'](_0x2e4fd4,_0x2b1fa4,_0x449485,_0x229d1e,_0x1e0a68,_0x2ab63c){return(!_0x449485||!(!(_0x449485 instanceof MarkView&&_0x449485['mark']['eq'](this['mark']))||_0x2e4fd4&&_0x1e0a68<=0x0||_0x2b1fa4<this['length']&&_0x2ab63c<=0x0))&&(mergeChildrenInto(this,_0x2e4fd4,_0x2b1fa4,_0x449485?_0x449485['children']['slice']():[],_0x1e0a68-0x1,_0x2ab63c-0x1),this['markDirty'](),!0x0);}['split'](_0x575824){let _0x15beae=[],_0x39cb0d=0x0,_0x3a3b7e=-0x1,_0x31fec0=0x0;for(let _0x4aa9fb of this['children']){let _0x700a65=_0x39cb0d+_0x4aa9fb['length'];_0x700a65>_0x575824&&_0x15beae['push'](_0x39cb0d<_0x575824?_0x4aa9fb['split'](_0x575824-_0x39cb0d):_0x4aa9fb),_0x3a3b7e<0x0&&_0x39cb0d>=_0x575824&&(_0x3a3b7e=_0x31fec0),_0x39cb0d=_0x700a65,_0x31fec0++;}let _0x51f46b=this['length']-_0x575824;return this['length']=_0x575824,_0x3a3b7e>-0x1&&(this['children']['length']=_0x3a3b7e,this['markDirty']()),new MarkView(this['mark'],_0x15beae,_0x51f46b);}['domAtPos'](_0x4443ba){return inlineDOMAtPos(this,_0x4443ba);}['coordsAt'](_0x5aafce,_0x326b04){return coordsInChildren(this,_0x5aafce,_0x326b04);}}function textCoords(_0x452d13,_0x510181,_0x2115bb){let _0x29c664=_0x452d13['nodeValue']['length'];_0x510181>_0x29c664&&(_0x510181=_0x29c664);let _0x261e05=_0x510181,_0x2bb798=_0x510181,_0x1956d7=0x0;0x0==_0x510181&&_0x2115bb<0x0||_0x510181==_0x29c664&&_0x2115bb>=0x0?browser['chrome']||browser['gecko']||(_0x510181?(_0x261e05--,_0x1956d7=0x1):_0x2bb798<_0x29c664&&(_0x2bb798++,_0x1956d7=-0x1)):_0x2115bb<0x0?_0x261e05--:_0x2bb798<_0x29c664&&_0x2bb798++;let _0x7cf9c9=textRange(_0x452d13,_0x261e05,_0x2bb798)['getClientRects']();if(!_0x7cf9c9['length'])return null;let _0x4d02f3=_0x7cf9c9[(_0x1956d7?_0x1956d7<0x0:_0x2115bb>=0x0)?0x0:_0x7cf9c9['length']-0x1];return browser['safari']&&!_0x1956d7&&0x0==_0x4d02f3['width']&&(_0x4d02f3=Array['prototype']['find']['call'](_0x7cf9c9,_0x29a189=>_0x29a189['width'])||_0x4d02f3),_0x1956d7?flattenRect(_0x4d02f3,_0x1956d7<0x0):_0x4d02f3||null;}class WidgetView extends ContentView{static['create'](_0xf627ea,_0x5c435c,_0x224d11){return new WidgetView(_0xf627ea,_0x5c435c,_0x224d11);}constructor(_0x2235b3,_0x2befe2,_0x4e180d){super(),this['widget']=_0x2235b3,this['length']=_0x2befe2,this['side']=_0x4e180d,this['prevWidget']=null;}['split'](_0x2101d5){let _0x5f1124=WidgetView['create'](this['widget'],this['length']-_0x2101d5,this['side']);return this['length']-=_0x2101d5,_0x5f1124;}['sync'](_0x312bc6){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x312bc6)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x312bc6)),this['widget']['editable']||(this['dom']['contentEditable']='false'));}['getSide'](){return this['side'];}['merge'](_0x2432ba,_0x5b69a5,_0x5ed79d,_0x2e0c78,_0x26355b,_0x4ba938){return!(_0x5ed79d&&(!(_0x5ed79d instanceof WidgetView&&this['widget']['compare'](_0x5ed79d['widget']))||_0x2432ba>0x0&&_0x26355b<=0x0||_0x5b69a5<this['length']&&_0x4ba938<=0x0))&&(this['length']=_0x2432ba+(_0x5ed79d?_0x5ed79d['length']:0x0)+(this['length']-_0x5b69a5),!0x0);}['become'](_0x4a1e4c){return _0x4a1e4c instanceof WidgetView&&_0x4a1e4c['side']==this['side']&&this['widget']['constructor']==_0x4a1e4c['widget']['constructor']&&(this['widget']['compare'](_0x4a1e4c['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x4a1e4c['widget'],this['length']=_0x4a1e4c['length'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x3093c3){return this['widget']['ignoreEvent'](_0x3093c3);}get['overrideDOMText'](){if(0x0==this['length'])return Text['empty'];let _0x48691f=this;for(;_0x48691f['parent'];)_0x48691f=_0x48691f['parent'];let {view:_0x3a2a10}=_0x48691f,_0x37398c=_0x3a2a10&&_0x3a2a10['state']['doc'],_0x2e1d95=this['posAtStart'];return _0x37398c?_0x37398c['slice'](_0x2e1d95,_0x2e1d95+this['length']):Text['empty'];}['domAtPos'](_0x2b7b0b){return(this['length']?0x0==_0x2b7b0b:this['side']>0x0)?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0x2b7b0b==this['length']);}['domBoundsAround'](){return null;}['coordsAt'](_0x5e535a,_0x18ff32){let _0x2181a9=this['widget']['coordsAt'](this['dom'],_0x5e535a,_0x18ff32);if(_0x2181a9)return _0x2181a9;let _0x118c3d=this['dom']['getClientRects'](),_0x4cbabe=null;if(!_0x118c3d['length'])return null;let _0x5c0c64=this['side']?this['side']<0x0:_0x5e535a>0x0;for(let _0x2958fa=_0x5c0c64?_0x118c3d['length']-0x1:0x0;_0x4cbabe=_0x118c3d[_0x2958fa],!(_0x5e535a>0x0?0x0==_0x2958fa:_0x2958fa==_0x118c3d['length']-0x1||_0x4cbabe['top']<_0x4cbabe['bottom']);_0x2958fa+=_0x5c0c64?-0x1:0x1);return flattenRect(_0x4cbabe,!_0x5c0c64);}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(_0x23afe3){super(),this['side']=_0x23afe3;}get['length'](){return 0x0;}['merge'](){return!0x1;}['become'](_0x17f8c0){return _0x17f8c0 instanceof WidgetBufferView&&_0x17f8c0['side']==this['side'];}['split'](){return new WidgetBufferView(this['side']);}['sync'](){if(!this['dom']){let _0xa097ed=document['createElement']('img');_0xa097ed['className']='cm-widgetBuffer',_0xa097ed['setAttribute']('aria-hidden','true'),this['setDOM'](_0xa097ed);}}['getSide'](){return this['side'];}['domAtPos'](_0x3656c8){return this['side']>0x0?DOMPos['before'](this['dom']):DOMPos['after'](this['dom']);}['localPosFromDOM'](){return 0x0;}['domBoundsAround'](){return null;}['coordsAt'](_0x1da801){return this['dom']['getBoundingClientRect']();}get['overrideDOMText'](){return Text['empty'];}get['isHidden'](){return!0x0;}}function inlineDOMAtPos(_0x554b1c,_0x511bb1){let _0x4002a9=_0x554b1c['dom'],{children:_0x35e59e}=_0x554b1c,_0x239f17=0x0;for(let _0x2e1043=0x0;_0x239f17<_0x35e59e['length'];_0x239f17++){let _0x238e84=_0x35e59e[_0x239f17],_0x4802c2=_0x2e1043+_0x238e84['length'];if(!(_0x4802c2==_0x2e1043&&_0x238e84['getSide']()<=0x0)){if(_0x511bb1>_0x2e1043&&_0x511bb1<_0x4802c2&&_0x238e84['dom']['parentNode']==_0x4002a9)return _0x238e84['domAtPos'](_0x511bb1-_0x2e1043);if(_0x511bb1<=_0x2e1043)break;_0x2e1043=_0x4802c2;}}for(let _0x4a3394=_0x239f17;_0x4a3394>0x0;_0x4a3394--){let _0x1b3652=_0x35e59e[_0x4a3394-0x1];if(_0x1b3652['dom']['parentNode']==_0x4002a9)return _0x1b3652['domAtPos'](_0x1b3652['length']);}for(let _0x90704a=_0x239f17;_0x90704a<_0x35e59e['length'];_0x90704a++){let _0x3f025d=_0x35e59e[_0x90704a];if(_0x3f025d['dom']['parentNode']==_0x4002a9)return _0x3f025d['domAtPos'](0x0);}return new DOMPos(_0x4002a9,0x0);}function joinInlineInto(_0x3f3bfc,_0x12026d,_0x5cc5b2){let _0x460985,{children:_0xca0144}=_0x3f3bfc;_0x5cc5b2>0x0&&_0x12026d instanceof MarkView&&_0xca0144['length']&&(_0x460985=_0xca0144[_0xca0144['length']-0x1])instanceof MarkView&&_0x460985['mark']['eq'](_0x12026d['mark'])?joinInlineInto(_0x460985,_0x12026d['children'][0x0],_0x5cc5b2-0x1):(_0xca0144['push'](_0x12026d),_0x12026d['setParent'](_0x3f3bfc)),_0x3f3bfc['length']+=_0x12026d['length'];}function coordsInChildren(_0x5858b2,_0x45d24b,_0x28a31e){let _0x39ec68=null,_0x140de5=-0x1,_0x23c7e3=null,_0x3a652b=-0x1;!function _0x51b37e(_0x316504,_0x242e7d){for(let _0x31c86c=0x0,_0x3d9e71=0x0;_0x31c86c<_0x316504['children']['length']&&_0x3d9e71<=_0x242e7d;_0x31c86c++){let _0x372bea=_0x316504['children'][_0x31c86c],_0x471471=_0x3d9e71+_0x372bea['length'];_0x471471>=_0x242e7d&&(_0x372bea['children']['length']?_0x51b37e(_0x372bea,_0x242e7d-_0x3d9e71):(!_0x23c7e3||_0x23c7e3['isHidden']&&(_0x28a31e>0x0||onSameLine(_0x23c7e3,_0x372bea)))&&(_0x471471>_0x242e7d||_0x3d9e71==_0x471471&&_0x372bea['getSide']()>0x0)?(_0x23c7e3=_0x372bea,_0x3a652b=_0x242e7d-_0x3d9e71):(_0x3d9e71<_0x242e7d||_0x3d9e71==_0x471471&&_0x372bea['getSide']()<0x0&&!_0x372bea['isHidden'])&&(_0x39ec68=_0x372bea,_0x140de5=_0x242e7d-_0x3d9e71)),_0x3d9e71=_0x471471;}}(_0x5858b2,_0x45d24b);let _0x7c2172=(_0x28a31e<0x0?_0x39ec68:_0x23c7e3)||_0x39ec68||_0x23c7e3;return _0x7c2172?_0x7c2172['coordsAt'](Math['max'](0x0,_0x7c2172==_0x39ec68?_0x140de5:_0x3a652b),_0x28a31e):fallbackRect(_0x5858b2);}function fallbackRect(_0x3204bd){let _0x34c097=_0x3204bd['dom']['lastChild'];if(!_0x34c097)return _0x3204bd['dom']['getBoundingClientRect']();let _0x5b64dd=clientRectsFor(_0x34c097);return _0x5b64dd[_0x5b64dd['length']-0x1]||null;}function onSameLine(_0x720e54,_0x337aeb){let _0xf838f6=_0x720e54['coordsAt'](0x0,0x1),_0x168dc6=_0x337aeb['coordsAt'](0x0,0x1);return _0xf838f6&&_0x168dc6&&_0x168dc6['top']<_0xf838f6['bottom'];}function combineAttrs(_0x34fcf9,_0xc4c269){for(let _0x343684 in _0x34fcf9)'class'==_0x343684&&_0xc4c269['class']?_0xc4c269['class']+='\x20'+_0x34fcf9['class']:'style'==_0x343684&&_0xc4c269['style']?_0xc4c269['style']+=';'+_0x34fcf9['style']:_0xc4c269[_0x343684]=_0x34fcf9[_0x343684];return _0xc4c269;}TextView['prototype']['children']=WidgetView['prototype']['children']=WidgetBufferView['prototype']['children']=noChildren;const noAttrs$1=Object['create'](null);function attrsEq(_0x57595b,_0x2a95df,_0x7b8d9b){if(_0x57595b==_0x2a95df)return!0x0;_0x57595b||(_0x57595b=noAttrs$1),_0x2a95df||(_0x2a95df=noAttrs$1);let _0x16ad7c=Object['keys'](_0x57595b),_0x3318d8=Object['keys'](_0x2a95df);if(_0x16ad7c['length']-(_0x7b8d9b&&_0x16ad7c['indexOf'](_0x7b8d9b)>-0x1?0x1:0x0)!=_0x3318d8['length']-(_0x7b8d9b&&_0x3318d8['indexOf'](_0x7b8d9b)>-0x1?0x1:0x0))return!0x1;for(let _0x594c22 of _0x16ad7c)if(_0x594c22!=_0x7b8d9b&&(-0x1==_0x3318d8['indexOf'](_0x594c22)||_0x57595b[_0x594c22]!==_0x2a95df[_0x594c22]))return!0x1;return!0x0;}function updateAttrs(_0x5cc550,_0x1f06fd,_0xec0877){let _0x4b1122=!0x1;if(_0x1f06fd){for(let _0x1cd226 in _0x1f06fd)_0xec0877&&_0x1cd226 in _0xec0877||(_0x4b1122=!0x0,'style'==_0x1cd226?_0x5cc550['style']['cssText']='':_0x5cc550['removeAttribute'](_0x1cd226));}if(_0xec0877){for(let _0xfc7b55 in _0xec0877)_0x1f06fd&&_0x1f06fd[_0xfc7b55]==_0xec0877[_0xfc7b55]||(_0x4b1122=!0x0,'style'==_0xfc7b55?_0x5cc550['style']['cssText']=_0xec0877[_0xfc7b55]:_0x5cc550['setAttribute'](_0xfc7b55,_0xec0877[_0xfc7b55]));}return _0x4b1122;}function getAttrs$1(_0x222f57){let _0x4375f8=Object['create'](null);for(let _0x14cdd9=0x0;_0x14cdd9<_0x222f57['attributes']['length'];_0x14cdd9++){let _0x56be85=_0x222f57['attributes'][_0x14cdd9];_0x4375f8[_0x56be85['name']]=_0x56be85['value'];}return _0x4375f8;}class WidgetType{['eq'](_0x3cf762){return!0x1;}['updateDOM'](_0x46175b,_0x57e1cd){return!0x1;}['compare'](_0x586db0){return this==_0x586db0||this['constructor']==_0x586db0['constructor']&&this['eq'](_0x586db0);}get['estimatedHeight'](){return-0x1;}get['lineBreaks'](){return 0x0;}['ignoreEvent'](_0x442cea){return!0x0;}['coordsAt'](_0x517005,_0x1bffb6,_0x44ab97){return null;}get['isHidden'](){return!0x1;}get['editable'](){return!0x1;}['destroy'](_0x4760d3){}}var BlockType=function(_0x65fdb4){return _0x65fdb4[_0x65fdb4['Text']=0x0]='Text',_0x65fdb4[_0x65fdb4['WidgetBefore']=0x1]='WidgetBefore',_0x65fdb4[_0x65fdb4['WidgetAfter']=0x2]='WidgetAfter',_0x65fdb4[_0x65fdb4['WidgetRange']=0x3]='WidgetRange',_0x65fdb4;}(BlockType||(BlockType={}));class Decoration extends RangeValue{constructor(_0x2c6434,_0x26ec6e,_0xaa8d02,_0x5d402f){super(),this['startSide']=_0x2c6434,this['endSide']=_0x26ec6e,this['widget']=_0xaa8d02,this['spec']=_0x5d402f;}get['heightRelevant'](){return!0x1;}static['mark'](_0x4c5c8e){return new MarkDecoration(_0x4c5c8e);}static['widget'](_0x26c061){let _0x3becf3=Math['max'](-0x2710,Math['min'](0x2710,_0x26c061['side']||0x0)),_0x3abbb8=!!_0x26c061['block'];return _0x3becf3+=_0x3abbb8&&!_0x26c061['inlineOrder']?_0x3becf3>0x0?0x11e1a300:-0x17d78400:_0x3becf3>0x0?0x5f5e100:-0x5f5e100,new PointDecoration(_0x26c061,_0x3becf3,_0x3becf3,_0x3abbb8,_0x26c061['widget']||null,!0x1);}static['replace'](_0x5e8885){let _0x3dacc8,_0x245377,_0x127d8e=!!_0x5e8885['block'];if(_0x5e8885['isBlockGap'])_0x3dacc8=-0x1dcd6500,_0x245377=0x17d78400;else{let {start:_0x32f14,end:_0x408443}=getInclusive(_0x5e8885,_0x127d8e);_0x3dacc8=(_0x32f14?_0x127d8e?-0x11e1a300:-0x1:0x1dcd6500)-0x1,_0x245377=0x1+(_0x408443?_0x127d8e?0xbebc200:0x1:-0x23c34600);}return new PointDecoration(_0x5e8885,_0x3dacc8,_0x245377,_0x127d8e,_0x5e8885['widget']||null,!0x0);}static['line'](_0x7894b8){return new LineDecoration(_0x7894b8);}static['set'](_0x2a9fd2,_0x40ecae=!0x1){return RangeSet['of'](_0x2a9fd2,_0x40ecae);}['hasHeight'](){return!!this['widget']&&this['widget']['estimatedHeight']>-0x1;}}Decoration['none']=RangeSet['empty'];class MarkDecoration extends Decoration{constructor(_0x38dbd0){let {start:_0x7ad347,end:_0x264921}=getInclusive(_0x38dbd0);super(_0x7ad347?-0x1:0x1dcd6500,_0x264921?0x1:-0x23c34600,null,_0x38dbd0),this['tagName']=_0x38dbd0['tagName']||'span',this['class']=_0x38dbd0['class']||'',this['attrs']=_0x38dbd0['attributes']||null;}['eq'](_0x11ecdb){var _0x1b15a2,_0x1c8102;return this==_0x11ecdb||_0x11ecdb instanceof MarkDecoration&&this['tagName']==_0x11ecdb['tagName']&&(this['class']||(null===(_0x1b15a2=this['attrs'])||void 0x0===_0x1b15a2?void 0x0:_0x1b15a2['class']))==(_0x11ecdb['class']||(null===(_0x1c8102=_0x11ecdb['attrs'])||void 0x0===_0x1c8102?void 0x0:_0x1c8102['class']))&&attrsEq(this['attrs'],_0x11ecdb['attrs'],'class');}['range'](_0x184f28,_0x1c96b7=_0x184f28){if(_0x184f28>=_0x1c96b7)throw new RangeError('Mark\x20decorations\x20may\x20not\x20be\x20empty');return super['range'](_0x184f28,_0x1c96b7);}}MarkDecoration['prototype']['point']=!0x1;class LineDecoration extends Decoration{constructor(_0x586fae){super(-0xbebc200,-0xbebc200,null,_0x586fae);}['eq'](_0x168e17){return _0x168e17 instanceof LineDecoration&&this['spec']['class']==_0x168e17['spec']['class']&&attrsEq(this['spec']['attributes'],_0x168e17['spec']['attributes']);}['range'](_0x265a18,_0x18cd3e=_0x265a18){if(_0x18cd3e!=_0x265a18)throw new RangeError('Line\x20decoration\x20ranges\x20must\x20be\x20zero-length');return super['range'](_0x265a18,_0x18cd3e);}}LineDecoration['prototype']['mapMode']=MapMode['TrackBefore'],LineDecoration['prototype']['point']=!0x0;class PointDecoration extends Decoration{constructor(_0x2b247c,_0xc59b1,_0x14e0bc,_0x352354,_0x1c6a85,_0x30bbe3){super(_0xc59b1,_0x14e0bc,_0x1c6a85,_0x2b247c),this['block']=_0x352354,this['isReplace']=_0x30bbe3,this['mapMode']=_0x352354?_0xc59b1<=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'](_0x1a3885){return _0x1a3885 instanceof PointDecoration&&widgetsEq(this['widget'],_0x1a3885['widget'])&&this['block']==_0x1a3885['block']&&this['startSide']==_0x1a3885['startSide']&&this['endSide']==_0x1a3885['endSide'];}['range'](_0x58bb19,_0x2aca9f=_0x58bb19){if(this['isReplace']&&(_0x58bb19>_0x2aca9f||_0x58bb19==_0x2aca9f&&this['startSide']>0x0&&this['endSide']<=0x0))throw new RangeError('Invalid\x20range\x20for\x20replacement\x20decoration');if(!this['isReplace']&&_0x2aca9f!=_0x58bb19)throw new RangeError('Widget\x20decorations\x20can\x20only\x20have\x20zero-length\x20ranges');return super['range'](_0x58bb19,_0x2aca9f);}}function getInclusive(_0x289f98,_0x37ddf9=!0x1){let {inclusiveStart:_0x3af745,inclusiveEnd:_0x31f5dc}=_0x289f98;return null==_0x3af745&&(_0x3af745=_0x289f98['inclusive']),null==_0x31f5dc&&(_0x31f5dc=_0x289f98['inclusive']),{'start':null!=_0x3af745?_0x3af745:_0x37ddf9,'end':null!=_0x31f5dc?_0x31f5dc:_0x37ddf9};}function widgetsEq(_0x1f4591,_0x50767c){return _0x1f4591==_0x50767c||!!(_0x1f4591&&_0x50767c&&_0x1f4591['compare'](_0x50767c));}function addRange(_0x1776ea,_0x30ccd2,_0x1bcf6f,_0xb67a2f=0x0){let _0x2c2401=_0x1bcf6f['length']-0x1;_0x2c2401>=0x0&&_0x1bcf6f[_0x2c2401]+_0xb67a2f>=_0x1776ea?_0x1bcf6f[_0x2c2401]=Math['max'](_0x1bcf6f[_0x2c2401],_0x30ccd2):_0x1bcf6f['push'](_0x1776ea,_0x30ccd2);}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'](_0x14f4ef,_0x101f96,_0x231a13,_0x786032,_0x2eaa80,_0x2ff085){if(_0x231a13){if(!(_0x231a13 instanceof LineView))return!0x1;this['dom']||_0x231a13['transferDOM'](this);}return _0x786032&&this['setDeco'](_0x231a13?_0x231a13['attrs']:null),mergeChildrenInto(this,_0x14f4ef,_0x101f96,_0x231a13?_0x231a13['children']['slice']():[],_0x2eaa80,_0x2ff085),!0x0;}['split'](_0x431f15){let _0x2385e6=new LineView();if(_0x2385e6['breakAfter']=this['breakAfter'],0x0==this['length'])return _0x2385e6;let {i:_0x117d23,off:_0x4418e6}=this['childPos'](_0x431f15);_0x4418e6&&(_0x2385e6['append'](this['children'][_0x117d23]['split'](_0x4418e6),0x0),this['children'][_0x117d23]['merge'](_0x4418e6,this['children'][_0x117d23]['length'],null,!0x1,0x0,0x0),_0x117d23++);for(let _0x3eaa26=_0x117d23;_0x3eaa26<this['children']['length'];_0x3eaa26++)_0x2385e6['append'](this['children'][_0x3eaa26],0x0);for(;_0x117d23>0x0&&0x0==this['children'][_0x117d23-0x1]['length'];)this['children'][--_0x117d23]['destroy']();return this['children']['length']=_0x117d23,this['markDirty'](),this['length']=_0x431f15,_0x2385e6;}['transferDOM'](_0x3ed9d4){this['dom']&&(this['markDirty'](),_0x3ed9d4['setDOM'](this['dom']),_0x3ed9d4['prevAttrs']=void 0x0===this['prevAttrs']?this['attrs']:this['prevAttrs'],this['prevAttrs']=void 0x0,this['dom']=null);}['setDeco'](_0x409375){attrsEq(this['attrs'],_0x409375)||(this['dom']&&(this['prevAttrs']=this['attrs'],this['markDirty']()),this['attrs']=_0x409375);}['append'](_0x4b1e7c,_0x4390de){joinInlineInto(this,_0x4b1e7c,_0x4390de);}['addLineDeco'](_0x58c228){let _0x36a543=_0x58c228['spec']['attributes'],_0x52dace=_0x58c228['spec']['class'];_0x36a543&&(this['attrs']=combineAttrs(_0x36a543,this['attrs']||{})),_0x52dace&&(this['attrs']=combineAttrs({'class':_0x52dace},this['attrs']||{}));}['domAtPos'](_0x4cc3d0){return inlineDOMAtPos(this,_0x4cc3d0);}['reuseDOM'](_0x55cc32){'DIV'==_0x55cc32['nodeName']&&(this['setDOM'](_0x55cc32),this['flags']|=0x6);}['sync'](_0x1b774b,_0x1e0049){var _0x49b2ef;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'](_0x1b774b,_0x1e0049);let _0x5eadbf=this['dom']['lastChild'];for(;_0x5eadbf&&ContentView['get'](_0x5eadbf)instanceof MarkView;)_0x5eadbf=_0x5eadbf['lastChild'];if(!(_0x5eadbf&&this['length']&&('BR'==_0x5eadbf['nodeName']||0x0!=(null===(_0x49b2ef=ContentView['get'](_0x5eadbf))||void 0x0===_0x49b2ef?void 0x0:_0x49b2ef['isEditable'])||browser['ios']&&this['children']['some'](_0x4cc41f=>_0x4cc41f instanceof TextView)))){let _0x555f0f=document['createElement']('BR');_0x555f0f['cmIgnore']=!0x0,this['dom']['appendChild'](_0x555f0f);}}['measureTextSize'](){if(0x0==this['children']['length']||this['length']>0x14)return null;let _0xff1de,_0xa2243=0x0;for(let _0x164771 of this['children']){if(!(_0x164771 instanceof TextView)||/[^ -~]/['test'](_0x164771['text']))return null;let _0x34cbe2=clientRectsFor(_0x164771['dom']);if(0x1!=_0x34cbe2['length'])return null;_0xa2243+=_0x34cbe2[0x0]['width'],_0xff1de=_0x34cbe2[0x0]['height'];}return _0xa2243?{'lineHeight':this['dom']['getBoundingClientRect']()['height'],'charWidth':_0xa2243/this['length'],'textHeight':_0xff1de}:null;}['coordsAt'](_0x506974,_0x209a37){let _0x178c1e=coordsInChildren(this,_0x506974,_0x209a37);if(!this['children']['length']&&_0x178c1e&&this['parent']){let {heightOracle:_0x329969}=this['parent']['view']['viewState'],_0x47fc1e=_0x178c1e['bottom']-_0x178c1e['top'];if(Math['abs'](_0x47fc1e-_0x329969['lineHeight'])<0x2&&_0x329969['textHeight']<_0x47fc1e){let _0x4dd714=(_0x47fc1e-_0x329969['textHeight'])/0x2;return{'top':_0x178c1e['top']+_0x4dd714,'bottom':_0x178c1e['bottom']-_0x4dd714,'left':_0x178c1e['left'],'right':_0x178c1e['left']};}}return _0x178c1e;}['become'](_0x2ae608){return _0x2ae608 instanceof LineView&&0x0==this['children']['length']&&0x0==_0x2ae608['children']['length']&&attrsEq(this['attrs'],_0x2ae608['attrs'])&&this['breakAfter']==_0x2ae608['breakAfter'];}['covers'](){return!0x0;}static['find'](_0x264644,_0x2672fe){for(let _0x78c336=0x0,_0x334fda=0x0;_0x78c336<_0x264644['children']['length'];_0x78c336++){let _0x130c9b=_0x264644['children'][_0x78c336],_0x204072=_0x334fda+_0x130c9b['length'];if(_0x204072>=_0x2672fe){if(_0x130c9b instanceof LineView)return _0x130c9b;if(_0x204072>_0x2672fe)break;}_0x334fda=_0x204072+_0x130c9b['breakAfter'];}return null;}}class BlockWidgetView extends ContentView{constructor(_0x991800,_0x4343e6,_0x463797){super(),this['widget']=_0x991800,this['length']=_0x4343e6,this['deco']=_0x463797,this['breakAfter']=0x0,this['prevWidget']=null;}['merge'](_0x2e95c8,_0x3b5786,_0x496df3,_0x437026,_0x422ec6,_0x2c4e2d){return!(_0x496df3&&(!(_0x496df3 instanceof BlockWidgetView&&this['widget']['compare'](_0x496df3['widget']))||_0x2e95c8>0x0&&_0x422ec6<=0x0||_0x3b5786<this['length']&&_0x2c4e2d<=0x0))&&(this['length']=_0x2e95c8+(_0x496df3?_0x496df3['length']:0x0)+(this['length']-_0x3b5786),!0x0);}['domAtPos'](_0x401974){return 0x0==_0x401974?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0x401974==this['length']);}['split'](_0x275cea){let _0x3f9cdf=this['length']-_0x275cea;this['length']=_0x275cea;let _0x39c9f0=new BlockWidgetView(this['widget'],_0x3f9cdf,this['deco']);return _0x39c9f0['breakAfter']=this['breakAfter'],_0x39c9f0;}get['children'](){return noChildren;}['sync'](_0x132c2d){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x132c2d)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x132c2d)),this['widget']['editable']||(this['dom']['contentEditable']='false'));}get['overrideDOMText'](){return this['parent']?this['parent']['view']['state']['doc']['slice'](this['posAtStart'],this['posAtEnd']):Text['empty'];}['domBoundsAround'](){return null;}['become'](_0x39dd6c){return _0x39dd6c instanceof BlockWidgetView&&_0x39dd6c['widget']['constructor']==this['widget']['constructor']&&(_0x39dd6c['widget']['compare'](this['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x39dd6c['widget'],this['length']=_0x39dd6c['length'],this['deco']=_0x39dd6c['deco'],this['breakAfter']=_0x39dd6c['breakAfter'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x3a5cae){return this['widget']['ignoreEvent'](_0x3a5cae);}get['isEditable'](){return!0x1;}get['isWidget'](){return!0x0;}['coordsAt'](_0x4b24d5,_0x509827){let _0xd6a97e=this['widget']['coordsAt'](this['dom'],_0x4b24d5,_0x509827);return _0xd6a97e||(this['widget']instanceof BlockGapWidget?null:flattenRect(this['dom']['getBoundingClientRect'](),this['length']?0x0==_0x4b24d5:_0x509827<=0x0));}['destroy'](){super['destroy'](),this['dom']&&this['widget']['destroy'](this['dom']);}['covers'](_0xd96c72){let {startSide:_0x12ecbc,endSide:_0x342641}=this['deco'];return _0x12ecbc!=_0x342641&&(_0xd96c72<0x0?_0x12ecbc<0x0:_0x342641>0x0);}}class BlockGapWidget extends WidgetType{constructor(_0x2ca421){super(),this['height']=_0x2ca421;}['toDOM'](){let _0x3136c8=document['createElement']('div');return _0x3136c8['className']='cm-gap',this['updateDOM'](_0x3136c8),_0x3136c8;}['eq'](_0x4eeae2){return _0x4eeae2['height']==this['height'];}['updateDOM'](_0x39e23a){return _0x39e23a['style']['height']=this['height']+'px',!0x0;}get['editable'](){return!0x0;}get['estimatedHeight'](){return this['height'];}['ignoreEvent'](){return!0x1;}}class ContentBuilder{constructor(_0x30b32b,_0x4e16db,_0x61f651,_0x1d0666){this['doc']=_0x30b32b,this['pos']=_0x4e16db,this['end']=_0x61f651,this['disallowBlockEffectsFor']=_0x1d0666,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']=_0x30b32b['iter'](),this['skip']=_0x4e16db;}['posCovered'](){if(0x0==this['content']['length'])return!this['breakAtStart']&&this['doc']['lineAt'](this['pos'])['from']!=this['pos'];let _0x4307e8=this['content'][this['content']['length']-0x1];return!(_0x4307e8['breakAfter']||_0x4307e8 instanceof BlockWidgetView&&_0x4307e8['deco']['endSide']<0x0);}['getLine'](){return this['curLine']||(this['content']['push'](this['curLine']=new LineView()),this['atCursorPos']=!0x0),this['curLine'];}['flushBuffer'](_0x4e649d=this['bufferMarks']){this['pendingBuffer']&&(this['curLine']['append'](wrapMarks(new WidgetBufferView(-0x1),_0x4e649d),_0x4e649d['length']),this['pendingBuffer']=0x0);}['addBlockWidget'](_0x54ae47){this['flushBuffer'](),this['curLine']=null,this['content']['push'](_0x54ae47);}['finish'](_0x3a89a8){this['pendingBuffer']&&_0x3a89a8<=this['bufferMarks']['length']?this['flushBuffer']():this['pendingBuffer']=0x0,this['posCovered']()||_0x3a89a8&&this['content']['length']&&this['content'][this['content']['length']-0x1]instanceof BlockWidgetView||this['getLine']();}['buildText'](_0x26ba24,_0x46b027,_0xec785e){for(;_0x26ba24>0x0;){if(this['textOff']==this['text']['length']){let {value:_0x1bb9a4,lineBreak:_0x5c553b,done:_0x2b68c1}=this['cursor']['next'](this['skip']);if(this['skip']=0x0,_0x2b68c1)throw new Error('Ran\x20out\x20of\x20text\x20content\x20when\x20drawing\x20inline\x20views');if(_0x5c553b){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,_0x26ba24--;continue;}this['text']=_0x1bb9a4,this['textOff']=0x0;}let _0x4aefc3=Math['min'](this['text']['length']-this['textOff'],_0x26ba24),_0x2ba74e=Math['min'](_0x4aefc3,0x200);this['flushBuffer'](_0x46b027['slice'](_0x46b027['length']-_0xec785e)),this['getLine']()['append'](wrapMarks(new TextView(this['text']['slice'](this['textOff'],this['textOff']+_0x2ba74e)),_0x46b027),_0xec785e),this['atCursorPos']=!0x0,this['textOff']+=_0x2ba74e,_0x26ba24-=_0x2ba74e,_0xec785e=_0x4aefc3<=_0x2ba74e?0x0:_0x46b027['length'];}}['span'](_0x3da692,_0x4203c3,_0x57c776,_0x59cce8){this['buildText'](_0x4203c3-_0x3da692,_0x57c776,_0x59cce8),this['pos']=_0x4203c3,this['openStart']<0x0&&(this['openStart']=_0x59cce8);}['point'](_0x2f7bba,_0x1cc3eb,_0x38720d,_0x4e7983,_0x4a1a4d,_0x5590ba){if(this['disallowBlockEffectsFor'][_0x5590ba]&&_0x38720d instanceof PointDecoration){if(_0x38720d['block'])throw new RangeError('Block\x20decorations\x20may\x20not\x20be\x20specified\x20via\x20plugins');if(_0x1cc3eb>this['doc']['lineAt'](this['pos'])['to'])throw new RangeError('Decorations\x20that\x20replace\x20line\x20breaks\x20may\x20not\x20be\x20specified\x20via\x20plugins');}let _0x2a3ee4=_0x1cc3eb-_0x2f7bba;if(_0x38720d instanceof PointDecoration){if(_0x38720d['block'])_0x38720d['startSide']>0x0&&!this['posCovered']()&&this['getLine'](),this['addBlockWidget'](new BlockWidgetView(_0x38720d['widget']||NullWidget['block'],_0x2a3ee4,_0x38720d));else{let _0x311989=WidgetView['create'](_0x38720d['widget']||NullWidget['inline'],_0x2a3ee4,_0x2a3ee4?0x0:_0x38720d['startSide']),_0x1bbeda=this['atCursorPos']&&!_0x311989['isEditable']&&_0x4a1a4d<=_0x4e7983['length']&&(_0x2f7bba<_0x1cc3eb||_0x38720d['startSide']>0x0),_0x29506c=!_0x311989['isEditable']&&(_0x2f7bba<_0x1cc3eb||_0x4a1a4d>_0x4e7983['length']||_0x38720d['startSide']<=0x0),_0x5223af=this['getLine']();0x2!=this['pendingBuffer']||_0x1bbeda||_0x311989['isEditable']||(this['pendingBuffer']=0x0),this['flushBuffer'](_0x4e7983),_0x1bbeda&&(_0x5223af['append'](wrapMarks(new WidgetBufferView(0x1),_0x4e7983),_0x4a1a4d),_0x4a1a4d=_0x4e7983['length']+Math['max'](0x0,_0x4a1a4d-_0x4e7983['length'])),_0x5223af['append'](wrapMarks(_0x311989,_0x4e7983),_0x4a1a4d),this['atCursorPos']=_0x29506c,this['pendingBuffer']=_0x29506c?_0x2f7bba<_0x1cc3eb||_0x4a1a4d>_0x4e7983['length']?0x1:0x2:0x0,this['pendingBuffer']&&(this['bufferMarks']=_0x4e7983['slice']());}}else this['doc']['lineAt'](this['pos'])['from']==this['pos']&&this['getLine']()['addLineDeco'](_0x38720d);_0x2a3ee4&&(this['textOff']+_0x2a3ee4<=this['text']['length']?this['textOff']+=_0x2a3ee4:(this['skip']+=_0x2a3ee4-(this['text']['length']-this['textOff']),this['text']='',this['textOff']=0x0),this['pos']=_0x1cc3eb),this['openStart']<0x0&&(this['openStart']=_0x4a1a4d);}static['build'](_0x1e6bb3,_0x1d2f24,_0x14003c,_0x8d6879,_0xa6aa84){let _0x5e524e=new ContentBuilder(_0x1e6bb3,_0x1d2f24,_0x14003c,_0xa6aa84);return _0x5e524e['openEnd']=RangeSet['spans'](_0x8d6879,_0x1d2f24,_0x14003c,_0x5e524e),_0x5e524e['openStart']<0x0&&(_0x5e524e['openStart']=_0x5e524e['openEnd']),_0x5e524e['finish'](_0x5e524e['openEnd']),_0x5e524e;}}function wrapMarks(_0x56b05c,_0x1e95d7){for(let _0x1f9838 of _0x1e95d7)_0x56b05c=new MarkView(_0x1f9838,[_0x56b05c],_0x56b05c['length']);return _0x56b05c;}class NullWidget extends WidgetType{constructor(_0x2df74e){super(),this['tag']=_0x2df74e;}['eq'](_0x121c04){return _0x121c04['tag']==this['tag'];}['toDOM'](){return document['createElement'](this['tag']);}['updateDOM'](_0x774cc){return _0x774cc['nodeName']['toLowerCase']()==this['tag'];}get['isHidden'](){return!0x0;}}NullWidget['inline']=new NullWidget('span'),NullWidget['block']=new NullWidget('div');var Direction=function(_0x120b9f){return _0x120b9f[_0x120b9f['LTR']=0x0]='LTR',_0x120b9f[_0x120b9f['RTL']=0x1]='RTL',_0x120b9f;}(Direction||(Direction={}));const LTR=Direction['LTR'],RTL=Direction['RTL'];function dec(_0x170726){let _0x1268d2=[];for(let _0x441d1f=0x0;_0x441d1f<_0x170726['length'];_0x441d1f++)_0x1268d2['push'](0x1<<+_0x170726[_0x441d1f]);return _0x1268d2;}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(_0x5ac6f4){return _0x5ac6f4<=0xf7?LowTypes[_0x5ac6f4]:0x590<=_0x5ac6f4&&_0x5ac6f4<=0x5f4?0x2:0x600<=_0x5ac6f4&&_0x5ac6f4<=0x6f9?ArabicTypes[_0x5ac6f4-0x600]:0x6ee<=_0x5ac6f4&&_0x5ac6f4<=0x8ac?0x4:0x2000<=_0x5ac6f4&&_0x5ac6f4<=0x200c?0x100:0xfb50<=_0x5ac6f4&&_0x5ac6f4<=0xfdff?0x4:0x1;}const BidiRE=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class BidiSpan{get['dir'](){return this['level']%0x2?RTL:LTR;}constructor(_0x12db8e,_0x45081f,_0x44d8ba){this['from']=_0x12db8e,this['to']=_0x45081f,this['level']=_0x44d8ba;}['side'](_0x5a5b84,_0x4ee04d){return this['dir']==_0x4ee04d==_0x5a5b84?this['to']:this['from'];}['forward'](_0x1e94c5,_0x5bf885){return _0x1e94c5==(this['dir']==_0x5bf885);}static['find'](_0x751b27,_0x32ebd2,_0x556414,_0x221b9d){let _0x217345=-0x1;for(let _0x30d36c=0x0;_0x30d36c<_0x751b27['length'];_0x30d36c++){let _0x2445ad=_0x751b27[_0x30d36c];if(_0x2445ad['from']<=_0x32ebd2&&_0x2445ad['to']>=_0x32ebd2){if(_0x2445ad['level']==_0x556414)return _0x30d36c;(_0x217345<0x0||(0x0!=_0x221b9d?_0x221b9d<0x0?_0x2445ad['from']<_0x32ebd2:_0x2445ad['to']>_0x32ebd2:_0x751b27[_0x217345]['level']>_0x2445ad['level']))&&(_0x217345=_0x30d36c);}}if(_0x217345<0x0)throw new RangeError('Index\x20out\x20of\x20range');return _0x217345;}}function isolatesEq(_0x34f686,_0x555073){if(_0x34f686['length']!=_0x555073['length'])return!0x1;for(let _0x1426ff=0x0;_0x1426ff<_0x34f686['length'];_0x1426ff++){let _0x2d6d76=_0x34f686[_0x1426ff],_0x358792=_0x555073[_0x1426ff];if(_0x2d6d76['from']!=_0x358792['from']||_0x2d6d76['to']!=_0x358792['to']||_0x2d6d76['direction']!=_0x358792['direction']||!isolatesEq(_0x2d6d76['inner'],_0x358792['inner']))return!0x1;}return!0x0;}const types=[];function computeCharTypes(_0xdd9b33,_0x1be65d,_0x297d15,_0x892515,_0xc70c51){for(let _0x1384d7=0x0;_0x1384d7<=_0x892515['length'];_0x1384d7++){let _0x2f27b5=_0x1384d7?_0x892515[_0x1384d7-0x1]['to']:_0x1be65d,_0x436053=_0x1384d7<_0x892515['length']?_0x892515[_0x1384d7]['from']:_0x297d15,_0x4cb3fc=_0x1384d7?0x100:_0xc70c51;for(let _0x331df1=_0x2f27b5,_0x58dfd3=_0x4cb3fc,_0x3bfbef=_0x4cb3fc;_0x331df1<_0x436053;_0x331df1++){let _0x101f50=charType(_0xdd9b33['charCodeAt'](_0x331df1));0x200==_0x101f50?_0x101f50=_0x58dfd3:0x8==_0x101f50&&0x4==_0x3bfbef&&(_0x101f50=0x10),types[_0x331df1]=0x4==_0x101f50?0x2:_0x101f50,0x7&_0x101f50&&(_0x3bfbef=_0x101f50),_0x58dfd3=_0x101f50;}for(let _0x57b2b7=_0x2f27b5,_0x3425a0=_0x4cb3fc,_0x179f00=_0x4cb3fc;_0x57b2b7<_0x436053;_0x57b2b7++){let _0x5b5fe2=types[_0x57b2b7];if(0x80==_0x5b5fe2)_0x57b2b7<_0x436053-0x1&&_0x3425a0==types[_0x57b2b7+0x1]&&0x18&_0x3425a0?_0x5b5fe2=types[_0x57b2b7]=_0x3425a0:types[_0x57b2b7]=0x100;else{if(0x40==_0x5b5fe2){let _0x3be82e=_0x57b2b7+0x1;for(;_0x3be82e<_0x436053&&0x40==types[_0x3be82e];)_0x3be82e++;let _0x477883=_0x57b2b7&&0x8==_0x3425a0||_0x3be82e<_0x297d15&&0x8==types[_0x3be82e]?0x1==_0x179f00?0x1:0x8:0x100;for(let _0x14551a=_0x57b2b7;_0x14551a<_0x3be82e;_0x14551a++)types[_0x14551a]=_0x477883;_0x57b2b7=_0x3be82e-0x1;}else 0x8==_0x5b5fe2&&0x1==_0x179f00&&(types[_0x57b2b7]=0x1);}_0x3425a0=_0x5b5fe2,0x7&_0x5b5fe2&&(_0x179f00=_0x5b5fe2);}}}function processBracketPairs(_0x29e50f,_0x200820,_0x4a0051,_0x5144e5,_0x4bfa24){let _0x2647b9=0x1==_0x4bfa24?0x2:0x1;for(let _0x768031=0x0,_0x2bdae7=0x0,_0x544678=0x0;_0x768031<=_0x5144e5['length'];_0x768031++){let _0x3c219c=_0x768031?_0x5144e5[_0x768031-0x1]['to']:_0x200820,_0x5c0975=_0x768031<_0x5144e5['length']?_0x5144e5[_0x768031]['from']:_0x4a0051;for(let _0x356ede,_0x3b6d8d,_0x336a63,_0x50b92a=_0x3c219c;_0x50b92a<_0x5c0975;_0x50b92a++)if(_0x3b6d8d=Brackets[_0x356ede=_0x29e50f['charCodeAt'](_0x50b92a)]){if(_0x3b6d8d<0x0){for(let _0x29f2b9=_0x2bdae7-0x3;_0x29f2b9>=0x0;_0x29f2b9-=0x3)if(BracketStack[_0x29f2b9+0x1]==-_0x3b6d8d){let _0x879608=BracketStack[_0x29f2b9+0x2],_0x2e6a84=0x2&_0x879608?_0x4bfa24:0x4&_0x879608?0x1&_0x879608?_0x2647b9:_0x4bfa24:0x0;_0x2e6a84&&(types[_0x50b92a]=types[BracketStack[_0x29f2b9]]=_0x2e6a84),_0x2bdae7=_0x29f2b9;break;}}else{if(0xbd==BracketStack['length'])break;BracketStack[_0x2bdae7++]=_0x50b92a,BracketStack[_0x2bdae7++]=_0x356ede,BracketStack[_0x2bdae7++]=_0x544678;}}else{if(0x2==(_0x336a63=types[_0x50b92a])||0x1==_0x336a63){let _0x46d813=_0x336a63==_0x4bfa24;_0x544678=_0x46d813?0x0:0x1;for(let _0x470cdf=_0x2bdae7-0x3;_0x470cdf>=0x0;_0x470cdf-=0x3){let _0x365340=BracketStack[_0x470cdf+0x2];if(0x2&_0x365340)break;if(_0x46d813)BracketStack[_0x470cdf+0x2]|=0x2;else{if(0x4&_0x365340)break;BracketStack[_0x470cdf+0x2]|=0x4;}}}}}}function processNeutrals(_0x1e59d8,_0x3201de,_0x13fba0,_0x3c1f45){for(let _0x848951=0x0,_0x4d42cc=_0x3c1f45;_0x848951<=_0x13fba0['length'];_0x848951++){let _0x37a538=_0x848951?_0x13fba0[_0x848951-0x1]['to']:_0x1e59d8,_0x491348=_0x848951<_0x13fba0['length']?_0x13fba0[_0x848951]['from']:_0x3201de;for(let _0x23654d=_0x37a538;_0x23654d<_0x491348;){let _0x56be09=types[_0x23654d];if(0x100==_0x56be09){let _0x170673=_0x23654d+0x1;for(;;)if(_0x170673==_0x491348){if(_0x848951==_0x13fba0['length'])break;_0x170673=_0x13fba0[_0x848951++]['to'],_0x491348=_0x848951<_0x13fba0['length']?_0x13fba0[_0x848951]['from']:_0x3201de;}else{if(0x100!=types[_0x170673])break;_0x170673++;}let _0xf2ae3d=0x1==_0x4d42cc,_0x123d38=_0xf2ae3d==(0x1==(_0x170673<_0x3201de?types[_0x170673]:_0x3c1f45))?_0xf2ae3d?0x1:0x2:_0x3c1f45;for(let _0x2e83ba=_0x170673,_0x66de99=_0x848951,_0x4b529c=_0x66de99?_0x13fba0[_0x66de99-0x1]['to']:_0x1e59d8;_0x2e83ba>_0x23654d;)_0x2e83ba==_0x4b529c&&(_0x2e83ba=_0x13fba0[--_0x66de99]['from'],_0x4b529c=_0x66de99?_0x13fba0[_0x66de99-0x1]['to']:_0x1e59d8),types[--_0x2e83ba]=_0x123d38;_0x23654d=_0x170673;}else _0x4d42cc=_0x56be09,_0x23654d++;}}}function emitSpans(_0x477706,_0x33f5bc,_0x56ba31,_0x1be9fe,_0x16604a,_0x47ed22,_0x2404e5){let _0x407a71=_0x1be9fe%0x2?0x2:0x1;if(_0x1be9fe%0x2==_0x16604a%0x2)for(let _0x10b862=_0x33f5bc,_0x505c97=0x0;_0x10b862<_0x56ba31;){let _0x65193f=!0x0,_0x3c2e19=!0x1;if(_0x505c97==_0x47ed22['length']||_0x10b862<_0x47ed22[_0x505c97]['from']){let _0x8a4f76=types[_0x10b862];_0x8a4f76!=_0x407a71&&(_0x65193f=!0x1,_0x3c2e19=0x10==_0x8a4f76);}let _0x54e10b=_0x65193f||0x1!=_0x407a71?null:[],_0x29c6e6=_0x65193f?_0x1be9fe:_0x1be9fe+0x1,_0x26566d=_0x10b862;t:for(;;)if(_0x505c97<_0x47ed22['length']&&_0x26566d==_0x47ed22[_0x505c97]['from']){if(_0x3c2e19)break t;let _0x2fff61=_0x47ed22[_0x505c97];if(!_0x65193f)for(let _0x4f9906=_0x2fff61['to'],_0xdb3c3c=_0x505c97+0x1;;){if(_0x4f9906==_0x56ba31)break t;if(!(_0xdb3c3c<_0x47ed22['length']&&_0x47ed22[_0xdb3c3c]['from']==_0x4f9906)){if(types[_0x4f9906]==_0x407a71)break t;break;}_0x4f9906=_0x47ed22[_0xdb3c3c++]['to'];}if(_0x505c97++,_0x54e10b)_0x54e10b['push'](_0x2fff61);else _0x2fff61['from']>_0x10b862&&_0x2404e5['push'](new BidiSpan(_0x10b862,_0x2fff61['from'],_0x29c6e6)),computeSectionOrder(_0x477706,_0x2fff61['direction']==LTR!=!(_0x29c6e6%0x2)?_0x1be9fe+0x1:_0x1be9fe,_0x16604a,_0x2fff61['inner'],_0x2fff61['from'],_0x2fff61['to'],_0x2404e5),_0x10b862=_0x2fff61['to'];_0x26566d=_0x2fff61['to'];}else{if(_0x26566d==_0x56ba31||(_0x65193f?types[_0x26566d]!=_0x407a71:types[_0x26566d]==_0x407a71))break;_0x26566d++;}_0x54e10b?emitSpans(_0x477706,_0x10b862,_0x26566d,_0x1be9fe+0x1,_0x16604a,_0x54e10b,_0x2404e5):_0x10b862<_0x26566d&&_0x2404e5['push'](new BidiSpan(_0x10b862,_0x26566d,_0x29c6e6)),_0x10b862=_0x26566d;}else for(let _0x48f4e9=_0x56ba31,_0xe6a8d0=_0x47ed22['length'];_0x48f4e9>_0x33f5bc;){let _0x10d350=!0x0,_0x68488b=!0x1;if(!_0xe6a8d0||_0x48f4e9>_0x47ed22[_0xe6a8d0-0x1]['to']){let _0x32711d=types[_0x48f4e9-0x1];_0x32711d!=_0x407a71&&(_0x10d350=!0x1,_0x68488b=0x10==_0x32711d);}let _0x1acb41=_0x10d350||0x1!=_0x407a71?null:[],_0x1f70cd=_0x10d350?_0x1be9fe:_0x1be9fe+0x1,_0x3e4f5e=_0x48f4e9;t:for(;;)if(_0xe6a8d0&&_0x3e4f5e==_0x47ed22[_0xe6a8d0-0x1]['to']){if(_0x68488b)break t;let _0x5282d0=_0x47ed22[--_0xe6a8d0];if(!_0x10d350)for(let _0x27dd75=_0x5282d0['from'],_0x9bc8bc=_0xe6a8d0;;){if(_0x27dd75==_0x33f5bc)break t;if(!_0x9bc8bc||_0x47ed22[_0x9bc8bc-0x1]['to']!=_0x27dd75){if(types[_0x27dd75-0x1]==_0x407a71)break t;break;}_0x27dd75=_0x47ed22[--_0x9bc8bc]['from'];}if(_0x1acb41)_0x1acb41['push'](_0x5282d0);else _0x5282d0['to']<_0x48f4e9&&_0x2404e5['push'](new BidiSpan(_0x5282d0['to'],_0x48f4e9,_0x1f70cd)),computeSectionOrder(_0x477706,_0x5282d0['direction']==LTR!=!(_0x1f70cd%0x2)?_0x1be9fe+0x1:_0x1be9fe,_0x16604a,_0x5282d0['inner'],_0x5282d0['from'],_0x5282d0['to'],_0x2404e5),_0x48f4e9=_0x5282d0['from'];_0x3e4f5e=_0x5282d0['from'];}else{if(_0x3e4f5e==_0x33f5bc||(_0x10d350?types[_0x3e4f5e-0x1]!=_0x407a71:types[_0x3e4f5e-0x1]==_0x407a71))break;_0x3e4f5e--;}_0x1acb41?emitSpans(_0x477706,_0x3e4f5e,_0x48f4e9,_0x1be9fe+0x1,_0x16604a,_0x1acb41,_0x2404e5):_0x3e4f5e<_0x48f4e9&&_0x2404e5['push'](new BidiSpan(_0x3e4f5e,_0x48f4e9,_0x1f70cd)),_0x48f4e9=_0x3e4f5e;}}function computeSectionOrder(_0x4d0e47,_0xbc48da,_0x8f458f,_0x4d6f7c,_0x5e3e85,_0xa6b59f,_0x6af0a4){let _0x4ccae2=_0xbc48da%0x2?0x2:0x1;computeCharTypes(_0x4d0e47,_0x5e3e85,_0xa6b59f,_0x4d6f7c,_0x4ccae2),processBracketPairs(_0x4d0e47,_0x5e3e85,_0xa6b59f,_0x4d6f7c,_0x4ccae2),processNeutrals(_0x5e3e85,_0xa6b59f,_0x4d6f7c,_0x4ccae2),emitSpans(_0x4d0e47,_0x5e3e85,_0xa6b59f,_0xbc48da,_0x8f458f,_0x4d6f7c,_0x6af0a4);}function computeOrder(_0x45e5dc,_0x4a2a18,_0x41e0ae){if(!_0x45e5dc)return[new BidiSpan(0x0,0x0,_0x4a2a18==RTL?0x1:0x0)];if(_0x4a2a18==LTR&&!_0x41e0ae['length']&&!BidiRE['test'](_0x45e5dc))return trivialOrder(_0x45e5dc['length']);if(_0x41e0ae['length']){for(;_0x45e5dc['length']>types['length'];)types[types['length']]=0x100;}let _0x4b93cb=[],_0x34cafd=_0x4a2a18==LTR?0x0:0x1;return computeSectionOrder(_0x45e5dc,_0x34cafd,_0x34cafd,_0x41e0ae,0x0,_0x45e5dc['length'],_0x4b93cb),_0x4b93cb;}function trivialOrder(_0x52d8b6){return[new BidiSpan(0x0,_0x52d8b6,0x0)];}let movedOver='';function moveVisually(_0x5c7a4b,_0x5b924d,_0x408d58,_0x31fc2a,_0x5c4aaa){var _0x2abc20;let _0x440a8f=_0x31fc2a['head']-_0x5c7a4b['from'],_0x51a1ff=BidiSpan['find'](_0x5b924d,_0x440a8f,null!==(_0x2abc20=_0x31fc2a['bidiLevel'])&&void 0x0!==_0x2abc20?_0x2abc20:-0x1,_0x31fc2a['assoc']),_0x315d46=_0x5b924d[_0x51a1ff],_0x3ea356=_0x315d46['side'](_0x5c4aaa,_0x408d58);if(_0x440a8f==_0x3ea356){let _0x4f46e2=_0x51a1ff+=_0x5c4aaa?0x1:-0x1;if(_0x4f46e2<0x0||_0x4f46e2>=_0x5b924d['length'])return null;_0x315d46=_0x5b924d[_0x51a1ff=_0x4f46e2],_0x440a8f=_0x315d46['side'](!_0x5c4aaa,_0x408d58),_0x3ea356=_0x315d46['side'](_0x5c4aaa,_0x408d58);}let _0x57ff8e=findClusterBreak(_0x5c7a4b['text'],_0x440a8f,_0x315d46['forward'](_0x5c4aaa,_0x408d58));(_0x57ff8e<_0x315d46['from']||_0x57ff8e>_0x315d46['to'])&&(_0x57ff8e=_0x3ea356),movedOver=_0x5c7a4b['text']['slice'](Math['min'](_0x440a8f,_0x57ff8e),Math['max'](_0x440a8f,_0x57ff8e));let _0x3b1bd2=_0x51a1ff==(_0x5c4aaa?_0x5b924d['length']-0x1:0x0)?null:_0x5b924d[_0x51a1ff+(_0x5c4aaa?0x1:-0x1)];return _0x3b1bd2&&_0x57ff8e==_0x3ea356&&_0x3b1bd2['level']+(_0x5c4aaa?0x0:0x1)<_0x315d46['level']?EditorSelection['cursor'](_0x3b1bd2['side'](!_0x5c4aaa,_0x408d58)+_0x5c7a4b['from'],_0x3b1bd2['forward'](_0x5c4aaa,_0x408d58)?0x1:-0x1,_0x3b1bd2['level']):EditorSelection['cursor'](_0x57ff8e+_0x5c7a4b['from'],_0x315d46['forward'](_0x5c4aaa,_0x408d58)?-0x1:0x1,_0x315d46['level']);}function autoDirection(_0x2cb1fc,_0xc26a25,_0x282b89){for(let _0x1e7693=_0xc26a25;_0x1e7693<_0x282b89;_0x1e7693++){let _0x44d470=charType(_0x2cb1fc['charCodeAt'](_0x1e7693));if(0x1==_0x44d470)return LTR;if(0x2==_0x44d470||0x4==_0x44d470)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':_0x499a9b=>_0x499a9b['some'](_0x268089=>_0x268089)}),nativeSelectionHidden=Facet['define']({'combine':_0x922dc5=>_0x922dc5['some'](_0x3bcf28=>_0x3bcf28)}),scrollHandler=Facet['define']();class ScrollTarget{constructor(_0x41538e,_0x1d1026='nearest',_0x4454ba='nearest',_0x2829c8=0x5,_0x21a408=0x5,_0x48a4e9=!0x1){this['range']=_0x41538e,this['y']=_0x1d1026,this['x']=_0x4454ba,this['yMargin']=_0x2829c8,this['xMargin']=_0x21a408,this['isSnapshot']=_0x48a4e9;}['map'](_0x91f8f4){return _0x91f8f4['empty']?this:new ScrollTarget(this['range']['map'](_0x91f8f4),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}['clip'](_0x4cb2c9){return this['range']['to']<=_0x4cb2c9['doc']['length']?this:new ScrollTarget(EditorSelection['cursor'](_0x4cb2c9['doc']['length']),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}}const scrollIntoView$1=StateEffect['define']({'map':(t,_0x22c9f1)=>t['map'](_0x22c9f1)}),setEditContextFormatting=StateEffect['define']();function logException(_0x4aa2a8,_0x4c85a4,_0x2fd019){let _0x20d14f=_0x4aa2a8['facet'](exceptionSink);_0x20d14f['length']?_0x20d14f[0x0](_0x4c85a4):window['onerror']&&window['onerror'](String(_0x4c85a4),_0x2fd019,void 0x0,void 0x0,_0x4c85a4)||(_0x2fd019?console['error'](_0x2fd019+':',_0x4c85a4):console['error'](_0x4c85a4));}const editable=Facet['define']({'combine':_0x118dc6=>!_0x118dc6['length']||_0x118dc6[0x0]});let nextPluginID=0x0;const viewPlugin=Facet['define']({'combine':_0x30d203=>_0x30d203['filter']((_0x2b2c76,_0x3ac74a)=>{for(let _0x549012=0x0;_0x549012<_0x3ac74a;_0x549012++)if(_0x30d203[_0x549012]['plugin']==_0x2b2c76['plugin'])return!0x1;return!0x0;})});class ViewPlugin{constructor(_0x31ab9e,_0x1d64ce,_0x41e1f8,_0x1be529,_0x3e86f8){this['id']=_0x31ab9e,this['create']=_0x1d64ce,this['domEventHandlers']=_0x41e1f8,this['domEventObservers']=_0x1be529,this['baseExtensions']=_0x3e86f8(this),this['extension']=this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':void 0x0}));}['of'](_0x28202e){return this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':_0x28202e}));}static['define'](_0x44d6da,_0x996e5c){const {eventHandlers:_0x395e24,eventObservers:_0x3ed889,provide:_0x4d7e26,decorations:_0x416f82}=_0x996e5c||{};return new ViewPlugin(nextPluginID++,_0x44d6da,_0x395e24,_0x3ed889,_0x5bbd74=>{let _0x4c633d=[];return _0x416f82&&_0x4c633d['push'](decorations['of'](_0x5dd830=>{let _0x535632=_0x5dd830['plugin'](_0x5bbd74);return _0x535632?_0x416f82(_0x535632):Decoration['none'];})),_0x4d7e26&&_0x4c633d['push'](_0x4d7e26(_0x5bbd74)),_0x4c633d;});}static['fromClass'](_0x5453dd,_0x49393f){return ViewPlugin['define']((_0x51051c,_0x57e4b6)=>new _0x5453dd(_0x51051c,_0x57e4b6),_0x49393f);}}class PluginInstance{constructor(_0x36c68d){this['spec']=_0x36c68d,this['mustUpdate']=null,this['value']=null;}get['plugin'](){return this['spec']&&this['spec']['plugin'];}['update'](_0xbe09cd){if(this['value']){if(this['mustUpdate']){let _0x66fcb=this['mustUpdate'];if(this['mustUpdate']=null,this['value']['update'])try{this['value']['update'](_0x66fcb);}catch(_0x3679f8){if(logException(_0x66fcb['state'],_0x3679f8,'CodeMirror\x20plugin\x20crashed'),this['value']['destroy'])try{this['value']['destroy']();}catch(_0x25e6cf){}this['deactivate']();}}}else{if(this['spec'])try{this['value']=this['spec']['plugin']['create'](_0xbe09cd,this['spec']['arg']);}catch(_0x3cb348){logException(_0xbe09cd['state'],_0x3cb348,'CodeMirror\x20plugin\x20crashed'),this['deactivate']();}}return this;}['destroy'](_0x5c3c82){var _0x4a4fd8;if(null===(_0x4a4fd8=this['value'])||void 0x0===_0x4a4fd8?void 0x0:_0x4a4fd8['destroy'])try{this['value']['destroy']();}catch(_0x183a98){logException(_0x5c3c82['state'],_0x183a98,'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(_0x507a78,_0x323e3e){let _0x37f605=_0x507a78['state']['facet'](bidiIsolatedRanges);if(!_0x37f605['length'])return _0x37f605;let _0x487657=_0x37f605['map'](_0x45638a=>_0x45638a instanceof Function?_0x45638a(_0x507a78):_0x45638a),_0x3ef0a9=[];return RangeSet['spans'](_0x487657,_0x323e3e['from'],_0x323e3e['to'],{'point'(){},'span'(_0xfe4b29,_0x1d0738,_0x437d91,_0x170fbb){let _0x1def33=_0xfe4b29-_0x323e3e['from'],_0x3c1c06=_0x1d0738-_0x323e3e['from'],_0x2efb30=_0x3ef0a9;for(let _0x1857ac=_0x437d91['length']-0x1;_0x1857ac>=0x0;_0x1857ac--,_0x170fbb--){let _0x341743,_0x4d078d=_0x437d91[_0x1857ac]['spec']['bidiIsolate'];if(null==_0x4d078d&&(_0x4d078d=autoDirection(_0x323e3e['text'],_0x1def33,_0x3c1c06)),_0x170fbb>0x0&&_0x2efb30['length']&&(_0x341743=_0x2efb30[_0x2efb30['length']-0x1])['to']==_0x1def33&&_0x341743['direction']==_0x4d078d)_0x341743['to']=_0x3c1c06,_0x2efb30=_0x341743['inner'];else{let _0x18ccb7={'from':_0x1def33,'to':_0x3c1c06,'direction':_0x4d078d,'inner':[]};_0x2efb30['push'](_0x18ccb7),_0x2efb30=_0x18ccb7['inner'];}}}}),_0x3ef0a9;}const scrollMargins=Facet['define']();function getScrollMargins(_0x3665e8){let _0x5a55c0=0x0,_0xf9d18d=0x0,_0x40a8ed=0x0,_0x47e720=0x0;for(let _0x4fa5dc of _0x3665e8['state']['facet'](scrollMargins)){let _0x212580=_0x4fa5dc(_0x3665e8);_0x212580&&(null!=_0x212580['left']&&(_0x5a55c0=Math['max'](_0x5a55c0,_0x212580['left'])),null!=_0x212580['right']&&(_0xf9d18d=Math['max'](_0xf9d18d,_0x212580['right'])),null!=_0x212580['top']&&(_0x40a8ed=Math['max'](_0x40a8ed,_0x212580['top'])),null!=_0x212580['bottom']&&(_0x47e720=Math['max'](_0x47e720,_0x212580['bottom'])));}return{'left':_0x5a55c0,'right':_0xf9d18d,'top':_0x40a8ed,'bottom':_0x47e720};}const styleModule=Facet['define']();class ChangedRange{constructor(_0x4f61cd,_0x21a557,_0xf8be42,_0x497ca1){this['fromA']=_0x4f61cd,this['toA']=_0x21a557,this['fromB']=_0xf8be42,this['toB']=_0x497ca1;}['join'](_0x4ce82d){return new ChangedRange(Math['min'](this['fromA'],_0x4ce82d['fromA']),Math['max'](this['toA'],_0x4ce82d['toA']),Math['min'](this['fromB'],_0x4ce82d['fromB']),Math['max'](this['toB'],_0x4ce82d['toB']));}['addToSet'](_0x1ee146){let _0x244587=_0x1ee146['length'],_0x37c66e=this;for(;_0x244587>0x0;_0x244587--){let _0x3914f4=_0x1ee146[_0x244587-0x1];if(!(_0x3914f4['fromA']>_0x37c66e['toA'])){if(_0x3914f4['toA']<_0x37c66e['fromA'])break;_0x37c66e=_0x37c66e['join'](_0x3914f4),_0x1ee146['splice'](_0x244587-0x1,0x1);}}return _0x1ee146['splice'](_0x244587,0x0,_0x37c66e),_0x1ee146;}static['extendWithRanges'](_0x18fb95,_0x4ececc){if(0x0==_0x4ececc['length'])return _0x18fb95;let _0x166f79=[];for(let _0x22fd9f=0x0,_0x29d450=0x0,_0x4a843b=0x0,_0x4129ea=0x0;;_0x22fd9f++){let _0x256c71=_0x22fd9f==_0x18fb95['length']?null:_0x18fb95[_0x22fd9f],_0x2d6e33=_0x4a843b-_0x4129ea,_0x16ada5=_0x256c71?_0x256c71['fromB']:0x3b9aca00;for(;_0x29d450<_0x4ececc['length']&&_0x4ececc[_0x29d450]<_0x16ada5;){let _0x19ebb7=_0x4ececc[_0x29d450],_0x2b040b=_0x4ececc[_0x29d450+0x1],_0x9f2adc=Math['max'](_0x4129ea,_0x19ebb7),_0x4a8c24=Math['min'](_0x16ada5,_0x2b040b);if(_0x9f2adc<=_0x4a8c24&&new ChangedRange(_0x9f2adc+_0x2d6e33,_0x4a8c24+_0x2d6e33,_0x9f2adc,_0x4a8c24)['addToSet'](_0x166f79),_0x2b040b>_0x16ada5)break;_0x29d450+=0x2;}if(!_0x256c71)return _0x166f79;new ChangedRange(_0x256c71['fromA'],_0x256c71['toA'],_0x256c71['fromB'],_0x256c71['toB'])['addToSet'](_0x166f79),_0x4a843b=_0x256c71['toA'],_0x4129ea=_0x256c71['toB'];}}}class ViewUpdate{constructor(_0x59fda3,_0x49c9ea,_0xfb5246){this['view']=_0x59fda3,this['state']=_0x49c9ea,this['transactions']=_0xfb5246,this['flags']=0x0,this['startState']=_0x59fda3['state'],this['changes']=ChangeSet['empty'](this['startState']['doc']['length']);for(let _0x274798 of _0xfb5246)this['changes']=this['changes']['compose'](_0x274798['changes']);let _0x59e041=[];this['changes']['iterChangedRanges']((_0x4e619c,_0x1dfb27,_0x51b33f,_0x534e99)=>_0x59e041['push'](new ChangedRange(_0x4e619c,_0x1dfb27,_0x51b33f,_0x534e99))),this['changedRanges']=_0x59e041;}static['create'](_0xf489f4,_0x15611c,_0x1bcf3f){return new ViewUpdate(_0xf489f4,_0x15611c,_0x1bcf3f);}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'](_0x47e071=>_0x47e071['selection']);}get['empty'](){return 0x0==this['flags']&&0x0==this['transactions']['length'];}}class DocView extends ContentView{get['length'](){return this['view']['state']['doc']['length'];}constructor(_0x5c7108){super(),this['view']=_0x5c7108,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'](_0x5c7108['contentDOM']),this['children']=[new LineView()],this['children'][0x0]['setParent'](this),this['updateDeco'](),this['updateInner']([new ChangedRange(0x0,0x0,0x0,_0x5c7108['state']['doc']['length'])],0x0,null);}['update'](_0x4a5dc9){var _0x57a55b;let _0x3016ec=_0x4a5dc9['changedRanges'];this['minWidth']>0x0&&_0x3016ec['length']&&(_0x3016ec['every'](({fromA:_0x3ad0fc,toA:_0x5e30f8})=>_0x5e30f8<this['minWidthFrom']||_0x3ad0fc>this['minWidthTo'])?(this['minWidthFrom']=_0x4a5dc9['changes']['mapPos'](this['minWidthFrom'],0x1),this['minWidthTo']=_0x4a5dc9['changes']['mapPos'](this['minWidthTo'],0x1)):this['minWidth']=this['minWidthFrom']=this['minWidthTo']=0x0),this['updateEditContextFormatting'](_0x4a5dc9);let _0x2a6f5f=-0x1;this['view']['inputState']['composing']>=0x0&&!this['view']['observer']['editContext']&&((null===(_0x57a55b=this['domChanged'])||void 0x0===_0x57a55b?void 0x0:_0x57a55b['newSel'])?_0x2a6f5f=this['domChanged']['newSel']['head']:touchesComposition(_0x4a5dc9['changes'],this['hasComposition'])||_0x4a5dc9['selectionSet']||(_0x2a6f5f=_0x4a5dc9['state']['selection']['main']['head']));let _0x2fc792=_0x2a6f5f>-0x1?findCompositionRange(this['view'],_0x4a5dc9['changes'],_0x2a6f5f):null;if(this['domChanged']=null,this['hasComposition']){this['markedForComposition']['clear']();let {from:_0x485251,to:_0x2b71da}=this['hasComposition'];_0x3016ec=new ChangedRange(_0x485251,_0x2b71da,_0x4a5dc9['changes']['mapPos'](_0x485251,-0x1),_0x4a5dc9['changes']['mapPos'](_0x2b71da,0x1))['addToSet'](_0x3016ec['slice']());}this['hasComposition']=_0x2fc792?{'from':_0x2fc792['range']['fromB'],'to':_0x2fc792['range']['toB']}:null,(browser['ie']||browser['chrome'])&&!_0x2fc792&&_0x4a5dc9&&_0x4a5dc9['state']['doc']['lines']!=_0x4a5dc9['startState']['doc']['lines']&&(this['forceSelection']=!0x0);let _0x466700=findChangedDeco(this['decorations'],this['updateDeco'](),_0x4a5dc9['changes']);return _0x3016ec=ChangedRange['extendWithRanges'](_0x3016ec,_0x466700),!!(0x7&this['flags']||0x0!=_0x3016ec['length'])&&(this['updateInner'](_0x3016ec,_0x4a5dc9['startState']['doc']['length'],_0x2fc792),_0x4a5dc9['transactions']['length']&&(this['lastUpdate']=Date['now']()),!0x0);}['updateInner'](_0x57d2d1,_0x2baf70,_0x5ec0d3){this['view']['viewState']['mustMeasureContent']=!0x0,this['updateChildren'](_0x57d2d1,_0x2baf70,_0x5ec0d3);let {observer:_0x3b2ff4}=this['view'];_0x3b2ff4['ignore'](()=>{this['dom']['style']['height']=this['view']['viewState']['contentHeight']/this['view']['scaleY']+'px',this['dom']['style']['flexBasis']=this['minWidth']?this['minWidth']+'px':'';let _0x35acc7=browser['chrome']||browser['ios']?{'node':_0x3b2ff4['selectionRange']['focusNode'],'written':!0x1}:void 0x0;this['sync'](this['view'],_0x35acc7),this['flags']&=-0x8,_0x35acc7&&(_0x35acc7['written']||_0x3b2ff4['selectionRange']['focusNode']!=_0x35acc7['node'])&&(this['forceSelection']=!0x0),this['dom']['style']['height']='';}),this['markedForComposition']['forEach'](_0x279426=>_0x279426['flags']&=-0x9);let _0x2d4b6f=[];if(this['view']['viewport']['from']||this['view']['viewport']['to']<this['view']['state']['doc']['length']){for(let _0x373aab of this['children'])_0x373aab instanceof BlockWidgetView&&_0x373aab['widget']instanceof BlockGapWidget&&_0x2d4b6f['push'](_0x373aab['dom']);}_0x3b2ff4['updateGaps'](_0x2d4b6f);}['updateChildren'](_0x17f4cd,_0xc6dfb2,_0x3c3af6){let _0x366051=_0x3c3af6?_0x3c3af6['range']['addToSet'](_0x17f4cd['slice']()):_0x17f4cd,_0x4e37f3=this['childCursor'](_0xc6dfb2);for(let _0x507499=_0x366051['length']-0x1;;_0x507499--){let _0x20fa5a=_0x507499>=0x0?_0x366051[_0x507499]:null;if(!_0x20fa5a)break;let _0x127f55,_0x145c1d,_0x419d15,_0x2379f3,{fromA:_0x4801c4,toA:_0x1a943e,fromB:_0x44bad5,toB:_0x5b0ec6}=_0x20fa5a;if(_0x3c3af6&&_0x3c3af6['range']['fromB']<_0x5b0ec6&&_0x3c3af6['range']['toB']>_0x44bad5){let _0x396bc7=ContentBuilder['build'](this['view']['state']['doc'],_0x44bad5,_0x3c3af6['range']['fromB'],this['decorations'],this['dynamicDecorationMap']),_0x2619b8=ContentBuilder['build'](this['view']['state']['doc'],_0x3c3af6['range']['toB'],_0x5b0ec6,this['decorations'],this['dynamicDecorationMap']);_0x145c1d=_0x396bc7['breakAtStart'],_0x419d15=_0x396bc7['openStart'],_0x2379f3=_0x2619b8['openEnd'];let _0x3f4195=this['compositionView'](_0x3c3af6);_0x2619b8['breakAtStart']?_0x3f4195['breakAfter']=0x1:_0x2619b8['content']['length']&&_0x3f4195['merge'](_0x3f4195['length'],_0x3f4195['length'],_0x2619b8['content'][0x0],!0x1,_0x2619b8['openStart'],0x0)&&(_0x3f4195['breakAfter']=_0x2619b8['content'][0x0]['breakAfter'],_0x2619b8['content']['shift']()),_0x396bc7['content']['length']&&_0x3f4195['merge'](0x0,0x0,_0x396bc7['content'][_0x396bc7['content']['length']-0x1],!0x0,0x0,_0x396bc7['openEnd'])&&_0x396bc7['content']['pop'](),_0x127f55=_0x396bc7['content']['concat'](_0x3f4195)['concat'](_0x2619b8['content']);}else({content:_0x127f55,breakAtStart:_0x145c1d,openStart:_0x419d15,openEnd:_0x2379f3}=ContentBuilder['build'](this['view']['state']['doc'],_0x44bad5,_0x5b0ec6,this['decorations'],this['dynamicDecorationMap']));let {i:_0x45e81d,off:_0x2155e9}=_0x4e37f3['findPos'](_0x1a943e,0x1),{i:_0x2eb45b,off:_0x19be7a}=_0x4e37f3['findPos'](_0x4801c4,-0x1);replaceRange(this,_0x2eb45b,_0x19be7a,_0x45e81d,_0x2155e9,_0x127f55,_0x145c1d,_0x419d15,_0x2379f3);}_0x3c3af6&&this['fixCompositionDOM'](_0x3c3af6);}['updateEditContextFormatting'](_0x5636d3){this['editContextFormatting']=this['editContextFormatting']['map'](_0x5636d3['changes']);for(let _0x5979e8 of _0x5636d3['transactions'])for(let _0x4d48ea of _0x5979e8['effects'])_0x4d48ea['is'](setEditContextFormatting)&&(this['editContextFormatting']=_0x4d48ea['value']);}['compositionView'](_0x3cd360){let _0x405776=new TextView(_0x3cd360['text']['nodeValue']);_0x405776['flags']|=0x8;for(let {deco:_0x2c7da6}of _0x3cd360['marks'])_0x405776=new MarkView(_0x2c7da6,[_0x405776],_0x405776['length']);let _0x4c54a7=new LineView();return _0x4c54a7['append'](_0x405776,0x0),_0x4c54a7;}['fixCompositionDOM'](_0x34d6eb){let _0x2b5573=(_0x59c1a7,_0x4fe63a)=>{_0x4fe63a['flags']|=0x8|(_0x4fe63a['children']['some'](_0x4b3b07=>0x7&_0x4b3b07['flags'])?0x1:0x0),this['markedForComposition']['add'](_0x4fe63a);let _0x344c8e=ContentView['get'](_0x59c1a7);_0x344c8e&&_0x344c8e!=_0x4fe63a&&(_0x344c8e['dom']=null),_0x4fe63a['setDOM'](_0x59c1a7);},_0x1124ac=this['childPos'](_0x34d6eb['range']['fromB'],0x1),_0x32695f=this['children'][_0x1124ac['i']];_0x2b5573(_0x34d6eb['line'],_0x32695f);for(let _0x5dcca3=_0x34d6eb['marks']['length']-0x1;_0x5dcca3>=-0x1;_0x5dcca3--)_0x1124ac=_0x32695f['childPos'](_0x1124ac['off'],0x1),_0x32695f=_0x32695f['children'][_0x1124ac['i']],_0x2b5573(_0x5dcca3>=0x0?_0x34d6eb['marks'][_0x5dcca3]['node']:_0x34d6eb['text'],_0x32695f);}['updateSelection'](_0x38d084=!0x1,_0x34249a=!0x1){!_0x38d084&&this['view']['observer']['selectionRange']['focusNode']||this['view']['observer']['readSelectionRange']();let _0x13b680=this['view']['root']['activeElement'],_0x257aa2=_0x13b680==this['dom'],_0xdd14a=!_0x257aa2&&!(this['view']['state']['facet'](editable)||this['dom']['tabIndex']>-0x1)&&hasSelection(this['dom'],this['view']['observer']['selectionRange'])&&!(_0x13b680&&this['dom']['contains'](_0x13b680));if(!(_0x257aa2||_0x34249a||_0xdd14a))return;let _0x447a36=this['forceSelection'];this['forceSelection']=!0x1;let _0x14667a=this['view']['state']['selection']['main'],_0x16ceaa=this['moveToLine'](this['domAtPos'](_0x14667a['anchor'])),_0xb71d22=_0x14667a['empty']?_0x16ceaa:this['moveToLine'](this['domAtPos'](_0x14667a['head']));if(browser['gecko']&&_0x14667a['empty']&&!this['hasComposition']&&betweenUneditable(_0x16ceaa)){let _0x5568b5=document['createTextNode']('');this['view']['observer']['ignore'](()=>_0x16ceaa['node']['insertBefore'](_0x5568b5,_0x16ceaa['node']['childNodes'][_0x16ceaa['offset']]||null)),_0x16ceaa=_0xb71d22=new DOMPos(_0x5568b5,0x0),_0x447a36=!0x0;}let _0x3bca20=this['view']['observer']['selectionRange'];!_0x447a36&&_0x3bca20['focusNode']&&(isEquivalentPosition(_0x16ceaa['node'],_0x16ceaa['offset'],_0x3bca20['anchorNode'],_0x3bca20['anchorOffset'])&&isEquivalentPosition(_0xb71d22['node'],_0xb71d22['offset'],_0x3bca20['focusNode'],_0x3bca20['focusOffset'])||this['suppressWidgetCursorChange'](_0x3bca20,_0x14667a))||(this['view']['observer']['ignore'](()=>{browser['android']&&browser['chrome']&&this['dom']['contains'](_0x3bca20['focusNode'])&&inUneditable(_0x3bca20['focusNode'],this['dom'])&&(this['dom']['blur'](),this['dom']['focus']({'preventScroll':!0x0}));let _0xcbeb63=getSelection(this['view']['root']);if(_0xcbeb63){if(_0x14667a['empty']){if(browser['gecko']){let _0x4a6535=nextToUneditable(_0x16ceaa['node'],_0x16ceaa['offset']);if(_0x4a6535&&0x3!=_0x4a6535){let _0x800c30=(0x1==_0x4a6535?textNodeBefore:textNodeAfter)(_0x16ceaa['node'],_0x16ceaa['offset']);_0x800c30&&(_0x16ceaa=new DOMPos(_0x800c30['node'],_0x800c30['offset']));}}_0xcbeb63['collapse'](_0x16ceaa['node'],_0x16ceaa['offset']),null!=_0x14667a['bidiLevel']&&void 0x0!==_0xcbeb63['caretBidiLevel']&&(_0xcbeb63['caretBidiLevel']=_0x14667a['bidiLevel']);}else{if(_0xcbeb63['extend']){_0xcbeb63['collapse'](_0x16ceaa['node'],_0x16ceaa['offset']);try{_0xcbeb63['extend'](_0xb71d22['node'],_0xb71d22['offset']);}catch(_0x2845d2){}}else{let _0x427d35=document['createRange']();_0x14667a['anchor']>_0x14667a['head']&&([_0x16ceaa,_0xb71d22]=[_0xb71d22,_0x16ceaa]),_0x427d35['setEnd'](_0xb71d22['node'],_0xb71d22['offset']),_0x427d35['setStart'](_0x16ceaa['node'],_0x16ceaa['offset']),_0xcbeb63['removeAllRanges'](),_0xcbeb63['addRange'](_0x427d35);}}}else;_0xdd14a&&this['view']['root']['activeElement']==this['dom']&&(this['dom']['blur'](),_0x13b680&&_0x13b680['focus']());}),this['view']['observer']['setSelectionRange'](_0x16ceaa,_0xb71d22)),this['impreciseAnchor']=_0x16ceaa['precise']?null:new DOMPos(_0x3bca20['anchorNode'],_0x3bca20['anchorOffset']),this['impreciseHead']=_0xb71d22['precise']?null:new DOMPos(_0x3bca20['focusNode'],_0x3bca20['focusOffset']);}['suppressWidgetCursorChange'](_0x4e095a,_0x4fd1c0){return this['hasComposition']&&_0x4fd1c0['empty']&&isEquivalentPosition(_0x4e095a['focusNode'],_0x4e095a['focusOffset'],_0x4e095a['anchorNode'],_0x4e095a['anchorOffset'])&&this['posFromDOM'](_0x4e095a['focusNode'],_0x4e095a['focusOffset'])==_0x4fd1c0['head'];}['enforceCursorAssoc'](){if(this['hasComposition'])return;let {view:_0x137222}=this,_0xd6e352=_0x137222['state']['selection']['main'],_0x55c285=getSelection(_0x137222['root']),{anchorNode:_0x2d4008,anchorOffset:_0x3894d5}=_0x137222['observer']['selectionRange'];if(!(_0x55c285&&_0xd6e352['empty']&&_0xd6e352['assoc']&&_0x55c285['modify']))return;let _0x46fc33=LineView['find'](this,_0xd6e352['head']);if(!_0x46fc33)return;let _0x3cb271=_0x46fc33['posAtStart'];if(_0xd6e352['head']==_0x3cb271||_0xd6e352['head']==_0x3cb271+_0x46fc33['length'])return;let _0x40484d=this['coordsAt'](_0xd6e352['head'],-0x1),_0x48935c=this['coordsAt'](_0xd6e352['head'],0x1);if(!_0x40484d||!_0x48935c||_0x40484d['bottom']>_0x48935c['top'])return;let _0xc532b8=this['domAtPos'](_0xd6e352['head']+_0xd6e352['assoc']);_0x55c285['collapse'](_0xc532b8['node'],_0xc532b8['offset']),_0x55c285['modify']('move',_0xd6e352['assoc']<0x0?'forward':'backward','lineboundary'),_0x137222['observer']['readSelectionRange']();let _0x4ca8d4=_0x137222['observer']['selectionRange'];_0x137222['docView']['posFromDOM'](_0x4ca8d4['anchorNode'],_0x4ca8d4['anchorOffset'])!=_0xd6e352['from']&&_0x55c285['collapse'](_0x2d4008,_0x3894d5);}['moveToLine'](_0x554bf1){let _0x4b7361,_0x4f3c9b=this['dom'];if(_0x554bf1['node']!=_0x4f3c9b)return _0x554bf1;for(let _0x181bfb=_0x554bf1['offset'];!_0x4b7361&&_0x181bfb<_0x4f3c9b['childNodes']['length'];_0x181bfb++){let _0x306a14=ContentView['get'](_0x4f3c9b['childNodes'][_0x181bfb]);_0x306a14 instanceof LineView&&(_0x4b7361=_0x306a14['domAtPos'](0x0));}for(let _0x44820d=_0x554bf1['offset']-0x1;!_0x4b7361&&_0x44820d>=0x0;_0x44820d--){let _0x2970fe=ContentView['get'](_0x4f3c9b['childNodes'][_0x44820d]);_0x2970fe instanceof LineView&&(_0x4b7361=_0x2970fe['domAtPos'](_0x2970fe['length']));}return _0x4b7361?new DOMPos(_0x4b7361['node'],_0x4b7361['offset'],!0x0):_0x554bf1;}['nearest'](_0x1419c7){for(let _0x38cdc0=_0x1419c7;_0x38cdc0;){let _0x3d415d=ContentView['get'](_0x38cdc0);if(_0x3d415d&&_0x3d415d['rootView']==this)return _0x3d415d;_0x38cdc0=_0x38cdc0['parentNode'];}return null;}['posFromDOM'](_0x1bd9a1,_0x3d8c1d){let _0x10f955=this['nearest'](_0x1bd9a1);if(!_0x10f955)throw new RangeError('Trying\x20to\x20find\x20position\x20for\x20a\x20DOM\x20position\x20outside\x20of\x20the\x20document');return _0x10f955['localPosFromDOM'](_0x1bd9a1,_0x3d8c1d)+_0x10f955['posAtStart'];}['domAtPos'](_0x929b6a){let {i:_0x30e531,off:_0x55e185}=this['childCursor']()['findPos'](_0x929b6a,-0x1);for(;_0x30e531<this['children']['length']-0x1;){let _0x166e7d=this['children'][_0x30e531];if(_0x55e185<_0x166e7d['length']||_0x166e7d instanceof LineView)break;_0x30e531++,_0x55e185=0x0;}return this['children'][_0x30e531]['domAtPos'](_0x55e185);}['coordsAt'](_0x46932d,_0x3b6386){let _0x3b70e9=null,_0x21ec7d=0x0;for(let _0x974d47=this['length'],_0x39dcf1=this['children']['length']-0x1;_0x39dcf1>=0x0;_0x39dcf1--){let _0x40148a=this['children'][_0x39dcf1],_0x14808d=_0x974d47-_0x40148a['breakAfter'],_0x4335fa=_0x14808d-_0x40148a['length'];if(_0x14808d<_0x46932d)break;if(_0x4335fa<=_0x46932d&&(_0x4335fa<_0x46932d||_0x40148a['covers'](-0x1))&&(_0x14808d>_0x46932d||_0x40148a['covers'](0x1))&&(!_0x3b70e9||_0x40148a instanceof LineView&&!(_0x3b70e9 instanceof LineView&&_0x3b6386>=0x0)))_0x3b70e9=_0x40148a,_0x21ec7d=_0x4335fa;else{if(_0x3b70e9&&_0x4335fa==_0x46932d&&_0x14808d==_0x46932d&&_0x40148a instanceof BlockWidgetView&&Math['abs'](_0x3b6386)<0x2){if(_0x40148a['deco']['startSide']<0x0)break;_0x39dcf1&&(_0x3b70e9=null);}}_0x974d47=_0x4335fa;}return _0x3b70e9?_0x3b70e9['coordsAt'](_0x46932d-_0x21ec7d,_0x3b6386):null;}['coordsForChar'](_0x39f5a9){let {i:_0x49aaa1,off:_0x4d0c79}=this['childPos'](_0x39f5a9,0x1),_0x47ce39=this['children'][_0x49aaa1];if(!(_0x47ce39 instanceof LineView))return null;for(;_0x47ce39['children']['length'];){let {i:_0x35ea40,off:_0x5d9586}=_0x47ce39['childPos'](_0x4d0c79,0x1);for(;;_0x35ea40++){if(_0x35ea40==_0x47ce39['children']['length'])return null;if((_0x47ce39=_0x47ce39['children'][_0x35ea40])['length'])break;}_0x4d0c79=_0x5d9586;}if(!(_0x47ce39 instanceof TextView))return null;let _0x250224=findClusterBreak(_0x47ce39['text'],_0x4d0c79);if(_0x250224==_0x4d0c79)return null;let _0x2ba86e=textRange(_0x47ce39['dom'],_0x4d0c79,_0x250224)['getClientRects']();for(let _0x43562c=0x0;_0x43562c<_0x2ba86e['length'];_0x43562c++){let _0x48c754=_0x2ba86e[_0x43562c];if(_0x43562c==_0x2ba86e['length']-0x1||_0x48c754['top']<_0x48c754['bottom']&&_0x48c754['left']<_0x48c754['right'])return _0x48c754;}return null;}['measureVisibleLineHeights'](_0x2533fa){let _0x41ee37=[],{from:_0x51ba30,to:_0xa4e434}=_0x2533fa,_0x391e3a=this['view']['contentDOM']['clientWidth'],_0x11df70=_0x391e3a>Math['max'](this['view']['scrollDOM']['clientWidth'],this['minWidth'])+0x1,_0x5801ca=-0x1,_0x48e904=this['view']['textDirection']==Direction['LTR'];for(let _0x21ea00=0x0,_0x565c29=0x0;_0x565c29<this['children']['length'];_0x565c29++){let _0x1705f7=this['children'][_0x565c29],_0x1c5174=_0x21ea00+_0x1705f7['length'];if(_0x1c5174>_0xa4e434)break;if(_0x21ea00>=_0x51ba30){let _0x4d6d35=_0x1705f7['dom']['getBoundingClientRect']();if(_0x41ee37['push'](_0x4d6d35['height']),_0x11df70){let _0x583a3c=_0x1705f7['dom']['lastChild'],_0x496112=_0x583a3c?clientRectsFor(_0x583a3c):[];if(_0x496112['length']){let _0x19e68a=_0x496112[_0x496112['length']-0x1],_0x560c4d=_0x48e904?_0x19e68a['right']-_0x4d6d35['left']:_0x4d6d35['right']-_0x19e68a['left'];_0x560c4d>_0x5801ca&&(_0x5801ca=_0x560c4d,this['minWidth']=_0x391e3a,this['minWidthFrom']=_0x21ea00,this['minWidthTo']=_0x1c5174);}}}_0x21ea00=_0x1c5174+_0x1705f7['breakAfter'];}return _0x41ee37;}['textDirectionAt'](_0x38c9a5){let {i:_0x5f22d1}=this['childPos'](_0x38c9a5,0x1);return'rtl'==getComputedStyle(this['children'][_0x5f22d1]['dom'])['direction']?Direction['RTL']:Direction['LTR'];}['measureTextSize'](){for(let _0x5948c1 of this['children'])if(_0x5948c1 instanceof LineView){let _0x2146a8=_0x5948c1['measureTextSize']();if(_0x2146a8)return _0x2146a8;}let _0x283f2b,_0x4037c5,_0x38a67c,_0x435bb1=document['createElement']('div');return _0x435bb1['className']='cm-line',_0x435bb1['style']['width']='99999px',_0x435bb1['style']['position']='absolute',_0x435bb1['textContent']='abc\x20def\x20ghi\x20jkl\x20mno\x20pqr\x20stu',this['view']['observer']['ignore'](()=>{this['dom']['appendChild'](_0x435bb1);let _0x48f532=clientRectsFor(_0x435bb1['firstChild'])[0x0];_0x283f2b=_0x435bb1['getBoundingClientRect']()['height'],_0x4037c5=_0x48f532?_0x48f532['width']/0x1b:0x7,_0x38a67c=_0x48f532?_0x48f532['height']:_0x283f2b,_0x435bb1['remove']();}),{'lineHeight':_0x283f2b,'charWidth':_0x4037c5,'textHeight':_0x38a67c};}['childCursor'](_0x20e98a=this['length']){let _0x2232ef=this['children']['length'];return _0x2232ef&&(_0x20e98a-=this['children'][--_0x2232ef]['length']),new ChildCursor(this['children'],_0x20e98a,_0x2232ef);}['computeBlockGapDeco'](){let _0x5a2429=[],_0x1f8df0=this['view']['viewState'];for(let _0xd8953e=0x0,_0x3e68b4=0x0;;_0x3e68b4++){let _0x5cdca8=_0x3e68b4==_0x1f8df0['viewports']['length']?null:_0x1f8df0['viewports'][_0x3e68b4],_0x56e3a6=_0x5cdca8?_0x5cdca8['from']-0x1:this['length'];if(_0x56e3a6>_0xd8953e){let _0x53c449=(_0x1f8df0['lineBlockAt'](_0x56e3a6)['bottom']-_0x1f8df0['lineBlockAt'](_0xd8953e)['top'])/this['view']['scaleY'];_0x5a2429['push'](Decoration['replace']({'widget':new BlockGapWidget(_0x53c449),'block':!0x0,'inclusive':!0x0,'isBlockGap':!0x0})['range'](_0xd8953e,_0x56e3a6));}if(!_0x5cdca8)break;_0xd8953e=_0x5cdca8['to']+0x1;}return Decoration['set'](_0x5a2429);}['updateDeco'](){let _0x1ff694=0x1,_0x237a37=this['view']['state']['facet'](decorations)['map'](_0x17f6e6=>(this['dynamicDecorationMap'][_0x1ff694++]='function'==typeof _0x17f6e6)?_0x17f6e6(this['view']):_0x17f6e6),_0x423c12=!0x1,_0x268168=this['view']['state']['facet'](outerDecorations)['map']((_0x485f8f,_0x1f505c)=>{let _0x38b660='function'==typeof _0x485f8f;return _0x38b660&&(_0x423c12=!0x0),_0x38b660?_0x485f8f(this['view']):_0x485f8f;});for(_0x268168['length']&&(this['dynamicDecorationMap'][_0x1ff694++]=_0x423c12,_0x237a37['push'](RangeSet['join'](_0x268168))),this['decorations']=[this['editContextFormatting'],..._0x237a37,this['computeBlockGapDeco'](),this['view']['viewState']['lineGapDeco']];_0x1ff694<this['decorations']['length'];)this['dynamicDecorationMap'][_0x1ff694++]=!0x1;return this['decorations'];}['scrollIntoView'](_0x21f211){if(_0x21f211['isSnapshot']){let _0x3a6a54=this['view']['viewState']['lineBlockAt'](_0x21f211['range']['head']);return this['view']['scrollDOM']['scrollTop']=_0x3a6a54['top']-_0x21f211['yMargin'],void(this['view']['scrollDOM']['scrollLeft']=_0x21f211['xMargin']);}for(let _0x2465e2 of this['view']['state']['facet'](scrollHandler))try{if(_0x2465e2(this['view'],_0x21f211['range'],_0x21f211))return!0x0;}catch(_0x3a63f6){logException(this['view']['state'],_0x3a63f6,'scroll\x20handler');}let _0x472bba,{range:_0x514a6b}=_0x21f211,_0xbd7676=this['coordsAt'](_0x514a6b['head'],_0x514a6b['empty']?_0x514a6b['assoc']:_0x514a6b['head']>_0x514a6b['anchor']?-0x1:0x1);if(!_0xbd7676)return;!_0x514a6b['empty']&&(_0x472bba=this['coordsAt'](_0x514a6b['anchor'],_0x514a6b['anchor']>_0x514a6b['head']?-0x1:0x1))&&(_0xbd7676={'left':Math['min'](_0xbd7676['left'],_0x472bba['left']),'top':Math['min'](_0xbd7676['top'],_0x472bba['top']),'right':Math['max'](_0xbd7676['right'],_0x472bba['right']),'bottom':Math['max'](_0xbd7676['bottom'],_0x472bba['bottom'])});let _0xf8f821=getScrollMargins(this['view']),_0x952755={'left':_0xbd7676['left']-_0xf8f821['left'],'top':_0xbd7676['top']-_0xf8f821['top'],'right':_0xbd7676['right']+_0xf8f821['right'],'bottom':_0xbd7676['bottom']+_0xf8f821['bottom']},{offsetWidth:_0x19d80e,offsetHeight:_0x16632a}=this['view']['scrollDOM'];scrollRectIntoView(this['view']['scrollDOM'],_0x952755,_0x514a6b['head']<_0x514a6b['anchor']?-0x1:0x1,_0x21f211['x'],_0x21f211['y'],Math['max'](Math['min'](_0x21f211['xMargin'],_0x19d80e),-_0x19d80e),Math['max'](Math['min'](_0x21f211['yMargin'],_0x16632a),-_0x16632a),this['view']['textDirection']==Direction['LTR']);}}function betweenUneditable(_0x177005){return 0x1==_0x177005['node']['nodeType']&&_0x177005['node']['firstChild']&&(0x0==_0x177005['offset']||'false'==_0x177005['node']['childNodes'][_0x177005['offset']-0x1]['contentEditable'])&&(_0x177005['offset']==_0x177005['node']['childNodes']['length']||'false'==_0x177005['node']['childNodes'][_0x177005['offset']]['contentEditable']);}function findCompositionNode(_0xab0a80,_0x1882b9){let _0x53ff01=_0xab0a80['observer']['selectionRange'];if(!_0x53ff01['focusNode'])return null;let _0x162e8b=textNodeBefore(_0x53ff01['focusNode'],_0x53ff01['focusOffset']),_0x244860=textNodeAfter(_0x53ff01['focusNode'],_0x53ff01['focusOffset']),_0x55ed05=_0x162e8b||_0x244860;if(_0x244860&&_0x162e8b&&_0x244860['node']!=_0x162e8b['node']){let _0x5f3462=ContentView['get'](_0x244860['node']);if(!_0x5f3462||_0x5f3462 instanceof TextView&&_0x5f3462['text']!=_0x244860['node']['nodeValue'])_0x55ed05=_0x244860;else{if(_0xab0a80['docView']['lastCompositionAfterCursor']){let _0x3335ef=ContentView['get'](_0x162e8b['node']);!_0x3335ef||_0x3335ef instanceof TextView&&_0x3335ef['text']!=_0x162e8b['node']['nodeValue']||(_0x55ed05=_0x244860);}}}if(_0xab0a80['docView']['lastCompositionAfterCursor']=_0x55ed05!=_0x162e8b,!_0x55ed05)return null;let _0x53217b=_0x1882b9-_0x55ed05['offset'];return{'from':_0x53217b,'to':_0x53217b+_0x55ed05['node']['nodeValue']['length'],'node':_0x55ed05['node']};}function findCompositionRange(_0x22f3fa,_0x554948,_0x53d5ba){let _0x24abfd=findCompositionNode(_0x22f3fa,_0x53d5ba);if(!_0x24abfd)return null;let {node:_0x199d71,from:_0x4d02fc,to:_0x4ca84d}=_0x24abfd,_0x3a8768=_0x199d71['nodeValue'];if(/[\n\r]/['test'](_0x3a8768))return null;if(_0x22f3fa['state']['doc']['sliceString'](_0x24abfd['from'],_0x24abfd['to'])!=_0x3a8768)return null;let _0x2e2857=_0x554948['invertedDesc'],_0x1058b6=new ChangedRange(_0x2e2857['mapPos'](_0x4d02fc),_0x2e2857['mapPos'](_0x4ca84d),_0x4d02fc,_0x4ca84d),_0x4eed96=[];for(let _0x429914=_0x199d71['parentNode'];;_0x429914=_0x429914['parentNode']){let _0x1741f3=ContentView['get'](_0x429914);if(_0x1741f3 instanceof MarkView)_0x4eed96['push']({'node':_0x429914,'deco':_0x1741f3['mark']});else{if(_0x1741f3 instanceof LineView||'DIV'==_0x429914['nodeName']&&_0x429914['parentNode']==_0x22f3fa['contentDOM'])return{'range':_0x1058b6,'text':_0x199d71,'marks':_0x4eed96,'line':_0x429914};if(_0x429914==_0x22f3fa['contentDOM'])return null;_0x4eed96['push']({'node':_0x429914,'deco':new MarkDecoration({'inclusive':!0x0,'attributes':getAttrs$1(_0x429914),'tagName':_0x429914['tagName']['toLowerCase']()})});}}}function nextToUneditable(_0x32b262,_0x30be9f){return 0x1!=_0x32b262['nodeType']?0x0:(_0x30be9f&&'false'==_0x32b262['childNodes'][_0x30be9f-0x1]['contentEditable']?0x1:0x0)|(_0x30be9f<_0x32b262['childNodes']['length']&&'false'==_0x32b262['childNodes'][_0x30be9f]['contentEditable']?0x2:0x0);}let DecorationComparator$1=class{constructor(){this['changes']=[];}['compareRange'](_0x441e86,_0x5a061a){addRange(_0x441e86,_0x5a061a,this['changes']);}['comparePoint'](_0x845a,_0xfb6989){addRange(_0x845a,_0xfb6989,this['changes']);}['boundChange'](_0x4ba424){addRange(_0x4ba424,_0x4ba424,this['changes']);}};function findChangedDeco(_0x490f11,_0x396bba,_0x2e4efb){let _0x331c77=new DecorationComparator$1();return RangeSet['compare'](_0x490f11,_0x396bba,_0x2e4efb,_0x331c77),_0x331c77['changes'];}function inUneditable(_0x2dc0cc,_0x1396ee){for(let _0x37944e=_0x2dc0cc;_0x37944e&&_0x37944e!=_0x1396ee;_0x37944e=_0x37944e['assignedSlot']||_0x37944e['parentNode'])if(0x1==_0x37944e['nodeType']&&'false'==_0x37944e['contentEditable'])return!0x0;return!0x1;}function touchesComposition(_0x183be8,_0x71e0e9){let _0x47995f=!0x1;return _0x71e0e9&&_0x183be8['iterChangedRanges']((_0x4700a1,_0x308ebe)=>{_0x4700a1<_0x71e0e9['to']&&_0x308ebe>_0x71e0e9['from']&&(_0x47995f=!0x0);}),_0x47995f;}function groupAt(_0x230617,_0x2d9402,_0x4ce0be=0x1){let _0x742d1f=_0x230617['charCategorizer'](_0x2d9402),_0x6b59e2=_0x230617['doc']['lineAt'](_0x2d9402),_0x3e8567=_0x2d9402-_0x6b59e2['from'];if(0x0==_0x6b59e2['length'])return EditorSelection['cursor'](_0x2d9402);0x0==_0x3e8567?_0x4ce0be=0x1:_0x3e8567==_0x6b59e2['length']&&(_0x4ce0be=-0x1);let _0x1cf5b2=_0x3e8567,_0x2dda78=_0x3e8567;_0x4ce0be<0x0?_0x1cf5b2=findClusterBreak(_0x6b59e2['text'],_0x3e8567,!0x1):_0x2dda78=findClusterBreak(_0x6b59e2['text'],_0x3e8567);let _0x1c1235=_0x742d1f(_0x6b59e2['text']['slice'](_0x1cf5b2,_0x2dda78));for(;_0x1cf5b2>0x0;){let _0x15cde0=findClusterBreak(_0x6b59e2['text'],_0x1cf5b2,!0x1);if(_0x742d1f(_0x6b59e2['text']['slice'](_0x15cde0,_0x1cf5b2))!=_0x1c1235)break;_0x1cf5b2=_0x15cde0;}for(;_0x2dda78<_0x6b59e2['length'];){let _0x368ff4=findClusterBreak(_0x6b59e2['text'],_0x2dda78);if(_0x742d1f(_0x6b59e2['text']['slice'](_0x2dda78,_0x368ff4))!=_0x1c1235)break;_0x2dda78=_0x368ff4;}return EditorSelection['range'](_0x1cf5b2+_0x6b59e2['from'],_0x2dda78+_0x6b59e2['from']);}function getdx(_0x2db9f5,_0x184ca6){return _0x184ca6['left']>_0x2db9f5?_0x184ca6['left']-_0x2db9f5:Math['max'](0x0,_0x2db9f5-_0x184ca6['right']);}function getdy(_0x24c5b1,_0x38f568){return _0x38f568['top']>_0x24c5b1?_0x38f568['top']-_0x24c5b1:Math['max'](0x0,_0x24c5b1-_0x38f568['bottom']);}function yOverlap(_0x197ffa,_0x1f49bf){return _0x197ffa['top']<_0x1f49bf['bottom']-0x1&&_0x197ffa['bottom']>_0x1f49bf['top']+0x1;}function upTop(_0x492792,_0x3405cf){return _0x3405cf<_0x492792['top']?{'top':_0x3405cf,'left':_0x492792['left'],'right':_0x492792['right'],'bottom':_0x492792['bottom']}:_0x492792;}function upBot(_0x5bfc66,_0x2ffd3a){return _0x2ffd3a>_0x5bfc66['bottom']?{'top':_0x5bfc66['top'],'left':_0x5bfc66['left'],'right':_0x5bfc66['right'],'bottom':_0x2ffd3a}:_0x5bfc66;}function domPosAtCoords(_0x5e1757,_0x102b52,_0x8a1d20){let _0x54f9b5,_0x46ec1d,_0x544682,_0x77f720,_0x2d721d,_0x1d1799,_0x51bbea,_0x19a28d,_0x284bf3=!0x1;for(let _0xe10dd0=_0x5e1757['firstChild'];_0xe10dd0;_0xe10dd0=_0xe10dd0['nextSibling']){let _0x2d6bd4=clientRectsFor(_0xe10dd0);for(let _0x4581b5=0x0;_0x4581b5<_0x2d6bd4['length'];_0x4581b5++){let _0xbb2ddb=_0x2d6bd4[_0x4581b5];_0x46ec1d&&yOverlap(_0x46ec1d,_0xbb2ddb)&&(_0xbb2ddb=upTop(upBot(_0xbb2ddb,_0x46ec1d['bottom']),_0x46ec1d['top']));let _0x35c2e4=getdx(_0x102b52,_0xbb2ddb),_0x12c9e4=getdy(_0x8a1d20,_0xbb2ddb);if(0x0==_0x35c2e4&&0x0==_0x12c9e4)return 0x3==_0xe10dd0['nodeType']?domPosInText(_0xe10dd0,_0x102b52,_0x8a1d20):domPosAtCoords(_0xe10dd0,_0x102b52,_0x8a1d20);(!_0x54f9b5||_0x77f720>_0x12c9e4||_0x77f720==_0x12c9e4&&_0x544682>_0x35c2e4)&&(_0x54f9b5=_0xe10dd0,_0x46ec1d=_0xbb2ddb,_0x544682=_0x35c2e4,_0x77f720=_0x12c9e4,_0x284bf3=!_0x35c2e4||(_0x102b52<_0xbb2ddb['left']?_0x4581b5>0x0:_0x4581b5<_0x2d6bd4['length']-0x1)),0x0==_0x35c2e4?_0x8a1d20>_0xbb2ddb['bottom']&&(!_0x51bbea||_0x51bbea['bottom']<_0xbb2ddb['bottom'])?(_0x2d721d=_0xe10dd0,_0x51bbea=_0xbb2ddb):_0x8a1d20<_0xbb2ddb['top']&&(!_0x19a28d||_0x19a28d['top']>_0xbb2ddb['top'])&&(_0x1d1799=_0xe10dd0,_0x19a28d=_0xbb2ddb):_0x51bbea&&yOverlap(_0x51bbea,_0xbb2ddb)?_0x51bbea=upBot(_0x51bbea,_0xbb2ddb['bottom']):_0x19a28d&&yOverlap(_0x19a28d,_0xbb2ddb)&&(_0x19a28d=upTop(_0x19a28d,_0xbb2ddb['top']));}}if(_0x51bbea&&_0x51bbea['bottom']>=_0x8a1d20?(_0x54f9b5=_0x2d721d,_0x46ec1d=_0x51bbea):_0x19a28d&&_0x19a28d['top']<=_0x8a1d20&&(_0x54f9b5=_0x1d1799,_0x46ec1d=_0x19a28d),!_0x54f9b5)return{'node':_0x5e1757,'offset':0x0};let _0x1ebe77=Math['max'](_0x46ec1d['left'],Math['min'](_0x46ec1d['right'],_0x102b52));return 0x3==_0x54f9b5['nodeType']?domPosInText(_0x54f9b5,_0x1ebe77,_0x8a1d20):_0x284bf3&&'false'!=_0x54f9b5['contentEditable']?domPosAtCoords(_0x54f9b5,_0x1ebe77,_0x8a1d20):{'node':_0x5e1757,'offset':Array['prototype']['indexOf']['call'](_0x5e1757['childNodes'],_0x54f9b5)+(_0x102b52>=(_0x46ec1d['left']+_0x46ec1d['right'])/0x2?0x1:0x0)};}function domPosInText(_0x247784,_0x2482f9,_0x372f6c){let _0xc650dc=_0x247784['nodeValue']['length'],_0x3502be=-0x1,_0x54e6dd=0x3b9aca00,_0x7208ed=0x0;for(let _0x322854=0x0;_0x322854<_0xc650dc;_0x322854++){let _0x212bb0=textRange(_0x247784,_0x322854,_0x322854+0x1)['getClientRects']();for(let _0x4df49a=0x0;_0x4df49a<_0x212bb0['length'];_0x4df49a++){let _0x24139a=_0x212bb0[_0x4df49a];if(_0x24139a['top']==_0x24139a['bottom'])continue;_0x7208ed||(_0x7208ed=_0x2482f9-_0x24139a['left']);let _0x8e5b60=(_0x24139a['top']>_0x372f6c?_0x24139a['top']-_0x372f6c:_0x372f6c-_0x24139a['bottom'])-0x1;if(_0x24139a['left']-0x1<=_0x2482f9&&_0x24139a['right']+0x1>=_0x2482f9&&_0x8e5b60<_0x54e6dd){let _0x1a16f8=_0x2482f9>=(_0x24139a['left']+_0x24139a['right'])/0x2,_0x2a9950=_0x1a16f8;(browser['chrome']||browser['gecko'])&&(textRange(_0x247784,_0x322854)['getBoundingClientRect']()['left']==_0x24139a['right']&&(_0x2a9950=!_0x1a16f8));if(_0x8e5b60<=0x0)return{'node':_0x247784,'offset':_0x322854+(_0x2a9950?0x1:0x0)};_0x3502be=_0x322854+(_0x2a9950?0x1:0x0),_0x54e6dd=_0x8e5b60;}}}return{'node':_0x247784,'offset':_0x3502be>-0x1?_0x3502be:_0x7208ed>0x0?_0x247784['nodeValue']['length']:0x0};}function posAtCoords(_0x4b3fd1,_0x3da121,_0x241d8a,_0x58b8b1=-0x1){var _0x17a958,_0x1893c0;let _0x39cedb,_0xfae022=_0x4b3fd1['contentDOM']['getBoundingClientRect'](),_0x5a9658=_0xfae022['top']+_0x4b3fd1['viewState']['paddingTop'],{docHeight:_0x403b85}=_0x4b3fd1['viewState'],{x:_0x273a58,y:_0xa03982}=_0x3da121,_0x148cc5=_0xa03982-_0x5a9658;if(_0x148cc5<0x0)return 0x0;if(_0x148cc5>_0x403b85)return _0x4b3fd1['state']['doc']['length'];for(let _0x372550=_0x4b3fd1['viewState']['heightOracle']['textHeight']/0x2,_0x1f4086=!0x1;_0x39cedb=_0x4b3fd1['elementAtHeight'](_0x148cc5),_0x39cedb['type']!=BlockType['Text'];)for(;_0x148cc5=_0x58b8b1>0x0?_0x39cedb['bottom']+_0x372550:_0x39cedb['top']-_0x372550,!(_0x148cc5>=0x0&&_0x148cc5<=_0x403b85);){if(_0x1f4086)return _0x241d8a?null:0x0;_0x1f4086=!0x0,_0x58b8b1=-_0x58b8b1;}_0xa03982=_0x5a9658+_0x148cc5;let _0x5b9498=_0x39cedb['from'];if(_0x5b9498<_0x4b3fd1['viewport']['from'])return 0x0==_0x4b3fd1['viewport']['from']?0x0:_0x241d8a?null:posAtCoordsImprecise(_0x4b3fd1,_0xfae022,_0x39cedb,_0x273a58,_0xa03982);if(_0x5b9498>_0x4b3fd1['viewport']['to'])return _0x4b3fd1['viewport']['to']==_0x4b3fd1['state']['doc']['length']?_0x4b3fd1['state']['doc']['length']:_0x241d8a?null:posAtCoordsImprecise(_0x4b3fd1,_0xfae022,_0x39cedb,_0x273a58,_0xa03982);let _0x4430fe=_0x4b3fd1['dom']['ownerDocument'],_0x343439=_0x4b3fd1['root']['elementFromPoint']?_0x4b3fd1['root']:_0x4430fe,_0x1d5fa7=_0x343439['elementFromPoint'](_0x273a58,_0xa03982);_0x1d5fa7&&!_0x4b3fd1['contentDOM']['contains'](_0x1d5fa7)&&(_0x1d5fa7=null),_0x1d5fa7||(_0x273a58=Math['max'](_0xfae022['left']+0x1,Math['min'](_0xfae022['right']-0x1,_0x273a58)),_0x1d5fa7=_0x343439['elementFromPoint'](_0x273a58,_0xa03982),_0x1d5fa7&&!_0x4b3fd1['contentDOM']['contains'](_0x1d5fa7)&&(_0x1d5fa7=null));let _0x2d1755,_0x480ee1=-0x1;if(_0x1d5fa7&&0x0!=(null===(_0x17a958=_0x4b3fd1['docView']['nearest'](_0x1d5fa7))||void 0x0===_0x17a958?void 0x0:_0x17a958['isEditable'])){if(_0x4430fe['caretPositionFromPoint']){let _0xa39e59=_0x4430fe['caretPositionFromPoint'](_0x273a58,_0xa03982);_0xa39e59&&({offsetNode:_0x2d1755,offset:_0x480ee1}=_0xa39e59);}else{if(_0x4430fe['caretRangeFromPoint']){let _0x2d7d6a=_0x4430fe['caretRangeFromPoint'](_0x273a58,_0xa03982);_0x2d7d6a&&({startContainer:_0x2d1755,startOffset:_0x480ee1}=_0x2d7d6a);}}_0x2d1755&&(!_0x4b3fd1['contentDOM']['contains'](_0x2d1755)||browser['safari']&&isSuspiciousSafariCaretResult(_0x2d1755,_0x480ee1,_0x273a58)||browser['chrome']&&isSuspiciousChromeCaretResult(_0x2d1755,_0x480ee1,_0x273a58))&&(_0x2d1755=void 0x0),_0x2d1755&&(_0x480ee1=Math['min'](maxOffset(_0x2d1755),_0x480ee1));}if(!_0x2d1755||!_0x4b3fd1['docView']['dom']['contains'](_0x2d1755)){let _0x4ec969=LineView['find'](_0x4b3fd1['docView'],_0x5b9498);if(!_0x4ec969)return _0x148cc5>_0x39cedb['top']+_0x39cedb['height']/0x2?_0x39cedb['to']:_0x39cedb['from'];({node:_0x2d1755,offset:_0x480ee1}=domPosAtCoords(_0x4ec969['dom'],_0x273a58,_0xa03982));}let _0x369f2f=_0x4b3fd1['docView']['nearest'](_0x2d1755);if(!_0x369f2f)return null;if(_0x369f2f['isWidget']&&0x1==(null===(_0x1893c0=_0x369f2f['dom'])||void 0x0===_0x1893c0?void 0x0:_0x1893c0['nodeType'])){let _0x212e96=_0x369f2f['dom']['getBoundingClientRect']();return _0x3da121['y']<_0x212e96['top']||_0x3da121['y']<=_0x212e96['bottom']&&_0x3da121['x']<=(_0x212e96['left']+_0x212e96['right'])/0x2?_0x369f2f['posAtStart']:_0x369f2f['posAtEnd'];}return _0x369f2f['localPosFromDOM'](_0x2d1755,_0x480ee1)+_0x369f2f['posAtStart'];}function posAtCoordsImprecise(_0x2a7c59,_0x8c64e9,_0x408d50,_0x4753b4,_0x33d57a){let _0x48ee7=Math['round']((_0x4753b4-_0x8c64e9['left'])*_0x2a7c59['defaultCharacterWidth']);if(_0x2a7c59['lineWrapping']&&_0x408d50['height']>1.5*_0x2a7c59['defaultLineHeight']){let _0x193b81=_0x2a7c59['viewState']['heightOracle']['textHeight'];_0x48ee7+=Math['floor']((_0x33d57a-_0x408d50['top']-0.5*(_0x2a7c59['defaultLineHeight']-_0x193b81))/_0x193b81)*_0x2a7c59['viewState']['heightOracle']['lineLength'];}let _0x3a58b6=_0x2a7c59['state']['sliceDoc'](_0x408d50['from'],_0x408d50['to']);return _0x408d50['from']+findColumn(_0x3a58b6,_0x48ee7,_0x2a7c59['state']['tabSize']);}function isEndOfLineBefore(_0x1a2e19,_0x4923e1,_0x2a4525){let _0x3c5ab2,_0x290c8b=_0x1a2e19;if(0x3!=_0x1a2e19['nodeType']||_0x4923e1!=(_0x3c5ab2=_0x1a2e19['nodeValue']['length']))return!0x1;for(;;){let _0x1fb498=_0x290c8b['nextSibling'];if(_0x1fb498){if('BR'==_0x1fb498['nodeName'])break;return!0x1;}{let _0x1b61e0=_0x290c8b['parentNode'];if(!_0x1b61e0||'DIV'==_0x1b61e0['nodeName'])break;_0x290c8b=_0x1b61e0;}}return textRange(_0x1a2e19,_0x3c5ab2-0x1,_0x3c5ab2)['getBoundingClientRect']()['right']>_0x2a4525;}function isSuspiciousSafariCaretResult(_0x51620d,_0x1b83e1,_0x29c451){return isEndOfLineBefore(_0x51620d,_0x1b83e1,_0x29c451);}function isSuspiciousChromeCaretResult(_0xa2d625,_0x4a24a7,_0x5189f0){if(0x0!=_0x4a24a7)return isEndOfLineBefore(_0xa2d625,_0x4a24a7,_0x5189f0);for(let _0x40e07f=_0xa2d625;;){let _0x4223f4=_0x40e07f['parentNode'];if(!_0x4223f4||0x1!=_0x4223f4['nodeType']||_0x4223f4['firstChild']!=_0x40e07f)return!0x1;if(_0x4223f4['classList']['contains']('cm-line'))break;_0x40e07f=_0x4223f4;}return _0x5189f0-(0x1==_0xa2d625['nodeType']?_0xa2d625['getBoundingClientRect']():textRange(_0xa2d625,0x0,Math['max'](_0xa2d625['nodeValue']['length'],0x1))['getBoundingClientRect']())['left']>0x5;}function blockAt(_0x50a392,_0x210e0a,_0x61d6a0){let _0x3f47a0=_0x50a392['lineBlockAt'](_0x210e0a);if(Array['isArray'](_0x3f47a0['type'])){let _0x3c709c;for(let _0x56b130 of _0x3f47a0['type']){if(_0x56b130['from']>_0x210e0a)break;if(!(_0x56b130['to']<_0x210e0a)){if(_0x56b130['from']<_0x210e0a&&_0x56b130['to']>_0x210e0a)return _0x56b130;_0x3c709c&&(_0x56b130['type']!=BlockType['Text']||_0x3c709c['type']==_0x56b130['type']&&!(_0x61d6a0<0x0?_0x56b130['from']<_0x210e0a:_0x56b130['to']>_0x210e0a))||(_0x3c709c=_0x56b130);}}return _0x3c709c||_0x3f47a0;}return _0x3f47a0;}function moveToLineBoundary(_0x22ddfd,_0x56bce6,_0x5a47cc,_0xaaf7fb){let _0x30b4cd=blockAt(_0x22ddfd,_0x56bce6['head'],_0x56bce6['assoc']||-0x1),_0x15c82e=_0xaaf7fb&&_0x30b4cd['type']==BlockType['Text']&&(_0x22ddfd['lineWrapping']||_0x30b4cd['widgetLineBreaks'])?_0x22ddfd['coordsAtPos'](_0x56bce6['assoc']<0x0&&_0x56bce6['head']>_0x30b4cd['from']?_0x56bce6['head']-0x1:_0x56bce6['head']):null;if(_0x15c82e){let _0x4d7e2e=_0x22ddfd['dom']['getBoundingClientRect'](),_0x2d89d5=_0x22ddfd['textDirectionAt'](_0x30b4cd['from']),_0x441762=_0x22ddfd['posAtCoords']({'x':_0x5a47cc==(_0x2d89d5==Direction['LTR'])?_0x4d7e2e['right']-0x1:_0x4d7e2e['left']+0x1,'y':(_0x15c82e['top']+_0x15c82e['bottom'])/0x2});if(null!=_0x441762)return EditorSelection['cursor'](_0x441762,_0x5a47cc?-0x1:0x1);}return EditorSelection['cursor'](_0x5a47cc?_0x30b4cd['to']:_0x30b4cd['from'],_0x5a47cc?-0x1:0x1);}function moveByChar(_0x538027,_0x2b82f4,_0xad3bae,_0x9c7de0){let _0x354a6e=_0x538027['state']['doc']['lineAt'](_0x2b82f4['head']),_0x12f660=_0x538027['bidiSpans'](_0x354a6e),_0x5d9eda=_0x538027['textDirectionAt'](_0x354a6e['from']);for(let _0x904fca=_0x2b82f4,_0x9b8001=null;;){let _0x379088=moveVisually(_0x354a6e,_0x12f660,_0x5d9eda,_0x904fca,_0xad3bae),_0x3fcf92=movedOver;if(!_0x379088){if(_0x354a6e['number']==(_0xad3bae?_0x538027['state']['doc']['lines']:0x1))return _0x904fca;_0x3fcf92='\x0a',_0x354a6e=_0x538027['state']['doc']['line'](_0x354a6e['number']+(_0xad3bae?0x1:-0x1)),_0x12f660=_0x538027['bidiSpans'](_0x354a6e),_0x379088=_0x538027['visualLineSide'](_0x354a6e,!_0xad3bae);}if(_0x9b8001){if(!_0x9b8001(_0x3fcf92))return _0x904fca;}else{if(!_0x9c7de0)return _0x379088;_0x9b8001=_0x9c7de0(_0x3fcf92);}_0x904fca=_0x379088;}}function byGroup(_0x46d693,_0x5e9c3c,_0x3fcfb9){let _0x3fc34f=_0x46d693['state']['charCategorizer'](_0x5e9c3c),_0x3b8ada=_0x3fc34f(_0x3fcfb9);return _0x3f758e=>{let _0x83aa62=_0x3fc34f(_0x3f758e);return _0x3b8ada==CharCategory['Space']&&(_0x3b8ada=_0x83aa62),_0x3b8ada==_0x83aa62;};}function moveVertically(_0x1f95dc,_0x1cc351,_0x41b393,_0x318a01){let _0x450bbe=_0x1cc351['head'],_0xfe52ce=_0x41b393?0x1:-0x1;if(_0x450bbe==(_0x41b393?_0x1f95dc['state']['doc']['length']:0x0))return EditorSelection['cursor'](_0x450bbe,_0x1cc351['assoc']);let _0x24686c,_0x593a14=_0x1cc351['goalColumn'],_0x3e01e2=_0x1f95dc['contentDOM']['getBoundingClientRect'](),_0x489297=_0x1f95dc['coordsAtPos'](_0x450bbe,_0x1cc351['assoc']||-0x1),_0x5234c5=_0x1f95dc['documentTop'];if(_0x489297)null==_0x593a14&&(_0x593a14=_0x489297['left']-_0x3e01e2['left']),_0x24686c=_0xfe52ce<0x0?_0x489297['top']:_0x489297['bottom'];else{let _0x57240a=_0x1f95dc['viewState']['lineBlockAt'](_0x450bbe);null==_0x593a14&&(_0x593a14=Math['min'](_0x3e01e2['right']-_0x3e01e2['left'],_0x1f95dc['defaultCharacterWidth']*(_0x450bbe-_0x57240a['from']))),_0x24686c=(_0xfe52ce<0x0?_0x57240a['top']:_0x57240a['bottom'])+_0x5234c5;}let _0x12ccf2=_0x3e01e2['left']+_0x593a14,_0x8dad2d=null!=_0x318a01?_0x318a01:_0x1f95dc['viewState']['heightOracle']['textHeight']>>0x1;for(let _0x507813=0x0;;_0x507813+=0xa){let _0xf6e7b2=_0x24686c+(_0x8dad2d+_0x507813)*_0xfe52ce,_0x564b6b=posAtCoords(_0x1f95dc,{'x':_0x12ccf2,'y':_0xf6e7b2},!0x1,_0xfe52ce);if(_0xf6e7b2<_0x3e01e2['top']||_0xf6e7b2>_0x3e01e2['bottom']||(_0xfe52ce<0x0?_0x564b6b<_0x450bbe:_0x564b6b>_0x450bbe)){let _0x4058c6=_0x1f95dc['docView']['coordsForChar'](_0x564b6b),_0x497073=!_0x4058c6||_0xf6e7b2<_0x4058c6['top']?-0x1:0x1;return EditorSelection['cursor'](_0x564b6b,_0x497073,void 0x0,_0x593a14);}}}function skipAtomicRanges(_0x177048,_0x966592,_0x3529e2){for(;;){let _0x18c3e3=0x0;for(let _0x29bf3a of _0x177048)_0x29bf3a['between'](_0x966592-0x1,_0x966592+0x1,(_0x43d738,_0x155320,_0x33b066)=>{if(_0x966592>_0x43d738&&_0x966592<_0x155320){let _0x80cdfe=_0x18c3e3||_0x3529e2||(_0x966592-_0x43d738<_0x155320-_0x966592?-0x1:0x1);_0x966592=_0x80cdfe<0x0?_0x43d738:_0x155320,_0x18c3e3=_0x80cdfe;}});if(!_0x18c3e3)return _0x966592;}}function skipAtomsForSelection(_0x2efc9f,_0x54f2f8){let _0x179317=null;for(let _0x29ee7b=0x0;_0x29ee7b<_0x54f2f8['ranges']['length'];_0x29ee7b++){let _0x46b105=_0x54f2f8['ranges'][_0x29ee7b],_0x381366=null;if(_0x46b105['empty']){let _0x21a608=skipAtomicRanges(_0x2efc9f,_0x46b105['from'],0x0);_0x21a608!=_0x46b105['from']&&(_0x381366=EditorSelection['cursor'](_0x21a608,-0x1));}else{let _0x518ffc=skipAtomicRanges(_0x2efc9f,_0x46b105['from'],-0x1),_0x401477=skipAtomicRanges(_0x2efc9f,_0x46b105['to'],0x1);_0x518ffc==_0x46b105['from']&&_0x401477==_0x46b105['to']||(_0x381366=EditorSelection['range'](_0x46b105['from']==_0x46b105['anchor']?_0x518ffc:_0x401477,_0x46b105['from']==_0x46b105['head']?_0x518ffc:_0x401477));}_0x381366&&(_0x179317||(_0x179317=_0x54f2f8['ranges']['slice']()),_0x179317[_0x29ee7b]=_0x381366);}return _0x179317?EditorSelection['create'](_0x179317,_0x54f2f8['mainIndex']):_0x54f2f8;}function skipAtoms(_0x3b19df,_0x490a07,_0x1a1f24){let _0x4767b3=skipAtomicRanges(_0x3b19df['state']['facet'](atomicRanges)['map'](_0x2cad89=>_0x2cad89(_0x3b19df)),_0x1a1f24['from'],_0x490a07['head']>_0x1a1f24['from']?-0x1:0x1);return _0x4767b3==_0x1a1f24['from']?_0x1a1f24:EditorSelection['cursor'](_0x4767b3,_0x4767b3<_0x1a1f24['from']?0x1:-0x1);}const LineBreakPlaceholder='';class DOMReader{constructor(_0x14b53a,_0x1fd960){this['points']=_0x14b53a,this['text']='',this['lineSeparator']=_0x1fd960['facet'](EditorState['lineSeparator']);}['append'](_0x84b5c4){this['text']+=_0x84b5c4;}['lineBreak'](){this['text']+=LineBreakPlaceholder;}['readRange'](_0x39e5cd,_0x2b05ca){if(!_0x39e5cd)return this;let _0x5a2e4b=_0x39e5cd['parentNode'];for(let _0x177ae8=_0x39e5cd;;){this['findPointBefore'](_0x5a2e4b,_0x177ae8);let _0xc5dd66=this['text']['length'];this['readNode'](_0x177ae8);let _0x338ad4=_0x177ae8['nextSibling'];if(_0x338ad4==_0x2b05ca)break;let _0x9b7745=ContentView['get'](_0x177ae8),_0x5e4de4=ContentView['get'](_0x338ad4);(_0x9b7745&&_0x5e4de4?_0x9b7745['breakAfter']:(_0x9b7745?_0x9b7745['breakAfter']:isBlockElement(_0x177ae8))||isBlockElement(_0x338ad4)&&('BR'!=_0x177ae8['nodeName']||_0x177ae8['cmIgnore'])&&this['text']['length']>_0xc5dd66)&&!isEmptyToEnd(_0x338ad4,_0x2b05ca)&&this['lineBreak'](),_0x177ae8=_0x338ad4;}return this['findPointBefore'](_0x5a2e4b,_0x2b05ca),this;}['readTextNode'](_0x36b7b1){let _0x16d0b3=_0x36b7b1['nodeValue'];for(let _0x1e9f74 of this['points'])_0x1e9f74['node']==_0x36b7b1&&(_0x1e9f74['pos']=this['text']['length']+Math['min'](_0x1e9f74['offset'],_0x16d0b3['length']));for(let _0x658fd8=0x0,_0x86d0aa=this['lineSeparator']?null:/\r\n?|\n/g;;){let _0x1f461c,_0x3dc222=-0x1,_0x592340=0x1;if(this['lineSeparator']?(_0x3dc222=_0x16d0b3['indexOf'](this['lineSeparator'],_0x658fd8),_0x592340=this['lineSeparator']['length']):(_0x1f461c=_0x86d0aa['exec'](_0x16d0b3))&&(_0x3dc222=_0x1f461c['index'],_0x592340=_0x1f461c[0x0]['length']),this['append'](_0x16d0b3['slice'](_0x658fd8,_0x3dc222<0x0?_0x16d0b3['length']:_0x3dc222)),_0x3dc222<0x0)break;if(this['lineBreak'](),_0x592340>0x1){for(let _0x294b9d of this['points'])_0x294b9d['node']==_0x36b7b1&&_0x294b9d['pos']>this['text']['length']&&(_0x294b9d['pos']-=_0x592340-0x1);}_0x658fd8=_0x3dc222+_0x592340;}}['readNode'](_0x13761d){if(_0x13761d['cmIgnore'])return;let _0x1d381a=ContentView['get'](_0x13761d),_0x2390ec=_0x1d381a&&_0x1d381a['overrideDOMText'];if(null!=_0x2390ec){this['findPointInside'](_0x13761d,_0x2390ec['length']);for(let _0x2313aa=_0x2390ec['iter']();!_0x2313aa['next']()['done'];)_0x2313aa['lineBreak']?this['lineBreak']():this['append'](_0x2313aa['value']);}else 0x3==_0x13761d['nodeType']?this['readTextNode'](_0x13761d):'BR'==_0x13761d['nodeName']?_0x13761d['nextSibling']&&this['lineBreak']():0x1==_0x13761d['nodeType']&&this['readRange'](_0x13761d['firstChild'],null);}['findPointBefore'](_0x1e4eb2,_0x5cf7dc){for(let _0xaeb026 of this['points'])_0xaeb026['node']==_0x1e4eb2&&_0x1e4eb2['childNodes'][_0xaeb026['offset']]==_0x5cf7dc&&(_0xaeb026['pos']=this['text']['length']);}['findPointInside'](_0x438d80,_0x2346e4){for(let _0x2f7907 of this['points'])(0x3==_0x438d80['nodeType']?_0x2f7907['node']==_0x438d80:_0x438d80['contains'](_0x2f7907['node']))&&(_0x2f7907['pos']=this['text']['length']+(isAtEnd(_0x438d80,_0x2f7907['node'],_0x2f7907['offset'])?_0x2346e4:0x0));}}function isAtEnd(_0x23b906,_0x4ea1ad,_0x4d3487){for(;;){if(!_0x4ea1ad||_0x4d3487<maxOffset(_0x4ea1ad))return!0x1;if(_0x4ea1ad==_0x23b906)return!0x0;_0x4d3487=domIndex(_0x4ea1ad)+0x1,_0x4ea1ad=_0x4ea1ad['parentNode'];}}function isEmptyToEnd(_0xed607a,_0x3cbf5b){let _0x245746;for(;_0xed607a!=_0x3cbf5b&&_0xed607a;_0xed607a=_0xed607a['nextSibling']){let _0x9778aa=ContentView['get'](_0xed607a);if(!(null==_0x9778aa?void 0x0:_0x9778aa['isWidget'])&&!_0xed607a['cmIgnore'])return!0x1;_0x9778aa&&(_0x245746||(_0x245746=[]))['push'](_0x9778aa);}if(_0x245746)for(let _0x2e9829 of _0x245746){let _0x3853ee=_0x2e9829['overrideDOMText'];if(null==_0x3853ee?void 0x0:_0x3853ee['length'])return!0x1;}return!0x0;}class DOMPoint{constructor(_0x1791d9,_0x32a8f6){this['node']=_0x1791d9,this['offset']=_0x32a8f6,this['pos']=-0x1;}}class DOMChange{constructor(_0x55fc0a,_0x436097,_0x1dc884,_0x395c63){this['typeOver']=_0x395c63,this['bounds']=null,this['text']='',this['domChanged']=_0x436097>-0x1;let {impreciseHead:_0x4c35dc,impreciseAnchor:_0x5bd818}=_0x55fc0a['docView'];if(_0x55fc0a['state']['readOnly']&&_0x436097>-0x1)this['newSel']=null;else{if(_0x436097>-0x1&&(this['bounds']=_0x55fc0a['docView']['domBoundsAround'](_0x436097,_0x1dc884,0x0))){let _0x458071=_0x4c35dc||_0x5bd818?[]:selectionPoints(_0x55fc0a),_0x38f9d2=new DOMReader(_0x458071,_0x55fc0a['state']);_0x38f9d2['readRange'](this['bounds']['startDOM'],this['bounds']['endDOM']),this['text']=_0x38f9d2['text'],this['newSel']=selectionFromPoints(_0x458071,this['bounds']['from']);}else{let _0x4bf9c5=_0x55fc0a['observer']['selectionRange'],_0x5e3c21=_0x4c35dc&&_0x4c35dc['node']==_0x4bf9c5['focusNode']&&_0x4c35dc['offset']==_0x4bf9c5['focusOffset']||!contains(_0x55fc0a['contentDOM'],_0x4bf9c5['focusNode'])?_0x55fc0a['state']['selection']['main']['head']:_0x55fc0a['docView']['posFromDOM'](_0x4bf9c5['focusNode'],_0x4bf9c5['focusOffset']),_0x450854=_0x5bd818&&_0x5bd818['node']==_0x4bf9c5['anchorNode']&&_0x5bd818['offset']==_0x4bf9c5['anchorOffset']||!contains(_0x55fc0a['contentDOM'],_0x4bf9c5['anchorNode'])?_0x55fc0a['state']['selection']['main']['anchor']:_0x55fc0a['docView']['posFromDOM'](_0x4bf9c5['anchorNode'],_0x4bf9c5['anchorOffset']),_0x51a73f=_0x55fc0a['viewport'];if((browser['ios']||browser['chrome'])&&_0x55fc0a['state']['selection']['main']['empty']&&_0x5e3c21!=_0x450854&&(_0x51a73f['from']>0x0||_0x51a73f['to']<_0x55fc0a['state']['doc']['length'])){let _0x2c44fb=Math['min'](_0x5e3c21,_0x450854),_0x2dd620=Math['max'](_0x5e3c21,_0x450854),_0x24273f=_0x51a73f['from']-_0x2c44fb,_0xaef0d4=_0x51a73f['to']-_0x2dd620;0x0!=_0x24273f&&0x1!=_0x24273f&&0x0!=_0x2c44fb||0x0!=_0xaef0d4&&-0x1!=_0xaef0d4&&_0x2dd620!=_0x55fc0a['state']['doc']['length']||(_0x5e3c21=0x0,_0x450854=_0x55fc0a['state']['doc']['length']);}this['newSel']=EditorSelection['single'](_0x450854,_0x5e3c21);}}}}function applyDOMChange(_0x476c8a,_0x2f7339){let _0x56b4d1,{newSel:_0x4c0c71}=_0x2f7339,_0x4e09e5=_0x476c8a['state']['selection']['main'],_0x438e97=_0x476c8a['inputState']['lastKeyTime']>Date['now']()-0x64?_0x476c8a['inputState']['lastKeyCode']:-0x1;if(_0x2f7339['bounds']){let {from:_0x28c20c,to:_0xe178ea}=_0x2f7339['bounds'],_0xebd824=_0x4e09e5['from'],_0x4f4857=null;(0x8===_0x438e97||browser['android']&&_0x2f7339['text']['length']<_0xe178ea-_0x28c20c)&&(_0xebd824=_0x4e09e5['to'],_0x4f4857='end');let _0x452629=findDiff(_0x476c8a['state']['doc']['sliceString'](_0x28c20c,_0xe178ea,LineBreakPlaceholder),_0x2f7339['text'],_0xebd824-_0x28c20c,_0x4f4857);_0x452629&&(browser['chrome']&&0xd==_0x438e97&&_0x452629['toB']==_0x452629['from']+0x2&&_0x2f7339['text']['slice'](_0x452629['from'],_0x452629['toB'])==LineBreakPlaceholder+LineBreakPlaceholder&&_0x452629['toB']--,_0x56b4d1={'from':_0x28c20c+_0x452629['from'],'to':_0x28c20c+_0x452629['toA'],'insert':Text['of'](_0x2f7339['text']['slice'](_0x452629['from'],_0x452629['toB'])['split'](LineBreakPlaceholder))});}else _0x4c0c71&&(!_0x476c8a['hasFocus']&&_0x476c8a['state']['facet'](editable)||_0x4c0c71['main']['eq'](_0x4e09e5))&&(_0x4c0c71=null);if(!_0x56b4d1&&!_0x4c0c71)return!0x1;if(!_0x56b4d1&&_0x2f7339['typeOver']&&!_0x4e09e5['empty']&&_0x4c0c71&&_0x4c0c71['main']['empty']?_0x56b4d1={'from':_0x4e09e5['from'],'to':_0x4e09e5['to'],'insert':_0x476c8a['state']['doc']['slice'](_0x4e09e5['from'],_0x4e09e5['to'])}:(browser['mac']||browser['android'])&&_0x56b4d1&&_0x56b4d1['from']==_0x56b4d1['to']&&_0x56b4d1['from']==_0x4e09e5['head']-0x1&&/^\. ?$/['test'](_0x56b4d1['insert']['toString']())&&'off'==_0x476c8a['contentDOM']['getAttribute']('autocorrect')?(_0x4c0c71&&0x2==_0x56b4d1['insert']['length']&&(_0x4c0c71=EditorSelection['single'](_0x4c0c71['main']['anchor']-0x1,_0x4c0c71['main']['head']-0x1)),_0x56b4d1={'from':_0x56b4d1['from'],'to':_0x56b4d1['to'],'insert':Text['of']([_0x56b4d1['insert']['toString']()['replace']('.','\x20')])}):_0x56b4d1&&_0x56b4d1['from']>=_0x4e09e5['from']&&_0x56b4d1['to']<=_0x4e09e5['to']&&(_0x56b4d1['from']!=_0x4e09e5['from']||_0x56b4d1['to']!=_0x4e09e5['to'])&&_0x4e09e5['to']-_0x4e09e5['from']-(_0x56b4d1['to']-_0x56b4d1['from'])<=0x4?_0x56b4d1={'from':_0x4e09e5['from'],'to':_0x4e09e5['to'],'insert':_0x476c8a['state']['doc']['slice'](_0x4e09e5['from'],_0x56b4d1['from'])['append'](_0x56b4d1['insert'])['append'](_0x476c8a['state']['doc']['slice'](_0x56b4d1['to'],_0x4e09e5['to']))}:browser['chrome']&&_0x56b4d1&&_0x56b4d1['from']==_0x56b4d1['to']&&_0x56b4d1['from']==_0x4e09e5['head']&&'\x0a\x20'==_0x56b4d1['insert']['toString']()&&_0x476c8a['lineWrapping']&&(_0x4c0c71&&(_0x4c0c71=EditorSelection['single'](_0x4c0c71['main']['anchor']-0x1,_0x4c0c71['main']['head']-0x1)),_0x56b4d1={'from':_0x4e09e5['from'],'to':_0x4e09e5['to'],'insert':Text['of'](['\x20'])}),_0x56b4d1)return applyDOMChangeInner(_0x476c8a,_0x56b4d1,_0x4c0c71,_0x438e97);if(_0x4c0c71&&!_0x4c0c71['main']['eq'](_0x4e09e5)){let _0xd66744=!0x1,_0x10c8f5='select';return _0x476c8a['inputState']['lastSelectionTime']>Date['now']()-0x32&&('select'==_0x476c8a['inputState']['lastSelectionOrigin']&&(_0xd66744=!0x0),_0x10c8f5=_0x476c8a['inputState']['lastSelectionOrigin'],'select.pointer'==_0x10c8f5&&(_0x4c0c71=skipAtomsForSelection(_0x476c8a['state']['facet'](atomicRanges)['map'](_0x2b451c=>_0x2b451c(_0x476c8a)),_0x4c0c71))),_0x476c8a['dispatch']({'selection':_0x4c0c71,'scrollIntoView':_0xd66744,'userEvent':_0x10c8f5}),!0x0;}return!0x1;}function applyDOMChangeInner(_0x4f6406,_0x2023d9,_0x31b0f6,_0x4cc20e=-0x1){if(browser['ios']&&_0x4f6406['inputState']['flushIOSKey'](_0x2023d9))return!0x0;let _0x4d7d90=_0x4f6406['state']['selection']['main'];if(browser['android']&&(_0x2023d9['to']==_0x4d7d90['to']&&(_0x2023d9['from']==_0x4d7d90['from']||_0x2023d9['from']==_0x4d7d90['from']-0x1&&'\x20'==_0x4f6406['state']['sliceDoc'](_0x2023d9['from'],_0x4d7d90['from']))&&0x1==_0x2023d9['insert']['length']&&0x2==_0x2023d9['insert']['lines']&&dispatchKey(_0x4f6406['contentDOM'],'Enter',0xd)||(_0x2023d9['from']==_0x4d7d90['from']-0x1&&_0x2023d9['to']==_0x4d7d90['to']&&0x0==_0x2023d9['insert']['length']||0x8==_0x4cc20e&&_0x2023d9['insert']['length']<_0x2023d9['to']-_0x2023d9['from']&&_0x2023d9['to']>_0x4d7d90['head'])&&dispatchKey(_0x4f6406['contentDOM'],'Backspace',0x8)||_0x2023d9['from']==_0x4d7d90['from']&&_0x2023d9['to']==_0x4d7d90['to']+0x1&&0x0==_0x2023d9['insert']['length']&&dispatchKey(_0x4f6406['contentDOM'],'Delete',0x2e)))return!0x0;let _0x2dfae4,_0x1960a9=_0x2023d9['insert']['toString']();_0x4f6406['inputState']['composing']>=0x0&&_0x4f6406['inputState']['composing']++;let _0x4653ef=()=>_0x2dfae4||(_0x2dfae4=applyDefaultInsert(_0x4f6406,_0x2023d9,_0x31b0f6));return _0x4f6406['state']['facet'](inputHandler$1)['some'](_0x4e4e42=>_0x4e4e42(_0x4f6406,_0x2023d9['from'],_0x2023d9['to'],_0x1960a9,_0x4653ef))||_0x4f6406['dispatch'](_0x4653ef()),!0x0;}function applyDefaultInsert(_0x40a195,_0x47043b,_0x18e31d){let _0x14520a,_0x3eaed4=_0x40a195['state'],_0x59c42a=_0x3eaed4['selection']['main'],_0x456761=-0x1;if(_0x47043b['from']==_0x47043b['to']&&_0x47043b['from']<_0x59c42a['from']||_0x47043b['from']>_0x59c42a['to']){let _0x94bfde=_0x47043b['from']<_0x59c42a['from']?-0x1:0x1,_0x509217=_0x94bfde<0x0?_0x59c42a['from']:_0x59c42a['to'],_0x4adf8c=skipAtomicRanges(_0x3eaed4['facet'](atomicRanges)['map'](_0xa13606=>_0xa13606(_0x40a195)),_0x509217,_0x94bfde);_0x47043b['from']==_0x4adf8c&&(_0x456761=_0x4adf8c);}if(_0x456761>-0x1)_0x14520a={'changes':_0x47043b,'selection':EditorSelection['cursor'](_0x47043b['from']+_0x47043b['insert']['length'],-0x1)};else{if(_0x47043b['from']>=_0x59c42a['from']&&_0x47043b['to']<=_0x59c42a['to']&&_0x47043b['to']-_0x47043b['from']>=(_0x59c42a['to']-_0x59c42a['from'])/0x3&&(!_0x18e31d||_0x18e31d['main']['empty']&&_0x18e31d['main']['from']==_0x47043b['from']+_0x47043b['insert']['length'])&&_0x40a195['inputState']['composing']<0x0){let _0x214929=_0x59c42a['from']<_0x47043b['from']?_0x3eaed4['sliceDoc'](_0x59c42a['from'],_0x47043b['from']):'',_0x50e2b6=_0x59c42a['to']>_0x47043b['to']?_0x3eaed4['sliceDoc'](_0x47043b['to'],_0x59c42a['to']):'';_0x14520a=_0x3eaed4['replaceSelection'](_0x40a195['state']['toText'](_0x214929+_0x47043b['insert']['sliceString'](0x0,void 0x0,_0x40a195['state']['lineBreak'])+_0x50e2b6));}else{let _0x260be8=_0x3eaed4['changes'](_0x47043b),_0x5119e7=_0x18e31d&&_0x18e31d['main']['to']<=_0x260be8['newLength']?_0x18e31d['main']:void 0x0;if(_0x3eaed4['selection']['ranges']['length']>0x1&&_0x40a195['inputState']['composing']>=0x0&&_0x47043b['to']<=_0x59c42a['to']&&_0x47043b['to']>=_0x59c42a['to']-0xa){let _0x3afc5d,_0x4b4576=_0x40a195['state']['sliceDoc'](_0x47043b['from'],_0x47043b['to']),_0x50543a=_0x18e31d&&findCompositionNode(_0x40a195,_0x18e31d['main']['head']);if(_0x50543a){let _0x4b40dd=_0x47043b['insert']['length']-(_0x47043b['to']-_0x47043b['from']);_0x3afc5d={'from':_0x50543a['from'],'to':_0x50543a['to']-_0x4b40dd};}else _0x3afc5d=_0x40a195['state']['doc']['lineAt'](_0x59c42a['head']);let _0x3305d1=_0x59c42a['to']-_0x47043b['to'],_0x274f41=_0x59c42a['to']-_0x59c42a['from'];_0x14520a=_0x3eaed4['changeByRange'](_0x34da23=>{if(_0x34da23['from']==_0x59c42a['from']&&_0x34da23['to']==_0x59c42a['to'])return{'changes':_0x260be8,'range':_0x5119e7||_0x34da23['map'](_0x260be8)};let _0x49b36c=_0x34da23['to']-_0x3305d1,_0x912f79=_0x49b36c-_0x4b4576['length'];if(_0x34da23['to']-_0x34da23['from']!=_0x274f41||_0x40a195['state']['sliceDoc'](_0x912f79,_0x49b36c)!=_0x4b4576||_0x34da23['to']>=_0x3afc5d['from']&&_0x34da23['from']<=_0x3afc5d['to'])return{'range':_0x34da23};let _0x2218f8=_0x3eaed4['changes']({'from':_0x912f79,'to':_0x49b36c,'insert':_0x47043b['insert']}),_0x191d0a=_0x34da23['to']-_0x59c42a['to'];return{'changes':_0x2218f8,'range':_0x5119e7?EditorSelection['range'](Math['max'](0x0,_0x5119e7['anchor']+_0x191d0a),Math['max'](0x0,_0x5119e7['head']+_0x191d0a)):_0x34da23['map'](_0x2218f8)};});}else _0x14520a={'changes':_0x260be8,'selection':_0x5119e7&&_0x3eaed4['selection']['replaceRange'](_0x5119e7)};}}let _0x146365='input.type';return(_0x40a195['composing']||_0x40a195['inputState']['compositionPendingChange']&&_0x40a195['inputState']['compositionEndedAt']>Date['now']()-0x32)&&(_0x40a195['inputState']['compositionPendingChange']=!0x1,_0x146365+='.compose',_0x40a195['inputState']['compositionFirstChange']&&(_0x146365+='.start',_0x40a195['inputState']['compositionFirstChange']=!0x1)),_0x3eaed4['update'](_0x14520a,{'userEvent':_0x146365,'scrollIntoView':!0x0});}function findDiff(_0x2c1536,_0x512f59,_0x5add3b,_0xe23d62){let _0x4c924f=Math['min'](_0x2c1536['length'],_0x512f59['length']),_0x2cd9ac=0x0;for(;_0x2cd9ac<_0x4c924f&&_0x2c1536['charCodeAt'](_0x2cd9ac)==_0x512f59['charCodeAt'](_0x2cd9ac);)_0x2cd9ac++;if(_0x2cd9ac==_0x4c924f&&_0x2c1536['length']==_0x512f59['length'])return null;let _0x2b6872=_0x2c1536['length'],_0x48b839=_0x512f59['length'];for(;_0x2b6872>0x0&&_0x48b839>0x0&&_0x2c1536['charCodeAt'](_0x2b6872-0x1)==_0x512f59['charCodeAt'](_0x48b839-0x1);)_0x2b6872--,_0x48b839--;'end'==_0xe23d62&&(_0x5add3b-=_0x2b6872+Math['max'](0x0,_0x2cd9ac-Math['min'](_0x2b6872,_0x48b839))-_0x2cd9ac);if(_0x2b6872<_0x2cd9ac&&_0x2c1536['length']<_0x512f59['length'])_0x2cd9ac-=_0x5add3b<=_0x2cd9ac&&_0x5add3b>=_0x2b6872?_0x2cd9ac-_0x5add3b:0x0,_0x48b839=_0x2cd9ac+(_0x48b839-_0x2b6872),_0x2b6872=_0x2cd9ac;else _0x48b839<_0x2cd9ac&&(_0x2cd9ac-=_0x5add3b<=_0x2cd9ac&&_0x5add3b>=_0x48b839?_0x2cd9ac-_0x5add3b:0x0,_0x2b6872=_0x2cd9ac+(_0x2b6872-_0x48b839),_0x48b839=_0x2cd9ac);return{'from':_0x2cd9ac,'toA':_0x2b6872,'toB':_0x48b839};}function selectionPoints(_0xeacb58){let _0x36778b=[];if(_0xeacb58['root']['activeElement']!=_0xeacb58['contentDOM'])return _0x36778b;let {anchorNode:_0x37a6d0,anchorOffset:_0x19dc86,focusNode:_0xd75d6a,focusOffset:_0x1e16d7}=_0xeacb58['observer']['selectionRange'];return _0x37a6d0&&(_0x36778b['push'](new DOMPoint(_0x37a6d0,_0x19dc86)),_0xd75d6a==_0x37a6d0&&_0x1e16d7==_0x19dc86||_0x36778b['push'](new DOMPoint(_0xd75d6a,_0x1e16d7))),_0x36778b;}function selectionFromPoints(_0x4fe340,_0x223ac0){if(0x0==_0x4fe340['length'])return null;let _0x2c9d1f=_0x4fe340[0x0]['pos'],_0xac28bb=0x2==_0x4fe340['length']?_0x4fe340[0x1]['pos']:_0x2c9d1f;return _0x2c9d1f>-0x1&&_0xac28bb>-0x1?EditorSelection['single'](_0x2c9d1f+_0x223ac0,_0xac28bb+_0x223ac0):null;}class InputState{['setSelectionOrigin'](_0x5514ab){this['lastSelectionOrigin']=_0x5514ab,this['lastSelectionTime']=Date['now']();}constructor(_0x23cc9d){this['view']=_0x23cc9d,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']=_0x23cc9d['hasFocus'],browser['safari']&&_0x23cc9d['contentDOM']['addEventListener']('input',()=>null),browser['gecko']&&firefoxCopyCutHack(_0x23cc9d['contentDOM']['ownerDocument']);}['handleEvent'](_0x4b6613){eventBelongsToEditor(this['view'],_0x4b6613)&&!this['ignoreDuringComposition'](_0x4b6613)&&('keydown'==_0x4b6613['type']&&this['keydown'](_0x4b6613)||(0x0!=this['view']['updateState']?Promise['resolve']()['then'](()=>this['runHandlers'](_0x4b6613['type'],_0x4b6613)):this['runHandlers'](_0x4b6613['type'],_0x4b6613)));}['runHandlers'](_0x478fe4,_0x5f053f){let _0xd924da=this['handlers'][_0x478fe4];if(_0xd924da){for(let _0x32bf95 of _0xd924da['observers'])_0x32bf95(this['view'],_0x5f053f);for(let _0x140e6b of _0xd924da['handlers']){if(_0x5f053f['defaultPrevented'])break;if(_0x140e6b(this['view'],_0x5f053f)){_0x5f053f['preventDefault']();break;}}}}['ensureHandlers'](_0x554392){let _0x10db4a=computeHandlers(_0x554392),_0x4bae26=this['handlers'],_0x56effa=this['view']['contentDOM'];for(let _0x1cb9d6 in _0x10db4a)if('scroll'!=_0x1cb9d6){let _0x14c0de=!_0x10db4a[_0x1cb9d6]['handlers']['length'],_0x538fea=_0x4bae26[_0x1cb9d6];_0x538fea&&_0x14c0de!=!_0x538fea['handlers']['length']&&(_0x56effa['removeEventListener'](_0x1cb9d6,this['handleEvent']),_0x538fea=null),_0x538fea||_0x56effa['addEventListener'](_0x1cb9d6,this['handleEvent'],{'passive':_0x14c0de});}for(let _0x52a6dc in _0x4bae26)'scroll'==_0x52a6dc||_0x10db4a[_0x52a6dc]||_0x56effa['removeEventListener'](_0x52a6dc,this['handleEvent']);this['handlers']=_0x10db4a;}['keydown'](_0x47d30d){if(this['lastKeyCode']=_0x47d30d['keyCode'],this['lastKeyTime']=Date['now'](),0x9==_0x47d30d['keyCode']&&this['tabFocusMode']>-0x1&&(!this['tabFocusMode']||Date['now']()<=this['tabFocusMode']))return!0x0;if(this['tabFocusMode']>0x0&&0x1b!=_0x47d30d['keyCode']&&modifierCodes['indexOf'](_0x47d30d['keyCode'])<0x0&&(this['tabFocusMode']=-0x1),browser['android']&&browser['chrome']&&!_0x47d30d['synthetic']&&(0xd==_0x47d30d['keyCode']||0x8==_0x47d30d['keyCode']))return this['view']['observer']['delayAndroidKey'](_0x47d30d['key'],_0x47d30d['keyCode']),!0x0;let _0xe2268b;return!browser['ios']||_0x47d30d['synthetic']||_0x47d30d['altKey']||_0x47d30d['metaKey']||!((_0xe2268b=PendingKeys['find'](_0x4c554f=>_0x4c554f['keyCode']==_0x47d30d['keyCode']))&&!_0x47d30d['ctrlKey']||EmacsyPendingKeys['indexOf'](_0x47d30d['key'])>-0x1&&_0x47d30d['ctrlKey']&&!_0x47d30d['shiftKey'])?(0xe5!=_0x47d30d['keyCode']&&this['view']['observer']['forceFlush'](),!0x1):(this['pendingIOSKey']=_0xe2268b||_0x47d30d,setTimeout(()=>this['flushIOSKey'](),0xfa),!0x0);}['flushIOSKey'](_0x42e667){let _0xf14b8e=this['pendingIOSKey'];return!!_0xf14b8e&&(!('Enter'==_0xf14b8e['key']&&_0x42e667&&_0x42e667['from']<_0x42e667['to']&&/^\S+$/['test'](_0x42e667['insert']['toString']()))&&(this['pendingIOSKey']=void 0x0,dispatchKey(this['view']['contentDOM'],_0xf14b8e['key'],_0xf14b8e['keyCode'],_0xf14b8e instanceof KeyboardEvent?_0xf14b8e:void 0x0)));}['ignoreDuringComposition'](_0x1d8238){return!(!/^key/['test'](_0x1d8238['type'])||_0x1d8238['synthetic'])&&(this['composing']>0x0||!!(browser['safari']&&!browser['ios']&&this['compositionPendingKey']&&Date['now']()-this['compositionEndedAt']<0x64)&&(this['compositionPendingKey']=!0x1,!0x0));}['startMouseSelection'](_0x130f73){this['mouseSelection']&&this['mouseSelection']['destroy'](),this['mouseSelection']=_0x130f73;}['update'](_0x425956){this['view']['observer']['update'](_0x425956),this['mouseSelection']&&this['mouseSelection']['update'](_0x425956),this['draggedContent']&&_0x425956['docChanged']&&(this['draggedContent']=this['draggedContent']['map'](_0x425956['changes'])),_0x425956['transactions']['length']&&(this['lastKeyCode']=this['lastSelectionTime']=0x0);}['destroy'](){this['mouseSelection']&&this['mouseSelection']['destroy']();}}function bindHandler(_0x165b7a,_0x1b08e4){return(_0x181228,_0x24cd22)=>{try{return _0x1b08e4['call'](_0x165b7a,_0x24cd22,_0x181228);}catch(_0x524dbb){logException(_0x181228['state'],_0x524dbb);}};}function computeHandlers(_0x51f13b){let _0x1b0659=Object['create'](null);function _0x5bc3d2(_0x211579){return _0x1b0659[_0x211579]||(_0x1b0659[_0x211579]={'observers':[],'handlers':[]});}for(let _0x41169a of _0x51f13b){let _0xeb69d3=_0x41169a['spec'],_0x54cb57=_0xeb69d3&&_0xeb69d3['plugin']['domEventHandlers'],_0x2e27a1=_0xeb69d3&&_0xeb69d3['plugin']['domEventObservers'];if(_0x54cb57)for(let _0x2ae5e9 in _0x54cb57){let _0x45b023=_0x54cb57[_0x2ae5e9];_0x45b023&&_0x5bc3d2(_0x2ae5e9)['handlers']['push'](bindHandler(_0x41169a['value'],_0x45b023));}if(_0x2e27a1)for(let _0x19cd63 in _0x2e27a1){let _0x1a41fc=_0x2e27a1[_0x19cd63];_0x1a41fc&&_0x5bc3d2(_0x19cd63)['observers']['push'](bindHandler(_0x41169a['value'],_0x1a41fc));}}for(let _0x4687bc in handlers)_0x5bc3d2(_0x4687bc)['handlers']['push'](handlers[_0x4687bc]);for(let _0x4887e2 in observers)_0x5bc3d2(_0x4887e2)['observers']['push'](observers[_0x4887e2]);return _0x1b0659;}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(_0x45c698){return 0.7*Math['max'](0x0,_0x45c698)+0x8;}function dist(_0x5d5d8b,_0x4bd550){return Math['max'](Math['abs'](_0x5d5d8b['clientX']-_0x4bd550['clientX']),Math['abs'](_0x5d5d8b['clientY']-_0x4bd550['clientY']));}class MouseSelection{constructor(_0x664883,_0x392d4a,_0x1980c6,_0x50bd85){this['view']=_0x664883,this['startEvent']=_0x392d4a,this['style']=_0x1980c6,this['mustSelect']=_0x50bd85,this['scrollSpeed']={'x':0x0,'y':0x0},this['scrolling']=-0x1,this['lastEvent']=_0x392d4a,this['scrollParents']=scrollableParents(_0x664883['contentDOM']),this['atoms']=_0x664883['state']['facet'](atomicRanges)['map'](_0x4d6f60=>_0x4d6f60(_0x664883));let _0x5382f6=_0x664883['contentDOM']['ownerDocument'];_0x5382f6['addEventListener']('mousemove',this['move']=this['move']['bind'](this)),_0x5382f6['addEventListener']('mouseup',this['up']=this['up']['bind'](this)),this['extend']=_0x392d4a['shiftKey'],this['multiple']=_0x664883['state']['facet'](EditorState['allowMultipleSelections'])&&addsSelectionRange(_0x664883,_0x392d4a),this['dragging']=!(!isInPrimarySelection(_0x664883,_0x392d4a)||0x1!=getClickType(_0x392d4a))&&null;}['start'](_0x3c8f6c){!0x1===this['dragging']&&this['select'](_0x3c8f6c);}['move'](_0x4ba521){if(0x0==_0x4ba521['buttons'])return this['destroy']();if(this['dragging']||null==this['dragging']&&dist(this['startEvent'],_0x4ba521)<0xa)return;this['select'](this['lastEvent']=_0x4ba521);let _0x31a235=0x0,_0x1eabc6=0x0,_0x48a716=0x0,_0x13fc15=0x0,_0x2a2c63=this['view']['win']['innerWidth'],_0x33c5a1=this['view']['win']['innerHeight'];this['scrollParents']['x']&&({left:_0x48a716,right:_0x2a2c63}=this['scrollParents']['x']['getBoundingClientRect']()),this['scrollParents']['y']&&({top:_0x13fc15,bottom:_0x33c5a1}=this['scrollParents']['y']['getBoundingClientRect']());let _0x222c47=getScrollMargins(this['view']);_0x4ba521['clientX']-_0x222c47['left']<=_0x48a716+dragScrollMargin?_0x31a235=-dragScrollSpeed(_0x48a716-_0x4ba521['clientX']):_0x4ba521['clientX']+_0x222c47['right']>=_0x2a2c63-dragScrollMargin&&(_0x31a235=dragScrollSpeed(_0x4ba521['clientX']-_0x2a2c63)),_0x4ba521['clientY']-_0x222c47['top']<=_0x13fc15+dragScrollMargin?_0x1eabc6=-dragScrollSpeed(_0x13fc15-_0x4ba521['clientY']):_0x4ba521['clientY']+_0x222c47['bottom']>=_0x33c5a1-dragScrollMargin&&(_0x1eabc6=dragScrollSpeed(_0x4ba521['clientY']-_0x33c5a1)),this['setScrollSpeed'](_0x31a235,_0x1eabc6);}['up'](_0x13b06a){null==this['dragging']&&this['select'](this['lastEvent']),this['dragging']||_0x13b06a['preventDefault'](),this['destroy']();}['destroy'](){this['setScrollSpeed'](0x0,0x0);let _0x3b9581=this['view']['contentDOM']['ownerDocument'];_0x3b9581['removeEventListener']('mousemove',this['move']),_0x3b9581['removeEventListener']('mouseup',this['up']),this['view']['inputState']['mouseSelection']=this['view']['inputState']['draggedContent']=null;}['setScrollSpeed'](_0x492f97,_0x295bec){this['scrollSpeed']={'x':_0x492f97,'y':_0x295bec},_0x492f97||_0x295bec?this['scrolling']<0x0&&(this['scrolling']=setInterval(()=>this['scroll'](),0x32)):this['scrolling']>-0x1&&(clearInterval(this['scrolling']),this['scrolling']=-0x1);}['scroll'](){let {x:_0x415c8c,y:_0x38df56}=this['scrollSpeed'];_0x415c8c&&this['scrollParents']['x']&&(this['scrollParents']['x']['scrollLeft']+=_0x415c8c,_0x415c8c=0x0),_0x38df56&&this['scrollParents']['y']&&(this['scrollParents']['y']['scrollTop']+=_0x38df56,_0x38df56=0x0),(_0x415c8c||_0x38df56)&&this['view']['win']['scrollBy'](_0x415c8c,_0x38df56),!0x1===this['dragging']&&this['select'](this['lastEvent']);}['select'](_0x3b35f6){let {view:_0x17ff16}=this,_0xb25b9a=skipAtomsForSelection(this['atoms'],this['style']['get'](_0x3b35f6,this['extend'],this['multiple']));!this['mustSelect']&&_0xb25b9a['eq'](_0x17ff16['state']['selection'],!0x1===this['dragging'])||this['view']['dispatch']({'selection':_0xb25b9a,'userEvent':'select.pointer'}),this['mustSelect']=!0x1;}['update'](_0x3da8f2){_0x3da8f2['transactions']['some'](_0x310259=>_0x310259['isUserEvent']('input.type'))?this['destroy']():this['style']['update'](_0x3da8f2)&&setTimeout(()=>this['select'](this['lastEvent']),0x14);}}function addsSelectionRange(_0x3d0c11,_0x19ed3b){let _0xe65f1f=_0x3d0c11['state']['facet'](clickAddsSelectionRange);return _0xe65f1f['length']?_0xe65f1f[0x0](_0x19ed3b):browser['mac']?_0x19ed3b['metaKey']:_0x19ed3b['ctrlKey'];}function dragMovesSelection(_0x54fbb7,_0x1087b9){let _0x155ddd=_0x54fbb7['state']['facet'](dragMovesSelection$1);return _0x155ddd['length']?_0x155ddd[0x0](_0x1087b9):browser['mac']?!_0x1087b9['altKey']:!_0x1087b9['ctrlKey'];}function isInPrimarySelection(_0x1c627d,_0x1ec555){let {main:_0x5634f0}=_0x1c627d['state']['selection'];if(_0x5634f0['empty'])return!0x1;let _0x62cd19=getSelection(_0x1c627d['root']);if(!_0x62cd19||0x0==_0x62cd19['rangeCount'])return!0x0;let _0x12e972=_0x62cd19['getRangeAt'](0x0)['getClientRects']();for(let _0x5c1fac=0x0;_0x5c1fac<_0x12e972['length'];_0x5c1fac++){let _0x11f94f=_0x12e972[_0x5c1fac];if(_0x11f94f['left']<=_0x1ec555['clientX']&&_0x11f94f['right']>=_0x1ec555['clientX']&&_0x11f94f['top']<=_0x1ec555['clientY']&&_0x11f94f['bottom']>=_0x1ec555['clientY'])return!0x0;}return!0x1;}function eventBelongsToEditor(_0x4069b0,_0x1863f7){if(!_0x1863f7['bubbles'])return!0x0;if(_0x1863f7['defaultPrevented'])return!0x1;for(let _0x1e727e,_0x2cd0ff=_0x1863f7['target'];_0x2cd0ff!=_0x4069b0['contentDOM'];_0x2cd0ff=_0x2cd0ff['parentNode'])if(!_0x2cd0ff||0xb==_0x2cd0ff['nodeType']||(_0x1e727e=ContentView['get'](_0x2cd0ff))&&_0x1e727e['ignoreEvent'](_0x1863f7))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(_0x447ba7){let _0x33d304=_0x447ba7['dom']['parentNode'];if(!_0x33d304)return;let _0x83c353=_0x33d304['appendChild'](document['createElement']('textarea'));_0x83c353['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x83c353['focus'](),setTimeout(()=>{_0x447ba7['focus'](),_0x83c353['remove'](),doPaste(_0x447ba7,_0x83c353['value']);},0x32);}function textFilter(_0x2d3db9,_0x5501c7,_0x365ed4){for(let _0x45e48d of _0x2d3db9['facet'](_0x5501c7))_0x365ed4=_0x45e48d(_0x365ed4,_0x2d3db9);return _0x365ed4;}function doPaste(_0x34a5a0,_0x5c7707){_0x5c7707=textFilter(_0x34a5a0['state'],clipboardInputFilter,_0x5c7707);let _0x57d5e3,{state:_0x4d5a4d}=_0x34a5a0,_0x29435a=0x1,_0x4182c0=_0x4d5a4d['toText'](_0x5c7707),_0x41eb47=_0x4182c0['lines']==_0x4d5a4d['selection']['ranges']['length'];if(null!=lastLinewiseCopy&&_0x4d5a4d['selection']['ranges']['every'](_0x2d7933=>_0x2d7933['empty'])&&lastLinewiseCopy==_0x4182c0['toString']()){let _0x5c2e90=-0x1;_0x57d5e3=_0x4d5a4d['changeByRange'](_0xc9a1ad=>{let _0x420daf=_0x4d5a4d['doc']['lineAt'](_0xc9a1ad['from']);if(_0x420daf['from']==_0x5c2e90)return{'range':_0xc9a1ad};_0x5c2e90=_0x420daf['from'];let _0x3f15d6=_0x4d5a4d['toText']((_0x41eb47?_0x4182c0['line'](_0x29435a++)['text']:_0x5c7707)+_0x4d5a4d['lineBreak']);return{'changes':{'from':_0x420daf['from'],'insert':_0x3f15d6},'range':EditorSelection['cursor'](_0xc9a1ad['from']+_0x3f15d6['length'])};});}else _0x57d5e3=_0x41eb47?_0x4d5a4d['changeByRange'](_0x53e089=>{let _0x2ce416=_0x4182c0['line'](_0x29435a++);return{'changes':{'from':_0x53e089['from'],'to':_0x53e089['to'],'insert':_0x2ce416['text']},'range':EditorSelection['cursor'](_0x53e089['from']+_0x2ce416['length'])};}):_0x4d5a4d['replaceSelection'](_0x4182c0);_0x34a5a0['dispatch'](_0x57d5e3,{'userEvent':'input.paste','scrollIntoView':!0x0});}function rangeForClick(_0x38ef95,_0x38e93c,_0x3dc4b9,_0x140933){if(0x1==_0x140933)return EditorSelection['cursor'](_0x38e93c,_0x3dc4b9);if(0x2==_0x140933)return groupAt(_0x38ef95['state'],_0x38e93c,_0x3dc4b9);{let _0x29008a=LineView['find'](_0x38ef95['docView'],_0x38e93c),_0x809096=_0x38ef95['state']['doc']['lineAt'](_0x29008a?_0x29008a['posAtEnd']:_0x38e93c),_0x2525b8=_0x29008a?_0x29008a['posAtStart']:_0x809096['from'],_0x177cda=_0x29008a?_0x29008a['posAtEnd']:_0x809096['to'];return _0x177cda<_0x38ef95['state']['doc']['length']&&_0x177cda==_0x809096['to']&&_0x177cda++,EditorSelection['range'](_0x2525b8,_0x177cda);}}observers['scroll']=_0xdc2e87=>{_0xdc2e87['inputState']['lastScrollTop']=_0xdc2e87['scrollDOM']['scrollTop'],_0xdc2e87['inputState']['lastScrollLeft']=_0xdc2e87['scrollDOM']['scrollLeft'];},handlers['keydown']=(_0xe145f3,_0x334c09)=>(_0xe145f3['inputState']['setSelectionOrigin']('select'),0x1b==_0x334c09['keyCode']&&0x0!=_0xe145f3['inputState']['tabFocusMode']&&(_0xe145f3['inputState']['tabFocusMode']=Date['now']()+0x7d0),!0x1),observers['touchstart']=(_0x219994,_0x11cff8)=>{_0x219994['inputState']['lastTouchTime']=Date['now'](),_0x219994['inputState']['setSelectionOrigin']('select.pointer');},observers['touchmove']=_0x2add9e=>{_0x2add9e['inputState']['setSelectionOrigin']('select.pointer');},handlers['mousedown']=(_0x3d1a14,_0x1e64e5)=>{if(_0x3d1a14['observer']['flush'](),_0x3d1a14['inputState']['lastTouchTime']>Date['now']()-0x7d0)return!0x1;let _0x42d82b=null;for(let _0x3e3106 of _0x3d1a14['state']['facet'](mouseSelectionStyle))if(_0x42d82b=_0x3e3106(_0x3d1a14,_0x1e64e5),_0x42d82b)break;if(_0x42d82b||0x0!=_0x1e64e5['button']||(_0x42d82b=basicMouseSelection(_0x3d1a14,_0x1e64e5)),_0x42d82b){let _0x196e6b=!_0x3d1a14['hasFocus'];_0x3d1a14['inputState']['startMouseSelection'](new MouseSelection(_0x3d1a14,_0x1e64e5,_0x42d82b,_0x196e6b)),_0x196e6b&&_0x3d1a14['observer']['ignore'](()=>{focusPreventScroll(_0x3d1a14['contentDOM']);let _0x1bac08=_0x3d1a14['root']['activeElement'];_0x1bac08&&!_0x1bac08['contains'](_0x3d1a14['contentDOM'])&&_0x1bac08['blur']();});let _0x408c0a=_0x3d1a14['inputState']['mouseSelection'];if(_0x408c0a)return _0x408c0a['start'](_0x1e64e5),!0x1===_0x408c0a['dragging'];}else _0x3d1a14['inputState']['setSelectionOrigin']('select.pointer');return!0x1;};let inside=(_0x574691,_0xb4c2e7,_0x509216)=>_0xb4c2e7>=_0x509216['top']&&_0xb4c2e7<=_0x509216['bottom']&&_0x574691>=_0x509216['left']&&_0x574691<=_0x509216['right'];function findPositionSide(_0xdda938,_0x11994e,_0x26a438,_0x273d14){let _0x5f4ffc=LineView['find'](_0xdda938['docView'],_0x11994e);if(!_0x5f4ffc)return 0x1;let _0x3f055e=_0x11994e-_0x5f4ffc['posAtStart'];if(0x0==_0x3f055e)return 0x1;if(_0x3f055e==_0x5f4ffc['length'])return-0x1;let _0x3bdfda=_0x5f4ffc['coordsAt'](_0x3f055e,-0x1);if(_0x3bdfda&&inside(_0x26a438,_0x273d14,_0x3bdfda))return-0x1;let _0x3d557f=_0x5f4ffc['coordsAt'](_0x3f055e,0x1);return _0x3d557f&&inside(_0x26a438,_0x273d14,_0x3d557f)?0x1:_0x3bdfda&&_0x3bdfda['bottom']>=_0x273d14?-0x1:0x1;}function queryPos(_0x1f4264,_0x37da42){let _0x2c53b2=_0x1f4264['posAtCoords']({'x':_0x37da42['clientX'],'y':_0x37da42['clientY']},!0x1);return{'pos':_0x2c53b2,'bias':findPositionSide(_0x1f4264,_0x2c53b2,_0x37da42['clientX'],_0x37da42['clientY'])};}const BadMouseDetail=browser['ie']&&browser['ie_version']<=0xb;let lastMouseDown=null,lastMouseDownCount=0x0,lastMouseDownTime=0x0;function getClickType(_0x3cd1a5){if(!BadMouseDetail)return _0x3cd1a5['detail'];let _0x4231ff=lastMouseDown,_0x2ffb4a=lastMouseDownTime;return lastMouseDown=_0x3cd1a5,lastMouseDownTime=Date['now'](),lastMouseDownCount=!_0x4231ff||_0x2ffb4a>Date['now']()-0x190&&Math['abs'](_0x4231ff['clientX']-_0x3cd1a5['clientX'])<0x2&&Math['abs'](_0x4231ff['clientY']-_0x3cd1a5['clientY'])<0x2?(lastMouseDownCount+0x1)%0x3:0x1;}function basicMouseSelection(_0x2f0829,_0x1e497f){let _0x2bfb54=queryPos(_0x2f0829,_0x1e497f),_0x546995=getClickType(_0x1e497f),_0x3646f2=_0x2f0829['state']['selection'];return{'update'(_0x309d58){_0x309d58['docChanged']&&(_0x2bfb54['pos']=_0x309d58['changes']['mapPos'](_0x2bfb54['pos']),_0x3646f2=_0x3646f2['map'](_0x309d58['changes']));},'get'(_0x3b03da,_0x133eb9,_0x45e80f){let _0x43186a,_0x38056e=queryPos(_0x2f0829,_0x3b03da),_0x5a14ca=rangeForClick(_0x2f0829,_0x38056e['pos'],_0x38056e['bias'],_0x546995);if(_0x2bfb54['pos']!=_0x38056e['pos']&&!_0x133eb9){let _0x3fc970=rangeForClick(_0x2f0829,_0x2bfb54['pos'],_0x2bfb54['bias'],_0x546995),_0x3946ec=Math['min'](_0x3fc970['from'],_0x5a14ca['from']),_0x3e5c21=Math['max'](_0x3fc970['to'],_0x5a14ca['to']);_0x5a14ca=_0x3946ec<_0x5a14ca['from']?EditorSelection['range'](_0x3946ec,_0x3e5c21):EditorSelection['range'](_0x3e5c21,_0x3946ec);}return _0x133eb9?_0x3646f2['replaceRange'](_0x3646f2['main']['extend'](_0x5a14ca['from'],_0x5a14ca['to'])):_0x45e80f&&0x1==_0x546995&&_0x3646f2['ranges']['length']>0x1&&(_0x43186a=removeRangeAround(_0x3646f2,_0x38056e['pos']))?_0x43186a:_0x45e80f?_0x3646f2['addRange'](_0x5a14ca):EditorSelection['create']([_0x5a14ca]);}};}function removeRangeAround(_0xe1c422,_0xc50e0){for(let _0x337c73=0x0;_0x337c73<_0xe1c422['ranges']['length'];_0x337c73++){let {from:_0x21575d,to:_0x3b1fd7}=_0xe1c422['ranges'][_0x337c73];if(_0x21575d<=_0xc50e0&&_0x3b1fd7>=_0xc50e0)return EditorSelection['create'](_0xe1c422['ranges']['slice'](0x0,_0x337c73)['concat'](_0xe1c422['ranges']['slice'](_0x337c73+0x1)),_0xe1c422['mainIndex']==_0x337c73?0x0:_0xe1c422['mainIndex']-(_0xe1c422['mainIndex']>_0x337c73?0x1:0x0));}return null;}function dropText(_0x4d42bc,_0x2f75d8,_0x4dfa6e,_0x25d0ea){if(!(_0x4dfa6e=textFilter(_0x4d42bc['state'],clipboardInputFilter,_0x4dfa6e)))return;let _0x123d7a=_0x4d42bc['posAtCoords']({'x':_0x2f75d8['clientX'],'y':_0x2f75d8['clientY']},!0x1),{draggedContent:_0x1d0e3c}=_0x4d42bc['inputState'],_0x5a71ba=_0x25d0ea&&_0x1d0e3c&&dragMovesSelection(_0x4d42bc,_0x2f75d8)?{'from':_0x1d0e3c['from'],'to':_0x1d0e3c['to']}:null,_0x10519d={'from':_0x123d7a,'insert':_0x4dfa6e},_0x3bdccf=_0x4d42bc['state']['changes'](_0x5a71ba?[_0x5a71ba,_0x10519d]:_0x10519d);_0x4d42bc['focus'](),_0x4d42bc['dispatch']({'changes':_0x3bdccf,'selection':{'anchor':_0x3bdccf['mapPos'](_0x123d7a,-0x1),'head':_0x3bdccf['mapPos'](_0x123d7a,0x1)},'userEvent':_0x5a71ba?'move.drop':'input.drop'}),_0x4d42bc['inputState']['draggedContent']=null;}function captureCopy(_0x15cb1b,_0xbf739f){let _0x16c74e=_0x15cb1b['dom']['parentNode'];if(!_0x16c74e)return;let _0x521bec=_0x16c74e['appendChild'](document['createElement']('textarea'));_0x521bec['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x521bec['value']=_0xbf739f,_0x521bec['focus'](),_0x521bec['selectionEnd']=_0xbf739f['length'],_0x521bec['selectionStart']=0x0,setTimeout(()=>{_0x521bec['remove'](),_0x15cb1b['focus']();},0x32);}function copiedRange(_0x1b20ea){let _0x395d8a=[],_0x3790fc=[],_0x3ea94e=!0x1;for(let _0x3a36d2 of _0x1b20ea['selection']['ranges'])_0x3a36d2['empty']||(_0x395d8a['push'](_0x1b20ea['sliceDoc'](_0x3a36d2['from'],_0x3a36d2['to'])),_0x3790fc['push'](_0x3a36d2));if(!_0x395d8a['length']){let _0x29b17a=-0x1;for(let {from:_0x3fec2a}of _0x1b20ea['selection']['ranges']){let _0x11a72d=_0x1b20ea['doc']['lineAt'](_0x3fec2a);_0x11a72d['number']>_0x29b17a&&(_0x395d8a['push'](_0x11a72d['text']),_0x3790fc['push']({'from':_0x11a72d['from'],'to':Math['min'](_0x1b20ea['doc']['length'],_0x11a72d['to']+0x1)})),_0x29b17a=_0x11a72d['number'];}_0x3ea94e=!0x0;}return{'text':textFilter(_0x1b20ea,clipboardOutputFilter,_0x395d8a['join'](_0x1b20ea['lineBreak'])),'ranges':_0x3790fc,'linewise':_0x3ea94e};}handlers['dragstart']=(_0xd4979,_0x7699b7)=>{let {selection:{main:_0x3889c6}}=_0xd4979['state'];if(_0x7699b7['target']['draggable']){let _0x1476b3=_0xd4979['docView']['nearest'](_0x7699b7['target']);if(_0x1476b3&&_0x1476b3['isWidget']){let _0x1297b8=_0x1476b3['posAtStart'],_0x58b587=_0x1297b8+_0x1476b3['length'];(_0x1297b8>=_0x3889c6['to']||_0x58b587<=_0x3889c6['from'])&&(_0x3889c6=EditorSelection['range'](_0x1297b8,_0x58b587));}}let {inputState:_0x2f86f8}=_0xd4979;return _0x2f86f8['mouseSelection']&&(_0x2f86f8['mouseSelection']['dragging']=!0x0),_0x2f86f8['draggedContent']=_0x3889c6,_0x7699b7['dataTransfer']&&(_0x7699b7['dataTransfer']['setData']('Text',textFilter(_0xd4979['state'],clipboardOutputFilter,_0xd4979['state']['sliceDoc'](_0x3889c6['from'],_0x3889c6['to']))),_0x7699b7['dataTransfer']['effectAllowed']='copyMove'),!0x1;},handlers['dragend']=_0x2440ff=>(_0x2440ff['inputState']['draggedContent']=null,!0x1),handlers['drop']=(_0x56d13b,_0x332e8a)=>{if(!_0x332e8a['dataTransfer'])return!0x1;if(_0x56d13b['state']['readOnly'])return!0x0;let _0x560f23=_0x332e8a['dataTransfer']['files'];if(_0x560f23&&_0x560f23['length']){let _0x45d8b7=Array(_0x560f23['length']),_0x7b27ed=0x0,_0x276c48=()=>{++_0x7b27ed==_0x560f23['length']&&dropText(_0x56d13b,_0x332e8a,_0x45d8b7['filter'](_0x82ba7f=>null!=_0x82ba7f)['join'](_0x56d13b['state']['lineBreak']),!0x1);};for(let _0x4bf830=0x0;_0x4bf830<_0x560f23['length'];_0x4bf830++){let _0x116216=new FileReader();_0x116216['onerror']=_0x276c48,_0x116216['onload']=()=>{/[\x00-\x08\x0e-\x1f]{2}/['test'](_0x116216['result'])||(_0x45d8b7[_0x4bf830]=_0x116216['result']),_0x276c48();},_0x116216['readAsText'](_0x560f23[_0x4bf830]);}return!0x0;}{let _0x28ee47=_0x332e8a['dataTransfer']['getData']('Text');if(_0x28ee47)return dropText(_0x56d13b,_0x332e8a,_0x28ee47,!0x0),!0x0;}return!0x1;},handlers['paste']=(_0x2a1d9a,_0xc62249)=>{if(_0x2a1d9a['state']['readOnly'])return!0x0;_0x2a1d9a['observer']['flush']();let _0x59be74=brokenClipboardAPI?null:_0xc62249['clipboardData'];return _0x59be74?(doPaste(_0x2a1d9a,_0x59be74['getData']('text/plain')||_0x59be74['getData']('text/uri-list')),!0x0):(capturePaste(_0x2a1d9a),!0x1);};let lastLinewiseCopy=null;handlers['copy']=handlers['cut']=(_0x13f42a,_0x11b35e)=>{let {text:_0x3040d1,ranges:_0x35558c,linewise:_0x16b06f}=copiedRange(_0x13f42a['state']);if(!_0x3040d1&&!_0x16b06f)return!0x1;lastLinewiseCopy=_0x16b06f?_0x3040d1:null,'cut'!=_0x11b35e['type']||_0x13f42a['state']['readOnly']||_0x13f42a['dispatch']({'changes':_0x35558c,'scrollIntoView':!0x0,'userEvent':'delete.cut'});let _0x56e7ac=brokenClipboardAPI?null:_0x11b35e['clipboardData'];return _0x56e7ac?(_0x56e7ac['clearData'](),_0x56e7ac['setData']('text/plain',_0x3040d1),!0x0):(captureCopy(_0x13f42a,_0x3040d1),!0x1);};const isFocusChange=Annotation['define']();function focusChangeTransaction(_0x48b2ac,_0x271fae){let _0x1ffdf7=[];for(let _0x4f50b1 of _0x48b2ac['facet'](focusChangeEffect)){let _0x399cf4=_0x4f50b1(_0x48b2ac,_0x271fae);_0x399cf4&&_0x1ffdf7['push'](_0x399cf4);}return _0x1ffdf7['length']?_0x48b2ac['update']({'effects':_0x1ffdf7,'annotations':isFocusChange['of'](!0x0)}):null;}function updateForFocusChange(_0x25d286){setTimeout(()=>{let _0x5cbbb6=_0x25d286['hasFocus'];if(_0x5cbbb6!=_0x25d286['inputState']['notifiedFocused']){let _0x33a372=focusChangeTransaction(_0x25d286['state'],_0x5cbbb6);_0x33a372?_0x25d286['dispatch'](_0x33a372):_0x25d286['update']([]);}},0xa);}observers['focus']=_0x1fa618=>{_0x1fa618['inputState']['lastFocusTime']=Date['now'](),_0x1fa618['scrollDOM']['scrollTop']||!_0x1fa618['inputState']['lastScrollTop']&&!_0x1fa618['inputState']['lastScrollLeft']||(_0x1fa618['scrollDOM']['scrollTop']=_0x1fa618['inputState']['lastScrollTop'],_0x1fa618['scrollDOM']['scrollLeft']=_0x1fa618['inputState']['lastScrollLeft']),updateForFocusChange(_0x1fa618);},observers['blur']=_0x28d80d=>{_0x28d80d['observer']['clearSelectionRange'](),updateForFocusChange(_0x28d80d);},observers['compositionstart']=observers['compositionupdate']=_0x50f482=>{_0x50f482['observer']['editContext']||(null==_0x50f482['inputState']['compositionFirstChange']&&(_0x50f482['inputState']['compositionFirstChange']=!0x0),_0x50f482['inputState']['composing']<0x0&&(_0x50f482['inputState']['composing']=0x0));},observers['compositionend']=_0x2b8722=>{_0x2b8722['observer']['editContext']||(_0x2b8722['inputState']['composing']=-0x1,_0x2b8722['inputState']['compositionEndedAt']=Date['now'](),_0x2b8722['inputState']['compositionPendingKey']=!0x0,_0x2b8722['inputState']['compositionPendingChange']=_0x2b8722['observer']['pendingRecords']()['length']>0x0,_0x2b8722['inputState']['compositionFirstChange']=null,browser['chrome']&&browser['android']?_0x2b8722['observer']['flushSoon']():_0x2b8722['inputState']['compositionPendingChange']?Promise['resolve']()['then'](()=>_0x2b8722['observer']['flush']()):setTimeout(()=>{_0x2b8722['inputState']['composing']<0x0&&_0x2b8722['docView']['hasComposition']&&_0x2b8722['update']([]);},0x32));},observers['contextmenu']=_0x1e4e63=>{_0x1e4e63['inputState']['lastContextMenu']=Date['now']();},handlers['beforeinput']=(_0x196837,_0x4f5419)=>{var _0x5ad4ef,_0x14aa86;if('insertReplacementText'==_0x4f5419['inputType']&&_0x196837['observer']['editContext']){let _0x3840e4=null===(_0x5ad4ef=_0x4f5419['dataTransfer'])||void 0x0===_0x5ad4ef?void 0x0:_0x5ad4ef['getData']('text/plain'),_0x58caee=_0x4f5419['getTargetRanges']();if(_0x3840e4&&_0x58caee['length']){let _0x751a30=_0x58caee[0x0],_0x3ce223=_0x196837['posAtDOM'](_0x751a30['startContainer'],_0x751a30['startOffset']),_0x17c48b=_0x196837['posAtDOM'](_0x751a30['endContainer'],_0x751a30['endOffset']);return applyDOMChangeInner(_0x196837,{'from':_0x3ce223,'to':_0x17c48b,'insert':_0x196837['state']['toText'](_0x3840e4)},null),!0x0;}}let _0x5d666d;if(browser['chrome']&&browser['android']&&(_0x5d666d=PendingKeys['find'](_0xd11eb9=>_0xd11eb9['inputType']==_0x4f5419['inputType']))&&(_0x196837['observer']['delayAndroidKey'](_0x5d666d['key'],_0x5d666d['keyCode']),'Backspace'==_0x5d666d['key']||'Delete'==_0x5d666d['key'])){let _0x37480e=(null===(_0x14aa86=window['visualViewport'])||void 0x0===_0x14aa86?void 0x0:_0x14aa86['height'])||0x0;setTimeout(()=>{var _0x84580c;((null===(_0x84580c=window['visualViewport'])||void 0x0===_0x84580c?void 0x0:_0x84580c['height'])||0x0)>_0x37480e+0xa&&_0x196837['hasFocus']&&(_0x196837['contentDOM']['blur'](),_0x196837['focus']());},0x64);}return browser['ios']&&'deleteContentForward'==_0x4f5419['inputType']&&_0x196837['observer']['flushSoon'](),browser['safari']&&'insertText'==_0x4f5419['inputType']&&_0x196837['inputState']['composing']>=0x0&&setTimeout(()=>observers['compositionend'](_0x196837,_0x4f5419),0x14),!0x1;};const appliedFirefoxHack=new Set();function firefoxCopyCutHack(_0x2e434f){appliedFirefoxHack['has'](_0x2e434f)||(appliedFirefoxHack['add'](_0x2e434f),_0x2e434f['addEventListener']('copy',()=>{}),_0x2e434f['addEventListener']('cut',()=>{}));}const wrappingWhiteSpace=['pre-wrap','normal','pre-line','break-spaces'];let heightChangeFlag=!0x1;function clearHeightChangeFlag(){heightChangeFlag=!0x1;}class HeightOracle{constructor(_0xd565a7){this['lineWrapping']=_0xd565a7,this['doc']=Text['empty'],this['heightSamples']={},this['lineHeight']=0xe,this['charWidth']=0x7,this['textHeight']=0xe,this['lineLength']=0x1e;}['heightForGap'](_0xcd89f3,_0xb5253a){let _0x3d0d0a=this['doc']['lineAt'](_0xb5253a)['number']-this['doc']['lineAt'](_0xcd89f3)['number']+0x1;return this['lineWrapping']&&(_0x3d0d0a+=Math['max'](0x0,Math['ceil']((_0xb5253a-_0xcd89f3-_0x3d0d0a*this['lineLength']*0.5)/this['lineLength']))),this['lineHeight']*_0x3d0d0a;}['heightForLine'](_0x539530){if(!this['lineWrapping'])return this['lineHeight'];return(0x1+Math['max'](0x0,Math['ceil']((_0x539530-this['lineLength'])/Math['max'](0x1,this['lineLength']-0x5))))*this['lineHeight'];}['setDoc'](_0x277b33){return this['doc']=_0x277b33,this;}['mustRefreshForWrapping'](_0x509ce6){return wrappingWhiteSpace['indexOf'](_0x509ce6)>-0x1!=this['lineWrapping'];}['mustRefreshForHeights'](_0x15218b){let _0x40bd80=!0x1;for(let _0x32de70=0x0;_0x32de70<_0x15218b['length'];_0x32de70++){let _0x2c76bb=_0x15218b[_0x32de70];_0x2c76bb<0x0?_0x32de70++:this['heightSamples'][Math['floor'](0xa*_0x2c76bb)]||(_0x40bd80=!0x0,this['heightSamples'][Math['floor'](0xa*_0x2c76bb)]=!0x0);}return _0x40bd80;}['refresh'](_0x5865d8,_0x2f82f8,_0x5cb4ab,_0x32f73b,_0x15d1c9,_0x1ee67a){let _0x3b5fa3=wrappingWhiteSpace['indexOf'](_0x5865d8)>-0x1,_0x210c04=Math['round'](_0x2f82f8)!=Math['round'](this['lineHeight'])||this['lineWrapping']!=_0x3b5fa3;if(this['lineWrapping']=_0x3b5fa3,this['lineHeight']=_0x2f82f8,this['charWidth']=_0x5cb4ab,this['textHeight']=_0x32f73b,this['lineLength']=_0x15d1c9,_0x210c04){this['heightSamples']={};for(let _0x290cb5=0x0;_0x290cb5<_0x1ee67a['length'];_0x290cb5++){let _0x1e16d5=_0x1ee67a[_0x290cb5];_0x1e16d5<0x0?_0x290cb5++:this['heightSamples'][Math['floor'](0xa*_0x1e16d5)]=!0x0;}}return _0x210c04;}}class MeasuredHeights{constructor(_0x4f7705,_0x4c9959){this['from']=_0x4f7705,this['heights']=_0x4c9959,this['index']=0x0;}get['more'](){return this['index']<this['heights']['length'];}}class BlockInfo{constructor(_0x3750c4,_0x13e5ec,_0x5a3c83,_0x29b403,_0x5a5207){this['from']=_0x3750c4,this['length']=_0x13e5ec,this['top']=_0x5a3c83,this['height']=_0x29b403,this['_content']=_0x5a5207;}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'](_0x3a286){let _0x43b6bb=(Array['isArray'](this['_content'])?this['_content']:[this])['concat'](Array['isArray'](_0x3a286['_content'])?_0x3a286['_content']:[_0x3a286]);return new BlockInfo(this['from'],this['length']+_0x3a286['length'],this['top'],this['height']+_0x3a286['height'],_0x43b6bb);}}var QueryType=function(_0x108907){return _0x108907[_0x108907['ByPos']=0x0]='ByPos',_0x108907[_0x108907['ByHeight']=0x1]='ByHeight',_0x108907[_0x108907['ByPosNoHeight']=0x2]='ByPosNoHeight',_0x108907;}(QueryType||(QueryType={}));const Epsilon=0.001;class HeightMap{constructor(_0x3cc953,_0x2be1f9,_0x5e130a=0x2){this['length']=_0x3cc953,this['height']=_0x2be1f9,this['flags']=_0x5e130a;}get['outdated'](){return(0x2&this['flags'])>0x0;}set['outdated'](_0x2479f4){this['flags']=(_0x2479f4?0x2:0x0)|-0x3&this['flags'];}['setHeight'](_0x2a6868){this['height']!=_0x2a6868&&(Math['abs'](this['height']-_0x2a6868)>Epsilon&&(heightChangeFlag=!0x0),this['height']=_0x2a6868);}['replace'](_0x47c18b,_0x25d821,_0x5d1724){return HeightMap['of'](_0x5d1724);}['decomposeLeft'](_0x5bc81e,_0x1c9820){_0x1c9820['push'](this);}['decomposeRight'](_0xc73058,_0x137250){_0x137250['push'](this);}['applyChanges'](_0x7949ac,_0x5a9534,_0x4de7a1,_0x405d18){let _0x2951e7=this,_0xf24f14=_0x4de7a1['doc'];for(let _0x5c40e7=_0x405d18['length']-0x1;_0x5c40e7>=0x0;_0x5c40e7--){let {fromA:_0x2a0ad3,toA:_0xbf1b7,fromB:_0xa4b426,toB:_0x380659}=_0x405d18[_0x5c40e7],_0x18e418=_0x2951e7['lineAt'](_0x2a0ad3,QueryType['ByPosNoHeight'],_0x4de7a1['setDoc'](_0x5a9534),0x0,0x0),_0x59e2c0=_0x18e418['to']>=_0xbf1b7?_0x18e418:_0x2951e7['lineAt'](_0xbf1b7,QueryType['ByPosNoHeight'],_0x4de7a1,0x0,0x0);for(_0x380659+=_0x59e2c0['to']-_0xbf1b7,_0xbf1b7=_0x59e2c0['to'];_0x5c40e7>0x0&&_0x18e418['from']<=_0x405d18[_0x5c40e7-0x1]['toA'];)_0x2a0ad3=_0x405d18[_0x5c40e7-0x1]['fromA'],_0xa4b426=_0x405d18[_0x5c40e7-0x1]['fromB'],_0x5c40e7--,_0x2a0ad3<_0x18e418['from']&&(_0x18e418=_0x2951e7['lineAt'](_0x2a0ad3,QueryType['ByPosNoHeight'],_0x4de7a1,0x0,0x0));_0xa4b426+=_0x18e418['from']-_0x2a0ad3,_0x2a0ad3=_0x18e418['from'];let _0x5efca8=NodeBuilder['build'](_0x4de7a1['setDoc'](_0xf24f14),_0x7949ac,_0xa4b426,_0x380659);_0x2951e7=replace(_0x2951e7,_0x2951e7['replace'](_0x2a0ad3,_0xbf1b7,_0x5efca8));}return _0x2951e7['updateHeight'](_0x4de7a1,0x0);}static['empty'](){return new HeightMapText(0x0,0x0);}static['of'](_0x3d25bc){if(0x1==_0x3d25bc['length'])return _0x3d25bc[0x0];let _0xf3fac6=0x0,_0x313261=_0x3d25bc['length'],_0x5e6c11=0x0,_0x1fb0b1=0x0;for(;;)if(_0xf3fac6==_0x313261){if(_0x5e6c11>0x2*_0x1fb0b1){let _0x118ada=_0x3d25bc[_0xf3fac6-0x1];_0x118ada['break']?_0x3d25bc['splice'](--_0xf3fac6,0x1,_0x118ada['left'],null,_0x118ada['right']):_0x3d25bc['splice'](--_0xf3fac6,0x1,_0x118ada['left'],_0x118ada['right']),_0x313261+=0x1+_0x118ada['break'],_0x5e6c11-=_0x118ada['size'];}else{if(!(_0x1fb0b1>0x2*_0x5e6c11))break;{let _0x42026e=_0x3d25bc[_0x313261];_0x42026e['break']?_0x3d25bc['splice'](_0x313261,0x1,_0x42026e['left'],null,_0x42026e['right']):_0x3d25bc['splice'](_0x313261,0x1,_0x42026e['left'],_0x42026e['right']),_0x313261+=0x2+_0x42026e['break'],_0x1fb0b1-=_0x42026e['size'];}}}else{if(_0x5e6c11<_0x1fb0b1){let _0x20affb=_0x3d25bc[_0xf3fac6++];_0x20affb&&(_0x5e6c11+=_0x20affb['size']);}else{let _0x5839f8=_0x3d25bc[--_0x313261];_0x5839f8&&(_0x1fb0b1+=_0x5839f8['size']);}}let _0x267e38=0x0;return null==_0x3d25bc[_0xf3fac6-0x1]?(_0x267e38=0x1,_0xf3fac6--):null==_0x3d25bc[_0xf3fac6]&&(_0x267e38=0x1,_0x313261++),new HeightMapBranch(HeightMap['of'](_0x3d25bc['slice'](0x0,_0xf3fac6)),_0x267e38,HeightMap['of'](_0x3d25bc['slice'](_0x313261)));}}function replace(_0x3870ec,_0x47e6f8){return _0x3870ec==_0x47e6f8?_0x3870ec:(_0x3870ec['constructor']!=_0x47e6f8['constructor']&&(heightChangeFlag=!0x0),_0x47e6f8);}HeightMap['prototype']['size']=0x1;class HeightMapBlock extends HeightMap{constructor(_0x522b1b,_0x11b7c7,_0x40224c){super(_0x522b1b,_0x11b7c7),this['deco']=_0x40224c;}['blockAt'](_0x5c3fae,_0x519c7f,_0x64f173,_0x35c443){return new BlockInfo(_0x35c443,this['length'],_0x64f173,this['height'],this['deco']||0x0);}['lineAt'](_0x18cfa3,_0x2d74b6,_0x1bf310,_0x8dc317,_0x5c8c2b){return this['blockAt'](0x0,_0x1bf310,_0x8dc317,_0x5c8c2b);}['forEachLine'](_0x3aa194,_0x22315b,_0x516813,_0x41fcde,_0x36a8d8,_0x58ad39){_0x3aa194<=_0x36a8d8+this['length']&&_0x22315b>=_0x36a8d8&&_0x58ad39(this['blockAt'](0x0,_0x516813,_0x41fcde,_0x36a8d8));}['updateHeight'](_0x55181f,_0x5c71c8=0x0,_0x40f0de=!0x1,_0x3395f2){return _0x3395f2&&_0x3395f2['from']<=_0x5c71c8&&_0x3395f2['more']&&this['setHeight'](_0x3395f2['heights'][_0x3395f2['index']++]),this['outdated']=!0x1,this;}['toString'](){return'block('+this['length']+')';}}class HeightMapText extends HeightMapBlock{constructor(_0x58df16,_0x2324ed){super(_0x58df16,_0x2324ed,null),this['collapsed']=0x0,this['widgetHeight']=0x0,this['breaks']=0x0;}['blockAt'](_0x5cc94a,_0x1d5a80,_0x4b3d93,_0xd900bd){return new BlockInfo(_0xd900bd,this['length'],_0x4b3d93,this['height'],this['breaks']);}['replace'](_0x4f1fed,_0x39df94,_0x33b4d9){let _0x227a33=_0x33b4d9[0x0];return 0x1==_0x33b4d9['length']&&(_0x227a33 instanceof HeightMapText||_0x227a33 instanceof HeightMapGap&&0x4&_0x227a33['flags'])&&Math['abs'](this['length']-_0x227a33['length'])<0xa?(_0x227a33 instanceof HeightMapGap?_0x227a33=new HeightMapText(_0x227a33['length'],this['height']):_0x227a33['height']=this['height'],this['outdated']||(_0x227a33['outdated']=!0x1),_0x227a33):HeightMap['of'](_0x33b4d9);}['updateHeight'](_0x2211a7,_0x3549b5=0x0,_0xf351b0=!0x1,_0x181ac0){return _0x181ac0&&_0x181ac0['from']<=_0x3549b5&&_0x181ac0['more']?this['setHeight'](_0x181ac0['heights'][_0x181ac0['index']++]):(_0xf351b0||this['outdated'])&&this['setHeight'](Math['max'](this['widgetHeight'],_0x2211a7['heightForLine'](this['length']-this['collapsed']))+this['breaks']*_0x2211a7['lineHeight']),this['outdated']=!0x1,this;}['toString'](){return'line('+this['length']+(this['collapsed']?-this['collapsed']:'')+(this['widgetHeight']?':'+this['widgetHeight']:'')+')';}}class HeightMapGap extends HeightMap{constructor(_0x24b975){super(_0x24b975,0x0);}['heightMetrics'](_0x548486,_0x2f5813){let _0x4b3e47,_0x439100=_0x548486['doc']['lineAt'](_0x2f5813)['number'],_0xdecaa3=_0x548486['doc']['lineAt'](_0x2f5813+this['length'])['number'],_0x488822=_0xdecaa3-_0x439100+0x1,_0x547921=0x0;if(_0x548486['lineWrapping']){let _0x1f72d3=Math['min'](this['height'],_0x548486['lineHeight']*_0x488822);_0x4b3e47=_0x1f72d3/_0x488822,this['length']>_0x488822+0x1&&(_0x547921=(this['height']-_0x1f72d3)/(this['length']-_0x488822-0x1));}else _0x4b3e47=this['height']/_0x488822;return{'firstLine':_0x439100,'lastLine':_0xdecaa3,'perLine':_0x4b3e47,'perChar':_0x547921};}['blockAt'](_0x106ef4,_0xb6f117,_0x5e42cc,_0x33ca85){let {firstLine:_0x9ffd3f,lastLine:_0x28cc92,perLine:_0x6c3b28,perChar:_0x1b6a27}=this['heightMetrics'](_0xb6f117,_0x33ca85);if(_0xb6f117['lineWrapping']){let _0x2a5a0e=_0x33ca85+(_0x106ef4<_0xb6f117['lineHeight']?0x0:Math['round'](Math['max'](0x0,Math['min'](0x1,(_0x106ef4-_0x5e42cc)/this['height']))*this['length'])),_0x53314b=_0xb6f117['doc']['lineAt'](_0x2a5a0e),_0x942bd8=_0x6c3b28+_0x53314b['length']*_0x1b6a27,_0x1b4975=Math['max'](_0x5e42cc,_0x106ef4-_0x942bd8/0x2);return new BlockInfo(_0x53314b['from'],_0x53314b['length'],_0x1b4975,_0x942bd8,0x0);}{let _0x484931=Math['max'](0x0,Math['min'](_0x28cc92-_0x9ffd3f,Math['floor']((_0x106ef4-_0x5e42cc)/_0x6c3b28))),{from:_0x2fa1ec,length:_0x4912fc}=_0xb6f117['doc']['line'](_0x9ffd3f+_0x484931);return new BlockInfo(_0x2fa1ec,_0x4912fc,_0x5e42cc+_0x6c3b28*_0x484931,_0x6c3b28,0x0);}}['lineAt'](_0x5dc2e5,_0x103668,_0x3c6a2f,_0x2bdeee,_0x131833){if(_0x103668==QueryType['ByHeight'])return this['blockAt'](_0x5dc2e5,_0x3c6a2f,_0x2bdeee,_0x131833);if(_0x103668==QueryType['ByPosNoHeight']){let {from:_0x2aa3cd,to:_0x2118fb}=_0x3c6a2f['doc']['lineAt'](_0x5dc2e5);return new BlockInfo(_0x2aa3cd,_0x2118fb-_0x2aa3cd,0x0,0x0,0x0);}let {firstLine:_0xe9692f,perLine:_0x5ec1c5,perChar:_0x20ea21}=this['heightMetrics'](_0x3c6a2f,_0x131833),_0x221935=_0x3c6a2f['doc']['lineAt'](_0x5dc2e5),_0x23c631=_0x5ec1c5+_0x221935['length']*_0x20ea21,_0x421ba8=_0x221935['number']-_0xe9692f,_0x25c7ba=_0x2bdeee+_0x5ec1c5*_0x421ba8+_0x20ea21*(_0x221935['from']-_0x131833-_0x421ba8);return new BlockInfo(_0x221935['from'],_0x221935['length'],Math['max'](_0x2bdeee,Math['min'](_0x25c7ba,_0x2bdeee+this['height']-_0x23c631)),_0x23c631,0x0);}['forEachLine'](_0x41e81f,_0x3f980c,_0x212fbc,_0x4cd6d9,_0x4dc305,_0x4dc507){_0x41e81f=Math['max'](_0x41e81f,_0x4dc305),_0x3f980c=Math['min'](_0x3f980c,_0x4dc305+this['length']);let {firstLine:_0x51b123,perLine:_0x43e46c,perChar:_0x4f4672}=this['heightMetrics'](_0x212fbc,_0x4dc305);for(let _0x4bfc5e=_0x41e81f,_0x1f2543=_0x4cd6d9;_0x4bfc5e<=_0x3f980c;){let _0x4613cf=_0x212fbc['doc']['lineAt'](_0x4bfc5e);if(_0x4bfc5e==_0x41e81f){let _0x311f59=_0x4613cf['number']-_0x51b123;_0x1f2543+=_0x43e46c*_0x311f59+_0x4f4672*(_0x41e81f-_0x4dc305-_0x311f59);}let _0x234d19=_0x43e46c+_0x4f4672*_0x4613cf['length'];_0x4dc507(new BlockInfo(_0x4613cf['from'],_0x4613cf['length'],_0x1f2543,_0x234d19,0x0)),_0x1f2543+=_0x234d19,_0x4bfc5e=_0x4613cf['to']+0x1;}}['replace'](_0x41dce0,_0x3cd8f5,_0x417582){let _0x495db0=this['length']-_0x3cd8f5;if(_0x495db0>0x0){let _0x28dc84=_0x417582[_0x417582['length']-0x1];_0x28dc84 instanceof HeightMapGap?_0x417582[_0x417582['length']-0x1]=new HeightMapGap(_0x28dc84['length']+_0x495db0):_0x417582['push'](null,new HeightMapGap(_0x495db0-0x1));}if(_0x41dce0>0x0){let _0x5b5181=_0x417582[0x0];_0x5b5181 instanceof HeightMapGap?_0x417582[0x0]=new HeightMapGap(_0x41dce0+_0x5b5181['length']):_0x417582['unshift'](new HeightMapGap(_0x41dce0-0x1),null);}return HeightMap['of'](_0x417582);}['decomposeLeft'](_0x2572a9,_0x112c05){_0x112c05['push'](new HeightMapGap(_0x2572a9-0x1),null);}['decomposeRight'](_0x8f2b17,_0x5ec0e6){_0x5ec0e6['push'](null,new HeightMapGap(this['length']-_0x8f2b17-0x1));}['updateHeight'](_0x337748,_0x66539d=0x0,_0x50bda9=!0x1,_0x2f244e){let _0x2c44cc=_0x66539d+this['length'];if(_0x2f244e&&_0x2f244e['from']<=_0x66539d+this['length']&&_0x2f244e['more']){let _0x5307fa=[],_0x1c85f5=Math['max'](_0x66539d,_0x2f244e['from']),_0x1029fb=-0x1;for(_0x2f244e['from']>_0x66539d&&_0x5307fa['push'](new HeightMapGap(_0x2f244e['from']-_0x66539d-0x1)['updateHeight'](_0x337748,_0x66539d));_0x1c85f5<=_0x2c44cc&&_0x2f244e['more'];){let _0x32c1b2=_0x337748['doc']['lineAt'](_0x1c85f5)['length'];_0x5307fa['length']&&_0x5307fa['push'](null);let _0x4d0082=_0x2f244e['heights'][_0x2f244e['index']++];-0x1==_0x1029fb?_0x1029fb=_0x4d0082:Math['abs'](_0x4d0082-_0x1029fb)>=Epsilon&&(_0x1029fb=-0x2);let _0xbd813d=new HeightMapText(_0x32c1b2,_0x4d0082);_0xbd813d['outdated']=!0x1,_0x5307fa['push'](_0xbd813d),_0x1c85f5+=_0x32c1b2+0x1;}_0x1c85f5<=_0x2c44cc&&_0x5307fa['push'](null,new HeightMapGap(_0x2c44cc-_0x1c85f5)['updateHeight'](_0x337748,_0x1c85f5));let _0x498750=HeightMap['of'](_0x5307fa);return(_0x1029fb<0x0||Math['abs'](_0x498750['height']-this['height'])>=Epsilon||Math['abs'](_0x1029fb-this['heightMetrics'](_0x337748,_0x66539d)['perLine'])>=Epsilon)&&(heightChangeFlag=!0x0),replace(this,_0x498750);}return(_0x50bda9||this['outdated'])&&(this['setHeight'](_0x337748['heightForGap'](_0x66539d,_0x66539d+this['length'])),this['outdated']=!0x1),this;}['toString'](){return'gap('+this['length']+')';}}class HeightMapBranch extends HeightMap{constructor(_0x47d53a,_0xcdf156,_0x510dad){super(_0x47d53a['length']+_0xcdf156+_0x510dad['length'],_0x47d53a['height']+_0x510dad['height'],_0xcdf156|(_0x47d53a['outdated']||_0x510dad['outdated']?0x2:0x0)),this['left']=_0x47d53a,this['right']=_0x510dad,this['size']=_0x47d53a['size']+_0x510dad['size'];}get['break'](){return 0x1&this['flags'];}['blockAt'](_0x3f867f,_0x14bea6,_0x1d78a0,_0x66a9b8){let _0x1de789=_0x1d78a0+this['left']['height'];return _0x3f867f<_0x1de789?this['left']['blockAt'](_0x3f867f,_0x14bea6,_0x1d78a0,_0x66a9b8):this['right']['blockAt'](_0x3f867f,_0x14bea6,_0x1de789,_0x66a9b8+this['left']['length']+this['break']);}['lineAt'](_0xe7738d,_0x2e6a08,_0x49d02e,_0x4bdb96,_0x47cb9f){let _0x337ecd=_0x4bdb96+this['left']['height'],_0x4b8b40=_0x47cb9f+this['left']['length']+this['break'],_0x5abc7e=_0x2e6a08==QueryType['ByHeight']?_0xe7738d<_0x337ecd:_0xe7738d<_0x4b8b40,_0x4aec39=_0x5abc7e?this['left']['lineAt'](_0xe7738d,_0x2e6a08,_0x49d02e,_0x4bdb96,_0x47cb9f):this['right']['lineAt'](_0xe7738d,_0x2e6a08,_0x49d02e,_0x337ecd,_0x4b8b40);if(this['break']||(_0x5abc7e?_0x4aec39['to']<_0x4b8b40:_0x4aec39['from']>_0x4b8b40))return _0x4aec39;let _0x1eef38=_0x2e6a08==QueryType['ByPosNoHeight']?QueryType['ByPosNoHeight']:QueryType['ByPos'];return _0x5abc7e?_0x4aec39['join'](this['right']['lineAt'](_0x4b8b40,_0x1eef38,_0x49d02e,_0x337ecd,_0x4b8b40)):this['left']['lineAt'](_0x4b8b40,_0x1eef38,_0x49d02e,_0x4bdb96,_0x47cb9f)['join'](_0x4aec39);}['forEachLine'](_0x4abb33,_0x1cfcb9,_0x24e8ce,_0x50736f,_0xe6913a,_0x1f6fec){let _0x6893b1=_0x50736f+this['left']['height'],_0x3c578e=_0xe6913a+this['left']['length']+this['break'];if(this['break'])_0x4abb33<_0x3c578e&&this['left']['forEachLine'](_0x4abb33,_0x1cfcb9,_0x24e8ce,_0x50736f,_0xe6913a,_0x1f6fec),_0x1cfcb9>=_0x3c578e&&this['right']['forEachLine'](_0x4abb33,_0x1cfcb9,_0x24e8ce,_0x6893b1,_0x3c578e,_0x1f6fec);else{let _0x159a34=this['lineAt'](_0x3c578e,QueryType['ByPos'],_0x24e8ce,_0x50736f,_0xe6913a);_0x4abb33<_0x159a34['from']&&this['left']['forEachLine'](_0x4abb33,_0x159a34['from']-0x1,_0x24e8ce,_0x50736f,_0xe6913a,_0x1f6fec),_0x159a34['to']>=_0x4abb33&&_0x159a34['from']<=_0x1cfcb9&&_0x1f6fec(_0x159a34),_0x1cfcb9>_0x159a34['to']&&this['right']['forEachLine'](_0x159a34['to']+0x1,_0x1cfcb9,_0x24e8ce,_0x6893b1,_0x3c578e,_0x1f6fec);}}['replace'](_0x336e33,_0x567e8c,_0x9973ff){let _0x1b76b2=this['left']['length']+this['break'];if(_0x567e8c<_0x1b76b2)return this['balanced'](this['left']['replace'](_0x336e33,_0x567e8c,_0x9973ff),this['right']);if(_0x336e33>this['left']['length'])return this['balanced'](this['left'],this['right']['replace'](_0x336e33-_0x1b76b2,_0x567e8c-_0x1b76b2,_0x9973ff));let _0x1a271f=[];_0x336e33>0x0&&this['decomposeLeft'](_0x336e33,_0x1a271f);let _0x5c3712=_0x1a271f['length'];for(let _0x32a64d of _0x9973ff)_0x1a271f['push'](_0x32a64d);if(_0x336e33>0x0&&mergeGaps(_0x1a271f,_0x5c3712-0x1),_0x567e8c<this['length']){let _0x27e8d9=_0x1a271f['length'];this['decomposeRight'](_0x567e8c,_0x1a271f),mergeGaps(_0x1a271f,_0x27e8d9);}return HeightMap['of'](_0x1a271f);}['decomposeLeft'](_0x39f741,_0x2306e9){let _0x46a32c=this['left']['length'];if(_0x39f741<=_0x46a32c)return this['left']['decomposeLeft'](_0x39f741,_0x2306e9);_0x2306e9['push'](this['left']),this['break']&&(_0x46a32c++,_0x39f741>=_0x46a32c&&_0x2306e9['push'](null)),_0x39f741>_0x46a32c&&this['right']['decomposeLeft'](_0x39f741-_0x46a32c,_0x2306e9);}['decomposeRight'](_0x519a93,_0x2aaf17){let _0x3ac16a=this['left']['length'],_0x29bb44=_0x3ac16a+this['break'];if(_0x519a93>=_0x29bb44)return this['right']['decomposeRight'](_0x519a93-_0x29bb44,_0x2aaf17);_0x519a93<_0x3ac16a&&this['left']['decomposeRight'](_0x519a93,_0x2aaf17),this['break']&&_0x519a93<_0x29bb44&&_0x2aaf17['push'](null),_0x2aaf17['push'](this['right']);}['balanced'](_0xdd9eb6,_0xb0da1c){return _0xdd9eb6['size']>0x2*_0xb0da1c['size']||_0xb0da1c['size']>0x2*_0xdd9eb6['size']?HeightMap['of'](this['break']?[_0xdd9eb6,null,_0xb0da1c]:[_0xdd9eb6,_0xb0da1c]):(this['left']=replace(this['left'],_0xdd9eb6),this['right']=replace(this['right'],_0xb0da1c),this['setHeight'](_0xdd9eb6['height']+_0xb0da1c['height']),this['outdated']=_0xdd9eb6['outdated']||_0xb0da1c['outdated'],this['size']=_0xdd9eb6['size']+_0xb0da1c['size'],this['length']=_0xdd9eb6['length']+this['break']+_0xb0da1c['length'],this);}['updateHeight'](_0x51e7b2,_0x301e27=0x0,_0x37b89e=!0x1,_0x3e6e8a){let {left:_0x277406,right:_0x94d703}=this,_0x495090=_0x301e27+_0x277406['length']+this['break'],_0x5614be=null;return _0x3e6e8a&&_0x3e6e8a['from']<=_0x301e27+_0x277406['length']&&_0x3e6e8a['more']?_0x5614be=_0x277406=_0x277406['updateHeight'](_0x51e7b2,_0x301e27,_0x37b89e,_0x3e6e8a):_0x277406['updateHeight'](_0x51e7b2,_0x301e27,_0x37b89e),_0x3e6e8a&&_0x3e6e8a['from']<=_0x495090+_0x94d703['length']&&_0x3e6e8a['more']?_0x5614be=_0x94d703=_0x94d703['updateHeight'](_0x51e7b2,_0x495090,_0x37b89e,_0x3e6e8a):_0x94d703['updateHeight'](_0x51e7b2,_0x495090,_0x37b89e),_0x5614be?this['balanced'](_0x277406,_0x94d703):(this['height']=this['left']['height']+this['right']['height'],this['outdated']=!0x1,this);}['toString'](){return this['left']+(this['break']?'\x20':'-')+this['right'];}}function mergeGaps(_0x1c9302,_0x27eb38){let _0x1d46a1,_0x11006f;null==_0x1c9302[_0x27eb38]&&(_0x1d46a1=_0x1c9302[_0x27eb38-0x1])instanceof HeightMapGap&&(_0x11006f=_0x1c9302[_0x27eb38+0x1])instanceof HeightMapGap&&_0x1c9302['splice'](_0x27eb38-0x1,0x3,new HeightMapGap(_0x1d46a1['length']+0x1+_0x11006f['length']));}const relevantWidgetHeight=0x5;class NodeBuilder{constructor(_0x27e310,_0x506e02){this['pos']=_0x27e310,this['oracle']=_0x506e02,this['nodes']=[],this['lineStart']=-0x1,this['lineEnd']=-0x1,this['covering']=null,this['writtenTo']=_0x27e310;}get['isCovered'](){return this['covering']&&this['nodes'][this['nodes']['length']-0x1]==this['covering'];}['span'](_0x4bfa84,_0x5c5187){if(this['lineStart']>-0x1){let _0x52f253=Math['min'](_0x5c5187,this['lineEnd']),_0x317256=this['nodes'][this['nodes']['length']-0x1];_0x317256 instanceof HeightMapText?_0x317256['length']+=_0x52f253-this['pos']:(_0x52f253>this['pos']||!this['isCovered'])&&this['nodes']['push'](new HeightMapText(_0x52f253-this['pos'],-0x1)),this['writtenTo']=_0x52f253,_0x5c5187>_0x52f253&&(this['nodes']['push'](null),this['writtenTo']++,this['lineStart']=-0x1);}this['pos']=_0x5c5187;}['point'](_0x3c8727,_0x487caa,_0xdb59e5){if(_0x3c8727<_0x487caa||_0xdb59e5['heightRelevant']){let _0x2d00c3=_0xdb59e5['widget']?_0xdb59e5['widget']['estimatedHeight']:0x0,_0x1ffb81=_0xdb59e5['widget']?_0xdb59e5['widget']['lineBreaks']:0x0;_0x2d00c3<0x0&&(_0x2d00c3=this['oracle']['lineHeight']);let _0xb2161e=_0x487caa-_0x3c8727;_0xdb59e5['block']?this['addBlock'](new HeightMapBlock(_0xb2161e,_0x2d00c3,_0xdb59e5)):(_0xb2161e||_0x1ffb81||_0x2d00c3>=relevantWidgetHeight)&&this['addLineDeco'](_0x2d00c3,_0x1ffb81,_0xb2161e);}else _0x487caa>_0x3c8727&&this['span'](_0x3c8727,_0x487caa);this['lineEnd']>-0x1&&this['lineEnd']<this['pos']&&(this['lineEnd']=this['oracle']['doc']['lineAt'](this['pos'])['to']);}['enterLine'](){if(this['lineStart']>-0x1)return;let {from:_0x44c029,to:_0xb25fc6}=this['oracle']['doc']['lineAt'](this['pos']);this['lineStart']=_0x44c029,this['lineEnd']=_0xb25fc6,this['writtenTo']<_0x44c029&&((this['writtenTo']<_0x44c029-0x1||null==this['nodes'][this['nodes']['length']-0x1])&&this['nodes']['push'](this['blankContent'](this['writtenTo'],_0x44c029-0x1)),this['nodes']['push'](null)),this['pos']>_0x44c029&&this['nodes']['push'](new HeightMapText(this['pos']-_0x44c029,-0x1)),this['writtenTo']=this['pos'];}['blankContent'](_0x31fbae,_0x2df8b8){let _0x33d3a9=new HeightMapGap(_0x2df8b8-_0x31fbae);return this['oracle']['doc']['lineAt'](_0x31fbae)['to']==_0x2df8b8&&(_0x33d3a9['flags']|=0x4),_0x33d3a9;}['ensureLine'](){this['enterLine']();let _0x148143=this['nodes']['length']?this['nodes'][this['nodes']['length']-0x1]:null;if(_0x148143 instanceof HeightMapText)return _0x148143;let _0x17f266=new HeightMapText(0x0,-0x1);return this['nodes']['push'](_0x17f266),_0x17f266;}['addBlock'](_0xb7edb1){this['enterLine']();let _0x3724cf=_0xb7edb1['deco'];_0x3724cf&&_0x3724cf['startSide']>0x0&&!this['isCovered']&&this['ensureLine'](),this['nodes']['push'](_0xb7edb1),this['writtenTo']=this['pos']=this['pos']+_0xb7edb1['length'],_0x3724cf&&_0x3724cf['endSide']>0x0&&(this['covering']=_0xb7edb1);}['addLineDeco'](_0x140cc7,_0x4673dd,_0x25ea79){let _0x334c7d=this['ensureLine']();_0x334c7d['length']+=_0x25ea79,_0x334c7d['collapsed']+=_0x25ea79,_0x334c7d['widgetHeight']=Math['max'](_0x334c7d['widgetHeight'],_0x140cc7),_0x334c7d['breaks']+=_0x4673dd,this['writtenTo']=this['pos']=this['pos']+_0x25ea79;}['finish'](_0x13c48b){let _0x49b2aa=0x0==this['nodes']['length']?null:this['nodes'][this['nodes']['length']-0x1];!(this['lineStart']>-0x1)||_0x49b2aa instanceof HeightMapText||this['isCovered']?(this['writtenTo']<this['pos']||null==_0x49b2aa)&&this['nodes']['push'](this['blankContent'](this['writtenTo'],this['pos'])):this['nodes']['push'](new HeightMapText(0x0,-0x1));let _0x21d11d=_0x13c48b;for(let _0x24c195 of this['nodes'])_0x24c195 instanceof HeightMapText&&_0x24c195['updateHeight'](this['oracle'],_0x21d11d),_0x21d11d+=_0x24c195?_0x24c195['length']:0x1;return this['nodes'];}static['build'](_0x1d32c5,_0x4b9f20,_0x365993,_0x1c5db0){let _0x1b37bf=new NodeBuilder(_0x365993,_0x1d32c5);return RangeSet['spans'](_0x4b9f20,_0x365993,_0x1c5db0,_0x1b37bf,0x0),_0x1b37bf['finish'](_0x365993);}}function heightRelevantDecoChanges(_0x17b119,_0x1db5bd,_0x881aba){let _0x1cfbbc=new DecorationComparator();return RangeSet['compare'](_0x17b119,_0x1db5bd,_0x881aba,_0x1cfbbc,0x0),_0x1cfbbc['changes'];}class DecorationComparator{constructor(){this['changes']=[];}['compareRange'](){}['comparePoint'](_0x245bf7,_0x35514a,_0x113ee0,_0x265077){(_0x245bf7<_0x35514a||_0x113ee0&&_0x113ee0['heightRelevant']||_0x265077&&_0x265077['heightRelevant'])&&addRange(_0x245bf7,_0x35514a,this['changes'],0x5);}}function visiblePixelRange(_0x2cbf32,_0x3035e2){let _0x2b1fef=_0x2cbf32['getBoundingClientRect'](),_0x1ae59f=_0x2cbf32['ownerDocument'],_0x38083c=_0x1ae59f['defaultView']||window,_0x23109d=Math['max'](0x0,_0x2b1fef['left']),_0x47a8fa=Math['min'](_0x38083c['innerWidth'],_0x2b1fef['right']),_0x52d76d=Math['max'](0x0,_0x2b1fef['top']),_0x58c92c=Math['min'](_0x38083c['innerHeight'],_0x2b1fef['bottom']);for(let _0xdfcba4=_0x2cbf32['parentNode'];_0xdfcba4&&_0xdfcba4!=_0x1ae59f['body'];)if(0x1==_0xdfcba4['nodeType']){let _0x52d173=_0xdfcba4,_0x480554=window['getComputedStyle'](_0x52d173);if((_0x52d173['scrollHeight']>_0x52d173['clientHeight']||_0x52d173['scrollWidth']>_0x52d173['clientWidth'])&&'visible'!=_0x480554['overflow']){let _0xe30cce=_0x52d173['getBoundingClientRect']();_0x23109d=Math['max'](_0x23109d,_0xe30cce['left']),_0x47a8fa=Math['min'](_0x47a8fa,_0xe30cce['right']),_0x52d76d=Math['max'](_0x52d76d,_0xe30cce['top']),_0x58c92c=Math['min'](_0xdfcba4==_0x2cbf32['parentNode']?_0x38083c['innerHeight']:_0x58c92c,_0xe30cce['bottom']);}_0xdfcba4='absolute'==_0x480554['position']||'fixed'==_0x480554['position']?_0x52d173['offsetParent']:_0x52d173['parentNode'];}else{if(0xb!=_0xdfcba4['nodeType'])break;_0xdfcba4=_0xdfcba4['host'];}return{'left':_0x23109d-_0x2b1fef['left'],'right':Math['max'](_0x23109d,_0x47a8fa)-_0x2b1fef['left'],'top':_0x52d76d-(_0x2b1fef['top']+_0x3035e2),'bottom':Math['max'](_0x52d76d,_0x58c92c)-(_0x2b1fef['top']+_0x3035e2)};}function inWindow(_0x4bb141){let _0x239513=_0x4bb141['getBoundingClientRect'](),_0x3fa160=_0x4bb141['ownerDocument']['defaultView']||window;return _0x239513['left']<_0x3fa160['innerWidth']&&_0x239513['right']>0x0&&_0x239513['top']<_0x3fa160['innerHeight']&&_0x239513['bottom']>0x0;}function fullPixelRange(_0x1c7c2e,_0x3e784a){let _0x224add=_0x1c7c2e['getBoundingClientRect']();return{'left':0x0,'right':_0x224add['right']-_0x224add['left'],'top':_0x3e784a,'bottom':_0x224add['bottom']-(_0x224add['top']+_0x3e784a)};}class LineGap{constructor(_0x5021cc,_0x445c77,_0x4212c1,_0x3cd4f6){this['from']=_0x5021cc,this['to']=_0x445c77,this['size']=_0x4212c1,this['displaySize']=_0x3cd4f6;}static['same'](_0x5522c5,_0x1db10e){if(_0x5522c5['length']!=_0x1db10e['length'])return!0x1;for(let _0x130fca=0x0;_0x130fca<_0x5522c5['length'];_0x130fca++){let _0x368046=_0x5522c5[_0x130fca],_0x236eec=_0x1db10e[_0x130fca];if(_0x368046['from']!=_0x236eec['from']||_0x368046['to']!=_0x236eec['to']||_0x368046['size']!=_0x236eec['size'])return!0x1;}return!0x0;}['draw'](_0x3a52f9,_0xdc5cdf){return Decoration['replace']({'widget':new LineGapWidget(this['displaySize']*(_0xdc5cdf?_0x3a52f9['scaleY']:_0x3a52f9['scaleX']),_0xdc5cdf)})['range'](this['from'],this['to']);}}class LineGapWidget extends WidgetType{constructor(_0x59f29d,_0x12fcb8){super(),this['size']=_0x59f29d,this['vertical']=_0x12fcb8;}['eq'](_0x3bc740){return _0x3bc740['size']==this['size']&&_0x3bc740['vertical']==this['vertical'];}['toDOM'](){let _0x5a1621=document['createElement']('div');return this['vertical']?_0x5a1621['style']['height']=this['size']+'px':(_0x5a1621['style']['width']=this['size']+'px',_0x5a1621['style']['height']='2px',_0x5a1621['style']['display']='inline-block'),_0x5a1621;}get['estimatedHeight'](){return this['vertical']?this['size']:-0x1;}}class ViewState{constructor(_0x5a32cb){this['state']=_0x5a32cb,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 _0x1bbbc8=_0x5a32cb['facet'](contentAttributes)['some'](_0x36bf5c=>'function'!=typeof _0x36bf5c&&'cm-lineWrapping'==_0x36bf5c['class']);this['heightOracle']=new HeightOracle(_0x1bbbc8),this['stateDeco']=_0x5a32cb['facet'](decorations)['filter'](_0x5dad48=>'function'!=typeof _0x5dad48),this['heightMap']=HeightMap['empty']()['applyChanges'](this['stateDeco'],Text['empty'],this['heightOracle']['setDoc'](_0x5a32cb['doc']),[new ChangedRange(0x0,0x0,0x0,_0x5a32cb['doc']['length'])]);for(let _0x518d40=0x0;_0x518d40<0x2&&(this['viewport']=this['getViewport'](0x0,null),this['updateForViewport']());_0x518d40++);this['updateViewportLines'](),this['lineGaps']=this['ensureLineGaps']([]),this['lineGapDeco']=Decoration['set'](this['lineGaps']['map'](_0x9bbb7f=>_0x9bbb7f['draw'](this,!0x1))),this['computeVisibleRanges']();}['updateForViewport'](){let _0x5408ed=[this['viewport']],{main:_0x12da74}=this['state']['selection'];for(let _0x14597a=0x0;_0x14597a<=0x1;_0x14597a++){let _0x353946=_0x14597a?_0x12da74['head']:_0x12da74['anchor'];if(!_0x5408ed['some'](({from:_0x1cf99b,to:_0x1a0000})=>_0x353946>=_0x1cf99b&&_0x353946<=_0x1a0000)){let {from:_0xee1f8,to:_0x1a9ef1}=this['lineBlockAt'](_0x353946);_0x5408ed['push'](new Viewport(_0xee1f8,_0x1a9ef1));}}return this['viewports']=_0x5408ed['sort']((_0x3aa6b0,_0x3ab933)=>_0x3aa6b0['from']-_0x3ab933['from']),this['updateScaler']();}['updateScaler'](){let _0x369052=this['scaler'];return this['scaler']=this['heightMap']['height']<=0x6acfc0?IdScaler:new BigScaler(this['heightOracle'],this['heightMap'],this['viewports']),_0x369052['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,_0x409468=>{this['viewportLines']['push'](scaleBlock(_0x409468,this['scaler']));});}['update'](_0x3f8f5a,_0x285c6a=null){this['state']=_0x3f8f5a['state'];let _0x50d7e4=this['stateDeco'];this['stateDeco']=this['state']['facet'](decorations)['filter'](_0x3adb41=>'function'!=typeof _0x3adb41);let _0x54ece4=_0x3f8f5a['changedRanges'],_0xa31b8c=ChangedRange['extendWithRanges'](_0x54ece4,heightRelevantDecoChanges(_0x50d7e4,this['stateDeco'],_0x3f8f5a?_0x3f8f5a['changes']:ChangeSet['empty'](this['state']['doc']['length']))),_0x467bad=this['heightMap']['height'],_0x4aff1a=this['scrolledToBottom']?null:this['scrollAnchorAt'](this['scrollTop']);clearHeightChangeFlag(),this['heightMap']=this['heightMap']['applyChanges'](this['stateDeco'],_0x3f8f5a['startState']['doc'],this['heightOracle']['setDoc'](this['state']['doc']),_0xa31b8c),(this['heightMap']['height']!=_0x467bad||heightChangeFlag)&&(_0x3f8f5a['flags']|=0x2),_0x4aff1a?(this['scrollAnchorPos']=_0x3f8f5a['changes']['mapPos'](_0x4aff1a['from'],-0x1),this['scrollAnchorHeight']=_0x4aff1a['top']):(this['scrollAnchorPos']=-0x1,this['scrollAnchorHeight']=_0x467bad);let _0xa3c8a8=_0xa31b8c['length']?this['mapViewport'](this['viewport'],_0x3f8f5a['changes']):this['viewport'];(_0x285c6a&&(_0x285c6a['range']['head']<_0xa3c8a8['from']||_0x285c6a['range']['head']>_0xa3c8a8['to'])||!this['viewportIsAppropriate'](_0xa3c8a8))&&(_0xa3c8a8=this['getViewport'](0x0,_0x285c6a));let _0x3a24e6=_0xa3c8a8['from']!=this['viewport']['from']||_0xa3c8a8['to']!=this['viewport']['to'];this['viewport']=_0xa3c8a8,_0x3f8f5a['flags']|=this['updateForViewport'](),(_0x3a24e6||!_0x3f8f5a['changes']['empty']||0x2&_0x3f8f5a['flags'])&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](this['mapLineGaps'](this['lineGaps'],_0x3f8f5a['changes']))),_0x3f8f5a['flags']|=this['computeVisibleRanges'](_0x3f8f5a['changes']),_0x285c6a&&(this['scrollTarget']=_0x285c6a),!this['mustEnforceCursorAssoc']&&_0x3f8f5a['selectionSet']&&_0x3f8f5a['view']['lineWrapping']&&_0x3f8f5a['state']['selection']['main']['empty']&&_0x3f8f5a['state']['selection']['main']['assoc']&&!_0x3f8f5a['state']['facet'](nativeSelectionHidden)&&(this['mustEnforceCursorAssoc']=!0x0);}['measure'](_0x4bf4da){let _0xc6cbd5=_0x4bf4da['contentDOM'],_0x51af54=window['getComputedStyle'](_0xc6cbd5),_0x1f05b5=this['heightOracle'],_0xc3ca8=_0x51af54['whiteSpace'];this['defaultTextDirection']='rtl'==_0x51af54['direction']?Direction['RTL']:Direction['LTR'];let _0x109b77=this['heightOracle']['mustRefreshForWrapping'](_0xc3ca8),_0x2c2e50=_0xc6cbd5['getBoundingClientRect'](),_0x310178=_0x109b77||this['mustMeasureContent']||this['contentDOMHeight']!=_0x2c2e50['height'];this['contentDOMHeight']=_0x2c2e50['height'],this['mustMeasureContent']=!0x1;let _0x113b54=0x0,_0x17c5dc=0x0;if(_0x2c2e50['width']&&_0x2c2e50['height']){let {scaleX:_0x3e0312,scaleY:_0x4fa492}=getScale(_0xc6cbd5,_0x2c2e50);(_0x3e0312>0.005&&Math['abs'](this['scaleX']-_0x3e0312)>0.005||_0x4fa492>0.005&&Math['abs'](this['scaleY']-_0x4fa492)>0.005)&&(this['scaleX']=_0x3e0312,this['scaleY']=_0x4fa492,_0x113b54|=0x10,_0x109b77=_0x310178=!0x0);}let _0x4a55b0=(parseInt(_0x51af54['paddingTop'])||0x0)*this['scaleY'],_0x51d283=(parseInt(_0x51af54['paddingBottom'])||0x0)*this['scaleY'];this['paddingTop']==_0x4a55b0&&this['paddingBottom']==_0x51d283||(this['paddingTop']=_0x4a55b0,this['paddingBottom']=_0x51d283,_0x113b54|=0x12),this['editorWidth']!=_0x4bf4da['scrollDOM']['clientWidth']&&(_0x1f05b5['lineWrapping']&&(_0x310178=!0x0),this['editorWidth']=_0x4bf4da['scrollDOM']['clientWidth'],_0x113b54|=0x10);let _0x431d5f=_0x4bf4da['scrollDOM']['scrollTop']*this['scaleY'];this['scrollTop']!=_0x431d5f&&(this['scrollAnchorHeight']=-0x1,this['scrollTop']=_0x431d5f),this['scrolledToBottom']=isScrolledToBottom(_0x4bf4da['scrollDOM']);let _0x4d530a=(this['printing']?fullPixelRange:visiblePixelRange)(_0xc6cbd5,this['paddingTop']),_0x439597=_0x4d530a['top']-this['pixelViewport']['top'],_0x28f92d=_0x4d530a['bottom']-this['pixelViewport']['bottom'];this['pixelViewport']=_0x4d530a;let _0x1f4457=this['pixelViewport']['bottom']>this['pixelViewport']['top']&&this['pixelViewport']['right']>this['pixelViewport']['left'];if(_0x1f4457!=this['inView']&&(this['inView']=_0x1f4457,_0x1f4457&&(_0x310178=!0x0)),!this['inView']&&!this['scrollTarget']&&!inWindow(_0x4bf4da['dom']))return 0x0;let _0x260254=_0x2c2e50['width'];if(this['contentDOMWidth']==_0x260254&&this['editorHeight']==_0x4bf4da['scrollDOM']['clientHeight']||(this['contentDOMWidth']=_0x2c2e50['width'],this['editorHeight']=_0x4bf4da['scrollDOM']['clientHeight'],_0x113b54|=0x10),_0x310178){let _0x10cab7=_0x4bf4da['docView']['measureVisibleLineHeights'](this['viewport']);if(_0x1f05b5['mustRefreshForHeights'](_0x10cab7)&&(_0x109b77=!0x0),_0x109b77||_0x1f05b5['lineWrapping']&&Math['abs'](_0x260254-this['contentDOMWidth'])>_0x1f05b5['charWidth']){let {lineHeight:_0x43641a,charWidth:_0x4e6cf8,textHeight:_0x1664cd}=_0x4bf4da['docView']['measureTextSize']();_0x109b77=_0x43641a>0x0&&_0x1f05b5['refresh'](_0xc3ca8,_0x43641a,_0x4e6cf8,_0x1664cd,Math['max'](0x5,_0x260254/_0x4e6cf8),_0x10cab7),_0x109b77&&(_0x4bf4da['docView']['minWidth']=0x0,_0x113b54|=0x10);}_0x439597>0x0&&_0x28f92d>0x0?_0x17c5dc=Math['max'](_0x439597,_0x28f92d):_0x439597<0x0&&_0x28f92d<0x0&&(_0x17c5dc=Math['min'](_0x439597,_0x28f92d)),clearHeightChangeFlag();for(let _0x1cca33 of this['viewports']){let _0x571200=_0x1cca33['from']==this['viewport']['from']?_0x10cab7:_0x4bf4da['docView']['measureVisibleLineHeights'](_0x1cca33);this['heightMap']=(_0x109b77?HeightMap['empty']()['applyChanges'](this['stateDeco'],Text['empty'],this['heightOracle'],[new ChangedRange(0x0,0x0,0x0,_0x4bf4da['state']['doc']['length'])]):this['heightMap'])['updateHeight'](_0x1f05b5,0x0,_0x109b77,new MeasuredHeights(_0x1cca33['from'],_0x571200));}heightChangeFlag&&(_0x113b54|=0x2);}let _0x537b76=!this['viewportIsAppropriate'](this['viewport'],_0x17c5dc)||this['scrollTarget']&&(this['scrollTarget']['range']['head']<this['viewport']['from']||this['scrollTarget']['range']['head']>this['viewport']['to']);return _0x537b76&&(0x2&_0x113b54&&(_0x113b54|=this['updateScaler']()),this['viewport']=this['getViewport'](_0x17c5dc,this['scrollTarget']),_0x113b54|=this['updateForViewport']()),(0x2&_0x113b54||_0x537b76)&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](_0x109b77?[]:this['lineGaps'],_0x4bf4da)),_0x113b54|=this['computeVisibleRanges'](),this['mustEnforceCursorAssoc']&&(this['mustEnforceCursorAssoc']=!0x1,_0x4bf4da['docView']['enforceCursorAssoc']()),_0x113b54;}get['visibleTop'](){return this['scaler']['fromDOM'](this['pixelViewport']['top']);}get['visibleBottom'](){return this['scaler']['fromDOM'](this['pixelViewport']['bottom']);}['getViewport'](_0x57810c,_0x103418){let _0x482f9b=0.5-Math['max'](-0.5,Math['min'](0.5,_0x57810c/0x3e8/0x2)),_0x405da9=this['heightMap'],_0x245ec1=this['heightOracle'],{visibleTop:_0x36c723,visibleBottom:_0x4815ff}=this,_0x352efd=new Viewport(_0x405da9['lineAt'](_0x36c723-0x3e8*_0x482f9b,QueryType['ByHeight'],_0x245ec1,0x0,0x0)['from'],_0x405da9['lineAt'](_0x4815ff+0x3e8*(0x1-_0x482f9b),QueryType['ByHeight'],_0x245ec1,0x0,0x0)['to']);if(_0x103418){let {head:_0x3a18e5}=_0x103418['range'];if(_0x3a18e5<_0x352efd['from']||_0x3a18e5>_0x352efd['to']){let _0x937d57,_0x2697e5=Math['min'](this['editorHeight'],this['pixelViewport']['bottom']-this['pixelViewport']['top']),_0x3d6be7=_0x405da9['lineAt'](_0x3a18e5,QueryType['ByPos'],_0x245ec1,0x0,0x0);_0x937d57='center'==_0x103418['y']?(_0x3d6be7['top']+_0x3d6be7['bottom'])/0x2-_0x2697e5/0x2:'start'==_0x103418['y']||'nearest'==_0x103418['y']&&_0x3a18e5<_0x352efd['from']?_0x3d6be7['top']:_0x3d6be7['bottom']-_0x2697e5,_0x352efd=new Viewport(_0x405da9['lineAt'](_0x937d57-0x1f4,QueryType['ByHeight'],_0x245ec1,0x0,0x0)['from'],_0x405da9['lineAt'](_0x937d57+_0x2697e5+0x1f4,QueryType['ByHeight'],_0x245ec1,0x0,0x0)['to']);}}return _0x352efd;}['mapViewport'](_0x235e37,_0x4649db){let _0x5da859=_0x4649db['mapPos'](_0x235e37['from'],-0x1),_0x42d957=_0x4649db['mapPos'](_0x235e37['to'],0x1);return new Viewport(this['heightMap']['lineAt'](_0x5da859,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['from'],this['heightMap']['lineAt'](_0x42d957,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['to']);}['viewportIsAppropriate']({from:_0xdd2bb8,to:_0x264f21},_0x1ded3c=0x0){if(!this['inView'])return!0x0;let {top:_0x51138b}=this['heightMap']['lineAt'](_0xdd2bb8,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{bottom:_0x4282c9}=this['heightMap']['lineAt'](_0x264f21,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{visibleTop:_0x302a36,visibleBottom:_0x3ffe2b}=this;return(0x0==_0xdd2bb8||_0x51138b<=_0x302a36-Math['max'](0xa,Math['min'](-_0x1ded3c,0xfa)))&&(_0x264f21==this['state']['doc']['length']||_0x4282c9>=_0x3ffe2b+Math['max'](0xa,Math['min'](_0x1ded3c,0xfa)))&&_0x51138b>_0x302a36-0x7d0&&_0x4282c9<_0x3ffe2b+0x7d0;}['mapLineGaps'](_0x5e7ba5,_0x2e5e77){if(!_0x5e7ba5['length']||_0x2e5e77['empty'])return _0x5e7ba5;let _0x19b736=[];for(let _0x54743d of _0x5e7ba5)_0x2e5e77['touchesRange'](_0x54743d['from'],_0x54743d['to'])||_0x19b736['push'](new LineGap(_0x2e5e77['mapPos'](_0x54743d['from']),_0x2e5e77['mapPos'](_0x54743d['to']),_0x54743d['size'],_0x54743d['displaySize']));return _0x19b736;}['ensureLineGaps'](_0x474bc8,_0xe5e36e){let _0x530756=this['heightOracle']['lineWrapping'],_0x51e429=_0x530756?0x2710:0x7d0,_0x581677=_0x51e429>>0x1,_0x4705ec=_0x51e429<<0x1;if(this['defaultTextDirection']!=Direction['LTR']&&!_0x530756)return[];let _0xac1707=[],_0x18f65e=(_0x441374,_0xab59a,_0x2471cf,_0x4579c6)=>{if(_0xab59a-_0x441374<_0x581677)return;let _0x5300ee=this['state']['selection']['main'],_0x1628b0=[_0x5300ee['from']];_0x5300ee['empty']||_0x1628b0['push'](_0x5300ee['to']);for(let _0xd9b375 of _0x1628b0)if(_0xd9b375>_0x441374&&_0xd9b375<_0xab59a)return _0x18f65e(_0x441374,_0xd9b375-0xa,_0x2471cf,_0x4579c6),void _0x18f65e(_0xd9b375+0xa,_0xab59a,_0x2471cf,_0x4579c6);let _0x1a77e4=find(_0x474bc8,_0x7d9a6b=>_0x7d9a6b['from']>=_0x2471cf['from']&&_0x7d9a6b['to']<=_0x2471cf['to']&&Math['abs'](_0x7d9a6b['from']-_0x441374)<_0x581677&&Math['abs'](_0x7d9a6b['to']-_0xab59a)<_0x581677&&!_0x1628b0['some'](_0x2151cb=>_0x7d9a6b['from']<_0x2151cb&&_0x7d9a6b['to']>_0x2151cb));if(!_0x1a77e4){if(_0xab59a<_0x2471cf['to']&&_0xe5e36e&&_0x530756&&_0xe5e36e['visibleRanges']['some'](_0x41a70b=>_0x41a70b['from']<=_0xab59a&&_0x41a70b['to']>=_0xab59a)){let _0x15f9df=_0xe5e36e['moveToLineBoundary'](EditorSelection['cursor'](_0xab59a),!0x1,!0x0)['head'];_0x15f9df>_0x441374&&(_0xab59a=_0x15f9df);}let _0x53b562=this['gapSize'](_0x2471cf,_0x441374,_0xab59a,_0x4579c6);_0x1a77e4=new LineGap(_0x441374,_0xab59a,_0x53b562,_0x530756||_0x53b562<0x1e8480?_0x53b562:0x1e8480);}_0xac1707['push'](_0x1a77e4);},_0x439791=_0x29f9a7=>{if(_0x29f9a7['length']<_0x4705ec||_0x29f9a7['type']!=BlockType['Text'])return;let _0x7ca6ee=lineStructure(_0x29f9a7['from'],_0x29f9a7['to'],this['stateDeco']);if(_0x7ca6ee['total']<_0x4705ec)return;let _0x480592,_0x3966f2,_0x5c925d=this['scrollTarget']?this['scrollTarget']['range']['head']:null;if(_0x530756){let _0x148cce,_0x16ca8e,_0x4be738=_0x51e429/this['heightOracle']['lineLength']*this['heightOracle']['lineHeight'];if(null!=_0x5c925d){let _0x25ae24=findFraction(_0x7ca6ee,_0x5c925d),_0xea76ff=((this['visibleBottom']-this['visibleTop'])/0x2+_0x4be738)/_0x29f9a7['height'];_0x148cce=_0x25ae24-_0xea76ff,_0x16ca8e=_0x25ae24+_0xea76ff;}else _0x148cce=(this['visibleTop']-_0x29f9a7['top']-_0x4be738)/_0x29f9a7['height'],_0x16ca8e=(this['visibleBottom']-_0x29f9a7['top']+_0x4be738)/_0x29f9a7['height'];_0x480592=findPosition(_0x7ca6ee,_0x148cce),_0x3966f2=findPosition(_0x7ca6ee,_0x16ca8e);}else{let _0x475b83=_0x7ca6ee['total']*this['heightOracle']['charWidth'],_0x2d0f9d=_0x51e429*this['heightOracle']['charWidth'],_0x184eda=0x0;if(_0x475b83>0x1e8480){for(let _0x5000e1 of _0x474bc8)_0x5000e1['from']>=_0x29f9a7['from']&&_0x5000e1['from']<_0x29f9a7['to']&&_0x5000e1['size']!=_0x5000e1['displaySize']&&_0x5000e1['from']*this['heightOracle']['charWidth']+_0x184eda<this['pixelViewport']['left']&&(_0x184eda=_0x5000e1['size']-_0x5000e1['displaySize']);}let _0x3e928d,_0x390931,_0x4224ad=this['pixelViewport']['left']+_0x184eda,_0x1c0e19=this['pixelViewport']['right']+_0x184eda;if(null!=_0x5c925d){let _0x1020ea=findFraction(_0x7ca6ee,_0x5c925d),_0x5482dc=((_0x1c0e19-_0x4224ad)/0x2+_0x2d0f9d)/_0x475b83;_0x3e928d=_0x1020ea-_0x5482dc,_0x390931=_0x1020ea+_0x5482dc;}else _0x3e928d=(_0x4224ad-_0x2d0f9d)/_0x475b83,_0x390931=(_0x1c0e19+_0x2d0f9d)/_0x475b83;_0x480592=findPosition(_0x7ca6ee,_0x3e928d),_0x3966f2=findPosition(_0x7ca6ee,_0x390931);}_0x480592>_0x29f9a7['from']&&_0x18f65e(_0x29f9a7['from'],_0x480592,_0x29f9a7,_0x7ca6ee),_0x3966f2<_0x29f9a7['to']&&_0x18f65e(_0x3966f2,_0x29f9a7['to'],_0x29f9a7,_0x7ca6ee);};for(let _0x2fc1bc of this['viewportLines'])Array['isArray'](_0x2fc1bc['type'])?_0x2fc1bc['type']['forEach'](_0x439791):_0x439791(_0x2fc1bc);return _0xac1707;}['gapSize'](_0x3acaec,_0x2585fe,_0x238421,_0x339bbd){let _0x4dc8ab=findFraction(_0x339bbd,_0x238421)-findFraction(_0x339bbd,_0x2585fe);return this['heightOracle']['lineWrapping']?_0x3acaec['height']*_0x4dc8ab:_0x339bbd['total']*this['heightOracle']['charWidth']*_0x4dc8ab;}['updateLineGaps'](_0x2d47a7){LineGap['same'](_0x2d47a7,this['lineGaps'])||(this['lineGaps']=_0x2d47a7,this['lineGapDeco']=Decoration['set'](_0x2d47a7['map'](_0x5162aa=>_0x5162aa['draw'](this,this['heightOracle']['lineWrapping']))));}['computeVisibleRanges'](_0x47afe2){let _0x5914a8=this['stateDeco'];this['lineGaps']['length']&&(_0x5914a8=_0x5914a8['concat'](this['lineGapDeco']));let _0xcdb169=[];RangeSet['spans'](_0x5914a8,this['viewport']['from'],this['viewport']['to'],{'span'(_0x2d27df,_0x555db7){_0xcdb169['push']({'from':_0x2d27df,'to':_0x555db7});},'point'(){}},0x14);let _0x3a32e1=0x0;if(_0xcdb169['length']!=this['visibleRanges']['length'])_0x3a32e1=0xc;else for(let _0x27da73=0x0;_0x27da73<_0xcdb169['length']&&!(0x8&_0x3a32e1);_0x27da73++){let _0x285ee3=this['visibleRanges'][_0x27da73],_0x491850=_0xcdb169[_0x27da73];_0x285ee3['from']==_0x491850['from']&&_0x285ee3['to']==_0x491850['to']||(_0x3a32e1|=0x4,_0x47afe2&&_0x47afe2['mapPos'](_0x285ee3['from'],-0x1)==_0x491850['from']&&_0x47afe2['mapPos'](_0x285ee3['to'],0x1)==_0x491850['to']||(_0x3a32e1|=0x8));}return this['visibleRanges']=_0xcdb169,_0x3a32e1;}['lineBlockAt'](_0x4eba80){return _0x4eba80>=this['viewport']['from']&&_0x4eba80<=this['viewport']['to']&&this['viewportLines']['find'](_0xd2f682=>_0xd2f682['from']<=_0x4eba80&&_0xd2f682['to']>=_0x4eba80)||scaleBlock(this['heightMap']['lineAt'](_0x4eba80,QueryType['ByPos'],this['heightOracle'],0x0,0x0),this['scaler']);}['lineBlockAtHeight'](_0x1229aa){return _0x1229aa>=this['viewportLines'][0x0]['top']&&_0x1229aa<=this['viewportLines'][this['viewportLines']['length']-0x1]['bottom']&&this['viewportLines']['find'](_0x833e4=>_0x833e4['top']<=_0x1229aa&&_0x833e4['bottom']>=_0x1229aa)||scaleBlock(this['heightMap']['lineAt'](this['scaler']['fromDOM'](_0x1229aa),QueryType['ByHeight'],this['heightOracle'],0x0,0x0),this['scaler']);}['scrollAnchorAt'](_0x313ea9){let _0x5b8a88=this['lineBlockAtHeight'](_0x313ea9+0x8);return _0x5b8a88['from']>=this['viewport']['from']||this['viewportLines'][0x0]['top']-_0x313ea9>0xc8?_0x5b8a88:this['viewportLines'][0x0];}['elementAtHeight'](_0x2f71e4){return scaleBlock(this['heightMap']['blockAt'](this['scaler']['fromDOM'](_0x2f71e4),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(_0x3774f9,_0x11bcda){this['from']=_0x3774f9,this['to']=_0x11bcda;}}function lineStructure(_0x211049,_0x3fb79e,_0x13fbff){let _0x1e3f1c=[],_0x694367=_0x211049,_0x2576e1=0x0;return RangeSet['spans'](_0x13fbff,_0x211049,_0x3fb79e,{'span'(){},'point'(_0x53bd71,_0x2a46ee){_0x53bd71>_0x694367&&(_0x1e3f1c['push']({'from':_0x694367,'to':_0x53bd71}),_0x2576e1+=_0x53bd71-_0x694367),_0x694367=_0x2a46ee;}},0x14),_0x694367<_0x3fb79e&&(_0x1e3f1c['push']({'from':_0x694367,'to':_0x3fb79e}),_0x2576e1+=_0x3fb79e-_0x694367),{'total':_0x2576e1,'ranges':_0x1e3f1c};}function findPosition({total:_0x9f13e,ranges:_0x30156b},_0x4ccea9){if(_0x4ccea9<=0x0)return _0x30156b[0x0]['from'];if(_0x4ccea9>=0x1)return _0x30156b[_0x30156b['length']-0x1]['to'];let _0x2860a2=Math['floor'](_0x9f13e*_0x4ccea9);for(let _0x1eac7a=0x0;;_0x1eac7a++){let {from:_0x3e101c,to:_0x14cb1c}=_0x30156b[_0x1eac7a],_0x2e24c5=_0x14cb1c-_0x3e101c;if(_0x2860a2<=_0x2e24c5)return _0x3e101c+_0x2860a2;_0x2860a2-=_0x2e24c5;}}function findFraction(_0x1322c0,_0x3b9299){let _0x15a619=0x0;for(let {from:_0x369d4b,to:_0x5688b4}of _0x1322c0['ranges']){if(_0x3b9299<=_0x5688b4){_0x15a619+=_0x3b9299-_0x369d4b;break;}_0x15a619+=_0x5688b4-_0x369d4b;}return _0x15a619/_0x1322c0['total'];}function find(_0x48d669,_0x5b4325){for(let _0x462abe of _0x48d669)if(_0x5b4325(_0x462abe))return _0x462abe;}const IdScaler={'toDOM':_0x533fa7=>_0x533fa7,'fromDOM':_0xc24b9=>_0xc24b9,'scale':0x1,'eq'(_0x1708c5){return _0x1708c5==this;}};class BigScaler{constructor(_0x41dc88,_0xe23bbc,_0x323c4c){let _0x2142b2=0x0,_0x9861df=0x0,_0x51d526=0x0;this['viewports']=_0x323c4c['map'](({from:_0x4632f7,to:_0x32c32d})=>{let _0x17a440=_0xe23bbc['lineAt'](_0x4632f7,QueryType['ByPos'],_0x41dc88,0x0,0x0)['top'],_0x5319ba=_0xe23bbc['lineAt'](_0x32c32d,QueryType['ByPos'],_0x41dc88,0x0,0x0)['bottom'];return _0x2142b2+=_0x5319ba-_0x17a440,{'from':_0x4632f7,'to':_0x32c32d,'top':_0x17a440,'bottom':_0x5319ba,'domTop':0x0,'domBottom':0x0};}),this['scale']=(0x6acfc0-_0x2142b2)/(_0xe23bbc['height']-_0x2142b2);for(let _0x34dc1e of this['viewports'])_0x34dc1e['domTop']=_0x51d526+(_0x34dc1e['top']-_0x9861df)*this['scale'],_0x51d526=_0x34dc1e['domBottom']=_0x34dc1e['domTop']+(_0x34dc1e['bottom']-_0x34dc1e['top']),_0x9861df=_0x34dc1e['bottom'];}['toDOM'](_0x19256b){for(let _0x12a8af=0x0,_0x53afb4=0x0,_0x48c52f=0x0;;_0x12a8af++){let _0x3460cd=_0x12a8af<this['viewports']['length']?this['viewports'][_0x12a8af]:null;if(!_0x3460cd||_0x19256b<_0x3460cd['top'])return _0x48c52f+(_0x19256b-_0x53afb4)*this['scale'];if(_0x19256b<=_0x3460cd['bottom'])return _0x3460cd['domTop']+(_0x19256b-_0x3460cd['top']);_0x53afb4=_0x3460cd['bottom'],_0x48c52f=_0x3460cd['domBottom'];}}['fromDOM'](_0x7bb2d8){for(let _0x1518aa=0x0,_0x3bd808=0x0,_0x5c5c01=0x0;;_0x1518aa++){let _0x3ffa09=_0x1518aa<this['viewports']['length']?this['viewports'][_0x1518aa]:null;if(!_0x3ffa09||_0x7bb2d8<_0x3ffa09['domTop'])return _0x3bd808+(_0x7bb2d8-_0x5c5c01)/this['scale'];if(_0x7bb2d8<=_0x3ffa09['domBottom'])return _0x3ffa09['top']+(_0x7bb2d8-_0x3ffa09['domTop']);_0x3bd808=_0x3ffa09['bottom'],_0x5c5c01=_0x3ffa09['domBottom'];}}['eq'](_0x2e3365){return _0x2e3365 instanceof BigScaler&&(this['scale']==_0x2e3365['scale']&&this['viewports']['length']==_0x2e3365['viewports']['length']&&this['viewports']['every']((_0x43a3d0,_0x9b75f0)=>_0x43a3d0['from']==_0x2e3365['viewports'][_0x9b75f0]['from']&&_0x43a3d0['to']==_0x2e3365['viewports'][_0x9b75f0]['to']));}}function scaleBlock(_0x524f35,_0x1ead7b){if(0x1==_0x1ead7b['scale'])return _0x524f35;let _0x3b1ceb=_0x1ead7b['toDOM'](_0x524f35['top']),_0x36eda8=_0x1ead7b['toDOM'](_0x524f35['bottom']);return new BlockInfo(_0x524f35['from'],_0x524f35['length'],_0x3b1ceb,_0x36eda8-_0x3b1ceb,Array['isArray'](_0x524f35['_content'])?_0x524f35['_content']['map'](_0xc28e2b=>scaleBlock(_0xc28e2b,_0x1ead7b)):_0x524f35['_content']);}const theme=Facet['define']({'combine':_0x2d0776=>_0x2d0776['join']('\x20')}),darkTheme=Facet['define']({'combine':_0x1faf1f=>_0x1faf1f['indexOf'](!0x0)>-0x1}),baseThemeID=StyleModule['newName'](),baseLightID=StyleModule['newName'](),baseDarkID=StyleModule['newName'](),lightDarkIDs={'&light':'.'+baseLightID,'&dark':'.'+baseDarkID};function buildTheme(_0x4598df,_0x12d3ea,_0x470820){return new StyleModule(_0x12d3ea,{'finish':_0x5cf00d=>/&/['test'](_0x5cf00d)?_0x5cf00d['replace'](/&\w*/,_0x49d781=>{if('&'==_0x49d781)return _0x4598df;if(!_0x470820||!_0x470820[_0x49d781])throw new RangeError('Unsupported\x20selector:\x20'+_0x49d781);return _0x470820[_0x49d781];}):_0x4598df+'\x20'+_0x5cf00d});}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(_0x508963){this['view']=_0x508963,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']=_0x508963['contentDOM'],this['observer']=new MutationObserver(_0x3736c3=>{for(let _0x523f8c of _0x3736c3)this['queue']['push'](_0x523f8c);(browser['ie']&&browser['ie_version']<=0xb||browser['ios']&&_0x508963['composing'])&&_0x3736c3['some'](_0x42d136=>'childList'==_0x42d136['type']&&_0x42d136['removedNodes']['length']||'characterData'==_0x42d136['type']&&_0x42d136['oldValue']['length']>_0x42d136['target']['nodeValue']['length'])?this['flushSoon']():this['flush']();}),!window['EditContext']||!browser['android']||!0x1===_0x508963['constructor']['EDIT_CONTEXT']||browser['chrome']&&browser['chrome_version']<0x7e||(this['editContext']=new EditContextManager(_0x508963),_0x508963['state']['facet'](editable)&&(_0x508963['contentDOM']['editContext']=this['editContext']['editContext'])),useCharData&&(this['onCharData']=_0x29ba8a=>{this['queue']['push']({'target':_0x29ba8a['target'],'type':'characterData','oldValue':_0x29ba8a['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 _0x5b65f6;(null===(_0x5b65f6=this['view']['docView'])||void 0x0===_0x5b65f6?void 0x0:_0x5b65f6['lastUpdate'])<Date['now']()-0x4b&&this['onResize']();}),this['resizeScroll']['observe'](_0x508963['scrollDOM'])),this['addWindowListeners'](this['win']=_0x508963['win']),this['start'](),'function'==typeof IntersectionObserver&&(this['intersection']=new IntersectionObserver(_0x10b8bc=>{this['parentCheck']<0x0&&(this['parentCheck']=setTimeout(this['listenForScroll']['bind'](this),0x3e8)),_0x10b8bc['length']>0x0&&_0x10b8bc[_0x10b8bc['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(_0x26f17b=>{_0x26f17b['length']>0x0&&_0x26f17b[_0x26f17b['length']-0x1]['intersectionRatio']>0x0&&this['onScrollChanged'](document['createEvent']('Event'));},{})),this['listenForScroll'](),this['readSelectionRange']();}['onScrollChanged'](_0x235417){this['view']['inputState']['runHandlers']('scroll',_0x235417),this['intersecting']&&this['view']['measure']();}['onScroll'](_0x5d9bb9){this['intersecting']&&this['flush'](!0x1),this['editContext']&&this['view']['requestMeasure'](this['editContext']['measureReq']),this['onScrollChanged'](_0x5d9bb9);}['onResize'](){this['resizeTimeout']<0x0&&(this['resizeTimeout']=setTimeout(()=>{this['resizeTimeout']=-0x1,this['view']['requestMeasure']();},0x32));}['onPrint'](_0x4b973d){('change'!=_0x4b973d['type']&&_0x4b973d['type']||_0x4b973d['matches'])&&(this['view']['viewState']['printing']=!0x0,this['view']['measure'](),setTimeout(()=>{this['view']['viewState']['printing']=!0x1,this['view']['requestMeasure']();},0x1f4));}['updateGaps'](_0x496ab9){if(this['gapIntersection']&&(_0x496ab9['length']!=this['gaps']['length']||this['gaps']['some']((_0x387618,_0x10c8b2)=>_0x387618!=_0x496ab9[_0x10c8b2]))){this['gapIntersection']['disconnect']();for(let _0x3f1cc4 of _0x496ab9)this['gapIntersection']['observe'](_0x3f1cc4);this['gaps']=_0x496ab9;}}['onSelectionChange'](_0x7bdacb){let _0x3078ed=this['selectionChanged'];if(!this['readSelectionRange']()||this['delayedAndroidKey'])return;let {view:_0x311acf}=this,_0x2b6c47=this['selectionRange'];if(_0x311acf['state']['facet'](editable)?_0x311acf['root']['activeElement']!=this['dom']:!hasSelection(this['dom'],_0x2b6c47))return;let _0x22e6dd=_0x2b6c47['anchorNode']&&_0x311acf['docView']['nearest'](_0x2b6c47['anchorNode']);_0x22e6dd&&_0x22e6dd['ignoreEvent'](_0x7bdacb)?_0x3078ed||(this['selectionChanged']=!0x1):(browser['ie']&&browser['ie_version']<=0xb||browser['android']&&browser['chrome'])&&!_0x311acf['state']['selection']['main']['empty']&&_0x2b6c47['focusNode']&&isEquivalentPosition(_0x2b6c47['focusNode'],_0x2b6c47['focusOffset'],_0x2b6c47['anchorNode'],_0x2b6c47['anchorOffset'])?this['flushSoon']():this['flush'](!0x1);}['readSelectionRange'](){let {view:_0x5c6566}=this,_0x284d4a=getSelection(_0x5c6566['root']);if(!_0x284d4a)return!0x1;let _0x4032e4=browser['safari']&&0xb==_0x5c6566['root']['nodeType']&&_0x5c6566['root']['activeElement']==this['dom']&&safariSelectionRangeHack(this['view'],_0x284d4a)||_0x284d4a;if(!_0x4032e4||this['selectionRange']['eq'](_0x4032e4))return!0x1;let _0x3f0ffb=hasSelection(this['dom'],_0x4032e4);return _0x3f0ffb&&!this['selectionChanged']&&_0x5c6566['inputState']['lastFocusTime']>Date['now']()-0xc8&&_0x5c6566['inputState']['lastTouchTime']<Date['now']()-0x12c&&atElementStart(this['dom'],_0x4032e4)?(this['view']['inputState']['lastFocusTime']=0x0,_0x5c6566['docView']['updateSelection'](),!0x1):(this['selectionRange']['setRange'](_0x4032e4),_0x3f0ffb&&(this['selectionChanged']=!0x0),!0x0);}['setSelectionRange'](_0x3e3175,_0x2cec3f){this['selectionRange']['set'](_0x3e3175['node'],_0x3e3175['offset'],_0x2cec3f['node'],_0x2cec3f['offset']),this['selectionChanged']=!0x1;}['clearSelectionRange'](){this['selectionRange']['set'](null,0x0,null,0x0);}['listenForScroll'](){this['parentCheck']=-0x1;let _0x43b406=0x0,_0x3b157f=null;for(let _0x2596de=this['dom'];_0x2596de;)if(0x1==_0x2596de['nodeType'])!_0x3b157f&&_0x43b406<this['scrollTargets']['length']&&this['scrollTargets'][_0x43b406]==_0x2596de?_0x43b406++:_0x3b157f||(_0x3b157f=this['scrollTargets']['slice'](0x0,_0x43b406)),_0x3b157f&&_0x3b157f['push'](_0x2596de),_0x2596de=_0x2596de['assignedSlot']||_0x2596de['parentNode'];else{if(0xb!=_0x2596de['nodeType'])break;_0x2596de=_0x2596de['host'];}if(_0x43b406<this['scrollTargets']['length']&&!_0x3b157f&&(_0x3b157f=this['scrollTargets']['slice'](0x0,_0x43b406)),_0x3b157f){for(let _0x4b3d36 of this['scrollTargets'])_0x4b3d36['removeEventListener']('scroll',this['onScroll']);for(let _0xfbd9d6 of this['scrollTargets']=_0x3b157f)_0xfbd9d6['addEventListener']('scroll',this['onScroll']);}}['ignore'](_0x15e2e7){if(!this['active'])return _0x15e2e7();try{return this['stop'](),_0x15e2e7();}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'](_0x1f118d,_0x2390b8){var _0x34d190;if(!this['delayedAndroidKey']){let _0x469eca=()=>{let _0x2f6087=this['delayedAndroidKey'];_0x2f6087&&(this['clearDelayedAndroidKey'](),this['view']['inputState']['lastKeyCode']=_0x2f6087['keyCode'],this['view']['inputState']['lastKeyTime']=Date['now'](),!this['flush']()&&_0x2f6087['force']&&dispatchKey(this['dom'],_0x2f6087['key'],_0x2f6087['keyCode']));};this['flushingAndroidKey']=this['view']['win']['requestAnimationFrame'](_0x469eca);}this['delayedAndroidKey']&&'Enter'!=_0x1f118d||(this['delayedAndroidKey']={'key':_0x1f118d,'keyCode':_0x2390b8,'force':this['lastChange']<Date['now']()-0x32||!!(null===(_0x34d190=this['delayedAndroidKey'])||void 0x0===_0x34d190?void 0x0:_0x34d190['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 _0x4ea33d of this['observer']['takeRecords']())this['queue']['push'](_0x4ea33d);return this['queue'];}['processRecords'](){let _0x519c2b=this['pendingRecords']();_0x519c2b['length']&&(this['queue']=[]);let _0x5df841=-0x1,_0x658f18=-0x1,_0x58e1b0=!0x1;for(let _0xd895cd of _0x519c2b){let _0x5ca604=this['readMutation'](_0xd895cd);_0x5ca604&&(_0x5ca604['typeOver']&&(_0x58e1b0=!0x0),-0x1==_0x5df841?{from:_0x5df841,to:_0x658f18}=_0x5ca604:(_0x5df841=Math['min'](_0x5ca604['from'],_0x5df841),_0x658f18=Math['max'](_0x5ca604['to'],_0x658f18)));}return{'from':_0x5df841,'to':_0x658f18,'typeOver':_0x58e1b0};}['readChange'](){let {from:_0x10da9c,to:_0x1df302,typeOver:_0x16affd}=this['processRecords'](),_0x160b7e=this['selectionChanged']&&hasSelection(this['dom'],this['selectionRange']);if(_0x10da9c<0x0&&!_0x160b7e)return null;_0x10da9c>-0x1&&(this['lastChange']=Date['now']()),this['view']['inputState']['lastFocusTime']=0x0,this['selectionChanged']=!0x1;let _0x3b2325=new DOMChange(this['view'],_0x10da9c,_0x1df302,_0x16affd);return this['view']['docView']['domChanged']={'newSel':_0x3b2325['newSel']?_0x3b2325['newSel']['main']:null},_0x3b2325;}['flush'](_0x34e542=!0x0){if(this['delayedFlush']>=0x0||this['delayedAndroidKey'])return!0x1;_0x34e542&&this['readSelectionRange']();let _0x9142b0=this['readChange']();if(!_0x9142b0)return this['view']['requestMeasure'](),!0x1;let _0xb4147c=this['view']['state'],_0x266e25=applyDOMChange(this['view'],_0x9142b0);return this['view']['state']==_0xb4147c&&(_0x9142b0['domChanged']||_0x9142b0['newSel']&&!_0x9142b0['newSel']['main']['eq'](this['view']['state']['selection']['main']))&&this['view']['update']([]),_0x266e25;}['readMutation'](_0x58dff7){let _0x31bb52=this['view']['docView']['nearest'](_0x58dff7['target']);if(!_0x31bb52||_0x31bb52['ignoreMutation'](_0x58dff7))return null;if(_0x31bb52['markDirty']('attributes'==_0x58dff7['type']),'attributes'==_0x58dff7['type']&&(_0x31bb52['flags']|=0x4),'childList'==_0x58dff7['type']){let _0x295473=findChild(_0x31bb52,_0x58dff7['previousSibling']||_0x58dff7['target']['previousSibling'],-0x1),_0x11cce9=findChild(_0x31bb52,_0x58dff7['nextSibling']||_0x58dff7['target']['nextSibling'],0x1);return{'from':_0x295473?_0x31bb52['posAfter'](_0x295473):_0x31bb52['posAtStart'],'to':_0x11cce9?_0x31bb52['posBefore'](_0x11cce9):_0x31bb52['posAtEnd'],'typeOver':!0x1};}return'characterData'==_0x58dff7['type']?{'from':_0x31bb52['posAtStart'],'to':_0x31bb52['posAtEnd'],'typeOver':_0x58dff7['target']['nodeValue']==_0x58dff7['oldValue']}:null;}['setWindow'](_0x362162){_0x362162!=this['win']&&(this['removeWindowListeners'](this['win']),this['win']=_0x362162,this['addWindowListeners'](this['win']));}['addWindowListeners'](_0x34316c){_0x34316c['addEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['addEventListener']?this['printQuery']['addEventListener']('change',this['onPrint']):this['printQuery']['addListener'](this['onPrint']):_0x34316c['addEventListener']('beforeprint',this['onPrint']),_0x34316c['addEventListener']('scroll',this['onScroll']),_0x34316c['document']['addEventListener']('selectionchange',this['onSelectionChange']);}['removeWindowListeners'](_0x19713b){_0x19713b['removeEventListener']('scroll',this['onScroll']),_0x19713b['removeEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['removeEventListener']?this['printQuery']['removeEventListener']('change',this['onPrint']):this['printQuery']['removeListener'](this['onPrint']):_0x19713b['removeEventListener']('beforeprint',this['onPrint']),_0x19713b['document']['removeEventListener']('selectionchange',this['onSelectionChange']);}['update'](_0x2f6b6d){this['editContext']&&(this['editContext']['update'](_0x2f6b6d),_0x2f6b6d['startState']['facet'](editable)!=_0x2f6b6d['state']['facet'](editable)&&(_0x2f6b6d['view']['contentDOM']['editContext']=_0x2f6b6d['state']['facet'](editable)?this['editContext']['editContext']:null));}['destroy'](){var _0x310e94,_0x53d950,_0x179024;this['stop'](),null===(_0x310e94=this['intersection'])||void 0x0===_0x310e94||_0x310e94['disconnect'](),null===(_0x53d950=this['gapIntersection'])||void 0x0===_0x53d950||_0x53d950['disconnect'](),null===(_0x179024=this['resizeScroll'])||void 0x0===_0x179024||_0x179024['disconnect']();for(let _0x2c7d46 of this['scrollTargets'])_0x2c7d46['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(_0xc7b89b,_0x1adfa1,_0x1ffe57){for(;_0x1adfa1;){let _0x4c408a=ContentView['get'](_0x1adfa1);if(_0x4c408a&&_0x4c408a['parent']==_0xc7b89b)return _0x4c408a;let _0x270756=_0x1adfa1['parentNode'];_0x1adfa1=_0x270756!=_0xc7b89b['dom']?_0x270756:_0x1ffe57>0x0?_0x1adfa1['nextSibling']:_0x1adfa1['previousSibling'];}return null;}function buildSelectionRangeFromRange(_0x101a6a,_0xbb8170){let _0x5a7ca7=_0xbb8170['startContainer'],_0x184446=_0xbb8170['startOffset'],_0xa2fdee=_0xbb8170['endContainer'],_0x246bc0=_0xbb8170['endOffset'],_0x5c520a=_0x101a6a['docView']['domAtPos'](_0x101a6a['state']['selection']['main']['anchor']);return isEquivalentPosition(_0x5c520a['node'],_0x5c520a['offset'],_0xa2fdee,_0x246bc0)&&([_0x5a7ca7,_0x184446,_0xa2fdee,_0x246bc0]=[_0xa2fdee,_0x246bc0,_0x5a7ca7,_0x184446]),{'anchorNode':_0x5a7ca7,'anchorOffset':_0x184446,'focusNode':_0xa2fdee,'focusOffset':_0x246bc0};}function safariSelectionRangeHack(_0x2b0066,_0x46d2b5){if(_0x46d2b5['getComposedRanges']){let _0x436fda=_0x46d2b5['getComposedRanges'](_0x2b0066['root'])[0x0];if(_0x436fda)return buildSelectionRangeFromRange(_0x2b0066,_0x436fda);}let _0x888540=null;function _0xe0e70(_0x467ad0){_0x467ad0['preventDefault'](),_0x467ad0['stopImmediatePropagation'](),_0x888540=_0x467ad0['getTargetRanges']()[0x0];}return _0x2b0066['contentDOM']['addEventListener']('beforeinput',_0xe0e70,!0x0),_0x2b0066['dom']['ownerDocument']['execCommand']('indent'),_0x2b0066['contentDOM']['removeEventListener']('beforeinput',_0xe0e70,!0x0),_0x888540?buildSelectionRangeFromRange(_0x2b0066,_0x888540):null;}class EditContextManager{constructor(_0x3ae285){this['from']=0x0,this['to']=0x0,this['pendingContextChange']=null,this['handlers']=Object['create'](null),this['composing']=null,this['resetRange'](_0x3ae285['state']);let _0x51c665=this['editContext']=new window['EditContext']({'text':_0x3ae285['state']['doc']['sliceString'](this['from'],this['to']),'selectionStart':this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x3ae285['state']['selection']['main']['anchor']))),'selectionEnd':this['toContextPos'](_0x3ae285['state']['selection']['main']['head'])});this['handlers']['textupdate']=_0x5ea7c2=>{let _0x42906f=_0x3ae285['state']['selection']['main'],{anchor:_0x241900,head:_0x5dc821}=_0x42906f,_0x4bfe2f=this['toEditorPos'](_0x5ea7c2['updateRangeStart']),_0x3c4b0c=this['toEditorPos'](_0x5ea7c2['updateRangeEnd']);_0x3ae285['inputState']['composing']>=0x0&&!this['composing']&&(this['composing']={'contextBase':_0x5ea7c2['updateRangeStart'],'editorBase':_0x4bfe2f,'drifted':!0x1});let _0x33f945=_0x3c4b0c-_0x4bfe2f>_0x5ea7c2['text']['length'];_0x4bfe2f==this['from']&&_0x241900<this['from']?_0x4bfe2f=_0x241900:_0x3c4b0c==this['to']&&_0x241900>this['to']&&(_0x3c4b0c=_0x241900);let _0x313842=findDiff(_0x3ae285['state']['sliceDoc'](_0x4bfe2f,_0x3c4b0c),_0x5ea7c2['text'],(_0x33f945?_0x42906f['from']:_0x42906f['to'])-_0x4bfe2f,_0x33f945?'end':null);if(!_0x313842){let _0x7665bb=EditorSelection['single'](this['toEditorPos'](_0x5ea7c2['selectionStart']),this['toEditorPos'](_0x5ea7c2['selectionEnd']));return void(_0x7665bb['main']['eq'](_0x42906f)||_0x3ae285['dispatch']({'selection':_0x7665bb,'userEvent':'select'}));}let _0x31b59a={'from':_0x313842['from']+_0x4bfe2f,'to':_0x313842['toA']+_0x4bfe2f,'insert':Text['of'](_0x5ea7c2['text']['slice'](_0x313842['from'],_0x313842['toB'])['split']('\x0a'))};if((browser['mac']||browser['android'])&&_0x31b59a['from']==_0x5dc821-0x1&&/^\. ?$/['test'](_0x5ea7c2['text'])&&'off'==_0x3ae285['contentDOM']['getAttribute']('autocorrect')&&(_0x31b59a={'from':_0x4bfe2f,'to':_0x3c4b0c,'insert':Text['of']([_0x5ea7c2['text']['replace']('.','\x20')])}),this['pendingContextChange']=_0x31b59a,!_0x3ae285['state']['readOnly']){let _0x3c8bf2=this['to']-this['from']+(_0x31b59a['to']-_0x31b59a['from']+_0x31b59a['insert']['length']);applyDOMChangeInner(_0x3ae285,_0x31b59a,EditorSelection['single'](this['toEditorPos'](_0x5ea7c2['selectionStart'],_0x3c8bf2),this['toEditorPos'](_0x5ea7c2['selectionEnd'],_0x3c8bf2)));}this['pendingContextChange']&&(this['revertPending'](_0x3ae285['state']),this['setSelection'](_0x3ae285['state'])),_0x31b59a['from']<_0x31b59a['to']&&!_0x31b59a['insert']['length']&&_0x3ae285['inputState']['composing']>=0x0&&!/[\\p{Alphabetic}\\p{Number}_]/['test'](_0x51c665['text']['slice'](Math['max'](0x0,_0x5ea7c2['updateRangeStart']-0x1),Math['min'](_0x51c665['text']['length'],_0x5ea7c2['updateRangeStart']+0x1)))&&this['handlers']['compositionend'](_0x5ea7c2);},this['handlers']['characterboundsupdate']=_0x2845db=>{let _0x4ee625=[],_0x5e5bf8=null;for(let _0x221499=this['toEditorPos'](_0x2845db['rangeStart']),_0x155516=this['toEditorPos'](_0x2845db['rangeEnd']);_0x221499<_0x155516;_0x221499++){let _0x5d6996=_0x3ae285['coordsForChar'](_0x221499);_0x5e5bf8=_0x5d6996&&new DOMRect(_0x5d6996['left'],_0x5d6996['top'],_0x5d6996['right']-_0x5d6996['left'],_0x5d6996['bottom']-_0x5d6996['top'])||_0x5e5bf8||new DOMRect(),_0x4ee625['push'](_0x5e5bf8);}_0x51c665['updateCharacterBounds'](_0x2845db['rangeStart'],_0x4ee625);},this['handlers']['textformatupdate']=_0x171226=>{let _0x3c9796=[];for(let _0x4fbd8f of _0x171226['getTextFormats']()){let _0xa247c5=_0x4fbd8f['underlineStyle'],_0x3b3e15=_0x4fbd8f['underlineThickness'];if(!/none/i['test'](_0xa247c5)&&!/none/i['test'](_0x3b3e15)){let _0x3e19b6=this['toEditorPos'](_0x4fbd8f['rangeStart']),_0x29fbcf=this['toEditorPos'](_0x4fbd8f['rangeEnd']);if(_0x3e19b6<_0x29fbcf){let _0x29ab3f='text-decoration:\x20underline\x20'+(/^[a-z]/['test'](_0xa247c5)?_0xa247c5+'\x20':'Dashed'==_0xa247c5?'dashed\x20':'Squiggle'==_0xa247c5?'wavy\x20':'')+(/thin/i['test'](_0x3b3e15)?0x1:0x2)+'px';_0x3c9796['push'](Decoration['mark']({'attributes':{'style':_0x29ab3f}})['range'](_0x3e19b6,_0x29fbcf));}}}_0x3ae285['dispatch']({'effects':setEditContextFormatting['of'](Decoration['set'](_0x3c9796))});},this['handlers']['compositionstart']=()=>{_0x3ae285['inputState']['composing']<0x0&&(_0x3ae285['inputState']['composing']=0x0,_0x3ae285['inputState']['compositionFirstChange']=!0x0);},this['handlers']['compositionend']=()=>{if(_0x3ae285['inputState']['composing']=-0x1,_0x3ae285['inputState']['compositionFirstChange']=null,this['composing']){let {drifted:_0x3cfaa3}=this['composing'];this['composing']=null,_0x3cfaa3&&this['reset'](_0x3ae285['state']);}};for(let _0x44b72d in this['handlers'])_0x51c665['addEventListener'](_0x44b72d,this['handlers'][_0x44b72d]);this['measureReq']={'read':_0x464225=>{this['editContext']['updateControlBounds'](_0x464225['contentDOM']['getBoundingClientRect']());let _0x57564b=getSelection(_0x464225['root']);_0x57564b&&_0x57564b['rangeCount']&&this['editContext']['updateSelectionBounds'](_0x57564b['getRangeAt'](0x0)['getBoundingClientRect']());}};}['applyEdits'](_0x4d630e){let _0x5a97a=0x0,_0x22662e=!0x1,_0x48e891=this['pendingContextChange'];return _0x4d630e['changes']['iterChanges']((_0x23ad02,_0x52018b,_0x2780ab,_0x48e80c,_0x571b06)=>{if(_0x22662e)return;let _0x331d4b=_0x571b06['length']-(_0x52018b-_0x23ad02);if(_0x48e891&&_0x52018b>=_0x48e891['to']){if(_0x48e891['from']==_0x23ad02&&_0x48e891['to']==_0x52018b&&_0x48e891['insert']['eq'](_0x571b06))return _0x48e891=this['pendingContextChange']=null,_0x5a97a+=_0x331d4b,void(this['to']+=_0x331d4b);_0x48e891=null,this['revertPending'](_0x4d630e['state']);}if(_0x23ad02+=_0x5a97a,(_0x52018b+=_0x5a97a)<=this['from'])this['from']+=_0x331d4b,this['to']+=_0x331d4b;else{if(_0x23ad02<this['to']){if(_0x23ad02<this['from']||_0x52018b>this['to']||this['to']-this['from']+_0x571b06['length']>0x7530)return void(_0x22662e=!0x0);this['editContext']['updateText'](this['toContextPos'](_0x23ad02),this['toContextPos'](_0x52018b),_0x571b06['toString']()),this['to']+=_0x331d4b;}}_0x5a97a+=_0x331d4b;}),_0x48e891&&!_0x22662e&&this['revertPending'](_0x4d630e['state']),!_0x22662e;}['update'](_0x45cbdb){let _0x568cde=this['pendingContextChange'],_0x42b7b7=_0x45cbdb['startState']['selection']['main'];this['composing']&&(this['composing']['drifted']||!_0x45cbdb['changes']['touchesRange'](_0x42b7b7['from'],_0x42b7b7['to'])&&_0x45cbdb['transactions']['some'](_0x1b9e2a=>!_0x1b9e2a['isUserEvent']('input.type')&&_0x1b9e2a['changes']['touchesRange'](this['from'],this['to'])))?(this['composing']['drifted']=!0x0,this['composing']['editorBase']=_0x45cbdb['changes']['mapPos'](this['composing']['editorBase'])):this['applyEdits'](_0x45cbdb)&&this['rangeIsValid'](_0x45cbdb['state'])?(_0x45cbdb['docChanged']||_0x45cbdb['selectionSet']||_0x568cde)&&this['setSelection'](_0x45cbdb['state']):(this['pendingContextChange']=null,this['reset'](_0x45cbdb['state'])),(_0x45cbdb['geometryChanged']||_0x45cbdb['docChanged']||_0x45cbdb['selectionSet'])&&_0x45cbdb['view']['requestMeasure'](this['measureReq']);}['resetRange'](_0x2f7c98){let {head:_0x330783}=_0x2f7c98['selection']['main'];this['from']=Math['max'](0x0,_0x330783-0x2710),this['to']=Math['min'](_0x2f7c98['doc']['length'],_0x330783+0x2710);}['reset'](_0x1a948b){this['resetRange'](_0x1a948b),this['editContext']['updateText'](0x0,this['editContext']['text']['length'],_0x1a948b['doc']['sliceString'](this['from'],this['to'])),this['setSelection'](_0x1a948b);}['revertPending'](_0x2b7dc0){let _0x5793fa=this['pendingContextChange'];this['pendingContextChange']=null,this['editContext']['updateText'](this['toContextPos'](_0x5793fa['from']),this['toContextPos'](_0x5793fa['from']+_0x5793fa['insert']['length']),_0x2b7dc0['doc']['sliceString'](_0x5793fa['from'],_0x5793fa['to']));}['setSelection'](_0xf16d42){let {main:_0x244eaa}=_0xf16d42['selection'],_0x404be3=this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x244eaa['anchor']))),_0x219660=this['toContextPos'](_0x244eaa['head']);this['editContext']['selectionStart']==_0x404be3&&this['editContext']['selectionEnd']==_0x219660||this['editContext']['updateSelection'](_0x404be3,_0x219660);}['rangeIsValid'](_0x17dbdf){let {head:_0x3ee221}=_0x17dbdf['selection']['main'];return!(this['from']>0x0&&_0x3ee221-this['from']<0x1f4||this['to']<_0x17dbdf['doc']['length']&&this['to']-_0x3ee221<0x1f4||this['to']-this['from']>0x7530);}['toEditorPos'](_0x558985,_0x32acb3=this['to']-this['from']){_0x558985=Math['min'](_0x558985,_0x32acb3);let _0x3f44b4=this['composing'];return _0x3f44b4&&_0x3f44b4['drifted']?_0x3f44b4['editorBase']+(_0x558985-_0x3f44b4['contextBase']):_0x558985+this['from'];}['toContextPos'](_0x1c5809){let _0x37d5ca=this['composing'];return _0x37d5ca&&_0x37d5ca['drifted']?_0x37d5ca['contextBase']+(_0x1c5809-_0x37d5ca['editorBase']):_0x1c5809-this['from'];}['destroy'](){for(let _0x178af3 in this['handlers'])this['editContext']['removeEventListener'](_0x178af3,this['handlers'][_0x178af3]);}}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(_0x51b52a={}){var _0x5f35fa;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']),_0x51b52a['parent']&&_0x51b52a['parent']['appendChild'](this['dom']);let {dispatch:_0x2e740c}=_0x51b52a;this['dispatchTransactions']=_0x51b52a['dispatchTransactions']||_0x2e740c&&(_0x289fb6=>_0x289fb6['forEach'](_0x345889=>_0x2e740c(_0x345889,this)))||(_0x372068=>this['update'](_0x372068)),this['dispatch']=this['dispatch']['bind'](this),this['_root']=_0x51b52a['root']||getRoot(_0x51b52a['parent'])||document,this['viewState']=new ViewState(_0x51b52a['state']||EditorState['create'](_0x51b52a)),_0x51b52a['scrollTo']&&_0x51b52a['scrollTo']['is'](scrollIntoView$1)&&(this['viewState']['scrollTarget']=_0x51b52a['scrollTo']['value']['clip'](this['viewState']['state'])),this['plugins']=this['state']['facet'](viewPlugin)['map'](_0x3f6563=>new PluginInstance(_0x3f6563));for(let _0x160dd3 of this['plugins'])_0x160dd3['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===(_0x5f35fa=document['fonts'])||void 0x0===_0x5f35fa?void 0x0:_0x5f35fa['ready'])&&document['fonts']['ready']['then'](()=>this['requestMeasure']());}['dispatch'](..._0x373ce8){let _0x1afd33=0x1==_0x373ce8['length']&&_0x373ce8[0x0]instanceof Transaction?_0x373ce8:0x1==_0x373ce8['length']&&Array['isArray'](_0x373ce8[0x0])?_0x373ce8[0x0]:[this['state']['update'](..._0x373ce8)];this['dispatchTransactions'](_0x1afd33,this);}['update'](_0xb8d197){if(0x0!=this['updateState'])throw new Error('Calls\x20to\x20EditorView.update\x20are\x20not\x20allowed\x20while\x20an\x20update\x20is\x20in\x20progress');let _0x47ab10,_0x1df2c5=!0x1,_0x10a59a=!0x1,_0x3418e1=this['state'];for(let _0x2e6492 of _0xb8d197){if(_0x2e6492['startState']!=_0x3418e1)throw new RangeError('Trying\x20to\x20update\x20state\x20with\x20a\x20transaction\x20that\x20doesn\x27t\x20start\x20from\x20the\x20previous\x20state.');_0x3418e1=_0x2e6492['state'];}if(this['destroyed'])return void(this['viewState']['state']=_0x3418e1);let _0x48974d=this['hasFocus'],_0x190daf=0x0,_0x8a9eea=null;_0xb8d197['some'](_0x459637=>_0x459637['annotation'](isFocusChange))?(this['inputState']['notifiedFocused']=_0x48974d,_0x190daf=0x1):_0x48974d!=this['inputState']['notifiedFocused']&&(this['inputState']['notifiedFocused']=_0x48974d,_0x8a9eea=focusChangeTransaction(_0x3418e1,_0x48974d),_0x8a9eea||(_0x190daf=0x1));let _0x41d360=this['observer']['delayedAndroidKey'],_0x58af07=null;if(_0x41d360?(this['observer']['clearDelayedAndroidKey'](),_0x58af07=this['observer']['readChange'](),(_0x58af07&&!this['state']['doc']['eq'](_0x3418e1['doc'])||!this['state']['selection']['eq'](_0x3418e1['selection']))&&(_0x58af07=null)):this['observer']['clear'](),_0x3418e1['facet'](EditorState['phrases'])!=this['state']['facet'](EditorState['phrases']))return this['setState'](_0x3418e1);_0x47ab10=ViewUpdate['create'](this,_0x3418e1,_0xb8d197),_0x47ab10['flags']|=_0x190daf;let _0xc498f1=this['viewState']['scrollTarget'];try{this['updateState']=0x2;for(let _0x29acf5 of _0xb8d197){if(_0xc498f1&&(_0xc498f1=_0xc498f1['map'](_0x29acf5['changes'])),_0x29acf5['scrollIntoView']){let {main:_0x3b21c2}=_0x29acf5['state']['selection'];_0xc498f1=new ScrollTarget(_0x3b21c2['empty']?_0x3b21c2:EditorSelection['cursor'](_0x3b21c2['head'],_0x3b21c2['head']>_0x3b21c2['anchor']?-0x1:0x1));}for(let _0x19822f of _0x29acf5['effects'])_0x19822f['is'](scrollIntoView$1)&&(_0xc498f1=_0x19822f['value']['clip'](this['state']));}this['viewState']['update'](_0x47ab10,_0xc498f1),this['bidiCache']=CachedOrder['update'](this['bidiCache'],_0x47ab10['changes']),_0x47ab10['empty']||(this['updatePlugins'](_0x47ab10),this['inputState']['update'](_0x47ab10)),_0x1df2c5=this['docView']['update'](_0x47ab10),this['state']['facet'](styleModule)!=this['styleModules']&&this['mountStyles'](),_0x10a59a=this['updateAttrs'](),this['showAnnouncements'](_0xb8d197),this['docView']['updateSelection'](_0x1df2c5,_0xb8d197['some'](_0x181e8d=>_0x181e8d['isUserEvent']('select.pointer')));}finally{this['updateState']=0x0;}if(_0x47ab10['startState']['facet'](theme)!=_0x47ab10['state']['facet'](theme)&&(this['viewState']['mustMeasureContent']=!0x0),(_0x1df2c5||_0x10a59a||_0xc498f1||this['viewState']['mustEnforceCursorAssoc']||this['viewState']['mustMeasureContent'])&&this['requestMeasure'](),_0x1df2c5&&this['docViewUpdate'](),!_0x47ab10['empty']){for(let _0x32b6ad of this['state']['facet'](updateListener))try{_0x32b6ad(_0x47ab10);}catch(_0x4570b4){logException(this['state'],_0x4570b4,'update\x20listener');}}(_0x8a9eea||_0x58af07)&&Promise['resolve']()['then'](()=>{_0x8a9eea&&this['state']==_0x8a9eea['startState']&&this['dispatch'](_0x8a9eea),_0x58af07&&!applyDOMChange(this,_0x58af07)&&_0x41d360['force']&&dispatchKey(this['contentDOM'],_0x41d360['key'],_0x41d360['keyCode']);});}['setState'](_0x334829){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']=_0x334829);this['updateState']=0x2;let _0x273920=this['hasFocus'];try{for(let _0x1380b8 of this['plugins'])_0x1380b8['destroy'](this);this['viewState']=new ViewState(_0x334829),this['plugins']=_0x334829['facet'](viewPlugin)['map'](_0x3fe684=>new PluginInstance(_0x3fe684)),this['pluginMap']['clear']();for(let _0x353f94 of this['plugins'])_0x353f94['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;}_0x273920&&this['focus'](),this['requestMeasure']();}['updatePlugins'](_0x239306){let _0x4a6876=_0x239306['startState']['facet'](viewPlugin),_0x142098=_0x239306['state']['facet'](viewPlugin);if(_0x4a6876!=_0x142098){let _0x471fa6=[];for(let _0x2c42ff of _0x142098){let _0x2187e5=_0x4a6876['indexOf'](_0x2c42ff);if(_0x2187e5<0x0)_0x471fa6['push'](new PluginInstance(_0x2c42ff));else{let _0xe98f30=this['plugins'][_0x2187e5];_0xe98f30['mustUpdate']=_0x239306,_0x471fa6['push'](_0xe98f30);}}for(let _0x2516d6 of this['plugins'])_0x2516d6['mustUpdate']!=_0x239306&&_0x2516d6['destroy'](this);this['plugins']=_0x471fa6,this['pluginMap']['clear']();}else{for(let _0x9ab21e of this['plugins'])_0x9ab21e['mustUpdate']=_0x239306;}for(let _0x5dc2c0=0x0;_0x5dc2c0<this['plugins']['length'];_0x5dc2c0++)this['plugins'][_0x5dc2c0]['update'](this);_0x4a6876!=_0x142098&&this['inputState']['ensureHandlers'](this['plugins']);}['docViewUpdate'](){for(let _0x53842b of this['plugins']){let _0x5e04f4=_0x53842b['value'];if(_0x5e04f4&&_0x5e04f4['docViewUpdate'])try{_0x5e04f4['docViewUpdate'](this);}catch(_0x530b41){logException(this['state'],_0x530b41,'doc\x20view\x20update\x20listener');}}}['measure'](_0x30e195=!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,_0x30e195&&this['observer']['forceFlush']();let _0xb95602=null,_0x450430=this['scrollDOM'],_0x5d315e=_0x450430['scrollTop']*this['scaleY'],{scrollAnchorPos:_0x288407,scrollAnchorHeight:_0x4e859f}=this['viewState'];Math['abs'](_0x5d315e-this['viewState']['scrollTop'])>0x1&&(_0x4e859f=-0x1),this['viewState']['scrollAnchorHeight']=-0x1;try{for(let _0x133758=0x0;;_0x133758++){if(_0x4e859f<0x0){if(isScrolledToBottom(_0x450430))_0x288407=-0x1,_0x4e859f=this['viewState']['heightMap']['height'];else{let _0x42f9a5=this['viewState']['scrollAnchorAt'](_0x5d315e);_0x288407=_0x42f9a5['from'],_0x4e859f=_0x42f9a5['top'];}}this['updateState']=0x1;let _0x399828=this['viewState']['measure'](this);if(!_0x399828&&!this['measureRequests']['length']&&null==this['viewState']['scrollTarget'])break;if(_0x133758>0x5){console['warn'](this['measureRequests']['length']?'Measure\x20loop\x20restarted\x20more\x20than\x205\x20times':'Viewport\x20failed\x20to\x20stabilize');break;}let _0x685c4f=[];0x4&_0x399828||([this['measureRequests'],_0x685c4f]=[_0x685c4f,this['measureRequests']]);let _0x2dc240=_0x685c4f['map'](_0xbbb07b=>{try{return _0xbbb07b['read'](this);}catch(_0x27a83b){return logException(this['state'],_0x27a83b),BadMeasure;}}),_0x3ffbf2=ViewUpdate['create'](this,this['state'],[]),_0x33bd4f=!0x1;_0x3ffbf2['flags']|=_0x399828,_0xb95602?_0xb95602['flags']|=_0x399828:_0xb95602=_0x3ffbf2,this['updateState']=0x2,_0x3ffbf2['empty']||(this['updatePlugins'](_0x3ffbf2),this['inputState']['update'](_0x3ffbf2),this['updateAttrs'](),_0x33bd4f=this['docView']['update'](_0x3ffbf2),_0x33bd4f&&this['docViewUpdate']());for(let _0x2dab51=0x0;_0x2dab51<_0x685c4f['length'];_0x2dab51++)if(_0x2dc240[_0x2dab51]!=BadMeasure)try{let _0x345707=_0x685c4f[_0x2dab51];_0x345707['write']&&_0x345707['write'](_0x2dc240[_0x2dab51],this);}catch(_0x1deddd){logException(this['state'],_0x1deddd);}if(_0x33bd4f&&this['docView']['updateSelection'](!0x0),!_0x3ffbf2['viewportChanged']&&0x0==this['measureRequests']['length']){if(this['viewState']['editorHeight']){if(this['viewState']['scrollTarget']){this['docView']['scrollIntoView'](this['viewState']['scrollTarget']),this['viewState']['scrollTarget']=null,_0x4e859f=-0x1;continue;}{let _0x154b36=(_0x288407<0x0?this['viewState']['heightMap']['height']:this['viewState']['lineBlockAt'](_0x288407)['top'])-_0x4e859f;if(_0x154b36>0x1||_0x154b36<-0x1){_0x5d315e+=_0x154b36,_0x450430['scrollTop']=_0x5d315e/this['scaleY'],_0x4e859f=-0x1;continue;}}}break;}}}finally{this['updateState']=0x0,this['measureScheduled']=-0x1;}if(_0xb95602&&!_0xb95602['empty']){for(let _0x556b98 of this['state']['facet'](updateListener))_0x556b98(_0xb95602);}}get['themeClasses'](){return baseThemeID+'\x20'+(this['state']['facet'](darkTheme)?baseDarkID:baseLightID)+'\x20'+this['state']['facet'](theme);}['updateAttrs'](){let _0x5361a3=attrsFromFacet(this,editorAttributes,{'class':'cm-editor'+(this['hasFocus']?'\x20cm-focused\x20':'\x20')+this['themeClasses']}),_0x24fa0a={'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']&&(_0x24fa0a['aria-readonly']='true'),attrsFromFacet(this,contentAttributes,_0x24fa0a);let _0x3027ac=this['observer']['ignore'](()=>{let _0x7cfc52=updateAttrs(this['contentDOM'],this['contentAttrs'],_0x24fa0a),_0x371b34=updateAttrs(this['dom'],this['editorAttrs'],_0x5361a3);return _0x7cfc52||_0x371b34;});return this['editorAttrs']=_0x5361a3,this['contentAttrs']=_0x24fa0a,_0x3027ac;}['showAnnouncements'](_0x4f4215){let _0x15be26=!0x0;for(let _0x1e433e of _0x4f4215)for(let _0x15664e of _0x1e433e['effects'])_0x15664e['is'](EditorView['announce'])&&(_0x15be26&&(this['announceDOM']['textContent']=''),_0x15be26=!0x1,this['announceDOM']['appendChild'](document['createElement']('div'))['textContent']=_0x15664e['value']);}['mountStyles'](){this['styleModules']=this['state']['facet'](styleModule);let _0x11e207=this['state']['facet'](EditorView['cspNonce']);StyleModule['mount'](this['root'],this['styleModules']['concat'](baseTheme$1$1)['reverse'](),_0x11e207?{'nonce':_0x11e207}: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'](_0x5a35cf){if(this['measureScheduled']<0x0&&(this['measureScheduled']=this['win']['requestAnimationFrame'](()=>this['measure']())),_0x5a35cf){if(this['measureRequests']['indexOf'](_0x5a35cf)>-0x1)return;if(null!=_0x5a35cf['key']){for(let _0x131ff1=0x0;_0x131ff1<this['measureRequests']['length'];_0x131ff1++)if(this['measureRequests'][_0x131ff1]['key']===_0x5a35cf['key'])return void(this['measureRequests'][_0x131ff1]=_0x5a35cf);}this['measureRequests']['push'](_0x5a35cf);}}['plugin'](_0x5a0a73){let _0x3c2747=this['pluginMap']['get'](_0x5a0a73);return(void 0x0===_0x3c2747||_0x3c2747&&_0x3c2747['plugin']!=_0x5a0a73)&&this['pluginMap']['set'](_0x5a0a73,_0x3c2747=this['plugins']['find'](_0xcdd020=>_0xcdd020['plugin']==_0x5a0a73)||null),_0x3c2747&&_0x3c2747['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'](_0x949149){return this['readMeasured'](),this['viewState']['elementAtHeight'](_0x949149);}['lineBlockAtHeight'](_0x5274cb){return this['readMeasured'](),this['viewState']['lineBlockAtHeight'](_0x5274cb);}get['viewportLineBlocks'](){return this['viewState']['viewportLines'];}['lineBlockAt'](_0x325d54){return this['viewState']['lineBlockAt'](_0x325d54);}get['contentHeight'](){return this['viewState']['contentHeight'];}['moveByChar'](_0x43ace8,_0x4ae8b9,_0x2b093a){return skipAtoms(this,_0x43ace8,moveByChar(this,_0x43ace8,_0x4ae8b9,_0x2b093a));}['moveByGroup'](_0x547e43,_0x34c91c){return skipAtoms(this,_0x547e43,moveByChar(this,_0x547e43,_0x34c91c,_0x264c07=>byGroup(this,_0x547e43['head'],_0x264c07)));}['visualLineSide'](_0x5aabac,_0x5c159b){let _0x554e99=this['bidiSpans'](_0x5aabac),_0x42458a=this['textDirectionAt'](_0x5aabac['from']),_0x5b0a03=_0x554e99[_0x5c159b?_0x554e99['length']-0x1:0x0];return EditorSelection['cursor'](_0x5b0a03['side'](_0x5c159b,_0x42458a)+_0x5aabac['from'],_0x5b0a03['forward'](!_0x5c159b,_0x42458a)?0x1:-0x1);}['moveToLineBoundary'](_0x43e7e7,_0x2ca87d,_0xa1dbd9=!0x0){return moveToLineBoundary(this,_0x43e7e7,_0x2ca87d,_0xa1dbd9);}['moveVertically'](_0x2c1a31,_0x3522f4,_0x2c45c0){return skipAtoms(this,_0x2c1a31,moveVertically(this,_0x2c1a31,_0x3522f4,_0x2c45c0));}['domAtPos'](_0x5891ef){return this['docView']['domAtPos'](_0x5891ef);}['posAtDOM'](_0x3e9e5b,_0x1db705=0x0){return this['docView']['posFromDOM'](_0x3e9e5b,_0x1db705);}['posAtCoords'](_0x57eed2,_0x297ecb=!0x0){return this['readMeasured'](),posAtCoords(this,_0x57eed2,_0x297ecb);}['coordsAtPos'](_0x6cb553,_0x59f4fb=0x1){this['readMeasured']();let _0x40e924=this['docView']['coordsAt'](_0x6cb553,_0x59f4fb);if(!_0x40e924||_0x40e924['left']==_0x40e924['right'])return _0x40e924;let _0x1b1a4a=this['state']['doc']['lineAt'](_0x6cb553),_0x1f4de4=this['bidiSpans'](_0x1b1a4a);return flattenRect(_0x40e924,_0x1f4de4[BidiSpan['find'](_0x1f4de4,_0x6cb553-_0x1b1a4a['from'],-0x1,_0x59f4fb)]['dir']==Direction['LTR']==_0x59f4fb>0x0);}['coordsForChar'](_0x29cc7a){return this['readMeasured'](),this['docView']['coordsForChar'](_0x29cc7a);}get['defaultCharacterWidth'](){return this['viewState']['heightOracle']['charWidth'];}get['defaultLineHeight'](){return this['viewState']['heightOracle']['lineHeight'];}get['textDirection'](){return this['viewState']['defaultTextDirection'];}['textDirectionAt'](_0x4887a8){return!this['state']['facet'](perLineTextDirection)||_0x4887a8<this['viewport']['from']||_0x4887a8>this['viewport']['to']?this['textDirection']:(this['readMeasured'](),this['docView']['textDirectionAt'](_0x4887a8));}get['lineWrapping'](){return this['viewState']['heightOracle']['lineWrapping'];}['bidiSpans'](_0xf592c7){if(_0xf592c7['length']>MaxBidiLine)return trivialOrder(_0xf592c7['length']);let _0x2ca8b4,_0x1a0e25=this['textDirectionAt'](_0xf592c7['from']);for(let _0x14190b of this['bidiCache'])if(_0x14190b['from']==_0xf592c7['from']&&_0x14190b['dir']==_0x1a0e25&&(_0x14190b['fresh']||isolatesEq(_0x14190b['isolates'],_0x2ca8b4=getIsolatedRanges(this,_0xf592c7))))return _0x14190b['order'];_0x2ca8b4||(_0x2ca8b4=getIsolatedRanges(this,_0xf592c7));let _0x365839=computeOrder(_0xf592c7['text'],_0x1a0e25,_0x2ca8b4);return this['bidiCache']['push'](new CachedOrder(_0xf592c7['from'],_0xf592c7['to'],_0x1a0e25,_0x2ca8b4,!0x0,_0x365839)),_0x365839;}get['hasFocus'](){var _0x1aed57;return(this['dom']['ownerDocument']['hasFocus']()||browser['safari']&&(null===(_0x1aed57=this['inputState'])||void 0x0===_0x1aed57?void 0x0:_0x1aed57['lastContextMenu'])>Date['now']()-0x7530)&&this['root']['activeElement']==this['contentDOM'];}['focus'](){this['observer']['ignore'](()=>{focusPreventScroll(this['contentDOM']),this['docView']['updateSelection']();});}['setRoot'](_0x4b7a16){this['_root']!=_0x4b7a16&&(this['_root']=_0x4b7a16,this['observer']['setWindow']((0x9==_0x4b7a16['nodeType']?_0x4b7a16:_0x4b7a16['ownerDocument'])['defaultView']||window),this['mountStyles']());}['destroy'](){this['root']['activeElement']==this['contentDOM']&&this['contentDOM']['blur']();for(let _0x312246 of this['plugins'])_0x312246['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'](_0x228364,_0x7d3782={}){return scrollIntoView$1['of'](new ScrollTarget('number'==typeof _0x228364?EditorSelection['cursor'](_0x228364):_0x228364,_0x7d3782['y'],_0x7d3782['x'],_0x7d3782['yMargin'],_0x7d3782['xMargin']));}['scrollSnapshot'](){let {scrollTop:_0x58a0d7,scrollLeft:_0x3a72ae}=this['scrollDOM'],_0x12516c=this['viewState']['scrollAnchorAt'](_0x58a0d7);return scrollIntoView$1['of'](new ScrollTarget(EditorSelection['cursor'](_0x12516c['from']),'start','start',_0x12516c['top']-_0x58a0d7,_0x3a72ae,!0x0));}['setTabFocusMode'](_0x149228){null==_0x149228?this['inputState']['tabFocusMode']=this['inputState']['tabFocusMode']<0x0?0x0:-0x1:'boolean'==typeof _0x149228?this['inputState']['tabFocusMode']=_0x149228?0x0:-0x1:0x0!=this['inputState']['tabFocusMode']&&(this['inputState']['tabFocusMode']=Date['now']()+_0x149228);}static['domEventHandlers'](_0x181542){return ViewPlugin['define'](()=>({}),{'eventHandlers':_0x181542});}static['domEventObservers'](_0x37e364){return ViewPlugin['define'](()=>({}),{'eventObservers':_0x37e364});}static['theme'](_0xa9f5c9,_0x7bb1f5){let _0x44f636=StyleModule['newName'](),_0x34c277=[theme['of'](_0x44f636),styleModule['of'](buildTheme('.'+_0x44f636,_0xa9f5c9))];return _0x7bb1f5&&_0x7bb1f5['dark']&&_0x34c277['push'](darkTheme['of'](!0x0)),_0x34c277;}static['baseTheme'](_0x2ed3d8){return Prec['lowest'](styleModule['of'](buildTheme('.'+baseThemeID,_0x2ed3d8,lightDarkIDs)));}static['findFromDOM'](_0x32f36c){var _0x321c95;let _0x441633=_0x32f36c['querySelector']('.cm-content'),_0x39f121=_0x441633&&ContentView['get'](_0x441633)||ContentView['get'](_0x32f36c);return(null===(_0x321c95=null==_0x39f121?void 0x0:_0x39f121['rootView'])||void 0x0===_0x321c95?void 0x0:_0x321c95['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':_0xa4dde2=>_0xa4dde2['length']?_0xa4dde2[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(_0x3ef14a,_0x298f78,_0x211896,_0x440621,_0xefab4c,_0xd654ca){this['from']=_0x3ef14a,this['to']=_0x298f78,this['dir']=_0x211896,this['isolates']=_0x440621,this['fresh']=_0xefab4c,this['order']=_0xd654ca;}static['update'](_0x14cefe,_0x11d141){if(_0x11d141['empty']&&!_0x14cefe['some'](_0x45f82a=>_0x45f82a['fresh']))return _0x14cefe;let _0x315312=[],_0x434c52=_0x14cefe['length']?_0x14cefe[_0x14cefe['length']-0x1]['dir']:Direction['LTR'];for(let _0x4bb894=Math['max'](0x0,_0x14cefe['length']-0xa);_0x4bb894<_0x14cefe['length'];_0x4bb894++){let _0x3eb8d2=_0x14cefe[_0x4bb894];_0x3eb8d2['dir']!=_0x434c52||_0x11d141['touchesRange'](_0x3eb8d2['from'],_0x3eb8d2['to'])||_0x315312['push'](new CachedOrder(_0x11d141['mapPos'](_0x3eb8d2['from'],0x1),_0x11d141['mapPos'](_0x3eb8d2['to'],-0x1),_0x3eb8d2['dir'],_0x3eb8d2['isolates'],!0x1,_0x3eb8d2['order']));}return _0x315312;}}function attrsFromFacet(_0x413680,_0x321b0,_0x18eb26){for(let _0x324a90=_0x413680['state']['facet'](_0x321b0),_0x1fc4c5=_0x324a90['length']-0x1;_0x1fc4c5>=0x0;_0x1fc4c5--){let _0x5980a0=_0x324a90[_0x1fc4c5],_0x5a09cb='function'==typeof _0x5980a0?_0x5980a0(_0x413680):_0x5980a0;_0x5a09cb&&combineAttrs(_0x5a09cb,_0x18eb26);}return _0x18eb26;}const currentPlatform=browser['mac']?'mac':browser['windows']?'win':browser['linux']?'linux':'key';function normalizeKeyName(_0x56ae9c,_0x3e4201){const _0x313ed6=_0x56ae9c['split'](/-(?!$)/);let _0x244de0,_0x28fafe,_0x1506b1,_0x49db43,_0x52b201=_0x313ed6[_0x313ed6['length']-0x1];'Space'==_0x52b201&&(_0x52b201='\x20');for(let _0x1ed446=0x0;_0x1ed446<_0x313ed6['length']-0x1;++_0x1ed446){const _0xa6f37c=_0x313ed6[_0x1ed446];if(/^(cmd|meta|m)$/i['test'](_0xa6f37c))_0x49db43=!0x0;else{if(/^a(lt)?$/i['test'](_0xa6f37c))_0x244de0=!0x0;else{if(/^(c|ctrl|control)$/i['test'](_0xa6f37c))_0x28fafe=!0x0;else{if(/^s(hift)?$/i['test'](_0xa6f37c))_0x1506b1=!0x0;else{if(!/^mod$/i['test'](_0xa6f37c))throw new Error('Unrecognized\x20modifier\x20name:\x20'+_0xa6f37c);'mac'==_0x3e4201?_0x49db43=!0x0:_0x28fafe=!0x0;}}}}}return _0x244de0&&(_0x52b201='Alt-'+_0x52b201),_0x28fafe&&(_0x52b201='Ctrl-'+_0x52b201),_0x49db43&&(_0x52b201='Meta-'+_0x52b201),_0x1506b1&&(_0x52b201='Shift-'+_0x52b201),_0x52b201;}function modifiers(_0x4b5e78,_0x2dc41c,_0x50afeb){return _0x2dc41c['altKey']&&(_0x4b5e78='Alt-'+_0x4b5e78),_0x2dc41c['ctrlKey']&&(_0x4b5e78='Ctrl-'+_0x4b5e78),_0x2dc41c['metaKey']&&(_0x4b5e78='Meta-'+_0x4b5e78),!0x1!==_0x50afeb&&_0x2dc41c['shiftKey']&&(_0x4b5e78='Shift-'+_0x4b5e78),_0x4b5e78;}const handleKeyEvents=Prec['default'](EditorView['domEventHandlers']({'keydown':(_0xc53744,_0xa13633)=>runHandlers(getKeymap(_0xa13633['state']),_0xc53744,_0xa13633,'editor')})),keymap=Facet['define']({'enables':handleKeyEvents}),Keymaps=new WeakMap();function getKeymap(_0x33db97){let _0x540bb6=_0x33db97['facet'](keymap),_0x4adc60=Keymaps['get'](_0x540bb6);return _0x4adc60||Keymaps['set'](_0x540bb6,_0x4adc60=buildKeymap(_0x540bb6['reduce']((_0x54dab3,_0x2fb08)=>_0x54dab3['concat'](_0x2fb08),[]))),_0x4adc60;}let storedPrefix=null;const PrefixTimeout=0xfa0;function buildKeymap(_0x46d513,_0x11c6f1=currentPlatform){let _0x459ecc=Object['create'](null),_0x347fd8=Object['create'](null),_0x40f3d6=(_0x2ece21,_0x2d4c34)=>{let _0x51cfc9=_0x347fd8[_0x2ece21];if(null==_0x51cfc9)_0x347fd8[_0x2ece21]=_0x2d4c34;else{if(_0x51cfc9!=_0x2d4c34)throw new Error('Key\x20binding\x20'+_0x2ece21+'\x20is\x20used\x20both\x20as\x20a\x20regular\x20binding\x20and\x20as\x20a\x20multi-stroke\x20prefix');}},_0x3ff20b=(_0x5f2ebc,_0x5571c4,_0xe64ff1,_0x21080e,_0x34dbeb)=>{var _0x50aca2,_0x1b3d0f;let _0x2f8ea9=_0x459ecc[_0x5f2ebc]||(_0x459ecc[_0x5f2ebc]=Object['create'](null)),_0x2a3e30=_0x5571c4['split'](/ (?!$)/)['map'](_0xc1d22e=>normalizeKeyName(_0xc1d22e,_0x11c6f1));for(let _0x5a5dd0=0x1;_0x5a5dd0<_0x2a3e30['length'];_0x5a5dd0++){let _0x2bcd19=_0x2a3e30['slice'](0x0,_0x5a5dd0)['join']('\x20');_0x40f3d6(_0x2bcd19,!0x0),_0x2f8ea9[_0x2bcd19]||(_0x2f8ea9[_0x2bcd19]={'preventDefault':!0x0,'stopPropagation':!0x1,'run':[_0x4427ce=>{let _0xbf11e1=storedPrefix={'view':_0x4427ce,'prefix':_0x2bcd19,'scope':_0x5f2ebc};return setTimeout(()=>{storedPrefix==_0xbf11e1&&(storedPrefix=null);},PrefixTimeout),!0x0;}]});}let _0x3c1568=_0x2a3e30['join']('\x20');_0x40f3d6(_0x3c1568,!0x1);let _0x4d8ee0=_0x2f8ea9[_0x3c1568]||(_0x2f8ea9[_0x3c1568]={'preventDefault':!0x1,'stopPropagation':!0x1,'run':(null===(_0x1b3d0f=null===(_0x50aca2=_0x2f8ea9['_any'])||void 0x0===_0x50aca2?void 0x0:_0x50aca2['run'])||void 0x0===_0x1b3d0f?void 0x0:_0x1b3d0f['slice']())||[]});_0xe64ff1&&_0x4d8ee0['run']['push'](_0xe64ff1),_0x21080e&&(_0x4d8ee0['preventDefault']=!0x0),_0x34dbeb&&(_0x4d8ee0['stopPropagation']=!0x0);};for(let _0x396859 of _0x46d513){let _0x465797=_0x396859['scope']?_0x396859['scope']['split']('\x20'):['editor'];if(_0x396859['any'])for(let _0x6791d0 of _0x465797){let _0x415e04=_0x459ecc[_0x6791d0]||(_0x459ecc[_0x6791d0]=Object['create'](null));_0x415e04['_any']||(_0x415e04['_any']={'preventDefault':!0x1,'stopPropagation':!0x1,'run':[]});let {any:_0x192ee0}=_0x396859;for(let _0x175477 in _0x415e04)_0x415e04[_0x175477]['run']['push'](_0x2c25ca=>_0x192ee0(_0x2c25ca,currentKeyEvent));}let _0xb254b6=_0x396859[_0x11c6f1]||_0x396859['key'];if(_0xb254b6){for(let _0x438c5d of _0x465797)_0x3ff20b(_0x438c5d,_0xb254b6,_0x396859['run'],_0x396859['preventDefault'],_0x396859['stopPropagation']),_0x396859['shift']&&_0x3ff20b(_0x438c5d,'Shift-'+_0xb254b6,_0x396859['shift'],_0x396859['preventDefault'],_0x396859['stopPropagation']);}}return _0x459ecc;}let currentKeyEvent=null;function runHandlers(_0x55adeb,_0x8d7088,_0xe0fc74,_0x358bc3){currentKeyEvent=_0x8d7088;let _0x311b43=keyName(_0x8d7088),_0x7df390=codePointSize(codePointAt(_0x311b43,0x0))==_0x311b43['length']&&'\x20'!=_0x311b43,_0x13cb8b='',_0x4a67ba=!0x1,_0xb4f6d3=!0x1,_0xafeb42=!0x1;storedPrefix&&storedPrefix['view']==_0xe0fc74&&storedPrefix['scope']==_0x358bc3&&(_0x13cb8b=storedPrefix['prefix']+'\x20',modifierCodes['indexOf'](_0x8d7088['keyCode'])<0x0&&(_0xb4f6d3=!0x0,storedPrefix=null));let _0x2c9f37,_0x23c725,_0x2d4217=new Set(),_0x1cb1b7=_0x287f18=>{if(_0x287f18){for(let _0x598b8e of _0x287f18['run'])if(!_0x2d4217['has'](_0x598b8e)&&(_0x2d4217['add'](_0x598b8e),_0x598b8e(_0xe0fc74)))return _0x287f18['stopPropagation']&&(_0xafeb42=!0x0),!0x0;_0x287f18['preventDefault']&&(_0x287f18['stopPropagation']&&(_0xafeb42=!0x0),_0xb4f6d3=!0x0);}return!0x1;},_0xa52a98=_0x55adeb[_0x358bc3];return _0xa52a98&&(_0x1cb1b7(_0xa52a98[_0x13cb8b+modifiers(_0x311b43,_0x8d7088,!_0x7df390)])?_0x4a67ba=!0x0:!_0x7df390||!(_0x8d7088['altKey']||_0x8d7088['metaKey']||_0x8d7088['ctrlKey'])||browser['windows']&&_0x8d7088['ctrlKey']&&_0x8d7088['altKey']||browser['mac']&&_0x8d7088['altKey']&&!_0x8d7088['ctrlKey']&&!_0x8d7088['metaKey']||!(_0x2c9f37=base$2[_0x8d7088['keyCode']])||_0x2c9f37==_0x311b43?_0x7df390&&_0x8d7088['shiftKey']&&_0x1cb1b7(_0xa52a98[_0x13cb8b+modifiers(_0x311b43,_0x8d7088,!0x0)])&&(_0x4a67ba=!0x0):(_0x1cb1b7(_0xa52a98[_0x13cb8b+modifiers(_0x2c9f37,_0x8d7088,!0x0)])||_0x8d7088['shiftKey']&&(_0x23c725=shift[_0x8d7088['keyCode']])!=_0x311b43&&_0x23c725!=_0x2c9f37&&_0x1cb1b7(_0xa52a98[_0x13cb8b+modifiers(_0x23c725,_0x8d7088,!0x1)]))&&(_0x4a67ba=!0x0),!_0x4a67ba&&_0x1cb1b7(_0xa52a98['_any'])&&(_0x4a67ba=!0x0)),_0xb4f6d3&&(_0x4a67ba=!0x0),_0x4a67ba&&_0xafeb42&&_0x8d7088['stopPropagation'](),currentKeyEvent=null,_0x4a67ba;}class RectangleMarker{constructor(_0x7f9d97,_0x5a3b6d,_0x4592c7,_0x42ad41,_0x14077a){this['className']=_0x7f9d97,this['left']=_0x5a3b6d,this['top']=_0x4592c7,this['width']=_0x42ad41,this['height']=_0x14077a;}['draw'](){let _0xce0142=document['createElement']('div');return _0xce0142['className']=this['className'],this['adjust'](_0xce0142),_0xce0142;}['update'](_0x4f8b22,_0x379ad3){return _0x379ad3['className']==this['className']&&(this['adjust'](_0x4f8b22),!0x0);}['adjust'](_0x5a3e82){_0x5a3e82['style']['left']=this['left']+'px',_0x5a3e82['style']['top']=this['top']+'px',null!=this['width']&&(_0x5a3e82['style']['width']=this['width']+'px'),_0x5a3e82['style']['height']=this['height']+'px';}['eq'](_0x4afbba){return this['left']==_0x4afbba['left']&&this['top']==_0x4afbba['top']&&this['width']==_0x4afbba['width']&&this['height']==_0x4afbba['height']&&this['className']==_0x4afbba['className'];}static['forRange'](_0x487f18,_0x233330,_0x5af26d){if(_0x5af26d['empty']){let _0x4a62fb=_0x487f18['coordsAtPos'](_0x5af26d['head'],_0x5af26d['assoc']||0x1);if(!_0x4a62fb)return[];let _0x393b1e=getBase(_0x487f18);return[new RectangleMarker(_0x233330,_0x4a62fb['left']-_0x393b1e['left'],_0x4a62fb['top']-_0x393b1e['top'],null,_0x4a62fb['bottom']-_0x4a62fb['top'])];}return rectanglesForRange(_0x487f18,_0x233330,_0x5af26d);}}function getBase(_0x172d62){let _0x32e259=_0x172d62['scrollDOM']['getBoundingClientRect']();return{'left':(_0x172d62['textDirection']==Direction['LTR']?_0x32e259['left']:_0x32e259['right']-_0x172d62['scrollDOM']['clientWidth']*_0x172d62['scaleX'])-_0x172d62['scrollDOM']['scrollLeft']*_0x172d62['scaleX'],'top':_0x32e259['top']-_0x172d62['scrollDOM']['scrollTop']*_0x172d62['scaleY']};}function wrappedLine(_0x5490ec,_0x144e1e,_0x1a09c0,_0x48b3b4){let _0x5a2aae=_0x5490ec['coordsAtPos'](_0x144e1e,0x2*_0x1a09c0);if(!_0x5a2aae)return _0x48b3b4;let _0x1ecd6c=_0x5490ec['dom']['getBoundingClientRect'](),_0x9ce571=(_0x5a2aae['top']+_0x5a2aae['bottom'])/0x2,_0x118a10=_0x5490ec['posAtCoords']({'x':_0x1ecd6c['left']+0x1,'y':_0x9ce571}),_0x1e90a7=_0x5490ec['posAtCoords']({'x':_0x1ecd6c['right']-0x1,'y':_0x9ce571});return null==_0x118a10||null==_0x1e90a7?_0x48b3b4:{'from':Math['max'](_0x48b3b4['from'],Math['min'](_0x118a10,_0x1e90a7)),'to':Math['min'](_0x48b3b4['to'],Math['max'](_0x118a10,_0x1e90a7))};}function rectanglesForRange(_0x749b00,_0x29f299,_0x3c4e1e){if(_0x3c4e1e['to']<=_0x749b00['viewport']['from']||_0x3c4e1e['from']>=_0x749b00['viewport']['to'])return[];let _0x91461f=Math['max'](_0x3c4e1e['from'],_0x749b00['viewport']['from']),_0x4a93cf=Math['min'](_0x3c4e1e['to'],_0x749b00['viewport']['to']),_0x4e0f07=_0x749b00['textDirection']==Direction['LTR'],_0xe6c43b=_0x749b00['contentDOM'],_0xd3d2a9=_0xe6c43b['getBoundingClientRect'](),_0x275755=getBase(_0x749b00),_0xa7a707=_0xe6c43b['querySelector']('.cm-line'),_0x172b84=_0xa7a707&&window['getComputedStyle'](_0xa7a707),_0x5cb910=_0xd3d2a9['left']+(_0x172b84?parseInt(_0x172b84['paddingLeft'])+Math['min'](0x0,parseInt(_0x172b84['textIndent'])):0x0),_0xb99ee7=_0xd3d2a9['right']-(_0x172b84?parseInt(_0x172b84['paddingRight']):0x0),_0x214422=blockAt(_0x749b00,_0x91461f,0x1),_0x4d9f9f=blockAt(_0x749b00,_0x4a93cf,-0x1),_0x593f77=_0x214422['type']==BlockType['Text']?_0x214422:null,_0x19d300=_0x4d9f9f['type']==BlockType['Text']?_0x4d9f9f:null;if(_0x593f77&&(_0x749b00['lineWrapping']||_0x214422['widgetLineBreaks'])&&(_0x593f77=wrappedLine(_0x749b00,_0x91461f,0x1,_0x593f77)),_0x19d300&&(_0x749b00['lineWrapping']||_0x4d9f9f['widgetLineBreaks'])&&(_0x19d300=wrappedLine(_0x749b00,_0x4a93cf,-0x1,_0x19d300)),_0x593f77&&_0x19d300&&_0x593f77['from']==_0x19d300['from']&&_0x593f77['to']==_0x19d300['to'])return _0x5419ac(_0x2860de(_0x3c4e1e['from'],_0x3c4e1e['to'],_0x593f77));{let _0x5aa3ed=_0x593f77?_0x2860de(_0x3c4e1e['from'],null,_0x593f77):_0x5ec781(_0x214422,!0x1),_0x1571e1=_0x19d300?_0x2860de(null,_0x3c4e1e['to'],_0x19d300):_0x5ec781(_0x4d9f9f,!0x0),_0x1f49f1=[];return(_0x593f77||_0x214422)['to']<(_0x19d300||_0x4d9f9f)['from']-(_0x593f77&&_0x19d300?0x1:0x0)||_0x214422['widgetLineBreaks']>0x1&&_0x5aa3ed['bottom']+_0x749b00['defaultLineHeight']/0x2<_0x1571e1['top']?_0x1f49f1['push'](_0x646efc(_0x5cb910,_0x5aa3ed['bottom'],_0xb99ee7,_0x1571e1['top'])):_0x5aa3ed['bottom']<_0x1571e1['top']&&_0x749b00['elementAtHeight']((_0x5aa3ed['bottom']+_0x1571e1['top'])/0x2)['type']==BlockType['Text']&&(_0x5aa3ed['bottom']=_0x1571e1['top']=(_0x5aa3ed['bottom']+_0x1571e1['top'])/0x2),_0x5419ac(_0x5aa3ed)['concat'](_0x1f49f1)['concat'](_0x5419ac(_0x1571e1));}function _0x646efc(_0x5beca7,_0x5bbad3,_0xf90cd2,_0x518417){return new RectangleMarker(_0x29f299,_0x5beca7-_0x275755['left'],_0x5bbad3-_0x275755['top'],_0xf90cd2-_0x5beca7,_0x518417-_0x5bbad3);}function _0x5419ac({top:_0x28a7c5,bottom:_0x5e0fb0,horizontal:_0x11f75c}){let _0x4fcb9b=[];for(let _0x3706b0=0x0;_0x3706b0<_0x11f75c['length'];_0x3706b0+=0x2)_0x4fcb9b['push'](_0x646efc(_0x11f75c[_0x3706b0],_0x28a7c5,_0x11f75c[_0x3706b0+0x1],_0x5e0fb0));return _0x4fcb9b;}function _0x2860de(_0x475ab3,_0x29147b,_0x27fe95){let _0x2228f4=0x3b9aca00,_0x355c37=-0x3b9aca00,_0x15fffb=[];function _0x5f4a2f(_0xdac0df,_0x5f600e,_0x272ac6,_0x2765c3,_0x557618){let _0x4b53a0=_0x749b00['coordsAtPos'](_0xdac0df,_0xdac0df==_0x27fe95['to']?-0x2:0x2),_0x41e9c1=_0x749b00['coordsAtPos'](_0x272ac6,_0x272ac6==_0x27fe95['from']?0x2:-0x2);_0x4b53a0&&_0x41e9c1&&(_0x2228f4=Math['min'](_0x4b53a0['top'],_0x41e9c1['top'],_0x2228f4),_0x355c37=Math['max'](_0x4b53a0['bottom'],_0x41e9c1['bottom'],_0x355c37),_0x557618==Direction['LTR']?_0x15fffb['push'](_0x4e0f07&&_0x5f600e?_0x5cb910:_0x4b53a0['left'],_0x4e0f07&&_0x2765c3?_0xb99ee7:_0x41e9c1['right']):_0x15fffb['push'](!_0x4e0f07&&_0x2765c3?_0x5cb910:_0x41e9c1['left'],!_0x4e0f07&&_0x5f600e?_0xb99ee7:_0x4b53a0['right']));}let _0x4a352a=null!=_0x475ab3?_0x475ab3:_0x27fe95['from'],_0x3eaf94=null!=_0x29147b?_0x29147b:_0x27fe95['to'];for(let _0x491b2c of _0x749b00['visibleRanges'])if(_0x491b2c['to']>_0x4a352a&&_0x491b2c['from']<_0x3eaf94)for(let _0xf06627=Math['max'](_0x491b2c['from'],_0x4a352a),_0x32dec9=Math['min'](_0x491b2c['to'],_0x3eaf94);;){let _0x2ffbfa=_0x749b00['state']['doc']['lineAt'](_0xf06627);for(let _0x42747a of _0x749b00['bidiSpans'](_0x2ffbfa)){let _0x3784bc=_0x42747a['from']+_0x2ffbfa['from'],_0x62b544=_0x42747a['to']+_0x2ffbfa['from'];if(_0x3784bc>=_0x32dec9)break;_0x62b544>_0xf06627&&_0x5f4a2f(Math['max'](_0x3784bc,_0xf06627),null==_0x475ab3&&_0x3784bc<=_0x4a352a,Math['min'](_0x62b544,_0x32dec9),null==_0x29147b&&_0x62b544>=_0x3eaf94,_0x42747a['dir']);}if(_0xf06627=_0x2ffbfa['to']+0x1,_0xf06627>=_0x32dec9)break;}return 0x0==_0x15fffb['length']&&_0x5f4a2f(_0x4a352a,null==_0x475ab3,_0x3eaf94,null==_0x29147b,_0x749b00['textDirection']),{'top':_0x2228f4,'bottom':_0x355c37,'horizontal':_0x15fffb};}function _0x5ec781(_0x1bc2fb,_0x302eeb){let _0x289575=_0xd3d2a9['top']+(_0x302eeb?_0x1bc2fb['top']:_0x1bc2fb['bottom']);return{'top':_0x289575,'bottom':_0x289575,'horizontal':[]};}}function sameMarker(_0x50d8cd,_0x5eb9d1){return _0x50d8cd['constructor']==_0x5eb9d1['constructor']&&_0x50d8cd['eq'](_0x5eb9d1);}class LayerView{constructor(_0x517c59,_0x23d3df){this['view']=_0x517c59,this['layer']=_0x23d3df,this['drawn']=[],this['scaleX']=0x1,this['scaleY']=0x1,this['measureReq']={'read':this['measure']['bind'](this),'write':this['draw']['bind'](this)},this['dom']=_0x517c59['scrollDOM']['appendChild'](document['createElement']('div')),this['dom']['classList']['add']('cm-layer'),_0x23d3df['above']&&this['dom']['classList']['add']('cm-layer-above'),_0x23d3df['class']&&this['dom']['classList']['add'](_0x23d3df['class']),this['scale'](),this['dom']['setAttribute']('aria-hidden','true'),this['setOrder'](_0x517c59['state']),_0x517c59['requestMeasure'](this['measureReq']),_0x23d3df['mount']&&_0x23d3df['mount'](this['dom'],_0x517c59);}['update'](_0x4b2de6){_0x4b2de6['startState']['facet'](layerOrder)!=_0x4b2de6['state']['facet'](layerOrder)&&this['setOrder'](_0x4b2de6['state']),(this['layer']['update'](_0x4b2de6,this['dom'])||_0x4b2de6['geometryChanged'])&&(this['scale'](),_0x4b2de6['view']['requestMeasure'](this['measureReq']));}['docViewUpdate'](_0x4c6467){!0x1!==this['layer']['updateOnDocViewUpdate']&&_0x4c6467['requestMeasure'](this['measureReq']);}['setOrder'](_0x2f3e6c){let _0x1f109e=0x0,_0x1c2dac=_0x2f3e6c['facet'](layerOrder);for(;_0x1f109e<_0x1c2dac['length']&&_0x1c2dac[_0x1f109e]!=this['layer'];)_0x1f109e++;this['dom']['style']['zIndex']=String((this['layer']['above']?0x96:-0x1)-_0x1f109e);}['measure'](){return this['layer']['markers'](this['view']);}['scale'](){let {scaleX:_0x26799c,scaleY:_0x8291}=this['view'];_0x26799c==this['scaleX']&&_0x8291==this['scaleY']||(this['scaleX']=_0x26799c,this['scaleY']=_0x8291,this['dom']['style']['transform']='scale('+0x1/_0x26799c+',\x20'+0x1/_0x8291+')');}['draw'](_0x5caf5a){if(_0x5caf5a['length']!=this['drawn']['length']||_0x5caf5a['some']((_0xfa475d,_0x203ac5)=>!sameMarker(_0xfa475d,this['drawn'][_0x203ac5]))){let _0x7b0622=this['dom']['firstChild'],_0x401640=0x0;for(let _0x1016e9 of _0x5caf5a)_0x1016e9['update']&&_0x7b0622&&_0x1016e9['constructor']&&this['drawn'][_0x401640]['constructor']&&_0x1016e9['update'](_0x7b0622,this['drawn'][_0x401640])?(_0x7b0622=_0x7b0622['nextSibling'],_0x401640++):this['dom']['insertBefore'](_0x1016e9['draw'](),_0x7b0622);for(;_0x7b0622;){let _0x41812d=_0x7b0622['nextSibling'];_0x7b0622['remove'](),_0x7b0622=_0x41812d;}this['drawn']=_0x5caf5a,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(_0xe5db0a){return[ViewPlugin['define'](_0x2cfd59=>new LayerView(_0x2cfd59,_0xe5db0a)),layerOrder['of'](_0xe5db0a)];}const selectionConfig=Facet['define']({'combine':_0x4f8411=>combineConfig(_0x4f8411,{'cursorBlinkRate':0x4b0,'drawRangeCursor':!0x0},{'cursorBlinkRate':(_0xf68a86,_0x2def18)=>Math['min'](_0xf68a86,_0x2def18),'drawRangeCursor':(_0x5544a7,_0x4d4f)=>_0x5544a7||_0x4d4f})});function drawSelection(_0x342ad3={}){return[selectionConfig['of'](_0x342ad3),cursorLayer,selectionLayer,hideNativeSelection,nativeSelectionHidden['of'](!0x0)];}function configChanged(_0xe605a){return _0xe605a['startState']['facet'](selectionConfig)!=_0xe605a['state']['facet'](selectionConfig);}const cursorLayer=layer({'above':!0x0,'markers'(_0x3daf2e){let {state:_0x4a06fb}=_0x3daf2e,_0x25943d=_0x4a06fb['facet'](selectionConfig),_0x25e7ed=[];for(let _0x4b098c of _0x4a06fb['selection']['ranges']){let _0x2a46ad=_0x4b098c==_0x4a06fb['selection']['main'];if(_0x4b098c['empty']||_0x25943d['drawRangeCursor']){let _0x128c82=_0x2a46ad?'cm-cursor\x20cm-cursor-primary':'cm-cursor\x20cm-cursor-secondary',_0xac722b=_0x4b098c['empty']?_0x4b098c:EditorSelection['cursor'](_0x4b098c['head'],_0x4b098c['head']>_0x4b098c['anchor']?-0x1:0x1);for(let _0x55b6d7 of RectangleMarker['forRange'](_0x3daf2e,_0x128c82,_0xac722b))_0x25e7ed['push'](_0x55b6d7);}}return _0x25e7ed;},'update'(_0x2e0f83,_0x60df19){_0x2e0f83['transactions']['some'](_0x55994e=>_0x55994e['selection'])&&(_0x60df19['style']['animationName']='cm-blink'==_0x60df19['style']['animationName']?'cm-blink2':'cm-blink');let _0x27a569=configChanged(_0x2e0f83);return _0x27a569&&setBlinkRate(_0x2e0f83['state'],_0x60df19),_0x2e0f83['docChanged']||_0x2e0f83['selectionSet']||_0x27a569;},'mount'(_0x5e003a,_0x5406c7){setBlinkRate(_0x5406c7['state'],_0x5e003a);},'class':'cm-cursorLayer'});function setBlinkRate(_0xb3b776,_0x1fa556){_0x1fa556['style']['animationDuration']=_0xb3b776['facet'](selectionConfig)['cursorBlinkRate']+'ms';}const selectionLayer=layer({'above':!0x1,'markers':_0x5402a2=>_0x5402a2['state']['selection']['ranges']['map'](_0x2eb3dd=>_0x2eb3dd['empty']?[]:RectangleMarker['forRange'](_0x5402a2,'cm-selectionBackground',_0x2eb3dd))['reduce']((_0x571365,_0x474353)=>_0x571365['concat'](_0x474353)),'update':(_0xe5561c,_0x1b0964)=>_0xe5561c['docChanged']||_0xe5561c['selectionSet']||_0xe5561c['viewportChanged']||configChanged(_0xe5561c),'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':(_0x5c7292,_0x2c643a)=>null==_0x5c7292?null:_0x2c643a['mapPos'](_0x5c7292)}),dropCursorPos=StateField['define']({'create':()=>null,'update':(_0x3a390f,_0x103258)=>(null!=_0x3a390f&&(_0x3a390f=_0x103258['changes']['mapPos'](_0x3a390f)),_0x103258['effects']['reduce']((_0x4eaa7d,_0x3cfef8)=>_0x3cfef8['is'](setDropCursorPos)?_0x3cfef8['value']:_0x4eaa7d,_0x3a390f))}),drawDropCursor=ViewPlugin['fromClass'](class{constructor(_0x4bcb2a){this['view']=_0x4bcb2a,this['cursor']=null,this['measureReq']={'read':this['readPos']['bind'](this),'write':this['drawCursor']['bind'](this)};}['update'](_0x362e17){var _0x1af11b;let _0x57c9ff=_0x362e17['state']['field'](dropCursorPos);null==_0x57c9ff?null!=this['cursor']&&(null===(_0x1af11b=this['cursor'])||void 0x0===_0x1af11b||_0x1af11b['remove'](),this['cursor']=null):(this['cursor']||(this['cursor']=this['view']['scrollDOM']['appendChild'](document['createElement']('div')),this['cursor']['className']='cm-dropCursor'),(_0x362e17['startState']['field'](dropCursorPos)!=_0x57c9ff||_0x362e17['docChanged']||_0x362e17['geometryChanged'])&&this['view']['requestMeasure'](this['measureReq']));}['readPos'](){let {view:_0x8aa587}=this,_0x2685fd=_0x8aa587['state']['field'](dropCursorPos),_0x18b4a2=null!=_0x2685fd&&_0x8aa587['coordsAtPos'](_0x2685fd);if(!_0x18b4a2)return null;let _0x440d9c=_0x8aa587['scrollDOM']['getBoundingClientRect']();return{'left':_0x18b4a2['left']-_0x440d9c['left']+_0x8aa587['scrollDOM']['scrollLeft']*_0x8aa587['scaleX'],'top':_0x18b4a2['top']-_0x440d9c['top']+_0x8aa587['scrollDOM']['scrollTop']*_0x8aa587['scaleY'],'height':_0x18b4a2['bottom']-_0x18b4a2['top']};}['drawCursor'](_0x706b9){if(this['cursor']){let {scaleX:_0x1230c7,scaleY:_0x1686c4}=this['view'];_0x706b9?(this['cursor']['style']['left']=_0x706b9['left']/_0x1230c7+'px',this['cursor']['style']['top']=_0x706b9['top']/_0x1686c4+'px',this['cursor']['style']['height']=_0x706b9['height']/_0x1686c4+'px'):this['cursor']['style']['left']='-100000px';}}['destroy'](){this['cursor']&&this['cursor']['remove']();}['setDropPos'](_0xb785ee){this['view']['state']['field'](dropCursorPos)!=_0xb785ee&&this['view']['dispatch']({'effects':setDropCursorPos['of'](_0xb785ee)});}},{'eventObservers':{'dragover'(_0x5ca582){this['setDropPos'](this['view']['posAtCoords']({'x':_0x5ca582['clientX'],'y':_0x5ca582['clientY']}));},'dragleave'(_0x1318d7){_0x1318d7['target']!=this['view']['contentDOM']&&this['view']['contentDOM']['contains'](_0x1318d7['relatedTarget'])||this['setDropPos'](null);},'dragend'(){this['setDropPos'](null);},'drop'(){this['setDropPos'](null);}}});function dropCursor(){return[dropCursorPos,drawDropCursor];}function iterMatches(_0x2f9a88,_0xbc373,_0x599b9b,_0x5e27e9,_0x2af6d5){_0xbc373['lastIndex']=0x0;for(let _0xf05bf5,_0x8473e7=_0x2f9a88['iterRange'](_0x599b9b,_0x5e27e9),_0x32ac76=_0x599b9b;!_0x8473e7['next']()['done'];_0x32ac76+=_0x8473e7['value']['length'])if(!_0x8473e7['lineBreak']){for(;_0xf05bf5=_0xbc373['exec'](_0x8473e7['value']);)_0x2af6d5(_0x32ac76+_0xf05bf5['index'],_0xf05bf5);}}function matchRanges(_0x43e56b,_0x2f1d90){let _0x1957e3=_0x43e56b['visibleRanges'];if(0x1==_0x1957e3['length']&&_0x1957e3[0x0]['from']==_0x43e56b['viewport']['from']&&_0x1957e3[0x0]['to']==_0x43e56b['viewport']['to'])return _0x1957e3;let _0x4e1733=[];for(let {from:_0x36984b,to:_0x8bf222}of _0x1957e3)_0x36984b=Math['max'](_0x43e56b['state']['doc']['lineAt'](_0x36984b)['from'],_0x36984b-_0x2f1d90),_0x8bf222=Math['min'](_0x43e56b['state']['doc']['lineAt'](_0x8bf222)['to'],_0x8bf222+_0x2f1d90),_0x4e1733['length']&&_0x4e1733[_0x4e1733['length']-0x1]['to']>=_0x36984b?_0x4e1733[_0x4e1733['length']-0x1]['to']=_0x8bf222:_0x4e1733['push']({'from':_0x36984b,'to':_0x8bf222});return _0x4e1733;}class MatchDecorator{constructor(_0x1e9fe7){const {regexp:_0x77cd7b,decoration:_0x6603c7,decorate:_0xc7aa3e,boundary:_0x6cca7c,maxLength:_0x209b91=0x3e8}=_0x1e9fe7;if(!_0x77cd7b['global'])throw new RangeError('The\x20regular\x20expression\x20given\x20to\x20MatchDecorator\x20should\x20have\x20its\x20\x27g\x27\x20flag\x20set');if(this['regexp']=_0x77cd7b,_0xc7aa3e)this['addMatch']=(_0xc83891,_0x182b83,_0x1a2e46,_0x4a75ea)=>_0xc7aa3e(_0x4a75ea,_0x1a2e46,_0x1a2e46+_0xc83891[0x0]['length'],_0xc83891,_0x182b83);else{if('function'==typeof _0x6603c7)this['addMatch']=(_0x3249ec,_0x30b3bd,_0x38933a,_0x59b3a9)=>{let _0x53adf4=_0x6603c7(_0x3249ec,_0x30b3bd,_0x38933a);_0x53adf4&&_0x59b3a9(_0x38933a,_0x38933a+_0x3249ec[0x0]['length'],_0x53adf4);};else{if(!_0x6603c7)throw new RangeError('Either\x20\x27decorate\x27\x20or\x20\x27decoration\x27\x20should\x20be\x20provided\x20to\x20MatchDecorator');this['addMatch']=(_0x526803,_0x4c9f00,_0x26c58c,_0x4723b5)=>_0x4723b5(_0x26c58c,_0x26c58c+_0x526803[0x0]['length'],_0x6603c7);}}this['boundary']=_0x6cca7c,this['maxLength']=_0x209b91;}['createDeco'](_0x5b9602){let _0x558175=new RangeSetBuilder(),_0x486b5d=_0x558175['add']['bind'](_0x558175);for(let {from:_0x36f40b,to:_0xf3dbc2}of matchRanges(_0x5b9602,this['maxLength']))iterMatches(_0x5b9602['state']['doc'],this['regexp'],_0x36f40b,_0xf3dbc2,(_0x4110be,_0x2c1c8a)=>this['addMatch'](_0x2c1c8a,_0x5b9602,_0x4110be,_0x486b5d));return _0x558175['finish']();}['updateDeco'](_0x51f12d,_0x300c5d){let _0x47f4d8=0x3b9aca00,_0x4a5d30=-0x1;return _0x51f12d['docChanged']&&_0x51f12d['changes']['iterChanges']((_0x320358,_0x22ee96,_0x39befb,_0x28021f)=>{_0x28021f>=_0x51f12d['view']['viewport']['from']&&_0x39befb<=_0x51f12d['view']['viewport']['to']&&(_0x47f4d8=Math['min'](_0x39befb,_0x47f4d8),_0x4a5d30=Math['max'](_0x28021f,_0x4a5d30));}),_0x51f12d['viewportMoved']||_0x4a5d30-_0x47f4d8>0x3e8?this['createDeco'](_0x51f12d['view']):_0x4a5d30>-0x1?this['updateRange'](_0x51f12d['view'],_0x300c5d['map'](_0x51f12d['changes']),_0x47f4d8,_0x4a5d30):_0x300c5d;}['updateRange'](_0x3109e7,_0x55c166,_0x4111da,_0x182edb){for(let _0x1ad275 of _0x3109e7['visibleRanges']){let _0x19d2d9=Math['max'](_0x1ad275['from'],_0x4111da),_0x114285=Math['min'](_0x1ad275['to'],_0x182edb);if(_0x114285>=_0x19d2d9){let _0x21e30b=_0x3109e7['state']['doc']['lineAt'](_0x19d2d9),_0x380f2a=_0x21e30b['to']<_0x114285?_0x3109e7['state']['doc']['lineAt'](_0x114285):_0x21e30b,_0x417062=Math['max'](_0x1ad275['from'],_0x21e30b['from']),_0x2524ce=Math['min'](_0x1ad275['to'],_0x380f2a['to']);if(this['boundary']){for(;_0x19d2d9>_0x21e30b['from'];_0x19d2d9--)if(this['boundary']['test'](_0x21e30b['text'][_0x19d2d9-0x1-_0x21e30b['from']])){_0x417062=_0x19d2d9;break;}for(;_0x114285<_0x380f2a['to'];_0x114285++)if(this['boundary']['test'](_0x380f2a['text'][_0x114285-_0x380f2a['from']])){_0x2524ce=_0x114285;break;}}let _0x5102a5,_0x2d8ace=[],_0x14b009=(_0x40ce05,_0xa8f740,_0x4eff97)=>_0x2d8ace['push'](_0x4eff97['range'](_0x40ce05,_0xa8f740));if(_0x21e30b==_0x380f2a){for(this['regexp']['lastIndex']=_0x417062-_0x21e30b['from'];(_0x5102a5=this['regexp']['exec'](_0x21e30b['text']))&&_0x5102a5['index']<_0x2524ce-_0x21e30b['from'];)this['addMatch'](_0x5102a5,_0x3109e7,_0x5102a5['index']+_0x21e30b['from'],_0x14b009);}else iterMatches(_0x3109e7['state']['doc'],this['regexp'],_0x417062,_0x2524ce,(_0x35e666,_0x140627)=>this['addMatch'](_0x140627,_0x3109e7,_0x35e666,_0x14b009));_0x55c166=_0x55c166['update']({'filterFrom':_0x417062,'filterTo':_0x2524ce,'filter':(_0x2a1e91,_0x33af8d)=>_0x2a1e91<_0x417062||_0x33af8d>_0x2524ce,'add':_0x2d8ace});}}return _0x55c166;}}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 _0x20a943;if(null==_supportsTabSize&&'undefined'!=typeof document&&document['body']){let _0x2dfbda=document['body']['style'];_supportsTabSize=null!=(null!==(_0x20a943=_0x2dfbda['tabSize'])&&void 0x0!==_0x20a943?_0x20a943:_0x2dfbda['MozTabSize']);}return _supportsTabSize||!0x1;}const specialCharConfig=Facet['define']({'combine'(_0x57643d){let _0x29f08f=combineConfig(_0x57643d,{'render':null,'specialChars':Specials,'addSpecialChars':null});return(_0x29f08f['replaceTabs']=!supportsTabSize())&&(_0x29f08f['specialChars']=new RegExp('\x09|'+_0x29f08f['specialChars']['source'],UnicodeRegexpSupport)),_0x29f08f['addSpecialChars']&&(_0x29f08f['specialChars']=new RegExp(_0x29f08f['specialChars']['source']+'|'+_0x29f08f['addSpecialChars']['source'],UnicodeRegexpSupport)),_0x29f08f;}});function highlightSpecialChars(_0x1e9fa6={}){return[specialCharConfig['of'](_0x1e9fa6),specialCharPlugin()];}let _plugin=null;function specialCharPlugin(){return _plugin||(_plugin=ViewPlugin['fromClass'](class{constructor(_0x52a22c){this['view']=_0x52a22c,this['decorations']=Decoration['none'],this['decorationCache']=Object['create'](null),this['decorator']=this['makeDecorator'](_0x52a22c['state']['facet'](specialCharConfig)),this['decorations']=this['decorator']['createDeco'](_0x52a22c);}['makeDecorator'](_0xa7d325){return new MatchDecorator({'regexp':_0xa7d325['specialChars'],'decoration':(_0x5886e1,_0x2f9968,_0x2aacf1)=>{let {doc:_0x4b1c71}=_0x2f9968['state'],_0x25ff48=codePointAt(_0x5886e1[0x0],0x0);if(0x9==_0x25ff48){let _0x24f411=_0x4b1c71['lineAt'](_0x2aacf1),_0x251731=_0x2f9968['state']['tabSize'],_0x27708a=countColumn(_0x24f411['text'],_0x251731,_0x2aacf1-_0x24f411['from']);return Decoration['replace']({'widget':new TabWidget((_0x251731-_0x27708a%_0x251731)*this['view']['defaultCharacterWidth']/this['view']['scaleX'])});}return this['decorationCache'][_0x25ff48]||(this['decorationCache'][_0x25ff48]=Decoration['replace']({'widget':new SpecialCharWidget(_0xa7d325,_0x25ff48)}));},'boundary':_0xa7d325['replaceTabs']?void 0x0:/[^]/});}['update'](_0x5716be){let _0x3bc25a=_0x5716be['state']['facet'](specialCharConfig);_0x5716be['startState']['facet'](specialCharConfig)!=_0x3bc25a?(this['decorator']=this['makeDecorator'](_0x3bc25a),this['decorations']=this['decorator']['createDeco'](_0x5716be['view'])):this['decorations']=this['decorator']['updateDeco'](_0x5716be,this['decorations']);}},{'decorations':_0xeba78a=>_0xeba78a['decorations']}));}const DefaultPlaceholder='•';function placeholder$1(_0x38e108){return _0x38e108>=0x20?DefaultPlaceholder:0xa==_0x38e108?'␤':String['fromCharCode'](0x2400+_0x38e108);}class SpecialCharWidget extends WidgetType{constructor(_0x54feb9,_0x385147){super(),this['options']=_0x54feb9,this['code']=_0x385147;}['eq'](_0x5d84fc){return _0x5d84fc['code']==this['code'];}['toDOM'](_0x79a1f){let _0x5e9f9d=placeholder$1(this['code']),_0x13cced=_0x79a1f['state']['phrase']('Control\x20character')+'\x20'+(Names[this['code']]||'0x'+this['code']['toString'](0x10)),_0x268cc0=this['options']['render']&&this['options']['render'](this['code'],_0x13cced,_0x5e9f9d);if(_0x268cc0)return _0x268cc0;let _0x3c58e6=document['createElement']('span');return _0x3c58e6['textContent']=_0x5e9f9d,_0x3c58e6['title']=_0x13cced,_0x3c58e6['setAttribute']('aria-label',_0x13cced),_0x3c58e6['className']='cm-specialChar',_0x3c58e6;}['ignoreEvent'](){return!0x1;}}class TabWidget extends WidgetType{constructor(_0x4c7b2e){super(),this['width']=_0x4c7b2e;}['eq'](_0x1982da){return _0x1982da['width']==this['width'];}['toDOM'](){let _0x30f3b2=document['createElement']('span');return _0x30f3b2['textContent']='\x09',_0x30f3b2['className']='cm-tab',_0x30f3b2['style']['width']=this['width']+'px',_0x30f3b2;}['ignoreEvent'](){return!0x1;}}function highlightActiveLine(){return activeLineHighlighter;}const lineDeco=Decoration['line']({'class':'cm-activeLine'}),activeLineHighlighter=ViewPlugin['fromClass'](class{constructor(_0x5e4244){this['decorations']=this['getDeco'](_0x5e4244);}['update'](_0x5b4fcc){(_0x5b4fcc['docChanged']||_0x5b4fcc['selectionSet'])&&(this['decorations']=this['getDeco'](_0x5b4fcc['view']));}['getDeco'](_0x3e1a3b){let _0x3c0b1a=-0x1,_0x4b8ea2=[];for(let _0x3b8e3e of _0x3e1a3b['state']['selection']['ranges']){let _0x548c07=_0x3e1a3b['lineBlockAt'](_0x3b8e3e['head']);_0x548c07['from']>_0x3c0b1a&&(_0x4b8ea2['push'](lineDeco['range'](_0x548c07['from'])),_0x3c0b1a=_0x548c07['from']);}return Decoration['set'](_0x4b8ea2);}},{'decorations':_0x5e6399=>_0x5e6399['decorations']}),MaxOff=0x7d0;function rectangleFor(_0xdce145,_0x320f45,_0x5b7b6f){let _0x4c648d=Math['min'](_0x320f45['line'],_0x5b7b6f['line']),_0x2a3d8d=Math['max'](_0x320f45['line'],_0x5b7b6f['line']),_0x27cace=[];if(_0x320f45['off']>MaxOff||_0x5b7b6f['off']>MaxOff||_0x320f45['col']<0x0||_0x5b7b6f['col']<0x0){let _0xfae5ce=Math['min'](_0x320f45['off'],_0x5b7b6f['off']),_0x3fecb1=Math['max'](_0x320f45['off'],_0x5b7b6f['off']);for(let _0x4a99ee=_0x4c648d;_0x4a99ee<=_0x2a3d8d;_0x4a99ee++){let _0x53be8f=_0xdce145['doc']['line'](_0x4a99ee);_0x53be8f['length']<=_0x3fecb1&&_0x27cace['push'](EditorSelection['range'](_0x53be8f['from']+_0xfae5ce,_0x53be8f['to']+_0x3fecb1));}}else{let _0x43f660=Math['min'](_0x320f45['col'],_0x5b7b6f['col']),_0x29ceab=Math['max'](_0x320f45['col'],_0x5b7b6f['col']);for(let _0x5ae42f=_0x4c648d;_0x5ae42f<=_0x2a3d8d;_0x5ae42f++){let _0x3b95d0=_0xdce145['doc']['line'](_0x5ae42f),_0x20a0d1=findColumn(_0x3b95d0['text'],_0x43f660,_0xdce145['tabSize'],!0x0);if(_0x20a0d1<0x0)_0x27cace['push'](EditorSelection['cursor'](_0x3b95d0['to']));else{let _0x56dbc4=findColumn(_0x3b95d0['text'],_0x29ceab,_0xdce145['tabSize']);_0x27cace['push'](EditorSelection['range'](_0x3b95d0['from']+_0x20a0d1,_0x3b95d0['from']+_0x56dbc4));}}}return _0x27cace;}function absoluteColumn(_0x898cf,_0x116952){let _0x2c8378=_0x898cf['coordsAtPos'](_0x898cf['viewport']['from']);return _0x2c8378?Math['round'](Math['abs']((_0x2c8378['left']-_0x116952)/_0x898cf['defaultCharacterWidth'])):-0x1;}function getPos(_0x3ac5d5,_0x258f01){let _0x798813=_0x3ac5d5['posAtCoords']({'x':_0x258f01['clientX'],'y':_0x258f01['clientY']},!0x1),_0x5b0792=_0x3ac5d5['state']['doc']['lineAt'](_0x798813),_0x2a7761=_0x798813-_0x5b0792['from'],_0x58629a=_0x2a7761>MaxOff?-0x1:_0x2a7761==_0x5b0792['length']?absoluteColumn(_0x3ac5d5,_0x258f01['clientX']):countColumn(_0x5b0792['text'],_0x3ac5d5['state']['tabSize'],_0x798813-_0x5b0792['from']);return{'line':_0x5b0792['number'],'col':_0x58629a,'off':_0x2a7761};}function rectangleSelectionStyle(_0x531354,_0x4aa0a4){let _0x1893fa=getPos(_0x531354,_0x4aa0a4),_0x4a9955=_0x531354['state']['selection'];return _0x1893fa?{'update'(_0xe4db5){if(_0xe4db5['docChanged']){let _0x1ab5c0=_0xe4db5['changes']['mapPos'](_0xe4db5['startState']['doc']['line'](_0x1893fa['line'])['from']),_0x13c6df=_0xe4db5['state']['doc']['lineAt'](_0x1ab5c0);_0x1893fa={'line':_0x13c6df['number'],'col':_0x1893fa['col'],'off':Math['min'](_0x1893fa['off'],_0x13c6df['length'])},_0x4a9955=_0x4a9955['map'](_0xe4db5['changes']);}},'get'(_0x3d6cd9,_0x56a68e,_0x3c38ac){let _0x9b1753=getPos(_0x531354,_0x3d6cd9);if(!_0x9b1753)return _0x4a9955;let _0x3dbb27=rectangleFor(_0x531354['state'],_0x1893fa,_0x9b1753);return _0x3dbb27['length']?_0x3c38ac?EditorSelection['create'](_0x3dbb27['concat'](_0x4a9955['ranges'])):EditorSelection['create'](_0x3dbb27):_0x4a9955;}}:null;}function rectangularSelection(_0x3c7a96){return EditorView['mouseSelectionStyle']['of']((_0x3d14ef,_0x58e709)=>{return(_0x3fe2cb=_0x58e709)['altKey']&&0x0==_0x3fe2cb['button']?rectangleSelectionStyle(_0x3d14ef,_0x58e709):null;var _0x3fe2cb;});}const keys={'Alt':[0x12,_0x441c69=>!!_0x441c69['altKey']],'Control':[0x11,_0x11ae10=>!!_0x11ae10['ctrlKey']],'Shift':[0x10,_0x43be3a=>!!_0x43be3a['shiftKey']],'Meta':[0x5b,_0x2930b9=>!!_0x2930b9['metaKey']]},showCrosshair={'style':'cursor:\x20crosshair'};function crosshairCursor(_0x185805={}){let [_0x56fe70,_0x28eda]=keys[_0x185805['key']||'Alt'],_0x8eb8f5=ViewPlugin['fromClass'](class{constructor(_0x587842){this['view']=_0x587842,this['isDown']=!0x1;}['set'](_0x53acad){this['isDown']!=_0x53acad&&(this['isDown']=_0x53acad,this['view']['update']([]));}},{'eventObservers':{'keydown'(_0x16b5d5){this['set'](_0x16b5d5['keyCode']==_0x56fe70||_0x28eda(_0x16b5d5));},'keyup'(_0x15b81a){_0x15b81a['keyCode']!=_0x56fe70&&_0x28eda(_0x15b81a)||this['set'](!0x1);},'mousemove'(_0x515a3b){this['set'](_0x28eda(_0x515a3b));}}});return[_0x8eb8f5,EditorView['contentAttributes']['of'](_0x519305=>{var _0x273521;return(null===(_0x273521=_0x519305['plugin'](_0x8eb8f5))||void 0x0===_0x273521?void 0x0:_0x273521['isDown'])?showCrosshair:null;})];}const Outside='-10000px';class TooltipViewManager{constructor(_0x35eb6b,_0x46f4c2,_0x46f1e0,_0x39ce4e){this['facet']=_0x46f4c2,this['createTooltipView']=_0x46f1e0,this['removeTooltipView']=_0x39ce4e,this['input']=_0x35eb6b['state']['facet'](_0x46f4c2),this['tooltips']=this['input']['filter'](t=>t);let _0x36bfa3=null;this['tooltipViews']=this['tooltips']['map'](t=>_0x36bfa3=_0x46f1e0(t,_0x36bfa3));}['update'](_0x94972a,_0x65b05f){var _0x305d44;let _0x41920e=_0x94972a['state']['facet'](this['facet']),_0x315af3=_0x41920e['filter'](_0x2a1f78=>_0x2a1f78);if(_0x41920e===this['input']){for(let t of this['tooltipViews'])t['update']&&t['update'](_0x94972a);return!0x1;}let _0x4902ae=[],_0x45e58d=_0x65b05f?[]:null;for(let _0x15519e=0x0;_0x15519e<_0x315af3['length'];_0x15519e++){let _0x42da1a=_0x315af3[_0x15519e],_0x4e18e0=-0x1;if(_0x42da1a){for(let _0x5d13da=0x0;_0x5d13da<this['tooltips']['length'];_0x5d13da++){let _0x2e25f5=this['tooltips'][_0x5d13da];_0x2e25f5&&_0x2e25f5['create']==_0x42da1a['create']&&(_0x4e18e0=_0x5d13da);}if(_0x4e18e0<0x0)_0x4902ae[_0x15519e]=this['createTooltipView'](_0x42da1a,_0x15519e?_0x4902ae[_0x15519e-0x1]:null),_0x45e58d&&(_0x45e58d[_0x15519e]=!!_0x42da1a['above']);else{let _0x1e82f6=_0x4902ae[_0x15519e]=this['tooltipViews'][_0x4e18e0];_0x45e58d&&(_0x45e58d[_0x15519e]=_0x65b05f[_0x4e18e0]),_0x1e82f6['update']&&_0x1e82f6['update'](_0x94972a);}}}for(let t of this['tooltipViews'])_0x4902ae['indexOf'](t)<0x0&&(this['removeTooltipView'](t),null===(_0x305d44=t['destroy'])||void 0x0===_0x305d44||_0x305d44['call'](t));return _0x65b05f&&(_0x45e58d['forEach']((_0x329d87,_0x54386b)=>_0x65b05f[_0x54386b]=_0x329d87),_0x65b05f['length']=_0x45e58d['length']),this['input']=_0x41920e,this['tooltips']=_0x315af3,this['tooltipViews']=_0x4902ae,!0x0;}}function windowSpace(_0x1d5ae5){let _0x2bda91=_0x1d5ae5['dom']['ownerDocument']['documentElement'];return{'top':0x0,'left':0x0,'bottom':_0x2bda91['clientHeight'],'right':_0x2bda91['clientWidth']};}const tooltipConfig=Facet['define']({'combine':_0x5efcf6=>{var _0x182408,_0x2c851a,_0x5d34b4;return{'position':browser['ios']?'absolute':(null===(_0x182408=_0x5efcf6['find'](_0x188c5b=>_0x188c5b['position']))||void 0x0===_0x182408?void 0x0:_0x182408['position'])||'fixed','parent':(null===(_0x2c851a=_0x5efcf6['find'](_0x1908b1=>_0x1908b1['parent']))||void 0x0===_0x2c851a?void 0x0:_0x2c851a['parent'])||null,'tooltipSpace':(null===(_0x5d34b4=_0x5efcf6['find'](_0x346a94=>_0x346a94['tooltipSpace']))||void 0x0===_0x5d34b4?void 0x0:_0x5d34b4['tooltipSpace'])||windowSpace};}}),knownHeight=new WeakMap(),tooltipPlugin=ViewPlugin['fromClass'](class{constructor(_0x3407e9){this['view']=_0x3407e9,this['above']=[],this['inView']=!0x0,this['madeAbsolute']=!0x1,this['lastTransaction']=0x0,this['measureTimeout']=-0x1;let _0x4ad607=_0x3407e9['state']['facet'](tooltipConfig);this['position']=_0x4ad607['position'],this['parent']=_0x4ad607['parent'],this['classes']=_0x3407e9['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(_0x3407e9,showTooltip,(t,_0x15e809)=>this['createTooltip'](t,_0x15e809),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(_0x3d537d=>{Date['now']()>this['lastTransaction']-0x32&&_0x3d537d['length']>0x0&&_0x3d537d[_0x3d537d['length']-0x1]['intersectionRatio']<0x1&&this['measureSoon']();},{'threshold':[0x1]}):null,this['observeIntersection'](),_0x3407e9['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 _0x142ad8 of this['manager']['tooltipViews'])this['intersectionObserver']['observe'](_0x142ad8['dom']);}}['measureSoon'](){this['measureTimeout']<0x0&&(this['measureTimeout']=setTimeout(()=>{this['measureTimeout']=-0x1,this['maybeMeasure']();},0x32));}['update'](_0x11e31a){_0x11e31a['transactions']['length']&&(this['lastTransaction']=Date['now']());let _0x2a1f5d=this['manager']['update'](_0x11e31a,this['above']);_0x2a1f5d&&this['observeIntersection']();let _0x2218ea=_0x2a1f5d||_0x11e31a['geometryChanged'],_0xc9851e=_0x11e31a['state']['facet'](tooltipConfig);if(_0xc9851e['position']!=this['position']&&!this['madeAbsolute']){this['position']=_0xc9851e['position'];for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']=this['position'];_0x2218ea=!0x0;}if(_0xc9851e['parent']!=this['parent']){this['parent']&&this['container']['remove'](),this['parent']=_0xc9851e['parent'],this['createContainer']();for(let t of this['manager']['tooltipViews'])this['container']['appendChild'](t['dom']);_0x2218ea=!0x0;}else this['parent']&&this['view']['themeClasses']!=this['classes']&&(this['classes']=this['container']['className']=this['view']['themeClasses']);_0x2218ea&&this['maybeMeasure']();}['createTooltip'](_0x20bb69,_0x169f93){let _0x451b7a=_0x20bb69['create'](this['view']),_0x3c9c3c=_0x169f93?_0x169f93['dom']:null;if(_0x451b7a['dom']['classList']['add']('cm-tooltip'),_0x20bb69['arrow']&&!_0x451b7a['dom']['querySelector']('.cm-tooltip\x20>\x20.cm-tooltip-arrow')){let _0x579939=document['createElement']('div');_0x579939['className']='cm-tooltip-arrow',_0x451b7a['dom']['appendChild'](_0x579939);}return _0x451b7a['dom']['style']['position']=this['position'],_0x451b7a['dom']['style']['top']=Outside,_0x451b7a['dom']['style']['left']='0px',this['container']['insertBefore'](_0x451b7a['dom'],_0x3c9c3c),_0x451b7a['mount']&&_0x451b7a['mount'](this['view']),this['resizeObserver']&&this['resizeObserver']['observe'](_0x451b7a['dom']),_0x451b7a;}['destroy'](){var _0x2af542,_0x48154f,_0x378b03;this['view']['win']['removeEventListener']('resize',this['measureSoon']);for(let _0x3842bf of this['manager']['tooltipViews'])_0x3842bf['dom']['remove'](),null===(_0x2af542=_0x3842bf['destroy'])||void 0x0===_0x2af542||_0x2af542['call'](_0x3842bf);this['parent']&&this['container']['remove'](),null===(_0x48154f=this['resizeObserver'])||void 0x0===_0x48154f||_0x48154f['disconnect'](),null===(_0x378b03=this['intersectionObserver'])||void 0x0===_0x378b03||_0x378b03['disconnect'](),clearTimeout(this['measureTimeout']);}['readMeasure'](){let _0x57c0ac=0x1,_0x49c154=0x1,_0x405d74=!0x1;if('fixed'==this['position']&&this['manager']['tooltipViews']['length']){let {dom:_0x5d3f03}=this['manager']['tooltipViews'][0x0];if(browser['gecko'])_0x405d74=_0x5d3f03['offsetParent']!=this['container']['ownerDocument']['body'];else{if(_0x5d3f03['style']['top']==Outside&&'0px'==_0x5d3f03['style']['left']){let _0x9ef174=_0x5d3f03['getBoundingClientRect']();_0x405d74=Math['abs'](_0x9ef174['top']+0x2710)>0x1||Math['abs'](_0x9ef174['left'])>0x1;}}}if(_0x405d74||'absolute'==this['position']){if(this['parent']){let _0x4e2408=this['parent']['getBoundingClientRect']();_0x4e2408['width']&&_0x4e2408['height']&&(_0x57c0ac=_0x4e2408['width']/this['parent']['offsetWidth'],_0x49c154=_0x4e2408['height']/this['parent']['offsetHeight']);}else({scaleX:_0x57c0ac,scaleY:_0x49c154}=this['view']['viewState']);}let _0x906ca3=this['view']['scrollDOM']['getBoundingClientRect'](),_0x4bba88=getScrollMargins(this['view']);return{'visible':{'left':_0x906ca3['left']+_0x4bba88['left'],'top':_0x906ca3['top']+_0x4bba88['top'],'right':_0x906ca3['right']-_0x4bba88['right'],'bottom':_0x906ca3['bottom']-_0x4bba88['bottom']},'parent':this['parent']?this['container']['getBoundingClientRect']():this['view']['dom']['getBoundingClientRect'](),'pos':this['manager']['tooltips']['map']((t,_0x31eafa)=>{let _0x5676c9=this['manager']['tooltipViews'][_0x31eafa];return _0x5676c9['getCoords']?_0x5676c9['getCoords'](t['pos']):this['view']['coordsAtPos'](t['pos']);}),'size':this['manager']['tooltipViews']['map'](({dom:_0x2eb96d})=>_0x2eb96d['getBoundingClientRect']()),'space':this['view']['state']['facet'](tooltipConfig)['tooltipSpace'](this['view']),'scaleX':_0x57c0ac,'scaleY':_0x49c154,'makeAbsolute':_0x405d74};}['writeMeasure'](_0x1f9ada){var _0x6570d5;if(_0x1f9ada['makeAbsolute']){this['madeAbsolute']=!0x0,this['position']='absolute';for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']='absolute';}let {visible:_0x5d3aca,space:_0x2facba,scaleX:_0x42fc20,scaleY:_0x138dc}=_0x1f9ada,_0x2be7c7=[];for(let _0x5923ca=0x0;_0x5923ca<this['manager']['tooltips']['length'];_0x5923ca++){let _0x4cdbd1=this['manager']['tooltips'][_0x5923ca],_0x1f2f8b=this['manager']['tooltipViews'][_0x5923ca],{dom:_0x205961}=_0x1f2f8b,_0xe282f=_0x1f9ada['pos'][_0x5923ca],_0x4e809f=_0x1f9ada['size'][_0x5923ca];if(!_0xe282f||!0x1!==_0x4cdbd1['clip']&&(_0xe282f['bottom']<=Math['max'](_0x5d3aca['top'],_0x2facba['top'])||_0xe282f['top']>=Math['min'](_0x5d3aca['bottom'],_0x2facba['bottom'])||_0xe282f['right']<Math['max'](_0x5d3aca['left'],_0x2facba['left'])-0.1||_0xe282f['left']>Math['min'](_0x5d3aca['right'],_0x2facba['right'])+0.1)){_0x205961['style']['top']=Outside;continue;}let _0x4b9fcb=_0x4cdbd1['arrow']?_0x1f2f8b['dom']['querySelector']('.cm-tooltip-arrow'):null,_0x35210a=_0x4b9fcb?0x7:0x0,_0x4f8fb1=_0x4e809f['right']-_0x4e809f['left'],_0x4b2882=null!==(_0x6570d5=knownHeight['get'](_0x1f2f8b))&&void 0x0!==_0x6570d5?_0x6570d5:_0x4e809f['bottom']-_0x4e809f['top'],_0x172e16=_0x1f2f8b['offset']||noOffset,_0x2a06b9=this['view']['textDirection']==Direction['LTR'],_0x32649a=_0x4e809f['width']>_0x2facba['right']-_0x2facba['left']?_0x2a06b9?_0x2facba['left']:_0x2facba['right']-_0x4e809f['width']:_0x2a06b9?Math['max'](_0x2facba['left'],Math['min'](_0xe282f['left']-(_0x4b9fcb?0xe:0x0)+_0x172e16['x'],_0x2facba['right']-_0x4f8fb1)):Math['min'](Math['max'](_0x2facba['left'],_0xe282f['left']-_0x4f8fb1+(_0x4b9fcb?0xe:0x0)-_0x172e16['x']),_0x2facba['right']-_0x4f8fb1),_0x3767de=this['above'][_0x5923ca];!_0x4cdbd1['strictSide']&&(_0x3767de?_0xe282f['top']-_0x4b2882-_0x35210a-_0x172e16['y']<_0x2facba['top']:_0xe282f['bottom']+_0x4b2882+_0x35210a+_0x172e16['y']>_0x2facba['bottom'])&&_0x3767de==_0x2facba['bottom']-_0xe282f['bottom']>_0xe282f['top']-_0x2facba['top']&&(_0x3767de=this['above'][_0x5923ca]=!_0x3767de);let _0x1e8fd6=(_0x3767de?_0xe282f['top']-_0x2facba['top']:_0x2facba['bottom']-_0xe282f['bottom'])-_0x35210a;if(_0x1e8fd6<_0x4b2882&&!0x1!==_0x1f2f8b['resize']){if(_0x1e8fd6<this['view']['defaultLineHeight']){_0x205961['style']['top']=Outside;continue;}knownHeight['set'](_0x1f2f8b,_0x4b2882),_0x205961['style']['height']=(_0x4b2882=_0x1e8fd6)/_0x138dc+'px';}else _0x205961['style']['height']&&(_0x205961['style']['height']='');let _0x2aa91d=_0x3767de?_0xe282f['top']-_0x4b2882-_0x35210a-_0x172e16['y']:_0xe282f['bottom']+_0x35210a+_0x172e16['y'],_0xd74a74=_0x32649a+_0x4f8fb1;if(!0x0!==_0x1f2f8b['overlap']){for(let _0x53c46c of _0x2be7c7)_0x53c46c['left']<_0xd74a74&&_0x53c46c['right']>_0x32649a&&_0x53c46c['top']<_0x2aa91d+_0x4b2882&&_0x53c46c['bottom']>_0x2aa91d&&(_0x2aa91d=_0x3767de?_0x53c46c['top']-_0x4b2882-0x2-_0x35210a:_0x53c46c['bottom']+_0x35210a+0x2);}if('absolute'==this['position']?(_0x205961['style']['top']=(_0x2aa91d-_0x1f9ada['parent']['top'])/_0x138dc+'px',setLeftStyle(_0x205961,(_0x32649a-_0x1f9ada['parent']['left'])/_0x42fc20)):(_0x205961['style']['top']=_0x2aa91d/_0x138dc+'px',setLeftStyle(_0x205961,_0x32649a/_0x42fc20)),_0x4b9fcb){let _0x5b9f69=_0xe282f['left']+(_0x2a06b9?_0x172e16['x']:-_0x172e16['x'])-(_0x32649a+0xe-0x7);_0x4b9fcb['style']['left']=_0x5b9f69/_0x42fc20+'px';}!0x0!==_0x1f2f8b['overlap']&&_0x2be7c7['push']({'left':_0x32649a,'top':_0x2aa91d,'right':_0xd74a74,'bottom':_0x2aa91d+_0x4b2882}),_0x205961['classList']['toggle']('cm-tooltip-above',_0x3767de),_0x205961['classList']['toggle']('cm-tooltip-below',!_0x3767de),_0x1f2f8b['positioned']&&_0x1f2f8b['positioned'](_0x1f9ada['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 _0x5b362a of this['manager']['tooltipViews'])_0x5b362a['dom']['style']['top']=Outside;}}},{'eventObservers':{'scroll'(){this['maybeMeasure']();}}});function setLeftStyle(_0x889c14,_0x2fc6d3){let _0x170e44=parseInt(_0x889c14['style']['left'],0xa);(isNaN(_0x170e44)||Math['abs'](_0x2fc6d3-_0x170e44)>0x1)&&(_0x889c14['style']['left']=_0x2fc6d3+'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(_0x3de1bc,_0x4ce681){let _0x536cfa=_0x3de1bc['plugin'](tooltipPlugin);if(!_0x536cfa)return null;let _0xbac097=_0x536cfa['manager']['tooltips']['indexOf'](_0x4ce681);return _0xbac097<0x0?null:_0x536cfa['manager']['tooltipViews'][_0xbac097];}class GutterMarker extends RangeValue{['compare'](_0x4eea14){return this==_0x4eea14||this['constructor']==_0x4eea14['constructor']&&this['eq'](_0x4eea14);}['eq'](_0x357da2){return!0x1;}['destroy'](_0x4bab18){}}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(_0x133b87){return[gutters(),activeGutters['of']({...defaults$1,..._0x133b87})];}const unfixGutters=Facet['define']({'combine':_0x31dfdd=>_0x31dfdd['some'](_0x1f609f=>_0x1f609f)});function gutters(_0x15ea23){return[gutterView];}const gutterView=ViewPlugin['fromClass'](class{constructor(_0x4f7a12){this['view']=_0x4f7a12,this['domAfter']=null,this['prevViewport']=_0x4f7a12['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']=_0x4f7a12['state']['facet'](activeGutters)['map'](_0x3027b5=>new SingleGutterView(_0x4f7a12,_0x3027b5)),this['fixed']=!_0x4f7a12['state']['facet'](unfixGutters);for(let _0x2e35c7 of this['gutters'])'after'==_0x2e35c7['config']['side']?this['getDOMAfter']()['appendChild'](_0x2e35c7['dom']):this['dom']['appendChild'](_0x2e35c7['dom']);this['fixed']&&(this['dom']['style']['position']='sticky'),this['syncGutters'](!0x1),_0x4f7a12['scrollDOM']['insertBefore'](this['dom'],_0x4f7a12['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'](_0x393292){if(this['updateGutters'](_0x393292)){let _0x53fddb=this['prevViewport'],_0x1c567b=_0x393292['view']['viewport'],_0x5293a7=Math['min'](_0x53fddb['to'],_0x1c567b['to'])-Math['max'](_0x53fddb['from'],_0x1c567b['from']);this['syncGutters'](_0x5293a7<0.8*(_0x1c567b['to']-_0x1c567b['from']));}if(_0x393292['geometryChanged']){let _0x1c2e10=this['view']['contentHeight']/this['view']['scaleY']+'px';this['dom']['style']['minHeight']=_0x1c2e10,this['domAfter']&&(this['domAfter']['style']['minHeight']=_0x1c2e10);}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']=_0x393292['view']['viewport'];}['syncGutters'](_0x30179e){let _0x235174=this['dom']['nextSibling'];_0x30179e&&(this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']());let _0x536893=RangeSet['iter'](this['view']['state']['facet'](gutterLineClass),this['view']['viewport']['from']),_0x478592=[],_0x26fdbc=this['gutters']['map'](_0xe2411c=>new UpdateContext(_0xe2411c,this['view']['viewport'],-this['view']['documentPadding']['top']));for(let _0x48a48c of this['view']['viewportLineBlocks'])if(_0x478592['length']&&(_0x478592=[]),Array['isArray'](_0x48a48c['type'])){let _0x37d200=!0x0;for(let _0x3cab11 of _0x48a48c['type'])if(_0x3cab11['type']==BlockType['Text']&&_0x37d200){advanceCursor(_0x536893,_0x478592,_0x3cab11['from']);for(let _0x4c9c2f of _0x26fdbc)_0x4c9c2f['line'](this['view'],_0x3cab11,_0x478592);_0x37d200=!0x1;}else{if(_0x3cab11['widget']){for(let _0x1b3e7c of _0x26fdbc)_0x1b3e7c['widget'](this['view'],_0x3cab11);}}}else{if(_0x48a48c['type']==BlockType['Text']){advanceCursor(_0x536893,_0x478592,_0x48a48c['from']);for(let _0x36fe64 of _0x26fdbc)_0x36fe64['line'](this['view'],_0x48a48c,_0x478592);}else{if(_0x48a48c['widget']){for(let _0x2dd38e of _0x26fdbc)_0x2dd38e['widget'](this['view'],_0x48a48c);}}}for(let _0x243180 of _0x26fdbc)_0x243180['finish']();_0x30179e&&(this['view']['scrollDOM']['insertBefore'](this['dom'],_0x235174),this['domAfter']&&this['view']['scrollDOM']['appendChild'](this['domAfter']));}['updateGutters'](_0x24861d){let _0x2a8cc1=_0x24861d['startState']['facet'](activeGutters),_0x2a841c=_0x24861d['state']['facet'](activeGutters),_0x128e32=_0x24861d['docChanged']||_0x24861d['heightChanged']||_0x24861d['viewportChanged']||!RangeSet['eq'](_0x24861d['startState']['facet'](gutterLineClass),_0x24861d['state']['facet'](gutterLineClass),_0x24861d['view']['viewport']['from'],_0x24861d['view']['viewport']['to']);if(_0x2a8cc1==_0x2a841c){for(let _0x51f329 of this['gutters'])_0x51f329['update'](_0x24861d)&&(_0x128e32=!0x0);}else{_0x128e32=!0x0;let _0x2cdd53=[];for(let _0x45dea7 of _0x2a841c){let _0x174d54=_0x2a8cc1['indexOf'](_0x45dea7);_0x174d54<0x0?_0x2cdd53['push'](new SingleGutterView(this['view'],_0x45dea7)):(this['gutters'][_0x174d54]['update'](_0x24861d),_0x2cdd53['push'](this['gutters'][_0x174d54]));}for(let _0x34fb7a of this['gutters'])_0x34fb7a['dom']['remove'](),_0x2cdd53['indexOf'](_0x34fb7a)<0x0&&_0x34fb7a['destroy']();for(let _0x458e19 of _0x2cdd53)'after'==_0x458e19['config']['side']?this['getDOMAfter']()['appendChild'](_0x458e19['dom']):this['dom']['appendChild'](_0x458e19['dom']);this['gutters']=_0x2cdd53;}return _0x128e32;}['destroy'](){for(let _0x4ff6b5 of this['gutters'])_0x4ff6b5['destroy']();this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']();}},{'provide':_0x598627=>EditorView['scrollMargins']['of'](_0xb66384=>{let _0x350620=_0xb66384['plugin'](_0x598627);if(!_0x350620||0x0==_0x350620['gutters']['length']||!_0x350620['fixed'])return null;let _0x4ac810=_0x350620['dom']['offsetWidth']*_0xb66384['scaleX'],_0x3f946e=_0x350620['domAfter']?_0x350620['domAfter']['offsetWidth']*_0xb66384['scaleX']:0x0;return _0xb66384['textDirection']==Direction['LTR']?{'left':_0x4ac810,'right':_0x3f946e}:{'right':_0x4ac810,'left':_0x3f946e};})});function asArray$1(_0xcba8e9){return Array['isArray'](_0xcba8e9)?_0xcba8e9:[_0xcba8e9];}function advanceCursor(_0x2f15a7,_0x44afdb,_0x3c90cd){for(;_0x2f15a7['value']&&_0x2f15a7['from']<=_0x3c90cd;)_0x2f15a7['from']==_0x3c90cd&&_0x44afdb['push'](_0x2f15a7['value']),_0x2f15a7['next']();}class UpdateContext{constructor(_0x45981f,_0x4f6ff7,_0x55020b){this['gutter']=_0x45981f,this['height']=_0x55020b,this['i']=0x0,this['cursor']=RangeSet['iter'](_0x45981f['markers'],_0x4f6ff7['from']);}['addElement'](_0x1ad85a,_0x2e52d8,_0x45a783){let {gutter:_0x16ab22}=this,_0x954228=(_0x2e52d8['top']-this['height'])/_0x1ad85a['scaleY'],_0x580916=_0x2e52d8['height']/_0x1ad85a['scaleY'];if(this['i']==_0x16ab22['elements']['length']){let _0x17944c=new GutterElement(_0x1ad85a,_0x580916,_0x954228,_0x45a783);_0x16ab22['elements']['push'](_0x17944c),_0x16ab22['dom']['appendChild'](_0x17944c['dom']);}else _0x16ab22['elements'][this['i']]['update'](_0x1ad85a,_0x580916,_0x954228,_0x45a783);this['height']=_0x2e52d8['bottom'],this['i']++;}['line'](_0x4da776,_0x476298,_0xd75d58){let _0x29e9b9=[];advanceCursor(this['cursor'],_0x29e9b9,_0x476298['from']),_0xd75d58['length']&&(_0x29e9b9=_0x29e9b9['concat'](_0xd75d58));let _0x55612f=this['gutter']['config']['lineMarker'](_0x4da776,_0x476298,_0x29e9b9);_0x55612f&&_0x29e9b9['unshift'](_0x55612f);let _0x58fcb1=this['gutter'];(0x0!=_0x29e9b9['length']||_0x58fcb1['config']['renderEmptyElements'])&&this['addElement'](_0x4da776,_0x476298,_0x29e9b9);}['widget'](_0x427d34,_0x3ec043){let _0x571574=this['gutter']['config']['widgetMarker'](_0x427d34,_0x3ec043['widget'],_0x3ec043),_0x48043d=_0x571574?[_0x571574]:null;for(let _0x54a1b0 of _0x427d34['state']['facet'](gutterWidgetClass)){let _0x2690bc=_0x54a1b0(_0x427d34,_0x3ec043['widget'],_0x3ec043);_0x2690bc&&(_0x48043d||(_0x48043d=[]))['push'](_0x2690bc);}_0x48043d&&this['addElement'](_0x427d34,_0x3ec043,_0x48043d);}['finish'](){let _0x3fe007=this['gutter'];for(;_0x3fe007['elements']['length']>this['i'];){let _0xa24fb7=_0x3fe007['elements']['pop']();_0x3fe007['dom']['removeChild'](_0xa24fb7['dom']),_0xa24fb7['destroy']();}}}class SingleGutterView{constructor(_0x256345,_0x1699f4){this['view']=_0x256345,this['config']=_0x1699f4,this['elements']=[],this['spacer']=null,this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutter'+(this['config']['class']?'\x20'+this['config']['class']:'');for(let _0x2483d0 in _0x1699f4['domEventHandlers'])this['dom']['addEventListener'](_0x2483d0,_0x57d13b=>{let _0x30e9b8,_0x3bd2cd=_0x57d13b['target'];if(_0x3bd2cd!=this['dom']&&this['dom']['contains'](_0x3bd2cd)){for(;_0x3bd2cd['parentNode']!=this['dom'];)_0x3bd2cd=_0x3bd2cd['parentNode'];let _0x50d16c=_0x3bd2cd['getBoundingClientRect']();_0x30e9b8=(_0x50d16c['top']+_0x50d16c['bottom'])/0x2;}else _0x30e9b8=_0x57d13b['clientY'];let _0x39a557=_0x256345['lineBlockAtHeight'](_0x30e9b8-_0x256345['documentTop']);_0x1699f4['domEventHandlers'][_0x2483d0](_0x256345,_0x39a557,_0x57d13b)&&_0x57d13b['preventDefault']();});this['markers']=asArray$1(_0x1699f4['markers'](_0x256345)),_0x1699f4['initialSpacer']&&(this['spacer']=new GutterElement(_0x256345,0x0,0x0,[_0x1699f4['initialSpacer'](_0x256345)]),this['dom']['appendChild'](this['spacer']['dom']),this['spacer']['dom']['style']['cssText']+='visibility:\x20hidden;\x20pointer-events:\x20none');}['update'](_0x5843e0){let _0x29f2f8=this['markers'];if(this['markers']=asArray$1(this['config']['markers'](_0x5843e0['view'])),this['spacer']&&this['config']['updateSpacer']){let _0x440c94=this['config']['updateSpacer'](this['spacer']['markers'][0x0],_0x5843e0);_0x440c94!=this['spacer']['markers'][0x0]&&this['spacer']['update'](_0x5843e0['view'],0x0,0x0,[_0x440c94]);}let _0x5ab36b=_0x5843e0['view']['viewport'];return!RangeSet['eq'](this['markers'],_0x29f2f8,_0x5ab36b['from'],_0x5ab36b['to'])||!!this['config']['lineMarkerChange']&&this['config']['lineMarkerChange'](_0x5843e0);}['destroy'](){for(let _0x16499a of this['elements'])_0x16499a['destroy']();}}class GutterElement{constructor(_0xa78672,_0x544dd8,_0x2d5b97,_0x40c2fa){this['height']=-0x1,this['above']=0x0,this['markers']=[],this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutterElement',this['update'](_0xa78672,_0x544dd8,_0x2d5b97,_0x40c2fa);}['update'](_0x3bcc17,_0x3c8f15,_0x2a5c6f,_0x49057b){this['height']!=_0x3c8f15&&(this['height']=_0x3c8f15,this['dom']['style']['height']=_0x3c8f15+'px'),this['above']!=_0x2a5c6f&&(this['dom']['style']['marginTop']=(this['above']=_0x2a5c6f)?_0x2a5c6f+'px':''),sameMarkers(this['markers'],_0x49057b)||this['setMarkers'](_0x3bcc17,_0x49057b);}['setMarkers'](_0x1b4390,_0x96403a){let _0x1e622f='cm-gutterElement',_0x29578e=this['dom']['firstChild'];for(let _0xb6ca3d=0x0,_0x357e3a=0x0;;){let _0x230c1e=_0x357e3a,_0x2afb79=_0xb6ca3d<_0x96403a['length']?_0x96403a[_0xb6ca3d++]:null,_0x60c3c6=!0x1;if(_0x2afb79){let _0x3813ef=_0x2afb79['elementClass'];_0x3813ef&&(_0x1e622f+='\x20'+_0x3813ef);for(let _0x448a02=_0x357e3a;_0x448a02<this['markers']['length'];_0x448a02++)if(this['markers'][_0x448a02]['compare'](_0x2afb79)){_0x230c1e=_0x448a02,_0x60c3c6=!0x0;break;}}else _0x230c1e=this['markers']['length'];for(;_0x357e3a<_0x230c1e;){let _0x264147=this['markers'][_0x357e3a++];if(_0x264147['toDOM']){_0x264147['destroy'](_0x29578e);let _0x10230b=_0x29578e['nextSibling'];_0x29578e['remove'](),_0x29578e=_0x10230b;}}if(!_0x2afb79)break;_0x2afb79['toDOM']&&(_0x60c3c6?_0x29578e=_0x29578e['nextSibling']:this['dom']['insertBefore'](_0x2afb79['toDOM'](_0x1b4390),_0x29578e)),_0x60c3c6&&_0x357e3a++;}this['dom']['className']=_0x1e622f,this['markers']=_0x96403a;}['destroy'](){this['setMarkers'](null,[]);}}function sameMarkers(_0x5484a7,_0x2ab20b){if(_0x5484a7['length']!=_0x2ab20b['length'])return!0x1;for(let _0x53a2f8=0x0;_0x53a2f8<_0x5484a7['length'];_0x53a2f8++)if(!_0x5484a7[_0x53a2f8]['compare'](_0x2ab20b[_0x53a2f8]))return!0x1;return!0x0;}const lineNumberMarkers=Facet['define'](),lineNumberWidgetMarker=Facet['define'](),lineNumberConfig=Facet['define']({'combine':_0x49a46a=>combineConfig(_0x49a46a,{'formatNumber':String,'domEventHandlers':{}},{'domEventHandlers'(_0x252b7f,_0x319fb2){let _0x164f60=Object['assign']({},_0x252b7f);for(let _0x44d2c5 in _0x319fb2){let _0x1dc042=_0x164f60[_0x44d2c5],_0x4e5d0a=_0x319fb2[_0x44d2c5];_0x164f60[_0x44d2c5]=_0x1dc042?(_0x2d6244,_0x296a4e,_0x38c83d)=>_0x1dc042(_0x2d6244,_0x296a4e,_0x38c83d)||_0x4e5d0a(_0x2d6244,_0x296a4e,_0x38c83d):_0x4e5d0a;}return _0x164f60;}})});class NumberMarker extends GutterMarker{constructor(_0x438271){super(),this['number']=_0x438271;}['eq'](_0x25e9f1){return this['number']==_0x25e9f1['number'];}['toDOM'](){return document['createTextNode'](this['number']);}}function formatNumber(_0x5df56c,_0x3c9c9e){return _0x5df56c['state']['facet'](lineNumberConfig)['formatNumber'](_0x3c9c9e,_0x5df56c['state']);}const lineNumberGutter=activeGutters['compute']([lineNumberConfig],_0x181b68=>({'class':'cm-lineNumbers','renderEmptyElements':!0x1,'markers':_0x4639eb=>_0x4639eb['state']['facet'](lineNumberMarkers),'lineMarker':(_0x5cde2e,_0xe18ca6,_0x37dd0f)=>_0x37dd0f['some'](_0x398c94=>_0x398c94['toDOM'])?null:new NumberMarker(formatNumber(_0x5cde2e,_0x5cde2e['state']['doc']['lineAt'](_0xe18ca6['from'])['number'])),'widgetMarker':(_0x933281,_0x5c72a1,_0x29222c)=>{for(let _0x4c08b6 of _0x933281['state']['facet'](lineNumberWidgetMarker)){let _0x3d7ab3=_0x4c08b6(_0x933281,_0x5c72a1,_0x29222c);if(_0x3d7ab3)return _0x3d7ab3;}return null;},'lineMarkerChange':_0x2caf15=>_0x2caf15['startState']['facet'](lineNumberConfig)!=_0x2caf15['state']['facet'](lineNumberConfig),'initialSpacer':_0x34dd16=>new NumberMarker(formatNumber(_0x34dd16,maxLineNumber(_0x34dd16['state']['doc']['lines']))),'updateSpacer'(_0x528c5a,_0x435ed5){let _0x39ea20=formatNumber(_0x435ed5['view'],maxLineNumber(_0x435ed5['view']['state']['doc']['lines']));return _0x39ea20==_0x528c5a['number']?_0x528c5a:new NumberMarker(_0x39ea20);},'domEventHandlers':_0x181b68['facet'](lineNumberConfig)['domEventHandlers'],'side':'before'}));function lineNumbers(_0x38992d={}){return[lineNumberConfig['of'](_0x38992d),gutters(),lineNumberGutter];}function maxLineNumber(_0x570d42){let _0x7f9f21=0x9;for(;_0x7f9f21<_0x570d42;)_0x7f9f21=0xa*_0x7f9f21+0x9;return _0x7f9f21;}const activeLineGutterMarker=new class extends GutterMarker{constructor(){super(...arguments),this['elementClass']='cm-activeLineGutter';}}(),activeLineGutterHighlighter=gutterLineClass['compute'](['selection'],_0x17573c=>{let _0x3c3400=[],_0x524275=-0x1;for(let _0x22ccbf of _0x17573c['selection']['ranges']){let _0x50b237=_0x17573c['doc']['lineAt'](_0x22ccbf['head'])['from'];_0x50b237>_0x524275&&(_0x524275=_0x50b237,_0x3c3400['push'](activeLineGutterMarker['range'](_0x50b237)));}return RangeSet['of'](_0x3c3400);});function highlightActiveLineGutter(){return activeLineGutterHighlighter;}const DefaultBufferLength=0x400;let nextPropID=0x0;class Range{constructor(_0x26826d,_0x50534f){this['from']=_0x26826d,this['to']=_0x50534f;}}class NodeProp{constructor(_0x2177a0={}){this['id']=nextPropID++,this['perNode']=!!_0x2177a0['perNode'],this['deserialize']=_0x2177a0['deserialize']||(()=>{throw new Error('This\x20node\x20type\x20doesn\x27t\x20define\x20a\x20deserialize\x20function');}),this['combine']=_0x2177a0['combine']||null;}['add'](_0x2f6881){if(this['perNode'])throw new RangeError('Can\x27t\x20add\x20per-node\x20props\x20to\x20node\x20types');return'function'!=typeof _0x2f6881&&(_0x2f6881=NodeType['match'](_0x2f6881)),_0x1ebd94=>{let _0x158b08=_0x2f6881(_0x1ebd94);return void 0x0===_0x158b08?null:[this,_0x158b08];};}}NodeProp['closedBy']=new NodeProp({'deserialize':_0x4d2507=>_0x4d2507['split']('\x20')}),NodeProp['openedBy']=new NodeProp({'deserialize':_0x6b038d=>_0x6b038d['split']('\x20')}),NodeProp['group']=new NodeProp({'deserialize':_0x502908=>_0x502908['split']('\x20')}),NodeProp['isolate']=new NodeProp({'deserialize':_0x1ce6e6=>{if(_0x1ce6e6&&'rtl'!=_0x1ce6e6&&'ltr'!=_0x1ce6e6&&'auto'!=_0x1ce6e6)throw new RangeError('Invalid\x20value\x20for\x20isolate:\x20'+_0x1ce6e6);return _0x1ce6e6||'auto';}}),NodeProp['contextHash']=new NodeProp({'perNode':!0x0}),NodeProp['lookAhead']=new NodeProp({'perNode':!0x0}),NodeProp['mounted']=new NodeProp({'perNode':!0x0});class MountedTree{constructor(_0x345069,_0x58234a,_0x135e75){this['tree']=_0x345069,this['overlay']=_0x58234a,this['parser']=_0x135e75;}static['get'](_0x36a585){return _0x36a585&&_0x36a585['props']&&_0x36a585['props'][NodeProp['mounted']['id']];}}const noProps=Object['create'](null);class NodeType{constructor(_0x394d8c,_0x34ef9b,_0x4445d4,_0x16261d=0x0){this['name']=_0x394d8c,this['props']=_0x34ef9b,this['id']=_0x4445d4,this['flags']=_0x16261d;}static['define'](_0x5497b1){let _0x4295d4=_0x5497b1['props']&&_0x5497b1['props']['length']?Object['create'](null):noProps,_0x427512=(_0x5497b1['top']?0x1:0x0)|(_0x5497b1['skipped']?0x2:0x0)|(_0x5497b1['error']?0x4:0x0)|(null==_0x5497b1['name']?0x8:0x0),_0x27d89c=new NodeType(_0x5497b1['name']||'',_0x4295d4,_0x5497b1['id'],_0x427512);if(_0x5497b1['props']){for(let _0x5f140a of _0x5497b1['props'])if(Array['isArray'](_0x5f140a)||(_0x5f140a=_0x5f140a(_0x27d89c)),_0x5f140a){if(_0x5f140a[0x0]['perNode'])throw new RangeError('Can\x27t\x20store\x20a\x20per-node\x20prop\x20on\x20a\x20node\x20type');_0x4295d4[_0x5f140a[0x0]['id']]=_0x5f140a[0x1];}}return _0x27d89c;}['prop'](_0x53ba59){return this['props'][_0x53ba59['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'](_0x5724d2){if('string'==typeof _0x5724d2){if(this['name']==_0x5724d2)return!0x0;let _0x5182f1=this['prop'](NodeProp['group']);return!!_0x5182f1&&_0x5182f1['indexOf'](_0x5724d2)>-0x1;}return this['id']==_0x5724d2;}static['match'](_0xa6b0cf){let _0x29b328=Object['create'](null);for(let _0x1a7854 in _0xa6b0cf)for(let _0x48ebb3 of _0x1a7854['split']('\x20'))_0x29b328[_0x48ebb3]=_0xa6b0cf[_0x1a7854];return _0x5b27ba=>{for(let _0x57a4c0=_0x5b27ba['prop'](NodeProp['group']),_0x3217f4=-0x1;_0x3217f4<(_0x57a4c0?_0x57a4c0['length']:0x0);_0x3217f4++){let _0x4b09e7=_0x29b328[_0x3217f4<0x0?_0x5b27ba['name']:_0x57a4c0[_0x3217f4]];if(_0x4b09e7)return _0x4b09e7;}};}}NodeType['none']=new NodeType('',Object['create'](null),0x0,0x8);class NodeSet{constructor(_0x7bbb5){this['types']=_0x7bbb5;for(let _0xe83f10=0x0;_0xe83f10<_0x7bbb5['length'];_0xe83f10++)if(_0x7bbb5[_0xe83f10]['id']!=_0xe83f10)throw new RangeError('Node\x20type\x20ids\x20should\x20correspond\x20to\x20array\x20positions\x20when\x20creating\x20a\x20node\x20set');}['extend'](..._0xb12915){let _0x1ad56d=[];for(let _0x5ce17c of this['types']){let _0x2cf90f=null;for(let _0x4a35ce of _0xb12915){let _0x1e6768=_0x4a35ce(_0x5ce17c);if(_0x1e6768){_0x2cf90f||(_0x2cf90f=Object['assign']({},_0x5ce17c['props']));let _0xcbc65b=_0x1e6768[0x1],_0x3f3158=_0x1e6768[0x0];_0x3f3158['combine']&&_0x3f3158['id']in _0x2cf90f&&(_0xcbc65b=_0x3f3158['combine'](_0x2cf90f[_0x3f3158['id']],_0xcbc65b)),_0x2cf90f[_0x3f3158['id']]=_0xcbc65b;}}_0x1ad56d['push'](_0x2cf90f?new NodeType(_0x5ce17c['name'],_0x2cf90f,_0x5ce17c['id'],_0x5ce17c['flags']):_0x5ce17c);}return new NodeSet(_0x1ad56d);}}const CachedNode=new WeakMap(),CachedInnerNode=new WeakMap();var IterMode;!function(_0x1983d8){_0x1983d8[_0x1983d8['ExcludeBuffers']=0x1]='ExcludeBuffers',_0x1983d8[_0x1983d8['IncludeAnonymous']=0x2]='IncludeAnonymous',_0x1983d8[_0x1983d8['IgnoreMounts']=0x4]='IgnoreMounts',_0x1983d8[_0x1983d8['IgnoreOverlays']=0x8]='IgnoreOverlays';}(IterMode||(IterMode={}));class Tree{constructor(_0x4bfd0e,_0x167d8a,_0x590b9f,_0x57e6ab,_0x3c3f29){if(this['type']=_0x4bfd0e,this['children']=_0x167d8a,this['positions']=_0x590b9f,this['length']=_0x57e6ab,this['props']=null,_0x3c3f29&&_0x3c3f29['length']){this['props']=Object['create'](null);for(let [_0x2b6bd4,_0x33302d]of _0x3c3f29)this['props']['number'==typeof _0x2b6bd4?_0x2b6bd4:_0x2b6bd4['id']]=_0x33302d;}}['toString'](){let _0x308777=MountedTree['get'](this);if(_0x308777&&!_0x308777['overlay'])return _0x308777['tree']['toString']();let _0x39d4db='';for(let _0xc3675b of this['children']){let _0x20756d=_0xc3675b['toString']();_0x20756d&&(_0x39d4db&&(_0x39d4db+=','),_0x39d4db+=_0x20756d);}return this['type']['name']?(/\W/['test'](this['type']['name'])&&!this['type']['isError']?JSON['stringify'](this['type']['name']):this['type']['name'])+(_0x39d4db['length']?'('+_0x39d4db+')':''):_0x39d4db;}['cursor'](_0x3fcb00=0x0){return new TreeCursor(this['topNode'],_0x3fcb00);}['cursorAt'](_0x306343,_0x1e969d=0x0,_0x9a0a7b=0x0){let _0x1b4e21=CachedNode['get'](this)||this['topNode'],_0x49d2e0=new TreeCursor(_0x1b4e21);return _0x49d2e0['moveTo'](_0x306343,_0x1e969d),CachedNode['set'](this,_0x49d2e0['_tree']),_0x49d2e0;}get['topNode'](){return new TreeNode(this,0x0,0x0,null);}['resolve'](_0x3c79ea,_0x2cd22f=0x0){let _0x22aa27=resolveNode(CachedNode['get'](this)||this['topNode'],_0x3c79ea,_0x2cd22f,!0x1);return CachedNode['set'](this,_0x22aa27),_0x22aa27;}['resolveInner'](_0x18517f,_0x307c6f=0x0){let _0x12968b=resolveNode(CachedInnerNode['get'](this)||this['topNode'],_0x18517f,_0x307c6f,!0x0);return CachedInnerNode['set'](this,_0x12968b),_0x12968b;}['resolveStack'](_0x590602,_0x1664e7=0x0){return stackIterator(this,_0x590602,_0x1664e7);}['iterate'](_0x289a65){let {enter:_0x2d92ba,leave:_0x26403b,from:_0x1cc9ea=0x0,to:_0xf1812f=this['length']}=_0x289a65,_0x15dc2c=_0x289a65['mode']||0x0,_0x544283=(_0x15dc2c&IterMode['IncludeAnonymous'])>0x0;for(let _0x194d7d=this['cursor'](_0x15dc2c|IterMode['IncludeAnonymous']);;){let _0x44cbff=!0x1;if(_0x194d7d['from']<=_0xf1812f&&_0x194d7d['to']>=_0x1cc9ea&&(!_0x544283&&_0x194d7d['type']['isAnonymous']||!0x1!==_0x2d92ba(_0x194d7d))){if(_0x194d7d['firstChild']())continue;_0x44cbff=!0x0;}for(;_0x44cbff&&_0x26403b&&(_0x544283||!_0x194d7d['type']['isAnonymous'])&&_0x26403b(_0x194d7d),!_0x194d7d['nextSibling']();){if(!_0x194d7d['parent']())return;_0x44cbff=!0x0;}}}['prop'](_0x4885a5){return _0x4885a5['perNode']?this['props']?this['props'][_0x4885a5['id']]:void 0x0:this['type']['prop'](_0x4885a5);}get['propValues'](){let _0x5c50e7=[];if(this['props']){for(let _0x2844fa in this['props'])_0x5c50e7['push']([+_0x2844fa,this['props'][_0x2844fa]]);}return _0x5c50e7;}['balance'](_0x1e6aeb={}){return this['children']['length']<=0x8?this:balanceRange(NodeType['none'],this['children'],this['positions'],0x0,this['children']['length'],0x0,this['length'],(_0x237d1d,_0x3911e4,_0x395ed5)=>new Tree(this['type'],_0x237d1d,_0x3911e4,_0x395ed5,this['propValues']),_0x1e6aeb['makeTree']||((_0x4b40b8,_0x1f68a8,_0x4f11a7)=>new Tree(NodeType['none'],_0x4b40b8,_0x1f68a8,_0x4f11a7)));}static['build'](_0x2c6cdd){return buildTree(_0x2c6cdd);}}Tree['empty']=new Tree(NodeType['none'],[],[],0x0);class FlatBufferCursor{constructor(_0xce4ad,_0x3dbc9b){this['buffer']=_0xce4ad,this['index']=_0x3dbc9b;}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(_0x4504dc,_0x380d85,_0x13569d){this['buffer']=_0x4504dc,this['length']=_0x380d85,this['set']=_0x13569d;}get['type'](){return NodeType['none'];}['toString'](){let _0x3e6fbe=[];for(let _0x57e98f=0x0;_0x57e98f<this['buffer']['length'];)_0x3e6fbe['push'](this['childString'](_0x57e98f)),_0x57e98f=this['buffer'][_0x57e98f+0x3];return _0x3e6fbe['join'](',');}['childString'](_0x49cf69){let _0x296466=this['buffer'][_0x49cf69],_0xe968c6=this['buffer'][_0x49cf69+0x3],_0x10d782=this['set']['types'][_0x296466],_0x53b74d=_0x10d782['name'];if(/\W/['test'](_0x53b74d)&&!_0x10d782['isError']&&(_0x53b74d=JSON['stringify'](_0x53b74d)),_0xe968c6==(_0x49cf69+=0x4))return _0x53b74d;let _0x440be8=[];for(;_0x49cf69<_0xe968c6;)_0x440be8['push'](this['childString'](_0x49cf69)),_0x49cf69=this['buffer'][_0x49cf69+0x3];return _0x53b74d+'('+_0x440be8['join'](',')+')';}['findChild'](_0x268256,_0x2f6f2e,_0x216997,_0x332614,_0xb0ef39){let {buffer:_0x3c16c9}=this,_0x2e443c=-0x1;for(let _0x5c2f44=_0x268256;_0x5c2f44!=_0x2f6f2e&&!(checkSide(_0xb0ef39,_0x332614,_0x3c16c9[_0x5c2f44+0x1],_0x3c16c9[_0x5c2f44+0x2])&&(_0x2e443c=_0x5c2f44,_0x216997>0x0));_0x5c2f44=_0x3c16c9[_0x5c2f44+0x3]);return _0x2e443c;}['slice'](_0x3b6d80,_0x22d916,_0x4e56ea){let _0x571096=this['buffer'],_0x5e99db=new Uint16Array(_0x22d916-_0x3b6d80),_0x199642=0x0;for(let _0x47257c=_0x3b6d80,_0xc6a8b5=0x0;_0x47257c<_0x22d916;){_0x5e99db[_0xc6a8b5++]=_0x571096[_0x47257c++],_0x5e99db[_0xc6a8b5++]=_0x571096[_0x47257c++]-_0x4e56ea;let _0x2d4102=_0x5e99db[_0xc6a8b5++]=_0x571096[_0x47257c++]-_0x4e56ea;_0x5e99db[_0xc6a8b5++]=_0x571096[_0x47257c++]-_0x3b6d80,_0x199642=Math['max'](_0x199642,_0x2d4102);}return new TreeBuffer(_0x5e99db,_0x199642,this['set']);}}function checkSide(_0x3355a5,_0x19de76,_0x9b0b96,_0x269b33){switch(_0x3355a5){case-0x2:return _0x9b0b96<_0x19de76;case-0x1:return _0x269b33>=_0x19de76&&_0x9b0b96<_0x19de76;case 0x0:return _0x9b0b96<_0x19de76&&_0x269b33>_0x19de76;case 0x1:return _0x9b0b96<=_0x19de76&&_0x269b33>_0x19de76;case 0x2:return _0x269b33>_0x19de76;case 0x4:return!0x0;}}function resolveNode(_0x51df28,_0x255035,_0x4db263,_0x46a3a2){for(var _0x4747a0;_0x51df28['from']==_0x51df28['to']||(_0x4db263<0x1?_0x51df28['from']>=_0x255035:_0x51df28['from']>_0x255035)||(_0x4db263>-0x1?_0x51df28['to']<=_0x255035:_0x51df28['to']<_0x255035);){let _0x4b0d3b=!_0x46a3a2&&_0x51df28 instanceof TreeNode&&_0x51df28['index']<0x0?null:_0x51df28['parent'];if(!_0x4b0d3b)return _0x51df28;_0x51df28=_0x4b0d3b;}let _0x1f0d78=_0x46a3a2?0x0:IterMode['IgnoreOverlays'];if(_0x46a3a2){for(let _0x5f432b=_0x51df28,_0x169647=_0x5f432b['parent'];_0x169647;_0x5f432b=_0x169647,_0x169647=_0x5f432b['parent'])_0x5f432b instanceof TreeNode&&_0x5f432b['index']<0x0&&(null===(_0x4747a0=_0x169647['enter'](_0x255035,_0x4db263,_0x1f0d78))||void 0x0===_0x4747a0?void 0x0:_0x4747a0['from'])!=_0x5f432b['from']&&(_0x51df28=_0x169647);}for(;;){let _0x2f997c=_0x51df28['enter'](_0x255035,_0x4db263,_0x1f0d78);if(!_0x2f997c)return _0x51df28;_0x51df28=_0x2f997c;}}class BaseNode{['cursor'](_0x4a837b=0x0){return new TreeCursor(this,_0x4a837b);}['getChild'](_0x4e0388,_0x58e2a9=null,_0x471c7c=null){let _0x445161=getChildren(this,_0x4e0388,_0x58e2a9,_0x471c7c);return _0x445161['length']?_0x445161[0x0]:null;}['getChildren'](_0x12c999,_0x469d34=null,_0x23b1c1=null){return getChildren(this,_0x12c999,_0x469d34,_0x23b1c1);}['resolve'](_0x2db77e,_0x159487=0x0){return resolveNode(this,_0x2db77e,_0x159487,!0x1);}['resolveInner'](_0x429827,_0x4c8472=0x0){return resolveNode(this,_0x429827,_0x4c8472,!0x0);}['matchContext'](_0x5d9cb8){return matchNodeContext(this['parent'],_0x5d9cb8);}['enterUnfinishedNodesBefore'](_0x175eec){let _0x57c29d=this['childBefore'](_0x175eec),_0x390ece=this;for(;_0x57c29d;){let _0x5d533a=_0x57c29d['lastChild'];if(!_0x5d533a||_0x5d533a['to']!=_0x57c29d['to'])break;_0x5d533a['type']['isError']&&_0x5d533a['from']==_0x5d533a['to']?(_0x390ece=_0x57c29d,_0x57c29d=_0x5d533a['prevSibling']):_0x57c29d=_0x5d533a;}return _0x390ece;}get['node'](){return this;}get['next'](){return this['parent'];}}class TreeNode extends BaseNode{constructor(_0x26efd8,_0x20870d,_0x4a817d,_0xa93fc0){super(),this['_tree']=_0x26efd8,this['from']=_0x20870d,this['index']=_0x4a817d,this['_parent']=_0xa93fc0;}get['type'](){return this['_tree']['type'];}get['name'](){return this['_tree']['type']['name'];}get['to'](){return this['from']+this['_tree']['length'];}['nextChild'](_0xe20235,_0xe1b299,_0x54d8cc,_0x2808cd,_0x10a568=0x0){for(let _0x3382ef=this;;){for(let {children:_0x45ae8c,positions:_0x32852b}=_0x3382ef['_tree'],_0x49838e=_0xe1b299>0x0?_0x45ae8c['length']:-0x1;_0xe20235!=_0x49838e;_0xe20235+=_0xe1b299){let _0x4d093d=_0x45ae8c[_0xe20235],_0x40f2ec=_0x32852b[_0xe20235]+_0x3382ef['from'];if(checkSide(_0x2808cd,_0x54d8cc,_0x40f2ec,_0x40f2ec+_0x4d093d['length'])){if(_0x4d093d instanceof TreeBuffer){if(_0x10a568&IterMode['ExcludeBuffers'])continue;let _0x5c3a1a=_0x4d093d['findChild'](0x0,_0x4d093d['buffer']['length'],_0xe1b299,_0x54d8cc-_0x40f2ec,_0x2808cd);if(_0x5c3a1a>-0x1)return new BufferNode(new BufferContext(_0x3382ef,_0x4d093d,_0xe20235,_0x40f2ec),null,_0x5c3a1a);}else{if(_0x10a568&IterMode['IncludeAnonymous']||!_0x4d093d['type']['isAnonymous']||hasChild(_0x4d093d)){let _0x37f3a9;if(!(_0x10a568&IterMode['IgnoreMounts'])&&(_0x37f3a9=MountedTree['get'](_0x4d093d))&&!_0x37f3a9['overlay'])return new TreeNode(_0x37f3a9['tree'],_0x40f2ec,_0xe20235,_0x3382ef);let _0x4db97f=new TreeNode(_0x4d093d,_0x40f2ec,_0xe20235,_0x3382ef);return _0x10a568&IterMode['IncludeAnonymous']||!_0x4db97f['type']['isAnonymous']?_0x4db97f:_0x4db97f['nextChild'](_0xe1b299<0x0?_0x4d093d['children']['length']-0x1:0x0,_0xe1b299,_0x54d8cc,_0x2808cd);}}}}if(_0x10a568&IterMode['IncludeAnonymous']||!_0x3382ef['type']['isAnonymous'])return null;if(_0xe20235=_0x3382ef['index']>=0x0?_0x3382ef['index']+_0xe1b299:_0xe1b299<0x0?-0x1:_0x3382ef['_parent']['_tree']['children']['length'],_0x3382ef=_0x3382ef['_parent'],!_0x3382ef)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'](_0x5b8dc2){return this['nextChild'](0x0,0x1,_0x5b8dc2,0x2);}['childBefore'](_0x4847b5){return this['nextChild'](this['_tree']['children']['length']-0x1,-0x1,_0x4847b5,-0x2);}['enter'](_0x1bc6b2,_0x4ec492,_0x1d624e=0x0){let _0x89342;if(!(_0x1d624e&IterMode['IgnoreOverlays'])&&(_0x89342=MountedTree['get'](this['_tree']))&&_0x89342['overlay']){let _0x4c1c94=_0x1bc6b2-this['from'];for(let {from:_0x23fb4a,to:_0x3ad40d}of _0x89342['overlay'])if((_0x4ec492>0x0?_0x23fb4a<=_0x4c1c94:_0x23fb4a<_0x4c1c94)&&(_0x4ec492<0x0?_0x3ad40d>=_0x4c1c94:_0x3ad40d>_0x4c1c94))return new TreeNode(_0x89342['tree'],_0x89342['overlay'][0x0]['from']+this['from'],-0x1,this);}return this['nextChild'](0x0,0x1,_0x1bc6b2,_0x4ec492,_0x1d624e);}['nextSignificantParent'](){let _0x117300=this;for(;_0x117300['type']['isAnonymous']&&_0x117300['_parent'];)_0x117300=_0x117300['_parent'];return _0x117300;}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(_0x4027da,_0x1ce4f8,_0x36e858,_0x22d11){let _0x5b6f2c=_0x4027da['cursor'](),_0x5c014d=[];if(!_0x5b6f2c['firstChild']())return _0x5c014d;if(null!=_0x36e858){for(let _0x34d0f0=!0x1;!_0x34d0f0;)if(_0x34d0f0=_0x5b6f2c['type']['is'](_0x36e858),!_0x5b6f2c['nextSibling']())return _0x5c014d;}for(;;){if(null!=_0x22d11&&_0x5b6f2c['type']['is'](_0x22d11))return _0x5c014d;if(_0x5b6f2c['type']['is'](_0x1ce4f8)&&_0x5c014d['push'](_0x5b6f2c['node']),!_0x5b6f2c['nextSibling']())return null==_0x22d11?_0x5c014d:[];}}function matchNodeContext(_0x1a01bc,_0x1e1e65,_0x2ed16a=_0x1e1e65['length']-0x1){for(let _0x5a7d5b=_0x1a01bc;_0x2ed16a>=0x0;_0x5a7d5b=_0x5a7d5b['parent']){if(!_0x5a7d5b)return!0x1;if(!_0x5a7d5b['type']['isAnonymous']){if(_0x1e1e65[_0x2ed16a]&&_0x1e1e65[_0x2ed16a]!=_0x5a7d5b['name'])return!0x1;_0x2ed16a--;}}return!0x0;}class BufferContext{constructor(_0x7ad0cb,_0x5f5464,_0x1ce1e6,_0x79ec9b){this['parent']=_0x7ad0cb,this['buffer']=_0x5f5464,this['index']=_0x1ce1e6,this['start']=_0x79ec9b;}}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(_0x1dc509,_0x4873a1,_0x228a59){super(),this['context']=_0x1dc509,this['_parent']=_0x4873a1,this['index']=_0x228a59,this['type']=_0x1dc509['buffer']['set']['types'][_0x1dc509['buffer']['buffer'][_0x228a59]];}['child'](_0x32453b,_0x59fd6d,_0x4c6b06){let {buffer:_0x909ff5}=this['context'],_0x2640b6=_0x909ff5['findChild'](this['index']+0x4,_0x909ff5['buffer'][this['index']+0x3],_0x32453b,_0x59fd6d-this['context']['start'],_0x4c6b06);return _0x2640b6<0x0?null:new BufferNode(this['context'],this,_0x2640b6);}get['firstChild'](){return this['child'](0x1,0x0,0x4);}get['lastChild'](){return this['child'](-0x1,0x0,0x4);}['childAfter'](_0x1e6a23){return this['child'](0x1,_0x1e6a23,0x2);}['childBefore'](_0x2eb566){return this['child'](-0x1,_0x2eb566,-0x2);}['enter'](_0x3bea7e,_0x4de1a9,_0x4597a4=0x0){if(_0x4597a4&IterMode['ExcludeBuffers'])return null;let {buffer:_0x45d41d}=this['context'],_0x15d140=_0x45d41d['findChild'](this['index']+0x4,_0x45d41d['buffer'][this['index']+0x3],_0x4de1a9>0x0?0x1:-0x1,_0x3bea7e-this['context']['start'],_0x4de1a9);return _0x15d140<0x0?null:new BufferNode(this['context'],this,_0x15d140);}get['parent'](){return this['_parent']||this['context']['parent']['nextSignificantParent']();}['externalSibling'](_0xc0c04d){return this['_parent']?null:this['context']['parent']['nextChild'](this['context']['index']+_0xc0c04d,_0xc0c04d,0x0,0x4);}get['nextSibling'](){let {buffer:_0x56a0b}=this['context'],_0x20c136=_0x56a0b['buffer'][this['index']+0x3];return _0x20c136<(this['_parent']?_0x56a0b['buffer'][this['_parent']['index']+0x3]:_0x56a0b['buffer']['length'])?new BufferNode(this['context'],this['_parent'],_0x20c136):this['externalSibling'](0x1);}get['prevSibling'](){let {buffer:_0x20a6b0}=this['context'],_0x1ad5c8=this['_parent']?this['_parent']['index']+0x4:0x0;return this['index']==_0x1ad5c8?this['externalSibling'](-0x1):new BufferNode(this['context'],this['_parent'],_0x20a6b0['findChild'](_0x1ad5c8,this['index'],-0x1,0x0,0x4));}get['tree'](){return null;}['toTree'](){let _0x49293b=[],_0x16d0de=[],{buffer:_0x538980}=this['context'],_0x1e3fdb=this['index']+0x4,_0x2d7c04=_0x538980['buffer'][this['index']+0x3];if(_0x2d7c04>_0x1e3fdb){let _0x169728=_0x538980['buffer'][this['index']+0x1];_0x49293b['push'](_0x538980['slice'](_0x1e3fdb,_0x2d7c04,_0x169728)),_0x16d0de['push'](0x0);}return new Tree(this['type'],_0x49293b,_0x16d0de,this['to']-this['from']);}['toString'](){return this['context']['buffer']['childString'](this['index']);}}function iterStack(_0xa1e887){if(!_0xa1e887['length'])return null;let _0x51a1c2=0x0,_0x2b1b3e=_0xa1e887[0x0];for(let _0x1ca364=0x1;_0x1ca364<_0xa1e887['length'];_0x1ca364++){let _0x5c634a=_0xa1e887[_0x1ca364];(_0x5c634a['from']>_0x2b1b3e['from']||_0x5c634a['to']<_0x2b1b3e['to'])&&(_0x2b1b3e=_0x5c634a,_0x51a1c2=_0x1ca364);}let _0x4f9683=_0x2b1b3e instanceof TreeNode&&_0x2b1b3e['index']<0x0?null:_0x2b1b3e['parent'],_0x300453=_0xa1e887['slice']();return _0x4f9683?_0x300453[_0x51a1c2]=_0x4f9683:_0x300453['splice'](_0x51a1c2,0x1),new StackIterator(_0x300453,_0x2b1b3e);}class StackIterator{constructor(_0x4604ba,_0xd23223){this['heads']=_0x4604ba,this['node']=_0xd23223;}get['next'](){return iterStack(this['heads']);}}function stackIterator(_0x510ab2,_0x1c7044,_0x393e3b){let _0x563d5b=_0x510ab2['resolveInner'](_0x1c7044,_0x393e3b),_0x1abdff=null;for(let _0x59301d=_0x563d5b instanceof TreeNode?_0x563d5b:_0x563d5b['context']['parent'];_0x59301d;_0x59301d=_0x59301d['parent'])if(_0x59301d['index']<0x0){let _0x583828=_0x59301d['parent'];(_0x1abdff||(_0x1abdff=[_0x563d5b]))['push'](_0x583828['resolve'](_0x1c7044,_0x393e3b)),_0x59301d=_0x583828;}else{let _0xa562=MountedTree['get'](_0x59301d['tree']);if(_0xa562&&_0xa562['overlay']&&_0xa562['overlay'][0x0]['from']<=_0x1c7044&&_0xa562['overlay'][_0xa562['overlay']['length']-0x1]['to']>=_0x1c7044){let _0x5eda4d=new TreeNode(_0xa562['tree'],_0xa562['overlay'][0x0]['from']+_0x59301d['from'],-0x1,_0x59301d);(_0x1abdff||(_0x1abdff=[_0x563d5b]))['push'](resolveNode(_0x5eda4d,_0x1c7044,_0x393e3b,!0x1));}}return _0x1abdff?iterStack(_0x1abdff):_0x563d5b;}class TreeCursor{get['name'](){return this['type']['name'];}constructor(_0x4ab2f5,_0x2bc39a=0x0){if(this['mode']=_0x2bc39a,this['buffer']=null,this['stack']=[],this['index']=0x0,this['bufferNode']=null,_0x4ab2f5 instanceof TreeNode)this['yieldNode'](_0x4ab2f5);else{this['_tree']=_0x4ab2f5['context']['parent'],this['buffer']=_0x4ab2f5['context'];for(let _0x2291f9=_0x4ab2f5['_parent'];_0x2291f9;_0x2291f9=_0x2291f9['_parent'])this['stack']['unshift'](_0x2291f9['index']);this['bufferNode']=_0x4ab2f5,this['yieldBuf'](_0x4ab2f5['index']);}}['yieldNode'](_0x2e1ed6){return!!_0x2e1ed6&&(this['_tree']=_0x2e1ed6,this['type']=_0x2e1ed6['type'],this['from']=_0x2e1ed6['from'],this['to']=_0x2e1ed6['to'],!0x0);}['yieldBuf'](_0xff4b48,_0x3537f5){this['index']=_0xff4b48;let {start:_0x477e86,buffer:_0x33b2be}=this['buffer'];return this['type']=_0x3537f5||_0x33b2be['set']['types'][_0x33b2be['buffer'][_0xff4b48]],this['from']=_0x477e86+_0x33b2be['buffer'][_0xff4b48+0x1],this['to']=_0x477e86+_0x33b2be['buffer'][_0xff4b48+0x2],!0x0;}['yield'](_0x431e9f){return!!_0x431e9f&&(_0x431e9f instanceof TreeNode?(this['buffer']=null,this['yieldNode'](_0x431e9f)):(this['buffer']=_0x431e9f['context'],this['yieldBuf'](_0x431e9f['index'],_0x431e9f['type'])));}['toString'](){return this['buffer']?this['buffer']['buffer']['childString'](this['index']):this['_tree']['toString']();}['enterChild'](_0xdd1423,_0x294c83,_0x3803c2){if(!this['buffer'])return this['yield'](this['_tree']['nextChild'](_0xdd1423<0x0?this['_tree']['_tree']['children']['length']-0x1:0x0,_0xdd1423,_0x294c83,_0x3803c2,this['mode']));let {buffer:_0x28a0e0}=this['buffer'],_0x57a1dd=_0x28a0e0['findChild'](this['index']+0x4,_0x28a0e0['buffer'][this['index']+0x3],_0xdd1423,_0x294c83-this['buffer']['start'],_0x3803c2);return!(_0x57a1dd<0x0)&&(this['stack']['push'](this['index']),this['yieldBuf'](_0x57a1dd));}['firstChild'](){return this['enterChild'](0x1,0x0,0x4);}['lastChild'](){return this['enterChild'](-0x1,0x0,0x4);}['childAfter'](_0x5047a7){return this['enterChild'](0x1,_0x5047a7,0x2);}['childBefore'](_0x1abefe){return this['enterChild'](-0x1,_0x1abefe,-0x2);}['enter'](_0x1c9da6,_0x413b94,_0x5dbfad=this['mode']){return this['buffer']?!(_0x5dbfad&IterMode['ExcludeBuffers'])&&this['enterChild'](0x1,_0x1c9da6,_0x413b94):this['yield'](this['_tree']['enter'](_0x1c9da6,_0x413b94,_0x5dbfad));}['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 _0x440b93=this['mode']&IterMode['IncludeAnonymous']?this['buffer']['parent']:this['buffer']['parent']['nextSignificantParent']();return this['buffer']=null,this['yieldNode'](_0x440b93);}['sibling'](_0x3b583c){if(!this['buffer'])return!!this['_tree']['_parent']&&this['yield'](this['_tree']['index']<0x0?null:this['_tree']['_parent']['nextChild'](this['_tree']['index']+_0x3b583c,_0x3b583c,0x0,0x4,this['mode']));let {buffer:_0x8ee5dc}=this['buffer'],_0x3de57e=this['stack']['length']-0x1;if(_0x3b583c<0x0){let _0x2a3053=_0x3de57e<0x0?0x0:this['stack'][_0x3de57e]+0x4;if(this['index']!=_0x2a3053)return this['yieldBuf'](_0x8ee5dc['findChild'](_0x2a3053,this['index'],-0x1,0x0,0x4));}else{let _0x309ea4=_0x8ee5dc['buffer'][this['index']+0x3];if(_0x309ea4<(_0x3de57e<0x0?_0x8ee5dc['buffer']['length']:_0x8ee5dc['buffer'][this['stack'][_0x3de57e]+0x3]))return this['yieldBuf'](_0x309ea4);}return _0x3de57e<0x0&&this['yield'](this['buffer']['parent']['nextChild'](this['buffer']['index']+_0x3b583c,_0x3b583c,0x0,0x4,this['mode']));}['nextSibling'](){return this['sibling'](0x1);}['prevSibling'](){return this['sibling'](-0x1);}['atLastNode'](_0x57e38b){let _0x580b16,_0x3a1bd5,{buffer:_0x1e76bd}=this;if(_0x1e76bd){if(_0x57e38b>0x0){if(this['index']<_0x1e76bd['buffer']['buffer']['length'])return!0x1;}else{for(let _0x1c62b0=0x0;_0x1c62b0<this['index'];_0x1c62b0++)if(_0x1e76bd['buffer']['buffer'][_0x1c62b0+0x3]<this['index'])return!0x1;}({index:_0x580b16,parent:_0x3a1bd5}=_0x1e76bd);}else({index:_0x580b16,_parent:_0x3a1bd5}=this['_tree']);for(;_0x3a1bd5;{index:_0x580b16,_parent:_0x3a1bd5}=_0x3a1bd5)if(_0x580b16>-0x1)for(let _0x55cf5e=_0x580b16+_0x57e38b,_0x528c3e=_0x57e38b<0x0?-0x1:_0x3a1bd5['_tree']['children']['length'];_0x55cf5e!=_0x528c3e;_0x55cf5e+=_0x57e38b){let _0x2c46ee=_0x3a1bd5['_tree']['children'][_0x55cf5e];if(this['mode']&IterMode['IncludeAnonymous']||_0x2c46ee instanceof TreeBuffer||!_0x2c46ee['type']['isAnonymous']||hasChild(_0x2c46ee))return!0x1;}return!0x0;}['move'](_0x389487,_0x5c5e30){if(_0x5c5e30&&this['enterChild'](_0x389487,0x0,0x4))return!0x0;for(;;){if(this['sibling'](_0x389487))return!0x0;if(this['atLastNode'](_0x389487)||!this['parent']())return!0x1;}}['next'](_0x419c4f=!0x0){return this['move'](0x1,_0x419c4f);}['prev'](_0x3ab6ae=!0x0){return this['move'](-0x1,_0x3ab6ae);}['moveTo'](_0x16494a,_0x1a1d2e=0x0){for(;(this['from']==this['to']||(_0x1a1d2e<0x1?this['from']>=_0x16494a:this['from']>_0x16494a)||(_0x1a1d2e>-0x1?this['to']<=_0x16494a:this['to']<_0x16494a))&&this['parent'](););for(;this['enterChild'](0x1,_0x16494a,_0x1a1d2e););return this;}get['node'](){if(!this['buffer'])return this['_tree'];let _0xb8c651=this['bufferNode'],_0x2d22f7=null,_0x2a208a=0x0;if(_0xb8c651&&_0xb8c651['context']==this['buffer']){t:for(let _0x463a22=this['index'],_0x5a7397=this['stack']['length'];_0x5a7397>=0x0;){for(let _0x3c5d69=_0xb8c651;_0x3c5d69;_0x3c5d69=_0x3c5d69['_parent'])if(_0x3c5d69['index']==_0x463a22){if(_0x463a22==this['index'])return _0x3c5d69;_0x2d22f7=_0x3c5d69,_0x2a208a=_0x5a7397+0x1;break t;}_0x463a22=this['stack'][--_0x5a7397];}}for(let _0x604ea0=_0x2a208a;_0x604ea0<this['stack']['length'];_0x604ea0++)_0x2d22f7=new BufferNode(this['buffer'],_0x2d22f7,this['stack'][_0x604ea0]);return this['bufferNode']=new BufferNode(this['buffer'],_0x2d22f7,this['index']);}get['tree'](){return this['buffer']?null:this['_tree']['_tree'];}['iterate'](_0x1a7cfa,_0x5469e3){for(let _0x551a34=0x0;;){let _0x26fe8a=!0x1;if(this['type']['isAnonymous']||!0x1!==_0x1a7cfa(this)){if(this['firstChild']()){_0x551a34++;continue;}this['type']['isAnonymous']||(_0x26fe8a=!0x0);}for(;;){if(_0x26fe8a&&_0x5469e3&&_0x5469e3(this),_0x26fe8a=this['type']['isAnonymous'],!_0x551a34)return;if(this['nextSibling']())break;this['parent'](),_0x551a34--,_0x26fe8a=!0x0;}}}['matchContext'](_0x10e97c){if(!this['buffer'])return matchNodeContext(this['node']['parent'],_0x10e97c);let {buffer:_0x253f44}=this['buffer'],{types:_0x1e1ae6}=_0x253f44['set'];for(let _0x432661=_0x10e97c['length']-0x1,_0x54f1dd=this['stack']['length']-0x1;_0x432661>=0x0;_0x54f1dd--){if(_0x54f1dd<0x0)return matchNodeContext(this['_tree'],_0x10e97c,_0x432661);let _0x5f0bf0=_0x1e1ae6[_0x253f44['buffer'][this['stack'][_0x54f1dd]]];if(!_0x5f0bf0['isAnonymous']){if(_0x10e97c[_0x432661]&&_0x10e97c[_0x432661]!=_0x5f0bf0['name'])return!0x1;_0x432661--;}}return!0x0;}}function hasChild(_0x123532){return _0x123532['children']['some'](_0x5b0010=>_0x5b0010 instanceof TreeBuffer||!_0x5b0010['type']['isAnonymous']||hasChild(_0x5b0010));}function buildTree(_0x52cfd0){var _0x5edec2;let {buffer:_0x4d0e90,nodeSet:_0x24cda1,maxBufferLength:_0x38f195=DefaultBufferLength,reused:_0x1de8ad=[],minRepeatType:_0x260a83=_0x24cda1['types']['length']}=_0x52cfd0,_0x433422=Array['isArray'](_0x4d0e90)?new FlatBufferCursor(_0x4d0e90,_0x4d0e90['length']):_0x4d0e90,_0x492252=_0x24cda1['types'],_0x424684=0x0,_0x5761bf=0x0;function _0x41e337(_0x473582,_0x41ebe4,_0x559a09,_0x410471,_0x5056dc,_0x5d054e){let {id:_0x519bb7,start:_0x19148c,end:_0x24b983,size:_0x4da78f}=_0x433422,_0x3eaf6d=_0x5761bf,_0x485482=_0x424684;if(_0x4da78f<0x0){if(_0x433422['next'](),-0x1==_0x4da78f){let _0x20e821=_0x1de8ad[_0x519bb7];return _0x559a09['push'](_0x20e821),void _0x410471['push'](_0x19148c-_0x473582);}if(-0x3==_0x4da78f)return void(_0x424684=_0x519bb7);if(-0x4==_0x4da78f)return void(_0x5761bf=_0x519bb7);throw new RangeError('Unrecognized\x20record\x20size:\x20'+_0x4da78f);}let _0x1547f3,_0x44c601,_0x290859=_0x492252[_0x519bb7],_0x5f225d=_0x19148c-_0x473582;if(_0x24b983-_0x19148c<=_0x38f195&&(_0x44c601=function(_0x10672a,_0xaf3250){let _0x2fb38c=_0x433422['fork'](),_0x47faff=0x0,_0x318883=0x0,_0x4fffe7=0x0,_0x513ba9=_0x2fb38c['end']-_0x38f195,_0x597f73={'size':0x0,'start':0x0,'skip':0x0};t:for(let _0x334884=_0x2fb38c['pos']-_0x10672a;_0x2fb38c['pos']>_0x334884;){let _0x5d5f90=_0x2fb38c['size'];if(_0x2fb38c['id']==_0xaf3250&&_0x5d5f90>=0x0){_0x597f73['size']=_0x47faff,_0x597f73['start']=_0x318883,_0x597f73['skip']=_0x4fffe7,_0x4fffe7+=0x4,_0x47faff+=0x4,_0x2fb38c['next']();continue;}let _0x42b14f=_0x2fb38c['pos']-_0x5d5f90;if(_0x5d5f90<0x0||_0x42b14f<_0x334884||_0x2fb38c['start']<_0x513ba9)break;let _0x30de8b=_0x2fb38c['id']>=_0x260a83?0x4:0x0,_0x249240=_0x2fb38c['start'];for(_0x2fb38c['next']();_0x2fb38c['pos']>_0x42b14f;){if(_0x2fb38c['size']<0x0){if(-0x3!=_0x2fb38c['size'])break t;_0x30de8b+=0x4;}else _0x2fb38c['id']>=_0x260a83&&(_0x30de8b+=0x4);_0x2fb38c['next']();}_0x318883=_0x249240,_0x47faff+=_0x5d5f90,_0x4fffe7+=_0x30de8b;}return(_0xaf3250<0x0||_0x47faff==_0x10672a)&&(_0x597f73['size']=_0x47faff,_0x597f73['start']=_0x318883,_0x597f73['skip']=_0x4fffe7),_0x597f73['size']>0x4?_0x597f73:void 0x0;}(_0x433422['pos']-_0x41ebe4,_0x5056dc))){let _0x5b4e96=new Uint16Array(_0x44c601['size']-_0x44c601['skip']),_0x8076=_0x433422['pos']-_0x44c601['size'],_0x4e063b=_0x5b4e96['length'];for(;_0x433422['pos']>_0x8076;)_0x4e063b=_0x589a9f(_0x44c601['start'],_0x5b4e96,_0x4e063b);_0x1547f3=new TreeBuffer(_0x5b4e96,_0x24b983-_0x44c601['start'],_0x24cda1),_0x5f225d=_0x44c601['start']-_0x473582;}else{let _0x159740=_0x433422['pos']-_0x4da78f;_0x433422['next']();let _0x47cd06=[],_0x15caf3=[],_0x3f1fd3=_0x519bb7>=_0x260a83?_0x519bb7:-0x1,_0x3a791e=0x0,_0x492b2e=_0x24b983;for(;_0x433422['pos']>_0x159740;)_0x3f1fd3>=0x0&&_0x433422['id']==_0x3f1fd3&&_0x433422['size']>=0x0?(_0x433422['end']<=_0x492b2e-_0x38f195&&(_0x2f68af(_0x47cd06,_0x15caf3,_0x19148c,_0x3a791e,_0x433422['end'],_0x492b2e,_0x3f1fd3,_0x3eaf6d,_0x485482),_0x3a791e=_0x47cd06['length'],_0x492b2e=_0x433422['end']),_0x433422['next']()):_0x5d054e>0x9c4?_0x194c1e(_0x19148c,_0x159740,_0x47cd06,_0x15caf3):_0x41e337(_0x19148c,_0x159740,_0x47cd06,_0x15caf3,_0x3f1fd3,_0x5d054e+0x1);if(_0x3f1fd3>=0x0&&_0x3a791e>0x0&&_0x3a791e<_0x47cd06['length']&&_0x2f68af(_0x47cd06,_0x15caf3,_0x19148c,_0x3a791e,_0x19148c,_0x492b2e,_0x3f1fd3,_0x3eaf6d,_0x485482),_0x47cd06['reverse'](),_0x15caf3['reverse'](),_0x3f1fd3>-0x1&&_0x3a791e>0x0){let _0x7c384a=function(_0x493b2e,_0x12075f){return(_0x967b8e,_0xb9d239,_0x10e037)=>{let _0x1bab03,_0x111221,_0x494ce5=0x0,_0x107f69=_0x967b8e['length']-0x1;if(_0x107f69>=0x0&&(_0x1bab03=_0x967b8e[_0x107f69])instanceof Tree){if(!_0x107f69&&_0x1bab03['type']==_0x493b2e&&_0x1bab03['length']==_0x10e037)return _0x1bab03;(_0x111221=_0x1bab03['prop'](NodeProp['lookAhead']))&&(_0x494ce5=_0xb9d239[_0x107f69]+_0x1bab03['length']+_0x111221);}return _0x95c03e(_0x493b2e,_0x967b8e,_0xb9d239,_0x10e037,_0x494ce5,_0x12075f);};}(_0x290859,_0x485482);_0x1547f3=balanceRange(_0x290859,_0x47cd06,_0x15caf3,0x0,_0x47cd06['length'],0x0,_0x24b983-_0x19148c,_0x7c384a,_0x7c384a);}else _0x1547f3=_0x95c03e(_0x290859,_0x47cd06,_0x15caf3,_0x24b983-_0x19148c,_0x3eaf6d-_0x24b983,_0x485482);}_0x559a09['push'](_0x1547f3),_0x410471['push'](_0x5f225d);}function _0x194c1e(_0x9e285,_0x536787,_0x23f91e,_0x575231){let _0xd9fb3=[],_0x1a911b=0x0,_0x2ef44d=-0x1;for(;_0x433422['pos']>_0x536787;){let {id:_0x512689,start:_0x466746,end:_0x16b7e3,size:_0x33942f}=_0x433422;if(_0x33942f>0x4)_0x433422['next']();else{if(_0x2ef44d>-0x1&&_0x466746<_0x2ef44d)break;_0x2ef44d<0x0&&(_0x2ef44d=_0x16b7e3-_0x38f195),_0xd9fb3['push'](_0x512689,_0x466746,_0x16b7e3),_0x1a911b++,_0x433422['next']();}}if(_0x1a911b){let _0x2f743c=new Uint16Array(0x4*_0x1a911b),_0x8d86e7=_0xd9fb3[_0xd9fb3['length']-0x2];for(let _0x3acc01=_0xd9fb3['length']-0x3,_0x5db50e=0x0;_0x3acc01>=0x0;_0x3acc01-=0x3)_0x2f743c[_0x5db50e++]=_0xd9fb3[_0x3acc01],_0x2f743c[_0x5db50e++]=_0xd9fb3[_0x3acc01+0x1]-_0x8d86e7,_0x2f743c[_0x5db50e++]=_0xd9fb3[_0x3acc01+0x2]-_0x8d86e7,_0x2f743c[_0x5db50e++]=_0x5db50e;_0x23f91e['push'](new TreeBuffer(_0x2f743c,_0xd9fb3[0x2]-_0x8d86e7,_0x24cda1)),_0x575231['push'](_0x8d86e7-_0x9e285);}}function _0x2f68af(_0x5f54dc,_0x1fb865,_0x37178f,_0x4802af,_0x241309,_0x4d2b12,_0x2e61ad,_0x41c868,_0x217f11){let _0x1131de=[],_0x5e79ec=[];for(;_0x5f54dc['length']>_0x4802af;)_0x1131de['push'](_0x5f54dc['pop']()),_0x5e79ec['push'](_0x1fb865['pop']()+_0x37178f-_0x241309);_0x5f54dc['push'](_0x95c03e(_0x24cda1['types'][_0x2e61ad],_0x1131de,_0x5e79ec,_0x4d2b12-_0x241309,_0x41c868-_0x4d2b12,_0x217f11)),_0x1fb865['push'](_0x241309-_0x37178f);}function _0x95c03e(_0x2a2612,_0x6890f2,_0x267ea3,_0x511eeb,_0xe88953,_0x42956e,_0x1b6462){if(_0x42956e){let _0x297f5b=[NodeProp['contextHash'],_0x42956e];_0x1b6462=_0x1b6462?[_0x297f5b]['concat'](_0x1b6462):[_0x297f5b];}if(_0xe88953>0x19){let _0x5c01d1=[NodeProp['lookAhead'],_0xe88953];_0x1b6462=_0x1b6462?[_0x5c01d1]['concat'](_0x1b6462):[_0x5c01d1];}return new Tree(_0x2a2612,_0x6890f2,_0x267ea3,_0x511eeb,_0x1b6462);}function _0x589a9f(_0x57858b,_0x2bca77,_0x1e9396){let {id:_0x29287a,start:_0x3e7b6e,end:_0x2f4101,size:_0x70ccba}=_0x433422;if(_0x433422['next'](),_0x70ccba>=0x0&&_0x29287a<_0x260a83){let _0x1d0852=_0x1e9396;if(_0x70ccba>0x4){let _0xd1a76e=_0x433422['pos']-(_0x70ccba-0x4);for(;_0x433422['pos']>_0xd1a76e;)_0x1e9396=_0x589a9f(_0x57858b,_0x2bca77,_0x1e9396);}_0x2bca77[--_0x1e9396]=_0x1d0852,_0x2bca77[--_0x1e9396]=_0x2f4101-_0x57858b,_0x2bca77[--_0x1e9396]=_0x3e7b6e-_0x57858b,_0x2bca77[--_0x1e9396]=_0x29287a;}else-0x3==_0x70ccba?_0x424684=_0x29287a:-0x4==_0x70ccba&&(_0x5761bf=_0x29287a);return _0x1e9396;}let _0x5dfc20=[],_0x35fddc=[];for(;_0x433422['pos']>0x0;)_0x41e337(_0x52cfd0['start']||0x0,_0x52cfd0['bufferStart']||0x0,_0x5dfc20,_0x35fddc,-0x1,0x0);let _0x45c1e8=null!==(_0x5edec2=_0x52cfd0['length'])&&void 0x0!==_0x5edec2?_0x5edec2:_0x5dfc20['length']?_0x35fddc[0x0]+_0x5dfc20[0x0]['length']:0x0;return new Tree(_0x492252[_0x52cfd0['topID']],_0x5dfc20['reverse'](),_0x35fddc['reverse'](),_0x45c1e8);}const nodeSizeCache=new WeakMap();function nodeSize(_0x22a33f,_0x3c4d35){if(!_0x22a33f['isAnonymous']||_0x3c4d35 instanceof TreeBuffer||_0x3c4d35['type']!=_0x22a33f)return 0x1;let _0x3ab552=nodeSizeCache['get'](_0x3c4d35);if(null==_0x3ab552){_0x3ab552=0x1;for(let _0x1b1553 of _0x3c4d35['children']){if(_0x1b1553['type']!=_0x22a33f||!(_0x1b1553 instanceof Tree)){_0x3ab552=0x1;break;}_0x3ab552+=nodeSize(_0x22a33f,_0x1b1553);}nodeSizeCache['set'](_0x3c4d35,_0x3ab552);}return _0x3ab552;}function balanceRange(_0x15e823,_0x4d6bfd,_0x11643e,_0x4647c7,_0x16d31a,_0x37ded5,_0x47113f,_0x5101c8,_0x255f5b){let _0x305a56=0x0;for(let _0x10c496=_0x4647c7;_0x10c496<_0x16d31a;_0x10c496++)_0x305a56+=nodeSize(_0x15e823,_0x4d6bfd[_0x10c496]);let _0x384c89=Math['ceil'](1.5*_0x305a56/0x8),_0x22cc4c=[],_0x24c8a6=[];return function _0x3c21a3(_0x5573b2,_0xc9115e,_0x38aad0,_0x55f3e0,_0x2348e1){for(let _0x76256=_0x38aad0;_0x76256<_0x55f3e0;){let _0x43fb53=_0x76256,_0x3e6e44=_0xc9115e[_0x76256],_0x1ebeae=nodeSize(_0x15e823,_0x5573b2[_0x76256]);for(_0x76256++;_0x76256<_0x55f3e0;_0x76256++){let _0x16d8dc=nodeSize(_0x15e823,_0x5573b2[_0x76256]);if(_0x1ebeae+_0x16d8dc>=_0x384c89)break;_0x1ebeae+=_0x16d8dc;}if(_0x76256==_0x43fb53+0x1){if(_0x1ebeae>_0x384c89){let _0x46c48d=_0x5573b2[_0x43fb53];_0x3c21a3(_0x46c48d['children'],_0x46c48d['positions'],0x0,_0x46c48d['children']['length'],_0xc9115e[_0x43fb53]+_0x2348e1);continue;}_0x22cc4c['push'](_0x5573b2[_0x43fb53]);}else{let _0x54fae6=_0xc9115e[_0x76256-0x1]+_0x5573b2[_0x76256-0x1]['length']-_0x3e6e44;_0x22cc4c['push'](balanceRange(_0x15e823,_0x5573b2,_0xc9115e,_0x43fb53,_0x76256,_0x3e6e44,_0x54fae6,null,_0x255f5b));}_0x24c8a6['push'](_0x3e6e44+_0x2348e1-_0x37ded5);}}(_0x4d6bfd,_0x11643e,_0x4647c7,_0x16d31a,0x0),(_0x5101c8||_0x255f5b)(_0x22cc4c,_0x24c8a6,_0x47113f);}class NodeWeakMap{constructor(){this['map']=new WeakMap();}['setBuffer'](_0x108bfa,_0x4b2783,_0x34a8e0){let _0x5e0e6d=this['map']['get'](_0x108bfa);_0x5e0e6d||this['map']['set'](_0x108bfa,_0x5e0e6d=new Map()),_0x5e0e6d['set'](_0x4b2783,_0x34a8e0);}['getBuffer'](_0x989cf0,_0x1f1275){let _0x938659=this['map']['get'](_0x989cf0);return _0x938659&&_0x938659['get'](_0x1f1275);}['set'](_0x35eb3e,_0x4cbef4){_0x35eb3e instanceof BufferNode?this['setBuffer'](_0x35eb3e['context']['buffer'],_0x35eb3e['index'],_0x4cbef4):_0x35eb3e instanceof TreeNode&&this['map']['set'](_0x35eb3e['tree'],_0x4cbef4);}['get'](_0x3b1e15){return _0x3b1e15 instanceof BufferNode?this['getBuffer'](_0x3b1e15['context']['buffer'],_0x3b1e15['index']):_0x3b1e15 instanceof TreeNode?this['map']['get'](_0x3b1e15['tree']):void 0x0;}['cursorSet'](_0x18c3da,_0x5f4afb){_0x18c3da['buffer']?this['setBuffer'](_0x18c3da['buffer']['buffer'],_0x18c3da['index'],_0x5f4afb):this['map']['set'](_0x18c3da['tree'],_0x5f4afb);}['cursorGet'](_0x1a3ff3){return _0x1a3ff3['buffer']?this['getBuffer'](_0x1a3ff3['buffer']['buffer'],_0x1a3ff3['index']):this['map']['get'](_0x1a3ff3['tree']);}}class TreeFragment{constructor(_0x4925f9,_0x14cf78,_0xed01cf,_0x4f7c16,_0x4cf87f=!0x1,_0x21f6ee=!0x1){this['from']=_0x4925f9,this['to']=_0x14cf78,this['tree']=_0xed01cf,this['offset']=_0x4f7c16,this['open']=(_0x4cf87f?0x1:0x0)|(_0x21f6ee?0x2:0x0);}get['openStart'](){return(0x1&this['open'])>0x0;}get['openEnd'](){return(0x2&this['open'])>0x0;}static['addTree'](_0x2644ef,_0x46789c=[],_0x56cb6e=!0x1){let _0x5cbfc6=[new TreeFragment(0x0,_0x2644ef['length'],_0x2644ef,0x0,!0x1,_0x56cb6e)];for(let _0x4558ea of _0x46789c)_0x4558ea['to']>_0x2644ef['length']&&_0x5cbfc6['push'](_0x4558ea);return _0x5cbfc6;}static['applyChanges'](_0x5de9bb,_0x335264,_0x544487=0x80){if(!_0x335264['length'])return _0x5de9bb;let _0x28fa81=[],_0x447731=0x1,_0x2003e8=_0x5de9bb['length']?_0x5de9bb[0x0]:null;for(let _0x34c430=0x0,_0x45990c=0x0,_0x56aff1=0x0;;_0x34c430++){let _0x309b92=_0x34c430<_0x335264['length']?_0x335264[_0x34c430]:null,_0x2be768=_0x309b92?_0x309b92['fromA']:0x3b9aca00;if(_0x2be768-_0x45990c>=_0x544487)for(;_0x2003e8&&_0x2003e8['from']<_0x2be768;){let _0x2bf342=_0x2003e8;if(_0x45990c>=_0x2bf342['from']||_0x2be768<=_0x2bf342['to']||_0x56aff1){let _0x1b6430=Math['max'](_0x2bf342['from'],_0x45990c)-_0x56aff1,_0x4e5d0c=Math['min'](_0x2bf342['to'],_0x2be768)-_0x56aff1;_0x2bf342=_0x1b6430>=_0x4e5d0c?null:new TreeFragment(_0x1b6430,_0x4e5d0c,_0x2bf342['tree'],_0x2bf342['offset']+_0x56aff1,_0x34c430>0x0,!!_0x309b92);}if(_0x2bf342&&_0x28fa81['push'](_0x2bf342),_0x2003e8['to']>_0x2be768)break;_0x2003e8=_0x447731<_0x5de9bb['length']?_0x5de9bb[_0x447731++]:null;}if(!_0x309b92)break;_0x45990c=_0x309b92['toA'],_0x56aff1=_0x309b92['toA']-_0x309b92['toB'];}return _0x28fa81;}}class Parser{['startParse'](_0x11eaff,_0x1444b9,_0x442e7c){return'string'==typeof _0x11eaff&&(_0x11eaff=new StringInput(_0x11eaff)),_0x442e7c=_0x442e7c?_0x442e7c['length']?_0x442e7c['map'](_0x250ad6=>new Range(_0x250ad6['from'],_0x250ad6['to'])):[new Range(0x0,0x0)]:[new Range(0x0,_0x11eaff['length'])],this['createParse'](_0x11eaff,_0x1444b9||[],_0x442e7c);}['parse'](_0x1205ef,_0x142e33,_0x511e0f){let _0x1dd36a=this['startParse'](_0x1205ef,_0x142e33,_0x511e0f);for(;;){let _0x53a65f=_0x1dd36a['advance']();if(_0x53a65f)return _0x53a65f;}}}class StringInput{constructor(_0x5ec2ab){this['string']=_0x5ec2ab;}get['length'](){return this['string']['length'];}['chunk'](_0x2bb713){return this['string']['slice'](_0x2bb713);}get['lineChunks'](){return!0x1;}['read'](_0x512955,_0x2a1ac4){return this['string']['slice'](_0x512955,_0x2a1ac4);}}function parseMixed(_0x41d434){return(_0x14b648,_0x42d93c,_0x538313,_0x5cb282)=>new MixedParse(_0x14b648,_0x41d434,_0x42d93c,_0x538313,_0x5cb282);}class InnerParse{constructor(_0x844045,_0x3b67b9,_0x3f9146,_0x189256,_0x3a3bf5){this['parser']=_0x844045,this['parse']=_0x3b67b9,this['overlay']=_0x3f9146,this['target']=_0x189256,this['from']=_0x3a3bf5;}}function checkRanges(_0x349b98){if(!_0x349b98['length']||_0x349b98['some'](_0x57afce=>_0x57afce['from']>=_0x57afce['to']))throw new RangeError('Invalid\x20inner\x20parse\x20ranges\x20given:\x20'+JSON['stringify'](_0x349b98));}class ActiveOverlay{constructor(_0x669f6b,_0x44193f,_0x55b893,_0xae45ce,_0x3cb816,_0x570970,_0x226955){this['parser']=_0x669f6b,this['predicate']=_0x44193f,this['mounts']=_0x55b893,this['index']=_0xae45ce,this['start']=_0x3cb816,this['target']=_0x570970,this['prev']=_0x226955,this['depth']=0x0,this['ranges']=[];}}const stoppedInner=new NodeProp({'perNode':!0x0});class MixedParse{constructor(_0x16b229,_0x4f0c08,_0x534763,_0x4b4a66,_0x36d9e8){this['nest']=_0x4f0c08,this['input']=_0x534763,this['fragments']=_0x4b4a66,this['ranges']=_0x36d9e8,this['inner']=[],this['innerDone']=0x0,this['baseTree']=null,this['stoppedAt']=null,this['baseParse']=_0x16b229;}['advance'](){if(this['baseParse']){let _0x2e4111=this['baseParse']['advance']();if(!_0x2e4111)return null;if(this['baseParse']=null,this['baseTree']=_0x2e4111,this['startInner'](),null!=this['stoppedAt']){for(let _0x32b0b1 of this['inner'])_0x32b0b1['parse']['stopAt'](this['stoppedAt']);}}if(this['innerDone']==this['inner']['length']){let _0x459588=this['baseTree'];return null!=this['stoppedAt']&&(_0x459588=new Tree(_0x459588['type'],_0x459588['children'],_0x459588['positions'],_0x459588['length'],_0x459588['propValues']['concat']([[stoppedInner,this['stoppedAt']]]))),_0x459588;}let _0x32759a=this['inner'][this['innerDone']],_0x2f7dd6=_0x32759a['parse']['advance']();if(_0x2f7dd6){this['innerDone']++;let _0x38bd00=Object['assign'](Object['create'](null),_0x32759a['target']['props']);_0x38bd00[NodeProp['mounted']['id']]=new MountedTree(_0x2f7dd6,_0x32759a['overlay'],_0x32759a['parser']),_0x32759a['target']['props']=_0x38bd00;}return null;}get['parsedPos'](){if(this['baseParse'])return 0x0;let _0x593a2e=this['input']['length'];for(let _0x166c63=this['innerDone'];_0x166c63<this['inner']['length'];_0x166c63++)this['inner'][_0x166c63]['from']<_0x593a2e&&(_0x593a2e=Math['min'](_0x593a2e,this['inner'][_0x166c63]['parse']['parsedPos']));return _0x593a2e;}['stopAt'](_0x4ddff0){if(this['stoppedAt']=_0x4ddff0,this['baseParse'])this['baseParse']['stopAt'](_0x4ddff0);else{for(let _0x277079=this['innerDone'];_0x277079<this['inner']['length'];_0x277079++)this['inner'][_0x277079]['parse']['stopAt'](_0x4ddff0);}}['startInner'](){let _0x571f51=new FragmentCursor$2(this['fragments']),_0x11f480=null,_0x29ef35=null,_0x2f07f4=new TreeCursor(new TreeNode(this['baseTree'],this['ranges'][0x0]['from'],0x0,null),IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);t:for(let _0x1597a9,_0x4bf5d5;;){let _0x5034d6,_0x1f743a=!0x0;if(null!=this['stoppedAt']&&_0x2f07f4['from']>=this['stoppedAt'])_0x1f743a=!0x1;else{if(_0x571f51['hasNode'](_0x2f07f4)){if(_0x11f480){let _0x5d8db9=_0x11f480['mounts']['find'](_0x108c9d=>_0x108c9d['frag']['from']<=_0x2f07f4['from']&&_0x108c9d['frag']['to']>=_0x2f07f4['to']&&_0x108c9d['mount']['overlay']);if(_0x5d8db9)for(let _0x1cfe6b of _0x5d8db9['mount']['overlay']){let _0xea54a7=_0x1cfe6b['from']+_0x5d8db9['pos'],_0x58a5f0=_0x1cfe6b['to']+_0x5d8db9['pos'];_0xea54a7>=_0x2f07f4['from']&&_0x58a5f0<=_0x2f07f4['to']&&!_0x11f480['ranges']['some'](_0x4a1e9a=>_0x4a1e9a['from']<_0x58a5f0&&_0x4a1e9a['to']>_0xea54a7)&&_0x11f480['ranges']['push']({'from':_0xea54a7,'to':_0x58a5f0});}}_0x1f743a=!0x1;}else{if(_0x29ef35&&(_0x4bf5d5=checkCover(_0x29ef35['ranges'],_0x2f07f4['from'],_0x2f07f4['to'])))_0x1f743a=0x2!=_0x4bf5d5;else{if(!_0x2f07f4['type']['isAnonymous']&&(_0x1597a9=this['nest'](_0x2f07f4,this['input']))&&(_0x2f07f4['from']<_0x2f07f4['to']||!_0x1597a9['overlay'])){_0x2f07f4['tree']||(materialize(_0x2f07f4),_0x11f480&&_0x11f480['depth']++,_0x29ef35&&_0x29ef35['depth']++);let _0x377412=_0x571f51['findMounts'](_0x2f07f4['from'],_0x1597a9['parser']);if('function'==typeof _0x1597a9['overlay'])_0x11f480=new ActiveOverlay(_0x1597a9['parser'],_0x1597a9['overlay'],_0x377412,this['inner']['length'],_0x2f07f4['from'],_0x2f07f4['tree'],_0x11f480);else{let _0x313b0b=punchRanges(this['ranges'],_0x1597a9['overlay']||(_0x2f07f4['from']<_0x2f07f4['to']?[new Range(_0x2f07f4['from'],_0x2f07f4['to'])]:[]));_0x313b0b['length']&&checkRanges(_0x313b0b),!_0x313b0b['length']&&_0x1597a9['overlay']||this['inner']['push'](new InnerParse(_0x1597a9['parser'],_0x313b0b['length']?_0x1597a9['parser']['startParse'](this['input'],enterFragments(_0x377412,_0x313b0b),_0x313b0b):_0x1597a9['parser']['startParse'](''),_0x1597a9['overlay']?_0x1597a9['overlay']['map'](_0x21f413=>new Range(_0x21f413['from']-_0x2f07f4['from'],_0x21f413['to']-_0x2f07f4['from'])):null,_0x2f07f4['tree'],_0x313b0b['length']?_0x313b0b[0x0]['from']:_0x2f07f4['from'])),_0x1597a9['overlay']?_0x313b0b['length']&&(_0x29ef35={'ranges':_0x313b0b,'depth':0x0,'prev':_0x29ef35}):_0x1f743a=!0x1;}}else{if(_0x11f480&&(_0x5034d6=_0x11f480['predicate'](_0x2f07f4))&&(!0x0===_0x5034d6&&(_0x5034d6=new Range(_0x2f07f4['from'],_0x2f07f4['to'])),_0x5034d6['from']<_0x5034d6['to'])){let _0x1b4aee=_0x11f480['ranges']['length']-0x1;_0x1b4aee>=0x0&&_0x11f480['ranges'][_0x1b4aee]['to']==_0x5034d6['from']?_0x11f480['ranges'][_0x1b4aee]={'from':_0x11f480['ranges'][_0x1b4aee]['from'],'to':_0x5034d6['to']}:_0x11f480['ranges']['push'](_0x5034d6);}}}}}if(_0x1f743a&&_0x2f07f4['firstChild']())_0x11f480&&_0x11f480['depth']++,_0x29ef35&&_0x29ef35['depth']++;else for(;!_0x2f07f4['nextSibling']();){if(!_0x2f07f4['parent']())break t;if(_0x11f480&&!--_0x11f480['depth']){let _0x3fe773=punchRanges(this['ranges'],_0x11f480['ranges']);_0x3fe773['length']&&(checkRanges(_0x3fe773),this['inner']['splice'](_0x11f480['index'],0x0,new InnerParse(_0x11f480['parser'],_0x11f480['parser']['startParse'](this['input'],enterFragments(_0x11f480['mounts'],_0x3fe773),_0x3fe773),_0x11f480['ranges']['map'](_0x71efde=>new Range(_0x71efde['from']-_0x11f480['start'],_0x71efde['to']-_0x11f480['start'])),_0x11f480['target'],_0x3fe773[0x0]['from']))),_0x11f480=_0x11f480['prev'];}_0x29ef35&&!--_0x29ef35['depth']&&(_0x29ef35=_0x29ef35['prev']);}}}}function checkCover(_0x35670d,_0x32d4f6,_0x18c975){for(let _0x574787 of _0x35670d){if(_0x574787['from']>=_0x18c975)break;if(_0x574787['to']>_0x32d4f6)return _0x574787['from']<=_0x32d4f6&&_0x574787['to']>=_0x18c975?0x2:0x1;}return 0x0;}function sliceBuf(_0x4d1b0b,_0x3f9d94,_0x14cfc7,_0x362ddc,_0x3bdd5a,_0x3a4b7a){if(_0x3f9d94<_0x14cfc7){let _0x8afedd=_0x4d1b0b['buffer'][_0x3f9d94+0x1];_0x362ddc['push'](_0x4d1b0b['slice'](_0x3f9d94,_0x14cfc7,_0x8afedd)),_0x3bdd5a['push'](_0x8afedd-_0x3a4b7a);}}function materialize(_0x448c3b){let {node:_0x1dd236}=_0x448c3b,_0x11a521=[],_0x25a327=_0x1dd236['context']['buffer'];do{_0x11a521['push'](_0x448c3b['index']),_0x448c3b['parent']();}while(!_0x448c3b['tree']);let _0x357d56=_0x448c3b['tree'],_0x55d980=_0x357d56['children']['indexOf'](_0x25a327),_0x4c314f=_0x357d56['children'][_0x55d980],_0x403fbb=_0x4c314f['buffer'],_0x59c356=[_0x55d980];_0x357d56['children'][_0x55d980]=function _0x6b204e(_0x565dde,_0x4bdfe0,_0x5d73e8,_0x17a159,_0x282f16,_0x21ff37){let _0x4fd6ff=_0x11a521[_0x21ff37],_0x182efd=[],_0x431761=[];sliceBuf(_0x4c314f,_0x565dde,_0x4fd6ff,_0x182efd,_0x431761,_0x17a159);let _0x4d9dbc=_0x403fbb[_0x4fd6ff+0x1],_0x512591=_0x403fbb[_0x4fd6ff+0x2];_0x59c356['push'](_0x182efd['length']);let _0x25c3df=_0x21ff37?_0x6b204e(_0x4fd6ff+0x4,_0x403fbb[_0x4fd6ff+0x3],_0x4c314f['set']['types'][_0x403fbb[_0x4fd6ff]],_0x4d9dbc,_0x512591-_0x4d9dbc,_0x21ff37-0x1):_0x1dd236['toTree']();return _0x182efd['push'](_0x25c3df),_0x431761['push'](_0x4d9dbc-_0x17a159),sliceBuf(_0x4c314f,_0x403fbb[_0x4fd6ff+0x3],_0x4bdfe0,_0x182efd,_0x431761,_0x17a159),new Tree(_0x5d73e8,_0x182efd,_0x431761,_0x282f16);}(0x0,_0x403fbb['length'],NodeType['none'],0x0,_0x4c314f['length'],_0x11a521['length']-0x1);for(let _0x4f01cb of _0x59c356){let _0x28ce89=_0x448c3b['tree']['children'][_0x4f01cb],_0x3c7591=_0x448c3b['tree']['positions'][_0x4f01cb];_0x448c3b['yield'](new TreeNode(_0x28ce89,_0x3c7591+_0x448c3b['from'],_0x4f01cb,_0x448c3b['_tree']));}}class StructureCursor{constructor(_0x37f3f5,_0x197c3a){this['offset']=_0x197c3a,this['done']=!0x1,this['cursor']=_0x37f3f5['cursor'](IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);}['moveTo'](_0x15d049){let {cursor:_0x28d791}=this,_0x549c5b=_0x15d049-this['offset'];for(;!this['done']&&_0x28d791['from']<_0x549c5b;)_0x28d791['to']>=_0x15d049&&_0x28d791['enter'](_0x549c5b,0x1,IterMode['IgnoreOverlays']|IterMode['ExcludeBuffers'])||_0x28d791['next'](!0x1)||(this['done']=!0x0);}['hasNode'](_0x15b488){if(this['moveTo'](_0x15b488['from']),!this['done']&&this['cursor']['from']+this['offset']==_0x15b488['from']&&this['cursor']['tree'])for(let _0xf68c70=this['cursor']['tree'];;){if(_0xf68c70==_0x15b488['tree'])return!0x0;if(!(_0xf68c70['children']['length']&&0x0==_0xf68c70['positions'][0x0]&&_0xf68c70['children'][0x0]instanceof Tree))break;_0xf68c70=_0xf68c70['children'][0x0];}return!0x1;}}let FragmentCursor$2=class{constructor(_0x420cd8){var _0x4e9fdc;if(this['fragments']=_0x420cd8,this['curTo']=0x0,this['fragI']=0x0,_0x420cd8['length']){let _0x43df96=this['curFrag']=_0x420cd8[0x0];this['curTo']=null!==(_0x4e9fdc=_0x43df96['tree']['prop'](stoppedInner))&&void 0x0!==_0x4e9fdc?_0x4e9fdc:_0x43df96['to'],this['inner']=new StructureCursor(_0x43df96['tree'],-_0x43df96['offset']);}else this['curFrag']=this['inner']=null;}['hasNode'](_0x4d0a08){for(;this['curFrag']&&_0x4d0a08['from']>=this['curTo'];)this['nextFrag']();return this['curFrag']&&this['curFrag']['from']<=_0x4d0a08['from']&&this['curTo']>=_0x4d0a08['to']&&this['inner']['hasNode'](_0x4d0a08);}['nextFrag'](){var _0x10ff9c;if(this['fragI']++,this['fragI']==this['fragments']['length'])this['curFrag']=this['inner']=null;else{let _0xaf89f7=this['curFrag']=this['fragments'][this['fragI']];this['curTo']=null!==(_0x10ff9c=_0xaf89f7['tree']['prop'](stoppedInner))&&void 0x0!==_0x10ff9c?_0x10ff9c:_0xaf89f7['to'],this['inner']=new StructureCursor(_0xaf89f7['tree'],-_0xaf89f7['offset']);}}['findMounts'](_0x31bdf8,_0x48e78d){var _0x234eeb;let _0x10861d=[];if(this['inner']){this['inner']['cursor']['moveTo'](_0x31bdf8,0x1);for(let _0x494ba0=this['inner']['cursor']['node'];_0x494ba0;_0x494ba0=_0x494ba0['parent']){let _0x3d7066=null===(_0x234eeb=_0x494ba0['tree'])||void 0x0===_0x234eeb?void 0x0:_0x234eeb['prop'](NodeProp['mounted']);if(_0x3d7066&&_0x3d7066['parser']==_0x48e78d)for(let _0x23777f=this['fragI'];_0x23777f<this['fragments']['length'];_0x23777f++){let _0x62bee=this['fragments'][_0x23777f];if(_0x62bee['from']>=_0x494ba0['to'])break;_0x62bee['tree']==this['curFrag']['tree']&&_0x10861d['push']({'frag':_0x62bee,'pos':_0x494ba0['from']-_0x62bee['offset'],'mount':_0x3d7066});}}}return _0x10861d;}};function punchRanges(_0x79590c,_0x197d9c){let _0x2ff43d=null,_0x401ed7=_0x197d9c;for(let _0x55894e=0x1,_0x19fbe6=0x0;_0x55894e<_0x79590c['length'];_0x55894e++){let _0x45bd64=_0x79590c[_0x55894e-0x1]['to'],_0x379470=_0x79590c[_0x55894e]['from'];for(;_0x19fbe6<_0x401ed7['length'];_0x19fbe6++){let _0x19f840=_0x401ed7[_0x19fbe6];if(_0x19f840['from']>=_0x379470)break;_0x19f840['to']<=_0x45bd64||(_0x2ff43d||(_0x401ed7=_0x2ff43d=_0x197d9c['slice']()),_0x19f840['from']<_0x45bd64?(_0x2ff43d[_0x19fbe6]=new Range(_0x19f840['from'],_0x45bd64),_0x19f840['to']>_0x379470&&_0x2ff43d['splice'](_0x19fbe6+0x1,0x0,new Range(_0x379470,_0x19f840['to']))):_0x19f840['to']>_0x379470?_0x2ff43d[_0x19fbe6--]=new Range(_0x379470,_0x19f840['to']):_0x2ff43d['splice'](_0x19fbe6--,0x1));}}return _0x401ed7;}function findCoverChanges(_0x28f308,_0x37a51c,_0x5e8199,_0x104ba){let _0x275ba7=0x0,_0x44f66b=0x0,_0x4ec210=!0x1,_0x50c458=!0x1,_0x898b98=-0x3b9aca00,_0x28db4a=[];for(;;){let _0x5064cb=_0x275ba7==_0x28f308['length']?0x3b9aca00:_0x4ec210?_0x28f308[_0x275ba7]['to']:_0x28f308[_0x275ba7]['from'],_0x4a276a=_0x44f66b==_0x37a51c['length']?0x3b9aca00:_0x50c458?_0x37a51c[_0x44f66b]['to']:_0x37a51c[_0x44f66b]['from'];if(_0x4ec210!=_0x50c458){let _0xa46e3e=Math['max'](_0x898b98,_0x5e8199),_0x493ce6=Math['min'](_0x5064cb,_0x4a276a,_0x104ba);_0xa46e3e<_0x493ce6&&_0x28db4a['push'](new Range(_0xa46e3e,_0x493ce6));}if(_0x898b98=Math['min'](_0x5064cb,_0x4a276a),0x3b9aca00==_0x898b98)break;_0x5064cb==_0x898b98&&(_0x4ec210?(_0x4ec210=!0x1,_0x275ba7++):_0x4ec210=!0x0),_0x4a276a==_0x898b98&&(_0x50c458?(_0x50c458=!0x1,_0x44f66b++):_0x50c458=!0x0);}return _0x28db4a;}function enterFragments(_0x3d24da,_0x300239){let _0x149815=[];for(let {pos:_0x449357,mount:_0x275736,frag:_0x47e0db}of _0x3d24da){let _0x536f59=_0x449357+(_0x275736['overlay']?_0x275736['overlay'][0x0]['from']:0x0),_0x379163=_0x536f59+_0x275736['tree']['length'],_0x119e87=Math['max'](_0x47e0db['from'],_0x536f59),_0x365135=Math['min'](_0x47e0db['to'],_0x379163);if(_0x275736['overlay']){let _0x584e97=findCoverChanges(_0x300239,_0x275736['overlay']['map'](_0x497680=>new Range(_0x497680['from']+_0x449357,_0x497680['to']+_0x449357)),_0x119e87,_0x365135);for(let _0x42c939=0x0,_0x21fe9c=_0x119e87;;_0x42c939++){let _0x1dd258=_0x42c939==_0x584e97['length'],_0x489751=_0x1dd258?_0x365135:_0x584e97[_0x42c939]['from'];if(_0x489751>_0x21fe9c&&_0x149815['push'](new TreeFragment(_0x21fe9c,_0x489751,_0x275736['tree'],-_0x536f59,_0x47e0db['from']>=_0x21fe9c||_0x47e0db['openStart'],_0x47e0db['to']<=_0x489751||_0x47e0db['openEnd'])),_0x1dd258)break;_0x21fe9c=_0x584e97[_0x42c939]['to'];}}else _0x149815['push'](new TreeFragment(_0x119e87,_0x365135,_0x275736['tree'],-_0x536f59,_0x47e0db['from']>=_0x536f59||_0x47e0db['openStart'],_0x47e0db['to']<=_0x379163||_0x47e0db['openEnd']));}return _0x149815;}let nextTagID=0x0;class Tag{constructor(_0x475524,_0x14175b,_0x24474a,_0x40e5e3){this['name']=_0x475524,this['set']=_0x14175b,this['base']=_0x24474a,this['modified']=_0x40e5e3,this['id']=nextTagID++;}['toString'](){let {name:_0x4c3dff}=this;for(let _0x149d5a of this['modified'])_0x149d5a['name']&&(_0x4c3dff=_0x149d5a['name']+'('+_0x4c3dff+')');return _0x4c3dff;}static['define'](_0x61cd76,_0x4edd69){let _0x3e60cd='string'==typeof _0x61cd76?_0x61cd76:'?';if(_0x61cd76 instanceof Tag&&(_0x4edd69=_0x61cd76),null==_0x4edd69?void 0x0:_0x4edd69['base'])throw new Error('Can\x20not\x20derive\x20from\x20a\x20modified\x20tag');let _0xda6aca=new Tag(_0x3e60cd,[],null,[]);if(_0xda6aca['set']['push'](_0xda6aca),_0x4edd69){for(let t of _0x4edd69['set'])_0xda6aca['set']['push'](t);}return _0xda6aca;}static['defineModifier'](_0x12a0a6){let _0x1125cd=new Modifier(_0x12a0a6);return _0x1a2554=>_0x1a2554['modified']['indexOf'](_0x1125cd)>-0x1?_0x1a2554:Modifier['get'](_0x1a2554['base']||_0x1a2554,_0x1a2554['modified']['concat'](_0x1125cd)['sort']((_0x14540f,_0x4ed513)=>_0x14540f['id']-_0x4ed513['id']));}}let nextModifierID=0x0;class Modifier{constructor(_0x3d65c6){this['name']=_0x3d65c6,this['instances']=[],this['id']=nextModifierID++;}static['get'](_0x57e081,_0x23ba69){if(!_0x23ba69['length'])return _0x57e081;let _0x5e6483=_0x23ba69[0x0]['instances']['find'](t=>t['base']==_0x57e081&&sameArray(_0x23ba69,t['modified']));if(_0x5e6483)return _0x5e6483;let _0x47706a=[],_0x4aad16=new Tag(_0x57e081['name'],_0x47706a,_0x57e081,_0x23ba69);for(let _0x3dbd86 of _0x23ba69)_0x3dbd86['instances']['push'](_0x4aad16);let _0x2faf52=powerSet(_0x23ba69);for(let _0x3ad126 of _0x57e081['set'])if(!_0x3ad126['modified']['length']){for(let _0x48e71d of _0x2faf52)_0x47706a['push'](Modifier['get'](_0x3ad126,_0x48e71d));}return _0x4aad16;}}function sameArray(_0x5235de,_0x36dccd){return _0x5235de['length']==_0x36dccd['length']&&_0x5235de['every']((_0x255de8,_0x3f1ea4)=>_0x255de8==_0x36dccd[_0x3f1ea4]);}function powerSet(_0x3cd33d){let _0x3659ce=[[]];for(let _0x387611=0x0;_0x387611<_0x3cd33d['length'];_0x387611++)for(let _0x13df53=0x0,_0x139801=_0x3659ce['length'];_0x13df53<_0x139801;_0x13df53++)_0x3659ce['push'](_0x3659ce[_0x13df53]['concat'](_0x3cd33d[_0x387611]));return _0x3659ce['sort']((_0x339e68,_0x5b358a)=>_0x5b358a['length']-_0x339e68['length']);}function styleTags(_0x2e05e7){let _0x546a4d=Object['create'](null);for(let _0x3640a0 in _0x2e05e7){let _0x387768=_0x2e05e7[_0x3640a0];Array['isArray'](_0x387768)||(_0x387768=[_0x387768]);for(let _0x19c319 of _0x3640a0['split']('\x20'))if(_0x19c319){let _0x2eefda=[],_0x4f74ba=0x2,_0x467d98=_0x19c319;for(let _0x470c21=0x0;;){if('...'==_0x467d98&&_0x470c21>0x0&&_0x470c21+0x3==_0x19c319['length']){_0x4f74ba=0x1;break;}let _0x279ef8=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/['exec'](_0x467d98);if(!_0x279ef8)throw new RangeError('Invalid\x20path:\x20'+_0x19c319);if(_0x2eefda['push']('*'==_0x279ef8[0x0]?'':'\x22'==_0x279ef8[0x0][0x0]?JSON['parse'](_0x279ef8[0x0]):_0x279ef8[0x0]),_0x470c21+=_0x279ef8[0x0]['length'],_0x470c21==_0x19c319['length'])break;let _0x1bf7fd=_0x19c319[_0x470c21++];if(_0x470c21==_0x19c319['length']&&'!'==_0x1bf7fd){_0x4f74ba=0x0;break;}if('/'!=_0x1bf7fd)throw new RangeError('Invalid\x20path:\x20'+_0x19c319);_0x467d98=_0x19c319['slice'](_0x470c21);}let _0x33c3ae=_0x2eefda['length']-0x1,_0x18df9c=_0x2eefda[_0x33c3ae];if(!_0x18df9c)throw new RangeError('Invalid\x20path:\x20'+_0x19c319);let _0x5ca774=new Rule(_0x387768,_0x4f74ba,_0x33c3ae>0x0?_0x2eefda['slice'](0x0,_0x33c3ae):null);_0x546a4d[_0x18df9c]=_0x5ca774['sort'](_0x546a4d[_0x18df9c]);}}return ruleNodeProp['add'](_0x546a4d);}const ruleNodeProp=new NodeProp({'combine'(_0xa495d3,_0x489aa1){let _0x3d2f55,_0x281539,_0x45a2ff;for(;_0xa495d3||_0x489aa1;){if(!_0xa495d3||_0x489aa1&&_0xa495d3['depth']>=_0x489aa1['depth']?(_0x45a2ff=_0x489aa1,_0x489aa1=_0x489aa1['next']):(_0x45a2ff=_0xa495d3,_0xa495d3=_0xa495d3['next']),_0x3d2f55&&_0x3d2f55['mode']==_0x45a2ff['mode']&&!_0x45a2ff['context']&&!_0x3d2f55['context'])continue;let _0x57f555=new Rule(_0x45a2ff['tags'],_0x45a2ff['mode'],_0x45a2ff['context']);_0x3d2f55?_0x3d2f55['next']=_0x57f555:_0x281539=_0x57f555,_0x3d2f55=_0x57f555;}return _0x281539;}});class Rule{constructor(_0xf721c8,_0x5b5c9a,_0x379be6,_0x2d438d){this['tags']=_0xf721c8,this['mode']=_0x5b5c9a,this['context']=_0x379be6,this['next']=_0x2d438d;}get['opaque'](){return 0x0==this['mode'];}get['inherit'](){return 0x1==this['mode'];}['sort'](_0x5aacdb){return!_0x5aacdb||_0x5aacdb['depth']<this['depth']?(this['next']=_0x5aacdb,this):(_0x5aacdb['next']=this['sort'](_0x5aacdb['next']),_0x5aacdb);}get['depth'](){return this['context']?this['context']['length']:0x0;}}function tagHighlighter(_0x329320,_0x3c61a0){let _0xe85589=Object['create'](null);for(let _0x53bb5c of _0x329320)if(Array['isArray'](_0x53bb5c['tag'])){for(let _0x54b6e7 of _0x53bb5c['tag'])_0xe85589[_0x54b6e7['id']]=_0x53bb5c['class'];}else _0xe85589[_0x53bb5c['tag']['id']]=_0x53bb5c['class'];let {scope:_0x471f46,all:_0x146ff0=null}=_0x3c61a0||{};return{'style':_0x5c5287=>{let _0x1e9926=_0x146ff0;for(let _0x15ae9a of _0x5c5287)for(let _0x2a55c9 of _0x15ae9a['set']){let _0x12cd4b=_0xe85589[_0x2a55c9['id']];if(_0x12cd4b){_0x1e9926=_0x1e9926?_0x1e9926+'\x20'+_0x12cd4b:_0x12cd4b;break;}}return _0x1e9926;},'scope':_0x471f46};}function highlightTags(_0x48336c,_0x2617d4){let _0x3ab838=null;for(let _0x21fcfc of _0x48336c){let _0x2bf63a=_0x21fcfc['style'](_0x2617d4);_0x2bf63a&&(_0x3ab838=_0x3ab838?_0x3ab838+'\x20'+_0x2bf63a:_0x2bf63a);}return _0x3ab838;}function highlightTree(_0x37fee8,_0x2547aa,_0x51e64b,_0x4ead7c=0x0,_0x20f70f=_0x37fee8['length']){let _0x1d4a33=new HighlightBuilder(_0x4ead7c,Array['isArray'](_0x2547aa)?_0x2547aa:[_0x2547aa],_0x51e64b);_0x1d4a33['highlightRange'](_0x37fee8['cursor'](),_0x4ead7c,_0x20f70f,'',_0x1d4a33['highlighters']),_0x1d4a33['flush'](_0x20f70f);}Rule['empty']=new Rule([],0x2,null);class HighlightBuilder{constructor(_0x45c212,_0x37c52a,_0x45ca6a){this['at']=_0x45c212,this['highlighters']=_0x37c52a,this['span']=_0x45ca6a,this['class']='';}['startSpan'](_0x1195eb,_0x54959d){_0x54959d!=this['class']&&(this['flush'](_0x1195eb),_0x1195eb>this['at']&&(this['at']=_0x1195eb),this['class']=_0x54959d);}['flush'](_0x5c35d9){_0x5c35d9>this['at']&&this['class']&&this['span'](this['at'],_0x5c35d9,this['class']);}['highlightRange'](_0x474dc3,_0x3cc7e7,_0x21968c,_0x4d81a6,_0x53880e){let {type:_0x38ad5b,from:_0x5ef22b,to:_0x2af854}=_0x474dc3;if(_0x5ef22b>=_0x21968c||_0x2af854<=_0x3cc7e7)return;_0x38ad5b['isTop']&&(_0x53880e=this['highlighters']['filter'](_0x4891f9=>!_0x4891f9['scope']||_0x4891f9['scope'](_0x38ad5b)));let _0x5c4f6a=_0x4d81a6,_0x25132d=getStyleTags(_0x474dc3)||Rule['empty'],_0x12c0af=highlightTags(_0x53880e,_0x25132d['tags']);if(_0x12c0af&&(_0x5c4f6a&&(_0x5c4f6a+='\x20'),_0x5c4f6a+=_0x12c0af,0x1==_0x25132d['mode']&&(_0x4d81a6+=(_0x4d81a6?'\x20':'')+_0x12c0af)),this['startSpan'](Math['max'](_0x3cc7e7,_0x5ef22b),_0x5c4f6a),_0x25132d['opaque'])return;let _0x2fc45a=_0x474dc3['tree']&&_0x474dc3['tree']['prop'](NodeProp['mounted']);if(_0x2fc45a&&_0x2fc45a['overlay']){let _0x3a7e47=_0x474dc3['node']['enter'](_0x2fc45a['overlay'][0x0]['from']+_0x5ef22b,0x1),_0x3f52bd=this['highlighters']['filter'](_0x34c559=>!_0x34c559['scope']||_0x34c559['scope'](_0x2fc45a['tree']['type'])),_0x13ac51=_0x474dc3['firstChild']();for(let _0x5a4f8e=0x0,_0x135c56=_0x5ef22b;;_0x5a4f8e++){let _0x151f2b=_0x5a4f8e<_0x2fc45a['overlay']['length']?_0x2fc45a['overlay'][_0x5a4f8e]:null,_0x4ee826=_0x151f2b?_0x151f2b['from']+_0x5ef22b:_0x2af854,_0x27e016=Math['max'](_0x3cc7e7,_0x135c56),_0x58b45c=Math['min'](_0x21968c,_0x4ee826);if(_0x27e016<_0x58b45c&&_0x13ac51){for(;_0x474dc3['from']<_0x58b45c&&(this['highlightRange'](_0x474dc3,_0x27e016,_0x58b45c,_0x4d81a6,_0x53880e),this['startSpan'](Math['min'](_0x58b45c,_0x474dc3['to']),_0x5c4f6a),!(_0x474dc3['to']>=_0x4ee826)&&_0x474dc3['nextSibling']()););}if(!_0x151f2b||_0x4ee826>_0x21968c)break;_0x135c56=_0x151f2b['to']+_0x5ef22b,_0x135c56>_0x3cc7e7&&(this['highlightRange'](_0x3a7e47['cursor'](),Math['max'](_0x3cc7e7,_0x151f2b['from']+_0x5ef22b),Math['min'](_0x21968c,_0x135c56),'',_0x3f52bd),this['startSpan'](Math['min'](_0x21968c,_0x135c56),_0x5c4f6a));}_0x13ac51&&_0x474dc3['parent']();}else{if(_0x474dc3['firstChild']()){_0x2fc45a&&(_0x4d81a6='');do{if(!(_0x474dc3['to']<=_0x3cc7e7)){if(_0x474dc3['from']>=_0x21968c)break;this['highlightRange'](_0x474dc3,_0x3cc7e7,_0x21968c,_0x4d81a6,_0x53880e),this['startSpan'](Math['min'](_0x21968c,_0x474dc3['to']),_0x5c4f6a);}}while(_0x474dc3['nextSibling']());_0x474dc3['parent']();}}}}function getStyleTags(_0x43ef5f){let _0x19cd16=_0x43ef5f['type']['prop'](ruleNodeProp);for(;_0x19cd16&&_0x19cd16['context']&&!_0x43ef5f['matchContext'](_0x19cd16['context']);)_0x19cd16=_0x19cd16['next'];return _0x19cd16||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;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(_0x2ab8aa){return Facet['define']({'combine':_0x2ab8aa?_0x1444f7=>_0x1444f7['concat'](_0x2ab8aa):void 0x0});}const sublanguageProp=new NodeProp();class Language{constructor(_0x3aecf4,_0x4bb77a,_0x3d27fe=[],_0x2cf383=''){this['data']=_0x3aecf4,this['name']=_0x2cf383,EditorState['prototype']['hasOwnProperty']('tree')||Object['defineProperty'](EditorState['prototype'],'tree',{'get'(){return syntaxTree(this);}}),this['parser']=_0x4bb77a,this['extension']=[language['of'](this),EditorState['languageData']['of']((_0x575485,_0x2db778,_0x34d95a)=>{let _0x5d8d4e=topNodeAt(_0x575485,_0x2db778,_0x34d95a),_0x2e5d7f=_0x5d8d4e['type']['prop'](languageDataProp);if(!_0x2e5d7f)return[];let _0x56298e=_0x575485['facet'](_0x2e5d7f),_0x2f3991=_0x5d8d4e['type']['prop'](sublanguageProp);if(_0x2f3991){let _0x32671a=_0x5d8d4e['resolve'](_0x2db778-_0x5d8d4e['from'],_0x34d95a);for(let _0xbd3ddb of _0x2f3991)if(_0xbd3ddb['test'](_0x32671a,_0x575485)){let _0x130e2e=_0x575485['facet'](_0xbd3ddb['facet']);return'replace'==_0xbd3ddb['type']?_0x130e2e:_0x130e2e['concat'](_0x56298e);}}return _0x56298e;})]['concat'](_0x3d27fe);}['isActiveAt'](_0x559908,_0x1b169c,_0x3af2fe=-0x1){return topNodeAt(_0x559908,_0x1b169c,_0x3af2fe)['type']['prop'](languageDataProp)==this['data'];}['findRegions'](_0x1fd11b){let _0x323114=_0x1fd11b['facet'](language);if((null==_0x323114?void 0x0:_0x323114['data'])==this['data'])return[{'from':0x0,'to':_0x1fd11b['doc']['length']}];if(!_0x323114||!_0x323114['allowsNesting'])return[];let _0x57fd06=[],_0x475a52=(_0xbac25a,_0x1c8380)=>{if(_0xbac25a['prop'](languageDataProp)==this['data'])return void _0x57fd06['push']({'from':_0x1c8380,'to':_0x1c8380+_0xbac25a['length']});let _0x304503=_0xbac25a['prop'](NodeProp['mounted']);if(_0x304503){if(_0x304503['tree']['prop'](languageDataProp)==this['data']){if(_0x304503['overlay']){for(let _0x2e4fe9 of _0x304503['overlay'])_0x57fd06['push']({'from':_0x2e4fe9['from']+_0x1c8380,'to':_0x2e4fe9['to']+_0x1c8380});}else _0x57fd06['push']({'from':_0x1c8380,'to':_0x1c8380+_0xbac25a['length']});return;}if(_0x304503['overlay']){let _0x3e2aff=_0x57fd06['length'];if(_0x475a52(_0x304503['tree'],_0x304503['overlay'][0x0]['from']+_0x1c8380),_0x57fd06['length']>_0x3e2aff)return;}}for(let _0x92720d=0x0;_0x92720d<_0xbac25a['children']['length'];_0x92720d++){let _0x540dff=_0xbac25a['children'][_0x92720d];_0x540dff instanceof Tree&&_0x475a52(_0x540dff,_0xbac25a['positions'][_0x92720d]+_0x1c8380);}};return _0x475a52(syntaxTree(_0x1fd11b),0x0),_0x57fd06;}get['allowsNesting'](){return!0x0;}}function topNodeAt(_0x2aafe2,_0x2e43b9,_0xdc9d97){let _0x3a4e08=_0x2aafe2['facet'](language),_0x2d5a77=syntaxTree(_0x2aafe2)['topNode'];if(!_0x3a4e08||_0x3a4e08['allowsNesting']){for(let _0x5cef83=_0x2d5a77;_0x5cef83;_0x5cef83=_0x5cef83['enter'](_0x2e43b9,_0xdc9d97,IterMode['ExcludeBuffers']))_0x5cef83['type']['isTop']&&(_0x2d5a77=_0x5cef83);}return _0x2d5a77;}Language['setState']=StateEffect['define']();class LRLanguage extends Language{constructor(_0x50dd79,_0x4768bc,_0x108c53){super(_0x50dd79,_0x4768bc,[],_0x108c53),this['parser']=_0x4768bc;}static['define'](_0x315f00){let _0x3022ac=defineLanguageFacet(_0x315f00['languageData']);return new LRLanguage(_0x3022ac,_0x315f00['parser']['configure']({'props':[languageDataProp['add'](_0x1ff613=>_0x1ff613['isTop']?_0x3022ac:void 0x0)]}),_0x315f00['name']);}['configure'](_0x4af987,_0x29471d){return new LRLanguage(this['data'],this['parser']['configure'](_0x4af987),_0x29471d||this['name']);}get['allowsNesting'](){return this['parser']['hasWrappers']();}}function syntaxTree(_0x2f8fbb){let _0x5a6aa5=_0x2f8fbb['field'](Language['state'],!0x1);return _0x5a6aa5?_0x5a6aa5['tree']:Tree['empty'];}class DocInput{constructor(_0x1937a8){this['doc']=_0x1937a8,this['cursorPos']=0x0,this['string']='',this['cursor']=_0x1937a8['iter']();}get['length'](){return this['doc']['length'];}['syncTo'](_0x4ca168){return this['string']=this['cursor']['next'](_0x4ca168-this['cursorPos'])['value'],this['cursorPos']=_0x4ca168+this['string']['length'],this['cursorPos']-this['string']['length'];}['chunk'](_0xf04f4b){return this['syncTo'](_0xf04f4b),this['string'];}get['lineChunks'](){return!0x0;}['read'](_0x15b58b,_0x4928d5){let _0x4c9ff7=this['cursorPos']-this['string']['length'];return _0x15b58b<_0x4c9ff7||_0x4928d5>=this['cursorPos']?this['doc']['sliceString'](_0x15b58b,_0x4928d5):this['string']['slice'](_0x15b58b-_0x4c9ff7,_0x4928d5-_0x4c9ff7);}}let currentContext=null;class ParseContext{constructor(_0x49896f,_0x54380c,_0x5e9fbc=[],_0x532b8a,_0xee466a,_0x2ef9a6,_0x498b3c,_0x518f38){this['parser']=_0x49896f,this['state']=_0x54380c,this['fragments']=_0x5e9fbc,this['tree']=_0x532b8a,this['treeLen']=_0xee466a,this['viewport']=_0x2ef9a6,this['skipped']=_0x498b3c,this['scheduleOn']=_0x518f38,this['parse']=null,this['tempSkipped']=[];}static['create'](_0x149c97,_0x2fb911,_0x1f7700){return new ParseContext(_0x149c97,_0x2fb911,[],Tree['empty'],0x0,_0x1f7700,[],null);}['startParse'](){return this['parser']['startParse'](new DocInput(this['state']['doc']),this['fragments']);}['work'](_0x40b3b9,_0x525d0e){return null!=_0x525d0e&&_0x525d0e>=this['state']['doc']['length']&&(_0x525d0e=void 0x0),this['tree']!=Tree['empty']&&this['isDone'](null!=_0x525d0e?_0x525d0e:this['state']['doc']['length'])?(this['takeTree'](),!0x0):this['withContext'](()=>{var _0x3c8d0e;if('number'==typeof _0x40b3b9){let _0x523680=Date['now']()+_0x40b3b9;_0x40b3b9=()=>Date['now']()>_0x523680;}for(this['parse']||(this['parse']=this['startParse']()),null!=_0x525d0e&&(null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x525d0e)&&_0x525d0e<this['state']['doc']['length']&&this['parse']['stopAt'](_0x525d0e);;){let _0x4690eb=this['parse']['advance']();if(_0x4690eb){if(this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](_0x4690eb,this['fragments'],null!=this['parse']['stoppedAt'])),this['treeLen']=null!==(_0x3c8d0e=this['parse']['stoppedAt'])&&void 0x0!==_0x3c8d0e?_0x3c8d0e:this['state']['doc']['length'],this['tree']=_0x4690eb,this['parse']=null,!(this['treeLen']<(null!=_0x525d0e?_0x525d0e:this['state']['doc']['length'])))return!0x0;this['parse']=this['startParse']();}if(_0x40b3b9())return!0x1;}});}['takeTree'](){let _0x2b4ad9,_0x4d6045;this['parse']&&(_0x2b4ad9=this['parse']['parsedPos'])>=this['treeLen']&&((null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x2b4ad9)&&this['parse']['stopAt'](_0x2b4ad9),this['withContext'](()=>{for(;!(_0x4d6045=this['parse']['advance']()););}),this['treeLen']=_0x2b4ad9,this['tree']=_0x4d6045,this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](this['tree'],this['fragments'],!0x0)),this['parse']=null);}['withContext'](_0xf834d2){let _0x279458=currentContext;currentContext=this;try{return _0xf834d2();}finally{currentContext=_0x279458;}}['withoutTempSkipped'](_0x27c691){for(let _0x30c091;_0x30c091=this['tempSkipped']['pop']();)_0x27c691=cutFragments(_0x27c691,_0x30c091['from'],_0x30c091['to']);return _0x27c691;}['changes'](_0x2639c6,_0x128a6a){let {fragments:_0x340fdc,tree:_0x5c7752,treeLen:_0x6aa6ff,viewport:_0x6084e,skipped:_0x2b4ab7}=this;if(this['takeTree'](),!_0x2639c6['empty']){let _0x31837b=[];if(_0x2639c6['iterChangedRanges']((_0x2d2cce,_0x48d489,_0x34c40f,_0x55efd9)=>_0x31837b['push']({'fromA':_0x2d2cce,'toA':_0x48d489,'fromB':_0x34c40f,'toB':_0x55efd9})),_0x340fdc=TreeFragment['applyChanges'](_0x340fdc,_0x31837b),_0x5c7752=Tree['empty'],_0x6aa6ff=0x0,_0x6084e={'from':_0x2639c6['mapPos'](_0x6084e['from'],-0x1),'to':_0x2639c6['mapPos'](_0x6084e['to'],0x1)},this['skipped']['length']){_0x2b4ab7=[];for(let _0x121c91 of this['skipped']){let _0x2ecee3=_0x2639c6['mapPos'](_0x121c91['from'],0x1),_0x474560=_0x2639c6['mapPos'](_0x121c91['to'],-0x1);_0x2ecee3<_0x474560&&_0x2b4ab7['push']({'from':_0x2ecee3,'to':_0x474560});}}}return new ParseContext(this['parser'],_0x128a6a,_0x340fdc,_0x5c7752,_0x6aa6ff,_0x6084e,_0x2b4ab7,this['scheduleOn']);}['updateViewport'](_0x3e15f4){if(this['viewport']['from']==_0x3e15f4['from']&&this['viewport']['to']==_0x3e15f4['to'])return!0x1;this['viewport']=_0x3e15f4;let _0xb6ca6e=this['skipped']['length'];for(let _0x81db1c=0x0;_0x81db1c<this['skipped']['length'];_0x81db1c++){let {from:_0x389a30,to:_0x38d447}=this['skipped'][_0x81db1c];_0x389a30<_0x3e15f4['to']&&_0x38d447>_0x3e15f4['from']&&(this['fragments']=cutFragments(this['fragments'],_0x389a30,_0x38d447),this['skipped']['splice'](_0x81db1c--,0x1));}return!(this['skipped']['length']>=_0xb6ca6e)&&(this['reset'](),!0x0);}['reset'](){this['parse']&&(this['takeTree'](),this['parse']=null);}['skipUntilInView'](_0x3e3518,_0x36286b){this['skipped']['push']({'from':_0x3e3518,'to':_0x36286b});}static['getSkippingParser'](_0x9fed03){return new class extends Parser{['createParse'](_0x5c10fb,_0x221f2c,_0x1c595c){let _0x12b39c=_0x1c595c[0x0]['from'],_0x495ca7=_0x1c595c[_0x1c595c['length']-0x1]['to'];return{'parsedPos':_0x12b39c,'advance'(){let _0x540ec0=currentContext;if(_0x540ec0){for(let _0x5bf907 of _0x1c595c)_0x540ec0['tempSkipped']['push'](_0x5bf907);_0x9fed03&&(_0x540ec0['scheduleOn']=_0x540ec0['scheduleOn']?Promise['all']([_0x540ec0['scheduleOn'],_0x9fed03]):_0x9fed03);}return this['parsedPos']=_0x495ca7,new Tree(NodeType['none'],[],[],_0x495ca7-_0x12b39c);},'stoppedAt':null,'stopAt'(){}};}}();}['isDone'](_0x2ee2dc){_0x2ee2dc=Math['min'](_0x2ee2dc,this['state']['doc']['length']);let _0xe9ab9f=this['fragments'];return this['treeLen']>=_0x2ee2dc&&_0xe9ab9f['length']&&0x0==_0xe9ab9f[0x0]['from']&&_0xe9ab9f[0x0]['to']>=_0x2ee2dc;}static['get'](){return currentContext;}}function cutFragments(_0xb9e1cb,_0x659785,_0x5f001d){return TreeFragment['applyChanges'](_0xb9e1cb,[{'fromA':_0x659785,'toA':_0x5f001d,'fromB':_0x659785,'toB':_0x5f001d}]);}class LanguageState{constructor(_0x43e024){this['context']=_0x43e024,this['tree']=_0x43e024['tree'];}['apply'](_0x1a4efe){if(!_0x1a4efe['docChanged']&&this['tree']==this['context']['tree'])return this;let _0x28ded9=this['context']['changes'](_0x1a4efe['changes'],_0x1a4efe['state']),_0x3aca8c=this['context']['treeLen']==_0x1a4efe['startState']['doc']['length']?void 0x0:Math['max'](_0x1a4efe['changes']['mapPos'](this['context']['treeLen']),_0x28ded9['viewport']['to']);return _0x28ded9['work'](0x14,_0x3aca8c)||_0x28ded9['takeTree'](),new LanguageState(_0x28ded9);}static['init'](_0x2adb3b){let _0x1ee449=Math['min'](0xbb8,_0x2adb3b['doc']['length']),_0x4b9c8b=ParseContext['create'](_0x2adb3b['facet'](language)['parser'],_0x2adb3b,{'from':0x0,'to':_0x1ee449});return _0x4b9c8b['work'](0x14,_0x1ee449)||_0x4b9c8b['takeTree'](),new LanguageState(_0x4b9c8b);}}Language['state']=StateField['define']({'create':LanguageState['init'],'update'(_0x12b891,_0x2ed137){for(let _0x24ad21 of _0x2ed137['effects'])if(_0x24ad21['is'](Language['setState']))return _0x24ad21['value'];return _0x2ed137['startState']['facet'](language)!=_0x2ed137['state']['facet'](language)?LanguageState['init'](_0x2ed137['state']):_0x12b891['apply'](_0x2ed137);}});let requestIdle=_0x21dc54=>{let _0x3fee70=setTimeout(()=>_0x21dc54(),0x1f4);return()=>clearTimeout(_0x3fee70);};'undefined'!=typeof requestIdleCallback&&(requestIdle=_0x47060d=>{let _0x52c7d6=-0x1,_0x5329fc=setTimeout(()=>{_0x52c7d6=requestIdleCallback(_0x47060d,{'timeout':0x190});},0x64);return()=>_0x52c7d6<0x0?clearTimeout(_0x5329fc):cancelIdleCallback(_0x52c7d6);});const isInputPending='undefined'!=typeof navigator&&(null===(_a=navigator['scheduling'])||void 0x0===_a?void 0x0:_a['isInputPending'])?()=>navigator['scheduling']['isInputPending']():null,parseWorker=ViewPlugin['fromClass'](class{constructor(_0x578962){this['view']=_0x578962,this['working']=null,this['workScheduled']=0x0,this['chunkEnd']=-0x1,this['chunkBudget']=-0x1,this['work']=this['work']['bind'](this),this['scheduleWork']();}['update'](_0x3ca8fa){let _0x33db75=this['view']['state']['field'](Language['state'])['context'];(_0x33db75['updateViewport'](_0x3ca8fa['view']['viewport'])||this['view']['viewport']['to']>_0x33db75['treeLen'])&&this['scheduleWork'](),(_0x3ca8fa['docChanged']||_0x3ca8fa['selectionSet'])&&(this['view']['hasFocus']&&(this['chunkBudget']+=0x32),this['scheduleWork']()),this['checkAsyncSchedule'](_0x33db75);}['scheduleWork'](){if(this['working'])return;let {state:_0x4a7dd2}=this['view'],_0x4fe06c=_0x4a7dd2['field'](Language['state']);_0x4fe06c['tree']==_0x4fe06c['context']['tree']&&_0x4fe06c['context']['isDone'](_0x4a7dd2['doc']['length'])||(this['working']=requestIdle(this['work']));}['work'](_0xfe68c5){this['working']=null;let _0x5a6912=Date['now']();if(this['chunkEnd']<_0x5a6912&&(this['chunkEnd']<0x0||this['view']['hasFocus'])&&(this['chunkEnd']=_0x5a6912+0x7530,this['chunkBudget']=0xbb8),this['chunkBudget']<=0x0)return;let {state:_0x4682c7,viewport:{to:_0x505aed}}=this['view'],_0x411853=_0x4682c7['field'](Language['state']);if(_0x411853['tree']==_0x411853['context']['tree']&&_0x411853['context']['isDone'](_0x505aed+0x186a0))return;let _0x5dd1e3=Date['now']()+Math['min'](this['chunkBudget'],0x64,_0xfe68c5&&!isInputPending?Math['max'](0x19,_0xfe68c5['timeRemaining']()-0x5):0x3b9aca00),_0x57cc9c=_0x411853['context']['treeLen']<_0x505aed&&_0x4682c7['doc']['length']>_0x505aed+0x3e8,_0x385808=_0x411853['context']['work'](()=>isInputPending&&isInputPending()||Date['now']()>_0x5dd1e3,_0x505aed+(_0x57cc9c?0x0:0x186a0));this['chunkBudget']-=Date['now']()-_0x5a6912,(_0x385808||this['chunkBudget']<=0x0)&&(_0x411853['context']['takeTree'](),this['view']['dispatch']({'effects':Language['setState']['of'](new LanguageState(_0x411853['context']))})),this['chunkBudget']>0x0&&(!_0x385808||_0x57cc9c)&&this['scheduleWork'](),this['checkAsyncSchedule'](_0x411853['context']);}['checkAsyncSchedule'](_0x573b3b){_0x573b3b['scheduleOn']&&(this['workScheduled']++,_0x573b3b['scheduleOn']['then'](()=>this['scheduleWork']())['catch'](_0x355f3c=>logException(this['view']['state'],_0x355f3c))['then'](()=>this['workScheduled']--),_0x573b3b['scheduleOn']=null);}['destroy'](){this['working']&&this['working']();}['isWorking'](){return!!(this['working']||this['workScheduled']>0x0);}},{'eventHandlers':{'focus'(){this['scheduleWork']();}}}),language=Facet['define']({'combine':_0x58813a=>_0x58813a['length']?_0x58813a[0x0]:null,'enables':_0x3055df=>[Language['state'],parseWorker,EditorView['contentAttributes']['compute']([_0x3055df],_0x93efac=>{let _0x1a4aca=_0x93efac['facet'](_0x3055df);return _0x1a4aca&&_0x1a4aca['name']?{'data-language':_0x1a4aca['name']}:{};})]});class LanguageSupport{constructor(_0x1942ed,_0xe52114=[]){this['language']=_0x1942ed,this['support']=_0xe52114,this['extension']=[_0x1942ed,_0xe52114];}}class LanguageDescription{constructor(_0x903d6,_0x383ec0,_0x4c9db2,_0x468fff,_0x40c661,_0x7cb339=void 0x0){this['name']=_0x903d6,this['alias']=_0x383ec0,this['extensions']=_0x4c9db2,this['filename']=_0x468fff,this['loadFunc']=_0x40c661,this['support']=_0x7cb339,this['loading']=null;}['load'](){return this['loading']||(this['loading']=this['loadFunc']()['then'](_0x2a5bd5=>this['support']=_0x2a5bd5,_0x4078a1=>{throw this['loading']=null,_0x4078a1;}));}static['of'](_0x27df98){let {load:_0x1908d4,support:_0x164e5d}=_0x27df98;if(!_0x1908d4){if(!_0x164e5d)throw new RangeError('Must\x20pass\x20either\x20\x27load\x27\x20or\x20\x27support\x27\x20to\x20LanguageDescription.of');_0x1908d4=()=>Promise['resolve'](_0x164e5d);}return new LanguageDescription(_0x27df98['name'],(_0x27df98['alias']||[])['concat'](_0x27df98['name'])['map'](_0x23da5c=>_0x23da5c['toLowerCase']()),_0x27df98['extensions']||[],_0x27df98['filename'],_0x1908d4,_0x164e5d);}static['matchFilename'](_0x1be3df,_0x4b047d){for(let _0x328813 of _0x1be3df)if(_0x328813['filename']&&_0x328813['filename']['test'](_0x4b047d))return _0x328813;let _0x197154=/\.([^.]+)$/['exec'](_0x4b047d);if(_0x197154){for(let _0x252b70 of _0x1be3df)if(_0x252b70['extensions']['indexOf'](_0x197154[0x1])>-0x1)return _0x252b70;}return null;}static['matchLanguageName'](_0x4b1593,_0x248fed,_0x266727=!0x0){_0x248fed=_0x248fed['toLowerCase']();for(let _0x212e9c of _0x4b1593)if(_0x212e9c['alias']['some'](_0x39f5ec=>_0x39f5ec==_0x248fed))return _0x212e9c;if(_0x266727){for(let _0x4ec9cc of _0x4b1593)for(let _0x37f09d of _0x4ec9cc['alias']){let _0x9a2178=_0x248fed['indexOf'](_0x37f09d);if(_0x9a2178>-0x1&&(_0x37f09d['length']>0x2||!/\w/['test'](_0x248fed[_0x9a2178-0x1])&&!/\w/['test'](_0x248fed[_0x9a2178+_0x37f09d['length']])))return _0x4ec9cc;}}return null;}}const indentService=Facet['define'](),indentUnit=Facet['define']({'combine':_0x1fca5a=>{if(!_0x1fca5a['length'])return'\x20\x20';let _0x21301e=_0x1fca5a[0x0];if(!_0x21301e||/\S/['test'](_0x21301e)||Array['from'](_0x21301e)['some'](_0x56ce80=>_0x56ce80!=_0x21301e[0x0]))throw new Error('Invalid\x20indent\x20unit:\x20'+JSON['stringify'](_0x1fca5a[0x0]));return _0x21301e;}});function getIndentUnit(_0x9bd6c3){let _0xbb6b80=_0x9bd6c3['facet'](indentUnit);return 0x9==_0xbb6b80['charCodeAt'](0x0)?_0x9bd6c3['tabSize']*_0xbb6b80['length']:_0xbb6b80['length'];}function indentString(_0x105e8f,_0xebb182){let _0x594075='',_0x15af18=_0x105e8f['tabSize'],_0x410c9a=_0x105e8f['facet'](indentUnit)[0x0];if('\x09'==_0x410c9a){for(;_0xebb182>=_0x15af18;)_0x594075+='\x09',_0xebb182-=_0x15af18;_0x410c9a='\x20';}for(let _0x255a31=0x0;_0x255a31<_0xebb182;_0x255a31++)_0x594075+=_0x410c9a;return _0x594075;}function getIndentation(_0x181132,_0x2f7e8e){_0x181132 instanceof EditorState&&(_0x181132=new IndentContext(_0x181132));for(let _0x33f4dc of _0x181132['state']['facet'](indentService)){let _0x5d4717=_0x33f4dc(_0x181132,_0x2f7e8e);if(void 0x0!==_0x5d4717)return _0x5d4717;}let _0x1925f=syntaxTree(_0x181132['state']);return _0x1925f['length']>=_0x2f7e8e?syntaxIndentation(_0x181132,_0x1925f,_0x2f7e8e):null;}class IndentContext{constructor(_0x51dcd5,_0x44d5ba={}){this['state']=_0x51dcd5,this['options']=_0x44d5ba,this['unit']=getIndentUnit(_0x51dcd5);}['lineAt'](_0x5cc4df,_0x1275d8=0x1){let _0x3d446e=this['state']['doc']['lineAt'](_0x5cc4df),{simulateBreak:_0x43503c,simulateDoubleBreak:_0x3f95cf}=this['options'];return null!=_0x43503c&&_0x43503c>=_0x3d446e['from']&&_0x43503c<=_0x3d446e['to']?_0x3f95cf&&_0x43503c==_0x5cc4df?{'text':'','from':_0x5cc4df}:(_0x1275d8<0x0?_0x43503c<_0x5cc4df:_0x43503c<=_0x5cc4df)?{'text':_0x3d446e['text']['slice'](_0x43503c-_0x3d446e['from']),'from':_0x43503c}:{'text':_0x3d446e['text']['slice'](0x0,_0x43503c-_0x3d446e['from']),'from':_0x3d446e['from']}:_0x3d446e;}['textAfterPos'](_0x3c2465,_0x1d26bc=0x1){if(this['options']['simulateDoubleBreak']&&_0x3c2465==this['options']['simulateBreak'])return'';let {text:_0x5000d7,from:_0x3822ed}=this['lineAt'](_0x3c2465,_0x1d26bc);return _0x5000d7['slice'](_0x3c2465-_0x3822ed,Math['min'](_0x5000d7['length'],_0x3c2465+0x64-_0x3822ed));}['column'](_0x581b10,_0x50fb97=0x1){let {text:_0xea3978,from:_0x4a9acc}=this['lineAt'](_0x581b10,_0x50fb97),_0x3be4a5=this['countColumn'](_0xea3978,_0x581b10-_0x4a9acc),_0xb9c450=this['options']['overrideIndentation']?this['options']['overrideIndentation'](_0x4a9acc):-0x1;return _0xb9c450>-0x1&&(_0x3be4a5+=_0xb9c450-this['countColumn'](_0xea3978,_0xea3978['search'](/\S|$/))),_0x3be4a5;}['countColumn'](_0xfc414c,_0x111f6e=_0xfc414c['length']){return countColumn(_0xfc414c,this['state']['tabSize'],_0x111f6e);}['lineIndent'](_0x465628,_0x26c5d8=0x1){let {text:_0x4c2368,from:_0x3c2f3e}=this['lineAt'](_0x465628,_0x26c5d8),_0x33b033=this['options']['overrideIndentation'];if(_0x33b033){let _0xcb2f3a=_0x33b033(_0x3c2f3e);if(_0xcb2f3a>-0x1)return _0xcb2f3a;}return this['countColumn'](_0x4c2368,_0x4c2368['search'](/\S|$/));}get['simulatedBreak'](){return this['options']['simulateBreak']||null;}}const indentNodeProp=new NodeProp();function syntaxIndentation(_0x2261fe,_0x2d7dd9,_0x31b31d){let _0x4053b7=_0x2d7dd9['resolveStack'](_0x31b31d),_0x27dfef=_0x2d7dd9['resolveInner'](_0x31b31d,-0x1)['resolve'](_0x31b31d,0x0)['enterUnfinishedNodesBefore'](_0x31b31d);if(_0x27dfef!=_0x4053b7['node']){let _0xc3c2a6=[];for(let _0x12254c=_0x27dfef;_0x12254c&&!(_0x12254c['from']<_0x4053b7['node']['from']||_0x12254c['to']>_0x4053b7['node']['to']||_0x12254c['from']==_0x4053b7['node']['from']&&_0x12254c['type']==_0x4053b7['node']['type']);_0x12254c=_0x12254c['parent'])_0xc3c2a6['push'](_0x12254c);for(let _0x76cbb6=_0xc3c2a6['length']-0x1;_0x76cbb6>=0x0;_0x76cbb6--)_0x4053b7={'node':_0xc3c2a6[_0x76cbb6],'next':_0x4053b7};}return indentFor(_0x4053b7,_0x2261fe,_0x31b31d);}function indentFor(_0x204b18,_0x5648c7,_0x51bdcf){for(let _0x43e37a=_0x204b18;_0x43e37a;_0x43e37a=_0x43e37a['next']){let _0x3464bf=indentStrategy(_0x43e37a['node']);if(_0x3464bf)return _0x3464bf(TreeIndentContext['create'](_0x5648c7,_0x51bdcf,_0x43e37a));}return 0x0;}function ignoreClosed(_0x3e00d6){return _0x3e00d6['pos']==_0x3e00d6['options']['simulateBreak']&&_0x3e00d6['options']['simulateDoubleBreak'];}function indentStrategy(_0x491a5b){let _0x1ca423=_0x491a5b['type']['prop'](indentNodeProp);if(_0x1ca423)return _0x1ca423;let _0xb47ca4,_0x56b27c=_0x491a5b['firstChild'];if(_0x56b27c&&(_0xb47ca4=_0x56b27c['type']['prop'](NodeProp['closedBy']))){let _0x20c047=_0x491a5b['lastChild'],_0x15b21d=_0x20c047&&_0xb47ca4['indexOf'](_0x20c047['name'])>-0x1;return _0x3a4373=>delimitedStrategy(_0x3a4373,!0x0,0x1,void 0x0,_0x15b21d&&!ignoreClosed(_0x3a4373)?_0x20c047['from']:void 0x0);}return null==_0x491a5b['parent']?topIndent:null;}function topIndent(){return 0x0;}class TreeIndentContext extends IndentContext{constructor(_0x5aa9b1,_0x268746,_0x5953f7){super(_0x5aa9b1['state'],_0x5aa9b1['options']),this['base']=_0x5aa9b1,this['pos']=_0x268746,this['context']=_0x5953f7;}get['node'](){return this['context']['node'];}static['create'](_0x2c5c0b,_0x31431d,_0x2dc550){return new TreeIndentContext(_0x2c5c0b,_0x31431d,_0x2dc550);}get['textAfter'](){return this['textAfterPos'](this['pos']);}get['baseIndent'](){return this['baseIndentFor'](this['node']);}['baseIndentFor'](_0xb6814e){let _0x5584d6=this['state']['doc']['lineAt'](_0xb6814e['from']);for(;;){let _0x393577=_0xb6814e['resolve'](_0x5584d6['from']);for(;_0x393577['parent']&&_0x393577['parent']['from']==_0x393577['from'];)_0x393577=_0x393577['parent'];if(isParent(_0x393577,_0xb6814e))break;_0x5584d6=this['state']['doc']['lineAt'](_0x393577['from']);}return this['lineIndent'](_0x5584d6['from']);}['continue'](){return indentFor(this['context']['next'],this['base'],this['pos']);}}function isParent(_0x879d8c,_0x27e592){for(let _0x237e6f=_0x27e592;_0x237e6f;_0x237e6f=_0x237e6f['parent'])if(_0x879d8c==_0x237e6f)return!0x0;return!0x1;}function bracketedAligned(_0x35603b){let _0x1a5852=_0x35603b['node'],_0x3c3b30=_0x1a5852['childAfter'](_0x1a5852['from']),_0x509b9f=_0x1a5852['lastChild'];if(!_0x3c3b30)return null;let _0x430085=_0x35603b['options']['simulateBreak'],_0x5d07f4=_0x35603b['state']['doc']['lineAt'](_0x3c3b30['from']),_0x568ed0=null==_0x430085||_0x430085<=_0x5d07f4['from']?_0x5d07f4['to']:Math['min'](_0x5d07f4['to'],_0x430085);for(let _0x4b41ae=_0x3c3b30['to'];;){let _0x1af36e=_0x1a5852['childAfter'](_0x4b41ae);if(!_0x1af36e||_0x1af36e==_0x509b9f)return null;if(!_0x1af36e['type']['isSkipped']){if(_0x1af36e['from']>=_0x568ed0)return null;let _0x5acd26=/^ */['exec'](_0x5d07f4['text']['slice'](_0x3c3b30['to']-_0x5d07f4['from']))[0x0]['length'];return{'from':_0x3c3b30['from'],'to':_0x3c3b30['to']+_0x5acd26};}_0x4b41ae=_0x1af36e['to'];}}function delimitedIndent({closing:_0x5b90cd,align:_0xb2dac1=!0x0,units:_0x2e521b=0x1}){return _0x158037=>delimitedStrategy(_0x158037,_0xb2dac1,_0x2e521b,_0x5b90cd);}function delimitedStrategy(_0xb85fd0,_0x3ae310,_0x4ee9cd,_0x226bf6,_0x39a46f){let _0x31aadd=_0xb85fd0['textAfter'],_0x35349a=_0x31aadd['match'](/^\s*/)[0x0]['length'],_0x627ecc=_0x226bf6&&_0x31aadd['slice'](_0x35349a,_0x35349a+_0x226bf6['length'])==_0x226bf6||_0x39a46f==_0xb85fd0['pos']+_0x35349a,_0x5d65b0=_0x3ae310?bracketedAligned(_0xb85fd0):null;return _0x5d65b0?_0x627ecc?_0xb85fd0['column'](_0x5d65b0['from']):_0xb85fd0['column'](_0x5d65b0['to']):_0xb85fd0['baseIndent']+(_0x627ecc?0x0:_0xb85fd0['unit']*_0x4ee9cd);}const flatIndent=_0x451907=>_0x451907['baseIndent'];function continuedIndent({except:_0x151cf0,units:_0x2b3d44=0x1}={}){return _0x192c03=>{let _0x348e39=_0x151cf0&&_0x151cf0['test'](_0x192c03['textAfter']);return _0x192c03['baseIndent']+(_0x348e39?0x0:_0x2b3d44*_0x192c03['unit']);};}const DontIndentBeyond=0xc8;function indentOnInput(){return EditorState['transactionFilter']['of'](_0x330919=>{if(!_0x330919['docChanged']||!_0x330919['isUserEvent']('input.type')&&!_0x330919['isUserEvent']('input.complete'))return _0x330919;let _0x1c45db=_0x330919['startState']['languageDataAt']('indentOnInput',_0x330919['startState']['selection']['main']['head']);if(!_0x1c45db['length'])return _0x330919;let _0x31a128=_0x330919['newDoc'],{head:_0xad1782}=_0x330919['newSelection']['main'],_0x30cf00=_0x31a128['lineAt'](_0xad1782);if(_0xad1782>_0x30cf00['from']+DontIndentBeyond)return _0x330919;let _0x457440=_0x31a128['sliceString'](_0x30cf00['from'],_0xad1782);if(!_0x1c45db['some'](_0x574dcd=>_0x574dcd['test'](_0x457440)))return _0x330919;let {state:_0x55ccd7}=_0x330919,_0x18554f=-0x1,_0x26ffd9=[];for(let {head:_0x54f3dd}of _0x55ccd7['selection']['ranges']){let _0x119ddf=_0x55ccd7['doc']['lineAt'](_0x54f3dd);if(_0x119ddf['from']==_0x18554f)continue;_0x18554f=_0x119ddf['from'];let _0x594597=getIndentation(_0x55ccd7,_0x119ddf['from']);if(null==_0x594597)continue;let _0x1ba004=/^\s*/['exec'](_0x119ddf['text'])[0x0],_0x4ddf0c=indentString(_0x55ccd7,_0x594597);_0x1ba004!=_0x4ddf0c&&_0x26ffd9['push']({'from':_0x119ddf['from'],'to':_0x119ddf['from']+_0x1ba004['length'],'insert':_0x4ddf0c});}return _0x26ffd9['length']?[_0x330919,{'changes':_0x26ffd9,'sequential':!0x0}]:_0x330919;});}const foldService=Facet['define'](),foldNodeProp=new NodeProp();function foldInside(_0x482653){let _0x148c5=_0x482653['firstChild'],_0x4cbb9a=_0x482653['lastChild'];return _0x148c5&&_0x148c5['to']<_0x4cbb9a['from']?{'from':_0x148c5['to'],'to':_0x4cbb9a['type']['isError']?_0x482653['to']:_0x4cbb9a['from']}:null;}function syntaxFolding(_0x59808f,_0x1e37b7,_0x4b42df){let _0x35c406=syntaxTree(_0x59808f);if(_0x35c406['length']<_0x4b42df)return null;let _0x40e09d=null;for(let _0x1a5b03=_0x35c406['resolveStack'](_0x4b42df,0x1);_0x1a5b03;_0x1a5b03=_0x1a5b03['next']){let _0x511956=_0x1a5b03['node'];if(_0x511956['to']<=_0x4b42df||_0x511956['from']>_0x4b42df)continue;if(_0x40e09d&&_0x511956['from']<_0x1e37b7)break;let _0x58a3b1=_0x511956['type']['prop'](foldNodeProp);if(_0x58a3b1&&(_0x511956['to']<_0x35c406['length']-0x32||_0x35c406['length']==_0x59808f['doc']['length']||!isUnfinished(_0x511956))){let _0x5be021=_0x58a3b1(_0x511956,_0x59808f);_0x5be021&&_0x5be021['from']<=_0x4b42df&&_0x5be021['from']>=_0x1e37b7&&_0x5be021['to']>_0x4b42df&&(_0x40e09d=_0x5be021);}}return _0x40e09d;}function isUnfinished(_0x1adce8){let _0x56b96c=_0x1adce8['lastChild'];return _0x56b96c&&_0x56b96c['to']==_0x1adce8['to']&&_0x56b96c['type']['isError'];}function foldable(_0x101d25,_0xd31a17,_0x12a4db){for(let _0x16f349 of _0x101d25['facet'](foldService)){let _0x866692=_0x16f349(_0x101d25,_0xd31a17,_0x12a4db);if(_0x866692)return _0x866692;}return syntaxFolding(_0x101d25,_0xd31a17,_0x12a4db);}function mapRange(_0xb7e5dd,_0x5bca30){let _0x85c392=_0x5bca30['mapPos'](_0xb7e5dd['from'],0x1),_0x5377f5=_0x5bca30['mapPos'](_0xb7e5dd['to'],-0x1);return _0x85c392>=_0x5377f5?void 0x0:{'from':_0x85c392,'to':_0x5377f5};}const foldEffect=StateEffect['define']({'map':mapRange}),unfoldEffect=StateEffect['define']({'map':mapRange});function selectedLines(_0x390288){let _0x190ffb=[];for(let {head:_0x23f78a}of _0x390288['state']['selection']['ranges'])_0x190ffb['some'](_0x35b711=>_0x35b711['from']<=_0x23f78a&&_0x35b711['to']>=_0x23f78a)||_0x190ffb['push'](_0x390288['lineBlockAt'](_0x23f78a));return _0x190ffb;}const foldState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x47b5cb,_0x364db6){_0x364db6['isUserEvent']('delete')&&_0x364db6['changes']['iterChangedRanges']((_0x4ceed2,_0x22a534)=>_0x47b5cb=clearTouchedFolds(_0x47b5cb,_0x4ceed2,_0x22a534)),_0x47b5cb=_0x47b5cb['map'](_0x364db6['changes']);for(let _0x368122 of _0x364db6['effects'])if(_0x368122['is'](foldEffect)&&!foldExists(_0x47b5cb,_0x368122['value']['from'],_0x368122['value']['to'])){let {preparePlaceholder:_0x2d27fd}=_0x364db6['state']['facet'](foldConfig),_0x362f88=_0x2d27fd?Decoration['replace']({'widget':new PreparedFoldWidget(_0x2d27fd(_0x364db6['state'],_0x368122['value']))}):foldWidget;_0x47b5cb=_0x47b5cb['update']({'add':[_0x362f88['range'](_0x368122['value']['from'],_0x368122['value']['to'])]});}else _0x368122['is'](unfoldEffect)&&(_0x47b5cb=_0x47b5cb['update']({'filter':(_0x1ebdae,_0x4eb788)=>_0x368122['value']['from']!=_0x1ebdae||_0x368122['value']['to']!=_0x4eb788,'filterFrom':_0x368122['value']['from'],'filterTo':_0x368122['value']['to']}));return _0x364db6['selection']&&(_0x47b5cb=clearTouchedFolds(_0x47b5cb,_0x364db6['selection']['main']['head'])),_0x47b5cb;},'provide':_0x23d10d=>EditorView['decorations']['from'](_0x23d10d),'toJSON'(_0x547e78,_0x408935){let _0x1ddf1b=[];return _0x547e78['between'](0x0,_0x408935['doc']['length'],(_0x5c566f,_0x28f4da)=>{_0x1ddf1b['push'](_0x5c566f,_0x28f4da);}),_0x1ddf1b;},'fromJSON'(_0x5b3698){if(!Array['isArray'](_0x5b3698)||_0x5b3698['length']%0x2)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');let _0x4d071f=[];for(let _0x36314e=0x0;_0x36314e<_0x5b3698['length'];){let _0x2914cc=_0x5b3698[_0x36314e++],_0x5699fa=_0x5b3698[_0x36314e++];if('number'!=typeof _0x2914cc||'number'!=typeof _0x5699fa)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');_0x4d071f['push'](foldWidget['range'](_0x2914cc,_0x5699fa));}return Decoration['set'](_0x4d071f,!0x0);}});function clearTouchedFolds(_0x399324,_0xac13a7,_0x534441=_0xac13a7){let _0x478a1d=!0x1;return _0x399324['between'](_0xac13a7,_0x534441,(_0x4dd12f,_0x1d8d4f)=>{_0x4dd12f<_0x534441&&_0x1d8d4f>_0xac13a7&&(_0x478a1d=!0x0);}),_0x478a1d?_0x399324['update']({'filterFrom':_0xac13a7,'filterTo':_0x534441,'filter':(_0x241d44,_0x2c6733)=>_0x241d44>=_0x534441||_0x2c6733<=_0xac13a7}):_0x399324;}function findFold(_0x2371ff,_0x50f94d,_0x236f16){var _0x3d9232;let _0x380da0=null;return null===(_0x3d9232=_0x2371ff['field'](foldState,!0x1))||void 0x0===_0x3d9232||_0x3d9232['between'](_0x50f94d,_0x236f16,(_0x407d1d,_0x26cd59)=>{(!_0x380da0||_0x380da0['from']>_0x407d1d)&&(_0x380da0={'from':_0x407d1d,'to':_0x26cd59});}),_0x380da0;}function foldExists(_0x3ef782,_0x4b8832,_0x3a1518){let _0x4dc999=!0x1;return _0x3ef782['between'](_0x4b8832,_0x4b8832,(_0x819954,_0x22cc81)=>{_0x819954==_0x4b8832&&_0x22cc81==_0x3a1518&&(_0x4dc999=!0x0);}),_0x4dc999;}function maybeEnable(_0x360575,_0x2d755b){return _0x360575['field'](foldState,!0x1)?_0x2d755b:_0x2d755b['concat'](StateEffect['appendConfig']['of'](codeFolding()));}const foldCode=_0x5a5f7d=>{for(let _0x4f1dbd of selectedLines(_0x5a5f7d)){let _0x51ea99=foldable(_0x5a5f7d['state'],_0x4f1dbd['from'],_0x4f1dbd['to']);if(_0x51ea99)return _0x5a5f7d['dispatch']({'effects':maybeEnable(_0x5a5f7d['state'],[foldEffect['of'](_0x51ea99),announceFold(_0x5a5f7d,_0x51ea99)])}),!0x0;}return!0x1;},unfoldCode=_0x2d082c=>{if(!_0x2d082c['state']['field'](foldState,!0x1))return!0x1;let _0x20e6aa=[];for(let _0x4f5c2d of selectedLines(_0x2d082c)){let _0x403469=findFold(_0x2d082c['state'],_0x4f5c2d['from'],_0x4f5c2d['to']);_0x403469&&_0x20e6aa['push'](unfoldEffect['of'](_0x403469),announceFold(_0x2d082c,_0x403469,!0x1));}return _0x20e6aa['length']&&_0x2d082c['dispatch']({'effects':_0x20e6aa}),_0x20e6aa['length']>0x0;};function announceFold(_0x261eb6,_0x4269e7,_0x4a08f5=!0x0){let _0x5df933=_0x261eb6['state']['doc']['lineAt'](_0x4269e7['from'])['number'],_0x4d7a7a=_0x261eb6['state']['doc']['lineAt'](_0x4269e7['to'])['number'];return EditorView['announce']['of'](_0x261eb6['state']['phrase'](_0x4a08f5?'Folded\x20lines':'Unfolded\x20lines')+'\x20'+_0x5df933+'\x20'+_0x261eb6['state']['phrase']('to')+'\x20'+_0x4d7a7a+'.');}const foldAll=_0x1d8530=>{let {state:_0x3c1c82}=_0x1d8530,_0x3a840b=[];for(let _0x57dee7=0x0;_0x57dee7<_0x3c1c82['doc']['length'];){let _0x20793e=_0x1d8530['lineBlockAt'](_0x57dee7),_0xc9e5e3=foldable(_0x3c1c82,_0x20793e['from'],_0x20793e['to']);_0xc9e5e3&&_0x3a840b['push'](foldEffect['of'](_0xc9e5e3)),_0x57dee7=(_0xc9e5e3?_0x1d8530['lineBlockAt'](_0xc9e5e3['to']):_0x20793e)['to']+0x1;}return _0x3a840b['length']&&_0x1d8530['dispatch']({'effects':maybeEnable(_0x1d8530['state'],_0x3a840b)}),!!_0x3a840b['length'];},unfoldAll=_0xa3b463=>{let _0x3bcbfc=_0xa3b463['state']['field'](foldState,!0x1);if(!_0x3bcbfc||!_0x3bcbfc['size'])return!0x1;let _0x811807=[];return _0x3bcbfc['between'](0x0,_0xa3b463['state']['doc']['length'],(_0x10c16c,_0x35b4b0)=>{_0x811807['push'](unfoldEffect['of']({'from':_0x10c16c,'to':_0x35b4b0}));}),_0xa3b463['dispatch']({'effects':_0x811807}),!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':_0x27cc3b=>combineConfig(_0x27cc3b,defaultConfig)});function codeFolding(_0x375dd3){return[foldState,baseTheme$1];}function widgetToDOM(_0x447cbd,_0x4a1ec4){let {state:_0x597a8d}=_0x447cbd,_0x3a7bbe=_0x597a8d['facet'](foldConfig),_0x474c14=_0x2d0678=>{let _0x5976cb=_0x447cbd['lineBlockAt'](_0x447cbd['posAtDOM'](_0x2d0678['target'])),_0x1c0767=findFold(_0x447cbd['state'],_0x5976cb['from'],_0x5976cb['to']);_0x1c0767&&_0x447cbd['dispatch']({'effects':unfoldEffect['of'](_0x1c0767)}),_0x2d0678['preventDefault']();};if(_0x3a7bbe['placeholderDOM'])return _0x3a7bbe['placeholderDOM'](_0x447cbd,_0x474c14,_0x4a1ec4);let _0x16634d=document['createElement']('span');return _0x16634d['textContent']=_0x3a7bbe['placeholderText'],_0x16634d['setAttribute']('aria-label',_0x597a8d['phrase']('folded\x20code')),_0x16634d['title']=_0x597a8d['phrase']('unfold'),_0x16634d['className']='cm-foldPlaceholder',_0x16634d['onclick']=_0x474c14,_0x16634d;}const foldWidget=Decoration['replace']({'widget':new class extends WidgetType{['toDOM'](_0x51f608){return widgetToDOM(_0x51f608,null);}}()});class PreparedFoldWidget extends WidgetType{constructor(_0x21f90e){super(),this['value']=_0x21f90e;}['eq'](_0x25267b){return this['value']==_0x25267b['value'];}['toDOM'](_0x30fd6c){return widgetToDOM(_0x30fd6c,this['value']);}}const foldGutterDefaults={'openText':'⌄','closedText':'›','markerDOM':null,'domEventHandlers':{},'foldingChanged':()=>!0x1};class FoldMarker extends GutterMarker{constructor(_0x1121e8,_0x1e558d){super(),this['config']=_0x1121e8,this['open']=_0x1e558d;}['eq'](_0x1904d2){return this['config']==_0x1904d2['config']&&this['open']==_0x1904d2['open'];}['toDOM'](_0x3adb20){if(this['config']['markerDOM'])return this['config']['markerDOM'](this['open']);let _0x290a15=document['createElement']('span');return _0x290a15['textContent']=this['open']?this['config']['openText']:this['config']['closedText'],_0x290a15['title']=_0x3adb20['state']['phrase'](this['open']?'Fold\x20line':'Unfold\x20line'),_0x290a15;}}function foldGutter(_0x5988d3={}){let _0x28603c={...foldGutterDefaults,..._0x5988d3},_0x21232e=new FoldMarker(_0x28603c,!0x0),_0x3b5f7d=new FoldMarker(_0x28603c,!0x1),_0x2885a5=ViewPlugin['fromClass'](class{constructor(_0x14da21){this['from']=_0x14da21['viewport']['from'],this['markers']=this['buildMarkers'](_0x14da21);}['update'](_0x7f2838){(_0x7f2838['docChanged']||_0x7f2838['viewportChanged']||_0x7f2838['startState']['facet'](language)!=_0x7f2838['state']['facet'](language)||_0x7f2838['startState']['field'](foldState,!0x1)!=_0x7f2838['state']['field'](foldState,!0x1)||syntaxTree(_0x7f2838['startState'])!=syntaxTree(_0x7f2838['state'])||_0x28603c['foldingChanged'](_0x7f2838))&&(this['markers']=this['buildMarkers'](_0x7f2838['view']));}['buildMarkers'](_0x3a6c65){let _0x44ae2b=new RangeSetBuilder();for(let _0x284bcf of _0x3a6c65['viewportLineBlocks']){let _0x40492f=findFold(_0x3a6c65['state'],_0x284bcf['from'],_0x284bcf['to'])?_0x3b5f7d:foldable(_0x3a6c65['state'],_0x284bcf['from'],_0x284bcf['to'])?_0x21232e:null;_0x40492f&&_0x44ae2b['add'](_0x284bcf['from'],_0x284bcf['from'],_0x40492f);}return _0x44ae2b['finish']();}}),{domEventHandlers:_0xe63f4}=_0x28603c;return[_0x2885a5,gutter({'class':'cm-foldGutter','markers'(_0x4ed9ad){var _0x4ad1e4;return(null===(_0x4ad1e4=_0x4ed9ad['plugin'](_0x2885a5))||void 0x0===_0x4ad1e4?void 0x0:_0x4ad1e4['markers'])||RangeSet['empty'];},'initialSpacer':()=>new FoldMarker(_0x28603c,!0x1),'domEventHandlers':{..._0xe63f4,'click':(_0x282447,_0x5cb49b,_0x2f32fc)=>{if(_0xe63f4['click']&&_0xe63f4['click'](_0x282447,_0x5cb49b,_0x2f32fc))return!0x0;let _0x52d0a=findFold(_0x282447['state'],_0x5cb49b['from'],_0x5cb49b['to']);if(_0x52d0a)return _0x282447['dispatch']({'effects':unfoldEffect['of'](_0x52d0a)}),!0x0;let _0x1fd7cc=foldable(_0x282447['state'],_0x5cb49b['from'],_0x5cb49b['to']);return!!_0x1fd7cc&&(_0x282447['dispatch']({'effects':foldEffect['of'](_0x1fd7cc)}),!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(_0x5d6185,_0x403e4b){let _0x36e25d;function _0x2b4ea5(_0x34630c){let _0x3832fb=StyleModule['newName']();return(_0x36e25d||(_0x36e25d=Object['create'](null)))['.'+_0x3832fb]=_0x34630c,_0x3832fb;}this['specs']=_0x5d6185;const _0x33fa01='string'==typeof _0x403e4b['all']?_0x403e4b['all']:_0x403e4b['all']?_0x2b4ea5(_0x403e4b['all']):void 0x0,_0x232206=_0x403e4b['scope'];this['scope']=_0x232206 instanceof Language?_0x461d5b=>_0x461d5b['prop'](languageDataProp)==_0x232206['data']:_0x232206?_0x1c8e90=>_0x1c8e90==_0x232206:void 0x0,this['style']=tagHighlighter(_0x5d6185['map'](_0x33907f=>({'tag':_0x33907f['tag'],'class':_0x33907f['class']||_0x2b4ea5(Object['assign']({},_0x33907f,{'tag':null}))})),{'all':_0x33fa01})['style'],this['module']=_0x36e25d?new StyleModule(_0x36e25d):null,this['themeType']=_0x403e4b['themeType'];}static['define'](_0x5619d8,_0x4a94c6){return new HighlightStyle(_0x5619d8,_0x4a94c6||{});}}const highlighterFacet=Facet['define'](),fallbackHighlighter=Facet['define']({'combine':_0x1e38cb=>_0x1e38cb['length']?[_0x1e38cb[0x0]]:null});function getHighlighters(_0x319755){let _0x2749a4=_0x319755['facet'](highlighterFacet);return _0x2749a4['length']?_0x2749a4:_0x319755['facet'](fallbackHighlighter);}function syntaxHighlighting(_0x506743,_0x129933){let _0x464755,_0x7dbd08=[treeHighlighter];return _0x506743 instanceof HighlightStyle&&(_0x506743['module']&&_0x7dbd08['push'](EditorView['styleModule']['of'](_0x506743['module'])),_0x464755=_0x506743['themeType']),(null==_0x129933?void 0x0:_0x129933['fallback'])?_0x7dbd08['push'](fallbackHighlighter['of'](_0x506743)):_0x464755?_0x7dbd08['push'](highlighterFacet['computeN']([EditorView['darkTheme']],_0x52b3af=>_0x52b3af['facet'](EditorView['darkTheme'])==('dark'==_0x464755)?[_0x506743]:[])):_0x7dbd08['push'](highlighterFacet['of'](_0x506743)),_0x7dbd08;}class TreeHighlighter{constructor(_0x421a84){this['markCache']=Object['create'](null),this['tree']=syntaxTree(_0x421a84['state']),this['decorations']=this['buildDeco'](_0x421a84,getHighlighters(_0x421a84['state'])),this['decoratedTo']=_0x421a84['viewport']['to'];}['update'](_0x4cf732){let _0x24b191=syntaxTree(_0x4cf732['state']),_0x2d28c4=getHighlighters(_0x4cf732['state']),_0x52c71a=_0x2d28c4!=getHighlighters(_0x4cf732['startState']),{viewport:_0x5143af}=_0x4cf732['view'],_0xc1ca4e=_0x4cf732['changes']['mapPos'](this['decoratedTo'],0x1);_0x24b191['length']<_0x5143af['to']&&!_0x52c71a&&_0x24b191['type']==this['tree']['type']&&_0xc1ca4e>=_0x5143af['to']?(this['decorations']=this['decorations']['map'](_0x4cf732['changes']),this['decoratedTo']=_0xc1ca4e):(_0x24b191!=this['tree']||_0x4cf732['viewportChanged']||_0x52c71a)&&(this['tree']=_0x24b191,this['decorations']=this['buildDeco'](_0x4cf732['view'],_0x2d28c4),this['decoratedTo']=_0x5143af['to']);}['buildDeco'](_0x5e51d5,_0x585afb){if(!_0x585afb||!this['tree']['length'])return Decoration['none'];let _0x35d9d8=new RangeSetBuilder();for(let {from:_0x1da02c,to:_0x569079}of _0x5e51d5['visibleRanges'])highlightTree(this['tree'],_0x585afb,(_0x4f278a,_0x13d4e1,_0x351938)=>{_0x35d9d8['add'](_0x4f278a,_0x13d4e1,this['markCache'][_0x351938]||(this['markCache'][_0x351938]=Decoration['mark']({'class':_0x351938})));},_0x1da02c,_0x569079);return _0x35d9d8['finish']();}}const treeHighlighter=Prec['high'](ViewPlugin['fromClass'](TreeHighlighter,{'decorations':_0x3c2633=>_0x3c2633['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':_0x572a0f=>combineConfig(_0x572a0f,{'afterCursor':!0x0,'brackets':DefaultBrackets,'maxScanDistance':DefaultScanDist,'renderMatch':defaultRenderMatch})}),matchingMark=Decoration['mark']({'class':'cm-matchingBracket'}),nonmatchingMark=Decoration['mark']({'class':'cm-nonmatchingBracket'});function defaultRenderMatch(_0x12191e){let _0x3abdb8=[],_0x474112=_0x12191e['matched']?matchingMark:nonmatchingMark;return _0x3abdb8['push'](_0x474112['range'](_0x12191e['start']['from'],_0x12191e['start']['to'])),_0x12191e['end']&&_0x3abdb8['push'](_0x474112['range'](_0x12191e['end']['from'],_0x12191e['end']['to'])),_0x3abdb8;}const bracketMatchingState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x2adf46,_0x10133f){if(!_0x10133f['docChanged']&&!_0x10133f['selection'])return _0x2adf46;let _0x5c01e1=[],_0x43dc72=_0x10133f['state']['facet'](bracketMatchingConfig);for(let _0x52e388 of _0x10133f['state']['selection']['ranges']){if(!_0x52e388['empty'])continue;let _0x36b0f6=matchBrackets(_0x10133f['state'],_0x52e388['head'],-0x1,_0x43dc72)||_0x52e388['head']>0x0&&matchBrackets(_0x10133f['state'],_0x52e388['head']-0x1,0x1,_0x43dc72)||_0x43dc72['afterCursor']&&(matchBrackets(_0x10133f['state'],_0x52e388['head'],0x1,_0x43dc72)||_0x52e388['head']<_0x10133f['state']['doc']['length']&&matchBrackets(_0x10133f['state'],_0x52e388['head']+0x1,-0x1,_0x43dc72));_0x36b0f6&&(_0x5c01e1=_0x5c01e1['concat'](_0x43dc72['renderMatch'](_0x36b0f6,_0x10133f['state'])));}return Decoration['set'](_0x5c01e1,!0x0);},'provide':_0xc1fae7=>EditorView['decorations']['from'](_0xc1fae7)}),bracketMatchingUnique=[bracketMatchingState,baseTheme$2];function bracketMatching(_0x5d0b59={}){return[bracketMatchingConfig['of'](_0x5d0b59),bracketMatchingUnique];}const bracketMatchingHandle=new NodeProp();function matchingNodes(_0x233b10,_0x722fb1,_0x52b931){let _0x1fa463=_0x233b10['prop'](_0x722fb1<0x0?NodeProp['openedBy']:NodeProp['closedBy']);if(_0x1fa463)return _0x1fa463;if(0x1==_0x233b10['name']['length']){let _0x199e72=_0x52b931['indexOf'](_0x233b10['name']);if(_0x199e72>-0x1&&_0x199e72%0x2==(_0x722fb1<0x0?0x1:0x0))return[_0x52b931[_0x199e72+_0x722fb1]];}return null;}function findHandle(_0x15d047){let _0x134ae5=_0x15d047['type']['prop'](bracketMatchingHandle);return _0x134ae5?_0x134ae5(_0x15d047['node']):_0x15d047;}function matchBrackets(_0x2db403,_0x1a7a37,_0x87ecb0,_0x42c42a={}){let _0x3b0b34=_0x42c42a['maxScanDistance']||DefaultScanDist,_0xa24c17=_0x42c42a['brackets']||DefaultBrackets,_0x117e4b=syntaxTree(_0x2db403),_0x3913e3=_0x117e4b['resolveInner'](_0x1a7a37,_0x87ecb0);for(let _0x592627=_0x3913e3;_0x592627;_0x592627=_0x592627['parent']){let _0x4adc02=matchingNodes(_0x592627['type'],_0x87ecb0,_0xa24c17);if(_0x4adc02&&_0x592627['from']<_0x592627['to']){let _0x4ed75b=findHandle(_0x592627);if(_0x4ed75b&&(_0x87ecb0>0x0?_0x1a7a37>=_0x4ed75b['from']&&_0x1a7a37<_0x4ed75b['to']:_0x1a7a37>_0x4ed75b['from']&&_0x1a7a37<=_0x4ed75b['to']))return matchMarkedBrackets(_0x2db403,_0x1a7a37,_0x87ecb0,_0x592627,_0x4ed75b,_0x4adc02,_0xa24c17);}}return matchPlainBrackets(_0x2db403,_0x1a7a37,_0x87ecb0,_0x117e4b,_0x3913e3['type'],_0x3b0b34,_0xa24c17);}function matchMarkedBrackets(_0x4b3b95,_0x20f0c4,_0x147988,_0x46d918,_0x31b2b6,_0xa520d1,_0x3037b8){let _0x3da3ca=_0x46d918['parent'],_0x317fba={'from':_0x31b2b6['from'],'to':_0x31b2b6['to']},_0x485f97=0x0,_0xfca6c7=null==_0x3da3ca?void 0x0:_0x3da3ca['cursor']();if(_0xfca6c7&&(_0x147988<0x0?_0xfca6c7['childBefore'](_0x46d918['from']):_0xfca6c7['childAfter'](_0x46d918['to'])))do{if(_0x147988<0x0?_0xfca6c7['to']<=_0x46d918['from']:_0xfca6c7['from']>=_0x46d918['to']){if(0x0==_0x485f97&&_0xa520d1['indexOf'](_0xfca6c7['type']['name'])>-0x1&&_0xfca6c7['from']<_0xfca6c7['to']){let _0x4c2758=findHandle(_0xfca6c7);return{'start':_0x317fba,'end':_0x4c2758?{'from':_0x4c2758['from'],'to':_0x4c2758['to']}:void 0x0,'matched':!0x0};}if(matchingNodes(_0xfca6c7['type'],_0x147988,_0x3037b8))_0x485f97++;else{if(matchingNodes(_0xfca6c7['type'],-_0x147988,_0x3037b8)){if(0x0==_0x485f97){let _0x2bc90e=findHandle(_0xfca6c7);return{'start':_0x317fba,'end':_0x2bc90e&&_0x2bc90e['from']<_0x2bc90e['to']?{'from':_0x2bc90e['from'],'to':_0x2bc90e['to']}:void 0x0,'matched':!0x1};}_0x485f97--;}}}}while(_0x147988<0x0?_0xfca6c7['prevSibling']():_0xfca6c7['nextSibling']());return{'start':_0x317fba,'matched':!0x1};}function matchPlainBrackets(_0x432255,_0x101aa8,_0x2d467d,_0x1765ee,_0xffd119,_0x3778b8,_0x1d041e){let _0x48fa67=_0x2d467d<0x0?_0x432255['sliceDoc'](_0x101aa8-0x1,_0x101aa8):_0x432255['sliceDoc'](_0x101aa8,_0x101aa8+0x1),_0x342537=_0x1d041e['indexOf'](_0x48fa67);if(_0x342537<0x0||_0x342537%0x2==0x0!=_0x2d467d>0x0)return null;let _0x36c189={'from':_0x2d467d<0x0?_0x101aa8-0x1:_0x101aa8,'to':_0x2d467d>0x0?_0x101aa8+0x1:_0x101aa8},_0x431b36=_0x432255['doc']['iterRange'](_0x101aa8,_0x2d467d>0x0?_0x432255['doc']['length']:0x0),_0x48db9f=0x0;for(let _0x4f9393=0x0;!_0x431b36['next']()['done']&&_0x4f9393<=_0x3778b8;){let _0x289434=_0x431b36['value'];_0x2d467d<0x0&&(_0x4f9393+=_0x289434['length']);let _0xe2497d=_0x101aa8+_0x4f9393*_0x2d467d;for(let _0x86619e=_0x2d467d>0x0?0x0:_0x289434['length']-0x1,_0x38196c=_0x2d467d>0x0?_0x289434['length']:-0x1;_0x86619e!=_0x38196c;_0x86619e+=_0x2d467d){let _0x5a7aad=_0x1d041e['indexOf'](_0x289434[_0x86619e]);if(!(_0x5a7aad<0x0||_0x1765ee['resolveInner'](_0xe2497d+_0x86619e,0x1)['type']!=_0xffd119)){if(_0x5a7aad%0x2==0x0==_0x2d467d>0x0)_0x48db9f++;else{if(0x1==_0x48db9f)return{'start':_0x36c189,'end':{'from':_0xe2497d+_0x86619e,'to':_0xe2497d+_0x86619e+0x1},'matched':_0x5a7aad>>0x1==_0x342537>>0x1};_0x48db9f--;}}}_0x2d467d>0x0&&(_0x4f9393+=_0x289434['length']);}return _0x431b36['done']?{'start':_0x36c189,'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(_0x3bdbb0,_0x11063c){warned['indexOf'](_0x3bdbb0)>-0x1||(warned['push'](_0x3bdbb0),console['warn'](_0x11063c));}function createTokenType(_0x4b8fd5,_0x4a1743){let _0xd86e2b=[];for(let _0x2a29cf of _0x4a1743['split']('\x20')){let _0x2f83fe=[];for(let _0x2a411c of _0x2a29cf['split']('.')){let _0x37ec91=_0x4b8fd5[_0x2a411c]||tags$1[_0x2a411c];_0x37ec91?'function'==typeof _0x37ec91?_0x2f83fe['length']?_0x2f83fe=_0x2f83fe['map'](_0x37ec91):warnForPart(_0x2a411c,'Modifier\x20'+_0x2a411c+'\x20used\x20at\x20start\x20of\x20tag'):_0x2f83fe['length']?warnForPart(_0x2a411c,'Tag\x20'+_0x2a411c+'\x20used\x20as\x20modifier'):_0x2f83fe=Array['isArray'](_0x37ec91)?_0x37ec91:[_0x37ec91]:warnForPart(_0x2a411c,'Unknown\x20highlighting\x20tag\x20'+_0x2a411c);}for(let _0xdf31d5 of _0x2f83fe)_0xd86e2b['push'](_0xdf31d5);}if(!_0xd86e2b['length'])return 0x0;let _0x386039=_0x4a1743['replace'](/ /g,'_'),_0x4072bf=_0x386039+'\x20'+_0xd86e2b['map'](t=>t['id']),_0x4c1d03=byTag[_0x4072bf];if(_0x4c1d03)return _0x4c1d03['id'];let _0xc47aa1=byTag[_0x4072bf]=NodeType['define']({'id':typeArray['length'],'name':_0x386039,'props':[styleTags({[_0x386039]:_0xd86e2b})]});return typeArray['push'](_0xc47aa1),_0xc47aa1['id'];}Direction['RTL'],Direction['LTR'];const toggleComment=_0x45513e=>{let {state:_0x129f2e}=_0x45513e,_0x52967c=_0x129f2e['doc']['lineAt'](_0x129f2e['selection']['main']['from']),_0x2bd07f=getConfig(_0x45513e['state'],_0x52967c['from']);return _0x2bd07f['line']?toggleLineComment(_0x45513e):!!_0x2bd07f['block']&&toggleBlockCommentByLine(_0x45513e);};function command(_0x2046c1,_0x205fcb){return({state:_0x3f36e5,dispatch:_0x4802a2})=>{if(_0x3f36e5['readOnly'])return!0x1;let _0xbc3b5=_0x2046c1(_0x205fcb,_0x3f36e5);return!!_0xbc3b5&&(_0x4802a2(_0x3f36e5['update'](_0xbc3b5)),!0x0);};}const toggleLineComment=command(changeLineComment,0x0),toggleBlockComment=command(changeBlockComment,0x0),toggleBlockCommentByLine=command((_0xe1168f,_0x577257)=>changeBlockComment(_0xe1168f,_0x577257,selectedLineRanges(_0x577257)),0x0);function getConfig(_0x1de741,_0x4d783b){let _0x5d90c0=_0x1de741['languageDataAt']('commentTokens',_0x4d783b,0x1);return _0x5d90c0['length']?_0x5d90c0[0x0]:{};}const SearchMargin=0x32;function findBlockComment(_0x35ca53,{open:_0x3df8ef,close:_0x269e6c},_0x3f3ed9,_0x23a93e){let _0x434c18,_0x34e3ab,_0x404d97=_0x35ca53['sliceDoc'](_0x3f3ed9-SearchMargin,_0x3f3ed9),_0x2a9b88=_0x35ca53['sliceDoc'](_0x23a93e,_0x23a93e+SearchMargin),_0x5f2512=/\s*$/['exec'](_0x404d97)[0x0]['length'],_0x4e3837=/^\s*/['exec'](_0x2a9b88)[0x0]['length'],_0x3886b9=_0x404d97['length']-_0x5f2512;if(_0x404d97['slice'](_0x3886b9-_0x3df8ef['length'],_0x3886b9)==_0x3df8ef&&_0x2a9b88['slice'](_0x4e3837,_0x4e3837+_0x269e6c['length'])==_0x269e6c)return{'open':{'pos':_0x3f3ed9-_0x5f2512,'margin':_0x5f2512&&0x1},'close':{'pos':_0x23a93e+_0x4e3837,'margin':_0x4e3837&&0x1}};_0x23a93e-_0x3f3ed9<=0x2*SearchMargin?_0x434c18=_0x34e3ab=_0x35ca53['sliceDoc'](_0x3f3ed9,_0x23a93e):(_0x434c18=_0x35ca53['sliceDoc'](_0x3f3ed9,_0x3f3ed9+SearchMargin),_0x34e3ab=_0x35ca53['sliceDoc'](_0x23a93e-SearchMargin,_0x23a93e));let _0x1f94dc=/^\s*/['exec'](_0x434c18)[0x0]['length'],_0x176821=/\s*$/['exec'](_0x34e3ab)[0x0]['length'],_0x3597db=_0x34e3ab['length']-_0x176821-_0x269e6c['length'];return _0x434c18['slice'](_0x1f94dc,_0x1f94dc+_0x3df8ef['length'])==_0x3df8ef&&_0x34e3ab['slice'](_0x3597db,_0x3597db+_0x269e6c['length'])==_0x269e6c?{'open':{'pos':_0x3f3ed9+_0x1f94dc+_0x3df8ef['length'],'margin':/\s/['test'](_0x434c18['charAt'](_0x1f94dc+_0x3df8ef['length']))?0x1:0x0},'close':{'pos':_0x23a93e-_0x176821-_0x269e6c['length'],'margin':/\s/['test'](_0x34e3ab['charAt'](_0x3597db-0x1))?0x1:0x0}}:null;}function selectedLineRanges(_0x5c7a0f){let _0x575b61=[];for(let _0x40de36 of _0x5c7a0f['selection']['ranges']){let _0x35061b=_0x5c7a0f['doc']['lineAt'](_0x40de36['from']),_0x3c817f=_0x40de36['to']<=_0x35061b['to']?_0x35061b:_0x5c7a0f['doc']['lineAt'](_0x40de36['to']);_0x3c817f['from']>_0x35061b['from']&&_0x3c817f['from']==_0x40de36['to']&&(_0x3c817f=_0x40de36['to']==_0x35061b['to']+0x1?_0x35061b:_0x5c7a0f['doc']['lineAt'](_0x40de36['to']-0x1));let _0x3b94fa=_0x575b61['length']-0x1;_0x3b94fa>=0x0&&_0x575b61[_0x3b94fa]['to']>_0x35061b['from']?_0x575b61[_0x3b94fa]['to']=_0x3c817f['to']:_0x575b61['push']({'from':_0x35061b['from']+/^\s*/['exec'](_0x35061b['text'])[0x0]['length'],'to':_0x3c817f['to']});}return _0x575b61;}function changeBlockComment(_0x5c21b9,_0x3a1408,_0x13efbe=_0x3a1408['selection']['ranges']){let _0x1fa5a3=_0x13efbe['map'](_0x1d6ce1=>getConfig(_0x3a1408,_0x1d6ce1['from'])['block']);if(!_0x1fa5a3['every'](_0x1c188a=>_0x1c188a))return null;let _0x3953d9=_0x13efbe['map']((_0x839ea2,_0x55e52a)=>findBlockComment(_0x3a1408,_0x1fa5a3[_0x55e52a],_0x839ea2['from'],_0x839ea2['to']));if(0x2!=_0x5c21b9&&!_0x3953d9['every'](_0x146ce4=>_0x146ce4))return{'changes':_0x3a1408['changes'](_0x13efbe['map']((_0x38148a,_0x562446)=>_0x3953d9[_0x562446]?[]:[{'from':_0x38148a['from'],'insert':_0x1fa5a3[_0x562446]['open']+'\x20'},{'from':_0x38148a['to'],'insert':'\x20'+_0x1fa5a3[_0x562446]['close']}]))};if(0x1!=_0x5c21b9&&_0x3953d9['some'](_0x59702b=>_0x59702b)){let _0x1f3f7a=[];for(let _0x206be0,_0x4b3b1d=0x0;_0x4b3b1d<_0x3953d9['length'];_0x4b3b1d++)if(_0x206be0=_0x3953d9[_0x4b3b1d]){let _0xb01d2e=_0x1fa5a3[_0x4b3b1d],{open:_0x44e7a6,close:_0x4e6963}=_0x206be0;_0x1f3f7a['push']({'from':_0x44e7a6['pos']-_0xb01d2e['open']['length'],'to':_0x44e7a6['pos']+_0x44e7a6['margin']},{'from':_0x4e6963['pos']-_0x4e6963['margin'],'to':_0x4e6963['pos']+_0xb01d2e['close']['length']});}return{'changes':_0x1f3f7a};}return null;}function changeLineComment(_0x20e227,_0x106445,_0x26f5a9=_0x106445['selection']['ranges']){let _0x25d177=[],_0x539ea7=-0x1;for(let {from:_0x250cd0,to:_0x3cfdde}of _0x26f5a9){let _0x4b434e=_0x25d177['length'],_0x346434=0x3b9aca00,_0x2a5f90=getConfig(_0x106445,_0x250cd0)['line'];if(_0x2a5f90){for(let _0x4bd25b=_0x250cd0;_0x4bd25b<=_0x3cfdde;){let _0x35ad83=_0x106445['doc']['lineAt'](_0x4bd25b);if(_0x35ad83['from']>_0x539ea7&&(_0x250cd0==_0x3cfdde||_0x3cfdde>_0x35ad83['from'])){_0x539ea7=_0x35ad83['from'];let _0x3c86a9=/^\s*/['exec'](_0x35ad83['text'])[0x0]['length'],_0x46b53f=_0x3c86a9==_0x35ad83['length'],_0x36576a=_0x35ad83['text']['slice'](_0x3c86a9,_0x3c86a9+_0x2a5f90['length'])==_0x2a5f90?_0x3c86a9:-0x1;_0x3c86a9<_0x35ad83['text']['length']&&_0x3c86a9<_0x346434&&(_0x346434=_0x3c86a9),_0x25d177['push']({'line':_0x35ad83,'comment':_0x36576a,'token':_0x2a5f90,'indent':_0x3c86a9,'empty':_0x46b53f,'single':!0x1});}_0x4bd25b=_0x35ad83['to']+0x1;}if(_0x346434<0x3b9aca00){for(let _0xffed61=_0x4b434e;_0xffed61<_0x25d177['length'];_0xffed61++)_0x25d177[_0xffed61]['indent']<_0x25d177[_0xffed61]['line']['text']['length']&&(_0x25d177[_0xffed61]['indent']=_0x346434);}_0x25d177['length']==_0x4b434e+0x1&&(_0x25d177[_0x4b434e]['single']=!0x0);}}if(0x2!=_0x20e227&&_0x25d177['some'](_0x43bfa8=>_0x43bfa8['comment']<0x0&&(!_0x43bfa8['empty']||_0x43bfa8['single']))){let _0x25f6e1=[];for(let {line:_0x473581,token:_0x5a5b54,indent:_0x5ec3fd,empty:_0x5d1020,single:_0x33608f}of _0x25d177)!_0x33608f&&_0x5d1020||_0x25f6e1['push']({'from':_0x473581['from']+_0x5ec3fd,'insert':_0x5a5b54+'\x20'});let _0x1671d4=_0x106445['changes'](_0x25f6e1);return{'changes':_0x1671d4,'selection':_0x106445['selection']['map'](_0x1671d4,0x1)};}if(0x1!=_0x20e227&&_0x25d177['some'](_0x2cfaf2=>_0x2cfaf2['comment']>=0x0)){let _0x4e7f57=[];for(let {line:_0x1ddc5e,comment:_0x37e42b,token:_0x5b72e9}of _0x25d177)if(_0x37e42b>=0x0){let _0x5b5bbc=_0x1ddc5e['from']+_0x37e42b,_0xc53939=_0x5b5bbc+_0x5b72e9['length'];'\x20'==_0x1ddc5e['text'][_0xc53939-_0x1ddc5e['from']]&&_0xc53939++,_0x4e7f57['push']({'from':_0x5b5bbc,'to':_0xc53939});}return{'changes':_0x4e7f57};}return null;}const fromHistory=Annotation['define'](),isolateHistory=Annotation['define'](),invertedEffects=Facet['define'](),historyConfig=Facet['define']({'combine':_0x42de03=>combineConfig(_0x42de03,{'minDepth':0x64,'newGroupDelay':0x1f4,'joinToEvent':(_0x2aa0f2,_0x5edb6d)=>_0x5edb6d},{'minDepth':Math['max'],'newGroupDelay':Math['min'],'joinToEvent':(_0x543fea,_0x5d521f)=>(_0x2b891c,_0x2789ff)=>_0x543fea(_0x2b891c,_0x2789ff)||_0x5d521f(_0x2b891c,_0x2789ff)})}),historyField_=StateField['define']({'create':()=>HistoryState['empty'],'update'(_0x466bb2,_0x3c7b71){let _0x2d592f=_0x3c7b71['state']['facet'](historyConfig),_0x3f3d52=_0x3c7b71['annotation'](fromHistory);if(_0x3f3d52){let _0x3e724f=HistEvent['fromTransaction'](_0x3c7b71,_0x3f3d52['selection']),_0x365a58=_0x3f3d52['side'],_0x563f2e=0x0==_0x365a58?_0x466bb2['undone']:_0x466bb2['done'];return _0x563f2e=_0x3e724f?updateBranch(_0x563f2e,_0x563f2e['length'],_0x2d592f['minDepth'],_0x3e724f):addSelection(_0x563f2e,_0x3c7b71['startState']['selection']),new HistoryState(0x0==_0x365a58?_0x3f3d52['rest']:_0x563f2e,0x0==_0x365a58?_0x563f2e:_0x3f3d52['rest']);}let _0x1fb481=_0x3c7b71['annotation'](isolateHistory);if('full'!=_0x1fb481&&'before'!=_0x1fb481||(_0x466bb2=_0x466bb2['isolate']()),!0x1===_0x3c7b71['annotation'](Transaction['addToHistory']))return _0x3c7b71['changes']['empty']?_0x466bb2:_0x466bb2['addMapping'](_0x3c7b71['changes']['desc']);let _0x2d24a4=HistEvent['fromTransaction'](_0x3c7b71),_0xa7eeb0=_0x3c7b71['annotation'](Transaction['time']),_0x418ff6=_0x3c7b71['annotation'](Transaction['userEvent']);return _0x2d24a4?_0x466bb2=_0x466bb2['addChanges'](_0x2d24a4,_0xa7eeb0,_0x418ff6,_0x2d592f,_0x3c7b71):_0x3c7b71['selection']&&(_0x466bb2=_0x466bb2['addSelection'](_0x3c7b71['startState']['selection'],_0xa7eeb0,_0x418ff6,_0x2d592f['newGroupDelay'])),'full'!=_0x1fb481&&'after'!=_0x1fb481||(_0x466bb2=_0x466bb2['isolate']()),_0x466bb2;},'toJSON':_0x332962=>({'done':_0x332962['done']['map'](_0x375376=>_0x375376['toJSON']()),'undone':_0x332962['undone']['map'](_0x3f1eb1=>_0x3f1eb1['toJSON']())}),'fromJSON':_0x107c09=>new HistoryState(_0x107c09['done']['map'](HistEvent['fromJSON']),_0x107c09['undone']['map'](HistEvent['fromJSON']))});function history(_0xbd0139={}){return[historyField_,historyConfig['of'](_0xbd0139),EditorView['domEventHandlers']({'beforeinput'(_0x540f52,_0x227dc3){let _0x4c6083='historyUndo'==_0x540f52['inputType']?undo:'historyRedo'==_0x540f52['inputType']?redo:null;return!!_0x4c6083&&(_0x540f52['preventDefault'](),_0x4c6083(_0x227dc3));}})];}function cmd(_0x4091c1,_0x2557bc){return function({state:_0x136a0b,dispatch:_0x400340}){if(!_0x2557bc&&_0x136a0b['readOnly'])return!0x1;let _0x4e4301=_0x136a0b['field'](historyField_,!0x1);if(!_0x4e4301)return!0x1;let _0x3d81ee=_0x4e4301['pop'](_0x4091c1,_0x136a0b,_0x2557bc);return!!_0x3d81ee&&(_0x400340(_0x3d81ee),!0x0);};}const undo=cmd(0x0,!0x1),redo=cmd(0x1,!0x1),undoSelection=cmd(0x0,!0x0),redoSelection=cmd(0x1,!0x0);class HistEvent{constructor(_0x1be982,_0x3426e9,_0x523a37,_0xeccaa4,_0x1435a7){this['changes']=_0x1be982,this['effects']=_0x3426e9,this['mapped']=_0x523a37,this['startSelection']=_0xeccaa4,this['selectionsAfter']=_0x1435a7;}['setSelAfter'](_0x5e21c1){return new HistEvent(this['changes'],this['effects'],this['mapped'],this['startSelection'],_0x5e21c1);}['toJSON'](){var _0x513d0e,_0x48c6f9,_0x27245f;return{'changes':null===(_0x513d0e=this['changes'])||void 0x0===_0x513d0e?void 0x0:_0x513d0e['toJSON'](),'mapped':null===(_0x48c6f9=this['mapped'])||void 0x0===_0x48c6f9?void 0x0:_0x48c6f9['toJSON'](),'startSelection':null===(_0x27245f=this['startSelection'])||void 0x0===_0x27245f?void 0x0:_0x27245f['toJSON'](),'selectionsAfter':this['selectionsAfter']['map'](_0x2c6d00=>_0x2c6d00['toJSON']())};}static['fromJSON'](_0x379530){return new HistEvent(_0x379530['changes']&&ChangeSet['fromJSON'](_0x379530['changes']),[],_0x379530['mapped']&&ChangeDesc['fromJSON'](_0x379530['mapped']),_0x379530['startSelection']&&EditorSelection['fromJSON'](_0x379530['startSelection']),_0x379530['selectionsAfter']['map'](EditorSelection['fromJSON']));}static['fromTransaction'](_0x2761ff,_0x34d5e9){let _0x44cf68=none$2;for(let _0x9c3723 of _0x2761ff['startState']['facet'](invertedEffects)){let _0x2e644a=_0x9c3723(_0x2761ff);_0x2e644a['length']&&(_0x44cf68=_0x44cf68['concat'](_0x2e644a));}return!_0x44cf68['length']&&_0x2761ff['changes']['empty']?null:new HistEvent(_0x2761ff['changes']['invert'](_0x2761ff['startState']['doc']),_0x44cf68,void 0x0,_0x34d5e9||_0x2761ff['startState']['selection'],none$2);}static['selection'](_0x5dbd0e){return new HistEvent(void 0x0,none$2,void 0x0,void 0x0,_0x5dbd0e);}}function updateBranch(_0x5dcace,_0x28561d,_0xa4fb7,_0x5de8d4){let _0x5b875b=_0x28561d+0x1>_0xa4fb7+0x14?_0x28561d-_0xa4fb7-0x1:0x0,_0x2c8a3e=_0x5dcace['slice'](_0x5b875b,_0x28561d);return _0x2c8a3e['push'](_0x5de8d4),_0x2c8a3e;}function isAdjacent(_0x4bbbae,_0x29de15){let _0x13c609=[],_0x10e7a3=!0x1;return _0x4bbbae['iterChangedRanges']((_0x2eb01d,t)=>_0x13c609['push'](_0x2eb01d,t)),_0x29de15['iterChangedRanges']((_0xa40117,_0x271cdc,_0x278211,t)=>{for(let _0xcdd5fe=0x0;_0xcdd5fe<_0x13c609['length'];){let _0x111379=_0x13c609[_0xcdd5fe++],_0x4d7861=_0x13c609[_0xcdd5fe++];t>=_0x111379&&_0x278211<=_0x4d7861&&(_0x10e7a3=!0x0);}}),_0x10e7a3;}function eqSelectionShape(_0x3ca1c0,_0x242103){return _0x3ca1c0['ranges']['length']==_0x242103['ranges']['length']&&0x0===_0x3ca1c0['ranges']['filter']((_0x20049f,_0x25ce7e)=>_0x20049f['empty']!=_0x242103['ranges'][_0x25ce7e]['empty'])['length'];}function conc(_0x289b03,_0x3d7492){return _0x289b03['length']?_0x3d7492['length']?_0x289b03['concat'](_0x3d7492):_0x289b03:_0x3d7492;}const none$2=[],MaxSelectionsPerEvent=0xc8;function addSelection(_0x2deb89,_0x23a48d){if(_0x2deb89['length']){let _0x15f088=_0x2deb89[_0x2deb89['length']-0x1],_0x47f805=_0x15f088['selectionsAfter']['slice'](Math['max'](0x0,_0x15f088['selectionsAfter']['length']-MaxSelectionsPerEvent));return _0x47f805['length']&&_0x47f805[_0x47f805['length']-0x1]['eq'](_0x23a48d)?_0x2deb89:(_0x47f805['push'](_0x23a48d),updateBranch(_0x2deb89,_0x2deb89['length']-0x1,0x3b9aca00,_0x15f088['setSelAfter'](_0x47f805)));}return[HistEvent['selection']([_0x23a48d])];}function popSelection(_0x28841f){let _0x178646=_0x28841f[_0x28841f['length']-0x1],_0x126079=_0x28841f['slice']();return _0x126079[_0x28841f['length']-0x1]=_0x178646['setSelAfter'](_0x178646['selectionsAfter']['slice'](0x0,_0x178646['selectionsAfter']['length']-0x1)),_0x126079;}function addMappingToBranch(_0x34407f,_0x23679a){if(!_0x34407f['length'])return _0x34407f;let _0x1b75b4=_0x34407f['length'],_0x11253b=none$2;for(;_0x1b75b4;){let _0x2e3644=mapEvent(_0x34407f[_0x1b75b4-0x1],_0x23679a,_0x11253b);if(_0x2e3644['changes']&&!_0x2e3644['changes']['empty']||_0x2e3644['effects']['length']){let _0x860ee7=_0x34407f['slice'](0x0,_0x1b75b4);return _0x860ee7[_0x1b75b4-0x1]=_0x2e3644,_0x860ee7;}_0x23679a=_0x2e3644['mapped'],_0x1b75b4--,_0x11253b=_0x2e3644['selectionsAfter'];}return _0x11253b['length']?[HistEvent['selection'](_0x11253b)]:none$2;}function mapEvent(_0x56c623,_0x8ce8d0,_0x827f65){let _0x552c87=conc(_0x56c623['selectionsAfter']['length']?_0x56c623['selectionsAfter']['map'](_0x5d366e=>_0x5d366e['map'](_0x8ce8d0)):none$2,_0x827f65);if(!_0x56c623['changes'])return HistEvent['selection'](_0x552c87);let _0x26f881=_0x56c623['changes']['map'](_0x8ce8d0),_0x355a50=_0x8ce8d0['mapDesc'](_0x56c623['changes'],!0x0),_0x2ff778=_0x56c623['mapped']?_0x56c623['mapped']['composeDesc'](_0x355a50):_0x355a50;return new HistEvent(_0x26f881,StateEffect['mapEffects'](_0x56c623['effects'],_0x8ce8d0),_0x2ff778,_0x56c623['startSelection']['map'](_0x355a50),_0x552c87);}const joinableUserEvent=/^(input\.type|delete)($|\.)/;class HistoryState{constructor(_0x2ec6d9,_0x3a00de,_0xc7509b=0x0,_0x55dfe5=void 0x0){this['done']=_0x2ec6d9,this['undone']=_0x3a00de,this['prevTime']=_0xc7509b,this['prevUserEvent']=_0x55dfe5;}['isolate'](){return this['prevTime']?new HistoryState(this['done'],this['undone']):this;}['addChanges'](_0x286e05,_0xc18738,_0x1a1302,_0xf15475,_0x42def0){let _0x1bb62e=this['done'],_0x3e5476=_0x1bb62e[_0x1bb62e['length']-0x1];return _0x1bb62e=_0x3e5476&&_0x3e5476['changes']&&!_0x3e5476['changes']['empty']&&_0x286e05['changes']&&(!_0x1a1302||joinableUserEvent['test'](_0x1a1302))&&(!_0x3e5476['selectionsAfter']['length']&&_0xc18738-this['prevTime']<_0xf15475['newGroupDelay']&&_0xf15475['joinToEvent'](_0x42def0,isAdjacent(_0x3e5476['changes'],_0x286e05['changes']))||'input.type.compose'==_0x1a1302)?updateBranch(_0x1bb62e,_0x1bb62e['length']-0x1,_0xf15475['minDepth'],new HistEvent(_0x286e05['changes']['compose'](_0x3e5476['changes']),conc(StateEffect['mapEffects'](_0x286e05['effects'],_0x3e5476['changes']),_0x3e5476['effects']),_0x3e5476['mapped'],_0x3e5476['startSelection'],none$2)):updateBranch(_0x1bb62e,_0x1bb62e['length'],_0xf15475['minDepth'],_0x286e05),new HistoryState(_0x1bb62e,none$2,_0xc18738,_0x1a1302);}['addSelection'](_0x2421af,_0x33c8e,_0x3de156,_0x219e21){let _0x4fa163=this['done']['length']?this['done'][this['done']['length']-0x1]['selectionsAfter']:none$2;return _0x4fa163['length']>0x0&&_0x33c8e-this['prevTime']<_0x219e21&&_0x3de156==this['prevUserEvent']&&_0x3de156&&/^select($|\.)/['test'](_0x3de156)&&eqSelectionShape(_0x4fa163[_0x4fa163['length']-0x1],_0x2421af)?this:new HistoryState(addSelection(this['done'],_0x2421af),this['undone'],_0x33c8e,_0x3de156);}['addMapping'](_0x432eef){return new HistoryState(addMappingToBranch(this['done'],_0x432eef),addMappingToBranch(this['undone'],_0x432eef),this['prevTime'],this['prevUserEvent']);}['pop'](_0x3689b4,_0x1e89d8,_0x59abb5){let _0x4f0a4d=0x0==_0x3689b4?this['done']:this['undone'];if(0x0==_0x4f0a4d['length'])return null;let _0x593fbc=_0x4f0a4d[_0x4f0a4d['length']-0x1],_0x2c9d8e=_0x593fbc['selectionsAfter'][0x0]||_0x1e89d8['selection'];if(_0x59abb5&&_0x593fbc['selectionsAfter']['length'])return _0x1e89d8['update']({'selection':_0x593fbc['selectionsAfter'][_0x593fbc['selectionsAfter']['length']-0x1],'annotations':fromHistory['of']({'side':_0x3689b4,'rest':popSelection(_0x4f0a4d),'selection':_0x2c9d8e}),'userEvent':0x0==_0x3689b4?'select.undo':'select.redo','scrollIntoView':!0x0});if(_0x593fbc['changes']){let _0x389afb=0x1==_0x4f0a4d['length']?none$2:_0x4f0a4d['slice'](0x0,_0x4f0a4d['length']-0x1);return _0x593fbc['mapped']&&(_0x389afb=addMappingToBranch(_0x389afb,_0x593fbc['mapped'])),_0x1e89d8['update']({'changes':_0x593fbc['changes'],'selection':_0x593fbc['startSelection'],'effects':_0x593fbc['effects'],'annotations':fromHistory['of']({'side':_0x3689b4,'rest':_0x389afb,'selection':_0x2c9d8e}),'filter':!0x1,'userEvent':0x0==_0x3689b4?'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(_0x37126a,_0x157986){return EditorSelection['create'](_0x37126a['ranges']['map'](_0x157986),_0x37126a['mainIndex']);}function setSel(_0x4bcd93,_0x4998a6){return _0x4bcd93['update']({'selection':_0x4998a6,'scrollIntoView':!0x0,'userEvent':'select'});}function moveSel({state:_0x3724da,dispatch:_0x2bd348},_0x505d8e){let _0x7fad9f=updateSel(_0x3724da['selection'],_0x505d8e);return!_0x7fad9f['eq'](_0x3724da['selection'],!0x0)&&(_0x2bd348(setSel(_0x3724da,_0x7fad9f)),!0x0);}function rangeEnd(_0x67808a,_0x3aa9fc){return EditorSelection['cursor'](_0x3aa9fc?_0x67808a['to']:_0x67808a['from']);}function cursorByChar(_0x25059a,_0x42661e){return moveSel(_0x25059a,_0x57f6b9=>_0x57f6b9['empty']?_0x25059a['moveByChar'](_0x57f6b9,_0x42661e):rangeEnd(_0x57f6b9,_0x42661e));}function ltrAtCursor(_0xfa5db7){return _0xfa5db7['textDirectionAt'](_0xfa5db7['state']['selection']['main']['head'])==Direction['LTR'];}const cursorCharLeft=_0x453a3b=>cursorByChar(_0x453a3b,!ltrAtCursor(_0x453a3b)),cursorCharRight=_0x26e867=>cursorByChar(_0x26e867,ltrAtCursor(_0x26e867));function cursorByGroup(_0x5cdc57,_0x5976da){return moveSel(_0x5cdc57,_0x4b0652=>_0x4b0652['empty']?_0x5cdc57['moveByGroup'](_0x4b0652,_0x5976da):rangeEnd(_0x4b0652,_0x5976da));}const cursorGroupLeft=_0x5f2e0a=>cursorByGroup(_0x5f2e0a,!ltrAtCursor(_0x5f2e0a)),cursorGroupRight=_0x3a37fc=>cursorByGroup(_0x3a37fc,ltrAtCursor(_0x3a37fc));function interestingNode(_0x53066a,_0xefc001,_0x9d55c7){if(_0xefc001['type']['prop'](_0x9d55c7))return!0x0;let _0x34989e=_0xefc001['to']-_0xefc001['from'];return _0x34989e&&(_0x34989e>0x2||/[^\s,.;:]/['test'](_0x53066a['sliceDoc'](_0xefc001['from'],_0xefc001['to'])))||_0xefc001['firstChild'];}function moveBySyntax(_0x5a7efc,_0xcbc52f,_0x3886f6){let _0x31ffd6,_0x9a4033,_0x344c7f=syntaxTree(_0x5a7efc)['resolveInner'](_0xcbc52f['head']),_0x2b4c12=_0x3886f6?NodeProp['closedBy']:NodeProp['openedBy'];for(let _0x36a26d=_0xcbc52f['head'];;){let _0x4f61b3=_0x3886f6?_0x344c7f['childAfter'](_0x36a26d):_0x344c7f['childBefore'](_0x36a26d);if(!_0x4f61b3)break;interestingNode(_0x5a7efc,_0x4f61b3,_0x2b4c12)?_0x344c7f=_0x4f61b3:_0x36a26d=_0x3886f6?_0x4f61b3['to']:_0x4f61b3['from'];}return _0x9a4033=_0x344c7f['type']['prop'](_0x2b4c12)&&(_0x31ffd6=_0x3886f6?matchBrackets(_0x5a7efc,_0x344c7f['from'],0x1):matchBrackets(_0x5a7efc,_0x344c7f['to'],-0x1))&&_0x31ffd6['matched']?_0x3886f6?_0x31ffd6['end']['to']:_0x31ffd6['end']['from']:_0x3886f6?_0x344c7f['to']:_0x344c7f['from'],EditorSelection['cursor'](_0x9a4033,_0x3886f6?-0x1:0x1);}const cursorSyntaxLeft=_0x519dd8=>moveSel(_0x519dd8,_0x2104e0=>moveBySyntax(_0x519dd8['state'],_0x2104e0,!ltrAtCursor(_0x519dd8))),cursorSyntaxRight=_0x340f83=>moveSel(_0x340f83,_0x1d69d3=>moveBySyntax(_0x340f83['state'],_0x1d69d3,ltrAtCursor(_0x340f83)));function cursorByLine(_0x19074d,_0x219681){return moveSel(_0x19074d,_0x462e4a=>{if(!_0x462e4a['empty'])return rangeEnd(_0x462e4a,_0x219681);let _0x8b22e7=_0x19074d['moveVertically'](_0x462e4a,_0x219681);return _0x8b22e7['head']!=_0x462e4a['head']?_0x8b22e7:_0x19074d['moveToLineBoundary'](_0x462e4a,_0x219681);});}const cursorLineUp=_0x5ab851=>cursorByLine(_0x5ab851,!0x1),cursorLineDown=_0x4f0ddc=>cursorByLine(_0x4f0ddc,!0x0);function pageInfo(_0x430a7f){let _0x41d04c,_0xe2226c=_0x430a7f['scrollDOM']['clientHeight']<_0x430a7f['scrollDOM']['scrollHeight']-0x2,_0x2d7ee6=0x0,_0x72d2ea=0x0;if(_0xe2226c){for(let _0x205188 of _0x430a7f['state']['facet'](EditorView['scrollMargins'])){let _0x50a14f=_0x205188(_0x430a7f);(null==_0x50a14f?void 0x0:_0x50a14f['top'])&&(_0x2d7ee6=Math['max'](null==_0x50a14f?void 0x0:_0x50a14f['top'],_0x2d7ee6)),(null==_0x50a14f?void 0x0:_0x50a14f['bottom'])&&(_0x72d2ea=Math['max'](null==_0x50a14f?void 0x0:_0x50a14f['bottom'],_0x72d2ea));}_0x41d04c=_0x430a7f['scrollDOM']['clientHeight']-_0x2d7ee6-_0x72d2ea;}else _0x41d04c=(_0x430a7f['dom']['ownerDocument']['defaultView']||window)['innerHeight'];return{'marginTop':_0x2d7ee6,'marginBottom':_0x72d2ea,'selfScroll':_0xe2226c,'height':Math['max'](_0x430a7f['defaultLineHeight'],_0x41d04c-0x5)};}function cursorByPage(_0x36a2eb,_0x402ff1){let _0x363749,_0x4d6798=pageInfo(_0x36a2eb),{state:_0xaa05b4}=_0x36a2eb,_0xae438=updateSel(_0xaa05b4['selection'],_0x58cc7c=>_0x58cc7c['empty']?_0x36a2eb['moveVertically'](_0x58cc7c,_0x402ff1,_0x4d6798['height']):rangeEnd(_0x58cc7c,_0x402ff1));if(_0xae438['eq'](_0xaa05b4['selection']))return!0x1;if(_0x4d6798['selfScroll']){let _0x187f25=_0x36a2eb['coordsAtPos'](_0xaa05b4['selection']['main']['head']),_0x1fb612=_0x36a2eb['scrollDOM']['getBoundingClientRect'](),_0x55e5ea=_0x1fb612['top']+_0x4d6798['marginTop'],_0xf4d3d2=_0x1fb612['bottom']-_0x4d6798['marginBottom'];_0x187f25&&_0x187f25['top']>_0x55e5ea&&_0x187f25['bottom']<_0xf4d3d2&&(_0x363749=EditorView['scrollIntoView'](_0xae438['main']['head'],{'y':'start','yMargin':_0x187f25['top']-_0x55e5ea}));}return _0x36a2eb['dispatch'](setSel(_0xaa05b4,_0xae438),{'effects':_0x363749}),!0x0;}const cursorPageUp=_0x10c350=>cursorByPage(_0x10c350,!0x1),cursorPageDown=_0x536c56=>cursorByPage(_0x536c56,!0x0);function moveByLineBoundary(_0x31b3c4,_0x290282,_0xe78762){let _0x443a96=_0x31b3c4['lineBlockAt'](_0x290282['head']),_0x36d269=_0x31b3c4['moveToLineBoundary'](_0x290282,_0xe78762);if(_0x36d269['head']==_0x290282['head']&&_0x36d269['head']!=(_0xe78762?_0x443a96['to']:_0x443a96['from'])&&(_0x36d269=_0x31b3c4['moveToLineBoundary'](_0x290282,_0xe78762,!0x1)),!_0xe78762&&_0x36d269['head']==_0x443a96['from']&&_0x443a96['length']){let _0x308c3f=/^\s*/['exec'](_0x31b3c4['state']['sliceDoc'](_0x443a96['from'],Math['min'](_0x443a96['from']+0x64,_0x443a96['to'])))[0x0]['length'];_0x308c3f&&_0x290282['head']!=_0x443a96['from']+_0x308c3f&&(_0x36d269=EditorSelection['cursor'](_0x443a96['from']+_0x308c3f));}return _0x36d269;}const cursorLineBoundaryForward=_0x578c06=>moveSel(_0x578c06,_0x22c443=>moveByLineBoundary(_0x578c06,_0x22c443,!0x0)),cursorLineBoundaryBackward=_0x4f3a17=>moveSel(_0x4f3a17,_0x335e0f=>moveByLineBoundary(_0x4f3a17,_0x335e0f,!0x1)),cursorLineBoundaryLeft=_0x1b027a=>moveSel(_0x1b027a,_0x32753a=>moveByLineBoundary(_0x1b027a,_0x32753a,!ltrAtCursor(_0x1b027a))),cursorLineBoundaryRight=_0x5abecc=>moveSel(_0x5abecc,_0x4bb294=>moveByLineBoundary(_0x5abecc,_0x4bb294,ltrAtCursor(_0x5abecc))),cursorLineStart=_0x2b859d=>moveSel(_0x2b859d,_0xc3fb4d=>EditorSelection['cursor'](_0x2b859d['lineBlockAt'](_0xc3fb4d['head'])['from'],0x1)),cursorLineEnd=_0x1ba88a=>moveSel(_0x1ba88a,_0x2bf4b2=>EditorSelection['cursor'](_0x1ba88a['lineBlockAt'](_0x2bf4b2['head'])['to'],-0x1));function toMatchingBracket(_0xaed729,_0x71b3ea,_0x398930){let _0x23138f=!0x1,_0x53ced4=updateSel(_0xaed729['selection'],_0x409218=>{let _0x197258=matchBrackets(_0xaed729,_0x409218['head'],-0x1)||matchBrackets(_0xaed729,_0x409218['head'],0x1)||_0x409218['head']>0x0&&matchBrackets(_0xaed729,_0x409218['head']-0x1,0x1)||_0x409218['head']<_0xaed729['doc']['length']&&matchBrackets(_0xaed729,_0x409218['head']+0x1,-0x1);if(!_0x197258||!_0x197258['end'])return _0x409218;_0x23138f=!0x0;let _0xba017d=_0x197258['start']['from']==_0x409218['head']?_0x197258['end']['to']:_0x197258['end']['from'];return EditorSelection['cursor'](_0xba017d);});return!!_0x23138f&&(_0x71b3ea(setSel(_0xaed729,_0x53ced4)),!0x0);}const cursorMatchingBracket=({state:_0x2c5a2e,dispatch:_0xd1646b})=>toMatchingBracket(_0x2c5a2e,_0xd1646b);function extendSel(_0x57d9f7,_0x4fae9b){let _0xa88c76=updateSel(_0x57d9f7['state']['selection'],_0x3241da=>{let _0x42a0cd=_0x4fae9b(_0x3241da);return EditorSelection['range'](_0x3241da['anchor'],_0x42a0cd['head'],_0x42a0cd['goalColumn'],_0x42a0cd['bidiLevel']||void 0x0);});return!_0xa88c76['eq'](_0x57d9f7['state']['selection'])&&(_0x57d9f7['dispatch'](setSel(_0x57d9f7['state'],_0xa88c76)),!0x0);}function selectByChar(_0xef7d46,_0x379e9c){return extendSel(_0xef7d46,_0x19bb22=>_0xef7d46['moveByChar'](_0x19bb22,_0x379e9c));}const selectCharLeft=_0x2892da=>selectByChar(_0x2892da,!ltrAtCursor(_0x2892da)),selectCharRight=_0x4399c2=>selectByChar(_0x4399c2,ltrAtCursor(_0x4399c2));function selectByGroup(_0x418533,_0x4f51c7){return extendSel(_0x418533,_0xa755d8=>_0x418533['moveByGroup'](_0xa755d8,_0x4f51c7));}const selectGroupLeft=_0x5d6967=>selectByGroup(_0x5d6967,!ltrAtCursor(_0x5d6967)),selectGroupRight=_0xe15a21=>selectByGroup(_0xe15a21,ltrAtCursor(_0xe15a21)),selectSyntaxLeft=_0x36041d=>extendSel(_0x36041d,_0x28be08=>moveBySyntax(_0x36041d['state'],_0x28be08,!ltrAtCursor(_0x36041d))),selectSyntaxRight=_0x3db006=>extendSel(_0x3db006,_0x225963=>moveBySyntax(_0x3db006['state'],_0x225963,ltrAtCursor(_0x3db006)));function selectByLine(_0x71d792,_0x3f01c3){return extendSel(_0x71d792,_0x2a17f1=>_0x71d792['moveVertically'](_0x2a17f1,_0x3f01c3));}const selectLineUp=_0x11c51e=>selectByLine(_0x11c51e,!0x1),selectLineDown=_0x5f2891=>selectByLine(_0x5f2891,!0x0);function selectByPage(_0xe20f82,_0x3fa49a){return extendSel(_0xe20f82,_0x3e0c3c=>_0xe20f82['moveVertically'](_0x3e0c3c,_0x3fa49a,pageInfo(_0xe20f82)['height']));}const selectPageUp=_0x3a9ed5=>selectByPage(_0x3a9ed5,!0x1),selectPageDown=_0x1d15b7=>selectByPage(_0x1d15b7,!0x0),selectLineBoundaryForward=_0x1c50be=>extendSel(_0x1c50be,_0x2a335f=>moveByLineBoundary(_0x1c50be,_0x2a335f,!0x0)),selectLineBoundaryBackward=_0xfae5e4=>extendSel(_0xfae5e4,_0x16fccc=>moveByLineBoundary(_0xfae5e4,_0x16fccc,!0x1)),selectLineBoundaryLeft=_0x27a2f7=>extendSel(_0x27a2f7,_0x32d163=>moveByLineBoundary(_0x27a2f7,_0x32d163,!ltrAtCursor(_0x27a2f7))),selectLineBoundaryRight=_0x407227=>extendSel(_0x407227,_0x48e576=>moveByLineBoundary(_0x407227,_0x48e576,ltrAtCursor(_0x407227))),selectLineStart=_0x37873b=>extendSel(_0x37873b,_0x9f7f41=>EditorSelection['cursor'](_0x37873b['lineBlockAt'](_0x9f7f41['head'])['from'])),selectLineEnd=_0x4b6c55=>extendSel(_0x4b6c55,_0x403745=>EditorSelection['cursor'](_0x4b6c55['lineBlockAt'](_0x403745['head'])['to'])),cursorDocStart=({state:_0x167f20,dispatch:_0x111036})=>(_0x111036(setSel(_0x167f20,{'anchor':0x0})),!0x0),cursorDocEnd=({state:_0x199c1d,dispatch:_0x280b9b})=>(_0x280b9b(setSel(_0x199c1d,{'anchor':_0x199c1d['doc']['length']})),!0x0),selectDocStart=({state:_0x5a67f1,dispatch:_0x1f0494})=>(_0x1f0494(setSel(_0x5a67f1,{'anchor':_0x5a67f1['selection']['main']['anchor'],'head':0x0})),!0x0),selectDocEnd=({state:_0x1923b2,dispatch:_0x56418c})=>(_0x56418c(setSel(_0x1923b2,{'anchor':_0x1923b2['selection']['main']['anchor'],'head':_0x1923b2['doc']['length']})),!0x0),selectAll=({state:_0x15c94a,dispatch:_0x3290ed})=>(_0x3290ed(_0x15c94a['update']({'selection':{'anchor':0x0,'head':_0x15c94a['doc']['length']},'userEvent':'select'})),!0x0),selectLine=({state:_0xd128ac,dispatch:_0x3e8e6b})=>{let _0x53bda1=selectedLineBlocks(_0xd128ac)['map'](({from:_0x451cf0,to:_0x29502e})=>EditorSelection['range'](_0x451cf0,Math['min'](_0x29502e+0x1,_0xd128ac['doc']['length'])));return _0x3e8e6b(_0xd128ac['update']({'selection':EditorSelection['create'](_0x53bda1),'userEvent':'select'})),!0x0;},selectParentSyntax=({state:_0x36eb18,dispatch:_0x228b3f})=>{let _0x1d0833=updateSel(_0x36eb18['selection'],_0x30c82b=>{let _0x28a91b=syntaxTree(_0x36eb18),_0x25f28a=_0x28a91b['resolveStack'](_0x30c82b['from'],0x1);if(_0x30c82b['empty']){let _0x235b6e=_0x28a91b['resolveStack'](_0x30c82b['from'],-0x1);_0x235b6e['node']['from']>=_0x25f28a['node']['from']&&_0x235b6e['node']['to']<=_0x25f28a['node']['to']&&(_0x25f28a=_0x235b6e);}for(let _0x37bfd2=_0x25f28a;_0x37bfd2;_0x37bfd2=_0x37bfd2['next']){let {node:_0x1591ea}=_0x37bfd2;if((_0x1591ea['from']<_0x30c82b['from']&&_0x1591ea['to']>=_0x30c82b['to']||_0x1591ea['to']>_0x30c82b['to']&&_0x1591ea['from']<=_0x30c82b['from'])&&_0x37bfd2['next'])return EditorSelection['range'](_0x1591ea['to'],_0x1591ea['from']);}return _0x30c82b;});return!_0x1d0833['eq'](_0x36eb18['selection'])&&(_0x228b3f(setSel(_0x36eb18,_0x1d0833)),!0x0);},simplifySelection=({state:_0x4d90bc,dispatch:_0x24f994})=>{let _0x1ca6f6=_0x4d90bc['selection'],_0x9e3c54=null;return _0x1ca6f6['ranges']['length']>0x1?_0x9e3c54=EditorSelection['create']([_0x1ca6f6['main']]):_0x1ca6f6['main']['empty']||(_0x9e3c54=EditorSelection['create']([EditorSelection['cursor'](_0x1ca6f6['main']['head'])])),!!_0x9e3c54&&(_0x24f994(setSel(_0x4d90bc,_0x9e3c54)),!0x0);};function deleteBy(_0x35c424,_0x5975cc){if(_0x35c424['state']['readOnly'])return!0x1;let _0x333db9='delete.selection',{state:_0x29dcec}=_0x35c424,_0x49b894=_0x29dcec['changeByRange'](_0x34da0b=>{let {from:_0x516a15,to:_0x2dc5b9}=_0x34da0b;if(_0x516a15==_0x2dc5b9){let _0x19724a=_0x5975cc(_0x34da0b);_0x19724a<_0x516a15?(_0x333db9='delete.backward',_0x19724a=skipAtomic(_0x35c424,_0x19724a,!0x1)):_0x19724a>_0x516a15&&(_0x333db9='delete.forward',_0x19724a=skipAtomic(_0x35c424,_0x19724a,!0x0)),_0x516a15=Math['min'](_0x516a15,_0x19724a),_0x2dc5b9=Math['max'](_0x2dc5b9,_0x19724a);}else _0x516a15=skipAtomic(_0x35c424,_0x516a15,!0x1),_0x2dc5b9=skipAtomic(_0x35c424,_0x2dc5b9,!0x0);return _0x516a15==_0x2dc5b9?{'range':_0x34da0b}:{'changes':{'from':_0x516a15,'to':_0x2dc5b9},'range':EditorSelection['cursor'](_0x516a15,_0x516a15<_0x34da0b['head']?-0x1:0x1)};});return!_0x49b894['changes']['empty']&&(_0x35c424['dispatch'](_0x29dcec['update'](_0x49b894,{'scrollIntoView':!0x0,'userEvent':_0x333db9,'effects':'delete.selection'==_0x333db9?EditorView['announce']['of'](_0x29dcec['phrase']('Selection\x20deleted')):void 0x0})),!0x0);}function skipAtomic(_0x5b3280,_0x2e9af2,_0x4a1eff){if(_0x5b3280 instanceof EditorView){for(let _0x22cd7a of _0x5b3280['state']['facet'](EditorView['atomicRanges'])['map'](_0x29c4b7=>_0x29c4b7(_0x5b3280)))_0x22cd7a['between'](_0x2e9af2,_0x2e9af2,(_0x23a6d2,_0x5e9506)=>{_0x23a6d2<_0x2e9af2&&_0x5e9506>_0x2e9af2&&(_0x2e9af2=_0x4a1eff?_0x5e9506:_0x23a6d2);});}return _0x2e9af2;}const deleteByChar=(_0x37ee93,_0xd6b691,_0x5ebeda)=>deleteBy(_0x37ee93,_0x253d5a=>{let _0x34039e,_0x1befd0,_0x35b573=_0x253d5a['from'],{state:_0x3a5339}=_0x37ee93,_0x5a783e=_0x3a5339['doc']['lineAt'](_0x35b573);if(_0x5ebeda&&!_0xd6b691&&_0x35b573>_0x5a783e['from']&&_0x35b573<_0x5a783e['from']+0xc8&&!/[^ \t]/['test'](_0x34039e=_0x5a783e['text']['slice'](0x0,_0x35b573-_0x5a783e['from']))){if('\x09'==_0x34039e[_0x34039e['length']-0x1])return _0x35b573-0x1;let _0x3e7e21=countColumn(_0x34039e,_0x3a5339['tabSize'])%getIndentUnit(_0x3a5339)||getIndentUnit(_0x3a5339);for(let _0x533eab=0x0;_0x533eab<_0x3e7e21&&'\x20'==_0x34039e[_0x34039e['length']-0x1-_0x533eab];_0x533eab++)_0x35b573--;_0x1befd0=_0x35b573;}else _0x1befd0=findClusterBreak(_0x5a783e['text'],_0x35b573-_0x5a783e['from'],_0xd6b691,_0xd6b691)+_0x5a783e['from'],_0x1befd0==_0x35b573&&_0x5a783e['number']!=(_0xd6b691?_0x3a5339['doc']['lines']:0x1)?_0x1befd0+=_0xd6b691?0x1:-0x1:!_0xd6b691&&/[\ufe00-\ufe0f]/['test'](_0x5a783e['text']['slice'](_0x1befd0-_0x5a783e['from'],_0x35b573-_0x5a783e['from']))&&(_0x1befd0=findClusterBreak(_0x5a783e['text'],_0x1befd0-_0x5a783e['from'],!0x1,!0x1)+_0x5a783e['from']);return _0x1befd0;}),deleteCharBackward=_0x93bf66=>deleteByChar(_0x93bf66,!0x1,!0x0),deleteCharForward=_0x3c8f4c=>deleteByChar(_0x3c8f4c,!0x0,!0x1),deleteByGroup=(_0x13eb0e,_0x387455)=>deleteBy(_0x13eb0e,_0x597b58=>{let _0x5022d6=_0x597b58['head'],{state:_0xb6e455}=_0x13eb0e,_0x372863=_0xb6e455['doc']['lineAt'](_0x5022d6),_0x1f8877=_0xb6e455['charCategorizer'](_0x5022d6);for(let _0x1052f8=null;;){if(_0x5022d6==(_0x387455?_0x372863['to']:_0x372863['from'])){_0x5022d6==_0x597b58['head']&&_0x372863['number']!=(_0x387455?_0xb6e455['doc']['lines']:0x1)&&(_0x5022d6+=_0x387455?0x1:-0x1);break;}let _0x28bb2e=findClusterBreak(_0x372863['text'],_0x5022d6-_0x372863['from'],_0x387455)+_0x372863['from'],_0x5d7d7c=_0x372863['text']['slice'](Math['min'](_0x5022d6,_0x28bb2e)-_0x372863['from'],Math['max'](_0x5022d6,_0x28bb2e)-_0x372863['from']),_0x51b00f=_0x1f8877(_0x5d7d7c);if(null!=_0x1052f8&&_0x51b00f!=_0x1052f8)break;'\x20'==_0x5d7d7c&&_0x5022d6==_0x597b58['head']||(_0x1052f8=_0x51b00f),_0x5022d6=_0x28bb2e;}return _0x5022d6;}),deleteGroupBackward=_0xcd4d93=>deleteByGroup(_0xcd4d93,!0x1),deleteGroupForward=_0x30d810=>deleteByGroup(_0x30d810,!0x0),deleteToLineEnd=_0x5d4e3d=>deleteBy(_0x5d4e3d,_0x144c17=>{let _0x5c236f=_0x5d4e3d['lineBlockAt'](_0x144c17['head'])['to'];return _0x144c17['head']<_0x5c236f?_0x5c236f:Math['min'](_0x5d4e3d['state']['doc']['length'],_0x144c17['head']+0x1);}),deleteLineBoundaryBackward=_0x350e9a=>deleteBy(_0x350e9a,_0x1fd7d2=>{let _0x37f3c0=_0x350e9a['moveToLineBoundary'](_0x1fd7d2,!0x1)['head'];return _0x1fd7d2['head']>_0x37f3c0?_0x37f3c0:Math['max'](0x0,_0x1fd7d2['head']-0x1);}),deleteLineBoundaryForward=_0x3ed7c2=>deleteBy(_0x3ed7c2,_0x207abe=>{let _0x3a0b75=_0x3ed7c2['moveToLineBoundary'](_0x207abe,!0x0)['head'];return _0x207abe['head']<_0x3a0b75?_0x3a0b75:Math['min'](_0x3ed7c2['state']['doc']['length'],_0x207abe['head']+0x1);}),splitLine=({state:_0x1fafd6,dispatch:_0x4fbb77})=>{if(_0x1fafd6['readOnly'])return!0x1;let _0x29afe3=_0x1fafd6['changeByRange'](_0x514153=>({'changes':{'from':_0x514153['from'],'to':_0x514153['to'],'insert':Text['of'](['',''])},'range':EditorSelection['cursor'](_0x514153['from'])}));return _0x4fbb77(_0x1fafd6['update'](_0x29afe3,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;},transposeChars=({state:_0x363b3,dispatch:_0x358b63})=>{if(_0x363b3['readOnly'])return!0x1;let _0x282d71=_0x363b3['changeByRange'](_0x3b3978=>{if(!_0x3b3978['empty']||0x0==_0x3b3978['from']||_0x3b3978['from']==_0x363b3['doc']['length'])return{'range':_0x3b3978};let _0x3ded75=_0x3b3978['from'],_0x32c2bd=_0x363b3['doc']['lineAt'](_0x3ded75),_0x210e06=_0x3ded75==_0x32c2bd['from']?_0x3ded75-0x1:findClusterBreak(_0x32c2bd['text'],_0x3ded75-_0x32c2bd['from'],!0x1)+_0x32c2bd['from'],_0x42bd89=_0x3ded75==_0x32c2bd['to']?_0x3ded75+0x1:findClusterBreak(_0x32c2bd['text'],_0x3ded75-_0x32c2bd['from'],!0x0)+_0x32c2bd['from'];return{'changes':{'from':_0x210e06,'to':_0x42bd89,'insert':_0x363b3['doc']['slice'](_0x3ded75,_0x42bd89)['append'](_0x363b3['doc']['slice'](_0x210e06,_0x3ded75))},'range':EditorSelection['cursor'](_0x42bd89)};});return!_0x282d71['changes']['empty']&&(_0x358b63(_0x363b3['update'](_0x282d71,{'scrollIntoView':!0x0,'userEvent':'move.character'})),!0x0);};function selectedLineBlocks(_0xe10aed){let _0x1f87a3=[],_0x4dc50d=-0x1;for(let _0x5c5738 of _0xe10aed['selection']['ranges']){let _0x151e2a=_0xe10aed['doc']['lineAt'](_0x5c5738['from']),_0x26f7cd=_0xe10aed['doc']['lineAt'](_0x5c5738['to']);if(_0x5c5738['empty']||_0x5c5738['to']!=_0x26f7cd['from']||(_0x26f7cd=_0xe10aed['doc']['lineAt'](_0x5c5738['to']-0x1)),_0x4dc50d>=_0x151e2a['number']){let _0x421c44=_0x1f87a3[_0x1f87a3['length']-0x1];_0x421c44['to']=_0x26f7cd['to'],_0x421c44['ranges']['push'](_0x5c5738);}else _0x1f87a3['push']({'from':_0x151e2a['from'],'to':_0x26f7cd['to'],'ranges':[_0x5c5738]});_0x4dc50d=_0x26f7cd['number']+0x1;}return _0x1f87a3;}function moveLine(_0xb30c29,_0x2e9d5f,_0x4f1a95){if(_0xb30c29['readOnly'])return!0x1;let _0x408433=[],_0x2e986c=[];for(let _0x566b48 of selectedLineBlocks(_0xb30c29)){if(_0x4f1a95?_0x566b48['to']==_0xb30c29['doc']['length']:0x0==_0x566b48['from'])continue;let _0x2636e8=_0xb30c29['doc']['lineAt'](_0x4f1a95?_0x566b48['to']+0x1:_0x566b48['from']-0x1),_0x6ef1ac=_0x2636e8['length']+0x1;if(_0x4f1a95){_0x408433['push']({'from':_0x566b48['to'],'to':_0x2636e8['to']},{'from':_0x566b48['from'],'insert':_0x2636e8['text']+_0xb30c29['lineBreak']});for(let _0x5ee1ab of _0x566b48['ranges'])_0x2e986c['push'](EditorSelection['range'](Math['min'](_0xb30c29['doc']['length'],_0x5ee1ab['anchor']+_0x6ef1ac),Math['min'](_0xb30c29['doc']['length'],_0x5ee1ab['head']+_0x6ef1ac)));}else{_0x408433['push']({'from':_0x2636e8['from'],'to':_0x566b48['from']},{'from':_0x566b48['to'],'insert':_0xb30c29['lineBreak']+_0x2636e8['text']});for(let _0x19cafb of _0x566b48['ranges'])_0x2e986c['push'](EditorSelection['range'](_0x19cafb['anchor']-_0x6ef1ac,_0x19cafb['head']-_0x6ef1ac));}}return!!_0x408433['length']&&(_0x2e9d5f(_0xb30c29['update']({'changes':_0x408433,'scrollIntoView':!0x0,'selection':EditorSelection['create'](_0x2e986c,_0xb30c29['selection']['mainIndex']),'userEvent':'move.line'})),!0x0);}const moveLineUp=({state:_0xa28d8b,dispatch:_0x1e89da})=>moveLine(_0xa28d8b,_0x1e89da,!0x1),moveLineDown=({state:_0x571b74,dispatch:_0x576ecf})=>moveLine(_0x571b74,_0x576ecf,!0x0);function copyLine(_0x18e987,_0x4ec8fe,_0x5bb4bf){if(_0x18e987['readOnly'])return!0x1;let _0x1cb5b0=[];for(let _0xcaf366 of selectedLineBlocks(_0x18e987))_0x5bb4bf?_0x1cb5b0['push']({'from':_0xcaf366['from'],'insert':_0x18e987['doc']['slice'](_0xcaf366['from'],_0xcaf366['to'])+_0x18e987['lineBreak']}):_0x1cb5b0['push']({'from':_0xcaf366['to'],'insert':_0x18e987['lineBreak']+_0x18e987['doc']['slice'](_0xcaf366['from'],_0xcaf366['to'])});return _0x4ec8fe(_0x18e987['update']({'changes':_0x1cb5b0,'scrollIntoView':!0x0,'userEvent':'input.copyline'})),!0x0;}const copyLineUp=({state:_0xc97ce8,dispatch:_0x1b4091})=>copyLine(_0xc97ce8,_0x1b4091,!0x1),copyLineDown=({state:_0x41fcd3,dispatch:_0x35830d})=>copyLine(_0x41fcd3,_0x35830d,!0x0),deleteLine=_0x1874af=>{if(_0x1874af['state']['readOnly'])return!0x1;let {state:_0x2ef384}=_0x1874af,_0x309e2c=_0x2ef384['changes'](selectedLineBlocks(_0x2ef384)['map'](({from:_0x542851,to:_0x315271})=>(_0x542851>0x0?_0x542851--:_0x315271<_0x2ef384['doc']['length']&&_0x315271++,{'from':_0x542851,'to':_0x315271}))),_0x1314e6=updateSel(_0x2ef384['selection'],_0x366520=>{let _0x30ceb1;if(_0x1874af['lineWrapping']){let _0x574ab8=_0x1874af['lineBlockAt'](_0x366520['head']),_0x4d9123=_0x1874af['coordsAtPos'](_0x366520['head'],_0x366520['assoc']||0x1);_0x4d9123&&(_0x30ceb1=_0x574ab8['bottom']+_0x1874af['documentTop']-_0x4d9123['bottom']+_0x1874af['defaultLineHeight']/0x2);}return _0x1874af['moveVertically'](_0x366520,!0x0,_0x30ceb1);})['map'](_0x309e2c);return _0x1874af['dispatch']({'changes':_0x309e2c,'selection':_0x1314e6,'scrollIntoView':!0x0,'userEvent':'delete.line'}),!0x0;};function isBetweenBrackets(_0xe2d954,_0x36ce3b){if(/\(\)|\[\]|\{\}/['test'](_0xe2d954['sliceDoc'](_0x36ce3b-0x1,_0x36ce3b+0x1)))return{'from':_0x36ce3b,'to':_0x36ce3b};let _0x3e4027,_0x3795c7=syntaxTree(_0xe2d954)['resolveInner'](_0x36ce3b),_0x512a19=_0x3795c7['childBefore'](_0x36ce3b),_0x2359d5=_0x3795c7['childAfter'](_0x36ce3b);return _0x512a19&&_0x2359d5&&_0x512a19['to']<=_0x36ce3b&&_0x2359d5['from']>=_0x36ce3b&&(_0x3e4027=_0x512a19['type']['prop'](NodeProp['closedBy']))&&_0x3e4027['indexOf'](_0x2359d5['name'])>-0x1&&_0xe2d954['doc']['lineAt'](_0x512a19['to'])['from']==_0xe2d954['doc']['lineAt'](_0x2359d5['from'])['from']&&!/\S/['test'](_0xe2d954['sliceDoc'](_0x512a19['to'],_0x2359d5['from']))?{'from':_0x512a19['to'],'to':_0x2359d5['from']}:null;}const insertNewlineAndIndent=newlineAndIndent(!0x1),insertBlankLine=newlineAndIndent(!0x0);function newlineAndIndent(_0xbf03c8){return({state:_0xdb2d67,dispatch:_0xf4aaf})=>{if(_0xdb2d67['readOnly'])return!0x1;let _0x1f7859=_0xdb2d67['changeByRange'](_0x1c1249=>{let {from:_0x46292c,to:_0x306cee}=_0x1c1249,_0x2a149a=_0xdb2d67['doc']['lineAt'](_0x46292c),_0x3f31a8=!_0xbf03c8&&_0x46292c==_0x306cee&&isBetweenBrackets(_0xdb2d67,_0x46292c);_0xbf03c8&&(_0x46292c=_0x306cee=(_0x306cee<=_0x2a149a['to']?_0x2a149a:_0xdb2d67['doc']['lineAt'](_0x306cee))['to']);let _0x3abd5a=new IndentContext(_0xdb2d67,{'simulateBreak':_0x46292c,'simulateDoubleBreak':!!_0x3f31a8}),_0x4e4d42=getIndentation(_0x3abd5a,_0x46292c);for(null==_0x4e4d42&&(_0x4e4d42=countColumn(/^\s*/['exec'](_0xdb2d67['doc']['lineAt'](_0x46292c)['text'])[0x0],_0xdb2d67['tabSize']));_0x306cee<_0x2a149a['to']&&/\s/['test'](_0x2a149a['text'][_0x306cee-_0x2a149a['from']]);)_0x306cee++;_0x3f31a8?{from:_0x46292c,to:_0x306cee}=_0x3f31a8:_0x46292c>_0x2a149a['from']&&_0x46292c<_0x2a149a['from']+0x64&&!/\S/['test'](_0x2a149a['text']['slice'](0x0,_0x46292c))&&(_0x46292c=_0x2a149a['from']);let _0x276627=['',indentString(_0xdb2d67,_0x4e4d42)];return _0x3f31a8&&_0x276627['push'](indentString(_0xdb2d67,_0x3abd5a['lineIndent'](_0x2a149a['from'],-0x1))),{'changes':{'from':_0x46292c,'to':_0x306cee,'insert':Text['of'](_0x276627)},'range':EditorSelection['cursor'](_0x46292c+0x1+_0x276627[0x1]['length'])};});return _0xf4aaf(_0xdb2d67['update'](_0x1f7859,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;};}function changeBySelectedLine(_0x59502c,_0x42121c){let _0x5d04f2=-0x1;return _0x59502c['changeByRange'](_0x290afb=>{let _0x17bd3d=[];for(let _0x4479cf=_0x290afb['from'];_0x4479cf<=_0x290afb['to'];){let _0x5d8a44=_0x59502c['doc']['lineAt'](_0x4479cf);_0x5d8a44['number']>_0x5d04f2&&(_0x290afb['empty']||_0x290afb['to']>_0x5d8a44['from'])&&(_0x42121c(_0x5d8a44,_0x17bd3d,_0x290afb),_0x5d04f2=_0x5d8a44['number']),_0x4479cf=_0x5d8a44['to']+0x1;}let _0x46c613=_0x59502c['changes'](_0x17bd3d);return{'changes':_0x17bd3d,'range':EditorSelection['range'](_0x46c613['mapPos'](_0x290afb['anchor'],0x1),_0x46c613['mapPos'](_0x290afb['head'],0x1))};});}const indentSelection=({state:_0x2e7581,dispatch:_0x38f989})=>{if(_0x2e7581['readOnly'])return!0x1;let _0x25c5fa=Object['create'](null),_0xca54fd=new IndentContext(_0x2e7581,{'overrideIndentation':_0x5dc4fe=>{let _0x21c63d=_0x25c5fa[_0x5dc4fe];return null==_0x21c63d?-0x1:_0x21c63d;}}),_0x3c452c=changeBySelectedLine(_0x2e7581,(_0x1f6fb9,_0x55ef5d,_0x156a52)=>{let _0x123e87=getIndentation(_0xca54fd,_0x1f6fb9['from']);if(null==_0x123e87)return;/\S/['test'](_0x1f6fb9['text'])||(_0x123e87=0x0);let _0x1f6de4=/^\s*/['exec'](_0x1f6fb9['text'])[0x0],_0x53fb32=indentString(_0x2e7581,_0x123e87);(_0x1f6de4!=_0x53fb32||_0x156a52['from']<_0x1f6fb9['from']+_0x1f6de4['length'])&&(_0x25c5fa[_0x1f6fb9['from']]=_0x123e87,_0x55ef5d['push']({'from':_0x1f6fb9['from'],'to':_0x1f6fb9['from']+_0x1f6de4['length'],'insert':_0x53fb32}));});return _0x3c452c['changes']['empty']||_0x38f989(_0x2e7581['update'](_0x3c452c,{'userEvent':'indent'})),!0x0;},indentMore=({state:_0x62972,dispatch:_0x321adc})=>!_0x62972['readOnly']&&(_0x321adc(_0x62972['update'](changeBySelectedLine(_0x62972,(_0x5341d4,_0x2f2366)=>{_0x2f2366['push']({'from':_0x5341d4['from'],'insert':_0x62972['facet'](indentUnit)});}),{'userEvent':'input.indent'})),!0x0),indentLess=({state:_0x30a16d,dispatch:_0x152013})=>!_0x30a16d['readOnly']&&(_0x152013(_0x30a16d['update'](changeBySelectedLine(_0x30a16d,(_0x585701,_0x3a14b8)=>{let _0x17a7c0=/^\s*/['exec'](_0x585701['text'])[0x0];if(!_0x17a7c0)return;let _0x10ec05=countColumn(_0x17a7c0,_0x30a16d['tabSize']),_0x29c8af=0x0,_0x1cab0f=indentString(_0x30a16d,Math['max'](0x0,_0x10ec05-getIndentUnit(_0x30a16d)));for(;_0x29c8af<_0x17a7c0['length']&&_0x29c8af<_0x1cab0f['length']&&_0x17a7c0['charCodeAt'](_0x29c8af)==_0x1cab0f['charCodeAt'](_0x29c8af);)_0x29c8af++;_0x3a14b8['push']({'from':_0x585701['from']+_0x29c8af,'to':_0x585701['from']+_0x17a7c0['length'],'insert':_0x1cab0f['slice'](_0x29c8af)});}),{'userEvent':'delete.dedent'})),!0x0),toggleTabFocusMode=_0x11193f=>(_0x11193f['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'](_0x4a530d=>({'mac':_0x4a530d['key'],'run':_0x4a530d['run'],'shift':_0x4a530d['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(_0x444e04,_0x3fdc70,_0x1c8972,_0x23c2ab){this['state']=_0x444e04,this['pos']=_0x3fdc70,this['explicit']=_0x1c8972,this['view']=_0x23c2ab,this['abortListeners']=[],this['abortOnDocChange']=!0x1;}['tokenBefore'](_0x417bd2){let _0x32a43d=syntaxTree(this['state'])['resolveInner'](this['pos'],-0x1);for(;_0x32a43d&&_0x417bd2['indexOf'](_0x32a43d['name'])<0x0;)_0x32a43d=_0x32a43d['parent'];return _0x32a43d?{'from':_0x32a43d['from'],'to':this['pos'],'text':this['state']['sliceDoc'](_0x32a43d['from'],this['pos']),'type':_0x32a43d['type']}:null;}['matchBefore'](_0x417adb){let _0x11eb35=this['state']['doc']['lineAt'](this['pos']),_0x12f26c=Math['max'](_0x11eb35['from'],this['pos']-0xfa),_0x5818a7=_0x11eb35['text']['slice'](_0x12f26c-_0x11eb35['from'],this['pos']-_0x11eb35['from']),_0x54fc78=_0x5818a7['search'](ensureAnchor(_0x417adb,!0x1));return _0x54fc78<0x0?null:{'from':_0x12f26c+_0x54fc78,'to':this['pos'],'text':_0x5818a7['slice'](_0x54fc78)};}get['aborted'](){return null==this['abortListeners'];}['addEventListener'](_0xd83b91,_0x6ab9ac,_0xae1dc2){'abort'==_0xd83b91&&this['abortListeners']&&(this['abortListeners']['push'](_0x6ab9ac),_0xae1dc2&&_0xae1dc2['onDocChange']&&(this['abortOnDocChange']=!0x0));}}function toSet(_0x197977){let _0x434ca5=Object['keys'](_0x197977)['join'](''),_0x498dfc=/\w/['test'](_0x434ca5);return _0x498dfc&&(_0x434ca5=_0x434ca5['replace'](/\w/g,'')),'['+(_0x498dfc?'\x5cw':'')+_0x434ca5['replace'](/[^\w\s]/g,'\x5c$&')+']';}function prefixMatch(_0x25d1a7){let _0x5521a1=Object['create'](null),_0x5b61d1=Object['create'](null);for(let {label:_0x406355}of _0x25d1a7){_0x5521a1[_0x406355[0x0]]=!0x0;for(let _0x48f16b=0x1;_0x48f16b<_0x406355['length'];_0x48f16b++)_0x5b61d1[_0x406355[_0x48f16b]]=!0x0;}let _0x52b760=toSet(_0x5521a1)+toSet(_0x5b61d1)+'*$';return[new RegExp('^'+_0x52b760),new RegExp(_0x52b760)];}function completeFromList(_0x190348){let _0x27b7e1=_0x190348['map'](_0x49361d=>'string'==typeof _0x49361d?{'label':_0x49361d}:_0x49361d),[_0x18a550,_0x251786]=_0x27b7e1['every'](_0x156935=>/^\w+$/['test'](_0x156935['label']))?[/\w*$/,/\w+$/]:prefixMatch(_0x27b7e1);return _0x538cc6=>{let _0xb6dc22=_0x538cc6['matchBefore'](_0x251786);return _0xb6dc22||_0x538cc6['explicit']?{'from':_0xb6dc22?_0xb6dc22['from']:_0x538cc6['pos'],'options':_0x27b7e1,'validFor':_0x18a550}:null;};}function ifNotIn(_0x1edb1f,_0x86df22){return _0x796dbb=>{for(let _0x15fff1=syntaxTree(_0x796dbb['state'])['resolveInner'](_0x796dbb['pos'],-0x1);_0x15fff1;_0x15fff1=_0x15fff1['parent']){if(_0x1edb1f['indexOf'](_0x15fff1['name'])>-0x1)return null;if(_0x15fff1['type']['isTop'])break;}return _0x86df22(_0x796dbb);};}class Option{constructor(_0x2f88a5,_0xcd40fd,_0xfb27ac,_0x25e1f0){this['completion']=_0x2f88a5,this['source']=_0xcd40fd,this['match']=_0xfb27ac,this['score']=_0x25e1f0;}}function cur(_0x3c4ff2){return _0x3c4ff2['selection']['main']['from'];}function ensureAnchor(_0x4f7473,_0x3f5698){var _0xcbfd66;let {source:_0x3b0c2c}=_0x4f7473,_0x4da878=_0x3f5698&&'^'!=_0x3b0c2c[0x0],_0x11eac2='$'!=_0x3b0c2c[_0x3b0c2c['length']-0x1];return _0x4da878||_0x11eac2?new RegExp((_0x4da878?'^':'')+'(?:'+_0x3b0c2c+')'+(_0x11eac2?'$':''),null!==(_0xcbfd66=_0x4f7473['flags'])&&void 0x0!==_0xcbfd66?_0xcbfd66:_0x4f7473['ignoreCase']?'i':''):_0x4f7473;}const pickedCompletion=Annotation['define']();function insertCompletionText(_0x5992d0,_0x49dd37,_0x21e396,_0x515641){let {main:_0x2b1611}=_0x5992d0['selection'],_0x43ee43=_0x21e396-_0x2b1611['from'],_0x250050=_0x515641-_0x2b1611['from'];return{..._0x5992d0['changeByRange'](_0x42eb27=>{if(_0x42eb27!=_0x2b1611&&_0x21e396!=_0x515641&&_0x5992d0['sliceDoc'](_0x42eb27['from']+_0x43ee43,_0x42eb27['from']+_0x250050)!=_0x5992d0['sliceDoc'](_0x21e396,_0x515641))return{'range':_0x42eb27};let _0x169456=_0x5992d0['toText'](_0x49dd37);return{'changes':{'from':_0x42eb27['from']+_0x43ee43,'to':_0x515641==_0x2b1611['from']?_0x42eb27['to']:_0x42eb27['from']+_0x250050,'insert':_0x169456},'range':EditorSelection['cursor'](_0x42eb27['from']+_0x43ee43+_0x169456['length'])};}),'scrollIntoView':!0x0,'userEvent':'input.complete'};}const SourceCache=new WeakMap();function asSource(_0x1d147c){if(!Array['isArray'](_0x1d147c))return _0x1d147c;let _0x55b90c=SourceCache['get'](_0x1d147c);return _0x55b90c||SourceCache['set'](_0x1d147c,_0x55b90c=completeFromList(_0x1d147c)),_0x55b90c;}const startCompletionEffect=StateEffect['define'](),closeCompletionEffect=StateEffect['define']();class FuzzyMatcher{constructor(_0x412fd2){this['pattern']=_0x412fd2,this['chars']=[],this['folded']=[],this['any']=[],this['precise']=[],this['byWord']=[],this['score']=0x0,this['matched']=[];for(let _0x599798=0x0;_0x599798<_0x412fd2['length'];){let _0x3d7d37=codePointAt(_0x412fd2,_0x599798),_0x23681=codePointSize(_0x3d7d37);this['chars']['push'](_0x3d7d37);let _0xd32f86=_0x412fd2['slice'](_0x599798,_0x599798+_0x23681),_0x326cbc=_0xd32f86['toUpperCase']();this['folded']['push'](codePointAt(_0x326cbc==_0xd32f86?_0xd32f86['toLowerCase']():_0x326cbc,0x0)),_0x599798+=_0x23681;}this['astral']=_0x412fd2['length']!=this['chars']['length'];}['ret'](_0x5cd1d7,_0x4a1b6d){return this['score']=_0x5cd1d7,this['matched']=_0x4a1b6d,this;}['match'](_0x4bf73a){if(0x0==this['pattern']['length'])return this['ret'](-0x64,[]);if(_0x4bf73a['length']<this['pattern']['length'])return null;let {chars:_0x382de8,folded:_0x3cef2d,any:_0x5d0b37,precise:_0x5637cc,byWord:_0x539576}=this;if(0x1==_0x382de8['length']){let _0x22c4fa=codePointAt(_0x4bf73a,0x0),_0x14855e=codePointSize(_0x22c4fa),_0x5db3e4=_0x14855e==_0x4bf73a['length']?0x0:-0x64;if(_0x22c4fa==_0x382de8[0x0]);else{if(_0x22c4fa!=_0x3cef2d[0x0])return null;_0x5db3e4+=-0xc8;}return this['ret'](_0x5db3e4,[0x0,_0x14855e]);}let _0x20cd46=_0x4bf73a['indexOf'](this['pattern']);if(0x0==_0x20cd46)return this['ret'](_0x4bf73a['length']==this['pattern']['length']?0x0:-0x64,[0x0,this['pattern']['length']]);let _0x9a861b=_0x382de8['length'],_0x2b1923=0x0;if(_0x20cd46<0x0){for(let _0x295669=0x0,_0xe87a83=Math['min'](_0x4bf73a['length'],0xc8);_0x295669<_0xe87a83&&_0x2b1923<_0x9a861b;){let _0x400e9b=codePointAt(_0x4bf73a,_0x295669);_0x400e9b!=_0x382de8[_0x2b1923]&&_0x400e9b!=_0x3cef2d[_0x2b1923]||(_0x5d0b37[_0x2b1923++]=_0x295669),_0x295669+=codePointSize(_0x400e9b);}if(_0x2b1923<_0x9a861b)return null;}let _0x289dc2=0x0,_0x1eb3cd=0x0,_0xa4f083=!0x1,_0x80c1e0=0x0,_0x24640b=-0x1,_0x40b9f6=-0x1,_0x1720c5=/[a-z]/['test'](_0x4bf73a),_0x3ca97e=!0x0;for(let _0x2515d0=0x0,_0x320787=Math['min'](_0x4bf73a['length'],0xc8),_0x12a2ca=0x0;_0x2515d0<_0x320787&&_0x1eb3cd<_0x9a861b;){let _0x5a10d2=codePointAt(_0x4bf73a,_0x2515d0);_0x20cd46<0x0&&(_0x289dc2<_0x9a861b&&_0x5a10d2==_0x382de8[_0x289dc2]&&(_0x5637cc[_0x289dc2++]=_0x2515d0),_0x80c1e0<_0x9a861b&&(_0x5a10d2==_0x382de8[_0x80c1e0]||_0x5a10d2==_0x3cef2d[_0x80c1e0]?(0x0==_0x80c1e0&&(_0x24640b=_0x2515d0),_0x40b9f6=_0x2515d0+0x1,_0x80c1e0++):_0x80c1e0=0x0));let _0x37455a,_0x153ed6=_0x5a10d2<0xff?_0x5a10d2>=0x30&&_0x5a10d2<=0x39||_0x5a10d2>=0x61&&_0x5a10d2<=0x7a?0x2:_0x5a10d2>=0x41&&_0x5a10d2<=0x5a?0x1:0x0:(_0x37455a=fromCodePoint(_0x5a10d2))!=_0x37455a['toLowerCase']()?0x1:_0x37455a!=_0x37455a['toUpperCase']()?0x2:0x0;(!_0x2515d0||0x1==_0x153ed6&&_0x1720c5||0x0==_0x12a2ca&&0x0!=_0x153ed6)&&(_0x382de8[_0x1eb3cd]==_0x5a10d2||_0x3cef2d[_0x1eb3cd]==_0x5a10d2&&(_0xa4f083=!0x0)?_0x539576[_0x1eb3cd++]=_0x2515d0:_0x539576['length']&&(_0x3ca97e=!0x1)),_0x12a2ca=_0x153ed6,_0x2515d0+=codePointSize(_0x5a10d2);}return _0x1eb3cd==_0x9a861b&&0x0==_0x539576[0x0]&&_0x3ca97e?this['result']((_0xa4f083?-0xc8:0x0)-0x64,_0x539576,_0x4bf73a):_0x80c1e0==_0x9a861b&&0x0==_0x24640b?this['ret'](-0xc8-_0x4bf73a['length']+(_0x40b9f6==_0x4bf73a['length']?0x0:-0x64),[0x0,_0x40b9f6]):_0x20cd46>-0x1?this['ret'](-0x2bc-_0x4bf73a['length'],[_0x20cd46,_0x20cd46+this['pattern']['length']]):_0x80c1e0==_0x9a861b?this['ret'](-0x384-_0x4bf73a['length'],[_0x24640b,_0x40b9f6]):_0x1eb3cd==_0x9a861b?this['result']((_0xa4f083?-0xc8:0x0)-0x64-0x2bc+(_0x3ca97e?0x0:-0x44c),_0x539576,_0x4bf73a):0x2==_0x382de8['length']?null:this['result']((_0x5d0b37[0x0]?-0x2bc:0x0)-0xc8-0x44c,_0x5d0b37,_0x4bf73a);}['result'](_0x311d25,_0x181660,_0x2cff9d){let _0x161875=[],_0x32e8ce=0x0;for(let _0x342de2 of _0x181660){let _0x310a7c=_0x342de2+(this['astral']?codePointSize(codePointAt(_0x2cff9d,_0x342de2)):0x1);_0x32e8ce&&_0x161875[_0x32e8ce-0x1]==_0x342de2?_0x161875[_0x32e8ce-0x1]=_0x310a7c:(_0x161875[_0x32e8ce++]=_0x342de2,_0x161875[_0x32e8ce++]=_0x310a7c);}return this['ret'](_0x311d25-_0x2cff9d['length'],_0x161875);}}class StrictMatcher{constructor(_0x38f761){this['pattern']=_0x38f761,this['matched']=[],this['score']=0x0,this['folded']=_0x38f761['toLowerCase']();}['match'](_0x5f34ac){if(_0x5f34ac['length']<this['pattern']['length'])return null;let _0x1aaa40=_0x5f34ac['slice'](0x0,this['pattern']['length']),_0x4d7276=_0x1aaa40==this['pattern']?0x0:_0x1aaa40['toLowerCase']()==this['folded']?-0xc8:null;return null==_0x4d7276?null:(this['matched']=[0x0,_0x1aaa40['length']],this['score']=_0x4d7276+(_0x5f34ac['length']==this['pattern']['length']?0x0:-0x64),this);}}const completionConfig=Facet['define']({'combine':_0x11f76e=>combineConfig(_0x11f76e,{'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':(_0x3d9720,_0x684326)=>_0x3d9720['label']['localeCompare'](_0x684326['label']),'interactionDelay':0x4b,'updateSyncTime':0x64},{'defaultKeymap':(_0x4286d8,_0x59d6c7)=>_0x4286d8&&_0x59d6c7,'closeOnBlur':(_0x333856,_0x452850)=>_0x333856&&_0x452850,'icons':(_0x149a24,_0x2b45b8)=>_0x149a24&&_0x2b45b8,'tooltipClass':(_0x21770c,_0xca5564)=>_0x2b6032=>joinClass(_0x21770c(_0x2b6032),_0xca5564(_0x2b6032)),'optionClass':(_0x343611,_0x458d2f)=>_0x21cc48=>joinClass(_0x343611(_0x21cc48),_0x458d2f(_0x21cc48)),'addToOptions':(_0x242bc8,_0x20973c)=>_0x242bc8['concat'](_0x20973c),'filterStrict':(_0x10c697,_0x25dfa8)=>_0x10c697||_0x25dfa8})});function joinClass(_0x3b46b9,_0x59233b){return _0x3b46b9?_0x59233b?_0x3b46b9+'\x20'+_0x59233b:_0x3b46b9:_0x59233b;}function defaultPositionInfo(_0x379e3b,_0x55c22e,_0x361349,_0x154c41,_0x168bdb,_0x4f016e){let _0x2721d2,_0x47868a,_0x339a5f=_0x379e3b['textDirection']==Direction['RTL'],_0x3a404a=_0x339a5f,_0x4ee028=!0x1,_0x431da7='top',_0x39feb5=_0x55c22e['left']-_0x168bdb['left'],_0x5df1a3=_0x168bdb['right']-_0x55c22e['right'],_0x3ddf42=_0x154c41['right']-_0x154c41['left'],_0x29226f=_0x154c41['bottom']-_0x154c41['top'];if(_0x3a404a&&_0x39feb5<Math['min'](_0x3ddf42,_0x5df1a3)?_0x3a404a=!0x1:!_0x3a404a&&_0x5df1a3<Math['min'](_0x3ddf42,_0x39feb5)&&(_0x3a404a=!0x0),_0x3ddf42<=(_0x3a404a?_0x39feb5:_0x5df1a3))_0x2721d2=Math['max'](_0x168bdb['top'],Math['min'](_0x361349['top'],_0x168bdb['bottom']-_0x29226f))-_0x55c22e['top'],_0x47868a=Math['min'](0x190,_0x3a404a?_0x39feb5:_0x5df1a3);else{_0x4ee028=!0x0,_0x47868a=Math['min'](0x190,(_0x339a5f?_0x55c22e['right']:_0x168bdb['right']-_0x55c22e['left'])-0x1e);let _0x2ac17c=_0x168bdb['bottom']-_0x55c22e['bottom'];_0x2ac17c>=_0x29226f||_0x2ac17c>_0x55c22e['top']?_0x2721d2=_0x361349['bottom']-_0x55c22e['top']:(_0x431da7='bottom',_0x2721d2=_0x55c22e['bottom']-_0x361349['top']);}return{'style':_0x431da7+':\x20'+_0x2721d2/((_0x55c22e['bottom']-_0x55c22e['top'])/_0x4f016e['offsetHeight'])+'px;\x20max-width:\x20'+_0x47868a/((_0x55c22e['right']-_0x55c22e['left'])/_0x4f016e['offsetWidth'])+'px','class':'cm-completionInfo-'+(_0x4ee028?_0x339a5f?'left-narrow':'right-narrow':_0x3a404a?'left':'right')};}function optionContent(_0x5c1a78){let _0xd72126=_0x5c1a78['addToOptions']['slice']();return _0x5c1a78['icons']&&_0xd72126['push']({'render'(_0x1c1686){let _0x422dc5=document['createElement']('div');return _0x422dc5['classList']['add']('cm-completionIcon'),_0x1c1686['type']&&_0x422dc5['classList']['add'](..._0x1c1686['type']['split'](/\s+/g)['map'](_0xb38236=>'cm-completionIcon-'+_0xb38236)),_0x422dc5['setAttribute']('aria-hidden','true'),_0x422dc5;},'position':0x14}),_0xd72126['push']({'render'(_0x29560c,_0x336cd1,_0x13347c,_0x4eb93e){let _0x157717=document['createElement']('span');_0x157717['className']='cm-completionLabel';let _0x5b9cbe=_0x29560c['displayLabel']||_0x29560c['label'],_0x2a4576=0x0;for(let _0x5e6d0a=0x0;_0x5e6d0a<_0x4eb93e['length'];){let _0x58aad2=_0x4eb93e[_0x5e6d0a++],_0xf38428=_0x4eb93e[_0x5e6d0a++];_0x58aad2>_0x2a4576&&_0x157717['appendChild'](document['createTextNode'](_0x5b9cbe['slice'](_0x2a4576,_0x58aad2)));let _0xea1dbc=_0x157717['appendChild'](document['createElement']('span'));_0xea1dbc['appendChild'](document['createTextNode'](_0x5b9cbe['slice'](_0x58aad2,_0xf38428))),_0xea1dbc['className']='cm-completionMatchedText',_0x2a4576=_0xf38428;}return _0x2a4576<_0x5b9cbe['length']&&_0x157717['appendChild'](document['createTextNode'](_0x5b9cbe['slice'](_0x2a4576))),_0x157717;},'position':0x32},{'render'(_0x35183f){if(!_0x35183f['detail'])return null;let _0x1c8666=document['createElement']('span');return _0x1c8666['className']='cm-completionDetail',_0x1c8666['textContent']=_0x35183f['detail'],_0x1c8666;},'position':0x50}),_0xd72126['sort']((_0x5241eb,_0x4999e2)=>_0x5241eb['position']-_0x4999e2['position'])['map'](_0x4832a4=>_0x4832a4['render']);}function rangeAroundSelected(_0x115e2f,_0x2f45a6,_0x4ac684){if(_0x115e2f<=_0x4ac684)return{'from':0x0,'to':_0x115e2f};if(_0x2f45a6<0x0&&(_0x2f45a6=0x0),_0x2f45a6<=_0x115e2f>>0x1){let _0x35098a=Math['floor'](_0x2f45a6/_0x4ac684);return{'from':_0x35098a*_0x4ac684,'to':(_0x35098a+0x1)*_0x4ac684};}let _0x28b781=Math['floor']((_0x115e2f-_0x2f45a6)/_0x4ac684);return{'from':_0x115e2f-(_0x28b781+0x1)*_0x4ac684,'to':_0x115e2f-_0x28b781*_0x4ac684};}class CompletionTooltip{constructor(_0x255f7a,_0x2b0afb,_0x1a1163){this['view']=_0x255f7a,this['stateField']=_0x2b0afb,this['applyCompletion']=_0x1a1163,this['info']=null,this['infoDestroy']=null,this['placeInfoReq']={'read':()=>this['measureInfo'](),'write':_0x4262b9=>this['placeInfo'](_0x4262b9),'key':this},this['space']=null,this['currentClass']='';let _0x37b9e5=_0x255f7a['state']['field'](_0x2b0afb),{options:_0x5b100b,selected:_0x4a20c8}=_0x37b9e5['open'],_0x3daba1=_0x255f7a['state']['facet'](completionConfig);this['optionContent']=optionContent(_0x3daba1),this['optionClass']=_0x3daba1['optionClass'],this['tooltipClass']=_0x3daba1['tooltipClass'],this['range']=rangeAroundSelected(_0x5b100b['length'],_0x4a20c8,_0x3daba1['maxRenderedOptions']),this['dom']=document['createElement']('div'),this['dom']['className']='cm-tooltip-autocomplete',this['updateTooltipClass'](_0x255f7a['state']),this['dom']['addEventListener']('mousedown',_0x3aaeba=>{let {options:_0x40047c}=_0x255f7a['state']['field'](_0x2b0afb)['open'];for(let _0x5e3fc5,_0x51e7c8=_0x3aaeba['target'];_0x51e7c8&&_0x51e7c8!=this['dom'];_0x51e7c8=_0x51e7c8['parentNode'])if('LI'==_0x51e7c8['nodeName']&&(_0x5e3fc5=/-(\d+)$/['exec'](_0x51e7c8['id']))&&+_0x5e3fc5[0x1]<_0x40047c['length'])return this['applyCompletion'](_0x255f7a,_0x40047c[+_0x5e3fc5[0x1]]),void _0x3aaeba['preventDefault']();}),this['dom']['addEventListener']('focusout',_0xc9838b=>{let _0x2a21c2=_0x255f7a['state']['field'](this['stateField'],!0x1);_0x2a21c2&&_0x2a21c2['tooltip']&&_0x255f7a['state']['facet'](completionConfig)['closeOnBlur']&&_0xc9838b['relatedTarget']!=_0x255f7a['contentDOM']&&_0x255f7a['dispatch']({'effects':closeCompletionEffect['of'](null)});}),this['showOptions'](_0x5b100b,_0x37b9e5['id']);}['mount'](){this['updateSel']();}['showOptions'](_0x3fa935,_0x236b93){this['list']&&this['list']['remove'](),this['list']=this['dom']['appendChild'](this['createListBox'](_0x3fa935,_0x236b93,this['range'])),this['list']['addEventListener']('scroll',()=>{this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);});}['update'](_0x87d34e){var _0x1b09eb;let _0x3b1981=_0x87d34e['state']['field'](this['stateField']),_0x1d0e0e=_0x87d34e['startState']['field'](this['stateField']);if(this['updateTooltipClass'](_0x87d34e['state']),_0x3b1981!=_0x1d0e0e){let {options:_0x597589,selected:_0x3e51f4,disabled:_0x3670bb}=_0x3b1981['open'];_0x1d0e0e['open']&&_0x1d0e0e['open']['options']==_0x597589||(this['range']=rangeAroundSelected(_0x597589['length'],_0x3e51f4,_0x87d34e['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x597589,_0x3b1981['id'])),this['updateSel'](),_0x3670bb!=(null===(_0x1b09eb=_0x1d0e0e['open'])||void 0x0===_0x1b09eb?void 0x0:_0x1b09eb['disabled'])&&this['dom']['classList']['toggle']('cm-tooltip-autocomplete-disabled',!!_0x3670bb);}}['updateTooltipClass'](_0x488446){let _0x5d347f=this['tooltipClass'](_0x488446);if(_0x5d347f!=this['currentClass']){for(let _0xe97eae of this['currentClass']['split']('\x20'))_0xe97eae&&this['dom']['classList']['remove'](_0xe97eae);for(let _0x46dee1 of _0x5d347f['split']('\x20'))_0x46dee1&&this['dom']['classList']['add'](_0x46dee1);this['currentClass']=_0x5d347f;}}['positioned'](_0x252a96){this['space']=_0x252a96,this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);}['updateSel'](){let _0x42a8d9=this['view']['state']['field'](this['stateField']),_0x5b151e=_0x42a8d9['open'];(_0x5b151e['selected']>-0x1&&_0x5b151e['selected']<this['range']['from']||_0x5b151e['selected']>=this['range']['to'])&&(this['range']=rangeAroundSelected(_0x5b151e['options']['length'],_0x5b151e['selected'],this['view']['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x5b151e['options'],_0x42a8d9['id']));let _0x10081b=this['updateSelectedOption'](_0x5b151e['selected']);if(_0x10081b){this['destroyInfo']();let {completion:_0x15f341}=_0x5b151e['options'][_0x5b151e['selected']],{info:_0x193e1e}=_0x15f341;if(!_0x193e1e)return;let _0x9df456='string'==typeof _0x193e1e?document['createTextNode'](_0x193e1e):_0x193e1e(_0x15f341);if(!_0x9df456)return;'then'in _0x9df456?_0x9df456['then'](_0x533a56=>{_0x533a56&&this['view']['state']['field'](this['stateField'],!0x1)==_0x42a8d9&&this['addInfoPane'](_0x533a56,_0x15f341);})['catch'](_0x3f52d0=>logException(this['view']['state'],_0x3f52d0,'completion\x20info')):(this['addInfoPane'](_0x9df456,_0x15f341),_0x10081b['setAttribute']('aria-describedby',this['info']['id']));}}['addInfoPane'](_0x110034,_0x48597b){this['destroyInfo']();let _0x270dd8=this['info']=document['createElement']('div');if(_0x270dd8['className']='cm-tooltip\x20cm-completionInfo',_0x270dd8['id']='cm-completionInfo-'+Math['floor'](0xffff*Math['random']())['toString'](0x10),null!=_0x110034['nodeType'])_0x270dd8['appendChild'](_0x110034),this['infoDestroy']=null;else{let {dom:_0x5b22a6,destroy:_0x2e1036}=_0x110034;_0x270dd8['appendChild'](_0x5b22a6),this['infoDestroy']=_0x2e1036||null;}this['dom']['appendChild'](_0x270dd8),this['view']['requestMeasure'](this['placeInfoReq']);}['updateSelectedOption'](_0x3396f7){let _0x1569ef=null;for(let _0x25be71=this['list']['firstChild'],_0x1ccb57=this['range']['from'];_0x25be71;_0x25be71=_0x25be71['nextSibling'],_0x1ccb57++)'LI'==_0x25be71['nodeName']&&_0x25be71['id']?_0x1ccb57==_0x3396f7?_0x25be71['hasAttribute']('aria-selected')||(_0x25be71['setAttribute']('aria-selected','true'),_0x1569ef=_0x25be71):_0x25be71['hasAttribute']('aria-selected')&&(_0x25be71['removeAttribute']('aria-selected'),_0x25be71['removeAttribute']('aria-describedby')):_0x1ccb57--;return _0x1569ef&&scrollIntoView(this['list'],_0x1569ef),_0x1569ef;}['measureInfo'](){let _0x3ff519=this['dom']['querySelector']('[aria-selected]');if(!_0x3ff519||!this['info'])return null;let _0x15273f=this['dom']['getBoundingClientRect'](),_0x3a2450=this['info']['getBoundingClientRect'](),_0x22e24f=_0x3ff519['getBoundingClientRect'](),_0x57e64e=this['space'];if(!_0x57e64e){let _0x3e1596=this['dom']['ownerDocument']['documentElement'];_0x57e64e={'left':0x0,'top':0x0,'right':_0x3e1596['clientWidth'],'bottom':_0x3e1596['clientHeight']};}return _0x22e24f['top']>Math['min'](_0x57e64e['bottom'],_0x15273f['bottom'])-0xa||_0x22e24f['bottom']<Math['max'](_0x57e64e['top'],_0x15273f['top'])+0xa?null:this['view']['state']['facet'](completionConfig)['positionInfo'](this['view'],_0x15273f,_0x22e24f,_0x3a2450,_0x57e64e,this['dom']);}['placeInfo'](_0xf8f112){this['info']&&(_0xf8f112?(_0xf8f112['style']&&(this['info']['style']['cssText']=_0xf8f112['style']),this['info']['className']='cm-tooltip\x20cm-completionInfo\x20'+(_0xf8f112['class']||'')):this['info']['style']['cssText']='top:\x20-1e6px');}['createListBox'](_0x4910b0,_0x3806ed,_0x1cbd24){const _0x19bb76=document['createElement']('ul');_0x19bb76['id']=_0x3806ed,_0x19bb76['setAttribute']('role','listbox'),_0x19bb76['setAttribute']('aria-expanded','true'),_0x19bb76['setAttribute']('aria-label',this['view']['state']['phrase']('Completions')),_0x19bb76['addEventListener']('mousedown',_0x353fb9=>{_0x353fb9['target']==_0x19bb76&&_0x353fb9['preventDefault']();});let _0x3449fc=null;for(let _0x21bc7a=_0x1cbd24['from'];_0x21bc7a<_0x1cbd24['to'];_0x21bc7a++){let {completion:_0x5ba12c,match:_0x1630f9}=_0x4910b0[_0x21bc7a],{section:_0x202198}=_0x5ba12c;if(_0x202198){let _0x5592fc='string'==typeof _0x202198?_0x202198:_0x202198['name'];if(_0x5592fc!=_0x3449fc&&(_0x21bc7a>_0x1cbd24['from']||0x0==_0x1cbd24['from'])){if(_0x3449fc=_0x5592fc,'string'!=typeof _0x202198&&_0x202198['header'])_0x19bb76['appendChild'](_0x202198['header'](_0x202198));else _0x19bb76['appendChild'](document['createElement']('completion-section'))['textContent']=_0x5592fc;}}const _0x1e9f81=_0x19bb76['appendChild'](document['createElement']('li'));_0x1e9f81['id']=_0x3806ed+'-'+_0x21bc7a,_0x1e9f81['setAttribute']('role','option');let _0x2a67bb=this['optionClass'](_0x5ba12c);_0x2a67bb&&(_0x1e9f81['className']=_0x2a67bb);for(let _0x569e21 of this['optionContent']){let _0x21ec6d=_0x569e21(_0x5ba12c,this['view']['state'],this['view'],_0x1630f9);_0x21ec6d&&_0x1e9f81['appendChild'](_0x21ec6d);}}return _0x1cbd24['from']&&_0x19bb76['classList']['add']('cm-completionListIncompleteTop'),_0x1cbd24['to']<_0x4910b0['length']&&_0x19bb76['classList']['add']('cm-completionListIncompleteBottom'),_0x19bb76;}['destroyInfo'](){this['info']&&(this['infoDestroy']&&this['infoDestroy'](),this['info']['remove'](),this['info']=null);}['destroy'](){this['destroyInfo']();}}function completionTooltip(_0x2e9e59,_0x2a6969){return _0x4dac4a=>new CompletionTooltip(_0x4dac4a,_0x2e9e59,_0x2a6969);}function scrollIntoView(_0x47fd6e,_0x330cee){let _0x2c2e81=_0x47fd6e['getBoundingClientRect'](),_0x28c85=_0x330cee['getBoundingClientRect'](),_0x5efbe0=_0x2c2e81['height']/_0x47fd6e['offsetHeight'];_0x28c85['top']<_0x2c2e81['top']?_0x47fd6e['scrollTop']-=(_0x2c2e81['top']-_0x28c85['top'])/_0x5efbe0:_0x28c85['bottom']>_0x2c2e81['bottom']&&(_0x47fd6e['scrollTop']+=(_0x28c85['bottom']-_0x2c2e81['bottom'])/_0x5efbe0);}function score(_0x16ac1f){return 0x64*(_0x16ac1f['boost']||0x0)+(_0x16ac1f['apply']?0xa:0x0)+(_0x16ac1f['info']?0x5:0x0)+(_0x16ac1f['type']?0x1:0x0);}function sortOptions(_0x3f6d89,_0x2dd66e){let _0x34c563=[],_0x3b42bc=null,_0x514074=null,_0x1c3a15=_0xdb540d=>{_0x34c563['push'](_0xdb540d);let {section:_0xd554c6}=_0xdb540d['completion'];if(_0xd554c6){_0x3b42bc||(_0x3b42bc=[]);let _0x46f0c7='string'==typeof _0xd554c6?_0xd554c6:_0xd554c6['name'];_0x3b42bc['some'](_0x180696=>_0x180696['name']==_0x46f0c7)||_0x3b42bc['push']('string'==typeof _0xd554c6?{'name':_0x46f0c7}:_0xd554c6);}},_0x2ff823=_0x2dd66e['facet'](completionConfig);for(let _0x2d3b0b of _0x3f6d89)if(_0x2d3b0b['hasResult']()){let _0x22e211=_0x2d3b0b['result']['getMatch'];if(!0x1===_0x2d3b0b['result']['filter']){for(let _0x52b0cd of _0x2d3b0b['result']['options'])_0x1c3a15(new Option(_0x52b0cd,_0x2d3b0b['source'],_0x22e211?_0x22e211(_0x52b0cd):[],0x3b9aca00-_0x34c563['length']));}else{let _0x1456d5,_0x288b69=_0x2dd66e['sliceDoc'](_0x2d3b0b['from'],_0x2d3b0b['to']),_0x2ab885=_0x2ff823['filterStrict']?new StrictMatcher(_0x288b69):new FuzzyMatcher(_0x288b69);for(let _0x5e63ef of _0x2d3b0b['result']['options'])if(_0x1456d5=_0x2ab885['match'](_0x5e63ef['label'])){let _0x1ae41e=_0x5e63ef['displayLabel']?_0x22e211?_0x22e211(_0x5e63ef,_0x1456d5['matched']):[]:_0x1456d5['matched'],_0x29ba31=_0x1456d5['score']+(_0x5e63ef['boost']||0x0);if(_0x1c3a15(new Option(_0x5e63ef,_0x2d3b0b['source'],_0x1ae41e,_0x29ba31)),'object'==typeof _0x5e63ef['section']&&'dynamic'===_0x5e63ef['section']['rank']){let {name:_0x32dbab}=_0x5e63ef['section'];_0x514074||(_0x514074=Object['create'](null)),_0x514074[_0x32dbab]=Math['max'](_0x29ba31,_0x514074[_0x32dbab]||-0x3b9aca00);}}}}if(_0x3b42bc){let _0x9941bb=Object['create'](null),_0x276d53=0x0,_0x922b38=(_0x3f4a05,_0x495c07)=>('dynamic'===_0x3f4a05['rank']&&'dynamic'===_0x495c07['rank']?_0x514074[_0x495c07['name']]-_0x514074[_0x3f4a05['name']]:0x0)||('number'==typeof _0x3f4a05['rank']?_0x3f4a05['rank']:0x3b9aca00)-('number'==typeof _0x495c07['rank']?_0x495c07['rank']:0x3b9aca00)||(_0x3f4a05['name']<_0x495c07['name']?-0x1:0x1);for(let _0x2429b7 of _0x3b42bc['sort'](_0x922b38))_0x276d53-=0x186a0,_0x9941bb[_0x2429b7['name']]=_0x276d53;for(let _0x2b7ecc of _0x34c563){let {section:_0x24c180}=_0x2b7ecc['completion'];_0x24c180&&(_0x2b7ecc['score']+=_0x9941bb['string'==typeof _0x24c180?_0x24c180:_0x24c180['name']]);}}let _0x17e941=[],_0x5bfad5=null,_0x22cd87=_0x2ff823['compareCompletions'];for(let _0x28cf83 of _0x34c563['sort']((_0x22b2bc,_0x454849)=>_0x454849['score']-_0x22b2bc['score']||_0x22cd87(_0x22b2bc['completion'],_0x454849['completion']))){let _0x25773a=_0x28cf83['completion'];!_0x5bfad5||_0x5bfad5['label']!=_0x25773a['label']||_0x5bfad5['detail']!=_0x25773a['detail']||null!=_0x5bfad5['type']&&null!=_0x25773a['type']&&_0x5bfad5['type']!=_0x25773a['type']||_0x5bfad5['apply']!=_0x25773a['apply']||_0x5bfad5['boost']!=_0x25773a['boost']?_0x17e941['push'](_0x28cf83):score(_0x28cf83['completion'])>score(_0x5bfad5)&&(_0x17e941[_0x17e941['length']-0x1]=_0x28cf83),_0x5bfad5=_0x28cf83['completion'];}return _0x17e941;}class CompletionDialog{constructor(_0xb72b1b,_0x1da829,_0x40bdf8,_0x11c5c1,_0x4d2cb9,_0x43c419){this['options']=_0xb72b1b,this['attrs']=_0x1da829,this['tooltip']=_0x40bdf8,this['timestamp']=_0x11c5c1,this['selected']=_0x4d2cb9,this['disabled']=_0x43c419;}['setSelected'](_0x51c5bb,_0x3c051d){return _0x51c5bb==this['selected']||_0x51c5bb>=this['options']['length']?this:new CompletionDialog(this['options'],makeAttrs(_0x3c051d,_0x51c5bb),this['tooltip'],this['timestamp'],_0x51c5bb,this['disabled']);}static['build'](_0x5050d2,_0x125995,_0x1be891,_0x152df2,_0x11a5c8,_0x2fbedb){if(_0x152df2&&!_0x2fbedb&&_0x5050d2['some'](_0x4631f8=>_0x4631f8['isPending']))return _0x152df2['setDisabled']();let _0x430513=sortOptions(_0x5050d2,_0x125995);if(!_0x430513['length'])return _0x152df2&&_0x5050d2['some'](_0x103c20=>_0x103c20['isPending'])?_0x152df2['setDisabled']():null;let _0x1b8388=_0x125995['facet'](completionConfig)['selectOnOpen']?0x0:-0x1;if(_0x152df2&&_0x152df2['selected']!=_0x1b8388&&-0x1!=_0x152df2['selected']){let _0x179792=_0x152df2['options'][_0x152df2['selected']]['completion'];for(let _0x36d1b6=0x0;_0x36d1b6<_0x430513['length'];_0x36d1b6++)if(_0x430513[_0x36d1b6]['completion']==_0x179792){_0x1b8388=_0x36d1b6;break;}}return new CompletionDialog(_0x430513,makeAttrs(_0x1be891,_0x1b8388),{'pos':_0x5050d2['reduce']((_0x370ace,_0x5588d2)=>_0x5588d2['hasResult']()?Math['min'](_0x370ace,_0x5588d2['from']):_0x370ace,0x5f5e100),'create':createTooltip,'above':_0x11a5c8['aboveCursor']},_0x152df2?_0x152df2['timestamp']:Date['now'](),_0x1b8388,!0x1);}['map'](_0x2c131b){return new CompletionDialog(this['options'],this['attrs'],{...this['tooltip'],'pos':_0x2c131b['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(_0x20b7f2,_0x30a138,_0x1c7125){this['active']=_0x20b7f2,this['id']=_0x30a138,this['open']=_0x1c7125;}static['start'](){return new CompletionState(none$1,'cm-ac-'+Math['floor'](0x1e8480*Math['random']())['toString'](0x24),null);}['update'](_0x3a8171){let {state:_0x1ed1b3}=_0x3a8171,_0x1b8f18=_0x1ed1b3['facet'](completionConfig),_0x8d57ea=(_0x1b8f18['override']||_0x1ed1b3['languageDataAt']('autocomplete',cur(_0x1ed1b3))['map'](asSource))['map'](_0x1e1139=>{let _0x5e77ee=this['active']['find'](_0x14e252=>_0x14e252['source']==_0x1e1139)||new ActiveSource(_0x1e1139,this['active']['some'](_0x3ed465=>0x0!=_0x3ed465['state'])?0x1:0x0);return _0x5e77ee['update'](_0x3a8171,_0x1b8f18);});_0x8d57ea['length']==this['active']['length']&&_0x8d57ea['every']((_0x2777f1,_0x5689a)=>_0x2777f1==this['active'][_0x5689a])&&(_0x8d57ea=this['active']);let _0xee2bd4=this['open'],_0x322870=_0x3a8171['effects']['some'](_0x264205=>_0x264205['is'](setActiveEffect));_0xee2bd4&&_0x3a8171['docChanged']&&(_0xee2bd4=_0xee2bd4['map'](_0x3a8171['changes'])),_0x3a8171['selection']||_0x8d57ea['some'](_0x1b2078=>_0x1b2078['hasResult']()&&_0x3a8171['changes']['touchesRange'](_0x1b2078['from'],_0x1b2078['to']))||!sameResults(_0x8d57ea,this['active'])||_0x322870?_0xee2bd4=CompletionDialog['build'](_0x8d57ea,_0x1ed1b3,this['id'],_0xee2bd4,_0x1b8f18,_0x322870):_0xee2bd4&&_0xee2bd4['disabled']&&!_0x8d57ea['some'](_0x315317=>_0x315317['isPending'])&&(_0xee2bd4=null),!_0xee2bd4&&_0x8d57ea['every'](_0x445147=>!_0x445147['isPending'])&&_0x8d57ea['some'](_0x4e454f=>_0x4e454f['hasResult']())&&(_0x8d57ea=_0x8d57ea['map'](_0x4bdc3e=>_0x4bdc3e['hasResult']()?new ActiveSource(_0x4bdc3e['source'],0x0):_0x4bdc3e));for(let _0x27c24c of _0x3a8171['effects'])_0x27c24c['is'](setSelectedEffect)&&(_0xee2bd4=_0xee2bd4&&_0xee2bd4['setSelected'](_0x27c24c['value'],this['id']));return _0x8d57ea==this['active']&&_0xee2bd4==this['open']?this:new CompletionState(_0x8d57ea,this['id'],_0xee2bd4);}get['tooltip'](){return this['open']?this['open']['tooltip']:null;}get['attrs'](){return this['open']?this['open']['attrs']:this['active']['length']?baseAttrs:noAttrs;}}function sameResults(_0x32cfe7,_0x10faa5){if(_0x32cfe7==_0x10faa5)return!0x0;for(let _0x52d0c9=0x0,_0x4d0866=0x0;;){for(;_0x52d0c9<_0x32cfe7['length']&&!_0x32cfe7[_0x52d0c9]['hasResult']();)_0x52d0c9++;for(;_0x4d0866<_0x10faa5['length']&&!_0x10faa5[_0x4d0866]['hasResult']();)_0x4d0866++;let _0x5831dc=_0x52d0c9==_0x32cfe7['length'],_0x49a683=_0x4d0866==_0x10faa5['length'];if(_0x5831dc||_0x49a683)return _0x5831dc==_0x49a683;if(_0x32cfe7[_0x52d0c9++]['result']!=_0x10faa5[_0x4d0866++]['result'])return!0x1;}}const baseAttrs={'aria-autocomplete':'list'},noAttrs={};function makeAttrs(_0x20c1f3,_0x1af64a){let _0x112a23={'aria-autocomplete':'list','aria-haspopup':'listbox','aria-controls':_0x20c1f3};return _0x1af64a>-0x1&&(_0x112a23['aria-activedescendant']=_0x20c1f3+'-'+_0x1af64a),_0x112a23;}const none$1=[];function getUpdateType(_0x4d9dc7,_0x366892){if(_0x4d9dc7['isUserEvent']('input.complete')){let _0x1bc932=_0x4d9dc7['annotation'](pickedCompletion);if(_0x1bc932&&_0x366892['activateOnCompletion'](_0x1bc932))return 0xc;}let _0x4d8fcf=_0x4d9dc7['isUserEvent']('input.type');return _0x4d8fcf&&_0x366892['activateOnTyping']?0x5:_0x4d8fcf?0x1:_0x4d9dc7['isUserEvent']('delete.backward')?0x2:_0x4d9dc7['selection']?0x8:_0x4d9dc7['docChanged']?0x10:0x0;}class ActiveSource{constructor(_0x2df3ba,_0x13c8ad,_0x17575e=!0x1){this['source']=_0x2df3ba,this['state']=_0x13c8ad,this['explicit']=_0x17575e;}['hasResult'](){return!0x1;}get['isPending'](){return 0x1==this['state'];}['update'](_0x5629df,_0x45a8b3){let _0x3f818f=getUpdateType(_0x5629df,_0x45a8b3),_0x222dc6=this;(0x8&_0x3f818f||0x10&_0x3f818f&&this['touches'](_0x5629df))&&(_0x222dc6=new ActiveSource(_0x222dc6['source'],0x0)),0x4&_0x3f818f&&0x0==_0x222dc6['state']&&(_0x222dc6=new ActiveSource(this['source'],0x1)),_0x222dc6=_0x222dc6['updateFor'](_0x5629df,_0x3f818f);for(let _0x4b012f of _0x5629df['effects'])if(_0x4b012f['is'](startCompletionEffect))_0x222dc6=new ActiveSource(_0x222dc6['source'],0x1,_0x4b012f['value']);else{if(_0x4b012f['is'](closeCompletionEffect))_0x222dc6=new ActiveSource(_0x222dc6['source'],0x0);else{if(_0x4b012f['is'](setActiveEffect)){for(let _0x2294b2 of _0x4b012f['value'])_0x2294b2['source']==_0x222dc6['source']&&(_0x222dc6=_0x2294b2);}}}return _0x222dc6;}['updateFor'](_0x3fa056,_0x5156e0){return this['map'](_0x3fa056['changes']);}['map'](_0x5940c5){return this;}['touches'](_0x1fbdf7){return _0x1fbdf7['changes']['touchesRange'](cur(_0x1fbdf7['state']));}}class ActiveResult extends ActiveSource{constructor(_0x2a9a8e,_0x34c171,_0x1463ed,_0x32eb21,_0x47ae2f,_0x27b319){super(_0x2a9a8e,0x3,_0x34c171),this['limit']=_0x1463ed,this['result']=_0x32eb21,this['from']=_0x47ae2f,this['to']=_0x27b319;}['hasResult'](){return!0x0;}['updateFor'](_0x47f80d,_0xbdda3a){var _0x282020;if(!(0x3&_0xbdda3a))return this['map'](_0x47f80d['changes']);let _0xbcb001=this['result'];_0xbcb001['map']&&!_0x47f80d['changes']['empty']&&(_0xbcb001=_0xbcb001['map'](_0xbcb001,_0x47f80d['changes']));let _0x452b02=_0x47f80d['changes']['mapPos'](this['from']),_0x13736f=_0x47f80d['changes']['mapPos'](this['to'],0x1),_0x3ec8cc=cur(_0x47f80d['state']);if(_0x3ec8cc>_0x13736f||!_0xbcb001||0x2&_0xbdda3a&&(cur(_0x47f80d['startState'])==this['from']||_0x3ec8cc<this['limit']))return new ActiveSource(this['source'],0x4&_0xbdda3a?0x1:0x0);let _0xc4b876=_0x47f80d['changes']['mapPos'](this['limit']);return checkValid(_0xbcb001['validFor'],_0x47f80d['state'],_0x452b02,_0x13736f)?new ActiveResult(this['source'],this['explicit'],_0xc4b876,_0xbcb001,_0x452b02,_0x13736f):_0xbcb001['update']&&(_0xbcb001=_0xbcb001['update'](_0xbcb001,_0x452b02,_0x13736f,new CompletionContext(_0x47f80d['state'],_0x3ec8cc,!0x1)))?new ActiveResult(this['source'],this['explicit'],_0xc4b876,_0xbcb001,_0xbcb001['from'],null!==(_0x282020=_0xbcb001['to'])&&void 0x0!==_0x282020?_0x282020:cur(_0x47f80d['state'])):new ActiveSource(this['source'],0x1,this['explicit']);}['map'](_0xb1a5c3){if(_0xb1a5c3['empty'])return this;return(this['result']['map']?this['result']['map'](this['result'],_0xb1a5c3):this['result'])?new ActiveResult(this['source'],this['explicit'],_0xb1a5c3['mapPos'](this['limit']),this['result'],_0xb1a5c3['mapPos'](this['from']),_0xb1a5c3['mapPos'](this['to'],0x1)):new ActiveSource(this['source'],0x0);}['touches'](_0x370c2f){return _0x370c2f['changes']['touchesRange'](this['from'],this['to']);}}function checkValid(_0x33a433,_0x551174,_0x243505,_0x5f5a21){if(!_0x33a433)return!0x1;let _0x438018=_0x551174['sliceDoc'](_0x243505,_0x5f5a21);return'function'==typeof _0x33a433?_0x33a433(_0x438018,_0x243505,_0x5f5a21,_0x551174):ensureAnchor(_0x33a433,!0x0)['test'](_0x438018);}const setActiveEffect=StateEffect['define']({'map':(_0x30e7b7,_0x5c270e)=>_0x30e7b7['map'](_0x4ce473=>_0x4ce473['map'](_0x5c270e))}),setSelectedEffect=StateEffect['define'](),completionState=StateField['define']({'create':()=>CompletionState['start'](),'update':(_0x4fc0d7,_0x31b776)=>_0x4fc0d7['update'](_0x31b776),'provide':_0x5e9673=>[showTooltip['from'](_0x5e9673,_0x3374ac=>_0x3374ac['tooltip']),EditorView['contentAttributes']['from'](_0x5e9673,_0x53cf9f=>_0x53cf9f['attrs'])]});function applyCompletion(_0x8a8b3d,_0x6e6969){const _0x36978e=_0x6e6969['completion']['apply']||_0x6e6969['completion']['label'];let _0x13d825=_0x8a8b3d['state']['field'](completionState)['active']['find'](_0x3a77e4=>_0x3a77e4['source']==_0x6e6969['source']);return _0x13d825 instanceof ActiveResult&&('string'==typeof _0x36978e?_0x8a8b3d['dispatch']({...insertCompletionText(_0x8a8b3d['state'],_0x36978e,_0x13d825['from'],_0x13d825['to']),'annotations':pickedCompletion['of'](_0x6e6969['completion'])}):_0x36978e(_0x8a8b3d,_0x6e6969['completion'],_0x13d825['from'],_0x13d825['to']),!0x0);}const createTooltip=completionTooltip(completionState,applyCompletion);function moveCompletionSelection(_0x44f6fd,_0x2ba5aa='option'){return _0x17f22f=>{let _0x3f956c=_0x17f22f['state']['field'](completionState,!0x1);if(!_0x3f956c||!_0x3f956c['open']||_0x3f956c['open']['disabled']||Date['now']()-_0x3f956c['open']['timestamp']<_0x17f22f['state']['facet'](completionConfig)['interactionDelay'])return!0x1;let _0x4890cc,_0x54e880=0x1;'page'==_0x2ba5aa&&(_0x4890cc=getTooltip(_0x17f22f,_0x3f956c['open']['tooltip']))&&(_0x54e880=Math['max'](0x2,Math['floor'](_0x4890cc['dom']['offsetHeight']/_0x4890cc['dom']['querySelector']('li')['offsetHeight'])-0x1));let {length:_0x18a41f}=_0x3f956c['open']['options'],_0x39d81a=_0x3f956c['open']['selected']>-0x1?_0x3f956c['open']['selected']+_0x54e880*(_0x44f6fd?0x1:-0x1):_0x44f6fd?0x0:_0x18a41f-0x1;return _0x39d81a<0x0?_0x39d81a='page'==_0x2ba5aa?0x0:_0x18a41f-0x1:_0x39d81a>=_0x18a41f&&(_0x39d81a='page'==_0x2ba5aa?_0x18a41f-0x1:0x0),_0x17f22f['dispatch']({'effects':setSelectedEffect['of'](_0x39d81a)}),!0x0;};}const acceptCompletion=_0x50a436=>{let _0xddc06a=_0x50a436['state']['field'](completionState,!0x1);return!(_0x50a436['state']['readOnly']||!_0xddc06a||!_0xddc06a['open']||_0xddc06a['open']['selected']<0x0||_0xddc06a['open']['disabled']||Date['now']()-_0xddc06a['open']['timestamp']<_0x50a436['state']['facet'](completionConfig)['interactionDelay'])&&applyCompletion(_0x50a436,_0xddc06a['open']['options'][_0xddc06a['open']['selected']]);},startCompletion=_0x1dc36d=>!!_0x1dc36d['state']['field'](completionState,!0x1)&&(_0x1dc36d['dispatch']({'effects':startCompletionEffect['of'](!0x0)}),!0x0),closeCompletion=_0x54962e=>{let _0x771975=_0x54962e['state']['field'](completionState,!0x1);return!(!_0x771975||!_0x771975['active']['some'](_0x2d3545=>0x0!=_0x2d3545['state']))&&(_0x54962e['dispatch']({'effects':closeCompletionEffect['of'](null)}),!0x0);};class RunningQuery{constructor(_0x17606a,_0x18d97e){this['active']=_0x17606a,this['context']=_0x18d97e,this['time']=Date['now'](),this['updates']=[],this['done']=void 0x0;}}const MaxUpdateCount=0x32,MinAbortTime=0x3e8,completionPlugin=ViewPlugin['fromClass'](class{constructor(_0x453112){this['view']=_0x453112,this['debounceUpdate']=-0x1,this['running']=[],this['debounceAccept']=-0x1,this['pendingStart']=!0x1,this['composing']=0x0;for(let _0x4e5ad7 of _0x453112['state']['field'](completionState)['active'])_0x4e5ad7['isPending']&&this['startQuery'](_0x4e5ad7);}['update'](_0x6dcf30){let _0x2d7214=_0x6dcf30['state']['field'](completionState),_0x3ca04b=_0x6dcf30['state']['facet'](completionConfig);if(!_0x6dcf30['selectionSet']&&!_0x6dcf30['docChanged']&&_0x6dcf30['startState']['field'](completionState)==_0x2d7214)return;let _0x170cd6=_0x6dcf30['transactions']['some'](_0x307a24=>{let _0x21479c=getUpdateType(_0x307a24,_0x3ca04b);return 0x8&_0x21479c||(_0x307a24['selection']||_0x307a24['docChanged'])&&!(0x3&_0x21479c);});for(let _0x4d12f5=0x0;_0x4d12f5<this['running']['length'];_0x4d12f5++){let _0x5e11ce=this['running'][_0x4d12f5];if(_0x170cd6||_0x5e11ce['context']['abortOnDocChange']&&_0x6dcf30['docChanged']||_0x5e11ce['updates']['length']+_0x6dcf30['transactions']['length']>MaxUpdateCount&&Date['now']()-_0x5e11ce['time']>MinAbortTime){for(let _0x380736 of _0x5e11ce['context']['abortListeners'])try{_0x380736();}catch(_0x474533){logException(this['view']['state'],_0x474533);}_0x5e11ce['context']['abortListeners']=null,this['running']['splice'](_0x4d12f5--,0x1);}else _0x5e11ce['updates']['push'](..._0x6dcf30['transactions']);}this['debounceUpdate']>-0x1&&clearTimeout(this['debounceUpdate']),_0x6dcf30['transactions']['some'](_0x65a45f=>_0x65a45f['effects']['some'](_0x4e7b8b=>_0x4e7b8b['is'](startCompletionEffect)))&&(this['pendingStart']=!0x0);let _0x26bf50=this['pendingStart']?0x32:_0x3ca04b['activateOnTypingDelay'];if(this['debounceUpdate']=_0x2d7214['active']['some'](_0x3feed9=>_0x3feed9['isPending']&&!this['running']['some'](_0x4d1a97=>_0x4d1a97['active']['source']==_0x3feed9['source']))?setTimeout(()=>this['startUpdate'](),_0x26bf50):-0x1,0x0!=this['composing']){for(let _0x73219 of _0x6dcf30['transactions'])_0x73219['isUserEvent']('input.type')?this['composing']=0x2:0x2==this['composing']&&_0x73219['selection']&&(this['composing']=0x3);}}['startUpdate'](){this['debounceUpdate']=-0x1,this['pendingStart']=!0x1;let {state:_0x21f96e}=this['view'],_0x304dd2=_0x21f96e['field'](completionState);for(let _0x1d6a65 of _0x304dd2['active'])_0x1d6a65['isPending']&&!this['running']['some'](_0x48977c=>_0x48977c['active']['source']==_0x1d6a65['source'])&&this['startQuery'](_0x1d6a65);this['running']['length']&&_0x304dd2['open']&&_0x304dd2['open']['disabled']&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['startQuery'](_0x3fe5d6){let {state:_0x5db75c}=this['view'],_0x18adf4=cur(_0x5db75c),_0x47b360=new CompletionContext(_0x5db75c,_0x18adf4,_0x3fe5d6['explicit'],this['view']),_0x2ef462=new RunningQuery(_0x3fe5d6,_0x47b360);this['running']['push'](_0x2ef462),Promise['resolve'](_0x3fe5d6['source'](_0x47b360))['then'](_0x4998b4=>{_0x2ef462['context']['aborted']||(_0x2ef462['done']=_0x4998b4||null,this['scheduleAccept']());},_0x2608cd=>{this['view']['dispatch']({'effects':closeCompletionEffect['of'](null)}),logException(this['view']['state'],_0x2608cd);});}['scheduleAccept'](){this['running']['every'](_0x25a742=>void 0x0!==_0x25a742['done'])?this['accept']():this['debounceAccept']<0x0&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['accept'](){var _0x2aec34;this['debounceAccept']>-0x1&&clearTimeout(this['debounceAccept']),this['debounceAccept']=-0x1;let _0x2209d2=[],_0x488e1c=this['view']['state']['facet'](completionConfig),_0x3ef249=this['view']['state']['field'](completionState);for(let _0xae9d29=0x0;_0xae9d29<this['running']['length'];_0xae9d29++){let _0x3a01b1=this['running'][_0xae9d29];if(void 0x0===_0x3a01b1['done'])continue;if(this['running']['splice'](_0xae9d29--,0x1),_0x3a01b1['done']){let _0x141d18=cur(_0x3a01b1['updates']['length']?_0x3a01b1['updates'][0x0]['startState']:this['view']['state']),_0x3f44da=Math['min'](_0x141d18,_0x3a01b1['done']['from']+(_0x3a01b1['active']['explicit']?0x0:0x1)),_0x1e2925=new ActiveResult(_0x3a01b1['active']['source'],_0x3a01b1['active']['explicit'],_0x3f44da,_0x3a01b1['done'],_0x3a01b1['done']['from'],null!==(_0x2aec34=_0x3a01b1['done']['to'])&&void 0x0!==_0x2aec34?_0x2aec34:_0x141d18);for(let _0x447063 of _0x3a01b1['updates'])_0x1e2925=_0x1e2925['update'](_0x447063,_0x488e1c);if(_0x1e2925['hasResult']()){_0x2209d2['push'](_0x1e2925);continue;}}let _0x18bd39=_0x3ef249['active']['find'](_0x25392d=>_0x25392d['source']==_0x3a01b1['active']['source']);if(_0x18bd39&&_0x18bd39['isPending']){if(null==_0x3a01b1['done']){let _0x166221=new ActiveSource(_0x3a01b1['active']['source'],0x0);for(let _0x45b375 of _0x3a01b1['updates'])_0x166221=_0x166221['update'](_0x45b375,_0x488e1c);_0x166221['isPending']||_0x2209d2['push'](_0x166221);}else this['startQuery'](_0x18bd39);}}(_0x2209d2['length']||_0x3ef249['open']&&_0x3ef249['open']['disabled'])&&this['view']['dispatch']({'effects':setActiveEffect['of'](_0x2209d2)});}},{'eventHandlers':{'blur'(_0x32dbcb){let _0xd95f3a=this['view']['state']['field'](completionState,!0x1);if(_0xd95f3a&&_0xd95f3a['tooltip']&&this['view']['state']['facet'](completionConfig)['closeOnBlur']){let _0x216b3a=_0xd95f3a['open']&&getTooltip(this['view'],_0xd95f3a['open']['tooltip']);_0x216b3a&&_0x216b3a['dom']['contains'](_0x32dbcb['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'(_0x5e5474,_0x1c3501){let _0x124e87=_0x1c3501['state']['field'](completionState,!0x1);if(!_0x124e87||!_0x124e87['open']||_0x124e87['open']['disabled']||_0x124e87['open']['selected']<0x0||_0x5e5474['key']['length']>0x1||_0x5e5474['ctrlKey']&&(!windows||!_0x5e5474['altKey'])||_0x5e5474['metaKey'])return!0x1;let _0xa93faf=_0x124e87['open']['options'][_0x124e87['open']['selected']],_0x12fc56=_0x124e87['active']['find'](_0x572922=>_0x572922['source']==_0xa93faf['source']),_0x7b05a3=_0xa93faf['completion']['commitCharacters']||_0x12fc56['result']['commitCharacters'];return _0x7b05a3&&_0x7b05a3['indexOf'](_0x5e5474['key'])>-0x1&&applyCompletion(_0x1c3501,_0xa93faf),!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(_0x1b3f22,_0x3063ce,_0x3438bd,_0x4422cb){this['field']=_0x1b3f22,this['line']=_0x3063ce,this['from']=_0x3438bd,this['to']=_0x4422cb;}}class FieldRange{constructor(_0x5d07a5,_0x5db79,_0x3c873e){this['field']=_0x5d07a5,this['from']=_0x5db79,this['to']=_0x3c873e;}['map'](_0x20b7d4){let _0x13cdd1=_0x20b7d4['mapPos'](this['from'],-0x1,MapMode['TrackDel']),_0x175f89=_0x20b7d4['mapPos'](this['to'],0x1,MapMode['TrackDel']);return null==_0x13cdd1||null==_0x175f89?null:new FieldRange(this['field'],_0x13cdd1,_0x175f89);}}class Snippet{constructor(_0x3b8b0e,_0x14b208){this['lines']=_0x3b8b0e,this['fieldPositions']=_0x14b208;}['instantiate'](_0x3a3adc,_0x513641){let _0x3a0dd2=[],_0x484416=[_0x513641],_0x4ab302=_0x3a3adc['doc']['lineAt'](_0x513641),_0x289c2b=/^\s*/['exec'](_0x4ab302['text'])[0x0];for(let _0x1ef620 of this['lines']){if(_0x3a0dd2['length']){let _0x3ecec1=_0x289c2b,_0x11de8c=/^\t*/['exec'](_0x1ef620)[0x0]['length'];for(let _0x473d76=0x0;_0x473d76<_0x11de8c;_0x473d76++)_0x3ecec1+=_0x3a3adc['facet'](indentUnit);_0x484416['push'](_0x513641+_0x3ecec1['length']-_0x11de8c),_0x1ef620=_0x3ecec1+_0x1ef620['slice'](_0x11de8c);}_0x3a0dd2['push'](_0x1ef620),_0x513641+=_0x1ef620['length']+0x1;}let _0x14f8e3=this['fieldPositions']['map'](_0x4be670=>new FieldRange(_0x4be670['field'],_0x484416[_0x4be670['line']]+_0x4be670['from'],_0x484416[_0x4be670['line']]+_0x4be670['to']));return{'text':_0x3a0dd2,'ranges':_0x14f8e3};}static['parse'](_0x27cdd9){let _0x248ce9,_0x2f206f=[],_0x3438f2=[],_0x37621a=[];for(let _0x3dfc4a of _0x27cdd9['split'](/\r\n?|\n/)){for(;_0x248ce9=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/['exec'](_0x3dfc4a);){let _0x2bf2ea=_0x248ce9[0x1]?+_0x248ce9[0x1]:null,_0x3d1512=_0x248ce9[0x2]||_0x248ce9[0x3]||'',_0x474c26=-0x1,_0x2f85dd=_0x3d1512['replace'](/\\[{}]/g,_0x14c8e2=>_0x14c8e2[0x1]);for(let _0x30d495=0x0;_0x30d495<_0x2f206f['length'];_0x30d495++)(null!=_0x2bf2ea?_0x2f206f[_0x30d495]['seq']==_0x2bf2ea:_0x2f85dd&&_0x2f206f[_0x30d495]['name']==_0x2f85dd)&&(_0x474c26=_0x30d495);if(_0x474c26<0x0){let _0x26976d=0x0;for(;_0x26976d<_0x2f206f['length']&&(null==_0x2bf2ea||null!=_0x2f206f[_0x26976d]['seq']&&_0x2f206f[_0x26976d]['seq']<_0x2bf2ea);)_0x26976d++;_0x2f206f['splice'](_0x26976d,0x0,{'seq':_0x2bf2ea,'name':_0x2f85dd}),_0x474c26=_0x26976d;for(let _0x171292 of _0x37621a)_0x171292['field']>=_0x474c26&&_0x171292['field']++;}for(let _0x4d88e4 of _0x37621a)if(_0x4d88e4['line']==_0x3438f2['length']&&_0x4d88e4['from']>_0x248ce9['index']){let _0x319a68=_0x248ce9[0x2]?0x3+(_0x248ce9[0x1]||'')['length']:0x2;_0x4d88e4['from']-=_0x319a68,_0x4d88e4['to']-=_0x319a68;}_0x37621a['push'](new FieldPos(_0x474c26,_0x3438f2['length'],_0x248ce9['index'],_0x248ce9['index']+_0x2f85dd['length'])),_0x3dfc4a=_0x3dfc4a['slice'](0x0,_0x248ce9['index'])+_0x3d1512+_0x3dfc4a['slice'](_0x248ce9['index']+_0x248ce9[0x0]['length']);}_0x3dfc4a=_0x3dfc4a['replace'](/\\([{}])/g,(_0x2e2d28,_0x3fceb0,_0x341bff)=>{for(let _0x4d2ccc of _0x37621a)_0x4d2ccc['line']==_0x3438f2['length']&&_0x4d2ccc['from']>_0x341bff&&(_0x4d2ccc['from']--,_0x4d2ccc['to']--);return _0x3fceb0;}),_0x3438f2['push'](_0x3dfc4a);}return new Snippet(_0x3438f2,_0x37621a);}}let fieldMarker=Decoration['widget']({'widget':new class extends WidgetType{['toDOM'](){let _0x296af4=document['createElement']('span');return _0x296af4['className']='cm-snippetFieldPosition',_0x296af4;}['ignoreEvent'](){return!0x1;}}()}),fieldRange=Decoration['mark']({'class':'cm-snippetField'});class ActiveSnippet{constructor(_0x2a576a,_0x2f57b7){this['ranges']=_0x2a576a,this['active']=_0x2f57b7,this['deco']=Decoration['set'](_0x2a576a['map'](_0x458a1b=>(_0x458a1b['from']==_0x458a1b['to']?fieldMarker:fieldRange)['range'](_0x458a1b['from'],_0x458a1b['to'])),!0x0);}['map'](_0x5cb2e4){let _0x3af061=[];for(let _0x5cfc7a of this['ranges']){let _0x46650a=_0x5cfc7a['map'](_0x5cb2e4);if(!_0x46650a)return null;_0x3af061['push'](_0x46650a);}return new ActiveSnippet(_0x3af061,this['active']);}['selectionInsideField'](_0x4b2a0e){return _0x4b2a0e['ranges']['every'](_0x49fca7=>this['ranges']['some'](_0x363183=>_0x363183['field']==this['active']&&_0x363183['from']<=_0x49fca7['from']&&_0x363183['to']>=_0x49fca7['to']));}}const setActive=StateEffect['define']({'map':(_0x29d0ab,_0x49d4d0)=>_0x29d0ab&&_0x29d0ab['map'](_0x49d4d0)}),moveToField=StateEffect['define'](),snippetState=StateField['define']({'create':()=>null,'update'(_0x3a2e00,_0xea7e0c){for(let _0x5f1e30 of _0xea7e0c['effects']){if(_0x5f1e30['is'](setActive))return _0x5f1e30['value'];if(_0x5f1e30['is'](moveToField)&&_0x3a2e00)return new ActiveSnippet(_0x3a2e00['ranges'],_0x5f1e30['value']);}return _0x3a2e00&&_0xea7e0c['docChanged']&&(_0x3a2e00=_0x3a2e00['map'](_0xea7e0c['changes'])),_0x3a2e00&&_0xea7e0c['selection']&&!_0x3a2e00['selectionInsideField'](_0xea7e0c['selection'])&&(_0x3a2e00=null),_0x3a2e00;},'provide':_0x310d14=>EditorView['decorations']['from'](_0x310d14,_0x509a27=>_0x509a27?_0x509a27['deco']:Decoration['none'])});function fieldSelection(_0x4da0a9,_0x2da18e){return EditorSelection['create'](_0x4da0a9['filter'](_0x59abd7=>_0x59abd7['field']==_0x2da18e)['map'](_0x3bf73b=>EditorSelection['range'](_0x3bf73b['from'],_0x3bf73b['to'])));}function snippet(_0x585e42){let _0x2bcaf4=Snippet['parse'](_0x585e42);return(_0x498563,_0x163cb9,_0x17a7cb,_0x58a2eb)=>{let {text:_0x32a2ef,ranges:_0x40ca9a}=_0x2bcaf4['instantiate'](_0x498563['state'],_0x17a7cb),{main:_0xc10197}=_0x498563['state']['selection'],_0x3a676b={'changes':{'from':_0x17a7cb,'to':_0x58a2eb==_0xc10197['from']?_0xc10197['to']:_0x58a2eb,'insert':Text['of'](_0x32a2ef)},'scrollIntoView':!0x0,'annotations':_0x163cb9?[pickedCompletion['of'](_0x163cb9),Transaction['userEvent']['of']('input.complete')]:void 0x0};if(_0x40ca9a['length']&&(_0x3a676b['selection']=fieldSelection(_0x40ca9a,0x0)),_0x40ca9a['some'](_0x292196=>_0x292196['field']>0x0)){let _0x2c3a18=new ActiveSnippet(_0x40ca9a,0x0),_0x28333c=_0x3a676b['effects']=[setActive['of'](_0x2c3a18)];void 0x0===_0x498563['state']['field'](snippetState,!0x1)&&_0x28333c['push'](StateEffect['appendConfig']['of']([snippetState,addSnippetKeymap,snippetPointerHandler,baseTheme]));}_0x498563['dispatch'](_0x498563['state']['update'](_0x3a676b));};}function moveField(_0x3eb465){return({state:_0x1ac16c,dispatch:_0x384b26})=>{let _0x7a4fba=_0x1ac16c['field'](snippetState,!0x1);if(!_0x7a4fba||_0x3eb465<0x0&&0x0==_0x7a4fba['active'])return!0x1;let _0x500caf=_0x7a4fba['active']+_0x3eb465,_0x429ef6=_0x3eb465>0x0&&!_0x7a4fba['ranges']['some'](_0x22e044=>_0x22e044['field']==_0x500caf+_0x3eb465);return _0x384b26(_0x1ac16c['update']({'selection':fieldSelection(_0x7a4fba['ranges'],_0x500caf),'effects':setActive['of'](_0x429ef6?null:new ActiveSnippet(_0x7a4fba['ranges'],_0x500caf)),'scrollIntoView':!0x0})),!0x0;};}const clearSnippet=({state:_0x26f89f,dispatch:_0x1a0286})=>!!_0x26f89f['field'](snippetState,!0x1)&&(_0x1a0286(_0x26f89f['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':_0x336502=>_0x336502['length']?_0x336502[0x0]:defaultSnippetKeymap}),addSnippetKeymap=Prec['highest'](keymap['compute']([snippetKeymap],_0x2ec23f=>_0x2ec23f['facet'](snippetKeymap)));function snippetCompletion(_0x4b5e13,_0x76bc0){return{..._0x76bc0,'apply':snippet(_0x4b5e13)};}const snippetPointerHandler=EditorView['domEventHandlers']({'mousedown'(_0x1fcb6a,_0x1841ca){let _0x3624ad,_0x40594f=_0x1841ca['state']['field'](snippetState,!0x1);if(!_0x40594f||null==(_0x3624ad=_0x1841ca['posAtCoords']({'x':_0x1fcb6a['clientX'],'y':_0x1fcb6a['clientY']})))return!0x1;let _0x143a8f=_0x40594f['ranges']['find'](_0x6b1faa=>_0x6b1faa['from']<=_0x3624ad&&_0x6b1faa['to']>=_0x3624ad);return!(!_0x143a8f||_0x143a8f['field']==_0x40594f['active'])&&(_0x1841ca['dispatch']({'selection':fieldSelection(_0x40594f['ranges'],_0x143a8f['field']),'effects':setActive['of'](_0x40594f['ranges']['some'](_0x57bc39=>_0x57bc39['field']>_0x143a8f['field'])?new ActiveSnippet(_0x40594f['ranges'],_0x143a8f['field']):null),'scrollIntoView':!0x0}),!0x0);}}),defaults={'brackets':['(','[','{','\x27','\x22'],'before':')]}:;>','stringPrefixes':[]},closeBracketEffect=StateEffect['define']({'map'(_0x547716,_0x49a0c7){let _0xfb912e=_0x49a0c7['mapPos'](_0x547716,-0x1,MapMode['TrackAfter']);return null==_0xfb912e?void 0x0:_0xfb912e;}}),closedBracket=new class extends RangeValue{}();closedBracket['startSide']=0x1,closedBracket['endSide']=-0x1;const bracketState=StateField['define']({'create':()=>RangeSet['empty'],'update'(_0x2d31ce,_0xb78477){if(_0x2d31ce=_0x2d31ce['map'](_0xb78477['changes']),_0xb78477['selection']){let _0x2dedd7=_0xb78477['state']['doc']['lineAt'](_0xb78477['selection']['main']['head']);_0x2d31ce=_0x2d31ce['update']({'filter':_0x13208b=>_0x13208b>=_0x2dedd7['from']&&_0x13208b<=_0x2dedd7['to']});}for(let _0x26d429 of _0xb78477['effects'])_0x26d429['is'](closeBracketEffect)&&(_0x2d31ce=_0x2d31ce['update']({'add':[closedBracket['range'](_0x26d429['value'],_0x26d429['value']+0x1)]}));return _0x2d31ce;}});function closeBrackets(){return[inputHandler,bracketState];}const definedClosing='()[]{}<>«»»«［］｛｝';function closing(_0x5642f8){for(let _0x270cb0=0x0;_0x270cb0<definedClosing['length'];_0x270cb0+=0x2)if(definedClosing['charCodeAt'](_0x270cb0)==_0x5642f8)return definedClosing['charAt'](_0x270cb0+0x1);return fromCodePoint(_0x5642f8<0x80?_0x5642f8:_0x5642f8+0x1);}function config$1(_0x3692c7,_0x5412b1){return _0x3692c7['languageDataAt']('closeBrackets',_0x5412b1)[0x0]||defaults;}const android$1='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),inputHandler=EditorView['inputHandler']['of']((_0x58e973,_0x25c9c5,_0x3b9ffb,_0x322201)=>{if((android$1?_0x58e973['composing']:_0x58e973['compositionStarted'])||_0x58e973['state']['readOnly'])return!0x1;let _0x1e0828=_0x58e973['state']['selection']['main'];if(_0x322201['length']>0x2||0x2==_0x322201['length']&&0x1==codePointSize(codePointAt(_0x322201,0x0))||_0x25c9c5!=_0x1e0828['from']||_0x3b9ffb!=_0x1e0828['to'])return!0x1;let _0x1645e4=insertBracket(_0x58e973['state'],_0x322201);return!!_0x1645e4&&(_0x58e973['dispatch'](_0x1645e4),!0x0);}),deleteBracketPair=({state:_0x213223,dispatch:_0x52c29d})=>{if(_0x213223['readOnly'])return!0x1;let _0x2c16bb=config$1(_0x213223,_0x213223['selection']['main']['head'])['brackets']||defaults['brackets'],_0x1633a1=null,_0x4c1e45=_0x213223['changeByRange'](_0x5e06d5=>{if(_0x5e06d5['empty']){let _0x5dde52=prevChar(_0x213223['doc'],_0x5e06d5['head']);for(let _0x24159d of _0x2c16bb)if(_0x24159d==_0x5dde52&&nextChar(_0x213223['doc'],_0x5e06d5['head'])==closing(codePointAt(_0x24159d,0x0)))return{'changes':{'from':_0x5e06d5['head']-_0x24159d['length'],'to':_0x5e06d5['head']+_0x24159d['length']},'range':EditorSelection['cursor'](_0x5e06d5['head']-_0x24159d['length'])};}return{'range':_0x1633a1=_0x5e06d5};});return _0x1633a1||_0x52c29d(_0x213223['update'](_0x4c1e45,{'scrollIntoView':!0x0,'userEvent':'delete.backward'})),!_0x1633a1;},closeBracketsKeymap=[{'key':'Backspace','run':deleteBracketPair}];function insertBracket(_0x2dfb54,_0x5a3688){let _0x1c0707=config$1(_0x2dfb54,_0x2dfb54['selection']['main']['head']),_0x4a60e1=_0x1c0707['brackets']||defaults['brackets'];for(let _0x365f48 of _0x4a60e1){let _0x400aa2=closing(codePointAt(_0x365f48,0x0));if(_0x5a3688==_0x365f48)return _0x400aa2==_0x365f48?handleSame(_0x2dfb54,_0x365f48,_0x4a60e1['indexOf'](_0x365f48+_0x365f48+_0x365f48)>-0x1,_0x1c0707):handleOpen(_0x2dfb54,_0x365f48,_0x400aa2,_0x1c0707['before']||defaults['before']);if(_0x5a3688==_0x400aa2&&closedBracketAt(_0x2dfb54,_0x2dfb54['selection']['main']['from']))return handleClose(_0x2dfb54,_0x365f48,_0x400aa2);}return null;}function closedBracketAt(_0x2608f6,_0x56fdd6){let _0x27b699=!0x1;return _0x2608f6['field'](bracketState)['between'](0x0,_0x2608f6['doc']['length'],_0x22fb9f=>{_0x22fb9f==_0x56fdd6&&(_0x27b699=!0x0);}),_0x27b699;}function nextChar(_0x230e95,_0x29637f){let _0x4d71c3=_0x230e95['sliceString'](_0x29637f,_0x29637f+0x2);return _0x4d71c3['slice'](0x0,codePointSize(codePointAt(_0x4d71c3,0x0)));}function prevChar(_0x31ccae,_0x17e52b){let _0x2be1f8=_0x31ccae['sliceString'](_0x17e52b-0x2,_0x17e52b);return codePointSize(codePointAt(_0x2be1f8,0x0))==_0x2be1f8['length']?_0x2be1f8:_0x2be1f8['slice'](0x1);}function handleOpen(_0x1f1038,_0x147e91,_0x3461b3,_0x4dc8b1){let _0x4003d7=null,_0x45eb7c=_0x1f1038['changeByRange'](_0xb39ba1=>{if(!_0xb39ba1['empty'])return{'changes':[{'insert':_0x147e91,'from':_0xb39ba1['from']},{'insert':_0x3461b3,'from':_0xb39ba1['to']}],'effects':closeBracketEffect['of'](_0xb39ba1['to']+_0x147e91['length']),'range':EditorSelection['range'](_0xb39ba1['anchor']+_0x147e91['length'],_0xb39ba1['head']+_0x147e91['length'])};let _0xaca1c7=nextChar(_0x1f1038['doc'],_0xb39ba1['head']);return!_0xaca1c7||/\s/['test'](_0xaca1c7)||_0x4dc8b1['indexOf'](_0xaca1c7)>-0x1?{'changes':{'insert':_0x147e91+_0x3461b3,'from':_0xb39ba1['head']},'effects':closeBracketEffect['of'](_0xb39ba1['head']+_0x147e91['length']),'range':EditorSelection['cursor'](_0xb39ba1['head']+_0x147e91['length'])}:{'range':_0x4003d7=_0xb39ba1};});return _0x4003d7?null:_0x1f1038['update'](_0x45eb7c,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleClose(_0x3c822a,_0x3b2c41,_0xdb1267){let _0x5940ad=null,_0x19da7b=_0x3c822a['changeByRange'](_0x55a892=>_0x55a892['empty']&&nextChar(_0x3c822a['doc'],_0x55a892['head'])==_0xdb1267?{'changes':{'from':_0x55a892['head'],'to':_0x55a892['head']+_0xdb1267['length'],'insert':_0xdb1267},'range':EditorSelection['cursor'](_0x55a892['head']+_0xdb1267['length'])}:_0x5940ad={'range':_0x55a892});return _0x5940ad?null:_0x3c822a['update'](_0x19da7b,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleSame(_0x45aa5c,_0x4308e4,_0xf924c3,_0x2508f7){let _0x225ab2=_0x2508f7['stringPrefixes']||defaults['stringPrefixes'],_0x32b56b=null,_0x46be91=_0x45aa5c['changeByRange'](_0x464d9b=>{if(!_0x464d9b['empty'])return{'changes':[{'insert':_0x4308e4,'from':_0x464d9b['from']},{'insert':_0x4308e4,'from':_0x464d9b['to']}],'effects':closeBracketEffect['of'](_0x464d9b['to']+_0x4308e4['length']),'range':EditorSelection['range'](_0x464d9b['anchor']+_0x4308e4['length'],_0x464d9b['head']+_0x4308e4['length'])};let _0x3cc9c9,_0x4154fd=_0x464d9b['head'],_0x2b4484=nextChar(_0x45aa5c['doc'],_0x4154fd);if(_0x2b4484==_0x4308e4){if(nodeStart(_0x45aa5c,_0x4154fd))return{'changes':{'insert':_0x4308e4+_0x4308e4,'from':_0x4154fd},'effects':closeBracketEffect['of'](_0x4154fd+_0x4308e4['length']),'range':EditorSelection['cursor'](_0x4154fd+_0x4308e4['length'])};if(closedBracketAt(_0x45aa5c,_0x4154fd)){let _0x31df88=_0xf924c3&&_0x45aa5c['sliceDoc'](_0x4154fd,_0x4154fd+0x3*_0x4308e4['length'])==_0x4308e4+_0x4308e4+_0x4308e4?_0x4308e4+_0x4308e4+_0x4308e4:_0x4308e4;return{'changes':{'from':_0x4154fd,'to':_0x4154fd+_0x31df88['length'],'insert':_0x31df88},'range':EditorSelection['cursor'](_0x4154fd+_0x31df88['length'])};}}else{if(_0xf924c3&&_0x45aa5c['sliceDoc'](_0x4154fd-0x2*_0x4308e4['length'],_0x4154fd)==_0x4308e4+_0x4308e4&&(_0x3cc9c9=canStartStringAt(_0x45aa5c,_0x4154fd-0x2*_0x4308e4['length'],_0x225ab2))>-0x1&&nodeStart(_0x45aa5c,_0x3cc9c9))return{'changes':{'insert':_0x4308e4+_0x4308e4+_0x4308e4+_0x4308e4,'from':_0x4154fd},'effects':closeBracketEffect['of'](_0x4154fd+_0x4308e4['length']),'range':EditorSelection['cursor'](_0x4154fd+_0x4308e4['length'])};if(_0x45aa5c['charCategorizer'](_0x4154fd)(_0x2b4484)!=CharCategory['Word']&&canStartStringAt(_0x45aa5c,_0x4154fd,_0x225ab2)>-0x1&&!probablyInString(_0x45aa5c,_0x4154fd,_0x4308e4,_0x225ab2))return{'changes':{'insert':_0x4308e4+_0x4308e4,'from':_0x4154fd},'effects':closeBracketEffect['of'](_0x4154fd+_0x4308e4['length']),'range':EditorSelection['cursor'](_0x4154fd+_0x4308e4['length'])};}return{'range':_0x32b56b=_0x464d9b};});return _0x32b56b?null:_0x45aa5c['update'](_0x46be91,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function nodeStart(_0x525612,_0x381d52){let _0x4296f0=syntaxTree(_0x525612)['resolveInner'](_0x381d52+0x1);return _0x4296f0['parent']&&_0x4296f0['from']==_0x381d52;}function probablyInString(_0x28f78d,_0x5be36c,_0x3fa0e6,_0x4a01b9){let _0x3f5406=syntaxTree(_0x28f78d)['resolveInner'](_0x5be36c,-0x1),_0x5e6119=_0x4a01b9['reduce']((_0x12f57b,_0x87ebee)=>Math['max'](_0x12f57b,_0x87ebee['length']),0x0);for(let _0x2605ce=0x0;_0x2605ce<0x5;_0x2605ce++){let _0x400ae5=_0x28f78d['sliceDoc'](_0x3f5406['from'],Math['min'](_0x3f5406['to'],_0x3f5406['from']+_0x3fa0e6['length']+_0x5e6119)),_0x1c58f1=_0x400ae5['indexOf'](_0x3fa0e6);if(!_0x1c58f1||_0x1c58f1>-0x1&&_0x4a01b9['indexOf'](_0x400ae5['slice'](0x0,_0x1c58f1))>-0x1){let _0x5e2d85=_0x3f5406['firstChild'];for(;_0x5e2d85&&_0x5e2d85['from']==_0x3f5406['from']&&_0x5e2d85['to']-_0x5e2d85['from']>_0x3fa0e6['length']+_0x1c58f1;){if(_0x28f78d['sliceDoc'](_0x5e2d85['to']-_0x3fa0e6['length'],_0x5e2d85['to'])==_0x3fa0e6)return!0x1;_0x5e2d85=_0x5e2d85['firstChild'];}return!0x0;}let _0x35e25f=_0x3f5406['to']==_0x5be36c&&_0x3f5406['parent'];if(!_0x35e25f)break;_0x3f5406=_0x35e25f;}return!0x1;}function canStartStringAt(_0x216e2b,_0x496ce8,_0x253786){let _0x126a89=_0x216e2b['charCategorizer'](_0x496ce8);if(_0x126a89(_0x216e2b['sliceDoc'](_0x496ce8-0x1,_0x496ce8))!=CharCategory['Word'])return _0x496ce8;for(let _0x329f19 of _0x253786){let _0x4b01cb=_0x496ce8-_0x329f19['length'];if(_0x216e2b['sliceDoc'](_0x4b01cb,_0x496ce8)==_0x329f19&&_0x126a89(_0x216e2b['sliceDoc'](_0x4b01cb-0x1,_0x4b01cb))!=CharCategory['Word'])return _0x4b01cb;}return-0x1;}function autocompletion(_0xdc734b={}){return[commitCharacters,completionState,completionConfig['of'](_0xdc734b),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],_0x412d14=>_0x412d14['facet'](completionConfig)['defaultKeymap']?[completionKeymap]:[]));class Stack{constructor(_0x554146,_0x1d4fe5,_0x39e785,_0x147afd,_0x3c506c,_0xfbe74f,_0x3a7d9b,_0x3c60d5,_0x5ce42d,_0x5239b4=0x0,_0x400722){this['p']=_0x554146,this['stack']=_0x1d4fe5,this['state']=_0x39e785,this['reducePos']=_0x147afd,this['pos']=_0x3c506c,this['score']=_0xfbe74f,this['buffer']=_0x3a7d9b,this['bufferBase']=_0x3c60d5,this['curContext']=_0x5ce42d,this['lookAhead']=_0x5239b4,this['parent']=_0x400722;}['toString'](){return'['+this['stack']['filter']((_0x46f362,_0x2e3756)=>_0x2e3756%0x3==0x0)['concat'](this['state'])+']@'+this['pos']+(this['score']?'!'+this['score']:'');}static['start'](_0x1affeb,_0x26a38d,_0x475359=0x0){let _0x2aaa81=_0x1affeb['parser']['context'];return new Stack(_0x1affeb,[],_0x26a38d,_0x475359,_0x475359,0x0,[],0x0,_0x2aaa81?new StackContext(_0x2aaa81,_0x2aaa81['start']):null,0x0,null);}get['context'](){return this['curContext']?this['curContext']['context']:null;}['pushState'](_0x3452a9,_0xbd2e2b){this['stack']['push'](this['state'],_0xbd2e2b,this['bufferBase']+this['buffer']['length']),this['state']=_0x3452a9;}['reduce'](_0x1cc57e){var _0x297061;let _0x3758ac=_0x1cc57e>>0x13,_0x1213f9=0xffff&_0x1cc57e,{parser:_0x40c09f}=this['p'],_0x298a1b=this['reducePos']<this['pos']-0x19;_0x298a1b&&this['setLookAhead'](this['pos']);let _0x28e06f=_0x40c09f['dynamicPrecedence'](_0x1213f9);if(_0x28e06f&&(this['score']+=_0x28e06f),0x0==_0x3758ac)return this['pushState'](_0x40c09f['getGoto'](this['state'],_0x1213f9,!0x0),this['reducePos']),_0x1213f9<_0x40c09f['minRepeatTerm']&&this['storeNode'](_0x1213f9,this['reducePos'],this['reducePos'],_0x298a1b?0x8:0x4,!0x0),void this['reduceContext'](_0x1213f9,this['reducePos']);let _0xbc0fd0=this['stack']['length']-0x3*(_0x3758ac-0x1)-(0x40000&_0x1cc57e?0x6:0x0),_0x4b0bde=_0xbc0fd0?this['stack'][_0xbc0fd0-0x2]:this['p']['ranges'][0x0]['from'],_0x4efd2e=this['reducePos']-_0x4b0bde;_0x4efd2e>=0x7d0&&!(null===(_0x297061=this['p']['parser']['nodeSet']['types'][_0x1213f9])||void 0x0===_0x297061?void 0x0:_0x297061['isAnonymous'])&&(_0x4b0bde==this['p']['lastBigReductionStart']?(this['p']['bigReductionCount']++,this['p']['lastBigReductionSize']=_0x4efd2e):this['p']['lastBigReductionSize']<_0x4efd2e&&(this['p']['bigReductionCount']=0x1,this['p']['lastBigReductionStart']=_0x4b0bde,this['p']['lastBigReductionSize']=_0x4efd2e));let _0x27551a=_0xbc0fd0?this['stack'][_0xbc0fd0-0x1]:0x0,_0x5ad2fb=this['bufferBase']+this['buffer']['length']-_0x27551a;if(_0x1213f9<_0x40c09f['minRepeatTerm']||0x20000&_0x1cc57e){let _0x4961cc=_0x40c09f['stateFlag'](this['state'],0x1)?this['pos']:this['reducePos'];this['storeNode'](_0x1213f9,_0x4b0bde,_0x4961cc,_0x5ad2fb+0x4,!0x0);}if(0x40000&_0x1cc57e)this['state']=this['stack'][_0xbc0fd0];else{let _0x569d28=this['stack'][_0xbc0fd0-0x3];this['state']=_0x40c09f['getGoto'](_0x569d28,_0x1213f9,!0x0);}for(;this['stack']['length']>_0xbc0fd0;)this['stack']['pop']();this['reduceContext'](_0x1213f9,_0x4b0bde);}['storeNode'](_0x236295,_0x518ba3,_0x5c9edd,_0x48e3cb=0x4,_0x113624=!0x1){if(0x0==_0x236295&&(!this['stack']['length']||this['stack'][this['stack']['length']-0x1]<this['buffer']['length']+this['bufferBase'])){let _0x25f616=this,_0x199bb2=this['buffer']['length'];if(0x0==_0x199bb2&&_0x25f616['parent']&&(_0x199bb2=_0x25f616['bufferBase']-_0x25f616['parent']['bufferBase'],_0x25f616=_0x25f616['parent']),_0x199bb2>0x0&&0x0==_0x25f616['buffer'][_0x199bb2-0x4]&&_0x25f616['buffer'][_0x199bb2-0x1]>-0x1){if(_0x518ba3==_0x5c9edd)return;if(_0x25f616['buffer'][_0x199bb2-0x2]>=_0x518ba3)return void(_0x25f616['buffer'][_0x199bb2-0x2]=_0x5c9edd);}}if(_0x113624&&this['pos']!=_0x5c9edd){let _0x53a10e=this['buffer']['length'];if(_0x53a10e>0x0&&(0x0!=this['buffer'][_0x53a10e-0x4]||this['buffer'][_0x53a10e-0x1]<0x0)){let _0xbffb72=!0x1;for(let _0x31644e=_0x53a10e;_0x31644e>0x0&&this['buffer'][_0x31644e-0x2]>_0x5c9edd;_0x31644e-=0x4)if(this['buffer'][_0x31644e-0x1]>=0x0){_0xbffb72=!0x0;break;}if(_0xbffb72){for(;_0x53a10e>0x0&&this['buffer'][_0x53a10e-0x2]>_0x5c9edd;)this['buffer'][_0x53a10e]=this['buffer'][_0x53a10e-0x4],this['buffer'][_0x53a10e+0x1]=this['buffer'][_0x53a10e-0x3],this['buffer'][_0x53a10e+0x2]=this['buffer'][_0x53a10e-0x2],this['buffer'][_0x53a10e+0x3]=this['buffer'][_0x53a10e-0x1],_0x53a10e-=0x4,_0x48e3cb>0x4&&(_0x48e3cb-=0x4);}}this['buffer'][_0x53a10e]=_0x236295,this['buffer'][_0x53a10e+0x1]=_0x518ba3,this['buffer'][_0x53a10e+0x2]=_0x5c9edd,this['buffer'][_0x53a10e+0x3]=_0x48e3cb;}else this['buffer']['push'](_0x236295,_0x518ba3,_0x5c9edd,_0x48e3cb);}['shift'](_0x497522,_0x40993d,_0x11de1b,_0x2d979c){if(0x20000&_0x497522)this['pushState'](0xffff&_0x497522,this['pos']);else{if(0x40000&_0x497522)this['pos']=_0x2d979c,this['shiftContext'](_0x40993d,_0x11de1b),_0x40993d<=this['p']['parser']['maxNode']&&this['buffer']['push'](_0x40993d,_0x11de1b,_0x2d979c,0x4);else{let _0x741113=_0x497522,{parser:_0x216839}=this['p'];(_0x2d979c>this['pos']||_0x40993d<=_0x216839['maxNode'])&&(this['pos']=_0x2d979c,_0x216839['stateFlag'](_0x741113,0x1)||(this['reducePos']=_0x2d979c)),this['pushState'](_0x741113,_0x11de1b),this['shiftContext'](_0x40993d,_0x11de1b),_0x40993d<=_0x216839['maxNode']&&this['buffer']['push'](_0x40993d,_0x11de1b,_0x2d979c,0x4);}}}['apply'](_0x30a333,_0x4e8087,_0x46557b,_0x5b6ff8){0x10000&_0x30a333?this['reduce'](_0x30a333):this['shift'](_0x30a333,_0x4e8087,_0x46557b,_0x5b6ff8);}['useNode'](_0x2f6893,_0xce816d){let _0x4eba94=this['p']['reused']['length']-0x1;(_0x4eba94<0x0||this['p']['reused'][_0x4eba94]!=_0x2f6893)&&(this['p']['reused']['push'](_0x2f6893),_0x4eba94++);let _0x316d2f=this['pos'];this['reducePos']=this['pos']=_0x316d2f+_0x2f6893['length'],this['pushState'](_0xce816d,_0x316d2f),this['buffer']['push'](_0x4eba94,_0x316d2f,this['reducePos'],-0x1),this['curContext']&&this['updateContext'](this['curContext']['tracker']['reuse'](this['curContext']['context'],_0x2f6893,this,this['p']['stream']['reset'](this['pos']-_0x2f6893['length'])));}['split'](){let _0x316faa=this,_0x42968d=_0x316faa['buffer']['length'];for(;_0x42968d>0x0&&_0x316faa['buffer'][_0x42968d-0x2]>_0x316faa['reducePos'];)_0x42968d-=0x4;let _0x1a08ed=_0x316faa['buffer']['slice'](_0x42968d),_0x4027c6=_0x316faa['bufferBase']+_0x42968d;for(;_0x316faa&&_0x4027c6==_0x316faa['bufferBase'];)_0x316faa=_0x316faa['parent'];return new Stack(this['p'],this['stack']['slice'](),this['state'],this['reducePos'],this['pos'],this['score'],_0x1a08ed,_0x4027c6,this['curContext'],this['lookAhead'],_0x316faa);}['recoverByDelete'](_0x52ad48,_0x114a71){let _0x48ccfd=_0x52ad48<=this['p']['parser']['maxNode'];_0x48ccfd&&this['storeNode'](_0x52ad48,this['pos'],_0x114a71,0x4),this['storeNode'](0x0,this['pos'],_0x114a71,_0x48ccfd?0x8:0x4),this['pos']=this['reducePos']=_0x114a71,this['score']-=0xbe;}['canShift'](_0x7e9754){for(let _0x55b263=new SimulatedStack(this);;){let _0x2a38b4=this['p']['parser']['stateSlot'](_0x55b263['state'],0x4)||this['p']['parser']['hasAction'](_0x55b263['state'],_0x7e9754);if(0x0==_0x2a38b4)return!0x1;if(!(0x10000&_0x2a38b4))return!0x0;_0x55b263['reduce'](_0x2a38b4);}}['recoverByInsert'](_0x314917){if(this['stack']['length']>=0x12c)return[];let _0x302713=this['p']['parser']['nextStates'](this['state']);if(_0x302713['length']>0x8||this['stack']['length']>=0x78){let _0x2d70c3=[];for(let _0x9dbef6,_0x284077=0x0;_0x284077<_0x302713['length'];_0x284077+=0x2)(_0x9dbef6=_0x302713[_0x284077+0x1])!=this['state']&&this['p']['parser']['hasAction'](_0x9dbef6,_0x314917)&&_0x2d70c3['push'](_0x302713[_0x284077],_0x9dbef6);if(this['stack']['length']<0x78)for(let _0x4d6038=0x0;_0x2d70c3['length']<0x8&&_0x4d6038<_0x302713['length'];_0x4d6038+=0x2){let _0x5d9f5c=_0x302713[_0x4d6038+0x1];_0x2d70c3['some']((_0x5db32b,_0x58e6af)=>0x1&_0x58e6af&&_0x5db32b==_0x5d9f5c)||_0x2d70c3['push'](_0x302713[_0x4d6038],_0x5d9f5c);}_0x302713=_0x2d70c3;}let _0x42b4e7=[];for(let _0x39e8b5=0x0;_0x39e8b5<_0x302713['length']&&_0x42b4e7['length']<0x4;_0x39e8b5+=0x2){let _0xf3ff5e=_0x302713[_0x39e8b5+0x1];if(_0xf3ff5e==this['state'])continue;let _0x2be71f=this['split']();_0x2be71f['pushState'](_0xf3ff5e,this['pos']),_0x2be71f['storeNode'](0x0,_0x2be71f['pos'],_0x2be71f['pos'],0x4,!0x0),_0x2be71f['shiftContext'](_0x302713[_0x39e8b5],this['pos']),_0x2be71f['reducePos']=this['pos'],_0x2be71f['score']-=0xc8,_0x42b4e7['push'](_0x2be71f);}return _0x42b4e7;}['forceReduce'](){let {parser:_0x3e1978}=this['p'],_0x41619b=_0x3e1978['stateSlot'](this['state'],0x5);if(!(0x10000&_0x41619b))return!0x1;if(!_0x3e1978['validAction'](this['state'],_0x41619b)){let _0x1a3bfa=_0x41619b>>0x13,_0x1b74a3=0xffff&_0x41619b,_0x471b45=this['stack']['length']-0x3*_0x1a3bfa;if(_0x471b45<0x0||_0x3e1978['getGoto'](this['stack'][_0x471b45],_0x1b74a3,!0x1)<0x0){let _0x1ac3a0=this['findForcedReduction']();if(null==_0x1ac3a0)return!0x1;_0x41619b=_0x1ac3a0;}this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['score']-=0x64;}return this['reducePos']=this['pos'],this['reduce'](_0x41619b),!0x0;}['findForcedReduction'](){let {parser:_0x23a02c}=this['p'],_0x334cce=[],_0x7cf2d9=(_0x59bf0c,_0x2d096c)=>{if(!_0x334cce['includes'](_0x59bf0c))return _0x334cce['push'](_0x59bf0c),_0x23a02c['allActions'](_0x59bf0c,_0x31297d=>{if(0x60000&_0x31297d);else{if(0x10000&_0x31297d){let _0x5daefd=(_0x31297d>>0x13)-_0x2d096c;if(_0x5daefd>0x1){let _0x4eeea0=0xffff&_0x31297d,_0x55961f=this['stack']['length']-0x3*_0x5daefd;if(_0x55961f>=0x0&&_0x23a02c['getGoto'](this['stack'][_0x55961f],_0x4eeea0,!0x1)>=0x0)return _0x5daefd<<0x13|0x10000|_0x4eeea0;}}else{let _0x4b46cf=_0x7cf2d9(_0x31297d,_0x2d096c+0x1);if(null!=_0x4b46cf)return _0x4b46cf;}}});};return _0x7cf2d9(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:_0x340619}=this['p'];return 0xffff==_0x340619['data'][_0x340619['stateSlot'](this['state'],0x1)]&&!_0x340619['stateSlot'](this['state'],0x4);}['restart'](){this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['state']=this['stack'][0x0],this['stack']['length']=0x0;}['sameState'](_0x21d30b){if(this['state']!=_0x21d30b['state']||this['stack']['length']!=_0x21d30b['stack']['length'])return!0x1;for(let _0x205df8=0x0;_0x205df8<this['stack']['length'];_0x205df8+=0x3)if(this['stack'][_0x205df8]!=_0x21d30b['stack'][_0x205df8])return!0x1;return!0x0;}get['parser'](){return this['p']['parser'];}['dialectEnabled'](_0x30e243){return this['p']['parser']['dialect']['flags'][_0x30e243];}['shiftContext'](_0x110acf,_0x582f36){this['curContext']&&this['updateContext'](this['curContext']['tracker']['shift'](this['curContext']['context'],_0x110acf,this,this['p']['stream']['reset'](_0x582f36)));}['reduceContext'](_0x44faa0,_0x1b3d12){this['curContext']&&this['updateContext'](this['curContext']['tracker']['reduce'](this['curContext']['context'],_0x44faa0,this,this['p']['stream']['reset'](_0x1b3d12)));}['emitContext'](){let _0x51215b=this['buffer']['length']-0x1;(_0x51215b<0x0||-0x3!=this['buffer'][_0x51215b])&&this['buffer']['push'](this['curContext']['hash'],this['pos'],this['pos'],-0x3);}['emitLookAhead'](){let _0x2dc307=this['buffer']['length']-0x1;(_0x2dc307<0x0||-0x4!=this['buffer'][_0x2dc307])&&this['buffer']['push'](this['lookAhead'],this['pos'],this['pos'],-0x4);}['updateContext'](_0x46f70a){if(_0x46f70a!=this['curContext']['context']){let _0x5a779d=new StackContext(this['curContext']['tracker'],_0x46f70a);_0x5a779d['hash']!=this['curContext']['hash']&&this['emitContext'](),this['curContext']=_0x5a779d;}}['setLookAhead'](_0x2ea952){_0x2ea952>this['lookAhead']&&(this['emitLookAhead'](),this['lookAhead']=_0x2ea952);}['close'](){this['curContext']&&this['curContext']['tracker']['strict']&&this['emitContext'](),this['lookAhead']>0x0&&this['emitLookAhead']();}}class StackContext{constructor(_0x5ac051,_0x3534dc){this['tracker']=_0x5ac051,this['context']=_0x3534dc,this['hash']=_0x5ac051['strict']?_0x5ac051['hash'](_0x3534dc):0x0;}}class SimulatedStack{constructor(_0x358587){this['start']=_0x358587,this['state']=_0x358587['state'],this['stack']=_0x358587['stack'],this['base']=this['stack']['length'];}['reduce'](_0x5c3b8f){let _0x175282=0xffff&_0x5c3b8f,_0x3ae3ea=_0x5c3b8f>>0x13;0x0==_0x3ae3ea?(this['stack']==this['start']['stack']&&(this['stack']=this['stack']['slice']()),this['stack']['push'](this['state'],0x0,0x0),this['base']+=0x3):this['base']-=0x3*(_0x3ae3ea-0x1);let _0x4204ae=this['start']['p']['parser']['getGoto'](this['stack'][this['base']-0x3],_0x175282,!0x0);this['state']=_0x4204ae;}}class StackBufferCursor{constructor(_0x5c7a32,_0x19ab6a,_0x523e2d){this['stack']=_0x5c7a32,this['pos']=_0x19ab6a,this['index']=_0x523e2d,this['buffer']=_0x5c7a32['buffer'],0x0==this['index']&&this['maybeNext']();}static['create'](_0x625441,_0x1c1262=_0x625441['bufferBase']+_0x625441['buffer']['length']){return new StackBufferCursor(_0x625441,_0x1c1262,_0x1c1262-_0x625441['bufferBase']);}['maybeNext'](){let _0x3f26ae=this['stack']['parent'];null!=_0x3f26ae&&(this['index']=this['stack']['bufferBase']-_0x3f26ae['bufferBase'],this['stack']=_0x3f26ae,this['buffer']=_0x3f26ae['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(_0x180c39,_0xdf2b8=Uint16Array){if('string'!=typeof _0x180c39)return _0x180c39;let _0x1c6590=null;for(let _0x479168=0x0,_0x1e2b9a=0x0;_0x479168<_0x180c39['length'];){let _0x3814e1=0x0;for(;;){let _0x31bf8a=_0x180c39['charCodeAt'](_0x479168++),_0x4fccb9=!0x1;if(0x7e==_0x31bf8a){_0x3814e1=0xffff;break;}_0x31bf8a>=0x5c&&_0x31bf8a--,_0x31bf8a>=0x22&&_0x31bf8a--;let _0xfdd54c=_0x31bf8a-0x20;if(_0xfdd54c>=0x2e&&(_0xfdd54c-=0x2e,_0x4fccb9=!0x0),_0x3814e1+=_0xfdd54c,_0x4fccb9)break;_0x3814e1*=0x2e;}_0x1c6590?_0x1c6590[_0x1e2b9a++]=_0x3814e1:_0x1c6590=new _0xdf2b8(_0x3814e1);}return _0x1c6590;}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(_0x58b538,_0x496d94){this['input']=_0x58b538,this['ranges']=_0x496d94,this['chunk']='',this['chunkOff']=0x0,this['chunk2']='',this['chunk2Pos']=0x0,this['next']=-0x1,this['token']=nullToken,this['rangeIndex']=0x0,this['pos']=this['chunkPos']=_0x496d94[0x0]['from'],this['range']=_0x496d94[0x0],this['end']=_0x496d94[_0x496d94['length']-0x1]['to'],this['readNext']();}['resolveOffset'](_0x1152d4,_0xdcf069){let _0x2c3641=this['range'],_0x2ad90f=this['rangeIndex'],_0xe6083b=this['pos']+_0x1152d4;for(;_0xe6083b<_0x2c3641['from'];){if(!_0x2ad90f)return null;let _0x3149f9=this['ranges'][--_0x2ad90f];_0xe6083b-=_0x2c3641['from']-_0x3149f9['to'],_0x2c3641=_0x3149f9;}for(;_0xdcf069<0x0?_0xe6083b>_0x2c3641['to']:_0xe6083b>=_0x2c3641['to'];){if(_0x2ad90f==this['ranges']['length']-0x1)return null;let _0x175a3d=this['ranges'][++_0x2ad90f];_0xe6083b+=_0x175a3d['from']-_0x2c3641['to'],_0x2c3641=_0x175a3d;}return _0xe6083b;}['clipPos'](_0xe22c6e){if(_0xe22c6e>=this['range']['from']&&_0xe22c6e<this['range']['to'])return _0xe22c6e;for(let _0x2786bd of this['ranges'])if(_0x2786bd['to']>_0xe22c6e)return Math['max'](_0xe22c6e,_0x2786bd['from']);return this['end'];}['peek'](_0x46e1cd){let _0x154a6f,_0x1d4547,_0x4e386f=this['chunkOff']+_0x46e1cd;if(_0x4e386f>=0x0&&_0x4e386f<this['chunk']['length'])_0x154a6f=this['pos']+_0x46e1cd,_0x1d4547=this['chunk']['charCodeAt'](_0x4e386f);else{let _0x1ef301=this['resolveOffset'](_0x46e1cd,0x1);if(null==_0x1ef301)return-0x1;if(_0x154a6f=_0x1ef301,_0x154a6f>=this['chunk2Pos']&&_0x154a6f<this['chunk2Pos']+this['chunk2']['length'])_0x1d4547=this['chunk2']['charCodeAt'](_0x154a6f-this['chunk2Pos']);else{let _0x2b8570=this['rangeIndex'],_0x562ded=this['range'];for(;_0x562ded['to']<=_0x154a6f;)_0x562ded=this['ranges'][++_0x2b8570];this['chunk2']=this['input']['chunk'](this['chunk2Pos']=_0x154a6f),_0x154a6f+this['chunk2']['length']>_0x562ded['to']&&(this['chunk2']=this['chunk2']['slice'](0x0,_0x562ded['to']-_0x154a6f)),_0x1d4547=this['chunk2']['charCodeAt'](0x0);}}return _0x154a6f>=this['token']['lookAhead']&&(this['token']['lookAhead']=_0x154a6f+0x1),_0x1d4547;}['acceptToken'](_0x4d9f92,_0x293a2e=0x0){let _0x5a789f=_0x293a2e?this['resolveOffset'](_0x293a2e,-0x1):this['pos'];if(null==_0x5a789f||_0x5a789f<this['token']['start'])throw new RangeError('Token\x20end\x20out\x20of\x20bounds');this['token']['value']=_0x4d9f92,this['token']['end']=_0x5a789f;}['acceptTokenTo'](_0x14cc87,_0x1327e0){this['token']['value']=_0x14cc87,this['token']['end']=_0x1327e0;}['getChunk'](){if(this['pos']>=this['chunk2Pos']&&this['pos']<this['chunk2Pos']+this['chunk2']['length']){let {chunk:_0x204963,chunkPos:_0x289eb4}=this;this['chunk']=this['chunk2'],this['chunkPos']=this['chunk2Pos'],this['chunk2']=_0x204963,this['chunk2Pos']=_0x289eb4,this['chunkOff']=this['pos']-this['chunkPos'];}else{this['chunk2']=this['chunk'],this['chunk2Pos']=this['chunkPos'];let _0x21af32=this['input']['chunk'](this['pos']),_0x17a1f3=this['pos']+_0x21af32['length'];this['chunk']=_0x17a1f3>this['range']['to']?_0x21af32['slice'](0x0,this['range']['to']-this['pos']):_0x21af32,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'](_0x38690e=0x1){for(this['chunkOff']+=_0x38690e;this['pos']+_0x38690e>=this['range']['to'];){if(this['rangeIndex']==this['ranges']['length']-0x1)return this['setDone']();_0x38690e-=this['range']['to']-this['pos'],this['range']=this['ranges'][++this['rangeIndex']],this['pos']=this['range']['from'];}return this['pos']+=_0x38690e,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'](_0x3b8139,_0x167ef8){if(_0x167ef8?(this['token']=_0x167ef8,_0x167ef8['start']=_0x3b8139,_0x167ef8['lookAhead']=_0x3b8139+0x1,_0x167ef8['value']=_0x167ef8['extended']=-0x1):this['token']=nullToken,this['pos']!=_0x3b8139){if(this['pos']=_0x3b8139,_0x3b8139==this['end'])return this['setDone'](),this;for(;_0x3b8139<this['range']['from'];)this['range']=this['ranges'][--this['rangeIndex']];for(;_0x3b8139>=this['range']['to'];)this['range']=this['ranges'][++this['rangeIndex']];_0x3b8139>=this['chunkPos']&&_0x3b8139<this['chunkPos']+this['chunk']['length']?this['chunkOff']=_0x3b8139-this['chunkPos']:(this['chunk']='',this['chunkOff']=0x0),this['readNext']();}return this;}['read'](_0x4945b2,_0x529b08){if(_0x4945b2>=this['chunkPos']&&_0x529b08<=this['chunkPos']+this['chunk']['length'])return this['chunk']['slice'](_0x4945b2-this['chunkPos'],_0x529b08-this['chunkPos']);if(_0x4945b2>=this['chunk2Pos']&&_0x529b08<=this['chunk2Pos']+this['chunk2']['length'])return this['chunk2']['slice'](_0x4945b2-this['chunk2Pos'],_0x529b08-this['chunk2Pos']);if(_0x4945b2>=this['range']['from']&&_0x529b08<=this['range']['to'])return this['input']['read'](_0x4945b2,_0x529b08);let _0x48336='';for(let _0x16777e of this['ranges']){if(_0x16777e['from']>=_0x529b08)break;_0x16777e['to']>_0x4945b2&&(_0x48336+=this['input']['read'](Math['max'](_0x16777e['from'],_0x4945b2),Math['min'](_0x16777e['to'],_0x529b08)));}return _0x48336;}}class TokenGroup{constructor(_0x1ec692,_0x664326){this['data']=_0x1ec692,this['id']=_0x664326;}['token'](_0x1484b9,_0x263eb6){let {parser:_0x3cafa7}=_0x263eb6['p'];readToken(this['data'],_0x1484b9,_0x263eb6,this['id'],_0x3cafa7['data'],_0x3cafa7['tokenPrecTable']);}}TokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class LocalTokenGroup{constructor(_0xabdb00,_0x262943,_0x13b1be){this['precTable']=_0x262943,this['elseToken']=_0x13b1be,this['data']='string'==typeof _0xabdb00?decodeArray(_0xabdb00):_0xabdb00;}['token'](_0x6c8a08,_0x59bca7){let _0x24b4aa=_0x6c8a08['pos'],_0x144deb=0x0;for(;;){let _0x4f207b=_0x6c8a08['next']<0x0,_0x1993fd=_0x6c8a08['resolveOffset'](0x1,0x1);if(readToken(this['data'],_0x6c8a08,_0x59bca7,0x0,this['data'],this['precTable']),_0x6c8a08['token']['value']>-0x1)break;if(null==this['elseToken'])return;if(_0x4f207b||_0x144deb++,null==_0x1993fd)break;_0x6c8a08['reset'](_0x1993fd,_0x6c8a08['token']);}_0x144deb&&(_0x6c8a08['reset'](_0x24b4aa,_0x6c8a08['token']),_0x6c8a08['acceptToken'](this['elseToken'],_0x144deb));}}LocalTokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class ExternalTokenizer{constructor(_0x321752,_0xa98f9a={}){this['token']=_0x321752,this['contextual']=!!_0xa98f9a['contextual'],this['fallback']=!!_0xa98f9a['fallback'],this['extend']=!!_0xa98f9a['extend'];}}function readToken(_0x2e0a0f,_0x5e68f1,_0x1eeba9,_0x131eff,_0x3b31be,_0x2d130f){let _0x587bae=0x0,_0x2b67bf=0x1<<_0x131eff,{dialect:_0x750c84}=_0x1eeba9['p']['parser'];t:for(;0x0!=(_0x2b67bf&_0x2e0a0f[_0x587bae]);){let _0x3b558a=_0x2e0a0f[_0x587bae+0x1];for(let _0x3c0745=_0x587bae+0x3;_0x3c0745<_0x3b558a;_0x3c0745+=0x2)if((_0x2e0a0f[_0x3c0745+0x1]&_0x2b67bf)>0x0){let _0x2e74ff=_0x2e0a0f[_0x3c0745];if(_0x750c84['allows'](_0x2e74ff)&&(-0x1==_0x5e68f1['token']['value']||_0x5e68f1['token']['value']==_0x2e74ff||overrides(_0x2e74ff,_0x5e68f1['token']['value'],_0x3b31be,_0x2d130f))){_0x5e68f1['acceptToken'](_0x2e74ff);break;}}let _0x30b8c0=_0x5e68f1['next'],_0x141ea3=0x0,_0x34bd69=_0x2e0a0f[_0x587bae+0x2];if(!(_0x5e68f1['next']<0x0&&_0x34bd69>_0x141ea3&&0xffff==_0x2e0a0f[_0x3b558a+0x3*_0x34bd69-0x3])){for(;_0x141ea3<_0x34bd69;){let _0x17715c=_0x141ea3+_0x34bd69>>0x1,_0x3b2b4b=_0x3b558a+_0x17715c+(_0x17715c<<0x1),_0x5de4d0=_0x2e0a0f[_0x3b2b4b],_0x29111a=_0x2e0a0f[_0x3b2b4b+0x1]||0x10000;if(_0x30b8c0<_0x5de4d0)_0x34bd69=_0x17715c;else{if(!(_0x30b8c0>=_0x29111a)){_0x587bae=_0x2e0a0f[_0x3b2b4b+0x2],_0x5e68f1['advance']();continue t;}_0x141ea3=_0x17715c+0x1;}}break;}_0x587bae=_0x2e0a0f[_0x3b558a+0x3*_0x34bd69-0x1];}}function findOffset(_0x4ce46f,_0xd501b1,_0x31a6b8){for(let _0x3cbf1f,_0x4aa797=_0xd501b1;0xffff!=(_0x3cbf1f=_0x4ce46f[_0x4aa797]);_0x4aa797++)if(_0x3cbf1f==_0x31a6b8)return _0x4aa797-_0xd501b1;return-0x1;}function overrides(_0x233e1b,_0x86fde0,_0x3691f1,_0x1bac1c){let _0xfc189a=findOffset(_0x3691f1,_0x1bac1c,_0x86fde0);return _0xfc189a<0x0||findOffset(_0x3691f1,_0x1bac1c,_0x233e1b)<_0xfc189a;}const verbose='undefined'!=typeof process&&process['env']&&/\bparse\b/['test'](process['env']['LOG']);let stackIDs=null;function cutAt(_0x35e089,_0x3130dd,_0x1bda0c){let _0x3afede=_0x35e089['cursor'](IterMode['IncludeAnonymous']);for(_0x3afede['moveTo'](_0x3130dd);;)if(!(_0x1bda0c<0x0?_0x3afede['childBefore'](_0x3130dd):_0x3afede['childAfter'](_0x3130dd)))for(;;){if((_0x1bda0c<0x0?_0x3afede['to']<_0x3130dd:_0x3afede['from']>_0x3130dd)&&!_0x3afede['type']['isError'])return _0x1bda0c<0x0?Math['max'](0x0,Math['min'](_0x3afede['to']-0x1,_0x3130dd-0x19)):Math['min'](_0x35e089['length'],Math['max'](_0x3afede['from']+0x1,_0x3130dd+0x19));if(_0x1bda0c<0x0?_0x3afede['prevSibling']():_0x3afede['nextSibling']())break;if(!_0x3afede['parent']())return _0x1bda0c<0x0?0x0:_0x35e089['length'];}}let FragmentCursor$1=class{constructor(_0x341a5c,_0x6b2083){this['fragments']=_0x341a5c,this['nodeSet']=_0x6b2083,this['i']=0x0,this['fragment']=null,this['safeFrom']=-0x1,this['safeTo']=-0x1,this['trees']=[],this['start']=[],this['index']=[],this['nextFragment']();}['nextFragment'](){let _0x8d6792=this['fragment']=this['i']==this['fragments']['length']?null:this['fragments'][this['i']++];if(_0x8d6792){for(this['safeFrom']=_0x8d6792['openStart']?cutAt(_0x8d6792['tree'],_0x8d6792['from']+_0x8d6792['offset'],0x1)-_0x8d6792['offset']:_0x8d6792['from'],this['safeTo']=_0x8d6792['openEnd']?cutAt(_0x8d6792['tree'],_0x8d6792['to']+_0x8d6792['offset'],-0x1)-_0x8d6792['offset']:_0x8d6792['to'];this['trees']['length'];)this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();this['trees']['push'](_0x8d6792['tree']),this['start']['push'](-_0x8d6792['offset']),this['index']['push'](0x0),this['nextStart']=this['safeFrom'];}else this['nextStart']=0x3b9aca00;}['nodeAt'](_0x5dec7d){if(_0x5dec7d<this['nextStart'])return null;for(;this['fragment']&&this['safeTo']<=_0x5dec7d;)this['nextFragment']();if(!this['fragment'])return null;for(;;){let _0x4d2189=this['trees']['length']-0x1;if(_0x4d2189<0x0)return this['nextFragment'](),null;let _0xc7ef74=this['trees'][_0x4d2189],_0x43c9fc=this['index'][_0x4d2189];if(_0x43c9fc==_0xc7ef74['children']['length']){this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();continue;}let _0x43cf22=_0xc7ef74['children'][_0x43c9fc],_0x10cb20=this['start'][_0x4d2189]+_0xc7ef74['positions'][_0x43c9fc];if(_0x10cb20>_0x5dec7d)return this['nextStart']=_0x10cb20,null;if(_0x43cf22 instanceof Tree){if(_0x10cb20==_0x5dec7d){if(_0x10cb20<this['safeFrom'])return null;let _0x2c3c83=_0x10cb20+_0x43cf22['length'];if(_0x2c3c83<=this['safeTo']){let _0xb9ba62=_0x43cf22['prop'](NodeProp['lookAhead']);if(!_0xb9ba62||_0x2c3c83+_0xb9ba62<this['fragment']['to'])return _0x43cf22;}}this['index'][_0x4d2189]++,_0x10cb20+_0x43cf22['length']>=Math['max'](this['safeFrom'],_0x5dec7d)&&(this['trees']['push'](_0x43cf22),this['start']['push'](_0x10cb20),this['index']['push'](0x0));}else this['index'][_0x4d2189]++,this['nextStart']=_0x10cb20+_0x43cf22['length'];}}};class TokenCache{constructor(_0x34662c,_0x397feb){this['stream']=_0x397feb,this['tokens']=[],this['mainToken']=null,this['actions']=[],this['tokens']=_0x34662c['tokenizers']['map'](_0x539ff3=>new CachedToken());}['getActions'](_0xd9affa){let _0x37a375=0x0,_0x18b633=null,{parser:_0x4a5fa3}=_0xd9affa['p'],{tokenizers:_0x1af3fb}=_0x4a5fa3,_0x506ee2=_0x4a5fa3['stateSlot'](_0xd9affa['state'],0x3),_0x2919ec=_0xd9affa['curContext']?_0xd9affa['curContext']['hash']:0x0,_0xbfb306=0x0;for(let _0xda89a7=0x0;_0xda89a7<_0x1af3fb['length'];_0xda89a7++){if(!(0x1<<_0xda89a7&_0x506ee2))continue;let _0x1f9293=_0x1af3fb[_0xda89a7],_0x4ed5eb=this['tokens'][_0xda89a7];if((!_0x18b633||_0x1f9293['fallback'])&&((_0x1f9293['contextual']||_0x4ed5eb['start']!=_0xd9affa['pos']||_0x4ed5eb['mask']!=_0x506ee2||_0x4ed5eb['context']!=_0x2919ec)&&(this['updateCachedToken'](_0x4ed5eb,_0x1f9293,_0xd9affa),_0x4ed5eb['mask']=_0x506ee2,_0x4ed5eb['context']=_0x2919ec),_0x4ed5eb['lookAhead']>_0x4ed5eb['end']+0x19&&(_0xbfb306=Math['max'](_0x4ed5eb['lookAhead'],_0xbfb306)),0x0!=_0x4ed5eb['value'])){let _0xb0b858=_0x37a375;if(_0x4ed5eb['extended']>-0x1&&(_0x37a375=this['addActions'](_0xd9affa,_0x4ed5eb['extended'],_0x4ed5eb['end'],_0x37a375)),_0x37a375=this['addActions'](_0xd9affa,_0x4ed5eb['value'],_0x4ed5eb['end'],_0x37a375),!_0x1f9293['extend']&&(_0x18b633=_0x4ed5eb,_0x37a375>_0xb0b858))break;}}for(;this['actions']['length']>_0x37a375;)this['actions']['pop']();return _0xbfb306&&_0xd9affa['setLookAhead'](_0xbfb306),_0x18b633||_0xd9affa['pos']!=this['stream']['end']||(_0x18b633=new CachedToken(),_0x18b633['value']=_0xd9affa['p']['parser']['eofTerm'],_0x18b633['start']=_0x18b633['end']=_0xd9affa['pos'],_0x37a375=this['addActions'](_0xd9affa,_0x18b633['value'],_0x18b633['end'],_0x37a375)),this['mainToken']=_0x18b633,this['actions'];}['getMainToken'](_0x5ce235){if(this['mainToken'])return this['mainToken'];let _0x43fa66=new CachedToken(),{pos:_0x4680bc,p:_0x228ff7}=_0x5ce235;return _0x43fa66['start']=_0x4680bc,_0x43fa66['end']=Math['min'](_0x4680bc+0x1,_0x228ff7['stream']['end']),_0x43fa66['value']=_0x4680bc==_0x228ff7['stream']['end']?_0x228ff7['parser']['eofTerm']:0x0,_0x43fa66;}['updateCachedToken'](_0x23919f,_0x4726e6,_0x4a3dce){let _0x43b4d4=this['stream']['clipPos'](_0x4a3dce['pos']);if(_0x4726e6['token'](this['stream']['reset'](_0x43b4d4,_0x23919f),_0x4a3dce),_0x23919f['value']>-0x1){let {parser:_0x2ea6da}=_0x4a3dce['p'];for(let _0x485dcf=0x0;_0x485dcf<_0x2ea6da['specialized']['length'];_0x485dcf++)if(_0x2ea6da['specialized'][_0x485dcf]==_0x23919f['value']){let _0x4c9207=_0x2ea6da['specializers'][_0x485dcf](this['stream']['read'](_0x23919f['start'],_0x23919f['end']),_0x4a3dce);if(_0x4c9207>=0x0&&_0x4a3dce['p']['parser']['dialect']['allows'](_0x4c9207>>0x1)){0x1&_0x4c9207?_0x23919f['extended']=_0x4c9207>>0x1:_0x23919f['value']=_0x4c9207>>0x1;break;}}}else _0x23919f['value']=0x0,_0x23919f['end']=this['stream']['clipPos'](_0x43b4d4+0x1);}['putAction'](_0xcc3511,_0x399cd7,_0x37f7b7,_0x400c81){for(let _0x182d13=0x0;_0x182d13<_0x400c81;_0x182d13+=0x3)if(this['actions'][_0x182d13]==_0xcc3511)return _0x400c81;return this['actions'][_0x400c81++]=_0xcc3511,this['actions'][_0x400c81++]=_0x399cd7,this['actions'][_0x400c81++]=_0x37f7b7,_0x400c81;}['addActions'](_0x29bb2b,_0x1af81c,_0x1cb02d,_0x4b5acd){let {state:_0x21f1f4}=_0x29bb2b,{parser:_0x48281a}=_0x29bb2b['p'],{data:_0xba8f2d}=_0x48281a;for(let _0x3d383f=0x0;_0x3d383f<0x2;_0x3d383f++)for(let _0x5c8a48=_0x48281a['stateSlot'](_0x21f1f4,_0x3d383f?0x2:0x1);;_0x5c8a48+=0x3){if(0xffff==_0xba8f2d[_0x5c8a48]){if(0x1!=_0xba8f2d[_0x5c8a48+0x1]){0x0==_0x4b5acd&&0x2==_0xba8f2d[_0x5c8a48+0x1]&&(_0x4b5acd=this['putAction'](pair(_0xba8f2d,_0x5c8a48+0x2),_0x1af81c,_0x1cb02d,_0x4b5acd));break;}_0x5c8a48=pair(_0xba8f2d,_0x5c8a48+0x2);}_0xba8f2d[_0x5c8a48]==_0x1af81c&&(_0x4b5acd=this['putAction'](pair(_0xba8f2d,_0x5c8a48+0x1),_0x1af81c,_0x1cb02d,_0x4b5acd));}return _0x4b5acd;}}class Parse{constructor(_0x5d8f95,_0x42f138,_0x2f20d6,_0x2ee575){this['parser']=_0x5d8f95,this['input']=_0x42f138,this['ranges']=_0x2ee575,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(_0x42f138,_0x2ee575),this['tokens']=new TokenCache(_0x5d8f95,this['stream']),this['topTerm']=_0x5d8f95['top'][0x1];let {from:_0x54f14f}=_0x2ee575[0x0];this['stacks']=[Stack['start'](this,_0x5d8f95['top'][0x0],_0x54f14f)],this['fragments']=_0x2f20d6['length']&&this['stream']['end']-_0x54f14f>0x4*_0x5d8f95['bufferLength']?new FragmentCursor$1(_0x2f20d6,_0x5d8f95['nodeSet']):null;}get['parsedPos'](){return this['minStackPos'];}['advance'](){let _0x744b05,_0x4efb30,_0x448a87=this['stacks'],_0x231867=this['minStackPos'],_0x1a6dab=this['stacks']=[];if(this['bigReductionCount']>0x12c&&0x1==_0x448a87['length']){let [_0x354924]=_0x448a87;for(;_0x354924['forceReduce']()&&_0x354924['stack']['length']&&_0x354924['stack'][_0x354924['stack']['length']-0x2]>=this['lastBigReductionStart'];);this['bigReductionCount']=this['lastBigReductionSize']=0x0;}for(let _0x3414e=0x0;_0x3414e<_0x448a87['length'];_0x3414e++){let _0x4f9e6e=_0x448a87[_0x3414e];for(;;){if(this['tokens']['mainToken']=null,_0x4f9e6e['pos']>_0x231867)_0x1a6dab['push'](_0x4f9e6e);else{if(this['advanceStack'](_0x4f9e6e,_0x1a6dab,_0x448a87))continue;{_0x744b05||(_0x744b05=[],_0x4efb30=[]),_0x744b05['push'](_0x4f9e6e);let _0x454766=this['tokens']['getMainToken'](_0x4f9e6e);_0x4efb30['push'](_0x454766['value'],_0x454766['end']);}}break;}}if(!_0x1a6dab['length']){let _0x2dca31=_0x744b05&&findFinished(_0x744b05);if(_0x2dca31)return verbose&&console['log']('Finish\x20with\x20'+this['stackID'](_0x2dca31)),this['stackToTree'](_0x2dca31);if(this['parser']['strict'])throw verbose&&_0x744b05&&console['log']('Stuck\x20with\x20token\x20'+(this['tokens']['mainToken']?this['parser']['getName'](this['tokens']['mainToken']['value']):'none')),new SyntaxError('No\x20parse\x20at\x20'+_0x231867);this['recovering']||(this['recovering']=0x5);}if(this['recovering']&&_0x744b05){let _0x229e7b=null!=this['stoppedAt']&&_0x744b05[0x0]['pos']>this['stoppedAt']?_0x744b05[0x0]:this['runRecovery'](_0x744b05,_0x4efb30,_0x1a6dab);if(_0x229e7b)return verbose&&console['log']('Force-finish\x20'+this['stackID'](_0x229e7b)),this['stackToTree'](_0x229e7b['forceAll']());}if(this['recovering']){let _0x4fdb61=0x1==this['recovering']?0x1:0x3*this['recovering'];if(_0x1a6dab['length']>_0x4fdb61){for(_0x1a6dab['sort']((_0x29ef6f,_0xabc6c7)=>_0xabc6c7['score']-_0x29ef6f['score']);_0x1a6dab['length']>_0x4fdb61;)_0x1a6dab['pop']();}_0x1a6dab['some'](_0xd25c74=>_0xd25c74['reducePos']>_0x231867)&&this['recovering']--;}else{if(_0x1a6dab['length']>0x1){t:for(let _0x4b17b2=0x0;_0x4b17b2<_0x1a6dab['length']-0x1;_0x4b17b2++){let _0x1d2a0b=_0x1a6dab[_0x4b17b2];for(let _0x87dc58=_0x4b17b2+0x1;_0x87dc58<_0x1a6dab['length'];_0x87dc58++){let _0x19d1f2=_0x1a6dab[_0x87dc58];if(_0x1d2a0b['sameState'](_0x19d1f2)||_0x1d2a0b['buffer']['length']>0x1f4&&_0x19d1f2['buffer']['length']>0x1f4){if(!((_0x1d2a0b['score']-_0x19d1f2['score']||_0x1d2a0b['buffer']['length']-_0x19d1f2['buffer']['length'])>0x0)){_0x1a6dab['splice'](_0x4b17b2--,0x1);continue t;}_0x1a6dab['splice'](_0x87dc58--,0x1);}}}_0x1a6dab['length']>0xc&&_0x1a6dab['splice'](0xc,_0x1a6dab['length']-0xc);}}this['minStackPos']=_0x1a6dab[0x0]['pos'];for(let _0xa62a4=0x1;_0xa62a4<_0x1a6dab['length'];_0xa62a4++)_0x1a6dab[_0xa62a4]['pos']<this['minStackPos']&&(this['minStackPos']=_0x1a6dab[_0xa62a4]['pos']);return null;}['stopAt'](_0x3f16e0){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x3f16e0)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x3f16e0;}['advanceStack'](_0x590402,_0x2bb157,_0x2da34e){let _0x1352b1=_0x590402['pos'],{parser:_0x35f824}=this,_0x40528d=verbose?this['stackID'](_0x590402)+'\x20->\x20':'';if(null!=this['stoppedAt']&&_0x1352b1>this['stoppedAt'])return _0x590402['forceReduce']()?_0x590402:null;if(this['fragments']){let _0x8e5f30=_0x590402['curContext']&&_0x590402['curContext']['tracker']['strict'],_0x57c6e0=_0x8e5f30?_0x590402['curContext']['hash']:0x0;for(let _0x1f7a7d=this['fragments']['nodeAt'](_0x1352b1);_0x1f7a7d;){let _0x59af82=this['parser']['nodeSet']['types'][_0x1f7a7d['type']['id']]==_0x1f7a7d['type']?_0x35f824['getGoto'](_0x590402['state'],_0x1f7a7d['type']['id']):-0x1;if(_0x59af82>-0x1&&_0x1f7a7d['length']&&(!_0x8e5f30||(_0x1f7a7d['prop'](NodeProp['contextHash'])||0x0)==_0x57c6e0))return _0x590402['useNode'](_0x1f7a7d,_0x59af82),verbose&&console['log'](_0x40528d+this['stackID'](_0x590402)+('\x20(via\x20reuse\x20of\x20'+_0x35f824['getName'](_0x1f7a7d['type']['id'])+')')),!0x0;if(!(_0x1f7a7d instanceof Tree)||0x0==_0x1f7a7d['children']['length']||_0x1f7a7d['positions'][0x0]>0x0)break;let _0x4086f4=_0x1f7a7d['children'][0x0];if(!(_0x4086f4 instanceof Tree&&0x0==_0x1f7a7d['positions'][0x0]))break;_0x1f7a7d=_0x4086f4;}}let _0x63e955=_0x35f824['stateSlot'](_0x590402['state'],0x4);if(_0x63e955>0x0)return _0x590402['reduce'](_0x63e955),verbose&&console['log'](_0x40528d+this['stackID'](_0x590402)+('\x20(via\x20always-reduce\x20'+_0x35f824['getName'](0xffff&_0x63e955)+')')),!0x0;if(_0x590402['stack']['length']>=0x20d0){for(;_0x590402['stack']['length']>0x1770&&_0x590402['forceReduce'](););}let _0x4ddd7a=this['tokens']['getActions'](_0x590402);for(let _0x3b1d23=0x0;_0x3b1d23<_0x4ddd7a['length'];){let _0x49ddfb=_0x4ddd7a[_0x3b1d23++],_0x26d3cb=_0x4ddd7a[_0x3b1d23++],_0x319487=_0x4ddd7a[_0x3b1d23++],_0x181734=_0x3b1d23==_0x4ddd7a['length']||!_0x2da34e,_0x4041fa=_0x181734?_0x590402:_0x590402['split'](),_0x3f9ca8=this['tokens']['mainToken'];if(_0x4041fa['apply'](_0x49ddfb,_0x26d3cb,_0x3f9ca8?_0x3f9ca8['start']:_0x4041fa['pos'],_0x319487),verbose&&console['log'](_0x40528d+this['stackID'](_0x4041fa)+('\x20(via\x20'+(0x10000&_0x49ddfb?'reduce\x20of\x20'+_0x35f824['getName'](0xffff&_0x49ddfb):'shift')+'\x20for\x20'+_0x35f824['getName'](_0x26d3cb)+'\x20@\x20'+_0x1352b1+(_0x4041fa==_0x590402?'':',\x20split')+')')),_0x181734)return!0x0;_0x4041fa['pos']>_0x1352b1?_0x2bb157['push'](_0x4041fa):_0x2da34e['push'](_0x4041fa);}return!0x1;}['advanceFully'](_0x4deb87,_0x21a53c){let _0x154179=_0x4deb87['pos'];for(;;){if(!this['advanceStack'](_0x4deb87,null,null))return!0x1;if(_0x4deb87['pos']>_0x154179)return pushStackDedup(_0x4deb87,_0x21a53c),!0x0;}}['runRecovery'](_0x512b83,_0xe33d3e,_0x41c41f){let _0x42afa8=null,_0x113620=!0x1;for(let _0x2be7ae=0x0;_0x2be7ae<_0x512b83['length'];_0x2be7ae++){let _0x40b73a=_0x512b83[_0x2be7ae],_0x1ac848=_0xe33d3e[_0x2be7ae<<0x1],_0x3cc04a=_0xe33d3e[0x1+(_0x2be7ae<<0x1)],_0x36b31e=verbose?this['stackID'](_0x40b73a)+'\x20->\x20':'';if(_0x40b73a['deadEnd']){if(_0x113620)continue;if(_0x113620=!0x0,_0x40b73a['restart'](),verbose&&console['log'](_0x36b31e+this['stackID'](_0x40b73a)+'\x20(restarted)'),this['advanceFully'](_0x40b73a,_0x41c41f))continue;}let _0x2ff9f4=_0x40b73a['split'](),_0xb51db=_0x36b31e;for(let _0x55be03=0x0;_0x55be03<0xa&&_0x2ff9f4['forceReduce']();_0x55be03++){if(verbose&&console['log'](_0xb51db+this['stackID'](_0x2ff9f4)+'\x20(via\x20force-reduce)'),this['advanceFully'](_0x2ff9f4,_0x41c41f))break;verbose&&(_0xb51db=this['stackID'](_0x2ff9f4)+'\x20->\x20');}for(let _0x594014 of _0x40b73a['recoverByInsert'](_0x1ac848))verbose&&console['log'](_0x36b31e+this['stackID'](_0x594014)+'\x20(via\x20recover-insert)'),this['advanceFully'](_0x594014,_0x41c41f);this['stream']['end']>_0x40b73a['pos']?(_0x3cc04a==_0x40b73a['pos']&&(_0x3cc04a++,_0x1ac848=0x0),_0x40b73a['recoverByDelete'](_0x1ac848,_0x3cc04a),verbose&&console['log'](_0x36b31e+this['stackID'](_0x40b73a)+('\x20(via\x20recover-delete\x20'+this['parser']['getName'](_0x1ac848)+')')),pushStackDedup(_0x40b73a,_0x41c41f)):(!_0x42afa8||_0x42afa8['score']<_0x40b73a['score'])&&(_0x42afa8=_0x40b73a);}return _0x42afa8;}['stackToTree'](_0x3fab75){return _0x3fab75['close'](),Tree['build']({'buffer':StackBufferCursor['create'](_0x3fab75),'nodeSet':this['parser']['nodeSet'],'topID':this['topTerm'],'maxBufferLength':this['parser']['bufferLength'],'reused':this['reused'],'start':this['ranges'][0x0]['from'],'length':_0x3fab75['pos']-this['ranges'][0x0]['from'],'minRepeatType':this['parser']['minRepeatTerm']});}['stackID'](_0x59750e){let _0x37550f=(stackIDs||(stackIDs=new WeakMap()))['get'](_0x59750e);return _0x37550f||stackIDs['set'](_0x59750e,_0x37550f=String['fromCodePoint'](this['nextStackID']++)),_0x37550f+_0x59750e;}}function pushStackDedup(_0x22925e,_0x36dedd){for(let _0x1959b2=0x0;_0x1959b2<_0x36dedd['length'];_0x1959b2++){let _0x93623d=_0x36dedd[_0x1959b2];if(_0x93623d['pos']==_0x22925e['pos']&&_0x93623d['sameState'](_0x22925e))return void(_0x36dedd[_0x1959b2]['score']<_0x22925e['score']&&(_0x36dedd[_0x1959b2]=_0x22925e));}_0x36dedd['push'](_0x22925e);}class Dialect{constructor(_0x2152d6,_0x433b21,_0x54c45b){this['source']=_0x2152d6,this['flags']=_0x433b21,this['disabled']=_0x54c45b;}['allows'](_0x5f5ae9){return!this['disabled']||0x0==this['disabled'][_0x5f5ae9];}}const id=_0x2e8885=>_0x2e8885;class ContextTracker{constructor(_0x9716ff){this['start']=_0x9716ff['start'],this['shift']=_0x9716ff['shift']||id,this['reduce']=_0x9716ff['reduce']||id,this['reuse']=_0x9716ff['reuse']||id,this['hash']=_0x9716ff['hash']||(()=>0x0),this['strict']=!0x1!==_0x9716ff['strict'];}}class LRParser extends Parser{constructor(_0x196090){if(super(),this['wrappers']=[],0xe!=_0x196090['version'])throw new RangeError('Parser\x20version\x20('+_0x196090['version']+')\x20doesn\x27t\x20match\x20runtime\x20version\x20(14)');let _0x5dc341=_0x196090['nodeNames']['split']('\x20');this['minRepeatTerm']=_0x5dc341['length'];for(let _0x479a86=0x0;_0x479a86<_0x196090['repeatNodeCount'];_0x479a86++)_0x5dc341['push']('');let _0xaa1ba2=Object['keys'](_0x196090['topRules'])['map'](_0x4d8b43=>_0x196090['topRules'][_0x4d8b43][0x1]),_0x5ca949=[];for(let _0x5924b7=0x0;_0x5924b7<_0x5dc341['length'];_0x5924b7++)_0x5ca949['push']([]);function _0x4a9722(_0xc0d40c,_0x31cf71,_0x266827){_0x5ca949[_0xc0d40c]['push']([_0x31cf71,_0x31cf71['deserialize'](String(_0x266827))]);}if(_0x196090['nodeProps'])for(let _0x315d5c of _0x196090['nodeProps']){let _0x48424a=_0x315d5c[0x0];'string'==typeof _0x48424a&&(_0x48424a=NodeProp[_0x48424a]);for(let _0x372f66=0x1;_0x372f66<_0x315d5c['length'];){let _0x390c5b=_0x315d5c[_0x372f66++];if(_0x390c5b>=0x0)_0x4a9722(_0x390c5b,_0x48424a,_0x315d5c[_0x372f66++]);else{let _0x360947=_0x315d5c[_0x372f66+-_0x390c5b];for(let _0x347b15=-_0x390c5b;_0x347b15>0x0;_0x347b15--)_0x4a9722(_0x315d5c[_0x372f66++],_0x48424a,_0x360947);_0x372f66++;}}}this['nodeSet']=new NodeSet(_0x5dc341['map']((_0x5109e5,_0x2ccf53)=>NodeType['define']({'name':_0x2ccf53>=this['minRepeatTerm']?void 0x0:_0x5109e5,'id':_0x2ccf53,'props':_0x5ca949[_0x2ccf53],'top':_0xaa1ba2['indexOf'](_0x2ccf53)>-0x1,'error':0x0==_0x2ccf53,'skipped':_0x196090['skippedNodes']&&_0x196090['skippedNodes']['indexOf'](_0x2ccf53)>-0x1}))),_0x196090['propSources']&&(this['nodeSet']=this['nodeSet']['extend'](..._0x196090['propSources'])),this['strict']=!0x1,this['bufferLength']=DefaultBufferLength;let _0x58bde3=decodeArray(_0x196090['tokenData']);this['context']=_0x196090['context'],this['specializerSpecs']=_0x196090['specialized']||[],this['specialized']=new Uint16Array(this['specializerSpecs']['length']);for(let _0x561145=0x0;_0x561145<this['specializerSpecs']['length'];_0x561145++)this['specialized'][_0x561145]=this['specializerSpecs'][_0x561145]['term'];this['specializers']=this['specializerSpecs']['map'](getSpecializer),this['states']=decodeArray(_0x196090['states'],Uint32Array),this['data']=decodeArray(_0x196090['stateData']),this['goto']=decodeArray(_0x196090['goto']),this['maxTerm']=_0x196090['maxTerm'],this['tokenizers']=_0x196090['tokenizers']['map'](_0x3475e4=>'number'==typeof _0x3475e4?new TokenGroup(_0x58bde3,_0x3475e4):_0x3475e4),this['topRules']=_0x196090['topRules'],this['dialects']=_0x196090['dialects']||{},this['dynamicPrecedences']=_0x196090['dynamicPrecedences']||null,this['tokenPrecTable']=_0x196090['tokenPrec'],this['termNames']=_0x196090['termNames']||null,this['maxNode']=this['nodeSet']['types']['length']-0x1,this['dialect']=this['parseDialect'](),this['top']=this['topRules'][Object['keys'](this['topRules'])[0x0]];}['createParse'](_0x393e61,_0x4e04a0,_0x569444){let _0x383409=new Parse(this,_0x393e61,_0x4e04a0,_0x569444);for(let _0xe794e9 of this['wrappers'])_0x383409=_0xe794e9(_0x383409,_0x393e61,_0x4e04a0,_0x569444);return _0x383409;}['getGoto'](_0xeac352,_0x26c362,_0x1b8a91=!0x1){let _0x3a79d2=this['goto'];if(_0x26c362>=_0x3a79d2[0x0])return-0x1;for(let _0x43ca45=_0x3a79d2[_0x26c362+0x1];;){let _0x48ad79=_0x3a79d2[_0x43ca45++],_0x4a7304=0x1&_0x48ad79,_0x22a48f=_0x3a79d2[_0x43ca45++];if(_0x4a7304&&_0x1b8a91)return _0x22a48f;for(let _0x251e33=_0x43ca45+(_0x48ad79>>0x1);_0x43ca45<_0x251e33;_0x43ca45++)if(_0x3a79d2[_0x43ca45]==_0xeac352)return _0x22a48f;if(_0x4a7304)return-0x1;}}['hasAction'](_0x16a71a,_0x10de5e){let _0x54f20c=this['data'];for(let _0x37408d=0x0;_0x37408d<0x2;_0x37408d++)for(let _0x45b4b7,_0x327d64=this['stateSlot'](_0x16a71a,_0x37408d?0x2:0x1);;_0x327d64+=0x3){if(0xffff==(_0x45b4b7=_0x54f20c[_0x327d64])){if(0x1!=_0x54f20c[_0x327d64+0x1]){if(0x2==_0x54f20c[_0x327d64+0x1])return pair(_0x54f20c,_0x327d64+0x2);break;}_0x45b4b7=_0x54f20c[_0x327d64=pair(_0x54f20c,_0x327d64+0x2)];}if(_0x45b4b7==_0x10de5e||0x0==_0x45b4b7)return pair(_0x54f20c,_0x327d64+0x1);}return 0x0;}['stateSlot'](_0x1332b0,_0x4977c9){return this['states'][0x6*_0x1332b0+_0x4977c9];}['stateFlag'](_0x4595d8,_0x217c61){return(this['stateSlot'](_0x4595d8,0x0)&_0x217c61)>0x0;}['validAction'](_0x253543,_0x8cfa23){return!!this['allActions'](_0x253543,_0x36b8cc=>_0x36b8cc==_0x8cfa23||null);}['allActions'](_0x4af6b9,_0x564b75){let _0x4ae7c5=this['stateSlot'](_0x4af6b9,0x4),_0x2b53cc=_0x4ae7c5?_0x564b75(_0x4ae7c5):void 0x0;for(let _0x4df334=this['stateSlot'](_0x4af6b9,0x1);null==_0x2b53cc;_0x4df334+=0x3){if(0xffff==this['data'][_0x4df334]){if(0x1!=this['data'][_0x4df334+0x1])break;_0x4df334=pair(this['data'],_0x4df334+0x2);}_0x2b53cc=_0x564b75(pair(this['data'],_0x4df334+0x1));}return _0x2b53cc;}['nextStates'](_0x17bebd){let _0x511f90=[];for(let _0x3b9d72=this['stateSlot'](_0x17bebd,0x1);;_0x3b9d72+=0x3){if(0xffff==this['data'][_0x3b9d72]){if(0x1!=this['data'][_0x3b9d72+0x1])break;_0x3b9d72=pair(this['data'],_0x3b9d72+0x2);}if(!(0x1&this['data'][_0x3b9d72+0x2])){let _0x34a340=this['data'][_0x3b9d72+0x1];_0x511f90['some']((_0x29d760,_0x4ffa6e)=>0x1&_0x4ffa6e&&_0x29d760==_0x34a340)||_0x511f90['push'](this['data'][_0x3b9d72],_0x34a340);}}return _0x511f90;}['configure'](_0x5a3eab){let _0x285f47=Object['assign'](Object['create'](LRParser['prototype']),this);if(_0x5a3eab['props']&&(_0x285f47['nodeSet']=this['nodeSet']['extend'](..._0x5a3eab['props'])),_0x5a3eab['top']){let _0x1fc6e5=this['topRules'][_0x5a3eab['top']];if(!_0x1fc6e5)throw new RangeError('Invalid\x20top\x20rule\x20name\x20'+_0x5a3eab['top']);_0x285f47['top']=_0x1fc6e5;}return _0x5a3eab['tokenizers']&&(_0x285f47['tokenizers']=this['tokenizers']['map'](t=>{let _0x42509f=_0x5a3eab['tokenizers']['find'](_0x2561d3=>_0x2561d3['from']==t);return _0x42509f?_0x42509f['to']:t;})),_0x5a3eab['specializers']&&(_0x285f47['specializers']=this['specializers']['slice'](),_0x285f47['specializerSpecs']=this['specializerSpecs']['map']((_0x13885a,_0xbb6516)=>{let _0x41b737=_0x5a3eab['specializers']['find'](_0x16f007=>_0x16f007['from']==_0x13885a['external']);if(!_0x41b737)return _0x13885a;let _0x29b977=Object['assign'](Object['assign']({},_0x13885a),{'external':_0x41b737['to']});return _0x285f47['specializers'][_0xbb6516]=getSpecializer(_0x29b977),_0x29b977;})),_0x5a3eab['contextTracker']&&(_0x285f47['context']=_0x5a3eab['contextTracker']),_0x5a3eab['dialect']&&(_0x285f47['dialect']=this['parseDialect'](_0x5a3eab['dialect'])),null!=_0x5a3eab['strict']&&(_0x285f47['strict']=_0x5a3eab['strict']),_0x5a3eab['wrap']&&(_0x285f47['wrappers']=_0x285f47['wrappers']['concat'](_0x5a3eab['wrap'])),null!=_0x5a3eab['bufferLength']&&(_0x285f47['bufferLength']=_0x5a3eab['bufferLength']),_0x285f47;}['hasWrappers'](){return this['wrappers']['length']>0x0;}['getName'](_0x3d1507){return this['termNames']?this['termNames'][_0x3d1507]:String(_0x3d1507<=this['maxNode']&&this['nodeSet']['types'][_0x3d1507]['name']||_0x3d1507);}get['eofTerm'](){return this['maxNode']+0x1;}get['topNode'](){return this['nodeSet']['types'][this['top'][0x1]];}['dynamicPrecedence'](_0x1599c0){let _0xb6a7d3=this['dynamicPrecedences'];return null==_0xb6a7d3?0x0:_0xb6a7d3[_0x1599c0]||0x0;}['parseDialect'](_0x375ac9){let _0x3c033c=Object['keys'](this['dialects']),_0x3941f4=_0x3c033c['map'](()=>!0x1);if(_0x375ac9)for(let _0x429a60 of _0x375ac9['split']('\x20')){let _0x10fe06=_0x3c033c['indexOf'](_0x429a60);_0x10fe06>=0x0&&(_0x3941f4[_0x10fe06]=!0x0);}let _0x2c3ebd=null;for(let _0x1c71b1=0x0;_0x1c71b1<_0x3c033c['length'];_0x1c71b1++)if(!_0x3941f4[_0x1c71b1]){for(let _0x4558e8,_0x27c39c=this['dialects'][_0x3c033c[_0x1c71b1]];0xffff!=(_0x4558e8=this['data'][_0x27c39c++]);)(_0x2c3ebd||(_0x2c3ebd=new Uint8Array(this['maxTerm']+0x1)))[_0x4558e8]=0x1;}return new Dialect(_0x375ac9,_0x3941f4,_0x2c3ebd);}static['deserialize'](_0x308daa){return new LRParser(_0x308daa);}}function pair(_0xd07e30,_0x46e5e1){return _0xd07e30[_0x46e5e1]|_0xd07e30[_0x46e5e1+0x1]<<0x10;}function findFinished(_0x559a88){let _0x212314=null;for(let _0x2518c4 of _0x559a88){let _0xc6c06d=_0x2518c4['p']['stoppedAt'];(_0x2518c4['pos']==_0x2518c4['p']['stream']['end']||null!=_0xc6c06d&&_0x2518c4['pos']>_0xc6c06d)&&_0x2518c4['p']['parser']['stateFlag'](_0x2518c4['state'],0x2)&&(!_0x212314||_0x212314['score']<_0x2518c4['score'])&&(_0x212314=_0x2518c4);}return _0x212314;}function getSpecializer(_0x5ee3f4){if(_0x5ee3f4['external']){let _0x359cd8=_0x5ee3f4['extend']?0x1:0x0;return(_0x4c37f5,_0x1fcf49)=>_0x5ee3f4['external'](_0x4c37f5,_0x1fcf49)<<0x1|_0x359cd8;}return _0x5ee3f4['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(_0x7441a8){return 0x2d==_0x7441a8||0x2e==_0x7441a8||0x3a==_0x7441a8||_0x7441a8>=0x41&&_0x7441a8<=0x5a||0x5f==_0x7441a8||_0x7441a8>=0x61&&_0x7441a8<=0x7a||_0x7441a8>=0xa1;}let cachedName=null,cachedInput=null,cachedPos=0x0;function tagNameAfter(_0x2c26e3,_0x372b57){let _0xff352d=_0x2c26e3['pos']+_0x372b57;if(cachedPos==_0xff352d&&cachedInput==_0x2c26e3)return cachedName;let _0x5cf685=_0x2c26e3['peek'](_0x372b57),_0x5064c9='';for(;nameChar(_0x5cf685);)_0x5064c9+=String['fromCharCode'](_0x5cf685),_0x5cf685=_0x2c26e3['peek'](++_0x372b57);return cachedInput=_0x2c26e3,cachedPos=_0xff352d,cachedName=_0x5064c9?_0x5064c9['toLowerCase']():_0x5cf685==question$1||_0x5cf685==bang?void 0x0:null;}const lessThan=0x3c,greaterThan=0x3e,slash$1=0x2f,question$1=0x3f,bang=0x21,dash$1=0x2d;function ElementContext(_0x105d6f,_0xbe002a){this['name']=_0x105d6f,this['parent']=_0xbe002a;}const startTagTerms=[StartTag,StartSelfClosingTag,StartScriptTag,StartStyleTag,StartTextareaTag],elementContext=new ContextTracker({'start':null,'shift':(_0x3fac71,_0x3c91cc,_0x73dbb6,_0x2f9058)=>startTagTerms['indexOf'](_0x3c91cc)>-0x1?new ElementContext(tagNameAfter(_0x2f9058,0x1)||'',_0x3fac71):_0x3fac71,'reduce':(_0x3bc611,_0x46129f)=>_0x46129f==Element$2&&_0x3bc611?_0x3bc611['parent']:_0x3bc611,'reuse'(_0x4184a0,_0x323e07,_0x3b882f,_0x1c661f){let _0x41fd20=_0x323e07['type']['id'];return _0x41fd20==StartTag||_0x41fd20==OpenTag?new ElementContext(tagNameAfter(_0x1c661f,0x1)||'',_0x4184a0):_0x4184a0;},'strict':!0x1}),tagStart=new ExternalTokenizer((_0x3708cb,_0x2e0277)=>{if(_0x3708cb['next']!=lessThan)return void(_0x3708cb['next']<0x0&&_0x2e0277['context']&&_0x3708cb['acceptToken'](missingCloseTag));_0x3708cb['advance']();let _0x37bbb0=_0x3708cb['next']==slash$1;_0x37bbb0&&_0x3708cb['advance']();let _0x2114f0=tagNameAfter(_0x3708cb,0x0);if(void 0x0===_0x2114f0)return;if(!_0x2114f0)return _0x3708cb['acceptToken'](_0x37bbb0?IncompleteCloseTag:IncompleteTag);let _0x58bfb7=_0x2e0277['context']?_0x2e0277['context']['name']:null;if(_0x37bbb0){if(_0x2114f0==_0x58bfb7)return _0x3708cb['acceptToken'](StartCloseTag);if(_0x58bfb7&&implicitlyClosed[_0x58bfb7])return _0x3708cb['acceptToken'](missingCloseTag,-0x2);if(_0x2e0277['dialectEnabled'](Dialect_noMatch))return _0x3708cb['acceptToken'](NoMatchStartCloseTag);for(let _0x540137=_0x2e0277['context'];_0x540137;_0x540137=_0x540137['parent'])if(_0x540137['name']==_0x2114f0)return;_0x3708cb['acceptToken'](MismatchedStartCloseTag);}else{if('script'==_0x2114f0)return _0x3708cb['acceptToken'](StartScriptTag);if('style'==_0x2114f0)return _0x3708cb['acceptToken'](StartStyleTag);if('textarea'==_0x2114f0)return _0x3708cb['acceptToken'](StartTextareaTag);if(selfClosers$1['hasOwnProperty'](_0x2114f0))return _0x3708cb['acceptToken'](StartSelfClosingTag);_0x58bfb7&&closeOnOpen[_0x58bfb7]&&closeOnOpen[_0x58bfb7][_0x2114f0]?_0x3708cb['acceptToken'](missingCloseTag,-0x1):_0x3708cb['acceptToken'](StartTag);}},{'contextual':!0x0}),commentContent=new ExternalTokenizer(_0x3299a5=>{for(let _0x249f69=0x0,_0x104b8b=0x0;;_0x104b8b++){if(_0x3299a5['next']<0x0){_0x104b8b&&_0x3299a5['acceptToken'](commentContent$1);break;}if(_0x3299a5['next']==dash$1)_0x249f69++;else{if(_0x3299a5['next']==greaterThan&&_0x249f69>=0x2){_0x104b8b>=0x3&&_0x3299a5['acceptToken'](commentContent$1,-0x2);break;}_0x249f69=0x0;}_0x3299a5['advance']();}});function inForeignElement(_0x1c43ac){for(;_0x1c43ac;_0x1c43ac=_0x1c43ac['parent'])if('svg'==_0x1c43ac['name']||'math'==_0x1c43ac['name'])return!0x0;return!0x1;}const endTag=new ExternalTokenizer((_0x33f1af,_0x15bffb)=>{if(_0x33f1af['next']==slash$1&&_0x33f1af['peek'](0x1)==greaterThan){let _0xfa69be=_0x15bffb['dialectEnabled'](Dialect_selfClosing)||inForeignElement(_0x15bffb['context']);_0x33f1af['acceptToken'](_0xfa69be?SelfClosingEndTag:EndTag,0x2);}else _0x33f1af['next']==greaterThan&&_0x33f1af['acceptToken'](EndTag,0x1);});function contentTokenizer(_0x9492a7,_0x48a291,_0x74bfc9){let _0x5c9c48=0x2+_0x9492a7['length'];return new ExternalTokenizer(_0x2a6814=>{for(let _0x3a34ca=0x0,_0x4161ac=0x0,_0x24f240=0x0;;_0x24f240++){if(_0x2a6814['next']<0x0){_0x24f240&&_0x2a6814['acceptToken'](_0x48a291);break;}if(0x0==_0x3a34ca&&_0x2a6814['next']==lessThan||0x1==_0x3a34ca&&_0x2a6814['next']==slash$1||_0x3a34ca>=0x2&&_0x3a34ca<_0x5c9c48&&_0x2a6814['next']==_0x9492a7['charCodeAt'](_0x3a34ca-0x2))_0x3a34ca++,_0x4161ac++;else{if(_0x3a34ca==_0x5c9c48&&_0x2a6814['next']==greaterThan){_0x24f240>_0x4161ac?_0x2a6814['acceptToken'](_0x48a291,-_0x4161ac):_0x2a6814['acceptToken'](_0x74bfc9,-(_0x4161ac-0x2));break;}if((0xa==_0x2a6814['next']||0xd==_0x2a6814['next'])&&_0x24f240){_0x2a6814['acceptToken'](_0x48a291,0x1);break;}_0x3a34ca=_0x4161ac=0x0;}_0x2a6814['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(_0x2d6620,_0x49a449){let _0x372c9d=Object['create'](null);for(let _0x27ca5a of _0x2d6620['getChildren'](Attribute)){let _0xd00010=_0x27ca5a['getChild'](AttributeName),_0x45b6ca=_0x27ca5a['getChild'](AttributeValue)||_0x27ca5a['getChild'](UnquotedAttributeValue);_0xd00010&&(_0x372c9d[_0x49a449['read'](_0xd00010['from'],_0xd00010['to'])]=_0x45b6ca?_0x45b6ca['type']['id']==AttributeValue?_0x49a449['read'](_0x45b6ca['from']+0x1,_0x45b6ca['to']-0x1):_0x49a449['read'](_0x45b6ca['from'],_0x45b6ca['to']):'');}return _0x372c9d;}function findTagName(_0x4547d6,_0x1c915d){let _0x4919a0=_0x4547d6['getChild'](TagName);return _0x4919a0?_0x1c915d['read'](_0x4919a0['from'],_0x4919a0['to']):'\x20';}function maybeNest(_0x3aa75a,_0x5093c1,_0x26b661){let _0x383155;for(let _0x44550b of _0x26b661)if(!_0x44550b['attrs']||_0x44550b['attrs'](_0x383155||(_0x383155=getAttrs(_0x3aa75a['node']['parent']['firstChild'],_0x5093c1))))return{'parser':_0x44550b['parser']};return null;}function configureNesting(_0x266234=[],_0x706e37=[]){let _0x51b56c=[],_0x53ce6e=[],_0x8ac617=[],_0xdfea96=[];for(let _0x3fca59 of _0x266234){('script'==_0x3fca59['tag']?_0x51b56c:'style'==_0x3fca59['tag']?_0x53ce6e:'textarea'==_0x3fca59['tag']?_0x8ac617:_0xdfea96)['push'](_0x3fca59);}let _0x3b702e=_0x706e37['length']?Object['create'](null):null;for(let _0x213689 of _0x706e37)(_0x3b702e[_0x213689['name']]||(_0x3b702e[_0x213689['name']]=[]))['push'](_0x213689);return parseMixed((_0x241c39,_0x5c9638)=>{let _0x587287=_0x241c39['type']['id'];if(_0x587287==ScriptText)return maybeNest(_0x241c39,_0x5c9638,_0x51b56c);if(_0x587287==StyleText)return maybeNest(_0x241c39,_0x5c9638,_0x53ce6e);if(_0x587287==TextareaText)return maybeNest(_0x241c39,_0x5c9638,_0x8ac617);if(_0x587287==Element$2&&_0xdfea96['length']){let _0x4dfe52,_0x3d3c02=_0x241c39['node'],_0x5c2b97=_0x3d3c02['firstChild'],_0x46bd20=_0x5c2b97&&findTagName(_0x5c2b97,_0x5c9638);if(_0x46bd20){for(let _0xea83bd of _0xdfea96)if(_0xea83bd['tag']==_0x46bd20&&(!_0xea83bd['attrs']||_0xea83bd['attrs'](_0x4dfe52||(_0x4dfe52=getAttrs(_0x5c2b97,_0x5c9638))))){let _0x1f6667=_0x3d3c02['lastChild'],_0xe43489=_0x1f6667['type']['id']==CloseTag?_0x1f6667['from']:_0x3d3c02['to'];if(_0xe43489>_0x5c2b97['to'])return{'parser':_0xea83bd['parser'],'overlay':[{'from':_0x5c2b97['to'],'to':_0xe43489}]};}}}if(_0x3b702e&&_0x587287==Attribute){let _0x4b243f,_0x26cf79=_0x241c39['node'];if(_0x4b243f=_0x26cf79['firstChild']){let _0x41bd17=_0x3b702e[_0x5c9638['read'](_0x4b243f['from'],_0x4b243f['to'])];if(_0x41bd17)for(let _0x244c62 of _0x41bd17){if(_0x244c62['tagName']&&_0x244c62['tagName']!=findTagName(_0x26cf79['parent'],_0x5c9638))continue;let _0x542d73=_0x26cf79['lastChild'];if(_0x542d73['type']['id']==AttributeValue){let _0x32e081=_0x542d73['from']+0x1,_0x3d01b9=_0x542d73['lastChild'],_0x34791d=_0x542d73['to']-(_0x3d01b9&&_0x3d01b9['isError']?0x0:0x1);if(_0x34791d>_0x32e081)return{'parser':_0x244c62['parser'],'overlay':[{'from':_0x32e081,'to':_0x34791d}]};}else{if(_0x542d73['type']['id']==UnquotedAttributeValue)return{'parser':_0x244c62['parser'],'overlay':[{'from':_0x542d73['from'],'to':_0x542d73['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(_0x13443d){return _0x13443d>=0x41&&_0x13443d<=0x5a||_0x13443d>=0x61&&_0x13443d<=0x7a||_0x13443d>=0xa1;}function isDigit(_0x38098e){return _0x38098e>=0x30&&_0x38098e<=0x39;}function isHex(_0x100adf){return isDigit(_0x100adf)||_0x100adf>=0x61&&_0x100adf<=0x66||_0x100adf>=0x41&&_0x100adf<=0x46;}const identifierTokens=(_0x48c435,_0x5a93fa,_0x44a78b)=>(_0x5b7d50,_0x32fe95)=>{for(let _0x391618=!0x1,_0x533945=0x0,_0x416351=0x0;;_0x416351++){let {next:_0x2101a6}=_0x5b7d50;if(isAlpha(_0x2101a6)||_0x2101a6==dash||_0x2101a6==underscore||_0x391618&&isDigit(_0x2101a6))!_0x391618&&(_0x2101a6!=dash||_0x416351>0x0)&&(_0x391618=!0x0),_0x533945===_0x416351&&_0x2101a6==dash&&_0x533945++,_0x5b7d50['advance']();else{if(_0x2101a6!=backslash||_0x5b7d50['peek'](0x1)==newline$1){_0x391618&&_0x5b7d50['acceptToken'](0x2==_0x533945&&_0x32fe95['canShift'](VariableName)?_0x5a93fa:_0x2101a6==parenL?_0x44a78b:_0x48c435);break;}if(_0x5b7d50['advance'](),isHex(_0x5b7d50['next'])){do{_0x5b7d50['advance']();}while(isHex(_0x5b7d50['next']));0x20==_0x5b7d50['next']&&_0x5b7d50['advance']();}else _0x5b7d50['next']>-0x1&&_0x5b7d50['advance']();_0x391618=!0x0;}}},identifiers=new ExternalTokenizer(identifierTokens(identifier$2,VariableName,callee)),queryIdentifiers=new ExternalTokenizer(identifierTokens(queryIdentifier,queryVariableName,QueryCallee)),descendant=new ExternalTokenizer(_0x3236a5=>{if(space$2['includes'](_0x3236a5['peek'](-0x1))){let {next:_0x4c4156}=_0x3236a5;(isAlpha(_0x4c4156)||_0x4c4156==underscore||_0x4c4156==hash||_0x4c4156==period||_0x4c4156==asterisk||_0x4c4156==bracketL$1||_0x4c4156==colon&&isAlpha(_0x3236a5['peek'](0x1))||_0x4c4156==dash||_0x4c4156==ampersand)&&_0x3236a5['acceptToken'](descendantOp);}}),unitToken=new ExternalTokenizer(_0x2353fe=>{if(!space$2['includes'](_0x2353fe['peek'](-0x1))){let {next:_0x20bc6e}=_0x2353fe;if(_0x20bc6e==percent&&(_0x2353fe['advance'](),_0x2353fe['acceptToken'](Unit)),isAlpha(_0x20bc6e)){do{_0x2353fe['advance']();}while(isAlpha(_0x2353fe['next'])||isDigit(_0x2353fe['next']));_0x2353fe['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':_0x326d25=>spec_callee[_0x326d25]||-0x1},{'term':0x7d,'get':_0x71f179=>spec_queryIdentifier[_0x71f179]||-0x1},{'term':0x4,'get':_0x55210=>spec_QueryCallee[_0x55210]||-0x1},{'term':0x19,'get':_0x2649ee=>spec_AtKeyword[_0x2649ee]||-0x1},{'term':0x7b,'get':_0x4491a3=>spec_identifier$1[_0x4491a3]||-0x1}],'tokenPrec':0x7ab});let _properties=null;function properties(){if(!_properties&&'object'==typeof document&&document['body']){let {style:_0x7f4c01}=document['body'],_0x2b627f=[],_0x2dde2b=new Set();for(let _0x46134c in _0x7f4c01)'cssText'!=_0x46134c&&'cssFloat'!=_0x46134c&&'string'==typeof _0x7f4c01[_0x46134c]&&(/[A-Z]/['test'](_0x46134c)&&(_0x46134c=_0x46134c['replace'](/[A-Z]/g,_0x132369=>'-'+_0x132369['toLowerCase']())),_0x2dde2b['has'](_0x46134c)||(_0x2b627f['push'](_0x46134c),_0x2dde2b['add'](_0x46134c)));_properties=_0x2b627f['sort']()['map'](_0x1fd37c=>({'type':'property','label':_0x1fd37c,'apply':_0x1fd37c+':\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'](_0x2af994=>({'type':'class','label':_0x2af994})),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'](_0x582a1b=>({'type':'keyword','label':_0x582a1b}))['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'](_0x2e09a4=>({'type':'constant','label':_0x2e09a4}))),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'](_0x31f311=>({'type':'type','label':_0x31f311})),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'](_0x255186=>({'type':'keyword','label':_0x255186})),identifier$1=/^(\w[\w-]*|-\w[\w-]*|)$/,variable=/^-(-[\w-]*)?$/;function isVarArg(_0x302080,_0x2cec85){var _0x177d93;if(('('==_0x302080['name']||_0x302080['type']['isError'])&&(_0x302080=_0x302080['parent']||_0x302080),'ArgList'!=_0x302080['name'])return!0x1;let _0x270a90=null===(_0x177d93=_0x302080['parent'])||void 0x0===_0x177d93?void 0x0:_0x177d93['firstChild'];return'Callee'==(null==_0x270a90?void 0x0:_0x270a90['name'])&&'var'==_0x2cec85['sliceString'](_0x270a90['from'],_0x270a90['to']);}const VariablesByNode=new NodeWeakMap(),declSelector=['Declaration'];function astTop(_0xf0bb36){for(let _0x2f17e7=_0xf0bb36;;){if(_0x2f17e7['type']['isTop'])return _0x2f17e7;if(!(_0x2f17e7=_0x2f17e7['parent']))return _0xf0bb36;}}function variableNames(_0x4cf9f6,_0x1886e3,_0x35b52e){if(_0x1886e3['to']-_0x1886e3['from']>0x1000){let _0x1b0e46=VariablesByNode['get'](_0x1886e3);if(_0x1b0e46)return _0x1b0e46;let _0x54ccf0=[],_0x54b9ec=new Set(),_0x33bfb5=_0x1886e3['cursor'](IterMode['IncludeAnonymous']);if(_0x33bfb5['firstChild']())do{for(let _0x13ff4a of variableNames(_0x4cf9f6,_0x33bfb5['node'],_0x35b52e))_0x54b9ec['has'](_0x13ff4a['label'])||(_0x54b9ec['add'](_0x13ff4a['label']),_0x54ccf0['push'](_0x13ff4a));}while(_0x33bfb5['nextSibling']());return VariablesByNode['set'](_0x1886e3,_0x54ccf0),_0x54ccf0;}{let _0x2b43bd=[],_0x30d396=new Set();return _0x1886e3['cursor']()['iterate'](_0x1eab22=>{var _0x5f48da;if(_0x35b52e(_0x1eab22)&&_0x1eab22['matchContext'](declSelector)&&':'==(null===(_0x5f48da=_0x1eab22['node']['nextSibling'])||void 0x0===_0x5f48da?void 0x0:_0x5f48da['name'])){let _0x2518ab=_0x4cf9f6['sliceString'](_0x1eab22['from'],_0x1eab22['to']);_0x30d396['has'](_0x2518ab)||(_0x30d396['add'](_0x2518ab),_0x2b43bd['push']({'label':_0x2518ab,'type':'variable'}));}}),_0x2b43bd;}}const defineCSSCompletionSource=_0x41eb2c=>_0x1abde7=>{let {state:_0x498804,pos:_0xe15233}=_0x1abde7,_0x2fadc8=syntaxTree(_0x498804)['resolveInner'](_0xe15233,-0x1),_0x2d4800=_0x2fadc8['type']['isError']&&_0x2fadc8['from']==_0x2fadc8['to']-0x1&&'-'==_0x498804['doc']['sliceString'](_0x2fadc8['from'],_0x2fadc8['to']);if('PropertyName'==_0x2fadc8['name']||(_0x2d4800||'TagName'==_0x2fadc8['name'])&&/^(Block|Styles)$/['test'](_0x2fadc8['resolve'](_0x2fadc8['to'])['name']))return{'from':_0x2fadc8['from'],'options':properties(),'validFor':identifier$1};if('ValueName'==_0x2fadc8['name'])return{'from':_0x2fadc8['from'],'options':values,'validFor':identifier$1};if('PseudoClassName'==_0x2fadc8['name'])return{'from':_0x2fadc8['from'],'options':pseudoClasses,'validFor':identifier$1};if(_0x41eb2c(_0x2fadc8)||(_0x1abde7['explicit']||_0x2d4800)&&isVarArg(_0x2fadc8,_0x498804['doc']))return{'from':_0x41eb2c(_0x2fadc8)||_0x2d4800?_0x2fadc8['from']:_0xe15233,'options':variableNames(_0x498804['doc'],astTop(_0x2fadc8),_0x41eb2c),'validFor':variable};if('TagName'==_0x2fadc8['name']){for(let {parent:_0x4acdec}=_0x2fadc8;_0x4acdec;_0x4acdec=_0x4acdec['parent'])if('Block'==_0x4acdec['name'])return{'from':_0x2fadc8['from'],'options':properties(),'validFor':identifier$1};return{'from':_0x2fadc8['from'],'options':tags,'validFor':identifier$1};}if('AtKeyword'==_0x2fadc8['name'])return{'from':_0x2fadc8['from'],'options':atRules,'validFor':identifier$1};if(!_0x1abde7['explicit'])return null;let _0x189970=_0x2fadc8['resolve'](_0xe15233),_0x37da71=_0x189970['childBefore'](_0xe15233);return _0x37da71&&':'==_0x37da71['name']&&'PseudoClassSelector'==_0x189970['name']?{'from':_0xe15233,'options':pseudoClasses,'validFor':identifier$1}:_0x37da71&&':'==_0x37da71['name']&&'Declaration'==_0x189970['name']||'ArgList'==_0x189970['name']?{'from':_0xe15233,'options':values,'validFor':identifier$1}:'Block'==_0x189970['name']||'Styles'==_0x189970['name']?{'from':_0xe15233,'options':properties(),'validFor':identifier$1}:null;},cssCompletionSource=defineCSSCompletionSource(_0x83386c=>'VariableName'==_0x83386c['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':(_0x31d838,_0x2d0c57)=>_0x2d0c57==LineComment||_0x2d0c57==BlockComment||_0x2d0c57==spaces?_0x31d838:_0x2d0c57==newline,'strict':!0x1}),insertSemicolon=new ExternalTokenizer((_0x55f733,_0x14da0b)=>{let {next:_0x575f9f}=_0x55f733;(_0x575f9f==braceR||-0x1==_0x575f9f||_0x14da0b['context'])&&_0x55f733['acceptToken'](insertSemi);},{'contextual':!0x0,'fallback':!0x0}),noSemicolon=new ExternalTokenizer((_0x17d88e,_0x4215a7)=>{let _0x2c707b,{next:_0x2c35d3}=_0x17d88e;space$1['indexOf'](_0x2c35d3)>-0x1||(_0x2c35d3!=slash||(_0x2c707b=_0x17d88e['peek'](0x1))!=slash&&_0x2c707b!=star)&&(_0x2c35d3==braceR||_0x2c35d3==semicolon||-0x1==_0x2c35d3||_0x4215a7['context']||_0x17d88e['acceptToken'](noSemi));},{'contextual':!0x0}),noSemicolonType=new ExternalTokenizer((_0x5860c5,_0xa7c8c9)=>{_0x5860c5['next']!=bracketL||_0xa7c8c9['context']||_0x5860c5['acceptToken'](noSemiType);},{'contextual':!0x0}),operatorToken=new ExternalTokenizer((_0xde412c,_0x35ef9b)=>{let {next:_0x19315c}=_0xde412c;if(_0x19315c==plus||_0x19315c==minus){if(_0xde412c['advance'](),_0x19315c==_0xde412c['next']){_0xde412c['advance']();let _0x5d1feb=!_0x35ef9b['context']&&_0x35ef9b['canShift'](incdec);_0xde412c['acceptToken'](_0x5d1feb?incdec:incdecPrefix);}}else _0x19315c==question&&_0xde412c['peek'](0x1)==dot&&(_0xde412c['advance'](),_0xde412c['advance'](),(_0xde412c['next']<0x30||_0xde412c['next']>0x39)&&_0xde412c['acceptToken'](questionDot));},{'contextual':!0x0});function identifierChar(_0x525c4e,_0x1427b0){return _0x525c4e>=0x41&&_0x525c4e<=0x5a||_0x525c4e>=0x61&&_0x525c4e<=0x7a||0x5f==_0x525c4e||_0x525c4e>=0xc0||!_0x1427b0&&_0x525c4e>=0x30&&_0x525c4e<=0x39;}const jsx=new ExternalTokenizer((_0x105d7a,_0x17b326)=>{if(_0x105d7a['next']!=lt||!_0x17b326['dialectEnabled'](Dialect_jsx))return;if(_0x105d7a['advance'](),_0x105d7a['next']==slash)return;let _0x564af1=0x0;for(;space$1['indexOf'](_0x105d7a['next'])>-0x1;)_0x105d7a['advance'](),_0x564af1++;if(identifierChar(_0x105d7a['next'],!0x0)){for(_0x105d7a['advance'](),_0x564af1++;identifierChar(_0x105d7a['next'],!0x1);)_0x105d7a['advance'](),_0x564af1++;for(;space$1['indexOf'](_0x105d7a['next'])>-0x1;)_0x105d7a['advance'](),_0x564af1++;if(_0x105d7a['next']==comma)return;for(let _0x552af3=0x0;;_0x552af3++){if(0x7==_0x552af3){if(!identifierChar(_0x105d7a['next'],!0x0))return;break;}if(_0x105d7a['next']!='extends'['charCodeAt'](_0x552af3))break;_0x105d7a['advance'](),_0x564af1++;}}_0x105d7a['acceptToken'](JSXStartTag,-_0x564af1);}),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':_0x467ea1=>spec_identifier[_0x467ea1]||-0x1},{'term':0x157,'get':_0x547e42=>spec_word[_0x547e42]||-0x1},{'term':0x5f,'get':_0x592d0e=>spec_LessThan[_0x592d0e]||-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(_0x413a0d){return(_0xb35c6a,_0x836047)=>{let _0x315573=_0xb35c6a['node']['getChild']('VariableDefinition');return _0x315573&&_0x836047(_0x315573,_0x413a0d),!0x0;};}const functionContext=['FunctionDeclaration'],gatherCompletions={'FunctionDeclaration':defID('function'),'ClassDeclaration':defID('class'),'ClassExpression':()=>!0x0,'EnumDeclaration':defID('constant'),'TypeAliasDeclaration':defID('type'),'NamespaceDeclaration':defID('namespace'),'VariableDefinition'(_0x3e34d8,_0x1ad9db){_0x3e34d8['matchContext'](functionContext)||_0x1ad9db(_0x3e34d8,'variable');},'TypeDefinition'(_0x2d842e,_0x149117){_0x149117(_0x2d842e,'type');},'__proto__':null};function getScope(_0x5d4b9f,_0x1ebb07){let _0x1dff4c=cache['get'](_0x1ebb07);if(_0x1dff4c)return _0x1dff4c;let _0x5a747d=[],_0x723a6=!0x0;function _0x4a1dc4(_0x450a79,_0x4523b8){let _0x31cfc6=_0x5d4b9f['sliceString'](_0x450a79['from'],_0x450a79['to']);_0x5a747d['push']({'label':_0x31cfc6,'type':_0x4523b8});}return _0x1ebb07['cursor'](IterMode['IncludeAnonymous'])['iterate'](_0x276473=>{if(_0x723a6)_0x723a6=!0x1;else{if(_0x276473['name']){let _0xd7ee39=gatherCompletions[_0x276473['name']];if(_0xd7ee39&&_0xd7ee39(_0x276473,_0x4a1dc4)||ScopeNodes['has'](_0x276473['name']))return!0x1;}else{if(_0x276473['to']-_0x276473['from']>0x2000){for(let _0x66b30 of getScope(_0x5d4b9f,_0x276473['node']))_0x5a747d['push'](_0x66b30);return!0x1;}}}}),cache['set'](_0x1ebb07,_0x5a747d),_0x5a747d;}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(_0x144e6b){let _0x59396a=syntaxTree(_0x144e6b['state'])['resolveInner'](_0x144e6b['pos'],-0x1);if(dontComplete['indexOf'](_0x59396a['name'])>-0x1)return null;let _0x4529c5='VariableName'==_0x59396a['name']||_0x59396a['to']-_0x59396a['from']<0x14&&Identifier['test'](_0x144e6b['state']['sliceDoc'](_0x59396a['from'],_0x59396a['to']));if(!_0x4529c5&&!_0x144e6b['explicit'])return null;let _0xd926f2=[];for(let _0x47a101=_0x59396a;_0x47a101;_0x47a101=_0x47a101['parent'])ScopeNodes['has'](_0x47a101['name'])&&(_0xd926f2=_0xd926f2['concat'](getScope(_0x144e6b['state']['doc'],_0x47a101)));return{'options':_0xd926f2,'from':_0x4529c5?_0x59396a['from']:_0x144e6b['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':_0x2af67=>{let _0x64c8=_0x2af67['textAfter'],_0x497070=/^\s*\}/['test'](_0x64c8),_0x43f666=/^\s*(case|default)\b/['test'](_0x64c8);return _0x2af67['baseIndent']+(_0x497070?0x0:_0x43f666?0x1:0x2)*_0x2af67['unit'];},'Block':delimitedIndent({'closing':'}'}),'ArrowFunction':_0x588719=>_0x588719['baseIndent']+_0x588719['unit'],'TemplateString\x20BlockComment':()=>null,'Statement\x20Property':continuedIndent({'except':/^\s*{/}),'JSXElement'(_0x242e04){let _0x42560c=/^\s*<\//['test'](_0x242e04['textAfter']);return _0x242e04['lineIndent'](_0x242e04['node']['from'])+(_0x42560c?0x0:_0x242e04['unit']);},'JSXEscape'(_0x16c30e){let _0x2d24f4=/\s*\}/['test'](_0x16c30e['textAfter']);return _0x16c30e['lineIndent'](_0x16c30e['node']['from'])+(_0x2d24f4?0x0:_0x16c30e['unit']);},'JSXOpenTag\x20JSXSelfClosingTag':_0x313fc9=>_0x313fc9['column'](_0x313fc9['node']['from'])+_0x313fc9['unit']}),foldNodeProp['add']({'Block\x20ClassBody\x20SwitchBody\x20EnumBody\x20ObjectExpression\x20ArrayExpression\x20ObjectType':foldInside,'BlockComment':_0x2dfcfb=>({'from':_0x2dfcfb['from']+0x2,'to':_0x2dfcfb['to']-0x2})})]}),'languageData':{'closeBrackets':{'brackets':['(','[','{','\x27','\x22','`']},'commentTokens':{'line':'//','block':{'open':'/*','close':'*/'}},'indentOnInput':/^\s*(?:case |default:|\{|\}|<\/)$/,'wordChars':'$'}}),jsxSublanguage={'test':_0x106be5=>/^JSX/['test'](_0x106be5['name']),'facet':defineLanguageFacet({'commentTokens':{'block':{'open':'{/*','close':'*/}'}}})},typescriptLanguage=javascriptLanguage['configure']({'dialect':'ts'},'typescript'),jsxLanguage=javascriptLanguage['configure']({'dialect':'jsx','props':[sublanguageProp['add'](_0x2c21cd=>_0x2c21cd['isTop']?[jsxSublanguage]:void 0x0)]}),tsxLanguage=javascriptLanguage['configure']({'dialect':'jsx\x20ts','props':[sublanguageProp['add'](_0x363a5c=>_0x363a5c['isTop']?[jsxSublanguage]:void 0x0)]},'typescript');let kwCompletion=_0x3b9e5e=>({'label':_0x3b9e5e,'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(_0x5571c8={}){let _0x5c0180=_0x5571c8['jsx']?_0x5571c8['typescript']?tsxLanguage:jsxLanguage:_0x5571c8['typescript']?typescriptLanguage:javascriptLanguage,_0x320f62=_0x5571c8['typescript']?typescriptSnippets['concat'](typescriptKeywords):snippets['concat'](keywords);return new LanguageSupport(_0x5c0180,[javascriptLanguage['data']['of']({'autocomplete':ifNotIn(dontComplete,completeFromList(_0x320f62))}),javascriptLanguage['data']['of']({'autocomplete':localCompletionSource}),_0x5571c8['jsx']?autoCloseTags$1:[]]);}function findOpenTag(_0x1ec127){for(;;){if('JSXOpenTag'==_0x1ec127['name']||'JSXSelfClosingTag'==_0x1ec127['name']||'JSXFragmentTag'==_0x1ec127['name'])return _0x1ec127;if('JSXEscape'==_0x1ec127['name']||!_0x1ec127['parent'])return null;_0x1ec127=_0x1ec127['parent'];}}function elementName$1(_0x58e062,_0x395124,_0x21eb3f=_0x58e062['length']){for(let _0x399222=null==_0x395124?void 0x0:_0x395124['firstChild'];_0x399222;_0x399222=_0x399222['nextSibling'])if('JSXIdentifier'==_0x399222['name']||'JSXBuiltin'==_0x399222['name']||'JSXNamespacedName'==_0x399222['name']||'JSXMemberExpression'==_0x399222['name'])return _0x58e062['sliceString'](_0x399222['from'],Math['min'](_0x399222['to'],_0x21eb3f));return'';}const android='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),autoCloseTags$1=EditorView['inputHandler']['of']((_0x1d796c,_0x598fff,_0x33a1cd,_0x44599e,_0x475ffa)=>{if((android?_0x1d796c['composing']:_0x1d796c['compositionStarted'])||_0x1d796c['state']['readOnly']||_0x598fff!=_0x33a1cd||'>'!=_0x44599e&&'/'!=_0x44599e||!javascriptLanguage['isActiveAt'](_0x1d796c['state'],_0x598fff,-0x1))return!0x1;let _0x116aaf=_0x475ffa(),{state:_0x37f3ce}=_0x116aaf,_0x1d7c96=_0x37f3ce['changeByRange'](_0x3275a8=>{var _0x59aa7e;let _0x53474d,{head:_0x98fa5f}=_0x3275a8,_0x4118f4=syntaxTree(_0x37f3ce)['resolveInner'](_0x98fa5f-0x1,-0x1);if('JSXStartTag'==_0x4118f4['name']&&(_0x4118f4=_0x4118f4['parent']),_0x37f3ce['doc']['sliceString'](_0x98fa5f-0x1,_0x98fa5f)!=_0x44599e||'JSXAttributeValue'==_0x4118f4['name']&&_0x4118f4['to']>_0x98fa5f);else{if('>'==_0x44599e&&'JSXFragmentTag'==_0x4118f4['name'])return{'range':_0x3275a8,'changes':{'from':_0x98fa5f,'insert':'</>'}};if('/'==_0x44599e&&'JSXStartCloseTag'==_0x4118f4['name']){let _0x4c2262=_0x4118f4['parent'],_0x27f51e=_0x4c2262['parent'];if(_0x27f51e&&_0x4c2262['from']==_0x98fa5f-0x2&&((_0x53474d=elementName$1(_0x37f3ce['doc'],_0x27f51e['firstChild'],_0x98fa5f))||'JSXFragmentTag'==(null===(_0x59aa7e=_0x27f51e['firstChild'])||void 0x0===_0x59aa7e?void 0x0:_0x59aa7e['name']))){let _0x497702=_0x53474d+'>';return{'range':EditorSelection['cursor'](_0x98fa5f+_0x497702['length'],-0x1),'changes':{'from':_0x98fa5f,'insert':_0x497702}};}}else{if('>'==_0x44599e){let _0x45af60=findOpenTag(_0x4118f4);if(_0x45af60&&'JSXOpenTag'==_0x45af60['name']&&!/^\/?>|^<\//['test'](_0x37f3ce['doc']['sliceString'](_0x98fa5f,_0x98fa5f+0x2))&&(_0x53474d=elementName$1(_0x37f3ce['doc'],_0x45af60,_0x98fa5f)))return{'range':_0x3275a8,'changes':{'from':_0x98fa5f,'insert':'</'+_0x53474d+'>'}};}}}return{'range':_0x3275a8};});return!_0x1d7c96['changes']['empty']&&(_0x1d796c['dispatch']([_0x116aaf,_0x37f3ce['update'](_0x1d7c96,{'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'](_0xfcb393=>'on'+_0xfcb393);for(let e of eventAttributes)GlobalAttrs[e]=null;class Schema{constructor(_0x2e5241,_0x27e8ff){this['tags']={...Tags,..._0x2e5241},this['globalAttrs']={...GlobalAttrs,..._0x27e8ff},this['allTags']=Object['keys'](this['tags']),this['globalAttrNames']=Object['keys'](this['globalAttrs']);}}function elementName(_0x72d36,_0x506e00,_0xaf8604=_0x72d36['length']){if(!_0x506e00)return'';let _0x26dfab=_0x506e00['firstChild'],_0x18397c=_0x26dfab&&_0x26dfab['getChild']('TagName');return _0x18397c?_0x72d36['sliceString'](_0x18397c['from'],Math['min'](_0x18397c['to'],_0xaf8604)):'';}function findParentElement(_0x29c344,_0x3e3e76=!0x1){for(;_0x29c344;_0x29c344=_0x29c344['parent'])if('Element'==_0x29c344['name']){if(!_0x3e3e76)return _0x29c344;_0x3e3e76=!0x1;}return null;}function allowedChildren(_0x52a477,_0x1ad381,_0x7d75c2){let _0x28856b=_0x7d75c2['tags'][elementName(_0x52a477,findParentElement(_0x1ad381))];return(null==_0x28856b?void 0x0:_0x28856b['children'])||_0x7d75c2['allTags'];}function openTags(_0x467c8b,_0x46c6f6){let _0x31b13c=[];for(let _0x48b3a0=findParentElement(_0x46c6f6);_0x48b3a0&&!_0x48b3a0['type']['isTop'];_0x48b3a0=findParentElement(_0x48b3a0['parent'])){let _0x59d714=elementName(_0x467c8b,_0x48b3a0);if(_0x59d714&&'CloseTag'==_0x48b3a0['lastChild']['name'])break;_0x59d714&&_0x31b13c['indexOf'](_0x59d714)<0x0&&('EndTag'==_0x46c6f6['name']||_0x46c6f6['from']>=_0x48b3a0['firstChild']['to'])&&_0x31b13c['push'](_0x59d714);}return _0x31b13c;}Schema['default']=new Schema();const identifier=/^[:\-\.\w\u00b7-\uffff]*$/;function completeTag(_0x43904d,_0x49dad4,_0x51aa8a,_0xfef374,_0x19da71){let _0x1b5e07=/\s*>/['test'](_0x43904d['sliceDoc'](_0x19da71,_0x19da71+0x5))?'':'>',_0x5b7fa4=findParentElement(_0x51aa8a,'StartTag'==_0x51aa8a['name']||'TagName'==_0x51aa8a['name']);return{'from':_0xfef374,'to':_0x19da71,'options':allowedChildren(_0x43904d['doc'],_0x5b7fa4,_0x49dad4)['map'](_0x24ce78=>({'label':_0x24ce78,'type':'type'}))['concat'](openTags(_0x43904d['doc'],_0x51aa8a)['map']((_0x37b555,_0x78994a)=>({'label':'/'+_0x37b555,'apply':'/'+_0x37b555+_0x1b5e07,'type':'type','boost':0x63-_0x78994a}))),'validFor':/^\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeCloseTag(_0x3e397c,_0x18da8c,_0x2aeab7,_0x5706fb){let _0x39bd4e=/\s*>/['test'](_0x3e397c['sliceDoc'](_0x5706fb,_0x5706fb+0x5))?'':'>';return{'from':_0x2aeab7,'to':_0x5706fb,'options':openTags(_0x3e397c['doc'],_0x18da8c)['map']((_0x5c6b07,_0x4e9924)=>({'label':_0x5c6b07,'apply':_0x5c6b07+_0x39bd4e,'type':'type','boost':0x63-_0x4e9924})),'validFor':identifier};}function completeStartTag(_0x4217c5,_0x2fe435,_0x27e4ef,_0x5c2e38){let _0x3b3980=[],_0x44327a=0x0;for(let _0x1271dc of allowedChildren(_0x4217c5['doc'],_0x27e4ef,_0x2fe435))_0x3b3980['push']({'label':'<'+_0x1271dc,'type':'type'});for(let _0x233de5 of openTags(_0x4217c5['doc'],_0x27e4ef))_0x3b3980['push']({'label':'</'+_0x233de5+'>','type':'type','boost':0x63-_0x44327a++});return{'from':_0x5c2e38,'to':_0x5c2e38,'options':_0x3b3980,'validFor':/^<\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeAttrName(_0x3ba997,_0x582dc8,_0x477a0e,_0x2bad67,_0x3dd522){let _0x54e871=findParentElement(_0x477a0e),_0x2d8423=_0x54e871?_0x582dc8['tags'][elementName(_0x3ba997['doc'],_0x54e871)]:null,_0x4fdcce=_0x2d8423&&_0x2d8423['attrs']?Object['keys'](_0x2d8423['attrs']):[];return{'from':_0x2bad67,'to':_0x3dd522,'options':(_0x2d8423&&!0x1===_0x2d8423['globalAttrs']?_0x4fdcce:_0x4fdcce['length']?_0x4fdcce['concat'](_0x582dc8['globalAttrNames']):_0x582dc8['globalAttrNames'])['map'](_0x48e3bd=>({'label':_0x48e3bd,'type':'property'})),'validFor':identifier};}function completeAttrValue(_0x44b3ba,_0x69befe,_0x27c0c5,_0x45b65b,_0x221aef){var _0x38ec15;let _0x40c029,_0x461136=null===(_0x38ec15=_0x27c0c5['parent'])||void 0x0===_0x38ec15?void 0x0:_0x38ec15['getChild']('AttributeName'),_0x183516=[];if(_0x461136){let _0x27fd5a=_0x44b3ba['sliceDoc'](_0x461136['from'],_0x461136['to']),_0x14bc55=_0x69befe['globalAttrs'][_0x27fd5a];if(!_0x14bc55){let _0x3fe824=findParentElement(_0x27c0c5),_0x22b277=_0x3fe824?_0x69befe['tags'][elementName(_0x44b3ba['doc'],_0x3fe824)]:null;_0x14bc55=(null==_0x22b277?void 0x0:_0x22b277['attrs'])&&_0x22b277['attrs'][_0x27fd5a];}if(_0x14bc55){let _0x514a22=_0x44b3ba['sliceDoc'](_0x45b65b,_0x221aef)['toLowerCase'](),_0x4a3526='\x22',_0x203af3='\x22';/^['"]/['test'](_0x514a22)?(_0x40c029='\x22'==_0x514a22[0x0]?/^[^"]*$/:/^[^']*$/,_0x4a3526='',_0x203af3=_0x44b3ba['sliceDoc'](_0x221aef,_0x221aef+0x1)==_0x514a22[0x0]?'':_0x514a22[0x0],_0x514a22=_0x514a22['slice'](0x1),_0x45b65b++):_0x40c029=/^[^\s<>='"]*$/;for(let _0x314571 of _0x14bc55)_0x183516['push']({'label':_0x314571,'apply':_0x4a3526+_0x314571+_0x203af3,'type':'constant'});}}return{'from':_0x45b65b,'to':_0x221aef,'options':_0x183516,'validFor':_0x40c029};}function htmlCompletionFor(_0x389dc4,_0x6d525f){let {state:_0x1ae739,pos:_0x3ca310}=_0x6d525f,_0x145d7f=syntaxTree(_0x1ae739)['resolveInner'](_0x3ca310,-0x1),_0x4104ce=_0x145d7f['resolve'](_0x3ca310);for(let _0x25655d,_0x2d72fd=_0x3ca310;_0x4104ce==_0x145d7f&&(_0x25655d=_0x145d7f['childBefore'](_0x2d72fd));){let _0x32e3e9=_0x25655d['lastChild'];if(!_0x32e3e9||!_0x32e3e9['type']['isError']||_0x32e3e9['from']<_0x32e3e9['to'])break;_0x4104ce=_0x145d7f=_0x25655d,_0x2d72fd=_0x32e3e9['from'];}return'TagName'==_0x145d7f['name']?_0x145d7f['parent']&&/CloseTag$/['test'](_0x145d7f['parent']['name'])?completeCloseTag(_0x1ae739,_0x145d7f,_0x145d7f['from'],_0x3ca310):completeTag(_0x1ae739,_0x389dc4,_0x145d7f,_0x145d7f['from'],_0x3ca310):'StartTag'==_0x145d7f['name']||'IncompleteTag'==_0x145d7f['name']?completeTag(_0x1ae739,_0x389dc4,_0x145d7f,_0x3ca310,_0x3ca310):'StartCloseTag'==_0x145d7f['name']||'IncompleteCloseTag'==_0x145d7f['name']?completeCloseTag(_0x1ae739,_0x145d7f,_0x3ca310,_0x3ca310):'OpenTag'==_0x145d7f['name']||'SelfClosingTag'==_0x145d7f['name']||'AttributeName'==_0x145d7f['name']?completeAttrName(_0x1ae739,_0x389dc4,_0x145d7f,'AttributeName'==_0x145d7f['name']?_0x145d7f['from']:_0x3ca310,_0x3ca310):'Is'==_0x145d7f['name']||'AttributeValue'==_0x145d7f['name']||'UnquotedAttributeValue'==_0x145d7f['name']?completeAttrValue(_0x1ae739,_0x389dc4,_0x145d7f,'Is'==_0x145d7f['name']?_0x3ca310:_0x145d7f['from'],_0x3ca310):!_0x6d525f['explicit']||'Element'!=_0x4104ce['name']&&'Text'!=_0x4104ce['name']&&'Document'!=_0x4104ce['name']?null:completeStartTag(_0x1ae739,_0x389dc4,_0x145d7f,_0x3ca310);}function htmlCompletionSource(_0x34f73d){return htmlCompletionFor(Schema['default'],_0x34f73d);}function htmlCompletionSourceWith(_0x3df0ed){let {extraTags:_0x4a4da8,extraGlobalAttributes:_0x54a12c}=_0x3df0ed,_0x5456a5=_0x54a12c||_0x4a4da8?new Schema(_0x4a4da8,_0x54a12c):Schema['default'];return _0x3c18af=>htmlCompletionFor(_0x5456a5,_0x3c18af);}const jsonParser=javascriptLanguage['parser']['configure']({'top':'SingleExpression'}),defaultNesting=[{'tag':'script','attrs':_0x1d16d4=>'text/typescript'==_0x1d16d4['type']||'ts'==_0x1d16d4['lang'],'parser':typescriptLanguage['parser']},{'tag':'script','attrs':_0x793a1f=>'text/babel'==_0x793a1f['type']||'text/jsx'==_0x793a1f['type'],'parser':jsxLanguage['parser']},{'tag':'script','attrs':_0x9591a0=>'text/typescript-jsx'==_0x9591a0['type'],'parser':tsxLanguage['parser']},{'tag':'script','attrs':_0x35424e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i['test'](_0x35424e['type']),'parser':jsonParser},{'tag':'script','attrs':_0x2b7293=>!_0x2b7293['type']||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i['test'](_0x2b7293['type']),'parser':javascriptLanguage['parser']},{'tag':'style','attrs':_0x50141f=>(!_0x50141f['lang']||'css'==_0x50141f['lang'])&&(!_0x50141f['type']||/^(text\/)?(x-)?(stylesheet|css)$/i['test'](_0x50141f['type'])),'parser':cssLanguage['parser']}],defaultAttrs=[{'name':'style','parser':cssLanguage['parser']['configure']({'top':'Styles'})}]['concat'](eventAttributes['map'](_0x5ef012=>({'name':_0x5ef012,'parser':javascriptLanguage['parser']}))),htmlPlain=LRLanguage['define']({'name':'html','parser':parser$3['configure']({'props':[indentNodeProp['add']({'Element'(_0x18de4e){let _0x14b59d=/^(\s*)(<\/)?/['exec'](_0x18de4e['textAfter']);return _0x18de4e['node']['to']<=_0x18de4e['pos']+_0x14b59d[0x0]['length']?_0x18de4e['continue']():_0x18de4e['lineIndent'](_0x18de4e['node']['from'])+(_0x14b59d[0x2]?0x0:_0x18de4e['unit']);},'OpenTag\x20CloseTag\x20SelfClosingTag':_0x284b98=>_0x284b98['column'](_0x284b98['node']['from'])+_0x284b98['unit'],'Document'(_0x224897){if(_0x224897['pos']+/\s*/['exec'](_0x224897['textAfter'])[0x0]['length']<_0x224897['node']['to'])return _0x224897['continue']();let _0x4a4078,_0x5d35b5=null;for(let _0x42e99b=_0x224897['node'];;){let _0x769939=_0x42e99b['lastChild'];if(!_0x769939||'Element'!=_0x769939['name']||_0x769939['to']!=_0x42e99b['to'])break;_0x5d35b5=_0x42e99b=_0x769939;}return _0x5d35b5&&(!(_0x4a4078=_0x5d35b5['lastChild'])||'CloseTag'!=_0x4a4078['name']&&'SelfClosingTag'!=_0x4a4078['name'])?_0x224897['lineIndent'](_0x5d35b5['from'])+_0x224897['unit']:null;}}),foldNodeProp['add']({'Element'(_0x1f844b){let _0x1c6ee1=_0x1f844b['firstChild'],_0x125e51=_0x1f844b['lastChild'];return _0x1c6ee1&&'OpenTag'==_0x1c6ee1['name']?{'from':_0x1c6ee1['to'],'to':'CloseTag'==_0x125e51['name']?_0x125e51['from']:_0x1f844b['to']}:null;}}),bracketMatchingHandle['add']({'OpenTag\x20CloseTag':_0x43a49d=>_0x43a49d['getChild']('TagName')})]}),'languageData':{'commentTokens':{'block':{'open':'<!--','close':'-->'}},'indentOnInput':/^\s*<\/\w+\W$/,'wordChars':'-_'}}),htmlLanguage=htmlPlain['configure']({'wrap':configureNesting(defaultNesting,defaultAttrs)});function html(_0x1b5881={}){let _0x310668,_0x2bd278='';!0x1===_0x1b5881['matchClosingTags']&&(_0x2bd278='noMatch'),!0x0===_0x1b5881['selfClosingTags']&&(_0x2bd278=(_0x2bd278?_0x2bd278+'\x20':'')+'selfClosing'),(_0x1b5881['nestedLanguages']&&_0x1b5881['nestedLanguages']['length']||_0x1b5881['nestedAttributes']&&_0x1b5881['nestedAttributes']['length'])&&(_0x310668=configureNesting((_0x1b5881['nestedLanguages']||[])['concat'](defaultNesting),(_0x1b5881['nestedAttributes']||[])['concat'](defaultAttrs)));let _0x3f2209=_0x310668?htmlPlain['configure']({'wrap':_0x310668,'dialect':_0x2bd278}):_0x2bd278?htmlLanguage['configure']({'dialect':_0x2bd278}):htmlLanguage;return new LanguageSupport(_0x3f2209,[htmlLanguage['data']['of']({'autocomplete':htmlCompletionSourceWith(_0x1b5881)}),!0x1!==_0x1b5881['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']((_0x3e658e,_0x108028,_0x40c26a,_0x25b1f8,_0x261880)=>{if(_0x3e658e['composing']||_0x3e658e['state']['readOnly']||_0x108028!=_0x40c26a||'>'!=_0x25b1f8&&'/'!=_0x25b1f8||!htmlLanguage['isActiveAt'](_0x3e658e['state'],_0x108028,-0x1))return!0x1;let _0x5f31d6=_0x261880(),{state:_0x2ed5b7}=_0x5f31d6,_0x40de3c=_0x2ed5b7['changeByRange'](_0x63abdc=>{var _0x1f1127,_0x4a5bf9,_0x235937;let _0x17b01c,_0x4a652d=_0x2ed5b7['doc']['sliceString'](_0x63abdc['from']-0x1,_0x63abdc['to'])==_0x25b1f8,{head:_0x1ea3fc}=_0x63abdc,_0x4a4032=syntaxTree(_0x2ed5b7)['resolveInner'](_0x1ea3fc,-0x1);if(_0x4a652d&&'>'==_0x25b1f8&&'EndTag'==_0x4a4032['name']){let _0x41e9f1=_0x4a4032['parent'];if('CloseTag'!=(null===(_0x4a5bf9=null===(_0x1f1127=_0x41e9f1['parent'])||void 0x0===_0x1f1127?void 0x0:_0x1f1127['lastChild'])||void 0x0===_0x4a5bf9?void 0x0:_0x4a5bf9['name'])&&(_0x17b01c=elementName(_0x2ed5b7['doc'],_0x41e9f1['parent'],_0x1ea3fc))&&!selfClosers['has'](_0x17b01c))return{'range':_0x63abdc,'changes':{'from':_0x1ea3fc,'to':_0x1ea3fc+('>'===_0x2ed5b7['doc']['sliceString'](_0x1ea3fc,_0x1ea3fc+0x1)?0x1:0x0),'insert':'</'+_0x17b01c+'>'}};}else{if(_0x4a652d&&'/'==_0x25b1f8&&'IncompleteCloseTag'==_0x4a4032['name']){let _0x2d91c4=_0x4a4032['parent'];if(_0x4a4032['from']==_0x1ea3fc-0x2&&'CloseTag'!=(null===(_0x235937=_0x2d91c4['lastChild'])||void 0x0===_0x235937?void 0x0:_0x235937['name'])&&(_0x17b01c=elementName(_0x2ed5b7['doc'],_0x2d91c4,_0x1ea3fc))&&!selfClosers['has'](_0x17b01c)){let _0x350c58=_0x1ea3fc+('>'===_0x2ed5b7['doc']['sliceString'](_0x1ea3fc,_0x1ea3fc+0x1)?0x1:0x0),_0x58743b=_0x17b01c+'>';return{'range':EditorSelection['cursor'](_0x1ea3fc+_0x58743b['length'],-0x1),'changes':{'from':_0x1ea3fc,'to':_0x350c58,'insert':_0x58743b}};}}}return{'range':_0x63abdc};});return!_0x40de3c['changes']['empty']&&(_0x3e658e['dispatch']([_0x5f31d6,_0x2ed5b7['update'](_0x40de3c,{'userEvent':'input.complete','scrollIntoView':!0x0})]),!0x0);});class CompositeBlock{static['create'](_0xecc330,_0x1a6050,_0x4ca214,_0x4caaa9,_0x57a1b7){return new CompositeBlock(_0xecc330,_0x1a6050,_0x4ca214,_0x4caaa9+(_0x4caaa9<<0x8)+_0xecc330+(_0x1a6050<<0x4)|0x0,_0x57a1b7,[],[]);}constructor(_0x3c1e6b,_0x1014d7,_0xe3222e,_0x1a2cfa,_0x5a1f17,_0x3ca2e4,_0x33b470){this['type']=_0x3c1e6b,this['value']=_0x1014d7,this['from']=_0xe3222e,this['hash']=_0x1a2cfa,this['end']=_0x5a1f17,this['children']=_0x3ca2e4,this['positions']=_0x33b470,this['hashProp']=[[NodeProp['contextHash'],_0x1a2cfa]];}['addChild'](_0x226814,_0x11b59c){_0x226814['prop'](NodeProp['contextHash'])!=this['hash']&&(_0x226814=new Tree(_0x226814['type'],_0x226814['children'],_0x226814['positions'],_0x226814['length'],this['hashProp'])),this['children']['push'](_0x226814),this['positions']['push'](_0x11b59c);}['toTree'](_0x49105d,_0x2242b2=this['end']){let _0x164ee9=this['children']['length']-0x1;return _0x164ee9>=0x0&&(_0x2242b2=Math['max'](_0x2242b2,this['positions'][_0x164ee9]+this['children'][_0x164ee9]['length']+this['from'])),new Tree(_0x49105d['types'][this['type']],this['children'],this['positions'],_0x2242b2-this['from'])['balance']({'makeTree':(_0x346fa1,_0x407dc8,_0x5552ba)=>new Tree(NodeType['none'],_0x346fa1,_0x407dc8,_0x5552ba,this['hashProp'])});}}var Type;!function(_0x1d7abe){_0x1d7abe[_0x1d7abe['Document']=0x1]='Document',_0x1d7abe[_0x1d7abe['CodeBlock']=0x2]='CodeBlock',_0x1d7abe[_0x1d7abe['FencedCode']=0x3]='FencedCode',_0x1d7abe[_0x1d7abe['Blockquote']=0x4]='Blockquote',_0x1d7abe[_0x1d7abe['HorizontalRule']=0x5]='HorizontalRule',_0x1d7abe[_0x1d7abe['BulletList']=0x6]='BulletList',_0x1d7abe[_0x1d7abe['OrderedList']=0x7]='OrderedList',_0x1d7abe[_0x1d7abe['ListItem']=0x8]='ListItem',_0x1d7abe[_0x1d7abe['ATXHeading1']=0x9]='ATXHeading1',_0x1d7abe[_0x1d7abe['ATXHeading2']=0xa]='ATXHeading2',_0x1d7abe[_0x1d7abe['ATXHeading3']=0xb]='ATXHeading3',_0x1d7abe[_0x1d7abe['ATXHeading4']=0xc]='ATXHeading4',_0x1d7abe[_0x1d7abe['ATXHeading5']=0xd]='ATXHeading5',_0x1d7abe[_0x1d7abe['ATXHeading6']=0xe]='ATXHeading6',_0x1d7abe[_0x1d7abe['SetextHeading1']=0xf]='SetextHeading1',_0x1d7abe[_0x1d7abe['SetextHeading2']=0x10]='SetextHeading2',_0x1d7abe[_0x1d7abe['HTMLBlock']=0x11]='HTMLBlock',_0x1d7abe[_0x1d7abe['LinkReference']=0x12]='LinkReference',_0x1d7abe[_0x1d7abe['Paragraph']=0x13]='Paragraph',_0x1d7abe[_0x1d7abe['CommentBlock']=0x14]='CommentBlock',_0x1d7abe[_0x1d7abe['ProcessingInstructionBlock']=0x15]='ProcessingInstructionBlock',_0x1d7abe[_0x1d7abe['Escape']=0x16]='Escape',_0x1d7abe[_0x1d7abe['Entity']=0x17]='Entity',_0x1d7abe[_0x1d7abe['HardBreak']=0x18]='HardBreak',_0x1d7abe[_0x1d7abe['Emphasis']=0x19]='Emphasis',_0x1d7abe[_0x1d7abe['StrongEmphasis']=0x1a]='StrongEmphasis',_0x1d7abe[_0x1d7abe['Link']=0x1b]='Link',_0x1d7abe[_0x1d7abe['Image']=0x1c]='Image',_0x1d7abe[_0x1d7abe['InlineCode']=0x1d]='InlineCode',_0x1d7abe[_0x1d7abe['HTMLTag']=0x1e]='HTMLTag',_0x1d7abe[_0x1d7abe['Comment']=0x1f]='Comment',_0x1d7abe[_0x1d7abe['ProcessingInstruction']=0x20]='ProcessingInstruction',_0x1d7abe[_0x1d7abe['Autolink']=0x21]='Autolink',_0x1d7abe[_0x1d7abe['HeaderMark']=0x22]='HeaderMark',_0x1d7abe[_0x1d7abe['QuoteMark']=0x23]='QuoteMark',_0x1d7abe[_0x1d7abe['ListMark']=0x24]='ListMark',_0x1d7abe[_0x1d7abe['LinkMark']=0x25]='LinkMark',_0x1d7abe[_0x1d7abe['EmphasisMark']=0x26]='EmphasisMark',_0x1d7abe[_0x1d7abe['CodeMark']=0x27]='CodeMark',_0x1d7abe[_0x1d7abe['CodeText']=0x28]='CodeText',_0x1d7abe[_0x1d7abe['CodeInfo']=0x29]='CodeInfo',_0x1d7abe[_0x1d7abe['LinkTitle']=0x2a]='LinkTitle',_0x1d7abe[_0x1d7abe['LinkLabel']=0x2b]='LinkLabel',_0x1d7abe[_0x1d7abe['URL']=0x2c]='URL';}(Type||(Type={}));class LeafBlock{constructor(_0x581abc,_0x1a80b3){this['start']=_0x581abc,this['content']=_0x1a80b3,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 _0x38a5e6=this['skipSpace'](this['basePos']);this['indent']=this['countIndent'](_0x38a5e6,this['pos'],this['indent']),this['pos']=_0x38a5e6,this['next']=_0x38a5e6==this['text']['length']?-0x1:this['text']['charCodeAt'](_0x38a5e6);}['skipSpace'](_0xa604ec){return skipSpace(this['text'],_0xa604ec);}['reset'](_0x438027){for(this['text']=_0x438027,this['baseIndent']=this['basePos']=this['pos']=this['indent']=0x0,this['forwardInner'](),this['depth']=0x1;this['markers']['length'];)this['markers']['pop']();}['moveBase'](_0x24992b){this['basePos']=_0x24992b,this['baseIndent']=this['countIndent'](_0x24992b,this['pos'],this['indent']);}['moveBaseColumn'](_0x253554){this['baseIndent']=_0x253554,this['basePos']=this['findColumn'](_0x253554);}['addMarker'](_0x41fee1){this['markers']['push'](_0x41fee1);}['countIndent'](_0x65b9e3,_0xd6f38f=0x0,_0x57cf1=0x0){for(let _0x2e4c38=_0xd6f38f;_0x2e4c38<_0x65b9e3;_0x2e4c38++)_0x57cf1+=0x9==this['text']['charCodeAt'](_0x2e4c38)?0x4-_0x57cf1%0x4:0x1;return _0x57cf1;}['findColumn'](_0x2748cd){let _0x2a3341=0x0;for(let _0x308f18=0x0;_0x2a3341<this['text']['length']&&_0x308f18<_0x2748cd;_0x2a3341++)_0x308f18+=0x9==this['text']['charCodeAt'](_0x2a3341)?0x4-_0x308f18%0x4:0x1;return _0x2a3341;}['scrub'](){if(!this['baseIndent'])return this['text'];let _0xa2da87='';for(let _0xd6ff20=0x0;_0xd6ff20<this['basePos'];_0xd6ff20++)_0xa2da87+='\x20';return _0xa2da87+this['text']['slice'](this['basePos']);}}function skipForList(_0x5d7096,_0x4ab059,_0x5aa111){if(_0x5aa111['pos']==_0x5aa111['text']['length']||_0x5d7096!=_0x4ab059['block']&&_0x5aa111['indent']>=_0x4ab059['stack'][_0x5aa111['depth']+0x1]['value']+_0x5aa111['baseIndent'])return!0x0;if(_0x5aa111['indent']>=_0x5aa111['baseIndent']+0x4)return!0x1;let _0xbea2ff=(_0x5d7096['type']==Type['OrderedList']?isOrderedList:isBulletList)(_0x5aa111,_0x4ab059,!0x1);return _0xbea2ff>0x0&&(_0x5d7096['type']!=Type['BulletList']||isHorizontalRule(_0x5aa111,_0x4ab059,!0x1)<0x0)&&_0x5aa111['text']['charCodeAt'](_0x5aa111['pos']+_0xbea2ff-0x1)==_0x5d7096['value'];}const DefaultSkipMarkup={[Type['Blockquote']]:(_0x5c00e0,_0x3952b5,_0x268956)=>0x3e==_0x268956['next']&&(_0x268956['markers']['push'](elt(Type['QuoteMark'],_0x3952b5['lineStart']+_0x268956['pos'],_0x3952b5['lineStart']+_0x268956['pos']+0x1)),_0x268956['moveBase'](_0x268956['pos']+(space(_0x268956['text']['charCodeAt'](_0x268956['pos']+0x1))?0x2:0x1)),_0x5c00e0['end']=_0x3952b5['lineStart']+_0x268956['text']['length'],!0x0),[Type['ListItem']]:(_0x2693b8,_0x12a069,_0x2993f9)=>!(_0x2993f9['indent']<_0x2993f9['baseIndent']+_0x2693b8['value']&&_0x2993f9['next']>-0x1)&&(_0x2993f9['moveBaseColumn'](_0x2993f9['baseIndent']+_0x2693b8['value']),!0x0),[Type['OrderedList']]:skipForList,[Type['BulletList']]:skipForList,[Type['Document']]:()=>!0x0};function space(_0x1c06a6){return 0x20==_0x1c06a6||0x9==_0x1c06a6||0xa==_0x1c06a6||0xd==_0x1c06a6;}function skipSpace(_0x1bcbe0,_0x197d15=0x0){for(;_0x197d15<_0x1bcbe0['length']&&space(_0x1bcbe0['charCodeAt'](_0x197d15));)_0x197d15++;return _0x197d15;}function skipSpaceBack(_0x40a05f,_0xc384ba,_0x366a25){for(;_0xc384ba>_0x366a25&&space(_0x40a05f['charCodeAt'](_0xc384ba-0x1));)_0xc384ba--;return _0xc384ba;}function isFencedCode(_0x2e1943){if(0x60!=_0x2e1943['next']&&0x7e!=_0x2e1943['next'])return-0x1;let _0x7533db=_0x2e1943['pos']+0x1;for(;_0x7533db<_0x2e1943['text']['length']&&_0x2e1943['text']['charCodeAt'](_0x7533db)==_0x2e1943['next'];)_0x7533db++;if(_0x7533db<_0x2e1943['pos']+0x3)return-0x1;if(0x60==_0x2e1943['next']){for(let _0x15bb6f=_0x7533db;_0x15bb6f<_0x2e1943['text']['length'];_0x15bb6f++)if(0x60==_0x2e1943['text']['charCodeAt'](_0x15bb6f))return-0x1;}return _0x7533db;}function isBlockquote(_0xa75d98){return 0x3e!=_0xa75d98['next']?-0x1:0x20==_0xa75d98['text']['charCodeAt'](_0xa75d98['pos']+0x1)?0x2:0x1;}function isHorizontalRule(_0x4d0194,_0x584839,_0x18ea65){if(0x2a!=_0x4d0194['next']&&0x2d!=_0x4d0194['next']&&0x5f!=_0x4d0194['next'])return-0x1;let _0x27bc0a=0x1;for(let _0x5dc637=_0x4d0194['pos']+0x1;_0x5dc637<_0x4d0194['text']['length'];_0x5dc637++){let _0x1f4cce=_0x4d0194['text']['charCodeAt'](_0x5dc637);if(_0x1f4cce==_0x4d0194['next'])_0x27bc0a++;else{if(!space(_0x1f4cce))return-0x1;}}return _0x18ea65&&0x2d==_0x4d0194['next']&&isSetextUnderline(_0x4d0194)>-0x1&&_0x4d0194['depth']==_0x584839['stack']['length']&&_0x584839['parser']['leafBlockParsers']['indexOf'](DefaultLeafBlocks['SetextHeading'])>-0x1||_0x27bc0a<0x3?-0x1:0x1;}function inList(_0x389298,_0x10742a){for(let _0x4eb19e=_0x389298['stack']['length']-0x1;_0x4eb19e>=0x0;_0x4eb19e--)if(_0x389298['stack'][_0x4eb19e]['type']==_0x10742a)return!0x0;return!0x1;}function isBulletList(_0x177a59,_0x35b0d4,_0x4e8592){return 0x2d!=_0x177a59['next']&&0x2b!=_0x177a59['next']&&0x2a!=_0x177a59['next']||_0x177a59['pos']!=_0x177a59['text']['length']-0x1&&!space(_0x177a59['text']['charCodeAt'](_0x177a59['pos']+0x1))||!(!_0x4e8592||inList(_0x35b0d4,Type['BulletList'])||_0x177a59['skipSpace'](_0x177a59['pos']+0x2)<_0x177a59['text']['length'])?-0x1:0x1;}function isOrderedList(_0x2374fa,_0x395a9a,_0x5d29fa){let _0x2c21cf=_0x2374fa['pos'],_0x567b59=_0x2374fa['next'];for(;_0x567b59>=0x30&&_0x567b59<=0x39;){if(_0x2c21cf++,_0x2c21cf==_0x2374fa['text']['length'])return-0x1;_0x567b59=_0x2374fa['text']['charCodeAt'](_0x2c21cf);}return _0x2c21cf==_0x2374fa['pos']||_0x2c21cf>_0x2374fa['pos']+0x9||0x2e!=_0x567b59&&0x29!=_0x567b59||_0x2c21cf<_0x2374fa['text']['length']-0x1&&!space(_0x2374fa['text']['charCodeAt'](_0x2c21cf+0x1))||_0x5d29fa&&!inList(_0x395a9a,Type['OrderedList'])&&(_0x2374fa['skipSpace'](_0x2c21cf+0x1)==_0x2374fa['text']['length']||_0x2c21cf>_0x2374fa['pos']+0x1||0x31!=_0x2374fa['next'])?-0x1:_0x2c21cf+0x1-_0x2374fa['pos'];}function isAtxHeading(_0x4c0570){if(0x23!=_0x4c0570['next'])return-0x1;let _0x4f0f45=_0x4c0570['pos']+0x1;for(;_0x4f0f45<_0x4c0570['text']['length']&&0x23==_0x4c0570['text']['charCodeAt'](_0x4f0f45);)_0x4f0f45++;if(_0x4f0f45<_0x4c0570['text']['length']&&0x20!=_0x4c0570['text']['charCodeAt'](_0x4f0f45))return-0x1;let _0x278423=_0x4f0f45-_0x4c0570['pos'];return _0x278423>0x6?-0x1:_0x278423;}function isSetextUnderline(_0x4dfb7a){if(0x2d!=_0x4dfb7a['next']&&0x3d!=_0x4dfb7a['next']||_0x4dfb7a['indent']>=_0x4dfb7a['baseIndent']+0x4)return-0x1;let _0x2374f1=_0x4dfb7a['pos']+0x1;for(;_0x2374f1<_0x4dfb7a['text']['length']&&_0x4dfb7a['text']['charCodeAt'](_0x2374f1)==_0x4dfb7a['next'];)_0x2374f1++;let _0x421fee=_0x2374f1;for(;_0x2374f1<_0x4dfb7a['text']['length']&&space(_0x4dfb7a['text']['charCodeAt'](_0x2374f1));)_0x2374f1++;return _0x2374f1==_0x4dfb7a['text']['length']?_0x421fee:-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(_0x1448b2,_0x1c8cf9,_0x14cfe9){if(0x3c!=_0x1448b2['next'])return-0x1;let _0x16c2c0=_0x1448b2['text']['slice'](_0x1448b2['pos']);for(let _0x2a7baa=0x0,_0x32cd9c=HTMLBlockStyle['length']-(_0x14cfe9?0x1:0x0);_0x2a7baa<_0x32cd9c;_0x2a7baa++)if(HTMLBlockStyle[_0x2a7baa][0x0]['test'](_0x16c2c0))return _0x2a7baa;return-0x1;}function getListIndent(_0x779c19,_0x3af79a){let _0x520727=_0x779c19['countIndent'](_0x3af79a,_0x779c19['pos'],_0x779c19['indent']),_0x2add9b=_0x779c19['countIndent'](_0x779c19['skipSpace'](_0x3af79a),_0x3af79a,_0x520727);return _0x2add9b>=_0x520727+0x5?_0x520727+0x1:_0x2add9b;}function addCodeText(_0x2f7d5d,_0x26d211,_0x12decf){let _0x487831=_0x2f7d5d['length']-0x1;_0x487831>=0x0&&_0x2f7d5d[_0x487831]['to']==_0x26d211&&_0x2f7d5d[_0x487831]['type']==Type['CodeText']?_0x2f7d5d[_0x487831]['to']=_0x12decf:_0x2f7d5d['push'](elt(Type['CodeText'],_0x26d211,_0x12decf));}const DefaultBlockParsers={'LinkReference':void 0x0,'IndentedCode'(_0xe8178f,_0x1c06ce){let _0x25fb8f=_0x1c06ce['baseIndent']+0x4;if(_0x1c06ce['indent']<_0x25fb8f)return!0x1;let _0x166098=_0x1c06ce['findColumn'](_0x25fb8f),_0x173ed3=_0xe8178f['lineStart']+_0x166098,_0x51fc87=_0xe8178f['lineStart']+_0x1c06ce['text']['length'],_0x56ef70=[],_0x116400=[];for(addCodeText(_0x56ef70,_0x173ed3,_0x51fc87);_0xe8178f['nextLine']()&&_0x1c06ce['depth']>=_0xe8178f['stack']['length'];)if(_0x1c06ce['pos']==_0x1c06ce['text']['length']){addCodeText(_0x116400,_0xe8178f['lineStart']-0x1,_0xe8178f['lineStart']);for(let _0x1ca30d of _0x1c06ce['markers'])_0x116400['push'](_0x1ca30d);}else{if(_0x1c06ce['indent']<_0x25fb8f)break;{if(_0x116400['length']){for(let _0x3586e0 of _0x116400)_0x3586e0['type']==Type['CodeText']?addCodeText(_0x56ef70,_0x3586e0['from'],_0x3586e0['to']):_0x56ef70['push'](_0x3586e0);_0x116400=[];}addCodeText(_0x56ef70,_0xe8178f['lineStart']-0x1,_0xe8178f['lineStart']);for(let _0x387874 of _0x1c06ce['markers'])_0x56ef70['push'](_0x387874);_0x51fc87=_0xe8178f['lineStart']+_0x1c06ce['text']['length'];let _0x5a4609=_0xe8178f['lineStart']+_0x1c06ce['findColumn'](_0x1c06ce['baseIndent']+0x4);_0x5a4609<_0x51fc87&&addCodeText(_0x56ef70,_0x5a4609,_0x51fc87);}}return _0x116400['length']&&(_0x116400=_0x116400['filter'](_0x1c0513=>_0x1c0513['type']!=Type['CodeText']),_0x116400['length']&&(_0x1c06ce['markers']=_0x116400['concat'](_0x1c06ce['markers']))),_0xe8178f['addNode'](_0xe8178f['buffer']['writeElements'](_0x56ef70,-_0x173ed3)['finish'](Type['CodeBlock'],_0x51fc87-_0x173ed3),_0x173ed3),!0x0;},'FencedCode'(_0xfe9e60,_0x52fc21){let _0xbe25=isFencedCode(_0x52fc21);if(_0xbe25<0x0)return!0x1;let _0xa5ecf9=_0xfe9e60['lineStart']+_0x52fc21['pos'],_0x4cb4a4=_0x52fc21['next'],_0x5d192a=_0xbe25-_0x52fc21['pos'],_0x349a20=_0x52fc21['skipSpace'](_0xbe25),_0xb3a970=skipSpaceBack(_0x52fc21['text'],_0x52fc21['text']['length'],_0x349a20),_0x38ae7c=[elt(Type['CodeMark'],_0xa5ecf9,_0xa5ecf9+_0x5d192a)];_0x349a20<_0xb3a970&&_0x38ae7c['push'](elt(Type['CodeInfo'],_0xfe9e60['lineStart']+_0x349a20,_0xfe9e60['lineStart']+_0xb3a970));for(let _0x4369b8=!0x0;_0xfe9e60['nextLine']()&&_0x52fc21['depth']>=_0xfe9e60['stack']['length'];_0x4369b8=!0x1){let _0x2881ac=_0x52fc21['pos'];if(_0x52fc21['indent']-_0x52fc21['baseIndent']<0x4){for(;_0x2881ac<_0x52fc21['text']['length']&&_0x52fc21['text']['charCodeAt'](_0x2881ac)==_0x4cb4a4;)_0x2881ac++;}if(_0x2881ac-_0x52fc21['pos']>=_0x5d192a&&_0x52fc21['skipSpace'](_0x2881ac)==_0x52fc21['text']['length']){for(let _0x33cbab of _0x52fc21['markers'])_0x38ae7c['push'](_0x33cbab);_0x38ae7c['push'](elt(Type['CodeMark'],_0xfe9e60['lineStart']+_0x52fc21['pos'],_0xfe9e60['lineStart']+_0x2881ac)),_0xfe9e60['nextLine']();break;}{_0x4369b8||addCodeText(_0x38ae7c,_0xfe9e60['lineStart']-0x1,_0xfe9e60['lineStart']);for(let _0x5d4d07 of _0x52fc21['markers'])_0x38ae7c['push'](_0x5d4d07);let _0x617d54=_0xfe9e60['lineStart']+_0x52fc21['basePos'],_0x4bdb4c=_0xfe9e60['lineStart']+_0x52fc21['text']['length'];_0x617d54<_0x4bdb4c&&addCodeText(_0x38ae7c,_0x617d54,_0x4bdb4c);}}return _0xfe9e60['addNode'](_0xfe9e60['buffer']['writeElements'](_0x38ae7c,-_0xa5ecf9)['finish'](Type['FencedCode'],_0xfe9e60['prevLineEnd']()-_0xa5ecf9),_0xa5ecf9),!0x0;},'Blockquote'(_0x31a6a7,_0x1e31a7){let _0x35e4ef=isBlockquote(_0x1e31a7);return!(_0x35e4ef<0x0)&&(_0x31a6a7['startContext'](Type['Blockquote'],_0x1e31a7['pos']),_0x31a6a7['addNode'](Type['QuoteMark'],_0x31a6a7['lineStart']+_0x1e31a7['pos'],_0x31a6a7['lineStart']+_0x1e31a7['pos']+0x1),_0x1e31a7['moveBase'](_0x1e31a7['pos']+_0x35e4ef),null);},'HorizontalRule'(_0x267d3b,_0x338e1c){if(isHorizontalRule(_0x338e1c,_0x267d3b,!0x1)<0x0)return!0x1;let _0xf18fa3=_0x267d3b['lineStart']+_0x338e1c['pos'];return _0x267d3b['nextLine'](),_0x267d3b['addNode'](Type['HorizontalRule'],_0xf18fa3),!0x0;},'BulletList'(_0x4849a3,_0x2f215f){let _0x4f7997=isBulletList(_0x2f215f,_0x4849a3,!0x1);if(_0x4f7997<0x0)return!0x1;_0x4849a3['block']['type']!=Type['BulletList']&&_0x4849a3['startContext'](Type['BulletList'],_0x2f215f['basePos'],_0x2f215f['next']);let _0x7e192d=getListIndent(_0x2f215f,_0x2f215f['pos']+0x1);return _0x4849a3['startContext'](Type['ListItem'],_0x2f215f['basePos'],_0x7e192d-_0x2f215f['baseIndent']),_0x4849a3['addNode'](Type['ListMark'],_0x4849a3['lineStart']+_0x2f215f['pos'],_0x4849a3['lineStart']+_0x2f215f['pos']+_0x4f7997),_0x2f215f['moveBaseColumn'](_0x7e192d),null;},'OrderedList'(_0x28ef6a,_0x319e67){let _0x5430f3=isOrderedList(_0x319e67,_0x28ef6a,!0x1);if(_0x5430f3<0x0)return!0x1;_0x28ef6a['block']['type']!=Type['OrderedList']&&_0x28ef6a['startContext'](Type['OrderedList'],_0x319e67['basePos'],_0x319e67['text']['charCodeAt'](_0x319e67['pos']+_0x5430f3-0x1));let _0x1a1151=getListIndent(_0x319e67,_0x319e67['pos']+_0x5430f3);return _0x28ef6a['startContext'](Type['ListItem'],_0x319e67['basePos'],_0x1a1151-_0x319e67['baseIndent']),_0x28ef6a['addNode'](Type['ListMark'],_0x28ef6a['lineStart']+_0x319e67['pos'],_0x28ef6a['lineStart']+_0x319e67['pos']+_0x5430f3),_0x319e67['moveBaseColumn'](_0x1a1151),null;},'ATXHeading'(_0x53309c,_0x4bb000){let _0x57577a=isAtxHeading(_0x4bb000);if(_0x57577a<0x0)return!0x1;let _0x277f5e=_0x4bb000['pos'],_0x45a732=_0x53309c['lineStart']+_0x277f5e,_0x15609a=skipSpaceBack(_0x4bb000['text'],_0x4bb000['text']['length'],_0x277f5e),_0x1ab6fd=_0x15609a;for(;_0x1ab6fd>_0x277f5e&&_0x4bb000['text']['charCodeAt'](_0x1ab6fd-0x1)==_0x4bb000['next'];)_0x1ab6fd--;_0x1ab6fd!=_0x15609a&&_0x1ab6fd!=_0x277f5e&&space(_0x4bb000['text']['charCodeAt'](_0x1ab6fd-0x1))||(_0x1ab6fd=_0x4bb000['text']['length']);let _0x4220c0=_0x53309c['buffer']['write'](Type['HeaderMark'],0x0,_0x57577a)['writeElements'](_0x53309c['parser']['parseInline'](_0x4bb000['text']['slice'](_0x277f5e+_0x57577a+0x1,_0x1ab6fd),_0x45a732+_0x57577a+0x1),-_0x45a732);_0x1ab6fd<_0x4bb000['text']['length']&&_0x4220c0['write'](Type['HeaderMark'],_0x1ab6fd-_0x277f5e,_0x15609a-_0x277f5e);let _0x5152d0=_0x4220c0['finish'](Type['ATXHeading1']-0x1+_0x57577a,_0x4bb000['text']['length']-_0x277f5e);return _0x53309c['nextLine'](),_0x53309c['addNode'](_0x5152d0,_0x45a732),!0x0;},'HTMLBlock'(_0x1d7db0,_0x3ddd57){let _0x5ab684=isHTMLBlock(_0x3ddd57,_0x1d7db0,!0x1);if(_0x5ab684<0x0)return!0x1;let _0x398e90=_0x1d7db0['lineStart']+_0x3ddd57['pos'],_0x50cad7=HTMLBlockStyle[_0x5ab684][0x1],_0x4cd5c6=[],_0x1ab485=_0x50cad7!=EmptyLine;for(;!_0x50cad7['test'](_0x3ddd57['text'])&&_0x1d7db0['nextLine']();){if(_0x3ddd57['depth']<_0x1d7db0['stack']['length']){_0x1ab485=!0x1;break;}for(let _0x59c31a of _0x3ddd57['markers'])_0x4cd5c6['push'](_0x59c31a);}_0x1ab485&&_0x1d7db0['nextLine']();let _0x345983=_0x50cad7==CommentEnd?Type['CommentBlock']:_0x50cad7==ProcessingEnd?Type['ProcessingInstructionBlock']:Type['HTMLBlock'],_0x1ead78=_0x1d7db0['prevLineEnd']();return _0x1d7db0['addNode'](_0x1d7db0['buffer']['writeElements'](_0x4cd5c6,-_0x398e90)['finish'](_0x345983,_0x1ead78-_0x398e90),_0x398e90),!0x0;},'SetextHeading':void 0x0};class LinkReferenceParser{constructor(_0x23f295){this['stage']=0x0,this['elts']=[],this['pos']=0x0,this['start']=_0x23f295['start'],this['advance'](_0x23f295['content']);}['nextLine'](_0xfd3d4f,_0x2c0f09,_0x48aed8){if(-0x1==this['stage'])return!0x1;let _0x525852=_0x48aed8['content']+'\x0a'+_0x2c0f09['scrub'](),_0xede399=this['advance'](_0x525852);return _0xede399>-0x1&&_0xede399<_0x525852['length']&&this['complete'](_0xfd3d4f,_0x48aed8,_0xede399);}['finish'](_0x4bb627,_0x3c23f2){return(0x2==this['stage']||0x3==this['stage'])&&skipSpace(_0x3c23f2['content'],this['pos'])==_0x3c23f2['content']['length']&&this['complete'](_0x4bb627,_0x3c23f2,_0x3c23f2['content']['length']);}['complete'](_0x5bcb4b,_0x367583,_0x12abf6){return _0x5bcb4b['addLeafElement'](_0x367583,elt(Type['LinkReference'],this['start'],this['start']+_0x12abf6,this['elts'])),!0x0;}['nextStage'](_0x549428){return _0x549428?(this['pos']=_0x549428['to']-this['start'],this['elts']['push'](_0x549428),this['stage']++,!0x0):(!0x1===_0x549428&&(this['stage']=-0x1),!0x1);}['advance'](_0x450403){for(;;){if(-0x1==this['stage'])return-0x1;if(0x0==this['stage']){if(!this['nextStage'](parseLinkLabel(_0x450403,this['pos'],this['start'],!0x0)))return-0x1;if(0x3a!=_0x450403['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 _0x52d917=skipSpace(_0x450403,this['pos']),_0x3f8861=0x0;if(_0x52d917>this['pos']){let _0x1b0fce=parseLinkTitle(_0x450403,_0x52d917,this['start']);if(_0x1b0fce){let _0xbbe30a=lineEnd(_0x450403,_0x1b0fce['to']-this['start']);_0xbbe30a>0x0&&(this['nextStage'](_0x1b0fce),_0x3f8861=_0xbbe30a);}}return _0x3f8861||(_0x3f8861=lineEnd(_0x450403,this['pos'])),_0x3f8861>0x0&&_0x3f8861<_0x450403['length']?_0x3f8861:-0x1;}return lineEnd(_0x450403,this['pos']);}if(!this['nextStage'](parseURL(_0x450403,skipSpace(_0x450403,this['pos']),this['start'])))return-0x1;}}}}function lineEnd(_0x706d73,_0x33cf09){for(;_0x33cf09<_0x706d73['length'];_0x33cf09++){let _0x22698e=_0x706d73['charCodeAt'](_0x33cf09);if(0xa==_0x22698e)break;if(!space(_0x22698e))return-0x1;}return _0x33cf09;}class SetextHeadingParser{['nextLine'](_0xfa86f8,_0x2affed,_0x29a756){let _0x366c38=_0x2affed['depth']<_0xfa86f8['stack']['length']?-0x1:isSetextUnderline(_0x2affed),_0x3c3d42=_0x2affed['next'];if(_0x366c38<0x0)return!0x1;let _0x40c176=elt(Type['HeaderMark'],_0xfa86f8['lineStart']+_0x2affed['pos'],_0xfa86f8['lineStart']+_0x366c38);return _0xfa86f8['nextLine'](),_0xfa86f8['addLeafElement'](_0x29a756,elt(0x3d==_0x3c3d42?Type['SetextHeading1']:Type['SetextHeading2'],_0x29a756['start'],_0xfa86f8['prevLineEnd'](),[..._0xfa86f8['parser']['parseInline'](_0x29a756['content'],_0x29a756['start']),_0x40c176])),!0x0;}['finish'](){return!0x1;}}const DefaultLeafBlocks={'LinkReference':(_0x17d050,_0x50dda1)=>0x5b==_0x50dda1['content']['charCodeAt'](0x0)?new LinkReferenceParser(_0x50dda1):null,'SetextHeading':()=>new SetextHeadingParser()},DefaultEndLeaf=[(_0x9d89ab,_0x2fe09d)=>isAtxHeading(_0x2fe09d)>=0x0,(_0x1dcc6f,_0x5e1f26)=>isFencedCode(_0x5e1f26)>=0x0,(_0xd4f461,_0x591f4b)=>isBlockquote(_0x591f4b)>=0x0,(_0x16f7b6,_0x157297)=>isBulletList(_0x157297,_0x16f7b6,!0x0)>=0x0,(_0x361666,_0xbab5e9)=>isOrderedList(_0xbab5e9,_0x361666,!0x0)>=0x0,(_0x20ab27,_0x172458)=>isHorizontalRule(_0x172458,_0x20ab27,!0x0)>=0x0,(_0x57c652,_0x2cf328)=>isHTMLBlock(_0x2cf328,_0x57c652,!0x0)>=0x0],scanLineResult={'text':'','end':0x0};class BlockContext{constructor(_0x280e4b,_0x1faee2,_0x3ab5f3,_0x4f113d){this['parser']=_0x280e4b,this['input']=_0x1faee2,this['ranges']=_0x4f113d,this['line']=new Line(),this['atEnd']=!0x1,this['reusePlaceholders']=new Map(),this['stoppedAt']=null,this['rangeI']=0x0,this['to']=_0x4f113d[_0x4f113d['length']-0x1]['to'],this['lineStart']=this['absoluteLineStart']=this['absoluteLineEnd']=_0x4f113d[0x0]['from'],this['block']=CompositeBlock['create'](Type['Document'],0x0,this['lineStart'],0x0,0x0),this['stack']=[this['block']],this['fragments']=_0x3ab5f3['length']?new FragmentCursor(_0x3ab5f3,_0x1faee2):null,this['readLine']();}get['parsedPos'](){return this['absoluteLineStart'];}['advance'](){if(null!=this['stoppedAt']&&this['absoluteLineStart']>this['stoppedAt'])return this['finish']();let {line:_0x354df9}=this;for(;;){for(let _0x408b65=0x0;;){let _0x2919d7=_0x354df9['depth']<this['stack']['length']?this['stack'][this['stack']['length']-0x1]:null;for(;_0x408b65<_0x354df9['markers']['length']&&(!_0x2919d7||_0x354df9['markers'][_0x408b65]['from']<_0x2919d7['end']);){let _0x4d24f1=_0x354df9['markers'][_0x408b65++];this['addNode'](_0x4d24f1['type'],_0x4d24f1['from'],_0x4d24f1['to']);}if(!_0x2919d7)break;this['finishContext']();}if(_0x354df9['pos']<_0x354df9['text']['length'])break;if(!this['nextLine']())return this['finish']();}if(this['fragments']&&this['reuseFragment'](_0x354df9['basePos']))return null;t:for(;;){for(let _0x2ad5e3 of this['parser']['blockParsers'])if(_0x2ad5e3){let _0x52fde1=_0x2ad5e3(this,_0x354df9);if(0x0!=_0x52fde1){if(0x1==_0x52fde1)return null;_0x354df9['forward']();continue t;}}break;}let _0x47c630=new LeafBlock(this['lineStart']+_0x354df9['pos'],_0x354df9['text']['slice'](_0x354df9['pos']));for(let _0x441cdd of this['parser']['leafBlockParsers'])if(_0x441cdd){let _0x18b00e=_0x441cdd(this,_0x47c630);_0x18b00e&&_0x47c630['parsers']['push'](_0x18b00e);}t:for(;this['nextLine']()&&_0x354df9['pos']!=_0x354df9['text']['length'];){if(_0x354df9['indent']<_0x354df9['baseIndent']+0x4){for(let _0xf42011 of this['parser']['endLeafBlock'])if(_0xf42011(this,_0x354df9,_0x47c630))break t;}for(let _0x3544bb of _0x47c630['parsers'])if(_0x3544bb['nextLine'](this,_0x354df9,_0x47c630))return null;_0x47c630['content']+='\x0a'+_0x354df9['scrub']();for(let _0x372d6b of _0x354df9['markers'])_0x47c630['marks']['push'](_0x372d6b);}return this['finishLeaf'](_0x47c630),null;}['stopAt'](_0xcc02a7){if(null!=this['stoppedAt']&&this['stoppedAt']<_0xcc02a7)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0xcc02a7;}['reuseFragment'](_0x1ff4f8){if(!this['fragments']['moveTo'](this['absoluteLineStart']+_0x1ff4f8,this['absoluteLineStart'])||!this['fragments']['matches'](this['block']['hash']))return!0x1;let _0x425efb=this['fragments']['takeNodes'](this);return!!_0x425efb&&(this['absoluteLineStart']+=_0x425efb,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'](_0x271ca0=this['depth']-0x1){return this['parser']['nodeSet']['types'][this['stack'][_0x271ca0]['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'](_0x4a9fcc){let _0x55a05d=scanLineResult;if(_0x55a05d['end']=_0x4a9fcc,_0x4a9fcc>=this['to'])_0x55a05d['text']='';else{if(_0x55a05d['text']=this['lineChunkAt'](_0x4a9fcc),_0x55a05d['end']+=_0x55a05d['text']['length'],this['ranges']['length']>0x1){let _0xed451a=this['absoluteLineStart'],_0x43b26f=this['rangeI'];for(;this['ranges'][_0x43b26f]['to']<_0x55a05d['end'];){_0x43b26f++;let _0x331d99=this['ranges'][_0x43b26f]['from'],_0x48499d=this['lineChunkAt'](_0x331d99);_0x55a05d['end']=_0x331d99+_0x48499d['length'],_0x55a05d['text']=_0x55a05d['text']['slice'](0x0,this['ranges'][_0x43b26f-0x1]['to']-_0xed451a)+_0x48499d,_0xed451a=_0x55a05d['end']-_0x55a05d['text']['length'];}}}return _0x55a05d;}['readLine'](){let {line:_0x4e2a1d}=this,{text:_0x5e3bfe,end:_0x5b2e2c}=this['scanLine'](this['absoluteLineStart']);for(this['absoluteLineEnd']=_0x5b2e2c,_0x4e2a1d['reset'](_0x5e3bfe);_0x4e2a1d['depth']<this['stack']['length'];_0x4e2a1d['depth']++){let _0x1f4817=this['stack'][_0x4e2a1d['depth']],_0x3d550f=this['parser']['skipContextMarkup'][_0x1f4817['type']];if(!_0x3d550f)throw new Error('Unhandled\x20block\x20context\x20'+Type[_0x1f4817['type']]);let _0xdec9e0=this['line']['markers']['length'];if(!_0x3d550f(_0x1f4817,this,_0x4e2a1d)){this['line']['markers']['length']>_0xdec9e0&&(_0x1f4817['end']=this['line']['markers'][this['line']['markers']['length']-0x1]['to']);break;}_0x4e2a1d['forward']();}}['lineChunkAt'](_0x65bf86){let _0x1838b4,_0x511361=this['input']['chunk'](_0x65bf86);if(this['input']['lineChunks'])_0x1838b4='\x0a'==_0x511361?'':_0x511361;else{let _0xfd0446=_0x511361['indexOf']('\x0a');_0x1838b4=_0xfd0446<0x0?_0x511361:_0x511361['slice'](0x0,_0xfd0446);}return _0x65bf86+_0x1838b4['length']>this['to']?_0x1838b4['slice'](0x0,this['to']-_0x65bf86):_0x1838b4;}['prevLineEnd'](){return this['atEnd']?this['lineStart']:this['lineStart']-0x1;}['startContext'](_0x3af70a,_0x4b08cf,_0x284a0f=0x0){this['block']=CompositeBlock['create'](_0x3af70a,_0x284a0f,this['lineStart']+_0x4b08cf,this['block']['hash'],this['lineStart']+this['line']['text']['length']),this['stack']['push'](this['block']);}['startComposite'](_0x25b17c,_0x5aec84,_0x213e77=0x0){this['startContext'](this['parser']['getNodeType'](_0x25b17c),_0x5aec84,_0x213e77);}['addNode'](_0x341308,_0x59bf38,_0xcf1d16){'number'==typeof _0x341308&&(_0x341308=new Tree(this['parser']['nodeSet']['types'][_0x341308],none,none,(null!=_0xcf1d16?_0xcf1d16:this['prevLineEnd']())-_0x59bf38)),this['block']['addChild'](_0x341308,_0x59bf38-this['block']['from']);}['addElement'](_0x5b1b9c){this['block']['addChild'](_0x5b1b9c['toTree'](this['parser']['nodeSet']),_0x5b1b9c['from']-this['block']['from']);}['addLeafElement'](_0x5eaa59,_0x2b18d7){this['addNode'](this['buffer']['writeElements'](injectMarks(_0x2b18d7['children'],_0x5eaa59['marks']),-_0x2b18d7['from'])['finish'](_0x2b18d7['type'],_0x2b18d7['to']-_0x2b18d7['from']),_0x2b18d7['from']);}['finishContext'](){let _0xd9436d=this['stack']['pop'](),_0x2ad58c=this['stack'][this['stack']['length']-0x1];_0x2ad58c['addChild'](_0xd9436d['toTree'](this['parser']['nodeSet']),_0xd9436d['from']-_0x2ad58c['from']),this['block']=_0x2ad58c;}['finish'](){for(;this['stack']['length']>0x1;)this['finishContext']();return this['addGaps'](this['block']['toTree'](this['parser']['nodeSet'],this['lineStart']));}['addGaps'](_0x58128e){return this['ranges']['length']>0x1?injectGaps(this['ranges'],0x0,_0x58128e['topNode'],this['ranges'][0x0]['from'],this['reusePlaceholders']):_0x58128e;}['finishLeaf'](_0x4e5ab7){for(let _0x9e096a of _0x4e5ab7['parsers'])if(_0x9e096a['finish'](this,_0x4e5ab7))return;let _0x3125f6=injectMarks(this['parser']['parseInline'](_0x4e5ab7['content'],_0x4e5ab7['start']),_0x4e5ab7['marks']);this['addNode'](this['buffer']['writeElements'](_0x3125f6,-_0x4e5ab7['start'])['finish'](Type['Paragraph'],_0x4e5ab7['content']['length']),_0x4e5ab7['start']);}['elt'](_0x347022,_0x1bbb88,_0x50f8df,_0x47481d){return'string'==typeof _0x347022?elt(this['parser']['getNodeType'](_0x347022),_0x1bbb88,_0x50f8df,_0x47481d):new TreeElement(_0x347022,_0x1bbb88);}get['buffer'](){return new Buffer$1(this['parser']['nodeSet']);}}function injectGaps(_0x5ced99,_0x5048a8,_0x59fe1a,_0x1b9f01,_0x19b4d4){let _0x1b0a6a=_0x5ced99[_0x5048a8]['to'],_0x15c1f3=[],_0x24bbf8=[],_0x2ecbd2=_0x59fe1a['from']+_0x1b9f01;function _0x8c6b9a(_0x324648,_0x517e9d){for(;_0x517e9d?_0x324648>=_0x1b0a6a:_0x324648>_0x1b0a6a;){let _0x4931d3=_0x5ced99[_0x5048a8+0x1]['from']-_0x1b0a6a;_0x1b9f01+=_0x4931d3,_0x324648+=_0x4931d3,_0x5048a8++,_0x1b0a6a=_0x5ced99[_0x5048a8]['to'];}}for(let _0x33eb48=_0x59fe1a['firstChild'];_0x33eb48;_0x33eb48=_0x33eb48['nextSibling']){_0x8c6b9a(_0x33eb48['from']+_0x1b9f01,!0x0);let _0xf56f82,_0x52d63b=_0x33eb48['from']+_0x1b9f01,_0x593b3f=_0x19b4d4['get'](_0x33eb48['tree']);_0x593b3f?_0xf56f82=_0x593b3f:_0x33eb48['to']+_0x1b9f01>_0x1b0a6a?(_0xf56f82=injectGaps(_0x5ced99,_0x5048a8,_0x33eb48,_0x1b9f01,_0x19b4d4),_0x8c6b9a(_0x33eb48['to']+_0x1b9f01,!0x1)):_0xf56f82=_0x33eb48['toTree'](),_0x15c1f3['push'](_0xf56f82),_0x24bbf8['push'](_0x52d63b-_0x2ecbd2);}return _0x8c6b9a(_0x59fe1a['to']+_0x1b9f01,!0x1),new Tree(_0x59fe1a['type'],_0x15c1f3,_0x24bbf8,_0x59fe1a['to']+_0x1b9f01-_0x2ecbd2,_0x59fe1a['tree']?_0x59fe1a['tree']['propValues']:void 0x0);}class MarkdownParser extends Parser{constructor(_0x1c7f91,_0x31dd07,_0x2ce946,_0x4ece74,_0x497e4c,_0x266ae6,_0x1b1f1c,_0x4eb7d8,_0x4276ff){super(),this['nodeSet']=_0x1c7f91,this['blockParsers']=_0x31dd07,this['leafBlockParsers']=_0x2ce946,this['blockNames']=_0x4ece74,this['endLeafBlock']=_0x497e4c,this['skipContextMarkup']=_0x266ae6,this['inlineParsers']=_0x1b1f1c,this['inlineNames']=_0x4eb7d8,this['wrappers']=_0x4276ff,this['nodeTypes']=Object['create'](null);for(let t of _0x1c7f91['types'])this['nodeTypes'][t['name']]=t['id'];}['createParse'](_0x49a64c,_0x2a798f,_0x2b90eb){let _0x3f1289=new BlockContext(this,_0x49a64c,_0x2a798f,_0x2b90eb);for(let _0xb34866 of this['wrappers'])_0x3f1289=_0xb34866(_0x3f1289,_0x49a64c,_0x2a798f,_0x2b90eb);return _0x3f1289;}['configure'](_0x22882c){let _0x5d58f2=resolveConfig(_0x22882c);if(!_0x5d58f2)return this;let {nodeSet:_0xf90382,skipContextMarkup:_0x1a8a84}=this,_0x5a93e2=this['blockParsers']['slice'](),_0x354b6a=this['leafBlockParsers']['slice'](),_0x1e9d7c=this['blockNames']['slice'](),_0xa3a27a=this['inlineParsers']['slice'](),_0x44c182=this['inlineNames']['slice'](),_0x3eb60d=this['endLeafBlock']['slice'](),_0xc77a2c=this['wrappers'];if(nonEmpty(_0x5d58f2['defineNodes'])){_0x1a8a84=Object['assign']({},_0x1a8a84);let _0x2994a2,_0xe276f2=_0xf90382['types']['slice']();for(let _0x34c139 of _0x5d58f2['defineNodes']){let {name:_0x1d0e4f,block:_0x5922a1,composite:_0x19d4eb,style:_0x528f6d}='string'==typeof _0x34c139?{'name':_0x34c139}:_0x34c139;if(_0xe276f2['some'](t=>t['name']==_0x1d0e4f))continue;_0x19d4eb&&(_0x1a8a84[_0xe276f2['length']]=(_0x50bedf,_0x28b9fc,_0x2572ed)=>_0x19d4eb(_0x28b9fc,_0x2572ed,_0x50bedf['value']));let _0x150592=_0xe276f2['length'],_0x4445d8=_0x19d4eb?['Block','BlockContext']:_0x5922a1?_0x150592>=Type['ATXHeading1']&&_0x150592<=Type['SetextHeading2']?['Block','LeafBlock','Heading']:['Block','LeafBlock']:void 0x0;_0xe276f2['push'](NodeType['define']({'id':_0x150592,'name':_0x1d0e4f,'props':_0x4445d8&&[[NodeProp['group'],_0x4445d8]]})),_0x528f6d&&(_0x2994a2||(_0x2994a2={}),Array['isArray'](_0x528f6d)||_0x528f6d instanceof Tag?_0x2994a2[_0x1d0e4f]=_0x528f6d:Object['assign'](_0x2994a2,_0x528f6d));}_0xf90382=new NodeSet(_0xe276f2),_0x2994a2&&(_0xf90382=_0xf90382['extend'](styleTags(_0x2994a2)));}if(nonEmpty(_0x5d58f2['props'])&&(_0xf90382=_0xf90382['extend'](..._0x5d58f2['props'])),nonEmpty(_0x5d58f2['remove']))for(let _0x34c789 of _0x5d58f2['remove']){let _0xad3e02=this['blockNames']['indexOf'](_0x34c789),_0xabfef1=this['inlineNames']['indexOf'](_0x34c789);_0xad3e02>-0x1&&(_0x5a93e2[_0xad3e02]=_0x354b6a[_0xad3e02]=void 0x0),_0xabfef1>-0x1&&(_0xa3a27a[_0xabfef1]=void 0x0);}if(nonEmpty(_0x5d58f2['parseBlock']))for(let _0x46139d of _0x5d58f2['parseBlock']){let _0x4056c6=_0x1e9d7c['indexOf'](_0x46139d['name']);if(_0x4056c6>-0x1)_0x5a93e2[_0x4056c6]=_0x46139d['parse'],_0x354b6a[_0x4056c6]=_0x46139d['leaf'];else{let _0x205fc6=_0x46139d['before']?findName(_0x1e9d7c,_0x46139d['before']):_0x46139d['after']?findName(_0x1e9d7c,_0x46139d['after'])+0x1:_0x1e9d7c['length']-0x1;_0x5a93e2['splice'](_0x205fc6,0x0,_0x46139d['parse']),_0x354b6a['splice'](_0x205fc6,0x0,_0x46139d['leaf']),_0x1e9d7c['splice'](_0x205fc6,0x0,_0x46139d['name']);}_0x46139d['endLeaf']&&_0x3eb60d['push'](_0x46139d['endLeaf']);}if(nonEmpty(_0x5d58f2['parseInline']))for(let _0x3c8a53 of _0x5d58f2['parseInline']){let _0x1a7f7a=_0x44c182['indexOf'](_0x3c8a53['name']);if(_0x1a7f7a>-0x1)_0xa3a27a[_0x1a7f7a]=_0x3c8a53['parse'];else{let _0x5c3d21=_0x3c8a53['before']?findName(_0x44c182,_0x3c8a53['before']):_0x3c8a53['after']?findName(_0x44c182,_0x3c8a53['after'])+0x1:_0x44c182['length']-0x1;_0xa3a27a['splice'](_0x5c3d21,0x0,_0x3c8a53['parse']),_0x44c182['splice'](_0x5c3d21,0x0,_0x3c8a53['name']);}}return _0x5d58f2['wrap']&&(_0xc77a2c=_0xc77a2c['concat'](_0x5d58f2['wrap'])),new MarkdownParser(_0xf90382,_0x5a93e2,_0x354b6a,_0x1e9d7c,_0x3eb60d,_0x1a8a84,_0xa3a27a,_0x44c182,_0xc77a2c);}['getNodeType'](_0xe20e99){let _0x340766=this['nodeTypes'][_0xe20e99];if(null==_0x340766)throw new RangeError('Unknown\x20node\x20type\x20\x27'+_0xe20e99+'\x27');return _0x340766;}['parseInline'](_0x460d04,_0x5a3774){let _0x17dbc0=new InlineContext(this,_0x460d04,_0x5a3774);t:for(let _0x343e1f=_0x5a3774;_0x343e1f<_0x17dbc0['end'];){let _0xa3938a=_0x17dbc0['char'](_0x343e1f);for(let _0x11fa58 of this['inlineParsers'])if(_0x11fa58){let _0x1a2967=_0x11fa58(_0x17dbc0,_0xa3938a,_0x343e1f);if(_0x1a2967>=0x0){_0x343e1f=_0x1a2967;continue t;}}_0x343e1f++;}return _0x17dbc0['resolveMarkers'](0x0);}}function nonEmpty(_0x2ca9ec){return null!=_0x2ca9ec&&_0x2ca9ec['length']>0x0;}function resolveConfig(_0x1239e7){if(!Array['isArray'](_0x1239e7))return _0x1239e7;if(0x0==_0x1239e7['length'])return null;let _0x5317e1=resolveConfig(_0x1239e7[0x0]);if(0x1==_0x1239e7['length'])return _0x5317e1;let _0x1feab9=resolveConfig(_0x1239e7['slice'](0x1));if(!_0x1feab9||!_0x5317e1)return _0x5317e1||_0x1feab9;let _0x31b14b=(_0x3f19f7,_0x3175a7)=>(_0x3f19f7||none)['concat'](_0x3175a7||none),_0x5b16a3=_0x5317e1['wrap'],_0x4e96a7=_0x1feab9['wrap'];return{'props':_0x31b14b(_0x5317e1['props'],_0x1feab9['props']),'defineNodes':_0x31b14b(_0x5317e1['defineNodes'],_0x1feab9['defineNodes']),'parseBlock':_0x31b14b(_0x5317e1['parseBlock'],_0x1feab9['parseBlock']),'parseInline':_0x31b14b(_0x5317e1['parseInline'],_0x1feab9['parseInline']),'remove':_0x31b14b(_0x5317e1['remove'],_0x1feab9['remove']),'wrap':_0x5b16a3?_0x4e96a7?(_0x249874,_0x8446ce,_0x11a88,_0x18e896)=>_0x5b16a3(_0x4e96a7(_0x249874,_0x8446ce,_0x11a88,_0x18e896),_0x8446ce,_0x11a88,_0x18e896):_0x5b16a3:_0x4e96a7};}function findName(_0x38b88d,_0x8535e7){let _0x4961ab=_0x38b88d['indexOf'](_0x8535e7);if(_0x4961ab<0x0)throw new RangeError('Position\x20specified\x20relative\x20to\x20unknown\x20parser\x20'+_0x8535e7);return _0x4961ab;}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(_0x5a80e3){this['nodeSet']=_0x5a80e3,this['content']=[],this['nodes']=[];}['write'](_0x48593a,_0x42c38b,_0x2facc3,_0x4e916a=0x0){return this['content']['push'](_0x48593a,_0x42c38b,_0x2facc3,0x4+0x4*_0x4e916a),this;}['writeElements'](_0x1cd6d4,_0x58832f=0x0){for(let _0x2187b5 of _0x1cd6d4)_0x2187b5['writeTo'](this,_0x58832f);return this;}['finish'](_0x1503d9,_0x38c5ce){return Tree['build']({'buffer':this['content'],'nodeSet':this['nodeSet'],'reused':this['nodes'],'topID':_0x1503d9,'length':_0x38c5ce});}},Element$1=class{constructor(_0xc88f5e,_0x558899,_0xcd418d,_0x235a2b=none){this['type']=_0xc88f5e,this['from']=_0x558899,this['to']=_0xcd418d,this['children']=_0x235a2b;}['writeTo'](_0xc9f13c,_0x373307){let _0x289f25=_0xc9f13c['content']['length'];_0xc9f13c['writeElements'](this['children'],_0x373307),_0xc9f13c['content']['push'](this['type'],this['from']+_0x373307,this['to']+_0x373307,_0xc9f13c['content']['length']+0x4-_0x289f25);}['toTree'](_0x4fdc9c){return new Buffer$1(_0x4fdc9c)['writeElements'](this['children'],-this['from'])['finish'](this['type'],this['to']-this['from']);}};class TreeElement{constructor(_0x288b79,_0x4982a4){this['tree']=_0x288b79,this['from']=_0x4982a4;}get['to'](){return this['from']+this['tree']['length'];}get['type'](){return this['tree']['type']['id'];}get['children'](){return none;}['writeTo'](_0x50341c,_0x15584d){_0x50341c['nodes']['push'](this['tree']),_0x50341c['content']['push'](_0x50341c['nodes']['length']-0x1,this['from']+_0x15584d,this['to']+_0x15584d,-0x1);}['toTree'](){return this['tree'];}}function elt(_0x364794,_0xc7ea0a,_0x52bbc1,_0x144f66){return new Element$1(_0x364794,_0xc7ea0a,_0x52bbc1,_0x144f66);}const EmphasisUnderscore={'resolve':'Emphasis','mark':'EmphasisMark'},EmphasisAsterisk={'resolve':'Emphasis','mark':'EmphasisMark'},LinkStart={},ImageStart={};class InlineDelimiter{constructor(_0x37e1f2,_0x57bfd9,_0x35e9a8,_0x293001){this['type']=_0x37e1f2,this['from']=_0x57bfd9,this['to']=_0x35e9a8,this['side']=_0x293001;}}const Escapable='!\x22#$%&\x27()*+,-./:;<=>?@[\x5c]^_`{|}~';let Punctuation=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Punctuation=new RegExp('[\x5cp{S}|\x5cp{P}]','u');}catch(_0x3c508b){}const DefaultInline={'Escape'(_0x4f31a0,_0x4c9da1,_0x2aece7){if(0x5c!=_0x4c9da1||_0x2aece7==_0x4f31a0['end']-0x1)return-0x1;let _0x1ecca0=_0x4f31a0['char'](_0x2aece7+0x1);for(let _0x47db06=0x0;_0x47db06<Escapable['length'];_0x47db06++)if(Escapable['charCodeAt'](_0x47db06)==_0x1ecca0)return _0x4f31a0['append'](elt(Type['Escape'],_0x2aece7,_0x2aece7+0x2));return-0x1;},'Entity'(_0x352bcb,_0x4a5bc8,_0x305c28){if(0x26!=_0x4a5bc8)return-0x1;let _0x370934=/^(?:#\d+|#x[a-f\d]+|\w+);/i['exec'](_0x352bcb['slice'](_0x305c28+0x1,_0x305c28+0x1f));return _0x370934?_0x352bcb['append'](elt(Type['Entity'],_0x305c28,_0x305c28+0x1+_0x370934[0x0]['length'])):-0x1;},'InlineCode'(_0x4bfd85,_0x456368,_0x585c38){if(0x60!=_0x456368||_0x585c38&&0x60==_0x4bfd85['char'](_0x585c38-0x1))return-0x1;let _0x199137=_0x585c38+0x1;for(;_0x199137<_0x4bfd85['end']&&0x60==_0x4bfd85['char'](_0x199137);)_0x199137++;let _0x369eac=_0x199137-_0x585c38,_0x209460=0x0;for(;_0x199137<_0x4bfd85['end'];_0x199137++)if(0x60==_0x4bfd85['char'](_0x199137)){if(_0x209460++,_0x209460==_0x369eac&&0x60!=_0x4bfd85['char'](_0x199137+0x1))return _0x4bfd85['append'](elt(Type['InlineCode'],_0x585c38,_0x199137+0x1,[elt(Type['CodeMark'],_0x585c38,_0x585c38+_0x369eac),elt(Type['CodeMark'],_0x199137+0x1-_0x369eac,_0x199137+0x1)]));}else _0x209460=0x0;return-0x1;},'HTMLTag'(_0x8d49f8,_0xb7e4c5,_0x4ca1f9){if(0x3c!=_0xb7e4c5||_0x4ca1f9==_0x8d49f8['end']-0x1)return-0x1;let _0x1a961c=_0x8d49f8['slice'](_0x4ca1f9+0x1,_0x8d49f8['end']),_0x578fde=/^(?:[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'](_0x1a961c);if(_0x578fde)return _0x8d49f8['append'](elt(Type['Autolink'],_0x4ca1f9,_0x4ca1f9+0x1+_0x578fde[0x0]['length'],[elt(Type['LinkMark'],_0x4ca1f9,_0x4ca1f9+0x1),elt(Type['URL'],_0x4ca1f9+0x1,_0x4ca1f9+_0x578fde[0x0]['length']),elt(Type['LinkMark'],_0x4ca1f9+_0x578fde[0x0]['length'],_0x4ca1f9+0x1+_0x578fde[0x0]['length'])]));let _0x2dc846=/^!--[^>](?:-[^-]|[^-])*?-->/i['exec'](_0x1a961c);if(_0x2dc846)return _0x8d49f8['append'](elt(Type['Comment'],_0x4ca1f9,_0x4ca1f9+0x1+_0x2dc846[0x0]['length']));let _0x11e7cc=/^\?[^]*?\?>/['exec'](_0x1a961c);if(_0x11e7cc)return _0x8d49f8['append'](elt(Type['ProcessingInstruction'],_0x4ca1f9,_0x4ca1f9+0x1+_0x11e7cc[0x0]['length']));let _0x598374=/^(?:![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'](_0x1a961c);return _0x598374?_0x8d49f8['append'](elt(Type['HTMLTag'],_0x4ca1f9,_0x4ca1f9+0x1+_0x598374[0x0]['length'])):-0x1;},'Emphasis'(_0x4ee249,_0x29d6e7,_0x187df4){if(0x5f!=_0x29d6e7&&0x2a!=_0x29d6e7)return-0x1;let _0x15b077=_0x187df4+0x1;for(;_0x4ee249['char'](_0x15b077)==_0x29d6e7;)_0x15b077++;let _0x50eeb2=_0x4ee249['slice'](_0x187df4-0x1,_0x187df4),_0x1c4171=_0x4ee249['slice'](_0x15b077,_0x15b077+0x1),_0x132d37=Punctuation['test'](_0x50eeb2),_0x404088=Punctuation['test'](_0x1c4171),_0x1af99e=/\s|^$/['test'](_0x50eeb2),_0x5ed431=/\s|^$/['test'](_0x1c4171),_0x40b4e6=!_0x5ed431&&(!_0x404088||_0x1af99e||_0x132d37),_0x77e010=!_0x1af99e&&(!_0x132d37||_0x5ed431||_0x404088),_0xcfdf82=_0x40b4e6&&(0x2a==_0x29d6e7||!_0x77e010||_0x132d37),_0xacec34=_0x77e010&&(0x2a==_0x29d6e7||!_0x40b4e6||_0x404088);return _0x4ee249['append'](new InlineDelimiter(0x5f==_0x29d6e7?EmphasisUnderscore:EmphasisAsterisk,_0x187df4,_0x15b077,(_0xcfdf82?0x1:0x0)|(_0xacec34?0x2:0x0)));},'HardBreak'(_0x43f025,_0x505b4f,_0x4bad58){if(0x5c==_0x505b4f&&0xa==_0x43f025['char'](_0x4bad58+0x1))return _0x43f025['append'](elt(Type['HardBreak'],_0x4bad58,_0x4bad58+0x2));if(0x20==_0x505b4f){let _0x430df5=_0x4bad58+0x1;for(;0x20==_0x43f025['char'](_0x430df5);)_0x430df5++;if(0xa==_0x43f025['char'](_0x430df5)&&_0x430df5>=_0x4bad58+0x2)return _0x43f025['append'](elt(Type['HardBreak'],_0x4bad58,_0x430df5+0x1));}return-0x1;},'Link':(_0x20ea7c,_0x36116d,_0x28afaa)=>0x5b==_0x36116d?_0x20ea7c['append'](new InlineDelimiter(LinkStart,_0x28afaa,_0x28afaa+0x1,0x1)):-0x1,'Image':(_0x14d1e1,_0x209d7f,_0x4c910a)=>0x21==_0x209d7f&&0x5b==_0x14d1e1['char'](_0x4c910a+0x1)?_0x14d1e1['append'](new InlineDelimiter(ImageStart,_0x4c910a,_0x4c910a+0x2,0x1)):-0x1,'LinkEnd'(_0x478d5c,_0x388f23,_0x10741f){if(0x5d!=_0x388f23)return-0x1;for(let _0x32a1ad=_0x478d5c['parts']['length']-0x1;_0x32a1ad>=0x0;_0x32a1ad--){let _0x3f4571=_0x478d5c['parts'][_0x32a1ad];if(_0x3f4571 instanceof InlineDelimiter&&(_0x3f4571['type']==LinkStart||_0x3f4571['type']==ImageStart)){if(!_0x3f4571['side']||_0x478d5c['skipSpace'](_0x3f4571['to'])==_0x10741f&&!/[(\[]/['test'](_0x478d5c['slice'](_0x10741f+0x1,_0x10741f+0x2)))return _0x478d5c['parts'][_0x32a1ad]=null,-0x1;let _0x35c2a9=_0x478d5c['takeContent'](_0x32a1ad),_0x4fd824=_0x478d5c['parts'][_0x32a1ad]=finishLink(_0x478d5c,_0x35c2a9,_0x3f4571['type']==LinkStart?Type['Link']:Type['Image'],_0x3f4571['from'],_0x10741f+0x1);if(_0x3f4571['type']==LinkStart)for(let _0x366512=0x0;_0x366512<_0x32a1ad;_0x366512++){let _0x18810b=_0x478d5c['parts'][_0x366512];_0x18810b instanceof InlineDelimiter&&_0x18810b['type']==LinkStart&&(_0x18810b['side']=0x0);}return _0x4fd824['to'];}}return-0x1;}};function finishLink(_0x4b0bef,_0x4f0956,_0x1893c3,_0x2f5f20,_0x399bfd){let {text:_0x3b187e}=_0x4b0bef,_0x5c494d=_0x4b0bef['char'](_0x399bfd),_0x2a3105=_0x399bfd;if(_0x4f0956['unshift'](elt(Type['LinkMark'],_0x2f5f20,_0x2f5f20+(_0x1893c3==Type['Image']?0x2:0x1))),_0x4f0956['push'](elt(Type['LinkMark'],_0x399bfd-0x1,_0x399bfd)),0x28==_0x5c494d){let _0x78e58c,_0x142d58=_0x4b0bef['skipSpace'](_0x399bfd+0x1),_0x412679=parseURL(_0x3b187e,_0x142d58-_0x4b0bef['offset'],_0x4b0bef['offset']);_0x412679&&(_0x142d58=_0x4b0bef['skipSpace'](_0x412679['to']),_0x142d58!=_0x412679['to']&&(_0x78e58c=parseLinkTitle(_0x3b187e,_0x142d58-_0x4b0bef['offset'],_0x4b0bef['offset']),_0x78e58c&&(_0x142d58=_0x4b0bef['skipSpace'](_0x78e58c['to'])))),0x29==_0x4b0bef['char'](_0x142d58)&&(_0x4f0956['push'](elt(Type['LinkMark'],_0x399bfd,_0x399bfd+0x1)),_0x2a3105=_0x142d58+0x1,_0x412679&&_0x4f0956['push'](_0x412679),_0x78e58c&&_0x4f0956['push'](_0x78e58c),_0x4f0956['push'](elt(Type['LinkMark'],_0x142d58,_0x2a3105)));}else{if(0x5b==_0x5c494d){let _0x5dcef7=parseLinkLabel(_0x3b187e,_0x399bfd-_0x4b0bef['offset'],_0x4b0bef['offset'],!0x1);_0x5dcef7&&(_0x4f0956['push'](_0x5dcef7),_0x2a3105=_0x5dcef7['to']);}}return elt(_0x1893c3,_0x2f5f20,_0x2a3105,_0x4f0956);}function parseURL(_0x2d0e77,_0x18be54,_0x4a2bf9){if(0x3c==_0x2d0e77['charCodeAt'](_0x18be54)){for(let _0x3771c0=_0x18be54+0x1;_0x3771c0<_0x2d0e77['length'];_0x3771c0++){let _0x40609c=_0x2d0e77['charCodeAt'](_0x3771c0);if(0x3e==_0x40609c)return elt(Type['URL'],_0x18be54+_0x4a2bf9,_0x3771c0+0x1+_0x4a2bf9);if(0x3c==_0x40609c||0xa==_0x40609c)return!0x1;}return null;}{let _0xb6af01=0x0,_0x5e8783=_0x18be54;for(let _0x2a12a4=!0x1;_0x5e8783<_0x2d0e77['length'];_0x5e8783++){let _0x124cef=_0x2d0e77['charCodeAt'](_0x5e8783);if(space(_0x124cef))break;if(_0x2a12a4)_0x2a12a4=!0x1;else{if(0x28==_0x124cef)_0xb6af01++;else{if(0x29==_0x124cef){if(!_0xb6af01)break;_0xb6af01--;}else 0x5c==_0x124cef&&(_0x2a12a4=!0x0);}}}return _0x5e8783>_0x18be54?elt(Type['URL'],_0x18be54+_0x4a2bf9,_0x5e8783+_0x4a2bf9):_0x5e8783==_0x2d0e77['length']&&null;}}function parseLinkTitle(_0x2034ca,_0x32ce46,_0x13e21e){let _0x5b1ceb=_0x2034ca['charCodeAt'](_0x32ce46);if(0x27!=_0x5b1ceb&&0x22!=_0x5b1ceb&&0x28!=_0x5b1ceb)return!0x1;let _0x3a61f0=0x28==_0x5b1ceb?0x29:_0x5b1ceb;for(let _0x25c7f3=_0x32ce46+0x1,_0x1881e7=!0x1;_0x25c7f3<_0x2034ca['length'];_0x25c7f3++){let _0x442115=_0x2034ca['charCodeAt'](_0x25c7f3);if(_0x1881e7)_0x1881e7=!0x1;else{if(_0x442115==_0x3a61f0)return elt(Type['LinkTitle'],_0x32ce46+_0x13e21e,_0x25c7f3+0x1+_0x13e21e);0x5c==_0x442115&&(_0x1881e7=!0x0);}}return null;}function parseLinkLabel(_0x515b9c,_0x31c00a,_0x411c44,_0x3b90d2){for(let _0x20c9ba=!0x1,_0x1cd5f3=_0x31c00a+0x1,_0x102dcf=Math['min'](_0x515b9c['length'],_0x1cd5f3+0x3e7);_0x1cd5f3<_0x102dcf;_0x1cd5f3++){let _0xf5276b=_0x515b9c['charCodeAt'](_0x1cd5f3);if(_0x20c9ba)_0x20c9ba=!0x1;else{if(0x5d==_0xf5276b)return!_0x3b90d2&&elt(Type['LinkLabel'],_0x31c00a+_0x411c44,_0x1cd5f3+0x1+_0x411c44);if(_0x3b90d2&&!space(_0xf5276b)&&(_0x3b90d2=!0x1),0x5b==_0xf5276b)return!0x1;0x5c==_0xf5276b&&(_0x20c9ba=!0x0);}}return null;}class InlineContext{constructor(_0x40f00e,_0x21b9ef,_0x262b9f){this['parser']=_0x40f00e,this['text']=_0x21b9ef,this['offset']=_0x262b9f,this['parts']=[];}['char'](_0x12ef6a){return _0x12ef6a>=this['end']?-0x1:this['text']['charCodeAt'](_0x12ef6a-this['offset']);}get['end'](){return this['offset']+this['text']['length'];}['slice'](_0x1fcdf6,_0x13b046){return this['text']['slice'](_0x1fcdf6-this['offset'],_0x13b046-this['offset']);}['append'](_0x2552d2){return this['parts']['push'](_0x2552d2),_0x2552d2['to'];}['addDelimiter'](_0x536e68,_0x41fea5,_0x10e301,_0x41db68,_0x136fe9){return this['append'](new InlineDelimiter(_0x536e68,_0x41fea5,_0x10e301,(_0x41db68?0x1:0x0)|(_0x136fe9?0x2:0x0)));}get['hasOpenLink'](){for(let _0xb293e3=this['parts']['length']-0x1;_0xb293e3>=0x0;_0xb293e3--){let _0x548170=this['parts'][_0xb293e3];if(_0x548170 instanceof InlineDelimiter&&(_0x548170['type']==LinkStart||_0x548170['type']==ImageStart))return!0x0;}return!0x1;}['addElement'](_0x3c1724){return this['append'](_0x3c1724);}['resolveMarkers'](_0x2cfde8){for(let _0x5e6e6b=_0x2cfde8;_0x5e6e6b<this['parts']['length'];_0x5e6e6b++){let _0x23cffa=this['parts'][_0x5e6e6b];if(!(_0x23cffa instanceof InlineDelimiter&&_0x23cffa['type']['resolve']&&0x2&_0x23cffa['side']))continue;let _0x4a22c9,_0x2d8a47=_0x23cffa['type']==EmphasisUnderscore||_0x23cffa['type']==EmphasisAsterisk,_0x18cbe5=_0x23cffa['to']-_0x23cffa['from'],_0x5bdbc9=_0x5e6e6b-0x1;for(;_0x5bdbc9>=_0x2cfde8;_0x5bdbc9--){let _0x38ebc8=this['parts'][_0x5bdbc9];if(_0x38ebc8 instanceof InlineDelimiter&&0x1&_0x38ebc8['side']&&_0x38ebc8['type']==_0x23cffa['type']&&!(_0x2d8a47&&(0x1&_0x23cffa['side']||0x2&_0x38ebc8['side'])&&(_0x38ebc8['to']-_0x38ebc8['from']+_0x18cbe5)%0x3==0x0&&((_0x38ebc8['to']-_0x38ebc8['from'])%0x3||_0x18cbe5%0x3))){_0x4a22c9=_0x38ebc8;break;}}if(!_0x4a22c9)continue;let _0x10c335=_0x23cffa['type']['resolve'],_0x2e458d=[],_0x4a26bb=_0x4a22c9['from'],_0x55cb0a=_0x23cffa['to'];if(_0x2d8a47){let _0x14e382=Math['min'](0x2,_0x4a22c9['to']-_0x4a22c9['from'],_0x18cbe5);_0x4a26bb=_0x4a22c9['to']-_0x14e382,_0x55cb0a=_0x23cffa['from']+_0x14e382,_0x10c335=0x1==_0x14e382?'Emphasis':'StrongEmphasis';}_0x4a22c9['type']['mark']&&_0x2e458d['push'](this['elt'](_0x4a22c9['type']['mark'],_0x4a26bb,_0x4a22c9['to']));for(let _0x5ee9b8=_0x5bdbc9+0x1;_0x5ee9b8<_0x5e6e6b;_0x5ee9b8++)this['parts'][_0x5ee9b8]instanceof Element$1&&_0x2e458d['push'](this['parts'][_0x5ee9b8]),this['parts'][_0x5ee9b8]=null;_0x23cffa['type']['mark']&&_0x2e458d['push'](this['elt'](_0x23cffa['type']['mark'],_0x23cffa['from'],_0x55cb0a));let _0x2eda7b=this['elt'](_0x10c335,_0x4a26bb,_0x55cb0a,_0x2e458d);this['parts'][_0x5bdbc9]=_0x2d8a47&&_0x4a22c9['from']!=_0x4a26bb?new InlineDelimiter(_0x4a22c9['type'],_0x4a22c9['from'],_0x4a26bb,_0x4a22c9['side']):null,(this['parts'][_0x5e6e6b]=_0x2d8a47&&_0x23cffa['to']!=_0x55cb0a?new InlineDelimiter(_0x23cffa['type'],_0x55cb0a,_0x23cffa['to'],_0x23cffa['side']):null)?this['parts']['splice'](_0x5e6e6b,0x0,_0x2eda7b):this['parts'][_0x5e6e6b]=_0x2eda7b;}let _0x1436e5=[];for(let _0x48a21c=_0x2cfde8;_0x48a21c<this['parts']['length'];_0x48a21c++){let _0x1657dc=this['parts'][_0x48a21c];_0x1657dc instanceof Element$1&&_0x1436e5['push'](_0x1657dc);}return _0x1436e5;}['findOpeningDelimiter'](_0x11072d){for(let _0x262c93=this['parts']['length']-0x1;_0x262c93>=0x0;_0x262c93--){let _0x456c53=this['parts'][_0x262c93];if(_0x456c53 instanceof InlineDelimiter&&_0x456c53['type']==_0x11072d&&0x1&_0x456c53['side'])return _0x262c93;}return null;}['takeContent'](_0x490020){let _0x4c345f=this['resolveMarkers'](_0x490020);return this['parts']['length']=_0x490020,_0x4c345f;}['getDelimiterAt'](_0x53cdff){let _0x68bfd7=this['parts'][_0x53cdff];return _0x68bfd7 instanceof InlineDelimiter?_0x68bfd7:null;}['skipSpace'](_0x10bc8a){return skipSpace(this['text'],_0x10bc8a-this['offset'])+this['offset'];}['elt'](_0x54cd54,_0x4f0c8d,_0x240359,_0x404247){return'string'==typeof _0x54cd54?elt(this['parser']['getNodeType'](_0x54cd54),_0x4f0c8d,_0x240359,_0x404247):new TreeElement(_0x54cd54,_0x4f0c8d);}}function injectMarks(_0x38b672,_0x3027d6){if(!_0x3027d6['length'])return _0x38b672;if(!_0x38b672['length'])return _0x3027d6;let _0x204dc7=_0x38b672['slice'](),_0x28469d=0x0;for(let _0x569c41 of _0x3027d6){for(;_0x28469d<_0x204dc7['length']&&_0x204dc7[_0x28469d]['to']<_0x569c41['to'];)_0x28469d++;if(_0x28469d<_0x204dc7['length']&&_0x204dc7[_0x28469d]['from']<_0x569c41['from']){let _0x2568b7=_0x204dc7[_0x28469d];_0x2568b7 instanceof Element$1&&(_0x204dc7[_0x28469d]=new Element$1(_0x2568b7['type'],_0x2568b7['from'],_0x2568b7['to'],injectMarks(_0x2568b7['children'],[_0x569c41])));}else _0x204dc7['splice'](_0x28469d++,0x0,_0x569c41);}return _0x204dc7;}InlineContext['linkStart']=LinkStart,InlineContext['imageStart']=ImageStart;const NotLast=[Type['CodeBlock'],Type['ListItem'],Type['OrderedList'],Type['BulletList']];class FragmentCursor{constructor(_0x3b2f42,_0x13982c){this['fragments']=_0x3b2f42,this['input']=_0x13982c,this['i']=0x0,this['fragment']=null,this['fragmentEnd']=-0x1,this['cursor']=null,_0x3b2f42['length']&&(this['fragment']=_0x3b2f42[this['i']++]);}['nextFragment'](){this['fragment']=this['i']<this['fragments']['length']?this['fragments'][this['i']++]:null,this['cursor']=null,this['fragmentEnd']=-0x1;}['moveTo'](_0x596e63,_0x18d832){for(;this['fragment']&&this['fragment']['to']<=_0x596e63;)this['nextFragment']();if(!this['fragment']||this['fragment']['from']>(_0x596e63?_0x596e63-0x1:0x0))return!0x1;if(this['fragmentEnd']<0x0){let _0xa32655=this['fragment']['to'];for(;_0xa32655>0x0&&'\x0a'!=this['input']['read'](_0xa32655-0x1,_0xa32655);)_0xa32655--;this['fragmentEnd']=_0xa32655?_0xa32655-0x1:0x0;}let _0x517fd9=this['cursor'];_0x517fd9||(_0x517fd9=this['cursor']=this['fragment']['tree']['cursor'](),_0x517fd9['firstChild']());let _0x2d3ee4=_0x596e63+this['fragment']['offset'];for(;_0x517fd9['to']<=_0x2d3ee4;)if(!_0x517fd9['parent']())return!0x1;for(;;){if(_0x517fd9['from']>=_0x2d3ee4)return this['fragment']['from']<=_0x18d832;if(!_0x517fd9['childAfter'](_0x2d3ee4))return!0x1;}}['matches'](_0x2b6f3b){let _0x47e2b5=this['cursor']['tree'];return _0x47e2b5&&_0x47e2b5['prop'](NodeProp['contextHash'])==_0x2b6f3b;}['takeNodes'](_0x491e20){let _0x189172=this['cursor'],_0x1b183e=this['fragment']['offset'],_0x19c87a=this['fragmentEnd']-(this['fragment']['openEnd']?0x1:0x0),_0x58a60f=_0x491e20['absoluteLineStart'],_0x560acd=_0x58a60f,_0x4811dd=_0x491e20['block']['children']['length'],_0x30aeec=_0x560acd,_0x211a2e=_0x4811dd;for(;;){if(_0x189172['to']-_0x1b183e>_0x19c87a){if(_0x189172['type']['isAnonymous']&&_0x189172['firstChild']())continue;break;}let _0x29f8ec=toRelative(_0x189172['from']-_0x1b183e,_0x491e20['ranges']);if(_0x189172['to']-_0x1b183e<=_0x491e20['ranges'][_0x491e20['rangeI']]['to'])_0x491e20['addNode'](_0x189172['tree'],_0x29f8ec);else{let _0x229c04=new Tree(_0x491e20['parser']['nodeSet']['types'][Type['Paragraph']],[],[],0x0,_0x491e20['block']['hashProp']);_0x491e20['reusePlaceholders']['set'](_0x229c04,_0x189172['tree']),_0x491e20['addNode'](_0x229c04,_0x29f8ec);}if(_0x189172['type']['is']('Block')&&(NotLast['indexOf'](_0x189172['type']['id'])<0x0?(_0x560acd=_0x189172['to']-_0x1b183e,_0x4811dd=_0x491e20['block']['children']['length']):(_0x560acd=_0x30aeec,_0x4811dd=_0x211a2e,_0x30aeec=_0x189172['to']-_0x1b183e,_0x211a2e=_0x491e20['block']['children']['length'])),!_0x189172['nextSibling']())break;}for(;_0x491e20['block']['children']['length']>_0x4811dd;)_0x491e20['block']['children']['pop'](),_0x491e20['block']['positions']['pop']();return _0x560acd-_0x58a60f;}}function toRelative(_0x5da1d1,_0x67f4d0){let _0x2ce156=_0x5da1d1;for(let _0x525413=0x1;_0x525413<_0x67f4d0['length'];_0x525413++){let _0x4f995b=_0x67f4d0[_0x525413-0x1]['to'],_0x192dc8=_0x67f4d0[_0x525413]['from'];_0x4f995b<_0x5da1d1&&(_0x2ce156-=_0x192dc8-_0x4f995b);}return _0x2ce156;}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'](_0xf09029=>DefaultBlockParsers[_0xf09029]),Object['keys'](DefaultBlockParsers)['map'](_0x242933=>DefaultLeafBlocks[_0x242933]),Object['keys'](DefaultBlockParsers),DefaultEndLeaf,DefaultSkipMarkup,Object['keys'](DefaultInline)['map'](_0x29a475=>DefaultInline[_0x29a475]),Object['keys'](DefaultInline),[]);function leftOverSpace(_0x2bee3c,_0x5a2622,_0x45cc33){let _0x1ef4b9=[];for(let _0x4be4ce=_0x2bee3c['firstChild'],_0x18c819=_0x5a2622;;_0x4be4ce=_0x4be4ce['nextSibling']){let _0x408bc7=_0x4be4ce?_0x4be4ce['from']:_0x45cc33;if(_0x408bc7>_0x18c819&&_0x1ef4b9['push']({'from':_0x18c819,'to':_0x408bc7}),!_0x4be4ce)break;_0x18c819=_0x4be4ce['to'];}return _0x1ef4b9;}function parseCode(_0x59e533){let {codeParser:_0x25ffe6,htmlParser:_0x23aa03}=_0x59e533,_0x548ab9=parseMixed((_0x4d8315,_0x515553)=>{let _0x3cb552=_0x4d8315['type']['id'];if(!_0x25ffe6||_0x3cb552!=Type['CodeBlock']&&_0x3cb552!=Type['FencedCode']){if(_0x23aa03&&(_0x3cb552==Type['HTMLBlock']||_0x3cb552==Type['HTMLTag']||_0x3cb552==Type['CommentBlock']))return{'parser':_0x23aa03,'overlay':leftOverSpace(_0x4d8315['node'],_0x4d8315['from'],_0x4d8315['to'])};}else{let _0x4e30f3='';if(_0x3cb552==Type['FencedCode']){let _0x1c6035=_0x4d8315['node']['getChild'](Type['CodeInfo']);_0x1c6035&&(_0x4e30f3=_0x515553['read'](_0x1c6035['from'],_0x1c6035['to']));}let _0x41cfd7=_0x25ffe6(_0x4e30f3);if(_0x41cfd7)return{'parser':_0x41cfd7,'overlay':_0x4e0caf=>_0x4e0caf['type']['id']==Type['CodeText']};}return null;});return{'wrap':_0x548ab9};}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'(_0xcc4eab,_0x4204c1,_0x4a2913){if(0x7e!=_0x4204c1||0x7e!=_0xcc4eab['char'](_0x4a2913+0x1)||0x7e==_0xcc4eab['char'](_0x4a2913+0x2))return-0x1;let _0x2af429=_0xcc4eab['slice'](_0x4a2913-0x1,_0x4a2913),_0x2881be=_0xcc4eab['slice'](_0x4a2913+0x2,_0x4a2913+0x3),_0x572986=/\s|^$/['test'](_0x2af429),_0x392aa2=/\s|^$/['test'](_0x2881be),_0x4ab0ac=Punctuation['test'](_0x2af429),_0x54a583=Punctuation['test'](_0x2881be);return _0xcc4eab['addDelimiter'](StrikethroughDelim,_0x4a2913,_0x4a2913+0x2,!_0x392aa2&&(!_0x54a583||_0x572986||_0x4ab0ac),!_0x572986&&(!_0x4ab0ac||_0x392aa2||_0x54a583));},'after':'Emphasis'}]};function parseRow(_0x42f78e,_0x330c68,_0x580fe5=0x0,_0x3313f1,_0x5a59f0=0x0){let _0x390356=0x0,_0xc91c5c=!0x0,_0x12fb92=-0x1,_0x48232a=-0x1,_0x126b3b=!0x1,_0x59ed56=()=>{_0x3313f1['push'](_0x42f78e['elt']('TableCell',_0x5a59f0+_0x12fb92,_0x5a59f0+_0x48232a,_0x42f78e['parser']['parseInline'](_0x330c68['slice'](_0x12fb92,_0x48232a),_0x5a59f0+_0x12fb92)));};for(let _0x3a567e=_0x580fe5;_0x3a567e<_0x330c68['length'];_0x3a567e++){let _0x1dd311=_0x330c68['charCodeAt'](_0x3a567e);0x7c!=_0x1dd311||_0x126b3b?(_0x126b3b||0x20!=_0x1dd311&&0x9!=_0x1dd311)&&(_0x12fb92<0x0&&(_0x12fb92=_0x3a567e),_0x48232a=_0x3a567e+0x1):((!_0xc91c5c||_0x12fb92>-0x1)&&_0x390356++,_0xc91c5c=!0x1,_0x3313f1&&(_0x12fb92>-0x1&&_0x59ed56(),_0x3313f1['push'](_0x42f78e['elt']('TableDelimiter',_0x3a567e+_0x5a59f0,_0x3a567e+_0x5a59f0+0x1))),_0x12fb92=_0x48232a=-0x1),_0x126b3b=!_0x126b3b&&0x5c==_0x1dd311;}return _0x12fb92>-0x1&&(_0x390356++,_0x3313f1&&_0x59ed56()),_0x390356;}function hasPipe(_0x352b1d,_0x1d86c5){for(let _0x1fea1e=_0x1d86c5;_0x1fea1e<_0x352b1d['length'];_0x1fea1e++){let _0x23555d=_0x352b1d['charCodeAt'](_0x1fea1e);if(0x7c==_0x23555d)return!0x0;0x5c==_0x23555d&&_0x1fea1e++;}return!0x1;}const delimiterLine=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class TableParser{constructor(){this['rows']=null;}['nextLine'](_0x256211,_0x21f8ef,_0x4a7a8d){if(null==this['rows']){let _0x4b5b68;if(this['rows']=!0x1,(0x2d==_0x21f8ef['next']||0x3a==_0x21f8ef['next']||0x7c==_0x21f8ef['next'])&&delimiterLine['test'](_0x4b5b68=_0x21f8ef['text']['slice'](_0x21f8ef['pos']))){let _0x26f35e=[];parseRow(_0x256211,_0x4a7a8d['content'],0x0,_0x26f35e,_0x4a7a8d['start'])==parseRow(_0x256211,_0x4b5b68,_0x21f8ef['pos'])&&(this['rows']=[_0x256211['elt']('TableHeader',_0x4a7a8d['start'],_0x4a7a8d['start']+_0x4a7a8d['content']['length'],_0x26f35e),_0x256211['elt']('TableDelimiter',_0x256211['lineStart']+_0x21f8ef['pos'],_0x256211['lineStart']+_0x21f8ef['text']['length'])]);}}else{if(this['rows']){let _0x421ba4=[];parseRow(_0x256211,_0x21f8ef['text'],_0x21f8ef['pos'],_0x421ba4,_0x256211['lineStart']),this['rows']['push'](_0x256211['elt']('TableRow',_0x256211['lineStart']+_0x21f8ef['pos'],_0x256211['lineStart']+_0x21f8ef['text']['length'],_0x421ba4));}}return!0x1;}['finish'](_0x2d3e80,_0x413fa2){return!!this['rows']&&(_0x2d3e80['addLeafElement'](_0x413fa2,_0x2d3e80['elt']('Table',_0x413fa2['start'],_0x413fa2['start']+_0x413fa2['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':(_0x22ba57,_0x2391e0)=>hasPipe(_0x2391e0['content'],0x0)?new TableParser():null,'endLeaf'(_0x3cf111,_0x55b639,_0x3fd80a){if(_0x3fd80a['parsers']['some'](_0x204a52=>_0x204a52 instanceof TableParser)||!hasPipe(_0x55b639['text'],_0x55b639['basePos']))return!0x1;let _0x5cd4be=_0x3cf111['peekLine']();return delimiterLine['test'](_0x5cd4be)&&parseRow(_0x3cf111,_0x55b639['text'],_0x55b639['basePos'])==parseRow(_0x3cf111,_0x5cd4be,_0x55b639['basePos']);},'before':'SetextHeading'}]};class TaskParser{['nextLine'](){return!0x1;}['finish'](_0x2da6da,_0x3af080){return _0x2da6da['addLeafElement'](_0x3af080,_0x2da6da['elt']('Task',_0x3af080['start'],_0x3af080['start']+_0x3af080['content']['length'],[_0x2da6da['elt']('TaskMarker',_0x3af080['start'],_0x3af080['start']+0x3),..._0x2da6da['parser']['parseInline'](_0x3af080['content']['slice'](0x3),_0x3af080['start']+0x3)])),!0x0;}}const TaskList={'defineNodes':[{'name':'Task','block':!0x0,'style':tags$1['list']},{'name':'TaskMarker','style':tags$1['atom']}],'parseBlock':[{'name':'TaskList','leaf':(_0x5c4421,_0x33c898)=>/^\[[ xX]\][ \t]/['test'](_0x33c898['content'])&&'ListItem'==_0x5c4421['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(_0x77410f,_0x22d059,_0x3bf582,_0x2cf20){let _0xfa9b5=0x0;for(let _0x9b1b78=_0x22d059;_0x9b1b78<_0x3bf582;_0x9b1b78++)_0x77410f[_0x9b1b78]==_0x2cf20&&_0xfa9b5++;return _0xfa9b5;}function autolinkURLEnd(_0x58cd7e,_0x52c529){urlRE['lastIndex']=_0x52c529;let _0x59a70d=urlRE['exec'](_0x58cd7e);if(!_0x59a70d||lastTwoDomainWords['exec'](_0x59a70d[0x0])[0x0]['indexOf']('_')>-0x1)return-0x1;let _0x496108=_0x52c529+_0x59a70d[0x0]['length'];for(;;){let _0x551468,_0x1dc522=_0x58cd7e[_0x496108-0x1];if(/[?!.,:*_~]/['test'](_0x1dc522)||')'==_0x1dc522&&count(_0x58cd7e,_0x52c529,_0x496108,')')>count(_0x58cd7e,_0x52c529,_0x496108,'('))_0x496108--;else{if(';'!=_0x1dc522||!(_0x551468=/&(?:#\d+|#x[a-f\d]+|\w+);$/['exec'](_0x58cd7e['slice'](_0x52c529,_0x496108))))break;_0x496108=_0x52c529+_0x551468['index'];}}return _0x496108;}function autolinkEmailEnd(_0x1f707c,_0x1d436d){emailRE['lastIndex']=_0x1d436d;let _0x1934b=emailRE['exec'](_0x1f707c);if(!_0x1934b)return-0x1;let _0xc439b5=_0x1934b[0x0][_0x1934b[0x0]['length']-0x1];return'_'==_0xc439b5||'-'==_0xc439b5?-0x1:_0x1d436d+_0x1934b[0x0]['length']-('.'==_0xc439b5?0x1:0x0);}const Autolink={'parseInline':[{'name':'Autolink','parse'(_0x255177,_0x27eb1f,_0x563c9e){let _0x4ad62e=_0x563c9e-_0x255177['offset'];if(_0x4ad62e&&/\w/['test'](_0x255177['text'][_0x4ad62e-0x1]))return-0x1;autolinkRE['lastIndex']=_0x4ad62e;let _0x2bb64f=autolinkRE['exec'](_0x255177['text']),_0x38aa2c=-0x1;if(!_0x2bb64f)return-0x1;if(_0x2bb64f[0x1]||_0x2bb64f[0x2])(_0x38aa2c=autolinkURLEnd(_0x255177['text'],_0x4ad62e+_0x2bb64f[0x0]['length']),_0x38aa2c>-0x1&&_0x255177['hasOpenLink'])&&(_0x38aa2c=_0x4ad62e+/([^\[\]]|\[[^\]]*\])*/['exec'](_0x255177['text']['slice'](_0x4ad62e,_0x38aa2c))[0x0]['length']);else _0x2bb64f[0x3]?_0x38aa2c=autolinkEmailEnd(_0x255177['text'],_0x4ad62e):(_0x38aa2c=autolinkEmailEnd(_0x255177['text'],_0x4ad62e+_0x2bb64f[0x0]['length']),_0x38aa2c>-0x1&&'xmpp:'==_0x2bb64f[0x0]&&(xmppResourceRE['lastIndex']=_0x38aa2c,_0x2bb64f=xmppResourceRE['exec'](_0x255177['text']),_0x2bb64f&&(_0x38aa2c=_0x2bb64f['index']+_0x2bb64f[0x0]['length'])));return _0x38aa2c<0x0?-0x1:(_0x255177['addElement'](_0x255177['elt']('URL',_0x563c9e,_0x38aa2c+_0x255177['offset'])),_0x38aa2c+_0x255177['offset']);}}]},GFM=[Table,TaskList,Strikethrough,Autolink];function parseSubSuper(_0xc1054d,_0x176a38,_0x51dfe9){return(_0x136b48,_0x34ea6d,_0x4662f5)=>{if(_0x34ea6d!=_0xc1054d||_0x136b48['char'](_0x4662f5+0x1)==_0xc1054d)return-0x1;let _0x571fd4=[_0x136b48['elt'](_0x51dfe9,_0x4662f5,_0x4662f5+0x1)];for(let _0x3017ab=_0x4662f5+0x1;_0x3017ab<_0x136b48['end'];_0x3017ab++){let _0x553aae=_0x136b48['char'](_0x3017ab);if(_0x553aae==_0xc1054d)return _0x136b48['addElement'](_0x136b48['elt'](_0x176a38,_0x4662f5,_0x3017ab+0x1,_0x571fd4['concat'](_0x136b48['elt'](_0x51dfe9,_0x3017ab,_0x3017ab+0x1))));if(0x5c==_0x553aae&&_0x571fd4['push'](_0x136b48['elt']('Escape',_0x3017ab,0x2+_0x3017ab++)),space(_0x553aae))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'(_0x37937d,_0x2af740,_0x374641){let _0x42aeda;return 0x3a==_0x2af740&&(_0x42aeda=/^[a-zA-Z_0-9]+:/['exec'](_0x37937d['slice'](_0x374641+0x1,_0x37937d['end'])))?_0x37937d['addElement'](_0x37937d['elt']('Emoji',_0x374641,_0x374641+0x1+_0x42aeda[0x0]['length'])):-0x1;}}]},data=defineLanguageFacet({'commentTokens':{'block':{'open':'<!--','close':'-->'}}}),headingProp=new NodeProp(),commonmark=parser['configure']({'props':[foldNodeProp['add'](_0x31bfe5=>!_0x31bfe5['is']('Block')||_0x31bfe5['is']('Document')||null!=isHeading(_0x31bfe5)||isList(_0x31bfe5)?void 0x0:(_0x212f56,_0x4d732f)=>({'from':_0x4d732f['doc']['lineAt'](_0x212f56['from'])['to'],'to':_0x212f56['to']})),headingProp['add'](isHeading),indentNodeProp['add']({'Document':()=>null}),languageDataProp['add']({'Document':data})]});function isHeading(_0x174fbe){let _0x375638=/^(?:ATX|Setext)Heading(\d)$/['exec'](_0x174fbe['name']);return _0x375638?+_0x375638[0x1]:void 0x0;}function isList(_0x2899b){return'OrderedList'==_0x2899b['name']||'BulletList'==_0x2899b['name'];}function findSectionEnd(_0x416e2e,_0x258bd5){let _0x218d8d=_0x416e2e;for(;;){let _0x4c85db,_0x3369df=_0x218d8d['nextSibling'];if(!_0x3369df||null!=(_0x4c85db=isHeading(_0x3369df['type']))&&_0x4c85db<=_0x258bd5)break;_0x218d8d=_0x3369df;}return _0x218d8d['to'];}const headerIndent=foldService['of']((_0x524098,_0x4d8cdb,_0x5d7783)=>{for(let _0xad79e1=syntaxTree(_0x524098)['resolveInner'](_0x5d7783,-0x1);_0xad79e1&&!(_0xad79e1['from']<_0x4d8cdb);_0xad79e1=_0xad79e1['parent']){let _0x59ad1a=_0xad79e1['type']['prop'](headingProp);if(null==_0x59ad1a)continue;let _0xf4de9b=findSectionEnd(_0xad79e1,_0x59ad1a);if(_0xf4de9b>_0x5d7783)return{'from':_0x5d7783,'to':_0xf4de9b};}return null;});function mkLang(_0x48d0d3){return new Language(data,_0x48d0d3,[headerIndent],'markdown');}const commonmarkLanguage=mkLang(commonmark),extended=commonmark['configure']([GFM,Subscript,Superscript,Emoji,{'props':[foldNodeProp['add']({'Table':(_0x3dbe9b,_0x4bd29b)=>({'from':_0x4bd29b['doc']['lineAt'](_0x3dbe9b['from'])['to'],'to':_0x3dbe9b['to']})})]}]),markdownLanguage=mkLang(extended);function getCodeParser(_0x1231c1,_0x1e4bd2){return _0x349214=>{if(_0x349214&&_0x1231c1){let _0x921369=null;if(_0x349214=/\S*/['exec'](_0x349214)[0x0],_0x921369='function'==typeof _0x1231c1?_0x1231c1(_0x349214):LanguageDescription['matchLanguageName'](_0x1231c1,_0x349214,!0x0),_0x921369 instanceof LanguageDescription)return _0x921369['support']?_0x921369['support']['language']['parser']:ParseContext['getSkippingParser'](_0x921369['load']());if(_0x921369)return _0x921369['parser'];}return _0x1e4bd2?_0x1e4bd2['parser']:null;};}class Context{constructor(_0x30c960,_0x136fad,_0x381642,_0x411783,_0x231ab1,_0x1c664f,_0x473602){this['node']=_0x30c960,this['from']=_0x136fad,this['to']=_0x381642,this['spaceBefore']=_0x411783,this['spaceAfter']=_0x231ab1,this['type']=_0x1c664f,this['item']=_0x473602;}['blank'](_0x362ed2,_0x9c0ee6=!0x0){let _0x423594=this['spaceBefore']+('Blockquote'==this['node']['name']?'>':'');if(null!=_0x362ed2){for(;_0x423594['length']<_0x362ed2;)_0x423594+='\x20';return _0x423594;}for(let _0x447b2b=this['to']-this['from']-_0x423594['length']-this['spaceAfter']['length'];_0x447b2b>0x0;_0x447b2b--)_0x423594+='\x20';return _0x423594+(_0x9c0ee6?this['spaceAfter']:'');}['marker'](_0x91fdcd,_0x593a59){let _0x11c4d3='OrderedList'==this['node']['name']?String(+itemNumber(this['item'],_0x91fdcd)[0x2]+_0x593a59):'';return this['spaceBefore']+_0x11c4d3+this['type']+this['spaceAfter'];}}function getContext(_0x759256,_0x31488d){let _0x577b9b=[],_0x207593=[];for(let _0x418879=_0x759256;_0x418879;_0x418879=_0x418879['parent']){if('FencedCode'==_0x418879['name'])return _0x207593;'ListItem'!=_0x418879['name']&&'Blockquote'!=_0x418879['name']||_0x577b9b['push'](_0x418879);}for(let _0x313b99=_0x577b9b['length']-0x1;_0x313b99>=0x0;_0x313b99--){let _0x264b3a,_0x1761b2=_0x577b9b[_0x313b99],_0x3a5760=_0x31488d['lineAt'](_0x1761b2['from']),_0x5baa58=_0x1761b2['from']-_0x3a5760['from'];if('Blockquote'==_0x1761b2['name']&&(_0x264b3a=/^ *>( ?)/['exec'](_0x3a5760['text']['slice'](_0x5baa58))))_0x207593['push'](new Context(_0x1761b2,_0x5baa58,_0x5baa58+_0x264b3a[0x0]['length'],'',_0x264b3a[0x1],'>',null));else{if('ListItem'==_0x1761b2['name']&&'OrderedList'==_0x1761b2['parent']['name']&&(_0x264b3a=/^( *)\d+([.)])( *)/['exec'](_0x3a5760['text']['slice'](_0x5baa58)))){let _0x311b72=_0x264b3a[0x3],_0x135a93=_0x264b3a[0x0]['length'];_0x311b72['length']>=0x4&&(_0x311b72=_0x311b72['slice'](0x0,_0x311b72['length']-0x4),_0x135a93-=0x4),_0x207593['push'](new Context(_0x1761b2['parent'],_0x5baa58,_0x5baa58+_0x135a93,_0x264b3a[0x1],_0x311b72,_0x264b3a[0x2],_0x1761b2));}else{if('ListItem'==_0x1761b2['name']&&'BulletList'==_0x1761b2['parent']['name']&&(_0x264b3a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/['exec'](_0x3a5760['text']['slice'](_0x5baa58)))){let _0x4124f8=_0x264b3a[0x4],_0x3da3e9=_0x264b3a[0x0]['length'];_0x4124f8['length']>0x4&&(_0x4124f8=_0x4124f8['slice'](0x0,_0x4124f8['length']-0x4),_0x3da3e9-=0x4);let _0x3d444b=_0x264b3a[0x2];_0x264b3a[0x3]&&(_0x3d444b+=_0x264b3a[0x3]['replace'](/[xX]/,'\x20')),_0x207593['push'](new Context(_0x1761b2['parent'],_0x5baa58,_0x5baa58+_0x3da3e9,_0x264b3a[0x1],_0x4124f8,_0x3d444b,_0x1761b2));}}}}return _0x207593;}function itemNumber(_0x2589dd,_0x20c180){return/^(\s*)(\d+)(?=[.)])/['exec'](_0x20c180['sliceString'](_0x2589dd['from'],_0x2589dd['from']+0xa));}function renumberList(_0x647494,_0xe3e01c,_0x16b06e,_0x4d6b73=0x0){for(let _0x34fa80=-0x1,_0x2f67fc=_0x647494;;){if('ListItem'==_0x2f67fc['name']){let _0x564c81=itemNumber(_0x2f67fc,_0xe3e01c),_0x3ff9e5=+_0x564c81[0x2];if(_0x34fa80>=0x0){if(_0x3ff9e5!=_0x34fa80+0x1)return;_0x16b06e['push']({'from':_0x2f67fc['from']+_0x564c81[0x1]['length'],'to':_0x2f67fc['from']+_0x564c81[0x0]['length'],'insert':String(_0x34fa80+0x2+_0x4d6b73)});}_0x34fa80=_0x3ff9e5;}let _0x1e6f5a=_0x2f67fc['nextSibling'];if(!_0x1e6f5a)break;_0x2f67fc=_0x1e6f5a;}}function normalizeIndent(_0x17bf59,_0x3604a8){let _0x56df10=/^[ \t]*/['exec'](_0x17bf59)[0x0]['length'];if(!_0x56df10||'\x09'!=_0x3604a8['facet'](indentUnit))return _0x17bf59;let _0x4a88ee='';for(let _0x550528=countColumn(_0x17bf59,0x4,_0x56df10);_0x550528>0x0;)_0x550528>=0x4?(_0x4a88ee+='\x09',_0x550528-=0x4):(_0x4a88ee+='\x20',_0x550528--);return _0x4a88ee+_0x17bf59['slice'](_0x56df10);}const insertNewlineContinueMarkup=({state:_0xf2d9f,dispatch:_0xdbc823})=>{let _0x5b69ae=syntaxTree(_0xf2d9f),{doc:_0x1a1110}=_0xf2d9f,_0x20f428=null,_0x55944e=_0xf2d9f['changeByRange'](_0x4b2779=>{if(!_0x4b2779['empty']||!markdownLanguage['isActiveAt'](_0xf2d9f,_0x4b2779['from'],0x0))return _0x20f428={'range':_0x4b2779};let _0x54d6e9=_0x4b2779['from'],_0x517f46=_0x1a1110['lineAt'](_0x54d6e9),_0x1421bd=getContext(_0x5b69ae['resolveInner'](_0x54d6e9,-0x1),_0x1a1110);for(;_0x1421bd['length']&&_0x1421bd[_0x1421bd['length']-0x1]['from']>_0x54d6e9-_0x517f46['from'];)_0x1421bd['pop']();if(!_0x1421bd['length'])return _0x20f428={'range':_0x4b2779};let _0x27a74e=_0x1421bd[_0x1421bd['length']-0x1];if(_0x27a74e['to']-_0x27a74e['spaceAfter']['length']>_0x54d6e9-_0x517f46['from'])return _0x20f428={'range':_0x4b2779};let _0x1e2512=_0x54d6e9>=_0x27a74e['to']-_0x27a74e['spaceAfter']['length']&&!/\S/['test'](_0x517f46['text']['slice'](_0x27a74e['to']));if(_0x27a74e['item']&&_0x1e2512){let _0x4e92b8=_0x27a74e['node']['firstChild'],_0x513019=_0x27a74e['node']['getChild']('ListItem','ListItem');if(_0x4e92b8['to']>=_0x54d6e9||_0x513019&&_0x513019['to']<_0x54d6e9||_0x517f46['from']>0x0&&!/[^\s>]/['test'](_0x1a1110['lineAt'](_0x517f46['from']-0x1)['text'])){let _0x41e5a3,_0x51895a=_0x1421bd['length']>0x1?_0x1421bd[_0x1421bd['length']-0x2]:null,_0x3dc753='';_0x51895a&&_0x51895a['item']?(_0x41e5a3=_0x517f46['from']+_0x51895a['from'],_0x3dc753=_0x51895a['marker'](_0x1a1110,0x1)):_0x41e5a3=_0x517f46['from']+(_0x51895a?_0x51895a['to']:0x0);let _0x4538ee=[{'from':_0x41e5a3,'to':_0x54d6e9,'insert':_0x3dc753}];return'OrderedList'==_0x27a74e['node']['name']&&renumberList(_0x27a74e['item'],_0x1a1110,_0x4538ee,-0x2),_0x51895a&&'OrderedList'==_0x51895a['node']['name']&&renumberList(_0x51895a['item'],_0x1a1110,_0x4538ee),{'range':EditorSelection['cursor'](_0x41e5a3+_0x3dc753['length']),'changes':_0x4538ee};}{let _0xc8c0d9=blankLine(_0x1421bd,_0xf2d9f,_0x517f46);return{'range':EditorSelection['cursor'](_0x54d6e9+_0xc8c0d9['length']+0x1),'changes':{'from':_0x517f46['from'],'insert':_0xc8c0d9+_0xf2d9f['lineBreak']}};}}if('Blockquote'==_0x27a74e['node']['name']&&_0x1e2512&&_0x517f46['from']){let _0x29e99e=_0x1a1110['lineAt'](_0x517f46['from']-0x1),_0x3c72c1=/>\s*$/['exec'](_0x29e99e['text']);if(_0x3c72c1&&_0x3c72c1['index']==_0x27a74e['from']){let _0xbd21d7=_0xf2d9f['changes']([{'from':_0x29e99e['from']+_0x3c72c1['index'],'to':_0x29e99e['to']},{'from':_0x517f46['from']+_0x27a74e['from'],'to':_0x517f46['to']}]);return{'range':_0x4b2779['map'](_0xbd21d7),'changes':_0xbd21d7};}}let _0x41f72d=[];'OrderedList'==_0x27a74e['node']['name']&&renumberList(_0x27a74e['item'],_0x1a1110,_0x41f72d);let _0x286fc3=_0x27a74e['item']&&_0x27a74e['item']['from']<_0x517f46['from'],_0x272993='';if(!_0x286fc3||/^[\s\d.)\-+*>]*/['exec'](_0x517f46['text'])[0x0]['length']>=_0x27a74e['to']){for(let _0x22d58b=0x0,_0x479828=_0x1421bd['length']-0x1;_0x22d58b<=_0x479828;_0x22d58b++)_0x272993+=_0x22d58b!=_0x479828||_0x286fc3?_0x1421bd[_0x22d58b]['blank'](_0x22d58b<_0x479828?countColumn(_0x517f46['text'],0x4,_0x1421bd[_0x22d58b+0x1]['from'])-_0x272993['length']:null):_0x1421bd[_0x22d58b]['marker'](_0x1a1110,0x1);}let _0x4940fc=_0x54d6e9;for(;_0x4940fc>_0x517f46['from']&&/\s/['test'](_0x517f46['text']['charAt'](_0x4940fc-_0x517f46['from']-0x1));)_0x4940fc--;return _0x272993=normalizeIndent(_0x272993,_0xf2d9f),nonTightList(_0x27a74e['node'],_0xf2d9f['doc'])&&(_0x272993=blankLine(_0x1421bd,_0xf2d9f,_0x517f46)+_0xf2d9f['lineBreak']+_0x272993),_0x41f72d['push']({'from':_0x4940fc,'to':_0x54d6e9,'insert':_0xf2d9f['lineBreak']+_0x272993}),{'range':EditorSelection['cursor'](_0x4940fc+_0x272993['length']+0x1),'changes':_0x41f72d};});return!_0x20f428&&(_0xdbc823(_0xf2d9f['update'](_0x55944e,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0);};function isMark(_0x5f0a12){return'QuoteMark'==_0x5f0a12['name']||'ListMark'==_0x5f0a12['name'];}function nonTightList(_0x2313ad,_0x40847a){if('OrderedList'!=_0x2313ad['name']&&'BulletList'!=_0x2313ad['name'])return!0x1;let _0x4eddbd=_0x2313ad['firstChild'],_0x1dc5ae=_0x2313ad['getChild']('ListItem','ListItem');if(!_0x1dc5ae)return!0x1;let _0x5d3a37=_0x40847a['lineAt'](_0x4eddbd['to']),_0x58be4e=_0x40847a['lineAt'](_0x1dc5ae['from']),_0x1c4def=/^[\s>]*$/['test'](_0x5d3a37['text']);return _0x5d3a37['number']+(_0x1c4def?0x0:0x1)<_0x58be4e['number'];}function blankLine(_0x3a034b,_0xd01c95,_0x49b439){let _0x4ae14a='';for(let _0x4b574c=0x0,_0x5c9516=_0x3a034b['length']-0x2;_0x4b574c<=_0x5c9516;_0x4b574c++)_0x4ae14a+=_0x3a034b[_0x4b574c]['blank'](_0x4b574c<_0x5c9516?countColumn(_0x49b439['text'],0x4,Math['min'](_0x49b439['text']['length'],_0x3a034b[_0x4b574c+0x1]['from']))-_0x4ae14a['length']:null,_0x4b574c<_0x5c9516);return normalizeIndent(_0x4ae14a,_0xd01c95);}function contextNodeForDelete(_0x50ef8f,_0x2a037c){let _0xb92887=_0x50ef8f['resolveInner'](_0x2a037c,-0x1),_0x25cab2=_0x2a037c;isMark(_0xb92887)&&(_0x25cab2=_0xb92887['from'],_0xb92887=_0xb92887['parent']);for(let _0x286723;_0x286723=_0xb92887['childBefore'](_0x25cab2);)if(isMark(_0x286723))_0x25cab2=_0x286723['from'];else{if('OrderedList'!=_0x286723['name']&&'BulletList'!=_0x286723['name'])break;_0xb92887=_0x286723['lastChild'],_0x25cab2=_0xb92887['to'];}return _0xb92887;}const deleteMarkupBackward=({state:_0x4774c9,dispatch:_0x3a66b6})=>{let _0x299811=syntaxTree(_0x4774c9),_0x1e4262=null,_0x4d3ca5=_0x4774c9['changeByRange'](_0x2b7b28=>{let _0x4515f2=_0x2b7b28['from'],{doc:_0x301dea}=_0x4774c9;if(_0x2b7b28['empty']&&markdownLanguage['isActiveAt'](_0x4774c9,_0x2b7b28['from'])){let _0x59aa87=_0x301dea['lineAt'](_0x4515f2),_0x195b4e=getContext(contextNodeForDelete(_0x299811,_0x4515f2),_0x301dea);if(_0x195b4e['length']){let _0xacac13=_0x195b4e[_0x195b4e['length']-0x1],_0x5ad897=_0xacac13['to']-_0xacac13['spaceAfter']['length']+(_0xacac13['spaceAfter']?0x1:0x0);if(_0x4515f2-_0x59aa87['from']>_0x5ad897&&!/\S/['test'](_0x59aa87['text']['slice'](_0x5ad897,_0x4515f2-_0x59aa87['from'])))return{'range':EditorSelection['cursor'](_0x59aa87['from']+_0x5ad897),'changes':{'from':_0x59aa87['from']+_0x5ad897,'to':_0x4515f2}};if(_0x4515f2-_0x59aa87['from']==_0x5ad897&&(!_0xacac13['item']||_0x59aa87['from']<=_0xacac13['item']['from']||!/\S/['test'](_0x59aa87['text']['slice'](0x0,_0xacac13['to'])))){let _0x41fbbe=_0x59aa87['from']+_0xacac13['from'];if(_0xacac13['item']&&_0xacac13['node']['from']<_0xacac13['item']['from']&&/\S/['test'](_0x59aa87['text']['slice'](_0xacac13['from'],_0xacac13['to']))){let _0x32e3a6=_0xacac13['blank'](countColumn(_0x59aa87['text'],0x4,_0xacac13['to'])-countColumn(_0x59aa87['text'],0x4,_0xacac13['from']));return _0x41fbbe==_0x59aa87['from']&&(_0x32e3a6=normalizeIndent(_0x32e3a6,_0x4774c9)),{'range':EditorSelection['cursor'](_0x41fbbe+_0x32e3a6['length']),'changes':{'from':_0x41fbbe,'to':_0x59aa87['from']+_0xacac13['to'],'insert':_0x32e3a6}};}if(_0x41fbbe<_0x4515f2)return{'range':EditorSelection['cursor'](_0x41fbbe),'changes':{'from':_0x41fbbe,'to':_0x4515f2}};}}}return _0x1e4262={'range':_0x2b7b28};});return!_0x1e4262&&(_0x3a66b6(_0x4774c9['update'](_0x4d3ca5,{'scrollIntoView':!0x0,'userEvent':'delete'})),!0x0);},markdownKeymap=[{'key':'Enter','run':insertNewlineContinueMarkup},{'key':'Backspace','run':deleteMarkupBackward}],htmlNoMatch=html({'matchClosingTags':!0x1});function markdown(_0x1e214d={}){let {codeLanguages:_0x56fda7,defaultCodeLanguage:_0x3ee96f,addKeymap:_0x2d4b7c=!0x0,base:{parser:_0x26e385}=commonmarkLanguage,completeHTMLTags:_0x408822=!0x0,htmlTagLanguage:_0x523151=htmlNoMatch}=_0x1e214d;if(!(_0x26e385 instanceof MarkdownParser))throw new RangeError('Base\x20parser\x20provided\x20to\x20`markdown`\x20should\x20be\x20a\x20Markdown\x20parser');let _0xf719cd,_0x58a82d=_0x1e214d['extensions']?[_0x1e214d['extensions']]:[],_0x227452=[_0x523151['support']];_0x3ee96f instanceof LanguageSupport?(_0x227452['push'](_0x3ee96f['support']),_0xf719cd=_0x3ee96f['language']):_0x3ee96f&&(_0xf719cd=_0x3ee96f);let _0x45609b=_0x56fda7||_0xf719cd?getCodeParser(_0x56fda7,_0xf719cd):void 0x0;_0x58a82d['push'](parseCode({'codeParser':_0x45609b,'htmlParser':_0x523151['language']['parser']})),_0x2d4b7c&&_0x227452['push'](Prec['high'](keymap['of'](markdownKeymap)));let _0x4d9416=mkLang(_0x26e385['configure'](_0x58a82d));return _0x408822&&_0x227452['push'](_0x4d9416['data']['of']({'autocomplete':htmlTagCompletion})),new LanguageSupport(_0x4d9416,_0x227452);}function htmlTagCompletion(_0xcfc568){let {state:_0x17e8a7,pos:_0x170112}=_0xcfc568,_0x542805=/<[:\-\.\w\u00b7-\uffff]*$/['exec'](_0x17e8a7['sliceDoc'](_0x170112-0x19,_0x170112));if(!_0x542805)return null;let _0x455332=syntaxTree(_0x17e8a7)['resolveInner'](_0x170112,-0x1);for(;_0x455332&&!_0x455332['type']['isTop'];){if('CodeBlock'==_0x455332['name']||'FencedCode'==_0x455332['name']||'ProcessingInstructionBlock'==_0x455332['name']||'CommentBlock'==_0x455332['name']||'Link'==_0x455332['name']||'Image'==_0x455332['name'])return null;_0x455332=_0x455332['parent'];}return{'from':_0x170112-_0x542805[0x0]['length'],'to':_0x170112,'options':htmlTagCompletions(),'validFor':/^<[:\-\.\w\u00b7-\uffff]*$/};}let _tagCompletions=null;function htmlTagCompletions(){if(_tagCompletions)return _tagCompletions;let _0x4ee1db=htmlCompletionSource(new CompletionContext(EditorState['create']({'extensions':htmlNoMatch}),0x0,!0x0));return _tagCompletions=_0x4ee1db?_0x4ee1db['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(_0x24a516){const _0x3b9888=getDefaultExtensions(),_0x4fd648=new Compartment();_0x3b9888['push'](_0x4fd648['of'](EditorView['editable']['of'](!0x0))),'html'===_0x24a516['syntaxLanguage']?_0x3b9888['push'](html()):_0x3b9888['push'](markdown());const _0x1aec06=normalizeTheme(_0x24a516['theme']);_0x1aec06&&_0x3b9888['push'](_0x1aec06),_0x3b9888['push'](...getKeybindings());const _0x3e2da8=new EditorView({'extensions':_0x3b9888,'parent':_0x24a516['parent']});return toggleTabFocusMode(_0x3e2da8),{'focus':()=>{_0x3e2da8['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x3e2da8['focus']();},'getData':()=>_0x3e2da8['state']['doc']['toString'](),'setData':_0x5bdbf9=>{_0x3e2da8['dispatch']({'changes':{'from':0x0,'to':_0x3e2da8['state']['doc']['length'],'insert':_0x5bdbf9},'annotations':Transaction['addToHistory']['of'](!0x1)});},'setReadOnly':_0x56e16b=>{_0x3e2da8['dispatch']({'effects':[_0x4fd648['reconfigure'](EditorView['editable']['of'](!_0x56e16b))]});},'destroy':()=>{_0x3e2da8['destroy']();},'instance':_0x3e2da8};}function normalizeTheme(_0x3b2e7b){return _0x3b2e7b&&'default'!==_0x3b2e7b?'dark'===_0x3b2e7b?oneDark:_0x3b2e7b: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(_0x5ced13,_0x393cf0){super(_0x5ced13),this['_options']=_0x393cf0,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',(_0x3bd740,_0x573f2c,_0x5a7c71)=>{this['setReadOnly'](_0x5a7c71);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x4fc1c5){this['_codeEditorApi']['setData'](_0x4fc1c5);}['setReadOnly'](_0x3e12f5){this['_codeEditorApi']['setReadOnly'](_0x3e12f5);}}const COMMAND_FORCE_DISABLE_ID='SourceEditingEnhancedMode';class EditSourceCommand extends Command{constructor(_0x52410a){super(_0x52410a),this['affectsData']=!0x1,this['editor']['plugins']['get'](PendingActions)['on']('change:hasAny',(_0x16d2c1,_0x46952b,_0xe878bb)=>{_0xe878bb?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x1d09f9=this['editor'];for(const _0x56b25c of _0x1d09f9['commands']['names']())['replaceSource','editSource']['includes'](_0x56b25c)||_0x1d09f9['commands']['get'](_0x56b25c)['forceDisabled'](COMMAND_FORCE_DISABLE_ID);}['_enableCommands'](){const _0x4f6c9b=this['editor'];for(const _0x34e04f of _0x4f6c9b['commands']['commands']())_0x34e04f['clearForceDisabled'](COMMAND_FORCE_DISABLE_ID);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4aa9ed=this['editor'],_0x54bd49=_0x4aa9ed['locale'],_0x54610b=_0x4aa9ed['plugins']['get']('Dialog'),_0x4463da=getActiveRootName(_0x4aa9ed),_0x598c07=formatSource(_0x4aa9ed['data']['get']({'rootName':_0x4463da})),_0x247d49=new CodeEditorView(_0x54bd49,{'syntaxLanguage':_0x4aa9ed['plugins']['has']('Markdown')?'markdown':'html','theme':_0x4aa9ed['config']['get']('sourceEditingEnhanced.theme')});let _0x5b60fc=!0x0;const _0x1af75a=_0x47e0a5=>{if(!_0x5b60fc)return;return unformatSource(_0x247d49['getData']())!==unformatSource(_0x598c07)?window['confirm'](getTranslation$3(_0x54bd49,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x47e0a5['stop']():void 0x0;};_0x54610b['show']({'id':'sourceEditingEnhanced','title':getTranslation$3(_0x54bd49,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x247d49,'actionButtons':[{'label':getTranslation$3(_0x54bd49,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x54610b['hide']();}},{'label':getTranslation$3(_0x54bd49,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x34c6ce=unformatSource(_0x247d49['getData']())!==unformatSource(_0x598c07);(_0x34c6ce&&_0x4aa9ed['execute']('replaceSource',_0x247d49['getData']()),_0x5b60fc=!0x1,_0x54610b['hide'](),_0x34c6ce&&'editables'in _0x4aa9ed['ui']['view'])&&_0x4aa9ed['ui']['view']['editables'][_0x4463da]['element']['focus']();},'onCreate':_0x5e25b1=>{_0x5e25b1['set']('isEnabled',!_0x4aa9ed['isReadOnly']),_0x5e25b1['bind']('isEnabled')['to'](_0x4aa9ed,'isReadOnly',this,'isEnabled',(_0x3c8806,_0x413a4d)=>!_0x3c8806&&_0x413a4d);}}],'onHide':()=>{this['_enableCommands'](),_0x54610b['off']('hide',_0x1af75a),_0x247d49['destroy']();},'onShow':()=>{_0x247d49['bind']('isReadOnly')['to'](_0x4aa9ed,'isReadOnly',this,'isEnabled',(_0x109d1c,_0x53b48d)=>_0x109d1c||!_0x53b48d),_0x247d49['setData'](_0x598c07),_0x247d49['focus'](),_0x54610b['on']('hide',_0x1af75a,{'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 _0x15c720=this['editor'],_0x2ff865=_0x15c720['locale'],_0x1d75ea=new EditSourceCommand(_0x15c720);_0x15c720['commands']['add']('editSource',_0x1d75ea),_0x15c720['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x2e646e=this['_createButton'](ButtonView,_0x1d75ea);return _0x2e646e['set']({'label':getTranslation$3(_0x2ff865,'Source'),'icon':IconSource,'tooltip':getTranslation$3(_0x2ff865,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x2e646e;}),_0x15c720['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x3011f3=this['_createButton'](MenuBarMenuListItemButtonView,_0x1d75ea,!0x0);return _0x3011f3['set']({'label':getTranslation$3(_0x2ff865,'Edit\x20source\x20modal\x20label'),'icon':IconSource,'role':'menuitemcheckbox'}),_0x3011f3;}),this['_registerKeybindings']();}['afterInit'](){checkLicense$3(this);}['_createButton'](_0x10f348,_0x29ac90,_0x366a58=!0x1){const _0xac6768=new _0x10f348(this['editor']['locale']);return _0xac6768['set']({'withText':_0x366a58,'isToggleable':!0x1}),_0xac6768['bind']('isEnabled')['to'](_0x29ac90,'isEnabled'),this['listenTo'](_0xac6768,'execute',()=>_0x29ac90['execute']()),_0xac6768;}['_registerKeybindings'](){const _0x368e08=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':getTranslation$3(_0x368e08,'Source\x20Editing\x20Enhanced')});const _0x483b94=env['isMac']||env['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':getTranslation$3(_0x368e08,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':getTranslation$3(_0x368e08,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':getTranslation$3(_0x368e08,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':getTranslation$3(_0x368e08,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':getTranslation$3(_0x368e08,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':getTranslation$3(_0x368e08,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':getTranslation$3(_0x368e08,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x483b94?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':getTranslation$3(_0x368e08,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':getTranslation$3(_0x368e08,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':getTranslation$3(_0x368e08,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':getTranslation$3(_0x368e08,'Select\x20line'),'keystroke':_0x483b94?'Ctrl!+L':'Alt+L'},{'label':getTranslation$3(_0x368e08,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x483b94?'Alt+Shift+M':'Ctrl+M'},{'label':getTranslation$3(_0x368e08,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':getTranslation$3(_0x368e08,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':getTranslation$3(_0x368e08,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':getTranslation$3(_0x368e08,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':getTranslation$3(_0x368e08,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x483b94?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}async function checkLicense$3(_0x19f162){const _0x289a41=_0x4ba0b3([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]),_0x16808b=window[_0x4ba0b3([0x44,0x61,0x74,0x65])][_0x4ba0b3([0x6e,0x6f,0x77])](),_0x18cde4=_0x19f162[_0x4ba0b3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3058d8=new window[(_0x4ba0b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f4ffd=>{_0x18cde4[_0x4ba0b3([0x6f,0x6e,0x63,0x65])](_0x4ba0b3([0x72,0x65,0x61,0x64,0x79]),_0x5f4ffd);}),_0xefa06e={[_0x4ba0b3([0x6b,0x74,0x79])]:_0x4ba0b3([0x45,0x43]),[_0x4ba0b3([0x75,0x73,0x65])]:_0x4ba0b3([0x73,0x69,0x67]),[_0x4ba0b3([0x63,0x72,0x76])]:_0x4ba0b3([0x50,0x2d,0x32,0x35,0x36]),[_0x4ba0b3([0x78])]:_0x4ba0b3([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]),[_0x4ba0b3([0x79])]:_0x4ba0b3([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]),[_0x4ba0b3([0x61,0x6c,0x67])]:_0x4ba0b3([0x45,0x53,0x32,0x35,0x36])},_0x501873=_0x18cde4[_0x4ba0b3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ba0b3([0x67,0x65,0x74])](_0x4ba0b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x537f9c=await(async function(){let _0x444e38,_0x68f2f3=null,_0x390898=null;try{if(_0x501873==_0x4ba0b3([0x47,0x50,0x4c]))return _0x4ba0b3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x444e38=(function(){const _0x1173a0=_0x501873[_0x4ba0b3([0x73,0x70,0x6c,0x69,0x74])](_0x4ba0b3([0x2e]));if(0x3!=_0x1173a0[_0x4ba0b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x4e1e7f=_0x1173a0[0x1];return _0x4069d0(_0x4e1e7f);function _0x4069d0(_0x5a6a6b){const _0xb73b45=_0x1e887b(_0x5a6a6b);return _0xb73b45&&_0x3ea691()?_0xb73b45:null;function _0x3ea691(){const _0x5ce4e3=_0xb73b45[_0x4ba0b3([0x6a,0x74,0x69])],_0x5c7ea2=window[_0x4ba0b3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ce4e3[_0x4ba0b3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ce4e3[_0x4ba0b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e3eb5={..._0xb73b45,[_0x4ba0b3([0x6a,0x74,0x69])]:_0x5ce4e3[_0x4ba0b3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ce4e3[_0x4ba0b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e3eb5[_0x4ba0b3([0x76,0x63])],_0x433711(_0x2e3eb5)==_0x5c7ea2;}}}()),!_0x444e38)return _0x4ba0b3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x444e38[_0x4ba0b3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x390898=function(_0x43b062,_0x411137){return new window[(_0x4ba0b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43b5f6=>{if(_0x371171())return _0x43b5f6(_0x4ba0b3([0x56,0x61,0x6c,0x69,0x64]));_0x240376(),_0x18cde4[_0x4ba0b3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ba0b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26d35a=!0x1;const _0x4c7fff=uid();function _0x1363e7(_0x14f03a){return!!_0x14f03a&&(typeof _0x14f03a===_0x4ba0b3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14f03a===_0x4ba0b3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14f03a[_0x4ba0b3([0x74,0x68,0x65,0x6e])]===_0x4ba0b3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14f03a[_0x4ba0b3([0x63,0x61,0x74,0x63,0x68])]===_0x4ba0b3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x457198(_0x3aaa41){_0x352abc(_0x3aaa41)[_0x4ba0b3([0x74,0x68,0x65,0x6e])](_0x4d3a40=>{if(!_0x4d3a40||_0x4d3a40[_0x4ba0b3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ba0b3([0x6f,0x6b]))return _0x4ba0b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x50fe70(_0x433711(_0x4c7fff+_0x411137))!=_0x4d3a40[_0x4ba0b3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ba0b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ba0b3([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ba0b3([0x74,0x68,0x65,0x6e])](_0xc4ca7b=>(_0x22a49a(),_0xc4ca7b),()=>{const _0x347ab8=_0x397a7a();return null==_0x347ab8?(_0x22a49a(),_0x4ba0b3([0x56,0x61,0x6c,0x69,0x64])):_0x4ba0b3(_0x16808b-_0x347ab8>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ba0b3([0x74,0x68,0x65,0x6e])](_0x43b5f6)[_0x4ba0b3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x43b5f6(_0x4ba0b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f3e27=0x36ee80;function _0x22a49a(){const _0x4a743b=_0x4ba0b3([0x6c,0x6c,0x63,0x74,0x2d])+_0x50fe70(_0x433711(_0x43b062)),_0x360c5a=_0x15f754(_0x50fe70(window[_0x4ba0b3([0x4d,0x61,0x74,0x68])][_0x4ba0b3([0x63,0x65,0x69,0x6c])](_0x16808b/_0x3f3e27)));window[_0x4ba0b3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ba0b3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a743b,_0x360c5a);}function _0x397a7a(){const _0x161762=_0x4ba0b3([0x6c,0x6c,0x63,0x74,0x2d])+_0x50fe70(_0x433711(_0x43b062)),_0xff52ab=window[_0x4ba0b3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ba0b3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x161762);return _0xff52ab?window[_0x4ba0b3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15f754(_0xff52ab),0x10)*_0x3f3e27:null;}function _0x352abc(_0x560dea){return new window[(_0x4ba0b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15dd9d,_0x4c51ee)=>{_0x560dea[_0x4ba0b3([0x74,0x68,0x65,0x6e])](_0x15dd9d,_0x4c51ee),window[_0x4ba0b3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c51ee,0x1d4c0);});}}_0x18cde4[_0x4ba0b3([0x6f,0x6e])](_0x4ba0b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47c041,_0x34f023)=>{if(_0x34f023[0x0]!=_0x43b062)return _0x43b5f6(_0x4ba0b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34f023[0x1]={..._0x34f023[0x1],[_0x4ba0b3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c7fff};},{[_0x4ba0b3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ba0b3([0x68,0x69,0x67,0x68])}),_0x18cde4[_0x4ba0b3([0x6f,0x6e])](_0x4ba0b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b515b=>{_0x1363e7(_0x4b515b[_0x4ba0b3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26d35a=!0x0,_0x457198(_0x4b515b[_0x4ba0b3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ba0b3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ba0b3([0x6c,0x6f,0x77])}),_0x3058d8[_0x4ba0b3([0x74,0x68,0x65,0x6e])](()=>{_0x26d35a||_0x43b5f6(_0x4ba0b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x371171(){return _0x18cde4[_0x4ba0b3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ba0b3([0x76,0x69,0x65,0x77])][_0x4ba0b3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ba0b3([0x61,0x75,0x74,0x6f]);}function _0x240376(){_0x18cde4[_0x4ba0b3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ba0b3([0x76,0x69,0x65,0x77])][_0x4ba0b3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ba0b3([0x61,0x75,0x74,0x6f]);}}(_0x444e38[_0x4ba0b3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x444e38[_0x4ba0b3([0x6a,0x74,0x69])]));const _0x592c62=await(async function(){let _0x65b1b=!0x0;try{const _0x869ba9=_0x501873[_0x4ba0b3([0x73,0x70,0x6c,0x69,0x74])](_0x4ba0b3([0x2e])),[_0x39e81e,_0x3d0dd5,_0x3c4783]=_0x869ba9;return _0x231325(_0x39e81e),await _0x35cf1a(_0x39e81e,_0x3d0dd5,_0x3c4783),_0x65b1b;}catch{return!0x1;}function _0x231325(_0x525d6b){const _0x5da108=_0x1e887b(_0x525d6b);_0x5da108&&_0x5da108[_0x4ba0b3([0x61,0x6c,0x67])]==_0x4ba0b3([0x45,0x53,0x32,0x35,0x36])||(_0x65b1b=!0x1);}async function _0x35cf1a(_0x246fb5,_0x18bb30,_0x12db6b){const _0x4f9ce1=window[_0x4ba0b3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ba0b3([0x66,0x72,0x6f,0x6d])](_0x2e9973(_0x12db6b),_0x31a19c=>_0x31a19c[_0x4ba0b3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ecff5=new window[(_0x4ba0b3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ba0b3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x246fb5+_0x4ba0b3([0x2e])+_0x18bb30),_0x51b0cd=window[_0x4ba0b3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ba0b3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51b0cd)return;const _0x2bbb84=await _0x51b0cd[_0x4ba0b3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ba0b3([0x6a,0x77,0x6b]),_0xefa06e,{[_0x4ba0b3([0x6e,0x61,0x6d,0x65])]:_0x4ba0b3([0x45,0x43,0x44,0x53,0x41]),[_0x4ba0b3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ba0b3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ba0b3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51b0cd[_0x4ba0b3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ba0b3([0x6e,0x61,0x6d,0x65])]:_0x4ba0b3([0x45,0x43,0x44,0x53,0x41]),[_0x4ba0b3([0x68,0x61,0x73,0x68])]:{[_0x4ba0b3([0x6e,0x61,0x6d,0x65])]:_0x4ba0b3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2bbb84,_0x4f9ce1,_0x3ecff5)||(_0x65b1b=!0x1);}}());return _0x592c62?(function(){const _0x5c68b1=_0x444e38[_0x4ba0b3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5c68b1)return!0x1;if(_0x5c68b1[_0x4ba0b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ba0b3([0x2a])))return!0x0;if(_0x5c68b1[_0x4ba0b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ba0b3([0x53,0x45,0x45])))return!0x0;return!0x1;}())?(function(){const _0x7789f8=[_0x4ba0b3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ba0b3([0x74,0x72,0x69,0x61,0x6c])][_0x4ba0b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444e38[_0x4ba0b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16808b/0x3e8:0x69d59a80;return _0x444e38[_0x4ba0b3([0x65,0x78,0x70])]<_0x7789f8;}())?_0x4ba0b3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x218d57=_0x444e38[_0x4ba0b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x218d57||0x0==_0x218d57[_0x4ba0b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe8eda9}=new URL(window[_0x4ba0b3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x218d57[_0x4ba0b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe8eda9))return!0x0;const _0x38a13d=_0xe8eda9[_0x4ba0b3([0x73,0x70,0x6c,0x69,0x74])](_0x4ba0b3([0x2e]));return _0x218d57[_0x4ba0b3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x108ab4=>_0x108ab4[_0x4ba0b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ba0b3([0x2a])))[_0x4ba0b3([0x6d,0x61,0x70])](_0x106bd1=>_0x106bd1[_0x4ba0b3([0x73,0x70,0x6c,0x69,0x74])](_0x4ba0b3([0x2e])))[_0x4ba0b3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ace7b=>_0x3ace7b[_0x4ba0b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x38a13d[_0x4ba0b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ba0b3([0x6d,0x61,0x70])](_0x5280c7=>Array(_0x38a13d[_0x4ba0b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5280c7[_0x4ba0b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ba0b3([0x66,0x69,0x6c,0x6c])](_0x5280c7[0x0]===_0x4ba0b3([0x2a])?_0x4ba0b3([0x2a]):'')[_0x4ba0b3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5280c7))[_0x4ba0b3([0x73,0x6f,0x6d,0x65])](_0x3a4733=>_0x38a13d[_0x4ba0b3([0x65,0x76,0x65,0x72,0x79])]((_0x5849dd,_0x260ce5)=>_0x3a4733[_0x260ce5]===_0x5849dd||_0x3a4733[_0x260ce5]===_0x4ba0b3([0x2a])));}())?(_0x444e38[_0x4ba0b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ba0b3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x68f2f3=function(_0x37c6a2){const _0x20e9c1=new window[(_0x4ba0b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ea631=>setTimeout(_0x1ea631,0x93ecc)),_0x211211=_0x3058d8[_0x4ba0b3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ba0b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24033c=>{let _0x3749e9=0x0;_0x18cde4[_0x4ba0b3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ba0b3([0x6f,0x6e])](_0x4ba0b3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xbf7e4e,_0x2ad018)=>{_0x2ad018[0x0][_0x4ba0b3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3749e9++,0x5e8==_0x3749e9&&(_0x24033c(),_0xbf7e4e[_0x4ba0b3([0x6f,0x66,0x66])]());});})),_0x365028=[_0x20e9c1,_0x211211];return window[_0x4ba0b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ba0b3([0x72,0x61,0x63,0x65])](_0x365028)[_0x4ba0b3([0x74,0x68,0x65,0x6e])](()=>_0x37c6a2);}(_0x4ba0b3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x68f2f3&&_0x390898)return new window[(_0x4ba0b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd9b4b5,_0x364483)=>{_0x68f2f3[_0x4ba0b3([0x74,0x68,0x65,0x6e])](_0xd9b4b5,_0x364483),_0x390898[_0x4ba0b3([0x74,0x68,0x65,0x6e])](_0x32bd49=>{_0x32bd49!=_0x4ba0b3([0x56,0x61,0x6c,0x69,0x64])&&_0xd9b4b5(_0x32bd49);},_0x364483);});return _0x68f2f3||_0x390898||_0x4ba0b3([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4ba0b3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ba0b3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ba0b3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ba0b3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x1e887b(_0x20d731){return _0x20d731[_0x4ba0b3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ba0b3([0x65,0x79]))?JSON[_0x4ba0b3([0x70,0x61,0x72,0x73,0x65])](_0x2e9973(_0x20d731)):null;}function _0x2e9973(_0x3ec48e){return window[_0x4ba0b3([0x61,0x74,0x6f,0x62])](_0x3ec48e[_0x4ba0b3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ba0b3([0x2b]))[_0x4ba0b3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ba0b3([0x2f])));}function _0x433711(_0x4edc3c){let _0x9a7b7d=0x1505;function _0x2b4220(_0x2242ee){for(let _0x2da40f=0x0;_0x2da40f<_0x2242ee[_0x4ba0b3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2da40f++){const _0x1e100b=_0x2242ee[_0x4ba0b3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2da40f);_0x9a7b7d=(_0x9a7b7d<<0x5)+_0x9a7b7d+_0x1e100b,_0x9a7b7d&=_0x9a7b7d;}}return function _0x54c39c(_0x1a67ab){Array[_0x4ba0b3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a67ab)?_0x1a67ab[_0x4ba0b3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x54c39c):_0x1a67ab&&typeof _0x1a67ab==_0x4ba0b3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ba0b3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a67ab)[_0x4ba0b3([0x73,0x6f,0x72,0x74])]()[_0x4ba0b3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3fecf4,_0x39af1f])=>{_0x2b4220(_0x3fecf4),_0x54c39c(_0x39af1f);}):_0x2b4220(window[_0x4ba0b3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a67ab));}(_0x4edc3c),_0x9a7b7d>>>0x0;}function _0x50fe70(_0x436c74){return _0x436c74[_0x4ba0b3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ba0b3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ba0b3([0x30]));}function _0x15f754(_0x4a5045){return _0x4a5045[_0x4ba0b3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ba0b3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ba0b3([0x6a,0x6f,0x69,0x6e])]('');}function _0x188cb1(){}function _0x4ba0b3(_0x4b525b){return _0x4b525b['map'](_0x3eb3f1=>String['fromCharCode'](_0x3eb3f1))['join']('');}!function(_0x198209){const _0x6708a3=(function(){const _0x3c6e14=window[_0x4ba0b3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ba0b3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ba0b3([0x6e,0x6f,0x77])]())[_0x4ba0b3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ba0b3([0x2e]),'');let _0x23b0f4=_0x4ba0b3([0x4e]);for(let _0x116d32=0x0;_0x116d32<_0x3c6e14[_0x4ba0b3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x116d32+=0x2){let _0x30d903=window[_0x4ba0b3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c6e14[_0x4ba0b3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x116d32,_0x116d32+0x2));_0x30d903>=_0x289a41[_0x4ba0b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30d903-=_0x289a41[_0x4ba0b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23b0f4+=_0x289a41[_0x30d903];}return _0x23b0f4;}());_0x18cde4[_0x6708a3]=_0x4ba0b3([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])+_0x198209,_0x198209!=_0x4ba0b3([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x3058d8,_0x18cde4[_0x4ba0b3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ba0b3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x188cb1,_0x18cde4[_0x4ba0b3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ba0b3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x188cb1,_0x18cde4[_0x4ba0b3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ba0b3([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x537f9c);}class ReplaceSourceCommand extends Command{constructor(_0x3a1844){super(_0x3a1844),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x373a9b,_0x3fe88f){const _0x9a7e8e=this['editor'],_0x15b148=_0x3fe88f?.['rootName']??getActiveRootName(_0x9a7e8e);_0x9a7e8e['data']['set']({[_0x15b148]:_0x373a9b},{'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(_0x4a4f9c){super(_0x4a4f9c),_0x4a4f9c['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 _0x59fe5d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x566fd0;for(const _0x59409d in _0x59fe5d){const _0x2f00ac=_0x59409d,_0x3576d7=_0x59fe5d[_0x2f00ac];if('sourceEditingEnhancedLicenseKeyValid'==_0x3576d7||'sourceEditingEnhancedLicenseKeyInvalid'==_0x3576d7||'sourceEditingEnhancedLicenseKeyExpired'==_0x3576d7||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x3576d7||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x3576d7||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x3576d7||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x3576d7){delete _0x59fe5d[_0x2f00ac],_0x566fd0=_0x3576d7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x566fd0&&_0x59fe5d['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x566fd0&&_0x59fe5d['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x566fd0&&_0x59fe5d['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x566fd0&&_0x59fe5d['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x566fd0&&_0x59fe5d['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x566fd0&&_0x59fe5d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x174c60=this['editor'],_0xcfc77=_0x174c60['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0xcfc77&&_0x174c60['plugins']['has']('RealTimeCollaborativeEditing'))throw new CKEditorError('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0xcfc77&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x3353ba=>_0x174c60['plugins']['has'](_0x3353ba))&&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.'),_0x174c60['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'](_0x13b83a){const {model:_0x299f20}=this['editor'];let _0x28be92;switch(typeof _0x13b83a){case'string':_0x28be92=_0x13b83a;break;case'function':_0x28be92=_0x13b83a();}'string'==typeof _0x28be92&&_0x299f20['change'](()=>{const _0x156673=this['editor']['data']['htmlProcessor']['toView'](_0x28be92),_0x2e0b3a=this['editor']['data']['toModel'](_0x156673);_0x299f20['insertContent'](_0x2e0b3a);});}}class TemplateEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c92de}=this;_0x3c92de['commands']['add']('insertTemplate',new TemplateCommand(_0x3c92de)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3e922f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34c275;for(const _0x4ae50a in _0x3e922f){const _0x3da24f=_0x4ae50a,_0x634dce=_0x3e922f[_0x3da24f];if('templateLicenseKeyValid'==_0x634dce||'templateLicenseKeyInvalid'==_0x634dce||'templateLicenseKeyExpired'==_0x634dce||'templateLicenseKeyDomainLimit'==_0x634dce||'templateLicenseKeyNotAllowed'==_0x634dce||'templateLicenseKeyEvaluationLimit'==_0x634dce||'templateLicenseKeyUsageLimit'==_0x634dce){delete _0x3e922f[_0x3da24f],_0x34c275=_0x634dce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x34c275&&_0x3e922f['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x34c275&&_0x3e922f['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x34c275&&_0x3e922f['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x34c275&&_0x3e922f['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x34c275&&_0x3e922f['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x34c275&&_0x3e922f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TemplateListView extends ListView{['filter'](_0x960fab){if(!_0x960fab)return this['_resetFiltering']();const _0x350d4f=new Map(),_0x2a9a0a=this['items']['map'](_0x3edea5=>{const _0x477cc1=_0x3edea5['buttonView']['isMatching'](_0x960fab);return _0x3edea5['isVisible']=!!_0x477cc1,_0x3edea5['buttonView']['highlightText'](_0x477cc1?_0x960fab:null),_0x477cc1&&_0x350d4f['set'](_0x3edea5,_0x477cc1),_0x3edea5;})['sort'](unsortListItemsCallback)['sort'](getSortListItemsCallback(_0x350d4f));return this['items']['clear'](),this['items']['addMany'](_0x2a9a0a),{'resultsCount':_0x350d4f['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x3e1876=this['items']['map'](_0xfa1046=>_0xfa1046)['sort'](unsortListItemsCallback);return _0x3e1876['forEach'](_0x205233=>{_0x205233['isVisible']=!0x0,_0x205233['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x3e1876),{'resultsCount':_0x3e1876['length'],'totalItemsCount':_0x3e1876['length']};}}function getSortListItemsCallback(_0x5092e4){return function(_0xff5146,_0x390fd2){const _0x433769=_0x5092e4['get'](_0xff5146),_0x579125=_0x5092e4['get'](_0x390fd2);return _0x433769&&!_0x579125?-0x1:_0x579125&&!_0x433769?0x1:_0x433769||_0x579125?_0x433769['title']&&!_0x579125['title']?-0x1:!_0x433769['title']&&_0x579125['title']?0x1:0x0:0x0;};}function unsortListItemsCallback(_0x5b0037,_0x22f2aa){return _0x5b0037['originalIndex']-_0x22f2aa['originalIndex'];}class TemplateListItemView extends ListItemView{['originalIndex'];['buttonView'];constructor(_0x20c45f,_0x36683e){super(_0x20c45f),this['originalIndex']=_0x36683e,this['buttonView']=null;}}class TemplateListButtonView extends ButtonView{['templateDefinition'];['textPartView'];constructor(_0x4ca254,_0x408108){super(_0x4ca254),this['templateDefinition']=_0x408108,this['textPartView']=null;const {icon:_0x486d39=IconTemplateGeneric}=_0x408108;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x486d39}),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'](_0x36c748){const {title:_0x33a6b7,description:_0x1b4084}=this['templateDefinition'],_0x4b04b3=!!_0x33a6b7['match'](_0x36c748),_0x1db59e=!(!_0x1b4084||!_0x1b4084['match'](_0x36c748));return _0x4b04b3||_0x1db59e?{'title':_0x4b04b3,'description':_0x1db59e}:null;}['highlightText'](_0x2afebd){this['textPartView']['highlightText'](_0x2afebd);}}class TextPartView extends View{constructor(_0x59af5e,_0x1007e7,_0x393e10){super(_0x59af5e),this['title']=_0x1007e7['title'],this['description']=_0x1007e7['description'],this['titleView']=new HighlightedTextView(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x393e10}});const _0x1f8903=[this['titleView']];this['description']&&(this['descriptionView']=new HighlightedTextView(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x1f8903['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x1f8903});}['highlightText'](_0x2fb365){this['titleView']['highlightText'](_0x2fb365),this['description']&&this['descriptionView']['highlightText'](_0x2fb365);}}function getTranslation$2(_0x74aca3,_0x5eb862,..._0x5d5514){const t=_0x74aca3['t'];switch(_0x5eb862){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x5d5514);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',..._0x5d5514);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x5eb862;}}class TemplateUI extends Plugin{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xea49c0}=this,_0x5df084=_0xea49c0['config']['get']('template.definitions')||[];_0xea49c0['ui']['componentFactory']['add']('insertTemplate',_0x157e76=>{const _0x322739=createDropdown(_0x157e76),_0x1de6ad=this['_createTemplateListView'](_0x157e76,_0x5df084),_0x130728=new SearchTextView(_0x157e76,{'filteredView':_0x1de6ad,'queryView':{'label':getTranslation$2(_0x157e76,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x1941d6=>getTranslation$2(_0x157e76,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x1941d6),'secondary':getTranslation$2(_0x157e76,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':getTranslation$2(_0x157e76,'No\x20templates\x20available.')}}}}),_0x175ae0=_0xea49c0['commands']['get']('insertTemplate');return _0x130728['on']('search',(_0x1632ad,_0x177c5a)=>{_0x177c5a['query']&&_0x177c5a['query']['length']&&_0xea49c0['ui']['ariaLiveAnnouncer']['announce'](getTranslation$2(_0x157e76,'%0\x20templates\x20found',_0x177c5a['resultsCount']));}),_0x322739['bind']('isEnabled')['to'](_0x175ae0),_0x322739['panelView']['children']['add'](_0x130728),_0x322739['buttonView']['set']({'label':getTranslation$2(_0x157e76,'Insert\x20template'),'icon':IconTemplate,'tooltip':!0x0}),_0x322739['on']('change:isOpen',(_0x4c1c97,_0xfee40c,_0x3b126b)=>{_0x3b126b||_0x130728['reset']();}),_0x322739;}),_0xea49c0['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x529844=>{const _0x3bf750=_0xea49c0['commands']['get']('insertTemplate'),_0x4b03dd=new MenuBarMenuView(_0x529844);_0x4b03dd['buttonView']['set']({'label':getTranslation$2(_0x529844,'Template'),'icon':IconTemplate});const _0x4403cb=new MenuBarMenuListView(_0x529844);if(!_0x5df084||!_0x5df084['length']){const _0x364c06=new MenuBarMenuListItemView(_0x529844,_0x4b03dd),_0x49a826=new MenuBarMenuListItemButtonView(_0x529844);_0x49a826['set']({'label':getTranslation$2(_0x529844,'No\x20templates\x20available.')}),_0x49a826['delegate']('execute')['to'](_0x4b03dd),_0x49a826['on']('execute',()=>{_0xea49c0['editing']['view']['focus']();}),_0x364c06['children']['add'](_0x49a826),_0x4403cb['items']['add'](_0x364c06);}for(const _0x172de6 of _0x5df084){const _0x45ea76=new MenuBarMenuListItemView(_0x529844,_0x4b03dd),_0x1dd777=new MenuBarMenuListItemButtonView(_0x529844);_0x1dd777['set']({'class':'ck-template-button','label':_0x172de6['title'],'icon':_0x172de6['icon']||IconTemplateGeneric}),_0x1dd777['delegate']('execute')['to'](_0x4b03dd),_0x1dd777['on']('execute',()=>{_0xea49c0['execute']('insertTemplate',_0x172de6['data']),_0xea49c0['editing']['view']['focus']();}),_0x45ea76['children']['add'](_0x1dd777),_0x4403cb['items']['add'](_0x45ea76);}return _0x4b03dd['panelView']['children']['add'](_0x4403cb),_0x4b03dd['bind']('isEnabled')['to'](_0x3bf750,'isEnabled'),_0x4b03dd;});}['afterInit'](){checkLicense$2(this);}['_createTemplateListView'](_0x3b9494,_0x23323a){const {editor:_0x224530}=this,_0x37c0d4=new TemplateListView(_0x3b9494);return _0x37c0d4['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x37c0d4['items']['addMany'](_0x23323a['map']((_0x2e1046,_0x159e7b)=>{const _0x4238ab=new TemplateListItemView(_0x3b9494,_0x159e7b),_0x3869d3=new TemplateListButtonView(_0x3b9494,_0x2e1046);return _0x4238ab['buttonView']=_0x3869d3,_0x4238ab['children']['add'](_0x3869d3),_0x4238ab['buttonView']['on']('execute',_0x303d6e=>{_0x224530['execute']('insertTemplate',_0x303d6e['source']['templateDefinition']['data']),_0x224530['editing']['view']['focus']();}),_0x4238ab;})),_0x37c0d4;}}async function checkLicense$2(_0x2020fc){const _0x2fe96d=_0x343f99([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]),_0x2d6846=window[_0x343f99([0x44,0x61,0x74,0x65])][_0x343f99([0x6e,0x6f,0x77])](),_0x578915=_0x2020fc[_0x343f99([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e8f6f=new window[(_0x343f99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5501fa=>{_0x578915[_0x343f99([0x6f,0x6e,0x63,0x65])](_0x343f99([0x72,0x65,0x61,0x64,0x79]),_0x5501fa);}),_0x54420d={[_0x343f99([0x6b,0x74,0x79])]:_0x343f99([0x45,0x43]),[_0x343f99([0x75,0x73,0x65])]:_0x343f99([0x73,0x69,0x67]),[_0x343f99([0x63,0x72,0x76])]:_0x343f99([0x50,0x2d,0x32,0x35,0x36]),[_0x343f99([0x78])]:_0x343f99([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]),[_0x343f99([0x79])]:_0x343f99([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]),[_0x343f99([0x61,0x6c,0x67])]:_0x343f99([0x45,0x53,0x32,0x35,0x36])},_0xf4bce8=_0x578915[_0x343f99([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x343f99([0x67,0x65,0x74])](_0x343f99([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0xc24121=await(async function(){let _0x26bb46,_0x292be7=null,_0xa6a044=null;try{if(_0xf4bce8==_0x343f99([0x47,0x50,0x4c]))return _0x343f99([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26bb46=(function(){const _0x3b1aa4=_0xf4bce8[_0x343f99([0x73,0x70,0x6c,0x69,0x74])](_0x343f99([0x2e]));if(0x3!=_0x3b1aa4[_0x343f99([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x1e4010=_0x3b1aa4[0x1];return _0x3b11dc(_0x1e4010);function _0x3b11dc(_0x59eecf){const _0x43ab83=_0x31be58(_0x59eecf);return _0x43ab83&&_0x200e17()?_0x43ab83:null;function _0x200e17(){const _0x5d93df=_0x43ab83[_0x343f99([0x6a,0x74,0x69])],_0x5690b2=window[_0x343f99([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d93df[_0x343f99([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d93df[_0x343f99([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5cd532={..._0x43ab83,[_0x343f99([0x6a,0x74,0x69])]:_0x5d93df[_0x343f99([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d93df[_0x343f99([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5cd532[_0x343f99([0x76,0x63])],_0x442dec(_0x5cd532)==_0x5690b2;}}}()),!_0x26bb46)return _0x343f99([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x26bb46[_0x343f99([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa6a044=function(_0x453cdf,_0x1c1738){return new window[(_0x343f99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x232e12=>{if(_0x19c92e())return _0x232e12(_0x343f99([0x56,0x61,0x6c,0x69,0x64]));_0x3b18db(),_0x578915[_0x343f99([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x343f99([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x433e1b=!0x1;const _0x13d704=uid();function _0x5bb15c(_0x59ef5d){return!!_0x59ef5d&&(typeof _0x59ef5d===_0x343f99([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59ef5d===_0x343f99([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59ef5d[_0x343f99([0x74,0x68,0x65,0x6e])]===_0x343f99([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59ef5d[_0x343f99([0x63,0x61,0x74,0x63,0x68])]===_0x343f99([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x354099(_0x2e341a){_0x50c8d1(_0x2e341a)[_0x343f99([0x74,0x68,0x65,0x6e])](_0x188c89=>{if(!_0x188c89||_0x188c89[_0x343f99([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x343f99([0x6f,0x6b]))return _0x343f99([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xa375c1(_0x442dec(_0x13d704+_0x1c1738))!=_0x188c89[_0x343f99([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x343f99([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x343f99([0x56,0x61,0x6c,0x69,0x64]);})[_0x343f99([0x74,0x68,0x65,0x6e])](_0x41bf41=>(_0x27686e(),_0x41bf41),()=>{const _0x32ab1=_0x5e5d51();return null==_0x32ab1?(_0x27686e(),_0x343f99([0x56,0x61,0x6c,0x69,0x64])):_0x343f99(_0x2d6846-_0x32ab1>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x343f99([0x74,0x68,0x65,0x6e])](_0x232e12)[_0x343f99([0x63,0x61,0x74,0x63,0x68])](()=>{_0x232e12(_0x343f99([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16de38=0x36ee80;function _0x27686e(){const _0x4c637b=_0x343f99([0x6c,0x6c,0x63,0x74,0x2d])+_0xa375c1(_0x442dec(_0x453cdf)),_0x1512b9=_0x5a2afe(_0xa375c1(window[_0x343f99([0x4d,0x61,0x74,0x68])][_0x343f99([0x63,0x65,0x69,0x6c])](_0x2d6846/_0x16de38)));window[_0x343f99([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x343f99([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c637b,_0x1512b9);}function _0x5e5d51(){const _0x14322c=_0x343f99([0x6c,0x6c,0x63,0x74,0x2d])+_0xa375c1(_0x442dec(_0x453cdf)),_0x5c4cd5=window[_0x343f99([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x343f99([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14322c);return _0x5c4cd5?window[_0x343f99([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a2afe(_0x5c4cd5),0x10)*_0x16de38:null;}function _0x50c8d1(_0x389caf){return new window[(_0x343f99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x529a7f,_0x5b7d56)=>{_0x389caf[_0x343f99([0x74,0x68,0x65,0x6e])](_0x529a7f,_0x5b7d56),window[_0x343f99([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b7d56,0x1d4c0);});}}_0x578915[_0x343f99([0x6f,0x6e])](_0x343f99([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x194d4b,_0x27df03)=>{if(_0x27df03[0x0]!=_0x453cdf)return _0x232e12(_0x343f99([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x27df03[0x1]={..._0x27df03[0x1],[_0x343f99([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x13d704};},{[_0x343f99([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x343f99([0x68,0x69,0x67,0x68])}),_0x578915[_0x343f99([0x6f,0x6e])](_0x343f99([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2dc2bc=>{_0x5bb15c(_0x2dc2bc[_0x343f99([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x433e1b=!0x0,_0x354099(_0x2dc2bc[_0x343f99([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x343f99([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x343f99([0x6c,0x6f,0x77])}),_0x4e8f6f[_0x343f99([0x74,0x68,0x65,0x6e])](()=>{_0x433e1b||_0x232e12(_0x343f99([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19c92e(){return _0x578915[_0x343f99([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x343f99([0x76,0x69,0x65,0x77])][_0x343f99([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x343f99([0x61,0x75,0x74,0x6f]);}function _0x3b18db(){_0x578915[_0x343f99([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x343f99([0x76,0x69,0x65,0x77])][_0x343f99([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x343f99([0x61,0x75,0x74,0x6f]);}}(_0x26bb46[_0x343f99([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26bb46[_0x343f99([0x6a,0x74,0x69])]));const _0x44a6a8=await(async function(){let _0x88fcf8=!0x0;try{const _0x18fe56=_0xf4bce8[_0x343f99([0x73,0x70,0x6c,0x69,0x74])](_0x343f99([0x2e])),[_0x4e46b8,_0x4015a5,_0x46e940]=_0x18fe56;return _0x35a527(_0x4e46b8),await _0x3adf87(_0x4e46b8,_0x4015a5,_0x46e940),_0x88fcf8;}catch{return!0x1;}function _0x35a527(_0x4e5ad5){const _0xda7247=_0x31be58(_0x4e5ad5);_0xda7247&&_0xda7247[_0x343f99([0x61,0x6c,0x67])]==_0x343f99([0x45,0x53,0x32,0x35,0x36])||(_0x88fcf8=!0x1);}async function _0x3adf87(_0x215a85,_0x3cc992,_0x22af11){const _0x993b39=window[_0x343f99([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x343f99([0x66,0x72,0x6f,0x6d])](_0x5177ca(_0x22af11),_0x264bd2=>_0x264bd2[_0x343f99([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x581c69=new window[(_0x343f99([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x343f99([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x215a85+_0x343f99([0x2e])+_0x3cc992),_0x21f213=window[_0x343f99([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x343f99([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x21f213)return;const _0x1711cc=await _0x21f213[_0x343f99([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x343f99([0x6a,0x77,0x6b]),_0x54420d,{[_0x343f99([0x6e,0x61,0x6d,0x65])]:_0x343f99([0x45,0x43,0x44,0x53,0x41]),[_0x343f99([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x343f99([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x343f99([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x21f213[_0x343f99([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x343f99([0x6e,0x61,0x6d,0x65])]:_0x343f99([0x45,0x43,0x44,0x53,0x41]),[_0x343f99([0x68,0x61,0x73,0x68])]:{[_0x343f99([0x6e,0x61,0x6d,0x65])]:_0x343f99([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1711cc,_0x993b39,_0x581c69)||(_0x88fcf8=!0x1);}}());return _0x44a6a8?(function(){const _0x2725a6=_0x26bb46[_0x343f99([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2725a6)return!0x1;if(_0x2725a6[_0x343f99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343f99([0x2a])))return!0x0;if(_0x2725a6[_0x343f99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343f99([0x54,0x50,0x4c])))return!0x0;if(_0x2725a6[_0x343f99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343f99([0x50,0x50])))return!0x0;if(_0x2725a6[_0x343f99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343f99([0x44,0x52,0x55,0x50]))&&window[_0x343f99([0x44,0x72,0x75,0x70,0x61,0x6c])])return!0x0;if(_0x2725a6[_0x343f99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343f99([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x343f99([0x67,0x6c,0x6f,0x62])]&&window[_0x343f99([0x67,0x6c,0x6f,0x62])][_0x343f99([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x3d62df=[_0x343f99([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x343f99([0x74,0x72,0x69,0x61,0x6c])][_0x343f99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26bb46[_0x343f99([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d6846/0x3e8:0x69d59a80;return _0x26bb46[_0x343f99([0x65,0x78,0x70])]<_0x3d62df;}())?_0x343f99([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x529e71=_0x26bb46[_0x343f99([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x529e71||0x0==_0x529e71[_0x343f99([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x499da9}=new URL(window[_0x343f99([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x529e71[_0x343f99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x499da9))return!0x0;const _0x22849c=_0x499da9[_0x343f99([0x73,0x70,0x6c,0x69,0x74])](_0x343f99([0x2e]));return _0x529e71[_0x343f99([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d13a8=>_0x2d13a8[_0x343f99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343f99([0x2a])))[_0x343f99([0x6d,0x61,0x70])](_0xb05969=>_0xb05969[_0x343f99([0x73,0x70,0x6c,0x69,0x74])](_0x343f99([0x2e])))[_0x343f99([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x326a90=>_0x326a90[_0x343f99([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x22849c[_0x343f99([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x343f99([0x6d,0x61,0x70])](_0x15203a=>Array(_0x22849c[_0x343f99([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x15203a[_0x343f99([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x343f99([0x66,0x69,0x6c,0x6c])](_0x15203a[0x0]===_0x343f99([0x2a])?_0x343f99([0x2a]):'')[_0x343f99([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x15203a))[_0x343f99([0x73,0x6f,0x6d,0x65])](_0x4eceba=>_0x22849c[_0x343f99([0x65,0x76,0x65,0x72,0x79])]((_0x593556,_0x236fa5)=>_0x4eceba[_0x236fa5]===_0x593556||_0x4eceba[_0x236fa5]===_0x343f99([0x2a])));}())?(_0x26bb46[_0x343f99([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x343f99([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x292be7=function(_0xcb0d1c){const _0x2177c5=new window[(_0x343f99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e5568=>setTimeout(_0x4e5568,0x93ecc)),_0x1735dc=_0x4e8f6f[_0x343f99([0x74,0x68,0x65,0x6e])](()=>new window[(_0x343f99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4de310=>{let _0x464157=0x0;_0x578915[_0x343f99([0x6d,0x6f,0x64,0x65,0x6c])][_0x343f99([0x6f,0x6e])](_0x343f99([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5c5fd1,_0x332857)=>{_0x332857[0x0][_0x343f99([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x464157++,0x5e8==_0x464157&&(_0x4de310(),_0x5c5fd1[_0x343f99([0x6f,0x66,0x66])]());});})),_0x51c703=[_0x2177c5,_0x1735dc];return window[_0x343f99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x343f99([0x72,0x61,0x63,0x65])](_0x51c703)[_0x343f99([0x74,0x68,0x65,0x6e])](()=>_0xcb0d1c);}(_0x343f99([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x292be7&&_0xa6a044)return new window[(_0x343f99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b9b5c,_0x3b47c3)=>{_0x292be7[_0x343f99([0x74,0x68,0x65,0x6e])](_0x4b9b5c,_0x3b47c3),_0xa6a044[_0x343f99([0x74,0x68,0x65,0x6e])](_0x5ce938=>{_0x5ce938!=_0x343f99([0x56,0x61,0x6c,0x69,0x64])&&_0x4b9b5c(_0x5ce938);},_0x3b47c3);});return _0x292be7||_0xa6a044||_0x343f99([0x56,0x61,0x6c,0x69,0x64]);}())):_0x343f99([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x343f99([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x343f99([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x343f99([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x31be58(_0x26169d){return _0x26169d[_0x343f99([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x343f99([0x65,0x79]))?JSON[_0x343f99([0x70,0x61,0x72,0x73,0x65])](_0x5177ca(_0x26169d)):null;}function _0x5177ca(_0x2f13df){return window[_0x343f99([0x61,0x74,0x6f,0x62])](_0x2f13df[_0x343f99([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x343f99([0x2b]))[_0x343f99([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x343f99([0x2f])));}function _0x442dec(_0x1bdce3){let _0xbe8cb4=0x1505;function _0x5cb8f8(_0x5bb844){for(let _0x132be4=0x0;_0x132be4<_0x5bb844[_0x343f99([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x132be4++){const _0x1c6a6e=_0x5bb844[_0x343f99([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x132be4);_0xbe8cb4=(_0xbe8cb4<<0x5)+_0xbe8cb4+_0x1c6a6e,_0xbe8cb4&=_0xbe8cb4;}}return function _0x4db612(_0x554512){Array[_0x343f99([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x554512)?_0x554512[_0x343f99([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4db612):_0x554512&&typeof _0x554512==_0x343f99([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x343f99([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x554512)[_0x343f99([0x73,0x6f,0x72,0x74])]()[_0x343f99([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x98dbe6,_0x3389ac])=>{_0x5cb8f8(_0x98dbe6),_0x4db612(_0x3389ac);}):_0x5cb8f8(window[_0x343f99([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x554512));}(_0x1bdce3),_0xbe8cb4>>>0x0;}function _0xa375c1(_0x1b782d){return _0x1b782d[_0x343f99([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x343f99([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x343f99([0x30]));}function _0x5a2afe(_0xd2571){return _0xd2571[_0x343f99([0x73,0x70,0x6c,0x69,0x74])]('')[_0x343f99([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x343f99([0x6a,0x6f,0x69,0x6e])]('');}function _0xa0326a(){}function _0x343f99(_0x5d4b7e){return _0x5d4b7e['map'](_0x1ee241=>String['fromCharCode'](_0x1ee241))['join']('');}!function(_0x110a63){const _0xe3d146=(function(){const _0x2bac60=window[_0x343f99([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x343f99([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x343f99([0x6e,0x6f,0x77])]())[_0x343f99([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x343f99([0x2e]),'');let _0x150d8b=_0x343f99([0x67]);for(let _0x266264=0x0;_0x266264<_0x2bac60[_0x343f99([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x266264+=0x2){let _0x1c93a2=window[_0x343f99([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bac60[_0x343f99([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x266264,_0x266264+0x2));_0x1c93a2>=_0x2fe96d[_0x343f99([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1c93a2-=_0x2fe96d[_0x343f99([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x150d8b+=_0x2fe96d[_0x1c93a2];}return _0x150d8b;}());_0x578915[_0xe3d146]=_0x343f99([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x110a63,_0x110a63!=_0x343f99([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x4e8f6f,_0x578915[_0x343f99([0x6d,0x6f,0x64,0x65,0x6c])][_0x343f99([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa0326a,_0x578915[_0x343f99([0x6d,0x6f,0x64,0x65,0x6c])][_0x343f99([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa0326a,_0x578915[_0x343f99([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x343f99([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0xc24121);}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;}}class TrackChangesCommand extends Command{['_enabledCommands'];constructor(_0x27ec07,_0x2c9e78){super(_0x27ec07),this['_enabledCommands']=_0x2c9e78,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 _0x4b98d5 of this['editor']['commands']['commands']())_0x4b98d5['affectsData']&&!this['_enabledCommands']['has'](_0x4b98d5)&&_0x4b98d5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x348f46 of this['editor']['commands']['commands']())_0x348f46['affectsData']&&!this['_enabledCommands']['has'](_0x348f46)&&_0x348f46['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends Command{['_suggestions'];constructor(_0x26ce24,_0x31563b){super(_0x26ce24),this['_suggestions']=_0x31563b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4170b0){const _0x1f003e=this['_suggestions']['get'](_0x4170b0);if(!_0x1f003e)throw new CKEditorError('track-changes-accept-suggestion-not-found',this);const _0x1f21ca=_0x1f003e['getRanges']();this['editor']['model']['canEditAt'](_0x1f21ca)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1f003e);}}class DiscardSuggestionCommand extends Command{['_suggestions'];constructor(_0x32749d,_0x4321b9){super(_0x32749d),this['_suggestions']=_0x4321b9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5f360e){const _0x25c0c8=this['_suggestions']['get'](_0x5f360e);if(!_0x25c0c8)throw new CKEditorError('track-changes-discard-suggestion-not-found',this);const _0x4f0eef=_0x25c0c8['getRanges']();this['editor']['model']['canEditAt'](_0x4f0eef)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x25c0c8);}}function renderDescription(_0x5ea915,_0x5b8369){let _0x391512='';return _0x391512+=_0x5ea915['split']('*')['map']((_0x5302cd,_0x45819b)=>_0x45819b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+sanitize(_0x5302cd)+'</span>':sanitize(_0x5302cd))['join'](''),_0x5b8369&&(_0x391512+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5b8369['value']+'\x22\x20title=\x22'+_0x5b8369['title']+'\x22></span>'),_0x391512;}function sanitize(_0x3722ad){const _0x41b268=document['createElement']('span');return _0x41b268['innerText']=_0x3722ad,_0x41b268['innerHTML'];}function sortSuggestions(_0x28889c){return _0x28889c['sort']((_0x547ad0,_0x14e310)=>'attribute'===_0x547ad0['type']&&'attribute'!==_0x14e310['type']?-0x1:'attribute'!==_0x547ad0['type']&&'attribute'===_0x14e310['type']?0x1:'deletion'==_0x547ad0['type']&&'deletion'!=_0x14e310['type']?-0x1:'deletion'!=_0x547ad0['type']&&'deletion'==_0x14e310['type']?0x1:0x0);}function getSelectedSuggestions(_0x1e688e,_0x4e81a9){const _0x561b0e=Array['from'](_0x1e688e['getRanges']()),_0x1007a5=new Set();for(const _0x345860 of _0x4e81a9)if(_0x345860['isInContent']){for(const _0x5bb0bb of _0x561b0e)for(const _0x1f3c2b of _0x345860['getRanges']())(_0x5bb0bb['isIntersecting'](_0x1f3c2b)||_0x1e688e['isCollapsed']&&!_0x345860['isMultiRange']&&_0x345860['next']&&_0x1f3c2b['end']['isTouching'](_0x5bb0bb['start']))&&_0x1007a5['add'](_0x345860);}return _0x1007a5;}function getRangesOfBlockGroups(_0x4f9378,_0x3b6511){let _0x564f3e,_0x721474=0x0;const _0x3c435d=[],_0x101f77=_0x3b6511['schema'];for(;_0x721474<_0x4f9378['length'];){const _0x22f8b0=_0x4f9378[_0x721474],_0x5bbbb4=_0x4f9378[_0x721474+0x1];_0x564f3e||(_0x564f3e=_0x3b6511['createPositionBefore'](_0x22f8b0)),areNeighbourBlocks(_0x3b6511,_0x22f8b0,_0x5bbbb4)||(_0x3c435d['push'](_0x3b6511['createRange'](_0x564f3e,_0x101f77['isObject'](_0x22f8b0)?_0x3b6511['createPositionAfter'](_0x22f8b0):_0x3b6511['createPositionAt'](_0x22f8b0,'end'))),_0x564f3e=null),_0x721474++;}return _0x3c435d;}function areNeighbourBlocks(_0x13c3e4,_0x30e365,_0x2c6970){if(!_0x2c6970)return!0x1;const _0x42f191=_0x13c3e4['createPositionAfter'](_0x30e365),_0xf7e527=_0x13c3e4['createPositionBefore'](_0x2c6970);return _0x42f191['isTouching'](_0xf7e527);}const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;function executeCommandForSuggestions(_0x5521a6,_0x496d43,_0x6ffcf5){for(;_0x6ffcf5['length'];){const _0xda0a99=_0x6ffcf5['splice'](0x0,MAX_SUGGESTION_ACTIONS_IN_BATCH);_0x5521a6['change'](()=>{for(const _0x43ede7 of _0xda0a99)_0x43ede7['isInContent']&&_0x496d43['execute'](_0x43ede7['id']);});}}class ExecuteOnAllSuggestionsCommand extends Command{['_command'];['_suggestions'];constructor(_0x1891ec,_0x4418cb,_0x151ebc){super(_0x1891ec),this['_command']=_0x4418cb,this['_suggestions']=_0x151ebc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2dd253=Array['from'](this['_suggestions']['values']())['some'](_0x13b076=>_0x13b076['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2dd253;}['execute'](){const _0x4d1d37=sortSuggestions(Array['from'](this['_suggestions']['values']()));for(const _0x3b5791 of _0x4d1d37){const _0x30cd9b=_0x3b5791['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30cd9b))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0x4d1d37);}}class ExecuteOnSelectedSuggestionsCommand extends Command{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x137786,_0x5d94b0,_0x192e6e){super(_0x137786),this['_command']=_0x5d94b0,this['_suggestions']=_0x192e6e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x358987=this['editor']['model']['document']['selection'],_0x239b53=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=getSelectedSuggestions(_0x358987,_0x239b53),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xfd5b06=sortSuggestions(Array['from'](this['_selectedSuggestions']));for(const _0x5bc52e of _0xfd5b06){const _0x2c22be=_0x5bc52e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2c22be))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0xfd5b06);}}class Suggestion extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x47e386,_0x1fd765){super(),this['id']=_0x1fd765['id'],this['type']=_0x1fd765['type'],this['subType']=_0x1fd765['subType']||null,this['author']=_0x1fd765['author'],this['creator']=_0x1fd765['creator']||_0x1fd765['author'],this['isExternal']=Boolean(_0x1fd765['attributes']&&_0x1fd765['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1fd765['originalSuggestionId']||null,this['_model']=_0x47e386,this['_onAccept']=_0x1fd765['onAccept'],this['_onDiscard']=_0x1fd765['onDiscard'],this['_onAttributesChange']=_0x1fd765['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1fd765['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 _0x4ce58f=this;for(;_0x4ce58f['previous'];)_0x4ce58f=_0x4ce58f['previous'];return _0x4ce58f;}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'](_0x2318b1){this['_markerNames']['add'](_0x2318b1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3bc652=>this['_model']['markers']['get'](_0x3bc652))['filter'](_0x559f49=>_0x559f49);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1f2f0e=>{for(const _0x2e0094 of this['getMarkers']())_0x1f2f0e['removeMarker'](_0x2e0094);}),this['_markerNames']['clear']();}['removeMarker'](_0x220450){this['_model']['change'](_0x283486=>{_0x283486['removeMarker'](_0x220450);}),this['_markerNames']['delete'](_0x220450);}['addRange'](_0x5c0afe){const _0x254f57='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x254f57),this['_model']['change'](_0x54bba3=>{_0x54bba3['addMarker'](_0x254f57,{'range':_0x5c0afe,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x18e42f){for(const _0x173a92 of this['getRanges']())if(_0x173a92['isIntersecting'](_0x18e42f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x216eee=>_0x216eee['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4e9575,_0x499385)=>[..._0x4e9575,..._0x499385['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5f506f=this['getRanges']();if(0x1!=_0x5f506f['length'])return null;const _0x3aa400=_0x5f506f[0x0],_0x460638=_0x3aa400['start']['nodeAfter'],_0x938572=_0x3aa400['end']['nodeBefore'];return _0x460638 instanceof ModelElement?_0x460638!=_0x938572?null:_0x460638: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 _0x2bde29=[];let _0x4f789a=this['head'];for(;_0x4f789a;)_0x2bde29['push'](_0x4f789a),_0x4f789a=_0x4f789a['next'];return _0x2bde29;}['setAttribute'](_0xc2bf8a,_0xd21412){const _0x27e908=cloneDeep(this['attributes']);set(_0x27e908,_0xc2bf8a,_0xd21412),isEqual(_0x27e908,this['attributes'])||(this['attributes']=_0x27e908,this['_onAttributesChange'](_0x27e908));}['removeAttribute'](_0x463662){const _0x916115=cloneDeep(this['attributes']);unset(_0x916115,_0x463662),isEqual(_0x916115,this['attributes'])||(this['attributes']=_0x916115,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$1(_0x5c3116,_0x29b7ea,_0x5d768c){const _0x4cc640=_0x5c3116['t'],t=_0x5c3116['t'];switch(_0x29b7ea){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',_0x5d768c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d768c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d768c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d768c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d768c);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',_0x5d768c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d768c);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',_0x5d768c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d768c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d768c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d768c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d768c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d768c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5d768c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d768c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d768c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d768c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d768c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d768c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d768c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d768c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d768c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d768c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d768c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5d768c);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'},_0x5d768c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5d768c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5d768c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d768c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d768c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d768c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d768c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d768c);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'},_0x5d768c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d768c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d768c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d768c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d768c);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'},_0x5d768c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d768c);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'},_0x5d768c);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_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'},_0x5d768c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d768c);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'},_0x5d768c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d768c);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'},_0x5d768c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d768c);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5d768c);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5d768c);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5d768c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d768c);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'},_0x5d768c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5d768c);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 _0x4cc640({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5d768c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4cc640({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5d768c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d768c);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'},_0x5d768c);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'},_0x5d768c);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'},_0x5d768c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x29b7ea;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4309c9,_0x2d18ad){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4309c9,this['_locale']=_0x2d18ad;}['getDescriptions'](_0x28365e){const _0x37b6bd=[],_0x2cd1f5=new Set(),_0x3c88f7=new Set();for(let _0x2e10a5=0x0;_0x2e10a5<_0x28365e['length'];_0x2e10a5++){const _0x206452=_0x28365e[_0x2e10a5];if(!_0x206452['isInContent'])continue;const _0x125713=this['_handleCustomCallbackDescription'](_0x206452);if(_0x125713){if(null!=_0x206452['subType']){if(_0x2cd1f5['has'](_0x206452['subType']))continue;_0x2cd1f5['add'](_0x206452['subType']);}_0x37b6bd['push'](_0x125713);}else{if('attribute'==_0x206452['type']){const _0x2aba17=_0x206452['data']['key'];if(_0x3c88f7['has'](_0x2aba17))continue;_0x3c88f7['add'](_0x206452['data']['key']),_0x2aba17==renameAttributeKey?this['_handleRenameSuggestionDescription'](_0x37b6bd,_0x206452):this['_handleAttributeSuggestionDescription'](_0x37b6bd,_0x206452);continue;}'insertion'!=_0x206452['type']&&'deletion'!=_0x206452['type']||this['_handleInsertRemoveSuggestionDescription'](_0x37b6bd,_0x206452,_0x28365e[_0x2e10a5+0x1]);}}return this['_resolveDescriptionItems'](_0x37b6bd);}['registerDescriptionCallback'](_0x57ae59){this['_customCallbacks']['push'](_0x57ae59);}['registerElementLabel'](_0x3e71b4,_0x3c373b,_0x209506=priorities['normal']){'function'==typeof _0x3e71b4?insertToPriorityArray(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3e71b4,'label':_0x3c373b,'priority':_0x209506}):this['_itemLabels']['set'](_0x3e71b4,_0x3c373b);}['registerAttributeLabel'](_0x4a360d,_0xa1bead){this['_attributeLabels']['set'](_0x4a360d,_0xa1bead);}['getItemLabel'](_0x5e8cfa,_0x2c5998=0x1){let _0x1d313d;for(const _0x52e3fd of this['_itemLabelsCallbacks'])if(_0x52e3fd['matchingCallback'](_0x5e8cfa)){_0x1d313d=_0x52e3fd['label'];break;}return _0x1d313d||(_0x1d313d=this['_itemLabels']['get'](_0x5e8cfa['name'])),_0x1d313d?_0x1d313d(_0x2c5998):0x1!==_0x2c5998?_0x2c5998+'\x20'+_0x5e8cfa['name']+'s':''+_0x5e8cfa['name'];}['_addDescriptionItems'](_0x3ab515,_0x4c5e2f){const _0x42ccf7=_0x4c5e2f['getFirstRange']()['getWalker'](),_0x48d45a='insertion'==_0x4c5e2f['type']?'add':'remove';for(const _0x539fd8 of _0x42ccf7){const _0x318d3e=_0x539fd8['item'],_0x5d6b4f=_0x3ab515[_0x3ab515['length']-0x1];if(_0x318d3e['is']('$textProxy'))_0x5d6b4f&&_0x5d6b4f['type']['indexOf']('Container')>-0x1&&_0x3ab515['pop'](),_0x5d6b4f&&'text'==_0x5d6b4f['type']?_0x5d6b4f[_0x48d45a]+=_0x318d3e['data']:_0x3ab515['push']({'type':'text','add':'add'==_0x48d45a?_0x318d3e['data']:'','remove':'remove'==_0x48d45a?_0x318d3e['data']:''});else{if(this['_schema']['isObject'](_0x318d3e)){const _0x438430=_0x318d3e;if(_0x5d6b4f&&_0x5d6b4f['type']['indexOf']('Container')>-0x1&&_0x3ab515['pop'](),'elementEnd'==_0x539fd8['type'])continue;_0x5d6b4f&&_0x5d6b4f['type']==_0x48d45a+'Object'&&_0x5d6b4f['element']['name']==_0x438430['name']?_0x5d6b4f['quantity']++:_0x3ab515['push']({'type':_0x48d45a+'Object','element':_0x438430,'quantity':0x1}),_0x42ccf7['skip'](_0x3e4318=>!('elementEnd'==_0x3e4318['type']&&_0x3e4318['item']==_0x318d3e));}else{if(this['_schema']['checkChild'](_0x318d3e,'$text')||_0x318d3e['is']('element','softBreak')){const _0x453bcf=_0x318d3e;if('add'==_0x48d45a&&'elementStart'==_0x539fd8['type']||'remove'==_0x48d45a&&'elementEnd'==_0x539fd8['type'])continue;if(_0x5d6b4f&&-0x1==_0x5d6b4f['type']['indexOf']('Container')){'text'==_0x5d6b4f['type']&&(_0x5d6b4f[_0x48d45a]+='\x0a');continue;}let _0x13fe80;if(_0x13fe80='add'==_0x48d45a?_0x453bcf['nextSibling']&&!this['_schema']['isObject'](_0x453bcf['nextSibling'])?_0x453bcf['nextSibling']:null:_0x453bcf['previousSibling']&&!this['_schema']['isObject'](_0x453bcf['previousSibling'])?_0x453bcf['previousSibling']:null,_0x453bcf['isEmpty']||_0x13fe80&&_0x13fe80['isEmpty']){const _0x5b81ad=_0x13fe80&&_0x13fe80['isEmpty']?_0x13fe80:_0x453bcf;_0x5d6b4f&&_0x5d6b4f['type']==_0x48d45a+'EmptyContainer'&&_0x5d6b4f['element']['name']==_0x5b81ad['name']?_0x5d6b4f['quantity']++:_0x3ab515['push']({'type':_0x48d45a+'EmptyContainer','element':_0x5b81ad,'quantity':0x1});}else _0x3ab515['push']({'type':_0x48d45a+'Container','element':_0x453bcf});}}}}}['_resolveDescriptionItems'](_0xdb881c){const _0x1b9969=this['_locale'],_0x529efb=[],_0x47c7f3=[],_0x510556=[];for(const _0x413936 of _0xdb881c)switch(_0x413936['type']){case'text':if(_0x413936['add']=_0x413936['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x413936['remove']=_0x413936['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x413936['add']&&''!=_0x413936['remove']){_0x529efb['push']({'type':'replace','content':getTranslation$1(_0x1b9969,'REPLACE_TEXT',['\x22'+_0x413936['remove']+'\x22','\x22'+_0x413936['add']+'\x22'])});continue;}if(null!=_0x413936['add']['match'](/^ +$/)){_0x529efb['push']({'type':'insertion','content':getTranslation$1(_0x1b9969,'*Insert:*\x20%0',getTranslation$1(_0x1b9969,'ELEMENT_SPACE',_0x413936['add']['length']))});continue;}if(null!=_0x413936['remove']['match'](/^ +$/)){_0x529efb['push']({'type':'deletion','content':getTranslation$1(_0x1b9969,'*Remove:*\x20%0',getTranslation$1(_0x1b9969,'ELEMENT_SPACE',_0x413936['remove']['length']))});continue;}if(''!=_0x413936['add']){_0x529efb['push']({'type':'insertion','content':getTranslation$1(_0x1b9969,'*Insert:*\x20%0','\x22'+_0x413936['add']+'\x22')});continue;}_0x529efb['push']({'type':'deletion','content':getTranslation$1(_0x1b9969,'*Remove:*\x20%0','\x22'+_0x413936['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x529efb['push']({'type':'insertion','content':getTranslation$1(_0x1b9969,'*Insert:*\x20%0',this['getItemLabel'](_0x413936['element'],_0x413936['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x529efb['push']({'type':'deletion','content':getTranslation$1(_0x1b9969,'*Remove:*\x20%0',this['getItemLabel'](_0x413936['element'],_0x413936['quantity']))});continue;case'addContainer':_0x529efb['push']({'type':'insertion','content':getTranslation$1(_0x1b9969,'*Split:*\x20%0',this['getItemLabel'](_0x413936['element'],_0x413936['quantity']))});continue;case'removeContainer':_0x529efb['push']({'type':'deletion','content':getTranslation$1(_0x1b9969,'*Merge:*\x20%0',this['getItemLabel'](_0x413936['element'],_0x413936['quantity']))});continue;case'addFormat':_0x47c7f3['push'](_0x413936['key']);continue;case'removeFormat':_0x510556['push'](_0x413936['key']);continue;default:_0x529efb['push'](_0x413936);}if(_0x47c7f3['length']){const _0x83db33=_0x47c7f3['map'](_0x3d9a4e=>this['_attributeLabels']['has'](_0x3d9a4e)?this['_attributeLabels']['get'](_0x3d9a4e):_0x3d9a4e)['join'](',\x20');_0x529efb['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Set\x20format:*\x20%0',_0x83db33)});}if(_0x510556['length']){const _0x21ff3c=_0x510556['map'](_0x430fd3=>this['_attributeLabels']['has'](_0x430fd3)?this['_attributeLabels']['get'](_0x430fd3):_0x430fd3)['join'](',\x20');_0x529efb['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Remove\x20format:*\x20%0',_0x21ff3c)});}return _0x529efb;}['_handleCustomCallbackDescription'](_0x27401a){for(const _0x201520 of this['_customCallbacks']){const _0x4e1474=_0x201520(_0x27401a);if(_0x4e1474&&'type'in _0x4e1474)return _0x4e1474;}}['_handleAttributeSuggestionDescription'](_0x3b045a,_0x17f857){const _0x5de827=_0x17f857['data'],_0x5c268d=void 0x0===_0x5de827['newValue']?'removeFormat':'addFormat';_0x3b045a['push']({'type':_0x5c268d,'key':_0x5de827['key']});}['_handleRenameSuggestionDescription'](_0x1fb225,_0xfcf53b){_0x1fb225['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xfcf53b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x8b998e,_0x57ac6b,_0x45bb89){if(this['_addDescriptionItems'](_0x8b998e,_0x57ac6b),_0x45bb89&&_0x45bb89['getFirstRange']()&&!_0x57ac6b['getFirstRange']()['end']['isEqual'](_0x45bb89['getFirstRange']()['start'])){const _0x4aef2d=_0x8b998e[_0x8b998e['length']-0x1],_0x3f6bee='insertion'==_0x57ac6b['type']?'add':'remove';_0x4aef2d&&'text'==_0x4aef2d['type']&&(_0x4aef2d[_0x3f6bee]+='\x0a');}}}class TrackChangesAIAssistant extends Plugin{['afterInit'](){const _0x324c57=this['editor'],_0x29c5f6=_0x324c57['plugins']['get']('TrackChangesEditing');_0x324c57['commands']['get']('showAIAssistant')&&_0x29c5f6['enableCommand']('showAIAssistant');}}class TrackChangesAI extends Plugin{['afterInit'](){const _0x202183=this['editor'],_0x5c8817=_0x202183['plugins']['get']('TrackChangesEditing');_0x202183['commands']['get']('toggleAi')&&_0x5c8817['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends Plugin{['afterInit'](){const _0x2c6af7=this['editor'],_0x3b03aa=_0x2c6af7['plugins']['get']('TrackChangesEditing');_0x2c6af7['commands']['get']('aiQuickAction')&&_0x3b03aa['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends Plugin{['afterInit'](){const _0x318ecf=this['editor'],_0x2d275b=_0x318ecf['locale'];if(!_0x318ecf['plugins']['has']('AlignmentEditing'))return;const _0x1d7a66=_0x318ecf['plugins']['get']('TrackChangesEditing');_0x1d7a66['enableDefaultAttributesIntegration']('alignment'),_0x1d7a66['descriptionFactory']['registerAttributeLabel']('alignment',getTranslation$1(_0x2d275b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11a9ae=this['editor'],_0x1ddbbc=_0x11a9ae['locale'];_0x11a9ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ef0d7=>{if('formatBlock'!=_0x4ef0d7['type'])return;const {data:_0x2965b1}=_0x4ef0d7;if(_0x2965b1&&'alignment'==_0x2965b1['commandName']){const _0x311307=_0x2965b1['commandParams'][0x0]['value'];return{'type':'format','content':getTranslation$1(_0x1ddbbc,'*Format:*\x20%0',function(_0xb2e62c){switch(_0xb2e62c){case'left':return getTranslation$1(_0x1ddbbc,'FORMAT_ALIGN_TO_LEFT');case'right':return getTranslation$1(_0x1ddbbc,'FORMAT_ALIGN_TO_RIGHT');case'center':return getTranslation$1(_0x1ddbbc,'FORMAT_ALIGN_TO_CENTER');case'justify':return getTranslation$1(_0x1ddbbc,'FORMAT_JUSTIFY_TEXT');}}(_0x311307))};}});}}const basicStylesPlugins=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends Plugin{['afterInit'](){const _0x18029b=this['editor'],_0x1c51ed=_0x18029b['plugins']['get']('TrackChangesEditing'),_0x33d66d=_0x18029b['locale'];for(const _0x2d862c of basicStylesPlugins){if(!_0x18029b['plugins']['has'](_0x2d862c))continue;const _0x2b8f0d=_0x2d862c['slice'](0x0,-0x7)['toLowerCase'](),_0x1a1286='FORMAT_'+_0x2b8f0d['toUpperCase']();_0x1c51ed['enableDefaultAttributesIntegration'](_0x2b8f0d),_0x1c51ed['descriptionFactory']['registerAttributeLabel'](_0x2b8f0d,getTranslation$1(_0x33d66d,_0x1a1286));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14bdef=this['editor'],_0x3b2c0b=_0x14bdef['locale'],_0x1fe0ec=_0x14bdef['plugins']['get']('TrackChangesEditing');function _0x6880d1(_0x1b6ae7,_0x15dd5a){_0x1fe0ec['descriptionFactory']['registerDescriptionCallback'](_0x4f6a74=>{if('formatInline'!=_0x4f6a74['type'])return;const {data:_0x2365a4}=_0x4f6a74;return _0x2365a4&&_0x2365a4['commandName']===_0x1b6ae7?_0x2365a4['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x3b2c0b,'*Format:*\x20%0',_0x15dd5a)}:{'type':'format','content':getTranslation$1(_0x3b2c0b,'*Remove\x20format:*\x20%0',_0x15dd5a)}:void 0x0;});}_0x6880d1('bold',getTranslation$1(_0x3b2c0b,'FORMAT_BOLD')),_0x6880d1('italic',getTranslation$1(_0x3b2c0b,'FORMAT_ITALIC')),_0x6880d1('underline',getTranslation$1(_0x3b2c0b,'FORMAT_UNDERLINE')),_0x6880d1('code',getTranslation$1(_0x3b2c0b,'FORMAT_CODE')),_0x6880d1('strikethrough',getTranslation$1(_0x3b2c0b,'FORMAT_STRIKETHROUGH')),_0x6880d1('subscript',getTranslation$1(_0x3b2c0b,'FORMAT_SUBSCRIPT')),_0x6880d1('superscript',getTranslation$1(_0x3b2c0b,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends Plugin{['afterInit'](){const _0x35cd7a=this['editor'],_0x33dd5=_0x35cd7a['locale'];if(!_0x35cd7a['plugins']['has']('BlockQuoteEditing'))return;const _0x217c32=_0x35cd7a['plugins']['get']('TrackChangesEditing'),_0x23c908=this['editor']['commands']['get']('blockQuote');_0x217c32['enableCommand']('blockQuote',(_0xa367c9,_0x1913fd={})=>{const _0x24998f=this['editor']['model']['document']['selection'],_0x857aa3=_0x1913fd&&void 0x0!==_0x1913fd['forceValue']?_0x1913fd['forceValue']:!_0x23c908['value'];let _0x1f8d4f=[];if(_0x857aa3){const _0x17f676=Array['from'](_0x24998f['getSelectedBlocks']())['filter'](_0x164f7a=>isInQuote(_0x164f7a)||checkCanBeQuoted(_0x164f7a,this['editor']['model']['schema']));_0x1f8d4f=getRangesOfBlockGroups(_0x17f676,_0x35cd7a['model']);}else{const _0x1851d2=Array['from'](_0x24998f['getSelectedBlocks']())['filter'](_0x3d0722=>isInQuote(_0x3d0722));_0x1f8d4f=getRangesOfBlockGroups(_0x1851d2,_0x35cd7a['model']);}_0x35cd7a['model']['change'](()=>{for(const _0x384d2a of _0x1f8d4f)_0x217c32['markBlockFormat'](_0x384d2a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x857aa3}]});});}),_0x217c32['descriptionFactory']['registerDescriptionCallback'](_0x3ab8c7=>{const {data:_0x8387b1}=_0x3ab8c7;if(_0x8387b1&&'blockQuote'==_0x8387b1['commandName']){const _0x197aac=getTranslation$1(_0x33dd5,'ELEMENT_BLOCK_QUOTE');return _0x8387b1['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x33dd5,'*Set\x20format:*\x20%0',_0x197aac)}:{'type':'format','content':getTranslation$1(_0x33dd5,'*Remove\x20format:*\x20%0',_0x197aac)};}});}}function checkCanBeQuoted(_0x1ae874,_0x34bc81){const _0x2e4b46=_0x34bc81['checkChild'](_0x1ae874['parent'],'blockQuote'),_0x597673=_0x34bc81['checkChild'](['$root','blockQuote'],_0x1ae874);return _0x2e4b46&&_0x597673;}function isInQuote(_0x16f4e5){return'blockQuote'==_0x16f4e5['parent']['name'];}class TrackChangesBookmark extends Plugin{['afterInit'](){const _0x4acaa2=this['editor'],_0x1eb85e=_0x4acaa2['locale'],_0x1a8a51=_0x4acaa2['plugins']['get']('TrackChangesEditing');_0x4acaa2['plugins']['has']('BookmarkEditing')&&(_0x1a8a51['enableCommand']('insertBookmark'),_0x1a8a51['enableDefaultAttributesIntegration']('updateBookmark'),_0x1a8a51['descriptionFactory']['registerDescriptionCallback'](_0x2d44e5=>{if('insertion'!=_0x2d44e5['type']&&'deletion'!=_0x2d44e5['type']&&'attribute'!=_0x2d44e5['type'])return;const _0x49ce1f=_0x2d44e5['getContainedElement']();if(null==_0x49ce1f)return;if(!_0x49ce1f['is']('element','bookmark'))return;const _0x31a583=_0x49ce1f['getAttribute']('bookmarkId');if('insertion'==_0x2d44e5['type'])return{'type':'insertion','content':getTranslation$1(_0x1eb85e,'*Insert:*\x20%0','\x22'+_0x31a583+'\x22\x20'+getTranslation$1(_0x1eb85e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2d44e5['type'])return{'type':'deletion','content':getTranslation$1(_0x1eb85e,'*Remove:*\x20%0','\x22'+_0x31a583+'\x22\x20'+getTranslation$1(_0x1eb85e,'ELEMENT_BOOKMARK'))};const {data:_0x56ea43}=_0x2d44e5;if(!_0x56ea43||'bookmarkId'!=_0x56ea43['key'])return;return{'type':'format','content':getTranslation$1(_0x1eb85e,'*Set\x20bookmark:*\x20%0','\x22'+_0x56ea43['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends Plugin{['afterInit'](){const _0x55c775=this['editor'];_0x55c775['plugins']['has']('CaseChange')&&(_0x55c775['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x55c775['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x55c775['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends Plugin{['afterInit'](){const _0x10ec62=this['editor'];_0x10ec62['commands']['get']('ckbox')&&_0x10ec62['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends Plugin{['afterInit'](){const _0x490be9=this['editor'];if(!_0x490be9['plugins']['has']('CodeBlock'))return;const _0x17155e=_0x490be9['plugins']['get']('TrackChangesEditing'),_0x108c48=_0x490be9['locale'],_0x3e221d=_0x490be9['config']['get']('codeBlock')['languages'],_0x6e0529=_0x490be9['commands']['get']('codeBlock');_0x17155e['enableCommand']('indentCodeBlock'),_0x17155e['enableCommand']('outdentCodeBlock'),_0x17155e['enableCommand']('codeBlock',(_0x22e9ed,_0xc854e6={})=>{const _0x164459=_0x490be9['model'],_0x5c1c02=_0x490be9['model']['document']['selection'],_0x3d00e0=_0xc854e6&&void 0x0!==_0xc854e6['forceValue']?_0xc854e6['forceValue']:!_0x6e0529['value'];let _0x1b8617;_0xc854e6['language']||(_0xc854e6['language']=_0x3e221d[0x0]['language']),_0x1b8617=_0x3d00e0?Array['from'](_0x5c1c02['getSelectedBlocks']())['filter'](_0x4ee66c=>isCodeBlock(_0x4ee66c)||canBeCodeBlock(_0x4ee66c,_0x164459['schema'])):Array['from'](_0x5c1c02['getSelectedBlocks']())['filter'](_0x21d224=>isCodeBlock(_0x21d224));const _0x1656a5=getRangesOfBlockGroups(_0x1b8617,_0x164459);_0x164459['change'](()=>{for(const _0x49d6a6 of _0x1656a5)_0x17155e['markBlockFormat'](_0x49d6a6,{'commandName':'codeBlock','commandParams':[{..._0xc854e6,'forceValue':_0x3d00e0}],'formatGroupId':'blockName'});});}),(_0x17155e['descriptionFactory']['registerElementLabel']('codeBlock',_0x432d91=>getTranslation$1(_0x108c48,'ELEMENT_CODE_BLOCK',_0x432d91)),_0x17155e['descriptionFactory']['registerDescriptionCallback'](_0x1ae44f=>{if('formatBlock'!=_0x1ae44f['type'])return;const _0x489b2d=_0x108c48['t'],{data:_0x43f365}=_0x1ae44f;if(!_0x43f365||'codeBlock'!=_0x43f365['commandName'])return;const _0x4d8846=_0x43f365['commandParams'][0x0]['language'],_0x3d20bf=_0x3e221d['find'](_0x3e995a=>_0x3e995a['language']===_0x4d8846)['label'],_0x54bd8f=_0x489b2d(_0x3d20bf)['toLowerCase']();return _0x43f365['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x108c48,'*Set\x20format:*\x20%0',getTranslation$1(_0x108c48,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x54bd8f+')')}:{'type':'format','content':getTranslation$1(_0x108c48,'*Remove\x20format:*\x20%0',getTranslation$1(_0x108c48,'ELEMENT_CODE_BLOCK',0x1))};}));}}function canBeCodeBlock(_0x41ba47,_0x52ab91){return!_0x41ba47['is']('rootElement')&&!_0x52ab91['isLimit'](_0x41ba47)&&_0x52ab91['checkChild'](_0x41ba47['parent'],'codeBlock');}function isCodeBlock(_0xef6749){return'codeBlock'==_0xef6749['name'];}class TrackChangesComments extends Plugin{['afterInit'](){const _0x39d12e=this['editor'];if(!_0x39d12e['plugins']['has']('CommentsEditing'))return;_0x39d12e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends Plugin{static get['requires'](){return[Delete];}['init'](){const _0x22a719=this['editor'],_0x1ae7c9=_0x22a719['plugins']['get']('TrackChangesEditing');_0x1ae7c9['enableCommand']('delete');const _0x191acb=_0x22a719['commands']['get']('deleteForward');_0x1ae7c9['enableCommand']('deleteForward',(_0x2d1888,_0x4fe9da={})=>{const _0x112935=_0x22a719['model']['createSelection'](_0x22a719['model']['document']['selection']);_0x112935['isCollapsed']&&_0x22a719['model']['modifySelection'](_0x112935,{'direction':'forward','unit':_0x4fe9da['unit']});const _0x19ee72=_0x112935['getFirstRange'](),_0x81de47=ModelLiveRange['fromRange'](_0x19ee72);let _0x26035e;_0x2d1888(_0x4fe9da),_0x26035e='$graveyard'==_0x81de47['root']['rootName']?_0x22a719['model']['createRange'](_0x19ee72['start']):_0x22a719['model']['createRange'](_0x81de47['start'],_0x81de47['end']),_0x81de47['detach'](),_0x22a719['model']['enqueueChange'](_0x191acb['buffer']['batch'],_0x2a0435=>{_0x191acb['buffer']['lock'](),_0x2a0435['setSelection'](_0x2a0435['createRange'](_0x26035e['end'])),_0x191acb['buffer']['unlock']();});});}}class TrackChangesList extends Plugin{['afterInit'](){const _0x2b3a6c=this['editor'];if(!_0x2b3a6c['plugins']['has']('ListEditing'))return;const _0x186df2=_0x2b3a6c['locale'],_0x310045=_0x2b3a6c['plugins']['get']('TrackChangesEditing'),_0x30a803=_0x2b3a6c['plugins']['has']('TodoListEditing'),_0xf38709=!!_0x2b3a6c['config']['get']('list.multiBlock');function _0x46de5d(_0x412eb3){return{'type':'format','content':''+getTranslation$1(_0x186df2,'*Set\x20format:*\x20%0',_0x412eb3)};}function _0x3de919(_0x1a40ef){return{'type':'format','content':''+getTranslation$1(_0x186df2,'*Remove\x20format:*\x20%0',_0x1a40ef)};}_0x310045['enableDefaultAttributesIntegration']('numberedList'),_0x310045['enableDefaultAttributesIntegration']('bulletedList'),_0x310045['enableDefaultAttributesIntegration']('customNumberedList'),_0x310045['enableDefaultAttributesIntegration']('customBulletedList'),_0x310045['enableDefaultAttributesIntegration']('indentList'),_0x310045['enableDefaultAttributesIntegration']('outdentList'),_0x310045['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x310045['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xf38709&&(_0x310045['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x310045['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x30a803&&(_0x310045['enableDefaultAttributesIntegration']('todoList'),_0x310045['enableDefaultAttributesIntegration']('checkTodoList'),_0x310045['descriptionFactory']['registerDescriptionCallback'](_0x5675ee=>{const {data:_0x203452}=_0x5675ee;if(_0x203452&&'todoListChecked'==_0x203452['key'])return{'type':'format','content':_0x203452['newValue']?getTranslation$1(_0x186df2,'*Check\x20item*'):getTranslation$1(_0x186df2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xea4210=>{if(_0xea4210['batch']['isUndo'])return!0x1;let _0x5037cf=!0x1;const _0x28ce1c=_0x310045['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a57cc=>'todoListChecked'===_0x310045['_getAttributeKey'](_0x3a57cc));for(const _0x16091a of _0x28ce1c){'todo'!=_0x16091a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x310045['_findSuggestions'](_0x16091a['getFirstRange'](),'attribute')['find'](_0x25762d=>'listType'===_0x310045['_getAttributeKey'](_0x25762d['suggestion']))||(_0xea4210['removeMarker'](_0x16091a['getFirstMarker']()),_0x5037cf=!0x0));}return _0x5037cf;})),_0x310045['descriptionFactory']['registerAttributeLabel']('listIndent',getTranslation$1(_0x186df2,'FORMAT_INDENT'));const _0x276129={'type':'format','content':''};_0x310045['descriptionFactory']['registerDescriptionCallback'](_0x4d6e63=>{const {data:_0xa45c0a}=_0x4d6e63;if(!_0xa45c0a||'listType'!=_0xa45c0a['key'])return;let _0x2f87c9=_0x4d6e63['head'];for(;_0x2f87c9;){if(_0x2f87c9['data']&&(('listStyle'==_0x2f87c9['data']['key']||'listMarkerStyle'==_0x2f87c9['data']['key'])&&(_0x2f87c9['data']['newValue']&&'default'!=_0x2f87c9['data']['newValue']||'default'!=_0x2f87c9['data']['oldValue']&&!_0xa45c0a['newValue'])||!_0xf38709&&_0x2f87c9['data']['key']==renameAttributeKey))return _0x276129;_0x2f87c9=_0x2f87c9['next'];}if(null==_0xa45c0a['newValue'])switch(_0xa45c0a['oldValue']){case'bulleted':return _0x3de919(getTranslation$1(_0x186df2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3de919(getTranslation$1(_0x186df2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3de919(getTranslation$1(_0x186df2,'ELEMENT_TODO_LIST'));}switch(_0xa45c0a['newValue']){case'bulleted':return _0x46de5d(getTranslation$1(_0x186df2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46de5d(getTranslation$1(_0x186df2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46de5d(getTranslation$1(_0x186df2,'ELEMENT_TODO_LIST'));}}),_0x310045['descriptionFactory']['registerDescriptionCallback'](_0x65922=>{const {data:_0x29b5a2}=_0x65922;if(_0x29b5a2&&'listIndent'==_0x29b5a2['key'])return null==_0x29b5a2['newValue']||null==_0x29b5a2['oldValue']&&0x0==_0x29b5a2['newValue']?_0x276129:void 0x0;}),_0x310045['descriptionFactory']['registerDescriptionCallback'](_0x35c525=>{if('attribute'!=_0x35c525['type'])return;const {data:_0x52f9f7}=_0x35c525;if(!_0x52f9f7||'listItemId'!=_0x52f9f7['key'])return;const _0x15383e=checkSiblingsListItemId(_0x35c525);return'newValue'==_0x15383e?{'type':'format','content':getTranslation$1(_0x186df2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x15383e?{'type':'format','content':getTranslation$1(_0x186df2,'*Split:*\x20list\x20item')}:_0x276129;}),_0x2b3a6c['model']['document']['registerPostFixer'](_0x16853d=>this['listItemIdFixer'](_0x16853d)),_0x2b3a6c['model']['document']['registerPostFixer'](_0x29565e=>this['noTrackChangesFixer'](_0x29565e)),_0x2b3a6c['model']['document']['on']('change:data',(_0x3ab6b3,_0x5ccac6)=>{if(_0x5ccac6['isUndo']||!_0x5ccac6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x26ac78){if(_0x26ac78['batch']['isUndo']||!_0x26ac78['batch']['isLocal'])return!0x1;let _0x47968e=!0x1;const _0x42ec21=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16b251=>_0x16b251['data']&&'listItemId'==_0x16b251['data']['key'])['filter'](_0x5cc96d=>_0x5cc96d['data']['newValue']&&_0x5cc96d['data']['oldValue']);for(const _0x591aa9 of _0x42ec21)checkSiblingsListItemId(_0x591aa9)||(_0x26ac78['removeMarker'](_0x591aa9['getFirstMarker']()),_0x47968e=!0x0);return _0x47968e;}['noTrackChangesFixer'](_0x55de80){if(_0x55de80['batch']['isUndo']||!_0x55de80['batch']['isLocal'])return!0x1;const _0x23cd49=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x23cd49['trackChangesCommand']['value'])return!0x1;let _0xe4c9b1=!0x1;const _0x48a381=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3468a7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x875175=>'attribute'==_0x875175['type'])['filter'](_0x4788f5=>_0x48a381['includes'](_0x4788f5['attributeKey']));if(0x0==_0x3468a7['length'])return _0xe4c9b1;for(const _0x5847f6 of _0x3468a7){const _0x184120=_0x23cd49['_findSuggestions'](_0x5847f6['range'],'attribute')['filter'](_0x18f96e=>!_0x18f96e['meta']['isNextTo'])['map'](_0x4f14b1=>_0x4f14b1['suggestion'])['filter'](_0x57fc6e=>{const _0x323c68=_0x23cd49['_getAttributeKey'](_0x57fc6e);return _0x48a381['includes'](_0x323c68);});if(_0x184120['length']){for(const _0x403e4 of _0x184120)_0x55de80['removeMarker'](_0x403e4['getFirstMarker']());_0xe4c9b1=!0x0;}}return _0xe4c9b1;}['assureChains'](){const _0x545a4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bcadc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x47d9d8;const _0x47f447=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x454647=>{if(_0x454647['data']['oldRange']||!_0x454647['data']['newRange'])return null;if(!_0x454647['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x9c0999}=_0x545a4f['_splitMarkerName'](_0x454647['name']);if(!_0x545a4f['hasSuggestion'](_0x9c0999))return null;const _0x433212=_0x545a4f['getSuggestion'](_0x9c0999);return _0x2bcadc['includes'](_0x433212['data']['key']);})['map'](_0x178257=>{const {id:_0x44fc0e}=_0x545a4f['_splitMarkerName'](_0x178257['name']),_0x3d3826=_0x545a4f['getSuggestion'](_0x44fc0e);return _0x47d9d8=_0x3d3826['attributes']['groupId'],_0x3d3826['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x47f447['size'])return;const _0x10c7ab=_0x545a4f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52c737=>'attribute'==_0x52c737['type']&&_0x52c737['data']&&_0x2bcadc['includes'](_0x52c737['data']['key'])&&_0x52c737['attributes']['groupId']!=_0x47d9d8)['map'](_0x25a8c1=>({'listItem':_0x25a8c1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x25a8c1['attributes']['groupId']})),_0x592ae3=new Set();for(const {groupId:_0x427a27,listItem:_0x491294}of _0x10c7ab)_0x47f447['has'](_0x491294)&&_0x592ae3['add'](_0x427a27);for(const _0x803565 of _0x545a4f['getSuggestions']())_0x592ae3['has'](_0x803565['attributes']['groupId'])&&_0x803565['setAttribute']('groupId',_0x47d9d8);}['_supportLegacySuggestions'](){const _0x4c3f87=this['editor'],_0xee7e20=_0x4c3f87['locale'],_0x51487d=_0x4c3f87['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x51487d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2dea00,_0x1019b1){const _0x5cc654=[];for(let _0x2c8ec3 of _0x2dea00)_0x2c8ec3['start']['nodeAfter']===_0x2c8ec3['end']['parent']&&(_0x2c8ec3=_0x4c3f87['model']['createRange'](_0x4c3f87['model']['createPositionAt'](_0x2c8ec3['start']['nodeAfter'],0x0))),_0x5cc654['push'](_0x2c8ec3);_0x4c3f87['model']['change'](_0x1e0455=>{const _0x39a529=_0x4c3f87['model']['document']['selection'],_0x2ae437=Array['from'](_0x39a529['getRanges']())['map'](_0x552dac=>ModelLiveRange['fromRange'](_0x552dac));_0x1e0455['setSelection'](_0x5cc654),_0x4c3f87['commands']['get'](_0x1019b1['commandName'])['refresh'](),_0x1019b1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4c3f87['execute'](_0x1019b1['commandName'],..._0x1019b1['commandParams']),_0x1e0455['setSelection'](_0x2ae437);for(const _0x32015f of _0x2ae437)_0x32015f['detach']();});}),_0x51487d['descriptionFactory']['registerElementLabel'](function(_0x208cd3){const _0x5b5d7e=!_0x4c3f87['model']['schema']['isObject'](_0x208cd3),_0x315c72=_0x208cd3['previousSibling'],_0x87aa3c=_0x208cd3['nextSibling'],_0x5480ef=_0x208cd3['getAttribute']('listItemId'),_0x19be17=!_0x315c72||_0x315c72['getAttribute']('listItemId')!==_0x5480ef,_0xac48c2=!_0x87aa3c||_0x87aa3c['getAttribute']('listItemId')!==_0x5480ef;return _0x5b5d7e&&Boolean(_0x5480ef)&&_0x19be17&&_0xac48c2;},_0x37b706=>getTranslation$1(_0xee7e20,'ELEMENT_LIST_ITEM',_0x37b706));}['_registerLegacyDescription'](){const _0x405c7a=this['editor'],_0x24b211=_0x405c7a['locale'];function _0x281b7b(_0x3a65d4){const _0x30a7d8=_0x405c7a['commands']['get']('bulletedList')['value'],_0x40a24f=_0x405c7a['commands']['get']('numberedList')['value'];return'numberedList'===_0x3a65d4?_0x30a7d8:_0x40a24f;}_0x405c7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x335bb5){if('formatBlock'!=_0x335bb5['type'])return;const {data:_0x192848}=_0x335bb5;if(!_0x192848)return;let _0x36980c,_0x1b3780,_0x4c539d,_0x36f45d;switch(_0x192848['commandName']){case'bulletedList':_0x4c539d=_0x192848['commandParams'][0x0]['forceValue'],_0x36f45d=_0x281b7b(_0x192848['commandName']),_0x36980c=_0x4c539d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36f45d&&_0x405c7a['config']['get']('list.multiBlock')||(_0x36980c='*Change\x20to:*\x20%0'),_0x1b3780={'type':'format','content':getTranslation$1(_0x24b211,_0x36980c,getTranslation$1(_0x24b211,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c539d=_0x192848['commandParams'][0x0]['forceValue'],_0x36f45d=_0x281b7b(_0x192848['commandName']),_0x36980c=_0x4c539d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36f45d&&_0x405c7a['config']['get']('list.multiBlock')||(_0x36980c='*Change\x20to:*\x20%0'),_0x1b3780={'type':'format','content':getTranslation$1(_0x24b211,_0x36980c,getTranslation$1(_0x24b211,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x36980c='*Indent:*\x20%0',_0x1b3780={'type':'format','content':getTranslation$1(_0x24b211,_0x36980c,getTranslation$1(_0x24b211,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x36980c=function(_0x1cb00b){const _0xea6a8=_0x1cb00b['getFirstRange']();let _0x1f643f=_0xea6a8['start']['nodeAfter'];for(;_0x1f643f&&_0xea6a8['containsItem'](_0x1f643f);){if(_0x1f643f['getAttribute']('listIndent')>0x0)return!0x1;_0x1f643f=_0x1f643f['nextSibling'];}return!0x0;}(_0x335bb5)?getTranslation$1(_0x24b211,'*Format:*\x20remove\x20from\x20%0',getTranslation$1(_0x24b211,function(_0x2edf4b){return'ELEMENT_'+_0x2edf4b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x335bb5))):getTranslation$1(_0x24b211,'*Outdent:*\x20%0',getTranslation$1(_0x24b211,'ELEMENT_LIST_ITEM')),_0x1b3780={'type':'format','content':_0x36980c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x192848['multipleBlocks']&&(_0x36980c='*Merge:*\x20%0',_0x1b3780={'type':'deletion','content':getTranslation$1(_0x24b211,_0x36980c,getTranslation$1(_0x24b211,'ELEMENT_LIST_ITEM'))});}return _0x1b3780;});}}function checkSiblingsListItemId(_0x21e054){let _0x3ff97e=_0x21e054['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3ff97e;){const _0x57f531=_0x3ff97e['getAttribute']('listItemId');if(!_0x57f531)return!0x1;if(_0x57f531==_0x21e054['data']['newValue'])return'newValue';if(_0x57f531==_0x21e054['data']['oldValue'])return'oldValue';_0x3ff97e=_0x3ff97e['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xba04d0=this['editor']['config']['get']('list.properties'),_0x47ab45=this['editor']['plugins']['get']('TrackChangesEditing');_0xba04d0['styles']&&_0x47ab45['enableDefaultAttributesIntegration']('listStyle'),_0xba04d0['reversed']&&_0x47ab45['enableDefaultAttributesIntegration']('listReversed'),_0xba04d0['startIndex']&&_0x47ab45['enableDefaultAttributesIntegration']('listStart');const _0x2725c0={'type':'format','content':''};_0x47ab45['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1f655c=this['editor']['locale'];_0x47ab45['descriptionFactory']['registerAttributeLabel']('listReversed',getTranslation$1(_0x1f655c,'FORMAT_LIST_REVERSED')),_0x47ab45['descriptionFactory']['registerDescriptionCallback'](_0x4348c6=>{const {data:_0x50901a}=_0x4348c6;if(_0x50901a&&'listReversed'==_0x50901a['key'])return null==_0x50901a['newValue']||0x0==_0x50901a['newValue']&&null==_0x50901a['oldValue']?_0x2725c0:void 0x0;}),_0x47ab45['descriptionFactory']['registerAttributeLabel']('listStart',getTranslation$1(_0x1f655c,'FORMAT_LIST_START')),_0x47ab45['descriptionFactory']['registerDescriptionCallback'](_0x4e132b=>{const {data:_0x4af7a8}=_0x4e132b;if(_0x4af7a8&&'listStart'==_0x4af7a8['key'])return null==_0x4af7a8['newValue']||0x1==_0x4af7a8['newValue']&&null==_0x4af7a8['oldValue']?_0x2725c0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x50f6bc=>{if(_0x50f6bc['batch']['isUndo'])return!0x1;let _0x1b8a2a=!0x1;const _0x524aa2=_0x47ab45['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52a642=>{const _0x157fca=_0x47ab45['_getAttributeKey'](_0x52a642);return'listStart'==_0x157fca||'listReversed'==_0x157fca;});for(const _0x23bc62 of _0x524aa2){const _0x1fda97=_0x23bc62['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1fda97||'customNumbered'==_0x1fda97)continue;_0x47ab45['_findSuggestions'](_0x23bc62['getFirstRange'](),'attribute')['find'](_0x24e563=>'listType'==_0x47ab45['_getAttributeKey'](_0x24e563['suggestion']))||(_0x50f6bc['removeMarker'](_0x23bc62['getFirstMarker']()),_0x1b8a2a=!0x0);}return _0x1b8a2a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x365d7a){const _0x2fe614=this['editor']['locale'],{data:_0x5f53c9}=_0x365d7a,_0x26de79={'type':'format','content':''};if(!_0x5f53c9||'listStyle'!=_0x5f53c9['key'])return;if(!_0x5f53c9['oldValue'])return'default'==_0x5f53c9['newValue']?_0x26de79:{'type':'format','content':''+getTranslation$1(_0x2fe614,'*Set\x20format:*\x20%0',getTranslation$1(_0x2fe614,this['_getTranslationKeyForListStyle'](_0x5f53c9['newValue'])))};if(!_0x5f53c9['newValue']){if('default'==_0x5f53c9['oldValue'])return _0x26de79;let _0x189468=_0x365d7a['head'];for(;_0x189468;){if(_0x189468['data']&&'listType'==_0x189468['data']['key']&&_0x189468['data']['newValue'])return _0x26de79;_0x189468=_0x189468['next'];}return{'type':'format','content':''+getTranslation$1(_0x2fe614,'*Remove\x20format:*\x20%0',getTranslation$1(_0x2fe614,this['_getTranslationKeyForListStyle'](_0x5f53c9['oldValue'])))};}if('default'!=_0x5f53c9['newValue'])return{'type':'format','content':''+getTranslation$1(_0x2fe614,'*Set\x20format:*\x20%0',getTranslation$1(_0x2fe614,this['_getTranslationKeyForListStyle'](_0x5f53c9['newValue'])))};let _0x34fafa=_0x365d7a['head'];for(;_0x34fafa;){if(_0x34fafa['data']&&'listType'==_0x34fafa['data']['key']&&_0x34fafa['data']['newValue']&&_0x34fafa['data']['oldValue'])return _0x26de79;_0x34fafa=_0x34fafa['next'];}return{'type':'format','content':getTranslation$1(_0x2fe614,'*Set\x20format:*\x20%0',getTranslation$1(_0x2fe614,'ELEMENT_'+_0x365d7a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4e1000=this['editor'],_0x46aead=_0x4e1000['locale'];_0x4e1000['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57e1f8=>{if('formatBlock'!=_0x57e1f8['type'])return;const {data:_0x23a097}=_0x57e1f8;if(!_0x23a097)return;let _0xbbb83a,_0x161aa3;switch(_0x23a097['commandName']){case'listStyle':_0xbbb83a='*Change\x20to:*\x20%0',_0x161aa3={'type':'format','content':getTranslation$1(_0x46aead,_0xbbb83a,getTranslation$1(_0x46aead,this['_getTranslationKeyForListStyle'](_0x23a097['commandParams'][0x0]['type'])))};break;case'listReversed':_0xbbb83a=_0x23a097['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x161aa3={'type':'format','content':getTranslation$1(_0x46aead,_0xbbb83a)};break;case'listStart':_0xbbb83a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x161aa3={'type':'format','content':getTranslation$1(_0x46aead,_0xbbb83a,_0x23a097['commandParams'][0x0]['startIndex'])};}return _0x161aa3;});}['_getTranslationKeyForListStyle'](_0xaeb4a5){return'ELEMENT_'+getListTypeFromListStyleType(_0xaeb4a5)['toUpperCase']()+'_LIST_'+_0xaeb4a5['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(_0x2ea320){return BULLETED_LIST_STYLE_TYPES['includes'](_0x2ea320)?'bulleted':NUMBERED_LIST_STYLE_TYPES['includes'](_0x2ea320)?'numbered':null;}class TrackChangesEmoji extends Plugin{['afterInit'](){const _0x54ee32=this['editor'];_0x54ee32['commands']['get']('emoji')&&_0x54ee32['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends Plugin{static get['requires'](){return[Enter];}['init'](){const _0x70267b=this['editor'],_0x4942ae=_0x70267b['plugins']['get']('TrackChangesEditing'),_0x27487e=_0x70267b['commands']['get']('enter');_0x4942ae['enableCommand']('enter',()=>{_0x70267b['model']['change'](_0x5b6ae4=>{const _0x547967=_0x70267b['model']['document']['selection'],_0x4e2c67=_0x547967['getFirstPosition'](),_0x4b10d1=ModelLiveRange['fromRange'](_0x547967['getFirstRange']());if(_0x27487e['enterBlock'](_0x5b6ae4)){const _0x2cbcfe=_0x70267b['model']['createPositionAt'](_0x4e2c67['parent']['nextSibling'],0x0),_0x54f207=_0x5b6ae4['createRange'](_0x4e2c67,_0x2cbcfe);_0x4942ae['markInsertion'](_0x54f207);}else _0x5b6ae4['setSelection'](_0x5b6ae4['createRange'](_0x4b10d1['end']));_0x4b10d1['detach'](),_0x27487e['fire']('afterExecute',{'writer':_0x5b6ae4});});});}}class TrackChangesFindAndReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xb57ca0=this['editor']['plugins']['get']('TrackChangesEditing');_0xb57ca0['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xb57ca0['enableCommand']('findNext'),_0xb57ca0['enableCommand']('findPrevious'),_0xb57ca0['enableCommand']('replace'),_0xb57ca0['enableCommand']('replaceAll');}['handleFindCommand'](_0x4bb2ae,_0x3670ce,_0x5e9b7c={}){const _0x46b555=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4bb2ae(_0x3bd57e=>{let _0xe8b8eb=('string'==typeof _0x3670ce?_0x46b555['findByTextCallback'](_0x3670ce,_0x5e9b7c):_0x3670ce)(_0x3bd57e);Array['isArray'](_0xe8b8eb)&&(_0xe8b8eb={'results':_0xe8b8eb,'searchText':'string'==typeof _0x3670ce?_0x3670ce:''});const _0x30737d=_0xe8b8eb['results']['filter'](_0x4f9cab=>!0x1===this['_isInDeletionRange'](_0x4f9cab,_0x3bd57e['item']));return{..._0xe8b8eb,'results':_0x30737d};},_0x5e9b7c);}['_isInDeletionRange'](_0x4c3752,_0x296ea0){const _0x12c728=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x296ea0,_0x4c3752['start']),this['editor']['model']['createPositionAt'](_0x296ea0,_0x4c3752['end']));for(const _0x40b092 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x12c728['getIntersection'](_0x40b092['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 _0x812883=this['editor']['locale'],_0x3ac5ab=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x11657e,commandName:_0x35b8ce}of fontPlugins)this['editor']['plugins']['has'](_0x11657e)&&_0x3ac5ab['enableDefaultAttributesIntegration'](_0x35b8ce);_0x3ac5ab['descriptionFactory']['registerAttributeLabel']('fontSize',getTranslation$1(_0x812883,'FORMAT_FONT_SIZE')),_0x3ac5ab['descriptionFactory']['registerAttributeLabel']('fontFamily',getTranslation$1(_0x812883,'FORMAT_FONT_FAMILY')),_0x3ac5ab['descriptionFactory']['registerAttributeLabel']('fontColor',getTranslation$1(_0x812883,'FORMAT_FONT_COLOR')),_0x3ac5ab['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',getTranslation$1(_0x812883,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4535d4=this['editor'],_0x9a1099=_0x4535d4['locale'];_0x4535d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5aa0ee=>{const _0x31784a=_0x9a1099['t'];if('formatInline'!=_0x5aa0ee['type'])return;const {data:_0x521761}=_0x5aa0ee;if(null!=_0x521761){if('fontSize'==_0x521761['commandName']){const _0x410855=_0x521761['commandParams'][0x0]['value'];if(_0x410855){const _0x4af9bc=_0x31784a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x23c09f=>_0x23c09f['model']==_0x410855)['title'])['toLowerCase']();return{'type':'format','content':getTranslation$1(_0x9a1099,'*Set\x20font\x20size:*\x20%0',_0x4af9bc)};}return{'type':'format','content':getTranslation$1(_0x9a1099,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x521761['commandName']){const _0x38fe09=_0x521761['commandParams'][0x0]['value'];return _0x38fe09?{'type':'format','content':getTranslation$1(_0x9a1099,'*Set\x20font\x20family:*\x20%0',_0x38fe09)}:{'type':'format','content':getTranslation$1(_0x9a1099,'*Reset\x20font\x20family*')};}if('fontColor'==_0x521761['commandName']){const _0x23cb43=_0x521761['commandParams'][0x0]['value'];if(_0x23cb43){const _0x4a8fc5=normalizeColorOptions(this['editor']['config']['get']('fontColor.colors'))['find'](_0x32604a=>_0x32604a['model']==_0x23cb43);let _0x4b4dc4=_0x23cb43,_0x1c3d6a='';return _0x4a8fc5&&(_0x4b4dc4=_0x4a8fc5['label'],_0x1c3d6a=_0x31784a(_0x4b4dc4)['toLowerCase']()),{'type':'format','content':getTranslation$1(_0x9a1099,'*Set\x20font\x20color:*\x20%0',_0x1c3d6a)['trim'](),'color':{'value':_0x23cb43,'title':_0x1c3d6a||_0x4b4dc4}};}return{'type':'format','content':getTranslation$1(_0x9a1099,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x521761['commandName']){const _0x5d4534=_0x521761['commandParams'][0x0]['value'];if(_0x5d4534){const _0x3d4866=normalizeColorOptions(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5db1eb=>_0x5db1eb['model']==_0x5d4534);let _0x1877c6=_0x5d4534,_0x37d411='';return _0x3d4866&&(_0x1877c6=_0x3d4866['label'],_0x37d411=_0x31784a(_0x1877c6)['toLowerCase']()),{'type':'format','content':getTranslation$1(_0x9a1099,'*Set\x20font\x20background\x20color:*\x20%0',_0x37d411)['trim'](),'color':{'value':_0x5d4534,'title':_0x37d411||_0x1877c6}};}return{'type':'format','content':getTranslation$1(_0x9a1099,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends Plugin{['afterInit'](){const {plugins:_0x58f515}=this['editor'];_0x58f515['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x58f515['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x5a9cdf,plugins:_0xaeacd7,commands:_0x5c8d41}=this['editor'],_0x5edf5d=_0xaeacd7['get']('TrackChangesEditing');_0x5c8d41['get']('footnotesStyle')&&_0x5edf5d['enableDefaultAttributesIntegration']('footnotesStyle'),_0x5c8d41['get']('footnotesStart')&&_0x5edf5d['enableDefaultAttributesIntegration']('footnotesStart'),_0x5edf5d['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',getTranslation$1(_0x5a9cdf,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5edf5d['descriptionFactory']['registerAttributeLabel']('footnotesListStart',getTranslation$1(_0x5a9cdf,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x5da2f8=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3f33d5,commands:_0x207489}=this['editor'];_0x207489['get']('insertFootnote')&&_0x5da2f8['enableCommand']('insertFootnote'),_0x5da2f8['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4ba5c1=>getTranslation$1(_0x3f33d5,'ELEMENT_FOOTNOTE_REF',_0x4ba5c1)),_0x5da2f8['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x38fe4f=>getTranslation$1(_0x3f33d5,'ELEMENT_FOOTNOTE_DEFINITION',_0x38fe4f)),_0x5da2f8['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x298dc8=>getTranslation$1(_0x3f33d5,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x298dc8));}}class TrackChangesFormatPainter extends Plugin{['afterInit'](){const _0x43122f=this['editor'],_0x552c59=_0x43122f['plugins']['get']('TrackChangesEditing'),_0x1db3f3=_0x43122f['commands']['get']('copyFormat'),_0x183cbd=_0x43122f['commands']['get']('pasteFormat');_0x1db3f3&&_0x183cbd&&(_0x552c59['enableDefaultAttributesIntegration']('pasteFormat'),_0x552c59['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x222648=this['editor'],_0x5d6267=_0x222648['locale'];_0x222648['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x295621=>{if('formatBlock'!=_0x295621['type']&&'formatInline'!=_0x295621['type'])return;const {data:_0x5d4d26}=_0x295621;if(_0x5d4d26&&'pasteFormat'===_0x5d4d26['commandName']){const _0x9e8fbe=[],_0x5547cc=_0x5d4d26['commandParams'][0x0];for(const [_0x1d7eae,_0x423ee0]of Object['entries'](_0x5547cc))_0x9e8fbe['push'](translateFormatting(_0x222648,_0x1d7eae,_0x423ee0));return _0x9e8fbe['length']?{'type':'format','content':getTranslation$1(_0x5d6267,'*Set\x20format\x20to:*\x20%0',_0x9e8fbe['join'](',\x20'))}:{'type':'format','content':getTranslation$1(_0x5d6267,'*Remove\x20all\x20formatting*')};}});}}function translateFormatting(_0x137b57,_0x2dcd0f,_0x12812c){const _0x33e391=_0x137b57['locale']['t'],_0x3de150=_0x2dcd0f['split'](/(?=[A-Z])/)['join']('\x20'),_0x4bfaf3=_0x33e391(_0x3de150['charAt'](0x0)['toUpperCase']()+_0x3de150['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x12812c)return _0x4bfaf3;if('fontColor'===_0x2dcd0f||'fontBackgroundColor'===_0x2dcd0f){const _0x30b0ec=normalizeColorOptions(_0x137b57['config']['get']('fontColor.colors'))['find'](_0x651863=>_0x651863['model']==_0x12812c);return _0x4bfaf3+'\x20('+(_0x30b0ec?_0x33e391(_0x30b0ec['label'])['toLowerCase']():_0x12812c)+')';}if('fontSize'===_0x2dcd0f&&isNaN(parseFloat(_0x12812c))){const _0x388f75=_0x137b57['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x137b57['config']['get']('fontSize.options'))['find'](_0x54056c=>_0x54056c['model']==_0x12812c);return _0x4bfaf3+'\x20('+(_0x388f75?_0x33e391(_0x388f75['title'])['toLowerCase']():_0x12812c)+')';}return _0x4bfaf3+'\x20('+_0x12812c+')';}class TrackChangesHeading extends Plugin{['_headingOptions'];['afterInit'](){const _0x12b78b=this['editor'];if(!_0x12b78b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x12b78b['config']['get']('heading.options');const _0x53ff37=_0x12b78b['locale'],_0x4efdc8=_0x12b78b['plugins']['get']('TrackChangesEditing');_0x4efdc8['enableDefaultAttributesIntegration']('heading');for(const _0x12cb93 of this['_headingOptions'])'paragraph'!=_0x12cb93['model']&&_0x4efdc8['descriptionFactory']['registerElementLabel'](_0x12cb93['model'],_0x61336e=>{const _0x19b743=this['_getHeadingLevel'](_0x12cb93['model']);return null!==_0x19b743?_0x15dcb6(_0x61336e,_0x19b743):_0x3747d5(_0x61336e,_0x12cb93['title']);});function _0x15dcb6(_0x1736d5,_0x3b8479){return getTranslation$1(_0x53ff37,'ELEMENT_HEADING',[_0x1736d5,_0x3b8479]);}function _0x3747d5(_0x297c07,_0x36fb8f){return getTranslation$1(_0x53ff37,'ELEMENT_HEADING_CUSTOM',[_0x297c07,_0x36fb8f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38d7b4=this['editor'],_0x458d2c=_0x38d7b4['locale'];function _0x378c18(_0x31b493,_0x275826){return getTranslation$1(_0x458d2c,'ELEMENT_HEADING_CUSTOM',[_0x31b493,_0x275826]);}_0x38d7b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x68e032=>{if('formatBlock'!=_0x68e032['type'])return;const {data:_0x4c6040}=_0x68e032;if(_0x4c6040&&'heading'==_0x4c6040['commandName']){const _0x1b2fae=_0x4c6040['commandParams'][0x0]['value'],_0x41ef4b=this['_getHeadingLevel'](_0x1b2fae);if(null!==_0x41ef4b)return{'type':'format','content':getTranslation$1(_0x458d2c,'*Change\x20to:*\x20%0',(_0x49623b=0x1,_0x1b7908=_0x41ef4b,getTranslation$1(_0x458d2c,'ELEMENT_HEADING',[_0x49623b,_0x1b7908])))};const _0x38769a=this['_headingOptions']['find'](_0x1a4f5f=>_0x1a4f5f['model']===_0x1b2fae)['title'];return{'type':'format','content':getTranslation$1(_0x458d2c,'*Change\x20to:*\x20%0',_0x378c18(0x1,_0x38769a))};}var _0x49623b,_0x1b7908;});}['_getHeadingLevel'](_0x176618){const _0x566b7f=_0x176618['match'](/^heading(\d+)/);if(_0x566b7f)return _0x566b7f[0x1];const _0x5495e0=this['_headingOptions']?.['find'](_0xb581bf=>_0xb581bf['model']==_0x176618);if(_0x5495e0&&_0x5495e0['view']){const _0x271ea2=_0x5495e0['view'],_0x1802fe=(_0x271ea2['name']??_0x271ea2)['match'](/^h(\d+)/);if(_0x1802fe)return _0x1802fe[0x1];}return null;}}class TrackChangesHighlight extends Plugin{['afterInit'](){const _0x26a699=this['editor'];if(!_0x26a699['plugins']['has']('HighlightEditing'))return;const _0x51496c=_0x26a699['plugins']['get']('TrackChangesEditing'),_0x169452=_0x26a699['locale'];_0x51496c['enableDefaultAttributesIntegration']('highlight'),_0x51496c['descriptionFactory']['registerAttributeLabel']('highlight',getTranslation$1(_0x169452,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x207637=this['editor'],_0x2dafe3=_0x207637['locale'];_0x207637['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4139e3=>{if('formatInline'!=_0x4139e3['type'])return;const {data:_0x4c58d9}=_0x4139e3;if(_0x4c58d9&&'highlight'==_0x4c58d9['commandName']){const _0x2ff564=_0x2dafe3['t'],_0x223a4f=_0x4c58d9['commandParams'][0x0]['value'];if(_0x223a4f){const _0x4824fa=_0x207637['config']['get']('highlight.options')['find'](_0x3175bc=>_0x3175bc['model']==_0x223a4f),_0x44d07c=_0x2ff564(_0x4824fa['title'])['toLowerCase']();return{'type':'format','content':getTranslation$1(_0x2dafe3,'*Set\x20highlight:*\x20%0',_0x44d07c),'color':{'value':_0x4824fa['color'],'title':_0x4824fa['title']}};}return{'type':'format','content':getTranslation$1(_0x2dafe3,'*Remove\x20highlight*',getTranslation$1(_0x2dafe3,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends Plugin{['afterInit'](){const _0x4b6e65=this['editor'];if(!_0x4b6e65['plugins']['has']('HorizontalLineEditing'))return;_0x4b6e65['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d45ed=_0x4b6e65['plugins']['get']('TrackChangesEditing'),_0x2f91e9=_0x4b6e65['locale'];_0x4d45ed['descriptionFactory']['registerElementLabel']('horizontalLine',_0x42e20b=>getTranslation$1(_0x2f91e9,'ELEMENT_HORIZONTAL_LINE',_0x42e20b));}}class TrackChangesHtmlEmbed extends Plugin{['afterInit'](){const _0x4d27b0=this['editor'];if(!_0x4d27b0['plugins']['has']('HtmlEmbed'))return;const _0x3634bd=_0x4d27b0['plugins']['get']('TrackChangesEditing'),_0x343a4e=_0x4d27b0['locale'];_0x3634bd['descriptionFactory']['registerElementLabel']('rawHtml',_0x598562=>getTranslation$1(_0x343a4e,'ELEMENT_HTML_EMBED',_0x598562)),_0x3634bd['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3634bd['descriptionFactory']['registerDescriptionCallback'](_0x4feae5=>{if('attribute'!=_0x4feae5['type'])return;const {data:_0x87c414}=_0x4feae5;if(_0x87c414&&'value'==_0x87c414['key']&&_0x4feae5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4bc65c=getTranslation$1(_0x343a4e,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$1(_0x343a4e,'*Change\x20%0\x20content*',_0x4bc65c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f8f0f=this['editor'],_0x432848=_0x4f8f0f['locale'];_0x4f8f0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a8a7d=>{if('formatBlock'!=_0x5a8a7d['type'])return;const {data:_0x14a065}=_0x5a8a7d;if(_0x14a065&&'htmlEmbed'==_0x14a065['commandName']){const _0x1f9324=getTranslation$1(_0x432848,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$1(_0x432848,'*Change\x20%0\x20content*',_0x1f9324)};}});}}class TrackChangesImage extends Plugin{['afterInit'](){const _0x5ee826=this['editor'];if(!_0x5ee826['plugins']['has']('ImageEditing'))return;const _0x67db11=_0x5ee826['plugins']['get']('TrackChangesEditing'),_0x4af0c1=_0x5ee826['plugins']['get']('ImageUtils'),_0x47325f=_0x5ee826['locale'];_0x67db11['enableCommand']('insertImage'),_0x67db11['descriptionFactory']['registerElementLabel']('imageBlock',_0x842b55=>getTranslation$1(_0x47325f,'ELEMENT_IMAGE',_0x842b55)),_0x67db11['descriptionFactory']['registerElementLabel']('imageInline',_0xa9e460=>getTranslation$1(_0x47325f,'ELEMENT_INLINE_IMAGE',_0xa9e460)),_0x67db11['descriptionFactory']['registerElementLabel']('caption',()=>getTranslation$1(_0x47325f,'ELEMENT_CAPTION')),_0x5ee826['plugins']['has']('ImageUploadEditing')&&_0x67db11['enableCommand']('uploadImage'),_0x5ee826['plugins']['has']('ImageBlockEditing')&&_0x5ee826['plugins']['has']('ImageInlineEditing')&&(_0x67db11['enableCommand']('imageTypeInline',(_0xea42db,_0x26772a)=>{const _0x5a3aa3=_0x4af0c1['getClosestSelectedImageElement'](_0x5ee826['model']['document']['selection']);_0x5ee826['model']['change'](()=>{_0x67db11['markBlockFormat'](_0x5a3aa3,{'commandName':'imageTypeInline','commandParams':[_0x26772a]},[],'convertBlockImageToInline');});}),_0x67db11['enableCommand']('imageTypeBlock',(_0x4647a2,_0x2d6b6a)=>{_0x5ee826['model']['change'](_0x320a45=>{let _0xa3421c=_0x4af0c1['getClosestSelectedImageElement'](_0x5ee826['model']['document']['selection']),_0x46b107=_0x320a45['createRangeOn'](_0xa3421c);const _0x2908b0=ModelLivePosition['fromPosition'](_0x46b107['start'],'toPrevious'),_0x4abe11=ModelLivePosition['fromPosition'](_0x46b107['end'],'toNext');_0x67db11['forceDefaultExecution'](()=>_0x4647a2(_0x2d6b6a)),_0xa3421c=_0x4af0c1['getClosestSelectedImageElement'](_0x5ee826['model']['document']['selection']),_0x46b107=_0x320a45['createRangeOn'](_0xa3421c);const _0x5acb49=_0x320a45['createRange'](_0x2908b0,_0x4abe11);_0x2908b0['detach'](),_0x4abe11['detach'](),_0x67db11['markBlockFormat'](_0xa3421c,{'commandName':'imageTypeInline','commandParams':[_0x2d6b6a]},[],'convertInlineImageToBlock'),_0x5acb49['start']['isBefore'](_0x46b107['start'])&&_0x67db11['markInsertion'](_0x320a45['createRange'](_0x5acb49['start'],_0x46b107['start']),'convertInlineImageToBlock'),_0x46b107['end']['isBefore'](_0x5acb49['end'])&&_0x67db11['markInsertion'](_0x320a45['createRange'](_0x46b107['end'],_0x5acb49['end']),'convertInlineImageToBlock');});}),_0x67db11['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x67db11['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x67db11['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x67db11['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x67db11['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x67db11['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5df9af])=>{const _0x13bdfb=_0x67db11['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1c29c0=_0x5df9af['start'],_0x428d23=_0x5df9af['end'];const _0x1986cc=_0x5ee826['model']['schema']['getNearestSelectionRange'](_0x1c29c0,'backward'),_0x219fbf=_0x5ee826['model']['schema']['getNearestSelectionRange'](_0x428d23,'forward');_0x1986cc['isCollapsed']&&(_0x1c29c0=_0x1986cc['start']),_0x219fbf['isCollapsed']&&(_0x428d23=_0x219fbf['end']),_0x13bdfb([_0x5ee826['model']['createRange'](_0x1c29c0,_0x428d23)]);}),_0x67db11['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f3f4d),_0x67db11['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f3f4d)),_0x5ee826['plugins']['has']('ImageCaptionEditing')&&(_0x67db11['enableCommand']('toggleImageCaption',(_0xb8a8d0,_0x16f16d)=>{const _0x6187b5=_0x5ee826['plugins']['get']('ImageCaptionUtils');let _0x25b190=_0x4af0c1['getClosestSelectedImageElement'](_0x5ee826['model']['document']['selection']),_0x158950=_0x6187b5['getCaptionFromImageModelElement'](_0x25b190);_0x5ee826['model']['change'](()=>{if(_0x158950)return void _0x67db11['markDeletion'](_0x5ee826['model']['createRangeOn'](_0x158950));const _0x35e4c2=_0x4af0c1['isBlockImage'](_0x25b190);_0xb8a8d0(_0x16f16d),_0x25b190=_0x4af0c1['getClosestSelectedImageElement'](_0x5ee826['model']['document']['selection']),_0x158950=_0x6187b5['getCaptionFromImageModelElement'](_0x25b190),_0x67db11['markInsertion'](_0x5ee826['model']['createRangeOn'](_0x158950),_0x35e4c2?null:'imageCaption');});}),_0x67db11['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f3f4d));const _0x55b118=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x586b43(_0x5405e2,_0x28fa97){const _0x6cc2ec=_0x55b118['findIndex'](({type:_0x272596,subType:_0x2da707})=>_0x5405e2['type']==_0x272596&&_0x5405e2['subType']==_0x2da707),_0x26fce0=_0x55b118['findIndex'](({type:_0x471434,subType:_0x24daf1})=>_0x28fa97['type']==_0x471434&&_0x28fa97['subType']==_0x24daf1);if(_0x6cc2ec<0x0||_0x26fce0<0x0)return!0x1;const _0x2a9711=_0x5405e2['getFirstRange'](),_0x191f76=_0x28fa97['getFirstRange']();if((0x0==_0x6cc2ec||0x1==_0x6cc2ec)&&0x2==_0x26fce0&&_0x2a9711['isIntersecting'](_0x191f76))return!0x0;if(0x2==_0x6cc2ec&&0x3==_0x26fce0){const _0x4f7557=_0x67db11['_findSuggestions'](_0x2a9711,'insertion')['filter'](({suggestion:_0x27549b,meta:_0x310f56})=>_0x310f56['isOwn']&&'convertInlineImageToBlock'==_0x27549b['subType']);if(_0x4f7557['length']>0x1&&_0x191f76['end']['isEqual'](_0x2a9711['start']))return!0x0;if(0x1==_0x4f7557['length']&&(_0x2a9711['start']['isEqual'](_0x191f76['end'])||_0x2a9711['end']['isEqual'](_0x191f76['start'])))return!0x0;}if(0x3==_0x6cc2ec&&0x3==_0x26fce0&&_0x2a9711['start']['isBefore'](_0x191f76['start'])){const _0x1a93d4=_0x2a9711['end']['nodeAfter'],_0x30d53f=_0x191f76['start']['nodeBefore'];return _0x4af0c1['isBlockImage'](_0x1a93d4)&&_0x1a93d4===_0x30d53f;}return!0x1;}function _0x2f3f4d(_0x4c9a6a,_0x42b70e){return _0x586b43(_0x4c9a6a,_0x42b70e)?[_0x4c9a6a,_0x42b70e]:_0x586b43(_0x42b70e,_0x4c9a6a)?[_0x42b70e,_0x4c9a6a]:null;}_0x5ee826['plugins']['has']('ImageResize')&&(_0x67db11['enableDefaultAttributesIntegration']('resizeImage'),_0x67db11['descriptionFactory']['registerAttributeLabel']('resizedWidth',getTranslation$1(_0x47325f,'FORMAT_IMAGE_SIZE'))),_0x5ee826['plugins']['has']('ImageTextAlternativeEditing')&&_0x67db11['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5ee826['plugins']['has']('PictureEditing')&&_0x67db11['descriptionFactory']['registerDescriptionCallback'](_0x29478d=>{if('attribute'!=_0x29478d['type'])return;const {data:_0x486706}=_0x29478d;return _0x486706&&'sources'==_0x486706['key']?{'type':'format','content':''}:void 0x0;}),_0x5ee826['plugins']['has']('ImageSizeAttributes')&&_0x67db11['descriptionFactory']['registerDescriptionCallback'](_0x38e689=>{if('attribute'!=_0x38e689['type'])return;const {data:_0x5d37d8}=_0x38e689;return!_0x5d37d8||'width'!=_0x5d37d8['key']&&'height'!=_0x5d37d8['key']?void 0x0:{'type':'format','content':''};}),_0x67db11['descriptionFactory']['registerDescriptionCallback'](_0x5bec22=>{if(!!_0x55b118['find'](({type:_0x2310c8,subType:_0x2c6aff})=>_0x5bec22['type']==_0x2310c8&&_0x5bec22['subType']==_0x2c6aff))return _0x5bec22['previous']?{}:void 0x0;}),_0x67db11['descriptionFactory']['registerDescriptionCallback'](_0x1769b1=>{if('insertion'==_0x1769b1['type']||'deletion'==_0x1769b1['type']){const _0x1e86c4=_0x1769b1['getContainedElement']();if(_0x1e86c4&&_0x1e86c4['is']('element','caption'))return{'type':'insertion'==_0x1769b1['type']?'addObject':'removeObject','element':_0x1e86c4,'quantity':0x1};}}),_0x67db11['descriptionFactory']['registerDescriptionCallback'](_0x50629d=>'formatBlock'==_0x50629d['type']&&'convertInlineImageToBlock'==_0x50629d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x50629d['type']&&'convertBlockImageToInline'==_0x50629d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x67db11['descriptionFactory']['registerDescriptionCallback'](_0x4a93e4=>{if('attribute'!=_0x4a93e4['type'])return;const {data:_0x1a3ea8}=_0x4a93e4;if(!_0x1a3ea8||'alt'!=_0x1a3ea8['key'])return;const _0x489f8f=_0x1a3ea8['newValue'];return _0x489f8f?{'type':'format','content':getTranslation$1(_0x47325f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x489f8f+'\x22')}:{'type':'format','content':getTranslation$1(_0x47325f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xecf10=this['editor'],_0x4438af=_0xecf10['locale'];_0xecf10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x828ce4=>{if('formatBlock'!=_0x828ce4['type']&&'formatInline'!=_0x828ce4['type'])return;const {data:_0x1daca5}=_0x828ce4;if(_0x1daca5){if('imageTextAlternative'==_0x1daca5['commandName']){const _0xd83b94=_0x1daca5['commandParams'][0x0]['newValue'];return _0xd83b94?{'type':'format','content':getTranslation$1(_0x4438af,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd83b94+'\x22')}:{'type':'format','content':getTranslation$1(_0x4438af,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1daca5['commandName']){const _0x4bb5e3=_0x1daca5['commandParams'][0x0]['width'];return _0x4bb5e3?{'type':'format','content':getTranslation$1(_0x4438af,'*Set\x20image\x20width:*\x20%0',_0x4bb5e3)}:{'type':'format','content':getTranslation$1(_0x4438af,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3ae4f7=this['editor']['locale'],_0x34b7bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x34b7bc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x34b7bc['descriptionFactory']['registerDescriptionCallback'](_0x30aea8=>{if('attribute'!=_0x30aea8['type'])return;const {data:_0x4b4e05}=_0x30aea8;return _0x4b4e05&&'src'==_0x4b4e05['key']?_0x4b4e05['newValue']&&_0x4b4e05['oldValue']?{'type':'format','content':getTranslation$1(_0x3ae4f7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d3ae9=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d3ae9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1d3ae9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d3ae9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1d3ae9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fe7f0=this['editor'],_0x242e8b=_0x4fe7f0['locale'];_0x4fe7f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x473891=>{if('formatBlock'!=_0x473891['type']&&'formatInline'!=_0x473891['type'])return;const {data:_0x2d1834}=_0x473891;if(!_0x2d1834||'replaceImageSource'!=_0x2d1834['commandName'])return;return{'type':'format','content':getTranslation$1(_0x242e8b,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends Plugin{['afterInit'](){const _0x4555b3=this['editor'];if(!_0x4555b3['plugins']['has']('ImageStyleEditing'))return;const _0x31d29c=_0x4555b3['plugins']['get']('TrackChangesEditing'),_0x50dafd=_0x4555b3['plugins']['get']('ImageUtils'),_0xacf0b4={};_0x31d29c['enableCommand']('imageStyle',(_0x4c7d0b,_0x24152d)=>{const _0x5b1afd=_0x4555b3['plugins']['get']('Users')['me'],_0x314ddc=_0x4555b3['commands']['get']('imageStyle');let _0x1661f5=_0x50dafd['getClosestSelectedImageElement'](_0x4555b3['model']['document']['selection']),_0x343dc6=_0x4555b3['model']['createRangeOn'](_0x1661f5),_0x63a1c3=_0x314ddc['value'];if(_0x63a1c3==_0x24152d['value'])return;const _0x233077={'commandName':'imageStyle','commandParams':[_0x24152d],'formatGroupId':uid()};_0x4555b3['model']['change'](()=>{if(_0x31d29c['getSuggestions']()['filter'](_0x18e6dd=>_0x18e6dd['isInContent']&&_0x5b1afd==_0x18e6dd['author']&&('formatBlock'==_0x18e6dd['type']||'formatInline'==_0x18e6dd['type'])&&('imageStylePreApply'==_0x18e6dd['subType']||'imageStylePostApply'==_0x18e6dd['subType'])&&_0x18e6dd['getFirstRange']()['isEqual'](_0x343dc6))['forEach'](_0x23f478=>_0x31d29c['discardSuggestion'](_0x23f478['head'])),_0x1661f5=_0x50dafd['getClosestSelectedImageElement'](_0x4555b3['model']['document']['selection']),_0x343dc6=_0x4555b3['model']['createRangeOn'](_0x1661f5),_0x314ddc['refresh'](),_0x4555b3['commands']['get']('imageTypeInline')['refresh'](),_0x4555b3['commands']['get']('imageTypeBlock')['refresh'](),_0x63a1c3=_0x314ddc['value'],_0x63a1c3!=_0x24152d['value'])return _0x50dafd['isInlineImage'](_0x1661f5)&&_0x314ddc['shouldConvertImageType'](_0x24152d['value'],_0x1661f5)?(_0x4c7d0b({..._0x24152d,'setImageSizes':!0x1}),_0x1661f5=_0x50dafd['getClosestSelectedImageElement'](_0x4555b3['model']['document']['selection']),void _0x31d29c['markBlockFormat'](_0x1661f5,{..._0x233077,'commandReversedParams':[{'value':_0x63a1c3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x50dafd['isBlockImage'](_0x1661f5)?_0x31d29c['markBlockFormat'](_0x1661f5,_0x233077,[],'imageStylePostApply'):_0x31d29c['markInlineFormat'](_0x343dc6,_0x233077,'imageStylePostApply'));});});for(const _0x1c2ec8 of _0x4555b3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xacf0b4[_0x1c2ec8['name']]=_0x1c2ec8['title']['toLowerCase']();_0x31d29c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x31d29c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x31d29c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x31d29c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x13ca03])=>{_0x50dafd['setImageNaturalSizeAttributes'](_0x13ca03['getContainedElement']());}),_0x31d29c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x274a8d,_0x5d8b64)=>{_0x31d29c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x274a8d,{'commandName':_0x5d8b64['commandName'],'commandParams':_0x5d8b64['commandReversedParams']});}),_0x31d29c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x47341c,_0x5a204d){if(_0xfdc3df(_0x47341c,_0x5a204d))return[_0x47341c,_0x5a204d];if(_0xfdc3df(_0x5a204d,_0x47341c))return[_0x5a204d,_0x47341c];return null;});const _0x2b35d7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xfdc3df(_0x249abe,_0x44d9c5){const _0x1a9f57=_0x2b35d7['findIndex'](({type:_0x42feb6,subType:_0x285fab})=>_0x249abe['type']==_0x42feb6&&_0x249abe['subType']==_0x285fab),_0x4458c2=_0x2b35d7['findIndex'](({type:_0x1c129d,subType:_0x4e3203})=>_0x44d9c5['type']==_0x1c129d&&_0x44d9c5['subType']==_0x4e3203);if(_0x1a9f57<0x0||_0x4458c2<0x0)return!0x1;const _0x2c8e9c=_0x249abe['getFirstRange'](),_0x3aab09=_0x44d9c5['getFirstRange']();if((0x0==_0x1a9f57||0x1==_0x1a9f57)&&0x2==_0x4458c2&&_0x2c8e9c['isIntersecting'](_0x3aab09))return!0x0;if(0x2==_0x1a9f57&&0x3==_0x4458c2){const _0x5a607e=_0x31d29c['_findSuggestions'](_0x2c8e9c,'insertion')['filter'](({suggestion:_0x36b2db,meta:_0x40d39d})=>_0x40d39d['isOwn']&&'convertInlineImageToBlock'==_0x36b2db['subType']);if(_0x5a607e['length']>0x1&&_0x3aab09['end']['isEqual'](_0x2c8e9c['start']))return!0x0;if(0x1==_0x5a607e['length']&&(_0x2c8e9c['start']['isEqual'](_0x3aab09['end'])||_0x2c8e9c['end']['isEqual'](_0x3aab09['start'])))return!0x0;}if(0x3==_0x1a9f57&&0x3==_0x4458c2&&_0x2c8e9c['start']['isBefore'](_0x3aab09['start'])){const _0x49b04d=_0x2c8e9c['end']['nodeAfter'],_0x8f7c5f=_0x3aab09['start']['nodeBefore'];return _0x50dafd['isBlockImage'](_0x49b04d)&&_0x49b04d===_0x8f7c5f;}return!0x1;}_0x4555b3['model']['document']['registerPostFixer'](()=>{let _0x1a014e=!0x1;const _0x441dba=Array['from'](_0x4555b3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ab193,data:_0xe29ba0}of _0x441dba){const {group:_0x755ce1,type:_0xf19434,subType:_0xb1dc75,id:_0x45d01a}=_0x31d29c['_splitMarkerName'](_0x3ab193);if('suggestion'==_0x755ce1&&_0x31d29c['hasSuggestion'](_0x45d01a)){if('formatBlock'==_0xf19434&&('imageStylePreApply'==_0xb1dc75||'imageStylePostApply'==_0xb1dc75)){const _0xdb6061=_0x31d29c['getSuggestion'](_0x45d01a);if(_0xe29ba0['newRange']){const _0x1a90a3=_0xdb6061['getFirstRange']()['getContainedElement']();if(_0x50dafd['isBlockImage'](_0x1a90a3))continue;_0x31d29c['discardSuggestion'](_0xdb6061),_0x1a014e=!0x0;}}if('insertion'==_0xf19434&&'imageCaption'==_0xb1dc75&&!_0xe29ba0['newRange']){const _0x38431a=_0x31d29c['getSuggestion'](_0x45d01a);_0x38431a['next']&&_0x38431a['next']['isInContent']&&(_0x31d29c['discardSuggestion'](_0x38431a['next']),_0x1a014e=!0x0);}}}return _0x1a014e;}),this['_registerLegacyDescription'](_0xacf0b4);}['_registerLegacyDescription'](_0x245a1b){const _0x2ac892=this['editor'],_0x2d1af5=_0x2ac892['locale'];_0x2ac892['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x506df0=>{if('formatBlock'!=_0x506df0['type']&&'formatInline'!=_0x506df0['type'])return;const {data:_0x11446e}=_0x506df0;if(!_0x11446e||'imageStyle'!=_0x11446e['commandName'])return;const _0x28b134=_0x11446e['commandParams'][0x0]['value'];return _0x2fd904('side'===_0x28b134?getTranslation$1(_0x2d1af5,'FORMAT_SIDE_IMAGE'):_0x245a1b[_0x28b134]||_0x28b134);function _0x2fd904(_0xf22f15){return{'type':'format','content':getTranslation$1(_0x2d1af5,'*Format:*\x20%0',_0xf22f15)};}});}}class TrackChangesImportWord extends Plugin{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3af7a7){super(_0x3af7a7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5d548=this['editor'],_0x5e3940=_0x5d548['commands']['get']('importWord'),_0x449354=_0x5d548['commands']['get']('trackChanges');_0x5e3940&&(_0x5e3940['on']('execute',(_0x4736b5,[,_0x5002a3])=>{this['_trackChangesValueDuringImport']=_0x449354['value'],_0x5002a3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5e3940,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5e3940,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x449354['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5d548['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4daf03,_0xfef4fc){const {suggestions:_0x4f5131}=_0xfef4fc,_0x3dc101=this['editor']['commands']['get']('trackChanges'),_0x3f7b4b=_0x3dc101['value'];this['_trackChangesValueDuringImport']!==_0x3f7b4b&&(_0x3dc101['execute'](),this['_trackChangesExecuted']=!0x0),_0x4f5131&&_0x4f5131['forEach'](({id:_0x4a54b7,type:_0x3d36aa,author:_0xa89c6a,created_at:_0x2c8434})=>{const _0x3e016c={'id':_0x4a54b7,'type':_0x3d36aa,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xa89c6a,'createdAt':_0x2c8434?new Date(_0x2c8434):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3e016c);});}}class TrackChangesIndent extends Plugin{['afterInit'](){const _0x125081=this['editor'],_0x297c3b=_0x125081['plugins']['get']('TrackChangesEditing');if(_0x125081['plugins']['has']('IndentEditing')&&(_0x297c3b['enableCommand']('indent'),_0x297c3b['enableCommand']('outdent')),_0x125081['plugins']['has']('IndentBlock')){for(const _0x5706a5 of['indentBlock','outdentBlock'])_0x297c3b['enableDefaultAttributesIntegration'](_0x5706a5);if(_0x125081['plugins']['has']('ListEditing')){for(const _0x108206 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x297c3b['enableDefaultAttributesIntegration'](_0x108206);}}const _0x4c118d=_0x125081['locale'];_0x297c3b['descriptionFactory']['registerAttributeLabel']('blockIndent',getTranslation$1(_0x4c118d,'FORMAT_INDENT')),_0x297c3b['descriptionFactory']['registerAttributeLabel']('blockIndentList',getTranslation$1(_0x4c118d,'FORMAT_INDENT')),_0x297c3b['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',getTranslation$1(_0x4c118d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd919=this['editor'],_0x265d7d=_0x5bd919['locale'],_0x2c527b=_0x5bd919['plugins']['get']('TrackChangesEditing');_0x2c527b['descriptionFactory']['registerDescriptionCallback'](_0x5ebe53=>{if('formatBlock'!=_0x5ebe53['type'])return;const {data:_0x30306d}=_0x5ebe53;if(!_0x30306d)return;if('indentBlock'!=_0x30306d['commandName']&&'outdentBlock'!=_0x30306d['commandName'])return;const _0x46562f=_0x5ebe53['getItems']()[0x0],_0x48d765=_0x2c527b['descriptionFactory']['getItemLabel'](_0x46562f);return'indentBlock'==_0x30306d['commandName']?{'type':'format','content':getTranslation$1(_0x265d7d,'*Indent:*\x20%0',_0x48d765)}:'outdentBlock'==_0x30306d['commandName']?{'type':'format','content':getTranslation$1(_0x265d7d,'*Outdent:*\x20%0',_0x48d765)}: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 _0x158112=this['editor'];if(!_0x158112['plugins']['has']('LinkEditing'))return;const _0x18cf4c=_0x158112['plugins']['get']('TrackChangesEditing'),_0x355f45=_0x158112['commands']['get']('link');_0x18cf4c['enableDefaultAttributesIntegration']('link'),_0x18cf4c['enableDefaultAttributesIntegration']('unlink');for(const _0x3a75f4 of _0x355f45['manualDecorators'])_0x18cf4c['descriptionFactory']['registerAttributeLabel'](_0x3a75f4['id'],'link\x20('+_0x3a75f4['label']['toLowerCase']()+')');_0x18cf4c['descriptionFactory']['registerDescriptionCallback'](_0x2f0af0=>{if('attribute'!=_0x2f0af0['type'])return;const {data:_0x22e734}=_0x2f0af0;if(!_0x22e734||'linkHref'!=_0x22e734['key'])return;const _0x44359e=_0x22e734['newValue'],_0x45913e=_0x158112['locale'];return{'type':'format','content':null==_0x44359e?getTranslation$1(_0x45913e,'*Remove\x20link*'):getTranslation$1(_0x45913e,'*Set\x20link:*\x20%0','\x22'+_0x44359e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b40bf=this['editor'],_0x4fdcbf=_0x2b40bf['locale'];_0x2b40bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5879bd=>{if('formatInline'!=_0x5879bd['type'])return;const {data:_0x1e5f9d}=_0x5879bd;if(_0x1e5f9d){if('link'==_0x1e5f9d['commandName']){const _0xbe71e2=_0x1e5f9d['commandParams'][0x0];return{'type':'format','content':getTranslation$1(_0x4fdcbf,'*Set\x20link:*\x20%0','\x22'+_0xbe71e2+'\x22')};}return'unlink'==_0x1e5f9d['commandName']?{'type':'format','content':getTranslation$1(_0x4fdcbf,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends Plugin{['afterInit'](){const _0x1981c3=this['editor'],_0x330631=_0x1981c3['locale'];if(!_0x1981c3['plugins']['has']('LegacyListEditing'))return;const _0x1911e9=_0x1981c3['plugins']['get']('TrackChangesEditing'),_0x18d412=_0x1981c3['plugins']['has']('LegacyTodoListEditing');function _0x4b297a(_0xd5d9c3){return()=>{const _0x56e295=_0x1981c3['model']['document']['selection'],_0x3c3849=_0x1981c3['commands']['get'](_0xd5d9c3);if(_0x3c3849['value'])return void _0x1981c3['execute']('paragraph',{});const _0x596186=_0xd5d9c3['slice'](0x0,-0x4),_0x52d18b=getBlocksToMarkForListTypeChange(_0x56e295['getSelectedBlocks'](),_0x596186,_0x1981c3['model']['schema']);_0x1981c3['model']['change'](()=>{for(const _0xc1bde9 of _0x52d18b)_0x1911e9['markBlockFormat'](_0xc1bde9,{'commandName':_0xd5d9c3,'commandParams':[{'forceValue':!_0x3c3849['value']}],'formatGroupId':'blockName'},getBlocksAffectedByListTypeChange(_0xc1bde9));});};}function _0x471bd2(_0x484a42){return()=>{const _0x43bff9=getBlocksToMarkForIndentChange(_0x1981c3['model']['document']['selection']['getSelectedBlocks']()),_0x560ba0=_0x1981c3['model']['createRange'](_0x1981c3['model']['createPositionAt'](_0x43bff9[0x0],'before'),_0x1981c3['model']['createPositionAt'](_0x43bff9[_0x43bff9['length']-0x1],'end'));_0x1981c3['model']['change'](()=>{_0x1911e9['markBlockFormat'](_0x560ba0,{'commandName':_0x484a42,'commandParams':[],'formatGroupId':'listIndent'},getBlocksAffectedByIndent(_0x43bff9));});};}_0x1911e9['enableCommand']('numberedList',_0x4b297a('numberedList')),_0x1911e9['enableCommand']('bulletedList',_0x4b297a('bulletedList')),_0x18d412&&_0x1911e9['enableCommand']('todoList',_0x4b297a('todoList')),_0x1911e9['enableCommand']('indentList',_0x471bd2('indentList')),_0x1911e9['enableCommand']('outdentList',_0x471bd2('outdentList')),_0x18d412&&_0x1911e9['enableCommand']('checkTodoList',()=>{const _0xc79210=_0x1981c3['commands']['get']('checkTodoList'),_0x4b4b46=Array['from'](_0xc79210['_selectedElements']);_0x4b4b46['filter'](_0x10acb0=>_0x10acb0['getAttribute']('todoListChecked')!=_0xc79210['value']),_0x1981c3['model']['change'](()=>{for(const _0x42043a of _0x4b4b46)_0x1911e9['markBlockFormat'](_0x42043a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc79210['value']}]});});}),_0x1911e9['descriptionFactory']['registerElementLabel']('listItem',_0xd31160=>getTranslation$1(_0x330631,'ELEMENT_LIST_ITEM',_0xd31160)),_0x1911e9['descriptionFactory']['registerDescriptionCallback'](_0x504dfc=>{if('formatBlock'!=_0x504dfc['type']&&'formatInline'!=_0x504dfc['type'])return;const {data:_0xb0cb55}=_0x504dfc;if(_0xb0cb55){if('numberedList'==_0xb0cb55['commandName']||'bulletedList'==_0xb0cb55['commandName']||'todoList'==_0xb0cb55['commandName'])switch(_0xb0cb55['commandName']['replace']('List','')){case'bulleted':return _0x5f0ef1(getTranslation$1(_0x330631,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f0ef1(getTranslation$1(_0x330631,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f0ef1(getTranslation$1(_0x330631,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb0cb55['commandName'])return{'type':'format','content':getTranslation$1(_0x330631,'*Indent:*\x20%0',getTranslation$1(_0x330631,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb0cb55['commandName'])return{'type':'format','content':getTranslation$1(_0x330631,'*Outdent:*\x20%0',getTranslation$1(_0x330631,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb0cb55['commandName'])return _0xb0cb55['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x330631,'*Check\x20item*')}:{'type':'format','content':getTranslation$1(_0x330631,'*Uncheck\x20item*')};}function _0x5f0ef1(_0x54a336){return{'type':'format','content':getTranslation$1(_0x330631,'*Change\x20to:*\x20%0',_0x54a336)};}});}}function getBlocksToMarkForListTypeChange(_0x2146a5,_0x26ed40,_0x31fcd1){let _0x51b8a2=Array['from'](_0x2146a5)['filter'](_0x56246b=>checkCanBecomeListItem(_0x56246b,_0x31fcd1));_0x51b8a2=_0x51b8a2['filter'](_0x3f8eb7=>!_0x3f8eb7['is']('element','listItem')||_0x3f8eb7['getAttribute']('listType')!=_0x26ed40);const _0x10b32c=new Set();for(const _0x5bb076 of _0x51b8a2)_0x5bb076['is']('element','listItem')?_0x10b32c['add'](getListHead(_0x5bb076)):_0x10b32c['add'](_0x5bb076);return Array['from'](_0x10b32c);}function checkCanBecomeListItem(_0x22a862,_0x5597ec){return _0x5597ec['checkChild'](_0x22a862['parent'],'listItem')&&!_0x5597ec['isObject'](_0x22a862);}function getBlocksToMarkForIndentChange(_0x253381){let _0x16942b=Array['from'](_0x253381);const _0x2caf66=_0x16942b['findIndex'](_0x1efbef=>'listItem'!=_0x1efbef['name']);return _0x2caf66>-0x1&&(_0x16942b=_0x16942b['slice'](0x0,_0x2caf66)),_0x16942b;}function getListHead(_0x2e20ec){const _0x3fa2e0=_0x2e20ec['getAttribute']('listIndent');if(0x0==_0x3fa2e0)return _0x2e20ec;let _0x1ce23f=_0x2e20ec;for(;_0x2e20ec['previousSibling']&&_0x2e20ec['previousSibling']['is']('element','listItem');){const _0x401876=_0x2e20ec['previousSibling']['getAttribute']('listIndent');if(_0x401876==_0x3fa2e0)_0x1ce23f=_0x2e20ec['previousSibling'];else{if(_0x401876<_0x3fa2e0)break;}_0x2e20ec=_0x2e20ec['previousSibling'];}return _0x1ce23f;}function getBlocksAffectedByListTypeChange(_0x163d6a){const _0x228ed8=[];if(_0x163d6a['is']('element','listItem')&&_0x163d6a['getAttribute']('listIndent')>0x0){let _0x1b41dd=_0x163d6a['nextSibling'];for(;_0x1b41dd&&'listItem'==_0x1b41dd['name']&&_0x1b41dd['getAttribute']('listIndent')==_0x163d6a['getAttribute']('listIndent');)_0x228ed8['push'](_0x1b41dd),_0x1b41dd=_0x1b41dd['nextSibling'];}return _0x228ed8;}function getBlocksAffectedByIndent(_0x2b70c2){const _0x1a3fbc=new Set();for(const _0x550db0 of _0x2b70c2){let _0x11e742=_0x550db0['nextSibling'];for(;_0x11e742&&_0x11e742['getAttribute']('listIndent')>_0x550db0['getAttribute']('listIndent');)_0x1a3fbc['add'](_0x11e742),_0x11e742=_0x11e742['nextSibling'];}return Array['from'](_0x1a3fbc);}class TrackChangesLegacyListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x35f32d=this['editor']['config']['get']('list.properties'),_0x51fb12=this['editor']['plugins']['get']('TrackChangesEditing');_0x35f32d['styles']&&_0x51fb12['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x35f32d['reversed']&&_0x51fb12['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x35f32d['startIndex']&&_0x51fb12['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x51fb12['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x428cc8,_0x4668ab={}){const _0x557861=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46f7a5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x557861['markMultiRangeBlockFormat'](_0x46f7a5,{'commandName':'listStyle','commandParams':[{'type':_0x4668ab['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x534a34,_0x347473={}){const _0x167656=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26075a=this['_getSuggestionBlocks'](_0x30e61a=>_0x30e61a['is']('element','listItem')&&'numbered'===_0x30e61a['getAttribute']('listType'));if(_0x26075a['length']<0x1)return;const _0x5774a6=_0x26075a['map'](_0x3b91e3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b91e3,'before'),this['editor']['model']['createPositionAt'](_0x3b91e3,0x0)));this['editor']['model']['change'](()=>{_0x167656['markMultiRangeBlockFormat'](_0x5774a6,{'commandName':'listReversed','commandParams':[{'reversed':_0x347473['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4c9b87,_0x28c736={}){const _0x44bb0d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32f1c0=this['_getSuggestionBlocks'](_0x4acf76=>_0x4acf76['is']('element','listItem')&&'numbered'===_0x4acf76['getAttribute']('listType'));if(_0x32f1c0['length']<0x1)return;const _0x30f0a5=_0x32f1c0['map'](_0x2ac923=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ac923,'before'),this['editor']['model']['createPositionAt'](_0x2ac923,0x0)));this['editor']['model']['change'](()=>{_0x44bb0d['markMultiRangeBlockFormat'](_0x30f0a5,{'commandName':'listStart','commandParams':[{'startIndex':_0x28c736['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x53a758){if('formatBlock'!=_0x53a758['type']&&'formatInline'!=_0x53a758['type'])return;const _0x390b04=this['editor']['locale'],{data:_0x5f3f90}=_0x53a758;if(!_0x5f3f90)return;let _0x2bf8a6,_0x10496c;switch(_0x5f3f90['commandName']){case'listStyle':_0x2bf8a6='*Change\x20to:*\x20%0',_0x10496c={'type':'format','content':getTranslation$1(_0x390b04,_0x2bf8a6,getTranslation$1(_0x390b04,this['_getTranslationKeyForListStyle'](_0x5f3f90['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2bf8a6=_0x5f3f90['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x10496c={'type':'format','content':getTranslation$1(_0x390b04,_0x2bf8a6)};break;case'listStart':_0x2bf8a6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x10496c={'type':'format','content':getTranslation$1(_0x390b04,_0x2bf8a6,_0x5f3f90['commandParams'][0x0]['startIndex'])};}return _0x10496c;}['_getSuggestionBlocksForListStyle'](){const _0x13b4cb=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f2d5c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5f2d5c[0x0]?.['is']('element','listItem')&&_0x5f2d5c['unshift'](..._0x13b4cb['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5f2d5c[_0x5f2d5c['length']-0x1]?.['is']('element','listItem')&&_0x5f2d5c['push'](..._0x13b4cb['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5f2d5c=[...new Set(_0x5f2d5c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5f2d5c=_0x5f2d5c['filter'](_0x573c00=>_0x573c00['is']('element','listItem'))),_0x5f2d5c;}['_getSuggestionBlocks'](_0x49e471){const _0x19a2f5=this['editor']['plugins']['get']('LegacyListUtils');let _0x329be6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x49e471)['map'](_0xd659ad=>{const _0x237735=this['editor']['model']['createPositionAt'](_0xd659ad,0x0);return[..._0x19a2f5['getSiblingNodes'](_0x237735,'backward'),..._0x19a2f5['getSiblingNodes'](_0x237735,'forward')];})['flat']();return _0x329be6=[...new Set(_0x329be6)],_0x329be6;}['_getTranslationKeyForListStyle'](_0x19857f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x19857f)||'default')['toUpperCase']()+'_LIST_'+_0x19857f['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends Plugin{['afterInit'](){const _0x439b5f=this['editor'];if(!_0x439b5f['plugins']['has']('MediaEmbedEditing'))return;const _0x72e314=_0x439b5f['plugins']['get']('TrackChangesEditing'),_0x19f548=_0x439b5f['locale'];_0x72e314['enableCommand']('mediaEmbed'),_0x72e314['descriptionFactory']['registerElementLabel']('media',_0x209024=>getTranslation$1(_0x19f548,'ELEMENT_MEDIA',_0x209024));}}class TrackChangesMention extends Plugin{['afterInit'](){const _0x3b4619=this['editor'];_0x3b4619['plugins']['has']('MentionEditing')&&_0x3b4619['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends Plugin{['afterInit'](){const _0x414109=this['editor'];if(!_0x414109['plugins']['has']('MergeFieldsEditing'))return;const _0x36b2b3=_0x414109['plugins']['get']('TrackChangesEditing'),_0x43dcb7=_0x414109['locale'];_0x36b2b3['enableCommand']('insertMergeField'),_0x36b2b3['enableCommand']('insertMergeFieldBlock'),_0x36b2b3['enableCommand']('insertMergeFieldImage'),_0x36b2b3['descriptionFactory']['registerElementLabel']('mergeField',_0x5a7b76=>getTranslation$1(_0x43dcb7,'ELEMENT_MERGE_FIELD',_0x5a7b76)),_0x36b2b3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4d60f1=>getTranslation$1(_0x43dcb7,'ELEMENT_MERGE_FIELD',_0x4d60f1)),_0x36b2b3['descriptionFactory']['registerDescriptionCallback'](_0xf325f9=>{if('insertion'!=_0xf325f9['type']&&'deletion'!=_0xf325f9['type'])return;const _0x4284f0=_0xf325f9['getContainedElement']();if(null==_0x4284f0)return;const _0x84203a=_0x414109['plugins']['get']('MergeFieldsEditing');let _0x9bec10;switch(_0x84203a['getMergeFieldType'](_0x4284f0)){case null:return;case'image':{const _0x491c56=_0x84203a['unwrapAffixes'](_0x4284f0['getAttribute']('src'));_0x9bec10=_0x84203a['getLabel'](_0x491c56)||_0x491c56;break;}default:{const _0x4c7af6=_0x4284f0['getAttribute']('id');_0x9bec10=_0x84203a['getLabel'](_0x4c7af6)||_0x4c7af6;break;}}return'insertion'==_0xf325f9['type']?{'type':'insertion','content':getTranslation$1(_0x43dcb7,'*Insert:*\x20%0','\x22'+_0x9bec10+'\x22\x20'+getTranslation$1(_0x43dcb7,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':getTranslation$1(_0x43dcb7,'*Remove:*\x20%0','\x22'+_0x9bec10+'\x22\x20'+getTranslation$1(_0x43dcb7,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends Plugin{['afterInit'](){const _0x27c891=this['editor'],_0x50fa58=_0x27c891['plugins']['get']('TrackChangesEditing');_0x27c891['plugins']['has']('MultiLevelList')&&(_0x50fa58['enableDefaultAttributesIntegration']('multiLevelList'),_0x50fa58['descriptionFactory']['registerDescriptionCallback'](_0x525754=>this['handleDescriptions'](_0x525754)));}['handleDescriptions'](_0x4f2977){const _0xfb8d3=this['editor']['locale'],{data:_0x410a02}=_0x4f2977,_0x151d6b={'type':'format','content':''};if(_0x410a02&&'listMarkerStyle'==_0x410a02['key']){if(!_0x410a02['oldValue'])return{'type':'format','content':getTranslation$1(_0xfb8d3,'*Set\x20format:*\x20%0',getTranslation$1(_0xfb8d3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x410a02['newValue']+')'};if(!_0x410a02['newValue']){let _0x26af4d=_0x4f2977['head'];for(;_0x26af4d;){if(_0x26af4d['data']&&'listType'==_0x26af4d['data']['key']&&_0x26af4d['data']['newValue'])return _0x151d6b;_0x26af4d=_0x26af4d['next'];}return{'type':'format','content':getTranslation$1(_0xfb8d3,'*Remove\x20format:*\x20%0',getTranslation$1(_0xfb8d3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x410a02['oldValue']+')'};}}}}class TrackChangesPageBreak extends Plugin{['afterInit'](){const _0x9c3e39=this['editor'];if(!_0x9c3e39['plugins']['has']('PageBreakEditing'))return;_0x9c3e39['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x489228=_0x9c3e39['plugins']['get']('TrackChangesEditing'),_0x479082=_0x9c3e39['locale'];_0x489228['descriptionFactory']['registerElementLabel']('pageBreak',_0x3ee930=>getTranslation$1(_0x479082,'ELEMENT_PAGE_BREAK',_0x3ee930));}}class TrackChangesParagraph extends Plugin{['afterInit'](){const _0x5e50bc=this['editor'];if(!_0x5e50bc['plugins']['has']('Paragraph'))return;const _0x85db8c=_0x5e50bc['locale'],_0x48f766=_0x5e50bc['plugins']['get']('TrackChangesEditing');_0x48f766['descriptionFactory']['registerElementLabel']('paragraph',_0x3dffee=>getTranslation$1(_0x85db8c,'ELEMENT_PARAGRAPH',_0x3dffee)),_0x48f766['enableDefaultAttributesIntegration']('paragraph'),_0x48f766['enableCommand']('insertParagraph');const _0x48d39b=_0x48f766['descriptionFactory'];_0x48d39b['registerDescriptionCallback'](_0x226322=>{if('insertion'!==_0x226322['type'])return;const {start:_0x111461,end:_0x10e9ab}=_0x226322['getFirstRange']();if(!_0x111461['isTouching'](_0x10e9ab)||!_0x111461['nodeAfter'])return;const _0x26c136=_0x5e50bc['model']['schema'],_0x978a10=_0x111461['nodeAfter'];return _0x26c136['isBlock'](_0x978a10)&&!_0x26c136['isLimit'](_0x978a10)&&_0x26c136['checkChild'](_0x978a10,'$text')?{'type':'insertion','content':getTranslation$1(_0x85db8c,'*Insert:*\x20%0',_0x48d39b['getItemLabel'](_0x978a10,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48c6c6=this['editor'],_0x19493d=_0x48c6c6['locale'];_0x48c6c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd3fa5b=>{if('formatBlock'!=_0xd3fa5b['type'])return;const {data:_0x59c68b}=_0xd3fa5b;return _0x59c68b&&'paragraph'==_0x59c68b['commandName']?{'type':'format','content':getTranslation$1(_0x19493d,'*Change\x20to:*\x20%0',getTranslation$1(_0x19493d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends Plugin{['afterInit'](){const _0x58e55c=this['editor'];_0x58e55c['commands']['get']('replaceSource')&&_0x58e55c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends Plugin{['afterInit'](){const _0x5bbb65=this['editor'];if(!_0x5bbb65['plugins']['has']('RemoveFormatEditing'))return;_0x5bbb65['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x255bc5=this['editor'];_0x255bc5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1243ef=>{if('formatBlock'!=_0x1243ef['type']&&'formatInline'!=_0x1243ef['type'])return;const {data:_0x2283e1}=_0x1243ef;return _0x2283e1&&'removeFormat'==_0x2283e1['commandName']?{'type':'format','content':getTranslation$1(_0x255bc5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends Plugin{['afterInit'](){const _0x2692fd=this['editor'];if(!_0x2692fd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x35eb85=_0x2692fd['plugins']['get']('TrackChangesEditing');_0x35eb85['enableCommand']('goToPreviousRestrictedEditingException'),_0x35eb85['enableCommand']('goToNextRestrictedEditingException');const _0x53553f=_0x2692fd['plugins']['get']('RestrictedEditingModeEditing');_0x53553f['enableCommand']('trackChanges'),_0x53553f['enableCommand']('acceptSuggestion'),_0x53553f['enableCommand']('discardSuggestion'),_0x53553f['enableCommand']('acceptAllSuggestions'),_0x53553f['enableCommand']('discardAllSuggestions'),_0x53553f['enableCommand']('acceptSelectedSuggestions'),_0x53553f['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends Plugin{['afterInit'](){const _0x419494=this['editor'];if(!_0x419494['plugins']['has']('ShiftEnter'))return;const _0x14958b=_0x419494['plugins']['get']('TrackChangesEditing');_0x14958b['enableCommand']('shiftEnter'),_0x14958b['descriptionFactory']['registerElementLabel']('softBreak',_0x1fdff9=>getTranslation$1(_0x419494['locale'],'ELEMENT_LINE_BREAK',_0x1fdff9));}}function getRangesWithAttribute(_0x2c9a60,_0x5c178b,_0x2fef5f){const _0x37b973=[];for(const _0x58a678 of _0x5c178b['getItems']())_0x58a678['hasAttribute'](_0x2c9a60)&&_0x37b973['push'](_0x2fef5f['createRangeOn'](_0x58a678));return _0x37b973;}class TrackChangesStandardEditingMode extends Plugin{['afterInit'](){const _0x1705c5=this['editor'],_0x2c4f91=_0x1705c5['plugins']['get']('TrackChangesEditing');_0x1705c5['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2c4f91['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0xb57073=this['editor'],_0x4356d0=_0xb57073['model'],_0x480c87=_0xb57073['locale'],_0x26ac6d=_0xb57073['plugins']['get']('TrackChangesEditing'),_0x104111='restrictedEditingException',_0x1bb7c1=_0xb57073['commands']['get'](_0x104111);_0x26ac6d['enableCommand'](_0x104111,(_0x37b180,_0x31dba8={})=>{const _0xd85354=_0x4356d0['document']['selection'];if(_0xd85354['isCollapsed'])return void _0x37b180(_0x31dba8);const _0x271b6f=void 0x0!==_0x31dba8['forceValue']?_0x31dba8['forceValue']:!_0x1bb7c1['value'];_0x4356d0['change'](()=>{const _0x1c60b4=Array['from'](_0xd85354['getRanges']());for(const _0x2a019a of _0x1c60b4){const _0x2b27de=_0x271b6f?[_0x2a019a]:getRangesWithAttribute(_0x104111,_0x2a019a,_0x4356d0);for(const _0x2271b6 of _0x2b27de)_0x26ac6d['markInlineFormat'](_0x2271b6,{'commandName':_0x104111,'commandParams':[{'forceValue':_0x271b6f}]});}});}),_0x26ac6d['descriptionFactory']['registerDescriptionCallback'](_0x3f7828=>{if('formatBlock'!=_0x3f7828['type']&&'formatInline'!=_0x3f7828['type'])return;const {data:_0x214452}=_0x3f7828;return _0x214452&&_0x214452['commandName']==_0x104111?_0x214452['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x480c87,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$1(_0x480c87,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x512d31=this['editor'],_0x4e76b4=_0x512d31['locale'],_0xbe4020=_0x512d31['plugins']['get']('TrackChangesEditing'),_0x1c60c7='restrictedEditingExceptionBlock',_0x2639d7=this['editor']['commands']['get'](_0x1c60c7);_0xbe4020['enableCommand'](_0x1c60c7,(_0x529196,_0x3efa1c={})=>{const _0x3a7315=this['editor']['model']['document']['selection'],_0x34c89c=_0x3efa1c&&void 0x0!==_0x3efa1c['forceValue']?_0x3efa1c['forceValue']:!_0x2639d7['value'];let _0x4ea6c2=[];if(_0x34c89c){const _0x230705=Array['from'](_0x3a7315['getSelectedBlocks']())['filter'](_0x117c64=>isInBlockException(_0x117c64)||checkCanBeWrapped(_0x117c64,this['editor']['model']['schema']));_0x4ea6c2=getRangesOfBlockGroups(_0x230705,_0x512d31['model']);}else{const _0x34da61=Array['from'](_0x3a7315['getSelectedBlocks']())['map'](_0x5d8502=>findExceptionContentBlock(_0x5d8502))['filter'](_0x1c5fe6=>!!_0x1c5fe6);_0x4ea6c2=getRangesOfBlockGroups(_0x34da61,_0x512d31['model']);}_0x512d31['model']['change'](()=>{for(const _0x5bfaa7 of _0x4ea6c2)_0xbe4020['markBlockFormat'](_0x5bfaa7,{'commandName':_0x1c60c7,'commandParams':[{'forceValue':_0x34c89c}]});});}),_0xbe4020['descriptionFactory']['registerDescriptionCallback'](_0x5016d7=>{const {data:_0x51ba34}=_0x5016d7;if(_0x51ba34&&_0x51ba34['commandName']==_0x1c60c7)return _0x51ba34['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x4e76b4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$1(_0x4e76b4,'FORMAT_RESTRICTED_DISABLED')};});}}function checkCanBeWrapped(_0x26cc38,_0xba540c){const _0x1647c7=_0xba540c['createContext'](_0x26cc38['parent']);return!!_0xba540c['checkChild'](_0x1647c7,'restrictedEditingException')&&!!_0xba540c['checkChild'](_0x1647c7['push']('restrictedEditingException'),_0x26cc38);}function isInBlockException(_0x40f267){return!!_0x40f267['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}function findExceptionContentBlock(_0x43b7f8){let _0x7c826a=_0x43b7f8;for(;_0x7c826a['parent'];){if('restrictedEditingException'==_0x7c826a['parent']['name'])return _0x7c826a;_0x7c826a=_0x7c826a['parent'];}return null;}class TrackChangesStylesDropdown extends Plugin{['afterInit'](){const _0x5e0853=this['editor'];if(!_0x5e0853['plugins']['has']('Style')||!_0x5e0853['plugins']['has']('DataSchema'))return;const _0x278a24=_0x5e0853['plugins']['get']('TrackChangesEditing'),_0x4ea5d1=_0x5e0853['locale'],_0x193e30=_0x5e0853['config']['get']('style')||{},_0x45d000=_0x5e0853['plugins']['get']('GeneralHtmlSupport'),_0x79df1d=_0x5e0853['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5e0853['plugins']['get']('DataSchema'),_0x193e30['definitions']);_0x278a24['enableDefaultAttributesIntegration']('style');const _0x22c733=new Set();for(const _0x1feb1f of _0x79df1d['block']){const _0x83ec82=_0x45d000['getGhsAttributeNameForElement'](_0x1feb1f['element']);_0x22c733['add'](_0x83ec82);}const _0x545f4f=new Set();for(const _0x3890b5 of _0x79df1d['inline']){const _0x263a2c=_0x45d000['getGhsAttributeNameForElement'](_0x3890b5['element']);_0x545f4f['add'](_0x263a2c);for(const _0x532e2d of _0x3890b5['ghsAttributes'])_0x545f4f['add'](_0x532e2d);}for(const _0x33ec51 of _0x22c733)_0x278a24['descriptionFactory']['registerAttributeLabel'](_0x33ec51,getTranslation$1(_0x4ea5d1,'FORMAT_STYLE'));for(const _0x2ed382 of _0x545f4f)_0x278a24['descriptionFactory']['registerAttributeLabel'](_0x2ed382,getTranslation$1(_0x4ea5d1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x438eba=this['editor'],_0x25e63b=_0x438eba['locale'];_0x438eba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a3acb=>{if('formatBlock'!=_0x5a3acb['type']&&'formatInline'!=_0x5a3acb['type'])return;const {data:_0xb84dfa}=_0x5a3acb;return _0xb84dfa&&'style'===_0xb84dfa['commandName']?_0xb84dfa['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x25e63b,'*Set\x20format:*\x20%0',_0xb84dfa['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':getTranslation$1(_0x25e63b,'*Remove\x20format:*\x20%0',_0xb84dfa['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends Plugin{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xc20d6e){super(_0xc20d6e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x19a760=this['editor'],_0x1180c7=_0x19a760['model']['document']['selection'];if(!_0x19a760['plugins']['has']('TableEditing'))return;const _0x28fe36=_0x19a760['locale'],_0x575b8f=_0x19a760['plugins']['get']('TrackChangesEditing'),_0x2d998f=_0x19a760['plugins']['get']('TableUtils');_0x575b8f['descriptionFactory']['registerElementLabel']('table',_0x3041a6=>getTranslation$1(_0x28fe36,'ELEMENT_TABLE',_0x3041a6)),this['_setupColumnsRowsFixing'](),_0x575b8f['enableCommand']('insertTable'),_0x575b8f['enableCommand']('selectTableRow'),_0x575b8f['enableCommand']('selectTableColumn');for(const _0xa8bcfd of['insertTableRowAbove','insertTableRowBelow']){const _0x1d02f6=_0x19a760['commands']['get'](_0xa8bcfd);_0x575b8f['enableCommand'](_0xa8bcfd,_0xa2f527=>{_0x19a760['model']['change'](_0x18930a=>{_0xa2f527();const _0x5a383c='above'===_0x1d02f6['order'],_0x1c5142=_0x2d998f['getSelectionAffectedTableCells'](_0x1180c7),_0x351d0e=_0x2d998f['getRowIndexes'](_0x1c5142),_0x100fae=_0x5a383c?_0x351d0e['first']-0x1:_0x351d0e['last']+0x1,_0x5ea212=_0x1c5142[0x0]['findAncestor']('table'),_0xfa9177=_0x2d998f['createTableWalker'](_0x5ea212,{'startRow':_0x100fae,'endRow':_0x100fae}),_0x5b9c35=Array['from'](_0xfa9177)['map'](_0x58171d=>_0x18930a['createRangeOn'](_0x58171d['cell']));_0x575b8f['markMultiRangeInsertion'](_0x5b9c35,'tableRow');});});}for(const _0x57ac65 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2d2086=_0x19a760['commands']['get'](_0x57ac65);_0x575b8f['enableCommand'](_0x57ac65,_0x37b8b0=>{_0x19a760['model']['change'](_0xce0a55=>{_0x37b8b0();const _0x1d0012='left'===_0x2d2086['order'],_0x22bde6=_0x2d998f['getSelectionAffectedTableCells'](_0x1180c7),_0x1d8ce5=_0x2d998f['getColumnIndexes'](_0x22bde6),_0x52aa86=_0x1d0012?_0x1d8ce5['first']-0x1:_0x1d8ce5['last']+0x1,_0x57d503=_0x22bde6[0x0]['findAncestor']('table'),_0x3ebbb9=_0x2d998f['createTableWalker'](_0x57d503,{'startRow':0x0,'column':_0x52aa86,'includeAllSlots':!0x1}),_0x32fa19=Array['from'](_0x3ebbb9)['map'](_0x1a4d58=>_0xce0a55['createRangeOn'](_0x1a4d58['cell']));_0x575b8f['markMultiRangeInsertion'](_0x32fa19,'tableColumn');});});}for(const _0x5d388f of['removeTableRow','removeTableColumn']){const _0x45229d=_0x5d388f['substr'](0xb),_0x1880eb=_0x45229d['toLowerCase'](),_0x11a284=_0x1880eb['substr'](0x0,0x3)+'span',_0x332722='table'+_0x45229d,_0x1b4fd7='min'+_0x45229d,_0x3342e9='max'+_0x45229d;_0x575b8f['enableCommand'](_0x5d388f,()=>{_0x19a760['model']['change'](_0x4bee90=>{const _0xba5afd=_0x2d998f['getSelectionAffectedTableCells'](_0x1180c7),_0x15ed12=_0xba5afd[0x0]['findAncestor']('table');let _0x45cdb1;if('removeTableRow'==_0x5d388f){const _0x23678d=_0x2d998f['getRowIndexes'](_0xba5afd);_0x45cdb1={'startRow':_0x23678d['first'],'endRow':_0x23678d['last'],'includeAllSlots':!0x0};}else{const _0x174a1b=_0x2d998f['getColumnIndexes'](_0xba5afd);_0x45cdb1={'startColumn':_0x174a1b['first'],'endColumn':_0x174a1b['last'],'includeAllSlots':!0x0};}const _0x5bef98=_0x2d998f['createTableWalker'](_0x15ed12,_0x45cdb1),_0x3d08a1=Array['from'](_0x5bef98)['map'](({cell:_0x3bde82})=>_0x3bde82),_0x59f6c7=uniqueValues(_0x3d08a1['filter'](_0x5d8718=>_0x5d8718['hasAttribute'](_0x11a284))),_0x499b49=uniqueValues(_0x3d08a1['filter'](_0x3f45e6=>!_0x3f45e6['hasAttribute'](_0x11a284)))['map'](_0x194cea=>_0x4bee90['createRangeOn'](_0x194cea)),_0x1dc594=_0x575b8f['markMultiRangeDeletion'](_0x499b49,_0x332722);if(_0x1dc594&&('tableRow'==_0x1dc594['subType']||'tableColumn'==_0x1dc594['subType'])){const _0x488c5a=this['_getSuggestionCoords'](_0x1dc594);for(const _0x4fd54f of _0x59f6c7){const _0x2e00f8=_0x4bee90['createRangeOn'](_0x4fd54f),_0xa16a5b=_0x2d998f['getCellLocation'](_0x4fd54f),_0x30ec75=_0x4fd54f['getAttribute'](_0x11a284)-0x1,_0x5eabf5=_0x488c5a[_0x1b4fd7],_0x30b7e9=_0x488c5a[_0x3342e9];_0x5eabf5<=_0xa16a5b[_0x1880eb]&&_0xa16a5b[_0x1880eb]+_0x30ec75<=_0x30b7e9&&_0x1dc594['addRange'](_0x2e00f8);}}});});}function _0x579344(_0x18f238){const _0x3b8270=Array['from'](_0x1180c7['getRanges']())['map'](_0x1065aa=>ModelLiveRange['fromRange'](_0x1065aa));_0x19a760['model']['change'](_0x4bc7a0=>{const _0xb5ae35=_0x4bc7a0['batch'];_0x18f238=_0x18f238['filter'](_0x395a22=>'$graveyard'!=_0x395a22['root']['rootName']),_0x4bc7a0['setSelection'](_0x18f238),_0x19a760['commands']['get']('removeTableRow')['refresh'](),_0x19a760['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x19a760['model']['enqueueChange'](()=>{_0x19a760['model']['enqueueChange'](_0xb5ae35,_0x586cc0=>{const _0x4da195=_0x3b8270['filter'](_0x31c2e0=>'$graveyard'!=_0x31c2e0['root']['rootName']);_0x4da195['length']>0x0&&_0x586cc0['setSelection'](_0x4da195);for(const _0x4563ed of _0x3b8270)_0x4563ed['detach']();});});});}function _0x483757(_0x50dc08){_0x19a760['model']['change'](_0x5f417c=>{const _0x5d42ad=Array['from'](_0x1180c7['getRanges']())['map'](_0x275da8=>ModelLiveRange['fromRange'](_0x275da8)),_0x5ecbd7=[];for(const _0x45c7d3 of _0x50dc08)for(const _0x50cd90 of _0x45c7d3['getItems']({'shallow':!0x0}))_0x5ecbd7['push'](_0x50cd90);for(const _0xbde39d of _0x5ecbd7)'$graveyard'!=_0xbde39d['root']['rootName']&&(_0x5f417c['setSelection'](_0x5f417c['createPositionAt'](_0xbde39d,0x0)),_0x19a760['commands']['get']('removeTableColumn')['refresh'](),_0x19a760['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x300eea=_0x5d42ad['filter'](_0x6033da=>'$graveyard'!=_0x6033da['root']['rootName']);_0x300eea['length']>0x0&&_0x5f417c['setSelection'](_0x300eea);for(const _0x149788 of _0x5d42ad)_0x149788['detach']();});}function _0x17cacc(_0x411b36,_0x1cd0ea){return _0x1cd0ea['every'](_0x59d58c=>_0x411b36['some'](_0xfee0fe=>_0xfee0fe['end']['isEqual'](_0x59d58c['start'])||_0x59d58c['end']['isEqual'](_0xfee0fe['start'])));}function _0x39e5d8(_0x1fccb7,_0x5289ff){return!_0x1fccb7['some'](_0xd8b066=>_0x5289ff['some'](_0x2e0df=>_0xd8b066['isIntersecting'](_0x2e0df)))&&_0x1fccb7['some'](_0x48335f=>_0x5289ff['some'](_0x4931db=>_0x48335f['end']['isTouching'](_0x4931db['start'])));}_0x575b8f['descriptionFactory']['registerDescriptionCallback'](_0x4c0769=>{if('insertion'!=_0x4c0769['type']&&'deletion'!=_0x4c0769['type'])return;const _0x5f2b93=_0x4c0769['getContainedElement']();if(null!=_0x5f2b93&&_0x5f2b93['is']('element','table')){if('insertion'==_0x4c0769['type']){const _0x4442e5=_0x4c0769['getItems']()['filter'](_0x597ddb=>_0x597ddb['is']('$textProxy'))['map'](_0x46ac60=>_0x46ac60['data']);if(_0x4442e5['length'])return{'type':'insertion','content':getTranslation$1(_0x28fe36,'*Insert:*\x20%0',getTranslation$1(_0x28fe36,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4442e5['join']('\x20')+'\x22'))};}if('deletion'==_0x4c0769['type']){const _0x185503=_0x4c0769['getItems']()['filter'](_0x44dabc=>_0x44dabc['is']('$textProxy'))['map'](_0x3f32ff=>_0x3f32ff['data']);if(_0x185503['length'])return{'type':'deletion','content':getTranslation$1(_0x28fe36,'*Remove:*\x20%0',getTranslation$1(_0x28fe36,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x185503['join']('\x20')+'\x22'))};}}}),_0x575b8f['descriptionFactory']['registerDescriptionCallback'](_0x2126cf=>{if('tableRow'==_0x2126cf['subType']){const _0x28cd86=_0x2126cf['getItems']()['filter'](_0x21c013=>_0x21c013['is']('$textProxy'))['map'](_0x2a3b61=>_0x2a3b61['data']),_0x26fb70=this['_getSuggestionCoords'](_0x2126cf),_0x4a16dc=_0x26fb70['maxRow']-_0x26fb70['minRow']+0x1;if('insertion'==_0x2126cf['type'])return _0x28cd86['length']?{'type':'insertion','content':getTranslation$1(_0x28fe36,'*Insert:*\x20%0',getTranslation$1(_0x28fe36,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4a16dc,'\x22'+_0x28cd86['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$1(_0x28fe36,'*Insert:*\x20%0',getTranslation$1(_0x28fe36,'ELEMENT_TABLE_ROW',_0x4a16dc))};if('deletion'==_0x2126cf['type'])return _0x28cd86['length']?{'type':'deletion','content':getTranslation$1(_0x28fe36,'*Remove:*\x20%0',getTranslation$1(_0x28fe36,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4a16dc,'\x22'+_0x28cd86['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$1(_0x28fe36,'*Remove:*\x20%0',getTranslation$1(_0x28fe36,'ELEMENT_TABLE_ROW',_0x4a16dc))};}if('tableColumn'==_0x2126cf['subType']){const _0x12fb7d=_0x2126cf['getItems']()['filter'](_0x5b1cbd=>_0x5b1cbd['is']('$textProxy'))['map'](_0x32727c=>_0x32727c['data']),_0x248f57=this['_getSuggestionCoords'](_0x2126cf),_0x1cf2cf=_0x248f57['maxColumn']-_0x248f57['minColumn']+0x1;if('insertion'==_0x2126cf['type'])return _0x12fb7d['length']?{'type':'insertion','content':getTranslation$1(_0x28fe36,'*Insert:*\x20%0',getTranslation$1(_0x28fe36,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1cf2cf,'\x22'+_0x12fb7d['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$1(_0x28fe36,'*Insert:*\x20%0',getTranslation$1(_0x28fe36,'ELEMENT_TABLE_COLUMN',_0x1cf2cf))};if('deletion'==_0x2126cf['type'])return _0x12fb7d['length']?{'type':'deletion','content':getTranslation$1(_0x28fe36,'*Remove:*\x20%0',getTranslation$1(_0x28fe36,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1cf2cf,'\x22'+_0x12fb7d['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$1(_0x28fe36,'*Remove:*\x20%0',getTranslation$1(_0x28fe36,'ELEMENT_TABLE_COLUMN',_0x1cf2cf))};}}),_0x575b8f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x579344),_0x575b8f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x579344),_0x575b8f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x483757),_0x575b8f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x483757),_0x575b8f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x17cacc),_0x575b8f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x17cacc),_0x575b8f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x39e5d8),_0x575b8f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x39e5d8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x28feea=this['editor'],_0x356ee2=_0x28feea['model']['document']['selection'];return(_0x279307,_0x4887de)=>{_0x28feea['model']['change'](_0x4310ed=>{const {commandName:_0x3c8b79,commandParams:_0x4ef9f3}=_0x4887de;let _0x5b3ff1=_0x279307[0x0]['end']['nodeBefore'];_0x4ef9f3&&_0x4ef9f3[0x0]&&!0x1===_0x4ef9f3[0x0]['forceValue']&&(_0x5b3ff1=_0x279307[0x0]['start']['nodeAfter']);const _0x455b8=_0x4310ed['createRangeIn'](_0x5b3ff1);if('$graveyard'==_0x455b8['root']['rootName'])return;const _0x49ca36=Array['from'](_0x356ee2['getRanges']())['map'](_0x3b8211=>ModelLiveRange['fromRange'](_0x3b8211));_0x4310ed['setSelection'](_0x455b8),_0x28feea['commands']['get'](_0x3c8b79)['refresh'](),_0x4ef9f3['push']({'forceDefaultExecution':!0x0}),_0x28feea['execute'](_0x3c8b79,..._0x4ef9f3);const _0x13de80=_0x49ca36['filter'](_0x30fcea=>'$graveyard'!=_0x30fcea['root']['rootName']);_0x13de80['length']>0x0&&_0x4310ed['setSelection'](_0x13de80);for(const _0x441ebe of _0x49ca36)_0x441ebe['detach']();});};}['_getCoordsForCells'](_0x18cbd9){const _0x16515b=this['editor']['plugins']['get']('TableUtils');let _0x597d83=Number['MAX_SAFE_INTEGER'],_0x379cd6=Number['MIN_SAFE_INTEGER'],_0xfb1706=Number['MAX_SAFE_INTEGER'],_0xd4793=Number['MIN_SAFE_INTEGER'];for(const _0x2157d6 of _0x18cbd9){if('$graveyard'==_0x2157d6['root']['rootName'])continue;const {row:_0x4bc23b,column:_0x6a949e}=_0x16515b['getCellLocation'](_0x2157d6),_0x3ea847=_0x2157d6['hasAttribute']('rowspan')?_0x2157d6['getAttribute']('rowspan')-0x1:0x0,_0x376be8=_0x2157d6['hasAttribute']('colspan')?_0x2157d6['getAttribute']('colspan')-0x1:0x0;_0x597d83=_0x4bc23b<_0x597d83?_0x4bc23b:_0x597d83,_0x379cd6=_0x4bc23b+_0x3ea847>_0x379cd6?_0x4bc23b+_0x3ea847:_0x379cd6,_0xfb1706=_0x6a949e<_0xfb1706?_0x6a949e:_0xfb1706,_0xd4793=_0x6a949e+_0x376be8>_0xd4793?_0x6a949e+_0x376be8:_0xd4793;}return{'minRow':_0x597d83,'maxRow':_0x379cd6,'minColumn':_0xfb1706,'maxColumn':_0xd4793};}['_setupColumnsRowsFixing'](){const _0x469f36=this['editor'],_0x2bb448=_0x469f36['plugins']['get']('TrackChangesEditing'),_0x5e90a3=_0x469f36['plugins']['get']('TableUtils');_0x469f36['model']['document']['on']('change:data',()=>{const _0x4f82ab=Array['from'](_0x469f36['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5102b3,data:_0x5e184d}of _0x4f82ab){const {group:_0x32b862,id:_0x1eef65,subType:_0x41eadd}=_0x2bb448['_splitMarkerName'](_0x5102b3);if('suggestion'!=_0x32b862)continue;if(null!=_0x5e184d['oldRange'])continue;const _0x1e0046=_0x2bb448['getSuggestion'](_0x1eef65);this['_tablePostFixingSubtypes']['includes'](_0x41eadd)&&this['_tableSuggestions']['add'](_0x1e0046);}},{'priority':'low'});const _0x291c6a=(_0x518389,_0x2b73a0)=>{let _0x3d62ee=!0x1;const _0x4be816=_0x2b73a0['createRangeOn'](_0x518389),_0x4570a2=_0x518389['findAncestor']('table'),_0x33a5ae=_0x5e90a3['getCellLocation'](_0x518389);for(const _0x4542fb of this['_tableSuggestions']){const _0xc8d21=_0x4542fb['subType'],_0x3e7f62=_0xc8d21['startsWith']('tablePaste'),_0x54948e=_0xc8d21['substr'](_0x3e7f62?0xa:0x5),_0x1c2aef=_0x54948e['toLowerCase'](),_0x457cb1=_0x1c2aef['substr'](0x0,0x3)+'span',_0x48ee66='min'+_0x54948e,_0x22a87b='max'+_0x54948e;if(!_0x4542fb['isInContent'])continue;if(_0x4570a2!=_0x4542fb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4542fb['isIntersectingWithRange'](_0x4be816))continue;const _0x14073d=_0x518389['hasAttribute'](_0x457cb1)?_0x518389['getAttribute'](_0x457cb1)-0x1:0x0,_0x14779d=this['_getSuggestionCoords'](_0x4542fb),_0x4e1ee0=_0x14779d[_0x48ee66],_0x25d93b=_0x14779d[_0x22a87b];_0x4e1ee0<=_0x33a5ae[_0x1c2aef]&&_0x33a5ae[_0x1c2aef]+_0x14073d<=_0x25d93b&&(_0x4542fb['addRange'](_0x4be816),_0x3d62ee=!0x0);}return _0x3d62ee;};_0x469f36['model']['document']['registerPostFixer'](_0x1ffb62=>{let _0x4da46c=!0x1;for(const _0x3bdbc8 of _0x469f36['model']['document']['differ']['getChanges']())if('insert'==_0x3bdbc8['type']){if('tableRow'==_0x3bdbc8['name']){for(const _0x573a7d of _0x3bdbc8['position']['nodeAfter']['getChildren']())_0x4da46c=_0x4da46c||_0x291c6a(_0x573a7d,_0x1ffb62);}else'tableCell'==_0x3bdbc8['name']&&(_0x4da46c=_0x4da46c||_0x291c6a(_0x3bdbc8['position']['nodeAfter'],_0x1ffb62));}return _0x4da46c;});}['_getSuggestionCoords'](_0x51682c){return this['_getCoordsForCells'](_0x51682c['getRanges']()['map'](_0x502736=>_0x502736['start']['nodeAfter']));}}function uniqueValues(_0xe5c8cf){return Array['from'](new Set(_0xe5c8cf)['values']());}class TrackChangesTableMergeSplit extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x5f1284=this['editor'],_0x182374=_0x5f1284['model']['document']['selection'],_0x1fa822=_0x5f1284['locale'];if(!_0x5f1284['plugins']['has']('TableEditing'))return;const _0x17b894=_0x5f1284['plugins']['get']('TrackChangesEditing'),_0x1066eb=_0x5f1284['plugins']['get']('TableUtils'),_0x381070=_0x5f1284['plugins']['get'](TrackChangesTable);_0x381070['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x17b894['enableCommand']('mergeTableCells',()=>{const _0x11b3c2=_0x1066eb['getSelectionAffectedTableCells'](_0x5f1284['model']['document']['selection']);_0x5f1284['model']['change'](()=>{_0x17b894['markMultiRangeBlockFormat'](_0x11b3c2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5f1284['commands']['get']('mergeTableCells')['on']('execute',(_0x52f7e3,_0x5a3c21)=>{_0x5f1284['commands']['get']('trackChanges')['value']&&(_0x5a3c21['length']>0x0&&_0x5a3c21[_0x5a3c21['length']-0x1]&&_0x5a3c21[_0x5a3c21['length']-0x1]['forceDefaultExecution']||_0x17b894['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x52f7e3['stop']());},{'priority':'highest'});for(const _0x4b47e1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1c5836=_0x5f1284['commands']['get'](_0x4b47e1);_0x17b894['enableCommand'](_0x4b47e1,()=>{const _0x14556e=_0x5f1284['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f8cc4=>_0x4f8cc4['is']('element','tableCell')),_0x2d20d0=_0x1c5836['value'];_0x5f1284['model']['change'](()=>{_0x17b894['markMultiRangeBlockFormat']([_0x14556e,_0x2d20d0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x16156c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5ac2f5=_0x5f1284['commands']['get'](_0x16156c);_0x17b894['enableCommand'](_0x16156c,()=>{const _0x59c6f6=_0x1066eb['getSelectionAffectedTableCells'](_0x5f1284['model']['document']['selection'])[0x0],_0x332903=_0x59c6f6['findAncestor']('table'),{column:_0x5115f8,row:_0x28e6d6}=_0x1066eb['getCellLocation'](_0x59c6f6);let _0x229e8b=[];if('horizontally'==_0x5ac2f5['direction']){const _0x30a1a5=_0x1066eb['createTableWalker'](_0x332903,{'startRow':_0x28e6d6,'endRow':_0x28e6d6,'includeAllSlots':!0x0});_0x229e8b=Array['from'](_0x30a1a5)['map'](_0x1e0868=>_0x1e0868['cell']);}else{const _0x5bbc9f=_0x1066eb['createTableWalker'](_0x332903,{'column':_0x5115f8,'includeAllSlots':!0x0});_0x229e8b=Array['from'](_0x5bbc9f)['map'](_0x31a4e7=>_0x31a4e7['cell']);}_0x5f1284['model']['change'](_0x597f47=>{_0x17b894['markBlockFormat'](_0x597f47['createRangeOn'](_0x59c6f6),{'commandName':_0x16156c,'commandParams':[]},_0x229e8b,_0x16156c);});});}_0x17b894['descriptionFactory']['registerDescriptionCallback'](_0x59942d=>{if('formatBlock'!=_0x59942d['type']&&'formatInline'!=_0x59942d['type'])return;const {data:_0x4c8690}=_0x59942d;return _0x4c8690&&'mergeTableCells'==_0x4c8690['commandName']?{'type':'format','content':getTranslation$1(_0x1fa822,'*Merge\x20cells*')}:void 0x0;}),_0x17b894['descriptionFactory']['registerDescriptionCallback'](_0x402354=>{if('formatBlock'!=_0x402354['type']&&'formatInline'!=_0x402354['type'])return;const {data:_0x845561}=_0x402354;return _0x845561?'splitTableCellVertically'==_0x845561['commandName']?{'type':'format','content':getTranslation$1(_0x1fa822,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x845561['commandName']?{'type':'format','content':getTranslation$1(_0x1fa822,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1f85b6=_0x381070['_acceptFormatSuggestionCallbackFactory']();for(const _0x5dee80 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x17b894['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5dee80,'accept',_0x1f85b6);for(const _0x454acc of['splitTableCellVertically','splitTableCellHorizontally'])_0x17b894['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x454acc,'accept',_0x1f85b6);_0x17b894['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5f591f=>{_0x5f1284['model']['change'](_0x347543=>{const _0x1fc8fa=Array['from'](_0x182374['getRanges']())['map'](_0xed70dd=>ModelLiveRange['fromRange'](_0xed70dd));_0x347543['setSelection'](_0x5f591f),_0x5f1284['commands']['get']('mergeTableCells')['refresh'](),_0x5f1284['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3017d5=_0x1fc8fa['filter'](_0x893b89=>'$graveyard'!=_0x893b89['root']['rootName']);_0x3017d5['length']>0x0&&_0x347543['setSelection'](_0x3017d5);for(const _0x19260f of _0x1fc8fa)_0x19260f['detach']();});});for(const _0xf22980 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x71f08a=_0x5f1284['commands']['get'](_0xf22980);_0x71f08a['on']('set:isEnabled',(_0x289a86,_0x20bc4d,_0x17b0cd)=>{if(_0x17b0cd){const _0x88b674=_0x5f1284['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e2f4f=>_0x2e2f4f['is']('element','tableCell'));this['_areMergableCells'](_0x71f08a['value'],_0x88b674)||(_0x289a86['return']=!0x1,_0x289a86['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xea3272=this['editor']['commands']['get']('mergeTableCells'),_0x402f91=this['editor']['plugins']['get']('TableUtils');if(!_0xea3272['isEnabled'])return!0x1;const _0x2d36bb=_0x402f91['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x359a58 of _0x2d36bb)for(const _0x539062 of _0x2d36bb)if(_0x359a58!=_0x539062&&!this['_areMergableCells'](_0x359a58,_0x539062))return!0x1;return!0x0;}['_areMergableCells'](_0x4cd7d1,_0x3cc08d){const _0x2b9f6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36a8f5=this['editor']['model']['createRangeOn'](_0x4cd7d1),_0x102945=this['editor']['model']['createRangeOn'](_0x3cc08d),_0x78762c=new Set(),_0x12278c=new Set();for(const _0x5d870d of _0x2b9f6b['getSuggestions']())if(('insertion'==_0x5d870d['type']||'deletion'==_0x5d870d['type']||'mergeTableCells'==_0x5d870d['subType'])&&_0x5d870d['isInContent']){for(const _0x257d08 of _0x5d870d['getRanges']())_0x257d08['containsRange'](_0x36a8f5,!0x0)&&_0x78762c['add'](_0x5d870d['type']+':'+_0x5d870d['author']['id']),_0x257d08['containsRange'](_0x102945,!0x0)&&_0x12278c['add'](_0x5d870d['type']+':'+_0x5d870d['author']['id']);}if(_0x78762c['size']!=_0x12278c['size'])return!0x1;for(const _0x270bc8 of _0x78762c)if(!_0x12278c['has'](_0x270bc8))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x5db102=this['editor'];if(!_0x5db102['plugins']['has']('TableEditing'))return;const _0x196b52=_0x5db102['locale'],_0x13a0df=_0x5db102['plugins']['get']('TrackChangesEditing');_0x13a0df['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x13a0df['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x13a0df['descriptionFactory']['registerAttributeLabel']('headingRows',getTranslation$1(_0x196b52,'FORMAT_HEADER_ROW')),_0x13a0df['descriptionFactory']['registerAttributeLabel']('headingColumns',getTranslation$1(_0x196b52,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x402301=this['editor']['plugins']['get']('TrackChangesEditing'),_0x214a4e=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x402301['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x214a4e),_0x402301['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x214a4e),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x5368e3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x504ef5=this['editor']['plugins']['get']('TableUtils');function _0x26e4d6({showActiveMarker:_0x30ec54=!0x0,setDataAttribute:_0x576626=!0x0}={}){return(_0x13f89e,_0x55fef4,_0x2f919a)=>{const {type:_0x208f18,id:_0x5ee597}=_0x5368e3['_splitMarkerName'](_0x55fef4['markerName']);if(!_0x5368e3['hasSuggestion'](_0x5ee597))return;const _0x5f2c89=_0x5368e3['getSuggestion'](_0x5ee597),_0x3270b6=_0x5f2c89['data'];if('formatBlock'!=_0x5f2c89['type']||!_0x3270b6||'setTableColumnHeader'!=_0x3270b6['commandName'])return;if(_0x55fef4['item'])return void _0x13f89e['stop']();if(!_0x2f919a['consumable']['consume'](_0x55fef4['markerRange'],_0x13f89e['name']))return;const _0x509621=_0x55fef4['markerRange']['start']['nodeAfter'],_0xd384a2=_0x55fef4['markerRange']['end']['nodeBefore'],_0x4cc2e6=_0x509621['parent']['parent'],{column:_0x42b4f6}=_0x504ef5['getCellLocation'](_0x509621),{column:_0x165f12}=_0x504ef5['getCellLocation'](_0xd384a2);for(let _0x392ed8=_0x42b4f6;_0x392ed8<=_0x165f12;_0x392ed8++){const _0x40fa9d=_0x504ef5['createTableWalker'](_0x4cc2e6,{'column':_0x392ed8,'includeAllSlots':!0x1});for(const _0xd5045d of _0x40fa9d){const _0x152e6d=_0xd5045d['cell'],_0x451e4f=_0x2f919a['mapper']['toViewElement'](_0x152e6d);_0x2f919a['writer']['addClass']('ck-suggestion-marker-'+_0x208f18,_0x451e4f),_0x576626&&_0x2f919a['writer']['setAttribute']('data-suggestion',_0x5ee597,_0x451e4f),_0x2f919a['mapper']['bindElementToMarker'](_0x451e4f,_0x55fef4['markerName']),_0x30ec54&&(_0x5368e3['activeMarkers']['includes'](_0x55fef4['markerName'])?_0x2f919a['writer']['addClass']('ck-suggestion-marker--active',_0x451e4f):_0x2f919a['writer']['removeClass']('ck-suggestion-marker--active',_0x451e4f));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x26e4d6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x43f37c,_0x46ee7b,_0x49fc58)=>{_0x49fc58['options']['showSuggestionHighlights']&&_0x26e4d6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x43f37c,_0x46ee7b,_0x49fc58);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1aa13d,_0x33712f,_0x450ff9)=>{const {type:_0x548ad5,id:_0x295f4e}=_0x5368e3['_splitMarkerName'](_0x33712f['markerName']);if(!_0x5368e3['hasSuggestion'](_0x295f4e))return;const _0x3728f5=_0x5368e3['getSuggestion'](_0x295f4e),_0x547513=_0x3728f5['data'];if('formatBlock'!=_0x3728f5['type']||!_0x547513||'setTableColumnHeader'!=_0x547513['commandName'])return;const _0x3022e6=_0x450ff9['mapper']['markerNameToElements'](_0x33712f['markerName']);if(_0x3022e6){for(const _0x4e2811 of _0x3022e6)_0x450ff9['writer']['removeClass']('ck-suggestion-marker-'+_0x548ad5,_0x4e2811),_0x450ff9['writer']['removeClass']('ck-suggestion-marker--active',_0x4e2811),_0x450ff9['writer']['removeAttribute']('data-suggestion',_0x4e2811),_0x450ff9['mapper']['unbindElementFromMarkerName'](_0x4e2811,_0x33712f['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x401d60=this['editor'],_0x1bceb2=_0x401d60['locale'];function _0x1755e3(_0x3ccf31){return{'type':'format','content':getTranslation$1(_0x1bceb2,'*Format:*\x20%0',_0x3ccf31)};}_0x401d60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58b88e=>{if('formatBlock'!=_0x58b88e['type'])return;const {data:_0x44483b}=_0x58b88e;if(_0x44483b){if('setTableRowHeader'==_0x44483b['commandName']){const _0xe9a396=_0x44483b['commandParams'][0x0]['forceValue'];return _0x1755e3(getTranslation$1(_0x1bceb2,_0xe9a396?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x44483b['commandName']){const _0x2013d2=_0x44483b['commandParams'][0x0]['forceValue'];return _0x1755e3(getTranslation$1(_0x1bceb2,_0x2013d2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableLayout extends Plugin{['afterInit'](){const _0x7eadd5=this['editor'],_0x4e2647=_0x7eadd5['locale'],_0x5927b8=_0x7eadd5['plugins']['get']('TrackChangesEditing');function _0x989dd2(_0xbe87d7){return{'type':'format','content':''+getTranslation$1(_0x4e2647,'*Set\x20table\x20type:*\x20%0',_0xbe87d7)};}_0x7eadd5['plugins']['has']('TableLayout')&&(_0x5927b8['enableCommand']('insertTableLayout'),_0x5927b8['enableDefaultAttributesIntegration']('tableType'),_0x5927b8['descriptionFactory']['registerElementLabel'](_0x5e6aab=>_0x5e6aab['is']('element','table')&&'layout'===_0x5e6aab['getAttribute']('tableType'),_0x1facef=>getTranslation$1(_0x4e2647,'ELEMENT_LAYOUT_TABLE',_0x1facef)),_0x5927b8['descriptionFactory']['registerDescriptionCallback'](_0x5ffcbb=>{const {data:_0xa2efd5}=_0x5ffcbb;if(_0xa2efd5&&'tableType'==_0xa2efd5['key'])switch(_0xa2efd5['newValue']){case'layout':return _0x989dd2(getTranslation$1(_0x4e2647,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x989dd2(getTranslation$1(_0x4e2647,'ELEMENT_CONTENT_TABLE'));}}));}}const tableCellStyleAttributeNames=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],tableCellStyleAttributesObject=/* #__PURE__ -- @preserve */
Object['fromEntries'](tableCellStyleAttributeNames['map'](_0x12b474=>[_0x12b474,null]));class TrackChangesTableClipboard extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x1923b7=this['editor'];if(!_0x1923b7['plugins']['has']('TableClipboard'))return;const _0x110ce0=_0x1923b7['plugins']['get']('TrackChangesEditing'),_0x491fd5=_0x1923b7['plugins']['get']('TableUtils'),_0x1dcb78=_0x1923b7['plugins']['get'](TrackChangesTable),_0x16a2d4=_0x1923b7['plugins']['get']('TableClipboard'),_0x1f2be5=_0x1923b7['plugins']['get']('TableSelection'),_0x213fb0=_0x1923b7['plugins']['get'](ClipboardPipeline);_0x1dcb78['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1923b7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1923b7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xa61e96=null,_0xdb8831=!0x1;_0x213fb0['on']('contentInsertion',(_0x1477d7,_0x155a34)=>{_0xdb8831='paste'===_0x155a34['method'];}),_0x1923b7['model']['on']('insertContent',(_0x2e5ccc,_0x1fd5ed)=>{if(!_0xdb8831&&null===_0x1f2be5['getSelectedTableCells']())return;const [_0x121a4b,_0xb0ba4]=_0x1fd5ed,_0x5c026f=_0x1fd5ed[_0x1fd5ed['length']-0x1];_0x5c026f&&_0x5c026f['forceDefaultExecution']||_0x110ce0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&isPasteTableIntoTable(_0x121a4b,_0xb0ba4,_0x1923b7['model'],_0x491fd5,_0x16a2d4)&&(_0x2e5ccc['stop'](),_0xa61e96={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1923b7['model']['change'](()=>{_0x1923b7['model']['insertContent'](_0x1fd5ed[0x0],_0x1fd5ed[0x1],_0x1fd5ed[0x2],{'forceDefaultExecution':!0x0});const _0x557e54=uid(),{rowInsertionRanges:_0x1b0e0e,columnInsertionRanges:_0x2b06c9,insertionRanges:_0x4bbb3b,deletionRanges:_0xfb66c7,cells:_0x11a64e}=_0xa61e96;_0x1b0e0e['length']&&_0x110ce0['markMultiRangeInsertion'](_0x1b0e0e,'tablePasteRow',{'tablePasteChainId':_0x557e54}),_0x2b06c9['length']&&_0x110ce0['markMultiRangeInsertion'](_0x2b06c9,'tablePasteColumn',{'tablePasteChainId':_0x557e54}),_0x4bbb3b['length']&&(_0x110ce0['markMultiRangeInsertion'](_0x4bbb3b,'tablePaste',{'tablePasteChainId':_0x557e54,'skipNestingCheck':!0x0}),_0x4bbb3b['forEach'](_0x5cb8b1=>_0x5cb8b1['detach']?.())),_0xfb66c7['length']&&(_0x110ce0['markMultiRangeDeletion'](_0xfb66c7,'tablePaste',{'tablePasteChainId':_0x557e54,'skipNestingCheck':!0x0}),_0xfb66c7['forEach'](_0x24db76=>_0x24db76['detach']?.()));const _0x18b8a6=_0x110ce0['markMultiRangeBlockFormat'](_0x11a64e['map'](({element:_0x43fc6b})=>_0x43fc6b),{'formatGroupId':uid()},[],'tablePasteCell',{'tablePasteChainId':_0x557e54});if(_0x18b8a6){const _0x548d51=_0x18b8a6['getMarkers'](),_0x5805ee=[];for(const {element:_0x1e7e09,attributes:_0x3aeb75}of _0x11a64e){if(!_0x3aeb75)continue;const _0x18594d=_0x1923b7['model']['createRangeOn'](_0x1e7e09),_0x24519d=_0x548d51['find'](_0x3eb304=>_0x3eb304['getRange']()['isEqual'](_0x18594d));_0x24519d&&_0x5805ee['push']([_0x24519d['name'],_0x3aeb75]);}_0x5805ee['length']&&_0x18b8a6['setAttribute']('markerAttributes',Object['fromEntries'](_0x5805ee));}_0xa61e96=null;}));},{'priority':priorities['high']+0xa}),_0x213fb0['on']('contentInsertion',()=>{_0xdb8831=!0x1;},{'priority':'lowest'}),_0x1923b7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x237718,_0xd7504)=>{const [_0x366a99,_0x154756,,_0x17e2bb]=_0xd7504;if(!_0xa61e96)return;_0x237718['stop']();const _0x25fe46=_0x366a99['cell'],_0x15632c=_0x154756,_0x40f551=isEmpty(_0x25fe46),_0xf2dede=isEmpty(_0x15632c);_0x237718['return']=_0x25fe46;let _0x409dcf=null,_0x268278=null;if(_0xf2dede||_0x40f551){if(_0x40f551&&!_0xf2dede){_0x17e2bb['remove'](_0x25fe46['getChild'](0x0));for(const _0x3ce88b of Array['from'](_0x15632c['getChildren']()))_0x17e2bb['insert'](_0x3ce88b,_0x25fe46,'end');const _0x218039=_0xa61e96['rowInsertionIndexes']['includes'](_0x366a99['row']),_0x4906a7=_0xa61e96['columnInsertionIndexes']['includes'](_0x366a99['column']);_0x218039||_0x4906a7||(_0x409dcf=ModelLiveRange['fromRange'](_0x17e2bb['createRangeIn'](_0x25fe46)));}else _0xf2dede&&!_0x40f551&&(_0x268278=_0x17e2bb['createRangeIn'](_0x25fe46));}else{const _0x4a7452=_0x17e2bb['createElement']('tableCellSuggestion'),_0x201096=_0x17e2bb['createElement']('tableCellSuggestion');_0x17e2bb['wrap'](_0x17e2bb['createRangeIn'](_0x25fe46),_0x201096),_0x17e2bb['insert'](_0x4a7452,_0x25fe46,0x0);for(const _0x136966 of Array['from'](_0x15632c['getChildren']()))_0x17e2bb['insert'](_0x136966,_0x4a7452,'end');_0x409dcf=ModelLiveRange['fromRange'](_0x17e2bb['createRangeOn'](_0x4a7452)),_0x268278=ModelLiveRange['fromRange'](_0x17e2bb['createRangeOn'](_0x201096));}const _0x5f22cd=Array['from'](_0x15632c['getAttributes']())['filter'](([_0x2ffe10])=>tableCellStyleAttributeNames['includes'](_0x2ffe10));_0xa61e96['cells']['push']({'element':_0x25fe46,'attributes':_0x5f22cd['length']?Object['fromEntries'](_0x5f22cd):null}),_0x409dcf&&_0xa61e96['insertionRanges']['push'](_0x409dcf),_0x268278&&_0xa61e96['deletionRanges']['push'](_0x268278);},{'priority':'high'}),_0x491fd5['on']('insertColumns',(_0x1bfc73,_0x73d021)=>{const [_0x7fdf38,_0x57e8b5={}]=_0x73d021;if(!_0xa61e96)return;const _0x472e7e=_0x57e8b5['at']||0x0,_0x5281ba=_0x57e8b5['columns']||0x1;_0xa61e96['columnInsertionIndexes']=new Array(_0x5281ba)['fill'](_0x472e7e)['map']((_0xf688a6,_0x4dbae7)=>_0xf688a6+_0x4dbae7);for(const {cell:_0x504a00}of _0x491fd5['createTableWalker'](_0x7fdf38,{'startColumn':_0x472e7e,'endColumn':_0x472e7e+_0x5281ba-0x1}))_0xa61e96['columnInsertionRanges']['push'](_0x1923b7['model']['createRangeOn'](_0x504a00));},{'priority':'low'}),_0x491fd5['on']('insertRows',(_0x5011d3,_0x558c95)=>{const [_0x35e731,_0x4a2181={}]=_0x558c95;if(!_0xa61e96)return;const _0x3f2303=_0x4a2181['at']||0x0,_0x250254=_0x4a2181['rows']||0x1;_0xa61e96['rowInsertionIndexes']=new Array(_0x250254)['fill'](_0x3f2303)['map']((_0xfdf836,_0x57c053)=>_0xfdf836+_0x57c053);for(const {cell:_0x51ca07}of _0x491fd5['createTableWalker'](_0x35e731,{'startRow':_0x3f2303,'endRow':_0x3f2303+_0x250254-0x1}))_0xa61e96['rowInsertionRanges']['push'](_0x1923b7['model']['createRangeOn'](_0x51ca07));},{'priority':'low'}),_0x110ce0['descriptionFactory']['registerDescriptionCallback'](_0x25af27=>{if(_0x25af27['subType']&&_0x25af27['subType']['startsWith']('tablePaste'))return _0x25af27['previous']?{}:{'type':'insertion','content':getTranslation$1(_0x1923b7['locale'],'*Replace\x20table\x20cells*')};});const _0x576266=()=>!0x1;for(const _0x3e1e5f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x110ce0['_suggestionFactory']['registerCustomCallback']('insertion',_0x3e1e5f,'join',_0x576266),_0x110ce0['_suggestionFactory']['registerCustomCallback']('deletion',_0x3e1e5f,'join',_0x576266),_0x110ce0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e1e5f,'join',_0x576266);_0x110ce0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x576266),_0x110ce0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x43e35a,_0x4050d9,_0x4bbcfb)=>{const _0x19dd9c=_0x43e35a['map'](_0x221895=>_0x221895['getContainedElement']())['filter'](_0x15151c=>_0x15151c),_0x4f0928=new Map(_0x19dd9c['map'](_0x3dbcc0=>[_0x3dbcc0,null]));if(_0xa61e96){for(const {element:_0x337cb5,attributes:_0x30505c}of _0xa61e96['cells'])_0x30505c&&_0x4f0928['set'](_0x337cb5,_0x30505c);}else{if(_0x4bbcfb&&_0x4bbcfb['markerAttributes'])for(const [_0x128561,_0x417ae9]of Object['entries'](_0x4bbcfb['markerAttributes'])){const _0x3d3894=_0x1923b7['model']['markers']['get'](_0x128561),_0x4513d7=_0x3d3894?_0x3d3894['getRange']()['getContainedElement']():null;_0x4513d7&&_0x4f0928['set'](_0x4513d7,_0x417ae9);}}_0x1923b7['model']['change'](_0x111350=>{for(const [_0x5f6c8d,_0x4a40f7]of _0x4f0928)_0x111350['setAttributes']({...tableCellStyleAttributesObject,..._0x4a40f7},_0x5f6c8d);});});const _0x1949a7=(_0x4e4589,_0xdd6c6e)=>{_0x110ce0['_suggestionFactory']['registerCustomCallback'](_0x4e4589,'tablePaste',_0xdd6c6e,(_0x4a1851,_0xbdc35f,_0x29b842)=>{_0x1923b7['model']['change'](_0x20397f=>{const _0x36480f=[];for(const _0x2e68b3 of _0x4a1851){const _0x221579=_0x2e68b3['start']['nodeAfter'];_0x221579['is']('element','tableCellSuggestion')&&_0x36480f['push'](_0x221579);}_0x110ce0['_suggestionFactory']['getSuggestionCallback'](_0x4e4589,null,_0xdd6c6e)(_0x4a1851,_0xbdc35f,_0x29b842);for(const _0x103104 of _0x36480f)'$graveyard'!=_0x103104['root']['rootName']&&_0x20397f['unwrap'](_0x103104);});});};_0x1949a7('insertion','accept'),_0x1949a7('insertion','discard'),_0x1949a7('deletion','accept'),_0x1949a7('deletion','discard'),_0x110ce0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x161d7c=>{const _0x257622=_0x161d7c['map'](_0x203e35=>_0x203e35['getContainedElement']()),_0x127c40=_0x257622[0x0]['findAncestor']('table'),{minRow:_0x2dc272,maxRow:_0x35fbde}=_0x1dcb78['_getCoordsForCells'](_0x257622);_0x491fd5['removeRows'](_0x127c40,{'at':_0x2dc272,'rows':_0x35fbde-_0x2dc272+0x1});}),_0x110ce0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5e105d=>{const _0x30975d=_0x5e105d['map'](_0x2df88f=>_0x2df88f['getContainedElement']()),_0x50de06=_0x30975d[0x0]['findAncestor']('table'),{minColumn:_0x3ec5fb,maxColumn:_0x3db2e3}=_0x1dcb78['_getCoordsForCells'](_0x30975d);_0x491fd5['removeColumns'](_0x50de06,{'at':_0x3ec5fb,'columns':_0x3db2e3-_0x3ec5fb+0x1});});const _0x1afe41=(_0x3f20cf,_0x527541)=>{if(!_0x527541['subType']||!_0x527541['subType']['startsWith']('tablePaste'))return;const _0xb9af30=_0x527541['attributes']['tablePasteChainId'],_0x58b358=_0x110ce0['getSuggestions']()['filter'](_0xf91aad=>_0xf91aad['isInContent']&&_0xf91aad['attributes']&&_0xf91aad['attributes']['tablePasteChainId']==_0xb9af30);_0x58b358['length']&&_0x527541['getAllAdjacentSuggestions']()['length']!=_0x58b358['length']&&_0x58b358['reduce']((_0x2c648a,_0x14c012)=>(_0x2c648a['next']=_0x14c012,_0x14c012['previous']=_0x2c648a,_0x14c012));};function _0x1c1a7b(_0x49c5ff,_0x218ff3=!0x0){const {id:_0x15a118,authorId:_0x5a36ca}=_0x110ce0['_splitMarkerName'](_0x49c5ff['markerName']),_0x1e3197=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1794e3=_0x110ce0['activeMarkers']['includes'](_0x49c5ff['markerName']);return _0x1794e3&&_0x1e3197['push']('ck-suggestion-marker--active'),{'classes':_0x1e3197,'attributes':{'data-suggestion':_0x15a118,'data-author-id':_0x5a36ca},'priority':_0x1794e3&&_0x218ff3?0xbc2:0xbb8};}_0x110ce0['on']('suggestionLoaded',_0x1afe41,{'priority':'high'}),_0x110ce0['on']('suggestionUnloaded',_0x1afe41,{'priority':'high'}),_0x1923b7['model']['document']['registerPostFixer'](()=>{let _0x589fc9=!0x1;const _0x51d246=Array['from'](_0x1923b7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ec238,data:_0x106fef}of _0x51d246){const {group:_0x1ae962,type:_0x159fb1,id:_0x4bd57a}=_0x110ce0['_splitMarkerName'](_0x2ec238);if('suggestion'!=_0x1ae962||'deletion'!=_0x159fb1||_0x106fef['oldRange'])continue;if(!_0x110ce0['hasSuggestion'](_0x4bd57a))continue;const _0x4e748d=_0x110ce0['getSuggestion'](_0x4bd57a)['getRanges'](),_0x1f916b=_0x1923b7['plugins']['get']('Users')['me'];for(const _0x24263b of _0x110ce0['getSuggestions']()){if(!_0x24263b['isInContent']||_0x24263b['author']!=_0x1f916b)continue;if('formatBlock'!=_0x24263b['type']||'tablePasteCell'!=_0x24263b['subType'])continue;if(_0x24263b['getRanges']()['every'](_0x331d3f=>_0x4e748d['some'](_0x19c271=>_0x19c271['containsRange'](_0x331d3f,!0x0)))){for(const _0xda736d of _0x24263b['getAllAdjacentSuggestions']())_0xda736d['isInContent']&&(_0xda736d['discard'](),_0x589fc9=!0x0);}}}return _0x589fc9;}),_0x1923b7['model']['document']['registerPostFixer'](_0x416959=>{const _0x433abc=_0x1923b7['commands']['get']('redo');if(!_0x433abc||!_0x433abc['_createdBatches']['has'](_0x416959['batch']))return!0x1;let _0x5b8684=!0x1;const _0x317b8f=_0x1923b7['plugins']['get']('Users')['me'],_0x193d20=_0x1923b7['model']['document']['differ']['getChanges'](),_0x8f1c86=Array['from'](_0x1923b7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3fb66b,data:_0x1ad793})=>{const {group:_0x9b815f,subType:_0x3757af,authorId:_0x4a32be}=_0x110ce0['_splitMarkerName'](_0x3fb66b);return'suggestion'==_0x9b815f&&'tablePaste'==_0x3757af&&_0x4a32be==_0x317b8f['id']&&!_0x1ad793['oldRange'];});for(const _0x2460fd of _0x193d20){if('insert'!=_0x2460fd['type']||'tableCellSuggestion'!=_0x2460fd['name']||0x1!=_0x2460fd['length'])continue;const _0xf1fe90=_0x416959['createRange'](_0x2460fd['position'],_0x2460fd['position']['getShiftedBy'](0x1)),_0x28fa5d=_0x8f1c86['find'](({data:_0x24e42a})=>_0x24e42a['newRange']['isEqual'](_0xf1fe90));if(!_0x28fa5d){for(const {name:_0x40cfdf,data:_0x495aa6}of _0x8f1c86)if(_0xf1fe90['containsRange'](_0x495aa6['newRange'])){_0x416959['updateMarker'](_0x40cfdf,{'range':_0xf1fe90}),_0x5b8684=!0x0;break;}}}return _0x5b8684;}),_0x1923b7['model']['document']['registerPostFixer'](_0x43d820=>{let _0x42e1a5=!0x1;const _0x337349=_0x1923b7['plugins']['get']('Users')['me'],_0x57df34=_0x110ce0['getSuggestions']()['filter'](_0x5bf5e0=>_0x5bf5e0['isInContent']&&_0x5bf5e0['author']==_0x337349),_0xef84fb=new Set(),_0x3792c2=new Set();for(const _0x298833 of _0x57df34)if('tablePaste'==_0x298833['subType'])for(const _0x271b49 of _0x298833['getMarkers']()){const _0x1993e8=_0x271b49['getRange']()['getContainedElement']();if(_0x1993e8){if(_0x1993e8['is']('element','tableCellSuggestion')&&isEmpty(_0x1993e8)){_0x298833['removeMarker'](_0x271b49['name']),_0xef84fb['add'](_0x1993e8),_0x42e1a5=!0x0;const _0x6944d9=_0x1993e8['nextSibling'],_0x6b027a=_0x1993e8['previousSibling'],_0x3d1728=_0x6944d9&&_0x6944d9['is']('element','tableCellSuggestion'),_0x81e38f=_0x6b027a&&_0x6b027a['is']('element','tableCellSuggestion');_0x3d1728&&!_0xef84fb['has'](_0x6944d9)&&_0x3792c2['add'](_0x6944d9),_0x81e38f&&!_0xef84fb['has'](_0x6b027a)&&_0x3792c2['add'](_0x6b027a);}else _0x1993e8['is']('element','paragraph')&&_0x1993e8['isEmpty']&&(_0x298833['removeMarker'](_0x271b49['name']),_0x42e1a5=!0x0);}}else{if('tablePasteCell'==_0x298833['subType']){if(!_0x298833['attributes']||!_0x298833['attributes']['tablePasteChainId'])continue;const _0x20de3b=_0x298833['attributes']['markerAttributes'];if(_0x20de3b&&Object['keys'](_0x20de3b)['length'])continue;const _0x4b2c2e=_0x298833['attributes']['tablePasteChainId'];let _0x454b95=!0x0,_0x404915=!0x0;for(const _0x38cec3 of _0x57df34)if(_0x38cec3['subType']&&_0x38cec3['subType']['startsWith']('tablePaste')){if(!_0x38cec3['attributes']['tablePasteChainId']){_0x404915=!0x1;break;}if(_0x38cec3['id']!=_0x298833['id']&&_0x38cec3['attributes']['tablePasteChainId']==_0x4b2c2e){_0x454b95=!0x1;break;}}_0x404915&&_0x454b95&&(_0x298833['removeMarkers'](),_0x42e1a5=!0x0);}}for(const _0x586542 of _0xef84fb)_0x43d820['remove'](_0x586542);for(const _0x3cfb12 of _0x3792c2)_0x43d820['unwrap'](_0x3cfb12);return _0x42e1a5;}),_0x1923b7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x283a14=>_0x1c1a7b(_0x283a14),'converterPriority':'high'}),_0x1923b7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x57eb66,_0x353e3a)=>_0x353e3a['options']['showSuggestionHighlights']?_0x1c1a7b(_0x57eb66,!0x1):null,'converterPriority':'high'});const _0x27b11a=_0x1923b7['editing']['view'];this['listenTo'](_0x27b11a['document'],'clipboardOutput',(_0x3790c6,_0x57777f)=>{const _0x5bfd8f=[];for(const _0x5ae46e of _0x27b11a['createRangeIn'](_0x57777f['content'])['getItems']())_0x5ae46e['is']('element','suggestion-td')&&_0x5bfd8f['push'](_0x5ae46e);_0x27b11a['change'](_0x16b406=>{for(const _0xab7a7f of _0x5bfd8f)_0x16b406['move'](_0x16b406['createRangeIn'](_0xab7a7f),_0x16b406['createPositionBefore'](_0xab7a7f)),_0x16b406['remove'](_0xab7a7f);});});}}function isEmpty(_0x179674){if(_0x179674['isEmpty'])return!0x0;const _0x264582=_0x179674['getChild'](0x0);return _0x264582['is']('element','paragraph')&&_0x264582['isEmpty'];}function isPasteTableIntoTable(_0x4482b9,_0x15c87c,_0x3825c5,_0x4ec3ed,_0x31a11c){if(_0x15c87c&&!_0x15c87c['is']('documentSelection'))return!0x1;const _0x14972e=_0x31a11c['getTableIfOnlyTableInContent'](_0x4482b9,_0x3825c5);if(!_0x14972e||!isPlainTable(_0x14972e,void 0x0,_0x4ec3ed))return!0x1;const _0x86f2c0=_0x4ec3ed['getSelectionAffectedTableCells'](_0x3825c5['document']['selection']);if(!_0x86f2c0['length'])return!0x1;const _0x39ad22=_0x86f2c0[0x0]['findAncestor']('table'),_0x588e9f=_0x4ec3ed['getRowIndexes'](_0x86f2c0),_0x87b45e=_0x4ec3ed['getColumnIndexes'](_0x86f2c0),_0x2ced5d={'startRow':_0x588e9f['first'],'endRow':_0x588e9f['last'],'startColumn':_0x87b45e['first'],'endColumn':_0x87b45e['last']};return 0x1==_0x86f2c0['length']&&(_0x2ced5d['endRow']+=_0x4ec3ed['getRows'](_0x14972e)-0x1,_0x2ced5d['endColumn']+=_0x4ec3ed['getColumns'](_0x14972e)-0x1),isPlainTable(_0x39ad22,_0x2ced5d,_0x4ec3ed);}function isPlainTable(_0x20959d,_0x40c3ad={},_0x15b5d0){for(const {isAnchor:_0x460c95,cellHeight:_0x3006f2,cellWidth:_0x511695}of _0x15b5d0['createTableWalker'](_0x20959d,{'includeAllSlots':!0x0,..._0x40c3ad}))if(!_0x460c95||0x1!=_0x3006f2||0x1!=_0x511695)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5343ab=this['editor']['plugins']['get']('TrackChangesEditing');_0x5343ab['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5343ab['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5343ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5343ab['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5343ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5343ab['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1eae13,_0x451d38){const _0x3077c7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9abf4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2fc321=_0x451d38['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x136a10=_0x9abf4['getColumnGroupElement'](_0x2fc321);let _0x3ac519=_0x136a10?_0x9abf4['getTableColumnsWidths'](_0x136a10):null,_0x21862a=_0x2fc321['getAttribute']('tableWidth')||null;const _0xdc5628=_0x451d38['tableWidth']||_0x21862a,_0x439668=_0x451d38['columnWidths']||_0x3ac519,_0x40aebe=this['editor']['plugins']['get']('Users')['me'];for(const _0x8eab52 of _0x3077c7['getSuggestions']()){const _0xe475bf=_0x8eab52['getContainedElement']();if('resizeTable'===_0x8eab52['subType']&&_0xe475bf===_0x2fc321){_0x8eab52['author']!==_0x40aebe&&_0x8eab52['discard']();const _0x1f1311=_0x8eab52['data']['commandParams'];_0x21862a=_0x1f1311[0x0]['tableWidth'],_0x3ac519=_0x1f1311[0x0]['columnWidths'];break;}}_0x1eae13({'table':_0x2fc321,'tableWidth':_0xdc5628,'columnWidths':_0x439668}),_0x3077c7['markBlockFormat'](_0x2fc321,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x21862a,'columnWidths':_0x3ac519}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3d6501){if('formatBlock'!=_0x3d6501['type']&&'formatInline'!=_0x3d6501['type'])return;const {data:_0x3c913f}=_0x3d6501;if(_0x3c913f&&'resizeTable'===_0x3c913f['formatGroupId']){const _0x285e50='*Format:*\x20resize\x20table';return{'type':'format','content':getTranslation$1(this['editor']['locale'],_0x285e50)};}}}class TrackChangesTemplate extends Plugin{['afterInit'](){const _0x4dee2a=this['editor'];_0x4dee2a['plugins']['has']('Template')&&_0x4dee2a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends Plugin{['afterInit'](){const _0x1af5e5=this['editor'];if(!_0x1af5e5['commands']['get']('insertTableOfContents'))return;_0x1af5e5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x11e047=_0x1af5e5['plugins']['get']('TrackChangesEditing'),_0x3b0d2d=_0x1af5e5['locale'];_0x11e047['descriptionFactory']['registerElementLabel']('tableOfContents',_0x56f0b3=>getTranslation$1(_0x3b0d2d,'ELEMENT_TABLE_OF_CONTENTS',_0x56f0b3));}}class TrackChangesTitle extends Plugin{['afterInit'](){const _0x22c219=this['editor'];if(!_0x22c219['plugins']['has']('Title'))return;const _0x1d721e=_0x22c219['plugins']['get']('TrackChangesEditing');_0x1d721e['descriptionFactory']['registerElementLabel']('title-content',()=>getTranslation$1(_0x22c219['locale'],'ELEMENT_TITLE')),_0x22c219['model']['document']['registerPostFixer'](_0x210d36=>{let _0x57cf6f=!0x1;const _0x36c93d=Array['from'](_0x22c219['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x467ad7,data:_0x4d44cb}of _0x36c93d){const {group:_0x3e4169}=_0x1d721e['_splitMarkerName'](_0x467ad7);if('suggestion'!==_0x3e4169||!_0x4d44cb['newRange'])continue;const _0x33c989=_0x4d44cb['newRange'],_0x25ab6a=_0x33c989['end']['nodeBefore'];if(!_0x25ab6a||!_0x25ab6a['is']('element','title-content'))continue;if(!_0x33c989['start']['isTouching'](_0x33c989['end']))continue;const _0x432672=_0x22c219['model']['schema']['getNearestSelectionRange'](_0x33c989['end'],'forward');if(_0x432672&&_0x432672['isCollapsed']){const _0x1c6bc1=_0x210d36['createRange'](_0x33c989['start'],_0x432672['start']);_0x1c6bc1['isEqual'](_0x33c989)||(_0x210d36['updateMarker'](_0x467ad7,{'range':_0x1c6bc1}),_0x57cf6f=!0x0);}_0x57cf6f||(_0x210d36['removeMarker'](_0x467ad7),_0x57cf6f=!0x0);}return _0x57cf6f;});}}class TrackChangesUploadcare extends Plugin{['afterInit'](){const _0xb8bdd8=this['editor'],_0x478916=_0xb8bdd8['plugins']['get']('TrackChangesEditing');_0xb8bdd8['plugins']['has']('Uploadcare')&&(_0x478916['enableCommand']('uploadcare'),_0xb8bdd8['plugins']['has']('UploadcareImageEdit')&&(_0x478916['enableCommand']('uploadcareImageEdit'),_0x478916['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x478916['descriptionFactory']['registerDescriptionCallback'](_0x35388c=>{if('attribute'!=_0x35388c['type'])return;const {data:_0x21f57c}=_0x35388c;return _0x21f57c&&'uploadcareImageId'==_0x21f57c['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends Plugin{['afterInit'](){const _0x14c593=this['editor'],_0x428eed=_0x14c593['plugins']['get']('TrackChangesEditing');_0x14c593['plugins']['has']('UndoEditing')&&(_0x428eed['enableCommand']('undo'),_0x428eed['enableCommand']('redo'));}}class TrackChangesTableCaption extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x3507df=this['editor'];if(!_0x3507df['plugins']['has']('TableCaptionEditing'))return;_0x3507df['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends Plugin{['tableProperties'];['tableCellProperties'];constructor(_0x2c0ebe){super(_0x2c0ebe),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x2c0ebe['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xbde14a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x480044 of this['tableProperties'])_0xbde14a['enableCommand'](_0x480044,(_0x19c53e,_0x2c21af)=>{const _0x3bb760=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x480044,[_0x3bb760],this['tableProperties'],'tableProperties',_0x19c53e,_0x2c21af);});_0xbde14a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xbde14a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbde14a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5134f3,_0x497cd2)=>this['handleDiscardAction'](this['tableProperties'],_0x5134f3,_0x497cd2)),_0xbde14a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x20fb2b of this['tableCellProperties'])this['editor']['commands']['get'](_0x20fb2b)&&_0xbde14a['enableCommand'](_0x20fb2b,(_0x129a9f,_0x37b97a)=>{const _0x58e63b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x20fb2b,_0x58e63b,this['tableCellProperties'],'tableCellProperties',_0x129a9f,_0x37b97a);});_0xbde14a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xbde14a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbde14a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5ce43b,_0x24fb3e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5ce43b,_0x24fb3e)),_0xbde14a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0xbde14a['descriptionFactory']['registerAttributeLabel']('tableCellType',getTranslation$1(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0xbde14a['descriptionFactory']['registerDescriptionCallback'](_0x7988c5=>this['handleSuggestionDescription'](_0x7988c5)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x270949,_0x249c64,_0x210e38,_0x4d424d,_0x16369d,_0x3ccd8e){const _0x50b6ce=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3ccd8e['batch'],()=>{for(const _0x5b174a of _0x249c64){if(this['_getSuggestion'](_0x5b174a,_0x4d424d))_0x16369d(_0x3ccd8e);else{const _0x17f592={};for(const _0x520245 of _0x210e38){const _0x54c339=_0x5b174a['getAttribute'](_0x520245);void 0x0!==_0x54c339&&(_0x17f592[_0x520245]=_0x54c339);}_0x16369d(_0x3ccd8e),_0x50b6ce['markBlockFormat'](_0x5b174a,{'commandParams':[_0x17f592]},[],_0x4d424d);}}});}['handleDiscardAction'](_0x4ea111,_0x4db7b4,_0x526b5a){const _0x5a9f44=_0x4db7b4[0x0]['start']['nodeAfter'],_0x2f2691=_0x526b5a['commandParams'][0x0];this['editor']['model']['change'](_0xedd858=>{for(const _0x31e81b of _0x4ea111)void 0x0!==_0x2f2691[_0x31e81b]?_0xedd858['setAttribute'](_0x31e81b,_0x2f2691[_0x31e81b],_0x5a9f44):_0xedd858['removeAttribute'](_0x31e81b,_0x5a9f44);});}['handleSuggestionDescription'](_0x358c65){if(_0x358c65['data'])switch(_0x358c65['subType']){case'tableProperties':return{'type':'format','content':getTranslation$1(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':getTranslation$1(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4cb8fc,_0x23c511){const _0x556915=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1f62ff of _0x556915['getSuggestions']({'skipNotAttached':!0x0})){const _0x412f2a=_0x1f62ff['getContainedElement']();if(_0x1f62ff['subType']===_0x23c511&&_0x412f2a===_0x4cb8fc)return _0x1f62ff;}return null;}['_registerTablePropertiesAttributes'](){const _0x4ee398=this['editor']['plugins']['get']('TrackChangesEditing'),_0x144110=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x481d4a of _0x144110){const _0x4b91d2=_0x481d4a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4ee398['descriptionFactory']['registerAttributeLabel'](_0x481d4a,getTranslation$1(this['editor']['locale'],'FORMAT_'+_0x4b91d2));}}}class TrackChangesLineHeight extends Plugin{['afterInit'](){const _0x190902=this['editor'];if(!_0x190902['plugins']['has']('LineHeight'))return;const _0x5ed45c=_0x190902['plugins']['get']('TrackChangesEditing'),_0x1de94a=_0x190902['locale'];_0x5ed45c['enableDefaultAttributesIntegration']('lineHeight'),_0x5ed45c['descriptionFactory']['registerAttributeLabel']('lineHeight',getTranslation$1(_0x1de94a,'FORMAT_LINE_HEIGHT'));}}const renameAttributeKey='$elementName';class TrackChangesEditing extends Plugin{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_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,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(_0x3b4447){super(_0x3b4447),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x50001d,_0x4d1032,_0x5575ad,_0xf9b8cd)=>{this['_model']['change'](()=>{for(const _0x585057 of[..._0xf9b8cd,..._0x5575ad])this['_model']['markers']['has'](_0x585057)&&_0x3b4447['editing']['reconvertMarker'](_0x585057);});}),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']=_0x3b4447['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3b4447['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3b4447['config']['get']('trackChanges.trackFormatChanges'),_0x3b4447['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3b4447['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x3b4447,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x414012=this['editor'];_0x414012['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x16154d,{writer:_0x2fc244})=>{let _0x4c0e28='suggestion:'+_0x16154d['getAttribute']('suggestion-type')+':'+_0x16154d['getAttribute']('id');return _0x16154d['getAttribute']('marker-count')&&(_0x4c0e28+=':'+_0x16154d['getAttribute']('marker-count')),_0x2fc244['createElement']('$marker',{'data-name':_0x4c0e28});}}),_0x414012['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x414012['model']['document']['registerPostFixer'](_0x778119=>{let _0x546dd2=!0x1;const _0x40cbdd=Array['from'](_0x414012['model']['document']['differ']['getChangedMarkers']()),_0x3b4eda=new Set();for(const {name:_0x1c60bc,data:_0x2db6a7}of _0x40cbdd){const {group:_0x15374e,type:_0x3093e9,subType:_0xba0e26,id:_0x243d54}=this['_splitMarkerName'](_0x1c60bc);if('suggestion'!==_0x15374e)continue;const _0x1a2428=_0xba0e26?'suggestion:'+_0x3093e9+':'+_0xba0e26+':'+_0x243d54:'suggestion:'+_0x3093e9+':'+_0x243d54,_0x5ec99e=_0x414012['model']['markers']['getMarkersGroup'](_0x1a2428),_0x54ef2b=_0x414012['model']['markers']['get'](_0x1c60bc),_0x4e57c7=this['_suggestions']['get'](_0x243d54);if(null!=_0x2db6a7['newRange']){'formatInline'==_0x3093e9&&(_0x546dd2=_0x546dd2||trimFormatInlineSuggestionRange(_0x2db6a7['newRange'],_0x1c60bc,_0x778119,_0x414012['model']['schema']));const _0x4548d0='attribute'==_0x3093e9&&this['_isBlockAttribute'](_0xba0e26['split']('|')[0x0]),_0x2e38ff='attribute'==_0x3093e9&&this['_isInlineAttribute'](_0xba0e26['split']('|')[0x0]);if(_0x2db6a7['newRange']['isCollapsed']||'$graveyard'==_0x2db6a7['newRange']['root']['rootName']||'formatBlock'==_0x3093e9&&!isCorrectFormatBlockSuggestionRange(_0x2db6a7['newRange'])||_0x4548d0&&!isCorrectFormatBlockSuggestionRange(_0x2db6a7['newRange'])||_0x2e38ff&&isEmptyRange(_0x2db6a7['newRange'])||'deletion'==_0x3093e9&&isEmptyRange(_0x2db6a7['newRange'])||_0x54ef2b&&isIntersectingWithOtherMarkers(_0x54ef2b,_0x5ec99e))_0x778119['removeMarker'](_0x1c60bc),_0x546dd2=!0x0;else{if(!_0x4e57c7||!_0x4e57c7['isInContent'])continue;if(_0x2db6a7['newRange']&&_0x2db6a7['oldRange']&&_0x2db6a7['newRange']['isEqual'](_0x2db6a7['oldRange']))continue;_0x3b4eda['add'](_0x4e57c7);}}}return _0x3b4eda['size']>0x0&&(_0x546dd2=!!this['_joinWithAdjacentSuggestions'](_0x3b4eda)||_0x546dd2),_0x546dd2;}),_0x414012['model']['document']['registerPostFixer'](_0x23f0be=>{let _0x1cf603=!0x1;for(const _0x5c0189 of _0x414012['model']['document']['differ']['getChanges']())if('insert'==_0x5c0189['type'])for(const _0x3d0576 of this['_suggestions']['values']()){if(_0x3d0576['isMultiRange']||!_0x3d0576['isInContent'])continue;const _0x1e211f='formatBlock'==_0x3d0576['type'],_0x4b5498=this['_getAttributeKey'](_0x3d0576),_0x335261=_0x4b5498&&this['_isBlockAttribute'](_0x4b5498);if(!_0x1e211f&&!_0x335261)continue;const _0x137fe0=_0x3d0576['getFirstRange']();if(_0x137fe0['start']['parent']!=_0x137fe0['end']['parent']&&!_0x137fe0['end']['isAtEnd']){const _0x272b7e=_0x414012['model']['createPositionAt'](_0x137fe0['start']['nodeAfter'],'end'),_0x3ac00d=_0x414012['model']['createRange'](_0x137fe0['start'],_0x272b7e);_0x23f0be['updateMarker'](_0x3d0576['getFirstMarker'](),{'range':_0x3ac00d}),_0x1cf603=!0x0;}}return _0x1cf603;}),_0x414012['model']['document']['registerPostFixer'](_0x2a4ada=>this['_processAttributeChanges'](_0x2a4ada)),_0x414012['model']['document']['registerPostFixer'](_0x2d9395=>!_0x2d9395['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2d9395)),_0x414012['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x414012['model']['document']['on']('change:data',(_0x537986,_0x3133d2)=>{if(!_0x3133d2['isLocal']||_0x3133d2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x225dfd=_0x414012['model']['document']['differ']['getChanges']();if(0x0==_0x225dfd['length'])return;const _0x3b1640=[],_0x1f15ca=_0x225dfd['filter'](_0x426849=>'attribute'==_0x426849['type']),_0xa93fd4=_0x225dfd['filter'](_0x51d706=>'insert'==_0x51d706['type']&&'$text'!=_0x51d706['name']);for(const _0x5ddd33 of _0x1f15ca)this['_isRegisteredAttribute'](_0x5ddd33['attributeKey'])&&_0x3b1640['push']({'key':_0x5ddd33['attributeKey'],'newValue':_0x5ddd33['attributeNewValue'],'oldValue':_0x5ddd33['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x5ddd33['range'],_0x414012['model'])});for(const _0x33971f of _0xa93fd4){if('rename'!=_0x33971f['action']&&'refresh'!=_0x33971f['action'])continue;const _0xdc77ef=createBlockFormatRangeForElement(_0x33971f['position']['nodeAfter'],_0x414012['model']),_0x7c4d52=_0x33971f['before'];'rename'==_0x33971f['action']&&_0x3b1640['push']({'key':renameAttributeKey,'newValue':_0x33971f['name'],'oldValue':_0x7c4d52['name'],'range':_0xdc77ef});for(const [_0x9db8d2,_0x33b9c2]of _0x7c4d52['attributes']){if(!this['_isRegisteredAttribute'](_0x9db8d2))continue;const _0xd47631=_0x33971f['attributes']['get'](_0x9db8d2);_0x33b9c2!==_0xd47631&&_0x3b1640['push']({'key':_0x9db8d2,'newValue':_0xd47631,'oldValue':_0x33b9c2,'range':_0xdc77ef});}for(const [_0x3f487c,_0x39b96a]of _0x33971f['attributes'])this['_isRegisteredAttribute'](_0x3f487c)&&(_0x7c4d52['attributes']['has'](_0x3f487c)||_0x3b1640['push']({'key':_0x3f487c,'newValue':_0x39b96a,'oldValue':null,'range':_0xdc77ef}));}0x0!=_0x3b1640['length']&&_0x414012['model']['enqueueChange'](_0x3133d2,_0x357bb8=>{const _0x45a63e=uid();for(const {range:_0x3d8bec,key:_0x172da1,oldValue:_0x3bbdbd,newValue:_0x4c724b}of _0x3b1640)this['markAttributeChange'](_0x3d8bec,_0x172da1,_0x3bbdbd,_0x4c724b,{'groupId':_0x45a63e});this['_reduceExistingSuggestions'](_0x357bb8,_0x3b1640);});},{'priority':'lowest'}),_0x414012['model']['markers']['on']('update:suggestion',(_0x31dd0d,_0x5999f3,_0xa86b70)=>{if(null==_0xa86b70){const {id:_0x2f67f0}=this['_splitMarkerName'](_0x5999f3['name']),_0x324646=this['_suggestions']['get'](_0x2f67f0);_0x324646&&_0x324646['addMarkerName'](_0x5999f3['name']);}}),_0x414012['model']['document']['on']('change:data',()=>{const _0x38d689=Array['from'](_0x414012['model']['document']['differ']['getChangedMarkers']())['filter'](_0x76778e=>'suggestion'===this['_splitMarkerName'](_0x76778e['name'])['group']);if(0x0===_0x38d689['length'])return;_0x38d689['sort']((_0x24798d,_0x4e0051)=>{const _0xae0317=_0x24798d['data']['oldRange'],_0x5454e5=_0x4e0051['data']['oldRange'];return null===_0xae0317&&null===_0x5454e5?0x0:null===_0xae0317&&null!==_0x5454e5?-0x1:null!==_0xae0317&&null===_0x5454e5?0x1:_0xae0317['start']['isBefore'](_0x5454e5['start'])?-0x1:0x1;});const _0x4b7191=new Set(),_0x46491f=new Set();for(const {name:_0x195c13,data:_0x16f56c}of _0x38d689){const {id:_0x3a08bd}=this['_splitMarkerName'](_0x195c13);if(null===_0x16f56c['oldRange']){const _0x3750e2=this['_handleNewSuggestionMarker'](_0x195c13);_0x46491f['add'](_0x3750e2);}else{const _0x331422=this['_suggestions']['get'](_0x3a08bd);null!==_0x16f56c['newRange']||_0x331422['isInContent']?(_0x4b7191['add'](_0x331422['head']),_0x46491f['add'](_0x331422)):this['_removeSuggestion'](_0x331422);}}_0x46491f['size']>0x0&&this['_refreshSuggestionsChain'](_0x46491f);for(const _0x584ee3 of _0x4b7191)this['fire']('suggestionChanged',_0x584ee3);}),_0x414012['model']['on']('applyOperation',(_0x837306,_0x2b8b7)=>{const _0x5f6b19=_0x2b8b7[0x0];if(!this['_suggestions']['size'])return;if(!_0x5f6b19['isDocumentOperation'])return;if(_0x5f6b19['batch']['isUndo']||!_0x5f6b19['batch']['isLocal'])return;let _0x1fd548,_0x520439;switch(_0x5f6b19['type']){case'insert':_0x1fd548=_0x414012['model']['createPositionAt'](_0x5f6b19['position']),_0x520439=_0x1fd548['getShiftedBy'](_0x5f6b19['howMany']);break;case'split':_0x1fd548=_0x414012['model']['createPositionAt'](_0x5f6b19['splitPosition']),_0x520439=_0x414012['model']['createPositionAt'](_0x5f6b19['moveTargetPosition']);break;case'move':_0x1fd548=_0x414012['model']['createPositionAt'](_0x5f6b19['targetPosition']),_0x520439=_0x1fd548['getShiftedBy'](_0x5f6b19['howMany']);break;default:return;}const _0x9d1a31=_0x414012['model']['createRange'](_0x1fd548,_0x520439);_0x414012['model']['change'](()=>{for(const {suggestion:_0x3b669a,meta:_0x3f786e}of this['_findSuggestions'](_0x9d1a31)){if(_0x3b669a['isMultiRange'])continue;if('formatInline'==_0x3b669a['type'])continue;const _0xe5ebf=this['_getAttributeKey'](_0x3b669a);if(_0xe5ebf&&this['_isBlockAttribute'](_0xe5ebf)&&'split'!=_0x5f6b19['type'])continue;const _0x3f6701=_0x3b669a['data']&&_0x3b669a['data']['multipleBlocks'];('formatBlock'!=_0x3b669a['type']||'split'==_0x5f6b19['type']&&!_0x3f6701)&&(_0x3f786e['containsRangeInObject']||'insertion'==_0x3b669a['type']&&_0x3f786e['isOwn']||_0x3b669a['getFirstRange']()['containsRange'](_0x9d1a31)&&this['_breakSuggestionMarker'](_0x3b669a,_0x1fd548,_0x520439));}});},{'priority':'lowest'}),_0x414012['model']['on']('deleteContent',(_0x6a2295,_0x3be9e4)=>{const _0x4ebbbc=_0x3be9e4[0x0],_0x3826c6=_0x3be9e4[0x1];if(_0x3826c6&&_0x3826c6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4ebbbc['isCollapsed'])return;const _0x201dfd=_0x414012['model']['schema'],{start:_0x2d50b2,end:_0x498efd}=_0x4ebbbc['getFirstRange'](),_0x34e118=_0x2d50b2['nodeAfter']&&_0x201dfd['isLimit'](_0x2d50b2['nodeAfter'])?null:_0x201dfd['getNearestSelectionRange'](_0x2d50b2,'forward'),_0x3b2c1f=_0x498efd['nodeBefore']&&_0x201dfd['isLimit'](_0x498efd['nodeBefore'])?null:_0x201dfd['getNearestSelectionRange'](_0x498efd,'backward'),_0x9fbf7b=_0x414012['model']['createRange'](_0x34e118?_0x34e118['start']:_0x2d50b2,_0x3b2c1f?_0x3b2c1f['end']:_0x498efd);_0x414012['model']['change'](_0x747c9a=>{this['markDeletion'](_0x9fbf7b);const _0x27e6c5=_0x414012['model']['schema']['getNearestSelectionRange'](_0x9fbf7b['start']);_0x4ebbbc['is']('documentSelection')?_0x747c9a['setSelection'](_0x27e6c5):_0x4ebbbc['setTo'](_0x27e6c5);}),_0x6a2295['stop']();},{'priority':priorities['normal']+0xa}),_0x414012['model']['on']('insertContent',(_0x153df8,_0x1d8b0c)=>{const _0x1ceaec=_0x1d8b0c[_0x1d8b0c['length']-0x1];_0x1ceaec&&_0x1ceaec['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x414012['model']['change'](()=>{let _0x4d94f5=_0x414012['model']['insertContent'](_0x1d8b0c[0x0],_0x1d8b0c[0x1],_0x1d8b0c[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d94f5)return;_0x153df8['return']=_0x4d94f5['clone']();const _0x21073e=_0x4d94f5['end']['nodeBefore'],_0x1041d5=_0x414012['model']['schema'];_0x21073e&&_0x1041d5['isBlock'](_0x21073e)&&!_0x1041d5['isObject'](_0x21073e)&&(_0x4d94f5=_0x414012['model']['createRange'](_0x4d94f5['start'],_0x414012['model']['createPositionAt'](_0x21073e,'end'))),this['markInsertion'](_0x4d94f5);}),_0x153df8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xfdfe5e=new AcceptSuggestionCommand(_0x414012,this['_suggestions']);_0x414012['commands']['add']('acceptSuggestion',_0xfdfe5e),this['enableCommand']('acceptSuggestion');const _0x27c74d=new DiscardSuggestionCommand(_0x414012,this['_suggestions']);_0x414012['commands']['add']('discardSuggestion',_0x27c74d),this['enableCommand']('discardSuggestion'),_0x414012['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x414012,_0xfdfe5e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x414012['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x414012,_0x27c74d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x414012['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x414012,_0xfdfe5e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x414012['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x414012,_0x27c74d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x307b28=_0x414012['plugins']['get']('CommentsRepository');this['listenTo'](_0x307b28,'addComment',(_0xdea8c3,{threadId:_0x1b60e6})=>{const _0x40ab73=this['_suggestions']['get'](_0x1b60e6);_0x40ab73&&_0x40ab73['commentThread']&&0x1===_0x40ab73['commentThread']['length']&&this['_updateSuggestionData'](_0x1b60e6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x307b28,'removeComment',(_0x2a0767,{threadId:_0x8de105})=>{const _0x2e99f4=this['_suggestions']['get'](_0x8de105);_0x2e99f4&&_0x2e99f4['commentThread']&&!_0x2e99f4['commentThread']['length']&&this['_updateSuggestionData'](_0x8de105,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){checkLicense$1(this);}set['adapter'](_0x21ecea){if(this['_adapter'])throw new CKEditorError('track-changes-adapter-already-set',this);this['_adapter']=_0x21ecea;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5c00ba=!0x1,toJSON:_0x15d341=!0x1}={}){const _0x14fc54=[];for(const _0x41904a of this['_suggestions']['values']())_0x5c00ba&&!_0x41904a['isInContent']||_0x14fc54['push'](_0x41904a);return _0x15d341?_0x14fc54['map'](_0x2409ca=>_0x2409ca['toJSON']()):_0x14fc54;}['getSuggestion'](_0x803a4c){const _0x2bfa1b=this['_suggestions']['get'](_0x803a4c);if(!_0x2bfa1b)throw new CKEditorError('track-changes-suggestion-not-found',this);return _0x2bfa1b;}['hasSuggestion'](_0x1495f5){return this['_suggestions']['has'](_0x1495f5);}['addSuggestionData'](_0x3ed632){const {authorId:_0x2adb11,id:_0x3919b1,originalSuggestionId:_0x278b08,attributes:_0x9e6a4}=_0x3ed632,[_0x587470,_0x246e27]=_0x3ed632['type']['split'](':'),_0x34887c=this['_suggestions']['get'](_0x3919b1)||this['_createSuggestion'](_0x587470,_0x246e27,_0x3919b1,_0x2adb11,_0x9e6a4,_0x278b08);if(this['_addThreadToSuggestion'](_0x34887c),this['_checkSuggestionCorrectness'](_0x34887c,_0x587470,_0x246e27||null,_0x2adb11),_0x34887c['createdAt']=_0x3ed632['createdAt'],_0x34887c['_isDataLoaded']=!0x0,_0x9e6a4&&_0x9e6a4['@external']){const _0x1f4120=_0x9e6a4['@external'],_0xcd4749=this['_getExternalAuthor'](_0x1f4120['authorName']);_0x34887c['authoredAt']=_0x1f4120['createdAt'],_0x34887c['author']=_0xcd4749,_0x34887c['isExternal']=!0x0;}else _0x34887c['authoredAt']=_0x3ed632['createdAt'];switch(_0x3ed632['data']&&(_0x34887c['data']=_0x3ed632['data']),_0x3ed632['attributes']&&(_0x34887c['attributes']=_0x3ed632['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x34887c['_saved']=!0x0),this['_suggestionState']['get'](_0x34887c)){case'notReady':this['_suggestionState']['set'](_0x34887c,'dataReady');break;case'markerReady':_0x34887c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x34887c])),this['_refreshSuggestionsChain'](new Set([_0x34887c])),this['_suggestionState']['set'](_0x34887c,'ready'),this['fire']('suggestionLoaded',_0x34887c)):this['_suggestionState']['set'](_0x34887c,'removed');}return _0x34887c;}['acceptSuggestion'](_0x1814c2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5e18b4 of _0x1814c2['getAllAdjacentSuggestions']())_0x5e18b4['accept']();});});}['discardSuggestion'](_0x25fc4c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45a02d of _0x25fc4c['getAllAdjacentSuggestions']())_0x45a02d['discard']();});});}['enableCommand'](_0x1ddd37,_0x451648){const _0x209def=this['editor']['commands']['get'](_0x1ddd37);if(!_0x209def)throw new CKEditorError('track-changes-command-not-found',this,{'commandName':_0x1ddd37});if(this['_enabledCommands']['has'](_0x209def))throw new CKEditorError('track-changes-enable-command-twice',this,{'commandName':_0x1ddd37});this['_enabledCommands']['add'](_0x209def),_0x451648&&_0x209def['on']('execute',(_0x18d27b,_0x11cb8e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x11cb8e['length']>0x0&&_0x11cb8e[_0x11cb8e['length']-0x1]&&_0x11cb8e[_0x11cb8e['length']-0x1]['forceDefaultExecution']?_0x11cb8e['pop']():(_0x18d27b['return']=_0x451648((..._0xe84355)=>_0x209def['execute'](..._0xe84355,{'forceDefaultExecution':!0x0}),..._0x11cb8e),_0x18d27b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x429c7a){let _0x3e70e1,_0x2d4333;const _0x4f1282=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3e70e1=_0x429c7a();}catch(_0x1cc41c){_0x2d4333=_0x1cc41c;}return _0x4f1282||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2d4333&&CKEditorError['rethrowUnexpectedError'](_0x2d4333,this),_0x3e70e1;}['markInsertion'](_0x2abb2d,_0x5a511e=null,_0x51e5d6={}){if(_0x2abb2d['isCollapsed'])return null;const _0x4e39cd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x51e5d6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xcf417d,meta:_0x155a06}of this['_findSuggestions'](_0x2abb2d,'insertion'))if(_0x155a06['isOwn']){if(!_0x155a06['isNextTo']){if(_0x155a06['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!_areSimilarAttributes(_0xcf417d,_0x51e5d6))continue;return _0xcf417d;}if(_areSimilarAttributes(_0xcf417d,_0x51e5d6))return _0xcf417d;this['_breakSuggestionMarker'](_0xcf417d,_0x2abb2d['start'],_0x2abb2d['end']);break;}if(_0x5a511e==_0xcf417d['subType']&&_areSimilarAttributes(_0xcf417d,_0x51e5d6)){const _0x4a8ab7=_0xcf417d['getFirstRange']();return _0x4a8ab7['start']['isEqual'](_0x2abb2d['end'])?this['_setSuggestionRange'](_0xcf417d,this['_model']['createRange'](_0x2abb2d['start'],_0x4a8ab7['end'])):this['_setSuggestionRange'](_0xcf417d,this['_model']['createRange'](_0x4a8ab7['start'],_0x2abb2d['end'])),_0xcf417d;}}const _0x13bc8e=uid(),_0x1b6894=_0x4e39cd['id'],_0x371c7d=_0x5a511e?'insertion:'+_0x5a511e:'insertion',_0x1c4750=this['_setSuggestionData']({'id':_0x13bc8e,'type':_0x371c7d,'createdAt':new Date(),'authorId':_0x1b6894,'attributes':_0x51e5d6});return this['_addSuggestionMarker'](_0x371c7d,_0x13bc8e,_0x1b6894,_0x2abb2d),_0x1c4750;}['markMultiRangeInsertion'](_0x55fbf7,_0x263a46='multi',_0xd105a8={}){const _0x59314e=this['editor']['plugins']['get']('Users')['me'],_0x3bf7b4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x263a46,'join');this['_trackingSessionId']&&(_0xd105a8['trackingSessionId']=this['_trackingSessionId']);for(const _0x2c3a45 of this['getSuggestions']())if(_0x2c3a45['author']['id']==_0x59314e['id']&&'insertion'==_0x2c3a45['type']&&_0x2c3a45['subType']==_0x263a46&&_areSimilarAttributes(_0x2c3a45,_0xd105a8)&&(_0x3bf7b4(_0x2c3a45['getRanges'](),_0x55fbf7)||_0x3bf7b4(_0x55fbf7,_0x2c3a45['getRanges']()))){for(const _0x434ad1 of _0x55fbf7)_0x2c3a45['addRange'](_0x434ad1);return _0x2c3a45;}for(const {suggestion:_0x484511,meta:_0x52274f}of this['_findSuggestions'](_0x55fbf7,'insertion')){if(!_0x52274f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x52274f['containsRangeInObject'])continue;if(!_areSimilarAttributes(_0x484511,_0xd105a8))continue;let _0x4dd659=!0x0;for(const _0x410566 of _0x484511['getRanges']())for(const _0x423f9a of _0x55fbf7)if(!_0x410566['containsRange'](_0x423f9a)){_0x4dd659=!0x1;break;}if(_0x4dd659)return _0x484511;}const _0x419d4c=uid(),_0x54d7d=_0x59314e['id'],_0x376839='insertion:'+_0x263a46,_0x1f1ae6=this['_setSuggestionData']({'id':_0x419d4c,'type':_0x376839,'createdAt':new Date(),'authorId':_0x54d7d,'attributes':_0xd105a8});for(const _0xaf9beb of _0x55fbf7)this['_addSuggestionMarker'](_0x376839,_0x419d4c,_0x54d7d,_0xaf9beb,Suggestion['getMultiRangeId']());return _0x1f1ae6;}['markInlineFormat'](_0x651760,_0x377cab,_0x265b3b=null,_0x443a48={}){if(_0x265b3b=_0x265b3b||createFormatSubType(_0x377cab),_0x651760['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x443a48['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5793de=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x265b3b,'accept');return this['forceDefaultExecution'](()=>_0x5793de([_0x651760],_0x377cab,_0x443a48)),null;}const _0x495bb9=this['editor']['plugins']['get']('Users')['me'],_0x1bfb3a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x577263,meta:_0xb6212}of this['_findSuggestions'](_0x651760,'insertion'))_0xb6212['isOwn']&&!_0xb6212['isInsideObject']&&_0x1bfb3a['push'](..._0x577263['getRanges']());}const _0x184c91=getIntersectionsWithMultipleRanges(_0x651760,_0x1bfb3a),_0x53af2e=getDifferencesWithMultipleRanges(_0x651760,_0x1bfb3a);_0x184c91['length']&&this['_model']['change'](()=>{for(const _0x7c0cd7 of _0x184c91){const _0x8a946f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x265b3b,'accept');this['forceDefaultExecution'](()=>_0x8a946f([_0x7c0cd7],_0x377cab,_0x443a48));}});for(const _0x19b38c of _0x53af2e){let _0x4e3a2b=null,_0x31b259=_0x19b38c['start'],_0x56e3e2=_0x19b38c['end'];for(const {suggestion:_0x4912a9,meta:_0x2344ad}of this['_findSuggestions'](_0x19b38c,'formatInline')){if(!_0x2344ad['isOwn'])continue;if(_0x4912a9['subType']!=_0x265b3b)continue;if(!_areSimilarAttributes(_0x4912a9,_0x443a48))continue;const _0x5da810=_0x4912a9['getFirstRange']();if(_0x5da810['containsRange'](_0x19b38c,!0x0))return null;_0x31b259=_0x31b259['isBefore'](_0x5da810['start'])?_0x31b259:_0x5da810['start'],_0x56e3e2=_0x56e3e2['isAfter'](_0x5da810['end'])?_0x56e3e2:_0x5da810['end'],_0x4e3a2b?_0x5da810['start']['isBefore'](_0x4e3a2b['getFirstRange']()['start'])?(_0x4e3a2b['removeMarkers'](),_0x4e3a2b=_0x4912a9):_0x4912a9['removeMarkers']():_0x4e3a2b=_0x4912a9;}const _0x44bb95=this['_model']['createRange'](_0x31b259,_0x56e3e2);if(_0x4e3a2b)this['_setSuggestionRange'](_0x4e3a2b,_0x44bb95);else{const _0xacae03=uid(),_0x48638b=_0x495bb9['id'];this['_setSuggestionData']({'id':_0xacae03,'type':'formatInline:'+_0x265b3b,'data':_0x377cab,'createdAt':new Date(),'authorId':_0x48638b,'attributes':_0x443a48}),this['_addSuggestionMarker']('formatInline:'+_0x265b3b,_0xacae03,_0x48638b,_0x44bb95);}}return null;}['markBlockFormat'](_0x433d90,_0x50af53,_0x31d505=[],_0x2409e6=null,_0x1e7b51={}){_0x50af53['formatGroupId']||(_0x50af53['formatGroupId']=_0x50af53['commandName']),_0x50af53['multipleBlocks']=_0x433d90['is']('range'),_0x2409e6=_0x2409e6||createFormatSubType(_0x50af53);const _0x424c7b=_0x31d505['map'](_0x4bb098=>createBlockFormatRangeForElement(_0x4bb098,this['_model'])),_0x40f524=_0x433d90['is']('range')?_0x433d90:createBlockFormatRangeForElement(_0x433d90,this['_model']);if(this['_trackingSessionId']&&(_0x1e7b51['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x17ee11=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2409e6,'accept');return this['forceDefaultExecution'](()=>_0x17ee11([_0x40f524],_0x50af53,_0x1e7b51)),null;}_0x424c7b['push'](_0x40f524);let _0x1b2299=!0x0;for(const _0x9f1248 of _0x424c7b)if(!this['_rangeIsInLocalUserInsertion'](_0x9f1248)){_0x1b2299=!0x1;break;}if(_0x1b2299&&'always'!==this['_trackFormatChanges']){const _0xa9bad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2409e6,'accept');return this['forceDefaultExecution'](()=>_0xa9bad([_0x40f524],_0x50af53,_0x1e7b51)),null;}let _0xb5c2c6=null,_0x18a88a=_0x40f524['start'],_0x371390=_0x40f524['end'];for(const {suggestion:_0x2f001d,meta:_0x4250a4}of this['_findSuggestions'](_0x40f524,'formatBlock')){if(!_0x4250a4['isOwn'])continue;if(_0x4250a4['isNextTo']||_0x4250a4['containsRangeInObject']||_0x4250a4['isInsideObject'])continue;if(_0x2f001d['data']['formatGroupId']!=_0x50af53['formatGroupId'])continue;if(!_areSimilarAttributes(_0x2f001d,_0x1e7b51))continue;const _0x2d5084=_0x2f001d['getFirstRange']();if(_0x2f001d['subType']==_0x2409e6){if(_0x2d5084['containsRange'](_0x40f524,!0x0))return null;_0x18a88a=_0x18a88a['isBefore'](_0x2d5084['start'])?_0x18a88a:_0x2d5084['start'],_0x371390=_0x371390['isAfter'](_0x2d5084['end'])?_0x371390:_0x2d5084['end'],_0xb5c2c6?_0x2d5084['start']['isBefore'](_0xb5c2c6['getFirstRange']()['start'])?(_0xb5c2c6['removeMarkers'](),_0xb5c2c6=_0x2f001d):_0x2f001d['removeMarkers']():_0xb5c2c6=_0x2f001d;}else{const _0x252209=_0x40f524['getIntersection'](_0x2d5084);this['_cutOutSuggestionMarker'](_0x2f001d,_0x252209);}}const _0x2f2cf3=this['editor']['plugins']['get']('Users')['me'],_0x11900c=uid(),_0x26891d=_0x2f2cf3['id'];if(_0xb5c2c6)return this['_setSuggestionRange'](_0xb5c2c6,this['_model']['createRange'](_0x18a88a,_0x371390)),_0xb5c2c6;{const _0x503f54=this['_setSuggestionData']({'id':_0x11900c,'type':'formatBlock:'+_0x2409e6,'data':_0x50af53,'createdAt':new Date(),'authorId':_0x26891d,'attributes':_0x1e7b51});return this['_addSuggestionMarker']('formatBlock:'+_0x2409e6,_0x11900c,_0x26891d,this['_model']['createRange'](_0x18a88a,_0x371390)),_0x503f54;}}['markMultiRangeBlockFormat'](_0x38739d,_0x45d530,_0x558420=[],_0x3b739b=null,_0x347416={}){_0x45d530['formatGroupId']||(_0x45d530['formatGroupId']=_0x45d530['commandName']);const _0x53bc63=_0x38739d[0x0];_0x45d530['multipleBlocks']=_0x53bc63['is']('range'),_0x3b739b=_0x3b739b||createFormatSubType(_0x45d530);const _0x589f4a=_0x558420['map'](_0x1a2311=>createBlockFormatRangeForElement(_0x1a2311,this['_model'])),_0x4e2a81=_0x53bc63['is']('range')?_0x38739d:_0x38739d['map'](_0x3d19b3=>createBlockFormatRangeForElement(_0x3d19b3,this['_model']));if(this['_trackingSessionId']&&(_0x347416['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1a0c2b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b739b,'accept');return this['forceDefaultExecution'](()=>_0x1a0c2b(_0x4e2a81,_0x45d530,_0x347416)),null;}_0x589f4a['push'](..._0x4e2a81);let _0xce80c7=!0x0;for(const _0x574369 of _0x589f4a)if(!this['_rangeIsInLocalUserInsertion'](_0x574369)){_0xce80c7=!0x1;break;}if(_0xce80c7&&'always'!==this['_trackFormatChanges']){const _0x36afd3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b739b,'accept');return this['forceDefaultExecution'](()=>_0x36afd3(_0x4e2a81,_0x45d530,_0x347416)),null;}const _0x7bf08a=this['editor']['plugins']['get']('Users')['me'];for(const _0x1bd6f9 of this['getSuggestions']()){const _0x238e49=_0x1bd6f9['data'];if(_0x1bd6f9['author']['id']!=_0x7bf08a['id'])continue;if('formatBlock'!=_0x1bd6f9['type']||_0x238e49['formatGroupId']!=_0x45d530['formatGroupId'])continue;if(!_areSimilarAttributes(_0x1bd6f9,_0x347416))continue;const _0x31f6c6=_0x1bd6f9['subType']==_0x3b739b;for(let _0x5e7adf=0x0;_0x5e7adf<_0x4e2a81['length'];_0x5e7adf++){const _0x243563=_0x4e2a81[_0x5e7adf];for(const _0xd8ddac of _0x1bd6f9['getMarkers']()){const _0x1fd70d=_0xd8ddac['getRange']();if(_0x243563['isEqual'](_0x1fd70d)){_0x31f6c6?(_0x4e2a81['splice'](_0x5e7adf,0x1),_0x5e7adf--):_0x1bd6f9['removeMarker'](_0xd8ddac['name']);break;}}}}if(0x0==_0x4e2a81['length'])return null;const _0xfe7b51=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b739b,'join');for(const _0x3d6d31 of this['getSuggestions']()){const _0xf6f925=_0x3d6d31['data'];if(_0x3d6d31['author']['id']==_0x7bf08a['id']&&('formatBlock'==_0x3d6d31['type']&&_0xf6f925['formatGroupId']==_0x45d530['formatGroupId']&&_0x3d6d31['subType']==_0x3b739b&&_areSimilarAttributes(_0x3d6d31,_0x347416)&&(_0xfe7b51(_0x3d6d31['getRanges'](),_0x4e2a81)||_0xfe7b51(_0x4e2a81,_0x3d6d31['getRanges']())))){for(const _0x20512e of _0x4e2a81)_0x3d6d31['addRange'](_0x20512e);return _0x3d6d31;}}const _0x34326a=uid(),_0x9c45e1=_0x7bf08a['id'],_0x3b41e1='formatBlock:'+_0x3b739b,_0x1f42c4=this['_setSuggestionData']({'id':_0x34326a,'type':_0x3b41e1,'data':_0x45d530,'createdAt':new Date(),'authorId':_0x9c45e1,'attributes':_0x347416});for(const _0x3a07cf of _0x4e2a81)this['_addSuggestionMarker'](_0x3b41e1,_0x34326a,_0x9c45e1,_0x3a07cf,Suggestion['getMultiRangeId']());return _0x1f42c4;}['markDeletion'](_0x26f8ba,_0x328dcc=null,_0x6b7af4={}){if(_0x26f8ba['isCollapsed'])return null;const _0x353ef8=this['editor']['plugins']['get']('Users')['me'],_0x5148b0=new ModelLiveRange(_0x26f8ba['start'],_0x26f8ba['end']);this['_trackingSessionId']&&(_0x6b7af4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x55732d,meta:_0x5c6cfd}of this['_findSuggestions'](_0x5148b0,'insertion'))if(_0x5c6cfd['isOwn']&&!_0x5c6cfd['isNextTo']){if(_0x55732d['isMultiRange']){const _0x3c312c=_0x55732d['getRanges']()['filter'](_0x505371=>'$graveyard'!=_0x505371['root']['rootName']);_0x3c312c['every'](_0x70fbf4=>_0x5148b0['containsRange'](_0x70fbf4,!0x0))&&_0x55732d['discard']();if(_0x3c312c['some'](_0x5b5dd3=>_0x5b5dd3['containsRange'](_0x5148b0,!0x0))){const _0x202404=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x328dcc,'accept');return this['forceDefaultExecution'](()=>_0x202404([_0x5148b0],null,_0x6b7af4)),null;}}else{const _0x14372b=_0x5148b0['getIntersection'](_0x55732d['getFirstRange']());null!==_0x14372b&&_0x55732d['_onDiscard']([_0x14372b],null,_0x6b7af4);}}if(_0x5148b0['detach'](),_0x5148b0['isCollapsed']||'$graveyard'==_0x5148b0['root']['rootName'])return null;let _0x56bbf3=null,_0x232fd4=_0x5148b0['start'],_0x46070e=_0x5148b0['end'];const _0x96071e=this['_findSuggestions'](_0x5148b0,'deletion');for(const {suggestion:_0x9be8bc,meta:_0x875e02}of _0x96071e){const _0x32f8ad=this['_model']['createRange'](_0x232fd4,_0x46070e);if(_0x875e02['isOwn']&&(this['_mergeNestedSuggestions']||!_0x875e02['containsRangeInObject']&&!_0x875e02['isInsideObject'])){if(_0x9be8bc['isMultiRange']){if(!_areSimilarAttributes(_0x9be8bc,_0x6b7af4))continue;let _0x359801=!0x0;for(const _0xf8bb39 of _0x9be8bc['getRanges']()){if(_0xf8bb39['containsRange'](_0x32f8ad,!0x0))return _0x9be8bc;_0x32f8ad['containsRange'](_0xf8bb39)||(_0x359801=!0x1);}_0x359801&&_0x9be8bc['discard']();}else{const _0x470dc4=_0x9be8bc['getFirstRange']();if(_0x470dc4['containsRange'](_0x32f8ad,!0x0))return _0x9be8bc;if(!_areSimilarAttributes(_0x9be8bc,_0x6b7af4)){_0x32f8ad['containsRange'](_0x470dc4)?_0x9be8bc['removeMarkers']():_0x470dc4['containsPosition'](_0x232fd4)?_0x232fd4=_0x470dc4['end']:_0x470dc4['containsPosition'](_0x46070e)&&(_0x46070e=_0x470dc4['start']);continue;}_0x232fd4=_0x232fd4['isBefore'](_0x470dc4['start'])?_0x232fd4:_0x470dc4['start'],_0x46070e=_0x46070e['isAfter'](_0x470dc4['end'])?_0x46070e:_0x470dc4['end'],_0x6b7af4=Object['assign']({},_0x9be8bc['attributes']),_0x56bbf3?_0x470dc4['start']['isBefore'](_0x56bbf3['getFirstRange']()['start'])?(_0x56bbf3['removeMarkers'](),_0x56bbf3=_0x9be8bc):_0x9be8bc['removeMarkers']():_0x56bbf3=_0x9be8bc;}}}if(_0x56bbf3)return this['_setSuggestionRange'](_0x56bbf3,this['_model']['createRange'](_0x232fd4,_0x46070e)),_0x56bbf3;{const _0x210d4e=uid(),_0x27a244=this['_model']['createRange'](_0x232fd4,_0x46070e),_0x21a637=_0x353ef8['id'],_0x577aff=_0x328dcc?'deletion:'+_0x328dcc:'deletion',_0x125a5d=this['_setSuggestionData']({'id':_0x210d4e,'type':_0x577aff,'createdAt':new Date(),'authorId':_0x21a637,'attributes':_0x6b7af4});return this['_addSuggestionMarker'](_0x577aff,_0x210d4e,_0x21a637,_0x27a244),_0x125a5d;}}['markMultiRangeDeletion'](_0x161e36,_0x386093='multi',_0x3d5a35={}){const _0x41a9df=this['editor']['plugins']['get']('Users')['me'],_0x47562a=_0x161e36['map'](_0x5caeb9=>new ModelLiveRange(_0x5caeb9['start'],_0x5caeb9['end'])),_0x5f15e5=new Set();this['_trackingSessionId']&&(_0x3d5a35['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3f65be,meta:_0x3f44e3}of this['_findSuggestions'](_0x47562a,'insertion'))_0x3f44e3['isOwn']&&!_0x3f44e3['isNextTo']&&_0x5f15e5['add'](_0x3f65be);for(const _0x18f7bf of _0x5f15e5)if(_0x18f7bf['isMultiRange']){const _0x2cca4b=_0x18f7bf['getRanges']();(!_0x18f7bf['attributes']||!_0x18f7bf['attributes']['skipNestingCheck'])&&(_0x2cca4b['every'](_0x11cb27=>_0x47562a['some'](_0x113633=>_0x113633['containsRange'](_0x11cb27,!0x0)))&&_0x18f7bf['discard']());if(_0x47562a['every'](_0x524c06=>_0x2cca4b['some'](_0x5d28e8=>_0x5d28e8['containsRange'](_0x524c06,!0x0)))){const _0xffbf8c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x386093,'accept');return this['forceDefaultExecution'](()=>_0xffbf8c(_0x161e36,null,_0x3d5a35)),null;}}else{const _0x511cf9=_0x18f7bf['getFirstRange']();_0x47562a['some'](_0x5aed20=>_0x5aed20['containsRange'](_0x511cf9,!0x0))&&_0x18f7bf['discard']();if(_0x47562a['every'](_0x5efe7d=>_0x511cf9['containsRange'](_0x5efe7d,!0x0))){const _0xcccc5b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x386093,'accept');return this['forceDefaultExecution'](()=>_0xcccc5b(_0x47562a,null,_0x3d5a35)),null;}}const _0x4f81ae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x386093,'join');let _0x35e950=null;for(const _0x2389d9 of this['getSuggestions']())if(_0x2389d9['author']['id']==_0x41a9df['id']&&_0x2389d9['isInContent']&&'deletion'==_0x2389d9['type']&&_0x2389d9['subType']==_0x386093&&_areSimilarAttributes(_0x2389d9,_0x3d5a35)&&(_0x4f81ae(_0x2389d9['getRanges'](),_0x47562a)||_0x4f81ae(_0x47562a,_0x2389d9['getRanges']()))){if(_0x35e950){if(_0x2389d9['commentThread']&&_0x2389d9['commentThread']['length'])continue;for(const _0xa9fc62 of _0x2389d9['getRanges']())_0x35e950['isIntersectingWithRange'](_0xa9fc62)||_0x35e950['addRange'](_0xa9fc62);_0x2389d9['removeMarkers']();}else{_0x35e950=_0x2389d9;for(const _0x5ca06f of _0x47562a)_0x2389d9['isIntersectingWithRange'](_0x5ca06f)||_0x2389d9['addRange'](_0x5ca06f);}}if(_0x35e950)return _0x35e950;_0x5f15e5['clear']();for(const {suggestion:_0x20a377,meta:_0x440f1d}of this['_findSuggestions'](_0x47562a,'deletion'))_0x440f1d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x440f1d['containsRangeInObject']&&!_0x440f1d['isInsideObject'])&&_areSimilarAttributes(_0x20a377,_0x3d5a35)&&_0x5f15e5['add'](_0x20a377);for(const _0x714248 of _0x5f15e5){const _0x5c75e5=_0x714248['getRanges']();if(!_0x3d5a35||!_0x3d5a35['skipNestingCheck']){if(_0x47562a['every'](_0x1b130b=>_0x5c75e5['some'](_0xb03964=>_0xb03964['containsRange'](_0x1b130b,!0x0))))return _0x714248;}(!_0x714248['attributes']||!_0x714248['attributes']['skipNestingCheck'])&&(_0x5c75e5['every'](_0x57986c=>_0x47562a['some'](_0x50e944=>_0x50e944['containsRange'](_0x57986c,!0x0)))&&_0x714248['discard']());}const _0x21b96b=uid(),_0xe5bcd5=_0x41a9df['id'],_0x48fcfe='deletion:'+_0x386093,_0xb70f20=this['_setSuggestionData']({'id':_0x21b96b,'type':_0x48fcfe,'createdAt':new Date(),'authorId':_0xe5bcd5,'attributes':_0x3d5a35});for(const _0x5abd8a of _0x47562a)_0x5abd8a['detach'](),_0x5abd8a['isCollapsed']||'$graveyard'==_0x5abd8a['root']['rootName']||this['_addSuggestionMarker'](_0x48fcfe,_0x21b96b,_0xe5bcd5,_0x5abd8a,Suggestion['getMultiRangeId']());return _0xb70f20;}['markAttributeChange'](_0x464118,_0x1633ad,_0x21c950,_0x41d709,_0x528b1d){if(_0x464118['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x32ba9c=this['editor']['plugins']['get']('Users')['me']['id'],_0x1f0ecb=Array['from'](this['_suggestions']['values']())['filter'](_0x2282c6=>'attribute'==_0x2282c6['type']&&_0x2282c6['data']['key']==_0x1633ad&&_0x2282c6['isIntersectingWithRange'](_0x464118));if(this['_trackingSessionId']&&(_0x528b1d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x49667a=this['_findSuggestions'](_0x464118,'insertion')['filter'](({meta:_0x2ef953})=>_0x2ef953['isOwn']&&!_0x2ef953['isInsideObject']&&!_0x2ef953['isNextTo'])['map'](({suggestion:_0x33a9c5})=>_0x33a9c5);_0x1f0ecb['unshift'](..._0x49667a);}const _0x407833=new Map([[_0x464118,_0x21c950]]);for(const _0x2370b5 of _0x1f0ecb){const _0x21e59f='attribute'==_0x2370b5['type']?_0x2370b5['data']['oldValue']:void 0x0,_0x184ca9=_0x2370b5['getFirstRange'](),_0x429290=Array['from'](_0x407833['keys']())['find'](_0x326c09=>_0x326c09['isIntersecting'](_0x184ca9));if(!_0x429290)continue;const _0x234b21=_0x429290['getDifference'](_0x184ca9);this['_isBlockAttribute'](_0x1633ad)&&'insertion'==_0x2370b5['type']&&0x0!=_0x234b21['length']||(_0x407833['delete'](_0x429290),_0x234b21['forEach'](_0x4231b6=>{_0x407833['set'](_0x4231b6,_0x21c950);}),'insertion'!=_0x2370b5['type']&&_0x21e59f!=_0x41d709&&_0x407833['set'](_0x429290['getIntersection'](_0x184ca9),_0x21e59f));}const _0x22e511=[];for(const [_0x222a9a,_0x1c625c]of _0x407833){const _0xb1d8ef=uid(),_0xa5bc7b={'key':_0x1633ad,'oldValue':_0x1c625c,'newValue':_0x41d709};_0x1633ad['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':_0x1633ad});const _0x493fa1=('attribute:'+(_0x1633ad+'|'+createFormatSubType({'newValue':_0x41d709})))['substring'](0x0,0x3c),_0x664220=this['_setSuggestionData']({'id':_0xb1d8ef,'type':_0x493fa1,'data':_0xa5bc7b,'createdAt':new Date(),'authorId':_0x32ba9c,'attributes':_0x528b1d});_0x22e511['push'](_0x664220),this['_addSuggestionMarker'](_0x493fa1,_0xb1d8ef,_0x32ba9c,_0x222a9a);}return _0x22e511;}['enableDefaultAttributesIntegration'](_0xcde627){this['enableCommand'](_0xcde627,(_0x19ed8b,..._0x26370a)=>{this['recordAttributeChanges'](()=>{_0x19ed8b(..._0x26370a);});});}['registerBlockAttribute'](_0x48023f){this['editor']['plugins']['get'](SuggestionsConversion)['registerBlockAttribute'](_0x48023f);}['registerInlineAttribute'](_0x48c7be){this['editor']['plugins']['get'](SuggestionsConversion)['registerInlineAttribute'](_0x48c7be);}['startTrackingSession'](_0x6ec3d1){return this['_trackingSessionId']=void 0x0!==_0x6ec3d1?_0x6ec3d1:uid(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2a5713){return'attribute'==_0x2a5713['type']?_getAttributeKeyFromSubType(_0x2a5713['subType']):null;}['_applyOperationsAsSuggestions'](_0x137a2c){if(0x0==_0x137a2c['length'])return;const _0x59fe6a=this['editor'],_0x254df5=_0x59fe6a['plugins']['get'](DocumentCompare),_0x33d4f6=[];_0x59fe6a['model']['change'](_0x3b467d=>{for(let _0x4d89c5=0x0;_0x4d89c5<_0x137a2c['length'];_0x4d89c5++){const _0x659a7d=_0x137a2c[_0x4d89c5];if(_0x659a7d['baseVersion']=_0x59fe6a['model']['document']['version'],_0x659a7d['isDocumentOperation']=!0x0,_0x254df5['isMarkedRemoveOperation'](_0x659a7d)){const _0x435f57=fixElementSuggestionRange(_0x659a7d['newRange'],_0x59fe6a['model']);_0x33d4f6['unshift'](ModelLiveRange['fromRange'](_0x435f57));}else switch(_0x659a7d['type']){case'rename':{const _0x3f233b=_0x659a7d['oldName'],_0x173b29=_0x659a7d['newName'];if(_0x3f233b==_0x173b29)break;_0x3b467d['batch']['addOperation'](_0x659a7d),_0x59fe6a['model']['applyOperation'](_0x659a7d);const _0x4f3112='$elementName',_0x11c14a=_0x659a7d['position'],_0x4feeb4=_0x59fe6a['model']['createRange'](_0x11c14a,_0x59fe6a['model']['createPositionAt'](_0x11c14a['nodeAfter'],'end'));this['markAttributeChange'](_0x4feeb4,_0x4f3112,_0x3f233b,_0x173b29,{'groupId':uid()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x19d206=_0x659a7d['oldValue'],_0x1d1416=_0x659a7d['newValue'];if(_0x19d206==_0x1d1416)break;_0x3b467d['batch']['addOperation'](_0x659a7d),_0x59fe6a['model']['applyOperation'](_0x659a7d);const _0xe938b2=_0x659a7d['key'];if(!this['_isRegisteredAttribute'](_0xe938b2))break;const _0x4966cb=fixElementSuggestionRange(_0x659a7d['range'],_0x59fe6a['model']);this['markAttributeChange'](_0x4966cb,_0xe938b2,_0x19d206,_0x1d1416,{'groupId':uid()});break;}case'insert':{_0x3b467d['batch']['addOperation'](_0x659a7d),_0x59fe6a['model']['applyOperation'](_0x659a7d);if(_0x137a2c[_0x4d89c5+0x1]&&'move'==_0x137a2c[_0x4d89c5+0x1]['type'])break;const _0x17b773=_0x659a7d['position'],_0x5248af=_0x659a7d['howMany'],_0x909a8c=fixElementSuggestionRange(_0x59fe6a['model']['createRange'](_0x17b773,_0x17b773['getShiftedBy'](_0x5248af)),_0x59fe6a['model']);this['markInsertion'](_0x909a8c);break;}case'split':{_0x3b467d['batch']['addOperation'](_0x659a7d),_0x59fe6a['model']['applyOperation'](_0x659a7d);const _0x6a966e=_0x659a7d['splitPosition'],_0x494ad6=_0x659a7d['moveTargetPosition'];this['markInsertion'](_0x59fe6a['model']['createRange'](_0x6a966e,_0x494ad6));break;}case'move':case'remove':_0x3b467d['batch']['addOperation'](_0x659a7d),_0x59fe6a['model']['applyOperation'](_0x659a7d);}}for(const _0x4c2b0f of _0x33d4f6)_0x4c2b0f['detach'](),this['markDeletion'](_0x4c2b0f);});}['_setSuggestionRange'](_0x324623,_0x47648f){const _0x393680=_0x324623['getFirstMarker']();this['_model']['change'](_0x4adf27=>{_0x4adf27['updateMarker'](_0x393680,{'range':_0x47648f});});}['_addThreadToSuggestion'](_0x2528ea){const _0x3bb067=_0x2528ea['id'],_0x464fc4=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3bb067)||this['_commentsRepository']['addCommentThread']({'channelId':_0x464fc4,'threadId':_0x3bb067,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x521e54=this['_commentsRepository']['getCommentThread'](_0x3bb067);_0x521e54['unbind']('isRemovable'),_0x521e54['isRemovable']=!0x1,_0x2528ea['commentThread']=_0x521e54;}['_checkSuggestionCorrectness'](_0x551bfe,_0x547b16,_0x4ffd18,_0x74c884){if(_0x551bfe['type']!=_0x547b16||_0x551bfe['subType']!=_0x4ffd18||_0x551bfe['creator']['id']!=_0x74c884)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new CKEditorError('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4b63e3,_0x4ee891){const _0x4e585f=_0x4b63e3['getFirstRange']();if(_0x4ee891['isEqual'](_0x4e585f))_0x4b63e3['removeMarkers']();else{if(_0x4e585f['containsRange'](_0x4ee891)){const _0x54c2c1=this['_model']['createPositionAt'](_0x4ee891['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4b63e3,this['_model']['createRange'](_0x4e585f['start'],_0x54c2c1));const _0x13beb6=uid(),_0x18ec59=_0x4b63e3['creator']['id'],_0x2fe6f9=_0x4b63e3['type']+':'+_0x4b63e3['subType'];this['_setSuggestionData']({'id':_0x13beb6,'type':_0x2fe6f9,'createdAt':new Date(),'authorId':_0x18ec59,'data':_0x4b63e3['data'],'attributes':_0x4b63e3['attributes']});const _0x53b0f0=this['_model']['createPositionAt'](_0x4ee891['end']['parent'],'after'),_0x5903d2=this['_model']['createRange'](_0x53b0f0,_0x4e585f['end']);this['_addSuggestionMarker'](_0x2fe6f9,_0x13beb6,_0x18ec59,_0x5903d2);}else{if(_0x4e585f['containsPosition'](_0x4ee891['start'])){const _0x3bd64a=this['_model']['createPositionAt'](_0x4ee891['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4b63e3,this['_model']['createRange'](_0x4e585f['start'],_0x3bd64a));}else{const _0x5a1f58=this['_model']['createPositionAt'](_0x4ee891['end']['parent'],'after');this['_setSuggestionRange'](_0x4b63e3,this['_model']['createRange'](_0x5a1f58,_0x4e585f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4f613c){for(const {suggestion:_0x347fd6,meta:_0x534e19}of this['_findSuggestions'](_0x4f613c,'insertion')){if(!_0x534e19['isOwn'])continue;const _0x198231=_0x347fd6['getRanges']();for(const _0x306c98 of _0x198231)if(!_0x4f613c['getDifference'](_0x306c98)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2f216f){return this['editor']['plugins']['get']('Users')['getUser'](_0x2f216f);}['_getExternalAuthor'](_0x537172){const _0x13a588=this['editor']['plugins']['get']('Users'),_0xf5be4e=hashObject('external:'+_0x537172),_0x3153d7=_0x13a588['getUser'](_0xf5be4e);return _0x3153d7||_0x13a588['addUser']({'id':_0xf5be4e,'name':_0x537172});}['_createSuggestion'](_0x369fb9,_0x14b92e,_0x1d3d86,_0x4e2f26,_0x2f39dd,_0x52e93f){const _0x492091=this['_getAuthorFromId'](_0x4e2f26);if(!_0x492091)throw new CKEditorError('track-changes-user-not-found',this,{'authorId':_0x4e2f26,'suggestionId':_0x1d3d86});const _0x9dabd3=this['_suggestionFactory']['buildSuggestion'](_0x369fb9,_0x14b92e,_0x1d3d86,_0x492091,_0x2f39dd,_0x21110a=>{this['_updateSuggestionData'](_0x1d3d86,{'attributes':_0x21110a});const _0x1dd4c1=this['getSuggestion'](_0x1d3d86);this['_joinWithAdjacentSuggestions'](new Set([_0x1dd4c1])),this['_refreshSuggestionsChain'](new Set([_0x1dd4c1]));},_0x52e93f);return this['listenTo'](_0x9dabd3,'accept',()=>{this['_updateSuggestionData'](_0x1d3d86,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x9dabd3,'discard',()=>{this['_updateSuggestionData'](_0x1d3d86,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1d3d86,_0x9dabd3),this['_suggestionState']['set'](_0x9dabd3,'notReady'),_0x9dabd3;}['_splitMarkerName'](_0x20751e){return splitSuggestionMarkerName(_0x20751e);}['_breakSuggestionMarker'](_0x3c846f,_0x261565,_0x2ec095){const _0x28663d=_0x3c846f['getFirstRange'](),_0x7e8feb=_0x28663d['start'],_0x1b02d9=_0x28663d['end'];this['_setSuggestionRange'](_0x3c846f,this['_model']['createRange'](_0x7e8feb,_0x261565));const _0x1d991f=uid(),_0x468f51=_0x3c846f['creator']['id'],_0x5d9769=_0x3c846f['type']+(_0x3c846f['subType']?':'+_0x3c846f['subType']:'');this['_setSuggestionData']({'id':_0x1d991f,'type':_0x5d9769,'createdAt':new Date(),'authorId':_0x468f51,'originalSuggestionId':_0x3c846f['_originalSuggestionId']||_0x3c846f['id'],'attributes':_0x3c846f['attributes'],'data':_0x3c846f['data']});const _0x24f65f=this['_getAttributeKey'](_0x3c846f);('formatBlock'==_0x3c846f['type']||_0x24f65f&&this['_isBlockAttribute'](_0x24f65f))&&(_0x2ec095=this['_model']['createPositionBefore'](_0x2ec095['parent'])),this['_addSuggestionMarker'](_0x5d9769,_0x1d991f,_0x468f51,this['_model']['createRange'](_0x2ec095,_0x1b02d9));}['_findSuggestions'](_0x577dc1,_0x44b328=null){const _0x1fba47=[],_0xdfa72f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x577dc1)||(_0x577dc1=[_0x577dc1]);for(const _0x3e166a of this['getSuggestions']()){if(!_0x3e166a['isInContent'])continue;if(_0x44b328&&_0x3e166a['type']!=_0x44b328)continue;let _0x432819=!0x1;for(const _0xd7728f of _0x3e166a['getRanges']()){for(const _0x277907 of _0x577dc1){const _0x19b55c=_0x277907['start']['isEqual'](_0xd7728f['end'])||_0x277907['end']['isEqual'](_0xd7728f['start']);if(_0x19b55c||_0x277907['getIntersection'](_0xd7728f)){const _0x4a4a70=_0x277907['containsRange'](_0xd7728f)&&_isInObject(this['_model']['schema'],_0xd7728f['start'],_0x277907),_0x18e9ad=_0xd7728f['containsRange'](_0x277907)&&_isInObject(this['_model']['schema'],_0x277907['start'],_0xd7728f);_0x1fba47['push']({'suggestion':_0x3e166a,'meta':{'isOwn':_0xdfa72f==_0x3e166a['author'],'isNextTo':_0x19b55c,'isInsideObject':_0x4a4a70,'containsRangeInObject':_0x18e9ad}}),_0x432819=!0x0;break;}}if(_0x432819)break;}}return _0x1fba47;}['_addSuggestionMarker'](_0x564167,_0x262212,_0x41dddf,_0xdfdab7,_0x34c596){this['_model']['change'](_0x3c4bb0=>{let _0x49d45b='suggestion:'+_0x564167+':'+_0x262212+':'+_0x41dddf;_0x34c596&&(_0x49d45b=_0x49d45b+':'+_0x34c596),_0x3c4bb0['addMarker'](_0x49d45b,{'range':_0xdfdab7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x6b69fe){const _0x486718=_0x6b69fe['previous'],_0x13c1c8=_0x6b69fe['next'];_0x6b69fe['previous']=null,_0x6b69fe['next']=null,null!=_0x486718&&_0x486718['next']==_0x6b69fe&&(_0x486718['next']=_0x13c1c8),null!=_0x13c1c8&&_0x13c1c8['previous']==_0x6b69fe&&(_0x13c1c8['previous']=_0x486718),'ready'==this['_suggestionState']['get'](_0x6b69fe)&&(this['_suggestionState']['set'](_0x6b69fe,'removed'),this['fire']('suggestionUnloaded',_0x6b69fe,_0x486718,_0x13c1c8));}['_setSuggestionData'](_0x3da4b0){const _0x279cfc=_0x3da4b0['id'],_0x192d64=this['addSuggestionData'](_0x3da4b0);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x28fc57=this['editor']['plugins']['get']('PendingActions'),_0x1e5127=_0x192d64['hasComments'],_0x1274a0=_0x192d64['subType']?_0x192d64['type']+':'+_0x192d64['subType']:_0x192d64['type'],_0xbd5a10=this['editor']['locale'],_0x2160d2=_0x28fc57['add'](getTranslation$1(_0xbd5a10,'PENDING_ACTION_SUGGESTION')),_0x1814ff={'id':_0x279cfc,'type':_0x1274a0,'hasComments':_0x1e5127,'data':_0x3da4b0['data']||null,'originalSuggestionId':_0x3da4b0['originalSuggestionId']||null,'attributes':_0x192d64['attributes']};this['_adapter']['addSuggestion'](_0x1814ff)['then'](_0x4e9d81=>{_0x192d64['_saved']=!0x0,_0x28fc57['remove'](_0x2160d2),_0x4e9d81&&_0x4e9d81['createdAt']&&(this['_suggestions']['get'](_0x279cfc)['createdAt']=_0x4e9d81['createdAt']);})['catch'](_0x3c51db=>{throw logWarning('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x192d64['discard']();}),_0x192d64['stopListening'](),this['_suggestions']['delete'](_0x192d64['id']),this['_suggestionState']['delete'](_0x192d64),_0x3c51db;});}return _0x192d64;}['_isBlockAttribute'](_0x431d1c){return this['editor']['plugins']['get'](SuggestionsConversion)['isBlockAttribute'](_0x431d1c);}['_isInlineAttribute'](_0x1af32f){return this['editor']['plugins']['get'](SuggestionsConversion)['isInlineAttribute'](_0x1af32f);}['_updateSuggestionData'](_0x5d278f,_0x5e9b3f){const _0x2cb61a=this['editor']['plugins']['get']('PendingActions'),_0x41cc09=this['getSuggestion'](_0x5d278f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x41cc09['_saved']){const _0x54858c=_0x2cb61a['add'](getTranslation$1(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5d278f,_0x5e9b3f)['then'](()=>{_0x2cb61a['remove'](_0x54858c);});}else _0x41cc09['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5d278f,_0x5e9b3f);});}}['_getSuggestionData'](_0x14ca99){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new CKEditorError('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x14ca99);}['_handleNewSuggestionMarker'](_0x59ba34){const {id:_0x2a8966,type:_0x3ebb70,subType:_0x42cbb2,authorId:_0x21fa43}=this['_splitMarkerName'](_0x59ba34),_0x4341a2=this['_suggestions']['get'](_0x2a8966)||this['_createSuggestion'](_0x3ebb70,_0x42cbb2,_0x2a8966,_0x21fa43,{});switch(this['_checkSuggestionCorrectness'](_0x4341a2,_0x3ebb70,_0x42cbb2,_0x21fa43),this['_suggestionState']['get'](_0x4341a2)){case'notReady':this['_getSuggestionData'](_0x2a8966)['then'](_0x4f4d06=>{let _0x42cf76=Promise['resolve']();_0x4f4d06['hasComments']&&(_0x42cf76=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2a8966})),_0x42cf76['then'](()=>{this['addSuggestionData'](_0x4f4d06)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4341a2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2a8966,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4341a2,'ready'),this['fire']('suggestionLoaded',_0x4341a2);break;case'ready':this['fire']('suggestionChanged',_0x4341a2);}return _0x4341a2['addMarkerName'](_0x59ba34),_0x4341a2;}['_refreshSuggestionsChain'](_0x2a2f54){const _0xde4166=Array['from'](_0x2a2f54),_0x5eb956=_0xde4166['filter'](_0x3d21fe=>'attribute'==_0x3d21fe['type']);this['_refreshAttributeSuggestionsChain'](_0x5eb956);const _0x1eedf4=_0xde4166['filter'](_0x4daec9=>!_0x4daec9['isMultiRange']&&'attribute'!=_0x4daec9['type']),_0x5dc957=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32199a=>!_0x32199a['isMultiRange']&&'attribute'!=_0x32199a['type']),_0x5797d9=_0x5dc957['filter'](_0x28db7c=>!_0x2a2f54['has'](_0x28db7c)),_0x2660e3=new Map(_0x5dc957['map'](_0x297786=>[_0x297786,this['_suggestionFactory']['getSuggestionCallback'](_0x297786['type'],_0x297786['subType'],'chain')])),_0x54b5cf=new Map(_0x5dc957['map'](_0x1f4fd6=>[_0x1f4fd6,_0x1f4fd6['getFirstRange']()])),_0x148bb8=new Set(),_0x15943b=new Set();for(let _0x51f173=0x0;_0x51f173<_0x1eedf4['length'];_0x51f173++)_0x20ee4d(_0x1eedf4[_0x51f173],_0x1eedf4,_0x51f173+0x1);for(let _0x36aec7=0x0;_0x36aec7<_0x1eedf4['length'];_0x36aec7++)_0x20ee4d(_0x1eedf4[_0x36aec7],_0x5797d9,0x0);const _0x583639=new Set();for(let _0xec2cb1=0x0;_0xec2cb1<_0x1eedf4['length'];_0xec2cb1++){const _0x6d9ae3=_0x1eedf4[_0xec2cb1];!_0x15943b['has'](_0x6d9ae3)&&_0x6d9ae3['previous']&&(_0x583639['add'](_0x6d9ae3['previous']),_0x6d9ae3['previous']['next']===_0x6d9ae3&&(_0x6d9ae3['previous']['next']=null),_0x6d9ae3['previous']=null),!_0x148bb8['has'](_0x6d9ae3)&&_0x6d9ae3['next']&&(_0x583639['add'](_0x6d9ae3['next']),_0x6d9ae3['next']['previous']===_0x6d9ae3&&(_0x6d9ae3['next']['previous']=null),_0x6d9ae3['next']=null);}function _0x20ee4d(_0x4269d0,_0x13d4bc,_0x54b6ec){for(let _0x3252d3=_0x54b6ec;_0x3252d3<_0x13d4bc['length'];_0x3252d3++){const _0x4c2cf5=_0x2d963e(_0x4269d0,_0x13d4bc[_0x3252d3]);_0x4c2cf5&&(_0x4c2cf5[0x0]['next']=_0x4c2cf5[0x1],_0x4c2cf5[0x1]['previous']=_0x4c2cf5[0x0],_0x148bb8['add'](_0x4c2cf5[0x0]),_0x15943b['add'](_0x4c2cf5[0x1]));}}function _0x2d963e(_0x2ec458,_0x190702){if(_0x2ec458['author']['id']!==_0x190702['author']['id'])return null;const _0xffe029=_0x2660e3['get'](_0x2ec458)(_0x2ec458,_0x190702,_0x54b5cf['get'](_0x2ec458),_0x54b5cf['get'](_0x190702));if(!_0xffe029)return null;return _0x2660e3['get'](_0x190702)(_0x2ec458,_0x190702,_0x54b5cf['get'](_0x2ec458),_0x54b5cf['get'](_0x190702))?_0xffe029[0x1]['commentThread']&&_0xffe029[0x1]['commentThread']['length']?null:_0xffe029:null;}_0x583639['size']&&this['_refreshSuggestionsChain'](_0x583639);}['_refreshAttributeSuggestionsChain'](_0x5494f5){if(0x0==_0x5494f5['length'])return;const _0x2bf8f5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f0bd4=>'attribute'==_0x5f0bd4['type']&&_0x5f0bd4['_isDataLoaded']),_0x13c83a=[],_0x4d6680=new Map();for(const _0x3dc14c of _0x2bf8f5){const _0x5f1c91=hashObject(_0x3dc14c['attributes']);_0x4d6680['has'](_0x5f1c91)||(_0x4d6680['set'](_0x5f1c91,_0x13c83a['length']),_0x13c83a['push']([]));const _0x48b330=_0x4d6680['get'](_0x5f1c91);_0x13c83a[_0x48b330]['push'](_0x3dc14c);}!(function(){_0x13c83a['sort']((_0x35a320,_0x46a70f)=>{const _0x419dca=_0x35a320[0x0]['createdAt'],_0x158230=_0x46a70f[0x0]['createdAt'];return _0x419dca==_0x158230?_0x35a320[0x0]['attributes']['groupId']<_0x46a70f[0x0]['attributes']['groupId']?-0x1:0x1:_0x419dca<_0x158230?-0x1:0x1;});for(const _0x4aa532 of _0x13c83a)_0x4aa532['sort']((_0x5b2ada,_0x1281e1)=>_0x5b2ada['id']<_0x1281e1['id']?-0x1:0x1);}());for(let _0x3b1924=0x0;_0x3b1924<_0x13c83a['length'];_0x3b1924++){if(0x0==_0x13c83a[_0x3b1924]['length'])continue;const _0x2db047=[];for(let _0x7a1dc4=_0x3b1924+0x1;_0x7a1dc4<_0x13c83a['length'];_0x7a1dc4++)0x0!=_0x13c83a[_0x7a1dc4]['length']&&_0x21c437(_0x13c83a[_0x3b1924],_0x13c83a[_0x7a1dc4])&&_0x2db047['push'](_0x7a1dc4);for(const _0x594122 of _0x2db047)_0x13c83a[_0x3b1924]=_0x13c83a[_0x3b1924]['concat'](_0x13c83a[_0x594122]),_0x13c83a[_0x594122]=[];}for(const _0x100af5 of _0x13c83a)for(let _0x2e45b8=0x0;_0x2e45b8<_0x100af5['length'];_0x2e45b8++){const _0x195c64=_0x100af5[_0x2e45b8+0x1]||null;_0x100af5[_0x2e45b8]['next']!==_0x195c64&&(_0x100af5[_0x2e45b8]['next']=_0x195c64);}for(const _0x470340 of _0x13c83a)for(let _0x49db7c=0x0;_0x49db7c<_0x470340['length'];_0x49db7c++){const _0x43cdd9=_0x470340[_0x49db7c-0x1]||null;_0x470340[_0x49db7c]['previous']!==_0x43cdd9&&(_0x470340[_0x49db7c]['previous']=_0x43cdd9);}function _0x21c437(_0x3f4111,_0x29398e){if(_0x3f4111[0x0]['attributes']['groupId']!==_0x29398e[0x0]['attributes']['groupId']&&_0x3f4111[0x0]['author']!==_0x29398e[0x0]['author'])return!0x1;if(!function(_0x9a080c,_0x2dd69a){if(!_0x9a080c['hasComments']&&!_0x2dd69a['hasComments'])return!0x0;if(_0x9a080c['hasComments']&&_0x2dd69a['hasComments'])return!0x1;if(_0x9a080c['hasComments']&&_0x2dd69a['createdAt']<_0x9a080c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2dd69a['hasComments']&&_0x9a080c['createdAt']<_0x2dd69a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3f4111[0x0],_0x29398e[0x0]))return!0x1;if(!isEqual(omit(_0x3f4111[0x0]['attributes'],['groupId','trackingSessionId']),omit(_0x29398e[0x0]['attributes'],['groupId','trackingSessionId'])))return!0x1;if(_0x3f4111[0x0]['attributes']['groupId']==_0x29398e[0x0]['attributes']['groupId'])return!0x0;if(_0x3f4111[0x0]['attributes']['trackingSessionId']!==_0x29398e[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3f4111['every'](_0x1269dd=>_0x29398e['some'](_0x292e1d=>_0x1269dd['getFirstRange']()['isEqual'](_0x292e1d['getFirstRange']())))&&_0x29398e['every'](_0x4d24ee=>_0x3f4111['some'](_0x43183f=>_0x4d24ee['getFirstRange']()['isEqual'](_0x43183f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5d9498){const _0xbb77b3=Array['from'](_0x5d9498),_0x188b8f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x321389=_0x188b8f['filter'](_0x55ba28=>!_0x5d9498['has'](_0x55ba28)),_0x1b3511=new Map(_0xbb77b3['map'](_0x5050e7=>[_0x5050e7,this['_suggestionFactory']['getSuggestionCallback'](_0x5050e7['type'],_0x5050e7['subType'],'join')])),_0xc572a5=new Map(_0x188b8f['map'](_0x1a4202=>[_0x1a4202,_0x1a4202['getRanges']()]));for(let _0x15bbbb=0x0;_0x15bbbb<_0xbb77b3['length'];_0x15bbbb++){if(_0x41133f(this,_0xbb77b3[_0x15bbbb],_0xbb77b3,_0x15bbbb+0x1))return!0x0;}for(let _0x2dd4f1=0x0;_0x2dd4f1<_0xbb77b3['length'];_0x2dd4f1++){if(_0x41133f(this,_0xbb77b3[_0x2dd4f1],_0x321389,0x0))return!0x0;}return!0x1;function _0x41133f(_0x54038a,_0x2380f8,_0x2d0c6e,_0x15956b){for(let _0x353574=_0x15956b;_0x353574<_0x2d0c6e['length'];_0x353574++){const _0x4e7edc=_0x2d0c6e[_0x353574];if(_0x4e7edc['type']!==_0x2380f8['type']||_0x4e7edc['author']['id']!==_0x2380f8['author']['id']||_0x4e7edc['subType']!==_0x2380f8['subType'])continue;if(!_haveSameAttributes(_0x2380f8,_0x4e7edc))continue;if('attribute'==_0x2380f8['type']&&_0x2380f8['data']['oldValue']!=_0x4e7edc['data']['oldValue'])continue;if('attribute'==_0x2380f8['type']&&_0x54038a['_isBlockAttribute'](_0x2380f8['data']['key']))continue;if('formatBlock'==_0x2380f8['type']){const _0x29d8d2=_0x54038a['editor']['model'],_0x2abe47=_0x2380f8['getContainedElement']();if(_0x2abe47&&(_0x29d8d2['schema']['isObject'](_0x2abe47)||_0x29d8d2['schema']['isLimit'](_0x2abe47)))continue;}const _0x603c1=_0x1b3511['get'](_0x2380f8),_0x2d1302=_0xc572a5['get'](_0x2380f8),_0x577978=_0xc572a5['get'](_0x4e7edc),_0x393395=_0x2380f8['commentThread']&&_0x2380f8['commentThread']['length'],_0x4165d0=_0x4e7edc['commentThread']&&_0x4e7edc['commentThread']['length'];if(!_0x393395&&_0x603c1(_0x577978,_0x2d1302))return _0x54038a['_joinSuggestions'](_0x4e7edc,_0x2380f8),_0xc572a5['delete'](_0x2380f8),!0x0;if(!_0x4165d0&&_0x603c1(_0x2d1302,_0x577978))return _0x54038a['_joinSuggestions'](_0x2380f8,_0x4e7edc),_0xc572a5['delete'](_0x4e7edc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x499611,_0x5173ea){if(_0x499611['isMultiRange']){for(const _0x17e0ff of _0x5173ea['getRanges']())_0x499611['addRange'](_0x17e0ff);}else{const _0x2fd881=_0x5173ea['getFirstRange']()['end'];this['_setSuggestionRange'](_0x499611,this['_model']['createRange'](_0x499611['getFirstRange']()['start'],_0x2fd881));}_0x5173ea['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2a6f72,_0x49fe35,_0x9ac6b4){const _0x13afa3=_0x2a6f72['startsWith']('format')||_0x2a6f72['startsWith']('attribute')?'FORMATTING':_0x2a6f72['toUpperCase']();return getTranslation$1(this['editor']['locale'],_0x49fe35+'_'+_0x13afa3+'_SUGGESTION_ANNOUNCEMENT',_0x9ac6b4);}['_initAriaMarkerChangeAnnouncements'](){const _0x4f02d5=this['editor'];if(!_0x4f02d5['ui'])return;const {ariaLiveAnnouncer:_0x5948fa}=_0x4f02d5['ui'];surroundingMarkersDetector(this['_model'],({left:_0x3140e2,entered:_0xe34a3b})=>{for(const _0x5d191e of _0x3140e2){const {group:_0x1a0ba1,type:_0x12db71}=this['_splitMarkerName'](_0x5d191e['name']);if('suggestion'===_0x1a0ba1){_0x5948fa['announce'](this['_getMarkerAnnouncementText'](_0x12db71,'LEAVE'));break;}}for(const _0x1da65a of _0xe34a3b){const {group:_0x5ddf26,type:_0x1eaf36}=this['_splitMarkerName'](_0x1da65a['name']);if('suggestion'===_0x5ddf26){_0x5948fa['announce'](this['_getMarkerAnnouncementText'](_0x1eaf36,'ENTER',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}}});}['_processAttributeChanges'](_0x529ac5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x57a05e=this['editor'],_0x4b873f=_0x57a05e['model']['document']['differ']['getChanges']();if(0x0==_0x4b873f['length'])return!0x1;const _0xec7751=[],_0x21a0b0=_0x4b873f['filter'](_0x4a0400=>'attribute'==_0x4a0400['type']),_0x291198=_0x4b873f['filter'](_0x1c23df=>'insert'==_0x1c23df['type']&&'$text'!=_0x1c23df['name']),_0x44c24a=_0x4b873f['filter'](_0x27b6ba=>'remove'==_0x27b6ba['type']&&'$text'!=_0x27b6ba['name']);for(const _0x1c2b6c of _0x21a0b0)_0xec7751['push']({'key':_0x1c2b6c['attributeKey'],'newValue':_0x1c2b6c['attributeNewValue'],'oldValue':_0x1c2b6c['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x1c2b6c['range'],_0x57a05e['model'])});for(const _0x36f35e of _0x291198){const _0x24edf4=_0x44c24a['find'](_0x8729f9=>_0x8729f9['position']['isEqual'](_0x36f35e['position']));_0x24edf4&&_0xec7751['push']({'key':renameAttributeKey,'newValue':_0x36f35e['name'],'oldValue':_0x24edf4['name'],'range':_0x57a05e['model']['createRangeOn'](_0x36f35e['position']['nodeAfter'])});}return 0x0!=_0xec7751['length']&&this['_reduceExistingSuggestions'](_0x529ac5,_0xec7751);}['_processAttributeSuggestions'](_0x9f87bc){let _0x363a2c=!0x1;const _0x4a9fe6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1cf2d1=>_0x1cf2d1['data']['newRange']&&_0x1cf2d1['name']['startsWith']('suggestion:attribute:'));for(const _0xe4d89c of _0x4a9fe6){const {subType:_0x1a2b91,id:_0x51308a}=this['_splitMarkerName'](_0xe4d89c['name']),_0x186552=_0x1a2b91['split']('|')[0x0];for(const _0xd29ffa of this['getSuggestions']({'skipNotAttached':!0x0}))_0xd29ffa['id']!=_0x51308a&&'attribute'==_0xd29ffa['type']&&_0xd29ffa['data']&&_0xd29ffa['data']['key']==_0x186552&&_0xd29ffa['getFirstRange']()['isIntersecting'](_0xe4d89c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xd29ffa,_0xe4d89c['data']['newRange'],_0x9f87bc),_0x363a2c=!0x0);}return _0x363a2c;}['recordAttributeChanges'](_0x2f2a8d){this['_recordAttributeSuggestions']=!0x0,_0x2f2a8d();}['_isRegisteredAttribute'](_0x3af34f){return this['editor']['plugins']['get'](SuggestionsConversion)['isRegisteredAttribute'](_0x3af34f);}['_reduceExistingSuggestions'](_0x1770b9,_0x9fd843){if(0x0==_0x9fd843['length'])return!0x1;let _0x4daf2e=!0x1;for(const _0x131fdd of _0x9fd843){const _0x542159=this['_findSuggestions'](_0x131fdd['range'],'attribute')['filter'](_0x250e27=>!_0x250e27['meta']['isNextTo'])['map'](_0x2ba435=>_0x2ba435['suggestion']),_0x54f0dc=hashObject({'newValue':_0x131fdd['newValue']});_0x542159['filter'](_0xe8437d=>{const [_0x22bb8c,_0x169e4e]=_0xe8437d['subType']['split']('|');return _0x22bb8c==_0x131fdd['key']&&_0x169e4e!=_0x54f0dc;})['forEach'](_0x445835=>{this['_reduceSuggestionAttributeRange'](_0x445835,_0x131fdd['range'],_0x1770b9),_0x4daf2e=!0x0;});}return _0x4daf2e;}['_reduceSuggestionAttributeRange'](_0x589d9b,_0xc94c,_0x5ba426){const _0x48bfc9=_0x589d9b['getFirstRange']()['getDifference'](_0xc94c);0x0!==_0x48bfc9['length']?0x1!==_0x48bfc9['length']?this['_breakSuggestionMarker'](_0x589d9b,_0xc94c['start'],_0xc94c['end']):this['_setSuggestionRange'](_0x589d9b,_0x48bfc9[0x0]):_0x5ba426['removeMarker'](_0x589d9b['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1ebd6e){this['_editor']=_0x1ebd6e,this['_model']=_0x1ebd6e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22dcf4,_0x1ded67,_0x4d7cf7,_0x4aba60,_0x2e154b,_0x244216,_0x4740ed){return new Suggestion(this['_model'],{'type':_0x22dcf4,'subType':_0x1ded67,'id':_0x4d7cf7,'originalSuggestionId':_0x4740ed,'author':_0x4aba60,'creator':_0x4aba60,'attributes':_0x2e154b,'onAttributesChange':_0x244216,'onAccept':(..._0x529466)=>this['getSuggestionCallback'](_0x22dcf4,_0x1ded67,'accept')(..._0x529466),'onDiscard':(..._0x50bb5f)=>this['getSuggestionCallback'](_0x22dcf4,_0x1ded67,'discard')(..._0x50bb5f)});}['registerCustomCallback'](_0x5cf83a,_0x360559,_0xe212fa,_0x19f36b){const _0x244675=_0x5cf83a+':'+_0x360559+':'+_0xe212fa;this['_customCallbacks']['set'](_0x244675,_0x19f36b);}['getSuggestionCallback'](_0x29e536,_0x421f0a,_0x9bacdf){const _0x2e0a6c=_0x29e536+':'+_0x421f0a+':'+_0x9bacdf;return this['_customCallbacks']['get'](_0x2e0a6c)||this['_defaultCallbacks']['get'](_0x29e536+':'+_0x9bacdf);}['_registerDefaultCallbacks'](){const _0x28ccae=()=>!0x1,_0x4a8e04=_0x461f5a=>{_0x461f5a['sort']((_0x91a15c,_0x96ccdc)=>_0x91a15c['start']['isBefore'](_0x96ccdc['start'])?0x1:-0x1),this['_model']['change'](_0x121839=>{for(const _0x4c229e of _0x461f5a){let _0x2f29bf;_0x2f29bf=_0x4c229e['end']['isAtEnd']&&_0x4c229e['end']['parent']==_0x4c229e['start']['nodeAfter']?_0x121839['createSelection'](_0x4c229e['start']['nodeAfter'],'on'):_0x121839['createSelection'](_0x4c229e),this['_model']['deleteContent'](_0x2f29bf,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3b2bf8=(_0x126c9a,_0x2c6605)=>{_0x2c6605&&this['_model']['change'](_0x475431=>{const {commandName:_0x18c115,commandParams:_0x19306b=[]}=_0x2c6605,_0x319917=_0x126c9a['map'](_0x313914=>(rangeOnOpeningTag(_0x313914)&&(_0x313914=this['_model']['createRange'](_0x313914['end'])),_0x313914))['filter'](_0x4745a5=>'$graveyard'!==_0x4745a5['root']['rootName']);if(_0x319917['length']<0x1)return;const _0x2e93d9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x225aea=>ModelLiveRange['fromRange'](_0x225aea));_0x475431['setSelection'](_0x319917);for(const _0x229cfa of this['_editor']['commands']['commands']())_0x229cfa['refresh']();_0x19306b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x18c115,..._0x19306b);const _0x2728c1=_0x2e93d9['filter'](_0x3ce11d=>'$graveyard'!=_0x3ce11d['root']['rootName']);_0x2728c1['length']>0x0&&_0x475431['setSelection'](_0x2728c1);for(const _0x1fe583 of _0x2e93d9)_0x1fe583['detach']();});},_0x24c008=(_0x2059b2,_0x16c8a6)=>0x1==_0x2059b2['length']&&0x1==_0x16c8a6['length']&&_0x2059b2[0x0]['end']['isEqual'](_0x16c8a6[0x0]['start']),_0x4727d3=(_0x232566,_0xdeb5fc,_0x18ecc0,_0x9ffad8)=>canChainSuggestions(_0x232566,_0xdeb5fc,_0x18ecc0,_0x9ffad8)?[_0x232566,_0xdeb5fc]:canChainSuggestions(_0xdeb5fc,_0x232566,_0x9ffad8,_0x18ecc0)?[_0xdeb5fc,_0x232566]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x28ccae),this['_defaultCallbacks']['set']('insertion:discard',_0x4a8e04),this['_defaultCallbacks']['set']('insertion:join',_0x24c008),this['_defaultCallbacks']['set']('insertion:chain',_0x4727d3),this['_defaultCallbacks']['set']('deletion:accept',_0x4a8e04),this['_defaultCallbacks']['set']('deletion:discard',_0x28ccae),this['_defaultCallbacks']['set']('deletion:join',_0x24c008),this['_defaultCallbacks']['set']('deletion:chain',_0x4727d3),this['_defaultCallbacks']['set']('formatInline:accept',_0x3b2bf8),this['_defaultCallbacks']['set']('formatInline:discard',_0x28ccae),this['_defaultCallbacks']['set']('formatInline:join',_0x24c008),this['_defaultCallbacks']['set']('formatInline:chain',_0x28ccae),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3b2bf8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x28ccae),this['_defaultCallbacks']['set']('formatBlock:join',_0x24c008),this['_defaultCallbacks']['set']('formatBlock:chain',_0x28ccae),this['_defaultCallbacks']['set']('attribute:accept',_0x28ccae),this['_defaultCallbacks']['set']('attribute:discard',(_0x564de8,_0x35db74)=>{if(!_0x35db74)return;const _0x12fbfa=this['_editor']['plugins']['get'](TrackChangesEditing);this['_model']['change'](_0x2b9b2a=>{if(_0x35db74['key']==renameAttributeKey)for(const _0x17b8a6 of _0x564de8){const _0x4ed414=_0x17b8a6['start']['nodeAfter'],_0x414bba=_0x35db74['oldValue'];_0x2b9b2a['rename'](_0x4ed414,_0x414bba);}else{if(_0x12fbfa['_isBlockAttribute'](_0x35db74['key'])){for(const _0x405a1b of _0x564de8)void 0x0!==_0x35db74['oldValue']?_0x2b9b2a['setAttribute'](_0x35db74['key'],_0x35db74['oldValue'],_0x405a1b['start']['nodeAfter']):_0x2b9b2a['removeAttribute'](_0x35db74['key'],_0x405a1b['start']['nodeAfter']);}else{for(const _0x1ff552 of _0x564de8)_0x35db74['oldValue']?_0x2b9b2a['setAttribute'](_0x35db74['key'],_0x35db74['oldValue'],_0x1ff552):_0x2b9b2a['removeAttribute'](_0x35db74['key'],_0x1ff552);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x24c008);}}function getIntersectionsWithMultipleRanges(_0x4da8f6,_0x3444d2){const _0x2b766c=[];for(const _0x595d8d of _0x3444d2){const _0xb2b021=_0x4da8f6['getIntersection'](_0x595d8d);_0xb2b021&&_0x2b766c['push'](_0xb2b021);}return _0x2b766c;}function getDifferencesWithMultipleRanges(_0x3ffb6e,_0x976339){const _0x555afd=[_0x3ffb6e];for(const _0x529565 of _0x976339){let _0x36e7a6=0x0;for(;_0x36e7a6<_0x555afd['length'];){const _0x156969=_0x555afd[_0x36e7a6]['getDifference'](_0x529565);_0x555afd['splice'](_0x36e7a6,0x1,..._0x156969),_0x36e7a6+=_0x156969['length'];}}return _0x555afd;}function _isInObject(_0x3efc11,_0xffa44,_0x2fd321){for(const _0x13a0d0 of _0xffa44['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x13a0d0['root']==_0x13a0d0)return!0x1;if(!_0x2fd321['containsItem'](_0x13a0d0))return!0x1;if(_0x3efc11['isObject'](_0x13a0d0)||_0x3efc11['isLimit'](_0x13a0d0))return!0x0;}return!0x1;}function rangeOnOpeningTag(_0x394840){return _0x394840['end']['parent']==_0x394840['start']['nodeAfter']&&_0x394840['end']['isAtStart'];}function rangeOnClosingTag(_0x4a8d48){return _0x4a8d48['start']['parent']==_0x4a8d48['end']['nodeBefore']&&_0x4a8d48['start']['isAtEnd'];}function trimFormatInlineSuggestionRange(_0x115346,_0x254d8d,_0x481c00,_0xf87ffe){const _0x24beba=_0x4cefb7=>!_0x4cefb7['item']['is']('$textProxy')&&!_0xf87ffe['isObject'](_0x4cefb7['item']),_0x2e12c7=_0x115346['start']['getLastMatchingPosition'](_0x24beba),_0x327077=_0x115346['end']['getLastMatchingPosition'](_0x24beba,{'direction':'backward'});return(!_0x115346['start']['isEqual'](_0x2e12c7)||!_0x115346['end']['isEqual'](_0x327077))&&(_0x2e12c7['isBefore'](_0x327077)?_0x481c00['updateMarker'](_0x254d8d,{'range':_0x481c00['createRange'](_0x2e12c7,_0x327077)}):_0x481c00['removeMarker'](_0x254d8d),!0x0);}function createFormatSubType(_0x293628){return hashObject(_0x293628);}function isCorrectFormatBlockSuggestionRange(_0xbaec19){const _0xcc34af=_0xbaec19['start']['nodeAfter'];return _0xcc34af&&_0xcc34af['is']('element');}function isEmptyRange(_0x494b2b){return rangeOnOpeningTag(_0x494b2b)||rangeOnClosingTag(_0x494b2b);}function isIntersectingWithOtherMarkers(_0x3b9fd6,_0x11b42e){try{const _0xae99b2=_0x3b9fd6['getRange']();for(const _0x37ebb7 of _0x11b42e)if(_0x3b9fd6!==_0x37ebb7&&_0xae99b2&&_0xae99b2['isIntersecting'](_0x37ebb7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function fixAttributeSuggestionRange(_0x530215,_0x3b034a){return null==_0x530215['end']['nodeBefore']&&_0x530215['end']['parent']==_0x530215['start']['nodeAfter']?createBlockFormatRangeForElement(_0x530215['start']['nodeAfter'],_0x3b034a):_0x530215;}function createBlockFormatRangeForElement(_0x4e91f1,_0x34a150){const _0x68b682=_0x34a150['schema']['isObject'](_0x4e91f1)||_0x34a150['schema']['isSelectable'](_0x4e91f1);return _0x34a150['createRange'](_0x34a150['createPositionAt'](_0x4e91f1,'before'),_0x68b682?_0x34a150['createPositionAfter'](_0x4e91f1):_0x34a150['createPositionAt'](_0x4e91f1,'end'));}function canChainSuggestions(_0x52c79b,_0x4f4941,_0x1997ed,_0x55abe1){return!!_haveSameAttributes(_0x52c79b,_0x4f4941)&&_0x1997ed['end']['isEqual'](_0x55abe1['start']);}function _haveSameAttributes(_0x19bd1f,_0x745c6c){if(!_0x19bd1f['_isDataLoaded']||!_0x745c6c['_isDataLoaded'])return!0x1;const _0x14b776=new Set(Object['keys'](_0x19bd1f['attributes'])),_0x4a5313=new Set(Object['keys'](_0x745c6c['attributes']));if(_0x14b776['delete']('groupId'),_0x4a5313['delete']('groupId'),0x0==_0x14b776['size']&&0x0==_0x4a5313['size'])return!0x0;if(_0x14b776['size']!=_0x4a5313['size'])return!0x1;const _0x11d3be={..._0x19bd1f['attributes']},_0x1f9a70={..._0x745c6c['attributes']};return delete _0x11d3be['groupId'],delete _0x1f9a70['groupId'],JSON['stringify'](_0x11d3be)==JSON['stringify'](_0x1f9a70);}function _areSimilarAttributes(_0x49cd5d,_0x29c0de){const _0x556da8=_cleanUpAttributes(_0x49cd5d['attributes']),_0x2e84ad=_cleanUpAttributes(_0x29c0de);if(!_0x49cd5d['_isDataLoaded'])return!0x1;for(const _0x469d78 of Object['keys'](_0x2e84ad))if(!isEqual(_0x556da8[_0x469d78],_0x2e84ad[_0x469d78]))return!0x1;return!0x0;}function _cleanUpAttributes(_0x256118){const _0x468431=Object['assign']({},_0x256118);return delete _0x468431['skipNestingCheck'],delete _0x468431['tablePasteChainId'],_0x468431;}function _getAttributeKeyFromSubType(_0x49b70e){return _0x49b70e['split']('|')[0x0];}async function checkLicense$1(_0x164021){const _0x50066b=_0x6d19c([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]),_0x39abd2=window[_0x6d19c([0x44,0x61,0x74,0x65])][_0x6d19c([0x6e,0x6f,0x77])](),_0x1d2449=_0x164021[_0x6d19c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12b35e=new window[(_0x6d19c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfa26b5=>{_0x1d2449[_0x6d19c([0x6f,0x6e,0x63,0x65])](_0x6d19c([0x72,0x65,0x61,0x64,0x79]),_0xfa26b5);}),_0x443f4c={[_0x6d19c([0x6b,0x74,0x79])]:_0x6d19c([0x45,0x43]),[_0x6d19c([0x75,0x73,0x65])]:_0x6d19c([0x73,0x69,0x67]),[_0x6d19c([0x63,0x72,0x76])]:_0x6d19c([0x50,0x2d,0x32,0x35,0x36]),[_0x6d19c([0x78])]:_0x6d19c([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]),[_0x6d19c([0x79])]:_0x6d19c([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]),[_0x6d19c([0x61,0x6c,0x67])]:_0x6d19c([0x45,0x53,0x32,0x35,0x36])},_0x10f14b=_0x1d2449[_0x6d19c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6d19c([0x67,0x65,0x74])](_0x6d19c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5b6382=await(async function(){let _0x45f550,_0x2bcd6a=null,_0x489643=null;try{if(_0x10f14b==_0x6d19c([0x47,0x50,0x4c]))return _0x6d19c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45f550=(function(){const _0x30c5d0=_0x10f14b[_0x6d19c([0x73,0x70,0x6c,0x69,0x74])](_0x6d19c([0x2e]));if(0x3!=_0x30c5d0[_0x6d19c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5bd644=_0x30c5d0[0x1];return _0x2c4ab3(_0x5bd644);function _0x2c4ab3(_0x3eb9a2){const _0x14b12b=_0x454d5b(_0x3eb9a2);return _0x14b12b&&_0x1c462e()?_0x14b12b:null;function _0x1c462e(){const _0xe60adb=_0x14b12b[_0x6d19c([0x6a,0x74,0x69])],_0x571e75=window[_0x6d19c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe60adb[_0x6d19c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe60adb[_0x6d19c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53a22a={..._0x14b12b,[_0x6d19c([0x6a,0x74,0x69])]:_0xe60adb[_0x6d19c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe60adb[_0x6d19c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53a22a[_0x6d19c([0x76,0x63])],_0x509602(_0x53a22a)==_0x571e75;}}}()),!_0x45f550)return _0x6d19c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x45f550[_0x6d19c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x489643=function(_0xd36ad9,_0x544b9b){return new window[(_0x6d19c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xef06ed=>{if(_0x10d310())return _0xef06ed(_0x6d19c([0x56,0x61,0x6c,0x69,0x64]));_0x4a79fa(),_0x1d2449[_0x6d19c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6d19c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b5c7f=!0x1;const _0x17f142=uid();function _0x466a72(_0x14c811){return!!_0x14c811&&(typeof _0x14c811===_0x6d19c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14c811===_0x6d19c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14c811[_0x6d19c([0x74,0x68,0x65,0x6e])]===_0x6d19c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14c811[_0x6d19c([0x63,0x61,0x74,0x63,0x68])]===_0x6d19c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x56120e(_0x319071){_0x258aef(_0x319071)[_0x6d19c([0x74,0x68,0x65,0x6e])](_0x2f29fe=>{if(!_0x2f29fe||_0x2f29fe[_0x6d19c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6d19c([0x6f,0x6b]))return _0x6d19c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56e64a(_0x509602(_0x17f142+_0x544b9b))!=_0x2f29fe[_0x6d19c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6d19c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6d19c([0x56,0x61,0x6c,0x69,0x64]);})[_0x6d19c([0x74,0x68,0x65,0x6e])](_0x47dbae=>(_0x2c5e96(),_0x47dbae),()=>{const _0x5ac9af=_0x4355cf();return null==_0x5ac9af?(_0x2c5e96(),_0x6d19c([0x56,0x61,0x6c,0x69,0x64])):_0x6d19c(_0x39abd2-_0x5ac9af>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6d19c([0x74,0x68,0x65,0x6e])](_0xef06ed)[_0x6d19c([0x63,0x61,0x74,0x63,0x68])](()=>{_0xef06ed(_0x6d19c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5061ac=0x36ee80;function _0x2c5e96(){const _0x363baf=_0x6d19c([0x6c,0x6c,0x63,0x74,0x2d])+_0x56e64a(_0x509602(_0xd36ad9)),_0x4b174c=_0x63f804(_0x56e64a(window[_0x6d19c([0x4d,0x61,0x74,0x68])][_0x6d19c([0x63,0x65,0x69,0x6c])](_0x39abd2/_0x5061ac)));window[_0x6d19c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6d19c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x363baf,_0x4b174c);}function _0x4355cf(){const _0xe4e784=_0x6d19c([0x6c,0x6c,0x63,0x74,0x2d])+_0x56e64a(_0x509602(_0xd36ad9)),_0x3dbab1=window[_0x6d19c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6d19c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe4e784);return _0x3dbab1?window[_0x6d19c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x63f804(_0x3dbab1),0x10)*_0x5061ac:null;}function _0x258aef(_0x326733){return new window[(_0x6d19c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28850d,_0x5dddbe)=>{_0x326733[_0x6d19c([0x74,0x68,0x65,0x6e])](_0x28850d,_0x5dddbe),window[_0x6d19c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dddbe,0x1d4c0);});}}_0x1d2449[_0x6d19c([0x6f,0x6e])](_0x6d19c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f74ce,_0x20ffa4)=>{if(_0x20ffa4[0x0]!=_0xd36ad9)return _0xef06ed(_0x6d19c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20ffa4[0x1]={..._0x20ffa4[0x1],[_0x6d19c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17f142};},{[_0x6d19c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6d19c([0x68,0x69,0x67,0x68])}),_0x1d2449[_0x6d19c([0x6f,0x6e])](_0x6d19c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x54f5ff=>{_0x466a72(_0x54f5ff[_0x6d19c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b5c7f=!0x0,_0x56120e(_0x54f5ff[_0x6d19c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6d19c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6d19c([0x6c,0x6f,0x77])}),_0x12b35e[_0x6d19c([0x74,0x68,0x65,0x6e])](()=>{_0x2b5c7f||_0xef06ed(_0x6d19c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10d310(){return _0x1d2449[_0x6d19c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6d19c([0x76,0x69,0x65,0x77])][_0x6d19c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6d19c([0x61,0x75,0x74,0x6f]);}function _0x4a79fa(){_0x1d2449[_0x6d19c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6d19c([0x76,0x69,0x65,0x77])][_0x6d19c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6d19c([0x61,0x75,0x74,0x6f]);}}(_0x45f550[_0x6d19c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45f550[_0x6d19c([0x6a,0x74,0x69])]));const _0x340988=await(async function(){let _0x31f219=!0x0;try{const _0x3f2d98=_0x10f14b[_0x6d19c([0x73,0x70,0x6c,0x69,0x74])](_0x6d19c([0x2e])),[_0x2f79fd,_0x266cd2,_0x50411a]=_0x3f2d98;return _0x234cdf(_0x2f79fd),await _0x4782be(_0x2f79fd,_0x266cd2,_0x50411a),_0x31f219;}catch{return!0x1;}function _0x234cdf(_0x211be4){const _0x368df5=_0x454d5b(_0x211be4);_0x368df5&&_0x368df5[_0x6d19c([0x61,0x6c,0x67])]==_0x6d19c([0x45,0x53,0x32,0x35,0x36])||(_0x31f219=!0x1);}async function _0x4782be(_0x25030a,_0x55243a,_0x5065bf){const _0x5c4d28=window[_0x6d19c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6d19c([0x66,0x72,0x6f,0x6d])](_0x52f398(_0x5065bf),_0xf4bf71=>_0xf4bf71[_0x6d19c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d9b16=new window[(_0x6d19c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6d19c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25030a+_0x6d19c([0x2e])+_0x55243a),_0xa25f6c=window[_0x6d19c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6d19c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa25f6c)return;const _0x3c5b98=await _0xa25f6c[_0x6d19c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6d19c([0x6a,0x77,0x6b]),_0x443f4c,{[_0x6d19c([0x6e,0x61,0x6d,0x65])]:_0x6d19c([0x45,0x43,0x44,0x53,0x41]),[_0x6d19c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6d19c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6d19c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa25f6c[_0x6d19c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6d19c([0x6e,0x61,0x6d,0x65])]:_0x6d19c([0x45,0x43,0x44,0x53,0x41]),[_0x6d19c([0x68,0x61,0x73,0x68])]:{[_0x6d19c([0x6e,0x61,0x6d,0x65])]:_0x6d19c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3c5b98,_0x5c4d28,_0x5d9b16)||(_0x31f219=!0x1);}}());return _0x340988?(function(){const _0x443350=_0x45f550[_0x6d19c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x443350)return!0x1;if(_0x443350[_0x6d19c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6d19c([0x2a])))return!0x0;if(_0x443350[_0x6d19c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6d19c([0x54,0x43])))return!0x0;if(_0x443350[_0x6d19c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6d19c([0x52,0x54,0x43]))){if(_0x3e5c57(_0x6d19c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x396520=_0x6d19c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x1d2449[_0x6d19c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6d19c([0x67,0x65,0x74])](_0x396520))[_0x6d19c([0x73,0x74,0x61,0x74,0x65])]==_0x6d19c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x3e5c57(_0x6d19c([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]))||_0x3e5c57(_0x6d19c([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 _0x396520;return!0x1;}())?(function(){const _0x36961d=[_0x6d19c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6d19c([0x74,0x72,0x69,0x61,0x6c])][_0x6d19c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45f550[_0x6d19c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x39abd2/0x3e8:0x69d59a80;return _0x45f550[_0x6d19c([0x65,0x78,0x70])]<_0x36961d;}())?_0x6d19c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x4f02e6=_0x45f550[_0x6d19c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f02e6||0x0==_0x4f02e6[_0x6d19c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x145cbe}=new URL(window[_0x6d19c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4f02e6[_0x6d19c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x145cbe))return!0x0;const _0x5e0c8b=_0x145cbe[_0x6d19c([0x73,0x70,0x6c,0x69,0x74])](_0x6d19c([0x2e]));return _0x4f02e6[_0x6d19c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4760a9=>_0x4760a9[_0x6d19c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6d19c([0x2a])))[_0x6d19c([0x6d,0x61,0x70])](_0x2b5564=>_0x2b5564[_0x6d19c([0x73,0x70,0x6c,0x69,0x74])](_0x6d19c([0x2e])))[_0x6d19c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x208dde=>_0x208dde[_0x6d19c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e0c8b[_0x6d19c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6d19c([0x6d,0x61,0x70])](_0xc5d221=>Array(_0x5e0c8b[_0x6d19c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc5d221[_0x6d19c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6d19c([0x66,0x69,0x6c,0x6c])](_0xc5d221[0x0]===_0x6d19c([0x2a])?_0x6d19c([0x2a]):'')[_0x6d19c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc5d221))[_0x6d19c([0x73,0x6f,0x6d,0x65])](_0x38e4b3=>_0x5e0c8b[_0x6d19c([0x65,0x76,0x65,0x72,0x79])]((_0xabd67c,_0x26a32d)=>_0x38e4b3[_0x26a32d]===_0xabd67c||_0x38e4b3[_0x26a32d]===_0x6d19c([0x2a])));}())?(_0x45f550[_0x6d19c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6d19c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2bcd6a=function(_0x58eb82){const _0x5019f1=new window[(_0x6d19c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55e3fc=>setTimeout(_0x55e3fc,0x93ecc)),_0x24f4b9=_0x12b35e[_0x6d19c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6d19c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49a3cd=>{let _0x3609f6=0x0;_0x1d2449[_0x6d19c([0x6d,0x6f,0x64,0x65,0x6c])][_0x6d19c([0x6f,0x6e])](_0x6d19c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xb4f8bc,_0x3a03c1)=>{_0x3a03c1[0x0][_0x6d19c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3609f6++,0x5e8==_0x3609f6&&(_0x49a3cd(),_0xb4f8bc[_0x6d19c([0x6f,0x66,0x66])]());});})),_0x43c049=[_0x5019f1,_0x24f4b9];return window[_0x6d19c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6d19c([0x72,0x61,0x63,0x65])](_0x43c049)[_0x6d19c([0x74,0x68,0x65,0x6e])](()=>_0x58eb82);}(_0x6d19c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2bcd6a&&_0x489643)return new window[(_0x6d19c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42fa32,_0x185885)=>{_0x2bcd6a[_0x6d19c([0x74,0x68,0x65,0x6e])](_0x42fa32,_0x185885),_0x489643[_0x6d19c([0x74,0x68,0x65,0x6e])](_0xe93d7f=>{_0xe93d7f!=_0x6d19c([0x56,0x61,0x6c,0x69,0x64])&&_0x42fa32(_0xe93d7f);},_0x185885);});return _0x2bcd6a||_0x489643||_0x6d19c([0x56,0x61,0x6c,0x69,0x64]);}())):_0x6d19c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6d19c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6d19c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x6d19c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x454d5b(_0x3680c4){return _0x3680c4[_0x6d19c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6d19c([0x65,0x79]))?JSON[_0x6d19c([0x70,0x61,0x72,0x73,0x65])](_0x52f398(_0x3680c4)):null;}function _0x52f398(_0x1d5bde){return window[_0x6d19c([0x61,0x74,0x6f,0x62])](_0x1d5bde[_0x6d19c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6d19c([0x2b]))[_0x6d19c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6d19c([0x2f])));}function _0x509602(_0x5b9462){let _0x4305fc=0x1505;function _0x14ac96(_0x15872c){for(let _0x17d6ae=0x0;_0x17d6ae<_0x15872c[_0x6d19c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17d6ae++){const _0x4a5a35=_0x15872c[_0x6d19c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x17d6ae);_0x4305fc=(_0x4305fc<<0x5)+_0x4305fc+_0x4a5a35,_0x4305fc&=_0x4305fc;}}return function _0x255be1(_0x481922){Array[_0x6d19c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x481922)?_0x481922[_0x6d19c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x255be1):_0x481922&&typeof _0x481922==_0x6d19c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6d19c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x481922)[_0x6d19c([0x73,0x6f,0x72,0x74])]()[_0x6d19c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a5f0d,_0x548c73])=>{_0x14ac96(_0x3a5f0d),_0x255be1(_0x548c73);}):_0x14ac96(window[_0x6d19c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x481922));}(_0x5b9462),_0x4305fc>>>0x0;}function _0x56e64a(_0x4f4cec){return _0x4f4cec[_0x6d19c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6d19c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6d19c([0x30]));}function _0x63f804(_0x2c28a0){return _0x2c28a0[_0x6d19c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6d19c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6d19c([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e5c57(_0x1be62f){return _0x1d2449[_0x6d19c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6d19c([0x68,0x61,0x73])](_0x1be62f);}function _0x4a78ac(){}function _0x6d19c(_0x4b7e6d){return _0x4b7e6d['map'](_0x1ea407=>String['fromCharCode'](_0x1ea407))['join']('');}!function(_0x136344){const _0x4967c1=(function(){const _0xdc57bf=window[_0x6d19c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6d19c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6d19c([0x6e,0x6f,0x77])]())[_0x6d19c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6d19c([0x2e]),'');let _0x242a3f=_0x6d19c([0x52]);for(let _0x592ce3=0x0;_0x592ce3<_0xdc57bf[_0x6d19c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x592ce3+=0x2){let _0x18ffeb=window[_0x6d19c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdc57bf[_0x6d19c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x592ce3,_0x592ce3+0x2));_0x18ffeb>=_0x50066b[_0x6d19c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18ffeb-=_0x50066b[_0x6d19c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x242a3f+=_0x50066b[_0x18ffeb];}return _0x242a3f;}());_0x1d2449[_0x4967c1]=_0x6d19c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x136344,_0x136344!=_0x6d19c([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x12b35e,_0x1d2449[_0x6d19c([0x6d,0x6f,0x64,0x65,0x6c])][_0x6d19c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4a78ac,_0x1d2449[_0x6d19c([0x6d,0x6f,0x64,0x65,0x6c])][_0x6d19c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4a78ac,_0x1d2449[_0x6d19c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6d19c([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5b6382);}class SuggestionController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x154cc7,_0x5d091c,_0xe10f1a,_0xe29a49){super(),this['model']=_0x5d091c,this['view']=_0xe10f1a,this['commentThreadController']=_0xe29a49,this['_editor']=_0x154cc7,this['_acceptCommand']=_0x154cc7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x154cc7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2cfd89,_0xd68141)=>_0x2cfd89||_0xd68141),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x105205=>_0x105205&&this['_editor']['model']['canEditAt'](_0x5d091c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5e9b24=>_0x5e9b24&&this['_editor']['model']['canEditAt'](_0x5d091c['getRanges']())),this['_pendingAction']=null,_0xe10f1a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xe10f1a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xe10f1a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xe10f1a,'change:isDirty',()=>{_0xe10f1a['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 _0x415520=getTranslation$1(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x415520);}['_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(_0x490043,_0x521d3f,_0x53509d,_0x468aaf){super(_0x490043),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new AriaDescriptionView(_0x490043,getTranslation$1(_0x490043,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x521d3f['authoredAt']),this['bind']('authoredAt')['to'](_0x521d3f),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',_0x521d3f,'authoredAt',this,'descriptionParts',(_0x33e67f,_0x316517,_0x3dfd11)=>{const _0x17a631=_0x3dfd11['map'](_0x2e49a9=>renderDescription(_0x2e49a9['content']))['join']('.\x20')+'.';return getTranslation$1(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x33e67f-0x1,_0x521d3f['author']['name'],_0x316517?_0x468aaf['formatDateTime'](_0x316517):'',new DOMParser()['parseFromString'](_0x17a631,'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':_0x193984=>_0x193984['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x521d3f,this['_localUser']=_0x53509d,this['_config']=_0x468aaf,_0x468aaf['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:_0x115b9b}=this['_config'];this['commentsListView']=new _0x115b9b(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',_0x51edc6=>_0x51edc6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1d37fd,_0x204b68)=>_0x1d37fd||!!_0x204b68);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2a5ed5}=this['_config'],_0x5da043=new _0x2a5ed5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xfd520b=_0x5da043['commentInputView'];return _0x5da043['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xfd520b,'value',(_0x32c87f,_0x36e8bf,_0x1cea57)=>!!_0x1cea57||_0x32c87f&&!_0x36e8bf),_0xfd520b['on']('submit',(_0x37778a,_0x26dddc)=>{this['fire']('addComment',_0x26dddc),_0xfd520b['editor']['setData']('');}),_0xfd520b['on']('cancel',()=>this['focus']()),_0xfd520b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5da043;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x1eec63,_0x52060e,_0x43938a,_0x45bcd4){super(_0x1eec63,_0x52060e,_0x43938a,_0x45bcd4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x166664=>_0x166664&&_0x166664[0x0]?_0x166664[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xbe8cb1,_0x3012e5)=>{let _0x24b618='';for(const _0x5054a6 of _0xbe8cb1)_0x24b618+='<p>'+renderDescription(_0x5054a6['content'],_0x5054a6['color'])+'</p>';return _0x3012e5?_0x24b618:trimHtml(_0x24b618,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x45bcd4['SuggestionView'](_0x1eec63,_0x52060e,{'formatDateTime':_0x45bcd4['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 _0x1d1654=this['bindTemplate'],_0x1f1fe6=[this['suggestionView']];this['commentsListView']&&_0x1f1fe6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f1fe6['push'](this['commentThreadInputView']),_0x1f1fe6['push'](this['ariaDescriptionView']);const _0x4c7128={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1d1654['if']('isActive','ck-suggestion-wrapper--active'),_0x1d1654['to']('type',_0x189552=>'ck-suggestion-'+_0x189552),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':_0x1d1654['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f1fe6};return _0x4c7128;}['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(_0x193b37,_0x1d4574,_0x398f72){super(_0x193b37),this['_model']=_0x1d4574,this['_config']=_0x398f72,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1d4574),this['acceptButton']=this['_createButton'](getTranslation$1(_0x193b37,'Accept\x20suggestion'),IconCheck,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](getTranslation$1(_0x193b37,'Discard\x20suggestion'),IconCancel,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new UserView(_0x193b37,_0x1d4574['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':_0x7d05c9=>_0x7d05c9['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x309c1f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x309c1f['innerHTML']=this['description'],this['on']('change:description',(_0x59b786,_0x34275c,_0xaee837)=>{_0x309c1f['innerHTML']=_0xaee837;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xa8010b=this['bindTemplate'],_0x4df8d1=[{'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':_0xa8010b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xa8010b['to']('authoredAt',_0x5267ee=>this['_config']['formatDateTime'](_0x5267ee))}]}]},{'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']&&_0x4df8d1['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':_0x4df8d1}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$1(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):getTranslation$1(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$1(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):getTranslation$1(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4e1a34,_0x416ab0,_0x1cdf69,_0x95f8fe,_0x3669cb){const _0x3e1665=new LateFocusButtonView(this['locale']);return _0x3e1665['set']({'label':_0x4e1a34,'icon':_0x416ab0,'tooltip':!0x0,'tooltipPosition':_0x3669cb}),_0x3e1665['extendTemplate']({'attributes':{'class':_0x1cdf69}}),_0x3e1665['on']('execute',()=>{this['fire'](_0x95f8fe,this['_model']['id']);}),_0x3e1665;}['_setupKeyboardNavigation'](){const _0x5a7d28=this['element'];this['keystrokes']['listenTo'](_0x5a7d28);for(const _0x4ca057 of this['focusables'])this['focusTracker']['add'](_0x4ca057['element']),this['keystrokes']['listenTo'](_0x4ca057['element']);this['keystrokes']['set']('enter',(_0x18f4ff,_0x52f8ff)=>{_0x5a7d28===_0x18f4ff['target']&&(this['focusCycler']['focusFirst'](),_0x52f8ff());}),this['keystrokes']['set']('esc',(_0x45e035,_0x29eece)=>{_0x5a7d28!==_0x45e035['target']&&(this['focus'](),_0x29eece());});}}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(_0x4ee5e9){super(_0x4ee5e9),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x158a9c=this['editor']['config'];_0x158a9c['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x158a9c['define']('trackChanges.SuggestionView',SuggestionView),_0x158a9c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x158a9c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1d8542,_0x4a2309){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x11cf86,_0x3e6ac2]of this['_handleControllerBuffer']){const _0x1e0778=this['_suggestionToController']['has'](_0x11cf86);_0x1e0778||_0x3e6ac2?_0x1e0778&&_0x3e6ac2&&this['_destroyController'](_0x11cf86):this['_initializeController'](_0x11cf86);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1d8542,_0x4a2309);}['init'](){const _0x5daf47=this['editor'],_0x2dd44a=_0x5daf47['plugins']['get']('TrackChangesEditing'),_0x53220c=_0x5daf47['plugins']['get']('Annotations'),_0x44953b=_0x5daf47['plugins']['get']('EditorAnnotations'),_0x4e2747=_0x5daf47['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x44953b['addSourceCollector'](()=>{const _0x52a7c9=[];for(const [_0x123f68,_0x29d7e9]of Array['from'](this['_suggestionToController'])){const _0x122572=_0x123f68['getAllAdjacentSuggestions'](),_0x345f09=[];for(const _0x175e30 of _0x122572){if(!_0x175e30['isInContent'])continue;if(_0x175e30['isMultiRange']){_0x345f09['push'](..._0x175e30['getRanges']());continue;}const _0xe48674=_0x175e30['getFirstRange']();if(_0x345f09['length']>0x0){const _0x547c69=_0x345f09[0x0]['getJoined'](_0xe48674);if(_0x547c69){_0x345f09[0x0]=_0x547c69;continue;}}_0x345f09['push'](_0xe48674);}_0x52a7c9['push']([_0x29d7e9['view'],_0x345f09]);}return _0x52a7c9;}),this['listenTo'](_0x2dd44a,'suggestionLoaded',(_0x1c0c07,_0x85c245)=>{this['listenTo'](_0x85c245,'change:previous',(_0x3849c7,_0x15e64e,_0x53354d,_0x7c43c7)=>{_0x85c245['isInContent']&&(null==_0x53354d?(this['_updateController'](_0x7c43c7['head']),this['_handleSuggestionControllerDelayed'](_0x85c245,!0x1)):(this['_updateController'](_0x53354d['head']),null==_0x7c43c7&&this['_handleSuggestionControllerDelayed'](_0x85c245,!0x0)));}),null!==_0x85c245['previous']?this['_updateController'](_0x85c245['head']):this['_handleSuggestionControllerDelayed'](_0x85c245,!0x1);}),this['listenTo'](_0x2dd44a,'suggestionUnloaded',(_0x3044a9,_0x28e1da,_0x5f4581)=>{this['stopListening'](_0x28e1da,'change:previous'),this['_handleControllerBuffer']['delete'](_0x28e1da),this['_suggestionToController']['has'](_0x28e1da)&&this['_destroyController'](_0x28e1da),_0x5f4581&&this['_updateController'](_0x5f4581['head']);}),this['listenTo'](_0x2dd44a,'suggestionChanged',(_0x21f23d,_0x1dc816)=>{this['_updateController'](_0x1dc816);}),this['listenTo'](_0x53220c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4e2747,'addComment',(_0x564f12,{threadId:_0x102473,isFromAdapter:_0x218a22})=>{if(_0x218a22||!_0x2dd44a['hasSuggestion'](_0x102473))return;const _0x2ec86b=_0x2dd44a['getSuggestion'](_0x102473);this['_suggestionToController']['get'](_0x2ec86b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3de936=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ad43a;for(const _0x3311b3 in _0x3de936){const _0x37fd07=_0x3311b3,_0x46efeb=_0x3de936[_0x37fd07];if('trackChangesLicenseKeyValid'==_0x46efeb||'trackChangesLicenseKeyInvalid'==_0x46efeb||'trackChangesLicenseKeyExpired'==_0x46efeb||'trackChangesLicenseKeyDomainLimit'==_0x46efeb||'trackChangesLicenseKeyNotAllowed'==_0x46efeb||'trackChangesLicenseKeyEvaluationLimit'==_0x46efeb||'trackChangesLicenseKeyUsageLimit'==_0x46efeb){delete _0x3de936[_0x37fd07],_0x1ad43a=_0x46efeb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1ad43a&&_0x3de936['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1ad43a&&_0x3de936['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1ad43a&&_0x3de936['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1ad43a&&_0x3de936['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1ad43a&&_0x3de936['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1ad43a&&_0x3de936['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2fc979){const _0x3766aa=this['_suggestionToController']['get'](_0x2fc979);if(!_0x3766aa)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3766aa['view'])||null;}['getSuggestionForAnnotation'](_0x4529d0){const _0x5e2995=this['_viewToController']['get'](_0x4529d0['innerView']);return _0x5e2995?_0x5e2995['model']:null;}['_refreshActiveMarkers'](){const _0x4901b0=this['editor']['plugins']['get']('Annotations'),_0x5d6fca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ac4a5=Array['from'](_0x4901b0['activeAnnotations'],_0xe2ee35=>_0xe2ee35['innerView'])['filter'](_0x54726e=>this['_viewToController']['has'](_0x54726e)),_0x5f0978=[];for(const _0x13984b of _0x1ac4a5){const _0x1c8912=this['_viewToController']['get'](_0x13984b)['model']['getAllAdjacentSuggestions']();_0x5f0978['push'](..._0x1c8912['reduce']((_0x2592bb,_0x4b2c90)=>[..._0x2592bb,..._0x4b2c90['getMarkerNames']()],[]));}_0x5d6fca['activeMarkers']=_0x5f0978;}['_addUIComponentsToFactory'](){const _0x2644e4=this['editor'],_0x2e663c=_0x2644e4['locale'],_0xf0b020=getTranslation$1(_0x2e663c,'Track\x20changes'),_0x3bc689=new Collection([{'type':'switchbutton','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0xf0b020,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x2e663c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x2e663c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x2e663c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x2e663c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2644e4['plugins']['has']('TrackChangesPreview')&&_0x3bc689['addMany']([{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x2e663c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1c3c99 of _0x3bc689)if(isListDropdownButtonDefinition(_0x1c3c99)){const _0x103595=_0x2644e4['commands']['get'](_0x1c3c99['model']['commandName']);_0x1c3c99['model']['bind']('isOn','isEnabled')['to'](_0x103595,'value','isEnabled');}_0x2644e4['ui']['componentFactory']['add']('trackChanges',_0x59ac79=>this['_createToolbarButton'](_0x59ac79,_0x3bc689,_0xf0b020)),_0x2644e4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x54de83=>this['_createMenuBarMenu'](_0x54de83,_0x3bc689,_0xf0b020));}['_createToolbarButton'](_0x3dbc1b,_0x2cfc58,_0x569a14){const _0x141a57=createDropdown(_0x3dbc1b,SplitButtonView),_0xd4ca84=this['editor']['commands']['get']('trackChanges');_0x141a57['buttonView']['set']({'tooltip':_0x569a14,'label':_0x569a14,'icon':IconTrackChanges}),_0x141a57['buttonView']['bind']('isOn')['to'](_0xd4ca84,'value'),_0x141a57['buttonView']['on']('execute',()=>{_0xd4ca84['execute'](),this['editor']['editing']['view']['focus']();}),addListToDropdown(_0x141a57,_0x2cfc58,{'role':'menu'});const _0x9dcc5a=[];for(const _0x4ef6be of _0x2cfc58)isListDropdownButtonDefinition(_0x4ef6be)&&_0x9dcc5a['push'](this['editor']['commands']['get'](_0x4ef6be['model']['commandName']));const _0x3cd10e=_0x141a57['buttonView'];return _0x3cd10e['actionView']['unbind']('isEnabled'),_0x3cd10e['arrowView']['unbind']('isEnabled'),_0x3cd10e['actionView']['bind']('isEnabled')['to'](_0xd4ca84,'isEnabled'),_0x3cd10e['arrowView']['bind']('isEnabled')['toMany'](_0x9dcc5a,'isEnabled',(..._0x1d5b46)=>_0x1d5b46['some'](_0x59c03f=>_0x59c03f)),_0x141a57['on']('execute',_0x4280b3=>{this['editor']['execute'](_0x4280b3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x141a57;}['_createMenuBarMenu'](_0x2d33ff,_0x377cb4,_0x1817d7){const _0x2b5b6b=new MenuBarMenuView(_0x2d33ff),_0x3542a6=this['editor']['commands']['get']('trackChanges');_0x2b5b6b['buttonView']['set']({'label':_0x1817d7,'icon':IconTrackChanges});const _0xba4d8b=new MenuBarMenuListView(_0x2d33ff);for(const _0x124b9d of _0x377cb4){if('separator'==_0x124b9d['type']){_0xba4d8b['items']['add'](new ListSeparatorView(_0x2d33ff));continue;}const _0x16f8ca=new MenuBarMenuListItemView(_0x2d33ff,_0x2b5b6b),_0x1d1224=new MenuBarMenuListItemButtonView(_0x2d33ff),_0x2c41b3=_0x124b9d['model'];_0x1d1224['bind'](...Object['keys'](_0x2c41b3))['to'](_0x2c41b3),_0x1d1224['delegate']('execute')['to'](_0x2b5b6b),_0x1d1224['on']('execute',()=>{this['editor']['execute'](_0x2c41b3['commandName']),this['editor']['editing']['view']['focus']();}),_0x16f8ca['children']['add'](_0x1d1224),_0xba4d8b['items']['add'](_0x16f8ca);}return _0x2b5b6b['bind']('isEnabled')['to'](_0x3542a6,'isEnabled'),_0x2b5b6b['panelView']['children']['add'](_0xba4d8b),_0x2b5b6b;}['_initializeController'](_0x1de8f8){const _0x57907f=this['editor'],_0x504f0c=_0x57907f['config'],_0x5099fa=_0x57907f['plugins']['get']('Annotations'),_0x3968ac=_0x57907f['plugins']['get']('CommentsRepository'),_0x3fd3b7=_0x57907f['plugins']['get']('EditorAnnotations'),_0x66450=_0x57907f['plugins']['get'](Users)['me'],_0x247bb3=_0x504f0c['get']('trackChanges')['SuggestionThreadView'],_0x589e2b=_0x504f0c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x363487,CommentThreadInputView:_0x2a31cf}=_0x57907f['plugins']['get']('CommentsUI');let _0x59c3ee,_0x2c41d4,_0x1f66db;this['_annotationViews']['has'](_0x1de8f8['id'])?(_0x2c41d4=this['_annotationViews']['get'](_0x1de8f8['id']),_0x59c3ee=_0x2c41d4['mainView']):(_0x59c3ee=new _0x247bb3(_0x57907f['locale'],_0x1de8f8,_0x66450,{'disableComments':this['_disableComments'],'editorConfig':{..._0x504f0c['get']('comments.editorConfig'),'licenseKey':_0x504f0c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x504f0c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x504f0c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x504f0c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':getDateTimeFormatter(_0x504f0c['get']('locale'),_0x57907f['locale']),'CommentView':_0x504f0c['get']('comments')['CommentView'],'CommentsListView':_0x363487,'CommentThreadInputView':_0x2a31cf,'SuggestionView':_0x589e2b}),_0x59c3ee['suggestionView']['acceptButton']['on']('execute',()=>{_0x57907f['editing']['view']['focus']();}),_0x59c3ee['suggestionView']['discardButton']['on']('execute',()=>{_0x57907f['editing']['view']['focus']();}),_0x2c41d4=_0x5099fa['createAnnotationView'](this['editor']['locale'],_0x59c3ee),_0x2c41d4['bind']('isDirty')['to'](_0x59c3ee,'isDirty'),_0x2c41d4['bind']('length')['to'](_0x59c3ee),_0x2c41d4['bind']('type')['to'](_0x59c3ee,'type',_0x57673a=>'suggestion-'+_0x57673a),_0x59c3ee['on']('escape',()=>{_0x1f66db['fire']('escape');}),this['_annotationViews']['set'](_0x1de8f8['id'],_0x2c41d4));const _0x351092=_0x3968ac['createCommentThreadController'](_0x1de8f8['commentThread'],_0x59c3ee),_0x634033=new SuggestionController(_0x57907f,_0x1de8f8,_0x59c3ee,_0x351092),_0xe82cc9=_0x1de8f8['getAllAdjacentSuggestions']()['filter'](_0x211988=>_0x211988['isInContent']);_0x59c3ee['descriptionParts']=_0x57907f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xe82cc9),this['_suggestionToController']['set'](_0x1de8f8,_0x634033),this['_viewToController']['set'](_0x59c3ee,_0x634033);const _0x457950=()=>{const _0x5f4a43=[],_0x4485cd=_0x1de8f8['getAllAdjacentSuggestions']()['filter'](_0x27a350=>_0x27a350['isInContent']);for(const _0x2c38c7 of _0x4485cd)_0x5f4a43['push'](..._0x2c38c7['getMarkers']());return getAllMarkersDomElementsSorted(_0x57907f['editing'],_0x5f4a43);};_0x1f66db=_0x5099fa['createAnnotation']({'view':_0x2c41d4,'target':_0x457950,'type':()=>'suggestion-'+_0x634033['view']['type'],'isVisible':!!_0x457950()}),_0x3968ac['_bindAnnotationToEditors'](_0x59c3ee,_0x1f66db),_0x5099fa['add'](_0x1f66db),_0x3fd3b7['registerAnnotation'](_0x1f66db);}['_destroyController'](_0x40bcd9){const _0xacb43f=this['editor']['plugins']['get']('CommentsRepository'),_0x375a60=this['editor']['plugins']['get']('Annotations'),_0x9ac0c7=this['_suggestionToController']['get'](_0x40bcd9),_0xcb4683=_0x9ac0c7['view'],_0x1cb501=_0x375a60['getByInnerView'](_0xcb4683);_0xacb43f['_unbindEditors'](_0xcb4683),_0x1cb501&&_0x375a60['remove'](_0x1cb501),this['_suggestionToController']['delete'](_0x40bcd9),this['_viewToController']['delete'](_0xcb4683),_0x9ac0c7['destroy']();}['_updateController'](_0x4cc193){if(!_0x4cc193['isInContent']||!this['_suggestionToController']['has'](_0x4cc193))return;const _0x3570de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2db9d6=this['_suggestionToController']['get'](_0x4cc193),_0x353a57=_0x4cc193['getAllAdjacentSuggestions']();_0x2db9d6['view']['descriptionParts']=_0x3570de['descriptionFactory']['getDescriptions'](_0x353a57);}['destroy'](){for(const _0x33e33c of this['_suggestionToController']['keys']())this['_destroyController'](_0x33e33c);for(const _0x5e6b2a of this['_annotationViews']['values']())_0x5e6b2a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function isListDropdownButtonDefinition(_0x14cb4b){return'model'in _0x14cb4b;}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'](_0x2abdc2){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x2abdc2;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x2b1977){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x2b1977);}['getSuggestions']({skipNotAttached:_0x166c49=!0x1,toJSON:_0x3c9afa=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x166c49,'toJSON':_0x3c9afa});}['getSuggestion'](_0x1f9919){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x1f9919);}}const blackListedPlugins=['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 _0x5798fd=this['editor'];if(_0x5798fd['config']['define']('trackChangesData.editorCreator',_0x3bad3d=>{const _0x277a73=_0x5798fd['model']['document']['getRootNames']()['reduce']((_0x3796e8,_0x46a9ce)=>(_0x3796e8[_0x46a9ce]='',_0x3796e8),{});return _0x5798fd['constructor']['create'](_0x277a73,_0x3bad3d);}),'function'!=typeof _0x5798fd['config']['get']('trackChangesData')['editorCreator'])throw new CKEditorError('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x408475){return getTrackChangesData(this['editor'],!0x0,_0x408475);}['getDataWithDiscardedSuggestions'](_0x4925eb){return getTrackChangesData(this['editor'],!0x1,_0x4925eb);}}class TrackChangesDataGetter extends Plugin{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x139837){function _0x239508(_0x5bc94f){return _0x5bc94f['map'](_0x484da6=>String['fromCharCode'](_0x484da6))['join']('');}super(_0x139837),this['result']='end',_0x139837[_0x239508([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x239508([0x76,0x69,0x65,0x77])][_0x239508([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x239508([0x61,0x75,0x74,0x6f]),_0x139837[_0x239508([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x239508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x239508([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x239508([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x239508([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(_0x406cdd){return void 0x0!==_0x406cdd['getRootsAttributes'];}async function getTrackChangesData(_0x33eda8,_0x4bf7b0,_0x421f78){const _0xa08bc5=sanitizeEditorConfig(_0x33eda8,blackListedPlugins);_0xa08bc5['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),_0xa08bc5['rootsAttributes']=isMultiRootEditor$1(_0x33eda8)?_0x33eda8['getRootsAttributes']():void 0x0;const _0x26a11c=document['createDocumentFragment'](),_0x4cdf9b=_0x33eda8['config']['get']('trackChangesData')['editorCreator'],_0x2dc0f1=await _0x4cdf9b(_0xa08bc5,()=>createAttachedElement(_0x26a11c));copyEditorData(_0x33eda8,_0x2dc0f1),_0x2dc0f1['execute'](_0x4bf7b0?'acceptAllSuggestions':'discardAllSuggestions');const _0x38216b=isMultiRootEditor$1(_0x2dc0f1)?_0x2dc0f1['getFullData'](_0x421f78):_0x2dc0f1['data']['get'](_0x421f78);return await _0x2dc0f1['destroy'](),_0x38216b;}function copyEditorData(_0x397194,_0x92a1b9){const _0x120250=_0x397194['model']['document']['getRootNames']()['reduce']((_0x524663,_0x301e28)=>(_0x524663[_0x301e28]=_0x397194['data']['get']({'rootName':_0x301e28}),_0x524663),{}),_0x1ba70e=_0x397194['plugins']['get']('Users')['users']['map'](_0x206492=>({'id':_0x206492['id'],'name':_0x206492['name']})),_0x228f28=_0x397194['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x29f50f=_0x397194['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x52a8e9=_0x92a1b9['plugins']['get']('Users'),_0x3a014d=_0x92a1b9['plugins']['get']('TrackChangesEditing'),_0x308ed=_0x92a1b9['plugins']['get']('CommentsRepository');for(const _0x1e9e48 of _0x308ed['getCommentThreads']())_0x1e9e48['remove']();for(const _0x341551 of _0x1ba70e)_0x52a8e9['getUser'](_0x341551['id'])||_0x52a8e9['addUser'](_0x341551);_0x52a8e9['me']||_0x52a8e9['useAnonymousUser']();for(const _0x5b1a11 of _0x29f50f)_0x308ed['addCommentThread'](_0x5b1a11);for(const _0x4b352a of _0x228f28)_0x3a014d['addSuggestionData'](_0x4b352a);_0x92a1b9['data']['set'](_0x120250);}function createAttachedElement(_0x304eb0){const _0x31326a=document['createElement']('div');return _0x304eb0['appendChild'](_0x31326a),_0x31326a;}class TrackChangesPreviewView extends View{['options'];constructor(_0x4cfda9,_0x1e166f){super(_0x4cfda9),this['options']=_0x1e166f,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'](_0x480015,_0x27f8c3){if(!this['element'])return;const _0x23efc6=[];for(const [_0x56f7b5,_0x354e3a]of _0x480015){const _0x4c5198=document['createElement']('div');_0x4c5198['setAttribute']('data-ck-root-name',_0x56f7b5),_0x4c5198['className']=_0x354e3a['classes']+'\x20ck-track-changes-preview__root-container',_0x4c5198['innerHTML']=_0x354e3a['content'],_0x23efc6['push'](_0x4c5198);}_0x27f8c3(this['element'],_0x23efc6),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends Command{constructor(_0x4411f0){super(_0x4411f0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2d6526=this['editor'],_0x36ecb1=_0x2d6526['locale'],_0x300458=_0x2d6526['plugins']['get']('Dialog');let _0xd9e43d;const _0x406fcf=getEditables(_0x2d6526),_0xa07364=calculateDialogRects(_0x406fcf);_0x300458['show']({'id':'finalContentPreview','title':getTranslation$1(_0x36ecb1,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x36ecb1,{'dialogRects':_0xa07364}),'onHide':()=>{_0xd9e43d['detachFromDom']();},'onShow':()=>{_0x2d6526['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x42c33a=>{const _0x2019a6=this['_standarizeRootsData'](_0x42c33a,_0x2d6526,_0x406fcf);_0x300458['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2019a6,_0x2d6526['config']['get']('trackChanges.preview.renderFunction'));}),_0xd9e43d=new BodyCollection(_0x36ecb1,[_0x300458['view']]),_0xd9e43d['attachToDom'](),_0xd9e43d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2d6526['once']('destroy',()=>{_0xd9e43d['detachFromDom']();});const _0x24e033=_0x300458['view']['headerView']['class'];_0x300458['view']['headerView']['class']=_0x24e033?_0x24e033+'\x20ck-reset_all':'ck-reset_all',_0x300458['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x300458['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x400459=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2cae84=_0x400459['previewMode'],_0x5e1c10={};if('$labels'===_0x2cae84){for(const _0x1fe9e1 of _0x400459['getMergeFieldsIds']())_0x5e1c10[_0x1fe9e1]=_0x400459['getLabel'](_0x1fe9e1)||_0x1fe9e1;}else{const _0x497a54='$defaultValues'===_0x2cae84?_0x400459['getDefaultValues']():_0x400459['getDataSetValues'](_0x2cae84,!0x0);for(const _0x4598ef of Object['entries'](_0x497a54)){const [_0x76a750,_0x5bcf41]=_0x4598ef;_0x5e1c10[_0x76a750]=null!==_0x5bcf41?_0x5bcf41:_0x400459['getLabel'](_0x76a750)||_0x76a750;}}return{'mergeFieldsData':_0x5e1c10};}['_standarizeRootsData'](_0x39140c,_0x1f8dcf,_0x3cae95){let _0x822531;if('string'==typeof _0x39140c){const _0x35d519=_0x1f8dcf['model']['document']['getRootNames']()[0x0];_0x822531={[_0x35d519]:_0x39140c};}else _0x822531=_0x39140c;const _0x24a0a2=this['_fixMediaEmbeds'](_0x822531,_0x1f8dcf);return addEditableClasses(this['_sortRoots'](_0x1f8dcf)['reduce']((_0x541d98,_0x56bb60)=>(_0x541d98['push']([_0x56bb60,{'content':_0x24a0a2[_0x56bb60],'classes':''}]),_0x541d98),[]),_0x3cae95);}['_fixMediaEmbeds'](_0x5075a9,_0x395432){if(!_0x395432['plugins']['has']('MediaEmbedEditing'))return _0x5075a9;const _0x4a10d6=_0x395432['plugins']['get']('MediaEmbedEditing');for(const [_0x2dfa0c,_0x5eb271]of Object['entries'](_0x5075a9)){const _0x51f93d=document['createElement']('div');_0x51f93d['innerHTML']=_0x5eb271,(_0x51f93d['querySelectorAll']('figure.media')['forEach'](_0x474798=>{const _0xc15104=_0x474798['querySelector']('oembed');if(_0xc15104){const _0x35e789=_0xc15104['getAttribute']('url');if(_0x35e789){const _0x3e3975=_0x4a10d6['registry']['getMediaViewElement'](new ViewDowncastWriter(_0x395432['editing']['view']['document']),_0x35e789,{'elementName':'','renderForEditingView':!0x0}),_0x2bd4a0=document['createElement']('div');_0x2bd4a0['classList']['add']('ck-media__wrapper'),_0x3e3975['render'](_0x2bd4a0,_0x395432['editing']['view']['domConverter']),_0xc15104['replaceWith'](_0x2bd4a0);}}}),_0x5075a9[_0x2dfa0c]=_0x51f93d['innerHTML']);}return _0x5075a9;}['_sortRoots'](_0x4f95b4){if(!isMultiRootEditor(_0x4f95b4))return _0x4f95b4['model']['document']['getRootNames']();const _0x392537=[],_0x541c7c=new Map();for(const _0xce48cd of _0x4f95b4['model']['document']['getRootNames']()){const _0x3b2e10=_0x4f95b4['editing']['view']['getDomRoot'](_0xce48cd)['getClientRects']()['item'](0x0);_0x392537['push'](_0xce48cd),_0x541c7c['set'](_0xce48cd,_0x3b2e10);}return _0x392537['sort']((_0x4c848c,_0xece54b)=>{const _0x5d98d0=_0x541c7c['get'](_0x4c848c),_0x3c44fc=_0x541c7c['get'](_0xece54b);return _0x5d98d0['y']-_0x3c44fc['y']||_0x5d98d0['x']-_0x3c44fc['x'];}),_0x392537;}}function getEditables(_0x447665){const _0x4ef210={};if('editables'in _0x447665['ui']['view']){for(const [_0x271dd7,_0x4c7215]of Object['entries'](_0x447665['ui']['view']['editables']))_0x4ef210[_0x271dd7]=_0x4c7215['element'];}else _0x4ef210[_0x447665['model']['document']['getRootNames']()[0x0]]=_0x447665['ui']['view']['editable']['element'];return _0x4ef210;}function calculateDialogRects(_0x28fd9b){let _0x36caf5=0x0;for(const _0x1eb8f9 of Object['values'](_0x28fd9b))_0x36caf5=Math['max'](_0x36caf5,_0x1eb8f9['getBoundingClientRect']()['width']);let _0x2ddfa3=0x0;for(const _0x18b31a of Object['values'](_0x28fd9b))_0x2ddfa3+=_0x18b31a['getBoundingClientRect']()['height'];const _0x4b7711=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x36caf5,'height':Math['min'](_0x2ddfa3,_0x4b7711)};}function addEditableClasses(_0x34395a,_0x5c23fa){for(const [_0x312bbc,_0x556aa7]of _0x34395a)_0x556aa7['classes']=_0x5c23fa[_0x312bbc]['classList']['value']['replace']('ck-focused','');return _0x34395a;}function isMultiRootEditor(_0x1567c2){return void 0x0!==_0x1567c2['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(_0x2dad15){super(_0x2dad15),_0x2dad15['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x2dad15['config']['define']('trackChanges.preview.renderFunction',(_0x50bac2,_0x4a73eb)=>{for(const _0x176331 of _0x4a73eb)_0x50bac2['appendChild'](_0x176331);});}}var UploadcareSource=function(_0x326463){return _0x326463['Local']='local',_0x326463['URL']='url',_0x326463['Dropbox']='dropbox',_0x326463['GDrive']='gdrive',_0x326463['Facebook']='facebook',_0x326463['GPhotos']='gphotos',_0x326463['OneDrive']='onedrive',_0x326463;}({});function getTranslation(_0x13ee47,_0x79c365,_0x1dfacb){const t=_0x13ee47['t'],_0x49fb7a=_0x13ee47['t'];switch(_0x79c365){case UploadcareSource['Local']:return{'text':_0x49fb7a('Insert'===_0x1dfacb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x49fb7a('From\x20computer')};case UploadcareSource['URL']:return{'text':'Insert'===_0x1dfacb?_0x49fb7a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x49fb7a('Via\x20URL')};case UploadcareSource['Dropbox']:return{'text':t('Insert'===_0x1dfacb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case UploadcareSource['Facebook']:return{'text':t('Insert'===_0x1dfacb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case UploadcareSource['GDrive']:return{'text':t('Insert'===_0x1dfacb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case UploadcareSource['GPhotos']:return{'text':t('Insert'===_0x1dfacb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case UploadcareSource['OneDrive']:return{'text':t('Insert'===_0x1dfacb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x79c365;}}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 _0xbf9907=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14a0ce;for(const _0x63a765 in _0xbf9907){const _0x1ea30d=_0x63a765,_0x27719f=_0xbf9907[_0x1ea30d];if('uploadcareLicenseKeyValid'==_0x27719f||'uploadcareLicenseKeyInvalid'==_0x27719f||'uploadcareLicenseKeyExpired'==_0x27719f||'uploadcareLicenseKeyDomainLimit'==_0x27719f||'uploadcareLicenseKeyNotAllowed'==_0x27719f||'uploadcareLicenseKeyEvaluationLimit'==_0x27719f||'uploadcareLicenseKeyUsageLimit'==_0x27719f){delete _0xbf9907[_0x1ea30d],_0x14a0ce=_0x27719f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x14a0ce&&_0xbf9907['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x14a0ce&&_0xbf9907['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x14a0ce&&_0xbf9907['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x14a0ce&&_0xbf9907['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x14a0ce&&_0xbf9907['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x14a0ce&&_0xbf9907['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5bedff}=this,_0x528107=_0x5bedff['commands']['get']('uploadcare');if(!_0x528107)return;const _0xee2850=this['_normalizeConfigSourceList'](_0x5bedff['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xc156aa,_0x161631)=>{const _0x529d57=this['_getIntegrationKey'](_0x161631['type']);return _0xc156aa[_0x529d57]||(_0xc156aa[_0x529d57]=[]),_0xc156aa[_0x529d57]['push'](_0x161631),_0xc156aa;},{});_0x5bedff['plugins']['has']('ImageInsertUI')&&_0x5bedff['commands']['get']('uploadcare')&&Object['entries'](_0xee2850)['forEach'](([_0x5c199c,_0x54e1f8])=>{_0x5bedff['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5c199c,'observable':()=>_0x528107,'buttonViewCreator':()=>this['_createToolbarButton'](_0x54e1f8),'formViewCreator':()=>this['_createDropdownButtons'](_0x54e1f8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x54e1f8),'override':'assetManager'!==_0x5c199c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4f638c){const {locale:_0x46c969}=this['editor'];return _0x4f638c['map'](_0x37ecb2=>{const _0xf6e0bf=getTranslation(_0x46c969,_0x37ecb2,'Insert');switch(_0x37ecb2){case UploadcareSource['Local']:return{'icon':IconUploadcareImageUpload,'type':UploadcareSource['Local'],..._0xf6e0bf};case UploadcareSource['URL']:return{'icon':IconUploadcareLink,'type':UploadcareSource['URL'],..._0xf6e0bf};case UploadcareSource['Dropbox']:return{'icon':IconDropbox,'type':UploadcareSource['Dropbox'],..._0xf6e0bf};case UploadcareSource['Facebook']:return{'icon':IconFacebook,'type':UploadcareSource['Facebook'],..._0xf6e0bf};case UploadcareSource['GDrive']:return{'icon':IconGoogleDrive,'type':UploadcareSource['GDrive'],..._0xf6e0bf};case UploadcareSource['GPhotos']:return{'icon':IconGooglePhotos,'type':UploadcareSource['GPhotos'],..._0xf6e0bf};case UploadcareSource['OneDrive']:return{'icon':IconOneDrive,'type':UploadcareSource['OneDrive'],..._0xf6e0bf};}});}['_getIntegrationKey'](_0x469905){switch(_0x469905){case UploadcareSource['Local']:return'upload';case UploadcareSource['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x33deaa,_0xbeb50){const _0x6ab51d=this['editor'],_0xa726c8=new _0x33deaa(_0x6ab51d['locale']),_0x33621d=_0x6ab51d['commands']['get']('uploadcare');return _0xa726c8['bind']('isEnabled')['to'](_0x33621d),_0xa726c8['on']('execute',()=>{_0x33621d['execute'](_0xbeb50);}),_0xa726c8;}['_createToolbarButton'](_0x3f2d32){const {locale:_0x1c7ba6}=this['editor'],_0x584c85=this['editor']['plugins']['get']('ImageInsertUI'),_0x5ddaa0=_0x3f2d32[0x0],_0x295321=this['_createButton'](ButtonView,_0x5ddaa0['type']);return _0x295321['icon']=_0x5ddaa0['icon'],_0x295321['bind']('label')['to'](_0x584c85,'isImageSelected',_0x38f6da=>getTranslation(_0x1c7ba6,_0x5ddaa0['type'],_0x38f6da?'Replace':'Insert')['text']),_0x295321['tooltip']=!0x0,_0x295321;}['_createDropdownButtons'](_0x62373){const {locale:_0x48bb50}=this['editor'],_0x223788=this['editor']['plugins']['get']('ImageInsertUI');return _0x62373['map'](_0x1917a6=>{const _0x4090b8=this['_createButton'](ButtonView,_0x1917a6['type']);return _0x4090b8['withText']=!0x0,_0x4090b8['icon']=_0x1917a6['icon'],_0x4090b8['bind']('label')['to'](_0x223788,'isImageSelected',_0x3447ab=>getTranslation(_0x48bb50,_0x1917a6['type'],_0x3447ab?'Replace':'Insert')['text']),_0x4090b8;});}['_createMenuBarButtons'](_0x5ba5f3){return _0x5ba5f3['map'](_0x20dd65=>{const _0x408f85=this['_createButton'](MenuBarMenuListItemButtonView,_0x20dd65['type']);return _0x408f85['icon']=_0x20dd65['icon'],_0x408f85['label']=_0x20dd65['shortText'],_0x408f85;});}}class DialogFocusManagerView extends View{['focusTracker'];['focusCycler'];constructor(_0x43f587){super(_0x43f587),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(_0xf2155e,_0x3f647f){super(_0xf2155e),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-'+_0x3f647f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function createEditabilityChecker(_0x5a7f54){const _0x5de9c8=createUrlChecker(_0x5a7f54);return _0xa9d805=>!(!_0xa9d805||!_0xa9d805['is']('element','imageBlock')&&!_0xa9d805['is']('element','imageInline'))&&(!!_0xa9d805['hasAttribute']('uploadcareImageId')||!!_0xa9d805['hasAttribute']('src')&&_0x5de9c8(_0xa9d805['getAttribute']('src')));}function getImageUrls(_0x4b3ab2,_0x469851){const _0xa54b8a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5a81aa=>_0x5a81aa<=_0x469851)['map'](_0x5eef4f=>_0x4b3ab2['replace'](/\/$/,'')+'/-/resize/'+_0x5eef4f+'x/\x20'+_0x5eef4f+'w');return{'imageFallbackUrl':_0x4b3ab2,'imageSources':[{'srcset':_0xa54b8a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x469851+'px)\x20100vw,\x20'+_0x469851+'px','type':'image/webp'}]};}function getImageDimension(_0x793f68,_0x2c14da,_0x433da2){const _0x2cee4d=_0x793f68['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2cee4d?parseInt(_0x2cee4d[0x1],0xa):_0x2c14da,'height':_0x2cee4d?parseInt(_0x2cee4d[0x2],0xa):_0x433da2};}function showImageProcessingIndicator(_0xdc4a87,_0x1c71bf){const _0xe64479=new(DomEmitterMixin())(),_0x332e0a=_0xdc4a87['plugins']['get']('ImageUtils'),_0x4a16a7=_0xdc4a87['editing']['mapper']['toViewElement'](_0x1c71bf),_0x2c3d50=_0x332e0a['findViewImgElement'](_0x4a16a7),_0x483afb=_0xdc4a87['editing']['view']['domConverter']['viewToDom'](_0x2c3d50),_0x31b9b8=_0x1c71bf['getAttribute']('width'),_0x3ab393=_0x1c71bf['getAttribute']('height'),_0xb23e96='image-processing';_0xdc4a87['editing']['view']['change'](_0x46ae28=>{_0x46ae28['addClass'](_0xb23e96,_0x4a16a7),_0x46ae28['setStyle']('aspect-ratio',_0x31b9b8+'/'+_0x3ab393,_0x2c3d50);}),_0xe64479['listenTo'](_0x483afb,'load',()=>{_0xe64479['stopListening'](_0x483afb,'load'),_0xdc4a87['editing']['view']['change'](_0x516f2d=>{_0x516f2d['removeClass'](_0xb23e96,_0x4a16a7),_0x516f2d['removeStyle']('aspect-ratio',_0x2c3d50);});});}function createUrlChecker(_0x1af8c8){if(Array['isArray'](_0x1af8c8)){const _0x4bb2ca=_0x1af8c8['map'](createUrlChecker);return _0x2de817=>_0x4bb2ca['some'](_0x297bdf=>_0x297bdf(_0x2de817));}if('origin'==_0x1af8c8){const _0x167eb3=_0x19b45e['window']['location']['origin'];return _0x342b64=>new URL(_0x342b64,_0x19b45e['document']['baseURI'])['origin']==_0x167eb3;}return'function'==typeof _0x1af8c8?_0x1af8c8:_0x1af8c8 instanceof RegExp?_0xa99a0b=>!(!_0xa99a0b['match'](_0x1af8c8)&&!_0xa99a0b['replace'](/^https?:\/\//,'')['match'](_0x1af8c8)):()=>!0x1;}function isAncestor(_0x4720cb,_0x4c28df){return getAncestors(_0x4720cb['target'])['includes'](_0x4c28df);}class UploadcareController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x470418,_0xfd447f,_0x52962d){super(),this['_editor']=_0x470418,this['_editing']=_0xfd447f,this['_dialog']=_0x470418['plugins']['get'](Dialog),this['_api']=_0xfd447f['ctxElement']['getAPI'](),this['_type']=_0x52962d,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:_0x4ff0fa,model:_0xafef3e}=this['_editor'],_0x2b3b59=_0xafef3e['document']['selection']['getSelectedElement'](),_0x8a2b46=_0x2b3b59&&(_0x2b3b59['is']('element','imageBlock')||_0x2b3b59['is']('element','imageInline'));this['_formView']=new UploadcareFormView(_0x4ff0fa,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':IconUploadcareImageUpload,'title':getTranslation(_0x4ff0fa,this['_type'],_0x8a2b46?'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':_0x19565b=>!isAncestor(_0x19565b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x46f0c6}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x39065b=>{const _0x26f530=_0x46f0c6['length'];for(const _0x263b07 of _0x46f0c6){const _0x54a614=_0x263b07===_0x46f0c6[_0x26f530-0x1],{cdnUrl:_0x5cee4c,fileInfo:_0x41396e}=_0x263b07;if(!_0x5cee4c||!_0x41396e)continue;const {width:_0x533632,height:_0x1d642c}=_0x41396e['imageInfo'],_0x4e0960=getImageDimension(_0x5cee4c,_0x533632,_0x1d642c),_0x4550c4=getImageUrls(_0x5cee4c,_0x4e0960['width']),_0x4ae306={'id':_0x41396e['uuid'],'type':'image','attributes':{'imageDimension':_0x4e0960,..._0x4550c4}};this['_insertAsset'](_0x4ae306,_0x54a614,_0x39065b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x328e14=>{'idle'===_0x328e14['detail']['status']&&!_0x328e14['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===UploadcareSource['Local']?this['_api']['setCurrentActivity'](UploadcareSource['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x342109,_0x215a31,_0xbd92d8){const _0x2c9215=this['_editor']['model']['document']['selection'],_0x1ae368=_0x2c9215['getSelectedElement'](),_0x42ac56=!(!_0x1ae368||!_0x1ae368['is']('element','imageInline'));_0xbd92d8['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x342109,_0x42ac56),_0x215a31||_0xbd92d8['setSelection'](_0x2c9215['getLastPosition']());}['_insertImage'](_0x40a284,_0x1692ca){const _0xa11e92=this['_editor'],{imageDimension:_0x4e4f7f,imageFallbackUrl:_0x2ed20f,imageSources:_0x507d57}=_0x40a284['attributes'];_0xa11e92['execute']('insertImage',{'imageType':_0x1692ca?'imageInline':null,'source':{'uploadcareImageId':_0x40a284['id'],'src':_0x2ed20f,'sources':_0x507d57,..._0x4e4f7f}});}}class UploadcareCommand extends Command{['_editing'];['_controller']=null;static get['requires'](){return[Dialog,UploadcareEditing];}constructor(_0x3abb1b){super(_0x3abb1b),this['_editing']=_0x3abb1b['plugins']['get'](UploadcareEditing);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x48b5a4){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new UploadcareController(this['editor'],this['_editing'],_0x48b5a4);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}function isObject$1(_0x5d3b24){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x5d3b24);}const SEPARATOR$1=/\W|_/g;function camelizeString$1(_0x13aacd){return _0x13aacd['split'](SEPARATOR$1)['map']((_0x524f15,_0x5a0563)=>_0x524f15['charAt'](0x0)[_0x5a0563>0x0?'toUpperCase':'toLowerCase']()+_0x524f15['slice'](0x1))['join']('');}function camelizeArrayItems$1(_0x1c8744,{ignoreKeys:_0x16b918}={'ignoreKeys':[]}){return Array['isArray'](_0x1c8744)?_0x1c8744['map'](_0x2ab8e0=>camelizeKeys$1(_0x2ab8e0,{'ignoreKeys':_0x16b918})):_0x1c8744;}function camelizeKeys$1(_0xab1e75,{ignoreKeys:_0x599968}={'ignoreKeys':[]}){if(Array['isArray'](_0xab1e75))return camelizeArrayItems$1(_0xab1e75,{'ignoreKeys':_0x599968});if(!isObject$1(_0xab1e75))return _0xab1e75;const _0x8da804={};for(const _0x3eb870 of Object['keys'](_0xab1e75)){let _0x2c30f7=_0xab1e75[_0x3eb870];_0x599968['includes'](_0x3eb870)?_0x8da804[_0x3eb870]=_0x2c30f7:(isObject$1(_0x2c30f7)?_0x2c30f7=camelizeKeys$1(_0x2c30f7,{'ignoreKeys':_0x599968}):Array['isArray'](_0x2c30f7)&&(_0x2c30f7=camelizeArrayItems$1(_0x2c30f7,{'ignoreKeys':_0x599968})),_0x8da804[camelizeString$1(_0x3eb870)]=_0x2c30f7);}return _0x8da804;}const delay$1=_0x224c19=>new Promise(_0x54deb5=>setTimeout(_0x54deb5,_0x224c19));function getUserAgent$1$1({libraryName:_0x3f0b3b,libraryVersion:_0x3df908,userAgent:_0x5d0497,publicKey:_0x5c9cef='',integration:_0x4fc6b7=''}){const _0x300ccd='JavaScript';if('string'==typeof _0x5d0497)return _0x5d0497;if('function'==typeof _0x5d0497)return _0x5d0497({'publicKey':_0x5c9cef,'libraryName':_0x3f0b3b,'libraryVersion':_0x3df908,'languageName':_0x300ccd,'integration':_0x4fc6b7});return[_0x3f0b3b,_0x3df908,_0x5c9cef]['filter'](Boolean)['join']('/')+'\x20('+[_0x300ccd,_0x4fc6b7]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions$1={'factor':0x2,'time':0x64};function retrier$1(_0xe9799,_0x3aee6e=defaultOptions$1){let _0x23b5cc=0x0;return function _0x2c37e6(_0x5bb73a){const _0x22c9da=Math['round'](_0x3aee6e['time']*_0x3aee6e['factor']**_0x23b5cc);return _0x5bb73a({'attempt':_0x23b5cc,'retry':_0x2b08f4=>delay$1(_0x2b08f4??_0x22c9da)['then'](()=>(_0x23b5cc+=0x1,_0x2c37e6(_0x5bb73a)))});}(_0xe9799);}let UploadcareError$1=class extends Error{},NetworkError$1=class e extends UploadcareError$1{['originalProgressEvent'];constructor(_0x3eb76b){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,e['prototype']),this['originalProgressEvent']=_0x3eb76b;}};const onCancel$1=(_0x320e81,_0x3d61cb)=>{_0x320e81&&(_0x320e81['aborted']?Promise['resolve']()['then'](_0x3d61cb):_0x320e81['addEventListener']('abort',()=>_0x3d61cb(),{'once':!0x0}));};let CancelError$1=class e extends UploadcareError$1{['isCancel']=!0x0;constructor(_0x806c1c='Request\x20canceled'){super(_0x806c1c),this['name']='CancelError',Object['setPrototypeOf'](this,e['prototype']);}};const DEFAULT_INTERVAL$1=0x1f4,poll$1=({check:_0x29f494,interval:_0x29512d=DEFAULT_INTERVAL$1,timeout:_0x2a7565,signal:_0x238671})=>new Promise((_0x4e5e0d,_0x4c09bf)=>{let _0x50e1b2,_0x3168f6;onCancel$1(_0x238671,()=>{_0x50e1b2&&clearTimeout(_0x50e1b2),_0x4c09bf(new CancelError$1('Poll\x20cancelled'));}),_0x2a7565&&(_0x3168f6=setTimeout(()=>{_0x50e1b2&&clearTimeout(_0x50e1b2),_0x4c09bf(new CancelError$1('Timed\x20out'));},_0x2a7565));const _0x24fa71=()=>{try{Promise['resolve'](_0x29f494(_0x238671))['then'](_0x321f48=>{_0x321f48?(_0x3168f6&&clearTimeout(_0x3168f6),_0x4e5e0d(_0x321f48)):_0x50e1b2=setTimeout(_0x24fa71,_0x29512d);})['catch'](_0xdafa53=>{_0x3168f6&&clearTimeout(_0x3168f6),_0x4c09bf(_0xdafa53);});}catch(_0x33aeec){_0x3168f6&&clearTimeout(_0x3168f6),_0x4c09bf(_0x33aeec);}};_0x50e1b2=setTimeout(_0x24fa71,0x0);}),defaultSettings$1={'baseCDN':'https://ucarecdn.com','baseURL':'https://upload.uploadcare.com','retryThrottledRequestMaxTimes':0x1,'retryNetworkErrorMaxTimes':0x3,'multipartMinFileSize':0x1900000,'multipartChunkSize':0x500000,'maxConcurrentRequests':0x4,'pusherKey':'79ae88bd931ea68464d9'},defaultContentType$1='application/octet-stream',defaultFilename$1='original',request$1=({method:_0x44da9e,url:_0x31a362,data:_0x2532fd,headers:_0x5a2189={},signal:_0x5bf729,onProgress:_0x619dd5})=>new Promise((_0x2602c0,_0x5d421a)=>{const _0x3961a7=new XMLHttpRequest(),_0x288229=_0x44da9e?.['toUpperCase']()||'GET';let _0x2861d4=!0x1;_0x3961a7['open'](_0x288229,_0x31a362,!0x0),_0x5a2189&&Object['entries'](_0x5a2189)['forEach'](_0xdcf79c=>{const [_0x5e9cfd,_0x242a95]=_0xdcf79c;void 0x0!==_0x242a95&&!Array['isArray'](_0x242a95)&&_0x3961a7['setRequestHeader'](_0x5e9cfd,_0x242a95);}),_0x3961a7['responseType']='text',onCancel$1(_0x5bf729,()=>{_0x2861d4=!0x0,_0x3961a7['abort'](),_0x5d421a(new CancelError$1());}),_0x3961a7['onload']=()=>{if(0xc8!=_0x3961a7['status'])_0x5d421a(new Error('Error\x20'+_0x3961a7['status']+':\x20'+_0x3961a7['statusText']));else{const _0x3fe0f4={'method':_0x288229,'url':_0x31a362,'data':_0x2532fd,'headers':_0x5a2189||void 0x0,'signal':_0x5bf729,'onProgress':_0x619dd5},_0x55b4f5=_0x3961a7['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x5c7a28={};_0x55b4f5['forEach'](function(_0x46d9b2){const _0x379301=_0x46d9b2['split'](':\x20'),_0x42a66f=_0x379301['shift'](),_0x5a34e0=_0x379301['join'](':\x20');_0x42a66f&&void 0x0!==_0x42a66f&&(_0x5c7a28[_0x42a66f]=_0x5a34e0);});const _0x38f1eb=_0x3961a7['response'],_0x1d26d0=_0x3961a7['status'];_0x2602c0({'request':_0x3fe0f4,'data':_0x38f1eb,'headers':_0x5c7a28,'status':_0x1d26d0});}},_0x3961a7['onerror']=_0x536b56=>{_0x2861d4||_0x5d421a(new NetworkError$1(_0x536b56));},_0x619dd5&&'function'==typeof _0x619dd5&&(_0x3961a7['upload']['onprogress']=_0x3a4800=>{_0x3a4800['lengthComputable']?_0x619dd5({'isComputable':!0x0,'value':_0x3a4800['loaded']/_0x3a4800['total']}):_0x619dd5({'isComputable':!0x1});}),_0x2532fd?_0x3961a7['send'](_0x2532fd):_0x3961a7['send']();});function identity$1(_0x1a4215,..._0x28d326){return _0x1a4215;}const getFileOptions$1=({name:_0x3ba064})=>_0x3ba064?[_0x3ba064]:[],transformFile$1=identity$1;var getFormData$1=()=>new FormData();const isBuffer$1=_0x582bc4=>!0x1,isBlob$1=_0x57c363=>'undefined'!=typeof Blob&&_0x57c363 instanceof Blob,isFile$1=_0x27e12c=>'undefined'!=typeof File&&_0x27e12c instanceof File,isReactNativeAsset$1=_0x5545f2=>!!_0x5545f2&&'object'==typeof _0x5545f2&&!Array['isArray'](_0x5545f2)&&'uri'in _0x5545f2&&'string'==typeof _0x5545f2['uri'],isFileData$1=_0x30caa0=>isBlob$1(_0x30caa0)||isFile$1(_0x30caa0)||isBuffer$1()||isReactNativeAsset$1(_0x30caa0),isSimpleValue$1=_0x21d242=>'string'==typeof _0x21d242||'number'==typeof _0x21d242||void 0x0===_0x21d242,isObjectValue$1=_0x2a0ded=>!!_0x2a0ded&&'object'==typeof _0x2a0ded&&!Array['isArray'](_0x2a0ded),isFileValue$1=_0x292691=>!!_0x292691&&'object'==typeof _0x292691&&'data'in _0x292691&&isFileData$1(_0x292691['data']);function collectParams$1(_0x1be48b,_0x8b250d,_0x266a15){if(Array['isArray'](_0x266a15)){for(const _0x428364 of _0x266a15)collectParams$1(_0x1be48b,_0x8b250d+'[]',_0x428364);}else{if(isFileValue$1(_0x266a15)){const {name:_0x486043,contentType:_0x456c08}=_0x266a15,_0x2cf9e1=transformFile$1(_0x266a15['data'],_0x486043,_0x456c08??defaultContentType$1),_0x2fd104=getFileOptions$1({'name':_0x486043});_0x1be48b['push']([_0x8b250d,_0x2cf9e1,..._0x2fd104]);}else{if(isObjectValue$1(_0x266a15)){for(const [_0x5a6e87,_0x40d2ca]of Object['entries'](_0x266a15))void 0x0!==_0x40d2ca&&_0x1be48b['push']([_0x8b250d+'['+_0x5a6e87+']',String(_0x40d2ca)]);}else isSimpleValue$1(_0x266a15)&&_0x266a15&&_0x1be48b['push']([_0x8b250d,_0x266a15['toString']()]);}}}function getFormDataParams$1(_0x471c7f){const _0x553d22=[];for(const [_0x54d877,_0x563622]of Object['entries'](_0x471c7f))collectParams$1(_0x553d22,_0x54d877,_0x563622);return _0x553d22;}function buildFormData$1(_0x47b499){const _0x28bcb7=getFormData$1(),_0x1af749=getFormDataParams$1(_0x47b499);for(const _0x1dd7e0 of _0x1af749){const [_0x220253,_0x1e18f8,..._0x109ce2]=_0x1dd7e0;_0x28bcb7['append'](_0x220253,_0x1e18f8,..._0x109ce2);}return _0x28bcb7;}let UploadError$1=class e extends UploadcareError$1{['code'];['request'];['response'];['headers'];constructor(_0xc8b694,_0x368396,_0x20a645,_0x22d694,_0x405125){super(),this['name']='UploadError',this['message']=_0xc8b694,this['code']=_0x368396,this['request']=_0x20a645,this['response']=_0x22d694,this['headers']=_0x405125,Object['setPrototypeOf'](this,e['prototype']);}};const buildSearchParams$1=_0x578fd9=>{const _0x1e24a8=new URLSearchParams();for(const [_0x3483d8,_0x3bfa37]of Object['entries'](_0x578fd9))_0x3bfa37&&'object'==typeof _0x3bfa37&&!Array['isArray'](_0x3bfa37)?Object['entries'](_0x3bfa37)['filter'](_0x535334=>_0x535334[0x1]??!0x1)['forEach'](_0x2e4101=>_0x1e24a8['set'](_0x3483d8+'['+_0x2e4101[0x0]+']',String(_0x2e4101[0x1]))):Array['isArray'](_0x3bfa37)?_0x3bfa37['forEach'](_0x3fc5fd=>{_0x1e24a8['append'](_0x3483d8+'[]',_0x3fc5fd);}):'string'==typeof _0x3bfa37&&_0x3bfa37?_0x1e24a8['set'](_0x3483d8,_0x3bfa37):'number'==typeof _0x3bfa37&&_0x1e24a8['set'](_0x3483d8,_0x3bfa37['toString']());return _0x1e24a8['toString']();},getUrl$1=(_0x54b9c8,_0x1b0e98,_0x44ab52)=>{const _0x1d1b16=new URL(_0x54b9c8);return _0x1d1b16['pathname']=(_0x1d1b16['pathname']+_0x1b0e98)['replace']('//','/'),_0x44ab52&&(_0x1d1b16['search']=buildSearchParams$1(_0x44ab52)),_0x1d1b16['toString']();};var version$2='6.14.3';const LIBRARY_NAME$1='UploadcareUploadClient',LIBRARY_VERSION$1=version$2;function getUserAgent$2(_0xad3ad1){return getUserAgent$1$1({'libraryName':LIBRARY_NAME$1,'libraryVersion':LIBRARY_VERSION$1,..._0xad3ad1});}const REQUEST_WAS_THROTTLED_CODE$1='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT$1=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT$1=0x3e8;function getTimeoutFromThrottledRequest$1(_0x32863d){const {headers:_0x5d4980}=_0x32863d||{};if(!_0x5d4980||'string'!=typeof _0x5d4980['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT$1;const _0x414d24=parseInt(_0x5d4980['retry-after'],0xa);return Number['isFinite'](_0x414d24)?0x3e8*_0x414d24:DEFAULT_RETRY_AFTER_TIMEOUT$1;}function retryIfFailed$1(_0x4e3f2b,_0x8c2917){const {retryThrottledRequestMaxTimes:_0x2f369c,retryNetworkErrorMaxTimes:_0x1f8601}=_0x8c2917;return retrier$1(({attempt:_0x4f407a,retry:_0x2842aa})=>_0x4e3f2b()['catch'](_0x2f4b74=>{if('response'in _0x2f4b74&&_0x2f4b74?.['code']===REQUEST_WAS_THROTTLED_CODE$1&&_0x4f407a<_0x2f369c)return _0x2842aa(getTimeoutFromThrottledRequest$1(_0x2f4b74));if(_0x2f4b74 instanceof NetworkError$1&&_0x4f407a<_0x1f8601)return _0x2842aa((_0x4f407a+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT$1);throw _0x2f4b74;}));}const getContentType$1=_0x35b688=>{let _0x12c3c0='';return(isBlob$1(_0x35b688)||isFile$1(_0x35b688)||isReactNativeAsset$1(_0x35b688))&&(_0x12c3c0=_0x35b688['type']),_0x12c3c0||defaultContentType$1;},getFileName$1=_0x3e9f8a=>{let _0x2c0645='';return isFile$1(_0x3e9f8a)&&_0x3e9f8a['name']?_0x2c0645=_0x3e9f8a['name']:isBlob$1(_0x3e9f8a)||isBuffer$1()?_0x2c0645='':isReactNativeAsset$1(_0x3e9f8a)&&_0x3e9f8a['name']&&(_0x2c0645=_0x3e9f8a['name']),_0x2c0645||defaultFilename$1;};function getStoreValue$1(_0x3bab98){return void 0x0===_0x3bab98||'auto'===_0x3bab98?'auto':_0x3bab98?'1':'0';}function base$1(_0x25370a,{publicKey:_0x40d2ba,fileName:_0x8d5dd2,contentType:_0x58cfca,baseURL:_0x2262f6=defaultSettings$1['baseURL'],secureSignature:_0xc809a3,secureExpire:_0x441479,store:_0x558ed3,signal:_0x20fd13,onProgress:_0x858d30,source:_0x44b0a0='local',integration:_0x47572c,userAgent:_0x1937d7,retryThrottledRequestMaxTimes:_0x58b78e=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x3c8c4b=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x42d9dc}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x2262f6,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x40d2ba,'integration':_0x47572c,'userAgent':_0x1937d7})},'data':buildFormData$1({'file':{'data':_0x25370a,'name':_0x8d5dd2||getFileName$1(_0x25370a),'contentType':_0x58cfca||getContentType$1(_0x25370a)},'UPLOADCARE_PUB_KEY':_0x40d2ba,'UPLOADCARE_STORE':getStoreValue$1(_0x558ed3),'signature':_0xc809a3,'expire':_0x441479,'source':_0x44b0a0,'metadata':_0x42d9dc}),'signal':_0x20fd13,'onProgress':_0x858d30})['then'](({data:_0x49f860,headers:_0x5118e5,request:_0x3ed1b8})=>{const _0x5e8578=camelizeKeys$1(JSON['parse'](_0x49f860));if('error'in _0x5e8578)throw new UploadError$1(_0x5e8578['error']['content'],_0x5e8578['error']['errorCode'],_0x3ed1b8,_0x5e8578,_0x5118e5);return _0x5e8578;}),{'retryNetworkErrorMaxTimes':_0x3c8c4b,'retryThrottledRequestMaxTimes':_0x58b78e});}var TypeEnum$1,Status$1;function fromUrl$1(_0x91debc,{publicKey:_0x37513c,baseURL:_0x3cad10=defaultSettings$1['baseURL'],store:_0x75367d,fileName:_0x260add,checkForUrlDuplicates:_0x5b0bc0,saveUrlForRecurrentUploads:_0x26e486,secureSignature:_0x44a625,secureExpire:_0x4c169d,source:_0x1fd531='url',signal:_0x13a41f,integration:_0x57a24d,userAgent:_0x67b428,retryThrottledRequestMaxTimes:_0x56b381=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x518833=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x1d6a8c}){return retryIfFailed$1(()=>request$1({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x37513c,'integration':_0x57a24d,'userAgent':_0x67b428})},'url':getUrl$1(_0x3cad10,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x37513c,'source_url':_0x91debc,'store':getStoreValue$1(_0x75367d),'filename':_0x260add,'check_URL_duplicates':_0x5b0bc0?0x1:void 0x0,'save_URL_duplicates':_0x26e486?0x1:void 0x0,'signature':_0x44a625,'expire':_0x4c169d,'source':_0x1fd531,'metadata':_0x1d6a8c}),'signal':_0x13a41f})['then'](({data:_0x26f895,headers:_0x144fd1,request:_0x5830e0})=>{const _0x20a770=camelizeKeys$1(JSON['parse'](_0x26f895));if('error'in _0x20a770)throw new UploadError$1(_0x20a770['error']['content'],_0x20a770['error']['errorCode'],_0x5830e0,_0x20a770,_0x144fd1);return _0x20a770;}),{'retryNetworkErrorMaxTimes':_0x518833,'retryThrottledRequestMaxTimes':_0x56b381});}!function(_0x280b73){_0x280b73['Token']='token',_0x280b73['FileInfo']='file_info';}(TypeEnum$1||(TypeEnum$1={})),function(_0x2b6079){_0x2b6079['Unknown']='unknown',_0x2b6079['Waiting']='waiting',_0x2b6079['Progress']='progress',_0x2b6079['Error']='error',_0x2b6079['Success']='success';}(Status$1||(Status$1={}));const isErrorResponse$1=_0x19ba36=>'status'in _0x19ba36&&_0x19ba36['status']===Status$1['Error'];function fromUrlStatus$1(_0x2303e1,{publicKey:_0x2c94b4,baseURL:_0x8658ab=defaultSettings$1['baseURL'],signal:_0x693fc7,integration:_0x2bd1a2,userAgent:_0x30be2d,retryThrottledRequestMaxTimes:_0x377ec0=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x5cb12f=defaultSettings$1['retryNetworkErrorMaxTimes']}={}){return retryIfFailed$1(()=>request$1({'method':'GET','headers':_0x2c94b4?{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x2c94b4,'integration':_0x2bd1a2,'userAgent':_0x30be2d})}:void 0x0,'url':getUrl$1(_0x8658ab,'/from_url/status/',{'jsonerrors':0x1,'token':_0x2303e1}),'signal':_0x693fc7})['then'](({data:_0x143224,headers:_0xba1f3a,request:_0x394ceb})=>{const _0xdcd4c5=camelizeKeys$1(JSON['parse'](_0x143224));if('error'in _0xdcd4c5&&!isErrorResponse$1(_0xdcd4c5))throw new UploadError$1(_0xdcd4c5['error']['content'],_0xdcd4c5['error']['errorCode'],_0x394ceb,_0xdcd4c5,_0xba1f3a);return _0xdcd4c5;}),{'retryNetworkErrorMaxTimes':_0x5cb12f,'retryThrottledRequestMaxTimes':_0x377ec0});}function info$1(_0x2dfab1,{publicKey:_0x53b3af,baseURL:_0x42d09a=defaultSettings$1['baseURL'],signal:_0x234c50,source:_0x26cc14,integration:_0x906cc,userAgent:_0x3e1c3d,retryThrottledRequestMaxTimes:_0x3d1a9f=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x119cbc=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x53b3af,'integration':_0x906cc,'userAgent':_0x3e1c3d})},'url':getUrl$1(_0x42d09a,'/info/',{'jsonerrors':0x1,'pub_key':_0x53b3af,'file_id':_0x2dfab1,'source':_0x26cc14}),'signal':_0x234c50})['then'](({data:_0x27d855,headers:_0xcc3b1b,request:_0x5052cb})=>{const _0x4f7cb0=camelizeKeys$1(JSON['parse'](_0x27d855));if('error'in _0x4f7cb0)throw new UploadError$1(_0x4f7cb0['error']['content'],_0x4f7cb0['error']['errorCode'],_0x5052cb,_0x4f7cb0,_0xcc3b1b);return _0x4f7cb0;}),{'retryThrottledRequestMaxTimes':_0x3d1a9f,'retryNetworkErrorMaxTimes':_0x119cbc});}function multipartStart$1(_0xb08dc7,{publicKey:_0x2bcb78,contentType:_0xbe84c8,fileName:_0x1331e2,multipartChunkSize:_0x42ae14=defaultSettings$1['multipartChunkSize'],baseURL:_0x35254c='',secureSignature:_0x2c3a12,secureExpire:_0x59dc2c,store:_0x44929b,signal:_0xbb321f,source:_0x46bfd6='local',integration:_0x5e3f1b,userAgent:_0x27c57f,retryThrottledRequestMaxTimes:_0x330f4f=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4d2e15=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x8b9fad}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x35254c,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x2bcb78,'integration':_0x5e3f1b,'userAgent':_0x27c57f})},'data':buildFormData$1({'filename':_0x1331e2||defaultFilename$1,'size':_0xb08dc7,'content_type':_0xbe84c8||defaultContentType$1,'part_size':_0x42ae14,'UPLOADCARE_STORE':getStoreValue$1(_0x44929b),'UPLOADCARE_PUB_KEY':_0x2bcb78,'signature':_0x2c3a12,'expire':_0x59dc2c,'source':_0x46bfd6,'metadata':_0x8b9fad}),'signal':_0xbb321f})['then'](({data:_0x526b20,headers:_0x4682c5,request:_0x362321})=>{const _0xc15039=camelizeKeys$1(JSON['parse'](_0x526b20));if('error'in _0xc15039)throw new UploadError$1(_0xc15039['error']['content'],_0xc15039['error']['errorCode'],_0x362321,_0xc15039,_0x4682c5);return _0xc15039['parts']=Object['keys'](_0xc15039['parts'])['map'](_0x25ba1f=>_0xc15039['parts'][Number(_0x25ba1f)]),_0xc15039;}),{'retryThrottledRequestMaxTimes':_0x330f4f,'retryNetworkErrorMaxTimes':_0x4d2e15});}function multipartUpload$1(_0x4e77ae,_0x208a99,{contentType:_0x4c7faf,signal:_0x2d2083,onProgress:_0x32a1db,retryThrottledRequestMaxTimes:_0x2d9de4=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x5171e5=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'PUT','url':_0x208a99,'data':_0x4e77ae,'onProgress':_0x32a1db,'signal':_0x2d2083,'headers':{'Content-Type':_0x4c7faf||defaultContentType$1}})['then'](_0x4a1fc3=>(_0x32a1db&&_0x32a1db({'isComputable':!0x0,'value':0x1}),_0x4a1fc3))['then'](({status:_0x32ab53})=>({'code':_0x32ab53})),{'retryThrottledRequestMaxTimes':_0x2d9de4,'retryNetworkErrorMaxTimes':_0x5171e5});}function multipartComplete$1(_0x56193a,{publicKey:_0x3d1859,baseURL:_0x477b53=defaultSettings$1['baseURL'],source:_0x2000d5='local',signal:_0x3ebcb6,integration:_0x30df9c,userAgent:_0x4ba31a,retryThrottledRequestMaxTimes:_0x238989=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x228291=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x477b53,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x3d1859,'integration':_0x30df9c,'userAgent':_0x4ba31a})},'data':buildFormData$1({'uuid':_0x56193a,'UPLOADCARE_PUB_KEY':_0x3d1859,'source':_0x2000d5}),'signal':_0x3ebcb6})['then'](({data:_0x1c12dc,headers:_0xc12c30,request:_0x4a906b})=>{const _0x4a35a2=camelizeKeys$1(JSON['parse'](_0x1c12dc));if('error'in _0x4a35a2)throw new UploadError$1(_0x4a35a2['error']['content'],_0x4a35a2['error']['errorCode'],_0x4a906b,_0x4a35a2,_0xc12c30);return _0x4a35a2;}),{'retryThrottledRequestMaxTimes':_0x238989,'retryNetworkErrorMaxTimes':_0x228291});}function isReadyPoll$1(_0x2d66b2,{publicKey:_0x2fee56,baseURL:_0x431479,source:_0x7be844,integration:_0xe22de3,userAgent:_0x2b9372,retryThrottledRequestMaxTimes:_0x2a805e,retryNetworkErrorMaxTimes:_0x50b812,signal:_0x48a07a,onProgress:_0x59f7fb}){return poll$1({'check':_0x173811=>info$1(_0x2d66b2,{'publicKey':_0x2fee56,'baseURL':_0x431479,'signal':_0x173811,'source':_0x7be844,'integration':_0xe22de3,'userAgent':_0x2b9372,'retryThrottledRequestMaxTimes':_0x2a805e,'retryNetworkErrorMaxTimes':_0x50b812})['then'](_0x1a54f7=>_0x1a54f7['isReady']?_0x1a54f7:(_0x59f7fb&&_0x59f7fb({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x48a07a});}function isGroupFileInfo$1(_0x1beaed){return'defaultEffects'in _0x1beaed;}let UploadcareFile$1=class{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0xdb00bc,{baseCDN:_0x4f6539=defaultSettings$1['baseCDN'],fileName:_0x5aab78}={}){const {uuid:_0x438968,s3Bucket:_0x5f0b47}=_0xdb00bc,_0x4f3bb5=getUrl$1(_0x4f6539,_0x438968+'/'),_0x3a94fd=_0x5f0b47?getUrl$1('https://'+_0x5f0b47+'.s3.amazonaws.com/',_0x438968+'/'+_0xdb00bc['filename']):null;this['uuid']=_0x438968,this['name']=_0x5aab78||_0xdb00bc['filename'],this['size']=_0xdb00bc['size'],this['isStored']=_0xdb00bc['isStored'],this['isImage']=_0xdb00bc['isImage'],this['mimeType']=_0xdb00bc['mimeType'],this['cdnUrl']=_0x4f3bb5,this['originalFilename']=_0xdb00bc['originalFilename'],this['imageInfo']=_0xdb00bc['imageInfo'],this['videoInfo']=_0xdb00bc['videoInfo'],this['contentInfo']=_0xdb00bc['contentInfo'],this['metadata']=_0xdb00bc['metadata']||null,this['s3Bucket']=_0x5f0b47||null,this['s3Url']=_0x3a94fd,isGroupFileInfo$1(_0xdb00bc)&&(this['defaultEffects']=_0xdb00bc['defaultEffects']);}};const uploadDirect$1=(_0x275dc8,{publicKey:_0x54f8cf,fileName:_0x21f367,baseURL:_0x50800a,secureSignature:_0xa80b39,secureExpire:_0x5c6cb0,store:_0x1934a3,contentType:_0x3ac9b9,signal:_0xfe6cd,onProgress:_0x5cee54,source:_0x5efe2b,integration:_0x1fb8a2,userAgent:_0x22cceb,retryThrottledRequestMaxTimes:_0x3c8a4f,retryNetworkErrorMaxTimes:_0x1701a7,baseCDN:_0x452d3a,metadata:_0x75f9b3})=>base$1(_0x275dc8,{'publicKey':_0x54f8cf,'fileName':_0x21f367,'contentType':_0x3ac9b9,'baseURL':_0x50800a,'secureSignature':_0xa80b39,'secureExpire':_0x5c6cb0,'store':_0x1934a3,'signal':_0xfe6cd,'onProgress':_0x5cee54,'source':_0x5efe2b,'integration':_0x1fb8a2,'userAgent':_0x22cceb,'retryThrottledRequestMaxTimes':_0x3c8a4f,'retryNetworkErrorMaxTimes':_0x1701a7,'metadata':_0x75f9b3})['then'](({file:_0xf47767})=>isReadyPoll$1(_0xf47767,{'publicKey':_0x54f8cf,'baseURL':_0x50800a,'source':_0x5efe2b,'integration':_0x1fb8a2,'userAgent':_0x22cceb,'retryThrottledRequestMaxTimes':_0x3c8a4f,'retryNetworkErrorMaxTimes':_0x1701a7,'onProgress':_0x5cee54,'signal':_0xfe6cd}))['then'](_0xf76c67=>new UploadcareFile$1(_0xf76c67,{'baseCDN':_0x452d3a})),uploadFromUploaded$1=(_0x171f59,{publicKey:_0x5b51d0,fileName:_0x4f782,baseURL:_0x138599,signal:_0x4f0b92,onProgress:_0x5ca5f1,source:_0xc3a2e7,integration:_0x3551f8,userAgent:_0x44c978,retryThrottledRequestMaxTimes:_0x448288,retryNetworkErrorMaxTimes:_0x3c9659,baseCDN:_0x30f63b})=>info$1(_0x171f59,{'publicKey':_0x5b51d0,'baseURL':_0x138599,'signal':_0x4f0b92,'source':_0xc3a2e7,'integration':_0x3551f8,'userAgent':_0x44c978,'retryThrottledRequestMaxTimes':_0x448288,'retryNetworkErrorMaxTimes':_0x3c9659})['then'](_0x2fd564=>new UploadcareFile$1(_0x2fd564,{'baseCDN':_0x30f63b,'fileName':_0x4f782}))['then'](_0x200099=>(_0x5ca5f1&&_0x5ca5f1({'isComputable':!0x0,'value':0x1}),_0x200099)),race$1=(_0x1c7c89,{signal:_0x5a8056}={})=>{let _0x2a8f4f=null,_0x4c2b04=null;const _0x27eb0c=_0x1c7c89['map'](()=>new AbortController());return onCancel$1(_0x5a8056,()=>{_0x27eb0c['forEach'](_0x4b47f3=>_0x4b47f3['abort']());}),Promise['all'](_0x1c7c89['map']((_0x5008d8,_0x46ba0e)=>{const _0x241366=(_0x470881=>()=>{_0x4c2b04=_0x470881,_0x27eb0c['forEach']((_0x1d71ef,_0x47ea0c)=>_0x47ea0c!==_0x470881&&_0x1d71ef['abort']());})(_0x46ba0e);return Promise['resolve']()['then'](()=>_0x5008d8({'stopRace':_0x241366,'signal':_0x27eb0c[_0x46ba0e]['signal']}))['then'](_0x4f1a0d=>(_0x241366(),_0x4f1a0d))['catch'](_0x297fff=>(_0x2a8f4f=_0x297fff,null));}))['then'](_0x8c0e96=>{if(null===_0x4c2b04)throw _0x2a8f4f;return _0x8c0e96[_0x4c2b04];});};var WebSocket$1=window['WebSocket'];let Events$1=class{['events']=Object['create']({});['emit'](_0x7c9786,_0x9b06b){this['events'][_0x7c9786]?.['forEach'](_0x37c57f=>_0x37c57f(_0x9b06b));}['on'](_0x4ba3a2,_0x3388d3){this['events'][_0x4ba3a2]=this['events'][_0x4ba3a2]||[],this['events'][_0x4ba3a2]['push'](_0x3388d3);}['off'](_0x487843,_0xa3f2ac){this['events'][_0x487843]=_0xa3f2ac?this['events'][_0x487843]['filter'](_0x134e37=>_0x134e37!==_0xa3f2ac):[];}};const response$1=(_0x2913e3,_0x3e0e0c)=>'success'===_0x2913e3?{'status':Status$1['Success'],..._0x3e0e0c}:'progress'===_0x2913e3?{'status':Status$1['Progress'],..._0x3e0e0c}:{'status':Status$1['Error'],..._0x3e0e0c};let Pusher$1=class{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events$1();['disconnectTimeoutId']=null;constructor(_0x27bd09,_0x56b404=0x7530){this['key']=_0x27bd09,this['disconnectTime']=_0x56b404;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0xc795ef='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket$1(_0xc795ef),this['ws']['addEventListener']('error',_0x12deb5=>{this['emmitter']['emit']('error',new Error(_0x12deb5['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x56b068=>this['send'](_0x56b068['event'],_0x56b068['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x1ce61a=>{const _0xe8419a=JSON['parse'](_0x1ce61a['data']['toString']());switch(_0xe8419a['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'](_0xe8419a['channel'],response$1(_0xe8419a['event'],JSON['parse'](_0xe8419a['data'])));}});}}['disconnect'](){const _0x38587c=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x38587c();},this['disconnectTime']):_0x38587c();}['send'](_0x3406f6,_0x4c7dda){const _0x2569b5=JSON['stringify']({'event':_0x3406f6,'data':_0x4c7dda});this['ws']?.['send'](_0x2569b5);}['subscribe'](_0xe1e98c,_0x5163c9){this['subscribers']+=0x1,this['connect']();const _0x235f12='task-status-'+_0xe1e98c,_0x4ba932={'event':'pusher:subscribe','data':{'channel':_0x235f12}};this['emmitter']['on'](_0x235f12,_0x5163c9),this['isConnected']?this['send'](_0x4ba932['event'],_0x4ba932['data']):this['queue']['push'](_0x4ba932);}['unsubscribe'](_0x5b6de6){this['subscribers']-=0x1;const _0x229f10='task-status-'+_0x5b6de6,_0x51c74f={'event':'pusher:unsubscribe','data':{'channel':_0x229f10}};this['emmitter']['off'](_0x229f10),this['isConnected']?this['send'](_0x51c74f['event'],_0x51c74f['data']):this['queue']=this['queue']['filter'](_0x3ae6a2=>_0x3ae6a2['data']['channel']!==_0x229f10),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x30acba){return this['emmitter']['on']('error',_0x30acba),()=>this['emmitter']['off']('error',_0x30acba);}},pusher$1=null;const getPusher$1=_0x573dc6=>{if(!pusher$1){const _0x3fe6b3='undefined'==typeof window?0x0:0x7530;pusher$1=new Pusher$1(_0x573dc6,_0x3fe6b3);}return pusher$1;},preconnect$1=_0x7d72d2=>{getPusher$1(_0x7d72d2)['connect']();};function pollStrategy$1({token:_0x2d8e55,publicKey:_0x1a19dc,baseURL:_0x516151,integration:_0x50a1ed,userAgent:_0x18d6dd,retryThrottledRequestMaxTimes:_0x324ace,retryNetworkErrorMaxTimes:_0x40e8f7,onProgress:_0x2ac5d2,signal:_0x113d42}){return poll$1({'check':_0x4af3b8=>fromUrlStatus$1(_0x2d8e55,{'publicKey':_0x1a19dc,'baseURL':_0x516151,'integration':_0x50a1ed,'userAgent':_0x18d6dd,'retryThrottledRequestMaxTimes':_0x324ace,'retryNetworkErrorMaxTimes':_0x40e8f7,'signal':_0x4af3b8})['then'](_0x6e6b50=>{switch(_0x6e6b50['status']){case Status$1['Error']:return new UploadError$1(_0x6e6b50['error'],_0x6e6b50['errorCode']);case Status$1['Waiting']:return!0x1;case Status$1['Unknown']:return new UploadError$1('Token\x20\x22'+_0x2d8e55+'\x22\x20was\x20not\x20found.');case Status$1['Progress']:return _0x2ac5d2&&('unknown'===_0x6e6b50['total']?_0x2ac5d2({'isComputable':!0x1}):_0x2ac5d2({'isComputable':!0x0,'value':_0x6e6b50['done']/_0x6e6b50['total']})),!0x1;case Status$1['Success']:return _0x2ac5d2&&_0x2ac5d2({'isComputable':!0x0,'value':_0x6e6b50['done']/_0x6e6b50['total']}),_0x6e6b50;default:throw new Error('Unknown\x20status');}}),'signal':_0x113d42});}const pushStrategy$1=({token:_0x5e6fdf,pusherKey:_0x22836e,signal:_0x11ac25,onProgress:_0xb8308b})=>new Promise((_0x2206d0,_0x537dd7)=>{const _0x6ea96e=getPusher$1(_0x22836e),_0x23ab41=_0x6ea96e['onError'](_0x537dd7),_0x44182c=()=>{_0x23ab41(),_0x6ea96e['unsubscribe'](_0x5e6fdf);};onCancel$1(_0x11ac25,()=>{_0x44182c(),_0x537dd7(new CancelError$1('pusher\x20cancelled'));}),_0x6ea96e['subscribe'](_0x5e6fdf,_0x1789cc=>{switch(_0x1789cc['status']){case Status$1['Progress']:_0xb8308b&&('unknown'===_0x1789cc['total']?_0xb8308b({'isComputable':!0x1}):_0xb8308b({'isComputable':!0x0,'value':_0x1789cc['done']/_0x1789cc['total']}));break;case Status$1['Success']:_0x44182c(),_0xb8308b&&_0xb8308b({'isComputable':!0x0,'value':_0x1789cc['done']/_0x1789cc['total']}),_0x2206d0(_0x1789cc);break;case Status$1['Error']:_0x44182c(),_0x537dd7(new UploadError$1(_0x1789cc['msg'],_0x1789cc['error_code']));}});}),uploadFromUrl$1=(_0x3a7793,{publicKey:_0x400567,fileName:_0x4c9115,baseURL:_0xaea0a5,baseCDN:_0xca20dc,checkForUrlDuplicates:_0x274cc2,saveUrlForRecurrentUploads:_0x4c0dd7,secureSignature:_0x23e3cd,secureExpire:_0x5e65f3,store:_0x530a6d,signal:_0x1539d0,onProgress:_0x1c102a,source:_0xbf229c,integration:_0x3ca046,userAgent:_0x14568d,retryThrottledRequestMaxTimes:_0x27baef,pusherKey:_0x39a605=defaultSettings$1['pusherKey'],metadata:_0x8cc815})=>Promise['resolve'](preconnect$1(_0x39a605))['then'](()=>fromUrl$1(_0x3a7793,{'publicKey':_0x400567,'fileName':_0x4c9115,'baseURL':_0xaea0a5,'checkForUrlDuplicates':_0x274cc2,'saveUrlForRecurrentUploads':_0x4c0dd7,'secureSignature':_0x23e3cd,'secureExpire':_0x5e65f3,'store':_0x530a6d,'signal':_0x1539d0,'source':_0xbf229c,'integration':_0x3ca046,'userAgent':_0x14568d,'retryThrottledRequestMaxTimes':_0x27baef,'metadata':_0x8cc815}))['catch'](_0x35b69e=>{const _0x11fe53=getPusher$1(_0x39a605);return _0x11fe53?.['disconnect'](),Promise['reject'](_0x35b69e);})['then'](_0x28415e=>_0x28415e['type']===TypeEnum$1['FileInfo']?_0x28415e:race$1([({signal:_0x57eaf8})=>pollStrategy$1({'token':_0x28415e['token'],'publicKey':_0x400567,'baseURL':_0xaea0a5,'integration':_0x3ca046,'userAgent':_0x14568d,'retryThrottledRequestMaxTimes':_0x27baef,'onProgress':_0x1c102a,'signal':_0x57eaf8}),({signal:_0x35ec60})=>pushStrategy$1({'token':_0x28415e['token'],'pusherKey':_0x39a605,'signal':_0x35ec60,'onProgress':_0x1c102a})],{'signal':_0x1539d0}))['then'](_0x2e826b=>{if(_0x2e826b instanceof UploadError$1)throw _0x2e826b;return _0x2e826b;})['then'](_0x5114da=>isReadyPoll$1(_0x5114da['uuid'],{'publicKey':_0x400567,'baseURL':_0xaea0a5,'integration':_0x3ca046,'userAgent':_0x14568d,'retryThrottledRequestMaxTimes':_0x27baef,'onProgress':_0x1c102a,'signal':_0x1539d0}))['then'](_0x350a83=>new UploadcareFile$1(_0x350a83,{'baseCDN':_0xca20dc})),memo$1=new WeakMap(),getBlobFromReactNativeAsset$1=async _0x2798ce=>{if(memo$1['has'](_0x2798ce))return memo$1['get'](_0x2798ce);const _0x3dcc07=await fetch(_0x2798ce['uri'])['then'](_0x573bf5=>_0x573bf5['blob']());return memo$1['set'](_0x2798ce,_0x3dcc07),_0x3dcc07;},getFileSize$1=async _0x2b55fd=>{if(isFile$1(_0x2b55fd)||isBlob$1(_0x2b55fd))return _0x2b55fd['size'];if(isReactNativeAsset$1(_0x2b55fd))return(await getBlobFromReactNativeAsset$1(_0x2b55fd))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart$1=(_0x1b05dd,_0x38ff61=defaultSettings$1['multipartMinFileSize'])=>_0x1b05dd>=_0x38ff61,isUuid$1=_0x11d1cf=>{const _0x3ebf28=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!isFileData$1(_0x11d1cf)&&_0x3ebf28['test'](_0x11d1cf);},isUrl$1=_0x33ab20=>{const _0x35c436=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData$1(_0x33ab20)&&_0x35c436['test'](_0x33ab20);},runWithConcurrency$1=(_0x3d3af1,_0x438f79)=>new Promise((_0x4263d2,_0x22d24b)=>{const _0x12e04f=[];let _0x5e08e9=!0x1,_0x13a0f9=_0x438f79['length'];const _0x4b2f9a=[..._0x438f79],_0x352eeb=()=>{const _0x209d2=_0x438f79['length']-_0x4b2f9a['length'],_0x37cf48=_0x4b2f9a['shift']();_0x37cf48&&_0x37cf48()['then'](_0x1018ad=>{_0x5e08e9||(_0x12e04f[_0x209d2]=_0x1018ad,_0x13a0f9-=0x1,_0x13a0f9?_0x352eeb():_0x4263d2(_0x12e04f));})['catch'](_0x32b58a=>{_0x5e08e9=!0x0,_0x22d24b(_0x32b58a);});};for(let _0x402471=0x0;_0x402471<_0x3d3af1;_0x402471++)_0x352eeb();}),sliceChunk$1=(_0x51a987,_0x1786fe,_0x373249,_0x35b5c8)=>{const _0x40e0ce=_0x35b5c8*_0x1786fe,_0x217cbf=Math['min'](_0x40e0ce+_0x35b5c8,_0x373249);return _0x51a987['slice'](_0x40e0ce,_0x217cbf);},prepareChunks$1=async(_0x1af074,_0x995a9d,_0x2b064a)=>_0x3b048e=>sliceChunk$1(_0x1af074,_0x3b048e,_0x995a9d,_0x2b064a),uploadPart$1=(_0x54713a,_0x3a917c,{publicKey:_0x1fa43f,contentType:_0x59c5bf,onProgress:_0x511749,signal:_0x593269,integration:_0x3bafae,retryThrottledRequestMaxTimes:_0x2e647f,retryNetworkErrorMaxTimes:_0x4d952d})=>multipartUpload$1(_0x54713a,_0x3a917c,{'contentType':_0x59c5bf,'onProgress':_0x511749,'signal':_0x593269,'retryThrottledRequestMaxTimes':_0x2e647f,'retryNetworkErrorMaxTimes':_0x4d952d}),uploadMultipart$1=async(_0x53308b,{publicKey:_0x3f5bad,fileName:_0x39ea07,fileSize:_0x38f1c0,baseURL:_0x3fedb9,secureSignature:_0x48e5e5,secureExpire:_0x14827a,store:_0xcd4775,signal:_0x49924f,onProgress:_0x1d40d6,source:_0x578663,integration:_0x117612,userAgent:_0x190ff9,retryThrottledRequestMaxTimes:_0x177faf,retryNetworkErrorMaxTimes:_0x4ac896,contentType:_0x1f4b05,multipartChunkSize:_0x2cb79e=defaultSettings$1['multipartChunkSize'],maxConcurrentRequests:_0x3a1cb5=defaultSettings$1['maxConcurrentRequests'],baseCDN:_0xa69a03,metadata:_0x2f46b6})=>{const _0x417a53=_0x38f1c0??await getFileSize$1(_0x53308b);let _0x3f600c;const _0x2ce50b=(_0x4b3490,_0x53a6d3)=>{if(!_0x1d40d6)return;_0x3f600c||(_0x3f600c=Array(_0x4b3490)['fill'](0x0));const _0x4feb76=_0x2a42de=>_0x2a42de['reduce']((_0x3fb279,_0x1b159b)=>_0x3fb279+_0x1b159b,0x0);return _0x13e29a=>{_0x13e29a['isComputable']&&(_0x3f600c[_0x53a6d3]=_0x13e29a['value'],_0x1d40d6({'isComputable':!0x0,'value':_0x4feb76(_0x3f600c)/_0x4b3490}));};};return _0x1f4b05||=getContentType$1(_0x53308b),multipartStart$1(_0x417a53,{'publicKey':_0x3f5bad,'contentType':_0x1f4b05,'fileName':_0x39ea07||getFileName$1(_0x53308b),'baseURL':_0x3fedb9,'secureSignature':_0x48e5e5,'secureExpire':_0x14827a,'store':_0xcd4775,'signal':_0x49924f,'source':_0x578663,'integration':_0x117612,'userAgent':_0x190ff9,'retryThrottledRequestMaxTimes':_0x177faf,'retryNetworkErrorMaxTimes':_0x4ac896,'metadata':_0x2f46b6,'multipartChunkSize':_0x2cb79e})['then'](async({uuid:_0x37e9cb,parts:_0x256169})=>{const _0x476606=await prepareChunks$1(_0x53308b,_0x417a53,_0x2cb79e);return Promise['all']([_0x37e9cb,runWithConcurrency$1(_0x3a1cb5,_0x256169['map']((_0x956bc0,_0x56c2a9)=>()=>uploadPart$1(_0x476606(_0x56c2a9),_0x956bc0,{'publicKey':_0x3f5bad,'contentType':_0x1f4b05,'onProgress':_0x2ce50b(_0x256169['length'],_0x56c2a9),'signal':_0x49924f,'integration':_0x117612,'retryThrottledRequestMaxTimes':_0x177faf,'retryNetworkErrorMaxTimes':_0x4ac896})))]);})['then'](([_0x5e93bc])=>multipartComplete$1(_0x5e93bc,{'publicKey':_0x3f5bad,'baseURL':_0x3fedb9,'source':_0x578663,'integration':_0x117612,'userAgent':_0x190ff9,'retryThrottledRequestMaxTimes':_0x177faf,'retryNetworkErrorMaxTimes':_0x4ac896}))['then'](_0x480271=>_0x480271['isReady']?_0x480271:isReadyPoll$1(_0x480271['uuid'],{'publicKey':_0x3f5bad,'baseURL':_0x3fedb9,'source':_0x578663,'integration':_0x117612,'userAgent':_0x190ff9,'retryThrottledRequestMaxTimes':_0x177faf,'retryNetworkErrorMaxTimes':_0x4ac896,'onProgress':_0x1d40d6,'signal':_0x49924f}))['then'](_0x1d3916=>new UploadcareFile$1(_0x1d3916,{'baseCDN':_0xa69a03}));};async function uploadFile$1(_0x366412,{publicKey:_0x229c9b,fileName:_0x17df2d,baseURL:_0x50a5ce=defaultSettings$1['baseURL'],secureSignature:_0x5e9bb4,secureExpire:_0xc3d418,store:_0x3af691,signal:_0x4679de,onProgress:_0x24d90f,source:_0x324061,integration:_0x197d86,userAgent:_0x507bca,retryThrottledRequestMaxTimes:_0x3d0007,retryNetworkErrorMaxTimes:_0x4c5469,contentType:_0x3ac67a,multipartMinFileSize:_0x3bd1dd,multipartChunkSize:_0x6cf2c5,maxConcurrentRequests:_0x2bc647,baseCDN:_0x1e5efb=defaultSettings$1['baseCDN'],checkForUrlDuplicates:_0x1564c4,saveUrlForRecurrentUploads:_0x3889f0,pusherKey:_0x4e162e,metadata:_0x2a9630}){if(isFileData$1(_0x366412)){const _0x390d59=await getFileSize$1(_0x366412);return isMultipart$1(_0x390d59,_0x3bd1dd)?uploadMultipart$1(_0x366412,{'publicKey':_0x229c9b,'contentType':_0x3ac67a,'multipartChunkSize':_0x6cf2c5,'fileSize':_0x390d59,'fileName':_0x17df2d,'baseURL':_0x50a5ce,'secureSignature':_0x5e9bb4,'secureExpire':_0xc3d418,'store':_0x3af691,'signal':_0x4679de,'onProgress':_0x24d90f,'source':_0x324061,'integration':_0x197d86,'userAgent':_0x507bca,'maxConcurrentRequests':_0x2bc647,'retryThrottledRequestMaxTimes':_0x3d0007,'retryNetworkErrorMaxTimes':_0x4c5469,'baseCDN':_0x1e5efb,'metadata':_0x2a9630}):uploadDirect$1(_0x366412,{'publicKey':_0x229c9b,'fileName':_0x17df2d,'contentType':_0x3ac67a,'baseURL':_0x50a5ce,'secureSignature':_0x5e9bb4,'secureExpire':_0xc3d418,'store':_0x3af691,'signal':_0x4679de,'onProgress':_0x24d90f,'source':_0x324061,'integration':_0x197d86,'userAgent':_0x507bca,'retryThrottledRequestMaxTimes':_0x3d0007,'retryNetworkErrorMaxTimes':_0x4c5469,'baseCDN':_0x1e5efb,'metadata':_0x2a9630});}if(isUrl$1(_0x366412))return uploadFromUrl$1(_0x366412,{'publicKey':_0x229c9b,'fileName':_0x17df2d,'baseURL':_0x50a5ce,'baseCDN':_0x1e5efb,'checkForUrlDuplicates':_0x1564c4,'saveUrlForRecurrentUploads':_0x3889f0,'secureSignature':_0x5e9bb4,'secureExpire':_0xc3d418,'store':_0x3af691,'signal':_0x4679de,'onProgress':_0x24d90f,'source':_0x324061,'integration':_0x197d86,'userAgent':_0x507bca,'retryThrottledRequestMaxTimes':_0x3d0007,'pusherKey':_0x4e162e,'metadata':_0x2a9630});if(isUuid$1(_0x366412))return uploadFromUploaded$1(_0x366412,{'publicKey':_0x229c9b,'fileName':_0x17df2d,'baseURL':_0x50a5ce,'signal':_0x4679de,'onProgress':_0x24d90f,'source':_0x324061,'integration':_0x197d86,'userAgent':_0x507bca,'retryThrottledRequestMaxTimes':_0x3d0007,'retryNetworkErrorMaxTimes':_0x4c5469,'baseCDN':_0x1e5efb});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x366412+'\x22\x20is\x20not\x20supported');}class UploadUtils{static['upload']({file:_0x346d27,..._0x1a6e2c}){return uploadFile$1(_0x346d27,_0x1a6e2c);}static['getInfo'](_0x36dfab,_0x4d096a){return info$1(_0x36dfab,_0x4d096a);}}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 _0x875e9d=this['editor'];if(!!!_0x875e9d['config']['get']('uploadcare'))return;_0x875e9d['plugins']['get'](FileRepository)['createUploadAdapter']=_0x48af6c=>new Adapter(_0x48af6c,_0x875e9d),_0x875e9d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x20cdd0,{imageElement:_0x57b8b9,data:_0xa41dcc})=>{_0x875e9d['model']['change'](_0x1802ce=>{_0x1802ce['setAttribute']('uploadcareImageId',_0xa41dcc['uploadcareImageId'],_0x57b8b9);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x1cbdd0,_0x5962b6){this['loader']=_0x1cbdd0,this['editor']=_0x5962b6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1ce1fb=await this['loader']['file'];return UploadUtils['upload']({'file':_0x1ce1fb,'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':_0x10478b=>{_0x10478b&&_0x10478b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x10478b['value']);}})['then'](async _0x4ba2db=>{const {imageFallbackUrl:_0x2d2b75,imageSources:_0xa8a3ad}=getImageUrls(_0x4ba2db['cdnUrl'],_0x4ba2db['imageInfo']['width']);return{'uploadcareImageId':_0x4ba2db['uuid'],'default':_0x2d2b75,'sources':_0xa8a3ad};})['catch'](()=>{const _0x587e3a=t('Cannot\x20upload\x20file:')+('\x20'+_0x1ce1fb['name']+'.');return Promise['reject'](_0x587e3a);});}['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(_0x3eb451){super(_0x3eb451),this['ucContextId']=uid();}['init'](){const _0x2962cc=this['editor'];_0x2962cc['commands']['add']('uploadcare',new UploadcareCommand(_0x2962cc));}['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 _0x5d02c7=_0x19b45e['document']['querySelector']('input[uploadcare-file-input]');_0x5d02c7&&_0x5d02c7['remove']();}),checkLicense(this);}['_initSchema'](){const _0x37585f=this['editor']['model']['schema'];_0x37585f['isRegistered']('imageBlock')&&_0x37585f['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x37585f['isRegistered']('imageInline')&&_0x37585f['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2df17c=this['editor'];_0x2df17c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2df17c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x41304e=>_0x41304e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x113e34=_0x2df17c['commands']['get']('replaceImageSource');_0x113e34&&this['listenTo'](_0x113e34,'cleanupImage',(_0x562f95,[_0x2ec99f,_0x5bf0f5])=>{_0x2ec99f['removeAttribute']('uploadcareImageId',_0x5bf0f5);});}['_initConfig'](){const _0x423072=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4b2e9a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=createElement(_0x19b45e['document'],'uc-config',{..._0x423072,'pubkey':_0x4b2e9a,'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']=_0x15b478=>{if('closeMax'==_0x15b478)return'#uc-icon-arrow-down';},_0x19b45e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=createElement(_0x19b45e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x19b45e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x380ca0=this['editor']['commands']['get']('insertImage');_0x380ca0&&this['listenTo'](_0x380ca0,'execute',()=>{const _0x55751b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x55751b&&_0x55751b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x55751b);});});const _0x36f2f9=this['editor']['commands']['get']('uploadcareImageReplace');_0x36f2f9&&this['listenTo'](_0x36f2f9,'execute',()=>{const _0x3d1e66=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d1e66&&_0x3d1e66['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x3d1e66);});});}}async function checkLicense(_0x51c639){const _0x5583bd=_0x4a5f65([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]),_0x491c82=window[_0x4a5f65([0x44,0x61,0x74,0x65])][_0x4a5f65([0x6e,0x6f,0x77])](),_0x38ada9=_0x51c639[_0x4a5f65([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcc6d3e=new window[(_0x4a5f65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b5dc6=>{_0x38ada9[_0x4a5f65([0x6f,0x6e,0x63,0x65])](_0x4a5f65([0x72,0x65,0x61,0x64,0x79]),_0x5b5dc6);}),_0x4d46c4={[_0x4a5f65([0x6b,0x74,0x79])]:_0x4a5f65([0x45,0x43]),[_0x4a5f65([0x75,0x73,0x65])]:_0x4a5f65([0x73,0x69,0x67]),[_0x4a5f65([0x63,0x72,0x76])]:_0x4a5f65([0x50,0x2d,0x32,0x35,0x36]),[_0x4a5f65([0x78])]:_0x4a5f65([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]),[_0x4a5f65([0x79])]:_0x4a5f65([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]),[_0x4a5f65([0x61,0x6c,0x67])]:_0x4a5f65([0x45,0x53,0x32,0x35,0x36])},_0x53f4fe=_0x38ada9[_0x4a5f65([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a5f65([0x67,0x65,0x74])](_0x4a5f65([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x49c483=await(async function(){let _0x5d17e0,_0x4139cc=null,_0x5f2940=null;try{if(_0x53f4fe==_0x4a5f65([0x47,0x50,0x4c]))return _0x4a5f65([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d17e0=(function(){const _0x23b221=_0x53f4fe[_0x4a5f65([0x73,0x70,0x6c,0x69,0x74])](_0x4a5f65([0x2e]));if(0x3!=_0x23b221[_0x4a5f65([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3ad5d1=_0x23b221[0x1];return _0x5f3f5(_0x3ad5d1);function _0x5f3f5(_0x2203d5){const _0x623149=_0x439f9f(_0x2203d5);return _0x623149&&_0x157d6f()?_0x623149:null;function _0x157d6f(){const _0x234188=_0x623149[_0x4a5f65([0x6a,0x74,0x69])],_0x20d0c3=window[_0x4a5f65([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x234188[_0x4a5f65([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x234188[_0x4a5f65([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3457a0={..._0x623149,[_0x4a5f65([0x6a,0x74,0x69])]:_0x234188[_0x4a5f65([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x234188[_0x4a5f65([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3457a0[_0x4a5f65([0x76,0x63])],_0x42a806(_0x3457a0)==_0x20d0c3;}}}()),!_0x5d17e0)return _0x4a5f65([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x5d17e0[_0x4a5f65([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f2940=function(_0x20526e,_0x56bad3){return new window[(_0x4a5f65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34a926=>{if(_0x3b282a())return _0x34a926(_0x4a5f65([0x56,0x61,0x6c,0x69,0x64]));_0x3a2933(),_0x38ada9[_0x4a5f65([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a5f65([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54ab83=!0x1;const _0x8ac691=uid();function _0x21eded(_0x4fcec8){return!!_0x4fcec8&&(typeof _0x4fcec8===_0x4a5f65([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4fcec8===_0x4a5f65([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4fcec8[_0x4a5f65([0x74,0x68,0x65,0x6e])]===_0x4a5f65([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4fcec8[_0x4a5f65([0x63,0x61,0x74,0x63,0x68])]===_0x4a5f65([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ee3be(_0x14f0f9){_0x3f06e7(_0x14f0f9)[_0x4a5f65([0x74,0x68,0x65,0x6e])](_0x1467c7=>{if(!_0x1467c7||_0x1467c7[_0x4a5f65([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a5f65([0x6f,0x6b]))return _0x4a5f65([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2903fe(_0x42a806(_0x8ac691+_0x56bad3))!=_0x1467c7[_0x4a5f65([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a5f65([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a5f65([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a5f65([0x74,0x68,0x65,0x6e])](_0x428de9=>(_0x16c5dc(),_0x428de9),()=>{const _0x2ad24f=_0x379c93();return null==_0x2ad24f?(_0x16c5dc(),_0x4a5f65([0x56,0x61,0x6c,0x69,0x64])):_0x4a5f65(_0x491c82-_0x2ad24f>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a5f65([0x74,0x68,0x65,0x6e])](_0x34a926)[_0x4a5f65([0x63,0x61,0x74,0x63,0x68])](()=>{_0x34a926(_0x4a5f65([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1862b7=0x36ee80;function _0x16c5dc(){const _0x306b9f=_0x4a5f65([0x6c,0x6c,0x63,0x74,0x2d])+_0x2903fe(_0x42a806(_0x20526e)),_0x5e62a9=_0xc55ac8(_0x2903fe(window[_0x4a5f65([0x4d,0x61,0x74,0x68])][_0x4a5f65([0x63,0x65,0x69,0x6c])](_0x491c82/_0x1862b7)));window[_0x4a5f65([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a5f65([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x306b9f,_0x5e62a9);}function _0x379c93(){const _0x3cafab=_0x4a5f65([0x6c,0x6c,0x63,0x74,0x2d])+_0x2903fe(_0x42a806(_0x20526e)),_0x261557=window[_0x4a5f65([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a5f65([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cafab);return _0x261557?window[_0x4a5f65([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc55ac8(_0x261557),0x10)*_0x1862b7:null;}function _0x3f06e7(_0x222e7d){return new window[(_0x4a5f65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x78422a,_0x1bd0d8)=>{_0x222e7d[_0x4a5f65([0x74,0x68,0x65,0x6e])](_0x78422a,_0x1bd0d8),window[_0x4a5f65([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bd0d8,0x1d4c0);});}}_0x38ada9[_0x4a5f65([0x6f,0x6e])](_0x4a5f65([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x171f10,_0x2029fa)=>{if(_0x2029fa[0x0]!=_0x20526e)return _0x34a926(_0x4a5f65([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2029fa[0x1]={..._0x2029fa[0x1],[_0x4a5f65([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8ac691};},{[_0x4a5f65([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a5f65([0x68,0x69,0x67,0x68])}),_0x38ada9[_0x4a5f65([0x6f,0x6e])](_0x4a5f65([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x357a66=>{_0x21eded(_0x357a66[_0x4a5f65([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54ab83=!0x0,_0x4ee3be(_0x357a66[_0x4a5f65([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a5f65([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a5f65([0x6c,0x6f,0x77])}),_0xcc6d3e[_0x4a5f65([0x74,0x68,0x65,0x6e])](()=>{_0x54ab83||_0x34a926(_0x4a5f65([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b282a(){return _0x38ada9[_0x4a5f65([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a5f65([0x76,0x69,0x65,0x77])][_0x4a5f65([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a5f65([0x61,0x75,0x74,0x6f]);}function _0x3a2933(){_0x38ada9[_0x4a5f65([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a5f65([0x76,0x69,0x65,0x77])][_0x4a5f65([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a5f65([0x61,0x75,0x74,0x6f]);}}(_0x5d17e0[_0x4a5f65([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d17e0[_0x4a5f65([0x6a,0x74,0x69])]));const _0xd4de6e=await(async function(){let _0x392790=!0x0;try{const _0x28c052=_0x53f4fe[_0x4a5f65([0x73,0x70,0x6c,0x69,0x74])](_0x4a5f65([0x2e])),[_0x4e5677,_0x39c466,_0x308d44]=_0x28c052;return _0x18a9ae(_0x4e5677),await _0x183448(_0x4e5677,_0x39c466,_0x308d44),_0x392790;}catch{return!0x1;}function _0x18a9ae(_0x3b6b76){const _0x30d8c4=_0x439f9f(_0x3b6b76);_0x30d8c4&&_0x30d8c4[_0x4a5f65([0x61,0x6c,0x67])]==_0x4a5f65([0x45,0x53,0x32,0x35,0x36])||(_0x392790=!0x1);}async function _0x183448(_0x205aac,_0x564807,_0x16788f){const _0xa8171f=window[_0x4a5f65([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a5f65([0x66,0x72,0x6f,0x6d])](_0x84c269(_0x16788f),_0x41e282=>_0x41e282[_0x4a5f65([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45b7b8=new window[(_0x4a5f65([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a5f65([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x205aac+_0x4a5f65([0x2e])+_0x564807),_0xed916a=window[_0x4a5f65([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a5f65([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xed916a)return;const _0xb9836=await _0xed916a[_0x4a5f65([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a5f65([0x6a,0x77,0x6b]),_0x4d46c4,{[_0x4a5f65([0x6e,0x61,0x6d,0x65])]:_0x4a5f65([0x45,0x43,0x44,0x53,0x41]),[_0x4a5f65([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a5f65([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a5f65([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xed916a[_0x4a5f65([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a5f65([0x6e,0x61,0x6d,0x65])]:_0x4a5f65([0x45,0x43,0x44,0x53,0x41]),[_0x4a5f65([0x68,0x61,0x73,0x68])]:{[_0x4a5f65([0x6e,0x61,0x6d,0x65])]:_0x4a5f65([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb9836,_0xa8171f,_0x45b7b8)||(_0x392790=!0x1);}}());return _0xd4de6e?(function(){const _0x1fa80d=_0x5d17e0[_0x4a5f65([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1fa80d)return!0x1;if(_0x1fa80d[_0x4a5f65([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a5f65([0x2a])))return!0x0;if(_0x1fa80d[_0x4a5f65([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a5f65([0x55,0x50,0x4c,0x43])))return!0x0;return!0x1;}())?(function(){const _0x31c84a=[_0x4a5f65([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a5f65([0x74,0x72,0x69,0x61,0x6c])][_0x4a5f65([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d17e0[_0x4a5f65([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x491c82/0x3e8:0x69d59a80;return _0x5d17e0[_0x4a5f65([0x65,0x78,0x70])]<_0x31c84a;}())?_0x4a5f65([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x32e510=_0x5d17e0[_0x4a5f65([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32e510||0x0==_0x32e510[_0x4a5f65([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27fba9}=new URL(window[_0x4a5f65([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32e510[_0x4a5f65([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27fba9))return!0x0;const _0x4e0756=_0x27fba9[_0x4a5f65([0x73,0x70,0x6c,0x69,0x74])](_0x4a5f65([0x2e]));return _0x32e510[_0x4a5f65([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3194bd=>_0x3194bd[_0x4a5f65([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a5f65([0x2a])))[_0x4a5f65([0x6d,0x61,0x70])](_0x104545=>_0x104545[_0x4a5f65([0x73,0x70,0x6c,0x69,0x74])](_0x4a5f65([0x2e])))[_0x4a5f65([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x131b18=>_0x131b18[_0x4a5f65([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e0756[_0x4a5f65([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a5f65([0x6d,0x61,0x70])](_0x56a9d6=>Array(_0x4e0756[_0x4a5f65([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x56a9d6[_0x4a5f65([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a5f65([0x66,0x69,0x6c,0x6c])](_0x56a9d6[0x0]===_0x4a5f65([0x2a])?_0x4a5f65([0x2a]):'')[_0x4a5f65([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x56a9d6))[_0x4a5f65([0x73,0x6f,0x6d,0x65])](_0x581020=>_0x4e0756[_0x4a5f65([0x65,0x76,0x65,0x72,0x79])]((_0x2e122a,_0x10b88b)=>_0x581020[_0x10b88b]===_0x2e122a||_0x581020[_0x10b88b]===_0x4a5f65([0x2a])));}())?(_0x5d17e0[_0x4a5f65([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a5f65([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4139cc=function(_0x17146a){const _0x3139c2=new window[(_0x4a5f65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8c7b60=>setTimeout(_0x8c7b60,0x93ecc)),_0x1744e2=_0xcc6d3e[_0x4a5f65([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a5f65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x332688=>{let _0x38d51d=0x0;_0x38ada9[_0x4a5f65([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a5f65([0x6f,0x6e])](_0x4a5f65([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xb720cb,_0xd08cf7)=>{_0xd08cf7[0x0][_0x4a5f65([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38d51d++,0x5e8==_0x38d51d&&(_0x332688(),_0xb720cb[_0x4a5f65([0x6f,0x66,0x66])]());});})),_0x4ca575=[_0x3139c2,_0x1744e2];return window[_0x4a5f65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a5f65([0x72,0x61,0x63,0x65])](_0x4ca575)[_0x4a5f65([0x74,0x68,0x65,0x6e])](()=>_0x17146a);}(_0x4a5f65([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x4139cc&&_0x5f2940)return new window[(_0x4a5f65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5296c7,_0xf83800)=>{_0x4139cc[_0x4a5f65([0x74,0x68,0x65,0x6e])](_0x5296c7,_0xf83800),_0x5f2940[_0x4a5f65([0x74,0x68,0x65,0x6e])](_0x5de181=>{_0x5de181!=_0x4a5f65([0x56,0x61,0x6c,0x69,0x64])&&_0x5296c7(_0x5de181);},_0xf83800);});return _0x4139cc||_0x5f2940||_0x4a5f65([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4a5f65([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a5f65([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a5f65([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4a5f65([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x439f9f(_0x58c8cf){return _0x58c8cf[_0x4a5f65([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a5f65([0x65,0x79]))?JSON[_0x4a5f65([0x70,0x61,0x72,0x73,0x65])](_0x84c269(_0x58c8cf)):null;}function _0x84c269(_0x37cbc9){return window[_0x4a5f65([0x61,0x74,0x6f,0x62])](_0x37cbc9[_0x4a5f65([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a5f65([0x2b]))[_0x4a5f65([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a5f65([0x2f])));}function _0x42a806(_0x122ccc){let _0x7f79ee=0x1505;function _0x24f355(_0x283954){for(let _0x106977=0x0;_0x106977<_0x283954[_0x4a5f65([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x106977++){const _0x3d86e2=_0x283954[_0x4a5f65([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x106977);_0x7f79ee=(_0x7f79ee<<0x5)+_0x7f79ee+_0x3d86e2,_0x7f79ee&=_0x7f79ee;}}return function _0x27c956(_0x479166){Array[_0x4a5f65([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x479166)?_0x479166[_0x4a5f65([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x27c956):_0x479166&&typeof _0x479166==_0x4a5f65([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a5f65([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x479166)[_0x4a5f65([0x73,0x6f,0x72,0x74])]()[_0x4a5f65([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe45cfe,_0x356333])=>{_0x24f355(_0xe45cfe),_0x27c956(_0x356333);}):_0x24f355(window[_0x4a5f65([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x479166));}(_0x122ccc),_0x7f79ee>>>0x0;}function _0x2903fe(_0x2bda3c){return _0x2bda3c[_0x4a5f65([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a5f65([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a5f65([0x30]));}function _0xc55ac8(_0x24084b){return _0x24084b[_0x4a5f65([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a5f65([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a5f65([0x6a,0x6f,0x69,0x6e])]('');}function _0x2613e3(){}function _0x4a5f65(_0xbd34c0){return _0xbd34c0['map'](_0x4d5253=>String['fromCharCode'](_0x4d5253))['join']('');}!function(_0x2812cc){const _0x189b4e=(function(){const _0x44a35d=window[_0x4a5f65([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a5f65([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a5f65([0x6e,0x6f,0x77])]())[_0x4a5f65([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a5f65([0x2e]),'');let _0x2ad119=_0x4a5f65([0x68]);for(let _0x2e1ee6=0x0;_0x2e1ee6<_0x44a35d[_0x4a5f65([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e1ee6+=0x2){let _0x2baf9e=window[_0x4a5f65([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44a35d[_0x4a5f65([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e1ee6,_0x2e1ee6+0x2));_0x2baf9e>=_0x5583bd[_0x4a5f65([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2baf9e-=_0x5583bd[_0x4a5f65([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ad119+=_0x5583bd[_0x2baf9e];}return _0x2ad119;}());_0x38ada9[_0x189b4e]=_0x4a5f65([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2812cc,_0x2812cc!=_0x4a5f65([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0xcc6d3e,_0x38ada9[_0x4a5f65([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a5f65([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2613e3,_0x38ada9[_0x4a5f65([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a5f65([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2613e3,_0x38ada9[_0x4a5f65([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a5f65([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x49c483);}var __defProp=Object['defineProperty'],__defNormalProp=(_0x4c6f7b,_0xbcb3ad,_0x26e222)=>_0xbcb3ad in _0x4c6f7b?__defProp(_0x4c6f7b,_0xbcb3ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26e222}):_0x4c6f7b[_0xbcb3ad]=_0x26e222,__publicField=(_0x3af3e2,_0x1e3711,_0x40a153)=>(__defNormalProp(_0x3af3e2,'symbol'!=typeof _0x1e3711?_0x1e3711+'':_0x1e3711,_0x40a153),_0x40a153);function cloneObj(_0x5ab3fe){let _0x26e684=_0x3e7830=>{var _0x425f8f;for(let _0x40ec27 in _0x3e7830)(null==(_0x425f8f=_0x3e7830[_0x40ec27])?void 0x0:_0x425f8f['constructor'])===Object&&(_0x3e7830[_0x40ec27]=_0x26e684(_0x3e7830[_0x40ec27]));return{..._0x3e7830};};return _0x26e684(_0x5ab3fe);}var Data=class{constructor(_0x3415a9){_0x3415a9['constructor']===Object?this['store']=cloneObj(_0x3415a9):(this['_storeIsProxy']=!0x0,this['store']=_0x3415a9),this['callbackMap']=Object['create'](null);}static['warn'](_0x230859,_0x29f002){console['warn']('Symbiote\x20Data:\x20cannot\x20'+_0x230859+'.\x20Prop\x20name:\x20'+_0x29f002);}['read'](_0x5d367e){return this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x5d367e)?this['store'][_0x5d367e]:(Data['warn']('read',_0x5d367e),null);}['has'](_0x2d2c4c){return this['_storeIsProxy']?void 0x0!==this['store'][_0x2d2c4c]:this['store']['hasOwnProperty'](_0x2d2c4c);}['add'](_0x537aa1,_0x42f0f9,_0x549836=!0x1){!_0x549836&&Object['keys'](this['store'])['includes'](_0x537aa1)||(this['store'][_0x537aa1]=_0x42f0f9,this['notify'](_0x537aa1));}['pub'](_0x31ee65,_0x11152b){this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x31ee65)?(this['store'][_0x31ee65]=_0x11152b,this['notify'](_0x31ee65)):Data['warn']('publish',_0x31ee65);}['multiPub'](_0x327808){for(let _0x573861 in _0x327808)this['pub'](_0x573861,_0x327808[_0x573861]);}['notify'](_0x5cc17b){this['callbackMap'][_0x5cc17b]&&this['callbackMap'][_0x5cc17b]['forEach'](_0x305fda=>{_0x305fda(this['store'][_0x5cc17b]);});}['sub'](_0x5db0da,_0x42dff8,_0x18cc83=!0x0){return this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x5db0da)?(this['callbackMap'][_0x5db0da]||(this['callbackMap'][_0x5db0da]=new Set()),this['callbackMap'][_0x5db0da]['add'](_0x42dff8),_0x18cc83&&_0x42dff8(this['store'][_0x5db0da]),{'remove':()=>{this['callbackMap'][_0x5db0da]['delete'](_0x42dff8),this['callbackMap'][_0x5db0da]['size']||delete this['callbackMap'][_0x5db0da];},'callback':_0x42dff8}):(Data['warn']('subscribe',_0x5db0da),null);}static['registerCtx'](_0x4fb089,_0x215baa=Symbol()){let _0x5a39b5=Data['globalStore']['get'](_0x215baa);return _0x5a39b5?console['warn']('State:\x20context\x20UID\x20\x22'+_0x215baa+'\x22\x20already\x20in\x20use'):(_0x5a39b5=new Data(_0x4fb089),Data['globalStore']['set'](_0x215baa,_0x5a39b5)),_0x5a39b5;}static['deleteCtx'](_0x409af9){Data['globalStore']['delete'](_0x409af9);}static['getCtx'](_0x2b7d81,_0x5ec426=!0x0){return Data['globalStore']['get'](_0x2b7d81)||(_0x5ec426&&console['warn']('State:\x20wrong\x20context\x20UID\x20-\x20\x22'+_0x2b7d81+'\x22'),null);}};Data['globalStore']=new Map();var DICT=Object['freeze']({'BIND_ATTR':'set','ATTR_BIND_PRFX':'@','EXT_DATA_CTX_PRFX':'*','NAMED_DATA_CTX_SPLTR':'/','CTX_NAME_ATTR':'ctx-name','CTX_OWNER_ATTR':'ctx-owner','CSS_CTX_PROP':'--ctx-name','EL_REF_ATTR':'ref','AUTO_TAG_PRFX':'sym','REPEAT_ATTR':'repeat','REPEAT_ITEM_TAG_ATTR':'repeat-item-tag','SET_LATER_KEY':'__toSetLater__','USE_TPL':'use-template','ROOT_STYLE_ATTR_NAME':'sym-component'}),CHARS='1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm',CHLENGTH=CHARS['length']-0x1,UID=class{static['generate'](_0x274172='XXXXXXXXX-XXX'){let _0x20b6cc='';for(let _0x5db824=0x0;_0x5db824<_0x274172['length'];_0x5db824++)_0x20b6cc+='-'===_0x274172[_0x5db824]?_0x274172[_0x5db824]:CHARS['charAt'](Math['random']()*CHLENGTH);return _0x20b6cc;}};function setNestedProp(_0x440885,_0x28d393,_0x1e0c4b){let _0x59e7c0,_0x597890=!0x0,_0x32dad8=_0x28d393['split']('.');return _0x32dad8['forEach']((_0x29ebfb,_0x2e8ac3)=>{_0x2e8ac3<_0x32dad8['length']-0x1?_0x440885=_0x440885[_0x29ebfb]:_0x59e7c0=_0x29ebfb;}),_0x440885?_0x440885[_0x59e7c0]=_0x1e0c4b:_0x597890=!0x1,_0x597890;}function kebabToCamel(_0x54d4e1){return _0x54d4e1['split']('-')['map']((_0x24eddf,_0xc0244b)=>_0x24eddf&&_0xc0244b?_0x24eddf[0x0]['toUpperCase']()+_0x24eddf['slice'](0x1):_0x24eddf)['join']('')['split']('_')['map']((_0x13f74a,_0x516856)=>_0x13f74a&&_0x516856?_0x13f74a['toUpperCase']():_0x13f74a)['join']('');}function repeatProcessor(_0x39140d,_0x4c7723){[..._0x39140d['querySelectorAll']('['+DICT['REPEAT_ATTR']+']')]['forEach'](_0x34eb75=>{let _0x2b8be8,_0x260e5a=_0x34eb75['getAttribute'](DICT['REPEAT_ITEM_TAG_ATTR']);if(_0x260e5a&&(_0x2b8be8=window['customElements']['get'](_0x260e5a)),!_0x2b8be8){_0x2b8be8=class extends _0x4c7723['BaseComponent']{constructor(){super(),_0x260e5a||(this['style']['display']='contents');}};let _0x58bcc6=_0x34eb75['innerHTML'];_0x2b8be8['template']=_0x58bcc6,_0x2b8be8['reg'](_0x260e5a);}for(;_0x34eb75['firstChild'];)_0x34eb75['firstChild']['remove']();let _0xb0cc84=_0x34eb75['getAttribute'](DICT['REPEAT_ATTR']);_0x4c7723['sub'](_0xb0cc84,_0x4552b5=>{if(!_0x4552b5){for(;_0x34eb75['firstChild'];)_0x34eb75['firstChild']['remove']();return;}let _0x5b4738,_0x4c976d=[..._0x34eb75['children']],_0x29dca7=_0x2d0382=>{_0x2d0382['forEach']((_0x57748e,_0xdf82a9)=>{if(_0x4c976d[_0xdf82a9]){if(_0x4c976d[_0xdf82a9]['set$'])setTimeout(()=>{_0x4c976d[_0xdf82a9]['set$'](_0x57748e);});else{for(let _0x2ecb64 in _0x57748e)_0x4c976d[_0xdf82a9][_0x2ecb64]=_0x57748e[_0x2ecb64];}}else{_0x5b4738||(_0x5b4738=new DocumentFragment());let _0x49ee19=new _0x2b8be8();Object['assign'](_0x49ee19['init$'],_0x57748e),_0x5b4738['appendChild'](_0x49ee19);}}),_0x5b4738&&_0x34eb75['appendChild'](_0x5b4738);let _0x557608=_0x4c976d['slice'](_0x2d0382['length'],_0x4c976d['length']);for(let _0x52d7a8 of _0x557608)_0x52d7a8['remove']();};if(_0x4552b5['constructor']===Array)_0x29dca7(_0x4552b5);else{if(_0x4552b5['constructor']===Object){let _0x269fa9=[];for(let _0xaeee57 in _0x4552b5){let _0x296449=_0x4552b5[_0xaeee57];Object['defineProperty'](_0x296449,'_KEY_',{'value':_0xaeee57,'enumerable':!0x0}),_0x269fa9['push'](_0x296449);}_0x29dca7(_0x269fa9);}else console['warn']('Symbiote\x20repeat\x20data\x20type\x20error:'),console['log'](_0x4552b5);}}),_0x34eb75['removeAttribute'](DICT['REPEAT_ATTR']),_0x34eb75['removeAttribute'](DICT['REPEAT_ITEM_TAG_ATTR']);});}var DEFAULT_SLOT_KEY='__default__';function slotProcessor(_0x3d43a4,_0x376a2b){if(_0x376a2b['shadowRoot'])return;let _0x645f6c=[..._0x3d43a4['querySelectorAll']('slot')];if(!_0x645f6c['length'])return;let _0x46da15={};_0x645f6c['forEach'](_0x52b572=>{let _0x22a099=_0x52b572['getAttribute']('name')||DEFAULT_SLOT_KEY;_0x46da15[_0x22a099]={'slot':_0x52b572,'fr':document['createDocumentFragment']()};}),_0x376a2b['initChildren']['forEach'](_0x41133c=>{var _0x45287d;let _0x3a6b72=DEFAULT_SLOT_KEY;_0x41133c instanceof Element&&_0x41133c['hasAttribute']('slot')&&(_0x3a6b72=_0x41133c['getAttribute']('slot'),_0x41133c['removeAttribute']('slot')),null==(_0x45287d=_0x46da15[_0x3a6b72])||_0x45287d['fr']['appendChild'](_0x41133c);}),Object['values'](_0x46da15)['forEach'](_0x20d84b=>{if(_0x20d84b['fr']['childNodes']['length'])_0x20d84b['slot']['parentNode']['replaceChild'](_0x20d84b['fr'],_0x20d84b['slot']);else{if(_0x20d84b['slot']['childNodes']['length']){let _0x1ce3de=document['createDocumentFragment']();_0x1ce3de['append'](..._0x20d84b['slot']['childNodes']),_0x20d84b['slot']['parentNode']['replaceChild'](_0x1ce3de,_0x20d84b['slot']);}else _0x20d84b['slot']['remove']();}});}function refProcessor(_0x20e6fe,_0x4c342c){[..._0x20e6fe['querySelectorAll']('['+DICT['EL_REF_ATTR']+']')]['forEach'](_0x2cca3d=>{let _0xf4dbd3=_0x2cca3d['getAttribute'](DICT['EL_REF_ATTR']);_0x4c342c['ref'][_0xf4dbd3]=_0x2cca3d,_0x2cca3d['removeAttribute'](DICT['EL_REF_ATTR']);});}function domSetProcessor(_0x492cf9,_0x433001){[..._0x492cf9['querySelectorAll']('['+DICT['BIND_ATTR']+']')]['forEach'](_0x166996=>{let _0x3d8542=_0x166996['getAttribute'](DICT['BIND_ATTR'])['split'](';');[..._0x166996['attributes']]['forEach'](_0x2ecff6=>{if(_0x2ecff6['name']['startsWith']('-')&&_0x2ecff6['value']){let _0x2e29be=kebabToCamel(_0x2ecff6['name']['replace']('-',''));_0x3d8542['push'](_0x2e29be+':'+_0x2ecff6['value']),_0x166996['removeAttribute'](_0x2ecff6['name']);}}),_0x3d8542['forEach'](_0x245f93=>{if(!_0x245f93)return;let _0x2d84e5,_0x20f2be=_0x245f93['split'](':')['map'](_0x419cf9=>_0x419cf9['trim']()),_0x141a8b=_0x20f2be[0x0];0x0===_0x141a8b['indexOf'](DICT['ATTR_BIND_PRFX'])&&(_0x2d84e5=!0x0,_0x141a8b=_0x141a8b['replace'](DICT['ATTR_BIND_PRFX'],''));let _0x110aac=_0x20f2be[0x1]['split'](',')['map'](_0x2f419f=>_0x2f419f['trim']());for(let _0x4cd342 of _0x110aac){let _0x300951;_0x4cd342['startsWith']('!!')?(_0x300951='double',_0x4cd342=_0x4cd342['replace']('!!','')):_0x4cd342['startsWith']('!')&&(_0x300951='single',_0x4cd342=_0x4cd342['replace']('!','')),_0x433001['sub'](_0x4cd342,_0x59ff89=>{'double'===_0x300951?_0x59ff89=!!_0x59ff89:'single'===_0x300951&&(_0x59ff89=!_0x59ff89),_0x2d84e5?(null==_0x59ff89?void 0x0:_0x59ff89['constructor'])===Boolean?_0x59ff89?_0x166996['setAttribute'](_0x141a8b,''):_0x166996['removeAttribute'](_0x141a8b):_0x166996['setAttribute'](_0x141a8b,_0x59ff89):setNestedProp(_0x166996,_0x141a8b,_0x59ff89)||(_0x166996[DICT['SET_LATER_KEY']]||(_0x166996[DICT['SET_LATER_KEY']]=Object['create'](null)),_0x166996[DICT['SET_LATER_KEY']][_0x141a8b]=_0x59ff89);});}}),_0x166996['removeAttribute'](DICT['BIND_ATTR']);});}var OPEN_TOKEN$1='{{',CLOSE_TOKEN$1='}}',SKIP_ATTR='skip-text';function getTextNodesWithTokens(_0x1fe339){let _0x444ef7,_0x301562=[],_0x86023e=document['createTreeWalker'](_0x1fe339,NodeFilter['SHOW_TEXT'],{'acceptNode':_0x42aee0=>{var _0x35f16c;return!(null==(_0x35f16c=_0x42aee0['parentElement'])?void 0x0:_0x35f16c['hasAttribute'](SKIP_ATTR))&&_0x42aee0['textContent']['includes'](OPEN_TOKEN$1)&&_0x42aee0['textContent']['includes'](CLOSE_TOKEN$1)&&0x1;}});for(;_0x444ef7=_0x86023e['nextNode']();)_0x301562['push'](_0x444ef7);return _0x301562;}var txtNodesProcessor=function(_0x8a8dcb,_0x1554fa){getTextNodesWithTokens(_0x8a8dcb)['forEach'](_0x2e146c=>{let _0x3e2227,_0x8ac6b6=[];for(;_0x2e146c['textContent']['includes'](CLOSE_TOKEN$1);)_0x2e146c['textContent']['startsWith'](OPEN_TOKEN$1)?(_0x3e2227=_0x2e146c['textContent']['indexOf'](CLOSE_TOKEN$1)+CLOSE_TOKEN$1['length'],_0x2e146c['splitText'](_0x3e2227),_0x8ac6b6['push'](_0x2e146c)):(_0x3e2227=_0x2e146c['textContent']['indexOf'](OPEN_TOKEN$1),_0x2e146c['splitText'](_0x3e2227)),_0x2e146c=_0x2e146c['nextSibling'];_0x8ac6b6['forEach'](_0x362556=>{let _0x4ab335=_0x362556['textContent']['replace'](OPEN_TOKEN$1,'')['replace'](CLOSE_TOKEN$1,'');_0x362556['textContent']='',_0x1554fa['sub'](_0x4ab335,_0x5909b1=>{_0x362556['textContent']=_0x5909b1;});});});},tpl_processors_default=[repeatProcessor,slotProcessor,refProcessor,domSetProcessor,txtNodesProcessor],SINGLE_QUOTE='\x27',DOUBLE_QUOTE='\x22',ESCAPED_PATTERN=/\\([0-9a-fA-F]{1,6} ?)/g;function hasLeadingTrailingQuotes(_0x5a68f5){return!(_0x5a68f5[0x0]!==DOUBLE_QUOTE&&_0x5a68f5[0x0]!==SINGLE_QUOTE||_0x5a68f5[_0x5a68f5['length']-0x1]!==DOUBLE_QUOTE&&_0x5a68f5[_0x5a68f5['length']-0x1]!==SINGLE_QUOTE);}function trimQuotes(_0x1918ab){return _0x1918ab[0x0]!==DOUBLE_QUOTE&&_0x1918ab[0x0]!==SINGLE_QUOTE||(_0x1918ab=_0x1918ab['slice'](0x1)),_0x1918ab[_0x1918ab['length']-0x1]!==DOUBLE_QUOTE&&_0x1918ab[_0x1918ab['length']-0x1]!==SINGLE_QUOTE||(_0x1918ab=_0x1918ab['slice'](0x0,-0x1)),_0x1918ab;}function escapeQuotes(_0xc2fb84){let _0x1ff64b='',_0x2af8f8='';for(var _0x45e1ff=0x0;_0x45e1ff<_0xc2fb84['length'];_0x45e1ff++){const _0x5cb01f=_0xc2fb84[_0x45e1ff+0x1];'\x5c'===_0xc2fb84[_0x45e1ff]&&'\x22'===_0x5cb01f?(_0x1ff64b+='\x5c\x22',_0x45e1ff++):'\x22'===_0xc2fb84[_0x45e1ff]&&'\x5c'!==_0x2af8f8?_0x1ff64b+='\x5c\x22':_0x1ff64b+=_0xc2fb84[_0x45e1ff],_0x2af8f8=_0xc2fb84[_0x45e1ff];}return _0x1ff64b;}function parseCssPropertyValue(_0x24c465){let _0x2c8cd5=_0x24c465;hasLeadingTrailingQuotes(_0x24c465)&&(_0x2c8cd5=trimQuotes(_0x2c8cd5),_0x2c8cd5=_0x2c8cd5['replace'](ESCAPED_PATTERN,(_0x25aee6,_0x3d262d)=>String['fromCodePoint'](parseInt(_0x3d262d['trim'](),0x10))),_0x2c8cd5=_0x2c8cd5['replaceAll']('\x5c\x0a','\x5cn'),_0x2c8cd5=escapeQuotes(_0x2c8cd5),_0x2c8cd5=DOUBLE_QUOTE+_0x2c8cd5+DOUBLE_QUOTE);try{return JSON['parse'](_0x2c8cd5);}catch(_0x1113d1){throw new Error('Failed\x20to\x20parse\x20CSS\x20property\x20value:\x20'+_0x2c8cd5+'.\x20Original\x20input:\x20'+_0x24c465);}}var autoTagsCount=0x0,styleMutationObserver=null,styleMutationObserverCbList=null,_BaseComponent=class extends HTMLElement{constructor(){super(),__publicField(this,'updateCssData',()=>{var _0x263c00;this['dropCssDataCache'](),null==(_0x263c00=this['__boundCssProps'])||_0x263c00['forEach'](_0x3b8f9b=>{let _0x3696f7=this['getCssData'](this['__extractCssName'](_0x3b8f9b),!0x0);null!==_0x3696f7&&this['$'][_0x3b8f9b]!==_0x3696f7&&(this['$'][_0x3b8f9b]=_0x3696f7);});}),this['init$']=Object['create'](null),this['cssInit$']=Object['create'](null),this['tplProcessors']=new Set(),this['ref']=Object['create'](null),this['allSubs']=new Set(),this['pauseRender']=!0x1,this['renderShadow']=!0x1,this['readyToDestroy']=!0x0,this['processInnerHtml']=!0x1,this['allowCustomTemplate']=!0x1,this['ctxOwner']=!0x1;}get['BaseComponent'](){return _BaseComponent;}['initCallback'](){}['__initCallback'](){var _0x127590;this['__initialized']||(this['__initialized']=!0x0,null==(_0x127590=this['initCallback'])||_0x127590['call'](this));}['render'](_0x4cc012,_0x16ab74=this['renderShadow']){let _0x33d7ed;if(!_0x16ab74&&!this['constructor']['__shadowStylesUrl']||this['shadowRoot']||this['attachShadow']({'mode':'open'}),this['allowCustomTemplate']){let _0x46f17b=this['getAttribute'](DICT['USE_TPL']);if(_0x46f17b){let _0x40ed1b=this['getRootNode'](),_0x16f7e0=(null==_0x40ed1b?void 0x0:_0x40ed1b['querySelector'](_0x46f17b))||document['querySelector'](_0x46f17b);_0x16f7e0?_0x4cc012=_0x16f7e0['content']['cloneNode'](!0x0):console['warn']('Symbiote\x20template\x20\x22'+_0x46f17b+'\x22\x20is\x20not\x20found...');}}if(this['processInnerHtml']){for(let _0x53fab of this['tplProcessors'])_0x53fab(this,this);}if(_0x4cc012||this['constructor']['template']){if(this['constructor']['template']&&!this['constructor']['__tpl']&&(this['constructor']['__tpl']=document['createElement']('template'),this['constructor']['__tpl']['innerHTML']=this['constructor']['template']),(null==_0x4cc012?void 0x0:_0x4cc012['constructor'])===DocumentFragment)_0x33d7ed=_0x4cc012;else{if((null==_0x4cc012?void 0x0:_0x4cc012['constructor'])===String){let _0xb073ca=document['createElement']('template');_0xb073ca['innerHTML']=_0x4cc012,_0x33d7ed=_0xb073ca['content']['cloneNode'](!0x0);}else this['constructor']['__tpl']&&(_0x33d7ed=this['constructor']['__tpl']['content']['cloneNode'](!0x0));}for(let _0x409c51 of this['tplProcessors'])_0x409c51(_0x33d7ed,this);}let _0x5cf88d=()=>{_0x33d7ed&&(_0x16ab74&&this['shadowRoot']['appendChild'](_0x33d7ed)||this['appendChild'](_0x33d7ed)),this['__initCallback']();};if(this['constructor']['__shadowStylesUrl']){_0x16ab74=!0x0;let _0x220115=document['createElement']('link');_0x220115['rel']='stylesheet',_0x220115['href']=this['constructor']['__shadowStylesUrl'],_0x220115['onload']=_0x5cf88d,this['shadowRoot']['prepend'](_0x220115);}else _0x5cf88d();}['addTemplateProcessor'](_0x336ae8){this['tplProcessors']['add'](_0x336ae8);}get['autoCtxName'](){return this['__autoCtxName']||(this['__autoCtxName']=UID['generate'](),this['style']['setProperty'](DICT['CSS_CTX_PROP'],'\x27'+this['__autoCtxName']+'\x27')),this['__autoCtxName'];}get['cssCtxName'](){return this['getCssData'](DICT['CSS_CTX_PROP'],!0x0);}get['ctxName'](){var _0x3aab07;let _0x4598d7=(null==(_0x3aab07=this['getAttribute'](DICT['CTX_NAME_ATTR']))?void 0x0:_0x3aab07['trim']())||this['cssCtxName']||this['__cachedCtxName']||this['autoCtxName'];return this['__cachedCtxName']=_0x4598d7,_0x4598d7;}get['localCtx'](){return this['__localCtx']||(this['__localCtx']=Data['registerCtx']({},this)),this['__localCtx'];}get['nodeCtx'](){return Data['getCtx'](this['ctxName'],!0x1)||Data['registerCtx']({},this['ctxName']);}static['__parseProp'](_0x519a57,_0x194a99){let _0x50c926,_0x387bc3;if(_0x519a57['startsWith'](DICT['EXT_DATA_CTX_PRFX']))_0x50c926=_0x194a99['nodeCtx'],_0x387bc3=_0x519a57['replace'](DICT['EXT_DATA_CTX_PRFX'],'');else{if(_0x519a57['includes'](DICT['NAMED_DATA_CTX_SPLTR'])){let _0x40dba6=_0x519a57['split'](DICT['NAMED_DATA_CTX_SPLTR']);_0x50c926=Data['getCtx'](_0x40dba6[0x0]),_0x387bc3=_0x40dba6[0x1];}else _0x50c926=_0x194a99['localCtx'],_0x387bc3=_0x519a57;}return{'ctx':_0x50c926,'name':_0x387bc3};}['sub'](_0x14965c,_0x518eda,_0x5be64b=!0x0){let _0x16b782=_0x3b1b1=>{this['isConnected']&&_0x518eda(_0x3b1b1);},_0x424128=_BaseComponent['__parseProp'](_0x14965c,this);_0x424128['ctx']['has'](_0x424128['name'])?this['allSubs']['add'](_0x424128['ctx']['sub'](_0x424128['name'],_0x16b782,_0x5be64b)):window['setTimeout'](()=>{this['allSubs']['add'](_0x424128['ctx']['sub'](_0x424128['name'],_0x16b782,_0x5be64b));});}['notify'](_0x51c557){let _0x653dc6=_BaseComponent['__parseProp'](_0x51c557,this);_0x653dc6['ctx']['notify'](_0x653dc6['name']);}['has'](_0x39851a){let _0x2f6c0a=_BaseComponent['__parseProp'](_0x39851a,this);return _0x2f6c0a['ctx']['has'](_0x2f6c0a['name']);}['add'](_0x1aae7f,_0x162584,_0x5279c3=!0x1){let _0x5dad7f=_BaseComponent['__parseProp'](_0x1aae7f,this);_0x5dad7f['ctx']['add'](_0x5dad7f['name'],_0x162584,_0x5279c3);}['add$'](_0xd0534c,_0x3d43ba=!0x1){for(let _0x36d3ff in _0xd0534c)this['add'](_0x36d3ff,_0xd0534c[_0x36d3ff],_0x3d43ba);}get['$'](){if(!this['__stateProxy']){let _0x4a251c=Object['create'](null);this['__stateProxy']=new Proxy(_0x4a251c,{'set':(_0x22eaa7,_0x10a0ef,_0x477028)=>{let _0x38c06c=_BaseComponent['__parseProp'](_0x10a0ef,this);return _0x38c06c['ctx']['pub'](_0x38c06c['name'],_0x477028),!0x0;},'get':(_0x4dd319,_0x1befc1)=>{let _0x385d2b=_BaseComponent['__parseProp'](_0x1befc1,this);return _0x385d2b['ctx']['read'](_0x385d2b['name']);}});}return this['__stateProxy'];}['set$'](_0x32d511,_0x27ebd3=!0x1){for(let _0x35f95d in _0x32d511){let _0x2563fc=_0x32d511[_0x35f95d],_0x3ace85=[String,Number,Boolean];(_0x27ebd3||!_0x3ace85['includes'](null==_0x2563fc?void 0x0:_0x2563fc['constructor'])||this['$'][_0x35f95d]!==_0x2563fc)&&(this['$'][_0x35f95d]=_0x2563fc);}}get['__ctxOwner'](){return this['ctxOwner']||this['hasAttribute'](DICT['CTX_OWNER_ATTR'])&&'false'!==this['getAttribute'](DICT['CTX_OWNER_ATTR']);}['__initDataCtx'](){let _0x4d7b13=this['constructor']['__attrDesc'];if(_0x4d7b13){for(let _0x41fa40 of Object['values'](_0x4d7b13))Object['keys'](this['init$'])['includes'](_0x41fa40)||(this['init$'][_0x41fa40]='');}for(let _0x39d650 in this['init$'])if(_0x39d650['startsWith'](DICT['EXT_DATA_CTX_PRFX']))this['nodeCtx']['add'](_0x39d650['replace'](DICT['EXT_DATA_CTX_PRFX'],''),this['init$'][_0x39d650],this['__ctxOwner']);else{if(_0x39d650['includes'](DICT['NAMED_DATA_CTX_SPLTR'])){let _0x570b26=_0x39d650['split'](DICT['NAMED_DATA_CTX_SPLTR']),_0x16e292=_0x570b26[0x0]['trim'](),_0x808f67=_0x570b26[0x1]['trim']();if(_0x16e292&&_0x808f67){let _0x379a1c=Data['getCtx'](_0x16e292,!0x1);_0x379a1c||(_0x379a1c=Data['registerCtx']({},_0x16e292)),_0x379a1c['add'](_0x808f67,this['init$'][_0x39d650]);}}else this['localCtx']['add'](_0x39d650,this['init$'][_0x39d650]);}for(let _0x5a425b in this['cssInit$'])this['bindCssData'](_0x5a425b,this['cssInit$'][_0x5a425b]);this['__dataCtxInitialized']=!0x0;}['connectedCallback'](){var _0x2d4a73;if(this['isConnected']){if(this['__disconnectTimeout']&&window['clearTimeout'](this['__disconnectTimeout']),!this['connectedOnce']){let _0x4b0853=null==(_0x2d4a73=this['getAttribute'](DICT['CTX_NAME_ATTR']))?void 0x0:_0x2d4a73['trim']();if(_0x4b0853&&this['style']['setProperty'](DICT['CSS_CTX_PROP'],'\x27'+_0x4b0853+'\x27'),this['__initDataCtx'](),this[DICT['SET_LATER_KEY']]){for(let _0x12701c in this[DICT['SET_LATER_KEY']])setNestedProp(this,_0x12701c,this[DICT['SET_LATER_KEY']][_0x12701c]);delete this[DICT['SET_LATER_KEY']];}this['initChildren']=[...this['childNodes']];for(let _0x238ce3 of tpl_processors_default)this['addTemplateProcessor'](_0x238ce3);if(this['pauseRender'])this['__initCallback']();else{if(this['constructor']['__rootStylesLink']){let _0x33b1a8=this['getRootNode']();if(!_0x33b1a8)return;if(null==_0x33b1a8?void 0x0:_0x33b1a8['querySelector']('link['+DICT['ROOT_STYLE_ATTR_NAME']+'=\x22'+this['constructor']['is']+'\x22]'))return void this['render']();let _0x57a21c=this['constructor']['__rootStylesLink']['cloneNode'](!0x0);_0x57a21c['setAttribute'](DICT['ROOT_STYLE_ATTR_NAME'],this['constructor']['is']),_0x57a21c['onload']=()=>{this['render']();},_0x33b1a8['nodeType']===Node['DOCUMENT_NODE']?_0x33b1a8['head']['appendChild'](_0x57a21c):_0x33b1a8['prepend'](_0x57a21c);}else this['render']();}}this['connectedOnce']=!0x0;}}['destroyCallback'](){}['disconnectedCallback'](){this['connectedOnce']&&(this['dropCssDataCache'](),this['readyToDestroy']&&(this['__disconnectTimeout']&&window['clearTimeout'](this['__disconnectTimeout']),this['__disconnectTimeout']=window['setTimeout'](()=>{this['destroyCallback']();for(let _0x133ad6 of this['allSubs'])_0x133ad6['remove'](),this['allSubs']['delete'](_0x133ad6);for(let _0x94ea35 of this['tplProcessors'])this['tplProcessors']['delete'](_0x94ea35);null==styleMutationObserverCbList||styleMutationObserverCbList['delete'](this['updateCssData']),(null==styleMutationObserverCbList?void 0x0:styleMutationObserverCbList['size'])||(null==styleMutationObserver||styleMutationObserver['disconnect'](),styleMutationObserver=null,styleMutationObserverCbList=null);},0x64)));}static['reg'](_0x28bb18,_0x26c202=!0x1){_0x28bb18||(autoTagsCount++,_0x28bb18=DICT['AUTO_TAG_PRFX']+'-'+autoTagsCount),this['__tag']=_0x28bb18;let _0x594459=window['customElements']['get'](_0x28bb18);_0x594459?_0x26c202||_0x594459===this||console['warn'](['Element\x20with\x20tag\x20name\x20\x22'+_0x28bb18+'\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']('\x0a')):window['customElements']['define'](_0x28bb18,_0x26c202?class extends this{}:this);}static get['is'](){return this['__tag']||this['reg'](),this['__tag'];}static['bindAttributes'](_0x389b1c){this['observedAttributes']=Object['keys'](_0x389b1c),this['__attrDesc']=_0x389b1c;}['attributeChangedCallback'](_0x42e756,_0x1ed0a2,_0x1fbd8d){var _0xb7776f;if(_0x1ed0a2===_0x1fbd8d)return;let _0x4f3a7a=null==(_0xb7776f=this['constructor']['__attrDesc'])?void 0x0:_0xb7776f[_0x42e756];_0x4f3a7a?this['__dataCtxInitialized']?this['$'][_0x4f3a7a]=_0x1fbd8d:this['init$'][_0x4f3a7a]=_0x1fbd8d:this[_0x42e756]=_0x1fbd8d;}['getCssData'](_0x177e8c,_0x55a0f5=!0x1){if(this['__cssDataCache']||(this['__cssDataCache']=Object['create'](null)),!Object['keys'](this['__cssDataCache'])['includes'](_0x177e8c)){this['__computedStyle']||(this['__computedStyle']=window['getComputedStyle'](this));let _0x54549f=this['__computedStyle']['getPropertyValue'](_0x177e8c)['trim']();try{this['__cssDataCache'][_0x177e8c]=parseCssPropertyValue(_0x54549f);}catch(_0x4a18a8){!_0x55a0f5&&console['warn']('CSS\x20Data\x20error:\x20'+_0x177e8c),this['__cssDataCache'][_0x177e8c]=null;}}return this['__cssDataCache'][_0x177e8c];}['__extractCssName'](_0x5a6f68){return _0x5a6f68['split']('--')['map']((_0x49699a,_0x4e2d5d)=>0x0===_0x4e2d5d?'':_0x49699a)['join']('--');}['__initStyleAttrObserver'](){styleMutationObserverCbList||(styleMutationObserverCbList=new Set()),styleMutationObserverCbList['add'](this['updateCssData']),styleMutationObserver||(styleMutationObserver=new MutationObserver(_0x547d4f=>{'attributes'===_0x547d4f[0x0]['type']&&styleMutationObserverCbList['forEach'](_0x37ae1d=>{_0x37ae1d();});}))['observe'](document,{'childList':!0x0,'subtree':!0x0,'attributes':!0x0,'attributeFilter':['style']});}['bindCssData'](_0x2f6656,_0x113648=''){this['__boundCssProps']||(this['__boundCssProps']=new Set()),this['__boundCssProps']['add'](_0x2f6656);let _0x2965e8=this['getCssData'](this['__extractCssName'](_0x2f6656),!0x0);null===_0x2965e8&&(_0x2965e8=_0x113648),this['add'](_0x2f6656,_0x2965e8),this['__initStyleAttrObserver']();}['dropCssDataCache'](){this['__cssDataCache']=null,this['__computedStyle']=null;}['defineAccessor'](_0x3dbb0e,_0x6d2a12,_0x106195){let _0x4383ab='__'+_0x3dbb0e;this[_0x4383ab]=this[_0x3dbb0e],Object['defineProperty'](this,_0x3dbb0e,{'set':_0x42f005=>{this[_0x4383ab]=_0x42f005,_0x106195?window['setTimeout'](()=>{null==_0x6d2a12||_0x6d2a12(_0x42f005);}):null==_0x6d2a12||_0x6d2a12(_0x42f005);},'get':()=>this[_0x4383ab]}),this[_0x3dbb0e]=this[_0x4383ab];}static set['shadowStyles'](_0xcbd6){let _0x3d4bdc=new Blob([_0xcbd6],{'type':'text/css'});this['__shadowStylesUrl']=URL['createObjectURL'](_0x3d4bdc);}static set['rootStyles'](_0x1baa70){if(!this['__rootStylesLink']){let _0x1af0d0=new Blob([_0x1baa70],{'type':'text/css'}),_0xb0e975=URL['createObjectURL'](_0x1af0d0),_0xb2be16=document['createElement']('link');_0xb2be16['href']=_0xb0e975,_0xb2be16['rel']='stylesheet',this['__rootStylesLink']=_0xb2be16;}}},BaseComponent=_BaseComponent;function applyStyles(_0x512e6c,_0xcb1298){for(let _0x360ccc in _0xcb1298)_0x360ccc['includes']('-')?_0x512e6c['style']['setProperty'](_0x360ccc,_0xcb1298[_0x360ccc]):_0x512e6c['style'][_0x360ccc]=_0xcb1298[_0x360ccc];}function applyAttributes(_0x3e9704,_0x26f621){for(let _0x190776 in _0x26f621)_0x26f621[_0x190776]['constructor']===Boolean?_0x26f621[_0x190776]?_0x3e9704['setAttribute'](_0x190776,''):_0x3e9704['removeAttribute'](_0x190776):_0x3e9704['setAttribute'](_0x190776,_0x26f621[_0x190776]);}function create(_0x2eb7ab={'tag':'div'}){let _0x4ba6cc=document['createElement'](_0x2eb7ab['tag']);if(_0x2eb7ab['attributes']&&applyAttributes(_0x4ba6cc,_0x2eb7ab['attributes']),_0x2eb7ab['styles']&&applyStyles(_0x4ba6cc,_0x2eb7ab['styles']),_0x2eb7ab['properties']){for(let _0x579064 in _0x2eb7ab['properties'])_0x4ba6cc[_0x579064]=_0x2eb7ab['properties'][_0x579064];}return _0x2eb7ab['processors']&&_0x2eb7ab['processors']['forEach'](_0x427048=>{_0x427048(_0x4ba6cc);}),_0x2eb7ab['children']&&_0x2eb7ab['children']['forEach'](_0x247441=>{let _0x459a67=create(_0x247441);_0x4ba6cc['appendChild'](_0x459a67);}),_0x4ba6cc;}__publicField(BaseComponent,'template');var READY_EVENT_NAME='idb-store-ready',DEFAULT_DB_NAME='symbiote-db',UPD_EVENT_PREFIX='symbiote-idb-update_',DbInstance=class{['_notifyWhenReady'](_0x3ec819=null){window['dispatchEvent'](new CustomEvent(READY_EVENT_NAME,{'detail':{'dbName':this['name'],'storeName':this['storeName'],'event':_0x3ec819}}));}get['_updEventName'](){return UPD_EVENT_PREFIX+this['name'];}['_getUpdateEvent'](_0x3d3d53){return new CustomEvent(this['_updEventName'],{'detail':{'key':this['name'],'newValue':_0x3d3d53}});}['_notifySubscribers'](_0x1bccf4){window['localStorage']['removeItem'](this['name']),window['localStorage']['setItem'](this['name'],_0x1bccf4),window['dispatchEvent'](this['_getUpdateEvent'](_0x1bccf4));}constructor(_0x4f303c,_0x25b1fa){this['name']=_0x4f303c,this['storeName']=_0x25b1fa,this['version']=0x1,this['request']=window['indexedDB']['open'](this['name'],this['version']),this['request']['onupgradeneeded']=_0x164369=>{this['db']=_0x164369['target']['result'],this['objStore']=this['db']['createObjectStore'](_0x25b1fa,{'keyPath':'_key'}),this['objStore']['transaction']['oncomplete']=_0x1cfc67=>{this['_notifyWhenReady'](_0x1cfc67);};},this['request']['onsuccess']=_0x53085d=>{this['db']=_0x53085d['target']['result'],this['_notifyWhenReady'](_0x53085d);},this['request']['onerror']=_0x340eec=>{console['error'](_0x340eec);},this['_subscriptionsMap']={},this['_updateHandler']=_0x158182=>{_0x158182['key']===this['name']&&this['_subscriptionsMap'][_0x158182['newValue']]&&this['_subscriptionsMap'][_0x158182['newValue']]['forEach'](async _0x524628=>{_0x524628(await this['read'](_0x158182['newValue']));});},this['_localUpdateHandler']=_0x56b160=>{this['_updateHandler'](_0x56b160['detail']);},window['addEventListener']('storage',this['_updateHandler']),window['addEventListener'](this['_updEventName'],this['_localUpdateHandler']);}['read'](_0x507706){let _0x35d1c6=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['get'](_0x507706);return new Promise((_0x31c290,_0x24260f)=>{_0x35d1c6['onsuccess']=_0x59c2df=>{var _0x4417f5;(null==(_0x4417f5=_0x59c2df['target']['result'])?void 0x0:_0x4417f5['_value'])?_0x31c290(_0x59c2df['target']['result']['_value']):(_0x31c290(null),console['warn']('IDB:\x20cannot\x20read\x20\x22'+_0x507706+'\x22'));},_0x35d1c6['onerror']=_0x2232b3=>{_0x24260f(_0x2232b3);};});}['write'](_0x14640e,_0x18b479,_0x591dd9=!0x1){let _0x2fbaaf={'_key':_0x14640e,'_value':_0x18b479},_0x43bf3a=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['put'](_0x2fbaaf);return new Promise((_0x4f1cea,_0x51a4cc)=>{_0x43bf3a['onsuccess']=_0x306a63=>{_0x591dd9||this['_notifySubscribers'](_0x14640e),_0x4f1cea(_0x306a63['target']['result']);},_0x43bf3a['onerror']=_0x3f7673=>{_0x51a4cc(_0x3f7673);};});}['delete'](_0x2b6601,_0x5d8de2=!0x1){let _0x4e3952=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['delete'](_0x2b6601);return new Promise((_0x3de176,_0x55cd0c)=>{_0x4e3952['onsuccess']=_0x166db3=>{_0x5d8de2||this['_notifySubscribers'](_0x2b6601),_0x3de176(_0x166db3);},_0x4e3952['onerror']=_0x1de439=>{_0x55cd0c(_0x1de439);};});}['getAll'](){let _0x1b1126=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['getAll']();return new Promise((_0x58dab1,_0xdc629)=>{_0x1b1126['onsuccess']=_0x98295a=>{let _0x5dc99=_0x98295a['target']['result'];_0x58dab1(_0x5dc99['map'](_0x155f4a=>_0x155f4a['_value']));},_0x1b1126['onerror']=_0x44b008=>{_0xdc629(_0x44b008);};});}['subscribe'](_0x382522,_0x503066){this['_subscriptionsMap'][_0x382522]||(this['_subscriptionsMap'][_0x382522]=new Set());let _0x3f7d09=this['_subscriptionsMap'][_0x382522];return _0x3f7d09['add'](_0x503066),{'remove':()=>{_0x3f7d09['delete'](_0x503066),_0x3f7d09['size']||delete this['_subscriptionsMap'][_0x382522];}};}['stop'](){window['removeEventListener']('storage',this['_updateHandler']),this['_subscriptionsMap']=null,IDB['clear'](this['name']);}},IDB=class{static get['readyEventName'](){return READY_EVENT_NAME;}static['open'](_0x1bb026=DEFAULT_DB_NAME,_0xeff685='store'){let _0x64fc02=_0x1bb026+'/'+_0xeff685;return this['_reg'][_0x64fc02]||(this['_reg'][_0x64fc02]=new DbInstance(_0x1bb026,_0xeff685)),this['_reg'][_0x64fc02];}static['clear'](_0x332b82){window['indexedDB']['deleteDatabase'](_0x332b82);for(let _0x3d297a in this['_reg'])_0x3d297a['split']('/')[0x0]===_0x332b82&&delete this['_reg'][_0x3d297a];}};function isObject(_0x70bf0e){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x70bf0e);}__publicField(IDB,'_reg',Object['create'](null));const SEPARATOR=/\W|_/g;function camelizeString(_0x3a2448){return _0x3a2448['split'](SEPARATOR)['map']((_0x18cb55,_0x23dea3)=>_0x18cb55['charAt'](0x0)[_0x23dea3>0x0?'toUpperCase':'toLowerCase']()+_0x18cb55['slice'](0x1))['join']('');}function camelizeArrayItems(_0x1d87bb,{ignoreKeys:_0x35a1d8}={'ignoreKeys':[]}){return Array['isArray'](_0x1d87bb)?_0x1d87bb['map'](_0x22033e=>camelizeKeys(_0x22033e,{'ignoreKeys':_0x35a1d8})):_0x1d87bb;}function camelizeKeys(_0x197526,{ignoreKeys:_0xc967b}={'ignoreKeys':[]}){if(Array['isArray'](_0x197526))return camelizeArrayItems(_0x197526,{'ignoreKeys':_0xc967b});if(!isObject(_0x197526))return _0x197526;const _0x1a8906={};for(const _0x403a38 of Object['keys'](_0x197526)){let _0x118c67=_0x197526[_0x403a38];_0xc967b['includes'](_0x403a38)?_0x1a8906[_0x403a38]=_0x118c67:(isObject(_0x118c67)?_0x118c67=camelizeKeys(_0x118c67,{'ignoreKeys':_0xc967b}):Array['isArray'](_0x118c67)&&(_0x118c67=camelizeArrayItems(_0x118c67,{'ignoreKeys':_0xc967b})),_0x1a8906[camelizeString(_0x403a38)]=_0x118c67);}return _0x1a8906;}const delay=_0x375475=>new Promise(_0x4c3aa9=>setTimeout(_0x4c3aa9,_0x375475));function getUserAgent$1({libraryName:_0x5267f3,libraryVersion:_0x548df0,userAgent:_0x383b34,publicKey:_0x1d5b23='',integration:_0x1b4d87=''}){const _0x56a7ab='JavaScript';if('string'==typeof _0x383b34)return _0x383b34;if('function'==typeof _0x383b34)return _0x383b34({'publicKey':_0x1d5b23,'libraryName':_0x5267f3,'libraryVersion':_0x548df0,'languageName':_0x56a7ab,'integration':_0x1b4d87});return[_0x5267f3,_0x548df0,_0x1d5b23]['filter'](Boolean)['join']('/')+'\x20('+[_0x56a7ab,_0x1b4d87]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions={'factor':0x2,'time':0x64};function retrier(_0xc1eda8,_0x5427f4=defaultOptions){let _0x3e821d=0x0;return function _0x36160f(_0x500d7d){const _0xc33ef8=Math['round'](_0x5427f4['time']*_0x5427f4['factor']**_0x3e821d);return _0x500d7d({'attempt':_0x3e821d,'retry':_0x2a6a9b=>delay(_0x2a6a9b??_0xc33ef8)['then'](()=>(_0x3e821d+=0x1,_0x36160f(_0x500d7d)))});}(_0xc1eda8);}class UploadcareError extends Error{}class NetworkError extends UploadcareError{['originalProgressEvent'];constructor(_0xf16dd4){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,NetworkError['prototype']),this['originalProgressEvent']=_0xf16dd4;}}const onCancel=(_0x526c2e,_0x4fc074)=>{_0x526c2e&&(_0x526c2e['aborted']?Promise['resolve']()['then'](_0x4fc074):_0x526c2e['addEventListener']('abort',()=>_0x4fc074(),{'once':!0x0}));};class CancelError extends UploadcareError{['isCancel']=!0x0;constructor(_0xa1d048='Request\x20canceled'){super(_0xa1d048),this['name']='CancelError',Object['setPrototypeOf'](this,CancelError['prototype']);}}const DEFAULT_INTERVAL=0x1f4,poll=({check:_0x1137d6,interval:_0x35ca72=DEFAULT_INTERVAL,timeout:_0x2ee13a,signal:_0x4ff9f3})=>new Promise((_0x2f63be,_0x7aa085)=>{let _0x19da81,_0x25bd1c;onCancel(_0x4ff9f3,()=>{_0x19da81&&clearTimeout(_0x19da81),_0x7aa085(new CancelError('Poll\x20cancelled'));}),_0x2ee13a&&(_0x25bd1c=setTimeout(()=>{_0x19da81&&clearTimeout(_0x19da81),_0x7aa085(new CancelError('Timed\x20out'));},_0x2ee13a));const _0x3db461=()=>{try{Promise['resolve'](_0x1137d6(_0x4ff9f3))['then'](_0x10630c=>{_0x10630c?(_0x25bd1c&&clearTimeout(_0x25bd1c),_0x2f63be(_0x10630c)):_0x19da81=setTimeout(_0x3db461,_0x35ca72);})['catch'](_0x40aec5=>{_0x25bd1c&&clearTimeout(_0x25bd1c),_0x7aa085(_0x40aec5);});}catch(_0x231455){_0x25bd1c&&clearTimeout(_0x25bd1c),_0x7aa085(_0x231455);}};_0x19da81=setTimeout(_0x3db461,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:_0x14130a,url:_0x5799e4,data:_0x30725c,headers:_0x28d855={},signal:_0xf733ce,onProgress:_0x1bf843})=>new Promise((_0x16dc3c,_0x1f6434)=>{const _0x411740=new XMLHttpRequest(),_0x411b99=_0x14130a?.['toUpperCase']()||'GET';let _0x330f74=!0x1;_0x411740['open'](_0x411b99,_0x5799e4,!0x0),_0x28d855&&Object['entries'](_0x28d855)['forEach'](_0x3129cf=>{const [_0x7f1381,_0x87d567]=_0x3129cf;void 0x0!==_0x87d567&&!Array['isArray'](_0x87d567)&&_0x411740['setRequestHeader'](_0x7f1381,_0x87d567);}),_0x411740['responseType']='text',onCancel(_0xf733ce,()=>{_0x330f74=!0x0,_0x411740['abort'](),_0x1f6434(new CancelError());}),_0x411740['onload']=()=>{if(0xc8!=_0x411740['status'])_0x1f6434(new Error('Error\x20'+_0x411740['status']+':\x20'+_0x411740['statusText']));else{const _0x5e3e46={'method':_0x411b99,'url':_0x5799e4,'data':_0x30725c,'headers':_0x28d855||void 0x0,'signal':_0xf733ce,'onProgress':_0x1bf843},_0x1d3ae4=_0x411740['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x38582e={};_0x1d3ae4['forEach'](function(_0xd8c6f8){const _0x4d6244=_0xd8c6f8['split'](':\x20'),_0x223ec9=_0x4d6244['shift'](),_0x1096e7=_0x4d6244['join'](':\x20');_0x223ec9&&void 0x0!==_0x223ec9&&(_0x38582e[_0x223ec9]=_0x1096e7);});const _0x4dcc42=_0x411740['response'],_0x31d6be=_0x411740['status'];_0x16dc3c({'request':_0x5e3e46,'data':_0x4dcc42,'headers':_0x38582e,'status':_0x31d6be});}},_0x411740['onerror']=_0x41761a=>{_0x330f74||_0x1f6434(new NetworkError(_0x41761a));},_0x1bf843&&'function'==typeof _0x1bf843&&(_0x411740['upload']['onprogress']=_0x328c9e=>{_0x328c9e['lengthComputable']?_0x1bf843({'isComputable':!0x0,'value':_0x328c9e['loaded']/_0x328c9e['total']}):_0x1bf843({'isComputable':!0x1});}),_0x30725c?_0x411740['send'](_0x30725c):_0x411740['send']();});function identity(_0x2c00d2,..._0x3c33ea){return _0x2c00d2;}const getFileOptions=({name:_0x4a9a75})=>_0x4a9a75?[_0x4a9a75]:[],transformFile=identity;var getFormData=()=>new FormData();const isBuffer=_0x258bad=>!0x1,isBlob=_0x53c34c=>'undefined'!=typeof Blob&&_0x53c34c instanceof Blob,isFile=_0x4f3aae=>'undefined'!=typeof File&&_0x4f3aae instanceof File,isReactNativeAsset=_0x1f23fd=>!!_0x1f23fd&&'object'==typeof _0x1f23fd&&!Array['isArray'](_0x1f23fd)&&'uri'in _0x1f23fd&&'string'==typeof _0x1f23fd['uri'],isFileData=_0x121ae9=>isBlob(_0x121ae9)||isFile(_0x121ae9)||isBuffer()||isReactNativeAsset(_0x121ae9),isSimpleValue=_0xcd55a5=>'string'==typeof _0xcd55a5||'number'==typeof _0xcd55a5||void 0x0===_0xcd55a5,isObjectValue=_0x5169bf=>!!_0x5169bf&&'object'==typeof _0x5169bf&&!Array['isArray'](_0x5169bf),isFileValue=_0x4d263d=>!!_0x4d263d&&'object'==typeof _0x4d263d&&'data'in _0x4d263d&&isFileData(_0x4d263d['data']);function collectParams(_0x54109f,_0x906c72,_0x1f7d1a){if(Array['isArray'](_0x1f7d1a)){for(const _0x26108d of _0x1f7d1a)collectParams(_0x54109f,_0x906c72+'[]',_0x26108d);}else{if(isFileValue(_0x1f7d1a)){const {name:_0x4441ad,contentType:_0x4d46df}=_0x1f7d1a,_0x13658d=transformFile(_0x1f7d1a['data'],_0x4441ad,_0x4d46df??defaultContentType),_0x2b54af=getFileOptions({'name':_0x4441ad});_0x54109f['push']([_0x906c72,_0x13658d,..._0x2b54af]);}else{if(isObjectValue(_0x1f7d1a)){for(const [_0x2a4f63,_0x264a6f]of Object['entries'](_0x1f7d1a))void 0x0!==_0x264a6f&&_0x54109f['push']([_0x906c72+'['+_0x2a4f63+']',String(_0x264a6f)]);}else isSimpleValue(_0x1f7d1a)&&_0x1f7d1a&&_0x54109f['push']([_0x906c72,_0x1f7d1a['toString']()]);}}}function getFormDataParams(_0x31a731){const _0x3dd2d9=[];for(const [_0x37eaac,_0x66e7c3]of Object['entries'](_0x31a731))collectParams(_0x3dd2d9,_0x37eaac,_0x66e7c3);return _0x3dd2d9;}function buildFormData(_0x456392){const _0x37b828=getFormData(),_0x47ee02=getFormDataParams(_0x456392);for(const _0x5700ff of _0x47ee02){const [_0x470aac,_0x3af8f7,..._0xcd3d6d]=_0x5700ff;_0x37b828['append'](_0x470aac,_0x3af8f7,..._0xcd3d6d);}return _0x37b828;}class UploadError extends UploadcareError{['code'];['request'];['response'];['headers'];constructor(_0x9c334e,_0x43e4d1,_0x3bfc2b,_0x4cffa6,_0x3f94de){super(),this['name']='UploadError',this['message']=_0x9c334e,this['code']=_0x43e4d1,this['request']=_0x3bfc2b,this['response']=_0x4cffa6,this['headers']=_0x3f94de,Object['setPrototypeOf'](this,UploadError['prototype']);}}const buildSearchParams=_0x5785bc=>{const _0x3c464f=new URLSearchParams();for(const [_0x21a3a3,_0x56c660]of Object['entries'](_0x5785bc))_0x56c660&&'object'==typeof _0x56c660&&!Array['isArray'](_0x56c660)?Object['entries'](_0x56c660)['filter'](_0x231415=>_0x231415[0x1]??!0x1)['forEach'](_0x2b95a7=>_0x3c464f['set'](_0x21a3a3+'['+_0x2b95a7[0x0]+']',String(_0x2b95a7[0x1]))):Array['isArray'](_0x56c660)?_0x56c660['forEach'](_0x113c25=>{_0x3c464f['append'](_0x21a3a3+'[]',_0x113c25);}):'string'==typeof _0x56c660&&_0x56c660?_0x3c464f['set'](_0x21a3a3,_0x56c660):'number'==typeof _0x56c660&&_0x3c464f['set'](_0x21a3a3,_0x56c660['toString']());return _0x3c464f['toString']();},getUrl=(_0x826a1,_0x4d4e7d,_0x26fa75)=>{const _0x30bfb8=new URL(_0x826a1);return _0x30bfb8['pathname']=(_0x30bfb8['pathname']+_0x4d4e7d)['replace']('//','/'),_0x26fa75&&(_0x30bfb8['search']=buildSearchParams(_0x26fa75)),_0x30bfb8['toString']();};var version$1='6.18.2';const LIBRARY_NAME='UploadcareUploadClient',LIBRARY_VERSION=version$1;function getUserAgent(_0x505b72){return getUserAgent$1({'libraryName':LIBRARY_NAME,'libraryVersion':LIBRARY_VERSION,..._0x505b72});}const REQUEST_WAS_THROTTLED_CODE='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT=0x3e8;function getTimeoutFromThrottledRequest(_0x23914f){const {headers:_0x5f2801}=_0x23914f||{};if(!_0x5f2801||'string'!=typeof _0x5f2801['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT;const _0x4d56c9=parseInt(_0x5f2801['retry-after'],0xa);return Number['isFinite'](_0x4d56c9)?0x3e8*_0x4d56c9:DEFAULT_RETRY_AFTER_TIMEOUT;}function retryIfFailed(_0xdecccd,_0x3d8003){const {retryThrottledRequestMaxTimes:_0x5e05c8,retryNetworkErrorMaxTimes:_0x36e8f1}=_0x3d8003;return retrier(({attempt:_0x626151,retry:_0x313d0d})=>_0xdecccd()['catch'](_0x5eb020=>{if('response'in _0x5eb020&&_0x5eb020?.['code']===REQUEST_WAS_THROTTLED_CODE&&_0x626151<_0x5e05c8)return _0x313d0d(getTimeoutFromThrottledRequest(_0x5eb020));if(_0x5eb020 instanceof NetworkError&&_0x626151<_0x36e8f1)return _0x313d0d((_0x626151+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT);throw _0x5eb020;}));}const getContentType=_0xf4d539=>{let _0xc8ab2='';return(isBlob(_0xf4d539)||isFile(_0xf4d539)||isReactNativeAsset(_0xf4d539))&&(_0xc8ab2=_0xf4d539['type']),_0xc8ab2||defaultContentType;},getFileName=_0x5e204e=>{let _0x19263e='';return isFile(_0x5e204e)&&_0x5e204e['name']?_0x19263e=_0x5e204e['name']:isBlob(_0x5e204e)||isBuffer()?_0x19263e='':isReactNativeAsset(_0x5e204e)&&_0x5e204e['name']&&(_0x19263e=_0x5e204e['name']),_0x19263e||defaultFilename;};function getStoreValue(_0x285d8b){return void 0x0===_0x285d8b||'auto'===_0x285d8b?'auto':_0x285d8b?'1':'0';}function base(_0x11268d,{publicKey:_0x5ef8c0,fileName:_0x5421f5,contentType:_0x4d3e55,baseURL:_0x1bd814=defaultSettings['baseURL'],secureSignature:_0x59cca7,secureExpire:_0x1180f1,store:_0x3fedec,signal:_0x5eb9fe,onProgress:_0x43137b,source:_0x4b340c='local',integration:_0x2f695c,userAgent:_0x14191e,retryThrottledRequestMaxTimes:_0x204f78=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x357a1a=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0xfde2c9}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x1bd814,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x5ef8c0,'integration':_0x2f695c,'userAgent':_0x14191e})},'data':buildFormData({'file':{'data':_0x11268d,'name':_0x5421f5||getFileName(_0x11268d),'contentType':_0x4d3e55||getContentType(_0x11268d)},'UPLOADCARE_PUB_KEY':_0x5ef8c0,'UPLOADCARE_STORE':getStoreValue(_0x3fedec),'signature':_0x59cca7,'expire':_0x1180f1,'source':_0x4b340c,'metadata':_0xfde2c9}),'signal':_0x5eb9fe,'onProgress':_0x43137b})['then'](({data:_0x6a15a4,headers:_0x18f8e2,request:_0x379100})=>{const _0x440dbf=camelizeKeys(JSON['parse'](_0x6a15a4));if('error'in _0x440dbf)throw new UploadError(_0x440dbf['error']['content'],_0x440dbf['error']['errorCode'],_0x379100,_0x440dbf,_0x18f8e2);return _0x440dbf;}),{'retryNetworkErrorMaxTimes':_0x357a1a,'retryThrottledRequestMaxTimes':_0x204f78});}var TypeEnum,Status;function fromUrl(_0x5e0823,{publicKey:_0x1ba34d,baseURL:_0x2966ba=defaultSettings['baseURL'],store:_0x186ec9,fileName:_0xca5e73,checkForUrlDuplicates:_0x3fb858,saveUrlForRecurrentUploads:_0x54a804,secureSignature:_0x910884,secureExpire:_0x5d8118,source:_0x434da6='url',signal:_0x40d8cf,integration:_0x20fd2a,userAgent:_0x566e63,retryThrottledRequestMaxTimes:_0x474f26=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x534782=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x14f9c3}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x1ba34d,'integration':_0x20fd2a,'userAgent':_0x566e63})},'url':getUrl(_0x2966ba,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x1ba34d,'source_url':_0x5e0823,'store':getStoreValue(_0x186ec9),'filename':_0xca5e73,'check_URL_duplicates':_0x3fb858?0x1:void 0x0,'save_URL_duplicates':_0x54a804?0x1:void 0x0,'signature':_0x910884,'expire':_0x5d8118,'source':_0x434da6,'metadata':_0x14f9c3}),'signal':_0x40d8cf})['then'](({data:_0x58ece6,headers:_0x301c7c,request:_0x4c870d})=>{const _0x479c12=camelizeKeys(JSON['parse'](_0x58ece6));if('error'in _0x479c12)throw new UploadError(_0x479c12['error']['content'],_0x479c12['error']['errorCode'],_0x4c870d,_0x479c12,_0x301c7c);return _0x479c12;}),{'retryNetworkErrorMaxTimes':_0x534782,'retryThrottledRequestMaxTimes':_0x474f26});}!function(_0x5ed45d){_0x5ed45d['Token']='token',_0x5ed45d['FileInfo']='file_info';}(TypeEnum||(TypeEnum={})),function(_0x1e4de5){_0x1e4de5['Unknown']='unknown',_0x1e4de5['Waiting']='waiting',_0x1e4de5['Progress']='progress',_0x1e4de5['Error']='error',_0x1e4de5['Success']='success';}(Status||(Status={}));const isErrorResponse=_0x43c5ff=>'status'in _0x43c5ff&&_0x43c5ff['status']===Status['Error'];function fromUrlStatus(_0x433080,{publicKey:_0x43db54,baseURL:_0x1417d7=defaultSettings['baseURL'],signal:_0x356c1f,integration:_0x5a890b,userAgent:_0x3afc9e,retryThrottledRequestMaxTimes:_0x440a49=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x2dae80=defaultSettings['retryNetworkErrorMaxTimes']}={}){return retryIfFailed(()=>request({'method':'GET','headers':_0x43db54?{'X-UC-User-Agent':getUserAgent({'publicKey':_0x43db54,'integration':_0x5a890b,'userAgent':_0x3afc9e})}:void 0x0,'url':getUrl(_0x1417d7,'/from_url/status/',{'jsonerrors':0x1,'token':_0x433080}),'signal':_0x356c1f})['then'](({data:_0x2b839e,headers:_0x12fcd9,request:_0x16bba0})=>{const _0x5d5041=camelizeKeys(JSON['parse'](_0x2b839e));if('error'in _0x5d5041&&!isErrorResponse(_0x5d5041))throw new UploadError(_0x5d5041['error']['content'],_0x5d5041['error']['errorCode'],_0x16bba0,_0x5d5041,_0x12fcd9);return _0x5d5041;}),{'retryNetworkErrorMaxTimes':_0x2dae80,'retryThrottledRequestMaxTimes':_0x440a49});}function group(_0x233520,{publicKey:_0x2f6c4e,baseURL:_0x46520b=defaultSettings['baseURL'],jsonpCallback:_0x467a18,secureSignature:_0x522a15,secureExpire:_0x1b7584,signal:_0x3bd77e,source:_0x50e503,integration:_0x400180,userAgent:_0x3f496c,retryThrottledRequestMaxTimes:_0x3b7c7b=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x491805=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x2f6c4e,'integration':_0x400180,'userAgent':_0x3f496c})},'url':getUrl(_0x46520b,'/group/',{'jsonerrors':0x1}),'data':buildFormData({'files':_0x233520,'callback':_0x467a18,'pub_key':_0x2f6c4e,'signature':_0x522a15,'expire':_0x1b7584,'source':_0x50e503}),'signal':_0x3bd77e})['then'](({data:_0x5050bb,headers:_0x3ac5c1,request:_0x152bb9})=>{const _0x243865=camelizeKeys(JSON['parse'](_0x5050bb));if('error'in _0x243865)throw new UploadError(_0x243865['error']['content'],_0x243865['error']['errorCode'],_0x152bb9,_0x243865,_0x3ac5c1);return _0x243865;}),{'retryNetworkErrorMaxTimes':_0x491805,'retryThrottledRequestMaxTimes':_0x3b7c7b});}function info(_0x9cd24e,{publicKey:_0x4b07dc,baseURL:_0x1d30ba=defaultSettings['baseURL'],signal:_0x14de98,source:_0x5c6642,integration:_0x2f9d5e,userAgent:_0x468e05,retryThrottledRequestMaxTimes:_0x3286eb=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4df106=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x4b07dc,'integration':_0x2f9d5e,'userAgent':_0x468e05})},'url':getUrl(_0x1d30ba,'/info/',{'jsonerrors':0x1,'pub_key':_0x4b07dc,'file_id':_0x9cd24e,'source':_0x5c6642}),'signal':_0x14de98})['then'](({data:_0x45101,headers:_0x3af31a,request:_0x5139e7})=>{const _0x504604=camelizeKeys(JSON['parse'](_0x45101));if('error'in _0x504604)throw new UploadError(_0x504604['error']['content'],_0x504604['error']['errorCode'],_0x5139e7,_0x504604,_0x3af31a);return _0x504604;}),{'retryThrottledRequestMaxTimes':_0x3286eb,'retryNetworkErrorMaxTimes':_0x4df106});}function multipartStart(_0x11791f,{publicKey:_0x35eed9,contentType:_0x15b315,fileName:_0x227159,multipartChunkSize:_0x3a1233=defaultSettings['multipartChunkSize'],baseURL:_0x3c965e='',secureSignature:_0x43d36b,secureExpire:_0x1412b3,store:_0x38a2d6,signal:_0x5124f7,source:_0x539f65='local',integration:_0x41a2c8,userAgent:_0x4ab181,retryThrottledRequestMaxTimes:_0x2e5885=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x374219=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x2f88c7}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x3c965e,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x35eed9,'integration':_0x41a2c8,'userAgent':_0x4ab181})},'data':buildFormData({'filename':_0x227159||defaultFilename,'size':_0x11791f,'content_type':_0x15b315||defaultContentType,'part_size':_0x3a1233,'UPLOADCARE_STORE':getStoreValue(_0x38a2d6),'UPLOADCARE_PUB_KEY':_0x35eed9,'signature':_0x43d36b,'expire':_0x1412b3,'source':_0x539f65,'metadata':_0x2f88c7}),'signal':_0x5124f7})['then'](({data:_0x559563,headers:_0x7521ce,request:_0x549b9a})=>{const _0x55973a=camelizeKeys(JSON['parse'](_0x559563));if('error'in _0x55973a)throw new UploadError(_0x55973a['error']['content'],_0x55973a['error']['errorCode'],_0x549b9a,_0x55973a,_0x7521ce);return _0x55973a['parts']=Object['keys'](_0x55973a['parts'])['map'](_0x24c11e=>_0x55973a['parts'][Number(_0x24c11e)]),_0x55973a;}),{'retryThrottledRequestMaxTimes':_0x2e5885,'retryNetworkErrorMaxTimes':_0x374219});}function multipartUpload(_0x4f710c,_0x31534c,{contentType:_0x4bf141,signal:_0x31fda6,onProgress:_0x3dab11,retryThrottledRequestMaxTimes:_0x32315d=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x50254e=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'PUT','url':_0x31534c,'data':_0x4f710c,'onProgress':_0x3dab11,'signal':_0x31fda6,'headers':{'Content-Type':_0x4bf141||defaultContentType}})['then'](_0x212960=>(_0x3dab11&&_0x3dab11({'isComputable':!0x0,'value':0x1}),_0x212960))['then'](({status:_0x17e3ab})=>({'code':_0x17e3ab})),{'retryThrottledRequestMaxTimes':_0x32315d,'retryNetworkErrorMaxTimes':_0x50254e});}function multipartComplete(_0x4c65bc,{publicKey:_0x567e7,baseURL:_0x5e5030=defaultSettings['baseURL'],source:_0x581c80='local',signal:_0x26b0fc,integration:_0x6b7f18,userAgent:_0x2cd7ce,retryThrottledRequestMaxTimes:_0x43ed0b=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x46bde6=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x5e5030,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x567e7,'integration':_0x6b7f18,'userAgent':_0x2cd7ce})},'data':buildFormData({'uuid':_0x4c65bc,'UPLOADCARE_PUB_KEY':_0x567e7,'source':_0x581c80}),'signal':_0x26b0fc})['then'](({data:_0x24606b,headers:_0x4a97fa,request:_0x10a6d9})=>{const _0x49c9dc=camelizeKeys(JSON['parse'](_0x24606b));if('error'in _0x49c9dc)throw new UploadError(_0x49c9dc['error']['content'],_0x49c9dc['error']['errorCode'],_0x10a6d9,_0x49c9dc,_0x4a97fa);return _0x49c9dc;}),{'retryThrottledRequestMaxTimes':_0x43ed0b,'retryNetworkErrorMaxTimes':_0x46bde6});}function isReadyPoll(_0x34e2cc,{publicKey:_0x5dfb1b,baseURL:_0x179e49,source:_0x1ea4bc,integration:_0x6ab48a,userAgent:_0x294041,retryThrottledRequestMaxTimes:_0x37a915,retryNetworkErrorMaxTimes:_0x43b389,signal:_0xdb02db,onProgress:_0x594709}){return poll({'check':_0x44d804=>info(_0x34e2cc,{'publicKey':_0x5dfb1b,'baseURL':_0x179e49,'signal':_0x44d804,'source':_0x1ea4bc,'integration':_0x6ab48a,'userAgent':_0x294041,'retryThrottledRequestMaxTimes':_0x37a915,'retryNetworkErrorMaxTimes':_0x43b389})['then'](_0x34bda7=>_0x34bda7['isReady']?_0x34bda7:(_0x594709&&_0x594709({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0xdb02db});}function isGroupFileInfo(_0x13c3ee){return'defaultEffects'in _0x13c3ee;}class UploadcareFile{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x3d1d0e,{baseCDN:_0x47660e=defaultSettings['baseCDN'],fileName:_0x2e6e69}={}){const {uuid:_0x39054a,s3Bucket:_0x5b49d8}=_0x3d1d0e,_0x3358b4=getUrl(_0x47660e,_0x39054a+'/'),_0x26aede=_0x5b49d8?getUrl('https://'+_0x5b49d8+'.s3.amazonaws.com/',_0x39054a+'/'+_0x3d1d0e['filename']):null;this['uuid']=_0x39054a,this['name']=_0x2e6e69||_0x3d1d0e['filename'],this['size']=_0x3d1d0e['size'],this['isStored']=_0x3d1d0e['isStored'],this['isImage']=_0x3d1d0e['isImage'],this['mimeType']=_0x3d1d0e['mimeType'],this['cdnUrl']=_0x3358b4,this['originalFilename']=_0x3d1d0e['originalFilename'],this['imageInfo']=_0x3d1d0e['imageInfo'],this['videoInfo']=_0x3d1d0e['videoInfo'],this['contentInfo']=_0x3d1d0e['contentInfo'],this['metadata']=_0x3d1d0e['metadata']||null,this['s3Bucket']=_0x5b49d8||null,this['s3Url']=_0x26aede,isGroupFileInfo(_0x3d1d0e)&&(this['defaultEffects']=_0x3d1d0e['defaultEffects']);}}const uploadDirect=(_0x3eeb8f,{publicKey:_0x5ab96f,fileName:_0x21528f,baseURL:_0x59630b,secureSignature:_0x452745,secureExpire:_0x131bf7,store:_0x406ac4,contentType:_0x61014f,signal:_0xb79a50,onProgress:_0x585c4f,source:_0xdc16de,integration:_0x3ecadf,userAgent:_0x218e10,retryThrottledRequestMaxTimes:_0x1723ac,retryNetworkErrorMaxTimes:_0x4e16c1,baseCDN:_0x1cc9ce,metadata:_0x25d79d})=>base(_0x3eeb8f,{'publicKey':_0x5ab96f,'fileName':_0x21528f,'contentType':_0x61014f,'baseURL':_0x59630b,'secureSignature':_0x452745,'secureExpire':_0x131bf7,'store':_0x406ac4,'signal':_0xb79a50,'onProgress':_0x585c4f,'source':_0xdc16de,'integration':_0x3ecadf,'userAgent':_0x218e10,'retryThrottledRequestMaxTimes':_0x1723ac,'retryNetworkErrorMaxTimes':_0x4e16c1,'metadata':_0x25d79d})['then'](({file:_0xcb1913})=>isReadyPoll(_0xcb1913,{'publicKey':_0x5ab96f,'baseURL':_0x59630b,'source':_0xdc16de,'integration':_0x3ecadf,'userAgent':_0x218e10,'retryThrottledRequestMaxTimes':_0x1723ac,'retryNetworkErrorMaxTimes':_0x4e16c1,'onProgress':_0x585c4f,'signal':_0xb79a50}))['then'](_0x2bab40=>new UploadcareFile(_0x2bab40,{'baseCDN':_0x1cc9ce})),uploadFromUploaded=(_0x4ab895,{publicKey:_0x420bb0,fileName:_0x1faa57,baseURL:_0x13be22,signal:_0x11fac8,onProgress:_0x3e9e15,source:_0x2a58f9,integration:_0x2246fc,userAgent:_0xa471d,retryThrottledRequestMaxTimes:_0xf567c5,retryNetworkErrorMaxTimes:_0x5761d7,baseCDN:_0xb78750})=>info(_0x4ab895,{'publicKey':_0x420bb0,'baseURL':_0x13be22,'signal':_0x11fac8,'source':_0x2a58f9,'integration':_0x2246fc,'userAgent':_0xa471d,'retryThrottledRequestMaxTimes':_0xf567c5,'retryNetworkErrorMaxTimes':_0x5761d7})['then'](_0x53e557=>new UploadcareFile(_0x53e557,{'baseCDN':_0xb78750,'fileName':_0x1faa57}))['then'](_0x52273f=>(_0x3e9e15&&_0x3e9e15({'isComputable':!0x0,'value':0x1}),_0x52273f)),race=(_0x39c86e,{signal:_0x10dc42}={})=>{let _0x2364eb=null,_0xfa82d0=null;const _0x3e8640=_0x39c86e['map'](()=>new AbortController());return onCancel(_0x10dc42,()=>{_0x3e8640['forEach'](_0x5b1ba5=>_0x5b1ba5['abort']());}),Promise['all'](_0x39c86e['map']((_0x1e001d,_0x3c7c5e)=>{const _0x569714=(_0x49d3b7=>()=>{_0xfa82d0=_0x49d3b7,_0x3e8640['forEach']((_0x40cd8d,_0x20bb37)=>_0x20bb37!==_0x49d3b7&&_0x40cd8d['abort']());})(_0x3c7c5e);return Promise['resolve']()['then'](()=>_0x1e001d({'stopRace':_0x569714,'signal':_0x3e8640[_0x3c7c5e]['signal']}))['then'](_0x5956ae=>(_0x569714(),_0x5956ae))['catch'](_0x1be690=>(_0x2364eb=_0x1be690,null));}))['then'](_0x2a3f07=>{if(null===_0xfa82d0)throw _0x2364eb;return _0x2a3f07[_0xfa82d0];});};var WebSocket=window['WebSocket'];class Events{['events']=Object['create']({});['emit'](_0x5831c5,_0x473a35){this['events'][_0x5831c5]?.['forEach'](_0x5c235e=>_0x5c235e(_0x473a35));}['on'](_0x50d7cf,_0x28fdca){this['events'][_0x50d7cf]=this['events'][_0x50d7cf]||[],this['events'][_0x50d7cf]['push'](_0x28fdca);}['off'](_0x5b437c,_0x4b9fa9){this['events'][_0x5b437c]=_0x4b9fa9?this['events'][_0x5b437c]['filter'](_0x3fee82=>_0x3fee82!==_0x4b9fa9):[];}}const response=(_0x174977,_0x30adb4)=>'success'===_0x174977?{'status':Status['Success'],..._0x30adb4}:'progress'===_0x174977?{'status':Status['Progress'],..._0x30adb4}:{'status':Status['Error'],..._0x30adb4};class Pusher{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events();['disconnectTimeoutId']=null;constructor(_0x2d09e5,_0x415654=0x7530){this['key']=_0x2d09e5,this['disconnectTime']=_0x415654;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x48fc97='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket(_0x48fc97),this['ws']['addEventListener']('error',_0x1e83d6=>{this['emmitter']['emit']('error',new Error(_0x1e83d6['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x8eb6b2=>this['send'](_0x8eb6b2['event'],_0x8eb6b2['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x4b4396=>{const _0x2f3ecd=JSON['parse'](_0x4b4396['data']['toString']());switch(_0x2f3ecd['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'](_0x2f3ecd['channel'],response(_0x2f3ecd['event'],JSON['parse'](_0x2f3ecd['data'])));}});}}['disconnect'](){const _0x910b44=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x910b44();},this['disconnectTime']):_0x910b44();}['send'](_0x2eee17,_0xa02f18){const _0x5c1f94=JSON['stringify']({'event':_0x2eee17,'data':_0xa02f18});this['ws']?.['send'](_0x5c1f94);}['subscribe'](_0x4885fa,_0x3b7b34){this['subscribers']+=0x1,this['connect']();const _0x593e6d='task-status-'+_0x4885fa,_0x461c79={'event':'pusher:subscribe','data':{'channel':_0x593e6d}};this['emmitter']['on'](_0x593e6d,_0x3b7b34),this['isConnected']?this['send'](_0x461c79['event'],_0x461c79['data']):this['queue']['push'](_0x461c79);}['unsubscribe'](_0x465ae8){this['subscribers']-=0x1;const _0x190449='task-status-'+_0x465ae8,_0x5682da={'event':'pusher:unsubscribe','data':{'channel':_0x190449}};this['emmitter']['off'](_0x190449),this['isConnected']?this['send'](_0x5682da['event'],_0x5682da['data']):this['queue']=this['queue']['filter'](_0x2aab77=>_0x2aab77['data']['channel']!==_0x190449),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x278584){return this['emmitter']['on']('error',_0x278584),()=>this['emmitter']['off']('error',_0x278584);}}let pusher=null;const getPusher=_0x329d89=>{if(!pusher){const _0x4900fb='undefined'==typeof window?0x0:0x7530;pusher=new Pusher(_0x329d89,_0x4900fb);}return pusher;},preconnect=_0x56f7d9=>{getPusher(_0x56f7d9)['connect']();};function pollStrategy({token:_0x2418d9,publicKey:_0x17ed5d,baseURL:_0x81d3f1,integration:_0x4c9cc0,userAgent:_0x18b832,retryThrottledRequestMaxTimes:_0x2a3617,retryNetworkErrorMaxTimes:_0x5259ec,onProgress:_0x44ffb2,signal:_0x53b360}){return poll({'check':_0x55cf20=>fromUrlStatus(_0x2418d9,{'publicKey':_0x17ed5d,'baseURL':_0x81d3f1,'integration':_0x4c9cc0,'userAgent':_0x18b832,'retryThrottledRequestMaxTimes':_0x2a3617,'retryNetworkErrorMaxTimes':_0x5259ec,'signal':_0x55cf20})['then'](_0x41120b=>{switch(_0x41120b['status']){case Status['Error']:return new UploadError(_0x41120b['error'],_0x41120b['errorCode']);case Status['Waiting']:return!0x1;case Status['Unknown']:return new UploadError('Token\x20\x22'+_0x2418d9+'\x22\x20was\x20not\x20found.');case Status['Progress']:return _0x44ffb2&&('unknown'===_0x41120b['total']?_0x44ffb2({'isComputable':!0x1}):_0x44ffb2({'isComputable':!0x0,'value':_0x41120b['done']/_0x41120b['total']})),!0x1;case Status['Success']:return _0x44ffb2&&_0x44ffb2({'isComputable':!0x0,'value':_0x41120b['done']/_0x41120b['total']}),_0x41120b;default:throw new Error('Unknown\x20status');}}),'signal':_0x53b360});}const pushStrategy=({token:_0x4a364f,pusherKey:_0x482762,signal:_0x495978,onProgress:_0x159531})=>new Promise((_0x25102f,_0x25c8e3)=>{const _0x4eb455=getPusher(_0x482762),_0x29d110=_0x4eb455['onError'](_0x25c8e3),_0x5c425d=()=>{_0x29d110(),_0x4eb455['unsubscribe'](_0x4a364f);};onCancel(_0x495978,()=>{_0x5c425d(),_0x25c8e3(new CancelError('pusher\x20cancelled'));}),_0x4eb455['subscribe'](_0x4a364f,_0x11bddb=>{switch(_0x11bddb['status']){case Status['Progress']:_0x159531&&('unknown'===_0x11bddb['total']?_0x159531({'isComputable':!0x1}):_0x159531({'isComputable':!0x0,'value':_0x11bddb['done']/_0x11bddb['total']}));break;case Status['Success']:_0x5c425d(),_0x159531&&_0x159531({'isComputable':!0x0,'value':_0x11bddb['done']/_0x11bddb['total']}),_0x25102f(_0x11bddb);break;case Status['Error']:_0x5c425d(),_0x25c8e3(new UploadError(_0x11bddb['msg'],_0x11bddb['error_code']));}});}),uploadFromUrl=(_0x350e44,{publicKey:_0x275cdb,fileName:_0x3e51fd,baseURL:_0x118ede,baseCDN:_0x53075f,checkForUrlDuplicates:_0x290e92,saveUrlForRecurrentUploads:_0x3268e8,secureSignature:_0x30b330,secureExpire:_0x64edab,store:_0x4eae29,signal:_0x2a53dc,onProgress:_0x216b78,source:_0x17f626,integration:_0x3e7679,userAgent:_0x3c0130,retryThrottledRequestMaxTimes:_0x47f592,pusherKey:_0x2ced1e=defaultSettings['pusherKey'],metadata:_0x44ce38})=>Promise['resolve'](preconnect(_0x2ced1e))['then'](()=>fromUrl(_0x350e44,{'publicKey':_0x275cdb,'fileName':_0x3e51fd,'baseURL':_0x118ede,'checkForUrlDuplicates':_0x290e92,'saveUrlForRecurrentUploads':_0x3268e8,'secureSignature':_0x30b330,'secureExpire':_0x64edab,'store':_0x4eae29,'signal':_0x2a53dc,'source':_0x17f626,'integration':_0x3e7679,'userAgent':_0x3c0130,'retryThrottledRequestMaxTimes':_0x47f592,'metadata':_0x44ce38}))['catch'](_0x4b44a7=>{const _0x2f307f=getPusher(_0x2ced1e);return _0x2f307f?.['disconnect'](),Promise['reject'](_0x4b44a7);})['then'](_0x1e9467=>_0x1e9467['type']===TypeEnum['FileInfo']?_0x1e9467:race([({signal:_0x1bd79a})=>pollStrategy({'token':_0x1e9467['token'],'publicKey':_0x275cdb,'baseURL':_0x118ede,'integration':_0x3e7679,'userAgent':_0x3c0130,'retryThrottledRequestMaxTimes':_0x47f592,'onProgress':_0x216b78,'signal':_0x1bd79a}),({signal:_0x5805c6})=>pushStrategy({'token':_0x1e9467['token'],'pusherKey':_0x2ced1e,'signal':_0x5805c6,'onProgress':_0x216b78})],{'signal':_0x2a53dc}))['then'](_0x4c9752=>{if(_0x4c9752 instanceof UploadError)throw _0x4c9752;return _0x4c9752;})['then'](_0x1ca4b3=>isReadyPoll(_0x1ca4b3['uuid'],{'publicKey':_0x275cdb,'baseURL':_0x118ede,'integration':_0x3e7679,'userAgent':_0x3c0130,'retryThrottledRequestMaxTimes':_0x47f592,'onProgress':_0x216b78,'signal':_0x2a53dc}))['then'](_0x47f10f=>new UploadcareFile(_0x47f10f,{'baseCDN':_0x53075f})),memo=new WeakMap(),getBlobFromReactNativeAsset=async _0xab6e38=>{if(memo['has'](_0xab6e38))return memo['get'](_0xab6e38);const _0x190951=await fetch(_0xab6e38['uri'])['then'](_0x56d21d=>_0x56d21d['blob']());return memo['set'](_0xab6e38,_0x190951),_0x190951;},getFileSize=async _0x2c9c2c=>{if(isFile(_0x2c9c2c)||isBlob(_0x2c9c2c))return _0x2c9c2c['size'];if(isReactNativeAsset(_0x2c9c2c))return(await getBlobFromReactNativeAsset(_0x2c9c2c))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart=(_0x488cfe,_0x547b40=defaultSettings['multipartMinFileSize'])=>_0x488cfe>=_0x547b40,isUuid=_0x127b77=>{const _0x33870b=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!isFileData(_0x127b77)&&_0x33870b['test'](_0x127b77);},isUrl=_0x1e2efe=>{const _0x61091f=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData(_0x1e2efe)&&_0x61091f['test'](_0x1e2efe);},runWithConcurrency=(_0x50046e,_0x2f0db8)=>new Promise((_0x2dc0bc,_0x8bbb)=>{const _0x36a79d=[];let _0xc98174=!0x1,_0x4398c7=_0x2f0db8['length'];const _0x136654=[..._0x2f0db8],_0x33376b=()=>{const _0x189239=_0x2f0db8['length']-_0x136654['length'],_0x1ebdff=_0x136654['shift']();_0x1ebdff&&_0x1ebdff()['then'](_0x35d312=>{_0xc98174||(_0x36a79d[_0x189239]=_0x35d312,_0x4398c7-=0x1,_0x4398c7?_0x33376b():_0x2dc0bc(_0x36a79d));})['catch'](_0x33d48e=>{_0xc98174=!0x0,_0x8bbb(_0x33d48e);});};for(let _0x4b7b2f=0x0;_0x4b7b2f<_0x50046e;_0x4b7b2f++)_0x33376b();}),sliceChunk=(_0x207b20,_0x4e33cf,_0x3fb8b1,_0x2b19a7)=>{const _0x159d69=_0x2b19a7*_0x4e33cf,_0x296ee0=Math['min'](_0x159d69+_0x2b19a7,_0x3fb8b1);return _0x207b20['slice'](_0x159d69,_0x296ee0);},prepareChunks=async(_0xf7ecd7,_0x5114e6,_0x118585)=>_0x23734e=>sliceChunk(_0xf7ecd7,_0x23734e,_0x5114e6,_0x118585),uploadPart=(_0x2e88a3,_0x4953a0,{publicKey:_0xdb2b6f,contentType:_0x4076ab,onProgress:_0x416892,signal:_0x2340d9,integration:_0x59eede,retryThrottledRequestMaxTimes:_0x367cb2,retryNetworkErrorMaxTimes:_0x587d06})=>multipartUpload(_0x2e88a3,_0x4953a0,{'contentType':_0x4076ab,'onProgress':_0x416892,'signal':_0x2340d9,'retryThrottledRequestMaxTimes':_0x367cb2,'retryNetworkErrorMaxTimes':_0x587d06}),uploadMultipart=async(_0x1806c6,{publicKey:_0x589bd4,fileName:_0x64fb6f,fileSize:_0x29aea8,baseURL:_0x3bc551,secureSignature:_0x194f3c,secureExpire:_0x13fa61,store:_0x1eaf13,signal:_0x54b571,onProgress:_0x1670f2,source:_0x32d351,integration:_0x2d1d8d,userAgent:_0x4a1fa9,retryThrottledRequestMaxTimes:_0xd020b,retryNetworkErrorMaxTimes:_0x210691,contentType:_0x4049b2,multipartChunkSize:_0x4eb6b2=defaultSettings['multipartChunkSize'],maxConcurrentRequests:_0x1dd353=defaultSettings['maxConcurrentRequests'],baseCDN:_0x5b419f,metadata:_0x26d2a9})=>{const _0x635f38=_0x29aea8??await getFileSize(_0x1806c6);let _0x33da18;const _0x27b201=(_0x529a8f,_0x4b34c9)=>{if(!_0x1670f2)return;_0x33da18||(_0x33da18=Array(_0x529a8f)['fill'](0x0));const _0x249f2e=_0x2796b0=>_0x2796b0['reduce']((_0x9b4863,_0x339037)=>_0x9b4863+_0x339037,0x0);return _0x304354=>{_0x304354['isComputable']&&(_0x33da18[_0x4b34c9]=_0x304354['value'],_0x1670f2({'isComputable':!0x0,'value':_0x249f2e(_0x33da18)/_0x529a8f}));};};return _0x4049b2||=getContentType(_0x1806c6),multipartStart(_0x635f38,{'publicKey':_0x589bd4,'contentType':_0x4049b2,'fileName':_0x64fb6f||getFileName(_0x1806c6),'baseURL':_0x3bc551,'secureSignature':_0x194f3c,'secureExpire':_0x13fa61,'store':_0x1eaf13,'signal':_0x54b571,'source':_0x32d351,'integration':_0x2d1d8d,'userAgent':_0x4a1fa9,'retryThrottledRequestMaxTimes':_0xd020b,'retryNetworkErrorMaxTimes':_0x210691,'metadata':_0x26d2a9,'multipartChunkSize':_0x4eb6b2})['then'](async({uuid:_0x1a6878,parts:_0x3f2722})=>{const _0xb4c8c9=await prepareChunks(_0x1806c6,_0x635f38,_0x4eb6b2);return Promise['all']([_0x1a6878,runWithConcurrency(_0x1dd353,_0x3f2722['map']((_0x3786c3,_0x37e6c3)=>()=>uploadPart(_0xb4c8c9(_0x37e6c3),_0x3786c3,{'publicKey':_0x589bd4,'contentType':_0x4049b2,'onProgress':_0x27b201(_0x3f2722['length'],_0x37e6c3),'signal':_0x54b571,'integration':_0x2d1d8d,'retryThrottledRequestMaxTimes':_0xd020b,'retryNetworkErrorMaxTimes':_0x210691})))]);})['then'](([_0x38c829])=>multipartComplete(_0x38c829,{'publicKey':_0x589bd4,'baseURL':_0x3bc551,'source':_0x32d351,'integration':_0x2d1d8d,'userAgent':_0x4a1fa9,'retryThrottledRequestMaxTimes':_0xd020b,'retryNetworkErrorMaxTimes':_0x210691}))['then'](_0x1d13a1=>_0x1d13a1['isReady']?_0x1d13a1:isReadyPoll(_0x1d13a1['uuid'],{'publicKey':_0x589bd4,'baseURL':_0x3bc551,'source':_0x32d351,'integration':_0x2d1d8d,'userAgent':_0x4a1fa9,'retryThrottledRequestMaxTimes':_0xd020b,'retryNetworkErrorMaxTimes':_0x210691,'onProgress':_0x1670f2,'signal':_0x54b571}))['then'](_0xb3d6b=>new UploadcareFile(_0xb3d6b,{'baseCDN':_0x5b419f}));};async function uploadFile(_0x18f5a8,{publicKey:_0x5194da,fileName:_0x101ebc,baseURL:_0x3c513f=defaultSettings['baseURL'],secureSignature:_0x448fbd,secureExpire:_0x412d89,store:_0x32e121,signal:_0x37c635,onProgress:_0x3b3ff4,source:_0x16eb40,integration:_0x3972a6,userAgent:_0x1799c1,retryThrottledRequestMaxTimes:_0x449c11,retryNetworkErrorMaxTimes:_0x41eeb2,contentType:_0x28eb45,multipartMinFileSize:_0x3e3d50,multipartChunkSize:_0x40fc05,maxConcurrentRequests:_0x30b355,baseCDN:_0x42aac9=defaultSettings['baseCDN'],checkForUrlDuplicates:_0x385992,saveUrlForRecurrentUploads:_0x4b7f3d,pusherKey:_0x12485a,metadata:_0x530eab}){if(isFileData(_0x18f5a8)){const _0x20834c=await getFileSize(_0x18f5a8);return isMultipart(_0x20834c,_0x3e3d50)?uploadMultipart(_0x18f5a8,{'publicKey':_0x5194da,'contentType':_0x28eb45,'multipartChunkSize':_0x40fc05,'fileSize':_0x20834c,'fileName':_0x101ebc,'baseURL':_0x3c513f,'secureSignature':_0x448fbd,'secureExpire':_0x412d89,'store':_0x32e121,'signal':_0x37c635,'onProgress':_0x3b3ff4,'source':_0x16eb40,'integration':_0x3972a6,'userAgent':_0x1799c1,'maxConcurrentRequests':_0x30b355,'retryThrottledRequestMaxTimes':_0x449c11,'retryNetworkErrorMaxTimes':_0x41eeb2,'baseCDN':_0x42aac9,'metadata':_0x530eab}):uploadDirect(_0x18f5a8,{'publicKey':_0x5194da,'fileName':_0x101ebc,'contentType':_0x28eb45,'baseURL':_0x3c513f,'secureSignature':_0x448fbd,'secureExpire':_0x412d89,'store':_0x32e121,'signal':_0x37c635,'onProgress':_0x3b3ff4,'source':_0x16eb40,'integration':_0x3972a6,'userAgent':_0x1799c1,'retryThrottledRequestMaxTimes':_0x449c11,'retryNetworkErrorMaxTimes':_0x41eeb2,'baseCDN':_0x42aac9,'metadata':_0x530eab});}if(isUrl(_0x18f5a8))return uploadFromUrl(_0x18f5a8,{'publicKey':_0x5194da,'fileName':_0x101ebc,'baseURL':_0x3c513f,'baseCDN':_0x42aac9,'checkForUrlDuplicates':_0x385992,'saveUrlForRecurrentUploads':_0x4b7f3d,'secureSignature':_0x448fbd,'secureExpire':_0x412d89,'store':_0x32e121,'signal':_0x37c635,'onProgress':_0x3b3ff4,'source':_0x16eb40,'integration':_0x3972a6,'userAgent':_0x1799c1,'retryThrottledRequestMaxTimes':_0x449c11,'pusherKey':_0x12485a,'metadata':_0x530eab});if(isUuid(_0x18f5a8))return uploadFromUploaded(_0x18f5a8,{'publicKey':_0x5194da,'fileName':_0x101ebc,'baseURL':_0x3c513f,'signal':_0x37c635,'onProgress':_0x3b3ff4,'source':_0x16eb40,'integration':_0x3972a6,'userAgent':_0x1799c1,'retryThrottledRequestMaxTimes':_0x449c11,'retryNetworkErrorMaxTimes':_0x41eeb2,'baseCDN':_0x42aac9});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x18f5a8+'\x22\x20is\x20not\x20supported');}class UploadcareGroup{['uuid'];['filesCount'];['totalSize'];['isStored'];['isImage'];['cdnUrl'];['files'];['createdAt'];['storedAt']=null;constructor(_0xb027fb,{baseCDN:_0x2874e7=defaultSettings['baseCDN']}={}){this['uuid']=_0xb027fb['id'],this['filesCount']=_0xb027fb['filesCount'];const _0x4863a7=_0xb027fb['files']['filter'](Boolean);this['totalSize']=Object['values'](_0x4863a7)['reduce']((_0x3ec670,_0x5c014f)=>_0x3ec670+_0x5c014f['size'],0x0),this['isStored']=!!_0xb027fb['datetimeStored'],this['isImage']=!!Object['values'](_0x4863a7)['filter'](_0xeed075=>_0xeed075['isImage'])['length'],this['cdnUrl']=_0xb027fb['cdnUrl'],this['files']=_0x4863a7['map'](_0x348139=>new UploadcareFile(_0x348139,{'baseCDN':_0x2874e7})),this['createdAt']=_0xb027fb['datetimeCreated'],this['storedAt']=_0xb027fb['datetimeStored'];}}const isFileDataArray=_0x44416e=>{for(const _0x3b87e9 of _0x44416e)if(!isFileData(_0x3b87e9))return!0x1;return!0x0;},isUuidArray=_0x3d2ed5=>{for(const _0x272060 of _0x3d2ed5)if(!isUuid(_0x272060))return!0x1;return!0x0;},isUrlArray=_0x449115=>{for(const _0xff0c87 of _0x449115)if(!isUrl(_0xff0c87))return!0x1;return!0x0;};function uploadFileGroup(_0x57f4dc,{publicKey:_0x5434fd,fileName:_0x2262e7,baseURL:_0x315835=defaultSettings['baseURL'],secureSignature:_0x5bc002,secureExpire:_0x5e150d,store:_0xa8710d,signal:_0x43930b,onProgress:_0x53439c,source:_0x24e9a6,integration:_0x279286,userAgent:_0x2a1182,retryThrottledRequestMaxTimes:_0x35c127,retryNetworkErrorMaxTimes:_0x26eb34,contentType:_0x425ad5,multipartChunkSize:_0x35dc83=defaultSettings['multipartChunkSize'],baseCDN:_0x3c82ce=defaultSettings['baseCDN'],checkForUrlDuplicates:_0x351883,saveUrlForRecurrentUploads:_0x22887d,jsonpCallback:_0x4ff11f}){if(!isFileDataArray(_0x57f4dc)&&!isUrlArray(_0x57f4dc)&&!isUuidArray(_0x57f4dc))throw new TypeError('Group\x20uploading\x20from\x20\x22'+_0x57f4dc+'\x22\x20is\x20not\x20supported');let _0x24e2f5,_0x5f0c44=!0x0;const _0x164f3e=_0x57f4dc['length'],_0x3cfb05=(_0x179f8d,_0x71423d)=>{if(!_0x53439c)return;_0x24e2f5||(_0x24e2f5=Array(_0x179f8d)['fill'](0x0));const _0xf36123=_0x16529a=>_0x16529a['reduce']((_0x15f7c6,_0x493645)=>_0x15f7c6+_0x493645)/_0x179f8d;return _0x53a1f6=>{if(!_0x53a1f6['isComputable']||!_0x5f0c44)return _0x5f0c44=!0x1,void _0x53439c({'isComputable':!0x1});_0x24e2f5[_0x71423d]=_0x53a1f6['value'],_0x53439c({'isComputable':!0x0,'value':_0xf36123(_0x24e2f5)});};};return Promise['all'](_0x57f4dc['map']((_0x55f4c0,_0x38e018)=>isFileData(_0x55f4c0)||isUrl(_0x55f4c0)?uploadFile(_0x55f4c0,{'publicKey':_0x5434fd,'fileName':_0x2262e7,'baseURL':_0x315835,'secureSignature':_0x5bc002,'secureExpire':_0x5e150d,'store':_0xa8710d,'signal':_0x43930b,'onProgress':_0x3cfb05(_0x164f3e,_0x38e018),'source':_0x24e9a6,'integration':_0x279286,'userAgent':_0x2a1182,'retryThrottledRequestMaxTimes':_0x35c127,'retryNetworkErrorMaxTimes':_0x26eb34,'contentType':_0x425ad5,'multipartChunkSize':_0x35dc83,'baseCDN':_0x3c82ce,'checkForUrlDuplicates':_0x351883,'saveUrlForRecurrentUploads':_0x22887d})['then'](_0x8bacc3=>_0x8bacc3['uuid']):_0x55f4c0))['then'](_0x4352bb=>group(_0x4352bb,{'publicKey':_0x5434fd,'baseURL':_0x315835,'jsonpCallback':_0x4ff11f,'secureSignature':_0x5bc002,'secureExpire':_0x5e150d,'signal':_0x43930b,'source':_0x24e9a6,'integration':_0x279286,'userAgent':_0x2a1182,'retryThrottledRequestMaxTimes':_0x35c127,'retryNetworkErrorMaxTimes':_0x26eb34})['then'](_0x80c27f=>new UploadcareGroup(_0x80c27f,{'baseCDN':_0x3c82ce}))['then'](_0xf92859=>(_0x53439c&&_0x53439c({'isComputable':!0x0,'value':0x1}),_0xf92859)));}class Queue{['_concurrency']=0x1;['_pending']=[];['_running']=0x0;['_resolvers']=new Map();['_rejectors']=new Map();constructor(_0x498fbb){this['_concurrency']=_0x498fbb;}['run'](){const _0x48405e=this['_concurrency']-this['_running'];for(let _0x109683=0x0;_0x109683<_0x48405e;_0x109683++){const _0x1050ed=this['_pending']['shift']();if(!_0x1050ed)return;const _0x3310c2=this['_resolvers']['get'](_0x1050ed),_0x2582ba=this['_rejectors']['get'](_0x1050ed);if(!_0x3310c2||!_0x2582ba)throw new Error('Unexpected\x20behavior:\x20resolver\x20or\x20rejector\x20is\x20undefined');this['_running']+=0x1,_0x1050ed()['finally'](()=>{this['_resolvers']['delete'](_0x1050ed),this['_rejectors']['delete'](_0x1050ed),this['_running']-=0x1,this['run']();})['then'](_0x3299f4=>_0x3310c2(_0x3299f4))['catch'](_0x3e856b=>_0x2582ba(_0x3e856b));}}['add'](_0x2894e2,{autoRun:_0x53bca9}={'autoRun':!0x0}){return new Promise((_0x26e621,_0x42b336)=>{this['_resolvers']['set'](_0x2894e2,_0x26e621),this['_rejectors']['set'](_0x2894e2,_0x42b336),this['_pending']['push'](_0x2894e2),_0x53bca9&&this['run']();});}get['pending'](){return this['_pending']['length'];}get['running'](){return this['_running'];}set['concurrency'](_0x7c1977){this['_concurrency']=_0x7c1977,this['run']();}get['concurrency'](){return this['_concurrency'];}}const ROLES={'button':['toolbar'],'checkbox':['toolbar'],'menuitem':['menu','menubar'],'option':['listbox'],'tab':['tablist']};function focus(_0x4aeb58,_0x106401){_0x106401['tabIndex']=0x0,_0x106401['focus'](),_0x4aeb58['tabIndex']=-0x1;}function findGroupNodeByEventTarget(_0x2d9725){let _0x5bcde4=_0x2d9725['role']||_0x2d9725['type']||_0x2d9725['tagName'];if(!_0x5bcde4)return null;let _0x307aae=ROLES[_0x5bcde4['toLowerCase']()];if(!_0x307aae)return null;for(let _0x3dfb7a of _0x307aae){let _0xd7379b=_0x2d9725['closest']('[role='+_0x3dfb7a+']');if(_0xd7379b)return _0xd7379b;}}function getItems(_0x3f9429,_0x42ad2d){return'toolbar'===_0x42ad2d['role']?getToolbarItems(_0x42ad2d):_0x42ad2d['querySelectorAll']('[role='+_0x3f9429['role']+']');}function getToolbarItems(_0x206236){return[..._0x206236['querySelectorAll']('*')]['filter'](_0x2474c8=>'button'===_0x2474c8['role']||'button'===_0x2474c8['type']||'checkbox'===_0x2474c8['role']||'checkbox'===_0x2474c8['type']);}function isHorizontalOrientation(_0x27a685){let _0x468ea1=_0x27a685['getAttribute']('aria-orientation');if('vertical'===_0x468ea1)return!0x1;if('horizontal'===_0x468ea1)return!0x0;let _0x1e3223=_0x27a685['role'];return'menubar'===_0x1e3223||'tablist'===_0x1e3223||'toolbar'===_0x1e3223;}function focusGroupKeyUX(_0x518407){return _0x577262=>{let _0x1b479c=!0x1,_0x4a3744=0x0,_0x3f4b46='';function _0x23b65a(_0x54d623){let _0x360171=findGroupNodeByEventTarget(_0x54d623['target']);if(!_0x360171)return void _0x3b874b();let _0x3aa98f=getItems(_0x54d623['target'],_0x360171),_0x44b2ca=Array['from'](_0x3aa98f)['indexOf'](_0x54d623['target']),_0x530648='ArrowDown',_0x424c2f='ArrowUp';if(isHorizontalOrientation(_0x360171)&&('rtl'===_0x577262['document']['dir']?(_0x530648='ArrowLeft',_0x424c2f='ArrowRight'):(_0x530648='ArrowRight',_0x424c2f='ArrowLeft')),_0x54d623['key']===_0x530648)_0x54d623['preventDefault'](),focus(_0x54d623['target'],_0x3aa98f[_0x44b2ca+0x1]||_0x3aa98f[0x0]);else{if(_0x54d623['key']===_0x424c2f)_0x54d623['preventDefault'](),focus(_0x54d623['target'],_0x3aa98f[_0x44b2ca-0x1]||_0x3aa98f[_0x3aa98f['length']-0x1]);else{if('Home'===_0x54d623['key'])_0x54d623['preventDefault'](),focus(_0x54d623['target'],_0x3aa98f[0x0]);else{if('End'===_0x54d623['key'])_0x54d623['preventDefault'](),focus(_0x54d623['target'],_0x3aa98f[_0x3aa98f['length']-0x1]);else{if(0x1===_0x54d623['key']['length']&&'tablist'!==_0x360171['role']){let _0x26a74e=Date['now']();_0x26a74e-_0x4a3744<=0x12c?_0x3f4b46+=_0x54d623['key']['toLowerCase']():_0x3f4b46=_0x54d623['key']['toLowerCase'](),_0x4a3744=_0x26a74e;let _0x4d73bf=Array['from'](_0x3aa98f)['find'](_0x475ab2=>_0x475ab2['textContent']?.['trim']()?.['toLowerCase']()?.['startsWith'](_0x3f4b46));_0x4d73bf&&(_0x54d623['preventDefault'](),focus(_0x54d623['target'],_0x4d73bf));}}}}}}function _0x3b874b(){_0x1b479c=!0x1,_0x577262['removeEventListener']('keydown',_0x23b65a);}function _0x2c9839(_0xb0b9fe){let _0x5de846=findGroupNodeByEventTarget(_0xb0b9fe['target']);if(_0x5de846){_0x1b479c||(_0x1b479c=!0x0,_0x577262['addEventListener']('keydown',_0x23b65a));let _0x5a66eb=getItems(_0xb0b9fe['target'],_0x5de846);for(let _0x10065a of _0x5a66eb)_0x10065a!==_0xb0b9fe['target']&&_0x10065a['setAttribute']('tabindex',-0x1);}else _0x1b479c&&_0x3b874b();}function _0x16abc5(_0x4bf91d){_0x4bf91d['relatedTarget']&&_0x4bf91d['relatedTarget']!==_0x577262['document']||_0x3b874b();}function _0x24542a(_0x5aa482){let _0x50c0c8=findGroupNodeByEventTarget(_0x5aa482['target']);if(_0x50c0c8){let _0x35fe3b=getItems(_0x5aa482['target'],_0x50c0c8);for(let _0x49e8aa of _0x35fe3b)_0x49e8aa!==_0x5aa482['target']&&_0x49e8aa['setAttribute']('tabindex',-0x1);_0x5aa482['target']['setAttribute']('tabindex',0x0);}}return _0x577262['addEventListener']('click',_0x24542a),_0x577262['addEventListener']('focusin',_0x2c9839),_0x577262['addEventListener']('focusout',_0x16abc5),()=>{_0x3b874b(),_0x577262['removeEventListener']('click',_0x24542a),_0x577262['removeEventListener']('focusin',_0x2c9839),_0x577262['removeEventListener']('focusout',_0x16abc5);};};}function hiddenKeyUX(){return _0x2bb58b=>{let _0xdba172,_0x3be832;function _0x49409b(_0x441aa7){if('true'===_0x441aa7['target']['getAttribute']('aria-hidden')){_0xdba172=_0x441aa7['target'],_0xdba172['setAttribute']('aria-hidden','false'),_0x3be832=_0xdba172['hidden'],_0x3be832&&(_0xdba172['hidden']=!0x1);let _0x4cbfc4=_0x441aa7['target']['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x4cbfc4&&(_0x4cbfc4['tabIndex']=0x0);}}function _0x572766(_0x1a71cb){!_0xdba172||!_0xdba172['contains'](_0x1a71cb['target'])||_0x1a71cb['relatedTarget']&&_0xdba172['contains'](_0x1a71cb['relatedTarget'])||(_0x1a71cb['target']['tabIndex']=-0x1,_0xdba172['setAttribute']('aria-hidden','true'),_0x3be832&&(_0xdba172['hidden']=!0x0),_0xdba172=null);}return _0x2bb58b['addEventListener']('keyuxJump',_0x49409b),_0x2bb58b['addEventListener']('focusout',_0x572766),()=>{_0x2bb58b['removeEventListener']('keyuxJump',_0x49409b),_0x2bb58b['removeEventListener']('focusout',_0x572766);};};}function jumpKeyUX(){return _0x29b994=>{let _0x59c11b=[];function _0x7d9ab0(){let _0x34bc74=_0x59c11b['pop']();if(!_0x34bc74)return void _0x29b994['document']['activeElement']['blur']();let _0x5b0619=_0x34bc74['deref']();_0x5b0619&&_0x5b0619['isConnected']?_0x5b0619['focus']():_0x7d9ab0();}let _0x34d538,_0x243051=0x0;function _0x28bf29(_0x52884f){clearInterval(_0x34d538);let _0x5a344f=_0x52884f['getAttribute']('aria-controls');_0x34d538=setInterval(()=>{if(_0x243051++>0x32)return void clearInterval(_0x34d538);let _0x2df1af=_0x29b994['document']['getElementById'](_0x5a344f);if(_0x2df1af){let _0x508257=_0x2df1af['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x508257&&(clearInterval(_0x34d538),_0x2df1af['dispatchEvent'](new _0x29b994['CustomEvent']('keyuxJump',{'bubbles':!0x0})),function(_0x450aa0){let _0x111d53=_0x29b994['document']['activeElement'];_0x111d53&&_0x111d53!==_0x29b994['document']['body']&&_0x59c11b['push'](new WeakRef(_0x111d53)),_0x450aa0['focus']({'focusVisible':!0x0});}(_0x508257));}},0x32);}function _0x3669fc(_0x42b0a9){_0x42b0a9['target']['getAttribute']('aria-controls')&&'Enter'===_0x42b0a9['key']&&_0x28bf29(_0x42b0a9['target']),'Escape'===_0x42b0a9['key']&&_0x7d9ab0();}return _0x29b994['addEventListener']('keydown',_0x3669fc),()=>{_0x29b994['removeEventListener']('keydown',_0x3669fc);};};}function pressKeyUX(_0x4aa494){let _0xeb17df,_0x4fcc9e,_0x590258=_0x4aa494['split']('\x20');function _0x44d5a5(_0x24b78f){'Enter'!==_0x24b78f['key']||'BUTTON'!==_0x24b78f['target']['tagName']&&'A'!==_0x24b78f['target']['tagName']||(_0x4ae9e0(),_0x24b78f['target']['classList']['add'](..._0x590258),_0xeb17df=_0x24b78f['target'],_0x4fcc9e=_0x24b78f['target']);}function _0x4ae9e0(){_0xeb17df&&_0xeb17df['classList']['remove'](..._0x590258),_0x4fcc9e=null;}function _0x1058f6(_0x510889){0x0===_0x510889['clientX']&&0x0===_0x510889['clientY']&&_0x4fcc9e!==_0x510889['target']&&(_0x4ae9e0(),_0x510889['target']['classList']['add'](..._0x590258),_0xeb17df=_0x510889['target']);}return _0x59a20e=>(_0x59a20e['addEventListener']('click',_0x1058f6),_0x59a20e['addEventListener']('keydown',_0x44d5a5),_0x59a20e['addEventListener']('keyup',_0x4ae9e0),()=>{_0x59a20e['removeEventListener']('click',_0x1058f6),_0x59a20e['removeEventListener']('keydown',_0x44d5a5),_0x59a20e['removeEventListener']('keyup',_0x4ae9e0);});}function startKeyUX(_0x5804bb,_0x21f731){let _0x1ba851=_0x21f731['map'](_0x2e4645=>_0x2e4645(_0x5804bb));return()=>{_0x1ba851['forEach'](_0x249a54=>_0x249a54());};}function i$1(_0x118c78){return _0x118c78['replace'](/[A-Z]/g,_0x796a29=>'_'+_0x796a29['toLowerCase']())['replace'](/__/g,'_');}function c$2(_0x3498b7){return Array['isArray'](_0x3498b7)?_0x3498b7['map'](_0x5afee9=>'object'==typeof _0x5afee9&&null!==_0x5afee9?c$2(_0x5afee9):_0x5afee9):'object'!=typeof _0x3498b7||null===_0x3498b7?_0x3498b7:Object['fromEntries'](Object['entries'](_0x3498b7)['map'](([_0x5788da,_0x16ee2d])=>{const t=i$1(_0x5788da);return'object'==typeof _0x16ee2d&&null!==_0x16ee2d?[t,c$2(_0x16ee2d)]:[t,_0x16ee2d];}));}function u(_0x1ae0a2){return{'ok':!0x0,'value':_0x1ae0a2};}function a$1(_0x405d65){return{'ok':!0x1,'error':_0x405d65};}const l='https://tlm.uploadcare.com/api/';class y{constructor(_0x5bb6c7=l){this['baseUrl']=_0x5bb6c7;}async['base'](_0x477656,_0xee7e80={}){const t=''+this['baseUrl']+_0x477656;try{const _0x36983a=await fetch(t,_0xee7e80);if(!_0x36983a['ok'])return a$1(new Error('Got\x20non-200\x20response\x20from\x20\x22'+t+'\x22.\x20Status:\x20'+_0x36983a['status']['toString']()));try{return u(await _0x36983a['json']());}catch(_0x3f914a){return a$1(new Error('Error\x20parsing\x20JSON\x20from\x20\x22'+t+'\x22.\x20Error:\x20'+_0x3f914a));}}catch(_0x3e4092){return a$1(new Error('Error\x20fetching\x20data\x20from\x20\x22'+t+'\x22.\x20Error:\x20'+_0x3e4092));}}async['post'](_0x279cc3,_0xe03c93,t={}){return await this['base'](_0x279cc3,{...t,'method':'POST','body':JSON['stringify'](c$2(_0xe03c93)),'headers':{'Content-Type':'application/json',...t['headers']||{}}});}async['get'](_0x46bc9e,_0x4ba7c4={}){return await this['base'](_0x46bc9e,{'method':'GET',..._0x4ba7c4});}}const f$1=async(_0x22cb2d,_0x297cba)=>({'success':!0x0,'data':_0x297cba});class p extends y{constructor(){super();}async['sendEvent'](_0x55923f,_0x3f74ea){const t=await f$1(void 0x0,_0x55923f);if(!t['success'])throw console['error']('TelemetryAPIService:\x20events:\x20body\x20is\x20invalid',t['error']),new Error('TelemetryAPIService:\x20events:\x20body\x20is\x20invalid');return this['post']('v1/events',_0x55923f,_0x3f74ea);}}const o=(_0x4e1655,_0x526ea2)=>{const _0xce7841=new URL(_0x526ea2);return _0xce7841['hostname']=_0x4e1655+'.'+_0xce7841['hostname'],_0xce7841['toString']()['replace'](/\/$/,'');},s='0123456789abcdefghijklmnopqrstuvwxyz',a=_0x330776=>{if(_0x330776<=0x0n)return'0';let _0x36db88='';for(;_0x330776>0x0n;){_0x36db88=s[Number(_0x330776%0x24n)]+_0x36db88,_0x330776/=0x24n;}return _0x36db88;},c$1=(_0x5189fe,_0xaacf00)=>{try{const _0x10e611=new URL(_0x5189fe),t=new URL(_0xaacf00);return _0x10e611['hostname']['endsWith'](t['hostname']);}catch{return!0x1;}},c=async _0x3776a3=>{const _0x4616fd=new TextEncoder()['encode'](_0x3776a3),t=await window['crypto']['subtle']['digest']('SHA-256',_0x4616fd),_0x3b02ac=Array['from'](new Uint8Array(t))['map'](_0x5bacf6=>_0x5bacf6['toString'](0x10)['padStart'](0x2,'0'))['join']('');return BigInt('0x'+_0x3b02ac);},i=0xa,d=async _0x2d55b1=>{const _0x33b4c2=await c(_0x2d55b1);return a(_0x33b4c2)['slice'](0x0,i);},f=async(_0x35aa90,_0x5b3b13)=>{const t=await d(_0x35aa90);return o(t,_0x5b3b13);},readJpegChunks=()=>{const _0x5cfcb6=[];return{'stack':_0x5cfcb6,'promiseReadJpegChunks':_0x53623a=>new Promise((_0x1e7601,_0x40888a)=>{let _0x219e16=0x2;const _0x421b83=(_0x23f8c7,_0x3068ea)=>{const _0x18792e=new FileReader();_0x18792e['addEventListener']('load',()=>{_0x3068ea(new DataView(_0x18792e['result']));}),_0x18792e['addEventListener']('error',_0x3476bc=>{_0x40888a('Reader\x20error:\x20'+_0x3476bc);}),_0x18792e['readAsArrayBuffer'](_0x23f8c7);},_0x4e5404=()=>_0x421b83(_0x53623a['slice'](_0x219e16,_0x219e16+0x80),_0x2cb9e4=>{let _0x105d47,_0x19094d,_0xc5a8a6;for(_0x105d47=_0x19094d=0x0,_0xc5a8a6=_0x2cb9e4['byteLength'];_0xc5a8a6>=0x0?_0x19094d<_0xc5a8a6:_0x19094d>_0xc5a8a6;_0x105d47=_0xc5a8a6>=0x0?++_0x19094d:--_0x19094d)if(0xff===_0x2cb9e4['getUint8'](_0x105d47)){_0x219e16+=_0x105d47;break;}_0x3f2c39();}),_0x3f2c39=()=>{const _0x48805d=_0x219e16;return _0x421b83(_0x53623a['slice'](_0x219e16,_0x219e16+=0x4),_0x3ac98c=>{if(0x4!==_0x3ac98c['byteLength']||0xff!==_0x3ac98c['getUint8'](0x0))return void _0x40888a('Corrupted');const _0x56a4c8=_0x3ac98c['getUint8'](0x1);if(0xda===_0x56a4c8)return void _0x1e7601(!0x0);const _0x25459f=_0x3ac98c['getUint16'](0x2)-0x2;return _0x421b83(_0x53623a['slice'](_0x219e16,_0x219e16+=_0x25459f),_0x26423b=>{_0x26423b['byteLength']===_0x25459f?(_0x5cfcb6['push']({'startPos':_0x48805d,'length':_0x25459f,'marker':_0x56a4c8,'view':_0x26423b}),_0x4e5404()):_0x40888a('Corrupted');});});};FileReader&&DataView||_0x40888a('Not\x20Support'),_0x421b83(_0x53623a['slice'](0x0,0x2),_0x48207f=>{0xffd8!==_0x48207f['getUint16'](0x0)&&_0x40888a('Not\x20jpeg'),_0x4e5404();});})};},getIccProfile=async _0x364ae1=>{const _0x1cd749=[],{promiseReadJpegChunks:_0x4df35b,stack:_0x149f32}=readJpegChunks();return await _0x4df35b(_0x364ae1),_0x149f32['forEach'](({marker:_0x4e843d,view:_0x5d124c})=>{0xe2===_0x4e843d&&0x4943435f===_0x5d124c['getUint32'](0x0)&&0x50524f46===_0x5d124c['getUint32'](0x4)&&0x494c4500===_0x5d124c['getUint32'](0x8)&&_0x1cd749['push'](_0x5d124c);}),_0x1cd749;},replaceJpegChunk=async(_0x239485,_0x1e0859,_0x244290)=>{{const _0x2e024c=[],_0x240df5=[],{promiseReadJpegChunks:_0xdac47c,stack:_0x2fb74b}=readJpegChunks();await _0xdac47c(_0x239485),_0x2fb74b['forEach'](_0x39a584=>{if(_0x39a584['marker']===_0x1e0859)return _0x2e024c['push'](_0x39a584['startPos']),_0x240df5['push'](_0x39a584['length']);});const _0x2c81a1=[_0x239485['slice'](0x0,0x2)];for(const _0x538260 of _0x244290){const _0x572ded=new DataView(new ArrayBuffer(0x4));_0x572ded['setUint16'](0x0,0xff00+_0x1e0859),_0x572ded['setUint16'](0x2,_0x538260['byteLength']+0x2),_0x2c81a1['push'](_0x572ded['buffer']),_0x2c81a1['push'](_0x538260);}let _0x342889=0x2;for(let _0x250650=0x0;_0x250650<_0x2e024c['length'];_0x250650++)_0x2e024c[_0x250650]>_0x342889&&_0x2c81a1['push'](_0x239485['slice'](_0x342889,_0x2e024c[_0x250650])),_0x342889=_0x2e024c[_0x250650]+_0x240df5[_0x250650]+0x4;return _0x2c81a1['push'](_0x239485['slice'](_0x342889,_0x239485['size'])),new Blob(_0x2c81a1,{'type':_0x239485['type']});}},MARKER=0xe2,replaceIccProfile=(_0x56f20c,_0x59f23b)=>replaceJpegChunk(_0x56f20c,MARKER,_0x59f23b['map'](_0xc9e7d5=>_0xc9e7d5['buffer'])),stripIccProfile=async _0x523d09=>{try{return await replaceIccProfile(_0x523d09,[]);}catch(_0x1d7032){throw new Error('Failed\x20to\x20strip\x20ICC\x20profile:\x20'+_0x1d7032);}},canvasToBlob=(_0x39b76e,_0x280020,_0x413e1d)=>new Promise((_0x4eb775,_0x26e206)=>{_0x39b76e['toBlob'](_0x582bf0=>{_0x582bf0?_0x4eb775(_0x582bf0):_0x26e206('Failed\x20to\x20convert\x20canvas\x20to\x20blob');},_0x280020,_0x413e1d),_0x39b76e['width']=_0x39b76e['height']=0x1;}),createCanvas=()=>{const _0x5bf702=document['createElement']('canvas'),_0x200cfb=_0x5bf702['getContext']('2d');return{'canvas':_0x5bf702,'ctx':_0x200cfb};},hasTransparency=_0x13be05=>{const {ctx:_0x40d0f0,canvas:_0x3213c1}=createCanvas();_0x3213c1['width']=_0x3213c1['height']=0x32,_0x40d0f0['drawImage'](_0x13be05,0x0,0x0,0x32,0x32);const _0x3d3a93=_0x40d0f0['getImageData'](0x0,0x0,0x32,0x32)['data'];_0x3213c1['width']=_0x3213c1['height']=0x1;for(let _0x5b9652=0x3;_0x5b9652<_0x3d3a93['length'];_0x5b9652+=0x4)if(_0x3d3a93[_0x5b9652]<0xfe)return!0x0;return!0x1;},getExif=async _0x12184c=>{let _0x3b9e21=null;const {promiseReadJpegChunks:_0x5b6ee9,stack:_0x508d54}=readJpegChunks();return await _0x5b6ee9(_0x12184c),_0x508d54['forEach'](({marker:_0x585eac,view:_0x59ffd4})=>{!_0x3b9e21&&0xe1===_0x585eac&&_0x59ffd4['byteLength']>=0xe&&0x45786966===_0x59ffd4['getUint32'](0x0)&&0x0===_0x59ffd4['getUint16'](0x4)&&(_0x3b9e21=_0x59ffd4);}),_0x3b9e21;},base64ImageSrc='data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=';let isApplied;const isBrowserApplyExifOrientation=()=>new Promise(_0x1f4d0d=>{if(void 0x0!==isApplied)_0x1f4d0d(isApplied);else{const _0x722a51=new Image();_0x722a51['addEventListener']('load',()=>{isApplied=_0x722a51['naturalWidth']<_0x722a51['naturalHeight'],_0x722a51['src']='//:0',_0x1f4d0d(isApplied);}),_0x722a51['src']=base64ImageSrc;}}),findExifOrientation=(_0x56516f,_0x154e29)=>{let _0x37c9f7,_0x25d492,_0x3b845a,_0x7f295a;if(!_0x56516f||_0x56516f['byteLength']<0xe||0x45786966!==_0x56516f['getUint32'](0x0)||0x0!==_0x56516f['getUint16'](0x4))return;if(0x4949===_0x56516f['getUint16'](0x6))_0x25d492=!0x0;else{if(0x4d4d!==_0x56516f['getUint16'](0x6))return;_0x25d492=!0x1;}if(0x2a!==_0x56516f['getUint16'](0x8,_0x25d492))return;_0x3b845a=0x8+_0x56516f['getUint32'](0xa,_0x25d492);for(_0x37c9f7=0x0,_0x7f295a=_0x56516f['getUint16'](_0x3b845a-0x2,_0x25d492);_0x7f295a>=0x0?_0x37c9f7<_0x7f295a:_0x37c9f7>_0x7f295a;_0x7f295a>=0x0?++_0x37c9f7:--_0x37c9f7){if(_0x56516f['byteLength']<_0x3b845a+0xa)return;0x112===_0x56516f['getUint16'](_0x3b845a,_0x25d492)&&_0x154e29(_0x3b845a+0x8,_0x25d492),_0x3b845a+=0xc;}},setExifOrientation=(_0x65437f,_0x192e80)=>{findExifOrientation(_0x65437f,(_0x1906e7,_0x40aa6e)=>_0x65437f['setUint16'](_0x1906e7,_0x192e80,_0x40aa6e));},replaceExif=async(_0x5cdeba,_0x3d2f7e,_0x3f6014)=>(_0x3f6014&&setExifOrientation(_0x3d2f7e,0x1),replaceJpegChunk(_0x5cdeba,0xe1,[_0x3d2f7e['buffer']])),processImage=(_0x41a203,_0x12627b)=>new Promise((_0x589028,_0x598013)=>{_0x12627b&&(_0x41a203['src']=_0x12627b),_0x41a203['complete']?_0x589028(_0x41a203):(_0x41a203['addEventListener']('load',()=>{_0x589028(_0x41a203);}),_0x41a203['addEventListener']('error',()=>{_0x598013(new Error('Failed\x20to\x20load\x20image.\x20Probably\x20not\x20an\x20image.'));}));}),imageLoader=_0x2ae077=>processImage(new Image(),_0x2ae077),allowLayers=[0x1,0x3],markers=[0xc0,0xc1,0xc2,0xc3,0xc5,0xc6,0xc7,0xc9,0xca,0xcb,0xcd,0xce,0xcf],sizes={'squareSide':[Math['floor'](Math['sqrt'](0x4c4b40)),0x1000,0x2000,0x2bac,0x2a54,0x2c8a,0x376c,0x4000],'dimension':[0x1000,0x2000,0x4000,0x7fff,0xffff]},shouldSkipShrink=async _0x2ac745=>{let _0x117fb1=!0x1;const {promiseReadJpegChunks:_0x44bb82,stack:_0xe984d6}=readJpegChunks();return await _0x44bb82(_0x2ac745)['then'](()=>(_0xe984d6['forEach'](({marker:_0x16015c,view:_0x270fdf})=>{if(!_0x117fb1&&markers['indexOf'](_0x16015c)>=0x0){const _0x5adb65=_0x270fdf['getUint8'](0x5);allowLayers['indexOf'](_0x5adb65)<0x0&&(_0x117fb1=!0x0);}}),_0x117fb1))['catch'](()=>_0x117fb1);},memoize$1=(_0x58de2c,_0x5ab11f)=>{const _0x19dd95={};return(..._0x346231)=>{const _0x5f5dd2=_0x5ab11f(_0x346231,_0x19dd95);return _0x5f5dd2 in _0x19dd95?_0x19dd95[_0x5f5dd2]:_0x19dd95[_0x5f5dd2]=_0x58de2c(..._0x346231);};},memoKeySerializer=(_0x69c396,_0x1a9fdc)=>{const [_0xe3827c]=_0x69c396,_0x52ae29=Object['keys'](_0x1a9fdc)['map'](_0x43ea84=>parseInt(_0x43ea84,0xa))['sort']((_0xaefbaa,_0x23da1f)=>_0xaefbaa-_0x23da1f);for(let _0x53fa72=0x0;_0x53fa72<_0x52ae29['length'];_0x53fa72++){const _0x523ef2=_0x52ae29[_0x53fa72],_0x433e95=!!_0x1a9fdc[_0x523ef2];if(_0x523ef2>_0xe3827c&&_0x433e95)return _0x523ef2;if(_0x523ef2<_0xe3827c&&!_0x433e95)return _0x523ef2;}return _0xe3827c;},TestPixel={'R':0x37,'G':0x6e,'B':0xa5,'A':0xff},FILL_STYLE='rgba('+TestPixel['R']+',\x20'+TestPixel['G']+',\x20'+TestPixel['B']+',\x20'+TestPixel['A']/0xff+')',canvasTest=(_0x132a0d,_0x282529)=>{try{const _0x41a9c9=[_0x132a0d-0x1,_0x282529-0x1,0x1,0x1],{canvas:_0x4f7db5,ctx:_0x36be02}=createCanvas();_0x4f7db5['width']=0x1,_0x4f7db5['height']=0x1;const {canvas:_0x35d270,ctx:_0x1365bf}=createCanvas();_0x35d270['width']=_0x132a0d,_0x35d270['height']=_0x282529,_0x1365bf&&(_0x1365bf['fillStyle']=FILL_STYLE,_0x1365bf['fillRect'](..._0x41a9c9),_0x36be02['drawImage'](_0x35d270,_0x132a0d-0x1,_0x282529-0x1,0x1,0x1,0x0,0x0,0x1,0x1));const _0x3c2dc8=_0x36be02&&_0x36be02['getImageData'](0x0,0x0,0x1,0x1)['data'];let _0x21b80d=!0x1;return _0x3c2dc8&&(_0x21b80d=_0x3c2dc8[0x0]===TestPixel['R']&&_0x3c2dc8[0x1]===TestPixel['G']&&_0x3c2dc8[0x2]===TestPixel['B']&&_0x3c2dc8[0x3]===TestPixel['A']),_0x35d270['width']=_0x35d270['height']=0x1,_0x21b80d;}catch(_0x555fd8){return console['error']('Failed\x20to\x20test\x20for\x20max\x20canvas\x20size\x20of\x20'+_0x132a0d+'x'+_0x282529+'.'),!0x1;}};function wrapAsync(_0x581e63){return(..._0x489188)=>new Promise(_0x352cbc=>{setTimeout(()=>{const _0x588afb=_0x581e63(..._0x489188);_0x352cbc(_0x588afb);},0x0);});}const squareTest=wrapAsync(memoize$1(canvasTest,memoKeySerializer)),dimensionTest=wrapAsync(memoize$1(canvasTest,memoKeySerializer)),testCanvasSize=async(_0x4afe1c,_0x46033f)=>{const _0xb6dcfa=sizes['squareSide']['find'](_0x454969=>_0x454969*_0x454969>=_0x4afe1c*_0x46033f),_0x1bd4d1=sizes['dimension']['find'](_0x1c4e53=>_0x1c4e53>=_0x4afe1c&&_0x1c4e53>=_0x46033f);if(!_0xb6dcfa||!_0x1bd4d1)throw new Error('Not\x20supported');const [_0x9dcd67,_0x177507]=await Promise['all']([squareTest(_0xb6dcfa,_0xb6dcfa),dimensionTest(_0x1bd4d1,0x1)]);if(_0x9dcd67&&_0x177507)return!0x0;throw new Error('Not\x20supported');},canvasResize=async(_0x1bcf48,_0x26dd1a,_0xc02f7e)=>{try{const {ctx:_0x19f814,canvas:_0xb40ef4}=createCanvas();return _0xb40ef4['width']=_0x26dd1a,_0xb40ef4['height']=_0xc02f7e,_0x19f814['imageSmoothingQuality']='high',_0x19f814['drawImage'](_0x1bcf48,0x0,0x0,_0x26dd1a,_0xc02f7e),_0x1bcf48 instanceof HTMLImageElement&&(_0x1bcf48['src']='//:0'),_0x1bcf48 instanceof HTMLCanvasElement&&(_0x1bcf48['width']=_0x1bcf48['height']=0x1),_0xb40ef4;}catch(_0x59b94e){throw new Error('Canvas\x20resize\x20error',{'cause':_0x59b94e});}},native=({img:_0x21ea5a,targetW:_0x39b78b,targetH:_0x425eaa})=>canvasResize(_0x21ea5a,_0x39b78b,_0x425eaa),calcShrinkSteps=function({sourceW:_0x1a030d,targetW:_0x32906a,targetH:_0x1e2e5c,step:_0x2d6e21}){const _0x3e52c3=[];let _0x14725d=_0x32906a,_0x13bdbc=_0x1e2e5c;do{_0x3e52c3['push']([_0x14725d,_0x13bdbc]),_0x14725d=Math['round'](_0x14725d/_0x2d6e21),_0x13bdbc=Math['round'](_0x13bdbc/_0x2d6e21);}while(_0x14725d<_0x1a030d*_0x2d6e21);return _0x3e52c3['reverse']();},fallback=({img:_0x1088ab,sourceW:_0x14b1fa,targetW:_0x5b6cd1,targetH:_0x3d7759,step:_0x26468f})=>{const _0x51f602=calcShrinkSteps({'sourceW':_0x14b1fa,'targetW':_0x5b6cd1,'targetH':_0x3d7759,'step':_0x26468f});return _0x51f602['reduce']((_0x3e18fb,[_0x4f9ef2,_0x2fa19c],_0x363c86)=>_0x3e18fb['then'](_0x481e31=>testCanvasSize(_0x4f9ef2,_0x2fa19c)['then'](()=>canvasResize(_0x481e31,_0x4f9ef2,_0x2fa19c))['catch'](()=>{if(_0x363c86===_0x51f602['length']-0x1)throw new Error('Not\x20supported');return _0x481e31;})),Promise['resolve'](_0x1088ab));},isIOS=()=>!!/iPad|iPhone|iPod/['test'](navigator['platform'])||navigator['maxTouchPoints']&&navigator['maxTouchPoints']>0x2&&/MacIntel/['test'](navigator['platform']),isIpadOS=navigator['maxTouchPoints']&&navigator['maxTouchPoints']>0x2&&/MacIntel/['test'](navigator['platform']),STEP=0.71,shrinkImage=(_0x433d58,_0x15fbd1)=>{if(_0x433d58['width']*STEP*_0x433d58['height']*STEP<_0x15fbd1['size'])throw new Error('Not\x20required');const _0x4f9c92=_0x433d58['width'],_0xc5eee3=_0x433d58['height'],_0x1b6593=_0x4f9c92/_0xc5eee3,_0x155e40=Math['floor'](Math['sqrt'](_0x15fbd1['size']*_0x1b6593)),_0x1e6a18=Math['floor'](_0x15fbd1['size']/Math['sqrt'](_0x15fbd1['size']*_0x1b6593));return testCanvasSize(_0x155e40,_0x1e6a18)['then'](()=>{const {ctx:_0x33c20b}=createCanvas();return'imageSmoothingQuality'in _0x33c20b&&!isIOS()&&!isIpadOS?native({'img':_0x433d58,'targetW':_0x155e40,'targetH':_0x1e6a18}):fallback({'img':_0x433d58,'sourceW':_0x4f9c92,'targetW':_0x155e40,'targetH':_0x1e6a18,'step':STEP});})['catch'](()=>Promise['reject']('Not\x20supported'));},shrinkFile=async(_0x30edf8,_0x3b409e)=>{try{if(await shouldSkipShrink(_0x30edf8))throw new Error('Should\x20skipped');const _0x199174=await Promise['allSettled']([getExif(_0x30edf8),isBrowserApplyExifOrientation(),getIccProfile(_0x30edf8)]),_0x41ece2=!_0x199174['some'](_0x3df28f=>'rejected'===_0x3df28f['status']),[_0x5deed0,_0x267b22,_0x2c8b6c]=_0x199174,_0x80f858=await stripIccProfile(_0x30edf8)['catch'](()=>_0x30edf8),_0x452c5c=await imageLoader(URL['createObjectURL'](_0x80f858));URL['revokeObjectURL'](_0x452c5c['src']);const _0x3e13c2=await shrinkImage(_0x452c5c,_0x3b409e);let _0xc3d1db='image/jpeg',_0x5c10b7=_0x3b409e?.['quality']||0.8;!_0x41ece2&&hasTransparency(_0x3e13c2)&&(_0xc3d1db='image/png',_0x5c10b7=void 0x0);let _0x599420=await canvasToBlob(_0x3e13c2,_0xc3d1db,_0x5c10b7);if(_0x41ece2&&'fulfilled'===_0x5deed0['status']&&_0x5deed0['value']){const _0x36fdfd=_0x5deed0['value'],_0xda052c='fulfilled'===_0x267b22['status']&&_0x267b22['value'];_0x599420=await replaceExif(_0x599420,_0x36fdfd,_0xda052c);}return _0x41ece2&&'fulfilled'===_0x2c8b6c['status']&&_0x2c8b6c['value']['length']>0x0&&(_0x599420=await replaceIccProfile(_0x599420,_0x2c8b6c['value'])),_0x599420;}catch(_0x521818){let _0x5bebce;throw _0x521818 instanceof Error&&(_0x5bebce=_0x521818['message']),'string'==typeof _0x521818&&(_0x5bebce=_0x521818),new Error('Failed\x20to\x20shrink\x20image.\x20'+(_0x5bebce?'Message:\x20\x22'+_0x5bebce+'\x22.':''),{'cause':_0x521818});}};var DEFAULT_DEBOUNCE_TIMEOUT=0x14,InternalEventType=Object['freeze']({'INIT_SOLUTION':'init-solution','CHANGE_CONFIG':'change-config','ACTION_EVENT':'action-event','ERROR_EVENT':'error-event'}),EventType=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'}),EventEmitter=class{['_timeoutStore']=new Map();['_targets']=new Set();['_debugPrint']=null;constructor(_0x2fb187){this['_debugPrint']=_0x2fb187;}['bindTarget'](_0x266f64){this['_targets']['add'](_0x266f64);}['unbindTarget'](_0x52c79e){this['_targets']['delete'](_0x52c79e);}['_dispatch'](_0x2eb3ac,_0x284073){for(const _0x3bbab8 of this['_targets'])_0x3bbab8['dispatchEvent'](new CustomEvent(_0x2eb3ac,{'detail':_0x284073}));this['_debugPrint']?.(()=>{const _0x405a88=_0x284073&&'object'==typeof _0x284073?{..._0x284073}:_0x284073;return['event\x20\x22'+_0x2eb3ac+'\x22',_0x405a88];});}['emit'](_0x574767,_0x1b0322,_0x524ff5={}){const {debounce:_0x287707}=_0x524ff5;if('number'!=typeof _0x287707&&!_0x287707)return void this['_dispatch'](_0x574767,'function'==typeof _0x1b0322?_0x1b0322():_0x1b0322);this['_timeoutStore']['has'](_0x574767)&&window['clearTimeout'](this['_timeoutStore']['get'](_0x574767));const _0x3f56d1='number'==typeof _0x287707?_0x287707:DEFAULT_DEBOUNCE_TIMEOUT,_0x4265eb=window['setTimeout'](()=>{this['_dispatch'](_0x574767,'function'==typeof _0x1b0322?_0x1b0322():_0x1b0322),this['_timeoutStore']['delete'](_0x574767);},_0x3f56d1);this['_timeoutStore']['set'](_0x574767,_0x4265eb);}};function debounce(_0x4f9c72,_0x29779d){let _0x1e125c;const _0x3a7747=(..._0x3c04ef)=>{_0x1e125c&&clearTimeout(_0x1e125c),_0x1e125c=setTimeout(()=>_0x4f9c72(..._0x3c04ef),_0x29779d);};return _0x3a7747['cancel']=()=>{_0x1e125c&&clearTimeout(_0x1e125c);},_0x3a7747;}var deserializeCsv=_0x2b365f=>_0x2b365f?_0x2b365f['split'](',')['map'](_0x1ba8e4=>_0x1ba8e4['trim']())['filter'](Boolean):[],serializeCsv=_0x5d3bbf=>_0x5d3bbf['join'](','),normalizeCdnOperation=_0xe73259=>{if('string'!=typeof _0xe73259||!_0xe73259)return'';let _0x3ff0b6=_0xe73259['trim']();return _0x3ff0b6['startsWith']('-/')?_0x3ff0b6=_0x3ff0b6['slice'](0x2):_0x3ff0b6['startsWith']('/')&&(_0x3ff0b6=_0x3ff0b6['slice'](0x1)),_0x3ff0b6['endsWith']('/')&&(_0x3ff0b6=_0x3ff0b6['slice'](0x0,_0x3ff0b6['length']-0x1)),_0x3ff0b6;},joinCdnOperations=(..._0x7a3915)=>_0x7a3915['filter'](_0x322959=>'string'==typeof _0x322959&&!!_0x322959)['map'](_0x2afbd8=>normalizeCdnOperation(_0x2afbd8))['join']('/-/'),createCdnUrlModifiers=(..._0x36742b)=>{const _0xc71edf=joinCdnOperations(..._0x36742b);return _0xc71edf?'-/'+_0xc71edf+'/':'';};function extractFilename(_0x30eeb4){const _0x2c555e=new URL(_0x30eeb4),_0x9230b9=_0x2c555e['pathname']+_0x2c555e['search']+_0x2c555e['hash'],_0x491ffb=_0x9230b9['lastIndexOf']('http'),_0x40fa25=_0x9230b9['lastIndexOf']('/');let _0x4c1c66='';return _0x491ffb>=0x0?_0x4c1c66=_0x9230b9['slice'](_0x491ffb):_0x40fa25>=0x0&&(_0x4c1c66=_0x9230b9['slice'](_0x40fa25+0x1)),_0x4c1c66;}function extractUuid(_0x5273ea){const _0x52b3ef=new URL(_0x5273ea),{pathname:_0x4c7d1f}=_0x52b3ef,_0x7da313=_0x4c7d1f['indexOf']('/'),_0x34fe82=_0x4c7d1f['indexOf']('/',_0x7da313+0x1);return _0x4c7d1f['substring'](_0x7da313+0x1,_0x34fe82);}function extractCdnUrlModifiers(_0x3b5b9a){const _0x3f8089=trimFilename(_0x3b5b9a),_0x241637=new URL(_0x3f8089),_0x5e54a5=_0x241637['pathname']['indexOf']('/-/');if(-0x1===_0x5e54a5)return'';return _0x241637['pathname']['substring'](_0x5e54a5)['slice'](0x1);}function extractOperations(_0x132435){return extractCdnUrlModifiers(_0x132435)['split']('/-/')['filter'](Boolean)['map'](_0x24328c=>normalizeCdnOperation(_0x24328c));}function trimFilename(_0x2440b6){const _0x399fca=new URL(_0x2440b6),_0x5c3da8=extractFilename(_0x2440b6),_0x3b9919=isFileUrl(_0x5c3da8)?splitFileUrl(_0x5c3da8)['pathname']:_0x5c3da8;return _0x399fca['pathname']=_0x399fca['pathname']['replace'](_0x3b9919,''),_0x399fca['search']='',_0x399fca['hash']='',_0x399fca['toString']();}function isFileUrl(_0x83de7a){return _0x83de7a['startsWith']('http');}function splitFileUrl(_0x169fc4){const _0x1e84ee=new URL(_0x169fc4);return{'pathname':''+_0x1e84ee['origin']+(_0x1e84ee['pathname']??''),'search':_0x1e84ee['search']??'','hash':_0x1e84ee['hash']??''};}var createCdnUrl=(_0x3da334,_0x14c739,_0x35e44a)=>{const _0x32513c=new URL(trimFilename(_0x3da334)),_0x71e5eb=_0x35e44a??extractFilename(_0x3da334),_0x220dec=_0x14c739??'';if(_0x32513c['pathname']['startsWith']('//')&&(_0x32513c['pathname']=_0x32513c['pathname']['replace']('//','/')),_0x71e5eb&&isFileUrl(_0x71e5eb)){const _0x31d582=splitFileUrl(_0x71e5eb);_0x32513c['pathname']=''+_0x32513c['pathname']+_0x220dec+(_0x31d582['pathname']||''),_0x32513c['search']=_0x31d582['search'],_0x32513c['hash']=_0x31d582['hash'];}else _0x32513c['pathname']=''+_0x32513c['pathname']+_0x220dec+(_0x71e5eb||'');return _0x32513c['toString']();},createOriginalUrl=(_0x284cf2,_0x2ae7d6)=>{const _0x50abc9=new URL(_0x284cf2);return _0x50abc9['pathname']=_0x2ae7d6+'/',_0x50abc9['toString']();},stringToArray=(_0x2da686,_0x57dafd=',')=>_0x2da686['trim']()['split'](_0x57dafd)['map'](_0x33ff73=>_0x33ff73['trim']())['filter'](_0x37b2b7=>_0x37b2b7['length']>0x0),OPERATIONS_DEFAULTS=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}),SUPPORTED_OPERATIONS_ORDERED=['enhance','brightness','exposure','gamma','contrast','saturation','vibrance','warmth','filter','mirror','flip','rotate','crop'];function transformationToStr(_0x325fbe,_0x18ea9d){if('number'==typeof _0x18ea9d){const _0x2d1fb5=_0x18ea9d;return OPERATIONS_DEFAULTS[_0x325fbe]!==_0x2d1fb5?_0x325fbe+'/'+_0x2d1fb5:'';}if('boolean'==typeof _0x18ea9d){const _0x120f15=_0x18ea9d;return OPERATIONS_DEFAULTS[_0x325fbe]!==_0x120f15?''+_0x325fbe:'';}if('filter'===_0x325fbe&&_0x18ea9d){const {name:_0x21e516,amount:_0x58a991}=_0x18ea9d;return OPERATIONS_DEFAULTS['filter']===_0x58a991?'':_0x325fbe+'/'+_0x21e516+'/'+_0x58a991;}if('crop'===_0x325fbe&&_0x18ea9d){const {dimensions:_0xe1f25e,coords:_0x27c658}=_0x18ea9d;return _0x325fbe+'/'+_0xe1f25e['join']('x')+'/'+_0x27c658['join'](',');}return'';}function transformationsToOperations(_0x3443e5){return joinCdnOperations(...SUPPORTED_OPERATIONS_ORDERED['filter'](_0x59f254=>void 0x0!==_0x3443e5[_0x59f254]&&null!==_0x3443e5[_0x59f254])['map'](_0xae3625=>transformationToStr(_0xae3625,_0x3443e5[_0xae3625]))['filter'](_0x5f380c=>!!_0x5f380c));}var COMMON_OPERATIONS=joinCdnOperations('format/auto','progressive/yes'),asNumber=([_0x36cf90])=>void 0x0!==_0x36cf90?Number(_0x36cf90):void 0x0,asBoolean=()=>!0x0,asFilter=([_0x3c8c2f,_0x1ffe5e])=>({'name':_0x3c8c2f,'amount':void 0x0!==_0x1ffe5e?Number(_0x1ffe5e):0x64}),asCrop=([_0x42a069,_0x139d5a])=>{if(!/\d+x\d+/['test'](_0x42a069)||!/\d+,\d+/['test'](_0x139d5a))throw new Error('Crop\x20by\x20aspect\x20ratio,\x20percentage\x20or\x20alignment\x20shortcuts\x20is\x20not\x20supported.');return{'dimensions':stringToArray(_0x42a069,'x')['map'](Number),'coords':stringToArray(_0x139d5a)['map'](Number)};},OPERATION_PROCESSORS=Object['freeze']({'enhance':asNumber,'brightness':asNumber,'exposure':asNumber,'gamma':asNumber,'contrast':asNumber,'saturation':asNumber,'vibrance':asNumber,'warmth':asNumber,'filter':asFilter,'mirror':asBoolean,'flip':asBoolean,'rotate':asNumber,'crop':_0xf57582=>{const [_0x3cd997,_0x53be5d]=_0xf57582,{dimensions:_0x8a03ae,coords:_0x4ea5f8}=asCrop([_0x3cd997,_0x53be5d]);return{'dimensions':_0x8a03ae,'coords':_0x4ea5f8};}});function operationsToTransformations(_0x1128c4){const _0x1cf8fa={};for(const _0x533ee2 of _0x1128c4){const [_0x393cfc,..._0x1a38cf]=_0x533ee2['split']('/');if(!_0x393cfc||!SUPPORTED_OPERATIONS_ORDERED['includes'](_0x393cfc))continue;const _0x30666e=_0x393cfc,_0x5d5493=OPERATION_PROCESSORS[_0x30666e];try{const _0x41d96b=_0x5d5493(_0x1a38cf);_0x1cf8fa[_0x30666e]=_0x41d96b;}catch(_0x3a4b48){console['warn'](['Failed\x20to\x20parse\x20URL\x20operation\x20\x22'+_0x533ee2+'\x22.\x20It\x20will\x20be\x20ignored.',_0x3a4b48 instanceof Error?'Error\x20message:\x20\x22'+_0x3a4b48['message']+'\x22':_0x3a4b48,'If\x20you\x20need\x20this\x20functionality,\x20please\x20feel\x20free\x20to\x20open\x20an\x20issue\x20at\x20https://github.com/uploadcare/blocks/issues/new']['join']('\x0a'));}}return _0x1cf8fa;}var TabId=Object['freeze']({'CROP':'crop','TUNING':'tuning','FILTERS':'filters'}),ALL_TABS=Object['freeze']([TabId['CROP'],TabId['TUNING'],TabId['FILTERS']]),ALL_COLOR_OPERATIONS=Object['freeze'](['brightness','exposure','gamma','contrast','saturation','vibrance','warmth','enhance']),ALL_FILTERS=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']),ALL_CROP_OPERATIONS=Object['freeze'](['rotate','mirror','flip']),NUMERIC_OPERATION_DEFAULTS=OPERATIONS_DEFAULTS,COLOR_OPERATIONS_CONFIG=Object['freeze']({'brightness':{'zero':NUMERIC_OPERATION_DEFAULTS['brightness'],'range':[-0x64,0x64],'keypointsNumber':0x2},'exposure':{'zero':NUMERIC_OPERATION_DEFAULTS['exposure'],'range':[-0x1f4,0x1f4],'keypointsNumber':0x2},'gamma':{'zero':NUMERIC_OPERATION_DEFAULTS['gamma'],'range':[0x0,0x3e8],'keypointsNumber':0x2},'contrast':{'zero':NUMERIC_OPERATION_DEFAULTS['contrast'],'range':[-0x64,0x1f4],'keypointsNumber':0x2},'saturation':{'zero':NUMERIC_OPERATION_DEFAULTS['saturation'],'range':[-0x64,0x1f4],'keypointsNumber':0x1},'vibrance':{'zero':NUMERIC_OPERATION_DEFAULTS['vibrance'],'range':[-0x64,0x1f4],'keypointsNumber':0x1},'warmth':{'zero':NUMERIC_OPERATION_DEFAULTS['warmth'],'range':[-0x64,0x64],'keypointsNumber':0x1},'enhance':{'zero':NUMERIC_OPERATION_DEFAULTS['enhance'],'range':[0x0,0x64],'keypointsNumber':0x1},'filter':{'zero':NUMERIC_OPERATION_DEFAULTS['filter'],'range':[0x0,0x64],'keypointsNumber':0x1}}),DEFAULT_CDN_CNAME='https://ucarecdn.com',DEFAULT_BASE_URL='https://upload.uploadcare.com',DEFAULT_SOCIAL_BASE_URL='https://social.uploadcare.com',DEFAULT_PREFIXED_CDN_BASE_DOMAIN='https://ucarecd.net',config={'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':'','cloudImageEditorTabs':serializeCsv(ALL_TABS),'maxLocalFileSizeBytes':0x0,'thumbSize':0x4c,'showEmptyList':!0x1,'useLocalImageEditor':!0x1,'useCloudImageEditor':!0x0,'removeCopyright':!0x1,'cropPreset':'','imageShrink':'','modalScrollLock':!0x0,'modalBackdropStrokes':!0x1,'sourceListWrap':!0x0,'remoteTabSessionKey':'','cdnCname':DEFAULT_CDN_CNAME,'cdnCnamePrefixed':DEFAULT_PREFIXED_CDN_BASE_DOMAIN,'baseUrl':DEFAULT_BASE_URL,'socialBaseUrl':DEFAULT_SOCIAL_BASE_URL,'secureSignature':'','secureExpire':'','secureDeliveryProxy':'','retryThrottledRequestMaxTimes':0xa,'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,'cloudImageEditorAutoOpen':!0x1,'cloudImageEditorMaskHref':null,'testMode':!0x1,'qualityInsights':!0x0},initialConfig=Object['freeze'](config),getLocaleDirection=_0x2044a0=>{const _0x43a4c9=new Intl['Locale'](_0x2044a0);let _0x56dcc5='ltr';const _0x545f96=_0x43a4c9['getTextInfo']?.()['direction'];return _0x545f96?_0x56dcc5=_0x545f96:_0x43a4c9['textInfo']?.['direction']&&(_0x56dcc5=_0x43a4c9['textInfo']['direction']),_0x56dcc5;},getPluralForm=(_0xa378d9,_0x46749d)=>new Intl['PluralRules'](_0xa378d9)['select'](_0x46749d),DEFAULT_TRANSFORMER=_0x33d078=>_0x33d078,OPEN_TOKEN='{{',CLOSE_TOKEN='}}',PLURAL_PREFIX='plural:';function applyTemplateData(_0x26ae4a,_0x5bbb20={},_0x1bae46={}){const {openToken:_0x11c402=OPEN_TOKEN,closeToken:_0x2c0669=CLOSE_TOKEN,transform:_0x361bfb=DEFAULT_TRANSFORMER}=_0x1bae46;for(const _0x6aa68 in _0x5bbb20){const _0x1dfa45=_0x5bbb20[_0x6aa68],_0x43d9a4=null!=_0x1dfa45?_0x1dfa45['toString']():void 0x0,_0x23bdd3='string'==typeof _0x43d9a4?_0x361bfb(_0x43d9a4):String(_0x43d9a4);_0x26ae4a=_0x26ae4a['replaceAll'](_0x11c402+_0x6aa68+_0x2c0669,_0x23bdd3);}return _0x26ae4a;}function getPluralObjects(_0x33c498){const _0x56ef6e=[];let _0x266ab7=_0x33c498['indexOf'](OPEN_TOKEN);for(;-0x1!==_0x266ab7;){const _0x54e674=_0x33c498['indexOf'](CLOSE_TOKEN,_0x266ab7);if(-0x1===_0x54e674)break;const _0x2a641c=_0x33c498['substring'](_0x266ab7+0x2,_0x54e674);if(_0x2a641c['startsWith'](PLURAL_PREFIX)){const _0x38bdb6=_0x33c498['substring'](_0x266ab7+0x2,_0x54e674)['replace'](PLURAL_PREFIX,''),_0x4254bf=_0x38bdb6['substring'](0x0,_0x38bdb6['indexOf']('(')),_0x220487=_0x38bdb6['substring'](_0x38bdb6['indexOf']('(')+0x1,_0x38bdb6['indexOf'](')'));_0x56ef6e['push']({'variable':_0x2a641c,'pluralKey':_0x4254bf,'countVariable':_0x220487});}_0x266ab7=_0x33c498['indexOf'](OPEN_TOKEN,_0x54e674);}return _0x56ef6e;}var WINDOW_HEIGHT_TRACKER_PROPERTY='--uploadcare-blocks-window-height',WindowHeightTracker=class e{static ['clientsRegistry']=new Set();static ['flush']=debounce(()=>{document['documentElement']['style']['setProperty'](WINDOW_HEIGHT_TRACKER_PROPERTY,window['innerHeight']+'px');},0x64);static['registerClient'](_0x34102f){0x0===e['clientsRegistry']['size']&&e['attachTracker'](),e['clientsRegistry']['add'](_0x34102f);}static['unregisterClient'](_0x317d8d){e['clientsRegistry']['delete'](_0x317d8d),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'](WINDOW_HEIGHT_TRACKER_PROPERTY);}},waitForAttribute=({element:_0x3a1c40,attribute:_0x45b676,onSuccess:_0xf669b2,onTimeout:_0x52f840,timeout:_0x2961e2=0x12c})=>{const _0x48b517=_0x3a1c40['getAttribute'](_0x45b676);if(null!==_0x48b517)return void _0xf669b2(_0x48b517);const _0x28289a=new MutationObserver(_0x5574f8=>{const _0x381b1b=_0x5574f8[_0x5574f8['length']-0x1];_0x381b1b&&_0x1d9a8a(_0x381b1b);});_0x28289a['observe'](_0x3a1c40,{'attributes':!0x0,'attributeFilter':[_0x45b676]});const _0xcfbd0=window['setTimeout'](()=>{_0x28289a['disconnect'](),_0x52f840();},_0x2961e2),_0x1d9a8a=_0xc4167c=>{const _0x50ab24=_0x3a1c40['getAttribute'](_0x45b676);'attributes'===_0xc4167c['type']&&_0xc4167c['attributeName']===_0x45b676&&null!==_0x50ab24&&(window['clearTimeout'](_0xcfbd0),_0x28289a['disconnect'](),_0xf669b2(_0x50ab24));};},blockCtx=()=>({}),activityBlockCtx=_0x29aeee=>({...blockCtx(),'*currentActivity':null,'*currentActivityParams':{},'*history':[],'*historyBack':null,'*closeModal':()=>{_0x29aeee['modalManager']?.['close'](_0x29aeee['$']['*currentActivity']),_0x29aeee['set$']({'*currentActivity':null});}}),uploaderBlockCtx=_0x137d0d=>({...activityBlockCtx(_0x137d0d),'*commonProgress':0x0,'*uploadList':[],'*uploadQueue':new Queue(0x1),'*collectionErrors':[],'*collectionState':null,'*groupInfo':null,'*uploadTrigger':new Set(),'*secureUploadsManager':null}),solutionBlockCtx=_0x4ed611=>({...uploaderBlockCtx(_0x4ed611),'*solution':null}),en_default={'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','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-draw':'Draw','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-draw':'Draw','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'},localeRegistry=new Map(),localeResolvers=new Map(),defineLocaleSync=(_0x4d49e0,_0x5592ac)=>{localeRegistry['has'](_0x4d49e0)&&console['log']('Locale\x20'+_0x4d49e0+'\x20is\x20already\x20defined.\x20Overwriting...'),localeRegistry['set'](_0x4d49e0,{...en_default,..._0x5592ac});},defineLocaleAsync=(_0x4302fa,_0x57d024)=>{localeResolvers['set'](_0x4302fa,_0x57d024);},defineLocale=(_0x3b67b2,_0x5112df)=>{'function'==typeof _0x5112df?defineLocaleAsync(_0x3b67b2,_0x5112df):defineLocaleSync(_0x3b67b2,_0x5112df);},resolveLocaleDefinition=async _0x32ebcc=>{if(!localeRegistry['has'](_0x32ebcc)){if(!localeResolvers['has'](_0x32ebcc))throw new Error('Locale\x20'+_0x32ebcc+'\x20is\x20not\x20defined');const _0x317e85=localeResolvers['get'](_0x32ebcc),_0x2eb3b7=await _0x317e85();defineLocaleSync(_0x32ebcc,_0x2eb3b7);}return localeRegistry['get'](_0x32ebcc);};defineLocale('en',en_default);var localeStateKey=_0x2492d2=>'*l10n/'+_0x2492d2,DEFAULT_LOCALE='en',LocaleManager=class{['_blockInstance']=null;['_localeName']='';['_callbacks']=new Set();['_boundBlocks']=new Map();constructor(_0x8115fb){this['_blockInstance']=_0x8115fb;for(const [_0x4e5847,_0x2a6ddb]of Object['entries'](en_default)){const _0x4c5c50=!this['_blockInstance']['has'](localeStateKey(_0x4e5847))||!this['_blockInstance']['$'][localeStateKey(_0x4e5847)];this['_blockInstance']['add'](localeStateKey(_0x4e5847),_0x2a6ddb,_0x4c5c50);}setTimeout(()=>{_0x8115fb['subConfigValue']('localeName',async _0x1b337f=>{if(!this['_blockInstance']||!_0x1b337f)return;this['_localeName']=_0x1b337f;const _0x20d564=await resolveLocaleDefinition(_0x1b337f);if(_0x1b337f!==DEFAULT_LOCALE&&this['_localeName']!==_0x1b337f)return;const _0x49cb4a=this['_blockInstance']['cfg']['localeDefinitionOverride']?.[_0x1b337f];for(const [_0x4d648d,_0x934cbc]of Object['entries'](_0x20d564)){const _0x57b260=_0x49cb4a?.[_0x4d648d];this['_blockInstance']['add'](localeStateKey(_0x4d648d),_0x57b260??_0x934cbc,!0x0);for(const _0x2c175a of this['_callbacks'])_0x2c175a();}}),_0x8115fb['subConfigValue']('localeDefinitionOverride',_0x1d3d45=>{if(!_0x1d3d45)return;const _0x123c59=_0x1d3d45[this['_localeName']];if(_0x123c59)for(const [_0x5548b6,_0x6656c6]of Object['entries'](_0x123c59)){this['_blockInstance']?.['add'](localeStateKey(_0x5548b6),_0x6656c6,!0x0);for(const _0x485e48 of this['_callbacks'])_0x485e48();}});});}['onLocaleChange'](_0x4a37c0){const _0xe53d84=debounce(_0x4a37c0,0x0);return this['_callbacks']['add'](_0xe53d84),()=>{this['_callbacks']['delete'](_0xe53d84);};}['bindL10n'](_0x17bfcd,_0x52c14f,_0x45e0b0){_0x17bfcd['$'][_0x52c14f]=_0x45e0b0(),this['_boundBlocks']['has'](_0x17bfcd)||this['_boundBlocks']['set'](_0x17bfcd,new Map()),this['_boundBlocks']['get'](_0x17bfcd)?.['get'](_0x52c14f)?.();const _0x2807e3=this['onLocaleChange'](()=>{_0x17bfcd['$'][_0x52c14f]=_0x45e0b0();});this['_boundBlocks']['get'](_0x17bfcd)?.['set'](_0x52c14f,_0x2807e3);}['destroyL10nBindings'](_0x173fff){const _0x4927b7=this['_boundBlocks']['get'](_0x173fff);if(_0x4927b7){for(const _0x1a3c44 of _0x4927b7['values']())_0x1a3c44();this['_boundBlocks']['delete'](_0x173fff);}}['destroy'](){this['_callbacks']['clear']();}};function l10nProcessor(_0x120388,_0x4ecffd){[..._0x120388['querySelectorAll']('[l10n]')]['forEach'](_0x1448ea=>{const _0x3dca23=_0x1448ea['getAttribute']('l10n');if(!_0x3dca23)return;const _0x4c1896=_0x3dca23['split'](';');for(const _0x425515 of _0x4c1896)_0x425515&&locale(_0x1448ea,_0x425515,_0x4ecffd);});}var locale=(_0x1a85ee,_0x33ce77,_0x12f17c)=>{let _0x2c3119='textContent',_0x3a683c=!0x1;if(_0x33ce77['includes'](':')){const _0x5ccb82=_0x33ce77['split'](':');if(0x2!==_0x5ccb82['length'])return void console['warn']('l10n\x20attribute\x20value\x20should\x20be\x20in\x20format\x20\x22property:key\x22\x20or\x20\x22key\x22.\x20Found:\x20'+_0x33ce77);const _0x438fa3=_0x5ccb82;_0x2c3119=_0x438fa3[0x0],_0x33ce77=_0x438fa3[0x1],_0x2c3119['startsWith']('@')&&(_0x2c3119=_0x2c3119['slice'](0x1),_0x3a683c=!0x0);}const _0x44bf10=_0x33ce77;_0x12f17c['has'](_0x44bf10)&&_0x12f17c['sub'](_0x44bf10,_0xe9e9ab=>{if(!_0xe9e9ab)return;_0x12f17c['l10nProcessorSubs']['has'](_0x44bf10)||_0x12f17c['l10nProcessorSubs']['set'](_0x44bf10,new Set());const _0x40b58a=_0x12f17c['l10nProcessorSubs']['get'](_0x44bf10);_0x40b58a?.['forEach'](_0x26b3bd=>{_0x26b3bd['remove'](),_0x40b58a['delete'](_0x26b3bd),_0x12f17c['allSubs']['delete'](_0x26b3bd);});const _0x216eea=localeStateKey(_0xe9e9ab)['replace']('*','');_0x12f17c['nodeCtx']['has'](_0x216eea)||_0x12f17c['nodeCtx']['add'](_0x216eea,_0xe9e9ab);const _0x2e7634=_0x12f17c['nodeCtx']['sub'](_0x216eea,()=>{_0x1a85ee[_0x2c3119]=_0x12f17c['l10n'](_0xe9e9ab);});_0x40b58a?.['add'](_0x2e7634),_0x12f17c['allSubs']['add'](_0x2e7634),_0x1a85ee['removeAttribute']('l10n');});const _0x2ed52f=localeStateKey(_0x33ce77);_0x12f17c['has'](_0x2ed52f)||_0x12f17c['add'](_0x2ed52f,''),_0x12f17c['sub'](_0x2ed52f,()=>{_0x3a683c?_0x1a85ee['setAttribute'](_0x2c3119,_0x12f17c['l10n'](_0x33ce77)):_0x1a85ee[_0x2c3119]=_0x12f17c['l10n'](_0x33ce77);}),_0x1a85ee['removeAttribute']('l10n');},ScopedMinimalWindow=class{['_listeners']=new Map();['_scope']=[];['addEventListener'](_0x178aa8,_0x50b67c){const _0x578201=_0x4879f1=>{const _0x26f1f5=_0x4879f1['target'];_0x26f1f5 instanceof Node&&this['_scope']['some'](_0x6c775=>_0x6c775===_0x26f1f5||_0x6c775['contains'](_0x26f1f5))&&_0x50b67c(_0x4879f1);};this['_listeners']['set'](_0x50b67c,_0x578201),window['addEventListener'](_0x178aa8,_0x578201);}['removeEventListener'](_0x44059e,_0x3de88d){const _0x396d82=this['_listeners']['get'](_0x3de88d);_0x396d82&&window['removeEventListener'](_0x44059e,_0x396d82),this['_listeners']['delete'](_0x3de88d);}get['CustomEvent'](){return window['CustomEvent'];}get['document'](){return window['document'];}get['navigator'](){return window['navigator'];}['registerScope'](_0x36a6e4){this['_scope']['push'](_0x36a6e4);}['destroy'](){this['_scope']=[];for(const _0x45700f of this['_listeners']['values']())window['removeEventListener']('keydown',_0x45700f),window['removeEventListener']('keyup',_0x45700f);this['_listeners']['clear']();}},A11y=class{['_destroyKeyUX'];['_scopedWindow'];constructor(){this['_scopedWindow']=new ScopedMinimalWindow(),this['_destroyKeyUX']=startKeyUX(this['_scopedWindow'],[focusGroupKeyUX(),pressKeyUX('is-pressed'),jumpKeyUX(),hiddenKeyUX()]);}['registerBlock'](_0x311030){this['_scopedWindow']['registerScope'](_0x311030);}['destroy'](){this['_destroyKeyUX']?.(),this['_scopedWindow']['destroy']();}},ModalEvents=Object['freeze']({'ADD':'modal:add','DELETE':'modal:delete','OPEN':'modal:open','CLOSE':'modal:close','CLOSE_ALL':'modal:closeAll','DESTROY':'modal:destroy'}),ModalManager=class{['_modals']=new Map();['_activeModals']=new Set();['_subscribers']=new Map();['_block'];constructor(_0x140b3a){this['_block']=_0x140b3a;}['_debugPrint'](..._0x5ed287){this['_block']['debugPrint']('[modal-manager]',..._0x5ed287);}['registerModal'](_0x3f8725,_0x587b7d){this['_modals']['set'](_0x3f8725,_0x587b7d),this['_notify'](ModalEvents['ADD'],{'id':_0x3f8725,'modal':_0x587b7d});}['deleteModal'](_0x3f2053){if(!this['_modals']['has'](_0x3f2053))return!0x1;const _0x2aba1e=this['_modals']['get'](_0x3f2053);return this['_modals']['delete'](_0x3f2053),this['_activeModals']['delete'](_0x3f2053),this['_notify'](ModalEvents['DELETE'],{'id':_0x3f2053,'modal':_0x2aba1e}),!0x0;}['open'](_0x32a71d){if(!this['_modals']['has'](_0x32a71d))return this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x32a71d+'\x22\x20not\x20found'),!0x1;const _0x398adb=this['_modals']['get'](_0x32a71d);return this['_activeModals']['add'](_0x32a71d),this['_notify'](ModalEvents['OPEN'],{'modal':_0x398adb,'id':_0x32a71d}),!0x0;}['close'](_0x36443a){if(!this['_modals']['has'](_0x36443a)||!this['_activeModals']['has'](_0x36443a))return this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x36443a+'\x22\x20not\x20found\x20or\x20not\x20active'),!0x1;const _0x1cc310=this['_modals']['get'](_0x36443a);return this['_activeModals']['delete'](_0x36443a),this['_notify'](ModalEvents['CLOSE'],{'id':_0x36443a,'modal':_0x1cc310}),!0x0;}['toggle'](_0x2f6698){return this['_modals']['has'](_0x2f6698)?this['_activeModals']['has'](_0x2f6698)?this['close'](_0x2f6698):this['open'](_0x2f6698):(this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x2f6698+'\x22\x20not\x20found'),!0x1);}get['hasActiveModals'](){return this['_activeModals']['size']>0x0;}['back'](){if(0x0===this['_activeModals']['size'])return this['_debugPrint']('No\x20active\x20modals\x20to\x20go\x20back\x20from'),!0x1;const _0x279abd=Array['from'](this['_activeModals'])['pop']();return!!_0x279abd&&this['close'](_0x279abd);}['closeAll'](){const _0x1f7266=this['_activeModals']['size'];return this['_activeModals']['clear'](),this['_notify'](ModalEvents['CLOSE_ALL'],{}),_0x1f7266;}['subscribe'](_0x4bce70,_0x36ed87){return this['_subscribers']['has'](_0x4bce70)||this['_subscribers']['set'](_0x4bce70,new Set()),this['_subscribers']['get'](_0x4bce70)?.['add'](_0x36ed87),()=>this['unsubscribe'](_0x4bce70,_0x36ed87);}['unsubscribe'](_0x2200e6,_0x4f2698){this['_subscribers']['has'](_0x2200e6)&&this['_subscribers']['get'](_0x2200e6)?.['delete'](_0x4f2698);}['_notify'](_0xbf251b,_0x4c5698){if(this['_subscribers']['has'](_0xbf251b)){for(const _0xb54ece of this['_subscribers']['get'](_0xbf251b)??new Set())try{_0xb54ece(_0x4c5698);}catch(_0x294fd5){this['_block']['telemetryManager']['sendEventError'](_0x294fd5,'modal\x20subscriber'),this['_debugPrint']('Error\x20in\x20modal\x20subscriber:',_0x294fd5);}}}['destroy'](){this['closeAll'](),this['_modals']['clear'](),this['_subscribers']['clear'](),this['_notify'](ModalEvents['DESTROY'],{});}},version='1.24.5',PACKAGE_NAME='blocks',PACKAGE_VERSION=version,TelemetryManager=class{['_sessionId']=crypto['randomUUID']();['_telemetryInstance'];['_block'];['_config']=structuredClone(initialConfig);['_initialized']=!0x1;['_lastPayload']=null;['_queue'];constructor(_0x18762f){this['_block']=_0x18762f,this['_telemetryInstance']=new p(),this['_queue']=new Queue(0xa);for(const _0x51c936 of Object['keys'](this['_config']))this['_block']['subConfigValue'](_0x51c936,_0x4f6caa=>{this['_initialized']&&this['_config'][_0x51c936]!==_0x4f6caa&&this['sendEvent']({'eventType':InternalEventType['CHANGE_CONFIG']}),this['_setConfig'](_0x51c936,_0x4f6caa);});}['_init'](_0x204270){_0x204270!==InternalEventType['INIT_SOLUTION']||this['_initialized']||(this['_initialized']=!0x0);}['_setConfig'](_0x2af8ba,_0x18fad4){this['_config'][_0x2af8ba]!==_0x18fad4&&(this['_config'][_0x2af8ba]=_0x18fad4);}['_formattingPayload'](_0x4e8139){const _0x4b3e59=_0x4e8139['payload']?{..._0x4e8139['payload']}:{};_0x4b3e59['activity']&&(_0x4b3e59['activity']=void 0x0);const _0x1def7c={..._0x4e8139};return _0x4e8139['eventType']!==InternalEventType['INIT_SOLUTION']&&_0x4e8139['eventType']!==InternalEventType['CHANGE_CONFIG']||(_0x1def7c['config']=this['_config']),{..._0x1def7c,'appVersion':PACKAGE_VERSION,'appName':PACKAGE_NAME,'sessionId':this['_sessionId'],'component':this['_solution'],'activity':this['_activity'],'projectPubkey':this['_config']['pubkey'],'userAgent':navigator['userAgent'],'eventType':_0x1def7c['eventType']??'','eventTimestamp':this['_timestamp'],'payload':{'location':this['_location'],..._0x4b3e59}};}['_excludedEvents'](_0x242e8a){return!(!_0x242e8a||![EventType['CHANGE'],EventType['COMMON_UPLOAD_PROGRESS'],EventType['FILE_ADDED'],EventType['FILE_REMOVED'],EventType['FILE_UPLOAD_START'],EventType['FILE_UPLOAD_PROGRESS'],EventType['FILE_UPLOAD_SUCCESS'],EventType['FILE_UPLOAD_FAILED']]['includes'](_0x242e8a));}['sendEvent'](_0x3a7487){const _0x116a3b=this['_formattingPayload']({'eventType':_0x3a7487['eventType'],'payload':_0x3a7487['payload'],'config':_0x3a7487['config']});this['_init'](_0x3a7487['eventType']);if(this['_excludedEvents'](_0x3a7487['eventType']))return;this['_lastPayload']&&this['_checkObj'](this['_lastPayload'],_0x116a3b)||this['_queue']['add'](async()=>{this['_lastPayload']=_0x116a3b,await this['_telemetryInstance']['sendEvent'](_0x116a3b);});}['sendEventError'](_0x454233,_0x19ec5e='unknown'){this['sendEvent']({'eventType':InternalEventType['ERROR_EVENT'],'payload':{'metadata':{'event':'error','text':'Error\x20in\x20'+_0x19ec5e,'error':_0x454233['message']}}});}['sendEventCloudImageEditor'](_0x13cf93,_0x595f96,_0x14d0b4={}){this['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'tabId':_0x595f96,'node':_0x13cf93['currentTarget']?.['tagName'],'event':_0x13cf93['type'],..._0x14d0b4}}});}['_checkObj'](_0x5c82fe,_0x196870){if(JSON['stringify'](_0x5c82fe)===JSON['stringify'](_0x196870))return!0x0;if('object'!=typeof _0x5c82fe||'object'!=typeof _0x196870||null==_0x5c82fe||null==_0x196870)return!0x1;const _0x5e7450=Object['keys'](_0x5c82fe),_0x5f4852=Object['keys'](_0x196870);if(_0x5e7450['length']!==_0x5f4852['length'])return!0x1;for(const _0x83bde4 of _0x5e7450){if(!Object['hasOwn'](_0x196870,_0x83bde4))return!0x1;if(!this['_checkObj'](_0x5c82fe[_0x83bde4],_0x196870[_0x83bde4]))return!0x1;}return!0x0;}get['_timestamp'](){return Date['now']();}get['_solution'](){if(!this['_block']['has']('*solution'))return null;const _0x39d4f1=this['_block']['$']['*solution'];return _0x39d4f1?_0x39d4f1['toLowerCase']():null;}get['_activity'](){return this['_block']['has']('*currentActivity')?this['_block']['$']['*currentActivity']??null:null;}get['_location'](){return location['origin'];}},sharedConfigKey=_0xfb98fd=>'*cfg/'+_0xfb98fd;function testModeProcessor(_0xf7e2f3,_0x116696){const _0x550d8c=_0xf7e2f3['querySelectorAll']('[data-testid]');if(0x0===_0x550d8c['length'])return;const _0xe4c4f8=new WeakMap();for(const _0x4fd62f of _0x550d8c){const _0x2f8879=_0x4fd62f['getAttribute']('data-testid');_0x2f8879&&_0xe4c4f8['set'](_0x4fd62f,_0x2f8879);}_0x116696['subConfigValue']('testMode',_0x5907c3=>{if(!_0x5907c3){for(const _0x1e43de of _0x550d8c)_0x1e43de['removeAttribute']('data-testid');return;}const _0x4c27e5=_0x116696['testId'];for(const _0x5744be of _0x550d8c){const _0x1b8c10=_0xe4c4f8['get'](_0x5744be);_0x1b8c10&&_0x5744be['setAttribute']('data-testid',_0x4c27e5+'--'+_0x1b8c10);}});}var TAG_PREFIX='uc-',Block=class extends BaseComponent{['__cfgProxy'];['l10nProcessorSubs']=new Map();static ['StateConsumerScope']=null;static ['styleAttrs']=[];['requireCtxName']=!0x1;['activityType']=null;['init$']=blockCtx();['l10n'](_0x46e809,_0x3e46b4={}){if(!_0x46e809)return'';const _0x34ead7=this['$'][localeStateKey(_0x46e809)]||_0x46e809,_0x3d6471=getPluralObjects(_0x34ead7);for(const _0x104710 of _0x3d6471)_0x3e46b4[_0x104710['variable']]=this['pluralize'](_0x104710['pluralKey'],Number(_0x3e46b4[_0x104710['countVariable']]));return applyTemplateData(_0x34ead7,_0x3e46b4);}['pluralize'](_0x5400d4,_0x450325){const _0xde10cb=this['l10n']('locale-id')||'en',_0x4666c8=getPluralForm(_0xde10cb,_0x450325);return this['l10n'](_0x5400d4+'__'+_0x4666c8);}['bindL10n'](_0x39f5f5,_0x2f880d){this['localeManager']?.['bindL10n'](this,_0x39f5f5,_0x2f880d);}constructor(){super(),this['addTemplateProcessor'](l10nProcessor),this['addTemplateProcessor'](testModeProcessor);}['emit'](_0x2c4728,_0x515c61,_0x3a2bab){const _0xcb4ac7=this['has']('*eventEmitter')?this['$']['*eventEmitter']:void 0x0;_0xcb4ac7&&(_0xcb4ac7['emit'](_0x2c4728,_0x515c61,_0x3a2bab),this['telemetryManager']['sendEvent']({'eventType':_0x2c4728,'payload':'function'==typeof _0x515c61?_0x515c61():_0x515c61}));}['hasBlockInCtx'](_0x1b7729){for(const _0x24e222 of this['blocksRegistry'])if(_0x1b7729(_0x24e222))return!0x0;return!0x1;}['setOrAddState'](_0x13c0b9,_0x58b6f7){this['add$']({[_0x13c0b9]:_0x58b6f7},!0x0);}['connectedCallback'](){this['constructor']['styleAttrs']['forEach'](_0x269433=>{this['setAttribute'](_0x269433,'');}),this['hasAttribute']('retpl')&&(this['constructor']['template']=null,this['processInnerHtml']=!0x0),this['requireCtxName']?waitForAttribute({'element':this,'attribute':'ctx-name','onSuccess':()=>{super['connectedCallback']();},'onTimeout':()=>{console['error']('Attribute\x20`ctx-name`\x20is\x20required\x20and\x20it\x20is\x20not\x20set.');}}):super['connectedCallback'](),WindowHeightTracker['registerClient'](this);}['disconnectedCallback'](){super['disconnectedCallback'](),WindowHeightTracker['unregisterClient'](this);}['initCallback'](){this['has']('*blocksRegistry')||this['add']('*blocksRegistry',new Set()),(this['$']['*blocksRegistry']['add'](this),this['has']('*eventEmitter')||this['add']('*eventEmitter',new EventEmitter(this['debugPrint']['bind'](this))),this['has']('*localeManager')||this['add']('*localeManager',new LocaleManager(this)),this['cfg']['qualityInsights']&&!this['has']('*telemetryManager')&&this['add']('*telemetryManager',new TelemetryManager(this)),this['has']('*a11y')||this['add']('*a11y',new A11y()),this['has']('*modalManager')||this['add']('*modalManager',new ModalManager(this)),this['sub'](localeStateKey('locale-id'),_0x80d93=>{const _0x57627e=getLocaleDirection(_0x80d93);this['style']['direction']='ltr'===_0x57627e?'':_0x57627e;}),this['subConfigValue']('testMode',_0x4a156f=>{_0x4a156f&&this['testId']?this['setAttribute']('data-testid',this['testId']):this['removeAttribute']('data-testid');}));}get['testId'](){return window['customElements']['getName'](this['constructor']);}get['modalManager'](){return this['has']('*modalManager')?this['$']['*modalManager']:void 0x0;}get['telemetryManager'](){return this['cfg']['qualityInsights']?this['has']('*telemetryManager')&&this['$']['*telemetryManager']:{'sendEvent':()=>{},'sendEventCloudImageEditor':()=>{},'sendEventError':()=>{}};}get['localeManager'](){return this['has']('*localeManager')?this['$']['*localeManager']:null;}get['a11y'](){return this['has']('*a11y')?this['$']['*a11y']:null;}get['blocksRegistry'](){return this['$']['*blocksRegistry'];}['destroyCallback'](){super['destroyCallback']();const _0xf4c25=this['blocksRegistry'];_0xf4c25?.['delete'](this),this['localeManager']?.['destroyL10nBindings'](this),this['l10nProcessorSubs']=new Map(),Data['deleteCtx'](this),0x0===_0xf4c25?.['size']&&setTimeout(()=>{this['destroyCtxCallback']();},0x0);}['destroyCtxCallback'](){Data['deleteCtx'](this['ctxName']),this['localeManager']?.['destroy'](),this['modalManager']?.['destroy']();}async['proxyUrl'](_0x5f5a81){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'](_0x5f5a81,{'uuid':extractUuid(_0x5f5a81),'cdnUrlModifiers':extractCdnUrlModifiers(_0x5f5a81),'fileName':extractFilename(_0x5f5a81)});}catch(_0x53d4a0){return console['error']('Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.',_0x53d4a0),this['telemetryManager']['sendEventError'](_0x53d4a0,'secureDeliveryProxyUrlResolver.\x20Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.'),_0x5f5a81;}return this['cfg']['secureDeliveryProxy']?applyTemplateData(this['cfg']['secureDeliveryProxy'],{'previewUrl':_0x5f5a81},{'transform':_0x4488c5=>window['encodeURIComponent'](_0x4488c5)}):_0x5f5a81;}get['cfg'](){if(!this['__cfgProxy']){const _0x18732d=Object['create'](null);this['__cfgProxy']=new Proxy(_0x18732d,{'set':(_0x3deee2,_0x45c29a,_0x23645c)=>{if('string'!=typeof _0x45c29a)return!0x1;const _0x22b447=sharedConfigKey(_0x45c29a);return this['has'](_0x22b447)||this['add'](_0x22b447,initialConfig[_0x45c29a]),this['$'][_0x22b447]=_0x23645c,!0x0;},'get':(_0x3c997c,_0x301c55)=>{const _0x5dc5bf=sharedConfigKey(_0x301c55);return this['has'](_0x5dc5bf)||this['add'](_0x5dc5bf,initialConfig[_0x301c55]),this['$'][sharedConfigKey(_0x301c55)];}});}return this['__cfgProxy'];}['subConfigValue'](_0xb16073,_0x2d6f64){const _0x17ad42=sharedConfigKey(_0xb16073);this['has'](_0x17ad42)||this['add'](_0x17ad42,initialConfig[_0xb16073]),this['sub'](_0x17ad42,_0x2d6f64);}['debugPrint'](..._0x7a06d9){if(!this['cfg']['debug'])return;let _0x507ccc=_0x7a06d9;'function'==typeof _0x7a06d9?.[0x0]&&(_0x507ccc=(0x0,_0x7a06d9[0x0])()),console['log']('['+this['ctxName']+']',..._0x507ccc);}static['reg'](_0x21b41b){_0x21b41b?_0x21b41b['startsWith'](TAG_PREFIX)&&super['reg'](_0x21b41b):super['reg']();}},ACTIVE_ATTR='active',ACTIVE_PROP='___ACTIVITY_IS_ACTIVE___',ActivityBlock=class e extends Block{['historyTracked']=!0x1;[ACTIVE_PROP];['init$']=activityBlockCtx(this);['_debouncedHistoryFlush']=debounce(this['_historyFlush']['bind'](this),0xa);['_deactivate'](){const _0x1b9cc8=e['_activityCallbacks']['get'](this);this[ACTIVE_PROP]=!0x1,this['removeAttribute'](ACTIVE_ATTR),_0x1b9cc8?.['deactivateCallback']?.();}['_activate'](){const _0x3df712=e['_activityCallbacks']['get'](this);this['$']['*historyBack']=this['historyBack']['bind'](this),this[ACTIVE_PROP]=!0x0,this['setAttribute'](ACTIVE_ATTR,''),_0x3df712?.['activateCallback']?.(),this['_debouncedHistoryFlush'](),this['emit'](EventType['ACTIVITY_CHANGE'],{'activity':this['activityType']});}['initCallback'](){super['initCallback'](),this['activityType']&&(this['hasAttribute']('activity')||this['setAttribute']('activity',this['activityType']),this['sub']('*currentActivity',_0x3aead2=>{try{this['activityType']!==_0x3aead2&&this[ACTIVE_PROP]?this['_deactivate']():this['activityType']!==_0x3aead2||this[ACTIVE_PROP]||this['_activate']();}catch(_0x234711){this['telemetryManager']['sendEventError'](_0x234711,'activity\x20\x22'+this['activityType']+'\x22'),console['error']('Error\x20in\x20activity\x20\x22'+this['activityType']+'\x22.\x20',_0x234711),this['$']['*currentActivity']=this['$']['*history'][this['$']['*history']['length']-0x1]??null;}_0x3aead2||(this['$']['*history']=[]);}));}['_historyFlush'](){let _0x3b91c5=this['$']['*history'];_0x3b91c5&&(_0x3b91c5['length']>0xa&&(_0x3b91c5=_0x3b91c5['slice'](_0x3b91c5['length']-0xb,_0x3b91c5['length']-0x1)),this['historyTracked']&&_0x3b91c5[_0x3b91c5['length']-0x1]!==this['activityType']&&_0x3b91c5['push'](this['activityType']),this['$']['*history']=_0x3b91c5);}['_isActivityRegistered'](){return!!this['activityType']&&e['_activityCallbacks']['has'](this);}static ['_activityCallbacks']=new Map();static ['activities'];get['isActivityActive'](){return!!this[ACTIVE_PROP];}get['couldOpenActivity'](){return!0x0;}['registerActivity'](_0x1ed863,_0xbfdba5={}){const {onActivate:_0x3b9ec5,onDeactivate:_0x43ed18}=_0xbfdba5;e['_activityCallbacks']['set'](this,{'activateCallback':_0x3b9ec5,'deactivateCallback':_0x43ed18});}['unregisterActivity'](){this['isActivityActive']&&this['_deactivate'](),e['_activityCallbacks']['delete'](this);}['destroyCallback'](){super['destroyCallback'](),this['_isActivityRegistered']()&&this['unregisterActivity']();const _0x46ca85=this['$']['*currentActivity'];!![...this['blocksRegistry']]['find'](_0x2a323c=>_0x2a323c instanceof e&&_0x2a323c['activityType']===_0x46ca85)||(this['$']['*currentActivity']=null,this['modalManager']?.['closeAll']());}get['activityKey'](){return this['ctxName']+this['activityType'];}get['activityParams'](){return this['$']['*currentActivityParams'];}get['initActivity'](){return this['getCssData']('--cfg-init-activity');}get['doneActivity'](){return this['getCssData']('--cfg-done-activity');}['historyBack'](){const _0x49f4d1=this['$']['*history'];if(_0x49f4d1){let _0x503863=_0x49f4d1['pop']();for(;_0x503863===this['activityType'];)_0x503863=_0x49f4d1['pop']();let _0x30a282=!!_0x503863;if(_0x503863){const _0x100778=[...this['blocksRegistry']]['find'](_0x13f62f=>_0x13f62f['activityType']===_0x503863);_0x30a282=_0x100778?.['couldOpenActivity']??!0x1;}_0x503863=_0x30a282?_0x503863:void 0x0,_0x503863&&this['modalManager']?.['open'](_0x503863),this['$']['*currentActivity']=_0x503863,this['$']['*history']=_0x49f4d1,_0x503863||this['modalManager']?.['closeAll']();}}};function defineComponents(_0x26d1c0){for(const _0x5c4e34 in _0x26d1c0){let _0x4863de=[..._0x5c4e34]['reduce']((_0x4a5f18,_0x3e6ce3)=>(_0x3e6ce3['toUpperCase']()===_0x3e6ce3&&(_0x3e6ce3='-'+_0x3e6ce3['toLowerCase']()),_0x4a5f18+=_0x3e6ce3),'');_0x4863de['startsWith']('-')&&(_0x4863de=_0x4863de['replace']('-','')),_0x4863de['startsWith']('uc-')||(_0x4863de='uc-'+_0x4863de),_0x26d1c0[_0x5c4e34]['reg']&&_0x26d1c0[_0x5c4e34]['reg'](_0x4863de);}}ActivityBlock['activities']=Object['freeze']({'START_FROM':'start-from','CAMERA':'camera','DRAW':'draw','UPLOAD_LIST':'upload-list','URL':'url','CLOUD_IMG_EDIT':'cloud-image-edit','EXTERNAL':'external'});var UC_WINDOW_KEY='UC';function loadFileUploaderFrom(_0x394991,_0x459c94=!0x1){return new Promise((_0x67482b,_0x475885)=>{if('object'!=typeof document)return void _0x67482b(null);if('object'==typeof window&&window[UC_WINDOW_KEY])return void _0x67482b(window[UC_WINDOW_KEY]);const _0x3553c5=document['createElement']('script');_0x3553c5['async']=!0x0,_0x3553c5['src']=_0x394991,_0x3553c5['onerror']=()=>{_0x475885();},_0x3553c5['onload']=()=>{const _0x2d95f8=window[UC_WINDOW_KEY];_0x459c94&&defineComponents(_0x2d95f8),_0x67482b(_0x2d95f8);},document['head']['appendChild'](_0x3553c5);});}var svg_sprite_default='<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>',SolutionBlock=class extends Block{static ['styleAttrs']=['uc-wgt-common'];['requireCtxName']=!0x0;['init$']=solutionBlockCtx(this);static ['_template']='';['initCallback'](){super['initCallback'](),this['a11y']?.['registerBlock'](this);}static set['template'](_0x13ce35){this['_template']=svg_sprite_default+_0x13ce35+'<slot></slot>';}static get['template'](){return this['_template'];}},CROP_PADDING=0x14,THUMB_CORNER_SIZE=0x18,THUMB_SIDE_SIZE=0x22,THUMB_STROKE_WIDTH=0x3,THUMB_OFFSET=THUMB_STROKE_WIDTH/0x2,GUIDE_STROKE_WIDTH=0x1,GUIDE_THIRD=0x64/0x3,MIN_CROP_SIZE=0x1,MAX_INTERACTION_SIZE=0x18,MIN_INTERACTION_SIZE=0x6;function setSvgNodeAttrs(_0x103d09,_0x31e913){for(const [_0x247e2e,_0x3e809a]of Object['entries'](_0x31e913))_0x103d09['setAttributeNS'](null,_0x247e2e,_0x3e809a['toString']());}function createSvgNode(_0x481ae4,_0x527a1d={}){const _0xe9f1a=document['createElementNS']('http://www.w3.org/2000/svg',_0x481ae4);return setSvgNodeAttrs(_0xe9f1a,_0x527a1d),_0xe9f1a;}function cornerPath(_0x5eb351,_0x58adf1,_0x492dfb){const {x:_0x18a229,y:_0x5c9a5f,width:_0x3d4639,height:_0x132969}=_0x5eb351,_0x278eb0=_0x58adf1['includes']('w')?0x0:0x1,_0x11ab62=_0x58adf1['includes']('n')?0x0:0x1,_0x44f03c=0x0===_0x278eb0?-0x1:0x1,_0x24b516=0x0===_0x11ab62?-0x1:0x1,_0x4902e7=[_0x18a229+_0x278eb0*_0x3d4639+THUMB_OFFSET*_0x44f03c,_0x5c9a5f+_0x11ab62*_0x132969+THUMB_OFFSET*_0x24b516-THUMB_CORNER_SIZE*_0x492dfb*_0x24b516],_0x2e2e1f=[_0x18a229+_0x278eb0*_0x3d4639+THUMB_OFFSET*_0x44f03c,_0x5c9a5f+_0x11ab62*_0x132969+THUMB_OFFSET*_0x24b516],_0x58a61e=[_0x18a229+_0x278eb0*_0x3d4639-THUMB_CORNER_SIZE*_0x492dfb*_0x44f03c+THUMB_OFFSET*_0x44f03c,_0x5c9a5f+_0x11ab62*_0x132969+THUMB_OFFSET*_0x24b516];return{'d':'M\x20'+_0x4902e7[0x0]+'\x20'+_0x4902e7[0x1]+'\x20L\x20'+_0x2e2e1f[0x0]+'\x20'+_0x2e2e1f[0x1]+'\x20L\x20'+_0x58a61e[0x0]+'\x20'+_0x58a61e[0x1],'center':[_0x2e2e1f[0x0],_0x2e2e1f[0x1]]};}function sidePath(_0x3edf8a,_0x30f2db,_0x27de8b){const {x:_0x21dc4c,y:_0x54045a,width:_0x4994c5,height:_0x23ed9c}=_0x3edf8a,_0x11397d='n'===_0x30f2db||'s'===_0x30f2db,_0x118ae6=_0x11397d?0.5:'w'===_0x30f2db?0x0:0x1,_0x3720cc='w'===_0x30f2db||'e'===_0x30f2db?0.5:'n'===_0x30f2db?0x0:0x1,_0x2c2ba9='w'===_0x30f2db?-0x1:'e'===_0x30f2db?0x1:0x0,_0x5ac122='n'===_0x30f2db?-0x1:'s'===_0x30f2db?0x1:0x0;let _0x423149,_0x222a4f;return _0x11397d?(_0x423149=[_0x21dc4c+_0x118ae6*_0x4994c5-THUMB_SIDE_SIZE*_0x27de8b/0x2,_0x54045a+_0x3720cc*_0x23ed9c+THUMB_OFFSET*_0x5ac122],_0x222a4f=[_0x21dc4c+_0x118ae6*_0x4994c5+THUMB_SIDE_SIZE*_0x27de8b/0x2,_0x54045a+_0x3720cc*_0x23ed9c+THUMB_OFFSET*_0x5ac122]):(_0x423149=[_0x21dc4c+_0x118ae6*_0x4994c5+THUMB_OFFSET*_0x2c2ba9,_0x54045a+_0x3720cc*_0x23ed9c-THUMB_SIDE_SIZE*_0x27de8b/0x2],_0x222a4f=[_0x21dc4c+_0x118ae6*_0x4994c5+THUMB_OFFSET*_0x2c2ba9,_0x54045a+_0x3720cc*_0x23ed9c+THUMB_SIDE_SIZE*_0x27de8b/0x2]),{'d':'M\x20'+_0x423149[0x0]+'\x20'+_0x423149[0x1]+'\x20L\x20'+_0x222a4f[0x0]+'\x20'+_0x222a4f[0x1],'center':[(_0x423149[0x0]+_0x222a4f[0x0])/0x2,(_0x423149[0x1]+_0x222a4f[0x1])/0x2]};}function thumbCursor(_0x329ab6){return''===_0x329ab6?'move':['e','w']['includes'](_0x329ab6)?'ew-resize':['n','s']['includes'](_0x329ab6)?'ns-resize':['nw','se']['includes'](_0x329ab6)?'nwse-resize':'nesw-resize';}function moveRect({rect:_0x10bee5,delta:[_0x34fdd5,_0x251221],imageBox:_0x44e304}){return constraintRect({..._0x10bee5,'x':_0x10bee5['x']+_0x34fdd5,'y':_0x10bee5['y']+_0x251221},_0x44e304);}function constraintRect(_0x172249,_0x3d80d6){let {x:_0x464fbb}=_0x172249,{y:_0x2c41ec}=_0x172249;return _0x172249['x']<_0x3d80d6['x']?_0x464fbb=_0x3d80d6['x']:_0x172249['x']+_0x172249['width']>_0x3d80d6['x']+_0x3d80d6['width']&&(_0x464fbb=_0x3d80d6['x']+_0x3d80d6['width']-_0x172249['width']),_0x172249['y']<_0x3d80d6['y']?_0x2c41ec=_0x3d80d6['y']:_0x172249['y']+_0x172249['height']>_0x3d80d6['y']+_0x3d80d6['height']&&(_0x2c41ec=_0x3d80d6['y']+_0x3d80d6['height']-_0x172249['height']),{..._0x172249,'x':_0x464fbb,'y':_0x2c41ec};}function resizeNorth({rect:_0xc8e931,delta:_0x303857,aspectRatio:_0x500d39,imageBox:_0x4b74ad}){const [,_0x5a544e]=_0x303857;let {y:_0x56ab7c,width:_0x5a946c,height:_0x5964a0}=_0xc8e931;_0x56ab7c+=_0x5a544e,_0x5964a0-=_0x5a544e,_0x500d39&&(_0x5a946c=_0x5964a0*_0x500d39);let _0x51d2cf=_0xc8e931['x']+_0xc8e931['width']/0x2-_0x5a946c/0x2;return _0x56ab7c<=_0x4b74ad['y']&&(_0x56ab7c=_0x4b74ad['y'],_0x5964a0=_0xc8e931['y']+_0xc8e931['height']-_0x56ab7c,_0x500d39&&(_0x5a946c=_0x5964a0*_0x500d39,_0x51d2cf=_0xc8e931['x']+_0xc8e931['width']/0x2-_0x5a946c/0x2)),_0x51d2cf<=_0x4b74ad['x']&&(_0x51d2cf=_0x4b74ad['x'],_0x56ab7c=_0xc8e931['y']+_0xc8e931['height']-_0x5964a0),_0x51d2cf+_0x5a946c>=_0x4b74ad['x']+_0x4b74ad['width']&&(_0x51d2cf=Math['max'](_0x4b74ad['x'],_0x4b74ad['x']+_0x4b74ad['width']-_0x5a946c),_0x5a946c=_0x4b74ad['x']+_0x4b74ad['width']-_0x51d2cf,_0x500d39&&(_0x5964a0=_0x5a946c/_0x500d39),_0x56ab7c=_0xc8e931['y']+_0xc8e931['height']-_0x5964a0),_0x5964a0<MIN_CROP_SIZE&&(_0x5964a0=MIN_CROP_SIZE,_0x500d39&&(_0x5a946c=_0x5964a0*_0x500d39,_0x51d2cf=_0xc8e931['x']+_0xc8e931['width']/0x2-_0x5a946c/0x2),_0x56ab7c=_0xc8e931['y']+_0xc8e931['height']-_0x5964a0),_0x5a946c<MIN_CROP_SIZE&&(_0x5a946c=MIN_CROP_SIZE,_0x500d39&&(_0x5964a0=_0x5a946c/_0x500d39,_0x51d2cf=_0xc8e931['x']+_0xc8e931['width']/0x2-_0x5a946c/0x2),_0x56ab7c=_0xc8e931['y']+_0xc8e931['height']-_0x5964a0),{'x':_0x51d2cf,'y':_0x56ab7c,'width':_0x5a946c,'height':_0x5964a0};}function resizeWest({rect:_0x1d1d23,delta:_0x4d44a6,aspectRatio:_0x257e62,imageBox:_0x34b55c}){const [_0x2d0959]=_0x4d44a6;let {x:_0x209597,width:_0xe74292,height:_0x42059b}=_0x1d1d23;_0x209597+=_0x2d0959,_0xe74292-=_0x2d0959,_0x257e62&&(_0x42059b=_0xe74292/_0x257e62);let _0x2dceaf=_0x1d1d23['y']+_0x1d1d23['height']/0x2-_0x42059b/0x2;return _0x209597<=_0x34b55c['x']&&(_0x209597=_0x34b55c['x'],_0xe74292=_0x1d1d23['x']+_0x1d1d23['width']-_0x209597,_0x257e62&&(_0x42059b=_0xe74292/_0x257e62,_0x2dceaf=_0x1d1d23['y']+_0x1d1d23['height']/0x2-_0x42059b/0x2)),_0x2dceaf<=_0x34b55c['y']&&(_0x2dceaf=_0x34b55c['y'],_0x209597=_0x1d1d23['x']+_0x1d1d23['width']-_0xe74292),_0x2dceaf+_0x42059b>=_0x34b55c['y']+_0x34b55c['height']&&(_0x2dceaf=Math['max'](_0x34b55c['y'],_0x34b55c['y']+_0x34b55c['height']-_0x42059b),_0x42059b=_0x34b55c['y']+_0x34b55c['height']-_0x2dceaf,_0x257e62&&(_0xe74292=_0x42059b*_0x257e62),_0x209597=_0x1d1d23['x']+_0x1d1d23['width']-_0xe74292),_0x42059b<MIN_CROP_SIZE&&(_0x42059b=MIN_CROP_SIZE,_0x257e62&&(_0xe74292=_0x42059b*_0x257e62),_0x2dceaf=_0x1d1d23['y']+_0x1d1d23['height']/0x2-_0x42059b/0x2,_0x209597=_0x1d1d23['x']+_0x1d1d23['width']-_0xe74292),_0xe74292<MIN_CROP_SIZE&&(_0xe74292=MIN_CROP_SIZE,_0x257e62&&(_0x42059b=_0xe74292/_0x257e62),_0x2dceaf=_0x1d1d23['y']+_0x1d1d23['height']/0x2-_0x42059b/0x2,_0x209597=_0x1d1d23['x']+_0x1d1d23['width']-_0xe74292),{'x':_0x209597,'y':_0x2dceaf,'width':_0xe74292,'height':_0x42059b};}function resizeSouth({rect:_0x52d1b3,delta:_0x1ea17b,aspectRatio:_0x41aca1,imageBox:_0x49288b}){const [,_0x8c574c]=_0x1ea17b;let {y:_0x5ad21e,width:_0x129d83,height:_0x1edc30}=_0x52d1b3;_0x1edc30+=_0x8c574c,_0x41aca1&&(_0x129d83=_0x1edc30*_0x41aca1);let _0x29e82a=_0x52d1b3['x']+_0x52d1b3['width']/0x2-_0x129d83/0x2;return _0x5ad21e+_0x1edc30>=_0x49288b['y']+_0x49288b['height']&&(_0x1edc30=_0x49288b['y']+_0x49288b['height']-_0x5ad21e,_0x41aca1&&(_0x129d83=_0x1edc30*_0x41aca1),_0x29e82a=_0x52d1b3['x']+_0x52d1b3['width']/0x2-_0x129d83/0x2),_0x29e82a<=_0x49288b['x']&&(_0x29e82a=_0x49288b['x'],_0x5ad21e=_0x52d1b3['y']),_0x29e82a+_0x129d83>=_0x49288b['x']+_0x49288b['width']&&(_0x29e82a=Math['max'](_0x49288b['x'],_0x49288b['x']+_0x49288b['width']-_0x129d83),_0x129d83=_0x49288b['x']+_0x49288b['width']-_0x29e82a,_0x41aca1&&(_0x1edc30=_0x129d83/_0x41aca1),_0x5ad21e=_0x52d1b3['y']),_0x1edc30<MIN_CROP_SIZE&&(_0x1edc30=MIN_CROP_SIZE,_0x41aca1&&(_0x129d83=_0x1edc30*_0x41aca1),_0x29e82a=_0x52d1b3['x']+_0x52d1b3['width']/0x2-_0x129d83/0x2),_0x129d83<MIN_CROP_SIZE&&(_0x129d83=MIN_CROP_SIZE,_0x41aca1&&(_0x1edc30=_0x129d83/_0x41aca1),_0x29e82a=_0x52d1b3['x']+_0x52d1b3['width']/0x2-_0x129d83/0x2),{'x':_0x29e82a,'y':_0x5ad21e,'width':_0x129d83,'height':_0x1edc30};}function resizeEast({rect:_0x27450e,delta:_0x19194c,aspectRatio:_0x121001,imageBox:_0x26d6f2}){const [_0x117573]=_0x19194c;let {x:_0x39b8e6,width:_0x2a9595,height:_0x30a830}=_0x27450e;_0x2a9595+=_0x117573,_0x121001&&(_0x30a830=_0x2a9595/_0x121001);let _0x2a5b0d=_0x27450e['y']+_0x27450e['height']/0x2-_0x30a830/0x2;return _0x39b8e6+_0x2a9595>=_0x26d6f2['x']+_0x26d6f2['width']&&(_0x2a9595=_0x26d6f2['x']+_0x26d6f2['width']-_0x39b8e6,_0x121001&&(_0x30a830=_0x2a9595/_0x121001),_0x2a5b0d=_0x27450e['y']+_0x27450e['height']/0x2-_0x30a830/0x2),_0x2a5b0d<=_0x26d6f2['y']&&(_0x2a5b0d=_0x26d6f2['y'],_0x39b8e6=_0x27450e['x']),_0x2a5b0d+_0x30a830>=_0x26d6f2['y']+_0x26d6f2['height']&&(_0x2a5b0d=Math['max'](_0x26d6f2['y'],_0x26d6f2['y']+_0x26d6f2['height']-_0x30a830),_0x30a830=_0x26d6f2['y']+_0x26d6f2['height']-_0x2a5b0d,_0x121001&&(_0x2a9595=_0x30a830*_0x121001),_0x39b8e6=_0x27450e['x']),_0x30a830<MIN_CROP_SIZE&&(_0x30a830=MIN_CROP_SIZE,_0x121001&&(_0x2a9595=_0x30a830*_0x121001),_0x2a5b0d=_0x27450e['y']+_0x27450e['height']/0x2-_0x30a830/0x2),_0x2a9595<MIN_CROP_SIZE&&(_0x2a9595=MIN_CROP_SIZE,_0x121001&&(_0x30a830=_0x2a9595/_0x121001),_0x2a5b0d=_0x27450e['y']+_0x27450e['height']/0x2-_0x30a830/0x2),{'x':_0x39b8e6,'y':_0x2a5b0d,'width':_0x2a9595,'height':_0x30a830};}function resizeNorthWest({rect:_0x26add3,delta:_0x4dc8f7,aspectRatio:_0x1d5341,imageBox:_0x1d1118}){let [_0x193da8,_0x2f2343]=_0x4dc8f7,{x:_0x4dbd72,y:_0x5368af,width:_0xb89477,height:_0x1c8ffc}=_0x26add3;return _0x4dbd72+_0x193da8<_0x1d1118['x']&&(_0x193da8=_0x1d1118['x']-_0x4dbd72),_0x5368af+_0x2f2343<_0x1d1118['y']&&(_0x2f2343=_0x1d1118['y']-_0x5368af),_0x4dbd72+=_0x193da8,_0xb89477-=_0x193da8,_0x5368af+=_0x2f2343,_0x1c8ffc-=_0x2f2343,_0x1d5341&&Math['abs'](_0xb89477/_0x1c8ffc)>_0x1d5341?(_0x2f2343=_0xb89477/_0x1d5341-_0x1c8ffc,_0x1c8ffc+=_0x2f2343,_0x5368af-=_0x2f2343,_0x5368af<=_0x1d1118['y']&&(_0x1c8ffc-=_0x1d1118['y']-_0x5368af,_0xb89477=_0x1c8ffc*_0x1d5341,_0x4dbd72=_0x26add3['x']+_0x26add3['width']-_0xb89477,_0x5368af=_0x1d1118['y'])):_0x1d5341&&(_0x193da8=_0x1c8ffc*_0x1d5341-_0xb89477,_0xb89477+=_0x193da8,_0x4dbd72-=_0x193da8,_0x4dbd72<=_0x1d1118['x']&&(_0xb89477-=_0x1d1118['x']-_0x4dbd72,_0x1c8ffc=_0xb89477/_0x1d5341,_0x4dbd72=_0x1d1118['x'],_0x5368af=_0x26add3['y']+_0x26add3['height']-_0x1c8ffc)),_0x1c8ffc<MIN_CROP_SIZE&&(_0x1c8ffc=MIN_CROP_SIZE,_0x1d5341&&(_0xb89477=_0x1c8ffc*_0x1d5341),_0x4dbd72=_0x26add3['x']+_0x26add3['width']-_0xb89477,_0x5368af=_0x26add3['y']+_0x26add3['height']-_0x1c8ffc),_0xb89477<MIN_CROP_SIZE&&(_0xb89477=MIN_CROP_SIZE,_0x1d5341&&(_0x1c8ffc=_0xb89477/_0x1d5341),_0x4dbd72=_0x26add3['x']+_0x26add3['width']-_0xb89477,_0x5368af=_0x26add3['y']+_0x26add3['height']-_0x1c8ffc),{'x':_0x4dbd72,'y':_0x5368af,'width':_0xb89477,'height':_0x1c8ffc};}function resizeNorthEast({rect:_0x2c39c7,delta:_0xa22dfb,aspectRatio:_0x56efa6,imageBox:_0x1c0b33}){let [_0x38267c,_0x2f3df1]=_0xa22dfb,{x:_0x43780d,y:_0x8efff8,width:_0x33100c,height:_0x2b724a}=_0x2c39c7;return _0x43780d+_0x33100c+_0x38267c>_0x1c0b33['x']+_0x1c0b33['width']&&(_0x38267c=_0x1c0b33['x']+_0x1c0b33['width']-_0x43780d-_0x33100c),_0x8efff8+_0x2f3df1<_0x1c0b33['y']&&(_0x2f3df1=_0x1c0b33['y']-_0x8efff8),_0x33100c+=_0x38267c,_0x8efff8+=_0x2f3df1,_0x2b724a-=_0x2f3df1,_0x56efa6&&Math['abs'](_0x33100c/_0x2b724a)>_0x56efa6?(_0x2f3df1=_0x33100c/_0x56efa6-_0x2b724a,_0x2b724a+=_0x2f3df1,_0x8efff8-=_0x2f3df1,_0x8efff8<=_0x1c0b33['y']&&(_0x2b724a-=_0x1c0b33['y']-_0x8efff8,_0x33100c=_0x2b724a*_0x56efa6,_0x43780d=_0x2c39c7['x'],_0x8efff8=_0x1c0b33['y'])):_0x56efa6&&(_0x38267c=_0x2b724a*_0x56efa6-_0x33100c,_0x33100c+=_0x38267c,_0x43780d+_0x33100c>=_0x1c0b33['x']+_0x1c0b33['width']&&(_0x33100c=_0x1c0b33['x']+_0x1c0b33['width']-_0x43780d,_0x2b724a=_0x33100c/_0x56efa6,_0x43780d=_0x1c0b33['x']+_0x1c0b33['width']-_0x33100c,_0x8efff8=_0x2c39c7['y']+_0x2c39c7['height']-_0x2b724a)),_0x2b724a<MIN_CROP_SIZE&&(_0x2b724a=MIN_CROP_SIZE,_0x56efa6&&(_0x33100c=_0x2b724a*_0x56efa6),_0x8efff8=_0x2c39c7['y']+_0x2c39c7['height']-_0x2b724a),_0x33100c<MIN_CROP_SIZE&&(_0x33100c=MIN_CROP_SIZE,_0x56efa6&&(_0x2b724a=_0x33100c/_0x56efa6),_0x8efff8=_0x2c39c7['y']+_0x2c39c7['height']-_0x2b724a),{'x':_0x43780d,'y':_0x8efff8,'width':_0x33100c,'height':_0x2b724a};}function resizeSouthWest({rect:_0x5ac807,delta:_0xecb4c3,aspectRatio:_0x2e84b6,imageBox:_0x5cfa09}){let [_0x3f0230,_0x490413]=_0xecb4c3,{x:_0x29d575,y:_0x44402c,width:_0x2738f6,height:_0x350f18}=_0x5ac807;return _0x29d575+_0x3f0230<_0x5cfa09['x']&&(_0x3f0230=_0x5cfa09['x']-_0x29d575),_0x44402c+_0x350f18+_0x490413>_0x5cfa09['y']+_0x5cfa09['height']&&(_0x490413=_0x5cfa09['y']+_0x5cfa09['height']-_0x44402c-_0x350f18),_0x29d575+=_0x3f0230,_0x2738f6-=_0x3f0230,_0x350f18+=_0x490413,_0x2e84b6&&Math['abs'](_0x2738f6/_0x350f18)>_0x2e84b6?(_0x490413=_0x2738f6/_0x2e84b6-_0x350f18,_0x350f18+=_0x490413,_0x44402c+_0x350f18>=_0x5cfa09['y']+_0x5cfa09['height']&&(_0x350f18=_0x5cfa09['y']+_0x5cfa09['height']-_0x44402c,_0x2738f6=_0x350f18*_0x2e84b6,_0x29d575=_0x5ac807['x']+_0x5ac807['width']-_0x2738f6,_0x44402c=_0x5cfa09['y']+_0x5cfa09['height']-_0x350f18)):_0x2e84b6&&(_0x3f0230=_0x350f18*_0x2e84b6-_0x2738f6,_0x2738f6+=_0x3f0230,_0x29d575-=_0x3f0230,_0x29d575<=_0x5cfa09['x']&&(_0x2738f6-=_0x5cfa09['x']-_0x29d575,_0x350f18=_0x2738f6/_0x2e84b6,_0x29d575=_0x5cfa09['x'],_0x44402c=_0x5ac807['y'])),_0x350f18<MIN_CROP_SIZE&&(_0x350f18=MIN_CROP_SIZE,_0x2e84b6&&(_0x2738f6=_0x350f18*_0x2e84b6),_0x29d575=_0x5ac807['x']+_0x5ac807['width']-_0x2738f6),_0x2738f6<MIN_CROP_SIZE&&(_0x2738f6=MIN_CROP_SIZE,_0x2e84b6&&(_0x350f18=_0x2738f6/_0x2e84b6),_0x29d575=_0x5ac807['x']+_0x5ac807['width']-_0x2738f6),{'x':_0x29d575,'y':_0x44402c,'width':_0x2738f6,'height':_0x350f18};}function resizeSouthEast({rect:_0x32b9d0,delta:_0x39932d,aspectRatio:_0x24f331,imageBox:_0x434a8f}){let [_0x1801a1,_0x46b08e]=_0x39932d,{x:_0x569d4c,y:_0x280049,width:_0x5f0690,height:_0x467375}=_0x32b9d0;return _0x569d4c+_0x5f0690+_0x1801a1>_0x434a8f['x']+_0x434a8f['width']&&(_0x1801a1=_0x434a8f['x']+_0x434a8f['width']-_0x569d4c-_0x5f0690),_0x280049+_0x467375+_0x46b08e>_0x434a8f['y']+_0x434a8f['height']&&(_0x46b08e=_0x434a8f['y']+_0x434a8f['height']-_0x280049-_0x467375),_0x5f0690+=_0x1801a1,_0x467375+=_0x46b08e,_0x24f331&&Math['abs'](_0x5f0690/_0x467375)>_0x24f331?(_0x46b08e=_0x5f0690/_0x24f331-_0x467375,_0x467375+=_0x46b08e,_0x280049+_0x467375>=_0x434a8f['y']+_0x434a8f['height']&&(_0x467375=_0x434a8f['y']+_0x434a8f['height']-_0x280049,_0x5f0690=_0x467375*_0x24f331,_0x569d4c=_0x32b9d0['x'],_0x280049=_0x434a8f['y']+_0x434a8f['height']-_0x467375)):_0x24f331&&(_0x1801a1=_0x467375*_0x24f331-_0x5f0690,_0x5f0690+=_0x1801a1,_0x569d4c+_0x5f0690>=_0x434a8f['x']+_0x434a8f['width']&&(_0x5f0690=_0x434a8f['x']+_0x434a8f['width']-_0x569d4c,_0x467375=_0x5f0690/_0x24f331,_0x569d4c=_0x434a8f['x']+_0x434a8f['width']-_0x5f0690,_0x280049=_0x32b9d0['y'])),_0x467375<MIN_CROP_SIZE&&(_0x467375=MIN_CROP_SIZE,_0x24f331&&(_0x5f0690=_0x467375*_0x24f331)),_0x5f0690<MIN_CROP_SIZE&&(_0x5f0690=MIN_CROP_SIZE,_0x24f331&&(_0x467375=_0x5f0690/_0x24f331)),{'x':_0x569d4c,'y':_0x280049,'width':_0x5f0690,'height':_0x467375};}function resizeRect({direction:_0x3b5400,..._0x27d98b}){switch(_0x3b5400){case'n':return resizeNorth(_0x27d98b);case'w':return resizeWest(_0x27d98b);case's':return resizeSouth(_0x27d98b);case'e':return resizeEast(_0x27d98b);case'nw':return resizeNorthWest(_0x27d98b);case'ne':return resizeNorthEast(_0x27d98b);case'sw':return resizeSouthWest(_0x27d98b);case'se':return resizeSouthEast(_0x27d98b);default:return _0x27d98b['rect'];}}function rectContainsPoint(_0x52ec28,[_0x283501,_0x4ab850]){return _0x52ec28['x']<=_0x283501&&_0x283501<=_0x52ec28['x']+_0x52ec28['width']&&_0x52ec28['y']<=_0x4ab850&&_0x4ab850<=_0x52ec28['y']+_0x52ec28['height'];}function isRectInsideRect(_0x27bc70,_0x3d66bd){return _0x27bc70['x']>=_0x3d66bd['x']&&_0x27bc70['y']>=_0x3d66bd['y']&&_0x27bc70['x']+_0x27bc70['width']<=_0x3d66bd['x']+_0x3d66bd['width']&&_0x27bc70['y']+_0x27bc70['height']<=_0x3d66bd['y']+_0x3d66bd['height'];}function isRectMatchesAspectRatio(_0x28a171,_0x45c1ee){return Math['abs'](_0x28a171['width']/_0x28a171['height']-_0x45c1ee)<0.1;}function rotateSize({width:_0x3c4bc2,height:_0x420d6d},_0x387a65){const _0x10b662=_0x387a65/0x5a%0x2!=0x0;return{'width':_0x10b662?_0x420d6d:_0x3c4bc2,'height':_0x10b662?_0x3c4bc2:_0x420d6d};}function calculateMaxCenteredCropFrame(_0x38ccbf,_0x76a1f6,_0x2e93e5){let _0x41f674,_0x17a4dd;_0x38ccbf/_0x76a1f6>_0x2e93e5?(_0x41f674=Math['round'](_0x76a1f6*_0x2e93e5),_0x17a4dd=_0x76a1f6):(_0x41f674=_0x38ccbf,_0x17a4dd=Math['round'](_0x38ccbf/_0x2e93e5));const _0x302ba4=Math['round']((_0x38ccbf-_0x41f674)/0x2),_0x3001ed=Math['round']((_0x76a1f6-_0x17a4dd)/0x2);return _0x302ba4+_0x41f674>_0x38ccbf&&(_0x41f674=_0x38ccbf-_0x302ba4),_0x3001ed+_0x17a4dd>_0x76a1f6&&(_0x17a4dd=_0x76a1f6-_0x3001ed),{'x':_0x302ba4,'y':_0x3001ed,'width':_0x41f674,'height':_0x17a4dd};}function roundRect(_0x443ea5){return{'x':Math['round'](_0x443ea5['x']),'y':Math['round'](_0x443ea5['y']),'width':Math['round'](_0x443ea5['width']),'height':Math['round'](_0x443ea5['height'])};}function clamp(_0x51c87d,_0x2902a2,_0x5640d7){return Math['min'](Math['max'](_0x51c87d,_0x2902a2),_0x5640d7);}var EXCLUDED_TYPES=['free'],parseCropPreset=_0x30fd9f=>{const _0x290305=stringToArray(_0x30fd9f);if(!_0x290305||0x0===_0x290305['length'])return[];const _0x1651ce=[];for(const _0x133e9a of _0x290305){const _0x51b77c=_0x133e9a['trim']();if(!_0x51b77c)continue;const _0x404c79=_0x51b77c['indexOf'](':');if(-0x1===_0x404c79&&!EXCLUDED_TYPES['includes'](_0x51b77c)){console['warn']('Invalid\x20crop\x20preset:\x20'+_0x51b77c);continue;}const _0x310ff8=Number(_0x51b77c['slice'](0x0,_0x404c79)),_0x17edec=Number(_0x51b77c['slice'](_0x404c79+0x1));!(!Number['isFinite'](_0x310ff8)||!Number['isFinite'](_0x17edec)||_0x310ff8<=0x0||_0x17edec<=0x0)||EXCLUDED_TYPES['includes'](_0x51b77c)?_0x1651ce['push']({'id':UID['generate'](),'type':'aspect-ratio','width':EXCLUDED_TYPES['includes'](_0x51b77c)?0x0:_0x310ff8,'height':EXCLUDED_TYPES['includes'](_0x51b77c)?0x0:_0x17edec,'hasFreeform':EXCLUDED_TYPES['includes'](_0x51b77c)}):console['warn']('Invalid\x20crop\x20preset:\x20'+_0x51b77c);}return _0x1651ce;},getClosestAspectRatio=(_0x5531d5,_0x488ec3,_0x56c9cb,_0x13f6af=0.1)=>{const _0x458fa0=_0x5531d5/_0x488ec3;let _0x3708e2=null,_0x2f387a=0x1/0x0;for(const _0x472529 of _0x56c9cb){const [_0x287187,_0x545406]=[_0x472529['width'],_0x472529['height']],_0x229ef8=_0x287187/_0x545406,_0x1d9f31=Math['abs'](_0x458fa0-_0x229ef8);_0x1d9f31<_0x2f387a&&(_0x2f387a=_0x1d9f31,_0x3708e2=_0x472529);}if(_0x3708e2){const [_0x24cbe2,_0x24bd77]=[_0x3708e2['width'],_0x3708e2['height']],_0x2ecd51=_0x24cbe2/_0x24bd77;if(Math['abs'](_0x458fa0-_0x2ecd51)/_0x2ecd51>_0x13f6af)return null;}return _0x3708e2;},ExternalUploadSource=Object['freeze']({'FACEBOOK':'facebook','DROPBOX':'dropbox','GDRIVE':'gdrive','GPHOTOS':'gphotos','FLICKR':'flickr','VK':'vk','EVERNOTE':'evernote','BOX':'box','ONEDRIVE':'onedrive','HUDDLE':'huddle'}),UploadSourceMobile=Object['freeze']({'MOBILE_VIDEO_CAMERA':'mobile-video-camera','MOBILE_PHOTO_CAMERA':'mobile-photo-camera'}),UploadSource=Object['freeze']({'LOCAL':'local','DROP_AREA':'drop-area','CAMERA':'camera','EXTERNAL':'external','API':'js-api','URL':'url','DRAW':'draw',...UploadSourceMobile,...ExternalUploadSource});function customUserAgent(_0x439bc1){return getUserAgent$1({..._0x439bc1,'libraryName':PACKAGE_NAME,'libraryVersion':PACKAGE_VERSION});}var msToUnixTimestamp=_0x596b33=>'number'!=typeof _0x596b33?0x0:Math['floor'](_0x596b33/0x3e8),isSecureTokenExpired=(_0x31aee0,{threshold:_0x1a3e1a})=>{const {secureExpire:_0xa99cb9}=_0x31aee0,_0x3f7917=msToUnixTimestamp(Date['now']()),_0x57e81e=Number(_0xa99cb9);return _0x3f7917+msToUnixTimestamp(_0x1a3e1a)>=_0x57e81e;},SecureUploadsManager=class{['_block'];['_secureToken']=null;constructor(_0x299353){this['_block']=_0x299353;}['_debugPrint'](..._0x204b2e){this['_block']['debugPrint']('[secure-uploads]',..._0x204b2e);}async['getSecureToken'](){const {secureSignature:_0x1020f1,secureExpire:_0xbbb245,secureUploadsSignatureResolver:_0x2f5d69}=this['_block']['cfg'];if((_0x1020f1||_0xbbb245)&&_0x2f5d69&&console['warn']('Both\x20secureSignature/secureExpire\x20and\x20secureUploadsSignatureResolver\x20are\x20set.\x20secureUploadsSignatureResolver\x20will\x20be\x20used.'),_0x2f5d69){if(!this['_secureToken']||isSecureTokenExpired(this['_secureToken'],{'threshold':this['_block']['cfg']['secureUploadsExpireThreshold']})){this['_secureToken']?this['_debugPrint']('Secure\x20signature\x20is\x20expired.\x20Resolving\x20a\x20new\x20one...'):this['_debugPrint']('Secure\x20signature\x20is\x20not\x20set\x20yet.');try{const _0x5dfb5d=await _0x2f5d69();_0x5dfb5d?_0x5dfb5d['secureSignature']&&_0x5dfb5d['secureExpire']?(this['_debugPrint']('Secure\x20signature\x20resolved:',_0x5dfb5d),this['_debugPrint']('Secure\x20signature\x20will\x20expire\x20in',new Date(0x3e8*Number(_0x5dfb5d['secureExpire']))['toISOString']()),this['_secureToken']=_0x5dfb5d):console['error']('Secure\x20signature\x20resolver\x20returned\x20an\x20invalid\x20result:',_0x5dfb5d):(this['_debugPrint']('Secure\x20signature\x20resolver\x20returned\x20nothing.'),this['_secureToken']=null);}catch(_0x18a4eb){console['error']('Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.',_0x18a4eb),this['_block']['telemetryManager']['sendEventError'](_0x18a4eb,'secureUploadsSignatureResolver.\x20Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.');}}return this['_secureToken'];}return _0x1020f1&&_0xbbb245?(this['_debugPrint']('Secure\x20signature\x20and\x20expire\x20are\x20set.\x20Using\x20them...',{'secureSignature':_0x1020f1,'secureExpire':_0xbbb245}),{'secureSignature':_0x1020f1,'secureExpire':_0xbbb245}):null;}},validateCollectionUploadError=(_0x198479,_0x5b8b87)=>{if(_0x198479['failedCount']>0x0)return{'type':'SOME_FILES_HAS_ERRORS','message':_0x5b8b87['l10n']('some-files-were-not-uploaded')};},validateMultiple=(_0x45d9f6,_0x50ac64)=>{const _0x3d61ae=_0x45d9f6['totalCount'],_0x4644cf=_0x50ac64['cfg']['multiple']?_0x50ac64['cfg']['multipleMin']:0x0,_0xec6ecb=_0x50ac64['cfg']['multiple']?_0x50ac64['cfg']['multipleMax']:0x1;if(_0x4644cf&&_0x3d61ae<_0x4644cf)return{'type':'TOO_FEW_FILES','message':_0x50ac64['l10n']('files-count-limit-error-too-few',{'min':_0x4644cf,'max':_0xec6ecb,'total':_0x3d61ae}),'payload':{'total':_0x3d61ae,'min':_0x4644cf,'max':_0xec6ecb}};if(_0xec6ecb&&_0x3d61ae>_0xec6ecb)return{'type':'TOO_MANY_FILES','message':_0x50ac64['l10n']('files-count-limit-error-too-many',{'min':_0x4644cf,'max':_0xec6ecb,'total':_0x3d61ae}),'payload':{'total':_0x3d61ae,'min':_0x4644cf,'max':_0xec6ecb}};},calcIsDesktopSafari=()=>{const _0x102684=navigator['userAgent'];return/Macintosh|Windows/['test'](_0x102684)&&/Version\/[\d.]+.*Safari/['test'](_0x102684)&&!/Chrome|Chromium|Edg|OPR/['test'](_0x102684);},calcHtmlMediaCaptureSupport=()=>'capture'in document['createElement']('input'),calcBrowserInfo=()=>({'safariDesktop':calcIsDesktopSafari()}),calcBrowserFeatures=()=>({'htmlMediaCapture':calcHtmlMediaCaptureSupport()}),browserInfo=calcBrowserInfo(),browserFeatures=calcBrowserFeatures(),BASIC_IMAGE_WILDCARD='image/*',BASIC_VIDEO_WILDCARD='video/*',HEIC_IMAGE_MIME_LIST=['image/heif','image/heif-sequence','image/heic','image/heic-sequence','image/avif','image/avif-sequence','.heif','.heifs','.heic','.heics','.avif','.avifs'],calcImageAcceptList=()=>browserInfo['safariDesktop']?[BASIC_IMAGE_WILDCARD]:[BASIC_IMAGE_WILDCARD,...HEIC_IMAGE_MIME_LIST],IMAGE_ACCEPT_LIST=calcImageAcceptList(),mergeFileTypes=_0x3a726e=>_0x3a726e?_0x3a726e['filter'](_0x2916fa=>'string'==typeof _0x2916fa)['flatMap'](_0x4cb956=>stringToArray(_0x4cb956)):[],matchMimeType=(_0x4cd2c0,_0x241b44)=>_0x241b44['some'](_0x256206=>{if(_0x256206['endsWith']('*')){const _0x246620=_0x256206['replace']('*','');return _0x4cd2c0['startsWith'](_0x246620);}return _0x4cd2c0===_0x256206;}),matchExtension=(_0xb628a4,_0x5f3acb)=>_0x5f3acb['some'](_0x4ca53b=>!!_0x4ca53b['startsWith']('.')&&_0xb628a4['toLowerCase']()['endsWith'](_0x4ca53b['toLowerCase']())),fileIsImage=_0x2cb019=>{const _0x34ee63=_0x2cb019?.['type'];return!!_0x34ee63&&matchMimeType(_0x34ee63,IMAGE_ACCEPT_LIST);},validateFileType=(_0x57deeb,_0x350ad4)=>{const _0x354dc8=_0x350ad4['cfg']['imgOnly'],_0xca07ea=_0x350ad4['cfg']['accept'],_0x15fe72=mergeFileTypes([..._0x354dc8?IMAGE_ACCEPT_LIST:[],_0xca07ea]);if(!_0x15fe72['length'])return;const _0x5715d6=_0x57deeb['mimeType'],_0x2a71ff=_0x57deeb['name'];if(!_0x5715d6||!_0x2a71ff)return;const _0x36fcd5=matchMimeType(_0x5715d6,_0x15fe72),_0x189e7f=matchExtension(_0x2a71ff,_0x15fe72);return _0x36fcd5||_0x189e7f?void 0x0:{'type':'FORBIDDEN_FILE_TYPE','message':_0x350ad4['l10n']('file-type-not-allowed'),'payload':{'entry':_0x57deeb}};},validateIsImage=(_0x562baa,_0x49ac5e)=>{const _0x58d31f=_0x49ac5e['cfg']['imgOnly'],_0x306f20=_0x562baa['isImage'];if(_0x58d31f&&!_0x306f20&&(_0x562baa['fileInfo']||!_0x562baa['externalUrl'])&&(_0x562baa['fileInfo']||_0x562baa['mimeType']))return{'type':'NOT_AN_IMAGE','message':_0x49ac5e['l10n']('images-only-accepted'),'payload':{'entry':_0x562baa}};},BASE=0x3e8,ByteUnitEnum=Object['freeze']({'AUTO':'auto','BYTE':'byte','KB':'kb','MB':'mb','GB':'gb','TB':'tb','PB':'pb'}),round=_0x264472=>Math['ceil'](0x64*_0x264472)/0x64,prettyBytes=(_0x32884d,_0x4e547a=ByteUnitEnum['AUTO'])=>{const _0x5de6d3=_0x4e547a===ByteUnitEnum['AUTO'];if(_0x4e547a===ByteUnitEnum['BYTE']||_0x5de6d3&&_0x32884d<BASE**0x1)return _0x32884d+'\x20'+('one'===getPluralForm('en-US',_0x32884d)?'byte':'bytes');return _0x4e547a===ByteUnitEnum['KB']||_0x5de6d3&&_0x32884d<BASE**0x2?round(_0x32884d/BASE**0x1)+'\x20KB':_0x4e547a===ByteUnitEnum['MB']||_0x5de6d3&&_0x32884d<BASE**0x3?round(_0x32884d/BASE**0x2)+'\x20MB':_0x4e547a===ByteUnitEnum['GB']||_0x5de6d3&&_0x32884d<BASE**0x4?round(_0x32884d/BASE**0x3)+'\x20GB':_0x4e547a===ByteUnitEnum['TB']||_0x5de6d3&&_0x32884d<BASE**0x5?round(_0x32884d/BASE**0x4)+'\x20TB':round(_0x32884d/BASE**0x5)+'\x20PB';},validateMaxSizeLimit=(_0x13f59c,_0x2aa5e1)=>{const _0x3baddf=_0x2aa5e1['cfg']['maxLocalFileSizeBytes'],_0x2cfe78=_0x13f59c['size'];if(_0x3baddf&&_0x2cfe78&&_0x2cfe78>_0x3baddf)return{'type':'FILE_SIZE_EXCEEDED','message':_0x2aa5e1['l10n']('files-max-size-limit-error',{'maxFileSize':prettyBytes(_0x3baddf)}),'payload':{'entry':_0x13f59c}};},validateUploadError=(_0x2eb172,_0x1b9ce5)=>{const {internalId:_0x31fc3b}=_0x2eb172,_0x45dc19=_0x1b9ce5['_uploadCollection']['read'](_0x31fc3b),_0x3f9dee=_0x45dc19?.['getValue']('uploadError');if(!_0x3f9dee)return;if(_0x3f9dee instanceof UploadError)return{'type':'UPLOAD_ERROR','message':_0x3f9dee['message'],'payload':{'entry':_0x2eb172,'error':_0x3f9dee}};if(_0x3f9dee instanceof NetworkError)return{'type':'NETWORK_ERROR','message':_0x3f9dee['message'],'payload':{'entry':_0x2eb172,'error':_0x3f9dee}};const _0x5f4f21=_0x3f9dee instanceof Error?_0x3f9dee:new Error('Unknown\x20error',{'cause':_0x3f9dee});return{'type':'UNKNOWN_ERROR','message':_0x5f4f21['message'],'payload':{'entry':_0x2eb172,'error':_0x5f4f21}};},withResolvers=()=>{let _0x302593=()=>{},_0xa9e17=()=>{};return{'promise':new Promise((_0x5d96d2,_0x283b61)=>{_0x302593=_0x5d96d2,_0xa9e17=_0x283b61;}),'resolve':_0x302593,'reject':_0xa9e17};},LOG_TEXT={'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.'},getValidatorDescriptor=_0x17ab7a=>'function'==typeof _0x17ab7a?{'runOn':'change','validator':_0x17ab7a}:_0x17ab7a,ValidationManager=class{['_blockInstance'];['_uploadCollection'];['_commonFileValidators']=[validateIsImage,validateFileType,validateMaxSizeLimit,validateUploadError];['_commonCollectionValidators']=[validateMultiple,validateCollectionUploadError];['_queue']=new Queue(0x14);['_runQueueDebounced']=debounce(()=>{this['_queue']['run']();},0x1f4);['_entryValidationState']=new Map();constructor(_0x38662f){this['_blockInstance']=_0x38662f,this['_uploadCollection']=this['_blockInstance']['uploadCollection'];const _0x45713d=()=>{this['runFileValidators']('change'),this['runCollectionValidators']();};this['_blockInstance']['subConfigValue']('maxLocalFileSizeBytes',_0x45713d),this['_blockInstance']['subConfigValue']('multipleMin',_0x45713d),this['_blockInstance']['subConfigValue']('multipleMax',_0x45713d),this['_blockInstance']['subConfigValue']('multiple',_0x45713d),this['_blockInstance']['subConfigValue']('imgOnly',_0x45713d),this['_blockInstance']['subConfigValue']('accept',_0x45713d),this['_blockInstance']['subConfigValue']('validationConcurrency',_0x4a7ae1=>{this['_queue']['concurrency']=_0x4a7ae1;});}['runFileValidators'](_0x266b6e,_0x3c410d){const _0x26ff1b=_0x3c410d??this['_uploadCollection']['items']();for(const _0x32fb88 of _0x26ff1b){const _0x3408bc=this['_uploadCollection']['read'](_0x32fb88);_0x3408bc&&this['_runFileValidatorsForEntry'](_0x3408bc,_0x266b6e);}}['runCollectionValidators'](){const _0x828a64=this['_blockInstance']['api']['getOutputCollectionState'](),_0x3f4242=[];for(const _0x5aa312 of[...this['_commonCollectionValidators'],...this['_blockInstance']['cfg']['collectionValidators']])try{const _0x44ce87=_0x5aa312(_0x828a64,this['_blockInstance']['api']);if(!_0x44ce87)continue;_0x44ce87&&(_0x3f4242['push'](this['_addCustomTypeToValidationError'](_0x44ce87)),_0x44ce87['message']||console['warn'](LOG_TEXT['MISSING_ERROR_MESSAGE']));}catch(_0x35a972){console['warn'](LOG_TEXT['COLLECTION_VALIDATION_FAILED'],_0x35a972);}this['_blockInstance']['$']['*collectionErrors']=_0x3f4242,_0x3f4242['length']>0x0&&this['_blockInstance']['emit'](EventType['COMMON_UPLOAD_FAILED'],()=>this['_blockInstance']['api']['getOutputCollectionState'](),{'debounce':!0x0});}['cleanupValidationForEntry'](_0x977dbc){const _0x35e5fb=this['_entryValidationState']['get'](_0x977dbc['uid']);_0x35e5fb&&(_0x35e5fb['abortController']?.['abort'](),this['_entryValidationState']['delete'](_0x977dbc['uid']));}async['_runFileValidatorsForEntry'](_0x11e567,_0x23e008){const _0x50d7d9=this['_getValidatorDescriptorsForEntry'](_0x11e567,_0x23e008);if(0x0===_0x50d7d9['length'])return;_0x11e567['setMultipleValues']({'isQueuedForValidation':!0x0,'isValidationPending':!0x0});const _0x2c0d65=this['_blockInstance']['api']['getOutputItem'](_0x11e567['uid']),_0x3c82d9=this['_getEntryValidationState'](_0x11e567);_0x3c82d9['promise']&&await _0x3c82d9['promise'];const {promise:_0x3440e8,resolve:_0x407856}=withResolvers();_0x3c82d9['promise']=_0x3440e8;const _0x31cc37=new AbortController();_0x3c82d9['abortController']=_0x31cc37;const _0x47ce1f=this['_blockInstance']['cfg']['validationTimeout'],_0x17c1a6=this['_getValidatorDescriptors'](),_0x3444a4=new Set(_0x50d7d9['map'](_0x5c55bc=>_0x5c55bc['validator'])),_0x411271=[];for(const _0x4b51f2 of _0x17c1a6)if(!_0x3444a4['has'](_0x4b51f2['validator'])){const _0x2446f4=_0x3c82d9['lastErrorThrownByValidator']['get'](_0x4b51f2['validator']);_0x2446f4&&_0x411271['push'](_0x2446f4);}const _0x262d00=_0x50d7d9['map'](_0x1b5193=>async()=>{if(!this['_blockInstance']['isConnected'])return;const _0x45a0e3=setTimeout(()=>{_0x3c82d9['skippedValidators']['add'](_0x1b5193['validator']),_0x31cc37['abort'](),console['warn'](LOG_TEXT['FILE_VALIDATION_TIMEOUT']);},_0x47ce1f);try{const _0x353e6c=await _0x1b5193['validator'](_0x2c0d65,this['_blockInstance']['api'],{'signal':_0x31cc37['signal']});if(!_0x353e6c||_0x31cc37['signal']['aborted'])return void _0x3c82d9['lastErrorThrownByValidator']['set'](_0x1b5193['validator'],void 0x0);const _0x231a19=this['_addCustomTypeToValidationError'](_0x353e6c);_0x3c82d9['lastErrorThrownByValidator']['set'](_0x1b5193['validator'],_0x231a19),_0x411271['push'](_0x231a19),_0x353e6c['message']||console['warn'](LOG_TEXT['MISSING_ERROR_MESSAGE']);}catch(_0x1feb66){_0x31cc37['signal']['aborted']||(_0x3c82d9['skippedValidators']['add'](_0x1b5193['validator']),console['warn'](LOG_TEXT['FILE_VALIDATION_FAILED'],_0x1feb66),this['_blockInstance']['telemetryManager']['sendEventError'](_0x1feb66,'file\x20validator.\x20'+LOG_TEXT['FILE_VALIDATION_FAILED']));}finally{clearTimeout(_0x45a0e3),'change'!==_0x1b5193['runOn']&&_0x3c82d9['skippedValidators']['add'](_0x1b5193['validator']);}});if(this['_runQueueDebounced'](),await this['_queue']['add'](async()=>{_0x11e567['setValue']('isQueuedForValidation',!0x1),await Promise['all'](_0x262d00['map'](_0xe6d1db=>_0xe6d1db()))['catch'](()=>{});},{'autoRun':!0x1}),_0x31cc37['signal']['aborted'])return _0x11e567['setMultipleValues']({'isQueuedForValidation':!0x1,'isValidationPending':!0x1}),void _0x407856();_0x11e567['setMultipleValues']({'isValidationPending':!0x1,'isQueuedForValidation':!0x1,'errors':_0x411271}),_0x407856();}['_addCustomTypeToValidationError'](_0x1a5164){return{..._0x1a5164,'type':_0x1a5164['type']??'CUSTOM_ERROR'};}['_getEntryValidationState'](_0x544d13){const _0x13104f=this['_entryValidationState']['get'](_0x544d13['uid']);if(_0x13104f)return _0x13104f;const _0x3007ed={'abortController':void 0x0,'skippedValidators':new WeakSet(),'promise':void 0x0,'lastErrorThrownByValidator':new WeakMap()};return this['_entryValidationState']['set'](_0x544d13['uid'],_0x3007ed),_0x3007ed;}['_getValidatorDescriptors'](){return[...this['_commonFileValidators'],...this['_blockInstance']['cfg']['fileValidators']]['map'](getValidatorDescriptor);}['_getValidatorDescriptorsForEntry'](_0xd27f3e,_0x1fdb3e){const _0x4e6a3a=this['_getEntryValidationState'](_0xd27f3e);return this['_getValidatorDescriptors']()['filter'](_0x5e1d27=>!_0x4e6a3a['skippedValidators']['has'](_0x5e1d27['validator']))['filter'](_0x2be16e=>_0x2be16e['runOn']===_0x1fdb3e);}},MSG_NAME='[Typed\x20State]\x20Wrong\x20property\x20name:\x20',MSG_TYPE='[Typed\x20State]\x20Wrong\x20property\x20type:\x20',TypedData=class{['__typedSchema'];['__ctxId'];['__schema'];['__data'];constructor(_0x1f8274,_0x20dc25){this['__typedSchema']=_0x1f8274,this['__ctxId']=_0x20dc25||UID['generate'](),this['__schema']=Object['keys'](_0x1f8274)['reduce']((_0x43694c,_0xc7ad25)=>(_0x1f8274[_0xc7ad25]&&(_0x43694c[_0xc7ad25]=_0x1f8274[_0xc7ad25]['value']),_0x43694c),{}),this['__data']=Data['registerCtx'](this['__schema'],this['__ctxId']);}get['uid'](){return this['__ctxId'];}['setValue'](_0x1404ea,_0x2f28af){if(!Object['hasOwn'](this['__typedSchema'],_0x1404ea)||!this['__typedSchema'][_0x1404ea])return void console['warn'](MSG_NAME+_0x1404ea);const _0x1779ec=this['__typedSchema'][_0x1404ea],_0x385504=_0x2f28af?.['constructor']===_0x1779ec['type'],_0x1b3d0d=_0x2f28af instanceof _0x1779ec['type'],_0x4cc763=_0x1779ec['nullable']&&null===_0x2f28af;_0x385504||_0x1b3d0d||_0x4cc763?this['__data']['pub'](_0x1404ea,_0x2f28af):console['warn'](MSG_TYPE+_0x1404ea);}['setMultipleValues'](_0x2b86e1){for(const [_0x2a261a,_0x282880]of Object['entries'](_0x2b86e1))this['setValue'](_0x2a261a,_0x282880);}['getValue'](_0x463737){return Object['hasOwn'](this['__typedSchema'],_0x463737)||console['warn'](MSG_NAME+_0x463737),this['__data']['read'](_0x463737);}['subscribe'](_0x21e5a7,_0x191308){return this['__data']['sub'](_0x21e5a7,_0x191308);}['remove'](){Data['deleteCtx'](this['__ctxId']);}},TypedCollection=class{['__typedSchema'];['__ctxId'];['__data'];['__watchList'];['__subsMap']=Object['create'](null);['__propertyObservers']=new Set();['__collectionObservers']=new Set();['__items']=new Set();['__removed']=new Set();['__added']=new Set();['__observeTimeout'];['__notifyTimeout'];['__notifyObservers'];constructor(_0x1ec6a3){this['__typedSchema']=_0x1ec6a3['typedSchema'],this['__ctxId']=_0x1ec6a3['ctxName']||UID['generate'](),this['__data']=Data['registerCtx']({},this['__ctxId']),this['__watchList']=_0x1ec6a3['watchList']||[];let _0x32d663=Object['create'](null);this['__notifyObservers']=(_0x2f0697,_0x5e8d5b)=>{this['__observeTimeout']&&window['clearTimeout'](this['__observeTimeout']),_0x32d663[_0x2f0697]||(_0x32d663[_0x2f0697]=new Set()),_0x32d663[_0x2f0697]['add'](_0x5e8d5b),this['__observeTimeout']=window['setTimeout'](()=>{0x0!==Object['keys'](_0x32d663)['length']&&(this['__propertyObservers']['forEach'](_0x1486d1=>{_0x1486d1({..._0x32d663});}),_0x32d663=Object['create'](null));});},_0x1ec6a3['handler']&&this['observeCollection'](_0x1ec6a3['handler']);}['notify'](){this['__notifyTimeout']&&window['clearTimeout'](this['__notifyTimeout']),this['__notifyTimeout']=window['setTimeout'](()=>{const _0x235b8e=new Set(this['__added']),_0x4b9a65=new Set(this['__removed']);this['__added']['clear'](),this['__removed']['clear']();for(const _0x3368fd of this['__collectionObservers'])_0x3368fd?.([...this['__items']],_0x235b8e,_0x4b9a65);});}['observeCollection'](_0x20a506){return this['__collectionObservers']['add'](_0x20a506),this['__items']['size']>0x0&&this['notify'](),()=>{this['unobserveCollection'](_0x20a506);};}['unobserveCollection'](_0x5d341b){this['__collectionObservers']['delete'](_0x5d341b);}['add'](_0x4ccc12){const _0x50d07b=new TypedData(this['__typedSchema']);for(const [_0x5f4ae3,_0x68d06d]of Object['entries'](_0x4ccc12))void 0x0!==_0x68d06d&&_0x50d07b['setValue'](_0x5f4ae3,_0x68d06d);return this['__items']['add'](_0x50d07b['uid']),this['notify'](),this['__data']['add'](_0x50d07b['uid'],_0x50d07b),this['__added']['add'](_0x50d07b),this['__watchList']['forEach'](_0x1d8795=>{this['__subsMap'][_0x50d07b['uid']]||(this['__subsMap'][_0x50d07b['uid']]=[]),this['__subsMap'][_0x50d07b['uid']]?.['push'](_0x50d07b['subscribe'](_0x1d8795,()=>{this['__notifyObservers'](_0x1d8795,_0x50d07b['uid']);}));}),_0x50d07b['uid'];}['read'](_0x5a0e7a){return this['__data']['read'](_0x5a0e7a);}['readProp'](_0x5f5c8c,_0x490df9){const _0x5ca890=this['read'](_0x5f5c8c);return _0x5ca890?_0x5ca890['getValue'](_0x490df9):(console['warn']('Item\x20with\x20id\x20'+_0x5f5c8c+'\x20not\x20found'),null);}['publishProp'](_0x2291ae,_0x1fce46,_0x407ca4){const _0x15adf5=this['read'](_0x2291ae);_0x15adf5?_0x15adf5['setValue'](_0x1fce46,_0x407ca4):console['warn']('Item\x20with\x20id\x20'+_0x2291ae+'\x20not\x20found');}['remove'](_0x233437){const _0x3e4d8b=this['read'](_0x233437);_0x3e4d8b&&this['__removed']['add'](_0x3e4d8b),this['__items']['delete'](_0x233437),this['notify'](),this['__data']['pub'](_0x233437,null),delete this['__subsMap'][_0x233437];}['clearAll'](){this['__items']['forEach'](_0x4726ac=>{this['remove'](_0x4726ac);});}['observeProperties'](_0x26026d){return this['__propertyObservers']['add'](_0x26026d),()=>{this['unobserveProperties'](_0x26026d);};}['unobserveProperties'](_0x413f96){this['__propertyObservers']['delete'](_0x413f96);}['findItems'](_0x4c2356){const _0x1031c3=[];return this['__items']['forEach'](_0x582f84=>{const _0x40b433=this['read'](_0x582f84);_0x40b433&&_0x4c2356(_0x40b433)&&_0x1031c3['push'](_0x582f84);}),_0x1031c3;}['items'](){return[...this['__items']];}get['size'](){return this['__items']['size'];}['destroy'](){Data['deleteCtx'](this['__ctxId']),this['__propertyObservers']=new Set(),this['__collectionObservers']=new Set();for(const _0x46811b in this['__subsMap'])this['__subsMap'][_0x46811b]?.['forEach'](_0x367722=>{_0x367722['remove']();}),delete this['__subsMap'][_0x46811b];}},CameraSourceTypes=Object['freeze']({'PHOTO':'photo','VIDEO':'video'}),CameraSourceEvents=Object['freeze']({'IDLE':'idle','SHOT':'shot','PLAY':'play','PAUSE':'pause','RESUME':'resume','STOP':'stop','RETAKE':'retake','ACCEPT':'accept'}),calcCameraModes=_0x499057=>({'isVideoRecordingEnabled':deserializeCsv(_0x499057['cameraModes'])['includes'](CameraSourceTypes['VIDEO']),'isPhotoEnabled':deserializeCsv(_0x499057['cameraModes'])['includes'](CameraSourceTypes['PHOTO'])}),uuidRegex=/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i,cdnUrlRegex=new RegExp('^/?('+uuidRegex['source']+')(?:/(-/(?:[^/]+/)+)?([^/]*))?$','i'),parseCdnUrl=({url:_0x342e11,cdnBase:_0x2046ce})=>{const _0x445b3a=new URL(_0x2046ce),_0x17b953=new URL(DEFAULT_CDN_CNAME),_0x414484=new URL(_0x342e11);if(_0x445b3a['host']!==_0x414484['host']&&_0x17b953['host']!==_0x414484['host'])return null;const _0x4212da=cdnUrlRegex['exec'](_0x414484['pathname']);if(!_0x4212da)return null;const [,_0x10223e,_0x29635c,_0x16e6d0]=_0x4212da;return _0x10223e?{'uuid':_0x10223e,'cdnUrlModifiers':_0x29635c||'','filename':_0x16e6d0||null}:null;};function memoize(_0x4d2932){const _0x472ea3=new Map();return(..._0x29f23d)=>{const _0x33b194=JSON['stringify'](_0x29f23d);if(_0x472ea3['has'](_0x33b194))return _0x472ea3['get'](_0x33b194);const _0x43f482=_0x4d2932(..._0x29f23d);return _0x472ea3['set'](_0x33b194,_0x43f482),_0x43f482;};}var warnings=new Set();function warnOnce(_0x5e990e){warnings['has'](_0x5e990e)||(warnings['add'](_0x5e990e),console['warn'](_0x5e990e));}function createAsyncAssertWrapper(_0x5eb259){let _0x3d3a1b=!0x1;return setTimeout(()=>{_0x3d3a1b=!0x0;},0x0),_0x436fe4=>(..._0x4240e2)=>(_0x3d3a1b&&warnOnce(_0x5eb259),_0x436fe4(..._0x4240e2));}function buildOutputCollectionState(_0xc90707){const _0x346210={},_0xd665ce={'progress':()=>_0xc90707['$']['*commonProgress'],'errors':()=>_0xc90707['$']['*collectionErrors'],'group':()=>_0xc90707['$']['*groupInfo'],'totalCount':()=>_0xc90707['uploadCollection']['size'],'failedCount':()=>_0x346210['failedEntries']['length'],'successCount':()=>_0x346210['successEntries']['length'],'uploadingCount':()=>_0x346210['uploadingEntries']['length'],'status':()=>_0x346210['isFailed']?'failed':_0x346210['isUploading']?'uploading':_0x346210['isSuccess']?'success':'idle','isSuccess':()=>_0x346210['allEntries']['length']>0x0&&0x0===_0x346210['errors']['length']&&_0x346210['successEntries']['length']===_0x346210['allEntries']['length'],'isUploading':()=>_0x346210['allEntries']['some'](_0x36e19e=>'uploading'===_0x36e19e['status']),'isFailed':()=>_0x346210['errors']['length']>0x0||_0x346210['failedEntries']['length']>0x0,'allEntries':()=>_0xc90707['getOutputData'](),'successEntries':()=>_0x346210['allEntries']['filter'](_0x588cc0=>'success'===_0x588cc0['status']),'failedEntries':()=>_0x346210['allEntries']['filter'](_0x3cd012=>'failed'===_0x3cd012['status']),'uploadingEntries':()=>_0x346210['allEntries']['filter'](_0x140b97=>'uploading'===_0x140b97['status']),'idleEntries':()=>_0x346210['allEntries']['filter'](_0x2b8bca=>'idle'===_0x2b8bca['status'])},_0x2377c6=createAsyncAssertWrapper('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(const [_0x47e424,_0x3b0aa5]of Object['entries'](_0xd665ce)){const _0x4296bb=_0x47e424,_0x26ff9d=memoize(_0x2377c6(_0x3b0aa5));Object['defineProperty'](_0x346210,_0x4296bb,{'get':_0x26ff9d,'enumerable':!0x0});}return _0x346210;}var UploaderPublicApi=class{['_ctx'];constructor(_0xe1bad){this['_ctx']=_0xe1bad;}get['_uploadCollection'](){return this['_ctx']['uploadCollection'];}get['cfg'](){return this['_ctx']['cfg'];}get['l10n'](){return this['_ctx']['l10n']['bind'](this['_ctx']);}['addFileFromUrl']=(_0x23f58a,{silent:_0x34ffff,fileName:_0x16eb13,source:_0x10818e}={})=>{const _0x8a801a=this['_uploadCollection']['add']({'externalUrl':_0x23f58a,'fileName':_0x16eb13??null,'silent':_0x34ffff??!0x1,'source':_0x10818e??UploadSource['API']});return this['getOutputItem'](_0x8a801a);};['addFileFromUuid']=(_0x563a94,{silent:_0x3b6aef,fileName:_0x38e64b,source:_0x49d3c2}={})=>{const _0x1f17c9=this['_uploadCollection']['add']({'uuid':_0x563a94,'fileName':_0x38e64b??null,'silent':_0x3b6aef??!0x1,'source':_0x49d3c2??UploadSource['API']});return this['getOutputItem'](_0x1f17c9);};['addFileFromCdnUrl']=(_0x2ab223,{silent:_0x4bf0e8,fileName:_0xee15dc,source:_0x29863b}={})=>{const _0x5061ff=parseCdnUrl({'url':_0x2ab223,'cdnBase':this['cfg']['cdnCname']});if(!_0x5061ff)throw new Error('Invalid\x20CDN\x20URL');const _0x31f249=this['_uploadCollection']['add']({'uuid':_0x5061ff['uuid'],'cdnUrl':_0x2ab223,'cdnUrlModifiers':_0x5061ff['cdnUrlModifiers'],'fileName':_0xee15dc??_0x5061ff['filename']??null,'silent':_0x4bf0e8??!0x1,'source':_0x29863b??UploadSource['API']});return this['getOutputItem'](_0x31f249);};['addFileFromObject']=(_0x284722,{silent:_0x4fb641,fileName:_0x37da2e,source:_0x2f48f5,fullPath:_0x3af5a1}={})=>{const _0x469e31=this['_uploadCollection']['add']({'file':_0x284722,'isImage':fileIsImage(_0x284722),'mimeType':_0x284722['type'],'fileName':_0x37da2e??_0x284722['name'],'fileSize':_0x284722['size'],'silent':_0x4fb641??!0x1,'source':_0x2f48f5??UploadSource['API'],'fullPath':_0x3af5a1??null});return this['getOutputItem'](_0x469e31);};['removeFileByInternalId']=_0x547c22=>{if(!this['_uploadCollection']['read'](_0x547c22))throw new Error('File\x20with\x20internalId\x20'+_0x547c22+'\x20not\x20found');this['_uploadCollection']['remove'](_0x547c22);};['removeAllFiles'](){this['_uploadCollection']['clearAll']();}['uploadAll']=()=>{const _0x1cee55=this['_uploadCollection']['items']()['filter'](_0x30bbe9=>{const _0x3d2caf=this['_uploadCollection']['read'](_0x30bbe9);return!!_0x3d2caf&&!(_0x3d2caf['getValue']('isRemoved')||_0x3d2caf['getValue']('isUploading')||_0x3d2caf['getValue']('fileInfo')||0x0!==_0x3d2caf['getValue']('errors')['length']||_0x3d2caf['getValue']('isValidationPending')||_0x3d2caf['getValue']('isQueuedForValidation'));});0x0!==_0x1cee55['length']&&(this['_ctx']['$']['*uploadTrigger']=new Set(_0x1cee55),this['_ctx']['emit'](EventType['COMMON_UPLOAD_START'],this['getOutputCollectionState']()));};['openSystemDialog']=(_0x7a19ae={})=>{const _0x4c432d=serializeCsv(mergeFileTypes([this['cfg']['accept']??'',...this['cfg']['imgOnly']?IMAGE_ACCEPT_LIST:[]])),_0x560fce='uploadcare-file-input',_0x32c2a3=document['createElement']('input');if(_0x32c2a3['setAttribute'](_0x560fce,''),applyStyles(_0x32c2a3,{'opacity':0x0,'height':0x0,'width':0x0,'visibility':'hidden','position':'absolute','top':0x0,'left':0x0}),_0x32c2a3['type']='file',_0x32c2a3['multiple']=this['cfg']['multiple'],_0x7a19ae['captureCamera']){_0x32c2a3['capture']=this['cfg']['cameraCapture'];const {isPhotoEnabled:_0x5b45cb,isVideoRecordingEnabled:_0x34a15c}=calcCameraModes(this['cfg']);_0x7a19ae['modeCamera']===CameraSourceTypes['PHOTO']&&_0x5b45cb?_0x32c2a3['accept']=BASIC_IMAGE_WILDCARD:_0x7a19ae['modeCamera']===CameraSourceTypes['VIDEO']&&_0x34a15c?_0x32c2a3['accept']=BASIC_VIDEO_WILDCARD:_0x32c2a3['accept']=[BASIC_IMAGE_WILDCARD,_0x34a15c&&BASIC_VIDEO_WILDCARD]['filter'](Boolean)['join'](',');}else _0x32c2a3['accept']=_0x4c432d;_0x32c2a3['addEventListener']('change',()=>{_0x32c2a3['files']&&([..._0x32c2a3['files']]['forEach'](_0x5419cb=>{this['addFileFromObject'](_0x5419cb,{'source':_0x7a19ae['captureCamera']?UploadSource['CAMERA']:UploadSource['LOCAL']});}),this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['_ctx']['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],_0x32c2a3['remove']());},{'once':!0x0}),document['querySelectorAll']('['+_0x560fce+']')['forEach'](_0x27dac1=>{_0x27dac1['remove']();}),document['body']['appendChild'](_0x32c2a3),_0x32c2a3['dispatchEvent'](new MouseEvent('click'));};['getOutputItem'](_0x5498ab){const _0x443dc4=Data['getCtx'](_0x5498ab)['store'],_0x42218=_0x443dc4['fileInfo'],_0x25cd99=_0x443dc4['isRemoved']?'removed':_0x443dc4['errors']['length']>0x0?'failed':_0x443dc4['fileInfo']?'success':_0x443dc4['isUploading']?'uploading':'idle';return{'uuid':_0x42218?.['uuid']??_0x443dc4['uuid']??null,'internalId':_0x5498ab,'name':_0x42218?.['originalFilename']??_0x443dc4['fileName'],'size':_0x42218?.['size']??_0x443dc4['fileSize'],'isImage':_0x42218?.['isImage']??_0x443dc4['isImage'],'mimeType':_0x42218?.['mimeType']??_0x443dc4['mimeType'],'file':_0x443dc4['file'],'externalUrl':_0x443dc4['externalUrl'],'cdnUrlModifiers':_0x443dc4['cdnUrlModifiers'],'cdnUrl':_0x443dc4['cdnUrl']??_0x42218?.['cdnUrl']??null,'fullPath':_0x443dc4['fullPath'],'uploadProgress':_0x443dc4['uploadProgress'],'fileInfo':_0x42218??null,'metadata':_0x443dc4['metadata']??_0x42218?.['metadata']??null,'isSuccess':'success'===_0x25cd99,'isUploading':'uploading'===_0x25cd99,'isFailed':'failed'===_0x25cd99,'isRemoved':'removed'===_0x25cd99,'isValidationPending':_0x443dc4['isValidationPending'],'errors':_0x443dc4['errors'],'status':_0x25cd99,'source':_0x443dc4?.['source']};}['getOutputCollectionState'](){return buildOutputCollectionState(this['_ctx']);}['initFlow']=(_0x2cd4bf=!0x1)=>{if(this['_uploadCollection']['size']>0x0&&!_0x2cd4bf)this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']});else{if(0x1===this['_sourceList']?.['length']){const _0x22f576=this['_sourceList'][0x0];if('local'===_0x22f576)return this['_ctx']['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],void this['openSystemDialog']();if('camera'===_0x22f576&&browserFeatures['htmlMediaCapture']){const {isPhotoEnabled:_0x2aa053,isVideoRecordingEnabled:_0x468810}=calcCameraModes(this['cfg']);if(_0x2aa053&&_0x468810)return void this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['START_FROM']});if(_0x2aa053||_0x468810)return void this['openSystemDialog']({'captureCamera':!0x0,'modeCamera':_0x2aa053?CameraSourceTypes['PHOTO']:CameraSourceTypes['VIDEO']});this['openSystemDialog']({'captureCamera':!0x0,'modeCamera':CameraSourceTypes['PHOTO']});}const _0x262aae=[...this['_ctx']['$']['*blocksRegistry']]['find'](_0x1fd8ef=>'type'in _0x1fd8ef&&_0x1fd8ef['type']===_0x22f576);_0x262aae?.['activate'](),this['_ctx']['$']['*currentActivity']&&this['_ctx']['modalManager']?.['open'](this['_ctx']['$']['*currentActivity']);}else this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['START_FROM']),this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['START_FROM']});}};['doneFlow']=()=>{this['_ctx']['set$']({'*currentActivity':this['_ctx']['doneActivity'],'*history':this['_ctx']['doneActivity']?[this['_ctx']['doneActivity']]:[]}),this['_ctx']['$']['*currentActivity']||this['_ctx']['modalManager']?.['closeAll']();};['setCurrentActivity']=(_0xcdce,..._0x1a4c90)=>{this['_ctx']['hasBlockInCtx'](_0x184fd2=>_0x184fd2['activityType']===_0xcdce)?this['_ctx']['set$']({'*currentActivityParams':_0x1a4c90??{},'*currentActivity':_0xcdce}):console['warn']('Activity\x20type\x20\x22'+_0xcdce+'\x22\x20not\x20found\x20in\x20the\x20context');};['getCurrentActivity']=()=>this['_ctx']['$']['*currentActivity'];['setModalState']=_0x211b7f=>{!_0x211b7f||this['_ctx']['$']['*currentActivity']?_0x211b7f?this['_ctx']['modalManager']?.['open'](this['_ctx']['$']['*currentActivity']):(this['_ctx']['modalManager']?.['close'](this['_ctx']['$']['*currentActivity']),this['_ctx']['$']['*currentActivity']=null):console['warn']('Can\x27t\x20open\x20modal\x20without\x20current\x20activity.\x20Please\x20use\x20\x22setCurrentActivity\x22\x20method\x20first.');};get['_sourceList'](){let _0x1276f7=[];return this['cfg']['sourceList']&&(_0x1276f7=stringToArray(this['cfg']['sourceList'])),_0x1276f7;}},uploadEntrySchema=Object['freeze']({'file':Object['freeze']({'type':File,'value':null,'nullable':!0x0}),'externalUrl':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'fileName':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'fileSize':Object['freeze']({'type':Number,'value':null,'nullable':!0x0}),'lastModified':Object['freeze']({'type':Number,'value':Date['now']()}),'uploadProgress':Object['freeze']({'type':Number,'value':0x0}),'uuid':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'isImage':Object['freeze']({'type':Boolean,'value':!0x1}),'mimeType':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'ctxName':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'cdnUrl':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'cdnUrlModifiers':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'fileInfo':Object['freeze']({'type':UploadcareFile,'value':null,'nullable':!0x0}),'isUploading':Object['freeze']({'type':Boolean,'value':!0x1}),'abortController':Object['freeze']({'type':AbortController,'value':null,'nullable':!0x0}),'thumbUrl':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'silent':Object['freeze']({'type':Boolean,'value':!0x1}),'source':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'fullPath':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'metadata':Object['freeze']({'type':Object,'value':null,'nullable':!0x0}),'errors':Object['freeze']({'type':Array,'value':[]}),'uploadError':Object['freeze']({'type':Error,'value':null,'nullable':!0x0}),'isRemoved':Object['freeze']({'type':Boolean,'value':!0x1}),'isQueuedForUploading':Object['freeze']({'type':Boolean,'value':!0x1}),'isValidationPending':Object['freeze']({'type':Boolean,'value':!0x1}),'isQueuedForValidation':Object['freeze']({'type':Boolean,'value':!0x1})}),UploaderBlock=class e extends ActivityBlock{static ['extSrcList'];static ['sourceTypes'];['couldBeCtxOwner']=!0x1;['isCtxOwner']=!0x1;['_unobserveCollection'];['_unobserveCollectionProperties'];['init$']=uploaderBlockCtx(this);get['hasCtxOwner'](){return this['hasBlockInCtx'](_0x424106=>_0x424106 instanceof e&&(_0x424106['isCtxOwner']&&_0x424106['isConnected']&&_0x424106!==this));}['initCallback'](){if(super['initCallback'](),!this['has']('*uploadCollection')){const _0x295371=new TypedCollection({'typedSchema':uploadEntrySchema,'watchList':['uploadProgress','uploadError','fileInfo','errors','cdnUrl','isUploading','isValidationPending']});this['add']('*uploadCollection',_0x295371);}this['has']('*publicApi')||this['add']('*publicApi',new UploaderPublicApi(this)),this['has']('*validationManager')||this['add']('*validationManager',new ValidationManager(this)),!this['hasCtxOwner']&&this['couldBeCtxOwner']&&this['_initCtxOwner']();}get['validationManager'](){if(!this['has']('*validationManager'))throw new Error('Unexpected\x20error:\x20ValidationManager\x20is\x20not\x20initialized');return this['$']['*validationManager'];}get['api'](){if(!this['has']('*publicApi'))throw new Error('Unexpected\x20error:\x20UploaderPublicApi\x20is\x20not\x20initialized');return this['$']['*publicApi'];}['getAPI'](){return this['api'];}get['uploadCollection'](){if(!this['has']('*uploadCollection'))throw new Error('Unexpected\x20error:\x20TypedCollection\x20is\x20not\x20initialized');return this['$']['*uploadCollection'];}['destroyCtxCallback'](){this['uploadCollection']['destroy'](),this['$']['*uploadCollection']=null,super['destroyCtxCallback']();}['disconnectedCallback'](){super['disconnectedCallback'](),this['isCtxOwner']&&this['_unobserveUploadCollection']();}['connectedCallback'](){super['connectedCallback'](),this['isCtxOwner']&&this['_observeUploadCollection']();}['destroyCallback'](){super['destroyCallback'](),this['_flushOutputItems']['cancel']();}['_initCtxOwner'](){this['isCtxOwner']=!0x0,this['_observeUploadCollection'](),this['subConfigValue']('maxConcurrentRequests',_0x2c625e=>{this['$']['*uploadQueue']['concurrency']=Number(_0x2c625e)||0x1;}),this['$']['*secureUploadsManager']||(this['$']['*secureUploadsManager']=new SecureUploadsManager(this));}['_observeUploadCollection'](){this['_unobserveUploadCollection'](),this['_unobserveCollection']=this['uploadCollection']['observeCollection'](this['_handleCollectionUpdate']),this['_unobserveCollectionProperties']=this['uploadCollection']['observeProperties'](this['_handleCollectionPropertiesUpdate']);}['_unobserveUploadCollection'](){this['_unobserveCollectionProperties']?.(),this['_unobserveCollection']?.(),this['_unobserveCollectionProperties']=void 0x0,this['_unobserveCollection']=void 0x0;}async['_createGroup'](_0x1992ef){const _0x423c69=await this['getUploadClientOptions'](),_0x5244c2=_0x1992ef['allEntries']['map'](_0x369020=>_0x369020['uuid']+(_0x369020['cdnUrlModifiers']?'/'+_0x369020['cdnUrlModifiers']:'')),_0x134c6e=new AbortController(),_0x5a73da=await uploadFileGroup(_0x5244c2,{..._0x423c69,'signal':_0x134c6e['signal']});if(this['$']['*collectionState']!==_0x1992ef)return void _0x134c6e['abort']();this['$']['*groupInfo']=_0x5a73da;const _0x2da79a=this['api']['getOutputCollectionState']();this['emit'](EventType['GROUP_CREATED'],_0x2da79a),this['emit'](EventType['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['$']['*collectionState']=_0x2da79a;}['_flushOutputItems']=debounce(async()=>{if(this['getOutputData']()['length']!==this['uploadCollection']['size'])return;const e=this['api']['getOutputCollectionState']();this['$']['*collectionState']=e,this['emit'](EventType['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['cfg']['groupOutput']&&e['totalCount']>0x0&&'success'===e['status']&&this['_createGroup'](e);},0x12c);['_handleCollectionUpdate']=(_0x5370b0,_0x3b93bb,_0xadbd4e)=>{(_0x3b93bb['size']||_0xadbd4e['size'])&&(this['$']['*groupInfo']=null),this['validationManager']['runFileValidators']('add',[..._0x3b93bb]['map'](_0xcba2ce=>_0xcba2ce['uid']));for(const _0x519c34 of _0x3b93bb)_0x519c34['getValue']('silent')||this['emit'](EventType['FILE_ADDED'],this['api']['getOutputItem'](_0x519c34['uid']));this['validationManager']['runCollectionValidators']();for(const _0x36010b of _0xadbd4e){this['$']['*uploadTrigger']['delete'](_0x36010b['uid']),this['validationManager']['cleanupValidationForEntry'](_0x36010b),_0x36010b['getValue']('abortController')?.['abort'](),_0x36010b['setMultipleValues']({'isRemoved':!0x0,'abortController':null,'isUploading':!0x1,'uploadProgress':0x0});const _0x1c2ebc=_0x36010b?.['getValue']('thumbUrl');_0x1c2ebc&&URL['revokeObjectURL'](_0x1c2ebc),this['emit'](EventType['FILE_REMOVED'],this['api']['getOutputItem'](_0x36010b['uid']));}this['$']['*uploadList']=_0x5370b0['map'](_0xa0181e=>({'uid':_0xa0181e})),this['_flushCommonUploadProgress'](),this['_flushOutputItems']();};['_handleCollectionPropertiesUpdate']=_0x3d6443=>{this['_flushOutputItems']();const _0x1b627f=this['uploadCollection'],_0x581470=[...new Set(Object['entries'](_0x3d6443)['filter'](([_0x43b4a8])=>['uploadError','fileInfo','cdnUrl','cdnUrlModifiers']['includes'](_0x43b4a8))['flatMap'](([,_0x588674])=>[..._0x588674]))];if(_0x581470['length']>0x0&&setTimeout(()=>{const _0x577822=_0x581470['filter'](_0x2d0059=>_0x3d6443['fileInfo']?.['has'](_0x2d0059)&&!!Data['getCtx'](_0x2d0059)['store']['fileInfo']);_0x577822['length']>0x0&&this['validationManager']['runFileValidators']('upload',_0x577822),this['validationManager']['runFileValidators']('change',_0x581470);}),_0x3d6443['uploadProgress']){for(const _0x912b07 of _0x3d6443['uploadProgress']){const {isUploading:_0x52b2ae,silent:_0x145c78}=Data['getCtx'](_0x912b07)['store'];_0x52b2ae&&!_0x145c78&&this['emit'](EventType['FILE_UPLOAD_PROGRESS'],this['api']['getOutputItem'](_0x912b07));}this['_flushCommonUploadProgress']();}if(_0x3d6443['isUploading'])for(const _0x37216e of _0x3d6443['isUploading']){const {isUploading:_0x1dbffc,silent:_0x4ae09b}=Data['getCtx'](_0x37216e)['store'];_0x1dbffc&&!_0x4ae09b&&this['emit'](EventType['FILE_UPLOAD_START'],this['api']['getOutputItem'](_0x37216e));}if(_0x3d6443['fileInfo']){for(const _0x2edb79 of _0x3d6443['fileInfo']){const {fileInfo:_0x1b7f15,silent:_0x4663ec}=Data['getCtx'](_0x2edb79)['store'];_0x1b7f15&&!_0x4663ec&&this['emit'](EventType['FILE_UPLOAD_SUCCESS'],this['api']['getOutputItem'](_0x2edb79));}this['cfg']['cropPreset']&&this['setInitialCrop'](),this['cfg']['cloudImageEditorAutoOpen']&&this['openCloudImageEditor']();}if(_0x3d6443['errors']){this['validationManager']['runCollectionValidators']();for(const _0x2667aa of _0x3d6443['errors']){const {errors:_0xecacbc}=Data['getCtx'](_0x2667aa)['store'];_0xecacbc['length']>0x0&&(this['emit'](EventType['FILE_UPLOAD_FAILED'],this['api']['getOutputItem'](_0x2667aa)),this['emit'](EventType['COMMON_UPLOAD_FAILED'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}));}const _0x31ff1d=_0x1b627f['findItems'](_0x573db6=>!!_0x573db6['getValue']('fileInfo')),_0x1d3ff7=_0x1b627f['findItems'](_0x259c97=>_0x259c97['getValue']('errors')['length']>0x0);_0x1b627f['size']>0x0&&0x0===_0x1d3ff7['length']&&_0x1b627f['size']===_0x31ff1d['length']&&0x0===this['$']['*collectionErrors']['length']&&this['emit'](EventType['COMMON_UPLOAD_SUCCESS'],this['api']['getOutputCollectionState']());}if(_0x3d6443['cdnUrl']){const _0x324321=[..._0x3d6443['cdnUrl']]['filter'](_0x2b0f1f=>!!this['uploadCollection']['read'](_0x2b0f1f)?.['getValue']('cdnUrl'));_0x324321['forEach'](_0x2dead4=>{this['emit'](EventType['FILE_URL_CHANGED'],this['api']['getOutputItem'](_0x2dead4));}),this['$']['*groupInfo']=null;}};['_flushCommonUploadProgress']=()=>{let _0xaddcc=0x0;const _0x17acab=[...this['$']['*uploadTrigger']]['filter'](_0x1ab1e4=>!!this['uploadCollection']['read'](_0x1ab1e4));_0x17acab['forEach'](_0x45fd95=>{const _0x28432e=this['uploadCollection']['readProp'](_0x45fd95,'uploadProgress');'number'==typeof _0x28432e&&(_0xaddcc+=_0x28432e);});const _0x3b9e1a=_0x17acab['length']?Math['round'](_0xaddcc/_0x17acab['length']):0x0;this['$']['*commonProgress']!==_0x3b9e1a&&(this['$']['*commonProgress']=_0x3b9e1a,this['emit'](EventType['COMMON_UPLOAD_PROGRESS'],this['api']['getOutputCollectionState']()));};['openCloudImageEditor'](){const [_0x6c57a3]=this['uploadCollection']['findItems'](_0x1d15ad=>!!_0x1d15ad['getValue']('fileInfo')&&_0x1d15ad['getValue']('isImage'))['map'](_0x51db74=>this['uploadCollection']['read'](_0x51db74));_0x6c57a3&&0x1===this['uploadCollection']['size']&&this['cfg']['useCloudImageEditor']&&this['hasBlockInCtx'](_0x1a3f3f=>_0x1a3f3f['activityType']===ActivityBlock['activities']['CLOUD_IMG_EDIT'])&&(this['$']['*currentActivityParams']={'internalId':_0x6c57a3['uid']},this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'],this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']));}['setInitialCrop'](){const _0x559d1c=parseCropPreset(this['cfg']['cropPreset']);if(_0x559d1c){const [_0x2a0ae3]=_0x559d1c,_0x5521b2=this['uploadCollection']['findItems'](_0x45bcc4=>!!_0x45bcc4['getValue']('fileInfo')&&_0x45bcc4['getValue']('isImage')&&!_0x45bcc4['getValue']('cdnUrlModifiers')?.['includes']('/crop/'))['map'](_0x3a7d54=>this['uploadCollection']['read'](_0x3a7d54))['filter'](Boolean);for(const _0x11d4ac of _0x5521b2){const _0x30da09=_0x11d4ac['getValue']('fileInfo');if(!_0x30da09||!_0x30da09['imageInfo']){console['warn']('Failed\x20to\x20get\x20image\x20info\x20for\x20entry',_0x11d4ac['uid']);continue;}const {width:_0x88ac80,height:_0x4f1b38}=_0x30da09['imageInfo'],_0x3078bd=calculateMaxCenteredCropFrame(_0x88ac80,_0x4f1b38,'number'==typeof _0x2a0ae3?.['width']&&'number'==typeof _0x2a0ae3?.['height']&&_0x2a0ae3['width']>0x0&&_0x2a0ae3['height']>0x0?_0x2a0ae3['width']/_0x2a0ae3['height']:0x1),_0xa250ab=createCdnUrlModifiers('crop/'+_0x3078bd['width']+'x'+_0x3078bd['height']+'/'+_0x3078bd['x']+','+_0x3078bd['y'],'preview'),_0x5d6f7c=_0x11d4ac['getValue']('cdnUrl');_0x5d6f7c?(_0x11d4ac['setMultipleValues']({'cdnUrlModifiers':_0xa250ab,'cdnUrl':createCdnUrl(_0x5d6f7c,_0xa250ab)}),0x1===this['uploadCollection']['size']&&this['cfg']['useCloudImageEditor']&&this['hasBlockInCtx'](_0x2b2697=>_0x2b2697['activityType']===ActivityBlock['activities']['CLOUD_IMG_EDIT'])&&(this['$']['*currentActivityParams']={'internalId':_0x11d4ac['uid']},this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'],this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']))):console['warn']('Failed\x20to\x20get\x20cdnUrl\x20for\x20entry',_0x11d4ac['uid']);}}}async['getMetadataFor'](_0x5da72c){const _0x6f1429=this['cfg']['metadata']||void 0x0;if('function'==typeof _0x6f1429){const _0x1041fb=this['api']['getOutputItem'](_0x5da72c);return await _0x6f1429(_0x1041fb);}return _0x6f1429;}async['getUploadClientOptions'](){const _0x4001da=this['$']['*secureUploadsManager'],_0x30d980=await _0x4001da['getSecureToken']()['catch'](()=>null);return{'store':this['cfg']['store'],'publicKey':this['cfg']['pubkey'],'baseCDN':this['cfg']['cdnCname'],'baseURL':this['cfg']['baseUrl'],'userAgent':customUserAgent,'integration':this['cfg']['userAgentIntegration'],'secureSignature':_0x30d980?.['secureSignature'],'secureExpire':_0x30d980?.['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 this['uploadCollection']['items']()['map'](_0x2e38fb=>this['api']['getOutputItem'](_0x2e38fb));}};UploaderBlock['extSrcList']=Object['freeze']({...ExternalUploadSource}),UploaderBlock['sourceTypes']=Object['freeze']({...UploadSource});var ActivityHeader=class extends ActivityBlock{},canUsePermissionsApi=()=>void 0x0!==navigator['permissions'],DEFAULT_VIDEO_CONFIG={'width':{'ideal':0x780},'height':{'ideal':0x438},'frameRate':{'ideal':0x1e}},DEFAULT_PERMISSIONS=['camera','microphone'];function formatTime(_0x39b6bb){return Math['floor'](_0x39b6bb/0x3c)['toString']()['padStart'](0x2,'0')+':'+Math['floor'](_0x39b6bb%0x3c)['toString']()['padStart'](0x2,'0');}var DEFAULT_PICTURE_FORMAT='image/jpeg',DEFAULT_VIDEO_FORMAT='video/webm',CameraSource=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['CAMERA'];['_unsubPermissions']=null;['_capturing']=!0x1;['_chunks']=[];['_mediaRecorder']=null;['_stream']=null;['_selectedAudioId']=null;['_selectedCameraId']=null;['_activeTab']=null;['_options']={};['_canvas']=null;['_ctx']=null;['_cameraDevices']=[];['_audioDevices']=[];['_permissionResponses']={};constructor(){super(),this['init$']={...this['init$'],'video':null,'videoTransformCss':null,'videoHidden':!0x0,'messageHidden':!0x0,'requestBtnHidden':canUsePermissionsApi(),'cameraSelectOptions':null,'cameraSelectHidden':!0x0,'l10nMessage':'','switcher':null,'panels':null,'timer':null,'timerHidden':!0x0,'cameraHidden':!0x0,'cameraActionsHidden':!0x0,'audioSelectOptions':null,'audioSelectHidden':!0x0,'audioSelectDisabled':!0x0,'audioToggleMicrophoneHidden':!0x0,'tabCameraHidden':!0x0,'tabVideoHidden':!0x0,'currentIcon':'camera-full','currentTimelineIcon':'play','toggleMicrophoneIcon':'microphone','_startTime':0x0,'_elapsedTime':0x0,'_animationFrameId':null,'mutableClassButton':'uc-shot-btn\x20uc-camera-action','onCameraSelectChange':_0x54b4a8=>{const _0xebd738=_0x54b4a8['target'];_0xebd738&&(this['_selectedCameraId']=_0xebd738['value'],this['_capture']());},'onAudioSelectChange':_0x71ef6b=>{const _0x387671=_0x71ef6b['target'];_0x387671&&(this['_selectedAudioId']=_0x387671['value'],this['_capture']());},'onCancel':()=>{this['historyBack']();},'onShot':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'shot-camera','node':this['tagName'],'tabId':this['_activeTab']}}}),this['_shot']();},'onRequestPermissions':()=>this['_capture'](),'onStartCamera':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'start-camera','node':this['tagName'],'tabId':this['_activeTab']}}}),this['_chooseActionWithCamera']();},'onStartRecording':()=>this['_startRecording'](),'onStopRecording':()=>this['_stopRecording'](),'onToggleRecording':()=>this['_toggleRecording'](),'onToggleAudio':()=>this['_toggleEnableAudio'](),'onRetake':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'retake-camera','node':this['tagName'],'tabId':this['_activeTab']}}}),this['_retake']();},'onAccept':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'accept-camera','node':this['tagName'],'tabId':this['_activeTab']}}}),this['_accept']();},'onClickTab':_0x4fd275=>{const _0x1ac581=_0x4fd275['currentTarget'],_0x2febe5=_0x1ac581?.['getAttribute']('data-id');_0x2febe5&&this['_handleActiveTab'](_0x2febe5);}};}['_chooseActionWithCamera']=()=>{if(this['_activeTab']===CameraSourceTypes['PHOTO']&&this['_shot'](),this['_activeTab']===CameraSourceTypes['VIDEO']){if('recording'===this['_mediaRecorder']?.['state'])return void this['_stopRecording']();this['_startRecording']();}};['_updateTimer']=()=>{const _0x569380=Math['floor']((performance['now']()-this['$']['_startTime']+this['$']['_elapsedTime'])/0x3e8);if('number'==typeof this['cfg']['maxVideoRecordingDuration']&&this['cfg']['maxVideoRecordingDuration']>0x0){const _0x36c1cc=this['cfg']['maxVideoRecordingDuration']-_0x569380;if(_0x36c1cc<=0x0){const _0xf518e7=this['ref']['timer'];return _0xf518e7&&(_0xf518e7['textContent']=formatTime(_0x36c1cc)),void this['_stopRecording']();}const _0x5990c2=this['ref']['timer'];_0x5990c2&&(_0x5990c2['textContent']=formatTime(_0x36c1cc));}else{const _0xc7090a=this['ref']['timer'];_0xc7090a&&(_0xc7090a['textContent']=formatTime(_0x569380));}this['_animationFrameId']=requestAnimationFrame(this['_updateTimer']);};['_startTimer']=()=>{this['$']['_startTime']=performance['now'](),this['$']['_elapsedTime']=0x0,this['_updateTimer']();};['_stopTimer']=()=>{this['_animationFrameId']&&cancelAnimationFrame(this['_animationFrameId']);};['_startTimeline']=()=>{const _0x362668=this['ref']['video'];if(!_0x362668)return;const _0x1b2995=_0x362668['currentTime'],_0x1503a5=_0x362668['duration']||0x1,_0x11cad0=this['ref']['line'];_0x11cad0&&(_0x11cad0['style']['transform']='scaleX('+_0x1b2995/_0x1503a5+')');const _0x37f1d5=this['ref']['timer'];_0x37f1d5&&(_0x37f1d5['textContent']=formatTime(_0x1b2995)),this['_animationFrameId']=requestAnimationFrame(this['_startTimeline']);};['_stopTimeline']=()=>{this['_animationFrameId']&&cancelAnimationFrame(this['_animationFrameId']);};['_animationFrameId']=null;['_startRecording']=()=>{try{this['_chunks']=[],this['_options']={...this['cfg']['mediaRecorderOptions']};const {mimeType:_0x138843}=this['cfg']['mediaRecorderOptions']||{};_0x138843&&MediaRecorder['isTypeSupported'](_0x138843)?this['_options']['mimeType']=_0x138843:MediaRecorder['isTypeSupported'](DEFAULT_VIDEO_FORMAT)?this['_options']['mimeType']=DEFAULT_VIDEO_FORMAT:this['_options']['mimeType']='video/mp4',this['_stream']&&(this['_mediaRecorder']=new MediaRecorder(this['_stream'],this['_options']),this['_mediaRecorder']['start'](),this['_mediaRecorder']['addEventListener']('dataavailable',_0x4537e7=>{this['_chunks']['push'](_0x4537e7['data']);}),this['_startTimer'](),this['classList']['add']('uc-recording'),this['_setCameraState'](CameraSourceEvents['PLAY']));}catch(_0x3b8d44){console['error']('Failed\x20to\x20start\x20recording',_0x3b8d44),this['telemetryManager']['sendEventError'](_0x3b8d44,'camera\x20recording.\x20Failed\x20to\x20start\x20recording');}};['_stopRecording']=()=>{this['_mediaRecorder']?.['addEventListener']('stop',()=>{this['_previewVideo'](),this['_stopTimer'](),this['_setCameraState'](CameraSourceEvents['STOP']);}),this['_mediaRecorder']?.['stop'](),this['classList']['remove']('uc-recording'),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'stop-camera','node':this['tagName'],'tabId':this['_activeTab']}}});};['_toggleRecording']=()=>{'recording'!==this['_mediaRecorder']?.['state']&&(!this['ref']['video']['paused']&&!this['ref']['video']['ended']&&this['ref']['video']['readyState']>0x2?this['ref']['video']['pause']():this['ref']['video']['paused']&&this['ref']['video']['play']());};['_toggleEnableAudio']=()=>{this['_stream']?.['getAudioTracks']()['forEach'](_0x3f0e3c=>{_0x3f0e3c['enabled']=!_0x3f0e3c['enabled'],this['$']['toggleMicrophoneIcon']=_0x3f0e3c['enabled']?'microphone':'microphone-mute',this['$']['audioSelectDisabled']=!_0x3f0e3c['enabled'];});};['_previewVideo']=()=>{try{const _0xa7b8af=new Blob(this['_chunks'],{'type':this['_mediaRecorder']?.['mimeType']}),_0x1e5738=URL['createObjectURL'](_0xa7b8af),_0x366b01=this['ref']['video'];if(!_0x366b01)return;_0x366b01['muted']=!0x1,_0x366b01['volume']=0x1,this['$']['video']=null,_0x366b01['src']=_0x1e5738,_0x366b01['addEventListener']('play',()=>{this['_startTimeline'](),this['set$']({'currentTimelineIcon':'pause'});}),_0x366b01['addEventListener']('pause',()=>{this['set$']({'currentTimelineIcon':'play'}),this['_stopTimeline']();});}catch(_0x5d97ed){console['error']('Failed\x20to\x20preview\x20video',_0x5d97ed),this['telemetryManager']['sendEventError'](_0x5d97ed,'camera\x20previewing.\x20Failed\x20to\x20preview\x20video');}};['_retake']=()=>{if(this['_setCameraState'](CameraSourceEvents['RETAKE']),this['_activeTab']===CameraSourceTypes['VIDEO']){this['$']['video']=this['_stream'];const _0x4642c6=this['ref']['video'];_0x4642c6&&(_0x4642c6['muted']=!0x0);}this['ref']['video']?.['play']?.();};['_accept']=()=>{if(this['_setCameraState'](CameraSourceEvents['ACCEPT']),this['_activeTab']===CameraSourceTypes['PHOTO'])return void this['_canvas']?.['toBlob'](_0x177aca=>{if(!_0x177aca)return;const _0x6dd175=this['_createFile']('camera','jpeg',DEFAULT_PICTURE_FORMAT,_0x177aca);this['_toSend'](_0x6dd175);},DEFAULT_PICTURE_FORMAT);const _0x51dff8=new Blob(this['_chunks'],{'type':this['_mediaRecorder']?.['mimeType']}),_0x33eb77=this['_guessExtensionByMime'](this['_mediaRecorder']?.['mimeType']),_0x4f45b7=this['_createFile']('video',_0x33eb77,'video/'+_0x33eb77,_0x51dff8);this['_toSend'](_0x4f45b7),this['_chunks']=[];};['_handlePhoto']=_0x47b9eb=>{_0x47b9eb===CameraSourceEvents['SHOT']&&this['set$']({'tabVideoHidden':!0x0,'cameraHidden':!0x0,'tabCameraHidden':!0x0,'cameraActionsHidden':!0x1,'cameraSelectHidden':!0x0}),_0x47b9eb!==CameraSourceEvents['RETAKE']&&_0x47b9eb!==CameraSourceEvents['ACCEPT']||this['set$']({'tabVideoHidden':!this['_cameraModes']['includes'](CameraSourceTypes['VIDEO']),'tabCameraHidden':!this['_cameraModes']['includes'](CameraSourceTypes['PHOTO']),'cameraHidden':!0x1,'cameraActionsHidden':!0x0,'cameraSelectHidden':this['_cameraDevices']['length']<=0x1});};['_handleVideo']=_0x3d9178=>{_0x3d9178===CameraSourceEvents['PLAY']&&this['set$']({'timerHidden':!0x1,'tabCameraHidden':!0x0,'cameraSelectHidden':!0x0,'audioSelectHidden':!0x0,'currentTimelineIcon':'pause','currentIcon':'square','mutableClassButton':'uc-shot-btn\x20uc-camera-action\x20uc-stop-record'}),_0x3d9178===CameraSourceEvents['STOP']&&this['set$']({'timerHidden':!0x1,'cameraHidden':!0x0,'audioToggleMicrophoneHidden':!0x0,'cameraActionsHidden':!0x1}),_0x3d9178!==CameraSourceEvents['RETAKE']&&_0x3d9178!==CameraSourceEvents['ACCEPT']||this['set$']({'timerHidden':!0x0,'tabVideoHidden':!this['_cameraModes']['includes'](CameraSourceTypes['VIDEO']),'tabCameraHidden':!this['_cameraModes']['includes'](CameraSourceTypes['PHOTO']),'cameraHidden':!0x1,'cameraActionsHidden':!0x0,'audioToggleMicrophoneHidden':!this['cfg']['enableAudioRecording'],'currentIcon':'video-camera-full','mutableClassButton':'uc-shot-btn\x20uc-camera-action','audioSelectHidden':!this['cfg']['enableAudioRecording']||this['_audioDevices']['length']<=0x1,'cameraSelectHidden':this['_cameraDevices']['length']<=0x1});};['_setCameraState']=_0x38ec65=>{this['_activeTab']!==CameraSourceTypes['PHOTO']||'shot'!==_0x38ec65&&'retake'!==_0x38ec65&&'accept'!==_0x38ec65||this['_handlePhoto'](_0x38ec65),this['_activeTab']!==CameraSourceTypes['VIDEO']||'play'!==_0x38ec65&&'stop'!==_0x38ec65&&'retake'!==_0x38ec65&&'accept'!==_0x38ec65&&'pause'!==_0x38ec65&&'resume'!==_0x38ec65||this['_handleVideo'](_0x38ec65);};['_shot'](){if(this['_setCameraState']('shot'),this['_canvas']=document['createElement']('canvas'),this['_ctx']=this['_canvas']['getContext']('2d'),!this['_ctx'])throw new Error('Failed\x20to\x20get\x20canvas\x20context');this['_canvas']['height']=this['ref']['video']['videoHeight'],this['_canvas']['width']=this['ref']['video']['videoWidth'],this['cfg']['cameraMirror']&&(this['_ctx']['translate'](this['_canvas']['width'],0x0),this['_ctx']['scale'](-0x1,0x1)),this['_ctx']['drawImage'](this['ref']['video'],0x0,0x0),this['ref']['video']['pause']();}['_handleActiveTab']=_0xfb5ad3=>{const _0x53b641=this['ref']['switcher'];_0x53b641?.['querySelectorAll']('button')['forEach'](_0x3537a7=>{_0x3537a7['classList']['toggle']('uc-active',_0x3537a7['getAttribute']('data-id')===_0xfb5ad3);}),_0xfb5ad3===CameraSourceTypes['PHOTO']&&this['set$']({'currentIcon':'camera-full','audioSelectHidden':!0x0,'audioToggleMicrophoneHidden':!0x0}),_0xfb5ad3===CameraSourceTypes['VIDEO']&&this['set$']({'currentTimelineIcon':'play','currentIcon':'video-camera-full','audioSelectHidden':!this['cfg']['enableAudioRecording']||this['_audioDevices']['length']<=0x1,'audioToggleMicrophoneHidden':!this['cfg']['enableAudioRecording']}),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'camera-tab-switch','node':this['tagName'],'tabId':_0xfb5ad3}}}),this['_activeTab']=_0xfb5ad3;};['_createFile']=(_0x21b67e,_0x3ba422,_0x3085b1,_0x57ea05)=>{const _0x79700f=Date['now']();return new File([_0x57ea05],_0x21b67e+'-'+_0x79700f+'.'+_0x3ba422,{'lastModified':_0x79700f,'type':_0x3085b1});};['_guessExtensionByMime'](_0x5d9207){const _0x4aceca={'mp4':'mp4','ogg':'ogg','webm':'webm','quicktime':'mov','x-matroska':'mkv'};if(''===_0x5d9207)return'webm';if(_0x5d9207){const _0x388cab=_0x5d9207['split']('/');if('video'===_0x388cab?.[0x0]){const _0x5601b6=_0x388cab['slice'](0x1)['join']('/'),_0x45d750=_0x5601b6?.['split'](';')[0x0];if(_0x45d750&&_0x4aceca[_0x45d750])return _0x4aceca[_0x45d750];}}return'avi';}['_toSend']=_0x2cdbe8=>{this['api']['addFileFromObject'](_0x2cdbe8,{'source':UploadSource['CAMERA']}),this['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']}),this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']);};get['_cameraModes'](){return stringToArray(this['cfg']['cameraModes'])['filter'](_0x3e162e=>_0x3e162e===CameraSourceTypes['PHOTO']||_0x3e162e===CameraSourceTypes['VIDEO']);}['_setPermissionsState']=debounce(e=>{this['classList']['toggle']('uc-initialized','granted'===e);const i=this['_activeTab']===CameraSourceTypes['VIDEO']&&this['cfg']['enableAudioRecording'],n=this['_activeTab']===CameraSourceTypes['PHOTO']?'camera-full':'video-camera-full';'granted'===e?this['set$']({'videoHidden':!0x1,'cameraHidden':!0x1,'tabCameraHidden':!this['_cameraModes']['includes'](CameraSourceTypes['PHOTO']),'tabVideoHidden':!this['_cameraModes']['includes'](CameraSourceTypes['VIDEO']),'messageHidden':!0x0,'timerHidden':!0x0,'currentIcon':n,'audioToggleMicrophoneHidden':!i,'audioSelectHidden':!i}):'prompt'===e?(this['$']['l10nMessage']='camera-permissions-prompt',this['set$']({'videoHidden':!0x0,'cameraHidden':!0x0,'tabCameraHidden':!0x0,'messageHidden':!0x1}),this['_stopCapture']()):(this['$']['l10nMessage']='camera-permissions-denied',this['set$']({'videoHidden':!0x0,'messageHidden':!0x1,'tabCameraHidden':!this['_cameraModes']['includes'](CameraSourceTypes['PHOTO']),'tabVideoHidden':!this['_cameraModes']['includes'](CameraSourceTypes['VIDEO']),'cameraActionsHidden':!0x0,'mutableClassButton':'uc-shot-btn\x20uc-camera-action'}),this['_stopCapture']());},0x12c);['_makeStreamInactive']=()=>{if(!this['_stream'])return!0x1;const _0x1caead=this['_stream']?.['getAudioTracks'](),_0x3baf50=this['_stream']?.['getVideoTracks']();return _0x1caead['forEach'](_0x59ba5d=>{_0x59ba5d['stop']();}),_0x3baf50['forEach'](_0x2ead1f=>{_0x2ead1f['stop']();}),!0x0;};['_stopCapture']=()=>{if(this['_capturing']){this['ref']['video']['volume']=0x0;const _0x5626a9=this['$']['video']?.['getTracks']?.();_0x5626a9?.[0x0]?.['stop'](),this['$']['video']=null,this['_makeStreamInactive'](),this['_stopTimer'](),this['_capturing']=!0x1;}};['_capture']=async()=>{const _0x2fe3bd={'video':{...DEFAULT_VIDEO_CONFIG},'audio':!!this['cfg']['enableAudioRecording']&&{}};this['_selectedCameraId']&&(_0x2fe3bd['video']={'deviceId':{'exact':this['_selectedCameraId']}}),this['_selectedAudioId']&&this['cfg']['enableAudioRecording']&&(_0x2fe3bd['audio']={'deviceId':{'exact':this['_selectedAudioId']}}),this['ref']['video']&&(this['ref']['video']['volume']=0x0);try{this['_setPermissionsState']('prompt'),this['_stream']=await navigator['mediaDevices']['getUserMedia'](_0x2fe3bd),this['_stream']['addEventListener']('inactive',()=>{this['_setPermissionsState']('denied');}),this['$']['video']=this['_stream'],this['_capturing']=!0x0,this['_setPermissionsState']('granted');}catch(_0x1434c8){this['_setPermissionsState']('denied'),console['log']('Failed\x20to\x20capture\x20camera',_0x1434c8),this['telemetryManager']['sendEventError'](_0x1434c8,'camera\x20capturing.\x20Failed\x20to\x20capture\x20camera');}};['_handlePermissionsChange']=()=>{this['_capture']();};['_permissionAccess']=async()=>{try{for(const _0x366a68 of DEFAULT_PERMISSIONS){const _0x84bc6f=await navigator['permissions']['query']({'name':_0x366a68});this['_permissionResponses'][_0x366a68]=_0x84bc6f,_0x84bc6f['addEventListener']('change',this['_handlePermissionsChange']);}}catch(_0x1d76cf){console['log']('Failed\x20to\x20use\x20permissions\x20API.\x20Fallback\x20to\x20manual\x20request\x20mode.',_0x1d76cf),this['telemetryManager']['sendEventError'](_0x1d76cf,'camera\x20permissions.\x20Failed\x20to\x20use\x20permissions\x20API'),this['_capture']();}};['_getPermission']=()=>{};['_requestDeviceAccess']=async()=>{try{await navigator['mediaDevices']['getUserMedia']({'video':!0x0,'audio':this['cfg']['enableAudioRecording']}),await this['_getDevices'](),navigator['mediaDevices']['addEventListener']('devicechange',this['_getDevices']);}catch(_0x26a22e){this['telemetryManager']['sendEventError'](_0x26a22e,'camera\x20devices.\x20Failed\x20to\x20get\x20user\x20media'),console['log']('Failed\x20to\x20get\x20user\x20media',_0x26a22e);}};['_getDevices']=async()=>{try{const _0x1d5c1e=await navigator['mediaDevices']['enumerateDevices']();this['_cameraDevices']=_0x1d5c1e['filter'](_0x175f27=>'videoinput'===_0x175f27['kind'])['map']((_0x22a87a,_0x42abd1)=>({'text':_0x22a87a['label']['trim']()||this['l10n']('caption-camera')+'\x20'+(_0x42abd1+0x1),'value':_0x22a87a['deviceId']})),this['_audioDevices']=this['cfg']['enableAudioRecording']?_0x1d5c1e['filter'](_0x2b6b5f=>'audioinput'===_0x2b6b5f['kind'])['map'](_0x3d50f1=>({'text':_0x3d50f1['label']['trim'](),'value':_0x3d50f1['deviceId']})):[],this['_cameraDevices']['length']>0x1&&this['set$']({'cameraSelectOptions':this['_cameraDevices'],'cameraSelectHidden':!0x1}),this['_selectedCameraId']=this['_cameraDevices'][0x0]?.['value']??null,this['_audioDevices']['length']>0x1&&this['set$']({'audioSelectOptions':this['_audioDevices'],'audioSelectHidden':!0x1}),this['_selectedAudioId']=this['_audioDevices'][0x0]?.['value']??null;}catch(_0x4a340f){this['telemetryManager']['sendEventError'](_0x4a340f,'camera\x20devices.\x20Failed\x20to\x20get\x20devices'),console['log']('Failed\x20to\x20get\x20devices',_0x4a340f);}};['_onActivate']=async()=>{await this['_permissionAccess'](),await this['_requestDeviceAccess'](),await this['_capture'](),this['_handleCameraModes'](this['_cameraModes']);};['_onDeactivate']=async()=>{this['_unsubPermissions']&&this['_unsubPermissions'](),(Boolean(window['chrome'])||this['_setPermissionsState']('denied'),this['_stopCapture']());};['_handleCameraModes']=_0xf5b187=>{this['$']['tabVideoHidden']=!_0xf5b187['includes'](CameraSourceTypes['VIDEO']),this['$']['tabCameraHidden']=!_0xf5b187['includes'](CameraSourceTypes['PHOTO']);const _0x172f01=_0xf5b187[0x0];!_0x172f01||this['_activeTab']&&_0xf5b187['includes'](this['_activeTab'])||this['_handleActiveTab'](_0x172f01);};['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':this['_onActivate'],'onDeactivate':this['_onDeactivate']}),this['subConfigValue']('cameraMirror',_0x3d0f0d=>{this['$']['videoTransformCss']=_0x3d0f0d?'scaleX(-1)':null;}),this['subConfigValue']('enableAudioRecording',_0x15f222=>{this['$']['audioToggleMicrophoneHidden']=!_0x15f222,this['$']['audioSelectDisabled']=!_0x15f222;}),this['subConfigValue']('cameraModes',_0x2dfa54=>{if(!this['isActivityActive'])return;const _0x1d3d6d=deserializeCsv(_0x2dfa54);this['_handleCameraModes'](_0x1d3d6d['filter'](_0x50fe15=>_0x50fe15===CameraSourceTypes['PHOTO']||_0x50fe15===CameraSourceTypes['VIDEO']));});}['_destroy'](){for(const _0x2b451f of DEFAULT_PERMISSIONS)this['_permissionResponses'][_0x2b451f]?.['removeEventListener']('change',this['_handlePermissionsChange']);navigator['mediaDevices']?.['removeEventListener']('devicechange',this['_getDevices']);}async['destroyCallback'](){super['destroyCallback'](),this['_destroy']();}};CameraSource['template']='\x0a\x20\x20<uc-activity-header>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*historyBack\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:back\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22back\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div\x20set=\x22@hidden:\x20!cameraSelectHidden\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22camera\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22caption-camera\x22></span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<uc-select\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-camera-select\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22$.options:\x20cameraSelectOptions;\x20@hidden:\x20cameraSelectHidden;\x20onchange:\x20onCameraSelectChange\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20</uc-select>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-close-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*closeModal\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22close\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-activity-header>\x0a\x20\x20<div\x20class=\x22uc-content\x22>\x0a\x20\x20\x20\x20<video\x0a\x20\x20\x20\x20\x20\x20muted\x0a\x20\x20\x20\x20\x20\x20autoplay\x0a\x20\x20\x20\x20\x20\x20playsinline\x0a\x20\x20\x20\x20\x20\x20set=\x22srcObject:\x20video;\x20style.transform:\x20videoTransformCss;\x20@hidden:\x20videoHidden\x22\x0a\x20\x20\x20\x20\x20\x20ref=\x22video\x22\x0a\x20\x20\x20\x20></video>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-message-box\x22\x20set=\x22@hidden:\x20messageHidden\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22l10nMessage\x22></span>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onRequestPermissions;\x20@hidden:\x20requestBtnHidden\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20l10n=\x22camera-permissions-request\x22\x0a\x20\x20\x20\x20\x20\x20></button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20class=\x22uc-controls\x22>\x0a\x20\x20\x20\x20<div\x20ref=\x22switcher\x22\x20class=\x22uc-switcher\x22\x20set=\x22@hidden:!timerHidden\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-id=\x22photo\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-switch\x20uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onClickTab;\x20\x20@hidden:\x20tabCameraHidden\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22camera\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-id=\x22video\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-switch\x20uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onClickTab;\x20@hidden:\x20tabVideoHidden\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22video-camera\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-secondary-btn\x20uc-recording-timer\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22@hidden:timerHidden;\x20onclick:\x20onToggleRecording\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20currentTimelineIcon\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20<span\x20ref=\x22timer\x22>\x2000:00\x20</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20ref=\x22line\x22\x20class=\x22uc-line\x22></span>\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<div\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-camera-actions\x20uc-camera-action\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22@hidden:\x20cameraActionsHidden\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-secondary-btn\x22\x20set=\x22onclick:\x20onRetake\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Retake\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onAccept\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-testid=\x22accept\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Accept\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-shot-btn\x20uc-camera-action\x22\x0a\x20\x20\x20\x20\x20\x20data-testid=\x22shot\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onStartCamera;\x20@class:\x20mutableClassButton;\x20@hidden:\x20cameraHidden;\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20currentIcon\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<div\x20class=\x22uc-select\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-btn-microphone\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onToggleAudio;\x20@hidden:\x20audioToggleMicrophoneHidden;\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20set=\x22@name:toggleMicrophoneIcon\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20\x20\x20<uc-select\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-audio-select\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22$.options:\x20audioSelectOptions;\x20onchange:\x20onAudioSelectChange;\x20@hidden:\x20audioSelectHidden;\x20@disabled:\x20audioSelectDisabled\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20</uc-select>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a';var TRANSPARENT_PIXEL_SRC='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';function normalize(..._0x37794a){return _0x37794a['reduce']((_0x4d7ebd,_0x1d41fa)=>{if('string'==typeof _0x1d41fa)return _0x4d7ebd[_0x1d41fa]=!0x0,_0x4d7ebd;for(const _0x4d1b7e of Object['keys'](_0x1d41fa))_0x4d7ebd[_0x4d1b7e]=_0x1d41fa[_0x4d1b7e];return _0x4d7ebd;},{});}function classNames(..._0x53abab){const _0x5d3249=normalize(..._0x53abab);return Object['keys'](_0x5d3249)['reduce']((_0x2a20aa,_0x1066e0)=>(_0x5d3249[_0x1066e0]&&_0x2a20aa['push'](_0x1066e0),_0x2a20aa),[])['join']('\x20');}function applyClassNames(_0x477611,..._0x52ab2a){const _0x7b690f=normalize(..._0x52ab2a);for(const _0x2f48f3 of Object['keys'](_0x7b690f))_0x477611['classList']['toggle'](_0x2f48f3,Boolean(_0x7b690f[_0x2f48f3]));}var isTabIdValue=_0x51aacf=>ALL_TABS['includes'](_0x51aacf),parseTabs=_0x55c844=>{if(!_0x55c844)return ALL_TABS;const _0x516f90=deserializeCsv(_0x55c844)['filter'](isTabIdValue);return 0x0===_0x516f90['length']?ALL_TABS:_0x516f90;};function initState(_0x5612b9){return{'*originalUrl':null,'*faderEl':null,'*cropperEl':null,'*imgEl':null,'*imgContainerEl':null,'*networkProblems':!0x1,'*imageSize':null,'*editorTransformations':{},'*cropPresetList':[],'*currentAspectRatio':null,'*tabList':ALL_TABS,'*tabId':TabId['CROP'],'entry':null,'extension':null,'editorMode':!0x1,'modalCaption':'','isImage':!0x1,'msg':'','src':TRANSPARENT_PIXEL_SRC,'fileType':'','showLoader':!0x1,'uuid':null,'cdnUrl':null,'cropPreset':'','tabs':serializeCsv([...ALL_TABS]),'presence.networkProblems':!0x1,'presence.modalCaption':!0x0,'presence.editorToolbar':!0x1,'presence.viewerToolbar':!0x0,'*on.retryNetwork':()=>{const _0x2a7b8d=_0x5612b9['querySelectorAll']('img');for(const _0x5ee582 of _0x2a7b8d){const _0x1d69cd=_0x5ee582['src'];_0x5ee582['src']=TRANSPARENT_PIXEL_SRC,_0x5ee582['src']=_0x1d69cd;}_0x5612b9['$']['*networkProblems']=!0x1;},'*on.apply':_0x386983=>{if(!_0x386983)return;const _0x596c79=_0x5612b9['$']['*originalUrl'],_0x1ddc18=createCdnUrlModifiers(transformationsToOperations(_0x386983),'preview'),_0x31d33e={'originalUrl':_0x596c79,'cdnUrlModifiers':_0x1ddc18,'cdnUrl':createCdnUrl(_0x596c79,_0x1ddc18),'transformations':_0x386983};_0x5612b9['dispatchEvent'](new CustomEvent('apply',{'detail':_0x31d33e,'bubbles':!0x0,'composed':!0x0})),_0x5612b9['remove']();},'*on.cancel':()=>{_0x5612b9['remove'](),_0x5612b9['dispatchEvent'](new CustomEvent('cancel',{'bubbles':!0x0,'composed':!0x0}));}};}var svg_sprite_default2='<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>',TEMPLATE='\x0a\x20\x20'+svg_sprite_default2+'\x0a\x20\x20<div\x20class=\x22uc-wrapper\x20uc-wrapper_desktop\x22>\x0a\x20\x20\x20\x20<uc-presence-toggle\x20class=\x22uc-network_problems_splash\x22\x20set=\x22visible:\x20presence.networkProblems;\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-network_problems_content\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-network_problems_icon\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22sad\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-network_problems_text\x22>Network\x20error</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-network_problems_footer\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20theme=\x22primary\x22\x20text=\x22Retry\x22\x20set=\x22onclick:\x20*on.retryNetwork\x22></uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-viewport\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-file_type_outer\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-file_type\x22>{{fileType}}</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-image_container\x22\x20ref=\x22img-container-el\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22'+TRANSPARENT_PIXEL_SRC+'\x22\x20class=\x22uc-image\x20uc-image_visible_from_editor\x22\x20ref=\x22img-el\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-editor-image-cropper\x20ref=\x22cropper-el\x22></uc-editor-image-cropper>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-editor-image-fader\x20ref=\x22fader-el\x22></uc-editor-image-fader>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-info_pan\x22>{{msg}}</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-toolbar\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-line-loader-ui\x20set=\x22active:\x20showLoader\x22></uc-line-loader-ui>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-toolbar_content\x20uc-toolbar_content__editor\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-editor-toolbar></uc-editor-toolbar>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a',CloudImageEditorBlock=class extends Block{['ctxOwner']=!0x0;static ['styleAttrs']=['uc-cloud-image-editor'];['_debouncedShowLoader']=debounce(this['_showLoader']['bind'](this),0x12c);constructor(){super(),this['init$']={...this['init$'],...initState(this)};}['_showLoader'](_0x300c7a){this['$']['showLoader']=_0x300c7a;}['_waitForSize'](){return new Promise((_0x57047a,_0x3c8151)=>{const _0x3bf94b=window['setTimeout'](()=>{_0x3c8151(new Error('[cloud-image-editor]\x20timeout\x20waiting\x20for\x20non-zero\x20container\x20size'));},0xbb8),_0x5b47de=new ResizeObserver(_0x1f5a9f=>{const [_0xc9f964]=_0x1f5a9f;_0xc9f964&&_0xc9f964['contentRect']['width']>0x0&&_0xc9f964['contentRect']['height']>0x0&&(window['clearTimeout'](_0x3bf94b),_0x5b47de['disconnect'](),window['setTimeout'](()=>_0x57047a(),0x0));});_0x5b47de['observe'](this);});}['initCallback'](){super['initCallback'](),this['$']['*faderEl']=this['ref']['fader-el'],this['$']['*cropperEl']=this['ref']['cropper-el'],this['$']['*imgContainerEl']=this['ref']['img-container-el'],this['initEditor']();}async['updateImage'](){if(this['isConnected']){if(await this['_waitForSize'](),this['$']['cdnUrl']){const _0x33bc36=this['$']['cdnUrl'],_0x3fa971=extractUuid(_0x33bc36),_0x241f29=createOriginalUrl(_0x33bc36,_0x3fa971);if(_0x241f29===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x241f29;const _0xf0412b=operationsToTransformations(extractOperations(_0x33bc36));this['$']['*editorTransformations']=_0xf0412b;}else{if(!this['$']['uuid'])throw new Error('No\x20UUID\x20nor\x20CDN\x20URL\x20provided');{const _0x4b7986=createOriginalUrl(this['cfg']['cdnCname'],this['$']['uuid']);if(_0x4b7986===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x4b7986,this['$']['*editorTransformations']={};}}this['$']['*tabId']===TabId['CROP']?this['$']['*cropperEl']?.['deactivate']({'reset':!0x0}):this['$']['*faderEl']?.['deactivate']();try{const _0x57c9b1=this['$']['*originalUrl'],_0x1efe74=await this['proxyUrl'](createCdnUrl(_0x57c9b1,createCdnUrlModifiers('json'))),_0x37b64e=await fetch(_0x1efe74)['then'](_0x3a5bc7=>_0x3a5bc7['json']()),{width:_0x28d249,height:_0x3db406}=_0x37b64e;this['$']['*imageSize']={'width':_0x28d249,'height':_0x3db406},this['$']['*tabId']===TabId['CROP']?this['$']['*cropperEl']?.['activate'](this['$']['*imageSize']):this['$']['*faderEl']?.['activate']({'url':_0x57c9b1});}catch(_0x3b3317){_0x3b3317&&(this['telemetryManager']['sendEventError'](_0x3b3317,'cloud\x20editor\x20image.\x20Failed\x20to\x20load\x20image\x20info'),console['error']('Failed\x20to\x20load\x20image\x20info',_0x3b3317));}}}async['initEditor'](){try{await this['_waitForSize']();}catch(_0x4f8142){return void(this['isConnected']&&console['error'](_0x4f8142['message']));}this['ref']['img-el']['addEventListener']('load',()=>{this['_debouncedShowLoader'](!0x1),this['$']['src']!==TRANSPARENT_PIXEL_SRC&&(this['$']['*networkProblems']=!0x1);}),this['ref']['img-el']['addEventListener']('error',()=>{this['_debouncedShowLoader'](!0x1),this['$']['*networkProblems']=!0x0;}),this['sub']('src',_0xb16d71=>{const _0x2c85fc=this['ref']['img-el'];_0x2c85fc['src']!==_0xb16d71&&(_0x2c85fc['src']=_0xb16d71||TRANSPARENT_PIXEL_SRC);}),this['sub']('tabs',_0x251707=>{this['$']['*tabList']=parseTabs(_0x251707);}),this['sub']('*tabId',_0x4ebefe=>{this['ref']['img-el']['className']=classNames('uc-image',{'uc-image_hidden_to_cropper':_0x4ebefe===TabId['CROP'],'uc-image_hidden_effects':_0x4ebefe!==TabId['CROP']});}),this['classList']['add']('uc-editor_ON'),this['sub']('*networkProblems',_0x292a25=>{this['$']['presence.networkProblems']=_0x292a25,this['$']['presence.modalCaption']=!_0x292a25;}),this['sub']('*editorTransformations',_0x3a201c=>{if(0x0===Object['keys'](_0x3a201c)['length'])return;const _0xae755d=this['$']['*originalUrl'],_0xc5004f=createCdnUrlModifiers(transformationsToOperations(_0x3a201c),'preview'),_0x20e206={'originalUrl':_0xae755d,'cdnUrlModifiers':_0xc5004f,'cdnUrl':createCdnUrl(_0xae755d,_0xc5004f),'transformations':_0x3a201c};this['dispatchEvent'](new CustomEvent('change',{'detail':_0x20e206,'bubbles':!0x0,'composed':!0x0}));},!0x1),this['sub']('uuid',_0x37e38f=>_0x37e38f&&this['updateImage']()),this['sub']('cdnUrl',_0x1a3ed2=>_0x1a3ed2&&this['updateImage']()),this['sub']('cropPreset',_0x58a980=>{const _0x2a9235=parseCropPreset(_0x58a980);let _0x2f5597=null;if(this['$']['cdnUrl']){const _0x595e1c=operationsToTransformations(extractOperations(this['$']['cdnUrl']));if(Array['isArray'](_0x595e1c?.['crop']?.['dimensions'])){const [_0x46c94f,_0xe30449]=_0x595e1c['crop']['dimensions'];_0x2f5597=getClosestAspectRatio(_0x46c94f,_0xe30449,_0x2a9235,0.1);}}this['$']['*cropPresetList']=_0x2a9235,this['$']['*currentAspectRatio']=_0x2f5597??_0x2a9235?.[0x0]??null;});}};CloudImageEditorBlock['template']=TEMPLATE,CloudImageEditorBlock['bindAttributes']({'uuid':'uuid','cdn-url':'cdnUrl','crop-preset':'cropPreset','tabs':'tabs'});var CropFrame=class extends Block{['_handlePointerUp'];['_handlePointerMove'];['_handleSvgPointerMove'];['_backdropMaskId']='backdrop-mask-'+UID['generate']();['_backdropMask'];['_backdropMaskInner'];['_frameThumbs'];['_frameGuides'];['_draggingThumb'];['_hoverThumb'];['_dragStartPoint'];['_dragStartCrop'];['_frameImage'];['_guidesHidden']=!0x1;constructor(){super(),this['init$']={...this['init$'],'dragging':!0x1},this['_handlePointerUp']=this['_handlePointerUp_']['bind'](this),this['_handlePointerMove']=this['_handlePointerMove_']['bind'](this),this['_handleSvgPointerMove']=this['_handleSvgPointerMove_']['bind'](this);}['_shouldThumbBeDisabled'](_0x435ada){const _0x6e90d4=this['$']['*imageBox'];if(!_0x6e90d4)return!0x1;if(''===_0x435ada&&_0x6e90d4['height']<=MIN_CROP_SIZE&&_0x6e90d4['width']<=MIN_CROP_SIZE)return!0x0;const _0x249fb9=_0x6e90d4['height']<=MIN_CROP_SIZE&&(_0x435ada['includes']('n')||_0x435ada['includes']('s')),_0x4bf38a=_0x6e90d4['width']<=MIN_CROP_SIZE&&(_0x435ada['includes']('e')||_0x435ada['includes']('w'));return _0x249fb9||_0x4bf38a;}['_createBackdrop'](){const _0x2242a5=this['$']['*cropBox'];if(!_0x2242a5)return;const {x:_0x2fd4b3,y:_0x2b31a6,width:_0x34b806,height:_0x3ae631}=_0x2242a5,_0x53473f=this['ref']['svg-el'],_0x205ec8=createSvgNode('mask',{'id':this['_backdropMaskId']}),_0x6a81d8=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'white'}),_0x5a354d=createSvgNode('rect',{'x':_0x2fd4b3,'y':_0x2b31a6,'width':_0x34b806,'height':_0x3ae631,'fill':'black'});_0x205ec8['appendChild'](_0x6a81d8),_0x205ec8['appendChild'](_0x5a354d);const _0x3a33cb=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'var(--color-image-background)','fill-opacity':0.85,'mask':'url(#'+this['_backdropMaskId']+')'});_0x53473f['appendChild'](_0x3a33cb),_0x53473f['appendChild'](_0x205ec8),this['_backdropMask']=_0x205ec8,this['_backdropMaskInner']=_0x5a354d;}['_resizeBackdrop'](){this['_backdropMask']&&(this['_backdropMask']['style']['display']='none',window['requestAnimationFrame'](()=>{this['_backdropMask']&&(this['_backdropMask']['style']['display']='block');}));}['_updateBackdrop'](){const _0x5e3502=this['$']['*cropBox'];if(!_0x5e3502)return;const {x:_0x3326a8,y:_0x4f3714,width:_0x5070b0,height:_0x256422}=_0x5e3502;this['_backdropMaskInner']&&setSvgNodeAttrs(this['_backdropMaskInner'],{'x':_0x3326a8,'y':_0x4f3714,'width':_0x5070b0,'height':_0x256422});}['_updateFrame'](){const _0x1e2083=this['$']['*cropBox'];if(_0x1e2083&&this['_frameGuides']&&this['_frameThumbs']){for(const _0x30ee05 of Object['values'](this['_frameThumbs'])){if(!_0x30ee05)continue;const {direction:_0x2c7f1c,pathNode:_0x125e75,interactionNode:_0x396830,groupNode:_0x456fdf}=_0x30ee05,_0x4f093b=''===_0x2c7f1c,_0x588627=0x2===_0x2c7f1c['length'],{x:_0x154570,y:_0x26552f,width:_0x16f6ef,height:_0x300f60}=_0x1e2083;if(_0x4f093b)setSvgNodeAttrs(_0x396830,{'x':_0x154570,'y':_0x26552f,'width':_0x16f6ef,'height':_0x300f60});else{const _0x537401=clamp(Math['min'](_0x16f6ef,_0x300f60)/(0x2*THUMB_CORNER_SIZE+THUMB_SIDE_SIZE)/0x2,0x0,0x1),_0x3cb0cd=_0x588627?cornerPath(_0x1e2083,_0x2c7f1c,_0x537401):sidePath(_0x1e2083,_0x2c7f1c,_0x537401),_0x4a8cdb=_0x3cb0cd['center'];if(!_0x4a8cdb)continue;const _0x3c9913=Math['max'](MAX_INTERACTION_SIZE*clamp(Math['min'](_0x16f6ef,_0x300f60)/MAX_INTERACTION_SIZE/0x3,0x0,0x1),MIN_INTERACTION_SIZE);setSvgNodeAttrs(_0x396830,{'x':_0x4a8cdb[0x0]-_0x3c9913,'y':_0x4a8cdb[0x1]-_0x3c9913,'width':0x2*_0x3c9913,'height':0x2*_0x3c9913}),setSvgNodeAttrs(_0x125e75,{'d':_0x3cb0cd['d']});}const _0x11eeee=this['_shouldThumbBeDisabled'](_0x2c7f1c);_0x456fdf['setAttribute']('class',classNames('uc-thumb',{'uc-thumb--hidden':_0x11eeee,'uc-thumb--visible':!_0x11eeee}));}setSvgNodeAttrs(this['_frameGuides'],{'x':_0x1e2083['x']-0.5*GUIDE_STROKE_WIDTH,'y':_0x1e2083['y']-0.5*GUIDE_STROKE_WIDTH,'width':_0x1e2083['width']+GUIDE_STROKE_WIDTH,'height':_0x1e2083['height']+GUIDE_STROKE_WIDTH});}}['_createThumb'](_0x57cc7d,_0x10e45c){const _0x12d71e=createSvgNode('g');_0x12d71e['classList']['add']('uc-thumb'),_0x12d71e['setAttribute']('with-effects','');const _0x20d067=createSvgNode('rect',{'fill':'transparent'}),_0x1f5168=createSvgNode('path',{'stroke':'currentColor','fill':'none','stroke-width':THUMB_STROKE_WIDTH});_0x12d71e['appendChild'](_0x1f5168),_0x12d71e['appendChild'](_0x20d067),_0x57cc7d[_0x10e45c]={'direction':_0x10e45c,'pathNode':_0x1f5168,'interactionNode':_0x20d067,'groupNode':_0x12d71e},''===_0x10e45c&&(_0x12d71e['style']['cursor']='move'),_0x20d067['addEventListener']('pointerdown',this['_handlePointerDown']['bind'](this,_0x10e45c));}['_createThumbs'](){const _0x5816ea={};for(let _0x3b43ce=0x0;_0x3b43ce<0x3;_0x3b43ce++)for(let _0x44a1bd=0x0;_0x44a1bd<0x3;_0x44a1bd++){const _0x1223e2=''+['n','','s'][_0x3b43ce]+['w','','e'][_0x44a1bd];''!==_0x1223e2&&this['_createThumb'](_0x5816ea,_0x1223e2);}return this['_createThumb'](_0x5816ea,''),_0x5816ea;}['_createGuides'](){const _0x5d3ed1=createSvgNode('svg'),_0x5f1f68=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'none','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.5});_0x5d3ed1['appendChild'](_0x5f1f68);for(let _0x1ce057=0x1;_0x1ce057<=0x2;_0x1ce057++){const _0x22cbc6=createSvgNode('line',{'x1':GUIDE_THIRD*_0x1ce057+'%','y1':'0%','x2':GUIDE_THIRD*_0x1ce057+'%','y2':'100%','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.3});_0x5d3ed1['appendChild'](_0x22cbc6);}for(let _0x1df598=0x1;_0x1df598<=0x2;_0x1df598++){const _0x1f30f7=createSvgNode('line',{'x1':'0%','y1':GUIDE_THIRD*_0x1df598+'%','x2':'100%','y2':GUIDE_THIRD*_0x1df598+'%','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.3});_0x5d3ed1['appendChild'](_0x1f30f7);}return _0x5d3ed1['classList']['add']('uc-guides','uc-guides--semi-hidden'),_0x5d3ed1;}['_createFrame'](){const _0x426640=this['ref']['svg-el'],_0x2102e0=document['createDocumentFragment'](),_0x31d1ef=this['_createGuides']();_0x2102e0['appendChild'](_0x31d1ef);const _0x4744d2=this['_createThumbs']();for(const {groupNode:_0x3218fd}of Object['values'](_0x4744d2))_0x2102e0['appendChild'](_0x3218fd);_0x426640['appendChild'](_0x2102e0),this['_frameThumbs']=_0x4744d2,this['_frameGuides']=_0x31d1ef;}['_handlePointerDown'](_0x1a2e55,_0xa119ed){if(!this['_frameThumbs'])return;const _0x2bab68=this['_frameThumbs'][_0x1a2e55];if(!_0x2bab68)return;if(this['_shouldThumbBeDisabled'](_0x1a2e55))return;const _0xc01257=this['$']['*cropBox'],_0x2b4fa9=this['ref']['svg-el'],{x:_0x7bf8f8,y:_0x575378}=_0x2b4fa9['getBoundingClientRect'](),_0x2c5fe4=_0xa119ed['x']-_0x7bf8f8,_0xacfa31=_0xa119ed['y']-_0x575378;this['$']['dragging']=!0x0,this['_draggingThumb']=_0x2bab68,this['_dragStartPoint']=[_0x2c5fe4,_0xacfa31],this['_dragStartCrop']={..._0xc01257};}['_handlePointerUp_'](_0x277730){this['_updateCursor'](),this['$']['dragging']&&(_0x277730['stopPropagation'](),_0x277730['preventDefault'](),this['$']['dragging']=!0x1);}['_handlePointerMove_'](_0x2c2ea5){if(!this['$']['dragging']||!this['_dragStartPoint']||!this['_draggingThumb'])return;_0x2c2ea5['stopPropagation'](),_0x2c2ea5['preventDefault']();const _0x29d17a=this['ref']['svg-el'],{x:_0x3117b9,y:_0x4d4f5a}=_0x29d17a['getBoundingClientRect'](),_0x169aa=_0x2c2ea5['x']-_0x3117b9,_0x49f7d7=_0x2c2ea5['y']-_0x4d4f5a,_0x324371=_0x169aa-this['_dragStartPoint'][0x0],_0x183474=_0x49f7d7-this['_dragStartPoint'][0x1],{direction:_0x44d4e8}=this['_draggingThumb'],_0x15d39=this['_calcCropBox'](_0x44d4e8,[_0x324371,_0x183474]);_0x15d39&&(this['$']['*cropBox']=_0x15d39);}['_calcCropBox'](_0x521d06,_0x52fb6e){const [_0x57985c,_0x517fcb]=_0x52fb6e,_0x3ead88=this['$']['*imageBox'];let _0x16cfaf=this['_dragStartCrop']??this['$']['*cropBox'];const _0x20e0ac=this['$']['*currentAspectRatio'],_0x43bfec=_0x20e0ac?_0x20e0ac['width']/_0x20e0ac['height']:void 0x0;if(_0x16cfaf=''===_0x521d06?moveRect({'rect':_0x16cfaf,'delta':[_0x57985c,_0x517fcb],'imageBox':_0x3ead88}):resizeRect({'rect':_0x16cfaf,'delta':[_0x57985c,_0x517fcb],'direction':_0x521d06,'aspectRatio':_0x43bfec,'imageBox':_0x3ead88}),Object['values'](_0x16cfaf)['every'](_0x5c40b1=>Number['isFinite'](_0x5c40b1)&&_0x5c40b1>=0x0))return constraintRect(roundRect(_0x16cfaf),_0x3ead88);console['error']('CropFrame\x20is\x20trying\x20to\x20create\x20invalid\x20rectangle',{'payload':_0x16cfaf});}['_handleSvgPointerMove_'](_0x5c8991){if(!this['_frameThumbs'])return;const _0x2e5cfd=Object['values'](this['_frameThumbs'])['find'](_0x5754f4=>{if(!_0x5754f4)return!0x1;if(this['_shouldThumbBeDisabled'](_0x5754f4['direction']))return!0x1;const _0xc9dc11=_0x5754f4['interactionNode']['getBoundingClientRect']();return rectContainsPoint({'x':_0xc9dc11['x'],'y':_0xc9dc11['y'],'width':_0xc9dc11['width'],'height':_0xc9dc11['height']},[_0x5c8991['x'],_0x5c8991['y']]);});this['_hoverThumb']=_0x2e5cfd,this['_updateCursor']();}['_updateCursor'](){const _0x2ce38e=this['_hoverThumb'];this['ref']['svg-el']['style']['cursor']=_0x2ce38e?thumbCursor(_0x2ce38e['direction']):'initial';}['_createMask'](_0x429f94){if(this['_frameImage'])return void this['_frameImage']['setAttribute']('href',_0x429f94);const _0x5e0fb8=this['ref']['svg-el'],_0x2ec311=document['createDocumentFragment'](),_0x546b61=createSvgNode('image',{'href':_0x429f94});_0x546b61['setAttribute']('class','uc-cloud-mask'),_0x2ec311['appendChild'](_0x546b61),_0x5e0fb8['appendChild'](_0x2ec311),this['_frameImage']=_0x546b61;}['_updateMask'](){const _0x1456ea=this['$']['*cropBox'];if(!_0x1456ea||!this['_frameImage'])return;const {x:_0x4cc15c,y:_0x1ee1ac,width:_0x17247a,height:_0x4f4863}=_0x1456ea;setSvgNodeAttrs(this['_frameImage'],{'x':_0x4cc15c,'y':_0x1ee1ac,'height':_0x4f4863,'width':_0x17247a});}['_render'](){this['_updateBackdrop'](),this['_updateFrame'](),this['_updateMask']();}['toggleThumbs'](_0x11a1f1){if(this['_frameThumbs'])for(const _0x510573 of Object['values'](this['_frameThumbs'])){if(!_0x510573)continue;const {groupNode:_0x462d59}=_0x510573;_0x462d59['setAttribute']('class',classNames('uc-thumb',{'uc-thumb--hidden':!_0x11a1f1,'uc-thumb--visible':_0x11a1f1}));}}['initCallback'](){super['initCallback'](),this['_createBackdrop'](),this['_createFrame'](),this['sub']('*imageBox',()=>{this['_resizeBackdrop'](),window['requestAnimationFrame'](()=>{this['_render']();});}),this['sub']('*cropBox',_0x3f5a3f=>{_0x3f5a3f&&(this['_guidesHidden']=_0x3f5a3f['height']<=MIN_CROP_SIZE||_0x3f5a3f['width']<=MIN_CROP_SIZE,window['requestAnimationFrame'](()=>{this['_render']();}));}),this['subConfigValue']('cloudImageEditorMaskHref',_0x221da3=>{_0x221da3&&this['_createMask'](_0x221da3);}),this['sub']('dragging',_0x428ed7=>{this['_frameGuides']&&this['_frameGuides']['setAttribute']('class',classNames({'uc-guides--hidden':this['_guidesHidden'],'uc-guides--visible':!this['_guidesHidden']&&_0x428ed7,'uc-guides--semi-hidden':!this['_guidesHidden']&&!_0x428ed7}));}),(this['ref']['svg-el']['addEventListener']('pointermove',this['_handleSvgPointerMove'],!0x0),document['addEventListener']('pointermove',this['_handlePointerMove'],!0x0),document['addEventListener']('pointerup',this['_handlePointerUp'],!0x0));}['destroyCallback'](){super['destroyCallback'](),(this['ref']['svg-el']['removeEventListener']('pointermove',this['_handleSvgPointerMove'],!0x0),document['removeEventListener']('pointermove',this['_handlePointerMove']),document['removeEventListener']('pointerup',this['_handlePointerUp']));}};CropFrame['template']='\x20<svg\x20class=\x22uc-svg\x22\x20ref=\x22svg-el\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22></svg>\x20';var EditorButtonControl=class extends Block{['_titleEl'];constructor(){super(),this['init$']={...this['init$'],'active':!0x1,'title':'','icon':'','on.click':null,'title-prop':''};}['initCallback'](){super['initCallback'](),this['_titleEl']=this['ref']['title-el'],this['sub']('title',_0x5cac6d=>{const _0x326509=this['_titleEl'];_0x326509&&(_0x326509['style']['display']=_0x5cac6d?'block':'none');}),this['sub']('active',_0x288717=>{this['className']=classNames({'uc-active':_0x288717,'uc-not_active':!_0x288717});}),this['sub']('on.click',_0x328218=>{this['onclick']=_0x328218??null;});}};EditorButtonControl['template']='\x0a\x20\x20<button\x20role=\x22option\x22\x20type=\x22button\x22\x20set=\x22@aria-label:title-prop;\x22\x20l10n=\x22@title:title-prop;\x22>\x0a\x20\x20\x20\x20<uc-icon\x20ref=\x22icon-el\x22\x20set=\x22@name:\x20icon;\x22></uc-icon>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-title\x22\x20ref=\x22title-el\x22>{{title}}</div>\x0a\x20\x20</button>\x0a';var SIZE_RECT_FIXED=0xc,SIZE_SVG_WRAPPER=0x10,getAdjustResolutions=_0x330bf8=>{let _0x5c25cb=0xc,_0x4b6d27=0xc;return _0x330bf8['width']/_0x330bf8['height']>=0x1?(_0x5c25cb=SIZE_RECT_FIXED,_0x4b6d27=Math['round'](SIZE_RECT_FIXED*_0x330bf8['height']/_0x330bf8['width'])):(_0x4b6d27=SIZE_RECT_FIXED,_0x5c25cb=Math['round'](SIZE_RECT_FIXED*_0x330bf8['width']/_0x330bf8['height'])),{'width':_0x5c25cb,'height':_0x4b6d27};},EditorFreeformButtonControl=class extends EditorButtonControl{['initCallback'](){super['initCallback'](),this['$']['icon']='arrow-dropdown',this['$']['on.click']=this['handleClick']['bind'](this),this['sub']('*currentAspectRatio',_0x4b15a3=>{this['$']['title']=_0x4b15a3['hasFreeform']?this['l10n']('freeform-crop'):this['l10n']('crop-to-shape',{'value':_0x4b15a3['width']+':'+_0x4b15a3['height']}),this['bindL10n']('title-prop',()=>this['$']['title']);});}['handleClick'](){this['$']['*showListAspectRatio']=!0x0;}};EditorFreeformButtonControl['template']='\x20\x0a\x20\x20<button\x20role=\x22option\x22\x20type=\x22button\x22\x20set=\x22@aria-label:title-prop;\x22\x20l10n=\x22@title:title-prop;\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-title\x22\x20ref=\x22title-el\x22>{{title}}</div>\x0a\x20\x20\x20\x20<uc-icon\x20ref=\x22icon-el\x22\x20set=\x22@name:\x20icon;\x22></uc-icon>\x0a\x20\x20</button>\x20\x0a';var EditorAspectRatioButtonControl=class extends EditorButtonControl{constructor(){super(),this['init$']={...this['init$'],'active':!0x1,'once':!0x1};}['initCallback'](){super['initCallback'](),this['defineAccessor']('aspectRatio',_0x35dc1e=>{if(!_0x35dc1e)return;const _0x3d40b8=!!_0x35dc1e['hasFreeform'];this['$']['title']=_0x3d40b8?this['l10n']('custom'):_0x35dc1e['width']+':'+_0x35dc1e['height'],_0x3d40b8||this['_renderRectBasedOnAspectRatio'](_0x35dc1e),_0x3d40b8&&this['setAttribute']('uc-aspect-ratio-freeform',''),this['_aspectRatio']=_0x35dc1e,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-aspect-ratio',{'name':_0x3d40b8?this['l10n']('custom')['toLowerCase']():this['l10n']('crop-to-shape',{'value':_0x35dc1e['width']+':'+_0x35dc1e['height']})['toLowerCase'](),'value':''}));}),this['sub']('*currentAspectRatio',_0x2e578c=>{this['$']['active']=_0x2e578c&&_0x2e578c['id']===this['_aspectRatio']?.['id']||_0x2e578c?.['width']===this['_aspectRatio']?.['width']&&_0x2e578c?.['height']===this['_aspectRatio']?.['height'];}),this['$']['on.click']=this['handleClick']['bind'](this);}['handleClick'](){const _0x2dbd3e=this['$']['*currentAspectRatio'];_0x2dbd3e?.['id']!==this['_aspectRatio']?.['id']&&(this['$']['*currentAspectRatio']=this['_aspectRatio']);}['_renderRectBasedOnAspectRatio'](_0x3874e8){const {width:_0x536538,height:_0x21ef92}=getAdjustResolutions(_0x3874e8),_0x4e92ea=createSvgNode('rect',{'stroke-linejoin':'round','fill':'none','stroke':'currentColor','stroke-width':1.2,'fill-rule':'evenodd','x':(SIZE_SVG_WRAPPER-_0x536538)/0x2,'y':(SIZE_SVG_WRAPPER-_0x21ef92)/0x2,'rx':0x2,'width':_0x536538,'height':_0x21ef92}),_0x1814c5=this['ref']['icon-el']?.['ref']?.['svg'];_0x1814c5&&(_0x1814c5['innerHTML']='',_0x1814c5['appendChild'](_0x4e92ea));}['_aspectRatio'];};function nextAngle(_0x314ee4){let _0x505bec=_0x314ee4+0x5a;return _0x505bec=_0x505bec>=0x168?0x0:_0x505bec,_0x505bec;}function nextValue(_0x34ae94,_0x44f0e7){if('rotate'===_0x34ae94)return nextAngle('number'==typeof _0x44f0e7?_0x44f0e7:0x0);if('mirror'===_0x34ae94||'flip'===_0x34ae94)return!_0x44f0e7;throw new Error('Unsupported\x20operation:\x20'+_0x34ae94);}var EditorCropButtonControl=class extends EditorButtonControl{['_operation']=void 0x0;['initCallback'](){super['initCallback'](),this['defineAccessor']('operation',_0x2b3dfa=>{_0x2b3dfa&&(this['_operation']=_0x2b3dfa,this['$']['icon']=_0x2b3dfa,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-crop',{'name':this['l10n'](_0x2b3dfa)['toLowerCase']()})));}),this['$']['on.click']=_0xc44f65=>{if(!this['_operation'])return;const _0x31afa6=this['$']['*cropperEl'],_0x54956f=_0x31afa6['getValue'](this['_operation']),_0x3879a9=nextValue(this['_operation'],_0x54956f);this['telemetryManager']['sendEventCloudImageEditor'](_0xc44f65,this['$']['*tabId'],{'operation':this['_operation'],'next':_0x3879a9,'prev':_0x54956f}),_0x31afa6['setValue'](this['_operation'],_0x3879a9);};}};function preloadImage(_0x23be21){const _0x26eb9e=new Image();return{'promise':new Promise((_0x4b4d30,_0x2bc315)=>{_0x26eb9e['src']=_0x23be21,_0x26eb9e['onload']=()=>_0x4b4d30(),_0x26eb9e['onerror']=_0x5a6525=>_0x2bc315(_0x5a6525);}),'image':_0x26eb9e,'cancel':()=>{0x0===_0x26eb9e['naturalWidth']&&(_0x26eb9e['src']=TRANSPARENT_PIXEL_SRC);}};}function batchPreloadImages(_0x52183f){const _0x5e75d7=[];for(const _0x4268e8 of _0x52183f){const _0x2c5d95=preloadImage(_0x4268e8);_0x5e75d7['push'](_0x2c5d95);}const _0x209b3a=_0x5e75d7['map'](_0x2b686c=>_0x2b686c['image']);return{'promise':Promise['allSettled'](_0x5e75d7['map'](_0x5b903d=>_0x5b903d['promise'])),'images':_0x209b3a,'cancel':()=>{_0x5e75d7['forEach'](_0x2e1458=>{_0x2e1458['cancel']();});}};}var FAKE_ORIGINAL_FILTER='original',EditorSlider=class extends Block{['_operation']='filter';['_filter'];['_originalUrl']='';constructor(){super(),this['init$']={...this['init$'],'disabled':!0x1,'min':0x0,'max':0x64,'value':0x0,'defaultValue':0x0,'zero':0x0,'on.input':_0x1928e4=>{const _0x51ff19=this['$']['*faderEl'];_0x51ff19?.['set'](_0x1928e4),this['$']['value']=_0x1928e4;}};}['setOperation'](_0x21e93f,_0xf9aae0){this['_operation']=_0x21e93f,this['_filter']=_0xf9aae0,this['_initializeValues']();const _0x2995e7=this['$']['*faderEl'],_0x330c80=this['_originalUrl']||this['$']['*originalUrl'];_0x2995e7&&_0x330c80&&_0x2995e7['activate']({'url':_0x330c80,'operation':this['_operation'],'value':this['_filter']===FAKE_ORIGINAL_FILTER?void 0x0:this['$']['value'],'filter':this['_filter']===FAKE_ORIGINAL_FILTER?void 0x0:this['_filter'],'fromViewer':!0x1});}['_initializeValues'](){const _0x2e0c54=this['_operation'],{range:_0x231ee8,zero:_0x206307}=COLOR_OPERATIONS_CONFIG[_0x2e0c54],[_0xc7705,_0x45d0cf]=_0x231ee8;this['$']['min']=_0xc7705,this['$']['max']=_0x45d0cf,this['$']['zero']=_0x206307;const _0x3b9f5f=this['$']['*editorTransformations'][_0x2e0c54];if('filter'===_0x2e0c54){let _0x333e11=Number(_0x45d0cf);const _0x2cf909=_0x3b9f5f;if(_0x2cf909){const {name:_0x3a5295,amount:_0x4647ed}=_0x2cf909;_0x333e11=_0x3a5295===this['_filter']?_0x4647ed:_0x45d0cf;}return this['$']['value']=_0x333e11,void(this['$']['defaultValue']=_0x333e11);}const _0x5b6a0c=void 0x0!==_0x3b9f5f?_0x3b9f5f:_0x206307;this['$']['value']=_0x5b6a0c,this['$']['defaultValue']=_0x5b6a0c;}['apply'](){const _0x53d72c={...this['$']['*editorTransformations']};'filter'===this['_operation']?this['_filter']&&this['_filter']!==FAKE_ORIGINAL_FILTER?_0x53d72c['filter']={'name':this['_filter'],'amount':this['$']['value']}:delete _0x53d72c['filter']:_0x53d72c[this['_operation']]=this['$']['value'],this['$']['*editorTransformations']=_0x53d72c;}['cancel'](){const _0x57b614=this['$']['*faderEl'];_0x57b614?.['deactivate']({'hide':!0x1});}['initCallback'](){super['initCallback'](),this['sub']('*originalUrl',_0x4f508b=>{this['_originalUrl']=_0x4f508b;}),this['sub']('value',_0x3705ef=>{const _0x1ddd24=(this['_filter']??this['_operation'])+'\x20'+_0x3705ef;this['$']['*operationTooltip']=_0x1ddd24;});}};function parseFilterValue(_0x279c22){const _0x2ccf95=_0x279c22['match'](/^([A-Za-z]+)\s+(\d+)$/);if(!_0x2ccf95)return null;const [,_0x1f46f4,_0x4fc9e6]=_0x2ccf95;return _0x1f46f4&&void 0x0!==_0x4fc9e6?{'filter':_0x1f46f4,'value':Number(_0x4fc9e6)}:null;}EditorSlider['template']='\x0a\x20\x20<uc-slider-ui\x0a\x20\x20\x20\x20ref=\x22slider-el\x22\x0a\x20\x20\x20\x20set=\x22disabled:\x20disabled;\x20min:\x20min;\x20max:\x20max;\x20defaultValue:\x20defaultValue;\x20zero:\x20zero;\x20onInput:\x20on.input;\x22\x0a\x20\x20></uc-slider-ui>\x0a';var EditorFilterControl=class extends EditorButtonControl{['_operation']='';['_filter']='';['_originalUrl']='';['_observer'];['_cancelPreload'];constructor(){super(),this['init$']={...this['init$'],'active':!0x1,'title':'','icon':'','isOriginal':!0x1,'iconSize':'20','on.click':null};}['_previewSrc'](){const _0x31cc06=parseInt(window['getComputedStyle'](this)['getPropertyValue']('--l-base-min-width'),0xa),_0x347ae7=window['devicePixelRatio'],_0x3db9f3=Math['ceil'](_0x347ae7*_0x31cc06),_0x46c63e=_0x347ae7>=0x2?'lightest':'normal',_0x1c28da={...this['$']['*editorTransformations']};return _0x1c28da[this['_operation']]=this['_filter']!==FAKE_ORIGINAL_FILTER?{'name':this['_filter'],'amount':0x64}:void 0x0,createCdnUrl(this['_originalUrl'],createCdnUrlModifiers(COMMON_OPERATIONS,transformationsToOperations(_0x1c28da),'quality/'+_0x46c63e,'scale_crop/'+_0x3db9f3+'x'+_0x3db9f3+'/center'));}async['_observerCallback'](_0x1ae01b,_0x2b9e51){const _0x5398af=_0x1ae01b[0x0];if(_0x5398af?.['isIntersecting']){const _0x314dcc=await this['proxyUrl'](this['_previewSrc']()),_0x1cc8fc=this['ref']['preview-el'],{promise:_0x4d924e,cancel:_0x416d92}=preloadImage(_0x314dcc);this['_cancelPreload']=_0x416d92,_0x4d924e['catch'](_0x560d61=>{this['$']['*networkProblems']=!0x0,console['error']('Failed\x20to\x20load\x20image',{'error':_0x560d61});})['finally'](()=>{_0x1cc8fc['style']['backgroundImage']='url('+_0x314dcc+')',_0x1cc8fc['setAttribute']('loaded',''),_0x2b9e51['unobserve'](this);});}else this['_cancelPreload']?.();}['initCallback'](){super['initCallback'](),this['$']['on.click']=_0x380d3c=>{if(this['$']['active'])!this['$']['isOriginal']&&(this['$']['*sliderEl']['setOperation'](this['_operation'],this['_filter']),this['$']['*showSlider']=!0x0);else{const _0x4a2583=this['$']['*sliderEl'];_0x4a2583['setOperation'](this['_operation'],this['_filter']),_0x4a2583['apply']();}this['telemetryManager']['sendEventCloudImageEditor'](_0x380d3c,this['$']['*tabId'],{'operation':parseFilterValue(this['$']['*operationTooltip'])}),this['$']['*currentFilter']=this['_filter'];},this['defineAccessor']('filter',_0x1294fc=>{this['_operation']='filter',this['_filter']=_0x1294fc,this['$']['isOriginal']=_0x1294fc===FAKE_ORIGINAL_FILTER,this['$']['icon']=this['$']['isOriginal']?'original':'slider',this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-filter',{'name':_0x1294fc['toLowerCase']()}));}),this['_observer']=new window['IntersectionObserver'](this['_observerCallback']['bind'](this),{'threshold':[0x0,0x1]});const _0x339289=this['$']['*originalUrl'];if(this['_originalUrl']=_0x339289,this['$']['isOriginal'])this['ref']['icon-el']['classList']['add']('uc-original-icon');else this['_observer']['observe'](this);this['sub']('*currentFilter',_0x127aec=>{this['$']['active']=_0x127aec&&_0x127aec===this['_filter'];}),this['sub']('isOriginal',_0x4b9aa6=>{this['$']['iconSize']=_0x4b9aa6?0x28:0x14;}),this['sub']('active',_0x37bf5e=>{if(this['$']['isOriginal'])return;this['ref']['icon-el']['style']['opacity']=_0x37bf5e?'1':'0';const _0x38fa5d=this['ref']['preview-el'];_0x37bf5e?_0x38fa5d['style']['opacity']='0':_0x38fa5d['style']['backgroundImage']&&(_0x38fa5d['style']['opacity']='1');}),this['sub']('*networkProblems',async _0x401d35=>{if(!_0x401d35){const _0x3449d5=await this['proxyUrl'](this['_previewSrc']()),_0x5eb09d=this['ref']['preview-el'];_0x5eb09d['style']['backgroundImage']&&(_0x5eb09d['style']['backgroundImage']='none',_0x5eb09d['style']['backgroundImage']='url('+_0x3449d5+')');}});}['destroyCallback'](){super['destroyCallback'](),this['_observer']?.['disconnect'](),this['_cancelPreload']?.();}};EditorFilterControl['template']='\x0a\x20\x20<button\x20type=\x22button\x22\x20role=\x22option\x22\x20l10n=\x22@title:title-prop;@aria-label:title-prop\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-preview\x22\x20ref=\x22preview-el\x22></div>\x0a\x20\x20\x20\x20<uc-icon\x20ref=\x22icon-el\x22\x20set=\x22@name:\x20icon;\x20@size:\x20iconSize;\x22></uc-icon>\x0a\x20\x20</button>\x0a';var throttle=(_0x379f50,_0x142380)=>{let _0x56a6af,_0xf82e6e=!0x1,_0xc0e186=0x0;const _0x3075ab=(..._0x2436bd)=>{_0xf82e6e?(_0x56a6af&&clearTimeout(_0x56a6af),_0x56a6af=setTimeout(()=>{Date['now']()-_0xc0e186>=_0x142380&&(_0x379f50(..._0x2436bd),_0xc0e186=Date['now']());},Math['max'](_0x142380-(Date['now']()-_0xc0e186),0x0))):(_0x379f50(..._0x2436bd),_0xc0e186=Date['now'](),_0xf82e6e=!0x0);};return Object['defineProperty'](_0x3075ab,'cancel',{'configurable':!0x1,'writable':!0x1,'enumerable':!0x1,'value':()=>{_0x56a6af&&clearTimeout(_0x56a6af);}}),_0x3075ab;};function pick(_0x2264e7,_0x1573ae){const _0x1b6e86={};for(const _0x254f06 of _0x1573ae){const _0xffba38=_0x2264e7[_0x254f06];(Object['hasOwn'](_0x2264e7,_0x254f06)||void 0x0!==_0xffba38)&&(_0x1b6e86[_0x254f06]=_0xffba38);}return _0x1b6e86;}function viewerImageSrc(_0x134a3e,_0x3e3686,_0x28d8d5){const _0x52e068=window['devicePixelRatio'],_0x1413a6=Math['min'](Math['ceil'](_0x3e3686*_0x52e068),0xbb8),_0x3fe36a=_0x52e068>=0x2?'lightest':'normal';return createCdnUrl(_0x134a3e,createCdnUrlModifiers(COMMON_OPERATIONS,transformationsToOperations(_0x28d8d5),'quality/'+_0x3fe36a,'stretch/off/-/resize/'+_0x1413a6+'x','@clib/'+PACKAGE_NAME+'/'+PACKAGE_VERSION+'/uc-cloud-image-editor/'));}function validateCrop(_0x1ea1fe){if(!_0x1ea1fe)return!0x0;const _0x3d358a=[({dimensions:_0x2bdcd9,coords:_0x24b9a4})=>[..._0x2bdcd9,..._0x24b9a4]['every'](_0x3b37e0=>Number['isInteger'](_0x3b37e0)&&Number['isFinite'](_0x3b37e0)),({dimensions:_0x8c53bd,coords:_0x4a22f4})=>_0x8c53bd['every'](_0x1b1f49=>_0x1b1f49>0x0)&&_0x4a22f4['every'](_0x445d44=>_0x445d44>=0x0)];return _0x3d358a['every'](_0x254c5e=>_0x254c5e(_0x1ea1fe));}var EditorImageCropper=class extends Block{['ctxOwner']=!0x0;['_commitDebounced'];['_handleResizeThrottled'];['_imageSize']={'width':0x0,'height':0x0};['_canvas'];['_ctx']=null;['_isActive']=!0x1;['_observer'];['_cancelPreload'];constructor(){super(),this['init$']={...this['init$'],'image':null,'*padding':CROP_PADDING,'*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['_commitDebounced']=debounce(this['_commit']['bind'](this),0x12c),this['_handleResizeThrottled']=throttle(this['_handleResize']['bind'](this),0x64);}['_handleResize'](){this['isConnected']&&this['_isActive']&&(this['_initCanvas'](),this['_syncTransformations'](),this['_alignImage'](),this['_alignCrop'](),this['_draw']());}['_syncTransformations'](){const _0x26f976=pick(this['$']['*editorTransformations'],Object['keys'](this['$']['*operations'])),_0x4b3489={...this['$']['*operations'],..._0x26f976};this['$']['*operations']=_0x4b3489;}['_initCanvas'](){const _0x38f934=this['ref']['canvas-el'],_0x193ce1=_0x38f934['getContext']('2d'),_0x4140f1=this['offsetWidth'],_0x1db3e6=this['offsetHeight'],_0x13b134=window['devicePixelRatio'];_0x38f934['style']['width']=_0x4140f1+'px',_0x38f934['style']['height']=_0x1db3e6+'px',_0x38f934['width']=_0x4140f1*_0x13b134,_0x38f934['height']=_0x1db3e6*_0x13b134,_0x193ce1?.['scale'](_0x13b134,_0x13b134),this['_canvas']=_0x38f934,this['_ctx']=_0x193ce1;}['_alignImage'](){if(!this['_isActive']||!this['$']['image'])return;const _0x2926e4=this['$']['image'],_0x3379e5=this['$']['*padding'],_0x153be8=this['$']['*operations'],{rotate:_0x4aa083}=_0x153be8,_0x437ae9=this['offsetWidth'],_0x176184=this['offsetHeight'],_0x1d7c4d=rotateSize({'width':_0x2926e4['naturalWidth'],'height':_0x2926e4['naturalHeight']},_0x4aa083);let _0x7b4057;if(_0x1d7c4d['width']>_0x437ae9-0x2*_0x3379e5||_0x1d7c4d['height']>_0x176184-0x2*_0x3379e5){const _0x24534c=_0x1d7c4d['width']/_0x1d7c4d['height'];if(_0x24534c>_0x437ae9/_0x176184){const _0x1b0f82=_0x437ae9-0x2*_0x3379e5,_0x15d02d=_0x1b0f82/_0x24534c;_0x7b4057={'x':0x0+_0x3379e5,'y':_0x3379e5+(_0x176184-0x2*_0x3379e5)/0x2-_0x15d02d/0x2,'width':_0x1b0f82,'height':_0x15d02d};}else{const _0x55960e=_0x176184-0x2*_0x3379e5,_0x2cba41=_0x55960e*_0x24534c;_0x7b4057={'x':_0x3379e5+(_0x437ae9-0x2*_0x3379e5)/0x2-_0x2cba41/0x2,'y':0x0+_0x3379e5,'width':_0x2cba41,'height':_0x55960e};}}else{const {width:_0x30f39b,height:_0x3495f3}=_0x1d7c4d;_0x7b4057={'x':_0x3379e5+(_0x437ae9-0x2*_0x3379e5)/0x2-_0x30f39b/0x2,'y':_0x3379e5+(_0x176184-0x2*_0x3379e5)/0x2-_0x3495f3/0x2,'width':_0x30f39b,'height':_0x3495f3};}this['$']['*imageBox']=roundRect(_0x7b4057);}['_alignCrop'](){let _0x5234bb=this['$']['*cropBox'];const _0x25282f=this['$']['*imageBox'],_0x351c75=this['$']['*operations'],{rotate:_0x346c1e}=_0x351c75,_0x284173=this['$']['*editorTransformations']['crop'],{width:_0x44dfe3,x:_0x3fe698,y:_0x4f06ba}=_0x25282f;if(_0x284173){const {dimensions:[_0x215041,_0xd5a821],coords:[_0x634d34,_0x3a7368]}=_0x284173,{width:_0x5c71fa}=rotateSize(this['_imageSize'],_0x346c1e),_0x9f0751=_0x44dfe3/_0x5c71fa;_0x5234bb=constraintRect(roundRect({'x':_0x3fe698+_0x634d34*_0x9f0751,'y':_0x4f06ba+_0x3a7368*_0x9f0751,'width':_0x215041*_0x9f0751,'height':_0xd5a821*_0x9f0751}),_0x25282f);}const _0x5c2d56=this['$']['*currentAspectRatio'],_0x4ad7f4=_0x5c2d56?_0x5c2d56['width']/_0x5c2d56['height']:void 0x0;if(!isRectInsideRect(_0x5234bb,_0x25282f)||_0x4ad7f4&&!isRectMatchesAspectRatio(_0x5234bb,_0x4ad7f4)){const _0x441411=_0x25282f['width']/_0x25282f['height'];let _0x5871a5=_0x25282f['width'],_0x35c1ce=_0x25282f['height'];_0x4ad7f4&&(_0x441411>_0x4ad7f4?_0x5871a5=Math['min'](_0x25282f['height']*_0x4ad7f4,_0x25282f['width']):_0x35c1ce=Math['min'](_0x25282f['width']/_0x4ad7f4,_0x25282f['height'])),_0x5234bb={'x':_0x25282f['x']+_0x25282f['width']/0x2-_0x5871a5/0x2,'y':_0x25282f['y']+_0x25282f['height']/0x2-_0x35c1ce/0x2,'width':_0x5871a5,'height':_0x35c1ce};}this['$']['*cropBox']=constraintRect(roundRect(_0x5234bb),_0x25282f);}['_drawImage'](){const _0x173e89=this['_ctx'];if(!_0x173e89)return;const _0x32ae4a=this['$']['image'],_0x22dd94=this['$']['*imageBox'],_0x221349=this['$']['*operations'],{mirror:_0x4ca28f,flip:_0x49955b,rotate:_0x1539bb}=_0x221349,_0x4f2451=rotateSize({'width':_0x22dd94['width'],'height':_0x22dd94['height']},_0x1539bb);_0x173e89['save'](),_0x173e89['translate'](_0x22dd94['x']+_0x22dd94['width']/0x2,_0x22dd94['y']+_0x22dd94['height']/0x2),_0x173e89['rotate'](_0x1539bb*Math['PI']*-0x1/0xb4),_0x173e89['scale'](_0x4ca28f?-0x1:0x1,_0x49955b?-0x1:0x1),_0x173e89['drawImage'](_0x32ae4a,-_0x4f2451['width']/0x2,-_0x4f2451['height']/0x2,_0x4f2451['width'],_0x4f2451['height']),_0x173e89['restore']();}['_draw'](){if(!(this['_isActive']&&this['$']['image']&&this['_canvas']&&this['_ctx']))return;const _0x3f19e3=this['_canvas'];this['_ctx']['clearRect'](0x0,0x0,_0x3f19e3['width'],_0x3f19e3['height']),this['_drawImage']();}['_animateIn']({fromViewer:_0x121da7}){this['$']['image']&&(this['ref']['frame-el']['toggleThumbs'](!0x0),this['_transitionToImage'](),setTimeout(()=>{this['className']=classNames({'uc-active_from_viewer':_0x121da7,'uc-active_from_editor':!_0x121da7,'uc-inactive_to_editor':!0x1});}));}['_getCropDimensions'](){const _0x34001c=this['$']['*cropBox'],_0x5b91c0=this['$']['*imageBox'],_0x4372a6=this['$']['*operations'],{rotate:_0x2296bc}=_0x4372a6,{width:_0x1cb1a5,height:_0xa63c9e}=_0x5b91c0,{width:_0x406ba8,height:_0x36bcad}=rotateSize(this['_imageSize'],_0x2296bc),{width:_0x52e230,height:_0x4edbf4}=_0x34001c,_0x37be9a=_0x1cb1a5/_0x406ba8,_0x211bbd=_0xa63c9e/_0x36bcad;return[clamp(Math['round'](_0x52e230/_0x37be9a),0x1,_0x406ba8),clamp(Math['round'](_0x4edbf4/_0x211bbd),0x1,_0x36bcad)];}['_getCropTransformation'](){const _0x33d8af=this['$']['*cropBox'],_0x19189e=this['$']['*imageBox'],_0x434f68=this['$']['*operations'],{rotate:_0x43c0a8}=_0x434f68,{width:_0x3ea338,height:_0xe02f9f,x:_0x2c1f76,y:_0x270735}=_0x19189e,{width:_0x487419,height:_0x2cac44}=rotateSize(this['_imageSize'],_0x43c0a8),{x:_0x523a2a,y:_0xe0f180}=_0x33d8af,_0x31673b=_0x3ea338/_0x487419,_0x54c1af=_0xe02f9f/_0x2cac44,_0x5bf701=this['_getCropDimensions'](),_0x20107e={'dimensions':_0x5bf701,'coords':[clamp(Math['round']((_0x523a2a-_0x2c1f76)/_0x31673b),0x0,_0x487419-_0x5bf701[0x0]),clamp(Math['round']((_0xe0f180-_0x270735)/_0x54c1af),0x0,_0x2cac44-_0x5bf701[0x1])]};if(validateCrop(_0x20107e)){if(_0x5bf701[0x0]!==_0x487419||_0x5bf701[0x1]!==_0x2cac44)return _0x20107e;}else console['error']('Cropper\x20is\x20trying\x20to\x20create\x20invalid\x20crop\x20object',{'payload':_0x20107e});}['_commit'](){if(!this['isConnected']||!this['_imageSize'])return;const _0x238506=this['$']['*operations'],{rotate:_0x23f6f1,mirror:_0x3fd77b,flip:_0x38469d}=_0x238506,_0x5b1eb4=this['_getCropTransformation'](),_0x12e071={...this['$']['*editorTransformations'],'crop':_0x5b1eb4,'rotate':_0x23f6f1,'mirror':_0x3fd77b,'flip':_0x38469d};this['$']['*editorTransformations']=_0x12e071;}['setValue'](_0x2a7fa0,_0x3b6067){this['$']['*operations']={...this['$']['*operations'],[_0x2a7fa0]:_0x3b6067},this['_isActive']&&(this['_alignImage'](),this['_alignCrop'](),this['_draw']());}['getValue'](_0x5059e3){return this['$']['*operations'][_0x5059e3];}async['activate'](_0x42fc0b,{fromViewer:_0x58295a}={}){if(!this['_isActive']){this['_isActive']=!0x0,this['_imageSize']=_0x42fc0b,this['removeEventListener']('transitionend',this['_reset']);try{const _0x3f296a=this['$']['*originalUrl'],_0x110e77=this['$']['*editorTransformations'];this['$']['image']=await this['_waitForImage'](_0x3f296a,_0x110e77),this['_syncTransformations'](),this['_animateIn']({'fromViewer':_0x58295a});}catch(_0x1c0bca){console['error']('Failed\x20to\x20activate\x20cropper',{'error':_0x1c0bca}),this['telemetryManager']['sendEventError'](_0x1c0bca,'cloud\x20editor\x20image.\x20Failed\x20to\x20activate\x20cropper');}this['_observer']=new ResizeObserver(_0x1ae88d=>{const [_0x5c6372]=_0x1ae88d;if(!_0x5c6372)return;_0x5c6372['contentRect']['width']>0x0&&_0x5c6372['contentRect']['height']>0x0&&this['_isActive']&&this['$']['image']&&this['_handleResizeThrottled']();}),this['_observer']['observe'](this);}}['deactivate']({reset:_0x4fc008=!0x1}={}){this['_isActive']&&(!_0x4fc008&&this['_commit'](),this['_isActive']=!0x1,this['_transitionToCrop'](),this['className']=classNames({'uc-active_from_viewer':!0x1,'uc-active_from_editor':!0x1,'uc-inactive_to_editor':!0x0}),this['ref']['frame-el']['toggleThumbs'](!0x1),this['addEventListener']('transitionend',this['_reset'],{'once':!0x0}),this['_observer']?.['disconnect']());}['_transitionToCrop'](){const _0xc76b18=this['_getCropDimensions'](),_0x41ec92=this['$']['*cropBox'],_0x163ede=Math['min'](this['offsetWidth'],_0xc76b18[0x0])/_0x41ec92['width'],_0x20ca00=Math['min'](this['offsetHeight'],_0xc76b18[0x1])/_0x41ec92['height'],_0x53dc73=Math['min'](_0x163ede,_0x20ca00),_0x5a7eff=_0x41ec92['x']+_0x41ec92['width']/0x2,_0x383817=_0x41ec92['y']+_0x41ec92['height']/0x2;this['style']['transform']='scale('+_0x53dc73+')\x20translate('+(this['offsetWidth']/0x2-_0x5a7eff)/_0x53dc73+'px,\x20'+(this['offsetHeight']/0x2-_0x383817)/_0x53dc73+'px)',this['style']['transformOrigin']=_0x5a7eff+'px\x20'+_0x383817+'px';}['_transitionToImage'](){const _0x4af20a=this['$']['*cropBox'],_0x229052=_0x4af20a['x']+_0x4af20a['width']/0x2,_0xa1a686=_0x4af20a['y']+_0x4af20a['height']/0x2;this['style']['transform']='scale(1)',this['style']['transformOrigin']=_0x229052+'px\x20'+_0xa1a686+'px';}['_reset'](){this['_isActive']||(this['$']['image']=null);}async['_waitForImage'](_0x1b25bf,_0xa34e46){const _0x15222c=this['offsetWidth'];_0xa34e46={..._0xa34e46,'crop':void 0x0,'rotate':void 0x0,'flip':void 0x0,'mirror':void 0x0};const _0x16991c=await this['proxyUrl'](viewerImageSrc(_0x1b25bf,_0x15222c,_0xa34e46)),{promise:_0x2cfb71,cancel:_0x4a789b,image:_0x3656cd}=preloadImage(_0x16991c),_0x24ba74=this['_handleImageLoading'](_0x16991c);return _0x3656cd['addEventListener']('load',_0x24ba74,{'once':!0x0}),_0x3656cd['addEventListener']('error',_0x24ba74,{'once':!0x0}),this['_cancelPreload']?.(),this['_cancelPreload']=_0x4a789b,_0x2cfb71['then'](()=>_0x3656cd)['catch'](_0x445f50=>(console['error']('Failed\x20to\x20load\x20image',{'error':_0x445f50}),this['$']['*networkProblems']=!0x0,_0x3656cd));}['_handleImageLoading'](_0x63cd7e){const _0x3a4e52='crop',_0x25f7dd=this['$']['*loadingOperations'];let _0x242d68=_0x25f7dd['get'](_0x3a4e52);return _0x242d68||(_0x242d68=new Map(),_0x25f7dd['set'](_0x3a4e52,_0x242d68)),_0x242d68['get'](_0x63cd7e)||(_0x242d68['set'](_0x63cd7e,!0x0),this['$']['*loadingOperations']=_0x25f7dd),()=>{const _0x26841b=_0x25f7dd['get'](_0x3a4e52);_0x26841b?.['has'](_0x63cd7e)&&(_0x26841b['delete'](_0x63cd7e),this['$']['*loadingOperations']=_0x25f7dd);};}['initCallback'](){super['initCallback'](),this['sub']('*imageBox',()=>{this['_draw']();}),this['sub']('*cropBox',()=>{this['$']['image']&&this['_commitDebounced']();}),this['sub']('*currentAspectRatio',()=>{this['_alignCrop']();}),setTimeout(()=>{this['sub']('*networkProblems',_0x2b0974=>{_0x2b0974||this['_isActive']&&this['activate'](this['_imageSize'],{'fromViewer':!0x1});});},0x0);}['destroyCallback'](){super['destroyCallback'](),this['_observer']?.['disconnect']();}};function linspace(_0x1436b3,_0x4ac356,_0x1cf0fa){const _0x210358=_0x1cf0fa-0x1,_0x574c21=new Array(_0x1cf0fa);for(let _0x36e4af=_0x210358;_0x36e4af>=0x0;_0x36e4af-=0x1)_0x574c21[_0x36e4af]=Math['ceil']((_0x36e4af*_0x4ac356+(_0x210358-_0x36e4af)*_0x1436b3)/_0x210358);return _0x574c21;}function isOperationKey(_0x5287a4){return'string'==typeof _0x5287a4&&_0x5287a4 in COLOR_OPERATIONS_CONFIG;}function splitBySections(_0x5a6f60){const _0x34c9b6=[];for(let _0x337711=0x0;_0x337711<_0x5a6f60['length']-0x1;_0x337711+=0x1){const _0x2207cc=_0x5a6f60[_0x337711],_0x458a8c=_0x5a6f60[_0x337711+0x1];'number'==typeof _0x2207cc&&'number'==typeof _0x458a8c&&_0x34c9b6['push']([_0x2207cc,_0x458a8c]);}return _0x34c9b6;}function calculateOpacities(_0x5c0e7a,_0x1a3c34,_0x2755d0){const _0x529d73=splitBySections(_0x5c0e7a)['find'](([_0x8efb02,_0x135b78])=>_0x8efb02<=_0x1a3c34&&_0x1a3c34<=_0x135b78);if(!_0x529d73)return _0x5c0e7a['map'](()=>0x0);const [_0x375ecf,_0x49523f]=_0x529d73;return _0x5c0e7a['map'](_0x24e7b5=>{const _0x1f2aa8=Math['abs'](_0x375ecf-_0x49523f)||0x1,_0xf87585=Math['abs'](_0x1a3c34-_0x375ecf)/_0x1f2aa8;return _0x375ecf===_0x24e7b5?_0x1a3c34>_0x2755d0?0x1:0x1-_0xf87585:_0x49523f===_0x24e7b5?_0x1a3c34>=_0x2755d0?_0xf87585:0x1:0x0;});}function calculateZIndices(_0x9eaed1,_0x1bff1c){return _0x9eaed1['map']((_0x15ffe1,_0x2bd63f)=>_0x15ffe1<_0x1bff1c?_0x9eaed1['length']-_0x2bd63f:_0x2bd63f);}function keypointsRange(_0x3ba1e3,_0x52e3bf){const _0x1c1e88=COLOR_OPERATIONS_CONFIG[_0x3ba1e3]['keypointsNumber'],{range:_0x4c78cd,zero:_0x2ebf54}=COLOR_OPERATIONS_CONFIG[_0x3ba1e3];return[...new Set([...linspace(_0x4c78cd[0x0],_0x2ebf54,_0x1c1e88+0x1),...linspace(_0x2ebf54,_0x4c78cd[0x1],_0x1c1e88+0x1),_0x2ebf54,_0x52e3bf])]['sort']((_0xdc10d1,_0x51ebed)=>_0xdc10d1-_0x51ebed);}EditorImageCropper['template']='\x0a\x20\x20<canvas\x20class=\x22uc-canvas\x22\x20ref=\x22canvas-el\x22></canvas>\x0a\x20\x20<uc-crop-frame\x20ref=\x22frame-el\x22></uc-crop-frame>\x0a';var EditorImageFader=class extends Block{['_isActive']=!0x1;['_hidden']=!0x0;['_operation']='initial';['_filter'];['_value'];['_transformations']={};['_keypoints']=[];['_container'];['_previewImage'];['_cancelLastImages'];['_cancelBatchPreload'];['_url'];['_fromViewer'];['_raf']=0x0;['_addKeypointDebounced']=debounce(this['_addKeypoint']['bind'](this),0x258);constructor(){super(),this['classList']['add']('uc-inactive_to_cropper');}['_handleImageLoading'](_0xc2bed6){const _0x5e9dcf=this['_operation'],_0x3c1070=this['$']['*loadingOperations'];_0x3c1070['has'](_0x5e9dcf)||_0x3c1070['set'](_0x5e9dcf,new Map());const _0x3f0c89=_0x3c1070['get'](_0x5e9dcf);return _0x3f0c89&&!_0x3f0c89['get'](_0xc2bed6)&&(_0x3f0c89['set'](_0xc2bed6,!0x0),this['$']['*loadingOperations']=_0x3c1070),()=>{const _0x337ecf=_0x3c1070['get'](_0x5e9dcf);_0x337ecf?.['has'](_0xc2bed6)&&(_0x337ecf['delete'](_0xc2bed6),this['$']['*loadingOperations']=_0x3c1070);};}['_flush'](){window['cancelAnimationFrame'](this['_raf']),this['_raf']=window['requestAnimationFrame'](()=>{for(const _0x53ce82 of this['_keypoints']){const {image:_0x7e5e23}=_0x53ce82;_0x7e5e23&&(_0x7e5e23['style']['opacity']=_0x53ce82['opacity']['toString'](),_0x7e5e23['style']['zIndex']=_0x53ce82['zIndex']['toString']());}});}['_imageSrc']({url:_0x1c7eaf=this['_url'],filter:_0x445513=this['_filter']??void 0x0,operation:_0x5726a4,value:_0x693766}={}){if(!_0x1c7eaf)throw new Error('URL\x20is\x20not\x20defined');const _0x4a1eaf={...this['_transformations']};_0x5726a4&&('filter'===_0x5726a4?_0x445513&&'number'==typeof _0x693766&&(_0x4a1eaf['filter']={'name':_0x445513,'amount':_0x693766}):'number'==typeof _0x693766&&(_0x4a1eaf[_0x5726a4]=_0x693766));const _0x61656e=this['offsetWidth'];return this['proxyUrl'](viewerImageSrc(_0x1c7eaf,_0x61656e,_0x4a1eaf));}async['_constructKeypoint'](_0x49866a,_0x231f4d){return{'src':await this['_imageSrc']({'operation':_0x49866a,'value':_0x231f4d}),'image':void 0x0,'opacity':0x0,'zIndex':0x0,'value':_0x231f4d};}['_isSame'](_0x309f43,_0x11ec5d){return this['_operation']===_0x309f43&&this['_filter']===_0x11ec5d;}async['_addKeypoint'](_0x4c90e8,_0x391d70,_0x41f08e){const _0x3050cd=()=>!this['_isSame'](_0x4c90e8,_0x391d70)||this['_value']!==_0x41f08e||!!this['_keypoints']['find'](_0xecb3a4=>_0xecb3a4['value']===_0x41f08e);if(_0x3050cd())return;const _0x342b4d=await this['_constructKeypoint'](_0x4c90e8,_0x41f08e),_0x2b7cc8=new Image();_0x2b7cc8['src']=_0x342b4d['src'];const _0x453c2a=this['_handleImageLoading'](_0x342b4d['src']);_0x2b7cc8['addEventListener']('load',_0x453c2a,{'once':!0x0}),_0x2b7cc8['addEventListener']('error',_0x453c2a,{'once':!0x0}),_0x342b4d['image']=_0x2b7cc8,_0x2b7cc8['classList']['add']('uc-fader-image'),_0x2b7cc8['addEventListener']('load',()=>{if(_0x3050cd())return;const _0x2e1107=this['_keypoints'];let _0x3bb95b=_0x2e1107['findIndex'](_0x8689e9=>_0x8689e9['value']>_0x41f08e);-0x1===_0x3bb95b&&(_0x3bb95b=_0x2e1107['length']);const _0x1c8b2c=_0x2e1107[_0x3bb95b],_0x3626a2=_0x1c8b2c?.['image'],_0x55b451=this['_container'];!_0x55b451||_0x3626a2&&!_0x55b451['contains'](_0x3626a2)||(_0x2e1107['splice'](_0x3bb95b,0x0,_0x342b4d),_0x3626a2&&_0x55b451['insertBefore'](_0x2b7cc8,_0x3626a2),this['_update'](_0x4c90e8,_0x41f08e));},{'once':!0x0}),_0x2b7cc8['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}['set'](_0x550c60){const _0x47e69b='string'==typeof _0x550c60?parseInt(_0x550c60,0xa):_0x550c60;isOperationKey(this['_operation'])&&Number['isFinite'](_0x47e69b)&&(this['_update'](this['_operation'],_0x47e69b),this['_addKeypointDebounced'](this['_operation'],this['_filter'],_0x47e69b));}['_update'](_0x59e814,_0x1e67e1){this['_operation']=_0x59e814,this['_value']=_0x1e67e1;const {zero:_0x36c842}=COLOR_OPERATIONS_CONFIG[_0x59e814],_0xdd0a40=this['_keypoints']['map'](_0x542945=>_0x542945['value']),_0x166cbd=calculateOpacities(_0xdd0a40,_0x1e67e1,_0x36c842),_0x562494=calculateZIndices(_0xdd0a40,_0x36c842);this['_keypoints']['forEach']((_0x5ea34f,_0x632166)=>{const _0x196e57=_0x166cbd[_0x632166],_0x457ff4=_0x562494[_0x632166];'number'==typeof _0x196e57&&(_0x5ea34f['opacity']=_0x196e57),'number'==typeof _0x457ff4&&(_0x5ea34f['zIndex']=_0x457ff4);}),this['_flush']();}['_createPreviewImage'](){const _0x5222da=new Image();return _0x5222da['classList']['add']('uc-fader-image','uc-fader-image--preview'),_0x5222da['style']['opacity']='0',_0x5222da;}async['_initNodes'](){const _0xba5442=document['createDocumentFragment']();this['_previewImage']=this['_previewImage']||this['_createPreviewImage']();const _0x45ce13=this['_previewImage'];this['contains'](_0x45ce13)||_0xba5442['appendChild'](_0x45ce13);const _0x145948=document['createElement']('div');_0xba5442['appendChild'](_0x145948);const _0x4df957=this['_keypoints']['map'](_0xc7d5b2=>_0xc7d5b2['src']),{images:_0xef8ad9,promise:_0x49b50d,cancel:_0x2894f7}=batchPreloadImages(_0x4df957);_0xef8ad9['forEach'](_0x684f43=>{const _0x3d4442=this['_handleImageLoading'](_0x684f43['src']);_0x684f43['addEventListener']('load',_0x3d4442),_0x684f43['addEventListener']('error',_0x3d4442);}),this['_cancelLastImages']=()=>{_0x2894f7(),this['_cancelLastImages']=void 0x0;};const _0x563972=this['_operation'],_0x22db37=this['_filter'];await _0x49b50d,this['_isActive']&&this['_isSame'](_0x563972,_0x22db37)&&(this['_container']?.['remove'](),this['_container']=_0x145948,this['_keypoints']['forEach']((_0x32a313,_0x7b487a)=>{const _0x3f955f=_0xef8ad9[_0x7b487a];_0x3f955f&&(_0x3f955f['classList']['add']('uc-fader-image'),_0x32a313['image']=_0x3f955f,this['_container']?.['appendChild'](_0x3f955f));}),this['appendChild'](_0xba5442),this['_flush']());}async['setTransformations'](_0xeda134){if(this['_transformations']=_0xeda134,this['_previewImage']){const _0x134b1b=await this['_imageSrc'](),_0x2988c0=this['_handleImageLoading'](_0x134b1b);this['_previewImage']['src']=_0x134b1b,this['_previewImage']['addEventListener']('load',_0x2988c0,{'once':!0x0}),this['_previewImage']['addEventListener']('error',_0x2988c0,{'once':!0x0}),this['_previewImage']['style']['opacity']='1',this['_previewImage']['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}}async['preload']({url:_0x1bdbcd,filter:_0x14150f,operation:_0x160467,value:_0x228833}){if(!_0x160467||'number'!=typeof _0x228833)return;this['_cancelBatchPreload']?.();const _0x2ed356=keypointsRange(_0x160467,_0x228833),_0x4a36b7=await Promise['all'](_0x2ed356['map'](_0x19204c=>this['_imageSrc']({'url':_0x1bdbcd,'filter':_0x14150f,'operation':_0x160467,'value':_0x19204c}))),{cancel:_0x4148e9}=batchPreloadImages(_0x4a36b7);this['_cancelBatchPreload']=_0x4148e9;}['_setOriginalSrc'](_0x2467f1){const _0x37316f=this['_previewImage']||this['_createPreviewImage']();if(this['contains'](_0x37316f)||this['appendChild'](_0x37316f),this['_previewImage']=_0x37316f,_0x37316f['src']===_0x2467f1)return _0x37316f['style']['opacity']='1',_0x37316f['style']['transform']='scale(1)',void(this['className']=classNames({'uc-active_from_viewer':this['_fromViewer'],'uc-active_from_cropper':!this['_fromViewer'],'uc-inactive_to_cropper':!0x1}));_0x37316f['style']['opacity']='0';const _0x529ab9=this['_handleImageLoading'](_0x2467f1);_0x37316f['addEventListener']('error',_0x529ab9,{'once':!0x0}),_0x37316f['src']=_0x2467f1,_0x37316f['addEventListener']('load',()=>{_0x529ab9(),_0x37316f&&(_0x37316f['style']['opacity']='1',_0x37316f['style']['transform']='scale(1)',this['className']=classNames({'uc-active_from_viewer':this['_fromViewer'],'uc-active_from_cropper':!this['_fromViewer'],'uc-inactive_to_cropper':!0x1}));},{'once':!0x0}),_0x37316f['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}async['activate']({url:_0x44b40f,operation:_0x12fb99,value:_0x35c70,filter:_0x314fab,fromViewer:_0x10b0c9}){this['_isActive']=!0x0,this['_hidden']=!0x1,this['_url']=_0x44b40f,this['_operation']=_0x12fb99??'initial',this['_value']=_0x35c70,this['_filter']=_0x314fab,this['_fromViewer']=_0x10b0c9;if('number'!=typeof _0x35c70&&!_0x314fab){const _0x4e002d=await this['_imageSrc']({'operation':_0x12fb99,'value':_0x35c70});return this['_setOriginalSrc'](_0x4e002d),void this['_container']?.['remove']();}_0x12fb99&&'number'==typeof _0x35c70&&(this['_keypoints']=await Promise['all'](keypointsRange(_0x12fb99,_0x35c70)['map'](_0x45bea4=>this['_constructKeypoint'](_0x12fb99,_0x45bea4))),this['_update'](_0x12fb99,_0x35c70),this['_initNodes']());}['deactivate']({hide:_0x80482d=!0x0}={}){this['_isActive']=!0x1,this['_cancelLastImages']?.(),this['_cancelBatchPreload']?.(),_0x80482d&&!this['_hidden']?(this['_hidden']=!0x0,this['_previewImage']&&(this['_previewImage']['style']['transform']='scale(1)'),this['className']=classNames({'uc-active_from_viewer':!0x1,'uc-active_from_cropper':!0x1,'uc-inactive_to_cropper':!0x0}),this['addEventListener']('transitionend',()=>{this['_container']?.['remove']();},{'once':!0x0})):this['_container']?.['remove']();}},EditorOperationControl=class extends EditorButtonControl{['_operation']='';['initCallback'](){super['initCallback'](),this['$']['on.click']=_0x113636=>{this['$']['*sliderEl']['setOperation'](this['_operation']),this['$']['*showSlider']=!0x0,this['$']['*currentOperation']=this['_operation'],this['telemetryManager']['sendEventCloudImageEditor'](_0x113636,this['$']['*tabId'],{'operation':parseFilterValue(this['$']['*operationTooltip'])});},this['defineAccessor']('operation',_0x40f9a1=>{_0x40f9a1&&(this['_operation']=_0x40f9a1,this['$']['icon']=_0x40f9a1,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-tuning',{'name':this['l10n'](_0x40f9a1)['toLowerCase']()})),this['bindL10n']('title',()=>this['l10n'](_0x40f9a1)));}),this['sub']('*editorTransformations',_0x1bc843=>{if(!this['_operation'])return;const {zero:_0x4fcf7b}=COLOR_OPERATIONS_CONFIG[this['_operation']],_0x1e9787=_0x1bc843[this['_operation']],_0x54910d=void 0x0!==_0x1e9787&&_0x1e9787!==_0x4fcf7b;this['$']['active']=_0x54910d;});}},X_THRESHOLD=0x1,EditorScroller=class extends Block{['initCallback'](){super['initCallback'](),this['addEventListener']('wheel',_0x5d9803=>{_0x5d9803['preventDefault']();const {deltaY:_0x465b3b,deltaX:_0x4cb949}=_0x5d9803;Math['abs'](_0x4cb949)>X_THRESHOLD?this['scrollLeft']+=_0x4cb949:this['scrollLeft']+=_0x465b3b;},{'passive':!0x1}),this['addEventListener']('scroll',()=>{},{'passive':!0x0});}};function renderTabToggle(_0x3c61d1){return'\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-tab-toggle\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.tabToggle.'+_0x3c61d1+';\x20styles:\x20presence.tabToggleStyles;\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-btn-ui\x0a\x20\x20\x20\x20\x20\x20\x20\x20theme=\x22tab\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20ref=\x22tab-toggle-'+_0x3c61d1+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-id=\x22'+_0x3c61d1+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22'+_0x3c61d1+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20on.clickTab;\x20aria-role:tab_role;\x20aria-controls:tab_'+_0x3c61d1+';\x20title-prop:\x20a11y-editor-tab-'+_0x3c61d1+'\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20</uc-btn-ui>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20';}function renderTabContent(_0x3bde69){return'\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20id=\x22tab_'+_0x3bde69+'\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-tab-content\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.tabContent.'+_0x3bde69+';\x20styles:\x20presence.tabContentStyles\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-editor-scroller\x20hidden-scrollbar>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-controls-list_align\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20role=\x22listbox\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20aria-orientation=\x22horizontal\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-controls-list_inner\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ref=\x22controls-list-'+_0x3bde69+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</uc-editor-scroller>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20';}EditorScroller['template']='\x20<slot></slot>\x20';var EditorToolbar=class extends Block{['_debouncedShowLoader'];['_cancelPreload'];['_updateInfoTooltip'];constructor(){super(),this['init$']={...this['init$'],'*sliderEl':null,'*listAspectRatioEl':null,'*loadingOperations':new Map(),'*showSlider':!0x1,'*showListAspectRatio':!0x1,'hideSliderOrList':!0x1,'*currentFilter':FAKE_ORIGINAL_FILTER,'*currentOperation':null,'showLoader':!0x1,'filters':ALL_FILTERS,'colorOperations':ALL_COLOR_OPERATIONS,'cropOperations':ALL_CROP_OPERATIONS,'*operationTooltip':null,'presence.mainToolbar':!0x0,'presence.subToolbar':!0x1,'presence.tabToggles':!0x0,'presence.tabContent.crop':!0x1,'presence.tabContent.tuning':!0x1,'presence.tabContent.filters':!0x1,'presence.tabToggle.crop':!0x0,'presence.tabToggle.tuning':!0x0,'presence.tabToggle.filters':!0x0,'presence.subTopToolbarStyles':{'hidden':'uc-sub-toolbar--top-hidden','visible':'uc-sub-toolbar--visible'},'presence.subBottomToolbarStyles':{'hidden':'uc-sub-toolbar--bottom-hidden','visible':'uc-sub-toolbar--visible'},'presence.tabContentStyles':{'hidden':'uc-tab-content--hidden','visible':'uc-tab-content--visible'},'presence.tabToggleStyles':{'hidden':'uc-tab-toggle--hidden','visible':'uc-tab-toggle--visible'},'presence.tabTogglesStyles':{'hidden':'uc-tab-toggles--hidden','visible':'uc-tab-toggles--visible'},'on.cancel':_0x34e74f=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x34e74f,this['$']['*tabId'],{'action':'cancel'}),this['_cancelPreload']?.(),(0x0,this['$']['*on.cancel'])();},'on.apply':_0x160058=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x160058,this['$']['*tabId'],{'action':'apply'}),(0x0,this['$']['*on.apply'])(this['$']['*editorTransformations']);},'on.applySlider':_0x19758b=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x19758b,this['$']['*tabId'],{'action':'apply-slider','operation':parseFilterValue(this['$']['*operationTooltip'])}),(this['ref']['slider-el']['apply'](),this['_onSliderClose']());},'on.cancelSlider':_0x95230e=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x95230e,this['$']['*tabId'],{'action':'cancel-slider'}),(this['ref']['slider-el']['cancel'](),this['_onSliderClose']());},'on.clickTab':_0x13ead3=>{const _0x5e63a1=_0x13ead3['currentTarget'],_0x563bfa=_0x5e63a1?.['getAttribute']('data-id');_0x563bfa&&(this['telemetryManager']['sendEventCloudImageEditor'](_0x13ead3,_0x563bfa),this['_activateTab'](_0x563bfa,{'fromViewer':!0x1}));},'tab_role':'tab',['tab_'+TabId['TUNING']]:'tab_'+TabId['TUNING'],['tab_'+TabId['CROP']]:'tab_'+TabId['CROP'],['tab_'+TabId['FILTERS']]:'tab_'+TabId['FILTERS'],'cancel':'cancel','apply':'apply','a11y-editor-tab-filters':'a11y-editor-tab-filters','a11y-editor-tab-tuning':'a11y-editor-tab-tuning','a11y-editor-tab-crop':'a11y-editor-tab-crop'},this['_debouncedShowLoader']=debounce(this['_showLoader']['bind'](this),0x1f4),this['_updateInfoTooltip']=debounce(this['_updateInfoTooltipHandler']['bind'](this),0x0);}['_onSliderClose'](){(this['$']['*showSlider']=!0x1,this['$']['*tabId']===TabId['CROP']&&(this['$']['*showListAspectRatio']=!0x1),this['$']['*tabId']===TabId['TUNING'])&&this['ref']['tooltip-el']['classList']['toggle']('uc-info-tooltip_visible',!0x1);}['_createOperationControl'](_0x857776){const _0x16cce3=new EditorOperationControl();return _0x16cce3['operation']=_0x857776,_0x16cce3;}['_createFilterControl'](_0x2e1a2c){const _0x3ad52a=new EditorFilterControl();return _0x3ad52a['filter']=_0x2e1a2c,_0x3ad52a;}['_createToggleControl'](_0x3df4e1){const _0x409e38=new EditorCropButtonControl();return _0x409e38['operation']=_0x3df4e1,_0x409e38;}['_createAspectRatioControl'](_0x35786f){const _0xf42610=new EditorAspectRatioButtonControl();return _0xf42610['aspectRatio']=_0x35786f,_0xf42610;}['_createFreeformControl'](){return new EditorFreeformButtonControl();}['_clearListAspectRatio'](){const _0x497624=this['$']['*listAspectRatioEl'];_0x497624&&(_0x497624['innerHTML']='');}['_renderControlsList'](_0x44d675){const _0x30d71e=this['ref']['controls-list-'+_0x44d675],_0x2c4c44=document['createDocumentFragment']();if(this['_clearListAspectRatio'](),_0x44d675===TabId['CROP']){const _0x42fd92=this['$']['*cropPresetList'],_0x2c7e69=_0x42fd92['length']>=0x3;if(_0x2c7e69){const _0x5925c8=this['_createFreeformControl']();_0x2c4c44['appendChild'](_0x5925c8);}for(const _0xa2d97f of _0x42fd92){const _0x32ab9a=this['_createAspectRatioControl'](_0xa2d97f);if(_0x2c4c44['appendChild'](_0x32ab9a),_0x2c7e69){const _0x277fb8=this['$']['*listAspectRatioEl'];_0x277fb8?.['appendChild'](_0x32ab9a);}}for(const _0x498706 of this['$']['cropOperations']){const _0x3ee1ff=this['_createToggleControl'](_0x498706);_0x2c4c44['appendChild'](_0x3ee1ff);}}else{if(_0x44d675===TabId['FILTERS']){const _0x4f77e1=this['$']['filters'];[FAKE_ORIGINAL_FILTER,..._0x4f77e1]['forEach'](_0x5a75f1=>{const _0x7fd59b=this['_createFilterControl'](_0x5a75f1);_0x2c4c44['appendChild'](_0x7fd59b);});}else{if(_0x44d675===TabId['TUNING'])for(const _0x69aa2a of this['$']['colorOperations']){const _0x3cf4cd=this['_createOperationControl'](_0x69aa2a);_0x2c4c44['appendChild'](_0x3cf4cd);}}}[..._0x2c4c44['children']]['forEach']((_0x21ddfa,_0x529e50)=>{_0x529e50===_0x2c4c44['childNodes']['length']-0x1&&_0x21ddfa['classList']['add']('uc-controls-list_last-item');}),_0x30d71e['innerHTML']='',_0x30d71e['appendChild'](_0x2c4c44);}['_activateTab'](_0x5a3100,{fromViewer:_0x4c793e}={}){this['$']['*tabId']=_0x5a3100;const _0x177fe2=this['$']['*faderEl'],_0x5a3039=this['$']['*cropperEl'];_0x5a3100===TabId['CROP']?(_0x177fe2?.['deactivate'](),_0x5a3039?.['activate'](this['$']['*imageSize'],{'fromViewer':_0x4c793e})):(_0x177fe2?.['activate']({'url':this['$']['*originalUrl'],'fromViewer':_0x4c793e}),_0x5a3039?.['deactivate']());for(const _0x24b8e0 of ALL_TABS){const _0x241336=_0x24b8e0===_0x5a3100;this['ref']['tab-toggle-'+_0x24b8e0]['active']=_0x241336,_0x241336?(this['_renderControlsList'](_0x5a3100),this['_syncTabIndicator']()):this['_unmountTabControls'](_0x24b8e0),this['$']['presence.tabContent.'+_0x24b8e0]=_0x241336;}}['_unmountTabControls'](_0x2b3856){const _0xbf8f31=this['ref']['controls-list-'+_0x2b3856];_0xbf8f31&&(_0xbf8f31['innerHTML']='');}['_syncTabIndicator'](){const _0x3e1c70=this['ref']['tab-toggle-'+this['$']['*tabId']];this['ref']['tabs-indicator']['style']['transform']='translateX('+_0x3e1c70['offsetLeft']+'px)';}async['_preloadEditedImage'](){if(this['$']['*imgContainerEl']&&this['$']['*originalUrl']){const _0x932320=this['$']['*imgContainerEl']['offsetWidth'],_0x5b53a9=await this['proxyUrl'](viewerImageSrc(this['$']['*originalUrl'],_0x932320,this['$']['*editorTransformations']));this['_cancelPreload']?.();const {cancel:_0x3c32c2}=batchPreloadImages([_0x5b53a9]);this['_cancelPreload']=()=>{_0x3c32c2(),this['_cancelPreload']=void 0x0;};}}['_showLoader'](_0x46d6f0){this['$']['showLoader']=_0x46d6f0;}['_updateInfoTooltipHandler'](){const _0x176a29=this['$']['*editorTransformations'],_0x23d7f8=this['$']['*currentOperation'];let _0x218d91='',_0xf7c7ad=!0x1;if(this['$']['*tabId']===TabId['FILTERS']){if(_0xf7c7ad=!0x0,this['$']['*currentFilter']&&_0x176a29?.['filter']?.['name']===this['$']['*currentFilter']){const _0x46f782=_0x176a29?.['filter']?.['amount']||0x64;_0x218d91=this['$']['*currentFilter']+'\x20'+_0x46f782;}else _0x218d91=this['l10n'](FAKE_ORIGINAL_FILTER);}else{if(this['$']['*tabId']===TabId['TUNING']&&_0x23d7f8){_0xf7c7ad=!0x0;const _0x274e44=_0x176a29?.[_0x23d7f8]||COLOR_OPERATIONS_CONFIG[_0x23d7f8]['zero'];_0x218d91=this['l10n'](_0x23d7f8)+'\x20'+_0x274e44;}}_0xf7c7ad&&(this['$']['*operationTooltip']=_0x218d91),this['ref']['tooltip-el']['classList']['toggle']('uc-info-tooltip_visible',_0xf7c7ad);}['initCallback'](){super['initCallback'](),this['$']['*sliderEl']=this['ref']['slider-el'],this['$']['*listAspectRatioEl']=this['ref']['list-el'],this['sub']('*imageSize',_0x2246a5=>{_0x2246a5&&setTimeout(()=>{this['_activateTab'](this['$']['*tabId'],{'fromViewer':!0x0});},0x0);}),this['sub']('*editorTransformations',_0x3ae2e2=>{const _0x532ad0=_0x3ae2e2?.['filter']?.['name'];this['$']['*currentFilter']!==_0x532ad0&&(this['$']['*currentFilter']=_0x532ad0);}),this['sub']('*currentFilter',()=>{this['_updateInfoTooltip']();}),this['sub']('*currentOperation',()=>{this['_updateInfoTooltip']();}),this['sub']('*tabId',()=>{this['_updateInfoTooltip']();}),this['sub']('*originalUrl',()=>{this['$']['*faderEl']?.['deactivate']();}),this['sub']('*editorTransformations',_0x26b84e=>{this['_preloadEditedImage'](),this['$']['*faderEl']?.['setTransformations'](_0x26b84e);}),this['sub']('*loadingOperations',_0x59cb09=>{let _0x233f39=!0x1;for(const [,_0x13cdbc]of _0x59cb09['entries']()){if(_0x233f39)break;for(const [,_0x58f538]of _0x13cdbc['entries']())if(_0x58f538){_0x233f39=!0x0;break;}}this['_debouncedShowLoader'](_0x233f39);}),this['sub']('*showSlider',_0x5e882b=>{this['$']['presence.subToolbar']=_0x5e882b,this['$']['presence.mainToolbar']=!_0x5e882b,this['$']['hideSliderOrList']=!0x0;}),this['sub']('*showListAspectRatio',_0x53861e=>{this['$']['presence.subToolbar']=_0x53861e,this['$']['presence.mainToolbar']=!_0x53861e,this['$']['hideSliderOrList']=!0x1;}),this['sub']('*tabList',_0x2d1145=>{this['$']['presence.tabToggles']=_0x2d1145['length']>0x1;for(const _0x4123df of ALL_TABS){this['$']['presence.tabToggle.'+_0x4123df]=_0x2d1145['includes'](_0x4123df),this['ref']['tab-toggle-'+_0x4123df]['style']['gridColumn']=''+(_0x2d1145['indexOf'](_0x4123df)+0x1);}if(!_0x2d1145['includes'](this['$']['*tabId'])&&_0x2d1145['length']>0x0){const [_0x4535fc]=_0x2d1145;_0x4535fc&&this['_activateTab'](_0x4535fc,{'fromViewer':!0x1});}}),this['_updateInfoTooltip']();}['destroyCallback'](){this['$']['*showSlider']=!0x1,this['$']['*showListAspectRatio']=!0x1;}};EditorToolbar['template']='\x0a\x20\x20<uc-line-loader-ui\x20set=\x22active:\x20showLoader\x22></uc-line-loader-ui>\x0a\x20\x20<div\x20class=\x22uc-info-tooltip_container\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-info-tooltip_wrapper\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20ref=\x22tooltip-el\x22\x20class=\x22uc-info-tooltip\x20uc-info-tooltip_hidden\x22>{{*operationTooltip}}</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x20\x20<div\x20class=\x22uc-toolbar-container\x22>\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20role=\x22tablist\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-sub-toolbar\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.mainToolbar;\x20styles:\x20presence.subTopToolbarStyles\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-tab-content-row\x22>'+ALL_TABS['map'](renderTabContent)['join']('')+'</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-controls-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-tab-toggles\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.tabToggles;\x20styles:\x20presence.tabTogglesStyles\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20ref=\x22tabs-indicator\x22\x20class=\x22uc-tab-toggles_indicator\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+ALL_TABS['map'](renderTabToggle)['join']('')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20style=\x22order:\x20-1\x22\x20theme=\x22secondary-icon\x22\x20icon=\x22closeMax\x22\x20set=\x22onclick:\x20on.cancel;\x20title-prop:cancel\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20theme=\x22primary-icon\x22\x20icon=\x22done\x22\x20set=\x22onclick:\x20on.apply;\x20title-prop:apply\x22>\x20</uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-sub-toolbar\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.subToolbar;\x20styles:\x20presence.subBottomToolbarStyles\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-slider\x22\x20set=\x22@hidden:!hideSliderOrList\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-editor-slider\x20ref=\x22slider-el\x22></uc-editor-slider>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20<div\x20set=\x22@hidden:hideSliderOrList\x22\x20class=\x22uc-list-aspect-ratio-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-list-aspect-ratio\x22\x20ref=\x22list-el\x22></div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-controls-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20theme=\x22secondary\x22\x20set=\x22onclick:\x20on.cancelSlider\x22\x20l10n=\x22@text:cancel\x22>\x20</uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20theme=\x22primary\x22\x20set=\x22onclick:\x20on.applySlider\x22\x20l10n=\x22@text:apply\x22>\x20</uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20</div>\x0a';var BtnUi=class extends Block{['_iconReversed']=!0x1;['_iconSingle']=!0x1;['_iconHidden']=!0x1;constructor(){super(),this['init$']={...this['init$'],'text':'','icon':'','iconCss':this['_iconCss'](),'theme':null,'aria-role':'','aria-controls':'','title-prop':''},this['defineAccessor']('active',_0x28d45a=>{_0x28d45a?this['setAttribute']('active',''):this['removeAttribute']('active');});}['_iconCss'](){return classNames('uc-icon',{'uc-icon_left':!this['_iconReversed'],'uc-icon_right':this['_iconReversed'],'uc-icon_hidden':this['_iconHidden'],'uc-icon_single':this['_iconSingle']});}['initCallback'](){super['initCallback'](),this['sub']('icon',_0x52e20e=>{this['_iconSingle']=!this['$']['text'],this['_iconHidden']=!_0x52e20e,this['$']['iconCss']=this['_iconCss']();}),this['sub']('theme',_0x5651a6=>{_0x5651a6&&'custom'!==_0x5651a6&&(this['className']='uc-'+_0x5651a6);}),this['sub']('text',()=>{this['_iconSingle']=!0x1;}),this['hasAttribute']('theme')||this['setAttribute']('theme','default'),this['defineAccessor']('aria-role',_0xe64245=>{this['$']['aria-role']=_0xe64245||'';}),this['defineAccessor']('aria-controls',_0x22e553=>{this['$']['aria-controls']=_0x22e553||'';}),this['defineAccessor']('title-prop',_0x54dde8=>{this['$']['title-prop']=_0x54dde8||'';});}set['reverse'](_0x24d14f){this['hasAttribute']('reverse')?(this['style']['flexDirection']='row-reverse',this['_iconReversed']=!0x0):(this['_iconReversed']=!0x1,this['style']['flexDirection']='');}};BtnUi['bindAttributes']({'text':'text','icon':'icon','reverse':'reverse','theme':'theme'}),BtnUi['template']='\x0a\x20\x20<button\x0a\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20set=\x22@role:aria-role;\x20@aria-controls:\x20aria-controls;\x20@aria-label:title-prop\x22\x0a\x20\x20\x20\x20l10n=\x22@title:title-prop;\x22\x0a\x20\x20>\x0a\x20\x20\x20\x20<uc-icon\x20set=\x22className:\x20iconCss;\x20@name:\x20icon;\x20@hidden:\x20!icon\x22></uc-icon>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-text\x22>{{text}}</div>\x0a\x20\x20</button>\x0a';var LineLoaderUi=class extends Block{['_active']=!0x1;['_handleTransitionEndRight']=()=>{const _0x5a3b33=this['ref']['line-el'];_0x5a3b33['style']['transition']='initial',_0x5a3b33['style']['opacity']='0',_0x5a3b33['style']['transform']='translateX(-101%)',this['_active']&&this['_start']();};['initCallback'](){super['initCallback'](),this['defineAccessor']('active',_0x291065=>{'boolean'==typeof _0x291065&&(_0x291065?this['_start']():this['_stop']());});}['_start'](){this['_active']=!0x0;const {width:_0x13917e}=this['getBoundingClientRect'](),_0x54992e=this['ref']['line-el'];_0x54992e['style']['transition']='transform\x201s',_0x54992e['style']['opacity']='1',_0x54992e['style']['transform']='translateX('+_0x13917e+'px)',_0x54992e['addEventListener']('transitionend',this['_handleTransitionEndRight'],{'once':!0x0});}['_stop'](){this['_active']=!0x1;}};LineLoaderUi['template']='\x0a\x20\x20<div\x20class=\x22uc-inner\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-line\x22\x20ref=\x22line-el\x22></div>\x0a\x20\x20</div>\x0a';var DEFAULT_STYLE={'transition':'uc-transition','visible':'uc-visible','hidden':'uc-hidden'},PresenceToggle=class extends Block{['_visible']=!0x1;['_visibleStyle']=DEFAULT_STYLE['visible'];['_hiddenStyle']=DEFAULT_STYLE['hidden'];['_externalTransitions']=!0x1;constructor(){super(),this['defineAccessor']('styles',_0x52092c=>{_0x52092c&&(this['_externalTransitions']=!0x0,this['_visibleStyle']=_0x52092c['visible']??DEFAULT_STYLE['visible'],this['_hiddenStyle']=_0x52092c['hidden']??DEFAULT_STYLE['hidden']);}),this['defineAccessor']('visible',_0x15081d=>{'boolean'==typeof _0x15081d&&(this['_visible']=_0x15081d,this['_handleVisible']());});}['_handleVisible'](){this['style']['visibility']=this['_visible']?'inherit':'hidden',applyClassNames(this,{[DEFAULT_STYLE['transition']]:!this['_externalTransitions'],[this['_visibleStyle']]:this['_visible'],[this['_hiddenStyle']]:!this['_visible']}),this['setAttribute']('aria-hidden',this['_visible']?'false':'true');}['initCallback'](){super['initCallback'](),this['classList']['toggle']('uc-initial',!0x0),this['_externalTransitions']||this['classList']['add'](DEFAULT_STYLE['transition']),this['_handleVisible'](),setTimeout(()=>{this['classList']['toggle']('uc-initial',!0x1);},0x0);}};PresenceToggle['template']='<slot></slot>\x20';var SliderUi=class extends Block{['_observer'];['_thumbSize']=0x0;['_zero']=0x0;['_zeroDotEl'];['_stepsCount'];constructor(){super(),this['init$']={...this['init$'],'disabled':!0x1,'min':0x0,'max':0x64,'onInput':null,'onChange':null,'defaultValue':0x0,'on.sliderInput':()=>{const _0x63fa16=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x63fa16),this['$']['onInput']?.(_0x63fa16);},'on.sliderChange':()=>{const _0x317e1a=Number['parseInt'](this['_inputEl']()['value'],0xa);this['$']['onChange']?.(_0x317e1a);}},this['setAttribute']('with-effects','');}['initCallback'](){super['initCallback'](),this['defineAccessor']('disabled',_0x101b05=>{this['$']['disabled']=_0x101b05;}),this['defineAccessor']('min',_0x5e8c7b=>{this['$']['min']=_0x5e8c7b;}),this['defineAccessor']('max',_0x2844ab=>{this['$']['max']=_0x2844ab;}),this['defineAccessor']('defaultValue',_0xfd4343=>{this['$']['defaultValue']=_0xfd4343,(this['_inputEl']()['value']=String(_0xfd4343),this['_updateValue'](_0xfd4343));}),this['defineAccessor']('zero',_0xfd6ae0=>{this['_zero']=_0xfd6ae0;}),this['defineAccessor']('onInput',_0xceb927=>{_0xceb927&&(this['$']['onInput']=_0xceb927);}),this['defineAccessor']('onChange',_0x173f0f=>{_0x173f0f&&(this['$']['onChange']=_0x173f0f);}),this['_updateSteps'](),this['_observer']=new ResizeObserver(()=>{this['_updateSteps']();const _0x160e24=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x160e24);}),this['_observer']['observe'](this),this['_thumbSize']=Number['parseInt'](window['getComputedStyle'](this)['getPropertyValue']('--l-thumb-size'),0xa),setTimeout(()=>{const _0x49be95=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x49be95);},0x0),this['sub']('disabled',_0x589eeb=>{const _0x4cf3d1=this['_inputEl']();_0x589eeb?_0x4cf3d1['setAttribute']('disabled','disabled'):_0x4cf3d1['removeAttribute']('disabled');});const _0x27cc6e=this['_inputEl']();_0x27cc6e['addEventListener']('focus',()=>{this['style']['setProperty']('--color-effect','var(--hover-color-rgb)');}),_0x27cc6e['addEventListener']('blur',()=>{this['style']['setProperty']('--color-effect','var(--idle-color-rgb)');});}['_inputEl'](){return this['ref']['input-el'];}['_thumbEl'](){return this['ref']['thumb-el'];}['_stepsEl'](){return this['ref']['steps-el'];}['_updateValue'](_0xb85fe4){this['_updateZeroDot'](_0xb85fe4);const {width:_0x3e5b47}=this['getBoundingClientRect'](),_0x131c5d=0x64/(this['$']['max']-this['$']['min'])*(_0xb85fe4-this['$']['min'])*(_0x3e5b47-this['_thumbSize'])/0x64;window['requestAnimationFrame'](()=>{this['_thumbEl']()['style']['transform']='translateX('+_0x131c5d+'px)';});}['_updateZeroDot'](_0xfb2bb1){if(!this['_zeroDotEl'])return;this['_zeroDotEl']['style']['opacity']=_0xfb2bb1===this['_zero']?'0':'1';const {width:_0xeb562f}=this['getBoundingClientRect'](),_0x1bd86a=0x64/(this['$']['max']-this['$']['min'])*(this['_zero']-this['$']['min'])*(_0xeb562f-this['_thumbSize'])/0x64;window['requestAnimationFrame'](()=>{this['_zeroDotEl']&&(this['_zeroDotEl']['style']['transform']='translateX('+_0x1bd86a+'px)');});}['_updateSteps'](){const _0x496814=this['_stepsEl'](),{width:_0x21ca7f}=_0x496814['getBoundingClientRect'](),_0x10dd0a=Math['ceil'](_0x21ca7f/0x2),_0x2624fe=Math['ceil'](_0x10dd0a/0xf)-0x2;if(this['_stepsCount']===_0x2624fe)return;const _0x273a67=document['createDocumentFragment'](),_0x5bca73=document['createElement']('div'),_0x3757ac=document['createElement']('div');_0x5bca73['className']='uc-minor-step',_0x3757ac['className']='uc-border-step',_0x273a67['appendChild'](_0x3757ac);for(let _0x2f0a99=0x0;_0x2f0a99<_0x2624fe;_0x2f0a99+=0x1)_0x273a67['appendChild'](_0x5bca73['cloneNode']());_0x273a67['appendChild'](_0x3757ac['cloneNode']());for(let _0x1bbe18=0x0;_0x1bbe18<_0x2624fe;_0x1bbe18+=0x1)_0x273a67['appendChild'](_0x5bca73['cloneNode']());_0x273a67['appendChild'](_0x3757ac['cloneNode']());const _0x24cd5a=document['createElement']('div');_0x24cd5a['className']='uc-zero-dot',_0x273a67['appendChild'](_0x24cd5a),this['_zeroDotEl']=_0x24cd5a,_0x496814['innerHTML']='',_0x496814['appendChild'](_0x273a67),this['_stepsCount']=_0x2624fe;}['destroyCallback'](){super['destroyCallback'](),this['_observer']?.['disconnect']();}};SliderUi['template']='\x0a\x20\x20<div\x20class=\x22uc-steps\x22\x20ref=\x22steps-el\x22></div>\x0a\x20\x20<div\x20ref=\x22thumb-el\x22\x20class=\x22uc-thumb\x22></div>\x0a\x20\x20<input\x0a\x20\x20\x20\x20class=\x22uc-input\x22\x0a\x20\x20\x20\x20type=\x22range\x22\x0a\x20\x20\x20\x20ref=\x22input-el\x22\x0a\x20\x20\x20\x20set=\x22oninput:\x20on.sliderInput;\x20onchange:\x20on.sliderChange;\x20@min:\x20min;\x20@max:\x20max;\x20@value:\x20defaultValue;\x22\x0a\x20\x20/>\x0a';var CloudImageEditorActivity=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['CLOUD_IMG_EDIT'];['_entry'];['_instance'];get['activityParams'](){const _0x270ab5=super['activityParams'];if('internalId'in _0x270ab5)return _0x270ab5;throw new Error('Cloud\x20Image\x20Editor\x20activity\x20params\x20not\x20found');}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':()=>this['mountEditor'](),'onDeactivate':()=>this['unmountEditor']()}),this['subConfigValue']('cropPreset',_0x55eb96=>{this['_instance']&&this['_instance']['getAttribute']('crop-preset')!==_0x55eb96&&this['_instance']['setAttribute']('crop-preset',_0x55eb96);}),this['subConfigValue']('cloudImageEditorTabs',_0x26ad6d=>{this['_instance']&&this['_instance']['getAttribute']('tabs')!==_0x26ad6d&&this['_instance']['setAttribute']('tabs',_0x26ad6d);});}['handleApply'](_0x5bbfbf){if(!this['_entry'])return;const _0x2c878c=_0x5bbfbf['detail'];this['_entry']['setMultipleValues']({'cdnUrl':_0x2c878c['cdnUrl'],'cdnUrlModifiers':_0x2c878c['cdnUrlModifiers']}),this['modalManager']?.['close'](ActivityBlock['activities']['CLOUD_IMG_EDIT']),this['historyBack']();}['handleCancel'](){this['modalManager']?.['close'](ActivityBlock['activities']['CLOUD_IMG_EDIT']),this['historyBack']();}['mountEditor'](){const {internalId:_0xff7cf1}=this['activityParams'],_0x3de88b=this['uploadCollection']['read'](_0xff7cf1);if(!_0x3de88b)throw new Error('Entry\x20with\x20internalId\x20\x22'+_0xff7cf1+'\x22\x20not\x20found');this['_entry']=_0x3de88b;const _0x412255=this['_entry']['getValue']('cdnUrl');if(!_0x412255)throw new Error('Entry\x20with\x20internalId\x20\x22'+_0xff7cf1+'\x22\x20hasn\x27t\x20uploaded\x20yet');const _0x3d8538=new CloudImageEditorBlock(),_0x13147b=this['cfg']['cropPreset'],_0x506a24=this['cfg']['cloudImageEditorTabs'];_0x3d8538['setAttribute']('ctx-name',this['ctxName']),_0x3d8538['setAttribute']('cdn-url',_0x412255),_0x13147b&&_0x3d8538['setAttribute']('crop-preset',_0x13147b),_0x506a24&&_0x3d8538['setAttribute']('tabs',_0x506a24),_0x3d8538['addEventListener']('apply',_0x36a395=>{const _0x4adc1e=_0x36a395;this['handleApply'](_0x4adc1e),this['debugPrint']('editor\x20event\x20\x22apply\x22',_0x4adc1e['detail']);}),_0x3d8538['addEventListener']('cancel',_0x86158a=>{const _0x475a62=_0x86158a;this['handleCancel'](),this['debugPrint']('editor\x20event\x20\x22cancel\x22',_0x475a62['detail']);}),_0x3d8538['addEventListener']('change',_0x30e59a=>{const _0x1f0cf8=_0x30e59a;this['debugPrint']('editor\x20event\x20\x22change\x22',_0x1f0cf8['detail']);}),this['innerHTML']='',this['appendChild'](_0x3d8538),this['_instance']=_0x3d8538;}['unmountEditor'](){this['_instance']=void 0x0,this['_entry']=void 0x0,this['innerHTML']='';}},toKebabCase=_0x3853e1=>_0x3853e1['match'](/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.['map'](_0xd50f48=>_0xd50f48['toLowerCase']())['join']('-'),ASSERTIONS=[{'test':_0x4f565e=>!!_0x4f565e['accept']&&!!_0x4f565e['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':_0x2cbb71=>null!==_0x2cbb71['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':_0x52b93d=>null!==_0x52b93d['defaultCameraMode'],'message':'The\x20`defaultCameraMode`\x20parameter\x20is\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.\x0aPlease\x20use\x20the\x20`cameraModes`\x20parameter\x20instead.'}],runAssertions=debounce(_0x48215a=>{for(const {test:_0x46930b,message:_0x3396ff}of ASSERTIONS)_0x46930b(_0x48215a)&&warnOnce(_0x3396ff);},0x0),isPromiseLike=_0x270943=>_0x270943 instanceof Promise||Boolean(_0x270943&&'object'==typeof _0x270943&&'then'in _0x270943&&'function'==typeof _0x270943['then']),defineComputedProperty=_0x55e1fd=>_0x55e1fd,COMPUTED_PROPERTIES=[defineComputedProperty({'key':'cameraModes','deps':['enableVideoRecording'],'fn':({cameraModes:_0x1b040a,enableVideoRecording:_0x58722a})=>{if(null===_0x58722a)return _0x1b040a;let _0x2227f3=deserializeCsv(_0x1b040a);return _0x58722a&&!_0x2227f3['includes']('video')?_0x2227f3=_0x2227f3['concat']('video'):_0x58722a||(_0x2227f3=_0x2227f3['filter'](_0x36366a=>'video'!==_0x36366a)),serializeCsv(_0x2227f3);}}),defineComputedProperty({'key':'cameraModes','deps':['defaultCameraMode'],'fn':({cameraModes:_0x18d805,defaultCameraMode:_0x126fa2})=>{if(null===_0x126fa2)return _0x18d805;let _0x49bc63=deserializeCsv(_0x18d805);return _0x49bc63=_0x49bc63['sort']((_0x58e44a,_0x3739eb)=>_0x58e44a===_0x126fa2?-0x1:_0x3739eb===_0x126fa2?0x1:0x0),serializeCsv(_0x49bc63);}}),defineComputedProperty({'key':'cdnCname','deps':['pubkey','cdnCnamePrefixed'],'fn':({pubkey:_0x1d334,cdnCname:_0x10428c,cdnCnamePrefixed:_0x4cd05f})=>_0x1d334&&(_0x10428c===DEFAULT_CDN_CNAME||c$1(_0x10428c,_0x4cd05f))?f(_0x1d334,_0x4cd05f):_0x10428c})],computeProperty=({key:_0x390dfc,setValue:_0x2a4eb0,getValue:_0x522b29,computationControllers:_0x587365})=>{for(const _0x49d8ae of COMPUTED_PROPERTIES)if(_0x49d8ae['deps']['includes'](_0x390dfc)){const _0x2027ac={[_0x49d8ae['key']]:_0x522b29(_0x49d8ae['key'])};for(const _0x2cce76 of _0x49d8ae['deps'])_0x2027ac[_0x2cce76]=_0x522b29(_0x2cce76);const _0x3eb6a0=new AbortController();let _0x59c260;_0x587365['get'](_0x49d8ae['key'])?.['abort'](),_0x587365['set'](_0x49d8ae['key'],_0x3eb6a0);try{_0x59c260=_0x49d8ae['fn'](_0x2027ac,{'signal':_0x3eb6a0['signal']});}catch(_0x351f01){return _0x587365['get'](_0x49d8ae['key'])===_0x3eb6a0&&_0x587365['delete'](_0x49d8ae['key']),void console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x49d8ae['key']+'\x22',_0x351f01);}isPromiseLike(_0x59c260)?_0x59c260['then'](_0x2448f2=>{_0x3eb6a0['signal']['aborted']||_0x2a4eb0(_0x49d8ae['key'],_0x2448f2);})['catch'](_0x3199c5=>{_0x3eb6a0['signal']['aborted']||console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x49d8ae['key']+'\x22',_0x3199c5);})['finally'](()=>{_0x587365['get'](_0x49d8ae['key'])===_0x3eb6a0&&_0x587365['delete'](_0x49d8ae['key']);}):_0x2a4eb0(_0x49d8ae['key'],_0x59c260);}},asString=_0x40689c=>String(_0x40689c),asNumber2=_0x1e23f6=>{const _0x46ceb1=Number(_0x1e23f6);if(Number['isNaN'](_0x46ceb1))throw new Error('Invalid\x20number:\x20\x22'+_0x1e23f6+'\x22');return _0x46ceb1;},asBoolean2=_0x5448ef=>{if(null==_0x5448ef)return!0x1;if('boolean'==typeof _0x5448ef)return _0x5448ef;if('true'===_0x5448ef)return!0x0;if(''===_0x5448ef)return!0x0;if('false'===_0x5448ef)return!0x1;throw new Error('Invalid\x20boolean:\x20\x22'+_0x5448ef+'\x22');},asStore=_0x29532b=>'auto'===_0x29532b?_0x29532b:asBoolean2(_0x29532b),asCameraCapture=_0x2d2b1b=>{const _0x13051=asString(_0x2d2b1b);if('user'!==_0x13051&&'environment'!==_0x13051&&''!==_0x13051)throw new Error('Invalid\x20value:\x20\x22'+_0x13051+'\x22');return _0x13051;},asCameraMode=_0x282c47=>{const _0x6a8785=asString(_0x282c47);if(!Object['values'](CameraSourceTypes)['includes'](_0x6a8785))throw new Error('Invalid\x20value:\x20\x22'+_0x6a8785+'\x22');return _0x6a8785;},asCameraModes=_0x4663c1=>{const _0x42ac38=asString(_0x4663c1),_0x1f7dd9=deserializeCsv(_0x42ac38);if(_0x1f7dd9['some'](_0x12fe37=>!Object['values'](CameraSourceTypes)['includes'](_0x12fe37)))throw new Error('Invalid\x20value:\x20\x22'+JSON['stringify'](_0x1f7dd9)+'\x22');return _0x42ac38;},asMetadata=_0x758c4b=>{if('object'==typeof _0x758c4b&&!Array['isArray'](_0x758c4b))return _0x758c4b;if('function'==typeof _0x758c4b)return _0x758c4b;throw new Error('Invalid\x20metadata\x20value.\x20Must\x20be\x20an\x20object\x20or\x20function.');},asObject=_0x3d3720=>{if('object'==typeof _0x3d3720)return _0x3d3720;throw new Error('Invalid\x20value.\x20Must\x20be\x20an\x20object.');},asFunction=_0x395074=>{if('function'==typeof _0x395074)return _0x395074;throw new Error('Invalid\x20value.\x20Must\x20be\x20a\x20function.');},asArray=_0x178668=>{if(Array['isArray'](_0x178668))return _0x178668;throw new Error('Must\x20be\x20an\x20array.');},asFilesViewMode=_0x52a18a=>{const _0x199290=asString(_0x52a18a);if(['grid','list']['includes'](_0x199290))return _0x199290;throw new Error('Invalid\x20value:\x20\x22'+_0x199290+'\x22');},mapping={'pubkey':asString,'multiple':asBoolean2,'multipleMin':asNumber2,'multipleMax':asNumber2,'confirmUpload':asBoolean2,'imgOnly':asBoolean2,'accept':asString,'externalSourcesPreferredTypes':asString,'externalSourcesEmbedCss':asString,'store':asStore,'cameraMirror':asBoolean2,'cameraCapture':asCameraCapture,'sourceList':asString,'topLevelOrigin':asString,'maxLocalFileSizeBytes':asNumber2,'thumbSize':asNumber2,'showEmptyList':asBoolean2,'useLocalImageEditor':asBoolean2,'useCloudImageEditor':asBoolean2,'cloudImageEditorTabs':asString,'removeCopyright':asBoolean2,'cropPreset':asString,'imageShrink':asString,'modalScrollLock':asBoolean2,'modalBackdropStrokes':asBoolean2,'sourceListWrap':asBoolean2,'remoteTabSessionKey':asString,'cdnCname':asString,'cdnCnamePrefixed':asString,'baseUrl':asString,'socialBaseUrl':asString,'secureSignature':asString,'secureExpire':asString,'secureDeliveryProxy':asString,'retryThrottledRequestMaxTimes':asNumber2,'retryNetworkErrorMaxTimes':asNumber2,'multipartMinFileSize':asNumber2,'multipartChunkSize':asNumber2,'maxConcurrentRequests':asNumber2,'multipartMaxConcurrentRequests':asNumber2,'multipartMaxAttempts':asNumber2,'checkForUrlDuplicates':asBoolean2,'saveUrlForRecurrentUploads':asBoolean2,'groupOutput':asBoolean2,'userAgentIntegration':asString,'debug':asBoolean2,'localeName':asString,'metadata':asMetadata,'secureUploadsExpireThreshold':asNumber2,'localeDefinitionOverride':_0x4f3d71=>asObject(_0x4f3d71),'secureUploadsSignatureResolver':_0x531658=>asFunction(_0x531658),'secureDeliveryProxyUrlResolver':_0x177d9f=>asFunction(_0x177d9f),'iconHrefResolver':_0x2b73a1=>asFunction(_0x2b73a1),'fileValidators':asArray,'collectionValidators':asArray,'validationTimeout':asNumber2,'validationConcurrency':asNumber2,'cameraModes':asCameraModes,'defaultCameraMode':asCameraMode,'enableAudioRecording':asBoolean2,'enableVideoRecording':asBoolean2,'mediaRecorderOptions':asObject,'maxVideoRecordingDuration':asNumber2,'filesViewMode':asFilesViewMode,'gridShowFileNames':asBoolean2,'cloudImageEditorAutoOpen':asBoolean2,'cloudImageEditorMaskHref':asString,'testMode':asBoolean2,'qualityInsights':asBoolean2},normalizeConfigValue=(_0x402247,_0x46703c)=>{if(null!=_0x46703c)try{return mapping[_0x402247](_0x46703c);}catch(_0x36db8a){return console['error']('Invalid\x20value\x20for\x20config\x20key\x20\x22'+_0x402247+'\x22.',_0x36db8a),initialConfig[_0x402247];}},allConfigKeys=[...new Set(['debug',...Object['keys'](initialConfig)])],complexConfigKeys=['metadata','localeDefinitionOverride','secureUploadsSignatureResolver','secureDeliveryProxyUrlResolver','iconHrefResolver','fileValidators','collectionValidators','mediaRecorderOptions'],isComplexKey=_0x2db8f6=>complexConfigKeys['includes'](_0x2db8f6),plainConfigKeys=allConfigKeys['filter'](_0x5ccc5a=>!isComplexKey(_0x5ccc5a)),attrKeyMapping={...Object['fromEntries'](plainConfigKeys['map'](_0x5e1c74=>[toKebabCase(_0x5e1c74),_0x5e1c74])),...Object['fromEntries'](plainConfigKeys['map'](_0x1bd639=>[_0x1bd639['toLowerCase'](),_0x1bd639]))},attrStateMapping={...Object['fromEntries'](plainConfigKeys['map'](_0xe2b691=>[toKebabCase(_0xe2b691),sharedConfigKey(_0xe2b691)])),...Object['fromEntries'](plainConfigKeys['map'](_0x2eb913=>[_0x2eb913['toLowerCase'](),sharedConfigKey(_0x2eb913)]))},getLocalPropName=_0x1b24e9=>'__'+_0x1b24e9,Config=class extends Block{['requireCtxName']=!0x0;constructor(){super(),this['init$']={...this['init$'],...Object['fromEntries'](Object['entries'](initialConfig)['map'](([_0xb6ac55,_0x5d3600])=>[sharedConfigKey(_0xb6ac55),_0x5d3600])),'computationControllers':new Map()};}['_flushValueToAttribute'](_0x202cb0,_0x1ec7d1){if(!isComplexKey(_0x202cb0)){const _0x17ba84=[...new Set([toKebabCase(_0x202cb0),_0x202cb0['toLowerCase']()])];for(const _0x7d09f0 of _0x17ba84)null==_0x1ec7d1?this['removeAttribute'](_0x7d09f0):this['getAttribute'](_0x7d09f0)!==_0x1ec7d1['toString']()&&this['setAttribute'](_0x7d09f0,_0x1ec7d1['toString']());}}['_flushValueToState'](_0x2c72c9,_0x5e6396){this['$'][sharedConfigKey(_0x2c72c9)]!==_0x5e6396&&(this['$'][sharedConfigKey(_0x2c72c9)]=null==_0x5e6396?initialConfig[_0x2c72c9]:_0x5e6396);}['_setValue'](_0x21411a,_0x5dd57b){const _0x3d3938=this,_0x1f7d25=normalizeConfigValue(_0x21411a,_0x5dd57b),_0x2ad975=getLocalPropName(_0x21411a);_0x3d3938[_0x2ad975]!==_0x1f7d25&&(this['_assertSameValueDifferentReference'](_0x21411a,_0x3d3938[_0x2ad975],_0x1f7d25),_0x3d3938[_0x2ad975]=_0x1f7d25,this['_flushValueToAttribute'](_0x21411a,_0x1f7d25),this['_flushValueToState'](_0x21411a,_0x1f7d25),this['debugPrint']('[uc-config]\x20\x22'+_0x21411a+'\x22',_0x1f7d25),runAssertions(this['cfg']));}['_getValue'](_0x48c3ac){return this[getLocalPropName(_0x48c3ac)]??this['$'][sharedConfigKey(_0x48c3ac)];}['_assertSameValueDifferentReference'](_0x49cd63,_0x42e207,_0x3aa986){this['cfg']['debug']&&_0x3aa986!==_0x42e207&&'object'==typeof _0x3aa986&&'object'==typeof _0x42e207&&JSON['stringify'](_0x3aa986)===JSON['stringify'](_0x42e207)&&(console['warn']('[uc-config]\x20Option\x20\x22'+_0x49cd63+'\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'+_0x49cd63+'\x22\x20previous\x20value:',_0x42e207),console['warn']('[uc-config]\x20\x22'+_0x49cd63+'\x22\x20new\x20value:',_0x3aa986));}['initCallback'](){super['initCallback']();const _0x493a22=this;for(const _0x4f10ae of plainConfigKeys)this['sub'](sharedConfigKey(_0x4f10ae),_0x2dff6b=>{this['_setValue'](_0x4f10ae,_0x2dff6b);},!0x1);for(const _0x30fef3 of allConfigKeys){const _0x2c1afe=_0x493a22[_0x30fef3]??this['$'][sharedConfigKey(_0x30fef3)];_0x2c1afe!==initialConfig[_0x30fef3]&&this['_setValue'](_0x30fef3,_0x2c1afe),Object['defineProperty'](this,_0x30fef3,{'set':_0x4de331=>{this['_setValue'](_0x30fef3,_0x4de331);},'get':()=>this['_getValue'](_0x30fef3)});}for(const _0x5e8c25 of allConfigKeys)this['sub'](sharedConfigKey(_0x5e8c25),()=>{computeProperty({'key':_0x5e8c25,'setValue':this['_setValue']['bind'](this),'getValue':this['_getValue']['bind'](this),'computationControllers':this['computationControllers']});});}['attributeChangedCallback'](_0x51ed56,_0x2410dd,_0x599277){if(_0x2410dd===_0x599277)return;const _0x24b354=this,_0x8b6c29=attrKeyMapping[_0x51ed56];_0x8b6c29&&(_0x24b354[_0x8b6c29]=_0x599277);}get['computationControllers'](){return this['$']['computationControllers'];}};Config['bindAttributes'](attrStateMapping);for(const e of allConfigKeys)Config['prototype'][e]=void 0x0;var Copyright=class extends Block{['initCallback'](){super['initCallback'](),this['subConfigValue']('removeCopyright',_0x574e12=>{this['toggleAttribute']('hidden',!!_0x574e12);});}static ['template']='\x0a\x20\x20\x20\x20<a\x0a\x20\x20\x20\x20\x20\x20href=\x22https://uploadcare.com/?utm_source=copyright&utm_medium=referral&utm_campaign=v4\x22\x0a\x20\x20\x20\x20\x20\x20target=\x22_blank\x20noopener\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-credits\x22\x0a\x20\x20\x20\x20\x20\x20>Powered\x20by\x20Uploadcare</a\x0a\x20\x20\x20\x20>\x0a\x20\x20';};function checkIsDirectory(_0x2a44a2){return new Promise(_0x45528c=>{'function'!=typeof window['FileReader']&&_0x45528c(!0x1);try{const _0x3fb755=new FileReader();_0x3fb755['onerror']=()=>{_0x45528c(!0x0);};const _0x1e4c4a=_0x47ea71=>{'loadend'!==_0x47ea71['type']&&_0x3fb755['abort'](),_0x45528c(!0x1);};_0x3fb755['onloadend']=_0x1e4c4a,_0x3fb755['onprogress']=_0x1e4c4a,_0x3fb755['readAsDataURL'](_0x2a44a2);}catch{_0x45528c(!0x1);}});}function readEntryContentAsync(_0x4dbfd2,_0x1e896f){return new Promise(_0x39b930=>{let _0x3298fc=0x0;const _0x3a282a=[],_0x2a08f6=_0x436384=>{if(!_0x436384)return console['warn']('Unexpectedly\x20received\x20empty\x20content\x20entry',{'scope':'drag-and-drop'}),void _0x39b930(null);_0x436384['isFile']?(_0x3298fc++,_0x436384['file'](_0x3e955f=>{_0x3298fc--;const _0x45454b=new File([_0x3e955f],_0x3e955f['name'],{'type':_0x3e955f['type']||_0x1e896f});_0x3a282a['push']({'type':'file','file':_0x45454b,'fullPath':_0x436384['fullPath']}),0x0===_0x3298fc&&_0x39b930(_0x3a282a);})):_0x436384['isDirectory']&&_0x1703f3(_0x436384['createReader']());},_0x1703f3=_0x517b5=>{_0x3298fc++,_0x517b5['readEntries'](_0x5c09c3=>{_0x3298fc--;for(const _0x262b8f of _0x5c09c3)_0x2a08f6(_0x262b8f);0x0===_0x3298fc&&_0x39b930(_0x3a282a);});};_0x2a08f6(_0x4dbfd2);});}function getDropItems(_0x576f9c){const _0x1c1e19=[],_0x12c704=[];for(let _0xcf13ef=0x0;_0xcf13ef<_0x576f9c['items']['length'];_0xcf13ef++){const _0x574390=_0x576f9c['items'][_0xcf13ef];if(_0x574390){if('file'===_0x574390['kind']){const _0x5f4975=_0x574390['type'],_0x545f80=_0x574390;if('function'==typeof _0x545f80['webkitGetAsEntry']||'function'==typeof _0x545f80['getAsEntry']){const _0x157ec5='function'==typeof _0x545f80['webkitGetAsEntry']?_0x545f80['webkitGetAsEntry']():_0x545f80['getAsEntry']?.();_0x157ec5&&_0x12c704['push'](readEntryContentAsync(_0x157ec5,_0x5f4975)['then'](_0x343279=>{_0x343279&&_0x1c1e19['push'](..._0x343279);}));continue;}const _0x40eb9e=_0x574390['getAsFile']();_0x40eb9e&&_0x12c704['push'](checkIsDirectory(_0x40eb9e)['then'](_0xf6a30=>{_0xf6a30||_0x1c1e19['push']({'type':'file','file':_0x40eb9e});}));}else'string'===_0x574390['kind']&&/^text\/uri-list/['test'](_0x574390['type'])&&_0x12c704['push'](new Promise(_0x52b68a=>{_0x574390['getAsString'](_0x1e66ff=>{_0x1c1e19['push']({'type':'url','url':_0x1e66ff}),_0x52b68a();});}));}}return Promise['all'](_0x12c704)['then'](()=>_0x1c1e19);}var DropzoneState=Object['freeze']({'ACTIVE':0x0,'INACTIVE':0x1,'NEAR':0x2,'OVER':0x3}),RESET_EVENTS=['focus'],NEAR_OFFSET=0x64,nearnessRegistry=new Map();function distance(_0x39913e,_0x589646){const _0x12ec83=Math['max'](Math['min'](_0x39913e[0x0],_0x589646['x']+_0x589646['width']),_0x589646['x']),_0x435f43=Math['max'](Math['min'](_0x39913e[0x1],_0x589646['y']+_0x589646['height']),_0x589646['y']);return Math['sqrt']((_0x39913e[0x0]-_0x12ec83)*(_0x39913e[0x0]-_0x12ec83)+(_0x39913e[0x1]-_0x435f43)*(_0x39913e[0x1]-_0x435f43));}function addDropzone(_0x2bdfcc){let _0x216e55=0x0;const _0x495371=document['body'],_0x204c67=new Set();let _0x1c01e7=DropzoneState['INACTIVE'];const _0xccfa0d=_0x5eeab7=>{_0x2bdfcc['shouldIgnore']()&&_0x5eeab7!==DropzoneState['INACTIVE']||(_0x1c01e7!==_0x5eeab7&&_0x204c67['forEach'](_0x147f69=>{_0x147f69(_0x5eeab7);}),_0x1c01e7=_0x5eeab7);},_0x16bca5=()=>_0x216e55>0x0;var _0x36bb69;_0x36bb69=_0xb4dcfe=>_0x2bdfcc['onChange'](_0xb4dcfe),_0x204c67['add'](_0x36bb69);const _0x572b64=()=>{_0x216e55=0x0,_0xccfa0d(DropzoneState['INACTIVE']);},_0x444493=()=>{_0x216e55+=0x1,_0x1c01e7===DropzoneState['INACTIVE']&&_0xccfa0d(DropzoneState['ACTIVE']);},_0x1a591c=()=>{_0x216e55-=0x1,_0x16bca5()||_0xccfa0d(DropzoneState['INACTIVE']);},_0x282890=_0x54b124=>{_0x54b124['preventDefault'](),_0x216e55=0x0,_0xccfa0d(DropzoneState['INACTIVE']);},_0x3a9395=_0x24ebae=>{if(_0x2bdfcc['shouldIgnore']())return;_0x16bca5()||(_0x216e55+=0x1);const _0x485523=[_0x24ebae['x'],_0x24ebae['y']],_0x594888=_0x2bdfcc['element']['getBoundingClientRect'](),_0x5cc3ec=Math['floor'](distance(_0x485523,_0x594888)),_0x462439=_0x5cc3ec<NEAR_OFFSET,_0x325691=_0x24ebae['composedPath']()['includes'](_0x2bdfcc['element']);nearnessRegistry['set'](_0x2bdfcc['element'],_0x5cc3ec);const _0x5ef53d=Math['min'](...nearnessRegistry['values']())===_0x5cc3ec;_0x325691&&_0x5ef53d?(_0x24ebae['preventDefault'](),_0xccfa0d(DropzoneState['OVER'])):_0xccfa0d(_0x462439&&_0x5ef53d?DropzoneState['NEAR']:DropzoneState['ACTIVE']);},_0x525eb0=async _0x5e3526=>{if(_0x2bdfcc['shouldIgnore']())return;_0x5e3526['preventDefault']();const {dataTransfer:_0x57ea60}=_0x5e3526;if(!_0x57ea60)return;const _0x420b4f=await getDropItems(_0x57ea60);_0x2bdfcc['onItems'](_0x420b4f),_0xccfa0d(DropzoneState['INACTIVE']);};return _0x495371['addEventListener']('drop',_0x282890),_0x495371['addEventListener']('dragleave',_0x1a591c),_0x495371['addEventListener']('dragenter',_0x444493),_0x495371['addEventListener']('dragover',_0x3a9395),_0x2bdfcc['element']['addEventListener']('drop',_0x525eb0),RESET_EVENTS['forEach'](_0x5a8156=>{window['addEventListener'](_0x5a8156,_0x572b64);}),()=>{nearnessRegistry['delete'](_0x2bdfcc['element']),_0x495371['removeEventListener']('drop',_0x282890),_0x495371['removeEventListener']('dragleave',_0x1a591c),_0x495371['removeEventListener']('dragenter',_0x444493),_0x495371['removeEventListener']('dragover',_0x3a9395),_0x2bdfcc['element']['removeEventListener']('drop',_0x525eb0),RESET_EVENTS['forEach'](_0x297469=>{window['removeEventListener'](_0x297469,_0x572b64);});};}var GLOBAL_CTX_NAME='uc-drop-area',REGISTRY_KEY=GLOBAL_CTX_NAME+'/registry',DropArea=class extends UploaderBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-drop-area'];['_destroyDropzone']=null;['_destroyContentWrapperDropzone']=null;['_onAreaClicked']=null;constructor(){super(),this['init$']={...this['init$'],'state':DropzoneState['INACTIVE'],'withIcon':!0x1,'isClickable':!0x1,'isFullscreen':!0x1,'isEnabled':!0x0,'isVisible':!0x0,'isInitFlow':!0x1,'text':'',[REGISTRY_KEY]:new Set()};}['isActive'](){if(!this['$']['isEnabled'])return!0x1;const _0x3b5479=this['getBoundingClientRect'](),_0x5bb1ef=_0x3b5479['width']>0x0&&_0x3b5479['height']>0x0,_0x4f83dd=_0x3b5479['top']>=0x0&&_0x3b5479['left']>=0x0&&_0x3b5479['bottom']<=(window['innerHeight']||document['documentElement']['clientHeight'])&&_0x3b5479['right']<=(window['innerWidth']||document['documentElement']['clientWidth']),_0x1db319=window['getComputedStyle'](this),_0x224e04='hidden'!==_0x1db319['visibility']&&'none'!==_0x1db319['display'];return _0x5bb1ef&&_0x224e04&&_0x4f83dd;}['initCallback'](){super['initCallback'](),this['bindL10n']('text',()=>this['l10n']('drop-files-here')),(this['$'][REGISTRY_KEY]['add'](this),this['defineAccessor']('disabled',_0x583328=>{this['set$']({'isEnabled':!asBoolean2(_0x583328)});}),this['defineAccessor']('clickable',_0x1fb583=>{this['set$']({'isClickable':asBoolean2(_0x1fb583)});}),this['defineAccessor']('initflow',_0x29e93c=>{this['set$']({'isInitFlow':asBoolean2(_0x29e93c)});}),this['defineAccessor']('with-icon',_0x4e3792=>{this['set$']({'withIcon':asBoolean2(_0x4e3792)});}),this['defineAccessor']('fullscreen',_0x33260d=>{this['set$']({'isFullscreen':asBoolean2(_0x33260d)});}),this['defineAccessor']('text',_0x3ebd99=>{'string'==typeof _0x3ebd99?this['bindL10n']('text',()=>this['l10n'](_0x3ebd99)||_0x3ebd99):this['bindL10n']('text',()=>this['l10n']('drop-files-here'));}),this['_destroyDropzone']=addDropzone({'element':this,'shouldIgnore':()=>this['_shouldIgnore'](),'onChange':_0x2e7d96=>{this['$']['state']=_0x2e7d96;},'onItems':_0x2a614d=>{_0x2a614d['length']&&(_0x2a614d['forEach'](_0x52899b=>{'url'===_0x52899b['type']?this['api']['addFileFromUrl'](_0x52899b['url'],{'source':UploadSource['DROP_AREA']}):'file'===_0x52899b['type']&&this['api']['addFileFromObject'](_0x52899b['file'],{'source':UploadSource['DROP_AREA'],'fullPath':_0x52899b['fullPath']});}),this['uploadCollection']['size']&&(this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']})));}}));const _0x52f73c=this['ref']['content-wrapper'];if(_0x52f73c&&(this['_destroyContentWrapperDropzone']=addDropzone({'element':_0x52f73c,'onChange':_0x223763=>{const _0x2083a2=Object['entries'](DropzoneState)['find'](([,_0x110d7f])=>_0x110d7f===_0x223763)?.[0x0]['toLowerCase']();_0x2083a2&&_0x52f73c['setAttribute']('drag-state',_0x2083a2);},'onItems':()=>{},'shouldIgnore':()=>this['_shouldIgnore']()})),this['sub']('state',_0x2af1d1=>{const _0x91e655=Object['entries'](DropzoneState)['find'](([,_0x3026ed])=>_0x3026ed===_0x2af1d1)?.[0x0]['toLowerCase']();_0x91e655&&this['setAttribute']('drag-state',_0x91e655);}),this['subConfigValue']('sourceList',_0x717226=>{const _0x57bd2a=stringToArray(_0x717226);this['$']['isEnabled']=_0x57bd2a['includes'](UploadSource['LOCAL']),this['$']['isVisible']=this['$']['isEnabled']||!this['querySelector']('[data-default-slot]');}),this['sub']('isVisible',_0x68efd1=>{this['toggleAttribute']('hidden',!_0x68efd1);}),this['sub']('isClickable',_0x4012fd=>{this['toggleAttribute']('clickable',_0x4012fd);}),this['$']['isClickable']){const _0x1e1336=_0x8cea11=>{if(_0x8cea11 instanceof KeyboardEvent){if('Space'===_0x8cea11['code']||'Enter'===_0x8cea11['code']){if(this['$']['isInitFlow'])return void this['api']['initFlow']();this['api']['openSystemDialog']();}}else{if(_0x8cea11 instanceof MouseEvent){if(this['$']['isInitFlow'])return void this['api']['initFlow']();this['api']['openSystemDialog']();}}};this['_onAreaClicked']=_0x1e1336,this['addEventListener']('keydown',_0x1e1336),this['addEventListener']('click',_0x1e1336);}}['_shouldIgnore'](){if(!this['$']['isEnabled'])return!0x0;if(!this['_couldHandleFiles']())return!0x0;if(!this['$']['isFullscreen'])return!0x1;const _0x2d1087=this['$'][REGISTRY_KEY];if(0x0===_0x2d1087['size'])return!0x1;return[..._0x2d1087]['filter'](_0x551aa5=>_0x551aa5!==this)['filter'](_0xe39144=>_0xe39144['isActive']())['length']>0x0;}['_couldHandleFiles'](){const _0x5a4767=this['cfg']['multiple'],_0x273699=this['cfg']['multipleMax'],_0x4e432b=this['uploadCollection']['size'];return!(_0x5a4767&&_0x273699&&_0x4e432b>=_0x273699)&&!(!_0x5a4767&&_0x4e432b>0x0);}['destroyCallback'](){super['destroyCallback']();const _0x1ed7a0=this['$'][REGISTRY_KEY];_0x1ed7a0['delete'](this),0x0===_0x1ed7a0['size']&&Data['deleteCtx'](GLOBAL_CTX_NAME),this['_destroyDropzone']?.(),this['_destroyContentWrapperDropzone']?.(),this['_onAreaClicked']&&(this['removeEventListener']('keydown',this['_onAreaClicked']),this['removeEventListener']('click',this['_onAreaClicked']),this['_onAreaClicked']=null);}};DropArea['template']='\x0a\x20\x20<slot>\x0a\x20\x20\x20\x20<div\x20data-default-slot\x20hidden></div>\x0a\x20\x20\x20\x20<div\x20ref=\x22content-wrapper\x22\x20class=\x22uc-content-wrapper\x22\x20set=\x22@hidden:\x20!isVisible\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-icon-container\x22\x20set=\x22@hidden:\x20!withIcon\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22default\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22arrow-down\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22uc-text\x22>{{text}}</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</slot>\x0a',DropArea['bindAttributes']({'with-icon':null,'clickable':null,'text':null,'fullscreen':null,'disabled':null,'initflow':null});var getTopLevelOrigin=()=>{const _0x20b6b5=globalThis['top']??globalThis['parent']??globalThis['self'];try{return _0x20b6b5['location']['origin'];}catch(_0x25dd12){return console['warn']('Unable\x20to\x20access\x20top-level\x20window\x20location:',_0x25dd12),globalThis['location']['origin'];}},escapeRegExp=_0x332809=>_0x332809['replace'](/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\x5c$&'),wildcardRegexp=(_0xa04901,_0x455384='i')=>{const _0x15fade=_0xa04901['split']('*')['map'](escapeRegExp);return new RegExp('^'+_0x15fade['join']('.+')+'$',_0x455384);},ucCustomProperties=['--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'],getCssValue=(_0x24e6c8,_0x51c275)=>window['getComputedStyle'](_0x24e6c8)['getPropertyValue'](_0x51c275)['trim'](),buildThemeDefinition=_0x16452d=>{const _0x1f8c63={};for(const _0xee6478 of ucCustomProperties){const _0x29a281=getCssValue(_0x16452d,_0xee6478);_0x29a281&&(_0x1f8c63[_0xee6478]=_0x29a281);}return _0x1f8c63;},MESSAGE_TYPE_WHITELIST=['selected-files-change','toolbar-state-change'],isWhitelistedMessage=_0x55a053=>{if(!_0x55a053)return!0x1;if('object'!=typeof _0x55a053)return!0x1;if(!('type'in _0x55a053))return!0x1;const _0x554858=_0x55a053['type'];return'string'==typeof _0x554858&&!!MESSAGE_TYPE_WHITELIST['includes'](_0x554858);},MessageBridge=class{['_handlerMap']=new Map();['_context'];['_getTargetOrigin'];constructor(_0x549c4c,_0x1a81e1){this['_context']=_0x549c4c,this['_getTargetOrigin']=_0x1a81e1,window['addEventListener']('message',this['_handleMessage']);}['_handleMessage']=_0x44da99=>{if(_0x44da99['source']!==this['_context'])return;const _0x3f87e0=_0x44da99['data'];if(!isWhitelistedMessage(_0x3f87e0))return;const _0x38e339=this['_handlerMap']['get'](_0x3f87e0['type']);if(_0x38e339){for(const _0xba221a of _0x38e339)_0xba221a(_0x3f87e0);}};['on'](_0x230605,_0x20cb6c){const _0xd98450=this['_handlerMap']['get'](_0x230605)??new Set();this['_handlerMap']['has'](_0x230605)||this['_handlerMap']['set'](_0x230605,_0xd98450),_0xd98450['add'](_0x20cb6c);}['send'](_0x5d5a64){const _0x25d5f4=this['_getTargetOrigin']();this['_context']['postMessage'](_0x5d5a64,_0x25d5f4);}['destroy'](){window['removeEventListener']('message',this['_handleMessage']);}};function queryString(_0x244a13){const _0x47e94c=[];for(const [_0x237375,_0x19807c]of Object['entries'](_0x244a13))null==_0x19807c||'string'==typeof _0x19807c&&0x0===_0x19807c['length']||_0x47e94c['push'](_0x237375+'='+encodeURIComponent(_0x19807c));return _0x47e94c['join']('&');}var SOCIAL_SOURCE_MAPPING={[ExternalUploadSource['GDRIVE']]:'ngdrive'},ExternalSource=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['EXTERNAL'];['_messageBridge'];constructor(){super(),this['init$']={...this['init$'],'activityIcon':'','activityCaption':'','selectedList':[],'total':0x0,'isSelectionReady':!0x1,'isDoneBtnEnabled':!0x1,'couldSelectAll':!0x1,'couldDeselectAll':!0x1,'showSelectionStatus':!0x1,'showDoneBtn':!0x1,'counterText':'','doneBtnTextClass':'uc-hidden','toolbarVisible':!0x0,'onDone':()=>{for(const _0x35425b of this['$']['selectedList']){const _0x269d08=this['extractUrlFromSelectedFile'](_0x35425b),{filename:_0xd44b39}=_0x35425b,{externalSourceType:_0x50f27e}=this['activityParams'];this['api']['addFileFromUrl'](_0x269d08,{'fileName':_0xd44b39,'source':_0x50f27e});}this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']);},'onCancel':()=>{this['historyBack']();},'onSelectAll':()=>{this['_messageBridge']?.['send']({'type':'select-all'});},'onDeselectAll':()=>{this['_messageBridge']?.['send']({'type':'deselect-all'});}};}get['activityParams'](){const _0x4de6b1=super['activityParams'];if('externalSourceType'in _0x4de6b1)return _0x4de6b1;throw new Error('External\x20Source\x20activity\x20params\x20not\x20found');}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':()=>{const {externalSourceType:_0x35f1df}=this['activityParams'];if(!_0x35f1df)return this['modalManager']?.['close'](this['$']['*currentActivity']),this['$']['*currentActivity']=null,void console['error']('Param\x20\x22externalSourceType\x22\x20is\x20required\x20for\x20activity\x20\x22'+this['activityType']+'\x22');this['set$']({'activityCaption':''+_0x35f1df[0x0]?.['toUpperCase']()+_0x35f1df?.['slice'](0x1),'activityIcon':_0x35f1df}),this['mountIframe']();}}),this['sub']('*currentActivityParams',_0x3b5510=>{this['isActivityActive']&&(this['unmountIframe'](),this['mountIframe']());}),this['sub']('*currentActivity',_0x58d1bc=>{_0x58d1bc!==this['activityType']&&this['unmountIframe']();}),this['subConfigValue']('multiple',_0x1c3e51=>{this['$']['showSelectionStatus']=_0x1c3e51;}),this['subConfigValue']('localeName',_0x3f1646=>{this['setupL10n']();}),this['subConfigValue']('externalSourcesEmbedCss',_0x34fa07=>{this['applyEmbedCss'](_0x34fa07);});}['extractUrlFromSelectedFile'](_0xa53667){if(_0xa53667['alternatives']){const _0x3340c1=stringToArray(this['cfg']['externalSourcesPreferredTypes']);for(const _0xd03bf of _0x3340c1){const _0x492391=wildcardRegexp(_0xd03bf);for(const [_0x1259fe,_0x22649c]of Object['entries'](_0xa53667['alternatives']))if(_0x492391['test'](_0x1259fe))return _0x22649c;}}return _0xa53667['url'];}['handleToolbarStateChange'](_0x195156){this['set$']({'toolbarVisible':_0x195156['isVisible']});}async['handleSelectedFilesChange'](_0x225a94){this['cfg']['multiple']===_0x225a94['isMultipleMode']?(this['bindL10n']('counterText',()=>this['l10n']('selected-count',{'count':_0x225a94['selectedCount'],'total':_0x225a94['total']})),this['set$']({'doneBtnTextClass':_0x225a94['isReady']?'':'uc-hidden','isSelectionReady':_0x225a94['isReady'],'isDoneBtnEnabled':_0x225a94['isReady']&&_0x225a94['selectedFiles']['length']>0x0,'showSelectionStatus':_0x225a94['isMultipleMode']&&_0x225a94['total']>0x0,'couldSelectAll':_0x225a94['selectedCount']<_0x225a94['total'],'couldDeselectAll':_0x225a94['selectedCount']===_0x225a94['total'],'selectedList':_0x225a94['selectedFiles'],'showDoneBtn':_0x225a94['total']>0x0})):console['error']('Multiple\x20mode\x20mismatch');}['handleIframeLoad'](){this['applyEmbedCss'](this['cfg']['externalSourcesEmbedCss']),this['applyTheme'](),this['setupL10n']();}['applyTheme'](){this['_messageBridge']?.['send']({'type':'set-theme-definition','theme':buildThemeDefinition(this)});}['applyEmbedCss'](_0x3e100e){this['_messageBridge']?.['send']({'type':'set-embed-css','css':_0x3e100e});}['setupL10n'](){this['_messageBridge']?.['send']({'type':'set-locale-definition','localeDefinition':this['cfg']['localeName']});}['remoteUrl'](){const {pubkey:_0x26751d,remoteTabSessionKey:_0x3b0afa,socialBaseUrl:_0x56f6c0,multiple:_0x5b7fe7}=this['cfg'],{externalSourceType:_0x1503ec}=this['activityParams'],_0x84a591=SOCIAL_SOURCE_MAPPING[_0x1503ec]??_0x1503ec,_0x228e6f={'lang':this['l10n']('social-source-lang')?.['split']('-')?.[0x0]||'en','public_key':_0x26751d,'images_only':(!0x1)['toString'](),'session_key':_0x3b0afa,'wait_for_theme':!0x0,'multiple':_0x5b7fe7['toString'](),'origin':this['cfg']['topLevelOrigin']||getTopLevelOrigin(),'debug':this['cfg']['debug']},_0x2b0b20=new URL('/window4/'+_0x84a591,_0x56f6c0);return _0x2b0b20['search']=queryString(_0x228e6f),_0x2b0b20['toString']();}['mountIframe'](){const _0x333d97=create({'tag':'iframe','attributes':{'src':this['remoteUrl'](),'marginheight':0x0,'marginwidth':0x0,'frameborder':0x0,'allowTransparency':!0x0}});_0x333d97['addEventListener']('load',this['handleIframeLoad']['bind'](this)),this['ref']['iframeWrapper']['innerHTML']='',this['ref']['iframeWrapper']['appendChild'](_0x333d97),_0x333d97['contentWindow']&&(this['_messageBridge']?.['destroy'](),this['_messageBridge']=new MessageBridge(_0x333d97['contentWindow'],()=>this['cfg']['socialBaseUrl']),this['_messageBridge']['on']('selected-files-change',this['handleSelectedFilesChange']['bind'](this)),this['_messageBridge']['on']('toolbar-state-change',this['handleToolbarStateChange']['bind'](this)),this['resetSelectionStatus']());}['unmountIframe'](){this['_messageBridge']?.['destroy'](),this['_messageBridge']=void 0x0,this['ref']['iframeWrapper']['innerHTML']='',this['resetSelectionStatus']();}['resetSelectionStatus'](){this['set$']({'selectedList':[],'total':0x0,'isDoneBtnEnabled':!0x1,'couldSelectAll':!0x1,'couldDeselectAll':!0x1,'showSelectionStatus':!0x1,'showDoneBtn':!0x1});}};ExternalSource['template']='\x0a\x20\x20<uc-activity-header>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-close-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*historyBack\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22close\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-activity-header>\x0a\x20\x20<div\x20class=\x22uc-content\x22>\x0a\x20\x20\x20\x20<div\x20ref=\x22iframeWrapper\x22\x20class=\x22uc-iframe-wrapper\x22></div>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-toolbar\x22\x20set=\x22@hidden:\x20!toolbarVisible\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-cancel-btn\x20uc-secondary-btn\x22\x20set=\x22onclick:\x20onCancel\x22\x20l10n=\x22cancel\x22></button>\x0a\x20\x20\x20\x20\x20\x20<div\x20set=\x22@hidden:\x20!showSelectionStatus\x22\x20class=\x22uc-selection-status-box\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>{{counterText}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20set=\x22onclick:\x20onSelectAll;\x20@hidden:\x20!couldSelectAll\x22\x20l10n=\x22select-all\x22></button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20set=\x22onclick:\x20onDeselectAll;\x20@hidden:\x20!couldDeselectAll\x22\x20l10n=\x22deselect-all\x22></button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-done-btn\x20uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onDone;\x20@disabled:\x20!isDoneBtnEnabled;\x20@hidden:\x20!showDoneBtn\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-spinner\x20set=\x22@hidden:\x20isSelectionReady\x22></uc-spinner>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22done\x22\x20set=\x22@class:\x20doneBtnTextClass\x22></span>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a';var MAX_SQUARE_SIDE=0x4000,regExpShrink=/^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i,parseShrink=_0x483417=>{if('string'!=typeof _0x483417)return!0x1;const _0x352148=regExpShrink['exec'](_0x483417['toLocaleLowerCase']())??[];if(0x0===_0x352148['length'])return!0x1;const _0x921324=Number(_0x352148[0x1])*Number(_0x352148[0x2]),_0x57d247=MAX_SQUARE_SIDE*MAX_SQUARE_SIDE;return _0x921324>_0x57d247?(console['warn']('Shrinked\x20size\x20can\x20not\x20be\x20larger\x20than\x20'+Math['floor'](_0x57d247/0x3e8/0x3e8)+'MP.\x20You\x20have\x20set\x20'+_0x352148[0x1]+'x'+_0x352148[0x2]+'\x20('+Math['ceil'](_0x921324/0x3e8/0x64)/0xa+'MP).'),!0x1):{'quality':_0x352148[0x3]?Number(_0x352148[0x3])/0x64:void 0x0,'size':_0x921324};},FileItemConfig=class extends UploaderBlock{['_entrySubs']=new Set();['_entry']=null;['_withEntry'](_0x697ebc){return(..._0x2e8780)=>{const _0x209af0=this['_entry'];if(_0x209af0)return _0x697ebc(_0x209af0,..._0x2e8780);console['warn']('No\x20entry\x20found');};}['_subEntry'](_0x441177,_0x5bedad){this['_withEntry']((_0x108287,_0x360361,_0x3e1d6f)=>{const _0x5c1656=_0x108287['subscribe'](_0x360361,_0x10a52c=>{this['isConnected']&&_0x3e1d6f(_0x10a52c);});this['_entrySubs']['add'](_0x5c1656);})(_0x441177,_0x5bedad);}['_reset'](){for(const _0x3c9858 of this['_entrySubs'])_0x3c9858['remove']();this['_entrySubs']=new Set(),this['_entry']=null;}['disconnectedCallback'](){super['disconnectedCallback'](),this['_entrySubs']=new Set();}},FileItemState=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')}),FileItem=class e extends FileItemConfig{['couldBeCtxOwner']=!0x0;['pauseRender']=!0x0;['_renderedOnce']=!0x1;['_observer'];['_isIntersecting']=!0x1;['_thumbRect'];constructor(){super(),this['init$']={...this['init$'],'uid':'','itemName':'','errorText':'','hint':'','thumbUrl':'','progressValue':0x0,'progressVisible':!0x1,'badgeIcon':'','isFinished':!0x1,'isFailed':!0x1,'isUploading':!0x1,'isFocused':!0x1,'isEditable':!0x1,'showFileNames':!0x1,'state':FileItemState['IDLE'],'ariaLabelStatusFile':'','onEdit':this['_withEntry'](_0x2615d4=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'edit-file','node':this['tagName']}}}),this['$']['*currentActivityParams']={'internalId':_0x2615d4['uid']},this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']),this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'];}),'onRemove':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'remove-file','node':this['tagName']}}}),this['uploadCollection']['remove'](this['$']['uid']);},'onUpload':()=>{this['upload']();}};}['_calculateState']=this['_withEntry'](e=>{let i=FileItemState['IDLE'];e['getValue']('errors')['length']>0x0?i=FileItemState['FAILED']:e['getValue']('isQueuedForUploading')?i=FileItemState['QUEUED_UPLOADING']:e['getValue']('isQueuedForValidation')?i=FileItemState['QUEUED_VALIDATION']:e['getValue']('isValidationPending')?i=FileItemState['VALIDATION']:e['getValue']('isUploading')?i=FileItemState['UPLOADING']:e['getValue']('fileInfo')&&(i=FileItemState['FINISHED']),this['$']['state']=i;});['_debouncedCalculateState']=debounce(this['_calculateState']['bind'](this),0x64);['_updateHintAndProgress']=this['_withEntry'](throttle((e,i)=>{const n=e['getValue']('errors')?.[0x0]?.['message'],s=e['getValue']('source'),r=e['getValue']('externalUrl'),o=i===FileItemState['FINISHED'],a=i===FileItemState['UPLOADING'],l=i===FileItemState['QUEUED_UPLOADING'],c=i===FileItemState['QUEUED_VALIDATION'],u=i===FileItemState['VALIDATION'],h=e['getValue']('fileName');let d='';n?d='':!o&&r&&s&&Object['values'](ExternalUploadSource)['includes'](s)&&(d=this['l10n']('waiting-for',{'source':this['l10n']('src-type-'+s)})),this['set$']({'hint':d,'errorText':n,'progressVisible':a||l||c||u,'progressValue':c||u?0x0:e['getValue']('uploadProgress'),'ariaLabelStatusFile':h&&this['l10n']('a11y-file-item-status',{'fileName':h,'status':this['l10n'](i?.['description']?.['toLocaleLowerCase']()??'')['toLocaleLowerCase']()})});},0x64));['_handleState']=this['_withEntry']((e,i)=>{i===FileItemState['FAILED']?this['$']['badgeIcon']='badge-error':i===FileItemState['FINISHED']&&(this['$']['badgeIcon']='badge-success'),i===FileItemState['UPLOADING']&&(this['$']['isFocused']=!0x1),this['set$']({'isFailed':i===FileItemState['FAILED'],'isUploading':i===FileItemState['UPLOADING'],'isFinished':i===FileItemState['FINISHED'],'isEditable':this['cfg']['useCloudImageEditor']&&e['getValue']('isImage')&&e['getValue']('cdnUrl')}),this['_updateHintAndProgress'](i);});['_reset'](){super['_reset'](),this['_debouncedCalculateState']['cancel']();}['_observerCallback'](_0x478865){const [_0x5d19ce]=_0x478865;_0x5d19ce&&(this['_isIntersecting']=_0x5d19ce['isIntersecting'],this['_thumbRect']=_0x5d19ce['boundingClientRect'],_0x5d19ce['isIntersecting']&&!this['_renderedOnce']&&(this['render'](),this['_renderedOnce']=!0x0));}['_handleEntryId'](_0x680086){this['_reset']();const _0x263943=this['uploadCollection']?.['read'](_0x680086);this['_entry']=_0x263943,_0x263943&&(this['_subEntry']('isQueuedForValidation',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('isValidationPending',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('uploadProgress',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('isQueuedForUploading',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('fileName',_0x348668=>{this['$']['itemName']=_0x348668||_0x263943['getValue']('externalUrl')||this['l10n']('file-no-name'),this['_debouncedCalculateState']();}),this['_subEntry']('externalUrl',_0x56e93a=>{this['$']['itemName']=_0x263943['getValue']('fileName')||_0x56e93a||this['l10n']('file-no-name');}),this['_subEntry']('fileInfo',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('errors',()=>this['_debouncedCalculateState']()),this['_subEntry']('isUploading',()=>this['_debouncedCalculateState']()),this['_subEntry']('fileSize',()=>this['_debouncedCalculateState']()),this['_subEntry']('mimeType',()=>this['_debouncedCalculateState']()),this['_subEntry']('isImage',()=>this['_debouncedCalculateState']()));}['_updateShowFileNames'](_0x420d84){'list'===this['cfg']['filesViewMode']?this['$']['showFileNames']=!0x0:this['$']['showFileNames']=_0x420d84;}['initCallback'](){super['initCallback'](),this['sub']('uid',_0x33fd81=>{this['_handleEntryId'](_0x33fd81);}),this['sub']('state',_0x161b2f=>{this['_handleState'](_0x161b2f);}),this['subConfigValue']('useCloudImageEditor',()=>this['_debouncedCalculateState']()),this['subConfigValue']('filesViewMode',_0x363689=>{this['_updateShowFileNames'](this['cfg']['gridShowFileNames']),this['setAttribute']('mode',_0x363689);}),this['subConfigValue']('gridShowFileNames',_0x6c060=>{this['_updateShowFileNames'](_0x6c060);}),this['onclick']=()=>{e['activeInstances']['forEach'](_0x3d82b1=>{_0x3d82b1===this?_0x3d82b1['setAttribute']('focused',''):_0x3d82b1['removeAttribute']('focused');});},this['sub']('*uploadTrigger',_0x437ffa=>{this['_entry']&&!_0x437ffa['has'](this['_entry']['uid'])||setTimeout(()=>this['isConnected']&&this['upload']());}),e['activeInstances']['add'](this);}['destroyCallback'](){super['destroyCallback'](),e['activeInstances']['delete'](this),this['_reset']();}['connectedCallback'](){super['connectedCallback'](),this['_observer']=new window['IntersectionObserver'](this['_observerCallback']['bind'](this),{'threshold':[0x0,0x1]}),this['_observer']['observe'](this);}['disconnectedCallback'](){super['disconnectedCallback'](),this['_observer']?.['disconnect']();}['_settingsOfShrink'](){return parseShrink(this['cfg']['imageShrink']);}async['_processShrink'](_0xb95359){const _0x3bd3d6=this['_settingsOfShrink']();return _0x3bd3d6?await shrinkFile(_0xb95359,_0x3bd3d6):(console['warn']('Image\x20shrink\x20settings\x20are\x20invalid,\x20skipping\x20shrinking'),_0xb95359);}['upload']=this['_withEntry'](async e=>{if(!this['uploadCollection']['read'](e['uid']))return;if(e['getValue']('fileInfo')||e['getValue']('isUploading')||e['getValue']('errors')['length']>0x0||e['getValue']('isValidationPending'))return;const i=this['cfg']['multiple']?this['cfg']['multipleMax']:0x1;if(!(i&&this['uploadCollection']['size']>i)){e['setMultipleValues']({'isUploading':!0x0,'errors':[],'isQueuedForUploading':!0x0}),this['_debouncedCalculateState']();try{const i=new AbortController();e['setValue']('abortController',i);const n=async()=>{e['setValue']('isQueuedForUploading',!0x1);let n=e['getValue']('file');if(n instanceof File&&this['cfg']['imageShrink'])try{n=await this['_processShrink'](n);}catch{}const s=n||e['getValue']('externalUrl')||e['getValue']('uuid');if(!s)throw new Error('No\x20file\x20input');const r={...await this['getUploadClientOptions'](),'fileName':e['getValue']('fileName')??void 0x0,'source':e['getValue']('source')??void 0x0,'onProgress':i=>{if(i['isComputable']){const n=0x64*i['value'];e['setValue']('uploadProgress',n);}},'signal':i['signal'],'metadata':await this['getMetadataFor'](e['uid'])};return this['debugPrint']('upload\x20options',s,r),uploadFile(s,r);},s=await this['$']['*uploadQueue']['add'](n);e['setMultipleValues']({'fileInfo':s,'isQueuedForUploading':!0x1,'isUploading':!0x1,'fileName':s['originalFilename'],'fileSize':s['size'],'isImage':s['isImage']??!0x1,'mimeType':s['contentInfo']?.['mime']?.['mime']??s['mimeType'],'uuid':s['uuid'],'cdnUrl':e['getValue']('cdnUrl')??s['cdnUrl'],'cdnUrlModifiers':e['getValue']('cdnUrlModifiers')??'','uploadProgress':0x64,'source':e['getValue']('source')??null}),e===this['_entry']&&this['_debouncedCalculateState']();}catch(i){this['telemetryManager']['sendEventError'](i,'file\x20upload.\x20Failed\x20to\x20upload\x20file'),i instanceof CancelError&&i['isCancel']?e['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0}):i instanceof UploadcareError?e['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0,'uploadError':i}):(console['error']('Unknown\x20upload\x20error',i),e['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0,'uploadError':new Error('Something\x20went\x20wrong',{'cause':i})})),e===this['_entry']&&this['_debouncedCalculateState']();}}});static ['template']='\x0a\x20\x20<div\x20class=\x22uc-inner\x22\x20set=\x22@finished:\x20isFinished;\x20@uploading:\x20isUploading;\x20@failed:\x20isFailed;\x20@focused:\x20isFocused\x22>\x0a\x20\x20\x20\x20<uc-thumb\x20set=\x22uid:uid;badgeIcon:badgeIcon\x22></uc-thumb>\x0a\x0a\x20\x20\x20\x20<div\x20aria-atomic=\x22true\x22\x20aria-live=\x22polite\x22\x20class=\x22uc-file-name-wrapper\x22\x20set=\x22@aria-label:ariaLabelStatusFile;\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22uc-file-name\x22\x20set=\x22@hidden:\x20!showFileNames\x22>{{itemName}}</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22uc-file-error\x22\x20set=\x22@hidden:\x20!errorText;\x22>{{errorText}}</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22uc-file-hint\x22\x20set=\x22@hidden:\x20!hint\x22>{{hint}}</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-file-actions\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20l10n=\x22@title:file-item-edit-button;@aria-label:file-item-edit-button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-edit-btn\x20uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onEdit;\x20@hidden:\x20!isEditable\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22edit-file\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20l10n=\x22@title:file-item-remove-button;@aria-label:file-item-remove-button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-remove-btn\x20uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onRemove;\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22remove-file\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-upload-btn\x20uc-mini-btn\x22\x20set=\x22onclick:\x20onUpload;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22upload\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<uc-progress-bar\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-progress-bar\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22value:\x20progressValue;\x20visible:\x20progressVisible;\x20@hasFileName:\x20showFileNames;\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20</uc-progress-bar>\x0a\x20\x20</div>\x0a';static ['activeInstances']=new Set();},FormInput=class extends UploaderBlock{['requireCtxName']=!0x0;['_validationInputElement']=null;['_dynamicInputsContainer']=null;['_createValidationInput'](){const _0x4ad1fd=document['createElement']('input');return _0x4ad1fd['type']='text',_0x4ad1fd['name']=this['ctxName'],_0x4ad1fd['required']=this['cfg']['multipleMin']>0x0,_0x4ad1fd['tabIndex']=-0x1,applyStyles(_0x4ad1fd,{'opacity':0x0,'height':0x0,'width':0x0}),_0x4ad1fd;}['initCallback'](){super['initCallback'](),this['_validationInputElement']=this['_createValidationInput'](),this['appendChild'](this['_validationInputElement']),this['sub']('*collectionState',_0x593809=>{{if(!this['_dynamicInputsContainer']){const _0x443d01=document['createElement']('div');this['appendChild'](_0x443d01),this['_dynamicInputsContainer']=_0x443d01;}if(!this['_validationInputElement']){const _0x5c81c9=this['_createValidationInput']();this['appendChild'](_0x5c81c9),this['_validationInputElement']=_0x5c81c9;}if(this['_dynamicInputsContainer']['innerHTML']='','uploading'===_0x593809['status']||'idle'===_0x593809['status'])return this['_validationInputElement']['value']='',void this['_validationInputElement']['setCustomValidity']('');if('failed'===_0x593809['status']){const _0x1dd035=_0x593809['errors'][0x0]?.['message'];return this['_validationInputElement']['value']='',void this['_validationInputElement']['setCustomValidity'](_0x1dd035??'');}const _0x2270a7=_0x593809['group']?_0x593809['group']:null;if(_0x2270a7)return this['_validationInputElement']['value']=_0x2270a7['cdnUrl']??'',void this['_validationInputElement']['setCustomValidity']('');const _0x1db876=_0x593809['allEntries']['map'](_0x16056e=>_0x16056e['cdnUrl'])['filter'](_0x1b349d=>'string'==typeof _0x1b349d);if(!this['cfg']['multiple']&&0x1===_0x1db876['length']&&_0x1db876[0x0])return this['_validationInputElement']['value']=_0x1db876[0x0],void this['_validationInputElement']['setCustomValidity']('');this['_validationInputElement']['remove'](),this['_validationInputElement']=null;const _0xd5463=new DocumentFragment();for(const _0x4ba20c of _0x1db876){const _0x1845c3=document['createElement']('input');_0x1845c3['type']='hidden',_0x1845c3['name']=this['ctxName']+'[]',_0x1845c3['value']=_0x4ba20c,_0xd5463['appendChild'](_0x1845c3);}this['_dynamicInputsContainer']['replaceChildren'](_0xd5463);}},!0x1);}},Icon=class extends Block{constructor(){super(),this['init$']={...this['init$'],'name':'','href':''};}['initCallback'](){super['initCallback'](),this['sub']('name',_0x15c46d=>{if(!_0x15c46d)return;let _0x2a5876='#uc-icon-'+_0x15c46d;this['subConfigValue']('iconHrefResolver',_0x2b1f9a=>{if(_0x2b1f9a){const _0xb7a77b=_0x2b1f9a(_0x15c46d);_0x2a5876=_0xb7a77b??_0x2a5876;}this['$']['href']=_0x2a5876;});}),this['setAttribute']('aria-hidden','true');}};Icon['template']='\x0a\x20\x20<svg\x20ref=\x22svg\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20<use\x20set=\x22@href:\x20href;\x22></use>\x0a\x20\x20</svg>\x0a',Icon['bindAttributes']({'name':'name'});var uniqueArray=_0x711e11=>[...new Set(_0x711e11)],CSS_PREF='--uc-img-',UNRESOLVED_ATTR='unresolved',HI_RES_K=0x2,ULTRA_RES_K=0x3,DEV_MODE=!window['location']['host']['trim']()||window['location']['host']['includes'](':')||window['location']['hostname']['includes']('localhost'),MAX_WIDTH=0xbb8,MAX_WIDTH_JPG=0x1388,ImgTypeEnum=Object['freeze']({'PREVIEW':'PREVIEW','MAIN':'MAIN'}),DEFAULT_CDN_BASE='https://ucarecdn.com',PROPS_MAP=Object['freeze']({'dev-mode':{},'pubkey':{},'uuid':{},'src':{},'lazy':{'default':0x1},'intersection':{},'breakpoints':{},'cdn-cname':{'default':DEFAULT_CDN_BASE},'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}}),CSS_PROPS=Object['create'](null);for(const e in PROPS_MAP)CSS_PROPS[CSS_PREF+e]=PROPS_MAP[e]?.['default']||'';var ImgConfig=class extends BaseComponent{['cssInit$']=CSS_PROPS;['$$'](_0x397cea){return this['$'][CSS_PREF+_0x397cea];}['set$$'](_0x44ce2e){for(const _0x35ea22 in _0x44ce2e)this['$'][CSS_PREF+_0x35ea22]=_0x44ce2e[_0x35ea22];}['sub$$'](_0x4fb6a5,_0xe305b3){this['sub'](CSS_PREF+_0x4fb6a5,_0x4aeb2c=>{null!==_0x4aeb2c&&''!==_0x4aeb2c&&_0xe305b3(_0x4aeb2c);});}['analyticsParams'](){return'-/@clib/'+PACKAGE_NAME+'/'+PACKAGE_VERSION+'/uc-img/';}['initAttributes'](_0x94eb8d){[...this['attributes']]['forEach'](_0x49d4a7=>{PROPS_MAP[_0x49d4a7['name']]||_0x94eb8d['setAttribute'](_0x49d4a7['name'],_0x49d4a7['value']);});}['initIntersection'](_0x9965de,_0x8ee6ca){this['_isnObserver']=new IntersectionObserver(_0xe62c40=>{_0xe62c40['forEach'](_0x5b1dd3=>{_0x5b1dd3['isIntersecting']&&(_0x8ee6ca(),this['_isnObserver']['unobserve'](_0x9965de));});},{'root':null,'rootMargin':'0px'}),this['_isnObserver']['observe'](_0x9965de),this['_observed']||(this['_observed']=new Set()),this['_observed']['add'](_0x9965de);}['destroyCallback'](){super['destroyCallback'](),this['_isnObserver']&&(this['_observed']['forEach'](_0x5ac17c=>{this['_isnObserver']['unobserve'](_0x5ac17c);}),this['_isnObserver']=null),Data['deleteCtx'](this);}static get['observedAttributes'](){return Object['keys'](PROPS_MAP);}['attributeChangedCallback'](_0x488a26,_0x5510a4,_0x1761d0){window['setTimeout'](()=>{this['$'][CSS_PREF+_0x488a26]=_0x1761d0;});}},parseObjectToString=_0x5d96ed=>Object['entries'](_0x5d96ed)['filter'](([_0x48a305,_0x4950cd])=>void 0x0!==_0x4950cd&&''!==_0x4950cd)['map'](([_0x3d90b0,_0x1e52a7])=>'cdn-operations'===_0x3d90b0||'analytics'===_0x3d90b0?_0x1e52a7:_0x3d90b0+'/'+_0x1e52a7),ImgBase=class extends ImgConfig{['_img']=new Image();['_imgPreview']=new Image();['_fmtAbs'](_0x5b6628){return!_0x5b6628['includes']('//')&&!DEV_MODE&&(_0x5b6628=new URL(_0x5b6628,document['baseURI'])['href']),_0x5b6628;}['_validateSize'](_0x30cf6b){if(''!==_0x30cf6b?.['trim']()){const _0x9339c4=_0x30cf6b['match'](/\d+/)[0x0],_0x3fcdfa=_0x30cf6b['match'](/[a-zA-Z]+/)[0x0],_0x462bda=parseInt(_0x9339c4,0xa);if(Number(_0x462bda)>MAX_WIDTH_JPG&&this['hasFormatJPG'])return MAX_WIDTH_JPG+_0x3fcdfa;if(Number(_0x462bda)>MAX_WIDTH&&!this['hasFormatJPG'])return MAX_WIDTH+_0x3fcdfa;}return _0x30cf6b;}['_getCdnModifiers'](_0x85cf5f,_0x106b84){const _0x5f0cb8={'format':this['$$']('format'),'quality':this['$$']('quality'),'resize':this['_validateSize'](_0x85cf5f),'blur':_0x106b84,'cdn-operations':this['$$']('cdn-operations'),'analytics':this['analyticsParams']()};return createCdnUrlModifiers(...parseObjectToString(_0x5f0cb8));}['_getUrlBase'](_0x2738d5='',_0xdf7807=''){if(this['$$']('src')['startsWith']('data:')||this['$$']('src')['startsWith']('blob:'))return this['$$']('src');if(DEV_MODE&&this['$$']('src')&&!this['$$']('src')['includes']('//'))return this['_proxyUrl'](this['$$']('src'));const _0xefc265=this['_getCdnModifiers'](_0x2738d5,_0xdf7807);return this['$$']('src')['startsWith'](this['$$']('cdn-cname'))?createCdnUrl(this['$$']('src'),_0xefc265):this['$$']('cdn-cname')&&this['$$']('uuid')||this['$$']('uuid')?this['_proxyUrl'](createCdnUrl(createOriginalUrl(this['$$']('cdn-cname'),this['$$']('uuid')),_0xefc265)):this['$$']('proxy-cname')?this['_proxyUrl'](createCdnUrl(this['$$']('proxy-cname'),_0xefc265,this['_fmtAbs'](this['$$']('src')))):this['$$']('pubkey')?this['_proxyUrl'](createCdnUrl('https://'+this['$$']('pubkey')+'.ucr.io/',_0xefc265,this['_fmtAbs'](this['$$']('src')))):void 0x0;}['_proxyUrl'](_0x4f5e15){return this['$$']('secure-delivery-proxy')?applyTemplateData(this['$$']('secure-delivery-proxy'),{'previewUrl':_0x4f5e15},{'transform':_0x319d3f=>window['encodeURIComponent'](_0x319d3f)}):_0x4f5e15;}['_getElSize'](_0x90e97e,_0x4e33d6=0x1,_0x2a74bb=!0x0){const _0x587e85=_0x90e97e['getBoundingClientRect'](),_0x5f2c7e=_0x4e33d6*Math['round'](_0x587e85['width']),_0xb8172f=_0x2a74bb?'':_0x4e33d6*Math['round'](_0x587e85['height']);return _0x5f2c7e||_0xb8172f?(_0x5f2c7e||'')+'x'+(_0xb8172f||''):null;}['_setupEventProxy'](_0x4b9154){const _0x54b49f=_0x3f7c6f=>{_0x3f7c6f['stopPropagation']();const _0x3ef145=new Event(_0x3f7c6f['type'],_0x3f7c6f);this['dispatchEvent'](_0x3ef145);},_0x32a1ec=['load','error'];for(const _0x4c40df of _0x32a1ec)_0x4b9154['addEventListener'](_0x4c40df,_0x54b49f);}get['img'](){return this['hasPreviewImage']||(this['_setupConfigForImage']({'elNode':this['_img']}),this['appendChild'](this['_img'])),this['_img'];}get['currentImg'](){return this['hasPreviewImage']?{'type':ImgTypeEnum['PREVIEW'],'img':this['_imgPreview']}:{'type':ImgTypeEnum['MAIN'],'img':this['img']};}get['hasPreviewImage'](){return this['$$']('is-preview-blur');}get['bgSelector'](){return this['$$']('is-background-for');}get['breakpoints'](){if(this['$$']('breakpoints')){const _0x7ac646=stringToArray(this['$$']('breakpoints'));return uniqueArray(_0x7ac646['map'](_0x1715b=>parseInt(_0x1715b,0xa)));}return null;}get['hasFormatJPG'](){return'jpeg'===this['$$']('format')['toLowerCase']();}['renderBg'](_0x275acc){const _0x1fb989=new Set();_0x1fb989['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x275acc))+'\x22)\x201x'),this['$$']('hi-res-support')&&_0x1fb989['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x275acc,HI_RES_K))+'\x22)\x20'+HI_RES_K+'x'),this['$$']('ultra-res-support')&&_0x1fb989['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x275acc,ULTRA_RES_K))+'\x22)\x20'+ULTRA_RES_K+'x');const _0x52a0fc='image-set('+[..._0x1fb989]['join'](',\x20')+')';_0x275acc['style']['setProperty']('background-image',_0x52a0fc),_0x275acc['style']['setProperty']('background-image','-webkit-'+_0x52a0fc);}['getSrcset'](){const _0xe50ce0=new Set();return this['breakpoints']?this['breakpoints']['forEach'](_0x4c03be=>{_0xe50ce0['add'](this['_getUrlBase'](_0x4c03be+'x')+('\x20'+this['_validateSize'](_0x4c03be+'w'))),this['$$']('hi-res-support')&&_0xe50ce0['add'](this['_getUrlBase'](_0x4c03be*HI_RES_K+'x')+('\x20'+this['_validateSize'](_0x4c03be*HI_RES_K+'w'))),this['$$']('ultra-res-support')&&_0xe50ce0['add'](this['_getUrlBase'](_0x4c03be*ULTRA_RES_K+'x')+('\x20'+this['_validateSize'](_0x4c03be*ULTRA_RES_K+'w')));}):(_0xe50ce0['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img']))+'\x201x'),this['$$']('hi-res-support')&&_0xe50ce0['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img'],0x2))+'\x202x'),this['$$']('ultra-res-support')&&_0xe50ce0['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img'],0x3))+'\x203x')),[..._0xe50ce0]['join']();}['getSrc'](){return this['_getUrlBase']();}get['srcUrlPreview'](){return this['_getUrlBase']('100x','100');}['renderBackground'](){[...document['querySelectorAll'](this['bgSelector'])]['forEach'](_0x2ddb1e=>{this['$$']('intersection')?this['initIntersection'](_0x2ddb1e,()=>{this['renderBg'](_0x2ddb1e);}):this['renderBg'](_0x2ddb1e);});}['_appendURL']({elNode:_0x5a9ea8,src:_0x1c0972,srcset:_0x59d9fc}){_0x1c0972&&(_0x5a9ea8['src']=_0x1c0972),_0x59d9fc&&(_0x5a9ea8['srcset']=_0x59d9fc);}['_setupConfigForImage']({elNode:_0x87d897}){this['_setupEventProxy'](_0x87d897),this['initAttributes'](_0x87d897);}['loaderImage']({src:_0x4f95d6,srcset:_0xf42db,elNode:_0x34f142}){return new Promise((_0x3b90cd,_0x130f0b)=>{this['_setupConfigForImage']({'elNode':_0x34f142}),_0x34f142['setAttribute'](UNRESOLVED_ATTR,''),_0x34f142['addEventListener']('load',()=>{_0x34f142['removeAttribute'](UNRESOLVED_ATTR),_0x3b90cd(_0x34f142);}),_0x34f142['addEventListener']('error',()=>{_0x130f0b(!0x1);}),this['_appendURL']({'elNode':_0x34f142,'src':_0x4f95d6,'srcset':_0xf42db});});}async['renderImage'](){if(this['$$']('intersection'))return this['hasPreviewImage']&&(this['_setupConfigForImage']({'elNode':this['_imgPreview']}),this['appendChild'](this['_imgPreview'])),void this['initIntersection'](this['currentImg']['img'],async()=>{this['hasPreviewImage']&&(this['_imgPreview']['src']=this['srcUrlPreview']);try{await this['loaderImage']({'src':this['getSrc'](),'srcset':this['getSrcset'](),'elNode':this['_img']}),this['hasPreviewImage']&&await this['_imgPreview']['remove'](),this['appendChild'](this['_img']);}catch(_0x48bd71){this['hasPreviewImage']&&await this['_imgPreview']?.['remove'](),this['appendChild'](this['_img']);}});try{this['hasPreviewImage']&&(await this['loaderImage']({'src':this['srcUrlPreview'],'elNode':this['_imgPreview']}),this['appendChild'](this['_imgPreview'])),await this['loaderImage']({'src':this['getSrc'](),'srcset':this['getSrcset'](),'elNode':this['_img']}),this['hasPreviewImage']&&await this['_imgPreview']?.['remove'](),this['appendChild'](this['_img']);}catch(_0x63749){this['hasPreviewImage']&&await this['_imgPreview']?.['remove'](),this['appendChild'](this['_img']);}}['init'](){this['bgSelector']?this['renderBackground']():this['renderImage']();}},Img=class extends ImgBase{['initCallback'](){super['initCallback'](),this['sub$$']('src',()=>{this['init']();}),this['sub$$']('uuid',()=>{this['init']();}),this['sub$$']('lazy',_0x225f0c=>{this['$$']('is-background-for')||this['$$']('is-preview-blur')||(this['img']['loading']=_0x225f0c?'lazy':'eager');});}},LAST_ACTIVE_MODAL_ID=null,Modal=class extends Block{static ['styleAttrs']=[...super['styleAttrs'],'uc-modal'];static ['StateConsumerScope']='modal';['_mouseDownTarget'];['handleModalOpen'];['handleModalClose'];['handleModalCloseAll'];constructor(){super(),this['init$']={...this['init$'],'closeClicked':this['_handleDialogClose']};}['_handleBackdropClick']=()=>{this['_closeDialog']();};['_closeDialog']=()=>{this['modalManager']?.['close'](this['id']),this['modalManager']?.['hasActiveModals']||(document['body']['style']['overflow']='');};['_handleDialogClose']=()=>{this['_closeDialog']();};['_handleDialogMouseDown']=_0x407c2a=>{this['_mouseDownTarget']=_0x407c2a['target'];};['_handleDialogMouseUp']=_0xbff1c7=>{const _0x233853=_0xbff1c7['target'];_0x233853===this['ref']['dialog']&&_0x233853===this['_mouseDownTarget']&&this['_closeDialog']();};['show'](){const _0x1ac157=this['ref']['dialog'];'function'==typeof _0x1ac157['showModal']?(this['setAttribute']('aria-modal','true'),_0x1ac157['showModal']()):_0x1ac157['setAttribute']('open',''),this['cfg']['modalScrollLock']&&(document['body']['style']['overflow']='hidden');}['hide'](){const _0x1f6ca6=this['ref']['dialog'];'function'==typeof _0x1f6ca6['close']?(this['setAttribute']('aria-modal','false'),_0x1f6ca6['close']()):_0x1f6ca6['removeAttribute']('open');}['_handleModalOpen']({id:_0xc01b09}){_0xc01b09===this['id']?(LAST_ACTIVE_MODAL_ID=_0xc01b09,this['show'](),this['emit'](EventType['MODAL_OPEN'],{'modalId':_0xc01b09},{'debounce':!0x0})):this['hide']();}['_handleModalClose']({id:_0x3edce4}){_0x3edce4===this['id']&&(this['hide'](),this['emit'](EventType['MODAL_CLOSE'],{'modalId':_0x3edce4,'hasActiveModals':this['modalManager']?.['hasActiveModals']},{'debounce':!0x0}));}['_handleModalCloseAll'](_0x2aabbb){this['hide'](),LAST_ACTIVE_MODAL_ID===this['id']&&this['emit'](EventType['MODAL_CLOSE'],{'modalId':LAST_ACTIVE_MODAL_ID,'hasActiveModals':this['modalManager']?.['hasActiveModals']},{'debounce':!0x0});}['initCallback'](){super['initCallback'](),this['modalManager']?.['registerModal'](this['id'],this);const _0x1efaee=this['ref']['dialog'];_0x1efaee['addEventListener']('close',this['_handleDialogClose']),_0x1efaee['addEventListener']('mousedown',this['_handleDialogMouseDown']),_0x1efaee['addEventListener']('mouseup',this['_handleDialogMouseUp']),this['subConfigValue']('modalBackdropStrokes',_0x4e3571=>{_0x4e3571?this['setAttribute']('strokes',''):this['removeAttribute']('strokes');}),this['handleModalOpen']=this['_handleModalOpen']['bind'](this),this['handleModalClose']=this['_handleModalClose']['bind'](this),this['handleModalCloseAll']=this['_handleModalCloseAll']['bind'](this),this['modalManager']?.['subscribe'](ModalEvents['OPEN'],this['handleModalOpen']),this['modalManager']?.['subscribe'](ModalEvents['CLOSE'],this['handleModalClose']),this['modalManager']?.['subscribe'](ModalEvents['CLOSE_ALL'],this['handleModalCloseAll']);}['destroyCallback'](){super['destroyCallback'](),document['body']['style']['overflow']='',this['_mouseDownTarget']=void 0x0;const _0x5665b0=this['ref']['dialog'];_0x5665b0['removeEventListener']('close',this['_handleDialogClose']),_0x5665b0['removeEventListener']('mousedown',this['_handleDialogMouseDown']),_0x5665b0['removeEventListener']('mouseup',this['_handleDialogMouseUp']),this['modalManager']?.['unsubscribe'](ModalEvents['OPEN'],this['handleModalOpen']),this['modalManager']?.['unsubscribe'](ModalEvents['CLOSE'],this['handleModalClose']),this['modalManager']?.['unsubscribe'](ModalEvents['CLOSE_ALL'],this['handleModalCloseAll']);}};Modal['template']='\x0a\x20\x20<dialog\x20ref=\x22dialog\x22>\x0a\x20\x20\x20\x20<slot></slot>\x0a\x20\x20</dialog>\x0a';var ProgressBar=class extends Block{['_value']=0x0;['_visible']=!0x0;constructor(){super(),this['init$']={...this['init$'],'width':0x0,'opacity':0x0};}['initCallback'](){super['initCallback'](),(this['ref']['fakeProgressLine']['addEventListener']('animationiteration',()=>{const _0x3a8c69=this['ref']['fakeProgressLine'];this['_visible']?this['_value']>0x0&&_0x3a8c69['classList']['add']('uc-fake-progress--hidden'):_0x3a8c69['classList']['add']('uc-fake-progress--hidden');}),this['defineAccessor']('value',_0x104e13=>{null!=_0x104e13&&(this['_value']=_0x104e13,this['_visible']&&this['style']['setProperty']('--l-progress-value',this['_value']['toString']()));}),this['defineAccessor']('visible',_0x47f827=>{this['_visible']=_0x47f827,this['classList']['toggle']('uc-progress-bar--hidden',!_0x47f827);}));}};ProgressBar['template']='\x0a\x20\x20<div\x20ref=\x22fakeProgressLine\x22\x20class=\x22uc-fake-progress\x22></div>\x0a\x20\x20<div\x20ref=\x22realProgressLine\x22\x20class=\x22uc-progress\x22></div>\x0a';var ProgressBarCommon=class extends UploaderBlock{['_unobserveCollectionCb'];constructor(){super(),this['init$']={...this['init$'],'visible':!0x1,'value':0x0,'*commonProgress':0x0};}['initCallback'](){super['initCallback'](),this['_unobserveCollectionCb']=this['uploadCollection']['observeProperties'](()=>{const _0x123454=this['uploadCollection']['items']()['some'](_0x235526=>{const _0x1a8b01=this['uploadCollection']['read'](_0x235526);return _0x1a8b01?.['getValue']('isUploading')??!0x1;});this['$']['visible']=_0x123454;}),this['sub']('visible',_0x39050e=>{_0x39050e?this['setAttribute']('active',''):this['removeAttribute']('active');}),this['sub']('*commonProgress',_0x4c961e=>{this['$']['value']=_0x4c961e;});}['destroyCallback'](){super['destroyCallback'](),this['_unobserveCollectionCb']?.(),this['_unobserveCollectionCb']=void 0x0;}};ProgressBarCommon['template']='\x20<uc-progress-bar\x20set=\x22visible:\x20visible;\x20value:\x20value\x22></uc-progress-bar>\x20';var Select=class extends Block{constructor(){super(),this['init$']={...this['init$'],'currentText':'','options':[],'selectHtml':'','onSelect':_0x80922=>{_0x80922['preventDefault'](),_0x80922['stopPropagation']();const _0x4987e5=this['ref']['select'];this['value']=_0x4987e5['value'],this['$']['currentText']=this['$']['options']['find'](_0x492af8=>_0x492af8['value']===this['value'])?.['text']||'',this['dispatchEvent'](new Event('change'));}};}['initCallback'](){super['initCallback'](),this['sub']('options',_0x5ab9e8=>{this['$']['currentText']=_0x5ab9e8?.[0x0]?.['text']||'';let _0x52d0ad='';_0x5ab9e8?.['forEach'](_0x238758=>{_0x52d0ad+='<option\x20value=\x22'+_0x238758['value']+'\x22>'+_0x238758['text']+'</option>';}),this['$']['selectHtml']=_0x52d0ad;});}};Select['template']='\x20<select\x20ref=\x22select\x22\x20set=\x22innerHTML:\x20selectHtml;\x20onchange:\x20onSelect\x22></select>\x20';var SimpleBtn=class extends UploaderBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-simple-btn'];['couldBeCtxOwner']=!0x0;constructor(){super(),this['init$']={...this['init$'],'withDropZone':!0x0,'onClick':()=>{this['api']['initFlow']();},'button-text':''};}['initCallback'](){super['initCallback'](),this['defineAccessor']('dropzone',_0x4fa2ab=>{void 0x0!==_0x4fa2ab&&(this['$']['withDropZone']=asBoolean2(_0x4fa2ab));}),this['subConfigValue']('multiple',_0x3391d5=>{this['$']['button-text']=_0x3391d5?'upload-files':'upload-file';});}};SimpleBtn['template']='\x0a\x20\x20<uc-drop-area\x20set=\x22@disabled:\x20!withDropZone\x22>\x0a\x20\x20\x20\x20<button\x20type=\x22button\x22\x20set=\x22onclick:\x20onClick\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22upload\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22button-text\x22></span>\x0a\x20\x20\x20\x20\x20\x20<slot></slot>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-visual-drop-area\x22\x20l10n=\x22drop-files-here\x22></div>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-drop-area>\x0a',SimpleBtn['bindAttributes']({'dropzone':null});var L10N_PREFIX='src-type-',SourceBtn=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['type']=void 0x0;['_registeredTypes']={};constructor(){super(),this['init$']={...this['init$'],'iconName':'default','src-type':''};}['initTypes'](){this['registerType']({'type':UploadSource['LOCAL'],'activate':()=>(this['api']['openSystemDialog'](),!0x1)}),this['registerType']({'type':UploadSource['URL'],'activity':ActivityBlock['activities']['URL'],'textKey':'from-url'}),this['registerType']({'type':UploadSource['CAMERA'],'activity':ActivityBlock['activities']['CAMERA'],'activate':()=>{const _0x464241=browserFeatures['htmlMediaCapture'];return _0x464241&&this['api']['openSystemDialog']({'captureCamera':!0x0}),!_0x464241;}}),this['registerType']({'type':'draw','activity':ActivityBlock['activities']['DRAW'],'icon':'edit-draw'});for(const _0x6dae31 of Object['values'](UploadSourceMobile))this['registerType']({'type':_0x6dae31,'activity':ActivityBlock['activities']['CAMERA'],'activate':()=>{const _0x11a185=browserFeatures['htmlMediaCapture'];return _0x11a185&&this['api']['openSystemDialog']({'captureCamera':!0x0,'modeCamera':'mobile-photo-camera'===_0x6dae31?CameraSourceTypes['PHOTO']:CameraSourceTypes['VIDEO']}),!_0x11a185;}});for(const _0x4a7233 of Object['values'](ExternalUploadSource))this['registerType']({'type':_0x4a7233,'activity':ActivityBlock['activities']['EXTERNAL'],'activityParams':{'externalSourceType':_0x4a7233}});}['initCallback'](){super['initCallback'](),this['initTypes'](),this['defineAccessor']('type',_0x331351=>{_0x331351&&this['applyType'](_0x331351);});}['registerType'](_0x4a3ab7){this['_registeredTypes'][_0x4a3ab7['type']]=_0x4a3ab7;}['getType'](_0x20932d){return this['_registeredTypes'][_0x20932d];}['activate'](){if(!this['type'])return;const _0x4dbcf3=this['_registeredTypes'][this['type']];if(!_0x4dbcf3)return;const {activity:_0x35ce76,activate:_0x55b011,activityParams:_0x2ceba2={}}=_0x4dbcf3;(_0x55b011?_0x55b011():!!_0x35ce76)&&_0x35ce76&&(this['modalManager']?.['open'](_0x35ce76),this['set$']({'*currentActivityParams':_0x2ceba2,'*currentActivity':_0x35ce76}));}['applyType'](_0x326b27){const _0x34bf77=this['_registeredTypes'][_0x326b27];if(!_0x34bf77)return void console['warn']('Unsupported\x20source\x20type:\x20'+_0x326b27);const {textKey:_0xf8912f=_0x326b27,icon:_0xb3149b=_0x326b27}=_0x34bf77;this['$']['src-type']=''+L10N_PREFIX+_0xf8912f,this['$']['iconName']=_0xb3149b,this['onclick']=()=>{this['activate']();};}};SourceBtn['template']='\x0a\x20\x20<button\x20type=\x22button\x22>\x0a\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20iconName\x22></uc-icon>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-txt\x22\x20l10n=\x22src-type\x22></div>\x0a\x20\x20</button>\x0a',SourceBtn['bindAttributes']({'type':null});var SourceList=class extends Block{['initCallback'](){super['initCallback'](),this['subConfigValue']('sourceList',_0x2c0db=>{const _0x1d5dd4=stringToArray(_0x2c0db);let _0x37e63d='';_0x1d5dd4['forEach'](_0x387949=>{'instagram'!==_0x387949?'camera'===_0x387949&&browserFeatures['htmlMediaCapture']?this['subConfigValue']('cameraModes',_0x3a393c=>{const _0x48fb6e=deserializeCsv(_0x3a393c);_0x48fb6e['forEach'](_0x2f4079=>{_0x37e63d+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22mobile-'+_0x2f4079+'-camera\x22></uc-source-btn>';}),0x0===_0x48fb6e['length']&&(_0x37e63d+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22mobile-photo-camera\x22></uc-source-btn>');}):_0x37e63d+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22'+_0x387949+'\x22></uc-source-btn>':console['error']('Instagram\x20source\x20was\x20removed\x20because\x20the\x20Instagram\x20Basic\x20Display\x20API\x20hasn\x27t\x20been\x20available\x20since\x20December\x204,\x202024.\x20Official\x20statement,\x20see\x20here:https://developers.facebook.com/blog/post/2024/09/04/update-on-instagram-basic-display-api/?locale=en_US');}),this['cfg']['sourceListWrap']?this['innerHTML']=_0x37e63d:this['outerHTML']=_0x37e63d;});}},Spinner=class extends BaseComponent{};Spinner['template']='\x20<div\x20class=\x22uc-spinner\x22></div>\x20';var StartFrom=class extends ActivityBlock{['historyTracked']=!0x0;['activityType']=ActivityBlock['activities']['START_FROM'];['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']??'');}};function generateThumb(_0x46f380,_0x449897=0x28){if('image/svg+xml'===_0x46f380['type'])return URL['createObjectURL'](_0x46f380);const _0x5e8879=document['createElement']('canvas'),_0x195174=_0x5e8879['getContext']('2d');if(!_0x195174)return Promise['reject'](new Error('Canvas\x20context\x20not\x20supported'));const _0x3737df=new Image(),_0x145016=new Promise((_0x320734,_0x1159c6)=>{_0x3737df['onload']=()=>{const _0x195e2f=_0x3737df['height']/_0x3737df['width'];_0x195e2f>0x1?(_0x5e8879['width']=_0x449897,_0x5e8879['height']=_0x449897*_0x195e2f):(_0x5e8879['height']=_0x449897,_0x5e8879['width']=_0x449897/_0x195e2f),_0x195174['fillStyle']='rgb(240,\x20240,\x20240)',_0x195174['fillRect'](0x0,0x0,_0x5e8879['width'],_0x5e8879['height']),_0x195174['drawImage'](_0x3737df,0x0,0x0,_0x5e8879['width'],_0x5e8879['height']),_0x5e8879['toBlob'](_0x61585c=>{if(!_0x61585c)return void _0x1159c6();const _0x21da7c=URL['createObjectURL'](_0x61585c);_0x320734(_0x21da7c);});},_0x3737df['onerror']=_0x45f8ff=>{_0x1159c6(_0x45f8ff);};});return _0x3737df['src']=URL['createObjectURL'](_0x46f380),_0x145016;}function createSvgBlobUrl(_0x1e9fe1){const _0x1efe00=new Blob([_0x1e9fe1],{'type':'image/svg+xml'});return URL['createObjectURL'](_0x1efe00);}function fileCssBg(_0x8795cd='hsl(209,\x2021%,\x2065%)',_0x16d4f9=0x20,_0x554820=0x20){return createSvgBlobUrl('\x0a\x20\x20<svg\x20width=\x22'+_0x16d4f9+'\x22\x20height=\x22'+_0x554820+'\x22\x20viewBox=\x220\x200\x2030\x2030\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20<path\x20fill-rule=\x22evenodd\x22\x20fill=\x22'+_0x8795cd+'\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/>\x0a\x20\x20</svg>\x0a\x20\x20');}StartFrom['template']='\x20<div\x20class=\x22uc-content\x22><slot></slot></div>\x20';var CDN_MAX_OUTPUT_DIMENSION=0xbb8,Thumb=class extends FileItemConfig{['_renderedGridOnce']=!0x1;['_thumbRect']=null;['_isIntersecting']=!0x1;['_firstViewMode']=this['cfg']['filesViewMode'];['_observer'];constructor(){super(),this['init$']={...this['init$'],'thumbUrl':'','badgeIcon':'','uid':''};}['_calculateThumbSize'](_0x248d30=!0x1){_0x248d30&&(this['_thumbRect']=this['getBoundingClientRect']());let _0x54bda4=Math['max'](parseInt(String(this?.['_thumbRect']?.['height']||0x0),0xa),parseInt(String(this?.['_thumbRect']?.['width']||0x0),0xa),this['cfg']['thumbSize']);return window['devicePixelRatio']>0x1&&(_0x54bda4*=window['devicePixelRatio']),Math['min'](_0x54bda4,CDN_MAX_OUTPUT_DIMENSION);}['_generateThumbnail']=this['_withEntry'](async(e,i=!0x1)=>{const n=e['getValue']('fileInfo'),s=e['getValue']('isImage'),r=e['getValue']('uuid'),o=e['getValue']('thumbUrl'),a=this['_calculateThumbSize'](i);if(n&&s&&r){const i=await this['proxyUrl'](createCdnUrl(createOriginalUrl(this['cfg']['cdnCname'],r),createCdnUrlModifiers(e['getValue']('cdnUrlModifiers'),'stretch/off','scale_crop/'+a+'x'+a+'/center')));if(o===i)return;const {promise:n}=preloadImage(i);return void n['then'](()=>{e['setValue']('thumbUrl',i),o?.['startsWith']('blob:')&&URL['revokeObjectURL'](o);})['catch'](async()=>{if(!o?.['startsWith']('blob:'))try{const i=e['getValue']('file');if(!i)return;const n=await generateThumb(i,a);e['setValue']('thumbUrl',n);}catch(i){this['telemetryManager']['sendEventError'](i,'thumbnail\x20generation.\x20Failed\x20to\x20generate\x20thumb\x20from\x20file');const n=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');e['setValue']('thumbUrl',fileCssBg(n));}});}if(e['getValue']('thumbUrl'))return;const l=e['getValue']('file');if(l?.['type']['includes']('image'))try{const i=await generateThumb(l,a);e['setValue']('thumbUrl',i);}catch(i){this['telemetryManager']['sendEventError'](i,'thumbnail\x20generation.\x20Failed\x20to\x20generate\x20thumb\x20from\x20file');const n=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');e['setValue']('thumbUrl',fileCssBg(n));}else{const i=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');e['setValue']('thumbUrl',fileCssBg(i));}});['_debouncedGenerateThumb']=debounce(this['_generateThumbnail']['bind'](this),0x64);['_observerCallback'](_0x4e752c){const [_0x41f1ef]=_0x4e752c;_0x41f1ef&&(this['_isIntersecting']=_0x41f1ef['isIntersecting'],_0x41f1ef['isIntersecting']&&(this['_thumbRect']=_0x41f1ef['boundingClientRect'],this['_debouncedGenerateThumb'](),this['_observer']?.['disconnect']()),0x0===_0x41f1ef['intersectionRatio']&&this['_debouncedGenerateThumb']['cancel']());}['_reset'](){super['_reset'](),this['_debouncedGenerateThumb']['cancel']();}['_handleEntryId'](_0xfe3e53){this['_reset']();const _0x5c00e5=this['uploadCollection']?.['read'](_0xfe3e53);this['_entry']=_0x5c00e5,_0x5c00e5&&(this['_subEntry']('fileInfo',_0x3472e0=>{_0x3472e0?.['isImage']&&this['_isIntersecting']&&this['_debouncedGenerateThumb']();}),this['_subEntry']('thumbUrl',_0x38b57a=>{this['$']['thumbUrl']=_0x38b57a?'url('+_0x38b57a+')':'';}),this['_subEntry']('cdnUrlModifiers',()=>{this['_isIntersecting']&&this['_debouncedGenerateThumb']();}),this['_isIntersecting']&&this['_debouncedGenerateThumb']());}['initCallback'](){super['initCallback'](),this['defineAccessor']('badgeIcon',_0x25c848=>{this['$']['badgeIcon']=_0x25c848;}),this['defineAccessor']('uid',_0x3f3c71=>{this['set$']({'uid':_0x3f3c71});}),this['sub']('uid',_0x56d1e0=>{this['_handleEntryId'](_0x56d1e0);}),this['subConfigValue']('filesViewMode',_0x5e5431=>{'grid'!==_0x5e5431||this['_renderedGridOnce']||('list'===this['_firstViewMode']&&this['_debouncedGenerateThumb'](!0x0),this['_renderedGridOnce']=!0x0);}),this['setAttribute']('role','img');}['connectedCallback'](){super['connectedCallback'](),this['_observer']=new window['IntersectionObserver'](this['_observerCallback']['bind'](this),{'threshold':0.1}),this['_observer']['observe'](this);}['disconnectedCallback'](){super['disconnectedCallback'](),this['_entrySubs']=new Set(),this['_debouncedGenerateThumb']['cancel'](),this['_observer']?.['disconnect']();}};Thumb['template']='\x0a\x20\x20<div\x20class=\x22uc-thumb\x22\x20set=\x22style.backgroundImage:\x20thumbUrl\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-badge\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20badgeIcon\x22></uc-icon>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a',Thumb['bindAttributes']({'badgeIcon':null,'uid':null});var UploadCtxProvider=class extends UploaderBlock{static ['styleAttrs']=['uc-wgt-common'];static ['EventType']=EventType;['requireCtxName']=!0x0;['initCallback'](){super['initCallback'](),this['$']['*eventEmitter']['bindTarget'](this);}['destroyCallback'](){super['destroyCallback'](),this['$']['*eventEmitter']['unbindTarget'](this);}},UploadList=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['historyTracked']=!0x0;['activityType']=ActivityBlock['activities']['UPLOAD_LIST'];constructor(){super(),this['init$']={...this['init$'],'doneBtnVisible':!0x1,'doneBtnEnabled':!0x1,'uploadBtnVisible':!0x1,'addMoreBtnVisible':!0x1,'addMoreBtnEnabled':!0x1,'headerText':'','commonErrorMessage':'','hasFiles':!0x1,'onAdd':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'add-more','node':this['tagName']}}}),this['api']['initFlow'](!0x0);},'onUpload':()=>{this['emit'](EventType['UPLOAD_CLICK']),this['api']['uploadAll'](),this['_throttledHandleCollectionUpdate']();},'onDone':()=>{this['emit'](EventType['DONE_CLICK'],this['api']['getOutputCollectionState']()),this['api']['doneFlow']();},'onCancel':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'clear-all','node':this['tagName']}}}),this['uploadCollection']['clearAll']();}};}['_throttledHandleCollectionUpdate']=throttle(()=>{this['isConnected']&&(this['_updateUploadsState'](),this['couldOpenActivity']||this['$']['*currentActivity']!==this['activityType']||this['historyBack'](),this['cfg']['confirmUpload']||this['api']['uploadAll']());},0x12c);['_updateUploadsState'](){const _0x388e23=this['api']['getOutputCollectionState'](),_0xa76b95={'total':_0x388e23['totalCount'],'succeed':_0x388e23['successCount'],'uploading':_0x388e23['uploadingCount'],'failed':_0x388e23['failedCount'],'validatingBeforeUploading':_0x388e23['idleEntries']['filter'](_0x5d3df6=>_0x5d3df6['isValidationPending'])['length']},_0x508873=!_0x388e23['errors']['some'](_0x5ec7ca=>'TOO_MANY_FILES'===_0x5ec7ca['type']||'TOO_FEW_FILES'===_0x5ec7ca['type']),_0x54d6a5=_0x388e23['errors']['some'](_0x1825e2=>'TOO_MANY_FILES'===_0x1825e2['type']),_0x3a4d98=_0x388e23['totalCount']===(this['cfg']['multiple']?this['cfg']['multipleMax']:0x1),_0x20dd41=_0x388e23['allEntries']['some'](_0x460035=>_0x460035['isValidationPending']),_0xb5c6e7=0x0===_0xa76b95['failed']&&0x0===_0x388e23['errors']['length']&&!_0x20dd41;let _0x46f1ee=!0x1,_0x11fba4=!0x1,_0x126628=!0x1;if(_0xa76b95['total']-_0xa76b95['succeed']-_0xa76b95['uploading']-_0xa76b95['failed']>0x0&&_0x508873&&_0xb5c6e7)_0x46f1ee=!0x0;else{_0x11fba4=!0x0;const _0x5bbbdf=!this['cfg']['groupOutput']||!!_0x388e23['group'];_0x126628=_0xa76b95['total']===_0xa76b95['succeed']&&_0x508873&&_0xb5c6e7&&_0x5bbbdf;}this['set$']({'doneBtnVisible':_0x11fba4,'doneBtnEnabled':_0x126628,'uploadBtnVisible':_0x46f1ee,'addMoreBtnEnabled':0x0===_0xa76b95['total']||!_0x54d6a5&&!_0x3a4d98,'addMoreBtnVisible':!_0x3a4d98||this['cfg']['multiple'],'hasFiles':_0xa76b95['total']>0x0}),this['bindL10n']('headerText',()=>this['_getHeaderText'](_0xa76b95));}['_getHeaderText'](_0x3a6148){const _0x15947b=_0x3f20c6=>{let _0x50682d=_0x3a6148[_0x3f20c6];return'uploading'===_0x3f20c6&&(_0x50682d+=_0x3a6148['validatingBeforeUploading']),this['l10n']('header-'+_0x3f20c6,{'count':_0x50682d});};return _0x3a6148['uploading']>0x0||_0x3a6148['validatingBeforeUploading']>0x0?_0x15947b('uploading'):_0x3a6148['failed']>0x0?_0x15947b('failed'):_0x3a6148['succeed']>0x0?_0x15947b('succeed'):_0x15947b('total');}get['couldOpenActivity'](){return this['cfg']['showEmptyList']||this['uploadCollection']['size']>0x0;}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']),this['subConfigValue']('multiple',this['_throttledHandleCollectionUpdate']),this['subConfigValue']('multipleMin',this['_throttledHandleCollectionUpdate']),this['subConfigValue']('multipleMax',this['_throttledHandleCollectionUpdate']),this['sub']('*groupInfo',_0x5db58b=>{_0x5db58b&&this['_throttledHandleCollectionUpdate']();}),this['subConfigValue']('filesViewMode',_0xe82f7d=>{this['setAttribute']('mode',_0xe82f7d);}),this['sub']('*currentActivity',_0x7b8607=>{this['couldOpenActivity']||_0x7b8607!==this['activityType']||(this['$']['*currentActivity']=this['initActivity']);}),this['uploadCollection']['observeProperties'](this['_throttledHandleCollectionUpdate']),this['uploadCollection']['observeCollection'](this['_throttledHandleCollectionUpdate']),this['sub']('*collectionErrors',_0x5b4d9a=>{const _0x332381=_0x5b4d9a['filter'](_0x2c9758=>'SOME_FILES_HAS_ERRORS'!==_0x2c9758['type'])[0x0];_0x332381?this['set$']({'commonErrorMessage':_0x332381['message']}):this['set$']({'commonErrorMessage':null});});}['destroyCallback'](){super['destroyCallback'](),this['uploadCollection']['unobserveProperties'](this['_throttledHandleCollectionUpdate']),this['uploadCollection']['unobserveCollection'](this['_throttledHandleCollectionUpdate']);}};UploadList['template']='\x0a\x20\x20<uc-activity-header>\x0a\x20\x20\x20\x20<span\x20aria-live=\x22polite\x22\x20class=\x22uc-header-text\x22>{{headerText}}</span>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-close-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*closeModal\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22close\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-activity-header>\x0a\x0a\x20\x20<div\x20class=\x22uc-no-files\x22\x20set=\x22@hidden:\x20hasFiles\x22>\x0a\x20\x20\x20\x20<slot\x20name=\x22empty\x22><span\x20l10n=\x22no-files\x22></span></slot>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20class=\x22uc-files\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-files-wrapper\x22\x20repeat=\x22*uploadList\x22\x20repeat-item-tag=\x22uc-file-item\x22></div>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-add-more-btn\x20uc-secondary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onAdd;\x20@disabled:\x20!addMoreBtnEnabled;\x20@hidden:\x20!addMoreBtnVisible\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22add\x22></uc-icon><span\x20l10n=\x22add-more\x22></span>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20class=\x22uc-common-error\x22\x20set=\x22@hidden:\x20!commonErrorMessage;\x20textContent:\x20commonErrorMessage;\x22></div>\x0a\x0a\x20\x20<div\x20class=\x22uc-toolbar\x22>\x0a\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-cancel-btn\x20uc-secondary-btn\x22\x20set=\x22onclick:\x20onCancel;\x22\x20l10n=\x22clear\x22></button>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-toolbar-spacer\x22></div>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-add-more-btn\x20uc-secondary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onAdd;\x20@disabled:\x20!addMoreBtnEnabled;\x20@hidden:\x20!addMoreBtnVisible\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22add\x22></uc-icon><span\x20l10n=\x22add-more\x22></span>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-upload-btn\x20uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22@hidden:\x20!uploadBtnVisible;\x20onclick:\x20onUpload;\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22upload\x22\x0a\x20\x20\x20\x20></button>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-done-btn\x20uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22@hidden:\x20!doneBtnVisible;\x20onclick:\x20onDone;\x20\x20@disabled:\x20!doneBtnEnabled\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22done\x22\x0a\x20\x20\x20\x20></button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<uc-drop-area\x20ghost></uc-drop-area>\x0a';var UrlSource=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['URL'];constructor(){super(),this['init$']={...this['init$'],'importDisabled':!0x0,'onUpload':_0x3d1836=>{_0x3d1836['preventDefault'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'upload-from-url','node':this['tagName']}}});const _0x58039c=this['ref']['input']['value'];this['api']['addFileFromUrl'](_0x58039c,{'source':UploadSource['URL']}),this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'];},'onCancel':()=>{this['historyBack']();},'onInput':_0x3f5a5a=>{const _0x1efaf4=_0x3f5a5a['target']?.['value']??'';this['set$']({'importDisabled':!_0x1efaf4});}};}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']??'',{'onActivate':()=>{const _0x262693=this['ref']['input'];_0x262693['value']='',_0x262693['focus']();}});}};UrlSource['template']='\x0a\x20\x20<uc-activity-header>\x0a\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-mini-btn\x22\x20set=\x22onclick:\x20*historyBack\x22\x20l10n=\x22@title:back;@aria-label:back\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22back\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22url\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22caption-from-url\x22></span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-close-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*closeModal\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22close\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-activity-header>\x0a\x20\x20<form\x20class=\x22uc-content\x22>\x0a\x20\x20\x20\x20<label>\x0a\x20\x20\x20\x20\x20\x20<input\x20placeholder=\x22https://\x22\x20class=\x22uc-url-input\x22\x20type=\x22text\x22\x20ref=\x22input\x22\x20set=\x22oninput:\x20onInput\x22\x20/>\x0a\x20\x20\x20\x20</label>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22submit\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-url-upload-btn\x20uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onUpload;\x20@disabled:\x20importDisabled\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22upload-url\x22\x0a\x20\x20\x20\x20></button>\x0a\x20\x20</form>\x0a';var CloudImageEditor=class extends CloudImageEditorBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-wgt-common'];constructor(){super(),this['init$']={...this['init$'],'*solution':this['tagName']};}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']}),this['a11y']?.['registerBlock'](this);}},FileUploaderInline=class extends SolutionBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-inline'];constructor(){super(),this['init$']={...this['init$'],'couldCancel':!0x1,'*solution':this['tagName'],'cancel':()=>{if(this['couldHistoryBack']){const _0x3af873=this['$']['*historyBack'];return void _0x3af873?.();}this['couldShowList']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}};}get['couldHistoryBack'](){const _0x14c02b=this['$']['*history'];return!(!_0x14c02b||_0x14c02b['length']<=0x1)&&_0x14c02b[_0x14c02b['length']-0x1]!==ActivityBlock['activities']['START_FROM'];}get['couldShowList'](){const _0x4a7266=this['$']['*uploadList'];return this['cfg']['showEmptyList']||Array['isArray'](_0x4a7266)&&_0x4a7266['length']>0x0;}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']});const _0x172b4c=this['ref']['uBlock'];_0x172b4c&&(this['sub']('*currentActivity',_0x2fdad2=>{_0x2fdad2||(this['$']['*currentActivity']=_0x172b4c['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['sub']('*uploadList',_0x2344de=>{Array['isArray'](_0x2344de)&&_0x2344de['length']>0x0&&this['$']['*currentActivity']===(_0x172b4c['initActivity']||ActivityBlock['activities']['START_FROM'])&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}),this['sub']('*history',()=>{this['$']['couldCancel']=this['couldHistoryBack']||this['couldShowList'];}));}};FileUploaderInline['template']='\x0a\x20\x20<uc-start-from>\x0a\x20\x20\x20\x20<uc-drop-area\x20with-icon\x20clickable></uc-drop-area>\x0a\x20\x20\x20\x20<uc-source-list\x20role=\x22list\x22\x20wrap></uc-source-list>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22start-from-cancel\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-cancel-btn\x20uc-secondary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20cancel;\x20@hidden:\x20!couldCancel\x22\x0a\x20\x20\x20\x20></button>\x0a\x20\x20\x20\x20<uc-copyright></uc-copyright>\x0a\x20\x20</uc-start-from>\x0a\x20\x20<uc-upload-list\x20ref=\x22uBlock\x22></uc-upload-list>\x0a\x20\x20<uc-camera-source></uc-camera-source>\x0a\x20\x20<uc-url-source></uc-url-source>\x0a\x20\x20<uc-external-source></uc-external-source>\x0a\x20\x20<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>\x0a';var ACTIVE_CLASS='active',EMPTY_CLASS='',FileUploaderMinimal=class extends SolutionBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-minimal'];['handleModalOpen'];['handleModalClose'];constructor(){super(),this['init$']={...this['init$'],'singleUpload':!0x1,'isHiddenStartFrom':!0x1,'classUploadList':EMPTY_CLASS,'classStartFrom':EMPTY_CLASS,'*solution':this['tagName']};}['_handleModalOpen'](_0x15fcdc){_0x15fcdc['id']===ActivityBlock['activities']['CLOUD_IMG_EDIT']&&this['set$']({'classUploadList':ACTIVE_CLASS}),this['$']['*currentActivity']===ActivityBlock['activities']['UPLOAD_LIST']&&this['set$']({'classUploadList':ACTIVE_CLASS,'isHiddenStartFrom':!0x0});const _0x50bb18=this['$']['*uploadList'];(!_0x50bb18||_0x50bb18['length']<=0x0)&&this['set$']({'classStartFrom':ACTIVE_CLASS});}['_handleModalClose'](_0x11f142){_0x11f142['id']===this['$']['*currentActivity']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['set$']({'isHiddenStartFrom':!0x1})),_0x11f142['id']===ActivityBlock['activities']['CLOUD_IMG_EDIT']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']});const _0x4366b6=this['ref']['uBlock'];_0x4366b6&&(this['sub']('*currentActivity',_0x3b07ec=>{_0x3b07ec===ActivityBlock['activities']['UPLOAD_LIST']&&this['modalManager']?.['closeAll'](),_0x3b07ec||(this['$']['*currentActivity']=_0x4366b6['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['sub']('*uploadList',_0x4346c6=>{Array['isArray'](_0x4346c6)&&_0x4346c6['length']>0x0?(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['set$']({'classStartFrom':EMPTY_CLASS})):(this['set$']({'classUploadList':EMPTY_CLASS,'isHiddenStartFrom':!0x1}),this['$']['*currentActivity']=_0x4366b6['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['subConfigValue']('confirmUpload',_0x41bb48=>{!0x1!==_0x41bb48&&(this['cfg']['confirmUpload']=!0x1);}),this['subConfigValue']('filesViewMode',_0x4f05dc=>{this['setAttribute']('mode',_0x4f05dc),this['subConfigValue']('multiple',_0x495dd6=>{'grid'===_0x4f05dc?(_0x495dd6?this['style']['removeProperty']('--uc-grid-col'):this['style']['setProperty']('--uc-grid-col','1'),this['$']['singleUpload']=!_0x495dd6):(this['style']['removeProperty']('--uc-grid-col'),this['$']['singleUpload']=!0x1);});}),this['handleModalOpen']=_0x201817=>{this['_handleModalOpen'](_0x201817);},this['handleModalClose']=_0x7c036a=>{this['_handleModalClose'](_0x7c036a);},this['modalManager']?.['subscribe'](ModalEvents['OPEN'],this['handleModalOpen']),this['modalManager']?.['subscribe'](ModalEvents['CLOSE'],this['handleModalClose']));}['destroyCallback'](){super['destroyCallback'](),this['modalManager']?.['unsubscribe'](ModalEvents['OPEN'],this['handleModalOpen']),this['modalManager']?.['unsubscribe'](ModalEvents['CLOSE'],this['handleModalClose']);}};FileUploaderMinimal['template']='\x0a\x20\x20<uc-start-from\x20set=\x22@hidden:\x20isHiddenStartFrom;\x20@class:classStartFrom\x22>\x0a\x20\x20\x20\x20<uc-drop-area\x20set=\x22@single:singleUpload;\x22\x20initflow\x20clickable\x20tabindex=\x220\x22\x20l10n=\x22choose-file\x22></uc-drop-area>\x0a\x20\x20\x20\x20<uc-copyright></uc-copyright>\x0a\x20\x20</uc-start-from>\x0a\x20\x20<uc-upload-list\x20set=\x22@class:classUploadList\x22\x20ref=\x22uBlock\x22></uc-upload-list>\x0a\x0a\x20\x20<uc-modal\x20id=\x22start-from\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-start-from>\x0a\x20\x20\x20\x20\x20\x20<uc-drop-area\x20with-icon\x20clickable></uc-drop-area>\x0a\x20\x20\x20\x20\x20\x20<uc-source-list\x20role=\x22list\x22\x20wrap></uc-source-list>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20l10n=\x22start-from-cancel\x22\x20class=\x22uc-secondary-btn\x22\x20set=\x22onclick:\x20*historyBack\x22></button>\x0a\x20\x20\x20\x20</uc-start-from>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22camera\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-camera-source></uc-camera-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22url\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-url-source></uc-url-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22external\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-external-source></uc-external-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22cloud-image-edit\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>\x0a\x20\x20</uc-modal>\x0a';var FileUploaderRegular=class extends SolutionBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-regular'];constructor(){super();const _0x292e47={...this['init$'],'isHidden':!0x1,'*solution':this['tagName']};this['init$']=_0x292e47;}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']}),this['defineAccessor']('headless',_0x59db1e=>{this['set$']({'isHidden':asBoolean2(_0x59db1e)});});}};FileUploaderRegular['template']='\x0a\x20\x20<uc-simple-btn\x20set=\x22@hidden:\x20isHidden\x22></uc-simple-btn>\x0a\x0a\x20\x20<uc-modal\x20id=\x22start-from\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-start-from>\x0a\x20\x20\x20\x20\x20\x20<uc-drop-area\x20with-icon\x20clickable></uc-drop-area>\x0a\x20\x20\x20\x20\x20\x20<uc-source-list\x20role=\x22list\x22\x20wrap></uc-source-list>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20l10n=\x22start-from-cancel\x22\x20class=\x22uc-secondary-btn\x22\x20set=\x22onclick:\x20*historyBack\x22></button>\x0a\x20\x20\x20\x20\x20\x20<uc-copyright></uc-copyright>\x0a\x20\x20\x20\x20</uc-start-from>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22upload-list\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-upload-list></uc-upload-list>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22camera\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-camera-source></uc-camera-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22url\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-url-source></uc-url-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22external\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-external-source></uc-external-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22cloud-image-edit\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>\x0a\x20\x20</uc-modal>\x0a',FileUploaderRegular['bindAttributes']({'headless':null});var UC=Object['freeze']({'__proto__':null,'ActivityBlock':ActivityBlock,'ActivityHeader':ActivityHeader,'BaseComponent':BaseComponent,'Block':Block,'BtnUi':BtnUi,'CameraSource':CameraSource,'CloudImageEditor':CloudImageEditor,'CloudImageEditorActivity':CloudImageEditorActivity,'CloudImageEditorBlock':CloudImageEditorBlock,'Config':Config,'Copyright':Copyright,'CropFrame':CropFrame,'Data':Data,'DropArea':DropArea,'EditorAspectRatioButtonControl':EditorAspectRatioButtonControl,'EditorCropButtonControl':EditorCropButtonControl,'EditorFilterControl':EditorFilterControl,'EditorFreeformButtonControl':EditorFreeformButtonControl,'EditorImageCropper':EditorImageCropper,'EditorImageFader':EditorImageFader,'EditorOperationControl':EditorOperationControl,'EditorScroller':EditorScroller,'EditorSlider':EditorSlider,'EditorToolbar':EditorToolbar,'ExternalSource':ExternalSource,'ExternalUploadSource':ExternalUploadSource,'FileItem':FileItem,'FileUploaderInline':FileUploaderInline,'FileUploaderMinimal':FileUploaderMinimal,'FileUploaderRegular':FileUploaderRegular,'FormInput':FormInput,'Icon':Icon,'Img':Img,'LineLoaderUi':LineLoaderUi,'Modal':Modal,'ModalEvents':ModalEvents,'PACKAGE_NAME':PACKAGE_NAME,'PACKAGE_VERSION':PACKAGE_VERSION,'PresenceToggle':PresenceToggle,'ProgressBar':ProgressBar,'ProgressBarCommon':ProgressBarCommon,'Select':Select,'SimpleBtn':SimpleBtn,'SliderUi':SliderUi,'SolutionBlock':SolutionBlock,'SourceBtn':SourceBtn,'SourceList':SourceList,'Spinner':Spinner,'StartFrom':StartFrom,'Thumb':Thumb,'UID':UID,'UploadCtxProvider':UploadCtxProvider,'UploadList':UploadList,'UploadSource':UploadSource,'UploaderBlock':UploaderBlock,'UrlSource':UrlSource,'defineComponents':defineComponents,'defineLocale':defineLocale,'loadFileUploaderFrom':loadFileUploaderFrom,'toKebabCase':toKebabCase});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(_0x47df8f){super(_0x47df8f),_0x47df8f['config']['define']('uploadcare.uploader.sourceList',[UploadcareSource['Local'],UploadcareSource['URL']]),defineComponents(UC),this['_defineLocale']();}['_defineLocale'](){const _0x481b37=this['editor']['config']['get']('uploadcare.locale'),_0xe9cc33=this['editor']['locale']['contentLanguage'];_0x481b37&&defineLocale(_0xe9cc33,_0x481b37);}}class UploadcareImageEditFormLoadingView extends View{constructor(_0xbb9080){super(_0xbb9080);const t=_0xbb9080['t'],_0x3cc452=this['bindTemplate'],_0x1934fb=new SpinnerView();_0x1934fb['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':[_0x1934fb,{'text':_0x3cc452['to']('imageUploadProgress',_0x58a298=>t('Loading\x20image...')+'\x20('+(_0x58a298||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(_0x5a0981){super(_0x5a0981);const t=_0x5a0981['t'];this['set']('errorType',null);const _0x442659=new ButtonView(_0x5a0981);_0x442659['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x442659['withText']=!0x0,_0x442659['class']='ck-button-action',_0x442659['on']('execute',()=>{this['fire']('retry');}),_0x442659['bind']('isVisible')['to'](this,'errorType',_0x4fe9b0=>'NotFound'!==_0x4fe9b0);const _0x35a432=new IconView();_0x35a432['content']=IconError,_0x35a432['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x359982=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':[_0x35a432,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x359982['to']('errorType',_0x3c9f93=>t('NotFound'!==_0x3c9f93?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x442659]},{'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(_0x1d23e0,_0x1c773a){super(_0x1d23e0);const _0x49444a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1c773a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x49444a['to']('imageSrc')}});}}class UploadcareImageEditFormView extends DialogFocusManagerView{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x964217,_0x53a099,_0xbe82aa){super(_0x964217),this['_items']=this['createCollection'](),this['_loadingView']=new UploadcareImageEditFormLoadingView(_0x964217),this['_errorView']=new UploadcareImageEditFormErrorView(_0x964217),this['_editingView']=new UploadcareImageEditFormEditingView(_0x964217,_0xbe82aa),this['_focusableView']=new View(_0x964217),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x53a099),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'],_0x4e2fdd=>{this['_addUploadcareImageEditorListeners'](_0x4e2fdd);});}),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'](_0x103767,_0x454b46){const _0x37ae86='uc-cloud-image-editor',_0x20bebb=_0x103767['querySelector'](_0x37ae86);if(_0x20bebb)return _0x454b46(_0x20bebb);const _0x44f3e=new MutationObserver(_0x32f5b4=>{const _0x3bea8a=_0x32f5b4['filter'](_0xe17b62=>_0xe17b62['target']===_0x103767&&_0xe17b62['addedNodes']['length']>0x0&&_0xe17b62['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x37ae86);_0x3bea8a['length']&&(_0x44f3e['disconnect'](),_0x454b46(_0x3bea8a[0x0]['addedNodes'][0x0]));});_0x44f3e['observe'](_0x103767,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4be2d6){_0x4be2d6['addEventListener']('apply',_0x46336a=>{this['fire']('apply',{'imageSrc':_0x46336a['detail']['cdnUrl']});}),_0x4be2d6['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(_0x6d652c,_0x42d8ef,_0x5a883d){super(),this['_editor']=_0x6d652c,this['_dialog']=_0x42d8ef,this['_imageElement']=_0x5a883d,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 _0x500bae=this['_imageElement'],_0x4af528=_0x500bae['getAttribute']('uploadcareImageId'),_0x5a921c=_0x500bae['getAttribute']('src');if(_0x4af528)await this['_loadImageInfo'](_0x4af528,_0x5a921c);else{if(this['_imageCache']['has'](_0x5a921c)){const _0x48cdd9=this['_imageCache']['get'](_0x5a921c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48cdd9['url'],this['imageDimension']=_0x48cdd9['dimension'],this['imageId']=_0x48cdd9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x136cf8}=this['_editor'],t=_0x136cf8['t'],_0x653935=new UploadcareImageEditFormView(_0x136cf8,this['imageStatus'],this['_attributes']);_0x653935['bind']('status')['to'](this,'imageStatus'),_0x653935['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x653935['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x653935['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x653935,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':IconUploadcareImageEdit,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x653935,'position':DialogViewPosition['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x653935['focus']();},'onHide':()=>{_0x653935['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x275d44=>!isAncestor(_0x275d44,_0x653935['element'])}});}['_loadImageInfo'](_0xc39564,_0x3f7587){return UploadUtils['getInfo'](_0xc39564,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x47e048=>{const {width:_0x4775d7,height:_0x212a63}=_0x47e048['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f7587,this['imageDimension']={'width':_0x4775d7,'height':_0x212a63},this['imageId']=_0xc39564;})['catch'](_0x1cbe8e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1cbe8e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1fe2e1,_0x2ff26f){return this['_getImageAsFile'](_0x1fe2e1)['then'](_0x1b5510=>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':_0x2ff26f['signal'],'file':_0x1b5510,'onProgress':_0x5df459=>{_0x5df459&&_0x5df459['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5df459['value']));}}))['then'](_0x7306cb=>{const {width:_0x1bfc39,height:_0x39ca57}=_0x7306cb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7306cb['cdnUrl'],this['imageDimension']={'width':_0x1bfc39,'height':_0x39ca57},this['imageId']=_0x7306cb['uuid'],this['imageUploadProgress']=null;const _0x4de90f=_0x1fe2e1['getAttribute']('src');this['_imageCache']['set'](_0x4de90f,{'id':_0x7306cb['uuid'],'url':_0x7306cb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4c5701=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c5701['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x21a3e7,_0x249d02){_0x21a3e7['on']('apply',(_0x4cc706,_0x45201a)=>{this['_replaceImage'](_0x249d02,_0x45201a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x21a3e7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x21a3e7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x54ec7,_0x117ff4,_0x283192){const _0x57ec06=this['_editor'],{width:_0x502c07,height:_0x1beb3d}=getImageDimension(_0x117ff4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5da11b,imageSources:_0x21a6cc}=getImageUrls(_0x117ff4,_0x502c07);_0x57ec06['model']['change'](_0x3b881f=>{if('$graveyard'===_0x54ec7['root']['rootName']){_0x57ec06['execute']('insertImage',{'imageType':_0x54ec7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x54ec7['getAttributes']()),'uploadcareImageId':_0x283192,'src':_0x5da11b,'sources':_0x21a6cc,'width':_0x502c07,'height':_0x1beb3d}});const _0x1e176e=_0x54ec7['getChildren']();_0x54ec7=_0x57ec06['model']['document']['selection']['getSelectedElement']();for(const _0x17fdf4 of _0x1e176e)_0x3b881f['append'](_0x3b881f['cloneElement'](_0x17fdf4),_0x54ec7);}else _0x3b881f['setSelection'](_0x54ec7,'on'),_0x57ec06['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x54ec7['getAttributes']()),'uploadcareImageId':_0x283192,'src':_0x5da11b,'sources':_0x21a6cc,'width':_0x502c07,'height':_0x1beb3d},_0x54ec7);_0x3b881f['setSelection'](_0x54ec7,'on');});}async['_getImageAsFile'](_0x3e3c81){const _0x1452a2=_0x19b45e['window'],_0x50ddea=_0x19b45e['document']['location']['href'],_0x33573f=new _0x1452a2['URL'](_0x3e3c81['getAttribute']('src'),_0x50ddea);if('data:'===_0x33573f['protocol']){const _0x5b692a=_0x33573f['href']['split'](','),_0x393ae4=_0x5b692a[0x0]['match'](/:(.*?);/)[0x1],_0x58d726=_0x393ae4['split']('/')[0x1],_0x20d1b5=_0x1452a2['atob'](_0x5b692a[_0x5b692a['length']-0x1]);let _0x13c336=_0x20d1b5['length'];const _0x442f7e=new _0x1452a2['Uint8Array'](_0x13c336);for(;_0x13c336--;)_0x442f7e[_0x13c336]=_0x20d1b5['charCodeAt'](_0x13c336);return new _0x1452a2['File']([_0x442f7e],'image.'+_0x58d726,{'type':_0x393ae4});}const _0x1255aa=_0x33573f['href']['split']('/'),_0x1e37c5=_0x1255aa[_0x1255aa['length']-0x1],_0x423177=_0x1e37c5['split']('.')[0x1];return _0x1452a2['fetch'](_0x33573f['href'])['then'](_0x2e34e4=>_0x2e34e4['clone']()['blob']())['then'](_0x13abf4=>new _0x1452a2['File']([_0x13abf4],_0x1e37c5,{'type':'image/'+_0x423177}));}}class UploadcareImageEditCommand extends Command{['imageEditController'];static get['requires'](){return[Dialog];}['_isEditable'];constructor(_0x5b2070){super(_0x5b2070),this['imageEditController']=void 0x0,this['_isEditable']=createEditabilityChecker(_0x5b2070['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x477ffa=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x477ffa);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1d1bad=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d1bad&&(_0x1d1bad['is']('element','imageBlock')||_0x1d1bad['is']('element','imageInline'))&&(this['imageEditController']=new UploadcareImageEditController(this['editor'],this['editor']['plugins']['get'](Dialog),_0x1d1bad),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class UploadcareImageReplaceCommand extends Command{['refresh'](){const _0x182081=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x182081&&(_0x182081['is']('element','imageBlock')||_0x182081['is']('element','imageInline')));}['execute'](_0x504317){const _0x5e44c2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x19b632=>{_0x19b632['setAttributes'](_0x504317,_0x5e44c2),_0x19b632['removeAttribute']('srcset',_0x5e44c2),_0x19b632['removeAttribute']('sizes',_0x5e44c2);});}}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:_0x499da8}=this;_0x499da8['commands']['add']('uploadcareImageEdit',new UploadcareImageEditCommand(_0x499da8)),_0x499da8['commands']['add']('uploadcareImageReplace',new UploadcareImageReplaceCommand(_0x499da8));}}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 _0x1d9907=this['editor'];_0x1d9907['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4ca395=>{const _0x11ef63=_0x1d9907['commands']['get']('uploadcareImageEdit'),_0x3e3ced=new ButtonView(_0x4ca395),t=_0x4ca395['t'];return _0x3e3ced['set']({'icon':IconUploadcareImageEdit,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3e3ced['bind']('isEnabled')['to'](_0x11ef63),_0x3e3ced['bind']('isOn')['to'](_0x11ef63,'isActive'),this['listenTo'](_0x3e3ced,'execute',()=>{_0x1d9907['execute']('uploadcareImageEdit'),_0x1d9907['editing']['view']['focus']();}),_0x3e3ced;}),this['_initConfig']();}['_initConfig'](){const _0x25b58f=createElement(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x25b58f),this['listenTo'](this['editor'],'destroy',()=>{_0x25b58f['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,AIChatHistory,AIChatHistoryController,AIChatHistoryUI,AIChatShortcuts,AIChatUI,AIConnector,AIEditing,AIEditorIntegration,AIQuickActionType,AIQuickActions,AIQuickActionsUI,AIRequestError,AIReviewCheck,AIReviewCheckResult,AIReviewCheckRun,AIReviewMode,AIReviewCoreController as AIReviewModeController,AIReviewCoreEditing as AIReviewModeEditing,AIReviewModeUI,AITabs,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,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,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,UserView,Users,WebSocketGateway,WideSidebar,bindAnnotationCollections,createResizeButton,dropImportantStyleSuffix,fixElementSuggestionRange,getAllMarkersDomElementsSorted,getDateTimeFormatter,getDefaultAICommands,getEmailInlineStylesTransformations,getMarkerDomElement,hashObject,isUnsupportedEmailColorFormat,isUnsupportedEmailColorValue,sanitizeEditorConfig,setupThreadKeyboardNavigation,splitSuggestionMarkerName,surroundingMarkersDetector,transformEmailFigcaptionToDiv,transformEmailFigureToTable,transformEmailFloatToAlign,transformEmailImageWidthAttributes,transformEmailMarginToAlign,trimHtml};