/*
 *             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 as _0x210666,ContextPlugin,Editor,PendingActions,Context as Context$1,ElementApiMixin}from'ckeditor5';import{uid,CKEditorError,ObservableMixin,global as _0x42cc73,isVisible,Rect,Collection,FocusTracker,KeystrokeHandler,first,toArray as toArray$1,EmitterMixin,logWarning,logError,scrollViewportToShowTarget,scrollAncestorsToShowTarget,ResizeObserver as _0x42ae1a,_isMotionReduced,getConstrainedViewportRect,DomEmitterMixin,diff as _0x3acf5e,priorities,getEnvKeystrokeText,toUnit,keyCodes,diffToChanges,collectStylesheets,createElement,env,version as _0x53d302,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 _0x216a51,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 _0x4dad5f,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 _0x51b07d,IconDocumentOutline,IconPaperClip,IconBrowseFiles,IconDropdownArrow,IconAIChat as IconAIChat$1,IconAIReview,IconAITranslate,IconAIAskAI,IconThumbUp,IconThumbDown,IconCopy as _0x511855,IconShowChangesOff as _0x2a6530,IconShowChangesOn as _0x200336,IconAIQuickActions,IconAIChatCommands,IconAIImproveWriting,IconAIContinueWriting,IconAIGrammarCheck,IconAIAdjustLength,IconAIChangeTone,IconAIOther,IconRefresh,IconNextArrow}from'ckeditor5';import{EmitterMixin as EmitterMixin$1,ObservableMixin as _0x55bb62,priorities as priorities$1,global as _0x27cab6,Collection as Collection$1}from'ckeditor5';import{FileRepository}from'ckeditor5';const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';function normalizeCommandsConfig(_0x65a388,_0x933a40){const _0x17784f=(0x0,_0x933a40['t'])('Other');return _0x65a388['length']?'groupId'in _0x65a388[0x0]?_0x65a388:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0x17784f,'order':0x1/0x0,'commands':_0x65a388}]:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0x17784f,'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:_0x4444ce}=this,_0x2810b8=['ck-fake-ai-selection'];_0x4444ce['config']['get']('ai.assistant.useTheme')&&_0x2810b8['push']('ck-ai-assistant-ui_theme'),_0x4444ce['conversion']['for']('editingDowncast')['markerToHighlight']({'model':VISUAL_SELECTION_MARKER_NAME,'view':{'classes':_0x2810b8,'priority':0xc}}),_0x4444ce['conversion']['for']('editingDowncast')['markerToElement']({'model':VISUAL_SELECTION_MARKER_NAME,'view':(_0x410abd,{writer:_0x4fe449})=>{if(!_0x410abd['markerRange']['isCollapsed'])return null;const _0x5180d6=_0x4fe449['createUIElement']('span');return _0x4fe449['addClass'](['ck-fake-ai-selection','ck-fake-ai-selection_collapsed'],_0x5180d6),_0x5180d6;}});}['afterInit'](){checkLicense$j(this);}['showFakeVisualSelection'](){const _0x6cc019=this['editor']['model'];_0x6cc019['change'](_0x308cc0=>{const _0x48069e=_0x6cc019['document']['selection']['getRanges']();let _0x47ed7e=0x0;for(const _0x3dd6ff of _0x48069e){const _0x455cc6=VISUAL_SELECTION_MARKER_NAME+':'+_0x47ed7e;if(_0x6cc019['markers']['has'](_0x455cc6))_0x308cc0['updateMarker'](_0x455cc6,{'range':_0x3dd6ff});else{if(_0x3dd6ff['start']['isAtEnd']){const _0x5075b3=_0x3dd6ff['start']['getLastMatchingPosition'](({item:_0x3ca794})=>!_0x6cc019['schema']['isContent'](_0x3ca794),{'boundaries':_0x3dd6ff});_0x308cc0['addMarker'](_0x455cc6,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x308cc0['createRange'](_0x5075b3,_0x3dd6ff['end'])});}else _0x308cc0['addMarker'](_0x455cc6,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3dd6ff});}_0x47ed7e++;}});}['hideFakeVisualSelection'](){const _0x1c6863=this['editor']['model'],_0x14c6bd=Array['from'](this['editor']['model']['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME));_0x14c6bd['length']&&_0x1c6863['change'](_0x18d8b5=>{_0x14c6bd['forEach'](_0x46295b=>{_0x18d8b5['removeMarker'](_0x46295b);});});}['insertContent'](_0x1317aa,_0x5afc9d){const _0x244a65=this['_getAISelection'](),_0x1fcf5b=_0x5afc9d||_0x244a65['getFirstRange']();this['editor']['model']['canEditAt'](_0x1fcf5b)&&this['editor']['model']['change'](_0x32d8ed=>{this['hideFakeVisualSelection'](),_0x5afc9d||this['_resetContentOfSelectedTableCells'](_0x32d8ed,_0x244a65),this['_pasteHTMLUsingClipboard']({'insertAt':_0x1fcf5b,'writer':_0x32d8ed,'html':_0x1317aa});});}['insertContentBelow'](_0xcb6430){const {model:_0x40204c}=this['editor'],_0x403ece=this['_getAISelection']();_0x40204c['change'](()=>{const _0x1db1f1=this['_prepareTableInsertBelowPosition'](_0xcb6430,_0x403ece)||this['_getDefaultInsertBelowPosition'](_0x403ece);this['insertContent'](_0xcb6430,_0x1db1f1);});}['_getAISelection'](){const _0x532635=this['editor']['model'],_0x4ded15=Array['from'](_0x532635['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME))['map'](_0x46e4b8=>_0x46e4b8['getRange']());return _0x532635['createSelection'](_0x4ded15);}['_pasteHTMLUsingClipboard']({writer:_0x14ac55,html:_0x20dce3,insertAt:_0x92a9db}){const {view:_0x35a92b}=this['editor']['editing'],_0x400430=this['editor']['plugins']['get'](ClipboardPipeline),_0xa52e19=new DomDataTransfer$1();_0xa52e19['setData']('text/html',_0x20dce3);const _0x348bd5=new ClipboardEvent('paste',{'clipboardData':_0xa52e19}),_0x540c78=new ViewDocumentDomEventData(_0x35a92b,_0x348bd5,{'dataTransfer':new ViewDataTransfer(_0xa52e19)});_0x14ac55['setSelection'](_0x92a9db);const _0x13dbe6=(_0x125dba,_0x1da356)=>{_0x1da356['resultRange']&&_0x14ac55['setSelection'](_0x1da356['resultRange']);};_0x400430['once']('contentInsertion',_0x13dbe6,{'priority':'lowest'}),_0x35a92b['document']['fire']('paste',_0x540c78),_0x400430['off']('contentInsertion',_0x13dbe6);}['_getDefaultInsertBelowPosition'](_0x2f854c){const {model:_0x43fd6b}=this['editor'],_0x138b69=Array['from'](_0x2f854c['getSelectedBlocks']());return _0x138b69['length']?_0x43fd6b['createPositionAfter'](_0x138b69['pop']()):_0x2f854c['getLastPosition']();}['_prepareTableInsertBelowPosition'](_0x281f9a,_0x132d0d){const {model:_0x2133d3,plugins:_0x382f3a}=this['editor'];if(_0x382f3a['has']('TableUtils')){const _0x5ac30f=_0x382f3a['get']('TableUtils')['getSelectedTableCells'](_0x132d0d);if(_0x5ac30f['length']){const _0x5a7a6f=this['_getTableRowCountFromContent'](_0x281f9a),_0x2e4b32=this['_createEmptyTableRows'](_0x5ac30f,_0x5a7a6f);return _0x2133d3['createPositionAt'](_0x2e4b32,0x0);}}return null;}['_getTableRowCountFromContent'](_0x4c088c){const _0x19565c=this['editor']['plugins']['get']('TableUtils'),_0x5ae908=this['editor']['data']['parse'](_0x4c088c),_0x75a7d3=Array['from'](_0x5ae908['getChildren']())['filter'](_0x191fd0=>_0x191fd0['is']('element','table'));let _0x15a19d=0x0;return _0x75a7d3['forEach'](_0x185b2e=>{_0x15a19d+=_0x19565c['getRows'](_0x185b2e);}),_0x15a19d;}['_createEmptyTableRows'](_0x3a48b0,_0x35f713){const _0x54266e=this['editor']['plugins']['get']('TableUtils'),_0x408d20=_0x54266e['getRowIndexes'](_0x3a48b0),_0xd43912=_0x54266e['getColumnIndexes'](_0x3a48b0),_0x48878e=_0x408d20['last']+0x1,_0x1df0d1=_0xd43912['first'],_0xe31b80=_0x3a48b0[0x0]['findAncestor']('table');for(let _0x5402f0=0x0;_0x5402f0<_0x35f713;_0x5402f0++)_0x54266e['insertRows'](_0xe31b80,{'at':_0x48878e});return _0xe31b80['getChild'](_0x48878e)['getChild'](_0x1df0d1);}['_resetContentOfSelectedTableCells'](_0x1e8c5a,_0x493931){const {plugins:_0x1ccd71}=this['editor'],{model:_0x514cb9}=_0x1e8c5a;if(!_0x1ccd71['has']('TableUtils'))return;_0x1ccd71['get']('TableUtils')['getSelectedTableCells'](_0x493931)['length']&&_0x514cb9['deleteContent'](_0x493931);}}async function checkLicense$j(_0x1cb29f){const _0xdcefbd=_0x13ffa2([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]),_0x3fc289=window[_0x13ffa2([0x44,0x61,0x74,0x65])][_0x13ffa2([0x6e,0x6f,0x77])](),_0x1325ef=_0x1cb29f[_0x13ffa2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1eb532=new window[(_0x13ffa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2621a2=>{_0x1325ef[_0x13ffa2([0x6f,0x6e,0x63,0x65])](_0x13ffa2([0x72,0x65,0x61,0x64,0x79]),_0x2621a2);}),_0x2bde43={[_0x13ffa2([0x6b,0x74,0x79])]:_0x13ffa2([0x45,0x43]),[_0x13ffa2([0x75,0x73,0x65])]:_0x13ffa2([0x73,0x69,0x67]),[_0x13ffa2([0x63,0x72,0x76])]:_0x13ffa2([0x50,0x2d,0x32,0x35,0x36]),[_0x13ffa2([0x78])]:_0x13ffa2([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]),[_0x13ffa2([0x79])]:_0x13ffa2([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]),[_0x13ffa2([0x61,0x6c,0x67])]:_0x13ffa2([0x45,0x53,0x32,0x35,0x36])},_0x558db2=_0x1325ef[_0x13ffa2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13ffa2([0x67,0x65,0x74])](_0x13ffa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x2f8f58=await(async function(){let _0x4ff741,_0x958ad8=null,_0x3ce81f=null;try{if(_0x558db2==_0x13ffa2([0x47,0x50,0x4c]))return _0x13ffa2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ff741=(function(){const _0x2248f6=_0x558db2[_0x13ffa2([0x73,0x70,0x6c,0x69,0x74])](_0x13ffa2([0x2e]));if(0x3!=_0x2248f6[_0x13ffa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x20e093=_0x2248f6[0x1];return _0x158df0(_0x20e093);function _0x158df0(_0x59d98a){const _0x1915f=_0x41d60e(_0x59d98a);return _0x1915f&&_0x21f8ab()?_0x1915f:null;function _0x21f8ab(){const _0x3ed851=_0x1915f[_0x13ffa2([0x6a,0x74,0x69])],_0x31347e=window[_0x13ffa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ed851[_0x13ffa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ed851[_0x13ffa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x434aba={..._0x1915f,[_0x13ffa2([0x6a,0x74,0x69])]:_0x3ed851[_0x13ffa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ed851[_0x13ffa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x434aba[_0x13ffa2([0x76,0x63])],_0x10e213(_0x434aba)==_0x31347e;}}}()),!_0x4ff741)return _0x13ffa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4ff741[_0x13ffa2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ce81f=function(_0xd8e1bc,_0x275107){return new window[(_0x13ffa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bd867=>{if(_0x444714())return _0x3bd867(_0x13ffa2([0x56,0x61,0x6c,0x69,0x64]));_0x5a1cf7(),_0x1325ef[_0x13ffa2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13ffa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x65f0d7=!0x1;const _0x5d8926=uid();function _0x2f1b2e(_0x4fe84a){return!!_0x4fe84a&&(typeof _0x4fe84a===_0x13ffa2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4fe84a===_0x13ffa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4fe84a[_0x13ffa2([0x74,0x68,0x65,0x6e])]===_0x13ffa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4fe84a[_0x13ffa2([0x63,0x61,0x74,0x63,0x68])]===_0x13ffa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x36039c(_0x13757d){_0xdbca90(_0x13757d)[_0x13ffa2([0x74,0x68,0x65,0x6e])](_0x4d3d62=>{if(!_0x4d3d62||_0x4d3d62[_0x13ffa2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13ffa2([0x6f,0x6b]))return _0x13ffa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ebcba(_0x10e213(_0x5d8926+_0x275107))!=_0x4d3d62[_0x13ffa2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13ffa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13ffa2([0x56,0x61,0x6c,0x69,0x64]);})[_0x13ffa2([0x74,0x68,0x65,0x6e])](_0x5913fc=>(_0x12b5e3(),_0x5913fc),()=>{const _0x45c2d0=_0x6bc309();return null==_0x45c2d0?(_0x12b5e3(),_0x13ffa2([0x56,0x61,0x6c,0x69,0x64])):_0x13ffa2(_0x3fc289-_0x45c2d0>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13ffa2([0x74,0x68,0x65,0x6e])](_0x3bd867)[_0x13ffa2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3bd867(_0x13ffa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ce51c=0x36ee80;function _0x12b5e3(){const _0x2581c8=_0x13ffa2([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ebcba(_0x10e213(_0xd8e1bc)),_0x4f8326=_0x724797(_0x1ebcba(window[_0x13ffa2([0x4d,0x61,0x74,0x68])][_0x13ffa2([0x63,0x65,0x69,0x6c])](_0x3fc289/_0x5ce51c)));window[_0x13ffa2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13ffa2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2581c8,_0x4f8326);}function _0x6bc309(){const _0x5ebffd=_0x13ffa2([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ebcba(_0x10e213(_0xd8e1bc)),_0x48823a=window[_0x13ffa2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13ffa2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ebffd);return _0x48823a?window[_0x13ffa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x724797(_0x48823a),0x10)*_0x5ce51c:null;}function _0xdbca90(_0x3992c9){return new window[(_0x13ffa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b1691,_0x5a3e42)=>{_0x3992c9[_0x13ffa2([0x74,0x68,0x65,0x6e])](_0x2b1691,_0x5a3e42),window[_0x13ffa2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a3e42,0x1d4c0);});}}_0x1325ef[_0x13ffa2([0x6f,0x6e])](_0x13ffa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54bf91,_0x5a1b64)=>{if(_0x5a1b64[0x0]!=_0xd8e1bc)return _0x3bd867(_0x13ffa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a1b64[0x1]={..._0x5a1b64[0x1],[_0x13ffa2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d8926};},{[_0x13ffa2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13ffa2([0x68,0x69,0x67,0x68])}),_0x1325ef[_0x13ffa2([0x6f,0x6e])](_0x13ffa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4658b6=>{_0x2f1b2e(_0x4658b6[_0x13ffa2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x65f0d7=!0x0,_0x36039c(_0x4658b6[_0x13ffa2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13ffa2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13ffa2([0x6c,0x6f,0x77])}),_0x1eb532[_0x13ffa2([0x74,0x68,0x65,0x6e])](()=>{_0x65f0d7||_0x3bd867(_0x13ffa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x444714(){return _0x1325ef[_0x13ffa2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13ffa2([0x76,0x69,0x65,0x77])][_0x13ffa2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13ffa2([0x61,0x75,0x74,0x6f]);}function _0x5a1cf7(){_0x1325ef[_0x13ffa2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13ffa2([0x76,0x69,0x65,0x77])][_0x13ffa2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13ffa2([0x61,0x75,0x74,0x6f]);}}(_0x4ff741[_0x13ffa2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ff741[_0x13ffa2([0x6a,0x74,0x69])]));const _0x5781db=await(async function(){let _0x15316c=!0x0;try{const _0x26d4b1=_0x558db2[_0x13ffa2([0x73,0x70,0x6c,0x69,0x74])](_0x13ffa2([0x2e])),[_0x50020b,_0x243bd9,_0xce1571]=_0x26d4b1;return _0x49419e(_0x50020b),await _0x51239b(_0x50020b,_0x243bd9,_0xce1571),_0x15316c;}catch{return!0x1;}function _0x49419e(_0x2ef7ce){const _0x614214=_0x41d60e(_0x2ef7ce);_0x614214&&_0x614214[_0x13ffa2([0x61,0x6c,0x67])]==_0x13ffa2([0x45,0x53,0x32,0x35,0x36])||(_0x15316c=!0x1);}async function _0x51239b(_0x14a669,_0x37032f,_0x113c8c){const _0x8d5b75=window[_0x13ffa2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13ffa2([0x66,0x72,0x6f,0x6d])](_0x5864b9(_0x113c8c),_0x39cf3f=>_0x39cf3f[_0x13ffa2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49cf1a=new window[(_0x13ffa2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13ffa2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14a669+_0x13ffa2([0x2e])+_0x37032f),_0x3716f6=window[_0x13ffa2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13ffa2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3716f6)return;const _0x102319=await _0x3716f6[_0x13ffa2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13ffa2([0x6a,0x77,0x6b]),_0x2bde43,{[_0x13ffa2([0x6e,0x61,0x6d,0x65])]:_0x13ffa2([0x45,0x43,0x44,0x53,0x41]),[_0x13ffa2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13ffa2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13ffa2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3716f6[_0x13ffa2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13ffa2([0x6e,0x61,0x6d,0x65])]:_0x13ffa2([0x45,0x43,0x44,0x53,0x41]),[_0x13ffa2([0x68,0x61,0x73,0x68])]:{[_0x13ffa2([0x6e,0x61,0x6d,0x65])]:_0x13ffa2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x102319,_0x8d5b75,_0x49cf1a)||(_0x15316c=!0x1);}}());return _0x5781db?(function(){const _0x4836cc=_0x4ff741[_0x13ffa2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4836cc)return!0x1;if(_0x4836cc[_0x13ffa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13ffa2([0x2a])))return!0x0;if(_0x4836cc[_0x13ffa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13ffa2([0x41,0x49])))return!0x0;return!0x1;}())?(function(){const _0x69e6b9=[_0x13ffa2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13ffa2([0x74,0x72,0x69,0x61,0x6c])][_0x13ffa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ff741[_0x13ffa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fc289/0x3e8:0x69b0b080;return _0x4ff741[_0x13ffa2([0x65,0x78,0x70])]<_0x69e6b9;}())?_0x13ffa2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x23f9e1=_0x4ff741[_0x13ffa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23f9e1||0x0==_0x23f9e1[_0x13ffa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1490e8}=new URL(window[_0x13ffa2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23f9e1[_0x13ffa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1490e8))return!0x0;const _0x160c5e=_0x1490e8[_0x13ffa2([0x73,0x70,0x6c,0x69,0x74])](_0x13ffa2([0x2e]));return _0x23f9e1[_0x13ffa2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b1043=>_0x5b1043[_0x13ffa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13ffa2([0x2a])))[_0x13ffa2([0x6d,0x61,0x70])](_0x2b9fb6=>_0x2b9fb6[_0x13ffa2([0x73,0x70,0x6c,0x69,0x74])](_0x13ffa2([0x2e])))[_0x13ffa2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2655fe=>_0x2655fe[_0x13ffa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x160c5e[_0x13ffa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13ffa2([0x6d,0x61,0x70])](_0x299ab4=>Array(_0x160c5e[_0x13ffa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x299ab4[_0x13ffa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13ffa2([0x66,0x69,0x6c,0x6c])](_0x299ab4[0x0]===_0x13ffa2([0x2a])?_0x13ffa2([0x2a]):'')[_0x13ffa2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x299ab4))[_0x13ffa2([0x73,0x6f,0x6d,0x65])](_0x378296=>_0x160c5e[_0x13ffa2([0x65,0x76,0x65,0x72,0x79])]((_0x5979ac,_0xc776cf)=>_0x378296[_0xc776cf]===_0x5979ac||_0x378296[_0xc776cf]===_0x13ffa2([0x2a])));}())?(_0x4ff741[_0x13ffa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13ffa2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x958ad8=function(_0x5b005f){const _0x150f65=new window[(_0x13ffa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x496f15=>setTimeout(_0x496f15,0x93ecc)),_0x2eb0bf=_0x1eb532[_0x13ffa2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13ffa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42e9c5=>{let _0x571b82=0x0;_0x1325ef[_0x13ffa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x13ffa2([0x6f,0x6e])](_0x13ffa2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xc14799,_0x19b7f8)=>{_0x19b7f8[0x0][_0x13ffa2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x571b82++,0x5e8==_0x571b82&&(_0x42e9c5(),_0xc14799[_0x13ffa2([0x6f,0x66,0x66])]());});})),_0x3744ed=[_0x150f65,_0x2eb0bf];return window[_0x13ffa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13ffa2([0x72,0x61,0x63,0x65])](_0x3744ed)[_0x13ffa2([0x74,0x68,0x65,0x6e])](()=>_0x5b005f);}(_0x13ffa2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x958ad8&&_0x3ce81f)return new window[(_0x13ffa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bcf3a,_0x1882d2)=>{_0x958ad8[_0x13ffa2([0x74,0x68,0x65,0x6e])](_0x4bcf3a,_0x1882d2),_0x3ce81f[_0x13ffa2([0x74,0x68,0x65,0x6e])](_0x8c65d2=>{_0x8c65d2!=_0x13ffa2([0x56,0x61,0x6c,0x69,0x64])&&_0x4bcf3a(_0x8c65d2);},_0x1882d2);});return _0x958ad8||_0x3ce81f||_0x13ffa2([0x56,0x61,0x6c,0x69,0x64]);}())):_0x13ffa2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13ffa2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13ffa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x13ffa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x41d60e(_0x4e54b9){return _0x4e54b9[_0x13ffa2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13ffa2([0x65,0x79]))?JSON[_0x13ffa2([0x70,0x61,0x72,0x73,0x65])](_0x5864b9(_0x4e54b9)):null;}function _0x5864b9(_0x4919e4){return window[_0x13ffa2([0x61,0x74,0x6f,0x62])](_0x4919e4[_0x13ffa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13ffa2([0x2b]))[_0x13ffa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13ffa2([0x2f])));}function _0x10e213(_0x21a63d){let _0x32aa3f=0x1505;function _0x3ca34f(_0x1c9ebe){for(let _0x2d9e07=0x0;_0x2d9e07<_0x1c9ebe[_0x13ffa2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d9e07++){const _0xe8d727=_0x1c9ebe[_0x13ffa2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d9e07);_0x32aa3f=(_0x32aa3f<<0x5)+_0x32aa3f+_0xe8d727,_0x32aa3f&=_0x32aa3f;}}return function _0x5dcdd6(_0x39a050){Array[_0x13ffa2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39a050)?_0x39a050[_0x13ffa2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5dcdd6):_0x39a050&&typeof _0x39a050==_0x13ffa2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13ffa2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39a050)[_0x13ffa2([0x73,0x6f,0x72,0x74])]()[_0x13ffa2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x213eea,_0x32d67c])=>{_0x3ca34f(_0x213eea),_0x5dcdd6(_0x32d67c);}):_0x3ca34f(window[_0x13ffa2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39a050));}(_0x21a63d),_0x32aa3f>>>0x0;}function _0x1ebcba(_0x3b0216){return _0x3b0216[_0x13ffa2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13ffa2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13ffa2([0x30]));}function _0x724797(_0x2e366d){return _0x2e366d[_0x13ffa2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13ffa2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13ffa2([0x6a,0x6f,0x69,0x6e])]('');}function _0x297ae1(){}function _0x13ffa2(_0x493e1b){return _0x493e1b['map'](_0x6129e=>String['fromCharCode'](_0x6129e))['join']('');}!function(_0x1a5d38){const _0xd081bc=(function(){const _0x240c63=window[_0x13ffa2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13ffa2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13ffa2([0x6e,0x6f,0x77])]())[_0x13ffa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13ffa2([0x2e]),'');let _0x156a15=_0x13ffa2([0x6e]);for(let _0x378e5f=0x0;_0x378e5f<_0x240c63[_0x13ffa2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x378e5f+=0x2){let _0x56f34e=window[_0x13ffa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x240c63[_0x13ffa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x378e5f,_0x378e5f+0x2));_0x56f34e>=_0xdcefbd[_0x13ffa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56f34e-=_0xdcefbd[_0x13ffa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x156a15+=_0xdcefbd[_0x56f34e];}return _0x156a15;}());_0x1325ef[_0xd081bc]=_0x13ffa2([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a5d38,_0x1a5d38!=_0x13ffa2([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x1eb532,_0x1325ef[_0x13ffa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x13ffa2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x297ae1,_0x1325ef[_0x13ffa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x13ffa2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x297ae1,_0x1325ef[_0x13ffa2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13ffa2([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x2f8f58);}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(_0x4c98a8){super(_0x4c98a8),this['name']='AIRequestError';}}function getTranslation$j(_0x5423bd,_0x1f70eb,_0x121deb){const t=_0x5423bd['t'];switch(_0x1f70eb){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',_0x121deb);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x121deb);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'},_0x121deb);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_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x1f70eb;}}class ShowAIAssistantCommand extends _0x210666{['_commandDefinitions'];constructor(_0x36258d,_0x517343){super(_0x36258d),this['_commandDefinitions']=_0x517343,this['set']('enabledCommandsIds',[]),this['on']('change:_hasContext',(_0x52d14d,_0x39dfc3,_0x5bc45c)=>{this['isEnabled']&&(this['enabledCommandsIds']=_getEnabledCommands(this['_commandDefinitions'],_0x5bc45c));}),this['set']('_hasContext',!0x1),this['on']('change:isEnabled',(_0x1cb10c,_0x35ee85,_0x20c5e9)=>{this['enabledCommandsIds']=_0x20c5e9?_getEnabledCommands(this['_commandDefinitions'],this['_hasContext']):[];});}['refresh'](){const _0x3ad7f5=this['editor']['model'];this['_hasContext']=_isContextAvailable(_0x3ad7f5);const _0x15d764=_0x3ad7f5['document']['selection'],_0x4572ad=this['editor']['config']['get']('ai.assistant.disabledElements');for(const _0xe51ed5 of _0x15d764['getRanges']())for(const _0x70d74e of _0xe51ed5['getItems']())if(_0x70d74e['is']('element')&&_0x4572ad['includes'](_0x70d74e['name']))return void(this['isEnabled']=!0x1);this['isEnabled']=!0x0;}['execute'](_0x545edf='',_0x30d948='',_0x4f40a5='custom'){this['editor']['plugins']['get'](AIAssistantUI)['showUI'](_0x545edf,_0x30d948,_0x4f40a5);}}function _isContextAvailable(_0x20d985){const _0xc259fe=_0x20d985['document']['selection'];return _0xc259fe['isCollapsed']?0x0!==[..._0xc259fe['getSelectedBlocks']()]['length']&&![..._0xc259fe['getSelectedBlocks']()][0x0]['isEmpty']:!!_0x20d985['hasContent'](_0xc259fe['getFirstRange']());}function _getEnabledCommands(_0x503393,_0x5aa204){const _0xd17403=new Set();for(const _0xfab539 of _0x503393['values']())(_0x5aa204||!0x1===_0xfab539['requiresContent'])&&_0xd17403['add'](_0xfab539['id']);return Array['from'](_0xd17403);}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(_0x5824bd,_0xd26d0e,_0x5d4335){super(),this['editor']=_0x5824bd,this['textAdapter']=_0xd26d0e,this['_sanitizationContainer']=document['createElement']('div'),this['_domParser']=new DOMParser(),this['_xmlSerializer']=new XMLSerializer(),this['view']=_0x5d4335,this['set']({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on']('set:currentContext',(_0x2af031,_0x46453c,_0x239289)=>{this['view']['value']=this['_sanitizeHTML'](_0x239289);}),this['listenTo'](this['view'],'submitPrompt',(_0x4eb9b3,_0xd89433)=>{const _0xa05c43=this['currentContext']||this['initialContext'];this['_handleQuery'](_0xd89433,_0xa05c43,'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:_0x559dcf,query:_0x4586c4,htmlContent:_0x169c75,label:_0x27bda3,mainActionLabel:_0x57d580}){this['view']['prompt']=_0x27bda3,this['view']['mainAction']=_0x57d580,this['initialContext']=_0x169c75,_0x4586c4&&(this['view']['isRendered']?this['_handleQuery'](_0x4586c4,_0x169c75,_0x559dcf,_0x27bda3):this['view']['once']('render',()=>{this['_handleQuery'](_0x4586c4,_0x169c75,_0x559dcf,_0x27bda3);}));}['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'](_0x4f717e,_0x123f30,_0x2e7020,_0xf01940){return this['isProcessing']=!0x0,this['view']['startProcessing'](),this['previousContext']=_0x123f30,this['previousQuery']=_0x4f717e,this['previousLabel']=_0xf01940||_0x4f717e,this['previousActionId']=_0x2e7020,new Promise(_0x33e24a=>{this['textAdapter']['makeRequest']({'query':_0x4f717e,'context':_0x123f30,'onData':_0x56a742=>{this['currentResponse']=_0x56a742,this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse']);},'actionId':_0x2e7020})['then'](()=>{!this['currentContext']&&this['currentResponse']&&(this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse'],!0x0));})['catch'](_0x5378a7=>{_0x5378a7 instanceof AIRequestError?this['view']['handleError'](_0x5378a7['message']):this['view']['handleError'](),_0x33e24a();})['finally'](()=>{this['stopProcessing'](),_0x33e24a();});});}['_parseAndNormalizeContent'](_0x527c05,_0x2c2b4e=!0x1){const _0x1cffda=ALL_UNTIL_FIRST_HTML_REGEX['exec'](_0x527c05);_0x527c05=_0x1cffda?_0x527c05['substring'](_0x1cffda[0x1]['length']):_0x527c05['length']<MIN_RESPONSE_LENGTH_TO_FIRST_HTML&&!_0x2c2b4e?'':this['_stripMarkdownSyntax'](_0x527c05);const _0x2c2a18=this['_domParser']['parseFromString'](_0x527c05,'text/html');if(_0x1cffda){const _0x3df4f8=Array['from'](_0x2c2a18['body']['childNodes']);_0x3df4f8['reverse']();for(const _0x171528 of _0x3df4f8){if(_0x171528['nodeType']==Node['ELEMENT_NODE'])break;_0x171528['remove']();}}const _0x5646b1=this['editor']['data']['processor']['toView'](this['_xmlSerializer']['serializeToString'](_0x2c2a18['body']));this['_isH1TagSupportEnabled']()||this['_normalizeResponseHeadings'](_0x5646b1);const _0x589d3a=this['editor']['config']['get']('ai.assistant.preserveComments'),_0x3f57c5=this['editor']['data']['toModel'](_0x5646b1);return _0x589d3a||_0x3f57c5['markers']['clear'](),this['editor']['data']['stringify'](_0x3f57c5);}['_normalizeResponseHeadings'](_0x286cbb){const _0x27aa66=new ViewUpcastWriter(this['editor']['editing']['view']['document']),_0xe54aca=new Matcher({'name':/^h[1-5]$/}),_0x5891c4=[];let _0x1f0c9e=!0x1;for(const _0x54954f of _0x286cbb)_0x54954f['is']('element')&&_0xe54aca['match'](_0x54954f)&&(_0x5891c4['push'](_0x54954f),'h1'==_0x54954f['name']&&(_0x1f0c9e=!0x0));if(_0x1f0c9e){for(const _0x4b4251 of _0x5891c4)_0x27aa66['rename']('h'+(parseInt(_0x4b4251['name'][0x1])+0x1),_0x4b4251);}}['_isH1TagSupportEnabled'](){const {data:_0x29bbd2,editing:_0x259463}=this['editor'],_0x1f2ed5=_0x29bbd2['htmlProcessor']['toView']('<h1></h1>'),_0x160495=_0x29bbd2['toView'](_0x29bbd2['toModel'](_0x1f2ed5));return!!_0x259463['view']['domConverter']['viewToDom'](_0x160495)['querySelector']('h1');}['_sanitizeHTML'](_0x4baa08){return this['editor']['editing']['view']['domConverter']['setContentOf'](this['_sanitizationContainer'],_0x4baa08),this['_sanitizationContainer']['innerHTML'];}['_stripMarkdownSyntax'](_0x286a6f){const _0x104637=_0x286a6f['trim']();return _0x104637['startsWith']('```html')?_0x104637['endsWith']('```')?_0x104637['substring'](0x7,_0x104637['length']-0x3):_0x104637['substring'](0x7):_0x286a6f;}}const AIFormToolbarViewMainActionLabel={'REPLACE':'replace','INSERT':'insert'};class AIFormToolbarView extends ToolbarView{constructor(_0x1925d2){super(_0x1925d2),this['set']('isVisible',!0x1),this['set']('mainAction',AIFormToolbarViewMainActionLabel['REPLACE']),this['replaceButton']=this['_createButton']('','ck-button-action'),this['replaceButton']['bind']('label')['to'](this,'mainAction',_0x4ce9f4=>getTranslation$j(_0x1925d2,'AI_'+_0x4ce9f4['toUpperCase']()+'_CONTENT')),this['insertButton']=this['_createButton'](getTranslation$j(_0x1925d2,'Insert\x20below')),this['tryAgainButton']=this['_createButton'](getTranslation$j(_0x1925d2,'Try\x20again')),this['stopButton']=this['_createButton'](getTranslation$j(_0x1925d2,'Stop'));const _0xd8f032=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-form__toolbar',_0xd8f032['if']('isVisible','ck-hidden',_0x3201a3=>!_0x3201a3)]}}),this['items']['addMany']([this['replaceButton'],this['insertButton'],this['tryAgainButton'],this['stopButton']]);}['_createButton'](_0x944258,_0xde6ec9){const _0x1b978d=new ButtonView(this['locale']);return _0x1b978d['set']({'label':_0x944258,'class':_0xde6ec9||'','isVisible':!0x0,'withText':!0x0}),_0x1b978d;}}class AIFormContentArea extends View{['contentFieldView'];['copyButtonView'];constructor(_0x44a8f7,_0x44e4db=''){super(_0x44a8f7),this['set']({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x5a3aeb=this['bindTemplate'];this['contentFieldView']=new ContentFieldView(_0x44a8f7,_0x44e4db),this['copyButtonView']=this['_createCopyButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area-wrapper',_0x5a3aeb['if']('isVisible','ck-hidden',_0x3bba80=>!_0x3bba80)],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area',_0x5a3aeb['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 _0x14e30e=!0x1;this['on']('change:value',(_0x334139,_0x23f335,_0x112445)=>{const _0x279089=!this['contentFieldView']['element']['querySelector']('.ck-ai-form__loader');this['contentFieldView']['setContent'](_0x112445),this['isProcessing']&&_0x279089&&!_0x14e30e&&this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':'smooth'});}),this['on']('change:isProcessing',(_0x526b7f,_0x252379,_0x4e7c5d)=>{_0x14e30e=!0x1,_0x4e7c5d?(this['value']=null,this['contentFieldView']['appendLoader']()):this['value']||this['contentFieldView']['setContent']('');}),this['listenTo'](this['element'],'wheel',()=>{_0x14e30e=!0x0;}),this['listenTo'](this['element'],'mousedown',()=>{_0x14e30e=!0x0;});}['focus'](){this['element']['focus']();}['_createCopyButton'](){const _0x436c5d=this['locale'],_0x22ed94=new ButtonView(this['locale']),_0x58b518='ck-ai-form__copy-button';return _0x22ed94['set']({'label':getTranslation$j(_0x436c5d,'Copy'),'icon':IconCopy,'class':_0x58b518,'tooltip':!0x0}),_0x22ed94['bind']('isVisible')['to'](this,'value',_0x4984ea=>!!_0x4984ea),_0x22ed94['bind']('isEnabled')['to'](this,'isProcessing',_0x4a52b7=>!_0x4a52b7),_0x22ed94['on']('execute',()=>{this['_copyHTMLToClipboard'](this['contentFieldView']['element']),_0x22ed94['icon']=IconCheck,_0x22ed94['class']=_0x58b518+'\x20ck-ai-form__copy-button--copied',this['focus'](),setTimeout(()=>{_0x22ed94['icon']=IconCopy,_0x22ed94['class']=_0x58b518;},0x3e8);}),_0x22ed94;}['_copyHTMLToClipboard'](_0x44cbdb){const {window:_0x470f22,document:_0xc539c7}=_0x42cc73;if(_0x470f22['ClipboardItem']){const {Blob:_0x46987c,ClipboardItem:_0x4971e3}=_0x470f22,_0x4facde=[new _0x4971e3({'text/html':new _0x46987c([_0x44cbdb['innerHTML']],{'type':'text/html'}),'text/plain':new _0x46987c([_0x44cbdb['textContent']||''],{'type':'text/plain'})})];navigator['clipboard']['write'](_0x4facde);}else{const _0x53e4d1=_0xc539c7['createElement']('div');_0x53e4d1['style']['position']='absolute',_0x53e4d1['style']['left']='-9999px',_0x53e4d1['innerHTML']='<span>[</span>'+_0x44cbdb['innerHTML']+'<span>]</span>',_0xc539c7['body']['appendChild'](_0x53e4d1);const _0x337fc8=_0xc539c7['createRange']();_0x337fc8['setStartAfter'](_0x53e4d1['firstElementChild']),_0x337fc8['setEndBefore'](_0x53e4d1['lastElementChild']);const _0x45ad87=_0x470f22['getSelection']();_0x45ad87['removeAllRanges'](),_0x45ad87['addRange'](_0x337fc8),_0xc539c7['execCommand']('copy'),_0x53e4d1['remove']();}}}class ContentFieldView extends View{constructor(_0x3e3bfa,_0x2ba3e2=''){super(_0x3e3bfa),this['loaderView']=this['_createLoader'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content',_0x2ba3e2,'ck-reset_all-excluded','ck-ai-form__content-field']}});}['setContent'](_0xc91dbf){this['element']['innerHTML']=_0xc91dbf;}['appendLoader'](){this['element']['appendChild'](this['loaderView']['element']);}['_createLoader'](){const _0x4929b2=new View(),_0x3fd139=this['locale'],_0x5e27d8=new SpinnerView();return _0x5e27d8['isVisible']=!0x0,_0x4929b2['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__loader']},'children':[_0x5e27d8,{'text':getTranslation$j(_0x3fd139,'AI\x20is\x20writing...')}]}),_0x4929b2['render'](),_0x4929b2;}}class AIFormErrorView extends View{constructor(_0x551556,_0x41ca6d=''){super(_0x551556);const _0x115178=new IconView(),_0x56deaf=this['bindTemplate'];this['set']('text',_0x41ca6d),_0x115178['content']=IconError,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__error']},'children':[_0x115178,{'text':_0x56deaf['to']('text')}]});}}class AIFormPromptView extends AutocompleteView{['submitButtonView'];['showHistoryButtonView'];constructor(_0x21c52e,_0x4699ef){super(_0x21c52e,_0x4699ef),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',(_0x47bb7a,_0x96c636)=>{_0x47bb7a['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x96c636());});}['_createSubmitButton'](){const _0xed3b2b=new ButtonView(this['locale']),_0x207079=this['locale'];return _0xed3b2b['set']({'icon':IconSubmit,'label':getTranslation$j(_0x207079,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0xed3b2b['on']('execute',()=>{this['submit']();}),_0xed3b2b['bind']('isEnabled')['to'](this['queryView']['fieldView'],'isEmpty',this,'isEnabled',(_0x3d18a0,_0x181dc5)=>!_0x3d18a0&&_0x181dc5),_0xed3b2b;}['_createShowHistoryButton'](){const _0x2acf7a=new ButtonView(this['locale']),_0x211ae1=this['resultsView'],_0xb44f70=this['locale'];_0x2acf7a['set']({'label':getTranslation$j(_0xb44f70,'History'),'withText':!0x1,'icon':IconAIHistory,'tooltip':!0x0,'tooltipPosition':'sw','class':'ck-ai-form__toggle-history'}),_0x2acf7a['bind']('isOn')['to'](_0x211ae1,'isVisible'),_0x2acf7a['bind']('isEnabled')['to'](this,'isEnabled'),_0x2acf7a['on']('execute',()=>{_0x211ae1['isVisible']=!_0x211ae1['isVisible'],_0x211ae1['isVisible']?this['filteredView']['focus']():this['focus']();});const _0x592e40=()=>{_0x42cc73['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x46a8ff=new Rect(this['queryView']['fieldView']['element']),_0x1efde7=_0x46a8ff['width'],_0x101d3c='rtl'===_0xb44f70['uiLanguageDirection']?'left':'right';_0x46a8ff['excludeScrollbarsAndBorders'](),_0x2acf7a['element']['style'][_0x101d3c]=_0x1efde7-_0x46a8ff['width']+0x1+'px';}});};return this['queryView']['fieldView']['on']('update',_0x592e40),this['on']('render',_0x592e40),_0x2acf7a;}['submit'](){const _0x567427=this['queryView']['fieldView']['element']['value'];this['fire']('submit',_0x567427);}['focus'](_0x2503be){-0x1===_0x2503be?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}}class AIHistoryListView extends ListView{['historyGroupView'];['clearHistoryButton'];constructor(_0x4351c6){super(_0x4351c6),this['clearHistoryButton']=this['_createClearHistoryButton'](),this['historyGroupView']=new ListItemGroupView(),this['historyGroupView']['children']['add'](this['clearHistoryButton'],0x1),this['historyGroupView']['label']=getTranslation$j(_0x4351c6,'Prompt\x20history'),this['historyGroupView']['items']['delegate']('execute')['to'](this),this['items']['add'](this['historyGroupView']);}['filter'](){let _0x12f5d6=0x0;for(const _0x16132b of this['items'])_0x12f5d6+=_0x16132b['items']['length'];return{'resultsCount':_0x12f5d6,'totalItemsCount':_0x12f5d6};}['_createClearHistoryButton'](){const _0x1deb4a=this['locale'],_0x179278=new ButtonView(this['locale']);return _0x179278['set']({'label':'('+getTranslation$j(_0x1deb4a,'Clear')+')','withText':!0x0}),_0x179278['on']('execute',()=>this['fire']('clearHistory')),_0x179278;}}function isUnsafeProperty(_0xf353e){return'__proto__'===_0xf353e;}function isDeepKey(_0x30f41f){switch(typeof _0x30f41f){case'number':case'symbol':return!0x1;case'string':return _0x30f41f['includes']('.')||_0x30f41f['includes']('[')||_0x30f41f['includes'](']');}}function toKey(_0x5bd78f){return'string'==typeof _0x5bd78f||'symbol'==typeof _0x5bd78f?_0x5bd78f:Object['is'](_0x5bd78f?.['valueOf']?.(),-0x0)?'-0':String(_0x5bd78f);}function toPath(_0x10d943){const _0x553f58=[],_0x443615=_0x10d943['length'];if(0x0===_0x443615)return _0x553f58;let _0x44056e=0x0,_0x2ed342='',_0x5515d9='',_0x15cabc=!0x1;for(0x2e===_0x10d943['charCodeAt'](0x0)&&(_0x553f58['push'](''),_0x44056e++);_0x44056e<_0x443615;){const _0x125a14=_0x10d943[_0x44056e];_0x5515d9?'\x5c'===_0x125a14&&_0x44056e+0x1<_0x443615?(_0x44056e++,_0x2ed342+=_0x10d943[_0x44056e]):_0x125a14===_0x5515d9?_0x5515d9='':_0x2ed342+=_0x125a14:_0x15cabc?'\x22'===_0x125a14||'\x27'===_0x125a14?_0x5515d9=_0x125a14:']'===_0x125a14?(_0x15cabc=!0x1,_0x553f58['push'](_0x2ed342),_0x2ed342=''):_0x2ed342+=_0x125a14:'['===_0x125a14?(_0x15cabc=!0x0,_0x2ed342&&(_0x553f58['push'](_0x2ed342),_0x2ed342='')):'.'===_0x125a14?_0x2ed342&&(_0x553f58['push'](_0x2ed342),_0x2ed342=''):_0x2ed342+=_0x125a14,_0x44056e++;}return _0x2ed342&&_0x553f58['push'](_0x2ed342),_0x553f58;}function get(_0x58c7c7,_0xe73047,_0x47ac98){if(null==_0x58c7c7)return _0x47ac98;switch(typeof _0xe73047){case'string':{if(isUnsafeProperty(_0xe73047))return _0x47ac98;const _0x597865=_0x58c7c7[_0xe73047];return void 0x0===_0x597865?isDeepKey(_0xe73047)?get(_0x58c7c7,toPath(_0xe73047),_0x47ac98):_0x47ac98:_0x597865;}case'number':case'symbol':{'number'==typeof _0xe73047&&(_0xe73047=toKey(_0xe73047));const _0xc01689=_0x58c7c7[_0xe73047];return void 0x0===_0xc01689?_0x47ac98:_0xc01689;}default:{if(Array['isArray'](_0xe73047))return getWithPath(_0x58c7c7,_0xe73047,_0x47ac98);if(isUnsafeProperty(_0xe73047=Object['is'](_0xe73047?.['valueOf'](),-0x0)?'-0':String(_0xe73047)))return _0x47ac98;const _0x5bdfef=_0x58c7c7[_0xe73047];return void 0x0===_0x5bdfef?_0x47ac98:_0x5bdfef;}}}function getWithPath(_0x5dc4ab,_0x3f9d2c,_0x203f17){if(0x0===_0x3f9d2c['length'])return _0x203f17;let _0x122da9=_0x5dc4ab;for(let _0x4a3fa4=0x0;_0x4a3fa4<_0x3f9d2c['length'];_0x4a3fa4++){if(null==_0x122da9)return _0x203f17;if(isUnsafeProperty(_0x3f9d2c[_0x4a3fa4]))return _0x203f17;_0x122da9=_0x122da9[_0x3f9d2c[_0x4a3fa4]];}return void 0x0===_0x122da9?_0x203f17:_0x122da9;}function isObject$3(_0x5826f8){return null!==_0x5826f8&&('object'==typeof _0x5826f8||'function'==typeof _0x5826f8);}function isPrimitive(_0x15974c){return null==_0x15974c||'object'!=typeof _0x15974c&&'function'!=typeof _0x15974c;}function eq(_0x27a284,_0x3129fd){return _0x27a284===_0x3129fd||Number['isNaN'](_0x27a284)&&Number['isNaN'](_0x3129fd);}function getSymbols(_0x2eccc4){return Object['getOwnPropertySymbols'](_0x2eccc4)['filter'](_0x38ad67=>Object['prototype']['propertyIsEnumerable']['call'](_0x2eccc4,_0x38ad67));}function getTag(_0x4f075a){return null==_0x4f075a?void 0x0===_0x4f075a?'[object\x20Undefined]':'[object\x20Null]':Object['prototype']['toString']['call'](_0x4f075a);}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(_0x27ba86){return ArrayBuffer['isView'](_0x27ba86)&&!(_0x27ba86 instanceof DataView);}function cloneDeepWith$1(_0x14f4fc,_0x8cfa0d){return cloneDeepWithImpl(_0x14f4fc,void 0x0,_0x14f4fc,new Map(),_0x8cfa0d);}function cloneDeepWithImpl(_0x100ee6,_0x56d0f4,_0x39a018,_0x9307fd=new Map(),_0x344f6c=void 0x0){const _0x21be90=_0x344f6c?.(_0x100ee6,_0x56d0f4,_0x39a018,_0x9307fd);if(null!=_0x21be90)return _0x21be90;if(isPrimitive(_0x100ee6))return _0x100ee6;if(_0x9307fd['has'](_0x100ee6))return _0x9307fd['get'](_0x100ee6);if(Array['isArray'](_0x100ee6)){const _0x39072d=new Array(_0x100ee6['length']);_0x9307fd['set'](_0x100ee6,_0x39072d);for(let _0x3d9ff7=0x0;_0x3d9ff7<_0x100ee6['length'];_0x3d9ff7++)_0x39072d[_0x3d9ff7]=cloneDeepWithImpl(_0x100ee6[_0x3d9ff7],_0x3d9ff7,_0x39a018,_0x9307fd,_0x344f6c);return Object['hasOwn'](_0x100ee6,'index')&&(_0x39072d['index']=_0x100ee6['index']),Object['hasOwn'](_0x100ee6,'input')&&(_0x39072d['input']=_0x100ee6['input']),_0x39072d;}if(_0x100ee6 instanceof Date)return new Date(_0x100ee6['getTime']());if(_0x100ee6 instanceof RegExp){const _0x5764b1=new RegExp(_0x100ee6['source'],_0x100ee6['flags']);return _0x5764b1['lastIndex']=_0x100ee6['lastIndex'],_0x5764b1;}if(_0x100ee6 instanceof Map){const _0x12d031=new Map();_0x9307fd['set'](_0x100ee6,_0x12d031);for(const [_0x11e333,_0x393808]of _0x100ee6)_0x12d031['set'](_0x11e333,cloneDeepWithImpl(_0x393808,_0x11e333,_0x39a018,_0x9307fd,_0x344f6c));return _0x12d031;}if(_0x100ee6 instanceof Set){const _0x33d0ee=new Set();_0x9307fd['set'](_0x100ee6,_0x33d0ee);for(const _0x3d7830 of _0x100ee6)_0x33d0ee['add'](cloneDeepWithImpl(_0x3d7830,void 0x0,_0x39a018,_0x9307fd,_0x344f6c));return _0x33d0ee;}if('undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x100ee6))return _0x100ee6['subarray']();if(isTypedArray(_0x100ee6)){const _0x5334ff=new(Object['getPrototypeOf'](_0x100ee6))['constructor'](_0x100ee6['length']);_0x9307fd['set'](_0x100ee6,_0x5334ff);for(let _0x540c19=0x0;_0x540c19<_0x100ee6['length'];_0x540c19++)_0x5334ff[_0x540c19]=cloneDeepWithImpl(_0x100ee6[_0x540c19],_0x540c19,_0x39a018,_0x9307fd,_0x344f6c);return _0x5334ff;}if(_0x100ee6 instanceof ArrayBuffer||'undefined'!=typeof SharedArrayBuffer&&_0x100ee6 instanceof SharedArrayBuffer)return _0x100ee6['slice'](0x0);if(_0x100ee6 instanceof DataView){const _0x49d158=new DataView(_0x100ee6['buffer']['slice'](0x0),_0x100ee6['byteOffset'],_0x100ee6['byteLength']);return _0x9307fd['set'](_0x100ee6,_0x49d158),copyProperties(_0x49d158,_0x100ee6,_0x39a018,_0x9307fd,_0x344f6c),_0x49d158;}if('undefined'!=typeof File&&_0x100ee6 instanceof File){const _0x43a80a=new File([_0x100ee6],_0x100ee6['name'],{'type':_0x100ee6['type']});return _0x9307fd['set'](_0x100ee6,_0x43a80a),copyProperties(_0x43a80a,_0x100ee6,_0x39a018,_0x9307fd,_0x344f6c),_0x43a80a;}if(_0x100ee6 instanceof Blob){const _0x3c753a=new Blob([_0x100ee6],{'type':_0x100ee6['type']});return _0x9307fd['set'](_0x100ee6,_0x3c753a),copyProperties(_0x3c753a,_0x100ee6,_0x39a018,_0x9307fd,_0x344f6c),_0x3c753a;}if(_0x100ee6 instanceof Error){const _0x4b02d9=new _0x100ee6['constructor']();return _0x9307fd['set'](_0x100ee6,_0x4b02d9),_0x4b02d9['message']=_0x100ee6['message'],_0x4b02d9['name']=_0x100ee6['name'],_0x4b02d9['stack']=_0x100ee6['stack'],_0x4b02d9['cause']=_0x100ee6['cause'],copyProperties(_0x4b02d9,_0x100ee6,_0x39a018,_0x9307fd,_0x344f6c),_0x4b02d9;}if('object'==typeof _0x100ee6&&isCloneableObject(_0x100ee6)){const _0x56cdeb=Object['create'](Object['getPrototypeOf'](_0x100ee6));return _0x9307fd['set'](_0x100ee6,_0x56cdeb),copyProperties(_0x56cdeb,_0x100ee6,_0x39a018,_0x9307fd,_0x344f6c),_0x56cdeb;}return _0x100ee6;}function copyProperties(_0x137cff,_0x35f02f,_0x27f947=_0x137cff,_0x30cd26,_0x3122ea){const _0x1be52b=[...Object['keys'](_0x35f02f),...getSymbols(_0x35f02f)];for(let _0xeed686=0x0;_0xeed686<_0x1be52b['length'];_0xeed686++){const _0xe44133=_0x1be52b[_0xeed686],_0x126049=Object['getOwnPropertyDescriptor'](_0x137cff,_0xe44133);(null==_0x126049||_0x126049['writable'])&&(_0x137cff[_0xe44133]=cloneDeepWithImpl(_0x35f02f[_0xe44133],_0xe44133,_0x27f947,_0x30cd26,_0x3122ea));}}function isCloneableObject(_0x18af71){switch(getTag(_0x18af71)){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(_0x223a33){return cloneDeepWithImpl(_0x223a33,void 0x0,_0x223a33,new Map(),void 0x0);}function cloneDeepWith(_0x5291f8,_0x1e9c63){return cloneDeepWith$1(_0x5291f8,(_0x8becad,_0x4584db,_0x225f87,_0x43c7ee)=>{if('object'==typeof _0x5291f8)switch(Object['prototype']['toString']['call'](_0x5291f8)){case numberTag:case stringTag:case booleanTag:{const _0x610d6d=new _0x5291f8['constructor'](_0x5291f8?.['valueOf']());return copyProperties(_0x610d6d,_0x5291f8),_0x610d6d;}case argumentsTag:{const _0x566dcc={};return copyProperties(_0x566dcc,_0x5291f8),_0x566dcc['length']=_0x5291f8['length'],_0x566dcc[Symbol['iterator']]=_0x5291f8[Symbol['iterator']],_0x566dcc;}default:return;}});}function cloneDeep(_0x4e9c0d){return cloneDeepWith(_0x4e9c0d);}const IS_UNSIGNED_INTEGER=/^(?:0|[1-9]\d*)$/;function isIndex(_0x34037d,_0xd32ddf=Number['MAX_SAFE_INTEGER']){switch(typeof _0x34037d){case'number':return Number['isInteger'](_0x34037d)&&_0x34037d>=0x0&&_0x34037d<_0xd32ddf;case'symbol':return!0x1;case'string':return IS_UNSIGNED_INTEGER['test'](_0x34037d);}}function isObjectLike(_0x1486a4){return'object'==typeof _0x1486a4&&null!==_0x1486a4;}function isSymbol(_0xa659a8){return'symbol'==typeof _0xa659a8||_0xa659a8 instanceof Symbol;}const regexIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,regexIsPlainProp=/^\w*$/;function isKey(_0x34cea5,_0xa75ab4){return!Array['isArray'](_0x34cea5)&&(!('number'!=typeof _0x34cea5&&'boolean'!=typeof _0x34cea5&&null!=_0x34cea5&&!isSymbol(_0x34cea5))||('string'==typeof _0x34cea5&&(regexIsPlainProp['test'](_0x34cea5)||!regexIsDeepProp['test'](_0x34cea5))||null!=_0xa75ab4&&Object['hasOwn'](_0xa75ab4,_0x34cea5)));}function unset(_0x3e47b1,_0x472dda){if(null==_0x3e47b1)return!0x0;switch(typeof _0x472dda){case'symbol':case'number':case'object':if(Array['isArray'](_0x472dda))return unsetWithPath(_0x3e47b1,_0x472dda);if('number'==typeof _0x472dda?_0x472dda=toKey(_0x472dda):'object'==typeof _0x472dda&&(_0x472dda=Object['is'](_0x472dda?.['valueOf'](),-0x0)?'-0':String(_0x472dda)),isUnsafeProperty(_0x472dda))return!0x1;if(void 0x0===_0x3e47b1?.[_0x472dda])return!0x0;try{return delete _0x3e47b1[_0x472dda],!0x0;}catch{return!0x1;}case'string':if(void 0x0===_0x3e47b1?.[_0x472dda]&&isDeepKey(_0x472dda))return unsetWithPath(_0x3e47b1,toPath(_0x472dda));if(isUnsafeProperty(_0x472dda))return!0x1;try{return delete _0x3e47b1[_0x472dda],!0x0;}catch{return!0x1;}}}function unsetWithPath(_0x4c3735,_0x44e15a){const _0x553d81=get(_0x4c3735,_0x44e15a['slice'](0x0,-0x1),_0x4c3735),_0x43c9d7=_0x44e15a[_0x44e15a['length']-0x1];if(void 0x0===_0x553d81?.[_0x43c9d7])return!0x0;if(isUnsafeProperty(_0x43c9d7))return!0x1;try{return delete _0x553d81[_0x43c9d7],!0x0;}catch{return!0x1;}}const assignValue=(_0x10c7d5,_0x1b1cf1,_0x35ae62)=>{const _0x2ecc65=_0x10c7d5[_0x1b1cf1];Object['hasOwn'](_0x10c7d5,_0x1b1cf1)&&eq(_0x2ecc65,_0x35ae62)&&(void 0x0!==_0x35ae62||_0x1b1cf1 in _0x10c7d5)||(_0x10c7d5[_0x1b1cf1]=_0x35ae62);};function updateWith(_0x5a2aad,_0x213d0d,_0x280a85,_0x1bc299){if(null==_0x5a2aad&&!isObject$3(_0x5a2aad))return _0x5a2aad;const _0x1e362e=isKey(_0x213d0d,_0x5a2aad)?[_0x213d0d]:Array['isArray'](_0x213d0d)?_0x213d0d:'string'==typeof _0x213d0d?toPath(_0x213d0d):[_0x213d0d];let _0x5e7ce1=_0x5a2aad;for(let _0x5e64a1=0x0;_0x5e64a1<_0x1e362e['length']&&null!=_0x5e7ce1;_0x5e64a1++){const _0x2da23c=toKey(_0x1e362e[_0x5e64a1]);if(isUnsafeProperty(_0x2da23c))continue;let _0x1b8306;if(_0x5e64a1===_0x1e362e['length']-0x1)_0x1b8306=_0x280a85(_0x5e7ce1[_0x2da23c]);else{const _0x5680d7=_0x5e7ce1[_0x2da23c],_0x2bf2af=_0x1bc299?.(_0x5680d7,_0x2da23c,_0x5a2aad);_0x1b8306=void 0x0!==_0x2bf2af?_0x2bf2af:isObject$3(_0x5680d7)?_0x5680d7:isIndex(_0x1e362e[_0x5e64a1+0x1])?[]:{};}assignValue(_0x5e7ce1,_0x2da23c,_0x1b8306),_0x5e7ce1=_0x5e7ce1[_0x2da23c];}return _0x5a2aad;}function set(_0x67dca2,_0x3748fb,_0x5cb618){return updateWith(_0x67dca2,_0x3748fb,()=>_0x5cb618,()=>{});}function debounce$2(_0x466677,_0xcab9dd,{signal:_0x2a6813,edges:_0x19f2be}={}){let _0x47656a,_0x5cc452=null;const _0x323fc3=null!=_0x19f2be&&_0x19f2be['includes']('leading'),_0x1a47ab=null==_0x19f2be||_0x19f2be['includes']('trailing'),_0x3e820f=()=>{null!==_0x5cc452&&(_0x466677['apply'](_0x47656a,_0x5cc452),_0x47656a=void 0x0,_0x5cc452=null);};let _0x5863f2=null;const _0x2b83cb=()=>{null!=_0x5863f2&&clearTimeout(_0x5863f2),_0x5863f2=setTimeout(()=>{_0x5863f2=null,_0x1a47ab&&_0x3e820f(),_0x4c3169();},_0xcab9dd);},_0x468a67=()=>{null!==_0x5863f2&&(clearTimeout(_0x5863f2),_0x5863f2=null);},_0x4c3169=()=>{_0x468a67(),_0x47656a=void 0x0,_0x5cc452=null;},_0x35bea2=function(..._0x4d56eb){if(_0x2a6813?.['aborted'])return;_0x47656a=this,_0x5cc452=_0x4d56eb;const _0x4e8d98=null==_0x5863f2;_0x2b83cb(),_0x323fc3&&_0x4e8d98&&_0x3e820f();};return _0x35bea2['schedule']=_0x2b83cb,_0x35bea2['cancel']=_0x4c3169,_0x35bea2['flush']=()=>{_0x468a67(),_0x3e820f();},_0x2a6813?.['addEventListener']('abort',_0x4c3169,{'once':!0x0}),_0x35bea2;}function debounce$1(_0x5033b9,_0x3d98c6=0x0,_0x5b3e8d={}){'object'!=typeof _0x5b3e8d&&(_0x5b3e8d={});const {leading:_0x1ac068=!0x1,trailing:_0x4daf3=!0x0,maxWait:_0x3d4a3c}=_0x5b3e8d,_0x57effd=Array(0x2);let _0x291dd4;_0x1ac068&&(_0x57effd[0x0]='leading'),_0x4daf3&&(_0x57effd[0x1]='trailing');let _0x47dc4a=null;const _0x2fa4cc=debounce$2(function(..._0x4a3ebe){_0x291dd4=_0x5033b9['apply'](this,_0x4a3ebe),_0x47dc4a=null;},_0x3d98c6,{'edges':_0x57effd}),_0x3af113=function(..._0x3bff06){return null!=_0x3d4a3c&&(null===_0x47dc4a&&(_0x47dc4a=Date['now']()),Date['now']()-_0x47dc4a>=_0x3d4a3c)?(_0x291dd4=_0x5033b9['apply'](this,_0x3bff06),_0x47dc4a=Date['now'](),_0x2fa4cc['cancel'](),_0x2fa4cc['schedule'](),_0x291dd4):(_0x2fa4cc['apply'](this,_0x3bff06),_0x291dd4);};return _0x3af113['cancel']=_0x2fa4cc['cancel'],_0x3af113['flush']=()=>(_0x2fa4cc['flush'](),_0x291dd4),_0x3af113;}function throttle$1(_0x4f9603,_0x463cca=0x0,_0x2bddd0={}){'object'!=typeof _0x2bddd0&&(_0x2bddd0={});const {leading:_0x3b0bf0=!0x0,trailing:_0x8c314c=!0x0}=_0x2bddd0;return debounce$1(_0x4f9603,_0x463cca,{'leading':_0x3b0bf0,'trailing':_0x8c314c,'maxWait':_0x463cca});}function toString$2(_0x307304){if(null==_0x307304)return'';if('string'==typeof _0x307304)return _0x307304;if(Array['isArray'](_0x307304))return _0x307304['map'](toString$2)['join'](',');const _0x303d19=String(_0x307304);return'0'===_0x303d19&&Object['is'](Number(_0x307304),-0x0)?'-0':_0x303d19;}function isPlainObject$1(_0x45d109){if(!_0x45d109||'object'!=typeof _0x45d109)return!0x1;const _0x4fbbbd=Object['getPrototypeOf'](_0x45d109);return!(null!==_0x4fbbbd&&_0x4fbbbd!==Object['prototype']&&null!==Object['getPrototypeOf'](_0x4fbbbd))&&'[object\x20Object]'===Object['prototype']['toString']['call'](_0x45d109);}function isEqualWith(_0x4dcb30,_0x3513c7,_0x2d39e8){return isEqualWithImpl(_0x4dcb30,_0x3513c7,void 0x0,void 0x0,void 0x0,void 0x0,_0x2d39e8);}function isEqualWithImpl(_0x1f3e7e,_0x2d88f0,_0x1b7a8b,_0x342368,_0x3e0ba1,_0x5de15b,_0xb7c426){const _0xc4ae2=_0xb7c426(_0x1f3e7e,_0x2d88f0,_0x1b7a8b,_0x342368,_0x3e0ba1,_0x5de15b);if(void 0x0!==_0xc4ae2)return _0xc4ae2;if(typeof _0x1f3e7e==typeof _0x2d88f0)switch(typeof _0x1f3e7e){case'bigint':case'string':case'boolean':case'symbol':case'undefined':case'function':return _0x1f3e7e===_0x2d88f0;case'number':return _0x1f3e7e===_0x2d88f0||Object['is'](_0x1f3e7e,_0x2d88f0);case'object':return areObjectsEqual(_0x1f3e7e,_0x2d88f0,_0x5de15b,_0xb7c426);}return areObjectsEqual(_0x1f3e7e,_0x2d88f0,_0x5de15b,_0xb7c426);}function areObjectsEqual(_0x3d59be,_0x4367a4,_0x2b77d0,_0x3a0f46){if(Object['is'](_0x3d59be,_0x4367a4))return!0x0;let _0x28c711=getTag(_0x3d59be),_0x415eb2=getTag(_0x4367a4);if(_0x28c711===argumentsTag&&(_0x28c711=objectTag),_0x415eb2===argumentsTag&&(_0x415eb2=objectTag),_0x28c711!==_0x415eb2)return!0x1;switch(_0x28c711){case stringTag:return _0x3d59be['toString']()===_0x4367a4['toString']();case numberTag:return eq(_0x3d59be['valueOf'](),_0x4367a4['valueOf']());case booleanTag:case dateTag:case symbolTag:return Object['is'](_0x3d59be['valueOf'](),_0x4367a4['valueOf']());case regexpTag:return _0x3d59be['source']===_0x4367a4['source']&&_0x3d59be['flags']===_0x4367a4['flags'];case functionTag:return _0x3d59be===_0x4367a4;}const _0x1772d2=(_0x2b77d0=_0x2b77d0??new Map())['get'](_0x3d59be),_0x342f90=_0x2b77d0['get'](_0x4367a4);if(null!=_0x1772d2&&null!=_0x342f90)return _0x1772d2===_0x4367a4;_0x2b77d0['set'](_0x3d59be,_0x4367a4),_0x2b77d0['set'](_0x4367a4,_0x3d59be);try{switch(_0x28c711){case mapTag:if(_0x3d59be['size']!==_0x4367a4['size'])return!0x1;for(const [_0xb64bad,_0x5c56a4]of _0x3d59be['entries']())if(!_0x4367a4['has'](_0xb64bad)||!isEqualWithImpl(_0x5c56a4,_0x4367a4['get'](_0xb64bad),_0xb64bad,_0x3d59be,_0x4367a4,_0x2b77d0,_0x3a0f46))return!0x1;return!0x0;case setTag:{if(_0x3d59be['size']!==_0x4367a4['size'])return!0x1;const _0x253e81=Array['from'](_0x3d59be['values']()),_0x9cae34=Array['from'](_0x4367a4['values']());for(let _0x512da4=0x0;_0x512da4<_0x253e81['length'];_0x512da4++){const _0x4caa9a=_0x253e81[_0x512da4],_0x209028=_0x9cae34['findIndex'](_0x5ed922=>isEqualWithImpl(_0x4caa9a,_0x5ed922,void 0x0,_0x3d59be,_0x4367a4,_0x2b77d0,_0x3a0f46));if(-0x1===_0x209028)return!0x1;_0x9cae34['splice'](_0x209028,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'](_0x3d59be)!==Buffer['isBuffer'](_0x4367a4))return!0x1;if(_0x3d59be['length']!==_0x4367a4['length'])return!0x1;for(let _0x1808f0=0x0;_0x1808f0<_0x3d59be['length'];_0x1808f0++)if(!isEqualWithImpl(_0x3d59be[_0x1808f0],_0x4367a4[_0x1808f0],_0x1808f0,_0x3d59be,_0x4367a4,_0x2b77d0,_0x3a0f46))return!0x1;return!0x0;case arrayBufferTag:return _0x3d59be['byteLength']===_0x4367a4['byteLength']&&areObjectsEqual(new Uint8Array(_0x3d59be),new Uint8Array(_0x4367a4),_0x2b77d0,_0x3a0f46);case dataViewTag:return _0x3d59be['byteLength']===_0x4367a4['byteLength']&&_0x3d59be['byteOffset']===_0x4367a4['byteOffset']&&areObjectsEqual(new Uint8Array(_0x3d59be),new Uint8Array(_0x4367a4),_0x2b77d0,_0x3a0f46);case errorTag:return _0x3d59be['name']===_0x4367a4['name']&&_0x3d59be['message']===_0x4367a4['message'];case objectTag:{if(!(areObjectsEqual(_0x3d59be['constructor'],_0x4367a4['constructor'],_0x2b77d0,_0x3a0f46)||isPlainObject$1(_0x3d59be)&&isPlainObject$1(_0x4367a4)))return!0x1;const _0x301964=[...Object['keys'](_0x3d59be),...getSymbols(_0x3d59be)],_0x5b2dc2=[...Object['keys'](_0x4367a4),...getSymbols(_0x4367a4)];if(_0x301964['length']!==_0x5b2dc2['length'])return!0x1;for(let _0x2ecf6c=0x0;_0x2ecf6c<_0x301964['length'];_0x2ecf6c++){const _0x207763=_0x301964[_0x2ecf6c],_0x234d77=_0x3d59be[_0x207763];if(!Object['hasOwn'](_0x4367a4,_0x207763))return!0x1;if(!isEqualWithImpl(_0x234d77,_0x4367a4[_0x207763],_0x207763,_0x3d59be,_0x4367a4,_0x2b77d0,_0x3a0f46))return!0x1;}return!0x0;}default:return!0x1;}}finally{_0x2b77d0['delete'](_0x3d59be),_0x2b77d0['delete'](_0x4367a4);}}function noop$2(){}function isEqual(_0x5bed23,_0x32785b){return isEqualWith(_0x5bed23,_0x32785b,noop$2);}function isPlainObject(_0x317811){if('object'!=typeof _0x317811)return!0x1;if(null==_0x317811)return!0x1;if(null===Object['getPrototypeOf'](_0x317811))return!0x0;if('[object\x20Object]'!==Object['prototype']['toString']['call'](_0x317811)){const _0x597dc6=_0x317811[Symbol['toStringTag']];if(null==_0x597dc6)return!0x1;return!!Object['getOwnPropertyDescriptor'](_0x317811,Symbol['toStringTag'])?.['writable']&&_0x317811['toString']()==='[object\x20'+_0x597dc6+']';}let _0x261ddb=_0x317811;for(;null!==Object['getPrototypeOf'](_0x261ddb);)_0x261ddb=Object['getPrototypeOf'](_0x261ddb);return Object['getPrototypeOf'](_0x317811)===_0x261ddb;}function omit(_0x533b61,..._0x221d48){if(null==_0x533b61)return{};const _0x2cebba=cloneDeep$1(_0x533b61);for(let _0x33cb41=0x0;_0x33cb41<_0x221d48['length'];_0x33cb41++){let _0x249125=_0x221d48[_0x33cb41];switch(typeof _0x249125){case'object':Array['isArray'](_0x249125)||(_0x249125=Array['from'](_0x249125));for(let _0x247e38=0x0;_0x247e38<_0x249125['length'];_0x247e38++){unset(_0x2cebba,_0x249125[_0x247e38]);}break;case'string':case'symbol':case'number':unset(_0x2cebba,_0x249125);}}return _0x2cebba;}function isElement$2(_0x1a090d){return isObjectLike(_0x1a090d)&&0x1===_0x1a090d['nodeType']&&!isPlainObject(_0x1a090d);}const htmlEscapes={'&':'&amp;','<':'&lt;','>':'&gt;','\x22':'&quot;','\x27':'&#39;'};function escape$1(_0x4ccd2d){return _0x4ccd2d['replace'](/[&<>"']/g,_0x45b1f6=>htmlEscapes[_0x45b1f6]);}function escape(_0x1ee4b9){return escape$1(toString$2(_0x1ee4b9));}function escapeRegExp$2(_0x5d362f){return _0x5d362f['replace'](/[\\^$.*+?()[\]{}|]/g,'\x5c$&');}function escapeRegExp$1(_0x4cb11f){return escapeRegExp$2(toString$2(_0x4cb11f));}const htmlUnescapes={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'\x22','&#39;':'\x27'};function unescape$2(_0x4edf48){return _0x4edf48['replace'](/&(?:amp|lt|gt|quot|#(0+)?39);/g,_0x1744ee=>htmlUnescapes[_0x1744ee]||'\x27');}function unescape$1(_0x96c04e){return unescape$2(toString$2(_0x96c04e));}class AIHistoryListItemView extends ListItemView{constructor(_0x19f2a8){super();const _0x22979e=new ButtonLabelView(),_0xf440d9=new ButtonView(this['locale'],_0x22979e);this['children']['add'](_0xf440d9),_0xf440d9['set']({'label':_0x19f2a8['prompt'],'withText':!0x0}),_0xf440d9['on']('execute',()=>{this['fire']('execute',{'value':unescape$1(_0x19f2a8['prompt'])});});}}const SESSION_STORAGE_KEY='CKEditor/AIFormView/PromptHistory',MAX_HISTORY_LENGTH=0x14;class PromptHistory extends Collection{constructor(){super(),this['_loadFromSessionStorage'](),this['on']('add',(_0x1337a4,_0x64188a)=>{const _0x5cde06=normalizePromptText(_0x64188a['prompt']);for(const _0x4bef0f of this)if(_0x4bef0f!=_0x64188a&&normalizePromptText(_0x4bef0f['prompt'])===_0x5cde06){this['remove'](_0x4bef0f);break;}this['length']>MAX_HISTORY_LENGTH&&this['remove'](this['last']),this['_saveToSessionStorage']();}),this['on']('remove',()=>{this['_saveToSessionStorage']();});}['_loadFromSessionStorage'](){const _0x282073=sessionStorage['getItem'](SESSION_STORAGE_KEY)||'[]';this['addMany'](JSON['parse'](_0x282073));}['_saveToSessionStorage'](){sessionStorage['setItem'](SESSION_STORAGE_KEY,JSON['stringify'](this['map'](_0x43a07c=>_0x43a07c)));}}function normalizePromptText(_0x281d89){return _0x281d89['toLowerCase']()['trim']();}class AIFormView extends View{['focusTracker'];['keystrokes'];['contentArea'];['toolbar'];['promptView'];['errorView'];['_focusables'];['focusCycler'];['_promptHistory'];constructor(_0x2508b7,_0x2b044c,_0x15e96c=''){super(_0x2508b7),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(_0x2508b7),this['contentArea']=new AIFormContentArea(_0x2508b7,_0x15e96c),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 _0x56c05a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form',_0x2b044c],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':'div','attributes':{'class':[_0x56c05a['if']('isError','ck-hidden',_0x41a8dc=>!_0x41a8dc)]},'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'](_0x461281=0x1){-0x1===_0x461281?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 _0x5636a6=this['locale'],_0x5d8998=new AIFormPromptView(_0x5636a6,{'queryView':{'label':getTranslation$j(_0x5636a6,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':getTranslation$j(_0x5636a6,'Empty\x20history'),'secondary':getTranslation$j(_0x5636a6,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this['_createHistoryView'](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x5d8998['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x20f68e,_0x597a49)=>_0x20f68e&&!_0x597a49),this['listenTo'](_0x5d8998,'submit',(_0x5d7b47,_0xed78fd)=>{this['prompt']=_0xed78fd;const _0x7ea228=escape(_0xed78fd);this['fire']('submitPrompt',_0x7ea228),_0xed78fd['trim']()&&this['_promptHistory']['add']({'prompt':_0x7ea228},0x0);},{'priority':'high'}),_0x5d8998;}['_createHistoryView'](){const _0x4a7d85=new AIHistoryListView(this['locale']);return _0x4a7d85['historyGroupView']['items']['bindTo'](this['_promptHistory'])['as'](AIHistoryListItemView),_0x4a7d85['on']('clearHistory',()=>{this['_promptHistory']['clear'](),this['promptView']['search'](''),this['promptView']['focus']();}),_0x4a7d85;}['_createToolbar'](){const _0x396f22=new AIFormToolbarView(this['locale']);return _0x396f22['replaceButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x35fc27,_0x2ac5f6,_0x77c110)=>_0x35fc27&&!_0x2ac5f6&&!!_0x77c110),_0x396f22['replaceButton']['delegate']('execute')['to'](this,'replaceContent'),_0x396f22['insertButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x5690e0,_0xba2354,_0x13b29c)=>_0x5690e0&&!_0xba2354&&!!_0x13b29c),_0x396f22['insertButton']['delegate']('execute')['to'](this,'insertContentBelow'),_0x396f22['tryAgainButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x2cb62a,_0x34f6b3)=>_0x2cb62a&&!_0x34f6b3),_0x396f22['tryAgainButton']['delegate']('execute')['to'](this,'tryAgainEvent'),_0x396f22['stopButton']['bind']('isEnabled')['to'](this,'isProcessing'),_0x396f22['stopButton']['delegate']('execute')['to'](this,'stopProcessing'),_0x396f22;}['startProcessing'](){this['value']='',this['isError']=!0x1,this['isProcessing']=!0x0,this['contentArea']['isVisible']=!0x0,this['toolbar']['isVisible']=!0x0,this['contentArea']['focus']();}['finishProcessing'](){const _0x270180=this['locale'];this['isProcessing']=!0x1,this['prompt']='',this['promptView']['reset'](),this['value']&&(this['promptView']['queryView']['label']=getTranslation$j(_0x270180,'Ask\x20AI\x20to\x20improve\x20generated\x20text'));}['handleError'](_0x4209d3){const _0x1b40c8=this['locale'];this['finishProcessing'](),this['isError']=!0x0,this['errorView']['text']=_0x4209d3||getTranslation$j(_0x1b40c8,'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(_0x4be198){super(_0x4be198),_0x4be198['config']['define']('ai.assistant.disabledElements',['media','rawHtml','tableOfContents']),_0x4be198['config']['define']('ai.assistant.contentAreaCssClass',''),_0x4be198['config']['define']('ai.assistant.useTheme',!0x0),this['_uiCssClasses']='ck-ai-assistant-ui'+(_0x4be198['config']['get']('ai.assistant.useTheme')?'\x20ck-ai-assistant-ui_theme':'');}['init'](){const {editor:_0xe2e4e9}=this;this['_aiAdapter']=_0xe2e4e9['plugins']['get'](AIAdapter),this['_dialog']=_0xe2e4e9['plugins']['get'](Dialog),this['_formView']=null,this['_commandDefinitions']=this['_getResolvedCommandsDefinitions']();const _0x26e4a9=new ShowAIAssistantCommand(_0xe2e4e9,Array['from'](this['_commandDefinitions']['values']()));_0xe2e4e9['commands']['add']('showAIAssistant',_0x26e4a9),_0xe2e4e9['ui']['componentFactory']['add']('aiCommands',_0x15632f=>{const _0x13370e=createDropdown(_0x15632f);return _0x13370e['set']({'class':'ck-ai-commands-dropdown\x20'+this['_uiCssClasses']}),_0x13370e['buttonView']['set']({'label':getTranslation$j(_0x15632f,'AI\x20Commands'),'icon':IconMagicWand,'tooltip':!0x0}),_0x13370e['on']('execute',_0x23260e=>this['_onExecute'](_0x23260e['source']['id'])),addMenuToDropdown(_0x13370e,_0xe2e4e9['ui']['view']['body'],getMenuDropdownDefinition(_0xe2e4e9),{'ariaLabel':getTranslation$j(_0x15632f,'AI\x20Commands')}),_0x13370e['menuView']['menuPanelClass']='ck-ai-commands-dropdown\x20'+this['_uiCssClasses'],_0x26e4a9['on']('change:enabledCommandsIds',_0x4d6f71),_0x13370e['menuView']['once']('render',_0x4d6f71),_0x13370e;function _0x4d6f71(){_0x13370e['isEnabled']=_0x26e4a9['enabledCommandsIds']['length']>0x0;for(const _0x337881 of _0x13370e['menuView']['buttons'])_0x337881['isEnabled']=_0x26e4a9['enabledCommandsIds']['includes'](_0x337881['id']);}}),_0xe2e4e9['ui']['componentFactory']['add']('menuBar:aiCommands',_0x1c3bf4=>{const _0x1064df=new MenuBarMenuView(_0x1c3bf4);_0x1064df['buttonView']['set']({'label':getTranslation$j(_0x1c3bf4,'AI\x20Commands'),'icon':IconMagicWand}),_0x1064df['bind']('isEnabled')['to'](_0x26e4a9,'enabledCommandsIds',_0x3e9565=>_0x3e9565['length']>0x0);const _0x46e2e0=normalizeCommandsConfig(_0xe2e4e9['config']['get']('ai.assistant.commands'),_0x1c3bf4);return this['_populateMenuBarMenu'](_0x26e4a9,_0x1064df,_0x46e2e0,_0xf72252=>this['_onExecute'](_0xf72252)),_0x1064df;}),_0xe2e4e9['ui']['componentFactory']['add']('aiAssistant',()=>{const _0xd0e10=this['_createAIAssistantUIButton'](ButtonView);return _0xd0e10['set']({'tooltip':!0x0,'class':'ck-ai-assistant-button\x20'+this['_uiCssClasses']}),_0xd0e10;}),_0xe2e4e9['ui']['componentFactory']['add']('menuBar:aiAssistant',()=>{const _0x1cea7f=this['_createAIAssistantUIButton'](MenuBarMenuListItemButtonView);return _0x1cea7f['set']({'role':'menuitemcheckbox'}),_0x1cea7f;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e781e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3a6b87;for(const _0x2ce8f1 in _0x1e781e){const _0xdceb25=_0x2ce8f1,_0x56049d=_0x1e781e[_0xdceb25];if('aiLicenseKeyValid'==_0x56049d||'aiLicenseKeyInvalid'==_0x56049d||'aiLicenseKeyExpired'==_0x56049d||'aiLicenseKeyDomainLimit'==_0x56049d||'aiLicenseKeyNotAllowed'==_0x56049d||'aiLicenseKeyEvaluationLimit'==_0x56049d||'aiLicenseKeyUsageLimit'==_0x56049d){delete _0x1e781e[_0xdceb25],_0x3a6b87=_0x56049d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'aiLicenseKeyInvalid'==_0x3a6b87&&_0x1e781e['_showLicenseError']('invalid'),'aiLicenseKeyExpired'==_0x3a6b87&&_0x1e781e['_showLicenseError']('expired'),'aiLicenseKeyDomainLimit'==_0x3a6b87&&_0x1e781e['_showLicenseError']('domainLimit'),'aiLicenseKeyNotAllowed'==_0x3a6b87&&_0x1e781e['_showLicenseError']('featureNotAllowed','AIAssistant'),'aiLicenseKeyEvaluationLimit'==_0x3a6b87&&_0x1e781e['_showLicenseError']('evaluationLimit'),'aiLicenseKeyUsageLimit'==_0x3a6b87&&_0x1e781e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['showUI'](_0x38b92c='',_0x3409cd='',_0x194818='custom'){const _0x25933e=this['editor'],_0x32445f=_0x25933e['editing']['view'],_0x3e8672=_0x25933e['plugins']['get'](AIAssistantEditing),_0x4e1691=_0x25933e['plugins']['get'](ClipboardMarkersUtils);_0x3e8672['showFakeVisualSelection']();const _0x223ba6=new DomDataTransfer(),_0x33d643=new ClipboardEvent('copy',{'clipboardData':_0x223ba6}),_0x2a8fd0=new ViewDataTransfer(_0x223ba6),_0x1424d7=new ViewDocumentDomEventData(_0x32445f,_0x33d643,{'dataTransfer':_0x2a8fd0});_0x4e1691['_forceMarkersCopy']('comment',()=>{_0x32445f['document']['fire']('copy',_0x1424d7);}),this['_formView']||(this['_initView'](),this['_aiAssistantController']=new AIAssistantController(_0x25933e,this['_aiAdapter']['textAdapter'],this['_formView']));let _0x57ea7e=_0x2a8fd0['getData']('text/html');const _0x26064a=_0x25933e['model']['document']['selection'],_0x204331=Array['from'](_0x26064a['getRanges']());0x1===_0x204331['length']&&_0x204331[0x0]['isFlat']&&!_0x26064a['getSelectedElement']()&&''!==_0x57ea7e['replace'](/&nbsp;/g,'')['trim']()&&(_0x57ea7e='<p>'+_0x57ea7e+'</p>'),this['_aiAssistantController']['updateView']({'actionId':_0x194818,'query':_0x38b92c,'htmlContent':_0x57ea7e,'label':_0x3409cd,'mainActionLabel':AIFormToolbarViewMainActionLabel[_0x25933e['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'](),_0x3e8672['hideFakeVisualSelection']();}}):this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}['hideUI'](){this['_dialog']['hide']();}['_getResolvedCommandsDefinitions'](){const _0xf9fade=new Map(),_0x36bbb0=normalizeCommandsConfig(this['editor']['config']['get']('ai.assistant.commands'),this['editor']['locale']);for(const _0x526ca6 of _0x36bbb0)for(const _0x4091a9 of _0x526ca6['commands'])_0xf9fade['set'](_0x4091a9['id'],{..._0x4091a9,'groupId':_0x526ca6['groupId'],'groupLabel':_0x526ca6['groupLabel']||_0x526ca6['groupId']});return _0xf9fade;}['_createAIAssistantUIButton'](_0x3fd169){const _0x1e15fe=this['editor'],_0x371e3e=_0x1e15fe['commands']['get']('showAIAssistant'),_0x2bff56=new _0x3fd169(_0x1e15fe['locale']);return _0x2bff56['set']({'label':getTranslation$j(_0x1e15fe['locale'],'AI\x20Assistant'),'icon':IconRobotPencil,'isToggleable':!0x0}),_0x2bff56['bind']('isEnabled')['to'](_0x371e3e),_0x2bff56['bind']('isOn')['to'](this['_dialog'],'id',_0x13215f=>'aiAssistant'===_0x13215f),this['listenTo'](_0x2bff56,'execute',()=>{_0x2bff56['isOn']?this['hideUI']():_0x371e3e['execute']();}),_0x2bff56;}['_initView'](){const _0x5eb30e=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',()=>{_0x5eb30e['insertContent'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['listenTo'](this['_formView'],'insertContentBelow',()=>{_0x5eb30e['insertContentBelow'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['_initAriaAiStatusChangeAnnouncements']();}['_initAriaAiStatusChangeAnnouncements'](){const {locale:_0x501fe2,ui:{ariaLiveAnnouncer:_0x22da0b}}=this['editor'];this['_formView']['contentArea']['on']('change:isProcessing',(_0x56d60a,_0x2d3447,_0x2f298e)=>{const _0x4cee7d=this['_aiAssistantController']['currentContext'];_0x2f298e?_0x22da0b['announce'](getTranslation$j(_0x501fe2,'AI\x20is\x20writing')):_0x4cee7d&&_0x22da0b['announce'](getTranslation$j(_0x501fe2,'Generated\x20content:\x20%0',_0x4cee7d),{'politeness':'polite','isUnsafeHTML':!0x0});}),this['_formView']['on']('change:isError',(_0x2c90e8,_0x58d08a,_0x548565)=>{if(_0x548565){const _0x4197db=this['_formView']['errorView']['text'];_0x22da0b['announce'](getTranslation$j(_0x501fe2,'Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4197db));}});}['_onExecute'](_0x201112){const _0x4d3916=this['_commandDefinitions']['get'](_0x201112),_0x452fc3=this['editor'],_0x3e275d=_0x452fc3['model']['document']['selection'],_0x4e257f=_0x452fc3['commands']['get']('showAIAssistant'),_0x588dde=_0x452fc3['plugins']['get'](AIAssistantEditing),_0x7ab5b4=''+(_0x4d3916['groupId']!==UNGROUPED_COMMANDS_GROUP_ID?_0x4d3916['groupLabel']+':\x20':'')+_0x4d3916['label'];if(!0x1!==_0x4d3916['requiresContent']&&_0x3e275d['isCollapsed']){const _0x36f36e=first(_0x3e275d['getSelectedBlocks']())||_0x452fc3['model']['schema']['getLimitElement'](_0x3e275d);_0x452fc3['model']['change'](_0x8d282e=>{_0x8d282e['setSelection'](_0x36f36e,'in');});}_0x588dde['showFakeVisualSelection'](),_0x4e257f['execute'](_0x4d3916['prompt'],_0x7ab5b4,'command:'+_0x201112);}['_populateMenuBarMenu'](_0x30dd60,_0x5d8bb1,_0x3db0fc,_0xd8deef){const _0x5a3a47=this['editor'],_0x578d8f=_0x5a3a47['locale'],_0x2cb1dd=new MenuBarMenuListView(_0x578d8f),_0x56145f=sortDefinitionsByOrder(_0x5a3a47,_0x3db0fc)['filter'](_0xe1afd5=>_0xe1afd5['commands']['length']);0x1===_0x56145f['length']?this['_getMenuBarGroupButtons']({'command':_0x30dd60,'commands':_0x56145f[0x0]['commands'],'parentMenuView':_0x5d8bb1,'onExecute':_0xd8deef})['forEach'](_0x56a6b0=>_0x2cb1dd['items']['add'](_0x56a6b0)):_0x56145f['forEach'](({groupId:_0x114632,groupLabel:_0x329b50,commands:_0x2dddcf})=>{const _0x3df9e7=new MenuBarMenuListItemView(_0x578d8f,_0x5d8bb1),_0x374204=new MenuBarMenuView(_0x578d8f),_0x1eb92e=new MenuBarMenuListView(_0x578d8f),_0x1eda29=this['_getMenuBarGroupButtons']({'command':_0x30dd60,'commands':_0x2dddcf,'parentMenuView':_0x374204,'onExecute':_0xd8deef});_0x374204['buttonView']['set']({'label':_0x329b50||_0x114632}),_0x374204['delegate']('execute')['to'](_0x5d8bb1),_0x1eb92e['items']['addMany'](_0x1eda29),_0x374204['panelView']['children']['add'](_0x1eb92e),_0x3df9e7['children']['add'](_0x374204),_0x2cb1dd['items']['add'](_0x3df9e7);}),_0x5d8bb1['panelView']['children']['add'](_0x2cb1dd);}['_getMenuBarGroupButtons']({command:_0xa29baf,commands:_0x56f5a9,parentMenuView:_0x3bcb37,onExecute:_0x3cc241}){const _0x19bf6e=this['editor'],_0x479b99=_0x19bf6e['locale'];return sortDefinitionsByOrder(_0x19bf6e,_0x56f5a9)['map'](_0x8d0d3=>{const _0x33886a=new MenuBarMenuListItemView(_0x479b99,_0x3bcb37),_0x24d9be=new MenuBarMenuListItemButtonView(_0x479b99);return _0x24d9be['set']({'label':_0x8d0d3['label']}),_0x24d9be['delegate']('execute')['to'](_0x3bcb37),_0x24d9be['on']('execute',()=>_0x3cc241(_0x8d0d3['id'])),_0x24d9be['bind']('isEnabled')['to'](_0xa29baf,'enabledCommandsIds',_0x38b6d6=>_0x38b6d6['includes'](_0x8d0d3['id'])),_0x33886a['children']['add'](_0x24d9be),_0x33886a;});}}function getMenuDropdownDefinition(_0x9fc0f7){const _0x52e3cb=normalizeCommandsConfig(_0x9fc0f7['config']['get']('ai.assistant.commands'),_0x9fc0f7['locale']),_0x3da7a0=sortDefinitionsByOrder(_0x9fc0f7,_0x52e3cb)['filter'](_0x3d3df5=>_0x3d3df5['commands']['length']);return 0x1===_0x3da7a0['length']?sortDefinitionsByOrder(_0x9fc0f7,_0x3da7a0[0x0]['commands'])['map'](_0x436cbc=>({'id':_0x436cbc['id'],'label':_0x436cbc['label']})):_0x3da7a0['map'](_0x962649=>{const {groupId:_0x3f245f,groupLabel:_0x3fa51e,commands:_0x244a39}=_0x962649,_0x2c1c27=sortDefinitionsByOrder(_0x9fc0f7,_0x244a39)['map'](_0x3f7434=>({'id':_0x3f7434['id'],'label':_0x3f7434['label']}));return{'id':_0x3f245f,'menu':_0x3fa51e||_0x3f245f,'children':_0x2c1c27};});}function sortDefinitionsCallback(_0x9b3354,_0x3e8bd1){return void 0x0!==_0x9b3354['order']&&void 0x0===_0x3e8bd1['order']?0x1:void 0x0===_0x9b3354['order']&&void 0x0!==_0x3e8bd1['order']?-0x1:void 0x0!==_0x9b3354['order']&&void 0x0!==_0x3e8bd1['order']?_0x9b3354['order']-_0x3e8bd1['order']:0x0;}function sortDefinitionsByOrder(_0x41513f,_0x130601){_0x130601['sort'](sortDefinitionsCallback);const _0x49eb03={},_0x55c6e5=[];for(const _0x319a37 of _0x130601)if(void 0x0!==_0x319a37['order']){if(_0x319a37['order']in _0x49eb03)throw new CKEditorError('ai-commands-config-order-collision',_0x41513f,{'conflictingDefinitions':[_0x319a37,_0x49eb03[_0x319a37['order']]]});_0x49eb03[_0x319a37['order']]=_0x319a37,_0x55c6e5['splice'](_0x319a37['order'],0x0,_0x319a37);}else _0x55c6e5['push'](_0x319a37);return _0x55c6e5;}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(_0x5c91ae){super(_0x5c91ae);const _0x3b38b1=_0x5c91ae['config'],_0x582f9c=_0x5c91ae['locale'];_0x3b38b1['define']('ai.assistant.preserveComments',!0x0),_0x3b38b1['define']('ai.assistant.commands',getDefaultAICommands(_0x582f9c)),_0x3b38b1['define']('ai.assistant.extraCommandGroups',[]),_0x3b38b1['define']('ai.assistant.removeCommands',[]);let _0x38432e=normalizeCommandsConfig(_0x3b38b1['get']('ai.assistant.commands'),_0x582f9c);const _0x566537=_0x3b38b1['get']('ai.assistant.extraCommandGroups'),_0x5563c7=_0x3b38b1['get']('ai.assistant.removeCommands');_0x566537['forEach'](_0x2772b5=>{const _0x35543d=_0x38432e['find'](_0x31be2d=>_0x31be2d['groupId']===_0x2772b5['groupId']);_0x35543d?_0x35543d['commands']=_0x35543d['commands']['concat'](_0x2772b5['commands']):_0x38432e['push'](_0x2772b5);}),_0x38432e=_0x38432e['filter'](_0x136d28=>!_0x5563c7['includes'](_0x136d28['groupId'])),_0x38432e['forEach'](_0x32ac95=>{_0x32ac95['commands']=_0x32ac95['commands']['filter'](_0x4cf422=>!_0x5563c7['includes'](_0x4cf422['id']));}),_0x3b38b1['set']('ai.assistant.commands',_0x38432e);}}function getDefaultAICommands(_0x2cfde6){return[{'groupId':'editOrReview','groupLabel':getTranslation$j(_0x2cfde6,'Edit\x20or\x20review'),'commands':[{'id':'improveWriting','label':getTranslation$j(_0x2cfde6,'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(_0x2cfde6,'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(_0x2cfde6,'Make\x20longer'),'prompt':'Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.'},{'id':'simplifyLanguage','label':getTranslation$j(_0x2cfde6,'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(_0x2cfde6,'Generate\x20from\x20selection'),'commands':[{'id':'summarize','label':getTranslation$j(_0x2cfde6,'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(_0x2cfde6,'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(_0x2cfde6,'Change\x20tone'),'commands':[{'id':'professional','label':getTranslation$j(_0x2cfde6,'Professional'),'prompt':'Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'},{'id':'casual','label':getTranslation$j(_0x2cfde6,'Casual'),'prompt':'Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.'},{'id':'direct','label':getTranslation$j(_0x2cfde6,'Direct'),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':'confident','label':getTranslation$j(_0x2cfde6,'Confident'),'prompt':'Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'},{'id':'friendly','label':getTranslation$j(_0x2cfde6,'Friendly'),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':'changeStyle','groupLabel':getTranslation$j(_0x2cfde6,'Change\x20style'),'commands':[{'id':'business','label':getTranslation$j(_0x2cfde6,'Business'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.'},{'id':'legal','label':getTranslation$j(_0x2cfde6,'Legal'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.'},{'id':'journalism','label':getTranslation$j(_0x2cfde6,'Journalism'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':'poetic','label':getTranslation$j(_0x2cfde6,'Poetic'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'}]},{'groupId':'translate','groupLabel':getTranslation$j(_0x2cfde6,'Translate'),'commands':[{'id':'translateEnglish','label':getTranslation$j(_0x2cfde6,'English'),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':'translateSpanish','label':getTranslation$j(_0x2cfde6,'Spanish'),'prompt':'Translate\x20the\x20content\x20to\x20Spanish\x20language.'},{'id':'translatePortuguese','label':getTranslation$j(_0x2cfde6,'Portuguese'),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':'translateGerman','label':getTranslation$j(_0x2cfde6,'German'),'prompt':'Translate\x20the\x20content\x20to\x20German\x20language.'},{'id':'translateFrench','label':getTranslation$j(_0x2cfde6,'French'),'prompt':'Translate\x20the\x20content\x20to\x20French\x20language.'},{'id':'translateChinese','label':getTranslation$j(_0x2cfde6,'Simplified\x20Chinese'),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':'translateHindi','label':getTranslation$j(_0x2cfde6,'Hindi'),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':'translateArabic','label':getTranslation$j(_0x2cfde6,'Arabic'),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}];}class AITextAdapter extends Plugin{['abortController'];static get['requires'](){return[AIAdapter];}constructor(_0x176eea){super(_0x176eea),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'](_0x3b0811){return this['sendRequest'](_0x3b0811)['catch'](_0x547b78=>{if(_0x547b78 instanceof AIRequestError)return Promise['reject'](_0x547b78);if('AbortError'==_0x547b78['name'])return Promise['resolve']();throw console['error'](_0x547b78),new CKEditorError('aitextadapter-send-request-failed',null);});}async['_prepareRequestHeaders'](_0x4c0008,_0x17b494){const _0xde3ba1=this['editor']['locale'],_0x339c77={'Content-Type':'application/json'};if('object'==typeof _0x4c0008)Object['assign'](_0x339c77,_0x4c0008);else{if(_0x4c0008)try{const _0xb59f78=await _0x4c0008(_0x17b494);Object['assign'](_0x339c77,_0xb59f78);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0xde3ba1,'AI_ERROR_GET_HEADERS')));}}return _0x339c77;}async['_prepareRequestParameters'](_0x538a87,_0x50db67){const _0x4066a0=this['editor']['locale'];if('object'==typeof _0x538a87)return _0x538a87;try{return await _0x538a87(_0x50db67);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0x4066a0,'AI_ERROR_GET_PARAMETERS')));}}}class OpenAITextAdapter extends AITextAdapter{['_apiUrl'];['_requestHeaders'];['_requestParameters'];static get['pluginName'](){return'OpenAITextAdapter';}constructor(_0x3a41b6){super(_0x3a41b6),_0x3a41b6['config']['define']('ai.assistant.adapter.openAI.apiUrl','https://api.openai.com/v1/chat/completions'),_0x3a41b6['config']['get']('ai.assistant.adapter.openAI.requestParameters')||_0x3a41b6['config']['define']('ai.assistant.adapter.openAI.requestParameters',{'model':'gpt-4o','temperature':0x1,'top_p':0x1,'stream':!0x0}),this['_apiUrl']=_0x3a41b6['config']['get']('ai.assistant.adapter.openAI.apiUrl'),this['_requestHeaders']=_0x3a41b6['config']['get']('ai.assistant.adapter.openAI.requestHeaders')||{},this['_requestParameters']=_0x3a41b6['config']['get']('ai.assistant.adapter.openAI.requestParameters');}async['sendRequest']({query:_0x4ec2a9,context:_0x1e341a,onData:_0x4d85c3,actionId:_0x5f3447}){const _0x1d10e3=this['editor']['locale'],_0x43a470=await this['prepareMessages'](_0x4ec2a9,_0x1e341a,_0x5f3447),_0xeda146=await this['_prepareRequestHeaders'](this['_requestHeaders'],_0x5f3447),_0x3fc1ab=await this['_prepareRequestParameters'](this['_requestParameters'],_0x5f3447),_0x391dee={'messages':_0x43a470,..._0x3fc1ab},_0x47e17e={'method':'POST','headers':_0xeda146,'body':JSON['stringify'](_0x391dee),'signal':this['abortController']['signal']},_0x4756c9=await fetch(this['_apiUrl'],_0x47e17e);if(_0x4756c9['ok'])return _0x3fc1ab['stream']?await this['_readStreamableResponse'](_0x4756c9,_0x4d85c3):await this['_readStaticResponse'](_0x4756c9,_0x4d85c3),Promise['resolve']();{const _0x53bf3a=await _0x4756c9['text']();return _0x53bf3a['includes']('context_length_exceeded')?Promise['reject'](new AIRequestError(getTranslation$j(_0x1d10e3,'AI_ERROR_CONTEXT_LENGTH'))):_0x53bf3a['includes']('Moderation')?Promise['reject'](new AIRequestError(getTranslation$j(_0x1d10e3,'AI_ERROR_MODERATION'))):Promise['reject'](new Error(_0x53bf3a));}}async['prepareMessages'](_0x39b99c,_0xe499d8,_0x542cdb){let _0x350c63,_0x1fa39b;return _0xe499d8?(_0x350c63='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.',_0x1fa39b='Instruction:\x0a'+_0x39b99c+'\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'+_0xe499d8):(_0x350c63='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.',_0x1fa39b=_0x39b99c),[{'role':'system','content':_0x350c63},{'role':'user','content':_0x1fa39b}];}async['_readStreamableResponse'](_0x115427,_0xdd7fba){const _0x1b043d=_0x115427['body']['getReader'](),_0x29823e=new TextDecoder();let _0x2706d4='',_0x4ff410='',_0x37034c='',_0xd3a0c1=!0x1;for(;!_0xd3a0c1;){const {done:_0x25efe4,value:_0x4d3b5d}=await _0x1b043d['read'](),_0x22bd63=_0x2706d4+_0x29823e['decode'](_0x4d3b5d);let _0x37b6e0='';_0xd3a0c1=_0x25efe4;try{_0x37b6e0=this['_cleanUpData'](_0x22bd63),_0x2706d4='';}catch{_0x2706d4=_0x22bd63;continue;}_0x4ff410+=_0x37b6e0,!_0xd3a0c1&&this['_isBufferIncomplete'](_0x4ff410)||_0x4ff410&&(_0x37034c+=_0x4ff410,_0x4ff410='',_0xdd7fba(_0x37034c));}return Promise['resolve']();}async['_readStaticResponse'](_0x4c5299,_0x35407a){return _0x35407a((await _0x4c5299['json']())['choices'][0x0]['message']['content']),Promise['resolve']();}['_isBufferIncomplete'](_0x1f6432){const _0x27f24e=_0x1f6432['split']('<')['length']!==_0x1f6432['split']('>')['length'],_0x138b44=_0x1f6432['length']<0x1e;return _0x27f24e&&_0x138b44;}['_cleanUpData'](_0x373ae9){return _0x373ae9['split'](/\n(?![^{]*\})/g)['map'](_0x51d363=>_0x51d363['replace']('data:\x20',''))['filter'](_0x42334b=>_0x42334b&&_0x42334b['length']>0x0&&'[DONE]'!==_0x42334b)['map'](_0x2982a2=>{const {choices:_0x32aaa4}=JSON['parse'](_0x2982a2);if(_0x32aaa4[0x0]?.['delta']?.['content'])return _0x32aaa4[0x0]['delta']['content'];})['filter'](_0x2705fd=>_0x2705fd)['join']('');}}function resolveEventStreamConfig(_0x2e994e){const _0x2ceec7=_0x2e994e['signer'],_0x4079e9=_0x2e994e['signer'],_0x379f21=Object['assign'](_0x2e994e,{'eventSigner':_0x2ceec7,'messageSigner':_0x4079e9}),_0x32b275=_0x379f21['eventStreamPayloadHandlerProvider'](_0x379f21);return Object['assign'](_0x379f21,{'eventStreamPayloadHandler':_0x32b275});}const getHttpHandlerExtensionConfiguration=_0x1fb400=>({'setHttpHandler'(_0x32875c){_0x1fb400['httpHandler']=_0x32875c;},'httpHandler':()=>_0x1fb400['httpHandler'],'updateHttpClientConfig'(_0x116714,_0xedca12){_0x1fb400['httpHandler']?.['updateHttpClientConfig'](_0x116714,_0xedca12);},'httpHandlerConfigs':()=>_0x1fb400['httpHandler']['httpHandlerConfigs']()}),resolveHttpHandlerRuntimeConfig=_0x4c3080=>({'httpHandler':_0x4c3080['httpHandler']()});var EndpointURLScheme,AlgorithmId;!function(_0x24c37a){_0x24c37a['HTTP']='http',_0x24c37a['HTTPS']='https';}(EndpointURLScheme||(EndpointURLScheme={})),function(_0x4dee40){_0x4dee40['MD5']='md5',_0x4dee40['CRC32']='crc32',_0x4dee40['CRC32C']='crc32c',_0x4dee40['SHA1']='sha1',_0x4dee40['SHA256']='sha256';}(AlgorithmId||(AlgorithmId={}));const SMITHY_CONTEXT_KEY='__smithy_context';class HttpRequest{['method'];['protocol'];['hostname'];['port'];['path'];['query'];['headers'];['username'];['password'];['fragment'];['body'];constructor(_0x589030){this['method']=_0x589030['method']||'GET',this['hostname']=_0x589030['hostname']||'localhost',this['port']=_0x589030['port'],this['query']=_0x589030['query']||{},this['headers']=_0x589030['headers']||{},this['body']=_0x589030['body'],this['protocol']=_0x589030['protocol']?':'!==_0x589030['protocol']['slice'](-0x1)?_0x589030['protocol']+':':_0x589030['protocol']:'https:',this['path']=_0x589030['path']?'/'!==_0x589030['path']['charAt'](0x0)?'/'+_0x589030['path']:_0x589030['path']:'/',this['username']=_0x589030['username'],this['password']=_0x589030['password'],this['fragment']=_0x589030['fragment'];}static['clone'](_0x4061e5){const _0x229949=new HttpRequest({..._0x4061e5,'headers':{..._0x4061e5['headers']}});return _0x229949['query']&&(_0x229949['query']=cloneQuery(_0x229949['query'])),_0x229949;}static['isInstance'](_0x21d777){if(!_0x21d777)return!0x1;const _0x1a3f3a=_0x21d777;return'method'in _0x1a3f3a&&'protocol'in _0x1a3f3a&&'hostname'in _0x1a3f3a&&'path'in _0x1a3f3a&&'object'==typeof _0x1a3f3a['query']&&'object'==typeof _0x1a3f3a['headers'];}['clone'](){return HttpRequest['clone'](this);}}function cloneQuery(_0xf30c93){return Object['keys'](_0xf30c93)['reduce']((_0x270a26,_0x439eb7)=>{const _0x526dad=_0xf30c93[_0x439eb7];return{..._0x270a26,[_0x439eb7]:Array['isArray'](_0x526dad)?[..._0x526dad]:_0x526dad};},{});}class HttpResponse{['statusCode'];['reason'];['headers'];['body'];constructor(_0x584ae5){this['statusCode']=_0x584ae5['statusCode'],this['reason']=_0x584ae5['reason'],this['headers']=_0x584ae5['headers']||{},this['body']=_0x584ae5['body'];}static['isInstance'](_0x1808df){if(!_0x1808df)return!0x1;const _0x1de9b0=_0x1808df;return'number'==typeof _0x1de9b0['statusCode']&&'object'==typeof _0x1de9b0['headers'];}}function resolveHostHeaderConfig(_0x59e726){return _0x59e726;}const hostHeaderMiddleware=_0x1fb8c7=>_0x58447d=>async _0x47aa33=>{if(!HttpRequest['isInstance'](_0x47aa33['request']))return _0x58447d(_0x47aa33);const {request:_0x3fa197}=_0x47aa33,{handlerProtocol:_0x57bb07=''}=_0x1fb8c7['requestHandler']['metadata']||{};if(_0x57bb07['indexOf']('h2')>=0x0&&!_0x3fa197['headers'][':authority'])delete _0x3fa197['headers']['host'],_0x3fa197['headers'][':authority']=_0x3fa197['hostname']+(_0x3fa197['port']?':'+_0x3fa197['port']:'');else{if(!_0x3fa197['headers']['host']){let _0x4a940f=_0x3fa197['hostname'];null!=_0x3fa197['port']&&(_0x4a940f+=':'+_0x3fa197['port']),_0x3fa197['headers']['host']=_0x4a940f;}}return _0x58447d(_0x47aa33);},hostHeaderMiddlewareOptions={'name':'hostHeaderMiddleware','step':'build','priority':'low','tags':['HOST'],'override':!0x0},getHostHeaderPlugin=_0x3ed24d=>({'applyToStack':_0x4b450f=>{_0x4b450f['add'](hostHeaderMiddleware(_0x3ed24d),hostHeaderMiddlewareOptions);}}),loggerMiddleware=()=>(_0x256463,_0xc3c4ad)=>async _0x36a5c5=>{try{const _0xdfb3ed=await _0x256463(_0x36a5c5),{clientName:_0x3f1b1d,commandName:_0x5b4113,logger:_0x34e5d6,dynamoDbDocumentClientOptions:_0x4e38cd={}}=_0xc3c4ad,{overrideInputFilterSensitiveLog:_0x247027,overrideOutputFilterSensitiveLog:_0x562e42}=_0x4e38cd,_0x3e6d39=_0x247027??_0xc3c4ad['inputFilterSensitiveLog'],_0x567965=_0x562e42??_0xc3c4ad['outputFilterSensitiveLog'],{$metadata:_0x2ed8d1,..._0x41190f}=_0xdfb3ed['output'];return _0x34e5d6?.['info']?.({'clientName':_0x3f1b1d,'commandName':_0x5b4113,'input':_0x3e6d39(_0x36a5c5['input']),'output':_0x567965(_0x41190f),'metadata':_0x2ed8d1}),_0xdfb3ed;}catch(_0x41bf19){const {clientName:_0x47c9c3,commandName:_0xd17c07,logger:_0x19ff7f,dynamoDbDocumentClientOptions:_0x13bb19={}}=_0xc3c4ad,{overrideInputFilterSensitiveLog:_0x2baab9}=_0x13bb19,_0x55a74e=_0x2baab9??_0xc3c4ad['inputFilterSensitiveLog'];throw _0x19ff7f?.['error']?.({'clientName':_0x47c9c3,'commandName':_0xd17c07,'input':_0x55a74e(_0x36a5c5['input']),'error':_0x41bf19,'metadata':_0x41bf19['$metadata']}),_0x41bf19;}},loggerMiddlewareOptions={'name':'loggerMiddleware','tags':['LOGGER'],'step':'initialize','override':!0x0},getLoggerPlugin=_0x373698=>({'applyToStack':_0x50f78b=>{_0x50f78b['add'](loggerMiddleware(),loggerMiddlewareOptions);}}),recursionDetectionMiddlewareOptions={'step':'build','tags':['RECURSION_DETECTION'],'name':'recursionDetectionMiddleware','override':!0x0,'priority':'low'},recursionDetectionMiddleware=()=>_0x4926c2=>async _0x5d6395=>_0x4926c2(_0x5d6395),getRecursionDetectionPlugin=_0x402703=>({'applyToStack':_0x84cea2=>{_0x84cea2['add'](recursionDetectionMiddleware(),recursionDetectionMiddlewareOptions);}}),getSmithyContext=_0x5dc9c5=>_0x5dc9c5[SMITHY_CONTEXT_KEY]||(_0x5dc9c5[SMITHY_CONTEXT_KEY]={}),normalizeProvider$1=_0x287264=>{if('function'==typeof _0x287264)return _0x287264;const _0x5ecfd4=Promise['resolve'](_0x287264);return()=>_0x5ecfd4;},resolveAuthOptions=(_0xfdd119,_0x7ef4d)=>{if(!_0x7ef4d||0x0===_0x7ef4d['length'])return _0xfdd119;const _0x13a668=[];for(const _0x286a4f of _0x7ef4d)for(const _0x864228 of _0xfdd119){_0x864228['schemeId']['split']('#')[0x1]===_0x286a4f&&_0x13a668['push'](_0x864228);}for(const _0x542dbe of _0xfdd119)_0x13a668['find'](({schemeId:_0x53e897})=>_0x53e897===_0x542dbe['schemeId'])||_0x13a668['push'](_0x542dbe);return _0x13a668;};function convertHttpAuthSchemesToMap(_0x997b9e){const _0x3afb09=new Map();for(const _0x1efc2c of _0x997b9e)_0x3afb09['set'](_0x1efc2c['schemeId'],_0x1efc2c);return _0x3afb09;}const httpAuthSchemeMiddleware=(_0x12d513,_0x447f83)=>(_0x6c7ea6,_0x58d236)=>async _0x368354=>{const _0x5507ff=_0x12d513['httpAuthSchemeProvider'](await _0x447f83['httpAuthSchemeParametersProvider'](_0x12d513,_0x58d236,_0x368354['input'])),_0x1282cf=_0x12d513['authSchemePreference']?await _0x12d513['authSchemePreference']():[],_0x2e640d=resolveAuthOptions(_0x5507ff,_0x1282cf),_0x48846e=convertHttpAuthSchemesToMap(_0x12d513['httpAuthSchemes']),_0x37b61a=getSmithyContext(_0x58d236),_0x371530=[];for(const _0x485890 of _0x2e640d){const _0x3c194d=_0x48846e['get'](_0x485890['schemeId']);if(!_0x3c194d){_0x371530['push']('HttpAuthScheme\x20`'+_0x485890['schemeId']+'`\x20was\x20not\x20enabled\x20for\x20this\x20service.');continue;}const _0x25821c=_0x3c194d['identityProvider'](await _0x447f83['identityProviderConfigProvider'](_0x12d513));if(!_0x25821c){_0x371530['push']('HttpAuthScheme\x20`'+_0x485890['schemeId']+'`\x20did\x20not\x20have\x20an\x20IdentityProvider\x20configured.');continue;}const {identityProperties:_0x57a662={},signingProperties:_0x19b3f6={}}=_0x485890['propertiesExtractor']?.(_0x12d513,_0x58d236)||{};_0x485890['identityProperties']=Object['assign'](_0x485890['identityProperties']||{},_0x57a662),_0x485890['signingProperties']=Object['assign'](_0x485890['signingProperties']||{},_0x19b3f6),_0x37b61a['selectedHttpAuthScheme']={'httpAuthOption':_0x485890,'identity':await _0x25821c(_0x485890['identityProperties']),'signer':_0x3c194d['signer']};break;}if(!_0x37b61a['selectedHttpAuthScheme'])throw new Error(_0x371530['join']('\x0a'));return _0x6c7ea6(_0x368354);},httpAuthSchemeEndpointRuleSetMiddlewareOptions={'step':'serialize','tags':['HTTP_AUTH_SCHEME'],'name':'httpAuthSchemeMiddleware','override':!0x0,'relation':'before','toMiddleware':'endpointV2Middleware'},getHttpAuthSchemeEndpointRuleSetPlugin=(_0x2d2a87,{httpAuthSchemeParametersProvider:_0x18d672,identityProviderConfigProvider:_0xecf86})=>({'applyToStack':_0x125b77=>{_0x125b77['addRelativeTo'](httpAuthSchemeMiddleware(_0x2d2a87,{'httpAuthSchemeParametersProvider':_0x18d672,'identityProviderConfigProvider':_0xecf86}),httpAuthSchemeEndpointRuleSetMiddlewareOptions);}}),serializerMiddlewareOption$1={'name':'serializerMiddleware'},defaultErrorHandler=_0x55feb3=>_0x3b8be7=>{throw _0x3b8be7;},defaultSuccessHandler=(_0x4199d5,_0x1f2424)=>{},httpSigningMiddleware=_0x24524f=>(_0x340c7d,_0x17d5b0)=>async _0xe2f26c=>{if(!HttpRequest['isInstance'](_0xe2f26c['request']))return _0x340c7d(_0xe2f26c);const _0x1ab80b=getSmithyContext(_0x17d5b0)['selectedHttpAuthScheme'];if(!_0x1ab80b)throw new Error('No\x20HttpAuthScheme\x20was\x20selected:\x20unable\x20to\x20sign\x20request');const {httpAuthOption:{signingProperties:_0x3bd428={}},identity:_0x289dfe,signer:_0x561031}=_0x1ab80b,_0x3a9e4e=await _0x340c7d({..._0xe2f26c,'request':await _0x561031['sign'](_0xe2f26c['request'],_0x289dfe,_0x3bd428)})['catch']((_0x561031['errorHandler']||defaultErrorHandler)(_0x3bd428));return(_0x561031['successHandler']||defaultSuccessHandler)(_0x3a9e4e['response'],_0x3bd428),_0x3a9e4e;},httpSigningMiddlewareOptions={'step':'finalizeRequest','tags':['HTTP_SIGNING'],'name':'httpSigningMiddleware','aliases':['apiKeyMiddleware','tokenMiddleware','awsAuthMiddleware'],'override':!0x0,'relation':'after','toMiddleware':'retryMiddleware'},getHttpSigningPlugin=_0x48824d=>({'applyToStack':_0x7a66bb=>{_0x7a66bb['addRelativeTo'](httpSigningMiddleware(),httpSigningMiddlewareOptions);}}),normalizeProvider=_0x26dfea=>{if('function'==typeof _0x26dfea)return _0x26dfea;const _0x3e9230=Promise['resolve'](_0x26dfea);return()=>_0x3e9230;},chars$1='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',alphabetByEncoding=Object['entries'](chars$1)['reduce']((_0x50ac46,[_0x439bf1,_0x4f102c])=>(_0x50ac46[_0x4f102c]=Number(_0x439bf1),_0x50ac46),{}),alphabetByValue=chars$1['split'](''),bitsPerLetter=0x6,bitsPerByte=0x8,maxLetterValue=0x3f,fromBase64=_0x55ee99=>{let _0x130923=_0x55ee99['length']/0x4*0x3;'=='===_0x55ee99['slice'](-0x2)?_0x130923-=0x2:'='===_0x55ee99['slice'](-0x1)&&_0x130923--;const _0x3a5979=new ArrayBuffer(_0x130923),_0x6dc39f=new DataView(_0x3a5979);for(let _0x21f9a4=0x0;_0x21f9a4<_0x55ee99['length'];_0x21f9a4+=0x4){let _0x39ca54=0x0,_0x4f2a0f=0x0;for(let _0x114779=_0x21f9a4,_0x56aa95=_0x21f9a4+0x3;_0x114779<=_0x56aa95;_0x114779++)if('='!==_0x55ee99[_0x114779]){if(!(_0x55ee99[_0x114779]in alphabetByEncoding))throw new TypeError('Invalid\x20character\x20'+_0x55ee99[_0x114779]+'\x20in\x20base64\x20string.');_0x39ca54|=alphabetByEncoding[_0x55ee99[_0x114779]]<<(_0x56aa95-_0x114779)*bitsPerLetter,_0x4f2a0f+=bitsPerLetter;}else _0x39ca54>>=bitsPerLetter;const _0xd76d59=_0x21f9a4/0x4*0x3;_0x39ca54>>=_0x4f2a0f%bitsPerByte;const _0x2a0d80=Math['floor'](_0x4f2a0f/bitsPerByte);for(let _0x2acc3b=0x0;_0x2acc3b<_0x2a0d80;_0x2acc3b++){const _0x28d3a4=(_0x2a0d80-_0x2acc3b-0x1)*bitsPerByte;_0x6dc39f['setUint8'](_0xd76d59+_0x2acc3b,(_0x39ca54&0xff<<_0x28d3a4)>>_0x28d3a4);}}return new Uint8Array(_0x3a5979);},fromUtf8$2=_0x53b632=>new TextEncoder()['encode'](_0x53b632),toUint8Array=_0x1af561=>'string'==typeof _0x1af561?fromUtf8$2(_0x1af561):ArrayBuffer['isView'](_0x1af561)?new Uint8Array(_0x1af561['buffer'],_0x1af561['byteOffset'],_0x1af561['byteLength']/Uint8Array['BYTES_PER_ELEMENT']):new Uint8Array(_0x1af561),toUtf8=_0x3bfa04=>{if('string'==typeof _0x3bfa04)return _0x3bfa04;if('object'!=typeof _0x3bfa04||'number'!=typeof _0x3bfa04['byteOffset']||'number'!=typeof _0x3bfa04['byteLength'])throw new Error('@smithy/util-utf8:\x20toUtf8\x20encoder\x20function\x20only\x20accepts\x20string\x20|\x20Uint8Array.');return new TextDecoder('utf-8')['decode'](_0x3bfa04);};function toBase64(_0x4c22e7){let _0x515b7c;_0x515b7c='string'==typeof _0x4c22e7?fromUtf8$2(_0x4c22e7):_0x4c22e7;const _0x38d9c6='object'==typeof _0x515b7c&&'number'==typeof _0x515b7c['length'],_0x2ab4cf='object'==typeof _0x515b7c&&'number'==typeof _0x515b7c['byteOffset']&&'number'==typeof _0x515b7c['byteLength'];if(!_0x38d9c6&&!_0x2ab4cf)throw new Error('@smithy/util-base64:\x20toBase64\x20encoder\x20function\x20only\x20accepts\x20string\x20|\x20Uint8Array.');let _0x41387c='';for(let _0x28217e=0x0;_0x28217e<_0x515b7c['length'];_0x28217e+=0x3){let _0x1e9369=0x0,_0x3fbbc0=0x0;for(let _0x63c34e=_0x28217e,_0xd94b4b=Math['min'](_0x28217e+0x3,_0x515b7c['length']);_0x63c34e<_0xd94b4b;_0x63c34e++)_0x1e9369|=_0x515b7c[_0x63c34e]<<(_0xd94b4b-_0x63c34e-0x1)*bitsPerByte,_0x3fbbc0+=bitsPerByte;const _0x42e303=Math['ceil'](_0x3fbbc0/bitsPerLetter);_0x1e9369<<=_0x42e303*bitsPerLetter-_0x3fbbc0;for(let _0x477483=0x1;_0x477483<=_0x42e303;_0x477483++){const _0x25485c=(_0x42e303-_0x477483)*bitsPerLetter;_0x41387c+=alphabetByValue[(_0x1e9369&maxLetterValue<<_0x25485c)>>_0x25485c];}_0x41387c+='=='['slice'](0x0,0x4-_0x42e303);}return _0x41387c;}class Uint8ArrayBlobAdapter extends Uint8Array{static['fromString'](_0x6803bf,_0x1b62c5='utf-8'){if('string'==typeof _0x6803bf)return'base64'===_0x1b62c5?Uint8ArrayBlobAdapter['mutate'](fromBase64(_0x6803bf)):Uint8ArrayBlobAdapter['mutate'](fromUtf8$2(_0x6803bf));throw new Error('Unsupported\x20conversion\x20from\x20'+typeof _0x6803bf+'\x20to\x20Uint8ArrayBlobAdapter.');}static['mutate'](_0x54b915){return Object['setPrototypeOf'](_0x54b915,Uint8ArrayBlobAdapter['prototype']),_0x54b915;}['transformToString'](_0x681896='utf-8'){return'base64'===_0x681896?toBase64(this):toUtf8(this);}}const isReadableStream$2=_0x23a6e7=>'function'==typeof ReadableStream&&(_0x23a6e7?.['constructor']?.['name']===ReadableStream['name']||_0x23a6e7 instanceof ReadableStream),escapeUri=_0x356522=>encodeURIComponent(_0x356522)['replace'](/[!'()*]/g,hexEncode),hexEncode=_0x361183=>'%'+_0x361183['charCodeAt'](0x0)['toString'](0x10)['toUpperCase']();function buildQueryString(_0x46fd09){const _0x3a6fe9=[];for(let _0x20dc8c of Object['keys'](_0x46fd09)['sort']()){const _0x919934=_0x46fd09[_0x20dc8c];if(_0x20dc8c=escapeUri(_0x20dc8c),Array['isArray'](_0x919934)){for(let _0x4a1c9c=0x0,_0x59172c=_0x919934['length'];_0x4a1c9c<_0x59172c;_0x4a1c9c++)_0x3a6fe9['push'](_0x20dc8c+'='+escapeUri(_0x919934[_0x4a1c9c]));}else{let _0x2849d8=_0x20dc8c;(_0x919934||'string'==typeof _0x919934)&&(_0x2849d8+='='+escapeUri(_0x919934)),_0x3a6fe9['push'](_0x2849d8);}}return _0x3a6fe9['join']('&');}function createRequest(_0x28ddcc,_0x6bc361){return new Request(_0x28ddcc,_0x6bc361);}function requestTimeout(_0x5bc4f0=0x0){return new Promise((_0x5aa3db,_0x2e15a6)=>{_0x5bc4f0&&setTimeout(()=>{const _0x23a21d=new Error('Request\x20did\x20not\x20complete\x20within\x20'+_0x5bc4f0+'\x20ms');_0x23a21d['name']='TimeoutError',_0x2e15a6(_0x23a21d);},_0x5bc4f0);});}const keepAliveSupport={'supported':void 0x0};class FetchHttpHandler{['config'];['configProvider'];static['create'](_0x470d69){return'function'==typeof _0x470d69?.['handle']?_0x470d69:new FetchHttpHandler(_0x470d69);}constructor(_0x79157e){'function'==typeof _0x79157e?this['configProvider']=_0x79157e()['then'](_0x18d6f3=>_0x18d6f3||{}):(this['config']=_0x79157e??{},this['configProvider']=Promise['resolve'](this['config'])),void 0x0===keepAliveSupport['supported']&&(keepAliveSupport['supported']=Boolean('undefined'!=typeof Request&&'keepalive'in createRequest('https://[::1]')));}['destroy'](){}async['handle'](_0x3752d1,{abortSignal:_0x28426e,requestTimeout:_0x738b45}={}){this['config']||(this['config']=await this['configProvider']);const _0x59095c=_0x738b45??this['config']['requestTimeout'],_0x398030=!0x0===this['config']['keepAlive'],_0x5b3502=this['config']['credentials'];if(_0x28426e?.['aborted']){const _0x19beda=new Error('Request\x20aborted');return _0x19beda['name']='AbortError',Promise['reject'](_0x19beda);}let _0x1e08b5=_0x3752d1['path'];const _0x14e287=buildQueryString(_0x3752d1['query']||{});_0x14e287&&(_0x1e08b5+='?'+_0x14e287),_0x3752d1['fragment']&&(_0x1e08b5+='#'+_0x3752d1['fragment']);let _0x480bb0='';(null!=_0x3752d1['username']||null!=_0x3752d1['password'])&&(_0x480bb0=(_0x3752d1['username']??'')+':'+(_0x3752d1['password']??'')+'@');const {port:_0x568ccc,method:_0x3802d4}=_0x3752d1,_0x785453=_0x3752d1['protocol']+'//'+_0x480bb0+_0x3752d1['hostname']+(_0x568ccc?':'+_0x568ccc:'')+_0x1e08b5,_0xf39758='GET'===_0x3802d4||'HEAD'===_0x3802d4?void 0x0:_0x3752d1['body'],_0x41ad42={'body':_0xf39758,'headers':new Headers(_0x3752d1['headers']),'method':_0x3802d4,'credentials':_0x5b3502};this['config']?.['cache']&&(_0x41ad42['cache']=this['config']['cache']),_0xf39758&&(_0x41ad42['duplex']='half'),'undefined'!=typeof AbortController&&(_0x41ad42['signal']=_0x28426e),keepAliveSupport['supported']&&(_0x41ad42['keepalive']=_0x398030),'function'==typeof this['config']['requestInit']&&Object['assign'](_0x41ad42,this['config']['requestInit'](_0x3752d1));let _0x3a1ba7=()=>{};const _0xefd3d8=createRequest(_0x785453,_0x41ad42),_0x8f925a=[fetch(_0xefd3d8)['then'](_0x1fc30a=>{const _0xbd6d9=_0x1fc30a['headers'],_0x15dda2={};for(const _0x3552c9 of _0xbd6d9['entries']())_0x15dda2[_0x3552c9[0x0]]=_0x3552c9[0x1];return null!=_0x1fc30a['body']?{'response':new HttpResponse({'headers':_0x15dda2,'reason':_0x1fc30a['statusText'],'statusCode':_0x1fc30a['status'],'body':_0x1fc30a['body']})}:_0x1fc30a['blob']()['then'](_0x210c75=>({'response':new HttpResponse({'headers':_0x15dda2,'reason':_0x1fc30a['statusText'],'statusCode':_0x1fc30a['status'],'body':_0x210c75})}));}),requestTimeout(_0x59095c)];return _0x28426e&&_0x8f925a['push'](new Promise((_0x1f0c6a,_0x1e7858)=>{const _0x1490d6=()=>{const _0x26a2e2=new Error('Request\x20aborted');_0x26a2e2['name']='AbortError',_0x1e7858(_0x26a2e2);};if('function'==typeof _0x28426e['addEventListener']){const _0x1884c6=_0x28426e;_0x1884c6['addEventListener']('abort',_0x1490d6,{'once':!0x0}),_0x3a1ba7=()=>_0x1884c6['removeEventListener']('abort',_0x1490d6);}else _0x28426e['onabort']=_0x1490d6;})),Promise['race'](_0x8f925a)['finally'](_0x3a1ba7);}['updateHttpClientConfig'](_0x1c3b87,_0x27ed4b){this['config']=void 0x0,this['configProvider']=this['configProvider']['then'](_0x35f5fe=>(_0x35f5fe[_0x1c3b87]=_0x27ed4b,_0x35f5fe));}['httpHandlerConfigs'](){return this['config']??{};}}const streamCollector=async _0x4b6856=>'function'==typeof Blob&&_0x4b6856 instanceof Blob||'Blob'===_0x4b6856['constructor']?.['name']?void 0x0!==Blob['prototype']['arrayBuffer']?new Uint8Array(await _0x4b6856['arrayBuffer']()):collectBlob(_0x4b6856):collectStream(_0x4b6856);async function collectBlob(_0x25b536){const _0x5b2875=await readToBase64(_0x25b536),_0x489a9d=fromBase64(_0x5b2875);return new Uint8Array(_0x489a9d);}async function collectStream(_0x1e86d4){const _0x7ca351=[],_0x4d0c47=_0x1e86d4['getReader']();let _0x1715d6=!0x1,_0x51aebe=0x0;for(;!_0x1715d6;){const {done:_0x427e08,value:_0x106634}=await _0x4d0c47['read']();_0x106634&&(_0x7ca351['push'](_0x106634),_0x51aebe+=_0x106634['length']),_0x1715d6=_0x427e08;}const _0x9f84f3=new Uint8Array(_0x51aebe);let _0xbb9eb6=0x0;for(const _0x5a4c18 of _0x7ca351)_0x9f84f3['set'](_0x5a4c18,_0xbb9eb6),_0xbb9eb6+=_0x5a4c18['length'];return _0x9f84f3;}function readToBase64(_0x1480f7){return new Promise((_0x33a6df,_0x527f17)=>{const _0x37461c=new FileReader();_0x37461c['onloadend']=()=>{if(0x2!==_0x37461c['readyState'])return _0x527f17(new Error('Reader\x20aborted\x20too\x20early'));const _0x52fd7e=_0x37461c['result']??'',_0x39d9bc=_0x52fd7e['indexOf'](','),_0x2dac1e=_0x39d9bc>-0x1?_0x39d9bc+0x1:_0x52fd7e['length'];_0x33a6df(_0x52fd7e['substring'](_0x2dac1e));},_0x37461c['onabort']=()=>_0x527f17(new Error('Read\x20aborted')),_0x37461c['onerror']=()=>_0x527f17(_0x37461c['error']),_0x37461c['readAsDataURL'](_0x1480f7);});}const SHORT_TO_HEX={},HEX_TO_SHORT={};for(let e=0x0;e<0x100;e++){let i=e['toString'](0x10)['toLowerCase']();0x1===i['length']&&(i='0'+i),SHORT_TO_HEX[e]=i,HEX_TO_SHORT[i]=e;}function fromHex(_0x5d77c4){if(_0x5d77c4['length']%0x2!=0x0)throw new Error('Hex\x20encoded\x20strings\x20must\x20have\x20an\x20even\x20number\x20length');const _0x43d5b9=new Uint8Array(_0x5d77c4['length']/0x2);for(let _0x538d8e=0x0;_0x538d8e<_0x5d77c4['length'];_0x538d8e+=0x2){const _0xd66258=_0x5d77c4['slice'](_0x538d8e,_0x538d8e+0x2)['toLowerCase']();if(!(_0xd66258 in HEX_TO_SHORT))throw new Error('Cannot\x20decode\x20unrecognized\x20sequence\x20'+_0xd66258+'\x20as\x20hexadecimal');_0x43d5b9[_0x538d8e/0x2]=HEX_TO_SHORT[_0xd66258];}return _0x43d5b9;}function toHex(_0x3f3893){let _0x5b69c8='';for(let _0x1f0ca9=0x0;_0x1f0ca9<_0x3f3893['byteLength'];_0x1f0ca9++)_0x5b69c8+=SHORT_TO_HEX[_0x3f3893[_0x1f0ca9]];return _0x5b69c8;}const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED='The\x20stream\x20has\x20already\x20been\x20transformed.',sdkStreamMixin=_0xe2284=>{if(!isBlobInstance(_0xe2284)&&!isReadableStream$2(_0xe2284))throw new Error('Unexpected\x20stream\x20implementation,\x20expect\x20Blob\x20or\x20ReadableStream,\x20got\x20'+(_0xe2284?.['__proto__']?.['constructor']?.['name']||_0xe2284));let _0x3863ba=!0x1;const _0x13ba7d=async()=>{if(_0x3863ba)throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);return _0x3863ba=!0x0,await streamCollector(_0xe2284);};return Object['assign'](_0xe2284,{'transformToByteArray':_0x13ba7d,'transformToString':async _0x113d60=>{const _0x644c2a=await _0x13ba7d();if('base64'===_0x113d60)return toBase64(_0x644c2a);if('hex'===_0x113d60)return toHex(_0x644c2a);if(void 0x0===_0x113d60||'utf8'===_0x113d60||'utf-8'===_0x113d60)return toUtf8(_0x644c2a);if('function'==typeof TextDecoder)return new TextDecoder(_0x113d60)['decode'](_0x644c2a);throw new Error('TextDecoder\x20is\x20not\x20available,\x20please\x20make\x20sure\x20polyfill\x20is\x20provided.');},'transformToWebStream':()=>{if(_0x3863ba)throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);if(_0x3863ba=!0x0,isBlobInstance(_0xe2284))return(_0x33e4c0=>{if('function'!=typeof _0x33e4c0['stream'])throw new Error('Cannot\x20transform\x20payload\x20Blob\x20to\x20web\x20stream.\x20Please\x20make\x20sure\x20the\x20Blob.stream()\x20is\x20polyfilled.\x0aIf\x20you\x20are\x20using\x20React\x20Native,\x20this\x20API\x20is\x20not\x20yet\x20supported,\x20see:\x20https://react-native.canny.io/feature-requests/p/fetch-streaming-body');return _0x33e4c0['stream']();})(_0xe2284);if(isReadableStream$2(_0xe2284))return _0xe2284;throw new Error('Cannot\x20transform\x20payload\x20to\x20web\x20stream,\x20got\x20'+_0xe2284);}});},isBlobInstance=_0x65e58a=>'function'==typeof Blob&&_0x65e58a instanceof Blob,collectBody=async(_0x955a53=new Uint8Array(),_0x5eacdc)=>{if(_0x955a53 instanceof Uint8Array)return Uint8ArrayBlobAdapter['mutate'](_0x955a53);if(!_0x955a53)return Uint8ArrayBlobAdapter['mutate'](new Uint8Array());const _0x32dba1=_0x5eacdc['streamCollector'](_0x955a53);return Uint8ArrayBlobAdapter['mutate'](await _0x32dba1);};function extendedEncodeURIComponent(_0x5dcb5e){return encodeURIComponent(_0x5dcb5e)['replace'](/[!'()*]/g,function(_0x3abcfa){return'%'+_0x3abcfa['charCodeAt'](0x0)['toString'](0x10)['toUpperCase']();});}const deref=_0x236eb8=>'function'==typeof _0x236eb8?_0x236eb8():_0x236eb8,operation=(_0x51080a,_0x4ef6b4,_0x3f5984,_0x5486db,_0x5b02e4)=>({'name':_0x4ef6b4,'namespace':_0x51080a,'traits':_0x3f5984,'input':_0x5486db,'output':_0x5b02e4}),schemaDeserializationMiddleware=_0x5433c3=>(_0x1054d9,_0x633b07)=>async _0x7ee003=>{const {response:_0x3f8f2f}=await _0x1054d9(_0x7ee003),{operationSchema:_0xd28fad}=getSmithyContext(_0x633b07),[,_0x2123b6,_0xd39792,t,_0x4be4ba,_0x1518a6]=_0xd28fad??[];try{return{'response':_0x3f8f2f,'output':await _0x5433c3['protocol']['deserializeResponse'](operation(_0x2123b6,_0xd39792,t,_0x4be4ba,_0x1518a6),{..._0x5433c3,..._0x633b07},_0x3f8f2f)};}catch(_0xa89b77){if(Object['defineProperty'](_0xa89b77,'$response',{'value':_0x3f8f2f,'enumerable':!0x1,'writable':!0x1,'configurable':!0x1}),!('$metadata'in _0xa89b77)){const _0x26d29='Deserialization\x20error:\x20to\x20see\x20the\x20raw\x20response,\x20inspect\x20the\x20hidden\x20field\x20{error}.$response\x20on\x20this\x20object.';try{_0xa89b77['message']+='\x0a\x20\x20'+_0x26d29;}catch(_0x30829c){_0x633b07['logger']&&'NoOpLogger'!==_0x633b07['logger']?.['constructor']?.['name']?_0x633b07['logger']?.['warn']?.(_0x26d29):console['warn'](_0x26d29);}void 0x0!==_0xa89b77['$responseBodyText']&&_0xa89b77['$response']&&(_0xa89b77['$response']['body']=_0xa89b77['$responseBodyText']);try{if(HttpResponse['isInstance'](_0x3f8f2f)){const {headers:_0x48f673={}}=_0x3f8f2f,_0x5db0c2=Object['entries'](_0x48f673);_0xa89b77['$metadata']={'httpStatusCode':_0x3f8f2f['statusCode'],'requestId':findHeader(/^x-[\w-]+-request-?id$/,_0x5db0c2),'extendedRequestId':findHeader(/^x-[\w-]+-id-2$/,_0x5db0c2),'cfId':findHeader(/^x-[\w-]+-cf-id$/,_0x5db0c2)};}}catch(_0x432068){}}throw _0xa89b77;}},findHeader=(_0x4a98b1,_0x2489ad)=>(_0x2489ad['find'](([_0x5463b0])=>_0x5463b0['match'](_0x4a98b1))||[void 0x0,void 0x0])[0x1],schemaSerializationMiddleware=_0x8c75a=>(_0x3814bc,_0x5b7d73)=>async _0x48c036=>{const {operationSchema:_0x1ef788}=getSmithyContext(_0x5b7d73),[,_0x57c029,_0x5ef854,t,_0x2f41d5,_0x2abaee]=_0x1ef788??[],_0x5ef87c=_0x5b7d73['endpointV2']?.['url']&&_0x8c75a['urlParser']?async()=>_0x8c75a['urlParser'](_0x5b7d73['endpointV2']['url']):_0x8c75a['endpoint'],_0x3fb5a5=await _0x8c75a['protocol']['serializeRequest'](operation(_0x57c029,_0x5ef854,t,_0x2f41d5,_0x2abaee),_0x48c036['input'],{..._0x8c75a,..._0x5b7d73,'endpoint':_0x5ef87c});return _0x3814bc({..._0x48c036,'request':_0x3fb5a5});},deserializerMiddlewareOption={'name':'deserializerMiddleware','step':'deserialize','tags':['DESERIALIZER'],'override':!0x0},serializerMiddlewareOption={'name':'serializerMiddleware','step':'serialize','tags':['SERIALIZER'],'override':!0x0};function getSchemaSerdePlugin(_0x2c6740){return{'applyToStack':_0x535701=>{_0x535701['add'](schemaSerializationMiddleware(_0x2c6740),serializerMiddlewareOption),_0x535701['add'](schemaDeserializationMiddleware(_0x2c6740),deserializerMiddlewareOption),_0x2c6740['protocol']['setSerdeContext'](_0x2c6740);}};}function translateTraits(_0x3e1319){if('object'==typeof _0x3e1319)return _0x3e1319;_0x3e1319|=0x0;const _0xb62f40={};let _0x1cd138=0x0;for(const _0x539f92 of['httpLabel','idempotent','idempotencyToken','sensitive','httpPayload','httpResponseCode','httpQueryParams'])0x1==(_0x3e1319>>_0x1cd138++&0x1)&&(_0xb62f40[_0x539f92]=0x1);return _0xb62f40;}const anno={'it':Symbol['for']('@smithy/nor-struct-it')};class NormalizedSchema{['ref'];['memberName'];static ['symbol']=Symbol['for']('@smithy/nor');['symbol']=NormalizedSchema['symbol'];['name'];['schema'];['_isMemberSchema'];['traits'];['memberTraits'];['normalizedTraits'];constructor(_0x42eeb7,_0x5d8df4){this['ref']=_0x42eeb7,this['memberName']=_0x5d8df4;const _0x2cb517=[];let _0x4d73b1=_0x42eeb7,_0x1c5a19=_0x42eeb7;for(this['_isMemberSchema']=!0x1;isMemberSchema(_0x4d73b1);)_0x2cb517['push'](_0x4d73b1[0x1]),_0x4d73b1=_0x4d73b1[0x0],_0x1c5a19=deref(_0x4d73b1),this['_isMemberSchema']=!0x0;if(_0x2cb517['length']>0x0){this['memberTraits']={};for(let _0xae154e=_0x2cb517['length']-0x1;_0xae154e>=0x0;--_0xae154e){const _0x44be8a=_0x2cb517[_0xae154e];Object['assign'](this['memberTraits'],translateTraits(_0x44be8a));}}else this['memberTraits']=0x0;if(_0x1c5a19 instanceof NormalizedSchema){const _0x25e089=this['memberTraits'];return Object['assign'](this,_0x1c5a19),this['memberTraits']=Object['assign']({},_0x25e089,_0x1c5a19['getMemberTraits'](),this['getMemberTraits']()),this['normalizedTraits']=void 0x0,void(this['memberName']=_0x5d8df4??_0x1c5a19['memberName']);}if(this['schema']=deref(_0x1c5a19),isStaticSchema(this['schema'])?(this['name']=this['schema'][0x1]+'#'+this['schema'][0x2],this['traits']=this['schema'][0x3]):(this['name']=this['memberName']??String(_0x1c5a19),this['traits']=0x0),this['_isMemberSchema']&&!_0x5d8df4)throw new Error('@smithy/core/schema\x20-\x20NormalizedSchema\x20member\x20init\x20'+this['getName'](!0x0)+'\x20missing\x20member\x20name.');}static[Symbol['hasInstance']](_0x568536){const _0x4746b9=this['prototype']['isPrototypeOf'](_0x568536);if(!_0x4746b9&&'object'==typeof _0x568536&&null!==_0x568536)return _0x568536['symbol']===this['symbol'];return _0x4746b9;}static['of'](_0x25dc27){const _0x4050ae=deref(_0x25dc27);if(_0x4050ae instanceof NormalizedSchema)return _0x4050ae;if(isMemberSchema(_0x4050ae)){const [_0x5e8a44,_0x36e5ad]=_0x4050ae;if(_0x5e8a44 instanceof NormalizedSchema)return Object['assign'](_0x5e8a44['getMergedTraits'](),translateTraits(_0x36e5ad)),_0x5e8a44;throw new Error('@smithy/core/schema\x20-\x20may\x20not\x20init\x20unwrapped\x20member\x20schema='+JSON['stringify'](_0x25dc27,null,0x2)+'.');}return new NormalizedSchema(_0x4050ae);}['getSchema'](){const _0x55fbef=this['schema'];return Array['isArray'](_0x55fbef)&&0x0===_0x55fbef[0x0]?_0x55fbef[0x4]:_0x55fbef;}['getName'](_0x545a65=!0x1){const {name:_0x798037}=this;return!_0x545a65&&_0x798037&&_0x798037['includes']('#')?_0x798037['split']('#')[0x1]:_0x798037||void 0x0;}['getMemberName'](){return this['memberName'];}['isMemberSchema'](){return this['_isMemberSchema'];}['isListSchema'](){const _0x498530=this['getSchema']();return'number'==typeof _0x498530?_0x498530>=0x40&&_0x498530<0x80:0x1===_0x498530[0x0];}['isMapSchema'](){const _0x35c4bf=this['getSchema']();return'number'==typeof _0x35c4bf?_0x35c4bf>=0x80&&_0x35c4bf<=0xff:0x2===_0x35c4bf[0x0];}['isStructSchema'](){const _0x11c2da=this['getSchema']();if('object'!=typeof _0x11c2da)return!0x1;const _0x5311ae=_0x11c2da[0x0];return 0x3===_0x5311ae||-0x3===_0x5311ae||0x4===_0x5311ae;}['isUnionSchema'](){const _0xa0d205=this['getSchema']();return'object'==typeof _0xa0d205&&0x4===_0xa0d205[0x0];}['isBlobSchema'](){const _0x1b746c=this['getSchema']();return 0x15===_0x1b746c||0x2a===_0x1b746c;}['isTimestampSchema'](){const _0x190b27=this['getSchema']();return'number'==typeof _0x190b27&&_0x190b27>=0x4&&_0x190b27<=0x7;}['isUnitSchema'](){return'unit'===this['getSchema']();}['isDocumentSchema'](){return 0xf===this['getSchema']();}['isStringSchema'](){return 0x0===this['getSchema']();}['isBooleanSchema'](){return 0x2===this['getSchema']();}['isNumericSchema'](){return 0x1===this['getSchema']();}['isBigIntegerSchema'](){return 0x11===this['getSchema']();}['isBigDecimalSchema'](){return 0x13===this['getSchema']();}['isStreaming'](){const {streaming:_0x532671}=this['getMergedTraits']();return!!_0x532671||0x2a===this['getSchema']();}['isIdempotencyToken'](){return!!this['getMergedTraits']()['idempotencyToken'];}['getMergedTraits'](){return this['normalizedTraits']??(this['normalizedTraits']={...this['getOwnTraits'](),...this['getMemberTraits']()});}['getMemberTraits'](){return translateTraits(this['memberTraits']);}['getOwnTraits'](){return translateTraits(this['traits']);}['getKeySchema'](){const [_0x126650,_0x470b14]=[this['isDocumentSchema'](),this['isMapSchema']()];if(!_0x126650&&!_0x470b14)throw new Error('@smithy/core/schema\x20-\x20cannot\x20get\x20key\x20for\x20non-map:\x20'+this['getName'](!0x0));const _0x30492a=this['getSchema']();return member([_0x126650?0xf:_0x30492a[0x4]??0x0,0x0],'key');}['getValueSchema'](){const _0x1fc4bb=this['getSchema'](),[_0xf04d5a,_0x104229,_0xa7dcfc]=[this['isDocumentSchema'](),this['isMapSchema'](),this['isListSchema']()],_0x22a33c='number'==typeof _0x1fc4bb?0x3f&_0x1fc4bb:_0x1fc4bb&&'object'==typeof _0x1fc4bb&&(_0x104229||_0xa7dcfc)?_0x1fc4bb[0x3+_0x1fc4bb[0x0]]:_0xf04d5a?0xf:void 0x0;if(null!=_0x22a33c)return member([_0x22a33c,0x0],_0x104229?'value':'member');throw new Error('@smithy/core/schema\x20-\x20'+this['getName'](!0x0)+'\x20has\x20no\x20value\x20member.');}['getMemberSchema'](_0x454aa3){const _0x143e50=this['getSchema']();if(this['isStructSchema']()&&_0x143e50[0x4]['includes'](_0x454aa3)){const _0x14d63a=_0x143e50[0x4]['indexOf'](_0x454aa3),_0x16f051=_0x143e50[0x5][_0x14d63a];return member(isMemberSchema(_0x16f051)?_0x16f051:[_0x16f051,0x0],_0x454aa3);}if(this['isDocumentSchema']())return member([0xf,0x0],_0x454aa3);throw new Error('@smithy/core/schema\x20-\x20'+this['getName'](!0x0)+'\x20has\x20no\x20no\x20member='+_0x454aa3+'.');}['getMemberSchemas'](){const _0x23c506={};try{for(const [_0x160a18,_0x28589f]of this['structIterator']())_0x23c506[_0x160a18]=_0x28589f;}catch(_0x950f33){}return _0x23c506;}['getEventStreamMember'](){if(this['isStructSchema']()){for(const [_0x5a9a80,_0x11f423]of this['structIterator']())if(_0x11f423['isStreaming']()&&_0x11f423['isStructSchema']())return _0x5a9a80;}return'';}*['structIterator'](){if(this['isUnitSchema']())return;if(!this['isStructSchema']())throw new Error('@smithy/core/schema\x20-\x20cannot\x20iterate\x20non-struct\x20schema.');const _0x4eae0e=this['getSchema'](),_0x1c2e8f=_0x4eae0e[0x4]['length'];let _0x507cbf=_0x4eae0e[anno['it']];if(_0x507cbf&&_0x1c2e8f===_0x507cbf['length'])yield*_0x507cbf;else{_0x507cbf=Array(_0x1c2e8f);for(let _0x3efc8c=0x0;_0x3efc8c<_0x1c2e8f;++_0x3efc8c){const _0x3446cd=_0x4eae0e[0x4][_0x3efc8c],_0x2da973=member([_0x4eae0e[0x5][_0x3efc8c],0x0],_0x3446cd);yield _0x507cbf[_0x3efc8c]=[_0x3446cd,_0x2da973];}_0x4eae0e[anno['it']]=_0x507cbf;}}}function member(_0x3b78df,_0x32243b){if(_0x3b78df instanceof NormalizedSchema)return Object['assign'](_0x3b78df,{'memberName':_0x32243b,'_isMemberSchema':!0x0});return new NormalizedSchema(_0x3b78df,_0x32243b);}const isMemberSchema=_0x4ea98e=>Array['isArray'](_0x4ea98e)&&0x2===_0x4ea98e['length'],isStaticSchema=_0xde2b85=>Array['isArray'](_0xde2b85)&&_0xde2b85['length']>=0x5;class TypeRegistry{['namespace'];['schemas'];['exceptions'];static ['registries']=new Map();constructor(_0x23cfc4,_0x55009a=new Map(),_0x1a4033=new Map()){this['namespace']=_0x23cfc4,this['schemas']=_0x55009a,this['exceptions']=_0x1a4033;}static['for'](_0xeb54ee){return TypeRegistry['registries']['has'](_0xeb54ee)||TypeRegistry['registries']['set'](_0xeb54ee,new TypeRegistry(_0xeb54ee)),TypeRegistry['registries']['get'](_0xeb54ee);}['copyFrom'](_0x46e36a){const {schemas:_0x1c86d5,exceptions:_0x4c5fe2}=this;for(const [_0x344395,_0x5e8fc2]of _0x46e36a['schemas'])_0x1c86d5['has'](_0x344395)||_0x1c86d5['set'](_0x344395,_0x5e8fc2);for(const [_0x44bbdb,_0x112a27]of _0x46e36a['exceptions'])_0x4c5fe2['has'](_0x44bbdb)||_0x4c5fe2['set'](_0x44bbdb,_0x112a27);}['register'](_0x2bdc02,_0x5511e2){const _0x33c905=this['normalizeShapeId'](_0x2bdc02);for(const _0x2ac0b7 of[this,TypeRegistry['for'](_0x33c905['split']('#')[0x0])])_0x2ac0b7['schemas']['set'](_0x33c905,_0x5511e2);}['getSchema'](_0x2cccc0){const _0x596ae2=this['normalizeShapeId'](_0x2cccc0);if(!this['schemas']['has'](_0x596ae2))throw new Error('@smithy/core/schema\x20-\x20schema\x20not\x20found\x20for\x20'+_0x596ae2);return this['schemas']['get'](_0x596ae2);}['registerError'](_0x21db87,_0x454036){const _0x368052=_0x21db87,_0x427699=_0x368052[0x1];for(const _0x5d4703 of[this,TypeRegistry['for'](_0x427699)])_0x5d4703['schemas']['set'](_0x427699+'#'+_0x368052[0x2],_0x368052),_0x5d4703['exceptions']['set'](_0x368052,_0x454036);}['getErrorCtor'](_0x5f3d38){const _0x2ffc9a=_0x5f3d38;if(this['exceptions']['has'](_0x2ffc9a))return this['exceptions']['get'](_0x2ffc9a);return TypeRegistry['for'](_0x2ffc9a[0x1])['exceptions']['get'](_0x2ffc9a);}['getBaseException'](){for(const _0x5d9c86 of this['exceptions']['keys']())if(Array['isArray'](_0x5d9c86)){const [,_0x4869df,_0x3b79e4]=_0x5d9c86,_0x2b4b09=_0x4869df+'#'+_0x3b79e4;if(_0x2b4b09['startsWith']('smithy.ts.sdk.synthetic.')&&_0x2b4b09['endsWith']('ServiceException'))return _0x5d9c86;}}['find'](_0x12264f){return[...this['schemas']['values']()]['find'](_0x12264f);}['clear'](){this['schemas']['clear'](),this['exceptions']['clear']();}['normalizeShapeId'](_0x1f22a6){return _0x1f22a6['includes']('#')?_0x1f22a6:this['namespace']+'#'+_0x1f22a6;}}const expectNumber=_0x3c4d77=>{if(null!=_0x3c4d77){if('string'==typeof _0x3c4d77){const _0x2eadbe=parseFloat(_0x3c4d77);if(!Number['isNaN'](_0x2eadbe))return String(_0x2eadbe)!==String(_0x3c4d77)&&logger['warn'](stackTraceWarning('Expected\x20number\x20but\x20observed\x20string:\x20'+_0x3c4d77)),_0x2eadbe;}if('number'==typeof _0x3c4d77)return _0x3c4d77;throw new TypeError('Expected\x20number,\x20got\x20'+typeof _0x3c4d77+':\x20'+_0x3c4d77);}},MAX_FLOAT=Math['ceil'](0x2**0x7f*(0x2-0x2**-0x17)),expectFloat32=_0xd4566f=>{const _0x49f5af=expectNumber(_0xd4566f);if(void 0x0!==_0x49f5af&&!Number['isNaN'](_0x49f5af)&&_0x49f5af!==0x1/0x0&&_0x49f5af!==-0x1/0x0&&Math['abs'](_0x49f5af)>MAX_FLOAT)throw new TypeError('Expected\x2032-bit\x20float,\x20got\x20'+_0xd4566f);return _0x49f5af;},expectLong=_0xb2d8f1=>{if(null!=_0xb2d8f1){if(Number['isInteger'](_0xb2d8f1)&&!Number['isNaN'](_0xb2d8f1))return _0xb2d8f1;throw new TypeError('Expected\x20integer,\x20got\x20'+typeof _0xb2d8f1+':\x20'+_0xb2d8f1);}},expectShort=_0x1c540f=>expectSizedInt(_0x1c540f,0x10),expectByte=_0x548574=>expectSizedInt(_0x548574,0x8),expectSizedInt=(_0x380a5c,_0x3a20d7)=>{const _0x233a24=expectLong(_0x380a5c);if(void 0x0!==_0x233a24&&castInt(_0x233a24,_0x3a20d7)!==_0x233a24)throw new TypeError('Expected\x20'+_0x3a20d7+'-bit\x20integer,\x20got\x20'+_0x380a5c);return _0x233a24;},castInt=(_0x524280,_0x26ff3d)=>{switch(_0x26ff3d){case 0x20:return Int32Array['of'](_0x524280)[0x0];case 0x10:return Int16Array['of'](_0x524280)[0x0];case 0x8:return Int8Array['of'](_0x524280)[0x0];}},strictParseDouble=_0x31e1fc=>expectNumber('string'==typeof _0x31e1fc?parseNumber(_0x31e1fc):_0x31e1fc),strictParseFloat32=_0x5d686b=>expectFloat32('string'==typeof _0x5d686b?parseNumber(_0x5d686b):_0x5d686b),NUMBER_REGEX=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,parseNumber=_0x57afba=>{const _0x1de52c=_0x57afba['match'](NUMBER_REGEX);if(null===_0x1de52c||_0x1de52c[0x0]['length']!==_0x57afba['length'])throw new TypeError('Expected\x20real\x20number,\x20got\x20implicit\x20NaN');return parseFloat(_0x57afba);},strictParseShort=_0x113051=>expectShort('string'==typeof _0x113051?parseNumber(_0x113051):_0x113051),strictParseByte=_0x42b74c=>expectByte('string'==typeof _0x42b74c?parseNumber(_0x42b74c):_0x42b74c),stackTraceWarning=_0x4f5664=>String(new TypeError(_0x4f5664)['stack']||_0x4f5664)['split']('\x0a')['slice'](0x0,0x5)['filter'](_0x591f79=>!_0x591f79['includes']('stackTraceWarning'))['join']('\x0a'),logger={'warn':console['warn']},DAYS=['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],MONTHS=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];function dateToUtcString(_0xa88c39){const _0x101c71=_0xa88c39['getUTCFullYear'](),_0x407d00=_0xa88c39['getUTCMonth'](),_0x5178d7=_0xa88c39['getUTCDay'](),_0x36988f=_0xa88c39['getUTCDate'](),_0x283a2e=_0xa88c39['getUTCHours'](),_0x1653b6=_0xa88c39['getUTCMinutes'](),_0x2213be=_0xa88c39['getUTCSeconds'](),_0x3d0d40=_0x36988f<0xa?'0'+_0x36988f:''+_0x36988f,_0x270e09=_0x283a2e<0xa?'0'+_0x283a2e:''+_0x283a2e,_0x2a6ee9=_0x1653b6<0xa?'0'+_0x1653b6:''+_0x1653b6,_0x538a38=_0x2213be<0xa?'0'+_0x2213be:''+_0x2213be;return DAYS[_0x5178d7]+',\x20'+_0x3d0d40+'\x20'+MONTHS[_0x407d00]+'\x20'+_0x101c71+'\x20'+_0x270e09+':'+_0x2a6ee9+':'+_0x538a38+'\x20GMT';}const RFC3339_WITH_OFFSET$1=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),parseRfc3339DateTimeWithOffset=_0x25656d=>{if(null==_0x25656d)return;if('string'!=typeof _0x25656d)throw new TypeError('RFC-3339\x20date-times\x20must\x20be\x20expressed\x20as\x20strings');const _0x1e86dc=RFC3339_WITH_OFFSET$1['exec'](_0x25656d);if(!_0x1e86dc)throw new TypeError('Invalid\x20RFC-3339\x20date-time\x20value');const [_0x1c63c4,_0x325a91,_0x58faae,_0x5c892e,_0x1bef33,_0x39d849,_0x16c23e,_0x2bd427,_0x3c40ab]=_0x1e86dc,_0x5ade30=strictParseShort(stripLeadingZeroes(_0x325a91)),_0x1be865=parseDateValue(_0x58faae,'month',0x1,0xc),_0x56cfe9=parseDateValue(_0x5c892e,'day',0x1,0x1f),_0x56b370=buildDate(_0x5ade30,_0x1be865,_0x56cfe9,{'hours':_0x1bef33,'minutes':_0x39d849,'seconds':_0x16c23e,'fractionalMilliseconds':_0x2bd427});return'Z'!=_0x3c40ab['toUpperCase']()&&_0x56b370['setTime'](_0x56b370['getTime']()-parseOffsetToMilliseconds(_0x3c40ab)),_0x56b370;},IMF_FIXDATE$1=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),RFC_850_DATE$1=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),ASC_TIME$1=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),parseRfc7231DateTime=_0x1726eb=>{if(null==_0x1726eb)return;if('string'!=typeof _0x1726eb)throw new TypeError('RFC-7231\x20date-times\x20must\x20be\x20expressed\x20as\x20strings');let _0xb52d5e=IMF_FIXDATE$1['exec'](_0x1726eb);if(_0xb52d5e){const [_0x2e889a,_0x2f2ec9,_0x31dbc4,_0x112c04,_0x23146c,_0x2b4070,_0x26865c,_0x5df636]=_0xb52d5e;return buildDate(strictParseShort(stripLeadingZeroes(_0x112c04)),parseMonthByShortName(_0x31dbc4),parseDateValue(_0x2f2ec9,'day',0x1,0x1f),{'hours':_0x23146c,'minutes':_0x2b4070,'seconds':_0x26865c,'fractionalMilliseconds':_0x5df636});}if(_0xb52d5e=RFC_850_DATE$1['exec'](_0x1726eb),_0xb52d5e){const [_0x53dab0,_0xa27a53,_0x771e12,_0x827ffb,_0x40675e,_0x5ae8b8,_0xac2262,_0x11e0ce]=_0xb52d5e;return adjustRfc850Year(buildDate(parseTwoDigitYear(_0x827ffb),parseMonthByShortName(_0x771e12),parseDateValue(_0xa27a53,'day',0x1,0x1f),{'hours':_0x40675e,'minutes':_0x5ae8b8,'seconds':_0xac2262,'fractionalMilliseconds':_0x11e0ce}));}if(_0xb52d5e=ASC_TIME$1['exec'](_0x1726eb),_0xb52d5e){const [_0x375447,_0x2017e9,_0x154970,_0x27be44,_0x202cda,_0x3cbdda,_0x430293,_0x481584]=_0xb52d5e;return buildDate(strictParseShort(stripLeadingZeroes(_0x481584)),parseMonthByShortName(_0x2017e9),parseDateValue(_0x154970['trimLeft'](),'day',0x1,0x1f),{'hours':_0x27be44,'minutes':_0x202cda,'seconds':_0x3cbdda,'fractionalMilliseconds':_0x430293});}throw new TypeError('Invalid\x20RFC-7231\x20date-time\x20value');},parseEpochTimestamp=_0x324504=>{if(null==_0x324504)return;let _0x344502;if('number'==typeof _0x324504)_0x344502=_0x324504;else{if('string'==typeof _0x324504)_0x344502=strictParseDouble(_0x324504);else{if('object'!=typeof _0x324504||0x1!==_0x324504['tag'])throw new TypeError('Epoch\x20timestamps\x20must\x20be\x20expressed\x20as\x20floating\x20point\x20numbers\x20or\x20their\x20string\x20representation');_0x344502=_0x324504['value'];}}if(Number['isNaN'](_0x344502)||_0x344502===0x1/0x0||_0x344502===-0x1/0x0)throw new TypeError('Epoch\x20timestamps\x20must\x20be\x20valid,\x20non-Infinite,\x20non-NaN\x20numerics');return new Date(Math['round'](0x3e8*_0x344502));},buildDate=(_0x771a2f,_0x45fe17,_0x5495d3,_0x5765c6)=>{const _0x26b895=_0x45fe17-0x1;return validateDayOfMonth(_0x771a2f,_0x26b895,_0x5495d3),new Date(Date['UTC'](_0x771a2f,_0x26b895,_0x5495d3,parseDateValue(_0x5765c6['hours'],'hour',0x0,0x17),parseDateValue(_0x5765c6['minutes'],'minute',0x0,0x3b),parseDateValue(_0x5765c6['seconds'],'seconds',0x0,0x3c),parseMilliseconds(_0x5765c6['fractionalMilliseconds'])));},parseTwoDigitYear=_0x4ccdad=>{const _0xf5d064=new Date()['getUTCFullYear'](),_0x25b325=0x64*Math['floor'](_0xf5d064/0x64)+strictParseShort(stripLeadingZeroes(_0x4ccdad));return _0x25b325<_0xf5d064?_0x25b325+0x64:_0x25b325;},FIFTY_YEARS_IN_MILLIS=0x16f209a9800,adjustRfc850Year=_0x59ce0f=>_0x59ce0f['getTime']()-new Date()['getTime']()>FIFTY_YEARS_IN_MILLIS?new Date(Date['UTC'](_0x59ce0f['getUTCFullYear']()-0x64,_0x59ce0f['getUTCMonth'](),_0x59ce0f['getUTCDate'](),_0x59ce0f['getUTCHours'](),_0x59ce0f['getUTCMinutes'](),_0x59ce0f['getUTCSeconds'](),_0x59ce0f['getUTCMilliseconds']())):_0x59ce0f,parseMonthByShortName=_0x4ddfb7=>{const _0x23d109=MONTHS['indexOf'](_0x4ddfb7);if(_0x23d109<0x0)throw new TypeError('Invalid\x20month:\x20'+_0x4ddfb7);return _0x23d109+0x1;},DAYS_IN_MONTH=[0x1f,0x1c,0x1f,0x1e,0x1f,0x1e,0x1f,0x1f,0x1e,0x1f,0x1e,0x1f],validateDayOfMonth=(_0x532e06,_0x19cc5e,_0x30e508)=>{let _0x31fcd9=DAYS_IN_MONTH[_0x19cc5e];if(0x1===_0x19cc5e&&isLeapYear$1(_0x532e06)&&(_0x31fcd9=0x1d),_0x30e508>_0x31fcd9)throw new TypeError('Invalid\x20day\x20for\x20'+MONTHS[_0x19cc5e]+'\x20in\x20'+_0x532e06+':\x20'+_0x30e508);},isLeapYear$1=_0x13c897=>_0x13c897%0x4==0x0&&(_0x13c897%0x64!=0x0||_0x13c897%0x190==0x0),parseDateValue=(_0x1bef5e,_0x1a7db9,_0x547408,_0x3b1137)=>{const _0xa2566b=strictParseByte(stripLeadingZeroes(_0x1bef5e));if(_0xa2566b<_0x547408||_0xa2566b>_0x3b1137)throw new TypeError(_0x1a7db9+'\x20must\x20be\x20between\x20'+_0x547408+'\x20and\x20'+_0x3b1137+',\x20inclusive');return _0xa2566b;},parseMilliseconds=_0x28756a=>null==_0x28756a?0x0:0x3e8*strictParseFloat32('0.'+_0x28756a),parseOffsetToMilliseconds=_0x56438d=>{const _0x5f22c2=_0x56438d[0x0];let _0x237bce=0x1;if('+'==_0x5f22c2)_0x237bce=0x1;else{if('-'!=_0x5f22c2)throw new TypeError('Offset\x20direction,\x20'+_0x5f22c2+',\x20must\x20be\x20\x22+\x22\x20or\x20\x22-\x22');_0x237bce=-0x1;}return _0x237bce*(0x3c*Number(_0x56438d['substring'](0x1,0x3))+Number(_0x56438d['substring'](0x4,0x6)))*0x3c*0x3e8;},stripLeadingZeroes=_0x4422d=>{let _0x48420f=0x0;for(;_0x48420f<_0x4422d['length']-0x1&&'0'===_0x4422d['charAt'](_0x48420f);)_0x48420f++;return 0x0===_0x48420f?_0x4422d:_0x4422d['slice'](_0x48420f);},randomUUID$1='undefined'!=typeof crypto&&crypto['randomUUID']&&crypto['randomUUID']['bind'](crypto),decimalToHex=Array['from']({'length':0x100},(_0x498db1,_0x529b4b)=>_0x529b4b['toString'](0x10)['padStart'](0x2,'0')),v4$1=()=>{if(randomUUID$1)return randomUUID$1();const _0x5eb4f4=new Uint8Array(0x10);return crypto['getRandomValues'](_0x5eb4f4),_0x5eb4f4[0x6]=0xf&_0x5eb4f4[0x6]|0x40,_0x5eb4f4[0x8]=0x3f&_0x5eb4f4[0x8]|0x80,decimalToHex[_0x5eb4f4[0x0]]+decimalToHex[_0x5eb4f4[0x1]]+decimalToHex[_0x5eb4f4[0x2]]+decimalToHex[_0x5eb4f4[0x3]]+'-'+decimalToHex[_0x5eb4f4[0x4]]+decimalToHex[_0x5eb4f4[0x5]]+'-'+decimalToHex[_0x5eb4f4[0x6]]+decimalToHex[_0x5eb4f4[0x7]]+'-'+decimalToHex[_0x5eb4f4[0x8]]+decimalToHex[_0x5eb4f4[0x9]]+'-'+decimalToHex[_0x5eb4f4[0xa]]+decimalToHex[_0x5eb4f4[0xb]]+decimalToHex[_0x5eb4f4[0xc]]+decimalToHex[_0x5eb4f4[0xd]]+decimalToHex[_0x5eb4f4[0xe]]+decimalToHex[_0x5eb4f4[0xf]];},LazyJsonString=function(_0xde7dcf){return Object['assign'](new String(_0xde7dcf),{'deserializeJSON':()=>JSON['parse'](String(_0xde7dcf)),'toString':()=>String(_0xde7dcf),'toJSON':()=>String(_0xde7dcf)});};function quoteHeader(_0x19d9db){return(_0x19d9db['includes'](',')||_0x19d9db['includes']('\x22'))&&(_0x19d9db='\x22'+_0x19d9db['replace'](/"/g,'\x5c\x22')+'\x22'),_0x19d9db;}LazyJsonString['from']=_0x25836a=>_0x25836a&&'object'==typeof _0x25836a&&(_0x25836a instanceof LazyJsonString||'deserializeJSON'in _0x25836a)?_0x25836a:'string'==typeof _0x25836a||Object['getPrototypeOf'](_0x25836a)===String['prototype']?LazyJsonString(String(_0x25836a)):LazyJsonString(JSON['stringify'](_0x25836a)),LazyJsonString['fromObject']=LazyJsonString['from'];const ddd='(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?',mmm='(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)',time='(\x5cd?\x5cd):(\x5cd{2}):(\x5cd{2})(?:\x5c.(\x5cd+))?',date='(\x5cd?\x5cd)',year='(\x5cd{4})',RFC3339_WITH_OFFSET=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),IMF_FIXDATE=new RegExp('^'+ddd+',\x20'+date+'\x20'+mmm+'\x20'+year+'\x20'+time+'\x20GMT$'),RFC_850_DATE=new RegExp('^'+ddd+',\x20'+date+'-'+mmm+'-(\x5cd\x5cd)\x20'+time+'\x20GMT$'),ASC_TIME=new RegExp('^'+ddd+'\x20'+mmm+'\x20(\x20[1-9]|\x5cd\x5cd)\x20'+time+'\x20'+year+'$'),months$1=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],_parseEpochTimestamp=_0x557cfd=>{if(null==_0x557cfd)return;let _0x4f49db=NaN;if('number'==typeof _0x557cfd)_0x4f49db=_0x557cfd;else{if('string'==typeof _0x557cfd){if(!/^-?\d*\.?\d+$/['test'](_0x557cfd))throw new TypeError('parseEpochTimestamp\x20-\x20numeric\x20string\x20invalid.');_0x4f49db=Number['parseFloat'](_0x557cfd);}else'object'==typeof _0x557cfd&&0x1===_0x557cfd['tag']&&(_0x4f49db=_0x557cfd['value']);}if(isNaN(_0x4f49db)||Math['abs'](_0x4f49db)===0x1/0x0)throw new TypeError('Epoch\x20timestamps\x20must\x20be\x20valid\x20finite\x20numbers.');return new Date(Math['round'](0x3e8*_0x4f49db));},_parseRfc3339DateTimeWithOffset=_0x348f7c=>{if(null==_0x348f7c)return;if('string'!=typeof _0x348f7c)throw new TypeError('RFC3339\x20timestamps\x20must\x20be\x20strings');const _0x25d07f=RFC3339_WITH_OFFSET['exec'](_0x348f7c);if(!_0x25d07f)throw new TypeError('Invalid\x20RFC3339\x20timestamp\x20format\x20'+_0x348f7c);const [,_0x31252,_0x50c787,_0xbbbba8,_0xaf31f5,_0x3ba153,_0x35a297,,_0x3886dc,_0x2b30b7]=_0x25d07f;range$1(_0x50c787,0x1,0xc),range$1(_0xbbbba8,0x1,0x1f),range$1(_0xaf31f5,0x0,0x17),range$1(_0x3ba153,0x0,0x3b),range$1(_0x35a297,0x0,0x3c);const _0xc6d492=new Date(Date['UTC'](Number(_0x31252),Number(_0x50c787)-0x1,Number(_0xbbbba8),Number(_0xaf31f5),Number(_0x3ba153),Number(_0x35a297),Number(_0x3886dc)?Math['round'](0x3e8*parseFloat('0.'+_0x3886dc)):0x0));if(_0xc6d492['setUTCFullYear'](Number(_0x31252)),'Z'!=_0x2b30b7['toUpperCase']()){const [,_0x301325,_0x3e2b4f,_0x2f4bb8]=/([+-])(\d\d):(\d\d)/['exec'](_0x2b30b7)||[void 0x0,'+',0x0,0x0],_0x5c4c17='-'===_0x301325?0x1:-0x1;_0xc6d492['setTime'](_0xc6d492['getTime']()+_0x5c4c17*(0x3c*Number(_0x3e2b4f)*0x3c*0x3e8+0x3c*Number(_0x2f4bb8)*0x3e8));}return _0xc6d492;},_parseRfc7231DateTime=_0x26bda5=>{if(null==_0x26bda5)return;if('string'!=typeof _0x26bda5)throw new TypeError('RFC7231\x20timestamps\x20must\x20be\x20strings.');let _0x4112d3,_0xd1d66c,_0x27df65,_0x4a331f,_0x19fe39,_0x3d3f54,_0x2cddfa,_0x46b87a;if((_0x46b87a=IMF_FIXDATE['exec'](_0x26bda5))?[,_0x4112d3,_0xd1d66c,_0x27df65,_0x4a331f,_0x19fe39,_0x3d3f54,_0x2cddfa]=_0x46b87a:(_0x46b87a=RFC_850_DATE['exec'](_0x26bda5))?([,_0x4112d3,_0xd1d66c,_0x27df65,_0x4a331f,_0x19fe39,_0x3d3f54,_0x2cddfa]=_0x46b87a,_0x27df65=(Number(_0x27df65)+0x76c)['toString']()):(_0x46b87a=ASC_TIME['exec'](_0x26bda5))&&([,_0xd1d66c,_0x4112d3,_0x4a331f,_0x19fe39,_0x3d3f54,_0x2cddfa,_0x27df65]=_0x46b87a),_0x27df65&&_0x3d3f54){const _0x3ce9b3=Date['UTC'](Number(_0x27df65),months$1['indexOf'](_0xd1d66c),Number(_0x4112d3),Number(_0x4a331f),Number(_0x19fe39),Number(_0x3d3f54),_0x2cddfa?Math['round'](0x3e8*parseFloat('0.'+_0x2cddfa)):0x0);range$1(_0x4112d3,0x1,0x1f),range$1(_0x4a331f,0x0,0x17),range$1(_0x19fe39,0x0,0x3b),range$1(_0x3d3f54,0x0,0x3c);const _0x264814=new Date(_0x3ce9b3);return _0x264814['setUTCFullYear'](Number(_0x27df65)),_0x264814;}throw new TypeError('Invalid\x20RFC7231\x20date-time\x20value\x20'+_0x26bda5+'.');};function range$1(_0x131006,_0x2c6fe1,_0x332db5){const _0x1d90ef=Number(_0x131006);if(_0x1d90ef<_0x2c6fe1||_0x1d90ef>_0x332db5)throw new Error('Value\x20'+_0x1d90ef+'\x20out\x20of\x20range\x20['+_0x2c6fe1+',\x20'+_0x332db5+']');}function splitEvery(_0x4bea3c,_0x5531a4,_0x4d280b){if(!Number['isInteger'](_0x4d280b))throw new Error('Invalid\x20number\x20of\x20delimiters\x20('+_0x4d280b+')\x20for\x20splitEvery.');const _0x54bdf1=_0x4bea3c['split'](_0x5531a4),_0x439c12=[];let _0x54dc99='';for(let _0x17ea49=0x0;_0x17ea49<_0x54bdf1['length'];_0x17ea49++)''===_0x54dc99?_0x54dc99=_0x54bdf1[_0x17ea49]:_0x54dc99+=_0x5531a4+_0x54bdf1[_0x17ea49],(_0x17ea49+0x1)%_0x4d280b===0x0&&(_0x439c12['push'](_0x54dc99),_0x54dc99='');return''!==_0x54dc99&&_0x439c12['push'](_0x54dc99),_0x439c12;}const splitHeader=_0x9e66cb=>{const _0x395dbe=_0x9e66cb['length'],_0x12e8a8=[];let _0x4c9a6a,_0x28218f=!0x1,_0x5e40c2=0x0;for(let _0x12e9e6=0x0;_0x12e9e6<_0x395dbe;++_0x12e9e6){const _0x44330a=_0x9e66cb[_0x12e9e6];switch(_0x44330a){case'\x22':'\x5c'!==_0x4c9a6a&&(_0x28218f=!_0x28218f);break;case',':_0x28218f||(_0x12e8a8['push'](_0x9e66cb['slice'](_0x5e40c2,_0x12e9e6)),_0x5e40c2=_0x12e9e6+0x1);}_0x4c9a6a=_0x44330a;}return _0x12e8a8['push'](_0x9e66cb['slice'](_0x5e40c2)),_0x12e8a8['map'](_0x1d40b7=>{const _0xed4ca5=(_0x1d40b7=_0x1d40b7['trim']())['length'];return _0xed4ca5<0x2?_0x1d40b7:('\x22'===_0x1d40b7[0x0]&&'\x22'===_0x1d40b7[_0xed4ca5-0x1]&&(_0x1d40b7=_0x1d40b7['slice'](0x1,_0xed4ca5-0x1)),_0x1d40b7['replace'](/\\"/g,'\x22'));});},format=/^-?\d*(\.\d+)?$/;class NumericValue{['string'];['type'];constructor(_0x48c31c,_0x3fc908){if(this['string']=_0x48c31c,this['type']=_0x3fc908,!format['test'](_0x48c31c))throw new Error('@smithy/core/serde\x20-\x20NumericValue\x20must\x20only\x20contain\x20[0-9],\x20at\x20most\x20one\x20decimal\x20point\x20\x22.\x22,\x20and\x20an\x20optional\x20negation\x20prefix\x20\x22-\x22.');}['toString'](){return this['string'];}static[Symbol['hasInstance']](_0x138290){if(!_0x138290||'object'!=typeof _0x138290)return!0x1;const _0x4c2c59=_0x138290;return NumericValue['prototype']['isPrototypeOf'](_0x138290)||'bigDecimal'===_0x4c2c59['type']&&format['test'](_0x4c2c59['string']);}}class SerdeContext{['serdeContext'];['setSerdeContext'](_0x4348b3){this['serdeContext']=_0x4348b3;}}class HttpProtocol extends SerdeContext{['options'];['compositeErrorRegistry'];constructor(_0x2885b9){super(),this['options']=_0x2885b9,this['compositeErrorRegistry']=TypeRegistry['for'](_0x2885b9['defaultNamespace']);for(const _0x2e6a12 of _0x2885b9['errorTypeRegistries']??[])this['compositeErrorRegistry']['copyFrom'](_0x2e6a12);}['getRequestType'](){return HttpRequest;}['getResponseType'](){return HttpResponse;}['setSerdeContext'](_0x1b3df1){this['serdeContext']=_0x1b3df1,this['serializer']['setSerdeContext'](_0x1b3df1),this['deserializer']['setSerdeContext'](_0x1b3df1),this['getPayloadCodec']()&&this['getPayloadCodec']()['setSerdeContext'](_0x1b3df1);}['updateServiceEndpoint'](_0x2f2af5,_0x14f6d0){if('url'in _0x14f6d0){_0x2f2af5['protocol']=_0x14f6d0['url']['protocol'],_0x2f2af5['hostname']=_0x14f6d0['url']['hostname'],_0x2f2af5['port']=_0x14f6d0['url']['port']?Number(_0x14f6d0['url']['port']):void 0x0,_0x2f2af5['path']=_0x14f6d0['url']['pathname'],_0x2f2af5['fragment']=_0x14f6d0['url']['hash']||void 0x0,_0x2f2af5['username']=_0x14f6d0['url']['username']||void 0x0,_0x2f2af5['password']=_0x14f6d0['url']['password']||void 0x0,_0x2f2af5['query']||(_0x2f2af5['query']={});for(const [_0x56b166,_0x4788ca]of _0x14f6d0['url']['searchParams']['entries']())_0x2f2af5['query'][_0x56b166]=_0x4788ca;return _0x2f2af5;}return _0x2f2af5['protocol']=_0x14f6d0['protocol'],_0x2f2af5['hostname']=_0x14f6d0['hostname'],_0x2f2af5['port']=_0x14f6d0['port']?Number(_0x14f6d0['port']):void 0x0,_0x2f2af5['path']=_0x14f6d0['path'],_0x2f2af5['query']={..._0x14f6d0['query']},_0x2f2af5;}['setHostPrefix'](_0x2cc07c,_0x30902a,_0x55ad1f){if(this['serdeContext']?.['disableHostPrefix'])return;const _0x5c4ff0=NormalizedSchema['of'](_0x30902a['input']),_0x4b47a6=translateTraits(_0x30902a['traits']??{});if(_0x4b47a6['endpoint']){let _0x2bf2b9=_0x4b47a6['endpoint']?.[0x0];if('string'==typeof _0x2bf2b9){const _0xee047=[..._0x5c4ff0['structIterator']()]['filter'](([,_0x29578a])=>_0x29578a['getMergedTraits']()['hostLabel']);for(const [_0x57c9f0]of _0xee047){const _0x42fd91=_0x55ad1f[_0x57c9f0];if('string'!=typeof _0x42fd91)throw new Error('@smithy/core/schema\x20-\x20'+_0x57c9f0+'\x20in\x20input\x20must\x20be\x20a\x20string\x20as\x20hostLabel.');_0x2bf2b9=_0x2bf2b9['replace']('{'+_0x57c9f0+'}',_0x42fd91);}_0x2cc07c['hostname']=_0x2bf2b9+_0x2cc07c['hostname'];}}}['deserializeMetadata'](_0x565d5c){return{'httpStatusCode':_0x565d5c['statusCode'],'requestId':_0x565d5c['headers']['x-amzn-requestid']??_0x565d5c['headers']['x-amzn-request-id']??_0x565d5c['headers']['x-amz-request-id'],'extendedRequestId':_0x565d5c['headers']['x-amz-id-2'],'cfId':_0x565d5c['headers']['x-amz-cf-id']};}async['serializeEventStream']({eventStream:_0x32214e,requestSchema:_0x18f951,initialRequest:_0x458590}){return(await this['loadEventStreamCapability']())['serializeEventStream']({'eventStream':_0x32214e,'requestSchema':_0x18f951,'initialRequest':_0x458590});}async['deserializeEventStream']({response:_0x3ac17d,responseSchema:_0x565f08,initialResponseContainer:_0x5e80ad}){return(await this['loadEventStreamCapability']())['deserializeEventStream']({'response':_0x3ac17d,'responseSchema':_0x565f08,'initialResponseContainer':_0x5e80ad});}async['loadEventStreamCapability'](){const {EventStreamSerde:_0x573fc9}=await Promise['resolve']()['then'](function(){return index;});return new _0x573fc9({'marshaller':this['getEventStreamMarshaller'](),'serializer':this['serializer'],'deserializer':this['deserializer'],'serdeContext':this['serdeContext'],'defaultContentType':this['getDefaultContentType']()});}['getDefaultContentType'](){throw new Error('@smithy/core/protocols\x20-\x20'+this['constructor']['name']+'\x20getDefaultContentType()\x20implementation\x20missing.');}async['deserializeHttpMessage'](_0x3e8273,_0x3c659b,_0x349395,_0x8fb295,_0x541cf9){return[];}['getEventStreamMarshaller'](){const _0x5bb624=this['serdeContext'];if(!_0x5bb624['eventStreamMarshaller'])throw new Error('@smithy/core\x20-\x20HttpProtocol:\x20eventStreamMarshaller\x20missing\x20in\x20serdeContext.');return _0x5bb624['eventStreamMarshaller'];}}class HttpBindingProtocol extends HttpProtocol{async['serializeRequest'](_0x6552f0,_0xd90666,_0x65b458){const _0x766cda={..._0xd90666??{}},_0x3ee1c8=this['serializer'],_0x14b5cc={},_0x22beea={},_0x42b2dc=await _0x65b458['endpoint'](),_0x297f6c=NormalizedSchema['of'](_0x6552f0?.['input']),_0x59196b=_0x297f6c['getSchema']();let _0x14e05f,_0x4b28cf=!0x1;const _0x4c6703=new HttpRequest({'protocol':'','hostname':'','port':void 0x0,'path':'','fragment':void 0x0,'query':_0x14b5cc,'headers':_0x22beea,'body':void 0x0});if(_0x42b2dc){this['updateServiceEndpoint'](_0x4c6703,_0x42b2dc),this['setHostPrefix'](_0x4c6703,_0x6552f0,_0x766cda);const _0x199b70=translateTraits(_0x6552f0['traits']);if(_0x199b70['http']){_0x4c6703['method']=_0x199b70['http'][0x0];const [_0x3d6981,_0x2ca307]=_0x199b70['http'][0x1]['split']('?');'/'==_0x4c6703['path']?_0x4c6703['path']=_0x3d6981:_0x4c6703['path']+=_0x3d6981;const _0x343659=new URLSearchParams(_0x2ca307??'');Object['assign'](_0x14b5cc,Object['fromEntries'](_0x343659));}}for(const [_0x30233b,_0x219b03]of _0x297f6c['structIterator']()){const _0x14098b=_0x219b03['getMergedTraits']()??{},_0x1c8dd1=_0x766cda[_0x30233b];if(null!=_0x1c8dd1||_0x219b03['isIdempotencyToken']()){if(_0x14098b['httpPayload']){if(_0x219b03['isStreaming']())_0x219b03['isStructSchema']()?_0x766cda[_0x30233b]&&(_0x14e05f=await this['serializeEventStream']({'eventStream':_0x766cda[_0x30233b],'requestSchema':_0x297f6c})):_0x14e05f=_0x1c8dd1;else _0x3ee1c8['write'](_0x219b03,_0x1c8dd1),_0x14e05f=_0x3ee1c8['flush']();delete _0x766cda[_0x30233b];}else{if(_0x14098b['httpLabel']){_0x3ee1c8['write'](_0x219b03,_0x1c8dd1);const _0x5e31bc=_0x3ee1c8['flush']();_0x4c6703['path']['includes']('{'+_0x30233b+'+}')?_0x4c6703['path']=_0x4c6703['path']['replace']('{'+_0x30233b+'+}',_0x5e31bc['split']('/')['map'](extendedEncodeURIComponent)['join']('/')):_0x4c6703['path']['includes']('{'+_0x30233b+'}')&&(_0x4c6703['path']=_0x4c6703['path']['replace']('{'+_0x30233b+'}',extendedEncodeURIComponent(_0x5e31bc))),delete _0x766cda[_0x30233b];}else{if(_0x14098b['httpHeader'])_0x3ee1c8['write'](_0x219b03,_0x1c8dd1),_0x22beea[_0x14098b['httpHeader']['toLowerCase']()]=String(_0x3ee1c8['flush']()),delete _0x766cda[_0x30233b];else{if('string'==typeof _0x14098b['httpPrefixHeaders']){for(const [_0x300743,_0x26b693]of Object['entries'](_0x1c8dd1)){const _0x3783c3=_0x14098b['httpPrefixHeaders']+_0x300743;_0x3ee1c8['write']([_0x219b03['getValueSchema'](),{'httpHeader':_0x3783c3}],_0x26b693),_0x22beea[_0x3783c3['toLowerCase']()]=_0x3ee1c8['flush']();}delete _0x766cda[_0x30233b];}else _0x14098b['httpQuery']||_0x14098b['httpQueryParams']?(this['serializeQuery'](_0x219b03,_0x1c8dd1,_0x14b5cc),delete _0x766cda[_0x30233b]):_0x4b28cf=!0x0;}}}}else{if(_0x14098b['httpLabel']&&(_0x4c6703['path']['includes']('{'+_0x30233b+'+}')||_0x4c6703['path']['includes']('{'+_0x30233b+'}')))throw new Error('No\x20value\x20provided\x20for\x20input\x20HTTP\x20label:\x20'+_0x30233b+'.');}}return _0x4b28cf&&_0x766cda&&(_0x3ee1c8['write'](_0x59196b,_0x766cda),_0x14e05f=_0x3ee1c8['flush']()),_0x4c6703['headers']=_0x22beea,_0x4c6703['query']=_0x14b5cc,_0x4c6703['body']=_0x14e05f,_0x4c6703;}['serializeQuery'](_0x579c40,_0x20455f,_0x475338){const _0x2d5913=this['serializer'],_0x2a4507=_0x579c40['getMergedTraits']();if(_0x2a4507['httpQueryParams']){for(const [_0x49f0e4,_0x199ef6]of Object['entries'](_0x20455f))if(!(_0x49f0e4 in _0x475338)){const _0x499b7a=_0x579c40['getValueSchema']();Object['assign'](_0x499b7a['getMergedTraits'](),{..._0x2a4507,'httpQuery':_0x49f0e4,'httpQueryParams':void 0x0}),this['serializeQuery'](_0x499b7a,_0x199ef6,_0x475338);}}else{if(_0x579c40['isListSchema']()){const _0x3e6a49=!!_0x579c40['getMergedTraits']()['sparse'],_0x4c451d=[];for(const _0x363d39 of _0x20455f){_0x2d5913['write']([_0x579c40['getValueSchema'](),_0x2a4507],_0x363d39);const _0x66b891=_0x2d5913['flush']();(_0x3e6a49||void 0x0!==_0x66b891)&&_0x4c451d['push'](_0x66b891);}_0x475338[_0x2a4507['httpQuery']]=_0x4c451d;}else _0x2d5913['write']([_0x579c40,_0x2a4507],_0x20455f),_0x475338[_0x2a4507['httpQuery']]=_0x2d5913['flush']();}}async['deserializeResponse'](_0x9f0f9e,_0x4273e5,_0x1b9280){const _0x498027=this['deserializer'],_0x5f51dc=NormalizedSchema['of'](_0x9f0f9e['output']),_0x127a39={};if(_0x1b9280['statusCode']>=0x12c){const _0x47e67c=await collectBody(_0x1b9280['body'],_0x4273e5);throw _0x47e67c['byteLength']>0x0&&Object['assign'](_0x127a39,await _0x498027['read'](0xf,_0x47e67c)),await this['handleError'](_0x9f0f9e,_0x4273e5,_0x1b9280,_0x127a39,this['deserializeMetadata'](_0x1b9280)),new Error('@smithy/core/protocols\x20-\x20HTTP\x20Protocol\x20error\x20handler\x20failed\x20to\x20throw.');}for(const _0x1f1726 in _0x1b9280['headers']){const _0x1fd97d=_0x1b9280['headers'][_0x1f1726];delete _0x1b9280['headers'][_0x1f1726],_0x1b9280['headers'][_0x1f1726['toLowerCase']()]=_0x1fd97d;}const _0x40d15c=await this['deserializeHttpMessage'](_0x5f51dc,_0x4273e5,_0x1b9280,_0x127a39);if(_0x40d15c['length']){const _0x1a5108=await collectBody(_0x1b9280['body'],_0x4273e5);if(_0x1a5108['byteLength']>0x0){const _0x17ee5e=await _0x498027['read'](_0x5f51dc,_0x1a5108);for(const _0x5963df of _0x40d15c)null!=_0x17ee5e[_0x5963df]&&(_0x127a39[_0x5963df]=_0x17ee5e[_0x5963df]);}}else _0x40d15c['discardResponseBody']&&await collectBody(_0x1b9280['body'],_0x4273e5);return _0x127a39['$metadata']=this['deserializeMetadata'](_0x1b9280),_0x127a39;}async['deserializeHttpMessage'](_0x91c933,_0x56bb37,_0x542627,_0x586f00,_0x4ddfdc){let _0x265eea;_0x265eea=_0x586f00 instanceof Set?_0x4ddfdc:_0x586f00;let _0xcfbb5=!0x0;const _0x593998=this['deserializer'],_0x12c53d=NormalizedSchema['of'](_0x91c933),_0x148d8f=[];for(const [_0x3ea778,_0x16617d]of _0x12c53d['structIterator']()){const _0x21508c=_0x16617d['getMemberTraits']();if(_0x21508c['httpPayload']){_0xcfbb5=!0x1;if(_0x16617d['isStreaming']()){const _0x13542d=_0x16617d['isStructSchema']();_0x265eea[_0x3ea778]=_0x13542d?await this['deserializeEventStream']({'response':_0x542627,'responseSchema':_0x12c53d}):sdkStreamMixin(_0x542627['body']);}else{if(_0x542627['body']){const _0x425837=await collectBody(_0x542627['body'],_0x56bb37);_0x425837['byteLength']>0x0&&(_0x265eea[_0x3ea778]=await _0x593998['read'](_0x16617d,_0x425837));}}}else{if(_0x21508c['httpHeader']){const _0x4a55a4=String(_0x21508c['httpHeader'])['toLowerCase'](),_0x16eabe=_0x542627['headers'][_0x4a55a4];if(null!=_0x16eabe){if(_0x16617d['isListSchema']()){const _0x2da9e9=_0x16617d['getValueSchema']();let _0x2e2e8f;_0x2da9e9['getMergedTraits']()['httpHeader']=_0x4a55a4,_0x2e2e8f=_0x2da9e9['isTimestampSchema']()&&0x4===_0x2da9e9['getSchema']()?splitEvery(_0x16eabe,',',0x2):splitHeader(_0x16eabe);const _0x3e7bae=[];for(const _0x2ecbe9 of _0x2e2e8f)_0x3e7bae['push'](await _0x593998['read'](_0x2da9e9,_0x2ecbe9['trim']()));_0x265eea[_0x3ea778]=_0x3e7bae;}else _0x265eea[_0x3ea778]=await _0x593998['read'](_0x16617d,_0x16eabe);}}else{if(void 0x0!==_0x21508c['httpPrefixHeaders']){_0x265eea[_0x3ea778]={};for(const [_0x2dd478,_0x17d2d1]of Object['entries'](_0x542627['headers']))if(_0x2dd478['startsWith'](_0x21508c['httpPrefixHeaders'])){const _0x3e68f0=_0x16617d['getValueSchema']();_0x3e68f0['getMergedTraits']()['httpHeader']=_0x2dd478,_0x265eea[_0x3ea778][_0x2dd478['slice'](_0x21508c['httpPrefixHeaders']['length'])]=await _0x593998['read'](_0x3e68f0,_0x17d2d1);}}else _0x21508c['httpResponseCode']?_0x265eea[_0x3ea778]=_0x542627['statusCode']:_0x148d8f['push'](_0x3ea778);}}}return _0x148d8f['discardResponseBody']=_0xcfbb5,_0x148d8f;}}function determineTimestampFormat(_0x44fdc6,_0x5f34a0){if(_0x5f34a0['timestampFormat']['useTrait']&&_0x44fdc6['isTimestampSchema']()&&(0x5===_0x44fdc6['getSchema']()||0x6===_0x44fdc6['getSchema']()||0x7===_0x44fdc6['getSchema']()))return _0x44fdc6['getSchema']();const {httpLabel:_0x590496,httpPrefixHeaders:_0x5ba243,httpHeader:_0x38eecc,httpQuery:_0x25f0ec}=_0x44fdc6['getMergedTraits']();return(_0x5f34a0['httpBindings']?'string'==typeof _0x5ba243||Boolean(_0x38eecc)?0x6:Boolean(_0x25f0ec)||Boolean(_0x590496)?0x5:void 0x0:void 0x0)??_0x5f34a0['timestampFormat']['default'];}class FromStringShapeDeserializer extends SerdeContext{['settings'];constructor(_0x1b883a){super(),this['settings']=_0x1b883a;}['read'](_0x30b35e,_0xe32047){const _0x477052=NormalizedSchema['of'](_0x30b35e);if(_0x477052['isListSchema']())return splitHeader(_0xe32047)['map'](_0x88ee9a=>this['read'](_0x477052['getValueSchema'](),_0x88ee9a));if(_0x477052['isBlobSchema']())return(this['serdeContext']?.['base64Decoder']??fromBase64)(_0xe32047);if(_0x477052['isTimestampSchema']())switch(determineTimestampFormat(_0x477052,this['settings'])){case 0x5:return _parseRfc3339DateTimeWithOffset(_0xe32047);case 0x6:return _parseRfc7231DateTime(_0xe32047);case 0x7:return _parseEpochTimestamp(_0xe32047);default:return console['warn']('Missing\x20timestamp\x20format,\x20parsing\x20value\x20with\x20Date\x20constructor:',_0xe32047),new Date(_0xe32047);}if(_0x477052['isStringSchema']()){const _0x51aead=_0x477052['getMergedTraits']()['mediaType'];let _0x10701a=_0xe32047;if(_0x51aead)return _0x477052['getMergedTraits']()['httpHeader']&&(_0x10701a=this['base64ToUtf8'](_0x10701a)),(('application/json'===_0x51aead||_0x51aead['endsWith']('+json'))&&(_0x10701a=LazyJsonString['from'](_0x10701a)),_0x10701a);}return _0x477052['isNumericSchema']()?Number(_0xe32047):_0x477052['isBigIntegerSchema']()?BigInt(_0xe32047):_0x477052['isBigDecimalSchema']()?new NumericValue(_0xe32047,'bigDecimal'):_0x477052['isBooleanSchema']()?'true'===String(_0xe32047)['toLowerCase']():_0xe32047;}['base64ToUtf8'](_0x52d8f0){return(this['serdeContext']?.['utf8Encoder']??toUtf8)((this['serdeContext']?.['base64Decoder']??fromBase64)(_0x52d8f0));}}class HttpInterceptingShapeDeserializer extends SerdeContext{['codecDeserializer'];['stringDeserializer'];constructor(_0x483c43,_0x2c0a59){super(),this['codecDeserializer']=_0x483c43,this['stringDeserializer']=new FromStringShapeDeserializer(_0x2c0a59);}['setSerdeContext'](_0xf0fcf5){this['stringDeserializer']['setSerdeContext'](_0xf0fcf5),this['codecDeserializer']['setSerdeContext'](_0xf0fcf5),this['serdeContext']=_0xf0fcf5;}['read'](_0x40f2e5,_0x43a0e0){const _0x34a097=NormalizedSchema['of'](_0x40f2e5),_0x50d1e2=_0x34a097['getMergedTraits'](),_0x1c9c62=this['serdeContext']?.['utf8Encoder']??toUtf8;if(_0x50d1e2['httpHeader']||_0x50d1e2['httpResponseCode'])return this['stringDeserializer']['read'](_0x34a097,_0x1c9c62(_0x43a0e0));if(_0x50d1e2['httpPayload']){if(_0x34a097['isBlobSchema']()){const _0x4cdec2=this['serdeContext']?.['utf8Decoder']??fromUtf8$2;return'string'==typeof _0x43a0e0?_0x4cdec2(_0x43a0e0):_0x43a0e0;}if(_0x34a097['isStringSchema']())return'byteLength'in _0x43a0e0?_0x1c9c62(_0x43a0e0):_0x43a0e0;}return this['codecDeserializer']['read'](_0x34a097,_0x43a0e0);}}class ToStringShapeSerializer extends SerdeContext{['settings'];['stringBuffer']='';constructor(_0x2126b9){super(),this['settings']=_0x2126b9;}['write'](_0x3d7b8a,_0x235ffd){const _0x3b0ced=NormalizedSchema['of'](_0x3d7b8a);switch(typeof _0x235ffd){case'object':if(null===_0x235ffd)return void(this['stringBuffer']='null');if(_0x3b0ced['isTimestampSchema']()){if(!(_0x235ffd instanceof Date))throw new Error('@smithy/core/protocols\x20-\x20received\x20non-Date\x20value\x20'+_0x235ffd+'\x20when\x20schema\x20expected\x20Date\x20in\x20'+_0x3b0ced['getName'](!0x0));switch(determineTimestampFormat(_0x3b0ced,this['settings'])){case 0x5:this['stringBuffer']=_0x235ffd['toISOString']()['replace']('.000Z','Z');break;case 0x6:this['stringBuffer']=dateToUtcString(_0x235ffd);break;case 0x7:this['stringBuffer']=String(_0x235ffd['getTime']()/0x3e8);break;default:console['warn']('Missing\x20timestamp\x20format,\x20using\x20epoch\x20seconds',_0x235ffd),this['stringBuffer']=String(_0x235ffd['getTime']()/0x3e8);}return;}if(_0x3b0ced['isBlobSchema']()&&'byteLength'in _0x235ffd)return void(this['stringBuffer']=(this['serdeContext']?.['base64Encoder']??toBase64)(_0x235ffd));if(_0x3b0ced['isListSchema']()&&Array['isArray'](_0x235ffd)){let _0x155174='';for(const _0xeb44b2 of _0x235ffd){this['write']([_0x3b0ced['getValueSchema'](),_0x3b0ced['getMergedTraits']()],_0xeb44b2);const _0x27e63f=this['flush']();''!==_0x155174&&(_0x155174+=',\x20'),_0x155174+=_0x3b0ced['getValueSchema']()['isTimestampSchema']()?_0x27e63f:quoteHeader(_0x27e63f);}return void(this['stringBuffer']=_0x155174);}this['stringBuffer']=JSON['stringify'](_0x235ffd,null,0x2);break;case'string':const _0x5a3fa5=_0x3b0ced['getMergedTraits']()['mediaType'];let _0x274448=_0x235ffd;if(_0x5a3fa5){if(('application/json'===_0x5a3fa5||_0x5a3fa5['endsWith']('+json'))&&(_0x274448=LazyJsonString['from'](_0x274448)),_0x3b0ced['getMergedTraits']()['httpHeader'])return void(this['stringBuffer']=(this['serdeContext']?.['base64Encoder']??toBase64)(_0x274448['toString']()));}this['stringBuffer']=_0x235ffd;break;default:_0x3b0ced['isIdempotencyToken']()?this['stringBuffer']=v4$1():this['stringBuffer']=String(_0x235ffd);}}['flush'](){const _0x4e8d53=this['stringBuffer'];return this['stringBuffer']='',_0x4e8d53;}}class HttpInterceptingShapeSerializer{['codecSerializer'];['stringSerializer'];['buffer'];constructor(_0x2c5d72,_0x5d8252,_0x104025=new ToStringShapeSerializer(_0x5d8252)){this['codecSerializer']=_0x2c5d72,this['stringSerializer']=_0x104025;}['setSerdeContext'](_0x460375){this['codecSerializer']['setSerdeContext'](_0x460375),this['stringSerializer']['setSerdeContext'](_0x460375);}['write'](_0x3287e4,_0x17bb0d){const _0x2a3759=NormalizedSchema['of'](_0x3287e4),_0x17dc29=_0x2a3759['getMergedTraits']();return _0x17dc29['httpHeader']||_0x17dc29['httpLabel']||_0x17dc29['httpQuery']?(this['stringSerializer']['write'](_0x2a3759,_0x17bb0d),void(this['buffer']=this['stringSerializer']['flush']())):this['codecSerializer']['write'](_0x2a3759,_0x17bb0d);}['flush'](){if(void 0x0!==this['buffer']){const _0x3b15cf=this['buffer'];return this['buffer']=void 0x0,_0x3b15cf;}return this['codecSerializer']['flush']();}}function setFeature$1(_0x52fcf9,_0xe4bd06,_0x4c2968){_0x52fcf9['__smithy_context']?_0x52fcf9['__smithy_context']['features']||(_0x52fcf9['__smithy_context']['features']={}):_0x52fcf9['__smithy_context']={'features':{}},_0x52fcf9['__smithy_context']['features'][_0xe4bd06]=_0x4c2968;}class DefaultIdentityProviderConfig{['authSchemes']=new Map();constructor(_0x3aa5e3){for(const [_0x109c1,_0x339355]of Object['entries'](_0x3aa5e3))void 0x0!==_0x339355&&this['authSchemes']['set'](_0x109c1,_0x339355);}['getIdentityProvider'](_0x46190c){return this['authSchemes']['get'](_0x46190c);}}class HttpBearerAuthSigner{async['sign'](_0x49f2b5,_0x5291ec,_0x4580d3){const _0x1dcd9c=HttpRequest['clone'](_0x49f2b5);if(!_0x5291ec['token'])throw new Error('request\x20could\x20not\x20be\x20signed\x20with\x20`token`\x20since\x20the\x20`token`\x20is\x20not\x20defined');return _0x1dcd9c['headers']['Authorization']='Bearer\x20'+_0x5291ec['token'],_0x1dcd9c;}}const createIsIdentityExpiredFunction=_0x25205c=>function(_0x1a5d9f){return doesIdentityRequireRefresh(_0x1a5d9f)&&_0x1a5d9f['expiration']['getTime']()-Date['now']()<_0x25205c;},EXPIRATION_MS=0x493e0,isIdentityExpired=createIsIdentityExpiredFunction(EXPIRATION_MS),doesIdentityRequireRefresh=_0x1a336f=>void 0x0!==_0x1a336f['expiration'],memoizeIdentityProvider=(_0x3ad176,_0x1d4066,_0x1fd525)=>{if(void 0x0===_0x3ad176)return;const _0x1a2885='function'!=typeof _0x3ad176?async()=>Promise['resolve'](_0x3ad176):_0x3ad176;let _0x82793e,_0x53fe29,_0x154d36,_0x2613ae=!0x1;const _0x1d1ecc=async _0x1b3a47=>{_0x53fe29||(_0x53fe29=_0x1a2885(_0x1b3a47));try{_0x82793e=await _0x53fe29,_0x154d36=!0x0,_0x2613ae=!0x1;}finally{_0x53fe29=void 0x0;}return _0x82793e;};return void 0x0===_0x1d4066?async _0x3adcb5=>(_0x154d36&&!_0x3adcb5?.['forceRefresh']||(_0x82793e=await _0x1d1ecc(_0x3adcb5)),_0x82793e):async _0x2aaad6=>(_0x154d36&&!_0x2aaad6?.['forceRefresh']||(_0x82793e=await _0x1d1ecc(_0x2aaad6)),_0x2613ae?_0x82793e:_0x1fd525(_0x82793e)?_0x1d4066(_0x82793e)?(await _0x1d1ecc(_0x2aaad6),_0x82793e):_0x82793e:(_0x2613ae=!0x0,_0x82793e));},DEFAULT_UA_APP_ID=void 0x0;function isValidUserAgentAppId(_0x4f1ff7){return void 0x0===_0x4f1ff7||'string'==typeof _0x4f1ff7&&_0x4f1ff7['length']<=0x32;}function resolveUserAgentConfig(_0x5b3de8){const _0x364aa5=normalizeProvider(_0x5b3de8['userAgentAppId']??DEFAULT_UA_APP_ID),{customUserAgent:_0x4126ac}=_0x5b3de8;return Object['assign'](_0x5b3de8,{'customUserAgent':'string'==typeof _0x4126ac?[[_0x4126ac]]:_0x4126ac,'userAgentAppId':async()=>{const _0x109138=await _0x364aa5();if(!isValidUserAgentAppId(_0x109138)){const _0x5c4cdf='NoOpLogger'!==_0x5b3de8['logger']?.['constructor']?.['name']&&_0x5b3de8['logger']?_0x5b3de8['logger']:console;'string'!=typeof _0x109138?_0x5c4cdf?.['warn']('userAgentAppId\x20must\x20be\x20a\x20string\x20or\x20undefined.'):_0x109138['length']>0x32&&_0x5c4cdf?.['warn']('The\x20provided\x20userAgentAppId\x20exceeds\x20the\x20maximum\x20length\x20of\x2050\x20characters.');}return _0x109138;}});}class EndpointCache{['capacity'];['data']=new Map();['parameters']=[];constructor({size:_0x484643,params:_0x27fc32}){this['capacity']=_0x484643??0x32,_0x27fc32&&(this['parameters']=_0x27fc32);}['get'](_0x4aa9a4,_0x1bdaa5){const _0x8e4897=this['hash'](_0x4aa9a4);if(!0x1===_0x8e4897)return _0x1bdaa5();if(!this['data']['has'](_0x8e4897)){if(this['data']['size']>this['capacity']+0xa){const _0x1cc9d8=this['data']['keys']();let _0x3a435b=0x0;for(;;){const {value:_0x48ccc6,done:_0x5e917b}=_0x1cc9d8['next']();if(this['data']['delete'](_0x48ccc6),_0x5e917b||++_0x3a435b>0xa)break;}}this['data']['set'](_0x8e4897,_0x1bdaa5());}return this['data']['get'](_0x8e4897);}['size'](){return this['data']['size'];}['hash'](_0x5ce6de){let _0x29edcd='';const {parameters:_0x5ce738}=this;if(0x0===_0x5ce738['length'])return!0x1;for(const _0x45323e of _0x5ce738){const _0x1e4512=String(_0x5ce6de[_0x45323e]??'');if(_0x1e4512['includes']('|;'))return!0x1;_0x29edcd+=_0x1e4512+'|;';}return _0x29edcd;}}const IP_V4_REGEX=new RegExp('^(?:25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]\x5cd|\x5cd)(?:\x5c.(?:25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]\x5cd|\x5cd)){3}$'),isIpAddress=_0x3e4e17=>IP_V4_REGEX['test'](_0x3e4e17)||_0x3e4e17['startsWith']('[')&&_0x3e4e17['endsWith'](']'),VALID_HOST_LABEL_REGEX=new RegExp('^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$'),isValidHostLabel=(_0x25b4f9,_0x541210=!0x1)=>{if(!_0x541210)return VALID_HOST_LABEL_REGEX['test'](_0x25b4f9);const _0x4bbda7=_0x25b4f9['split']('.');for(const _0x3b7824 of _0x4bbda7)if(!isValidHostLabel(_0x3b7824))return!0x1;return!0x0;},customEndpointFunctions={},debugId='endpoints';function toDebugString(_0x2fa268){return'object'!=typeof _0x2fa268||null==_0x2fa268?_0x2fa268:'ref'in _0x2fa268?'$'+toDebugString(_0x2fa268['ref']):'fn'in _0x2fa268?_0x2fa268['fn']+'('+(_0x2fa268['argv']||[])['map'](toDebugString)['join'](',\x20')+')':JSON['stringify'](_0x2fa268,null,0x2);}class EndpointError extends Error{constructor(_0x520321){super(_0x520321),this['name']='EndpointError';}}const booleanEquals=(_0x128cbb,_0x5e6930)=>_0x128cbb===_0x5e6930,getAttrPathList=_0x120767=>{const _0x148cf9=_0x120767['split']('.'),_0x206cb7=[];for(const _0x1dc8fd of _0x148cf9){const _0x286c21=_0x1dc8fd['indexOf']('[');if(-0x1!==_0x286c21){if(_0x1dc8fd['indexOf'](']')!==_0x1dc8fd['length']-0x1)throw new EndpointError('Path:\x20\x27'+_0x120767+'\x27\x20does\x20not\x20end\x20with\x20\x27]\x27');const _0x17825c=_0x1dc8fd['slice'](_0x286c21+0x1,-0x1);if(Number['isNaN'](parseInt(_0x17825c)))throw new EndpointError('Invalid\x20array\x20index:\x20\x27'+_0x17825c+'\x27\x20in\x20path:\x20\x27'+_0x120767+'\x27');0x0!==_0x286c21&&_0x206cb7['push'](_0x1dc8fd['slice'](0x0,_0x286c21)),_0x206cb7['push'](_0x17825c);}else _0x206cb7['push'](_0x1dc8fd);}return _0x206cb7;},getAttr=(_0x9804cd,_0x5a00bf)=>getAttrPathList(_0x5a00bf)['reduce']((_0x10d4e8,_0x49f3ea)=>{if('object'!=typeof _0x10d4e8)throw new EndpointError('Index\x20\x27'+_0x49f3ea+'\x27\x20in\x20\x27'+_0x5a00bf+'\x27\x20not\x20found\x20in\x20\x27'+JSON['stringify'](_0x9804cd)+'\x27');return Array['isArray'](_0x10d4e8)?_0x10d4e8[parseInt(_0x49f3ea)]:_0x10d4e8[_0x49f3ea];},_0x9804cd),isSet=_0xc8af43=>null!=_0xc8af43,not=_0x516a5b=>!_0x516a5b,DEFAULT_PORTS={[EndpointURLScheme['HTTP']]:0x50,[EndpointURLScheme['HTTPS']]:0x1bb},parseURL$1=_0x340660=>{const _0x58743b=((()=>{try{if(_0x340660 instanceof URL)return _0x340660;if('object'==typeof _0x340660&&'hostname'in _0x340660){const {hostname:_0x56c0d3,port:_0x1380bb,protocol:_0x13a98d='',path:_0x32739b='',query:_0x65b538={}}=_0x340660,_0x3f0878=new URL(_0x13a98d+'//'+_0x56c0d3+(_0x1380bb?':'+_0x1380bb:'')+_0x32739b);return _0x3f0878['search']=Object['entries'](_0x65b538)['map'](([_0x341e2c,_0x442e23])=>_0x341e2c+'='+_0x442e23)['join']('&'),_0x3f0878;}return new URL(_0x340660);}catch(_0x28d951){return null;}})());if(!_0x58743b)return console['error']('Unable\x20to\x20parse\x20'+JSON['stringify'](_0x340660)+'\x20as\x20a\x20whatwg\x20URL.'),null;const _0x17ffb2=_0x58743b['href'],{host:_0x74b31f,hostname:_0x45e6d0,pathname:_0x15f136,protocol:_0x5b9b45,search:_0x2e9dd9}=_0x58743b;if(_0x2e9dd9)return null;const _0xf81611=_0x5b9b45['slice'](0x0,-0x1);if(!Object['values'](EndpointURLScheme)['includes'](_0xf81611))return null;const _0x5d544f=isIpAddress(_0x45e6d0);return{'scheme':_0xf81611,'authority':''+_0x74b31f+(_0x17ffb2['includes'](_0x74b31f+':'+DEFAULT_PORTS[_0xf81611])||'string'==typeof _0x340660&&_0x340660['includes'](_0x74b31f+':'+DEFAULT_PORTS[_0xf81611])?':'+DEFAULT_PORTS[_0xf81611]:''),'path':_0x15f136,'normalizedPath':_0x15f136['endsWith']('/')?_0x15f136:_0x15f136+'/','isIp':_0x5d544f};},stringEquals=(_0x508963,_0x476392)=>_0x508963===_0x476392,substring=(_0x5aebd2,_0x365949,_0x9e241d,_0xf974da)=>_0x365949>=_0x9e241d||_0x5aebd2['length']<_0x9e241d?null:_0xf974da?_0x5aebd2['substring'](_0x5aebd2['length']-_0x9e241d,_0x5aebd2['length']-_0x365949):_0x5aebd2['substring'](_0x365949,_0x9e241d),uriEncode=_0x16e2de=>encodeURIComponent(_0x16e2de)['replace'](/[!*'()]/g,_0x19274a=>'%'+_0x19274a['charCodeAt'](0x0)['toString'](0x10)['toUpperCase']()),endpointFunctions={'booleanEquals':booleanEquals,'getAttr':getAttr,'isSet':isSet,'isValidHostLabel':isValidHostLabel,'not':not,'parseURL':parseURL$1,'stringEquals':stringEquals,'substring':substring,'uriEncode':uriEncode},evaluateTemplate=(_0x383437,_0x3b6588)=>{const _0x142384=[],_0xfc3370={..._0x3b6588['endpointParams'],..._0x3b6588['referenceRecord']};let _0x40c99b=0x0;for(;_0x40c99b<_0x383437['length'];){const _0x471d27=_0x383437['indexOf']('{',_0x40c99b);if(-0x1===_0x471d27){_0x142384['push'](_0x383437['slice'](_0x40c99b));break;}_0x142384['push'](_0x383437['slice'](_0x40c99b,_0x471d27));const _0xa64f3b=_0x383437['indexOf']('}',_0x471d27);if(-0x1===_0xa64f3b){_0x142384['push'](_0x383437['slice'](_0x471d27));break;}'{'===_0x383437[_0x471d27+0x1]&&'}'===_0x383437[_0xa64f3b+0x1]&&(_0x142384['push'](_0x383437['slice'](_0x471d27+0x1,_0xa64f3b)),_0x40c99b=_0xa64f3b+0x2);const _0x2002a2=_0x383437['substring'](_0x471d27+0x1,_0xa64f3b);if(_0x2002a2['includes']('#')){const [_0x348da4,_0x5106d7]=_0x2002a2['split']('#');_0x142384['push'](getAttr(_0xfc3370[_0x348da4],_0x5106d7));}else _0x142384['push'](_0xfc3370[_0x2002a2]);_0x40c99b=_0xa64f3b+0x1;}return _0x142384['join']('');},getReferenceValue=({ref:_0x5e8176},_0x9eeaed)=>({..._0x9eeaed['endpointParams'],..._0x9eeaed['referenceRecord']}[_0x5e8176]),evaluateExpression=(_0x48332f,_0x577170,_0x1b2b92)=>{if('string'==typeof _0x48332f)return evaluateTemplate(_0x48332f,_0x1b2b92);if(_0x48332f['fn'])return group$3['callFunction'](_0x48332f,_0x1b2b92);if(_0x48332f['ref'])return getReferenceValue(_0x48332f,_0x1b2b92);throw new EndpointError('\x27'+_0x577170+'\x27:\x20'+String(_0x48332f)+'\x20is\x20not\x20a\x20string,\x20function\x20or\x20reference.');},callFunction=({fn:_0x57b24c,argv:_0x347fc8},_0x263ae9)=>{const _0x2aa31f=_0x347fc8['map'](_0x5f2cc9=>['boolean','number']['includes'](typeof _0x5f2cc9)?_0x5f2cc9:group$3['evaluateExpression'](_0x5f2cc9,'arg',_0x263ae9)),_0x39f0a9=_0x57b24c['split']('.');return _0x39f0a9[0x0]in customEndpointFunctions&&null!=_0x39f0a9[0x1]?customEndpointFunctions[_0x39f0a9[0x0]][_0x39f0a9[0x1]](..._0x2aa31f):endpointFunctions[_0x57b24c](..._0x2aa31f);},group$3={'evaluateExpression':evaluateExpression,'callFunction':callFunction},evaluateCondition=({assign:_0x46593f,..._0x5da9ce},_0x1a5de9)=>{if(_0x46593f&&_0x46593f in _0x1a5de9['referenceRecord'])throw new EndpointError('\x27'+_0x46593f+'\x27\x20is\x20already\x20defined\x20in\x20Reference\x20Record.');const _0x585ecf=callFunction(_0x5da9ce,_0x1a5de9);return _0x1a5de9['logger']?.['debug']?.(debugId+'\x20evaluateCondition:\x20'+toDebugString(_0x5da9ce)+'\x20=\x20'+toDebugString(_0x585ecf)),{'result':''===_0x585ecf||!!_0x585ecf,...null!=_0x46593f&&{'toAssign':{'name':_0x46593f,'value':_0x585ecf}}};},evaluateConditions=(_0x1ebf70=[],_0x4a1368)=>{const _0x50d511={};for(const _0x44bbb4 of _0x1ebf70){const {result:_0x3a535e,toAssign:_0x484834}=evaluateCondition(_0x44bbb4,{..._0x4a1368,'referenceRecord':{..._0x4a1368['referenceRecord'],..._0x50d511}});if(!_0x3a535e)return{'result':_0x3a535e};_0x484834&&(_0x50d511[_0x484834['name']]=_0x484834['value'],_0x4a1368['logger']?.['debug']?.(debugId+'\x20assign:\x20'+_0x484834['name']+'\x20:=\x20'+toDebugString(_0x484834['value'])));}return{'result':!0x0,'referenceRecord':_0x50d511};},getEndpointHeaders=(_0x4e9d84,_0x58286e)=>Object['entries'](_0x4e9d84)['reduce']((_0x164d42,[_0x1f364f,_0x1ed807])=>({..._0x164d42,[_0x1f364f]:_0x1ed807['map'](_0x1f1e0c=>{const _0x5404a3=evaluateExpression(_0x1f1e0c,'Header\x20value\x20entry',_0x58286e);if('string'!=typeof _0x5404a3)throw new EndpointError('Header\x20\x27'+_0x1f364f+'\x27\x20value\x20\x27'+_0x5404a3+'\x27\x20is\x20not\x20a\x20string');return _0x5404a3;})}),{}),getEndpointProperties=(_0x40d757,_0x211676)=>Object['entries'](_0x40d757)['reduce']((_0x218185,[_0x1f3eac,_0x109b2b])=>({..._0x218185,[_0x1f3eac]:group$2['getEndpointProperty'](_0x109b2b,_0x211676)}),{}),getEndpointProperty=(_0x41b267,_0x493376)=>{if(Array['isArray'](_0x41b267))return _0x41b267['map'](_0xd4417a=>getEndpointProperty(_0xd4417a,_0x493376));switch(typeof _0x41b267){case'string':return evaluateTemplate(_0x41b267,_0x493376);case'object':if(null===_0x41b267)throw new EndpointError('Unexpected\x20endpoint\x20property:\x20'+_0x41b267);return group$2['getEndpointProperties'](_0x41b267,_0x493376);case'boolean':return _0x41b267;default:throw new EndpointError('Unexpected\x20endpoint\x20property\x20type:\x20'+typeof _0x41b267);}},group$2={'getEndpointProperty':getEndpointProperty,'getEndpointProperties':getEndpointProperties},getEndpointUrl=(_0x588875,_0xa0d2f9)=>{const _0xba18f2=evaluateExpression(_0x588875,'Endpoint\x20URL',_0xa0d2f9);if('string'==typeof _0xba18f2)try{return new URL(_0xba18f2);}catch(_0x2fc0d1){throw console['error']('Failed\x20to\x20construct\x20URL\x20with\x20'+_0xba18f2,_0x2fc0d1),_0x2fc0d1;}throw new EndpointError('Endpoint\x20URL\x20must\x20be\x20a\x20string,\x20got\x20'+typeof _0xba18f2);},evaluateEndpointRule=(_0x4aaeb6,_0x10f48d)=>{const {conditions:_0x3d347b,endpoint:_0x5d6a4d}=_0x4aaeb6,{result:_0x34a124,referenceRecord:_0x4c4c8c}=evaluateConditions(_0x3d347b,_0x10f48d);if(!_0x34a124)return;const _0x3c18bb={..._0x10f48d,'referenceRecord':{..._0x10f48d['referenceRecord'],..._0x4c4c8c}},{url:_0x342677,properties:_0x36d802,headers:_0x1621a5}=_0x5d6a4d;return _0x10f48d['logger']?.['debug']?.(debugId+'\x20Resolving\x20endpoint\x20from\x20template:\x20'+toDebugString(_0x5d6a4d)),{...null!=_0x1621a5&&{'headers':getEndpointHeaders(_0x1621a5,_0x3c18bb)},...null!=_0x36d802&&{'properties':getEndpointProperties(_0x36d802,_0x3c18bb)},'url':getEndpointUrl(_0x342677,_0x3c18bb)};},evaluateErrorRule=(_0x25d9fb,_0x48d5c0)=>{const {conditions:_0x2f0c00,error:_0x178a63}=_0x25d9fb,{result:_0x25ddf2,referenceRecord:_0x1a62c1}=evaluateConditions(_0x2f0c00,_0x48d5c0);if(_0x25ddf2)throw new EndpointError(evaluateExpression(_0x178a63,'Error',{..._0x48d5c0,'referenceRecord':{..._0x48d5c0['referenceRecord'],..._0x1a62c1}}));},evaluateRules=(_0x223302,_0x26a9d6)=>{for(const _0x39f94b of _0x223302)if('endpoint'===_0x39f94b['type']){const _0x1854b8=evaluateEndpointRule(_0x39f94b,_0x26a9d6);if(_0x1854b8)return _0x1854b8;}else{if('error'===_0x39f94b['type'])evaluateErrorRule(_0x39f94b,_0x26a9d6);else{if('tree'!==_0x39f94b['type'])throw new EndpointError('Unknown\x20endpoint\x20rule:\x20'+_0x39f94b);{const _0x2e6279=group$1['evaluateTreeRule'](_0x39f94b,_0x26a9d6);if(_0x2e6279)return _0x2e6279;}}}throw new EndpointError('Rules\x20evaluation\x20failed');},evaluateTreeRule=(_0x4d34d3,_0x383d54)=>{const {conditions:_0x78c2a2,rules:_0x1955ce}=_0x4d34d3,{result:_0xd8bd89,referenceRecord:_0x31c4e6}=evaluateConditions(_0x78c2a2,_0x383d54);if(_0xd8bd89)return group$1['evaluateRules'](_0x1955ce,{..._0x383d54,'referenceRecord':{..._0x383d54['referenceRecord'],..._0x31c4e6}});},group$1={'evaluateRules':evaluateRules,'evaluateTreeRule':evaluateTreeRule},resolveEndpoint=(_0x7c38f4,_0x5b662b)=>{const {endpointParams:_0x4f5eb2,logger:_0x975bac}=_0x5b662b,{parameters:_0x3ea2d1,rules:_0x2c133a}=_0x7c38f4;_0x5b662b['logger']?.['debug']?.(debugId+'\x20Initial\x20EndpointParams:\x20'+toDebugString(_0x4f5eb2));const _0x47f654=Object['entries'](_0x3ea2d1)['filter'](([,_0x31516e])=>null!=_0x31516e['default'])['map'](([_0x1c882b,_0x12dc93])=>[_0x1c882b,_0x12dc93['default']]);if(_0x47f654['length']>0x0){for(const [_0x3c5ee0,_0x113c48]of _0x47f654)_0x4f5eb2[_0x3c5ee0]=_0x4f5eb2[_0x3c5ee0]??_0x113c48;}const _0x33c2d9=Object['entries'](_0x3ea2d1)['filter'](([,_0x3e259a])=>_0x3e259a['required'])['map'](([_0x2456ff])=>_0x2456ff);for(const _0x11ae9f of _0x33c2d9)if(null==_0x4f5eb2[_0x11ae9f])throw new EndpointError('Missing\x20required\x20parameter:\x20\x27'+_0x11ae9f+'\x27');const _0x7b8b11=evaluateRules(_0x2c133a,{'endpointParams':_0x4f5eb2,'logger':_0x975bac,'referenceRecord':{}});return _0x5b662b['logger']?.['debug']?.(debugId+'\x20Resolved\x20endpoint:\x20'+toDebugString(_0x7b8b11)),_0x7b8b11;},isVirtualHostableS3Bucket$1=(_0x23fdd1,_0xc9f63e=!0x1)=>{if(_0xc9f63e){for(const _0x239272 of _0x23fdd1['split']('.'))if(!isVirtualHostableS3Bucket$1(_0x239272))return!0x1;return!0x0;}return!!isValidHostLabel(_0x23fdd1)&&(!(_0x23fdd1['length']<0x3||_0x23fdd1['length']>0x3f)&&(_0x23fdd1===_0x23fdd1['toLowerCase']()&&!isIpAddress(_0x23fdd1)));},ARN_DELIMITER$1=':',RESOURCE_DELIMITER$1='/',parseArn$1=_0x294414=>{const _0x5de1dd=_0x294414['split'](ARN_DELIMITER$1);if(_0x5de1dd['length']<0x6)return null;const [_0x463d7c,_0x6a5b93,_0x23345a,_0x53629f,_0x37c9a1,..._0x277819]=_0x5de1dd;if('arn'!==_0x463d7c||''===_0x6a5b93||''===_0x23345a||''===_0x277819['join'](ARN_DELIMITER$1))return null;return{'partition':_0x6a5b93,'service':_0x23345a,'region':_0x53629f,'accountId':_0x37c9a1,'resourceId':_0x277819['map'](_0x3c6a08=>_0x3c6a08['split'](RESOURCE_DELIMITER$1))['flat']()};};var partitions$1=[{'id':'aws','outputs':{'dnsSuffix':'amazonaws.com','dualStackDnsSuffix':'api.aws','implicitGlobalRegion':'us-east-1','name':'aws','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^(us|eu|ap|sa|ca|me|af|il|mx)\x5c-\x5cw+\x5c-\x5cd+$','regions':{'af-south-1':{'description':'Africa\x20(Cape\x20Town)'},'ap-east-1':{'description':'Asia\x20Pacific\x20(Hong\x20Kong)'},'ap-east-2':{'description':'Asia\x20Pacific\x20(Taipei)'},'ap-northeast-1':{'description':'Asia\x20Pacific\x20(Tokyo)'},'ap-northeast-2':{'description':'Asia\x20Pacific\x20(Seoul)'},'ap-northeast-3':{'description':'Asia\x20Pacific\x20(Osaka)'},'ap-south-1':{'description':'Asia\x20Pacific\x20(Mumbai)'},'ap-south-2':{'description':'Asia\x20Pacific\x20(Hyderabad)'},'ap-southeast-1':{'description':'Asia\x20Pacific\x20(Singapore)'},'ap-southeast-2':{'description':'Asia\x20Pacific\x20(Sydney)'},'ap-southeast-3':{'description':'Asia\x20Pacific\x20(Jakarta)'},'ap-southeast-4':{'description':'Asia\x20Pacific\x20(Melbourne)'},'ap-southeast-5':{'description':'Asia\x20Pacific\x20(Malaysia)'},'ap-southeast-6':{'description':'Asia\x20Pacific\x20(New\x20Zealand)'},'ap-southeast-7':{'description':'Asia\x20Pacific\x20(Thailand)'},'aws-global':{'description':'aws\x20global\x20region'},'ca-central-1':{'description':'Canada\x20(Central)'},'ca-west-1':{'description':'Canada\x20West\x20(Calgary)'},'eu-central-1':{'description':'Europe\x20(Frankfurt)'},'eu-central-2':{'description':'Europe\x20(Zurich)'},'eu-north-1':{'description':'Europe\x20(Stockholm)'},'eu-south-1':{'description':'Europe\x20(Milan)'},'eu-south-2':{'description':'Europe\x20(Spain)'},'eu-west-1':{'description':'Europe\x20(Ireland)'},'eu-west-2':{'description':'Europe\x20(London)'},'eu-west-3':{'description':'Europe\x20(Paris)'},'il-central-1':{'description':'Israel\x20(Tel\x20Aviv)'},'me-central-1':{'description':'Middle\x20East\x20(UAE)'},'me-south-1':{'description':'Middle\x20East\x20(Bahrain)'},'mx-central-1':{'description':'Mexico\x20(Central)'},'sa-east-1':{'description':'South\x20America\x20(Sao\x20Paulo)'},'us-east-1':{'description':'US\x20East\x20(N.\x20Virginia)'},'us-east-2':{'description':'US\x20East\x20(Ohio)'},'us-west-1':{'description':'US\x20West\x20(N.\x20California)'},'us-west-2':{'description':'US\x20West\x20(Oregon)'}}},{'id':'aws-cn','outputs':{'dnsSuffix':'amazonaws.com.cn','dualStackDnsSuffix':'api.amazonwebservices.com.cn','implicitGlobalRegion':'cn-northwest-1','name':'aws-cn','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^cn\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-cn-global':{'description':'aws-cn\x20global\x20region'},'cn-north-1':{'description':'China\x20(Beijing)'},'cn-northwest-1':{'description':'China\x20(Ningxia)'}}},{'id':'aws-eusc','outputs':{'dnsSuffix':'amazonaws.eu','dualStackDnsSuffix':'api.amazonwebservices.eu','implicitGlobalRegion':'eusc-de-east-1','name':'aws-eusc','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^eusc\x5c-(de)\x5c-\x5cw+\x5c-\x5cd+$','regions':{'eusc-de-east-1':{'description':'AWS\x20European\x20Sovereign\x20Cloud\x20(Germany)'}}},{'id':'aws-iso','outputs':{'dnsSuffix':'c2s.ic.gov','dualStackDnsSuffix':'api.aws.ic.gov','implicitGlobalRegion':'us-iso-east-1','name':'aws-iso','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^us\x5c-iso\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-iso-global':{'description':'aws-iso\x20global\x20region'},'us-iso-east-1':{'description':'US\x20ISO\x20East'},'us-iso-west-1':{'description':'US\x20ISO\x20WEST'}}},{'id':'aws-iso-b','outputs':{'dnsSuffix':'sc2s.sgov.gov','dualStackDnsSuffix':'api.aws.scloud','implicitGlobalRegion':'us-isob-east-1','name':'aws-iso-b','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^us\x5c-isob\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-iso-b-global':{'description':'aws-iso-b\x20global\x20region'},'us-isob-east-1':{'description':'US\x20ISOB\x20East\x20(Ohio)'},'us-isob-west-1':{'description':'US\x20ISOB\x20West'}}},{'id':'aws-iso-e','outputs':{'dnsSuffix':'cloud.adc-e.uk','dualStackDnsSuffix':'api.cloud-aws.adc-e.uk','implicitGlobalRegion':'eu-isoe-west-1','name':'aws-iso-e','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^eu\x5c-isoe\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-iso-e-global':{'description':'aws-iso-e\x20global\x20region'},'eu-isoe-west-1':{'description':'EU\x20ISOE\x20West'}}},{'id':'aws-iso-f','outputs':{'dnsSuffix':'csp.hci.ic.gov','dualStackDnsSuffix':'api.aws.hci.ic.gov','implicitGlobalRegion':'us-isof-south-1','name':'aws-iso-f','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^us\x5c-isof\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-iso-f-global':{'description':'aws-iso-f\x20global\x20region'},'us-isof-east-1':{'description':'US\x20ISOF\x20EAST'},'us-isof-south-1':{'description':'US\x20ISOF\x20SOUTH'}}},{'id':'aws-us-gov','outputs':{'dnsSuffix':'amazonaws.com','dualStackDnsSuffix':'api.aws','implicitGlobalRegion':'us-gov-west-1','name':'aws-us-gov','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^us\x5c-gov\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-us-gov-global':{'description':'aws-us-gov\x20global\x20region'},'us-gov-east-1':{'description':'AWS\x20GovCloud\x20(US-East)'},'us-gov-west-1':{'description':'AWS\x20GovCloud\x20(US-West)'}}}],partitionsInfo$1={'partitions':partitions$1};let selectedPartitionsInfo$1=partitionsInfo$1;const partition$1=_0x1eb2fa=>{const {partitions:_0x19e6db}=selectedPartitionsInfo$1;for(const _0x5885ef of _0x19e6db){const {regions:_0x15a041,outputs:_0x2f492b}=_0x5885ef;for(const [_0xee514f,_0x452b49]of Object['entries'](_0x15a041))if(_0xee514f===_0x1eb2fa)return{..._0x2f492b,..._0x452b49};}for(const _0xa6cda5 of _0x19e6db){const {regionRegex:_0x9a2e79,outputs:_0x371977}=_0xa6cda5;if(new RegExp(_0x9a2e79)['test'](_0x1eb2fa))return{..._0x371977};}const _0x3539d5=_0x19e6db['find'](_0x57ac0c=>'aws'===_0x57ac0c['id']);if(!_0x3539d5)throw new Error('Provided\x20region\x20was\x20not\x20found\x20in\x20the\x20partition\x20array\x20or\x20regex,\x20and\x20default\x20partition\x20with\x20id\x20\x27aws\x27\x20doesn\x27t\x20exist.');return{..._0x3539d5['outputs']};},awsEndpointFunctions$1={'isVirtualHostableS3Bucket':isVirtualHostableS3Bucket$1,'parseArn':parseArn$1,'partition':partition$1};function parseQueryString(_0x50d089){const _0x11bbbf={};if(_0x50d089=_0x50d089['replace'](/^\?/,''))for(const _0x179871 of _0x50d089['split']('&')){let [_0x92b23c,_0x120666=null]=_0x179871['split']('=');_0x92b23c=decodeURIComponent(_0x92b23c),_0x120666&&(_0x120666=decodeURIComponent(_0x120666)),_0x92b23c in _0x11bbbf?Array['isArray'](_0x11bbbf[_0x92b23c])?_0x11bbbf[_0x92b23c]['push'](_0x120666):_0x11bbbf[_0x92b23c]=[_0x11bbbf[_0x92b23c],_0x120666]:_0x11bbbf[_0x92b23c]=_0x120666;}return _0x11bbbf;}customEndpointFunctions['aws']=awsEndpointFunctions$1;const parseUrl=_0x5a16f1=>{if('string'==typeof _0x5a16f1)return parseUrl(new URL(_0x5a16f1));const {hostname:_0x17960f,pathname:_0x843879,port:_0x5125a5,protocol:_0x508521,search:_0x9fdd13}=_0x5a16f1;let _0x2e251d;return _0x9fdd13&&(_0x2e251d=parseQueryString(_0x9fdd13)),{'hostname':_0x17960f,'port':_0x5125a5?parseInt(_0x5125a5):void 0x0,'protocol':_0x508521,'path':_0x843879,'query':_0x2e251d};};function setCredentialFeature(_0x3ee703,_0x56a3dd,_0x5081de){return _0x3ee703['$source']||(_0x3ee703['$source']={}),_0x3ee703['$source'][_0x56a3dd]=_0x5081de,_0x3ee703;}function setFeature(_0x1a6e3b,_0x23250a,_0x13ac05){_0x1a6e3b['__aws_sdk_context']?_0x1a6e3b['__aws_sdk_context']['features']||(_0x1a6e3b['__aws_sdk_context']['features']={}):_0x1a6e3b['__aws_sdk_context']={'features':{}},_0x1a6e3b['__aws_sdk_context']['features'][_0x23250a]=_0x13ac05;}const getDateHeader=_0x52a717=>HttpResponse['isInstance'](_0x52a717)?_0x52a717['headers']?.['date']??_0x52a717['headers']?.['Date']:void 0x0,getSkewCorrectedDate=_0x580808=>new Date(Date['now']()+_0x580808),isClockSkewed=(_0x57d23d,_0x1b6e7a)=>Math['abs'](getSkewCorrectedDate(_0x1b6e7a)['getTime']()-_0x57d23d)>=0x493e0,getUpdatedSystemClockOffset=(_0x509f15,_0x15f0ad)=>{const _0x181763=Date['parse'](_0x509f15);return isClockSkewed(_0x181763,_0x15f0ad)?_0x181763-Date['now']():_0x15f0ad;},throwSigningPropertyError=(_0x82502a,_0x150255)=>{if(!_0x150255)throw new Error('Property\x20`'+_0x82502a+'`\x20is\x20not\x20resolved\x20for\x20AWS\x20SDK\x20SigV4Auth');return _0x150255;},validateSigningProperties=async _0x3ddeb1=>{const _0x18c4bd=throwSigningPropertyError('context',_0x3ddeb1['context']),_0x2b1433=throwSigningPropertyError('config',_0x3ddeb1['config']),_0x2e872d=_0x18c4bd['endpointV2']?.['properties']?.['authSchemes']?.[0x0],_0x342207=throwSigningPropertyError('signer',_0x2b1433['signer']),_0x5a5d5d=await _0x342207(_0x2e872d),_0x5b7c30=_0x3ddeb1?.['signingRegion'],_0x13ebbc=_0x3ddeb1?.['signingRegionSet'],_0x8d27f3=_0x3ddeb1?.['signingName'];return{'config':_0x2b1433,'signer':_0x5a5d5d,'signingRegion':_0x5b7c30,'signingRegionSet':_0x13ebbc,'signingName':_0x8d27f3};};class AwsSdkSigV4Signer{async['sign'](_0x2a548d,_0x14d33d,_0x5a92a7){if(!HttpRequest['isInstance'](_0x2a548d))throw new Error('The\x20request\x20is\x20not\x20an\x20instance\x20of\x20`HttpRequest`\x20and\x20cannot\x20be\x20signed');const _0x16ca18=await validateSigningProperties(_0x5a92a7),{config:_0x75dbba,signer:_0x399bf6}=_0x16ca18;let {signingRegion:_0x13f84c,signingName:_0x4b8d41}=_0x16ca18;const _0x16bdda=_0x5a92a7['context'];if(_0x16bdda?.['authSchemes']?.['length']){const [_0x21214a,_0x3f0351]=_0x16bdda['authSchemes'];'sigv4a'===_0x21214a?.['name']&&'sigv4'===_0x3f0351?.['name']&&(_0x13f84c=_0x3f0351?.['signingRegion']??_0x13f84c,_0x4b8d41=_0x3f0351?.['signingName']??_0x4b8d41);}return await _0x399bf6['sign'](_0x2a548d,{'signingDate':getSkewCorrectedDate(_0x75dbba['systemClockOffset']),'signingRegion':_0x13f84c,'signingService':_0x4b8d41});}['errorHandler'](_0x594cd7){return _0x55e248=>{const _0x57555f=_0x55e248['ServerTime']??getDateHeader(_0x55e248['$response']);if(_0x57555f){const _0x1506c6=throwSigningPropertyError('config',_0x594cd7['config']),_0x4d9463=_0x1506c6['systemClockOffset'];_0x1506c6['systemClockOffset']=getUpdatedSystemClockOffset(_0x57555f,_0x1506c6['systemClockOffset']),_0x1506c6['systemClockOffset']!==_0x4d9463&&_0x55e248['$metadata']&&(_0x55e248['$metadata']['clockSkewCorrected']=!0x0);}throw _0x55e248;};}['successHandler'](_0x833668,_0x1c555f){const _0x141595=getDateHeader(_0x833668);if(_0x141595){const _0x4286d7=throwSigningPropertyError('config',_0x1c555f['config']);_0x4286d7['systemClockOffset']=getUpdatedSystemClockOffset(_0x141595,_0x4286d7['systemClockOffset']);}}}const memoize$2=(_0x390c8b,_0x57145e,_0x5b289d)=>{let _0x2f4d7c,_0x222fa2,_0x486e87,_0x5e56a3=!0x1;return async _0x216a44=>(_0x486e87&&!_0x216a44?.['forceRefresh']||(_0x2f4d7c=await((async()=>{_0x222fa2||(_0x222fa2=_0x390c8b());try{_0x2f4d7c=await _0x222fa2,_0x486e87=!0x0,_0x5e56a3=!0x1;}finally{_0x222fa2=void 0x0;}return _0x2f4d7c;})())),_0x2f4d7c);},ALGORITHM_QUERY_PARAM='X-Amz-Algorithm',CREDENTIAL_QUERY_PARAM='X-Amz-Credential',AMZ_DATE_QUERY_PARAM='X-Amz-Date',SIGNED_HEADERS_QUERY_PARAM='X-Amz-SignedHeaders',EXPIRES_QUERY_PARAM='X-Amz-Expires',SIGNATURE_QUERY_PARAM='X-Amz-Signature',TOKEN_QUERY_PARAM='X-Amz-Security-Token',AUTH_HEADER='authorization',AMZ_DATE_HEADER=AMZ_DATE_QUERY_PARAM['toLowerCase'](),DATE_HEADER='date',GENERATED_HEADERS=[AUTH_HEADER,AMZ_DATE_HEADER,DATE_HEADER],SIGNATURE_HEADER=SIGNATURE_QUERY_PARAM['toLowerCase'](),SHA256_HEADER='x-amz-content-sha256',TOKEN_HEADER=TOKEN_QUERY_PARAM['toLowerCase'](),ALWAYS_UNSIGNABLE_HEADERS={'authorization':!0x0,'cache-control':!0x0,'connection':!0x0,'expect':!0x0,'from':!0x0,'keep-alive':!0x0,'max-forwards':!0x0,'pragma':!0x0,'referer':!0x0,'te':!0x0,'trailer':!0x0,'transfer-encoding':!0x0,'upgrade':!0x0,'user-agent':!0x0,'x-amzn-trace-id':!0x0},PROXY_HEADER_PATTERN=/^proxy-/,SEC_HEADER_PATTERN=/^sec-/,ALGORITHM_IDENTIFIER='AWS4-HMAC-SHA256',EVENT_ALGORITHM_IDENTIFIER='AWS4-HMAC-SHA256-PAYLOAD',UNSIGNED_PAYLOAD='UNSIGNED-PAYLOAD',MAX_CACHE_SIZE=0x32,KEY_TYPE_IDENTIFIER='aws4_request',MAX_PRESIGNED_TTL=0x93a80,signingKeyCache={},cacheQueue=[],createScope=(_0x59557b,_0x2433dc,_0x6e496b)=>_0x59557b+'/'+_0x2433dc+'/'+_0x6e496b+'/'+KEY_TYPE_IDENTIFIER,getSigningKey=async(_0x38db2b,_0x2efa5e,_0x30d4be,_0x2215a4,_0x7f1752)=>{const _0x163827=_0x30d4be+':'+_0x2215a4+':'+_0x7f1752+':'+toHex(await hmac(_0x38db2b,_0x2efa5e['secretAccessKey'],_0x2efa5e['accessKeyId']))+':'+_0x2efa5e['sessionToken'];if(_0x163827 in signingKeyCache)return signingKeyCache[_0x163827];for(cacheQueue['push'](_0x163827);cacheQueue['length']>MAX_CACHE_SIZE;)delete signingKeyCache[cacheQueue['shift']()];let _0x2b849e='AWS4'+_0x2efa5e['secretAccessKey'];for(const _0x5d2b92 of[_0x30d4be,_0x2215a4,_0x7f1752,KEY_TYPE_IDENTIFIER])_0x2b849e=await hmac(_0x38db2b,_0x2b849e,_0x5d2b92);return signingKeyCache[_0x163827]=_0x2b849e;},hmac=(_0x317f3c,_0x55abfc,_0x3d083a)=>{const _0x3a3d80=new _0x317f3c(_0x55abfc);return _0x3a3d80['update'](toUint8Array(_0x3d083a)),_0x3a3d80['digest']();},getCanonicalHeaders=({headers:_0x33cfa2},_0x512dbf,_0xa5200a)=>{const _0x483f20={};for(const _0x2a607b of Object['keys'](_0x33cfa2)['sort']()){if(null==_0x33cfa2[_0x2a607b])continue;const _0x499808=_0x2a607b['toLowerCase']();(_0x499808 in ALWAYS_UNSIGNABLE_HEADERS||_0x512dbf?.['has'](_0x499808)||PROXY_HEADER_PATTERN['test'](_0x499808)||SEC_HEADER_PATTERN['test'](_0x499808))&&(!_0xa5200a||_0xa5200a&&!_0xa5200a['has'](_0x499808))||(_0x483f20[_0x499808]=_0x33cfa2[_0x2a607b]['trim']()['replace'](/\s+/g,'\x20'));}return _0x483f20;},isArrayBuffer=_0x210189=>'function'==typeof ArrayBuffer&&_0x210189 instanceof ArrayBuffer||'[object\x20ArrayBuffer]'===Object['prototype']['toString']['call'](_0x210189),getPayloadHash=async({headers:_0x14634c,body:_0x46d90b},_0xa75c34)=>{for(const _0x1a2335 of Object['keys'](_0x14634c))if(_0x1a2335['toLowerCase']()===SHA256_HEADER)return _0x14634c[_0x1a2335];if(null==_0x46d90b)return'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855';if('string'==typeof _0x46d90b||ArrayBuffer['isView'](_0x46d90b)||isArrayBuffer(_0x46d90b)){const _0x960dca=new _0xa75c34();return _0x960dca['update'](toUint8Array(_0x46d90b)),toHex(await _0x960dca['digest']());}return UNSIGNED_PAYLOAD;};class HeaderFormatter{['format'](_0xcf52e3){const _0x450b15=[];for(const _0x1cdf14 of Object['keys'](_0xcf52e3)){const _0x3404c3=fromUtf8$2(_0x1cdf14);_0x450b15['push'](Uint8Array['from']([_0x3404c3['byteLength']]),_0x3404c3,this['formatHeaderValue'](_0xcf52e3[_0x1cdf14]));}const _0x12edce=new Uint8Array(_0x450b15['reduce']((_0x5c774b,_0x48795b)=>_0x5c774b+_0x48795b['byteLength'],0x0));let _0x410d96=0x0;for(const _0x409b64 of _0x450b15)_0x12edce['set'](_0x409b64,_0x410d96),_0x410d96+=_0x409b64['byteLength'];return _0x12edce;}['formatHeaderValue'](_0x3890ea){switch(_0x3890ea['type']){case'boolean':return Uint8Array['from']([_0x3890ea['value']?0x0:0x1]);case'byte':return Uint8Array['from']([0x2,_0x3890ea['value']]);case'short':const _0x4dbb44=new DataView(new ArrayBuffer(0x3));return _0x4dbb44['setUint8'](0x0,0x3),_0x4dbb44['setInt16'](0x1,_0x3890ea['value'],!0x1),new Uint8Array(_0x4dbb44['buffer']);case'integer':const _0x336553=new DataView(new ArrayBuffer(0x5));return _0x336553['setUint8'](0x0,0x4),_0x336553['setInt32'](0x1,_0x3890ea['value'],!0x1),new Uint8Array(_0x336553['buffer']);case'long':const _0x54fa3d=new Uint8Array(0x9);return _0x54fa3d[0x0]=0x5,_0x54fa3d['set'](_0x3890ea['value']['bytes'],0x1),_0x54fa3d;case'binary':const _0x156c9f=new DataView(new ArrayBuffer(0x3+_0x3890ea['value']['byteLength']));_0x156c9f['setUint8'](0x0,0x6),_0x156c9f['setUint16'](0x1,_0x3890ea['value']['byteLength'],!0x1);const _0x11e057=new Uint8Array(_0x156c9f['buffer']);return _0x11e057['set'](_0x3890ea['value'],0x3),_0x11e057;case'string':const _0x42fd7c=fromUtf8$2(_0x3890ea['value']),_0x5843a4=new DataView(new ArrayBuffer(0x3+_0x42fd7c['byteLength']));_0x5843a4['setUint8'](0x0,0x7),_0x5843a4['setUint16'](0x1,_0x42fd7c['byteLength'],!0x1);const _0x19bd77=new Uint8Array(_0x5843a4['buffer']);return _0x19bd77['set'](_0x42fd7c,0x3),_0x19bd77;case'timestamp':const _0x31ab95=new Uint8Array(0x9);return _0x31ab95[0x0]=0x8,_0x31ab95['set'](Int64$1['fromNumber'](_0x3890ea['value']['valueOf']())['bytes'],0x1),_0x31ab95;case'uuid':if(!UUID_PATTERN$1['test'](_0x3890ea['value']))throw new Error('Invalid\x20UUID\x20received:\x20'+_0x3890ea['value']);const _0x56768f=new Uint8Array(0x11);return _0x56768f[0x0]=0x9,_0x56768f['set'](fromHex(_0x3890ea['value']['replace'](/\-/g,'')),0x1),_0x56768f;}}}var HEADER_VALUE_TYPE$1;!function(_0x597c2a){_0x597c2a[_0x597c2a['boolTrue']=0x0]='boolTrue',_0x597c2a[_0x597c2a['boolFalse']=0x1]='boolFalse',_0x597c2a[_0x597c2a['byte']=0x2]='byte',_0x597c2a[_0x597c2a['short']=0x3]='short',_0x597c2a[_0x597c2a['integer']=0x4]='integer',_0x597c2a[_0x597c2a['long']=0x5]='long',_0x597c2a[_0x597c2a['byteArray']=0x6]='byteArray',_0x597c2a[_0x597c2a['string']=0x7]='string',_0x597c2a[_0x597c2a['timestamp']=0x8]='timestamp',_0x597c2a[_0x597c2a['uuid']=0x9]='uuid';}(HEADER_VALUE_TYPE$1||(HEADER_VALUE_TYPE$1={}));const UUID_PATTERN$1=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let Int64$1=class e{['bytes'];constructor(_0x49a61e){if(this['bytes']=_0x49a61e,0x8!==_0x49a61e['byteLength'])throw new Error('Int64\x20buffers\x20must\x20be\x20exactly\x208\x20bytes');}static['fromNumber'](_0xd83102){if(_0xd83102>0x8000000000000000||_0xd83102<-0x8000000000000000)throw new Error(_0xd83102+'\x20is\x20too\x20large\x20(or,\x20if\x20negative,\x20too\x20small)\x20to\x20represent\x20as\x20an\x20Int64');const _0x421bcd=new Uint8Array(0x8);for(let _0x3c3455=0x7,_0x472ea0=Math['abs'](Math['round'](_0xd83102));_0x3c3455>-0x1&&_0x472ea0>0x0;_0x3c3455--,_0x472ea0/=0x100)_0x421bcd[_0x3c3455]=_0x472ea0;return _0xd83102<0x0&&negate$1(_0x421bcd),new e(_0x421bcd);}['valueOf'](){const _0x527d32=this['bytes']['slice'](0x0),_0x57ffc9=0x80&_0x527d32[0x0];return _0x57ffc9&&negate$1(_0x527d32),parseInt(toHex(_0x527d32),0x10)*(_0x57ffc9?-0x1:0x1);}['toString'](){return String(this['valueOf']());}};function negate$1(_0x7f669e){for(let _0x19733f=0x0;_0x19733f<0x8;_0x19733f++)_0x7f669e[_0x19733f]^=0xff;for(let _0x3cb990=0x7;_0x3cb990>-0x1&&(_0x7f669e[_0x3cb990]++,0x0===_0x7f669e[_0x3cb990]);_0x3cb990--);}const hasHeader=(_0x57e936,_0x5925ea)=>{_0x57e936=_0x57e936['toLowerCase']();for(const _0x4dd326 of Object['keys'](_0x5925ea))if(_0x57e936===_0x4dd326['toLowerCase']())return!0x0;return!0x1;},moveHeadersToQuery=(_0x581750,_0x5e4f49={})=>{const {headers:_0x4cdd66,query:_0x54d69c={}}=HttpRequest['clone'](_0x581750);for(const _0x5ac1c6 of Object['keys'](_0x4cdd66)){const _0x6a94d9=_0x5ac1c6['toLowerCase']();('x-amz-'===_0x6a94d9['slice'](0x0,0x6)&&!_0x5e4f49['unhoistableHeaders']?.['has'](_0x6a94d9)||_0x5e4f49['hoistableHeaders']?.['has'](_0x6a94d9))&&(_0x54d69c[_0x5ac1c6]=_0x4cdd66[_0x5ac1c6],delete _0x4cdd66[_0x5ac1c6]);}return{..._0x581750,'headers':_0x4cdd66,'query':_0x54d69c};},prepareRequest=_0x596923=>{_0x596923=HttpRequest['clone'](_0x596923);for(const _0xd4964e of Object['keys'](_0x596923['headers']))GENERATED_HEADERS['indexOf'](_0xd4964e['toLowerCase']())>-0x1&&delete _0x596923['headers'][_0xd4964e];return _0x596923;},getCanonicalQuery=({query:_0x5ec691={}})=>{const _0xf946ff=[],_0xdb5179={};for(const _0x31983c of Object['keys'](_0x5ec691)){if(_0x31983c['toLowerCase']()===SIGNATURE_HEADER)continue;const _0x508ed5=escapeUri(_0x31983c);_0xf946ff['push'](_0x508ed5);const _0x1897e2=_0x5ec691[_0x31983c];'string'==typeof _0x1897e2?_0xdb5179[_0x508ed5]=_0x508ed5+'='+escapeUri(_0x1897e2):Array['isArray'](_0x1897e2)&&(_0xdb5179[_0x508ed5]=_0x1897e2['slice'](0x0)['reduce']((_0x3afcf6,_0x448907)=>_0x3afcf6['concat']([_0x508ed5+'='+escapeUri(_0x448907)]),[])['sort']()['join']('&'));}return _0xf946ff['sort']()['map'](_0x371a0c=>_0xdb5179[_0x371a0c])['filter'](_0x5ab791=>_0x5ab791)['join']('&');},iso8601=_0xe8604c=>toDate(_0xe8604c)['toISOString']()['replace'](/\.\d{3}Z$/,'Z'),toDate=_0x3784e3=>'number'==typeof _0x3784e3?new Date(0x3e8*_0x3784e3):'string'==typeof _0x3784e3?Number(_0x3784e3)?new Date(0x3e8*Number(_0x3784e3)):new Date(_0x3784e3):_0x3784e3;class SignatureV4Base{['service'];['regionProvider'];['credentialProvider'];['sha256'];['uriEscapePath'];['applyChecksum'];constructor({applyChecksum:_0x400a8b,credentials:_0x13fc00,region:_0x161622,service:_0x5c305a,sha256:_0x120b92,uriEscapePath:_0x2c6bbf=!0x0}){this['service']=_0x5c305a,this['sha256']=_0x120b92,this['uriEscapePath']=_0x2c6bbf,this['applyChecksum']='boolean'!=typeof _0x400a8b||_0x400a8b,this['regionProvider']=normalizeProvider$1(_0x161622),this['credentialProvider']=normalizeProvider$1(_0x13fc00);}['createCanonicalRequest'](_0x14cf89,_0x600963,_0x154d85){const _0x2a19e9=Object['keys'](_0x600963)['sort']();return _0x14cf89['method']+'\x0a'+this['getCanonicalPath'](_0x14cf89)+'\x0a'+getCanonicalQuery(_0x14cf89)+'\x0a'+_0x2a19e9['map'](_0x66bef6=>_0x66bef6+':'+_0x600963[_0x66bef6])['join']('\x0a')+'\x0a\x0a'+_0x2a19e9['join'](';')+'\x0a'+_0x154d85;}async['createStringToSign'](_0x5a6b19,_0x123df7,_0xb796f7,_0x206411){const _0x2743d7=new this['sha256']();return _0x2743d7['update'](toUint8Array(_0xb796f7)),_0x206411+'\x0a'+_0x5a6b19+'\x0a'+_0x123df7+'\x0a'+toHex(await _0x2743d7['digest']());}['getCanonicalPath']({path:_0x29aee9}){if(this['uriEscapePath']){const _0x3af228=[];for(const _0x1173ba of _0x29aee9['split']('/'))0x0!==_0x1173ba?.['length']&&'.'!==_0x1173ba&&('..'===_0x1173ba?_0x3af228['pop']():_0x3af228['push'](_0x1173ba));const _0x340d6b=''+(_0x29aee9?.['startsWith']('/')?'/':'')+_0x3af228['join']('/')+(_0x3af228['length']>0x0&&_0x29aee9?.['endsWith']('/')?'/':'');return escapeUri(_0x340d6b)['replace'](/%2F/g,'/');}return _0x29aee9;}['validateResolvedCredentials'](_0x4ca0df){if('object'!=typeof _0x4ca0df||'string'!=typeof _0x4ca0df['accessKeyId']||'string'!=typeof _0x4ca0df['secretAccessKey'])throw new Error('Resolved\x20credential\x20object\x20is\x20not\x20valid');}['formatDate'](_0x49b45d){const _0x35ff65=iso8601(_0x49b45d)['replace'](/[\-:]/g,'');return{'longDate':_0x35ff65,'shortDate':_0x35ff65['slice'](0x0,0x8)};}['getCanonicalHeaderList'](_0x276dee){return Object['keys'](_0x276dee)['sort']()['join'](';');}}class SignatureV4 extends SignatureV4Base{['headerFormatter']=new HeaderFormatter();constructor({applyChecksum:_0x22ef2f,credentials:_0x2f7283,region:_0x51f0c0,service:_0x4f8e93,sha256:_0x1073ad,uriEscapePath:_0xfe0fd2=!0x0}){super({'applyChecksum':_0x22ef2f,'credentials':_0x2f7283,'region':_0x51f0c0,'service':_0x4f8e93,'sha256':_0x1073ad,'uriEscapePath':_0xfe0fd2});}async['presign'](_0x32a928,_0x225198={}){const {signingDate:_0x9674fa=new Date(),expiresIn:_0x5aba9e=0xe10,unsignableHeaders:_0xa37bda,unhoistableHeaders:_0x3e7d2a,signableHeaders:_0x48b232,hoistableHeaders:_0xe5e2b3,signingRegion:_0x116a0d,signingService:_0x171747}=_0x225198,_0x520fa1=await this['credentialProvider']();this['validateResolvedCredentials'](_0x520fa1);const _0xec93a8=_0x116a0d??await this['regionProvider'](),{longDate:_0x2a8ebf,shortDate:_0x1d48bd}=this['formatDate'](_0x9674fa);if(_0x5aba9e>MAX_PRESIGNED_TTL)return Promise['reject']('Signature\x20version\x204\x20presigned\x20URLs\x20must\x20have\x20an\x20expiration\x20date\x20less\x20than\x20one\x20week\x20in\x20the\x20future');const _0x497d02=createScope(_0x1d48bd,_0xec93a8,_0x171747??this['service']),_0x3b61c0=moveHeadersToQuery(prepareRequest(_0x32a928),{'unhoistableHeaders':_0x3e7d2a,'hoistableHeaders':_0xe5e2b3});_0x520fa1['sessionToken']&&(_0x3b61c0['query'][TOKEN_QUERY_PARAM]=_0x520fa1['sessionToken']),_0x3b61c0['query'][ALGORITHM_QUERY_PARAM]=ALGORITHM_IDENTIFIER,_0x3b61c0['query'][CREDENTIAL_QUERY_PARAM]=_0x520fa1['accessKeyId']+'/'+_0x497d02,_0x3b61c0['query'][AMZ_DATE_QUERY_PARAM]=_0x2a8ebf,_0x3b61c0['query'][EXPIRES_QUERY_PARAM]=_0x5aba9e['toString'](0xa);const _0x53981c=getCanonicalHeaders(_0x3b61c0,_0xa37bda,_0x48b232);return _0x3b61c0['query'][SIGNED_HEADERS_QUERY_PARAM]=this['getCanonicalHeaderList'](_0x53981c),_0x3b61c0['query'][SIGNATURE_QUERY_PARAM]=await this['getSignature'](_0x2a8ebf,_0x497d02,this['getSigningKey'](_0x520fa1,_0xec93a8,_0x1d48bd,_0x171747),this['createCanonicalRequest'](_0x3b61c0,_0x53981c,await getPayloadHash(_0x32a928,this['sha256']))),_0x3b61c0;}async['sign'](_0x1135d1,_0x3c7a8d){return'string'==typeof _0x1135d1?this['signString'](_0x1135d1,_0x3c7a8d):_0x1135d1['headers']&&_0x1135d1['payload']?this['signEvent'](_0x1135d1,_0x3c7a8d):_0x1135d1['message']?this['signMessage'](_0x1135d1,_0x3c7a8d):this['signRequest'](_0x1135d1,_0x3c7a8d);}async['signEvent']({headers:_0x48b7f9,payload:_0x5304c0},{signingDate:_0x2579ca=new Date(),priorSignature:_0x9edc19,signingRegion:_0x190285,signingService:_0x4d0c56}){const _0x4f4e9e=_0x190285??await this['regionProvider'](),{shortDate:_0x28352c,longDate:_0x55265a}=this['formatDate'](_0x2579ca),_0x4c6340=createScope(_0x28352c,_0x4f4e9e,_0x4d0c56??this['service']),_0x121e96=await getPayloadHash({'headers':{},'body':_0x5304c0},this['sha256']),_0x54e0cf=new this['sha256']();_0x54e0cf['update'](_0x48b7f9);const _0x28e7ff=toHex(await _0x54e0cf['digest']()),_0x19e103=[EVENT_ALGORITHM_IDENTIFIER,_0x55265a,_0x4c6340,_0x9edc19,_0x28e7ff,_0x121e96]['join']('\x0a');return this['signString'](_0x19e103,{'signingDate':_0x2579ca,'signingRegion':_0x4f4e9e,'signingService':_0x4d0c56});}async['signMessage'](_0x3bb7f0,{signingDate:_0x4a67b5=new Date(),signingRegion:_0x4d6530,signingService:_0x5a48c1}){return this['signEvent']({'headers':this['headerFormatter']['format'](_0x3bb7f0['message']['headers']),'payload':_0x3bb7f0['message']['body']},{'signingDate':_0x4a67b5,'signingRegion':_0x4d6530,'signingService':_0x5a48c1,'priorSignature':_0x3bb7f0['priorSignature']})['then'](_0x531a09=>({'message':_0x3bb7f0['message'],'signature':_0x531a09}));}async['signString'](_0xc8f24,{signingDate:_0x36928f=new Date(),signingRegion:_0x3a742f,signingService:_0x29910a}={}){const _0x4027c6=await this['credentialProvider']();this['validateResolvedCredentials'](_0x4027c6);const _0x27abae=_0x3a742f??await this['regionProvider'](),{shortDate:_0x1ce507}=this['formatDate'](_0x36928f),_0x5701ad=new this['sha256'](await this['getSigningKey'](_0x4027c6,_0x27abae,_0x1ce507,_0x29910a));return _0x5701ad['update'](toUint8Array(_0xc8f24)),toHex(await _0x5701ad['digest']());}async['signRequest'](_0x2e9a09,{signingDate:_0x1f48c0=new Date(),signableHeaders:_0x419aa1,unsignableHeaders:_0x40c5d6,signingRegion:_0x1bbb8e,signingService:_0x15c3b8}={}){const _0x2f97e1=await this['credentialProvider']();this['validateResolvedCredentials'](_0x2f97e1);const _0x249cf9=_0x1bbb8e??await this['regionProvider'](),_0x50479a=prepareRequest(_0x2e9a09),{longDate:_0x3f045c,shortDate:_0x3250e8}=this['formatDate'](_0x1f48c0),_0x48aa24=createScope(_0x3250e8,_0x249cf9,_0x15c3b8??this['service']);_0x50479a['headers'][AMZ_DATE_HEADER]=_0x3f045c,_0x2f97e1['sessionToken']&&(_0x50479a['headers'][TOKEN_HEADER]=_0x2f97e1['sessionToken']);const _0x35d741=await getPayloadHash(_0x50479a,this['sha256']);!hasHeader(SHA256_HEADER,_0x50479a['headers'])&&this['applyChecksum']&&(_0x50479a['headers'][SHA256_HEADER]=_0x35d741);const _0x5a7d2f=getCanonicalHeaders(_0x50479a,_0x40c5d6,_0x419aa1),_0x2791ab=await this['getSignature'](_0x3f045c,_0x48aa24,this['getSigningKey'](_0x2f97e1,_0x249cf9,_0x3250e8,_0x15c3b8),this['createCanonicalRequest'](_0x50479a,_0x5a7d2f,_0x35d741));return _0x50479a['headers'][AUTH_HEADER]=ALGORITHM_IDENTIFIER+'\x20Credential='+_0x2f97e1['accessKeyId']+'/'+_0x48aa24+',\x20SignedHeaders='+this['getCanonicalHeaderList'](_0x5a7d2f)+',\x20Signature='+_0x2791ab,_0x50479a;}async['getSignature'](_0x2ffe4f,_0x191848,_0x100f80,_0x985b54){const _0x42bcd7=await this['createStringToSign'](_0x2ffe4f,_0x191848,_0x985b54,ALGORITHM_IDENTIFIER),_0x394bc1=new this['sha256'](await _0x100f80);return _0x394bc1['update'](toUint8Array(_0x42bcd7)),toHex(await _0x394bc1['digest']());}['getSigningKey'](_0x4ec062,_0x17f385,_0x4a11e4,_0x3fc476){return getSigningKey(this['sha256'],_0x4ec062,_0x4a11e4,_0x17f385,_0x3fc476||this['service']);}}const resolveAwsSdkSigV4Config=_0x23653b=>{let _0x4061f9,_0x24e466=_0x23653b['credentials'],_0x1191d6=!!_0x23653b['credentials'];Object['defineProperty'](_0x23653b,'credentials',{'set'(_0x31781b){_0x31781b&&_0x31781b!==_0x24e466&&_0x31781b!==_0x4061f9&&(_0x1191d6=!0x0),_0x24e466=_0x31781b;const _0x453e64=normalizeCredentialProvider(_0x23653b,{'credentials':_0x24e466,'credentialDefaultProvider':_0x23653b['credentialDefaultProvider']}),_0x4f832f=bindCallerConfig(_0x23653b,_0x453e64);if(_0x1191d6&&!_0x4f832f['attributed']){const _0x45aa55='object'==typeof _0x24e466&&null!==_0x24e466;_0x4061f9=async _0x21db34=>{const _0x1a3e05=await _0x4f832f(_0x21db34);return!_0x45aa55||_0x1a3e05['$source']&&0x0!==Object['keys'](_0x1a3e05['$source'])['length']?_0x1a3e05:setCredentialFeature(_0x1a3e05,'CREDENTIALS_CODE','e');},_0x4061f9['memoized']=_0x4f832f['memoized'],_0x4061f9['configBound']=_0x4f832f['configBound'],_0x4061f9['attributed']=!0x0;}else _0x4061f9=_0x4f832f;},'get':()=>_0x4061f9,'enumerable':!0x0,'configurable':!0x0}),_0x23653b['credentials']=_0x24e466;const {signingEscapePath:_0x12489b=!0x0,systemClockOffset:_0x42c882=_0x23653b['systemClockOffset']||0x0,sha256:_0x815073}=_0x23653b;let _0xdb863f;return _0xdb863f=_0x23653b['signer']?normalizeProvider(_0x23653b['signer']):_0x23653b['regionInfoProvider']?()=>normalizeProvider(_0x23653b['region'])()['then'](async _0x45d3cb=>[await _0x23653b['regionInfoProvider'](_0x45d3cb,{'useFipsEndpoint':await _0x23653b['useFipsEndpoint'](),'useDualstackEndpoint':await _0x23653b['useDualstackEndpoint']()})||{},_0x45d3cb])['then'](([_0x4181cf,_0x209107])=>{const {signingRegion:_0x16fef7,signingService:_0x24db54}=_0x4181cf;_0x23653b['signingRegion']=_0x23653b['signingRegion']||_0x16fef7||_0x209107,_0x23653b['signingName']=_0x23653b['signingName']||_0x24db54||_0x23653b['serviceId'];const _0x19d14a={..._0x23653b,'credentials':_0x23653b['credentials'],'region':_0x23653b['signingRegion'],'service':_0x23653b['signingName'],'sha256':_0x815073,'uriEscapePath':_0x12489b};return new(_0x23653b['signerConstructor']||SignatureV4)(_0x19d14a);}):async _0x3f8f9a=>{const _0x2bb98e=(_0x3f8f9a=Object['assign']({},{'name':'sigv4','signingName':_0x23653b['signingName']||_0x23653b['defaultSigningName'],'signingRegion':await normalizeProvider(_0x23653b['region'])(),'properties':{}},_0x3f8f9a))['signingRegion'],_0x1d1a65=_0x3f8f9a['signingName'];_0x23653b['signingRegion']=_0x23653b['signingRegion']||_0x2bb98e,_0x23653b['signingName']=_0x23653b['signingName']||_0x1d1a65||_0x23653b['serviceId'];const _0x32d65b={..._0x23653b,'credentials':_0x23653b['credentials'],'region':_0x23653b['signingRegion'],'service':_0x23653b['signingName'],'sha256':_0x815073,'uriEscapePath':_0x12489b};return new(_0x23653b['signerConstructor']||SignatureV4)(_0x32d65b);},Object['assign'](_0x23653b,{'systemClockOffset':_0x42c882,'signingEscapePath':_0x12489b,'signer':_0xdb863f});};function normalizeCredentialProvider(_0x5c22cc,{credentials:_0x380cc4,credentialDefaultProvider:_0xaeae7a}){let _0x3ecb72;return _0x3ecb72=_0x380cc4?_0x380cc4?.['memoized']?_0x380cc4:memoizeIdentityProvider(_0x380cc4,isIdentityExpired,doesIdentityRequireRefresh):_0xaeae7a?normalizeProvider(_0xaeae7a(Object['assign']({},_0x5c22cc,{'parentClientConfig':_0x5c22cc}))):async()=>{throw new Error('@aws-sdk/core::resolveAwsSdkSigV4Config\x20-\x20`credentials`\x20not\x20provided\x20and\x20no\x20credentialDefaultProvider\x20was\x20configured.');},_0x3ecb72['memoized']=!0x0,_0x3ecb72;}function bindCallerConfig(_0xc77182,_0x301565){if(_0x301565['configBound'])return _0x301565;const _0x253d04=async _0x44a9c8=>_0x301565({..._0x44a9c8,'callerClientConfig':_0xc77182});return _0x253d04['memoized']=_0x301565['memoized'],_0x253d04['configBound']=!0x0,_0x253d04;}const TEXT_ENCODER$1='function'==typeof TextEncoder?new TextEncoder():null,calculateBodyLength=_0x20c536=>{if('string'==typeof _0x20c536){if(TEXT_ENCODER$1)return TEXT_ENCODER$1['encode'](_0x20c536)['byteLength'];let _0x224428=_0x20c536['length'];for(let _0x953488=_0x224428-0x1;_0x953488>=0x0;_0x953488--){const _0x57729b=_0x20c536['charCodeAt'](_0x953488);_0x57729b>0x7f&&_0x57729b<=0x7ff?_0x224428++:_0x57729b>0x7ff&&_0x57729b<=0xffff&&(_0x224428+=0x2),_0x57729b>=0xdc00&&_0x57729b<=0xdfff&&_0x953488--;}return _0x224428;}if('number'==typeof _0x20c536['byteLength'])return _0x20c536['byteLength'];if('number'==typeof _0x20c536['size'])return _0x20c536['size'];throw new Error('Body\x20Length\x20computation\x20failed\x20for\x20'+_0x20c536);},getAllAliases=(_0xcd16db,_0x29094f)=>{const _0x1f3b4a=[];if(_0xcd16db&&_0x1f3b4a['push'](_0xcd16db),_0x29094f){for(const _0xfbe1e0 of _0x29094f)_0x1f3b4a['push'](_0xfbe1e0);}return _0x1f3b4a;},getMiddlewareNameWithAliases=(_0x4ed8c3,_0x1775f1)=>''+(_0x4ed8c3||'anonymous')+(_0x1775f1&&_0x1775f1['length']>0x0?'\x20(a.k.a.\x20'+_0x1775f1['join'](',')+')':''),constructStack=()=>{let _0x250c21=[],_0x3b6ba1=[],_0x2eeb64=!0x1;const _0x1157b5=new Set(),_0x193d2b=_0x211ece=>(_0x250c21['forEach'](_0x4c0186=>{_0x211ece['add'](_0x4c0186['middleware'],{..._0x4c0186});}),_0x3b6ba1['forEach'](_0x372431=>{_0x211ece['addRelativeTo'](_0x372431['middleware'],{..._0x372431});}),_0x211ece['identifyOnResolve']?.(_0x300cd4['identifyOnResolve']()),_0x211ece),_0xcc2104=_0xbdab69=>{const _0x5edf48=[];return _0xbdab69['before']['forEach'](_0x30c8a2=>{0x0===_0x30c8a2['before']['length']&&0x0===_0x30c8a2['after']['length']?_0x5edf48['push'](_0x30c8a2):_0x5edf48['push'](..._0xcc2104(_0x30c8a2));}),_0x5edf48['push'](_0xbdab69),_0xbdab69['after']['reverse']()['forEach'](_0x269c22=>{0x0===_0x269c22['before']['length']&&0x0===_0x269c22['after']['length']?_0x5edf48['push'](_0x269c22):_0x5edf48['push'](..._0xcc2104(_0x269c22));}),_0x5edf48;},_0x5959a6=(_0x306044=!0x1)=>{const _0x4123a4=[],_0x2f78c7=[],_0x33713f={};_0x250c21['forEach'](_0x1411ef=>{const _0x39427d={..._0x1411ef,'before':[],'after':[]};for(const _0x298ef4 of getAllAliases(_0x39427d['name'],_0x39427d['aliases']))_0x33713f[_0x298ef4]=_0x39427d;_0x4123a4['push'](_0x39427d);}),_0x3b6ba1['forEach'](_0x5bd32b=>{const _0x1211d2={..._0x5bd32b,'before':[],'after':[]};for(const _0x27cf6c of getAllAliases(_0x1211d2['name'],_0x1211d2['aliases']))_0x33713f[_0x27cf6c]=_0x1211d2;_0x2f78c7['push'](_0x1211d2);}),_0x2f78c7['forEach'](_0x3cbb99=>{if(_0x3cbb99['toMiddleware']){const _0x3fb5d9=_0x33713f[_0x3cbb99['toMiddleware']];if(void 0x0===_0x3fb5d9){if(_0x306044)return;throw new Error(_0x3cbb99['toMiddleware']+'\x20is\x20not\x20found\x20when\x20adding\x20'+getMiddlewareNameWithAliases(_0x3cbb99['name'],_0x3cbb99['aliases'])+'\x20middleware\x20'+_0x3cbb99['relation']+'\x20'+_0x3cbb99['toMiddleware']);}'after'===_0x3cbb99['relation']&&_0x3fb5d9['after']['push'](_0x3cbb99),'before'===_0x3cbb99['relation']&&_0x3fb5d9['before']['push'](_0x3cbb99);}});const _0x5bbe40=(_0x5bccf2=_0x4123a4,_0x5bccf2['sort']((_0x5be778,_0x333115)=>stepWeights[_0x333115['step']]-stepWeights[_0x5be778['step']]||priorityWeights[_0x333115['priority']||'normal']-priorityWeights[_0x5be778['priority']||'normal']))['map'](_0xcc2104)['reduce']((_0x18d457,_0x1ab4a5)=>(_0x18d457['push'](..._0x1ab4a5),_0x18d457),[]);var _0x5bccf2;return _0x5bbe40;},_0x300cd4={'add':(_0x506d06,_0x43240a={})=>{const {name:_0x2f6fbe,override:_0x517844,aliases:_0x3da362}=_0x43240a,_0x5af6ea={'step':'initialize','priority':'normal','middleware':_0x506d06,..._0x43240a},_0x3ce77c=getAllAliases(_0x2f6fbe,_0x3da362);if(_0x3ce77c['length']>0x0){if(_0x3ce77c['some'](_0x292e88=>_0x1157b5['has'](_0x292e88))){if(!_0x517844)throw new Error('Duplicate\x20middleware\x20name\x20\x27'+getMiddlewareNameWithAliases(_0x2f6fbe,_0x3da362)+'\x27');for(const _0x1408bb of _0x3ce77c){const _0x13c825=_0x250c21['findIndex'](_0x36c1b3=>_0x36c1b3['name']===_0x1408bb||_0x36c1b3['aliases']?.['some'](_0x46f67c=>_0x46f67c===_0x1408bb));if(-0x1===_0x13c825)continue;const _0x13b32a=_0x250c21[_0x13c825];if(_0x13b32a['step']!==_0x5af6ea['step']||_0x5af6ea['priority']!==_0x13b32a['priority'])throw new Error('\x22'+getMiddlewareNameWithAliases(_0x13b32a['name'],_0x13b32a['aliases'])+'\x22\x20middleware\x20with\x20'+_0x13b32a['priority']+'\x20priority\x20in\x20'+_0x13b32a['step']+'\x20step\x20cannot\x20be\x20overridden\x20by\x20\x22'+getMiddlewareNameWithAliases(_0x2f6fbe,_0x3da362)+'\x22\x20middleware\x20with\x20'+_0x5af6ea['priority']+'\x20priority\x20in\x20'+_0x5af6ea['step']+'\x20step.');_0x250c21['splice'](_0x13c825,0x1);}}for(const _0x47dc54 of _0x3ce77c)_0x1157b5['add'](_0x47dc54);}_0x250c21['push'](_0x5af6ea);},'addRelativeTo':(_0x29c579,_0x4c0f19)=>{const {name:_0x568be2,override:_0x2227d0,aliases:_0x773f60}=_0x4c0f19,_0x1621d7={'middleware':_0x29c579,..._0x4c0f19},_0x1c1c26=getAllAliases(_0x568be2,_0x773f60);if(_0x1c1c26['length']>0x0){if(_0x1c1c26['some'](_0x43dda2=>_0x1157b5['has'](_0x43dda2))){if(!_0x2227d0)throw new Error('Duplicate\x20middleware\x20name\x20\x27'+getMiddlewareNameWithAliases(_0x568be2,_0x773f60)+'\x27');for(const _0x42591c of _0x1c1c26){const _0x573379=_0x3b6ba1['findIndex'](_0x29fd9f=>_0x29fd9f['name']===_0x42591c||_0x29fd9f['aliases']?.['some'](_0x2a8493=>_0x2a8493===_0x42591c));if(-0x1===_0x573379)continue;const _0x34f11f=_0x3b6ba1[_0x573379];if(_0x34f11f['toMiddleware']!==_0x1621d7['toMiddleware']||_0x34f11f['relation']!==_0x1621d7['relation'])throw new Error('\x22'+getMiddlewareNameWithAliases(_0x34f11f['name'],_0x34f11f['aliases'])+'\x22\x20middleware\x20'+_0x34f11f['relation']+'\x20\x22'+_0x34f11f['toMiddleware']+'\x22\x20middleware\x20cannot\x20be\x20overridden\x20by\x20\x22'+getMiddlewareNameWithAliases(_0x568be2,_0x773f60)+'\x22\x20middleware\x20'+_0x1621d7['relation']+'\x20\x22'+_0x1621d7['toMiddleware']+'\x22\x20middleware.');_0x3b6ba1['splice'](_0x573379,0x1);}}for(const _0x4c9dd3 of _0x1c1c26)_0x1157b5['add'](_0x4c9dd3);}_0x3b6ba1['push'](_0x1621d7);},'clone':()=>_0x193d2b(constructStack()),'use':_0x27eecf=>{_0x27eecf['applyToStack'](_0x300cd4);},'remove':_0x59e63=>'string'==typeof _0x59e63?(_0xc3258e=>{let _0x5de289=!0x1;const _0x4520bb=_0x4ace72=>{const _0x46facc=getAllAliases(_0x4ace72['name'],_0x4ace72['aliases']);if(_0x46facc['includes'](_0xc3258e)){_0x5de289=!0x0;for(const _0x433afd of _0x46facc)_0x1157b5['delete'](_0x433afd);return!0x1;}return!0x0;};return _0x250c21=_0x250c21['filter'](_0x4520bb),_0x3b6ba1=_0x3b6ba1['filter'](_0x4520bb),_0x5de289;})(_0x59e63):(_0x348c28=>{let _0x12ddcc=!0x1;const _0x324290=_0x2cf4dd=>{if(_0x2cf4dd['middleware']===_0x348c28){_0x12ddcc=!0x0;for(const _0x5078b3 of getAllAliases(_0x2cf4dd['name'],_0x2cf4dd['aliases']))_0x1157b5['delete'](_0x5078b3);return!0x1;}return!0x0;};return _0x250c21=_0x250c21['filter'](_0x324290),_0x3b6ba1=_0x3b6ba1['filter'](_0x324290),_0x12ddcc;})(_0x59e63),'removeByTag':_0x5e1d65=>{let _0x3317f5=!0x1;const _0x44c6ab=_0x1ee419=>{const {tags:_0x4b523a,name:_0x2b18b2,aliases:_0x47e418}=_0x1ee419;if(_0x4b523a&&_0x4b523a['includes'](_0x5e1d65)){const _0x1667ab=getAllAliases(_0x2b18b2,_0x47e418);for(const _0x5d4d6f of _0x1667ab)_0x1157b5['delete'](_0x5d4d6f);return _0x3317f5=!0x0,!0x1;}return!0x0;};return _0x250c21=_0x250c21['filter'](_0x44c6ab),_0x3b6ba1=_0x3b6ba1['filter'](_0x44c6ab),_0x3317f5;},'concat':_0x42a046=>{const _0x50c331=_0x193d2b(constructStack());return _0x50c331['use'](_0x42a046),_0x50c331['identifyOnResolve'](_0x2eeb64||_0x50c331['identifyOnResolve']()||(_0x42a046['identifyOnResolve']?.()??!0x1)),_0x50c331;},'applyToStack':_0x193d2b,'identify':()=>_0x5959a6(!0x0)['map'](_0x5ac58c=>{const _0x41d0f9=_0x5ac58c['step']??_0x5ac58c['relation']+'\x20'+_0x5ac58c['toMiddleware'];return getMiddlewareNameWithAliases(_0x5ac58c['name'],_0x5ac58c['aliases'])+'\x20-\x20'+_0x41d0f9;}),'identifyOnResolve':_0x1b8014=>('boolean'==typeof _0x1b8014&&(_0x2eeb64=_0x1b8014),_0x2eeb64),'resolve':(_0x522496,_0x182f69)=>{for(const _0x313772 of _0x5959a6()['map'](_0x156f26=>_0x156f26['middleware'])['reverse']())_0x522496=_0x313772(_0x522496,_0x182f69);return _0x2eeb64&&console['log'](_0x300cd4['identify']()),_0x522496;}};return _0x300cd4;},stepWeights={'initialize':0x5,'serialize':0x4,'build':0x3,'finalizeRequest':0x2,'deserialize':0x1},priorityWeights={'high':0x3,'normal':0x2,'low':0x1};class Client{['config'];['middlewareStack']=constructStack();['initConfig'];['handlers'];constructor(_0x50f562){this['config']=_0x50f562;const {protocol:_0x2500aa,protocolSettings:_0x197058}=_0x50f562;_0x197058&&'function'==typeof _0x2500aa&&(_0x50f562['protocol']=new _0x2500aa(_0x197058));}['send'](_0x819c1d,_0x30c6da,_0x16fb84){const _0x15524b='function'!=typeof _0x30c6da?_0x30c6da:void 0x0,_0x5e553b='function'==typeof _0x30c6da?_0x30c6da:_0x16fb84;let _0x5e806b;if(void 0x0===_0x15524b&&!0x0===this['config']['cacheMiddleware']){this['handlers']||(this['handlers']=new WeakMap());const _0x4f2965=this['handlers'];_0x4f2965['has'](_0x819c1d['constructor'])?_0x5e806b=_0x4f2965['get'](_0x819c1d['constructor']):(_0x5e806b=_0x819c1d['resolveMiddleware'](this['middlewareStack'],this['config'],_0x15524b),_0x4f2965['set'](_0x819c1d['constructor'],_0x5e806b));}else delete this['handlers'],_0x5e806b=_0x819c1d['resolveMiddleware'](this['middlewareStack'],this['config'],_0x15524b);if(!_0x5e553b)return _0x5e806b(_0x819c1d)['then'](_0x5d091f=>_0x5d091f['output']);_0x5e806b(_0x819c1d)['then'](_0x1c3d5b=>_0x5e553b(null,_0x1c3d5b['output']),_0x5780aa=>_0x5e553b(_0x5780aa))['catch'](()=>{});}['destroy'](){this['config']?.['requestHandler']?.['destroy']?.(),delete this['handlers'];}}const SENSITIVE_STRING='***SensitiveInformation***';function schemaLogFilter(_0x25556f,_0xc534ce){if(null==_0xc534ce)return _0xc534ce;const _0x46bc0a=NormalizedSchema['of'](_0x25556f);if(_0x46bc0a['getMergedTraits']()['sensitive'])return SENSITIVE_STRING;if(_0x46bc0a['isListSchema']()){if(!!_0x46bc0a['getValueSchema']()['getMergedTraits']()['sensitive'])return SENSITIVE_STRING;}else{if(_0x46bc0a['isMapSchema']()){if(!!_0x46bc0a['getKeySchema']()['getMergedTraits']()['sensitive']||!!_0x46bc0a['getValueSchema']()['getMergedTraits']()['sensitive'])return SENSITIVE_STRING;}else{if(_0x46bc0a['isStructSchema']()&&'object'==typeof _0xc534ce){const _0x592410=_0xc534ce,_0x40ef2b={};for(const [_0x273eb4,_0x892d0c]of _0x46bc0a['structIterator']())null!=_0x592410[_0x273eb4]&&(_0x40ef2b[_0x273eb4]=schemaLogFilter(_0x892d0c,_0x592410[_0x273eb4]));return _0x40ef2b;}}}return _0xc534ce;}class Command{['middlewareStack']=constructStack();['schema'];static['classBuilder'](){return new ClassBuilder();}['resolveMiddlewareWithContext'](_0xc7bd50,_0x332ef8,_0x5034f9,{middlewareFn:_0x3f5cc5,clientName:_0x31e2b3,commandName:_0x1cfb17,inputFilterSensitiveLog:_0x46d689,outputFilterSensitiveLog:_0x52fbd7,smithyContext:_0x30755c,additionalContext:_0x34d5f3,CommandCtor:_0x20051a}){for(const _0xd8ecbf of _0x3f5cc5['bind'](this)(_0x20051a,_0xc7bd50,_0x332ef8,_0x5034f9))this['middlewareStack']['use'](_0xd8ecbf);const _0x30dd25=_0xc7bd50['concat'](this['middlewareStack']),{logger:_0x31ae1a}=_0x332ef8,_0x4e336a={'logger':_0x31ae1a,'clientName':_0x31e2b3,'commandName':_0x1cfb17,'inputFilterSensitiveLog':_0x46d689,'outputFilterSensitiveLog':_0x52fbd7,[SMITHY_CONTEXT_KEY]:{'commandInstance':this,..._0x30755c},..._0x34d5f3},{requestHandler:_0x3e4c79}=_0x332ef8;return _0x30dd25['resolve'](_0x5cd05f=>_0x3e4c79['handle'](_0x5cd05f['request'],_0x5034f9||{}),_0x4e336a);}}class ClassBuilder{['_init']=()=>{};['_ep']={};['_middlewareFn']=()=>[];['_commandName']='';['_clientName']='';['_additionalContext']={};['_smithyContext']={};['_inputFilterSensitiveLog']=void 0x0;['_outputFilterSensitiveLog']=void 0x0;['_serializer']=null;['_deserializer']=null;['_operationSchema'];['init'](_0x24efcd){this['_init']=_0x24efcd;}['ep'](_0x46abea){return this['_ep']=_0x46abea,this;}['m'](_0x28a3d4){return this['_middlewareFn']=_0x28a3d4,this;}['s'](_0x229104,_0x61dbc0,_0x22763c={}){return this['_smithyContext']={'service':_0x229104,'operation':_0x61dbc0,..._0x22763c},this;}['c'](_0x3c7663={}){return this['_additionalContext']=_0x3c7663,this;}['n'](_0x3e505f,_0x593def){return this['_clientName']=_0x3e505f,this['_commandName']=_0x593def,this;}['f'](_0x79561b=_0x1604e9=>_0x1604e9,_0x15fa03=_0x6c193c=>_0x6c193c){return this['_inputFilterSensitiveLog']=_0x79561b,this['_outputFilterSensitiveLog']=_0x15fa03,this;}['ser'](_0x1e5997){return this['_serializer']=_0x1e5997,this;}['de'](_0x2188dd){return this['_deserializer']=_0x2188dd,this;}['sc'](_0x3d37d2){return this['_operationSchema']=_0x3d37d2,this['_smithyContext']['operationSchema']=_0x3d37d2,this;}['build'](){const _0x1a1739=this;let _0x26502d;return _0x26502d=class extends Command{['input'];static['getEndpointParameterInstructions'](){return _0x1a1739['_ep'];}constructor(...[_0x4a2cb9]){super(),this['input']=_0x4a2cb9??{},_0x1a1739['_init'](this),this['schema']=_0x1a1739['_operationSchema'];}['resolveMiddleware'](_0x3223ba,_0x4e4db4,_0x6b3c15){const _0x4166e6=_0x1a1739['_operationSchema'],_0x1147f5=_0x4166e6?.[0x4]??_0x4166e6?.['input'],_0x19e67e=_0x4166e6?.[0x5]??_0x4166e6?.['output'];return this['resolveMiddlewareWithContext'](_0x3223ba,_0x4e4db4,_0x6b3c15,{'CommandCtor':_0x26502d,'middlewareFn':_0x1a1739['_middlewareFn'],'clientName':_0x1a1739['_clientName'],'commandName':_0x1a1739['_commandName'],'inputFilterSensitiveLog':_0x1a1739['_inputFilterSensitiveLog']??(_0x4166e6?schemaLogFilter['bind'](null,_0x1147f5):_0x33f109=>_0x33f109),'outputFilterSensitiveLog':_0x1a1739['_outputFilterSensitiveLog']??(_0x4166e6?schemaLogFilter['bind'](null,_0x19e67e):_0x4d9e50=>_0x4d9e50),'smithyContext':_0x1a1739['_smithyContext'],'additionalContext':_0x1a1739['_additionalContext']});}['serialize']=_0x1a1739['_serializer'];['deserialize']=_0x1a1739['_deserializer'];};}}class ServiceException extends Error{['$fault'];['$response'];['$retryable'];['$metadata'];constructor(_0x15de3d){super(_0x15de3d['message']),Object['setPrototypeOf'](this,Object['getPrototypeOf'](this)['constructor']['prototype']),this['name']=_0x15de3d['name'],this['$fault']=_0x15de3d['$fault'],this['$metadata']=_0x15de3d['$metadata'];}static['isInstance'](_0x10be6f){if(!_0x10be6f)return!0x1;const _0x1d89ce=_0x10be6f;return ServiceException['prototype']['isPrototypeOf'](_0x1d89ce)||Boolean(_0x1d89ce['$fault'])&&Boolean(_0x1d89ce['$metadata'])&&('client'===_0x1d89ce['$fault']||'server'===_0x1d89ce['$fault']);}static[Symbol['hasInstance']](_0x2956a9){if(!_0x2956a9)return!0x1;const _0x2cdb14=_0x2956a9;return this===ServiceException?ServiceException['isInstance'](_0x2956a9):!!ServiceException['isInstance'](_0x2956a9)&&(_0x2cdb14['name']&&this['name']?this['prototype']['isPrototypeOf'](_0x2956a9)||_0x2cdb14['name']===this['name']:this['prototype']['isPrototypeOf'](_0x2956a9));}}const decorateServiceException=(_0x3ede73,_0x39c1c5={})=>{Object['entries'](_0x39c1c5)['filter'](([,_0x237a14])=>void 0x0!==_0x237a14)['forEach'](([_0x461a0f,_0x4528ba])=>{null!=_0x3ede73[_0x461a0f]&&''!==_0x3ede73[_0x461a0f]||(_0x3ede73[_0x461a0f]=_0x4528ba);});const _0x4b7ef2=_0x3ede73['message']||_0x3ede73['Message']||'UnknownError';return _0x3ede73['message']=_0x4b7ef2,delete _0x3ede73['Message'],_0x3ede73;},loadConfigsForDefaultMode=_0x762269=>{switch(_0x762269){case'standard':case'cross-region':return{'retryMode':'standard','connectionTimeout':0xc1c};case'in-region':return{'retryMode':'standard','connectionTimeout':0x44c};case'mobile':return{'retryMode':'standard','connectionTimeout':0x7530};default:return{};}},getChecksumConfiguration=_0x11b4f1=>{const _0x33c1ce=[];for(const _0x26a5ed in AlgorithmId){const _0x11f37c=AlgorithmId[_0x26a5ed];void 0x0!==_0x11b4f1[_0x11f37c]&&_0x33c1ce['push']({'algorithmId':()=>_0x11f37c,'checksumConstructor':()=>_0x11b4f1[_0x11f37c]});}return{'addChecksumAlgorithm'(_0x2c74bf){_0x33c1ce['push'](_0x2c74bf);},'checksumAlgorithms':()=>_0x33c1ce};},resolveChecksumRuntimeConfig=_0x52cda1=>{const _0x35b27d={};return _0x52cda1['checksumAlgorithms']()['forEach'](_0x1c9590=>{_0x35b27d[_0x1c9590['algorithmId']()]=_0x1c9590['checksumConstructor']();}),_0x35b27d;},getRetryConfiguration=_0x16b6b9=>({'setRetryStrategy'(_0x300f7c){_0x16b6b9['retryStrategy']=_0x300f7c;},'retryStrategy':()=>_0x16b6b9['retryStrategy']}),resolveRetryRuntimeConfig=_0x42ba53=>{const _0x43a873={};return _0x43a873['retryStrategy']=_0x42ba53['retryStrategy'](),_0x43a873;},getDefaultExtensionConfiguration=_0x59a797=>Object['assign'](getChecksumConfiguration(_0x59a797),getRetryConfiguration(_0x59a797)),resolveDefaultRuntimeConfig=_0x31ca1c=>Object['assign'](resolveChecksumRuntimeConfig(_0x31ca1c),resolveRetryRuntimeConfig(_0x31ca1c));class NoOpLogger{['trace'](){}['debug'](){}['info'](){}['warn'](){}['error'](){}}class ProtocolLib{['queryCompat'];constructor(_0x6746ed=!0x1){this['queryCompat']=_0x6746ed;}['resolveRestContentType'](_0x3c241f,_0x5c5348){const _0xa57857=_0x5c5348['getMemberSchemas'](),_0x504075=Object['values'](_0xa57857)['find'](_0x50a910=>!!_0x50a910['getMergedTraits']()['httpPayload']);if(_0x504075){const _0x4131e5=_0x504075['getMergedTraits']()['mediaType'];return _0x4131e5||(_0x504075['isStringSchema']()?'text/plain':_0x504075['isBlobSchema']()?'application/octet-stream':_0x3c241f);}if(!_0x5c5348['isUnitSchema']()){const _0x2f114d=Object['values'](_0xa57857)['find'](_0x50cea1=>{const {httpQuery:_0x5368b1,httpQueryParams:_0x320a67,httpHeader:_0x198226,httpLabel:_0x28db0d,httpPrefixHeaders:_0x241a36}=_0x50cea1['getMergedTraits']();return!_0x5368b1&&!_0x320a67&&!_0x198226&&!_0x28db0d&&void 0x0===_0x241a36;});if(_0x2f114d)return _0x3c241f;}}async['getErrorSchemaOrThrowBaseException'](_0x5ce3f1,_0x334c34,_0x3cafe2,_0x3aa647,_0x5c5c26,_0x193137){let _0x4d7a5d=_0x334c34,_0x1820f7=_0x5ce3f1;_0x5ce3f1['includes']('#')&&([_0x4d7a5d,_0x1820f7]=_0x5ce3f1['split']('#'));const _0x4dbf47={'$metadata':_0x5c5c26,'$fault':_0x3cafe2['statusCode']<0x1f4?'client':'server'},_0x59e835=TypeRegistry['for'](_0x4d7a5d);try{return{'errorSchema':_0x193137?.(_0x59e835,_0x1820f7)??_0x59e835['getSchema'](_0x5ce3f1),'errorMetadata':_0x4dbf47};}catch(_0x2ce927){_0x3aa647['message']=_0x3aa647['message']??_0x3aa647['Message']??'UnknownError';const _0x257b13=TypeRegistry['for']('smithy.ts.sdk.synthetic.'+_0x4d7a5d),_0x4a4956=_0x257b13['getBaseException']();if(_0x4a4956){const _0x5643aa=_0x257b13['getErrorCtor'](_0x4a4956)??Error;throw this['decorateServiceException'](Object['assign'](new _0x5643aa({'name':_0x1820f7}),_0x4dbf47),_0x3aa647);}throw this['decorateServiceException'](Object['assign'](new Error(_0x1820f7),_0x4dbf47),_0x3aa647);}}['decorateServiceException'](_0x2b9707,_0x18309d={}){if(this['queryCompat']){const _0x5c761a=_0x2b9707['Message']??_0x18309d['Message'],_0x451023=decorateServiceException(_0x2b9707,_0x18309d);_0x5c761a&&(_0x451023['message']=_0x5c761a),_0x451023['Error']={..._0x451023['Error'],'Type':_0x451023['Error']['Type'],'Code':_0x451023['Error']['Code'],'Message':_0x451023['Error']['message']??_0x451023['Error']['Message']??_0x5c761a};const _0x1f06fc=_0x451023['$metadata']['requestId'];return _0x1f06fc&&(_0x451023['RequestId']=_0x1f06fc),_0x451023;}return decorateServiceException(_0x2b9707,_0x18309d);}['setQueryCompatError'](_0x11f443,_0x1eca3b){const _0x391617=_0x1eca3b['headers']?.['x-amzn-query-error'];if(void 0x0!==_0x11f443&&null!=_0x391617){const [_0x183323,_0xc619f4]=_0x391617['split'](';'),_0x230185=Object['entries'](_0x11f443),_0x2f2ff6={'Code':_0x183323,'Type':_0xc619f4};Object['assign'](_0x11f443,_0x2f2ff6);for(const [_0x5e08b,_0x16c0e2]of _0x230185)_0x2f2ff6['message'===_0x5e08b?'Message':_0x5e08b]=_0x16c0e2;delete _0x2f2ff6['__type'],_0x11f443['Error']=_0x2f2ff6;}}['queryCompatOutput'](_0x3aa3a6,_0x5dcc37){_0x3aa3a6['Error']&&(_0x5dcc37['Error']=_0x3aa3a6['Error']),_0x3aa3a6['Type']&&(_0x5dcc37['Type']=_0x3aa3a6['Type']),_0x3aa3a6['Code']&&(_0x5dcc37['Code']=_0x3aa3a6['Code']);}['findQueryCompatibleError'](_0x2893d8,_0x465960){try{return _0x2893d8['getSchema'](_0x465960);}catch(_0x207839){return _0x2893d8['find'](_0x3b651f=>NormalizedSchema['of'](_0x3b651f)['getMergedTraits']()['awsQueryError']?.[0x0]===_0x465960);}}}class SerdeContextConfig{['serdeContext'];['setSerdeContext'](_0x26fabe){this['serdeContext']=_0x26fabe;}}class UnionSerde{['from'];['to'];['keys'];constructor(_0x2a688d,_0x409bdc){this['from']=_0x2a688d,this['to']=_0x409bdc,this['keys']=new Set(Object['keys'](this['from'])['filter'](_0xf44d31=>'__type'!==_0xf44d31));}['mark'](_0x3e4aaf){this['keys']['delete'](_0x3e4aaf);}['hasUnknown'](){return 0x1===this['keys']['size']&&0x0===Object['keys'](this['to'])['length'];}['writeUnknown'](){if(this['hasUnknown']()){const _0x573081=this['keys']['values']()['next']()['value'],_0x550ecc=this['from'][_0x573081];this['to']['$unknown']=[_0x573081,_0x550ecc];}}}function jsonReviver(_0x32d56c,_0x48842b,_0xd567dd){if(_0xd567dd?.['source']){const _0x24e557=_0xd567dd['source'];if('number'==typeof _0x48842b&&(_0x48842b>Number['MAX_SAFE_INTEGER']||_0x48842b<Number['MIN_SAFE_INTEGER']||_0x24e557!==String(_0x48842b)))return _0x24e557['includes']('.')?new NumericValue(_0x24e557,'bigDecimal'):BigInt(_0x24e557);}return _0x48842b;}const collectBodyString=(_0x3cf3aa,_0x28980e)=>collectBody(_0x3cf3aa,_0x28980e)['then'](_0x19b281=>(_0x28980e?.['utf8Encoder']??toUtf8)(_0x19b281)),parseJsonBody=(_0x433b62,_0x15226a)=>collectBodyString(_0x433b62,_0x15226a)['then'](_0x58d769=>{if(_0x58d769['length'])try{return JSON['parse'](_0x58d769);}catch(_0x3cfe49){throw'SyntaxError'===_0x3cfe49?.['name']&&Object['defineProperty'](_0x3cfe49,'$responseBodyText',{'value':_0x58d769}),_0x3cfe49;}return{};}),loadRestJsonErrorCode=(_0x50aaf9,_0x2de197)=>{const _0x2f3d26=(_0x412e88,_0x3b6996)=>Object['keys'](_0x412e88)['find'](_0x2378f3=>_0x2378f3['toLowerCase']()===_0x3b6996['toLowerCase']()),_0x2a2a25=_0x4b8569=>{let _0x84338a=_0x4b8569;return'number'==typeof _0x84338a&&(_0x84338a=_0x84338a['toString']()),_0x84338a['indexOf'](',')>=0x0&&(_0x84338a=_0x84338a['split'](',')[0x0]),_0x84338a['indexOf'](':')>=0x0&&(_0x84338a=_0x84338a['split'](':')[0x0]),_0x84338a['indexOf']('#')>=0x0&&(_0x84338a=_0x84338a['split']('#')[0x1]),_0x84338a;},_0x3a45d1=_0x2f3d26(_0x50aaf9['headers'],'x-amzn-errortype');if(void 0x0!==_0x3a45d1)return _0x2a2a25(_0x50aaf9['headers'][_0x3a45d1]);if(_0x2de197&&'object'==typeof _0x2de197){const _0x34ef3d=_0x2f3d26(_0x2de197,'code');if(_0x34ef3d&&void 0x0!==_0x2de197[_0x34ef3d])return _0x2a2a25(_0x2de197[_0x34ef3d]);if(void 0x0!==_0x2de197['__type'])return _0x2a2a25(_0x2de197['__type']);}};class JsonShapeDeserializer extends SerdeContextConfig{['settings'];constructor(_0x6c7c35){super(),this['settings']=_0x6c7c35;}async['read'](_0x200265,_0x23ad2e){return this['_read'](_0x200265,'string'==typeof _0x23ad2e?JSON['parse'](_0x23ad2e,jsonReviver):await parseJsonBody(_0x23ad2e,this['serdeContext']));}['readObject'](_0x3463e1,_0x35a279){return this['_read'](_0x3463e1,_0x35a279);}['_read'](_0xf52089,_0x17b81f){const _0x188ca9=null!==_0x17b81f&&'object'==typeof _0x17b81f,_0x15e705=NormalizedSchema['of'](_0xf52089);if(_0x188ca9){if(_0x15e705['isStructSchema']()){const _0xa22de6=_0x17b81f,_0x40bc93=_0x15e705['isUnionSchema'](),_0x527acf={};let _0x454e64;const {jsonName:_0x136f79}=this['settings'];let _0x271c68;_0x136f79&&(_0x454e64={}),_0x40bc93&&(_0x271c68=new UnionSerde(_0xa22de6,_0x527acf));for(const [_0x1f0f27,_0x5a6f3e]of _0x15e705['structIterator']()){let _0x9ab40f=_0x1f0f27;_0x136f79&&(_0x9ab40f=_0x5a6f3e['getMergedTraits']()['jsonName']??_0x9ab40f,_0x454e64[_0x9ab40f]=_0x1f0f27),_0x40bc93&&_0x271c68['mark'](_0x9ab40f),null!=_0xa22de6[_0x9ab40f]&&(_0x527acf[_0x1f0f27]=this['_read'](_0x5a6f3e,_0xa22de6[_0x9ab40f]));}if(_0x40bc93)_0x271c68['writeUnknown']();else{if('string'==typeof _0xa22de6['__type'])for(const [_0xbdb9a4,_0x9e8c03]of Object['entries'](_0xa22de6)){const t=_0x136f79?_0x454e64[_0xbdb9a4]??_0xbdb9a4:_0xbdb9a4;t in _0x527acf||(_0x527acf[t]=_0x9e8c03);}}return _0x527acf;}if(Array['isArray'](_0x17b81f)&&_0x15e705['isListSchema']()){const _0x23d80c=_0x15e705['getValueSchema'](),_0x14d8d5=[],_0x209e9c=!!_0x15e705['getMergedTraits']()['sparse'];for(const _0xa238db of _0x17b81f)(_0x209e9c||null!=_0xa238db)&&_0x14d8d5['push'](this['_read'](_0x23d80c,_0xa238db));return _0x14d8d5;}if(_0x15e705['isMapSchema']()){const _0x5b7c13=_0x15e705['getValueSchema'](),_0x309623={},_0x27441f=!!_0x15e705['getMergedTraits']()['sparse'];for(const [_0x3111c7,_0x25a3c9]of Object['entries'](_0x17b81f))(_0x27441f||null!=_0x25a3c9)&&(_0x309623[_0x3111c7]=this['_read'](_0x5b7c13,_0x25a3c9));return _0x309623;}}if(_0x15e705['isBlobSchema']()&&'string'==typeof _0x17b81f)return fromBase64(_0x17b81f);const _0x310fb0=_0x15e705['getMergedTraits']()['mediaType'];if(_0x15e705['isStringSchema']()&&'string'==typeof _0x17b81f&&_0x310fb0)return'application/json'===_0x310fb0||_0x310fb0['endsWith']('+json')?LazyJsonString['from'](_0x17b81f):_0x17b81f;if(_0x15e705['isTimestampSchema']()&&null!=_0x17b81f)switch(determineTimestampFormat(_0x15e705,this['settings'])){case 0x5:return parseRfc3339DateTimeWithOffset(_0x17b81f);case 0x6:return parseRfc7231DateTime(_0x17b81f);case 0x7:return parseEpochTimestamp(_0x17b81f);default:return console['warn']('Missing\x20timestamp\x20format,\x20parsing\x20value\x20with\x20Date\x20constructor:',_0x17b81f),new Date(_0x17b81f);}if(_0x15e705['isBigIntegerSchema']()&&('number'==typeof _0x17b81f||'string'==typeof _0x17b81f))return BigInt(_0x17b81f);if(_0x15e705['isBigDecimalSchema']()&&null!=_0x17b81f){if(_0x17b81f instanceof NumericValue)return _0x17b81f;const _0x391107=_0x17b81f;return'bigDecimal'===_0x391107['type']&&'string'in _0x391107?new NumericValue(_0x391107['string'],_0x391107['type']):new NumericValue(String(_0x17b81f),'bigDecimal');}if(_0x15e705['isNumericSchema']()&&'string'==typeof _0x17b81f){switch(_0x17b81f){case'Infinity':return 0x1/0x0;case'-Infinity':return-0x1/0x0;case'NaN':return NaN;}return _0x17b81f;}if(_0x15e705['isDocumentSchema']()){if(_0x188ca9){const _0x19e7f5=Array['isArray'](_0x17b81f)?[]:{};for(const [_0x20e7c8,_0x422f18]of Object['entries'](_0x17b81f))_0x19e7f5[_0x20e7c8]=_0x422f18 instanceof NumericValue?_0x422f18:this['_read'](_0x15e705,_0x422f18);return _0x19e7f5;}return structuredClone(_0x17b81f);}return _0x17b81f;}}const NUMERIC_CONTROL_CHAR=String['fromCharCode'](0x39d);class JsonReplacer{['values']=new Map();['counter']=0x0;['stage']=0x0;['createReplacer'](){if(0x1===this['stage'])throw new Error('@aws-sdk/core/protocols\x20-\x20JsonReplacer\x20already\x20created.');if(0x2===this['stage'])throw new Error('@aws-sdk/core/protocols\x20-\x20JsonReplacer\x20exhausted.');return this['stage']=0x1,(_0x12b595,_0x2d59ed)=>{if(_0x2d59ed instanceof NumericValue){const _0x19c449=NUMERIC_CONTROL_CHAR+'nv'+this['counter']++ +'_'+_0x2d59ed['string'];return this['values']['set']('\x22'+_0x19c449+'\x22',_0x2d59ed['string']),_0x19c449;}if('bigint'==typeof _0x2d59ed){const _0xce93c2=_0x2d59ed['toString'](),_0x41cc3c=NUMERIC_CONTROL_CHAR+'b'+this['counter']++ +'_'+_0xce93c2;return this['values']['set']('\x22'+_0x41cc3c+'\x22',_0xce93c2),_0x41cc3c;}return _0x2d59ed;};}['replaceInJson'](_0x157b9a){if(0x0===this['stage'])throw new Error('@aws-sdk/core/protocols\x20-\x20JsonReplacer\x20not\x20created\x20yet.');if(0x2===this['stage'])throw new Error('@aws-sdk/core/protocols\x20-\x20JsonReplacer\x20exhausted.');if(this['stage']=0x2,0x0===this['counter'])return _0x157b9a;for(const [_0x5a0e3f,_0x16cb20]of this['values'])_0x157b9a=_0x157b9a['replace'](_0x5a0e3f,_0x16cb20);return _0x157b9a;}}class JsonShapeSerializer extends SerdeContextConfig{['settings'];['buffer'];['useReplacer']=!0x1;['rootSchema'];constructor(_0x1210dc){super(),this['settings']=_0x1210dc;}['write'](_0x3d9dde,_0x301497){this['rootSchema']=NormalizedSchema['of'](_0x3d9dde),this['buffer']=this['_write'](this['rootSchema'],_0x301497);}['writeDiscriminatedDocument'](_0x1a6384,_0x517a67){this['write'](_0x1a6384,_0x517a67),'object'==typeof this['buffer']&&(this['buffer']['__type']=NormalizedSchema['of'](_0x1a6384)['getName'](!0x0));}['flush'](){const {rootSchema:_0x4aa725,useReplacer:_0xdc4649}=this;if(this['rootSchema']=void 0x0,this['useReplacer']=!0x1,_0x4aa725?.['isStructSchema']()||_0x4aa725?.['isDocumentSchema']()){if(!_0xdc4649)return JSON['stringify'](this['buffer']);const _0x37d646=new JsonReplacer();return _0x37d646['replaceInJson'](JSON['stringify'](this['buffer'],_0x37d646['createReplacer'](),0x0));}return this['buffer'];}['_write'](_0x2d8e3f,_0x3e1213,_0x140e55){const _0x284195=null!==_0x3e1213&&'object'==typeof _0x3e1213,_0x196131=NormalizedSchema['of'](_0x2d8e3f);if(_0x284195){if(_0x196131['isStructSchema']()){const _0x3c267d=_0x3e1213,_0x465e9e={},{jsonName:_0x232a51}=this['settings'];let _0x3de78b;_0x232a51&&(_0x3de78b={});for(const [_0xb97fa,_0x15b3aa]of _0x196131['structIterator']()){const _0x269de9=this['_write'](_0x15b3aa,_0x3c267d[_0xb97fa],_0x196131);if(void 0x0!==_0x269de9){let _0x365fd9=_0xb97fa;_0x232a51&&(_0x365fd9=_0x15b3aa['getMergedTraits']()['jsonName']??_0xb97fa,_0x3de78b[_0xb97fa]=_0x365fd9),_0x465e9e[_0x365fd9]=_0x269de9;}}if(_0x196131['isUnionSchema']()&&0x0===Object['keys'](_0x465e9e)['length']){const {$unknown:_0x5ef160}=_0x3c267d;if(Array['isArray'](_0x5ef160)){const [_0xa0be0b,_0x44a47f]=_0x5ef160;_0x465e9e[_0xa0be0b]=this['_write'](0xf,_0x44a47f);}}else{if('string'==typeof _0x3c267d['__type'])for(const [_0x173265,_0x247e6f]of Object['entries'](_0x3c267d)){const _0x2e611d=_0x232a51?_0x3de78b[_0x173265]??_0x173265:_0x173265;_0x2e611d in _0x465e9e||(_0x465e9e[_0x2e611d]=this['_write'](0xf,_0x247e6f));}}return _0x465e9e;}if(Array['isArray'](_0x3e1213)&&_0x196131['isListSchema']()){const _0x4e284b=_0x196131['getValueSchema'](),_0x136ff2=[],_0x39692f=!!_0x196131['getMergedTraits']()['sparse'];for(const _0xc5dd0f of _0x3e1213)(_0x39692f||null!=_0xc5dd0f)&&_0x136ff2['push'](this['_write'](_0x4e284b,_0xc5dd0f));return _0x136ff2;}if(_0x196131['isMapSchema']()){const _0x43dc88=_0x196131['getValueSchema'](),_0x586a4e={},_0x4e0e91=!!_0x196131['getMergedTraits']()['sparse'];for(const [_0x46df46,_0x10e03a]of Object['entries'](_0x3e1213))(_0x4e0e91||null!=_0x10e03a)&&(_0x586a4e[_0x46df46]=this['_write'](_0x43dc88,_0x10e03a));return _0x586a4e;}if(_0x3e1213 instanceof Uint8Array&&(_0x196131['isBlobSchema']()||_0x196131['isDocumentSchema']()))return _0x196131===this['rootSchema']?_0x3e1213:(this['serdeContext']?.['base64Encoder']??toBase64)(_0x3e1213);if(_0x3e1213 instanceof Date&&(_0x196131['isTimestampSchema']()||_0x196131['isDocumentSchema']()))switch(determineTimestampFormat(_0x196131,this['settings'])){case 0x5:return _0x3e1213['toISOString']()['replace']('.000Z','Z');case 0x6:return dateToUtcString(_0x3e1213);case 0x7:return _0x3e1213['getTime']()/0x3e8;default:return console['warn']('Missing\x20timestamp\x20format,\x20using\x20epoch\x20seconds',_0x3e1213),_0x3e1213['getTime']()/0x3e8;}_0x3e1213 instanceof NumericValue&&(this['useReplacer']=!0x0);}if(null!==_0x3e1213||!_0x140e55?.['isStructSchema']()){if(_0x196131['isStringSchema']()){if(void 0x0===_0x3e1213&&_0x196131['isIdempotencyToken']())return v4$1();const _0x203259=_0x196131['getMergedTraits']()['mediaType'];if(null!=_0x3e1213&&_0x203259){if('application/json'===_0x203259||_0x203259['endsWith']('+json'))return LazyJsonString['from'](_0x3e1213);}return _0x3e1213;}if('number'==typeof _0x3e1213&&_0x196131['isNumericSchema']())return Math['abs'](_0x3e1213)===0x1/0x0||isNaN(_0x3e1213)?String(_0x3e1213):_0x3e1213;if('string'==typeof _0x3e1213&&_0x196131['isBlobSchema']())return _0x196131===this['rootSchema']?_0x3e1213:(this['serdeContext']?.['base64Encoder']??toBase64)(_0x3e1213);if('bigint'==typeof _0x3e1213&&(this['useReplacer']=!0x0),_0x196131['isDocumentSchema']()){if(_0x284195){const _0x51f2bb=Array['isArray'](_0x3e1213)?[]:{};for(const [_0x15f708,_0x5714ad]of Object['entries'](_0x3e1213))_0x5714ad instanceof NumericValue?(this['useReplacer']=!0x0,_0x51f2bb[_0x15f708]=_0x5714ad):_0x51f2bb[_0x15f708]=this['_write'](_0x196131,_0x5714ad);return _0x51f2bb;}return structuredClone(_0x3e1213);}return _0x3e1213;}}}class JsonCodec extends SerdeContextConfig{['settings'];constructor(_0x5ca03d){super(),this['settings']=_0x5ca03d;}['createSerializer'](){const _0x4bbbb1=new JsonShapeSerializer(this['settings']);return _0x4bbbb1['setSerdeContext'](this['serdeContext']),_0x4bbbb1;}['createDeserializer'](){const _0x313819=new JsonShapeDeserializer(this['settings']);return _0x313819['setSerdeContext'](this['serdeContext']),_0x313819;}}class AwsRestJsonProtocol extends HttpBindingProtocol{['serializer'];['deserializer'];['codec'];['mixin']=new ProtocolLib();constructor({defaultNamespace:_0x12823a}){super({'defaultNamespace':_0x12823a});const _0x12b197={'timestampFormat':{'useTrait':!0x0,'default':0x7},'httpBindings':!0x0,'jsonName':!0x0};this['codec']=new JsonCodec(_0x12b197),this['serializer']=new HttpInterceptingShapeSerializer(this['codec']['createSerializer'](),_0x12b197),this['deserializer']=new HttpInterceptingShapeDeserializer(this['codec']['createDeserializer'](),_0x12b197);}['getShapeId'](){return'aws.protocols#restJson1';}['getPayloadCodec'](){return this['codec'];}['setSerdeContext'](_0x30f30c){this['codec']['setSerdeContext'](_0x30f30c),super['setSerdeContext'](_0x30f30c);}async['serializeRequest'](_0x31eadc,_0x44e90c,_0x5cfc8f){const _0x4095cb=await super['serializeRequest'](_0x31eadc,_0x44e90c,_0x5cfc8f),_0x5a30b4=NormalizedSchema['of'](_0x31eadc['input']);if(!_0x4095cb['headers']['content-type']){const _0x1c64b2=this['mixin']['resolveRestContentType'](this['getDefaultContentType'](),_0x5a30b4);_0x1c64b2&&(_0x4095cb['headers']['content-type']=_0x1c64b2);}return null==_0x4095cb['body']&&_0x4095cb['headers']['content-type']===this['getDefaultContentType']()&&(_0x4095cb['body']='{}'),_0x4095cb;}async['deserializeResponse'](_0x16deb8,_0xee5948,_0x5b7b56){const _0x32d7b6=await super['deserializeResponse'](_0x16deb8,_0xee5948,_0x5b7b56),_0x12d2ab=NormalizedSchema['of'](_0x16deb8['output']);for(const [_0x6fbd59,_0x2d4557]of _0x12d2ab['structIterator']())_0x2d4557['getMemberTraits']()['httpPayload']&&!(_0x6fbd59 in _0x32d7b6)&&(_0x32d7b6[_0x6fbd59]=null);return _0x32d7b6;}async['handleError'](_0x1c5b35,_0xc9ed40,_0x2e309f,_0x5d28de,_0x192b66){const _0x302da7=loadRestJsonErrorCode(_0x2e309f,_0x5d28de)??'Unknown',{errorSchema:_0x1841e6,errorMetadata:_0x2da5ce}=await this['mixin']['getErrorSchemaOrThrowBaseException'](_0x302da7,this['options']['defaultNamespace'],_0x2e309f,_0x5d28de,_0x192b66),_0x4fc12f=NormalizedSchema['of'](_0x1841e6),_0x1ba7eb=_0x5d28de['message']??_0x5d28de['Message']??'Unknown',_0x1af812=new((TypeRegistry['for'](_0x1841e6[0x1])['getErrorCtor'](_0x1841e6))??Error)(_0x1ba7eb);await this['deserializeHttpMessage'](_0x1841e6,_0xc9ed40,_0x2e309f,_0x5d28de);const _0x288a31={};for(const [_0x20daa9,_0x332128]of _0x4fc12f['structIterator']()){const _0x5217ca=_0x332128['getMergedTraits']()['jsonName']??_0x20daa9;_0x288a31[_0x20daa9]=this['codec']['createDeserializer']()['readObject'](_0x332128,_0x5d28de[_0x5217ca]);}throw this['mixin']['decorateServiceException'](Object['assign'](_0x1af812,_0x2da5ce,{'$fault':_0x4fc12f['getMergedTraits']()['error'],'message':_0x1ba7eb},_0x288a31),_0x5d28de);}['getDefaultContentType'](){return'application/json';}}const ACCOUNT_ID_ENDPOINT_REGEX=/\d{12}\.ddb/;async function checkFeatures(_0x13c8d6,_0x29cbbb,_0x41a900){const _0x5e6096=_0x41a900['request'];if('rpc-v2-cbor'===_0x5e6096?.['headers']?.['smithy-protocol']&&setFeature(_0x13c8d6,'PROTOCOL_RPC_V2_CBOR','M'),'function'==typeof _0x29cbbb['retryStrategy']){const _0x422ebc=await _0x29cbbb['retryStrategy']();'function'==typeof _0x422ebc['acquireInitialRetryToken']?_0x422ebc['constructor']?.['name']?.['includes']('Adaptive')?setFeature(_0x13c8d6,'RETRY_MODE_ADAPTIVE','F'):setFeature(_0x13c8d6,'RETRY_MODE_STANDARD','E'):setFeature(_0x13c8d6,'RETRY_MODE_LEGACY','D');}if('function'==typeof _0x29cbbb['accountIdEndpointMode']){const _0x7c40f8=_0x13c8d6['endpointV2'];switch(String(_0x7c40f8?.['url']?.['hostname'])['match'](ACCOUNT_ID_ENDPOINT_REGEX)&&setFeature(_0x13c8d6,'ACCOUNT_ID_ENDPOINT','O'),await _0x29cbbb['accountIdEndpointMode']?.()){case'disabled':setFeature(_0x13c8d6,'ACCOUNT_ID_MODE_DISABLED','Q');break;case'preferred':setFeature(_0x13c8d6,'ACCOUNT_ID_MODE_PREFERRED','P');break;case'required':setFeature(_0x13c8d6,'ACCOUNT_ID_MODE_REQUIRED','R');}}const _0x42ec17=_0x13c8d6['__smithy_context']?.['selectedHttpAuthScheme']?.['identity'];if(_0x42ec17?.['$source']){const _0x3bff67=_0x42ec17;_0x3bff67['accountId']&&setFeature(_0x13c8d6,'RESOLVED_ACCOUNT_ID','T');for(const [_0x5d0fc7,_0x1deefa]of Object['entries'](_0x3bff67['$source']??{}))setFeature(_0x13c8d6,_0x5d0fc7,_0x1deefa);}}const USER_AGENT='user-agent',X_AMZ_USER_AGENT='x-amz-user-agent',SPACE='\x20',UA_NAME_SEPARATOR='/',UA_NAME_ESCAPE_REGEX=/[^!$%&'*+\-.^_`|~\w]/g,UA_VALUE_ESCAPE_REGEX=/[^!$%&'*+\-.^_`|~\w#]/g,UA_ESCAPE_CHAR='-',BYTE_LIMIT=0x400;function encodeFeatures(_0x1c24cb){let _0x443416='';for(const _0x48af5c in _0x1c24cb){const _0x53b3d5=_0x1c24cb[_0x48af5c];if(!(_0x443416['length']+_0x53b3d5['length']+0x1<=BYTE_LIMIT))break;_0x443416['length']?_0x443416+=','+_0x53b3d5:_0x443416+=_0x53b3d5;}return _0x443416;}const userAgentMiddleware=_0x247cb1=>(_0x1b7512,_0x43663f)=>async _0x9defe8=>{const {request:_0x3d1482}=_0x9defe8;if(!HttpRequest['isInstance'](_0x3d1482))return _0x1b7512(_0x9defe8);const {headers:_0x296333}=_0x3d1482,_0x4a9489=_0x43663f?.['userAgent']?.['map'](escapeUserAgent)||[],_0x139516=(await _0x247cb1['defaultUserAgentProvider']())['map'](escapeUserAgent);await checkFeatures(_0x43663f,_0x247cb1,_0x9defe8);const _0x5dcff7=_0x43663f;_0x139516['push']('m/'+encodeFeatures(Object['assign']({},_0x43663f['__smithy_context']?.['features'],_0x5dcff7['__aws_sdk_context']?.['features'])));const _0x571c48=_0x247cb1?.['customUserAgent']?.['map'](escapeUserAgent)||[],_0x2ae7f6=await _0x247cb1['userAgentAppId']();_0x2ae7f6&&_0x139516['push'](escapeUserAgent(['app',''+_0x2ae7f6]));const _0x367b8d=[]['concat']([..._0x139516,..._0x4a9489,..._0x571c48])['join'](SPACE),_0x54cceb=[..._0x139516['filter'](_0x4af78a=>_0x4af78a['startsWith']('aws-sdk-')),..._0x571c48]['join'](SPACE);return'browser'!==_0x247cb1['runtime']?(_0x54cceb&&(_0x296333[X_AMZ_USER_AGENT]=_0x296333[X_AMZ_USER_AGENT]?_0x296333[USER_AGENT]+'\x20'+_0x54cceb:_0x54cceb),_0x296333[USER_AGENT]=_0x367b8d):_0x296333[X_AMZ_USER_AGENT]=_0x367b8d,_0x1b7512({..._0x9defe8,'request':_0x3d1482});},escapeUserAgent=_0x21ad35=>{const _0x250a27=_0x21ad35[0x0]['split'](UA_NAME_SEPARATOR)['map'](_0x508cfb=>_0x508cfb['replace'](UA_NAME_ESCAPE_REGEX,UA_ESCAPE_CHAR))['join'](UA_NAME_SEPARATOR),_0x2b03d2=_0x21ad35[0x1]?.['replace'](UA_VALUE_ESCAPE_REGEX,UA_ESCAPE_CHAR),_0x27809d=_0x250a27['indexOf'](UA_NAME_SEPARATOR),_0x5a4b63=_0x250a27['substring'](0x0,_0x27809d);let _0x261559=_0x250a27['substring'](_0x27809d+0x1);return'api'===_0x5a4b63&&(_0x261559=_0x261559['toLowerCase']()),[_0x5a4b63,_0x261559,_0x2b03d2]['filter'](_0x5d598c=>_0x5d598c&&_0x5d598c['length']>0x0)['reduce']((_0x1a0252,_0x17e7c9,_0xcd5100)=>{switch(_0xcd5100){case 0x0:return _0x17e7c9;case 0x1:return _0x1a0252+'/'+_0x17e7c9;default:return _0x1a0252+'#'+_0x17e7c9;}},'');},getUserAgentMiddlewareOptions={'name':'getUserAgentMiddleware','step':'build','priority':'low','tags':['SET_USER_AGENT','USER_AGENT'],'override':!0x0},getUserAgentPlugin=_0x8deb0c=>({'applyToStack':_0x5cfb94=>{_0x5cfb94['add'](userAgentMiddleware(_0x8deb0c),getUserAgentMiddlewareOptions);}});function formatUrl(_0x3ce51b){const {port:_0x1f2760,query:_0x246083}=_0x3ce51b;let {protocol:_0x3b48b7,path:_0x2a23e4,hostname:_0x35881a}=_0x3ce51b;_0x3b48b7&&':'!==_0x3b48b7['slice'](-0x1)&&(_0x3b48b7+=':'),_0x1f2760&&(_0x35881a+=':'+_0x1f2760),_0x2a23e4&&'/'!==_0x2a23e4['charAt'](0x0)&&(_0x2a23e4='/'+_0x2a23e4);let _0x475a7e=_0x246083?buildQueryString(_0x246083):'';_0x475a7e&&'?'!==_0x475a7e[0x0]&&(_0x475a7e='?'+_0x475a7e);let _0x4bb84e='';(null!=_0x3ce51b['username']||null!=_0x3ce51b['password'])&&(_0x4bb84e=(_0x3ce51b['username']??'')+':'+(_0x3ce51b['password']??'')+'@');let _0x5e5575='';return _0x3ce51b['fragment']&&(_0x5e5575='#'+_0x3ce51b['fragment']),_0x3b48b7+'//'+_0x4bb84e+_0x35881a+_0x2a23e4+_0x475a7e+_0x5e5575;}function __awaiter(_0x27d9a5,_0x296b68,_0x328fe0,_0x5d337c){return new(_0x328fe0||(_0x328fe0=Promise))(function(_0x53f401,_0x6a43d8){function _0x5b95e6(_0x390618){try{_0xe03010(_0x5d337c['next'](_0x390618));}catch(_0x22324f){_0x6a43d8(_0x22324f);}}function _0x42b9cf(_0x4f40b2){try{_0xe03010(_0x5d337c['throw'](_0x4f40b2));}catch(_0x305bec){_0x6a43d8(_0x305bec);}}function _0xe03010(_0x14d4f9){_0x14d4f9['done']?_0x53f401(_0x14d4f9['value']):function(_0x87f7bc){return _0x87f7bc instanceof _0x328fe0?_0x87f7bc:new _0x328fe0(function(_0x562325){_0x562325(_0x87f7bc);});}(_0x14d4f9['value'])['then'](_0x5b95e6,_0x42b9cf);}_0xe03010((_0x5d337c=_0x5d337c['apply'](_0x27d9a5,_0x296b68||[]))['next']());});}function __generator(_0x5a5b71,_0xa5b11a){var _0x287f4d,_0x3a5bca,t,_0x4ded40={'label':0x0,'sent':function(){if(0x1&t[0x0])throw t[0x1];return t[0x1];},'trys':[],'ops':[]},_0x33c2bc=Object['create'](('function'==typeof Iterator?Iterator:Object)['prototype']);return _0x33c2bc['next']=_0x30957d(0x0),_0x33c2bc['throw']=_0x30957d(0x1),_0x33c2bc['return']=_0x30957d(0x2),'function'==typeof Symbol&&(_0x33c2bc[Symbol['iterator']]=function(){return this;}),_0x33c2bc;function _0x30957d(_0x23d014){return function(_0x51e24f){return function(_0x1edabc){if(_0x287f4d)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;_0x33c2bc&&(_0x33c2bc=0x0,_0x1edabc[0x0]&&(_0x4ded40=0x0)),_0x4ded40;)try{if(_0x287f4d=0x1,_0x3a5bca&&(t=0x2&_0x1edabc[0x0]?_0x3a5bca['return']:_0x1edabc[0x0]?_0x3a5bca['throw']||((t=_0x3a5bca['return'])&&t['call'](_0x3a5bca),0x0):_0x3a5bca['next'])&&!(t=t['call'](_0x3a5bca,_0x1edabc[0x1]))['done'])return t;switch(_0x3a5bca=0x0,t&&(_0x1edabc=[0x2&_0x1edabc[0x0],t['value']]),_0x1edabc[0x0]){case 0x0:case 0x1:t=_0x1edabc;break;case 0x4:return _0x4ded40['label']++,{'value':_0x1edabc[0x1],'done':!0x1};case 0x5:_0x4ded40['label']++,_0x3a5bca=_0x1edabc[0x1],_0x1edabc=[0x0];continue;case 0x7:_0x1edabc=_0x4ded40['ops']['pop'](),_0x4ded40['trys']['pop']();continue;default:if(!(t=_0x4ded40['trys'],(t=t['length']>0x0&&t[t['length']-0x1])||0x6!==_0x1edabc[0x0]&&0x2!==_0x1edabc[0x0])){_0x4ded40=0x0;continue;}if(0x3===_0x1edabc[0x0]&&(!t||_0x1edabc[0x1]>t[0x0]&&_0x1edabc[0x1]<t[0x3])){_0x4ded40['label']=_0x1edabc[0x1];break;}if(0x6===_0x1edabc[0x0]&&_0x4ded40['label']<t[0x1]){_0x4ded40['label']=t[0x1],t=_0x1edabc;break;}if(t&&_0x4ded40['label']<t[0x2]){_0x4ded40['label']=t[0x2],_0x4ded40['ops']['push'](_0x1edabc);break;}t[0x2]&&_0x4ded40['ops']['pop'](),_0x4ded40['trys']['pop']();continue;}_0x1edabc=_0xa5b11a['call'](_0x5a5b71,_0x4ded40);}catch(_0x38e9b5){_0x1edabc=[0x6,_0x38e9b5],_0x3a5bca=0x0;}finally{_0x287f4d=t=0x0;}if(0x5&_0x1edabc[0x0])throw _0x1edabc[0x1];return{'value':_0x1edabc[0x0]?_0x1edabc[0x1]:void 0x0,'done':!0x0};}([_0x23d014,_0x51e24f]);};}}function __values(_0x4c1608){var _0x2c1a18='function'==typeof Symbol&&Symbol['iterator'],_0x425a9a=_0x2c1a18&&_0x4c1608[_0x2c1a18],_0x178087=0x0;if(_0x425a9a)return _0x425a9a['call'](_0x4c1608);if(_0x4c1608&&'number'==typeof _0x4c1608['length'])return{'next':function(){return _0x4c1608&&_0x178087>=_0x4c1608['length']&&(_0x4c1608=void 0x0),{'value':_0x4c1608&&_0x4c1608[_0x178087++],'done':!_0x4c1608};}};throw new TypeError(_0x2c1a18?'Object\x20is\x20not\x20iterable.':'Symbol.iterator\x20is\x20not\x20defined.');}'function'==typeof SuppressedError&&SuppressedError;const fromUtf8$1=_0x22e950=>new TextEncoder()['encode'](_0x22e950);var fromUtf8='undefined'!=typeof Buffer&&Buffer['from']?function(_0x25eca1){return Buffer['from'](_0x25eca1,'utf8');}:fromUtf8$1;function convertToBuffer(_0x21b5be){return _0x21b5be instanceof Uint8Array?_0x21b5be:'string'==typeof _0x21b5be?fromUtf8(_0x21b5be):ArrayBuffer['isView'](_0x21b5be)?new Uint8Array(_0x21b5be['buffer'],_0x21b5be['byteOffset'],_0x21b5be['byteLength']/Uint8Array['BYTES_PER_ELEMENT']):new Uint8Array(_0x21b5be);}function isEmptyData(_0x549fb7){return'string'==typeof _0x549fb7?0x0===_0x549fb7['length']:0x0===_0x549fb7['byteLength'];}function uint32ArrayFrom(_0x1f5ae8){if(!Uint32Array['from']){for(var _0x54bf3f=new Uint32Array(_0x1f5ae8['length']),_0x4096e9=0x0;_0x4096e9<_0x1f5ae8['length'];)_0x54bf3f[_0x4096e9]=_0x1f5ae8[_0x4096e9],_0x4096e9+=0x1;return _0x54bf3f;}return Uint32Array['from'](_0x1f5ae8);}var Crc32=(function(){function _0x3cae7c(){this['checksum']=0xffffffff;}return _0x3cae7c['prototype']['update']=function(_0x329514){var _0xf1830,_0x476a15;try{for(var _0x5ab66d=__values(_0x329514),_0x157a61=_0x5ab66d['next']();!_0x157a61['done'];_0x157a61=_0x5ab66d['next']()){var _0x2bc874=_0x157a61['value'];this['checksum']=this['checksum']>>>0x8^lookupTable[0xff&(this['checksum']^_0x2bc874)];}}catch(_0x4980bc){_0xf1830={'error':_0x4980bc};}finally{try{_0x157a61&&!_0x157a61['done']&&(_0x476a15=_0x5ab66d['return'])&&_0x476a15['call'](_0x5ab66d);}finally{if(_0xf1830)throw _0xf1830['error'];}}return this;},_0x3cae7c['prototype']['digest']=function(){return(0xffffffff^this['checksum'])>>>0x0;},_0x3cae7c;}()),a_lookUpTable=[0x0,0x77073096,0xee0e612c,0x990951ba,0x76dc419,0x706af48f,0xe963a535,0x9e6495a3,0xedb8832,0x79dcb8a4,0xe0d5e91e,0x97d2d988,0x9b64c2b,0x7eb17cbd,0xe7b82d07,0x90bf1d91,0x1db71064,0x6ab020f2,0xf3b97148,0x84be41de,0x1adad47d,0x6ddde4eb,0xf4d4b551,0x83d385c7,0x136c9856,0x646ba8c0,0xfd62f97a,0x8a65c9ec,0x14015c4f,0x63066cd9,0xfa0f3d63,0x8d080df5,0x3b6e20c8,0x4c69105e,0xd56041e4,0xa2677172,0x3c03e4d1,0x4b04d447,0xd20d85fd,0xa50ab56b,0x35b5a8fa,0x42b2986c,0xdbbbc9d6,0xacbcf940,0x32d86ce3,0x45df5c75,0xdcd60dcf,0xabd13d59,0x26d930ac,0x51de003a,0xc8d75180,0xbfd06116,0x21b4f4b5,0x56b3c423,0xcfba9599,0xb8bda50f,0x2802b89e,0x5f058808,0xc60cd9b2,0xb10be924,0x2f6f7c87,0x58684c11,0xc1611dab,0xb6662d3d,0x76dc4190,0x1db7106,0x98d220bc,0xefd5102a,0x71b18589,0x6b6b51f,0x9fbfe4a5,0xe8b8d433,0x7807c9a2,0xf00f934,0x9609a88e,0xe10e9818,0x7f6a0dbb,0x86d3d2d,0x91646c97,0xe6635c01,0x6b6b51f4,0x1c6c6162,0x856530d8,0xf262004e,0x6c0695ed,0x1b01a57b,0x8208f4c1,0xf50fc457,0x65b0d9c6,0x12b7e950,0x8bbeb8ea,0xfcb9887c,0x62dd1ddf,0x15da2d49,0x8cd37cf3,0xfbd44c65,0x4db26158,0x3ab551ce,0xa3bc0074,0xd4bb30e2,0x4adfa541,0x3dd895d7,0xa4d1c46d,0xd3d6f4fb,0x4369e96a,0x346ed9fc,0xad678846,0xda60b8d0,0x44042d73,0x33031de5,0xaa0a4c5f,0xdd0d7cc9,0x5005713c,0x270241aa,0xbe0b1010,0xc90c2086,0x5768b525,0x206f85b3,0xb966d409,0xce61e49f,0x5edef90e,0x29d9c998,0xb0d09822,0xc7d7a8b4,0x59b33d17,0x2eb40d81,0xb7bd5c3b,0xc0ba6cad,0xedb88320,0x9abfb3b6,0x3b6e20c,0x74b1d29a,0xead54739,0x9dd277af,0x4db2615,0x73dc1683,0xe3630b12,0x94643b84,0xd6d6a3e,0x7a6a5aa8,0xe40ecf0b,0x9309ff9d,0xa00ae27,0x7d079eb1,0xf00f9344,0x8708a3d2,0x1e01f268,0x6906c2fe,0xf762575d,0x806567cb,0x196c3671,0x6e6b06e7,0xfed41b76,0x89d32be0,0x10da7a5a,0x67dd4acc,0xf9b9df6f,0x8ebeeff9,0x17b7be43,0x60b08ed5,0xd6d6a3e8,0xa1d1937e,0x38d8c2c4,0x4fdff252,0xd1bb67f1,0xa6bc5767,0x3fb506dd,0x48b2364b,0xd80d2bda,0xaf0a1b4c,0x36034af6,0x41047a60,0xdf60efc3,0xa867df55,0x316e8eef,0x4669be79,0xcb61b38c,0xbc66831a,0x256fd2a0,0x5268e236,0xcc0c7795,0xbb0b4703,0x220216b9,0x5505262f,0xc5ba3bbe,0xb2bd0b28,0x2bb45a92,0x5cb36a04,0xc2d7ffa7,0xb5d0cf31,0x2cd99e8b,0x5bdeae1d,0x9b64c2b0,0xec63f226,0x756aa39c,0x26d930a,0x9c0906a9,0xeb0e363f,0x72076785,0x5005713,0x95bf4a82,0xe2b87a14,0x7bb12bae,0xcb61b38,0x92d28e9b,0xe5d5be0d,0x7cdcefb7,0xbdbdf21,0x86d3d2d4,0xf1d4e242,0x68ddb3f8,0x1fda836e,0x81be16cd,0xf6b9265b,0x6fb077e1,0x18b74777,0x88085ae6,0xff0f6a70,0x66063bca,0x11010b5c,0x8f659eff,0xf862ae69,0x616bffd3,0x166ccf45,0xa00ae278,0xd70dd2ee,0x4e048354,0x3903b3c2,0xa7672661,0xd06016f7,0x4969474d,0x3e6e77db,0xaed16a4a,0xd9d65adc,0x40df0b66,0x37d83bf0,0xa9bcae53,0xdebb9ec5,0x47b2cf7f,0x30b5ffe9,0xbdbdf21c,0xcabac28a,0x53b39330,0x24b4a3a6,0xbad03605,0xcdd70693,0x54de5729,0x23d967bf,0xb3667a2e,0xc4614ab8,0x5d681b02,0x2a6f2b94,0xb40bbe37,0xc30c8ea1,0x5a05df1b,0x2d02ef8d],lookupTable=uint32ArrayFrom(a_lookUpTable),HEADER_VALUE_TYPE;class Int64{['bytes'];constructor(_0x17c66d){if(this['bytes']=_0x17c66d,0x8!==_0x17c66d['byteLength'])throw new Error('Int64\x20buffers\x20must\x20be\x20exactly\x208\x20bytes');}static['fromNumber'](_0x468803){if(_0x468803>0x8000000000000000||_0x468803<-0x8000000000000000)throw new Error(_0x468803+'\x20is\x20too\x20large\x20(or,\x20if\x20negative,\x20too\x20small)\x20to\x20represent\x20as\x20an\x20Int64');const _0x157902=new Uint8Array(0x8);for(let _0x494ac3=0x7,_0x472992=Math['abs'](Math['round'](_0x468803));_0x494ac3>-0x1&&_0x472992>0x0;_0x494ac3--,_0x472992/=0x100)_0x157902[_0x494ac3]=_0x472992;return _0x468803<0x0&&negate(_0x157902),new Int64(_0x157902);}['valueOf'](){const _0x318f45=this['bytes']['slice'](0x0),_0x513e7c=0x80&_0x318f45[0x0];return _0x513e7c&&negate(_0x318f45),parseInt(toHex(_0x318f45),0x10)*(_0x513e7c?-0x1:0x1);}['toString'](){return String(this['valueOf']());}}function negate(_0x51dc54){for(let _0x2a0535=0x0;_0x2a0535<0x8;_0x2a0535++)_0x51dc54[_0x2a0535]^=0xff;for(let _0x4e8c32=0x7;_0x4e8c32>-0x1&&(_0x51dc54[_0x4e8c32]++,0x0===_0x51dc54[_0x4e8c32]);_0x4e8c32--);}class HeaderMarshaller{['toUtf8'];['fromUtf8'];constructor(_0x4f5128,_0x436399){this['toUtf8']=_0x4f5128,this['fromUtf8']=_0x436399;}['format'](_0x2a2872){const _0x214c3b=[];for(const _0x26b0b1 of Object['keys'](_0x2a2872)){const _0x1e996d=this['fromUtf8'](_0x26b0b1);_0x214c3b['push'](Uint8Array['from']([_0x1e996d['byteLength']]),_0x1e996d,this['formatHeaderValue'](_0x2a2872[_0x26b0b1]));}const _0x20e0b8=new Uint8Array(_0x214c3b['reduce']((_0x332fcf,_0x148e11)=>_0x332fcf+_0x148e11['byteLength'],0x0));let _0x32d043=0x0;for(const _0x5a62e1 of _0x214c3b)_0x20e0b8['set'](_0x5a62e1,_0x32d043),_0x32d043+=_0x5a62e1['byteLength'];return _0x20e0b8;}['formatHeaderValue'](_0x50892e){switch(_0x50892e['type']){case'boolean':return Uint8Array['from']([_0x50892e['value']?0x0:0x1]);case'byte':return Uint8Array['from']([0x2,_0x50892e['value']]);case'short':const _0x461331=new DataView(new ArrayBuffer(0x3));return _0x461331['setUint8'](0x0,0x3),_0x461331['setInt16'](0x1,_0x50892e['value'],!0x1),new Uint8Array(_0x461331['buffer']);case'integer':const _0x1e01b4=new DataView(new ArrayBuffer(0x5));return _0x1e01b4['setUint8'](0x0,0x4),_0x1e01b4['setInt32'](0x1,_0x50892e['value'],!0x1),new Uint8Array(_0x1e01b4['buffer']);case'long':const _0x3cbbdf=new Uint8Array(0x9);return _0x3cbbdf[0x0]=0x5,_0x3cbbdf['set'](_0x50892e['value']['bytes'],0x1),_0x3cbbdf;case'binary':const _0x5c2d50=new DataView(new ArrayBuffer(0x3+_0x50892e['value']['byteLength']));_0x5c2d50['setUint8'](0x0,0x6),_0x5c2d50['setUint16'](0x1,_0x50892e['value']['byteLength'],!0x1);const _0x109626=new Uint8Array(_0x5c2d50['buffer']);return _0x109626['set'](_0x50892e['value'],0x3),_0x109626;case'string':const _0x51efe9=this['fromUtf8'](_0x50892e['value']),_0x43482f=new DataView(new ArrayBuffer(0x3+_0x51efe9['byteLength']));_0x43482f['setUint8'](0x0,0x7),_0x43482f['setUint16'](0x1,_0x51efe9['byteLength'],!0x1);const _0xf69ebd=new Uint8Array(_0x43482f['buffer']);return _0xf69ebd['set'](_0x51efe9,0x3),_0xf69ebd;case'timestamp':const _0x4be3ec=new Uint8Array(0x9);return _0x4be3ec[0x0]=0x8,_0x4be3ec['set'](Int64['fromNumber'](_0x50892e['value']['valueOf']())['bytes'],0x1),_0x4be3ec;case'uuid':if(!UUID_PATTERN['test'](_0x50892e['value']))throw new Error('Invalid\x20UUID\x20received:\x20'+_0x50892e['value']);const _0x229c41=new Uint8Array(0x11);return _0x229c41[0x0]=0x9,_0x229c41['set'](fromHex(_0x50892e['value']['replace'](/\-/g,'')),0x1),_0x229c41;}}['parse'](_0x165ba5){const _0x2ea72c={};let _0x147f65=0x0;for(;_0x147f65<_0x165ba5['byteLength'];){const _0x53525d=_0x165ba5['getUint8'](_0x147f65++),_0x2712d7=this['toUtf8'](new Uint8Array(_0x165ba5['buffer'],_0x165ba5['byteOffset']+_0x147f65,_0x53525d));switch(_0x147f65+=_0x53525d,_0x165ba5['getUint8'](_0x147f65++)){case 0x0:_0x2ea72c[_0x2712d7]={'type':BOOLEAN_TAG,'value':!0x0};break;case 0x1:_0x2ea72c[_0x2712d7]={'type':BOOLEAN_TAG,'value':!0x1};break;case 0x2:_0x2ea72c[_0x2712d7]={'type':BYTE_TAG,'value':_0x165ba5['getInt8'](_0x147f65++)};break;case 0x3:_0x2ea72c[_0x2712d7]={'type':SHORT_TAG,'value':_0x165ba5['getInt16'](_0x147f65,!0x1)},_0x147f65+=0x2;break;case 0x4:_0x2ea72c[_0x2712d7]={'type':INT_TAG,'value':_0x165ba5['getInt32'](_0x147f65,!0x1)},_0x147f65+=0x4;break;case 0x5:_0x2ea72c[_0x2712d7]={'type':LONG_TAG,'value':new Int64(new Uint8Array(_0x165ba5['buffer'],_0x165ba5['byteOffset']+_0x147f65,0x8))},_0x147f65+=0x8;break;case 0x6:const _0x24e09d=_0x165ba5['getUint16'](_0x147f65,!0x1);_0x147f65+=0x2,_0x2ea72c[_0x2712d7]={'type':BINARY_TAG,'value':new Uint8Array(_0x165ba5['buffer'],_0x165ba5['byteOffset']+_0x147f65,_0x24e09d)},_0x147f65+=_0x24e09d;break;case 0x7:const _0x3a87f6=_0x165ba5['getUint16'](_0x147f65,!0x1);_0x147f65+=0x2,_0x2ea72c[_0x2712d7]={'type':STRING_TAG,'value':this['toUtf8'](new Uint8Array(_0x165ba5['buffer'],_0x165ba5['byteOffset']+_0x147f65,_0x3a87f6))},_0x147f65+=_0x3a87f6;break;case 0x8:_0x2ea72c[_0x2712d7]={'type':TIMESTAMP_TAG,'value':new Date(new Int64(new Uint8Array(_0x165ba5['buffer'],_0x165ba5['byteOffset']+_0x147f65,0x8))['valueOf']())},_0x147f65+=0x8;break;case 0x9:const _0x2b5419=new Uint8Array(_0x165ba5['buffer'],_0x165ba5['byteOffset']+_0x147f65,0x10);_0x147f65+=0x10,_0x2ea72c[_0x2712d7]={'type':UUID_TAG,'value':toHex(_0x2b5419['subarray'](0x0,0x4))+'-'+toHex(_0x2b5419['subarray'](0x4,0x6))+'-'+toHex(_0x2b5419['subarray'](0x6,0x8))+'-'+toHex(_0x2b5419['subarray'](0x8,0xa))+'-'+toHex(_0x2b5419['subarray'](0xa))};break;default:throw new Error('Unrecognized\x20header\x20type\x20tag');}}return _0x2ea72c;}}!function(_0x7bedc1){_0x7bedc1[_0x7bedc1['boolTrue']=0x0]='boolTrue',_0x7bedc1[_0x7bedc1['boolFalse']=0x1]='boolFalse',_0x7bedc1[_0x7bedc1['byte']=0x2]='byte',_0x7bedc1[_0x7bedc1['short']=0x3]='short',_0x7bedc1[_0x7bedc1['integer']=0x4]='integer',_0x7bedc1[_0x7bedc1['long']=0x5]='long',_0x7bedc1[_0x7bedc1['byteArray']=0x6]='byteArray',_0x7bedc1[_0x7bedc1['string']=0x7]='string',_0x7bedc1[_0x7bedc1['timestamp']=0x8]='timestamp',_0x7bedc1[_0x7bedc1['uuid']=0x9]='uuid';}(HEADER_VALUE_TYPE||(HEADER_VALUE_TYPE={}));const BOOLEAN_TAG='boolean',BYTE_TAG='byte',SHORT_TAG='short',INT_TAG='integer',LONG_TAG='long',BINARY_TAG='binary',STRING_TAG='string',TIMESTAMP_TAG='timestamp',UUID_TAG='uuid',UUID_PATTERN=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,PRELUDE_MEMBER_LENGTH=0x4,PRELUDE_LENGTH=0x2*PRELUDE_MEMBER_LENGTH,CHECKSUM_LENGTH=0x4,MINIMUM_MESSAGE_LENGTH=PRELUDE_LENGTH+0x2*CHECKSUM_LENGTH;function splitMessage({byteLength:_0x29b2dd,byteOffset:_0x938b0,buffer:_0x3e22ea}){if(_0x29b2dd<MINIMUM_MESSAGE_LENGTH)throw new Error('Provided\x20message\x20too\x20short\x20to\x20accommodate\x20event\x20stream\x20message\x20overhead');const _0x229b4c=new DataView(_0x3e22ea,_0x938b0,_0x29b2dd),_0x2210cc=_0x229b4c['getUint32'](0x0,!0x1);if(_0x29b2dd!==_0x2210cc)throw new Error('Reported\x20message\x20length\x20does\x20not\x20match\x20received\x20message\x20length');const _0x111064=_0x229b4c['getUint32'](PRELUDE_MEMBER_LENGTH,!0x1),_0x57585f=_0x229b4c['getUint32'](PRELUDE_LENGTH,!0x1),_0x568392=_0x229b4c['getUint32'](_0x29b2dd-CHECKSUM_LENGTH,!0x1),_0x321da5=new Crc32()['update'](new Uint8Array(_0x3e22ea,_0x938b0,PRELUDE_LENGTH));if(_0x57585f!==_0x321da5['digest']())throw new Error('The\x20prelude\x20checksum\x20specified\x20in\x20the\x20message\x20('+_0x57585f+')\x20does\x20not\x20match\x20the\x20calculated\x20CRC32\x20checksum\x20('+_0x321da5['digest']()+')');if(_0x321da5['update'](new Uint8Array(_0x3e22ea,_0x938b0+PRELUDE_LENGTH,_0x29b2dd-(PRELUDE_LENGTH+CHECKSUM_LENGTH))),_0x568392!==_0x321da5['digest']())throw new Error('The\x20message\x20checksum\x20('+_0x321da5['digest']()+')\x20did\x20not\x20match\x20the\x20expected\x20value\x20of\x20'+_0x568392);return{'headers':new DataView(_0x3e22ea,_0x938b0+PRELUDE_LENGTH+CHECKSUM_LENGTH,_0x111064),'body':new Uint8Array(_0x3e22ea,_0x938b0+PRELUDE_LENGTH+CHECKSUM_LENGTH+_0x111064,_0x2210cc-_0x111064-(PRELUDE_LENGTH+CHECKSUM_LENGTH+CHECKSUM_LENGTH))};}class EventStreamCodec{['headerMarshaller'];['messageBuffer'];['isEndOfStream'];constructor(_0x448844,_0x56df20){this['headerMarshaller']=new HeaderMarshaller(_0x448844,_0x56df20),this['messageBuffer']=[],this['isEndOfStream']=!0x1;}['feed'](_0x50c2e9){this['messageBuffer']['push'](this['decode'](_0x50c2e9));}['endOfStream'](){this['isEndOfStream']=!0x0;}['getMessage'](){const _0x5c0f44=this['messageBuffer']['pop'](),_0x4612d4=this['isEndOfStream'];return{'getMessage':()=>_0x5c0f44,'isEndOfStream':()=>_0x4612d4};}['getAvailableMessages'](){const _0x13a860=this['messageBuffer'];this['messageBuffer']=[];const _0xfae35f=this['isEndOfStream'];return{'getMessages':()=>_0x13a860,'isEndOfStream':()=>_0xfae35f};}['encode']({headers:_0x2c5192,body:_0x3203b7}){const _0x411700=this['headerMarshaller']['format'](_0x2c5192),_0x1c36ae=_0x411700['byteLength']+_0x3203b7['byteLength']+0x10,_0x1308cd=new Uint8Array(_0x1c36ae),_0x1db08b=new DataView(_0x1308cd['buffer'],_0x1308cd['byteOffset'],_0x1308cd['byteLength']),_0x400e3b=new Crc32();return _0x1db08b['setUint32'](0x0,_0x1c36ae,!0x1),_0x1db08b['setUint32'](0x4,_0x411700['byteLength'],!0x1),_0x1db08b['setUint32'](0x8,_0x400e3b['update'](_0x1308cd['subarray'](0x0,0x8))['digest'](),!0x1),_0x1308cd['set'](_0x411700,0xc),_0x1308cd['set'](_0x3203b7,_0x411700['byteLength']+0xc),_0x1db08b['setUint32'](_0x1c36ae-0x4,_0x400e3b['update'](_0x1308cd['subarray'](0x8,_0x1c36ae-0x4))['digest'](),!0x1),_0x1308cd;}['decode'](_0x48f71e){const {headers:_0xcdc900,body:_0x248b66}=splitMessage(_0x48f71e);return{'headers':this['headerMarshaller']['parse'](_0xcdc900),'body':_0x248b66};}['formatHeaders'](_0x3715f1){return this['headerMarshaller']['format'](_0x3715f1);}}class MessageDecoderStream{['options'];constructor(_0x9cfd3b){this['options']=_0x9cfd3b;}[Symbol['asyncIterator']](){return this['asyncIterator']();}async*['asyncIterator'](){for await(const _0x3c0b98 of this['options']['inputStream']){const _0x48848c=this['options']['decoder']['decode'](_0x3c0b98);yield _0x48848c;}}}class MessageEncoderStream{['options'];constructor(_0x5babc4){this['options']=_0x5babc4;}[Symbol['asyncIterator']](){return this['asyncIterator']();}async*['asyncIterator'](){for await(const _0x598d55 of this['options']['messageStream']){const _0x2e3e85=this['options']['encoder']['encode'](_0x598d55);yield _0x2e3e85;}this['options']['includeEndFrame']&&(yield new Uint8Array(0x0));}}class SmithyMessageDecoderStream{['options'];constructor(_0x5cd55a){this['options']=_0x5cd55a;}[Symbol['asyncIterator']](){return this['asyncIterator']();}async*['asyncIterator'](){for await(const _0x16f9c9 of this['options']['messageStream']){const _0x2bc88e=await this['options']['deserializer'](_0x16f9c9);void 0x0!==_0x2bc88e&&(yield _0x2bc88e);}}}class SmithyMessageEncoderStream{['options'];constructor(_0x2b955c){this['options']=_0x2b955c;}[Symbol['asyncIterator']](){return this['asyncIterator']();}async*['asyncIterator'](){for await(const _0x308125 of this['options']['inputStream']){const _0x332050=this['options']['serializer'](_0x308125);yield _0x332050;}}}function getChunkedStream(_0x4a7ee5){let _0x56eefe=0x0,_0x4f550e=0x0,_0x34f721=null,_0x23d24f=null;const _0x57682b=_0x221632=>{if('number'!=typeof _0x221632)throw new Error('Attempted\x20to\x20allocate\x20an\x20event\x20message\x20where\x20size\x20was\x20not\x20a\x20number:\x20'+_0x221632);_0x56eefe=_0x221632,_0x4f550e=0x4,_0x34f721=new Uint8Array(_0x221632),new DataView(_0x34f721['buffer'])['setUint32'](0x0,_0x221632,!0x1);};return{[Symbol['asyncIterator']]:async function*(){const _0x8798ea=_0x4a7ee5[Symbol['asyncIterator']]();for(;;){const {value:_0x50126c,done:_0xaa9e6a}=await _0x8798ea['next']();if(_0xaa9e6a){if(!_0x56eefe)return;if(_0x56eefe!==_0x4f550e)throw new Error('Truncated\x20event\x20message\x20received.');return void(yield _0x34f721);}const _0x3bb140=_0x50126c['length'];let _0x58bf51=0x0;for(;_0x58bf51<_0x3bb140;){if(!_0x34f721){const _0x49bf0d=_0x3bb140-_0x58bf51;_0x23d24f||(_0x23d24f=new Uint8Array(0x4));const _0x3984a8=Math['min'](0x4-_0x4f550e,_0x49bf0d);if(_0x23d24f['set'](_0x50126c['slice'](_0x58bf51,_0x58bf51+_0x3984a8),_0x4f550e),_0x4f550e+=_0x3984a8,_0x58bf51+=_0x3984a8,_0x4f550e<0x4)break;_0x57682b(new DataView(_0x23d24f['buffer'])['getUint32'](0x0,!0x1)),_0x23d24f=null;}const _0x3bf1ea=Math['min'](_0x56eefe-_0x4f550e,_0x3bb140-_0x58bf51);_0x34f721['set'](_0x50126c['slice'](_0x58bf51,_0x58bf51+_0x3bf1ea),_0x4f550e),_0x4f550e+=_0x3bf1ea,_0x58bf51+=_0x3bf1ea,_0x56eefe&&_0x56eefe===_0x4f550e&&(yield _0x34f721,_0x34f721=null,_0x56eefe=0x0,_0x4f550e=0x0);}}}};}function getMessageUnmarshaller(_0x2372b5,_0x578525){return async function(_0x5886e7){const {value:_0x5cafd0}=_0x5886e7['headers'][':message-type'];if('error'===_0x5cafd0){const _0x555897=new Error(_0x5886e7['headers'][':error-message']['value']||'UnknownError');throw _0x555897['name']=_0x5886e7['headers'][':error-code']['value'],_0x555897;}if('exception'===_0x5cafd0){const _0x45ec11=_0x5886e7['headers'][':exception-type']['value'],_0x561d10={[_0x45ec11]:_0x5886e7},_0x4ea02f=await _0x2372b5(_0x561d10);if(_0x4ea02f['$unknown']){const _0x35fe88=new Error(_0x578525(_0x5886e7['body']));throw _0x35fe88['name']=_0x45ec11,_0x35fe88;}throw _0x4ea02f[_0x45ec11];}if('event'===_0x5cafd0){const _0x1ed9fc={[_0x5886e7['headers'][':event-type']['value']]:_0x5886e7},_0x4773c8=await _0x2372b5(_0x1ed9fc);if(_0x4773c8['$unknown'])return;return _0x4773c8;}throw Error('Unrecognizable\x20event\x20type:\x20'+_0x5886e7['headers'][':event-type']['value']);};}let EventStreamMarshaller$1=class{['eventStreamCodec'];['utfEncoder'];constructor({utf8Encoder:_0x22360a,utf8Decoder:_0x47323d}){this['eventStreamCodec']=new EventStreamCodec(_0x22360a,_0x47323d),this['utfEncoder']=_0x22360a;}['deserialize'](_0x680c14,_0x4e9e79){const _0x44dbad=getChunkedStream(_0x680c14);return new SmithyMessageDecoderStream({'messageStream':new MessageDecoderStream({'inputStream':_0x44dbad,'decoder':this['eventStreamCodec']}),'deserializer':getMessageUnmarshaller(_0x4e9e79,this['utfEncoder'])});}['serialize'](_0x6a4c00,_0x38ac27){return new MessageEncoderStream({'messageStream':new SmithyMessageEncoderStream({'inputStream':_0x6a4c00,'serializer':_0x38ac27}),'encoder':this['eventStreamCodec'],'includeEndFrame':!0x0});}};const readableStreamtoIterable=_0x45cd5c=>({[Symbol['asyncIterator']]:async function*(){const _0x2f8a8c=_0x45cd5c['getReader']();try{for(;;){const {done:_0x2bf908,value:_0xdd8381}=await _0x2f8a8c['read']();if(_0x2bf908)return;yield _0xdd8381;}}finally{_0x2f8a8c['releaseLock']();}}}),iterableToReadableStream=_0x9930de=>{const _0x402e5d=_0x9930de[Symbol['asyncIterator']]();return new ReadableStream({async 'pull'(_0x133a65){const {done:_0x45d102,value:_0x5eacfb}=await _0x402e5d['next']();if(_0x45d102)return _0x133a65['close']();_0x133a65['enqueue'](_0x5eacfb);}});};class EventStreamMarshaller{['universalMarshaller'];constructor({utf8Encoder:_0x41b24e,utf8Decoder:_0x23c7c5}){this['universalMarshaller']=new EventStreamMarshaller$1({'utf8Decoder':_0x23c7c5,'utf8Encoder':_0x41b24e});}['deserialize'](_0x49abe6,_0x3b8f55){const _0x4ef57b=isReadableStream$1(_0x49abe6)?readableStreamtoIterable(_0x49abe6):_0x49abe6;return this['universalMarshaller']['deserialize'](_0x4ef57b,_0x3b8f55);}['serialize'](_0x465cad,_0x5ba446){const _0x3aaa11=this['universalMarshaller']['serialize'](_0x465cad,_0x5ba446);return'function'==typeof ReadableStream?iterableToReadableStream(_0x3aaa11):_0x3aaa11;}}const isReadableStream$1=_0x5f55a2=>'function'==typeof ReadableStream&&_0x5f55a2 instanceof ReadableStream,eventStreamSerdeProvider=_0x28be0e=>new EventStreamMarshaller(_0x28be0e),isWebSocketRequest=_0x21a727=>'ws:'===_0x21a727['protocol']||'wss:'===_0x21a727['protocol'],DEFAULT_WS_CONNECTION_TIMEOUT_MS=0xbb8;class WebSocketFetchHandler{['metadata']={'handlerProtocol':'websocket/h1.1'};['config']={};['configPromise'];['httpHandler'];['sockets']={};static['create'](_0x11a290,_0x152ad1=new FetchHttpHandler()){return'function'==typeof _0x11a290?.['handle']?_0x11a290:new WebSocketFetchHandler(_0x11a290,_0x152ad1);}constructor(_0x96af19,_0x4a97ca=new FetchHttpHandler()){this['httpHandler']=_0x4a97ca;const _0x115eb8=_0x1eefe1=>(this['config']={..._0x1eefe1??{}},this['config']);'function'==typeof _0x96af19?(this['config']={},this['configPromise']=_0x96af19()['then'](_0x2def6b=>_0x115eb8(_0x2def6b))):this['configPromise']=Promise['resolve'](_0x115eb8(_0x96af19));}['destroy'](){for(const [_0x100c49,_0x2febb8]of Object['entries'](this['sockets'])){for(const _0xf3f593 of _0x2febb8)_0xf3f593['close'](0x3e8,'Socket\x20closed\x20through\x20destroy()\x20call');delete this['sockets'][_0x100c49];}}async['handle'](_0x24b877){this['config']=await this['configPromise'];const {logger:_0x39662b}=this['config'];if(!isWebSocketRequest(_0x24b877))return _0x39662b?.['debug']?.('@aws-sdk\x20-\x20ws\x20fetching\x20'+_0x24b877['protocol']+_0x24b877['hostname']+_0x24b877['path']),this['httpHandler']['handle'](_0x24b877);const _0x3461ef=formatUrl(_0x24b877);_0x39662b?.['debug']?.('@aws-sdk\x20-\x20ws\x20connecting\x20'+_0x3461ef['split']('?')[0x0]);const _0x12db1f=new WebSocket(_0x3461ef);this['sockets'][_0x3461ef]||(this['sockets'][_0x3461ef]=[]),this['sockets'][_0x3461ef]['push'](_0x12db1f),_0x12db1f['binaryType']='arraybuffer';const {connectionTimeout:_0x46ffdb=DEFAULT_WS_CONNECTION_TIMEOUT_MS}=this['config'];await this['waitForReady'](_0x12db1f,_0x46ffdb);const {body:_0x438619}=_0x24b877,_0xd46c59=getIterator(_0x438619),_0x110e99=this['connect'](_0x12db1f,_0xd46c59),_0xd6cedd=toReadableStream(_0x110e99);return{'response':new HttpResponse({'statusCode':0xc8,'body':_0xd6cedd})};}['updateHttpClientConfig'](_0x3ecbb7,_0x267d8e){this['configPromise']=this['configPromise']['then'](_0x45c31a=>(_0x45c31a[_0x3ecbb7]=_0x267d8e,_0x45c31a));}['httpHandlerConfigs'](){return this['config']??{};}['removeNotUsableSockets'](_0x2a3133){this['sockets'][_0x2a3133]=(this['sockets'][_0x2a3133]??[])['filter'](_0x502194=>![WebSocket['CLOSING'],WebSocket['CLOSED']]['includes'](_0x502194['readyState']));}['waitForReady'](_0x72af69,_0x1e7cef){return new Promise((_0x9b7e06,_0x30e98f)=>{const _0x3c3596=setTimeout(()=>{this['removeNotUsableSockets'](_0x72af69['url']),_0x30e98f({'$metadata':{'httpStatusCode':0x1f4,'websocketSynthetic500Error':!0x0}});},_0x1e7cef);_0x72af69['onopen']=()=>{clearTimeout(_0x3c3596),_0x9b7e06();};});}['connect'](_0x774a64,_0x417815){const _0xe6c1d5=[];let _0x2a96c1=null,_0x47b832=null;const _0x3f6bd6=_0xe25e9f=>{_0x2a96c1?(_0xe25e9f['error']?_0x47b832(_0xe25e9f['error']):_0x2a96c1({'done':_0xe25e9f['done'],'value':_0xe25e9f['value']}),_0x2a96c1=null,_0x47b832=null):_0xe6c1d5['push'](_0xe25e9f);};_0x774a64['onmessage']=_0x4449fb=>{const {data:_0x44e3d3}=_0x4449fb;_0x3f6bd6('string'==typeof _0x44e3d3?{'done':!0x1,'value':fromBase64(_0x44e3d3)}:{'done':!0x1,'value':new Uint8Array(_0x44e3d3)});},_0x774a64['onerror']=_0x32d605=>{_0x774a64['close'](),_0x3f6bd6({'done':!0x0,'error':_0x32d605});},_0x774a64['onclose']=()=>{this['removeNotUsableSockets'](_0x774a64['url']),_0x3f6bd6({'done':!0x0});};const _0x3db220={[Symbol['asyncIterator']]:()=>({async 'next'(){if(_0xe6c1d5['length']>0x0){const _0x404ba7=_0xe6c1d5['shift']();if(_0x404ba7['error'])throw _0x404ba7['error'];return{'done':_0x404ba7['done'],'value':_0x404ba7['value']};}return new Promise((_0x33a33d,_0x29a855)=>{_0x2a96c1=_0x33a33d,_0x47b832=_0x29a855;});}})};return((async()=>{try{for await(const _0x44bf91 of _0x417815){if(_0x774a64['readyState']>=WebSocket['CLOSING'])break;_0x774a64['send'](_0x44bf91);}}catch(_0x22aafb){_0x3f6bd6({'done':!0x0,'error':_0x22aafb});}finally{_0x774a64['close'](0x3e8);}})()),_0x3db220;}}const getIterator=_0x574595=>_0x574595[Symbol['asyncIterator']]?_0x574595:isReadableStream(_0x574595)?readableStreamtoIterable(_0x574595):{[Symbol['asyncIterator']]:async function*(){yield _0x574595;}},toReadableStream=_0x18b025=>'function'==typeof ReadableStream?iterableToReadableStream(_0x18b025):_0x18b025,isReadableStream=_0x3906b4=>'function'==typeof ReadableStream&&_0x3906b4 instanceof ReadableStream;class WebsocketSignatureV4{['signer'];constructor(_0x62c803){this['signer']=_0x62c803['signer'];}['presign'](_0x2e1c0c,_0x453b6d={}){return this['signer']['presign'](_0x2e1c0c,_0x453b6d);}async['sign'](_0x3220fc,_0x4580ba){if(HttpRequest['isInstance'](_0x3220fc)&&isWebSocketRequest(_0x3220fc))return{...await this['signer']['presign']({..._0x3220fc,'body':''},{..._0x4580ba,'expiresIn':0x3c,'unsignableHeaders':new Set(Object['keys'](_0x3220fc['headers'])['filter'](_0x4365fe=>'host'!==_0x4365fe))}),'body':_0x3220fc['body']};return this['signer']['sign'](_0x3220fc,_0x4580ba);}['signMessage'](_0x11e42a,_0x167283){return this['signer']['signMessage'](_0x11e42a,_0x167283);}}const resolveWebSocketConfig=_0x38ed7c=>{const {signer:_0x4624ac}=_0x38ed7c;return Object['assign'](_0x38ed7c,{'signer':async _0xfa2073=>{const _0x12b874=await _0x4624ac(_0xfa2073);if(validateSigner(_0x12b874))return new WebsocketSignatureV4({'signer':_0x12b874});throw new Error('Expected\x20WebsocketSignatureV4\x20signer,\x20please\x20check\x20the\x20client\x20constructor.');}});},validateSigner=_0x4949c9=>!!_0x4949c9;class EventSigningTransformStream extends TransformStream{constructor(_0x210c73,_0x2edfeb,_0xd2ee27,_0x4c2517){let _0xfe2a49=_0x210c73;super({'start'(){},async 'transform'(_0x223767,_0x36ff94){try{const _0x5bb2cc=new Date(Date['now']()+await _0x4c2517()),_0x1aff62={':date':{'type':'timestamp','value':_0x5bb2cc}},_0x44ddf7=await _0x2edfeb['sign']({'message':{'body':_0x223767,'headers':_0x1aff62},'priorSignature':_0xfe2a49},{'signingDate':_0x5bb2cc});_0xfe2a49=_0x44ddf7['signature'];const _0x3f5833=_0xd2ee27['encode']({'headers':{..._0x1aff62,':chunk-signature':{'type':'binary','value':fromHex(_0x44ddf7['signature'])}},'body':_0x223767});_0x36ff94['enqueue'](_0x3f5833);}catch(_0x380dbe){_0x36ff94['error'](_0x380dbe);}}});}}class EventStreamPayloadHandler{['messageSigner'];['eventStreamCodec'];['systemClockOffsetProvider'];constructor(_0x482b40){this['messageSigner']=_0x482b40['messageSigner'],this['eventStreamCodec']=new EventStreamCodec(_0x482b40['utf8Encoder'],_0x482b40['utf8Decoder']),this['systemClockOffsetProvider']=async()=>_0x482b40['systemClockOffset']??0x0;}async['handle'](_0x278e61,_0x4d60a3,_0x4d2c7e={}){const _0x4f6d7e=_0x4d60a3['request'],{body:_0xbd8912,headers:_0x467c95,query:_0x1dbe51}=_0x4f6d7e;if(!(_0xbd8912 instanceof ReadableStream))throw new Error('Eventstream\x20payload\x20must\x20be\x20a\x20ReadableStream.');const _0x35359e=new TransformStream();_0x4f6d7e['body']=_0x35359e['readable'];const _0x58a452=((_0x467c95?.['authorization']??'')['match'](/Signature=(\w+)$/)??[])[0x1]??(_0x1dbe51&&_0x1dbe51['X-Amz-Signature'])??'',_0x3abdb2=new EventSigningTransformStream(_0x58a452,await this['messageSigner'](),this['eventStreamCodec'],this['systemClockOffsetProvider']);let _0x36dd28;_0xbd8912['pipeThrough'](_0x3abdb2)['pipeThrough'](_0x35359e);try{_0x36dd28=await _0x278e61(_0x4d60a3);}catch(_0x64aa60){const _0x2272c1=_0xbd8912['cancel']?.();throw _0x2272c1 instanceof Promise&&_0x2272c1['catch'](()=>{}),_0x64aa60;}return _0x36dd28;}}const eventStreamPayloadHandlerProvider=_0x3ffd83=>new EventStreamPayloadHandler(_0x3ffd83),DEFAULT_USE_DUALSTACK_ENDPOINT=!0x1,DEFAULT_USE_FIPS_ENDPOINT=!0x1,validRegions=new Set(),checkRegion=(_0x189055,_0x5d0e71=isValidHostLabel)=>{if(validRegions['has'](_0x189055)||_0x5d0e71(_0x189055))validRegions['add'](_0x189055);else{if('*'!==_0x189055)throw new Error('Region\x20not\x20accepted:\x20region=\x22'+_0x189055+'\x22\x20is\x20not\x20a\x20valid\x20hostname\x20component.');console['warn']('@smithy/config-resolver\x20WARN\x20-\x20Please\x20use\x20the\x20caller\x20region\x20instead\x20of\x20\x22*\x22.\x20See\x20\x22sigv4a\x22\x20in\x20https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');}},isFipsRegion=_0xdead60=>'string'==typeof _0xdead60&&(_0xdead60['startsWith']('fips-')||_0xdead60['endsWith']('-fips')),getRealRegion=_0x4d2171=>isFipsRegion(_0x4d2171)?['fips-aws-global','aws-fips']['includes'](_0x4d2171)?'us-east-1':_0x4d2171['replace'](/fips-(dkr-|prod-)?|-fips/,''):_0x4d2171,resolveRegionConfig=_0x49aac1=>{const {region:_0x5bc225,useFipsEndpoint:_0x491a54}=_0x49aac1;if(!_0x5bc225)throw new Error('Region\x20is\x20missing');return Object['assign'](_0x49aac1,{'region':async()=>{const _0x3e57ee='function'==typeof _0x5bc225?await _0x5bc225():_0x5bc225,_0x5af7bf=getRealRegion(_0x3e57ee);return checkRegion(_0x5af7bf),_0x5af7bf;},'useFipsEndpoint':async()=>{const _0x5cc94c='string'==typeof _0x5bc225?_0x5bc225:await _0x5bc225();return!!isFipsRegion(_0x5cc94c)||('function'!=typeof _0x491a54?Promise['resolve'](!!_0x491a54):_0x491a54());}});},resolveEventStreamSerdeConfig=_0x307d3c=>Object['assign'](_0x307d3c,{'eventStreamMarshaller':_0x307d3c['eventStreamSerdeProvider'](_0x307d3c)}),CONTENT_LENGTH_HEADER='content-length';function contentLengthMiddleware(_0x4e1949){return _0x413d1f=>async _0x2a1738=>{const _0x5dd083=_0x2a1738['request'];if(HttpRequest['isInstance'](_0x5dd083)){const {body:_0x1427e0,headers:_0xe81959}=_0x5dd083;if(_0x1427e0&&-0x1===Object['keys'](_0xe81959)['map'](_0x11d8a8=>_0x11d8a8['toLowerCase']())['indexOf'](CONTENT_LENGTH_HEADER))try{const _0x35b2d6=_0x4e1949(_0x1427e0);_0x5dd083['headers']={..._0x5dd083['headers'],[CONTENT_LENGTH_HEADER]:String(_0x35b2d6)};}catch(_0x5cccfe){}}return _0x413d1f({..._0x2a1738,'request':_0x5dd083});};}const contentLengthMiddlewareOptions={'step':'build','tags':['SET_CONTENT_LENGTH','CONTENT_LENGTH'],'name':'contentLengthMiddleware','override':!0x0},getContentLengthPlugin=_0x51528d=>({'applyToStack':_0x328b55=>{_0x328b55['add'](contentLengthMiddleware(_0x51528d['bodyLengthChecker']),contentLengthMiddlewareOptions);}}),resolveParamsForS3=async _0x429b90=>{const _0x37e94f=_0x429b90?.['Bucket']||'';if('string'==typeof _0x429b90['Bucket']&&(_0x429b90['Bucket']=_0x37e94f['replace'](/#/g,encodeURIComponent('#'))['replace'](/\?/g,encodeURIComponent('?'))),isArnBucketName(_0x37e94f)){if(!0x0===_0x429b90['ForcePathStyle'])throw new Error('Path-style\x20addressing\x20cannot\x20be\x20used\x20with\x20ARN\x20buckets');}else(!isDnsCompatibleBucketName(_0x37e94f)||-0x1!==_0x37e94f['indexOf']('.')&&!String(_0x429b90['Endpoint'])['startsWith']('http:')||_0x37e94f['toLowerCase']()!==_0x37e94f||_0x37e94f['length']<0x3)&&(_0x429b90['ForcePathStyle']=!0x0);return _0x429b90['DisableMultiRegionAccessPoints']&&(_0x429b90['disableMultiRegionAccessPoints']=!0x0,_0x429b90['DisableMRAP']=!0x0),_0x429b90;},DOMAIN_PATTERN=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,IP_ADDRESS_PATTERN=/(\d+\.){3}\d+/,DOTS_PATTERN=/\.\./,isDnsCompatibleBucketName=_0x3f0ee1=>DOMAIN_PATTERN['test'](_0x3f0ee1)&&!IP_ADDRESS_PATTERN['test'](_0x3f0ee1)&&!DOTS_PATTERN['test'](_0x3f0ee1),isArnBucketName=_0x3f8141=>{const [_0x5819c5,_0x5cc0cf,_0x4f03c5,,,_0xd309e7]=_0x3f8141['split'](':'),_0x1ced6c='arn'===_0x5819c5&&_0x3f8141['split'](':')['length']>=0x6,_0x16e4f2=Boolean(_0x1ced6c&&_0x5cc0cf&&_0x4f03c5&&_0xd309e7);if(_0x1ced6c&&!_0x16e4f2)throw new Error('Invalid\x20ARN:\x20'+_0x3f8141+'\x20was\x20an\x20invalid\x20ARN.');return _0x16e4f2;},createConfigValueProvider=(_0xc1d04a,_0x36e7d4,_0x19fccc,_0x7f92e2=!0x1)=>{const _0x5cc6f8=async()=>{let _0x2944d4;if(_0x7f92e2){const _0x5ca88b=_0x19fccc['clientContextParams'],_0x2fafa1=_0x5ca88b?.[_0xc1d04a];_0x2944d4=_0x2fafa1??_0x19fccc[_0xc1d04a]??_0x19fccc[_0x36e7d4];}else _0x2944d4=_0x19fccc[_0xc1d04a]??_0x19fccc[_0x36e7d4];return'function'==typeof _0x2944d4?_0x2944d4():_0x2944d4;};return'credentialScope'===_0xc1d04a||'CredentialScope'===_0x36e7d4?async()=>{const _0x5898e6='function'==typeof _0x19fccc['credentials']?await _0x19fccc['credentials']():_0x19fccc['credentials'];return _0x5898e6?.['credentialScope']??_0x5898e6?.['CredentialScope'];}:'accountId'===_0xc1d04a||'AccountId'===_0x36e7d4?async()=>{const _0x2abfc5='function'==typeof _0x19fccc['credentials']?await _0x19fccc['credentials']():_0x19fccc['credentials'];return _0x2abfc5?.['accountId']??_0x2abfc5?.['AccountId'];}:'endpoint'===_0xc1d04a||'endpoint'===_0x36e7d4?async()=>{if(!0x1===_0x19fccc['isCustomEndpoint'])return;const _0x511189=await _0x5cc6f8();if(_0x511189&&'object'==typeof _0x511189){if('url'in _0x511189)return _0x511189['url']['href'];if('hostname'in _0x511189){const {protocol:_0x5c19f9,hostname:_0x52449f,port:_0x297efc,path:_0x4e4025}=_0x511189;return _0x5c19f9+'//'+_0x52449f+(_0x297efc?':'+_0x297efc:'')+_0x4e4025;}}return _0x511189;}:_0x5cc6f8;},getEndpointFromConfig=async _0x24b1f2=>{},toEndpointV1=_0x8fe9aa=>'object'==typeof _0x8fe9aa?'url'in _0x8fe9aa?parseUrl(_0x8fe9aa['url']):_0x8fe9aa:parseUrl(_0x8fe9aa),getEndpointFromInstructions=async(_0x580668,_0x4c187b,_0xcec6ec,_0x22e9c3)=>{if(!_0xcec6ec['isCustomEndpoint']){let _0x559b3d;_0x559b3d=_0xcec6ec['serviceConfiguredEndpoint']?await _0xcec6ec['serviceConfiguredEndpoint']():await getEndpointFromConfig(_0xcec6ec['serviceId']),_0x559b3d&&(_0xcec6ec['endpoint']=()=>Promise['resolve'](toEndpointV1(_0x559b3d)),_0xcec6ec['isCustomEndpoint']=!0x0);}const _0x51e7ac=await resolveParams(_0x580668,_0x4c187b,_0xcec6ec);if('function'!=typeof _0xcec6ec['endpointProvider'])throw new Error('config.endpointProvider\x20is\x20not\x20set.');return _0xcec6ec['endpointProvider'](_0x51e7ac,_0x22e9c3);},resolveParams=async(_0x42191b,_0x3e9af4,_0x389850)=>{const _0x32b3dd={},_0x493c81=_0x3e9af4?.['getEndpointParameterInstructions']?.()||{};for(const [_0x5c6b81,_0x44286d]of Object['entries'](_0x493c81))switch(_0x44286d['type']){case'staticContextParams':_0x32b3dd[_0x5c6b81]=_0x44286d['value'];break;case'contextParams':_0x32b3dd[_0x5c6b81]=_0x42191b[_0x44286d['name']];break;case'clientContextParams':case'builtInParams':_0x32b3dd[_0x5c6b81]=await createConfigValueProvider(_0x44286d['name'],_0x5c6b81,_0x389850,'builtInParams'!==_0x44286d['type'])();break;case'operationContextParams':_0x32b3dd[_0x5c6b81]=_0x44286d['get'](_0x42191b);break;default:throw new Error('Unrecognized\x20endpoint\x20parameter\x20instruction:\x20'+JSON['stringify'](_0x44286d));}return 0x0===Object['keys'](_0x493c81)['length']&&Object['assign'](_0x32b3dd,_0x389850),'s3'===String(_0x389850['serviceId'])['toLowerCase']()&&await resolveParamsForS3(_0x32b3dd),_0x32b3dd;},endpointMiddleware=({config:_0x415847,instructions:_0x3a0ad8})=>(_0x5f587e,_0x4130e8)=>async _0x3d739f=>{_0x415847['isCustomEndpoint']&&setFeature$1(_0x4130e8,'ENDPOINT_OVERRIDE','N');const _0x697fe6=await getEndpointFromInstructions(_0x3d739f['input'],{'getEndpointParameterInstructions':()=>_0x3a0ad8},{..._0x415847},_0x4130e8);_0x4130e8['endpointV2']=_0x697fe6,_0x4130e8['authSchemes']=_0x697fe6['properties']?.['authSchemes'];const _0x29a48f=_0x4130e8['authSchemes']?.[0x0];if(_0x29a48f){_0x4130e8['signing_region']=_0x29a48f['signingRegion'],_0x4130e8['signing_service']=_0x29a48f['signingName'];const _0x39bd2c=getSmithyContext(_0x4130e8),_0x46947e=_0x39bd2c?.['selectedHttpAuthScheme']?.['httpAuthOption'];_0x46947e&&(_0x46947e['signingProperties']=Object['assign'](_0x46947e['signingProperties']||{},{'signing_region':_0x29a48f['signingRegion'],'signingRegion':_0x29a48f['signingRegion'],'signing_service':_0x29a48f['signingName'],'signingName':_0x29a48f['signingName'],'signingRegionSet':_0x29a48f['signingRegionSet']},_0x29a48f['properties']));}return _0x5f587e({..._0x3d739f});},endpointMiddlewareOptions={'step':'serialize','tags':['ENDPOINT_PARAMETERS','ENDPOINT_V2','ENDPOINT'],'name':'endpointV2Middleware','override':!0x0,'relation':'before','toMiddleware':serializerMiddlewareOption$1['name']},getEndpointPlugin=(_0x1df066,_0x26b293)=>({'applyToStack':_0x4be22d=>{_0x4be22d['addRelativeTo'](endpointMiddleware({'config':_0x1df066,'instructions':_0x26b293}),endpointMiddlewareOptions);}}),resolveEndpointConfig=_0x34488f=>{const _0x5940a1=_0x34488f['tls']??!0x0,{endpoint:_0x3fdb9d,useDualstackEndpoint:_0x4fb517,useFipsEndpoint:_0xb60778}=_0x34488f,_0x4db686=null!=_0x3fdb9d?async()=>toEndpointV1(await normalizeProvider$1(_0x3fdb9d)()):void 0x0,_0x27f320=!!_0x3fdb9d,_0x273b19=Object['assign'](_0x34488f,{'endpoint':_0x4db686,'tls':_0x5940a1,'isCustomEndpoint':_0x27f320,'useDualstackEndpoint':normalizeProvider$1(_0x4fb517??!0x1),'useFipsEndpoint':normalizeProvider$1(_0xb60778??!0x1)});let _0x59d3ec;return _0x273b19['serviceConfiguredEndpoint']=async()=>(_0x34488f['serviceId']&&!_0x59d3ec&&(_0x59d3ec=getEndpointFromConfig(_0x34488f['serviceId'])),_0x59d3ec),_0x273b19;};var RETRY_MODES;!function(_0xc37c59){_0xc37c59['STANDARD']='standard',_0xc37c59['ADAPTIVE']='adaptive';}(RETRY_MODES||(RETRY_MODES={}));const DEFAULT_MAX_ATTEMPTS=0x3,DEFAULT_RETRY_MODE=RETRY_MODES['STANDARD'],THROTTLING_ERROR_CODES=['BandwidthLimitExceeded','EC2ThrottledException','LimitExceededException','PriorRequestNotComplete','ProvisionedThroughputExceededException','RequestLimitExceeded','RequestThrottled','RequestThrottledException','SlowDown','ThrottledException','Throttling','ThrottlingException','TooManyRequestsException','TransactionInProgressException'],TRANSIENT_ERROR_CODES=['TimeoutError','RequestTimeout','RequestTimeoutException'],TRANSIENT_ERROR_STATUS_CODES=[0x1f4,0x1f6,0x1f7,0x1f8],NODEJS_TIMEOUT_ERROR_CODES=['ECONNRESET','ECONNREFUSED','EPIPE','ETIMEDOUT'],NODEJS_NETWORK_ERROR_CODES=['EHOSTUNREACH','ENETUNREACH','ENOTFOUND'],isRetryableByTrait=_0x4511e0=>void 0x0!==_0x4511e0?.['$retryable'],isClockSkewCorrectedError=_0x308188=>_0x308188['$metadata']?.['clockSkewCorrected'],isBrowserNetworkError=_0x198df5=>{const _0x4445a2=new Set(['Failed\x20to\x20fetch','NetworkError\x20when\x20attempting\x20to\x20fetch\x20resource','The\x20Internet\x20connection\x20appears\x20to\x20be\x20offline','Load\x20failed','Network\x20request\x20failed']);return!!(_0x198df5&&_0x198df5 instanceof TypeError)&&_0x4445a2['has'](_0x198df5['message']);},isThrottlingError=_0x213909=>0x1ad===_0x213909['$metadata']?.['httpStatusCode']||THROTTLING_ERROR_CODES['includes'](_0x213909['name'])||0x1==_0x213909['$retryable']?.['throttling'],isTransientError=(_0x48b3b4,_0x45812c=0x0)=>isRetryableByTrait(_0x48b3b4)||isClockSkewCorrectedError(_0x48b3b4)||TRANSIENT_ERROR_CODES['includes'](_0x48b3b4['name'])||NODEJS_TIMEOUT_ERROR_CODES['includes'](_0x48b3b4?.['code']||'')||NODEJS_NETWORK_ERROR_CODES['includes'](_0x48b3b4?.['code']||'')||TRANSIENT_ERROR_STATUS_CODES['includes'](_0x48b3b4['$metadata']?.['httpStatusCode']||0x0)||isBrowserNetworkError(_0x48b3b4)||void 0x0!==_0x48b3b4['cause']&&_0x45812c<=0xa&&isTransientError(_0x48b3b4['cause'],_0x45812c+0x1),isServerError=_0x156152=>{if(void 0x0!==_0x156152['$metadata']?.['httpStatusCode']){const _0x270f21=_0x156152['$metadata']['httpStatusCode'];return 0x1f4<=_0x270f21&&_0x270f21<=0x257&&!isTransientError(_0x156152);}return!0x1;};class DefaultRateLimiter{static ['setTimeoutFn']=setTimeout;['beta'];['minCapacity'];['minFillRate'];['scaleConstant'];['smooth'];['currentCapacity']=0x0;['enabled']=!0x1;['lastMaxRate']=0x0;['measuredTxRate']=0x0;['requestCount']=0x0;['fillRate'];['lastThrottleTime'];['lastTimestamp']=0x0;['lastTxRateBucket'];['maxCapacity'];['timeWindow']=0x0;constructor(_0x13d1e8){this['beta']=_0x13d1e8?.['beta']??0.7,this['minCapacity']=_0x13d1e8?.['minCapacity']??0x1,this['minFillRate']=_0x13d1e8?.['minFillRate']??0.5,this['scaleConstant']=_0x13d1e8?.['scaleConstant']??0.4,this['smooth']=_0x13d1e8?.['smooth']??0.8;const _0x1e2207=this['getCurrentTimeInSeconds']();this['lastThrottleTime']=_0x1e2207,this['lastTxRateBucket']=Math['floor'](this['getCurrentTimeInSeconds']()),this['fillRate']=this['minFillRate'],this['maxCapacity']=this['minCapacity'];}['getCurrentTimeInSeconds'](){return Date['now']()/0x3e8;}async['getSendToken'](){return this['acquireTokenBucket'](0x1);}async['acquireTokenBucket'](_0x4ea4bc){if(this['enabled']){if(this['refillTokenBucket'](),_0x4ea4bc>this['currentCapacity']){const _0x81b767=(_0x4ea4bc-this['currentCapacity'])/this['fillRate']*0x3e8;await new Promise(_0x456ef4=>DefaultRateLimiter['setTimeoutFn'](_0x456ef4,_0x81b767));}this['currentCapacity']=this['currentCapacity']-_0x4ea4bc;}}['refillTokenBucket'](){const _0x599342=this['getCurrentTimeInSeconds']();if(!this['lastTimestamp'])return void(this['lastTimestamp']=_0x599342);const _0x597626=(_0x599342-this['lastTimestamp'])*this['fillRate'];this['currentCapacity']=Math['min'](this['maxCapacity'],this['currentCapacity']+_0x597626),this['lastTimestamp']=_0x599342;}['updateClientSendingRate'](_0x482a05){let _0x569722;if(this['updateMeasuredRate'](),isThrottlingError(_0x482a05)){const _0x492814=this['enabled']?Math['min'](this['measuredTxRate'],this['fillRate']):this['measuredTxRate'];this['lastMaxRate']=_0x492814,this['calculateTimeWindow'](),this['lastThrottleTime']=this['getCurrentTimeInSeconds'](),_0x569722=this['cubicThrottle'](_0x492814),this['enableTokenBucket']();}else this['calculateTimeWindow'](),_0x569722=this['cubicSuccess'](this['getCurrentTimeInSeconds']());const _0x2db558=Math['min'](_0x569722,0x2*this['measuredTxRate']);this['updateTokenBucketRate'](_0x2db558);}['calculateTimeWindow'](){this['timeWindow']=this['getPrecise'](Math['pow'](this['lastMaxRate']*(0x1-this['beta'])/this['scaleConstant'],0x1/0x3));}['cubicThrottle'](_0x463e63){return this['getPrecise'](_0x463e63*this['beta']);}['cubicSuccess'](_0x41e8e3){return this['getPrecise'](this['scaleConstant']*Math['pow'](_0x41e8e3-this['lastThrottleTime']-this['timeWindow'],0x3)+this['lastMaxRate']);}['enableTokenBucket'](){this['enabled']=!0x0;}['updateTokenBucketRate'](_0x58973a){this['refillTokenBucket'](),this['fillRate']=Math['max'](_0x58973a,this['minFillRate']),this['maxCapacity']=Math['max'](_0x58973a,this['minCapacity']),this['currentCapacity']=Math['min'](this['currentCapacity'],this['maxCapacity']);}['updateMeasuredRate'](){const t=this['getCurrentTimeInSeconds'](),_0x1a2b2b=Math['floor'](0x2*t)/0x2;if(this['requestCount']++,_0x1a2b2b>this['lastTxRateBucket']){const _0x132e37=this['requestCount']/(_0x1a2b2b-this['lastTxRateBucket']);this['measuredTxRate']=this['getPrecise'](_0x132e37*this['smooth']+this['measuredTxRate']*(0x1-this['smooth'])),this['requestCount']=0x0,this['lastTxRateBucket']=_0x1a2b2b;}}['getPrecise'](_0x12be5f){return parseFloat(_0x12be5f['toFixed'](0x8));}}const DEFAULT_RETRY_DELAY_BASE=0x64,MAXIMUM_RETRY_DELAY=0x4e20,THROTTLING_RETRY_DELAY_BASE=0x1f4,INITIAL_RETRY_TOKENS=0x1f4,RETRY_COST=0x5,TIMEOUT_RETRY_COST=0xa,NO_RETRY_INCREMENT=0x1,INVOCATION_ID_HEADER='amz-sdk-invocation-id',REQUEST_HEADER='amz-sdk-request',getDefaultRetryBackoffStrategy=()=>{let _0x1e6faa=DEFAULT_RETRY_DELAY_BASE;return{'computeNextBackoffDelay':_0x580b46=>Math['floor'](Math['min'](MAXIMUM_RETRY_DELAY,Math['random']()*0x2**_0x580b46*_0x1e6faa)),'setDelayBase':_0x1c4f37=>{_0x1e6faa=_0x1c4f37;}};},createDefaultRetryToken=({retryDelay:_0x33963d,retryCount:_0x3ee36d,retryCost:_0x39ede6})=>({'getRetryCount':()=>_0x3ee36d,'getRetryDelay':()=>Math['min'](MAXIMUM_RETRY_DELAY,_0x33963d),'getRetryCost':()=>_0x39ede6});class StandardRetryStrategy{['maxAttempts'];['mode']=RETRY_MODES['STANDARD'];['capacity']=INITIAL_RETRY_TOKENS;['retryBackoffStrategy']=getDefaultRetryBackoffStrategy();['maxAttemptsProvider'];constructor(_0x4c3953){this['maxAttempts']=_0x4c3953,this['maxAttemptsProvider']='function'==typeof _0x4c3953?_0x4c3953:async()=>_0x4c3953;}async['acquireInitialRetryToken'](_0x4047a1){return createDefaultRetryToken({'retryDelay':DEFAULT_RETRY_DELAY_BASE,'retryCount':0x0});}async['refreshRetryTokenForRetry'](_0x2a65d6,_0x157f4d){const _0x296039=await this['getMaxAttempts']();if(this['shouldRetry'](_0x2a65d6,_0x157f4d,_0x296039)){const _0x42fd07=_0x157f4d['errorType'];this['retryBackoffStrategy']['setDelayBase']('THROTTLING'===_0x42fd07?THROTTLING_RETRY_DELAY_BASE:DEFAULT_RETRY_DELAY_BASE);const _0x537115=this['retryBackoffStrategy']['computeNextBackoffDelay'](_0x2a65d6['getRetryCount']()),_0x4949a4=_0x157f4d['retryAfterHint']?Math['max'](_0x157f4d['retryAfterHint']['getTime']()-Date['now']()||0x0,_0x537115):_0x537115,_0x6d2c19=this['getCapacityCost'](_0x42fd07);return this['capacity']-=_0x6d2c19,createDefaultRetryToken({'retryDelay':_0x4949a4,'retryCount':_0x2a65d6['getRetryCount']()+0x1,'retryCost':_0x6d2c19});}throw new Error('No\x20retry\x20token\x20available');}['recordSuccess'](_0x111be1){this['capacity']=Math['max'](INITIAL_RETRY_TOKENS,this['capacity']+(_0x111be1['getRetryCost']()??NO_RETRY_INCREMENT));}['getCapacity'](){return this['capacity'];}async['getMaxAttempts'](){try{return await this['maxAttemptsProvider']();}catch(_0xa1d777){return console['warn']('Max\x20attempts\x20provider\x20could\x20not\x20resolve.\x20Using\x20default\x20of\x20'+DEFAULT_MAX_ATTEMPTS),DEFAULT_MAX_ATTEMPTS;}}['shouldRetry'](_0x19c25d,_0x17232f,_0x1e3b24){return _0x19c25d['getRetryCount']()+0x1<_0x1e3b24&&this['capacity']>=this['getCapacityCost'](_0x17232f['errorType'])&&this['isRetryableError'](_0x17232f['errorType']);}['getCapacityCost'](_0x4cf123){return'TRANSIENT'===_0x4cf123?TIMEOUT_RETRY_COST:RETRY_COST;}['isRetryableError'](_0x1b50af){return'THROTTLING'===_0x1b50af||'TRANSIENT'===_0x1b50af;}}class AdaptiveRetryStrategy{['maxAttemptsProvider'];['rateLimiter'];['standardRetryStrategy'];['mode']=RETRY_MODES['ADAPTIVE'];constructor(_0x553ac6,_0x5bbc82){this['maxAttemptsProvider']=_0x553ac6;const {rateLimiter:_0x24e109}=_0x5bbc82??{};this['rateLimiter']=_0x24e109??new DefaultRateLimiter(),this['standardRetryStrategy']=new StandardRetryStrategy(_0x553ac6);}async['acquireInitialRetryToken'](_0x4c88cd){return await this['rateLimiter']['getSendToken'](),this['standardRetryStrategy']['acquireInitialRetryToken'](_0x4c88cd);}async['refreshRetryTokenForRetry'](_0xb9b462,_0x962075){return this['rateLimiter']['updateClientSendingRate'](_0x962075),this['standardRetryStrategy']['refreshRetryTokenForRetry'](_0xb9b462,_0x962075);}['recordSuccess'](_0xd3ac7c){this['rateLimiter']['updateClientSendingRate']({}),this['standardRetryStrategy']['recordSuccess'](_0xd3ac7c);}}const asSdkError=_0x5b79c4=>_0x5b79c4 instanceof Error?_0x5b79c4:_0x5b79c4 instanceof Object?Object['assign'](new Error(),_0x5b79c4):'string'==typeof _0x5b79c4?new Error(_0x5b79c4):new Error('AWS\x20SDK\x20error\x20wrapper\x20for\x20'+_0x5b79c4),resolveRetryConfig=_0x305a23=>{const {retryStrategy:_0x22e7ed,retryMode:_0x3e0d9c,maxAttempts:_0x3c9cbd}=_0x305a23,_0x250c55=normalizeProvider$1(_0x3c9cbd??DEFAULT_MAX_ATTEMPTS);return Object['assign'](_0x305a23,{'maxAttempts':_0x250c55,'retryStrategy':async()=>{if(_0x22e7ed)return _0x22e7ed;return await normalizeProvider$1(_0x3e0d9c)()===RETRY_MODES['ADAPTIVE']?new AdaptiveRetryStrategy(_0x250c55):new StandardRetryStrategy(_0x250c55);}});},isStreamingPayload=_0x4ebfe3=>_0x4ebfe3?.['body']instanceof ReadableStream,retryMiddleware=_0x3fbcc4=>(_0xc0421f,_0x11d7b7)=>async _0x54838d=>{let _0x45afdf=await _0x3fbcc4['retryStrategy']();const _0x46562a=await _0x3fbcc4['maxAttempts']();if(!isRetryStrategyV2(_0x45afdf))return _0x45afdf?.['mode']&&(_0x11d7b7['userAgent']=[..._0x11d7b7['userAgent']||[],['cfg/retry-mode',_0x45afdf['mode']]]),_0x45afdf['retry'](_0xc0421f,_0x54838d);{let _0x3d88cc=await _0x45afdf['acquireInitialRetryToken'](_0x11d7b7['partition_id']),_0x475b97=new Error(),_0xb0662b=0x0,_0x2ba061=0x0;const {request:_0x41adb9}=_0x54838d,_0x1e6c1d=HttpRequest['isInstance'](_0x41adb9);for(_0x1e6c1d&&(_0x41adb9['headers'][INVOCATION_ID_HEADER]=v4$1());;)try{_0x1e6c1d&&(_0x41adb9['headers'][REQUEST_HEADER]='attempt='+(_0xb0662b+0x1)+';\x20max='+_0x46562a);const {response:_0x2b4e9d,output:_0x23b4b1}=await _0xc0421f(_0x54838d);return _0x45afdf['recordSuccess'](_0x3d88cc),_0x23b4b1['$metadata']['attempts']=_0xb0662b+0x1,_0x23b4b1['$metadata']['totalRetryDelay']=_0x2ba061,{'response':_0x2b4e9d,'output':_0x23b4b1};}catch(_0x293633){const _0x15b6d9=getRetryErrorInfo(_0x293633);if(_0x475b97=asSdkError(_0x293633),_0x1e6c1d&&isStreamingPayload(_0x41adb9))throw(_0x11d7b7['logger']instanceof NoOpLogger?console:_0x11d7b7['logger'])?.['warn']('An\x20error\x20was\x20encountered\x20in\x20a\x20non-retryable\x20streaming\x20request.'),_0x475b97;try{_0x3d88cc=await _0x45afdf['refreshRetryTokenForRetry'](_0x3d88cc,_0x15b6d9);}catch(_0x54849f){throw _0x475b97['$metadata']||(_0x475b97['$metadata']={}),_0x475b97['$metadata']['attempts']=_0xb0662b+0x1,_0x475b97['$metadata']['totalRetryDelay']=_0x2ba061,_0x475b97;}_0xb0662b=_0x3d88cc['getRetryCount']();const _0x36dbab=_0x3d88cc['getRetryDelay']();_0x2ba061+=_0x36dbab,await new Promise(_0x5242dc=>setTimeout(_0x5242dc,_0x36dbab));}}},isRetryStrategyV2=_0x40d08f=>void 0x0!==_0x40d08f['acquireInitialRetryToken']&&void 0x0!==_0x40d08f['refreshRetryTokenForRetry']&&void 0x0!==_0x40d08f['recordSuccess'],getRetryErrorInfo=_0x5f2ecc=>{const _0x55cf2e={'error':_0x5f2ecc,'errorType':getRetryErrorType(_0x5f2ecc)},_0x482ffb=getRetryAfterHint(_0x5f2ecc['$response']);return _0x482ffb&&(_0x55cf2e['retryAfterHint']=_0x482ffb),_0x55cf2e;},getRetryErrorType=_0x2b2354=>isThrottlingError(_0x2b2354)?'THROTTLING':isTransientError(_0x2b2354)?'TRANSIENT':isServerError(_0x2b2354)?'SERVER_ERROR':'CLIENT_ERROR',retryMiddlewareOptions={'name':'retryMiddleware','tags':['RETRY'],'step':'finalizeRequest','priority':'high','override':!0x0},getRetryPlugin=_0x34937f=>({'applyToStack':_0x2931b0=>{_0x2931b0['add'](retryMiddleware(_0x34937f),retryMiddlewareOptions);}}),getRetryAfterHint=_0x39c334=>{if(!HttpResponse['isInstance'](_0x39c334))return;const _0x382f52=Object['keys'](_0x39c334['headers'])['find'](_0xdf8d51=>'retry-after'===_0xdf8d51['toLowerCase']());if(!_0x382f52)return;const _0x17ff29=_0x39c334['headers'][_0x382f52],_0x3bc2db=Number(_0x17ff29);if(!Number['isNaN'](_0x3bc2db))return new Date(0x3e8*_0x3bc2db);return new Date(_0x17ff29);},defaultBedrockRuntimeHttpAuthSchemeParametersProvider=async(_0x3f8491,_0x3cc46a,_0x47f218)=>({'operation':getSmithyContext(_0x3cc46a)['operation'],'region':await normalizeProvider$1(_0x3f8491['region'])()||((()=>{throw new Error('expected\x20`region`\x20to\x20be\x20configured\x20for\x20`aws.auth#sigv4`');})())});function createAwsAuthSigv4HttpAuthOption(_0xde1564){return{'schemeId':'aws.auth#sigv4','signingProperties':{'name':'bedrock','region':_0xde1564['region']},'propertiesExtractor':(_0x4effff,_0x18b1b6)=>({'signingProperties':{'config':_0x4effff,'context':_0x18b1b6}})};}function createSmithyApiHttpBearerAuthHttpAuthOption(_0x4429d){return{'schemeId':'smithy.api#httpBearerAuth','propertiesExtractor':({profile:_0x252ace,filepath:_0x21029d,configFilepath:_0x432ee1,ignoreCache:_0x3f0886},_0x1256de)=>({'identityProperties':{'profile':_0x252ace,'filepath':_0x21029d,'configFilepath':_0x432ee1,'ignoreCache':_0x3f0886}})};}const defaultBedrockRuntimeHttpAuthSchemeProvider=_0x2bf4a3=>{const _0xc4d612=[];return _0x2bf4a3['operation'],_0xc4d612['push'](createAwsAuthSigv4HttpAuthOption(_0x2bf4a3)),_0xc4d612['push'](createSmithyApiHttpBearerAuthHttpAuthOption()),_0xc4d612;},resolveHttpAuthSchemeConfig=_0x4c0aa8=>{const _0x5d1e60=memoizeIdentityProvider(_0x4c0aa8['token'],isIdentityExpired,doesIdentityRequireRefresh),_0x2025ab=resolveAwsSdkSigV4Config(_0x4c0aa8);return Object['assign'](_0x2025ab,{'authSchemePreference':normalizeProvider$1(_0x4c0aa8['authSchemePreference']??[]),'token':_0x5d1e60});},resolveClientEndpointParameters=_0x4f74ae=>Object['assign'](_0x4f74ae,{'useDualstackEndpoint':_0x4f74ae['useDualstackEndpoint']??!0x1,'useFipsEndpoint':_0x4f74ae['useFipsEndpoint']??!0x1,'defaultSigningName':'bedrock'}),commonParams={'UseFIPS':{'type':'builtInParams','name':'useFipsEndpoint'},'Endpoint':{'type':'builtInParams','name':'endpoint'},'Region':{'type':'builtInParams','name':'region'},'UseDualStack':{'type':'builtInParams','name':'useDualstackEndpoint'}};var version$3='3.994.0',packageInfo={'version':version$3},SHA_256_HASH={'name':'SHA-256'},SHA_256_HMAC_ALGO={'name':'HMAC','hash':SHA_256_HASH},EMPTY_DATA_SHA_256=new Uint8Array([0xe3,0xb0,0xc4,0x42,0x98,0xfc,0x1c,0x14,0x9a,0xfb,0xf4,0xc8,0x99,0x6f,0xb9,0x24,0x27,0xae,0x41,0xe4,0x64,0x9b,0x93,0x4c,0xa4,0x95,0x99,0x1b,0x78,0x52,0xb8,0x55]);const fallbackWindow={};function locateWindow(){return'undefined'!=typeof window?window:'undefined'!=typeof self?self:fallbackWindow;}var Sha256$2=(function(){function _0x3cdb0e(_0x3a6674){this['toHash']=new Uint8Array(0x0),this['secret']=_0x3a6674,this['reset']();}return _0x3cdb0e['prototype']['update']=function(_0x23125b){if(!isEmptyData(_0x23125b)){var _0x56537e=convertToBuffer(_0x23125b),_0x181ed3=new Uint8Array(this['toHash']['byteLength']+_0x56537e['byteLength']);_0x181ed3['set'](this['toHash'],0x0),_0x181ed3['set'](_0x56537e,this['toHash']['byteLength']),this['toHash']=_0x181ed3;}},_0x3cdb0e['prototype']['digest']=function(){var _0x403029=this;return this['key']?this['key']['then'](function(_0x54830d){return locateWindow()['crypto']['subtle']['sign'](SHA_256_HMAC_ALGO,_0x54830d,_0x403029['toHash'])['then'](function(_0x4f3219){return new Uint8Array(_0x4f3219);});}):isEmptyData(this['toHash'])?Promise['resolve'](EMPTY_DATA_SHA_256):Promise['resolve']()['then'](function(){return locateWindow()['crypto']['subtle']['digest'](SHA_256_HASH,_0x403029['toHash']);})['then'](function(_0x3b1719){return Promise['resolve'](new Uint8Array(_0x3b1719));});},_0x3cdb0e['prototype']['reset']=function(){var _0x58b562=this;this['toHash']=new Uint8Array(0x0),this['secret']&&void 0x0!==this['secret']&&(this['key']=new Promise(function(_0x53a446,_0x396201){locateWindow()['crypto']['subtle']['importKey']('raw',convertToBuffer(_0x58b562['secret']),SHA_256_HMAC_ALGO,!0x1,['sign'])['then'](_0x53a446,_0x396201);}),this['key']['catch'](function(){}));},_0x3cdb0e;}()),BLOCK_SIZE=0x40,DIGEST_LENGTH=0x20,KEY=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),INIT=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],MAX_HASHABLE_LENGTH=Math['pow'](0x2,0x35)-0x1,RawSha256=(function(){function _0x28e71c(){this['state']=Int32Array['from'](INIT),this['temp']=new Int32Array(0x40),this['buffer']=new Uint8Array(0x40),this['bufferLength']=0x0,this['bytesHashed']=0x0,this['finished']=!0x1;}return _0x28e71c['prototype']['update']=function(_0x58c82a){if(this['finished'])throw new Error('Attempted\x20to\x20update\x20an\x20already\x20finished\x20hash.');var _0x533f88=0x0,_0x4e4208=_0x58c82a['byteLength'];if(this['bytesHashed']+=_0x4e4208,0x8*this['bytesHashed']>MAX_HASHABLE_LENGTH)throw new Error('Cannot\x20hash\x20more\x20than\x202^53\x20-\x201\x20bits');for(;_0x4e4208>0x0;)this['buffer'][this['bufferLength']++]=_0x58c82a[_0x533f88++],_0x4e4208--,this['bufferLength']===BLOCK_SIZE&&(this['hashBuffer'](),this['bufferLength']=0x0);},_0x28e71c['prototype']['digest']=function(){if(!this['finished']){var _0x43c377=0x8*this['bytesHashed'],_0x303355=new DataView(this['buffer']['buffer'],this['buffer']['byteOffset'],this['buffer']['byteLength']),_0x1b2ad3=this['bufferLength'];if(_0x303355['setUint8'](this['bufferLength']++,0x80),_0x1b2ad3%BLOCK_SIZE>=BLOCK_SIZE-0x8){for(var _0x5aaf40=this['bufferLength'];_0x5aaf40<BLOCK_SIZE;_0x5aaf40++)_0x303355['setUint8'](_0x5aaf40,0x0);this['hashBuffer'](),this['bufferLength']=0x0;}for(_0x5aaf40=this['bufferLength'];_0x5aaf40<BLOCK_SIZE-0x8;_0x5aaf40++)_0x303355['setUint8'](_0x5aaf40,0x0);_0x303355['setUint32'](BLOCK_SIZE-0x8,Math['floor'](_0x43c377/0x100000000),!0x0),_0x303355['setUint32'](BLOCK_SIZE-0x4,_0x43c377),this['hashBuffer'](),this['finished']=!0x0;}var _0x357c4f=new Uint8Array(DIGEST_LENGTH);for(_0x5aaf40=0x0;_0x5aaf40<0x8;_0x5aaf40++)_0x357c4f[0x4*_0x5aaf40]=this['state'][_0x5aaf40]>>>0x18&0xff,_0x357c4f[0x4*_0x5aaf40+0x1]=this['state'][_0x5aaf40]>>>0x10&0xff,_0x357c4f[0x4*_0x5aaf40+0x2]=this['state'][_0x5aaf40]>>>0x8&0xff,_0x357c4f[0x4*_0x5aaf40+0x3]=this['state'][_0x5aaf40]>>>0x0&0xff;return _0x357c4f;},_0x28e71c['prototype']['hashBuffer']=function(){for(var _0xfaa62a=this['buffer'],_0x2b0aa2=this['state'],_0x2288c9=_0x2b0aa2[0x0],_0x4bb7cc=_0x2b0aa2[0x1],_0x233c47=_0x2b0aa2[0x2],_0x3013da=_0x2b0aa2[0x3],_0xcbde97=_0x2b0aa2[0x4],_0x3f8b51=_0x2b0aa2[0x5],_0x1ece9f=_0x2b0aa2[0x6],_0x18be8c=_0x2b0aa2[0x7],_0x4fcd4d=0x0;_0x4fcd4d<BLOCK_SIZE;_0x4fcd4d++){if(_0x4fcd4d<0x10)this['temp'][_0x4fcd4d]=(0xff&_0xfaa62a[0x4*_0x4fcd4d])<<0x18|(0xff&_0xfaa62a[0x4*_0x4fcd4d+0x1])<<0x10|(0xff&_0xfaa62a[0x4*_0x4fcd4d+0x2])<<0x8|0xff&_0xfaa62a[0x4*_0x4fcd4d+0x3];else{var _0x212363=this['temp'][_0x4fcd4d-0x2],_0x2c7964=(_0x212363>>>0x11|_0x212363<<0xf)^(_0x212363>>>0x13|_0x212363<<0xd)^_0x212363>>>0xa,_0x43e6c3=((_0x212363=this['temp'][_0x4fcd4d-0xf])>>>0x7|_0x212363<<0x19)^(_0x212363>>>0x12|_0x212363<<0xe)^_0x212363>>>0x3;this['temp'][_0x4fcd4d]=(_0x2c7964+this['temp'][_0x4fcd4d-0x7]|0x0)+(_0x43e6c3+this['temp'][_0x4fcd4d-0x10]|0x0);}var _0x286060=(((_0xcbde97>>>0x6|_0xcbde97<<0x1a)^(_0xcbde97>>>0xb|_0xcbde97<<0x15)^(_0xcbde97>>>0x19|_0xcbde97<<0x7))+(_0xcbde97&_0x3f8b51^~_0xcbde97&_0x1ece9f)|0x0)+(_0x18be8c+(KEY[_0x4fcd4d]+this['temp'][_0x4fcd4d]|0x0)|0x0)|0x0,_0x355a55=((_0x2288c9>>>0x2|_0x2288c9<<0x1e)^(_0x2288c9>>>0xd|_0x2288c9<<0x13)^(_0x2288c9>>>0x16|_0x2288c9<<0xa))+(_0x2288c9&_0x4bb7cc^_0x2288c9&_0x233c47^_0x4bb7cc&_0x233c47)|0x0;_0x18be8c=_0x1ece9f,_0x1ece9f=_0x3f8b51,_0x3f8b51=_0xcbde97,_0xcbde97=_0x3013da+_0x286060|0x0,_0x3013da=_0x233c47,_0x233c47=_0x4bb7cc,_0x4bb7cc=_0x2288c9,_0x2288c9=_0x286060+_0x355a55|0x0;}_0x2b0aa2[0x0]+=_0x2288c9,_0x2b0aa2[0x1]+=_0x4bb7cc,_0x2b0aa2[0x2]+=_0x233c47,_0x2b0aa2[0x3]+=_0x3013da,_0x2b0aa2[0x4]+=_0xcbde97,_0x2b0aa2[0x5]+=_0x3f8b51,_0x2b0aa2[0x6]+=_0x1ece9f,_0x2b0aa2[0x7]+=_0x18be8c;},_0x28e71c;}()),Sha256$1=(function(){function _0x261f01(_0x50a1b9){this['secret']=_0x50a1b9,this['hash']=new RawSha256(),this['reset']();}return _0x261f01['prototype']['update']=function(_0x57c67d){if(!isEmptyData(_0x57c67d)&&!this['error'])try{this['hash']['update'](convertToBuffer(_0x57c67d));}catch(_0x5cffbc){this['error']=_0x5cffbc;}},_0x261f01['prototype']['digestSync']=function(){if(this['error'])throw this['error'];return this['outer']?(this['outer']['finished']||this['outer']['update'](this['hash']['digest']()),this['outer']['digest']()):this['hash']['digest']();},_0x261f01['prototype']['digest']=function(){return __awaiter(this,void 0x0,void 0x0,function(){return __generator(this,function(_0x39e21c){return[0x2,this['digestSync']()];});});},_0x261f01['prototype']['reset']=function(){if(this['hash']=new RawSha256(),this['secret']){this['outer']=new RawSha256();var _0x573b20=bufferFromSecret(this['secret']),_0x5b08df=new Uint8Array(BLOCK_SIZE);_0x5b08df['set'](_0x573b20);for(var _0x42adac=0x0;_0x42adac<BLOCK_SIZE;_0x42adac++)_0x573b20[_0x42adac]^=0x36,_0x5b08df[_0x42adac]^=0x5c;this['hash']['update'](_0x573b20),this['outer']['update'](_0x5b08df);for(_0x42adac=0x0;_0x42adac<_0x573b20['byteLength'];_0x42adac++)_0x573b20[_0x42adac]=0x0;}},_0x261f01;}());function bufferFromSecret(_0x280760){var _0x2e3aa1=convertToBuffer(_0x280760);if(_0x2e3aa1['byteLength']>BLOCK_SIZE){var _0xb4b01c=new RawSha256();_0xb4b01c['update'](_0x2e3aa1),_0x2e3aa1=_0xb4b01c['digest']();}var _0x567702=new Uint8Array(BLOCK_SIZE);return _0x567702['set'](_0x2e3aa1),_0x567702;}var subtleCryptoMethods=['decrypt','digest','encrypt','exportKey','generateKey','importKey','sign','verify'];function supportsWebCrypto(_0x4e4398){return!(!supportsSecureRandom(_0x4e4398)||'object'!=typeof _0x4e4398['crypto']['subtle'])&&supportsSubtleCrypto(_0x4e4398['crypto']['subtle']);}function supportsSecureRandom(_0x3b7cff){return'object'==typeof _0x3b7cff&&'object'==typeof _0x3b7cff['crypto']&&'function'==typeof _0x3b7cff['crypto']['getRandomValues'];}function supportsSubtleCrypto(_0x3c051b){return _0x3c051b&&subtleCryptoMethods['every'](function(_0xfa9508){return'function'==typeof _0x3c051b[_0xfa9508];});}var Sha256=(function(){function _0xda3e50(_0x51b35f){supportsWebCrypto(locateWindow())?this['hash']=new Sha256$2(_0x51b35f):this['hash']=new Sha256$1(_0x51b35f);}return _0xda3e50['prototype']['update']=function(_0xec326d,_0x4f7a86){this['hash']['update'](convertToBuffer(_0xec326d));},_0xda3e50['prototype']['digest']=function(){return this['hash']['digest']();},_0xda3e50['prototype']['reset']=function(){this['hash']['reset']();},_0xda3e50;}());const createDefaultUserAgentProvider=({serviceId:_0xb3c26c,clientVersion:_0xfb546b})=>async _0x2f7b14=>{const _0x5b0db7='undefined'!=typeof window?window['navigator']:void 0x0,_0x543787=_0x5b0db7?.['userAgent']??'',_0x427ee7=_0x5b0db7?.['userAgentData']?.['platform']??fallback$1['os'](_0x543787)??'other',_0x43f7ca=_0x5b0db7?.['userAgentData']?.['brands']??[],_0x3c1066=_0x43f7ca[_0x43f7ca['length']-0x1],_0x32482b=_0x3c1066?.['brand']??fallback$1['browser'](_0x543787)??'unknown',_0x4e77fe=[['aws-sdk-js',_0xfb546b],['ua','2.1'],['os/'+_0x427ee7,undefined],['lang/js'],['md/browser',_0x32482b+'_'+(_0x3c1066?.['version']??'unknown')]];_0xb3c26c&&_0x4e77fe['push'](['api/'+_0xb3c26c,_0xfb546b]);const _0x41c4ed=await _0x2f7b14?.['userAgentAppId']?.();return _0x41c4ed&&_0x4e77fe['push'](['app/'+_0x41c4ed]),_0x4e77fe;},fallback$1={'os':_0x154cbb=>/iPhone|iPad|iPod/['test'](_0x154cbb)?'iOS':/Macintosh|Mac OS X/['test'](_0x154cbb)?'macOS':/Windows NT/['test'](_0x154cbb)?'Windows':/Android/['test'](_0x154cbb)?'Android':/Linux/['test'](_0x154cbb)?'Linux':void 0x0,'browser':_0x526cd2=>/EdgiOS|EdgA|Edg\//['test'](_0x526cd2)?'Microsoft\x20Edge':/Firefox\//['test'](_0x526cd2)?'Firefox':/Chrome\//['test'](_0x526cd2)?'Chrome':/Safari\//['test'](_0x526cd2)?'Safari':void 0x0},invalidProvider=_0x5ca9a3=>()=>Promise['reject'](_0x5ca9a3),DEFAULTS_MODE_OPTIONS=['in-region','cross-region','mobile','standard','legacy'],resolveDefaultsModeConfig=({defaultsMode:_0x5443bb}={})=>memoize$2(async()=>{const _0x3e5b01='function'==typeof _0x5443bb?await _0x5443bb():_0x5443bb;switch(_0x3e5b01?.['toLowerCase']()){case'auto':return Promise['resolve'](useMobileConfiguration()?'mobile':'standard');case'mobile':case'in-region':case'cross-region':case'standard':case'legacy':return Promise['resolve'](_0x3e5b01?.['toLocaleLowerCase']());case void 0x0:return Promise['resolve']('legacy');default:throw new Error('Invalid\x20parameter\x20for\x20\x22defaultsMode\x22,\x20expect\x20'+DEFAULTS_MODE_OPTIONS['join'](',\x20')+',\x20got\x20'+_0x3e5b01);}}),useMobileConfiguration=()=>{const _0x2838f7=window?.['navigator'];if(_0x2838f7?.['connection']){const {effectiveType:_0x44ab85,rtt:_0x4e8ac7,downlink:_0x589564}=_0x2838f7?.['connection'];if('string'==typeof _0x44ab85&&'4g'!==_0x44ab85||Number(_0x4e8ac7)>0x64||Number(_0x589564)<0xa)return!0x0;}return _0x2838f7?.['userAgentData']?.['mobile']||'number'==typeof _0x2838f7?.['maxTouchPoints']&&_0x2838f7?.['maxTouchPoints']>0x1;},isVirtualHostableS3Bucket=(_0x5e9bdb,_0x391008=!0x1)=>{if(_0x391008){for(const _0x3da844 of _0x5e9bdb['split']('.'))if(!isVirtualHostableS3Bucket(_0x3da844))return!0x1;return!0x0;}return!!isValidHostLabel(_0x5e9bdb)&&(!(_0x5e9bdb['length']<0x3||_0x5e9bdb['length']>0x3f)&&(_0x5e9bdb===_0x5e9bdb['toLowerCase']()&&!isIpAddress(_0x5e9bdb)));},ARN_DELIMITER=':',RESOURCE_DELIMITER='/',parseArn=_0x3d25a4=>{const _0xae1bc=_0x3d25a4['split'](ARN_DELIMITER);if(_0xae1bc['length']<0x6)return null;const [_0x1b7b05,_0x2f71c1,_0x308cb6,_0x1adfac,_0x5d1fbc,..._0x3b542b]=_0xae1bc;if('arn'!==_0x1b7b05||''===_0x2f71c1||''===_0x308cb6||''===_0x3b542b['join'](ARN_DELIMITER))return null;return{'partition':_0x2f71c1,'service':_0x308cb6,'region':_0x1adfac,'accountId':_0x5d1fbc,'resourceId':_0x3b542b['map'](_0x2627fb=>_0x2627fb['split'](RESOURCE_DELIMITER))['flat']()};};var partitions=[{'id':'aws','outputs':{'dnsSuffix':'amazonaws.com','dualStackDnsSuffix':'api.aws','implicitGlobalRegion':'us-east-1','name':'aws','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^(us|eu|ap|sa|ca|me|af|il|mx)\x5c-\x5cw+\x5c-\x5cd+$','regions':{'af-south-1':{'description':'Africa\x20(Cape\x20Town)'},'ap-east-1':{'description':'Asia\x20Pacific\x20(Hong\x20Kong)'},'ap-east-2':{'description':'Asia\x20Pacific\x20(Taipei)'},'ap-northeast-1':{'description':'Asia\x20Pacific\x20(Tokyo)'},'ap-northeast-2':{'description':'Asia\x20Pacific\x20(Seoul)'},'ap-northeast-3':{'description':'Asia\x20Pacific\x20(Osaka)'},'ap-south-1':{'description':'Asia\x20Pacific\x20(Mumbai)'},'ap-south-2':{'description':'Asia\x20Pacific\x20(Hyderabad)'},'ap-southeast-1':{'description':'Asia\x20Pacific\x20(Singapore)'},'ap-southeast-2':{'description':'Asia\x20Pacific\x20(Sydney)'},'ap-southeast-3':{'description':'Asia\x20Pacific\x20(Jakarta)'},'ap-southeast-4':{'description':'Asia\x20Pacific\x20(Melbourne)'},'ap-southeast-5':{'description':'Asia\x20Pacific\x20(Malaysia)'},'ap-southeast-6':{'description':'Asia\x20Pacific\x20(New\x20Zealand)'},'ap-southeast-7':{'description':'Asia\x20Pacific\x20(Thailand)'},'aws-global':{'description':'aws\x20global\x20region'},'ca-central-1':{'description':'Canada\x20(Central)'},'ca-west-1':{'description':'Canada\x20West\x20(Calgary)'},'eu-central-1':{'description':'Europe\x20(Frankfurt)'},'eu-central-2':{'description':'Europe\x20(Zurich)'},'eu-north-1':{'description':'Europe\x20(Stockholm)'},'eu-south-1':{'description':'Europe\x20(Milan)'},'eu-south-2':{'description':'Europe\x20(Spain)'},'eu-west-1':{'description':'Europe\x20(Ireland)'},'eu-west-2':{'description':'Europe\x20(London)'},'eu-west-3':{'description':'Europe\x20(Paris)'},'il-central-1':{'description':'Israel\x20(Tel\x20Aviv)'},'me-central-1':{'description':'Middle\x20East\x20(UAE)'},'me-south-1':{'description':'Middle\x20East\x20(Bahrain)'},'mx-central-1':{'description':'Mexico\x20(Central)'},'sa-east-1':{'description':'South\x20America\x20(Sao\x20Paulo)'},'us-east-1':{'description':'US\x20East\x20(N.\x20Virginia)'},'us-east-2':{'description':'US\x20East\x20(Ohio)'},'us-west-1':{'description':'US\x20West\x20(N.\x20California)'},'us-west-2':{'description':'US\x20West\x20(Oregon)'}}},{'id':'aws-cn','outputs':{'dnsSuffix':'amazonaws.com.cn','dualStackDnsSuffix':'api.amazonwebservices.com.cn','implicitGlobalRegion':'cn-northwest-1','name':'aws-cn','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^cn\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-cn-global':{'description':'aws-cn\x20global\x20region'},'cn-north-1':{'description':'China\x20(Beijing)'},'cn-northwest-1':{'description':'China\x20(Ningxia)'}}},{'id':'aws-eusc','outputs':{'dnsSuffix':'amazonaws.eu','dualStackDnsSuffix':'api.amazonwebservices.eu','implicitGlobalRegion':'eusc-de-east-1','name':'aws-eusc','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^eusc\x5c-(de)\x5c-\x5cw+\x5c-\x5cd+$','regions':{'eusc-de-east-1':{'description':'AWS\x20European\x20Sovereign\x20Cloud\x20(Germany)'}}},{'id':'aws-iso','outputs':{'dnsSuffix':'c2s.ic.gov','dualStackDnsSuffix':'api.aws.ic.gov','implicitGlobalRegion':'us-iso-east-1','name':'aws-iso','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^us\x5c-iso\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-iso-global':{'description':'aws-iso\x20global\x20region'},'us-iso-east-1':{'description':'US\x20ISO\x20East'},'us-iso-west-1':{'description':'US\x20ISO\x20WEST'}}},{'id':'aws-iso-b','outputs':{'dnsSuffix':'sc2s.sgov.gov','dualStackDnsSuffix':'api.aws.scloud','implicitGlobalRegion':'us-isob-east-1','name':'aws-iso-b','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^us\x5c-isob\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-iso-b-global':{'description':'aws-iso-b\x20global\x20region'},'us-isob-east-1':{'description':'US\x20ISOB\x20East\x20(Ohio)'},'us-isob-west-1':{'description':'US\x20ISOB\x20West'}}},{'id':'aws-iso-e','outputs':{'dnsSuffix':'cloud.adc-e.uk','dualStackDnsSuffix':'api.cloud-aws.adc-e.uk','implicitGlobalRegion':'eu-isoe-west-1','name':'aws-iso-e','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^eu\x5c-isoe\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-iso-e-global':{'description':'aws-iso-e\x20global\x20region'},'eu-isoe-west-1':{'description':'EU\x20ISOE\x20West'}}},{'id':'aws-iso-f','outputs':{'dnsSuffix':'csp.hci.ic.gov','dualStackDnsSuffix':'api.aws.hci.ic.gov','implicitGlobalRegion':'us-isof-south-1','name':'aws-iso-f','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^us\x5c-isof\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-iso-f-global':{'description':'aws-iso-f\x20global\x20region'},'us-isof-east-1':{'description':'US\x20ISOF\x20EAST'},'us-isof-south-1':{'description':'US\x20ISOF\x20SOUTH'}}},{'id':'aws-us-gov','outputs':{'dnsSuffix':'amazonaws.com','dualStackDnsSuffix':'api.aws','implicitGlobalRegion':'us-gov-west-1','name':'aws-us-gov','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^us\x5c-gov\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-us-gov-global':{'description':'aws-us-gov\x20global\x20region'},'us-gov-east-1':{'description':'AWS\x20GovCloud\x20(US-East)'},'us-gov-west-1':{'description':'AWS\x20GovCloud\x20(US-West)'}}}],partitionsInfo={'partitions':partitions};let selectedPartitionsInfo=partitionsInfo;const partition=_0x1d7902=>{const {partitions:_0x5dade7}=selectedPartitionsInfo;for(const _0xecafdc of _0x5dade7){const {regions:_0xa75686,outputs:_0x22196f}=_0xecafdc;for(const [_0x2338a7,_0x50f6cb]of Object['entries'](_0xa75686))if(_0x2338a7===_0x1d7902)return{..._0x22196f,..._0x50f6cb};}for(const _0x442aeb of _0x5dade7){const {regionRegex:_0x529ffc,outputs:_0x32b499}=_0x442aeb;if(new RegExp(_0x529ffc)['test'](_0x1d7902))return{..._0x32b499};}const _0x31fb72=_0x5dade7['find'](_0x2225b8=>'aws'===_0x2225b8['id']);if(!_0x31fb72)throw new Error('Provided\x20region\x20was\x20not\x20found\x20in\x20the\x20partition\x20array\x20or\x20regex,\x20and\x20default\x20partition\x20with\x20id\x20\x27aws\x27\x20doesn\x27t\x20exist.');return{..._0x31fb72['outputs']};},awsEndpointFunctions={'isVirtualHostableS3Bucket':isVirtualHostableS3Bucket,'parseArn':parseArn,'partition':partition};customEndpointFunctions['aws']=awsEndpointFunctions;const s$2='required',t$1='fn',u$1='argv',v='ref',a$2=!0x0,b='isSet',c$3='booleanEquals',d$1='error',e='endpoint',f$2='tree',g='PartitionResult',h={[s$2]:!0x1,'type':'string'},i$4={[s$2]:!0x0,'default':!0x1,'type':'boolean'},j={[v]:'Endpoint'},k={[t$1]:c$3,[u$1]:[{[v]:'UseFIPS'},!0x0]},l$2={[t$1]:c$3,[u$1]:[{[v]:'UseDualStack'},!0x0]},m={},n$1={[t$1]:'getAttr',[u$1]:[{[v]:g},'supportsFIPS']},o$1={[t$1]:c$3,[u$1]:[!0x0,{[t$1]:'getAttr',[u$1]:[{[v]:g},'supportsDualStack']}]},p$1=[k],q=[l$2],r=[{[v]:'Region'}],_data={'parameters':{'Region':h,'UseDualStack':i$4,'UseFIPS':i$4,'Endpoint':h},'rules':[{'conditions':[{[t$1]:b,[u$1]:[j]}],'rules':[{'conditions':p$1,'error':'Invalid\x20Configuration:\x20FIPS\x20and\x20custom\x20endpoint\x20are\x20not\x20supported','type':d$1},{'rules':[{'conditions':q,'error':'Invalid\x20Configuration:\x20Dualstack\x20and\x20custom\x20endpoint\x20are\x20not\x20supported','type':d$1},{'endpoint':{'url':j,'properties':m,'headers':m},'type':e}],'type':f$2}],'type':f$2},{'rules':[{'conditions':[{[t$1]:b,[u$1]:r}],'rules':[{'conditions':[{[t$1]:'aws.partition',[u$1]:r,'assign':g}],'rules':[{'conditions':[k,l$2],'rules':[{'conditions':[{[t$1]:c$3,[u$1]:[a$2,n$1]},o$1],'rules':[{'rules':[{'endpoint':{'url':'https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}','properties':m,'headers':m},'type':e}],'type':f$2}],'type':f$2},{'error':'FIPS\x20and\x20DualStack\x20are\x20enabled,\x20but\x20this\x20partition\x20does\x20not\x20support\x20one\x20or\x20both','type':d$1}],'type':f$2},{'conditions':p$1,'rules':[{'conditions':[{[t$1]:c$3,[u$1]:[n$1,a$2]}],'rules':[{'rules':[{'endpoint':{'url':'https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}','properties':m,'headers':m},'type':e}],'type':f$2}],'type':f$2},{'error':'FIPS\x20is\x20enabled\x20but\x20this\x20partition\x20does\x20not\x20support\x20FIPS','type':d$1}],'type':f$2},{'conditions':q,'rules':[{'conditions':[o$1],'rules':[{'rules':[{'endpoint':{'url':'https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}','properties':m,'headers':m},'type':e}],'type':f$2}],'type':f$2},{'error':'DualStack\x20is\x20enabled\x20but\x20this\x20partition\x20does\x20not\x20support\x20DualStack','type':d$1}],'type':f$2},{'rules':[{'endpoint':{'url':'https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}','properties':m,'headers':m},'type':e}],'type':f$2}],'type':f$2}],'type':f$2},{'error':'Invalid\x20Configuration:\x20Missing\x20Region','type':d$1}],'type':f$2}]},ruleSet=_data,cache$2=new EndpointCache({'size':0x32,'params':['Endpoint','Region','UseDualStack','UseFIPS']}),defaultEndpointResolver=(_0x471450,_0x27a62f={})=>cache$2['get'](_0x471450,()=>resolveEndpoint(ruleSet,{'endpointParams':_0x471450,'logger':_0x27a62f['logger']}));customEndpointFunctions['aws']=awsEndpointFunctions;class BedrockRuntimeServiceException extends ServiceException{constructor(_0x459252){super(_0x459252),Object['setPrototypeOf'](this,BedrockRuntimeServiceException['prototype']);}}class AccessDeniedException extends BedrockRuntimeServiceException{['name']='AccessDeniedException';['$fault']='client';constructor(_0x6d0731){super({'name':'AccessDeniedException','$fault':'client',..._0x6d0731}),Object['setPrototypeOf'](this,AccessDeniedException['prototype']);}}class InternalServerException extends BedrockRuntimeServiceException{['name']='InternalServerException';['$fault']='server';constructor(_0x1221fd){super({'name':'InternalServerException','$fault':'server',..._0x1221fd}),Object['setPrototypeOf'](this,InternalServerException['prototype']);}}class ThrottlingException extends BedrockRuntimeServiceException{['name']='ThrottlingException';['$fault']='client';constructor(_0x19154f){super({'name':'ThrottlingException','$fault':'client',..._0x19154f}),Object['setPrototypeOf'](this,ThrottlingException['prototype']);}}class ValidationException extends BedrockRuntimeServiceException{['name']='ValidationException';['$fault']='client';constructor(_0x5366d7){super({'name':'ValidationException','$fault':'client',..._0x5366d7}),Object['setPrototypeOf'](this,ValidationException['prototype']);}}class ConflictException extends BedrockRuntimeServiceException{['name']='ConflictException';['$fault']='client';constructor(_0x15eb56){super({'name':'ConflictException','$fault':'client',..._0x15eb56}),Object['setPrototypeOf'](this,ConflictException['prototype']);}}class ResourceNotFoundException extends BedrockRuntimeServiceException{['name']='ResourceNotFoundException';['$fault']='client';constructor(_0xe4d45d){super({'name':'ResourceNotFoundException','$fault':'client',..._0xe4d45d}),Object['setPrototypeOf'](this,ResourceNotFoundException['prototype']);}}class ServiceQuotaExceededException extends BedrockRuntimeServiceException{['name']='ServiceQuotaExceededException';['$fault']='client';constructor(_0x1ddc98){super({'name':'ServiceQuotaExceededException','$fault':'client',..._0x1ddc98}),Object['setPrototypeOf'](this,ServiceQuotaExceededException['prototype']);}}class ServiceUnavailableException extends BedrockRuntimeServiceException{['name']='ServiceUnavailableException';['$fault']='server';constructor(_0x38c484){super({'name':'ServiceUnavailableException','$fault':'server',..._0x38c484}),Object['setPrototypeOf'](this,ServiceUnavailableException['prototype']);}}class ModelErrorException extends BedrockRuntimeServiceException{['name']='ModelErrorException';['$fault']='client';['originalStatusCode'];['resourceName'];constructor(_0x5461b8){super({'name':'ModelErrorException','$fault':'client',..._0x5461b8}),Object['setPrototypeOf'](this,ModelErrorException['prototype']),this['originalStatusCode']=_0x5461b8['originalStatusCode'],this['resourceName']=_0x5461b8['resourceName'];}}class ModelNotReadyException extends BedrockRuntimeServiceException{['name']='ModelNotReadyException';['$fault']='client';['$retryable']={};constructor(_0x2401d0){super({'name':'ModelNotReadyException','$fault':'client',..._0x2401d0}),Object['setPrototypeOf'](this,ModelNotReadyException['prototype']);}}class ModelTimeoutException extends BedrockRuntimeServiceException{['name']='ModelTimeoutException';['$fault']='client';constructor(_0x224bc0){super({'name':'ModelTimeoutException','$fault':'client',..._0x224bc0}),Object['setPrototypeOf'](this,ModelTimeoutException['prototype']);}}class ModelStreamErrorException extends BedrockRuntimeServiceException{['name']='ModelStreamErrorException';['$fault']='client';['originalStatusCode'];['originalMessage'];constructor(_0x50e7da){super({'name':'ModelStreamErrorException','$fault':'client',..._0x50e7da}),Object['setPrototypeOf'](this,ModelStreamErrorException['prototype']),this['originalStatusCode']=_0x50e7da['originalStatusCode'],this['originalMessage']=_0x50e7da['originalMessage'];}}const _A='Accept',_ADE='AccessDeniedException',_B='Body',_CE='ConflictException',_CT_='Content-Type',_IM='InvokeModel',_IMR='InvokeModelRequest',_IMRn='InvokeModelResponse',_IMWRS='InvokeModelWithResponseStream',_IMWRSR='InvokeModelWithResponseStreamRequest',_IMWRSRn='InvokeModelWithResponseStreamResponse',_ISE='InternalServerException',_MEE='ModelErrorException',_MNRE='ModelNotReadyException',_MSEE='ModelStreamErrorException',_MTE='ModelTimeoutException',_PB='PartBody',_PP='PayloadPart',_RNFE='ResourceNotFoundException',_RS='ResponseStream',_SQEE='ServiceQuotaExceededException',_SUE='ServiceUnavailableException',_TE='ThrottlingException',_VE='ValidationException',_XABA='X-Amzn-Bedrock-Accept',_XABCT='X-Amzn-Bedrock-Content-Type',_XABG='X-Amzn-Bedrock-GuardrailIdentifier',_XABG_='X-Amzn-Bedrock-GuardrailVersion',_XABPL='X-Amzn-Bedrock-PerformanceConfig-Latency',_XABST='X-Amzn-Bedrock-Service-Tier',_XABT='X-Amzn-Bedrock-Trace',_ac='accept',_b='bytes',_bo='body',_c='client',_cT='contentType',_ch='chunk',_e='error',_gIu='guardrailIdentifier',_gV='guardrailVersion',_h='http',_hE='httpError',_hH='httpHeader',_iSE='internalServerException',_m='message',_mI='modelId',_mSEE='modelStreamErrorException',_mTE='modelTimeoutException',_oM='originalMessage',_oSC='originalStatusCode',_pCL='performanceConfigLatency',_rN='resourceName',_s='smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime',_sTe='serviceTier',_sUE='serviceUnavailableException',_se='server',_stre='streaming',_tE='throttlingException',_tr='trace',_vE='validationException',n0='com.amazonaws.bedrockruntime',_s_registry=TypeRegistry['for'](_s);var BedrockRuntimeServiceException$=[-0x3,_s,'BedrockRuntimeServiceException',0x0,[],[]];_s_registry['registerError'](BedrockRuntimeServiceException$,BedrockRuntimeServiceException);const n0_registry=TypeRegistry['for'](n0);var AccessDeniedException$=[-0x3,n0,_ADE,{[_e]:_c,[_hE]:0x193},[_m],[0x0]];n0_registry['registerError'](AccessDeniedException$,AccessDeniedException);var ConflictException$=[-0x3,n0,_CE,{[_e]:_c,[_hE]:0x190},[_m],[0x0]];n0_registry['registerError'](ConflictException$,ConflictException);var InternalServerException$=[-0x3,n0,_ISE,{[_e]:_se,[_hE]:0x1f4},[_m],[0x0]];n0_registry['registerError'](InternalServerException$,InternalServerException);var ModelErrorException$=[-0x3,n0,_MEE,{[_e]:_c,[_hE]:0x1a8},[_m,_oSC,_rN],[0x0,0x1,0x0]];n0_registry['registerError'](ModelErrorException$,ModelErrorException);var ModelNotReadyException$=[-0x3,n0,_MNRE,{[_e]:_c,[_hE]:0x1ad},[_m],[0x0]];n0_registry['registerError'](ModelNotReadyException$,ModelNotReadyException);var ModelStreamErrorException$=[-0x3,n0,_MSEE,{[_e]:_c,[_hE]:0x1a8},[_m,_oSC,_oM],[0x0,0x1,0x0]];n0_registry['registerError'](ModelStreamErrorException$,ModelStreamErrorException);var ModelTimeoutException$=[-0x3,n0,_MTE,{[_e]:_c,[_hE]:0x198},[_m],[0x0]];n0_registry['registerError'](ModelTimeoutException$,ModelTimeoutException);var ResourceNotFoundException$=[-0x3,n0,_RNFE,{[_e]:_c,[_hE]:0x194},[_m],[0x0]];n0_registry['registerError'](ResourceNotFoundException$,ResourceNotFoundException);var ServiceQuotaExceededException$=[-0x3,n0,_SQEE,{[_e]:_c,[_hE]:0x190},[_m],[0x0]];n0_registry['registerError'](ServiceQuotaExceededException$,ServiceQuotaExceededException);var ServiceUnavailableException$=[-0x3,n0,_SUE,{[_e]:_se,[_hE]:0x1f7},[_m],[0x0]];n0_registry['registerError'](ServiceUnavailableException$,ServiceUnavailableException);var ThrottlingException$=[-0x3,n0,_TE,{[_e]:_c,[_hE]:0x1ad},[_m],[0x0]];n0_registry['registerError'](ThrottlingException$,ThrottlingException);var ValidationException$=[-0x3,n0,_VE,{[_e]:_c,[_hE]:0x190},[_m],[0x0]];n0_registry['registerError'](ValidationException$,ValidationException);const errorTypeRegistries=[_s_registry,n0_registry];var Body=[0x0,n0,_B,0x8,0x15],PartBody=[0x0,n0,_PB,0x8,0x15],InvokeModelRequest$=[0x3,n0,_IMR,0x0,[_mI,_bo,_cT,_ac,_tr,_gIu,_gV,_pCL,_sTe],[[0x0,0x1],[()=>Body,0x10],[0x0,{[_hH]:_CT_}],[0x0,{[_hH]:_A}],[0x0,{[_hH]:_XABT}],[0x0,{[_hH]:_XABG}],[0x0,{[_hH]:_XABG_}],[0x0,{[_hH]:_XABPL}],[0x0,{[_hH]:_XABST}]],0x1],InvokeModelResponse$=[0x3,n0,_IMRn,0x0,[_bo,_cT,_pCL,_sTe],[[()=>Body,0x10],[0x0,{[_hH]:_CT_}],[0x0,{[_hH]:_XABPL}],[0x0,{[_hH]:_XABST}]],0x2],InvokeModelWithResponseStreamRequest$=[0x3,n0,_IMWRSR,0x0,[_mI,_bo,_cT,_ac,_tr,_gIu,_gV,_pCL,_sTe],[[0x0,0x1],[()=>Body,0x10],[0x0,{[_hH]:_CT_}],[0x0,{[_hH]:_XABA}],[0x0,{[_hH]:_XABT}],[0x0,{[_hH]:_XABG}],[0x0,{[_hH]:_XABG_}],[0x0,{[_hH]:_XABPL}],[0x0,{[_hH]:_XABST}]],0x1],InvokeModelWithResponseStreamResponse$=[0x3,n0,_IMWRSRn,0x0,[_bo,_cT,_pCL,_sTe],[[()=>ResponseStream$,0x10],[0x0,{[_hH]:_XABCT}],[0x0,{[_hH]:_XABPL}],[0x0,{[_hH]:_XABST}]],0x2],PayloadPart$=[0x3,n0,_PP,0x8,[_b],[[()=>PartBody,0x0]]],ResponseStream$=[0x4,n0,_RS,{[_stre]:0x1},[_ch,_iSE,_mSEE,_vE,_tE,_mTE,_sUE],[[()=>PayloadPart$,0x0],[()=>InternalServerException$,0x0],[()=>ModelStreamErrorException$,0x0],[()=>ValidationException$,0x0],[()=>ThrottlingException$,0x0],[()=>ModelTimeoutException$,0x0],[()=>ServiceUnavailableException$,0x0]]],InvokeModel$=[0x9,n0,_IM,{[_h]:['POST','/model/{modelId}/invoke',0xc8]},()=>InvokeModelRequest$,()=>InvokeModelResponse$],InvokeModelWithResponseStream$=[0x9,n0,_IMWRS,{[_h]:['POST','/model/{modelId}/invoke-with-response-stream',0xc8]},()=>InvokeModelWithResponseStreamRequest$,()=>InvokeModelWithResponseStreamResponse$];const getRuntimeConfig$1=_0x1559f2=>({'apiVersion':'2023-09-30','base64Decoder':_0x1559f2?.['base64Decoder']??fromBase64,'base64Encoder':_0x1559f2?.['base64Encoder']??toBase64,'disableHostPrefix':_0x1559f2?.['disableHostPrefix']??!0x1,'endpointProvider':_0x1559f2?.['endpointProvider']??defaultEndpointResolver,'extensions':_0x1559f2?.['extensions']??[],'httpAuthSchemeProvider':_0x1559f2?.['httpAuthSchemeProvider']??defaultBedrockRuntimeHttpAuthSchemeProvider,'httpAuthSchemes':_0x1559f2?.['httpAuthSchemes']??[{'schemeId':'aws.auth#sigv4','identityProvider':_0x33a1a0=>_0x33a1a0['getIdentityProvider']('aws.auth#sigv4'),'signer':new AwsSdkSigV4Signer()},{'schemeId':'smithy.api#httpBearerAuth','identityProvider':_0x34bb78=>_0x34bb78['getIdentityProvider']('smithy.api#httpBearerAuth'),'signer':new HttpBearerAuthSigner()}],'logger':_0x1559f2?.['logger']??new NoOpLogger(),'protocol':_0x1559f2?.['protocol']??AwsRestJsonProtocol,'protocolSettings':_0x1559f2?.['protocolSettings']??{'defaultNamespace':'com.amazonaws.bedrockruntime','errorTypeRegistries':errorTypeRegistries,'version':'2023-09-30','serviceTarget':'AmazonBedrockFrontendService'},'serviceId':_0x1559f2?.['serviceId']??'Bedrock\x20Runtime','urlParser':_0x1559f2?.['urlParser']??parseUrl,'utf8Decoder':_0x1559f2?.['utf8Decoder']??fromUtf8$2,'utf8Encoder':_0x1559f2?.['utf8Encoder']??toUtf8}),getRuntimeConfig=_0x23a95a=>{const _0x476a25=resolveDefaultsModeConfig(_0x23a95a),_0x4b6964=()=>_0x476a25()['then'](loadConfigsForDefaultMode),_0x1324f0=getRuntimeConfig$1(_0x23a95a);return{..._0x1324f0,..._0x23a95a,'runtime':'browser','defaultsMode':_0x476a25,'bodyLengthChecker':_0x23a95a?.['bodyLengthChecker']??calculateBodyLength,'credentialDefaultProvider':_0x23a95a?.['credentialDefaultProvider']??(_0x49345e=>()=>Promise['reject'](new Error('Credential\x20is\x20missing'))),'defaultUserAgentProvider':_0x23a95a?.['defaultUserAgentProvider']??createDefaultUserAgentProvider({'serviceId':_0x1324f0['serviceId'],'clientVersion':packageInfo['version']}),'eventStreamPayloadHandlerProvider':_0x23a95a?.['eventStreamPayloadHandlerProvider']??eventStreamPayloadHandlerProvider,'eventStreamSerdeProvider':_0x23a95a?.['eventStreamSerdeProvider']??eventStreamSerdeProvider,'maxAttempts':_0x23a95a?.['maxAttempts']??DEFAULT_MAX_ATTEMPTS,'region':_0x23a95a?.['region']??invalidProvider('Region\x20is\x20missing'),'requestHandler':WebSocketFetchHandler['create'](_0x23a95a?.['requestHandler']??_0x4b6964,FetchHttpHandler['create'](_0x4b6964)),'retryMode':_0x23a95a?.['retryMode']??(async()=>(await _0x4b6964())['retryMode']||DEFAULT_RETRY_MODE),'sha256':_0x23a95a?.['sha256']??Sha256,'streamCollector':_0x23a95a?.['streamCollector']??streamCollector,'useDualstackEndpoint':_0x23a95a?.['useDualstackEndpoint']??(()=>Promise['resolve'](DEFAULT_USE_DUALSTACK_ENDPOINT)),'useFipsEndpoint':_0x23a95a?.['useFipsEndpoint']??(()=>Promise['resolve'](DEFAULT_USE_FIPS_ENDPOINT))};},getAwsRegionExtensionConfiguration=_0x57ba76=>({'setRegion'(_0x39acb4){_0x57ba76['region']=_0x39acb4;},'region':()=>_0x57ba76['region']}),resolveAwsRegionExtensionConfiguration=_0x413d32=>({'region':_0x413d32['region']()}),getHttpAuthExtensionConfiguration=_0x3b2e7a=>{const _0x1e95c2=_0x3b2e7a['httpAuthSchemes'];let _0x116f4b=_0x3b2e7a['httpAuthSchemeProvider'],_0x1fca63=_0x3b2e7a['credentials'],_0xa74e6b=_0x3b2e7a['token'];return{'setHttpAuthScheme'(_0x4b1b68){const _0x398862=_0x1e95c2['findIndex'](_0x13f483=>_0x13f483['schemeId']===_0x4b1b68['schemeId']);-0x1===_0x398862?_0x1e95c2['push'](_0x4b1b68):_0x1e95c2['splice'](_0x398862,0x1,_0x4b1b68);},'httpAuthSchemes':()=>_0x1e95c2,'setHttpAuthSchemeProvider'(_0x15848c){_0x116f4b=_0x15848c;},'httpAuthSchemeProvider':()=>_0x116f4b,'setCredentials'(_0x4cfab6){_0x1fca63=_0x4cfab6;},'credentials':()=>_0x1fca63,'setToken'(_0xb1e923){_0xa74e6b=_0xb1e923;},'token':()=>_0xa74e6b};},resolveHttpAuthRuntimeConfig=_0x18b690=>({'httpAuthSchemes':_0x18b690['httpAuthSchemes'](),'httpAuthSchemeProvider':_0x18b690['httpAuthSchemeProvider'](),'credentials':_0x18b690['credentials'](),'token':_0x18b690['token']()}),resolveRuntimeExtensions=(_0x3b3040,_0x49ad12)=>{const _0x4cf777=Object['assign'](getAwsRegionExtensionConfiguration(_0x3b3040),getDefaultExtensionConfiguration(_0x3b3040),getHttpHandlerExtensionConfiguration(_0x3b3040),getHttpAuthExtensionConfiguration(_0x3b3040));return _0x49ad12['forEach'](_0x11f3e2=>_0x11f3e2['configure'](_0x4cf777)),Object['assign'](_0x3b3040,resolveAwsRegionExtensionConfiguration(_0x4cf777),resolveDefaultRuntimeConfig(_0x4cf777),resolveHttpHandlerRuntimeConfig(_0x4cf777),resolveHttpAuthRuntimeConfig(_0x4cf777));};class BedrockRuntimeClient extends Client{['config'];constructor(...[_0x5e8b7f]){const _0x22ab25=getRuntimeConfig(_0x5e8b7f||{});super(_0x22ab25),this['initConfig']=_0x22ab25;const _0x40adb4=resolveUserAgentConfig(resolveClientEndpointParameters(_0x22ab25)),_0x4381e8=resolveRetryConfig(_0x40adb4),_0x1f7b2a=resolveHostHeaderConfig(resolveRegionConfig(_0x4381e8)),_0x2adb03=resolveEndpointConfig(_0x1f7b2a),_0x2078d0=resolveEventStreamSerdeConfig(_0x2adb03),_0x228d4b=resolveEventStreamConfig(resolveHttpAuthSchemeConfig(_0x2078d0)),_0x17ea95=resolveWebSocketConfig(_0x228d4b),_0x3e16ba=resolveRuntimeExtensions(_0x17ea95,_0x5e8b7f?.['extensions']||[]);this['config']=_0x3e16ba,this['middlewareStack']['use'](getSchemaSerdePlugin(this['config'])),this['middlewareStack']['use'](getUserAgentPlugin(this['config'])),this['middlewareStack']['use'](getRetryPlugin(this['config'])),this['middlewareStack']['use'](getContentLengthPlugin(this['config'])),this['middlewareStack']['use'](getHostHeaderPlugin(this['config'])),this['middlewareStack']['use'](getLoggerPlugin(this['config'])),this['middlewareStack']['use'](getRecursionDetectionPlugin(this['config'])),this['middlewareStack']['use'](getHttpAuthSchemeEndpointRuleSetPlugin(this['config'],{'httpAuthSchemeParametersProvider':defaultBedrockRuntimeHttpAuthSchemeParametersProvider,'identityProviderConfigProvider':async _0x2136c1=>new DefaultIdentityProviderConfig({'aws.auth#sigv4':_0x2136c1['credentials'],'smithy.api#httpBearerAuth':_0x2136c1['token']})})),this['middlewareStack']['use'](getHttpSigningPlugin(this['config']));}['destroy'](){super['destroy']();}}class InvokeModelCommand extends Command['classBuilder']()['ep'](commonParams)['m'](function(_0x5645d1,_0x2a2dc6,_0x52806c,_0x29e90d){return[getEndpointPlugin(_0x52806c,_0x5645d1['getEndpointParameterInstructions']())];})['s']('AmazonBedrockFrontendService','InvokeModel',{})['n']('BedrockRuntimeClient','InvokeModelCommand')['sc'](InvokeModel$)['build'](){}class InvokeModelWithResponseStreamCommand extends Command['classBuilder']()['ep'](commonParams)['m'](function(_0x558676,_0x14b6c4,_0x456a33,_0x54c6b2){return[getEndpointPlugin(_0x456a33,_0x558676['getEndpointParameterInstructions']())];})['s']('AmazonBedrockFrontendService','InvokeModelWithResponseStream',{'eventStream':{'output':!0x0}})['n']('BedrockRuntimeClient','InvokeModelWithResponseStreamCommand')['sc'](InvokeModelWithResponseStream$)['build'](){}class AWSTextAdapter extends AITextAdapter{['_apiUrl'];['_requestHeaders'];['_bedrockClientConfig'];['_requestParameters'];static get['pluginName'](){return'AWSTextAdapter';}constructor(_0x4ec8e4){super(_0x4ec8e4),_0x4ec8e4['config']['get']('ai.assistant.adapter.aws.requestParameters')||_0x4ec8e4['config']['define']('ai.assistant.adapter.aws.requestParameters',{'model':'anthropic.claude-v2','max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':'bedrock-2023-05-31','stream':!0x0}),this['_apiUrl']=_0x4ec8e4['config']['get']('ai.assistant.adapter.aws.apiUrl'),this['_bedrockClientConfig']=_0x4ec8e4['config']['get']('ai.assistant.adapter.aws.bedrockClientConfig'),this['_requestHeaders']=_0x4ec8e4['config']['get']('ai.assistant.adapter.aws.requestHeaders'),this['_requestParameters']=_0x4ec8e4['config']['get']('ai.assistant.adapter.aws.requestParameters');}async['sendRequest']({query:_0x3fe2a3,context:_0x4a13ed,onData:_0x5c009a,actionId:_0x1c2999}){const {model:_0x17f540,stream:_0x514301,..._0x3410ea}=await this['_prepareRequestParameters'](this['_requestParameters'],_0x1c2999),_0x3f9003={'prompt':await this['preparePrompt'](_0x3fe2a3,_0x4a13ed,_0x17f540,_0x1c2999),..._0x3410ea};this['_apiUrl']?await this['_processProxyRequest'](_0x3f9003,_0x17f540,_0x514301,_0x5c009a,_0x1c2999):await this['_processAWSRequest'](_0x3f9003,_0x17f540,_0x514301,_0x5c009a);}async['preparePrompt'](_0x3961a4,_0x1bd2f8,_0x16bef0,_0x3303a5){let _0x1e082d,_0x6af431;return _0x1bd2f8?(_0x1e082d='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.',_0x6af431='Instruction:\x0a'+_0x3961a4+'\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'+_0x1bd2f8):(_0x1e082d='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.',_0x6af431=_0x3961a4),'meta.llama'==this['getModelFamily'](_0x16bef0)?'<<SYS>>\x0a'+_0x1e082d+'\x0a<</SYS>>\x0a[INST]\x0a'+_0x6af431+'\x0a[/INST]':'Human:\x0a'+_0x1e082d+'\x0a'+_0x6af431+'\x0a\x0aAssistant:';}['getModelFamily'](_0x2c932c){if(/^anthropic\.claude/['test'](_0x2c932c))return'anthropic.claude';if(/^ai21\.j2/['test'](_0x2c932c))return'ai21.j2';if(/^cohere\.command/['test'](_0x2c932c))return'cohere.command';if(/^meta\.llama/['test'](_0x2c932c))return'meta.llama';throw new AIRequestError(getTranslation$j(this['editor']['locale'],'AI_ERROR_UNSUPPORTED_MODEL',_0x2c932c));}async['_processProxyRequest'](_0x4d2dad,_0x5a78e4,_0x394494,_0x13a6f7,_0x24ab7b){const _0x221f0e={'method':'POST','headers':await this['_prepareRequestHeaders'](this['_requestHeaders'],_0x24ab7b),'body':JSON['stringify']({..._0x4d2dad,'model':_0x5a78e4,'stream':_0x394494}),'signal':this['abortController']['signal']},_0xd07a47=await fetch(this['_apiUrl'],_0x221f0e);_0x394494?await this['_readStreamableResponse'](_0xd07a47,_0x5a78e4,_0x13a6f7):await this['_readStaticResponse'](_0xd07a47,_0x5a78e4,_0x13a6f7);}async['_processAWSRequest'](_0x44b19b,_0x4e9ed4,_0x43f987,_0x1e8cf5){const _0x4ccf26=new BedrockRuntimeClient(this['_bedrockClientConfig']),_0x39688e={'body':JSON['stringify'](_0x44b19b),'contentType':'application/json','accept':'application/json','modelId':_0x4e9ed4};let _0xb983c6;if(_0x43f987){const _0x50a348=new InvokeModelWithResponseStreamCommand(_0x39688e);_0xb983c6=await _0x4ccf26['send'](_0x50a348,{'abortSignal':this['abortController']['signal']}),await this['_readAsyncIterableResponse'](_0xb983c6,_0x4e9ed4,_0x1e8cf5);}else{const _0xbc0e00=new InvokeModelCommand(_0x39688e);_0xb983c6=await _0x4ccf26['send'](_0xbc0e00,{'abortSignal':this['abortController']['signal']}),await this['_readStaticResponse'](_0xb983c6,_0x4e9ed4,_0x1e8cf5);}}async['_readAsyncIterableResponse'](_0x5e50e6,_0x5e0e11,_0x174ef4){const _0x340cf1=_0x5e50e6['body'],_0x5d3544=new TextDecoder('utf-8');let _0x4bee10='';for await(const _0x43030b of _0x340cf1)if(_0x43030b['chunk']){const _0x1ed5a3=_0x5d3544['decode'](_0x43030b['chunk']['bytes']),_0x4c6fef=JSON['parse'](_0x1ed5a3);_0x4bee10+=this['_getGeneratedText'](_0x4c6fef,_0x5e0e11),_0x174ef4(_0x4bee10);}return Promise['resolve']();}async['_readStreamableResponse'](_0x521231,_0x2b4107,_0x4cea7a){const _0x45e631=_0x521231['body'],_0x10e139=new TextDecoder('utf-8'),_0x1d1532=_0x45e631['getReader']();let _0x5dc766='',_0x1ea2f0='',_0x235709=!0x1;for(;!_0x235709;){const {done:_0x3f78ee,value:_0x7a8aeb}=await _0x1d1532['read']();if(_0x235709=_0x3f78ee,_0x235709)break;const _0x2d6dcf=(_0x5dc766+_0x10e139['decode'](_0x7a8aeb))['split']('\x0a')['map'](_0x36356d=>{try{return _0x5dc766='',JSON['parse'](_0x36356d);}catch{return _0x5dc766=_0x36356d,null;}})['filter'](_0x1e067f=>null!==_0x1e067f);if(_0x2d6dcf['length']){const _0x3aed38=_0x2d6dcf['map'](_0x4617f5=>this['_getGeneratedText'](_0x4617f5,_0x2b4107))['join']('');_0x1ea2f0+=_0x3aed38,_0x4cea7a(_0x1ea2f0);}}return Promise['resolve']();}async['_readStaticResponse'](_0x51d7e6,_0x47fba3,_0x2365f){let _0x1356cd;return _0x1356cd=_0x51d7e6 instanceof Response?await _0x51d7e6['json']():JSON['parse'](new TextDecoder('utf-8')['decode'](_0x51d7e6['body'])),(_0x2365f(this['_getGeneratedText'](_0x1356cd,_0x47fba3)),Promise['resolve']());}['_getGeneratedText'](_0x353fb8,_0x11fa53){switch(this['getModelFamily'](_0x11fa53)){case'anthropic.claude':return _0x353fb8['completion'];case'ai21.j2':return _0x353fb8['completions'][0x0]['data']['text'];case'cohere.command':return _0x353fb8['generations'][0x0]['text'];case'meta.llama':return _0x353fb8['generation'];}}}class TabButtonView extends ButtonView{constructor(_0x22c54a,_0x1ed99f={}){super(_0x22c54a),this['isToggleable']=!0x0,this['set']('side',_0x1ed99f['side']||'top');const _0x33b898=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-tab-button',...toArray$1(_0x1ed99f['class']||[]),_0x33b898['to']('side',_0x4dd2d8=>'ck-tab-button_'+_0x4dd2d8),_0x33b898['to']('class')]}});}['show'](){this['set']('isVisible',!0x0);}['hide'](){this['set']('isVisible',!0x1);}}class TabPanelView extends View{['children'];constructor(_0x5540ae,_0x13a03b={}){super(_0x5540ae);const _0x5dcd91=this['bindTemplate'];this['set']('isVisible',!0x1),this['set']('class',''),this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-tab-panel',...toArray$1(_0x13a03b['class']||[]),_0x5dcd91['to']('class'),_0x5dcd91['if']('isVisible','ck-hidden',_0x5eed49=>!_0x5eed49)]},'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(_0x22ee70,_0x4c88ae={}){super(_0x22ee70),this['set']('class',void 0x0),this['set']('activeTab',null),this['set']('side',_0x4c88ae['side']||'top'),this['set']('isMaximized',!0x1);const _0x2628f7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-tabs',...toArray$1(_0x4c88ae['class']||[]),_0x2628f7['to']('side',_0x3dab37=>'ck-tabs_'+_0x3dab37),_0x2628f7['to']('class'),_0x2628f7['to']('isMaximized',_0x26a2c3=>_0x26a2c3?'ck-ai-tabs_maximized':'')],'tabindex':'0'},'children':[{'tag':'div','attributes':{'class':['ck','ck-tabs__buttons-container',_0x2628f7['to']('side',_0x161a25=>'ck-tabs__buttons-container_'+_0x161a25)]},'children':this['buttonViews']},{'tag':'div','attributes':{'class':['ck','ck-tabs__panels-container',_0x2628f7['to']('side',_0x449376=>'ck-tabs__panels-container_'+_0x449376)]},'children':this['panelViews']},...toArray$1(_0x4c88ae['children']||[])]});}['getTabIds'](){return[...this['_tabs']['keys']()];}['getTab'](_0x27346b){const _0x152809=this['_tabs']['get'](_0x27346b);return _0x152809||null;}['addTab'](_0x2de4ad){const _0x13b7b9=this['_setupButton']({'id':_0x2de4ad['id'],'label':_0x2de4ad['buttonLabel'],'icon':_0x2de4ad['buttonIcon'],'order':_0x2de4ad['order']}),_0xf818a0=new TabPanelView(this['locale']);return _0xf818a0['render'](),_0x2de4ad['content']&&_0xf818a0['children']['add'](_0x2de4ad['content']),this['panelViews']['add'](_0xf818a0),this['_tabs']['set'](_0x2de4ad['id'],{'button':_0x13b7b9,'panel':_0xf818a0,'order':void 0x0!==_0x2de4ad['order']?_0x2de4ad['order']:null}),this['fire']('addTab:'+_0x2de4ad['id'],{'id':_0x2de4ad['id'],'button':_0x13b7b9,'panel':_0xf818a0}),null===this['activeTab']?this['activateTab'](_0x2de4ad['id']):this['_hidePanel'](_0x2de4ad['id']),{'button':_0x13b7b9,'panel':_0xf818a0};}['activateTab'](_0x2ef018){if(null!==_0x2ef018&&!this['getTab'](_0x2ef018))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x2ef018});this['activeTab']!==_0x2ef018&&(this['activeTab']&&this['_hidePanel'](this['activeTab']),this['activeTab']=_0x2ef018,_0x2ef018&&this['_showPanel'](_0x2ef018),this['fire']('activateTab:'+_0x2ef018,_0x2ef018));}['showTab'](_0x1e2187){if(!this['getTab'](_0x1e2187))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x1e2187});this['_showPanel'](_0x1e2187),this['_showButton'](_0x1e2187),this['fire']('show:'+_0x1e2187,_0x1e2187);}['hideTab'](_0x52fcde){if(!this['getTab'](_0x52fcde))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x52fcde});const _0x39d3b8=this['activeTab'];this['_hidePanel'](_0x52fcde),this['_hideButton'](_0x52fcde);const _0x180303=this['getTabIds']();_0x39d3b8===_0x52fcde&&_0x180303['length']>0x1&&this['activateTab'](_0x180303['find'](_0x8d94af=>_0x8d94af!==_0x52fcde)),this['fire']('hide:'+_0x52fcde,_0x52fcde);}['_getPanel'](_0x3e8d3d){const _0x416e98=this['_tabs']['get'](_0x3e8d3d);return _0x416e98?_0x416e98['panel']:null;}['_showPanel'](_0x195c3a){null!==this['activeTab']&&this['activeTab']!==_0x195c3a||this['_getPanel'](_0x195c3a)['show']();}['_hidePanel'](_0x4d0239){const _0x573c87=this['_getPanel'](_0x4d0239);_0x573c87['isVisible']&&(this['activeTab']===_0x4d0239&&(this['activeTab']=null),_0x573c87['hide']());}['_getButton'](_0x25b6de){const _0x503f81=this['_tabs']['get'](_0x25b6de);return _0x503f81?_0x503f81['button']:null;}['_showButton'](_0x4a01f9){this['_getButton'](_0x4a01f9)['show']();}['_hideButton'](_0x38002f){this['_getButton'](_0x38002f)['hide']();}['_setupButton'](_0x505c45){const _0x304b5b=new TabButtonView(this['locale'],{'side':this['side']}),_0x18f84e=this['buttonViews'];if(_0x304b5b['set']({'label':_0x505c45['label'],'icon':_0x505c45['icon'],'tooltip':!0x0,'withText':!0x0}),_0x304b5b['bind']('isOn')['to'](this,'activeTab',_0x237606=>_0x237606===_0x505c45['id']),_0x304b5b['bind']('side')['to'](this,'side'),_0x505c45['order']){const _0x2c0b53=[...this['_tabs']]['reduce']((_0x3ddd7b,_0xe81f1e)=>{const _0x46501c=_0xe81f1e[0x0],{order:_0xb1e7a3}=_0xe81f1e[0x1];return!_0xb1e7a3||_0xb1e7a3>_0x505c45['order']?_0x3ddd7b:_0xb1e7a3>=_0x3ddd7b['order']?{'id':_0x46501c,'order':_0xb1e7a3}:_0x3ddd7b;},{'id':'','order':0x0}),_0x1792eb=_0x18f84e['getIndex'](this['_getButton'](_0x2c0b53['id']));_0x18f84e['add'](_0x304b5b,_0x1792eb+0x1);}else _0x18f84e['add'](_0x304b5b);return _0x304b5b['on']('execute',()=>{this['activateTab'](_0x505c45['id']);}),_0x304b5b;}}const AI_TABS_VIEW_TYPES=['overlay','sidebar','custom'],AI_TABS_VIEW_SIDES=['left','right'];class AITabsMainView extends AITabsView{constructor(_0x913bea,_0x5e266c={}){super(_0x913bea,_0x5e266c),this['set']('type',_0x5e266c['type']||'sidebar'),this['set']('side',_0x5e266c['side']||'right'),this['set']('isVisible',_0x5e266c['visibleByDefault']??!0x0);const _0x46d328=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-tabs',_0x46d328['if']('type','ck-ai-tabs__overlay',_0x465f3e=>'overlay'===_0x465f3e),_0x46d328['if']('type','ck-ai-tabs__sidebar',_0x94b099=>'sidebar'===_0x94b099),_0x46d328['if']('isVisible','ck-hidden',_0x2aa094=>!_0x2aa094)]}}),this['buttonViews']['on']('add',(_0x42fe10,_0x25b51b)=>{_0x25b51b['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(_0x1055e1){super(_0x1055e1);const _0x34638f=this['context']['config']['get']('ai.container');if(this['set']('side','right'),!_0x34638f)throw new CKEditorError('ai-tabs-configuration-not-found');if(void 0x0!==_0x34638f['showResizeButton']&&(this['showResizeButton']=_0x34638f['showResizeButton']),'sidebar'!==_0x34638f['type']&&'overlay'!==_0x34638f['type']||_0x34638f['side']&&(this['side']=_0x34638f['side']),'sidebar'===_0x34638f['type']){if(this['container']=_0x34638f['element'],this['set']('type','sidebar'),!this['container'])throw new CKEditorError('ai-tabs-sidebar-container-element-not-found');}else'overlay'===_0x34638f['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===_0x34638f['visibleByDefault']||_0x34638f['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'](_0x556092){if(_0x556092&&this['type']!==_0x556092){if(!AI_TABS_VIEW_TYPES['includes'](_0x556092))throw new CKEditorError('ai-tabs-unsupported-ui-type');this['type']=_0x556092;}}['switchSide'](_0x45b380){if(_0x45b380&&this['side']!==_0x45b380){if(!AI_TABS_VIEW_SIDES['includes'](_0x45b380))throw new CKEditorError('ai-tabs-unsupported-ui-side');this['side']=_0x45b380;}}['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(_0xa06df3,_0x5d41ef){super(_0xa06df3),this['name']='ParseError',this['type']=_0x5d41ef['type'],this['field']=_0x5d41ef['field'],this['value']=_0x5d41ef['value'],this['line']=_0x5d41ef['line'];}}function noop$1(_0x34831b){}function createParser(_0x27257d){if('function'==typeof _0x27257d)throw new TypeError('`callbacks`\x20must\x20be\x20an\x20object,\x20got\x20a\x20function\x20instead.\x20Did\x20you\x20mean\x20`{onEvent:\x20fn}`?');const {onEvent:_0x4ff9e1=noop$1,onError:_0x5f0869=noop$1,onRetry:_0x28552c=noop$1,onComment:_0x1087e7}=_0x27257d;let _0x5404ba,_0x51d5ee='',_0x2ca3bd=!0x0,_0x5cc59b='',_0x4f3649='';function _0x4c2823(_0x58039e){if(''===_0x58039e)return _0x5cc59b['length']>0x0&&_0x4ff9e1({'id':_0x5404ba,'event':_0x4f3649||void 0x0,'data':_0x5cc59b['endsWith']('\x0a')?_0x5cc59b['slice'](0x0,-0x1):_0x5cc59b}),_0x5404ba=void 0x0,_0x5cc59b='',void(_0x4f3649='');if(_0x58039e['startsWith'](':'))return void(_0x1087e7&&_0x1087e7(_0x58039e['slice'](_0x58039e['startsWith'](':\x20')?0x2:0x1)));const _0x4a811b=_0x58039e['indexOf'](':');if(-0x1!==_0x4a811b){const _0x2e956e=_0x58039e['slice'](0x0,_0x4a811b),_0x16473f='\x20'===_0x58039e[_0x4a811b+0x1]?0x2:0x1;return void _0x5d83f1(_0x2e956e,_0x58039e['slice'](_0x4a811b+_0x16473f),_0x58039e);}_0x5d83f1(_0x58039e,'',_0x58039e);}function _0x5d83f1(_0x542de2,_0x1c4c7c,_0x2e06c2){switch(_0x542de2){case'event':_0x4f3649=_0x1c4c7c;break;case'data':_0x5cc59b=''+_0x5cc59b+_0x1c4c7c+'\x0a';break;case'id':_0x5404ba=_0x1c4c7c['includes']('\x00')?void 0x0:_0x1c4c7c;break;case'retry':/^\d+$/['test'](_0x1c4c7c)?_0x28552c(parseInt(_0x1c4c7c,0xa)):_0x5f0869(new ParseError('Invalid\x20`retry`\x20value:\x20\x22'+_0x1c4c7c+'\x22',{'type':'invalid-retry','value':_0x1c4c7c,'line':_0x2e06c2}));break;default:_0x5f0869(new ParseError('Unknown\x20field\x20\x22'+(_0x542de2['length']>0x14?_0x542de2['slice'](0x0,0x14)+'…':_0x542de2)+'\x22',{'type':'unknown-field','field':_0x542de2,'value':_0x1c4c7c,'line':_0x2e06c2}));}}return{'feed':function(_0x3b56c1){const _0x4250b3=_0x2ca3bd?_0x3b56c1['replace'](/^\xEF\xBB\xBF/,''):_0x3b56c1,[_0x5d9407,_0x53e693]=splitLines(''+_0x51d5ee+_0x4250b3);for(const _0x3724a7 of _0x5d9407)_0x4c2823(_0x3724a7);_0x51d5ee=_0x53e693,_0x2ca3bd=!0x1;},'reset':function(_0x545862={}){_0x51d5ee&&_0x545862['consume']&&_0x4c2823(_0x51d5ee),_0x2ca3bd=!0x0,_0x5404ba=void 0x0,_0x5cc59b='',_0x4f3649='',_0x51d5ee='';}};}function splitLines(_0x4a84c7){const _0xf990a4=[];let _0x35ef04='',_0x180dcc=0x0;for(;_0x180dcc<_0x4a84c7['length'];){const _0x3760e8=_0x4a84c7['indexOf']('\x0d',_0x180dcc),_0x2c9aa8=_0x4a84c7['indexOf']('\x0a',_0x180dcc);let _0x9f5761=-0x1;if(-0x1!==_0x3760e8&&-0x1!==_0x2c9aa8?_0x9f5761=Math['min'](_0x3760e8,_0x2c9aa8):-0x1!==_0x3760e8?_0x9f5761=_0x3760e8:-0x1!==_0x2c9aa8&&(_0x9f5761=_0x2c9aa8),-0x1===_0x9f5761){_0x35ef04=_0x4a84c7['slice'](_0x180dcc);break;}{const _0x343eec=_0x4a84c7['slice'](_0x180dcc,_0x9f5761);_0xf990a4['push'](_0x343eec),_0x180dcc=_0x9f5761+0x1,'\x0d'===_0x4a84c7[_0x180dcc-0x1]&&'\x0a'===_0x4a84c7[_0x180dcc]&&_0x180dcc++;}}return[_0xf990a4,_0x35ef04];}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(_0x3ea36d){super(_0x3ea36d),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 _0xcea8d0=this['context']['plugins']['get']('CloudServices');if(!_0xcea8d0['token'])throw new CKEditorError('ai-missing-token',this);this['_token']=_0xcea8d0['token'];}['startConversation'](_0x1d523b,_0x3de6f5){const _0x94c9af=this['_sendApiRequest']('/conversations','POST',{'id':_0x1d523b,'group':_0x3de6f5});return{'getConversation':async()=>(await _0x94c9af['request'])['json'](),'abortController':_0x94c9af['abortController']};}['queryAssistant']({message:_0x191c3d,conversationId:_0xa09b95,parts:_0x16a6e1,capabilities:_0x562eca,model:_0x43eb8a,attributes:_0x15cb0e}){const _0xe54d36={'prompt':_0x191c3d,'content':_0x16a6e1,'model':_0x43eb8a,..._0x562eca&&{'capabilities':_0x562eca},..._0x15cb0e&&{'attributes':_0x15cb0e}},_0x16727b=this['_sendApiRequest']('/conversations/'+_0xa09b95+'/messages','POST',_0xe54d36);return{'getStream':async()=>{const _0x4f7b2b=(await _0x16727b['request'])['body'];return this['_getStreamReader'](_0x4f7b2b);},'abortController':_0x16727b['abortController']};}['executeCustomAction']({content:_0x4a6ba2,message:_0x1f4064,model:_0x1b67fa,outputFormat:_0x172e62}){const _0x5ae04e={'content':[{'type':'text','content':_0x4a6ba2}],'prompt':_0x1f4064,'model':_0x1b67fa,'outputFormat':_0x172e62},_0x54db7b=this['_sendApiRequest']('/actions/custom/calls','POST',_0x5ae04e);return{'getStream':async()=>{const _0x472575=(await _0x54db7b['request'])['body'];return this['_getStreamReader'](_0x472575);},'abortController':_0x54db7b['abortController']};}['executeAction']({actionName:_0x235374,content:_0xfb495d,args:_0x39d229}){const _0x57ebd1={'content':[{'type':'text','content':_0xfb495d}],'args':_0x39d229},_0x417fe7=this['_sendApiRequest']('/actions/system/'+_0x235374+'/calls','POST',_0x57ebd1);return{'getStream':async()=>{const _0x362c46=(await _0x417fe7['request'])['body'];return this['_getStreamReader'](_0x362c46);},'abortController':_0x417fe7['abortController']};}['uploadFile'](_0x5f1419,_0x206f3c,_0xc84a0){const _0x422e34=new FormData();_0x422e34['append']('file',_0x206f3c,_0x206f3c['name']),_0xc84a0&&_0x422e34['append']('attributes',JSON['stringify'](_0xc84a0));const _0x4e56d9=this['_sendApiRequest']('/conversations/'+_0x5f1419+'/files','POST',_0x422e34);return{'getId':async()=>(await _0x4e56d9['request'])['json'](),'abortController':_0x4e56d9['abortController']};}['fetchDocument'](_0x216fe6,_0x803fb7){const _0x2078ef=this['_sendApiRequest']('/conversations/'+_0x216fe6+'/documents/'+_0x803fb7,'GET');return{'getDocument':async()=>(await _0x2078ef['request'])['json'](),'abortController':_0x2078ef['abortController']};}['uploadDocument'](_0x591f89,_0x51ab67,_0x2654f4){const _0x48990f={'content':_0x51ab67};_0x2654f4&&(_0x48990f['attributes']=_0x2654f4);const _0x4d0924=this['_sendApiRequest']('/conversations/'+_0x591f89+'/documents','POST',_0x48990f);return{'getId':async()=>(await _0x4d0924['request'])['json'](),'abortController':_0x4d0924['abortController']};}['fetchConversations'](_0x231ce4,_0x31b8c8={}){const _0x56d85f=new URLSearchParams();_0x56d85f['append']('group',_0x231ce4),_0x56d85f['append']('excludeEmpty',!0x1!==_0x31b8c8['excludeEmpty']?'true':'false'),_0x56d85f['append']('limit',_0x31b8c8['limit']?_0x31b8c8['limit']['toString']():'100'),_0x56d85f['append']('sortBy',_0x31b8c8['sortBy']?_0x31b8c8['sortBy']:'createdAt'),_0x56d85f['append']('order',_0x31b8c8['order']?_0x31b8c8['order']:'desc');const _0x49aa8a=this['_sendApiRequest']('/conversations?'+_0x56d85f['toString'](),'GET');return{'getConversations':async()=>{const _0x3e53ee=await _0x49aa8a['request'];return(await _0x3e53ee['json']())['items'];},'abortController':_0x49aa8a['abortController']};}['deleteConversation'](_0x3099cc){const _0x5734d7=this['_sendApiRequest']('/conversations/'+_0x3099cc,'DELETE');return{'execute':async()=>{await _0x5734d7['request'];},'abortController':_0x5734d7['abortController']};}['updateConversation'](_0x519b00,_0xddfb51){const _0x65a214=this['_sendApiRequest']('/conversations/'+_0x519b00,'PATCH',_0xddfb51);return{'getResult':async()=>(await _0x65a214['request'],_0xddfb51),'abortController':_0x65a214['abortController']};}['fetchConversation'](_0x426a98){const _0x24912b=this['_sendApiRequest']('/conversations/'+_0x426a98,'GET');return{'getConversation':async()=>(await _0x24912b['request'])['json'](),'abortController':_0x24912b['abortController']};}['fetchConversationMessages'](_0x5a5d1c){const _0x395c9c=this['_sendApiRequest']('/conversations/'+_0x5a5d1c+'/messages','GET');return{'getMessages':async()=>{const _0x2c3457=await _0x395c9c['request'];return(await _0x2c3457['json']())['items'];},'abortController':_0x395c9c['abortController']};}['uploadUrl'](_0x43dbf3,_0xecf680,_0xf39493){const _0x15df5c=this['_sendApiRequest']('/conversations/'+_0x43dbf3+'/web-resources','POST',{'url':_0xecf680,'attributes':_0xf39493});return{'getId':async()=>(await _0x15df5c['request'])['json'](),'abortController':_0x15df5c['abortController']};}['getModels'](_0x3c821b='en'){const _0x1e1927=new URLSearchParams();_0x1e1927['append']('language',_0x3c821b);const _0x3a0eb5='/models/'+MODEL_COMPATIBILITY_VERSION+'?'+_0x1e1927['toString'](),_0x519dd7=this['_sendApiRequest'](_0x3a0eb5,'GET');return{'list':async()=>await(await _0x519dd7['request'])['json'](),'abortController':_0x519dd7['abortController']};}['deleteFile'](_0x31903f,_0x2e5ae0){const _0x23c085=this['_sendApiRequest']('/conversations/'+_0x31903f+'/files/'+_0x2e5ae0,'DELETE');return{'execute':async()=>{await _0x23c085['request'];},'abortController':_0x23c085['abortController']};}['deleteDocument'](_0x41f6a3,_0x323122){const _0x1edb5a=this['_sendApiRequest']('/conversations/'+_0x41f6a3+'/documents/'+_0x323122,'DELETE');return{'execute':async()=>{await _0x1edb5a['request'];},'abortController':_0x1edb5a['abortController']};}['deleteWebResource'](_0x496173,_0x43e36c){const _0xaeb1e7=this['_sendApiRequest']('/conversations/'+_0x496173+'/web-resources/'+_0x43e36c,'DELETE');return{'execute':async()=>{await _0xaeb1e7['request'];},'abortController':_0xaeb1e7['abortController']};}['callSystemReview']({reviewName:_0x30a08e,content:_0x5c29b4,args:_0x2b247d}){const _0x2c164d=this['_sendApiRequest']('/reviews/system/'+_0x30a08e+'/calls','POST',{'content':[{'type':'text','content':_0x5c29b4}],'args':_0x2b247d});return{'getStream':async()=>{const _0x241f72=(await _0x2c164d['request'])['body'];return this['_getStreamReader'](_0x241f72);},'abortController':_0x2c164d['abortController']};}['callCustomReview']({content:_0x52507a,prompt:_0x231eac,model:_0x49c288}){const _0x2ff76d=this['_sendApiRequest']('/reviews/custom/calls','POST',{'content':[{'type':'text','content':_0x52507a}],'prompt':_0x231eac,'model':_0x49c288});return{'getStream':async()=>{const _0x38726d=(await _0x2ff76d['request'])['body'];return this['_getStreamReader'](_0x38726d);},'abortController':_0x2ff76d['abortController']};}['upsertAIChatRating'](_0x6d5821,_0x1474d8,_0x3d86f7){const _0x557cb1=this['_sendApiRequest']('/conversations/'+_0x6d5821+'/messages/'+_0x1474d8+'/ratings','PUT',{'positiveCount':_0x3d86f7['positiveCount'],'totalCount':_0x3d86f7['totalCount'],'modificationId':_0x3d86f7['modificationId']});return{'execute':async()=>{await _0x557cb1['request'];},'abortController':_0x557cb1['abortController']};}['upsertAIActionRating'](_0x1cc703,_0x1c5bbf,_0x4d3b35){const _0x449fe7=this['_sendApiRequest']('/actions/system/'+_0x1cc703+'/calls/'+_0x1c5bbf+'/ratings','PUT',{'positiveCount':_0x4d3b35['positiveCount'],'totalCount':_0x4d3b35['totalCount']});return{'execute':async()=>{await _0x449fe7['request'];},'abortController':_0x449fe7['abortController']};}['upsertCustomAIActionRating'](_0xd4eeaa,_0x444016){const _0x2c47dc=this['_sendApiRequest']('/actions/custom/calls/'+_0xd4eeaa+'/ratings','PUT',{'positiveCount':_0x444016['positiveCount'],'totalCount':_0x444016['totalCount']});return{'execute':async()=>{await _0x2c47dc['request'];},'abortController':_0x2c47dc['abortController']};}['upsertAIReviewRating'](_0x1d0634,_0x10a5ef,_0x274b8b,_0x182905){const _0x592954=this['_sendApiRequest']('/reviews/system/'+_0x1d0634+'/calls/'+_0x10a5ef+'/ratings','PUT',{'positiveCount':_0x274b8b['positiveCount'],'totalCount':_0x274b8b['totalCount'],'dataId':_0x182905});return{'execute':async()=>{await _0x592954['request'];},'abortController':_0x592954['abortController']};}['upsertCustomAIReviewRating'](_0x1088b0,_0x3d805d,_0x586923){const _0x2079f0=this['_sendApiRequest']('/reviews/custom/calls/'+_0x1088b0+'/ratings','PUT',{'positiveCount':_0x3d805d['positiveCount'],'totalCount':_0x3d805d['totalCount'],'dataId':_0x586923});return{'execute':async()=>{await _0x2079f0['request'];},'abortController':_0x2079f0['abortController']};}['_sendApiRequest'](_0x3833ec,_0x7aad1a,_0x50a817){const _0x591750=new AbortController(),_0x4c311a=_0x50a817 instanceof FormData,_0x580234={'Authorization':'Bearer\x20'+this['_token']?.['value']};_0x50a817&&!_0x4c311a&&(_0x580234['Content-Type']='application/json');const _0x593faf={'method':_0x7aad1a,'headers':_0x580234,'signal':_0x591750['signal']};_0x50a817&&(_0x593faf['body']=_0x4c311a?_0x50a817:JSON['stringify'](_0x50a817));const _0x447f17=fetch(''+this['_apiUrl']+_0x3833ec,_0x593faf)['catch'](_0x86ee71=>{this['_handleError'](_0x86ee71);})['then'](_0x3ae39c=>_0x3ae39c['ok']?_0x3ae39c:_0x3ae39c['json']()['then'](_0x1a5203=>{throw{'url':this['_apiUrl'],'path':_0x3833ec,'method':_0x7aad1a,'body':_0x50a817,'status':(_0x3ae39c||{})['status'],'statusText':(_0x3ae39c||{})['statusText'],'code':_0x1a5203['code'],'message':_0x1a5203['message'],'traceId':_0x1a5203['traceId']};}));return{'request':_0x447f17,'abortController':_0x591750};}async*['_getStreamReader'](_0x45b533){const _0x1b7954=[],_0x179d5e=_0x45b533['getReader'](),_0x337910=createParser({'onError':_0x43babe=>{this['_handleError'](_0x43babe);},'onEvent':_0x2f81bb=>{_0x2f81bb['data']=JSON['parse'](_0x2f81bb['data']),_0x1b7954['push'](_0x2f81bb);}});try{let _0x2b5e00=!0x1;for(;!_0x2b5e00;){const {done:_0x50532f,value:_0xda2ed3}=await _0x179d5e['read']();_0x50532f&&(_0x2b5e00=!0x0),_0x337910['feed'](this['_decoder']['decode'](_0xda2ed3,{'stream':!0x0})),yield*_0x1b7954,_0x1b7954['length']=0x0;}}catch(_0x1aac08){this['_handleError'](_0x1aac08);}finally{_0x179d5e['releaseLock'](),_0x337910['reset']();}}['_handleError'](_0x3371ca){if(_0x3371ca instanceof CKEditorError)throw _0x3371ca;if(_0x3371ca instanceof Error&&'AbortError'===_0x3371ca['name'])throw new CKEditorError('ai-request-aborted',this,{'originalError':_0x3371ca});throw new CKEditorError('ai-request-failed',this,{'originalError':_0x3371ca});}}function getTranslation$i(_0x2849c7,_0x5f49ce,_0x5f10c8){const t=_0x2849c7['t'];switch(_0x5f49ce){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'},_0x5f10c8);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.'},_0x5f10c8);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.'},_0x5f10c8);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.'},_0x5f10c8);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'},_0x5f10c8);case'AI_CHAT_SUGGESTION_ACTION_SUGGEST':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SUGGEST','string':'Suggest'},_0x5f10c8);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'},_0x5f10c8);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.'},_0x5f10c8);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.'},_0x5f10c8);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.'},_0x5f10c8);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.'},_0x5f10c8);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'},_0x5f10c8);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.'},_0x5f10c8);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 _0x5f49ce;}}function createResizeButton(_0x5e6d00,_0x21ffed){const _0x226164=new ButtonView(_0x5e6d00),_0x214c58=getTranslation$i(_0x5e6d00,'AI_TABS_LABEL_MINIMIZE'),_0x5e50d8=getTranslation$i(_0x5e6d00,'AI_TABS_LABEL_MAXIMIZE');return _0x226164['set']({'withText':!0x1,'icon':IconMaximize,'tooltip':!0x0,'class':'ck-ai-tabs__resize\x20ck-ai-button-tertiary'}),_0x226164['bind']('label')['to'](_0x21ffed,'isMaximized',_0x193fa9=>_0x193fa9?_0x214c58:_0x5e50d8),_0x226164['bind']('icon')['to'](_0x21ffed,'isMaximized',_0x4b0f71=>_0x4b0f71?IconMinimize:IconMaximize),_0x226164['bind']('isOn')['to'](_0x21ffed,'isMaximized'),_0x226164['on']('execute',()=>{_0x21ffed['fire']('resizeTabs');}),_0x226164;}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'](_0x26e592=>_0x26e592['charCodeAt'](0x0))),xmlDecodeTree=new Uint16Array('Ȁaglq\x09\x15\x18\x1bɭ\x0f\x00\x00\x12p;䀦os;䀧t;䀾t;䀼uot;䀢'['split']('')['map'](_0x455cd8=>_0x455cd8['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(_0x4c224d){let _0x46cec2='';return _0x4c224d>0xffff&&(_0x4c224d-=0x10000,_0x46cec2+=String['fromCharCode'](_0x4c224d>>>0xa&0x3ff|0xd800),_0x4c224d=0xdc00|0x3ff&_0x4c224d),_0x46cec2+=String['fromCharCode'](_0x4c224d),_0x46cec2;};function replaceCodePoint(_0x3fef75){var _0x493650;return _0x3fef75>=0xd800&&_0x3fef75<=0xdfff||_0x3fef75>0x10ffff?0xfffd:null!==(_0x493650=decodeMap['get'](_0x3fef75))&&void 0x0!==_0x493650?_0x493650:_0x3fef75;}var CharCodes$1;!function(_0x3f1d2d){_0x3f1d2d[_0x3f1d2d['NUM']=0x23]='NUM',_0x3f1d2d[_0x3f1d2d['SEMI']=0x3b]='SEMI',_0x3f1d2d[_0x3f1d2d['EQUALS']=0x3d]='EQUALS',_0x3f1d2d[_0x3f1d2d['ZERO']=0x30]='ZERO',_0x3f1d2d[_0x3f1d2d['NINE']=0x39]='NINE',_0x3f1d2d[_0x3f1d2d['LOWER_A']=0x61]='LOWER_A',_0x3f1d2d[_0x3f1d2d['LOWER_F']=0x66]='LOWER_F',_0x3f1d2d[_0x3f1d2d['LOWER_X']=0x78]='LOWER_X',_0x3f1d2d[_0x3f1d2d['LOWER_Z']=0x7a]='LOWER_Z',_0x3f1d2d[_0x3f1d2d['UPPER_A']=0x41]='UPPER_A',_0x3f1d2d[_0x3f1d2d['UPPER_F']=0x46]='UPPER_F',_0x3f1d2d[_0x3f1d2d['UPPER_Z']=0x5a]='UPPER_Z';}(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=0x20;var BinTrieFlags,EntityDecoderState,DecodingMode,CharCodes,State,QuoteType;function isNumber$1(_0x207a8e){return _0x207a8e>=CharCodes$1['ZERO']&&_0x207a8e<=CharCodes$1['NINE'];}function isHexadecimalCharacter(_0x18e3a0){return _0x18e3a0>=CharCodes$1['UPPER_A']&&_0x18e3a0<=CharCodes$1['UPPER_F']||_0x18e3a0>=CharCodes$1['LOWER_A']&&_0x18e3a0<=CharCodes$1['LOWER_F'];}function isAsciiAlphaNumeric(_0x554f31){return _0x554f31>=CharCodes$1['UPPER_A']&&_0x554f31<=CharCodes$1['UPPER_Z']||_0x554f31>=CharCodes$1['LOWER_A']&&_0x554f31<=CharCodes$1['LOWER_Z']||isNumber$1(_0x554f31);}function isEntityInAttributeInvalidEnd(_0x120f9a){return _0x120f9a===CharCodes$1['EQUALS']||isAsciiAlphaNumeric(_0x120f9a);}!function(_0x30dccb){_0x30dccb[_0x30dccb['VALUE_LENGTH']=0xc000]='VALUE_LENGTH',_0x30dccb[_0x30dccb['BRANCH_LENGTH']=0x3f80]='BRANCH_LENGTH',_0x30dccb[_0x30dccb['JUMP_TABLE']=0x7f]='JUMP_TABLE';}(BinTrieFlags||(BinTrieFlags={})),function(_0x58153e){_0x58153e[_0x58153e['EntityStart']=0x0]='EntityStart',_0x58153e[_0x58153e['NumericStart']=0x1]='NumericStart',_0x58153e[_0x58153e['NumericDecimal']=0x2]='NumericDecimal',_0x58153e[_0x58153e['NumericHex']=0x3]='NumericHex',_0x58153e[_0x58153e['NamedEntity']=0x4]='NamedEntity';}(EntityDecoderState||(EntityDecoderState={})),function(_0x30e159){_0x30e159[_0x30e159['Legacy']=0x0]='Legacy',_0x30e159[_0x30e159['Strict']=0x1]='Strict',_0x30e159[_0x30e159['Attribute']=0x2]='Attribute';}(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(_0x51a27b,_0x174050,_0x4f5a68){this['decodeTree']=_0x51a27b,this['emitCodePoint']=_0x174050,this['errors']=_0x4f5a68,this['state']=EntityDecoderState['EntityStart'],this['consumed']=0x1,this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['decodeMode']=DecodingMode['Strict'];}['startEntity'](_0x2b7406){this['decodeMode']=_0x2b7406,this['state']=EntityDecoderState['EntityStart'],this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['consumed']=0x1;}['write'](_0x5abe37,_0x27726e){switch(this['state']){case EntityDecoderState['EntityStart']:return _0x5abe37['charCodeAt'](_0x27726e)===CharCodes$1['NUM']?(this['state']=EntityDecoderState['NumericStart'],this['consumed']+=0x1,this['stateNumericStart'](_0x5abe37,_0x27726e+0x1)):(this['state']=EntityDecoderState['NamedEntity'],this['stateNamedEntity'](_0x5abe37,_0x27726e));case EntityDecoderState['NumericStart']:return this['stateNumericStart'](_0x5abe37,_0x27726e);case EntityDecoderState['NumericDecimal']:return this['stateNumericDecimal'](_0x5abe37,_0x27726e);case EntityDecoderState['NumericHex']:return this['stateNumericHex'](_0x5abe37,_0x27726e);case EntityDecoderState['NamedEntity']:return this['stateNamedEntity'](_0x5abe37,_0x27726e);}}['stateNumericStart'](_0x20a56e,_0xe300e2){return _0xe300e2>=_0x20a56e['length']?-0x1:(_0x20a56e['charCodeAt'](_0xe300e2)|TO_LOWER_BIT)===CharCodes$1['LOWER_X']?(this['state']=EntityDecoderState['NumericHex'],this['consumed']+=0x1,this['stateNumericHex'](_0x20a56e,_0xe300e2+0x1)):(this['state']=EntityDecoderState['NumericDecimal'],this['stateNumericDecimal'](_0x20a56e,_0xe300e2));}['addToNumericResult'](_0x583869,_0x39f902,_0xb9f60,_0x10b51c){if(_0x39f902!==_0xb9f60){const _0x397709=_0xb9f60-_0x39f902;this['result']=this['result']*Math['pow'](_0x10b51c,_0x397709)+Number['parseInt'](_0x583869['substr'](_0x39f902,_0x397709),_0x10b51c),this['consumed']+=_0x397709;}}['stateNumericHex'](_0x15f489,_0x1f9251){const _0x565959=_0x1f9251;for(;_0x1f9251<_0x15f489['length'];){const _0x4c5178=_0x15f489['charCodeAt'](_0x1f9251);if(!isNumber$1(_0x4c5178)&&!isHexadecimalCharacter(_0x4c5178))return this['addToNumericResult'](_0x15f489,_0x565959,_0x1f9251,0x10),this['emitNumericEntity'](_0x4c5178,0x3);_0x1f9251+=0x1;}return this['addToNumericResult'](_0x15f489,_0x565959,_0x1f9251,0x10),-0x1;}['stateNumericDecimal'](_0xff660,_0x354743){const _0x16904c=_0x354743;for(;_0x354743<_0xff660['length'];){const _0x546fc4=_0xff660['charCodeAt'](_0x354743);if(!isNumber$1(_0x546fc4))return this['addToNumericResult'](_0xff660,_0x16904c,_0x354743,0xa),this['emitNumericEntity'](_0x546fc4,0x2);_0x354743+=0x1;}return this['addToNumericResult'](_0xff660,_0x16904c,_0x354743,0xa),-0x1;}['emitNumericEntity'](_0x336e1d,_0x1f85ae){var _0x527f7e;if(this['consumed']<=_0x1f85ae)return null===(_0x527f7e=this['errors'])||void 0x0===_0x527f7e||_0x527f7e['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;if(_0x336e1d===CharCodes$1['SEMI'])this['consumed']+=0x1;else{if(this['decodeMode']===DecodingMode['Strict'])return 0x0;}return this['emitCodePoint'](replaceCodePoint(this['result']),this['consumed']),this['errors']&&(_0x336e1d!==CharCodes$1['SEMI']&&this['errors']['missingSemicolonAfterCharacterReference'](),this['errors']['validateNumericCharacterReference'](this['result'])),this['consumed'];}['stateNamedEntity'](_0x55954d,_0x29796c){const {decodeTree:_0x2bf504}=this;let _0x2c7877=_0x2bf504[this['treeIndex']],_0x3ad1ce=(_0x2c7877&BinTrieFlags['VALUE_LENGTH'])>>0xe;for(;_0x29796c<_0x55954d['length'];_0x29796c++,this['excess']++){const _0x16e4fb=_0x55954d['charCodeAt'](_0x29796c);if(this['treeIndex']=determineBranch(_0x2bf504,_0x2c7877,this['treeIndex']+Math['max'](0x1,_0x3ad1ce),_0x16e4fb),this['treeIndex']<0x0)return 0x0===this['result']||this['decodeMode']===DecodingMode['Attribute']&&(0x0===_0x3ad1ce||isEntityInAttributeInvalidEnd(_0x16e4fb))?0x0:this['emitNotTerminatedNamedEntity']();if(_0x2c7877=_0x2bf504[this['treeIndex']],_0x3ad1ce=(_0x2c7877&BinTrieFlags['VALUE_LENGTH'])>>0xe,0x0!==_0x3ad1ce){if(_0x16e4fb===CharCodes$1['SEMI'])return this['emitNamedEntityData'](this['treeIndex'],_0x3ad1ce,this['consumed']+this['excess']);this['decodeMode']!==DecodingMode['Strict']&&(this['result']=this['treeIndex'],this['consumed']+=this['excess'],this['excess']=0x0);}}return-0x1;}['emitNotTerminatedNamedEntity'](){var _0x5d3694;const {result:_0x538cb8,decodeTree:_0x507730}=this,_0x41208b=(_0x507730[_0x538cb8]&BinTrieFlags['VALUE_LENGTH'])>>0xe;return this['emitNamedEntityData'](_0x538cb8,_0x41208b,this['consumed']),null===(_0x5d3694=this['errors'])||void 0x0===_0x5d3694||_0x5d3694['missingSemicolonAfterCharacterReference'](),this['consumed'];}['emitNamedEntityData'](_0x17bb18,_0x3f89d7,_0x298d25){const {decodeTree:_0x4f89b2}=this;return this['emitCodePoint'](0x1===_0x3f89d7?_0x4f89b2[_0x17bb18]&~BinTrieFlags['VALUE_LENGTH']:_0x4f89b2[_0x17bb18+0x1],_0x298d25),0x3===_0x3f89d7&&this['emitCodePoint'](_0x4f89b2[_0x17bb18+0x2],_0x298d25),_0x298d25;}['end'](){var _0x3f878a;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===(_0x3f878a=this['errors'])||void 0x0===_0x3f878a||_0x3f878a['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;case EntityDecoderState['EntityStart']:return 0x0;}}}function determineBranch(_0x450389,_0x5ec7ab,_0x27a35f,_0x1ca0ad){const _0x550bc0=(_0x5ec7ab&BinTrieFlags['BRANCH_LENGTH'])>>0x7,_0x2aa86a=_0x5ec7ab&BinTrieFlags['JUMP_TABLE'];if(0x0===_0x550bc0)return 0x0!==_0x2aa86a&&_0x1ca0ad===_0x2aa86a?_0x27a35f:-0x1;if(_0x2aa86a){const _0x22d755=_0x1ca0ad-_0x2aa86a;return _0x22d755<0x0||_0x22d755>=_0x550bc0?-0x1:_0x450389[_0x27a35f+_0x22d755]-0x1;}let _0x1c2f8b=_0x27a35f,_0x4ff523=_0x1c2f8b+_0x550bc0-0x1;for(;_0x1c2f8b<=_0x4ff523;){const _0x2a0ed9=_0x1c2f8b+_0x4ff523>>>0x1,_0xfa7a30=_0x450389[_0x2a0ed9];if(_0xfa7a30<_0x1ca0ad)_0x1c2f8b=_0x2a0ed9+0x1;else{if(!(_0xfa7a30>_0x1ca0ad))return _0x450389[_0x2a0ed9+_0x550bc0];_0x4ff523=_0x2a0ed9-0x1;}}return-0x1;}function isWhitespace(_0x5d6846){return _0x5d6846===CharCodes['Space']||_0x5d6846===CharCodes['NewLine']||_0x5d6846===CharCodes['Tab']||_0x5d6846===CharCodes['FormFeed']||_0x5d6846===CharCodes['CarriageReturn'];}function isEndOfTagSection(_0x525e9b){return _0x525e9b===CharCodes['Slash']||_0x525e9b===CharCodes['Gt']||isWhitespace(_0x525e9b);}function isASCIIAlpha(_0x14a746){return _0x14a746>=CharCodes['LowerA']&&_0x14a746<=CharCodes['LowerZ']||_0x14a746>=CharCodes['UpperA']&&_0x14a746<=CharCodes['UpperZ'];}!function(_0x8a4e62){_0x8a4e62[_0x8a4e62['Tab']=0x9]='Tab',_0x8a4e62[_0x8a4e62['NewLine']=0xa]='NewLine',_0x8a4e62[_0x8a4e62['FormFeed']=0xc]='FormFeed',_0x8a4e62[_0x8a4e62['CarriageReturn']=0xd]='CarriageReturn',_0x8a4e62[_0x8a4e62['Space']=0x20]='Space',_0x8a4e62[_0x8a4e62['ExclamationMark']=0x21]='ExclamationMark',_0x8a4e62[_0x8a4e62['Number']=0x23]='Number',_0x8a4e62[_0x8a4e62['Amp']=0x26]='Amp',_0x8a4e62[_0x8a4e62['SingleQuote']=0x27]='SingleQuote',_0x8a4e62[_0x8a4e62['DoubleQuote']=0x22]='DoubleQuote',_0x8a4e62[_0x8a4e62['Dash']=0x2d]='Dash',_0x8a4e62[_0x8a4e62['Slash']=0x2f]='Slash',_0x8a4e62[_0x8a4e62['Zero']=0x30]='Zero',_0x8a4e62[_0x8a4e62['Nine']=0x39]='Nine',_0x8a4e62[_0x8a4e62['Semi']=0x3b]='Semi',_0x8a4e62[_0x8a4e62['Lt']=0x3c]='Lt',_0x8a4e62[_0x8a4e62['Eq']=0x3d]='Eq',_0x8a4e62[_0x8a4e62['Gt']=0x3e]='Gt',_0x8a4e62[_0x8a4e62['Questionmark']=0x3f]='Questionmark',_0x8a4e62[_0x8a4e62['UpperA']=0x41]='UpperA',_0x8a4e62[_0x8a4e62['LowerA']=0x61]='LowerA',_0x8a4e62[_0x8a4e62['UpperF']=0x46]='UpperF',_0x8a4e62[_0x8a4e62['LowerF']=0x66]='LowerF',_0x8a4e62[_0x8a4e62['UpperZ']=0x5a]='UpperZ',_0x8a4e62[_0x8a4e62['LowerZ']=0x7a]='LowerZ',_0x8a4e62[_0x8a4e62['LowerX']=0x78]='LowerX',_0x8a4e62[_0x8a4e62['OpeningSquareBracket']=0x5b]='OpeningSquareBracket';}(CharCodes||(CharCodes={})),function(_0xa0e673){_0xa0e673[_0xa0e673['Text']=0x1]='Text',_0xa0e673[_0xa0e673['BeforeTagName']=0x2]='BeforeTagName',_0xa0e673[_0xa0e673['InTagName']=0x3]='InTagName',_0xa0e673[_0xa0e673['InSelfClosingTag']=0x4]='InSelfClosingTag',_0xa0e673[_0xa0e673['BeforeClosingTagName']=0x5]='BeforeClosingTagName',_0xa0e673[_0xa0e673['InClosingTagName']=0x6]='InClosingTagName',_0xa0e673[_0xa0e673['AfterClosingTagName']=0x7]='AfterClosingTagName',_0xa0e673[_0xa0e673['BeforeAttributeName']=0x8]='BeforeAttributeName',_0xa0e673[_0xa0e673['InAttributeName']=0x9]='InAttributeName',_0xa0e673[_0xa0e673['AfterAttributeName']=0xa]='AfterAttributeName',_0xa0e673[_0xa0e673['BeforeAttributeValue']=0xb]='BeforeAttributeValue',_0xa0e673[_0xa0e673['InAttributeValueDq']=0xc]='InAttributeValueDq',_0xa0e673[_0xa0e673['InAttributeValueSq']=0xd]='InAttributeValueSq',_0xa0e673[_0xa0e673['InAttributeValueNq']=0xe]='InAttributeValueNq',_0xa0e673[_0xa0e673['BeforeDeclaration']=0xf]='BeforeDeclaration',_0xa0e673[_0xa0e673['InDeclaration']=0x10]='InDeclaration',_0xa0e673[_0xa0e673['InProcessingInstruction']=0x11]='InProcessingInstruction',_0xa0e673[_0xa0e673['BeforeComment']=0x12]='BeforeComment',_0xa0e673[_0xa0e673['CDATASequence']=0x13]='CDATASequence',_0xa0e673[_0xa0e673['InSpecialComment']=0x14]='InSpecialComment',_0xa0e673[_0xa0e673['InCommentLike']=0x15]='InCommentLike',_0xa0e673[_0xa0e673['BeforeSpecialS']=0x16]='BeforeSpecialS',_0xa0e673[_0xa0e673['BeforeSpecialT']=0x17]='BeforeSpecialT',_0xa0e673[_0xa0e673['SpecialStartSequence']=0x18]='SpecialStartSequence',_0xa0e673[_0xa0e673['InSpecialTag']=0x19]='InSpecialTag',_0xa0e673[_0xa0e673['InEntity']=0x1a]='InEntity';}(State||(State={})),function(_0x36905e){_0x36905e[_0x36905e['NoValue']=0x0]='NoValue',_0x36905e[_0x36905e['Unquoted']=0x1]='Unquoted',_0x36905e[_0x36905e['Single']=0x2]='Single',_0x36905e[_0x36905e['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:_0x491d1e=!0x1,decodeEntities:_0x300aba=!0x0},_0x300ab1){this['cbs']=_0x300ab1,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']=_0x491d1e,this['decodeEntities']=_0x300aba,this['entityDecoder']=new EntityDecoder(_0x491d1e?xmlDecodeTree:htmlDecodeTree,(_0x2d9c71,_0x2af095)=>this['emitCodePoint'](_0x2d9c71,_0x2af095));}['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'](_0x1c30b5){this['offset']+=this['buffer']['length'],this['buffer']=_0x1c30b5,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'](_0x4aecec){_0x4aecec===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']&&_0x4aecec===CharCodes['Amp']&&this['startEntity']();}['stateSpecialStartSequence'](_0x43b677){const _0x197fde=this['sequenceIndex']===this['currentSequence']['length'];if(_0x197fde?isEndOfTagSection(_0x43b677):(0x20|_0x43b677)===this['currentSequence'][this['sequenceIndex']]){if(!_0x197fde)return void this['sequenceIndex']++;}else this['isSpecial']=!0x1;this['sequenceIndex']=0x0,this['state']=State['InTagName'],this['stateInTagName'](_0x43b677);}['stateInSpecialTag'](_0x26965c){if(this['sequenceIndex']===this['currentSequence']['length']){if(_0x26965c===CharCodes['Gt']||isWhitespace(_0x26965c)){const _0x14b167=this['index']-this['currentSequence']['length'];if(this['sectionStart']<_0x14b167){const _0x1bf76c=this['index'];this['index']=_0x14b167,this['cbs']['ontext'](this['sectionStart'],_0x14b167),this['index']=_0x1bf76c;}return this['isSpecial']=!0x1,this['sectionStart']=_0x14b167+0x2,void this['stateInClosingTagName'](_0x26965c);}this['sequenceIndex']=0x0;}(0x20|_0x26965c)===this['currentSequence'][this['sequenceIndex']]?this['sequenceIndex']+=0x1:0x0===this['sequenceIndex']?this['currentSequence']===Sequences['TitleEnd']?this['decodeEntities']&&_0x26965c===CharCodes['Amp']&&this['startEntity']():this['fastForwardTo'](CharCodes['Lt'])&&(this['sequenceIndex']=0x1):this['sequenceIndex']=Number(_0x26965c===CharCodes['Lt']);}['stateCDATASequence'](_0x57067c){_0x57067c===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'](_0x57067c));}['fastForwardTo'](_0x542ca0){for(;++this['index']<this['buffer']['length']+this['offset'];)if(this['buffer']['charCodeAt'](this['index']-this['offset'])===_0x542ca0)return!0x0;return this['index']=this['buffer']['length']+this['offset']-0x1,!0x1;}['stateInCommentLike'](_0x1954f9){_0x1954f9===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):_0x1954f9!==this['currentSequence'][this['sequenceIndex']-0x1]&&(this['sequenceIndex']=0x0);}['isTagStartChar'](_0xe96fc5){return this['xmlMode']?!isEndOfTagSection(_0xe96fc5):isASCIIAlpha(_0xe96fc5);}['startSpecial'](_0x478cb3,_0x407153){this['isSpecial']=!0x0,this['currentSequence']=_0x478cb3,this['sequenceIndex']=_0x407153,this['state']=State['SpecialStartSequence'];}['stateBeforeTagName'](_0x31500b){if(_0x31500b===CharCodes['ExclamationMark'])this['state']=State['BeforeDeclaration'],this['sectionStart']=this['index']+0x1;else{if(_0x31500b===CharCodes['Questionmark'])this['state']=State['InProcessingInstruction'],this['sectionStart']=this['index']+0x1;else{if(this['isTagStartChar'](_0x31500b)){const _0x241486=0x20|_0x31500b;this['sectionStart']=this['index'],this['xmlMode']?this['state']=State['InTagName']:_0x241486===Sequences['ScriptEnd'][0x2]?this['state']=State['BeforeSpecialS']:_0x241486===Sequences['TitleEnd'][0x2]||_0x241486===Sequences['XmpEnd'][0x2]?this['state']=State['BeforeSpecialT']:this['state']=State['InTagName'];}else _0x31500b===CharCodes['Slash']?this['state']=State['BeforeClosingTagName']:(this['state']=State['Text'],this['stateText'](_0x31500b));}}}['stateInTagName'](_0x3f65ee){isEndOfTagSection(_0x3f65ee)&&(this['cbs']['onopentagname'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x3f65ee));}['stateBeforeClosingTagName'](_0x31c26f){isWhitespace(_0x31c26f)||(_0x31c26f===CharCodes['Gt']?this['state']=State['Text']:(this['state']=this['isTagStartChar'](_0x31c26f)?State['InClosingTagName']:State['InSpecialComment'],this['sectionStart']=this['index']));}['stateInClosingTagName'](_0x2a6499){(_0x2a6499===CharCodes['Gt']||isWhitespace(_0x2a6499))&&(this['cbs']['onclosetag'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['AfterClosingTagName'],this['stateAfterClosingTagName'](_0x2a6499));}['stateAfterClosingTagName'](_0x29cd37){(_0x29cd37===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeAttributeName'](_0x5155ea){_0x5155ea===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):_0x5155ea===CharCodes['Slash']?this['state']=State['InSelfClosingTag']:isWhitespace(_0x5155ea)||(this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateInSelfClosingTag'](_0x54a3b3){_0x54a3b3===CharCodes['Gt']?(this['cbs']['onselfclosingtag'](this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1,this['isSpecial']=!0x1):isWhitespace(_0x54a3b3)||(this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x54a3b3));}['stateInAttributeName'](_0x5de177){(_0x5de177===CharCodes['Eq']||isEndOfTagSection(_0x5de177))&&(this['cbs']['onattribname'](this['sectionStart'],this['index']),this['sectionStart']=this['index'],this['state']=State['AfterAttributeName'],this['stateAfterAttributeName'](_0x5de177));}['stateAfterAttributeName'](_0x3c0a10){_0x3c0a10===CharCodes['Eq']?this['state']=State['BeforeAttributeValue']:_0x3c0a10===CharCodes['Slash']||_0x3c0a10===CharCodes['Gt']?(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x3c0a10)):isWhitespace(_0x3c0a10)||(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateBeforeAttributeValue'](_0x457229){_0x457229===CharCodes['DoubleQuote']?(this['state']=State['InAttributeValueDq'],this['sectionStart']=this['index']+0x1):_0x457229===CharCodes['SingleQuote']?(this['state']=State['InAttributeValueSq'],this['sectionStart']=this['index']+0x1):isWhitespace(_0x457229)||(this['sectionStart']=this['index'],this['state']=State['InAttributeValueNq'],this['stateInAttributeValueNoQuotes'](_0x457229));}['handleInAttributeValue'](_0x240c90,_0x5d7985){_0x240c90===_0x5d7985||!this['decodeEntities']&&this['fastForwardTo'](_0x5d7985)?(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['cbs']['onattribend'](_0x5d7985===CharCodes['DoubleQuote']?QuoteType['Double']:QuoteType['Single'],this['index']+0x1),this['state']=State['BeforeAttributeName']):this['decodeEntities']&&_0x240c90===CharCodes['Amp']&&this['startEntity']();}['stateInAttributeValueDoubleQuotes'](_0x102907){this['handleInAttributeValue'](_0x102907,CharCodes['DoubleQuote']);}['stateInAttributeValueSingleQuotes'](_0x31d446){this['handleInAttributeValue'](_0x31d446,CharCodes['SingleQuote']);}['stateInAttributeValueNoQuotes'](_0x1da92c){isWhitespace(_0x1da92c)||_0x1da92c===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'](_0x1da92c)):this['decodeEntities']&&_0x1da92c===CharCodes['Amp']&&this['startEntity']();}['stateBeforeDeclaration'](_0x55b3d1){_0x55b3d1===CharCodes['OpeningSquareBracket']?(this['state']=State['CDATASequence'],this['sequenceIndex']=0x0):this['state']=_0x55b3d1===CharCodes['Dash']?State['BeforeComment']:State['InDeclaration'];}['stateInDeclaration'](_0x35e853){(_0x35e853===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['ondeclaration'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateInProcessingInstruction'](_0xc5b7b6){(_0xc5b7b6===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['onprocessinginstruction'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeComment'](_0x4e808c){_0x4e808c===CharCodes['Dash']?(this['state']=State['InCommentLike'],this['currentSequence']=Sequences['CommentEnd'],this['sequenceIndex']=0x2,this['sectionStart']=this['index']+0x1):this['state']=State['InDeclaration'];}['stateInSpecialComment'](_0x41eb16){(_0x41eb16===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['oncomment'](this['sectionStart'],this['index'],0x0),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeSpecialS'](_0x5afff6){const _0x5eb8ac=0x20|_0x5afff6;_0x5eb8ac===Sequences['ScriptEnd'][0x3]?this['startSpecial'](Sequences['ScriptEnd'],0x4):_0x5eb8ac===Sequences['StyleEnd'][0x3]?this['startSpecial'](Sequences['StyleEnd'],0x4):(this['state']=State['InTagName'],this['stateInTagName'](_0x5afff6));}['stateBeforeSpecialT'](_0x3c1c98){switch(0x20|_0x3c1c98){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'](_0x3c1c98);}}['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 _0x1ace76=this['entityDecoder']['write'](this['buffer'],this['index']-this['offset']);_0x1ace76>=0x0?(this['state']=this['baseState'],0x0===_0x1ace76&&(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 _0x1200be=this['buffer']['charCodeAt'](this['index']-this['offset']);switch(this['state']){case State['Text']:this['stateText'](_0x1200be);break;case State['SpecialStartSequence']:this['stateSpecialStartSequence'](_0x1200be);break;case State['InSpecialTag']:this['stateInSpecialTag'](_0x1200be);break;case State['CDATASequence']:this['stateCDATASequence'](_0x1200be);break;case State['InAttributeValueDq']:this['stateInAttributeValueDoubleQuotes'](_0x1200be);break;case State['InAttributeName']:this['stateInAttributeName'](_0x1200be);break;case State['InCommentLike']:this['stateInCommentLike'](_0x1200be);break;case State['InSpecialComment']:this['stateInSpecialComment'](_0x1200be);break;case State['BeforeAttributeName']:this['stateBeforeAttributeName'](_0x1200be);break;case State['InTagName']:this['stateInTagName'](_0x1200be);break;case State['InClosingTagName']:this['stateInClosingTagName'](_0x1200be);break;case State['BeforeTagName']:this['stateBeforeTagName'](_0x1200be);break;case State['AfterAttributeName']:this['stateAfterAttributeName'](_0x1200be);break;case State['InAttributeValueSq']:this['stateInAttributeValueSingleQuotes'](_0x1200be);break;case State['BeforeAttributeValue']:this['stateBeforeAttributeValue'](_0x1200be);break;case State['BeforeClosingTagName']:this['stateBeforeClosingTagName'](_0x1200be);break;case State['AfterClosingTagName']:this['stateAfterClosingTagName'](_0x1200be);break;case State['BeforeSpecialS']:this['stateBeforeSpecialS'](_0x1200be);break;case State['BeforeSpecialT']:this['stateBeforeSpecialT'](_0x1200be);break;case State['InAttributeValueNq']:this['stateInAttributeValueNoQuotes'](_0x1200be);break;case State['InSelfClosingTag']:this['stateInSelfClosingTag'](_0x1200be);break;case State['InDeclaration']:this['stateInDeclaration'](_0x1200be);break;case State['BeforeDeclaration']:this['stateBeforeDeclaration'](_0x1200be);break;case State['BeforeComment']:this['stateBeforeComment'](_0x1200be);break;case State['InProcessingInstruction']:this['stateInProcessingInstruction'](_0x1200be);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 _0x421f8c=this['buffer']['length']+this['offset'];this['sectionStart']>=_0x421f8c||(this['state']===State['InCommentLike']?this['currentSequence']===Sequences['CdataEnd']?this['cbs']['oncdata'](this['sectionStart'],_0x421f8c,0x0):this['cbs']['oncomment'](this['sectionStart'],_0x421f8c,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'],_0x421f8c));}['emitCodePoint'](_0x1db36f,_0x40d4bb){this['baseState']!==State['Text']&&this['baseState']!==State['InSpecialTag']?(this['sectionStart']<this['entityStart']&&this['cbs']['onattribdata'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x40d4bb,this['index']=this['sectionStart']-0x1,this['cbs']['onattribentity'](_0x1db36f)):(this['sectionStart']<this['entityStart']&&this['cbs']['ontext'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x40d4bb,this['index']=this['sectionStart']-0x1,this['cbs']['ontextentity'](_0x1db36f,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(_0x17cfd7,_0x59b793={}){var _0x319f29,_0x4b6590,_0x509961,_0x407ff5,_0x306a04,_0x3cfef4;this['options']=_0x59b793,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!=_0x17cfd7?_0x17cfd7:{},this['htmlMode']=!this['options']['xmlMode'],this['lowerCaseTagNames']=null!==(_0x319f29=_0x59b793['lowerCaseTags'])&&void 0x0!==_0x319f29?_0x319f29:this['htmlMode'],this['lowerCaseAttributeNames']=null!==(_0x4b6590=_0x59b793['lowerCaseAttributeNames'])&&void 0x0!==_0x4b6590?_0x4b6590:this['htmlMode'],this['recognizeSelfClosing']=null!==(_0x509961=_0x59b793['recognizeSelfClosing'])&&void 0x0!==_0x509961?_0x509961:!this['htmlMode'],this['tokenizer']=new(null!==(_0x407ff5=_0x59b793['Tokenizer'])&&void 0x0!==_0x407ff5?_0x407ff5:Tokenizer)(this['options'],this),this['foreignContext']=[!this['htmlMode']],null===(_0x3cfef4=(_0x306a04=this['cbs'])['onparserinit'])||void 0x0===_0x3cfef4||_0x3cfef4['call'](_0x306a04,this);}['ontext'](_0x3908e0,_0x33db39){var _0x176972,_0x58de8c;const _0x28d11f=this['getSlice'](_0x3908e0,_0x33db39);this['endIndex']=_0x33db39-0x1,null===(_0x58de8c=(_0x176972=this['cbs'])['ontext'])||void 0x0===_0x58de8c||_0x58de8c['call'](_0x176972,_0x28d11f),this['startIndex']=_0x33db39;}['ontextentity'](_0x377c78,_0x4974ab){var _0x1e0d22,_0x518835;this['endIndex']=_0x4974ab-0x1,null===(_0x518835=(_0x1e0d22=this['cbs'])['ontext'])||void 0x0===_0x518835||_0x518835['call'](_0x1e0d22,fromCodePoint$1(_0x377c78)),this['startIndex']=_0x4974ab;}['isVoidElement'](_0x192d1e){return this['htmlMode']&&voidElements['has'](_0x192d1e);}['onopentagname'](_0x513fec,_0x112569){this['endIndex']=_0x112569;let _0x484cd0=this['getSlice'](_0x513fec,_0x112569);this['lowerCaseTagNames']&&(_0x484cd0=_0x484cd0['toLowerCase']()),this['emitOpenTag'](_0x484cd0);}['emitOpenTag'](_0x23ffee){var _0x5b561b,_0x20ed6e,_0x2ad31e,_0x41824e;this['openTagStart']=this['startIndex'],this['tagname']=_0x23ffee;const _0x213940=this['htmlMode']&&openImpliesClose['get'](_0x23ffee);if(_0x213940)for(;this['stack']['length']>0x0&&_0x213940['has'](this['stack'][0x0]);){const _0x1263c7=this['stack']['shift']();null===(_0x20ed6e=(_0x5b561b=this['cbs'])['onclosetag'])||void 0x0===_0x20ed6e||_0x20ed6e['call'](_0x5b561b,_0x1263c7,!0x0);}this['isVoidElement'](_0x23ffee)||(this['stack']['unshift'](_0x23ffee),this['htmlMode']&&(foreignContextElements['has'](_0x23ffee)?this['foreignContext']['unshift'](!0x0):htmlIntegrationElements['has'](_0x23ffee)&&this['foreignContext']['unshift'](!0x1))),null===(_0x41824e=(_0x2ad31e=this['cbs'])['onopentagname'])||void 0x0===_0x41824e||_0x41824e['call'](_0x2ad31e,_0x23ffee),this['cbs']['onopentag']&&(this['attribs']={});}['endOpenTag'](_0x55bdf5){var _0x16a391,_0x3d61cb;this['startIndex']=this['openTagStart'],this['attribs']&&(null===(_0x3d61cb=(_0x16a391=this['cbs'])['onopentag'])||void 0x0===_0x3d61cb||_0x3d61cb['call'](_0x16a391,this['tagname'],this['attribs'],_0x55bdf5),this['attribs']=null),this['cbs']['onclosetag']&&this['isVoidElement'](this['tagname'])&&this['cbs']['onclosetag'](this['tagname'],!0x0),this['tagname']='';}['onopentagend'](_0x3166c0){this['endIndex']=_0x3166c0,this['endOpenTag'](!0x1),this['startIndex']=_0x3166c0+0x1;}['onclosetag'](_0x306cb4,_0x50ae82){var _0xf7bd28,_0x15fce5,_0x51eef7,_0x84d036,_0x45dd19,_0x239e8c,_0x334c9e,_0x5f40f4;this['endIndex']=_0x50ae82;let _0x51bb94=this['getSlice'](_0x306cb4,_0x50ae82);if(this['lowerCaseTagNames']&&(_0x51bb94=_0x51bb94['toLowerCase']()),this['htmlMode']&&(foreignContextElements['has'](_0x51bb94)||htmlIntegrationElements['has'](_0x51bb94))&&this['foreignContext']['shift'](),this['isVoidElement'](_0x51bb94))this['htmlMode']&&'br'===_0x51bb94&&(null===(_0x84d036=(_0x51eef7=this['cbs'])['onopentagname'])||void 0x0===_0x84d036||_0x84d036['call'](_0x51eef7,'br'),null===(_0x239e8c=(_0x45dd19=this['cbs'])['onopentag'])||void 0x0===_0x239e8c||_0x239e8c['call'](_0x45dd19,'br',{},!0x0),null===(_0x5f40f4=(_0x334c9e=this['cbs'])['onclosetag'])||void 0x0===_0x5f40f4||_0x5f40f4['call'](_0x334c9e,'br',!0x1));else{const _0x571976=this['stack']['indexOf'](_0x51bb94);if(-0x1!==_0x571976)for(let _0x225b53=0x0;_0x225b53<=_0x571976;_0x225b53++){const _0x2d8e15=this['stack']['shift']();null===(_0x15fce5=(_0xf7bd28=this['cbs'])['onclosetag'])||void 0x0===_0x15fce5||_0x15fce5['call'](_0xf7bd28,_0x2d8e15,_0x225b53!==_0x571976);}else this['htmlMode']&&'p'===_0x51bb94&&(this['emitOpenTag']('p'),this['closeCurrentTag'](!0x0));}this['startIndex']=_0x50ae82+0x1;}['onselfclosingtag'](_0x179367){this['endIndex']=_0x179367,this['recognizeSelfClosing']||this['foreignContext'][0x0]?(this['closeCurrentTag'](!0x1),this['startIndex']=_0x179367+0x1):this['onopentagend'](_0x179367);}['closeCurrentTag'](_0x12519a){var _0x2d54c4,_0x20378f;const _0x258315=this['tagname'];this['endOpenTag'](_0x12519a),this['stack'][0x0]===_0x258315&&(null===(_0x20378f=(_0x2d54c4=this['cbs'])['onclosetag'])||void 0x0===_0x20378f||_0x20378f['call'](_0x2d54c4,_0x258315,!_0x12519a),this['stack']['shift']());}['onattribname'](_0x121816,_0x566ce1){this['startIndex']=_0x121816;const _0x3ee4dc=this['getSlice'](_0x121816,_0x566ce1);this['attribname']=this['lowerCaseAttributeNames']?_0x3ee4dc['toLowerCase']():_0x3ee4dc;}['onattribdata'](_0x3f6089,_0x182d4c){this['attribvalue']+=this['getSlice'](_0x3f6089,_0x182d4c);}['onattribentity'](_0x12ceab){this['attribvalue']+=fromCodePoint$1(_0x12ceab);}['onattribend'](_0x58aa05,_0x3a0e65){var _0x13dfcc,_0x546bdb;this['endIndex']=_0x3a0e65,null===(_0x546bdb=(_0x13dfcc=this['cbs'])['onattribute'])||void 0x0===_0x546bdb||_0x546bdb['call'](_0x13dfcc,this['attribname'],this['attribvalue'],_0x58aa05===QuoteType['Double']?'\x22':_0x58aa05===QuoteType['Single']?'\x27':_0x58aa05===QuoteType['NoValue']?void 0x0:null),this['attribs']&&!Object['prototype']['hasOwnProperty']['call'](this['attribs'],this['attribname'])&&(this['attribs'][this['attribname']]=this['attribvalue']),this['attribvalue']='';}['getInstructionName'](_0xa9499e){const _0x21bfe1=_0xa9499e['search'](reNameEnd);let _0x51e284=_0x21bfe1<0x0?_0xa9499e:_0xa9499e['substr'](0x0,_0x21bfe1);return this['lowerCaseTagNames']&&(_0x51e284=_0x51e284['toLowerCase']()),_0x51e284;}['ondeclaration'](_0x257ca3,_0x268d90){this['endIndex']=_0x268d90;const _0xca4c88=this['getSlice'](_0x257ca3,_0x268d90);if(this['cbs']['onprocessinginstruction']){const _0x3ef446=this['getInstructionName'](_0xca4c88);this['cbs']['onprocessinginstruction']('!'+_0x3ef446,'!'+_0xca4c88);}this['startIndex']=_0x268d90+0x1;}['onprocessinginstruction'](_0x5ed50d,_0x32cd62){this['endIndex']=_0x32cd62;const _0x1fc458=this['getSlice'](_0x5ed50d,_0x32cd62);if(this['cbs']['onprocessinginstruction']){const _0xb531c4=this['getInstructionName'](_0x1fc458);this['cbs']['onprocessinginstruction']('?'+_0xb531c4,'?'+_0x1fc458);}this['startIndex']=_0x32cd62+0x1;}['oncomment'](_0x1bcc8e,_0x131802,_0x265d4c){var _0x32894c,_0x550476,_0x1464bb,_0x4d8329;this['endIndex']=_0x131802,null===(_0x550476=(_0x32894c=this['cbs'])['oncomment'])||void 0x0===_0x550476||_0x550476['call'](_0x32894c,this['getSlice'](_0x1bcc8e,_0x131802-_0x265d4c)),null===(_0x4d8329=(_0x1464bb=this['cbs'])['oncommentend'])||void 0x0===_0x4d8329||_0x4d8329['call'](_0x1464bb),this['startIndex']=_0x131802+0x1;}['oncdata'](_0x9982d8,_0x548958,_0x2827d1){var _0x44f9d4,_0x43c392,_0x18dda3,_0x5c1848,_0x43c039,_0x450d83,_0x4da5cc,_0x262a6c,_0x2d929e,_0x5dc9f8;this['endIndex']=_0x548958;const _0x3d2d12=this['getSlice'](_0x9982d8,_0x548958-_0x2827d1);!this['htmlMode']||this['options']['recognizeCDATA']?(null===(_0x43c392=(_0x44f9d4=this['cbs'])['oncdatastart'])||void 0x0===_0x43c392||_0x43c392['call'](_0x44f9d4),null===(_0x5c1848=(_0x18dda3=this['cbs'])['ontext'])||void 0x0===_0x5c1848||_0x5c1848['call'](_0x18dda3,_0x3d2d12),null===(_0x450d83=(_0x43c039=this['cbs'])['oncdataend'])||void 0x0===_0x450d83||_0x450d83['call'](_0x43c039)):(null===(_0x262a6c=(_0x4da5cc=this['cbs'])['oncomment'])||void 0x0===_0x262a6c||_0x262a6c['call'](_0x4da5cc,'[CDATA['+_0x3d2d12+']]'),null===(_0x5dc9f8=(_0x2d929e=this['cbs'])['oncommentend'])||void 0x0===_0x5dc9f8||_0x5dc9f8['call'](_0x2d929e)),this['startIndex']=_0x548958+0x1;}['onend'](){var _0x9bbf55,_0x59aa20;if(this['cbs']['onclosetag']){this['endIndex']=this['startIndex'];for(let _0x1077d4=0x0;_0x1077d4<this['stack']['length'];_0x1077d4++)this['cbs']['onclosetag'](this['stack'][_0x1077d4],!0x0);}null===(_0x59aa20=(_0x9bbf55=this['cbs'])['onend'])||void 0x0===_0x59aa20||_0x59aa20['call'](_0x9bbf55);}['reset'](){var _0x365a9e,_0x3e2a6f,_0x3989bd,_0x2da587;null===(_0x3e2a6f=(_0x365a9e=this['cbs'])['onreset'])||void 0x0===_0x3e2a6f||_0x3e2a6f['call'](_0x365a9e),this['tokenizer']['reset'](),this['tagname']='',this['attribname']='',this['attribs']=null,this['stack']['length']=0x0,this['startIndex']=0x0,this['endIndex']=0x0,null===(_0x2da587=(_0x3989bd=this['cbs'])['onparserinit'])||void 0x0===_0x2da587||_0x2da587['call'](_0x3989bd,this),this['buffers']['length']=0x0,this['foreignContext']['length']=0x0,this['foreignContext']['unshift'](!this['htmlMode']),this['bufferOffset']=0x0,this['writeIndex']=0x0,this['ended']=!0x1;}['parseComplete'](_0x3eb7b7){this['reset'](),this['end'](_0x3eb7b7);}['getSlice'](_0x279903,_0x5ac593){for(;_0x279903-this['bufferOffset']>=this['buffers'][0x0]['length'];)this['shiftBuffer']();let _0x46e28d=this['buffers'][0x0]['slice'](_0x279903-this['bufferOffset'],_0x5ac593-this['bufferOffset']);for(;_0x5ac593-this['bufferOffset']>this['buffers'][0x0]['length'];)this['shiftBuffer'](),_0x46e28d+=this['buffers'][0x0]['slice'](0x0,_0x5ac593-this['bufferOffset']);return _0x46e28d;}['shiftBuffer'](){this['bufferOffset']+=this['buffers'][0x0]['length'],this['writeIndex']--,this['buffers']['shift']();}['write'](_0x5686cc){var _0x1dc9db,_0x97fa55;this['ended']?null===(_0x97fa55=(_0x1dc9db=this['cbs'])['onerror'])||void 0x0===_0x97fa55||_0x97fa55['call'](_0x1dc9db,new Error('.write()\x20after\x20done!')):(this['buffers']['push'](_0x5686cc),this['tokenizer']['running']&&(this['tokenizer']['write'](_0x5686cc),this['writeIndex']++));}['end'](_0xe54fd){var _0x4c66c1,_0x3758a0;this['ended']?null===(_0x3758a0=(_0x4c66c1=this['cbs'])['onerror'])||void 0x0===_0x3758a0||_0x3758a0['call'](_0x4c66c1,new Error('.end()\x20after\x20done!')):(_0xe54fd&&this['write'](_0xe54fd),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'](_0x1789a7){this['write'](_0x1789a7);}['done'](_0x1d03f5){this['end'](_0x1d03f5);}};var ElementType;function isTag$1(_0x2594f0){return _0x2594f0['type']===ElementType['Tag']||_0x2594f0['type']===ElementType['Script']||_0x2594f0['type']===ElementType['Style'];}!function(_0x54226f){_0x54226f['Root']='root',_0x54226f['Text']='text',_0x54226f['Directive']='directive',_0x54226f['Comment']='comment',_0x54226f['Script']='script',_0x54226f['Style']='style',_0x54226f['Tag']='tag',_0x54226f['CDATA']='cdata',_0x54226f['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'](_0x1676d4){this['parent']=_0x1676d4;}get['previousSibling'](){return this['prev'];}set['previousSibling'](_0x587951){this['prev']=_0x587951;}get['nextSibling'](){return this['next'];}set['nextSibling'](_0x553995){this['next']=_0x553995;}['cloneNode'](_0x20a676=!0x1){return cloneNode(this,_0x20a676);}};class DataNode extends Node$1{constructor(_0x1dd4a4){super(),this['data']=_0x1dd4a4;}get['nodeValue'](){return this['data'];}set['nodeValue'](_0x4bc822){this['data']=_0x4bc822;}}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(_0x3e84bc,_0x20405e){super(_0x20405e),this['name']=_0x3e84bc,this['type']=ElementType['Directive'];}get['nodeType'](){return 0x1;}}class NodeWithChildren extends Node$1{constructor(_0x2d5dee){super(),this['children']=_0x2d5dee;}get['firstChild'](){var _0x30145c;return null!==(_0x30145c=this['children'][0x0])&&void 0x0!==_0x30145c?_0x30145c:null;}get['lastChild'](){return this['children']['length']>0x0?this['children'][this['children']['length']-0x1]:null;}get['childNodes'](){return this['children'];}set['childNodes'](_0x5e2abb){this['children']=_0x5e2abb;}}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(_0x35f3b2,_0x3c8723,_0x47b4eb=[],_0x553bfc='script'===_0x35f3b2?ElementType['Script']:'style'===_0x35f3b2?ElementType['Style']:ElementType['Tag']){super(_0x47b4eb),this['name']=_0x35f3b2,this['attribs']=_0x3c8723,this['type']=_0x553bfc;}get['nodeType'](){return 0x1;}get['tagName'](){return this['name'];}set['tagName'](_0x446526){this['name']=_0x446526;}get['attributes'](){return Object['keys'](this['attribs'])['map'](_0x5f33be=>{var _0x532f96,_0x307806;return{'name':_0x5f33be,'value':this['attribs'][_0x5f33be],'namespace':null===(_0x532f96=this['x-attribsNamespace'])||void 0x0===_0x532f96?void 0x0:_0x532f96[_0x5f33be],'prefix':null===(_0x307806=this['x-attribsPrefix'])||void 0x0===_0x307806?void 0x0:_0x307806[_0x5f33be]};});}};function isTag(_0x386066){return isTag$1(_0x386066);}function isCDATA(_0x313fe4){return _0x313fe4['type']===ElementType['CDATA'];}function isText$1(_0x5c6a95){return _0x5c6a95['type']===ElementType['Text'];}function isComment(_0x174c91){return _0x174c91['type']===ElementType['Comment'];}function isDirective(_0x4dda60){return _0x4dda60['type']===ElementType['Directive'];}function isDocument(_0x5a8fe1){return _0x5a8fe1['type']===ElementType['Root'];}function hasChildren(_0x5830d2){return Object['prototype']['hasOwnProperty']['call'](_0x5830d2,'children');}function cloneNode(_0x200b35,_0x3f445f=!0x1){let _0x3b02e1;if(isText$1(_0x200b35))_0x3b02e1=new Text$1(_0x200b35['data']);else{if(isComment(_0x200b35))_0x3b02e1=new Comment$1(_0x200b35['data']);else{if(isTag(_0x200b35)){const _0x2c71da=_0x3f445f?cloneChildren(_0x200b35['children']):[],_0x151e0f=new Element$3(_0x200b35['name'],{..._0x200b35['attribs']},_0x2c71da);_0x2c71da['forEach'](_0x5f2830=>_0x5f2830['parent']=_0x151e0f),null!=_0x200b35['namespace']&&(_0x151e0f['namespace']=_0x200b35['namespace']),_0x200b35['x-attribsNamespace']&&(_0x151e0f['x-attribsNamespace']={..._0x200b35['x-attribsNamespace']}),_0x200b35['x-attribsPrefix']&&(_0x151e0f['x-attribsPrefix']={..._0x200b35['x-attribsPrefix']}),_0x3b02e1=_0x151e0f;}else{if(isCDATA(_0x200b35)){const _0x2ad0f5=_0x3f445f?cloneChildren(_0x200b35['children']):[],_0x5d3820=new CDATA(_0x2ad0f5);_0x2ad0f5['forEach'](_0x34ba8c=>_0x34ba8c['parent']=_0x5d3820),_0x3b02e1=_0x5d3820;}else{if(isDocument(_0x200b35)){const _0x2b0a92=_0x3f445f?cloneChildren(_0x200b35['children']):[],_0x1615f8=new Document(_0x2b0a92);_0x2b0a92['forEach'](_0x13fad3=>_0x13fad3['parent']=_0x1615f8),_0x200b35['x-mode']&&(_0x1615f8['x-mode']=_0x200b35['x-mode']),_0x3b02e1=_0x1615f8;}else{if(!isDirective(_0x200b35))throw new Error('Not\x20implemented\x20yet:\x20'+_0x200b35['type']);{const _0x412c26=new ProcessingInstruction(_0x200b35['name'],_0x200b35['data']);null!=_0x200b35['x-name']&&(_0x412c26['x-name']=_0x200b35['x-name'],_0x412c26['x-publicId']=_0x200b35['x-publicId'],_0x412c26['x-systemId']=_0x200b35['x-systemId']),_0x3b02e1=_0x412c26;}}}}}}return _0x3b02e1['startIndex']=_0x200b35['startIndex'],_0x3b02e1['endIndex']=_0x200b35['endIndex'],null!=_0x200b35['sourceCodeLocation']&&(_0x3b02e1['sourceCodeLocation']=_0x200b35['sourceCodeLocation']),_0x3b02e1;}function cloneChildren(_0x4e6f6d){const _0x2b8fc0=_0x4e6f6d['map'](_0x2423db=>cloneNode(_0x2423db,!0x0));for(let _0x2a8aed=0x1;_0x2a8aed<_0x2b8fc0['length'];_0x2a8aed++)_0x2b8fc0[_0x2a8aed]['prev']=_0x2b8fc0[_0x2a8aed-0x1],_0x2b8fc0[_0x2a8aed-0x1]['next']=_0x2b8fc0[_0x2a8aed];return _0x2b8fc0;}const defaultOpts={'withStartIndices':!0x1,'withEndIndices':!0x1,'xmlMode':!0x1};class DomHandler{constructor(_0x15d2b7,_0xf41b92,_0x2cc3b0){this['dom']=[],this['root']=new Document(this['dom']),this['done']=!0x1,this['tagStack']=[this['root']],this['lastNode']=null,this['parser']=null,'function'==typeof _0xf41b92&&(_0x2cc3b0=_0xf41b92,_0xf41b92=defaultOpts),'object'==typeof _0x15d2b7&&(_0xf41b92=_0x15d2b7,_0x15d2b7=void 0x0),this['callback']=null!=_0x15d2b7?_0x15d2b7:null,this['options']=null!=_0xf41b92?_0xf41b92:defaultOpts,this['elementCB']=null!=_0x2cc3b0?_0x2cc3b0:null;}['onparserinit'](_0x3ee279){this['parser']=_0x3ee279;}['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'](_0x48fd3e){this['handleCallback'](_0x48fd3e);}['onclosetag'](){this['lastNode']=null;const _0x4eb6f2=this['tagStack']['pop']();this['options']['withEndIndices']&&(_0x4eb6f2['endIndex']=this['parser']['endIndex']),this['elementCB']&&this['elementCB'](_0x4eb6f2);}['onopentag'](_0x24a1d5,_0x23a57c){const _0x1f62b8=this['options']['xmlMode']?ElementType['Tag']:void 0x0,_0x5ddd02=new Element$3(_0x24a1d5,_0x23a57c,void 0x0,_0x1f62b8);this['addNode'](_0x5ddd02),this['tagStack']['push'](_0x5ddd02);}['ontext'](_0x22db18){const {lastNode:_0x538723}=this;if(_0x538723&&_0x538723['type']===ElementType['Text'])_0x538723['data']+=_0x22db18,this['options']['withEndIndices']&&(_0x538723['endIndex']=this['parser']['endIndex']);else{const _0x573408=new Text$1(_0x22db18);this['addNode'](_0x573408),this['lastNode']=_0x573408;}}['oncomment'](_0xad2780){if(this['lastNode']&&this['lastNode']['type']===ElementType['Comment'])return void(this['lastNode']['data']+=_0xad2780);const _0x434ef5=new Comment$1(_0xad2780);this['addNode'](_0x434ef5),this['lastNode']=_0x434ef5;}['oncommentend'](){this['lastNode']=null;}['oncdatastart'](){const _0x2ede2c=new Text$1(''),_0x520fed=new CDATA([_0x2ede2c]);this['addNode'](_0x520fed),_0x2ede2c['parent']=_0x520fed,this['lastNode']=_0x2ede2c;}['oncdataend'](){this['lastNode']=null;}['onprocessinginstruction'](_0x311ca4,_0x228474){const _0x3403d5=new ProcessingInstruction(_0x311ca4,_0x228474);this['addNode'](_0x3403d5);}['handleCallback'](_0x843497){if('function'==typeof this['callback'])this['callback'](_0x843497,this['dom']);else{if(_0x843497)throw _0x843497;}}['addNode'](_0x222078){const _0x4ea8c8=this['tagStack'][this['tagStack']['length']-0x1],_0x5e5c1a=_0x4ea8c8['children'][_0x4ea8c8['children']['length']-0x1];this['options']['withStartIndices']&&(_0x222078['startIndex']=this['parser']['startIndex']),this['options']['withEndIndices']&&(_0x222078['endIndex']=this['parser']['endIndex']),_0x4ea8c8['children']['push'](_0x222078),_0x5e5c1a&&(_0x222078['prev']=_0x5e5c1a,_0x5e5c1a['next']=_0x222078),_0x222078['parent']=_0x4ea8c8,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']?(_0x1caf3e,_0x53580a)=>_0x1caf3e['codePointAt'](_0x53580a):(_0x2e709b,_0x702d3b)=>0xd800==(0xfc00&_0x2e709b['charCodeAt'](_0x702d3b))?0x400*(_0x2e709b['charCodeAt'](_0x702d3b)-0xd800)+_0x2e709b['charCodeAt'](_0x702d3b+0x1)-0xdc00+0x10000:_0x2e709b['charCodeAt'](_0x702d3b);function encodeXML(_0x1dddd9){let _0x5e7f3d,_0x2508c3='',_0x436c57=0x0;for(;null!==(_0x5e7f3d=xmlReplacer['exec'](_0x1dddd9));){const _0x3686b4=_0x5e7f3d['index'],_0x51025c=_0x1dddd9['charCodeAt'](_0x3686b4),_0x3a0c56=xmlCodeMap['get'](_0x51025c);void 0x0!==_0x3a0c56?(_0x2508c3+=_0x1dddd9['substring'](_0x436c57,_0x3686b4)+_0x3a0c56,_0x436c57=_0x3686b4+0x1):(_0x2508c3+=_0x1dddd9['substring'](_0x436c57,_0x3686b4)+'&#x'+getCodePoint(_0x1dddd9,_0x3686b4)['toString'](0x10)+';',_0x436c57=xmlReplacer['lastIndex']+=Number(0xd800==(0xfc00&_0x51025c)));}return _0x2508c3+_0x1dddd9['substr'](_0x436c57);}function getEscaper(_0x8f23ae,_0x3aa23b){return function(_0x21daa9){let _0x105d7b,_0x3546fd=0x0,_0x486961='';for(;_0x105d7b=_0x8f23ae['exec'](_0x21daa9);)_0x3546fd!==_0x105d7b['index']&&(_0x486961+=_0x21daa9['substring'](_0x3546fd,_0x105d7b['index'])),_0x486961+=_0x3aa23b['get'](_0x105d7b[0x0]['charCodeAt'](0x0)),_0x3546fd=_0x105d7b['index']+0x1;return _0x486961+_0x21daa9['substring'](_0x3546fd);};}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'](_0x404590=>[_0x404590['toLowerCase'](),_0x404590])),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'](_0x30628c=>[_0x30628c['toLowerCase'](),_0x30628c])),unencodedElements=new Set(['style','script','xmp','iframe','noembed','noframes','plaintext','noscript']);function replaceQuotes(_0x68819d){return _0x68819d['replace'](/"/g,'&quot;');}function formatAttributes(_0x40525a,_0x2e07fb){var _0x19b25a;if(!_0x40525a)return;const _0x323c81=!0x1===(null!==(_0x19b25a=_0x2e07fb['encodeEntities'])&&void 0x0!==_0x19b25a?_0x19b25a:_0x2e07fb['decodeEntities'])?replaceQuotes:_0x2e07fb['xmlMode']||'utf8'!==_0x2e07fb['encodeEntities']?encodeXML:escapeAttribute;return Object['keys'](_0x40525a)['map'](_0x4cba4d=>{var _0x43995a,_0x35e426;const _0x31baf2=null!==(_0x43995a=_0x40525a[_0x4cba4d])&&void 0x0!==_0x43995a?_0x43995a:'';return'foreign'===_0x2e07fb['xmlMode']&&(_0x4cba4d=null!==(_0x35e426=attributeNames['get'](_0x4cba4d))&&void 0x0!==_0x35e426?_0x35e426:_0x4cba4d),_0x2e07fb['emptyAttrs']||_0x2e07fb['xmlMode']||''!==_0x31baf2?_0x4cba4d+'=\x22'+_0x323c81(_0x31baf2)+'\x22':_0x4cba4d;})['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(_0x12b6e0,_0x320969={}){const _0x7ba08b='length'in _0x12b6e0?_0x12b6e0:[_0x12b6e0];let _0x3390c9='';for(let _0x1a5413=0x0;_0x1a5413<_0x7ba08b['length'];_0x1a5413++)_0x3390c9+=renderNode(_0x7ba08b[_0x1a5413],_0x320969);return _0x3390c9;}function renderNode(_0xbf48f2,_0x1d0760){switch(_0xbf48f2['type']){case Root:return render(_0xbf48f2['children'],_0x1d0760);case Doctype:case Directive:return renderDirective(_0xbf48f2);case Comment$2:return renderComment(_0xbf48f2);case CDATA$1:return renderCdata(_0xbf48f2);case Script:case Style:case Tag$1:return renderTag(_0xbf48f2,_0x1d0760);case Text$2:return renderText(_0xbf48f2,_0x1d0760);}}const foreignModeIntegrationPoints=new Set(['mi','mo','mn','ms','mtext','annotation-xml','foreignObject','desc','title']),foreignElements=new Set(['svg','math']);function renderTag(_0x2fe968,_0x40f303){var _0x1c0c5c;'foreign'===_0x40f303['xmlMode']&&(_0x2fe968['name']=null!==(_0x1c0c5c=elementNames['get'](_0x2fe968['name']))&&void 0x0!==_0x1c0c5c?_0x1c0c5c:_0x2fe968['name'],_0x2fe968['parent']&&foreignModeIntegrationPoints['has'](_0x2fe968['parent']['name'])&&(_0x40f303={..._0x40f303,'xmlMode':!0x1})),!_0x40f303['xmlMode']&&foreignElements['has'](_0x2fe968['name'])&&(_0x40f303={..._0x40f303,'xmlMode':'foreign'});let _0x12a4de='<'+_0x2fe968['name'];const _0x4c069d=formatAttributes(_0x2fe968['attribs'],_0x40f303);return _0x4c069d&&(_0x12a4de+='\x20'+_0x4c069d),0x0===_0x2fe968['children']['length']&&(_0x40f303['xmlMode']?!0x1!==_0x40f303['selfClosingTags']:_0x40f303['selfClosingTags']&&singleTag['has'](_0x2fe968['name']))?(_0x40f303['xmlMode']||(_0x12a4de+='\x20'),_0x12a4de+='/>'):(_0x12a4de+='>',_0x2fe968['children']['length']>0x0&&(_0x12a4de+=render(_0x2fe968['children'],_0x40f303)),!_0x40f303['xmlMode']&&singleTag['has'](_0x2fe968['name'])||(_0x12a4de+='</'+_0x2fe968['name']+'>')),_0x12a4de;}function renderDirective(_0x9e5f89){return'<'+_0x9e5f89['data']+'>';}function renderText(_0x3585b3,_0xef5665){var _0x102f2c;let _0x1ac013=_0x3585b3['data']||'';return!0x1===(null!==(_0x102f2c=_0xef5665['encodeEntities'])&&void 0x0!==_0x102f2c?_0x102f2c:_0xef5665['decodeEntities'])||!_0xef5665['xmlMode']&&_0x3585b3['parent']&&unencodedElements['has'](_0x3585b3['parent']['name'])||(_0x1ac013=_0xef5665['xmlMode']||'utf8'!==_0xef5665['encodeEntities']?encodeXML(_0x1ac013):escapeText(_0x1ac013)),_0x1ac013;}function renderCdata(_0x540ef2){return'<![CDATA['+_0x540ef2['children'][0x0]['data']+']]>';}function renderComment(_0x56b470){return'<!--'+_0x56b470['data']+'-->';}function textContent(_0x3c6e1a){return Array['isArray'](_0x3c6e1a)?_0x3c6e1a['map'](textContent)['join'](''):hasChildren(_0x3c6e1a)&&!isComment(_0x3c6e1a)?textContent(_0x3c6e1a['children']):isText$1(_0x3c6e1a)?_0x3c6e1a['data']:'';}function getChildren$1(_0x3fac45){return hasChildren(_0x3fac45)?_0x3fac45['children']:[];}function getParent(_0x19c223){return _0x19c223['parent']||null;}function removeElement(_0x1f1d9b){if(_0x1f1d9b['prev']&&(_0x1f1d9b['prev']['next']=_0x1f1d9b['next']),_0x1f1d9b['next']&&(_0x1f1d9b['next']['prev']=_0x1f1d9b['prev']),_0x1f1d9b['parent']){const _0x35ccfd=_0x1f1d9b['parent']['children'],_0xeb0030=_0x35ccfd['lastIndexOf'](_0x1f1d9b);_0xeb0030>=0x0&&_0x35ccfd['splice'](_0xeb0030,0x1);}_0x1f1d9b['next']=null,_0x1f1d9b['prev']=null,_0x1f1d9b['parent']=null;}function replaceElement(_0x2388e5,_0x287b47){const _0x359736=_0x287b47['prev']=_0x2388e5['prev'];_0x359736&&(_0x359736['next']=_0x287b47);const _0xbc548e=_0x287b47['next']=_0x2388e5['next'];_0xbc548e&&(_0xbc548e['prev']=_0x287b47);const _0x2ec23d=_0x287b47['parent']=_0x2388e5['parent'];if(_0x2ec23d){const _0x26dff9=_0x2ec23d['children'];_0x26dff9[_0x26dff9['lastIndexOf'](_0x2388e5)]=_0x287b47,_0x2388e5['parent']=null;}}function appendChild(_0x14acf5,_0x3509d9){if(removeElement(_0x3509d9),_0x3509d9['next']=null,_0x3509d9['parent']=_0x14acf5,_0x14acf5['children']['push'](_0x3509d9)>0x1){const _0x244490=_0x14acf5['children'][_0x14acf5['children']['length']-0x2];_0x244490['next']=_0x3509d9,_0x3509d9['prev']=_0x244490;}else _0x3509d9['prev']=null;}function append(_0x4d2545,_0x19da2a){removeElement(_0x19da2a);const {parent:_0x37d7ff}=_0x4d2545,_0x40ca42=_0x4d2545['next'];if(_0x19da2a['next']=_0x40ca42,_0x19da2a['prev']=_0x4d2545,_0x4d2545['next']=_0x19da2a,_0x19da2a['parent']=_0x37d7ff,_0x40ca42){if(_0x40ca42['prev']=_0x19da2a,_0x37d7ff){const _0x43ac1a=_0x37d7ff['children'];_0x43ac1a['splice'](_0x43ac1a['lastIndexOf'](_0x40ca42),0x0,_0x19da2a);}}else _0x37d7ff&&_0x37d7ff['children']['push'](_0x19da2a);}function prependChild(_0x423a92,_0x1ccfdc){if(removeElement(_0x1ccfdc),_0x1ccfdc['parent']=_0x423a92,_0x1ccfdc['prev']=null,0x1!==_0x423a92['children']['unshift'](_0x1ccfdc)){const _0x5937de=_0x423a92['children'][0x1];_0x5937de['prev']=_0x1ccfdc,_0x1ccfdc['next']=_0x5937de;}else _0x1ccfdc['next']=null;}function prepend(_0x14e2e4,_0x52e075){removeElement(_0x52e075);const {parent:_0x7d62b3}=_0x14e2e4;if(_0x7d62b3){const _0x2aab0b=_0x7d62b3['children'];_0x2aab0b['splice'](_0x2aab0b['indexOf'](_0x14e2e4),0x0,_0x52e075);}_0x14e2e4['prev']&&(_0x14e2e4['prev']['next']=_0x52e075),_0x52e075['parent']=_0x7d62b3,_0x52e075['prev']=_0x14e2e4['prev'],_0x52e075['next']=_0x14e2e4,_0x14e2e4['prev']=_0x52e075;}function find$1(_0x5511ea,_0x3561d2,_0x204f66,_0x57091c){const _0x2709f7=[],_0x3d7ec9=[Array['isArray'](_0x3561d2)?_0x3561d2:[_0x3561d2]],_0xbcf901=[0x0];for(;;){if(_0xbcf901[0x0]>=_0x3d7ec9[0x0]['length']){if(0x1===_0xbcf901['length'])return _0x2709f7;_0x3d7ec9['shift'](),_0xbcf901['shift']();continue;}const _0x21db51=_0x3d7ec9[0x0][_0xbcf901[0x0]++];if(_0x5511ea(_0x21db51)&&(_0x2709f7['push'](_0x21db51),--_0x57091c<=0x0))return _0x2709f7;hasChildren(_0x21db51)&&_0x21db51['children']['length']>0x0&&(_0xbcf901['unshift'](0x0),_0x3d7ec9['unshift'](_0x21db51['children']));}}function findOne(_0x1c0ec4,_0xc51a9b,_0x10dbd9=!0x0){const _0x41bc4b=Array['isArray'](_0xc51a9b)?_0xc51a9b:[_0xc51a9b];for(let _0x341792=0x0;_0x341792<_0x41bc4b['length'];_0x341792++){const _0x5553ab=_0x41bc4b[_0x341792];if(isTag(_0x5553ab)&&_0x1c0ec4(_0x5553ab))return _0x5553ab;if(_0x10dbd9&&hasChildren(_0x5553ab)&&_0x5553ab['children']['length']>0x0){const _0xf4d0be=findOne(_0x1c0ec4,_0x5553ab['children'],!0x0);if(_0xf4d0be)return _0xf4d0be;}}return null;}function findAll(_0x9506ae,_0x4cbce1){const _0x39db13=[],_0xe580e0=[Array['isArray'](_0x4cbce1)?_0x4cbce1:[_0x4cbce1]],_0x2e3ac8=[0x0];for(;;){if(_0x2e3ac8[0x0]>=_0xe580e0[0x0]['length']){if(0x1===_0xe580e0['length'])return _0x39db13;_0xe580e0['shift'](),_0x2e3ac8['shift']();continue;}const _0x4a0a7b=_0xe580e0[0x0][_0x2e3ac8[0x0]++];isTag(_0x4a0a7b)&&_0x9506ae(_0x4a0a7b)&&_0x39db13['push'](_0x4a0a7b),hasChildren(_0x4a0a7b)&&_0x4a0a7b['children']['length']>0x0&&(_0x2e3ac8['unshift'](0x0),_0xe580e0['unshift'](_0x4a0a7b['children']));}}function parseDocument(_0x337e83,_0xe559b3){const _0x1a5229=new DomHandler(void 0x0,_0xe559b3);return new Parser$1(_0x1a5229,_0xe559b3)['end'](_0x337e83),_0x1a5229['root'];}function parse$2(_0x93c13f){return parseDocument(_0x93c13f);}function serialize(_0x129cd5){return render(_0x129cd5);}function findByAttribute(_0x5dc16a,_0xfa883c,_0x5e7441){const _0x356755=null!==_0xfa883c?_0x11cf6c=>_0x11cf6c['attribs'][_0x5dc16a]===_0xfa883c:_0x46bc6d=>Boolean(_0x46bc6d['attribs'][_0x5dc16a]);return findOne(_0x3b3702=>isTag(_0x3b3702)&&_0x356755(_0x3b3702),_0x5e7441);}function findAllByAttribute(_0x177b86,_0x989843,_0x529c41){const _0x4f412a=null!==_0x989843?_0x5da003=>_0x5da003['attribs'][_0x177b86]===_0x989843:_0x2e9b33=>Boolean(_0x2e9b33['attribs'][_0x177b86]);return findAll(_0x10235f=>isTag(_0x10235f)&&_0x4f412a(_0x10235f),_0x529c41);}function findAllComments(_0x33b930){return find$1(_0xa9c2c2=>isComment(_0xa9c2c2),_0x33b930,!0x0,0x1/0x0);}function getAttribute(_0x14fb6b,_0x4b4932){return _0x14fb6b&&isTag(_0x14fb6b)?_0x14fb6b['attribs'][_0x4b4932]:null;}function setAttribute(_0x3e7576,_0x28cca2,_0x59484f){isTag(_0x3e7576)&&(null===_0x59484f?delete _0x3e7576['attribs'][_0x28cca2]:_0x3e7576['attribs'][_0x28cca2]=_0x59484f);}function insertElement(_0x5cdc30,_0x296f7f,_0x13b37a){const _0x4d8513=_0x296f7f['cloneNode'](!0x0);'beforebegin'===_0x13b37a?prepend(_0x5cdc30,_0x4d8513):'afterbegin'===_0x13b37a?prependChild(_0x5cdc30,_0x4d8513):'beforeend'===_0x13b37a?appendChild(_0x5cdc30,_0x4d8513):'afterend'===_0x13b37a&&append(_0x5cdc30,_0x4d8513);}function moveElement(_0x455407,_0x433af2){removeElement(_0x455407),replaceElement(_0x433af2,_0x455407);}function clone$2(_0x3470a9){return _0x3470a9['cloneNode'](!0x0);}function getParents(_0x4c3ed2){const _0x3e98ba=[];let _0x2bc84b=_0x4c3ed2;for(;_0x2bc84b;)_0x2bc84b=getParent(_0x2bc84b),_0x2bc84b&&_0x3e98ba['push'](_0x2bc84b);return _0x3e98ba;}function normalizeHTML(_0x3c809f){return _0x3c809f['replace'](/^\s+/gm,'')['replace'](/\s+$/gm,'')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/>\s*</g,'><');}function areNodesSame(_0x2ff532,_0x53c2ff){return normalizeHTML(serialize(_0x2ff532))===normalizeHTML(serialize(_0x53c2ff));}function getNodeNestingLevel(_0x36ab78){let _0x6fcf31=0x0;for(;_0x36ab78['parentNode'];)_0x36ab78=_0x36ab78['parentNode'],_0x6fcf31++;return _0x6fcf31;}function removeElementsAfter(_0x24181f){const _0x3dac14=[];let _0x28c7dc=_0x24181f['nextSibling'];for(;_0x28c7dc;)_0x3dac14['push'](_0x28c7dc),_0x28c7dc=_0x28c7dc['nextSibling'];_0x3dac14['forEach'](_0x3667c0=>{removeElement(_0x3667c0);});}class AIResponseParser extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_m2html'];constructor(){super(),this['_m2html']=new MarkdownGfmMdToHtml();}['convertMarkdownToHTML'](_0x35da57){const _0x65ab97=this['_m2html']['parse'](_0x35da57);return this['parseAndNormalizeHTML'](_0x65ab97);}['parseAndNormalizeHTML'](_0x2e037b){return this['_parseHTML'](_0x2e037b);}['_parseHTML'](_0x252114){const _0x4edf0c=parse$2('<dummy>'+_0x252114['replace'](/^\t+/gm,'\x20')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/<[^>]*?$/g,'')+'</dummy>');return _0x4edf0c['children']=_0x4edf0c['children'][0x0]['children'],_0x4edf0c;}}class AIResponseApplier extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_generateUid'];['_touchedNodesState']={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};['_existingDataIds']=new Set();constructor(_0x3dbd85){super(),this['_generateUid']=_0x3dbd85||uid;}['merge'](_0x3af632,_0x4c19a6,_0x28a5f0){const _0x5d44cb=clone$2(_0x3af632);if(0x0===_0x4c19a6['childNodes']['length']){const _0x77edf3=[];return findAllByAttribute('data-id','new-element',_0x5d44cb)['forEach'](_0x18ab38=>{const _0x5901be=this['_generateUid']();setAttribute(_0x18ab38,'data-id',_0x5901be),_0x77edf3['push'](_0x5901be);}),this['_removeSpecialComments'](_0x5d44cb),{'parsedContent':_0x5d44cb,'newNodeIds':_0x77edf3,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x28a5f0&&_0x28a5f0['markUnstableElements']&&this['_markLastTagElementUnstable'](_0x5d44cb),this['_touchedNodesState']['newIds']=[],this['_touchedNodesState']['modifiedIds']=[],this['_touchedNodesState']['removedIds']=[],this['_touchedNodesState']['invalidIds']=[],this['_touchedNodesState']['lastTouchedId']=null,this['_existingDataIds']=new Set(findAllByAttribute('data-id',null,_0x4c19a6)['map'](_0x5e304e=>getAttribute(_0x5e304e,'data-id'))['filter'](_0x37aff6=>!!_0x37aff6));let _0x4fa587=-0x1,_0x189769=!0x1;const _0x5c0636=_0x5d44cb['childNodes'],_0x51ce30=Array['from'](_0x5c0636)['filter'](_0x2b785b=>!(0x3===_0x2b785b['nodeType']&&''===serialize(_0x2b785b)['trim']())),_0x4cf87b=_0x51ce30['length'];for(let _0x4db923=0x0;_0x4db923<_0x4cf87b;_0x4db923++){const _0x10e004=_0x51ce30[_0x4db923],_0x59211d=_0x51ce30[_0x4db923+0x1];if(this['_isNewNode'](_0x10e004)){if(-0x1===_0x4fa587&&(_0x4fa587=_0x4db923),this['_markWrappedElements'](_0x10e004),!this['_isNewNode'](_0x59211d)){const [_0x2ccab5,_0x44a64d]=this['_findReferenceNode'](_0x10e004,_0x189769,_0x4c19a6);if(_0x2ccab5){const _0x58b6c9=Array['from'](_0x51ce30)['slice'](_0x4fa587,_0x4db923+0x1);this['_insertNodes'](_0x2ccab5,_0x58b6c9,_0x44a64d),_0x4fa587=-0x1;}}}else{if(this['_isExistingContentComment'](_0x10e004))_0x189769=!0x0;else{if(this['_isExistingNode'](_0x10e004)){const _0x3f3d1e=getAttribute(_0x10e004,'data-id');if(_0x3f3d1e&&this['_existingDataIds']['has'](_0x3f3d1e)){const _0x269856=findByAttribute('data-id',_0x3f3d1e,_0x4c19a6);this['_replaceNode'](_0x269856,_0x10e004);}if(this['_touchedNodesState']['removedIds']['includes'](_0x3f3d1e)){const _0x3ca239=this['_touchedNodesState']['removedIds']['indexOf'](_0x3f3d1e);this['_touchedNodesState']['removedIds']['splice'](_0x3ca239,0x1);}}else{if(this['_isDelNode'](_0x10e004)){const _0x3432a9=getAttribute(_0x10e004,'data-id');this['_touchedNodesState']['modifiedIds']['includes'](_0x3432a9)||this['_storeDeletedElementIds'](_0x10e004);}}}}}for(const _0x36baf4 of this['_touchedNodesState']['removedIds']){const _0x287f91=findByAttribute('data-id',_0x36baf4,_0x4c19a6);if(_0x287f91){if(_0x28a5f0&&_0x28a5f0['replaceRemovedWith']){this['_touchedNodesState']['lastTouchedId']=_0x36baf4;const _0x340e3a=_0x28a5f0['replaceRemovedWith']['cloneNode'](!0x0);setAttribute(_0x340e3a,'data-id',_0x36baf4),setAttribute(_0x340e3a,'data-removed','true'),replaceElement(_0x287f91,_0x340e3a);}else removeElement(_0x287f91);}}if(findAllByAttribute('data-wrapped-id',null,_0x4c19a6)['forEach'](_0x334075=>{const _0x3f8963=findByAttribute('data-id',getAttribute(_0x334075,'data-wrapped-id'),_0x4c19a6);_0x3f8963&&moveElement(_0x3f8963,_0x334075);}),findAllByAttribute('data-id','new-element',_0x4c19a6)['forEach'](_0x242af1=>{const _0x14e7be=this['_getUid'](_0x242af1);setAttribute(_0x242af1,'data-id',_0x14e7be),this['_touchedNodesState']['newIds']['push'](_0x14e7be);}),this['_removeSpecialComments'](_0x4c19a6),_0x28a5f0&&_0x28a5f0['markUnstableElements']&&this['_markUnstableElements'](_0x4c19a6,_0x28a5f0['markUnstableElementsDepth']||0x0),_0x28a5f0&&_0x28a5f0['cutAfterLastChange']&&this['_touchedNodesState']['lastTouchedId']){let _0x547330=findByAttribute('data-id',this['_touchedNodesState']['lastTouchedId'],_0x4c19a6);for(;_0x547330;)removeElementsAfter(_0x547330),_0x547330=_0x547330['parentNode'];}return{'parsedContent':_0x4c19a6,'newNodeIds':this['_touchedNodesState']['newIds'],'modifiedNodeIds':this['_touchedNodesState']['modifiedIds'],'removedNodeIds':this['_touchedNodesState']['removedIds']};}['_insertNodes'](_0x4c477f,_0xd3cd1b,_0x1bd5d7){for(const _0x4f1e36 of _0xd3cd1b){const _0x1e6d3d=this['_getUid'](_0x4f1e36);setAttribute(_0x4f1e36,'data-id',_0x1e6d3d),this['_touchedNodesState']['newIds']['push'](_0x1e6d3d),this['_touchedNodesState']['lastTouchedId']=_0x1e6d3d;}const _0x5244f1='afterbegin'===_0x1bd5d7||'afterend'===_0x1bd5d7?_0xd3cd1b['reverse']():_0xd3cd1b;for(const _0x55f449 of _0x5244f1)insertElement(_0x4c477f,_0x55f449,_0x1bd5d7);}['_replaceNode'](_0x5f083d,_0x48cec1){if(!_0x5f083d)return;if(areNodesSame(_0x5f083d,_0x48cec1))return;const _0x26c726=this['_getUid'](_0x5f083d);setAttribute(_0x48cec1,'data-id',_0x26c726),this['_touchedNodesState']['modifiedIds']['push'](_0x26c726),this['_touchedNodesState']['lastTouchedId']=_0x26c726,replaceElement(_0x5f083d,_0x48cec1['cloneNode'](!0x0));}['_findReferenceNode'](_0xe9ffdd,_0x48a57c,_0x7caf16){const _0x425055=this['_findPrevElementWithDataId'](_0xe9ffdd,!0x1);if(_0x425055){const _0x378f9c=this['_getNodeDataId'](_0x425055),_0x370d3a=findByAttribute('data-id',_0x378f9c,_0x7caf16);if(_0x370d3a)return[_0x370d3a,'afterend'];this['_touchedNodesState']['invalidIds']['push'](_0x378f9c);}const _0x34e037=this['_findNextElementWithDataId'](_0xe9ffdd,!0x1);if(_0x34e037){const _0x1d9e72=this['_getNodeDataId'](_0x34e037),_0x44176c=findByAttribute('data-id',_0x1d9e72,_0x7caf16);if(_0x44176c)return[_0x44176c,'beforebegin'];this['_touchedNodesState']['invalidIds']['push'](_0x1d9e72);}return _0x48a57c?_0xe9ffdd['nextSibling']?this['_findFallbackReferenceNode'](_0xe9ffdd,_0x7caf16):[_0x7caf16['childNodes'][_0x7caf16['childNodes']['length']-0x1],'afterend']:[_0x7caf16['childNodes'][0x0],'beforebegin'];}['_findFallbackReferenceNode'](_0x26fc34,_0x526ac1){const _0x4eb53f=[],_0x5eebaa=this['_findPrevElementWithDataId'](_0x26fc34,!0x0);if(_0x5eebaa){const _0x9aebfa=findByAttribute('data-id',this['_getNodeDataId'](_0x5eebaa),_0x526ac1);_0x9aebfa&&_0x4eb53f['push']([_0x9aebfa,'afterend']);}const _0x16a58a=this['_findNextElementWithDataId'](_0x26fc34,!0x0);if(_0x16a58a){const _0x578261=findByAttribute('data-id',this['_getNodeDataId'](_0x16a58a),_0x526ac1);_0x578261&&_0x4eb53f['push']([_0x578261,'beforebegin']);}if(_0x4eb53f['length']>0x1)return getNodeNestingLevel(_0x4eb53f[0x0][0x0])<=getNodeNestingLevel(_0x4eb53f[0x1][0x0])?_0x4eb53f[0x0]:_0x4eb53f[0x1];return 0x1===_0x4eb53f['length']?_0x4eb53f[0x0]:[_0x526ac1['lastChild'],'afterend'];}['_findNextElementWithDataId'](_0x20931f,_0x5455bf){let _0x45fb01=_0x20931f['nextSibling'],_0x126352=null,_0x3a53eb=!0x1;for(;_0x45fb01;){if(isComment(_0x45fb01)){if(this['_isDelNode'](_0x45fb01)&&(_0x126352=_0x45fb01),this['_isExistingContentComment'](_0x45fb01)&&_0x5455bf&&!_0x3a53eb){_0x3a53eb=!0x0,_0x45fb01=_0x45fb01['nextSibling'];continue;}break;}const _0x3ffd12=getAttribute(_0x45fb01,'data-id');if(_0x3ffd12&&'new-element'!==_0x3ffd12&&this['_existingDataIds']['has'](_0x3ffd12)){_0x126352=_0x45fb01;break;}_0x45fb01=_0x45fb01['nextSibling'];}return _0x126352;}['_findPrevElementWithDataId'](_0x322b67,_0x19e48c){let _0x2e4791=_0x322b67['previousSibling'],_0x47e3f0=null,_0x1f1606=!0x1;for(;_0x2e4791;){if(isComment(_0x2e4791)){if(this['_isDelNode'](_0x2e4791)&&(_0x47e3f0=_0x2e4791),this['_isExistingContentComment'](_0x2e4791)&&_0x19e48c&&!_0x1f1606){_0x1f1606=!0x0,_0x2e4791=_0x2e4791['previousSibling'];continue;}break;}const _0x101b31=getAttribute(_0x2e4791,'data-id');if(_0x101b31&&'new-element'!==_0x101b31&&this['_existingDataIds']['has'](_0x101b31)){_0x47e3f0=_0x2e4791;break;}_0x2e4791=_0x2e4791['previousSibling'];}return _0x47e3f0;}['_markWrappedElements'](_0x3bdcff){isTag(_0x3bdcff)&&findAllByAttribute('data-id',null,_0x3bdcff)['forEach'](_0x160db1=>{this['_isExistingNode'](_0x160db1)&&!this['_hasWrappedParent'](_0x160db1)&&(setAttribute(_0x160db1,'data-wrapped-id',getAttribute(_0x160db1,'data-id')),setAttribute(_0x160db1,'data-id',null));});}['_getNodeDataId'](_0x344597){if(!_0x344597)return null;if(isTag(_0x344597))return getAttribute(_0x344597,'data-id');if(isComment(_0x344597)){const _0x51eb65=serialize(_0x344597)['match'](/removed[\s*-]data-id="([^"]+)"/);if(_0x51eb65&&_0x51eb65[0x1])return _0x51eb65[0x1];}return null;}['_storeDeletedElementIds'](_0x165205){if(isComment(_0x165205)){const _0x224f2f=serialize(_0x165205)['match'](/removed[\s*-]data-id="([^"]+)"/);_0x224f2f&&_0x224f2f[0x1]&&this['_touchedNodesState']['removedIds']['push'](_0x224f2f[0x1]);}}['_getUid'](_0x16e9a2){return this['_isExistingNode'](_0x16e9a2)?getAttribute(_0x16e9a2,'data-id'):this['_generateUid']();}['_removeSpecialComments'](_0x192f8f){findAllComments(_0x192f8f)['filter'](_0x186d44=>this['_isDelNode'](_0x186d44)||this['_isExistingContentComment'](_0x186d44))['forEach'](_0x432d26=>{removeElement(_0x432d26);});}['_markLastTagElementUnstable'](_0x660bc){const _0xa54e2c=_0x660bc['childNodes'],_0x329f5f=_0xa54e2c[_0xa54e2c['length']-0x1];_0x329f5f&&isTag(_0x329f5f)&&setAttribute(_0x329f5f,'data-unstable','true');}['_markUnstableElements'](_0x1d710d,_0x3df4d6){const _0x223990=findByAttribute('data-unstable','true',_0x1d710d);if(!_0x223990)return;const _0x25db06=getParents(_0x223990)['slice'](0x0,-0x1),_0x1fa4ee=_0x25db06['length'];let _0x36f32e=_0x223990;if(_0x1fa4ee>_0x3df4d6){let _0x410304=_0x1fa4ee,_0x37b70b=null;for(;_0x410304>_0x3df4d6&&_0x410304>=0x0;)_0x410304--,_0x37b70b=_0x25db06[_0x410304];_0x37b70b&&(_0x36f32e=_0x37b70b,setAttribute(_0x223990,'data-unstable',null),setAttribute(_0x37b70b,'data-unstable','true'));}else{if(_0x1fa4ee<_0x3df4d6){let _0x2fec15=_0x1fa4ee,_0x17aa63=_0x223990;for(;_0x2fec15<_0x3df4d6;){const _0x5d0f2f=_0x17aa63['childNodes']['filter'](_0x231c86=>isTag(_0x231c86));if(0x0===_0x5d0f2f['length'])break;_0x2fec15++,_0x17aa63=_0x5d0f2f[_0x5d0f2f['length']-0x1];}_0x17aa63&&(_0x36f32e=_0x17aa63,setAttribute(_0x223990,'data-unstable',null),setAttribute(_0x17aa63,'data-unstable','true'));}}let _0x41846b=_0x36f32e;for(;_0x41846b;){for(;_0x41846b['nextSibling'];)_0x41846b=_0x41846b['nextSibling'],isTag(_0x41846b)&&setAttribute(_0x41846b,'data-unstable','true');_0x41846b=_0x41846b['parentNode'];}}['_isNewNode'](_0x585a50){return Boolean('new-element'===getAttribute(_0x585a50,'data-id'));}['_isExistingNode'](_0x5b2b47){return Boolean((getAttribute(_0x5b2b47,'data-id')||'')['length']>0x0&&'new-element'!==getAttribute(_0x5b2b47,'data-id'));}['_isDelNode'](_0x592999){return!!_0x592999&&Boolean(isComment(_0x592999)&&serialize(_0x592999)['match'](/removed[\s*-]data-id="[^"]+"/));}['_hasWrappedParent'](_0x2c780c){let _0x4b4dff=_0x2c780c['parentNode'];for(;_0x4b4dff;){if(getAttribute(_0x4b4dff,'data-wrapped-id'))return!0x0;_0x4b4dff=_0x4b4dff['parentNode'];}return!0x1;}['_isExistingContentComment'](_0x5f2c3f){return Boolean(isComment(_0x5f2c3f)&&serialize(_0x5f2c3f)['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'](_0x3ad9b6,_0x10c3f7){let _0x48a6c0;if(_0x10c3f7||(_0x10c3f7=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x10c3f7?_0x48a6c0=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x48a6c0=this['context']['editors']['find'](_0x14e4e2=>_0x14e4e2['config']['get']('collaboration.channelId')==_0x10c3f7)),!_0x48a6c0)throw new CKEditorError('permissions-set-permissions-invalid-channel-id',null);const _0x4d73a4=_0x48a6c0['plugins'],_0x299384=_0x4d73a4['has']('CommentsRepository')?_0x4d73a4['get']('CommentsRepository'):void 0x0,_0x5c8d14=_0x4d73a4['has']('CommentsOnly')&&_0x4d73a4['get']('CommentsOnly'),_0x5809ac=_0x3ad9b6['includes']('document:write'),_0x522db3=_0x3ad9b6['includes']('comment:modify_all'),_0x36390f=_0x3ad9b6['includes']('comment:admin'),_0xb6ddb9=_0x3ad9b6['includes']('comment:write'),_0x6b8dd3=_0xb6ddb9||_0x36390f,_0x3c92ef=_0x6b8dd3||_0x522db3,_0x471a34=_0x5809ac||_0x6b8dd3;(_0x5c8d14&&(_0x5c8d14['isEnabled']=!_0x5809ac&&_0x3c92ef),_0x48a6c0 instanceof Editor)&&(!(_0x5809ac||_0x3c92ef&&_0x299384)?_0x48a6c0['enableReadOnlyMode']('no-permissions'):_0x48a6c0['disableReadOnlyMode']('no-permissions'));if(_0x299384){_0x299384['setPermissions']({'admin':_0x36390f,'modifyAll':_0x522db3,'write':_0xb6ddb9,'resolve':_0x471a34},_0x10c3f7);const _0x25085f=_0x48a6c0 instanceof Editor&&_0x48a6c0['commands']['get']('addCommentThread');_0x25085f&&(_0x6b8dd3?_0x25085f['clearForceDisabled']('noPermissions'):_0x25085f['forceDisabled']('noPermissions'));}}}function getTranslation$h(_0x2d416d,_0x228fb9){const t=_0x2d416d['t'];switch(_0x228fb9){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(_0x4851e3){super(_0x4851e3),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new Collection(),this['_locale']=_0x4851e3['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:_0x1a93df,name:_0xd31b8d,..._0x46da44}){if(!_0x1a93df||'string'!=typeof _0x1a93df)throw new CKEditorError('users-add-invalid-id');if(this['users']['has'](_0x1a93df))throw new CKEditorError('users-add-duplicated-id',null,{'id':_0x1a93df});const _0x31e82a=this['context']['config']['get']('users.getInitialsCallback'),_0x1b3d9a={..._0x46da44,'id':_0x1a93df,'name':normalizeName(this['_locale'],_0xd31b8d),'color':this['_getNextColor']()};_0x1b3d9a['name']=normalizeName(this['_locale'],_0x1b3d9a['name']);const _0x18c7b5=new User$1(_0x1b3d9a,_0x31e82a);return this['users']['add'](_0x18c7b5),_0x18c7b5;}['getUser'](_0x459cd4){return this['users']['get'](_0x459cd4);}['useAnonymousUser'](){const _0x5d7267=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x5d7267);}['defineMe'](_0x2e3754){if(this['_myId'])throw new CKEditorError('users-me-already-defined',null);const _0x13e00=this['getUser'](_0x2e3754);if(!_0x13e00)throw new CKEditorError('users-me-missing-user',null);this['_myId']=_0x2e3754,_0x13e00['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x59a751=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x59a751&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0x194815=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x194815,'name':getTranslation$h(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}let User$1=class{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x260fc5,_0x4140d0){this['id']=_0x260fc5['id'],this['color']=_0x260fc5['color'],this['name']=_0x260fc5['name'],this['initials']=_0x4140d0?_0x4140d0(this['name']):this['_computeInitials'](),this['avatar']=_0x260fc5['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x3c0c33=this['name']['split']('\x20')['filter'](_0x50e684=>/^[\p{Letter}]/u['test'](_0x50e684));return 0x1===_0x3c0c33['length']?this['_getInitial'](_0x3c0c33[0x0]):0x0===_0x3c0c33['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x3c0c33[0x0])+this['_getInitial'](_0x3c0c33[_0x3c0c33['length']-0x1]);}['_getInitial'](_0x447485){return String['fromCodePoint'](_0x447485['codePointAt'](0x0))['toUpperCase']();}};function normalizeName(_0x5ed0f2,_0x551617=''){return''==(_0x551617=_0x551617['trim']())?getTranslation$h(_0x5ed0f2,'Anonymous'):_0x551617;}class CollaborationUserColor{['_id'];constructor(_0x16f1bc){this['_id']=_0x16f1bc;}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(_0x476b4f,_0x47e9da,_0x197198){super(_0x476b4f),this['name']=_0x47e9da['name'],this['notificationView']=null;const _0x27db46=['ck','ck-user'],_0x11f065=['ck','ck-user__img'];if(_0x47e9da['isAnonymous']&&_0x11f065['push']('ck-user__anonymous'),!_0x47e9da['isAnonymous']&&_0x47e9da['isMe']&&_0x27db46['push']('ck-user_me'),_0x47e9da['avatar']&&_0x11f065['push']('ck-user__avatar'),_0x197198){const _0x486708=new IconView();_0x486708['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x486708['content']=IconNotification,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x197198},'children':[_0x486708]};}const _0x2b4bec=[{'tag':'div','attributes':{'class':_0x11f065,'style':{'background-image':_0x47e9da['avatar']?'url(\x27'+_0x47e9da['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x47e9da['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x47e9da['name']},'children':[{'text':_0x47e9da['initials']}]}];this['notificationView']&&_0x2b4bec['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x27db46,'data-user-id':_0x47e9da['id']},'children':_0x2b4bec});}}class AriaDescriptionView extends View{['id'];constructor(_0x227072,_0x10e3af){super(_0x227072),this['id']='ck-aria-description-'+uid(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x10e3af}]});}}class LateFocusButtonView extends ButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}class LateFocusDropdownButtonView extends DropdownButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}function delayFocusUntilMouseup(_0x5ce338){_0x5ce338['listenTo'](_0x5ce338['element'],'mousedown',(_0x369dee,_0x2ccfcf)=>{_0x2ccfcf['stopPropagation'](),_0x2ccfcf['preventDefault']();}),_0x5ce338['listenTo'](_0x5ce338['element'],'mouseup',()=>{_0x5ce338['element']['focus']();});}function splitSuggestionMarkerName(_0x24447d){const _0x45e8f2=_0x24447d['split'](':');return{'group':_0x45e8f2[0x0],'type':_0x45e8f2[0x1],'subType':_0x45e8f2['length']>=0x5?_0x45e8f2[0x2]:null,'id':_0x45e8f2['length']<0x5?_0x45e8f2[0x2]:_0x45e8f2[0x3],'authorId':_0x45e8f2['length']<0x5?_0x45e8f2[0x3]:_0x45e8f2[0x4],'markerCount':0x6==_0x45e8f2['length']?_0x45e8f2[0x5]:null};}function fixElementSuggestionRange(_0x9d9649,_0xe2548e){const _0x8adfe7=_0x9d9649['end']['nodeBefore'];if(_0x8adfe7&&_0x8adfe7['is']('element')&&_0xe2548e['schema']['isBlock'](_0x8adfe7)&&!_0xe2548e['schema']['isObject'](_0x8adfe7)){const _0x5ea286=_0xe2548e['createPositionAt'](_0x8adfe7,'end');return _0xe2548e['createRange'](_0x9d9649['start'],_0x5ea286);}return _0x9d9649;}class SuggestionsConversionAlignment extends Plugin{['afterInit'](){const _0x113f95=this['editor'];if(!_0x113f95['plugins']['has']('AlignmentEditing'))return;_0x113f95['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const basicStylesPlugins$1=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class SuggestionsConversionBasicStyles extends Plugin{['afterInit'](){const _0x2ca624=this['editor'],_0x5207f3=_0x2ca624['plugins']['get']('SuggestionsConversion');for(const _0x2db5d4 of basicStylesPlugins$1){if(!_0x2ca624['plugins']['has'](_0x2db5d4))continue;const _0x32b391=_0x2db5d4['slice'](0x0,-0x7)['toLowerCase']();_0x5207f3['registerInlineAttribute'](_0x32b391);}}}class SuggestionsConversionBookmark extends Plugin{['afterInit'](){const _0x301d38=this['editor'],_0x25ef6b=_0x301d38['plugins']['get']('SuggestionsConversion');_0x301d38['plugins']['has']('BookmarkEditing')&&_0x25ef6b['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 _0x565c11=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x823dcf,commandName:_0x300c09}of fontPlugins$1)this['editor']['plugins']['has'](_0x823dcf)&&_0x565c11['registerInlineAttribute'](_0x300c09);}}class SuggestionsConversionFootnotes extends Plugin{['afterInit'](){const {editor:_0x449362}=this;if(!_0x449362['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x2357bb=_0x449362['plugins']['get']('SuggestionsConversion');_0x2357bb['registerBlockAttribute']('footnotesListStyle'),_0x2357bb['registerBlockAttribute']('footnotesListStart');}}class SuggestionsConversionHighlight extends Plugin{['afterInit'](){const _0x4f6aa0=this['editor'];if(!_0x4f6aa0['plugins']['has']('HighlightEditing'))return;_0x4f6aa0['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class SuggestionsConversionHtmlEmbed extends Plugin{['afterInit'](){const _0x2f7e0a=this['editor'];if(!_0x2f7e0a['plugins']['has']('HtmlEmbed'))return;_0x2f7e0a['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class SuggestionsConversionImage extends Plugin{['afterInit'](){const _0x472a08=this['editor'];if(!_0x472a08['plugins']['has']('ImageEditing'))return;const _0x5214f8=_0x472a08['plugins']['get']('SuggestionsConversion');_0x5214f8['registerBlockAttribute']('src'),_0x472a08['plugins']['has']('ImageResize')&&_0x5214f8['registerBlockAttribute']('resizedWidth'),_0x472a08['plugins']['has']('ImageTextAlternativeEditing')&&_0x5214f8['registerBlockAttribute']('alt'),_0x472a08['plugins']['has']('PictureEditing')&&_0x5214f8['registerBlockAttribute']('sources'),_0x472a08['plugins']['has']('ImageSizeAttributes')&&(_0x5214f8['registerBlockAttribute']('width'),_0x5214f8['registerBlockAttribute']('height'));}}class SuggestionsConversionIndent extends Plugin{['afterInit'](){const _0x3179d8=this['editor'],_0xa7e77a=_0x3179d8['plugins']['get']('SuggestionsConversion');_0x3179d8['plugins']['has']('IndentBlock')&&(_0xa7e77a['registerBlockAttribute']('blockIndent'),_0x3179d8['plugins']['has']('ListEditing')&&(_0xa7e77a['registerBlockAttribute']('blockIndentList'),_0xa7e77a['registerBlockAttribute']('blockIndentListItem')));}}class SuggestionsConversionLineHeight extends Plugin{['afterInit'](){const _0x3a1ebd=this['editor'];if(!_0x3a1ebd['plugins']['has']('LineHeight'))return;_0x3a1ebd['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class SuggestionsConversionLink extends Plugin{['afterInit'](){const _0x19a462=this['editor'];if(!_0x19a462['plugins']['has']('LinkEditing'))return;const _0x47d1df=_0x19a462['plugins']['get']('SuggestionsConversion'),_0x4c4944=_0x19a462['commands']['get']('link');_0x47d1df['registerInlineAttribute']('linkHref');for(const _0x4f4585 of _0x4c4944['manualDecorators'])_0x47d1df['registerInlineAttribute'](_0x4f4585['id']);}}class SuggestionsConversionList extends Plugin{['afterInit'](){const _0x92feac=this['editor'];if(!_0x92feac['plugins']['has']('ListEditing'))return;const _0x4abe87=_0x92feac['plugins']['get']('SuggestionsConversion'),_0x404e79=_0x92feac['plugins']['has']('TodoListEditing');_0x4abe87['registerBlockAttribute']('listItemId'),_0x4abe87['registerBlockAttribute']('listType'),_0x4abe87['registerBlockAttribute']('listIndent'),_0x404e79&&_0x4abe87['registerBlockAttribute']('todoListChecked');}}class SuggestionsConversionListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x23512d=this['editor']['config']['get']('list.properties'),_0x309168=this['editor']['plugins']['get']('SuggestionsConversion');_0x23512d['styles']&&_0x309168['registerBlockAttribute']('listStyle'),_0x23512d['reversed']&&_0x309168['registerBlockAttribute']('listReversed'),_0x23512d['startIndex']&&_0x309168['registerBlockAttribute']('listStart');}}class SuggestionsConversionMultiLevelList extends Plugin{['afterInit'](){const _0x39861d=this['editor'],_0x58438a=_0x39861d['plugins']['get']('SuggestionsConversion');_0x39861d['plugins']['has']('MultiLevelList')&&_0x58438a['registerBlockAttribute']('listMarkerStyle');}}class SuggestionsConversionStylesDropdown extends Plugin{['afterInit'](){const _0x350081=this['editor'];if(!_0x350081['plugins']['has']('Style')||!_0x350081['plugins']['has']('DataSchema')||!_0x350081['config']['get']('style.definitions'))return;const _0x234164=_0x350081['plugins']['get']('SuggestionsConversion'),_0x2191fb=_0x350081['config']['get']('style.definitions'),_0x327f20=_0x350081['plugins']['get']('GeneralHtmlSupport'),_0x405508=_0x350081['plugins']['get']('StyleUtils')['normalizeConfig'](_0x350081['plugins']['get']('DataSchema'),_0x2191fb),_0x35904e=new Set();for(const _0x22936f of _0x405508['block']){const _0x1feaff=_0x327f20['getGhsAttributeNameForElement'](_0x22936f['element']);_0x35904e['add'](_0x1feaff);}const _0x21a05c=new Set();for(const _0x1b8509 of _0x405508['inline']){const _0x37a7dd=_0x327f20['getGhsAttributeNameForElement'](_0x1b8509['element']);_0x21a05c['add'](_0x37a7dd);for(const _0x398983 of _0x1b8509['ghsAttributes'])_0x21a05c['add'](_0x398983);}for(const _0x2f3046 of _0x35904e)_0x234164['registerBlockAttribute'](_0x2f3046);for(const _0x2c3abe of _0x21a05c)_0x234164['registerInlineAttribute'](_0x2c3abe);}}class SuggestionsConversionTableHeadings extends Plugin{['afterInit'](){const _0x4c0fe0=this['editor'];if(!_0x4c0fe0['plugins']['has']('TableEditing'))return;const _0x368df4=_0x4c0fe0['plugins']['get']('SuggestionsConversion');_0x368df4['registerBlockAttribute']('headingRows'),_0x368df4['registerBlockAttribute']('headingColumns');}}class SuggestionsConversionTableProperties extends Plugin{['afterInit'](){const {plugins:_0x5e129d}=this['editor'];if(!_0x5e129d['has']('TablePropertiesEditing'))return;const _0x36dd35=_0x5e129d['get']('SuggestionsConversion'),_0x5d6b31=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x4efbd8 of _0x5d6b31)_0x36dd35['registerBlockAttribute'](_0x4efbd8);}}class SuggestionsConversionTableLayout extends Plugin{['afterInit'](){const _0x43c8e1=this['editor'],_0x423108=_0x43c8e1['plugins']['get']('SuggestionsConversion');_0x43c8e1['plugins']['has']('TableLayout')&&_0x423108['registerBlockAttribute']('tableType');}}class SuggestionsConversionUploadcare extends Plugin{['afterInit'](){const _0x3d8117=this['editor'],_0x1e36d0=this['editor']['plugins']['get']('SuggestionsConversion');_0x3d8117['plugins']['has']('Uploadcare')&&_0x3d8117['plugins']['has']('UploadcareImageEdit')&&_0x1e36d0['registerBlockAttribute']('uploadcareImageId');}}class SuggestionsConversionShiftEnter extends Plugin{['afterInit'](){const _0x5e4948=this['editor'];if(!_0x5e4948['plugins']['has']('ShiftEnter'))return;const _0x425b5a=_0x5e4948['plugins']['get']('SuggestionsConversion'),_0x14aa76=(_0x1444b3,_0x18dece,_0x77fa51,_0x2504a9)=>{if(_0x2504a9&&!_0x77fa51['options']['showSuggestionHighlights'])return;if(!_0x77fa51['consumable']['test'](_0x18dece['markerRange'],_0x1444b3['name']))return;const _0x228201=_0x5e4948['model'];for(const _0x1f89f6 of _0x18dece['markerRange']['getItems']()){if(!_0x1f89f6['is']('element','softBreak'))continue;const _0x479105='deletion'==_0x18dece['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x32dfeb,authorId:_0x4b7fe6}=splitSuggestionMarkerName(_0x18dece['markerName']),_0x196280=_0x77fa51['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x479105,'data-suggestion':_0x32dfeb,'data-author-id':_0x4b7fe6}),_0x28ad76=_0x77fa51['mapper']['toViewPosition'](_0x228201['createPositionBefore'](_0x1f89f6));!_0x2504a9&&_0x425b5a['_activeMarkers']['includes'](_0x18dece['markerName'])&&_0x77fa51['writer']['addClass']('ck-suggestion-marker--active',_0x196280),_0x77fa51['writer']['insert'](_0x28ad76,_0x196280),_0x77fa51['mapper']['bindElementToMarker'](_0x196280,_0x18dece['markerName']);}};_0x5e4948['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x556952,_0x3ee3bc,_0x2a7558)=>{_0x14aa76(_0x556952,_0x3ee3bc,_0x2a7558,!0x1);},{'priority':'high'}),_0x5e4948['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1eb924,_0x2620e6,_0x1e7644)=>{_0x14aa76(_0x1eb924,_0x2620e6,_0x1e7644,!0x0);},{'priority':'high'});}}class SuggestionsConversionMediaEmbed extends Plugin{['afterInit'](){const _0x21c67b=this['editor'];_0x21c67b['plugins']['has']('MediaEmbedEditing')&&(_0x21c67b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x303c92,{writer:_0x25cf13,options:_0x3925d8})=>{if(_0x3925d8['showSuggestionHighlights'])return _0x25cf13['createEmptyElement']('div');},'converterPriority':'high'}),_0x21c67b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2c2ba8,_0x83ea,_0xf198f1)=>{_0xf198f1['options']['showSuggestionHighlights']&&_0x2c2ba8['stop']();},{'priority':'high'}));}}class SuggestionsConversionTable extends Plugin{['afterInit'](){const _0x2f1338=this['editor'];if(!_0x2f1338['plugins']['has']('Table'))return;_0x2f1338['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x526187,_0xcd3bfd,_0x4391af)=>{((_0x3cc0ed,_0x3f7ad6,_0xe5dfe6)=>{if(!_0xe5dfe6['options']['showSuggestionHighlights'])return;const _0x307688=_0x3f7ad6['item'];if(!_0x307688||!_0x307688['is']('element','tableCell'))return;const _0x365978=_0xe5dfe6['mapper']['toViewElement'](_0x307688);if(_0x365978){const {id:_0x2d31fc,authorId:_0x55922a}=splitSuggestionMarkerName(_0x3f7ad6['markerName']);setHighlightHandling(_0x365978,_0xe5dfe6['writer'],(_0x95b3e9,_0x1c896b,_0x4cef3e)=>{_0x4cef3e['addClass'](toArray$1(_0x1c896b['classes']),_0x95b3e9),_0x4cef3e['setAttribute']('data-suggestion-id',_0x2d31fc,_0x95b3e9),_0x4cef3e['setAttribute']('data-author-id',_0x55922a,_0x95b3e9);});}})(0x0,_0xcd3bfd,_0x4391af);},{'priority':'highest'});}}class SuggestionsConversionHorizontalLine extends Plugin{['afterInit'](){const _0x1480fe=this['editor'];_0x1480fe['plugins']['has']('HorizontalLineEditing')&&_0x1480fe['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x71391a,{writer:_0x9a53f,options:_0x407a93})=>{if(!_0x407a93['showSuggestionHighlights'])return null;const _0x5efaa8=_0x9a53f['createContainerElement']('div'),_0x276c5b=_0x9a53f['createEmptyElement']('hr');return _0x9a53f['addClass']('ck-horizontal-line',_0x5efaa8),_0x9a53f['insert'](_0x9a53f['createPositionAt'](_0x5efaa8,0x0),_0x276c5b),_0x5efaa8;},'converterPriority':'high'});}}class SuggestionsConversionTableCellProperties extends Plugin{['afterInit'](){const {plugins:_0x529ec1,model:_0x3d7356}=this['editor'];if(!_0x529ec1['has']('TableCellPropertiesEditing'))return;const _0x4bf616=_0x529ec1['get']('SuggestionsConversion'),_0x43fbd3=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x4250b6 of _0x43fbd3)_0x4bf616['registerBlockAttribute'](_0x4250b6);_0x3d7356['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4bf616['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 _0x265bf4=this['editor'],_0x163fb8=(_0x559808,_0x331f81,_0x5a3b22)=>{const {id:_0x601f76,authorId:_0x1ccaf2,type:_0x4a329b,subType:_0x502c7d}=splitSuggestionMarkerName(_0x559808['markerName']),_0xeef714=['ck-suggestion-marker',this['_getClassName'](_0x4a329b,_0x502c7d)];let _0x5dbb52=0xbb8;return!_0x5a3b22&&(this['_activeMarkers']['includes'](_0x559808['markerName'])&&(_0xeef714['push']('ck-suggestion-marker--active'),_0x5dbb52=0xbc2)),('deletion'==_0x4a329b&&(_0x5dbb52+=0x5),{'classes':_0xeef714,'attributes':{'data-suggestion':_0x601f76,'data-author-id':_0x1ccaf2},'priority':_0x5dbb52});};_0x265bf4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3a0129,_0x2944dc)=>_0x163fb8(_0x3a0129,0x0,!0x1)}),_0x265bf4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x12e5a2,_0x593551)=>_0x163fb8(_0x12e5a2,0x0,!0x0)}),_0x265bf4['conversion']['for']('dataDowncast')['add'](_0x25e8cb=>{_0x25e8cb['on']('addMarker:suggestion',(_0x31bf55,_0x3ba16e,_0x52d5b2)=>{if(!_0x52d5b2['options']['showSuggestionHighlights'])return;const _0x302082=_0x3ba16e['item'];if(!_0x302082)return;const _0x3814c4=_0x52d5b2['mapper']['toViewElement'](_0x302082);_0x265bf4['model']['schema']['isObject'](_0x302082)&&_0x3814c4&&!_0x3814c4['getCustomProperty']('widget')&&_0x3814c4['is']('containerElement')&&toWidget(_0x3814c4,_0x52d5b2['writer']);},{'priority':'high'});});const _0x449274=(_0x190afb,_0x5be0d2,_0x5c7652,_0x30110a,_0x44c8a3)=>{if(_0x30110a&&!_0x5c7652['options']['showSuggestionHighlights'])return;if(!_0x5be0d2['item'])return;const {id:_0xd86aa7,authorId:_0x36db5d,subType:_0x2c3da7}=splitSuggestionMarkerName(_0x5be0d2['markerName']);if(_0x44c8a3){const _0x375f83=_0x2c3da7['split']('|')[0x0];if(!this['isBlockAttribute'](_0x375f83))return;}if(_0x5be0d2['item']['is']('selection'))return void _0x5c7652['consumable']['consume'](_0x5be0d2['item'],_0x190afb['name']);const _0x59142b=_0x5c7652['mapper']['toViewElement'](_0x5be0d2['item']);if(_0x5be0d2['item']['is']('element')&&_0x265bf4['model']['schema']['isBlock'](_0x5be0d2['item'])&&!_0x59142b['getCustomProperty']('addHighlight')){_0x5c7652['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x59142b),_0x5c7652['writer']['setAttribute']('data-suggestion',_0xd86aa7,_0x59142b),_0x5c7652['writer']['setAttribute']('data-author-id',_0x36db5d,_0x59142b),_0x5c7652['mapper']['bindElementToMarker'](_0x59142b,_0x5be0d2['markerName']),_0x30110a||(this['_activeMarkers']['includes'](_0x5be0d2['markerName'])?_0x5c7652['writer']['addClass']('ck-suggestion-marker--active',_0x59142b):_0x5c7652['writer']['removeClass']('ck-suggestion-marker--active',_0x59142b));for(const _0x532537 of _0x265bf4['model']['createRangeIn'](_0x5be0d2['item'])['getItems']())_0x5c7652['consumable']['consume'](_0x532537,_0x190afb['name']);_0x5c7652['consumable']['consume'](_0x5be0d2['item'],_0x190afb['name']);}},_0x20ed24=(_0x46c30e,_0x1758e6,_0x42d9e6,_0x410c38)=>{const _0x4ce6f9=_0x42d9e6['mapper']['markerNameToElements'](_0x1758e6['markerName']);if(_0x4ce6f9){if(_0x410c38){const {subType:_0x4cfbc3}=splitSuggestionMarkerName(_0x1758e6['markerName']),_0x352f50=_0x4cfbc3['split']('|')[0x0];if(!this['isBlockAttribute'](_0x352f50))return;}for(const _0x31c764 of _0x4ce6f9)_0x31c764['getCustomProperty']('addHighlight')||(_0x42d9e6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x31c764),_0x42d9e6['writer']['removeAttribute']('data-suggestion',_0x31c764),_0x42d9e6['writer']['removeAttribute']('data-author-id',_0x31c764),_0x42d9e6['mapper']['unbindElementFromMarkerName'](_0x31c764,_0x1758e6['markerName']));}};_0x265bf4['conversion']['for']('editingDowncast')['add'](_0x26c13c=>{_0x26c13c['on']('addMarker:suggestion:formatBlock',(_0x22a922,_0x3f919b,_0x120bab)=>{_0x449274(_0x22a922,_0x3f919b,_0x120bab,!0x1,!0x1);},{'priority':'high'});}),_0x265bf4['conversion']['for']('editingDowncast')['add'](_0xf4ab9=>{_0xf4ab9['on']('addMarker:suggestion:attribute',(_0x3eee10,_0x59c672,_0x421b09)=>{_0x449274(_0x3eee10,_0x59c672,_0x421b09,!0x1,!0x0);},{'priority':'high'});}),_0x265bf4['conversion']['for']('editingDowncast')['add'](_0x291f41=>{_0x291f41['on']('removeMarker:suggestion:formatBlock',(_0xc51c68,_0x39ec43,_0x355099)=>{_0x20ed24(0x0,_0x39ec43,_0x355099,!0x1);},{'priority':'high'});}),_0x265bf4['conversion']['for']('editingDowncast')['add'](_0x44c2ab=>{_0x44c2ab['on']('removeMarker:suggestion:attribute',(_0xaffdbf,_0x5b3540,_0x131586)=>{_0x20ed24(0x0,_0x5b3540,_0x131586,!0x0);},{'priority':'high'});}),_0x265bf4['conversion']['for']('dataDowncast')['add'](_0x196c1e=>{_0x196c1e['on']('addMarker:suggestion:formatBlock',(_0x227cc3,_0x592068,_0x2f65a3)=>{_0x449274(_0x227cc3,_0x592068,_0x2f65a3,!0x0,!0x1);},{'priority':'highest'});}),_0x265bf4['conversion']['for']('dataDowncast')['add'](_0x469fee=>{_0x469fee['on']('addMarker:suggestion:attribute',(_0x5e6f80,_0x40018,_0x1904d0)=>{_0x449274(_0x5e6f80,_0x40018,_0x1904d0,!0x0,!0x0);},{'priority':'highest'});}),_0x265bf4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x330882,_0xcebad6)=>{if(_0xcebad6['options']['showSuggestionHighlights']){const {id:_0x8034fe,authorId:_0x535d08}=splitSuggestionMarkerName(_0x330882);return _0x330882['includes'](':split')||_0x330882['includes'](':merge')?{'group':'suggestion','name':_0x330882['substr'](0xb),'attributes':{'data-suggestion':_0x8034fe,'data-author-id':_0x535d08}}:null;}return{'group':'suggestion','name':_0x330882['substr'](0xb)};}});const _0x2a8188=(_0x52de5c,_0x1d6883,_0x3eda0c,_0x5065fd,_0x5ac503)=>{if(_0x5065fd&&!_0x3eda0c['options']['showSuggestionHighlights'])return;if(!_0x3eda0c['consumable']['test'](_0x1d6883['markerRange'],_0x52de5c['name']))return;const _0xc076be=this['_activeMarkers'],_0x123acc=_0x1d6883['markerRange']['getWalker'](),_0x5b6959=_0x1d6883['markerRange']['start'],_0x12040=_0x265bf4['model']['schema'];let _0x2e0eea=null,_0x51bee9=null,_0x4221e9=!0x1,_0x155fa9=!0x1;for(const _0x29fbb9 of _0x123acc){const _0x4f7dc9=_0x29fbb9['item'];_0x4221e9=_0x4221e9||_0x12040['isContent'](_0x4f7dc9);const _0x27756c=_0x3eda0c['mapper']['toViewElement'](_0x4f7dc9);if(_0x27756c&&_0x27756c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x29fbb9['type']&&(_0x12040['isBlock'](_0x4f7dc9)&&!_0x12040['isLimit'](_0x4f7dc9)&&(_0x4f7dc9['nextSibling']||_0x5b6959['isAtEnd']?_0x2e0eea&&_0x2e0eea['parent']==_0x4f7dc9||(_0x2e0eea=_0x4f7dc9,_0x542e55(_0x29fbb9['previousPosition']),_0x155fa9=!0x0):_0x51bee9=_0x51bee9||_0x29fbb9['previousPosition']));}function _0x542e55(_0x238a76){const {id:_0x15fff2,authorId:_0x30f0d3}=splitSuggestionMarkerName(_0x1d6883['markerName']),_0x222865=_0x3eda0c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5ac503,'data-suggestion':_0x15fff2,'data-author-id':_0x30f0d3}),_0x318ae3=_0x3eda0c['mapper']['toViewPosition'](_0x238a76);!_0x5065fd&&_0xc076be['includes'](_0x1d6883['markerName'])&&_0x3eda0c['writer']['addClass']('ck-suggestion-marker--active',_0x222865),_0x3eda0c['writer']['insert'](_0x318ae3,_0x222865),_0x3eda0c['mapper']['bindElementToMarker'](_0x222865,_0x1d6883['markerName']);}_0x4221e9||_0x155fa9||!_0x51bee9||_0x542e55(_0x51bee9);};_0x265bf4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x29576a,_0x3617d0,_0x2fd21c)=>{_0x2a8188(_0x29576a,_0x3617d0,_0x2fd21c,!0x1,'merge');},{'priority':'high'}),_0x265bf4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x499bfe,_0x236b6f,_0x4b2dd3)=>{_0x2a8188(_0x499bfe,_0x236b6f,_0x4b2dd3,!0x0,'merge');},{'priority':'high'}),_0x265bf4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37bc99,_0x87d8cf,_0x1e861d)=>{_0x2a8188(_0x37bc99,_0x87d8cf,_0x1e861d,!0x1,'split');},{'priority':'high'}),_0x265bf4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5732e9,_0x5b23ee,_0x5a19ae)=>{_0x2a8188(_0x5732e9,_0x5b23ee,_0x5a19ae,!0x0,'split');},{'priority':'high'}),_0x265bf4['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e7745,_0x2ee4fc,_0x3d4819)=>{((_0x51e38a,_0x182997,_0x2e1dfd)=>{const _0x8dd28a=_0x2e1dfd['mapper']['markerNameToElements'](_0x182997['markerName']);if(_0x8dd28a){for(const _0x15dca4 of _0x8dd28a)(_0x15dca4['hasClass']('ck-suggestion-marker-split')||_0x15dca4['hasClass']('ck-suggestion-marker-merge'))&&(_0x2e1dfd['mapper']['unbindElementFromMarkerName'](_0x15dca4,_0x182997['markerName']),_0x2e1dfd['writer']['remove'](_0x15dca4));}})(0x0,_0x2ee4fc,_0x3d4819);},{'priority':'high'});const _0x1eb9c8=(_0x52bd1c,_0x39fac1,_0x41a725,_0x4ee536)=>{if(_0x4ee536&&!_0x41a725['options']['showSuggestionHighlights'])return;const _0x18dffd=_0x39fac1['markerRange']['start'],_0x375f3d=_0x39fac1['markerRange']['end'],_0x5dc9b4=_0x265bf4['model']['schema'];if(!_0x18dffd['isTouching'](_0x375f3d)||!_0x18dffd['nodeAfter'])return;const _0x5380d2=_0x18dffd['nodeAfter'];if(_0x5dc9b4['isBlock'](_0x5380d2)&&!_0x5dc9b4['isLimit'](_0x5380d2)&&_0x5dc9b4['checkChild'](_0x5380d2,'$text')){if(!_0x41a725['consumable']['consume'](_0x39fac1['markerRange'],_0x52bd1c['name']))return;const {id:_0x11d038,authorId:_0x9e7691}=splitSuggestionMarkerName(_0x39fac1['markerName']),_0x5d8b9d=_0x41a725['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x11d038,'data-author-id':_0x9e7691}),_0x534771=_0x41a725['mapper']['toViewPosition'](_0x375f3d);!_0x4ee536&&this['_activeMarkers']['includes'](_0x39fac1['markerName'])&&_0x41a725['writer']['addClass']('ck-suggestion-marker--active',_0x5d8b9d),_0x41a725['writer']['insert'](_0x534771,_0x5d8b9d),_0x41a725['mapper']['bindElementToMarker'](_0x5d8b9d,_0x39fac1['markerName']);}};_0x265bf4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xaa448f,_0x359c14,_0x216b04)=>{_0x1eb9c8(_0xaa448f,_0x359c14,_0x216b04,!0x1);},{'priority':'high'}),_0x265bf4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x20926c,_0x588b1b,_0x14cd49)=>{_0x1eb9c8(_0x20926c,_0x588b1b,_0x14cd49,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0xa180cf,_0x3c0923,_0x3fd563)=>{this['_activeMarkers']=_0x3fd563['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x53a397){this['_blockAttributeKeys']['add'](_0x53a397);}['registerInlineAttribute'](_0x42ffdb){this['_inlineAttributeKeys']['add'](_0x42ffdb);}['isBlockAttribute'](_0x2fe016){return this['_blockAttributeKeys']['has'](_0x2fe016);}['isInlineAttribute'](_0x51d01f){return this['_inlineAttributeKeys']['has'](_0x51d01f);}['isRegisteredAttribute'](_0x113bc4){return this['isInlineAttribute'](_0x113bc4)||this['isBlockAttribute'](_0x113bc4);}['_getClassName'](_0x3efc67,_0x4ff238){if('attribute'!=_0x3efc67)return'ck-suggestion-marker-'+_0x3efc67;const _0x4b2352=_0x4ff238['split']('|')[0x0];return this['isBlockAttribute'](_0x4b2352)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(_0xaa9187){super('Invalid\x20DateTime:\x20'+_0xaa9187['toMessage']());}}class InvalidIntervalError extends LuxonError{constructor(_0x3221e7){super('Invalid\x20Interval:\x20'+_0x3221e7['toMessage']());}}class InvalidDurationError extends LuxonError{constructor(_0x46f688){super('Invalid\x20Duration:\x20'+_0x46f688['toMessage']());}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(_0x5fef95){super('Invalid\x20unit\x20'+_0x5fef95);}}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'](_0x5cf044,_0x58d4b4){throw new ZoneIsAbstractError();}['formatOffset'](_0x4c4d2b,_0x15dc94){throw new ZoneIsAbstractError();}['offset'](_0x3f31b8){throw new ZoneIsAbstractError();}['equals'](_0x5027a1){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'](_0xc303e7,{format:_0x4f6fdc,locale:_0x1832e7}){return parseZoneInfo(_0xc303e7,_0x4f6fdc,_0x1832e7);}['formatOffset'](_0x3e92e2,_0x3099ae){return formatOffset(this['offset'](_0x3e92e2),_0x3099ae);}['offset'](_0x44cd09){return-new Date(_0x44cd09)['getTimezoneOffset']();}['equals'](_0x1323c8){return'system'===_0x1323c8['type'];}get['isValid'](){return!0x0;}}const dtfCache=new Map();function makeDTF(_0x44995a){let _0x32c403=dtfCache['get'](_0x44995a);return void 0x0===_0x32c403&&(_0x32c403=new Intl['DateTimeFormat']('en-US',{'hour12':!0x1,'timeZone':_0x44995a,'year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit','second':'2-digit','era':'short'}),dtfCache['set'](_0x44995a,_0x32c403)),_0x32c403;}const typeToPos={'year':0x0,'month':0x1,'day':0x2,'era':0x3,'hour':0x4,'minute':0x5,'second':0x6};function hackyOffset(_0x159720,_0x523c55){const _0xa09022=_0x159720['format'](_0x523c55)['replace'](/\u200E/g,''),_0x26a92c=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/['exec'](_0xa09022),[,_0x517570,_0x15d66a,_0x385189,_0x147d2c,_0xd0df88,_0xe573c8,_0x41a2ee]=_0x26a92c;return[_0x385189,_0x517570,_0x15d66a,_0x147d2c,_0xd0df88,_0xe573c8,_0x41a2ee];}function partsOffset(_0x2b5ba8,_0x4a36ab){const _0x2dfcdc=_0x2b5ba8['formatToParts'](_0x4a36ab),_0x2a7c94=[];for(let _0x4a9046=0x0;_0x4a9046<_0x2dfcdc['length'];_0x4a9046++){const {type:_0x14fbf6,value:_0x4909a1}=_0x2dfcdc[_0x4a9046],_0x2ced5f=typeToPos[_0x14fbf6];'era'===_0x14fbf6?_0x2a7c94[_0x2ced5f]=_0x4909a1:isUndefined(_0x2ced5f)||(_0x2a7c94[_0x2ced5f]=parseInt(_0x4909a1,0xa));}return _0x2a7c94;}const ianaZoneCache=new Map();class IANAZone extends Zone{static['create'](_0x13a359){let _0x4c1f24=ianaZoneCache['get'](_0x13a359);return void 0x0===_0x4c1f24&&ianaZoneCache['set'](_0x13a359,_0x4c1f24=new IANAZone(_0x13a359)),_0x4c1f24;}static['resetCache'](){ianaZoneCache['clear'](),dtfCache['clear']();}static['isValidSpecifier'](_0x1f9d1a){return this['isValidZone'](_0x1f9d1a);}static['isValidZone'](_0x2e5129){if(!_0x2e5129)return!0x1;try{return new Intl['DateTimeFormat']('en-US',{'timeZone':_0x2e5129})['format'](),!0x0;}catch(_0x227da8){return!0x1;}}constructor(_0x49e60f){super(),this['zoneName']=_0x49e60f,this['valid']=IANAZone['isValidZone'](_0x49e60f);}get['type'](){return'iana';}get['name'](){return this['zoneName'];}get['isUniversal'](){return!0x1;}['offsetName'](_0x46ea11,{format:_0x5e07b9,locale:_0x880e29}){return parseZoneInfo(_0x46ea11,_0x5e07b9,_0x880e29,this['name']);}['formatOffset'](_0x1a7403,_0x5b4658){return formatOffset(this['offset'](_0x1a7403),_0x5b4658);}['offset'](_0x3ca837){if(!this['valid'])return NaN;const _0x578d6e=new Date(_0x3ca837);if(isNaN(_0x578d6e))return NaN;const _0x31951a=makeDTF(this['name']);let [_0x482fb4,_0x4bcfd3,_0x38a143,_0x3bada5,_0x1f2867,_0x14d56e,_0x34daea]=_0x31951a['formatToParts']?partsOffset(_0x31951a,_0x578d6e):hackyOffset(_0x31951a,_0x578d6e);'BC'===_0x3bada5&&(_0x482fb4=0x1-Math['abs'](_0x482fb4));let _0xdad9ec=+_0x578d6e;const _0x85a063=_0xdad9ec%0x3e8;return _0xdad9ec-=_0x85a063>=0x0?_0x85a063:0x3e8+_0x85a063,(objToLocalTS({'year':_0x482fb4,'month':_0x4bcfd3,'day':_0x38a143,'hour':0x18===_0x1f2867?0x0:_0x1f2867,'minute':_0x14d56e,'second':_0x34daea,'millisecond':0x0})-_0xdad9ec)/0xea60;}['equals'](_0x16d2c8){return'iana'===_0x16d2c8['type']&&_0x16d2c8['name']===this['name'];}get['isValid'](){return this['valid'];}}let intlLFCache={};function getCachedLF(_0x2b0370,_0x53a2ed={}){const _0x52ba6b=JSON['stringify']([_0x2b0370,_0x53a2ed]);let _0x51fb5f=intlLFCache[_0x52ba6b];return _0x51fb5f||(_0x51fb5f=new Intl['ListFormat'](_0x2b0370,_0x53a2ed),intlLFCache[_0x52ba6b]=_0x51fb5f),_0x51fb5f;}const intlDTCache=new Map();function getCachedDTF(_0x53a1bf,_0x56e650={}){const _0x45005f=JSON['stringify']([_0x53a1bf,_0x56e650]);let _0x5eccb5=intlDTCache['get'](_0x45005f);return void 0x0===_0x5eccb5&&(_0x5eccb5=new Intl['DateTimeFormat'](_0x53a1bf,_0x56e650),intlDTCache['set'](_0x45005f,_0x5eccb5)),_0x5eccb5;}const intlNumCache=new Map();function getCachedINF(_0x499ebe,_0x37f5b2={}){const _0x324079=JSON['stringify']([_0x499ebe,_0x37f5b2]);let _0x4388c0=intlNumCache['get'](_0x324079);return void 0x0===_0x4388c0&&(_0x4388c0=new Intl['NumberFormat'](_0x499ebe,_0x37f5b2),intlNumCache['set'](_0x324079,_0x4388c0)),_0x4388c0;}const intlRelCache=new Map();function getCachedRTF(_0xbac842,_0x3f1420={}){const {base:_0x4fe6d8,..._0x3e4594}=_0x3f1420,_0xcb424a=JSON['stringify']([_0xbac842,_0x3e4594]);let _0x48658d=intlRelCache['get'](_0xcb424a);return void 0x0===_0x48658d&&(_0x48658d=new Intl['RelativeTimeFormat'](_0xbac842,_0x3f1420),intlRelCache['set'](_0xcb424a,_0x48658d)),_0x48658d;}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl['DateTimeFormat']()['resolvedOptions']()['locale'],sysLocaleCache);}const intlResolvedOptionsCache=new Map();function getCachedIntResolvedOptions(_0x50d436){let _0x21f10d=intlResolvedOptionsCache['get'](_0x50d436);return void 0x0===_0x21f10d&&(_0x21f10d=new Intl['DateTimeFormat'](_0x50d436)['resolvedOptions'](),intlResolvedOptionsCache['set'](_0x50d436,_0x21f10d)),_0x21f10d;}const weekInfoCache=new Map();function getCachedWeekInfo(_0x11ae55){let _0x4ce07d=weekInfoCache['get'](_0x11ae55);if(!_0x4ce07d){const _0x36bec3=new Intl['Locale'](_0x11ae55);_0x4ce07d='getWeekInfo'in _0x36bec3?_0x36bec3['getWeekInfo']():_0x36bec3['weekInfo'],'minimalDays'in _0x4ce07d||(_0x4ce07d={...fallbackWeekSettings,..._0x4ce07d}),weekInfoCache['set'](_0x11ae55,_0x4ce07d);}return _0x4ce07d;}function parseLocaleString(_0x1d754c){const _0x80c666=_0x1d754c['indexOf']('-x-');-0x1!==_0x80c666&&(_0x1d754c=_0x1d754c['substring'](0x0,_0x80c666));const _0x599e5f=_0x1d754c['indexOf']('-u-');if(-0x1===_0x599e5f)return[_0x1d754c];{let _0x100d4c,_0x49d23f;try{_0x100d4c=getCachedDTF(_0x1d754c)['resolvedOptions'](),_0x49d23f=_0x1d754c;}catch(_0x40a175){const _0x5bfa6e=_0x1d754c['substring'](0x0,_0x599e5f);_0x100d4c=getCachedDTF(_0x5bfa6e)['resolvedOptions'](),_0x49d23f=_0x5bfa6e;}const {numberingSystem:_0x218378,calendar:_0x754f71}=_0x100d4c;return[_0x49d23f,_0x218378,_0x754f71];}}function intlConfigString(_0x340166,_0x2841e2,_0x39eee6){return _0x39eee6||_0x2841e2?(_0x340166['includes']('-u-')||(_0x340166+='-u'),_0x39eee6&&(_0x340166+='-ca-'+_0x39eee6),_0x2841e2&&(_0x340166+='-nu-'+_0x2841e2),_0x340166):_0x340166;}function mapMonths(_0x2296bd){const _0x346eab=[];for(let _0x8ee735=0x1;_0x8ee735<=0xc;_0x8ee735++){const _0x8a20b8=DateTime['utc'](0x7d9,_0x8ee735,0x1);_0x346eab['push'](_0x2296bd(_0x8a20b8));}return _0x346eab;}function mapWeekdays(_0x1ee4d6){const _0xf5d224=[];for(let _0x483bbc=0x1;_0x483bbc<=0x7;_0x483bbc++){const _0x4195ae=DateTime['utc'](0x7e0,0xb,0xd+_0x483bbc);_0xf5d224['push'](_0x1ee4d6(_0x4195ae));}return _0xf5d224;}function listStuff(_0x37e457,_0x21de63,_0x525f8a,_0x219030){const _0x3fe44f=_0x37e457['listingMode']();return'error'===_0x3fe44f?null:'en'===_0x3fe44f?_0x525f8a(_0x21de63):_0x219030(_0x21de63);}function supportsFastNumbers(_0x4d9228){return(!_0x4d9228['numberingSystem']||'latn'===_0x4d9228['numberingSystem'])&&('latn'===_0x4d9228['numberingSystem']||!_0x4d9228['locale']||_0x4d9228['locale']['startsWith']('en')||'latn'===getCachedIntResolvedOptions(_0x4d9228['locale'])['numberingSystem']);}class PolyNumberFormatter{constructor(_0xfcb7c8,_0x245d05,_0x13953a){this['padTo']=_0x13953a['padTo']||0x0,this['floor']=_0x13953a['floor']||!0x1;const {padTo:_0x4966d2,floor:_0x2125cc,..._0x5d5866}=_0x13953a;if(!_0x245d05||Object['keys'](_0x5d5866)['length']>0x0){const _0x5c3769={'useGrouping':!0x1,..._0x13953a};_0x13953a['padTo']>0x0&&(_0x5c3769['minimumIntegerDigits']=_0x13953a['padTo']),this['inf']=getCachedINF(_0xfcb7c8,_0x5c3769);}}['format'](_0x5bcc7d){if(this['inf']){const _0x5ed23f=this['floor']?Math['floor'](_0x5bcc7d):_0x5bcc7d;return this['inf']['format'](_0x5ed23f);}return padStart(this['floor']?Math['floor'](_0x5bcc7d):roundTo(_0x5bcc7d,0x3),this['padTo']);}}class PolyDateFormatter{constructor(_0x3e1956,_0x26d977,_0x3cfc55){let _0x4c2f5b;if(this['opts']=_0x3cfc55,this['originalZone']=void 0x0,this['opts']['timeZone'])this['dt']=_0x3e1956;else{if('fixed'===_0x3e1956['zone']['type']){const _0x4bbd03=_0x3e1956['offset']/0x3c*-0x1,_0x2ddef7=_0x4bbd03>=0x0?'Etc/GMT+'+_0x4bbd03:'Etc/GMT'+_0x4bbd03;0x0!==_0x3e1956['offset']&&IANAZone['create'](_0x2ddef7)['valid']?(_0x4c2f5b=_0x2ddef7,this['dt']=_0x3e1956):(_0x4c2f5b='UTC',this['dt']=0x0===_0x3e1956['offset']?_0x3e1956:_0x3e1956['setZone']('UTC')['plus']({'minutes':_0x3e1956['offset']}),this['originalZone']=_0x3e1956['zone']);}else'system'===_0x3e1956['zone']['type']?this['dt']=_0x3e1956:'iana'===_0x3e1956['zone']['type']?(this['dt']=_0x3e1956,_0x4c2f5b=_0x3e1956['zone']['name']):(_0x4c2f5b='UTC',this['dt']=_0x3e1956['setZone']('UTC')['plus']({'minutes':_0x3e1956['offset']}),this['originalZone']=_0x3e1956['zone']);}const _0x507447={...this['opts']};_0x507447['timeZone']=_0x507447['timeZone']||_0x4c2f5b,this['dtf']=getCachedDTF(_0x26d977,_0x507447);}['format'](){return this['originalZone']?this['formatToParts']()['map'](({value:_0x1f5c6c})=>_0x1f5c6c)['join'](''):this['dtf']['format'](this['dt']['toJSDate']());}['formatToParts'](){const _0x4aef21=this['dtf']['formatToParts'](this['dt']['toJSDate']());return this['originalZone']?_0x4aef21['map'](_0xfdf50c=>{if('timeZoneName'===_0xfdf50c['type']){const _0x2027f9=this['originalZone']['offsetName'](this['dt']['ts'],{'locale':this['dt']['locale'],'format':this['opts']['timeZoneName']});return{..._0xfdf50c,'value':_0x2027f9};}return _0xfdf50c;}):_0x4aef21;}['resolvedOptions'](){return this['dtf']['resolvedOptions']();}}class PolyRelFormatter{constructor(_0x835f38,_0x14d516,_0x1983c9){this['opts']={'style':'long',..._0x1983c9},!_0x14d516&&hasRelative()&&(this['rtf']=getCachedRTF(_0x835f38,_0x1983c9));}['format'](_0x558dcf,_0x46d17e){return this['rtf']?this['rtf']['format'](_0x558dcf,_0x46d17e):formatRelativeTime(_0x46d17e,_0x558dcf,this['opts']['numeric'],'long'!==this['opts']['style']);}['formatToParts'](_0x25efa1,_0x28bb01){return this['rtf']?this['rtf']['formatToParts'](_0x25efa1,_0x28bb01):[];}}const fallbackWeekSettings={'firstDay':0x1,'minimalDays':0x4,'weekend':[0x6,0x7]};class Locale{static['fromOpts'](_0x78eaa8){return Locale['create'](_0x78eaa8['locale'],_0x78eaa8['numberingSystem'],_0x78eaa8['outputCalendar'],_0x78eaa8['weekSettings'],_0x78eaa8['defaultToEN']);}static['create'](_0x54777d,_0x1fd83e,_0x15979e,_0x4b3681,_0x400bdf=!0x1){const _0x58c248=_0x54777d||Settings['defaultLocale'],_0xa8cab7=_0x58c248||(_0x400bdf?'en-US':systemLocale()),_0x90dbec=_0x1fd83e||Settings['defaultNumberingSystem'],_0x31b350=_0x15979e||Settings['defaultOutputCalendar'],_0x3062fc=validateWeekSettings(_0x4b3681)||Settings['defaultWeekSettings'];return new Locale(_0xa8cab7,_0x90dbec,_0x31b350,_0x3062fc,_0x58c248);}static['resetCache'](){sysLocaleCache=null,intlDTCache['clear'](),intlNumCache['clear'](),intlRelCache['clear'](),intlResolvedOptionsCache['clear'](),weekInfoCache['clear']();}static['fromObject']({locale:_0x2fd915,numberingSystem:_0x492525,outputCalendar:_0x555f35,weekSettings:_0x128905}={}){return Locale['create'](_0x2fd915,_0x492525,_0x555f35,_0x128905);}constructor(_0x116cae,_0x538c06,_0x8ce70,_0x15ecf4,_0x328c12){const [_0x740043,_0x158655,_0x1b5049]=parseLocaleString(_0x116cae);this['locale']=_0x740043,this['numberingSystem']=_0x538c06||_0x158655||null,this['outputCalendar']=_0x8ce70||_0x1b5049||null,this['weekSettings']=_0x15ecf4,this['intl']=intlConfigString(this['locale'],this['numberingSystem'],this['outputCalendar']),this['weekdaysCache']={'format':{},'standalone':{}},this['monthsCache']={'format':{},'standalone':{}},this['meridiemCache']=null,this['eraCache']={},this['specifiedLocale']=_0x328c12,this['fastNumbersCached']=null;}get['fastNumbers'](){return null==this['fastNumbersCached']&&(this['fastNumbersCached']=supportsFastNumbers(this)),this['fastNumbersCached'];}['listingMode'](){const _0x44e9f7=this['isEnglish'](),_0x5a8af9=!(null!==this['numberingSystem']&&'latn'!==this['numberingSystem']||null!==this['outputCalendar']&&'gregory'!==this['outputCalendar']);return _0x44e9f7&&_0x5a8af9?'en':'intl';}['clone'](_0x196453){return _0x196453&&0x0!==Object['getOwnPropertyNames'](_0x196453)['length']?Locale['create'](_0x196453['locale']||this['specifiedLocale'],_0x196453['numberingSystem']||this['numberingSystem'],_0x196453['outputCalendar']||this['outputCalendar'],validateWeekSettings(_0x196453['weekSettings'])||this['weekSettings'],_0x196453['defaultToEN']||!0x1):this;}['redefaultToEN'](_0x35720e={}){return this['clone']({..._0x35720e,'defaultToEN':!0x0});}['redefaultToSystem'](_0x2f73a8={}){return this['clone']({..._0x2f73a8,'defaultToEN':!0x1});}['months'](_0x551837,_0x16a666=!0x1){return listStuff(this,_0x551837,months,()=>{const _0x355bc1=_0x16a666?{'month':_0x551837,'day':'numeric'}:{'month':_0x551837},_0x3d5f9d=_0x16a666?'format':'standalone';return this['monthsCache'][_0x3d5f9d][_0x551837]||(this['monthsCache'][_0x3d5f9d][_0x551837]=mapMonths(_0xd82f4f=>this['extract'](_0xd82f4f,_0x355bc1,'month'))),this['monthsCache'][_0x3d5f9d][_0x551837];});}['weekdays'](_0x35933a,_0xd6c48a=!0x1){return listStuff(this,_0x35933a,weekdays,()=>{const _0x4e8ad3=_0xd6c48a?{'weekday':_0x35933a,'year':'numeric','month':'long','day':'numeric'}:{'weekday':_0x35933a},_0x1c44a2=_0xd6c48a?'format':'standalone';return this['weekdaysCache'][_0x1c44a2][_0x35933a]||(this['weekdaysCache'][_0x1c44a2][_0x35933a]=mapWeekdays(_0x403dcf=>this['extract'](_0x403dcf,_0x4e8ad3,'weekday'))),this['weekdaysCache'][_0x1c44a2][_0x35933a];});}['meridiems'](){return listStuff(this,void 0x0,()=>meridiems,()=>{if(!this['meridiemCache']){const _0x5d4341={'hour':'numeric','hourCycle':'h12'};this['meridiemCache']=[DateTime['utc'](0x7e0,0xb,0xd,0x9),DateTime['utc'](0x7e0,0xb,0xd,0x13)]['map'](_0x4a2c78=>this['extract'](_0x4a2c78,_0x5d4341,'dayperiod'));}return this['meridiemCache'];});}['eras'](_0x5d150f){return listStuff(this,_0x5d150f,eras,()=>{const _0x3fd8d8={'era':_0x5d150f};return this['eraCache'][_0x5d150f]||(this['eraCache'][_0x5d150f]=[DateTime['utc'](-0x28,0x1,0x1),DateTime['utc'](0x7e1,0x1,0x1)]['map'](_0x2e2342=>this['extract'](_0x2e2342,_0x3fd8d8,'era'))),this['eraCache'][_0x5d150f];});}['extract'](_0x28300c,_0x15ccbe,_0x33541a){const _0x4aaeda=this['dtFormatter'](_0x28300c,_0x15ccbe)['formatToParts']()['find'](_0x8a5d6d=>_0x8a5d6d['type']['toLowerCase']()===_0x33541a);return _0x4aaeda?_0x4aaeda['value']:null;}['numberFormatter'](_0xa8d4cb={}){return new PolyNumberFormatter(this['intl'],_0xa8d4cb['forceSimple']||this['fastNumbers'],_0xa8d4cb);}['dtFormatter'](_0x1c4fe1,_0x38b807={}){return new PolyDateFormatter(_0x1c4fe1,this['intl'],_0x38b807);}['relFormatter'](_0xb2d590={}){return new PolyRelFormatter(this['intl'],this['isEnglish'](),_0xb2d590);}['listFormatter'](_0x3401b0={}){return getCachedLF(this['intl'],_0x3401b0);}['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'](_0x15ee92){return this['locale']===_0x15ee92['locale']&&this['numberingSystem']===_0x15ee92['numberingSystem']&&this['outputCalendar']===_0x15ee92['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'](_0x2269f8){return 0x0===_0x2269f8?FixedOffsetZone['utcInstance']:new FixedOffsetZone(_0x2269f8);}static['parseSpecifier'](_0x44b88c){if(_0x44b88c){const _0x38b12c=_0x44b88c['match'](/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(_0x38b12c)return new FixedOffsetZone(signedOffset(_0x38b12c[0x1],_0x38b12c[0x2]));}return null;}constructor(_0x515821){super(),this['fixed']=_0x515821;}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'](_0x355709,_0x1af590){return formatOffset(this['fixed'],_0x1af590);}get['isUniversal'](){return!0x0;}['offset'](){return this['fixed'];}['equals'](_0x277f91){return'fixed'===_0x277f91['type']&&_0x277f91['fixed']===this['fixed'];}get['isValid'](){return!0x0;}}class InvalidZone extends Zone{constructor(_0x8b53d1){super(),this['zoneName']=_0x8b53d1;}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(_0x538566,_0x3f6fc3){if(isUndefined(_0x538566)||null===_0x538566)return _0x3f6fc3;if(_0x538566 instanceof Zone)return _0x538566;if(isString(_0x538566)){const _0x3fa1c8=_0x538566['toLowerCase']();return'default'===_0x3fa1c8?_0x3f6fc3:'local'===_0x3fa1c8||'system'===_0x3fa1c8?SystemZone['instance']:'utc'===_0x3fa1c8||'gmt'===_0x3fa1c8?FixedOffsetZone['utcInstance']:FixedOffsetZone['parseSpecifier'](_0x3fa1c8)||IANAZone['create'](_0x538566);}return isNumber(_0x538566)?FixedOffsetZone['instance'](_0x538566):'object'==typeof _0x538566&&'offset'in _0x538566&&'function'==typeof _0x538566['offset']?_0x538566:new InvalidZone(_0x538566);}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(_0xafaedf){let _0xde62d7=parseInt(_0xafaedf,0xa);if(isNaN(_0xde62d7)){_0xde62d7='';for(let _0x5d4f8b=0x0;_0x5d4f8b<_0xafaedf['length'];_0x5d4f8b++){const _0x3affa3=_0xafaedf['charCodeAt'](_0x5d4f8b);if(-0x1!==_0xafaedf[_0x5d4f8b]['search'](numberingSystems['hanidec']))_0xde62d7+=hanidecChars['indexOf'](_0xafaedf[_0x5d4f8b]);else for(const _0x3be9e7 in numberingSystemsUTF16){const [_0x7d0e56,_0x357789]=numberingSystemsUTF16[_0x3be9e7];_0x3affa3>=_0x7d0e56&&_0x3affa3<=_0x357789&&(_0xde62d7+=_0x3affa3-_0x7d0e56);}}return parseInt(_0xde62d7,0xa);}return _0xde62d7;}const digitRegexCache=new Map();function resetDigitRegexCache(){digitRegexCache['clear']();}function digitRegex({numberingSystem:_0x445cd6},_0x59b8b1=''){const _0x3fd4c9=_0x445cd6||'latn';let _0x3372af=digitRegexCache['get'](_0x3fd4c9);void 0x0===_0x3372af&&(_0x3372af=new Map(),digitRegexCache['set'](_0x3fd4c9,_0x3372af));let _0x1e0c4e=_0x3372af['get'](_0x59b8b1);return void 0x0===_0x1e0c4e&&(_0x1e0c4e=new RegExp(''+numberingSystems[_0x3fd4c9]+_0x59b8b1),_0x3372af['set'](_0x59b8b1,_0x1e0c4e)),_0x1e0c4e;}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'](_0x53645d){now=_0x53645d;}static set['defaultZone'](_0x25b499){defaultZone=_0x25b499;}static get['defaultZone'](){return normalizeZone(defaultZone,SystemZone['instance']);}static get['defaultLocale'](){return defaultLocale;}static set['defaultLocale'](_0x14125c){defaultLocale=_0x14125c;}static get['defaultNumberingSystem'](){return defaultNumberingSystem;}static set['defaultNumberingSystem'](_0x301197){defaultNumberingSystem=_0x301197;}static get['defaultOutputCalendar'](){return defaultOutputCalendar;}static set['defaultOutputCalendar'](_0x4c7d45){defaultOutputCalendar=_0x4c7d45;}static get['defaultWeekSettings'](){return defaultWeekSettings;}static set['defaultWeekSettings'](_0x549dd4){defaultWeekSettings=validateWeekSettings(_0x549dd4);}static get['twoDigitCutoffYear'](){return twoDigitCutoffYear;}static set['twoDigitCutoffYear'](_0x13e2fc){twoDigitCutoffYear=_0x13e2fc%0x64;}static get['throwOnInvalid'](){return throwOnInvalid;}static set['throwOnInvalid'](t){throwOnInvalid=t;}static['resetCaches'](){Locale['resetCache'](),IANAZone['resetCache'](),DateTime['resetCache'](),resetDigitRegexCache();}}class Invalid{constructor(_0x31521f,_0xa9915d){this['reason']=_0x31521f,this['explanation']=_0xa9915d;}['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(_0x1fbb37,_0x2a2b15){return new Invalid('unit\x20out\x20of\x20range','you\x20specified\x20'+_0x2a2b15+'\x20(of\x20type\x20'+typeof _0x2a2b15+')\x20as\x20a\x20'+_0x1fbb37+',\x20which\x20is\x20invalid');}function dayOfWeek(_0x5bb65a,_0x4d810f,_0xce2fde){const _0xce138d=new Date(Date['UTC'](_0x5bb65a,_0x4d810f-0x1,_0xce2fde));_0x5bb65a<0x64&&_0x5bb65a>=0x0&&_0xce138d['setUTCFullYear'](_0xce138d['getUTCFullYear']()-0x76c);const _0x286b2d=_0xce138d['getUTCDay']();return 0x0===_0x286b2d?0x7:_0x286b2d;}function computeOrdinal(_0xad9f97,_0x505b0f,_0x1f95fe){return _0x1f95fe+(isLeapYear(_0xad9f97)?leapLadder:nonLeapLadder)[_0x505b0f-0x1];}function uncomputeOrdinal(_0x57dd3e,_0x2ed05f){const _0x160343=isLeapYear(_0x57dd3e)?leapLadder:nonLeapLadder,_0x43f44c=_0x160343['findIndex'](_0x955add=>_0x955add<_0x2ed05f);return{'month':_0x43f44c+0x1,'day':_0x2ed05f-_0x160343[_0x43f44c]};}function isoWeekdayToLocal(_0x10d26a,_0x5179ef){return(_0x10d26a-_0x5179ef+0x7)%0x7+0x1;}function gregorianToWeek(_0x99bb57,_0x2be12e=0x4,_0x4269f7=0x1){const {year:_0x16248b,month:_0x65d206,day:_0x54efa3}=_0x99bb57,_0x1816e2=computeOrdinal(_0x16248b,_0x65d206,_0x54efa3),_0x4d45ec=isoWeekdayToLocal(dayOfWeek(_0x16248b,_0x65d206,_0x54efa3),_0x4269f7);let _0x53dd55,_0x138fa6=Math['floor']((_0x1816e2-_0x4d45ec+0xe-_0x2be12e)/0x7);return _0x138fa6<0x1?(_0x53dd55=_0x16248b-0x1,_0x138fa6=weeksInWeekYear(_0x53dd55,_0x2be12e,_0x4269f7)):_0x138fa6>weeksInWeekYear(_0x16248b,_0x2be12e,_0x4269f7)?(_0x53dd55=_0x16248b+0x1,_0x138fa6=0x1):_0x53dd55=_0x16248b,{'weekYear':_0x53dd55,'weekNumber':_0x138fa6,'weekday':_0x4d45ec,...timeObject(_0x99bb57)};}function weekToGregorian(_0x458b9c,_0x58df15=0x4,_0x3c92d8=0x1){const {weekYear:_0x214c82,weekNumber:_0x1f3fb1,weekday:_0x395755}=_0x458b9c,_0x45454=isoWeekdayToLocal(dayOfWeek(_0x214c82,0x1,_0x58df15),_0x3c92d8),_0x307aac=daysInYear(_0x214c82);let _0x2aebde,_0x15a4cb=0x7*_0x1f3fb1+_0x395755-_0x45454-0x7+_0x58df15;_0x15a4cb<0x1?(_0x2aebde=_0x214c82-0x1,_0x15a4cb+=daysInYear(_0x2aebde)):_0x15a4cb>_0x307aac?(_0x2aebde=_0x214c82+0x1,_0x15a4cb-=daysInYear(_0x214c82)):_0x2aebde=_0x214c82;const {month:_0x24bf11,day:_0x39486e}=uncomputeOrdinal(_0x2aebde,_0x15a4cb);return{'year':_0x2aebde,'month':_0x24bf11,'day':_0x39486e,...timeObject(_0x458b9c)};}function gregorianToOrdinal(_0x126535){const {year:_0x3dfa4a,month:_0x135736,day:_0x3a2417}=_0x126535;return{'year':_0x3dfa4a,'ordinal':computeOrdinal(_0x3dfa4a,_0x135736,_0x3a2417),...timeObject(_0x126535)};}function ordinalToGregorian(_0x1aa0bf){const {year:_0x209fe1,ordinal:_0x294d42}=_0x1aa0bf,{month:_0x87896,day:_0x185763}=uncomputeOrdinal(_0x209fe1,_0x294d42);return{'year':_0x209fe1,'month':_0x87896,'day':_0x185763,...timeObject(_0x1aa0bf)};}function usesLocalWeekValues(_0x88c235,_0x3cf1c9){if(!isUndefined(_0x88c235['localWeekday'])||!isUndefined(_0x88c235['localWeekNumber'])||!isUndefined(_0x88c235['localWeekYear'])){if(!isUndefined(_0x88c235['weekday'])||!isUndefined(_0x88c235['weekNumber'])||!isUndefined(_0x88c235['weekYear']))throw new ConflictingSpecificationError('Cannot\x20mix\x20locale-based\x20week\x20fields\x20with\x20ISO-based\x20week\x20fields');return isUndefined(_0x88c235['localWeekday'])||(_0x88c235['weekday']=_0x88c235['localWeekday']),isUndefined(_0x88c235['localWeekNumber'])||(_0x88c235['weekNumber']=_0x88c235['localWeekNumber']),isUndefined(_0x88c235['localWeekYear'])||(_0x88c235['weekYear']=_0x88c235['localWeekYear']),delete _0x88c235['localWeekday'],delete _0x88c235['localWeekNumber'],delete _0x88c235['localWeekYear'],{'minDaysInFirstWeek':_0x3cf1c9['getMinDaysInFirstWeek'](),'startOfWeek':_0x3cf1c9['getStartOfWeek']()};}return{'minDaysInFirstWeek':0x4,'startOfWeek':0x1};}function hasInvalidWeekData(_0x201ff4,_0x128960=0x4,_0x370501=0x1){const _0x53d035=isInteger(_0x201ff4['weekYear']),_0x509abc=integerBetween(_0x201ff4['weekNumber'],0x1,weeksInWeekYear(_0x201ff4['weekYear'],_0x128960,_0x370501)),_0x5b6842=integerBetween(_0x201ff4['weekday'],0x1,0x7);return _0x53d035?_0x509abc?!_0x5b6842&&unitOutOfRange('weekday',_0x201ff4['weekday']):unitOutOfRange('week',_0x201ff4['weekNumber']):unitOutOfRange('weekYear',_0x201ff4['weekYear']);}function hasInvalidOrdinalData(_0x51f12b){const _0x427f87=isInteger(_0x51f12b['year']),_0x5bdcf4=integerBetween(_0x51f12b['ordinal'],0x1,daysInYear(_0x51f12b['year']));return _0x427f87?!_0x5bdcf4&&unitOutOfRange('ordinal',_0x51f12b['ordinal']):unitOutOfRange('year',_0x51f12b['year']);}function hasInvalidGregorianData(_0x5c2741){const _0xb0d2f8=isInteger(_0x5c2741['year']),_0x4a13f7=integerBetween(_0x5c2741['month'],0x1,0xc),_0x111304=integerBetween(_0x5c2741['day'],0x1,daysInMonth(_0x5c2741['year'],_0x5c2741['month']));return _0xb0d2f8?_0x4a13f7?!_0x111304&&unitOutOfRange('day',_0x5c2741['day']):unitOutOfRange('month',_0x5c2741['month']):unitOutOfRange('year',_0x5c2741['year']);}function hasInvalidTimeData(_0x13ad83){const {hour:_0x4e6452,minute:_0x11050f,second:_0x4a744d,millisecond:_0x1c4dd0}=_0x13ad83,_0x532521=integerBetween(_0x4e6452,0x0,0x17)||0x18===_0x4e6452&&0x0===_0x11050f&&0x0===_0x4a744d&&0x0===_0x1c4dd0,_0x1ef753=integerBetween(_0x11050f,0x0,0x3b),_0x3c3388=integerBetween(_0x4a744d,0x0,0x3b),_0x1a480e=integerBetween(_0x1c4dd0,0x0,0x3e7);return _0x532521?_0x1ef753?_0x3c3388?!_0x1a480e&&unitOutOfRange('millisecond',_0x1c4dd0):unitOutOfRange('second',_0x4a744d):unitOutOfRange('minute',_0x11050f):unitOutOfRange('hour',_0x4e6452);}function isUndefined(_0x162bfa){return void 0x0===_0x162bfa;}function isNumber(_0x4d402b){return'number'==typeof _0x4d402b;}function isInteger(_0x2cd26c){return'number'==typeof _0x2cd26c&&_0x2cd26c%0x1==0x0;}function isString(_0x465a57){return'string'==typeof _0x465a57;}function isDate(_0x32ef4d){return'[object\x20Date]'===Object['prototype']['toString']['call'](_0x32ef4d);}function hasRelative(){try{return'undefined'!=typeof Intl&&!!Intl['RelativeTimeFormat'];}catch(_0x933600){return!0x1;}}function hasLocaleWeekInfo(){try{return'undefined'!=typeof Intl&&!!Intl['Locale']&&('weekInfo'in Intl['Locale']['prototype']||'getWeekInfo'in Intl['Locale']['prototype']);}catch(_0x2b31f5){return!0x1;}}function maybeArray(_0x3e740a){return Array['isArray'](_0x3e740a)?_0x3e740a:[_0x3e740a];}function bestBy(_0x516299,_0x3e7c90,_0x26e97d){if(0x0!==_0x516299['length'])return _0x516299['reduce']((_0x50e7ee,_0x409db0)=>{const _0x2bf162=[_0x3e7c90(_0x409db0),_0x409db0];return _0x50e7ee&&_0x26e97d(_0x50e7ee[0x0],_0x2bf162[0x0])===_0x50e7ee[0x0]?_0x50e7ee:_0x2bf162;},null)[0x1];}function pick$2(_0x33429c,_0x563386){return _0x563386['reduce']((_0x292143,_0x26a21e)=>(_0x292143[_0x26a21e]=_0x33429c[_0x26a21e],_0x292143),{});}function hasOwnProperty(_0x3734dd,_0x2b90ea){return Object['prototype']['hasOwnProperty']['call'](_0x3734dd,_0x2b90ea);}function validateWeekSettings(_0xd34ce){if(null==_0xd34ce)return null;if('object'!=typeof _0xd34ce)throw new InvalidArgumentError('Week\x20settings\x20must\x20be\x20an\x20object');if(!integerBetween(_0xd34ce['firstDay'],0x1,0x7)||!integerBetween(_0xd34ce['minimalDays'],0x1,0x7)||!Array['isArray'](_0xd34ce['weekend'])||_0xd34ce['weekend']['some'](_0x40204f=>!integerBetween(_0x40204f,0x1,0x7)))throw new InvalidArgumentError('Invalid\x20week\x20settings');return{'firstDay':_0xd34ce['firstDay'],'minimalDays':_0xd34ce['minimalDays'],'weekend':Array['from'](_0xd34ce['weekend'])};}function integerBetween(_0x89f350,_0x38ad04,_0x1843c){return isInteger(_0x89f350)&&_0x89f350>=_0x38ad04&&_0x89f350<=_0x1843c;}function floorMod(_0x4c6877,_0x45f9a0){return _0x4c6877-_0x45f9a0*Math['floor'](_0x4c6877/_0x45f9a0);}function padStart(_0x49f574,_0x457088=0x2){let _0x38c169;return _0x38c169=_0x49f574<0x0?'-'+(''+-_0x49f574)['padStart'](_0x457088,'0'):(''+_0x49f574)['padStart'](_0x457088,'0'),_0x38c169;}function parseInteger(_0x583412){return isUndefined(_0x583412)||null===_0x583412||''===_0x583412?void 0x0:parseInt(_0x583412,0xa);}function parseFloating(_0x4a40a7){return isUndefined(_0x4a40a7)||null===_0x4a40a7||''===_0x4a40a7?void 0x0:parseFloat(_0x4a40a7);}function parseMillis(_0x17b670){if(!isUndefined(_0x17b670)&&null!==_0x17b670&&''!==_0x17b670){const _0x27a7dd=0x3e8*parseFloat('0.'+_0x17b670);return Math['floor'](_0x27a7dd);}}function roundTo(_0x119af1,_0x56e937,_0x3ac625=!0x1){const _0x36daf4=0xa**_0x56e937;return(_0x3ac625?Math['trunc']:Math['round'])(_0x119af1*_0x36daf4)/_0x36daf4;}function isLeapYear(_0x35cfe0){return _0x35cfe0%0x4==0x0&&(_0x35cfe0%0x64!=0x0||_0x35cfe0%0x190==0x0);}function daysInYear(_0x1a9385){return isLeapYear(_0x1a9385)?0x16e:0x16d;}function daysInMonth(_0x19dec4,_0x252fbe){const _0x55741c=floorMod(_0x252fbe-0x1,0xc)+0x1;return 0x2===_0x55741c?isLeapYear(_0x19dec4+(_0x252fbe-_0x55741c)/0xc)?0x1d:0x1c:[0x1f,null,0x1f,0x1e,0x1f,0x1e,0x1f,0x1f,0x1e,0x1f,0x1e,0x1f][_0x55741c-0x1];}function objToLocalTS(_0x565487){let _0x2b2d56=Date['UTC'](_0x565487['year'],_0x565487['month']-0x1,_0x565487['day'],_0x565487['hour'],_0x565487['minute'],_0x565487['second'],_0x565487['millisecond']);return _0x565487['year']<0x64&&_0x565487['year']>=0x0&&(_0x2b2d56=new Date(_0x2b2d56),_0x2b2d56['setUTCFullYear'](_0x565487['year'],_0x565487['month']-0x1,_0x565487['day'])),+_0x2b2d56;}function firstWeekOffset(_0x54a9aa,_0x4f9eaf,_0x339e83){return-isoWeekdayToLocal(dayOfWeek(_0x54a9aa,0x1,_0x4f9eaf),_0x339e83)+_0x4f9eaf-0x1;}function weeksInWeekYear(_0x280b11,_0x36dc2b=0x4,_0x3db9d3=0x1){const _0x40c7d8=firstWeekOffset(_0x280b11,_0x36dc2b,_0x3db9d3),_0x4e33f3=firstWeekOffset(_0x280b11+0x1,_0x36dc2b,_0x3db9d3);return(daysInYear(_0x280b11)-_0x40c7d8+_0x4e33f3)/0x7;}function untruncateYear(_0x5c51f1){return _0x5c51f1>0x63?_0x5c51f1:_0x5c51f1>Settings['twoDigitCutoffYear']?0x76c+_0x5c51f1:0x7d0+_0x5c51f1;}function parseZoneInfo(_0x1dd10b,_0x31abac,_0x164af9,_0x3133cb=null){const _0x53cd8f=new Date(_0x1dd10b),_0x49395e={'hourCycle':'h23','year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit'};_0x3133cb&&(_0x49395e['timeZone']=_0x3133cb);const _0x591352={'timeZoneName':_0x31abac,..._0x49395e},_0x43c06a=new Intl['DateTimeFormat'](_0x164af9,_0x591352)['formatToParts'](_0x53cd8f)['find'](_0x14862b=>'timezonename'===_0x14862b['type']['toLowerCase']());return _0x43c06a?_0x43c06a['value']:null;}function signedOffset(_0x30da09,_0xe277f7){let _0x1758e3=parseInt(_0x30da09,0xa);Number['isNaN'](_0x1758e3)&&(_0x1758e3=0x0);const _0x4c5293=parseInt(_0xe277f7,0xa)||0x0;return 0x3c*_0x1758e3+(_0x1758e3<0x0||Object['is'](_0x1758e3,-0x0)?-_0x4c5293:_0x4c5293);}function asNumber$1(_0xc107d6){const _0x5ddff6=Number(_0xc107d6);if('boolean'==typeof _0xc107d6||''===_0xc107d6||Number['isNaN'](_0x5ddff6))throw new InvalidArgumentError('Invalid\x20unit\x20value\x20'+_0xc107d6);return _0x5ddff6;}function normalizeObject(_0x4d52c7,_0x49a58c){const _0x233c98={};for(const _0x295f94 in _0x4d52c7)if(hasOwnProperty(_0x4d52c7,_0x295f94)){const _0x5827dd=_0x4d52c7[_0x295f94];if(null==_0x5827dd)continue;_0x233c98[_0x49a58c(_0x295f94)]=asNumber$1(_0x5827dd);}return _0x233c98;}function formatOffset(_0x56fe15,_0x54d0d1){const _0xe65bbb=Math['trunc'](Math['abs'](_0x56fe15/0x3c)),_0x2e305e=Math['trunc'](Math['abs'](_0x56fe15%0x3c)),_0x221ff0=_0x56fe15>=0x0?'+':'-';switch(_0x54d0d1){case'short':return''+_0x221ff0+padStart(_0xe65bbb,0x2)+':'+padStart(_0x2e305e,0x2);case'narrow':return''+_0x221ff0+_0xe65bbb+(_0x2e305e>0x0?':'+_0x2e305e:'');case'techie':return''+_0x221ff0+padStart(_0xe65bbb,0x2)+padStart(_0x2e305e,0x2);default:throw new RangeError('Value\x20format\x20'+_0x54d0d1+'\x20is\x20out\x20of\x20range\x20for\x20property\x20format');}}function timeObject(_0x7b2f7a){return pick$2(_0x7b2f7a,['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(_0x5205ff){switch(_0x5205ff){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(_0x2d7874){switch(_0x2d7874){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(_0x11afa3){switch(_0x11afa3){case'narrow':return[...erasNarrow];case'short':return[...erasShort];case'long':return[...erasLong];default:return null;}}function meridiemForDateTime(_0xdf5579){return meridiems[_0xdf5579['hour']<0xc?0x0:0x1];}function weekdayForDateTime(_0x63c949,_0x4976b5){return weekdays(_0x4976b5)[_0x63c949['weekday']-0x1];}function monthForDateTime(_0x2a906b,_0xd108ed){return months(_0xd108ed)[_0x2a906b['month']-0x1];}function eraForDateTime(_0x21ea6a,_0x469339){return eras(_0x469339)[_0x21ea6a['year']<0x0?0x0:0x1];}function formatRelativeTime(_0x5cef42,_0x369880,_0x5d983f='always',_0x32a9de=!0x1){const _0x30d652={'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.']},_0x190f88=-0x1===['hours','minutes','seconds']['indexOf'](_0x5cef42);if('auto'===_0x5d983f&&_0x190f88){const _0x3903d9='days'===_0x5cef42;switch(_0x369880){case 0x1:return _0x3903d9?'tomorrow':'next\x20'+_0x30d652[_0x5cef42][0x0];case-0x1:return _0x3903d9?'yesterday':'last\x20'+_0x30d652[_0x5cef42][0x0];case 0x0:return _0x3903d9?'today':'this\x20'+_0x30d652[_0x5cef42][0x0];}}const _0x24dbd3=Object['is'](_0x369880,-0x0)||_0x369880<0x0,_0x30aa6f=Math['abs'](_0x369880),_0x2668f3=0x1===_0x30aa6f,_0x17e4af=_0x30d652[_0x5cef42],_0x4ebd41=_0x32a9de?_0x2668f3?_0x17e4af[0x1]:_0x17e4af[0x2]||_0x17e4af[0x1]:_0x2668f3?_0x30d652[_0x5cef42][0x0]:_0x5cef42;return _0x24dbd3?_0x30aa6f+'\x20'+_0x4ebd41+'\x20ago':'in\x20'+_0x30aa6f+'\x20'+_0x4ebd41;}function stringifyTokens(_0x308587,_0x58bd4c){let _0x325665='';for(const _0x59513a of _0x308587)_0x59513a['literal']?_0x325665+=_0x59513a['val']:_0x325665+=_0x58bd4c(_0x59513a['val']);return _0x325665;}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'](_0x37af95,_0x3e6278={}){return new Formatter(_0x37af95,_0x3e6278);}static['parseFormat'](_0x4577c3){let _0x2185b4=null,_0x30c03d='',_0x383078=!0x1;const _0x797571=[];for(let _0x49f92a=0x0;_0x49f92a<_0x4577c3['length'];_0x49f92a++){const _0x59bd93=_0x4577c3['charAt'](_0x49f92a);'\x27'===_0x59bd93?(_0x30c03d['length']>0x0&&_0x797571['push']({'literal':_0x383078||/^\s+$/['test'](_0x30c03d),'val':_0x30c03d}),_0x2185b4=null,_0x30c03d='',_0x383078=!_0x383078):_0x383078||_0x59bd93===_0x2185b4?_0x30c03d+=_0x59bd93:(_0x30c03d['length']>0x0&&_0x797571['push']({'literal':/^\s+$/['test'](_0x30c03d),'val':_0x30c03d}),_0x30c03d=_0x59bd93,_0x2185b4=_0x59bd93);}return _0x30c03d['length']>0x0&&_0x797571['push']({'literal':_0x383078||/^\s+$/['test'](_0x30c03d),'val':_0x30c03d}),_0x797571;}static['macroTokenToFormatOpts'](_0x1b36ce){return macroTokenToFormatOpts[_0x1b36ce];}constructor(_0x5558c8,_0x5e9a73){this['opts']=_0x5e9a73,this['loc']=_0x5558c8,this['systemLoc']=null;}['formatWithSystemDefault'](_0x2c7989,_0x32f9d3){return null===this['systemLoc']&&(this['systemLoc']=this['loc']['redefaultToSystem']()),this['systemLoc']['dtFormatter'](_0x2c7989,{...this['opts'],..._0x32f9d3})['format']();}['dtFormatter'](_0x1ac97e,_0x3757a8={}){return this['loc']['dtFormatter'](_0x1ac97e,{...this['opts'],..._0x3757a8});}['formatDateTime'](_0x24e35b,_0x2b6d10){return this['dtFormatter'](_0x24e35b,_0x2b6d10)['format']();}['formatDateTimeParts'](_0x3a819a,_0x34f4c8){return this['dtFormatter'](_0x3a819a,_0x34f4c8)['formatToParts']();}['formatInterval'](_0x5014f4,_0x5ad792){return this['dtFormatter'](_0x5014f4['start'],_0x5ad792)['dtf']['formatRange'](_0x5014f4['start']['toJSDate'](),_0x5014f4['end']['toJSDate']());}['resolvedOptions'](_0x286385,_0x569605){return this['dtFormatter'](_0x286385,_0x569605)['resolvedOptions']();}['num'](_0x2b6345,_0x41fc44=0x0){if(this['opts']['forceSimple'])return padStart(_0x2b6345,_0x41fc44);const _0x3ac021={...this['opts']};return _0x41fc44>0x0&&(_0x3ac021['padTo']=_0x41fc44),this['loc']['numberFormatter'](_0x3ac021)['format'](_0x2b6345);}['formatDateTimeFromString'](_0x9f5bac,_0xbbfb4){const _0x3b24e3='en'===this['loc']['listingMode'](),_0x3ed8e7=this['loc']['outputCalendar']&&'gregory'!==this['loc']['outputCalendar'],_0x53a2df=(_0x17a875,_0x45215b)=>this['loc']['extract'](_0x9f5bac,_0x17a875,_0x45215b),_0x1f60c9=_0x5521cb=>_0x9f5bac['isOffsetFixed']&&0x0===_0x9f5bac['offset']&&_0x5521cb['allowZ']?'Z':_0x9f5bac['isValid']?_0x9f5bac['zone']['formatOffset'](_0x9f5bac['ts'],_0x5521cb['format']):'',_0x853ea0=(_0xa07620,_0x25126e)=>_0x3b24e3?monthForDateTime(_0x9f5bac,_0xa07620):_0x53a2df(_0x25126e?{'month':_0xa07620}:{'month':_0xa07620,'day':'numeric'},'month'),_0x374cfa=(_0x4f6245,_0x50ddeb)=>_0x3b24e3?weekdayForDateTime(_0x9f5bac,_0x4f6245):_0x53a2df(_0x50ddeb?{'weekday':_0x4f6245}:{'weekday':_0x4f6245,'month':'long','day':'numeric'},'weekday'),_0x189c01=_0x233d9b=>{const _0x5c7cad=Formatter['macroTokenToFormatOpts'](_0x233d9b);return _0x5c7cad?this['formatWithSystemDefault'](_0x9f5bac,_0x5c7cad):_0x233d9b;},_0x58bb71=_0x521126=>_0x3b24e3?eraForDateTime(_0x9f5bac,_0x521126):_0x53a2df({'era':_0x521126},'era');return stringifyTokens(Formatter['parseFormat'](_0xbbfb4),_0x425504=>{switch(_0x425504){case'S':return this['num'](_0x9f5bac['millisecond']);case'u':case'SSS':return this['num'](_0x9f5bac['millisecond'],0x3);case's':return this['num'](_0x9f5bac['second']);case'ss':return this['num'](_0x9f5bac['second'],0x2);case'uu':return this['num'](Math['floor'](_0x9f5bac['millisecond']/0xa),0x2);case'uuu':return this['num'](Math['floor'](_0x9f5bac['millisecond']/0x64));case'm':return this['num'](_0x9f5bac['minute']);case'mm':return this['num'](_0x9f5bac['minute'],0x2);case'h':return this['num'](_0x9f5bac['hour']%0xc==0x0?0xc:_0x9f5bac['hour']%0xc);case'hh':return this['num'](_0x9f5bac['hour']%0xc==0x0?0xc:_0x9f5bac['hour']%0xc,0x2);case'H':return this['num'](_0x9f5bac['hour']);case'HH':return this['num'](_0x9f5bac['hour'],0x2);case'Z':return _0x1f60c9({'format':'narrow','allowZ':this['opts']['allowZ']});case'ZZ':return _0x1f60c9({'format':'short','allowZ':this['opts']['allowZ']});case'ZZZ':return _0x1f60c9({'format':'techie','allowZ':this['opts']['allowZ']});case'ZZZZ':return _0x9f5bac['zone']['offsetName'](_0x9f5bac['ts'],{'format':'short','locale':this['loc']['locale']});case'ZZZZZ':return _0x9f5bac['zone']['offsetName'](_0x9f5bac['ts'],{'format':'long','locale':this['loc']['locale']});case'z':return _0x9f5bac['zoneName'];case'a':return _0x3b24e3?meridiemForDateTime(_0x9f5bac):_0x53a2df({'hour':'numeric','hourCycle':'h12'},'dayperiod');case'd':return _0x3ed8e7?_0x53a2df({'day':'numeric'},'day'):this['num'](_0x9f5bac['day']);case'dd':return _0x3ed8e7?_0x53a2df({'day':'2-digit'},'day'):this['num'](_0x9f5bac['day'],0x2);case'c':case'E':return this['num'](_0x9f5bac['weekday']);case'ccc':return _0x374cfa('short',!0x0);case'cccc':return _0x374cfa('long',!0x0);case'ccccc':return _0x374cfa('narrow',!0x0);case'EEE':return _0x374cfa('short',!0x1);case'EEEE':return _0x374cfa('long',!0x1);case'EEEEE':return _0x374cfa('narrow',!0x1);case'L':return _0x3ed8e7?_0x53a2df({'month':'numeric','day':'numeric'},'month'):this['num'](_0x9f5bac['month']);case'LL':return _0x3ed8e7?_0x53a2df({'month':'2-digit','day':'numeric'},'month'):this['num'](_0x9f5bac['month'],0x2);case'LLL':return _0x853ea0('short',!0x0);case'LLLL':return _0x853ea0('long',!0x0);case'LLLLL':return _0x853ea0('narrow',!0x0);case'M':return _0x3ed8e7?_0x53a2df({'month':'numeric'},'month'):this['num'](_0x9f5bac['month']);case'MM':return _0x3ed8e7?_0x53a2df({'month':'2-digit'},'month'):this['num'](_0x9f5bac['month'],0x2);case'MMM':return _0x853ea0('short',!0x1);case'MMMM':return _0x853ea0('long',!0x1);case'MMMMM':return _0x853ea0('narrow',!0x1);case'y':return _0x3ed8e7?_0x53a2df({'year':'numeric'},'year'):this['num'](_0x9f5bac['year']);case'yy':return _0x3ed8e7?_0x53a2df({'year':'2-digit'},'year'):this['num'](_0x9f5bac['year']['toString']()['slice'](-0x2),0x2);case'yyyy':return _0x3ed8e7?_0x53a2df({'year':'numeric'},'year'):this['num'](_0x9f5bac['year'],0x4);case'yyyyyy':return _0x3ed8e7?_0x53a2df({'year':'numeric'},'year'):this['num'](_0x9f5bac['year'],0x6);case'G':return _0x58bb71('short');case'GG':return _0x58bb71('long');case'GGGGG':return _0x58bb71('narrow');case'kk':return this['num'](_0x9f5bac['weekYear']['toString']()['slice'](-0x2),0x2);case'kkkk':return this['num'](_0x9f5bac['weekYear'],0x4);case'W':return this['num'](_0x9f5bac['weekNumber']);case'WW':return this['num'](_0x9f5bac['weekNumber'],0x2);case'n':return this['num'](_0x9f5bac['localWeekNumber']);case'nn':return this['num'](_0x9f5bac['localWeekNumber'],0x2);case'ii':return this['num'](_0x9f5bac['localWeekYear']['toString']()['slice'](-0x2),0x2);case'iiii':return this['num'](_0x9f5bac['localWeekYear'],0x4);case'o':return this['num'](_0x9f5bac['ordinal']);case'ooo':return this['num'](_0x9f5bac['ordinal'],0x3);case'q':return this['num'](_0x9f5bac['quarter']);case'qq':return this['num'](_0x9f5bac['quarter'],0x2);case'X':return this['num'](Math['floor'](_0x9f5bac['ts']/0x3e8));case'x':return this['num'](_0x9f5bac['ts']);default:return _0x189c01(_0x425504);}});}['formatDurationFromString'](_0xac849c,_0xe46426){const _0x325141=_0x53af93=>{switch(_0x53af93[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;}},_0x343b9f=Formatter['parseFormat'](_0xe46426),_0x28e33b=_0x343b9f['reduce']((_0x560ca6,{literal:_0x29e0bc,val:_0x45428c})=>_0x29e0bc?_0x560ca6:_0x560ca6['concat'](_0x45428c),[]),_0x5714c6=_0xac849c['shiftTo'](..._0x28e33b['map'](_0x325141)['filter'](t=>t));return stringifyTokens(_0x343b9f,(_0x102cff=>_0x468d5c=>{const _0x15b171=_0x325141(_0x468d5c);return _0x15b171?this['num'](_0x102cff['get'](_0x15b171),_0x468d5c['length']):_0x468d5c;})(_0x5714c6));}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(..._0x34c63d){const _0x2505a3=_0x34c63d['reduce']((_0x49b44e,_0x44c0c3)=>_0x49b44e+_0x44c0c3['source'],'');return RegExp('^'+_0x2505a3+'$');}function combineExtractors(..._0x2d1492){return _0x60b3b=>_0x2d1492['reduce'](([_0x449ad3,_0xac0abc,_0x345a7d],_0x2a325b)=>{const [_0x375d65,_0x122954,_0x1236ea]=_0x2a325b(_0x60b3b,_0x345a7d);return[{..._0x449ad3,..._0x375d65},_0x122954||_0xac0abc,_0x1236ea];},[{},null,0x1])['slice'](0x0,0x2);}function parse$1(_0xf511c7,..._0x5dcee7){if(null==_0xf511c7)return[null,null];for(const [_0x840230,_0x13bd24]of _0x5dcee7){const _0x1ea0cd=_0x840230['exec'](_0xf511c7);if(_0x1ea0cd)return _0x13bd24(_0x1ea0cd);}return[null,null];}function simpleParse(..._0x44512){return(_0x2ad724,_0x1923cf)=>{const _0x5f00e0={};let _0x33a006;for(_0x33a006=0x0;_0x33a006<_0x44512['length'];_0x33a006++)_0x5f00e0[_0x44512[_0x33a006]]=parseInteger(_0x2ad724[_0x1923cf+_0x33a006]);return[_0x5f00e0,null,_0x1923cf+_0x33a006];};}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(_0x4a4d50,_0x1ffdff,_0x4238af){const _0x5014b2=_0x4a4d50[_0x1ffdff];return isUndefined(_0x5014b2)?_0x4238af:parseInteger(_0x5014b2);}function extractISOYmd(_0x31f036,_0x3d7b1b){return[{'year':int(_0x31f036,_0x3d7b1b),'month':int(_0x31f036,_0x3d7b1b+0x1,0x1),'day':int(_0x31f036,_0x3d7b1b+0x2,0x1)},null,_0x3d7b1b+0x3];}function extractISOTime(_0x156e7f,_0xe6d593){return[{'hours':int(_0x156e7f,_0xe6d593,0x0),'minutes':int(_0x156e7f,_0xe6d593+0x1,0x0),'seconds':int(_0x156e7f,_0xe6d593+0x2,0x0),'milliseconds':parseMillis(_0x156e7f[_0xe6d593+0x3])},null,_0xe6d593+0x4];}function extractISOOffset(_0x4a3958,_0x3cae90){const _0x257a11=!_0x4a3958[_0x3cae90]&&!_0x4a3958[_0x3cae90+0x1],_0x4cb590=signedOffset(_0x4a3958[_0x3cae90+0x1],_0x4a3958[_0x3cae90+0x2]);return[{},_0x257a11?null:FixedOffsetZone['instance'](_0x4cb590),_0x3cae90+0x3];}function extractIANAZone(_0x4ce28b,_0x9321bc){return[{},_0x4ce28b[_0x9321bc]?IANAZone['create'](_0x4ce28b[_0x9321bc]):null,_0x9321bc+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(_0x40b02f){const [_0x5b6790,_0x1ebf0b,_0x522d7f,_0x42f9fe,_0x3eb5df,_0x43dd4b,_0x5a65d4,_0x4e715d,_0x29ed96]=_0x40b02f,_0x32c472='-'===_0x5b6790[0x0],_0xe0fc98=_0x4e715d&&'-'===_0x4e715d[0x0],_0x207f89=(_0x50ed59,_0x1a02c8=!0x1)=>void 0x0!==_0x50ed59&&(_0x1a02c8||_0x50ed59&&_0x32c472)?-_0x50ed59:_0x50ed59;return[{'years':_0x207f89(parseFloating(_0x1ebf0b)),'months':_0x207f89(parseFloating(_0x522d7f)),'weeks':_0x207f89(parseFloating(_0x42f9fe)),'days':_0x207f89(parseFloating(_0x3eb5df)),'hours':_0x207f89(parseFloating(_0x43dd4b)),'minutes':_0x207f89(parseFloating(_0x5a65d4)),'seconds':_0x207f89(parseFloating(_0x4e715d),'-0'===_0x4e715d),'milliseconds':_0x207f89(parseMillis(_0x29ed96),_0xe0fc98)}];}const obsOffsets={'GMT':0x0,'EDT':-0xf0,'EST':-0x12c,'CDT':-0x12c,'CST':-0x168,'MDT':-0x168,'MST':-0x1a4,'PDT':-0x1a4,'PST':-0x1e0};function fromStrings(_0x6e8c7,_0x38eb,_0x13a7d4,_0x537191,_0x36c33f,_0x1f95f7,_0x246141){const _0x238099={'year':0x2===_0x38eb['length']?untruncateYear(parseInteger(_0x38eb)):parseInteger(_0x38eb),'month':monthsShort['indexOf'](_0x13a7d4)+0x1,'day':parseInteger(_0x537191),'hour':parseInteger(_0x36c33f),'minute':parseInteger(_0x1f95f7)};return _0x246141&&(_0x238099['second']=parseInteger(_0x246141)),_0x6e8c7&&(_0x238099['weekday']=_0x6e8c7['length']>0x3?weekdaysLong['indexOf'](_0x6e8c7)+0x1:weekdaysShort['indexOf'](_0x6e8c7)+0x1),_0x238099;}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(_0x1f497c){const [,_0x5cde90,_0x1b9cca,_0x3ce17f,_0x574e8d,_0x24113b,_0x4ef5f3,_0x5e3bb3,_0x47617d,_0x76289b,_0x376495,_0x22b55a]=_0x1f497c,_0x37a806=fromStrings(_0x5cde90,_0x574e8d,_0x3ce17f,_0x1b9cca,_0x24113b,_0x4ef5f3,_0x5e3bb3);let _0x550c95;return _0x550c95=_0x47617d?obsOffsets[_0x47617d]:_0x76289b?0x0:signedOffset(_0x376495,_0x22b55a),[_0x37a806,new FixedOffsetZone(_0x550c95)];}function preprocessRFC2822(_0x22e4be){return _0x22e4be['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(_0x5d666b){const [,_0x4b6135,_0x45021b,_0x3534e3,_0x4c299b,_0x11d208,_0x3e2566,_0x3d20a8]=_0x5d666b;return[fromStrings(_0x4b6135,_0x4c299b,_0x3534e3,_0x45021b,_0x11d208,_0x3e2566,_0x3d20a8),FixedOffsetZone['utcInstance']];}function extractASCII(_0x24fb41){const [,_0x25ec4b,_0x3d99a5,_0x40ebf9,_0x2e1720,_0x454d62,_0x10a509,_0x12585b]=_0x24fb41;return[fromStrings(_0x25ec4b,_0x12585b,_0x3d99a5,_0x40ebf9,_0x2e1720,_0x454d62,_0x10a509),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(_0x5d37f1){return parse$1(_0x5d37f1,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset]);}function parseRFC2822Date(_0x43f7a0){return parse$1(preprocessRFC2822(_0x43f7a0),[rfc2822,extractRFC2822]);}function parseHTTPDate(_0x4fb59e){return parse$1(_0x4fb59e,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII]);}function parseISODuration(_0x2ffdfb){return parse$1(_0x2ffdfb,[isoDuration,extractISODuration]);}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(_0x576816){return parse$1(_0x576816,[isoTimeOnly,extractISOTimeOnly]);}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(_0xe308b){return parse$1(_0xe308b,[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(_0x1837c2,_0x5b5ab2,_0x44f8af=!0x1){const _0x1ff5f4={'values':_0x44f8af?_0x5b5ab2['values']:{..._0x1837c2['values'],..._0x5b5ab2['values']||{}},'loc':_0x1837c2['loc']['clone'](_0x5b5ab2['loc']),'conversionAccuracy':_0x5b5ab2['conversionAccuracy']||_0x1837c2['conversionAccuracy'],'matrix':_0x5b5ab2['matrix']||_0x1837c2['matrix']};return new Duration(_0x1ff5f4);}function durationToMillis(_0x566715,_0x2247f9){let _0x151fe6=_0x2247f9['milliseconds']??0x0;for(const _0x11648d of reverseUnits['slice'](0x1))_0x2247f9[_0x11648d]&&(_0x151fe6+=_0x2247f9[_0x11648d]*_0x566715[_0x11648d]['milliseconds']);return _0x151fe6;}function normalizeValues(_0x1bcbf0,_0x43763d){const _0x2e35ec=durationToMillis(_0x1bcbf0,_0x43763d)<0x0?-0x1:0x1;orderedUnits$1['reduceRight']((_0x243d27,_0x3bf633)=>{if(isUndefined(_0x43763d[_0x3bf633]))return _0x243d27;if(_0x243d27){const _0x470f31=_0x43763d[_0x243d27]*_0x2e35ec,_0x5429b2=_0x1bcbf0[_0x3bf633][_0x243d27],_0x20d5a4=Math['floor'](_0x470f31/_0x5429b2);_0x43763d[_0x3bf633]+=_0x20d5a4*_0x2e35ec,_0x43763d[_0x243d27]-=_0x20d5a4*_0x5429b2*_0x2e35ec;}return _0x3bf633;},null),orderedUnits$1['reduce']((_0x25071a,_0x6068f7)=>{if(isUndefined(_0x43763d[_0x6068f7]))return _0x25071a;if(_0x25071a){const _0x3ac221=_0x43763d[_0x25071a]%0x1;_0x43763d[_0x25071a]-=_0x3ac221,_0x43763d[_0x6068f7]+=_0x3ac221*_0x1bcbf0[_0x25071a][_0x6068f7];}return _0x6068f7;},null);}function removeZeroes(_0x364640){const _0x40fff0={};for(const [_0x58373d,_0x61d534]of Object['entries'](_0x364640))0x0!==_0x61d534&&(_0x40fff0[_0x58373d]=_0x61d534);return _0x40fff0;}class Duration{constructor(_0x3e9b31){const _0x5dcad3='longterm'===_0x3e9b31['conversionAccuracy']||!0x1;let _0x347098=_0x5dcad3?accurateMatrix:casualMatrix;_0x3e9b31['matrix']&&(_0x347098=_0x3e9b31['matrix']),this['values']=_0x3e9b31['values'],this['loc']=_0x3e9b31['loc']||Locale['create'](),this['conversionAccuracy']=_0x5dcad3?'longterm':'casual',this['invalid']=_0x3e9b31['invalid']||null,this['matrix']=_0x347098,this['isLuxonDuration']=!0x0;}static['fromMillis'](_0x471bd0,_0xbb6f20){return Duration['fromObject']({'milliseconds':_0x471bd0},_0xbb6f20);}static['fromObject'](_0x3397d1,_0x58327c={}){if(null==_0x3397d1||'object'!=typeof _0x3397d1)throw new InvalidArgumentError('Duration.fromObject:\x20argument\x20expected\x20to\x20be\x20an\x20object,\x20got\x20'+(null===_0x3397d1?'null':typeof _0x3397d1));return new Duration({'values':normalizeObject(_0x3397d1,Duration['normalizeUnit']),'loc':Locale['fromObject'](_0x58327c),'conversionAccuracy':_0x58327c['conversionAccuracy'],'matrix':_0x58327c['matrix']});}static['fromDurationLike'](_0x19f4b9){if(isNumber(_0x19f4b9))return Duration['fromMillis'](_0x19f4b9);if(Duration['isDuration'](_0x19f4b9))return _0x19f4b9;if('object'==typeof _0x19f4b9)return Duration['fromObject'](_0x19f4b9);throw new InvalidArgumentError('Unknown\x20duration\x20argument\x20'+_0x19f4b9+'\x20of\x20type\x20'+typeof _0x19f4b9);}static['fromISO'](_0x32bc92,_0x2e2432){const [_0x4e9b88]=parseISODuration(_0x32bc92);return _0x4e9b88?Duration['fromObject'](_0x4e9b88,_0x2e2432):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x32bc92+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['fromISOTime'](_0x69fab1,_0x2a7274){const [_0x5e03a2]=parseISOTimeOnly(_0x69fab1);return _0x5e03a2?Duration['fromObject'](_0x5e03a2,_0x2a7274):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x69fab1+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['invalid'](_0x549e91,_0xa88e66=null){if(!_0x549e91)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Duration\x20is\x20invalid');const _0x1001ab=_0x549e91 instanceof Invalid?_0x549e91:new Invalid(_0x549e91,_0xa88e66);if(Settings['throwOnInvalid'])throw new InvalidDurationError(_0x1001ab);return new Duration({'invalid':_0x1001ab});}static['normalizeUnit'](_0x26a5ef){const _0x3b2295={'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'}[_0x26a5ef?_0x26a5ef['toLowerCase']():_0x26a5ef];if(!_0x3b2295)throw new InvalidUnitError(_0x26a5ef);return _0x3b2295;}static['isDuration'](_0x11cd77){return _0x11cd77&&_0x11cd77['isLuxonDuration']||!0x1;}get['locale'](){return this['isValid']?this['loc']['locale']:null;}get['numberingSystem'](){return this['isValid']?this['loc']['numberingSystem']:null;}['toFormat'](_0x4af1ab,_0x2c680f={}){const _0x441b0d={..._0x2c680f,'floor':!0x1!==_0x2c680f['round']&&!0x1!==_0x2c680f['floor']};return this['isValid']?Formatter['create'](this['loc'],_0x441b0d)['formatDurationFromString'](this,_0x4af1ab):INVALID$2;}['toHuman'](_0x7f6065={}){if(!this['isValid'])return INVALID$2;const _0x345ea7=orderedUnits$1['map'](_0x4a5958=>{const _0x7155f6=this['values'][_0x4a5958];return isUndefined(_0x7155f6)?null:this['loc']['numberFormatter']({'style':'unit','unitDisplay':'long',..._0x7f6065,'unit':_0x4a5958['slice'](0x0,-0x1)})['format'](_0x7155f6);})['filter'](_0x323376=>_0x323376);return this['loc']['listFormatter']({'type':'conjunction','style':_0x7f6065['listStyle']||'narrow',..._0x7f6065})['format'](_0x345ea7);}['toObject'](){return this['isValid']?{...this['values']}:{};}['toISO'](){if(!this['isValid'])return null;let _0x31cbdc='P';return 0x0!==this['years']&&(_0x31cbdc+=this['years']+'Y'),0x0===this['months']&&0x0===this['quarters']||(_0x31cbdc+=this['months']+0x3*this['quarters']+'M'),0x0!==this['weeks']&&(_0x31cbdc+=this['weeks']+'W'),0x0!==this['days']&&(_0x31cbdc+=this['days']+'D'),0x0===this['hours']&&0x0===this['minutes']&&0x0===this['seconds']&&0x0===this['milliseconds']||(_0x31cbdc+='T'),0x0!==this['hours']&&(_0x31cbdc+=this['hours']+'H'),0x0!==this['minutes']&&(_0x31cbdc+=this['minutes']+'M'),0x0===this['seconds']&&0x0===this['milliseconds']||(_0x31cbdc+=roundTo(this['seconds']+this['milliseconds']/0x3e8,0x3)+'S'),'P'===_0x31cbdc&&(_0x31cbdc+='T0S'),_0x31cbdc;}['toISOTime'](_0x1519ae={}){if(!this['isValid'])return null;const _0x4451df=this['toMillis']();if(_0x4451df<0x0||_0x4451df>=0x5265c00)return null;return _0x1519ae={'suppressMilliseconds':!0x1,'suppressSeconds':!0x1,'includePrefix':!0x1,'format':'extended',..._0x1519ae,'includeOffset':!0x1},DateTime['fromMillis'](_0x4451df,{'zone':'UTC'})['toISOTime'](_0x1519ae);}['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'](_0x37c9f2){if(!this['isValid'])return this;const _0x4cdd88=Duration['fromDurationLike'](_0x37c9f2),_0x793d2a={};for(const _0x4c650e of orderedUnits$1)(hasOwnProperty(_0x4cdd88['values'],_0x4c650e)||hasOwnProperty(this['values'],_0x4c650e))&&(_0x793d2a[_0x4c650e]=_0x4cdd88['get'](_0x4c650e)+this['get'](_0x4c650e));return clone$1(this,{'values':_0x793d2a},!0x0);}['minus'](_0x2761fa){if(!this['isValid'])return this;const _0x3de69d=Duration['fromDurationLike'](_0x2761fa);return this['plus'](_0x3de69d['negate']());}['mapUnits'](_0x49c23a){if(!this['isValid'])return this;const _0x1ba8f4={};for(const _0x61f66c of Object['keys'](this['values']))_0x1ba8f4[_0x61f66c]=asNumber$1(_0x49c23a(this['values'][_0x61f66c],_0x61f66c));return clone$1(this,{'values':_0x1ba8f4},!0x0);}['get'](_0x153943){return this[Duration['normalizeUnit'](_0x153943)];}['set'](_0x3db43e){if(!this['isValid'])return this;return clone$1(this,{'values':{...this['values'],...normalizeObject(_0x3db43e,Duration['normalizeUnit'])}});}['reconfigure']({locale:_0x28e61d,numberingSystem:_0x56426f,conversionAccuracy:_0x4bcfa0,matrix:_0x240b8a}={}){return clone$1(this,{'loc':this['loc']['clone']({'locale':_0x28e61d,'numberingSystem':_0x56426f}),'matrix':_0x240b8a,'conversionAccuracy':_0x4bcfa0});}['as'](_0x941690){return this['isValid']?this['shiftTo'](_0x941690)['get'](_0x941690):NaN;}['normalize'](){if(!this['isValid'])return this;const _0x3d1d11=this['toObject']();return normalizeValues(this['matrix'],_0x3d1d11),clone$1(this,{'values':_0x3d1d11},!0x0);}['rescale'](){if(!this['isValid'])return this;return clone$1(this,{'values':removeZeroes(this['normalize']()['shiftToAll']()['toObject']())},!0x0);}['shiftTo'](..._0x65ad98){if(!this['isValid'])return this;if(0x0===_0x65ad98['length'])return this;_0x65ad98=_0x65ad98['map'](_0x151c6f=>Duration['normalizeUnit'](_0x151c6f));const _0x444671={},_0x41c40d={},_0x135fad=this['toObject']();let _0x2a9e81;for(const _0x540fdb of orderedUnits$1)if(_0x65ad98['indexOf'](_0x540fdb)>=0x0){_0x2a9e81=_0x540fdb;let _0x13d07e=0x0;for(const _0x2d391b in _0x41c40d)_0x13d07e+=this['matrix'][_0x2d391b][_0x540fdb]*_0x41c40d[_0x2d391b],_0x41c40d[_0x2d391b]=0x0;isNumber(_0x135fad[_0x540fdb])&&(_0x13d07e+=_0x135fad[_0x540fdb]);const _0x4fb5de=Math['trunc'](_0x13d07e);_0x444671[_0x540fdb]=_0x4fb5de,_0x41c40d[_0x540fdb]=(0x3e8*_0x13d07e-0x3e8*_0x4fb5de)/0x3e8;}else isNumber(_0x135fad[_0x540fdb])&&(_0x41c40d[_0x540fdb]=_0x135fad[_0x540fdb]);for(const _0x43ad34 in _0x41c40d)0x0!==_0x41c40d[_0x43ad34]&&(_0x444671[_0x2a9e81]+=_0x43ad34===_0x2a9e81?_0x41c40d[_0x43ad34]:_0x41c40d[_0x43ad34]/this['matrix'][_0x2a9e81][_0x43ad34]);return normalizeValues(this['matrix'],_0x444671),clone$1(this,{'values':_0x444671},!0x0);}['shiftToAll'](){return this['isValid']?this['shiftTo']('years','months','weeks','days','hours','minutes','seconds','milliseconds'):this;}['negate'](){if(!this['isValid'])return this;const _0x328cff={};for(const _0x52a541 of Object['keys'](this['values']))_0x328cff[_0x52a541]=0x0===this['values'][_0x52a541]?0x0:-this['values'][_0x52a541];return clone$1(this,{'values':_0x328cff},!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'](_0x43db6b){if(!this['isValid']||!_0x43db6b['isValid'])return!0x1;if(!this['loc']['equals'](_0x43db6b['loc']))return!0x1;function _0x2058b5(_0x32ad2e,_0x1c039e){return void 0x0===_0x32ad2e||0x0===_0x32ad2e?void 0x0===_0x1c039e||0x0===_0x1c039e:_0x32ad2e===_0x1c039e;}for(const _0x32dd1c of orderedUnits$1)if(!_0x2058b5(this['values'][_0x32dd1c],_0x43db6b['values'][_0x32dd1c]))return!0x1;return!0x0;}}const INVALID$1='Invalid\x20Interval';function validateStartEnd(_0x1064e3,_0x1b1995){return _0x1064e3&&_0x1064e3['isValid']?_0x1b1995&&_0x1b1995['isValid']?_0x1b1995<_0x1064e3?Interval['invalid']('end\x20before\x20start','The\x20end\x20of\x20an\x20interval\x20must\x20be\x20after\x20its\x20start,\x20but\x20you\x20had\x20start='+_0x1064e3['toISO']()+'\x20and\x20end='+_0x1b1995['toISO']()):null:Interval['invalid']('missing\x20or\x20invalid\x20end'):Interval['invalid']('missing\x20or\x20invalid\x20start');}class Interval{constructor(_0x171edf){this['s']=_0x171edf['start'],this['e']=_0x171edf['end'],this['invalid']=_0x171edf['invalid']||null,this['isLuxonInterval']=!0x0;}static['invalid'](_0x1556f7,_0x260299=null){if(!_0x1556f7)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Interval\x20is\x20invalid');const _0x54f77c=_0x1556f7 instanceof Invalid?_0x1556f7:new Invalid(_0x1556f7,_0x260299);if(Settings['throwOnInvalid'])throw new InvalidIntervalError(_0x54f77c);return new Interval({'invalid':_0x54f77c});}static['fromDateTimes'](_0x39f823,_0x315c32){const _0x371603=friendlyDateTime(_0x39f823),_0x349c69=friendlyDateTime(_0x315c32),_0x46a737=validateStartEnd(_0x371603,_0x349c69);return null==_0x46a737?new Interval({'start':_0x371603,'end':_0x349c69}):_0x46a737;}static['after'](_0x3c3bac,_0x12d347){const _0x27db08=Duration['fromDurationLike'](_0x12d347),_0x5cb674=friendlyDateTime(_0x3c3bac);return Interval['fromDateTimes'](_0x5cb674,_0x5cb674['plus'](_0x27db08));}static['before'](_0x2dfff8,_0x3e92ae){const _0x466135=Duration['fromDurationLike'](_0x3e92ae),_0x49f0ba=friendlyDateTime(_0x2dfff8);return Interval['fromDateTimes'](_0x49f0ba['minus'](_0x466135),_0x49f0ba);}static['fromISO'](_0x32c868,_0x96a248){const [_0x53310e,_0x1d570d]=(_0x32c868||'')['split']('/',0x2);if(_0x53310e&&_0x1d570d){let _0x10a108,_0x18f31e,_0x774406,_0x38099b;try{_0x10a108=DateTime['fromISO'](_0x53310e,_0x96a248),_0x18f31e=_0x10a108['isValid'];}catch(_0x3ca2be){_0x18f31e=!0x1;}try{_0x774406=DateTime['fromISO'](_0x1d570d,_0x96a248),_0x38099b=_0x774406['isValid'];}catch(_0x223b62){_0x38099b=!0x1;}if(_0x18f31e&&_0x38099b)return Interval['fromDateTimes'](_0x10a108,_0x774406);if(_0x18f31e){const _0x17c3ff=Duration['fromISO'](_0x1d570d,_0x96a248);if(_0x17c3ff['isValid'])return Interval['after'](_0x10a108,_0x17c3ff);}else{if(_0x38099b){const _0x440396=Duration['fromISO'](_0x53310e,_0x96a248);if(_0x440396['isValid'])return Interval['before'](_0x774406,_0x440396);}}}return Interval['invalid']('unparsable','the\x20input\x20\x22'+_0x32c868+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['isInterval'](_0x24b36c){return _0x24b36c&&_0x24b36c['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'](_0x466906='milliseconds'){return this['isValid']?this['toDuration'](_0x466906)['get'](_0x466906):NaN;}['count'](_0x5c0a8c='milliseconds',_0x2e8db9){if(!this['isValid'])return NaN;const _0x49e89f=this['start']['startOf'](_0x5c0a8c,_0x2e8db9);let _0x3c64df;return _0x3c64df=_0x2e8db9?.['useLocaleWeeks']?this['end']['reconfigure']({'locale':_0x49e89f['locale']}):this['end'],_0x3c64df=_0x3c64df['startOf'](_0x5c0a8c,_0x2e8db9),Math['floor'](_0x3c64df['diff'](_0x49e89f,_0x5c0a8c)['get'](_0x5c0a8c))+(_0x3c64df['valueOf']()!==this['end']['valueOf']());}['hasSame'](_0x4e602d){return!!this['isValid']&&(this['isEmpty']()||this['e']['minus'](0x1)['hasSame'](this['s'],_0x4e602d));}['isEmpty'](){return this['s']['valueOf']()===this['e']['valueOf']();}['isAfter'](_0x5b2da1){return!!this['isValid']&&this['s']>_0x5b2da1;}['isBefore'](_0x10ee72){return!!this['isValid']&&this['e']<=_0x10ee72;}['contains'](_0x16a07f){return!!this['isValid']&&(this['s']<=_0x16a07f&&this['e']>_0x16a07f);}['set']({start:_0x3df647,end:_0x28ac0b}={}){return this['isValid']?Interval['fromDateTimes'](_0x3df647||this['s'],_0x28ac0b||this['e']):this;}['splitAt'](..._0x3c5999){if(!this['isValid'])return[];const _0x2def7a=_0x3c5999['map'](friendlyDateTime)['filter'](_0x175293=>this['contains'](_0x175293))['sort']((_0x535d99,_0x9b257b)=>_0x535d99['toMillis']()-_0x9b257b['toMillis']()),_0x12f411=[];let {s:_0x1abd5a}=this,_0x1a1305=0x0;for(;_0x1abd5a<this['e'];){const _0x1d82c4=_0x2def7a[_0x1a1305]||this['e'],_0x56e05b=+_0x1d82c4>+this['e']?this['e']:_0x1d82c4;_0x12f411['push'](Interval['fromDateTimes'](_0x1abd5a,_0x56e05b)),_0x1abd5a=_0x56e05b,_0x1a1305+=0x1;}return _0x12f411;}['splitBy'](_0x341fde){const _0x4325ee=Duration['fromDurationLike'](_0x341fde);if(!this['isValid']||!_0x4325ee['isValid']||0x0===_0x4325ee['as']('milliseconds'))return[];let _0x203a52,{s:_0x5ba4b9}=this,_0x18af3e=0x1;const _0x46b6d9=[];for(;_0x5ba4b9<this['e'];){const _0x135836=this['start']['plus'](_0x4325ee['mapUnits'](_0x1b89e1=>_0x1b89e1*_0x18af3e));_0x203a52=+_0x135836>+this['e']?this['e']:_0x135836,_0x46b6d9['push'](Interval['fromDateTimes'](_0x5ba4b9,_0x203a52)),_0x5ba4b9=_0x203a52,_0x18af3e+=0x1;}return _0x46b6d9;}['divideEqually'](_0x1bf5b7){return this['isValid']?this['splitBy'](this['length']()/_0x1bf5b7)['slice'](0x0,_0x1bf5b7):[];}['overlaps'](_0x4fbbf8){return this['e']>_0x4fbbf8['s']&&this['s']<_0x4fbbf8['e'];}['abutsStart'](_0x462bf7){return!!this['isValid']&&+this['e']===+_0x462bf7['s'];}['abutsEnd'](_0x45ed08){return!!this['isValid']&&+_0x45ed08['e']===+this['s'];}['engulfs'](_0x3aa79){return!!this['isValid']&&(this['s']<=_0x3aa79['s']&&this['e']>=_0x3aa79['e']);}['equals'](_0x274f58){return!(!this['isValid']||!_0x274f58['isValid'])&&(this['s']['equals'](_0x274f58['s'])&&this['e']['equals'](_0x274f58['e']));}['intersection'](_0x403fd7){if(!this['isValid'])return this;const _0x5901ee=this['s']>_0x403fd7['s']?this['s']:_0x403fd7['s'],_0x271101=this['e']<_0x403fd7['e']?this['e']:_0x403fd7['e'];return _0x5901ee>=_0x271101?null:Interval['fromDateTimes'](_0x5901ee,_0x271101);}['union'](_0x3ab81d){if(!this['isValid'])return this;const _0x3dea20=this['s']<_0x3ab81d['s']?this['s']:_0x3ab81d['s'],_0x2844b4=this['e']>_0x3ab81d['e']?this['e']:_0x3ab81d['e'];return Interval['fromDateTimes'](_0x3dea20,_0x2844b4);}static['merge'](_0x171a75){const [_0x21bead,_0x2d90a8]=_0x171a75['sort']((_0x21d1e6,_0x36a61e)=>_0x21d1e6['s']-_0x36a61e['s'])['reduce'](([_0x1c93de,_0x3f1210],_0x27e8da)=>_0x3f1210?_0x3f1210['overlaps'](_0x27e8da)||_0x3f1210['abutsStart'](_0x27e8da)?[_0x1c93de,_0x3f1210['union'](_0x27e8da)]:[_0x1c93de['concat']([_0x3f1210]),_0x27e8da]:[_0x1c93de,_0x27e8da],[[],null]);return _0x2d90a8&&_0x21bead['push'](_0x2d90a8),_0x21bead;}static['xor'](_0x1443ba){let _0x3ccf9a=null,_0x5809c8=0x0;const _0x4a62f7=[],_0x2f3eab=_0x1443ba['map'](_0xd55edf=>[{'time':_0xd55edf['s'],'type':'s'},{'time':_0xd55edf['e'],'type':'e'}]),_0x2d1a38=Array['prototype']['concat'](..._0x2f3eab)['sort']((_0x1086ea,_0xa9231a)=>_0x1086ea['time']-_0xa9231a['time']);for(const _0x574e3a of _0x2d1a38)_0x5809c8+='s'===_0x574e3a['type']?0x1:-0x1,0x1===_0x5809c8?_0x3ccf9a=_0x574e3a['time']:(_0x3ccf9a&&+_0x3ccf9a!==+_0x574e3a['time']&&_0x4a62f7['push'](Interval['fromDateTimes'](_0x3ccf9a,_0x574e3a['time'])),_0x3ccf9a=null);return Interval['merge'](_0x4a62f7);}['difference'](..._0x3c9488){return Interval['xor']([this]['concat'](_0x3c9488))['map'](_0x312492=>this['intersection'](_0x312492))['filter'](_0x5b3ccd=>_0x5b3ccd&&!_0x5b3ccd['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'](_0x41160d=DATE_SHORT,_0x110f6d={}){return this['isValid']?Formatter['create'](this['s']['loc']['clone'](_0x110f6d),_0x41160d)['formatInterval'](this):INVALID$1;}['toISO'](_0x3eaebd){return this['isValid']?this['s']['toISO'](_0x3eaebd)+'/'+this['e']['toISO'](_0x3eaebd):INVALID$1;}['toISODate'](){return this['isValid']?this['s']['toISODate']()+'/'+this['e']['toISODate']():INVALID$1;}['toISOTime'](_0x68faf6){return this['isValid']?this['s']['toISOTime'](_0x68faf6)+'/'+this['e']['toISOTime'](_0x68faf6):INVALID$1;}['toFormat'](_0x24e18f,{separator:_0x4f5e14='\x20–\x20'}={}){return this['isValid']?''+this['s']['toFormat'](_0x24e18f)+_0x4f5e14+this['e']['toFormat'](_0x24e18f):INVALID$1;}['toDuration'](_0x2e1007,_0x34c404){return this['isValid']?this['e']['diff'](this['s'],_0x2e1007,_0x34c404):Duration['invalid'](this['invalidReason']);}['mapEndpoints'](_0x1cf82b){return Interval['fromDateTimes'](_0x1cf82b(this['s']),_0x1cf82b(this['e']));}}class Info{static['hasDST'](_0x12235e=Settings['defaultZone']){const _0x49a5bf=DateTime['now']()['setZone'](_0x12235e)['set']({'month':0xc});return!_0x12235e['isUniversal']&&_0x49a5bf['offset']!==_0x49a5bf['set']({'month':0x6})['offset'];}static['isValidIANAZone'](_0xea421e){return IANAZone['isValidZone'](_0xea421e);}static['normalizeZone'](_0xc796a2){return normalizeZone(_0xc796a2,Settings['defaultZone']);}static['getStartOfWeek']({locale:_0x46be81=null,locObj:_0x4ab212=null}={}){return(_0x4ab212||Locale['create'](_0x46be81))['getStartOfWeek']();}static['getMinimumDaysInFirstWeek']({locale:_0x2ae025=null,locObj:_0x5d9aba=null}={}){return(_0x5d9aba||Locale['create'](_0x2ae025))['getMinDaysInFirstWeek']();}static['getWeekendWeekdays']({locale:_0x1cdddb=null,locObj:_0x5c1459=null}={}){return(_0x5c1459||Locale['create'](_0x1cdddb))['getWeekendDays']()['slice']();}static['months'](_0x5c4e57='long',{locale:_0x4fe314=null,numberingSystem:_0x2a39f7=null,locObj:_0x1397c6=null,outputCalendar:_0xc474fe='gregory'}={}){return(_0x1397c6||Locale['create'](_0x4fe314,_0x2a39f7,_0xc474fe))['months'](_0x5c4e57);}static['monthsFormat'](_0x43a6a7='long',{locale:_0x51739e=null,numberingSystem:_0x4cbfce=null,locObj:_0x5efb0f=null,outputCalendar:_0x2c21a5='gregory'}={}){return(_0x5efb0f||Locale['create'](_0x51739e,_0x4cbfce,_0x2c21a5))['months'](_0x43a6a7,!0x0);}static['weekdays'](_0x28417d='long',{locale:_0x19fcd7=null,numberingSystem:_0x45a5ef=null,locObj:_0x7e982b=null}={}){return(_0x7e982b||Locale['create'](_0x19fcd7,_0x45a5ef,null))['weekdays'](_0x28417d);}static['weekdaysFormat'](_0x565fb8='long',{locale:_0x1c3853=null,numberingSystem:_0x531f0b=null,locObj:_0x4679d6=null}={}){return(_0x4679d6||Locale['create'](_0x1c3853,_0x531f0b,null))['weekdays'](_0x565fb8,!0x0);}static['meridiems']({locale:_0x4d842a=null}={}){return Locale['create'](_0x4d842a)['meridiems']();}static['eras'](_0x4be0cb='short',{locale:_0x8334f9=null}={}){return Locale['create'](_0x8334f9,null,'gregory')['eras'](_0x4be0cb);}static['features'](){return{'relative':hasRelative(),'localeWeek':hasLocaleWeekInfo()};}}function dayDiff(_0x1fded1,_0x187e85){const _0x3d23b6=_0x1e1052=>_0x1e1052['toUTC'](0x0,{'keepLocalTime':!0x0})['startOf']('day')['valueOf'](),_0x4b7d4e=_0x3d23b6(_0x187e85)-_0x3d23b6(_0x1fded1);return Math['floor'](Duration['fromMillis'](_0x4b7d4e)['as']('days'));}function highOrderDiffs(_0x4db15e,_0x4dd791,_0x330b16){const _0x32defa=[['years',(_0x1e1bd7,_0x2a82fc)=>_0x2a82fc['year']-_0x1e1bd7['year']],['quarters',(_0x2edae8,_0x30ff12)=>_0x30ff12['quarter']-_0x2edae8['quarter']+0x4*(_0x30ff12['year']-_0x2edae8['year'])],['months',(_0x4d47a9,_0x3c1a64)=>_0x3c1a64['month']-_0x4d47a9['month']+0xc*(_0x3c1a64['year']-_0x4d47a9['year'])],['weeks',(_0x2112d4,_0x4997c5)=>{const _0x376933=dayDiff(_0x2112d4,_0x4997c5);return(_0x376933-_0x376933%0x7)/0x7;}],['days',dayDiff]],_0x7443fb={},_0x434f97=_0x4db15e;let _0x571b7d,_0x1c6d09;for(const [_0x4f7d1c,_0x4a01f6]of _0x32defa)_0x330b16['indexOf'](_0x4f7d1c)>=0x0&&(_0x571b7d=_0x4f7d1c,_0x7443fb[_0x4f7d1c]=_0x4a01f6(_0x4db15e,_0x4dd791),_0x1c6d09=_0x434f97['plus'](_0x7443fb),_0x1c6d09>_0x4dd791?(_0x7443fb[_0x4f7d1c]--,(_0x4db15e=_0x434f97['plus'](_0x7443fb))>_0x4dd791&&(_0x1c6d09=_0x4db15e,_0x7443fb[_0x4f7d1c]--,_0x4db15e=_0x434f97['plus'](_0x7443fb))):_0x4db15e=_0x1c6d09);return[_0x4db15e,_0x7443fb,_0x1c6d09,_0x571b7d];}function diff(_0x57723c,_0x8257e3,_0x13c79a,_0x9fe923){let [_0x5a4c19,_0x225b82,_0x2cadb9,_0x30ebde]=highOrderDiffs(_0x57723c,_0x8257e3,_0x13c79a);const _0x3f279e=_0x8257e3-_0x5a4c19,_0x16a4a8=_0x13c79a['filter'](_0x346dc8=>['hours','minutes','seconds','milliseconds']['indexOf'](_0x346dc8)>=0x0);0x0===_0x16a4a8['length']&&(_0x2cadb9<_0x8257e3&&(_0x2cadb9=_0x5a4c19['plus']({[_0x30ebde]:0x1})),_0x2cadb9!==_0x5a4c19&&(_0x225b82[_0x30ebde]=(_0x225b82[_0x30ebde]||0x0)+_0x3f279e/(_0x2cadb9-_0x5a4c19)));const _0x5f2e4e=Duration['fromObject'](_0x225b82,_0x9fe923);return _0x16a4a8['length']>0x0?Duration['fromMillis'](_0x3f279e,_0x9fe923)['shiftTo'](..._0x16a4a8)['plus'](_0x5f2e4e):_0x5f2e4e;}const MISSING_FTP='missing\x20Intl.DateTimeFormat.formatToParts\x20support';function intUnit(_0x2b56ea,_0x9affc3=_0x19cf7b=>_0x19cf7b){return{'regex':_0x2b56ea,'deser':([_0x590787])=>_0x9affc3(parseDigits(_0x590787))};}const NBSP=String['fromCharCode'](0xa0),spaceOrNBSP='[\x20'+NBSP+']',spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,'g');function fixListRegex(_0xe036ce){return _0xe036ce['replace'](/\./g,'\x5c.?')['replace'](spaceOrNBSPRegExp,spaceOrNBSP);}function stripInsensitivities(_0x2b3d84){return _0x2b3d84['replace'](/\./g,'')['replace'](spaceOrNBSPRegExp,'\x20')['toLowerCase']();}function oneOf(_0x338be1,_0xbdf60c){return null===_0x338be1?null:{'regex':RegExp(_0x338be1['map'](fixListRegex)['join']('|')),'deser':([_0x1c23f0])=>_0x338be1['findIndex'](_0x50957f=>stripInsensitivities(_0x1c23f0)===stripInsensitivities(_0x50957f))+_0xbdf60c};}function offset(_0x5f0d2a,_0x372ba9){return{'regex':_0x5f0d2a,'deser':([,_0x3ebaa7,_0x2a920d])=>signedOffset(_0x3ebaa7,_0x2a920d),'groups':_0x372ba9};}function simple(_0x37b7ca){return{'regex':_0x37b7ca,'deser':([_0x165840])=>_0x165840};}function escapeToken(_0x166850){return _0x166850['replace'](/[\-\[\]{}()*+?.,\\\^$|#\s]/g,'\x5c$&');}function unitForToken(_0x4c1edd,_0x508011){const _0x29de2f=digitRegex(_0x508011),_0x49032b=digitRegex(_0x508011,'{2}'),_0x4f29ca=digitRegex(_0x508011,'{3}'),_0x2dc212=digitRegex(_0x508011,'{4}'),_0x57e91d=digitRegex(_0x508011,'{6}'),_0x8122ba=digitRegex(_0x508011,'{1,2}'),_0x578fea=digitRegex(_0x508011,'{1,3}'),_0x49bb29=digitRegex(_0x508011,'{1,6}'),_0x396c1c=digitRegex(_0x508011,'{1,9}'),_0x2ee5ff=digitRegex(_0x508011,'{2,4}'),_0x175fd4=digitRegex(_0x508011,'{4,6}'),_0x1e83f5=t=>({'regex':RegExp(escapeToken(t['val'])),'deser':([_0x55254a])=>_0x55254a,'literal':!0x0}),_0x4b43e7=(t=>{if(_0x4c1edd['literal'])return _0x1e83f5(t);switch(t['val']){case'G':return oneOf(_0x508011['eras']('short'),0x0);case'GG':return oneOf(_0x508011['eras']('long'),0x0);case'y':return intUnit(_0x49bb29);case'yy':case'kk':return intUnit(_0x2ee5ff,untruncateYear);case'yyyy':case'kkkk':return intUnit(_0x2dc212);case'yyyyy':return intUnit(_0x175fd4);case'yyyyyy':return intUnit(_0x57e91d);case'M':case'L':case'd':case'H':case'h':case'm':case'q':case's':case'W':return intUnit(_0x8122ba);case'MM':case'LL':case'dd':case'HH':case'hh':case'mm':case'qq':case'ss':case'WW':return intUnit(_0x49032b);case'MMM':return oneOf(_0x508011['months']('short',!0x0),0x1);case'MMMM':return oneOf(_0x508011['months']('long',!0x0),0x1);case'LLL':return oneOf(_0x508011['months']('short',!0x1),0x1);case'LLLL':return oneOf(_0x508011['months']('long',!0x1),0x1);case'o':case'S':return intUnit(_0x578fea);case'ooo':case'SSS':return intUnit(_0x4f29ca);case'u':return simple(_0x396c1c);case'uu':return simple(_0x8122ba);case'uuu':case'E':case'c':return intUnit(_0x29de2f);case'a':return oneOf(_0x508011['meridiems'](),0x0);case'EEE':return oneOf(_0x508011['weekdays']('short',!0x1),0x1);case'EEEE':return oneOf(_0x508011['weekdays']('long',!0x1),0x1);case'ccc':return oneOf(_0x508011['weekdays']('short',!0x0),0x1);case'cccc':return oneOf(_0x508011['weekdays']('long',!0x0),0x1);case'Z':case'ZZ':return offset(new RegExp('([+-]'+_0x8122ba['source']+')(?::('+_0x49032b['source']+'))?'),0x2);case'ZZZ':return offset(new RegExp('([+-]'+_0x8122ba['source']+')('+_0x49032b['source']+')?'),0x2);case'z':return simple(/[a-z_+-/]{1,256}?/i);case'\x20':return simple(/[^\S\n\r]/);default:return _0x1e83f5(t);}})(_0x4c1edd)||{'invalidReason':MISSING_FTP};return _0x4b43e7['token']=_0x4c1edd,_0x4b43e7;}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(_0x1b2bf2,_0x48e75e,_0x53a7ac){const {type:_0x3e6bcc,value:_0x27809a}=_0x1b2bf2;if('literal'===_0x3e6bcc){const _0x337d1f=/^\s+$/['test'](_0x27809a);return{'literal':!_0x337d1f,'val':_0x337d1f?'\x20':_0x27809a};}const _0x1bbb79=_0x48e75e[_0x3e6bcc];let _0x3198f1=_0x3e6bcc;'hour'===_0x3e6bcc&&(_0x3198f1=null!=_0x48e75e['hour12']?_0x48e75e['hour12']?'hour12':'hour24':null!=_0x48e75e['hourCycle']?'h11'===_0x48e75e['hourCycle']||'h12'===_0x48e75e['hourCycle']?'hour12':'hour24':_0x53a7ac['hour12']?'hour12':'hour24');let _0x56f63c=partTypeStyleToTokenVal[_0x3198f1];if('object'==typeof _0x56f63c&&(_0x56f63c=_0x56f63c[_0x1bbb79]),_0x56f63c)return{'literal':!0x1,'val':_0x56f63c};}function buildRegex(_0x5090a3){const _0x83ccab=_0x5090a3['map'](_0x5a5bdf=>_0x5a5bdf['regex'])['reduce']((_0x5a3704,_0x2339c8)=>_0x5a3704+'('+_0x2339c8['source']+')','');return['^'+_0x83ccab+'$',_0x5090a3];}function match(_0x369540,_0xfee794,_0x44c2ae){const _0x2a0b96=_0x369540['match'](_0xfee794);if(_0x2a0b96){const _0x3fa471={};let _0x3e4207=0x1;for(const _0x3ec073 in _0x44c2ae)if(hasOwnProperty(_0x44c2ae,_0x3ec073)){const _0x5433bd=_0x44c2ae[_0x3ec073],_0x19d722=_0x5433bd['groups']?_0x5433bd['groups']+0x1:0x1;!_0x5433bd['literal']&&_0x5433bd['token']&&(_0x3fa471[_0x5433bd['token']['val'][0x0]]=_0x5433bd['deser'](_0x2a0b96['slice'](_0x3e4207,_0x3e4207+_0x19d722))),_0x3e4207+=_0x19d722;}return[_0x2a0b96,_0x3fa471];}return[_0x2a0b96,{}];}function dateTimeFromMatches(_0x24073d){let _0x115b25,_0x46dbc1=null;isUndefined(_0x24073d['z'])||(_0x46dbc1=IANAZone['create'](_0x24073d['z'])),isUndefined(_0x24073d['Z'])||(_0x46dbc1||(_0x46dbc1=new FixedOffsetZone(_0x24073d['Z'])),_0x115b25=_0x24073d['Z']),isUndefined(_0x24073d['q'])||(_0x24073d['M']=0x3*(_0x24073d['q']-0x1)+0x1),isUndefined(_0x24073d['h'])||(_0x24073d['h']<0xc&&0x1===_0x24073d['a']?_0x24073d['h']+=0xc:0xc===_0x24073d['h']&&0x0===_0x24073d['a']&&(_0x24073d['h']=0x0)),0x0===_0x24073d['G']&&_0x24073d['y']&&(_0x24073d['y']=-_0x24073d['y']),isUndefined(_0x24073d['u'])||(_0x24073d['S']=parseMillis(_0x24073d['u']));const _0x265975=Object['keys'](_0x24073d)['reduce']((_0x1c2b83,_0x18152e)=>{const _0x38f449=(_0x588c25=>{switch(_0x588c25){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;}})(_0x18152e);return _0x38f449&&(_0x1c2b83[_0x38f449]=_0x24073d[_0x18152e]),_0x1c2b83;},{});return[_0x265975,_0x46dbc1,_0x115b25];}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime['fromMillis'](0x16a2e5618e3)),dummyDateTimeCache;}function maybeExpandMacroToken(_0x24d28d,_0x165e5a){if(_0x24d28d['literal'])return _0x24d28d;const _0xfe860a=formatOptsToTokens(Formatter['macroTokenToFormatOpts'](_0x24d28d['val']),_0x165e5a);return null==_0xfe860a||_0xfe860a['includes'](void 0x0)?_0x24d28d:_0xfe860a;}function expandMacroTokens(_0x3a3df4,_0x10587c){return Array['prototype']['concat'](..._0x3a3df4['map'](t=>maybeExpandMacroToken(t,_0x10587c)));}class TokenParser{constructor(_0x393a68,_0x271003){if(this['locale']=_0x393a68,this['format']=_0x271003,this['tokens']=expandMacroTokens(Formatter['parseFormat'](_0x271003),_0x393a68),this['units']=this['tokens']['map'](t=>unitForToken(t,_0x393a68)),this['disqualifyingUnit']=this['units']['find'](t=>t['invalidReason']),!this['disqualifyingUnit']){const [_0x28a6d1,_0x2b78e1]=buildRegex(this['units']);this['regex']=RegExp(_0x28a6d1,'i'),this['handlers']=_0x2b78e1;}}['explainFromTokens'](_0x3af1ff){if(this['isValid']){const [_0x2286c3,_0x5c2d20]=match(_0x3af1ff,this['regex'],this['handlers']),[_0x562510,_0x33bfa8,_0xff895d]=_0x5c2d20?dateTimeFromMatches(_0x5c2d20):[null,null,void 0x0];if(hasOwnProperty(_0x5c2d20,'a')&&hasOwnProperty(_0x5c2d20,'H'))throw new ConflictingSpecificationError('Can\x27t\x20include\x20meridiem\x20when\x20specifying\x2024-hour\x20format');return{'input':_0x3af1ff,'tokens':this['tokens'],'regex':this['regex'],'rawMatches':_0x2286c3,'matches':_0x5c2d20,'result':_0x562510,'zone':_0x33bfa8,'specificOffset':_0xff895d};}return{'input':_0x3af1ff,'tokens':this['tokens'],'invalidReason':this['invalidReason']};}get['isValid'](){return!this['disqualifyingUnit'];}get['invalidReason'](){return this['disqualifyingUnit']?this['disqualifyingUnit']['invalidReason']:null;}}function explainFromTokens(_0x1a74eb,_0x1d16c3,_0x30a2ce){return new TokenParser(_0x1a74eb,_0x30a2ce)['explainFromTokens'](_0x1d16c3);}function parseFromTokens(_0x5bfd02,_0x5c3255,_0x39ee79){const {result:_0x3c9815,zone:_0x25ee8c,specificOffset:_0x4ad125,invalidReason:_0x4ce580}=explainFromTokens(_0x5bfd02,_0x5c3255,_0x39ee79);return[_0x3c9815,_0x25ee8c,_0x4ad125,_0x4ce580];}function formatOptsToTokens(_0x1a3413,_0x33ac2f){if(!_0x1a3413)return null;const _0x321fc1=Formatter['create'](_0x33ac2f,_0x1a3413)['dtFormatter'](getDummyDateTime()),_0x5a9c48=_0x321fc1['formatToParts'](),_0x203796=_0x321fc1['resolvedOptions']();return _0x5a9c48['map'](_0x3f6ee2=>tokenForPart(_0x3f6ee2,_0x1a3413,_0x203796));}const INVALID='Invalid\x20DateTime',MAX_DATE=0x1eb208c2dc0000;function unsupportedZone(_0x354375){return new Invalid('unsupported\x20zone','the\x20zone\x20\x22'+_0x354375['name']+'\x22\x20is\x20not\x20supported');}function possiblyCachedWeekData(_0x54e117){return null===_0x54e117['weekData']&&(_0x54e117['weekData']=gregorianToWeek(_0x54e117['c'])),_0x54e117['weekData'];}function possiblyCachedLocalWeekData(_0x783cbe){return null===_0x783cbe['localWeekData']&&(_0x783cbe['localWeekData']=gregorianToWeek(_0x783cbe['c'],_0x783cbe['loc']['getMinDaysInFirstWeek'](),_0x783cbe['loc']['getStartOfWeek']())),_0x783cbe['localWeekData'];}function clone(_0x10ab15,_0x661cf7){const _0x1dac80={'ts':_0x10ab15['ts'],'zone':_0x10ab15['zone'],'c':_0x10ab15['c'],'o':_0x10ab15['o'],'loc':_0x10ab15['loc'],'invalid':_0x10ab15['invalid']};return new DateTime({..._0x1dac80,..._0x661cf7,'old':_0x1dac80});}function fixOffset(_0x4def40,_0x43c61b,_0x25d6d5){let _0x546ccf=_0x4def40-0x3c*_0x43c61b*0x3e8;const _0x1e8d0b=_0x25d6d5['offset'](_0x546ccf);if(_0x43c61b===_0x1e8d0b)return[_0x546ccf,_0x43c61b];_0x546ccf-=0x3c*(_0x1e8d0b-_0x43c61b)*0x3e8;const _0x4503cf=_0x25d6d5['offset'](_0x546ccf);return _0x1e8d0b===_0x4503cf?[_0x546ccf,_0x1e8d0b]:[_0x4def40-0x3c*Math['min'](_0x1e8d0b,_0x4503cf)*0x3e8,Math['max'](_0x1e8d0b,_0x4503cf)];}function tsToObj(_0x3c43a8,_0x15f8d5){const _0x1769ec=new Date(_0x3c43a8+=0x3c*_0x15f8d5*0x3e8);return{'year':_0x1769ec['getUTCFullYear'](),'month':_0x1769ec['getUTCMonth']()+0x1,'day':_0x1769ec['getUTCDate'](),'hour':_0x1769ec['getUTCHours'](),'minute':_0x1769ec['getUTCMinutes'](),'second':_0x1769ec['getUTCSeconds'](),'millisecond':_0x1769ec['getUTCMilliseconds']()};}function objToTS(_0x2b6e2e,_0x1afefe,_0x3edfe4){return fixOffset(objToLocalTS(_0x2b6e2e),_0x1afefe,_0x3edfe4);}function adjustTime(_0x4049b5,_0x26bc85){const _0xc35d21=_0x4049b5['o'],_0x25774f=_0x4049b5['c']['year']+Math['trunc'](_0x26bc85['years']),_0x5a1f56=_0x4049b5['c']['month']+Math['trunc'](_0x26bc85['months'])+0x3*Math['trunc'](_0x26bc85['quarters']),_0x5779ad={..._0x4049b5['c'],'year':_0x25774f,'month':_0x5a1f56,'day':Math['min'](_0x4049b5['c']['day'],daysInMonth(_0x25774f,_0x5a1f56))+Math['trunc'](_0x26bc85['days'])+0x7*Math['trunc'](_0x26bc85['weeks'])},_0x113438=Duration['fromObject']({'years':_0x26bc85['years']-Math['trunc'](_0x26bc85['years']),'quarters':_0x26bc85['quarters']-Math['trunc'](_0x26bc85['quarters']),'months':_0x26bc85['months']-Math['trunc'](_0x26bc85['months']),'weeks':_0x26bc85['weeks']-Math['trunc'](_0x26bc85['weeks']),'days':_0x26bc85['days']-Math['trunc'](_0x26bc85['days']),'hours':_0x26bc85['hours'],'minutes':_0x26bc85['minutes'],'seconds':_0x26bc85['seconds'],'milliseconds':_0x26bc85['milliseconds']})['as']('milliseconds'),_0x18548f=objToLocalTS(_0x5779ad);let [_0x4c1c56,_0x2c346a]=fixOffset(_0x18548f,_0xc35d21,_0x4049b5['zone']);return 0x0!==_0x113438&&(_0x4c1c56+=_0x113438,_0x2c346a=_0x4049b5['zone']['offset'](_0x4c1c56)),{'ts':_0x4c1c56,'o':_0x2c346a};}function parseDataToDateTime(_0x47033f,_0x224d05,_0x52904c,_0x2e357a,_0x2e5dd7,_0x302725){const {setZone:_0x5069c9,zone:_0x2d0f1c}=_0x52904c;if(_0x47033f&&0x0!==Object['keys'](_0x47033f)['length']||_0x224d05){const _0x521d6b=_0x224d05||_0x2d0f1c,_0xdfab55=DateTime['fromObject'](_0x47033f,{..._0x52904c,'zone':_0x521d6b,'specificOffset':_0x302725});return _0x5069c9?_0xdfab55:_0xdfab55['setZone'](_0x2d0f1c);}return DateTime['invalid'](new Invalid('unparsable','the\x20input\x20\x22'+_0x2e5dd7+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20'+_0x2e357a));}function toTechFormat(_0x47b7e4,_0x2970fa,_0x3a9143=!0x0){return _0x47b7e4['isValid']?Formatter['create'](Locale['create']('en-US'),{'allowZ':_0x3a9143,'forceSimple':!0x0})['formatDateTimeFromString'](_0x47b7e4,_0x2970fa):null;}function toISODate(_0x200e75,_0xe8a7af){const _0x810b18=_0x200e75['c']['year']>0x270f||_0x200e75['c']['year']<0x0;let _0x5727e5='';return _0x810b18&&_0x200e75['c']['year']>=0x0&&(_0x5727e5+='+'),_0x5727e5+=padStart(_0x200e75['c']['year'],_0x810b18?0x6:0x4),_0xe8a7af?(_0x5727e5+='-',_0x5727e5+=padStart(_0x200e75['c']['month']),_0x5727e5+='-',_0x5727e5+=padStart(_0x200e75['c']['day'])):(_0x5727e5+=padStart(_0x200e75['c']['month']),_0x5727e5+=padStart(_0x200e75['c']['day'])),_0x5727e5;}function toISOTime(_0x364bd8,_0x56cfd9,_0x127679,_0x190f16,_0xefb592,_0x337c40){let _0x9d4544=padStart(_0x364bd8['c']['hour']);return _0x56cfd9?(_0x9d4544+=':',_0x9d4544+=padStart(_0x364bd8['c']['minute']),0x0===_0x364bd8['c']['millisecond']&&0x0===_0x364bd8['c']['second']&&_0x127679||(_0x9d4544+=':')):_0x9d4544+=padStart(_0x364bd8['c']['minute']),0x0===_0x364bd8['c']['millisecond']&&0x0===_0x364bd8['c']['second']&&_0x127679||(_0x9d4544+=padStart(_0x364bd8['c']['second']),0x0===_0x364bd8['c']['millisecond']&&_0x190f16||(_0x9d4544+='.',_0x9d4544+=padStart(_0x364bd8['c']['millisecond'],0x3))),_0xefb592&&(_0x364bd8['isOffsetFixed']&&0x0===_0x364bd8['offset']&&!_0x337c40?_0x9d4544+='Z':_0x364bd8['o']<0x0?(_0x9d4544+='-',_0x9d4544+=padStart(Math['trunc'](-_0x364bd8['o']/0x3c)),_0x9d4544+=':',_0x9d4544+=padStart(Math['trunc'](-_0x364bd8['o']%0x3c))):(_0x9d4544+='+',_0x9d4544+=padStart(Math['trunc'](_0x364bd8['o']/0x3c)),_0x9d4544+=':',_0x9d4544+=padStart(Math['trunc'](_0x364bd8['o']%0x3c)))),_0x337c40&&(_0x9d4544+='['+_0x364bd8['zone']['ianaName']+']'),_0x9d4544;}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(_0x32d931){const _0x597597={'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'}[_0x32d931['toLowerCase']()];if(!_0x597597)throw new InvalidUnitError(_0x32d931);return _0x597597;}function normalizeUnitWithLocalWeeks(_0x4a160b){switch(_0x4a160b['toLowerCase']()){case'localweekday':case'localweekdays':return'localWeekday';case'localweeknumber':case'localweeknumbers':return'localWeekNumber';case'localweekyear':case'localweekyears':return'localWeekYear';default:return normalizeUnit(_0x4a160b);}}function guessOffsetForZone(_0x2362f3){if(void 0x0===zoneOffsetTs&&(zoneOffsetTs=Settings['now']()),'iana'!==_0x2362f3['type'])return _0x2362f3['offset'](zoneOffsetTs);const _0x18e6f4=_0x2362f3['name'];let _0x5b9925=zoneOffsetGuessCache['get'](_0x18e6f4);return void 0x0===_0x5b9925&&(_0x5b9925=_0x2362f3['offset'](zoneOffsetTs),zoneOffsetGuessCache['set'](_0x18e6f4,_0x5b9925)),_0x5b9925;}function quickDT(_0x339f81,_0x2c9ce6){const _0x4a1d7a=normalizeZone(_0x2c9ce6['zone'],Settings['defaultZone']);if(!_0x4a1d7a['isValid'])return DateTime['invalid'](unsupportedZone(_0x4a1d7a));const _0x3fe9b0=Locale['fromObject'](_0x2c9ce6);let _0x1006b4,_0x29fa02;if(isUndefined(_0x339f81['year']))_0x1006b4=Settings['now']();else{for(const _0x4326ce of orderedUnits)isUndefined(_0x339f81[_0x4326ce])&&(_0x339f81[_0x4326ce]=defaultUnitValues[_0x4326ce]);const _0x52fa2e=hasInvalidGregorianData(_0x339f81)||hasInvalidTimeData(_0x339f81);if(_0x52fa2e)return DateTime['invalid'](_0x52fa2e);const _0x84e650=guessOffsetForZone(_0x4a1d7a);[_0x1006b4,_0x29fa02]=objToTS(_0x339f81,_0x84e650,_0x4a1d7a);}return new DateTime({'ts':_0x1006b4,'zone':_0x4a1d7a,'loc':_0x3fe9b0,'o':_0x29fa02});}function diffRelative(_0x420f90,_0x578b90,_0x535473){const _0x3c66b5=!!isUndefined(_0x535473['round'])||_0x535473['round'],_0x2e6bab=(_0x4074f3,_0x59a145)=>{return _0x4074f3=roundTo(_0x4074f3,_0x3c66b5||_0x535473['calendary']?0x0:0x2,!0x0),_0x578b90['loc']['clone'](_0x535473)['relFormatter'](_0x535473)['format'](_0x4074f3,_0x59a145);},_0x4ed19f=_0x448d8f=>_0x535473['calendary']?_0x578b90['hasSame'](_0x420f90,_0x448d8f)?0x0:_0x578b90['startOf'](_0x448d8f)['diff'](_0x420f90['startOf'](_0x448d8f),_0x448d8f)['get'](_0x448d8f):_0x578b90['diff'](_0x420f90,_0x448d8f)['get'](_0x448d8f);if(_0x535473['unit'])return _0x2e6bab(_0x4ed19f(_0x535473['unit']),_0x535473['unit']);for(const _0x3504c2 of _0x535473['units']){const _0x3b51dd=_0x4ed19f(_0x3504c2);if(Math['abs'](_0x3b51dd)>=0x1)return _0x2e6bab(_0x3b51dd,_0x3504c2);}return _0x2e6bab(_0x420f90>_0x578b90?-0x0:0x0,_0x535473['units'][_0x535473['units']['length']-0x1]);}function lastOpts(_0x3338bd){let _0x2fb8e1,_0x2b0aa6={};return _0x3338bd['length']>0x0&&'object'==typeof _0x3338bd[_0x3338bd['length']-0x1]?(_0x2b0aa6=_0x3338bd[_0x3338bd['length']-0x1],_0x2fb8e1=Array['from'](_0x3338bd)['slice'](0x0,_0x3338bd['length']-0x1)):_0x2fb8e1=Array['from'](_0x3338bd),[_0x2b0aa6,_0x2fb8e1];}let zoneOffsetTs;const zoneOffsetGuessCache=new Map();class DateTime{constructor(_0x571e8f){const _0x21bd25=_0x571e8f['zone']||Settings['defaultZone'];let _0x59c3c7=_0x571e8f['invalid']||(Number['isNaN'](_0x571e8f['ts'])?new Invalid('invalid\x20input'):null)||(_0x21bd25['isValid']?null:unsupportedZone(_0x21bd25));this['ts']=isUndefined(_0x571e8f['ts'])?Settings['now']():_0x571e8f['ts'];let _0x422c46=null,_0x375697=null;if(!_0x59c3c7){if(_0x571e8f['old']&&_0x571e8f['old']['ts']===this['ts']&&_0x571e8f['old']['zone']['equals'](_0x21bd25))[_0x422c46,_0x375697]=[_0x571e8f['old']['c'],_0x571e8f['old']['o']];else{const _0x2e99aa=isNumber(_0x571e8f['o'])&&!_0x571e8f['old']?_0x571e8f['o']:_0x21bd25['offset'](this['ts']);_0x422c46=tsToObj(this['ts'],_0x2e99aa),_0x59c3c7=Number['isNaN'](_0x422c46['year'])?new Invalid('invalid\x20input'):null,_0x422c46=_0x59c3c7?null:_0x422c46,_0x375697=_0x59c3c7?null:_0x2e99aa;}}this['_zone']=_0x21bd25,this['loc']=_0x571e8f['loc']||Locale['create'](),this['invalid']=_0x59c3c7,this['weekData']=null,this['localWeekData']=null,this['c']=_0x422c46,this['o']=_0x375697,this['isLuxonDateTime']=!0x0;}static['now'](){return new DateTime({});}static['local'](){const [_0x16f4e5,_0x5b1b4e]=lastOpts(arguments),[_0x571a72,_0x7b3e9a,_0x52f4b4,_0x48576c,_0x926fe1,_0x1d5580,_0x208628]=_0x5b1b4e;return quickDT({'year':_0x571a72,'month':_0x7b3e9a,'day':_0x52f4b4,'hour':_0x48576c,'minute':_0x926fe1,'second':_0x1d5580,'millisecond':_0x208628},_0x16f4e5);}static['utc'](){const [_0xf6c39,_0x2750f3]=lastOpts(arguments),[_0x1397dc,_0x361a44,_0x1c621c,_0x20b0e6,_0x2abd38,_0x4145d2,_0x15805c]=_0x2750f3;return _0xf6c39['zone']=FixedOffsetZone['utcInstance'],quickDT({'year':_0x1397dc,'month':_0x361a44,'day':_0x1c621c,'hour':_0x20b0e6,'minute':_0x2abd38,'second':_0x4145d2,'millisecond':_0x15805c},_0xf6c39);}static['fromJSDate'](_0x16b117,_0x299bd5={}){const _0x3852cf=isDate(_0x16b117)?_0x16b117['valueOf']():NaN;if(Number['isNaN'](_0x3852cf))return DateTime['invalid']('invalid\x20input');const _0x1c8ced=normalizeZone(_0x299bd5['zone'],Settings['defaultZone']);return _0x1c8ced['isValid']?new DateTime({'ts':_0x3852cf,'zone':_0x1c8ced,'loc':Locale['fromObject'](_0x299bd5)}):DateTime['invalid'](unsupportedZone(_0x1c8ced));}static['fromMillis'](_0x524233,_0x167904={}){if(isNumber(_0x524233))return _0x524233<-MAX_DATE||_0x524233>MAX_DATE?DateTime['invalid']('Timestamp\x20out\x20of\x20range'):new DateTime({'ts':_0x524233,'zone':normalizeZone(_0x167904['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x167904)});throw new InvalidArgumentError('fromMillis\x20requires\x20a\x20numerical\x20input,\x20but\x20received\x20a\x20'+typeof _0x524233+'\x20with\x20value\x20'+_0x524233);}static['fromSeconds'](_0x14ceed,_0x26965e={}){if(isNumber(_0x14ceed))return new DateTime({'ts':0x3e8*_0x14ceed,'zone':normalizeZone(_0x26965e['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x26965e)});throw new InvalidArgumentError('fromSeconds\x20requires\x20a\x20numerical\x20input');}static['fromObject'](_0x4f3b70,_0x3ae3e7={}){_0x4f3b70=_0x4f3b70||{};const _0x4bccb0=normalizeZone(_0x3ae3e7['zone'],Settings['defaultZone']);if(!_0x4bccb0['isValid'])return DateTime['invalid'](unsupportedZone(_0x4bccb0));const _0x235b41=Locale['fromObject'](_0x3ae3e7),_0x12a7aa=normalizeObject(_0x4f3b70,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x4214ae,startOfWeek:_0x1a4598}=usesLocalWeekValues(_0x12a7aa,_0x235b41),_0x1695df=Settings['now'](),_0x137390=isUndefined(_0x3ae3e7['specificOffset'])?_0x4bccb0['offset'](_0x1695df):_0x3ae3e7['specificOffset'],_0x2f6211=!isUndefined(_0x12a7aa['ordinal']),_0x369066=!isUndefined(_0x12a7aa['year']),_0x274107=!isUndefined(_0x12a7aa['month'])||!isUndefined(_0x12a7aa['day']),_0x146b74=_0x369066||_0x274107,_0x28beb2=_0x12a7aa['weekYear']||_0x12a7aa['weekNumber'];if((_0x146b74||_0x2f6211)&&_0x28beb2)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x274107&&_0x2f6211)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');const _0x1aabcf=_0x28beb2||_0x12a7aa['weekday']&&!_0x146b74;let _0x32a79f,_0x1ee990,_0x420ca2=tsToObj(_0x1695df,_0x137390);_0x1aabcf?(_0x32a79f=orderedWeekUnits,_0x1ee990=defaultWeekUnitValues,_0x420ca2=gregorianToWeek(_0x420ca2,_0x4214ae,_0x1a4598)):_0x2f6211?(_0x32a79f=orderedOrdinalUnits,_0x1ee990=defaultOrdinalUnitValues,_0x420ca2=gregorianToOrdinal(_0x420ca2)):(_0x32a79f=orderedUnits,_0x1ee990=defaultUnitValues);let _0x4a5c82=!0x1;for(const _0x19d983 of _0x32a79f){isUndefined(_0x12a7aa[_0x19d983])?_0x12a7aa[_0x19d983]=_0x4a5c82?_0x1ee990[_0x19d983]:_0x420ca2[_0x19d983]:_0x4a5c82=!0x0;}const _0x3ca226=(_0x1aabcf?hasInvalidWeekData(_0x12a7aa,_0x4214ae,_0x1a4598):_0x2f6211?hasInvalidOrdinalData(_0x12a7aa):hasInvalidGregorianData(_0x12a7aa))||hasInvalidTimeData(_0x12a7aa);if(_0x3ca226)return DateTime['invalid'](_0x3ca226);const _0x21ba61=_0x1aabcf?weekToGregorian(_0x12a7aa,_0x4214ae,_0x1a4598):_0x2f6211?ordinalToGregorian(_0x12a7aa):_0x12a7aa,[_0x581567,_0x12172c]=objToTS(_0x21ba61,_0x137390,_0x4bccb0),_0x384c0c=new DateTime({'ts':_0x581567,'zone':_0x4bccb0,'o':_0x12172c,'loc':_0x235b41});return _0x12a7aa['weekday']&&_0x146b74&&_0x4f3b70['weekday']!==_0x384c0c['weekday']?DateTime['invalid']('mismatched\x20weekday','you\x20can\x27t\x20specify\x20both\x20a\x20weekday\x20of\x20'+_0x12a7aa['weekday']+'\x20and\x20a\x20date\x20of\x20'+_0x384c0c['toISO']()):_0x384c0c['isValid']?_0x384c0c:DateTime['invalid'](_0x384c0c['invalid']);}static['fromISO'](_0x382a15,_0x21f78a={}){const [_0x2d069,_0x26a862]=parseISODate(_0x382a15);return parseDataToDateTime(_0x2d069,_0x26a862,_0x21f78a,'ISO\x208601',_0x382a15);}static['fromRFC2822'](_0x32a918,_0x42d02b={}){const [_0x1c1714,_0x4fbbdf]=parseRFC2822Date(_0x32a918);return parseDataToDateTime(_0x1c1714,_0x4fbbdf,_0x42d02b,'RFC\x202822',_0x32a918);}static['fromHTTP'](_0x2de50e,_0x11b008={}){const [_0x335e0d,_0x1b3dea]=parseHTTPDate(_0x2de50e);return parseDataToDateTime(_0x335e0d,_0x1b3dea,_0x11b008,'HTTP',_0x11b008);}static['fromFormat'](_0x4fd36e,_0x4bd127,_0x5bb808={}){if(isUndefined(_0x4fd36e)||isUndefined(_0x4bd127))throw new InvalidArgumentError('fromFormat\x20requires\x20an\x20input\x20string\x20and\x20a\x20format');const {locale:_0x4bc185=null,numberingSystem:_0x38fe82=null}=_0x5bb808,_0x31cb10=Locale['fromOpts']({'locale':_0x4bc185,'numberingSystem':_0x38fe82,'defaultToEN':!0x0}),[_0x23f28c,_0x4d0f5c,_0x53fd59,_0x13350c]=parseFromTokens(_0x31cb10,_0x4fd36e,_0x4bd127);return _0x13350c?DateTime['invalid'](_0x13350c):parseDataToDateTime(_0x23f28c,_0x4d0f5c,_0x5bb808,'format\x20'+_0x4bd127,_0x4fd36e,_0x53fd59);}static['fromString'](_0x42b9d9,_0x85b1c,_0x203677={}){return DateTime['fromFormat'](_0x42b9d9,_0x85b1c,_0x203677);}static['fromSQL'](_0x10fa84,_0x305827={}){const [_0x3f82e8,_0x9b2f64]=parseSQL(_0x10fa84);return parseDataToDateTime(_0x3f82e8,_0x9b2f64,_0x305827,'SQL',_0x10fa84);}static['invalid'](_0x316f75,_0x424fdf=null){if(!_0x316f75)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20DateTime\x20is\x20invalid');const _0xfe5d66=_0x316f75 instanceof Invalid?_0x316f75:new Invalid(_0x316f75,_0x424fdf);if(Settings['throwOnInvalid'])throw new InvalidDateTimeError(_0xfe5d66);return new DateTime({'invalid':_0xfe5d66});}static['isDateTime'](_0x4ee7cf){return _0x4ee7cf&&_0x4ee7cf['isLuxonDateTime']||!0x1;}static['parseFormatForOpts'](_0x398320,_0x50ab4b={}){const _0x46f963=formatOptsToTokens(_0x398320,Locale['fromObject'](_0x50ab4b));return _0x46f963?_0x46f963['map'](t=>t?t['val']:null)['join'](''):null;}static['expandFormat'](_0x44b549,_0x14485d={}){return expandMacroTokens(Formatter['parseFormat'](_0x44b549),Locale['fromObject'](_0x14485d))['map'](t=>t['val'])['join']('');}static['resetCache'](){zoneOffsetTs=void 0x0,zoneOffsetGuessCache['clear']();}['get'](_0x15bcac){return this[_0x15bcac];}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 _0x53b961=0x5265c00,_0xe828d9=0xea60,_0x597773=objToLocalTS(this['c']),_0x15bfae=this['zone']['offset'](_0x597773-_0x53b961),_0x7f7edf=this['zone']['offset'](_0x597773+_0x53b961),_0x56e76a=this['zone']['offset'](_0x597773-_0x15bfae*_0xe828d9),_0x46eb88=this['zone']['offset'](_0x597773-_0x7f7edf*_0xe828d9);if(_0x56e76a===_0x46eb88)return[this];const _0x1cfc76=_0x597773-_0x56e76a*_0xe828d9,_0x5954b4=_0x597773-_0x46eb88*_0xe828d9,_0x3621f7=tsToObj(_0x1cfc76,_0x56e76a),_0xe09b6e=tsToObj(_0x5954b4,_0x46eb88);return _0x3621f7['hour']===_0xe09b6e['hour']&&_0x3621f7['minute']===_0xe09b6e['minute']&&_0x3621f7['second']===_0xe09b6e['second']&&_0x3621f7['millisecond']===_0xe09b6e['millisecond']?[clone(this,{'ts':_0x1cfc76}),clone(this,{'ts':_0x5954b4})]:[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'](_0x2f8944={}){const {locale:_0x1232e7,numberingSystem:_0x105b0d,calendar:_0x5483fe}=Formatter['create'](this['loc']['clone'](_0x2f8944),_0x2f8944)['resolvedOptions'](this);return{'locale':_0x1232e7,'numberingSystem':_0x105b0d,'outputCalendar':_0x5483fe};}['toUTC'](_0x5a7f5c=0x0,_0x17dcc9={}){return this['setZone'](FixedOffsetZone['instance'](_0x5a7f5c),_0x17dcc9);}['toLocal'](){return this['setZone'](Settings['defaultZone']);}['setZone'](_0x3ac615,{keepLocalTime:_0x38ba59=!0x1,keepCalendarTime:_0x5bf072=!0x1}={}){if((_0x3ac615=normalizeZone(_0x3ac615,Settings['defaultZone']))['equals'](this['zone']))return this;if(_0x3ac615['isValid']){let _0x40f772=this['ts'];if(_0x38ba59||_0x5bf072){const _0x1e3346=_0x3ac615['offset'](this['ts']),_0x1d690b=this['toObject']();[_0x40f772]=objToTS(_0x1d690b,_0x1e3346,_0x3ac615);}return clone(this,{'ts':_0x40f772,'zone':_0x3ac615});}return DateTime['invalid'](unsupportedZone(_0x3ac615));}['reconfigure']({locale:_0x38077a,numberingSystem:_0x1a957c,outputCalendar:_0x129eee}={}){return clone(this,{'loc':this['loc']['clone']({'locale':_0x38077a,'numberingSystem':_0x1a957c,'outputCalendar':_0x129eee})});}['setLocale'](_0x5e0257){return this['reconfigure']({'locale':_0x5e0257});}['set'](_0x32e87c){if(!this['isValid'])return this;const _0x10f3ed=normalizeObject(_0x32e87c,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x6bf07,startOfWeek:_0x3fa735}=usesLocalWeekValues(_0x10f3ed,this['loc']),_0x549a0c=!isUndefined(_0x10f3ed['weekYear'])||!isUndefined(_0x10f3ed['weekNumber'])||!isUndefined(_0x10f3ed['weekday']),_0x28b750=!isUndefined(_0x10f3ed['ordinal']),_0x37b7ce=!isUndefined(_0x10f3ed['year']),_0x591202=!isUndefined(_0x10f3ed['month'])||!isUndefined(_0x10f3ed['day']),_0x214bab=_0x37b7ce||_0x591202,_0x221803=_0x10f3ed['weekYear']||_0x10f3ed['weekNumber'];if((_0x214bab||_0x28b750)&&_0x221803)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x591202&&_0x28b750)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');let _0x2e47b9;_0x549a0c?_0x2e47b9=weekToGregorian({...gregorianToWeek(this['c'],_0x6bf07,_0x3fa735),..._0x10f3ed},_0x6bf07,_0x3fa735):isUndefined(_0x10f3ed['ordinal'])?(_0x2e47b9={...this['toObject'](),..._0x10f3ed},isUndefined(_0x10f3ed['day'])&&(_0x2e47b9['day']=Math['min'](daysInMonth(_0x2e47b9['year'],_0x2e47b9['month']),_0x2e47b9['day']))):_0x2e47b9=ordinalToGregorian({...gregorianToOrdinal(this['c']),..._0x10f3ed});const [_0x2f8b00,_0x2be1fc]=objToTS(_0x2e47b9,this['o'],this['zone']);return clone(this,{'ts':_0x2f8b00,'o':_0x2be1fc});}['plus'](_0x55e4b9){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x55e4b9)));}['minus'](_0x4c5943){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x4c5943)['negate']()));}['startOf'](_0x5e80cd,{useLocaleWeeks:_0x195a78=!0x1}={}){if(!this['isValid'])return this;const _0x12d92c={},_0x1014c7=Duration['normalizeUnit'](_0x5e80cd);switch(_0x1014c7){case'years':_0x12d92c['month']=0x1;case'quarters':case'months':_0x12d92c['day']=0x1;case'weeks':case'days':_0x12d92c['hour']=0x0;case'hours':_0x12d92c['minute']=0x0;case'minutes':_0x12d92c['second']=0x0;case'seconds':_0x12d92c['millisecond']=0x0;}if('weeks'===_0x1014c7){if(_0x195a78){const _0x54ce02=this['loc']['getStartOfWeek'](),{weekday:_0x5a5278}=this;_0x5a5278<_0x54ce02&&(_0x12d92c['weekNumber']=this['weekNumber']-0x1),_0x12d92c['weekday']=_0x54ce02;}else _0x12d92c['weekday']=0x1;}if('quarters'===_0x1014c7){const _0x35c9a6=Math['ceil'](this['month']/0x3);_0x12d92c['month']=0x3*(_0x35c9a6-0x1)+0x1;}return this['set'](_0x12d92c);}['endOf'](_0x336308,_0x1a4430){return this['isValid']?this['plus']({[_0x336308]:0x1})['startOf'](_0x336308,_0x1a4430)['minus'](0x1):this;}['toFormat'](_0x9a9520,_0x3ba12c={}){return this['isValid']?Formatter['create'](this['loc']['redefaultToEN'](_0x3ba12c))['formatDateTimeFromString'](this,_0x9a9520):INVALID;}['toLocaleString'](_0x2669d6=DATE_SHORT,_0x20fd35={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x20fd35),_0x2669d6)['formatDateTime'](this):INVALID;}['toLocaleParts'](_0x11e100={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x11e100),_0x11e100)['formatDateTimeParts'](this):[];}['toISO']({format:_0x5a8c98='extended',suppressSeconds:_0x184666=!0x1,suppressMilliseconds:_0x315b46=!0x1,includeOffset:_0x5a6d9f=!0x0,extendedZone:_0x5b986f=!0x1}={}){if(!this['isValid'])return null;const _0x54e6e5='extended'===_0x5a8c98;let _0x5356a9=toISODate(this,_0x54e6e5);return _0x5356a9+='T',_0x5356a9+=toISOTime(this,_0x54e6e5,_0x184666,_0x315b46,_0x5a6d9f,_0x5b986f),_0x5356a9;}['toISODate']({format:_0x23d054='extended'}={}){return this['isValid']?toISODate(this,'extended'===_0x23d054):null;}['toISOWeekDate'](){return toTechFormat(this,'kkkk-\x27W\x27WW-c');}['toISOTime']({suppressMilliseconds:_0x736954=!0x1,suppressSeconds:_0x16fac0=!0x1,includeOffset:_0x4fe624=!0x0,includePrefix:_0x30d3cb=!0x1,extendedZone:_0x376038=!0x1,format:_0x4f5e27='extended'}={}){if(!this['isValid'])return null;return(_0x30d3cb?'T':'')+toISOTime(this,'extended'===_0x4f5e27,_0x16fac0,_0x736954,_0x4fe624,_0x376038);}['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:_0xf703d4=!0x0,includeZone:_0x445e88=!0x1,includeOffsetSpace:_0x235071=!0x0}={}){let _0x3a4919='HH:mm:ss.SSS';return(_0x445e88||_0xf703d4)&&(_0x235071&&(_0x3a4919+='\x20'),_0x445e88?_0x3a4919+='z':_0xf703d4&&(_0x3a4919+='ZZ')),toTechFormat(this,_0x3a4919,!0x0);}['toSQL'](_0x4086b8={}){return this['isValid']?this['toSQLDate']()+'\x20'+this['toSQLTime'](_0x4086b8):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'](_0x316d49={}){if(!this['isValid'])return{};const _0xb301ac={...this['c']};return _0x316d49['includeConfig']&&(_0xb301ac['outputCalendar']=this['outputCalendar'],_0xb301ac['numberingSystem']=this['loc']['numberingSystem'],_0xb301ac['locale']=this['loc']['locale']),_0xb301ac;}['toJSDate'](){return new Date(this['isValid']?this['ts']:NaN);}['diff'](_0xc34a52,_0x349997='milliseconds',_0xafccb0={}){if(!this['isValid']||!_0xc34a52['isValid'])return Duration['invalid']('created\x20by\x20diffing\x20an\x20invalid\x20DateTime');const _0x565720={'locale':this['locale'],'numberingSystem':this['numberingSystem'],..._0xafccb0},_0x3418cc=maybeArray(_0x349997)['map'](Duration['normalizeUnit']),_0xeff45e=_0xc34a52['valueOf']()>this['valueOf'](),_0x184361=diff(_0xeff45e?this:_0xc34a52,_0xeff45e?_0xc34a52:this,_0x3418cc,_0x565720);return _0xeff45e?_0x184361['negate']():_0x184361;}['diffNow'](_0x67bc70='milliseconds',_0x38b26e={}){return this['diff'](DateTime['now'](),_0x67bc70,_0x38b26e);}['until'](_0x558ef7){return this['isValid']?Interval['fromDateTimes'](this,_0x558ef7):this;}['hasSame'](_0x2092f6,_0x3f6972,_0x4e50b8){if(!this['isValid'])return!0x1;const _0x89351c=_0x2092f6['valueOf'](),_0x5ec564=this['setZone'](_0x2092f6['zone'],{'keepLocalTime':!0x0});return _0x5ec564['startOf'](_0x3f6972,_0x4e50b8)<=_0x89351c&&_0x89351c<=_0x5ec564['endOf'](_0x3f6972,_0x4e50b8);}['equals'](_0x256de3){return this['isValid']&&_0x256de3['isValid']&&this['valueOf']()===_0x256de3['valueOf']()&&this['zone']['equals'](_0x256de3['zone'])&&this['loc']['equals'](_0x256de3['loc']);}['toRelative'](_0x185d31={}){if(!this['isValid'])return null;const _0x500f54=_0x185d31['base']||DateTime['fromObject']({},{'zone':this['zone']}),_0x55a27c=_0x185d31['padding']?this<_0x500f54?-_0x185d31['padding']:_0x185d31['padding']:0x0;let _0x5c25c0=['years','months','days','hours','minutes','seconds'],_0x5b46b2=_0x185d31['unit'];return Array['isArray'](_0x185d31['unit'])&&(_0x5c25c0=_0x185d31['unit'],_0x5b46b2=void 0x0),diffRelative(_0x500f54,this['plus'](_0x55a27c),{..._0x185d31,'numeric':'always','units':_0x5c25c0,'unit':_0x5b46b2});}['toRelativeCalendar'](_0x1d673e={}){return this['isValid']?diffRelative(_0x1d673e['base']||DateTime['fromObject']({},{'zone':this['zone']}),this,{..._0x1d673e,'numeric':'auto','units':['years','months','days'],'calendary':!0x0}):null;}static['min'](..._0xc782a7){if(!_0xc782a7['every'](DateTime['isDateTime']))throw new InvalidArgumentError('min\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0xc782a7,_0x41474b=>_0x41474b['valueOf'](),Math['min']);}static['max'](..._0x4cc10d){if(!_0x4cc10d['every'](DateTime['isDateTime']))throw new InvalidArgumentError('max\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x4cc10d,_0x519415=>_0x519415['valueOf'](),Math['max']);}static['fromFormatExplain'](_0x13e08c,_0x38e675,_0x355f40={}){const {locale:_0x493943=null,numberingSystem:_0x5e44f7=null}=_0x355f40;return explainFromTokens(Locale['fromOpts']({'locale':_0x493943,'numberingSystem':_0x5e44f7,'defaultToEN':!0x0}),_0x13e08c,_0x38e675);}static['fromStringExplain'](_0x266c12,_0x30c567,_0xe1bd0={}){return DateTime['fromFormatExplain'](_0x266c12,_0x30c567,_0xe1bd0);}static['buildFormatParser'](_0x3bf3b6,_0x353bea={}){const {locale:_0x574998=null,numberingSystem:_0x44018c=null}=_0x353bea,_0x503aaf=Locale['fromOpts']({'locale':_0x574998,'numberingSystem':_0x44018c,'defaultToEN':!0x0});return new TokenParser(_0x503aaf,_0x3bf3b6);}static['fromFormatParser'](_0x3cdd35,_0x89fb60,_0x51117e={}){if(isUndefined(_0x3cdd35)||isUndefined(_0x89fb60))throw new InvalidArgumentError('fromFormatParser\x20requires\x20an\x20input\x20string\x20and\x20a\x20format\x20parser');const {locale:_0x3e09b7=null,numberingSystem:_0x4fb49c=null}=_0x51117e,_0x21a2c4=Locale['fromOpts']({'locale':_0x3e09b7,'numberingSystem':_0x4fb49c,'defaultToEN':!0x0});if(!_0x21a2c4['equals'](_0x89fb60['locale']))throw new InvalidArgumentError('fromFormatParser\x20called\x20with\x20a\x20locale\x20of\x20'+_0x21a2c4+',\x20but\x20the\x20format\x20parser\x20was\x20created\x20for\x20'+_0x89fb60['locale']);const {result:_0x3baaa4,zone:_0x109be2,specificOffset:_0x41b104,invalidReason:_0x331f08}=_0x89fb60['explainFromTokens'](_0x3cdd35);return _0x331f08?DateTime['invalid'](_0x331f08):parseDataToDateTime(_0x3baaa4,_0x109be2,_0x51117e,'format\x20'+_0x89fb60['format'],_0x3cdd35,_0x41b104);}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(_0x4c1a08){if(DateTime['isDateTime'](_0x4c1a08))return _0x4c1a08;if(_0x4c1a08&&_0x4c1a08['valueOf']&&isNumber(_0x4c1a08['valueOf']()))return DateTime['fromJSDate'](_0x4c1a08);if(_0x4c1a08&&'object'==typeof _0x4c1a08)return DateTime['fromObject'](_0x4c1a08);throw new InvalidArgumentError('Unknown\x20datetime\x20argument:\x20'+_0x4c1a08+',\x20of\x20type\x20'+typeof _0x4c1a08);}function getDateTimeFormatter(_0x4a4364={},_0x3e9594){if(void 0x0!==_0x4a4364['dateTimeFormat']&&'function'!=typeof _0x4a4364['dateTimeFormat'])throw new CKEditorError('invalid-date-time-format');return _0x109b4c=>{const _0x595240='string'==typeof _0x109b4c?DateTime['fromISO'](_0x109b4c):DateTime['fromJSDate'](_0x109b4c),_0x3bc472=DateTime['now'](),_0x32379c=Math['floor'](_0x3bc472['diff'](_0x595240,'days')['days']);return _0x4a4364['dateTimeFormat']?_0x4a4364['dateTimeFormat'](_0x595240['toJSDate'](),_0x3e9594&&_0x3e9594['t']?_0x3e9594['t']:void 0x0):0x0===_0x32379c?_0x3e9594?getTranslation$h(_0x3e9594,'Today')+'\x20'+_0x595240['toFormat']('hh:mma'):_0x595240['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x32379c?_0x3e9594?getTranslation$h(_0x3e9594,'Yesterday')+'\x20'+_0x595240['toFormat']('hh:mma'):_0x595240['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x32379c<0x7?_0x3e9594?getTranslation$h(_0x3e9594,'Last')+'\x20'+getTranslation$h(_0x3e9594,_0x595240['toFormat']('EEEE'))+'\x20'+_0x595240['toFormat']('hh:mma'):_0x595240['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x595240['toFormat']('LL-dd-yyyy\x20hh:mma');};}function getMarkerDomElement(_0x43831f,_0xd97989){const _0x4424ef=_0x43831f['mapper']['markerNameToElements'](_0xd97989['name']);if(!_0x4424ef)return null;const _0x358782=first(_0x4424ef['values']());return _0x43831f['view']['domConverter']['mapViewToDom'](_0x358782)||null;}function getAllMarkersDomElementsSorted(_0x52ca45,_0x411f2e){if(0x0===_0x411f2e['length'])return null;const _0x336f10=[],_0x1e4abc=_0x52ca45['view']['domConverter'];for(const _0x261b4b of _0x411f2e){const _0x5a1765=_0x52ca45['mapper']['markerNameToElements'](_0x261b4b['name']);if(!_0x5a1765)continue;const _0x4e6fdc=Array['from'](_0x5a1765)['map'](_0xf25fa6=>_0x1e4abc['mapViewToDom'](_0xf25fa6))['filter'](_0x1ecfe0=>!!_0x1ecfe0);_0x336f10['push'](..._0x4e6fdc);}if(0x0===_0x336f10['length'])return null;const _0x19fab8=[];for(const _0x5d88af of _0x336f10){const _0x28f3d8=_0x5d88af['getClientRects']()['item'](0x0);_0x28f3d8&&_0x19fab8['push']({'x':_0x28f3d8['x'],'y':_0x28f3d8['y'],'domElement':_0x5d88af});}return 0x0===_0x19fab8['length']?null:(_0x19fab8['sort']((_0x3ea6eb,_0x4dac64)=>_0x3ea6eb['y']-_0x4dac64['y']||_0x3ea6eb['x']-_0x4dac64['x']),_0x19fab8['map'](_0x17a733=>_0x17a733['domElement']));}function trimHtml(_0x37d206,{limit:_0x5520bc,suffix:_0x4d7360='...'}){const _0x543b85=[];let _0x5cb774=0x0;const _0x27634c=_0x37d206['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x3b4f17=0x0;_0x3b4f17<_0x27634c['length'];_0x3b4f17++){let _0x310829=_0x27634c[_0x3b4f17];const _0x26bfe4=splitCharactersToArray(_0x310829);if(_0x310829['startsWith']('<')){if(_0x5cb774>=_0x5520bc){const _0xe69f8a=_0x310829['match'](/[a-zA-Z]+/);if(!_0xe69f8a){_0x27634c[_0x3b4f17]='';continue;}const _0x133cdb=_0xe69f8a[0x0];_0x310829['startsWith']('</')?(_0x543b85['length']&&(_0x310829=''),_0x543b85['pop']()):(_0x543b85['push'](_0x133cdb),_0x310829='');}}else{if(_0x5cb774>=_0x5520bc)_0x310829='';else{if(_0x5cb774+_0x26bfe4['length']>=_0x5520bc){let _0x3c96f3=_0x5520bc-_0x5cb774;if('\x20'===_0x26bfe4[_0x3c96f3-0x1])_0x3c96f3--;else{const _0x152cac=_0x26bfe4['slice'](_0x3c96f3)['indexOf']('\x20');-0x1!==_0x152cac?_0x3c96f3+=_0x152cac:_0x3c96f3=_0x310829['length'];}_0x310829=_0x26bfe4['slice'](0x0,_0x3c96f3)['join']('')+_0x4d7360,_0x5cb774=_0x5520bc;}else _0x5cb774+=_0x26bfe4['length'];}}_0x27634c[_0x3b4f17]=_0x310829;}return _0x27634c['join']('\x0a')['replace'](/\n/g,'');}function splitCharactersToArray(_0x3721b3){const _0x372ffa=[];for(let _0x156f8f=0x0;_0x156f8f<_0x3721b3['length'];_0x156f8f++){const _0x2fd023=_0x3721b3['substring'](_0x156f8f)['match'](/^&[a-z0-9#]+;/);if(_0x2fd023){const _0x2f624b=_0x2fd023[0x0];_0x372ffa['push'](_0x2f624b),_0x156f8f+=_0x2f624b['length']-0x1;}else _0x372ffa['push'](_0x3721b3[_0x156f8f]);}return _0x372ffa;}class ConfirmView extends View{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x5dc0af){super(_0x5dc0af);const _0x17c963=this['bindTemplate'];this['set']('message',getTranslation$h(_0x5dc0af,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x5dc0af,getTranslation$h(_0x5dc0af,'Yes'),IconCheck,'submit'),this['cancelView']=this['_createButtonView'](_0x5dc0af,getTranslation$h(_0x5dc0af,'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':_0x17c963['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'](_0x3593f5,_0x233e41,_0x53ea28,_0x3f14ea){const _0x2f4668=new ButtonView(_0x3593f5);return _0x2f4668['label']=_0x233e41,_0x2f4668['icon']=_0x53ea28,_0x2f4668['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x3f14ea}}),_0x2f4668['on']('execute',()=>this['fire'](_0x3f14ea)),_0x2f4668;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x2f14f8=>{this['keystrokes']['listenTo'](_0x2f14f8['element']),this['focusTracker']['add'](_0x2f14f8['element']);}),this['keystrokes']['set']('esc',(_0x36b8fd,_0x2466d9)=>{this['fire']('cancel'),_0x2466d9();});}}function ConfirmMixin(_0x43c140){return class extends _0x43c140{['showConfirm'](_0x232e07,_0x4848b9){return this['confirmView']=new ConfirmView(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x232e07,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x4848b9['appendChild'](this['confirmView']['element']),_0x4848b9['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x5de1f3,_0x2ece93,_0x1cf429)=>{_0x1cf429||_0x4848b9['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x465b8c=>this['confirmView']['on']('submit',_0x465b8c));}['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(_0x111dec){let _0x5a4bd5=0x0,_0x409c81=0x0;for(const _0x5aefa3 of objectToNumberGenerator(_0x111dec))_0x5a4bd5=(_0x5a4bd5<<0x5)-_0x5a4bd5+_0x5aefa3,_0x5a4bd5&=_0x5a4bd5,[_0x5a4bd5,_0x409c81]=[_0x409c81,_0x5a4bd5];return toString$1(_0x5a4bd5)+toString$1(_0x409c81);}function*toNumberGenerator(_0x6a1e37){null==_0x6a1e37||null==_0x6a1e37?yield 0x12b9b0a1:0x0===_0x6a1e37||!0x1===_0x6a1e37?yield 0x0:0x1===_0x6a1e37||0x1==_0x6a1e37?yield 0x1:Array['isArray'](_0x6a1e37)?yield*arrayToNumberGenerator(_0x6a1e37):'object'==typeof _0x6a1e37?yield*objectToNumberGenerator(_0x6a1e37):'string'==typeof _0x6a1e37?yield*stringToNumberGenerator(_0x6a1e37):'number'==typeof _0x6a1e37&&(yield _0x6a1e37);}function*objectToNumberGenerator(_0x36430f){if(yield charCode('{'),_0x36430f){const _0x324771=Object['keys'](_0x36430f)['sort']();for(const _0xb6de38 of _0x324771){yield*stringToNumberGenerator(_0xb6de38),yield charCode(':');const _0x4b3897=_0x36430f[_0xb6de38];yield*toNumberGenerator(_0x4b3897);}}yield charCode('}');}function*arrayToNumberGenerator(_0x2e21c7){for(const _0x1f1360 of _0x2e21c7)yield*toNumberGenerator(_0x1f1360);}function*stringToNumberGenerator(_0x358c26){yield charCode('\x22');for(const _0x57f089 of _0x358c26)yield charCode(_0x57f089);yield charCode('\x22');}function charCode(_0x5674a9){return _0x5674a9['charCodeAt'](0x0);}function toString$1(_0x3e3cfe){return(_0x3e3cfe*=Math['sign'](_0x3e3cfe))['toString'](0x24);}const blackListedConfigOptions=['initialData','context','toolbar','rootsAttributes'],blackListedPlugins$2=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function skipRtcPlugins(_0x5c1e26,_0x13ae86,_0xbb60bf,_0x34f9ac=[]){const _0x2e8a9f='string'==typeof _0x5c1e26?_0xbb60bf['get'](_0x5c1e26)['constructor']:_0x5c1e26['prototype']['constructor'];if(_0x13ae86['has'](_0x2e8a9f))return _0x13ae86['get'](_0x2e8a9f);_0x13ae86['set'](_0x2e8a9f,!0x0);const _0x315aa0=[...blackListedPlugins$2,..._0x34f9ac]['map'](_0x4cc157=>{if(_0xbb60bf['has'](_0x4cc157))return _0xbb60bf['get'](_0x4cc157)['constructor'];})['filter'](_0x45c275=>_0x45c275);if(_0x2e8a9f&&_0x315aa0['includes'](_0x2e8a9f))return _0x13ae86['set'](_0x2e8a9f,!0x1),!0x1;if(!_0x2e8a9f['requires'])return _0x13ae86['set'](_0x2e8a9f,!0x0),!0x0;const _0x4fba6c=_0x2e8a9f['requires']['every'](_0x1a2934=>skipRtcPlugins(_0x1a2934,_0x13ae86,_0xbb60bf,_0x34f9ac));return _0x13ae86['set'](_0x2e8a9f,_0x4fba6c),_0x4fba6c;}function sanitizeEditorConfig(_0x35a5d5,_0x1b8530){const _0x28394d={};for(const _0x2fb886 of _0x35a5d5['config']['names']())blackListedConfigOptions['includes'](_0x2fb886)||(_0x28394d[_0x2fb886]=_0x35a5d5['config']['get'](_0x2fb886));const _0x3b8de6=_0x28394d['plugins']||[],_0x1d0216=_0x35a5d5['constructor']['builtinPlugins']||[],_0x1ed0b8=_0x3b8de6['length']?_0x3b8de6:_0x1d0216,_0x5efd83=_0x28394d['extraPlugins']||[];delete _0x28394d['extraPlugins'];const _0xfb88b3=_0x28394d['removePlugins']||[];delete _0x28394d['removePlugins'];const _0x3eb808=_0x35a5d5['_context']['config']['get']('plugins')||[],_0x79a39d=_0x1ed0b8['concat'](_0x5efd83)['concat'](_0x3eb808)['map'](_0x14f786=>'string'==typeof _0x14f786?_0x1d0216['find'](_0x5677b4=>_0x5677b4['pluginName']==_0x14f786):_0x14f786)['filter'](_0x4ab4dd=>!_0xfb88b3['includes'](_0x4ab4dd)&&!_0xfb88b3['includes'](_0x4ab4dd['pluginName'])),_0x1900c4=Array['from'](new Set(_0x79a39d)),_0x1cf177=new Map();return _0x28394d['plugins']=_0x1900c4['filter'](_0x1d66fd=>skipRtcPlugins(_0x1d66fd,_0x1cf177,_0x35a5d5['plugins'],_0x1b8530)),_0x28394d;}function surroundingMarkersDetector(_0x3ba3ed,_0x200da){const _0x5ce8bc=[];_0x3ba3ed['document']['selection']['on']('change:range',()=>{const _0x44dd30=getSurroundingMarkers(_0x3ba3ed,_0x3ba3ed['document']['selection']['focus']),_0x1576ff=[],_0x11ad7c=[],_0x5b2de7=[];for(const _0x1fa74a of _0x5ce8bc)_0x44dd30['includes'](_0x1fa74a)||_0x1576ff['push'](_0x1fa74a);for(const _0x4348aa of _0x44dd30)_0x5ce8bc['includes'](_0x4348aa)||_0x11ad7c['push'](_0x4348aa),_0x5b2de7['push'](_0x4348aa);(_0x1576ff['length']||_0x11ad7c['length'])&&_0x200da({'left':_0x1576ff,'entered':_0x11ad7c}),_0x5ce8bc['length']=0x0,_0x5ce8bc['push'](..._0x5b2de7);});}function getSurroundingMarkers(_0x4f1dcd,_0x543723){const _0x2003b3=[];for(const _0x846cbc of _0x4f1dcd['markers']){const _0x5d4acc=_0x846cbc['getRange']();(_0x5d4acc['containsPosition'](_0x543723)||_0x5d4acc['start']['isEqual'](_0x543723)||_0x5d4acc['end']['isEqual'](_0x543723))&&_0x2003b3['push'](_0x846cbc);}return _0x2003b3;}const FOCUS_ANNOTATION_KEYSTROKE='Ctrl+Shift+E';function setupThreadKeyboardNavigation(_0x58bbff,_0x342cc6){const _0x3ef08e=_0x58bbff['element'];_0x58bbff['keystrokes']['listenTo'](_0x3ef08e);for(const _0x266631 of _0x342cc6)addViewToFocusCyclerNavigation(_0x58bbff,_0x266631);_0x342cc6['on']('change',(_0x36f672,_0xe3c23b)=>{for(const _0x416a31 of _0xe3c23b['removed'])removeViewFromFocusCyclerNavigation(_0x58bbff,_0x416a31);for(const _0x539c52 of Array['from'](_0xe3c23b['added'])['reverse']())addViewToFocusCyclerNavigation(_0x58bbff,_0x539c52);}),_0x58bbff['keystrokes']['set']('enter',(_0x22c881,_0x34cdf4)=>{_0x3ef08e===_0x22c881['target']&&(_0x58bbff['focusCycler']['focusFirst'](),_0x34cdf4());},{'filter':_0x256a87=>_0x256a87['target']===_0x3ef08e}),_0x58bbff['keystrokes']['set']('esc',(_0x43f37e,_0x3de4fc)=>{_0x3ef08e!==_0x43f37e['target']?_0x58bbff['focus']():_0x58bbff['fire']('escape'),_0x3de4fc();}),_0x58bbff['keystrokes']['set']('arrowdown',(_0x382c16,_0x368ac3)=>{_0x3ef08e===_0x382c16['target']&&(_0x58bbff['fire']('arrowdown'),_0x368ac3());}),_0x58bbff['keystrokes']['set']('arrowup',(_0x2f81fa,_0x54ee8e)=>{_0x3ef08e===_0x2f81fa['target']&&(_0x58bbff['fire']('arrowup'),_0x54ee8e());});}function addViewToFocusCyclerNavigation(_0x272573,_0x7e3fe5){_0x7e3fe5['isRendered']&&(_0x272573['focusTracker']['add'](_0x7e3fe5['element']),_0x272573['keystrokes']['listenTo'](_0x7e3fe5['element']),isViewWithFocusCycler(_0x7e3fe5)&&areFocusCyclerActionsCompatible(_0x272573['focusCycler'],_0x7e3fe5['focusCycler'])&&_0x272573['focusCycler']['chain'](_0x7e3fe5['focusCycler']));}function removeViewFromFocusCyclerNavigation(_0x2d3437,_0x411432){_0x2d3437['focusTracker']['remove'](_0x411432['element']),_0x2d3437['keystrokes']['stopListening'](_0x411432['element']),isViewWithFocusCycler(_0x411432)&&_0x2d3437['focusCycler']['unchain'](_0x411432['focusCycler']);}function areFocusCyclerActionsCompatible(_0x61f994,_0x479f9f){const _0x5337b5=_0x61f994['actions'],_0x51d4f9=_0x479f9f['actions'];for(const _0x2b624c of Object['keys'](_0x5337b5))if(_0x2b624c in _0x51d4f9&&_0x5337b5[_0x2b624c]!==_0x51d4f9[_0x2b624c])return!0x1;return!0x0;}class Diff{['diff'](_0x313ea3,_0x433f95,_0xcd229e={}){let _0xc70009;'function'==typeof _0xcd229e?(_0xc70009=_0xcd229e,_0xcd229e={}):'callback'in _0xcd229e&&(_0xc70009=_0xcd229e['callback']);const _0x5cdfb3=this['castInput'](_0x313ea3,_0xcd229e),_0x3ad0fe=this['castInput'](_0x433f95,_0xcd229e),_0x1ff369=this['removeEmpty'](this['tokenize'](_0x5cdfb3,_0xcd229e)),_0x15b1bf=this['removeEmpty'](this['tokenize'](_0x3ad0fe,_0xcd229e));return this['diffWithOptionsObj'](_0x1ff369,_0x15b1bf,_0xcd229e,_0xc70009);}['diffWithOptionsObj'](_0x38120a,_0x1827f9,_0x39387a,_0x2938bf){var _0x2bd0a6;const _0x197918=_0x5df1c9=>(_0x5df1c9=this['postProcess'](_0x5df1c9,_0x39387a),_0x2938bf?void setTimeout(function(){_0x2938bf(_0x5df1c9);},0x0):_0x5df1c9),_0x55e1c4=_0x1827f9['length'],_0x563eb6=_0x38120a['length'];let _0x2ed94c=0x1,_0x2ea350=_0x55e1c4+_0x563eb6;null!=_0x39387a['maxEditLength']&&(_0x2ea350=Math['min'](_0x2ea350,_0x39387a['maxEditLength']));const _0x5052b3=null!==(_0x2bd0a6=_0x39387a['timeout'])&&void 0x0!==_0x2bd0a6?_0x2bd0a6:0x1/0x0,_0xebab49=Date['now']()+_0x5052b3,_0x7ba891=[{'oldPos':-0x1,'lastComponent':void 0x0}];let _0x55e5b5=this['extractCommon'](_0x7ba891[0x0],_0x1827f9,_0x38120a,0x0,_0x39387a);if(_0x7ba891[0x0]['oldPos']+0x1>=_0x563eb6&&_0x55e5b5+0x1>=_0x55e1c4)return _0x197918(this['buildValues'](_0x7ba891[0x0]['lastComponent'],_0x1827f9,_0x38120a));let _0x4ae2ed=-0x1/0x0,_0x278f29=0x1/0x0;const _0x2d1a31=()=>{for(let _0xd35eaf=Math['max'](_0x4ae2ed,-_0x2ed94c);_0xd35eaf<=Math['min'](_0x278f29,_0x2ed94c);_0xd35eaf+=0x2){let _0x27df48;const _0x1eeb1a=_0x7ba891[_0xd35eaf-0x1],_0x4ace1a=_0x7ba891[_0xd35eaf+0x1];_0x1eeb1a&&(_0x7ba891[_0xd35eaf-0x1]=void 0x0);let _0x2ecb92=!0x1;if(_0x4ace1a){const _0x396f23=_0x4ace1a['oldPos']-_0xd35eaf;_0x2ecb92=_0x4ace1a&&0x0<=_0x396f23&&_0x396f23<_0x55e1c4;}const _0x5726c3=_0x1eeb1a&&_0x1eeb1a['oldPos']+0x1<_0x563eb6;if(_0x2ecb92||_0x5726c3){if(_0x27df48=!_0x5726c3||_0x2ecb92&&_0x1eeb1a['oldPos']<_0x4ace1a['oldPos']?this['addToPath'](_0x4ace1a,!0x0,!0x1,0x0,_0x39387a):this['addToPath'](_0x1eeb1a,!0x1,!0x0,0x1,_0x39387a),_0x55e5b5=this['extractCommon'](_0x27df48,_0x1827f9,_0x38120a,_0xd35eaf,_0x39387a),_0x27df48['oldPos']+0x1>=_0x563eb6&&_0x55e5b5+0x1>=_0x55e1c4)return _0x197918(this['buildValues'](_0x27df48['lastComponent'],_0x1827f9,_0x38120a))||!0x0;_0x7ba891[_0xd35eaf]=_0x27df48,_0x27df48['oldPos']+0x1>=_0x563eb6&&(_0x278f29=Math['min'](_0x278f29,_0xd35eaf-0x1)),_0x55e5b5+0x1>=_0x55e1c4&&(_0x4ae2ed=Math['max'](_0x4ae2ed,_0xd35eaf+0x1));}else _0x7ba891[_0xd35eaf]=void 0x0;}_0x2ed94c++;};if(_0x2938bf)!function _0x98cac9(){setTimeout(function(){if(_0x2ed94c>_0x2ea350||Date['now']()>_0xebab49)return _0x2938bf(void 0x0);_0x2d1a31()||_0x98cac9();},0x0);}();else for(;_0x2ed94c<=_0x2ea350&&Date['now']()<=_0xebab49;){const _0xa4c3=_0x2d1a31();if(_0xa4c3)return _0xa4c3;}}['addToPath'](_0x3696c9,_0x17c342,_0x47254e,_0x2ae1ec,_0x39733d){const _0x3ef187=_0x3696c9['lastComponent'];return _0x3ef187&&!_0x39733d['oneChangePerToken']&&_0x3ef187['added']===_0x17c342&&_0x3ef187['removed']===_0x47254e?{'oldPos':_0x3696c9['oldPos']+_0x2ae1ec,'lastComponent':{'count':_0x3ef187['count']+0x1,'added':_0x17c342,'removed':_0x47254e,'previousComponent':_0x3ef187['previousComponent']}}:{'oldPos':_0x3696c9['oldPos']+_0x2ae1ec,'lastComponent':{'count':0x1,'added':_0x17c342,'removed':_0x47254e,'previousComponent':_0x3ef187}};}['extractCommon'](_0x30f57e,_0x9c0ddd,_0x4846e6,_0xba2030,_0x42c107){const _0x1962b0=_0x9c0ddd['length'],_0x5d2319=_0x4846e6['length'];let _0x9355c1=_0x30f57e['oldPos'],_0xea703f=_0x9355c1-_0xba2030,_0x4982dd=0x0;for(;_0xea703f+0x1<_0x1962b0&&_0x9355c1+0x1<_0x5d2319&&this['equals'](_0x4846e6[_0x9355c1+0x1],_0x9c0ddd[_0xea703f+0x1],_0x42c107);)_0xea703f++,_0x9355c1++,_0x4982dd++,_0x42c107['oneChangePerToken']&&(_0x30f57e['lastComponent']={'count':0x1,'previousComponent':_0x30f57e['lastComponent'],'added':!0x1,'removed':!0x1});return _0x4982dd&&!_0x42c107['oneChangePerToken']&&(_0x30f57e['lastComponent']={'count':_0x4982dd,'previousComponent':_0x30f57e['lastComponent'],'added':!0x1,'removed':!0x1}),_0x30f57e['oldPos']=_0x9355c1,_0xea703f;}['equals'](_0x5ad57e,_0x20af77,_0x1ed433){return _0x1ed433['comparator']?_0x1ed433['comparator'](_0x5ad57e,_0x20af77):_0x5ad57e===_0x20af77||!!_0x1ed433['ignoreCase']&&_0x5ad57e['toLowerCase']()===_0x20af77['toLowerCase']();}['removeEmpty'](_0x4f2069){const _0x213757=[];for(let _0x54bcbf=0x0;_0x54bcbf<_0x4f2069['length'];_0x54bcbf++)_0x4f2069[_0x54bcbf]&&_0x213757['push'](_0x4f2069[_0x54bcbf]);return _0x213757;}['castInput'](_0x51bf12,_0x41178e){return _0x51bf12;}['tokenize'](_0x188324,_0x5e0420){return Array['from'](_0x188324);}['join'](_0x11bfdd){return _0x11bfdd['join']('');}['postProcess'](_0x18ce48,_0x5e07cc){return _0x18ce48;}get['useLongestToken'](){return!0x1;}['buildValues'](_0xa6b2bb,_0x3c6ea2,_0x1f1afe){const _0x3f2fe9=[];let _0x59da94;for(;_0xa6b2bb;)_0x3f2fe9['push'](_0xa6b2bb),_0x59da94=_0xa6b2bb['previousComponent'],delete _0xa6b2bb['previousComponent'],_0xa6b2bb=_0x59da94;_0x3f2fe9['reverse']();const _0x3394e8=_0x3f2fe9['length'];let _0x46b02a=0x0,_0x3366a1=0x0,_0x5cf239=0x0;for(;_0x46b02a<_0x3394e8;_0x46b02a++){const _0x390b6b=_0x3f2fe9[_0x46b02a];if(_0x390b6b['removed'])_0x390b6b['value']=this['join'](_0x1f1afe['slice'](_0x5cf239,_0x5cf239+_0x390b6b['count'])),_0x5cf239+=_0x390b6b['count'];else{if(!_0x390b6b['added']&&this['useLongestToken']){let _0x3d6bf8=_0x3c6ea2['slice'](_0x3366a1,_0x3366a1+_0x390b6b['count']);_0x3d6bf8=_0x3d6bf8['map'](function(_0x2a2b49,_0x1c0c33){const _0x421386=_0x1f1afe[_0x5cf239+_0x1c0c33];return _0x421386['length']>_0x2a2b49['length']?_0x421386:_0x2a2b49;}),_0x390b6b['value']=this['join'](_0x3d6bf8);}else _0x390b6b['value']=this['join'](_0x3c6ea2['slice'](_0x3366a1,_0x3366a1+_0x390b6b['count']));_0x3366a1+=_0x390b6b['count'],_0x390b6b['added']||(_0x5cf239+=_0x390b6b['count']);}}return _0x3f2fe9;}}class ArrayDiff extends Diff{['tokenize'](_0x8b9582){return _0x8b9582['slice']();}['join'](_0x3d3adb){return _0x3d3adb;}['removeEmpty'](_0x56a7fc){return _0x56a7fc;}}const arrayDiff=new ArrayDiff();function diffArrays(_0x175995,_0x3d1f17,_0x2d303e){return arrayDiff['diff'](_0x175995,_0x3d1f17,_0x2d303e);}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',(_0x3c4e38,_0x3c91e7)=>{_0x3c91e7['on']('ready',()=>{this['_integrateEditor'](_0x3c91e7);});});}get['editor'](){if(this['context']instanceof Editor)return this['context'];{const _0x3ac786=this['context']['editors']['first'];if(!_0x3ac786)throw new CKEditorError('documentcompare-no-editor',this);return _0x3ac786;}}['getDiff'](_0x1bc20b,_0x12942a,_0x3d650c={'anchor':'main','markDeletions':!0x1}){let _0x1ce450,_0x363565;const _0x55b430=this['editor'];if('string'==typeof _0x3d650c['anchor']){const _0x40b38f=_0x55b430['model']['document']['getRoot'](_0x3d650c['anchor']);if(!_0x40b38f)throw new CKEditorError('documentcompare-compare-no-root',this,{'anchor':_0x3d650c['anchor']});_0x1ce450=_0x40b38f,_0x363565=_0x55b430['model']['createPositionAt'](_0x40b38f,0x0);}else _0x1ce450=_0x3d650c['anchor']['clone'](),_0x363565=_0x3d650c['anchor']['clone']();const _0x79056d=_0x55b430['data']['parse'](_0x1bc20b,_0x1ce450),_0x2ed13e=_0x55b430['data']['parse'](_0x12942a,_0x1ce450);return new DocumentDiff(_0x79056d,_0x2ed13e,_0x55b430,{'anchor':_0x363565,'markDeletions':_0x3d650c['markDeletions']});}['isMarkedRemoveOperation'](_0x3a72ae){return'marker'==_0x3a72ae['type']&&_0x3a72ae['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x4dd0f9){_0x4dd0f9['conversion']['for']('upcast')['add'](_0x383c6b=>{_0x383c6b['on']('element',(_0x50c5da,_0x18c9c7,_0x3a7249)=>{if(_0x18c9c7['modelRange'])for(const _0x56764e of _0x18c9c7['modelRange']['getItems']({'shallow':!0x0})){if(_0x56764e['is']('$textProxy'))continue;const _0x2ace1a=_0x18c9c7['viewItem']['getAttribute'](DATA_ID_VIEW_ATTRIBUTE);_0x2ace1a&&_0x3a7249['writer']['setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x2ace1a,_0x56764e);}},{'priority':'lowest'});}),_0x4dd0f9['model']['schema']['addAttributeCheck'](()=>!0x0,DATA_ID_MODEL_ATTRIBUTE);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x43db0c,_0x4e1031,_0x136719,_0x300d23){this['_editor']=_0x136719,this['_markDeletions']=!!_0x300d23['markDeletions'],this['_anchor']=_0x300d23['anchor'];const _0x574925=this['_tokenizeModel'](_0x43db0c),_0x5aaf7d=this['_tokenizeModel'](_0x4e1031);this['_diffItems']=this['_diffModelTokens'](_0x574925,_0x5aaf7d),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x43db0c['markers'],_0x4e1031['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x65fa51=this['_editor']['model']['document'],_0x3a90fe=[];let _0x109e02=_0x65fa51['version'];for(const _0x47f4d3 of this['_operationsData'])switch(_0x47f4d3['type']){case'attribute':{const _0x336a17=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47f4d3['path']),_0x3fbcde=_0x336a17['getShiftedBy'](_0x47f4d3['howMany']),_0x55a927=new ModelRange(_0x336a17,_0x3fbcde),_0xa36b21=JSON['parse'](_0x47f4d3['oldValue']),_0x69c29e=JSON['parse'](_0x47f4d3['newValue']);_0x3a90fe['push'](new AttributeOperation(_0x55a927,_0x47f4d3['key'],_0xa36b21,_0x69c29e,_0x109e02++));break;}case'insert':{const _0x22d552=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47f4d3['path']),_0x4a68fa=this['_makeModelFromTokens'](_0x47f4d3['tokens']);_0x3a90fe['push'](new InsertOperation(_0x22d552,_0x4a68fa,_0x109e02++));break;}case'remove':{const _0x5ae396=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47f4d3['path']),_0x504d4e=new ModelPosition(_0x65fa51['graveyard'],[0x0]);_0x3a90fe['push'](new MoveOperation(_0x5ae396,_0x47f4d3['howMany'],_0x504d4e,_0x109e02++));break;}case'rename':{const _0x2576b3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47f4d3['path']);_0x3a90fe['push'](new RenameOperation(_0x2576b3,_0x47f4d3['oldName'],_0x47f4d3['newName'],_0x109e02++));break;}case'split':{const _0x57a2bb=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47f4d3['path']),_0x88302=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47f4d3['path']['slice'](0x0,-0x1));_0x88302['offset']++,_0x3a90fe['push'](new SplitOperation(_0x57a2bb,Number['NEGATIVE_INFINITY'],_0x88302,null,_0x109e02++));break;}case'merge':{const _0x1141aa=_0x47f4d3['path']['slice'](),_0x437a34=_0x1141aa['slice'](0x0,-0x1);_0x437a34[_0x437a34['length']-0x1]++,_0x437a34['push'](0x0);const _0x354eef=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x437a34),_0x4b0152=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1141aa),_0x48f98d=new ModelPosition(_0x65fa51['graveyard'],[0x0]);_0x3a90fe['push'](new MergeOperation(_0x354eef,Number['NEGATIVE_INFINITY'],_0x4b0152,_0x48f98d,_0x109e02++));break;}case'marker':case'markedRemove':{let _0x15ed92=null;if(_0x47f4d3['range']){const _0x48b850=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47f4d3['range']['start']),_0xb97f79=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47f4d3['range']['end']);_0x15ed92=new ModelRange(_0x48b850,_0xb97f79);}const _0x338873='marker'==_0x47f4d3['type']?_0x47f4d3['name']:'$markedRemove:'+uid();_0x3a90fe['push'](new MarkerOperation(_0x338873,null,_0x15ed92,_0x65fa51['model']['markers'],!0x0,_0x109e02++));break;}case'unwrap':{const _0x106ca6=_0x47f4d3['path']['slice']();_0x106ca6['push'](0x0);const _0x370c4b=_0x47f4d3['path']['slice'](),_0x1a404f=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x106ca6),_0xf84173=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x370c4b),_0xd257d4=new ModelPosition(_0x65fa51['graveyard'],[0x0]);_0x3a90fe['push'](new MoveOperation(_0x1a404f,_0x47f4d3['howMany'],_0xf84173,_0x109e02++)),_0x3a90fe['push'](new MoveOperation(_0xf84173['getShiftedBy'](_0x47f4d3['howMany']),0x1,_0xd257d4,_0x109e02++));break;}case'wrap':{const _0x521087=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47f4d3['range']['start']),_0x7935ce=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47f4d3['range']['end']),_0x2b3d6f=_0x47f4d3['token']['element']['_clone'](!0x1),_0x33cfb4=_0x47f4d3['range']['end']['slice']();_0x33cfb4['push'](0x0);const _0x59d597=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x33cfb4);_0x3a90fe['push'](new InsertOperation(_0x7935ce,_0x2b3d6f,_0x109e02++)),_0x3a90fe['push'](new MoveOperation(_0x521087,_0x7935ce['offset']-_0x521087['offset'],_0x59d597,_0x109e02++));break;}}return _0x3a90fe;}['_tokenizeModel'](_0x2c7492){const _0xa5d90a=[],_0x5ada0e=ModelRange['_createIn'](_0x2c7492),_0xb9f7e0=new ModelTreeWalker({'boundaries':_0x5ada0e});let _0x2ff009='',_0x401819=null;const _0x589e75=[''],_0x8ebc89=new Map();for(const _0x2e2fae of _0xb9f7e0)if('elementStart'==_0x2e2fae['type']||'elementEnd'==_0x2e2fae['type']){let _0x2a80f=_0x589e75[0x0];''!==_0x2ff009&&(_0xa5d90a['push'](...this['_makeTokensFromTextByWords'](_0x2ff009,_0x401819,_0x2a80f)),_0x2ff009='');const _0x1ea830=_0x2e2fae['item'];let _0x198a1c;_0x1ea830['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)?_0x198a1c=_0x1ea830['getAttribute'](DATA_ID_MODEL_ATTRIBUTE):'elementStart'==_0x2e2fae['type']?(_0x198a1c=makeUidForElement(_0x1ea830),_0x8ebc89['set'](_0x1ea830,_0x198a1c)):_0x198a1c=_0x8ebc89['get'](_0x1ea830);const _0x12b402=this['_getElementCategory'](_0x1ea830);'solid'==_0x12b402&&('elementStart'==_0x2e2fae['type']?(_0x2a80f=_0x198a1c,_0x589e75['unshift'](_0x2a80f)):_0x589e75['shift']());const _0x47f711={'type':'element','element':_0x1ea830,'elementId':_0x198a1c,'category':_0x12b402,'isStart':'elementStart'==_0x2e2fae['type'],'limitId':_0x2a80f};_0xa5d90a['push'](_0x47f711);}else''==_0x2ff009&&(_0x401819=_0x2e2fae['previousPosition']['clone']()),_0x2ff009+=_0x2e2fae['item']['data'];return''!==_0x2ff009&&_0xa5d90a['push'](...this['_makeTokensFromTextByWords'](_0x2ff009,_0x401819,_0x589e75[0x0])),_0xa5d90a;}['_makeTokensFromTextByWords'](_0x326b75,_0x24acbc,_0x5a33f9){const _0x512066=_0x326b75['matchAll'](/(\s)/g),_0x56ff38=Array['from'](_0x512066)['map'](_0x5ea43f=>_0x5ea43f['index']);_0x56ff38['push'](_0x326b75['length']),0x0==_0x56ff38[0x0]&&_0x56ff38['shift']();const _0x438fed=[],_0x1ebbb7=_0x24acbc['parent'];let _0x4344bc=0x0,_0x458c9d=_0x24acbc['offset'];for(let _0x224056=0x0;_0x224056<_0x56ff38['length'];_0x224056++)_0x438fed['push']({'type':'text','data':_0x326b75['slice'](_0x4344bc,_0x56ff38[_0x224056]),'parent':_0x1ebbb7,'offset':_0x458c9d,'limitId':_0x5a33f9}),_0x4344bc=_0x56ff38[_0x224056],_0x458c9d=_0x24acbc['offset']+_0x56ff38[_0x224056];return _0x438fed;}['_getElementCategory'](_0x375225){const _0x27ecf5=this['_editor']['model']['schema'];return _0x27ecf5['isLimit'](_0x375225)||_0x27ecf5['isContent'](_0x375225)||_0x27ecf5['isInline'](_0x375225)?'solid':_0x27ecf5['isBlock'](_0x375225)?'block':'container';}['_diffModelTokens'](_0x2bceed,_0xfb79e1){const _0x43299=diffArrays(_0x2bceed,_0xfb79e1,{'comparator':compareModelTokens});this['_handleUnclosedBlockOpeningTags'](_0x43299);const _0x4f783=_0x43299['flatMap'](_0x5943c9=>{const _0xe362ab=_0x5943c9['added']?'added':_0x5943c9['removed']?'removed':'unchanged';return _0x5943c9['value']['map'](_0x4877b7=>({'token':_0x4877b7,'change':_0xe362ab}));});let _0x4d2e9e=0x0;for(const _0x304946 of _0x4f783)'added'!=_0x304946['change']&&('unchanged'==_0x304946['change']&&(_0x304946['before']=_0x2bceed[_0x4d2e9e]),_0x4d2e9e++);return _0x4f783;}['_handleUnclosedBlockOpeningTags'](_0x53b193){for(let _0x5523ed=0x0;_0x5523ed<_0x53b193['length']-0x1;_0x5523ed++)if(_0x53b193[_0x5523ed]['removed']&&_0x53b193[_0x5523ed+0x1]['added']){const _0x1a07d7=this['_findUnclosedBlockOpeningToken'](_0x53b193[_0x5523ed]['value']);if(null!==_0x1a07d7){const _0x42bf4f=this['_findUnclosedBlockOpeningToken'](_0x53b193[_0x5523ed+0x1]['value']),_0x70b644=_0x53b193[_0x5523ed]['value']['splice'](_0x1a07d7),_0xae1b96=_0x53b193[_0x5523ed+0x1]['value']['splice'](_0x42bf4f),_0x21d0fb=[_0xae1b96['shift']()];_0x70b644['shift']();const _0x4a9126={'value':_0x70b644,'removed':!0x0},_0x50a8d3={'value':_0xae1b96,'added':!0x0},_0x18abb6={'value':_0x21d0fb};_0x53b193['splice'](_0x5523ed+0x2,0x0,_0x18abb6,_0x4a9126,_0x50a8d3);}}}['_findUnclosedBlockOpeningToken'](_0x213433){let _0x3330c3=0x0,_0xcb8284=-0x1;for(let _0x22603e=0x0;_0x22603e<_0x213433['length'];_0x22603e++){const _0x896a1a=_0x213433[_0x22603e];'element'==_0x896a1a['type']&&'block'==_0x896a1a['category']&&(_0x3330c3+=_0x896a1a['isStart']?0x1:-0x1,_0x896a1a['isStart']&&(_0xcb8284=_0x22603e));}return 0x0===_0x3330c3?null:_0xcb8284;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x409fc1=0x0;_0x409fc1<this['_diffItems']['length'];_0x409fc1++){const _0x33e90a=this['_diffItems'][_0x409fc1]['change'],_0x552cfc=[];_0x552cfc['push'](this['_diffItems'][_0x409fc1]);let _0x2fe4e9=_0x409fc1+0x1;for(;this['_diffItems'][_0x2fe4e9]&&this['_diffItems'][_0x2fe4e9]['change']==_0x33e90a;)_0x552cfc['push'](this['_diffItems'][_0x2fe4e9]),_0x2fe4e9++,_0x409fc1++;const _0x1ceedd=_0x552cfc['map'](_0x275b2f=>_0x275b2f['token']);if('unchanged'==_0x33e90a)_0x552cfc['map'](_0x36475d=>_0x36475d['before'])['forEach'](_0x354159=>this['_traverseOverItem'](_0x354159));else{if('removed'==_0x33e90a){if(this['_markDeletions']){const _0x12a00b=this['_path']['slice']();_0x1ceedd['forEach'](_0x1f0bf2=>this['_traverseOverItem'](_0x1f0bf2));const _0x24c0c5=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x12a00b,'end':_0x24c0c5}});}else this['_handleChanged'](_0x1ceedd,!0x0,this['_path']['slice']());}else{const _0x13248e=_0x1ceedd['filter'](_0x3b1075=>'element'!=_0x3b1075['type']||'container'!=_0x3b1075['category']);this['_handleChanged'](_0x13248e,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x4aa3f1=0x0;_0x4aa3f1<this['_diffItems']['length'];_0x4aa3f1++){const _0x274031=this['_diffItems'][_0x4aa3f1]['change'],_0x10903f=[];_0x10903f['push'](this['_diffItems'][_0x4aa3f1]);let _0xe17b01=_0x4aa3f1+0x1;for(;this['_diffItems'][_0xe17b01]&&this['_diffItems'][_0xe17b01]['change']==_0x274031;)_0x10903f['push'](this['_diffItems'][_0xe17b01]),_0xe17b01++,_0x4aa3f1++;const _0x47a7ed=_0x10903f['map'](_0x598b4d=>_0x598b4d['token']);if('unchanged'==_0x274031){const _0x462035=_0x10903f['map'](_0xee1faa=>_0xee1faa['before']);this['_handleUnchanged'](_0x462035,_0x47a7ed);}else('removed'!=_0x274031||this['_markDeletions'])&&_0x47a7ed['forEach'](_0x27b9f9=>{this['_traverseOverItem'](_0x27b9f9);});}}['_calculateMarkersOperationsData'](_0x4a2fc4,_0x5576e1){const _0x5ae575={};for(const [_0x3871e5]of _0x4a2fc4)_0x5ae575[_0x3871e5]=null;for(const [_0xa69e23,_0x41c5b9]of _0x5576e1)_0x5ae575[_0xa69e23]=_0x41c5b9;const _0xbc7468=Object['entries'](_0x5ae575)['map'](([_0x2767a4,_0x1ed651])=>({'type':'marker','name':_0x2767a4,'range':_0x1ed651?{'start':_0x1ed651['start']['path']['slice'](),'end':_0x1ed651['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0xbc7468);}['_handleUnwraps'](){const _0x1ac8a2=new Map(),_0x22e6f6=[],_0x37364a=[0x0];let _0x35842d=this['_diffItems']['length']+0x1;for(let _0x3d4d01=this['_diffItems']['length']-0x1;_0x3d4d01>=0x0;_0x3d4d01--){const {token:_0x4d0c15,before:_0x1afbce,change:_0x4be477}=this['_diffItems'][_0x3d4d01];if('removed'!=_0x4be477&&(_0x35842d=_0x3d4d01),'element'!=_0x4d0c15['type']||'container'!=_0x4d0c15['category']||'added'==_0x4be477)continue;const _0x163d12=_0x1afbce?_0x1afbce['element']:_0x4d0c15['element'];if(_0x4d0c15['isStart']){const _0xf13a31=_0x1ac8a2['get'](_0x163d12),_0x2e6d30=this['_diffItems'][_0xf13a31];('removed'==_0x4be477||'removed'==_0x2e6d30['change'])&&_0x35842d<_0xf13a31&&(this['_operationsData']['push']({'type':'unwrap','path':_0x163d12['getPath'](),'howMany':_0x163d12['maxOffset']+_0x37364a[0x0]}),_0x37364a['shift'](),_0x37364a[0x0]+=_0x163d12['maxOffset']-0x1,_0x22e6f6['push'](_0x3d4d01),_0x22e6f6['push'](_0xf13a31));}else _0x1ac8a2['set'](_0x163d12,_0x3d4d01),_0x37364a['unshift'](0x0);}_0x22e6f6['sort']((_0x2ffe69,_0x499a0f)=>_0x499a0f-_0x2ffe69),_0x22e6f6['forEach'](_0x55ab5f=>{const _0x341d08=this['_diffItems'][_0x55ab5f];'removed'==_0x341d08['change']?this['_diffItems']['splice'](_0x55ab5f,0x1):(_0x341d08['change']='added',delete _0x341d08['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x529b89=[];for(let _0x39740c=0x0;_0x39740c<this['_diffItems']['length'];_0x39740c++){const {change:_0xa9117,token:_0x2e95e9}=this['_diffItems'][_0x39740c];if('added'==_0xa9117&&'element'==_0x2e95e9['type']&&'container'==_0x2e95e9['category']){if(_0x2e95e9['isStart'])_0x529b89['push'](this['_path']['slice']());else{if(!_0x2e95e9['isStart']){const _0x3df6a9=_0x529b89['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x3df6a9,'end':this['_path']['slice']()},'token':_0x2e95e9}),this['_path'][this['_path']['length']-0x1]=_0x3df6a9[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0xa9117||this['_markDeletions'])&&this['_traverseOverItem'](_0x2e95e9);}}['_handleUnchanged'](_0x5a0d92,_0x5dac9e){for(let _0x22f877=0x0;_0x22f877<_0x5a0d92['length'];_0x22f877++){const _0x559584=_0x5a0d92[_0x22f877];if('element'==_0x559584['type']&&_0x559584['isStart']){const _0x11e7c0=_0x5dac9e[_0x22f877];'block'==_0x559584['category']&&this['_handleElementRename'](_0x559584['element'],_0x11e7c0['element'],this['_path']),this['_handleElementAttributeChanges'](_0x559584['element'],_0x11e7c0['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x11e7c0);}else{if('element'!=_0x559584['type']||_0x559584['isStart']){if('text'==_0x559584['type']){const _0x3240b7=this['_path']['slice'](),_0x2db1de=[],_0x28f896=[];for(;_0x5a0d92[_0x22f877]&&'text'==_0x5a0d92[_0x22f877]['type'];)_0x2db1de['push'](_0x5a0d92[_0x22f877]),_0x28f896['push'](_0x5dac9e[_0x22f877]),this['_path'][this['_path']['length']-0x1]+=_0x5a0d92[_0x22f877]['data']['length'],_0x22f877++;_0x22f877--,this['_handleTextAttributeChanges'](_0x2db1de,_0x28f896,_0x3240b7);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x2b4a6d,_0x8e0196,_0x4a0711){const _0x1a0dc7=[],_0x4f09a5=[],_0xfe6d59=_0x4a0711['slice']();for(let _0x55cc1a=0x0;_0x55cc1a<_0x2b4a6d['length'];_0x55cc1a++){const _0x36ad04=_0x2b4a6d[_0x55cc1a],_0x14eca9=_0x4a0711['slice']();if('element'!=_0x36ad04['type']||_0x36ad04['isStart'])'element'==_0x36ad04['type']&&_0x36ad04['isStart']?(_0x4a0711['push'](0x0),_0x8e0196||this['_parents']['push'](_0x36ad04),_0x4f09a5['push']({'before':_0x14eca9,'after':_0x4a0711['slice'](),'index':_0x55cc1a})):_0x4a0711[_0x4a0711['length']-0x1]+=_0x36ad04['data']['length'];else{let _0x57c1d8;_0x4a0711['pop'](),_0x4a0711[_0x4a0711['length']-0x1]++,_0x57c1d8=_0x8e0196?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x4f09a5['length']?_0x4f09a5['pop']():_0x1a0dc7['push']({'before':_0x14eca9,'after':_0x4a0711['slice'](),'index':_0x55cc1a,'related':_0x57c1d8});}}if(_0x4f09a5['length']!==_0x1a0dc7['length'])throw new CKEditorError('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x2b4a6d,'isRemove':_0x8e0196});const _0x5b4499=[{'after':_0xfe6d59['slice'](),'index':-0x1},..._0x1a0dc7,..._0x4f09a5,{'before':_0x4a0711['slice'](),'index':_0x2b4a6d['length']}];if(_0x8e0196){for(let _0x1fe0e6=_0x5b4499['length']-0x1;_0x1fe0e6>=0x1;_0x1fe0e6--){const _0xab32f6=_0x5b4499[_0x1fe0e6-0x1]['after'],_0x2cce2a=_0x5b4499[_0x1fe0e6]['before'],_0x1232e0=_0x2cce2a[_0x2cce2a['length']-0x1]-_0xab32f6[_0xab32f6['length']-0x1];_0x1232e0&&(this['_operationsData']['push']({'type':'remove','path':_0xab32f6,'howMany':_0x1232e0}),_0x2cce2a[_0x2cce2a['length']-0x1]-=_0x1232e0);}for(const {before:_0x3a98c7}of _0x1a0dc7)this['_operationsData']['push']({'type':'merge','path':_0x3a98c7});}else for(let _0x409027=0x0;_0x409027<_0x5b4499['length']-0x1;_0x409027++){const _0x4b6b14=_0x5b4499[_0x409027]['after'],_0x139528=_0x5b4499[_0x409027+0x1]['before'],_0x391b3a=_0x5b4499[_0x409027]['index']+0x1,_0x30a795=_0x5b4499[_0x409027+0x1]['index'];if(_0x391b3a!==_0x30a795&&this['_operationsData']['push']({'type':'insert','path':_0x4b6b14,'tokens':_0x2b4a6d['slice'](_0x391b3a,_0x30a795)}),_0x409027<_0x1a0dc7['length']){this['_operationsData']['push']({'type':'split','path':_0x139528});const _0x49e25d=_0x2b4a6d[_0x4f09a5[_0x4f09a5['length']-0x1-_0x409027]['index']],_0x3b572f=_0x1a0dc7[_0x409027]['after'],_0x2cf00d=_0x1a0dc7[_0x409027]['related']['element'];this['_handleElementRename'](_0x2cf00d,_0x49e25d['element'],_0x3b572f),this['_handleElementAttributeChanges'](_0x2cf00d,_0x49e25d['element'],_0x3b572f);}}}['_traverseOverItem'](_0x1b4794){'element'==_0x1b4794['type']&&_0x1b4794['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x1b4794)):'element'!=_0x1b4794['type']||_0x1b4794['isStart']?'text'==_0x1b4794['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x1b4794['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x15141c,_0x18fb77,_0xa44004){_0x15141c['name']!=_0x18fb77['name']&&this['_operationsData']['push']({'type':'rename','path':_0xa44004['slice'](),'oldName':_0x15141c['name'],'newName':_0x18fb77['name']});}['_handleElementAttributeChanges'](_0x42b613,_0x4d5135,_0x5d6d2e){const _0x5a2d56=this['_getAttributeChanges'](_0x42b613['getAttributes'](),_0x4d5135['getAttributes']());for(const _0xc1b272 in _0x5a2d56){const {oldValue:_0x1ee47e,newValue:_0x3d056d}=_0x5a2d56[_0xc1b272];this['_operationsData']['push']({'type':'attribute','path':_0x5d6d2e['slice'](),'howMany':0x1,'key':_0xc1b272,'oldValue':_0x1ee47e,'newValue':_0x3d056d});}}['_handleTextAttributeChanges'](_0x40fccd,_0x1633f0,_0x34af71){const _0x33e15a=this['_operationsData'],_0x4f3c1f=_0x40fccd[0x0]['parent'],_0x43e239=_0x40fccd[0x0]['offset'],_0x146fde=_0x1633f0[0x0]['parent'],_0x5e3a79=_0x1633f0[0x0]['offset'],_0x2efe53=_0x40fccd['reduce']((_0x7f86b5,_0x1aa56d)=>_0x7f86b5+_0x1aa56d['data']['length'],0x0),_0x49adeb=this['_getAttrsForOffsets'](_0x4f3c1f,_0x43e239,_0x2efe53),_0x13df35=this['_getAttrsForOffsets'](_0x146fde,_0x5e3a79,_0x2efe53),_0x3558be={};for(let _0x12f3fd=0x0;_0x12f3fd<_0x2efe53;_0x12f3fd++){const _0x64c6f3=_0x49adeb[_0x43e239+_0x12f3fd],_0x183cba=_0x13df35[_0x5e3a79+_0x12f3fd],_0x371d26=this['_getAttributeChanges'](_0x64c6f3,_0x183cba);for(const _0x12459a in _0x3558be)_0x371d26[_0x12459a]||_0x812b85(_0x12459a);for(const _0x1ce66e in _0x371d26){const {oldValue:_0xbbb4c8,newValue:_0x190c83}=_0x371d26[_0x1ce66e],_0x11d10d=_0x3558be[_0x1ce66e];_0x11d10d?_0x11d10d['oldValue']==_0xbbb4c8&&_0x11d10d['newValue']==_0x190c83?_0x11d10d['length']++:(_0x812b85(_0x1ce66e),_0x3558be[_0x1ce66e]={'oldValue':_0xbbb4c8,'newValue':_0x190c83,'start':_0x12f3fd,'length':0x1}):_0x3558be[_0x1ce66e]={'oldValue':_0xbbb4c8,'newValue':_0x190c83,'start':_0x12f3fd,'length':0x1};}}for(const _0x1924dc in _0x3558be)_0x812b85(_0x1924dc);function _0x812b85(_0x2b6a91){const _0x334793=_0x3558be[_0x2b6a91],_0xcece9a=_0x34af71['slice']();_0xcece9a[_0xcece9a['length']-0x1]+=_0x334793['start'],_0x33e15a['push']({'type':'attribute','path':_0xcece9a,'howMany':_0x334793['length'],'key':_0x2b6a91,'oldValue':_0x334793['oldValue'],'newValue':_0x334793['newValue']}),delete _0x3558be[_0x2b6a91];}}['_getAttributeChanges'](_0x303642,_0x594fab){const _0x3961bb={};for(const [_0xeae978,_0x5b4d01]of _0x303642)_0x3961bb[_0xeae978]={'oldValue':JSON['stringify'](_0x5b4d01),'newValue':'null'};for(const [_0x5e2ebb,_0x57b04f]of _0x594fab){const _0x32e417=JSON['stringify'](_0x57b04f);_0x3961bb[_0x5e2ebb]?_0x3961bb[_0x5e2ebb]['oldValue']==_0x32e417?delete _0x3961bb[_0x5e2ebb]:_0x3961bb[_0x5e2ebb]['newValue']=_0x32e417:_0x3961bb[_0x5e2ebb]={'oldValue':'null','newValue':_0x32e417};}return delete _0x3961bb[DATA_ID_MODEL_ATTRIBUTE],_0x3961bb;}['_getAttrsForOffsets'](_0xeb89d3,_0x2d9bf2,_0x23bce7){const _0x4a2036=new Array(_0x2d9bf2+_0x23bce7);let _0x436895=_0xeb89d3['getChildAtOffset'](_0x2d9bf2),_0x474800=_0x436895['startOffset'];for(;_0x436895&&_0x474800<_0x2d9bf2+_0x23bce7;){const _0x24dc61=Array['from'](_0x436895['getAttributes']());_0x4a2036['fill'](_0x24dc61,_0x474800,_0x474800+_0x436895['offsetSize']),_0x474800+=_0x436895['offsetSize'],_0x436895=_0x436895['nextSibling'];}return _0x4a2036;}['_getPositionFromAnchorAndPath'](_0x26e4c0,_0x16b6c4){const _0x102a88=[..._0x26e4c0['path']['slice'](0x0,-0x1),_0x26e4c0['offset']+_0x16b6c4[0x0],..._0x16b6c4['slice'](0x1)];return new ModelPosition(_0x26e4c0['root'],_0x102a88);}['_makeModelFromTokens'](_0x14d7ca){const _0x5a8348=[];let _0x572daa=null;for(const _0xe1ff22 of _0x14d7ca)if('element'!=_0xe1ff22['type']||_0xe1ff22['isStart']||_0x572daa!=_0xe1ff22['element']){if(!_0x572daa){if('text'==_0xe1ff22['type']){const _0x325cf7=ModelPosition['_createAt'](_0xe1ff22['parent'],_0xe1ff22['offset']),_0x14b08c=ModelRange['_createFromPositionAndShift'](_0x325cf7,_0xe1ff22['data']['length']),_0x154eaa=Array['from'](_0x14b08c['getItems']())['map'](_0x3d4de4=>new ModelText(_0x3d4de4['data'],_0x3d4de4['getAttributes']()));_0x5a8348['push'](..._0x154eaa);}else{_0x572daa=_0xe1ff22['element'];const _0x26411e=_0xe1ff22['element']['_clone'](!0x0);_0x26411e['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);for(const _0x35d299 of this['_editor']['model']['createRangeIn'](_0x26411e)['getItems']())_0x35d299['is']('element')&&_0x35d299['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x5a8348['push'](_0x26411e);}}}else _0x572daa=null;return _0x5a8348;}}function compareModelTokens(_0x351660,_0x46d7ca){return _0x351660['type']===_0x46d7ca['type']&&(_0x351660['limitId']===_0x46d7ca['limitId']&&('text'==_0x351660['type']?_0x351660['data']==_0x46d7ca['data']:compareModelElementTokens(_0x351660,_0x46d7ca)));}function compareModelElementTokens(_0x3c80e4,_0x198738){return _0x3c80e4['isStart']==_0x198738['isStart']&&((!_0x3c80e4['isStart']||_0x3c80e4['elementId']==_0x198738['elementId'])&&(_0x3c80e4['category']==_0x198738['category']&&('block'==_0x3c80e4['category']||('container'!=_0x3c80e4['category']||_0x3c80e4['elementId']==_0x198738['elementId'])&&_0x3c80e4['element']['name']==_0x198738['element']['name'])));}function makeUidForElement(_0x3dfe85){return hashObject({'name':_0x3dfe85['name'],...Object['fromEntries'](_0x3dfe85['getAttributes']())});}function getSuggestionPartsFromReply({editor:_0x3070e4,changeGroups:_0x55604f,documentContextContent:_0x3ad30e,showDiff:_0x3cb100,trimUnchanged:_0xf4621b=!0x0}){return _0x55604f['map'](_0x41c050=>{const _0x476624=new Document([]),_0x58ca3c=new Document([]);for(const _0x49b58c of _0x41c050['changes'])if(_0x3cb100&&'removed'==_0x49b58c['type']||_0x58ca3c['children']['push'](_0x49b58c['node']['cloneNode'](!0x0)),'new'!=_0x49b58c['type']&&(_0x3cb100||'removed'!=_0x49b58c['type'])){const _0x3518e8=findOne(_0x15673d=>getAttribute(_0x15673d,'data-id')==_0x49b58c['id'],_0x3ad30e,!0x0);_0x3518e8&&_0x476624['children']['push'](_0x3518e8['cloneNode'](!0x0));}const {content:_0x42a365,hasChanges:_0x3e9e7e}=passThroughEditorDataPipeline(_0x3070e4,_0x476624,_0x58ca3c,_0x3cb100,_0xf4621b);return{'type':_0x41c050['changes'][0x0]['type'],'index':_0x41c050['index'],'content':_0x42a365,'hasChanges':_0x3e9e7e};});}function passThroughEditorDataPipeline(_0xf7e6c5,_0x4c6fc4,_0x309483,_0x59f947,_0x24a533=!0x0){const _0x878b6f=_0xf7e6c5['plugins']['get']('DocumentCompare'),_0xdb8bff=serialize(_0x4c6fc4),_0x1cecdd=serialize(_0x309483),_0x1b263e=_0xf7e6c5['data']['parse'](_0xdb8bff,'$root'),_0x2ab8db=_0xf7e6c5['model']['createPositionAt'](_0x1b263e,0x0),_0x2dfb1a=_0x878b6f['getDiff'](_0xdb8bff,_0x1cecdd,{'anchor':_0x2ab8db,'markDeletions':_0x59f947})['getOperations']();if(0x0==_0x2dfb1a['length'])return{'content':_0x4c6fc4['cloneNode'](!0x0),'hasChanges':!0x1};if(_0x59f947?applyOperationsAndDiffMarkers(_0x2dfb1a,_0x1b263e,_0xf7e6c5):_0xf7e6c5['model']['change'](_0x2d1d08=>{for(const _0x429011 of _0x2dfb1a)if('remove'==_0x429011['type']){const _0x432b06=_0x429011['sourcePosition'],_0x28303c=_0x429011['howMany'],_0x22f0a9=new _DetachOperation(_0x432b06,_0x28303c);_0x2d1d08['batch']['addOperation'](_0x22f0a9),_0xf7e6c5['model']['applyOperation'](_0x22f0a9);}else{if('marker'==_0x429011['type']){const _0x4e35d8=_0x429011['name'],_0x1a1274=_0x429011['newRange'];null!==_0x1a1274?_0x1b263e['markers']['set'](_0x4e35d8,_0x1a1274):_0x1b263e['markers']['delete'](_0x4e35d8);}else _0x429011['baseVersion']=null,_0x429011['isDocumentOperation']=!0x1,_0x2d1d08['batch']['addOperation'](_0x429011),_0xf7e6c5['model']['applyOperation'](_0x429011);}}),_0x24a533){const _0x4c712c=getMinimalSelection(_0xf7e6c5,_0x2dfb1a,_0x1b263e);expandSelectionWithContext(_0xf7e6c5['model'],_0x4c712c),shrinkFragmentToSelection(_0xf7e6c5['model'],_0x4c712c);}return{'content':parse$2(_0xf7e6c5['data']['stringify'](_0x1b263e,{'showSuggestionHighlights':!0x0})),'hasChanges':!0x0};}function applyOperationsAndDiffMarkers(_0x5988db,_0x3fb365,_0x1662f0){if(0x0==_0x5988db['length'])return;const _0x5210ca=_0x1662f0['plugins']['get']('DocumentCompare'),_0x2a0f0b=_0x1662f0['plugins']['get']('SuggestionsConversion');_0x1662f0['model']['change'](_0x3d8376=>{const _0x34669f=new Set();for(let _0x18a9b2=0x0;_0x18a9b2<_0x5988db['length'];_0x18a9b2++){const _0x18fc2f=_0x5988db[_0x18a9b2];if(_0x18fc2f['baseVersion']=null,_0x18fc2f['isDocumentOperation']=!0x1,_0x5210ca['isMarkedRemoveOperation'](_0x18fc2f)){const _0xb878b5=fixElementSuggestionRange(_0x18fc2f['newRange'],_0x1662f0['model']),_0x59e761='suggestion:deletion:'+uid()+':$aiSuggestion';_0x3fb365['markers']['set'](_0x59e761,_0xb878b5);}else switch(_0x18fc2f['type']){case'rename':{if(_0x18fc2f['oldName']==_0x18fc2f['newName'])break;_0x3d8376['batch']['addOperation'](_0x18fc2f),_0x1662f0['model']['applyOperation'](_0x18fc2f);const _0xc7f7ca='$elementName',_0x4571dd=_0x18fc2f['position'],_0x27ea22=_0x1662f0['model']['createRange'](_0x4571dd,_0x1662f0['model']['createPositionAt'](_0x4571dd['nodeAfter'],'end')),_0x2238c3='suggestion:attribute:'+_0xc7f7ca+':'+uid()+':$aiSuggestion';_0x3fb365['markers']['set'](_0x2238c3,_0x27ea22);break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{if(_0x18fc2f['oldValue']==_0x18fc2f['newValue'])break;_0x3d8376['batch']['addOperation'](_0x18fc2f),_0x1662f0['model']['applyOperation'](_0x18fc2f);const _0x4b049c=_0x18fc2f['key'];if(!_0x2a0f0b['isRegisteredAttribute'](_0x4b049c))break;const _0x397d5c=fixElementSuggestionRange(_0x18fc2f['range'],_0x1662f0['model']),_0x3462dc='suggestion:attribute:'+_0x4b049c+':'+uid()+':$aiSuggestion';_0x3fb365['markers']['set'](_0x3462dc,_0x397d5c);break;}case'insert':{_0x3d8376['batch']['addOperation'](_0x18fc2f),_0x1662f0['model']['applyOperation'](_0x18fc2f);if(_0x5988db[_0x18a9b2+0x1]&&'move'==_0x5988db[_0x18a9b2+0x1]['type']){transformMarkers(_0x3fb365,_0x18fc2f);break;}const _0x30a5ba=_0x18fc2f['position'],_0xcf3bb4=_0x18fc2f['howMany'],_0x1764b1=fixElementSuggestionRange(_0x1662f0['model']['createRange'](_0x30a5ba,_0x30a5ba['getShiftedBy'](_0xcf3bb4)),_0x1662f0['model']),_0x197c68='suggestion:insertion:'+uid()+':$aiSuggestion';_0x3fb365['markers']['set'](_0x197c68,_0x1764b1);break;}case'split':{_0x3d8376['batch']['addOperation'](_0x18fc2f),_0x1662f0['model']['applyOperation'](_0x18fc2f);const _0x25393b=_0x18fc2f['splitPosition'],_0x42e02e=_0x18fc2f['moveTargetPosition'],_0x20bdcc=_0x1662f0['model']['createRange'](_0x25393b,_0x42e02e),_0x3136ab='suggestion:insertion:'+uid()+':$aiSuggestion';_0x3fb365['markers']['set'](_0x3136ab,_0x20bdcc);break;}case'move':{_0x3d8376['batch']['addOperation'](_0x18fc2f),_0x1662f0['model']['applyOperation'](_0x18fc2f),_0x5988db[_0x18a9b2-0x1]&&'insert'==_0x5988db[_0x18a9b2-0x1]['type']&&transformMarkers(_0x3fb365,_0x18fc2f);const _0x1267a4=_0x18fc2f['getMovedRangeStart'](),_0x465b31=_0x18fc2f['howMany'];for(let _0x593a3e=0x0;_0x593a3e<_0x465b31;_0x593a3e++){const _0x2d1003=_0x1267a4['getShiftedBy'](_0x593a3e)['nodeAfter'];_0x34669f['add'](_0x2d1003);}break;}case'remove':{const _0x302ce1=_0x18fc2f['sourcePosition'],_0x4450b2=_0x18fc2f['howMany'],_0x5e9141=new _DetachOperation(_0x302ce1,_0x4450b2);_0x3d8376['batch']['addOperation'](_0x5e9141),_0x1662f0['model']['applyOperation'](_0x5e9141);break;}}}for(const _0x5d31bf of _0x34669f){const _0x17397a=_0x1662f0['model']['createRangeOn'](_0x5d31bf),_0x3db101='suggestion:formatBlock:$fakeWrap:'+uid()+':$aiSuggestion';_0x3fb365['markers']['set'](_0x3db101,fixElementSuggestionRange(_0x17397a,_0x1662f0['model']));}});}function transformMarkers(_0x3f4602,_0x19f141){for(const [_0x3237c6,_0x59f368]of _0x3f4602['markers']){const _0x1f9113=ModelRange['_createFromRanges'](_0x59f368['getTransformedByOperation'](_0x19f141));_0x3f4602['markers']['set'](_0x3237c6,_0x1f9113);}}function getMinimalSelection(_0x31cd29,_0x498a6d,_0x50fba3){const _0x5b8386=_0x31cd29['plugins']['get']('DocumentCompare');let _0x31e562=_0x31cd29['model']['createPositionAt'](_0x50fba3,Number['POSITIVE_INFINITY']),_0x3ac3fc=_0x31cd29['model']['createPositionAt'](_0x50fba3,0x0);for(const _0x2743d1 of _0x498a6d){let _0x2d3b1c,_0x2379b9;if(_0x5b8386['isMarkedRemoveOperation'](_0x2743d1))_0x2d3b1c=_0x2743d1['newRange']['start'],_0x2379b9=_0x2743d1['newRange']['end'];else switch(_0x31e562=_0x31e562['getTransformedByOperation'](_0x2743d1),_0x3ac3fc=_0x3ac3fc['getTransformedByOperation'](_0x2743d1),_0x2743d1['type']){case'rename':_0x2d3b1c=_0x2743d1['position'],_0x2379b9=_0x2d3b1c['getShiftedBy'](0x1);break;case'addAttribute':case'removeAttribute':case'changeAttribute':_0x2d3b1c=_0x2743d1['range']['start'],_0x2379b9=_0x2743d1['range']['end'];break;case'insert':_0x2d3b1c=_0x2743d1['position'],_0x2379b9=_0x2d3b1c['getShiftedBy'](_0x2743d1['howMany']);break;case'split':_0x2d3b1c=_0x2743d1['splitPosition'],_0x2379b9=_0x2743d1['moveTargetPosition'];break;case'merge':{const _0x36871a=_0x2743d1['targetPosition']['path']['slice'](0x0,-0x1);_0x2d3b1c=_0x31cd29['model']['createPositionFromPath'](_0x50fba3,_0x36871a),_0x2379b9=_0x2d3b1c['getShiftedBy'](0x1);break;}case'remove':{const _0x30f963=_0x2743d1['howMany'],_0x5a516a=_0x2743d1['sourcePosition']['_getTransformedByInsertion'](_0x2743d1['targetPosition'],_0x30f963),_0xbb4051=_0x2743d1['getMovedRangeStart']();'remove'==_0x2743d1['type']?(_0x2d3b1c=_0x5a516a,_0x2379b9=_0x5a516a):(_0x2d3b1c=_0xbb4051,_0x2379b9=_0xbb4051['getShiftedBy'](_0x30f963));break;}}_0x2d3b1c&&_0x2d3b1c['isBefore'](_0x31e562)&&(_0x31e562=_0x2d3b1c['clone'](),_0x31e562['stickiness']='toNone'),_0x2379b9&&_0x2379b9['isAfter'](_0x3ac3fc)&&(_0x3ac3fc=_0x2379b9['clone'](),_0x3ac3fc['stickiness']='toNone');}return _0x31cd29['model']['createSelection'](_0x31cd29['model']['createRange'](_0x31e562,_0x3ac3fc));}function expandSelectionWithContext(_0x5ed425,_0x4fe3ba){expandSelection(_0x5ed425,_0x4fe3ba,'forward');const _0x9b5ffb=_0x4fe3ba['getFirstRange']();_0x4fe3ba['setTo']([]),_0x4fe3ba['setTo'](_0x9b5ffb,{'backward':!0x0}),expandSelection(_0x5ed425,_0x4fe3ba,'backward');}function expandSelection(_0x4fe627,_0x33a126,_0x531821){let _0x27f13b=0x14;for(;_0x27f13b;){_0x4fe627['modifySelection'](_0x33a126,{'unit':'word','direction':_0x531821}),_0x27f13b--;const _0x4973ea=_0x33a126['focus']['forward'==_0x531821?'nodeBefore':'nodeAfter'];if(_0x4973ea&&_0x4973ea['is']('element')&&_0x4fe627['schema']['isBlock'](_0x4973ea)&&_0x4fe627['schema']['isObject'](_0x4973ea))break;}}function shrinkFragmentToSelection(_0x5bafd2,_0x2a6ad8){const _0x529338=_0x2a6ad8['getFirstRange']()['start'];let _0x25d2c0=_0x2a6ad8['getFirstRange']()['end'];const _0x1d062b=_0x529338['root'];(_0x25d2c0['textNode']||_0x25d2c0['nodeAfter']&&_0x25d2c0['nodeAfter']['is']('$text'))&&(_insertIntoModelNodeList(_0x25d2c0,'...'),_0x25d2c0=_0x25d2c0['getShiftedBy'](0x3)),(_0x529338['textNode']||_0x529338['nodeBefore']&&_0x529338['nodeBefore']['is']('$text'))&&(_insertIntoModelNodeList(_0x529338,'...'),_transformMarkersByInsertion(_0x1d062b,_0x529338,0x3),_0x529338['parent']==_0x25d2c0['parent']&&(_0x25d2c0=_0x25d2c0['getShiftedBy'](0x3)));const _0x102c8c=_0x5bafd2['createRange'](_0x5bafd2['createPositionAt'](_0x1d062b,0x0),_0x529338),_0x158297=_0x5bafd2['createRange'](_0x25d2c0,_0x5bafd2['createPositionAt'](_0x1d062b,'end')),_0x13ee89=[..._0x102c8c['getMinimalFlatRanges'](),..._0x158297['getMinimalFlatRanges']()];_0x13ee89['reverse']();for(const _0xb5c26 of _0x13ee89)_removeFromModelNodeList(_0xb5c26),_transformMarkersByDeletion(_0x1d062b,_0xb5c26);}function _transformMarkersByDeletion(_0x502aca,_0x323da7){for(const [_0x5156eb,_0x16b7d0]of _0x502aca['markers']){const _0x519ba5=_0x16b7d0['_getTransformedByDeletion'](_0x323da7['start'],_0x323da7['end']['offset']-_0x323da7['start']['offset']);null!=_0x519ba5?_0x502aca['markers']['set'](_0x5156eb,_0x519ba5):_0x502aca['markers']['delete'](_0x5156eb);}}function _transformMarkersByInsertion(_0x13d314,_0x1c94f7,_0x12593f){for(let [_0x5051e0,_0x3341f7]of _0x13d314['markers']){const _0x42febe=_0x3341f7['_getTransformedByInsertion'](_0x1c94f7,_0x12593f,!0x1);_0x3341f7=_0x42febe[0x0],_0x13d314['markers']['set'](_0x5051e0,_0x3341f7);}}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:_0x12a2ca,content:_0x305b2a='',isDone:_0x503531=!0x1,interactionId:_0x18681b,areActionsDisabled:_0x57f06e,documentContextContent:_0x6eec52,editor:_0x26401e,id:_0x34e578}){super(),this['id']=_0x34e578||uid(),this['interactionId']=_0x18681b,this['type']=_0x12a2ca,this['areActionsDisabled']=!!_0x57f06e,this['editor']=_0x26401e,this['aiResponseParser']=new AIResponseParser(),this['aiResponseApplier']=new AIResponseApplier(),this['documentContextContent']=parse$2(_0x6eec52||''),this['set']('isDone',_0x503531),this['on']('change:content',()=>{this['onContentChange']();}),this['set']('content',_0x305b2a);}['appendContent'](_0x538a40){this['set']('content',this['content']+_0x538a40);}['done'](){this['isDone']||(this['set']('isDone',!0x0),this['onContentChange']());}['destroy'](){this['stopListening']();}['setChangeGroupState'](_0x2e474e,_0x2cf568){this['changeGroups'][_0x2e474e]['state']=_0x2cf568,this['fire']('replyChangeGroupStateUpdated',{'reply':this,'index':_0x2e474e,'state':_0x2cf568});}['getContentParts']({showDiff:_0x58b9dc,groupIndex:_0xc9d797}){if(!this['editor'])throw new CKEditorError('ai-get-editor-from-context-no-editor',null,{'aiReply':this});const _0x5c21e5=this['_getCachedContentParts'](_0x58b9dc,_0xc9d797);if(_0x5c21e5)return _0x5c21e5;let _0xc9374b=[];if(void 0x0===_0xc9d797)_0xc9374b=this['changeGroups'];else{const _0x4876af=this['changeGroups']['find'](({index:_0x4dd563})=>_0x4dd563===_0xc9d797);if(!_0x4876af)throw new CKEditorError('ai-reply-get-content-parts-group-not-found',null,{'aiReply':this,'groupIndex':_0xc9d797});_0xc9374b=[_0x4876af];}const _0x4c8b09=getSuggestionPartsFromReply({'editor':this['editor'],'showDiff':_0x58b9dc,'changeGroups':_0xc9374b,'documentContextContent':this['documentContextContent']});return this['_setCachedContentParts'](_0x58b9dc,_0x4c8b09),_0x4c8b09;}['_getCachedContentParts'](_0x544058,_0xcce5dd){const _0x22bae0=_0x544058?'withDiff':'withoutDiff';if(!this['cachedSuggestionContentParts'][_0x22bae0]['length'])return null;const _0x35411c=this['cachedSuggestionContentParts'][_0x22bae0];if(void 0x0===_0xcce5dd)return _0x35411c['length']>0x0&&_0x35411c['length']!==this['changeGroups']['length']?(this['_setCachedContentParts'](_0x544058,null),null):cloneDeep$1(_0x35411c);{const _0x4be474=_0x35411c['find'](({index:_0x2a291d})=>_0x2a291d===_0xcce5dd);if(_0x4be474)return[cloneDeep$1(_0x4be474)];}return null;}['_setCachedContentParts'](_0x401f1a,_0xd5cef1){const _0x2c7ed4=_0x401f1a?'withDiff':'withoutDiff';_0xd5cef1?_0xd5cef1['forEach'](_0x1394fb=>{const _0x2d8b9f=this['cachedSuggestionContentParts'][_0x2c7ed4],_0x34cddc=_0x2d8b9f['find'](({index:_0x11cc12})=>_0x11cc12===_0x1394fb['index']);if(_0x34cddc){const _0x24409c=_0x2d8b9f['indexOf'](_0x34cddc);_0x2d8b9f['splice'](_0x24409c,0x1,_0x1394fb);}else _0x2d8b9f['push'](_0x1394fb);}):this['cachedSuggestionContentParts'][_0x2c7ed4]['length']=0x0;}['onContentChange'](){if('modification'===this['type']){this['parsedContent']=this['aiResponseParser']['parseAndNormalizeHTML'](this['content']);const _0x22f385=this['changeGroups'];this['updateChangeGroups']();const _0x34dee5=this['_getDifferentChangeGroups'](_0x22f385,this['changeGroups']);(_0x34dee5['length']||this['isDone'])&&(this['fire']('replyContentUpdated',this,_0x34dee5),this['cachedSuggestionContentParts']['withDiff']['length']=this['cachedSuggestionContentParts']['withoutDiff']['length']=0x0);}else this['parsedContent']=this['aiResponseParser']['convertMarkdownToHTML'](this['content']),this['fire']('replyContentUpdated',this);}['_getDifferentChangeGroups'](_0xa5dcb4,_0x3f7bfa){const _0x44487a=[];for(const _0x317927 of _0x3f7bfa){const _0x247a6e=_0xa5dcb4[_0x317927['index']];_0x247a6e?_0x247a6e['changes']['length']!==_0x317927['changes']['length']?_0x44487a['push'](_0x317927):_0x247a6e['changes']['forEach']((_0x13373d,_0x1f325f)=>{const _0x4711c9=_0x317927['changes'][_0x1f325f];_0x13373d['id']!==_0x4711c9['id']&&_0x44487a['push'](_0x317927);}):_0x44487a['push'](_0x317927);}return _0x44487a;}['updateChangeGroups'](){const _0x1a3c81=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'))])]),_0x2928ca=this['aiResponseApplier']['merge'](this['parsedContent'],this['documentContextContent']['cloneNode'](!0x0),{'markUnstableElements':!this['isDone'],'replaceRemovedWith':_0x1a3c81,'cutAfterLastChange':!this['isDone']});if(!_0x2928ca['modifiedNodeIds']['length']&&!this['isDone'])return;this['parsedMergedContent']=_0x2928ca['parsedContent'];let _0x33ec86=[];if(findAll(_0xd96d71=>{const _0x261f0c=getAttribute(_0xd96d71,'data-id');if(!_0x261f0c||!_0x53224a(_0x261f0c))return!0x1;const _0x48c254=[_0xd96d71,...getParents(_0xd96d71)]['at'](-0x2);if(_0xd96d71!=_0x48c254){const _0x5ecf9d=getAttribute(_0x48c254,'data-id');_0x53224a(_0x5ecf9d)||(_0x33ec86['push']({'node':_0x48c254,'id':_0x5ecf9d,'type':'modified'}),_0x2928ca['modifiedNodeIds']['push'](_0x5ecf9d));}else _0x2928ca['modifiedNodeIds']['includes'](_0x261f0c)?_0x33ec86['push']({'node':_0xd96d71,'type':'modified','id':_0x261f0c}):_0x2928ca['newNodeIds']['includes'](_0x261f0c)?_0x33ec86['push']({'node':_0xd96d71,'type':'new','id':_0x261f0c,'anchorId':getAttribute(_0xd96d71['previousSibling'],'data-id')}):_0x33ec86['push']({'node':_0xd96d71,'type':'removed','id':_0x261f0c});return!0x0;},this['parsedMergedContent']),_0x33ec86=_0x33ec86['filter'](({node:_0xe38e3})=>[...getParents(_0xe38e3),_0xe38e3]['every'](_0x2d56fb=>!getAttribute(_0x2d56fb,'data-unstable'))),0x0==_0x33ec86['length'])return;const _0x4c2b6c=[[_0x33ec86[0x0]]];for(let _0x2b2147=0x1;_0x2b2147<_0x33ec86['length'];_0x2b2147++){const _0x56a451=_0x4c2b6c[_0x4c2b6c['length']-0x1],_0x54d3c9=_0x56a451[_0x56a451['length']-0x1];_0x33ec86[_0x2b2147]['node']['previousSibling']==_0x54d3c9['node']&&'modified'!=_0x33ec86[_0x2b2147]['type']&&'modified'!=_0x54d3c9['type']?_0x56a451['push'](_0x33ec86[_0x2b2147]):_0x4c2b6c['push']([_0x33ec86[_0x2b2147]]);}for(const _0x9e7f20 of _0x4c2b6c){const _0x116d45=_0x9e7f20[0x0],_0x432c7b=_0x9e7f20[_0x9e7f20['length']-0x1],_0x39571a=_0x16ddf7(_0x116d45['node']['previousSibling']);_0x39571a&&_0x9e7f20['unshift'](_0x39571a);const _0x4cb72b=_0x16ddf7(_0x432c7b['node']['nextSibling']);_0x4cb72b&&_0x9e7f20['push'](_0x4cb72b);}function _0x53224a(_0x147fec){return _0x2928ca['modifiedNodeIds']['includes'](_0x147fec)||_0x2928ca['newNodeIds']['includes'](_0x147fec)||_0x2928ca['removedNodeIds']['includes'](_0x147fec);}function _0x16ddf7(_0x4ff357){if(_0x4ff357&&getAttribute(_0x4ff357,'data-id')&&!getAttribute(_0x4ff357,'data-unstable')){const _0x25793a=getAttribute(_0x4ff357,'data-id');if(!_0x53224a(_0x25793a))return{'node':_0x4ff357,'type':'context','id':_0x25793a};}return null;}this['changeGroups']=_0x4c2b6c['map']((_0x268d66,_0x1132ba)=>({'changes':_0x268d66,'state':'pending','index':_0x1132ba}));}}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:_0x3ce230,editor:_0x1b8c02}){super(),this['id']=uid(),this['connector']=_0x3ce230,this['isStopped']=!0x0,this['editor']=_0x1b8c02;}async['start'](){const _0x5d2092=[];let _0x51506c,_0x17ad94,_0x16d0fe;this['isStopped']=!0x1;try{this['currentRequest']=await this['sendRequest'](),this['fire']('interactionStarted',this);const _0x2a6353=await this['currentRequest']['getStream']();for await(const _0x4f6537 of _0x2a6353){if(this['isStopped'])return;if('error'==_0x4f6537['event'])return void this['fire']('error',{'error':new CKEditorError('ai-chat-interaction-error',this)});switch(_0x4f6537['event']){case'message-metadata':this['messageId']=_0x4f6537['data']['messageId'];break;case'action-metadata':this['actionCallId']=_0x4f6537['data']['callId'];break;case'conversation-title':this['setConversationTitle'](_0x4f6537['data']['conversationTitle'],!0x0);break;case'source':_0x5d2092['push'](_0x4f6537['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'](),_0x51506c='modification-delta'==_0x4f6537['event']?'modification':'text',_0x17ad94='modification-delta'==_0x4f6537['event']?_0x4f6537['data']['id']:void 0x0,this['currentReply']&&this['currentReply']['type']!=_0x51506c&&(this['currentReply']['done'](),this['currentReply']=void 0x0),this['currentReply']||(this['currentReply']=this['createReply']({'type':_0x51506c,'interactionId':this['id'],'id':_0x17ad94}),'modification'==_0x51506c&&(this['currentReply']['sources']=_0x5d2092['splice'](0x0))),this['currentReply']['appendContent'](_0x4f6537['data']['textDelta']);break;case'mcp-tool-result':_0x16d0fe=JSON['parse'](_0x4f6537['data']['result']),this['_handleToolResultData']({'toolName':_0x4f6537['data']['toolName'],'data':_0x16d0fe['data'],'attributes':_0x16d0fe['attributes']});break;case'mcp-tool-notification':this['_handleToolNotificationData']({'toolName':_0x4f6537['data']['toolName'],'data':_0x4f6537['data']['data']});}}}finally{this['isStopped']||(this['currentReply']&&_0x5d2092['length']>0x0&&(this['currentReply']['sources']=_0x5d2092['splice'](0x0)),this['_finalizeInteraction'](),this['fire']('interactionFinished',this));}}['stop'](){this['isStopped']||(this['_finalizeInteraction'](),this['fire']('interactionStopped',this));}['getReply'](_0xe7f0ad){return this['replies']['find'](_0x464178=>_0x464178['id']===_0xe7f0ad);}['destroy'](){this['isDestroyed']||(this['stop'](),this['replies']['forEach'](_0xea8760=>_0xea8760['destroy']()),this['replies']=[],this['isDestroyed']=!0x0,this['fire']('interactionDestroyed',this),this['stopListening']());}['createReply'](_0x30d394){const _0x238560=new AIReply({'editor':this['editor'],'documentContextContent':this['getDocumentContext']()?.['content'],..._0x30d394});return this['replies']['push'](_0x238560),_0x238560['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0x238560),_0x238560;}['setConversationTitle'](_0x328646,_0x2b7bb0=!0x1){this['fire']('setConversationTitle',_0x328646,_0x2b7bb0);}['resetWebSearchState'](){this['_isWebSearching']&&(this['_isWebSearching']=!0x1,this['fire']('webSearchFinished',this));}['resetReasoningState'](){this['_isReasoning']&&(this['_isReasoning']=!0x1,this['fire']('reasoningFinished',this));}['_handleToolResultData'](_0xc6f0b2){this['fire']('toolDataReceived',{'type':'result','toolName':_0xc6f0b2['toolName'],'data':structuredClone(_0xc6f0b2['data']||{}),'attributes':structuredClone(_0xc6f0b2['attributes']||{})},this);}['_handleToolNotificationData'](_0x4df51e){this['fire']('toolDataReceived',{'type':'notification','toolName':_0x4df51e['toolName'],'data':structuredClone(_0x4df51e['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(_0x3c6792){return _0x3c6792['TOOL']='mcp-tool-context',_0x3c6792['FILE']='file',_0x3c6792['DOCUMENT']='document',_0x3c6792['URL']='web-resource',_0x3c6792['TEXT']='text',_0x3c6792['SELECTION']='selection',_0x3c6792;}({}),AIContextTextResourceType=function(_0xbac732){return _0xbac732['TEXT']='text',_0xbac732['MARKDOWN']='markdown',_0xbac732['HTML']='html',_0xbac732;}({});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:_0x5cad80,config:_0x50eef5,ownerId:_0x49076c}){super(),this['_connector']=_0x5cad80,this['_config']=_0x50eef5,this['_ownerId']=_0x49076c;}['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'](_0x2dd9d2){const _0x472ca5=await this['_createContextItemFromContent'](_0x2dd9d2);return this['_addToConversationContextItem'](_0x472ca5),'current-document'===_0x472ca5['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x472ca5;}async['_createContextItemFromContent'](_0x5db764){if(_0x5db764['type']===AIContextItemType['DOCUMENT']){const _0x249b25=await this['_connector']['fetchDocument'](this['_ownerId'],_0x5db764['id'])['getDocument']();return{'id':'current-document','uiId':'current-document','label':'Current\x20document','type':_0x5db764['type'],'content':_0x249b25['content'],'hidden':this['_conversationContextItems']['has']('current-document'),'version':_0x249b25['attributes']?.['version'],'sessionId':_0x249b25['attributes']?.['sessionId']};}if(_0x5db764['type']===AIContextItemType['TOOL'])return{'id':_0x5db764['id'],'uiId':_0x5db764['id'],'label':_0x5db764['data']?.['label']||_0x5db764['id'],'type':AIContextItemType['TOOL'],'mcpServerName':_0x5db764['mcpServerName'],'toolName':_0x5db764['toolName'],'data':_0x5db764['data']||{}};return{'id':_0x5db764['id'],'uiId':_0x5db764['id'],'label':_0x5db764['attributes']?.['label']||_0x5db764['name']||_0x5db764['url']||_0x5db764['id'],'type':_0x5db764['type'],..._0x5db764?.['attributes']?.['resourceId']?{'resourceId':_0x5db764['attributes']?.['resourceId']}:{}};}['getSentContextItems'](){return new Map(this['_conversationContextItems']);}['removeFromContext'](_0x4c117e){const _0x5d7168=this['_pendingContextItems']['get'](_0x4c117e);_0x5d7168?.['isReadOnly']||this['_removeContextItem'](_0x4c117e);}['clearPendingContextItems'](){if(0x0===this['_pendingContextItems']['size'])return;for(const _0x811894 of this['_pendingContextItems']['values']())this['_removeContextItem'](_0x811894['uiId']);const _0x4dab51=this['_conversationContextItems']['get']('current-document')||this['_pendingContextItems']['get']('current-document');_0x4dab51&&this['_addContextItem']({..._0x4dab51,'isReadOnly':!0x0,'hidden':!0x0});}['addToConversationContext'](_0x48f43d){for(const _0x2b8793 of _0x48f43d['values']())this['_addToConversationContextItem'](_0x2b8793);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'](_0x5f5ab6){return Array['from'](_0x5f5ab6['values']())['map'](_0x371e21=>this['_mapContextItemToRequestData'](_0x371e21))['filter'](_0x3f4a25=>null!==_0x3f4a25);}async['addFilesToContext'](_0x36b908,_0x184992,_0x2f061d=AIContextItemType['FILE']){const _0x41d048='files-'+uid();this['_startUploadOperation'](_0x41d048);try{await Promise['all'](_0x36b908['map'](async _0x4a07e3=>{const _0x313f35='file-'+uid(),_0x2d9b31=escape(_0x4a07e3['name']);try{this['_addContextItem']({'type':_0x2f061d,'label':_0x184992?.['label']||_0x2d9b31,'uiId':_0x313f35,'resourceId':_0x184992?.['resourceId']},!0x0);const _0x580b8a=this['_connector']['uploadFile'](this['_ownerId'],_0x4a07e3,_0x184992);this['_ongoingUploads']['set'](_0x313f35,_0x580b8a['abortController']);const {id:_0x41c56a}=await _0x580b8a['getId']();this['_ongoingUploads']['delete'](_0x313f35),this['_finishContextItemLoading']({'type':_0x2f061d,'id':_0x41c56a,'label':_0x184992?.['label']||_0x2d9b31,'uiId':_0x313f35,'resourceId':_0x184992?.['resourceId']},!0x1);}catch(_0x5bd1cb){this['_ongoingUploads']['delete'](_0x313f35);if(!(_0x5bd1cb instanceof CKEditorError&&_0x5bd1cb['message']['startsWith']('ai-request-aborted'))){const _0x5efd76=errorsMap['get'](_0x5bd1cb['code'])||'ai-chat-file-upload-failed',_0x36d841=new CKEditorError(_0x5efd76,null,{'fileName':_0x2d9b31,..._0x5bd1cb});_0x36d841['stack']=_0x5bd1cb['stack'],this['fire']('error',{'error':_0x36d841});}this['_removeContextItem'](_0x313f35);}}));}finally{this['_finishUploadOperation'](_0x41d048);}}['addCurrentDocumentToContext'](_0x13d48e){if(this['isCurrentDocumentInContext']()||!this['_addContextOptionsState']['document']['enabled'])return;const _0xb53fe3={'type':AIContextItemType['DOCUMENT'],'uiId':'current-document','label':_0x13d48e,'isReadOnly':this['_conversationContextItems']['has']('current-document'),'hidden':this['_conversationContextItems']['has']('current-document')};this['_addContextItem'](_0xb53fe3);}async['updateCurrentDocument'](_0x55bf20,_0x4be04a,_0x500516,_0x222b3a){const _0x596c83=this['_pendingContextItems']['get']('current-document');if(_0x596c83&&_0x55bf20){_0x596c83['selection']=_0x222b3a?_0x222b3a['map'](_0xeb5463=>({'start':_0xeb5463['start'],'end':_0xeb5463['end']})):[];try{if(_0x596c83['version']===_0x4be04a)return;const {id:_0x53ce10}=await this['_connector']['uploadDocument'](this['_ownerId'],_0x55bf20,{'version':_0x4be04a,'sessionId':_0x500516})['getId']();_0x596c83['id']=_0x53ce10,_0x596c83['content']=_0x55bf20,_0x596c83['version']=_0x4be04a,_0x596c83['sessionId']=_0x500516;}catch(_0x3f0373){const _0x395cc0=new CKEditorError('ai-chat-document-upload-failed',null);_0x395cc0['stack']=_0x3f0373['stack'],this['fire']('error',{'error':_0x395cc0});}}}['addSelectionToContext'](_0x1179bb){this['_addContextItem']({'type':AIContextItemType['SELECTION'],'label':_0x1179bb,'uiId':'selection','content':_0x1179bb});}['removeSelectionFromContext'](){this['_removeContextItem']('selection');}async['addUrlToContext'](_0x4e38f1,_0x43fe1c){const _0x5ebc7c='url-'+uid();this['_startUploadOperation'](_0x5ebc7c);const _0x3b3f59='url-'+uid();try{this['_addContextItem']({'type':AIContextItemType['URL'],'label':_0x43fe1c?.['label']||_0x4e38f1,'uiId':_0x3b3f59,'resourceId':_0x43fe1c?.['resourceId']},!0x0);const _0x3f2c10=this['_connector']['uploadUrl'](this['_ownerId'],_0x4e38f1,_0x43fe1c);this['_ongoingUploads']['set'](_0x3b3f59,_0x3f2c10['abortController']);const {id:_0x47f800}=await _0x3f2c10['getId']();this['_ongoingUploads']['delete'](_0x3b3f59),this['_finishContextItemLoading']({'type':AIContextItemType['URL'],'id':_0x47f800,'label':_0x43fe1c?.['label']||_0x4e38f1,'uiId':_0x3b3f59,'resourceId':_0x43fe1c?.['resourceId']},!0x1);}catch(_0x3a1646){this['_ongoingUploads']['delete'](_0x3b3f59),(_0x3a1646['message']['startsWith']('ai-request-aborted')||this['fire']('error',{'error':new CKEditorError('ai-chat-url-upload-failed',this,{'url':_0x4e38f1,'originalError':_0x3a1646}),'url':_0x4e38f1}),this['_removeContextItem'](_0x3b3f59));}finally{this['_finishUploadOperation'](_0x5ebc7c);}}['addToolItemToContext'](_0x3738a2){_0x3738a2['id']=_0x3738a2['id']??uid()['substring'](0x0,0x15),this['_pendingContextItems']['set'](_0x3738a2['uiId'],_0x3738a2),this['fire']('contextItemAdded',{'contextItem':_0x3738a2,'isLoading':!0x1});}async['loadSourceResources'](_0x1631a3,_0x1971de,_0x39cfd7){const _0x15824b=this['_addContextOptionsState']['sources']['find'](_0x329edf=>_0x329edf['id']===_0x1631a3);if(!_0x15824b)return this['fire']('error',{'error':new CKEditorError('ai-chat-source-not-found',this,{'sourceId':_0x1631a3}),'sourceId':_0x1631a3}),[];try{const _0x2c8d9a=(await _0x15824b['getResources'](_0x1971de))['map'](_0x1b2ea0=>{const _0x28e8f3=this['_isResourceInContext'](_0x1b2ea0['id']);return{..._0x1b2ea0,'isInContext':_0x28e8f3};});return _0x15824b['resources']=_0x2c8d9a,this['fire']('sourceResourcesLoaded',{'sourceId':_0x1631a3,'source':_0x15824b,'resources':_0x2c8d9a,'uid':_0x39cfd7}),_0x2c8d9a;}catch(_0x3b8932){return this['fire']('error',{'error':new CKEditorError('ai-chat-source-resources-load-failed',this,{'sourceId':_0x1631a3,'originalError':_0x3b8932}),'sourceId':_0x1631a3,'sourceLabel':_0x15824b['label']}),[];}}async['addResourceToContext'](_0x3605de,_0x63bace){if(this['_isResourceInContext'](_0x63bace['id']))return;let _0x16e617=_0x63bace['data'];if(!_0x16e617&&_0x3605de['getData'])try{_0x16e617=await _0x3605de['getData'](_0x63bace['id']);}catch(_0x222d66){return void this['fire']('error',{'error':new CKEditorError('ai-chat-resource-load-failed',this,{'resourceId':_0x63bace['id'],'sourceId':_0x3605de['id'],'originalError':_0x222d66}),'resourceId':_0x63bace['id'],'sourceId':_0x3605de['id']});}if(_0x16e617)switch(_0x63bace['type']){case AIContextItemType['URL']:if('string'!=typeof _0x16e617)return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x63bace['id'],'sourceId':_0x3605de['id'],'expectedType':'string','actualType':typeof _0x16e617}),'resourceId':_0x63bace['id'],'sourceId':_0x3605de['id']});await this['addUrlToContext'](_0x16e617,{'label':_0x63bace['label'],'resourceId':_0x63bace['id']});break;case AIContextItemType['FILE']:if(!(_0x16e617 instanceof File))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x63bace['id'],'sourceId':_0x3605de['id'],'expectedType':'File','actualType':typeof _0x16e617}),'resourceId':_0x63bace['id'],'sourceId':_0x3605de['id']});await this['addFilesToContext']([_0x16e617],{'label':_0x63bace['label'],'resourceId':_0x63bace['id']});break;case AIContextItemType['TEXT']:if('object'!=typeof _0x16e617||!('content'in _0x16e617)||!('type'in _0x16e617))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x63bace['id'],'sourceId':_0x3605de['id'],'expectedType':'object\x20with\x20content\x20and\x20type\x20properties','actualType':typeof _0x16e617}),'resourceId':_0x63bace['id'],'sourceId':_0x3605de['id']});_0x16e617=AIChatContext['_convertTextResourceToFile'](_0x16e617,_0x63bace['label']),await this['addFilesToContext']([_0x16e617],{'label':_0x63bace['label'],'resourceId':_0x63bace['id']},AIContextItemType['TEXT']);break;case AIContextItemType['TOOL']:break;default:this['fire']('error',{'error':new CKEditorError('ai-chat-context-unsupported-type',this,{'resourceId':_0x63bace['id'],'sourceId':_0x3605de['id'],'resourceType':_0x63bace['type']}),'resourceId':_0x63bace['id'],'sourceId':_0x3605de['id']});}else this['fire']('error',{'error':new CKEditorError('ai-chat-resource-no-data',this,{'resourceId':_0x63bace['id'],'sourceId':_0x3605de['id']}),'resourceId':_0x63bace['id'],'sourceId':_0x3605de['id']});}static['_convertTextResourceToFile'](_0x59c994,_0x140c95){switch(_0x59c994['type']){case AIContextTextResourceType['MARKDOWN']:return new File([_0x59c994['content']],_0x140c95,{'type':'text/markdown'});case AIContextTextResourceType['HTML']:return new File([_0x59c994['content']],_0x140c95,{'type':'text/html'});default:return new File([_0x59c994['content']],_0x140c95,{'type':'text/plain'});}}static['_mapContextItemToRequestData'](_0x481eda){switch(_0x481eda['type']){case AIContextItemType['FILE']:return{'type':AIContextItemType['FILE'],'id':_0x481eda['id']};case AIContextItemType['URL']:return{'type':AIContextItemType['URL'],'id':_0x481eda['id']};case AIContextItemType['DOCUMENT']:return{'type':AIContextItemType['DOCUMENT'],'id':_0x481eda['id'],..._0x481eda['selection']?.['length']&&{'selection':_0x481eda['selection']}};case AIContextItemType['TEXT']:return{'type':AIContextItemType['FILE'],'id':_0x481eda['id']};case AIContextItemType['TOOL']:{const _0x71ce9b=_0x481eda;return{'type':AIContextItemType['TOOL'],'mcpServerName':_0x71ce9b['mcpServerName'],'toolName':_0x71ce9b['toolName'],'data':_0x71ce9b['data'],'id':_0x71ce9b['id']};}default:return null;}}['_addContextItem'](_0x8ea207,_0x38f012=!0x1){if(this['_pendingContextItems']['set'](_0x8ea207['uiId'],_0x8ea207),_0x8ea207['hidden']||this['fire']('contextItemAdded',{'contextItem':_0x8ea207,'isLoading':_0x38f012}),'current-document'===_0x8ea207['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x8ea207['resourceId']){const _0x5cc2bb=this['_findSourceIdsByResourceId'](_0x8ea207['resourceId']);_0x5cc2bb&&_0x5cc2bb['forEach'](_0x786f68=>{this['_updateResourceInContextState'](_0x786f68,_0x8ea207['resourceId'],!0x0);});}}['_removeContextItem'](_0x2f58cd){const _0xaa04a0=this['_pendingContextItems']['get'](_0x2f58cd),_0x2df3c5=this['_ongoingUploads']['get'](_0x2f58cd);if(_0x2df3c5&&(_0x2df3c5['abort'](),this['_ongoingUploads']['delete'](_0x2f58cd)),_0xaa04a0?.['resourceId']){const _0x148ae6=this['_findSourceIdsByResourceId'](_0xaa04a0['resourceId']);_0x148ae6&&_0x148ae6['forEach'](_0x3d20a3=>{this['_updateResourceInContextState'](_0x3d20a3,_0xaa04a0['resourceId'],!0x1);});}this['_pendingContextItems']['delete'](_0x2f58cd),this['fire']('contextItemRemoved',{'uiId':_0x2f58cd,'type':_0xaa04a0?.['type']}),'current-document'===_0x2f58cd&&this['_toggleAddCurrentDocumentOptionVisibility']();}['_finishContextItemLoading'](_0x2e3d2f,_0x57eeae){if(this['_pendingContextItems']['has'](_0x2e3d2f['uiId'])&&(this['_pendingContextItems']['set'](_0x2e3d2f['uiId'],_0x2e3d2f),this['fire']('contextItemLoadingEnded',{'contextItem':_0x2e3d2f,'isLoading':_0x57eeae}),_0x2e3d2f['resourceId'])){const _0xcd4b72=this['_findSourceIdsByResourceId'](_0x2e3d2f['resourceId']);_0xcd4b72&&_0xcd4b72['forEach'](_0x35f748=>{this['_updateResourceInContextState'](_0x35f748,_0x2e3d2f['resourceId'],!0x0);});}}['_addToConversationContextItem'](_0x2f8320){this['_conversationContextItems']['set'](_0x2f8320['uiId'],_0x2f8320);}['_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'](_0x17fec1=>({..._0x17fec1,'enabled':!0x0}))??[]},this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_getCustomSourcesInitialState'](){return this['_config']?.['sources']?.['map'](_0x111f2d=>({..._0x111f2d,'resources':[]}))??[];}['_toggleAddCurrentDocumentOptionVisibility'](){const _0x2175ae=this['isCurrentDocumentInContext']()||this['isCurrentDocumentInConversation']();this['_addContextOptionsState']['document']['isHidden']=_0x2175ae,this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_isResourceInContext'](_0xe77595){for(const _0x4ec2ce of this['_pendingContextItems']['values']())if(_0x4ec2ce['resourceId']===_0xe77595)return!0x0;for(const _0x279dc0 of this['_conversationContextItems']['values']())if(_0x279dc0['resourceId']===_0xe77595)return!0x0;return!0x1;}['_findSourceIdsByResourceId'](_0x256687){const _0x4fc1e6=[];for(const _0x28138d of this['_addContextOptionsState']['sources']){_0x28138d['resources']['find'](_0x38932f=>_0x38932f['id']===_0x256687)&&_0x4fc1e6['push'](_0x28138d['id']);}return 0x0===_0x4fc1e6['length']?null:_0x4fc1e6;}['_updateResourceInContextState'](_0x19bc8a,_0x155f3f,_0x1838dc){const _0x1b4864=this['_addContextOptionsState']['sources']['find'](_0x5c79e6=>_0x5c79e6['id']===_0x19bc8a);if(!_0x1b4864)return;const _0x320640=_0x1b4864['resources']['find'](_0x26eda7=>_0x26eda7['id']===_0x155f3f);_0x320640&&(_0x320640['isInContext']=_0x1838dc,this['fire']('resourceStateChanged',{'sourceId':_0x19bc8a,'resourceId':_0x155f3f,'isInContext':_0x1838dc}));}['_startUploadOperation'](_0x205f82){this['_ongoingUploadOperations']['set'](_0x205f82,!0x0),this['_ongoingUploadOperations']['size']&&this['fire']('uploadProgressChanged',{'isUploadInProgress':!0x0});}['_finishUploadOperation'](_0x451b9f){this['_ongoingUploadOperations']['delete'](_0x451b9f),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'](_0x389449){const _0xc0054e={};return _0x389449&&_0x389449['isWebSearchEnabled']&&(_0xc0054e['webSearch']={}),_0x389449&&_0x389449['isReasoningEnabled']&&(_0xc0054e['reasoning']={}),_0xc0054e;}['toggleWebSearch'](){this['setWebSearch'](!this['_isWebSearchEnabled']);}['toggleReasoning'](){this['setReasoning'](!this['_isReasoningEnabled']);}['setWebSearch'](_0x177d9c){_0x177d9c!==this['_isWebSearchEnabled']&&(this['_isWebSearchEnabled']=_0x177d9c,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}['setReasoning'](_0x1b05f3){_0x1b05f3!==this['_isReasoningEnabled']&&(this['_isReasoningEnabled']=_0x1b05f3,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}}class AIChatInteraction extends AIInteraction{['userMessage'];['conversationId'];['contextItems']=new Map();['model'];['attributes'];constructor(_0x5bf828){super(_0x5bf828),this['conversationId']=_0x5bf828['conversationId'],this['contextItems']=_0x5bf828['contextItems'],this['capabilities']=_0x5bf828['capabilities'],this['userMessage']=_0x5bf828['userMessage'],this['model']=_0x5bf828['model'],this['attributes']=_0x5bf828['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(_0x39a072){super(),this['options']=_0x39a072,this['connector']=_0x39a072['connector'],this['chatModels']=_0x39a072['chatModels'],this['id']=_0x39a072['conversationId'],this['isFromHistory']=_0x39a072['isFromHistory'];}async['init'](_0x131297){try{this['chatContext']=new AIChatContext({'connector':this['connector'],'config':_0x131297,'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 _0x33f512=await this['chatModels']['getAvailableModels']();this['fire']('conversationInitialized',{'availableModels':_0x33f512});const _0x204940=await this['chatModels']['getModel'](this['options']['selectedModelId']);_0x204940&&await this['setModel'](_0x204940);}catch(_0x5d19ed){const _0x9db744=new CKEditorError('ai-chat-conversation-init-failed',null,{'message':_0x5d19ed['message']||_0x5d19ed});_0x9db744['stack']=_0x5d19ed['stack'],this['fire']('error',{'error':_0x9db744});}}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:_0x5e8963}=await this['connector']['startConversation'](this['id'],this['options']['group'])['getConversation']();this['id']=_0x5e8963,this['isStarted']=!0x0,this['fire']('conversationStarted',{'conversationId':this['id'],'selectedModel':this['selectedModel']});}catch(_0x2986f3){const _0x5e1d5a=new CKEditorError('ai-chat-conversation-start-failed',null,{'message':_0x2986f3['message'],'conversationId':this['id']});throw _0x5e1d5a['stack']=_0x2986f3['stack'],this['fire']('error',{'error':_0x5e1d5a}),_0x5e1d5a;}}async['load'](_0x54dd32,_0x59e7d8){try{const _0x3fca0e=await this['connector']['fetchConversation'](_0x54dd32)['getConversation'](),_0x21f19c=await this['connector']['fetchConversationMessages'](_0x54dd32)['getMessages'](),_0x56972a=_0x21f19c[0x0]['model'];this['isStarted']=!0x0,this['id']=_0x3fca0e['id'],'title'in _0x3fca0e?this['fire']('setConversationTitle',_0x3fca0e['title'],!0x0):this['fire']('setConversationTitle','',!0x0);const _0x5993a8=(await this['chatModels']['getAll']())['find'](_0x3881d8=>_0x3881d8['id']['toLowerCase']()===_0x56972a['toLowerCase']());return this['selectedModel']=_0x5993a8,this['fire']('modelSelected',{'selectedModel':_0x5993a8,'isDisabled':!0x0}),await this['_processMessagesToInteractions'](_0x21f19c,_0x59e7d8,_0x56972a),this['currentInteraction']=void 0x0,this;}catch(_0x1c9216){const _0x488f84=new CKEditorError('ai-chat-conversation-init-from-id-failed',null,{'message':_0x1c9216['message'],'conversationId':_0x54dd32});throw _0x488f84['stack']=_0x1c9216['stack'],this['fire']('error',{'error':_0x488f84}),_0x488f84;}}async['_processMessagesToInteractions'](_0x558cd2,_0x5031d0,_0x34ea65){let _0x149799;for(const _0x20c2c9 of _0x558cd2)if('user'===_0x20c2c9['role']){const _0x49f009=await this['_extractContextItems'](_0x20c2c9),_0x4157d0={'isReasoningEnabled':Object['hasOwn'](_0x20c2c9['capabilities'],'reasoning'),'isWebSearchEnabled':Object['hasOwn'](_0x20c2c9['capabilities'],'webSearch')};_0x149799=this['createInteraction']({'userMessage':_0x20c2c9['prompt'],'contextItems':_0x49f009,'capabilities':_0x4157d0,'modelId':_0x34ea65,'attributes':_0x20c2c9['attributes']}),this['currentInteraction']=_0x149799,this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}else{if('assistant'===_0x20c2c9['role']&&_0x149799){const _0x19a15c=[];for(const _0x20e7ef of _0x20c2c9['content'])switch(_0x20e7ef['type']){case'text':case'modification':{const _0x4ade87=_0x149799['getDocumentContext']()?.['sessionId']!==_0x5031d0;_0x149799['currentReply']=_0x149799['createReply']({'type':_0x20e7ef['type'],'isDone':!0x0,'interactionId':_0x149799['id'],'areActionsDisabled':_0x4ade87}),_0x149799['currentReply']['appendContent'](_0x20e7ef['content']),_0x19a15c['length']>0x0&&(_0x149799['currentReply']['sources']=_0x19a15c['splice'](0x0));break;}case'url':_0x19a15c['push'](_0x20e7ef);break;case'mcp-tool-result':{const {data:_0x29a0e6,attributes:_0x1fcf77}=JSON['parse'](_0x20e7ef['content']);_0x149799['_handleToolResultData']({'toolName':_0x20e7ef['toolName'],'data':_0x29a0e6,'attributes':_0x1fcf77});break;}}}}}async['_extractContextItems'](_0x205754){const _0x41504f=new Map();if(!_0x205754['content'])return _0x41504f;for(const _0x2d54e6 of _0x205754['content']){const _0x5e9fa6=await this['chatContext']['populateFromMessage'](_0x2d54e6);_0x5e9fa6&&_0x41504f['set'](_0x5e9fa6['id'],_0x5e9fa6);}return _0x41504f;}async['handleUserInteraction']({userMessage:_0x20f90c,attributes:_0x5a17ba}){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 _0xec6fe0=this['chatContext']['getPendingContextItems'](),_0x5e76f2=this['chatCapabilities']['getCapabilitiesConfig'](),_0x385a18=this['selectedModel']['id'];this['currentInteraction']=this['createInteraction']({'userMessage':_0x20f90c,'contextItems':_0xec6fe0,'capabilities':_0x5e76f2,'modelId':_0x385a18,'attributes':_0x5a17ba}),await this['currentInteraction']['start'](),this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}catch(_0x49c1ab){if(_0x49c1ab instanceof CKEditorError)this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':_0x49c1ab});else{const _0x34c9a2=errorsMap['get'](_0x49c1ab['code'])||'ai-chat-handle-user-interaction-start-failed';this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':new CKEditorError(_0x34c9a2,null,{'error':_0x49c1ab})});}}finally{this['currentInteraction']?.['stop'](),this['currentInteraction']=void 0x0;}}['createInteraction']({userMessage:_0x1de26f,contextItems:_0x4faa29,capabilities:_0x2491d9,modelId:_0x1dca2b,attributes:_0x16a628}){const _0x642c68=new AIChatInteraction({'userMessage':_0x1de26f,'contextItems':_0x4faa29,'capabilities':_0x2491d9,'conversationId':this['id'],'connector':this['connector'],'editor':this['options']['getEditor']&&this['options']['getEditor'](),'model':_0x1dca2b,'attributes':_0x16a628});return _0x642c68['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['interactions']['push'](_0x642c68),this['fire']('interactionCreated',_0x642c68),_0x642c68;}['getInteraction'](_0x26ed73){return this['interactions']['find'](_0x2d20e1=>_0x2d20e1['id']===_0x26ed73);}['removeInteraction'](_0x23a709){const _0x2ec01c=this['getInteraction'](_0x23a709);_0x2ec01c&&(_0x2ec01c['destroy'](),this['interactions']['splice'](this['interactions']['indexOf'](_0x2ec01c),0x1));}get['lastInteraction'](){return this['interactions'][this['interactions']['length']-0x1];}['addCurrentDocumentToContext'](_0x48c99d){this['chatContext']['addCurrentDocumentToContext'](_0x48c99d);}async['updateCurrentDocumentInContext']({content:_0x322802,version:_0xcdcf8c,sessionId:_0x1c0dcc,selections:_0x2ff1a4}){await this['chatContext']['updateCurrentDocument'](_0x322802,_0xcdcf8c,_0x1c0dcc,_0x2ff1a4);}['getCurrentDocumentContext'](){return this['currentInteraction']?.['getDocumentContext']()?.['content']||'';}['addSelectionToContext'](_0x43291f){this['chatContext']['addSelectionToContext'](_0x43291f);}['removeSelectionFromContext'](){this['chatContext']['removeSelectionFromContext']();}['addFilesToContext'](_0x51bc70){this['chatContext']['addFilesToContext'](_0x51bc70);}['addUrlToContext'](_0x335193){this['chatContext']['addUrlToContext'](_0x335193);}['addToolItemToContext'](_0x5a9eee){this['chatContext']['addToolItemToContext'](_0x5a9eee);}['addResourceToContext'](_0x54d9fd,_0x5e0ab3){this['chatContext']['addResourceToContext'](_0x54d9fd,_0x5e0ab3);}['loadSourceResources'](_0x40453d,_0xf47c67,_0x3adea4){return this['chatContext']['loadSourceResources'](_0x40453d,_0xf47c67,_0x3adea4);}['removeFromContext'](_0x138dd4){this['chatContext']['removeFromContext'](_0x138dd4);}['setWebSearch'](_0x508816){this['chatCapabilities']['setWebSearch'](_0x508816);}['toggleWebSearch'](){this['chatCapabilities']['toggleWebSearch']();}['setReasoning'](_0x22e1bb){this['chatCapabilities']['setReasoning'](_0x22e1bb);}['toggleReasoning'](){this['chatCapabilities']['toggleReasoning']();}['isCurrentDocumentInContext'](){return this['chatContext']['isCurrentDocumentInContext']();}['isCurrentDocumentInConversation'](){return this['chatContext']['isCurrentDocumentInConversation']();}['isSelectionInContext'](){return this['chatContext']['isSelectionInContext']();}async['setModel'](_0xf77cfb){_0xf77cfb?!0x1===await this['chatModels']['isAvailable'](_0xf77cfb)&&(logWarning('ai-chat-conversation-set-model-not-available',{'conversation':this,'model':_0xf77cfb}),_0xf77cfb=(await this['chatModels']['getAvailableModels']())[0x0]):(logWarning('ai-chat-conversation-set-model-null',{'conversation':this}),_0xf77cfb=(await this['chatModels']['getAvailableModels']())[0x0]),_0xf77cfb['id']!==this['selectedModel']?.['id']&&(this['selectedModel']=_0xf77cfb,this['chatCapabilities']['reset'](),this['fire']('modelSelected',{'selectedModel':_0xf77cfb}));}}class AIModels extends EmitterMixin(){['_connector'];['_config'];['_locale'];['_modelList']=[];['_modelsRequest']=null;constructor({connector:_0x51786d,config:_0x208ab8,locale:_0x2d7f34}){super(),this['_connector']=_0x51786d,this['_config']=_0x208ab8,this['_locale']=_0x2d7f34;}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 _0x919893=await this['getAll']();let _0x553454;return _0x553454=this['_availableModels']?this['_filterModels'](_0x919893,this['_availableModels']):_0x919893['filter'](_0x39a8e0=>_0x39a8e0['recommended']),_0x553454;}async['getModel'](_0x578228){const _0x5255ff=await this['getAll']();if(!_0x5255ff['length'])return null;if(_0x578228){const _0x3c0399=this['_getModelById'](_0x5255ff,_0x578228);if(_0x3c0399)return _0x3c0399;logWarning('ai-chat-model-id-unrecognized',{'modelId':_0x578228,'fallBackModelId':this['_defaultModelId']});}return this['getDefault']();}async['getDefault'](){const _0x2f6ac5=await this['getAvailableModels']();if(!_0x2f6ac5['length'])return null;if(this['_defaultModelId']){const _0x108d54=this['_getModelById'](_0x2f6ac5,this['_defaultModelId']);if(_0x108d54)return _0x108d54;logWarning('ai-chat-default-model-id-unrecognized',{'defaultModelId':this['_defaultModelId'],'fallBackModelId':_0x2f6ac5[0x0]['id']});}return _0x2f6ac5[0x0];}async['isAvailable'](_0x4f9d25){return(await this['getAvailableModels']())['some'](_0x727e6b=>_0x727e6b['name']===_0x4f9d25['name']&&_0x727e6b['provider']===_0x4f9d25['provider']);}async['_retrieveModels'](){if(!this['_modelList']['length'])try{const _0x41ceae=this['_locale']['uiLanguage']||'en',_0x185be7=this['_connector']['getModels'](_0x41ceae),_0x143f79=await _0x185be7['list']();this['_modelList']=_0x143f79['items']['map'](_0x4d3016=>isAutoModel(_0x4d3016)?{..._0x4d3016,'name':getTranslation$i(this['_locale'],'AI_MODEL_NAME_AUTO')}:_0x4d3016);}catch(_0x2156d7){throw logError('ai-models-unable-to-retrieve',{'error':_0x2156d7}),_0x2156d7;}return[...this['_modelList']];}['_filterModels'](_0x2e68d3,_0x301de5){let _0x425304;if(_0x301de5){_0x425304=[];const _0x28c5e8=new Set(),_0x1a68de='string'==typeof _0x301de5?[_0x301de5['toLocaleLowerCase']()]:_0x301de5['map'](_0x5b2937=>_0x5b2937['toLocaleLowerCase']());for(const _0x5e1257 of _0x1a68de)for(const _0x3cbaf0 of _0x2e68d3)!_0x28c5e8['has'](_0x3cbaf0['id'])&&this['_isMatchingFilter'](_0x3cbaf0,_0x5e1257)&&(_0x425304['push'](_0x3cbaf0),_0x28c5e8['add'](_0x3cbaf0['id']));}else _0x425304=_0x2e68d3;return _0x425304;}['_isMatchingFilter'](_0x53367c,_0x30bffd){const _0x3a3200=_0x53367c['id']['toLocaleLowerCase'](),_0xc513ba=_0x53367c['name']['toLocaleLowerCase'](),_0x492f58=_0x53367c['provider']['toLocaleLowerCase']();return _0x3a3200===_0x30bffd||_0xc513ba===_0x30bffd||isAutoModel(_0x53367c)&&'auto'===_0x30bffd||_0x492f58===_0x30bffd||_0x3a3200['startsWith'](_0x30bffd);}['_getModelById'](_0x2d5c32,_0x47808c){return _0x2d5c32['find'](_0x4f54f9=>isAutoModel(_0x4f54f9)&&'auto'===_0x47808c?_0x4f54f9:_0x4f54f9['id']===_0x47808c)||null;}}function isAutoModel(_0x2acd4d){return _0x2acd4d['id']['startsWith']('agent');}function getEditorFromContext(_0x8b3ade){if(_0x8b3ade instanceof Editor)return _0x8b3ade;if(_0x8b3ade?.['editors']&&_0x8b3ade['editors']['get'](0x0))return _0x8b3ade['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.'),_0x8b3ade['editors']['get'](0x0);throw new CKEditorError('ai-get-editor-from-context-no-editor');}function getOperationsFromReply({editor:_0x233ae2,interaction:_0x5c2387,reply:_0x17ef95,groups:_0x5c7341,transform:_0x19ed56,documentCompare:_0x1def43,documentCompareOptions:_0xa2f0af}){const _0x1c32da=_0x5c2387['getDocumentContext']();if(!_0x1c32da)return[];const _0x4195dc=_0x1c32da['content'],_0x57d109=_0x1c32da['version'],_0x25fb55=_0x17ef95['documentContextContent']['cloneNode'](!0x0);for(const {changes:_0x3291d3}of _0x5c7341){const _0x2ae04d=_0x3291d3['filter'](_0x58fc1d=>'new'!=_0x58fc1d['type'])['map'](_0x3cec10=>findByAttribute('data-id',_0x3cec10['id'],_0x25fb55)),_0x3ae5cb=_0x3291d3['filter'](_0x1e2d88=>'removed'!=_0x1e2d88['type'])['map'](_0x96b3ac=>_0x96b3ac['node']['cloneNode'](!0x0));let _0x1ed533=null;if(_0x2ae04d['length']){_0x1ed533=_0x2ae04d[0x0]['previousSibling'];for(let _0x33a396=0x0;_0x33a396<_0x2ae04d['length'];_0x33a396++)removeElement(_0x2ae04d[_0x33a396]);}if(_0x3ae5cb['length']){_0x1ed533||(_0x3291d3[0x0]['anchorId']?_0x1ed533=findByAttribute('data-id',_0x3291d3[0x0]['anchorId'],_0x25fb55):(_0x1ed533=_0x3ae5cb['shift'](),prependChild(_0x25fb55,_0x1ed533)));for(let _0x48f7ee=0x0;_0x48f7ee<_0x3ae5cb['length'];_0x48f7ee++)append(_0x1ed533,_0x3ae5cb[_0x48f7ee]),_0x1ed533=_0x3ae5cb[_0x48f7ee];}}const _0x17b970=serialize(_0x25fb55),_0x19eb36=_0x1def43['getDiff'](_0x4195dc,_0x17b970,_0xa2f0af)['getOperations']();if(_0x19ed56){const _0x7a7217=_0x233ae2['model']['document']['history']['getOperations'](_0x57d109),_0x2bbad5={'document':_0x233ae2['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1};return transformOperationSets(_0x19eb36,_0x7a7217,_0x2bbad5)['operationsA'];}return _0x19eb36;}function fixMarkerOperationOldRange(_0x302e61,_0xb7ddf6){if('marker'!=_0xb7ddf6['type'])return;const _0x2aeea5=_0x302e61['model']['markers']['get'](_0xb7ddf6['name']);_0x2aeea5&&(_0xb7ddf6['oldRange']=_0x2aeea5['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 _0x4c07c0=this['context']['plugins']['get']('AITabs');this['listenTo'](this['_aiChatUi'],'startConversation',()=>{this['_startConversationSafely']();}),this['listenTo'](this['_aiChatUi'],'sendUserMessage',(_0x130217,_0x356c85)=>{this['_handleUIUserMessage']({'userMessage':_0x356c85});}),this['listenTo'](_0x4c07c0,'resizedTabs',(_0x81960f,_0x442038)=>{this['_setIsMaximized'](_0x442038);}),this['listenTo'](this['_aiChatUi'],'resizeTabs',()=>{_0x4c07c0['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',(_0x2b726d,_0x4df490)=>{this['activeConversation']?.['addFilesToContext'](Array['from'](_0x4df490));}),this['listenTo'](this['_aiChatUi'],'addUrlToContext',(_0x4fd3b8,_0x86c8)=>{this['activeConversation']?.['addUrlToContext'](_0x86c8);}),this['listenTo'](this['_aiChatUi'],'executeCustomItemCallback',(_0x3dfc6f,_0x201041)=>{_0x201041['callback'](this['context']);}),this['listenTo'](this['_aiChatUi'],'addResourceToContext',(_0x270d00,_0xb1a8ac)=>{this['activeConversation']?.['addResourceToContext'](_0xb1a8ac['source'],_0xb1a8ac['resource']);}),this['listenTo'](this['_aiChatUi'],'removeContextItem',(_0x2ec3dc,_0x23999d)=>{this['_removeFromContext'](_0x23999d);}),this['listenTo'](this['_aiChatUi'],'loadSourceResources',(_0x1f3c9c,_0x343c5b)=>{this['activeConversation']?.['loadSourceResources'](_0x343c5b['sourceId'],_0x343c5b['query'],_0x343c5b['uid']);}),this['listenTo'](this['_aiChatUi'],'toggleWebSearch',()=>{this['_toggleWebSearch']();}),this['listenTo'](this['_aiChatUi'],'toggleReasoning',()=>{this['_toggleReasoning']();}),this['listenTo'](this['_aiChatUi'],'selectModel',(_0x2d1237,_0x4f13cc)=>{this['activeConversation']?.['setModel'](_0x4f13cc);}),this['listenTo'](this['_aiChatUi'],'like',(_0x2deea5,{replyId:_0x2bcbdb})=>{console['log']('Liked\x20response',_0x2bcbdb);}),this['listenTo'](this['_aiChatUi'],'dislike',(_0x7617a2,{replyId:_0x16666d})=>{console['log']('Disliked\x20response',_0x16666d);}),this['listenTo'](this['_aiChatUi'],'insertSuggestion',(_0x54ba1c,_0x1e5455)=>{this['_insertSuggestion'](_0x1e5455);}),this['listenTo'](this['_aiChatUi'],'showChangeInText',(_0x1edfb2,{replyId:_0x15a442,partIndex:_0x28b821})=>{this['_aiChatBalloonShowDiff']=this['_aiChatUi']['showDiff'],this['_openBalloonFor'](_0x15a442,_0x28b821);}),this['listenTo'](this['_aiChatUi'],'mouseOverSuggestion',(_0x5d225f,{replyId:_0xc7f2ed,partIndex:_0x5d6620})=>{const _0x2921cd=this['_getDocumentRangeForReplyChanges'](_0xc7f2ed,_0x5d6620);_0x2921cd&&'$graveyard'!=_0x2921cd['range']['root']['rootName']&&this['_aiEditing']['showFakeVisualSelection']([_0x2921cd['range']],'ai-chat-controller-mouse-over');}),this['listenTo'](this['_aiChatUi'],'mouseLeaveSuggestion',()=>{this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['listenTo'](this['_aiChatUi'],'applySuggestion',(_0x5e8592,_0x14da60)=>{this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over'),this['_applySuggestion'](_0x14da60);}),this['listenTo'](this['_aiChatUi'],'toggleSuggestionDisplayMode',async(_0x38332c,{replyId:_0x6dab1f,showDiff:_0x9ae1ca})=>{const {reply:_0x4e0eba}=this['getInteractionAndReplyById'](_0x6dab1f),_0x325626=_0x4e0eba['getContentParts']({'showDiff':_0x9ae1ca});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x4e0eba['id'],'parts':_0x325626,'renderingStrategy':'static'});}),this['listenTo'](this['_aiChatUi'],'rejectSuggestion',(_0x467616,{replyId:_0x4e11fd,partIndex:_0x29c56a})=>{this['_rejectSuggestion']({'replyId':_0x4e11fd,'partIndex':_0x29c56a}),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:_0xb9933,partIndex:_0x55ed07}=this['_currentPreviewedChangeGroup'];this['_aiChatBalloonShowDiff']=!this['_aiChatBalloonShowDiff'];const {reply:_0x59e90f}=this['getInteractionAndReplyById'](_0xb9933),_0x4244cf=_0x59e90f['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff'],'groupIndex':_0x55ed07});this['_aiChatBalloon']['updateContent']({'part':_0x4244cf[0x0],'renderingStrategy':'static','keepErrors':!0x0});}),this['listenTo'](this['_aiChatBalloon'],'applySuggestion',()=>{const {replyId:_0x3180ea,partIndex:_0x1ba9da}=this['_currentPreviewedChangeGroup'];this['_applySuggestion']({'replyId':_0x3180ea,'partIndex':_0x1ba9da}),this['_aiChatBalloon']['setState']('accepted');}),this['listenTo'](this['_aiChatBalloon'],'insertSuggestion',()=>{const {replyId:_0x1813ad,partIndex:_0x1c5535}=this['_currentPreviewedChangeGroup'];this['_insertSuggestion']({'replyId':_0x1813ad,'partIndex':_0x1c5535}),this['_aiChatBalloon']['setState']('accepted');}),this['listenTo'](this['_aiChatBalloon'],'rejectSuggestion',()=>{const {replyId:_0x1b9ffe,partIndex:_0x3e8813}=this['_currentPreviewedChangeGroup'];this['_rejectSuggestion']({'replyId':_0x1b9ffe,'partIndex':_0x3e8813}),this['_aiChatBalloon']['setState']('rejected');}),this['listenTo'](this['_aiChatBalloon'],'showNext',()=>{const {replyId:_0x2815ef,partIndex:_0x363045}=this['_currentPreviewedChangeGroup'],_0x54015b=this['_getPresentableSiblingContentPartIndex'](_0x2815ef,_0x363045,'next');null!==_0x54015b&&this['_openBalloonFor'](_0x2815ef,_0x54015b);}),this['listenTo'](this['_aiChatBalloon'],'showPrevious',()=>{const {replyId:_0x272d61,partIndex:_0x2543c0}=this['_currentPreviewedChangeGroup'],_0xa44e72=this['_getPresentableSiblingContentPartIndex'](_0x272d61,_0x2543c0,'previous');null!==_0xa44e72&&this['_openBalloonFor'](_0x272d61,_0xa44e72);}),this['listenTo'](this['_aiChatBalloon'],'dialogClosed',(_0x6e5134,{id:_0xf3bfea})=>{if('aiChatBalloon'!==_0xf3bfea)return;const {replyId:_0x507346,partIndex:_0x13c9fe}=this['_currentPreviewedChangeGroup'];this['_currentPreviewedChangeGroup']=null,this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x507346,'index':_0x13c9fe,'isActive':!0x1});}));}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x10b3b8,_0x5ec402)=>{_0x5ec402['on']('ready',()=>{this['_integrateEditor'](_0x5ec402);});});const _0x2d19a4=this['context']['config']['get']('ai.chat.initialConversation');let _0x5b2014=_0x2d19a4;if('lastCreated'!=_0x2d19a4||(_0x5b2014=await this['_getLastCreatedConversationId'](),_0x5b2014))return'new'==_0x5b2014?this['_startConversationSafely']():this['loadConversation'](_0x5b2014);}async['destroy'](){return await this['_stopLastInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['_insertSuggestion'](_0x3fb243){const _0x209ad0=getEditorFromContext(this['context']);if(!_0x209ad0['plugins']['has']('TrackChanges'))throw new CKEditorError('ai-no-track-changes',null);const _0x4e894a=this['context']['plugins']['get']('DocumentCompare'),{reply:_0xe6b45c,interaction:_0x5cd219}=this['getInteractionAndReplyById'](_0x3fb243['replyId']),_0x405b60=this['_getDocumentRangeForReplyChanges'](_0x3fb243['replyId'],_0x3fb243['partIndex']),_0x20b2d9=void 0x0!==_0x3fb243['partIndex']?[_0xe6b45c['changeGroups'][_0x3fb243['partIndex']]]:_0xe6b45c['changeGroups']['filter'](_0x27dceb=>'pending'==_0x27dceb['state']),_0x53e5c5=_0x20b2d9['map'](_0xe8db0f=>_0xe6b45c['changeGroups']['indexOf'](_0xe8db0f));if(!_0x405b60||'$graveyard'==_0x405b60['range']['root']['rootName'])return void _0x53e5c5['forEach'](_0x8e2a43=>_0xe6b45c['setChangeGroupState'](_0x8e2a43,'outdated'));_0x53e5c5['forEach'](_0x15b6c9=>_0xe6b45c['setChangeGroupState'](_0x15b6c9,'accepted'));const _0x1eb254=getOperationsFromReply({'editor':_0x209ad0,'reply':_0xe6b45c,'interaction':_0x5cd219,'groups':_0x20b2d9,'transform':!0x0,'documentCompare':_0x4e894a,'documentCompareOptions':{'anchor':'main','markDeletions':!0x0}});let _0x49dee1;_0x405b60&&this['_scrollToSuggestionRange'](_0x405b60['range']),_0x209ad0['model']['change'](_0x2cb414=>{_0x49dee1=_0x2cb414['batch'],_0x209ad0['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x1eb254),this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['_batchToChanges']['set'](_0x49dee1,{'interactionId':_0x5cd219['id'],'replyId':_0xe6b45c['id'],'indexes':_0x53e5c5['slice']()}),this['_updateRatings'](_0xe6b45c);}['_applySuggestion'](_0x4dae12){const _0x3b7c10=getEditorFromContext(this['context']),_0x4c1183=this['context']['plugins']['get'](DocumentCompare),{reply:_0x48d38a,interaction:_0x5875e8}=this['getInteractionAndReplyById'](_0x4dae12['replyId']),_0x2884b1=this['_getDocumentRangeForReplyChanges'](_0x4dae12['replyId'],_0x4dae12['partIndex']),_0xf143a0=void 0x0!==_0x4dae12['partIndex']?[_0x48d38a['changeGroups'][_0x4dae12['partIndex']]]:_0x48d38a['changeGroups']['filter'](_0x25671f=>'pending'==_0x25671f['state']),_0x1e16a8=_0xf143a0['map'](_0x179f56=>_0x48d38a['changeGroups']['indexOf'](_0x179f56));if(!_0x2884b1||'$graveyard'==_0x2884b1['range']['root']['rootName'])return void _0x1e16a8['forEach'](_0x119721=>_0x48d38a['setChangeGroupState'](_0x119721,'outdated'));_0x1e16a8['forEach'](_0x11f0a9=>_0x48d38a['setChangeGroupState'](_0x11f0a9,'accepted'));const _0x532fbe=getOperationsFromReply({'editor':_0x3b7c10,'reply':_0x48d38a,'interaction':_0x5875e8,'groups':_0xf143a0,'transform':!0x0,'documentCompare':_0x4c1183,'documentCompareOptions':{'anchor':'main','markDeletions':!0x1}});let _0x27aff1;_0x2884b1&&this['_scrollToSuggestionRange'](_0x2884b1['range']),_0x3b7c10['model']['change'](_0x2482e9=>{_0x27aff1=_0x2482e9['batch'];for(const _0x4b1161 of _0x532fbe)_0x4b1161['baseVersion']=_0x3b7c10['model']['document']['version'],fixMarkerOperationOldRange(_0x3b7c10,_0x4b1161),_0x2482e9['batch']['addOperation'](_0x4b1161),_0x3b7c10['model']['applyOperation'](_0x4b1161);}),this['_batchToChanges']['set'](_0x27aff1,{'interactionId':_0x5875e8['id'],'replyId':_0x48d38a['id'],'indexes':_0x1e16a8['slice']()}),this['_updateRatings'](_0x48d38a);}['_rejectSuggestion'](_0xc708fa){const {reply:_0x4efc7d}=this['getInteractionAndReplyById'](_0xc708fa['replyId']);_0x4efc7d['setChangeGroupState'](_0xc708fa['partIndex'],'rejected');}['_openBalloonFor'](_0x2fdc11,_0x4c6604){if(!this['_aiChatBalloon'])return;const {reply:_0x2e5439}=this['getInteractionAndReplyById'](_0x2fdc11),_0x36575f=_0x2e5439['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff']});let _0x19d48a,_0x1496ea;if(void 0x0!==_0x4c6604?(_0x1496ea=_0x36575f['find'](_0x516aaa=>_0x516aaa['index']==_0x4c6604),_0x19d48a=_0x1496ea?.['index']):(_0x1496ea=_0x36575f[0x0],_0x19d48a=_0x1496ea['index']),this['_currentPreviewedChangeGroup']?.['replyId']==_0x2fdc11&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0x19d48a)return;const _0x4cd97b=this['_getUserPresentableContentPartDocumentRange'](_0x2fdc11,_0x2e5439,_0x1496ea);if(!_0x4cd97b)return void this['_aiChatBalloon']['close']();this['_currentPreviewedChangeGroup']={'replyId':_0x2fdc11,'partIndex':_0x19d48a},this['_scrollToSuggestionRange'](_0x4cd97b,!0x0);const _0x4828af=this['_getPresentableSiblingContentPartIndex'](_0x2fdc11,_0x19d48a,'next');this['_aiChatBalloon']['updateContent']({'part':_0x1496ea,'renderingStrategy':'static'}),this['_aiChatBalloon']['open']({'index':_0x19d48a,'title':getTranslation$i(this['context']['locale'],'AI_BALLOON_HEADER_TITLE',(_0x19d48a+0x1)['toString']()),'showRotator':null!==_0x4828af,'ranges':[_0x4cd97b],'areActionsDisabled':_0x2e5439['areActionsDisabled']}),this['_aiChatBalloon']['setState']('pending'),this['_aiChatUi']['scrollFeedToSuggestion'](_0x2fdc11,_0x19d48a),this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x2fdc11,'index':_0x19d48a,'isActive':!0x0});}['_getPresentableSiblingContentPartIndex'](_0x180ae6,_0x420982,_0x166d6f){const {reply:_0x4e848e}=this['getInteractionAndReplyById'](_0x180ae6),_0x503e29=_0x4e848e['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff']});if(0x1==_0x503e29['length'])return null;const _0x1d4cd8=_0x503e29['findIndex'](_0x519c87=>_0x519c87['index']==_0x420982),_0x11442e='next'==_0x166d6f?0x1:-0x1;let _0x4a171a=_0x503e29['at']((_0x1d4cd8+_0x11442e)%_0x503e29['length'])['index'],_0x1b2242=_0x503e29[_0x4a171a];for(;!this['_getUserPresentableContentPartDocumentRange'](_0x180ae6,_0x4e848e,_0x1b2242);){if(_0x4a171a=_0x503e29['at']((_0x4a171a+_0x11442e)%_0x503e29['length'])['index'],_0x4a171a===_0x1d4cd8)return null;_0x1b2242=_0x503e29[_0x4a171a];}return _0x4a171a;}['_getUserPresentableContentPartDocumentRange'](_0x229afc,_0x4f4962,_0x48cab2){const _0x3df97c=_0x4f4962['changeGroups'];if(!_0x48cab2['hasChanges'])return null;const _0x154524=_0x3df97c['find'](_0x2e7a91=>_0x2e7a91['index']==_0x48cab2['index']);if('pending'!==_0x154524?.['state'])return null;const _0x4429dc=this['_getDocumentRangeForReplyChanges'](_0x229afc,_0x48cab2['index']);if(!_0x4429dc)return null;const {range:_0x185c6f,currentIndex:_0x481f9e}=_0x4429dc;return'$graveyard'==_0x185c6f['root']['rootName']?(_0x4f4962['setChangeGroupState'](_0x481f9e,'outdated'),null):_0x4429dc['range'];}['_getDocumentRangeForReplyChanges'](_0x57c6c4,_0x2421ca){const _0x5b3e75=getEditorFromContext(this['context']),{reply:_0x3b3ff7,interaction:_0x4a362f}=this['getInteractionAndReplyById'](_0x57c6c4),_0x4e1e0e=_0x3b3ff7['changeGroups']['filter'](_0x508e67=>'pending'==_0x508e67['state']),_0x349667=_0x4e1e0e['map'](_0x5488a8=>_0x3b3ff7['changeGroups']['indexOf'](_0x5488a8));void 0x0===_0x2421ca&&(_0x2421ca=_0x349667[0x0]);const _0x2b50a5=_0x349667['indexOf'](_0x2421ca);if(-0x1==_0x2b50a5)return null;const _0x5b86c6=_0x4e1e0e[_0x2b50a5],_0x41b626=new Document([]),_0x4c72e2=new Document([]);for(const _0x38af3b of _0x5b86c6['changes'])if('removed'!=_0x38af3b['type']&&_0x4c72e2['children']['push'](_0x38af3b['node']['cloneNode'](!0x0)),'new'!=_0x38af3b['type']){const _0x2ddf1b=findOne(_0x1c658b=>getAttribute(_0x1c658b,'data-id')==_0x38af3b['id'],_0x3b3ff7['documentContextContent'],!0x0);_0x41b626['children']['push'](_0x2ddf1b['cloneNode'](!0x0));}if(0x0==_0x41b626['children']['length']){if(_0x5b86c6['changes'][0x0]['anchorId']){const _0x5abf73=findByAttribute('data-id',_0x5b86c6['changes'][0x0]['anchorId'],_0x3b3ff7['documentContextContent']);_0x41b626['children']['unshift'](_0x5abf73['cloneNode'](!0x0)),_0x4c72e2['children']['unshift'](_0x5abf73['cloneNode'](!0x0)),_0x5abf73['nextSibling']&&(_0x41b626['children']['push'](_0x5abf73['nextSibling']['cloneNode'](!0x0)),_0x4c72e2['children']['push'](_0x5abf73['nextSibling']['cloneNode'](!0x0)));}else{const _0x38ba3=_0x3b3ff7['documentContextContent']['children'][0x0];if(!_0x38ba3)return null;_0x41b626['children']['push'](_0x38ba3['cloneNode'](!0x0)),_0x4c72e2['children']['push'](_0x38ba3['cloneNode'](!0x0));}}const _0x581e3a=_0x4a362f['getDocumentContext'](),_0x464187=_0x5b3e75['data']['parse'](_0x581e3a['content']),_0x9b2651=serialize(_0x41b626),_0x1ce895=_0x5b3e75['data']['parse'](_0x9b2651),_0x179b3a=_0x5b3e75['data']['parse'](_0x9b2651),_0x6bef83=_0x5b3e75['model']['createPositionAt'](_0x1ce895,0x0),_0x35083f=serialize(_0x4c72e2),_0x39e3e0={'anchor':_0x6bef83,'markDeletions':!0x1},_0x3c7e30=_0x5b3e75['plugins']['get'](DocumentCompare)['getDiff'](_0x9b2651,_0x35083f,_0x39e3e0)['getOperations']();if(!_0x3c7e30['length'])return null;_0x5b3e75['model']['change'](_0x27de19=>{for(const _0x71e063 of _0x3c7e30)if('remove'==_0x71e063['type']){const _0x5ee1f9=_0x71e063['sourcePosition'],_0x27edb1=_0x71e063['howMany'],_0x18e6a3=new _DetachOperation(_0x5ee1f9,_0x27edb1);_0x27de19['batch']['addOperation'](_0x18e6a3),_0x5b3e75['model']['applyOperation'](_0x18e6a3);}else'marker'!==_0x71e063['type']&&(_0x71e063['baseVersion']=null,_0x71e063['isDocumentOperation']=!0x1,_0x27de19['batch']['addOperation'](_0x71e063),_0x5b3e75['model']['applyOperation'](_0x71e063));});const _0x2aebea=getMinimalSelection(_0x5b3e75,_0x3c7e30,_0x1ce895);expandSelectionWithContext(_0x5b3e75['model'],_0x2aebea);const _0x32a1bb=_0x2aebea['getFirstRange']()['start']['path']['slice'](),_0x2f36bd=_0x2aebea['getFirstRange']()['end']['path']['slice'](),_0x3809e9=[];let _0x2c2df6=_0x1ce895,_0x31472e=_0x179b3a;for(let _0x13a945=0x0;_0x13a945<_0x2f36bd['length'];_0x13a945++){const _0x4615b2=_0x2c2df6['maxOffset']-_0x2f36bd[_0x13a945];_0x3809e9[_0x13a945]=_0x31472e['maxOffset']-_0x4615b2,_0x2c2df6=_0x2c2df6['getChildAtOffset'](_0x2f36bd[_0x13a945]),_0x31472e=_0x31472e['getChildAtOffset'](_0x3809e9[_0x13a945]);}const _0x22a08b=_0x5b3e75['model']['createRange'](_0x5b3e75['model']['createPositionFromPath'](_0x179b3a,_0x32a1bb),_0x5b3e75['model']['createPositionFromPath'](_0x179b3a,_0x3809e9)),_0x1a5f58=_0x179b3a['getChild'](0x0)['getAttribute'](DATA_ID_MODEL_ATTRIBUTE),_0x7b9b30=Array['from'](_0x464187['getChildren']())['find'](_0x165917=>_0x165917['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)==_0x1a5f58)['getPath'](),_0x3455ab=_0x22a08b['start']['path']['slice'](),_0xb4a141=_0x22a08b['end']['path']['slice']();_0x3455ab[0x0]=_0x7b9b30[0x0]+_0x3455ab[0x0],_0xb4a141[0x0]=_0x7b9b30[0x0]+_0xb4a141[0x0];let _0x21de84=_0x5b3e75['model']['createRange'](_0x5b3e75['model']['createPositionFromPath'](_0x5b3e75['model']['document']['getRoot'](),_0x3455ab),_0x5b3e75['model']['createPositionFromPath'](_0x5b3e75['model']['document']['getRoot'](),_0xb4a141));const _0x3efb08=_0x5b3e75['model']['document']['history']['getOperations'](_0x581e3a['version']);for(const _0x38ec87 of _0x3efb08)_0x21de84=ModelRange['_createFromRanges'](_0x21de84['getTransformedByOperation'](_0x38ec87));return{'range':_0x21de84,'currentIndex':_0x2421ca};}['_integrateEditor'](_0x511cd0){if(!_0x511cd0['plugins']['has']('Undo'))return;const _0x17eb72=_0x511cd0['commands']['get']('undo'),_0x45c41c=_0x511cd0['commands']['get']('redo');this['listenTo'](_0x17eb72,'revert',(_0x47f5d8,_0x40a536,_0x525aa4)=>{const _0x367fd1=this['_batchToChanges']['get'](_0x40a536);if(!_0x367fd1)return;const _0x3d4685=this['activeConversation']['getInteraction'](_0x367fd1['interactionId'])['getReply'](_0x367fd1['replyId']);_0x367fd1['indexes']['forEach'](_0x5b1f1c=>_0x3d4685['setChangeGroupState'](_0x5b1f1c,'pending')),this['_batchToChanges']['delete'](_0x40a536),this['_batchToChanges']['set'](_0x525aa4,_0x367fd1);}),this['listenTo'](_0x45c41c,'revert',(_0x3f344e,_0x2b3e99,_0xc4c7c5)=>{const _0x21efdc=this['_batchToChanges']['get'](_0x2b3e99);if(!_0x21efdc)return;const _0x4d51b1=this['activeConversation']['getInteraction'](_0x21efdc['interactionId'])['getReply'](_0x21efdc['replyId']);_0x21efdc['indexes']['forEach'](_0xdb4ae9=>_0x4d51b1['setChangeGroupState'](_0xdb4ae9,'accepted')),this['_batchToChanges']['delete'](_0x2b3e99),this['_batchToChanges']['set'](_0xc4c7c5,_0x21efdc);});}async['loadConversation'](_0x1442e1){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'](_0x1442e1)['getConversation'](),await this['_startConversationSafely'](_0x1442e1),this['updateConversationTitle']('\x20'),await this['activeConversation']['load'](_0x1442e1,this['_aiEditing']['sessionId']),this['activeConversation']['isCurrentDocumentInConversation']()&&this['addCurrentDocumentToChatContext']();}catch(_0x1174ec){this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION'),'id':_0x1442e1}),this['_logError'](new CKEditorError('ai-chat-conversation-not-found',this,{'error':_0x1174ec}));}finally{this['_aiChatUi']['startAutoScroll'](),this['_aiChatUi']['setFeedItemRenderingStrategy']('streaming'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1);}}async['_getLastCreatedConversationId'](){const _0x147ea0=this['_aiConnector']['fetchConversations'](this['getGroupId'](),{'limit':0x1,'sortBy':'createdAt'});try{const _0x76877b=await _0x147ea0['getConversations']();return _0x76877b['length']?_0x76877b[0x0]['id']:'new';}catch(_0x126711){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':_0x126711})),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1),this['_aiChatUi']['disableControls'](),null;}}['handleRemovedConversation'](_0xf0ec06){this['activeConversation']['id']===_0xf0ec06&&this['_startConversationSafely']();}['addCurrentDocumentToChatContext'](){this['activeConversation']?.['addCurrentDocumentToContext'](getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'));}async['addSelectionToChatContext'](){const _0x2759a0=this['_aiEditing']['getSelectionText']();this['activeConversation']?.['addSelectionToContext'](_0x2759a0),this['addCurrentDocumentToChatContext']();}['removeSelectionFromChatContext'](){this['activeConversation']?.['removeSelectionFromContext']();}['focusPromptInput'](){this['_aiChatUi']['focusPromptInput']();}async['startConversation'](){await this['_startConversationSafely']();}async['sendMessage']({message:_0x4655ee,attributes:_0x322237}){await this['_handleUIUserMessage']({'userMessage':_0x4655ee,'attributes':_0x322237});}['getGroupId'](){const _0x18bffd=this['context']['config']['get']('collaboration.channelId');if(!_0x18bffd)throw new CKEditorError('ai-chat-missing-channel-id',this);return _0x18bffd;}async['_startConversationSafely'](_0x459ef3){try{this['_aiChatUi']['enableControls'](),await this['_handleStartConversation'](_0x459ef3);}catch(_0x2485dd){this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x459ef3||uid()}),console['error'](_0x2485dd),this['activeConversation']=void 0x0,this['_aiChatUi']['disableControls']();}}async['_handleStartConversation'](_0x3a8977){let _0x421e38;this['context']['plugins']['has']('AIChatBalloon')&&this['context']['plugins']['get']('AIChatBalloon')['close'](),_0x3a8977||!this['activeConversation']?_0x421e38=this['context']['config']['get']('ai.models.defaultModelId'):this['_aiChatUi']['isModelAvailable']&&(_0x421e38=this['activeConversation']['selectedModel']['id']),await this['_stopLastInteraction']();const _0x48522b=this['getGroupId'](),_0x3aaed0=_0x3a8977||uid();this['activeConversation']=new AIChatConversation({'connector':this['_aiConnector'],'chatModels':this['_aiChatModels'],'selectedModelId':_0x421e38,'conversationId':_0x3aaed0,'group':_0x48522b,'getEditor':()=>getEditorFromContext(this['context']),'isFromHistory':!!_0x3a8977}),this['activeConversation']['delegate']('toolDataReceived','interactionStarted')['to'](this),this['activeConversation']['on']('conversationInitialized',(_0x3e2007,_0x5ad969)=>{this['_aiChatUi']['createConversation'](_0x5ad969),this['_aiChatUi']['resetMessageInput'](),this['_aiChatUi']['clearPendingContextUI'](),this['_aiChatUi']['clearConversationContextUI'](),_0x3a8977||(this['_aiChatUi']['resetConversationTitle'](),this['addCurrentDocumentToChatContext']());}),this['activeConversation']['on']('uploadProgressChanged',(_0x213fd8,_0x462817)=>{this['_aiChatUi']['setIsUploadInProgress'](_0x462817['isUploadInProgress']);}),this['activeConversation']['on']('interactionCreated',(_0x31cc05,_0x1ccd1f)=>{this['_aiChatUi']['addFeedItemUserMessage'](_0x1ccd1f);}),this['activeConversation']['on']('webSearchStarted',()=>{const _0x5b73b1=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this['_aiChatUi']['setLoadingMessage'](_0x5b73b1);}),this['activeConversation']['on']('reasoningStarted',()=>{const _0x29553c=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this['_aiChatUi']['setLoadingMessage'](_0x29553c);}),this['activeConversation']['on']('webSearchFinished',(_0x45ce25,_0x1a9ae1)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x1a9ae1,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this['activeConversation']['on']('reasoningFinished',(_0x115a50,_0x4aa88c)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x4aa88c,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this['activeConversation']['on']('interactionStarted',()=>{this['_aiChatUi']['startInteraction']();}),this['activeConversation']['on']('interactionFinished',async()=>{await this['_aiChatUi']['finishInteraction']();}),this['activeConversation']['on']('interactionDestroyed',(_0x14a3d8,_0x11b4bd)=>{this['_aiChatUi']['removeFeedInteraction'](_0x11b4bd['id']);}),this['activeConversation']['on']('setConversationTitle',(_0x2ccfd9,_0x1e11d5,_0x5a808f)=>{this['updateConversationTitle'](_0x1e11d5,_0x5a808f);}),this['activeConversation']['on']('replyCreated',(_0x53ac15,_0x1b037e)=>{'text'===_0x1b037e['type']?this['_aiChatUi']['addFeedItemAIReply'](_0x1b037e):this['_aiChatUi']['addFeedItemAISuggestion'](_0x1b037e);}),this['activeConversation']['on']('replyContentUpdated',async(_0x3428a1,_0x1dd8d6)=>{await this['_updateReplyContent']({'reply':_0x1dd8d6});}),this['activeConversation']['on']('replyChangeGroupStateUpdated',(_0x2ad553,{reply:_0x658d65,index:_0x4ce7d0,state:_0x10bd58})=>{this['_aiChatUi']['updateFeedItemAIReplySuggestionPartState']({'id':_0x658d65['id'],'index':_0x4ce7d0,'state':_0x10bd58}),this['_currentPreviewedChangeGroup']?.['replyId']['includes'](_0x658d65['id'])&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0x4ce7d0&&this['_aiChatBalloon']?.['setState'](_0x10bd58);}),this['activeConversation']['on']('contextItemAdded',(_0x29da39,_0x3af3a8)=>{if(this['_aiChatUi']['addContextItem'](_0x3af3a8['contextItem'],_0x3af3a8['isLoading']),'selection'===_0x3af3a8['contextItem']['type']){const _0x3542f3=[...getEditorFromContext(this['context'])['model']['document']['selection']['getRanges']()];this['_aiEditing']['showFakeVisualSelection'](_0x3542f3,'ai-conversation-'+this['activeConversation']?.['id']);}}),this['activeConversation']['on']('contextItemRemoved',(_0xfac16a,_0x31eb8a)=>{this['_aiChatUi']['removeContextItem'](_0x31eb8a['uiId']),'current-document'==_0x31eb8a['uiId']&&this['removeSelectionFromChatContext'](),'selection'===_0x31eb8a['type']&&this['_aiEditing']['hideFakeVisualSelection']('ai-conversation-'+this['activeConversation']?.['id']);}),this['activeConversation']['on']('contextItemLoadingEnded',(_0x121612,_0x3b5476)=>{this['_aiChatUi']['setContextItemLoading'](_0x3b5476['contextItem']['uiId'],_0x3b5476['isLoading']);}),this['activeConversation']['on']('contextSent',(_0x3dea08,_0x27e242)=>{this['_aiChatUi']['setConversationContext'](_0x27e242['contextItems']);}),this['activeConversation']['on']('addContextOptionsChanged',(_0x165cc4,_0x252782)=>{this['_aiChatUi']['setAddContextOptions'](_0x252782['options']);}),this['activeConversation']['on']('sourceResourcesLoaded',(_0x20ccb0,_0x2b2cca)=>{this['_aiChatUi']['populateSourceResourceBalloon'](_0x2b2cca['sourceId'],_0x2b2cca['source'],_0x2b2cca['resources'],_0x2b2cca['uid']);}),this['activeConversation']['on']('resourceStateChanged',(_0x57036a,_0x1cf0a8)=>{this['_aiChatUi']['updateResourceState'](_0x1cf0a8['sourceId'],_0x1cf0a8['resourceId'],_0x1cf0a8['isInContext']);}),this['activeConversation']['on']('capabilitiesUpdated',(_0x43edb1,_0x20c551)=>{this['_aiChatUi']['updateCapabilities'](_0x20c551);}),this['activeConversation']['on']('modelSelected',async(_0x550d45,_0x55e651)=>{const _0x400488=(await this['_aiChatModels']['getAll']())['find'](_0x483955=>_0x483955['id']===_0x55e651['selectedModel']?.['id'])||null;this['_aiChatUi']['setSelectedModel'](_0x400488,_0x55e651['isDisabled']);}),this['activeConversation']['on']('error',(_0x5ea081,{error:_0x5d3932,interactionId:_0x156fba,fileName:_0xd84872,url:_0x5dd789,sourceId:_0x2e362d,sourceLabel:_0x218924})=>{const _0x4239fb=_0x156fba?_0x156fba+':'+uid():uid();_0x5d3932['message']['startsWith']('ai-request-aborted')?this['_aiChatUi']['addFeedItemStaticMessage']({'staticMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_ABORTED_MESSAGE'),'id':_0x4239fb}):_0x5d3932['message']['startsWith']('ai-chat-conversation-init-failed')||_0x5d3932['message']['startsWith']('ai-chat-conversation-start-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x4239fb}),this['_logError'](_0x5d3932)):_0x5d3932['message']['startsWith']('ai-chat-file-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE',_0xd84872),'id':_0x4239fb}):_0x5d3932['message']['startsWith']('ai-chat-url-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL',_0x5dd789),'id':_0x4239fb}):_0x5d3932['message']['startsWith']('ai-chat-context-invalid-data')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_INVALID_DATA'),'id':_0x4239fb}):_0x5d3932['message']['startsWith']('ai-chat-context-unsupported-type')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE'),'id':_0x4239fb}):_0x5d3932['message']['startsWith']('ai-chat-source-resources-load-failed')?(_0x2e362d&&this['_aiChatUi']['closeSourceResourceBalloon'](_0x2e362d),this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES',_0x218924||'source'),'id':_0x4239fb}),this['_logError'](_0x5d3932)):_0x5d3932['message']['startsWith']('ai-chat-resource-load-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_RESOURCE_LOAD_FAILED'),'id':_0x4239fb}),this['_logError'](_0x5d3932)):_0x5d3932['message']['startsWith']('ai-chat-invalid-request')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_INVALID_REQUEST'),'id':_0x4239fb}),this['_logError'](_0x5d3932)):_0x5d3932['message']['startsWith']('ai-chat-context-unsupported-file-type')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE'),'id':_0x4239fb}),this['_logError'](_0x5d3932)):_0x5d3932['message']['startsWith']('ai-chat-context-file-too-large')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_FILE_TOO_LARGE'),'id':_0x4239fb}),this['_logError'](_0x5d3932)):_0x5d3932['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':_0x4239fb}),this['_logError'](_0x5d3932)):_0x5d3932['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':_0x4239fb}),this['_logError'](_0x5d3932)):(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_GENERIC_ERROR'),'id':_0x4239fb}),this['_logError'](_0x5d3932));}),await this['activeConversation']['init'](this['context']['config']['get']('ai.chat.context')),_0x3a8977||await this['activeConversation']['start']();}async['_handleUIUserMessage']({userMessage:_0x1c9d79,attributes:_0x30eb30}){if(!this['activeConversation'])throw new CKEditorError('ai-chat-controller-no-active-conversation');if(this['activeConversation']['isCurrentDocumentInContext']()){const _0x2fc3a7=await this['_aiEditing']['getDocumentData']();await this['activeConversation']['updateCurrentDocumentInContext'](_0x2fc3a7);}this['activeConversation']['id']&&this['activeConversation']['isStarted']&&await this['activeConversation']['handleUserInteraction']({'userMessage':_0x1c9d79,'attributes':_0x30eb30});}['_showConversationHistory'](){console['log']('Showing\x20conversation\x20history...');}['_setIsMaximized'](_0x42aa48){this['_aiChatUi']['setIsMaximized'](_0x42aa48);}['_logError'](_0x3c850c){logError(_0x3c850c['message']);}['_removeFromContext'](_0x44ea42){this['activeConversation']?.['removeFromContext'](_0x44ea42);}['_toggleWebSearch'](){this['activeConversation']?.['toggleWebSearch']();}['_toggleReasoning'](){this['activeConversation']?.['toggleReasoning']();}['getInteractionAndReplyById'](_0x1f44d9){const [_0x2c791a,_0x1c1732]=_0x1f44d9['split'](':'),_0x4858e4=this['activeConversation']['getInteraction'](_0x2c791a),_0x5efb92=_0x4858e4['getReply'](_0x1c1732);return{'interaction':_0x4858e4,'reply':_0x5efb92};}['_scrollToSuggestionRange'](_0x432c9f,_0x2abfde=!0x1){const _0x38ba90=getEditorFromContext(this['context']),_0x43511c={'target':_0x38ba90['editing']['view']['domConverter']['viewRangeToDom'](_0x38ba90['editing']['mapper']['toViewRange'](_0x432c9f)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2abfde};_0x2abfde&&(_0x43511c['alignToTop']=!0x0),scrollViewportToShowTarget(_0x43511c);}['updateConversationTitle'](_0x28b4b6,_0x2397b9=!0x1){this['_aiChatUi']['setConversationTitle'](_0x28b4b6||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),_0x2397b9);}async['_updateReplyContent']({reply:_0x548600,renderingStrategy:_0x2bb587}){const {id:_0xb00ef4,interactionId:_0x38aaca,isDone:_0x5d0f79,type:_0x51a7eb,parsedContent:_0x36870b}=_0x548600,_0x19b994=_0x38aaca+':'+_0xb00ef4;if('modification'===_0x51a7eb){const _0x3857b4=_0x548600['getContentParts']({'showDiff':this['_aiChatUi']['showDiff']});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x19b994,'parts':_0x3857b4,'renderingStrategy':_0x2bb587,'isDone':_0x5d0f79});}else'text'===_0x51a7eb&&await this['_aiChatUi']['updateFeedItemAIReplyContent']({'id':_0x19b994,'parsedContent':_0x36870b,'renderingStrategy':_0x2bb587,'isDone':_0x5d0f79});_0x5d0f79&&_0x548600['sources']['length']>0x0&&this['_aiChatUi']['updateFeedItemAIReplySources'](_0x19b994,_0x548600['sources']);}async['_stopLastInteraction'](){const _0x397618=this['activeConversation']?.['lastInteraction'];_0x397618&&(_0x397618['stop'](),this['_aiChatUi']['stopInteraction'](_0x397618));}async['_flushLastInteractionUI'](){const _0x27c3a2=this['activeConversation']?.['lastInteraction'];if(_0x27c3a2){for await(const _0x50377b of _0x27c3a2['replies'])await this['_updateReplyContent']({'reply':_0x50377b,'renderingStrategy':'static'});}}['_updateRatings'](_0x500955){const _0xc14bd={'positiveCount':_0x500955['changeGroups']['filter'](_0x177bd1=>'accepted'===_0x177bd1['state'])['length'],'totalCount':_0x500955['changeGroups']['length'],'modificationId':_0x500955['id']},_0x48348a=this['activeConversation']['getInteraction'](_0x500955['interactionId'])['messageId'];_0x48348a&&this['_aiConnector']['upsertAIChatRating'](this['activeConversation']['id'],_0x48348a,_0xc14bd);}['_registerToolDataCallback'](_0x23f57a){let _0x4e41f3=null,_0x11fea6=null;this['on']('toolDataReceived',(_0x10f6a8,_0x42af9f,_0x20cdcb)=>{_0x20cdcb['id']!==_0x4e41f3&&(_0x4e41f3=_0x20cdcb['id'],_0x11fea6=this['_getAIChatInteractionAPI'](_0x20cdcb)),_0x23f57a(_0x42af9f,_0x11fea6);});}['_getAIChatInteractionAPI'](_0xa36955){const _0x5aff11=this['_aiChatUi'],_0x3988e2=()=>{_0xa36955['resetWebSearchState'](),_0xa36955['resetReasoningState'](),_0x5aff11['clearLoadingMessage']();},_0x31f6a0=()=>{_0xa36955['currentReply']&&(_0xa36955['currentReply']['done'](),_0xa36955['currentReply']=void 0x0);};return{'insertTextReply':(_0x5ba10f,_0x429eab)=>{_0x31f6a0(),_0x3988e2();const _0x47aaa3=_0xa36955['currentReply']=_0xa36955['createReply']({'type':'text','interactionId':_0xa36955['id'],'content':_0x5ba10f,'id':_0x429eab||uid()});return _0x31f6a0(),_0x47aaa3;},'insertCustomElement':async(_0x2743fe,_0x4cfb88)=>(_0x31f6a0(),_0x3988e2(),_0x5aff11['addFeedItemCustomElement'](_0x2743fe,_0x4cfb88||uid())),'setLoadingMessage':_0x13f0eb=>{_0x5aff11['setLoadingMessage'](_0x13f0eb);},'clearLoadingMessage':()=>{_0x5aff11['clearLoadingMessage']();}};}}const AI_VISUAL_SELECTION_MARKER_NAME='ai-selection';class AIEditing extends ContextPlugin{constructor(_0x1be623){super(_0x1be623),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 _0x31665b=getEditorFromContext(this['context']),_0x3f3348=_0x31665b['plugins']['has']('RealTimeCollaborationClient')&&_0x31665b['plugins']['get']('RealTimeCollaborationClient')['sessionId'];this['_sessionId']=_0x3f3348||uid();}return this['_sessionId'];}async['getDocumentData'](){const _0x32b72d=getEditorFromContext(this['context']),_0x146c58=_0x32b72d['model'],_0x17b5ed=_0x32b72d['data']['toView'](_0x146c58['document']['getRoot'](),{'convertAiChatSelectionMarker':!0x0}),_0x4e6579=new ViewDowncastWriter(_0x32b72d['editing']['view']['document']);this['_setDataIdsOnChildren'](_0x17b5ed,_0x4e6579);let _0x34a881=await this['_getDocumentDataStringFromView'](_0x17b5ed);const _0x5674cb=this['_getMarkersInDocumentOrder'](),_0x582cae=[];for(const _0x1b153c of _0x5674cb){const _0x5ce90b='<'+_0x1b153c['name']+':start></'+_0x1b153c['name']+':start>',_0x3d1723=_0x34a881['indexOf'](_0x5ce90b);_0x34a881=_0x34a881['substring'](0x0,_0x3d1723)+_0x34a881['substring'](_0x3d1723+_0x5ce90b['length']);const _0x32550e='<'+_0x1b153c['name']+':end></'+_0x1b153c['name']+':end>',_0x1cb235=_0x34a881['indexOf'](_0x32550e);_0x34a881=_0x34a881['substring'](0x0,_0x1cb235)+_0x34a881['substring'](_0x1cb235+_0x32550e['length']),_0x582cae['push']({'markerName':_0x1b153c['name'],'start':_0x3d1723,'end':_0x1cb235,'htmlFragment':_0x34a881['substring'](_0x3d1723,_0x1cb235)});}return{'content':_0x34a881,'version':_0x32b72d['model']['document']['version'],'sessionId':this['sessionId'],'selections':_0x582cae};}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x5b92ed,_0x36f094)=>{_0x36f094['on']('ready',()=>{this['_integrateEditor'](_0x36f094);});});}['_setOutputDataProcessor'](_0x154917){this['_outputDataProcessor']=_0x154917;}async['_getDocumentDataStringFromView'](_0x324061){let _0x44665a;const _0x3192c7=getEditorFromContext(this['context']);if(this['_outputDataProcessor']){const _0x325065=_0x3192c7['data']['processor']['domConverter']['viewToDom'](_0x324061),_0x1f0f48=await this['_outputDataProcessor'](_0x325065);_0x44665a=_0x3192c7['data']['processor']['htmlWriter']['getHtml'](_0x1f0f48);}else _0x44665a=_0x3192c7['data']['processor']['toData'](_0x324061);return _0x44665a;}['_integrateEditor'](_0x51cf24){_0x51cf24['conversion']['for']('editingDowncast')['markerToHighlight']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':{'classes':['ck-fake-ai-selection','ck-ai-assistant-ui_theme'],'priority':0xc}}),_0x51cf24['conversion']['for']('dataDowncast')['markerToElement']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':(_0x4756fe,{writer:_0xbd6988,options:_0x2f476f})=>_0x2f476f['convertAiChatSelectionMarker']?_0xbd6988['createUIElement'](_0x4756fe['markerName']+':'+(_0x4756fe['isOpening']?'start':'end')):null});}['showFakeVisualSelection'](_0x21c35e,_0x52c4dc,_0xd0d5b6=!0x1,_0x41201b=!0x1){if(this['_displayedFakeSelectionLocked']&&!_0x41201b)return!0x1;const _0x34748c=getEditorFromContext(this['context'])['model'];return _0x34748c['change'](_0x32f011=>{this['_displayedFakeSelectionId']&&this['hideFakeVisualSelection'](this['_displayedFakeSelectionId']),this['_displayedFakeSelectionId']=_0x52c4dc,this['_displayedFakeSelectionLocked']=_0xd0d5b6;let _0x5ad026=0x0;for(let _0x2e2386 of _0x21c35e){const _0x3e83ac=AI_VISUAL_SELECTION_MARKER_NAME+':'+_0x5ad026;if(_0x2e2386['start']['isAtEnd']){const _0x21fff1=_0x2e2386['start']['getLastMatchingPosition'](({item:_0x3b474d})=>!_0x34748c['schema']['isContent'](_0x3b474d),{'boundaries':_0x2e2386});_0x2e2386=_0x32f011['createRange'](_0x21fff1,_0x2e2386['end']);}_0x32f011['addMarker'](_0x3e83ac,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2e2386}),_0x5ad026++;}}),window['getSelection']()?.['removeAllRanges'](),!0x0;}['hideFakeVisualSelection'](_0x578703){if(this['_displayedFakeSelectionId']!=_0x578703)return!0x1;this['_displayedFakeSelectionId']=null,this['_displayedFakeSelectionLocked']=!0x1;const _0x1219bc=getEditorFromContext(this['context']),_0x3efd0a=_0x1219bc['model']['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME);return _0x1219bc['model']['change'](_0x4e4e6c=>{for(const _0x46bf62 of _0x3efd0a)_0x4e4e6c['removeMarker'](_0x46bf62);}),!0x0;}async['modelToDataWithIds'](_0x5d682a){const _0x5d1bdd=getEditorFromContext(this['context']),_0x2b1454=_0x5d1bdd['data']['toView'](_0x5d682a),_0x8987a=new ViewDowncastWriter(_0x5d1bdd['editing']['view']['document']);return this['_setDataIdsOnChildren'](_0x2b1454,_0x8987a),this['_getDocumentDataStringFromView'](_0x2b1454);}['_setDataIdsOnChildren'](_0x5be229,_0x1a36dd){let _0x10e05c=!0x1;const _0x4f6a47=new Set();for(const _0x54c10d of _0x5be229['getChildren']()){const _0x543062=_0x54c10d['is']('emptyElement')||_0x54c10d['is']('containerElement');if(!_0x54c10d['is']('element'))continue;(this['_setDataIdsOnChildren'](_0x54c10d,_0x1a36dd)||_0x543062)&&(_0x1a36dd['setAttribute']('data-id',this['_nextDataId'](_0x4f6a47),_0x54c10d),_0x10e05c=!0x0);}return _0x10e05c;}['_nextDataId'](_0x591b19){let _0x56e9bb;do{_0x56e9bb='';for(let _0xe24c94=0x0;_0xe24c94<0x4;_0xe24c94++)_0x56e9bb+=String['fromCharCode'](0x61+Math['floor'](0x1a*Math['random']()));}while(_0x591b19['has'](_0x56e9bb));return _0x591b19['add'](_0x56e9bb),_0x56e9bb;}['getSelectionText'](){const {model:_0x3e8de3}=getEditorFromContext(this['context']),_0x16f5b2=_0x3e8de3['document']['selection'],_0x33e1ca=[];for(const _0x514207 of _0x16f5b2['getRanges']())for(const _0x458565 of _0x514207['getItems']())_0x458565['is']('$textProxy')?_0x33e1ca['push'](_0x458565['data']):_0x458565['is']('element')&&_0x33e1ca['length']>0x0&&'\x20'!==_0x33e1ca[_0x33e1ca['length']-0x1]&&_0x33e1ca['push']('\x20');return _0x33e1ca['length']?'\x22'+_0x33e1ca['join']('')['trim']()+'\x22':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL');}['_getMarkersInDocumentOrder'](){const _0x4307b6=getEditorFromContext(this['context'])['model'];return Array['from'](_0x4307b6['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME))['sort']((_0x361934,_0x7f8245)=>_0x361934['getStart']()['isBefore'](_0x7f8245['getStart']())?-0x1:_0x361934['getStart']()['isAfter'](_0x7f8245['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(_0x29c760,_0x1b3f60){var _0x150627,_0xd2c7ea,_0x240649,_0x67ef4,_0x4304e2=_0x1b3f60['attributes'];if(_0x1b3f60['nodeType']!==DOCUMENT_FRAGMENT_NODE&&_0x29c760['nodeType']!==DOCUMENT_FRAGMENT_NODE){for(var _0x59031a=_0x4304e2['length']-0x1;_0x59031a>=0x0;_0x59031a--)_0xd2c7ea=(_0x150627=_0x4304e2[_0x59031a])['name'],_0x240649=_0x150627['namespaceURI'],_0x67ef4=_0x150627['value'],_0x240649?(_0xd2c7ea=_0x150627['localName']||_0xd2c7ea,_0x29c760['getAttributeNS'](_0x240649,_0xd2c7ea)!==_0x67ef4&&('xmlns'===_0x150627['prefix']&&(_0xd2c7ea=_0x150627['name']),_0x29c760['setAttributeNS'](_0x240649,_0xd2c7ea,_0x67ef4))):_0x29c760['getAttribute'](_0xd2c7ea)!==_0x67ef4&&_0x29c760['setAttribute'](_0xd2c7ea,_0x67ef4);for(var _0x168468=_0x29c760['attributes'],_0x13e3d3=_0x168468['length']-0x1;_0x13e3d3>=0x0;_0x13e3d3--)_0xd2c7ea=(_0x150627=_0x168468[_0x13e3d3])['name'],(_0x240649=_0x150627['namespaceURI'])?(_0xd2c7ea=_0x150627['localName']||_0xd2c7ea,_0x1b3f60['hasAttributeNS'](_0x240649,_0xd2c7ea)||_0x29c760['removeAttributeNS'](_0x240649,_0xd2c7ea)):_0x1b3f60['hasAttribute'](_0xd2c7ea)||_0x29c760['removeAttribute'](_0xd2c7ea);}}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(_0x4687c4){var _0x4fa354=doc$1['createElement']('template');return _0x4fa354['innerHTML']=_0x4687c4,_0x4fa354['content']['childNodes'][0x0];}function createFragmentFromRange(_0x427b6f){return range||(range=doc$1['createRange']())['selectNode'](doc$1['body']),range['createContextualFragment'](_0x427b6f)['childNodes'][0x0];}function createFragmentFromWrap(_0x42b928){var _0x1ce348=doc$1['createElement']('body');return _0x1ce348['innerHTML']=_0x42b928,_0x1ce348['childNodes'][0x0];}function toElement(_0x185b8b){return _0x185b8b=_0x185b8b['trim'](),HAS_TEMPLATE_SUPPORT?createFragmentFromTemplate(_0x185b8b):HAS_RANGE_SUPPORT?createFragmentFromRange(_0x185b8b):createFragmentFromWrap(_0x185b8b);}function compareNodeNames(_0xd325c9,_0x3622e2){var _0x8114d5,_0x400973,_0x43537c=_0xd325c9['nodeName'],_0x436a7b=_0x3622e2['nodeName'];return _0x43537c===_0x436a7b||(_0x8114d5=_0x43537c['charCodeAt'](0x0),_0x400973=_0x436a7b['charCodeAt'](0x0),_0x8114d5<=0x5a&&_0x400973>=0x61?_0x43537c===_0x436a7b['toUpperCase']():_0x400973<=0x5a&&_0x8114d5>=0x61&&_0x436a7b===_0x43537c['toUpperCase']());}function createElementNS(_0x45dd00,_0x300b3b){return _0x300b3b&&_0x300b3b!==NS_XHTML?doc$1['createElementNS'](_0x300b3b,_0x45dd00):doc$1['createElement'](_0x45dd00);}function moveChildren(_0x55731a,_0x40059c){for(var _0x61686a=_0x55731a['firstChild'];_0x61686a;){var _0x35621f=_0x61686a['nextSibling'];_0x40059c['appendChild'](_0x61686a),_0x61686a=_0x35621f;}return _0x40059c;}function syncBooleanAttrProp(_0x5656e0,_0x535e52,_0x56c3db){_0x5656e0[_0x56c3db]!==_0x535e52[_0x56c3db]&&(_0x5656e0[_0x56c3db]=_0x535e52[_0x56c3db],_0x5656e0[_0x56c3db]?_0x5656e0['setAttribute'](_0x56c3db,''):_0x5656e0['removeAttribute'](_0x56c3db));}var specialElHandlers={'OPTION':function(_0x4f3e4b,_0x5c8170){var _0x4a1a5c=_0x4f3e4b['parentNode'];if(_0x4a1a5c){var _0x2bab77=_0x4a1a5c['nodeName']['toUpperCase']();'OPTGROUP'===_0x2bab77&&(_0x2bab77=(_0x4a1a5c=_0x4a1a5c['parentNode'])&&_0x4a1a5c['nodeName']['toUpperCase']()),'SELECT'!==_0x2bab77||_0x4a1a5c['hasAttribute']('multiple')||(_0x4f3e4b['hasAttribute']('selected')&&!_0x5c8170['selected']&&(_0x4f3e4b['setAttribute']('selected','selected'),_0x4f3e4b['removeAttribute']('selected')),_0x4a1a5c['selectedIndex']=-0x1);}syncBooleanAttrProp(_0x4f3e4b,_0x5c8170,'selected');},'INPUT':function(_0xe0e7ed,_0x115e7e){syncBooleanAttrProp(_0xe0e7ed,_0x115e7e,'checked'),syncBooleanAttrProp(_0xe0e7ed,_0x115e7e,'disabled'),_0xe0e7ed['value']!==_0x115e7e['value']&&(_0xe0e7ed['value']=_0x115e7e['value']),_0x115e7e['hasAttribute']('value')||_0xe0e7ed['removeAttribute']('value');},'TEXTAREA':function(_0x132837,_0x5a765e){var _0x5643c9=_0x5a765e['value'];_0x132837['value']!==_0x5643c9&&(_0x132837['value']=_0x5643c9);var _0x412cd7=_0x132837['firstChild'];if(_0x412cd7){var _0x17fa95=_0x412cd7['nodeValue'];if(_0x17fa95==_0x5643c9||!_0x5643c9&&_0x17fa95==_0x132837['placeholder'])return;_0x412cd7['nodeValue']=_0x5643c9;}},'SELECT':function(_0x45e2de,_0x546a4c){if(!_0x546a4c['hasAttribute']('multiple')){for(var _0x207490,_0x44aa1c,_0x45a83c=-0x1,_0x160db9=0x0,_0x116c21=_0x45e2de['firstChild'];_0x116c21;)if('OPTGROUP'===(_0x44aa1c=_0x116c21['nodeName']&&_0x116c21['nodeName']['toUpperCase']()))(_0x116c21=(_0x207490=_0x116c21)['firstChild'])||(_0x116c21=_0x207490['nextSibling'],_0x207490=null);else{if('OPTION'===_0x44aa1c){if(_0x116c21['hasAttribute']('selected')){_0x45a83c=_0x160db9;break;}_0x160db9++;}!(_0x116c21=_0x116c21['nextSibling'])&&_0x207490&&(_0x116c21=_0x207490['nextSibling'],_0x207490=null);}_0x45e2de['selectedIndex']=_0x45a83c;}}},ELEMENT_NODE=0x1,DOCUMENT_FRAGMENT_NODE$1=0xb,TEXT_NODE=0x3,COMMENT_NODE=0x8;function noop(){}function defaultGetNodeKey(_0x2dba97){if(_0x2dba97)return _0x2dba97['getAttribute']&&_0x2dba97['getAttribute']('id')||_0x2dba97['id'];}function morphdomFactory(_0x31745b){return function(_0x2f5dc5,_0x5db836,_0x3a8a81){if(_0x3a8a81||(_0x3a8a81={}),'string'==typeof _0x5db836){if('#document'===_0x2f5dc5['nodeName']||'HTML'===_0x2f5dc5['nodeName']||'BODY'===_0x2f5dc5['nodeName']){var _0x4aa1c3=_0x5db836;(_0x5db836=doc$1['createElement']('html'))['innerHTML']=_0x4aa1c3;}else _0x5db836=toElement(_0x5db836);}else _0x5db836['nodeType']===DOCUMENT_FRAGMENT_NODE$1&&(_0x5db836=_0x5db836['firstElementChild']);var _0x12ccff=_0x3a8a81['getNodeKey']||defaultGetNodeKey,_0x3a09c6=_0x3a8a81['onBeforeNodeAdded']||noop,_0x334269=_0x3a8a81['onNodeAdded']||noop,_0x2e33ae=_0x3a8a81['onBeforeElUpdated']||noop,_0x23f099=_0x3a8a81['onElUpdated']||noop,_0x23fec4=_0x3a8a81['onBeforeNodeDiscarded']||noop,_0x8c9436=_0x3a8a81['onNodeDiscarded']||noop,_0x4a5bad=_0x3a8a81['onBeforeElChildrenUpdated']||noop,_0x392326=_0x3a8a81['skipFromChildren']||noop,_0x5448e0=_0x3a8a81['addChild']||function(_0x3c4f7d,_0x345e61){return _0x3c4f7d['appendChild'](_0x345e61);},_0x15ca18=!0x0===_0x3a8a81['childrenOnly'],_0x1e1b47=Object['create'](null),_0x3e39e6=[];function _0x13ba0f(_0x4b738e){_0x3e39e6['push'](_0x4b738e);}function _0x3eeb6a(_0x42d2f7,_0x1ad22c){if(_0x42d2f7['nodeType']===ELEMENT_NODE)for(var _0x285364=_0x42d2f7['firstChild'];_0x285364;){var _0xd42bda=void 0x0;_0x1ad22c&&(_0xd42bda=_0x12ccff(_0x285364))?_0x13ba0f(_0xd42bda):(_0x8c9436(_0x285364),_0x285364['firstChild']&&_0x3eeb6a(_0x285364,_0x1ad22c)),_0x285364=_0x285364['nextSibling'];}}function _0x5d0207(_0xe4c98d,_0x223958,_0x450976){!0x1!==_0x23fec4(_0xe4c98d)&&(_0x223958&&_0x223958['removeChild'](_0xe4c98d),_0x8c9436(_0xe4c98d),_0x3eeb6a(_0xe4c98d,_0x450976));}function _0x2cd314(_0x4220ce){if(_0x4220ce['nodeType']===ELEMENT_NODE||_0x4220ce['nodeType']===DOCUMENT_FRAGMENT_NODE$1)for(var _0x5c8df8=_0x4220ce['firstChild'];_0x5c8df8;){var _0x111517=_0x12ccff(_0x5c8df8);_0x111517&&(_0x1e1b47[_0x111517]=_0x5c8df8),_0x2cd314(_0x5c8df8),_0x5c8df8=_0x5c8df8['nextSibling'];}}function _0x454fc9(_0x3180c4){_0x334269(_0x3180c4);for(var _0x504604=_0x3180c4['firstChild'];_0x504604;){var _0x301f94=_0x504604['nextSibling'],_0x50d8c2=_0x12ccff(_0x504604);if(_0x50d8c2){var _0x283aa7=_0x1e1b47[_0x50d8c2];_0x283aa7&&compareNodeNames(_0x504604,_0x283aa7)?(_0x504604['parentNode']['replaceChild'](_0x283aa7,_0x504604),_0xe48dfa(_0x283aa7,_0x504604)):_0x454fc9(_0x504604);}else _0x454fc9(_0x504604);_0x504604=_0x301f94;}}function _0xe48dfa(_0x4315d9,_0x2bdb5c,_0x28f24c){var _0xdd0ff7=_0x12ccff(_0x2bdb5c);if(_0xdd0ff7&&delete _0x1e1b47[_0xdd0ff7],!_0x28f24c){var _0x4a57e8=_0x2e33ae(_0x4315d9,_0x2bdb5c);if(!0x1===_0x4a57e8)return;if(_0x4a57e8 instanceof HTMLElement&&_0x2cd314(_0x4315d9=_0x4a57e8),_0x31745b(_0x4315d9,_0x2bdb5c),_0x23f099(_0x4315d9),!0x1===_0x4a5bad(_0x4315d9,_0x2bdb5c))return;}'TEXTAREA'!==_0x4315d9['nodeName']?function(_0x2621ab,_0x5e5fb3){var _0x351da0,_0x18fc39,_0xd9e029,_0x4dbc21,_0x33af3e,_0x2a99f5=_0x392326(_0x2621ab,_0x5e5fb3),_0x3c833d=_0x5e5fb3['firstChild'],_0x30b7c5=_0x2621ab['firstChild'];t:for(;_0x3c833d;){for(_0x4dbc21=_0x3c833d['nextSibling'],_0x351da0=_0x12ccff(_0x3c833d);!_0x2a99f5&&_0x30b7c5;){if(_0xd9e029=_0x30b7c5['nextSibling'],_0x3c833d['isSameNode']&&_0x3c833d['isSameNode'](_0x30b7c5)){_0x3c833d=_0x4dbc21,_0x30b7c5=_0xd9e029;continue t;}_0x18fc39=_0x12ccff(_0x30b7c5);var _0x274fe1=_0x30b7c5['nodeType'],_0x477620=void 0x0;if(_0x274fe1===_0x3c833d['nodeType']&&(_0x274fe1===ELEMENT_NODE?(_0x351da0?_0x351da0!==_0x18fc39&&((_0x33af3e=_0x1e1b47[_0x351da0])?_0xd9e029===_0x33af3e?_0x477620=!0x1:(_0x2621ab['insertBefore'](_0x33af3e,_0x30b7c5),_0x18fc39?_0x13ba0f(_0x18fc39):_0x5d0207(_0x30b7c5,_0x2621ab,!0x0),_0x18fc39=_0x12ccff(_0x30b7c5=_0x33af3e)):_0x477620=!0x1):_0x18fc39&&(_0x477620=!0x1),(_0x477620=!0x1!==_0x477620&&compareNodeNames(_0x30b7c5,_0x3c833d))&&_0xe48dfa(_0x30b7c5,_0x3c833d)):_0x274fe1!==TEXT_NODE&&_0x274fe1!=COMMENT_NODE||(_0x477620=!0x0,_0x30b7c5['nodeValue']!==_0x3c833d['nodeValue']&&(_0x30b7c5['nodeValue']=_0x3c833d['nodeValue']))),_0x477620){_0x3c833d=_0x4dbc21,_0x30b7c5=_0xd9e029;continue t;}_0x18fc39?_0x13ba0f(_0x18fc39):_0x5d0207(_0x30b7c5,_0x2621ab,!0x0),_0x30b7c5=_0xd9e029;}if(_0x351da0&&(_0x33af3e=_0x1e1b47[_0x351da0])&&compareNodeNames(_0x33af3e,_0x3c833d))_0x2a99f5||_0x5448e0(_0x2621ab,_0x33af3e),_0xe48dfa(_0x33af3e,_0x3c833d);else{var _0x44563=_0x3a09c6(_0x3c833d);!0x1!==_0x44563&&(_0x44563&&(_0x3c833d=_0x44563),_0x3c833d['actualize']&&(_0x3c833d=_0x3c833d['actualize'](_0x2621ab['ownerDocument']||doc$1)),_0x5448e0(_0x2621ab,_0x3c833d),_0x454fc9(_0x3c833d));}_0x3c833d=_0x4dbc21,_0x30b7c5=_0xd9e029;}!function(_0x3505d7,_0x4f8806,_0x2e732f){for(;_0x4f8806;){var _0x2b2d2d=_0x4f8806['nextSibling'];(_0x2e732f=_0x12ccff(_0x4f8806))?_0x13ba0f(_0x2e732f):_0x5d0207(_0x4f8806,_0x3505d7,!0x0),_0x4f8806=_0x2b2d2d;}}(_0x2621ab,_0x30b7c5,_0x18fc39);var _0x2a8875=specialElHandlers[_0x2621ab['nodeName']];_0x2a8875&&_0x2a8875(_0x2621ab,_0x5e5fb3);}(_0x4315d9,_0x2bdb5c):specialElHandlers['TEXTAREA'](_0x4315d9,_0x2bdb5c);}_0x2cd314(_0x2f5dc5);var _0x34d82d=_0x2f5dc5,_0x14aca4=_0x34d82d['nodeType'],_0x38f4ff=_0x5db836['nodeType'];if(!_0x15ca18){if(_0x14aca4===ELEMENT_NODE)_0x38f4ff===ELEMENT_NODE?compareNodeNames(_0x2f5dc5,_0x5db836)||(_0x8c9436(_0x2f5dc5),_0x34d82d=moveChildren(_0x2f5dc5,createElementNS(_0x5db836['nodeName'],_0x5db836['namespaceURI']))):_0x34d82d=_0x5db836;else{if(_0x14aca4===TEXT_NODE||_0x14aca4===COMMENT_NODE){if(_0x38f4ff===_0x14aca4)return _0x34d82d['nodeValue']!==_0x5db836['nodeValue']&&(_0x34d82d['nodeValue']=_0x5db836['nodeValue']),_0x34d82d;_0x34d82d=_0x5db836;}}}if(_0x34d82d===_0x5db836)_0x8c9436(_0x2f5dc5);else{if(_0x5db836['isSameNode']&&_0x5db836['isSameNode'](_0x34d82d))return;if(_0xe48dfa(_0x34d82d,_0x5db836,_0x15ca18),_0x3e39e6)for(var _0x1c5cc8=0x0,_0x45f3fb=_0x3e39e6['length'];_0x1c5cc8<_0x45f3fb;_0x1c5cc8++){var _0x257cea=_0x1e1b47[_0x3e39e6[_0x1c5cc8]];_0x257cea&&_0x5d0207(_0x257cea,_0x257cea['parentNode'],!0x1);}}return!_0x15ca18&&_0x34d82d!==_0x2f5dc5&&_0x2f5dc5['parentNode']&&(_0x34d82d['actualize']&&(_0x34d82d=_0x34d82d['actualize'](_0x2f5dc5['ownerDocument']||doc$1)),_0x2f5dc5['parentNode']['replaceChild'](_0x34d82d,_0x2f5dc5)),_0x34d82d;};}var morphdom=morphdomFactory(morphAttrs);class HTMLStreamer{['options'];['isStreaming']=!0x1;['document']=null;['nodesList']=[];['currentIndex']=0x0;['timeoutAbortController']=null;['lastUpdateTime']=0x0;constructor(_0x52c626){this['options']={'delay':_0x52c626['delay']??0x14,'textNodeStyle':_0x52c626['textNodeStyle'],'onStreamUpdate':_0x52c626['onStreamUpdate']||(()=>{})};}async['stream']({document:_0x46045e,targetElement:_0x33d165,abortSignal:_0x2d6f3c}){this['isStreaming']&&this['stop'](),_0x2d6f3c?.['addEventListener']('abort',this['stop']['bind'](this)),this['document']=cloneNode(_0x46045e,!0x0),this['nodesList']=this['getParsedDocumentNodeList'](),this['isStreaming']=!0x0,this['currentIndex']>this['nodesList']['length']&&(this['currentIndex']=this['nodesList']['length']);for(let _0x2a9e62=0x0;_0x2a9e62<this['currentIndex'];_0x2a9e62++)this['nodesList'][_0x2a9e62]['shouldBeStreamed']=!0x0;do{const _0x280dc6=Date['now'](),_0x63fe6f=this['nodesList'][this['currentIndex']],_0x592572=_0x280dc6-this['lastUpdateTime'];if(_0x63fe6f){_0x63fe6f['shouldBeStreamed']=!0x0;let _0x58cc4f=_0x63fe6f['parent'];for(;_0x58cc4f;)_0x58cc4f['shouldBeStreamed']=!0x0,_0x58cc4f=_0x58cc4f['parent'];}if(_0x592572<this['options']['delay'])try{const {promise:_0x6ee43f,abortController:_0x3b4681}=createAbortableTimeout(this['options']['delay']-_0x592572);this['timeoutAbortController']=_0x3b4681,await _0x6ee43f;}catch(_0x5ba0cd){return;}morphdom(_0x33d165,'<'+_0x33d165['tagName']+'>'+this['renderNode'](this['document'])+'</'+_0x33d165['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:_0x2cd420}){Array['from'](_0x2cd420['querySelectorAll']('span[data-ck-html-streamer-word-chunk]'))['reverse']()['forEach'](_0x28264c=>{_0x28264c['replaceWith'](_0x28264c['childNodes'][0x0]);});}['stop'](){this['isStreaming']=!0x1,this['timeoutAbortController']&&(this['timeoutAbortController']['abort'](),this['timeoutAbortController']=null);}['renderNode'](_0x1a18fc){let _0x44ae7e='';if(isParsedDocumentNode(_0x1a18fc)){for(const _0x18dc28 of _0x1a18fc['children'])_0x44ae7e+=this['renderNode'](_0x18dc28);}else{if(isParsedElementNode(_0x1a18fc)){if(!_0x1a18fc['shouldBeStreamed'])return'';const _0x2947ed=_0x1a18fc,_0x277b66=Object['entries'](_0x2947ed['attribs'])['map'](([_0x4c4d64,_0x31f57f])=>_0x4c4d64+'=\x22'+_0x31f57f+'\x22')['join']('\x20');_0x44ae7e+='<'+_0x2947ed['tagName']+(_0x277b66?'\x20'+_0x277b66:'')+'>';for(const _0x17a711 of getChildren$1(_0x2947ed))_0x44ae7e+=this['renderNode'](_0x17a711);_0x44ae7e+='</'+_0x2947ed['tagName']+'>';}else{if(!isParsedTextNode(_0x1a18fc))return'';if(!_0x1a18fc['shouldBeStreamed'])return'';canBecomeWordChunkSpan(_0x1a18fc)?_0x44ae7e+=render(new Element$3('span',{'data-ck-html-streamer-word-chunk':'','style':this['options']['textNodeStyle']},[_0x1a18fc])):_0x44ae7e+=render(_0x1a18fc);}}return _0x44ae7e;}['getParsedDocumentNodeList'](){const _0x440fbe=[];return traverseParsedDocument(this['document'],_0x3ea67f=>{if(isParsedTextNode(_0x3ea67f)){const _0x47892c=this['splitTextNodeIntoWordNodes'](_0x3ea67f);_0x47892c['length']&&_0x440fbe['push'](..._0x47892c);}_0x3ea67f['isWordSplitSource']||_0x3ea67f['isWordSplitResult']||_0x440fbe['push'](_0x3ea67f);}),_0x440fbe;}['splitTextNodeIntoWordNodes'](_0x30c2ed){if(_0x30c2ed['isWordSplitSource']||_0x30c2ed['isWordSplitResult'])return[];const _0x14660f=textContent(_0x30c2ed)['match'](/(?:\s*\S+\s*)/g),_0x157dee=[];if(_0x14660f&&_0x14660f['length']>0x1){for(const _0x4d1efb of _0x14660f){const _0x35784f=new Text$1(_0x4d1efb);_0x35784f['isWordSplitResult']=!0x0,prepend(_0x30c2ed,_0x35784f),_0x157dee['push'](_0x35784f);}_0x30c2ed['isWordSplitSource']=!0x0,removeElement(_0x30c2ed);}return _0x157dee;}}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(_0xabb8c4,_0x127647){const _0x145566=_0x3f6b95=>{if(_0x127647(_0x3f6b95),_0x3f6b95 instanceof NodeWithChildren)for(let _0x7d4b7e=0x0;_0x7d4b7e<_0x3f6b95['children']['length'];_0x7d4b7e++){const _0x2ebdfa=_0x3f6b95['children'][_0x7d4b7e];_0x145566(_0x2ebdfa);}};for(let _0x3f12b3=0x0;_0x3f12b3<_0xabb8c4['children']['length'];_0x3f12b3++)_0x145566(_0xabb8c4['children'][_0x3f12b3]);}function canBecomeWordChunkSpan(_0x1b40ea){return!(!_0x1b40ea['parent']||!isParsedElementNode(_0x1b40ea['parent']))&&(!!ELEMENTS_THAT_ALLOW_SPANS['includes'](_0x1b40ea['parent']['tagName'])&&!textContent(_0x1b40ea)['match'](/^\s*[<>]\s*$/));}function isParsedTextNode(_0x226928){return isText$1(_0x226928);}function isParsedElementNode(_0x4aae09){return isTag(_0x4aae09);}function isParsedDocumentNode(_0x1715bc){return isDocument(_0x1715bc);}function createAbortableTimeout(_0x4edcb1){const _0x4a0b91=new AbortController();return{'promise':new Promise((_0x1837cb,_0x6b9c52)=>{const _0x4bf2cd=setTimeout(_0x1837cb,_0x4edcb1);_0x4a0b91['signal']['addEventListener']('abort',()=>{clearTimeout(_0x4bf2cd),_0x6b9c52();});}),'abortController':_0x4a0b91};}class AIChatFeedItemView extends View{['options'];['content']='';['htmlStreamer'];['children'];constructor(_0x13788e){super();const _0xd846e=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']=_0x13788e,this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__item',_0xd846e['if']('isDone','ck-ai-chat__feed__item_done'),_0xd846e['if']('isVisible','ck-hidden',_0x587691=>!_0x587691),'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'](_0x5441a2=>{_0x5441a2['removeAttribute']('data-id');}),this['isDone']=!0x0;}async['streamIntoElement'](_0x58b466,_0xd5d440,_0x3c3613){await this['htmlStreamer']['stream']({'document':_0x58b466,'targetElement':_0xd5d440,'abortSignal':_0x3c3613});}}class AISuggestionHeaderView extends View{['showChangesToggleView'];constructor(_0x57a987,_0x4b5d88){super(_0x57a987),this['set']('isShowChangesToggleVisible',!0x0),this['showChangesToggleView']=new ShowChangesToggleView(_0x57a987),this['showChangesToggleView']['set']({'class':'ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','label':getTranslation$i(_0x57a987,'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':!0x0}),this['showChangesToggleView']['isOn']=_0x4b5d88['showDiff'],this['showChangesToggleView']['bind']('isVisible')['to'](this,'isShowChangesToggleVisible'),this['showChangesToggleView']['bind']('icon')['to'](this['showChangesToggleView'],'isOn',_0x303dba=>_0x303dba?IconShowChangesOn:IconShowChangesOff),this['showChangesToggleView']['on']('execute',()=>{this['showChangesToggleView']['isOn']=!this['showChangesToggleView']['isOn'],this['fire']('toggleShowChanges',{'isOn':this['showChangesToggleView']['isOn']});});const _0x153e47=new IconView();_0x153e47['content']=IconDocument,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__header',!0x1===_0x4b5d88['showHeader']?'ck-hidden':null]['filter'](Boolean)},'children':[_0x153e47,{'tag':'span','children':[getTranslation$i(_0x57a987,'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(_0x5c57a5){super(_0x5c57a5);const _0xe8e879=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',_0xe8e879['to']('state',_0x3c01cb=>'ck-ai-suggestion__content-part-state_'+_0x3c01cb),_0xe8e879['if']('isVisible','ck-hidden',_0x51dba1=>!_0x51dba1)]},'children':[{'tag':'span','attributes':{'class':['ck-ai-suggestion__content-part-state__label']},'children':[{'text':_0xe8e879['to']('state',_0x32f37a=>{switch(_0x32f37a){case'accepted':return getTranslation$i(_0x5c57a5,'AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED');case'rejected':return getTranslation$i(_0x5c57a5,'AI_SUGGESTION_CONTENT_PART_STATE_REJECTED');case'outdated':return getTranslation$i(_0x5c57a5,'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED');}})}]},this['stateIconView']]});}['setState'](_0x1016f5){this['state']=_0x1016f5;}}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(_0x20ef29,_0x4c0c98,_0x2db489){super(_0x20ef29);const _0x4ab95b=Boolean(_0x2db489);this['set']('isEnabled',!_0x4ab95b),this['set']('isVisible',!0x0),this['class']='ck-ai-suggestion-content-part-toolbar';const _0x33ba92=[];if(_0x4ab95b){const _0x1e9fc8=new ButtonView(_0x20ef29);_0x1e9fc8['set']({'label':getTranslation$i(_0x20ef29,'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconInfo}),_0x33ba92['push'](_0x1e9fc8);}else{_0x4c0c98['includes']('applySuggestion')&&(this['_applyButton']=new ButtonView(_0x20ef29),this['_applyButton']['set']({'label':getTranslation$i(_0x20ef29,'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');}),_0x33ba92['push'](this['_applyButton'])),_0x4c0c98['includes']('insertSuggestion')&&(this['_suggestButton']=new ButtonView(_0x20ef29),this['_suggestButton']['set']({'label':getTranslation$i(_0x20ef29,'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');}),_0x33ba92['push'](this['_suggestButton']));const _0x3d786c=new ButtonView(_0x20ef29);_0x3d786c['set']({'label':getTranslation$i(_0x20ef29,'AI_SUGGESTION_CONTENT_PART_REJECT'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconBoxWithCross}),_0x3d786c['bind']('isEnabled')['to'](this),_0x3d786c['on']('execute',()=>{this['fire']('rejectSuggestion');}),_0x33ba92['push'](_0x3d786c);}this['items']['addMany'](_0x33ba92);const _0x5a79a7=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':[_0x5a79a7['if']('isVisible','ck-hidden',_0x8df95c=>!_0x8df95c)]}});}['setButtonsVisibility']({showApplyButton:_0x1b9042,showSuggestButton:_0x1b95e0}){this['_applyButton']&&(this['_applyButton']['isVisible']=_0x1b9042),this['_suggestButton']&&(this['_suggestButton']['isVisible']=_0x1b95e0);}}class AISuggestionContentPartHeaderView extends View{['toolbarView'];['stateView'];['titleLabelView'];['children'];constructor(_0x474329,{part:_0x5d7e85,uiIndex:_0x5931f1,availableActions:_0x1f9359,areActionsDisabled:_0x309169}){super(_0x474329),this['set']('isEnabled',!0x0),this['set']('state','pending'),this['toolbarView']=new AISuggestionContentPartToolbarView(_0x474329,_0x1f9359,_0x309169),this['toolbarView']['on']('rejectSuggestion',()=>{this['fire']('rejectSuggestion',{'index':_0x5d7e85['index']});}),this['toolbarView']['on']('insertSuggestion',()=>{this['fire']('insertSuggestion',{'index':_0x5d7e85['index']});}),this['toolbarView']['on']('applySuggestion',()=>{this['fire']('applySuggestion',{'index':_0x5d7e85['index']});}),this['toolbarView']['bind']('isEnabled')['to'](this),this['stateView']=new AISuggestionContentPartStateView(_0x474329),this['titleLabelView']=new AISuggestionBodyContentPartTitleLabelView(_0x474329,_0x5931f1),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',(_0x26da59,_0x402723,_0x49e818,_0x20cfa3)=>{'pending'===_0x20cfa3?this['children']['remove'](this['toolbarView']):this['children']['remove'](this['stateView']),'pending'===_0x49e818?this['children']['add'](this['toolbarView']):(this['stateView']['setState'](_0x49e818),this['children']['add'](this['stateView']));});}}class AISuggestionBodyContentPartTitleLabelView extends View{constructor(_0x5e410e,_0x5b36ef){super(_0x5e410e),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__body__content-part__title__label']},'children':[getTranslation$i(_0x5e410e,'AI_SUGGESTION_CONTENT_PART_TITLE',_0x5b36ef['toString']())]});}}class AISuggestionStreamableContentView extends View{['htmlStreamer'];constructor(_0x19deed){super(_0x19deed),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:_0x18f0f0,renderingStrategy:_0x386986,abortSignal:_0x2e3405}){'streaming'===_0x386986?await this['htmlStreamer']['stream']({'document':_0x18f0f0['content'],'targetElement':this['element'],'abortSignal':_0x2e3405}):this['element']['innerHTML']=serialize(_0x18f0f0['content']);}['clear'](){this['htmlStreamer']['reset'](),this['element']['innerHTML']='';}}class AISuggestionBodyViewContentPartView extends View{['_children'];['_headerView'];['_streamableContentView'];constructor(_0x449997,{part:_0xcf73a9,uiIndex:_0x2cbc78,areActionsDisabled:_0x5731ad,availableActions:_0x4ce85a}){super(_0x449997);const _0x435597=this['bindTemplate'];this['set']('state','pending'),this['set']('isDone',!0x1),this['set']('isVisible',!0x1),this['set']('isActive',!0x1),this['set']('isEnabled',!0x1);const _0x39111f=()=>{this['isEnabled']=this['isDone']&&'pending'==this['state']&&!_0x5731ad;};this['on']('change:state',_0x39111f),this['on']('change:isDone',_0x39111f),_0x39111f(),this['_children']=this['createCollection'](),this['_headerView']=new AISuggestionContentPartHeaderView(_0x449997,{'part':_0xcf73a9,'uiIndex':_0x2cbc78,'availableActions':_0x4ce85a,'areActionsDisabled':_0x5731ad}),this['_headerView']['bind']('isEnabled','state')['to'](this),this['_headerView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_streamableContentView']=new AISuggestionStreamableContentView(_0x449997),this['_children']['addMany']([this['_headerView'],this['_streamableContentView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body__content-part',_0x435597['to']('state',_0x25a1cd=>'ck-ai-suggestion__body__content-part_'+_0x25a1cd),_0x435597['if']('isEnabled','ck-ai-suggestion__body__content-part_enabled'),_0x435597['if']('isActive','ck-ai-suggestion__body__content-part_active'),_0x435597['if']('isVisible','ck-hidden',_0x1c54ca=>!_0x1c54ca)]},'children':this['_children'],'on':{'mouseenter':_0x435597['to'](()=>{this['isEnabled']&&this['fire']('mouseOverSuggestion',{'index':_0xcf73a9['index']});}),'mouseleave':_0x435597['to'](()=>{this['isEnabled']&&this['fire']('mouseLeaveSuggestion',{'index':_0xcf73a9['index']});}),'click':_0x435597['to'](_0x5603b9=>{const _0x1fade2=_0x5603b9['target'];this['isEnabled']&&!this['_headerView']['toolbarView']['element']['contains'](_0x1fade2)&&this['fire']('showChangeInText',{'index':_0xcf73a9['index']});})}});}async['updateContent']({part:_0x964dd6,renderingStrategy:_0x14fdc7,showUnchangedParts:_0x2df774=!0x1,abortSignal:_0x8dac0f}){this['partDefinition']=_0x964dd6,this['isVisible']=this['partDefinition']['hasChanges']||_0x2df774,this['isVisible']&&await this['_streamableContentView']['update']({'part':_0x964dd6,'renderingStrategy':_0x14fdc7,'abortSignal':_0x8dac0f});}['markAsDone'](){this['isDone']=!0x0;}}class PromiseQueue extends EmitterMixin(){['queue']=[];['isProcessing']=!0x1;['_abortController'];async['enqueue'](_0x1440da){const _0x3719c9=this['createTask'](_0x1440da);return this['queue']['push'](_0x3719c9),this['_processQueue'](),_0x3719c9['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(_0x3307cf=>{this['once']('_queueEmpty',()=>{_0x3307cf();});}):Promise['resolve']();}async['_processQueue'](){if(!this['isProcessing']){this['_abortController']=new AbortController(),this['isProcessing']=!0x0;try{for(;this['queue']['length']&&this['isProcessing'];){const _0x1e0122=this['queue']['shift']();try{await _0x1e0122['callback'](this['_abortController']['signal']),_0x1e0122['resolve']();}catch(_0x178708){_0x1e0122['reject'](_0x178708);}}}finally{this['isProcessing']=!0x1,this['_abortController']=void 0x0;}this['fire']('_queueEmpty');}}['createTask'](_0x226f44){let _0x133bfa,_0x193d12;const _0x2e7c53=new Promise((_0x3580b2,_0x4d6504)=>{_0x133bfa=_0x3580b2,_0x193d12=_0x4d6504;});return{'callback':_0x226f44,'resolve':_0x133bfa,'reject':_0x193d12,'completePromise':_0x2e7c53};}}class AIChatFeedErrorItemView extends AIChatFeedItemView{constructor(_0x24d2c9){super(_0x24d2c9),this['extendTemplate']({'attributes':{'class':['ck-ai-notification','warning'===_0x24d2c9['level']?'ck-ai-notification_warning':'ck-ai-notification_error']}});}['render'](){super['render'](),this['setContent'](this['options']['initialContent']),this['markAsDone']();}['setContent'](_0x223ba4){this['element']['innerHTML']=_0x223ba4;}}const AI_REPLY_ACTIONS=['applySuggestion','insertSuggestion'];class AIChatFeedSuggestionItemActionsView extends View{['_applyChangesButton'];['_insertSuggestionsButton'];['children'];constructor(_0x4524ab,_0x45afaf=[...AI_REPLY_ACTIONS],_0x1c9667){super(_0x4524ab);const _0x40f0a2=this['bindTemplate'],_0x11e8c6=Boolean(_0x1c9667);if(this['set']('isEnabled',!_0x11e8c6),this['set']('isVisible',!0x1),this['set']('isTrackChangesOn',!0x1),this['children']=this['createCollection'](),_0x11e8c6){const _0x453d52=new ButtonView(_0x4524ab);_0x453d52['set']({'label':getTranslation$i(_0x4524ab,'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconInfo});const _0x4970a4=new View(_0x4524ab);_0x4970a4['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat__feed__suggestion__actions__info'},'children':[{'tag':'p','children':[getTranslation$i(_0x4524ab,'AI_SUGGESTION_DISABLED_FEED_MESSAGE'),_0x453d52]}]}),this['children']['add'](_0x4970a4);}else this['_applyChangesButton']=new ButtonView(_0x4524ab),this['_applyChangesButton']['set']({'label':getTranslation$i(_0x4524ab,'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'),'withText':!0x0,'type':'button','isVisible':_0x45afaf['includes']('applySuggestion'),'class':'ck-ai-button-primary'}),this['_insertSuggestionsButton']=new ButtonView(_0x4524ab),this['_insertSuggestionsButton']['set']({'label':getTranslation$i(_0x4524ab,'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL'),'withText':!0x0,'type':'button','isVisible':_0x45afaf['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'](_0x4a2f6c=>{_0x4a2f6c['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',_0x40f0a2['if']('isVisible','ck-hidden',_0x311974=>!_0x311974)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_applyChangesButton']&&(this['_applyChangesButton']['isVisible']=!this['isTrackChangesOn']);});}['updateVisibility'](_0x130cb0){this['isVisible']=_0x130cb0;}['_switchButtonLabelsPlurality'](_0x4b9cd6){this['_applyChangesButton']&&this['_insertSuggestionsButton']&&(_0x4b9cd6?(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(_0x39fe78,_0x3504a9){super(_0x39fe78),this['bodyCollection']=_0x3504a9,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',_0x15b151=>!_0x15b151)]},'children':this['children']});const _0x549d9c=new View(this['locale']),_0x5b33d5=new IconView();_0x5b33d5['content']=IconWeb,_0x549d9c['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-sources__header']},'children':[_0x5b33d5,{'tag':'span','children':[{'text':getTranslation$i(this['locale'],'AI_CHAT_SOURCES_HEADER')}]}]}),this['children']['add'](_0x549d9c),this['_setupBalloonPanel'](_0x39fe78);}['addSource'](_0x4782b3){this['children']['add'](new AIWebSourceView(this['locale'],_0x4782b3,this['balloonPanelView']));}['_setupBalloonPanel'](_0x6c025a){this['balloonPanelView']=new BalloonPanelView(_0x6c025a),this['balloonPanelView']['extendTemplate']({'attributes':{'class':['ck-ai-web-source__tooltip-balloon']}}),this['bodyCollection']['add'](this['balloonPanelView']);}}class AIWebSourceView extends ButtonView{['balloonPanelView'];['source'];constructor(_0x5052b4,_0x23b389,_0x1ed493){super(_0x5052b4),this['source']=_0x23b389,this['balloonPanelView']=_0x1ed493,this['set']({'label':_0x23b389['title'],'class':['ck\x20ck-ai-web-source'],'withText':!0x0});const _0x164eee=this['bindTemplate'];if(this['extendTemplate']({'on':{'click':_0x164eee['to'](()=>{window['open'](_0x23b389['url'],'_blank');}),'mouseenter':_0x164eee['to'](()=>{this['_showTooltip']();}),'mouseleave':_0x164eee['to'](()=>{this['_hideTooltip']();})}}),_0x23b389['favicon']){const _0x379d9a=new View(_0x5052b4);_0x379d9a['setTemplate']({'tag':'img','attributes':{'src':_0x23b389['favicon']||IconWeb,'alt':_0x23b389['title'],'class':['ck-ai-web-source__image']}}),this['children']['add'](_0x379d9a);}else this['set']('icon',IconWeb);}['_createTooltipContentView'](_0x4b4925,_0xdf8d33){const _0x2dea22=new View(_0x4b4925),_0x2adebe=[];let _0x2f8e80;_0xdf8d33?.['favicon']?(_0x2f8e80=new View(_0x4b4925),_0x2f8e80['setTemplate']({'tag':'img','attributes':{'src':_0xdf8d33['favicon'],'alt':_0xdf8d33['title'],'class':['ck-ai-web-source__tooltip-image']}})):(_0x2f8e80=new IconView(),_0x2f8e80['content']=IconWeb,_0x2f8e80['extendTemplate']({'attributes':{'alt':_0xdf8d33['title'],'class':['ck-ai-web-source__tooltip-image']}})),_0x2adebe['push'](_0x2f8e80);const _0x18f949=new View(_0x4b4925);_0x18f949['setTemplate']({'tag':'a','attributes':{'class':['ck-ai-web-source__tooltip-url'],'href':_0xdf8d33['url']},'children':[{'text':new URL(_0xdf8d33['url'])?.['hostname']}]}),_0x2adebe['push'](_0x18f949);const _0x1cb1d7=new View(_0x4b4925);_0x1cb1d7['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-web-source__tooltip-row']},'children':_0x2adebe});const _0x5d4fb9=new View(_0x4b4925);return _0x5d4fb9['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-web-source__tooltip-row','ck-ai-web-source__tooltip-title']},'children':[{'text':_0xdf8d33['title']['length']>TOOLTIP_TITLE_MAX_LENGTH?_0xdf8d33['title']['substring'](0x0,TOOLTIP_TITLE_MAX_LENGTH)+'...':_0xdf8d33['title']}]}),_0x2dea22['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-source__tooltip']},'children':[_0x1cb1d7,_0x5d4fb9]}),_0x2dea22;}['_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 _0x340c14=this['_createTooltipContentView'](this['locale'],this['source']);this['balloonPanelView']['content']['add'](_0x340c14);}}class AISuggestionBodyView extends View{['_actionsView'];['_sourcesView'];['_children'];['_areActionsDisabled'];['_showUnchangedParts'];['_updateContentPartsPromiseQueue'];['_emptyPartsWarningView'];['_availableActions'];['_cachedContentParts']=[];constructor(_0x4f422a,_0x4f6d62){super(_0x4f422a);const {areActionsDisabled:_0x552c8b,showUnchangedParts:_0xa7ca53,availableActions:_0x58944a}=_0x4f6d62;this['_areActionsDisabled']=_0x552c8b,this['_showUnchangedParts']=_0xa7ca53,this['_availableActions']=_0x58944a,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(_0x4f422a,'AI_SUGGESTION_EMPTY_PART_WARNING'),'level':'warning'}),this['_emptyPartsWarningView']['isVisible']=!0x1,this['_actionsView']=new AIChatFeedSuggestionItemActionsView(_0x4f422a,_0x4f6d62['availableActions'],this['_areActionsDisabled']),this['_actionsView']['bind']('isTrackChangesOn')['to'](this),this['_sourcesView']=new AIWebSourcesView(this['locale'],_0x4f6d62['bodyCollection']),_0x4f6d62['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:_0x16976c,renderingStrategy:_0x492fae,abortSignal:_0x172318}){this['_children']['length']?_0x16976c['forEach'](_0x287e58=>{const _0x530fc8=this['_cachedContentParts']['findIndex'](_0x236b74=>_0x236b74['index']==_0x287e58['index']);-0x1===_0x530fc8?this['_cachedContentParts']['push'](_0x287e58):this['_cachedContentParts'][_0x530fc8]=_0x287e58;}):this['_cachedContentParts']=_0x16976c;const _0x53be3e=this['_showUnchangedParts']?_0x16976c:_0x16976c['filter'](_0x202fc9=>_0x202fc9['hasChanges']);this['_actionsView']['_switchButtonLabelsPlurality'](_0x53be3e['length']>0x1);for(const _0x321900 of _0x53be3e)this['_updateContentPartsPromiseQueue']['enqueue'](async _0x1428ff=>{let _0x51f147=this['getPartView'](_0x321900['index']);_0x51f147||(_0x51f147=new AISuggestionBodyViewContentPartView(this['locale'],{'part':_0x321900,'uiIndex':this['_children']['length']+0x1,'areActionsDisabled':this['_areActionsDisabled'],'availableActions':this['_availableActions']}),_0x51f147['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_children']['add'](_0x51f147),this['hasPendingParts']=!0x0),await _0x51f147['updateContent']({'part':_0x321900,'renderingStrategy':_0x492fae,'showUnchangedParts':this['_showUnchangedParts'],'abortSignal':_0x1428ff}),_0x51f147['markAsDone']();});return _0x172318?.['addEventListener']('abort',()=>{this['_updateContentPartsPromiseQueue']['abort']();}),this['_updateContentPartsPromiseQueue']['queueEmptyPromise'];}['updatePartState'](_0x30ad86,_0x4fd112){const _0x527149=this['getPartView'](_0x30ad86);_0x527149&&(_0x527149['state']=_0x4fd112),this['hasPendingParts']='pending'==_0x4fd112||Array['from'](this['_children'])['some'](_0x493225=>'pending'==_0x493225['state']);}['setPartActive'](_0x5954b2,_0x5785ba){if(!0x1===_0x5954b2){for(const _0x2aacc2 of this['_children'])_0x2aacc2['isActive']=!0x1;}else{const _0x1b0784=this['getPartView'](_0x5954b2);_0x1b0784&&(_0x1b0784['isActive']=_0x5785ba);}}['updateSources'](_0x5941ec){_0x5941ec['forEach'](_0x2bfb48=>this['_sourcesView']['addSource'](_0x2bfb48)),this['_sourcesView']['isVisible']=!0x0;}['getPartView'](_0x1d1c8c){return this['_children']['find'](_0x178e09=>_0x178e09['partDefinition']['index']==_0x1d1c8c)??null;}['markAsDone'](){if(!this['_showUnchangedParts']){const _0x3b65cd=!this['_cachedContentParts']['find'](({hasChanges:_0xca66ff})=>_0xca66ff),_0x29f09d=!!this['_cachedContentParts']['find'](({hasChanges:_0x38f3b9})=>!_0x38f3b9);this['_emptyPartsWarningView']['isVisible']=0x0==this['_children']['length']||_0x29f09d,_0x3b65cd?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'](_0x2ace96=>_0x2ace96['markAsDone']()),this['_actionsView']['updateVisibility'](this['hasNonEmptyParts']);}get['hasNonEmptyParts'](){return this['_children']['filter'](_0x2e0887=>_0x2e0887['partDefinition']['hasChanges'])['length']>0x0;}}class AISuggestionContainerView extends View{['bodyView'];['children'];['headerView'];constructor(_0x15f356,_0x491a3b,_0x408465){super(_0x15f356);const {showDiff:_0x112607,areActionsDisabled:_0x40cb31,showUnchangedParts:_0x3b3fdf,availableActions:_0x35098f}=_0x491a3b;this['set']('isTrackChangesOn',!0x1),this['set']('areChangesVisible',!0x1),this['children']=this['createCollection'](),this['headerView']=new AISuggestionHeaderView(_0x15f356,{'showDiff':_0x112607}),this['headerView']['on']('toggleShowChanges',(_0x29391a,_0x329b7e)=>{this['areChangesVisible']=_0x329b7e['isOn'],this['fire']('toggleSuggestionDisplayMode',{'showDiff':_0x329b7e['isOn']});}),this['children']['add'](this['headerView']),this['bodyView']=new AISuggestionBodyView(_0x15f356,{'areActionsDisabled':_0x40cb31,'showUnchangedParts':!!_0x3b3fdf,'availableActions':_0x35098f,'bodyCollection':_0x408465}),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'](_0x3c4f05){await this['bodyView']['updateContentParts'](_0x3c4f05);}['updateSources'](_0x3337fd){this['bodyView']['updateSources'](_0x3337fd);}['markAsDone'](){this['bodyView']['markAsDone'](),this['headerView']&&(this['headerView']['isShowChangesToggleVisible']=this['bodyView']['hasNonEmptyParts']);}}class AIChatFeedSuggestionItemView extends AIChatFeedItemView{['containerView'];constructor(_0x56098e,_0x45c8b5,_0x2f932c){super(_0x45c8b5),this['set']('isTrackChangesOn',!0x1),this['containerView']=new AISuggestionContainerView(_0x56098e,{'showDiff':_0x45c8b5['showDiff'],'areActionsDisabled':_0x45c8b5['areActionsDisabled'],'availableActions':_0x45c8b5['availableActions']},_0x2f932c),this['containerView']['on']('toggleSuggestionDisplayMode',(_0x15af02,_0x760c21)=>{this['fire']('toggleSuggestionDisplayMode',{'replyId':this['options']['id'],'showDiff':_0x760c21['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',(_0x62830,{index:_0x3063b0})=>{this['fire']('showChangeInText',{'replyId':this['options']['id'],'partIndex':_0x3063b0});}),this['containerView']['on']('applySuggestion',(_0x3b7f69,{index:_0x369f9d}={})=>{this['fire']('applySuggestion',{'replyId':this['options']['id'],'partIndex':_0x369f9d});}),this['containerView']['on']('insertSuggestion',(_0x19c28b,{index:_0xbd8e2c}={})=>{this['fire']('insertSuggestion',{'replyId':this['options']['id'],'partIndex':_0xbd8e2c});}),this['containerView']['on']('rejectSuggestion',(_0x3afa9b,{index:_0x43b12f})=>{this['fire']('rejectSuggestion',{'replyId':this['options']['id'],'partIndex':_0x43b12f});}),this['containerView']['on']('mouseOverSuggestion',(_0x3e1d93,{index:_0x46f45a})=>{this['fire']('mouseOverSuggestion',{'replyId':this['options']['id'],'partIndex':_0x46f45a});}),this['containerView']['on']('mouseLeaveSuggestion',(_0x42e23e,{index:_0x136cdf})=>{this['fire']('mouseLeaveSuggestion',{'replyId':this['options']['id'],'partIndex':_0x136cdf});}),this['children']['addMany']([this['containerView']]),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__ai-suggestion']}});}async['updateContent'](_0x3d0eaa){await this['containerView']['updateContent'](_0x3d0eaa);}['updatePartState'](_0x59362e,_0x11e4bb){this['containerView']['bodyView']['updatePartState'](_0x59362e,_0x11e4bb);}['setPartActive'](_0x579739,_0x55cd51){!0x1===_0x579739?this['containerView']['bodyView']['setPartActive'](!0x1):this['containerView']['bodyView']['setPartActive'](_0x579739,_0x55cd51);}['updateSources'](_0x124131){this['containerView']['updateSources'](_0x124131);}['getPartView'](_0x1041a2){return this['containerView']['bodyView']['getPartView'](_0x1041a2);}['markAsDone'](){super['markAsDone'](),this['containerView']['markAsDone']();}}class AIChatFeedReplyItemView extends AIChatFeedItemView{['replyContainer'];['_bodyCollection'];constructor(_0x46f3cb,_0x27c66c,_0x315b90){super(_0x27c66c),this['_bodyCollection']=_0x315b90,this['locale']=_0x46f3cb,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:_0x265521,renderingStrategy:_0x4bddf8,abortSignal:_0x1c0ca6}){'streaming'===_0x4bddf8?await this['streamIntoElement'](_0x265521,this['replyContainer']['element'],_0x1c0ca6):this['replyContainer']['element']['innerHTML']=render(_0x265521);}['updateSources'](_0x115e45){const _0x2e7cc6=new AIWebSourcesView(this['locale'],this['_bodyCollection']);_0x2e7cc6['children']['addMany'](_0x115e45['map'](_0x5389c9=>new AIWebSourceView(this['locale'],_0x5389c9,_0x2e7cc6['balloonPanelView']))),_0x2e7cc6['isVisible']=!0x0,this['children']['add'](_0x2e7cc6);}}class AISpinnerView extends SpinnerView{constructor(_0xe9db3c=void 0x0){super();const _0x1d2e5c=_0xe9db3c?'ck-ai-spinner_'+_0xe9db3c:'';this['extendTemplate']({'tag':'span','attributes':{'class':['ck-ai-spinner',_0x1d2e5c]}});}}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(_0x7c749,_0x34a9fd,_0x43357b,_0x18b51c,_0x547d5c=!0x1){super(_0x7c749),this['_isAnimationOnEnterEnabled']=_0x18b51c,this['_initializeProperties'](_0x34a9fd,_0x43357b,_0x547d5c),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'](_0x30ca78,_0xa5f323,_0x2a48ac){this['set']('label',_0x30ca78['label']),this['set']('tooltip',!0x0),this['set']('itemType',_0x30ca78['type']),this['set']('id',_0x30ca78['uiId']),this['set']('readonly',_0xa5f323),this['set']('isLoading',_0x2a48ac);}['_setupTemplate'](){const _0x247655=this['_createIconView'](),_0x4e4aed=this['_createRemoveButton'](),_0x50a909=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':this['_createTemplateAttributes'](_0x50a909),'children':this['_createTemplateChildren'](_0x247655,_0x4e4aed,_0x50a909)});}['_createTemplateAttributes'](_0x1e8227){return{'class':[CSS_CLASSES$7['contextChip'],_0x1e8227['if']('itemType',CSS_CLASSES$7['contextChipDocument'],_0x401873=>'document'==_0x401873),_0x1e8227['if']('itemType',CSS_CLASSES$7['contextChipWide'],_0x4c24a6=>'selection'==_0x4c24a6)],'data-cke-tooltip-text':_0x1e8227['to']('label',getTooltipForLabel),'data-cke-tooltip-position':TOOLTIP_CONFIG['position'],'data-cke-tooltip-class':CSS_CLASSES$7['chipTooltip']};}['_createTemplateChildren'](_0xe9da8d,_0x5dca44,_0x545205){const _0x46ddf0=this['_createLabelElement'](_0x545205),_0x36e727=this['_createLoaderIcon']();return this['readonly']?[_0xe9da8d,_0x46ddf0]:[_0xe9da8d,_0x36e727,_0x46ddf0,_0x5dca44];}['_createLabelElement'](_0x7af81b){return{'tag':'span','attributes':{'class':CSS_CLASSES$7['contextChipLabel']},'children':[{'text':_0x7af81b['to']('label')}]};}['_createRemoveButton'](){const _0x477919=new ButtonView(this['locale']);return _0x477919['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT'),'icon':IconClose}),this['_setupRemoveButtonEvent'](_0x477919),_0x477919;}['_setupRemoveButtonEvent'](_0x10746e){_0x10746e['on']('execute',()=>{this['fire']('removeContextItemChip',this['id']);});}['_createIconView'](){const _0x4752a4=this['bindTemplate'],_0x5454c8=new IconView();return _0x5454c8['content']=CONTEXT_TYPES_TO_ICONS[this['itemType']],_0x5454c8['extendTemplate']({'attributes':{'class':[CSS_CLASSES$7['contextChipTypeIcon'],_0x4752a4['if']('isLoading','ck-hidden',_0x268e48=>_0x268e48)]}}),_0x5454c8;}['_handleAnimationEndOnce'](_0x26d3f7,_0x5704c0){if(!_0x26d3f7)return;const _0x2b7c50=()=>{_0x5704c0(),_0x26d3f7['removeEventListener']('animationend',_0x2b7c50),_0x26d3f7['removeEventListener']('webkitAnimationEnd',_0x2b7c50);};_0x26d3f7['addEventListener']('animationend',_0x2b7c50),_0x26d3f7['addEventListener']('webkitAnimationEnd',_0x2b7c50);}['_createLoaderIcon'](){const _0x5a129e=new AISpinnerView('small');return _0x5a129e['bind']('isVisible')['to'](this,'isLoading',_0x455a6b=>_0x455a6b),_0x5a129e;}}function getTooltipForLabel(_0x3f37e8){if(!_0x3f37e8)return _0x3f37e8;if(_0x3f37e8['length']<=TOOLTIP_MAX_CHAR_LENGTH)return _0x3f37e8;const _0xae9879=_0x3f37e8['slice'](0x0,TOOLTIP_MAX_CHAR_LENGTH),_0x559ca8=_0xae9879['lastIndexOf']('\x20');return(_0x559ca8>0x0?_0xae9879['slice'](0x0,_0x559ca8):_0xae9879)+'…';}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(_0x2b9c4a,_0x49e413,_0x4ca394,_0x17d4ee,_0x26da72){this['_locale']=_0x2b9c4a,this['_visibleChips']=_0x49e413,this['_config']={...DEFAULT_CONFIG,..._0x4ca394,'cssClasses':{'controlsButton':'','calculationContainer':'ck-calculation-container',..._0x4ca394['cssClasses']}},this['_overflowChips']=new Collection(),this['_bodyCollection']=_0x17d4ee,this['_parentView']=_0x26da72||null;}['setContainerElement'](_0x31aa42){this['_intersectionObserver']&&(this['_intersectionObserver']['disconnect'](),this['_intersectionObserver']=null),this['_containerElement']=_0x31aa42,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 _0x29eb4b=[...this['_visibleChips'],...this['_overflowChips']],_0x12b5d9=this['_createCalculationContainer'](),_0x28936f=this['_calculateOverflowInContainer'](_0x12b5d9,_0x29eb4b),_0x10ca19=_0x12b5d9['_ancestorsToRestore'];_0x10ca19&&this['_restoreAncestorVisibility'](_0x10ca19),_0x12b5d9['remove'](),this['_applyOverflowResults'](_0x29eb4b,_0x28936f);}['_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 _0x3c0205=new ButtonView(this['_locale']);_0x3c0205['set']({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x15ae2e=[this['_config']['cssClasses']['showMoreButton']];return this['_config']['cssClasses']['controlsButton']&&_0x15ae2e['push'](this['_config']['cssClasses']['controlsButton']),_0x3c0205['extendTemplate']({'attributes':{'class':_0x15ae2e}}),_0x3c0205;}['_createShowMoreBalloonPanelView'](){const _0x514451=new BalloonPanelView(this['_locale']);return _0x514451['extendTemplate']({'attributes':{'class':this['_config']['cssClasses']['showMoreBalloon']}}),this['_bodyCollection']['add'](_0x514451),_0x514451;}['_updateBalloonContent'](){if(this['_showMoreBalloonPanelView']&&(this['_showMoreBalloonPanelView']['content']['clear'](),this['_overflowChips']['length']>0x0)){this['_overflowChips']['forEach'](_0x5f5d67=>{_0x5f5d67['disableAnimationOnEnter']();});const _0x1c4fa3=new View(this['_locale']);_0x1c4fa3['setTemplate']({'tag':'div','attributes':{'class':this['_config']['cssClasses']['overflowContainer']},'children':this['_overflowChips']}),this['_showMoreBalloonPanelView']['content']['add'](_0x1c4fa3);}}['_handleShowMoreButtonClick'](){this['_showMoreButtonView']['isOn']?this['hideBalloonPanel']():this['showBalloonPanel']();}['_updateShowMoreButtonVisibility'](){const _0x4a729f=this['_overflowChips']['length']>0x0;this['_showMoreButtonView']?.['element']&&(this['_showMoreButtonView']['element']['style']['display']=_0x4a729f?'':'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'](_0x5d74de){const _0x5a1b86=this['_containerElement']?.['tagName']['toLowerCase']()||'div',_0x358e6c=this['_containerElement']?.['classList'];if(_0x358e6c){const _0x37aa43=_0x358e6c[0x0]||'',_0x45446a=_0x5d74de['querySelector']('.'+_0x37aa43),_0x27d9ec=_0x5d74de['querySelector'](_0x5a1b86);return _0x45446a||_0x27d9ec||_0x5d74de;}return _0x5d74de['querySelector'](_0x5a1b86)||_0x5d74de;}['_calculateContainerWidth'](){const _0x460e32=this['_parentView']?.['element']||this['_containerElement'];if(!_0x460e32)return FALLBACK_CONTAINER_WIDTH;const _0x35a2ad=window['getComputedStyle'](_0x460e32)['width'];if('auto'===_0x35a2ad||'0px'===_0x35a2ad||!_0x35a2ad){const _0x3d383e=_0x460e32['parentElement'];if(_0x3d383e){const _0x4b4328=window['getComputedStyle'](_0x3d383e);return'auto'!==_0x4b4328['width']?_0x4b4328['width']:FALLBACK_CONTAINER_WIDTH;}return FALLBACK_CONTAINER_WIDTH;}return _0x35a2ad;}['_applyCalculationStyles'](_0x1965ad,_0x37b58e){this['_config']['cssClasses']['calculationContainer']&&_0x1965ad['classList']['add'](this['_config']['cssClasses']['calculationContainer']),_0x1965ad['style']['width']=_0x37b58e,_0x1965ad['style']['position']='absolute',_0x1965ad['style']['top']='-9999px',_0x1965ad['style']['left']='-9999px',_0x1965ad['style']['opacity']='0',_0x1965ad['style']['pointerEvents']='none',_0x1965ad['style']['zIndex']='-1',_0x1965ad['style']['visibility']='visible\x20!important',_0x1965ad['style']['display']='block\x20!important',_0x1965ad['style']['boxSizing']='border-box';}['_restoreAncestorVisibility'](_0x18f1bc){_0x18f1bc['forEach'](({element:_0x19436d,originalDisplay:_0xb07788,originalVisibility:_0x48c9e3})=>{_0x19436d['style']['display']=_0xb07788,_0x19436d['style']['visibility']=_0x48c9e3;});}['_makeAncestorsVisible'](_0x51f2d4){const _0x35ccfe=[];let _0x177f26=_0x51f2d4;for(;_0x177f26&&_0x177f26!==document['body'];){const _0x310c9a=window['getComputedStyle'](_0x177f26);'none'!==_0x310c9a['display']&&'hidden'!==_0x310c9a['visibility']||(_0x35ccfe['push']({'element':_0x177f26,'originalDisplay':_0x177f26['style']['display'],'originalVisibility':_0x177f26['style']['visibility']}),_0x177f26['style']['display']='block',_0x177f26['style']['visibility']='visible'),_0x177f26=_0x177f26['parentElement'];}return _0x35ccfe;}['_createContainerElements'](){let _0x1e2925,_0x513cc7;return this['_parentView']?.['element']?(_0x1e2925=this['_parentView']['element']['cloneNode'](!0x0),_0x513cc7=this['_findTargetContainer'](_0x1e2925)):(_0x1e2925=document['createElement']('div'),_0x513cc7=_0x1e2925),{'calculationContainer':_0x1e2925,'targetContainer':_0x513cc7};}['_createCalculationContainer'](){const {calculationContainer:_0x1643ab,targetContainer:_0x471523}=this['_createContainerElements'](),_0x455b9e=this['_calculateContainerWidth']();this['_applyCalculationStyles'](_0x1643ab,_0x455b9e);const _0x1314fa=this['_parentView']?.['element']||this['_containerElement'],_0x3dc453=_0x1314fa?.['parentElement'];_0x3dc453?_0x3dc453['appendChild'](_0x1643ab):document['body']['appendChild'](_0x1643ab),_0x1643ab['_targetContainer']=_0x471523;const _0x16003d=this['_makeAncestorsVisible'](_0x3dc453||null);return _0x1643ab['offsetWidth'],_0x1643ab['_ancestorsToRestore']=_0x16003d,_0x1643ab;}['_calculateOverflowInContainer'](_0x1837b2,_0x117e1e){const _0x180768=_0x1837b2['_targetContainer']||_0x1837b2,_0x95a6f3=[],{rowCount:_0x1c041e}=this['_renderChipsAndCountRows'](_0x180768,_0x117e1e);if(_0x1c041e<=this['_config']['maxVisibleRows'])return _0x95a6f3;const _0x49e74f=_0x117e1e['slice']();for(;_0x49e74f['length']>0x0;){if(this['_testButtonFit'](_0x1837b2,_0x180768,_0x49e74f)){const _0x23955d=_0x117e1e['filter'](_0xb79c02=>!_0x49e74f['includes'](_0xb79c02));_0x95a6f3['push'](..._0x23955d);break;}if(!_0x49e74f['pop']())break;}return _0x95a6f3;}['_renderChipsAndCountRows'](_0x33fb9a,_0x5c4e6f){_0x33fb9a['innerHTML']='',_0x5c4e6f['forEach'](_0x39fa5b=>{if(_0x39fa5b['element']){const _0x3de9ca=_0x39fa5b['element']['cloneNode'](!0x0);_0x33fb9a['appendChild'](_0x3de9ca);}}),_0x33fb9a['offsetWidth'];const _0x5f1a96=_0x33fb9a['children'],_0x127cef=[];return Array['from'](_0x5f1a96)['forEach'](_0x51d2f6=>{const _0x3b757a=_0x51d2f6['getBoundingClientRect']()['top'];_0x127cef['some'](_0x31b00b=>Math['abs'](_0x31b00b-_0x3b757a)<this['_config']['rowDetectionTolerance'])||_0x127cef['push'](_0x3b757a);}),{'rowCount':_0x127cef['length']};}['_createMockButton'](){const _0x42f991=document['createElement']('button');return _0x42f991['className']=this['_config']['cssClasses']['showMoreButton'],this['_config']['cssClasses']['controlsButton']&&_0x42f991['classList']['add'](this['_config']['cssClasses']['controlsButton']),_0x42f991['textContent']='+\x201',_0x42f991;}['_testButtonFit'](_0x1b1770,_0xf312e,_0x4367dc){this['_renderChipsAndCountRows'](_0xf312e,_0x4367dc);const _0x5ddca3=this['_createMockButton']();_0x1b1770['appendChild'](_0x5ddca3),_0x1b1770['offsetWidth'];const _0x2b0804=[..._0xf312e['children'],_0x5ddca3],_0x59719b=[];_0x2b0804['forEach'](_0x148169=>{const _0x10ffb7=_0x148169['getBoundingClientRect']()['top'];_0x59719b['some'](_0x4a7801=>Math['abs'](_0x4a7801-_0x10ffb7)<this['_config']['rowDetectionTolerance'])||_0x59719b['push'](_0x10ffb7);});const _0x4a0014=_0x59719b['length'];return _0x5ddca3['remove'](),_0x4a0014<=this['_config']['maxVisibleRows'];}['_distributeChips'](_0x4f79e2,_0x1f33f0){this['_visibleChips']['clear'](),this['_overflowChips']['clear'](),_0x4f79e2['forEach'](_0x1887e3=>{_0x1f33f0['includes'](_0x1887e3)?this['_overflowChips']['add'](_0x1887e3):this['_visibleChips']['add'](_0x1887e3);});}['_updateOverflowUI'](_0x5b1c79){if(_0x5b1c79>0x0&&!this['_showMoreButtonView']&&this['_createShowMoreButton'](),_0x5b1c79>0x0&&this['_showMoreButtonView']){const _0x10aade=''+this['_config']['showMoreLabelPrefix']+(_0x5b1c79<0x63?_0x5b1c79:'99');this['_showMoreButtonView']['label']=_0x10aade;}this['_updateBalloonContent'](),this['_updateShowMoreButtonVisibility'](),this['_repinBalloonPanel']();}['_applyOverflowResults'](_0x14413d,_0x54e736){this['_distributeChips'](_0x14413d,_0x54e736),this['_updateOverflowUI'](_0x54e736['length']);}['_setupVisibilityObserver'](){this['_containerElement']&&'undefined'!=typeof IntersectionObserver&&(this['_intersectionObserver']=new IntersectionObserver(_0x5aae0b=>{_0x5aae0b[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 _0x37cb5d=this['_containerElement']['getBoundingClientRect']();if(0x0===_0x37cb5d['width']||0x0===_0x37cb5d['height'])return!0x1;const _0x6ac206=window['innerHeight']||document['documentElement']['clientHeight'],_0x54e5c0=window['innerWidth']||document['documentElement']['clientWidth'],_0x5d0ff8=0xc8;return _0x37cb5d['bottom']>=-0xc8&&_0x37cb5d['top']<=_0x6ac206+_0x5d0ff8&&_0x37cb5d['right']>=-0xc8&&_0x37cb5d['left']<=_0x54e5c0+_0x5d0ff8;}}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(_0x884b95,_0x41fd7a,_0x337537){super(_0x884b95),this['_bodyCollection']=_0x337537,this['_createContextChips'](_0x41fd7a);const _0x448cb2={'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(_0x884b95,this['_contextChips'],_0x448cb2,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 _0x41a2f7=this['element']['querySelector']('.'+CSS_CLASSES$6['CONTEXT_CHIPS_VISIBLE']);_0x41a2f7&&(this['_overflowManager']['setContainerElement'](_0x41a2f7),this['_overflowManager']['reorganizeChips']());}['destroy'](){super['destroy'](),this['_overflowManager']['destroy']();}['_createContextChips'](_0x49ef4d){for(const _0x4d605f of _0x49ef4d){const _0x23b2d7=new AIChatContextItemButtonView(this['locale'],_0x4d605f,!0x0,!0x1);this['_contextChips']['add'](_0x23b2d7);}}}class AIChatFeedUserMessageItemView extends AIChatFeedItemView{['_contextChipsView']=null;['_locale'];['_bodyCollection'];['_messageContentView'];constructor(_0x4c03d8,_0x4322cf,_0x1fda51){super(_0x4322cf),this['_locale']=_0x4c03d8,this['_bodyCollection']=_0x1fda51,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'](_0x4281a3=>!_0x4281a3['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(_0x412677,_0x6d2abd){super(_0x6d2abd);const {isWebSearchEnabled:_0x19ce0c,isReasoningEnabled:_0x72e45e}=_0x6d2abd['capabilities'],_0x2efd5=[];let _0x48c8b0='';_0x19ce0c&&_0x72e45e?(_0x48c8b0=getTranslation$i(_0x412677,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING'),_0x2efd5['push'](createIcon(IconWeb)),_0x2efd5['push'](createIcon(IconBulb))):_0x19ce0c?(_0x48c8b0=getTranslation$i(_0x412677,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH'),_0x2efd5['push'](createIcon(IconWeb))):_0x72e45e&&(_0x48c8b0=getTranslation$i(_0x412677,'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING'),_0x2efd5['push'](createIcon(IconBulb))),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__interaction-header',_0x48c8b0?'':'ck-hidden']}});const _0x395603=new View();_0x395603['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__interaction-header__capabilities']},'children':[..._0x2efd5,{'tag':'span','attributes':{'class':['ck-ai-chat__feed__interaction-header__capabilities__text']},'children':[_0x48c8b0]}]}),this['children']['add'](_0x395603),this['capabilities']=_0x6d2abd['capabilities'];}}function createIcon(_0x412165){const _0xda76a7=new IconView();return _0xda76a7['content']=_0x412165,_0xda76a7;}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(_0x10cc21){this['element']=_0x10cc21,this['animationFrameId']=null,this['isRunning']=!0x1,this['abortController']=new AbortController(),this['isUserPaused']=!0x1;for(const _0x3f7c14 of USER_CANCEL_EVENT_NAMES){const _0x1c3ee4='keydown'!==_0x3f7c14;this['element']['addEventListener'](_0x3f7c14,this['_onUserEvent']['bind'](this),{'passive':_0x1c3ee4,'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'](_0x5530e6){if(this['isRunning']){if('keydown'===_0x5530e6['type']){const _0x5084bd=_0x5530e6['key'];if(!USER_CANCEL_SCROLL_KEYS['includes'](_0x5084bd))return;}_0x5530e6 instanceof WheelEvent?_0x5530e6['deltaY']<0x0?this['isUserPaused']=!0x0:this['isUserPaused']=!this['_isAtBottom']():this['isUserPaused']=!0x0;}}['_isAtBottom'](){const {scrollTop:_0x55a074,scrollHeight:_0x5cc65a,clientHeight:_0x44dbc6}=this['element'];return _0x5cc65a-_0x55a074-_0x44dbc6<=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(_0x13881d,_0x44d02d){super(_0x13881d),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-skeleton']},'children':this['_createSkeletonItems'](_0x44d02d)});}['_createSkeletonItems'](_0x29d8d7){const _0x15419d=['ck','ck-ai-skeleton__item'];return _0x29d8d7['map'](_0x291994=>{let _0x250011='';switch(_0x291994['attributes']['align']){case'right':_0x250011='margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;';break;case'center':_0x250011='margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;';break;case'left':_0x250011='margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;';}return{'tag':_0x291994['tag'],'attributes':{'class':[..._0x15419d,_0x291994['attributes']['class']?_0x291994['attributes']['class']:''],'style':'width:\x20'+_0x291994['attributes']['width']+';\x20height:\x20'+_0x291994['attributes']['height']+';'+_0x250011}};});}}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(_0x1e5908,_0x138c5f,_0x379eec,_0x2586ea){return new Array(_0x1e5908)['fill'](null)['map'](()=>({'tag':'div','attributes':{'width':_0x138c5f,'height':_0x379eec,'align':_0x2586ea}}));}class AIChatFeedCustomElementView extends AIChatFeedItemView{constructor(_0xa260f5){super(_0xa260f5),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(_0x3c5bab,_0x37f1c0){super(_0x3c5bab),this['_bodyCollection']=_0x37f1c0,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'](_0x5ea0ca,_0x5eb78a){let _0x544333;return'ai-reply'===_0x5ea0ca?_0x544333=new AIChatFeedReplyItemView(this['locale'],_0x5eb78a,this['_bodyCollection']):'ai-suggestion-reply'===_0x5ea0ca?(_0x544333=new AIChatFeedSuggestionItemView(this['locale'],_0x5eb78a,this['_bodyCollection']),_0x544333['bind']('isTrackChangesOn')['to'](this)):_0x544333='user-message'===_0x5ea0ca?new AIChatFeedUserMessageItemView(this['locale'],_0x5eb78a,this['_bodyCollection']):'interaction-header'===_0x5ea0ca?new AIChatFeedInteractionHeaderView(this['locale'],_0x5eb78a):'custom-element'===_0x5ea0ca?new AIChatFeedCustomElementView(_0x5eb78a):new AIChatFeedErrorItemView(_0x5eb78a),this['children']['add'](_0x544333),_0x544333;}async['updateReplyItem']({id:_0x76f839,parsedContent:_0x48dd2e,renderingStrategy:_0xb64428,abortSignal:_0x561bb3}){const _0x3e776c=this['getItemById'](_0x76f839);if(!(_0x3e776c instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-reply-item',null,{'itemView':_0x3e776c,'id':_0x76f839,'parsedContent':_0x48dd2e});await _0x3e776c['updateContent']({'parsedContent':_0x48dd2e,'renderingStrategy':_0xb64428,'abortSignal':_0x561bb3});}async['updateWebSources'](_0x4e2618,_0x2997b5){const _0x1847f2=this['getItemById'](_0x4e2618);if(_0x1847f2 instanceof AIChatFeedSuggestionItemView)_0x1847f2['updateSources'](_0x2997b5);else{if(!(_0x1847f2 instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-or-reply-item',null,{'itemView':_0x1847f2,'id':_0x4e2618,'sources':_0x2997b5});_0x1847f2['updateSources'](_0x2997b5);}}async['updateSuggestionItem']({id:_0x19d87f,parts:_0x1e46cd,renderingStrategy:_0x2b9474,abortSignal:_0x34168d}){const _0x20c505=this['getItemById'](_0x19d87f);if(!(_0x20c505 instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',null,{'itemView':_0x20c505,'id':_0x19d87f,'parts':_0x1e46cd});await _0x20c505['updateContent']({'parts':_0x1e46cd,'renderingStrategy':_0x2b9474,'abortSignal':_0x34168d});}['updateSuggestionPartState']({id:_0x33c0d4,index:_0x127221,state:_0x5c66c9}){const _0x59ad21=this['getItemById'](_0x33c0d4);if(!(_0x59ad21 instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x33c0d4});_0x59ad21['updatePartState'](_0x127221,_0x5c66c9);}['setSuggestionPartActive']({id:_0x1ce1a5,index:_0x4690f9,isActive:_0x5da8b1}){const _0x2f310a=this['getItemById'](_0x1ce1a5);if(!(_0x2f310a instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x1ce1a5});this['children']['filter'](_0x4f389e=>_0x4f389e instanceof AIChatFeedSuggestionItemView)['forEach'](_0x4556b4=>{_0x4556b4['setPartActive'](!0x1);}),_0x2f310a['setPartActive'](_0x4690f9,_0x5da8b1);}['markItemAsDone'](_0x1795d2){this['getItemById'](_0x1795d2)['markAsDone']();}['getItemIds'](){return this['children']['map'](_0x41166f=>_0x41166f['options']['id']);}['removeItem'](_0xb12921){this['children']['remove'](this['getItemById'](_0xb12921));}['hasItem'](_0x43d8bd){return!!this['children']['find'](_0x65c38e=>_0x65c38e['options']['id']['includes'](_0x43d8bd));}['scrollToSuggestion'](_0x499d79,_0x513bd3){const _0xf89050=this['getItemById'](_0x499d79);if(!(_0xf89050 instanceof AIChatFeedSuggestionItemView))return void logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item',{'replyId':_0x499d79,'partIndex':_0x513bd3});const _0xf4422d=_0xf89050['getPartView'](_0x513bd3);_0xf4422d?scrollAncestorsToShowTarget(_0xf4422d['element'],0x14,this['element']['parentElement'],!0x0,!0x0):logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found',{'replyId':_0x499d79,'partIndex':_0x513bd3});}['_setupTemplate'](){this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed']},'children':this['_createTemplateChildren']()});}['_createTemplateChildren'](){const _0x576185=this['_createSkeletonLoader']();return[this['_createFeedItems'](),_0x576185,this['_createFeedLoader']()];}['_createSkeletonLoader'](){const _0x84087f=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiFeed']);return _0x84087f['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden',_0x1b464d=>!_0x1b464d)]}}),_0x84087f;}['_createFeedItems'](){const _0x34133c=new View(this['locale']);return _0x34133c['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__items',this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden')]},'children':this['children']}),_0x34133c;}['_createFeedLoader'](){const _0xa42d2b=new View(this['locale']);return _0xa42d2b['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__loader',this['bindTemplate']['if']('isPending','ck-hidden',_0x3941bc=>!_0x3941bc)]},'children':this['_createLoaderChildren']()}),_0xa42d2b;}['_createLoaderChildren'](){const _0x586e00=new AISpinnerView();return _0x586e00['isVisible']=!0x0,[_0x586e00,{'tag':'span','attributes':{'class':['ck','ck-ai-chat__loader-text']},'children':[{'text':this['bindTemplate']['to']('loadingMessage')}]}];}['getItemById'](_0x234158){const _0x445bfb=this['children']['find'](_0x11c4e0=>_0x11c4e0['options']['id']['includes'](_0x234158));if(!_0x445bfb)throw new CKEditorError('ai-chat-feed-view-item-not-found',this,{'id':_0x234158});return _0x445bfb;}['setLoadingMessage'](_0x3b3b02){this['set']('loadingMessage',_0x3b3b02);}['toggleLoadingSkeleton'](_0x8e4ee6){this['set']('isLoadingSkeletonVisible',_0x8e4ee6);}['startAutoScroll'](){this['scrollManager']['start']();}['stopAutoScroll'](){this['scrollManager']['stop']();}}class AIChatPromptSuggestionsListView extends ListView{['filter'](){let _0x2aa83a=0x0;for(const _0x159e84 of this['items'])_0x2aa83a+=_0x159e84['items']['length'];return{'resultsCount':_0x2aa83a,'totalItemsCount':_0x2aa83a};}}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(_0x47cc3b,_0x289302){super(_0x47cc3b,{'queryView':{'label':'','creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new AIChatPromptSuggestionsListView(_0x47cc3b),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this['set']('isEmpty',!0x0),this['set']('isUploadInProgress',!0x1),this['_addContextButtonView']=_0x289302,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',(_0x2ad58c,_0x402bdb)=>!_0x2ad58c&&!_0x402bdb),this['focusableChildren']['add'](this['submitButtonView']);}['render'](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this['submitButtonView']),this['keystrokes']['set']('enter',(_0x24d5ce,_0x58549c)=>{this['isUploadInProgress']||this['isEmpty']||_0x24d5ce['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x58549c());}),this['queryView']['fieldView']['on']('update',()=>{this['isEmpty']=''===this['queryView']['fieldView']['element']['value']?.['trim']();});}['destroy'](){super['destroy'](),this['_queryViewResizeObserver']&&this['_queryViewResizeObserver']['destroy']();}['submit'](){const _0x45b439=this['queryView']['fieldView']['element']['value']?.['trim']();if(!_0x45b439)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 _0x3ea16c=escape(_0x45b439);this['fire']('sendUserMessage',_0x3ea16c),this['queryView']['fieldView']['reset']();}['setPlaceholderText'](_0x3e1fd1){this['queryView']['fieldView']['set']('placeholder',_0x3e1fd1);}['focus'](_0x26ff74=!0x1){super['focus'](),_0x26ff74&&(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 _0xd392ee=new ButtonView(this['locale']);return _0xd392ee['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}),_0xd392ee['on']('execute',()=>{this['submit']();}),_0xd392ee;}['setIsUploadInProgress'](_0x92d89b){this['isUploadInProgress']=_0x92d89b;}['_setUpAddContextButtonPositioning'](){const _0x500205=this['locale'],_0x3f3cd3=()=>{_0x42cc73['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x4dde22=new Rect(this['queryView']['fieldView']['element']),_0x1b192d=new Rect(this['_addContextButtonView']['element']),_0x18ada0=_0x4dde22['width'],_0x596191='rtl'===_0x500205['uiLanguageDirection']?'right':'left';_0x4dde22['excludeScrollbarsAndBorders']();const _0x3f9e11=_0x18ada0-_0x4dde22['width']+0x1;this['_addContextButtonView']['element']['style'][_0x596191]='calc('+(_0x18ada0-_0x1b192d['width']-_0x3f9e11)+'px\x20-\x20var(--ck-spacing-tiny))';}});};this['queryView']['fieldView']['on']('update',_0x3f3cd3),this['on']('render',()=>{_0x3f3cd3(),this['_queryViewResizeObserver']=new _0x42ae1a(this['queryView']['fieldView']['element'],()=>{_0x3f3cd3();});});}}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(_0x69e295){super(_0x69e295),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',_0x417dd1=>'selector'===_0x417dd1),this['_modelSelectionDropdown']['buttonView']['bind']('tooltip')['to'](this,'modelSelectorEnabled',_0x19c2ec=>_0x19c2ec?this['_modelSelectionDropdown']['buttonView']['label']:getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP')),this['_modelSelectionDropdown']['bind']('isEnabled')['to'](this,'modelSelectorEnabled',_0x195656=>_0x195656),this['_webSearchButton']['bind']('isOn')['to'](this,'webSearchActive',_0x5a997e=>_0x5a997e),this['_webSearchButton']['bind']('tooltip')['to'](this,'webSearchActive',_0x4d4e98=>getTranslation$i(this['locale'],_0x4d4e98?'AI_CHAT_DISABLE_WEB_SEARCH':'AI_CHAT_ENABLE_WEB_SEARCH')),this['_reasoningButton']['bind']('isOn')['to'](this,'reasoningActive',_0x3e1585=>_0x3e1585),this['_reasoningButton']['bind']('tooltip')['to'](this,'reasoningActive',_0x5bf203=>getTranslation$i(this['locale'],_0x5bf203?'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'](_0x181e5a,_0x5e4469){if(_0x5e4469)this['set']('modelDisplayMode','hidden');else{const _0x147087=0x1===_0x181e5a['length'];this['set']('modelDisplayMode',_0x147087?'name':'selector');}if(this['_modelSelectionDropdownItems']['clear'](),_0x181e5a?.['length'])for(const _0x5a2c8f of _0x181e5a){const _0x494bdc=new UIModel({'label':_0x5a2c8f['name'],'withText':!0x0,'role':'menuitemradio','id':_0x5a2c8f['id'],'model':_0x5a2c8f});_0x494bdc['bind']('isOn')['to'](this,'activeModelId',_0x1a5e99=>_0x1a5e99===_0x5a2c8f['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x494bdc,'labelView':new ModelButtonLabelView$1(this['locale'],_0x5a2c8f)});}}['setWebSearch'](_0x3f8da7){this['set']('webSearchActive',_0x3f8da7);}['setReasoning'](_0x3b0430){this['set']('reasoningActive',_0x3b0430);}['setModel'](_0xe54791){if(!_0xe54791)return;this['activeModelId']=_0xe54791['id'],this['activeModelName']=_0xe54791['name']||_0xe54791['id'],this['_modelSelectionDropdown']['buttonView']['set']('label',_0xe54791['name']),this['_modelSelectionDropdown']['buttonView']['set']('tooltip',_0xe54791['name']);const _0x3d1ed2=_0xe54791['capabilities']['webSearch']?.['enabled']??!0x1;this['set']('webSearchActive',!0x1),this['_webSearchButton']['set']('isOn',!0x1),this['_webSearchButton']['set']('isEnabled',_0x3d1ed2),this['_webSearchButton']['set']('isVisible',_0x3d1ed2);const _0x4a0861=_0xe54791['capabilities']['reasoning']?.['enabled']??!0x1;this['set']('reasoningActive',!0x1),this['_reasoningButton']['set']('isOn',!0x1),this['_reasoningButton']['set']('isEnabled',_0x4a0861),this['_reasoningButton']['set']('isVisible',_0x4a0861);}['enableModelSelector'](){this['set']('modelSelectorEnabled',!0x0);}['disableModelSelector'](_0x3a0e0e){this['set']('modelSelectorEnabled',!0x1),_0x3a0e0e&&this['set']('modelDisplayMode','hidden');}['_createWebSearchButton'](){const _0x1c5c5a=new ButtonView();return _0x1c5c5a['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_SEARCH_WEB'),'icon':IconWeb,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x1c5c5a['on']('execute',()=>{this['fire']('toggleWebSearch');}),_0x1c5c5a;}['_createReasoningButton'](){const _0x5b8364=new ButtonView();return _0x5b8364['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_REASONING'),'icon':IconBulb,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x5b8364['on']('execute',()=>{this['fire']('toggleReasoning');}),_0x5b8364;}['_createCommandsButton'](){const _0x59d36e=new ButtonView();return _0x59d36e['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}),_0x59d36e['extendTemplate']({'attributes':{'class':[CSS_CLASSES$5['COMMANDS_BUTTON']]}}),_0x59d36e['on']('execute',()=>{console['log']('Commands\x20are\x20not\x20implemented\x20yet.'),alert('Commands\x20are\x20not\x20implemented\x20yet.');}),_0x59d36e;}['_createModelSelectionDropdown'](){const _0x58ca4a=createDropdown(this['locale']);return _0x58ca4a['set']({'panelPosition':'ne','class':[CSS_CLASSES$5['MODEL_SELECTION']]}),_0x58ca4a['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'](_0x58ca4a,'execute',_0x2ab958=>{this['fire']('selectModel',_0x2ab958['source']['model']);}),_0x58ca4a;}['_createModelNameView'](){const _0x1cc034=new ModelNameView$1(this['locale']);return _0x1cc034['bind']('text')['to'](this,'activeModelName',_0x589026=>_0x589026??''),_0x1cc034['bind']('isVisible')['to'](this,'modelDisplayMode',_0x4b25f7=>'name'===_0x4b25f7),_0x1cc034;}}let ModelButtonLabelView$1=class extends ButtonLabelView{constructor(_0x4bf1bd,_0x4c53ab){super();const _0x5aa3e7=this['bindTemplate'],_0x1b2acd=this['createCollection']();this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x5aa3e7['to']('style'),'id':_0x5aa3e7['to']('id')},'children':[{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_NAME']]},'children':[{'text':_0x5aa3e7['to']('text')}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_DESCRIPTION']]},'children':[{'tag':'span','children':[{'text':_0x4c53ab['description']}]}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_CAPABILITIES']]},'children':_0x1b2acd}]}),_0x1b2acd['addMany'](this['_getCapabilityParts'](_0x4bf1bd,IconWeb,'AI_CHAT_SEARCH_WEB',_0x4c53ab['capabilities']['webSearch']?.['enabled']??!0x1)),_0x1b2acd['addMany'](this['_getCapabilityParts'](_0x4bf1bd,IconBulb,'AI_CHAT_REASONING',_0x4c53ab['capabilities']['reasoning']?.['enabled']??!0x1));}['_getCapabilityParts'](_0x27d048,_0x1bbd63,_0x1bb7a9,_0x519465){const _0x4cecfc=new IconView();_0x4cecfc['content']=_0x1bbd63;const _0x3f1097=new View(_0x27d048);_0x3f1097['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x27d048,_0x1bb7a9)+':\x20'}]});const _0x2b9322=new View(_0x27d048);return _0x2b9322['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x27d048,_0x519465?'AI_CHAT_CAPABILITIES_YES':'AI_CHAT_CAPABILITIES_NO')}]}),[_0x4cecfc,_0x3f1097,_0x2b9322];}},ModelNameView$1=class extends View{constructor(_0x2ebdf7){super(_0x2ebdf7),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x13af30=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-chat-controls__model-name',_0x13af30['if']('isVisible','ck-hidden',_0x4ffccb=>!_0x4ffccb)]},'children':[{'text':_0x13af30['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(_0xa1fb11){super(_0xa1fb11),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'](_0x11948f=>{this['focusTracker']['add'](_0x11948f['element']),this['keystrokes']['listenTo'](_0x11948f['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'](_0x5c4c1d){this['urlInputField']['errorText']=_0x5c4c1d,this['_updateConfirmButtonState'](),this['fire']('refreshBalloon');}['clearError'](){this['urlInputField']['errorText']=null,this['_updateConfirmButtonState']();}['_createBackButton'](){const _0x385a7e=new ButtonView(this['locale']);return _0x385a7e['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',(_0xe19c73,_0x15d366,_0x156780)=>{_0x385a7e['set']({'class':['ck-button-icon\x20ck-button-back'+(_0x156780?'':'\x20ck-hidden')]});}),_0x385a7e;}['_createUrlInputField'](){const _0x25ddfc=new LabeledFieldView(this['locale'],createLabeledInputText);return _0x25ddfc['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_LABEL'),'class':'ck-labeled-field-view_empty'}),_0x25ddfc['fieldView']['set']({'placeholder':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_PLACEHOLDER')}),_0x25ddfc;}['_createConfirmButton'](){const _0x1a25cf=new ButtonView(this['locale']);return _0x1a25cf['set']({'icon':_0x51b07d,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_ADD_URL'),'tooltipPosition':TOOLTIP_POSITION$2,'class':'ck-button-icon','type':'submit','isEnabled':!0x1}),_0x1a25cf;}['_setupTemplate'](){const _0x33931a=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'});_0x33931a['children']['add'](this['backButton'],0x0),this['setTemplate']({'tag':'form','attributes':{'class':CSS_CLASSES$4['URL_FORM'],'tabindex':'-1'},'children':[_0x33931a,{'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',_0x1f0203=>{_0x1f0203['stop'](),this['_handleSubmit']();});}['_setupKeystrokes'](){this['keystrokes']['set']('esc',(_0xa97872,_0x489ca1)=>{this['clear'](),this['fire']('cancel'),_0x489ca1();});}['_handleSubmit'](){const _0x469c67=this['getValue']()['trim']();_0x469c67?this['_isValidUrl'](_0x469c67)?(this['clearError'](),this['fire']('submitUrl',_0x469c67)):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 _0x2a666c=this['getValue']()['trim'](),_0x106401=!!this['urlInputField']['errorText'];this['confirmButton']['isEnabled']=_0x2a666c['length']>0x0&&!_0x106401;}['_isValidUrl'](_0x3a6041){try{return!!new URL(_0x3a6041);}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(_0x39c80e,_0x9d805c){super(_0x39c80e),this['resource']=_0x9d805c,this['set']('isInContext',!!_0x9d805c['isInContext']),this['_titleView']=this['_createTitleView'](),this['_iconView']=this['_createIconView'](),this['_setupTemplate']();}['render'](){super['render']();}['getResourceIcon'](_0xed0770){if(_0xed0770['isInContext'])return _0x51b07d;switch(_0xed0770['type']){case AIContextItemType['DOCUMENT']:return IconDocument$1;case AIContextItemType['URL']:return IconLink;case AIContextItemType['FILE']:case AIContextItemType['TEXT']:return IconFileUpload;default:return IconDocumentOutline;}}['highlightText'](_0x168b61){if(!_0x168b61||''===_0x168b61['trim']())return void this['_titleView']['highlightText'](null);const _0x406450=new RegExp(escapeRegExp$1(_0x168b61),'gi');this['_titleView']['highlightText'](_0x406450);}['updateResourceState'](_0x30a9bf){this['resource']['isInContext']=_0x30a9bf,this['isInContext']=_0x30a9bf,this['_updateIcon']();}['_createTitleView'](){const _0x281377=new HighlightedTextView();return _0x281377['text']=this['resource']['label'],_0x281377['extendTemplate']({'tag':'span','attributes':{'class':[CSS_CLASSES$3['ITEM_TITLE']]}}),_0x281377;}['_createIconView'](){const _0x2a772e=new IconView();return _0x2a772e['content']=this['getResourceIcon'](this['resource']),_0x2a772e;}['_setupTemplate'](){const _0x18efe2=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$3['ITEM'],_0x18efe2['if']('isVisible','ck-hidden',_0x43d8d1=>!_0x43d8d1),_0x18efe2['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':_0x18efe2['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(_0x53d37b,_0x574c4e){super(_0x53d37b),this['_source']=_0x574c4e,this['extendTemplate']({'attributes':{'class':[CSS_CLASSES$2['LIST']]}});}['setResources'](_0x130e1c,_0x52d2c3){this['items']['clear']();let _0x4fd1e4=_0x130e1c;if(this['_source']['useDefaultFiltering']&&_0x52d2c3&&''!==_0x52d2c3['trim']()){const _0x48233a=new RegExp(_0x52d2c3['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),'gi');_0x4fd1e4=_0x130e1c['filter'](_0x592d1e=>_0x48233a['test'](_0x592d1e['label']));}for(const _0x5d1b00 of _0x4fd1e4){const _0xd47d09=new AIChatResourceListItemView(this['locale'],_0x5d1b00);_0xd47d09['on']('execute',()=>{this['_handleResourceSelection'](this['_source'],_0x5d1b00);}),this['items']['add'](_0xd47d09);}this['_source']['useDefaultFiltering']&&this['highlightText'](_0x52d2c3);}['highlightText'](_0x42362b){this['_source']['useDefaultFiltering']&&this['items']['forEach'](_0x26645e=>{_0x26645e['highlightText'](_0x42362b);});}['updateResourceState'](_0x4d21fa,_0x22deb3){for(const _0x4f66d0 of this['items']){const _0x3a5335=_0x4f66d0;_0x3a5335['resource']['id']===_0x4d21fa&&_0x3a5335['updateResourceState'](_0x22deb3);}}['_handleResourceSelection'](_0x3a5aa2,_0x5131d1){this['fire']('addResourceToContext',{'source':_0x3a5aa2,'resource':_0x5131d1});}}class AIChatContextResourcesSearchInputView extends LabeledFieldView{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x220300){const t=_0x220300['t'],_0x44267e={'showResetButton':!0x0,'showIcon':!0x0,'creator':createLabeledInputText,'label':getTranslation$i(_0x220300,'AI_CHAT_SEARCH_RESOURCES')};super(_0x220300,_0x44267e['creator']),this['label']=_0x44267e['label'],this['_viewConfig']=_0x44267e,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x220300,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x2ea6a1){this['fire']('search',_0x2ea6a1);}['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'](_0x54c821,t){this['resetButtonView']=new ButtonView(_0x54c821),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',_0x94ad8b=>!_0x94ad8b),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(_0x418eec,_0x1e8b80){super(_0x418eec),this['_source']=_0x1e8b80['source'],this['_searchInputVisibleFrom']=_0x1e8b80['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 _0x1420d0=new View(this['locale']);return _0x1420d0['setTemplate']({'tag':'div','attributes':{'class':'ck\x20ck-search'},'children':[this['_searchView']]}),this['_searchView']['on']('search',(_0x8a89f0,_0x256620)=>{this['loadResources'](_0x256620),this['_source']['useDefaultFiltering']&&this['_resourcesListView']['highlightText'](_0x256620);}),_0x1420d0;}['_createResourcesListView'](){const _0x2da525=new AIChatContextResourcesListView(this['locale'],this['_source']);return _0x2da525['delegate']('addResourceToContext')['to'](this),_0x2da525['extendTemplate']({'attributes':{'class':this['bindTemplate']['if']('isLoading','ck-hidden')}}),_0x2da525;}['_createSkeletonView'](){const _0x2b2cbe=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiChatResources']);return _0x2b2cbe['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoading','ck-hidden',_0x52cf97=>!_0x52cf97)]}}),_0x2b2cbe;}['render'](){super['render'](),this['loadResources']('');}['loadResources'](_0x2d32f9){const _0x54d346=uid();this['_latestLoadResourcesUid']=_0x54d346,this['fire']('loadSourceResources',{'sourceId':this['_source']['id'],'query':_0x2d32f9,'uid':_0x54d346}),this['isLoading']=!0x0;}['setResources'](_0x36e45,_0x3654bf){if(_0x3654bf&&_0x3654bf!==this['_latestLoadResourcesUid'])return;const _0x346c98=this['_source']['useDefaultFiltering']?this['_searchView']['getQuery']():'';this['_resourcesListView']['setResources'](_0x36e45,_0x346c98),_0x36e45['length']>=this['_searchInputVisibleFrom']&&!this['children']['has'](this['_searchSection'])&&this['children']['add'](this['_searchSection'],0x0),requestAnimationFrame(()=>{this['isLoading']=!0x1;});}['updateResourceState'](_0x8e7cd1,_0x36c9f9){this['_resourcesListView']['updateResourceState'](_0x8e7cd1,_0x36c9f9);}}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(_0x160a4d,_0x33f6ed,_0x501622){this['_locale']=_0x160a4d,this['_bodyCollection']=_0x33f6ed,this['_config']=_0x501622;}['showSourceResourcesBalloon']({source:_0x3c2a92,withBackButton:_0x24ef0b}){let _0x2f6473=this['_sourceResourceBalloons']['get'](_0x3c2a92['id']);_0x2f6473||(_0x2f6473=this['_createSourceResourceBalloonPanel'](),this['_sourceResourceBalloons']['set'](_0x3c2a92['id'],_0x2f6473),this['_setupSingleResourceBalloonClickOutsideHandler'](_0x2f6473)),this['_addSourceResourceContent']({'balloonPanel':_0x2f6473,'source':_0x3c2a92,'withBackButton':_0x24ef0b}),_0x2f6473['show']();const _0x4e82a3=this['_config']['getTargetElement']();_0x4e82a3&&_0x2f6473['pin']({'target':_0x4e82a3,'limiter':this['_config']['getLimiterElement']()});}['populateSourceResourceBalloon'](_0x2d1a36,_0x1809b4,_0x573551){const _0xcefe84=this['_sourceResourceBalloons']['get'](_0x2d1a36);if(!_0xcefe84)return;const _0x225303=this['_getResourcesViewFromBalloon'](_0xcefe84);_0x225303&&(_0x225303['setResources'](_0x1809b4,_0x573551),_0x225303['once']('change:isLoading',()=>{_0xcefe84['pin']({'target':this['_config']['getTargetElement'](),'limiter':this['_config']['getLimiterElement']()});}));}['closeSourceResourceBalloon'](_0x56a1f6){const _0x37caa4=this['_sourceResourceBalloons']['get'](_0x56a1f6);_0x37caa4&&requestAnimationFrame(()=>{_0x37caa4['hide'](),this['_sourceResourceBalloons']['delete'](_0x56a1f6),this['_config']['onBalloonClosed']();});}['isAnyResourceBalloonVisible'](){for(const _0x2c8548 of this['_sourceResourceBalloons']['values']())if(_0x2c8548['isVisible'])return!0x0;return!0x1;}['updateResourceState'](_0x3649d4,_0x2e1639,_0x26e201){const _0x98680=this['_sourceResourceBalloons']['get'](_0x3649d4);if(!_0x98680||!_0x98680['isVisible'])return;const _0x3e73cb=this['_config']['getTargetElement']();if(!_0x3e73cb)return;_0x98680['pin']({'target':_0x3e73cb,'limiter':this['_config']['getLimiterElement']()});const _0x389196=this['_getResourcesViewFromBalloon'](_0x98680);_0x389196&&_0x389196['updateResourceState'](_0x2e1639,_0x26e201);}['destroy'](){for(const _0x319f35 of this['_sourceResourceBalloons']['values']())_0x319f35['destroy']();this['_sourceResourceBalloons']['clear']();}['_createSourceResourceBalloonPanel'](){const _0x35eb3e=new BalloonPanelView(this['_locale']);return _0x35eb3e['extendTemplate']({'attributes':{'class':CSS_CLASSES$1['SOURCE_BALLOON_PANEL']}}),this['_bodyCollection']['add'](_0x35eb3e),_0x35eb3e;}['_addSourceResourceContent']({balloonPanel:_0x4102de,source:_0x18208a,withBackButton:_0x52e3cf}){_0x4102de['content']['clear']();const _0x5745aa=this['_createBalloonHeader']({'balloonPanel':_0x4102de,'source':_0x18208a,'withBackButton':_0x52e3cf});_0x4102de['content']['add'](_0x5745aa);const _0x21e51f=this['_createBalloonResourcesView'](_0x18208a);_0x4102de['content']['add'](_0x21e51f);}['_createBalloonHeader']({balloonPanel:_0x45633a,source:_0x56f51e,withBackButton:_0x325cef}){const _0x4e49cb=new FormHeaderView(this['_locale'],{'label':_0x56f51e['label'],'class':CSS_CLASSES$1['SOURCE_HEADER']});return _0x325cef&&_0x4e49cb['children']['add'](this['_createBackButton'](_0x45633a),0x0),_0x4e49cb;}['_createBackButton'](_0x23ebca){const _0x374b06=new ButtonView(this['_locale']);return _0x374b06['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']}),_0x374b06['on']('execute',()=>{_0x23ebca['hide'](),this['_config']['onBackToContext']();}),_0x374b06;}['_createBalloonResourcesView'](_0x259b12){const _0x2d2c23=new AIChatContextResourcesView(this['_locale'],{'source':_0x259b12,'searchInputVisibleFrom':this['_config']['searchInputVisibleFrom']});return _0x2d2c23['on']('loadSourceResources',(_0x314fa7,_0x1e5acc)=>{this['_config']['onLoadSourceResources'](_0x1e5acc);}),_0x2d2c23['on']('addResourceToContext',(_0x450667,_0x19971b)=>{this['_config']['onResourceSelected'](_0x19971b['source'],_0x19971b['resource']),this['closeSourceResourceBalloon'](_0x259b12['id']);}),_0x2d2c23;}['_getResourcesViewFromBalloon'](_0x2dfc54){const _0x40fe1b=_0x2dfc54['content']['get'](0x1);return _0x40fe1b instanceof AIChatContextResourcesView?_0x40fe1b:null;}['_setupSingleResourceBalloonClickOutsideHandler'](_0x20e587){clickOutsideHandler({'emitter':_0x20e587,'contextElements':[_0x20e587['element']],'callback':()=>{_0x20e587['hide'](),this['_config']['onBalloonClosed']();},'activator':()=>_0x20e587['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(_0x104ef5,_0x20fa8a){super(_0x104ef5),this['bodyCollection']=_0x20fa8a['bodyCollection'],this['_currentContextsChips']=this['createCollection'](),this['_conversationContextsChips']=this['createCollection'](),this['addContextButtonView']=this['_createAddContextButtonView'](_0x104ef5),this['_addContextBalloonPanelView']=this['_createAddContextBalloonPanelView'](_0x104ef5),this['_urlBalloonPanelView']=this['_createUrlBalloonPanelView'](_0x104ef5),this['_resourcesBalloonView']=this['_createResourcesBalloonView'](_0x104ef5,_0x20fa8a);const _0x64aabd={'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(_0x104ef5,this['_currentContextsChips'],_0x64aabd,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'](_0x6d43d4,_0x43eb1e){const _0x14be0=this['_createContextButton'](_0x6d43d4,'current',!0x0,_0x43eb1e);this['_addContextToCollection'](_0x14be0,this['_currentContextsChips']),this['_overflowManager']['reorganizeChips']();}['removeContextItem'](_0x5bfc38){this['_removeContextFromCollection'](_0x5bfc38,this['_currentContextsChips']),this['_removeContextFromCollection'](_0x5bfc38,this['_overflowManager']['overflowChips']),this['_overflowManager']['reorganizeChips']();}['setContextItemLoading'](_0x49e08b,_0x40ceaf){let _0x2de067=this['_currentContextsChips']['find'](_0x414e16=>_0x414e16['id']===_0x49e08b);_0x2de067||(_0x2de067=this['_overflowManager']['overflowChips']['find'](_0x49daff=>_0x49daff['id']===_0x49e08b)),_0x2de067&&(_0x2de067['isLoading']=_0x40ceaf);}['setConversationContext'](_0x373c48){this['_conversationContextsChips']['clear']();for(const _0x503c26 of _0x373c48){const _0x1ceea6=this['_createContextButton'](_0x503c26,'conversation',!0x1,!0x1);this['_addContextToCollection'](_0x1ceea6,this['_conversationContextsChips']);}}['clearCurrentContextItems'](){this['_currentContextsChips']['clear'](),this['_overflowManager']['clear']();}['clearConversationContextItems'](){this['_conversationContextsChips']['clear']();}['updateResourceState'](_0x807bb2,_0x21d364,_0x130576){this['_resourcesBalloonView']['updateResourceState'](_0x807bb2,_0x21d364,_0x130576);}['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:_0x24e954,withBackButton:_0x2e143a}){this['_resourcesBalloonView']['showSourceResourcesBalloon']({'source':_0x24e954,'withBackButton':_0x2e143a}),this['addContextButtonView']['isOn']=!0x0;}['populateSourceResourceBalloon'](_0x493b14,_0x55d5f7,_0x5b70cc,_0x5a0b6e){this['_resourcesBalloonView']['populateSourceResourceBalloon'](_0x493b14,_0x5b70cc,_0x5a0b6e);}['closeSourceResourceBalloon'](_0x210529){this['_resourcesBalloonView']['closeSourceResourceBalloon'](_0x210529),this['addContextButtonView']['isOn']=!0x1;}['setAddContextOptions'](_0x4be44b){this['_setBalloonPanelContent'](this['_addContextBalloonPanelView'],this['locale'],_0x4be44b),this['_setAddContextButtonEnabled'](_0x4be44b);}['_setAddContextButtonEnabled'](_0x48ca11){const _0x23d233=!_0x48ca11['document']['isHidden']&&_0x48ca11['document']['enabled'],_0x4d6031=_0x48ca11['urls']['enabled'],_0x13fee3=_0x48ca11['files']['enabled'],_0x257f1e=_0x48ca11['sources']['length']>0x0,_0x2a112a=_0x48ca11['customItems']&&_0x48ca11['customItems']['length']>0x0;this['addContextButtonView']['isEnabled']=_0x23d233||_0x4d6031||_0x13fee3||_0x257f1e||_0x2a112a;}['_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'](_0x2b1762){const _0xb4c99f=new ButtonView(_0x2b1762);return _0xb4c99f['set']({'label':getTranslation$i(_0x2b1762,'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}),_0xb4c99f;}['_createAddContextBalloonPanelView'](_0x376efa){return this['_createBaseBalloonPanel'](_0x376efa,CSS_CLASSES['ADD_CONTEXT_BALLOON']);}['_createUrlBalloonPanelView'](_0x1f3325){const _0x1403ce=this['_createBaseBalloonPanel'](_0x1f3325,CSS_CLASSES['URL_BALLOON']);return this['_addUrlContent'](_0x1403ce,_0x1f3325),_0x1403ce;}['_createResourcesBalloonView'](_0x3a9450,_0x346e99){const _0x40e36b={'searchInputVisibleFrom':_0x346e99['searchInputVisibleFrom'],'onBackToContext':()=>{this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS});},'onResourceSelected':(_0x102e68,_0x11707f)=>{this['fire']('addResourceToContext',{'source':_0x102e68,'resource':_0x11707f});},'onLoadSourceResources':_0x3e1686=>{this['fire']('loadSourceResources',_0x3e1686);},'onBalloonClosed':()=>{this['addContextButtonView']['isOn']=!0x1;},'getLimiterElement':()=>this['_getLimiterElement'](),'getTargetElement':()=>this['addContextButtonView']['element']};return new AIChatResourcesBalloonView(_0x3a9450,_0x346e99['bodyCollection'],_0x40e36b);}['_getLimiterElement'](){return this['element']?.['closest']('.'+CSS_CLASSES['CHAT_CONTAINER'])||document['body'];}['_createBaseBalloonPanel'](_0x304b20,_0x66eee9){const _0x4af846=new BalloonPanelView(_0x304b20);return _0x4af846['extendTemplate']({'attributes':{'class':_0x66eee9}}),this['bodyCollection']['add'](_0x4af846),_0x4af846;}['_setBalloonPanelContent'](_0x3e8f50,_0x42c884,_0x329178){if(_0x3e8f50['content']['clear'](),!_0x329178['document']['isHidden']&&_0x329178['document']['enabled']){const _0x405cc8=this['_createBalloonButton'](_0x42c884,{'label':getTranslation$i(_0x42c884,'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'),'icon':IconDocument$1});_0x405cc8['on']('execute',()=>{this['fire']('addDocumentToContext'),this['hideAddContextBalloonPanel']();}),_0x3e8f50['content']['add'](_0x405cc8);}if(_0x329178['urls']['enabled']){const _0x4ffb95=this['_createBalloonButton'](_0x42c884,{'label':getTranslation$i(_0x42c884,'AI_CHAT_CONTEXT_URL_LABEL'),'icon':IconLink});_0x4ffb95['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['showUrlBalloonPanel'](),this['_urlBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}),this['_urlInputView']['focus']();}),_0x3e8f50['content']['add'](_0x4ffb95);}if(_0x329178['files']['enabled']){const _0x7fe71=new FileDialogButtonView(_0x42c884);_0x7fe71['set']({'label':getTranslation$i(_0x42c884,'AI_CHAT_CONTEXT_FILE_LABEL'),'icon':IconBrowseFiles,'withText':!0x0,'tooltip':!0x0,'class':CSS_CLASSES['BALLOON_BUTTON'],'allowMultipleFiles':!0x0}),_0x7fe71['on']('execute',()=>{this['hideAddContextBalloonPanel']();}),_0x7fe71['on']('done',(_0x3c7764,_0x5cc734)=>{this['fire']('addFileToContext',_0x5cc734);}),_0x7fe71['tooltip']=!0x0,_0x3e8f50['content']['add'](_0x7fe71);}for(const _0x5baf43 of _0x329178['sources']){const _0x30476b=this['_createBalloonButton'](_0x42c884,{'label':_0x5baf43['label'],'icon':_0x5baf43['icon']||IconDocumentOutline,'type':'source'});_0x3e8f50['content']['add'](_0x30476b),_0x30476b['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['_showSourceResourcesBalloon']({'source':_0x5baf43,'withBackButton':!this['_hasExactlyOneSource']});});}for(const _0x2e23dd of _0x329178['customItems']||[]){const _0x10b5fc=this['_createBalloonButton'](_0x42c884,{'label':_0x2e23dd['label'],'icon':_0x2e23dd['icon']||IconDocumentOutline,'type':'customItem'});_0x3e8f50['content']['add'](_0x10b5fc),_0x10b5fc['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['fire']('executeCustomItemCallback',_0x2e23dd);});}this['_hasExactlyOneSource']=0x1===_0x3e8f50['content']['length'],this['_urlInputView']['withBackButton']=!this['_hasExactlyOneSource'];}['_addUrlContent'](_0x5a9e3f,_0x5e705b){this['_urlInputView']=new AIChatContextPanelUrlInputView(_0x5e705b),this['_urlInputView']['on']('submitUrl',(_0xeaca5b,_0x4596c4)=>{this['_handleUrlSubmit'](_0x4596c4);}),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});}),_0x5a9e3f['content']['add'](this['_urlInputView']);}['_createBalloonButton'](_0x1550a5,_0x2fff89){const _0x4c01f2='source'===_0x2fff89['type']?new SourcesBalloonButtonView(_0x1550a5):new ButtonView(_0x1550a5);return _0x4c01f2['set']({'label':_0x2fff89['label'],'icon':_0x2fff89['icon'],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION,'class':CSS_CLASSES['BALLOON_BUTTON']}),_0x4c01f2;}['_setupAllBalloonClickOutsideHandlers'](){this['_setupAddContextBalloonClickOutsideHandler'](),this['_setupUrlBalloonClickOutsideHandler']();}['_setupUrlBalloonClickOutsideHandler'](){clickOutsideHandler({'emitter':this['_urlBalloonPanelView'],'contextElements':[this['_urlBalloonPanelView']['element']],'callback':()=>{this['hideUrlBalloonPanel']();},'activator':()=>this['_urlBalloonPanelView']['isVisible']});}['_toggleAddContextBalloon'](_0x5d4712){const _0x15fb2=this['_addContextBalloonConfig'];_0x15fb2['buttonView']['isOn']=_0x5d4712,_0x5d4712?_0x15fb2['balloonView']['show']():_0x15fb2['balloonView']['hide']();}['_setupAddContextBalloonClickOutsideHandler'](){const {balloonView:_0x4e3d61,buttonView:_0x5a2f9e,hideMethod:_0x14d2e6}=this['_addContextBalloonConfig'];clickOutsideHandler({'emitter':_0x4e3d61,'contextElements':[_0x4e3d61['element'],_0x5a2f9e['element']],'callback':()=>{_0x14d2e6();},'activator':()=>_0x5a2f9e['isOn']&&!this['_urlBalloonPanelView']['isVisible']&&!this['_resourcesBalloonView']['isAnyResourceBalloonVisible']()});}['_createContextButton'](_0x312fc8,_0x228712,_0x38ff68=!0x1,_0x7f91a3=!0x1){const _0x358700='conversation'===_0x228712||!0x0===_0x312fc8['isReadOnly'],_0x384263=new AIChatContextItemButtonView(this['locale'],_0x312fc8,_0x358700,_0x38ff68,_0x7f91a3);return _0x358700||_0x384263['on']('removeContextItemChip',()=>{this['fire']('removeContextItem',_0x384263['id']);}),_0x384263;}['_addContextToCollection'](_0x3817be,_0x344c30){_0x344c30['add'](_0x3817be,0x0);}['_removeContextFromCollection'](_0x3fcfb4,_0x888516){const _0x2d0b73=_0x888516['find'](_0x5f56d7=>_0x5f56d7['id']===_0x3fcfb4);_0x2d0b73&&_0x888516['remove'](_0x2d0b73);}['_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'](_0x47de36){this['_urlInputView']['clear'](),this['hideUrlBalloonPanel'](),this['fire']('addUrlToContext',_0x47de36);}}class SourcesBalloonButtonView extends ButtonView{['arrowView'];constructor(_0x5e05ab){super(_0x5e05ab),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 _0x46aaea=new IconView();return _0x46aaea['content']=IconDropdownArrow,_0x46aaea['extendTemplate']({'attributes':{'class':CSS_CLASSES['BALLOON_BUTTON_SOURCE']+'__arrow'}}),_0x46aaea;}}class AIChatControlsLoaderView extends View{['_cancelButtonView'];['_loaderView'];constructor(_0x2b89e9){super(_0x2b89e9),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 _0x3a0d3c=new ButtonView(this['locale']);return _0x3a0d3c['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_STOP_GENERATING'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-button-stop-generating','icon':IconStop}),_0x3a0d3c['on']('execute',()=>{this['fire']('abortPromptStream');}),_0x3a0d3c;}['_createLoaderView'](){const _0x3f69f0=new View(this['locale']);return _0x3f69f0['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')}]}),_0x3f69f0;}}class AIChatControlsView extends View{['_contextPanelView'];['_promptInputView'];['_promptCapabilitiesView'];['_loaderView'];['_modelUnavailableMessageView'];['_shouldRestorePromptInputFocus'];constructor(_0x1d48f2,_0x529901){super(_0x1d48f2),this['_contextPanelView']=this['_createContextPanelView'](_0x1d48f2,{'bodyCollection':_0x529901['bodyCollection'],'searchInputVisibleFrom':_0x529901['contextResourcesSearchInputVisibleFrom']}),this['_promptInputView']=this['_createPromptInputView'](_0x1d48f2),this['_promptCapabilitiesView']=this['_createPromptCapabilitiesView'](_0x1d48f2),this['_loaderView']=this['_createLoaderView'](_0x1d48f2),this['_modelUnavailableMessageView']=this['_createModelUnavailableMessageView'](_0x1d48f2),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 _0x3e8ced=this['bindTemplate'];this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-ai-chat-controls',_0x3e8ced['if']('isDisabled','ck-ai-chat-controls-disabled')]},'children':[{'tag':'div','attributes':{'class':[_0x3e8ced['if']('isLoading','ck-hidden',_0x3db7f2=>_0x3db7f2||!this['isModelAvailable']),_0x3e8ced['if']('isModelAvailable','ck-hidden',_0x359c87=>!_0x359c87||this['isLoading'])]},'children':[this['_contextPanelView'],this['_promptInputView'],this['_promptCapabilitiesView']]},{'tag':'div','attributes':{'class':[_0x3e8ced['if']('isLoading','ck-hidden',_0x5f535b=>!_0x5f535b)]},'children':[this['_loaderView']]},{'tag':'div','attributes':{'class':[_0x3e8ced['if']('isModelAvailable','ck-hidden',_0x5bae6b=>_0x5bae6b)]},'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'](_0x5a0bf3,_0x34030d){return new AIChatContextPanelView(_0x5a0bf3,_0x34030d);}['_createPromptInputView'](_0x875390){return new AIChatPromptInputView(_0x875390,this['_contextPanelView']['addContextButtonView']);}['_createPromptCapabilitiesView'](_0x482d37){return new AIChatPromptCapabilitiesView(_0x482d37);}['_createLoaderView'](_0x4bec22){return new AIChatControlsLoaderView(_0x4bec22);}['_createModelUnavailableMessageView'](_0x2f2ea3){const _0x13ac22=new AIChatModelUnavailableMessageView(_0x2f2ea3);return _0x13ac22['delegate']('startConversation')['to'](this),_0x13ac22;}['_handlePromptInputFocus'](_0x38a30a,_0x267dfa,_0x280912){_0x280912?this['_shouldRestorePromptInputFocus']=!0x0:this['_shouldRestorePromptInputFocus']&&this['_promptInputView']['focus']();}['addContextItem'](_0x5a2e04,_0x3e8456){this['_contextPanelView']['addContextItem'](_0x5a2e04,_0x3e8456);}['removeContextItem'](_0x57a06f){this['_contextPanelView']['removeContextItem'](_0x57a06f);}['setContextItemLoading'](_0x2ca708,_0xb5b068){this['_contextPanelView']['setContextItemLoading'](_0x2ca708,_0xb5b068);}['setIsUploadInProgress'](_0x1b2b24){this['_promptInputView']['setIsUploadInProgress'](_0x1b2b24);}['setConversationContext'](_0x5ab0e1){this['_contextPanelView']['setConversationContext'](_0x5ab0e1);}['clearPendingContextUI'](){this['_contextPanelView']['clearCurrentContextItems']();}['clearConversationContextUI'](){this['_contextPanelView']['clearConversationContextItems']();}['updateResourceState'](_0x529562,_0x3204af,_0x3e6ff1){this['_contextPanelView']['updateResourceState'](_0x529562,_0x3204af,_0x3e6ff1);}['setWebSearch'](_0x3364ea){this['_promptCapabilitiesView']['setWebSearch'](_0x3364ea);}['setReasoning'](_0x1632ab){this['_promptCapabilitiesView']['setReasoning'](_0x1632ab);}['resetMessageInput'](){this['_promptInputView']['reset']();}['setAddContextOptions'](_0x5b33db){this['_contextPanelView']['setAddContextOptions'](_0x5b33db);}['setInputPlaceholder'](_0x5d11c5){this['_promptInputView']['setPlaceholderText'](_0x5d11c5);}['setModelList'](_0x3b058d,_0x11f10c){this['_promptCapabilitiesView']['setModelList'](_0x3b058d,_0x11f10c);}['setModel'](_0xc257e3){_0xc257e3?(this['isModelAvailable']=!0x0,this['_promptCapabilitiesView']['setModel'](_0xc257e3)):this['isModelAvailable']=!0x1;}['enableModelSelector'](){this['_promptCapabilitiesView']['enableModelSelector']();}['disableModelSelector'](_0x372d8e){this['_promptCapabilitiesView']['disableModelSelector'](_0x372d8e);}['populateSourceResourceBalloon'](_0x1204a1,_0x1ed733,_0xcba32d,_0xcc34c4){this['_contextPanelView']['populateSourceResourceBalloon'](_0x1204a1,_0x1ed733,_0xcba32d,_0xcc34c4);}['closeSourceResourceBalloon'](_0x5995de){this['_contextPanelView']['closeSourceResourceBalloon'](_0x5995de);}['focusPromptInput'](_0x585c5b=!0x1){this['_promptInputView']['focus'](_0x585c5b);}['setPromptInputValue'](_0x723fbb){this['_promptInputView']['queryView']['fieldView']['reset'](),this['_promptInputView']['queryView']['fieldView']['value']=_0x723fbb;}}class AIChatModelUnavailableMessageView extends View{constructor(_0x4511c1){super(_0x4511c1);const _0x4b9bcf=new ButtonView(_0x4511c1);_0x4b9bcf['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON'),'withText':!0x0,'class':['ck-ai-chat-controls__start-new-chat-button'],'tooltip':''}),_0x4b9bcf['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'},_0x4b9bcf]}]});}}class AIChatHeaderView extends FormHeaderView{['conversationStartButton'];['resizeButton'];constructor(_0xdf72f5,_0x489f1b){super(_0xdf72f5,{'label':getTranslation$i(_0xdf72f5,'AI_CHAT_HEADING'),'class':'ck-ai-header\x20ck-ai-header_chat','icon':IconAIChat}),this['set']('isMaximized',!0x1),this['conversationStartButton']=this['_createStartConversationButton'](_0xdf72f5),this['children']['add'](this['conversationStartButton']),_0x489f1b&&(this['resizeButton']=createResizeButton(_0xdf72f5,this),this['children']['add'](this['resizeButton']));}['_createStartConversationButton'](_0x2b214e){const _0x16b5d1=new ButtonView(_0x2b214e);return _0x16b5d1['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation'}),_0x16b5d1['on']('execute',()=>{this['fire']('startConversation');}),_0x16b5d1;}}class AIDisclaimerView extends View{constructor(_0x5283bc){super(_0x5283bc),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-disclaimer']},'children':[{'tag':'p','attributes':{'class':['ck','ck-ai-disclaimer__content']},'children':[{'text':getTranslation$i(_0x5283bc,'AI_DISCLAIMER_TEXT')}]}]});}}class AIChatView extends View{['chatHeader'];['chatFeed'];['chatControls'];['chatDisclaimer'];['_bodyCollection'];constructor(_0x5787e4,_0x36e585){super(_0x5787e4),this['_bodyCollection']=new BodyCollection(_0x5787e4),this['_bodyCollection']['attachToDom'](),this['chatHeader']=new AIChatHeaderView(_0x5787e4,_0x36e585['showResizeButton']),this['chatHeader']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatFeed']=new AIChatFeedView(_0x5787e4,this['_bodyCollection']),this['chatFeed']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatControls']=new AIChatControlsView(_0x5787e4,{'bodyCollection':this['_bodyCollection'],'contextResourcesSearchInputVisibleFrom':_0x36e585['contextResourcesSearchInputVisibleFrom']}),this['chatControls']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatDisclaimer']=new AIDisclaimerView(_0x5787e4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-chat','ck-rounded-corners'],'dir':_0x5787e4['uiLanguageDirection']},'children':[this['chatHeader'],this['chatFeed'],this['chatControls'],this['chatDisclaimer']]});}['populateSourceResourceBalloon'](_0x1a2452,_0x563504,_0x31119d,_0x564020){this['chatControls']['populateSourceResourceBalloon'](_0x1a2452,_0x563504,_0x31119d,_0x564020);}['closeSourceResourceBalloon'](_0x12b290){this['chatControls']['closeSourceResourceBalloon'](_0x12b290);}['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(_0x516222){super(_0x516222);const _0xc09f69=this['context']['plugins']['get']('AITabs');this['set']('isBusy',!0x1),this['_promiseQueue']=new PromiseQueue(),this['_view']=new AIChatView(this['context']['locale'],{'showResizeButton':_0xc09f69['showResizeButton'],'contextResourcesSearchInputVisibleFrom':this['context']['config']['get']('ai.chat.context.searchInputVisibleFrom')}),this['_view']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['_view']['on']('toggleSuggestionDisplayMode',(_0x2934e9,{showDiff:_0x3a333c})=>{this['showDiff']=_0x3a333c;}),_0xc09f69['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',_0x4f2270=>_0x4f2270),this['_view']['chatFeed']['bind']('isPending')['to'](this,'isBusy',_0x164277=>_0x164277),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']()),this['bind']('isModelAvailable')['to'](this['_view']['chatControls'],'isModelAvailable');}['destroy'](){super['destroy'](),this['_titleAnimationInterval']&&clearInterval(this['_titleAnimationInterval']);}['createConversation'](_0x1e4a62){const _0x510be3=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'](_0x1e4a62['availableModels'],!this['context']['config']['get']('ai.models.showModelSelector')),this['addFeedItemStaticMessage']({'id':'conversation-start','staticMessage':_0x510be3}),this['fire']('conversationCreated');}['addFeedItemStaticMessage']({id:_0x275989,staticMessage:_0x458898}){this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x275989,'initialContent':'<p>'+_0x458898+'</p>'});}['addFeedItemUserMessage'](_0x2c6212){const _0x14e38d=_0x2c6212['attributes']?.['displayedPrompt']||_0x2c6212['userMessage'];this['_view']['chatFeed']['addItem']('user-message',{'contextItems':Array['from'](_0x2c6212['contextItems']['values']()),'initialContent':'<p>'+_0x14e38d+'</p>','id':_0x2c6212['id']});}['addFeedItemError']({errorMessage:_0x397eb7,id:_0x1fc752}){this['_view']['chatFeed']['addItem']('error-message',{'initialContent':'<p>'+_0x397eb7+'</p>','id':_0x1fc752});}['addFeedItemAIReply'](_0x2b9958){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x2b9958['interactionId']+':'+_0x2b9958['id']}),this['clearLoadingMessage']();});}async['addFeedItemAISuggestion'](_0x2db852){const _0x188684=getEditorFromContext(this['context']);let _0xfa1191=_0x188684['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];if(_0x188684['plugins']['has']('TrackChanges')){if(!this['_isTrackChangesCommandValueBound']){this['_isTrackChangesCommandValueBound']=!0x0;const _0x10e844=_0x188684['commands']['get']('trackChanges');this['_view']['chatFeed']['bind']('isTrackChangesOn')['to'](_0x10e844,'value');}}else _0xfa1191=_0xfa1191['filter'](_0x41204a=>'insertSuggestion'!=_0x41204a);return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-suggestion-reply',{'id':_0x2db852['interactionId']+':'+_0x2db852['id'],'areActionsDisabled':_0x2db852['areActionsDisabled'],'showDiff':this['showDiff'],'availableActions':_0xfa1191}),this['clearLoadingMessage']();});}['addFeedInteractionHeader'](_0x21aad5,_0x47d086){const _0x32d71d=this['_view']['chatFeed']['children']['last'];if(_0x32d71d instanceof AIChatFeedInteractionHeaderView)return this['_view']['chatFeed']['children']['remove'](_0x32d71d),void this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x21aad5['id'],'capabilities':{'isWebSearchEnabled':_0x32d71d['capabilities']['isWebSearchEnabled']||_0x47d086['isWebSearchEnabled'],'isReasoningEnabled':_0x32d71d['capabilities']['isReasoningEnabled']||_0x47d086['isReasoningEnabled']}});this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x21aad5['id'],'capabilities':_0x47d086});}async['addFeedItemCustomElement'](_0x467f53,_0x575a72){let _0x2093fb;return await this['_promiseQueue']['enqueue'](async()=>{_0x2093fb=this['_view']['chatFeed']['addItem']('custom-element',{'content':_0x467f53,'id':_0x575a72});}),_0x2093fb;}['removeFeedItem'](_0x2bf66a){this['_view']['chatFeed']['removeItem'](_0x2bf66a);}['hasFeedItem'](_0x25c088){return this['_view']['chatFeed']['hasItem'](_0x25c088);}['updateFeedInteractionHeader'](_0xeb6a00){const _0x2f4931=this['_view']['chatFeed']['children']['find'](_0x617989=>_0x617989['options']['id']==_0xeb6a00['id']&&_0x617989 instanceof AIChatFeedInteractionHeaderView);_0x2f4931&&_0x2f4931['set']('isVisible',_0xeb6a00['isVisible']);}async['updateFeedItemAIReplyContent'](_0x53c23e){const _0x298a01=_0x53c23e['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x4fb816=>{await this['_view']['chatFeed']['updateReplyItem']({..._0x53c23e,'abortSignal':_0x4fb816,'renderingStrategy':_0x298a01}),_0x53c23e['isDone']&&this['markFeedItemAsDone'](_0x53c23e['id']);});}['updateFeedItemAIReplySources'](_0x55ac40,_0x3bb8a5){this['_view']['chatFeed']['updateWebSources'](_0x55ac40,_0x3bb8a5);}async['updateFeedItemAIReplySuggestionContent'](_0x844f0d){const _0x21e383=_0x844f0d['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x98700a=>{await this['_view']['chatFeed']['updateSuggestionItem']({..._0x844f0d,'abortSignal':_0x98700a,'renderingStrategy':_0x21e383}),_0x844f0d['isDone']&&this['markFeedItemAsDone'](_0x844f0d['id']);});}['updateFeedItemAIReplySuggestionPartState'](_0x28a975){this['_view']['chatFeed']['updateSuggestionPartState'](_0x28a975);}['setFeedItemAIReplySuggestionPartActive'](_0x522b95){this['_view']['chatFeed']['setSuggestionPartActive'](_0x522b95);}['markFeedItemAsDone'](_0x372eca){this['_view']['chatFeed']['markItemAsDone'](_0x372eca);}['removeFeedInteraction'](_0x36c5f8){this['_view']['chatFeed']['getItemIds']()['filter'](_0x5773d7=>_0x5773d7['startsWith'](_0x36c5f8))['forEach'](_0x4ace38=>this['_view']['chatFeed']['removeItem'](_0x4ace38));}['startInteraction'](){const _0x1dc633=this['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this['setLoadingMessage'](_0x1dc633),this['_view']['chatControls']['disableModelSelector'](!this['context']['config']['get']('ai.models.showModelSelector')),this['isBusy']=!0x0,this['_view']['chatFeed']['startAutoScroll']();}['stopInteraction'](_0x2943f0){this['_promiseQueue']['abort'](),this['_view']['chatFeed']['getItemIds']()['filter'](_0x4fad5c=>_0x4fad5c['startsWith'](_0x2943f0['id']))['forEach'](_0x9bd3e4=>this['markFeedItemAsDone'](_0x9bd3e4)),this['isBusy']=!0x1,this['_view']['chatFeed']['stopAutoScroll']();}async['finishInteraction'](){return this['_promiseQueue']['queueEmptyPromise']['then'](()=>{this['isBusy']=!0x1,this['_view']['chatFeed']['stopAutoScroll']();});}['addContextItem'](_0x3932b9,_0x4dac1d){this['_view']['chatControls']['addContextItem'](_0x3932b9,_0x4dac1d);}['removeContextItem'](_0x3485c7){this['_view']['chatControls']['removeContextItem'](_0x3485c7);}['setContextItemLoading'](_0x30d970,_0x3c5cbd){this['_view']['chatControls']['setContextItemLoading'](_0x30d970,_0x3c5cbd);}['setIsUploadInProgress'](_0x3ab34a){this['_view']['chatControls']['setIsUploadInProgress'](_0x3ab34a);}['setConversationContext'](_0x589403){this['_view']['chatControls']['setConversationContext'](_0x589403);}['clearPendingContextUI'](){this['_view']['chatControls']['clearPendingContextUI']();}['clearConversationContextUI'](){this['_view']['chatControls']['clearConversationContextUI']();}['updateResourceState'](_0x2da794,_0x5db99a,_0x2ec67b){this['_view']['chatControls']['updateResourceState'](_0x2da794,_0x5db99a,_0x2ec67b);}['resetMessageInput'](){this['_view']['chatControls']['resetMessageInput'](),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']());}['setAddContextOptions'](_0x5ed13c){this['_view']['chatControls']['setAddContextOptions'](_0x5ed13c);}['updateCapabilities'](_0x195859){this['_view']['chatControls']['setWebSearch'](_0x195859['isWebSearchEnabled']),this['_view']['chatControls']['setReasoning'](_0x195859['isReasoningEnabled']),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder'](_0x195859));}['setSelectedModel'](_0x3f08fe,_0x9502c3){this['_view']['chatControls']['setModel'](_0x3f08fe),_0x9502c3&&this['_view']['chatControls']['disableModelSelector'](!0x1);}['setFeedItemRenderingStrategy'](_0x5def24){this['feedItemRenderingStrategy']=_0x5def24;}['toggleLoadingSkeleton'](_0x4b810b){this['_view']['chatFeed']['toggleLoadingSkeleton'](_0x4b810b);}['resetConversationTitle'](){this['setConversationTitle'](getTranslation$i(this['context']['locale'],'AI_CHAT_HEADING'));}['setConversationTitle'](_0x4390eb,_0x5eac49=!0x1){if(_0x5eac49&&!_isMotionReduced()&&_0x4390eb['length'])return this['_view']['chatHeader']['label']='',void this['_animateConversationTitle'](_0x4390eb);this['_view']['chatHeader']['label']=_0x4390eb;}['setLoadingMessage'](_0x3d280f){this['_view']['chatFeed']['setLoadingMessage'](_0x3d280f);}['clearLoadingMessage'](){this['_view']['chatFeed']['setLoadingMessage']('');}['_animateConversationTitle'](_0xe483fe){let _0x32e572=0x0;clearInterval(this['_titleAnimationInterval']),this['_titleAnimationInterval']=setInterval(()=>{this['_view']['chatHeader']['label']=this['_view']['chatHeader']['label']+_0xe483fe[_0x32e572],_0x32e572++,_0x32e572===_0xe483fe['length']&&clearInterval(this['_titleAnimationInterval']);},AI_CHAT_TITLE_ANIMATION_INTERVAL);}['setIsMaximized'](_0x58a2d2){this['_view']['chatHeader']['isMaximized']=_0x58a2d2;}['prepareLoadingMessage'](_0x59951b){return _0x59951b['isWebSearchEnabled']&&_0x59951b['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING'):_0x59951b['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH'):_0x59951b['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REASONING'):getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR');}['_getInputPlaceholder'](_0x43c671){return _0x43c671?_0x43c671['isWebSearchEnabled']&&_0x43c671['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING'):_0x43c671['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH'):_0x43c671['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'](_0x1e2083,_0x200997,_0x51f865,_0x35642e){this['_view']['populateSourceResourceBalloon'](_0x1e2083,_0x200997,_0x51f865,_0x35642e);}['closeSourceResourceBalloon'](_0x2678f4){this['_view']['closeSourceResourceBalloon'](_0x2678f4);}['setPromptInputValue'](_0x314ec6){this['_view']['chatControls']['setPromptInputValue'](_0x314ec6);}['focusPromptInput'](_0x1b23c2=!0x1){this['_view']['chatControls']['focusPromptInput'](_0x1b23c2);}['scrollFeedToSuggestion'](_0x4aaaff,_0x5bc994){this['_view']['chatFeed']['scrollToSuggestion'](_0x4aaaff,_0x5bc994);}['startAutoScroll'](){this['_view']['chatFeed']['startAutoScroll']();}['disableControls'](){this['_view']['chatControls']['isDisabled']=!0x0;}['enableControls'](){this['_view']['chatControls']['isDisabled']=!0x1;}}class AIChatHistorySectionListView extends ListView{['sections'];constructor(_0x3e28b1,_0x8f8245){super(_0x3e28b1),this['sections']=_0x8f8245,this['items']['addMany'](this['sections']),this['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__sections']}});}['filter'](_0x2d9272){let _0x3797d2=0x0,_0x170092=0x0;for(const _0x22fd49 of this['sections']){const {resultsCount:_0x2eb5e0,totalItemsCount:_0x3ed9de}=_0x22fd49['filter'](_0x2d9272);_0x3797d2+=_0x2eb5e0,_0x170092+=_0x3ed9de;}return{'resultsCount':_0x3797d2,'totalItemsCount':_0x170092};}}class AIChatHistoryListView extends ListItemView{['title'];['itemsViews'];['_itemsListView'];constructor(_0x85c0f6,{title:_0x162441,items:_0x1234fd}){super(_0x85c0f6);const _0x73b532=this['bindTemplate'];this['set']('isVisible',!0x0),this['title']=_0x162441,this['itemsViews']=_0x1234fd;const _0x3e3f69=new View(_0x85c0f6);_0x3e3f69['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__section-title']},'children':[this['title']]}),this['_itemsListView']=new ListView(_0x85c0f6),this['_itemsListView']['items']['addMany'](this['itemsViews']),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__section',_0x73b532['if']('isVisible','ck-hidden',_0x353d3c=>!_0x353d3c)]},'children':[_0x3e3f69,this['_itemsListView']]});}['filter'](_0x5c70b8){const _0x5045f8=this['itemsViews']['length'];let _0x27f586=0x0;for(const _0x129aaf of this['itemsViews']){if(_0x5c70b8){const _0x52eafb=_0x129aaf['isMatching'](_0x5c70b8);_0x129aaf['isVisible']=!!_0x52eafb,_0x129aaf['highlightText'](_0x5c70b8);}else _0x129aaf['isVisible']=!0x0,_0x129aaf['highlightText'](null);_0x129aaf['isVisible']&&_0x27f586++;}return this['isVisible']=_0x27f586>0x0,{'resultsCount':_0x27f586,'totalItemsCount':_0x5045f8};}['getItem'](_0x2e63ed){return this['itemsViews']['find'](_0x1fd714=>_0x1fd714['id']===_0x2e63ed);}['removeItem'](_0x5b3759){const _0x21ef7d=this['itemsViews']['indexOf'](_0x5b3759);-0x1!==_0x21ef7d&&(this['itemsViews']['splice'](_0x21ef7d,0x1),this['_itemsListView']['items']['remove'](_0x5b3759));}}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(_0x56364a,_0x268b8f){super(_0x56364a);const _0x31bafe=this['bindTemplate'];this['set']('isEdit',!0x1),this['set']('isVisible',!0x0),this['set']('pinned',!!_0x268b8f['pinned']),this['set']('loadingState',null),this['id']=_0x268b8f['id'];const {title:_0x548309,createdAt:_0x34c38e,active:_0x2bd528=!0x1}=_0x268b8f;this['_titleView']=new HighlightedTextView(),this['_titleView']['text']=_0x548309,this['_titleView']['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__item-title']}});const _0x5e82c2=this['_createCheckView'](),_0x419d35=this['_createPinButtonView'](_0x56364a),_0x41c9b7=this['_createMenuDropdownView'](),_0xf35739=this['_createEditInputView'](_0x56364a,_0x548309),_0x3e745d=this['_createAcceptEditButtonView'](_0x56364a,_0xf35739),_0x3b4e61=this['_createCancelEditButtonView'](_0x56364a,_0xf35739);this['actions']=this['createCollection'](),this['mainContent']=this['createCollection'](),this['mainContent']['add'](this['_titleView']),this['actions']['add'](_0x419d35),this['actions']['add'](_0x41c9b7),this['on']('change:isEdit',(_0x2b0057,_0x94bf1a,_0x354f36)=>{this['actions']['clear'](),this['mainContent']['clear'](),_0x354f36?(this['actions']['add'](_0x3e745d),this['actions']['add'](_0x3b4e61),this['mainContent']['add'](_0xf35739),_0xf35739['element']['focus']()):(this['actions']['add'](_0x419d35),this['actions']['add'](_0x41c9b7),this['mainContent']['add'](this['_titleView']));}),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__item',_0x2bd528?'ck-ai-chat-history__item--active':'',_0x31bafe['if']('isVisible','ck-hidden',_0x2823ed=>!_0x2823ed),_0x31bafe['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',_0x31bafe['if']('loadingState','ck-hidden',_0x6d6114=>!!_0x6d6114)]},'children':_0x2bd528?[_0x5e82c2]:[]},{'tag':'div','attributes':{'class':['ck-ai-loader',_0x31bafe['if']('loadingState','ck-hidden',_0x3aeedb=>!_0x3aeedb)]},'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',_0x31bafe['if']('loadingState','ck-hidden',_0x575692=>!!_0x575692)]},'children':this['mainContent']},{'tag':'div','attributes':{'class':['ck-ai-loader__text',_0x31bafe['if']('loadingState','ck-hidden',_0x5986a6=>!_0x5986a6)]},'children':[{'text':_0x31bafe['to']('loadingState',_0x3dc7cf=>_0x3dc7cf?getTranslation$i(this['locale'],AIChatHistoryListItemView['LOADING_LABELS'][_0x3dc7cf]):'')}]}]},{'tag':'span','attributes':{'class':['ck-ai-chat-history__item-date']},'children':[_0x34c38e]}]},{'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'](_0x492092){this['_titleView']['text']=escape(_0x492092);}['updateLoadingState'](_0x528f25,_0x366e61){this['set']('loadingState',_0x366e61?_0x528f25:null);}['_createCheckView'](){const _0x5828f6=new IconView();return _0x5828f6['set']({'content':IconCheck}),_0x5828f6;}['_createPinButtonView'](_0x4cbdee){const _0x1b5ab2=new ButtonView(_0x4cbdee);return _0x1b5ab2['set']({'label':getTranslation$i(_0x4cbdee,'AI_CHAT_HISTORY_PIN_BUTTON'),'icon':IconPin,'withText':!0x1,'tooltip':!0x0}),_0x1b5ab2['bind']('isOn')['to'](this,'pinned'),_0x1b5ab2['on']('execute',()=>{const _0x311cd2=!this['pinned'];this['fire']('setConversationPinned',{'id':this['id'],'pinned':_0x311cd2});}),_0x1b5ab2;}['_createMenuDropdownView'](){const _0x1e100d=createDropdown(this['locale'],LateFocusDropdownButtonView),_0x156a9d=_0x1e100d['panelView']['children'];_0x1e100d['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SHOW_MORE_ITEMS'),'icon':IconThreeHorizontalDots}),_0x1e100d['panelPosition']='sw';const _0x229a68=new ButtonView(this['locale']);_0x229a68['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EDIT_NAME'),_0x229a68['withText']=!0x0,_0x229a68['on']('execute',()=>{this['isEdit']=!0x0;});const _0x5b30c4=new ButtonView(this['locale']);_0x5b30c4['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE'),_0x5b30c4['withText']=!0x0,_0x5b30c4['on']('execute',()=>{this['showConfirm'](getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE_CONFIRM'),this['element'])['then'](()=>{this['fire']('removeConversation',{'id':this['id']});});});const _0x3ccbd5=new ListView(this['locale']),_0x38b8bc=new ListItemView(this['locale']);_0x38b8bc['children']['add'](_0x229a68);const _0x1ecd7e=new ListItemView(this['locale']);return _0x1ecd7e['children']['add'](_0x5b30c4),_0x3ccbd5['items']['addMany']([_0x38b8bc,_0x1ecd7e]),_0x156a9d['add'](_0x3ccbd5),_0x1e100d;}['_createEditInputView'](_0x1c6468,_0x3e1aa1){const _0x5ec473=new InputTextView(_0x1c6468),_0x5d3488=_0x5ec473['bindTemplate'];return _0x5ec473['value']=_0x3e1aa1,_0x5ec473['extendTemplate']({'on':{'keydown':_0x5d3488['to'](_0xcc88e=>{'Enter'==_0xcc88e['key']&&this['_commitEditInputValue'](_0x5ec473);})}}),_0x5ec473;}['_createAcceptEditButtonView'](_0x303d80,_0x59f114){const _0x5068ce=new ButtonView(_0x303d80);return _0x5068ce['set']({'icon':IconCheck,'withText':!0x1,'tooltip':getTranslation$i(_0x303d80,'AI_CHAT_HISTORY_ACCEPT')}),_0x5068ce['extendTemplate']({'attributes':{'class':['ck-confirm-view-submit']}}),_0x5068ce['on']('execute',()=>{this['_commitEditInputValue'](_0x59f114);}),_0x5068ce;}['_commitEditInputValue'](_0x5f0c6f){const _0x182d3d=_0x5f0c6f['element']['value']||'';this['_titleView']['text']=_0x182d3d,this['isEdit']=!0x1,this['fire']('editConversationTitle',{'id':this['id'],'title':_0x182d3d});}['_createCancelEditButtonView'](_0xf2ef7e,_0x1d678f){const _0x113f2b=new ButtonView(_0xf2ef7e);return _0x113f2b['set']({'icon':IconCancel,'withText':!0x1,'tooltip':getTranslation$i(_0xf2ef7e,'AI_CHAT_HISTORY_CANCEL')}),_0x113f2b['extendTemplate']({'attributes':{'class':['ck-confirm-view-cancel']}}),_0x113f2b['on']('execute',()=>{this['isEdit']=!0x1,_0x1d678f['value']=this['_titleView']['text']||'',this['fire']('edit:cancel');}),_0x113f2b;}['_createSpinnerView'](){const _0xc085bd=new AISpinnerView('tiny');return _0xc085bd['isVisible']=!0x0,_0xc085bd;}['isMatching'](_0x547b45){return this['_titleView']&&'string'==typeof this['_titleView']['text']&&this['_titleView']['text']['match'](_0x547b45)?{'title':!0x0}:null;}['highlightText'](_0x6a5a66){this['_titleView']['highlightText'](_0x6a5a66);}}class AIChatHistoryView extends View{['searchView'];['mainErrorView'];['skeletonView'];['emptyView'];['sectionsView'];['resizeButton'];constructor(_0x5be1a9,_0x495304){super(_0x5be1a9),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 _0x535c64=new FormHeaderView(_0x5be1a9,{'label':getTranslation$i(_0x5be1a9,'AI_CHAT_HISTORY_HEADING'),'icon':IconAIHistory,'class':'ck-ai-header\x20ck-ai-header_history'});_0x495304&&(this['resizeButton']=createResizeButton(_0x5be1a9,this),_0x535c64['children']['add'](this['resizeButton'])),this['sectionsView']=new AIChatHistorySectionListView(_0x5be1a9,[]),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',_0x600b84=>!_0x600b84)]}}),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':[_0x535c64,{'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 _0x4e0edb=new SearchTextView(this['locale'],{'filteredView':this['sectionsView'],'queryView':{'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_LABEL')},'infoView':{'text':{'notFound':{'primary':_0x46e118=>getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY',_0x46e118),'secondary':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY')}}}}),_0x420332=this['_createErrorView']();return _0x420332['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('errorMessage','ck-hidden',_0x25274a=>!_0x25274a)]}}),_0x4e0edb['on']('render',()=>{_0x4e0edb['children']['add'](_0x420332,0x1);}),_0x4e0edb['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isSearchViewVisible','ck-hidden',_0xe95844=>!_0xe95844)]}}),_0x4e0edb;}['_createSkeletonView'](){const _0x2c213f=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiHistory']);return _0x2c213f['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoading','ck-hidden',_0x35f4c4=>!_0x35f4c4)]}}),_0x2c213f;}['_createErrorView'](){const _0xea8f14=new View(this['locale']),_0x358c1a=new ButtonView(this['locale']);_0x358c1a['set']({'withText':!0x1,'icon':IconCancel,'class':'ck-ai-notification_error__dismiss-button'}),_0x358c1a['bind']('isVisible')['to'](this,'hasItems',_0x16746f=>!!_0x16746f),_0x358c1a['on']('execute',()=>{this['errorMessage']='';});const _0x41122a=this['bindTemplate'];return _0xea8f14['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error']},'children':[{'tag':'p','children':[{'text':_0x41122a['to']('errorMessage')}]},_0x358c1a]}),_0xea8f14;}['_createEmptyStateView'](){const _0x5029d1=new ButtonView(this['locale']);_0x5029d1['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation'}),_0x5029d1['on']('execute',()=>{this['fire']('openChat');});const _0x46494c=new View(this['locale']);return _0x46494c['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__empty',this['bindTemplate']['if']('isEmptyViewVisible','ck-hidden',_0x3554fc=>!_0x3554fc)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-history__empty-message']},'children':[getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EMPTY_MESSAGE')]},_0x5029d1]}),_0x46494c;}['_createListItemViews'](_0x4d84d2,_0x248805){const _0x300b76=[];for(const _0x10a160 of _0x4d84d2){const _0x4ffbb5=new AIChatHistoryListItemView(_0x248805,_0x10a160);_0x4ffbb5['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x300b76['push'](_0x4ffbb5);}return _0x300b76;}['updateHistoryItemsWithCategories'](_0x42e935){const _0x580b49=this['locale']||'en',_0x3c9e6f=[];for(const _0x3bc605 of _0x42e935){const _0x13a0ff=this['_createListItemViews'](_0x3bc605['items'],_0x580b49);_0x3c9e6f['push'](new AIChatHistoryListView(_0x580b49,{'title':_0x3bc605['title'],'items':_0x13a0ff}));}this['sectionsView']['sections']=_0x3c9e6f,this['sectionsView']['items']['clear'](),this['sectionsView']['items']['addMany'](_0x3c9e6f),this['hasItems']=_0x42e935['some'](_0x16b93e=>_0x16b93e['items']['length']>0x0),this['_refreshSearch']();}['removeHistoryItem'](_0x34d628){for(const _0x554df4 of this['sectionsView']['sections']){const _0x1abc0e=_0x554df4['getItem'](_0x34d628);if(_0x1abc0e){if(_0x554df4['removeItem'](_0x1abc0e),0x0===_0x554df4['itemsViews']['length']){const _0x2cea45=this['sectionsView']['sections']['indexOf'](_0x554df4);-0x1!==_0x2cea45&&(this['sectionsView']['sections']['splice'](_0x2cea45,0x1),this['sectionsView']['items']['remove'](_0x554df4));}this['hasItems']=this['sectionsView']['sections']['length']>0x0,this['_refreshSearch']();break;}}}['updateItemTitle'](_0x414d42,_0x4df516){for(const _0x3271fb of this['sectionsView']['sections']){const _0x391a1f=_0x3271fb['getItem'](_0x414d42);if(_0x391a1f){_0x391a1f['updateTitle'](_0x4df516);break;}}}['updateItemLoadingState'](_0x419ba0,_0x247d68,_0x4e9d7d){for(const _0x55644b of this['sectionsView']['sections']){const _0x1f972f=_0x55644b['getItem'](_0x419ba0);if(_0x1f972f){_0x1f972f['updateLoadingState'](_0x247d68,_0x4e9d7d);break;}}}['_refreshSearch'](){if(this['hasItems']){const _0xa53809=this['searchView']['queryView']['fieldView']?.['element']?.['value']||'';this['searchView']['search'](_0xa53809);}}}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(_0x40b3a6){super(_0x40b3a6);const _0xa8d8a9=this['context']['plugins']['get']('AITabs');this['_historyView']=new AIChatHistoryView(this['context']['locale'],_0xa8d8a9['showResizeButton']),this['_historyView']['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0xa8d8a9['view']['addTab']({'id':'history','buttonLabel':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_HEADING'),'buttonIcon':IconAIHistory,'order':0x0,'content':this['_historyView']});}['removeHistoryItem'](_0x29b0f5){this['_historyView']['removeHistoryItem'](_0x29b0f5);}['updateItems'](_0x4942e4){this['_historyView']['updateHistoryItemsWithCategories'](_0x4942e4);}['updateItemTitle'](_0x21eb62,_0x4f0a36){this['_historyView']['updateItemTitle'](_0x21eb62,_0x4f0a36);}['updateItemLoadingState'](_0x5baed2,_0x5d5225,_0x388e72){this['_historyView']['updateItemLoadingState'](_0x5baed2,_0x5d5225,_0x388e72);}['setLoadingSkeleton'](_0x3ceee0){this['_historyView']['isLoading']=_0x3ceee0;}['showError'](_0x2e1370){this['_historyView']['errorMessage']=_0x2e1370;}['hideError'](){this['_historyView']['errorMessage']='';}['setIsMaximized'](_0x4dc9b5){this['_historyView']['isMaximized']=_0x4dc9b5;}}class AIChatHistoryItem extends ObservableMixin(){['id'];['createdAt'];constructor({id:_0x3658f1,title:_0x153354,createdAt:_0x24d644,updatedAt:_0x562ca6,pinned:_0x579e2e}){super(),this['id']=_0x3658f1,this['createdAt']=new Date(_0x24d644),this['set']('title',_0x153354),this['set']('updatedAt',_0x562ca6?new Date(_0x562ca6):null),this['set']('pinned',_0x579e2e||!0x1);}['updateTitle'](_0x2be678){this['set']('title',escape(_0x2be678)),this['updatedAt']=new Date();}['updatePinned'](_0x5ce4ec){this['set']('pinned',_0x5ce4ec),this['updatedAt']=new Date();}}class AIChatHistoryConversations extends EmitterMixin(){['items']=[];['connector'];['group'];constructor({connector:_0x168260,group:_0x53bb48}){super(),this['connector']=_0x168260,this['group']=_0x53bb48;}async['init'](){try{const _0x46ac8b=this['connector']['fetchConversations'](this['group']),_0x145ea6=await _0x46ac8b['getConversations']();this['loadItems'](_0x145ea6);}catch(_0x30ef35){this['fire']('error',{'error':_0x30ef35,'operation':'init'});}}['addItem'](_0x94b81){this['items']['push'](_0x94b81);}async['removeItem'](_0x3101d5){const _0x1c522d=this['items']['findIndex'](_0x265f66=>_0x265f66['id']===_0x3101d5);if(-0x1===_0x1c522d)return!0x1;try{return await this['connector']['deleteConversation'](_0x3101d5)['execute'](),this['items']['splice'](_0x1c522d,0x1),this['fire']('itemRemoved',{'itemId':_0x3101d5}),!0x0;}catch(_0x2128c7){return this['fire']('error',{'error':_0x2128c7,'operation':'removeItem','itemId':_0x3101d5}),!0x1;}}['getItem'](_0xc0c41b){return this['items']['find'](_0x190d75=>_0x190d75['id']===_0xc0c41b);}async['updateItemTitle'](_0x4f9a56,_0x4328c0){const _0x481370=this['getItem'](_0x4f9a56);if(!_0x481370)return!0x1;try{return await this['connector']['updateConversation'](_0x4f9a56,{'title':_0x4328c0})['getResult'](),_0x481370['updateTitle'](_0x4328c0),this['fire']('itemUpdated',{'itemId':_0x4f9a56,'updates':{'title':_0x4328c0}}),!0x0;}catch(_0x2a442e){return this['fire']('error',{'error':_0x2a442e,'operation':'updateItemTitle','itemId':_0x4f9a56}),!0x1;}}async['updateItemPinned'](_0x3a914f,_0x4ab576){const _0x395db1=this['getItem'](_0x3a914f);if(!_0x395db1)return!0x1;try{return await this['connector']['updateConversation'](_0x3a914f,{'pinned':_0x4ab576})['getResult'](),_0x395db1['updatePinned'](_0x4ab576),this['fire']('itemUpdated',{'itemId':_0x3a914f,'updates':{'pinned':_0x4ab576}}),!0x0;}catch(_0x349a95){return this['fire']('error',{'error':_0x349a95,'operation':'updateItemPinned','itemId':_0x3a914f}),!0x1;}}['loadItems'](_0x26108d){try{this['items']=[],_0x26108d['map'](_0x19c20f=>{this['addItem'](new AIChatHistoryItem(_0x19c20f));}),this['fire']('itemsLoaded',{'items':[...this['items']]});}catch(_0x5e98f2){this['fire']('error',{'error':_0x5e98f2,'operation':'loadItems'});}}['getItems'](_0x104c55={}){const _0x93e75d=void 0x0!==_0x104c55['pinned']&&_0x104c55['pinned'],_0x1de848=_0x104c55['from']?new Date(_0x104c55['from']['getFullYear'](),_0x104c55['from']['getMonth'](),_0x104c55['from']['getDate']()):null,_0xbcc12c=_0x104c55['to']?new Date(_0x104c55['to']['getFullYear'](),_0x104c55['to']['getMonth'](),_0x104c55['to']['getDate']()):null;return this['items']['filter'](_0x3964e8=>{if(_0x3964e8['pinned']!==_0x93e75d)return!0x1;if(_0xbcc12c){const _0x31e1bd=new Date(_0x3964e8['createdAt']['getFullYear'](),_0x3964e8['createdAt']['getMonth'](),_0x3964e8['createdAt']['getDate']());return _0x1de848?_0x1de848['getTime']()===_0xbcc12c['getTime']()?_0x31e1bd['getTime']()===_0x1de848['getTime']():_0x31e1bd<_0xbcc12c&&_0x31e1bd>=_0x1de848:_0x31e1bd<_0xbcc12c;}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 _0x3da061=this['context']['plugins']['get'](AITabs);try{const _0x55d1e1=this['_aiChatController']['getGroupId']();this['history']=new AIChatHistoryConversations({'connector':this['_aiConnector'],'group':_0x55d1e1}),this['listenTo'](this['_aiChatHistoryUi'],'removeConversation',(_0x3fff52,_0x3e7860)=>{this['_setItemLoading'](_0x3e7860['id'],'remove'),this['_handleRemove'](_0x3e7860['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'editConversationTitle',(_0x1aee6d,_0x5b0a6b)=>{this['_setItemLoading'](_0x5b0a6b['id'],'rename'),this['_handleEditTitle'](_0x5b0a6b['id'],_0x5b0a6b['title']);}),this['listenTo'](this['history'],'itemUpdated',(_0x420943,_0x2f6f3e)=>{void 0x0!==_0x2f6f3e['updates']['title']&&this['_aiChatHistoryUi']['updateItemTitle'](_0x2f6f3e['itemId'],_0x2f6f3e['updates']['title']),void 0x0!==_0x2f6f3e['updates']['pinned']&&this['_updateHistoryItemsUI'](),this['_clearItemLoading'](_0x2f6f3e['itemId']);}),this['listenTo'](this['history'],'itemRemoved',(_0x1ba482,_0x22bd8b)=>{this['_aiChatController']['handleRemovedConversation'](_0x22bd8b['itemId']),this['_aiChatHistoryUi']['removeHistoryItem'](_0x22bd8b['itemId']),this['_clearItemLoading'](_0x22bd8b['itemId']);}),this['listenTo'](this['history'],'itemsLoaded',()=>{this['_updateHistoryItemsUI']();}),this['listenTo'](this['history'],'error',(_0x5d274d,_0x50f882)=>{this['_handleHistoryErrorUI'](_0x50f882['error'],_0x50f882['operation'],_0x50f882['itemId']);}),this['listenTo'](this['_aiChatHistoryUi'],'selectConversation',(_0x544a79,_0x14dc3c)=>{this['_handleSelectConversation'](_0x14dc3c['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'setConversationPinned',(_0x4f3362,_0x142b2c)=>{const _0x27d5a4=_0x142b2c['pinned']?'pin':'unpin';this['_setItemLoading'](_0x142b2c['id'],_0x27d5a4),this['_handleTogglePin'](_0x142b2c['id'],_0x142b2c['pinned']);}),this['listenTo'](this['_aiChatHistoryUi'],'openChat',()=>{_0x3da061['view']['activateTab']('chat');}),this['listenTo'](this['_aiChatController'],'change:activeConversation',()=>{this['_updateHistoryItemsUI']();}),_0x3da061['view']['on']('activateTab:history',()=>{this['_showConversationHistory']();}),this['listenTo'](_0x3da061,'resizedTabs',(_0x1fd030,_0x529d44)=>{this['_setIsMaximized'](_0x529d44);}),this['listenTo'](this['_aiChatHistoryUi'],'resizeTabs',()=>{_0x3da061['resize']();});}catch(_0x41d098){this['_handleHistoryErrorUI'](_0x41d098,'init');}}async['_handleEditTitle'](_0x186d15,_0x900d85){await this['history']['updateItemTitle'](_0x186d15,_0x900d85);}async['_handleTogglePin'](_0x53c818,_0x53f901){await this['history']['updateItemPinned'](_0x53c818,_0x53f901);}async['_handleRemove'](_0x3b7563){await this['history']['removeItem'](_0x3b7563);}async['_handleSelectConversation'](_0x367e23){await this['_aiChatController']['loadConversation'](_0x367e23);}async['_showConversationHistory'](){this['_aiChatHistoryUi']['showError'](''),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x0),await this['history']['init'](),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_updateHistoryItemsUI'](){const _0x3a9f34=this['_aiChatController']['activeConversation']?.['id'],_0x5edf3c=this['_getCategorizedItems']()['map'](_0x4f7d7a=>({'title':_0x4f7d7a['title'],'items':_0x4f7d7a['items']['map'](_0x198d6a=>({'id':_0x198d6a['id'],'title':_0x198d6a['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),'createdAt':new Date(_0x198d6a['createdAt'])['toLocaleDateString'](),'active':_0x198d6a['id']===_0x3a9f34,'pinned':_0x198d6a['pinned']}))}));this['_aiChatHistoryUi']['updateItems'](_0x5edf3c);}['_setItemLoading'](_0x270a17,_0x15d128){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x270a17,_0x15d128,!0x0);}['_clearItemLoading'](_0x9d6c23){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x9d6c23,null,!0x1);}['_handleHistoryErrorUI'](_0x49c218,_0x2e95e5,_0x2a3e7e){const _0x572403=this['_generateErrorMessage'](_0x2e95e5,_0x2a3e7e);this['_aiChatHistoryUi']['showError'](_0x572403),_0x2a3e7e&&this['_clearItemLoading'](_0x2a3e7e),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_generateErrorMessage'](_0x42ce27,_0x5ea6e1){const _0x8f8dd3=_0x5ea6e1?this['history']['getItem'](_0x5ea6e1):null,_0x2a40af=_0x8f8dd3?.['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION');switch(_0x42ce27){case'updateItemTitle':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE',_0x2a40af);case'updateItemPinned':{const _0x195ff9=getTranslation$i(this['context']['locale'],_0x8f8dd3?.['pinned']?'AI_CHAT_HISTORY_UNPIN_ACTION':'AI_CHAT_HISTORY_PIN_ACTION');return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED',[_0x195ff9,_0x2a40af]);}case'removeItem':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM',_0x2a40af);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 _0x38368f=new Date(),_0x5dbeed=new Date(_0x38368f['getFullYear'](),_0x38368f['getMonth'](),_0x38368f['getDate']()),_0x4207b8=new Date(_0x5dbeed);_0x4207b8['setDate'](_0x4207b8['getDate']()-0x1);const _0x39f177=new Date(_0x5dbeed);_0x39f177['setDate'](_0x39f177['getDate']()-0xe);const _0x574b43=this['history']['getItems']({'pinned':!0x0}),_0xac1363=this['history']['getItems']({'from':_0x5dbeed,'to':_0x5dbeed}),_0x52df6d=this['history']['getItems']({'from':_0x4207b8,'to':_0x4207b8}),_0x343e44=this['history']['getItems']({'from':_0x39f177,'to':_0x4207b8}),_0x146e46=this['history']['getItems']({'to':_0x39f177}),_0x3d8fbc=[];return _0x574b43['length']>0x0&&_0x3d8fbc['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_PINNED'),'items':_0x574b43}),_0xac1363['length']>0x0&&_0x3d8fbc['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_TODAY'),'items':_0xac1363}),_0x52df6d['length']>0x0&&_0x3d8fbc['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_YESTERDAY'),'items':_0x52df6d}),_0x343e44['length']>0x0&&_0x3d8fbc['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS'),'items':_0x343e44}),_0x146e46['length']>0x0&&_0x3d8fbc['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LATER'),'items':_0x146e46}),_0x3d8fbc;}['_setIsMaximized'](_0x1a9f76){this['_aiChatHistoryUi']['setIsMaximized'](_0x1a9f76);}}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(_0x518905){super(_0x518905),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:_0x349fb1,attributes:_0x2de5de}){await this['context']['plugins']['get'](AIChatController)['sendMessage']({'message':_0x349fb1,'attributes':_0x2de5de});}['removeSelectionFromChatContext'](){this['context']['plugins']['get'](AIChatController)['removeSelectionFromChatContext']();}['focusPromptInput'](){this['context']['plugins']['get'](AIChatController)['focusPromptInput']();}['registerToolDataCallback'](_0x1e96ca){this['context']['plugins']['get'](AIChatController)['_registerToolDataCallback'](_0x1e96ca);}}class AIChatShortcutView extends ButtonView{['id'];constructor(_0x5496ab,_0x4141f8){super(_0x5496ab);const {id:_0x5207e4,type:_0x51a171,icon:_0x31ff30}=_0x4141f8;this['id']=_0x5207e4,this['set']({'label':_0x4141f8['label'],'withText':!0x0,'class':'ck-ai-chat-shortcut'}),this['extendTemplate']({'attributes':{'data-cke-ai-shortcut-id':_0x4141f8['id']}}),_0x31ff30?this['icon']=_0x31ff30:'chat'===_0x51a171?this['icon']=IconAIChat$1:'review'===_0x51a171?this['icon']=IconAIReview:'translate'===_0x51a171&&(this['icon']=IconAITranslate);}}class AIChatShortcutsView extends View{['listView'];constructor(_0x29f3ff,_0x4e8729){super(_0x29f3ff);const _0x4cfbab=_0x4e8729['map'](_0x2bbb60=>{const _0xb403d2=new ListItemView(this['locale']),_0x4ad7cf=new AIChatShortcutView(this['locale'],_0x2bbb60);return _0xb403d2['children']['add'](_0x4ad7cf),_0x4ad7cf['delegate']('execute')['to'](this),_0xb403d2;});this['listView']=new ListView(this['locale']),this['listView']['items']['addMany'](_0x4cfbab),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(_0x3ed401){return _0x3ed401['CHAT']='chat',_0x3ed401['REVIEW']='review',_0x3ed401['TRANSLATE']='translate',_0x3ed401;}({});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 _0x5ab08b=this['context']['plugins']['get']('AIChatController');this['_shortcuts']['length']&&(this['_validateShortcuts'](),this['_aiChatUI']['on']('conversationCreated',()=>{_0x5ab08b['activeConversation']['isFromHistory']||this['_injectShortcuts']();}),this['listenTo'](_0x5ab08b,'interactionStarted',()=>{this['_removeShortcuts']();}));}['_validateShortcuts'](){const _0x161fab=Object['values'](AIChatShortcutType);this['_shortcuts']['forEach'](_0x21eb77=>{let _0xaef167=!0x0;if(_0x21eb77['id']&&_0x21eb77['label']&&_0x161fab['includes'](_0x21eb77['type'])?'chat'===_0x21eb77['type']&&(_0xaef167='string'==typeof _0x21eb77['prompt']):_0xaef167=!0x1,!_0xaef167)throw new CKEditorError('ai-chat-shortcuts-invalid-config',this['context'],{'shortcut':_0x21eb77});});}['_injectShortcuts'](){const _0x1484a3=this['context']['plugins']['get'](AIChatUI);this['_shortcutsView']=new AIChatShortcutsView(this['context']['locale'],this['_shortcuts']),this['_shortcutsView']['render'](),_0x1484a3['addFeedItemCustomElement'](this['_shortcutsView']['element'],CHAT_SHORTCUTS_FEED_ITEM_ID),this['_shortcutsView']['on']('execute',_0x271cd0=>{const _0x40f73e=_0x271cd0['source']['id'];this['_executeShortcut'](_0x40f73e);});}['_removeShortcuts'](){const _0x91fd0b=this['context']['plugins']['get'](AIChatUI);_0x91fd0b['hasFeedItem'](CHAT_SHORTCUTS_FEED_ITEM_ID)&&_0x91fd0b['removeFeedItem'](CHAT_SHORTCUTS_FEED_ITEM_ID),this['_shortcutsView']?.['destroy']();}['_executeShortcut'](_0x31e1e3){const _0x5d78eb=this['_shortcuts']['find'](_0x72906a=>_0x72906a['id']===_0x31e1e3),_0x5a7c3b=_0x5d78eb['type'];'chat'===_0x5a7c3b?this['_runChatShortcut'](_0x5d78eb):'review'===_0x5a7c3b?_0x5d78eb['check']?this['_runReviewShortcut'](_0x5d78eb):this['_switchTab']('reviewMode'):'translate'===_0x5a7c3b&&(_0x5d78eb['language']?this['_runTranslateShortcut'](_0x5d78eb):this['_switchTab']('translate'));}['_switchTab'](_0x335bd8){if(!this['context']['plugins']['has']('AITabs'))throw new CKEditorError('ai-chat-shortcuts-ai-tabs-not-found',this['context'],{'tabName':_0x335bd8});this['context']['plugins']['get']('AITabs')['view']['activateTab'](_0x335bd8);}async['_runChatShortcut']({prompt:_0x330c16,draftMode:_0x4889f4,useWebSearch:_0x47e619=!0x1,useReasoning:_0x4a34c2=!0x1,model:_0x195b90}){const _0x497f78=this['context']['plugins']['get']('AIChat'),_0x3ed8a1=this['context']['plugins']['get']('AIChatController'),_0x54fc2c=_0x3ed8a1['activeConversation'];let _0x23b26e;_0x23b26e=_0x195b90?await _0x54fc2c['chatModels']['getModel'](_0x195b90):await _0x54fc2c['chatModels']['getDefault'](),_0x23b26e&&await _0x54fc2c['setModel'](_0x23b26e),_0x54fc2c['setWebSearch'](_0x47e619),_0x54fc2c['setReasoning'](_0x4a34c2),_0x3ed8a1['addCurrentDocumentToChatContext'](),_0x4889f4?(this['_aiChatUI']['setPromptInputValue'](_0x330c16),this['_aiChatUI']['focusPromptInput'](!0x0)):_0x497f78['sendMessage']({'message':_0x330c16});}['_runReviewShortcut']({check:_0x3af2a7,model:_0xe82e89,prompt:_0x3f32dc,params:_0x5babef}){if(!this['context']['plugins']['has']('AIReviewModeUI'))throw new CKEditorError('ai-chat-shortcuts-review-mode-not-found',this['context']);this['_switchTab']('reviewMode');const _0x119502={'id':_0x3af2a7,'isCustom':'custom'===_0x3af2a7};_0xe82e89&&_0x3f32dc&&(_0x119502['args']={'model':_0xe82e89,'prompt':_0x3f32dc}),_0x5babef&&(_0x119502['params']=_0x5babef),this['context']['plugins']['get']('AIReviewModeUI')['fire']('runReviewCheck',_0x119502);}['_runTranslateShortcut']({language:_0x467442}){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':_0x467442,'args':{'language':_0x467442}});}}class ToggleAICommand extends _0x210666{constructor(_0x106307){super(_0x106307);const _0x1687b5=_0x106307['plugins']['get']('AITabs')['view'];this['bind']('value')['to'](_0x1687b5,'isVisible'),this['isEnabled']=!0x0;}['execute'](){const _0x1522a5=this['editor']['plugins']['get']('AITabs')['view'];_0x1522a5['isVisible']=!_0x1522a5['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 _0x2e9ad0=this['editor'];_0x2e9ad0['commands']['add']('toggleAi',new ToggleAICommand(_0x2e9ad0)),_0x2e9ad0['ui']['componentFactory']['add']('toggleAi',()=>{const _0x2dd874=this['_createAIUIButton'](ButtonView);return _0x2dd874['set']({'tooltip':!0x0,'class':'ck-ai-toggle-button'}),_0x2dd874;}),_0x2e9ad0['ui']['componentFactory']['add']('menuBar:toggleAi',()=>{const _0x5e7b44=this['_createAIUIButton'](MenuBarMenuListItemButtonView);return _0x5e7b44['set']({'role':'menuitemcheckbox'}),_0x5e7b44;});}['_createAIUIButton'](_0x478afa){const _0x96c5ad=this['editor'],_0x4f6b9f=_0x96c5ad['commands']['get']('toggleAi'),_0x529bfa=new _0x478afa(_0x96c5ad['locale']);return _0x529bfa['set']({'label':getTranslation$i(_0x96c5ad['locale'],'AI_TOGGLE_BUTTON_LABEL'),'icon':IconAIAskAI,'isToggleable':!0x0}),_0x529bfa['bind']('isEnabled')['to'](_0x4f6b9f),_0x529bfa['bind']('isOn')['to'](_0x4f6b9f,'value',_0x251c7d=>!!_0x251c7d),this['listenTo'](_0x529bfa,'execute',()=>{_0x4f6b9f['execute']();}),_0x529bfa;}}const AI_BALLOON_VIEW_EVENT_NAMES=['applySuggestion','insertSuggestion','showNext','showPrevious'];class AIBalloonView extends View{['_errorView'];constructor(_0x1cf885){super(_0x1cf885),this['set']('_errorMessage',''),this['set']('_isErrorVisible',!0x1);}['showBlockingError'](_0x6566f0){this['showError'](_0x6566f0);}['showError'](_0x2918ab){this['_errorView']||(this['_errorView']=this['_createErrorView']()),this['_errorMessage']=_0x2918ab,this['_isErrorVisible']=!0x0;}['hideError'](){this['_isErrorVisible']=!0x1;}['_createErrorView'](){const _0x133469=new View(this['locale']),_0x59496e=new View(this['locale']);return _0x59496e['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__error-text']},'children':[{'text':this['bindTemplate']['to']('_errorMessage')}]}),_0x133469['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__error','ck-ai-balloon-error',this['bindTemplate']['if']('_isErrorVisible','ck-hidden',_0x342657=>!_0x342657)]},'children':[_0x59496e]}),_0x133469;}}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'](_0x56658d){const {id:_0x351e6a}=this['_currentConfig']??{};this['_currentConfig']=_0x56658d;const {id:_0x1dde5e}=this['_currentConfig'];this['isOpen']&&_0x351e6a===_0x1dde5e?this['_updateDialog']():this['_showDialog']();}['close'](){const _0xa6ba92=getEditorFromContext(this['context'])['plugins']['get']('Dialog');_0xa6ba92['isOpen']&&this['_currentConfig']&&_0xa6ba92['id']===this['_currentConfig']['id']&&_0xa6ba92['hide']();}['_updateDialog'](){const _0x360a49=getEditorFromContext(this['context'])['plugins']['get']('Dialog'),{icon:_0x1c277e,title:_0x5f5854}=this['_currentConfig'];_0x360a49['view']?.['headerView']&&(_0x360a49['view']['headerView']['label']=_0x5f5854,_0x360a49['view']['headerView']['iconView']&&_0x1c277e&&(_0x360a49['view']['headerView']['iconView']['content']=_0x1c277e)),this['_isUpdatingMarkers']=!0x0,this['_showFakeVisualSelection'](),this['_isUpdatingMarkers']=!0x1,_0x360a49['view']?.['updatePosition']();}['_showFakeVisualSelection'](){this['context']['plugins']['get'](AIEditing)['showFakeVisualSelection'](this['_currentConfig']['ranges'],'ai-balloon-'+this['_currentConfig']['index'],!0x0,!0x0);}['_hideFakeVisualSelection'](_0x4cd0ae){this['context']['plugins']['get'](AIEditing)['hideFakeVisualSelection']('ai-balloon-'+_0x4cd0ae);}['_showDialog'](){const _0x2906a8=getEditorFromContext(this['context'])['plugins']['get']('Dialog'),{id:_0x2f7521,title:_0x300ec1,icon:_0x92caea,class:_0x3e4d5b,mainView:_0x358376}=this['_currentConfig'];_0x358376['delegate'](...AI_BALLOON_VIEW_EVENT_NAMES)['to'](this),_0x2906a8['show']({'title':_0x300ec1,'icon':_0x92caea,'hasCloseButton':!0x0,'id':_0x2f7521,'position':this['_calculateDialogPosition']['bind'](this),'className':'ck-ai-balloon\x20'+(_0x3e4d5b||''),'content':_0x358376,'onShow':_0x230355=>{this['_showFakeVisualSelection'](),this['_setupFakeVisualSelectionMarkerRemovalListener']();const _0x3a57fa=this['_getSelectionElements']();_0x3a57fa&&_0x3a57fa[0x0]&&scrollViewportToShowTarget({'target':_0x3a57fa[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this['isOpen']=!0x0,_0x230355['once']('hide',()=>{this['fire']('beforeDialogClosed',{'id':_0x2f7521});},{'priority':'high'});},'onHide':()=>{this['_hideFakeVisualSelection'](this['_currentConfig']['index']),this['_cleanupFakeVisualSelectionMarkerRemovalListener'](),this['fire']('dialogClosed',{'id':_0x2f7521}),this['isOpen']=!0x1;}});}['_calculateDialogPosition'](_0x303687,_0x1bc4a4){if(!_0x1bc4a4)return null;const _0x7defe9=this['_getSelectionElements']();if(!_0x7defe9||0x0===_0x7defe9['length'])return{'left':Math['round'](_0x1bc4a4['left']+_0x1bc4a4['width']/0x2-_0x303687['width']/0x2),'top':Math['round'](_0x1bc4a4['top']+_0x1bc4a4['height']/0x2-_0x303687['height']/0x2)};const _0x10ecf6=Math['round'](_0x1bc4a4['left']+_0x1bc4a4['width']/0x2-_0x303687['width']/0x2),_0x373816=_0x7defe9['map'](_0x5bbfef=>new Rect(_0x5bbfef)),_0x1b4c40=_0x303687['height'];return{'left':_0x10ecf6,'top':this['_calculateOptimalTopPosition'](_0x373816,_0x1b4c40,_0x1bc4a4)};}['_calculateOptimalTopPosition'](_0x20c6e4,_0x9a758c,_0x386a69){const _0x2e6ab2=new Rect(_0x42cc73['window']),_0xabd5b7=_0x20c6e4['map'](_0x182a8e=>_0x182a8e['getVisible']())['filter'](_0xbb44b=>_0xbb44b),_0x102798=Rect['getBoundingRect'](_0xabd5b7);if(!_0x102798)return Math['round'](_0x386a69['top']+_0x386a69['height']/0x2);const _0x97aab=_0x2e6ab2['getIntersection'](_0x102798);if(!_0x97aab)return Math['round'](_0x386a69['top']+_0x386a69['height']/0x2);const _0x19b402=_0x386a69['getVisible'](),_0x3f071d=_0x19b402&&_0x102798['height']>_0x19b402['height'],_0x413ba4=_0x97aab['top'],_0x578938=_0x97aab['bottom'];if(_0x3f071d){const _0x5d4ffe=(_0x19b402||_0x2e6ab2)['height']/0x2-_0x9a758c/0x2,_0x5205df=_0x413ba4-DIALOG_TOP_OFFSET-_0x386a69['top'],_0x56067d=_0x386a69['bottom']-_0x578938-DIALOG_TOP_OFFSET;return _0x5205df>=_0x9a758c?Math['max'](DIALOG_TOP_OFFSET,_0x413ba4-_0x9a758c-DIALOG_TOP_OFFSET):_0x56067d>=_0x9a758c?_0x578938+DIALOG_TOP_OFFSET:Math['max'](DIALOG_TOP_OFFSET,_0x5d4ffe);}const _0x52031e=_0x413ba4-_0x9a758c,_0x4e3737=_0x386a69['bottom']-_0x578938-DIALOG_TOP_OFFSET,_0x52b8c3=_0x413ba4-DIALOG_TOP_OFFSET-_0x386a69['top'];let _0x46a986;if(_0x4e3737>=_0x9a758c)_0x46a986=_0x578938+DIALOG_TOP_OFFSET;else{if(_0x52b8c3>=_0x9a758c)_0x46a986=_0x52031e-DIALOG_TOP_OFFSET;else _0x46a986=_0x413ba4+_0x102798['height']/0x2-_0x9a758c/0x2;}return _0x46a986;}['_setupFakeVisualSelectionMarkerRemovalListener'](){const _0x1d35c8=getEditorFromContext(this['context']);this['listenTo'](_0x1d35c8['model']['document'],'change',()=>{if(!this['_isUpdatingMarkers']){for(const {name:_0x2dad27,data:{newRange:_0x53f89b}}of _0x1d35c8['model']['document']['differ']['getChangedMarkers']())if(_0x2dad27['startsWith'](AI_VISUAL_SELECTION_MARKER_NAME+':')&&(_0x53f89b&&(_0x53f89b['start']['isEqual'](_0x53f89b['end'])||'$graveyard'==_0x53f89b['root']['rootName'])||null==_0x53f89b)){const _0x3b60b8=getTranslation$i(this['context']['locale'],'AI_BALLOON_SELECTION_REMOVED_ERROR');this['_currentConfig']['mainView']['showBlockingError'](_0x3b60b8),this['fire']('selectionRemoved');}}});}['_cleanupFakeVisualSelectionMarkerRemovalListener'](){const _0x1791e5=getEditorFromContext(this['context']);this['_currentConfig']['mainView']['hideError'](),this['stopListening'](_0x1791e5['model']['document']);}['_getSelectionElements'](){const _0x49717f=getEditorFromContext(this['context']);return getAllMarkersDomElementsSorted(_0x49717f['editing'],[..._0x49717f['model']['markers']['getMarkersGroup']('ai-selection'),..._0x49717f['model']['markers']['getMarkersGroup']('ai-balloon-selection')]);}}class AIMiniToolbarView extends ToolbarView{['copyButton'];['likeButton'];['dislikeButton'];['showChangesButton'];['_config'];constructor(_0x16f48b,_0x23135b={}){super(_0x16f48b),this['set']('isEnabled',!0x0),this['set']('isShowChangesOn',!0x1),this['_config']={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x23135b};const _0x297575=!(this['_config']['showCopy']||this['_config']['showChanges']||this['_config']['showLike']||this['_config']['showDislike']||this['_config']['customView']?.['length']);this['class']=_0x297575?'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'](_0x5aa6e1){this['showChangesButton']['isEnabled']=_0x5aa6e1;}['_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':_0x511855,'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 _0x75a9cf=new IconView();_0x75a9cf['set']({'content':_0x51b07d}),_0x75a9cf['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'](_0x75a9cf);}['_setupShowChangesButton'](){this['showChangesButton']=new ButtonView(this['locale']),this['showChangesButton']['set']({'icon':_0x2a6530,'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',_0x148b4b=>_0x148b4b?_0x200336:_0x2a6530),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(_0x2eb140,_0x40525c){super(_0x2eb140);const _0x4794e8=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']=_0x40525c,this['nextButtonView']=this['_createNextButtonView'](),this['previousButtonView']=this['_createPreviousButtonView'](),this['_streamableContentView']=new AISuggestionStreamableContentView(_0x2eb140),this['_partToolbarView']=new AISuggestionContentPartToolbarView(_0x2eb140,_0x40525c['availableActions']),this['_partToolbarView']['delegate']('applySuggestion','insertSuggestion','rejectSuggestion')['to'](this),this['_togglePartToolbarButtonsVisibility'](_0x40525c),this['_stateView']=new AISuggestionContentPartStateView(_0x2eb140),this['_stateView']['isVisible']=!0x1,this['_miniToolbarView']=new AIMiniToolbarView(_0x2eb140,{'showChanges':'full'}),this['_miniToolbarView']['bind']('isShowChangesOn')['to'](this,'showDiff'),this['_miniToolbarView']['on']('toggleShowChanges',()=>{this['fire']('toggleSuggestionDisplayMode');}),this['_toolbarContainerView']=new AIChatBalloonToolbarContainerView(_0x2eb140,[this['_partToolbarView'],this['_stateView'],this['_miniToolbarView']]),this['children']=this['createCollection']([this['_streamableContentView'],this['_toolbarContainerView']]),this['on']('change:_state',(_0x46f4a1,_0x100f2c,_0x2a959a,_0x269532)=>{let _0x17dc67,_0x475f0e;'pending'===_0x269532?(_0x17dc67=this['_partToolbarView'],_0x475f0e=this['_stateView']):(_0x17dc67=this['_stateView'],_0x475f0e=this['_partToolbarView']),this['_stateView']['setState'](_0x2a959a),_0x17dc67['isVisible']=!0x1,_0x475f0e['isVisible']=!0x0;}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-balloon-main',_0x4794e8['to']('_state',_0x4c9e13=>'ck-ai-chat-balloon-main_state_'+_0x4c9e13)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_togglePartToolbarButtonsVisibility'](_0x40525c);});}['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'](_0x2f7186){_0x2f7186?.['keepErrors']||this['hideError'](),await this['_streamableContentView']['update'](_0x2f7186);}['setState'](_0x59f886){this['_state']=_0x59f886;}['showError'](_0x603a65){super['showError'](_0x603a65),this['children']['has'](this['_errorView'])||this['children']['add'](this['_errorView'],0x0);}['hideError'](){this['_isErrorVisible']&&(super['hideError'](),this['togglePartToolbarEnabled'](!0x0));}['showBlockingError'](_0x23bcf3){super['showBlockingError'](_0x23bcf3),this['togglePartToolbarEnabled'](!0x1);}['toggleRotatorButtonsVisibility'](_0x499cfa){this['nextButtonView']['isVisible']=this['previousButtonView']['isVisible']=_0x499cfa;}['togglePartToolbarEnabled'](_0x5b20f5){this['_partToolbarView']['isEnabled']=_0x5b20f5;}['_togglePartToolbarButtonsVisibility']({showApplyButton:_0x2a1275,showSuggestButton:_0x454b23}){_0x2a1275=_0x2a1275&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0x454b23=_0x454b23&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_partToolbarView']['setButtonsVisibility']({'showApplyButton':_0x2a1275,'showSuggestButton':_0x454b23});}['_createNextButtonView'](){const _0x140394=new ButtonView(this['locale']);return _0x140394['set']({'icon':IconChevronDown,'label':getTranslation$i(this['locale'],'AI_BALLOON_NEXT_LABEL'),'isVisible':!0x0}),_0x140394['on']('execute',()=>{this['fire']('showNext');}),_0x140394;}['_createPreviousButtonView'](){const _0x56f639=new ButtonView(this['locale']);return _0x56f639['set']({'icon':IconChevronUp,'label':getTranslation$i(this['locale'],'AI_BALLOON_PREVIOUS_LABEL'),'isVisible':!0x0}),_0x56f639['on']('execute',()=>{this['fire']('showPrevious');}),_0x56f639;}}class AIChatBalloonToolbarContainerView extends View{constructor(_0x138b28,_0x2a1d57){super(_0x138b28),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-balloon__toolbar-container']},'children':_0x2a1d57});}}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(_0x183629){super(_0x183629),this['set']('showDiff',!0x1);}['open'](_0x2d40b5){const _0x3089d1=this['editor'];this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),_0x3089d1['plugins']['get']('AIBalloon')['open']({..._0x2d40b5,'id':'aiChatBalloon','class':'ck-ai-chat-balloon','mainView':this['_chatBalloonView']}),this['_toggleRotatorButtonsInDialogHeader'](_0x2d40b5['showRotator']),this['_chatBalloonView']['togglePartToolbarEnabled'](!_0x2d40b5['areActionsDisabled']),this['_restoreDefaultViewFocus']();}['close'](){this['editor']['plugins']['get']('AIBalloon')['close']();}['updateContent'](_0x56e395){return this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),this['_chatBalloonView']['updateContent'](_0x56e395);}['setState'](_0x3b299f){this['_chatBalloonView']&&this['_chatBalloonView']['setState'](_0x3b299f);}['_createChatBalloonView'](){const _0x14f732=this['editor'],_0x37b003=_0x14f732['plugins']['get']('AIBalloon'),_0x360382=_0x14f732['commands']['get']('trackChanges');let _0x174025=_0x14f732['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];_0x14f732['plugins']['has']('TrackChanges')||(_0x174025=_0x174025['filter'](_0x307d3e=>'insertSuggestion'!=_0x307d3e));const _0x25ba04=new AIChatBalloonView(_0x14f732['locale'],{'availableActions':_0x174025,'showApplyButton':!0x0,'showSuggestButton':!!_0x360382});return _0x25ba04['bind']('showDiff')['to'](this),_0x25ba04['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),_0x25ba04['delegate']('showPrevious','showNext')['to'](this),_0x37b003['delegate']('dialogClosed')['to'](this),_0x25ba04['on']('applySuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x25ba04['on']('insertSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x25ba04['on']('rejectSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x360382&&_0x25ba04['bind']('isTrackChangesOn')['to'](_0x360382,'value'),_0x25ba04['render'](),_0x25ba04;}['_toggleRotatorButtonsInDialogHeader'](_0x1ce366){const _0x205b8e=this['editor'],_0x501073=_0x205b8e['plugins']['get']('Dialog')['view']['headerView']['children'];this['_chatBalloonView']['toggleRotatorButtonsVisibility'](_0x1ce366),_0x501073['has'](this['_chatBalloonView']['previousButtonView'])||(_0x501073['addMany']([this['_chatBalloonView']['previousButtonView'],this['_chatBalloonView']['nextButtonView']],0x0),_0x205b8e['plugins']['get']('AIBalloon')['once']('beforeDialogClosed',()=>{_0x501073['remove'](this['_chatBalloonView']['previousButtonView']),_0x501073['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(_0x51d3da){const {editor:_0x4f40ff,action:_0x12dbf5,withText:_0x20dc2f=!0x1,withIcon:_0x4fd6be=!0x0,isInDropdown:_0x589560=!0x0,shouldPreventFocus:_0x43db3b=!0x1}=_0x51d3da;return()=>{const _0x31de5a=_0x4f40ff['locale'],_0x2aa0ac=new ButtonView(_0x31de5a),_0x372e6f=_0x2aa0ac['bindTemplate'];_0x589560&&_0x2aa0ac['extendTemplate']({'on':{'mouseenter':_0x372e6f['to'](()=>{_0x43db3b&&_0x43db3b()||_0x2aa0ac['focus']();})}});const _0x314f87=_0x12dbf5['icon']??_0x12dbf5['parent']?.['icon'];return _0x2aa0ac['set']({'label':_0x12dbf5['displayedPrompt'],'withText':_0x20dc2f,'role':'menuitem','icon':_0x4fd6be?_0x314f87??IconAIQuickActions:void 0x0,'tooltip':!_0x20dc2f,'class':'ck-ai-quick-actions-button','isEnabled':_0x12dbf5['isEnabled']}),_0x2aa0ac['on']('execute',()=>{_0x4f40ff['editing']['view']['focus'](),_0x4f40ff['commands']['execute']('aiQuickAction',_0x12dbf5);}),_0x2aa0ac;};}class DropdownMenuButtonWithHighlightView extends ListItemButtonView{['arrowView'];constructor(_0x12621f,_0x2fd8bd){super(_0x12621f,_0x2fd8bd);const _0x221b33=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',_0x13c391=>String(_0x13c391)),'data-cke-tooltip-disabled':_0x221b33['to']('isOn')},'on':{'mouseenter':_0x221b33['to']('mouseenter')}});}['render'](){super['render'](),this['children']['add'](this['arrowView']);}['_createArrowView'](){const _0x50ed4f=new IconView();return _0x50ed4f['content']=IconDropdownArrow,_0x50ed4f['extendTemplate']({'attributes':{'class':'ck-dropdown-menu-list__nested-menu__button__arrow'}}),_0x50ed4f;}}class AIQuickActionsFilteredListView extends ListView{['_allListItems'];['_allSearchableItems'];constructor(_0x3ac16a,_0x1c564c,_0x3712a7){super(_0x3ac16a),this['_allListItems']=_0x1c564c,this['_allSearchableItems']=_0x3712a7;}['filter'](_0x36ce54){if(!_0x36ce54)return this['items']['clear'](),this['items']['addMany'](this['_allListItems']),this['_clearHighlight'](),{'resultsCount':this['_allListItems']['length'],'totalItemsCount':this['_allListItems']['length']};const _0x425645=_0x36ce54['source']['toLowerCase']()['trim'](),_0xd6b51b=this['_allSearchableItems']['filter'](_0x5d3a44=>(_0x5d3a44['groupLabel']?_0x5d3a44['label']+'\x20('+_0x5d3a44['groupLabel']+')':_0x5d3a44['label'])['toLowerCase']()['includes'](_0x425645));return this['items']['clear'](),this['items']['addMany'](_0xd6b51b['sort']((_0x184cb7,_0xa1d038)=>{const _0x393f60=_0x184cb7['groupLabel'],_0x33e56f=_0xa1d038['groupLabel'];return _0x393f60||_0x33e56f?_0x393f60?0x1:-0x1:0x0;})['map'](_0x4850cf=>_0x4850cf['item'])),this['_highlightQuery'](_0x425645,_0xd6b51b),{'resultsCount':_0xd6b51b['length'],'totalItemsCount':this['_allSearchableItems']['length']};}['_highlightQuery'](_0x5d92f8,_0x36f44a){if(!_0x5d92f8)return;const _0x535b9e=new RegExp(escapeRegExp$1(_0x5d92f8),'gi');_0x36f44a['forEach'](_0x516a12=>{_0x516a12['highlightViews']&&_0x516a12['highlightViews']['forEach'](_0x361fef=>{'function'==typeof _0x361fef['highlightText']&&_0x361fef['highlightText'](_0x535b9e);});});}['_clearHighlight'](){this['_allSearchableItems']['forEach'](_0x2175c6=>{_0x2175c6['highlightViews']&&_0x2175c6['highlightViews']['forEach'](_0x3b3d8d=>{'function'==typeof _0x3b3d8d['highlightText']&&_0x3b3d8d['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(_0x178022,_0x24160a,_0x2448aa,_0x171ec6,_0x2fceb8=!0x1){const _0xb481fb=_0x178022['locale'];super(_0xb481fb),this['_bodyCollection']=_0x171ec6,this['_hasSearch']=_0x2fceb8;const _0x5cc3ac=this['_createListItems'](_0x178022,_0x24160a,_0x2448aa);this['optionsListView']=new AIQuickActionsFilteredListView(_0xb481fb,_0x5cc3ac,this['_allSearchableItems']),this['optionsListView']['role']=UI_ROLES['MENU'],this['optionsListView']['items']['addMany'](_0x5cc3ac),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),_0x2fceb8&&(this['_searchTextView']=this['_createSearchTextView']()),this['_focusables']=_0x5cc3ac,this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes']}),_0x2fceb8&&this['_searchTextView']&&this['focusCycler']['chain'](this['_searchTextView']['focusCycler']);const _0x2004c0=_0x2fceb8&&this['_searchTextView']?[this['_searchTextView']]:[this['optionsListView']];this['children']=new ViewCollection(_0x2004c0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions','ck-rounded-corners'],'dir':_0xb481fb['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 _0x44829a=this['_searchTextView']['queryView']['fieldView']['element']['ownerDocument']?.['activeElement'];return this['_searchTextView']['queryView']['fieldView']['element']['contains'](_0x44829a);}['_createListItems'](_0x3c43da,_0x35dc4c,_0x4e594b){const _0x333819=new ViewCollection();return _0x35dc4c['forEach'](_0x38f9c9=>{if('actions'in _0x38f9c9){const {listItem:_0x70c44c}=this['_createActionGroupButton'](_0x3c43da,_0x38f9c9,_0x4e594b);_0x333819['add'](_0x70c44c),_0x38f9c9['actions']['forEach'](_0x488204=>{this['_createActionButton'](_0x3c43da,_0x488204,_0x38f9c9['label'],_0x38f9c9['icon']);const {listItem:_0x284f87,highlightViews:_0x3cbadd}=this['_createSearchResultActionButton'](_0x3c43da,_0x488204,_0x38f9c9['label'],_0x38f9c9['icon']);this['_allSearchableItems']['push']({'item':_0x284f87,'label':_0x488204['displayedPrompt'],'groupLabel':_0x38f9c9['label'],'highlightViews':_0x3cbadd});});}else{const {listItem:_0x43a9a7}=this['_createActionButton'](_0x3c43da,_0x38f9c9);_0x333819['add'](_0x43a9a7);const _0xd87ea5=_0x43a9a7['children']['first'];if(_0xd87ea5){const {listItem:_0x185848,highlightViews:_0x262358}=this['_createSearchResultActionButton'](_0x3c43da,_0x38f9c9);this['_allSearchableItems']['push']({'item':_0x185848,'label':_0xd87ea5['label']||'','highlightViews':_0x262358});}}}),_0x333819;}['_createActionButton'](_0x35c505,_0x1b3867,_0x3c1177,_0x5098e7){const _0x12337e=new ListItemView(this['locale']);if(_0x3c1177&&_0x5098e7){const _0x50d41c=new ButtonView(this['locale']),_0x476b35=_0x50d41c['bindTemplate'],_0x2040b3=new HighlightedTextView();_0x2040b3['text']=_0x1b3867['displayedPrompt'];const _0x2936be=new HighlightedTextView();_0x2936be['text']=_0x3c1177;const _0x5e0c0c=new IconView();_0x5e0c0c['content']=_0x5098e7,_0x5e0c0c['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x584edf=new View(this['locale']);_0x584edf['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__open-paren'},'children':[{'text':'\x20('}]});const _0x5bf14f=new View(this['locale']);return _0x5bf14f['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__close-paren'},'children':[{'text':')'}]}),_0x50d41c['set']({'label':_0x1b3867['displayedPrompt']+'\x20('+_0x3c1177+')','withText':!0x0,'role':'menuitem','class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-button_with-group','tooltip':!0x1}),_0x50d41c['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':[_0x2040b3,_0x584edf,_0x5e0c0c,_0x2936be,_0x5bf14f],'on':{'mouseenter':_0x476b35['to'](()=>{this['_isSearchFocused']()||_0x50d41c['focus']();}),'click':_0x476b35['to'](()=>{_0x50d41c['fire']('execute');})}}),_0x50d41c['on']('execute',()=>{_0x35c505['editing']['view']['focus'](),_0x35c505['commands']['execute']('aiQuickAction',_0x1b3867);}),_0x12337e['children']['add'](_0x50d41c),{'listItem':_0x12337e,'highlightViews':[_0x2040b3,_0x2936be]};}{const _0x15d660=new ButtonLabelWithHighlightView(),_0x2829ad=new ButtonView(this['locale'],_0x15d660),_0x333da4=_0x2829ad['bindTemplate'],_0x35bb77=_0x1b3867['icon']??_0x1b3867['parent']?.['icon'],_0x26d225=void 0x0!==_0x1b3867['icon'];return _0x2829ad['set']({'label':_0x1b3867['displayedPrompt'],'withText':!0x0,'role':'menuitem','icon':_0x26d225?_0x35bb77??IconAIQuickActions:void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button'}),_0x2829ad['extendTemplate']({'on':{'mouseenter':_0x333da4['to'](()=>{this['_isSearchFocused']()||_0x2829ad['focus']();})}}),_0x2829ad['on']('execute',()=>{_0x35c505['editing']['view']['focus'](),_0x35c505['commands']['execute']('aiQuickAction',_0x1b3867);}),_0x12337e['children']['add'](_0x2829ad),{'listItem':_0x12337e,'highlightViews':[_0x15d660]};}}['_createSearchResultActionButton'](_0x4dbd35,_0x3b1f3f,_0x583cde,_0x251c48){return _0x583cde&&_0x251c48?this['_createSearchResultGroupedActionButton'](_0x4dbd35,_0x3b1f3f,_0x583cde,_0x251c48):this['_createSearchResultIndividualActionButton'](_0x4dbd35,_0x3b1f3f);}['_createSearchResultGroupedActionButton'](_0x576023,_0xedd448,_0x494fc0,_0x361acf){const _0x27918d=new ListItemView(this['locale']),_0x3f6813=new ButtonView(this['locale']),_0x298582=_0x3f6813['bindTemplate'],{view:_0x1e5691,highlightView:_0x1ef7c9}=this['_createSearchResultGroupRow'](_0x494fc0,_0x361acf),{view:_0x48a886,highlightView:_0x543798}=this['_createSearchResultActionRow'](_0xedd448['displayedPrompt']),_0x57ec04=this['_createSearchResultContentView'](_0x1e5691,_0x48a886);return _0x3f6813['set']({'label':_0xedd448['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}),_0x3f6813['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':[_0x57ec04],'on':{'mouseenter':_0x298582['to'](()=>{this['_isSearchFocused']()||_0x3f6813['focus']();}),'click':_0x298582['to'](()=>{this['_handleSearchResultButtonClick'](_0x3f6813);})}}),this['_setupActionButtonExecution'](_0x3f6813,_0x576023,_0xedd448),_0x27918d['children']['add'](_0x3f6813),{'listItem':_0x27918d,'highlightViews':[_0x1ef7c9,_0x543798]};}['_createSearchResultIndividualActionButton'](_0x277962,_0x1a154e){const _0x531a74=new ListItemView(this['locale']),_0x575118=new ButtonLabelWithHighlightView(),_0xa8dfd7=new ButtonView(this['locale'],_0x575118),_0x4aafde=_0xa8dfd7['bindTemplate'];return _0xa8dfd7['set']({'label':_0x1a154e['displayedPrompt'],'withText':!0x0,'role':'menuitem','icon':void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button'}),_0xa8dfd7['extendTemplate']({'on':{'mouseenter':_0x4aafde['to'](()=>{this['_isSearchFocused']()||_0xa8dfd7['focus']();})}}),this['_setupActionButtonExecution'](_0xa8dfd7,_0x277962,_0x1a154e),_0x531a74['children']['add'](_0xa8dfd7),{'listItem':_0x531a74,'highlightViews':[_0x575118]};}['_createSearchResultGroupRow'](_0xe0dbe,_0x37d478){const _0x51b6ba=new View(this['locale']),_0x1e6128=new IconView();_0x1e6128['content']=_0x37d478,_0x1e6128['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x4c531f=new HighlightedTextView();return _0x4c531f['text']=_0xe0dbe,_0x51b6ba['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__group-row'},'children':[_0x1e6128,_0x4c531f]}),{'view':_0x51b6ba,'highlightView':_0x4c531f};}['_createSearchResultActionRow'](_0x4b10dc){const _0x430ae9=new View(this['locale']),_0x1ded26=new HighlightedTextView();return _0x1ded26['text']=_0x4b10dc,_0x430ae9['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__action-row'},'children':[_0x1ded26]}),{'view':_0x430ae9,'highlightView':_0x1ded26};}['_createSearchResultContentView'](_0x4e6607,_0x158f57){const _0x10512f=new View(this['locale']);return _0x10512f['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__content'},'children':[_0x4e6607,_0x158f57]}),_0x10512f;}['_setupActionButtonExecution'](_0x1173ff,_0x13f748,_0xfe8c61){_0x1173ff['on']('execute',()=>{_0x13f748['editing']['view']['focus'](),_0x13f748['commands']['execute']('aiQuickAction',_0xfe8c61);});}['_createActionGroupButton'](_0x5e7579,_0x5f5a44,_0x343fc9){const _0x38e1a5=new ListItemView(this['locale']),_0x3fe99e=new ButtonLabelWithHighlightView(),_0x5b784b=new DropdownMenuButtonWithHighlightView(this['locale'],_0x3fe99e),_0x4e456d=_0x5b784b['bindTemplate'],_0x56243d=this['_getPanelKeystroke'](_0x343fc9),_0x4d02f8=this['_createGroupActionsList'](_0x5e7579,_0x5f5a44['actions'],_0x343fc9);_0x5b784b['set']({'label':_0x5f5a44['label'],'withText':!0x0,'role':UI_ROLES['MENU_ITEM'],'icon':_0x5f5a44['icon']??IconAIQuickActions,'isEnabled':_0x5f5a44['actions']['some'](_0x24e399=>_0x24e399['isEnabled'])}),_0x5b784b['extendTemplate']({'on':{'mouseenter':_0x4e456d['to'](()=>{this['_isSearchFocused']()||_0x5b784b['focus']();})}});const _0x580cbe=new BalloonPanelView(this['locale']);return _0x580cbe['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-panel','ck-dropdown-menu__nested-menu__panel']},'on':{'keydown':_0x4e456d['to'](_0x421ec3=>{this['_handlePanelKeydown'](_0x421ec3,_0x56243d,_0x5b784b,_0x580cbe);})}}),_0x5b784b['bind']('isOn')['to'](_0x580cbe,'isVisible'),this['_bodyCollection']['add'](_0x580cbe),_0x580cbe['content']['add'](_0x4d02f8),this['_setupGroupMenuBehavior'](_0x5b784b,_0x580cbe),_0x38e1a5['children']['add'](_0x5b784b),{'listItem':_0x38e1a5,'highlightView':_0x3fe99e};}['_createGroupActionsList'](_0x5dbcc2,_0x38974b,_0x48ecbf){const _0x35fb37=new ListView(this['locale']);return _0x35fb37['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-list','ck-dropdown-menu-list']}}),_0x38974b['forEach'](_0x4233f9=>{const _0x24b355=new ListItemView(this['locale']),_0x2c001d=aiQuickActionsButtonCreator({'editor':_0x5dbcc2,'action':_0x4233f9,'withText':!0x0,'withIcon':!0x1,'isInDropdown':!0x0,'shouldPreventFocus':()=>this['_isSearchFocused']()})();_0x24b355['children']['add'](_0x2c001d),_0x48ecbf['focusTracker']['add'](_0x2c001d),_0x35fb37['items']['add'](_0x24b355);}),_0x35fb37;}['_setupGroupMenuBehavior'](_0x8c26b4,_0x2a810d){const _0x1ae7b9=_0x8c26b4['bindTemplate'],_0x38518f=this['_getButtonKeystroke'](_0x8c26b4);_0x8c26b4['extendTemplate']({'attributes':{'class':['ck-ai-quick-actions-group-button']},'on':{'mouseenter':_0x1ae7b9['to'](()=>{this['_showNestedPanel'](_0x2a810d,_0x8c26b4);}),'mouseleave':_0x1ae7b9['to'](_0x5777d5=>{const _0xf6e644=_0x5777d5['relatedTarget'];this['_isMovingToNestedMenu'](_0xf6e644,_0x2a810d)||this['_hideNestedPanel'](_0x2a810d);}),'keydown':_0x1ae7b9['to'](_0x2c8659=>{_0x2c8659['key']==_0x38518f&&(this['_showNestedPanel'](_0x2a810d,_0x8c26b4),_0x2a810d['content']['get'](0x0)['focus']());})}}),_0x2a810d['on']('render',()=>{_0x2a810d['element']?.['addEventListener']('mouseleave',_0xe59042=>{const _0x3a9684=_0xe59042['relatedTarget'];_0x8c26b4['element']?.['contains'](_0x3a9684)||this['_isMovingToNestedMenu'](_0x3a9684,_0x2a810d)||this['_hideNestedPanel'](_0x2a810d);});});}['_showNestedPanel'](_0x3f9a1c,_0x477733){this['_openNestedPanels']['forEach'](_0x3133ad=>{_0x3133ad!==_0x3f9a1c&&_0x3133ad['isVisible']&&_0x3133ad['hide']();}),_0x3f9a1c['show'](),_0x3f9a1c['pin']({'positions':[DropdownMenuPanelPositioningFunctions['eastSouth']],'target':_0x477733['element'],'fitInViewport':!0x0}),this['_openNestedPanels']['add'](_0x3f9a1c);}['_hideNestedPanel'](_0x4da84e){_0x4da84e['hide'](),this['_openNestedPanels']['delete'](_0x4da84e);}['_hideAllNestedPanels'](){this['_openNestedPanels']['forEach'](_0x5a328e=>_0x5a328e['hide']()),this['_openNestedPanels']['clear']();}['_isMovingToNestedMenu'](_0x433062,_0x4cbfc1){if(!_0x433062)return!0x1;if(_0x4cbfc1['element']?.['contains'](_0x433062))return!0x0;const _0x3553c9=_0x433062;return _0x3553c9['closest']&&(null!==_0x3553c9['closest']('.ck-ai-quick-actions-group-panel')||null!==_0x3553c9['closest']('.ck-ai-quick-actions-group-list')||null!==_0x3553c9['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'](_0x485a9a){return'rtl'===_0x485a9a['locale']['uiLanguageDirection']?'ArrowRight':'ArrowLeft';}['_getButtonKeystroke'](_0x48bc48){return'rtl'===_0x48bc48['locale']['uiLanguageDirection']?'ArrowLeft':'ArrowRight';}['_handlePanelKeydown'](_0x3a8364,_0x81f84a,_0x5e459e,_0x4b3604){_0x3a8364['key']==_0x81f84a&&(_0x5e459e['focus'](),this['_hideNestedPanel'](_0x4b3604));}['_handleSearchResultButtonClick'](_0x400396){_0x400396['fire']('execute');}}function aiQuickActionsDropdownCreator(_0x3d5740){const {editor:_0xcd9040,content:_0x201d35,buttonDefinition:_0xc6868f,bodyCollection:_0xc96a51,hasSearch:_0x190984=!0x1}=_0x3d5740;return()=>{const _0x4373e9=_0xcd9040['locale'],_0x59266f=createDropdown(_0x4373e9);_0x59266f['buttonView']['set']({'icon':_0xc6868f['icon']??IconAIQuickActions,'label':_0xc6868f['label'],'tooltip':!0x0}),_0x59266f['set']({'class':'ck-ai-quick-actions-dropdown'});const _0x290bb4=new AIQuickActionsDropdownContentView(_0xcd9040,_0x201d35,_0x59266f,_0xc96a51,_0x190984);if(_0x59266f['panelView']['children']['add'](_0x290bb4),_0x190984){const _0x73a190='ai-quick-actions-dropdown-selection';_0x59266f['on']('change:isOpen',(_0x31e42e,_0x22b64f,_0x3d7c60)=>{if(_0x3d7c60){if(_0xcd9040['plugins']['has']('AIEditing')){const _0x451165=_0xcd9040['plugins']['get'](AIEditing),_0x47edc6=_0xcd9040['model']['document']['selection'],_0xa71f8a=Array['from'](_0x47edc6['getRanges']());_0xa71f8a['length']>0x0&&_0x451165['showFakeVisualSelection'](_0xa71f8a,_0x73a190,!0x1,!0x0);}}else _0xcd9040['plugins']['has']('AIEditing')&&_0xcd9040['plugins']['get'](AIEditing)['hideFakeVisualSelection'](_0x73a190),_0x290bb4['resetSearch']();});}return _0x59266f;};}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(_0x39c19f){return _0x39c19f['CHAT']='CHAT',_0x39c19f['ACTION']='ACTION',_0x39c19f['REVIEW']='REVIEW',_0x39c19f;}({}),AIQuickActionTypeToPluginName=function(_0x406c90){return _0x406c90['CHAT']='AIChat',_0x406c90['ACTION']='AIActions',_0x406c90['REVIEW']='AIReviewMode',_0x406c90;}({});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 _0x32bb69=await this['_getDefaultAndCustomActions']();this['_prepareQuickActionsDefinition'](_0x32bb69),this['_initializeQuickActionsComponentsAndCommands']();}static['getDefaultQuickActions'](_0x1c4c79){return getDefaultQuickActions(_0x1c4c79);}async['_getDefaultAndCustomActions'](){const _0x546e96=AIQuickActionsUI['getDefaultQuickActions'](this['editor']['locale']),_0xdc276a=this['editor']['config']['get']('ai.quickActions.extraCommands')||[];let _0x457906=[];try{_0x457906=await new AIModels({'connector':this['editor']['plugins']['get']('AIConnector'),'locale':this['editor']['locale']})['getAll']();}catch(_0x287e1a){const _0x2a364c=new CKEditorError('ai-quick-actions-models-unable-to-retrieve',this,{'error':_0x287e1a});logError(_0x2a364c['message']);}finally{const _0x1d886a=_0xdc276a['map'](_0x163a66=>({..._0x163a66,'icon':void 0x0})),_0x3752c0=_0x546e96['find'](_0x1e3711=>'other'===_0x1e3711['id']);_0x3752c0['actions']['push'](..._0x1d886a),_0x546e96['forEach'](_0x584b77=>{if('actions'in _0x584b77)_0x584b77['actions']['forEach'](_0xd61f3=>{if(_0xd61f3['isEnabled']=!!_0x457906['find'](_0x369f8d=>_0x369f8d['id']===_0xd61f3['model'])||void 0x0===_0xd61f3['model'],!_0xd61f3['isEnabled']){const _0x585635=new CKEditorError('ai-quick-actions-unavailable-model',this,{'actionId':_0xd61f3['id'],'modelId':_0xd61f3['model']});logError(_0x585635['message']);}});else{if(_0x584b77['isEnabled']=!!_0x457906['find'](_0x43e52e=>_0x43e52e['id']===_0x584b77['model'])||void 0x0===_0x584b77['model'],!_0x584b77['isEnabled']){const _0x553fb0=new CKEditorError('ai-quick-actions-unavailable-model',this,{'actionId':_0x584b77['id'],'modelId':_0x584b77['model']});logError(_0x553fb0['message']);}}});}return _0x546e96;}['_initializeQuickActionsComponentsAndCommands'](){const _0x2b4e2a=new BodyCollection(this['editor']['locale']);_0x2b4e2a['attachToDom'](),this['_initializeQuickActionsDropdown'](_0x2b4e2a),this['_initializeQuickActionsMenuBar'](),this['_initializeQuickActionsComponents'](_0x2b4e2a);}['_initializeQuickActionsDropdown'](_0x225dc1){const _0x2ba92b=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':_0x225dc1,'hasSearch':_0x2ba92b}));}['_prepareQuickActionsDefinition'](_0x8dfa7c){this['_quickActionsDefinition']=_0x8dfa7c['map'](_0x5a5f4a=>{if('actions'in _0x5a5f4a){const _0x84d716=_0x5a5f4a;return{..._0x84d716,'actions':_0x84d716['actions']['map'](_0x141460=>{const {actions:_0x130b3b,..._0x4cae69}=_0x84d716;return{..._0x141460,'parent':_0x4cae69};})['filter'](_0x3dadea=>this['_shouldIncludeAction'](_0x3dadea))};}return _0x5a5f4a;})['filter'](_0x20514e=>'actions'in _0x20514e?_0x20514e['actions']['length']>0x0:this['_shouldIncludeAction'](_0x20514e));}['_shouldIncludeAction'](_0x34b2e0){const _0x4e2076=this['editor']['config']['get']('ai.quickActions.removeCommands')||[];return this['editor']['plugins']['has'](AIQuickActionTypeToPluginName[_0x34b2e0['type']])&&!_0x4e2076['includes'](_0x34b2e0['id'])&&!('CHAT'===_0x34b2e0['type']&&!0x1===this['editor']['config']['get']('ai.chat.context.document.enabled'));}['_initializeQuickActionsComponents'](_0x2e2c2e){this['_quickActionsDefinition']['forEach'](_0x479765=>{if('actions'in _0x479765){const _0xf636d7=aiQuickActionsDropdownCreator({'editor':this['editor'],'content':_0x479765['actions'],'buttonDefinition':_0x479765,'bodyCollection':_0x2e2c2e});this['editor']['ui']['componentFactory']['add'](_0x479765['id'],_0xf636d7),_0x479765['actions']['forEach'](_0xa577ef=>{const _0x4a0e27=aiQuickActionsButtonCreator({'editor':this['editor'],'action':_0xa577ef});this['editor']['ui']['componentFactory']['add'](_0xa577ef['id'],_0x4a0e27);});}else{const _0x45d4f0=aiQuickActionsButtonCreator({'editor':this['editor'],'action':_0x479765,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this['editor']['ui']['componentFactory']['add'](_0x479765['id'],_0x45d4f0);}});}['_initializeQuickActionsMenuBar'](){this['editor']['ui']['componentFactory']['add']('menuBar:aiQuickActions',_0x45c229=>{const _0x1fd983=new MenuBarMenuView(_0x45c229),_0x246047=getTranslation$i(_0x45c229,'AI_QUICK_ACTIONS_HEADING');_0x1fd983['buttonView']['set']({'label':_0x246047,'icon':IconAIQuickActions});const _0x1b719a=new MenuBarMenuListView(_0x45c229);_0x1b719a['set']({'ariaLabel':_0x246047,'role':'menu'}),this['_quickActionsDefinition']['forEach'](_0xd2fc68=>{if('actions'in _0xd2fc68){const _0x14d9b7=_0xd2fc68,_0x1f8e8b=new MenuBarMenuListItemView(_0x45c229,_0x1fd983),_0x57cd98=new MenuBarMenuView(_0x45c229),_0x20b4ce=new MenuBarMenuListView(_0x45c229);_0x57cd98['buttonView']['set']({'label':_0x14d9b7['label'],'icon':_0x14d9b7['icon']}),_0x14d9b7['actions']['forEach'](_0xbecd97=>{const _0x295707=new MenuBarMenuListItemView(_0x45c229,_0x57cd98),_0x46d4c2=new MenuBarMenuListItemButtonView(_0x45c229);_0x46d4c2['set']({'label':_0xbecd97['displayedPrompt'],'icon':_0xbecd97['icon'],'role':'menuitem','isEnabled':_0xbecd97['isEnabled']}),_0x46d4c2['on']('execute',()=>{this['_executeQuickAction'](_0xbecd97);}),_0x46d4c2['delegate']('execute')['to'](_0x57cd98),_0x295707['children']['add'](_0x46d4c2),_0x20b4ce['items']['add'](_0x295707);}),_0x57cd98['panelView']['children']['add'](_0x20b4ce),_0x1f8e8b['children']['add'](_0x57cd98),_0x1b719a['items']['add'](_0x1f8e8b);}else{const _0x313fd0=_0xd2fc68,_0x32d052=new MenuBarMenuListItemView(_0x45c229,_0x1fd983),_0x626e68=new MenuBarMenuListItemButtonView(_0x45c229);_0x626e68['set']({'label':_0x313fd0['displayedPrompt'],'icon':_0x313fd0['icon'],'role':'menuitem','isEnabled':_0x313fd0['isEnabled']}),_0x626e68['on']('execute',()=>{this['_executeQuickAction'](_0x313fd0);}),_0x626e68['delegate']('execute')['to'](_0x1fd983),_0x32d052['children']['add'](_0x626e68),_0x1b719a['items']['add'](_0x32d052);}});const _0x150d9d=Object['values'](AIQuickActionTypeToPluginName)['some'](_0x243b95=>this['editor']['plugins']['has'](_0x243b95));return _0x1fd983['set']({'isEnabled':_0x150d9d}),_0x1fd983['panelView']['children']['add'](_0x1b719a),_0x1fd983;});}['_executeQuickAction'](_0xf00d8){const _0x237449=this['editor'];_0x237449['editing']['view']['focus'](),_0x237449['commands']['execute']('aiQuickAction',_0xf00d8);const _0x5c72fa=_0x237449['ui']['view']['menuBarView'];_0x5c72fa&&_0x5c72fa['close']&&_0x5c72fa['close']();}}function getDefaultQuickActions(_0x84475b){const _0x33078a=new Intl['DisplayNames'](['en'],{'type':'language'})['of'](_0x84475b['uiLanguage'])||'English';return[{'id':'ask-ai','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_ASK_AI'),'type':'CHAT','icon':IconAIChatCommands},{'id':'chat-commands','label':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_CHAT_COMMANDS'),'icon':IconAIChatCommands,'actions':[{'id':'explain','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_EXPLAIN'),'prompt':AI_QUICK_ACTIONS_EXPLAIN_PROMPT['replace']('%0',_0x33078a),'type':'CHAT'},{'id':'summarize','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_SUMMARIZE'),'prompt':AI_QUICK_ACTIONS_SUMMARIZE_PROMPT['replace']('%0',_0x33078a),'type':'CHAT'},{'id':'highlight-key-points','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'),'prompt':AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS_PROMPT['replace']('%0',_0x33078a),'type':'CHAT'}]},{'id':'improve-writing','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_IMPROVE_WRITING'),'type':'ACTION','icon':IconAIImproveWriting},{'id':'continue','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_CONTINUE_WRITING'),'type':'ACTION','icon':IconAIContinueWriting},{'id':'fix-grammar','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING'),'type':'ACTION','icon':IconAIGrammarCheck},{'id':'adjust-length','label':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_ADJUST_LENGTH'),'icon':IconAIAdjustLength,'actions':[{'id':'make-shorter','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_MAKE_SHORTER'),'type':'ACTION'},{'id':'make-longer','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_MAKE_LONGER'),'type':'ACTION'}]},{'id':'change-tone','label':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_CHANGE_TONE'),'icon':IconAIChangeTone,'actions':[{'id':'make-tone-casual','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_MORE_CASUAL'),'type':'ACTION'},{'id':'make-tone-direct','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_MORE_DIRECT'),'type':'ACTION'},{'id':'make-tone-friendly','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_MORE_FRIENDLY'),'type':'ACTION'},{'id':'make-tone-confident','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_MORE_CONFIDENT'),'type':'ACTION'},{'id':'make-tone-professional','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_MORE_PROFESSIONAL'),'type':'ACTION'}]},{'id':'translate','label':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_TRANSLATE'),'icon':IconAITranslate,'actions':[{'id':'translate-to-english','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH'),'type':'ACTION','actionName':'translate','args':{'language':'english'}},{'id':'translate-to-chinese','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_TRANSLATE_CHINESE'),'type':'ACTION','actionName':'translate','args':{'language':'chinese'}},{'id':'translate-to-spanish','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_TRANSLATE_SPANISH'),'type':'ACTION','actionName':'translate','args':{'language':'spanish'}},{'id':'translate-to-german','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_TRANSLATE_GERMAN'),'type':'ACTION','actionName':'translate','args':{'language':'german'}},{'id':'translate-to-french','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_TRANSLATE_FRENCH'),'type':'ACTION','actionName':'translate','args':{'language':'french'}},{'id':'translate-to-japanese','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE'),'type':'ACTION','actionName':'translate','args':{'language':'japanese'}},{'id':'translate-to-portuguese','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE'),'type':'ACTION','actionName':'translate','args':{'language':'portuguese'}},{'id':'translate-to-korean','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_TRANSLATE_KOREAN'),'type':'ACTION','actionName':'translate','args':{'language':'korean'}},{'id':'translate-to-italian','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN'),'type':'ACTION','actionName':'translate','args':{'language':'italian'}},{'id':'translate-to-russian','displayedPrompt':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN'),'type':'ACTION','actionName':'translate','args':{'language':'russian'}}]},{'id':'other','label':getTranslation$i(_0x84475b,'AI_QUICK_ACTIONS_OTHER'),'icon':IconAIOther,'actions':[]}];}class AIQuickActionsCommand extends _0x210666{['execute'](_0x54e868){switch(this['_expandSelectionIfCollapsed'](),_0x54e868['type']){case AIQuickActionType['CHAT']:if(!this['editor']['plugins']['has']('AIChat')){const _0x2702cb=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIChat');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x2702cb});}this['_handleAIChatAction'](_0x54e868);break;case AIQuickActionType['ACTION']:if(!this['editor']['plugins']['has']('AIActions')){const _0x227db0=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIActions');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x227db0});}this['_handleAIActionsAction'](_0x54e868);break;case AIQuickActionType['REVIEW']:if(!this['editor']['plugins']['has']('AIReviewMode')){const _0x3fba1d=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIReviewMode');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x3fba1d});}this['_handleAIReviewAction'](_0x54e868);}}async['_handleAIChatAction'](_0x11a3d7){const _0x588aa1=this['editor']['plugins']['get']('AIChat'),_0x3c93d1=this['editor']['plugins']['get']('AIChatController'),_0x3a51a6=this['editor']['plugins']['get']('AITabs')['view'];if(_0x3a51a6['isVisible']||(_0x3a51a6['isVisible']=!0x0),'chat'!==_0x3a51a6['activeTab']&&_0x3a51a6['activateTab']('chat'),'ask-ai'===_0x11a3d7['id'])_0x3c93d1['removeSelectionFromChatContext'](),await _0x588aa1['addSelectionToChatContext'](),_0x588aa1['focusPromptInput']();else await _0x588aa1['startConversation'](),_0x3c93d1['removeSelectionFromChatContext'](),await _0x588aa1['addSelectionToChatContext'](),_0x588aa1['focusPromptInput'](),await _0x588aa1['sendMessage']({'message':_0x11a3d7['prompt']||_0x11a3d7['displayedPrompt'],'attributes':{'quickActionData':{'id':_0x11a3d7['id']},'displayedPrompt':_0x11a3d7['displayedPrompt']}});}['_expandSelectionIfCollapsed'](){const _0x5b97e3=this['editor'],_0x5e38ed=_0x5b97e3['model']['document']['selection'];if(!_0x5e38ed['isCollapsed'])return;const _0x235d83=first(_0x5e38ed['getSelectedBlocks']())||_0x5b97e3['model']['schema']['getLimitElement'](_0x5e38ed);_0x5b97e3['model']['change'](_0x4bf6d0=>{_0x4bf6d0['setSelection'](_0x235d83,'in');});}['_handleAIActionsActionLabel'](_0x393d0e){return _0x393d0e['parent']?.['label']&&'other'!==_0x393d0e['parent']?.['id']?_0x393d0e['parent']['label']+':\x20'+_0x393d0e['displayedPrompt']:_0x393d0e['displayedPrompt'];}async['_handleAIActionsAction'](_0x4f1229){const _0x323aaa=this['editor']['plugins']['get']('AIActions'),_0x453673=_0x4f1229['prompt']?{'userMessage':_0x4f1229['prompt'],'model':_0x4f1229['model']}:{'actionName':_0x4f1229['actionName']||_0x4f1229['id'],'args':_0x4f1229['args']},_0x2a428d=this['_handleAIActionsActionLabel'](_0x4f1229);await _0x323aaa['executeAction'](_0x453673,_0x2a428d,_0x4f1229['icon']);}async['_handleAIReviewAction'](_0x40f569){console['log']('handleAIReviewAction',_0x40f569);}}class AIQuickActionsEditing extends Plugin{static get['pluginName'](){return'AIQuickActionsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x207b8d=this['editor'],_0x479315=new AIQuickActionsCommand(this['editor']);if(_0x207b8d['commands']['add']('aiQuickAction',_0x479315),_0x207b8d['plugins']['has']('AIChat')){const _0x5996b6=this['editor']['plugins']['get']('AIChat');_0x207b8d['model']['document']['selection']['on']('change:range',(_0x558dba,_0x54c99a)=>{_0x54c99a['directChange']&&_0x5996b6['removeSelectionFromChatContext']();});}}}class AIActionsReply extends AIReply{['updateChangeGroups'](){if(this['parsedMergedContent']=this['parsedContent']['cloneNode'](!0x0),0x0==this['parsedMergedContent']['childNodes']['length'])return void(this['changeGroups']=[]);const _0x4cfcc5=diffArrays(this['documentContextContent']['children']['map'](_0xf748bb=>({'node':_0xf748bb,'id':getAttribute(_0xf748bb,'data-id')})),this['parsedMergedContent']['children']['map'](_0x47336=>({'node':_0x47336,'id':getAttribute(_0x47336,'data-id')||uid()})),{'comparator':(_0x44d03d,_0x3d4302)=>_0x44d03d['id']==_0x3d4302['id'],'oneChangePerToken':!0x0});if(!this['isDone']){for(;_0x4cfcc5['length']&&_0x4cfcc5[_0x4cfcc5['length']-0x1]['removed'];)_0x4cfcc5['pop']();}const _0x4db3d6=_0x4cfcc5['map'](_0x5840e7=>{const _0xa0c3c7=_0x5840e7['added']?'new':_0x5840e7['removed']?'removed':'modified';return{'node':_0x5840e7['value'][0x0]['node'],'type':_0xa0c3c7,'id':_0x5840e7['value'][0x0]['id']};});this['changeGroups']=[{'changes':_0x4db3d6,'state':'pending','index':0x0}];}['_getDifferentChangeGroups'](_0x51d016,_0x21f69d){return _0x21f69d;}}class AIActionsInteraction extends AIInteraction{['content'];['version'];['actionName'];['args'];['userMessage'];['model'];['hasError']=!0x1;constructor(_0x9e0d27){super(_0x9e0d27),this['content']=_0x9e0d27['content'],this['version']=_0x9e0d27['version'],this['actionName']=_0x9e0d27['actionName'],this['args']=_0x9e0d27['args'],this['userMessage']=_0x9e0d27['userMessage'],this['model']=_0x9e0d27['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'](_0x4e4c41){const _0x191aa2=new AIActionsReply({'editor':this['editor'],'documentContextContent':this['content'],..._0x4e4c41});return this['replies']['push'](_0x191aa2),_0x191aa2['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0x191aa2),_0x191aa2;}}class AIActionsBalloonToolbarView extends ToolbarView{constructor(_0x9e4191,_0x318221=!0x0,_0x22b3a6=!0x0){super(_0x9e4191),this['set']('isEnabled',!0x1),_0x318221&&(this['applyButton']=this['_createButton'](getTranslation$i(_0x9e4191,'AI_BALLOON_APPLY_BUTTON'),'ck-ai-button-primary'),this['applyButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['applyButton'])),_0x22b3a6&&(this['suggestButton']=this['_createButton'](getTranslation$i(_0x9e4191,'AI_BALLOON_SUGGEST_BUTTON'),_0x318221?'ck-ai-button-secondary':'ck-ai-button-primary'),this['suggestButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['suggestButton'])),this['setButtonsVisibility']({'showApplyButton':_0x318221,'showSuggestButton':_0x22b3a6}),this['extendTemplate']({'attributes':{'class':['ck-ai-balloon__toolbar']}});}['setButtonsVisibility']({showApplyButton:_0x4ed496,showSuggestButton:_0x13da10}){this['applyButton']&&(this['applyButton']['isVisible']=_0x4ed496),this['suggestButton']&&(this['suggestButton']['isVisible']=_0x13da10);}['_createButton'](_0x3b3b44,_0x2ab9b0){const _0x3137f8=new ButtonView(this['locale']);return _0x3137f8['set']({'label':_0x3b3b44,'class':_0x2ab9b0,'isVisible':!0x0,'withText':!0x0}),_0x3137f8;}}class AIActionsBalloonDisclaimerView extends View{constructor(_0x43e195){super(_0x43e195),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(_0x43e195,'AI_DISCLAIMER_TEXT')}]}]});}}class AISuggestionLoaderView extends View{constructor(_0x4e21b6){super(_0x4e21b6),this['set']('isVisible',!0x0);const _0x31d599=new AISpinnerView('small');_0x31d599['isVisible']=!0x0;const _0x2ed4c8=new View(this['locale']);_0x2ed4c8['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',_0x8f90b5=>!_0x8f90b5)]},'children':[_0x31d599,_0x2ed4c8]});}}class AIActionsBalloonView extends AIBalloonView{['focusCycler'];['_config'];['_contentWrapper'];['_streamableContentView'];['_toolbarView'];['_miniToolbarView'];['_loaderView'];['_disclaimerView'];['_focusTracker'];['_keystrokes'];['_dialogContent'];['_focusables'];['_scrollManager'];['_navigationPreviousButton'];['_navigationNextButton'];['_navigationTryAgainButton'];['_navigationCounter'];constructor(_0xe2933c,_0x20146b){super(_0xe2933c),this['set']('isBusy',!0x1),this['set']('isTrackChangesOn',!0x1),this['set']('_isLoading',!0x1),this['set']('_hasError',!0x1),this['_config']=_0x20146b,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'](_0x20146b),this['_addDisclaimerView'](),this['_addToolbar'](_0x20146b),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'](_0x20146b);});}['render'](){super['render']();for(const _0x3b06b8 of this['_focusables'])this['_focusTracker']['add'](_0x3b06b8['element']);this['_keystrokes']['listenTo'](this['element']),this['_initializeScrollManager']();}['destroy'](){super['destroy'](),this['_scrollManager']&&this['_scrollManager']['destroy']();}['focus'](_0x55afd4){-0x1===_0x55afd4?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['setIsLoading'](_0x59927a){this['_isLoading']=_0x59927a;}['setErrorState'](){this['_hasError']=!0x0,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x1);}['clearErrorState'](){this['_hasError']=!0x1,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x0);}['showError'](_0x447fff){super['showError'](_0x447fff),this['_dialogContent']['has'](this['_errorView'])||this['_dialogContent']['add'](this['_errorView'],0x0);}['hideError'](){super['hideError'](),this['clearErrorState']();}['showBlockingError'](_0x1986a4){super['showBlockingError'](_0x1986a4),this['setErrorState']();}['addMiniToolbarItem'](_0x341042){this['_miniToolbarView']['items']['has'](_0x341042)||this['_miniToolbarView']['items']['add'](_0x341042);}['removeMiniToolbarItem'](_0x2e8f9c){this['_miniToolbarView']['items']['has'](_0x2e8f9c)&&this['_miniToolbarView']['items']['remove'](_0x2e8f9c);}['showLoader'](){this['_loaderView']&&(this['_isLoading']=!0x0);}['hideLoader'](){this['_loaderView']&&(this['_isLoading']=!0x1);}['_toggleToolbarButtonsVisibility']({showApplyButton:_0x6218d,showSuggestButton:_0xc0e01d}){_0x6218d=_0x6218d&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0xc0e01d=_0xc0e01d&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_toolbarView']['setButtonsVisibility']({'showApplyButton':_0x6218d,'showSuggestButton':_0xc0e01d});}async['updateContent'](_0x1d1453){await this['_streamableContentView']['update'](_0x1d1453);}['clearContent'](){this['_streamableContentView']['clear']();}['_addContentWrapper'](_0x10e2e8){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'](_0x10e2e8['miniToolbarConfig'])]}),this['_dialogContent']['add'](this['_contentWrapper']);}['_addDisclaimerView'](){this['_disclaimerView']=new AIActionsBalloonDisclaimerView(this['locale']),this['_dialogContent']['add'](this['_disclaimerView']);}['_addToolbar']({showApplyButton:_0x1a129b,showSuggestButton:_0x58873f}){this['_toolbarView']=new AIActionsBalloonToolbarView(this['locale'],_0x1a129b,_0x58873f),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',(_0x52a8d0,_0x575c83,_0xec5f81)=>!(_0x52a8d0||_0x575c83||_0xec5f81)),this['_toggleToolbarButtonsVisibility']({'showApplyButton':_0x1a129b,'showSuggestButton':_0x58873f}),this['_dialogContent']['add'](this['_toolbarView']);}['_createMiniToolbar'](_0x1e494f){return this['_miniToolbarView']=new AIMiniToolbarView(this['locale'],_0x1e494f),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',(_0x4ba7f3,_0x19196f)=>!(_0x4ba7f3||_0x19196f)),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 _0x386e36=new ButtonView(this['locale']),_0x4d6e91=new ButtonView(this['locale']),_0x2af3df=new AIActionsBalloonNavigationCounterView(this['locale']),_0x533f99=new ButtonView(this['locale']);_0x386e36['set']({'icon':IconRefresh,'label':getTranslation$i(this['locale'],'AI_ACTIONS_TRY_AGAIN'),'tooltip':!0x0,'class':'ck-ai-custom-action-button'}),_0x4d6e91['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['locale'],'AI_ACTIONS_PREVIOUS_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-previous-button'}),_0x533f99['set']({'icon':IconNextArrow,'tooltip':getTranslation$i(this['locale'],'AI_ACTIONS_NEXT_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-next-button'}),_0x386e36['bind']('isEnabled')['to'](this,'isBusy',_0x105d97=>!_0x105d97),_0x386e36['on']('execute',()=>{this['fire']('tryAgain');}),_0x4d6e91['bind']('isEnabled')['to'](this,'isBusy',_0x5441cf=>!_0x5441cf),_0x4d6e91['on']('execute',()=>{this['fire']('showPrevious');}),_0x533f99['bind']('isEnabled')['to'](this,'isBusy',_0x269e40=>!_0x269e40),_0x533f99['on']('execute',()=>{this['fire']('showNext');}),this['_navigationPreviousButton']=_0x4d6e91,this['_navigationCounter']=_0x2af3df,this['_navigationNextButton']=_0x533f99,this['_navigationTryAgainButton']=_0x386e36;}['updateMiniToolbarButtons'](_0x51247f,_0x652d72){this['_navigationPreviousButton']||this['_setupMiniToolbarButtons']();const _0x581439=_0x51247f>0x1;if(this['addMiniToolbarItem'](this['_navigationTryAgainButton']),_0x581439){this['addMiniToolbarItem'](this['_navigationPreviousButton']),this['addMiniToolbarItem'](this['_navigationCounter']),this['addMiniToolbarItem'](this['_navigationNextButton']);const _0x8e7ff5=_0x51247f-_0x652d72;this['_navigationCounter']['setInteractionCount'](_0x8e7ff5+'/'+_0x51247f),this['_navigationPreviousButton']['isEnabled']=_0x652d72<_0x51247f-0x1,this['_navigationNextButton']['isEnabled']=_0x652d72>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'](_0x2fd16e){this['_isLoading']=_0x2fd16e;}['resetShowChangesButton'](){this['_miniToolbarView']['isShowChangesOn']=!0x1;}['_initializeScrollManager'](){const _0x453cd5=this['_getScrollableElement']();_0x453cd5&&!this['_scrollManager']&&(this['_scrollManager']=new ScrollManager(_0x453cd5));}['_getScrollableElement'](){return this['_streamableContentView']['element'];}}class AIActionsBalloonNavigationCounterView extends View{constructor(_0x392d58){super(_0x392d58);const _0x30f3ab=this['bindTemplate'];this['set']('interactionCount','1/1'),this['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-interaction-counter']},'children':[{'text':_0x30f3ab['to']('interactionCount')}]});}['setInteractionCount'](_0xccebf5){this['set']('interactionCount',_0xccebf5);}}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(_0x16299c){super(_0x16299c),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'](_0x23f553,_0x37280e,_0x5bb7c3){if(this['_stopInteraction'](),this['editor']['plugins']['has']('TableSelection')){if(this['editor']['plugins']['get']('TableSelection')['getSelectedTableCells']()){const {modelFragment:_0xb4e3e7,anchorData:_0x3225f7}=this['_getExecuteDataInTable']();return this['_executeAction'](_0x23f553,_0xb4e3e7,_0x3225f7,_0x37280e,_0x5bb7c3);}}const {modelFragment:_0x1f79e0,anchorData:_0x5df194}=this['_getExecuteDataRegular']();return this['_executeAction'](_0x23f553,_0x1f79e0,_0x5df194,_0x37280e,_0x5bb7c3);}async['destroy'](){return this['_stopInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['_createActionsBalloonView'](){const _0x11522f=this['editor']['plugins']['has']('TrackChanges');let _0x26645a=this['editor']['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];_0x11522f||(_0x26645a=_0x26645a['filter'](_0x5dfb9d=>'insertSuggestion'!=_0x5dfb9d));const _0x2498a1=this['editor']['commands']['get']('trackChanges'),_0x29b03f=new AIActionsBalloonView(this['editor']['locale'],{'showApplyButton':!0x0,'showSuggestButton':_0x11522f,'miniToolbarConfig':{'showChanges':'icon'},'availableActions':_0x26645a});return _0x29b03f['bind']('isBusy')['to'](this),_0x2498a1&&_0x29b03f['bind']('isTrackChangesOn')['to'](_0x2498a1,'value'),_0x29b03f['on']('tryAgain',()=>{this['_refreshInteraction']();}),_0x29b03f['on']('showPrevious',()=>{this['_navigateToPrevious']();}),_0x29b03f['on']('showNext',()=>{this['_navigateToNext']();}),_0x29b03f;}['_getExecuteDataRegular'](){const _0x422993=this['editor']['model']['document']['selection'];if(_0x422993['isCollapsed']){const _0x571e4a=first(_0x422993['getSelectedBlocks']())||this['editor']['model']['schema']['getLimitElement'](_0x422993);this['editor']['model']['change'](_0x1ce148=>{_0x1ce148['setSelection'](_0x571e4a,'in');});}const _0x46d9a7=_0x422993['getFirstRange'](),_0x3f4e5a=this['_wrapWithCommonAncestors'](this['editor']['model']['getSelectedContent'](_0x422993),_0x46d9a7['start'],_0x46d9a7['end']);this['_copyMarkersToFragment'](_0x3f4e5a,_0x422993,{'isTableSelection':!0x1});const _0x31cc6e=_0x422993['getFirstRange']()['start'],_0x3d340a=new Map();let _0x1ad725=_0x3f4e5a;for(let _0x15c210=0x0;_0x15c210<_0x31cc6e['path']['length'];_0x15c210++)_0x3d340a['set'](_0x1ad725,_0x31cc6e['path'][_0x15c210]),_0x1ad725=_0x1ad725['getChild'](0x0);return{'modelFragment':_0x3f4e5a,'anchorData':_0x3d340a};}['_getExecuteDataInTable'](){const _0xe0b974=this['editor']['model']['document']['selection'],_0x3032db=this['editor']['plugins']['get']('TableSelection')['getSelectionAsFragment'](),_0x3c1d1f=_0xe0b974['getFirstRange']()['start']['parent']['parent'],_0x40fe30=this['editor']['model']['createRange'](this['editor']['model']['createPositionBefore'](_0x3c1d1f),this['editor']['model']['createPositionAfter'](_0x3c1d1f)),_0x1b29e3=this['_wrapWithCommonAncestors'](_0x3032db,_0x40fe30['start'],_0x40fe30['end']);this['_copyMarkersToFragment'](_0x1b29e3,_0xe0b974,{'isTableSelection':!0x0});const _0x4f4a51=_0xe0b974['getFirstRange']()['start'],_0x247dca=new Map();let _0x1f16f7=_0x1b29e3;for(let _0x1fce0f=0x0;_0x1fce0f<_0x4f4a51['path']['length'];_0x1fce0f++)if(_0x247dca['set'](_0x1f16f7,_0x4f4a51['path'][_0x1fce0f]),_0x1fce0f<_0x4f4a51['path']['length']-0x1)_0x1f16f7=_0x1f16f7['getChild'](0x0);else{let _0x2262ec=_0x1f16f7['nextSibling'];for(;_0x2262ec;)_0x247dca['set'](_0x2262ec,_0x4f4a51['path'][_0x1fce0f]),_0x2262ec=_0x2262ec['nextSibling'];}return{'modelFragment':_0x1b29e3,'anchorData':_0x247dca};}async['_executeAction'](_0x56506c,_0x2478d2,_0x49e4b7,_0x2badd4,_0x40335e){const _0x4ff43f=this['editor']['plugins']['get'](AIEditing),_0x3e7ae2=this['editor']['plugins']['get'](AIBalloon),_0x3c7a72=this['editor']['model']['document']['selection'],_0x5ace36=await _0x4ff43f['modelToDataWithIds'](_0x2478d2),_0x2d709c=this['editor']['model']['document']['version'],_0x353972=[..._0x3c7a72['getRanges']()];return this['_actionsBalloonView']||(this['_actionsBalloonView']=this['_createActionsBalloonView']()),this['_clearInteractionHistory'](),this['_clearErrorState'](),this['_actionsBalloonView']['clearContent'](),_0x3e7ae2['open']({'index':0x3e8*Math['random']()%0x3e8,'title':_0x2badd4,'icon':_0x40335e||IconAIQuickActions,'mainView':this['_actionsBalloonView'],'class':'ck-ai-actions-balloon','ranges':_0x353972,'id':'aiActionsBalloon'}),this['_setLoadingState'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x3e7ae2),this['_interactionParams']={'action':_0x56506c,'content':_0x5ace36,'version':_0x2d709c,'aiBalloon':_0x3e7ae2,'modelFragment':_0x2478d2,'anchorData':_0x49e4b7},this['_setupApplyListeners'](),this['listenTo'](_0x3e7ae2,'selectionRemoved',()=>{this['_stopInteraction'](),this['_actionsBalloonView']['disableMiniToolbarButtons']();}),this['listenTo'](_0x3e7ae2,'dialogClosed',(_0x1bb5df,{id:_0xc1b8ae})=>{if('aiActionsBalloon'===_0xc1b8ae){if(this['_interaction']&&this['_interaction']['replies']['length']>0x0){const _0x5efe2f=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1],_0x5dc882=_0x5efe2f['changeGroups'][0x0];_0x5dc882&&'pending'===_0x5dc882['state']&&_0x5efe2f['setChangeGroupState'](0x0,'rejected');}this['_stopInteraction'](),this['_clearInteractionHistory'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x3e7ae2);}}),this['_createInteraction'](_0x5ace36,_0x2d709c,_0x3e7ae2,_0x56506c);}['_setupApplyListeners'](){if(!this['_interactionParams'])return;const {modelFragment:_0x1ea6b9,anchorData:_0x355102}=this['_interactionParams'];this['listenTo'](this['_actionsBalloonView'],'applySuggestion',()=>{this['_applyChanges'](_0x1ea6b9,_0x355102,!0x1);}),this['listenTo'](this['_actionsBalloonView'],'insertSuggestion',()=>{this['_applyChanges'](_0x1ea6b9,_0x355102,!0x0);});}['_wrapWithCommonAncestors'](_0x4d2a0d,_0x418513,_0x3a7266){const _0x4fa4c2=this['editor']['model']['createRange'](_0x418513,_0x3a7266)['getCommonAncestor'](),_0x50bd34=_0x4fa4c2['is']('documentFragment')?[]:_0x4fa4c2['getAncestors']({'includeSelf':!0x0})['slice'](0x1);if(_0x50bd34['length']){const _0xfe5fcc=_0x50bd34['map'](_0x3b2ab7=>_0x3b2ab7['_clone'](!0x1));for(let _0x22ad73=0x1;_0x22ad73<_0xfe5fcc['length'];_0x22ad73++)_0xfe5fcc[_0x22ad73-0x1]['_appendChild'](_0xfe5fcc[_0x22ad73]);return _0xfe5fcc[_0xfe5fcc['length']-0x1]['_appendChild'](_0x4d2a0d),new ModelDocumentFragment(_0xfe5fcc[0x0]);}return _0x4d2a0d;}['_copyMarkersToFragment'](_0x333957,_0x4c51d7,_0x16d239={'isTableSelection':!0x1}){const _0x435009=this['editor']['model'],_0x19eefa=Array['from'](_0x4c51d7['getRanges']()),_0x355bd3=_0x4c51d7['getFirstRange']()['start'];for(const _0x1dc987 of _0x435009['markers']){if(_0x1dc987['name']['startsWith'](AI_VISUAL_SELECTION_MARKER_NAME)||!_0x1dc987['affectsData'])continue;const _0x21863e=_0x1dc987['getRange']();if(!_0x19eefa['some'](_0x433aaa=>_0x433aaa['containsRange'](_0x21863e,!0x0)))continue;const _0x92a2e4=this['_regularCalculateMarkerPath'](_0x21863e['start'],_0x355bd3,_0x16d239['isTableSelection']),_0x2857d7=this['_regularCalculateMarkerPath'](_0x21863e['end'],_0x355bd3,_0x16d239['isTableSelection']),_0x2f9caa=_0x435009['createPositionFromPath'](_0x333957,_0x92a2e4),_0x5b96f2=_0x435009['createPositionFromPath'](_0x333957,_0x2857d7);if(!_0x2f9caa['isEqual'](_0x5b96f2)){const _0x2920be=_0x435009['createRange'](_0x2f9caa,_0x5b96f2);_0x333957['markers']['set'](_0x1dc987['name'],_0x2920be);}}}['_regularCalculateMarkerPath'](_0x4dbfa6,_0x54b2f7,_0x19808d=!0x1){const _0x3e6cc0=[..._0x4dbfa6['path']['slice']()];for(let _0x55ebba=0x0;_0x55ebba<Math['max'](_0x54b2f7['path']['length'],_0x4dbfa6['path']['length']);_0x55ebba++){const _0x296d25=_0x54b2f7['path'][_0x55ebba]||0x0,_0x2fd84d=(_0x4dbfa6['path'][_0x55ebba]||0x0)-_0x296d25;if(_0x3e6cc0[_0x55ebba]=_0x2fd84d,0x0!==_0x2fd84d&&!_0x19808d)break;}return _0x3e6cc0;}async['_createInteraction'](_0x2ef99e,_0x43b3e4,_0x130dd4,_0x501ce8){const _0x594f24=this['editor'];this['_interactionParams']||(this['_interactionParams']={'action':_0x501ce8,'content':_0x2ef99e,'version':_0x43b3e4,'aiBalloon':_0x130dd4,'modelFragment':this['editor']['model']['getSelectedContent'](this['editor']['model']['document']['selection']),'anchorData':new Map()});const _0x23479e=new AIActionsInteraction({'connector':this['_aiConnector'],'editor':_0x594f24,'content':_0x2ef99e,'version':_0x43b3e4,..._0x501ce8});this['_interactions']['push'](_0x23479e);const _0x272ae4=(_0x356d5d,_0x2c4c71=!0x1,_0x7eb9c8='streaming')=>this['_promiseQueue']['enqueue'](async _0x12ae6a=>{try{const _0x1ab3fe=getSuggestionPartsFromReply({'editor':_0x594f24,'changeGroups':_0x356d5d['changeGroups'],'documentContextContent':_0x356d5d['documentContextContent'],'showDiff':_0x2c4c71,'trimUnchanged':!0x1});_0x1ab3fe['length']&&await this['_actionsBalloonView']['updateContent']({'part':_0x1ab3fe[0x0],'renderingStrategy':_0x7eb9c8,'abortSignal':_0x12ae6a});}catch(_0x38d8b0){if(this['_isAbortError'](_0x38d8b0))return;throw _0x38d8b0;}});this['_interaction']['on']('replyCreated',(_0x1f7d19,_0x5691fa)=>{this['_actionsBalloonView']['hideLoader'](),this['_actionsBalloonView']['startAutoScroll'](),_0x272ae4(_0x5691fa)['catch'](_0xb3d8b9=>{this['_isAbortError'](_0xb3d8b9)||(console['error']('Error\x20updating\x20content\x20in\x20replyCreated:',_0xb3d8b9),this['_setErrorState'](_0x23479e));});}),this['_interaction']['on']('replyContentUpdated',(_0x57ee0f,_0x206b11)=>{_0x272ae4(_0x206b11)['catch'](_0x34bacb=>{this['_isAbortError'](_0x34bacb)||(console['error']('Error\x20updating\x20content\x20in\x20replyContentUpdated:',_0x34bacb),this['_setErrorState'](_0x23479e));});}),this['_interaction']['on']('interactionFinished',async()=>{try{await this['_clearLoadingState'](),this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),await this['_promiseQueue']['queueEmptyPromise'];}catch(_0x591e25){this['_isAbortError'](_0x591e25)||(console['error']('Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:',_0x591e25),this['_setErrorState'](_0x23479e));}finally{this['_actionsBalloonView']['stopAutoScroll']();}}),this['listenTo'](this['_actionsBalloonView'],'toggleSuggestionDisplayMode',async(_0x5d60b2,{showDiff:_0x5d179d})=>{try{this['_balloonShowDiff']=_0x5d179d;const _0x55e1fa=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1];_0x55e1fa&&await _0x272ae4(_0x55e1fa,_0x5d179d,'static');}catch(_0x5f3a62){this['_isAbortError'](_0x5f3a62)||(console['error']('Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:',_0x5f3a62),this['_setErrorState'](_0x23479e));}}),this['_interaction']['on']('replyChangeGroupStateUpdated',(_0xa4f411,{reply:_0x5e38ac})=>{const _0x5d927d={'positiveCount':_0x5e38ac['changeGroups']['filter'](_0x3056db=>'accepted'===_0x3056db['state'])['length'],'totalCount':_0x5e38ac['changeGroups']['length']},_0x445753=this['_interaction']['actionCallId'],_0x242e9e=this['_interaction']['actionName'];_0x242e9e?this['_aiConnector']['upsertAIActionRating'](_0x242e9e,_0x445753,_0x5d927d):this['_aiConnector']['upsertCustomAIActionRating'](_0x445753,_0x5d927d);}),this['_setLoadingState']();try{const _0x3595b9=await this['_interaction']['start']();return this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),_0x3595b9;}catch(_0x5111fc){if(this['_isAbortError'](_0x5111fc))return;this['_actionsBalloonView']['hideLoader'](),this['_setErrorState'](_0x23479e);}}['_applyChanges'](_0x1c39b7,_0x9be691,_0x2d1a9b){const _0x17f4d3=this['editor'];if(_0x2d1a9b&&!_0x17f4d3['plugins']['has']('TrackChanges'))throw new CKEditorError('ai-no-track-changes',null);const _0x2c1ab8=this['editor']['plugins']['get'](DocumentCompare),_0x2b455a=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x2b455a||!_0x2b455a['replies']['length'])return;const _0x443a8b=_0x2b455a['replies'][_0x2b455a['replies']['length']-0x1],_0x1324f5=_0x443a8b['changeGroups'];_0x443a8b['setChangeGroupState'](0x0,'accepted');let _0x1fd8de=getOperationsFromReply({'editor':_0x17f4d3,'reply':_0x443a8b,'interaction':_0x2b455a,'groups':_0x1324f5,'transform':!0x1,'documentCompare':_0x2c1ab8,'documentCompareOptions':{'anchor':_0x17f4d3['model']['createPositionAt'](_0x1c39b7,0x0),'markDeletions':_0x2d1a9b}});_0x1fd8de=this['_filterOperationsOutsideRange'](_0x1fd8de,_0x9be691);for(const _0x2a61a3 of _0x1fd8de)this['_anchorOperation'](_0x9be691,_0x2a61a3,_0x17f4d3['model']['document']['getRoot']());const _0x3c56f5=_0x2b455a['getDocumentContext']()['version'],_0x58c90c=_0x17f4d3['model']['document']['history']['getOperations'](_0x3c56f5),_0x40ce0d={'document':_0x17f4d3['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x187a2b=transformOperationSets(_0x1fd8de,_0x58c90c,_0x40ce0d)['operationsA'];_0x17f4d3['model']['change'](_0x148b49=>{if(_0x148b49['setSelection'](_0x17f4d3['model']['document']['selection']['focus']),_0x2d1a9b)_0x17f4d3['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x187a2b);else{for(const _0x5642ad of _0x187a2b)_0x5642ad['baseVersion']=_0x17f4d3['model']['document']['version'],fixMarkerOperationOldRange(_0x17f4d3,_0x5642ad),_0x148b49['batch']['addOperation'](_0x5642ad),_0x17f4d3['model']['applyOperation'](_0x5642ad);}}),this['editor']['plugins']['get']('AIBalloon')['close']();}['_filterOperationsOutsideRange'](_0x1139b3,_0x198f4a){return _0x1139b3['filter'](_0x1044d6=>{if('rename'==_0x1044d6['type']){const _0x1cb3ff=_0x1044d6['position']['nodeAfter'];return!_0x198f4a['has'](_0x1cb3ff);}if(_0x1044d6['type']['indexOf']('Attribute')>-0x1){const _0x282bcc=_0x1044d6['range']['start']['nodeAfter'];return!_0x198f4a['has'](_0x282bcc);}return!0x0;});}['_anchorOperation'](_0x31dbae,_0x16e5ca,_0x5084e2){const _0x65a795=_0x16e5ca['clone']();for(const _0x19ac40 in _0x16e5ca){const _0x3c9fd0=_0x16e5ca[_0x19ac40];_0x3c9fd0 instanceof ModelRange?_0x16e5ca[_0x19ac40]=new ModelRange(_0x1aba3a(_0x3c9fd0['start']),_0x1aba3a(_0x3c9fd0['end'])):_0x3c9fd0 instanceof ModelPosition&&(_0x16e5ca[_0x19ac40]=_0x1aba3a(_0x3c9fd0));}if(['insert','move','remove','reinsert','split','merge']['includes'](_0x65a795['type'])){if(_0x65a795['isDocumentOperation']=!0x1,_0x65a795['baseVersion']=null,'remove'==_0x65a795['type']){const _0x3308d5=_0x65a795['sourcePosition'],_0x80150b=_0x65a795['howMany'];new _DetachOperation(_0x3308d5,_0x80150b)['_execute']();}else _0x65a795['_execute']();}function _0x1aba3a(_0x33d720){if('$graveyard'==_0x33d720['root']['rootName'])return _0x33d720;const _0x22779d=[];let _0x59868b=_0x33d720['root'];for(let _0x403877=0x0;_0x403877<_0x33d720['path']['length'];_0x403877++){const _0x1724b6=_0x31dbae['get'](_0x59868b)||0x0;_0x22779d[_0x403877]=_0x33d720['path'][_0x403877]+_0x1724b6,_0x59868b=_0x59868b['getChildAtOffset'](_0x33d720['path'][_0x403877]);}return new ModelPosition(_0x5084e2,_0x22779d,_0x33d720['stickiness']);}}['_refreshInteraction'](){if(!this['_interactionParams'])return;this['_interactions']['length']>0x0&&this['_stopInteraction'](),this['_currentInteractionIndex']=0x0,this['_balloonShowDiff']=!0x1;const {action:_0x5bd1ae,content:_0x5c09bc,version:_0x782bb2,aiBalloon:_0x70982a}=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'](_0x5c09bc,_0x782bb2,_0x70982a,_0x5bd1ae)['catch'](_0x1e4e7a=>{this['_isAbortError'](_0x1e4e7a)||console['error']('Error\x20refreshing\x20interaction:',_0x1e4e7a);});}['_isAbortError'](_0x58219a){return!!_0x58219a['message']&&_0x58219a['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 _0x32d8a6=this['_interactions']['length'];this['_currentInteractionIndex']<_0x32d8a6-0x1&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']+0x1);}['_navigateToNext'](){this['_currentInteractionIndex']>0x0&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']-0x1);}async['_displayInteractionAtIndex'](_0x9c7dcd){if(!this['_interactionParams'])return;this['_currentInteractionIndex']=_0x9c7dcd;const _0x43f06e=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x43f06e)return;if(_0x43f06e['hasError'])return this['_setErrorState'](_0x43f06e),void this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);if(!_0x43f06e['replies']['length'])return;this['_actionsBalloonView']['hideError'](),this['_interactionParams']&&this['_clearErrorState']();const _0x475702=_0x43f06e['replies'][_0x43f06e['replies']['length']-0x1];if(_0x475702){const _0x4fe5dd=this['editor'];try{const _0x524555=getSuggestionPartsFromReply({'editor':_0x4fe5dd,'changeGroups':_0x475702['changeGroups'],'documentContextContent':_0x475702['documentContextContent'],'showDiff':this['_balloonShowDiff'],'trimUnchanged':!0x1});await new Promise(_0x13f133=>setTimeout(_0x13f133,0x32)),await this['_actionsBalloonView']['updateContent']({'part':_0x524555[0x0],'renderingStrategy':'static','abortSignal':new AbortController()['signal']});}catch(_0x349575){this['_isAbortError'](_0x349575)||console['error']('Error\x20updating\x20content\x20during\x20navigation:',_0x349575);}}this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);}['_setLoadingState'](){this['_actionsBalloonView']['setIsLoading'](!0x0),this['isBusy']=!0x0;}async['_setErrorState'](_0x3c0512){const _0x984478=getTranslation$i(this['editor']['locale'],'AI_ACTIONS_GENERIC_ERROR');this['_actionsBalloonView']['showError'](_0x984478),_0x3c0512['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(_0x161cfb){super(_0x161cfb),_0x161cfb['config']['define']('ai.quickActions',{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}class AIReviewCoreReviewCheckListItemResultsView extends View{['resultResponseView'];['acceptButtonView'];['dismissButtonView'];['infoButtonView'];['outdatedButtonView'];constructor(_0x34c686,_0x264137){super(_0x34c686),this['id']=_0x264137,this['set']('status','pending'),this['set']('changeId',_0x264137),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',(_0xd47ad1,_0x395899)=>{_0x395899&&_0x395899['target']&&'A'===_0x395899['target']['tagName']&&_0x395899['preventDefault'](),this['fire']('activateChange',{'id':_0x264137,'source':this,'uiInteraction':'click'});}),this['on']('mouseover',()=>{this['fire']('activateChange',{'id':_0x264137,'source':this,'uiInteraction':'hover'});}),this['on']('mouseout',()=>{this['fire']('deactivateChange',{'origin':'panel','id':_0x264137,'source':this});});}['setItemAsActive'](){this['isActive']=!0x0;}['setItemAsInactive'](){this['isActive']=!0x1;}['_createResultResponseView'](){const _0x46bbd3=new View(this['locale']);return _0x46bbd3['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',_0x5677ca=>!_0x5677ca)]}}),_0x46bbd3;}['_createAcceptButtonView'](){const _0x5c274a=new ButtonView(this['locale']);return _0x5c274a['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_CHANGE'),'withText':!0x0}),_0x5c274a['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x4f7e63=>{this['fire']('acceptChange',{'id':this['changeId']}),_0x4f7e63['stopPropagation']();})},'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-result-accept-button',this['bindTemplate']['if']('status','ck-hidden',_0x28d24=>'pending'!==_0x28d24&&'accepted'!==_0x28d24),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-accept-button',_0x379a46=>'pending'===_0x379a46),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0xa93397=>'accepted'===_0xa93397)]}}),this['on']('change:status',(_0x20941d,_0x260715,_0x5a5a96)=>{_0x5c274a['isEnabled']='pending'===_0x5a5a96,'accepted'===_0x5a5a96&&(_0x5c274a['label']=getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED'),_0x5c274a['icon']=IconCheck);}),_0x5c274a;}['_createDismissButtonView'](){const _0x1aeed6=new ButtonView(this['locale']);return _0x1aeed6['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_DISMISS_CHANGE'),'withText':!0x0}),_0x1aeed6['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x1ab84c=>{this['fire']('dismissChange',{'id':this['changeId']}),_0x1ab84c['stopPropagation']();})},'attributes':{'class':['ck-ai-button-tertiary',this['bindTemplate']['if']('status','ck-hidden',_0x1d1aca=>'pending'!==_0x1d1aca&&'rejected'!==_0x1d1aca),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-dismiss-button',_0x3a969a=>'pending'===_0x3a969a),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0x45a11b=>'rejected'===_0x45a11b)]}}),this['on']('change:status',(_0x96cdc2,_0x5ee66d,_0x11e5fc)=>{_0x1aeed6['isEnabled']='pending'===_0x11e5fc,'rejected'===_0x11e5fc&&(_0x1aeed6['label']=getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_REJECTED'),_0x1aeed6['icon']=IconCancel);}),_0x1aeed6;}['_createInfoButtonView'](){const _0x2d60f3=new ButtonView(this['locale']);return _0x2d60f3['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'}),_0x2d60f3['bind']('isOn')['to'](this,'isInfoToggleOn',_0x5ba287=>_0x5ba287),_0x2d60f3['on']('execute',()=>{this['isInfoToggleOn']=!this['isInfoToggleOn'];}),_0x2d60f3;}['_createOutdatedButtonView'](){const _0x53ec11=new ButtonView(this['locale']);return _0x53ec11['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED'),'icon':IconOutdated,'withText':!0x0,'isEnabled':!0x1}),_0x53ec11['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-result-status-button',this['bindTemplate']['if']('status','ck-hidden',_0x93ff67=>'outdated'!==_0x93ff67)],'disabled':'disabled'}}),_0x53ec11;}}class AIReviewCoreBalloonSuggestionItemView extends BalloonPanelView{['resultItemView'];['_pinnedRectIndex']=void 0x0;['_pinnedTargetElement']=void 0x0;['_pinnedTargetChangeId']=void 0x0;constructor(_0x18ac37,_0x5d553d){super(_0x18ac37),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']()),_0x5d553d['add'](this);}['render'](){super['render'](),this['_setupClickOutsideHandler']();}['updateContent'](_0x5a84f4){this['resultItemView']['changeId']=_0x5a84f4['id'],this['resultItemView']['resultResponseView']['element']['innerHTML']=_0x5a84f4['contentDiffed'];}['showBalloon'](_0x5ce71e,_0x33c531,_0xcc155d,_0x26c3c2,_0x1eb2c3,_0x1c08a1){const _0x122314=_0x33c531();if(!_0x122314)return;this['updateContent'](_0x5ce71e),this['show']();const _0x8796ca=Array['from'](_0x122314['getClientRects']())['reverse'](),_0x105a32=this['_getPointedRectIndexFromEvent'](_0xcc155d,_0x8796ca),_0x2d3480=_0x8796ca[_0x105a32??0x0];'click'===_0x26c3c2?(this['isDiffActive']=!0x0,this['pin']({'target':()=>this['_getBestRectPositionOnClick'](_0x33c531(),_0x105a32,_0x5ce71e['id'],_0x1eb2c3,_0x1c08a1)||_0x2d3480})):'hover'===_0x26c3c2&&(this['isDiffActive']=!0x1,this['pin']({'target':()=>this['_getBestRectPositionOnHover'](_0x33c531(),_0x105a32,_0x5ce71e['id'])||_0x2d3480}));}['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 _0x9b88fb=[this['element']];return this['_pinnedTargetElement']&&_0x9b88fb['push'](this['_pinnedTargetElement']),_0x9b88fb;},'callback':()=>{this['hide'](),this['unpin'](),this['deactivateChange'](),this['_pinnedTargetElement']=void 0x0,this['_pinnedRectIndex']=void 0x0,this['_pinnedTargetChangeId']=void 0x0;}});}['_createContentView'](){const _0x30f959=new View();return this['resultItemView']=new AIReviewCoreReviewCheckListItemResultsView(this['locale'],''),this['resultItemView']['resultResponseView']['extendTemplate']({'attributes':{'class':['ck-content']}}),this['resultItemView']['delegate']('acceptChange','dismissChange')['to'](this),_0x30f959['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']]}]}),_0x30f959;}['_getBestRectPositionOnClick'](_0x126ace,_0x3bc979,_0x181072,_0x3fa068,_0x51356d){if(!_0x126ace)return null;const _0x2dd954=this['position']['replace']('arrow_',''),_0x1c4f2a=Array['from'](_0x126ace['getClientRects']());let _0x31a957,_0x1b9489=_0x1c4f2a['reverse']();return void 0x0!==_0x3bc979&&this['_isPinnedRectVisible'](_0x1b9489[_0x3bc979],_0x3fa068,_0x51356d)?(_0x31a957=_0x1b9489[_0x3bc979],this['_pinnedRectIndex']=_0x3bc979):this['_isPinnedRectVisible'](_0x1b9489[0x0],_0x3fa068,_0x51356d)&&void 0x0===_0x3bc979?_0x31a957=_0x1b9489[0x0]:(_0x1b9489='s'==_0x2dd954[0x0]?[..._0x1c4f2a]['reverse']():_0x1c4f2a,_0x1b9489['forEach'](_0x5156ea=>{this['_isPinnedRectVisible'](_0x5156ea,_0x3fa068,_0x51356d)&&(_0x31a957=_0x5156ea);})),this['_pinnedTargetChangeId']=_0x181072,this['_pinnedTargetElement']=_0x126ace,_0x31a957||_0x126ace['getBoundingClientRect']();}['_getBestRectPositionOnHover'](_0x1a24e3,_0x3d5bc8,_0xa3c3e8){if(!_0x1a24e3)return null;const _0x230d66=Array['from'](_0x1a24e3['getClientRects']())['reverse']();if(void 0x0===this['_pinnedRectIndex']&&void 0x0!==_0x3d5bc8&&this['_pinnedTargetChangeId']!==_0xa3c3e8)return this['_pinnedRectIndex']=_0x3d5bc8,this['_pinnedTargetElement']=_0x1a24e3,this['_pinnedTargetChangeId']=_0xa3c3e8,_0x230d66[_0x3d5bc8];if(void 0x0!==this['_pinnedRectIndex']&&this['_pinnedTargetChangeId']===_0xa3c3e8){if(_0x1a24e3!==this['_pinnedTargetElement'])return Array['from'](this['_pinnedTargetElement']['getClientRects']())['reverse']()[this['_pinnedRectIndex']];return _0x230d66[this['_pinnedRectIndex']];}return void 0x0!==_0x3d5bc8&&this['_pinnedTargetChangeId']!==_0xa3c3e8?(this['_pinnedRectIndex']=_0x3d5bc8,this['_pinnedTargetElement']=_0x1a24e3,this['_pinnedTargetChangeId']=_0xa3c3e8,_0x230d66[_0x3d5bc8]):_0x1a24e3['getBoundingClientRect']();}['_getPointedRectIndexFromEvent'](_0x370a33,_0x1bf440){if(_0x370a33)for(let _0x4678db=0x0;_0x4678db<_0x1bf440['length'];_0x4678db++){const _0x452337=_0x1bf440[_0x4678db];if(_0x370a33['clientX']>=_0x452337['left']-0x3&&_0x370a33['clientX']<=_0x452337['right']+0x3&&_0x370a33['clientY']>=_0x452337['top']-0x3&&_0x370a33['clientY']<=_0x452337['bottom']+0x3)return _0x4678db;}}['_isPinnedRectVisible'](_0x232126,_0x261644,_0x452f7c){const _0x381742=new Rect(_0x232126),_0x4d1044=_0x261644||document['documentElement'],_0x45b2a3=_0x381742['getIntersection'](getConstrainedViewportRect(_0x452f7c)),_0x667f26=new Rect(_0x4d1044)['getIntersection'](_0x381742);return!!(_0x45b2a3&&_0x667f26&&_0x381742['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(_0x28b4ae){super(_0x28b4ae),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 _0xd1dc4=this['context']['plugins']['get']('AITabs');this['registerTab'](_0xd1dc4);}['destroy'](){this['_bodyCollection']['detachFromDom'](),super['destroy']();}['setAvailableChecks'](_0x4cd5ae){if(!this['_mainView']['reviewCheckListView']['hasChecks']()){const _0x1e783a=!this['context']['config']['get']('ai.models.showModelSelector');this['_mainView']['reviewCheckListView']['setChecks'](_0x4cd5ae,_0x1e783a);}this['_mainView']['showReviewCheckListView']();}['showReviewCheckList'](){this['fire']('getReviewCheckList');}['showCheckRunResults'](_0x471144){_0x471144&&('error-general'!==_0x471144['status']?'error-chunk'!==_0x471144['status']?this['_mainView']['showReviewCheckResultsView']():this['showChunkErrorView']():this['showGeneralResultsErrorView']());}['showCheckRunResult'](_0x584385){this['_mainView']['addCheckRunResult'](_0x584385);}['showGeneralResultsErrorView'](){this['_mainView']['showGeneralResultsErrorView']();}['showGeneralReviewCoreErrorView'](_0x1d75c9){this['_mainView']['showGeneralReviewCoreErrorView'](_0x1d75c9??getTranslation$i(this['context']['locale'],'AI_REVIEW_INITIALIZATION_ERROR_MESSAGE'));}['showChunkErrorView'](){this['_mainView']['showChunkErrorView']();}['setCheckResultTitle'](_0x161e7a,_0x537d56){this['_mainView']['reviewCheckResultsView']['setTitle'](_0x161e7a,_0x537d56);}['setActiveStateInResults'](_0x965ea4){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x2cd24c=>{_0x2cd24c['id']===_0x965ea4&&_0x2cd24c['setItemAsActive']();});}['resetActiveStateInResults'](){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x2c0093=>_0x2c0093['setItemAsInactive']());}['updateChangeState'](_0x1d6699,_0x190da8){'accepted'===_0x190da8||'rejected'===_0x190da8||'outdated'===_0x190da8?this['_mainView']['reviewCheckResultsView']['hideResult'](_0x1d6699,_0x190da8):this['_mainView']['reviewCheckResultsView']['showResult'](_0x1d6699,_0x190da8);}['showReviewCompletedView'](){this['_mainView']['showReviewCompletedView']();}['showActionsWhenResultIsReady'](){this['_mainView']['showActionsWhenResultIsReady']();}['showNoChangesView'](){this['_mainView']['showNoChangesView']();}['hideActionsWhenResultIsReady'](){this['_mainView']['hideActionsWhenResultIsReady']();}['showChangeBalloon'](_0x26224d,_0x42fafb,_0x9c9bfb,_0x2fc7eb,_0x45bf17,_0x56d539){this['_balloonSuggestionView']['showBalloon'](_0x26224d,_0x42fafb,_0x9c9bfb,_0x2fc7eb,_0x45bf17,_0x56d539);}['hideChangeBalloon'](){this['_balloonSuggestionView']['hideBalloon']();}['hideDiffInBalloon'](){this['_balloonSuggestionView']['hideDiffInBalloon']();}['showDiffInBalloon'](){this['_balloonSuggestionView']['showDiffInBalloon']();}['getChangeElement'](_0x1cdb39){const _0x451bf1=this['_mainView']['reviewCheckResultsView']['getResults']()['find'](_0x50c829=>_0x50c829['id']===_0x1cdb39);return _0x451bf1?_0x451bf1['element']:null;}['deactivateChange'](){this['_balloonSuggestionView']['deactivateChange']();}}class AIReviewCoreGeneralErrorView extends View{constructor(_0x2b9adb){super(_0x2b9adb),this['set']('isVisible',!0x1),this['set']('errorMessage','');const _0x24e089=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__general-error-container',_0x24e089['if']('isVisible','ck-hidden',_0x49fe2b=>!_0x49fe2b)]},'children':[{'tag':'p','attributes':{'class':'ck\x20ck-ai-notification\x20ck-ai-notification_error'},'children':[{'text':_0x24e089['to']('errorMessage')}]}]});}}class AIReviewCoreView extends View{['reviewCoreHeader'];['generalErrorView'];['reviewCheckListView'];['reviewCheckResultsView'];['reviewCompletedView'];constructor(_0x43e097,_0x1ef281){super(_0x43e097),this['reviewCoreHeader']=_0x1ef281['header'],this['generalErrorView']=new AIReviewCoreGeneralErrorView(_0x43e097),this['reviewCheckListView']=_0x1ef281['list'],this['reviewCheckListView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCheckResultsView']=_0x1ef281['results'],this['reviewCheckResultsView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCompletedView']=_0x1ef281['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'](_0x31a072){this['reviewCheckResultsView']['addResult'](_0x31a072),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'](_0x4f4c7b){this['generalErrorView']['set']('isVisible',!0x0),this['generalErrorView']['errorMessage']=_0x4f4c7b;}['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(_0x2283b4,_0x56158f){super(_0x56158f),this['set']({'label':_0x2283b4,'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(_0x3d24cc,_0x6ed9d2){super(_0x3d24cc),this['_contents']=_0x6ed9d2,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(_0x3d24cc),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 _0x1109f6=this['_createCombinedSkeletonLoader'](),_0x40d674=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x40d674['if']('isLoading','ck-ai_review__check-run_loading',_0x5d5b83=>_0x5d5b83),_0x40d674['if']('isResultReady','ck-ai_review__check-run_ready',_0x4098f0=>_0x4098f0),_0x40d674['if']('isVisible','ck-hidden',_0x54089f=>!_0x54089f)]},'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',_0x2614f2=>_0x2614f2)]},'children':this['_resultViews']},_0x1109f6]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x141d1b){const _0x420388=new AIReviewCoreReviewCheckListItemResultsView(this['locale'],_0x141d1b['id']);_0x420388['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x420388),_0x420388['resultResponseView']['element']['innerHTML']=_0x141d1b['contentDiffed'];}['hideResult'](_0x4a2300,_0x3bc115){if('pending'===_0x3bc115)return;const _0xc26678=this['_resultViews']['find'](_0xdec2e2=>_0xdec2e2['id']===_0x4a2300);_0xc26678&&(_0xc26678['status']=_0x3bc115,_0xc26678['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0x50bb52,_0x38c0ca){if('pending'!==_0x38c0ca)return;const _0x2c03f2=this['_resultViews']['find'](_0x3bb58f=>_0x3bb58f['id']===_0x50bb52);_0x2c03f2&&(_0x2c03f2['status']=_0x38c0ca,_0x2c03f2['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x29b8de,_0x5b3481){this['headerTitle']=_0x29b8de,this['headerSubtitle']=_0x5b3481||'';}['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 _0x3029bd=new View(this['locale']),_0x3f8c19=[];for(let _0x5512de=0x0;_0x5512de<0x10;_0x5512de++){const _0x2cc50d=this['_createSkeletonLoader']();_0x2cc50d['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x3f8c19['push'](_0x2cc50d);}return _0x3029bd['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x31815=>!_0x31815)]},'children':_0x3f8c19}),_0x3029bd;}['_createErrorView'](){const _0x4de902=new View(this['locale']),_0x5b7599=new ButtonView(this['locale']),t=this['locale']['t'];return _0x4de902['delegate']('retryReview')['to'](this),_0x5b7599['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai_review__check-run-error-retry-button'}),_0x5b7599['on']('execute',()=>{this['fire']('retryReview');}),_0x4de902['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0xf66fb4=>!_0xf66fb4),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x2373f0=>'chunk'===_0x2373f0)]},'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',_0x32b30e=>'chunk'===_0x32b30e)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x476498=>'general'!==_0x476498)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x1ecc21=>'chunk'!==_0x1ecc21)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x5b7599]}),_0x4de902;}['_createCancelButtonView'](){const _0x4df700=new ButtonView(this['locale']);return _0x4df700['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}),_0x4df700['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x293f53=>_0x293f53),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1b8a24=>_0x1b8a24)]}}),_0x4df700['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x4df700;}['_createToggleDiffButtonView'](){const _0x498f5e=new ButtonView(this['locale']);_0x498f5e['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x498f5e['bind']('isEnabled')['to'](this,'isError',_0x463d3a=>!_0x463d3a),_0x498f5e['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x51473d=>!_0x51473d),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x21d901=>_0x21d901)]}});const _0xc633b6=getTranslation$i(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x45477c=getTranslation$i(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x498f5e['bind']('isOn')['to'](this,'isToggleDiffOn',_0x9ee34a=>_0x9ee34a),_0x498f5e['bind']('icon')['to'](this,'isToggleDiffOn',_0xa2b0b1=>_0xa2b0b1?IconEye:IconEyeCrossedOut),_0x498f5e['bind']('label')['to'](this,'isToggleDiffOn',_0x46ea13=>_0x46ea13?_0xc633b6:_0x45477c),_0x498f5e['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x498f5e;}['_createAcceptAllButtonView'](){const _0x1bbf49=new ButtonView(this['locale']);return _0x1bbf49['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x1bbf49['bind']('isEnabled')['to'](this,'isError',_0xcc361=>!_0xcc361),_0x1bbf49['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x5d66bb=>!_0x5d66bb),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x6b6633=>_0x6b6633)]}}),_0x1bbf49['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x1bbf49;}['_createExitReviewButtonView'](){const _0xd238b0=new ButtonView(this['locale']);return _0xd238b0['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0xd238b0['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary','ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x94c774=>!_0x94c774),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x30d6f2=>_0x30d6f2)]}}),_0xd238b0['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0xd238b0;}['_createResultHeaderView'](){const _0x35b516=new View(this['locale']),_0x5bf53a=this['_createTitleView']();return _0x35b516['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x534d6d=>_0x534d6d)]},'children':[_0x5bf53a,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x35b516;}['_createTitleView'](){const _0x2ff8c0=new View(this['locale']),_0x230158=new AISpinnerView();return _0x230158['bind']('isVisible')['to'](this,'isResultReady',_0x28fac1=>!_0x28fac1),_0x2ff8c0['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0x230158,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1f5279=>_0x1f5279)]},'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',_0x3928a1=>!_0x3928a1)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x2ff8c0;}['_createFinishReviewButtonView'](){const _0x473eba=new AIReviewCoreFinishReviewButtonView(getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x473eba['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x157d76=>!_0x157d76)]}}),_0x473eba['delegate']('finishReview')['to'](this),_0x473eba;}}class AIReviewCoreReviewCompletedView extends ListItemView{['_resultsHeader'];['_finishReviewButtonView'];constructor(_0x1c418b,_0x121bd0){super(_0x1c418b),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](_0x121bd0['buttonText']),this['_resultsHeader']=this['_createResultHeaderView'](_0x121bd0['headerText']);const _0x5a923e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__review-completed',_0x5a923e['if']('isVisible','ck-hidden',_0x1a92d4=>!_0x1a92d4)]},'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':_0x121bd0['emptyResultsText']}]}]}]});}['_createFinishReviewButtonView'](_0x4dbdfb){const _0x1bd714=new AIReviewCoreFinishReviewButtonView(_0x4dbdfb,this['locale']);return _0x1bd714['delegate']('finishReview')['to'](this),_0x1bd714;}['_createResultHeaderView'](_0x4ee22e){const _0x4c6e05=new View(this['locale']);return _0x4c6e05['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':_0x4ee22e}]},{'tag':'div','attributes':{'class':['ck-ai_review__review-completed-header-buttons']},'children':[this['_finishReviewButtonView']]}]}),_0x4c6e05;}}class AIReviewCoreFormDropdownView extends View{['_dropdownView'];['_defaultValue'];['_defaultLabel'];constructor(_0x1b8055,_0x2d2de6){super(_0x1b8055),this['_defaultValue']=_0x2d2de6['default']||(_0x2d2de6['data']['length']>0x0?_0x2d2de6['data'][0x0]['id']:''),this['_defaultLabel']=_0x2d2de6['data']['find'](_0x4f9c58=>_0x4f9c58['id']===this['_defaultValue'])?.['label']||'',this['set']('formValue',''),this['_dropdownView']=createDropdown(this['locale']);const _0x422217=this['_prepareListOptions'](_0x2d2de6['data']);addListToDropdown(this['_dropdownView'],_0x422217,{'role':'menu','ariaLabel':_0x2d2de6['label']}),this['_dropdownView']['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0}),this['_dropdownView']['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x1b5399=>{_0x1b5399['stopPropagation']();})}}),this['listenTo'](this['_dropdownView'],'execute',_0x53b4af=>{this['formValue']=_0x53b4af['source']['model']['id'],this['_dropdownView']['buttonView']['label']=_0x53b4af['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'](_0x20b998=[]){const _0x2cdabf=new Collection();this['resetToDefault']();for(const _0x18a5c0 of _0x20b998){const _0x446257=new UIModel({'label':_0x18a5c0['label'],'withText':!0x0,'role':'menuitemradio','id':_0x18a5c0['id'],'model':_0x18a5c0});_0x446257['bind']('isOn')['to'](this,'formValue',_0x50f7a9=>_0x50f7a9===_0x446257['id']);const _0xd950f5={'type':'button','model':_0x446257};_0x2cdabf['add'](_0xd950f5);}return _0x2cdabf;}}class AIReviewCoreFormManagerView extends ListItemView{['_formItem']=null;constructor(_0x1731bf,_0x533632,_0x417288){super(_0x1731bf),this['argsKey']=_0x533632?.['argsKey'];if('dropdown'===_0x533632['formType'])this['_formItem']=new AIReviewCoreFormDropdownView(this['locale'],_0x533632);this['set']('value',''),this['bind']('value')['to'](this['_formItem'],'formValue');const _0x1f4ce8=new FormRowView(this['locale'],{'children':[this['_formItem']],'class':[_0x417288?'ck-form__row_with-submit':'']});_0x417288&&_0x1f4ce8['children']['add'](_0x417288),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__form-item','ck-reset_all']},'children':[_0x1f4ce8]});}['resetToDefault'](){this['_formItem']['resetToDefault']();}}class AIReviewCorePromptInputView extends TextareaView{['keystrokes'];static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;constructor(_0x2c95d2){super(_0x2c95d2),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(_0x58f690,_0x5445ec,_0x3868f4=!0x1){super(_0x58f690),this['_check']=_0x5445ec,this['set']('prompt',''),this['set']('modelId',''),this['set']('modelDisplayMode','selector'),this['set']('activeModelName',null),this['_defaultValue']=_0x5445ec['defaultModel']?_0x5445ec['defaultModel']['id']:'',this['_defaultLabel']=_0x5445ec['defaultModel']?_0x5445ec['defaultModel']['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new LabeledFieldView(this['locale'],()=>new AIReviewCorePromptInputView(_0x58f690)),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'](_0x3868f4),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',(_0x4c7b6c,_0x5d4e87)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x5d4e87()):_0x5d4e87();}),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'](_0x3b5001=>{this['_focusables']['add'](_0x3b5001),this['focusTracker']['add'](_0x3b5001['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 _0x54e96d of this['_getFormValidators']()){const _0x36789c=_0x54e96d();if(_0x36789c)return this['promptInputView']['errorText']=_0x36789c,!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 _0x213189=new ButtonView(this['locale']),t=this['locale']['t'];return _0x213189['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x213189['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x213189;}['_createCancelButtonView'](){const _0x4c9638=new ButtonView(this['locale']),t=this['locale']['t'];return _0x4c9638['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary'}),_0x4c9638['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x2bc827=>{_0x2bc827['stopPropagation']();})}}),_0x4c9638['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x4c9638;}['_setModelList'](_0x598d5f){this['_modelSelectionDropdownItems']['clear']();const _0x3d6a2b=this['_check']['models'];if(_0x598d5f)this['set']('modelDisplayMode','hidden');else{const _0x557fbf=0x1===_0x3d6a2b['length'];this['set']('modelDisplayMode',_0x557fbf?'name':'selector');}if(this['resetToDefault'](),_0x3d6a2b?.['length']){0x1===_0x3d6a2b['length']&&this['set']('activeModelName',_0x3d6a2b[0x0]['name']||_0x3d6a2b[0x0]['id']);for(const _0x204bd3 of _0x3d6a2b){const _0x2c96f8=new UIModel({'label':_0x204bd3['name'],'withText':!0x0,'role':'menuitemradio','id':_0x204bd3['id'],'model':_0x204bd3});_0x2c96f8['bind']('isOn')['to'](this,'modelId',_0x5362ab=>_0x5362ab===_0x204bd3['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x2c96f8,'labelView':new ModelButtonLabelView(this['locale'],_0x204bd3)});}}}['_createModelSelectionDropdown'](){const _0x39612d=createDropdown(this['locale']);return _0x39612d['set']({'panelPosition':'se','class':'ck-ai_review__check-list-item-model-dropdown'}),_0x39612d['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),_0x39612d['buttonView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0x2b63db=>'selector'===_0x2b63db),this['listenTo'](_0x39612d,'execute',_0x3df4be=>{this['modelId']=_0x3df4be['source']['model']['id'],_0x39612d['buttonView']['label']=_0x3df4be['source']['label'];}),_0x39612d;}['_createModelNameView'](){const _0x491771=new ModelNameView(this['locale']);return _0x491771['bind']('text')['to'](this,'activeModelName',_0x1b2ea7=>_0x1b2ea7??''),_0x491771['bind']('isVisible')['to'](this,'modelDisplayMode',_0x4ca49a=>'name'===_0x4ca49a),_0x491771;}['_createActionsFooterView'](){const _0x5a6e62=new View(this['locale']);return _0x5a6e62['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']]}]}),_0x5a6e62;}}class ModelNameView extends View{constructor(_0x3c8b1b){super(_0x3c8b1b),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x437730=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai_review__check-list-item-model-name',_0x437730['if']('isVisible','ck-hidden',_0x35ef00=>!_0x35ef00)]},'children':[{'text':_0x437730['to']('text')}]});}}class ModelButtonLabelView extends ButtonLabelView{constructor(_0x54908f,_0x432216){super();const _0x4aa97b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x4aa97b['to']('style'),'id':_0x4aa97b['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x4aa97b['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x432216['description']||'']}]}]});}}class AIReviewCoreReviewCommandListItemView extends ListItemView{['_formItemsCollection']=new ViewCollection();['_customCheckView']=null;['_hideModels']=!0x1;constructor(_0x44e609,_0x26b60f,_0x3a445f,_0x3d3ed4=!0x1){super(_0x44e609),this['_hideModels']=_0x3d3ed4,this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x26b60f['isParameterized']);const _0xb4e7ec=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',_0x341308=>_0x341308),this['bindTemplate']['if']('isListItemRendered','ck-ai_review__check-list-item_rendered',_0x575430=>_0x575430)],'style':{'--ck-ai-review-check-list-item-index':_0x3a445f}},'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':_0x26b60f['title']}]},_0xb4e7ec]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-description']},'children':_0x26b60f['description']?[{'text':_0x26b60f['description']}]:[]}]}]},..._0x26b60f['isParameterized']?[this['_createParameterizedView'](_0x26b60f)]:[],...'custom'===_0x26b60f['id']?[this['_createCustomView'](_0x26b60f,this['_hideModels'])]:[]]}),this['on']('click',()=>{_0x26b60f['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x26b60f['id'],'args':_0x26b60f['useArgs']?_0x26b60f['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'](_0x53c5b1=>{_0x53c5b1['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x1434ce=new IconView();return _0x1434ce['content']=IconChevronRight,_0x1434ce['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-title-icon']}}),_0x1434ce;}['_createParameterizedView'](_0x33dc1d){const _0x20ff5b=new View(),_0x1cfe01=this['_createFormView'](_0x33dc1d);return _0x20ff5b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x353cb5=>!_0x353cb5)]},'children':[_0x1cfe01]}),_0x20ff5b;}['_createFormView'](_0x1686fa){const _0x111f5b=new View(),_0x3c9b2a=Array['isArray'](_0x1686fa['options'])?_0x1686fa['options']:[],_0x4e65db=new ButtonView(this['locale']),t=this['locale']['t'];_0x4e65db['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x4e65db['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x35da10=>{_0x35da10['stopPropagation']();})}}),_0x4e65db['on']('execute',()=>{const _0x204b41=[],_0x3c9513={};this['_formItemsCollection']['forEach'](_0x945151=>{_0x204b41['push'](_0x945151['value']),_0x1686fa['useArgs']&&_0x1686fa['options']&&(_0x3c9513[_0x945151['argsKey']]=_0x945151['value']);}),this['fire']('runReviewCheck',{'id':_0x1686fa['id'],'params':_0x204b41['length']?_0x204b41:void 0x0,'args':Object['keys'](_0x3c9513)['length']?_0x3c9513:void 0x0});});const _0xea1230=_0x3c9b2a['length'];return _0x3c9b2a['forEach']((_0xa45973,_0x52f80c)=>{const _0x3e43c4=_0x52f80c===_0xea1230-0x1;this['_formItemsCollection']['add'](new AIReviewCoreFormManagerView(this['locale'],_0xa45973,_0x3e43c4?_0x4e65db:null));}),_0x111f5b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x111f5b;}['_createCustomView'](_0x277c9d,_0x2c0080=!0x1){return this['_customCheckView']=new AIReviewCoreCustomCheckView(this['locale'],_0x277c9d,_0x2c0080),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',_0x7297d6=>!_0x7297d6)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x24acec,_0xfdfa76,_0x3ac6f6)=>{_0x3ac6f6||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}class AIReviewCoreReviewCheckListView extends ListItemView{['_checkViews'];constructor(_0x542b49){super(_0x542b49),this['_checkViews']=new ViewCollection(),this['_setupTemplate']();}['setChecks'](_0x3fd176,_0x260d53=!0x1){this['_checkViews']['clear']();for(const [_0x59170a,_0x4e590d]of _0x3fd176['entries']()){const _0x38f46e=new AIReviewCoreReviewCommandListItemView(this['locale'],_0x4e590d,_0x59170a,_0x260d53);_0x38f46e['delegate']('runReviewCheck')['to'](this),this['_checkViews']['add'](_0x38f46e);}}['hasChecks'](){return this['_checkViews']['length']>0x0;}['resetAllParameterizedChecks'](){for(const _0x482863 of this['_checkViews'])_0x482863 instanceof AIReviewCoreReviewCommandListItemView&&_0x482863['resetToDefault']();}['_setupTemplate'](){const _0x5603d9=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list',_0x5603d9['if']('isVisible','ck-hidden',_0x5bd3f4=>!_0x5bd3f4)]},'children':this['_checkViews']});}}class AIReviewModeUI extends AIReviewCoreUI{static get['pluginName'](){return'AIReviewModeUI';}['createMainView'](){const _0x16e78f=this['context']['locale'],_0x4ce359=new FormHeaderView(_0x16e78f,{'label':getTranslation$i(_0x16e78f,'AI_REVIEW_MODE'),'icon':_0x216a51,'class':'ck-ai-header\x20ck-ai-header_review'});return new AIReviewCoreView(this['context']['locale'],{'header':_0x4ce359,'list':new AIReviewCoreReviewCheckListView(_0x16e78f),'results':new AIReviewCoreUICheckResultsView(_0x16e78f,{'generalErrorText':getTranslation$i(_0x16e78f,'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}),'completed':new AIReviewCoreReviewCompletedView(_0x16e78f,{'headerText':getTranslation$i(_0x16e78f,'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE'),'emptyResultsText':getTranslation$i(_0x16e78f,'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT'),'buttonText':getTranslation$i(_0x16e78f,'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL')})});}['registerTab'](){const _0x1f80d1=this['context']['plugins']['get']('AITabs');_0x1f80d1['view']['on']('activateTab',(_0x6dbc80,_0x162805)=>{'reviewMode'===_0x162805?this['fire']('getReviewCheckList'):this['fire']('leaveReview');}),_0x1f80d1['view']['addTab']({'id':'reviewMode','buttonLabel':getTranslation$i(this['context']['locale'],'AI_REVIEW_MODE'),'buttonIcon':_0x216a51,'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(_0x5894e0){super(_0x5894e0),this['_domEmitter']=new(DomEmitterMixin())(),this['_eventEmitter']=new(EmitterMixin())();}get['emitter'](){return this['_eventEmitter'];}['afterInit'](){const _0x5eab27=getEditorFromContext(this['context']);_0x5eab27['conversion']['for']('editingDowncast')['markerToElement']({'model':MARKER_PREFIX+'insert','view':(_0x1405d7,{writer:_0x3e858a})=>{const _0x53a150=this['_markers']['get'](_0x1405d7['markerName']),_0x3d2c26={'class':'ck-ai_review-marker_add'+(this['_activeMarkers']['has'](_0x53a150?.['id']||'')?'\x20ck-ai_review__change_active':''),'data-marker-id':_0x1405d7['markerName']};return _0x3e858a['createUIElement']('span',_0x3d2c26,function(_0x278b48){const _0x1e6e05=this['toDomElement'](_0x278b48);return _0x1e6e05['innerHTML']=_0x53a150?.['content']?.['asString']||'',_0x1e6e05;});}}),_0x5eab27['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-only','view':_0x19988d=>{const _0x54a150=this['_markers']['get'](_0x19988d['markerName']),_0x5854f0=['ck-ai_review-marker_strikethrough'];return this['_activeMarkers']['has'](_0x54a150?.['id']||'')&&_0x5854f0['push']('ck-ai_review__change_active'),{'classes':_0x5854f0,'attributes':{'data-marker-id':_0x19988d['markerName']}};}}),_0x5eab27['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-context','view':_0x2b7b59=>{const _0x50b9dd=this['_markers']['get'](_0x2b7b59['markerName']),_0xb10b13=['ck-ai_review-marker_underline'];return this['_activeMarkers']['has'](_0x50b9dd?.['id']||'')&&_0xb10b13['push']('ck-ai_review__change_active'),{'classes':_0xb10b13,'attributes':{'data-marker-id':_0x2b7b59['markerName']}};}}),_0x5eab27['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-text','view':_0x4fe881=>{const _0x12ded0=this['_markers']['get'](_0x4fe881['markerName']),_0x1252dc=['ck-ai_review-marker_hide'];return this['_activeMarkers']['has'](_0x12ded0?.['id']||'')&&_0x1252dc['push']('ck-ai_review__change_active'),{'classes':_0x1252dc,'attributes':{'data-marker-id':_0x4fe881['markerName']}};}}),_0x5eab27['conversion']['for']('dataDowncast')['markerToElement']({'model':MARKER_PREFIX+'suggestion-context','view':(_0x48f65a,{writer:_0x54297a})=>_0x54297a['createRawElement']('span',{'class':'ck-ai_review-marker_context-'+(_0x48f65a['isOpening']?'start':'end')})}),_0x5eab27['conversion']['for']('downcast')['attributeToAttribute']({'model':DATA_ID_MODEL_ATTRIBUTE,'view':DATA_ID_VIEW_ATTRIBUTE});const _0xc152d8=_0x5eab27['ui']['getEditableElement']()||document['body'];this['_domEmitter']['listenTo'](_0xc152d8,'mouseup',(_0x30daa4,_0x412c54)=>{const _0x4ff57c=_0x412c54['target'],_0x5af67c=this['_findMarkerElement'](_0x4ff57c);if(!_0x5af67c)return;const _0x3acc23=_0x5af67c['getAttribute']('data-marker-id'),_0x17dfb7=_0x3acc23['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerClicked',{'markerId':_0x3acc23,'changeId':_0x17dfb7,'markerElement':()=>this['_findMarkerElementById'](_0x3acc23),'domEvent':_0x412c54});},{'usePassive':!0x0,'priority':'highest'}),this['_domEmitter']['listenTo'](_0xc152d8,'mouseover',(_0x2d3796,_0x27ed81)=>{const _0x210237=_0x27ed81['target'],_0x19ba1e=_0x27ed81['relatedTarget'];let _0x502ee4=this['_findMarkerElement'](_0x210237);if(!_0x502ee4&&_0x19ba1e&&(_0x502ee4=this['_findMarkerElement'](_0x19ba1e)),!_0x502ee4)return;const _0x1c9e25=_0x502ee4['getAttribute']('data-marker-id'),_0x3dd56f=_0x1c9e25['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerHovered',{'changeId':_0x3dd56f,'markerElement':()=>this['_findMarkerElementById'](_0x1c9e25),'domEvent':_0x27ed81});}),this['_domEmitter']['listenTo'](document,'mouseover',debounce$1((_0x4f9ea9,_0x1222f7)=>{const _0xbb310f=_0x1222f7['target'];if(this['_findMarkerElement'](_0xbb310f))return;_0xbb310f['closest']('.ck-reset.ck-ai_review-balloon-panel-suggestion')||this['_eventEmitter']['fire']('changeMarkerBlurred');},0xc8)),_0x5eab27['model']['document']['registerPostFixer'](_0x382304=>this['_validateMarkers'](_0x5eab27,_0x382304)),_0x5eab27['model']['document']['on']('change',()=>this['_handleMarkerChanges'](_0x5eab27));}['getDocumentData'](){const _0x42e81e=this['context']['plugins']['get']('AIEditing'),_0x30441f=getEditorFromContext(this['context']),_0x2cfaf7=_0x30441f['model'],_0x47d3b5=new ModelDocumentFragment();for(const _0x4d30a2 of _0x2cfaf7['document']['getRoot']()['getChildren']()){const _0x2d3e91=_0x4d30a2['_clone'](!0x0);_0x47d3b5['_appendChild'](_0x2d3e91);}for(const _0x3d6895 of _0x2cfaf7['markers'])_0x47d3b5['markers']['set'](_0x3d6895['name'],this['_changeRangeOwnerDocument'](_0x3d6895['getRange']()['clone'](),_0x47d3b5));const _0x2f35d3=new ModelTreeWalker({'ignoreElementEnd':!0x0,'startPosition':_0x2cfaf7['createPositionAt'](_0x47d3b5,0x0)}),_0x551afe=new Set(),_0x4cc121=new Map();for(const {item:_0x2bb41a}of _0x2f35d3){if(!_0x2bb41a['is']('$textProxy'))continue;const _0x29d935=_0x2bb41a['parent'];if(_0x29d935&&_0x29d935['is']('element')){const _0x3b5241=this['_upsertDataId'](_0x29d935,()=>_0x42e81e['_nextDataId'](_0x551afe));_0x551afe['add'](_0x3b5241);for(const _0x542dbf of _0x29d935['getChildren']())_0x542dbf['is']('element')&&_0x551afe['add'](this['_upsertDataId'](_0x542dbf,()=>_0x42e81e['_nextDataId'](_0x551afe)));let _0x245ebb=_0x29d935;for(;_0x245ebb['parent']&&!_0x245ebb['parent']['is']('documentFragment');)_0x245ebb=_0x245ebb['parent'],_0x245ebb['hasAttribute'](DATA_ID_MODEL_ATTRIBUTE)&&_0x245ebb['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x4cc121['set'](_0x3b5241,{'path':_0x29d935['getPath'](),'getContent':this['_createGetContentUsingDataIdFn'](_0x245ebb['_clone'](!0x0),_0x3b5241,_0x30441f['data'])}),_0x2f35d3['jumpTo'](_0x2cfaf7['createPositionAfter'](_0x29d935));}}return{'content':_0x30441f['data']['processor']['toData'](_0x30441f['data']['toView'](_0x47d3b5)),'version':_0x30441f['model']['document']['version'],'elements':_0x4cc121};}['diffContent'](_0x55c244,_0x259797,_0x520284=!0x1){const _0x40e014=[],_0x1760f9=getEditorFromContext(this['context']),_0x28e950=_0x1760f9['data']['parse'](_0x259797,'$documentFragment'),_0x42fa4b=_0x1760f9['data']['parse'](_0x55c244,'$documentFragment'),_0x54cf19=_0x1760f9['model']['createPositionAt'](_0x42fa4b,0x0);if(this['_haveSingleTopLevelElement'](_0x28e950)){if(!this['_hasSameTopLevelElement'](_0x42fa4b,_0x28e950))return _0x40e014;}else{const _0x57965c=_0x1760f9['model']['schema'];if(!this['_haveOnlyInlineContent'](_0x42fa4b,_0x57965c)||!this['_haveOnlyInlineContent'](_0x28e950,_0x57965c))return _0x40e014;}const _0x9fd9e8=this['context']['plugins']['get']('DocumentCompare')['getDiff'](_0x55c244,_0x259797,{'anchor':_0x54cf19,'markDeletions':!0x0})['getOperations']()['filter'](_0x1580e5=>'insert'===_0x1580e5['type']||'marker'===_0x1580e5['type']&&_0x1580e5['name']['startsWith']('$markedRemove')),_0x2e1f1f=this['_groupAdjacentOperations'](_0x9fd9e8),_0x508ece=[];if(_0x520284){if(_0x2e1f1f['length']){const _0x20df8a=_0x2e1f1f[0x0]['operations'][0x0],_0x8bb8a='insert'===_0x20df8a['type']?_0x20df8a['position']:_0x20df8a['newRange']['start'],_0x3d4de3=this['_getPositionLimitingRange'](_0x8bb8a,_0x1760f9,'inside'),_0x2b541a=_0x3d4de3?_0x28e950['getChild'](0x0)['getChildren']():_0x28e950['getChildren'](),_0x2445a9=_0x3d4de3||_0x1760f9['model']['createRangeIn'](_0x42fa4b),_0x36aed7=[new MarkerOperation('$markedRemove:synthetic'+uid(),null,_0x2445a9,_0x1760f9['model']['document']['model']['markers'],!0x0,_0x1760f9['model']['document']['version']+0x1),new InsertOperation(_0x2445a9['end'],_0x2b541a,_0x1760f9['model']['document']['version']+0x2)];_0x508ece['push']({'operations':_0x36aed7,'operationsIsolated':_0x36aed7,'groupOffset':0x0});}}else _0x508ece['push'](..._0x2e1f1f);let _0x27f358=0x0;return _0x1760f9['model']['change'](_0x23f406=>{for(let _0x576c4d=0x0;_0x576c4d<_0x508ece['length'];_0x576c4d++){const _0x5ae47e=_0x508ece[_0x576c4d],_0x10b671=_0x23f406['createDocumentFragment']();for(const _0x1578a3 of _0x42fa4b['getChildren']())_0x23f406['append'](_0x1578a3['_clone'](!0x0),_0x10b671);for(const _0x401aa3 of _0x5ae47e['operationsIsolated'])if('insert'===_0x401aa3['type']){const _0x249934=_0x401aa3;_0x249934['baseVersion']=null,_0x249934['isDocumentOperation']=!0x1,this['_changeOperationOwnerDocument'](_0x249934,_0x10b671),_0x23f406['batch']['addOperation'](_0x401aa3),_0x1760f9['model']['applyOperation'](_0x401aa3);const _0x3c6774='suggestion:insertion:id:authorId:'+_0x27f358++,_0x1ab738=_0x1760f9['model']['createRange'](_0x249934['position'],_0x249934['position']['getShiftedBy'](_0x249934['howMany']));_0x10b671['markers']['set'](_0x3c6774,_0x1ab738);}else{if('marker'===_0x401aa3['type']&&_0x401aa3['name']['startsWith']('$markedRemove')){const _0x38d8f5=_0x401aa3,_0x3639ef='suggestion:deletion:id:authorId:'+_0x27f358++;this['_changeOperationOwnerDocument'](_0x38d8f5,_0x10b671),_0x10b671['markers']['set'](_0x3639ef,_0x38d8f5['newRange']);}}if(_0x520284)_0x40e014['push']({..._0x5ae47e,'context':this['_createGetContentFn'](_0x42fa4b,_0x1760f9['data']),'content':this['_createGetContentFn'](_0x42fa4b,_0x1760f9['data'])});else{const _0x4e7484=this['_getChangeContext'](this['_changePositionOwnerDocument'](this['_getOperationStart'](_0x5ae47e['operationsIsolated'][0x0]),_0x10b671),this['_changePositionOwnerDocument'](this['_getOperationEnd'](_0x5ae47e['operationsIsolated'][_0x5ae47e['operationsIsolated']['length']-0x1]),_0x10b671));_0x10b671['markers']['set'](MARKER_PREFIX+'suggestion-context',new ModelRange(_0x4e7484['start'],_0x4e7484['end'])),_0x40e014['push']({..._0x5ae47e,'context':this['_createGetContextFn'](_0x10b671,_0x1760f9['data'],{'ellipsisBefore':_0x4e7484['hasContentBefore'],'ellipsisAfter':_0x4e7484['hasContentAfter']}),'content':this['_createGetContentFn'](_0x10b671,_0x1760f9['data'])});}}}),_0x40e014;}['markChangePositionInEditorContent'](_0x541fdb,_0xea89f6){if(!_0x541fdb['length'])return;const _0x57995a=_0x541fdb[0x0]['parent']['id'],_0x2f523c=_0xea89f6['elements']['get'](_0x57995a);if(!_0x2f523c)return void console['warn']('No\x20element\x20found\x20for\x20ID:\x20'+_0x57995a);const _0xa89d0d=_0x2f523c['path'],_0xdf63fe=getEditorFromContext(this['context']),_0x23269f=_0xdf63fe['model']['document']['history']['getOperations'](_0xea89f6['version']),_0x57c3d1=[];for(const _0x4ae0c7 of _0x541fdb){const _0x1b6696=_0x4ae0c7['operationsIsolated']['map'](_0x2ce91b=>this['_translateOperationToEditorContent'](_0x2ce91b,_0xa89d0d,_0xdf63fe['model']['document']['getRoots']()[0x0]));if(!_0x1b6696||!_0x1b6696['length'])continue;const _0x4e3866=_0x1b6696['every'](_0x109f75=>'marker'===_0x109f75['type']&&_0x109f75['name']['startsWith']('$markedRemove')),_0x1e6ce4={'document':_0xdf63fe['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x12c648=transformOperationSets(_0x1b6696,_0x23269f,_0x1e6ce4)['operationsA'];for(const _0x5e39a3 of _0x12c648)if('insert'===_0x5e39a3['type']){const _0x5ce382=_0x5e39a3,_0x281e9b=_0x5ce382['nodes'];_0xdf63fe['model']['change'](_0x18a2b0=>{const _0x4dee49=_0x18a2b0['createDocumentFragment']();for(const _0x291fec of _0x281e9b)_0x18a2b0['append'](_0x291fec['_clone'](!0x0),_0x4dee49);_0x57c3d1['push']({'start':_0x5ce382['position'],'end':_0x5ce382['position'],'type':'insert','groupId':_0x4ae0c7['id'],'content':{'asString':this['_createGetContentFn'](_0x4dee49,_0xdf63fe['data'])(),'asFragment':_0x4dee49}});});}else{if('marker'===_0x5e39a3['type']&&_0x5e39a3['name']['startsWith']('$markedRemove')){const _0xaaf16e=_0x5e39a3;let _0x20c91b='remove-text';if(_0x4e3866){const _0x197704=this['_findAdjacentContextDistance'](_0xaaf16e['newRange']['start'],'backward',_0xdf63fe['model']['schema']),_0x3a0fa5=this['_findAdjacentContextDistance'](_0xaaf16e['newRange']['end'],'forward',_0xdf63fe['model']['schema']);if(_0x197704||_0x3a0fa5){const _0xd005ce=_0xaaf16e['newRange']['start']['getShiftedBy'](-_0x197704),_0x517768=_0xaaf16e['newRange']['end']['getShiftedBy'](_0x3a0fa5);_0x57c3d1['push']({'start':_0xd005ce,'end':_0x517768,'groupId':_0x4ae0c7['id'],'type':'remove-context'});}else _0x20c91b='remove-only';}_0x57c3d1['push']({'start':_0xaaf16e['newRange']['start'],'end':_0xaaf16e['newRange']['end'],'groupId':_0x4ae0c7['id'],'type':_0x20c91b});}}}this['_insertMarkers'](_0x57c3d1);}['clearAllMarkers'](){const _0x439693=getEditorFromContext(this['context']);_0x439693['model']['change'](_0x482a61=>{for(const _0x32bdce of this['_markers']['keys']())_0x439693['model']['markers']['get'](_0x32bdce)&&_0x482a61['removeMarker'](_0x32bdce);}),this['_markers']['clear'](),this['_activeMarkers']['clear']();}['switchToReadOnly'](){getEditorFromContext(this['context'])['enableReadOnlyMode']('ai-review');}['switchToEdit'](){getEditorFromContext(this['context'])['disableReadOnlyMode']('ai-review');}['applyChange'](_0x5ca51a){const _0x3f7da1=getEditorFromContext(this['context']),_0x407af6=_0x3f7da1['model'],_0xb1c1fa=_0x5ca51a['map'](_0x51de14=>this['_getMarkersDataForGroup'](_0x51de14))['flat']();_0x407af6['change'](_0x25c299=>{for(const _0x539b87 of _0xb1c1fa){const _0x171f8e=_0x3f7da1['model']['markers']['get'](_0x539b87['id']);if(_0x171f8e){if('insert'===_0x539b87['type']){if(!_0x539b87['content'])continue;_0x407af6['insertContent'](_0x539b87['content']['asFragment']||null,_0x171f8e['getRange']()['start']);}else'remove-text'!==_0x539b87['type']&&'remove-only'!==_0x539b87['type']||_0x407af6['deleteContent'](_0x407af6['createSelection'](_0x171f8e['getRange']()));_0x25c299['removeMarker'](_0x539b87['id']),this['_markers']['delete'](_0x539b87['id']);}}});}['rejectChange'](_0x2c0906){const _0x2a350e=getEditorFromContext(this['context']),_0x39d92b=this['_getMarkersDataForGroup'](_0x2c0906);_0x2a350e['model']['change'](_0x3858af=>{for(const _0x2fb552 of _0x39d92b)_0x3858af['removeMarker'](_0x2fb552['id']),this['_markers']['delete'](_0x2fb552['id']);});}['getEditor'](){return getEditorFromContext(this['context']);}['getMarkerElementForChange'](_0x20445b){const _0x150978=Array['from'](this['_markers']['values']())['filter'](_0x1b0ea7=>_0x1b0ea7['groupId']===_0x20445b);if(!_0x150978['length'])return null;const _0x5ab460=0x1===_0x150978['length']?_0x150978[0x0]:this['_sortMarkers'](_0x150978)[0x0],_0xf8e48a=getEditorFromContext(this['context'])['model']['markers']['get'](_0x5ab460['id']);if(!_0xf8e48a)return null;return{'modelRange':_0xf8e48a['getRange'](),'getElement':()=>this['_findMarkerElementById'](_0x5ab460['id'])};}['getContentElementForChange'](_0x3c256e){const _0x13037d=Array['from'](this['_markers']['values']())['filter'](_0x71130d=>_0x71130d['groupId']===_0x3c256e);if(!_0x13037d['length'])return null;const _0x2d189a=0x1===_0x13037d['length']?_0x13037d[0x0]:this['_sortMarkers'](_0x13037d)[0x0],_0x3a3f47=getEditorFromContext(this['context']),_0x1b82c8=_0x3a3f47['model']['markers']['get'](_0x2d189a['id']);if(!_0x1b82c8)return null;const _0x6035d=_0x1b82c8['getRange'](),_0x3c6b49=_0x3a3f47['editing']['view']['getDomRoot']();if(!_0x3c6b49||!_0x6035d)return null;let _0x29cfa1=_0x6035d['start']['parent'];for(;_0x29cfa1['parent']&&'$root'!==_0x29cfa1['parent']['name'];)_0x29cfa1=_0x29cfa1['parent'];if(!_0x29cfa1||!_0x29cfa1['name'])return null;const _0x1bee75=_0x3c6b49['querySelector']('[data-marker-id=\x22'+_0x2d189a['id']+'\x22]');if(!_0x1bee75)return null;let _0x540324=null;_0x3a3f47['model']['change'](_0x279b8e=>{_0x540324=_0x279b8e['createDocumentFragment'](),_0x279b8e['append'](_0x29cfa1['_clone'](!0x0),_0x540324);});const _0x292043=_0x3a3f47['data']['toView'](_0x540324)['getChild'](0x0);return _0x1bee75['closest'](_0x292043['name']);}['reactivateMarkers'](_0x485bcb){const _0x466fb2=this['_getMarkersDataForGroup'](_0x485bcb);if(!_0x466fb2['length'])return;const _0x1acaf7=Array['from'](this['_activeMarkers'])['sort'](),_0x411e87=Array['from'](new Set(_0x466fb2['map'](_0x11b18c=>_0x11b18c['id'])))['sort']();_0x1acaf7['join']('|')!==_0x411e87['join']('|')&&(this['setAllMarkersAsInactive'](),this['setMarkersInElementAsActive'](_0x485bcb));}['setMarkersInElementAsActive'](_0x24c331){const _0x5bd29c=this['_getMarkersDataForGroup'](_0x24c331);if(!_0x5bd29c['length'])return;const _0xcdc717=getEditorFromContext(this['context']),_0x39eea4=new Set(_0x5bd29c['map'](_0x3ac61b=>_0x3ac61b['id'])),_0x387f6e=Array['from'](_0x39eea4['values']())['map'](_0x1252cc=>_0xcdc717['model']['markers']['get'](_0x1252cc))['filter'](_0x2a5f88=>!!_0x2a5f88);_0x39eea4['forEach'](_0x161342=>{this['_activeMarkers']['add'](_0x161342);}),_0xcdc717['model']['change'](()=>{_0x387f6e['forEach'](_0x537a5c=>{_0xcdc717['editing']['reconvertMarker'](_0x537a5c);});});}['setAllMarkersAsInactive'](){const _0x48a06a=Array['from'](this['_activeMarkers']);if(!_0x48a06a['length'])return;this['_activeMarkers']['clear']();const _0x45aef7=getEditorFromContext(this['context']),_0x52a50b=_0x48a06a['map'](_0x59a7a5=>_0x45aef7['model']['markers']['get'](_0x59a7a5))['filter'](_0x5d1f89=>!!_0x5d1f89);_0x45aef7['model']['change'](()=>{_0x52a50b['forEach'](_0x38e8a8=>{_0x45aef7['editing']['reconvertMarker'](_0x38e8a8);});});}['_getPositionLimitingRange'](_0x2616e1,_0x3daf00,_0x138ed8='outside'){if(!_0x2616e1)return null;let _0x19ed6b=_0x2616e1['parent'];for(;_0x19ed6b&&_0x19ed6b['parent']&&'$root'!==_0x19ed6b['parent']['name']&&!_0x3daf00['model']['schema']['isLimit'](_0x19ed6b)&&!_0x3daf00['model']['schema']['isBlock'](_0x19ed6b);)_0x19ed6b=_0x19ed6b['parent'];if(!_0x19ed6b||!_0x19ed6b['name']||'$root'===_0x19ed6b['name'])return null;let _0x4b2baf=null;return _0x3daf00['model']['change'](_0x344ed8=>{_0x4b2baf='inside'===_0x138ed8?_0x344ed8['createRangeIn'](_0x19ed6b):_0x344ed8['createRangeOn'](_0x19ed6b);}),_0x4b2baf;}['_validateMarkers'](_0xdf8132,_0x5cc0ae){const _0x198ce7=Array['from'](this['_markers']['keys']()),_0x22fdb1=new Map();for(const _0x4c2057 of _0x198ce7){const _0x570b1e=_0xdf8132['model']['markers']['get'](_0x4c2057);if(!_0x570b1e)continue;const _0x4a0f62=_0x570b1e['getStart']()['path'][0x0];_0x22fdb1['has'](_0x4a0f62)||_0x22fdb1['set'](_0x4a0f62,[]),_0x22fdb1['get'](_0x4a0f62)['push'](_0x570b1e);}const _0x22544d=new Set();for(const _0x2f31d1 of _0xdf8132['model']['document']['differ']['getChanges']()){let _0xf910cd=-0x1,_0x3b5190=null;if('insert'===_0x2f31d1['type'])_0x3b5190=new ModelRange(_0x2f31d1['position'],_0x2f31d1['position']['getShiftedBy'](_0x2f31d1['length'])),_0xf910cd=_0x2f31d1['position']['path'][0x0];else{if('remove'!==_0x2f31d1['type'])continue;_0x3b5190=new ModelRange(_0x2f31d1['position']),_0xf910cd=_0x2f31d1['position']['path'][0x0];}const _0x597613=_0x22fdb1['get'](_0xf910cd)||[];if(_0x597613['length']){for(const _0x12d078 of _0x597613)if(_0x3b5190['root']['rootName']===_0x12d078['getRange']()['root']['rootName']&&('insert'!==_0x2f31d1['type']||!_0x3b5190['containsRange'](_0x12d078['getRange']()))&&(_0x3b5190['isIntersecting'](_0x12d078['getRange']())||_0x3b5190['start']['isTouching'](_0x12d078['getRange']()['end'])||_0x3b5190['end']['isTouching'](_0x12d078['getRange']()['start']))){const _0x104112=this['_parseMarkerName'](_0x12d078['name']);Array['from'](this['_markers']['values']())['filter'](_0x207402=>_0x207402['groupId']===_0x104112['groupId'])['forEach'](_0x135693=>_0x22544d['add'](_0x135693['id']));}}}if(_0x22544d['size']){for(const _0x4cb262 of _0x22544d)_0x5cc0ae['removeMarker'](_0x4cb262);return!0x0;}return!0x1;}['_handleMarkerChanges'](_0x2df0e3){for(const {name:_0x5219e4,data:_0x11b41c}of _0x2df0e3['model']['document']['differ']['getChangedMarkers']()){if(!_0x5219e4['startsWith'](MARKER_PREFIX))continue;const _0x1217c7=_0x11b41c['oldRange'],_0x5af25e=_0x11b41c['newRange'],_0x356fe4=_0x1217c7&&'$graveyard'===_0x1217c7['root']['rootName'],_0x2c2476=_0x5af25e&&'$graveyard'===_0x5af25e['root']['rootName'];if(_0x356fe4&&_0x2c2476)continue;const _0x106b24=this['_parseMarkerName'](_0x5219e4);this['_markers']['get'](_0x5219e4)&&(_0x2c2476||!_0x5af25e?this['_eventEmitter']['fire']('changeMarkerRemoved',{'markerId':_0x5219e4,'changeId':_0x106b24['groupId']}):_0x356fe4&&_0x5af25e&&this['_eventEmitter']['fire']('changeMarkerRestored',{'markerId':_0x5219e4,'changeId':_0x106b24['groupId']}));}}['_parseMarkerName'](_0x44dc14){const _0x29ab7c=_0x44dc14['split'](':'),_0x2f18cf=(_0x29ab7c[0x1]||'')['split']('_');return{'prefix':_0x29ab7c[0x0],'groupId':_0x2f18cf[0x0],'suffix':_0x2f18cf[0x1]};}['_translateOperationToEditorContent'](_0x1fca97,_0x3380fd,_0x1418f2){if('insert'===_0x1fca97['type']){const _0x2c3aee=_0x1fca97;return new InsertOperation(this['_changePosition'](_0x3380fd['concat'](_0x2c3aee['position']['offset']),_0x1418f2),_0x2c3aee['nodes'],_0x2c3aee['baseVersion']);}if('marker'===_0x1fca97['type']&&_0x1fca97['name']['startsWith']('$markedRemove')){const _0x1d3681=_0x1fca97;return new MarkerOperation(_0x1d3681['name'],_0x1d3681['oldRange'],this['_changeRange'](_0x1d3681['newRange'],_0x3380fd['concat'](_0x1d3681['newRange']['start']['offset']),_0x3380fd['concat'](_0x1d3681['newRange']['end']['offset']),_0x1418f2),_0x1d3681['_markers'],_0x1d3681['affectsData'],_0x1d3681['baseVersion']);}return _0x1fca97;}['_groupAdjacentOperations'](_0x522f99){if(!_0x522f99['length'])return[];const _0x4257be=[];let _0x3a502b=0x0,_0x4c511e=0x0,_0x193409=[];for(let _0x918771=0x0;_0x918771<=_0x522f99['length'];_0x918771++){const _0x136aa2=_0x522f99[_0x918771],_0x427a9c=_0x522f99[_0x918771-0x1];!_0x136aa2||_0x427a9c&&!this['_getOperationEnd'](_0x427a9c)['isTouching'](this['_getOperationStart'](_0x136aa2))?(_0x4257be['push']({'operations':_0x193409,'operationsIsolated':_0x193409['map'](_0x4f65f0=>this['_shiftOperation'](_0x4f65f0['clone'](),-_0x4c511e)),'groupOffset':_0x3a502b}),_0x193409=_0x136aa2?[_0x136aa2]:[],_0x4c511e+=_0x3a502b,_0x3a502b=0x0):_0x193409['push'](_0x136aa2),_0x136aa2&&'insert'===_0x136aa2['type']&&(_0x3a502b+=_0x136aa2['howMany']);}return _0x4257be;}['_findAdjacentContextDistance'](_0x530799,_0x2aa204,_0x4eb4fe,_0x440708=0x1){const _0x14e926=new ModelTreeWalker({'startPosition':_0x530799,'direction':_0x2aa204});let _0x4056fb=0x0;for(let _0x22f1a3=0x0;_0x22f1a3<_0x440708;_0x22f1a3++){let _0x510bf8=0x0,_0x295541=!0x1,_0x466423='forward'===_0x2aa204?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x556b69}of _0x14e926)if(_0x556b69['is']('$textProxy')){const _0x35199e=_0x466423['exec'](_0x556b69['data']);if(_0x35199e&&_0x35199e['length']){if(_0x510bf8+='forward'===_0x2aa204?_0x35199e['index']+_0x35199e[0x0]['length']:_0x556b69['data']['length']-_0x35199e['index'],_0x35199e[0x0]['length']!==_0x556b69['data']['length'])break;_0x295541=!0x0,_0x466423='forward'===_0x2aa204?/^\w+/:/\w+$/;}else{if(_0x295541)break;_0x510bf8+=_0x556b69['offsetSize'];}}else{if(_0x556b69['is']('element')){_0x4eb4fe['isInline'](_0x556b69)&&!_0x295541&&(_0x510bf8+=0x1);break;}}_0x4056fb+=_0x510bf8,_0x14e926['jumpTo'](_0x530799['getShiftedBy']('forward'===_0x2aa204?_0x4056fb:-_0x4056fb));}return _0x4056fb;}['_getChangeContext'](_0x514e03,_0x36305d){const _0xe8b087=getEditorFromContext(this['context'])['model']['schema'],_0x2551ec=this['_findAdjacentContextDistance'](_0x514e03,'backward',_0xe8b087,CHANGE_CONTEXT_WORDS_LIMIT),_0xcf7391=this['_findAdjacentContextDistance'](_0x36305d,'forward',_0xe8b087,CHANGE_CONTEXT_WORDS_LIMIT),_0x9f3166=_0x514e03['getShiftedBy'](-_0x2551ec),_0x4069ce=_0x36305d['getShiftedBy'](_0xcf7391);return{'start':_0x9f3166,'end':_0x4069ce,'hasContentBefore':!_0x9f3166['isAtStart'],'hasContentAfter':!_0x4069ce['isAtEnd']};}['_insertMarkers'](_0x4d319c){const _0x3af5d4=this['context']['plugins']['get']('AIEditing'),_0xfcaab9=new Set();getEditorFromContext(this['context'])['model']['change'](_0x1c6849=>{for(const _0xeac02e of _0x4d319c){const _0x25a067=''+MARKER_PREFIX+_0xeac02e['type']+':'+_0xeac02e['groupId']+'_'+_0x3af5d4['_nextDataId'](_0xfcaab9);this['_markers']['set'](_0x25a067,{'id':_0x25a067,'groupId':_0xeac02e['groupId'],'type':_0xeac02e['type'],'content':_0xeac02e['content']}),_0x1c6849['addMarker'](_0x25a067,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1c6849['createRange'](_0xeac02e['start'],_0xeac02e['end'])});}});}['_createGetContextFn'](_0x59261f,_0x329d48,_0x476e5b){let _0x1e72ae='';return()=>{if(!_0x1e72ae){const _0x4781f6=_0x329d48['toView'](_0x59261f,{'showSuggestionHighlights':!0x0});let _0x2c6ee3=_0x4781f6['getChild'](0x0);if(_0x2c6ee3['is']('containerElement')||(_0x2c6ee3=_0x4781f6),!_0x2c6ee3)return'';let _0x36b17b=!0x1;const _0x352feb=[];for(const _0x3464dd of _0x2c6ee3['getChildren']())_0x3464dd['is']('element','span')&&_0x3464dd['hasClass']('ck-ai_review-marker_context-end')&&(_0x36b17b=!0x1),_0x36b17b&&_0x352feb['push'](_0x3464dd),_0x3464dd['is']('element','span')&&_0x3464dd['hasClass']('ck-ai_review-marker_context-start')&&(_0x36b17b=!0x0);_0x2c6ee3['_removeChildren'](0x0,_0x2c6ee3['childCount']),_0x476e5b?.['ellipsisBefore']&&_0x2c6ee3['_appendChild']('…'),_0x2c6ee3['_appendChild'](_0x352feb),_0x476e5b?.['ellipsisAfter']&&_0x2c6ee3['_appendChild']('…');const _0x1183ea=_0x329d48['htmlProcessor']['domConverter']['viewToDom'](_0x4781f6),_0x45bdbf=_0x329d48['htmlProcessor']['htmlWriter']['getHtml'](_0x1183ea);_0x1e72ae=_0x45bdbf;}return _0x1e72ae;};}['_createGetContentFn'](_0x2865c0,_0x28a8e3){let _0x505f62='';return()=>(_0x505f62||(_0x505f62=_0x28a8e3['stringify'](_0x2865c0,{'showSuggestionHighlights':!0x0})),_0x505f62);}['_createGetContentUsingDataIdFn'](_0x43a0b2,_0x295661,_0x262d08){let _0x33dcc1='';return()=>{if(!_0x33dcc1){const _0x2e960b=_0x262d08['toView'](new ModelDocumentFragment(_0x43a0b2)),_0x5d8331=_0x262d08['htmlProcessor']['domConverter']['viewToDom'](_0x2e960b)['querySelector']('[data-id=\x22'+_0x295661+'\x22]');_0x33dcc1=_0x5d8331?.['outerHTML']||'';}return _0x33dcc1;};}['_findMarkerElement'](_0x3e3276,_0xa42ca3=0x5){let _0x3e6584=_0x3e3276,_0x263d0d=null;for(let _0x57d7f1=0x0;_0x57d7f1<_0xa42ca3&&_0x3e6584;_0x57d7f1++){if(!_0x3e6584['className']){_0x3e6584=_0x3e6584['parentElement'];continue;}if(!(''+_0x3e6584['className'])['includes']('ck-ai_review-marker_')){_0x3e6584=_0x3e6584['parentElement'];continue;}if(!_0x3e6584['getAttribute']('data-marker-id'))break;_0x263d0d=_0x3e6584;break;}return _0x263d0d;}['_findMarkerElementById'](_0x3ce0b0){const _0x2d3c65=getEditorFromContext(this['context']),_0x329d60=_0x2d3c65['model']['markers']['get'](_0x3ce0b0);return _0x329d60?getMarkerDomElement(_0x2d3c65['editing'],_0x329d60):null;}['_getMarkersDataForGroup'](_0x45804d){return Array['from'](this['_markers']['values']())['filter'](_0xd73f38=>_0xd73f38['groupId']===_0x45804d);}['_getOperationStart'](_0x1b4a81){return'insert'===_0x1b4a81['type']?_0x1b4a81['position']:_0x1b4a81['newRange']['start'];}['_getOperationEnd'](_0x36b0a6,_0x2e45a9=!0x1){return'insert'===_0x36b0a6['type']?_0x2e45a9?_0x36b0a6['position']:_0x36b0a6['position']['getShiftedBy'](_0x36b0a6['howMany']):_0x36b0a6['newRange']['end'];}['_shiftOperation'](_0x34d816,_0x1aebce){return'insert'===_0x34d816['type']?_0x34d816['position']=_0x34d816['position']['getShiftedBy'](_0x1aebce):'marker'===_0x34d816['type']&&_0x34d816['newRange']&&(_0x34d816['newRange']=new ModelRange(_0x34d816['newRange']['start']['getShiftedBy'](_0x1aebce),_0x34d816['newRange']['end']['getShiftedBy'](_0x1aebce))),_0x34d816;}['_changeOperationOwnerDocument'](_0x1d6b12,_0x3fcfce){'insert'===_0x1d6b12['type']?_0x1d6b12['position']=this['_changePositionOwnerDocument'](_0x1d6b12['position'],_0x3fcfce):'marker'===_0x1d6b12['type']&&_0x1d6b12['newRange']&&(_0x1d6b12['newRange']=this['_changeRangeOwnerDocument'](_0x1d6b12['newRange'],_0x3fcfce));}['_changePositionOwnerDocument'](_0xfdb80c,_0x4b53e5){return new ModelPosition(_0x4b53e5,_0xfdb80c['path']);}['_changeRangeOwnerDocument'](_0x49614c,_0x16dbbc){return new ModelRange(this['_changePositionOwnerDocument'](_0x49614c['start'],_0x16dbbc),this['_changePositionOwnerDocument'](_0x49614c['end'],_0x16dbbc));}['_changePosition'](_0x318168,_0x10866a){return new ModelPosition(_0x10866a,[..._0x318168]);}['_changeRange'](_0x30874f,_0x3e5b34,_0x114a5c,_0x47976e){return new ModelRange(this['_changePosition'](_0x3e5b34,_0x47976e),this['_changePosition'](_0x114a5c,_0x47976e));}['_sortMarkers'](_0x317571){const _0x2fe9d8=_0x21888f=>{switch(_0x21888f){case'insert':return 0x0;case'remove-context':return 0x1;case'remove-only':return 0x2;case'remove-text':return 0x3;}};return _0x317571['sort']((_0x1caa41,_0x1d9c33)=>_0x2fe9d8(_0x1caa41['type'])-_0x2fe9d8(_0x1d9c33['type']));}['_hasSameTopLevelElement'](_0x15abe8,_0xe5da6f){const _0x50bcb6=_0x15abe8['getChild'](0x0),_0x1e981e=_0xe5da6f['getChild'](0x0);return!(!_0x50bcb6||!_0x1e981e)&&((!_0x50bcb6['is']('element')||!_0x1e981e['is']('element')||_0x50bcb6['name']===_0x1e981e['name'])&&!(_0x50bcb6['is']('element')&&!_0x1e981e['is']('element')||!_0x50bcb6['is']('element')&&_0x1e981e['is']('element')));}['_haveSingleTopLevelElement'](_0x4f2394){return 0x1===_0x4f2394['childCount'];}['_haveOnlyInlineContent'](_0x3cd920,_0x1ffc44){for(const _0x2e41d9 of _0x3cd920['getChildren']())if(_0x2e41d9['is']('element')&&!_0x1ffc44['isInline'](_0x2e41d9))return!0x1;return!0x0;}['_upsertDataId'](_0x3cf8ea,_0x2a7d26){let _0x1396bb=_0x3cf8ea['getAttribute'](DATA_ID_MODEL_ATTRIBUTE);return _0x1396bb||(_0x1396bb=_0x2a7d26(),_0x3cf8ea['_setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x1396bb)),_0x1396bb;}}class AIReviewCheckResult extends EmitterMixin(){['id'];['contentNew'];['contentInitial'];['documentVersion'];constructor({id:_0x2c3ef3,contentNew:_0x237f38,contentInitial:_0x148c09,documentVersion:_0x3d5563}){super(),this['id']=_0x2c3ef3,this['contentNew']=_0x237f38,this['contentInitial']=_0x148c09,this['documentVersion']=_0x3d5563;}}class AIReviewCheckResultChange extends ObservableMixin(){['id'];['parent'];['_data'];['_editorOperations']=[];constructor(_0x20e3f7,_0x32d06b,_0x3dd999){super(),this['id']=_0x20e3f7,this['parent']=_0x3dd999,this['_data']=_0x32d06b,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(_0x42b7b2,_0x242c1f,_0x491770,_0x2fa8ae,_0x20e3d5){super(),this['_sourceCheck']=_0x242c1f,this['_documentData']=_0x42b7b2,this['_aiConnector']=_0x491770,this['_reviewParams']=_0x2fa8ae,this['_reviewArgs']=_0x20e3d5,this['on']('change:status',(_0x5dbb7b,_0x1927ca,_0x2a2d04)=>{'aborted'==_0x2a2d04&&(this['_wasAborted']=!0x0),this['fire']('reviewCheckRunUpdated',{'status':_0x2a2d04,'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'](_0x5b6ecf=>'pending'===_0x5b6ecf['status']);}get['currentError'](){return this['_currentError'];}['updateDocumentData'](_0x6b445d){this['_documentData']=_0x6b445d;}async['start'](){this['status']='loading',this['_currentError']=void 0x0;try{this['_activeRequest']=this['_createApiRequest']();const _0x11b6a7=await this['_activeRequest']['getStream']();this['status']='data';for await(const _0xf7660a of _0x11b6a7)'unmodified'!==_0xf7660a['data']['operation']&&('error'!==_0xf7660a['data']['operation']?'review-metadata'!==_0xf7660a['event']?this['_addReviewCheckResult'](_0xf7660a['data']['dataId'],_0xf7660a['data']['textDelta']):this['callId']=_0xf7660a['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(_0x412d76){this['_currentError']=_0x412d76,_0x412d76 instanceof Error&&_0x412d76['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'](_0x4b21d8,_0x28a4e9){const _0x182daa=this['_results']['get'](_0x4b21d8);if(!_0x182daa)return;if(0x0===_0x28a4e9['length'])return;const _0x11ea07=[];_0x28a4e9['forEach']((_0x38f33f,_0x646cdf)=>{const _0x488582=new AIReviewCheckResultChange(_0x182daa['id']+'-'+_0x646cdf,_0x38f33f,_0x182daa);_0x488582['on']('change:status',()=>{this['fire']('reviewCheckResultChangeStatusUpdated',{'change':_0x488582,'status':_0x488582['status']});}),_0x488582['on']('change:isActivated',()=>{_0x488582['isActivated']?this['fire']('reviewCheckResultActivated',{'change':_0x488582}):this['fire']('reviewCheckResultDeactivated',{'change':_0x488582});}),this['_changes']['push'](_0x488582),_0x11ea07['push'](_0x488582);}),this['fire']('reviewCheckResultReady',{'changes':_0x11ea07,'result':_0x182daa,'source':this});}['abort'](){this['_activeRequest']&&(this['_activeRequest']['abortController']['abort'](),this['_activeRequest']=null,this['status']='aborted');}['isChangeActive'](_0xb067ef){const _0x443e63=this['_changes']['find'](_0x1ba9a5=>_0x1ba9a5['id']===_0xb067ef);return!(!_0x443e63||'pending'!==_0x443e63['status']);}['isAnyChangeActivated'](){return this['_changes']['some'](_0xfdce70=>!0x0===_0xfdce70['isActivated']);}['getActiveChanges'](){return this['_changes']['filter'](_0x5e1a44=>'pending'===_0x5e1a44['status']);}['getChangeById'](_0x350323){return this['_changes']['find'](_0x5d7880=>_0x5d7880['id']===_0x350323);}['markAllChangesAsAccepted'](){for(const _0x2e51a0 of this['_changes'])'pending'===_0x2e51a0['status']&&(_0x2e51a0['status']='accepted');this['_checkIfFinished']();}['markChangeAsAccepted'](_0x465fc2){const _0x33b4a9=this['_changes']['find'](_0x184f9f=>_0x184f9f['id']===_0x465fc2);_0x33b4a9&&'pending'===_0x33b4a9['status']&&(_0x33b4a9['status']='accepted'),this['_checkIfFinished']();}['markChangeAsRejected'](_0x2182f1){const _0x5c033c=this['_changes']['find'](_0x2fc79f=>_0x2fc79f['id']===_0x2182f1);_0x5c033c&&'pending'===_0x5c033c['status']&&(_0x5c033c['status']='rejected'),this['_checkIfFinished']();}['markChangeAsOutdated'](_0x24a96b){const _0x32458d=this['_changes']['find'](_0x3e4ba9=>_0x3e4ba9['id']===_0x24a96b);_0x32458d&&'pending'===_0x32458d['status']&&(_0x32458d['status']='outdated'),this['_checkIfFinished']();}['markChangeAsPending'](_0x3b9c4a){const _0x3eba23=this['_changes']['find'](_0x3fa9fe=>_0x3fa9fe['id']===_0x3b9c4a);_0x3eba23&&'outdated'===_0x3eba23['status']&&(_0x3eba23['status']='pending'),this['_checkIfFinished']();}['activateChange'](_0xcbae3a){this['_changes']['filter'](_0x4d9abd=>_0x4d9abd['isActivated']&&_0x4d9abd['id']!==_0xcbae3a)['forEach'](_0x427834=>{_0x427834['isActivated']=!0x1;});const _0x4f2a89=this['_changes']['find'](_0x3c4f1e=>_0x3c4f1e['id']===_0xcbae3a);_0x4f2a89&&'pending'===_0x4f2a89['status']&&(_0x4f2a89['isActivated']=!0x0);}['deactivateChange'](){this['_changes']['filter'](_0x3a499a=>_0x3a499a['isActivated'])['forEach'](_0x426fa1=>{_0x426fa1['isActivated']=!0x1;});}['forceReadyState'](){this['status']='ready';}async['sendRating'](_0xd07037){if('initialized'===this['status']||'loading'===this['status']||'data'===this['status']||this['_wasAborted'])return;if(!this['callId']||0x0===this['_changes']['length'])return;let _0x39ddfe;if(_0xd07037){const _0x490ce5=this['_changes']['find'](_0x490ba4=>_0x490ba4['id']===_0xd07037);if(_0x490ce5&&_0x490ce5['isRated'])return;_0x490ce5&&(_0x39ddfe=_0x490ce5['parent']['id'],_0x490ce5['isRated']=!0x0);}const _0x46268c={'positiveCount':this['_changes']['filter'](_0x4f471e=>'accepted'===_0x4f471e['status'])['length'],'totalCount':this['_changes']['length']};this['_sendRatingRequest'](_0x46268c,this['callId'],_0x39ddfe);}['_addReviewCheckResult'](_0x58bdb9,_0x8d5cbf){const _0x433014=this['_documentData']['elements']['get'](_0x58bdb9);if(!_0x433014)return;const _0x396ca0=_0x433014['getContent']();if(_0x396ca0===_0x8d5cbf)return;const _0x10bb33=new AIReviewCheckResult({'id':_0x58bdb9,'contentInitial':_0x396ca0,'contentNew':_0x8d5cbf,'documentVersion':this['_documentData']['version']});this['_results']['set'](_0x10bb33['id'],_0x10bb33),this['fire']('reviewCheckResultAdded',{'result':_0x10bb33,'source':this});}['_checkIfFinished'](){'finished'===this['status']&&(this['_changes']['filter'](_0x393699=>'pending'===_0x393699['status'])['length']>0x0&&(this['status']='ready')),'ready'===this['status']&&(0x0===this['_changes']['filter'](_0x458aef=>'pending'===_0x458aef['status'])['length']&&(this['status']='finished'));}}class AIReviewSystemCheckRun extends AIReviewCheckRun{get['subTitle'](){if(!this['_reviewParams']||0x0===this['_reviewParams']['length'])return'';const _0x50728c=[];if(this['_reviewParams']['length']>0x0&&this['_sourceCheck']['options'])for(let _0x5cb9cc=0x0;_0x5cb9cc<this['_reviewParams']['length'];_0x5cb9cc++){if(!this['_reviewParams'][_0x5cb9cc]||!this['_sourceCheck']['options'][_0x5cb9cc])continue;const _0x38fb32=this['_sourceCheck']['options'][_0x5cb9cc],_0x44e1e3=_0x38fb32['data']?.['find'](_0x26c0a9=>_0x26c0a9['id']===this['_reviewParams'][_0x5cb9cc]);_0x44e1e3&&_0x50728c['push'](_0x44e1e3['label']);}return _0x50728c['join'](',\x20');}get['reviewName'](){return this['_composeReviewName']();}['_createApiRequest'](){return this['_aiConnector']['callSystemReview']({'reviewName':this['_composeReviewName'](),'content':this['_documentData']['content'],'args':this['_reviewArgs']});}['_sendRatingRequest'](_0x71975a,_0x291026,_0x1df80b){return this['_aiConnector']['upsertAIReviewRating'](this['reviewName'],_0x291026,_0x71975a,_0x1df80b);}['_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(_0x56b38d,_0x9d8d45)=>{const _0x557456=this['_aiReviewCheckList']['getCheckById'](_0x9d8d45['id']);if(_0x557456){this['_onReviewCheckRun'](_0x9d8d45),this['_aiReviewCoreEditing']['switchToReadOnly'](),this['_currentReviewCheckRun']=this['_createReviewCheckRun'](_0x9d8d45,_0x557456),this['_aiReviewCoreUi']['setCheckResultTitle'](this['_currentReviewCheckRun']['title'],this['_currentReviewCheckRun']['subTitle']),this['_currentReviewCheckRun']['on']('reviewCheckRunUpdated',(_0x14b692,_0x40041f)=>{switch(_0x40041f['status']){case'data':case'loading':this['_aiReviewCoreUi']['showCheckRunResults'](_0x40041f);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'!==_0x40041f['status']&&'error-chunk'!==_0x40041f['status']&&'error-general'!==_0x40041f['status']||this['_currentReviewCheckRun']?.['sendRating']();}),this['_currentReviewCheckRun']['on']('reviewCheckResultAdded',(_0x4d2759,_0x36c88f)=>{if(!this['_currentReviewCheckRun'])throw new CKEditorError('ai-review-mode-no-current-check-run',this);const _0xc83a16=this['_diffContent'](_0x36c88f['result']['contentInitial'],_0x36c88f['result']['contentNew']);_0x36c88f['source']['addResultChanges'](_0x36c88f['result']['id'],_0xc83a16);}),this['_currentReviewCheckRun']['on']('reviewCheckResultReady',(_0x51498e,_0x495921)=>{for(const _0x40b7b6 of _0x495921['changes'])this['_aiReviewCoreUi']['showCheckRunResult'](_0x40b7b6);this['_markChangePositionInEditorContent'](_0x495921['changes'],_0x495921['source']['documentData']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultChangeStatusUpdated',(_0x39869a,_0x3faaab)=>{this['_aiReviewCoreUi']['updateChangeState'](_0x3faaab['change']['id'],_0x3faaab['status']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultActivated',(_0x4f718c,_0x9f1dbf)=>{this['_onReviewCheckResultActivated'](_0x9f1dbf);}),this['_currentReviewCheckRun']['on']('reviewCheckResultDeactivated',()=>{this['_onReviewCheckResultDeactivated']();});try{await this['_currentReviewCheckRun']['start']();}catch(_0x9c0b61){_0x9c0b61 instanceof Error&&_0x9c0b61['message']['includes']('ai-request-aborted')||(_0x9c0b61 instanceof CKEditorError?this['_logError'](_0x9c0b61):this['_logError'](new CKEditorError('ai-review-mode-check-run-failed',this,void 0x0,_0x9c0b61)));}}else this['_logError'](new CKEditorError('ai-review-mode-source-check-not-found',this,{'checkId':_0x9d8d45['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 _0x3262a8=this['_currentReviewCheckRun']['getActiveChanges']();if(!_0x3262a8['length'])return;this['_aiReviewCoreEditing']['applyChange'](_0x3262a8['map'](_0x1d79e4=>_0x1d79e4['id']));const _0x5b1982=this['_currentReviewCheckRun'];_0x5b1982['markAllChangesAsAccepted'](),_0x5b1982['sendRating']();}),this['listenTo'](this['_aiReviewCoreUi'],'acceptChange',(_0x4955c1,_0x2ad979)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x2ad979['id'])&&(this['_aiReviewCoreEditing']['applyChange']([_0x2ad979['id']]),this['_currentReviewCheckRun']['markChangeAsAccepted'](_0x2ad979['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x2ad979['id']));}),this['listenTo'](this['_aiReviewCoreUi'],'dismissChange',(_0x4e67ae,_0x53d8dd)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x53d8dd['id'])&&(this['_aiReviewCoreEditing']['rejectChange'](_0x53d8dd['id']),this['_currentReviewCheckRun']['markChangeAsRejected'](_0x53d8dd['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x53d8dd['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',(_0x36d208,_0x518eb5)=>{this['_onActivateChange'](_0x518eb5);}),this['listenTo'](this['_aiReviewCoreUi'],'deactivateChange',(_0x2d6d4d,_0x2574d1)=>{this['_onDeactivateChange'](_0x2574d1);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerClicked',(_0x51deb6,_0x3f5b39)=>{this['_onChangeMarkerClicked'](_0x51deb6,_0x3f5b39);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerHovered',(_0x591e26,_0x279e24)=>{this['_onChangeMarkerHovered'](_0x591e26,_0x279e24);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerBlurred',()=>{this['_onChangeMarkerBlurred']();}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRemoved',(_0x49642a,_0xb7efa1)=>{this['_onChangeMarkerRemoved'](_0x49642a,_0xb7efa1);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRestored',(_0x387bf5,_0x5292ea)=>{this['_onChangeMarkerRestored'](_0x387bf5,_0x5292ea);});}['_createReviewCheckRun'](_0x4381d8,_0x868ed5){return new AIReviewSystemCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x868ed5,this['_aiConnector'],_0x4381d8['params'],_0x4381d8['args']);}['_onChangeMarkerRemoved'](_0x575f3d,_0x8e63fb){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsOutdated'](_0x8e63fb['changeId']);}['_onChangeMarkerRestored'](_0xf380c,_0x3f4e2b){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsPending'](_0x3f4e2b['changeId']);}['_onCheckRunFinished'](){this['_aiReviewCoreUi']['showReviewCompletedView']();}['_initRequiredPlugins'](){this['_aiConnector']=this['context']['plugins']['get']('AIConnector');}['_onReviewRunLeave'](_0x33134f=!0x1){this['_currentReviewCheckRun']&&(this['_currentReviewCheckRun']['hasModifications']||this['_currentReviewCheckRun']['sendRating'](),this['_currentReviewCheckRun']['stopListening'](),this['_currentReviewCheckRun']['abort'](),this['_currentReviewCheckRun']=void 0x0),_0x33134f&&this['_aiReviewCoreUi']['showReviewCheckList'](),this['_aiReviewCoreEditing']['clearAllMarkers'](),this['_aiReviewCoreEditing']['switchToEdit'](),this['_changeActivationSource']=null;const _0x56c0f0=this['_aiReviewCoreEditing']['getEditor']();_0x56c0f0&&_0x56c0f0['editing']['view']['change'](_0x2b6d61=>{const _0x4f7f3d=_0x56c0f0['editing']['view']['document']['getRoot']();_0x2b6d61['removeClass']('ck-ai_review-diff',_0x4f7f3d),_0x2b6d61['removeClass']('ck-ai_review-highlights',_0x4f7f3d),_0x2b6d61['removeClass']('ck-ai-translate-mode-content',_0x4f7f3d);});}['_getTranslationWithDefault'](_0x2deda0,_0x5b2983){const _0x21d3ea=getTranslation$i(this['context']['locale'],_0x2deda0);return _0x21d3ea===_0x2deda0?_0x5b2983:_0x21d3ea;}['_logError'](_0x38f865,_0x9f8c6e=!0x1){logError(_0x38f865['message']),_0x9f8c6e||(_0x38f865['message']['startsWith']('ai-review-mode-models-unable-to-retrieve')?this['_aiReviewCoreUi']['showGeneralReviewCoreErrorView']():this['_aiReviewCoreUi']['showGeneralResultsErrorView']());}['_scrollToChange'](_0x11d7c5){if('content'===this['_changeActivationSource']){const _0x41ce5f=this['_aiReviewCoreUi']['getChangeElement'](_0x11d7c5);_0x41ce5f&&scrollAncestorsToShowTarget(_0x41ce5f['closest']('.ck-ai_review__check-run-result')||_0x41ce5f);}else{if('panel'===this['_changeActivationSource']){const _0x5df893=this['_getChangeContentElement'](_0x11d7c5);if(!_0x5df893)return;scrollViewportToShowTarget({'target':_0x5df893,'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(_0x5dc893){this['id']=_0x5dc893['id'],this['commandId']=_0x5dc893['commandId'],this['title']=_0x5dc893['title'],this['description']=_0x5dc893['description'],this['isParameterized']=_0x5dc893['isParameterized'],this['useArgs']=_0x5dc893['useArgs'],this['options']=_0x5dc893['options'],this['args']=_0x5dc893['args'];}}class AIReviewCheckList extends ObservableMixin(){['_checks']=[];['setupChecks'](_0x2fc04e){this['_checks']=_0x2fc04e['map'](_0x142b76=>new AIReviewCheck(_0x142b76));}get['checks'](){return this['_checks'];}['getCheckById'](_0x5ab2d3){return this['checks']['find'](_0x535c45=>_0x535c45['id']===_0x5ab2d3);}['removeCheckById'](_0x9d5e9b){this['_checks']=this['_checks']['filter'](_0x13054a=>_0x13054a['id']!==_0x9d5e9b);}}class AIReviewCheckCustom extends AIReviewCheck{['_models']=[];['_defaultModel']=null;constructor(_0x1219b8,_0x2bb4c5,_0xe7494e){super(_0x1219b8),this['_models']=_0x2bb4c5,this['_defaultModel']=_0xe7494e;}get['models'](){return this['_models'];}get['defaultModel'](){return this['_defaultModel'];}}class AIReviewCheckExtra extends AIReviewCheck{['isExtra']=!0x0;['prompt'];['model'];['_defaultModel']=null;constructor(_0x3e8fe7,_0x58f034,_0x17ddd7){super(_0x3e8fe7),this['prompt']=_0x3e8fe7['prompt'],this['model']=_0x3e8fe7['model'],this['model']?this['_defaultModel']=_0x58f034['find'](_0x2e4ead=>_0x2e4ead['id']===this['model'])||null:this['_defaultModel']=_0x17ddd7;}get['defaultModel'](){return this['_defaultModel'];}}class AIReviewModeCheckList extends AIReviewCheckList{['_allModels']=[];['_recommendedModels']=[];['_defaultModel']=null;constructor(_0xb7dbf8,_0x600529,_0x58b4a2){super(),this['_allModels']=_0xb7dbf8,this['_recommendedModels']=_0x600529,this['_defaultModel']=_0x58b4a2;}['setupChecks'](_0x3b725c){this['_checks']=_0x3b725c['map'](_0x10fba3=>!0x0===_0x10fba3['isExtra']?new AIReviewCheckExtra(_0x10fba3,this['_allModels'],this['_defaultModel']):'custom'===_0x10fba3['id']?new AIReviewCheckCustom(_0x10fba3,this['_recommendedModels'],this['_defaultModel']):new AIReviewCheck(_0x10fba3));}}class AIReviewCustomCheckRun extends AIReviewCheckRun{['_prompt'];['_model'];constructor(_0x228528,_0x53044b,_0x153882,_0x2508a2,_0x34b86d){super(_0x153882,_0x2508a2,_0x34b86d),this['_prompt']=_0x228528,this['_model']=_0x53044b;}get['subTitle'](){return this['_prompt'];}['_createApiRequest'](){return this['_aiConnector']['callCustomReview']({'content':this['_documentData']['content'],'prompt':this['_prompt'],'model':this['_model']});}['_sendRatingRequest'](_0x148fd2,_0x580276,_0x2f77e4){return this['_aiConnector']['upsertCustomAIReviewRating'](_0x580276,_0x148fd2,_0x2f77e4);}}class AIReviewExtraCheckRun extends AIReviewCustomCheckRun{get['subTitle'](){return'';}set['prompt'](_0xef3794){this['_prompt']=_0xef3794;}set['model'](_0x26eb9e){this['_model']=_0x26eb9e;}}class AIReviewModeController extends AIReviewCoreController{static get['pluginName'](){return'AIReviewModeController';}['_isDiffOn']=!0x1;['_hasDefaultAvailableCommands']=!0x1;constructor(_0x2d488b){super(_0x2d488b),this['_hasDefaultAvailableCommands']=!this['context']['config']['get']('ai.review.availableCommands'),this['context']['config']['define']('ai.review.availableCommands',AI_REVIEW_CHECKS['map'](_0x531cb3=>_0x531cb3['id'])),this['context']['config']['define']('ai.review.extraCommands',[]);}async['init'](){await super['init'](),this['listenTo'](this['_aiReviewCoreUi'],'toggleDiff',(_0x51c935,_0x2d2442)=>{this['_isDiffOn']=_0x2d2442['on'],this['_onDiffChange'](this['_isDiffOn']);});}['_initRequiredPlugins'](){super['_initRequiredPlugins'](),this['_aiReviewCoreUi']=this['context']['plugins']['get']('AIReviewModeUI'),this['_aiReviewCoreEditing']=this['context']['plugins']['get']('AIReviewCoreEditing');}['_createReviewCheckRun'](_0x15467f,_0x42a98a){return _0x15467f['isCustom']?new AIReviewCustomCheckRun(_0x15467f['args']['prompt'],_0x15467f['args']['model'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x42a98a,this['_aiConnector']):_0x42a98a['isExtra']?new AIReviewExtraCheckRun(_0x42a98a['prompt'],_0x42a98a['defaultModel']['id'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x42a98a,this['_aiConnector']):new AIReviewSystemCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x42a98a,this['_aiConnector'],_0x15467f['params'],_0x15467f['args']);}['_onReviewCheckResultActivated'](_0x10cc23){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x10cc23['change']['id']),this['_scrollToChange'](_0x10cc23['change']['id']);const _0x50878f=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x10cc23['change']['id']);if(!_0x50878f)return;const _0x2986a3=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x10cc23['change'],()=>_0x50878f['getElement'](),void 0x0,'click',_0x2986a3?.['editing']?.['view']?.['getDomRoot'](),_0x2986a3?.['ui']?.['viewportOffset']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x10cc23['change']['id']);}['_onReviewCheckResultDeactivated'](){this['_aiReviewCoreUi']['resetActiveStateInResults'](),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']();}['_onActivateChange'](_0xad054a){this['_currentReviewCheckRun']&&'click'===_0xad054a['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0xad054a['id']));}['_onDeactivateChange'](_0x28cdc9){this['_currentReviewCheckRun']&&'balloon'===_0x28cdc9['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x5532f8,_0x5dfae9){if(!this['_currentReviewCheckRun'])return;this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x5dfae9['changeId']);const _0xd21cf4=this['_currentReviewCheckRun']['getChangeById'](_0x5dfae9['changeId']);if(!_0xd21cf4)return;const _0x3af75a=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0xd21cf4,_0x5dfae9['markerElement'],_0x5dfae9['domEvent'],'click',_0x3af75a?.['editing']?.['view']?.['getDomRoot'](),_0x3af75a?.['ui']?.['viewportOffset']);}['_onChangeMarkerHovered'](_0xc8600a,_0x940eb7){if(!this['_currentReviewCheckRun'])return;if(this['_currentReviewCheckRun']['isAnyChangeActivated']())return;const _0x30faf7=this['_currentReviewCheckRun']['getChangeById'](_0x940eb7['changeId']);if(!_0x30faf7)return;const _0x4f17af=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x30faf7,_0x940eb7['markerElement'],_0x940eb7['domEvent'],'hover',_0x4f17af?.['editing']?.['view']?.['getDomRoot'](),_0x4f17af?.['ui']?.['viewportOffset']);}['_onChangeMarkerBlurred'](){if(!this['_currentReviewCheckRun'])return;this['_currentReviewCheckRun']['isAnyChangeActivated']()||this['_aiReviewCoreUi']['hideChangeBalloon']();}['_getChangeContentElement'](_0x33495){const _0x4f44bd=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x33495);return _0x4f44bd?_0x4f44bd['getElement']():null;}['_markChangePositionInEditorContent'](_0x32a57e,_0x2d4be2){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x32a57e,_0x2d4be2);}['_diffContent'](_0xe65525,_0x4ab1fd){return this['_aiReviewCoreEditing']['diffContent'](_0xe65525,_0x4ab1fd);}['_onReviewCheckRun'](){this['_onDiffChange'](this['_isDiffOn']);}['_onDiffChange'](_0x387e40){const _0x54a0af=this['_aiReviewCoreEditing']['getEditor']();_0x387e40?this['_aiReviewCoreUi']['hideDiffInBalloon']():this['_aiReviewCoreUi']['showDiffInBalloon'](),_0x54a0af&&_0x54a0af['editing']['view']['change'](_0x2d6895=>{const _0x718b0b=_0x54a0af['editing']['view']['document']['getRoot']();for(const _0x5d766e of _0x718b0b['getClassNames']())_0x5d766e['startsWith']('ck-ai_review-')&&_0x2d6895['removeClass'](_0x5d766e,_0x718b0b);_0x2d6895['addClass'](_0x387e40?'ck-ai_review-diff':'ck-ai_review-highlights',_0x718b0b);});}async['_getChecksList'](){const _0x2c75cf=[...AI_REVIEW_CHECKS,...this['_getExtraChecks']()],_0x51b9ad=this['context']['config']['get']('ai.review.availableCommands')||[];this['_logErrorForNonExistentChecks'](_0x51b9ad,_0x2c75cf);let _0x33a32e=_0x2c75cf;this['_hasDefaultAvailableCommands']||(_0x33a32e=_0x51b9ad['map'](_0x3d3360=>_0x2c75cf['find'](_0x3c110d=>_0x3c110d['id']===_0x3d3360))['filter'](_0xd8055d=>!!_0xd8055d)),_0x33a32e=_0x33a32e['map'](_0x32fb33=>_0x32fb33['isExtra']?_0x32fb33:this['_translateReviewCheck'](_0x32fb33));const _0x16afde=_0x33a32e['some'](_0x4e85bc=>_0x4e85bc['isExtra']||'custom'===_0x4e85bc['id']);let _0xe9a31c=[],_0x59ebfe=[],_0x42dd22=null;if(_0x16afde){const _0x480627=await this['_getModels']();_0xe9a31c=_0x480627['all'],_0x59ebfe=_0x480627['recommended'],_0x42dd22=_0x480627['default'];}const _0x78d241=new AIReviewModeCheckList(_0xe9a31c,_0x59ebfe,_0x42dd22);return _0x78d241['setupChecks'](_0x33a32e),_0x16afde&&this['_filterChecksWithMissingModel'](_0x78d241),_0x78d241;}['_getExtraChecks'](){return(this['context']['config']['get']('ai.review.extraCommands')||[])['map'](_0x1af19c=>({'id':_0x1af19c['id'],'commandId':_0x1af19c['id'],'title':_0x1af19c['label'],'description':_0x1af19c['description'],'isParameterized':!0x1,'isExtra':!0x0,'prompt':_0x1af19c['prompt'],'model':_0x1af19c['model']}));}['_logErrorForNonExistentChecks'](_0x3b4844,_0x19c35c){const _0x3470ca=_0x3b4844['filter'](_0x169dd0=>!_0x19c35c['some'](_0x5eca98=>_0x5eca98['id']===_0x169dd0));_0x3470ca['length']&&this['_logError'](new CKEditorError('ai-review-mode-non-existent-commands-used',this,{'commandIds':_0x3470ca['join'](',\x20')}),!0x0);}async['_getModels'](){try{const _0x2b65dc=new AIModels({'connector':this['_aiConnector'],'config':this['context']['config']['get']('ai.models'),'locale':this['context']['locale']});return{'all':await _0x2b65dc['getAll'](),'recommended':await _0x2b65dc['getAvailableModels'](),'default':await _0x2b65dc['getDefault']()};}catch(_0x377e13){return this['_logError'](new CKEditorError('ai-review-mode-models-unable-to-retrieve',this,void 0x0,_0x377e13)),{'all':[],'recommended':[],'default':null};}}['_translateReviewCheck'](_0x23e85f){const _0x23ccf7='AI_REVIEW_CHECK_'+_0x23e85f['id']['toUpperCase']()['replaceAll']('-','_'),_0x5d96b6={..._0x23e85f,'title':this['_getTranslationWithDefault'](_0x23ccf7+'_TITLE',_0x23e85f['title']),'description':this['_getTranslationWithDefault'](_0x23ccf7+'_DESCRIPTION',_0x23e85f['description'])};return _0x23e85f['options']&&(_0x5d96b6['options']=_0x23e85f['options']['map'](_0x3dab2e=>({..._0x3dab2e,'label':this['_getTranslationWithDefault'](_0x23ccf7+'_OPTIONS_LABEL',_0x3dab2e['label']||''),'data':_0x3dab2e['data']?_0x3dab2e['data']['map'](_0x243ef8=>({..._0x243ef8,'label':this['_getTranslationWithDefault'](_0x23ccf7+'_OPTIONS_DATA_'+_0x243ef8['id']['toUpperCase'](),_0x243ef8['label'])})):void 0x0}))),_0x5d96b6;}['_filterChecksWithMissingModel'](_0x4c1b72){const _0x7f6eef=[];_0x4c1b72['checks']['forEach'](_0x211854=>{(_0x211854 instanceof AIReviewCheckExtra&&!_0x211854['defaultModel']||_0x211854 instanceof AIReviewCheckCustom&&!_0x211854['models']['length'])&&_0x7f6eef['push'](_0x211854['id']);}),_0x7f6eef['length']&&_0x7f6eef['forEach'](_0x5c8e92=>{_0x4c1b72['removeCheckById'](_0x5c8e92),this['_logError'](new CKEditorError('ai-review-mode-command-unavailable-due-to-missing-model',this,{'commandId':_0x5c8e92}),!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'](_0x5c9149){this['_checks']=_0x5c9149['map'](_0x4e4ae8=>new AITranslateCheck(_0x4e4ae8));}}class AITranslateCheckRun extends AIReviewSystemCheckRun{['_title'];constructor(_0x5dd911,_0xbe8d5c,_0x1853cb,_0x455d25,_0x9b8161,_0x557950){super(_0x5dd911,_0xbe8d5c,_0x1853cb,_0x9b8161,_0x557950),this['_title']=_0x455d25;}get['title'](){return this['_title'];}get['subTitle'](){return this['_sourceCheck']['title'];}}class AITranslateController extends AIReviewCoreController{static get['pluginName'](){return'AITranslateController';}constructor(_0x4b0b3a){super(_0x4b0b3a),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'](_0x3aa9d2,_0x52ef8f){return new AITranslateCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x52ef8f,this['_aiConnector'],getTranslation$i(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),_0x3aa9d2['params'],_0x3aa9d2['args']);}['_onReviewCheckResultActivated'](_0x2df275){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x2df275['change']['id']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x2df275['change']['id']);}['_onReviewCheckResultDeactivated'](){this['_aiReviewCoreEditing']['setAllMarkersAsInactive'](),this['_aiReviewCoreUi']['resetActiveStateInResults']();}['_onActivateChange'](_0x551280){this['_currentReviewCheckRun']&&('hover'===_0x551280['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0x551280['id'])),'click'===_0x551280['uiInteraction']&&this['_scrollToChange'](_0x551280['id']));}['_onDeactivateChange'](_0x1ddceb){this['_currentReviewCheckRun']&&'panel'===_0x1ddceb['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x38fece,_0x22e116){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x22e116['changeId']),this['_scrollToChange'](_0x22e116['changeId']));}['_onChangeMarkerHovered'](_0x4a10c5,_0x5ab2e5){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x5ab2e5['changeId']),this['_aiReviewCoreEditing']['reactivateMarkers'](_0x5ab2e5['changeId']));}['_onChangeMarkerBlurred'](){this['_currentReviewCheckRun']&&'content'===this['_changeActivationSource']&&(this['_currentReviewCheckRun']['deactivateChange'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']());}['_getChangeContentElement'](_0x536b02){return this['_aiReviewCoreEditing']['getContentElementForChange'](_0x536b02);}['_markChangePositionInEditorContent'](_0x4d5bb1,_0x182992){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x4d5bb1,_0x182992);}['_diffContent'](_0x13e813,_0x4f90c4){return this['_aiReviewCoreEditing']['diffContent'](_0x13e813,_0x4f90c4,!0x0);}['_onReviewCheckRun'](){const _0x220e71=this['_aiReviewCoreEditing']['getEditor']();_0x220e71&&_0x220e71['editing']['view']['change'](_0x328b00=>{const _0x573bc9=_0x220e71['editing']['view']['document']['getRoot']();for(const _0x4d2505 of _0x573bc9['getClassNames']())(_0x4d2505['startsWith']('ck-ai-review-')||'ck-ai-translate-'===_0x4d2505)&&_0x328b00['removeClass'](_0x4d2505,_0x573bc9);_0x328b00['addClass']('ck-ai-translate-mode-content',_0x573bc9);});}async['_getChecksList'](){const _0x1db533=[],_0x5cc7e4=this['context']['config']['get']('ai.translate.languages')||[];for(const _0xa61509 of _0x5cc7e4)_0x1db533['push']({'title':_0xa61509['label'],'id':_0xa61509['id'],'commandId':_0xa61509['id'],'description':'','isParameterized':!0x1,'useArgs':!0x0,'args':{'language':_0xa61509['id']}});const _0x263564=new AITranslateCheckList();return _0x263564['setupChecks'](this['_translateChecks'](_0x1db533)),_0x263564;}['_translateChecks'](_0x21a26f){return _0x21a26f['map'](_0x3ddece=>{const _0x175684='AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_'+_0x3ddece['title']['toUpperCase']()['replaceAll']('-','_');return{..._0x3ddece,'title':this['_getTranslationWithDefault'](_0x175684,_0x3ddece['title'])};});}}class AITranslateCheckResultsView extends AIReviewCoreUICheckResultsView{constructor(_0x56d296,_0x3260f1){super(_0x56d296,_0x3260f1),this['on']('set:isLoading',(_0x2e9cf0,_0x351157,_0x93fb3)=>{_0x93fb3&&(this['headerTitle']=getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE'));}),this['on']('set:isResultReady',(_0x345e97,_0x9f5402,_0x2407f1)=>{_0x2407f1&&(this['headerTitle']=getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE'));});}['_createAcceptAllButtonView'](){const _0x556e87=super['_createAcceptAllButtonView']();return _0x556e87['set']('label',getTranslation$i(this['locale'],'AI_TRANSLATE_ACCEPT_ALL')),_0x556e87;}['_createExitReviewButtonView'](){const _0x50c73a=super['_createExitReviewButtonView']();return _0x50c73a['set']('label',getTranslation$i(this['locale'],'AI_CHAT_HISTORY_CANCEL')),_0x50c73a;}}class AITranslateCheckListView extends AIReviewCoreReviewCheckListView{['_setupTemplate'](){const _0x13740b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-translate__check-list-wrapper',_0x13740b['if']('isVisible','ck-hidden',_0x3bcd6a=>!_0x3bcd6a)]},'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',_0x13740b['if']('isVisible','ck-hidden',_0x208cdb=>!_0x208cdb)]},'children':this['_checkViews']}]});}}class AITranslateUI extends AIReviewCoreUI{static get['pluginName'](){return'AITranslateUI';}['createMainView'](){const _0x12c42f=this['context']['locale'],_0x1d689b=new FormHeaderView(_0x12c42f,{'label':getTranslation$i(_0x12c42f,'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'icon':IconAITranslate$1,'class':'ck-ai-header\x20ck-ai-header_review-translate'}),_0x3cb4a9=new AIReviewCoreView(_0x12c42f,{'header':_0x1d689b,'list':new AITranslateCheckListView(_0x12c42f),'results':new AITranslateCheckResultsView(_0x12c42f,{'generalErrorText':getTranslation$i(_0x12c42f,'AI_TRANSLATE_GENERAL_ERROR_MESSAGE')}),'completed':new AIReviewCoreReviewCompletedView(_0x12c42f,{'headerText':getTranslation$i(_0x12c42f,'AI_TRANSLATE_FINISH_HEADER_TITLE'),'emptyResultsText':getTranslation$i(_0x12c42f,'AI_TRANSLATE_EMPTY_RESULTS_TEXT'),'buttonText':getTranslation$i(_0x12c42f,'AI_TRANSLATE_FINISH_BUTTON_LABEL')})});return _0x3cb4a9['extendTemplate']({'attributes':{'class':'ck-ai-translate-mode'}}),_0x3cb4a9;}['registerTab'](){const _0x118a3c=this['context']['plugins']['get']('AITabs');_0x118a3c['view']['on']('activateTab',(_0x576eaf,_0xd5e19b)=>{'translate'===_0xd5e19b?this['fire']('getReviewCheckList'):this['fire']('leaveReview');}),_0x118a3c['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 _0x210666{['_transformCallback'];constructor(_0x596b81,_0x3040c2){super(_0x596b81),this['_transformCallback']=_0x3040c2;}['execute'](){const _0x4a81e4=this['editor']['model'],_0x59df3e=Array['from'](this['_getAffectedRanges']()),_0x2f5369=Array['from'](_0x4a81e4['document']['selection']['getRanges']());_0x4a81e4['change'](_0x2c2ea8=>{for(const _0x29ff4b of _0x59df3e)this['_modifyContent'](_0x29ff4b,_0x2c2ea8);_0x2c2ea8['setSelection'](_0x2f5369);});}['refresh'](){for(const _0x496744 of this['_getAffectedRanges']())for(const _0x9a44a0 of _0x496744)if(_0x9a44a0['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x3c610d=this['editor']['model'],_0x17ac9f=_0x3c610d['document']['selection'];if(_0x17ac9f['isCollapsed']){const _0x4d8aea=this['_findAncestorTextBlock'](_0x17ac9f['getFirstPosition']()['parent']);return _0x4d8aea?[_0x3c610d['createRangeIn'](_0x4d8aea)]:[];}return _0x17ac9f['getRanges']();}['_modifyContent'](_0x175dee,_0x3879ea){for(const _0x47be64 of this['_getElementsAllowingText'](_0x175dee)){const _0x1923ce=this['_getElementTextContent'](_0x47be64),_0x66ad0a=this['_transformCallback'](_0x1923ce);for(const _0x39a697 of this['_getTextNodesRangeLimited'](_0x47be64,_0x175dee))this['_replaceTextNodeData'](_0x39a697,_0x66ad0a,_0x3879ea);}}['_findAncestorTextBlock'](_0x568a1e){const _0x28773f=this['editor']['model']['schema'];if(_0x568a1e['is']('element')&&_0x28773f['checkChild'](_0x568a1e,'$text'))return _0x568a1e;const _0x2a4595=_0x568a1e['parent'];return!_0x2a4595||_0x28773f['isLimit'](_0x568a1e)?null:this['_findAncestorTextBlock'](_0x2a4595);}*['_getElementsAllowingText'](_0x506eee){const _0x1607d4=new Set();for(const {item:_0x55a0e6}of _0x506eee['getWalker']()){const _0x689d52=this['_findAncestorTextBlock'](_0x55a0e6);_0x689d52&&!_0x1607d4['has'](_0x689d52)&&(_0x1607d4['add'](_0x689d52),yield _0x689d52);}}['_getElementTextContent'](_0xbd86f1){return Array['from'](_0xbd86f1['getChildren']())['reduce']((_0x5c3524,_0x3e0c83)=>_0x5c3524+(_0x3e0c83['is']('$text')?_0x3e0c83['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x41f317,_0x2da034){const _0xfd77bc=_0x2da034['getIntersection'](this['editor']['model']['createRangeIn'](_0x41f317));if(_0xfd77bc){for(const _0x156d21 of _0xfd77bc['getItems']())_0x156d21['is']('$textProxy')&&_0x156d21['parent']==_0x41f317&&(yield _0x156d21);}}['_replaceTextNodeData'](_0x58e882,_0x4d1bac,_0x460d5f){const _0x11cbf3=_0x4d1bac['substring'](_0x58e882['startOffset'],_0x58e882['endOffset']);if(_0x11cbf3===_0x58e882['data'])return;const _0x113361=_0x58e882['getAttributes']();this['editor']['model']['insertContent'](_0x460d5f['createText'](_0x11cbf3,_0x113361),_0x460d5f['createSelection'](_0x460d5f['createRangeOn'](_0x58e882)));}}function getTranslation$g(_0xf7724d,_0x318ded,..._0x1b9d8a){const t=_0xf7724d['t'];switch(_0x318ded){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',..._0x1b9d8a);default:return _0x318ded;}}class CaseChangeEditing extends Plugin{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3402ae=this['editor'],_0x240944=_0x3402ae['locale']['contentLanguage'],_0x105051=normalizeExcludeWordCallback(_0x3402ae['config']['get']('caseChange.titleCase.excludeWords')),_0x14f8da={'changeCaseUpper':new CaseChangeCommand(_0x3402ae,_0x403319=>_0x403319['toLocaleUpperCase'](_0x240944)),'changeCaseLower':new CaseChangeCommand(_0x3402ae,_0x213bdb=>_0x213bdb['toLocaleLowerCase'](_0x240944)),'changeCaseTitle':new CaseChangeCommand(_0x3402ae,_0x3deb60=>capitalizeText(_0x3deb60,_0x105051,_0x240944))};for(const [_0x1c48b4,_0x467efb]of Object['entries'](_0x14f8da))_0x3402ae['commands']['add'](_0x1c48b4,_0x467efb),_0x467efb['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x1c48b4);});this['listenTo'](_0x3402ae['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x3402ae['keystrokes']['set']('shift+f3',(_0x465dca,_0x56e075)=>{const _0x4ebc2c=_getOptions(this['editor']['locale']),_0x3a90c1=_0x4ebc2c[this['_currentCommandIndex']%_0x4ebc2c['length']]['commandName'];_0x3402ae['execute'](_0x3a90c1),this['_currentCommandIndex']++,_0x56e075();});}['afterInit'](){checkLicense$i(this);}['_announceCaseChangeOperation'](_0x3bdf11){const {ui:_0x1a0f9b,locale:_0x316970}=this['editor'],_0x16ca3e=_getOptions(_0x316970)['find'](_0x3936d2=>_0x3936d2['commandName']===_0x3bdf11)['label']['toLowerCase']();_0x1a0f9b['ariaLiveAnnouncer']['announce'](getTranslation$g(_0x316970,'Changed\x20case\x20to\x20%0',_0x16ca3e));}}function _getOptions(_0x51394d){return[{'label':getTranslation$g(_0x51394d,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':getTranslation$g(_0x51394d,'lowercase'),'commandName':'changeCaseLower'},{'label':getTranslation$g(_0x51394d,'Title\x20Case'),'commandName':'changeCaseTitle'}];}function capitalizeText(_0x40bb9c,_0x2d415f,_0x49ea67){return replaceWords(_0x40bb9c,(_0x408ee1,_0x16bf46,_0x212430)=>{const _0x27ee0d=_0x408ee1['toLocaleLowerCase'](_0x49ea67);return _0x2d415f(_0x27ee0d,{'charOffset':_0x16bf46,'wordIndex':_0x212430,'blockText':_0x40bb9c})?_0x27ee0d:_0x27ee0d['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x43b454=>_0x43b454['toLocaleUpperCase'](_0x49ea67));});}function replaceWords(_0x3f3e56,_0xe878f4){let _0x8c76c7='',_0x4a1655=0x0,_0x46c4b4=0x0;for(const _0x29b8fc of _0x3f3e56['matchAll'](/ +/g)){const _0x2efc41=_0x29b8fc['index'],_0x33c4cb=_0x3f3e56['substring'](_0x4a1655,_0x2efc41);_0x33c4cb['length']&&(_0x8c76c7+=_0xe878f4(_0x33c4cb,_0x4a1655,_0x46c4b4++)),_0x8c76c7+=_0x29b8fc[0x0],_0x4a1655=_0x2efc41+_0x29b8fc[0x0]['length'];}const _0x38468e=_0x3f3e56['substring'](_0x4a1655);return _0x38468e['length']&&(_0x8c76c7+=_0xe878f4(_0x38468e,_0x4a1655,_0x46c4b4)),_0x8c76c7;}function normalizeExcludeWordCallback(_0x53654f=[]){return'function'==typeof _0x53654f?_0x53654f:(_0x49cbf3,{wordIndex:_0x5149a1})=>_0x5149a1>0x0&&_0x53654f['includes'](_0x49cbf3);}async function checkLicense$i(_0x582b8f){const _0x271703=_0x2350c7([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]),_0x3c864d=window[_0x2350c7([0x44,0x61,0x74,0x65])][_0x2350c7([0x6e,0x6f,0x77])](),_0x1421d5=_0x582b8f[_0x2350c7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b1c84=new window[(_0x2350c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x358402=>{_0x1421d5[_0x2350c7([0x6f,0x6e,0x63,0x65])](_0x2350c7([0x72,0x65,0x61,0x64,0x79]),_0x358402);}),_0x30eab7={[_0x2350c7([0x6b,0x74,0x79])]:_0x2350c7([0x45,0x43]),[_0x2350c7([0x75,0x73,0x65])]:_0x2350c7([0x73,0x69,0x67]),[_0x2350c7([0x63,0x72,0x76])]:_0x2350c7([0x50,0x2d,0x32,0x35,0x36]),[_0x2350c7([0x78])]:_0x2350c7([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]),[_0x2350c7([0x79])]:_0x2350c7([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]),[_0x2350c7([0x61,0x6c,0x67])]:_0x2350c7([0x45,0x53,0x32,0x35,0x36])},_0x277b28=_0x1421d5[_0x2350c7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2350c7([0x67,0x65,0x74])](_0x2350c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x589651=await(async function(){let _0x4433e2,_0x5335e2=null,_0x25d43f=null;try{if(_0x277b28==_0x2350c7([0x47,0x50,0x4c]))return _0x2350c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4433e2=(function(){const _0x218381=_0x277b28[_0x2350c7([0x73,0x70,0x6c,0x69,0x74])](_0x2350c7([0x2e]));if(0x3!=_0x218381[_0x2350c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x60638d=_0x218381[0x1];return _0x30aa8b(_0x60638d);function _0x30aa8b(_0x4396dc){const _0x59c4c4=_0x2787e6(_0x4396dc);return _0x59c4c4&&_0x4e1a4b()?_0x59c4c4:null;function _0x4e1a4b(){const _0x3981e4=_0x59c4c4[_0x2350c7([0x6a,0x74,0x69])],_0x494c41=window[_0x2350c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3981e4[_0x2350c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3981e4[_0x2350c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x323bae={..._0x59c4c4,[_0x2350c7([0x6a,0x74,0x69])]:_0x3981e4[_0x2350c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3981e4[_0x2350c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x323bae[_0x2350c7([0x76,0x63])],_0x1367d6(_0x323bae)==_0x494c41;}}}()),!_0x4433e2)return _0x2350c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4433e2[_0x2350c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25d43f=function(_0x12a7c8,_0xfffdfe){return new window[(_0x2350c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x556523=>{if(_0x1a7fd2())return _0x556523(_0x2350c7([0x56,0x61,0x6c,0x69,0x64]));_0x58227c(),_0x1421d5[_0x2350c7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2350c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42bf3f=!0x1;const _0x58ccb9=uid();function _0x10cc89(_0x5ba734){return!!_0x5ba734&&(typeof _0x5ba734===_0x2350c7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ba734===_0x2350c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ba734[_0x2350c7([0x74,0x68,0x65,0x6e])]===_0x2350c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ba734[_0x2350c7([0x63,0x61,0x74,0x63,0x68])]===_0x2350c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25bd56(_0x34571f){_0x3995b7(_0x34571f)[_0x2350c7([0x74,0x68,0x65,0x6e])](_0x14f400=>{if(!_0x14f400||_0x14f400[_0x2350c7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2350c7([0x6f,0x6b]))return _0x2350c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x409961(_0x1367d6(_0x58ccb9+_0xfffdfe))!=_0x14f400[_0x2350c7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2350c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2350c7([0x56,0x61,0x6c,0x69,0x64]);})[_0x2350c7([0x74,0x68,0x65,0x6e])](_0x429d38=>(_0x32b67c(),_0x429d38),()=>{const _0x1046d5=_0x13f32f();return null==_0x1046d5?(_0x32b67c(),_0x2350c7([0x56,0x61,0x6c,0x69,0x64])):_0x2350c7(_0x3c864d-_0x1046d5>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2350c7([0x74,0x68,0x65,0x6e])](_0x556523)[_0x2350c7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x556523(_0x2350c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a96dc=0x36ee80;function _0x32b67c(){const _0x4794a6=_0x2350c7([0x6c,0x6c,0x63,0x74,0x2d])+_0x409961(_0x1367d6(_0x12a7c8)),_0x362032=_0x21a4e6(_0x409961(window[_0x2350c7([0x4d,0x61,0x74,0x68])][_0x2350c7([0x63,0x65,0x69,0x6c])](_0x3c864d/_0x4a96dc)));window[_0x2350c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2350c7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4794a6,_0x362032);}function _0x13f32f(){const _0x5251e=_0x2350c7([0x6c,0x6c,0x63,0x74,0x2d])+_0x409961(_0x1367d6(_0x12a7c8)),_0x5035e8=window[_0x2350c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2350c7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5251e);return _0x5035e8?window[_0x2350c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21a4e6(_0x5035e8),0x10)*_0x4a96dc:null;}function _0x3995b7(_0x397466){return new window[(_0x2350c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51997f,_0xdb93c4)=>{_0x397466[_0x2350c7([0x74,0x68,0x65,0x6e])](_0x51997f,_0xdb93c4),window[_0x2350c7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdb93c4,0x1d4c0);});}}_0x1421d5[_0x2350c7([0x6f,0x6e])](_0x2350c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x202eda,_0x2021a6)=>{if(_0x2021a6[0x0]!=_0x12a7c8)return _0x556523(_0x2350c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2021a6[0x1]={..._0x2021a6[0x1],[_0x2350c7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58ccb9};},{[_0x2350c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2350c7([0x68,0x69,0x67,0x68])}),_0x1421d5[_0x2350c7([0x6f,0x6e])](_0x2350c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40d1d7=>{_0x10cc89(_0x40d1d7[_0x2350c7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42bf3f=!0x0,_0x25bd56(_0x40d1d7[_0x2350c7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2350c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2350c7([0x6c,0x6f,0x77])}),_0x3b1c84[_0x2350c7([0x74,0x68,0x65,0x6e])](()=>{_0x42bf3f||_0x556523(_0x2350c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a7fd2(){return _0x1421d5[_0x2350c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2350c7([0x76,0x69,0x65,0x77])][_0x2350c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2350c7([0x61,0x75,0x74,0x6f]);}function _0x58227c(){_0x1421d5[_0x2350c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2350c7([0x76,0x69,0x65,0x77])][_0x2350c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2350c7([0x61,0x75,0x74,0x6f]);}}(_0x4433e2[_0x2350c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4433e2[_0x2350c7([0x6a,0x74,0x69])]));const _0x481e44=await(async function(){let _0x1f40b2=!0x0;try{const _0x4d92fd=_0x277b28[_0x2350c7([0x73,0x70,0x6c,0x69,0x74])](_0x2350c7([0x2e])),[_0x4b1bb4,_0x114629,_0x34a36e]=_0x4d92fd;return _0x5030de(_0x4b1bb4),await _0x2eb8da(_0x4b1bb4,_0x114629,_0x34a36e),_0x1f40b2;}catch{return!0x1;}function _0x5030de(_0x4a9b3f){const _0x129122=_0x2787e6(_0x4a9b3f);_0x129122&&_0x129122[_0x2350c7([0x61,0x6c,0x67])]==_0x2350c7([0x45,0x53,0x32,0x35,0x36])||(_0x1f40b2=!0x1);}async function _0x2eb8da(_0x25da45,_0x2fd6ce,_0x30b872){const _0x2dd4d9=window[_0x2350c7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2350c7([0x66,0x72,0x6f,0x6d])](_0x2a16d6(_0x30b872),_0x187e5b=>_0x187e5b[_0x2350c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c4e6e=new window[(_0x2350c7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2350c7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25da45+_0x2350c7([0x2e])+_0x2fd6ce),_0x5dc6eb=window[_0x2350c7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2350c7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5dc6eb)return;const _0x130f4e=await _0x5dc6eb[_0x2350c7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2350c7([0x6a,0x77,0x6b]),_0x30eab7,{[_0x2350c7([0x6e,0x61,0x6d,0x65])]:_0x2350c7([0x45,0x43,0x44,0x53,0x41]),[_0x2350c7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2350c7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2350c7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5dc6eb[_0x2350c7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2350c7([0x6e,0x61,0x6d,0x65])]:_0x2350c7([0x45,0x43,0x44,0x53,0x41]),[_0x2350c7([0x68,0x61,0x73,0x68])]:{[_0x2350c7([0x6e,0x61,0x6d,0x65])]:_0x2350c7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x130f4e,_0x2dd4d9,_0x4c4e6e)||(_0x1f40b2=!0x1);}}());return _0x481e44?(function(){const _0x585650=_0x4433e2[_0x2350c7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x585650)return!0x1;if(_0x585650[_0x2350c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2350c7([0x2a])))return!0x0;if(_0x585650[_0x2350c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2350c7([0x43,0x43])))return!0x0;if(_0x585650[_0x2350c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2350c7([0x50,0x50])))return!0x0;return!0x1;}())?(function(){const _0x482682=[_0x2350c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2350c7([0x74,0x72,0x69,0x61,0x6c])][_0x2350c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4433e2[_0x2350c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c864d/0x3e8:0x69b0b080;return _0x4433e2[_0x2350c7([0x65,0x78,0x70])]<_0x482682;}())?_0x2350c7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3cd6f5=_0x4433e2[_0x2350c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3cd6f5||0x0==_0x3cd6f5[_0x2350c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e79e2}=new URL(window[_0x2350c7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3cd6f5[_0x2350c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e79e2))return!0x0;const _0x17d85c=_0x3e79e2[_0x2350c7([0x73,0x70,0x6c,0x69,0x74])](_0x2350c7([0x2e]));return _0x3cd6f5[_0x2350c7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b89f1=>_0x3b89f1[_0x2350c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2350c7([0x2a])))[_0x2350c7([0x6d,0x61,0x70])](_0x158b4f=>_0x158b4f[_0x2350c7([0x73,0x70,0x6c,0x69,0x74])](_0x2350c7([0x2e])))[_0x2350c7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x444e30=>_0x444e30[_0x2350c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x17d85c[_0x2350c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2350c7([0x6d,0x61,0x70])](_0x164c0c=>Array(_0x17d85c[_0x2350c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x164c0c[_0x2350c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2350c7([0x66,0x69,0x6c,0x6c])](_0x164c0c[0x0]===_0x2350c7([0x2a])?_0x2350c7([0x2a]):'')[_0x2350c7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x164c0c))[_0x2350c7([0x73,0x6f,0x6d,0x65])](_0x4c1475=>_0x17d85c[_0x2350c7([0x65,0x76,0x65,0x72,0x79])]((_0x54387b,_0x2ce780)=>_0x4c1475[_0x2ce780]===_0x54387b||_0x4c1475[_0x2ce780]===_0x2350c7([0x2a])));}())?(_0x4433e2[_0x2350c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2350c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5335e2=function(_0x34120a){const _0x2e96fd=new window[(_0x2350c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd400c1=>setTimeout(_0xd400c1,0x93ecc)),_0x28c164=_0x3b1c84[_0x2350c7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2350c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f1c00=>{let _0x1376d4=0x0;_0x1421d5[_0x2350c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2350c7([0x6f,0x6e])](_0x2350c7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ba7ad,_0x70bae2)=>{_0x70bae2[0x0][_0x2350c7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1376d4++,0x5e8==_0x1376d4&&(_0x1f1c00(),_0x5ba7ad[_0x2350c7([0x6f,0x66,0x66])]());});})),_0x53254d=[_0x2e96fd,_0x28c164];return window[_0x2350c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2350c7([0x72,0x61,0x63,0x65])](_0x53254d)[_0x2350c7([0x74,0x68,0x65,0x6e])](()=>_0x34120a);}(_0x2350c7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5335e2&&_0x25d43f)return new window[(_0x2350c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3728ab,_0x215cb7)=>{_0x5335e2[_0x2350c7([0x74,0x68,0x65,0x6e])](_0x3728ab,_0x215cb7),_0x25d43f[_0x2350c7([0x74,0x68,0x65,0x6e])](_0x1329fb=>{_0x1329fb!=_0x2350c7([0x56,0x61,0x6c,0x69,0x64])&&_0x3728ab(_0x1329fb);},_0x215cb7);});return _0x5335e2||_0x25d43f||_0x2350c7([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2350c7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2350c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2350c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2350c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2787e6(_0x1f489f){return _0x1f489f[_0x2350c7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2350c7([0x65,0x79]))?JSON[_0x2350c7([0x70,0x61,0x72,0x73,0x65])](_0x2a16d6(_0x1f489f)):null;}function _0x2a16d6(_0x340265){return window[_0x2350c7([0x61,0x74,0x6f,0x62])](_0x340265[_0x2350c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2350c7([0x2b]))[_0x2350c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2350c7([0x2f])));}function _0x1367d6(_0x5c401b){let _0x4da7e1=0x1505;function _0x343fb8(_0x2e2af6){for(let _0x4f578f=0x0;_0x4f578f<_0x2e2af6[_0x2350c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f578f++){const _0x4a6ca0=_0x2e2af6[_0x2350c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f578f);_0x4da7e1=(_0x4da7e1<<0x5)+_0x4da7e1+_0x4a6ca0,_0x4da7e1&=_0x4da7e1;}}return function _0x3a8346(_0x4a665d){Array[_0x2350c7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a665d)?_0x4a665d[_0x2350c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a8346):_0x4a665d&&typeof _0x4a665d==_0x2350c7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2350c7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a665d)[_0x2350c7([0x73,0x6f,0x72,0x74])]()[_0x2350c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2530d6,_0x125426])=>{_0x343fb8(_0x2530d6),_0x3a8346(_0x125426);}):_0x343fb8(window[_0x2350c7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a665d));}(_0x5c401b),_0x4da7e1>>>0x0;}function _0x409961(_0x2515fa){return _0x2515fa[_0x2350c7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2350c7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2350c7([0x30]));}function _0x21a4e6(_0x233520){return _0x233520[_0x2350c7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2350c7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2350c7([0x6a,0x6f,0x69,0x6e])]('');}function _0x477802(){}function _0x2350c7(_0x47e71b){return _0x47e71b['map'](_0x16e76c=>String['fromCharCode'](_0x16e76c))['join']('');}!function(_0x479aca){const _0x3ed75d=(function(){const _0x310f45=window[_0x2350c7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2350c7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2350c7([0x6e,0x6f,0x77])]())[_0x2350c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2350c7([0x2e]),'');let _0x14bce7=_0x2350c7([0x45]);for(let _0x3cf297=0x0;_0x3cf297<_0x310f45[_0x2350c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cf297+=0x2){let _0x3a4a8b=window[_0x2350c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x310f45[_0x2350c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3cf297,_0x3cf297+0x2));_0x3a4a8b>=_0x271703[_0x2350c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a4a8b-=_0x271703[_0x2350c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14bce7+=_0x271703[_0x3a4a8b];}return _0x14bce7;}());_0x1421d5[_0x3ed75d]=_0x2350c7([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x479aca,_0x479aca!=_0x2350c7([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x3b1c84,_0x1421d5[_0x2350c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2350c7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x477802,_0x1421d5[_0x2350c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2350c7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x477802,_0x1421d5[_0x2350c7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2350c7([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x589651);}class CaseChangeUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x159409=this['editor'];this['_registerComponents'](),_0x159409['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$g(_0x159409['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x570cd5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dcdab;for(const _0x118019 in _0x570cd5){const _0x97ed51=_0x118019,_0x16ad2f=_0x570cd5[_0x97ed51];if('caseChangeLicenseKeyValid'==_0x16ad2f||'caseChangeLicenseKeyInvalid'==_0x16ad2f||'caseChangeLicenseKeyExpired'==_0x16ad2f||'caseChangeLicenseKeyDomainLimit'==_0x16ad2f||'caseChangeLicenseKeyNotAllowed'==_0x16ad2f||'caseChangeLicenseKeyEvaluationLimit'==_0x16ad2f||'caseChangeLicenseKeyUsageLimit'==_0x16ad2f){delete _0x570cd5[_0x97ed51],_0x2dcdab=_0x16ad2f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x2dcdab&&_0x570cd5['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x2dcdab&&_0x570cd5['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x2dcdab&&_0x570cd5['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x2dcdab&&_0x570cd5['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x2dcdab&&_0x570cd5['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x2dcdab&&_0x570cd5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x2e59ab=this['editor'],{itemDefinitions:_0x27be18,commands:_0x3ef8a1}=this['_getListItemDefinitionsAndCommands']();_0x2e59ab['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x27be18,_0x3ef8a1)),_0x2e59ab['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x27be18,_0x3ef8a1));}['_createMenuBarMenuView'](_0x28d07f,_0x362c40){const _0x257b60=this['editor'],_0x521b59=_0x257b60['locale'],_0x322a0d=new MenuBarMenuView(_0x521b59),_0x12deb5=new MenuBarMenuListView(_0x521b59);_0x12deb5['set']({'ariaLabel':getTranslation$g(_0x521b59,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x322a0d['buttonView']),_0x322a0d['bind']('isEnabled')['toMany'](_0x362c40,'isEnabled',(..._0x1d5697)=>_0x1d5697['some'](_0x2dbf56=>_0x2dbf56));for(const _0x1de7a8 of _0x28d07f){const _0x13efe1=new MenuBarMenuListItemView(_0x521b59,_0x322a0d),_0x4d53a1=new MenuBarMenuListItemButtonView(_0x521b59);_0x4d53a1['delegate']('execute')['to'](_0x322a0d),_0x4d53a1['bind'](...Object['keys'](_0x1de7a8['model']))['to'](_0x1de7a8['model']),_0x4d53a1['on']('execute',()=>{_0x257b60['execute'](_0x1de7a8['model']['commandName']),_0x257b60['editing']['view']['focus']();}),_0x13efe1['children']['add'](_0x4d53a1),_0x12deb5['items']['add'](_0x13efe1);}return _0x322a0d['panelView']['children']['add'](_0x12deb5),_0x322a0d;}['_createDropdownView'](_0x26b9f0,_0xf632d3){const _0x2de479=this['editor'],_0x1bad51=createDropdown(_0x2de479['locale']);return this['_setButtonProperties'](_0x1bad51['buttonView']),_0x1bad51['buttonView']['set']({'tooltip':!0x0}),_0x1bad51['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),addListToDropdown(_0x1bad51,_0x26b9f0,{'ariaLabel':getTranslation$g(_0x2de479['locale'],'Case\x20change'),'role':'menu'}),_0x1bad51['bind']('isEnabled')['toMany'](_0xf632d3,'isEnabled',(..._0x16c201)=>_0x16c201['some'](_0x116ae9=>_0x116ae9)),this['listenTo'](_0x1bad51,'execute',_0x4694ea=>{_0x2de479['execute'](_0x4694ea['source']['commandName']),_0x2de479['editing']['view']['focus']();}),_0x1bad51;}['_setButtonProperties'](_0x117979){const _0x3d1800=this['editor'];_0x117979['set']({'label':getTranslation$g(_0x3d1800['locale'],'Case\x20change'),'icon':IconCaseChange,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x1ee22b=new Collection(),_0x10a162=[];for(const _0x3090fe of _getOptions(this['editor']['locale'])){const _0x105ae8=this['editor']['commands']['get'](_0x3090fe['commandName']),_0x49fdc8=new UIModel({'commandName':_0x3090fe['commandName'],'label':_0x3090fe['label'],'role':'menuitemradio','withText':!0x0});_0x49fdc8['bind']('isEnabled')['to'](_0x105ae8,'isEnabled'),_0x1ee22b['add']({'type':'button','model':_0x49fdc8}),_0x10a162['push'](_0x105ae8);}return{'itemDefinitions':_0x1ee22b,'commands':_0x10a162};}}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(_0x4e03d1,_0x3b5229){super(),this['model']=_0x4e03d1,this['model']['_isAttached']=!0x0,this['view']=_0x3b5229,this['listenTo'](_0x3b5229,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x3b5229,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x3b5229,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x3b5229,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x3b5229,'addComment',(_0x2b78d0,_0x7241c)=>this['addComment'](_0x7241c)),this['listenTo'](_0x3b5229,'updateComment',(_0x58b7fa,_0x47dba3,_0x32c914)=>this['updateComment'](_0x47dba3,_0x32c914)),this['listenTo'](_0x3b5229,'removeComment',(_0xd7028c,_0x492813)=>this['removeComment'](_0x492813));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x597529){this['model']['addComment']({'content':_0x597529,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x3c2eb0,_0x1a8a34){this['model']['getComment'](_0x3c2eb0)['update']({'content':_0x1a8a34});}['removeComment'](_0x2805d1){this['model']['getComment'](_0x2805d1)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function getTranslation$f(_0x1ea8b7,_0x3d97bc,_0x2d963d){const t=_0x1ea8b7['t'];switch(_0x3d97bc){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'},_0x2d963d);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'},_0x2d963d);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'},_0x2d963d);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'},_0x2d963d);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2d963d);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'},_0x2d963d);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'},_0x2d963d);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'},_0x2d963d);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(_0x568463,_0x388c4f){super(_0x568463);const _0x147858=uid();this['main']=this['createCollection'](),this['editable']=new InlineEditableUIView(_0x568463,_0x388c4f,void 0x0,{'label':()=>getTranslation$f(_0x568463,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x568463['uiLanguageDirection'],'lang':_0x568463['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x147858},'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(_0x257452){super(_0x257452),this['view']=new CommentEditorUIView(_0x257452['locale'],_0x257452['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3791ea=this['editor']['editing']['view'],_0x5d19f7=this['view']['editable'],_0xa0701e=_0x3791ea['document']['getRoot']();_0x5d19f7['name']=_0xa0701e['rootName'],this['view']['render']();const _0x5ed55a=_0x5d19f7['element'];this['setEditableElement'](_0x5d19f7['name'],_0x5ed55a),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3791ea['attachDomRoot'](_0x5ed55a),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(_0x589a0a={}){function _0x4e1f69(_0x20a721){return _0x20a721['map'](_0x374643=>String['fromCharCode'](_0x374643))['join']('');}(_0x589a0a=Object['assign']({},_0x589a0a))['plugins']||(_0x589a0a['plugins']=CommentEditor['defaultPlugins']),super(_0x589a0a),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[_0x4e1f69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e1f69([0x76,0x69,0x65,0x77])][_0x4e1f69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e1f69([0x61,0x75,0x74,0x6f]),this[_0x4e1f69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4e1f69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e1f69([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4e1f69([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4e1f69([0x6f,0x6b])});}['create'](){const _0x5597ec=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x5597ec))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x42d00a=>{const _0x121c8c=this['model']['document']['getRoot'](),_0x354bd1=_0x121c8c&&_0x121c8c['getChild'](_0x121c8c['childCount']-0x1);_0x42d00a['setSelection'](_0x354bd1,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x1cb0b6=this['editing']['view'],_0x52fabe=_0x1cb0b6['document']['getRoot'](),_0x323148=_0x52fabe['getChild'](0x0);_0x52fabe['childCount']>0x1||!_0x323148||'p'!=_0x323148['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(disableViewPlaceholder(_0x1cb0b6,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x323148['placeholder']=this['placeholder']),enableViewPlaceholder({'view':_0x1cb0b6,'element':_0x323148,'keepOnFocus':!0x0}),this['placeholderElement']=_0x323148);}}class CommentInputView extends View{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x2cd843,_0xfbf228={}){super(_0x2cd843),this['editor']=null,this['_editorConfig']=_0xfbf228,this['set']('value',_0xfbf228['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',getTranslation$f(_0x2cd843,'Reply...')),this['set']('submitLabel',getTranslation$f(_0x2cd843,'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',(_0x4631d0,_0x5cc857)=>{this['cancelButtonView']['fire']('execute'),_0x5cc857();}),this['keystrokes']['set']('Ctrl+Enter',(_0x498913,_0x47f264)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x47f264());}),this['on']('submit',(_0x3c2d97,_0x3dc677)=>{_0x3dc677['length']>0xfde8?(alert(getTranslation$f(_0x2cd843,'TOO_LONG_COMMENT_ALERT',[_0x3dc677['length'],0xfde8])),_0x3c2d97['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 _0x5b536b=this['editor'];this['element']['insertBefore'](_0x5b536b['ui']['element'],this['element']['firstChild']),_0x5b536b['model']['document']['on']('change',()=>this['value']=_0x5b536b['getData']()),_0x5b536b['bind']('placeholder')['to'](this),this['focusables']['add'](_0x5b536b['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x4f836a){-0x1===_0x4f836a?(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:_0x1a3627}=this,_0x307ab8=new ButtonView(_0x1a3627);return _0x307ab8['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x307ab8['withText']=!0x0,_0x307ab8['bind']('label')['to'](this,'submitLabel'),_0x307ab8['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x307ab8['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x245b1b,_0x428418)=>!_0x428418&&!!_0x245b1b['trim']()),_0x307ab8;}['_createCancelButton'](){const {locale:_0x4cd44d}=this,_0xff8906=new ButtonView(_0x4cd44d);return _0xff8906['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0xff8906['label']=getTranslation$f(_0x4cd44d,'Cancel'),_0xff8906['withText']=!0x0,_0xff8906['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0xff8906;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0xcb26f9=>{this['focusTracker']['add'](_0xcb26f9['element']);}),this['focusables']['on']('change',(_0x1ef9d1,_0x5f4214)=>{for(const _0x27653f of Array['from'](_0x5f4214['added'])['reverse']())this['focusTracker']['add'](_0x27653f['element']);});}}class CommentThreadInputView extends View{constructor(_0xb9e2a9,_0x5589ef,_0x368616){super(_0xb9e2a9),this['commentInputView']=new CommentInputView(_0xb9e2a9,_0x368616),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x2b71b5,_0x562968)=>_0x2b71b5||!!_0x562968),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(_0xb9e2a9,_0x5589ef),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'](_0x41e244){this['commentInputView']['focus'](_0x41e244);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x4ea12f,_0x3118d2)=>{const {submitButtonView:_0x1ea74c,cancelButtonView:_0x27a985,editor:_0x4f5fd3}=this['commentInputView'];[_0x1ea74c['element'],_0x27a985['element'],_0x4f5fd3?_0x4f5fd3['editing']['view']['getDomRoot']():null]['filter'](_0x13c90c=>_0x13c90c)['some'](_0x423092=>_0x423092['contains'](_0x3118d2['target']))||(this['focus'](),_0x3118d2['preventDefault']());});}}class CollapsedCommentsView extends View{constructor(_0x2b243f){super(_0x2b243f);const _0x57ff63=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x57ff63['to']('count',_0x1d692f=>getTranslation$f(_0x2b243f,'NUMBER_OF_COMMENTS',_0x1d692f))}]});}}class CommentsListView extends View{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x7bee50,_0x9700fc,_0x49860a){super(_0x7bee50);const _0x2bcc1e=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x9700fc['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x9700fc,this['_config']=_0x49860a,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':_0x5693ae=>this['commentViews']['map'](_0x58abb7=>_0x58abb7['element'])['includes'](_0x5693ae['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new CollapsedCommentsView(_0x7bee50),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x42dab7=>_0x42dab7-this['_config']['maxCommentsWhenCollapsed']);for(const _0x246ed0 of _0x9700fc['comments'])this['_handleNewCommentModel'](_0x246ed0);this['_handleInfoComment'](),this['listenTo'](_0x9700fc['comments'],'add',(_0x3eb646,_0x4fc1d3)=>{const _0x3c874=this['_calculatePosition'](_0x4fc1d3);this['length']++,this['_handleNewCommentModel'](_0x4fc1d3,_0x3c874),this['refreshVisibleViews']();}),this['listenTo'](_0x9700fc['comments'],'remove',(_0x2b7b16,_0x2f1116)=>{this['length']--,this['_handleRemoveCommentModel'](_0x2f1116),this['refreshVisibleViews']();}),this['listenTo'](_0x9700fc,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x9700fc,'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',_0x2bcc1e['if']('length','ck-hidden',_0x368419=>!_0x368419)],'aria-label':getTranslation$f(_0x7bee50,'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'](_0x24cfe5){-0x1===_0x24cfe5?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3925a9 of this['commentViews'])_0x3925a9['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1e704a,_0xe5ba4c){const _0x4e0a9c=new this['_config']['CommentView'](this['locale'],_0x1e704a,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x4e0a9c['viewUid']=_0x1e704a['id'],_0x4e0a9c['delegate']('removeComment')['to'](this),_0x4e0a9c['delegate']('updateComment')['to'](this),_0x4e0a9c['delegate']('resolveCommentThread')['to'](this),_0x4e0a9c['delegate']('editorReady')['to'](this),_0x4e0a9c['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x4e0a9c,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x4e0a9c,_0xe5ba4c);}['_calculatePosition'](_0x182141){const _0x10b88f=this['_model']['_findOptimalIndex'](_0x182141);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x182141['authoredAt']?_0x10b88f-0x1:_0x10b88f:_0x10b88f-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x2555ca={'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'],_0x2555ca,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x2555ca));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3af4c7){const _0x2055d5=this['commentViews']['remove'](_0x3af4c7['id']);this['stopListening'](_0x2055d5),_0x2055d5['isEditMode']&&this['_updateHasDirtyComment'](),_0x2055d5['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x4856be=>_0x4856be['isEditMode']);}['_rearrangeCollapse'](){const _0x3c0a8a=cloneCollection(this['commentViews']),_0xbe4f90=this['_collapsedCommentsView']['count'];for(let _0x2a87ab=0x1;_0x2a87ab<=_0xbe4f90;_0x2a87ab++)_0x3c0a8a['remove'](0x1);for(const _0x102438 of _0x3c0a8a)_0x102438['collapse']();_0xbe4f90>0x0&&_0x3c0a8a['add'](this['_collapsedCommentsView'],0x1),applyDiffToCollection(_0x3acf5e(Array['from'](this['visibleViews']),Array['from'](_0x3c0a8a)),this['visibleViews'],_0x3c0a8a);}['_rearrangeExpand'](){applyDiffToCollection(_0x3acf5e(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0xaaacf0 of this['visibleViews'])_0xaaacf0['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x4aba29=>{this['focusTracker']['add'](_0x4aba29['element']),this['keystrokes']['listenTo'](_0x4aba29['element']);}),this['commentViews']['on']('change',(_0xd63249,_0x126335)=>{for(const _0x2895d8 of _0x126335['removed'])this['focusTracker']['remove'](_0x2895d8['element']),this['keystrokes']['stopListening'](_0x2895d8['element']);for(const _0x4ad64a of Array['from'](_0x126335['added'])['reverse']())this['focusTracker']['add'](_0x4ad64a['element']),this['keystrokes']['listenTo'](_0x4ad64a['element']);});}}function cloneCollection(_0x543f69){const _0x587b73=new Collection();for(const _0x2ed9ef of _0x543f69)_0x587b73['add'](_0x2ed9ef);return _0x587b73;}function applyDiffToCollection(_0x397d11,_0x1278a9,_0x451e89){let _0x5305e8=0x0;for(const _0x38455f of _0x397d11)switch(_0x38455f){case'insert':_0x1278a9['add'](_0x451e89['get'](_0x5305e8),_0x5305e8),_0x5305e8++;break;case'delete':_0x1278a9['remove'](_0x5305e8);break;case'equal':_0x5305e8++;}}class CommentThreadHeaderContextView extends View{constructor(_0x1349e9){super(_0x1349e9);const _0x5e2b7f=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x5e2b7f['to']('contextValue',_0x32e502=>getTranslation$f(_0x1349e9,'THREAD_CONTEXT_LABEL',_0x32e502)),'tabindex':-0x1},'children':[{'text':_0x5e2b7f['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}const MAX_CONTENT_LENGTH=0x96;class CommentThreadHeaderView extends View{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3c83d1,_0x41ce81){super(_0x3c83d1);const _0x5609b3=this['bindTemplate'];this['_model']=_0x41ce81,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',_0x2dc593=>!!_0x2dc593),this['bind']('contextValue')['to'](this['_model'],'context',_0x1d8519=>_0x1d8519&&_0x1d8519['value']?this['_trimContextValue'](_0x1d8519['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',_0x5609b3['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 _0x2d8893=new ButtonView(this['locale']);return _0x2d8893['label']=getTranslation$f(this['locale'],'Reopen'),_0x2d8893['tooltip']=getTranslation$f(this['locale'],'Reopen'),_0x2d8893['icon']=IconUndo,_0x2d8893['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1abd7e=>!_0x1abd7e),_0x2d8893['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x427e8a,_0x4b7727)=>_0x427e8a&&_0x4b7727),_0x2d8893['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x2d8893;}['_trimContextValue'](_0xc35965){const _0x449e68=MAX_CONTENT_LENGTH-0x3;if(_0xc35965['length']<MAX_CONTENT_LENGTH)return _0xc35965;const _0x367a1f=_0xc35965['lastIndexOf']('\x20',_0x449e68);return _0xc35965['substring'](0x0,_0x367a1f>-0x1?_0x367a1f:_0x449e68)+'...';}['_attachContextActions'](){const _0x2ac72c=this['element']['querySelector']('.ck-context'),_0x19d590=_0x2ac72c['querySelector']('.ck-context__value');this['listenTo'](_0x2ac72c,'mouseenter',()=>{_0x19d590['offsetWidth']<_0x19d590['scrollWidth']&&_0x2ac72c['classList']['add']('overlay');}),this['listenTo'](_0x2ac72c,'mouseleave',()=>{_0x2ac72c['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x558e36 of this['focusables'])this['focusTracker']['add'](_0x558e36['element']),this['keystrokes']['listenTo'](_0x558e36['element']);}['_createContextView'](){const _0x193924=new CommentThreadHeaderContextView(this['locale']);return _0x193924['bind']('contextValue')['to'](this),_0x193924;}}class BaseCommentThreadView extends View{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xe2442e,_0x4f447b,_0x26ecf0,_0x219d51){super(_0xe2442e),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x4f447b,this['_localUser']=_0x26ecf0,this['_config']=_0x219d51,this['commentThreadHeaderView']=new CommentThreadHeaderView(_0xe2442e,_0x4f447b),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new AriaDescriptionView(_0xe2442e,getTranslation$f(_0xe2442e,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new CommentsListView(_0xe2442e,_0x4f447b,Object['assign']({'CommentView':this['_config']['CommentView']},_0x219d51)),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',(_0x3b13fd,_0x3ec1c7)=>_0x3b13fd||!!_0x3ec1c7),this['bind']('isUnlinked')['to'](_0x4f447b,'unlinkedAt',_0x53787b=>!!_0x53787b),this['bind']('ariaLabel')['to'](this,'length',_0x52afc8=>{const _0x57161e=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return getTranslation$f(this['locale'],'COMMENT_THREAD_LABEL',[_0x52afc8,_0x57161e]);}),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':_0x2c0b3c=>_0x2c0b3c['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 _0x113c7a=new CommentThreadInputView(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x539093=_0x113c7a['commentInputView'];return _0x113c7a['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x539093,'value',(_0x4f4174,_0xca7629,_0x4395c1,_0x297a7a,_0x2fa572)=>!!_0x2fa572||!!_0x297a7a&&_0x4395c1&&!_0xca7629||_0x4f4174&&_0x4395c1&&!_0xca7629),_0x539093['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0xeb5a6d,_0x5438d9,_0xccc3fe)=>{let _0x3e6b28;return _0x3e6b28=_0xccc3fe&&_0x5438d9?'Reply\x20to\x20reopen\x20discussion...':_0xeb5a6d?'Reply...':'Write\x20a\x20comment...',getTranslation$f(this['locale'],_0x3e6b28);}),_0x539093['bind']('submitLabel')['to'](this,'length',_0x15ba12=>getTranslation$f(this['locale'],_0x15ba12?'Reply':'Comment')),_0x539093['on']('submit',(_0x3917a4,_0x49ea8b)=>{this['fire']('addComment',_0x49ea8b),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x539093['on']('cancel',()=>{this['focus']();}),_0x539093['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x539093['on']('cancel',_0x2ea218=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x2ea218['stop']());}),this['on']('change:isActive',(_0xd5abce,_0x84f0f9,_0x5372c6)=>{_0x5372c6||this['length']||_0x539093['value']||this['fire']('removeCommentThread');}),_0x113c7a;}}class CommentThreadView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentThreadView){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x575056,_0x107a74,_0x372ef4,_0x1e2953){super(_0x575056,_0x107a74,_0x372ef4,_0x1e2953),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x575056,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x272b6e,_0x522e16,_0x5d2e96)=>{_0x5d2e96||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x58020c,_0x4617de,_0x410169)=>{_0x410169&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x5d6f02=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x5d6f02['if']('isActive','ck-thread--active'),_0x5d6f02['if']('isUnlinked','ck-thread--unlinked'),_0x5d6f02['to']('actionIndicator',_0x2243a4=>_0x2243a4?'ck-thread--'+_0x2243a4:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x5d6f02['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 _0x4c1e50 of this['commentsListView']['commentViews'])_0x4c1e50['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x23517e}=this,_0x40392b=this['commentsListView']['commentViews']['get'](0x0);_0x40392b===this['_boundFirstCommentView']||_0x40392b['isSystemComment']||(this['_boundFirstCommentView']=_0x40392b,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x40392b,'actionIndicator',_0x450067=>'remove'===_0x450067?'remove':null),_0x40392b['placeholder']=getTranslation$f(_0x23517e,'Write\x20a\x20comment...'),_0x40392b['removeButton']['on']('execute',_0x213ccf=>{_0x213ccf['stop'](),this['showConfirm'](getTranslation$f(_0x23517e,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x40392b['focus']();}),_0x40392b['actionBar']['add'](this['resolveButton'],0x0),_0x40392b['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x382e4c=new LateFocusButtonView(this['locale']);return _0x382e4c['label']=getTranslation$f(this['locale'],'Resolve'),_0x382e4c['tooltip']=getTranslation$f(this['locale'],'Resolve'),_0x382e4c['icon']=IconCheck,_0x382e4c['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x382e4c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x30722d=>!_0x30722d),_0x382e4c['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1a0c64,_0x1c4658)=>_0x1a0c64&&!_0x1c4658),_0x382e4c['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x382e4c;}['_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(_0x3f68ae){super(_0x3f68ae),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x361306,_0x25a202,_0x5df2f1)=>{this['element']['innerHTML']=_0x5df2f1;}),this['element']['innerHTML']=this['content'];}}class BaseCommentView extends View{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x98641a,_0x1afd1e,_0x35d98d){super(_0x98641a),this['_model']=_0x1afd1e,this['_config']=_0x35d98d,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x1afd1e,'content',_0x1afd1e,'authoredAt',(_0x165653,_0x451f8a)=>getTranslation$f(_0x98641a,'COMMENT_ARIA_LABEL',[_0x1afd1e['author']['name'],_0x35d98d['formatDateTime'](_0x451f8a),new DOMParser()['parseFromString'](_0x165653,'text/html')['body']['textContent'],_0x1afd1e['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new AriaDescriptionView(_0x98641a,getTranslation$f(_0x98641a,'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':_0x4a9718=>_0x4a9718['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 _0xbcd797=new CommentContentView(this['locale']);return _0xbcd797['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x587dfe,_0x3c205b)=>_0x3c205b?trimHtml(_0x587dfe,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x587dfe),_0xbcd797;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x5880b6=new CommentInputView(this['locale'],this['_config']['editorConfig']);return _0x5880b6['value']=this['_model']['content'],_0x5880b6['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5880b6['submitLabel']=getTranslation$f(this['locale'],'Save'),_0x5880b6['on']('submit',(_0x9914c,_0x467a8c)=>{this['fire']('updateComment',this['_model']['id'],_0x467a8c),this['switchToDisplayMode'](),this['focus']();}),_0x5880b6['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x5880b6['once']('editorReady',()=>{_0x5880b6['focus']();}),_0x5880b6['createEditor'](),_0x5880b6['delegate']('editorReady')['to'](this),_0x5880b6['delegate']('editorDestroyed')['to'](this),_0x5880b6;}['_setupKeyboardNavigation'](){const _0x4a0eb3=this['element'];this['keystrokes']['listenTo'](_0x4a0eb3);for(const _0x1f3021 of this['focusables'])this['focusTracker']['add'](_0x1f3021['element']),this['keystrokes']['listenTo'](_0x1f3021['element']);this['focusables']['on']('change',(_0x1e2c1e,_0xa87581)=>{for(const _0x3a6de5 of _0xa87581['removed'])this['focusTracker']['remove'](_0x3a6de5['element']),this['keystrokes']['stopListening'](_0x3a6de5['element']);for(const _0x525218 of _0xa87581['added'])this['focusTracker']['add'](_0x525218['element']),this['keystrokes']['listenTo'](_0x525218['element']);}),this['keystrokes']['set']('enter',(_0x302875,_0x9078fc)=>{_0x4a0eb3===_0x302875['target']&&(this['focusCycler']['focusFirst'](),_0x9078fc());}),this['keystrokes']['set']('esc',(_0x22e373,_0x215ecd)=>{_0x4a0eb3!==_0x22e373['target']&&(this['focus'](),_0x215ecd());});}}class CommentView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentView){['actionBar'];['userView'];constructor(_0x26d9e9,_0x2f2241,_0x27ac02){super(_0x26d9e9,_0x2f2241,_0x27ac02),this['set']('actionIndicator',null),this['set']('placeholder',getTranslation$f(_0x26d9e9,'Reply...')),this['bind']('authoredAt')['to'](_0x2f2241),this['bind']('resolvedAt')['to'](_0x2f2241),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(_0x26d9e9,_0x2f2241['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x2f2241,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x17ed28=this['bindTemplate'],_0x3cd06d=[{'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':_0x17ed28['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x17ed28['to']('authoredAt',_0xac2eeb=>this['_config']['formatDateTime'](_0xac2eeb))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x17ed28['if']('isEditMode','ck-comment__actions--hidden'),_0x17ed28['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']&&_0x3cd06d['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x17ed28['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x17ed28['if']('isEditMode','ck-comment--edit'),_0x17ed28['if']('isSystemComment','ck-comment--info'),_0x17ed28['to']('actionIndicator',_0x55f605=>_0x55f605?'ck-comment--'+_0x55f605:'')],'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':_0x3cd06d}]}]};}['_createEditButton'](){const _0x91c712=new ButtonView(this['locale']);return _0x91c712['label']=getTranslation$f(this['locale'],'Edit'),_0x91c712['icon']=IconPencil,_0x91c712['withText']=!0x0,_0x91c712['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x91c712['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3f3cc3=>!_0x3f3cc3),_0x91c712['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x91c712['on']('execute',()=>this['switchToEditMode']()),_0x91c712;}['_createRemoveButton'](){const _0xb155b2=new ButtonView(this['locale']);return _0xb155b2['label']=getTranslation$f(this['locale'],'Remove'),_0xb155b2['icon']=IconRemoveComment,_0xb155b2['withText']=!0x0,_0xb155b2['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xb155b2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2dc302=>!_0x2dc302),_0xb155b2['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xb155b2['on']('execute',()=>{this['showConfirm'](getTranslation$f(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xb155b2;}['_createDropdown'](){const _0x5ac7f8=createDropdown(this['locale'],LateFocusDropdownButtonView),_0x1b90cf=_0x5ac7f8['panelView']['children'],_0x549b05=new ListView(this['locale']),_0x49aebd=_0x5ac7f8['bindTemplate'];focusChildOnDropdownOpen(_0x5ac7f8,()=>this['items']['find'](_0x401577=>_0x401577['isVisible'])),_0x5ac7f8['extendTemplate']({'attributes':{'class':[_0x49aebd['if']('isVisible','ck-hidden',_0x4fc71e=>!_0x4fc71e)]}});const _0x4f1734=(_0x2b6240,_0xb884b1=-0x1)=>{const _0x51fb4d=new ListItemView(this['locale']);_0x51fb4d['children']['add'](_0x2b6240);const _0x5b8cfe=_0xb884b1>-0x1?_0xb884b1:_0x549b05['items']['length'];_0x549b05['items']['add'](_0x51fb4d,_0x5b8cfe);const _0x19efef=Array['from'](this['items']);_0x5ac7f8['unbind']('isEnabled','isVisible'),_0x5ac7f8['bind']('isEnabled')['toMany'](_0x19efef,'isEnabled',(..._0x240290)=>_0x240290['some'](_0x183b06=>_0x183b06)),_0x5ac7f8['bind']('isVisible')['toMany'](_0x19efef,'isVisible',(..._0x2c6ea3)=>_0x2c6ea3['some'](_0x43c003=>_0x43c003));};_0x5ac7f8['panelPosition']='sw',_0x5ac7f8['buttonView']['set']({'label':getTranslation$f(this['locale'],'Show\x20more\x20items'),'icon':IconThreeVerticalDots});for(const _0x5dee15 of this['items'])_0x4f1734(_0x5dee15);return _0x1b90cf['add'](_0x549b05),_0x5ac7f8['listenTo'](this['items'],'add',(_0x51790e,_0x2d9f6a,_0x2f2a3b)=>{_0x4f1734(_0x2d9f6a,_0x2f2a3b);}),_0x5ac7f8['listenTo'](this['items'],'remove',(_0x125cb2,_0x584044,_0x53a9f3)=>{_0x549b05['items']['remove'](_0x53a9f3);}),_0x5ac7f8;}['_attachActions'](_0x26594b,_0x32ba71){const _0x3a2d7a=_0x26594b&&_0x26594b['element'];_0x3a2d7a&&(this['listenTo'](_0x3a2d7a,'mouseenter',()=>this['actionIndicator']=_0x32ba71),this['listenTo'](_0x3a2d7a,'focus',()=>this['actionIndicator']=_0x32ba71),this['listenTo'](_0x3a2d7a,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x3a2d7a,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x4381ab=super['_createCommentInputView']();return _0x4381ab['bind']('placeholder')['to'](this),_0x4381ab;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function createMutationObserver(_0x9c0b4){const _0x49a2dd=throttle$1(_0x9c0b4,0x1e),_0x45d2a3=new MutationObserver(_0x462d82=>{for(const _0xa78375 of _0x462d82)('attributes'==_0xa78375['type']&&'class'==_0xa78375['attributeName']||'childList'==_0xa78375['type']||'characterData'==_0xa78375['type'])&&_0x49a2dd();});return{'attach'(_0x5d8f2f){_0x45d2a3['observe'](_0x5d8f2f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x45d2a3['disconnect'](),_0x49a2dd['cancel']();}};}class AnnotationView extends View{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x37e951,_0x4cc26d){super(_0x37e951),this['id']=uid(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['keystrokes']['set']('Esc',(_0x4f2e25,_0x362a4c)=>this['fire']('Esc',_0x362a4c)),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'](_0x4cc26d),this['mainView']=_0x4cc26d;const _0x4faf5a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x4faf5a['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 _0x4354d6=this['element']['clientHeight'];_0x4354d6&&(this['height']=_0x4354d6);}}let Annotation$1=class e extends/* #__PURE__ -- @preserve */
ObservableMixin(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x4a3d6a,target:_0x57abdc,type:_0x3d50ef,isVisible:_0x59e3ea=!0x0}){super(),this['view']=_0x4a3d6a,this['view']['element']||this['view']['render'](),this['_type']=_0x3d50ef,this['_target']=_0x57abdc,e['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new Collection([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x5de2fb,_0x485304)=>{this['view']['focusTracker']['add'](_0x485304);}),this['focusableElements']['on']('remove',(_0x382371,_0x46a2fb)=>{this['view']['focusTracker']['remove'](_0x46a2fb);}),this['set']('isVisible',_0x59e3ea);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x285993=this['_getNormalizedTarget']();return e['_assertCorrectTarget'](_0x285993),_0x285993;}get['targetRect'](){const _0x2cc1bc=this['target'];if(null===_0x2cc1bc)return null;if(_0x2cc1bc instanceof Rect)return _0x2cc1bc;const _0x370248=_0x2cc1bc['filter'](_0x1c8ed9=>isDomElementVisible(_0x1c8ed9));return 0x0===_0x370248['length']?null:new Rect(_0x370248[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x11edd9){this['view']['isActive']=_0x11edd9,this['view']['mainView']['isActive']=_0x11edd9;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x2eba3e){if(!(null===_0x2eba3e||_0x2eba3e instanceof Rect||Array['isArray'](_0x2eba3e)&&_0x2eba3e['every'](_0x52da9e=>isElement$1(_0x52da9e))))throw new CKEditorError('annotation-invalid-target',null,{'target':_0x2eba3e});}['_getNormalizedTarget'](){const _0x2b8eb8='function'==typeof this['_target']?this['_target']():this['_target'];return isElement$1(_0x2b8eb8)?[_0x2b8eb8]:_0x2b8eb8;}};function isElement$1(_0xc64633){return null!==_0xc64633&&'object'==typeof _0xc64633&&'nodeType'in _0xc64633&&0x1===_0xc64633['nodeType'];}function isDomElementVisible(_0x1373b6){if(_0x1373b6['offsetParent'])return!0x0;return!!_0x1373b6['getClientRects']()['item'](0x0);}class AnnotationCollection extends Collection{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4b5d10=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new FocusTracker(),this['_focusTracker']['on']('change:isFocused',(_0x369772,_0x409da5,_0x8380ce)=>{_0x8380ce||this['fire']('blur');});for(const _0x57ce07 of _0x4b5d10)this['add'](_0x57ce07);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x411314){if(this['has'](_0x411314))throw new CKEditorError('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x411314['innerView'],_0x411314),this['_viewToAnnotation']['set'](_0x411314['view'],_0x411314);for(const _0x4a98c2 of _0x411314['focusableElements'])this['_focusTracker']['add'](_0x4a98c2);this['listenTo'](_0x411314['focusableElements'],'add',(_0x3cfd94,_0x266097)=>{this['_focusTracker']['add'](_0x266097);}),this['listenTo'](_0x411314['focusableElements'],'remove',(_0x2e366b,_0x4b5ba3)=>{this['_focusTracker']['remove'](_0x4b5ba3);}),this['listenTo'](_0x411314['view']['focusTracker'],'change:isFocused',(_0x26ad00,_0x240972,_0x3bde32)=>{_0x3bde32&&this['fire']('focus',_0x411314);}),_0x411314['updateTargetRect']();const _0x486fd1=this['_getOrderInContent'](_0x411314['view']['targetRect']);return super['add'](_0x411314,_0x486fd1);}['remove'](_0x4c13f3){if(!this['has'](_0x4c13f3))throw new CKEditorError('annotationcollection-not-existing-item',null);this['stopListening'](_0x4c13f3['view']['focusTracker']),this['stopListening'](_0x4c13f3['focusableElements']);for(const _0x1de906 of _0x4c13f3['focusableElements'])this['_focusTracker']['remove'](_0x1de906);return this['_viewToAnnotation']['delete'](_0x4c13f3['view']),this['_innerViewToAnnotation']['delete'](_0x4c13f3['innerView']),super['remove'](_0x4c13f3);}['getByInnerView'](_0x541844){return this['_innerViewToAnnotation']['get'](_0x541844);}['getByView'](_0x3ede1f){return this['_viewToAnnotation']['get'](_0x3ede1f);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x330f36 of this)_0x330f36['updateTargetRect']();this['_sort']();}['_sort'](){const _0x12006c=Array['from'](this)['sort']((_0x5125ca,_0x715e77)=>elementOffsetComparator(_0x5125ca['view']['targetRect'],_0x715e77['view']['targetRect']));for(let _0x29ef31=_0x12006c['length']-0x1;_0x29ef31>0x0;_0x29ef31--){const _0x36fb3e=_0x12006c[_0x29ef31];_0x29ef31!==this['getIndex'](_0x36fb3e)&&(this['remove'](_0x36fb3e),this['add'](_0x36fb3e));}}['_getOrderInContent'](_0x2be768){let _0x2be781=0x0;if(!_0x2be768)return this['length'];for(const _0x2f090a of this){const _0x42ee5f=_0x2f090a['view']['targetRect'];if(_0x42ee5f){if(elementOffsetComparator(_0x2be768,_0x42ee5f)<0x0)return _0x2be781;_0x2be781++;}}return _0x2be781;}}function bindAnnotationCollections({source:_0x35c374,target:_0x890b7,filter:_0x167f36}){for(const _0x41af45 of _0x35c374)_0x167f36(_0x41af45)&&_0x890b7['add'](_0x41af45);_0x890b7['listenTo'](_0x35c374,'add',(_0x5d2c2f,_0x207e65)=>{_0x167f36(_0x207e65)&&_0x890b7['add'](_0x207e65);}),_0x890b7['listenTo'](_0x35c374,'remove',(_0x48714d,_0x1e12ef)=>{_0x890b7['has'](_0x1e12ef)&&_0x890b7['remove'](_0x1e12ef);});}function elementOffsetComparator(_0x243c40,_0x2fa1f7){if(null===_0x243c40&&null===_0x2fa1f7)return 0x0;if(null===_0x243c40)return-0x1;if(null===_0x2fa1f7)return 0x1;const _0x3926bc=_0x243c40['top']-_0x2fa1f7['top'];return 0x0==_0x3926bc?_0x243c40['left']-_0x2fa1f7['left']:_0x3926bc;}class Annotations extends ContextPlugin{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51a831){if(super(_0x51a831),this['collection']=new AnnotationCollection(),this['_visibleAnnotations']=new AnnotationCollection(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x51a831 instanceof Editor){const _0x431c3c=_0x51a831['locale'];_0x51a831['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':getTranslation$f(_0x431c3c,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':getTranslation$f(_0x431c3c,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':getTranslation$f(_0x431c3c,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':getTranslation$f(_0x431c3c,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':getTranslation$f(_0x431c3c,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':getTranslation$f(_0x431c3c,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':getTranslation$f(_0x431c3c,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x17fbc5){this['collection']['add'](_0x17fbc5);}['remove'](_0x454e06){this['collection']['remove'](_0x454e06),_0x454e06['destroy']();}['refreshVisibility'](){for(const _0x47262a of this['collection'])_0x47262a['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x50443f){return this['collection']['getByInnerView'](_0x50443f);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x341690 of this['collection'])_0x341690['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x4170b0){this['fire']('_activateAnnotation',_0x4170b0);}['createAnnotation'](_0x347549){return new Annotation$1(_0x347549);}['createAnnotationView'](_0x382a8b,_0x44628a){return new AnnotationView(_0x382a8b,_0x44628a);}['_addActiveAnnotation'](_0x224692){const _0x9384f0=new Set(this['activeAnnotations']);_0x9384f0['add'](_0x224692),this['activeAnnotations']=_0x9384f0;}['_removeActiveAnnotation'](_0x27f7b6){const _0x5b7bdd=new Set(this['activeAnnotations']);_0x5b7bdd['delete'](_0x27f7b6),this['activeAnnotations']=_0x5b7bdd;}['_bindAnnotationsToVisibleAnnotations'](){const _0x18e026=this['collection'],_0x27a082=this['_visibleAnnotations'];function _0x467444(_0x3453f6){const _0x7d3554=_0x3453f6['source'];_0x7d3554['isVisible']&&!_0x27a082['has'](_0x7d3554)?_0x27a082['add'](_0x7d3554):!_0x7d3554['isVisible']&&_0x27a082['has'](_0x7d3554)&&_0x27a082['remove'](_0x7d3554),_0x7d3554['view']['focusTracker']['remove'](_0x7d3554['view']['element']),_0x7d3554['view']['focusTracker']['add'](_0x7d3554['view']['element']);}this['listenTo'](_0x18e026,'add',(_0x24ba4d,_0xdcb6da)=>{_0xdcb6da['isVisible']&&_0x27a082['add'](_0xdcb6da),this['listenTo'](_0xdcb6da,'change:isVisible',_0x467444);}),this['listenTo'](_0x18e026,'remove',(_0x2c7a50,_0x4a9cef)=>{_0x27a082['has'](_0x4a9cef)&&_0x27a082['remove'](_0x4a9cef),this['stopListening'](_0x4a9cef,'change:isVisible',_0x467444);});}['_setupEnterAnnotationKeystroke'](){const _0x5af43b=_0x5d28d5=>{_0x5d28d5['on']('ready',()=>{_0x5d28d5['keystrokes']['set'](FOCUS_ANNOTATION_KEYSTROKE,(_0x1ba6d2,_0x5d1193)=>{const _0x372419=first(this['activeAnnotations']['values']());_0x372419&&(_0x372419['view']['focus'](),_0x5d1193());});});};this['context']instanceof Editor?_0x5af43b(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x421249,_0x13d68c)=>{_0x5af43b(_0x13d68c);});}['_setupEscapeAnnotationHandling'](){const _0x4bf451=_0x19b08e=>{const _0xa33590=_0x19b08e['source'],_0x3ec2e6=[];let _0x5e4c51;if(Array['isArray'](_0xa33590['target'])){_0x5e4c51=_0xa33590['target'][0x0],this['context']instanceof Editor?_0x3ec2e6['push'](this['context']):this['context']['editors']&&_0x3ec2e6['push'](...this['context']['editors']);for(const _0x2aace4 of _0x3ec2e6)for(const _0x44b156 of _0x2aace4['editing']['view']['domRoots']['values']())if(_0x44b156['contains'](_0x5e4c51))return void _0x2aace4['editing']['view']['focus']();_0x5e4c51['focus']();}};this['listenTo'](this['collection'],'add',(_0x17e90a,_0x133b72)=>{this['listenTo'](_0x133b72,'escape',_0x4bf451,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x20781e,_0x4e8de8)=>{this['stopListening'](_0x4e8de8,'escape',_0x4bf451);});}}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(_0x2a50e7){super(_0x2a50e7),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x4fa47a=this['context']['config'];_0x4fa47a['define']('comments.maxCommentsWhenCollapsed',0x2),_0x4fa47a['define']('comments.maxThreadTotalWeight',0x1f4),_0x4fa47a['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x4fa47a['define']('comments.CommentThreadView',CommentThreadView),_0x4fa47a['define']('comments.CommentView',CommentView),_0x4fa47a['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x36f491=this['context']['plugins']['get'](Annotations);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x4a9e1b,_0x1846bc)=>this['_addCommentThread'](_0x1846bc)),this['on']('submitCommentThread',(_0x3f23e4,_0x49332f)=>this['_submitCommentThread'](_0x49332f)),this['on']('resolveCommentThread',(_0x71f65b,_0x187a6a)=>this['_resolveCommentThread'](_0x187a6a)),this['on']('resolveCommentThread',(_0x40671c,_0x5a7db1)=>this['_updateActiveAnnotation'](_0x5a7db1),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x42e4f6,_0x291cc9)=>this['_reopenCommentThread'](_0x291cc9)),this['on']('reopenCommentThread',(_0x5d5181,_0x2ec115)=>this['_updateActiveAnnotation'](_0x2ec115),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x1816e8,_0x39fd5e)=>this['_removeCommentThread'](_0x39fd5e)),this['on']('updateCommentThread',(_0x3a7f5d,_0x1fa799)=>this['_updateCommentThread'](_0x1fa799)),this['on']('updateCommentThread',(_0x3bded1,_0x5c9127)=>this['_updateActiveAnnotation'](_0x5c9127),{'priority':'lowest'}),this['on']('addComment',(_0x2d85ad,_0x4f7550)=>this['_addComment'](_0x4f7550)),this['on']('updateComment',(_0x254dc9,_0x439cab)=>this['_updateComment'](_0x439cab)),this['on']('removeComment',(_0x1ac2f3,_0x3cada7)=>this['_removeComment'](_0x3cada7)),this['on']('addComment',(_0x4a4045,{threadId:_0x3d7191,isFromAdapter:_0x18b33b})=>{if(_0x18b33b)return;const _0x1cbae6=this['getCommentThread'](_0x3d7191),_0x1bbb7b=_0x1cbae6&&this['_threadToController']['get'](_0x1cbae6);_0x1bbb7b&&_0x1bbb7b['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x36f491,'change:activeAnnotations',(_0x14196f,_0x17e100,_0x2862a5)=>{const _0x5ebc6e=Array['from'](_0x2862a5)['map'](_0x760d0a=>this['_viewToController']['get'](_0x760d0a['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5ebc6e?_0x5ebc6e['model']:null;});}set['adapter'](_0x117a5a){if(this['_adapter'])throw new CKEditorError('commentsrepository-adapter-already-set');this['_adapter']=_0x117a5a;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4ca2fb=noChannel,threadId:_0x262190=uid(),comments:_0x57a8e7=[],unlinkedAt:_0x468607=null,resolvedAt:_0x1e23f3=null,resolvedBy:_0x343f34=null,target:_0x283da1=null,context:_0x81bebc=null,attributes:_0x4a8922={},isResolvable:_0x4c6a77=!0x0,isSubmitted:_0x2821fa=!0x1,isFromAdapter:_0x3a863b=!0x1}={}){return this['fire'](toEventName('addCommentThread',_0x4ca2fb),{'channelId':_0x4ca2fb,'threadId':_0x262190,'comments':_0x57a8e7,'unlinkedAt':_0x468607,'resolvedAt':_0x1e23f3,'resolvedBy':_0x343f34,'target':_0x283da1,'context':_0x81bebc,'attributes':_0x4a8922,'isFromAdapter':_0x3a863b,'isResolvable':_0x4c6a77,'isSubmitted':_0x2821fa}),this['getCommentThread'](_0x262190);}['openNewCommentThread']({channelId:_0x2353c3=noChannel,threadId:_0x3b7cda=uid(),target:_0x342301,context:_0x4ba69b=null,isResolvable:_0xb479dc=!0x0}){if(this['_readOnlyChannels']['has'](_0x2353c3)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x342301)throw new CKEditorError('commentsrepository-missing-target');const _0x5a8178=this['addCommentThread']({'channelId':_0x2353c3,'threadId':_0x3b7cda,'target':_0x342301,'context':_0x4ba69b,'isResolvable':_0xb479dc});if(!_0x5a8178)return null;const _0x456846=this['_threadToController']['get'](_0x5a8178),_0x4279c3=_0x456846['view']['commentThreadInputView']['commentInputView'],_0x27d272=this['context']['plugins']['get'](Annotations),_0x592ac9=_0x27d272['getByInnerView'](_0x456846['view']);return _0x27d272['activate'](_0x592ac9),_0x4279c3['once']('editorReady',()=>_0x4279c3['focus']()),_0x5a8178;}['hasCommentThread'](_0x2112a8){if('string'!=typeof _0x2112a8)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x2112a8);}['updateCommentThread']({channelId:_0x353b6e=noChannel,threadId:_0xc2f6db,context:_0x27d3ae,unlinkedAt:_0x1c34a2,attributes:_0x737e8f,isFromAdapter:_0x492281=!0x1}){return this['fire'](toEventName('updateCommentThread',_0x353b6e),{'channelId':_0x353b6e,'threadId':_0xc2f6db,'context':_0x27d3ae,'unlinkedAt':_0x1c34a2,'attributes':_0x737e8f,'isFromAdapter':_0x492281}),this['getCommentThread'](_0xc2f6db);}['getCommentThread'](_0x4066dc){if('string'!=typeof _0x4066dc)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4066dc);}['fetchCommentThread']({channelId:_0x400253,threadId:_0x3a7736}={}){const _0x5b9f74=this['getCommentThread'](_0x3a7736);if(_0x5b9f74)return Promise['resolve'](_0x5b9f74);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':_0x400253,'threadId':_0x3a7736})['then'](_0xae6e38=>this['hasCommentThread'](_0x3a7736)?this['getCommentThread'](_0x3a7736):_0xae6e38?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x400253},_0xae6e38)):void 0x0)['catch'](_0x5dcac9=>{throw console['error'](_0x5dcac9),new CKEditorError('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4543a2,skipNotAttached:_0x1d803a=!0x1,skipEmpty:_0x2c6ec7=!0x1,toJSON:_0x302060=!0x1}={}){const _0x1647c7=[];for(const _0x556d61 of this['_threads']['values']())_0x4543a2&&_0x556d61['channelId']!==_0x4543a2||_0x1d803a&&!_0x556d61['isAttached']||_0x2c6ec7&&0x0===_0x556d61['length']||_0x1647c7['push'](_0x556d61);return _0x302060?_0x1647c7['map'](_0x1eafa7=>_0x1eafa7['toJSON']()):_0x1647c7;}['getAnnotationForCommentThread'](_0x9a7fba){const _0x22ecc0=this['_threadToController']['get'](_0x9a7fba);if(!_0x22ecc0)return null;return this['context']['plugins']['get'](Annotations)['getByInnerView'](_0x22ecc0['view'])||null;}['getCommentThreadForAnnotation'](_0x5ce56e){const _0x212545=this['_viewToController']['get'](_0x5ce56e['innerView']);return _0x212545?_0x212545['model']:null;}['setActiveCommentThread'](_0x509b04){const _0x14ab4e=this['context']['plugins']['get'](Annotations);if(!_0x509b04)return void(this['activeCommentThread']&&_0x14ab4e['deactivateAll']());const _0x333ac7=this['getCommentThread'](_0x509b04);if(!_0x333ac7)throw new CKEditorError('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x509b04});if(!this['_threadToController']['has'](_0x333ac7))throw new CKEditorError('commentsrepository-active-not-attached',null,{'threadId':_0x509b04});const _0x2fad2c=_0x14ab4e['getByInnerView'](this['_threadToController']['get'](_0x333ac7)['view']);_0x14ab4e['activate'](_0x2fad2c);}['switchReadOnly'](_0x5fe5ee,_0x4c959a){_0x5fe5ee?this['_readOnlyChannels']['add'](_0x4c959a):this['_readOnlyChannels']['delete'](_0x4c959a),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x466932){return this['_readOnlyChannels']['has'](_0x466932)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x41e11b,_0x9fedfc){return new CommentThreadController(_0x41e11b,_0x9fedfc);}['setPermissions'](_0x4ec664,_0x429ff4=noChannel){this['_permissions']['set'](_0x429ff4,_0x4ec664),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x3f9f3b=noChannel){return this['_permissions']['has'](_0x3f9f3b)?this['_permissions']['get'](_0x3f9f3b):defaultPermissions;}['_addCommentThread']({channelId:_0x43bf83,threadId:_0x53ea1d,comments:_0x11b587,unlinkedAt:_0x10830d,resolvedAt:_0x3b0dbd,resolvedBy:_0x446009,target:_0x138e99,context:_0x1075f5,attributes:_0x2c1dff,isFromAdapter:_0x5aeedc,isResolvable:_0x229737,isSubmitted:_0x5995c7}){if('string'!=typeof _0x53ea1d)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x53ea1d});if(this['hasCommentThread'](_0x53ea1d))throw new CKEditorError('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x53ea1d});const _0x55e1ea=new CommentThread(this,{'channelId':_0x43bf83,'id':_0x53ea1d,'context':_0x1075f5,'attributes':_0x2c1dff,'unlinkedAt':_0x10830d,'resolvedAt':_0x3b0dbd,'resolvedBy':_0x446009?this['context']['plugins']['get'](Users)['getUser'](_0x446009):null,'isResolvable':_0x229737,'isSubmitted':_0x5995c7||_0x5aeedc});this['_threads']['set'](_0x53ea1d,_0x55e1ea);for(const _0x4e36f2 of _0x11b587)_0x55e1ea['_add'](this['_createNewComment']({'threadId':_0x53ea1d,..._0x4e36f2}));return _0x138e99&&_0x55e1ea['attachTo'](_0x138e99),_0x5aeedc||!_0x55e1ea['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x43bf83,'threadId':_0x53ea1d});}['_submitCommentThread']({channelId:_0x3cd561,threadId:_0x365582}){if(!this['hasCommentThread'](_0x365582))throw new CKEditorError('commentsrepository-missing-comment-thread',this);const _0x519492=this['getCommentThread'](_0x365582);if(_0x519492['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0xe044e,comments:_0x4bcf0c,resolvedAt:_0x250b4c,resolvedBy:_0x322e06,context:_0x3ca037,attributes:_0x166016}=_0x519492,_0x3072b5=this['context']['plugins']['get']('PendingActions'),_0x2dd1a5=_0x3072b5['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x3cd561,'threadId':_0xe044e,'comments':_0x4bcf0c['map'](_0x2d36a6=>_0x2d36a6['toJSON']()),'resolvedAt':_0x250b4c,'resolvedBy':_0x322e06?_0x322e06['id']:_0x322e06,'context':_0x3ca037,'attributes':_0x166016})['then'](({comments:_0x186802})=>{_0x3072b5['remove'](_0x2dd1a5);for(const _0x5444b4 of _0x186802)this['_updateComment']({'channelId':_0x3cd561,'threadId':_0x365582,'commentId':_0x5444b4['commentId'],'createdAt':_0x5444b4['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5d8814=>{throw console['error'](_0x5d8814),new CKEditorError('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x31caab,target:_0x132b06}){const _0x32f6ac=this['getCommentThread'](_0x31caab);if(!_0x32f6ac)throw new CKEditorError('commentsrepository-attach-missing-comment-thread',this);const _0x42a870=this['context']['plugins']['get']('PendingActions'),_0x32e309=this['context']['plugins']['get'](Annotations),_0x30612c=this['_createCommentThreadView'](_0x32f6ac),_0x5265ec=new CommentThreadController(_0x32f6ac,_0x30612c);let _0x235641=null;_0x30612c['on']('change:isDirty',(_0x386a05,_0x1072cc,_0x565a41)=>{_0x565a41?_0x235641=_0x42a870['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x235641&&(_0x42a870['remove'](_0x235641),_0x235641=null);}),this['_threadToController']['set'](_0x32f6ac,_0x5265ec),this['_viewToController']['set'](_0x30612c,_0x5265ec);const _0x42d988=new AnnotationView(this['context']['locale'],_0x30612c);_0x42d988['bind']('length')['to'](_0x30612c),_0x42d988['bind']('isDirty')['to'](_0x30612c,'isDirty',_0x30612c,'length',(_0x598923,_0x5065eb)=>_0x598923||!_0x5065eb),_0x42d988['bind']('isActive')['to'](_0x30612c),_0x42d988['type']='comment';const _0x303d86=new Annotation$1({'view':_0x42d988,'target':_0x132b06,'type':'comment','isVisible':!_0x32f6ac['archivedAt']&&!!('function'==typeof _0x132b06?_0x132b06():_0x132b06)});return _0x30612c['on']('escape',()=>{_0x303d86['fire']('escape');}),this['_bindAnnotationToEditors'](_0x30612c,_0x303d86),_0x32e309['add'](_0x303d86),_0x303d86;}['_bindAnnotationToEditors'](_0x5a9790,_0xf098f){this['listenTo'](_0x5a9790,'editorReady',(_0x3c3b4c,_0x435d12)=>{const _0x2355a6=_0x435d12['ui']['view']['body']['bodyCollectionContainer'];_0xf098f['focusableElements']['add'](_0x2355a6),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['add'](_0x2355a6);},{'priority':'highest'}),this['listenTo'](_0x5a9790,'editorDestroyed',(_0x2d8733,_0x4c127b)=>{const _0x3b901a=_0x4c127b['ui']['view']['body']['bodyCollectionContainer'];_0xf098f['focusableElements']['has'](_0x3b901a)&&_0xf098f['focusableElements']['remove'](_0x3b901a),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['remove'](_0x3b901a);});}['_unbindEditors'](_0xff1040){this['stopListening'](_0xff1040,'editorReady'),this['stopListening'](_0xff1040,'editorDestroyed');}['_createCommentThreadView'](_0x2b8774){const _0x3de292=this['context']['plugins']['get'](Users),{config:_0x423496,locale:_0x137bd2}=this['context'],_0x42cc37=getDateTimeFormatter(_0x423496['get']('locale'),_0x137bd2);return new(0x0,(_0x423496['get']('comments'))['CommentThreadView'])(_0x137bd2,_0x2b8774,_0x3de292['me'],{'editorConfig':{..._0x423496['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x423496['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x423496['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x423496['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x423496['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x42cc37,'CommentView':_0x423496['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x517d27,channelId:_0x12bf26,resolvedAt:_0x224610,resolvedBy:_0x4b2943,isFromAdapter:_0x444d7f}){if(!this['hasCommentThread'](_0x517d27))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x517d27});const _0x5bd68e=this['getCommentThread'](_0x517d27);if(_0x5bd68e['isResolved'])throw new CKEditorError('commentsrepository-resolved-comment-thread',null,{'threadId':_0x517d27});const _0x5bc4b6=this['context']['plugins']['get'](Users);if(_0x5bd68e['resolvedBy']=_0x5bc4b6['getUser'](_0x4b2943),_0x5bd68e['resolvedAt']=_0x224610,_0x444d7f||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x3d8afa=this['context']['plugins']['get']('PendingActions'),_0x3b97e8=_0x3d8afa['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x12bf26,'threadId':_0x517d27})['then'](({resolvedAt:_0x751045,resolvedBy:_0x3fd1fa})=>{_0x3d8afa['remove'](_0x3b97e8),_0x5bd68e['resolvedBy']['id']!==_0x3fd1fa&&(_0x5bd68e['resolvedBy']=_0x5bc4b6['getUser'](_0x3fd1fa)),_0x5bd68e['resolvedAt']=_0x751045;})['catch'](_0x5dc662=>{throw console['error'](_0x5dc662),new CKEditorError('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x7f31b3,channelId:_0x2676b9,isFromAdapter:_0x4c1de0}){if(!this['hasCommentThread'](_0x7f31b3))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x7f31b3});const _0x20576d=this['getCommentThread'](_0x7f31b3);if(!_0x20576d['isResolved'])throw new CKEditorError('commentsrepository-reopen-comment-thread',null,{'threadId':_0x7f31b3});if(_0x20576d['resolvedBy']=null,_0x20576d['resolvedAt']=null,_0x4c1de0||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x174a4c=this['context']['plugins']['get']('PendingActions'),_0x144c99=_0x174a4c['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x2676b9,'threadId':_0x7f31b3})['then'](()=>_0x174a4c['remove'](_0x144c99))['catch'](_0xc50dca=>{throw console['error'](_0xc50dca),new CKEditorError('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x3d93b2,isFromAdapter:_0x1fae2c}){const _0x3396f9=this['getCommentThread'](_0x3d93b2);if(!_0x3396f9)throw new CKEditorError('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x3d93b2),this['_threads']['delete'](_0x3d93b2),!_0x3396f9['isSubmitted']||_0x1fae2c||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x230130=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1c2cb4}=_0x3396f9,_0x318a0d=_0x230130['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1c2cb4,'threadId':_0x3d93b2})['then'](()=>_0x230130['remove'](_0x318a0d))['catch'](_0x50eab3=>{throw console['error'](_0x50eab3),new CKEditorError('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x41d845,unlinkedAt:_0x3e7d01,context:_0x1fca0f,attributes:_0x27f715,isFromAdapter:_0x2d2fdb}){if('string'!=typeof _0x41d845)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x41d845});if(!this['hasCommentThread'](_0x41d845))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x41d845});const _0x4454a5=this['getCommentThread'](_0x41d845);let _0x5e77a3=!0x1;if(void 0x0!==_0x1fca0f&&_0x4454a5['context']!==_0x1fca0f&&(_0x4454a5['context']=_0x1fca0f,_0x5e77a3=!0x0),void 0x0!==_0x3e7d01&&_0x4454a5['unlinkedAt']!==_0x3e7d01&&(_0x4454a5['unlinkedAt']=_0x3e7d01,_0x5e77a3=!0x0),_0x27f715&&!isEqual(_0x27f715,_0x4454a5['attributes'])&&(_0x4454a5['attributes']=_0x27f715,_0x5e77a3=!0x0),!_0x5e77a3)return Promise['resolve']();if(!_0x4454a5['isSubmitted']||_0x2d2fdb||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4dd799=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4fe461}=_0x4454a5,_0x3f46d1=_0x4dd799['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x4fe461,'threadId':_0x41d845,'context':_0x1fca0f,'unlinkedAt':_0x3e7d01,'attributes':_0x27f715})['then'](()=>_0x4dd799['remove'](_0x3f46d1))['catch'](_0x1f0da2=>{throw console['error'](_0x1f0da2),new CKEditorError('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x5869ab){const _0x2287ec=this['context']['plugins']['get'](Annotations),_0x5e70df=this['getCommentThread'](_0x5869ab);if(_0x5e70df['_isAttached']=!0x1,this['_threadToController']['has'](_0x5e70df)){const _0x4992b1=this['_threadToController']['get'](_0x5e70df),_0x2e742b=_0x4992b1['view'],_0x73289e=_0x2287ec['getByInnerView'](_0x2e742b);this['_threadToController']['delete'](_0x5e70df),this['_viewToController']['delete'](_0x2e742b),_0x73289e&&_0x2287ec['remove'](_0x73289e),_0x4992b1['destroy'](),_0x2e742b['destroy']()['then'](()=>{this['_unbindEditors'](_0x2e742b);});}}['_updateActiveAnnotation']({threadId:_0x3d044f,resolvedAt:_0x505847,unlinkedAt:_0x27ff85}){const _0x8e08b4=!!_0x505847,_0x168d4=this['context']['plugins']['get'](Annotations),_0x2998ae=this['getCommentThread'](_0x3d044f);if(this['_threadToController']['has'](_0x2998ae)){const _0x5f3be3=this['_threadToController']['get'](_0x2998ae)['view'],_0x113a84=_0x168d4['getByInnerView'](_0x5f3be3);_0x113a84&&(_0x8e08b4&&_0x168d4['_removeActiveAnnotation'](_0x113a84),_0x27ff85?_0x113a84['isVisible']=!0x1:_0x113a84['refreshVisibility']());}}['_getExternalAuthor'](_0x1d8d52){const _0x409ca1=this['context']['plugins']['get'](Users),_0x51b4fc=hashObject('external:'+_0x1d8d52),_0x510841=_0x409ca1['getUser'](_0x51b4fc);return _0x510841||_0x409ca1['addUser']({'id':_0x51b4fc,'name':_0x1d8d52});}['_createNewComment']({threadId:_0x4d174b,commentId:_0x55c3d8=uid(),content:_0x55db90,authorId:_0x34b9c0,createdAt:_0x3dd78b,attributes:_0x102fda}){if('string'!=typeof _0x55c3d8)throw new CKEditorError('commentsrepository-invalid-commentid');if('string'!=typeof _0x34b9c0)throw new CKEditorError('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x55db90||!_0x55db90['trim']())throw new CKEditorError('commentsrepository-invalid-comment-content');const _0x5b472a=this['context']['plugins']['get'](Users)['getUser'](_0x34b9c0);if(!_0x5b472a)throw new CKEditorError('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x34b9c0});let _0x3190d4=null,_0xdf5811=_0x3dd78b;return _0x102fda?.['@external']&&(_0x3190d4=this['_getExternalAuthor'](_0x102fda['@external']['authorName']),_0xdf5811=new Date(_0x102fda['@external']['createdAt'])),new Comment(this,{'threadId':_0x4d174b,'id':_0x55c3d8,'author':_0x3190d4||_0x5b472a,'creator':_0x5b472a,'content':_0x55db90,'createdAt':_0x3dd78b,'authoredAt':_0xdf5811,'attributes':_0x102fda});}['_addComment'](_0x3c1ab6){let {threadId:_0x1dd198,content:_0x6e586c,attributes:_0x310f62,isFromAdapter:_0x4a6db4}=_0x3c1ab6;const _0x518a6b=this['getCommentThread'](_0x3c1ab6['threadId']);if(!_0x518a6b)throw new CKEditorError('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x3ed18f=this['_createNewComment'](_0x3c1ab6),{id:_0x4e3189}=_0x3ed18f;if(_0x518a6b['_add'](_0x3ed18f),_0x4a6db4||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x518a6b['isSubmitted'])return Promise['resolve']();const _0x3ea124=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3285c7}=_0x518a6b,_0x41caca=_0x3ea124['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x310f62||(_0x310f62={}),this['adapter']['addComment']({'channelId':_0x3285c7,'threadId':_0x1dd198,'commentId':_0x4e3189,'content':_0x6e586c,'attributes':_0x310f62})['then'](_0x3dd427=>{_0x3ea124['remove'](_0x41caca),_0x3dd427&&this['_updateComment']({'channelId':_0x3285c7,'threadId':_0x1dd198,'commentId':_0x4e3189,'createdAt':_0x3dd427['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x59f3be=>{throw console['error'](_0x59f3be),new CKEditorError('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x288ffa,commentId:_0x45e274,content:_0x1a7781,createdAt:_0x17c1b3,attributes:_0x76d6a3,isFromAdapter:_0x40e4b9}){if(void 0x0!==_0x1a7781&&('string'!=typeof _0x1a7781||!_0x1a7781['trim']()['length']))throw new CKEditorError('commentsrepository-update-comment-invalid-content');const _0x17c550=this['getCommentThread'](_0x288ffa),_0x42db27=_0x17c550['getComment'](_0x45e274);if(!_0x42db27)throw new CKEditorError('commentsrepository-update-missing-comment',this);let _0x596734=!0x1;if(_0x1a7781&&_0x1a7781!==_0x42db27['content']&&(_0x42db27['isEditable']||_0x40e4b9)&&(_0x42db27['content']=_0x1a7781,_0x596734=!0x0),_0x17c1b3&&_0x17c1b3!==_0x42db27['createdAt']&&(_0x42db27['createdAt']=_0x17c1b3,_0x42db27['attributes']&&_0x42db27['attributes']['@external']||(_0x42db27['authoredAt']=_0x17c1b3),_0x596734=!0x0),_0x76d6a3&&!isEqual(_0x76d6a3,_0x42db27['attributes'])&&(_0x42db27['attributes']=_0x76d6a3,_0x596734=!0x0),!_0x596734)return Promise['resolve']();if(_0x17c550['fire']('commentUpdated'),_0x40e4b9||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x41e3d8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x10247e}=this['getCommentThread'](_0x42db27['threadId']),_0x144d79=_0x41e3d8['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x10247e,'threadId':_0x288ffa,'commentId':_0x45e274,'content':_0x1a7781,'attributes':_0x76d6a3})['then'](()=>_0x41e3d8['remove'](_0x144d79))['catch'](_0x272f80=>{throw console['error'](_0x272f80),new CKEditorError('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1e1d73,commentId:_0x8e9cf0,isFromAdapter:_0x93e594}){const _0x275f2b=this['getCommentThread'](_0x1e1d73),_0x3a8f7e=_0x275f2b['getComment'](_0x8e9cf0);if(!_0x3a8f7e)throw new CKEditorError('commentsrepository-remove-missing-comment',this);if(_0x275f2b['_remove'](_0x3a8f7e),_0x93e594||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x5465e5=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2cd336}=_0x275f2b,_0xd630bb=_0x5465e5['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2cd336,'threadId':_0x1e1d73,'commentId':_0x8e9cf0})['then'](()=>_0x5465e5['remove'](_0xd630bb))['catch'](_0x376b34=>{throw console['error'](_0x376b34),new CKEditorError('commentsrepository-remove-comment-internal-error',this);});}}class CommentThread extends/* #__PURE__ -- @preserve */
ObservableMixin(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x1715fc,_0x23195d){super();const _0x1d442b=_0x23195d['isResolvable'];this['channelId']=_0x23195d['channelId'],this['id']=_0x23195d['id'],this['comments']=new Collection(),this['_repository']=_0x1715fc,this['_isAttached']=!0x1,this['_isSubmitted']=_0x23195d['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x1715fc,'_permissions',_0x1715fc,'_readOnlyChannels',()=>_0x1715fc['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x1715fc,'_permissions',()=>_0x1715fc['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x1715fc,'_permissions',()=>{const _0x3b8a92=_0x1715fc['getPermissions'](this['channelId']);return _0x3b8a92['write']||_0x3b8a92['admin'];}),this['bind']('isResolvable')['to'](_0x1715fc,'_permissions',()=>_0x1d442b&&_0x1715fc['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x23195d['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x448236,_0x57fae2)=>_0x448236?_0x57fae2?_0x448236<_0x57fae2?_0x448236:_0x57fae2:_0x448236:_0x57fae2),this['set']('unlinkedAt',_0x23195d['unlinkedAt']||null),this['set']('resolvedAt',_0x23195d['resolvedAt']||null),this['set']('resolvedBy',_0x23195d['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x586588=>!!_0x586588),this['set']('attributes',_0x23195d['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x48b8d6,_0x3c39a2)=>_0x48b8d6+_0x3c39a2['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x13abb9,id:_0x1f6fb0}=this;this['_repository']['fire'](toEventName('submitCommentThread',_0x13abb9),{'channelId':_0x13abb9,'threadId':_0x1f6fb0});}['setUnlinkedAt'](_0xa2c384){this['_update']({'unlinkedAt':_0xa2c384});}['resolve']({resolvedAt:_0x35edc2=new Date(),resolvedBy:_0x18bbe0='',isFromAdapter:_0x436096=!0x1}={}){const _0x285828=this['_repository']['context']['plugins']['get'](Users)['me'],{channelId:_0x56b155,id:_0x317ff3}=this;this['_repository']['fire'](toEventName('resolveCommentThread',_0x56b155),{'channelId':_0x56b155,'threadId':_0x317ff3,'resolvedAt':_0x35edc2,'resolvedBy':_0x18bbe0||_0x285828['id'],'isFromAdapter':_0x436096});}['reopen']({isFromAdapter:_0xe6109f=!0x1}={}){const {channelId:_0x218e8a,id:_0x23a523}=this;this['_repository']['fire'](toEventName('reopenCommentThread',_0x218e8a),{'channelId':_0x218e8a,'threadId':_0x23a523,'isFromAdapter':_0xe6109f});}['setContext'](_0x1d6b50){this['context']||this['_update']({'context':_0x1d6b50});}['setAttribute'](_0x1d516a,_0x23a3a1){const _0x34eb1a=cloneDeep(this['attributes']);set(_0x34eb1a,_0x1d516a,_0x23a3a1),this['_update']({'attributes':_0x34eb1a});}['removeAttribute'](_0x27a993){const _0x53d145=cloneDeep(this['attributes']);unset(_0x53d145,_0x27a993),this['_update']({'attributes':_0x53d145});}['remove']({isFromAdapter:_0x3d8194=!0x1}={}){const {channelId:_0x476fd5,id:_0x4f27cb}=this;this['_repository']['fire'](toEventName('removeCommentThread',_0x476fd5),{'channelId':_0x476fd5,'threadId':_0x4f27cb,'isFromAdapter':_0x3d8194});}['attachTo'](_0x269ca3){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x269ca3});}['addComment'](_0x34e884){const {channelId:_0x38178e,id:_0x1c6542}=this;this['_repository']['fire'](toEventName('addComment',_0x38178e,_0x1c6542),Object['assign']({'channelId':_0x38178e,'threadId':_0x1c6542},_0x34e884));}['getComment'](_0x2d4f4a){if('string'!=typeof _0x2d4f4a)throw new CKEditorError('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x2d4f4a});return this['comments']['get'](_0x2d4f4a);}['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'](_0x3c50c7=>_0x3c50c7['toJSON']()),'attributes':this['attributes']};}['_add'](_0x2a7296){return this['listenTo'](_0x2a7296,'change:authoredAt',()=>{const _0x15a159=this['_findOptimalIndex'](_0x2a7296),_0xa2f15f=this['comments'];_0x15a159-0x1!=_0xa2f15f['getIndex'](_0x2a7296)&&_0x15a159+0x1!=_0xa2f15f['getIndex'](_0x2a7296)&&(this['_remove'](_0x2a7296),this['_add'](_0x2a7296));}),this['comments']['add'](_0x2a7296,this['_findOptimalIndex'](_0x2a7296));}['_update'](_0x44659d){const {channelId:_0x5631b4,id:_0x5eb83f}=this;this['_repository']['fire'](toEventName('updateCommentThread',_0x5631b4),{..._0x44659d,'channelId':_0x5631b4,'threadId':_0x5eb83f});}['_remove'](_0x2c24a2){return this['stopListening'](_0x2c24a2),_0x2c24a2['destroy'](),this['comments']['remove'](_0x2c24a2);}['_findOptimalIndex'](_0x428590){const _0x2aaae2=this['comments']['find'](_0x508cfc=>new Date(_0x508cfc['authoredAt'])['getTime']()>new Date(_0x428590['authoredAt'])['getTime']());return _0x2aaae2?this['comments']['getIndex'](_0x2aaae2):this['length'];}}const MIN_WEIGHT=0xc8;function getContentLength(_0x2a2bd9){const _0x57ec2b=document['createElement']('div');return _0x57ec2b['innerHTML']=_0x2a2bd9,_0x57ec2b['textContent']['length'];}class Comment extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x29c321,_0x4d3c46){super();const _0x1cd3e4=_0x29c321['context']['plugins']['get'](Users)['me'],_0x2f992b=_0x29c321['getCommentThread'](_0x4d3c46['threadId']),_0x5c7310=0x0===_0x2f992b['comments']['length'],_0x2c74c0=_0x1cd3e4===_0x4d3c46['author'];this['id']=_0x4d3c46['id'],this['threadId']=_0x4d3c46['threadId'],this['author']=_0x4d3c46['author'],this['creator']=_0x4d3c46['creator'],this['isExternal']=Boolean(_0x4d3c46['attributes']&&_0x4d3c46['attributes']['@external']),this['set']('content',_0x4d3c46['content']),this['createdAt']=_0x4d3c46['createdAt']||new Date(),this['set']('authoredAt',_0x4d3c46['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x2f992b,'resolvedAt'),this['set']('attributes',_0x4d3c46['attributes']||{}),this['bind']('isEditable')['to'](_0x29c321,'_permissions',()=>{const _0x1b3bf7=_0x29c321['getPermissions'](_0x2f992b['channelId'])['write'],_0x21e536=_0x29c321['getPermissions'](_0x2f992b['channelId'])['modifyAll'];return _0x2c74c0&&_0x1b3bf7||!_0x2c74c0&&_0x21e536;}),this['bind']('isRemovable')['to'](_0x2f992b,'isRemovable',_0x29c321,'_permissions',_0x2770a7=>{const _0x48ffcf=_0x29c321['getPermissions'](_0x2f992b['channelId'])['write'],_0x52187c=_0x29c321['getPermissions'](_0x2f992b['channelId'])['modifyAll'];return _0x2c74c0&&_0x48ffcf||_0x2770a7&&_0x5c7310||!_0x2c74c0&&_0x52187c&&!_0x5c7310;}),this['bind']('isReadOnly')['to'](_0x2f992b,'isReadOnly'),this['_repository']=_0x29c321;}get['weight'](){return Math['max'](getContentLength(this['content']),MIN_WEIGHT);}['update'](_0x53e508){const {threadId:_0x2f363d,id:_0xe8edde}=this;if(!this['_repository']['hasCommentThread'](_0x2f363d))throw new CKEditorError('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x1a8c2d}=this['_repository']['getCommentThread'](_0x2f363d);this['_repository']['fire'](toEventName('updateComment',_0x1a8c2d,_0x2f363d),{'channelId':_0x1a8c2d,'threadId':_0x2f363d,'commentId':_0xe8edde,..._0x53e508});}['setAttribute'](_0x551254,_0x30c1b5){const _0x41ad92=cloneDeep(this['attributes']);set(_0x41ad92,_0x551254,_0x30c1b5),this['update']({'attributes':_0x41ad92});}['removeAttribute'](_0x5864e7){const _0x4ce6e6=cloneDeep(this['attributes']);unset(_0x4ce6e6,_0x5864e7),this['update']({'attributes':_0x4ce6e6});}['remove'](_0x1379c9={}){if(!_0x1379c9['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x221fd3,id:_0x5dd9e8}=this;if(!this['_repository']['hasCommentThread'](_0x221fd3))throw new CKEditorError('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x40e328}=this['_repository']['getCommentThread'](_0x221fd3);this['_repository']['fire'](toEventName('removeComment',_0x40e328,_0x221fd3),{'channelId':_0x40e328,'threadId':_0x221fd3,'commentId':_0x5dd9e8,..._0x1379c9});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function toEventName(_0x38b78c,..._0x5885ca){for(const _0x385169 of _0x5885ca)void 0x0!==_0x385169&&(_0x38b78c+=':'+String(_0x385169));return _0x38b78c;}class AddCommentThreadCommand extends _0x210666{constructor(_0x52e12d){super(_0x52e12d),this['set']('hasContent',!0x1);}['refresh'](){const _0x95829b=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x2b7ef6 of _0x95829b['getRanges']())if(this['_hasContent'](_0x2b7ef6))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x433ced=uid(),ranges:_0x1003ab,comment:_0x37742b}={}){const _0x65ad2b=this['editor']['model'],_0x405953=_0x1003ab??Array['from'](_0x65ad2b['document']['selection']['getRanges']()),_0x2134cb=[];for(const _0x57970c of _0x405953)this['_hasContent'](_0x57970c)&&_0x2134cb['push'](this['_trimToContent'](_0x57970c));if(!_0x2134cb['length'])throw new CKEditorError('addcommentthreadcommand-incorrect-ranges',null);_0x37742b&&this['_createCommentThread'](_0x433ced,_0x37742b),this['_createMarkersFromRanges'](_0x433ced,_0x2134cb,!!_0x37742b);}['_createMarkersFromRanges'](_0x48853c,_0x2fedf7,_0x14b50e){this['editor']['model']['change'](_0x21d0c1=>{for(const _0x15bc49 of _0x2fedf7){const _0x4454bc=uid()['substr'](0x1,0x5),_0x23e685='comment:'+_0x48853c+':'+_0x4454bc;_0x21d0c1['addMarker'](_0x23e685,{'range':_0x15bc49,'usingOperation':_0x14b50e,'affectsData':_0x14b50e});}});}['_createCommentThread'](_0x3bd2ba,_0x25f2d7){const _0x5e54ed=this['editor']['plugins']['get']('CommentsRepository'),_0x376b24=this['editor']['config']['get']('collaboration.channelId'),_0x282021=this['editor']['plugins']['get']('Users')['me'];if(!_0x282021)throw new CKEditorError('addcommentthreadcommand-user-not-found',null);_0x5e54ed['addCommentThread']({'threadId':_0x3bd2ba,'channelId':_0x376b24,'comments':[{'authorId':_0x282021['id'],'content':_0x25f2d7,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x3d6cb6){for(const _0x4ef276 of _0x3d6cb6['getItems']())if(this['_itemIsContent'](_0x4ef276))return!0x0;return!0x1;}['_itemIsContent'](_0x2a28da){return _0x2a28da['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x2a28da)&&!_0x2a28da['is']('element','tableCell');}['_trimToContent'](_0x5b4ab6){const _0x2e5a50=_0x449e8c=>!this['_itemIsContent'](_0x449e8c['item']),_0x2fdbbc=_0x5b4ab6['start']['getLastMatchingPosition'](_0x2e5a50),_0x550aa8=_0x5b4ab6['end']['getLastMatchingPosition'](_0x2e5a50,{'direction':'backward'});return this['editor']['model']['createRange'](_0x2fdbbc,_0x550aa8);}}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(_0x313b42){super(_0x313b42),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5bf15b=this['editor'],_0x355f87=_0x5bf15b['model']['document']['selection'],_0x2cd809=debounce$1(()=>this['refreshSelectedViews'](),0xa);_0x355f87['on']('change:range',(_0x5cd61d,_0x368d97)=>{_0x368d97['directChange']&&(_0x2cd809['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5bf15b['editing']['view']['document'],'change:isFocused',(_0x390b58,_0x11034f,_0x59a030)=>{_0x59a030&&_0x2cd809();}),this['listenTo'](_0x5bf15b['ui']['focusTracker'],'change:isFocused',(_0x3913d2,_0x546a81,_0x1794c4)=>{_0x1794c4||this['fire']('blur',{'isAnnotationTracked':_0x2c2c5e=>this['_editorAnnotationsData']['has'](_0x2c2c5e['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x1eb159){if(this['_editorAnnotations']['has'](_0x1eb159['view']))return;this['_editorAnnotations']['add'](_0x1eb159['view']),this['editor']['ui']['focusTracker']['add'](_0x1eb159['view']['element']);const _0x489fcb=this['editor']['plugins']['get'](Annotations);this['listenTo'](_0x489fcb['collection'],'remove',(_0x133e6f,_0x3132a2)=>{this['editor']['ui']['focusTracker']['remove'](_0x3132a2['view']['element']),this['_editorAnnotations']['delete'](_0x3132a2['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x3bbc58){if('function'!=typeof _0x3bbc58)throw new CKEditorError('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x3bbc58);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x6ada56,annotations:_0x18a608}){const _0x243d6e=[],_0x1239ef=this['editor']['model']['document']['selection'],_0x45e9f3=Array['from'](_0x1239ef['getRanges']());for(const [_0x31f0c5,_0x3913e0]of this['_editorAnnotationsData']){const _0x561c4d=_0x292773(_0x3913e0),_0x5a5d5f=_0x18a608['getByInnerView'](_0x31f0c5);_0x561c4d&&_0x5a5d5f&&_0x243d6e['push']({'annotation':_0x5a5d5f,'range':_0x561c4d});}function _0x292773(_0x3c9b77){for(const _0x100336 of _0x3c9b77)for(const _0x23348c of _0x45e9f3)if(_0x100336['containsRange'](_0x23348c,!_0x1239ef['isCollapsed']))return _0x100336;return null;}return _0x243d6e['sort']((_0x33c811,_0x2b4417)=>{const _0x1995ca=_0x33c811['range'],_0x848d94=_0x2b4417['range'];if(!_0x1995ca['isEqual'](_0x848d94)){if(_0x1995ca['containsRange'](_0x848d94,!0x0))return 0x1;if(_0x848d94['containsRange'](_0x1995ca,!0x0))return-0x1;}return _0x33c811['annotation']==_0x6ada56?-0x1:_0x2b4417['annotation']==_0x6ada56?0x1:0x0;})['map'](_0x28076d=>_0x28076d['annotation']);}get['_editorAnnotationsData'](){const _0x1fee6c=new Map();for(const _0xd66eba of Array['from'](this['_dataCollectors']))for(const [_0x3034ea,_0x39df70]of _0xd66eba())_0x1fee6c['set'](_0x3034ea,_0x39df70);return _0x1fee6c;}}class CommentsRestrictedEditingMode extends Plugin{['afterInit'](){const _0x42f85d=this['editor'];if(!_0x42f85d['plugins']['has']('RestrictedEditingModeEditing'))return;_0x42f85d['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class CommentsImportWord extends Plugin{constructor(_0x49bd8c){super(_0x49bd8c),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x16bd25=this['editor'],_0x4c9d33=_0x16bd25['commands']['get']('importWord'),_0x4b6bbf=_0x16bd25['plugins']['get'](Users);_0x4c9d33&&(_0x4c9d33['on']('execute',(_0x2bbd88,[,_0x120b62])=>{_0x120b62['collaboration_features']={'comments':!0x0,'user_id':_0x4b6bbf['me']['id']};},{'priority':priorities['high']+0xa}),this['listenTo'](_0x4c9d33,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4fca5e,_0x184086){const {comment_threads:_0x3f9444}=_0x184086;_0x3f9444&&_0x3f9444['forEach'](({thread_id:_0x1197a6,comments:_0x229984,is_resolved:_0x3f3a91})=>{const _0x1e552e=new Date(),_0x151d87=_0x229984['map'](({author:_0x288a22,content:_0x2f3997,created_at:_0x1d0411})=>({'content':_0x2f3997,'authorId':this['editor']['plugins']['get'](Users)['me']['id'],'createdAt':_0x1e552e,'attributes':{'@external':{'authorName':_0x288a22,'createdAt':_0x1d0411?new Date(_0x1d0411):new Date(),'source':'importWord'}}})),_0x25bea5=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](CommentsRepository)['addCommentThread']({'channelId':_0x25bea5,'threadId':_0x1197a6,'comments':_0x151d87,'resolvedAt':_0x3f3a91?_0x1e552e:null});});}}class CommentsClipboard extends Plugin{constructor(_0x2156b2){super(_0x2156b2),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[ClipboardMarkersUtils,ClipboardPipeline];}['afterInit'](){const _0x206685=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x206685,'contentInsertion',(_0x5e5bb8,_0x308885)=>this['_removeMarkersWithoutThreads'](_0x308885['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x1a6800){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x1a6800;const _0x31d440=this['editor']['plugins']['get']('CommentsRepository');for(const _0xf562ef of _0x1a6800['keys']()){const [_0x1d8ae2,_0x430563]=_0xf562ef['split'](':');'comment'!=_0x1d8ae2||_0x31d440['hasCommentThread'](_0x430563)||_0x1a6800['delete'](_0xf562ef);}return _0x1a6800;}['_registerMarkerInClipboardPipeline'](){const _0x274f0b=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x261300=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x261300&&_0x274f0b['_registerMarkerToCopy']('comment',_0x261300);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2089c2){switch(_0x2089c2){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function splitMarkerName(_0x29db45){const _0x3da7c3=_0x29db45['split'](':');return{'group':_0x3da7c3[0x0],'id':_0x3da7c3[0x1],'part':_0x3da7c3[0x2]};}class ShowCommentHighlights extends Plugin{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x2e653b,_0x40b4e3)=>{if(!_0x40b4e3['options']['showCommentHighlights'])return null;if(_0x40b4e3['options']['ignoreResolvedComments']){const {id:_0x534d9a}=splitMarkerName(_0x2e653b['markerName']),_0x1fc3b1=this['editor']['plugins']['get'](CommentsRepository);if(_0x1fc3b1['getCommentThread'](_0x534d9a)?.['isResolved']&&_0x2e653b['item'])return _0x40b4e3['consumable']['consume'](_0x2e653b['item'],'addMarker:'+_0x2e653b['markerName']),_0x40b4e3['consumable']['consume'](_0x2e653b['item'],'removeMarker:'+_0x2e653b['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2969eb=>{_0x2969eb['on']('addMarker:comment',(_0x2dc169,_0x23abfd,_0x24bd31)=>{if(!_0x24bd31['options']['showCommentHighlights'])return;const _0x3d318b=_0x23abfd['item'];if(!_0x3d318b)return;const _0x298004=_0x24bd31['mapper']['toViewElement'](_0x3d318b);this['editor']['model']['schema']['isObject'](_0x3d318b)&&_0x298004&&!_0x298004['getCustomProperty']('widget')&&_0x298004['is']('containerElement')&&toWidget(_0x298004,_0x24bd31['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x66e554,{writer:_0x535764,options:_0xe11ce8})=>{if(!_0xe11ce8['showCommentHighlights'])return null;const _0x4afb4d=_0x535764['createContainerElement']('div'),_0x55c43f=_0x535764['createEmptyElement']('hr');return _0x535764['addClass']('ck-horizontal-line',_0x4afb4d),_0x535764['insert'](_0x535764['createPositionAt'](_0x4afb4d,0x0),_0x55c43f),_0x4afb4d;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x2986a0,{writer:_0x2f8872,options:_0x55057a})=>{if(!_0x55057a['showCommentHighlights'])return null;const _0x3bd101=_0x2f8872['createContainerElement']('span'),_0x3ee9e6=_0x2f8872['createEmptyElement']('img');return _0x2f8872['addClass']('image-inline',_0x3bd101),_0x2f8872['insert'](_0x2f8872['createPositionAt'](_0x3bd101,0x0),_0x3ee9e6),_0x3bd101;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x88cdf3,{writer:_0x51f35b,options:_0xc2c32f})=>{if(_0xc2c32f['showCommentHighlights'])return _0x51f35b['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x35b460,_0x4a5db1,_0x55e5e4)=>{_0x55e5e4['options']['showCommentHighlights']&&_0x35b460['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(_0x5047e2){super(_0x5047e2),this['set']('isThreadsLoadingPaused',!0x0),_0x5047e2['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2334b5,_0x4244fa,_0x33a31d,_0x5afa2c)=>{const _0x5bbcda=_0x5047e2['plugins']['get'](CommentsRepository),_0x570478=_0x33a31d?splitMarkerName(_0x33a31d)['id']:null;_0x5047e2['model']['change'](()=>{if(_0x570478){const _0x2c7ce0=this['getAllMarkersForId'](_0x570478);for(const _0x39d348 of _0x2c7ce0)_0x5047e2['editing']['reconvertMarker'](_0x39d348);}if(_0x5afa2c){const {id:_0x2c94a2}=splitMarkerName(_0x5afa2c),_0x38f5f2=_0x5bbcda['getCommentThread'](_0x2c94a2);if(_0x38f5f2&&_0x38f5f2['unlinkedAt'])return;if(_0x38f5f2&&!_0x38f5f2['isAttached'])return;const _0x3c47dc=this['getAllMarkersForId'](_0x2c94a2);for(const _0x3bdafb of _0x3c47dc)_0x5047e2['editing']['reconvertMarker'](_0x3bdafb);}}),_0x570478&&this['scrollToThreadMarker'](_0x570478);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3fb616=this['editor'],_0x423553=_0x3fb616['plugins']['get'](CommentsRepository),_0x2af924=_0x3fb616['config']['get']('collaboration.channelId'),_0x4c2aad=_0x423553['getCommentThreads']()['filter'](_0x3f8c1c=>_0x3f8c1c['channelId']!==_0x2af924);_0x3fb616['commands']['add']('addCommentThread',new AddCommentThreadCommand(_0x3fb616)),this['listenTo'](_0x3fb616,'change:isReadOnly',(_0x5d44b3,_0x408d17,_0x52d86e)=>{_0x423553['switchReadOnly'](_0x52d86e,_0x3fb616['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x423553,createChannelEvent('addCommentThread',_0x2af924),(_0x305f8b,{threadId:_0x5c69a6})=>{const _0x2ecd01=this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0x5c69a6);_0x2ecd01?.['unlinkedAt']&&this['_attachArchivedThread'](_0x5c69a6);}),this['listenTo'](_0x423553,createChannelEvent('removeCommentThread',_0x2af924),(_0xd60f80,{threadId:_0x30302e})=>{_0x3fb616['model']['enqueueChange']({'isUndoable':!0x1},_0x4aca69=>{const _0x244e45=this['getAllMarkersForId'](_0x30302e);for(const _0x3d3950 of _0x244e45)_0x4aca69['removeMarker'](_0x3d3950);});}),this['listenTo'](_0x423553,createChannelEvent('resolveCommentThread',_0x2af924),(_0x47b814,{threadId:_0x5afef5})=>{(this['_reconvertMarkers'](_0x5afef5),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0x5afef5)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x423553,createChannelEvent('reopenCommentThread',_0x2af924),(_0x106a3d,{threadId:_0x3d7c52})=>{this['_reconvertMarkers'](_0x3d7c52);},{'priority':'low'}),this['listenTo'](_0x423553,createChannelEvent('addComment',_0x2af924),(_0x371155,{threadId:_0x108931,isFromAdapter:_0x381589})=>{const _0x1a4b4a=this['getAllMarkersForId'](_0x108931);if(_0x381589||0x0==_0x1a4b4a['length']||!_0x423553['hasCommentThread'](_0x108931))return;0x1===_0x423553['getCommentThread'](_0x108931)['length']&&_0x3fb616['model']['enqueueChange']({'isUndoable':!0x1},_0xfe6e=>{for(const _0x1b7a66 of _0x1a4b4a)_0xfe6e['updateMarker'](_0x1b7a66,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4c2aad);}['afterInit'](){checkLicense$h(this);}['destroy'](){const _0x8fd535=this['editor']['plugins']['get'](CommentsRepository),_0x573fe2=this['editor']['config']['get']('collaboration.channelId');for(const _0x1d2dd3 of _0x8fd535['getCommentThreads']({'channelId':_0x573fe2}))_0x8fd535['_detachCommentThread'](_0x1d2dd3['id']),_0x8fd535['_threads']['delete'](_0x1d2dd3['id']);super['destroy']();}['hasMarkerForId'](_0x5827d6){return this['getAllMarkersForId'](_0x5827d6)['length']>0x0;}['getAllMarkersForId'](_0x1a593f){const _0x5b270a=[];for(const _0x2fb775 of this['editor']['model']['markers'])_0x2fb775['name']['startsWith']('comment:'+_0x1a593f)&&_0x5b270a['push'](_0x2fb775);return _0x5b270a;}['scrollToThreadMarker'](_0x112777){setTimeout(()=>{const _0x4ec594=this['_getTargetForId'](_0x112777);if(!_0x4ec594)return;this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x112777&&scrollViewportToShowTarget({'target':_0x4ec594[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x4d7af3){this['editor']['model']['change'](()=>{for(const _0x54940a of this['getAllMarkersForId'](_0x4d7af3))this['editor']['editing']['reconvertMarker'](_0x54940a);});}['_attachArchivedThread'](_0x130ff5){const _0x426100=this['editor']['plugins']['get'](CommentsRepository),_0x2fa3be=this['editor']['plugins']['get'](EditorAnnotations),_0x481dbc=_0x426100['getCommentThread'](_0x130ff5);if(!_0x481dbc['isAttached']){const _0x3d6cda=_0x481dbc['attachTo'](()=>this['_getTargetForId'](_0x481dbc['id']));_0x2fa3be['registerAnnotation'](_0x3d6cda),_0x481dbc['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1f7040=this['editor'],_0x20a9ac=_0x1f7040['plugins']['get'](Users);_0x1f7040['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x421f0e,_0x5f4c31)=>{const {id:_0x5033c6}=splitMarkerName(_0x421f0e['markerName']),_0x58fe93=_0x1f7040['plugins']['get'](CommentsRepository)['getCommentThread'](_0x5033c6),_0x59660c=this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x5033c6;let _0x497c44;if(_0x58fe93&&_0x58fe93['isResolved']&&!_0x59660c&&_0x421f0e['item'])return _0x5f4c31['consumable']['consume'](_0x421f0e['item'],'addMarker:'+_0x421f0e['markerName']),_0x5f4c31['consumable']['consume'](_0x421f0e['item'],'removeMarker:'+_0x421f0e['markerName']),null;const _0x298bc9=['ck-comment-marker'];return _0x59660c&&_0x298bc9['push']('ck-comment-marker--active'),_0x497c44=_0x58fe93?.['length']?_0x58fe93['comments']['first']['author']['id']:_0x20a9ac['me']['id'],{'classes':_0x298bc9,'attributes':{'data-comment':_0x5033c6,'data-author-id':_0x497c44}};}}),_0x1f7040['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x4b500d,{options:_0x1dacb5})=>{if(_0x1dacb5['showCommentHighlights'])return null;const _0x297128=_0x1f7040['plugins']['get'](CommentsRepository),_0xf14778=_0x1f7040['model']['markers']['get'](_0x4b500d),{id:_0x2f8ec0,part:_0x57ae6a}=splitMarkerName(_0x4b500d);return _0xf14778&&!_0xf14778['affectsData']||_0x1dacb5['ignoreResolvedComments']&&_0x297128['getCommentThread'](_0x2f8ec0)?.['isResolved']?null:{'group':'comment','name':_0x57ae6a?_0x2f8ec0+':'+_0x57ae6a:_0x2f8ec0};}}),_0x1f7040['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x1295fb,{writer:_0x95a214})=>_0x95a214['createElement']('$marker',{'data-name':'comment:'+_0x1295fb['getAttribute']('id')})}),_0x1f7040['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x1ab09e=this['editor'],_0x362ff5=_0x1ab09e['plugins']['get'](CommentsRepository),_0x1569d8=new Set(),_0x1357ea=new Set();_0x1ab09e['model']['document']['registerPostFixer'](_0xd2da06=>{let _0x35e891=!0x1;for(const {name:_0x34a3c8,data:_0x336ea2}of _0x1ab09e['model']['document']['differ']['getChangedMarkers']()){const {group:_0x58bb12,id:_0x206da8}=splitMarkerName(_0x34a3c8);let _0x37c66a=_0x336ea2['newRange'];if('comment'!==_0x58bb12||!_0x37c66a)continue;const _0x267c38='$graveyard'===_0x37c66a['root']['rootName'];_0x267c38||(_0x37c66a=fixMarkerRange(_0x37c66a,_0x1ab09e['model']),!_0x37c66a||_0x37c66a['isCollapsed']||!_0x336ea2['newRange']||_0x37c66a['isEqual'](_0x336ea2['newRange']))?_0x1ab09e['model']['hasContent'](_0x37c66a)&&!_0x267c38?this['isThreadsLoadingPaused']?_0x1569d8['add'](_0x34a3c8):this['_handleThreadMarker'](_0x34a3c8,_0x206da8):(_0x1357ea['add'](_0x34a3c8),_0x1569d8['delete'](_0x34a3c8),_0xd2da06['removeMarker'](_0x34a3c8),_0x35e891=!0x0):(_0xd2da06['updateMarker'](_0x34a3c8,{'range':_0x37c66a}),_0x35e891=!0x0);}return _0x35e891;}),this['on']('change:isThreadsLoadingPaused',(_0xe56a6c,_0x2290b3,_0x3516e3)=>{if(!_0x3516e3&&_0x1569d8['size'])for(const _0x51e6c1 of _0x1569d8){const {id:_0x39e952}=splitMarkerName(_0x51e6c1);_0x1569d8['delete'](_0x51e6c1),_0x1ab09e['model']['markers']['get'](_0x51e6c1)&&this['_handleThreadMarker'](_0x51e6c1,_0x39e952);}}),this['listenTo'](_0x1ab09e['model']['document'],'change',()=>{for(const {name:_0x3300a5,data:{newRange:_0x58d6af}}of _0x1ab09e['model']['document']['differ']['getChangedMarkers']()){const {group:_0x33bf58,id:_0x15510a}=splitMarkerName(_0x3300a5);if('comment'!==_0x33bf58)continue;const _0x2d0aca=_0x362ff5['getCommentThread'](_0x15510a),_0x4e7961=this['hasMarkerForId'](_0x15510a);_0x2d0aca&&(!_0x2d0aca['_hasTargetInContent']&&_0x58d6af&&_0x1ab09e['editing']['view']['once']('render',()=>{const _0x1254ae=_0x1ab09e['plugins']['get'](Annotations),_0x2496f4=_0x362ff5['_threadToController']['get'](_0x2d0aca)['view'];_0x1254ae['getByInnerView'](_0x2496f4)['refreshVisibility']();},{'priority':'low'}),_0x2d0aca['_hasTargetInContent']=_0x4e7961||!!_0x58d6af),_0x58d6af||(_0x1357ea['add'](_0x3300a5),_0x1569d8['delete'](_0x3300a5));}for(const _0x51e345 of _0x1357ea){const {id:_0x2b1ba9}=splitMarkerName(_0x51e345),_0x10b9fc=_0x362ff5['getCommentThread'](_0x2b1ba9);if(_0x1569d8['delete'](_0x51e345),!_0x10b9fc)continue;const _0x53d6ff=this['hasMarkerForId'](_0x2b1ba9);_0x53d6ff||_0x10b9fc['isSubmitted']?_0x53d6ff||_0x10b9fc['unlinkedAt']||_0x10b9fc['setUnlinkedAt'](new Date()):_0x10b9fc['remove']();}_0x1357ea['clear']();});}['_handleInitialThreads'](_0x3f9ebf){_0x3f9ebf['forEach'](_0x267e0e=>{_0x267e0e['unlinkedAt']&&this['_attachArchivedThread'](_0x267e0e['id']);});}['_getTargetForId'](_0x451533){const _0x3fe7fd=this['editor'],_0xd34178=this['getAllMarkersForId'](_0x451533);return getAllMarkersDomElementsSorted(_0x3fe7fd['editing'],_0xd34178);}['_getTextContext'](_0x1093c5){const _0x29218f=this['getAllMarkersForId'](_0x1093c5);let _0x4ca765='',_0x27b6c7=!0x1;for(const _0x2604ac of _0x29218f){const _0x312832=_0x2604ac['getRange']();for(const _0x3710ac of Array['from'](_0x312832['getItems']()))_0x3710ac['is']('$textProxy')?(_0x4ca765&&_0x27b6c7&&(_0x4ca765+='\x20',_0x27b6c7=!0x1),_0x4ca765+=_0x3710ac['data']):_0x27b6c7=!0x0;_0x27b6c7=!0x0;}return _0x4ca765['substring'](0x0,MAX_CONTEXT_LENGTH);}['_attachMarkerToThread'](_0x2edccb,_0x1d6567){const _0x3994c6=this['editor'],_0x99f4a5=_0x3994c6['plugins']['get'](CommentsRepository);let _0x5718c9=_0x99f4a5['getCommentThread'](_0x1d6567);const _0x3be7bc=_0x3994c6['config']['get']('collaboration.channelId'),_0x26d6de=_0x3994c6['plugins']['get'](EditorAnnotations);if(_0x5718c9&&(_0x5718c9['unlinkedAt']&&_0x5718c9['setUnlinkedAt'](null),_0x5718c9['isAttached']))return _0x5718c9;return!this['getAllMarkersForId'](_0x1d6567)[0x0]['managedUsingOperations']?_0x3994c6['editing']['view']['once']('render',()=>{if(_0x99f4a5['getCommentThread'](_0x1d6567))return;const _0x3767ce=_0x3994c6['plugins']['get'](Annotations);_0x5718c9=_0x99f4a5['openNewCommentThread']({'channelId':_0x3be7bc,'threadId':_0x1d6567,'target':()=>this['_getTargetForId'](_0x1d6567),'context':{'type':'text','value':this['_getTextContext'](_0x1d6567)}});const _0x437d0e=_0x99f4a5['_threadToController']['get'](_0x5718c9)['view'],_0x3ccd01=_0x3767ce['getByInnerView'](_0x437d0e);_0x3ccd01&&_0x26d6de['registerAnnotation'](_0x3ccd01);},{'priority':'low'}):_0x99f4a5['fetchCommentThread']({'channelId':_0x3be7bc,'threadId':_0x1d6567})['then'](_0xf10106=>{if('destroyed'!==_0x3994c6['state']){if(_0x5718c9=_0xf10106,_0x5718c9&&!_0x5718c9['isAttached']){const _0x1ff937=_0x5718c9['attachTo'](()=>this['_getTargetForId'](_0x1d6567));_0x26d6de['registerAnnotation'](_0x1ff937),_0x5718c9['isResolved']&&this['_reconvertMarkers'](_0x1d6567);}else{if(!_0x5718c9){const _0x550990=this['getAllMarkersForId'](_0x1d6567);_0x3994c6['model']['change'](_0x28cdf8=>{for(const _0x5a5fd7 of _0x550990)_0x28cdf8['removeMarker'](_0x5a5fd7);});}}}}),_0x5718c9;}['_handleThreadMarker'](_0x22df45,_0x59233a){const _0x1004ca=this['_attachMarkerToThread'](_0x22df45,_0x59233a);_0x1004ca&&!_0x1004ca['context']&&_0x1004ca['setContext']({'type':'text','value':this['_getTextContext'](_0x59233a)});}['_initAriaMarkerChangeAnnouncements'](){const _0x56c38a=this['editor'];surroundingMarkersDetector(_0x56c38a['model'],({left:_0x5ab890,entered:_0x58bcca})=>{for(const _0x230dc2 of _0x5ab890)if(isCommentMarker(_0x230dc2)){_0x56c38a['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x56c38a['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x4f99af of _0x58bcca)if(isCommentMarker(_0x4f99af)){_0x56c38a['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x56c38a['locale'],'ENTER_COMMENT_ANNOUNCEMENT',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}});}}function createChannelEvent(_0x429389,_0x16c24a){return _0x16c24a?_0x429389+':'+_0x16c24a:_0x429389;}function fixMarkerRange(_0x95f631,_0x5b1967){const _0x4ff9a6=_0x5b1967['schema'],_0x1a6d9d=_0x5b1967['createRange'](_0x95f631['start']);for(const _0x14cf50 of _0x95f631['getWalker']()){const {type:_0x5d68dc,item:_0x53da4a,nextPosition:_0x2ff8fa}=_0x14cf50;if('text'===_0x5d68dc||_0x4ff9a6['isObject'](_0x53da4a)){const _0x531ca0=_0x5b1967['createPositionBefore'](_0x53da4a);_0x1a6d9d['isCollapsed']&&(_0x1a6d9d['start']=_0x531ca0),_0x1a6d9d['end']=_0x2ff8fa;}}return _0x1a6d9d;}function isCommentMarker(_0x25d969){return'comment'===splitMarkerName(_0x25d969['name'])['group'];}async function checkLicense$h(_0x452efd){const _0x413053=_0x3bd6c7([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]),_0x3b40b2=window[_0x3bd6c7([0x44,0x61,0x74,0x65])][_0x3bd6c7([0x6e,0x6f,0x77])](),_0x410a5d=_0x452efd[_0x3bd6c7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x483b3e=new window[(_0x3bd6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a8958=>{_0x410a5d[_0x3bd6c7([0x6f,0x6e,0x63,0x65])](_0x3bd6c7([0x72,0x65,0x61,0x64,0x79]),_0x1a8958);}),_0x248b59={[_0x3bd6c7([0x6b,0x74,0x79])]:_0x3bd6c7([0x45,0x43]),[_0x3bd6c7([0x75,0x73,0x65])]:_0x3bd6c7([0x73,0x69,0x67]),[_0x3bd6c7([0x63,0x72,0x76])]:_0x3bd6c7([0x50,0x2d,0x32,0x35,0x36]),[_0x3bd6c7([0x78])]:_0x3bd6c7([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]),[_0x3bd6c7([0x79])]:_0x3bd6c7([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]),[_0x3bd6c7([0x61,0x6c,0x67])]:_0x3bd6c7([0x45,0x53,0x32,0x35,0x36])},_0x341b07=_0x410a5d[_0x3bd6c7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bd6c7([0x67,0x65,0x74])](_0x3bd6c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x19d9e1=await(async function(){let _0x7cca1,_0xd6de97=null,_0x28da3e=null;try{if(_0x341b07==_0x3bd6c7([0x47,0x50,0x4c]))return _0x3bd6c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7cca1=(function(){const _0x4d0589=_0x341b07[_0x3bd6c7([0x73,0x70,0x6c,0x69,0x74])](_0x3bd6c7([0x2e]));if(0x3!=_0x4d0589[_0x3bd6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5932f5=_0x4d0589[0x1];return _0x439a0b(_0x5932f5);function _0x439a0b(_0x2a816a){const _0x9a51f5=_0x1e62c5(_0x2a816a);return _0x9a51f5&&_0x2e436e()?_0x9a51f5:null;function _0x2e436e(){const _0x306310=_0x9a51f5[_0x3bd6c7([0x6a,0x74,0x69])],_0x1e6096=window[_0x3bd6c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x306310[_0x3bd6c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x306310[_0x3bd6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27196f={..._0x9a51f5,[_0x3bd6c7([0x6a,0x74,0x69])]:_0x306310[_0x3bd6c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x306310[_0x3bd6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27196f[_0x3bd6c7([0x76,0x63])],_0x544d27(_0x27196f)==_0x1e6096;}}}()),!_0x7cca1)return _0x3bd6c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x7cca1[_0x3bd6c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28da3e=function(_0x474edb,_0x1bc1e6){return new window[(_0x3bd6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dc72b=>{if(_0x214e0f())return _0x5dc72b(_0x3bd6c7([0x56,0x61,0x6c,0x69,0x64]));_0x4ef427(),_0x410a5d[_0x3bd6c7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bd6c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cdb17=!0x1;const _0x2cbbab=uid();function _0x2c7773(_0x51a380){return!!_0x51a380&&(typeof _0x51a380===_0x3bd6c7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51a380===_0x3bd6c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51a380[_0x3bd6c7([0x74,0x68,0x65,0x6e])]===_0x3bd6c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51a380[_0x3bd6c7([0x63,0x61,0x74,0x63,0x68])]===_0x3bd6c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x530a12(_0x3236ab){_0x171139(_0x3236ab)[_0x3bd6c7([0x74,0x68,0x65,0x6e])](_0x2d2cc2=>{if(!_0x2d2cc2||_0x2d2cc2[_0x3bd6c7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bd6c7([0x6f,0x6b]))return _0x3bd6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xce66f9(_0x544d27(_0x2cbbab+_0x1bc1e6))!=_0x2d2cc2[_0x3bd6c7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bd6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bd6c7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bd6c7([0x74,0x68,0x65,0x6e])](_0x164534=>(_0x25be2e(),_0x164534),()=>{const _0x451e21=_0x1b731c();return null==_0x451e21?(_0x25be2e(),_0x3bd6c7([0x56,0x61,0x6c,0x69,0x64])):_0x3bd6c7(_0x3b40b2-_0x451e21>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bd6c7([0x74,0x68,0x65,0x6e])](_0x5dc72b)[_0x3bd6c7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5dc72b(_0x3bd6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x48d098=0x36ee80;function _0x25be2e(){const _0x13bbea=_0x3bd6c7([0x6c,0x6c,0x63,0x74,0x2d])+_0xce66f9(_0x544d27(_0x474edb)),_0x99a344=_0xc98f2c(_0xce66f9(window[_0x3bd6c7([0x4d,0x61,0x74,0x68])][_0x3bd6c7([0x63,0x65,0x69,0x6c])](_0x3b40b2/_0x48d098)));window[_0x3bd6c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bd6c7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13bbea,_0x99a344);}function _0x1b731c(){const _0x461a18=_0x3bd6c7([0x6c,0x6c,0x63,0x74,0x2d])+_0xce66f9(_0x544d27(_0x474edb)),_0x217baf=window[_0x3bd6c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bd6c7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x461a18);return _0x217baf?window[_0x3bd6c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc98f2c(_0x217baf),0x10)*_0x48d098:null;}function _0x171139(_0x4f189a){return new window[(_0x3bd6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b62f0,_0x5b6a88)=>{_0x4f189a[_0x3bd6c7([0x74,0x68,0x65,0x6e])](_0x1b62f0,_0x5b6a88),window[_0x3bd6c7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b6a88,0x1d4c0);});}}_0x410a5d[_0x3bd6c7([0x6f,0x6e])](_0x3bd6c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51bd36,_0x1b66b0)=>{if(_0x1b66b0[0x0]!=_0x474edb)return _0x5dc72b(_0x3bd6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b66b0[0x1]={..._0x1b66b0[0x1],[_0x3bd6c7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2cbbab};},{[_0x3bd6c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bd6c7([0x68,0x69,0x67,0x68])}),_0x410a5d[_0x3bd6c7([0x6f,0x6e])](_0x3bd6c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfea894=>{_0x2c7773(_0xfea894[_0x3bd6c7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cdb17=!0x0,_0x530a12(_0xfea894[_0x3bd6c7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bd6c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bd6c7([0x6c,0x6f,0x77])}),_0x483b3e[_0x3bd6c7([0x74,0x68,0x65,0x6e])](()=>{_0x1cdb17||_0x5dc72b(_0x3bd6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x214e0f(){return _0x410a5d[_0x3bd6c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bd6c7([0x76,0x69,0x65,0x77])][_0x3bd6c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bd6c7([0x61,0x75,0x74,0x6f]);}function _0x4ef427(){_0x410a5d[_0x3bd6c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bd6c7([0x76,0x69,0x65,0x77])][_0x3bd6c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bd6c7([0x61,0x75,0x74,0x6f]);}}(_0x7cca1[_0x3bd6c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7cca1[_0x3bd6c7([0x6a,0x74,0x69])]));const _0x33a72c=await(async function(){let _0x4cea2b=!0x0;try{const _0x1189a8=_0x341b07[_0x3bd6c7([0x73,0x70,0x6c,0x69,0x74])](_0x3bd6c7([0x2e])),[_0x386b86,_0x1a4810,_0x46ddfa]=_0x1189a8;return _0x5bbbd3(_0x386b86),await _0x5e6192(_0x386b86,_0x1a4810,_0x46ddfa),_0x4cea2b;}catch{return!0x1;}function _0x5bbbd3(_0x5c0388){const _0x1dcd72=_0x1e62c5(_0x5c0388);_0x1dcd72&&_0x1dcd72[_0x3bd6c7([0x61,0x6c,0x67])]==_0x3bd6c7([0x45,0x53,0x32,0x35,0x36])||(_0x4cea2b=!0x1);}async function _0x5e6192(_0x5b922b,_0x150e0b,_0x5f3ed3){const _0x1440db=window[_0x3bd6c7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bd6c7([0x66,0x72,0x6f,0x6d])](_0x1096f3(_0x5f3ed3),_0x42de50=>_0x42de50[_0x3bd6c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9bfece=new window[(_0x3bd6c7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bd6c7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b922b+_0x3bd6c7([0x2e])+_0x150e0b),_0x825eb6=window[_0x3bd6c7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bd6c7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x825eb6)return;const _0xc07d84=await _0x825eb6[_0x3bd6c7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bd6c7([0x6a,0x77,0x6b]),_0x248b59,{[_0x3bd6c7([0x6e,0x61,0x6d,0x65])]:_0x3bd6c7([0x45,0x43,0x44,0x53,0x41]),[_0x3bd6c7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bd6c7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bd6c7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x825eb6[_0x3bd6c7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bd6c7([0x6e,0x61,0x6d,0x65])]:_0x3bd6c7([0x45,0x43,0x44,0x53,0x41]),[_0x3bd6c7([0x68,0x61,0x73,0x68])]:{[_0x3bd6c7([0x6e,0x61,0x6d,0x65])]:_0x3bd6c7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc07d84,_0x1440db,_0x9bfece)||(_0x4cea2b=!0x1);}}());return _0x33a72c?(function(){const _0x34ee60=_0x7cca1[_0x3bd6c7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x34ee60)return!0x1;if(_0x34ee60[_0x3bd6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bd6c7([0x2a])))return!0x0;if(_0x34ee60[_0x3bd6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bd6c7([0x43,0x4d,0x54])))return!0x0;if(_0x34ee60[_0x3bd6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bd6c7([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x3bd6c7([0x67,0x6c,0x6f,0x62])]&&window[_0x3bd6c7([0x67,0x6c,0x6f,0x62])][_0x3bd6c7([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;if(_0x34ee60[_0x3bd6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bd6c7([0x52,0x43,0x4d,0x54]))){if(_0x1da846(_0x3bd6c7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x32262f=_0x3bd6c7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x410a5d[_0x3bd6c7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bd6c7([0x67,0x65,0x74])](_0x32262f))[_0x3bd6c7([0x73,0x74,0x61,0x74,0x65])]==_0x3bd6c7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x1da846(_0x3bd6c7([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]))||_0x1da846(_0x3bd6c7([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 _0x32262f;return!0x1;}())?(function(){const _0x3b0752=[_0x3bd6c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bd6c7([0x74,0x72,0x69,0x61,0x6c])][_0x3bd6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7cca1[_0x3bd6c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b40b2/0x3e8:0x69b0b080;return _0x7cca1[_0x3bd6c7([0x65,0x78,0x70])]<_0x3b0752;}())?_0x3bd6c7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1848ba=_0x7cca1[_0x3bd6c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1848ba||0x0==_0x1848ba[_0x3bd6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x295898}=new URL(window[_0x3bd6c7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1848ba[_0x3bd6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x295898))return!0x0;const _0x390558=_0x295898[_0x3bd6c7([0x73,0x70,0x6c,0x69,0x74])](_0x3bd6c7([0x2e]));return _0x1848ba[_0x3bd6c7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14313c=>_0x14313c[_0x3bd6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bd6c7([0x2a])))[_0x3bd6c7([0x6d,0x61,0x70])](_0x2c310f=>_0x2c310f[_0x3bd6c7([0x73,0x70,0x6c,0x69,0x74])](_0x3bd6c7([0x2e])))[_0x3bd6c7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fbce6=>_0x2fbce6[_0x3bd6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x390558[_0x3bd6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bd6c7([0x6d,0x61,0x70])](_0x14b4ef=>Array(_0x390558[_0x3bd6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x14b4ef[_0x3bd6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bd6c7([0x66,0x69,0x6c,0x6c])](_0x14b4ef[0x0]===_0x3bd6c7([0x2a])?_0x3bd6c7([0x2a]):'')[_0x3bd6c7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x14b4ef))[_0x3bd6c7([0x73,0x6f,0x6d,0x65])](_0x45db5e=>_0x390558[_0x3bd6c7([0x65,0x76,0x65,0x72,0x79])]((_0x4cdb0d,_0x275e7f)=>_0x45db5e[_0x275e7f]===_0x4cdb0d||_0x45db5e[_0x275e7f]===_0x3bd6c7([0x2a])));}())?(_0x7cca1[_0x3bd6c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bd6c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd6de97=function(_0x4bab2b){const _0x3e3ba9=new window[(_0x3bd6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d7caa=>setTimeout(_0x4d7caa,0x93ecc)),_0x2cd6af=_0x483b3e[_0x3bd6c7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bd6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x515da6=>{let _0x151c30=0x0;_0x410a5d[_0x3bd6c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bd6c7([0x6f,0x6e])](_0x3bd6c7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36fbab,_0x1997e6)=>{_0x1997e6[0x0][_0x3bd6c7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x151c30++,0x5e8==_0x151c30&&(_0x515da6(),_0x36fbab[_0x3bd6c7([0x6f,0x66,0x66])]());});})),_0x246440=[_0x3e3ba9,_0x2cd6af];return window[_0x3bd6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bd6c7([0x72,0x61,0x63,0x65])](_0x246440)[_0x3bd6c7([0x74,0x68,0x65,0x6e])](()=>_0x4bab2b);}(_0x3bd6c7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0xd6de97&&_0x28da3e)return new window[(_0x3bd6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a7c59,_0x2a4910)=>{_0xd6de97[_0x3bd6c7([0x74,0x68,0x65,0x6e])](_0x4a7c59,_0x2a4910),_0x28da3e[_0x3bd6c7([0x74,0x68,0x65,0x6e])](_0x28d738=>{_0x28d738!=_0x3bd6c7([0x56,0x61,0x6c,0x69,0x64])&&_0x4a7c59(_0x28d738);},_0x2a4910);});return _0xd6de97||_0x28da3e||_0x3bd6c7([0x56,0x61,0x6c,0x69,0x64]);}())):_0x3bd6c7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bd6c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bd6c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3bd6c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x1e62c5(_0x25a1b0){return _0x25a1b0[_0x3bd6c7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bd6c7([0x65,0x79]))?JSON[_0x3bd6c7([0x70,0x61,0x72,0x73,0x65])](_0x1096f3(_0x25a1b0)):null;}function _0x1096f3(_0x5eb8f4){return window[_0x3bd6c7([0x61,0x74,0x6f,0x62])](_0x5eb8f4[_0x3bd6c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bd6c7([0x2b]))[_0x3bd6c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bd6c7([0x2f])));}function _0x544d27(_0x2f87dd){let _0x5f14ae=0x1505;function _0x57700a(_0x1fb862){for(let _0x53fb3e=0x0;_0x53fb3e<_0x1fb862[_0x3bd6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53fb3e++){const _0xc990a8=_0x1fb862[_0x3bd6c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53fb3e);_0x5f14ae=(_0x5f14ae<<0x5)+_0x5f14ae+_0xc990a8,_0x5f14ae&=_0x5f14ae;}}return function _0x2d26cf(_0x3aeab8){Array[_0x3bd6c7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3aeab8)?_0x3aeab8[_0x3bd6c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d26cf):_0x3aeab8&&typeof _0x3aeab8==_0x3bd6c7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bd6c7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3aeab8)[_0x3bd6c7([0x73,0x6f,0x72,0x74])]()[_0x3bd6c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e40a4,_0x559f45])=>{_0x57700a(_0x3e40a4),_0x2d26cf(_0x559f45);}):_0x57700a(window[_0x3bd6c7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3aeab8));}(_0x2f87dd),_0x5f14ae>>>0x0;}function _0xce66f9(_0x16d86c){return _0x16d86c[_0x3bd6c7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bd6c7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bd6c7([0x30]));}function _0xc98f2c(_0x36a589){return _0x36a589[_0x3bd6c7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bd6c7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bd6c7([0x6a,0x6f,0x69,0x6e])]('');}function _0x1da846(_0x789598){return _0x410a5d[_0x3bd6c7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bd6c7([0x68,0x61,0x73])](_0x789598);}function _0x53abc2(){}function _0x3bd6c7(_0x2c8030){return _0x2c8030['map'](_0x3233f9=>String['fromCharCode'](_0x3233f9))['join']('');}!function(_0x101679){const _0x951b7d=(function(){const _0x8db6b8=window[_0x3bd6c7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bd6c7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bd6c7([0x6e,0x6f,0x77])]())[_0x3bd6c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bd6c7([0x2e]),'');let _0x4d9caf=_0x3bd6c7([0x4b]);for(let _0x39972e=0x0;_0x39972e<_0x8db6b8[_0x3bd6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39972e+=0x2){let _0xcc9ce4=window[_0x3bd6c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8db6b8[_0x3bd6c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39972e,_0x39972e+0x2));_0xcc9ce4>=_0x413053[_0x3bd6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcc9ce4-=_0x413053[_0x3bd6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d9caf+=_0x413053[_0xcc9ce4];}return _0x4d9caf;}());_0x410a5d[_0x951b7d]=_0x3bd6c7([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x101679,_0x101679!=_0x3bd6c7([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x483b3e,_0x410a5d[_0x3bd6c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bd6c7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53abc2,_0x410a5d[_0x3bd6c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bd6c7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53abc2,_0x410a5d[_0x3bd6c7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bd6c7([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x19d9e1);}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 _0x59386c=this['editor'],_0x313f78=_0x59386c['plugins']['get'](CommentsRepository),_0x45b6a9=_0x59386c['plugins']['get'](CommentsEditing),_0x3e66b9=_0x59386c['plugins']['get'](Annotations),_0x5cb03e=_0x59386c['plugins']['get'](EditorAnnotations);_0x59386c['ui']['componentFactory']['add']('comment',()=>{const _0x4ef0dd=this['_createUIButton'](ButtonView);return _0x4ef0dd['tooltip']=!0x0,_0x4ef0dd;}),_0x59386c['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](MenuBarMenuListItemButtonView)),_0x5cb03e['addSourceCollector'](()=>{const _0x1b3d67=[];for(const [_0x316f4b,_0x5c4de9]of _0x313f78['_threadToController']){const _0x8df74a=_0x45b6a9['getAllMarkersForId'](_0x316f4b['id']),_0x3e9971=_0x8df74a['map'](_0x5a45da=>_0x5a45da['getRange']());_0x8df74a['length']>0x0&&_0x1b3d67['push']([_0x5c4de9['view'],_0x3e9971]);}return _0x1b3d67;}),this['listenTo'](_0x3e66b9,'change:activeAnnotations',(_0x37feca,_0x31afb8,_0x58aac1)=>{const _0x2294af=Array['from'](_0x58aac1)['map'](_0x3879c8=>_0x3879c8['innerView'])['find'](_0x1fd318=>_0x313f78['_viewToController']['has'](_0x1fd318));if(!_0x2294af)return void(_0x45b6a9['activeMarker']=null);const _0x3627f3=_0x313f78['_viewToController']['get'](_0x2294af)['model']['id'],_0x51ba53='comment:'+_0x3627f3;_0x3627f3&&_0x45b6a9['hasMarkerForId'](_0x3627f3)?_0x45b6a9['activeMarker']=_0x51ba53:_0x45b6a9['activeMarker']&&(_0x45b6a9['activeMarker']=null);}),this['listenTo'](_0x313f78,'removeCommentThread',(_0x31a3c0,{threadId:_0x42a2ea,isFromAdapter:_0x58537d})=>{!_0x58537d&&_0x59386c['ui']['focusTracker']['isFocused']&&_0x45b6a9['hasMarkerForId'](_0x42a2ea)&&_0x59386c['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x313f78,'addComment',(_0x571c4e,{threadId:_0x288608,isFromAdapter:_0x304706})=>{if(_0x304706||!_0x45b6a9['hasMarkerForId'](_0x288608)||!_0x313f78['hasCommentThread'](_0x288608))return;0x1===_0x313f78['getCommentThread'](_0x288608)['length']&&(_0x59386c['editing']['view']['focus'](),_0x571c4e['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1df7ac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x337bcc;for(const _0x2c9c53 in _0x1df7ac){const _0x3175a6=_0x2c9c53,_0x20b678=_0x1df7ac[_0x3175a6];if('commentsLicenseKeyValid'==_0x20b678||'commentsLicenseKeyInvalid'==_0x20b678||'commentsLicenseKeyExpired'==_0x20b678||'commentsLicenseKeyDomainLimit'==_0x20b678||'commentsLicenseKeyNotAllowed'==_0x20b678||'commentsLicenseKeyEvaluationLimit'==_0x20b678||'commentsLicenseKeyUsageLimit'==_0x20b678){delete _0x1df7ac[_0x3175a6],_0x337bcc=_0x20b678,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x337bcc&&_0x1df7ac['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x337bcc&&_0x1df7ac['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x337bcc&&_0x1df7ac['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x337bcc&&_0x1df7ac['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x337bcc&&_0x1df7ac['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x337bcc&&_0x1df7ac['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x1bf3f3){const _0x38dd2e=this['editor'],_0x9f4f65=new _0x1bf3f3(_0x38dd2e['locale']),_0x2ba095=_0x38dd2e['commands']['get']('addCommentThread');return _0x9f4f65['set']({'label':getTranslation$f(_0x38dd2e['locale'],'Comment'),'icon':IconAddComment}),_0x9f4f65['bind']('isEnabled')['to'](_0x2ba095,'isEnabled',_0x2ba095,'hasContent',(_0x53c969,_0x4b6019)=>_0x53c969&&_0x4b6019),this['listenTo'](_0x9f4f65,'execute',()=>{_0x2ba095['execute']();}),_0x9f4f65;}}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(_0x6275ab){super(_0x6275ab),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x5209e6,_0x377e6f,_0x14dbc8)=>{_0x14dbc8?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x22e952,_0x41a556]of this['editor']['commands'])_0x41a556['affectsData']&&'addCommentThread'!==_0x22e952&&_0x41a556['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 _0xfd747d=this['editor']['editing']['view']['document'];this['listenTo'](_0xfd747d,'cut',_0x3c1fe5=>_0x3c1fe5['stop'](),{'priority':'highest'}),this['listenTo'](_0xfd747d,'clipboardInput',_0x15ddf0=>_0x15ddf0['stop'](),{'priority':'highest'}),this['listenTo'](_0xfd747d,'delete',_0x3f8233=>_0x3f8233['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x3dd857,_0x48c504]of this['editor']['commands'])_0x48c504['affectsData']&&'addCommentThread'!==_0x3dd857&&_0x48c504['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(_0x4f7184){super(_0x4f7184),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x3f88cd=this['context']['plugins']['get'](Annotations);this['listenTo'](_0x3f88cd,'_activateAnnotation',(_0x507a8c,_0x51a031)=>{for(const _0x5c6222 of this['activeUIs']){const _0x229ac5=this['_uis']['get'](_0x5c6222);(0x0,this['uisData']['get'](_0x5c6222)['filter'])(_0x51a031)&&_0x229ac5['setActiveAnnotation'](_0x51a031);}}),this['listenTo'](_0x3f88cd,'_deactivateAllAnnotations',()=>{for(const _0x105cc4 of this['activeUIs']){this['_uis']['get'](_0x105cc4)['setActiveAnnotation'](null);}}),this['listenTo'](_0x3f88cd['_visibleAnnotations'],'add',(_0x57bcdd,_0x5374cc)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5374cc);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x294ada){return this['activeUIs']['has'](_0x294ada);}['activate'](_0x141d95,_0x1bf600=this['defaultFilter']){const _0x43ce15=this['context']['plugins']['get'](Annotations);if(!this['_uis']['has'](_0x141d95))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x141d95});this['isActive'](_0x141d95)&&this['deactivate'](_0x141d95),this['activeUIs']['add'](_0x141d95);const _0x3427d7=new AnnotationCollection();bindAnnotationCollections({'source':_0x43ce15['_visibleAnnotations'],'target':_0x3427d7,'filter':_0x1bf600}),this['uisData']['set'](_0x141d95,{'collection':_0x3427d7,'filter':_0x1bf600});const _0x4adf03=this['_uis']['get'](_0x141d95);_0x4adf03['attach'](_0x3427d7),this['listenTo'](_0x4adf03,'change:activeAnnotation',(_0x10daf4,_0x9c5d88,_0x5680a5,_0x5bd0ab)=>{_0x5bd0ab&&_0x43ce15['_removeActiveAnnotation'](_0x5bd0ab),_0x5680a5&&_0x43ce15['_addActiveAnnotation'](_0x5680a5);});}['deactivate'](_0x4daf86){if(this['activeUIs']['delete'](_0x4daf86),!this['_uis']['has'](_0x4daf86))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x4daf86});const _0xa1fa4c=this['_uis']['get'](_0x4daf86);_0xa1fa4c['detach'](),this['stopListening'](_0xa1fa4c),this['uisData']['get'](_0x4daf86)['collection']['destroy'](),this['uisData']['delete'](_0x4daf86);}['switchTo'](_0x49c52a){if(!this['_uis']['has'](_0x49c52a))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x49c52a});const _0x360e9f=this['context']['plugins']['get'](Annotations),_0x2121e9=Array['from'](_0x360e9f['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x49c52a);const _0x4baed5=this['_uis']['get'](_0x49c52a);_0x4baed5['setActiveAnnotation'](_0x2121e9),_0x4baed5['_setSelectedAnnotations']&&_0x2121e9&&_0x4baed5['_setSelectedAnnotations']([_0x2121e9]);}['deactivateAll'](){for(const _0x24ae71 of this['activeUIs'])this['deactivate'](_0x24ae71);}['register'](_0x51978b,_0x11425a){if(this['_uis']['has'](_0x51978b))throw new CKEditorError('annotationsuis-register-already-registered');if('function'!=typeof _0x11425a['attach']||'function'!=typeof _0x11425a['detach']||'function'!=typeof _0x11425a['setActiveAnnotation'])throw new CKEditorError('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x51978b,_0x11425a);}['refilterAnnotations'](){const _0x572a6d=this['context']['plugins']['get'](Annotations)['collection'],_0x2b2001=new Map(),_0x12a606=Array['from'](this['activeUIs']);for(const _0x38228a of this['activeUIs']){const _0x176a6f=this['uisData']['get'](_0x38228a)['collection'];for(const _0x3796a8 of _0x176a6f)_0x2b2001['set'](_0x3796a8,_0x38228a);}for(const _0x1a1624 of _0x572a6d){const _0x283452=_0x2b2001['get'](_0x1a1624);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1a1624);const _0x33f4be=_0x12a606['find'](_0x32d755=>this['uisData']['get'](_0x32d755)['filter'](_0x1a1624));_0x283452!==_0x33f4be&&(_0x283452&&this['uisData']['get'](_0x283452)['collection']['remove'](_0x1a1624),_0x33f4be&&this['uisData']['get'](_0x33f4be)['collection']['add'](_0x1a1624));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x13052b){const _0x770d6f=[];for(const _0x10bf70 of this['activeUIs']){(0x0,this['uisData']['get'](_0x10bf70)['filter'])(_0x13052b)&&_0x770d6f['push'](_0x10bf70);}if(_0x770d6f['length']>0x1)throw new CKEditorError('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x770d6f,'annotationType':_0x13052b['type']});}}const toPx$2=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarView extends View{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x1c42b6){super(_0x1c42b6);const _0x547e81=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',_0x547e81['to']('class')],'style':{'minHeight':_0x547e81['to']('minHeight',_0x42d62f=>'number'==typeof _0x42d62f?toPx$2(_0x42d62f+0xa):null)},'dir':_0x1c42b6['uiLanguageDirection'],'role':'application','aria-label':getTranslation$f(_0x1c42b6,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':getTranslation$f(_0x1c42b6,'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',_0x50962b=>{this['_updateItemPositionInFocusables'](_0x50962b['source']);}),this['list']['forEach'](_0x5dea8d=>{this['focusTracker']['add'](_0x5dea8d['element']),this['_updateItemPositionInFocusables'](_0x5dea8d);}),this['list']['on']('change',(_0x5c1982,_0x59807e)=>{for(const _0x462b1e of _0x59807e['removed'])this['focusTracker']['remove'](_0x462b1e['element']),this['focusables']['remove'](_0x462b1e);for(const _0xbf4623 of _0x59807e['added'])this['focusTracker']['add'](_0xbf4623['element']),this['_updateItemPositionInFocusables'](_0xbf4623);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0xcaca63){const _0x18eea9=this['focusables']['getIndex'](_0xcaca63);let _0x38e59f,_0x2fa2ab;for(const _0x186a9c of this['focusables'])if(_0xcaca63['top']<_0x186a9c['top']){_0x38e59f=_0x186a9c;break;}if(_0x2fa2ab=_0x38e59f?this['focusables']['getIndex'](_0x38e59f):this['focusables']['length'],-0x1!==_0x18eea9){if(_0x18eea9===_0x2fa2ab-0x1)return;this['focusables']['remove'](_0xcaca63),_0x2fa2ab=_0x38e59f?this['focusables']['getIndex'](_0x38e59f):this['focusables']['length'];}this['focusables']['add'](_0xcaca63,_0x2fa2ab);}}const toPx$1=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarItemView extends View{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x2cf631){super(_0x2cf631),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x244761,_0x3ba1d9)=>_0x244761+_0x3ba1d9),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=createMutationObserver(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x42dff5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x42dff5['to']('isAnimationDisabled',_0x335d57=>_0x335d57?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x42dff5['to']('top',_0x2c6315=>toPx$1(_0x2c6315))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x3294f4=this['element']['clientHeight'];_0x3294f4&&(this['height']=_0x3294f4);}['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(_0x89b510){super(_0x89b510),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 _0x50e79c=this['context']['config']['get']('sidebar.container');_0x50e79c&&this['setContainer'](_0x50e79c);}['setContainer'](_0xd23c93){if(!isElement(_0xd23c93))throw new CKEditorError('sidebar-setcontainer-invalid-element');this['container']=_0xd23c93;}['_attachToContainer']({viewClass:_0xa81023='',spaceBetweenItems:_0x27a0f3=0x19}={}){if(!isElement(this['container']))throw new CKEditorError('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0xa81023,this['_spaceBetweenItems']=_0x27a0f3;}['rearrange']({removedAnnotation:_0x1a7518,previousAnnotation:_0x40f6b6,nextAnnotation:_0x1bd3a6}){const _0x538b0e=this['getSidebarItemView'](_0x1a7518);this['view']['list']['remove'](_0x538b0e),this['_destroySidebarItemView'](_0x1a7518),_0x40f6b6&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x40f6b6)),_0x1bd3a6&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1bd3a6)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x1edc77,activatedAnnotation:_0x566704,disableAnimationOnActivatedAnnotation:_0x58c1ac}){if(this['_activeAnnotation']=_0x566704,_0x1edc77){_0x1edc77['isActive']=!0x1;const _0x45a771=this['getSidebarItemView'](_0x1edc77);_0x45a771&&_0x58c1ac&&(_0x45a771['isAnimationDisabled']=!0x1);}if(_0x566704){const _0x23f2c6=this['getSidebarItemView'](_0x566704);_0x23f2c6&&(_0x566704['isActive']=!0x0,_0x58c1ac&&(_0x23f2c6['isAnimationDisabled']=!0x0,_0x23f2c6['top']+=0x1),this['_alignToTargetRect'](_0x23f2c6));}}['_detachFromContainer'](_0xf44fda){if(this['view']['element']['remove'](),_0xf44fda){for(const _0x5e315a of _0xf44fda)this['_destroySidebarItemView'](_0x5e315a);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x182f0a,_0x43861f){_0x43861f||(_0x43861f=_0x182f0a['view']);const _0x3c85b3=new AnnotationsSidebarItemView(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x3c85b3,_0x182f0a),this['_annotationToSidebarItemView']['set'](_0x182f0a,_0x3c85b3),_0x3c85b3['content']['add'](_0x43861f),this['listenTo'](_0x182f0a['view'],'change:targetRect',(_0x4c619f,_0x54b68f,_0x39f80e)=>{const _0x4a7660=this['_getTargetTop'](_0x182f0a,_0x39f80e);_0x3c85b3['_targetTop']!=_0x4a7660&&(_0x3c85b3['_targetTop']=_0x4a7660,this['_setItemTop'](_0x3c85b3,_0x4a7660));}),this['listenTo'](_0x3c85b3,'change:top',()=>{this['_recalculate'](_0x3c85b3,'top');}),this['listenTo'](_0x3c85b3,'change:bottom',()=>{this['_recalculate'](_0x3c85b3,'bottom');}),this['_alignToTargetRect'](_0x3c85b3);const _0x390deb=this['_getItemBefore'](_0x3c85b3);if(_0x390deb)this['_alignAfterItem'](_0x390deb,_0x3c85b3)||this['_alignToTargetRect'](_0x3c85b3);else this['_alignToTargetRect'](_0x3c85b3);return this['_updateLastItem'](),this['view']['list']['add'](_0x3c85b3),_0x3c85b3;}['_alignForTopChange'](_0x418f01){if(!_0x418f01['content']['length'])return;const _0x120896=this['_getItemBefore'](_0x418f01);if(!_0x120896)return;const _0x2d5058=this['_sidebarItemViewToAnnotation']['get'](_0x120896),_0x845a37=this['_activeAnnotation'];_0x845a37&&_0x845a37===_0x2d5058?this['_alignAfterItem'](_0x120896,_0x418f01):this['_alignBeforeItem'](_0x418f01,_0x120896);}['_alignForBottomChange'](_0x31d90e){if(!_0x31d90e['content']['length'])return;const _0x20c3e1=this['_getItemAfter'](_0x31d90e);if(!_0x20c3e1)return;const _0x1bd1d3=this['_sidebarItemViewToAnnotation']['get'](_0x20c3e1),_0x4ef8af=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x8c87b0=this['_activeAnnotation'];_0x8c87b0&&_0x8c87b0===_0x1bd1d3&&_0x4ef8af?(this['_alignBeforeItem'](_0x20c3e1,_0x31d90e),this['_alignAfterItem'](_0x31d90e,_0x20c3e1)):_0x8c87b0&&_0x8c87b0===_0x1bd1d3?this['_alignBeforeItem'](_0x20c3e1,_0x31d90e):this['_alignAfterItem'](_0x31d90e,_0x20c3e1);}['_recalculate'](_0x1c36b1,_0x1005b2){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2e9fcc,changedProp:_0x50d856}of this['_recalculateBuffer'])'top'===_0x50d856?this['_alignForTopChange'](_0x2e9fcc):this['_alignForBottomChange'](_0x2e9fcc);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x1c36b1,'changedProp':_0x1005b2});}['getSidebarItemView'](_0x49ac44){return this['_annotationToSidebarItemView']['get'](_0x49ac44);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2413fc){const _0x15f8f1=this['getSidebarItemView'](_0x2413fc);this['stopListening'](_0x15f8f1),this['stopListening'](_0x2413fc['view']),_0x15f8f1['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2413fc),this['_sidebarItemViewToAnnotation']['delete'](_0x15f8f1);}['_createSidebarView'](){const _0x203997=new AnnotationsSidebarView(this['context']['locale']);return _0x203997['render'](),this['on']('change:_lastItem',(_0x317af6,_0x13d816,_0x6e8869,_0x4c7ac8)=>{_0x4c7ac8&&_0x203997['unbind']('minHeight'),_0x6e8869?_0x203997['bind']('minHeight')['to'](_0x6e8869,'bottom'):_0x203997['minHeight']=null;}),_0x203997;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x5f53c3){const _0x55c356=this['_sidebarItemViewToAnnotation']['get'](_0x5f53c3),_0x2ec245=_0x55c356&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x55c356)-0x1);return _0x2ec245&&this['getSidebarItemView'](_0x2ec245)||null;}['_getItemAfter'](_0x2191aa){const _0xddbd5=this['_sidebarItemViewToAnnotation']['get'](_0x2191aa),_0x48c8da=_0xddbd5&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xddbd5)+0x1);return _0x48c8da&&this['getSidebarItemView'](_0x48c8da)||null;}['_alignBeforeItem'](_0x14532a,_0x4d4088){_0x14532a['updateHeight']();const _0x169c1d=getOverlap(_0x4d4088['bottom']+this['_spaceBetweenItems'],_0x14532a['top']);return!!_0x169c1d&&(this['_setItemTop'](_0x4d4088,_0x4d4088['top']-_0x169c1d),!0x0);}['_alignAfterItem'](_0x13d606,_0x15a0e4){_0x13d606['updateHeight']();const _0x3816ef=getOverlap(_0x13d606['bottom']+this['_spaceBetweenItems'],_0x15a0e4['top']);return!!_0x3816ef&&(this['_setItemTop'](_0x15a0e4,_0x15a0e4['top']+_0x3816ef,!0x1),!0x0);}['_alignToTargetRect'](_0x9260fa){const _0xd4523a=this['_sidebarItemViewToAnnotation']['get'](_0x9260fa);if(!_0xd4523a||!_0xd4523a['target']||!_0xd4523a['targetRect'])return;const _0x2effb4=this['_getTargetTop'](_0xd4523a,_0xd4523a['targetRect']);this['_setItemTop'](_0x9260fa,_0x2effb4);}['_getTargetTop'](_0x4db4f1,_0x302e53){if(null===_0x302e53)return 0x0;if(_0x4db4f1['target']instanceof Rect)return _0x302e53['top'];{const _0x9f0d32=new Rect(this['view']['element'])['top'];return _0x302e53['top']-_0x9f0d32;}}['_setItemTop'](_0x1a5eca,_0x3e2c5f,_0x52b964=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x52b964&&(_0x3e2c5f=Math['max'](_0x3e2c5f,this['_getMaxAvailableTop'](_0x1a5eca))),_0x1a5eca['top']=_0x3e2c5f;}['_getMaxAvailableTop'](_0x2e5069){let _0x225da4=this['_getItemBefore'](_0x2e5069),_0x5a1a56=0x0;for(;_0x225da4;)_0x225da4['updateHeight'](),_0x5a1a56+=this['_spaceBetweenItems']+_0x225da4['height'],_0x225da4=this['_getItemBefore'](_0x225da4);return _0x5a1a56;}}function getOverlap(_0x185e33,_0x2384ff){return Math['max'](_0x185e33-_0x2384ff,0x0);}function isElement(_0x4c7fe7){return null!==_0x4c7fe7&&'object'==typeof _0x4c7fe7&&0x1===_0x4c7fe7['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(_0x43c8c6){super(_0x43c8c6),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new Collection(),this['_refreshPositioningDebounced']=debounce$1(()=>{_0x43c8c6['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x3367a8=this['context']['plugins']['get'](AnnotationsUIs),_0x512509=this['context']['plugins']['get'](Sidebar);_0x3367a8['register']('wideSidebar',this),_0x512509['container']&&_0x3367a8['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x1d88fc){if(_0x1d88fc===this['activeAnnotation'])return;const _0x28955=this['context']['plugins']['get'](Sidebar);_0x28955['_activeAnnotation']=_0x1d88fc;const _0x45badc=this['activeAnnotation'];_0x28955['refresh']({'blurredAnnotation':_0x45badc,'activatedAnnotation':_0x1d88fc}),this['activeAnnotation']=_0x1d88fc;}['attach'](_0xce8360){this['annotations']=_0xce8360;const _0x3a5e1e=this['context']['plugins']['get'](Sidebar);if(_0x3a5e1e['_annotations']=_0xce8360,this['isAttached'])throw new CKEditorError('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3a5e1e,'set:container',()=>{this['detach'](),this['listenTo'](_0x3a5e1e,'change:container',_0x471afd=>{_0x471afd['off'](),this['attach'](_0xce8360);});}),_0x3a5e1e['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0xf15c23=_0x4c4bf0=>{_0x4c4bf0['updateTargetRect'](),_0x3a5e1e['addAnnotation'](_0x4c4bf0);};for(const _0x2e28e8 of _0xce8360)_0xf15c23(_0x2e28e8);this['listenTo'](_0xce8360,'add',(_0xdb1276,_0x3b7c9c)=>{_0xf15c23(_0x3b7c9c);}),this['listenTo'](_0xce8360,'remove',(_0x272b04,_0x49d9e5,_0x2d6d71)=>{_0x3a5e1e['rearrange']({'removedAnnotation':_0x49d9e5,'previousAnnotation':_0xce8360['get'](_0x2d6d71-0x1),'nextAnnotation':_0xce8360['get'](_0x2d6d71+0x1)}),_0x49d9e5===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0xce8360,'focus',(_0xd8d557,_0x5e94f5)=>{this['setActiveAnnotation'](_0x5e94f5);}),this['listenTo'](_0xce8360,'blur',()=>{this['setActiveAnnotation'](null);});const _0x594e76=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x49cb46 of _0x594e76)this['_integrateWithEditorAnnotations'](_0x49cb46);this['listenTo'](_0x594e76,'add',(_0x3af769,_0xf16475)=>{this['listenTo'](_0xf16475,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xf16475);});}),this['listenTo'](_0x594e76,'remove',(_0x1ae432,_0xc9507a)=>{_0xc9507a['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xc9507a['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 _0x25a309=this['context']['plugins']['get'](Sidebar);_0x25a309['_detachFromContainer'](this['annotations']),this['stopListening'](_0x25a309),this['stopListening'](this['annotations']),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0x3087e5 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3087e5);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x55e5c8){if(!_0x55e5c8['plugins']['has']('EditorAnnotations'))return;const _0x1ee2de=_0x55e5c8['plugins']['get']('EditorAnnotations'),_0xa4dd5a=()=>{const _0x45b15f=_0x1ee2de['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x45b15f[0x0]||null);};this['listenTo'](_0x1ee2de,'refresh',_0xa4dd5a),this['listenTo'](_0x1ee2de,'blur',(_0x23415a,{isAnnotationTracked:_0x568bba})=>{this['activeAnnotation']&&_0x568bba(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1ee2de,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x1b2a43=>{_0x1ee2de['hasDomSelection']()&&(_0xa4dd5a(),_0x1b2a43['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1ee2de);}['_destroyEditorAnnotationsIntegration'](_0x437b2d){this['stopListening'](_0x437b2d),this['_editorAnnotations']['remove'](_0x437b2d);}}class AnnotationCounterButtonView extends ButtonView{['counterView'];constructor(_0x647c60){super(_0x647c60);const _0x5482de=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1364a0,_0x38cdd6)=>_0x1364a0?'...':_0x38cdd6['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',_0x5482de['to']('annotationType',_0x1e2950=>'ck-annotation-counter__badge--'+_0x1e2950),_0x5482de['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x5482de['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(_0x422cdb){super(_0x422cdb),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'](_0x215454){this['annotations']=_0x215454;const _0x15e020=this['context']['plugins']['get'](Sidebar),_0x501cf4=this['balloonPanelView'];if(_0x15e020['_annotations']=_0x215454,this['isAttached'])throw new CKEditorError('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x15e020,'set:container',()=>{this['detach'](),this['listenTo'](_0x15e020,'change:container',_0xae83de=>{_0xae83de['off'](),this['attach'](_0x215454);});}),_0x15e020['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x34dddf=_0x22a0ba=>{const _0x23f86c=new AnnotationCounterButtonView(this['context']['locale']);_0x15e020['addAnnotation'](_0x22a0ba,_0x23f86c),this['_annotationToNarrowView']['set'](_0x22a0ba,_0x23f86c),_0x23f86c['bind']('isDirty','annotationType','number')['to'](_0x22a0ba['view'],'isDirty','type','length'),_0x23f86c['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x501cf4['content']['first']!==_0x22a0ba['view']?(this['_showBalloon'](_0x22a0ba),_0x22a0ba['view']['element']['focus'](),this['setActiveAnnotation'](_0x22a0ba)):this['setActiveAnnotation'](null);});};for(const _0x4b166d of _0x215454)_0x34dddf(_0x4b166d);this['listenTo'](_0x215454,'add',(_0x278320,_0x3c6d63)=>{_0x34dddf(_0x3c6d63);}),this['listenTo'](_0x215454,'remove',(_0x2e6d4b,_0x51d9af,_0x1bcaf5)=>{this['_annotationToNarrowView']['get'](_0x51d9af)['destroy'](),this['_annotationToNarrowView']['delete'](_0x51d9af),_0x15e020['rearrange']({'removedAnnotation':_0x51d9af,'previousAnnotation':_0x215454['get'](_0x1bcaf5-0x1),'nextAnnotation':_0x215454['get'](_0x1bcaf5+0x1)}),_0x51d9af===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x215454,'focus',(_0x13c8e8,_0xbc9fbd)=>{this['setActiveAnnotation'](_0xbc9fbd);}),this['listenTo'](_0x215454,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x4b4756,_0xab1be8)=>{_0xab1be8['keyCode']===keyCodes['esc']&&_0x501cf4['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x501cf4['content']['first']),this['_hideBalloon'](),_0xab1be8['stopPropagation'](),_0xab1be8['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x48a986,_0xc95c65)=>{const _0x406304=_0xc95c65['target'];_0x501cf4['isVisible']&&_0x501cf4['element']['contains'](_0x406304)||_0x15e020['view']['element']['contains'](_0x406304)||_0x48a986['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x46a3ec=>_0x46a3ec['contains'](_0x406304))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x5b4063=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x5149bc of _0x5b4063)this['_integrateWithEditorAnnotations'](_0x5149bc);this['listenTo'](_0x5b4063,'add',(_0x2e7b43,_0x9c21f7)=>{this['listenTo'](_0x9c21f7,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x9c21f7);});}),this['listenTo'](_0x5b4063,'remove',(_0x91730f,_0x450415)=>{_0x450415['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x450415['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x10bacf){if(_0x10bacf===this['activeAnnotation'])return;const _0x9c1b99=this['context']['plugins']['get'](Sidebar);if(_0x9c1b99['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x10bacf,'disableAnimationOnActivatedAnnotation':!0x0}),_0x10bacf)_0x9c1b99['getSidebarItemView'](_0x10bacf)?this['_showBalloon'](_0x10bacf):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x10bacf;}['detach'](){if(!this['isAttached'])throw new CKEditorError('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x6edefe=this['context']['plugins']['get'](Sidebar);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5714ea=>_0x5714ea['destroy']()),this['_annotationToNarrowView']['clear'](),_0x6edefe['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0x4c9623 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4c9623);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'](_0x2ae555){if(!_0x2ae555['plugins']['has']('EditorAnnotations'))return;const _0x2bc602=_0x2ae555['plugins']['get']('EditorAnnotations'),_0x5a9311=this['context']['plugins']['get'](Sidebar),_0x35254c=this['annotations'],_0x3fe0dd=this['balloonPanelView'],_0x486d6b=()=>{const _0x17f2b6=_0x2bc602['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x17f2b6),this['setActiveAnnotation'](_0x17f2b6[0x0]||null);};this['listenTo'](_0x2bc602,'refresh',_0x486d6b),this['listenTo'](_0x2bc602,'blur',(_0x3b6467,{isAnnotationTracked:_0x56a1da})=>{this['activeAnnotation']&&_0x56a1da(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x2bc602,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x35254c,'blur',_0x1e339e=>{_0x2bc602['hasDomSelection']()&&_0x1e339e['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x3d863b,_0x375e5e)=>{const _0x308741=_0x375e5e['target'];_0x3fe0dd['isVisible']&&_0x3fe0dd['element']['contains'](_0x308741)||_0x5a9311['view']['element']['contains'](_0x308741)||this['activeAnnotation']&&_0x2bc602['hasDomSelection']()&&(_0x486d6b(),_0x3d863b['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2bc602);}['_destroyEditorAnnotationsIntegration'](_0xecd358){_0xecd358&&(this['stopListening'](_0xecd358),this['_editorAnnotations']['remove'](_0xecd358));}['_setSelectedAnnotations'](_0x533547){for(const _0x73123a of this['_selectedAnnotations'])_0x533547['includes'](_0x73123a)||this['_manuallyClosedAnnotationViews']['delete'](_0x73123a['view']);this['_selectedAnnotations']=_0x533547;}['_refreshPositioning'](){const _0x3a6fe5=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x3a6fe5['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x445b25){if(this['_manuallyClosedAnnotationViews']['has'](_0x445b25['view']))return;const _0x28c0a4=this['balloonPanelView']['content']['first'];_0x28c0a4!==_0x445b25['view']?(_0x28c0a4&&this['_detachListeners'](_0x28c0a4),this['_attachListeners'](_0x445b25['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x445b25['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x2a48ea=this['balloonPanelView']['content']['first'],_0x5789e=_0x2a48ea&&this['annotations']['getByView'](_0x2a48ea);if(!_0x5789e||!this['_annotationToNarrowView']['has'](_0x5789e))return;const _0x1fa6c9=this['_annotationToNarrowView']['get'](_0x5789e)['element'],_0xd4f932=getBalloonPositions();this['balloonPanelView']['pin']({'target':_0x1fa6c9,'positions':_0xd4f932});}['_hideBalloon'](){const _0x53b79d=this['balloonPanelView'],_0x5eb56c=_0x53b79d['content']['first'];_0x5eb56c&&(this['_detachListeners'](_0x5eb56c),_0x53b79d['unpin'](),_0x53b79d['content']['clear']());}['_attachListeners'](_0x3a5c2d){this['listenTo'](_0x3a5c2d,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x3a5c2d,'Esc',(_0x1a55b2,_0x11a4a5)=>{this['_manuallyClosedAnnotationViews']['add'](_0x3a5c2d),this['_hideBalloon'](),_0x11a4a5();});}['_detachListeners'](_0x3bd9fc){this['stopListening'](_0x3bd9fc);}}function getBalloonPositions(){const _0x3d6946=BalloonPanelView['defaultPositions'];return[_0x3d6946['southArrowNorthEast'],_0x3d6946['northArrowSouthEast'],_0x3d6946['southArrowNorth'],_0x3d6946['northArrowSouth'],_0x3d6946['southArrowNorthWest'],_0x3d6946['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(_0x36beb6){super(_0x36beb6),_0x36beb6['editing']['view']['addObserver'](MouseObserver),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x36beb6['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 _0x2d12f0=this['editor']['plugins']['get'](AnnotationsUIs);_0x2d12f0['context']===this['editor']&&(_0x2d12f0['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x350959,_0x235ecf)=>{const _0x29f4c2=this['_balloon'];if(this['isAttached']&&_0x29f4c2['visibleView']){const _0x3eb689=this['annotations']['getByView'](_0x29f4c2['visibleView']);_0x3eb689&&this['_closeAnnotation'](_0x3eb689),_0x235ecf();}}));}['afterInit'](){const _0xa1046e=this['editor']['plugins']['get'](AnnotationsUIs);_0xa1046e['context']===this['editor']&&(_0xa1046e['hasActive']()||_0xa1046e['switchTo']('inline'));}['setActiveAnnotation'](_0x22aac9){_0x22aac9!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x22aac9&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x22aac9)&&this['_addAnnotationToBalloon'](_0x22aac9,!0x0),_0x22aac9['isActive']=!0x0),_0x22aac9||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x22aac9);}['attach'](_0x3b6dd4){this['annotations']=_0x3b6dd4;const _0x5eb55b=this['editor']['plugins']['get'](AnnotationsUIs),_0x21aa08=this['_balloon'];if(this['isAttached'])throw new CKEditorError('inlineannotations-attach-already-attached',this);if(_0x5eb55b['context']!==this['editor'])throw new CKEditorError('inlineannotations-not-allowed-with-context',this);const _0x2f68b0=this['editor']['plugins']['get'](EditorAnnotations);this['listenTo'](_0x2f68b0,'refresh',()=>{const _0x5a2300=_0x2f68b0['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});!this['_forceRefresh']&&arraysEqual(_0x5a2300,this['_selectedAnnotations'])||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x5a2300),this['setActiveAnnotation'](_0x5a2300[0x0]||null));}),this['listenTo'](_0x2f68b0,'blur',(_0x41ba1a,{isAnnotationTracked:_0x51d6e3})=>{this['activeAnnotation']&&_0x51d6e3(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x2f68b0,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1f9f5d,_0x3a5132,_0x72da37)=>{_0x72da37||this['setActiveAnnotation'](null);}),this['listenTo'](_0x3b6dd4,'remove',(_0xb128b5,_0x8bc3d8)=>{this['_removeAnnotationFromBalloon'](_0x8bc3d8),_0x8bc3d8===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x21aa08,'change:visibleView',(_0x25ddc4,_0x25dc74,_0x1807bf,_0x5b7831)=>{_0x5b7831&&this['stopListening'](_0x5b7831);const _0x2f27d2=_0x3b6dd4['getByView'](_0x1807bf);_0x1807bf&&_0x2f27d2&&(this['listenTo'](_0x1807bf,'change:height',()=>{_0x21aa08['updatePosition']();}),this['listenTo'](_0x1807bf,'Esc',()=>{this['_closeAnnotation'](_0x2f27d2),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x2f27d2&&this['setActiveAnnotation'](_0x2f27d2));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x21aa08['visibleView']&&(_0x3b6dd4['getByView'](_0x21aa08['visibleView'])&&_0x21aa08['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 _0x4faa17 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4faa17);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x4969d6){for(const _0x387d66 of this['_selectedAnnotations'])_0x4969d6['includes'](_0x387d66)||this['_manuallyClosed']['delete'](_0x387d66);for(const _0x249933 of this['annotations'])_0x4969d6['includes'](_0x249933)||this['_removeAnnotationFromBalloon'](_0x249933);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x199938 of _0x4969d6)this['_addAnnotationToBalloon'](_0x199938);}this['_selectedAnnotations']=_0x4969d6;}['_addAnnotationToBalloon'](_0x3802dd,_0x2790df=!0x1){this['_manuallyClosed']['has'](_0x3802dd)||(this['_addedAnnotations']['has'](_0x3802dd)||this['_balloon']['hasView'](_0x3802dd['view'])||(this['_addedAnnotations']['add'](_0x3802dd),this['_balloon']['add']({'stackId':_0x3802dd['view']['id'],'view':_0x3802dd['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3802dd)}})),_0x2790df&&this['_balloon']['showStack'](_0x3802dd['view']['id']));}['_getBalloonTargetForAnnotation'](_0x317fa3){const _0x3bbfa4=_0x317fa3['target'],_0x2e93e6=this['editor']['editing']['view'],_0x2cb566=_0x2e93e6['document']['selection']['getFirstRange'](),_0xa7e433=_0x2e93e6['domConverter']['viewRangeToDom'](_0x2cb566);if(_0xa7e433['collapse'](!0x0),_0x3bbfa4){if(_0x3bbfa4 instanceof Rect)return _0x3bbfa4;let _0x3c1c63=[];for(const _0x1afe0a of _0x3bbfa4)_0x3c1c63['push'](...cloneRects(_0x1afe0a['getClientRects']()));_0x3c1c63=joinClientRects(_0x3c1c63);const _0x145e68=_0xa7e433['getBoundingClientRect']();return _0x3c1c63['find'](_0x2108b3=>_0x2108b3['top']<=_0x145e68['top']&&_0x2108b3['bottom']>=_0x145e68['bottom']&&_0x2108b3['left']<=_0x145e68['left']&&_0x2108b3['right']>=_0x145e68['right'])||_0x3c1c63[0x0];}return _0x317fa3['targetRect']||_0xa7e433;}['_removeAnnotationFromBalloon'](_0x576c5b){this['_addedAnnotations']['has'](_0x576c5b)&&this['_balloon']['hasView'](_0x576c5b['view'])&&(this['_addedAnnotations']['delete'](_0x576c5b),this['_balloon']['remove'](_0x576c5b['view']));}['_closeAnnotation'](_0x2559a3){this['_manuallyClosed']['add'](_0x2559a3),this['_removeAnnotationFromBalloon'](_0x2559a3);}}function arraysEqual(_0xd63297,_0x1735d1){return _0xd63297['length']===_0x1735d1['length']&&_0xd63297['every'](_0x586a73=>_0x1735d1['includes'](_0x586a73));}function cloneRects(_0x74b335){return Array['from'](_0x74b335)['map'](DOMRect['fromRect']);}function joinClientRects(_0x4b006d){const _0x55cc4a=[];let _0x4db1f2=_0x4b006d[0x0];for(let _0x3f592b=0x1;_0x3f592b<_0x4b006d['length'];_0x3f592b++)canJoinRects(_0x4db1f2,_0x4b006d[_0x3f592b])?_0x4db1f2['width']+=_0x4b006d[_0x3f592b]['width']:(_0x55cc4a['push'](_0x4db1f2),_0x4db1f2=_0x4b006d[_0x3f592b]);return _0x55cc4a['push'](_0x4db1f2),_0x55cc4a;}function canJoinRects(_0x418333,_0x154cf4){return _0x418333['top']===_0x154cf4['top']&&_0x418333['bottom']===_0x154cf4['bottom']&&_0x418333['right']===_0x154cf4['left'];}class CommentsArchiveView extends View{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x354907,_0x5d7e3f){super(_0x354907),this['set']('isEmpty',!_0x5d7e3f['length']),this['focusTracker']=new FocusTracker(),this['_annotationViews']=_0x5d7e3f,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new FocusCycler({'focusables':_0x5d7e3f,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5d7e3f,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5d7e3f,'remove',(_0x1f7dd9,_0x36d771)=>{_0x36d771['isActive']&&this['focus'](),_0x5d7e3f['length']||(this['isEmpty']=!0x0);});const _0x29ea8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':getTranslation$f(_0x354907,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5d7e3f},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x29ea8['if']('isEmpty','ck-hidden',_0x4dbdda=>!_0x4dbdda)]},'children':[{'text':getTranslation$f(_0x354907,'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 _0x2561be of this['_annotationViews'])this['focusTracker']['add'](_0x2561be['element']);this['_annotationViews']['on']('change',(_0x311fbb,{added:_0x1ebfaa,removed:_0xe79a8e})=>{for(const _0x5486fe of _0x1ebfaa)this['focusTracker']['add'](_0x5486fe['element']);for(const _0xe70318 of _0xe79a8e)this['focusTracker']['remove'](_0xe70318['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(_0x554704){super(_0x554704),this['archivedThreads']=new Collection();}['init'](){const _0x30a4be=this['context'],_0x5d6e6e=_0x30a4be['plugins']['get'](CommentsRepository),_0x572445=_0x30a4be['plugins']['get'](Annotations);this['listenTo'](_0x5d6e6e,'addCommentThread',(_0x5b616d,{threadId:_0x456970})=>{const _0x455765=_0x5d6e6e['getCommentThread'](_0x456970);_0x455765['archivedAt']&&this['archivedThreads']['add'](_0x455765,this['_calculatePosition'](_0x455765['archivedAt'])),this['listenTo'](_0x455765,'change:archivedAt',(_0x1ce71b,_0x467136,_0x3fed66)=>{_0x3fed66?this['archivedThreads']['has'](_0x455765)||this['archivedThreads']['add'](_0x455765,this['_calculatePosition'](_0x455765['archivedAt'])):this['archivedThreads']['has'](_0x455765)&&this['archivedThreads']['remove'](_0x455765);});}),this['listenTo'](_0x5d6e6e,'removeCommentThread',(_0x3f6e13,{threadId:_0x455389})=>{const _0x54cc1b=_0x5d6e6e['getCommentThread'](_0x455389);this['stopListening'](_0x54cc1b),this['archivedThreads']['has'](_0x54cc1b)&&this['archivedThreads']['remove'](_0x54cc1b);},{'priority':'highest'}),this['listenTo'](_0x572445['collection'],'focus',(_0x373c5b,_0x310084)=>{_0x310084['isVisible']||(_0x310084['isActive']=!0x0,_0x572445['activate'](_0x310084));});}['_calculatePosition'](_0x48a6d9){const _0x2ed256=[...this['archivedThreads']]['findIndex'](_0x1dcad5=>_0x1dcad5['archivedAt']<_0x48a6d9);return _0x2ed256>-0x1?_0x2ed256: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(_0x654d14){super(_0x654d14),this['annotationViews']=new ViewCollection(),this['_pendingThreads']=[];}['init'](){const _0x1a58f7=this['editor'],_0x211918=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1a58f7['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](ButtonView,!0x0)),_0x1a58f7['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0xe62642=this['_createCommentsArchiveButton'](MenuBarMenuListItemButtonView);return _0xe62642['set']({'role':'menuitemcheckbox'}),_0xe62642;});const _0x6ac974=_0x1a58f7['plugins']['get'](CommentsArchive),_0x13c531=_0x1a58f7['plugins']['get']('Annotations'),_0x1f8c37=_0x1a58f7['plugins']['get']('CommentsRepository');_0x6ac974['archivedThreads']['forEach'](_0x106df1=>{this['_handleNewThread'](_0x106df1);}),this['listenTo'](_0x6ac974['archivedThreads'],'add',(_0x30d9e6,_0x31865a)=>{this['_handleNewThread'](_0x31865a);}),this['listenTo'](_0x13c531['collection'],'add',(_0x41fbf6,_0x4abe10)=>{const _0x478f34=this['_pendingThreads']['find'](_0x44ee0f=>{const _0x539f03=_0x1f8c37['_threadToController']['get'](_0x44ee0f);return _0x539f03&&_0x4abe10['innerView']===_0x539f03['view'];});if(_0x478f34){const _0x4f57ac=this['_calculatePosition'](_0x478f34['archivedAt']);this['_addAnnotationToArchive'](_0x4abe10,_0x4f57ac),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x478f34),0x1);}}),this['listenTo'](_0x6ac974['archivedThreads'],'remove',(_0x2001dc,_0x59dde0)=>{const _0x125c0d=_0x1a58f7['config']['get']('collaboration.channelId');if(!_0x125c0d||_0x59dde0['channelId']===_0x125c0d){if(this['_pendingThreads']['includes'](_0x59dde0))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x59dde0),0x1);else{const _0xb503f5=_0x1f8c37['_threadToController']['get'](_0x59dde0),_0x25275e=_0x13c531['getByInnerView'](_0xb503f5['view']);this['annotationViews']['remove'](_0x25275e['view']),this['stopListening'](_0x25275e),this['stopListening'](_0x25275e['focusableElements']);}}}),this['listenTo'](_0x13c531['collection'],'add',(_0x3b6116,_0x526e39)=>{this['listenTo'](_0x526e39,'escape',_0x211918);}),this['listenTo'](_0x13c531['collection'],'remove',(_0x244a90,_0x2f1918)=>{this['stopListening'](_0x2f1918,'escape',_0x211918);});}['_addAnnotationToArchive'](_0x42ecc8,_0x107fc8){this['listenTo'](_0x42ecc8,'set:isVisible',_0x23f959=>{_0x23f959['return']=!0x1,_0x23f959['stop']();}),this['annotationViews']['add'](_0x42ecc8['view'],_0x107fc8);}['_handleNewThread'](_0x3f72bf){const _0x4867d8=this['editor']['plugins']['get']('CommentsRepository'),_0x2ad3b2=this['editor']['plugins']['get']('Annotations'),_0x2301ba=this['editor']['config']['get']('collaboration.channelId');if(!_0x2301ba||_0x3f72bf['channelId']===_0x2301ba){const _0x2c3d5e=_0x4867d8['_threadToController']['get'](_0x3f72bf);if(!_0x2c3d5e)return void this['_pendingThreads']['push'](_0x3f72bf);const _0x46b2c0=this['_calculatePosition'](_0x3f72bf['archivedAt']),_0x28d42b=_0x2ad3b2['getByInnerView'](_0x2c3d5e['view']);_0x28d42b['isVisible']&&_0x2ad3b2['_visibleAnnotations']['remove'](_0x28d42b),this['_addAnnotationToArchive'](_0x28d42b,_0x46b2c0);}}['_calculatePosition'](_0x1f4e89){const _0x34716a=this['editor']['config']['get']('collaboration.channelId'),_0x598747=[...this['editor']['plugins']['get'](CommentsArchive)['archivedThreads']]['filter'](_0x3e3ae7=>_0x3e3ae7['channelId']===_0x34716a)['findIndex'](_0x26d580=>_0x26d580['archivedAt']<_0x1f4e89);return _0x598747<0x0||_0x598747>this['annotationViews']['length']?this['annotationViews']['length']:_0x598747-0x1;}['_toggleDialog'](){const _0xeece0d=this['editor'],_0x33bccc=_0xeece0d['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new CommentsArchiveView(_0xeece0d['locale'],this['annotationViews'])),'commentsArchive'===_0x33bccc['id']?_0x33bccc['hide']():_0x33bccc['show']({'id':'commentsArchive','title':getTranslation$f(_0xeece0d['locale'],'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':DialogViewPosition['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x5c885e,_0x1ef9a0=!0x1){const _0x25651e=this['editor']['locale'],_0x459046=this['editor']['plugins']['get']('Dialog'),_0x2c4bb6=new _0x5c885e(_0x25651e);return _0x2c4bb6['bind']('isEnabled')['to'](this,'isEnabled'),_0x2c4bb6['bind']('isOn')['to'](_0x459046,'id',_0x231205=>'commentsArchive'===_0x231205),_0x2c4bb6['set']({'label':getTranslation$f(_0x25651e,'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'isToggleable':!0x0}),_0x1ef9a0&&(_0x2c4bb6['tooltip']=!0x0),this['listenTo'](_0x2c4bb6,'execute',()=>this['_toggleDialog']()),_0x2c4bb6;}['_hideDialogOnAnnotationEscape']=_0x2fb601=>{const _0x36d024=_0x2fb601['source'];if(!this['annotationViews']['has'](_0x36d024['view']))return;const _0x2cfd56=this['editor']['plugins']['get']('Dialog');_0x2cfd56['isOpen']&&'commentsArchive'===_0x2cfd56['id']&&(_0x2cfd56['hide'](),_0x2fb601['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(_0x4a70bf){let _0x4086a6='';for(const _0x1d6a3f of _0x4a70bf['getChildren']())_0x1d6a3f instanceof ModelText&&(_0x4086a6+=_0x1d6a3f['data']);return _0x4086a6;}function getDefaultFeatureHeadingNames(_0x172c31){const _0x36803c=_0x172c31['config']['get']('heading.options');return _0x36803c?_0x36803c['reduce']((_0x41c3d7,_0x39ab36)=>('paragraph'!==_0x39ab36['model']&&_0x41c3d7['push'](_0x39ab36['model']),_0x41c3d7),[]):_0x172c31['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 _0x3a7b63=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x9441ff=[];_0x3a7b63['model']['document']['on']('change',debounce$1(()=>{const _0x25394f=_0x9441ff;_0x9441ff=this['_getOutlineDefinitions']();const _0x180b45=_0x3acf5e(_0x25394f,_0x9441ff,(_0x48b316,_0x213272)=>_0x48b316['level']===_0x213272['level']&&_0x48b316['text']===_0x213272['text']&&_0x48b316['modelElement']===_0x213272['modelElement']),_0x315a9b=diffToChanges(_0x180b45,_0x9441ff),_0x566224=this['_getActiveHeading'](),_0xe01c21=_0x9441ff['findIndex'](_0x5e1187=>_0x5e1187['modelElement']===_0x566224);_0x315a9b['length']&&this['fire']('change',{'outlineDefinitions':_0x9441ff,'activeItemIndex':_0xe01c21,'outlineChanges':_0x315a9b}),this['fire']('activeItemIndex',{'index':_0xe01c21});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x8d0620=this['editor'],_0x451c2b=[],_0x173669=this['_headingNames'];for(const _0x3377b9 of _0x8d0620['model']['document']['getRootNames']())_0x2645e7(_0x8d0620['model']['document']['getRoot'](_0x3377b9));function _0x2645e7(_0x1b1cd7){for(const _0x29d67e of _0x1b1cd7['getChildren']())_0x29d67e['is']('element')&&(_0x173669['includes'](_0x29d67e['name'])&&_0x451c2b['push']({'level':_0x173669['indexOf'](_0x29d67e['name'])+0x1,'text':getElementText(_0x29d67e),'modelElement':_0x29d67e}),_0x2645e7(_0x29d67e));}return _0x451c2b;}['_getActiveHeading'](){const _0x5c273=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x2cc8a0=new ModelTreeWalker({'direction':'backward','startPosition':_0x5c273});for(const _0x165dc6 of _0x2cc8a0)if(_0x165dc6['item']['is']('element')&&this['_headingNames']['includes'](_0x165dc6['item']['name']))return _0x165dc6['item'];}['_getHeadingNames'](){const _0x46232e=this['editor']['config']['get']('documentOutline.headings');return _0x46232e||getDefaultFeatureHeadingNames(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x1094ad=this['editor'],_0x327c7b=['h1','h2','h3','h4','h5','h6'],_0x216ca7=[];for(const _0x302224 of _0x327c7b){const _0x1bf387=_0x1094ad['editing']['view']['domConverter']['domToView'](document['createElement'](_0x302224)),_0x31eb6b=_0x1094ad['data']['toModel'](_0x1bf387)['getChild'](0x0);_0x31eb6b?.['is']('element')&&_0x216ca7['push'](_0x31eb6b['name']);}this['_headingNames']=_0x216ca7;}}function getTranslation$e(_0x936edb,_0x1808d6){const t=_0x936edb['t'];switch(_0x1808d6){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 _0x1808d6;}}class DocumentOutlineItemView extends View{constructor(_0x4f9eb5,_0x13a79d=!0x1){super(_0x4f9eb5);const _0x118d0f=this['bindTemplate'],_0x53bfaa=_0x13a79d?'['+getTranslation$e(_0x4f9eb5,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0xe4b8=>!_0xe4b8),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x118d0f['to']('level',_0x2cb351=>'ck-document-outline__item_level-'+_0x2cb351),_0x118d0f['if']('isActive','ck-document-outline__item_active'),_0x118d0f['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x118d0f['to']('text')},'children':[{'text':_0x118d0f['to']('text',_0x3d3674=>_0x3d3674||_0x53bfaa)}],'on':{'click':_0x118d0f['to']('click')}});}}class DocumentOutlineView extends View{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x1d2215,_0x56567e=!0x1,_0x5f2640){super(_0x1d2215),this['showEmptyHeadingText']=_0x56567e,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x5f2640,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x836b1e,_0x2c982e,_0x2658e1,_0x472903)=>{this['_setActiveItem'](_0x472903,_0x2658e1);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x1d2215['contentLanguageDirection'],'data-document-outline-empty-placeholder':getTranslation$e(_0x1d2215,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x3075cb){_0x3075cb['forEach'](_0x3ba5e5=>{'insert'==_0x3ba5e5['type']?this['_insertItem'](_0x3ba5e5['index'],..._0x3ba5e5['values']):'delete'==_0x3ba5e5['type']&&this['_deleteItem'](_0x3ba5e5['index'],_0x3ba5e5['howMany']);});}['_setActiveItem'](_0x35421c,_0x1d92c3){if(-0x1!==_0x35421c){const _0x28ba4b=this['items']['get'](_0x35421c);_0x28ba4b&&(_0x28ba4b['isActive']=!0x1);}-0x1!==_0x1d92c3&&(this['items']['get'](_0x1d92c3)['isActive']=!0x0,this['_scrollToItem'](_0x1d92c3));}['_insertItem'](_0xcf0b1c,..._0x198a40){const _0x5a2bc1=_0x198a40['map']((_0x1c546c,_0x1268f0)=>{const _0x4e769c=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x4e769c['text']=_0x1c546c['text'],_0x4e769c['level']=_0x1c546c['level'],_0xcf0b1c+_0x1268f0===this['activeItemIndex']&&(_0x4e769c['isActive']=!0x0),_0x4e769c;});this['items']['addMany'](_0x5a2bc1,_0xcf0b1c);}['_deleteItem'](_0x4a6b28,_0x59ec6b){do{this['items']['remove'](_0x4a6b28);}while(--_0x59ec6b);}['_handleItemClick'](_0x554552){const _0x38eb34=this['items']['getIndex'](_0x554552['source']);this['fire']('itemSelected',_0x38eb34);}['_scrollToItem'](_0x530e91){scrollAncestorsToShowTarget(this['items']['get'](_0x530e91)['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(_0x1a2ad0){super(_0x1a2ad0),this['view']=new DocumentOutlineView(_0x1a2ad0['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 _0x17fd38=this['editor'],_0x1996c7=_0x17fd38['plugins']['get']('DocumentOutlineUtils');let _0x5ea388=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x17fd38['config']['get']('documentOutline.container'))throw new CKEditorError('document-outline-container-not-provided',{'editor':_0x17fd38});_0x17fd38['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x1996c7['on']('change',this['_handleOutlineChange']['bind'](this)),_0x1996c7['on']('activeItemIndex',(_0x1f7ddb,{index:_0x233c52})=>this['_setActiveViewItem'](_0x233c52)),this['view']['on']('itemSelected',(_0x44681f,_0x5d8ebd)=>{_0x5ea388=!0x0,this['_handleItemSelected'](_0x5d8ebd);}),this['view']['listenTo'](_0x42cc73['document'],'scroll',()=>{_0x5ea388?_0x5ea388=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x42cc73['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){checkLicense$g(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x40ef66,{outlineDefinitions:_0x31b47e,outlineChanges:_0x287d4d}){this['_currentOutlineDefinitions']=_0x31b47e,this['view']['sync'](_0x287d4d);}['_setActiveViewItem'](_0x580988){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x580988]&&(this['view']['activeItemIndex']=_0x580988);}['_handleItemSelected'](_0x326618){const _0x36d1b0=this['_currentOutlineDefinitions'][_0x326618]['modelElement'];this['editor']['model']['change'](_0x348bdc=>{_0x348bdc['setSelection'](_0x36d1b0,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x326618);}['_updateActiveDefinitionOnViewportChange'](){const _0x2ecce9=this['editor'];let _0xeadc76;for(const _0x2a3e1f of _0x2ecce9['model']['document']['getRootNames']()){const _0xc787e9=_0x2ecce9['editing']['view']['getDomRoot'](_0x2a3e1f),_0x3d2634=_0xc787e9&&new Rect(_0xc787e9)['getVisible']();if(_0x3d2634){const _0x215818=new Rect(_0x42cc73['window'])['getIntersection'](_0x3d2634);_0x215818&&(_0xeadc76=_0x215818['top']+0.25*_0x215818['height']);}}if(void 0x0===_0xeadc76)return;const _0x4f1f55=binaryActiveDefinitionSearch(_0x2ecce9['editing'],this['_currentOutlineDefinitions'],_0xeadc76);_0x4f1f55?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x4f1f55)):this['_setActiveViewItem'](-0x1);}}function binaryActiveDefinitionSearch(_0x203da0,_0x3197dc,_0x4b10c5,_0x584338=0x0,_0x4262c7=_0x3197dc['length']-0x1){const _0x2c76ca=Math['floor'](_0x584338+(_0x4262c7-_0x584338)/0x2);if(_0x4262c7>=_0x584338){const _0x26843f=_0x3197dc[_0x2c76ca],_0x3b7e90=_0x203da0['mapper']['toViewElement'](_0x26843f['modelElement']);if(!_0x3b7e90)return null;const _0x3fcaad=_0x203da0['view']['domConverter']['mapViewToDom'](_0x3b7e90);return new Rect(_0x3fcaad)['bottom']>_0x4b10c5?binaryActiveDefinitionSearch(_0x203da0,_0x3197dc,_0x4b10c5,_0x584338,_0x2c76ca-0x1):binaryActiveDefinitionSearch(_0x203da0,_0x3197dc,_0x4b10c5,_0x2c76ca+0x1,_0x4262c7);}return _0x2c76ca<0x0?null:_0x3197dc[_0x2c76ca];}async function checkLicense$g(_0x3e7b4d){const _0x4b01ed=_0xc47808([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]),_0x31519e=window[_0xc47808([0x44,0x61,0x74,0x65])][_0xc47808([0x6e,0x6f,0x77])](),_0x3c73b6=_0x3e7b4d[_0xc47808([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x238ac9=new window[(_0xc47808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c3061=>{_0x3c73b6[_0xc47808([0x6f,0x6e,0x63,0x65])](_0xc47808([0x72,0x65,0x61,0x64,0x79]),_0x4c3061);}),_0x3f6233={[_0xc47808([0x6b,0x74,0x79])]:_0xc47808([0x45,0x43]),[_0xc47808([0x75,0x73,0x65])]:_0xc47808([0x73,0x69,0x67]),[_0xc47808([0x63,0x72,0x76])]:_0xc47808([0x50,0x2d,0x32,0x35,0x36]),[_0xc47808([0x78])]:_0xc47808([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]),[_0xc47808([0x79])]:_0xc47808([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]),[_0xc47808([0x61,0x6c,0x67])]:_0xc47808([0x45,0x53,0x32,0x35,0x36])},_0x469bd0=_0x3c73b6[_0xc47808([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc47808([0x67,0x65,0x74])](_0xc47808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x27ac60=await(async function(){let _0x334447,_0x52afb6=null,_0x2b8ce8=null;try{if(_0x469bd0==_0xc47808([0x47,0x50,0x4c]))return _0xc47808([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x334447=(function(){const _0x4f60e0=_0x469bd0[_0xc47808([0x73,0x70,0x6c,0x69,0x74])](_0xc47808([0x2e]));if(0x3!=_0x4f60e0[_0xc47808([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x50a418=_0x4f60e0[0x1];return _0x5b31a0(_0x50a418);function _0x5b31a0(_0xa07597){const _0x3a3c4c=_0x2496c5(_0xa07597);return _0x3a3c4c&&_0x508792()?_0x3a3c4c:null;function _0x508792(){const _0x2b46b3=_0x3a3c4c[_0xc47808([0x6a,0x74,0x69])],_0x537129=window[_0xc47808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b46b3[_0xc47808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b46b3[_0xc47808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x584b16={..._0x3a3c4c,[_0xc47808([0x6a,0x74,0x69])]:_0x2b46b3[_0xc47808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b46b3[_0xc47808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x584b16[_0xc47808([0x76,0x63])],_0x473a0c(_0x584b16)==_0x537129;}}}()),!_0x334447)return _0xc47808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x334447[_0xc47808([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b8ce8=function(_0x293e95,_0x581812){return new window[(_0xc47808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x146d14=>{if(_0x447634())return _0x146d14(_0xc47808([0x56,0x61,0x6c,0x69,0x64]));_0x536efa(),_0x3c73b6[_0xc47808([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc47808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a16c5=!0x1;const _0xea6d36=uid();function _0x4d6e25(_0x41c6e0){return!!_0x41c6e0&&(typeof _0x41c6e0===_0xc47808([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41c6e0===_0xc47808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41c6e0[_0xc47808([0x74,0x68,0x65,0x6e])]===_0xc47808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41c6e0[_0xc47808([0x63,0x61,0x74,0x63,0x68])]===_0xc47808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x179a76(_0x47586d){_0x42cf45(_0x47586d)[_0xc47808([0x74,0x68,0x65,0x6e])](_0x1f995a=>{if(!_0x1f995a||_0x1f995a[_0xc47808([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc47808([0x6f,0x6b]))return _0xc47808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14bedb(_0x473a0c(_0xea6d36+_0x581812))!=_0x1f995a[_0xc47808([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc47808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc47808([0x56,0x61,0x6c,0x69,0x64]);})[_0xc47808([0x74,0x68,0x65,0x6e])](_0x147f4c=>(_0x1f2242(),_0x147f4c),()=>{const _0x3fe41a=_0x341807();return null==_0x3fe41a?(_0x1f2242(),_0xc47808([0x56,0x61,0x6c,0x69,0x64])):_0xc47808(_0x31519e-_0x3fe41a>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc47808([0x74,0x68,0x65,0x6e])](_0x146d14)[_0xc47808([0x63,0x61,0x74,0x63,0x68])](()=>{_0x146d14(_0xc47808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2cc29d=0x36ee80;function _0x1f2242(){const _0x18ede8=_0xc47808([0x6c,0x6c,0x63,0x74,0x2d])+_0x14bedb(_0x473a0c(_0x293e95)),_0x59d5ce=_0x5afe25(_0x14bedb(window[_0xc47808([0x4d,0x61,0x74,0x68])][_0xc47808([0x63,0x65,0x69,0x6c])](_0x31519e/_0x2cc29d)));window[_0xc47808([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc47808([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18ede8,_0x59d5ce);}function _0x341807(){const _0x17974e=_0xc47808([0x6c,0x6c,0x63,0x74,0x2d])+_0x14bedb(_0x473a0c(_0x293e95)),_0x4ca770=window[_0xc47808([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc47808([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17974e);return _0x4ca770?window[_0xc47808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5afe25(_0x4ca770),0x10)*_0x2cc29d:null;}function _0x42cf45(_0x2d80bc){return new window[(_0xc47808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48623f,_0x31c05d)=>{_0x2d80bc[_0xc47808([0x74,0x68,0x65,0x6e])](_0x48623f,_0x31c05d),window[_0xc47808([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31c05d,0x1d4c0);});}}_0x3c73b6[_0xc47808([0x6f,0x6e])](_0xc47808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x252a4b,_0x501dfe)=>{if(_0x501dfe[0x0]!=_0x293e95)return _0x146d14(_0xc47808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x501dfe[0x1]={..._0x501dfe[0x1],[_0xc47808([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xea6d36};},{[_0xc47808([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc47808([0x68,0x69,0x67,0x68])}),_0x3c73b6[_0xc47808([0x6f,0x6e])](_0xc47808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x415b46=>{_0x4d6e25(_0x415b46[_0xc47808([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a16c5=!0x0,_0x179a76(_0x415b46[_0xc47808([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc47808([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc47808([0x6c,0x6f,0x77])}),_0x238ac9[_0xc47808([0x74,0x68,0x65,0x6e])](()=>{_0x5a16c5||_0x146d14(_0xc47808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x447634(){return _0x3c73b6[_0xc47808([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc47808([0x76,0x69,0x65,0x77])][_0xc47808([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc47808([0x61,0x75,0x74,0x6f]);}function _0x536efa(){_0x3c73b6[_0xc47808([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc47808([0x76,0x69,0x65,0x77])][_0xc47808([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc47808([0x61,0x75,0x74,0x6f]);}}(_0x334447[_0xc47808([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x334447[_0xc47808([0x6a,0x74,0x69])]));const _0x546a5e=await(async function(){let _0x4fd4af=!0x0;try{const _0x5d8987=_0x469bd0[_0xc47808([0x73,0x70,0x6c,0x69,0x74])](_0xc47808([0x2e])),[_0x3c62f8,_0x5cabc4,_0x65390f]=_0x5d8987;return _0x1b297c(_0x3c62f8),await _0x563682(_0x3c62f8,_0x5cabc4,_0x65390f),_0x4fd4af;}catch{return!0x1;}function _0x1b297c(_0x108985){const _0x268637=_0x2496c5(_0x108985);_0x268637&&_0x268637[_0xc47808([0x61,0x6c,0x67])]==_0xc47808([0x45,0x53,0x32,0x35,0x36])||(_0x4fd4af=!0x1);}async function _0x563682(_0x4f3cdf,_0x246e77,_0x50d347){const _0x9a24fd=window[_0xc47808([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc47808([0x66,0x72,0x6f,0x6d])](_0x4bf9c7(_0x50d347),_0x287992=>_0x287992[_0xc47808([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd3a079=new window[(_0xc47808([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc47808([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f3cdf+_0xc47808([0x2e])+_0x246e77),_0x3a4a24=window[_0xc47808([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc47808([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a4a24)return;const _0x6e3b7e=await _0x3a4a24[_0xc47808([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc47808([0x6a,0x77,0x6b]),_0x3f6233,{[_0xc47808([0x6e,0x61,0x6d,0x65])]:_0xc47808([0x45,0x43,0x44,0x53,0x41]),[_0xc47808([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc47808([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc47808([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a4a24[_0xc47808([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc47808([0x6e,0x61,0x6d,0x65])]:_0xc47808([0x45,0x43,0x44,0x53,0x41]),[_0xc47808([0x68,0x61,0x73,0x68])]:{[_0xc47808([0x6e,0x61,0x6d,0x65])]:_0xc47808([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6e3b7e,_0x9a24fd,_0xd3a079)||(_0x4fd4af=!0x1);}}());return _0x546a5e?(function(){const _0x2b7500=_0x334447[_0xc47808([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2b7500)return!0x1;if(_0x2b7500[_0xc47808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc47808([0x2a])))return!0x0;if(_0x2b7500[_0xc47808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc47808([0x44,0x4f])))return!0x0;if(_0x2b7500[_0xc47808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc47808([0x50,0x50])))return!0x0;if(_0x2b7500[_0xc47808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc47808([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0xc47808([0x67,0x6c,0x6f,0x62])]&&window[_0xc47808([0x67,0x6c,0x6f,0x62])][_0xc47808([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x406a39=[_0xc47808([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc47808([0x74,0x72,0x69,0x61,0x6c])][_0xc47808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x334447[_0xc47808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x31519e/0x3e8:0x69b0b080;return _0x334447[_0xc47808([0x65,0x78,0x70])]<_0x406a39;}())?_0xc47808([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x4f8d77=_0x334447[_0xc47808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f8d77||0x0==_0x4f8d77[_0xc47808([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5235da}=new URL(window[_0xc47808([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4f8d77[_0xc47808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5235da))return!0x0;const _0xf518d7=_0x5235da[_0xc47808([0x73,0x70,0x6c,0x69,0x74])](_0xc47808([0x2e]));return _0x4f8d77[_0xc47808([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30548c=>_0x30548c[_0xc47808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc47808([0x2a])))[_0xc47808([0x6d,0x61,0x70])](_0x313e18=>_0x313e18[_0xc47808([0x73,0x70,0x6c,0x69,0x74])](_0xc47808([0x2e])))[_0xc47808([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1011bc=>_0x1011bc[_0xc47808([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf518d7[_0xc47808([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc47808([0x6d,0x61,0x70])](_0x46264a=>Array(_0xf518d7[_0xc47808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x46264a[_0xc47808([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc47808([0x66,0x69,0x6c,0x6c])](_0x46264a[0x0]===_0xc47808([0x2a])?_0xc47808([0x2a]):'')[_0xc47808([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x46264a))[_0xc47808([0x73,0x6f,0x6d,0x65])](_0x5cad39=>_0xf518d7[_0xc47808([0x65,0x76,0x65,0x72,0x79])]((_0x439848,_0x56fcd5)=>_0x5cad39[_0x56fcd5]===_0x439848||_0x5cad39[_0x56fcd5]===_0xc47808([0x2a])));}())?(_0x334447[_0xc47808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc47808([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x52afb6=function(_0x1115bf){const _0x34de6c=new window[(_0xc47808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f9578=>setTimeout(_0x2f9578,0x93ecc)),_0x410f94=_0x238ac9[_0xc47808([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc47808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcd7279=>{let _0x5c45fa=0x0;_0x3c73b6[_0xc47808([0x6d,0x6f,0x64,0x65,0x6c])][_0xc47808([0x6f,0x6e])](_0xc47808([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x305d10,_0x95db6c)=>{_0x95db6c[0x0][_0xc47808([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c45fa++,0x5e8==_0x5c45fa&&(_0xcd7279(),_0x305d10[_0xc47808([0x6f,0x66,0x66])]());});})),_0x27da21=[_0x34de6c,_0x410f94];return window[_0xc47808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc47808([0x72,0x61,0x63,0x65])](_0x27da21)[_0xc47808([0x74,0x68,0x65,0x6e])](()=>_0x1115bf);}(_0xc47808([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x52afb6&&_0x2b8ce8)return new window[(_0xc47808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x341932,_0x345d62)=>{_0x52afb6[_0xc47808([0x74,0x68,0x65,0x6e])](_0x341932,_0x345d62),_0x2b8ce8[_0xc47808([0x74,0x68,0x65,0x6e])](_0x25cd78=>{_0x25cd78!=_0xc47808([0x56,0x61,0x6c,0x69,0x64])&&_0x341932(_0x25cd78);},_0x345d62);});return _0x52afb6||_0x2b8ce8||_0xc47808([0x56,0x61,0x6c,0x69,0x64]);}())):_0xc47808([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc47808([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc47808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xc47808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2496c5(_0x52d725){return _0x52d725[_0xc47808([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc47808([0x65,0x79]))?JSON[_0xc47808([0x70,0x61,0x72,0x73,0x65])](_0x4bf9c7(_0x52d725)):null;}function _0x4bf9c7(_0xa6991){return window[_0xc47808([0x61,0x74,0x6f,0x62])](_0xa6991[_0xc47808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc47808([0x2b]))[_0xc47808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc47808([0x2f])));}function _0x473a0c(_0x7ed10a){let _0x8a2ad1=0x1505;function _0x3c8aa3(_0x1d7d80){for(let _0x5593a1=0x0;_0x5593a1<_0x1d7d80[_0xc47808([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5593a1++){const _0x2f14fb=_0x1d7d80[_0xc47808([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5593a1);_0x8a2ad1=(_0x8a2ad1<<0x5)+_0x8a2ad1+_0x2f14fb,_0x8a2ad1&=_0x8a2ad1;}}return function _0x5a2d25(_0x17ea8f){Array[_0xc47808([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x17ea8f)?_0x17ea8f[_0xc47808([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a2d25):_0x17ea8f&&typeof _0x17ea8f==_0xc47808([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc47808([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x17ea8f)[_0xc47808([0x73,0x6f,0x72,0x74])]()[_0xc47808([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5dac49,_0x3d69f9])=>{_0x3c8aa3(_0x5dac49),_0x5a2d25(_0x3d69f9);}):_0x3c8aa3(window[_0xc47808([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x17ea8f));}(_0x7ed10a),_0x8a2ad1>>>0x0;}function _0x14bedb(_0x47267a){return _0x47267a[_0xc47808([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc47808([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc47808([0x30]));}function _0x5afe25(_0x387861){return _0x387861[_0xc47808([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc47808([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc47808([0x6a,0x6f,0x69,0x6e])]('');}function _0x6042a7(){}function _0xc47808(_0x4f74e3){return _0x4f74e3['map'](_0x447b85=>String['fromCharCode'](_0x447b85))['join']('');}!function(_0x48e0b0){const _0x3f4d03=(function(){const _0x8c17be=window[_0xc47808([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc47808([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc47808([0x6e,0x6f,0x77])]())[_0xc47808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc47808([0x2e]),'');let _0xb475ff=_0xc47808([0x61]);for(let _0x8ce261=0x0;_0x8ce261<_0x8c17be[_0xc47808([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8ce261+=0x2){let _0x53cbeb=window[_0xc47808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8c17be[_0xc47808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8ce261,_0x8ce261+0x2));_0x53cbeb>=_0x4b01ed[_0xc47808([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53cbeb-=_0x4b01ed[_0xc47808([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb475ff+=_0x4b01ed[_0x53cbeb];}return _0xb475ff;}());_0x3c73b6[_0x3f4d03]=_0xc47808([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])+_0x48e0b0,_0x48e0b0!=_0xc47808([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x238ac9,_0x3c73b6[_0xc47808([0x6d,0x6f,0x64,0x65,0x6c])][_0xc47808([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x6042a7,_0x3c73b6[_0xc47808([0x6d,0x6f,0x64,0x65,0x6c])][_0xc47808([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x6042a7,_0x3c73b6[_0xc47808([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc47808([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x27ac60);}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 _0x452dcd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5730e5;for(const _0x2e8f33 in _0x452dcd){const _0x38ba3a=_0x2e8f33,_0x3d6bab=_0x452dcd[_0x38ba3a];if('documentOutlineLicenseKeyValid'==_0x3d6bab||'documentOutlineLicenseKeyInvalid'==_0x3d6bab||'documentOutlineLicenseKeyExpired'==_0x3d6bab||'documentOutlineLicenseKeyDomainLimit'==_0x3d6bab||'documentOutlineLicenseKeyNotAllowed'==_0x3d6bab||'documentOutlineLicenseKeyEvaluationLimit'==_0x3d6bab||'documentOutlineLicenseKeyUsageLimit'==_0x3d6bab){delete _0x452dcd[_0x38ba3a],_0x5730e5=_0x3d6bab,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x5730e5&&_0x452dcd['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x5730e5&&_0x452dcd['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x5730e5&&_0x452dcd['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x5730e5&&_0x452dcd['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x5730e5&&_0x452dcd['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x5730e5&&_0x452dcd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends _0x210666{['execute'](){this['editor']['model']['change'](_0x3495b6=>{this['editor']['model']['insertObject'](_0x3495b6['createElement']('tableOfContents'));});}['refresh'](){const _0x5042f2=this['editor']['model'],_0x4e5cf3=_0x5042f2['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x4e5cf3&&_0x5042f2['schema']['findAllowedParent'](_0x4e5cf3,'tableOfContents'));}}class HeadingId extends Plugin{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x56ab00=this['editor'];if(_0x56ab00['config']['get']('headingId.modelAttributeName'))return;getDefaultHeadingMapNames(this['editor']['config']['get']('heading.options'))['forEach']((_0x249c2c,_0x156a2e)=>{this['_customUpcastHeadingsConversion'](_0x156a2e),this['_customDataDowncastHeadingsConversion'](_0x249c2c),_0x56ab00['model']['schema']['isRegistered'](_0x249c2c)&&_0x56ab00['model']['schema']['extend'](_0x249c2c,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']();}['_customUpcastHeadingsConversion'](_0x4bd037){this['editor']['conversion']['for']('upcast')['add'](_0x5752ad=>_0x5752ad['on']('element:'+_0x4bd037,(_0x280bec,_0x4cb702,_0x26a6bf)=>{const {consumable:_0x497268,writer:_0x1560cd}=_0x26a6bf,_0x266559=_0x4cb702['viewItem']['getAttribute']('id'),_0x44e55c=_0x4cb702['modelRange']['getContainedElement']();if(_0x44e55c)return _0x266559&&_0x266559['length']||_0x44e55c['hasAttribute']('headingId')?void(_0x497268['consume'](_0x4cb702['viewItem'],{'attributes':['id']})&&_0x1560cd['setAttribute']('headingId',_0x266559,_0x44e55c)):(_0x497268['consume'](_0x4cb702['viewItem'],{'attributes':['id']}),void _0x1560cd['setAttribute']('headingId',uid(),_0x44e55c));},{'priority':priorities['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0xc6af6d){this['editor']['conversion']['for']('downcast')['add'](_0x196034=>_0x196034['on']('attribute:headingId:'+_0xc6af6d,(_0x393cf2,_0xce7d4,_0xacca9f)=>{if(!_0xacca9f['consumable']['consume'](_0xce7d4['item'],_0x393cf2['name']))return;const _0x3735de=_0xce7d4['item']['getAttribute']('headingId'),_0x18fbfe=_0xacca9f['mapper']['toViewElement'](_0xce7d4['item']);_0xacca9f['writer']['setAttribute']('id',_0x3735de,_0x18fbfe);}));}['_registerHeadingIdAttributePostfixer'](){const _0x5bc3cb=this['editor'],_0xecf962=new Set(),_0x28b3f2=new Set();function _0x563ca9(_0x430b13,_0x485583){const _0x2de930=uid();return _0x28b3f2['add'](_0x2de930),_0x430b13['setAttribute']('headingId',_0x2de930,_0x485583),_0x2de930;}function _0x3f6e3c(_0x4efbd2,_0x300ebb){_0x4efbd2['removeAttribute']('headingId',_0x300ebb);}_0x5bc3cb['model']['document']['registerPostFixer'](_0x45bddb=>{const _0x4f5451=_0x5bc3cb['model']['document']['differ']['getChanges']();let _0x45a584=!0x1;for(const _0x433b3c of _0x4f5451)if('insert'==_0x433b3c['type']&&_0x433b3c['name']){if(isHeading$1(_0x433b3c['name'])){const _0x3ce2ac=_0x433b3c['attributes']['get']('headingId');'string'==typeof _0x3ce2ac?_0xecf962['has'](_0x3ce2ac)?(_0x563ca9(_0x45bddb,_0x433b3c['position']['nodeAfter']),_0x45a584=!0x0):_0x28b3f2['add'](_0x3ce2ac):(_0x563ca9(_0x45bddb,_0x433b3c['position']['nodeAfter']),_0x45a584=!0x0);}else'string'==typeof _0x433b3c['attributes']['get']('headingId')&&(_0x3f6e3c(_0x45bddb,_0x433b3c['position']['nodeAfter']),_0x45a584=!0x0);}else{if('remove'==_0x433b3c['type']){const _0x4edbd5=_0x433b3c['attributes']['get']('headingId');'string'==typeof _0x4edbd5&&_0xecf962['delete'](_0x4edbd5);}}return _0x45a584;}),_0x5bc3cb['model']['document']['on']('change',()=>{_0x28b3f2['forEach'](_0x5099cf=>_0xecf962['add'](_0x5099cf)),_0x28b3f2['clear']();});}}function isHeading$1(_0x27d903){return!!_0x27d903['match'](/heading\d/);}function getDefaultHeadingMapNames(_0x2a02fb){const _0x143302=new Map();return _0x2a02fb?(_0x2a02fb['forEach'](_0x136258=>{'paragraph'!==_0x136258['model']&&_0x143302['set'](_0x136258['view'],_0x136258['model']);}),_0x143302['get']('h1')||_0x143302['set']('h1','heading1'),_0x143302):_0x143302;}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(_0x18d5b2){super(_0x18d5b2),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x52c05f=this['editor'],_0x38c373=_0x52c05f['editing']['view']['document'];_0x52c05f['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x52c05f['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x38c373,'click',(_0x3ac401,_0x3fc266)=>{if(!_0x3fc266['target'])return;const _0xa80272=_0x3fc266['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0xa80272)&&(_0x3fc266['domEvent']['preventDefault'](),_0x3ac401['stop'](),this['_handleScrollToHeading'](_0xa80272));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x52c05f['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x52c05f)),(_0x52c05f['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x1c4cda,_0x52a0b2)=>{this['_currentOutlineDefinitions']=_0x52a0b2['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x52c05f['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){checkLicense$f(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x35c381=>{'$graveyard'!==_0x35c381['rootName']&&this['editor']['editing']['reconvertItem'](_0x35c381);});}['_trackNewToCElements'](){for(const _0x5cb543 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x5cb543['type']||'tableOfContents'!==_0x5cb543['name'])return;this['_tableOfContentsElements']['add'](_0x5cb543['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x1e414c=this['editor']['conversion'];_0x1e414c['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x1e414c['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x50c906,{writer:_0x5c1a4a})=>this['_createTableOfContents'](_0x5c1a4a,!0x0)}),_0x1e414c['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x598027,{writer:_0x5e0fa3})=>{this['_tableOfContentsElements']['add'](_0x598027);const _0xf85361=this['_createTableOfContents'](_0x5e0fa3);return toWidget(_0xf85361,_0x5e0fa3,{'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'](_0x27c230,_0x2e8c9e=!0x1){const {locale:_0x2eb208}=this['editor'],_0x5c5e9a=_0x27c230['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x2e8c9e&&{'data-table-of-contents-label':getTranslation$e(_0x2eb208,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x2e8c9e&&_0x27c230['insert'](_0x27c230['createPositionAt'](_0x5c5e9a,'end'),_0x27c230['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x27c230['createText'](getTranslation$e(_0x2eb208,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x3a8ee5=_0x2e8c9e?'':'['+getTranslation$e(_0x2eb208,'Empty\x20heading')+']';let _0x275560=_0x5c5e9a;return this['_currentOutlineDefinitions']['forEach']((_0x8d6901,_0x6e717d,_0x17da2b)=>{const _0x4d6a18=this['editor']['model']['hasContent'](_0x8d6901['modelElement'],{'ignoreWhitespaces':!0x0}),_0x5b586d=_0x4d6a18?_0x8d6901['text']:_0x3a8ee5,_0x145ab8=_0x8d6901['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x9541a5=_0x27c230['createContainerElement']('a',{'href':'#'+_0x145ab8,...!_0x2e8c9e&&{'tabindex':'-1'}},[_0x27c230['createText'](_0x5b586d)]),_0x22272b=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x27c230['setCustomProperty']('tableOfContentsHeadingIndex',_0x6e717d,_0x9541a5);const _0xc3acac=_0x27c230['createContainerElement']('li',null,[_0x4d6a18||!_0x2e8c9e&&_0x22272b?_0x9541a5:_0x27c230['createText']('')]),_0x477374=_0x6e717d?_0x17da2b[_0x6e717d-0x1]['level']:0x0,_0x42f61f=Math['abs'](_0x8d6901['level']-_0x477374);if(_0x8d6901['level']>_0x477374){const _0x1d41d1=wrapInList(_0xc3acac,_0x42f61f,_0x27c230);_0x27c230['insert'](_0x27c230['createPositionAt'](_0x275560,'end'),_0x1d41d1);}else{const _0x148543=getOuterListByLevelDifference(_0x275560,_0x42f61f);_0x27c230['insert'](_0x27c230['createPositionAt'](_0x148543,'end'),_0xc3acac);}_0x275560=_0xc3acac;}),_0x5c5e9a;}['_handleScrollToHeading'](_0x157173){const _0x3ab41e=this['_currentOutlineDefinitions'][_0x157173]['modelElement'];this['editor']['model']['change'](_0x5490f4=>{_0x5490f4['setSelection'](_0x3ab41e,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x12bcbd,_0xe1464e)=>{const _0x222130=_0xe1464e['mapper'],_0x4f149f=_0x222130['findMappedViewAncestor'](_0xe1464e['viewPosition']),_0xdffdbd=_0x222130['toModelElement'](_0x4f149f);_0xdffdbd['is']('element','tableOfContents')&&(_0xe1464e['modelPosition']=this['editor']['model']['createPositionAt'](_0xdffdbd,0x0),_0x12bcbd['stop']());};}}function wrapInList(_0x1faf00,_0x2474b1,_0x59f3a8){return 0x1===_0x2474b1?_0x59f3a8['createContainerElement']('ol',null,[_0x1faf00]):_0x59f3a8['createContainerElement']('ol',null,[_0x59f3a8['createContainerElement']('li',null,[wrapInList(_0x1faf00,_0x2474b1-0x1,_0x59f3a8)])]);}function getOuterListByLevelDifference(_0x3ec1df,_0x1a1873){return _0x3ec1df['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x25b667=>_0x25b667['is']('element','ol'))[_0x1a1873];}async function checkLicense$f(_0x2c696b){const _0x572807=_0x482efc([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]),_0x329727=window[_0x482efc([0x44,0x61,0x74,0x65])][_0x482efc([0x6e,0x6f,0x77])](),_0x140b9d=_0x2c696b[_0x482efc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48b9a1=new window[(_0x482efc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xef9bbe=>{_0x140b9d[_0x482efc([0x6f,0x6e,0x63,0x65])](_0x482efc([0x72,0x65,0x61,0x64,0x79]),_0xef9bbe);}),_0x5066bc={[_0x482efc([0x6b,0x74,0x79])]:_0x482efc([0x45,0x43]),[_0x482efc([0x75,0x73,0x65])]:_0x482efc([0x73,0x69,0x67]),[_0x482efc([0x63,0x72,0x76])]:_0x482efc([0x50,0x2d,0x32,0x35,0x36]),[_0x482efc([0x78])]:_0x482efc([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]),[_0x482efc([0x79])]:_0x482efc([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]),[_0x482efc([0x61,0x6c,0x67])]:_0x482efc([0x45,0x53,0x32,0x35,0x36])},_0x3f8748=_0x140b9d[_0x482efc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x482efc([0x67,0x65,0x74])](_0x482efc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x506d5a=await(async function(){let _0x495663,_0x1ece2c=null,_0x606ab9=null;try{if(_0x3f8748==_0x482efc([0x47,0x50,0x4c]))return _0x482efc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x495663=(function(){const _0x4e3290=_0x3f8748[_0x482efc([0x73,0x70,0x6c,0x69,0x74])](_0x482efc([0x2e]));if(0x3!=_0x4e3290[_0x482efc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x4c70ff=_0x4e3290[0x1];return _0xc39e96(_0x4c70ff);function _0xc39e96(_0x158f2f){const _0x569ff8=_0x5a6e33(_0x158f2f);return _0x569ff8&&_0x350f79()?_0x569ff8:null;function _0x350f79(){const _0x5347fd=_0x569ff8[_0x482efc([0x6a,0x74,0x69])],_0x3dab54=window[_0x482efc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5347fd[_0x482efc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5347fd[_0x482efc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19541b={..._0x569ff8,[_0x482efc([0x6a,0x74,0x69])]:_0x5347fd[_0x482efc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5347fd[_0x482efc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19541b[_0x482efc([0x76,0x63])],_0x57e35e(_0x19541b)==_0x3dab54;}}}()),!_0x495663)return _0x482efc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x495663[_0x482efc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x606ab9=function(_0x8a3d49,_0x2a3643){return new window[(_0x482efc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x543bf2=>{if(_0x5d8d2e())return _0x543bf2(_0x482efc([0x56,0x61,0x6c,0x69,0x64]));_0x15854b(),_0x140b9d[_0x482efc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x482efc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x58f065=!0x1;const _0x563282=uid();function _0x2d5649(_0x2107b8){return!!_0x2107b8&&(typeof _0x2107b8===_0x482efc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2107b8===_0x482efc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2107b8[_0x482efc([0x74,0x68,0x65,0x6e])]===_0x482efc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2107b8[_0x482efc([0x63,0x61,0x74,0x63,0x68])]===_0x482efc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x288620(_0x2a1e72){_0x285466(_0x2a1e72)[_0x482efc([0x74,0x68,0x65,0x6e])](_0x4f85c6=>{if(!_0x4f85c6||_0x4f85c6[_0x482efc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x482efc([0x6f,0x6b]))return _0x482efc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39eaa9(_0x57e35e(_0x563282+_0x2a3643))!=_0x4f85c6[_0x482efc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x482efc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x482efc([0x56,0x61,0x6c,0x69,0x64]);})[_0x482efc([0x74,0x68,0x65,0x6e])](_0x29231a=>(_0x294a07(),_0x29231a),()=>{const _0x372ff4=_0x1cdace();return null==_0x372ff4?(_0x294a07(),_0x482efc([0x56,0x61,0x6c,0x69,0x64])):_0x482efc(_0x329727-_0x372ff4>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x482efc([0x74,0x68,0x65,0x6e])](_0x543bf2)[_0x482efc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x543bf2(_0x482efc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23ce20=0x36ee80;function _0x294a07(){const _0x5c09fa=_0x482efc([0x6c,0x6c,0x63,0x74,0x2d])+_0x39eaa9(_0x57e35e(_0x8a3d49)),_0x154a05=_0x4a058a(_0x39eaa9(window[_0x482efc([0x4d,0x61,0x74,0x68])][_0x482efc([0x63,0x65,0x69,0x6c])](_0x329727/_0x23ce20)));window[_0x482efc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x482efc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c09fa,_0x154a05);}function _0x1cdace(){const _0x1c9e4a=_0x482efc([0x6c,0x6c,0x63,0x74,0x2d])+_0x39eaa9(_0x57e35e(_0x8a3d49)),_0x2ba055=window[_0x482efc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x482efc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c9e4a);return _0x2ba055?window[_0x482efc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a058a(_0x2ba055),0x10)*_0x23ce20:null;}function _0x285466(_0x293ab4){return new window[(_0x482efc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e8cb6,_0x2912e5)=>{_0x293ab4[_0x482efc([0x74,0x68,0x65,0x6e])](_0x5e8cb6,_0x2912e5),window[_0x482efc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2912e5,0x1d4c0);});}}_0x140b9d[_0x482efc([0x6f,0x6e])](_0x482efc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x506f4c,_0x24815f)=>{if(_0x24815f[0x0]!=_0x8a3d49)return _0x543bf2(_0x482efc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24815f[0x1]={..._0x24815f[0x1],[_0x482efc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x563282};},{[_0x482efc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x482efc([0x68,0x69,0x67,0x68])}),_0x140b9d[_0x482efc([0x6f,0x6e])](_0x482efc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb90c37=>{_0x2d5649(_0xb90c37[_0x482efc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x58f065=!0x0,_0x288620(_0xb90c37[_0x482efc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x482efc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x482efc([0x6c,0x6f,0x77])}),_0x48b9a1[_0x482efc([0x74,0x68,0x65,0x6e])](()=>{_0x58f065||_0x543bf2(_0x482efc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d8d2e(){return _0x140b9d[_0x482efc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x482efc([0x76,0x69,0x65,0x77])][_0x482efc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x482efc([0x61,0x75,0x74,0x6f]);}function _0x15854b(){_0x140b9d[_0x482efc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x482efc([0x76,0x69,0x65,0x77])][_0x482efc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x482efc([0x61,0x75,0x74,0x6f]);}}(_0x495663[_0x482efc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x495663[_0x482efc([0x6a,0x74,0x69])]));const _0x57a003=await(async function(){let _0x1a32be=!0x0;try{const _0x319b6e=_0x3f8748[_0x482efc([0x73,0x70,0x6c,0x69,0x74])](_0x482efc([0x2e])),[_0x5b45ce,_0xa66d26,_0x3cec45]=_0x319b6e;return _0x3d8b7d(_0x5b45ce),await _0x26b119(_0x5b45ce,_0xa66d26,_0x3cec45),_0x1a32be;}catch{return!0x1;}function _0x3d8b7d(_0x44a302){const _0x508dea=_0x5a6e33(_0x44a302);_0x508dea&&_0x508dea[_0x482efc([0x61,0x6c,0x67])]==_0x482efc([0x45,0x53,0x32,0x35,0x36])||(_0x1a32be=!0x1);}async function _0x26b119(_0x421b31,_0x36b26f,_0x3d9419){const _0xbd07ff=window[_0x482efc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x482efc([0x66,0x72,0x6f,0x6d])](_0xe0e05e(_0x3d9419),_0x258ae3=>_0x258ae3[_0x482efc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c3e4b=new window[(_0x482efc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x482efc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x421b31+_0x482efc([0x2e])+_0x36b26f),_0x3ce2ee=window[_0x482efc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x482efc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ce2ee)return;const _0x180059=await _0x3ce2ee[_0x482efc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x482efc([0x6a,0x77,0x6b]),_0x5066bc,{[_0x482efc([0x6e,0x61,0x6d,0x65])]:_0x482efc([0x45,0x43,0x44,0x53,0x41]),[_0x482efc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x482efc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x482efc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ce2ee[_0x482efc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x482efc([0x6e,0x61,0x6d,0x65])]:_0x482efc([0x45,0x43,0x44,0x53,0x41]),[_0x482efc([0x68,0x61,0x73,0x68])]:{[_0x482efc([0x6e,0x61,0x6d,0x65])]:_0x482efc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x180059,_0xbd07ff,_0x4c3e4b)||(_0x1a32be=!0x1);}}());return _0x57a003?(function(){const _0x53567a=_0x495663[_0x482efc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x53567a)return!0x1;if(_0x53567a[_0x482efc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x482efc([0x2a])))return!0x0;if(_0x53567a[_0x482efc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x482efc([0x54,0x4f,0x43])))return!0x0;if(_0x53567a[_0x482efc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x482efc([0x50,0x50])))return!0x0;if(_0x53567a[_0x482efc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x482efc([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x482efc([0x67,0x6c,0x6f,0x62])]&&window[_0x482efc([0x67,0x6c,0x6f,0x62])][_0x482efc([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x21e540=[_0x482efc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x482efc([0x74,0x72,0x69,0x61,0x6c])][_0x482efc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x495663[_0x482efc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x329727/0x3e8:0x69b0b080;return _0x495663[_0x482efc([0x65,0x78,0x70])]<_0x21e540;}())?_0x482efc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x102c65=_0x495663[_0x482efc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x102c65||0x0==_0x102c65[_0x482efc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f6e1b}=new URL(window[_0x482efc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x102c65[_0x482efc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f6e1b))return!0x0;const _0x54903a=_0x5f6e1b[_0x482efc([0x73,0x70,0x6c,0x69,0x74])](_0x482efc([0x2e]));return _0x102c65[_0x482efc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d205a=>_0x3d205a[_0x482efc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x482efc([0x2a])))[_0x482efc([0x6d,0x61,0x70])](_0x4a87cb=>_0x4a87cb[_0x482efc([0x73,0x70,0x6c,0x69,0x74])](_0x482efc([0x2e])))[_0x482efc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x64075=>_0x64075[_0x482efc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x54903a[_0x482efc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x482efc([0x6d,0x61,0x70])](_0x1213c4=>Array(_0x54903a[_0x482efc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1213c4[_0x482efc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x482efc([0x66,0x69,0x6c,0x6c])](_0x1213c4[0x0]===_0x482efc([0x2a])?_0x482efc([0x2a]):'')[_0x482efc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1213c4))[_0x482efc([0x73,0x6f,0x6d,0x65])](_0x544dab=>_0x54903a[_0x482efc([0x65,0x76,0x65,0x72,0x79])]((_0x295c4c,_0x146591)=>_0x544dab[_0x146591]===_0x295c4c||_0x544dab[_0x146591]===_0x482efc([0x2a])));}())?(_0x495663[_0x482efc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x482efc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ece2c=function(_0x282396){const _0x45882d=new window[(_0x482efc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x246313=>setTimeout(_0x246313,0x93ecc)),_0xf0dc38=_0x48b9a1[_0x482efc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x482efc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x577179=>{let _0x39ad47=0x0;_0x140b9d[_0x482efc([0x6d,0x6f,0x64,0x65,0x6c])][_0x482efc([0x6f,0x6e])](_0x482efc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x16f7c1,_0x364fb6)=>{_0x364fb6[0x0][_0x482efc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39ad47++,0x5e8==_0x39ad47&&(_0x577179(),_0x16f7c1[_0x482efc([0x6f,0x66,0x66])]());});})),_0x395f5e=[_0x45882d,_0xf0dc38];return window[_0x482efc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x482efc([0x72,0x61,0x63,0x65])](_0x395f5e)[_0x482efc([0x74,0x68,0x65,0x6e])](()=>_0x282396);}(_0x482efc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x1ece2c&&_0x606ab9)return new window[(_0x482efc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a35c4,_0x5394f0)=>{_0x1ece2c[_0x482efc([0x74,0x68,0x65,0x6e])](_0x1a35c4,_0x5394f0),_0x606ab9[_0x482efc([0x74,0x68,0x65,0x6e])](_0x28a2e7=>{_0x28a2e7!=_0x482efc([0x56,0x61,0x6c,0x69,0x64])&&_0x1a35c4(_0x28a2e7);},_0x5394f0);});return _0x1ece2c||_0x606ab9||_0x482efc([0x56,0x61,0x6c,0x69,0x64]);}())):_0x482efc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x482efc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x482efc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x482efc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x5a6e33(_0x4d0e9c){return _0x4d0e9c[_0x482efc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x482efc([0x65,0x79]))?JSON[_0x482efc([0x70,0x61,0x72,0x73,0x65])](_0xe0e05e(_0x4d0e9c)):null;}function _0xe0e05e(_0x1e2a66){return window[_0x482efc([0x61,0x74,0x6f,0x62])](_0x1e2a66[_0x482efc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x482efc([0x2b]))[_0x482efc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x482efc([0x2f])));}function _0x57e35e(_0x453596){let _0x26b194=0x1505;function _0x30105d(_0x2276bd){for(let _0x154f47=0x0;_0x154f47<_0x2276bd[_0x482efc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x154f47++){const _0x537d91=_0x2276bd[_0x482efc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x154f47);_0x26b194=(_0x26b194<<0x5)+_0x26b194+_0x537d91,_0x26b194&=_0x26b194;}}return function _0x1caa22(_0x46d820){Array[_0x482efc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46d820)?_0x46d820[_0x482efc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1caa22):_0x46d820&&typeof _0x46d820==_0x482efc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x482efc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46d820)[_0x482efc([0x73,0x6f,0x72,0x74])]()[_0x482efc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d32c7,_0xd8bee2])=>{_0x30105d(_0x4d32c7),_0x1caa22(_0xd8bee2);}):_0x30105d(window[_0x482efc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46d820));}(_0x453596),_0x26b194>>>0x0;}function _0x39eaa9(_0x364406){return _0x364406[_0x482efc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x482efc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x482efc([0x30]));}function _0x4a058a(_0x254c9d){return _0x254c9d[_0x482efc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x482efc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x482efc([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e4628(){}function _0x482efc(_0x2f8a07){return _0x2f8a07['map'](_0x29622d=>String['fromCharCode'](_0x29622d))['join']('');}!function(_0x38a536){const _0xc3767d=(function(){const _0x4f593f=window[_0x482efc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x482efc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x482efc([0x6e,0x6f,0x77])]())[_0x482efc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x482efc([0x2e]),'');let _0x3c1bec=_0x482efc([0x6d]);for(let _0x1cef8b=0x0;_0x1cef8b<_0x4f593f[_0x482efc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cef8b+=0x2){let _0x19aa4f=window[_0x482efc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f593f[_0x482efc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cef8b,_0x1cef8b+0x2));_0x19aa4f>=_0x572807[_0x482efc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19aa4f-=_0x572807[_0x482efc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c1bec+=_0x572807[_0x19aa4f];}return _0x3c1bec;}());_0x140b9d[_0xc3767d]=_0x482efc([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])+_0x38a536,_0x38a536!=_0x482efc([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x48b9a1,_0x140b9d[_0x482efc([0x6d,0x6f,0x64,0x65,0x6c])][_0x482efc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e4628,_0x140b9d[_0x482efc([0x6d,0x6f,0x64,0x65,0x6c])][_0x482efc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e4628,_0x140b9d[_0x482efc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x482efc([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x506d5a);}class TableOfContentsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4de953=this['editor'];_0x4de953['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x3e2172=this['_createButton'](ButtonView);return _0x3e2172['tooltip']=!0x0,_0x3e2172;}),_0x4de953['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5f4f5b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e574c;for(const _0xb17e72 in _0x5f4f5b){const _0x550fc6=_0xb17e72,_0xf8c3ca=_0x5f4f5b[_0x550fc6];if('tableOfContentsLicenseKeyValid'==_0xf8c3ca||'tableOfContentsLicenseKeyInvalid'==_0xf8c3ca||'tableOfContentsLicenseKeyExpired'==_0xf8c3ca||'tableOfContentsLicenseKeyDomainLimit'==_0xf8c3ca||'tableOfContentsLicenseKeyNotAllowed'==_0xf8c3ca||'tableOfContentsLicenseKeyEvaluationLimit'==_0xf8c3ca||'tableOfContentsLicenseKeyUsageLimit'==_0xf8c3ca){delete _0x5f4f5b[_0x550fc6],_0x5e574c=_0xf8c3ca,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x5e574c&&_0x5f4f5b['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x5e574c&&_0x5f4f5b['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x5e574c&&_0x5f4f5b['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x5e574c&&_0x5f4f5b['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x5e574c&&_0x5f4f5b['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x5e574c&&_0x5f4f5b['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x4c6381){const _0xd3d3ef=this['editor'],_0x474820=_0xd3d3ef['locale'],_0x43d45b=_0xd3d3ef['commands']['get']('insertTableOfContents'),_0x1d24a0=new _0x4c6381(_0x474820);return _0x1d24a0['set']({'label':getTranslation$e(_0x474820,'Table\x20of\x20contents'),'icon':IconTableOfContents}),_0x1d24a0['bind']('isEnabled')['to'](_0x43d45b,'isEnabled'),this['listenTo'](_0x1d24a0,'execute',()=>{_0xd3d3ef['execute']('insertTableOfContents'),_0xd3d3ef['editing']['view']['focus']();}),_0x1d24a0;}['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(_0x470b4d){super(_0x470b4d),_0x470b4d['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){checkLicense$e(this);}['_logSuppressibleWarning'](_0xd0600b,_0x5b439d){if(this['_isSuppressedLog'](_0xd0600b,_0x5b439d))return;const _0x24c766=BASE_DOCUMENTATION_URL+'/support/error-codes.html#error-'+_0xd0600b;console['warn']('%cEmailConfigurationHelper%c\x20'+_0xd0600b,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x5b439d?[_0x5b439d]:[],'\x0aRead\x20more:\x20'+_0x24c766);}['_logSuppressibleInfo'](_0x579fa0,_0x5b5af6,_0x15c513){if(this['_isSuppressedLog'](_0x579fa0))return;let _0x2e3828=_0x5b5af6;_0x15c513&&(_0x2e3828+='\x0aRead\x20more:\x20'+(BASE_DOCUMENTATION_URL+'/'+_0x15c513)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x579fa0,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x2e3828);}['_checkUnsupportedPlugin'](_0xf676a7,_0x1ec066){this['editor']['plugins']['has'](_0xf676a7)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0xf676a7,..._0x1ec066});}['_validateConfigColorValue'](_0x1de0b4){const _0x1dfad1=this['editor']['config']['get'](_0x1de0b4);if(!_0x1dfad1)return;const _0x104996=Array['isArray'](_0x1dfad1),_0x58d3b1=_0x104996?_0x1dfad1:[_0x1dfad1];for(const [_0x40f490,_0x38e6df]of _0x58d3b1['entries']()){const _0x5b0d65='string'==typeof _0x38e6df?_0x38e6df:_0x38e6df['color'];isUnsupportedEmailColorValue(_0x5b0d65)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x104996?_0x1de0b4+'['+_0x40f490+']':_0x1de0b4,'color':_0x5b0d65});}}['_validateConfigColorFormat'](_0x129864){const _0x2f73f8=this['editor']['config']['get'](_0x129864);_0x2f73f8&&isUnsupportedEmailColorFormat(_0x2f73f8)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x129864,'format':_0x2f73f8});}['_isSuppressedLog'](_0x480460,_0x478e63){const _0x240d27=this['editor']['config']['get']('email.logs');return!!_0x240d27['suppressAll']||(!('function'!=typeof _0x240d27['suppress']||!_0x240d27['suppress'](_0x480460,_0x478e63))||!(!Array['isArray'](_0x240d27['suppress'])||!_0x240d27['suppress']['includes'](_0x480460)));}}const UNSUPPORTED_COLOR_FORMATS=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function isUnsupportedEmailColorValue(_0x13771f){return!!_0x13771f&&UNSUPPORTED_COLOR_FORMATS['some'](_0x373513=>_0x13771f['includes'](_0x373513+'('));}function isUnsupportedEmailColorFormat(_0x330e84){return!!_0x330e84&&UNSUPPORTED_COLOR_FORMATS['includes'](_0x330e84);}async function checkLicense$e(_0x4bd51b){const _0x56a27b=_0x478dcf([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]),_0x3d9519=window[_0x478dcf([0x44,0x61,0x74,0x65])][_0x478dcf([0x6e,0x6f,0x77])](),_0x3f72d9=_0x4bd51b[_0x478dcf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b5041=new window[(_0x478dcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4678ef=>{_0x3f72d9[_0x478dcf([0x6f,0x6e,0x63,0x65])](_0x478dcf([0x72,0x65,0x61,0x64,0x79]),_0x4678ef);}),_0x213210={[_0x478dcf([0x6b,0x74,0x79])]:_0x478dcf([0x45,0x43]),[_0x478dcf([0x75,0x73,0x65])]:_0x478dcf([0x73,0x69,0x67]),[_0x478dcf([0x63,0x72,0x76])]:_0x478dcf([0x50,0x2d,0x32,0x35,0x36]),[_0x478dcf([0x78])]:_0x478dcf([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]),[_0x478dcf([0x79])]:_0x478dcf([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]),[_0x478dcf([0x61,0x6c,0x67])]:_0x478dcf([0x45,0x53,0x32,0x35,0x36])},_0x56b577=_0x3f72d9[_0x478dcf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x478dcf([0x67,0x65,0x74])](_0x478dcf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0xa3d999=await(async function(){let _0x4d9e2f,_0x5c51cc=null,_0x19439c=null;try{if(_0x56b577==_0x478dcf([0x47,0x50,0x4c]))return _0x478dcf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d9e2f=(function(){const _0x4cadc5=_0x56b577[_0x478dcf([0x73,0x70,0x6c,0x69,0x74])](_0x478dcf([0x2e]));if(0x3!=_0x4cadc5[_0x478dcf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3d63f2=_0x4cadc5[0x1];return _0x56e6c1(_0x3d63f2);function _0x56e6c1(_0x5e8d74){const _0x525699=_0x367ab6(_0x5e8d74);return _0x525699&&_0x262b67()?_0x525699:null;function _0x262b67(){const _0x2142fe=_0x525699[_0x478dcf([0x6a,0x74,0x69])],_0x2a5054=window[_0x478dcf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2142fe[_0x478dcf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2142fe[_0x478dcf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50d796={..._0x525699,[_0x478dcf([0x6a,0x74,0x69])]:_0x2142fe[_0x478dcf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2142fe[_0x478dcf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50d796[_0x478dcf([0x76,0x63])],_0x366135(_0x50d796)==_0x2a5054;}}}()),!_0x4d9e2f)return _0x478dcf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4d9e2f[_0x478dcf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x19439c=function(_0x52e206,_0x41fd47){return new window[(_0x478dcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19bde8=>{if(_0xad57bf())return _0x19bde8(_0x478dcf([0x56,0x61,0x6c,0x69,0x64]));_0x268ecf(),_0x3f72d9[_0x478dcf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x478dcf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56f3d4=!0x1;const _0x30d0fc=uid();function _0x9442f9(_0x414d80){return!!_0x414d80&&(typeof _0x414d80===_0x478dcf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x414d80===_0x478dcf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x414d80[_0x478dcf([0x74,0x68,0x65,0x6e])]===_0x478dcf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x414d80[_0x478dcf([0x63,0x61,0x74,0x63,0x68])]===_0x478dcf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc3eaa0(_0x193aef){_0x3c32b4(_0x193aef)[_0x478dcf([0x74,0x68,0x65,0x6e])](_0x5cb4a3=>{if(!_0x5cb4a3||_0x5cb4a3[_0x478dcf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x478dcf([0x6f,0x6b]))return _0x478dcf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f03fb(_0x366135(_0x30d0fc+_0x41fd47))!=_0x5cb4a3[_0x478dcf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x478dcf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x478dcf([0x56,0x61,0x6c,0x69,0x64]);})[_0x478dcf([0x74,0x68,0x65,0x6e])](_0x28ea00=>(_0x36d365(),_0x28ea00),()=>{const _0x1a672d=_0x2b9301();return null==_0x1a672d?(_0x36d365(),_0x478dcf([0x56,0x61,0x6c,0x69,0x64])):_0x478dcf(_0x3d9519-_0x1a672d>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x478dcf([0x74,0x68,0x65,0x6e])](_0x19bde8)[_0x478dcf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19bde8(_0x478dcf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e8e37=0x36ee80;function _0x36d365(){const _0x490c8b=_0x478dcf([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f03fb(_0x366135(_0x52e206)),_0x524fcf=_0x354b9b(_0x3f03fb(window[_0x478dcf([0x4d,0x61,0x74,0x68])][_0x478dcf([0x63,0x65,0x69,0x6c])](_0x3d9519/_0x4e8e37)));window[_0x478dcf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x478dcf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x490c8b,_0x524fcf);}function _0x2b9301(){const _0x391c29=_0x478dcf([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f03fb(_0x366135(_0x52e206)),_0x5c00c8=window[_0x478dcf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x478dcf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391c29);return _0x5c00c8?window[_0x478dcf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x354b9b(_0x5c00c8),0x10)*_0x4e8e37:null;}function _0x3c32b4(_0x1da7a9){return new window[(_0x478dcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7d99bb,_0xab8f54)=>{_0x1da7a9[_0x478dcf([0x74,0x68,0x65,0x6e])](_0x7d99bb,_0xab8f54),window[_0x478dcf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xab8f54,0x1d4c0);});}}_0x3f72d9[_0x478dcf([0x6f,0x6e])](_0x478dcf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x9cc1a4,_0x4c03f3)=>{if(_0x4c03f3[0x0]!=_0x52e206)return _0x19bde8(_0x478dcf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c03f3[0x1]={..._0x4c03f3[0x1],[_0x478dcf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30d0fc};},{[_0x478dcf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x478dcf([0x68,0x69,0x67,0x68])}),_0x3f72d9[_0x478dcf([0x6f,0x6e])](_0x478dcf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33f663=>{_0x9442f9(_0x33f663[_0x478dcf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56f3d4=!0x0,_0xc3eaa0(_0x33f663[_0x478dcf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x478dcf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x478dcf([0x6c,0x6f,0x77])}),_0x5b5041[_0x478dcf([0x74,0x68,0x65,0x6e])](()=>{_0x56f3d4||_0x19bde8(_0x478dcf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xad57bf(){return _0x3f72d9[_0x478dcf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x478dcf([0x76,0x69,0x65,0x77])][_0x478dcf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x478dcf([0x61,0x75,0x74,0x6f]);}function _0x268ecf(){_0x3f72d9[_0x478dcf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x478dcf([0x76,0x69,0x65,0x77])][_0x478dcf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x478dcf([0x61,0x75,0x74,0x6f]);}}(_0x4d9e2f[_0x478dcf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d9e2f[_0x478dcf([0x6a,0x74,0x69])]));const _0x2937f2=await(async function(){let _0xa0ca64=!0x0;try{const _0x815734=_0x56b577[_0x478dcf([0x73,0x70,0x6c,0x69,0x74])](_0x478dcf([0x2e])),[_0x4f7488,_0x53b7a9,_0x18bfb7]=_0x815734;return _0x309de4(_0x4f7488),await _0x1dbda9(_0x4f7488,_0x53b7a9,_0x18bfb7),_0xa0ca64;}catch{return!0x1;}function _0x309de4(_0x288d6f){const _0x2f8612=_0x367ab6(_0x288d6f);_0x2f8612&&_0x2f8612[_0x478dcf([0x61,0x6c,0x67])]==_0x478dcf([0x45,0x53,0x32,0x35,0x36])||(_0xa0ca64=!0x1);}async function _0x1dbda9(_0x4b692f,_0x4490f9,_0x2bdd28){const _0xa76b8a=window[_0x478dcf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x478dcf([0x66,0x72,0x6f,0x6d])](_0x4a86db(_0x2bdd28),_0x273a72=>_0x273a72[_0x478dcf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x261383=new window[(_0x478dcf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x478dcf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b692f+_0x478dcf([0x2e])+_0x4490f9),_0x4d9636=window[_0x478dcf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x478dcf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d9636)return;const _0x3a8747=await _0x4d9636[_0x478dcf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x478dcf([0x6a,0x77,0x6b]),_0x213210,{[_0x478dcf([0x6e,0x61,0x6d,0x65])]:_0x478dcf([0x45,0x43,0x44,0x53,0x41]),[_0x478dcf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x478dcf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x478dcf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d9636[_0x478dcf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x478dcf([0x6e,0x61,0x6d,0x65])]:_0x478dcf([0x45,0x43,0x44,0x53,0x41]),[_0x478dcf([0x68,0x61,0x73,0x68])]:{[_0x478dcf([0x6e,0x61,0x6d,0x65])]:_0x478dcf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a8747,_0xa76b8a,_0x261383)||(_0xa0ca64=!0x1);}}());return _0x2937f2?(function(){const _0x53266f=_0x4d9e2f[_0x478dcf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x53266f)return!0x1;if(_0x53266f[_0x478dcf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x478dcf([0x2a])))return!0x0;if(_0x53266f[_0x478dcf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x478dcf([0x45,0x43,0x48])))return!0x0;return!0x1;}())?(function(){const _0x2b1880=[_0x478dcf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x478dcf([0x74,0x72,0x69,0x61,0x6c])][_0x478dcf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d9e2f[_0x478dcf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d9519/0x3e8:0x69b0b080;return _0x4d9e2f[_0x478dcf([0x65,0x78,0x70])]<_0x2b1880;}())?_0x478dcf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x5ddcdb=_0x4d9e2f[_0x478dcf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ddcdb||0x0==_0x5ddcdb[_0x478dcf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a1e44}=new URL(window[_0x478dcf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ddcdb[_0x478dcf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a1e44))return!0x0;const _0xf6bcdd=_0x4a1e44[_0x478dcf([0x73,0x70,0x6c,0x69,0x74])](_0x478dcf([0x2e]));return _0x5ddcdb[_0x478dcf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc68c0f=>_0xc68c0f[_0x478dcf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x478dcf([0x2a])))[_0x478dcf([0x6d,0x61,0x70])](_0x26b78c=>_0x26b78c[_0x478dcf([0x73,0x70,0x6c,0x69,0x74])](_0x478dcf([0x2e])))[_0x478dcf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5b473=>_0xe5b473[_0x478dcf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf6bcdd[_0x478dcf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x478dcf([0x6d,0x61,0x70])](_0x384eae=>Array(_0xf6bcdd[_0x478dcf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x384eae[_0x478dcf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x478dcf([0x66,0x69,0x6c,0x6c])](_0x384eae[0x0]===_0x478dcf([0x2a])?_0x478dcf([0x2a]):'')[_0x478dcf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x384eae))[_0x478dcf([0x73,0x6f,0x6d,0x65])](_0x5224d5=>_0xf6bcdd[_0x478dcf([0x65,0x76,0x65,0x72,0x79])]((_0x2cff1a,_0x2805b6)=>_0x5224d5[_0x2805b6]===_0x2cff1a||_0x5224d5[_0x2805b6]===_0x478dcf([0x2a])));}())?(_0x4d9e2f[_0x478dcf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x478dcf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c51cc=function(_0x35c841){const _0x3e7861=new window[(_0x478dcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcfbc4a=>setTimeout(_0xcfbc4a,0x93ecc)),_0x5004e5=_0x5b5041[_0x478dcf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x478dcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e992b=>{let _0x5cfc90=0x0;_0x3f72d9[_0x478dcf([0x6d,0x6f,0x64,0x65,0x6c])][_0x478dcf([0x6f,0x6e])](_0x478dcf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b8beb,_0x298f6e)=>{_0x298f6e[0x0][_0x478dcf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5cfc90++,0x5e8==_0x5cfc90&&(_0x2e992b(),_0x4b8beb[_0x478dcf([0x6f,0x66,0x66])]());});})),_0x50fa04=[_0x3e7861,_0x5004e5];return window[_0x478dcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x478dcf([0x72,0x61,0x63,0x65])](_0x50fa04)[_0x478dcf([0x74,0x68,0x65,0x6e])](()=>_0x35c841);}(_0x478dcf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5c51cc&&_0x19439c)return new window[(_0x478dcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bfbde,_0x5ae44d)=>{_0x5c51cc[_0x478dcf([0x74,0x68,0x65,0x6e])](_0x5bfbde,_0x5ae44d),_0x19439c[_0x478dcf([0x74,0x68,0x65,0x6e])](_0x36cdbc=>{_0x36cdbc!=_0x478dcf([0x56,0x61,0x6c,0x69,0x64])&&_0x5bfbde(_0x36cdbc);},_0x5ae44d);});return _0x5c51cc||_0x19439c||_0x478dcf([0x56,0x61,0x6c,0x69,0x64]);}())):_0x478dcf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x478dcf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x478dcf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x478dcf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x367ab6(_0x281504){return _0x281504[_0x478dcf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x478dcf([0x65,0x79]))?JSON[_0x478dcf([0x70,0x61,0x72,0x73,0x65])](_0x4a86db(_0x281504)):null;}function _0x4a86db(_0x508c22){return window[_0x478dcf([0x61,0x74,0x6f,0x62])](_0x508c22[_0x478dcf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x478dcf([0x2b]))[_0x478dcf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x478dcf([0x2f])));}function _0x366135(_0x1e7326){let _0x1d4eb6=0x1505;function _0x2826be(_0x36de79){for(let _0x2237b6=0x0;_0x2237b6<_0x36de79[_0x478dcf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2237b6++){const _0x9ca620=_0x36de79[_0x478dcf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2237b6);_0x1d4eb6=(_0x1d4eb6<<0x5)+_0x1d4eb6+_0x9ca620,_0x1d4eb6&=_0x1d4eb6;}}return function _0x9bf498(_0x2d9991){Array[_0x478dcf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d9991)?_0x2d9991[_0x478dcf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9bf498):_0x2d9991&&typeof _0x2d9991==_0x478dcf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x478dcf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d9991)[_0x478dcf([0x73,0x6f,0x72,0x74])]()[_0x478dcf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b7524,_0x17e98e])=>{_0x2826be(_0x5b7524),_0x9bf498(_0x17e98e);}):_0x2826be(window[_0x478dcf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d9991));}(_0x1e7326),_0x1d4eb6>>>0x0;}function _0x3f03fb(_0x2d705c){return _0x2d705c[_0x478dcf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x478dcf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x478dcf([0x30]));}function _0x354b9b(_0x3fe48b){return _0x3fe48b[_0x478dcf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x478dcf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x478dcf([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d9050(){}function _0x478dcf(_0x42ff73){return _0x42ff73['map'](_0x30c61f=>String['fromCharCode'](_0x30c61f))['join']('');}!function(_0x5d9333){const _0x156e01=(function(){const _0x521e3d=window[_0x478dcf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x478dcf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x478dcf([0x6e,0x6f,0x77])]())[_0x478dcf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x478dcf([0x2e]),'');let _0x274c45=_0x478dcf([0x75]);for(let _0x3091be=0x0;_0x3091be<_0x521e3d[_0x478dcf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3091be+=0x2){let _0x58f25c=window[_0x478dcf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x521e3d[_0x478dcf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3091be,_0x3091be+0x2));_0x58f25c>=_0x56a27b[_0x478dcf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58f25c-=_0x56a27b[_0x478dcf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x274c45+=_0x56a27b[_0x58f25c];}return _0x274c45;}());_0x3f72d9[_0x156e01]=_0x478dcf([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])+_0x5d9333,_0x5d9333!=_0x478dcf([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x5b5041,_0x3f72d9[_0x478dcf([0x6d,0x6f,0x64,0x65,0x6c])][_0x478dcf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d9050,_0x3f72d9[_0x478dcf([0x6d,0x6f,0x64,0x65,0x6c])][_0x478dcf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d9050,_0x3f72d9[_0x478dcf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x478dcf([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0xa3d999);}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(_0x3780cb){var _0x5beaa9,_0x5c215a,_0x429dc4,_0x21f57c,_0x28f6d5=[];for(_0x429dc4=0x0,_0x21f57c=(_0x5beaa9=_0x3780cb['split'](','))['length'];_0x429dc4<_0x21f57c;_0x429dc4+=0x1)(_0x5c215a=_0x5beaa9[_0x429dc4])['length']>0x0&&_0x28f6d5['push'](calculateSingle(_0x5c215a));return _0x28f6d5;},calculateSingle=function(_0x396c39){var _0x203060,_0x150ebb,_0x5dbd2e=_0x396c39,_0x5f3876={'a':0x0,'b':0x0,'c':0x0},_0x3e4aff=[];return _0x203060=function(_0x438a32,_0x172c02){var _0x24c405,_0x46e212,_0x48d599,_0x1c5cf1,_0x375a44,_0x4313e6;if(_0x438a32['test'](_0x5dbd2e)){for(_0x46e212=0x0,_0x48d599=(_0x24c405=_0x5dbd2e['match'](_0x438a32))['length'];_0x46e212<_0x48d599;_0x46e212+=0x1)_0x5f3876[_0x172c02]+=0x1,_0x1c5cf1=_0x24c405[_0x46e212],_0x375a44=_0x5dbd2e['indexOf'](_0x1c5cf1),_0x4313e6=_0x1c5cf1['length'],_0x3e4aff['push']({'selector':_0x396c39['substr'](_0x375a44,_0x4313e6),'type':_0x172c02,'index':_0x375a44,'length':_0x4313e6}),_0x5dbd2e=_0x5dbd2e['replace'](_0x1c5cf1,Array(_0x4313e6+0x1)['join']('\x20'));}},_0x150ebb=function(_0x320585){var _0x331d26,_0x12f8fd,_0x24d58b,_0x2bb657;if(_0x320585['test'](_0x5dbd2e)){for(_0x12f8fd=0x0,_0x24d58b=(_0x331d26=_0x5dbd2e['match'](_0x320585))['length'];_0x12f8fd<_0x24d58b;_0x12f8fd+=0x1)_0x2bb657=_0x331d26[_0x12f8fd],_0x5dbd2e=_0x5dbd2e['replace'](_0x2bb657,Array(_0x2bb657['length']+0x1)['join']('A'));}},_0x150ebb(/\\[0-9A-Fa-f]{6}\s?/g),_0x150ebb(/\\[0-9A-Fa-f]{1,5}\s/g),_0x150ebb(/\\./g),(function(){var _0x5ca009,_0x19620f,_0x1eb68e,_0x5365ea,_0x378fd6=/{[^]*/gm;if(_0x378fd6['test'](_0x5dbd2e)){for(_0x19620f=0x0,_0x1eb68e=(_0x5ca009=_0x5dbd2e['match'](_0x378fd6))['length'];_0x19620f<_0x1eb68e;_0x19620f+=0x1)_0x5365ea=_0x5ca009[_0x19620f],_0x5dbd2e=_0x5dbd2e['replace'](_0x5365ea,Array(_0x5365ea['length']+0x1)['join']('\x20'));}}()),_0x203060(/(\[[^\]]+\])/g,'b'),_0x203060(/(#[^\#\s\+>~\.\[:\)]+)/g,'a'),_0x203060(/(\.[^\s\+>~\.\[:\)]+)/g,'b'),_0x203060(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,'c'),_0x203060(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,'b'),_0x203060(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,'b'),_0x5dbd2e=(_0x5dbd2e=(_0x5dbd2e=(_0x5dbd2e=(_0x5dbd2e=(_0x5dbd2e=_0x5dbd2e['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'),_0x203060(/([^\s\+>~\.\[:]+)/g,'c'),_0x3e4aff['sort'](function(_0x30141b,_0x51f8e8){return _0x30141b['index']-_0x51f8e8['index'];}),{'selector':_0x396c39,'specificity':'0,'+_0x5f3876['a']['toString']()+','+_0x5f3876['b']['toString']()+','+_0x5f3876['c']['toString'](),'specificityArray':[0x0,_0x5f3876['a'],_0x5f3876['b'],_0x5f3876['c']],'parts':_0x3e4aff};},compare$1=function(_0x1693ea,_0x129bc6){var _0x18c2c0,_0x2d5e5e,_0x1cba92;if('string'==typeof _0x1693ea){if(-0x1!==_0x1693ea['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x18c2c0=calculateSingle(_0x1693ea)['specificityArray'];}else{if(!Array['isArray'](_0x1693ea))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x1693ea['filter'](function(_0x486525){return'number'==typeof _0x486525;})['length'])throw'Invalid\x20specificity\x20array';_0x18c2c0=_0x1693ea;}if('string'==typeof _0x129bc6){if(-0x1!==_0x129bc6['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x2d5e5e=calculateSingle(_0x129bc6)['specificityArray'];}else{if(!Array['isArray'](_0x129bc6))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x129bc6['filter'](function(_0x5c94b8){return'number'==typeof _0x5c94b8;})['length'])throw'Invalid\x20specificity\x20array';_0x2d5e5e=_0x129bc6;}for(_0x1cba92=0x0;_0x1cba92<0x4;_0x1cba92+=0x1){if(_0x18c2c0[_0x1cba92]<_0x2d5e5e[_0x1cba92])return-0x1;if(_0x18c2c0[_0x1cba92]>_0x2d5e5e[_0x1cba92])return 0x1;}return 0x0;};function splitByTopLevelComma(_0x109f83){const _0x4dfff3=[];let _0x5e0b3f='',_0x214286=0x0;for(;_0x214286<_0x109f83['length'];){const _0x57449b=_0x109f83[_0x214286];if('('===_0x57449b){const _0x3a65b9=findMatchingParenthesis(_0x109f83,_0x214286+0x1);if(-0x1===_0x3a65b9)return[];_0x5e0b3f+=_0x109f83['slice'](_0x214286,_0x3a65b9+0x1),_0x214286=_0x3a65b9+0x1;}else','!==_0x57449b||_0x5e0b3f['endsWith']('\x5c')?(_0x5e0b3f+=_0x57449b,_0x214286++):(_0x4dfff3['push'](_0x5e0b3f['trim']()),_0x5e0b3f='',_0x214286++);}return _0x5e0b3f['trim']()&&_0x4dfff3['push'](_0x5e0b3f['trim']()),_0x4dfff3['filter'](Boolean);}function findMatchingParenthesis(_0x3579f0,_0x88a06){let _0x4484e6=0x1;for(let _0x28f9e8=_0x88a06;_0x28f9e8<_0x3579f0['length'];_0x28f9e8++){const _0x48d747=_0x3579f0[_0x28f9e8];if('('===_0x48d747)_0x4484e6++;else{if(')'===_0x48d747&&(_0x4484e6--,0x0===_0x4484e6))return _0x28f9e8;}}return-0x1;}function dropImportantStyleSuffix(_0x78402c){return _0x78402c['replace'](/!\s*important/i,'')['trim']();}function collectRootStylesheetsVariables(_0x2a4898){const _0x2d70db=new Map();for(const {stylesMap:_0x44474e,flatSelector:_0x2afc15}of _0x2a4898){if(':root'!==_0x2afc15)continue;const _0x271a00=inlineStylesMapCSSVariables(_0x2d70db['get']['bind'](_0x2d70db),_0x44474e);for(const [_0x5e333a,_0x4422c5]of _0x271a00)_0x2d70db['set'](_0x5e333a,_0x4422c5);}return _0x2d70db;}function inlineStylesMapCSSVariables(_0xd62a97,_0x422389){const _0x2b8957=new Map(),_0x1d3359=_0x30e57d=>_0x2b8957['has'](_0x30e57d)?_0x2b8957['get'](_0x30e57d):_0xd62a97(_0x30e57d);for(const [_0x404c40,_0x1af2e8]of _0x422389['getStylesEntries']())if(_0x1af2e8&&_0x404c40['startsWith']('--')){const _0x3a2352=inlineCSSVariablesInString(_0x1d3359,_0x1af2e8);_0x2b8957['set'](_0x404c40,_0x3a2352),_0x422389['remove'](_0x404c40);}for(const [_0x2e55ae,_0x5a5388]of _0x422389['getStylesEntries']())if(_0x5a5388){const _0x1d5112=inlineCSSVariablesInString(_0x1d3359,_0x5a5388);_0x422389['set'](_0x2e55ae,_0x1d5112);}return _0x2b8957;}function inlineCSSVariablesInString(_0x63625,_0xf85fb8){return resolveCSSVariables(_0xf85fb8,_0x36b729=>{const [_0x33c6f3,_0x3dfa75]=splitByTopLevelComma(_0x36b729),_0x37c298=_0x63625(_0x33c6f3);return void 0x0!==_0x37c298?_0x37c298:_0x3dfa75?inlineCSSVariablesInString(_0x63625,_0x3dfa75):'var('+_0x33c6f3+')';});}function resolveCSSVariables(_0x5338fa,_0x25ac07){let _0xd40ea5='',_0x41b4f3=0x0;for(;_0x41b4f3<_0x5338fa['length'];){const _0x277a03=_0x5338fa['indexOf']('var(',_0x41b4f3);if(-0x1===_0x277a03){_0xd40ea5+=_0x5338fa['slice'](_0x41b4f3);break;}_0xd40ea5+=_0x5338fa['slice'](_0x41b4f3,_0x277a03);const _0xda8c76=_0x277a03+0x4,_0x2d3745=findMatchingParenthesis(_0x5338fa,_0xda8c76);_0xd40ea5+=_0x25ac07(_0x5338fa['substring'](_0xda8c76,_0x2d3745)),_0x41b4f3=_0x2d3745+0x1;}return _0xd40ea5;}async function collectAndProcessStylesheets(_0x3b94e5){const _0x1ba770=[await collectStylesheets(_0x3b94e5['stylesheets']),_0x3b94e5['inlineCss']]['filter'](_0x43cb32=>_0x43cb32&&_0x43cb32['length'])['join']('\x0a'),_0x5c893f=await convertRawStylesheetToParsedCSSRules(_0x3b94e5['stylesProcessor'],_0x1ba770);return{'parsedCssRules':_0x5c893f,'rootCssVariables':collectRootStylesheetsVariables(_0x5c893f)};}async function convertRawStylesheetToParsedCSSRules(_0x2a1f83,_0x54f334){const _0x30a97b=new CSSStyleSheet();return await _0x30a97b['replace'](_0x54f334),dropCSSNesting(Array['from'](_0x30a97b['cssRules'])['filter'](_0x402313=>_0x402313 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x5107c1,contentCssText:_0x2211c1})=>{const _0x21123c=splitByTopLevelComma(_0x5107c1),_0x656b55=new StylesMap(_0x2a1f83)['setTo'](_0x2211c1);return _0x21123c['map'](_0x106279=>{const _0x50ae37=dropWherePseudoClasses(_0x106279),_0x4afc2c=_0x50ae37?calculate(_0x50ae37)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x656b55,'flatSelector':_0x106279,'specificity':_0x4afc2c};});})['sort']((_0x4932c3,_0x4f8232)=>compare$1(_0x4932c3['specificity'],_0x4f8232['specificity']));}function dropWherePseudoClasses(_0x39d00a){const _0x5c1621=':where(';let _0x15afe5=_0x39d00a,_0xd810a9=0x0;for(let _0x401db0=0x0;_0x401db0<0x64;_0x401db0++){const _0x568503=_0x15afe5['indexOf'](_0x5c1621,_0xd810a9);if(-0x1===_0x568503)break;let _0x5c6550=0x0;for(let _0x14c96b=0x0;_0x14c96b<_0x568503;_0x14c96b++)'('===_0x15afe5[_0x14c96b]?_0x5c6550++:')'===_0x15afe5[_0x14c96b]&&_0x5c6550--;if(_0x5c6550>0x0){_0xd810a9=_0x568503+0x7;continue;}let _0x2cf2ab=-0x1;for(let _0x28ec98=_0x568503+0x7,_0xb20f48=0x1;_0x28ec98<_0x15afe5['length'];_0x28ec98++)if('('===_0x15afe5[_0x28ec98]?_0xb20f48++:')'===_0x15afe5[_0x28ec98]&&_0xb20f48--,!_0xb20f48){_0x2cf2ab=_0x28ec98;break;}-0x1!==_0x2cf2ab?(_0x15afe5=_0x15afe5['slice'](0x0,_0x568503)+_0x15afe5['slice'](_0x2cf2ab+0x1),_0xd810a9=_0x568503):_0xd810a9=_0x568503+0x7;}return _0x15afe5['replace'](/\s+/g,'\x20')['trim']();}function dropCSSNesting(_0x13a68e,_0x47238f=''){return _0x13a68e['flatMap'](_0x45625e=>{const {selectorText:_0x4c9dd5,cssText:_0x219325,cssRules:_0x3a6854}=_0x45625e;if(!_0x4c9dd5)return[];const _0x436d3e=_0x4c9dd5['replace'](/&/g,_0x47238f);let _0x5dd82c=_0x219325['replace'](_0x4c9dd5,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x3a6854||!_0x3a6854['length'])return[{'selectorText':_0x436d3e,'contentCssText':_0x5dd82c}];for(const _0xf579e0 of _0x3a6854)_0x5dd82c=_0x5dd82c['replace'](_0xf579e0['cssText'],'')['trim']();return[{'selectorText':_0x436d3e,'contentCssText':_0x5dd82c},...dropCSSNesting(Array['from'](_0x3a6854),_0x436d3e)];});}function getElementInlineStyles(_0x59fd2c){const _0x250f90=_0x59fd2c['element']['getAttribute']('style')||'',_0x581f19=_0x59fd2c['parsedCssRules']['filter'](_0x5863f6=>_0x59fd2c['element']['matches'](_0x5863f6['flatSelector']))['map'](_0x138ef8=>_0x138ef8['stylesMap']),_0x4f2824=concatStylesMaps(_0x59fd2c['stylesProcessor'],[..._0x581f19,_0x250f90]);return{'localCSSVariables':inlineStylesMapCSSVariables(_0x59fd2c['fallbackCSSVariablesLookup'],_0x4f2824),'stylesMap':_0x4f2824};}function concatStylesMaps(_0x3756a8,_0x9752c8){const _0x3c41cc=new StylesMap(_0x3756a8);for(const _0x52ee69 of _0x9752c8){let _0x217fc9=null;if(_0x217fc9='string'==typeof _0x52ee69?new StylesMap(_0x3756a8)['setTo'](_0x52ee69):_0x52ee69,_0x217fc9){for(const [_0x1b59ed,_0x17acd3]of _0x217fc9['getStylesEntries']())_0x3c41cc['set'](_0x1b59ed,_0x17acd3);}}return _0x3c41cc;}class ExportInlineStylesCommand extends _0x210666{['_stylesProcessor'];constructor(_0x5c045a){super(_0x5c045a),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'](_0x2637b3){const _0x33b4f4=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x2f1474}=this['editor']['locale'],{rootName:_0x2eaecb='main',dataControllerDowncastOptions:_0xcbd9f7={},transformations:_0xa9c43b=_0x33b4f4['transformations']||[]}=_0x2637b3||{};this['isBusy']=!0x0,this['refresh']();const _0x390a09=this['_getRootDataHTMLFragment'](_0x2eaecb,_0xcbd9f7),_0x2cb9e6=createElement(_0x390a09['ownerDocument'],'div',{'dir':_0x2f1474,'class':'ck-content'},[_0x390a09]);return this['_collectAndApplyStyles'](_0xa9c43b,_0x2cb9e6)['then'](()=>{const _0x592962=extractElementChildrenAsFragment(_0x2cb9e6),_0x19fc6a=_0x2cb9e6['getAttribute']('style');if(_0x19fc6a)for(const _0x58c193 of _0x592962['children']){const _0xf80faf=_0x58c193['getAttribute']('style'),_0x13cdd9=concatStylesMaps(this['_stylesProcessor'],[_0x19fc6a,_0xf80faf]);_0x58c193['setAttribute']('style',dumpNonSortedStylesMap(_0x13cdd9));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x592962);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x50cb5f,_0x58805a){const {data:_0x4bf440,model:_0x401915}=this['editor'],_0xaf2938=_0x401915['document']['getRoot'](_0x50cb5f),_0x5ebf7b=_0x4bf440['toView'](_0xaf2938,_0x58805a);return _0x4bf440['htmlProcessor']['domConverter']['viewToDom'](_0x5ebf7b);}async['_collectAndApplyStyles'](_0x3019df,_0x3c1818){const {stylesheets:_0xe2421c,inlineCss:_0x51d0ce,stripCssClasses:_0x3d6cd7}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x58c4aa,rootCssVariables:_0x610f9e}=await collectAndProcessStylesheets({'stylesheets':_0xe2421c||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x51d0ce});this['_processElementTree']({'transformations':_0x3019df,'parsedCssRules':_0x58c4aa,'element':_0x3c1818,'stripCssClasses':_0x3d6cd7,'parentCSSVariablesLookup':_0x610f9e['get']['bind'](_0x610f9e)});}['_processElementTree']({element:_0x2662aa,parsedCssRules:_0x5535d1,parentCSSVariablesLookup:_0x234d23,stripCssClasses:_0x421f59,transformations:_0x16d060}){const {stylesMap:_0x61485e,localCSSVariables:_0xfa1025}=getElementInlineStyles({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x234d23,'parsedCssRules':_0x5535d1,'element':_0x2662aa});for(const _0x1f8c1c of _0x16d060){const _0x186ec2=_0x1f8c1c(_0x2662aa,_0x61485e);_0x186ec2&&_0x186ec2 instanceof HTMLElement&&(_0x2662aa=_0x186ec2);}_0x61485e['size']?_0x2662aa['setAttribute']('style',dumpNonSortedStylesMap(_0x61485e)):_0x2662aa['removeAttribute']('style');const _0x3eba4b=_0x1484d3=>_0xfa1025['has'](_0x1484d3)?_0xfa1025['get'](_0x1484d3):_0x234d23(_0x1484d3);for(const _0x2038e0 of _0x2662aa['children'])_0x2038e0 instanceof HTMLElement&&this['_processElementTree']({'element':_0x2038e0,'parentCSSVariablesLookup':_0x3eba4b,'parsedCssRules':_0x5535d1,'stripCssClasses':_0x421f59,'transformations':_0x16d060});_0x421f59&&_0x2662aa['removeAttribute']('class');}}function dumpNonSortedStylesMap(_0x49f5cc){return _0x49f5cc['getStylesEntries']()['map'](_0x4d3043=>_0x4d3043['join'](':'))['join'](';')+';';}function extractElementChildrenAsFragment(_0x1a1599){const _0x14733f=_0x1a1599['ownerDocument']['createDocumentFragment']();for(;_0x1a1599['firstChild'];)_0x14733f['appendChild'](_0x1a1599['firstChild']);return _0x14733f;}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(_0x888b76){const _0x4a0e3b=_0x48175a([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]),_0x364262=window[_0x48175a([0x44,0x61,0x74,0x65])][_0x48175a([0x6e,0x6f,0x77])](),_0x268983=_0x888b76[_0x48175a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x21a27b=new window[(_0x48175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f3c29=>{_0x268983[_0x48175a([0x6f,0x6e,0x63,0x65])](_0x48175a([0x72,0x65,0x61,0x64,0x79]),_0x1f3c29);}),_0x451835={[_0x48175a([0x6b,0x74,0x79])]:_0x48175a([0x45,0x43]),[_0x48175a([0x75,0x73,0x65])]:_0x48175a([0x73,0x69,0x67]),[_0x48175a([0x63,0x72,0x76])]:_0x48175a([0x50,0x2d,0x32,0x35,0x36]),[_0x48175a([0x78])]:_0x48175a([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]),[_0x48175a([0x79])]:_0x48175a([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]),[_0x48175a([0x61,0x6c,0x67])]:_0x48175a([0x45,0x53,0x32,0x35,0x36])},_0x26016a=_0x268983[_0x48175a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48175a([0x67,0x65,0x74])](_0x48175a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x32d0fd=await(async function(){let _0x45d227,_0x973d9b=null,_0x1162a9=null;try{if(_0x26016a==_0x48175a([0x47,0x50,0x4c]))return _0x48175a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45d227=(function(){const _0xaed2e1=_0x26016a[_0x48175a([0x73,0x70,0x6c,0x69,0x74])](_0x48175a([0x2e]));if(0x3!=_0xaed2e1[_0x48175a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x21960c=_0xaed2e1[0x1];return _0x370c7d(_0x21960c);function _0x370c7d(_0x141e47){const _0x504080=_0x252213(_0x141e47);return _0x504080&&_0x3d9528()?_0x504080:null;function _0x3d9528(){const _0x334551=_0x504080[_0x48175a([0x6a,0x74,0x69])],_0x17e658=window[_0x48175a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x334551[_0x48175a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x334551[_0x48175a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36f505={..._0x504080,[_0x48175a([0x6a,0x74,0x69])]:_0x334551[_0x48175a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x334551[_0x48175a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36f505[_0x48175a([0x76,0x63])],_0x442ed1(_0x36f505)==_0x17e658;}}}()),!_0x45d227)return _0x48175a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x45d227[_0x48175a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1162a9=function(_0x2819eb,_0x532fff){return new window[(_0x48175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x580055=>{if(_0x9dfea6())return _0x580055(_0x48175a([0x56,0x61,0x6c,0x69,0x64]));_0x5e6038(),_0x268983[_0x48175a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48175a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3635e9=!0x1;const _0x62e324=uid();function _0x418695(_0x543677){return!!_0x543677&&(typeof _0x543677===_0x48175a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x543677===_0x48175a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x543677[_0x48175a([0x74,0x68,0x65,0x6e])]===_0x48175a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x543677[_0x48175a([0x63,0x61,0x74,0x63,0x68])]===_0x48175a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c5c24(_0x495669){_0x2aeb6a(_0x495669)[_0x48175a([0x74,0x68,0x65,0x6e])](_0x2b999e=>{if(!_0x2b999e||_0x2b999e[_0x48175a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48175a([0x6f,0x6b]))return _0x48175a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x46972b(_0x442ed1(_0x62e324+_0x532fff))!=_0x2b999e[_0x48175a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48175a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48175a([0x56,0x61,0x6c,0x69,0x64]);})[_0x48175a([0x74,0x68,0x65,0x6e])](_0x1e144d=>(_0x2ebab4(),_0x1e144d),()=>{const _0x89082a=_0x1c6f4f();return null==_0x89082a?(_0x2ebab4(),_0x48175a([0x56,0x61,0x6c,0x69,0x64])):_0x48175a(_0x364262-_0x89082a>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48175a([0x74,0x68,0x65,0x6e])](_0x580055)[_0x48175a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x580055(_0x48175a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51a282=0x36ee80;function _0x2ebab4(){const _0x13db44=_0x48175a([0x6c,0x6c,0x63,0x74,0x2d])+_0x46972b(_0x442ed1(_0x2819eb)),_0x66ca5b=_0x5a957e(_0x46972b(window[_0x48175a([0x4d,0x61,0x74,0x68])][_0x48175a([0x63,0x65,0x69,0x6c])](_0x364262/_0x51a282)));window[_0x48175a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48175a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13db44,_0x66ca5b);}function _0x1c6f4f(){const _0x3f83cc=_0x48175a([0x6c,0x6c,0x63,0x74,0x2d])+_0x46972b(_0x442ed1(_0x2819eb)),_0x125b85=window[_0x48175a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48175a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f83cc);return _0x125b85?window[_0x48175a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a957e(_0x125b85),0x10)*_0x51a282:null;}function _0x2aeb6a(_0x27a28b){return new window[(_0x48175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3401e,_0x599287)=>{_0x27a28b[_0x48175a([0x74,0x68,0x65,0x6e])](_0x3401e,_0x599287),window[_0x48175a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x599287,0x1d4c0);});}}_0x268983[_0x48175a([0x6f,0x6e])](_0x48175a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14af4a,_0x4a926e)=>{if(_0x4a926e[0x0]!=_0x2819eb)return _0x580055(_0x48175a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a926e[0x1]={..._0x4a926e[0x1],[_0x48175a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x62e324};},{[_0x48175a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48175a([0x68,0x69,0x67,0x68])}),_0x268983[_0x48175a([0x6f,0x6e])](_0x48175a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f7b1b=>{_0x418695(_0x4f7b1b[_0x48175a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3635e9=!0x0,_0x4c5c24(_0x4f7b1b[_0x48175a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48175a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48175a([0x6c,0x6f,0x77])}),_0x21a27b[_0x48175a([0x74,0x68,0x65,0x6e])](()=>{_0x3635e9||_0x580055(_0x48175a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9dfea6(){return _0x268983[_0x48175a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48175a([0x76,0x69,0x65,0x77])][_0x48175a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48175a([0x61,0x75,0x74,0x6f]);}function _0x5e6038(){_0x268983[_0x48175a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48175a([0x76,0x69,0x65,0x77])][_0x48175a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48175a([0x61,0x75,0x74,0x6f]);}}(_0x45d227[_0x48175a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45d227[_0x48175a([0x6a,0x74,0x69])]));const _0x3b0ab2=await(async function(){let _0x19c068=!0x0;try{const _0x16e0a0=_0x26016a[_0x48175a([0x73,0x70,0x6c,0x69,0x74])](_0x48175a([0x2e])),[_0x299864,_0x52f1a5,_0x19bb71]=_0x16e0a0;return _0x166eab(_0x299864),await _0x505188(_0x299864,_0x52f1a5,_0x19bb71),_0x19c068;}catch{return!0x1;}function _0x166eab(_0x3599b9){const _0x50af62=_0x252213(_0x3599b9);_0x50af62&&_0x50af62[_0x48175a([0x61,0x6c,0x67])]==_0x48175a([0x45,0x53,0x32,0x35,0x36])||(_0x19c068=!0x1);}async function _0x505188(_0x25fb06,_0x6685f1,_0x4630e0){const _0x28c0f1=window[_0x48175a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48175a([0x66,0x72,0x6f,0x6d])](_0x340ba6(_0x4630e0),_0x32ddf2=>_0x32ddf2[_0x48175a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x565b07=new window[(_0x48175a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48175a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25fb06+_0x48175a([0x2e])+_0x6685f1),_0x2d14bb=window[_0x48175a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48175a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d14bb)return;const _0x2a8781=await _0x2d14bb[_0x48175a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48175a([0x6a,0x77,0x6b]),_0x451835,{[_0x48175a([0x6e,0x61,0x6d,0x65])]:_0x48175a([0x45,0x43,0x44,0x53,0x41]),[_0x48175a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48175a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48175a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d14bb[_0x48175a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48175a([0x6e,0x61,0x6d,0x65])]:_0x48175a([0x45,0x43,0x44,0x53,0x41]),[_0x48175a([0x68,0x61,0x73,0x68])]:{[_0x48175a([0x6e,0x61,0x6d,0x65])]:_0x48175a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a8781,_0x28c0f1,_0x565b07)||(_0x19c068=!0x1);}}());return _0x3b0ab2?(function(){const _0x55a726=_0x45d227[_0x48175a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x55a726)return!0x1;if(_0x55a726[_0x48175a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48175a([0x2a])))return!0x0;if(_0x55a726[_0x48175a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48175a([0x45,0x49,0x53])))return!0x0;return!0x1;}())?(function(){const _0x57b9a7=[_0x48175a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48175a([0x74,0x72,0x69,0x61,0x6c])][_0x48175a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d227[_0x48175a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x364262/0x3e8:0x69b0b080;return _0x45d227[_0x48175a([0x65,0x78,0x70])]<_0x57b9a7;}())?_0x48175a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3ba61e=_0x45d227[_0x48175a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ba61e||0x0==_0x3ba61e[_0x48175a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20ecac}=new URL(window[_0x48175a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ba61e[_0x48175a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20ecac))return!0x0;const _0x57fc88=_0x20ecac[_0x48175a([0x73,0x70,0x6c,0x69,0x74])](_0x48175a([0x2e]));return _0x3ba61e[_0x48175a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c3a8f=>_0x1c3a8f[_0x48175a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48175a([0x2a])))[_0x48175a([0x6d,0x61,0x70])](_0xa90d4e=>_0xa90d4e[_0x48175a([0x73,0x70,0x6c,0x69,0x74])](_0x48175a([0x2e])))[_0x48175a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x101537=>_0x101537[_0x48175a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x57fc88[_0x48175a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48175a([0x6d,0x61,0x70])](_0x13df75=>Array(_0x57fc88[_0x48175a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x13df75[_0x48175a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48175a([0x66,0x69,0x6c,0x6c])](_0x13df75[0x0]===_0x48175a([0x2a])?_0x48175a([0x2a]):'')[_0x48175a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x13df75))[_0x48175a([0x73,0x6f,0x6d,0x65])](_0x51233f=>_0x57fc88[_0x48175a([0x65,0x76,0x65,0x72,0x79])]((_0x59b873,_0x17df91)=>_0x51233f[_0x17df91]===_0x59b873||_0x51233f[_0x17df91]===_0x48175a([0x2a])));}())?(_0x45d227[_0x48175a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48175a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x973d9b=function(_0x196e4c){const _0xab802a=new window[(_0x48175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cc6b5=>setTimeout(_0x4cc6b5,0x93ecc)),_0x117b49=_0x21a27b[_0x48175a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f50f8=>{let _0x447c7d=0x0;_0x268983[_0x48175a([0x6d,0x6f,0x64,0x65,0x6c])][_0x48175a([0x6f,0x6e])](_0x48175a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36a08a,_0x27ffc)=>{_0x27ffc[0x0][_0x48175a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x447c7d++,0x5e8==_0x447c7d&&(_0x5f50f8(),_0x36a08a[_0x48175a([0x6f,0x66,0x66])]());});})),_0x169f2f=[_0xab802a,_0x117b49];return window[_0x48175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48175a([0x72,0x61,0x63,0x65])](_0x169f2f)[_0x48175a([0x74,0x68,0x65,0x6e])](()=>_0x196e4c);}(_0x48175a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x973d9b&&_0x1162a9)return new window[(_0x48175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xca7546,_0x526cd8)=>{_0x973d9b[_0x48175a([0x74,0x68,0x65,0x6e])](_0xca7546,_0x526cd8),_0x1162a9[_0x48175a([0x74,0x68,0x65,0x6e])](_0x3cf66d=>{_0x3cf66d!=_0x48175a([0x56,0x61,0x6c,0x69,0x64])&&_0xca7546(_0x3cf66d);},_0x526cd8);});return _0x973d9b||_0x1162a9||_0x48175a([0x56,0x61,0x6c,0x69,0x64]);}())):_0x48175a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48175a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48175a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48175a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x252213(_0x4538cb){return _0x4538cb[_0x48175a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48175a([0x65,0x79]))?JSON[_0x48175a([0x70,0x61,0x72,0x73,0x65])](_0x340ba6(_0x4538cb)):null;}function _0x340ba6(_0x469438){return window[_0x48175a([0x61,0x74,0x6f,0x62])](_0x469438[_0x48175a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48175a([0x2b]))[_0x48175a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48175a([0x2f])));}function _0x442ed1(_0x2d15ab){let _0x52f656=0x1505;function _0x53adbb(_0x14e35a){for(let _0x4004ef=0x0;_0x4004ef<_0x14e35a[_0x48175a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4004ef++){const _0x2bc9ff=_0x14e35a[_0x48175a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4004ef);_0x52f656=(_0x52f656<<0x5)+_0x52f656+_0x2bc9ff,_0x52f656&=_0x52f656;}}return function _0x5d5784(_0x4fffa4){Array[_0x48175a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4fffa4)?_0x4fffa4[_0x48175a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d5784):_0x4fffa4&&typeof _0x4fffa4==_0x48175a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48175a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4fffa4)[_0x48175a([0x73,0x6f,0x72,0x74])]()[_0x48175a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c24ea,_0x2a8417])=>{_0x53adbb(_0x4c24ea),_0x5d5784(_0x2a8417);}):_0x53adbb(window[_0x48175a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4fffa4));}(_0x2d15ab),_0x52f656>>>0x0;}function _0x46972b(_0x4432b1){return _0x4432b1[_0x48175a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48175a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48175a([0x30]));}function _0x5a957e(_0x279a6a){return _0x279a6a[_0x48175a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48175a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48175a([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a8289(){}function _0x48175a(_0x193fe5){return _0x193fe5['map'](_0x2cd0f1=>String['fromCharCode'](_0x2cd0f1))['join']('');}!function(_0x27e908){const _0x3a63a2=(function(){const _0x522bf8=window[_0x48175a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48175a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48175a([0x6e,0x6f,0x77])]())[_0x48175a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48175a([0x2e]),'');let _0x10b3cd=_0x48175a([0x44]);for(let _0x20e598=0x0;_0x20e598<_0x522bf8[_0x48175a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20e598+=0x2){let _0x5b0460=window[_0x48175a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x522bf8[_0x48175a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20e598,_0x20e598+0x2));_0x5b0460>=_0x4a0e3b[_0x48175a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b0460-=_0x4a0e3b[_0x48175a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10b3cd+=_0x4a0e3b[_0x5b0460];}return _0x10b3cd;}());_0x268983[_0x3a63a2]=_0x48175a([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])+_0x27e908,_0x27e908!=_0x48175a([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x21a27b;const _0x500d12=_0x268983['commands'][_0x48175a([0x67,0x65,0x74])](_0x48175a([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x500d12&&_0x500d12[_0x48175a([0x6f,0x6e])](_0x48175a([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0xdff0f0=>{_0xdff0f0['stop']();},{'priority':_0x48175a([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),(_0x268983[_0x48175a([0x6d,0x6f,0x64,0x65,0x6c])][_0x48175a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a8289,_0x268983[_0x48175a([0x6d,0x6f,0x64,0x65,0x6c])][_0x48175a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a8289,_0x268983[_0x48175a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48175a([0x6d,0x6f,0x64,0x65,0x6c])));}());}(_0x32d0fd);}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 _0x12ec15=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1222cd;for(const _0x2af501 in _0x12ec15){const _0x543dcf=_0x2af501,_0x3f5510=_0x12ec15[_0x543dcf];if('exportInlineStylesLicenseKeyValid'==_0x3f5510||'exportInlineStylesLicenseKeyInvalid'==_0x3f5510||'exportInlineStylesLicenseKeyExpired'==_0x3f5510||'exportInlineStylesLicenseKeyDomainLimit'==_0x3f5510||'exportInlineStylesLicenseKeyNotAllowed'==_0x3f5510||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x3f5510||'exportInlineStylesLicenseKeyUsageLimit'==_0x3f5510){delete _0x12ec15[_0x543dcf],_0x1222cd=_0x3f5510,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x1222cd&&_0x12ec15['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x1222cd&&_0x12ec15['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x1222cd&&_0x12ec15['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x1222cd&&_0x12ec15['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x1222cd&&_0x12ec15['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x1222cd&&_0x12ec15['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getEmailInlineStylesTransformations(_0x5c7e85={}){const _0x472584=[transformEmailFloatToAlign,transformEmailMarginToAlign,transformEmailImageWidthAttributes];return _0x5c7e85['useFigureToTableFallback']&&_0x472584['push'](transformEmailFigureToTable,transformEmailFigcaptionToDiv),_0x472584;}function transformEmailFloatToAlign(_0x2b8b57,_0xb6d9be){if(!['TABLE','IMG']['includes'](_0x2b8b57['tagName']))return;const _0x2b69cf=_0xb6d9be['getAsString']('float');if(_0x2b69cf){const _0x128a67=dropImportantStyleSuffix(_0x2b69cf);'left'!==_0x128a67&&'right'!==_0x128a67||_0x2b8b57['setAttribute']('align',_0x128a67);}}function transformEmailMarginToAlign(_0x54049b,_0x2821a6){if('TABLE'!==_0x54049b['tagName']||_0x2821a6['has']('float'))return;const _0x140627=getAlignFromMargins(_0x2821a6),_0x2a3d43=_0x2821a6['getAsString']('width');(_0x140627||_0x2a3d43)&&(applyWrapperTable(_0x54049b,_0x54049b,{'align':_0x140627,'width':_0x2a3d43}),_0x2821a6['remove']('width'),_0x2821a6['remove']('margin-left'),_0x2821a6['remove']('margin-right'),_0x2821a6['remove']('min-width'),_0x2821a6['remove']('max-width'));}function transformEmailImageWidthAttributes(_0x474811,_0x2c69c1){if('IMG'!==_0x474811['tagName'])return;const _0x888e6a=_0x2c69c1['getAsString']('width');_0x888e6a&&(_0x474811['setAttribute']('width',_0x888e6a),_0x474811['setAttribute']('height','auto'));}function transformEmailFigureToTable(_0x32d842,_0x12d737){if('FIGURE'!==_0x32d842['tagName'])return;const _0x2ac03e=getAlignFromMargins(_0x12d737),_0x30c9a9=_0x12d737['getAsString']('width');if(!_0x2ac03e&&!_0x30c9a9)return;const _0x236e0b=createReplacementElement(_0x32d842,'div');return applyWrapperTable(_0x32d842,_0x236e0b,{'align':_0x2ac03e,'width':_0x30c9a9}),_0x12d737['set']('width','100%'),_0x12d737['remove']('margin-left'),_0x12d737['remove']('margin-right'),_0x12d737['remove']('min-width'),_0x12d737['remove']('max-width'),_0x236e0b;}function transformEmailFigcaptionToDiv(_0x59622e){if('FIGCAPTION'!==_0x59622e['tagName'])return;const _0x355d1f=createReplacementElement(_0x59622e,'div');return _0x59622e['replaceWith'](_0x355d1f),_0x355d1f;}function applyWrapperTable(_0x8e7106,_0x3fd52e,_0x145572){const _0x1b1bd8=_0x8e7106['ownerDocument'],{table:_0x1cfa2e,cell:_0x211bdd}=createWrapperTable(_0x1b1bd8,'100%');_0x145572['align']&&_0x211bdd['setAttribute']('align',dropImportantStyleSuffix(_0x145572['align']));let _0x7ff95e=_0x211bdd;if(_0x145572['width']){const {table:_0x80883e,cell:_0x52914b}=createWrapperTable(_0x1b1bd8,dropImportantStyleSuffix(_0x145572['width']));_0x211bdd['appendChild'](_0x80883e),_0x7ff95e=_0x52914b;}_0x8e7106['replaceWith'](_0x1cfa2e),_0x8e7106['removeAttribute']('align'),_0x8e7106['removeAttribute']('width'),_0x7ff95e['appendChild'](_0x3fd52e);}function createWrapperTable(_0x55cb12,_0x87dd6){const _0x339b30=_0x55cb12['createElement']('table');_0x339b30['setAttribute']('width',_0x87dd6),_0x339b30['setAttribute']('cellpadding','0'),_0x339b30['setAttribute']('cellspacing','0'),_0x339b30['setAttribute']('border','0'),_0x339b30['setAttribute']('role','presentation');const _0x1938d6=_0x55cb12['createElement']('tbody'),_0x4605d9=_0x55cb12['createElement']('tr'),_0x223d1e=_0x55cb12['createElement']('td');return _0x339b30['appendChild'](_0x1938d6),_0x1938d6['appendChild'](_0x4605d9),_0x4605d9['appendChild'](_0x223d1e),{'table':_0x339b30,'cell':_0x223d1e};}function getAlignFromMargins(_0x187049){const _0x5b9036=_0x187049['getAsString']('margin-left'),_0x374487=_0x187049['getAsString']('margin-right'),_0x34d654=_0x5b9036&&dropImportantStyleSuffix(_0x5b9036),_0x2616dc=_0x374487&&dropImportantStyleSuffix(_0x374487);return'auto'===_0x34d654&&'auto'===_0x2616dc?'center':'auto'===_0x34d654?'right':'auto'===_0x2616dc?'left':void 0x0;}function createReplacementElement(_0x5d0fce,_0x4e2f3d){const _0x1373a8=_0x5d0fce['ownerDocument']['createElement'](_0x4e2f3d);for(const _0x4f7ada of Array['from'](_0x5d0fce['attributes']))_0x1373a8['setAttribute'](_0x4f7ada['name'],_0x4f7ada['value']);for(;_0x5d0fce['firstChild'];)_0x1373a8['appendChild'](_0x5d0fce['firstChild']);return _0x1373a8;}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:_0x166e01,plugins:_0x106b7d}=this['editor'],_0x4964e4=_0x166e01['get']('exportInlineStyles');if(_0x4964e4?.['transformations']?.['includes'](transformEmailFigureToTable))return;_0x106b7d['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 _0x43d7b7=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('ExportInlineStyles')||_0x43d7b7['_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 _0x26b730=this['editor']['plugins']['get'](EmailConfigurationLogger),_0x52c249=this['editor']['config']['get']('list');_0x52c249&&_0x52c249['properties']&&_0x52c249['properties']['reversed']&&_0x26b730['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x52c249&&_0x52c249['enableListItemMarkerFormatting']&&_0x26b730['_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:_0x5bd190}=this['editor'],_0x3a187d=_0x5bd190['get'](EmailConfigurationLogger);_0x5bd190['has']('Table')&&(_0x5bd190['has']('PlainTableOutput')||_0x3a187d['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x5bd190['has']('TableLayout')||_0x3a187d['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x5c7aef,plugins:_0x3a7b23}=this['editor'];_0x5c7aef['get']('table')&&_0x3a7b23['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x62012c){const _0x3cf718=this['editor']['plugins']['get'](EmailConfigurationLogger);_0x3cf718['_validateConfigColorValue']('table.'+_0x62012c+'.borderColors'),_0x3cf718['_validateConfigColorValue']('table.'+_0x62012c+'.backgroundColors'),_0x3cf718['_validateConfigColorValue']('table.'+_0x62012c+'.defaultProperties.borderColor'),_0x3cf718['_validateConfigColorValue']('table.'+_0x62012c+'.defaultProperties'),_0x3cf718['_validateConfigColorFormat']('table.'+_0x62012c+'.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 _0x7be0f8=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('EmptyBlock')||_0x7be0f8['_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:_0x78e7cb}=this['editor'];_0x78e7cb['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x78e7cb['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x50759b){const _0x346a48=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['config']['get'](_0x50759b)&&(_0x346a48['_validateConfigColorValue'](_0x50759b+'.colors'),_0x346a48['_validateConfigColorValue'](_0x50759b+'.documentColors'),_0x346a48['_validateConfigColorFormat'](_0x50759b+'.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:_0x1e1d28}=this['editor'],_0x1af82b=_0x1e1d28['get'](EmailConfigurationLogger);_0x1e1d28['has']('SourceEditing')||_0x1e1d28['has']('SourceEditingEnhanced')||_0x1af82b['_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:_0x158a4a}=this['editor'];if(!_0x158a4a['has']('DataFilter'))return;const _0x9d6eae=_0x158a4a['get']('DataFilter'),_0x511c0b=_0x158a4a['get'](EmailConfigurationLogger);for(const _0x12cb17 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x9d6eae['once']('register:'+_0x12cb17,(_0x329978,_0x495d7a)=>{_0x511c0b['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x495d7a['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 _0x4decbf=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('MergeFields')||_0x4decbf['_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 _0x2044f6=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('Template')||_0x2044f6['_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:_0x12718a,plugins:_0x336787}=this['editor'],_0x1b94ff=_0x336787['get'](EmailConfigurationLogger),_0x380421=_0x12718a['get']('exportInlineStyles');_0x380421?.['transformations']?.['includes'](transformEmailFigureToTable)||_0x1b94ff['_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 _0x42e482=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42ca19;for(const _0x114623 in _0x42e482){const _0xf801a9=_0x114623,_0x4f3aaa=_0x42e482[_0xf801a9];if('emailConfigurationHelperLicenseKeyValid'==_0x4f3aaa||'emailConfigurationHelperLicenseKeyInvalid'==_0x4f3aaa||'emailConfigurationHelperLicenseKeyExpired'==_0x4f3aaa||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x4f3aaa||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x4f3aaa||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x4f3aaa||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x4f3aaa){delete _0x42e482[_0xf801a9],_0x42ca19=_0x4f3aaa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x42ca19&&_0x42e482['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x42ca19&&_0x42e482['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x42ca19&&_0x42e482['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x42ca19&&_0x42e482['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x42ca19&&_0x42e482['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x42ca19&&_0x42e482['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getTranslation$d(_0x4f3ca0,_0x4f0d43){const t=_0x4f3ca0['t'];switch(_0x4f0d43){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 _0x4f0d43;}}const PRODUCTION_URL$1='https://pdf-converter.cke-cs.com/v1/convert/';class ExportPdfCommand extends _0x210666{constructor(_0x15f3fc){super(_0x15f3fc),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x24617f={}){const _0x1013cd=this['editor'],_0x190680=_0x24617f['converterUrl']||PRODUCTION_URL$1,_0x1975af=_0x24617f['dataCallback']||(_0x3c3b92=>_0x3c3b92['data']['get']()),_0x32c9da=_0x1013cd['plugins']['get']('ExportPdf'),_0x42f9fa=_0x24617f['token']||_0x32c9da['_token'];return this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x24617f['stylesheets']||['EDITOR_STYLES'])['then'](async _0xc77ff3=>{if(_0x1013cd['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x1013cd['locale'],'PDF\x20export\x20started')),_0x1013cd['plugins']['has']('MergeFields')){_0x24617f['converterOptions']||(_0x24617f['converterOptions']={});const _0x16a837=_0x1013cd['plugins']['get']('MergeFieldsEditing'),_0x4d6225=_0x16a837['previewMode'],{prefix:_0x319060,suffix:_0x389a5b}=_0x1013cd['config']['get']('mergeFields'),_0x42f0ab='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x5f311a={'prefix':_0x319060,'suffix':_0x389a5b,'data':{}};if('$labels'===_0x4d6225){for(const _0x355913 of _0x16a837['getMergeFieldsIds']())'image'===_0x16a837['getMergeFieldType'](_0x355913)?_0x5f311a['data'][_0x355913]=_0x42f0ab:_0x5f311a['data'][_0x355913]=_0x16a837['wrapInAffixes'](_0x16a837['getLabel'](_0x355913)||_0x355913);}else{const _0x42618a='$defaultValues'===_0x4d6225?_0x16a837['getDefaultValues']():_0x16a837['getDataSetValues'](_0x4d6225,!0x0);for(const _0x198258 of Object['entries'](_0x42618a)){const [_0x2280c2,_0x3a829c]=_0x198258;'image'===_0x16a837['getMergeFieldType'](_0x2280c2)?_0x5f311a['data'][_0x2280c2]=null!==_0x3a829c?_0x3a829c:_0x42f0ab:_0x5f311a['data'][_0x2280c2]=null!==_0x3a829c?_0x3a829c:_0x16a837['getLabel'](_0x2280c2)||_0x2280c2;}}_0x24617f['converterOptions']['merge_fields']=_0x5f311a;}const _0x3f451f=0x2===_0x24617f['version']?prepareContentInlineStyleV2(_0x24617f['converterOptions']):prepareContentInlineStyle(_0x24617f['converterOptions']),_0x46c4e1={'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'+_0x1013cd['locale']['contentLanguageDirection']+'\x22\x20style=\x22'+_0x3f451f+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x1975af(_0x1013cd)+'\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':_0xc77ff3,[0x2===_0x24617f['version']?'config':'options']:_0x24617f['converterOptions']},_0x585b6c={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x42f9fa?{'Authorization':_0x42f9fa['value']}:null,'x-cs-app-id':_0x24617f['appID']||'cke5'},'body':JSON['stringify'](_0x46c4e1)};return window['fetch'](_0x190680,_0x585b6c)['then'](_0x59782c=>{if(0xc8!==_0x59782c['status'])throw _0x59782c;return _0x59782c['blob']();})['then'](_0x2a49ff=>{_0x1013cd['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x1013cd['locale'],'PDF\x20export\x20successful'));const _0x457f9f='function'==typeof _0x24617f['fileName']?_0x24617f['fileName']():_0x24617f['fileName'];this['_downloadFile'](_0x2a49ff,_0x457f9f||'document.pdf');});})['catch'](_0x556f1a=>{const _0x381a0d=_0x1013cd['plugins']['get']('Notification');throw _0x1013cd['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x1013cd['locale'],'PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x381a0d['showWarning'](getTranslation$d(_0x1013cd['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x556f1a;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x217ca3,_0x1c54b9){const _0x1c2b20=document['createElement']('a');_0x1c2b20['href']=window['URL']['createObjectURL'](_0x217ca3),_0x1c2b20['download']=_0x1c54b9,_0x1c2b20['click'](),_0x1c2b20['remove']();}}function prepareContentInlineStyle(_0x47dc48){return generatePageWidthStyle({'pageWidth':pageFormatToWidth(_0x47dc48?.['format']||'A4'),'marginLeft':_0x47dc48?.['margin_left'],'marginRight':_0x47dc48?.['margin_right']});}function prepareContentInlineStyleV2(_0x505b79){const _0x4144fc=_0x505b79?.['document']?.['margins'];return generatePageWidthStyle({'pageWidth':pageFormatToWidth(_0x505b79?.['document']?.['size']||'A4'),'marginLeft':_0x4144fc?.['left'],'marginRight':_0x4144fc?.['right']});}function generatePageWidthStyle({pageWidth:_0x3e7e67,marginLeft:_0xa761b4,marginRight:_0x22b016}){return'width:calc('+[_0x3e7e67,_0xa761b4,_0x22b016]['filter'](Boolean)['join']('\x20-\x20')+');';}function pageFormatToWidth(_0x2f4a63){if('object'==typeof _0x2f4a63&&'width'in _0x2f4a63)return _0x2f4a63['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']}[_0x2f4a63['toLowerCase']()][0x0];}class ExportPdfUI extends Plugin{static get['pluginName'](){return'ExportPdfUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4cd1eb=this['editor'];_0x4cd1eb['ui']['componentFactory']['add']('exportPdf',()=>{const _0x34effc=this['_createButton'](ButtonView),_0x45a7d1=_0x4cd1eb['commands']['get']('exportPdf');return _0x34effc['set']({'tooltip':!0x0}),_0x34effc['bind']('isOn')['to'](_0x45a7d1,'isBusy'),_0x34effc;}),_0x4cd1eb['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x4dee50){const _0x38d825=this['editor'],_0xee1a68=_0x38d825['config']['get']('exportPdf')||{},_0x2da037=_0x38d825['commands']['get']('exportPdf'),_0x3d7dd7=new _0x4dee50(_0x38d825['locale']),_0xa783b1=new SpinnerView();return _0x3d7dd7['children']['add'](_0xa783b1),_0xa783b1['bind']('isVisible')['to'](_0x2da037,'isBusy'),_0x3d7dd7['iconView']['bind']('isVisible')['to'](_0x2da037,'isBusy',_0x3b0290=>!_0x3b0290),_0x3d7dd7['set']({'icon':IconExportPdf}),_0x3d7dd7['bind']('isEnabled')['to'](_0x2da037,'isEnabled'),_0x3d7dd7['bind']('label')['to'](_0x2da037,'isBusy',_0x346523=>getTranslation$d(_0x38d825['locale'],_0x346523?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x3d7dd7,'execute',()=>{_0x38d825['execute']('exportPdf',_0xee1a68),_0x38d825['editing']['view']['focus']();}),_0x3d7dd7;}}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 _0x212cf1=this['editor'],_0x4130c8=_0x212cf1['config']['get']('exportPdf')||{};_0x212cf1['commands']['add']('exportPdf',new ExportPdfCommand(_0x212cf1));const _0x587406=_0x212cf1['plugins']['get']('CloudServices');!0x1===_0x4130c8['tokenUrl']?this['_token']=null:_0x4130c8['tokenUrl']?_0x587406['registerTokenUrl'](_0x4130c8['tokenUrl'])['then'](_0xbd9fe2=>{this['_token']=_0xbd9fe2;}):this['_token']=_0x587406['token'];}}function getConverterOptions(_0x3271df,_0x17d235={}){const _0x3fa486=_0x3271df['plugins']['has']('Users'),_0x41413a=_0x3271df['plugins']['has']('CommentsRepository'),_0x364762=_0x3271df['plugins']['has']('TrackChanges'),_0x17d731=_0x17d235;if(_0x3fa486&&_0x41413a){const _0x37fc46=getComments(_0x3271df['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object['keys'](_0x37fc46)['length']&&(_0x17d731['comments']=_0x37fc46);}if(_0x3fa486&&_0x364762){const _0x49b9f5=_0x3271df['plugins']['get']('TrackChanges'),_0x2915de=_0x3271df['plugins']['get']('Users'),_0x4027b4=getSuggestions(_0x49b9f5['getSuggestions']({'toJSON':!0x0}),_0x2915de['users']);Object['keys'](_0x4027b4)['length']&&(_0x17d731['suggestions']=_0x4027b4);}return(_0x17d731['suggestions']||_0x17d731['comments'])&&(_0x17d731['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']),_0x17d731;}function getComments(_0x1ab00d){const _0x243bc0={};if(!_0x1ab00d['length'])return _0x243bc0;for(const _0x4c22a4 of _0x1ab00d)_0x4c22a4['comments']['map'](_0x101b4b=>{void 0x0===_0x243bc0[_0x4c22a4['id']]&&(_0x243bc0[_0x4c22a4['id']]=[]),_0x243bc0[_0x4c22a4['id']]['push']({'author':_0x101b4b['author']['name'],'content':_0x101b4b['content'],'created':_0x101b4b['createdAt'],'is_resolved':_0x4c22a4['isResolved']});});return _0x243bc0;}function getSuggestions(_0x39c60b,_0x5d840d){const _0x35b6a9={};if(!_0x39c60b['length']||!_0x5d840d['length'])return _0x35b6a9;for(const {id:_0x4d7960,createdAt:_0x4c51f5,authorId:_0x4fccd2,attributes:_0x38950e}of _0x39c60b){const _0x4299dc=_0x38950e&&_0x38950e['@external'],_0x153f06=_0x4299dc?_0x4299dc['authorName']:_0x5d840d['get'](_0x4fccd2)['name'];_0x35b6a9[_0x4d7960]={'author':_0x153f06,'created':_0x4c51f5};}return _0x35b6a9;}function getConverterOptionsV2(_0xef0b45,_0x53c5c8={}){const _0x4ea75c=_0xef0b45['plugins']['has']('Users'),_0x27fd57=_0xef0b45['plugins']['has']('CommentsRepository'),_0x3825b9=_0xef0b45['plugins']['has']('TrackChanges'),_0x535009=_0xef0b45['plugins']['has']('MergeFields'),_0x39c471=_0xef0b45['locale']['contentLanguage'],_0x25de49=_0x53c5c8,_0x51e7ed={};if(_0x25de49['document']=_0x25de49['document']||{},_0x25de49['document']['language']=_0x25de49['document']['language']||_0x39c471,_0x4ea75c&&_0x27fd57){const _0x3a503d=getCommentsV2(_0xef0b45['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x3a503d['length']&&(_0x51e7ed['comment_threads']=_0x3a503d);}if(_0x4ea75c&&_0x3825b9){const _0x246e4c=_0xef0b45['plugins']['get']('TrackChanges'),_0x442ce7=_0xef0b45['plugins']['get']('Users'),_0x3cab3c=getSuggestionsV2(_0x246e4c['getSuggestions']({'toJSON':!0x0}),_0x442ce7['users']);_0x3cab3c['length']&&(_0x51e7ed['suggestions']=_0x3cab3c);}if(_0x535009){const _0x9c530b=_0xef0b45['plugins']['get']('MergeFieldsEditing'),_0x277909=_0x9c530b['previewMode'],{prefix:_0x4a3978,suffix:_0x12988a}=_0xef0b45['config']['get']('mergeFields');if(_0x25de49['merge_fields']={'prefix':_0x4a3978,'suffix':_0x12988a},'$labels'!==_0x277909){_0x25de49['merge_fields']['data']={};const _0x5c57af='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x17094c='$defaultValues'===_0x277909?_0x9c530b['getDefaultValues']():_0x9c530b['getDataSetValues'](_0x277909,!0x0);for(const _0x45a835 of Object['entries'](_0x17094c)){const [_0x17b63f,_0x5e3cd1]=_0x45a835;'image'===_0x9c530b['getMergeFieldType'](_0x17b63f)?_0x25de49['merge_fields']['data'][_0x17b63f]=null!==_0x5e3cd1?_0x5e3cd1:_0x5c57af:_0x25de49['merge_fields']['data'][_0x17b63f]=null!==_0x5e3cd1?_0x5e3cd1:_0x9c530b['getLabel'](_0x17b63f)||_0x17b63f;}}}return(_0x51e7ed['comment_threads']||_0x51e7ed['suggestions'])&&(_0x25de49['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'],_0x25de49['collaboration_features']=_0x51e7ed),_0x25de49;}function getCommentsV2(_0x343db9){const _0x25f78f=[];if(!_0x343db9['length'])return _0x25f78f;for(const _0x18886f of _0x343db9){const _0x8a580=_0x18886f['comments']['map'](_0x500c19=>({'author':_0x500c19['author']['name'],'content':_0x500c19['content'],'created_at':_0x500c19['createdAt']}));_0x25f78f['push']({'thread_id':_0x18886f['id'],'is_resolved':_0x18886f['isResolved'],'comments':_0x8a580});}return _0x25f78f;}function getSuggestionsV2(_0x31d965,_0x25decb){return _0x31d965['length']&&_0x25decb['length']?_0x31d965['map'](({id:_0x3c2106,createdAt:_0xa3c990,authorId:_0x5177a5,attributes:_0x3e4a00})=>{const _0x32b7ce=_0x3e4a00&&_0x3e4a00['@external'];return{'id':_0x3c2106,'author':_0x32b7ce?_0x32b7ce['authorName']:_0x25decb['get'](_0x5177a5)['name'],'created_at':_0xa3c990};}):[];}function getTranslation$c(_0x32ba6b,_0x4cfe56){const t=_0x32ba6b['t'];switch(_0x4cfe56){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 _0x4cfe56;}}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 _0x210666{constructor(_0x53bce3){super(_0x53bce3),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x1d5ab2={}){const _0x5851cb=this['editor'],_0x8a6b9f=_0x1d5ab2['version']||0x2,_0x1f941c=0x1===_0x8a6b9f,_0x2d360b=_0x1d5ab2['converterUrl']||(_0x1f941c?PRODUCTION_URL:PRODUCTION_URL_V2),_0x54b0ec=_0x1d5ab2['converterOptions']||{},_0x268f01=_0x5851cb['plugins']['get']('ExportWord'),_0x233a88=_0x1d5ab2['token']||_0x268f01['_token'],_0x14250e=!0x0===_0x54b0ec['auto_pagination'],_0x3db965=_0x1d5ab2['dataCallback']||(_0xc582b0=>_0xc582b0['data']['get']({'pagination':_0x14250e}));return 0x2===_0x8a6b9f&&isV1ApiUsed(_0x54b0ec)&&logWarning('export-word-v1-api-is-deprecated'),this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x1d5ab2['stylesheets']||['EDITOR_STYLES'])['then'](async _0xcfa98c=>{_0x5851cb['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x5851cb['locale'],'Word\x20document\x20export\x20started'));const _0x5796e8=await _0x3db965(_0x5851cb),_0x3de5f1={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x5851cb['locale']['contentLanguageDirection']+'\x22>'+_0x5796e8+'</div>','css':_0xcfa98c,[_0x1f941c?'options':'config']:{..._0x54b0ec,..._0x1f941c?getConverterOptions(_0x5851cb,_0x54b0ec):getConverterOptionsV2(_0x5851cb,_0x54b0ec)}},_0x247f53={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x233a88?{'Authorization':_0x233a88['value']}:null},'body':JSON['stringify'](_0x3de5f1)};return window['fetch'](_0x2d360b,_0x247f53)['then'](_0x4b5f67=>{if(0xc8!==_0x4b5f67['status'])throw _0x4b5f67;return _0x4b5f67['blob']();})['then'](_0x22403d=>{_0x5851cb['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x5851cb['locale'],'Word\x20document\x20export\x20successful'));const _0x4ed257='function'==typeof _0x1d5ab2['fileName']?_0x1d5ab2['fileName']():_0x1d5ab2['fileName'];this['_downloadFile'](_0x22403d,_0x4ed257||'document.docx');});})['catch'](_0x47f50f=>{const _0x2255a2=_0x5851cb['plugins']['get']('Notification');throw _0x5851cb['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x5851cb['locale'],'Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x2255a2['showWarning'](getTranslation$c(_0x5851cb['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x47f50f;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x4dafba,_0x25f09a){const _0x1db90f=document['createElement']('a');_0x1db90f['href']=window['URL']['createObjectURL'](_0x4dafba),_0x1db90f['download']=_0x25f09a,_0x1db90f['click'](),_0x1db90f['remove']();}}function isV1ApiUsed(_0x4c99ab){for(const _0x2adab2 of firstVersionApiKeys)if(void 0x0!==_0x4c99ab[_0x2adab2])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 _0x4e8ea7=this['editor'];_0x4e8ea7['ui']['componentFactory']['add']('exportWord',()=>{const _0x35415d=_0x4e8ea7['commands']['get']('exportWord'),_0x2fc60f=this['_createButton'](ButtonView);return _0x2fc60f['set']({'tooltip':!0x0}),_0x2fc60f['bind']('isOn')['to'](_0x35415d,'isBusy'),_0x2fc60f;}),_0x4e8ea7['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x148820){const _0xfaf36c=this['editor'],_0x42e5c0=_0xfaf36c['config']['get']('exportWord')||{},_0xbec271=_0xfaf36c['commands']['get']('exportWord'),_0x1fc433=new _0x148820(_0xfaf36c['locale']),_0x28a7c0=new SpinnerView();return _0x1fc433['children']['add'](_0x28a7c0),_0x28a7c0['bind']('isVisible')['to'](_0xbec271,'isBusy'),_0x1fc433['iconView']['bind']('isVisible')['to'](_0xbec271,'isBusy',_0x182c11=>!_0x182c11),_0x1fc433['set']({'icon':IconExportWord}),_0x1fc433['bind']('isEnabled')['to'](_0xbec271,'isEnabled'),_0x1fc433['bind']('label')['to'](_0xbec271,'isBusy',_0xb4cd8e=>getTranslation$c(_0xfaf36c['locale'],_0xb4cd8e?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x1fc433,'execute',()=>{_0xfaf36c['execute']('exportWord',_0x42e5c0),_0xfaf36c['editing']['view']['focus']();}),_0x1fc433;}}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 _0x53267e=this['editor'],_0x18867b=_0x53267e['config']['get']('exportWord')||{};_0x53267e['commands']['add']('exportWord',new ExportWordCommand(_0x53267e));const _0x1b90f1=_0x53267e['plugins']['get']('CloudServices');!0x1===_0x18867b['tokenUrl']?this['_token']=null:_0x18867b['tokenUrl']?_0x1b90f1['registerTokenUrl'](_0x18867b['tokenUrl'])['then'](_0x31ac00=>{this['_token']=_0x31ac00;}):this['_token']=_0x1b90f1['token'];}}class ModelElementTracker{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x526ea1,_0x1e195e){this['_model']=_0x526ea1,this['_elementName']=_0x1e195e['elementName'],this['_getElementKey']=_0x1e195e['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x2099be){const _0x4cedc5=new Set(),_0x376a5f=new Map();for(const _0x505212 of _0x2099be){if('insert'===_0x505212['type']&&'$text'!==_0x505212['name']&&_0x505212['position']['nodeAfter']){const _0x41c91e=this['_model']['createRangeOn'](_0x505212['position']['nodeAfter']);for(const _0x30c1f2 of _0x41c91e['getItems']()){if(!_0x30c1f2['is']('element',this['_elementName']))continue;const _0x285358=this['_getElementKey'](_0x30c1f2);_0x376a5f['has'](_0x285358)||_0x376a5f['set'](_0x285358,[]),_0x376a5f['get'](_0x285358)['push'](_0x30c1f2);}}if('remove'===_0x505212['type']&&_0x505212['name']===this['_elementName']){const _0x264818=this['_getElementKey']({'getAttribute':_0x132c19=>_0x505212['attributes']['get'](_0x132c19)});_0x4cedc5['add'](_0x264818);}}for(const [_0xf26335,_0x3970ed]of this['_trackedElements'])'$graveyard'===_0x3970ed['root']['rootName']&&_0x4cedc5['add'](_0xf26335);for(const _0xa8069b of _0x4cedc5)this['_trackedElements']['delete'](_0xa8069b);for(const [_0x65b1d1,_0x22857f]of _0x376a5f)this['_trackedElements']['set'](_0x65b1d1,_0x22857f[_0x22857f['length']-0x1]);const _0x41a015=new Set();for(const [_0x40d227,_0x45edec]of _0x376a5f)_0x4cedc5['has'](_0x40d227)&&(_0x41a015['add'](_0x45edec[0x0]),_0x45edec['length']>0x1?_0x376a5f['set'](_0x40d227,_0x45edec['slice'](0x1)):_0x376a5f['delete'](_0x40d227),_0x4cedc5['delete'](_0x40d227));return{'removed':Array['from'](_0x4cedc5),'inserted':Array['from'](_0x376a5f['values']())['flat'](),'moved':Array['from'](_0x41a015)};}}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(_0x20eea2){super(_0x20eea2),this['_footnoteDefsContainerTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x4c4ede=>_0x4c4ede['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x80c031=>_0x80c031['getAttribute']('footnoteId')});}['init'](){const {editor:_0x47f681}=this,{model:_0x4c6e37,data:_0x253468}=_0x47f681;_0x4c6e37['document']['registerPostFixer'](_0x45246b=>{const _0x5d7fba=_0x4c6e37['document']['differ']['getChanges']();let _0x5ef544=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x45246b,_0x5d7fba)&&(_0x5ef544=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x45246b,_0x5d7fba)&&(_0x5ef544=!0x0),this['_handleFootnoteReferencesChanges'](_0x45246b,_0x5d7fba)&&(_0x5ef544=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x45246b)&&(_0x5ef544=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x45246b)&&(_0x5ef544=!0x0),this['_sortFootnoteDefinitions'](_0x45246b)&&(_0x5ef544=!0x0),_0x5ef544;}),this['listenTo'](_0x4c6e37['document'],'change:data',()=>{_0x4c6e37['enqueueChange']({'isUndoable':!0x1},_0xe9de83=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xe9de83);});},{'priority':'low'}),this['listenTo'](_0x253468,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x45fa19){return this['_footnotes']['find'](_0x21adf1=>_0x21adf1['id']===_0x45fa19)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x52a823){this['_footnoteFormatter']=_0x52a823;}['_updateFootnotesCounters'](_0x5ace3a,_0x9ec78a=0x0){let _0x40a65c=!0x1;for(let _0x345cfd=_0x9ec78a;_0x345cfd<this['_footnotes']['length'];_0x345cfd++)this['_updateFootnoteRefCounter'](_0x5ace3a,_0x345cfd)&&(_0x40a65c=!0x0);return _0x40a65c;}['_insertEmptyFootnotesDefinitionsContainer'](_0x88c4c4,_0x2d2ed5){const _0xec2ac2=_0x88c4c4['createElement']('footnotesDefinitions',{});return _0x88c4c4['append'](_0xec2ac2,_0x2d2ed5),this['_footnotesDefinitions']=_0xec2ac2,_0xec2ac2;}['_ensureFootnotesDefinitionsContainerExists'](_0x231f55){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x3acffd=this['_footnotes'][0x0]['reference']['root'],_0x37aba8=this['_insertEmptyFootnotesDefinitionsContainer'](_0x231f55,_0x3acffd);for(const _0x4e5a58 of this['_footnotes'])_0x4e5a58['definition']['parent']||_0x231f55['insert'](_0x4e5a58['definition'],_0x37aba8,'end');this['_updateFootnotesCounters'](_0x231f55);}['_handleFootnotesDefinitionsObjectChanges'](_0x439461,_0x5affcc){let _0x237a95=!0x1;const {inserted:_0x119af2,removed:_0x355c47,moved:_0x1a0766}=this['_footnoteDefsContainerTracker']['getChanges'](_0x5affcc);if(_0x1a0766['length']&&(this['_footnotesDefinitions']=_0x1a0766[0x0]),_0x119af2['length']){if(_0x119af2['length']>0x1||this['_footnotesDefinitions']&&_0x119af2['some'](_0x13ba63=>_0x13ba63!==this['_footnotesDefinitions'])){const _0x34703d=_0x439461['createElement']('footnotesDefinitions',{}),_0x40b595=[];this['_footnotesDefinitions']&&_0x40b595['push'](this['_footnotesDefinitions']),_0x40b595['push'](..._0x119af2),_0x439461['insert'](_0x34703d,_0x40b595[0x0],'before');for(const _0x2be519 of _0x40b595)_0x439461['move'](_0x439461['createRangeIn'](_0x2be519),_0x439461['createPositionAt'](_0x34703d,'end')),_0x439461['remove'](_0x2be519);this['_footnotesDefinitions']=_0x34703d,this['_updateFootnotesCounters'](_0x439461),_0x237a95=!0x0;}else this['_footnotesDefinitions']=_0x119af2[0x0];}if(_0x355c47['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x15abc4 of this['_footnotes'])_0x439461['remove'](_0x15abc4['reference']),_0x237a95=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x237a95;}['_handleFootnoteDefinitionsChanges'](_0x1824ba,_0xe14dfa){let _0x268fbd=!0x1;const _0x2c9ec8=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x35da4a,moved:_0x339b14}=this['_footnoteDefsTracker']['getChanges'](_0xe14dfa);for(const _0x5186f3 of[..._0x339b14,..._0x35da4a]){const _0x43d5a4=_0x5186f3['getAttribute']('footnoteId'),_0x4ace63=this['getFootnote'](_0x43d5a4);_0x4ace63&&(_0x4ace63['definition']=_0x5186f3),ensureDefinitionIsNotEmpty(_0x1824ba,_0x2c9ec8,_0x5186f3)&&(_0x268fbd=!0x0);}return _0x268fbd;}['_handleFootnoteReferencesChanges'](_0x189eb1,_0x53d9d0){let _0x2a20c0=!0x1;const {removed:_0xe6a507,inserted:_0x3a7805,moved:_0x22a803}=this['_footnoteRefsTracker']['getChanges'](_0x53d9d0);for(const _0x392697 of _0xe6a507)this['_handleRemoveFootnoteReferenceById'](_0x189eb1,_0x392697)&&(_0x2a20c0=!0x0);for(const _0xe0cdb9 of _0x3a7805)this['_handleInsertedFootnoteReference'](_0x189eb1,_0xe0cdb9)&&(_0x2a20c0=!0x0);for(const _0x1b0989 of _0x22a803)this['_handleMovedFootnoteReference'](_0x189eb1,_0x1b0989)&&(_0x2a20c0=!0x0);return _0x2a20c0;}['_handleFootnotesDefinitionsObjectSync'](_0x4285ff){if(!this['_footnotesDefinitions'])return!0x1;let _0x35c6c5=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x142878=[];for(const _0x5364a7 of this['_footnotesDefinitions']['getChildren']()){const _0x2ee03c=_0x5364a7['getAttribute']('footnoteId');this['getFootnote'](_0x2ee03c)||(_0x142878['unshift'](_0x5364a7),_0x35c6c5=!0x0);}for(const _0x2cbf39 of _0x142878)_0x4285ff['remove'](_0x2cbf39);}const _0x382c2e=new Set(),_0x15ae0b=[];for(const _0x34049b of this['_footnotesDefinitions']['getChildren']()){const _0x3549b2=_0x34049b['getAttribute']('footnoteId');_0x382c2e['has'](_0x3549b2)?(_0x15ae0b['unshift'](_0x34049b),_0x35c6c5=!0x0):_0x382c2e['add'](_0x3549b2);}for(const _0xa95b5d of _0x15ae0b)_0x4285ff['remove'](_0xa95b5d);return this['_footnotesDefinitions']['childCount']||(_0x4285ff['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x35c6c5=!0x0),_0x35c6c5;}['_handleInsertedFootnoteReference'](_0x5c1b8f,_0x33d5b2){if(this['_footnotes']['find'](_0x2d25fd=>_0x2d25fd['reference']===_0x33d5b2))return!0x1;let _0x5b14b4=!0x1;const _0x5cff17=_0x33d5b2['getAttribute']('footnoteId'),_0x5e194f=this['_footnotes']['findIndex'](_0x460e42=>_0x460e42['id']===_0x5cff17);-0x1!==_0x5e194f&&(_0x5c1b8f['remove'](this['_footnotes'][_0x5e194f]['reference']),this['_footnotes']['splice'](_0x5e194f,0x1),_0x5b14b4=!0x0);let _0x4b7fe3=this['_footnotesDefinitions']?findFootnoteDefinitionInContainer(this['_footnotesDefinitions'],_0x5cff17):null;_0x4b7fe3||(_0x4b7fe3=_0x5c1b8f['createElement']('footnoteDefinition',{'footnoteId':_0x5cff17}),this['_footnotesDefinitions']&&(_0x5c1b8f['insert'](_0x4b7fe3,this['_footnotesDefinitions'],'end'),_0x5b14b4=!0x0));const _0x218347={'id':_0x5cff17,'reference':_0x33d5b2,'definition':_0x4b7fe3},_0x2bb603=findInsertFootnoteReferenceIndex(this['editor']['model'],this['_footnotes'],_0x33d5b2);this['_footnotes']['splice'](_0x2bb603,0x0,_0x218347);let _0x4b9680=_0x2bb603;return-0x1!==_0x5e194f&&(_0x4b9680=Math['min'](_0x2bb603,_0x5e194f)),this['_updateFootnotesCounters'](_0x5c1b8f,_0x4b9680)&&(_0x5b14b4=!0x0),_0x5b14b4;}['_handleRemoveFootnoteReferenceById'](_0x2d1b22,_0x33f80d){const _0x595826=this['_footnotes']['findIndex'](_0x42a4d1=>_0x42a4d1['id']===_0x33f80d);if(-0x1===_0x595826)return!0x1;let _0x153780=!0x1;const _0x4160c5=this['_footnotes'][_0x595826];return'$graveyard'!==_0x4160c5['definition']['root']['rootName']&&(_0x2d1b22['remove'](_0x4160c5['definition']),_0x153780=!0x0),this['_footnotes']['splice'](_0x595826,0x1),this['_updateFootnotesCounters'](_0x2d1b22,_0x595826)&&(_0x153780=!0x0),_0x153780;}['_handleMovedFootnoteReference'](_0x8fdb03,_0x2ecb32){const _0x449c37=_0x2ecb32['getAttribute']('footnoteId'),_0xb82c95=this['_footnotes']['findIndex'](_0x31face=>_0x31face['id']===_0x449c37),_0x8b8ff6=this['_footnotes'][_0xb82c95];let _0x1c2202=!0x1;_0x8b8ff6['reference']=_0x2ecb32,this['_footnotes']['splice'](_0xb82c95,0x1);const _0x11720c=findInsertFootnoteReferenceIndex(this['editor']['model'],this['_footnotes'],_0x2ecb32);return this['_footnotes']['splice'](_0x11720c,0x0,_0x8b8ff6),this['_updateFootnotesCounters'](_0x8fdb03,Math['min'](_0xb82c95,_0x11720c))&&(_0x1c2202=!0x0),_0x1c2202;}['_updateFootnoteRefCounter'](_0x4fd6c4,_0x5a727e){if(!this['_footnotesDefinitions'])return!0x1;const _0x529d2e=this['_footnotes'][_0x5a727e];let _0x4dae96;return _0x4dae96=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x529d2e,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x5a727e+0x1}):String(_0x5a727e+0x1),_0x529d2e['reference']['getAttribute']('footnoteCounter')!=_0x4dae96&&(_0x4fd6c4['setAttribute']('footnoteCounter',_0x4dae96,_0x529d2e['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x17cfef){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(areArraysEqual(this['_footnotes']['map'](_0x36e664=>_0x36e664['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x366f95=>_0x366f95['getAttribute']('footnoteId'))))return!0x1;let _0x553830=!0x1;for(let _0x3c23fc=0x0;_0x3c23fc<this['_footnotes']['length'];_0x3c23fc++){const _0x24235e=this['_footnotes'][_0x3c23fc],_0x28f785=_0x17cfef['createPositionBefore'](_0x24235e['definition']),_0x533e68=_0x17cfef['createPositionAt'](this['_footnotesDefinitions'],_0x3c23fc);_0x28f785['isEqual'](_0x533e68)||(_0x17cfef['move'](_0x17cfef['createRangeOn'](_0x24235e['definition']),_0x533e68),_0x553830=!0x0);}return _0x553830;}['_ensureFootnotesReferencesHaveProperOrder'](_0x9c2176){if(!this['_footnotes']['length'])return!0x1;const {model:_0x40f75f}=this['editor'];let _0xda7be4=!0x1;for(let _0x569ae6=0x0;_0x569ae6<this['_footnotes']['length']-0x1;_0x569ae6++){const _0x4e595c=this['_footnotes'][_0x569ae6],_0x426ef3=this['_footnotes'][_0x569ae6+0x1],_0xf84e01=_0x40f75f['createPositionBefore'](_0x4e595c['reference']),_0x6b3f67=_0x40f75f['createPositionBefore'](_0x426ef3['reference']);'after'===_0xf84e01['compareWith'](_0x6b3f67)&&(this['_handleMovedFootnoteReference'](_0x9c2176,_0x4e595c['reference']),_0x569ae6=-0x1,_0xda7be4=!0x0);}return _0xda7be4;}}function ensureDefinitionIsNotEmpty(_0x4bc386,_0x3d4514,_0x1e57f0){if(_0x1e57f0['childCount'])return!0x1;const _0x277e71=_0x3d4514?'paragraph':'footnoteInlineContent';return _0x4bc386['insert'](_0x4bc386['createElement'](_0x277e71),_0x1e57f0),!0x0;}function findFootnoteDefinitionInContainer(_0x42d6bf,_0x3e2b38){for(const _0x52ef66 of _0x42d6bf['getChildren']())if(_0x52ef66['getAttribute']('footnoteId')===_0x3e2b38)return _0x52ef66;return null;}function findInsertFootnoteReferenceIndex(_0x14483a,_0x481530,_0x17ca53){if(0x0===_0x481530['length'])return 0x0;const _0x172987=_0x14483a['createPositionBefore'](_0x17ca53);for(let _0x3678be=0x0;_0x3678be<_0x481530['length'];_0x3678be++){const _0x6ca182=_0x481530[_0x3678be],_0xab5e41=_0x14483a['createPositionBefore'](_0x6ca182['reference']);if('before'===_0x172987['compareWith'](_0xab5e41))return _0x3678be;}const _0x1bf4ea=_0x17ca53['root'];let _0x52914f=-0x1;for(let _0x8cc1be=_0x481530['length']-0x1;_0x8cc1be>=0x0;_0x8cc1be--)if(_0x481530[_0x8cc1be]['reference']['root']===_0x1bf4ea){_0x52914f=_0x8cc1be;break;}if(-0x1!==_0x52914f)return _0x52914f+0x1;const _0x19e298=_0x14483a['document']['getRootNames'](),_0x1699b0=_0x19e298['indexOf'](_0x1bf4ea['rootName']),_0x3f9b7c=_0x19e298[_0x1699b0+0x1];if(_0x3f9b7c){for(let _0x14a174=0x0;_0x14a174<_0x481530['length'];_0x14a174++)if(_0x481530[_0x14a174]['reference']['root']['rootName']===_0x3f9b7c)return _0x14a174;}return _0x481530['length'];}function areArraysEqual(_0x3ad1f8,_0x3515e4){if(_0x3ad1f8['length']!==_0x3515e4['length'])return!0x1;for(let _0x2c73f4=0x0;_0x2c73f4<_0x3ad1f8['length'];_0x2c73f4++)if(_0x3ad1f8[_0x2c73f4]!==_0x3515e4[_0x2c73f4])return!0x1;return!0x0;}class InsertFootnoteCommand extends _0x210666{['refresh'](){const _0x3db11a=this['editor']['model']['document']['selection'],_0x4ff556=this['_getPositionToInsertFootnote'](_0x3db11a);this['isEnabled']=!!_0x4ff556;}['execute'](_0x37340e){const {editor:_0x39e4a2}=this,{model:_0x1db2df}=_0x39e4a2,{selection:_0x1bdf55}=_0x1db2df['document'],_0x4c8b27=this['_getPositionToInsertFootnote'](_0x1bdf55);if(!_0x4c8b27)return;const _0x564272=_0x39e4a2['plugins']['get']('FootnotesEditing'),_0x5298ce=_0x37340e?.['footnoteId']??uid();isFootnoteIdValid(_0x5298ce)?(_0x1db2df['change'](_0x2dbab1=>{const _0x4611b2=_0x2dbab1['createElement']('footnoteRef',{'footnoteId':_0x5298ce});_0x1db2df['insertObject'](_0x4611b2,_0x4c8b27,null);}),_0x564272['_moveSelectionToFootnoteDefinition'](_0x5298ce)):logWarning('insert-footnote-command-executed-with-invalid-id');}['_getPositionToInsertFootnote'](_0x38cc1f){const {model:_0x2b1de8}=this['editor'],{schema:_0x5f4dd6}=_0x2b1de8,_0x167d3b=_0x38cc1f['getFirstRange']();for(const _0x5686d5 of _0x167d3b['getItems']())if(_0x5f4dd6['isBlock'](_0x5686d5)||_0x5f4dd6['isObject'](_0x5686d5))return null;const _0x623400=_0x167d3b['end'];return _0x5f4dd6['checkChild'](_0x623400,'footnoteRef')?_0x623400:null;}}function isFootnoteIdValid(_0xa3dadc){return'string'==typeof _0xa3dadc&&_0xa3dadc['length']>0x0&&!/\s/['test'](_0xa3dadc)&&!/^\d/['test'](_0xa3dadc);}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:_0xd28e62}=this;_0xd28e62['config']['define']('footnotes.multiBlock',!0x0),_0xd28e62['commands']['add']('insertFootnote',new InsertFootnoteCommand(_0xd28e62)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){checkLicense$c(this);}['_moveSelectionToFootnoteDefinition'](_0x829af4){const {plugins:_0x103635,editing:_0x42e09b,model:_0x22cced}=this['editor'],_0x300442=_0x103635['get'](FootnotesTracker)['getFootnote'](_0x829af4);return!!_0x300442&&(_0x22cced['change'](_0x1dd714=>{_0x1dd714['setSelection'](_0x1dd714['createPositionAt'](_0x300442['definition'],'end'));}),_0x42e09b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5e58e9){const {plugins:_0x11be77,editing:_0x1c5144,model:_0x5db670}=this['editor'],_0x34479a=_0x11be77['get'](FootnotesTracker)['getFootnote'](_0x5e58e9);return!!_0x34479a&&(_0x5db670['change'](_0x213fd5=>{_0x213fd5['setSelection'](_0x34479a['reference'],'on');}),_0x1c5144['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x23b468}=this['editor']['model'],_0xcbf468=this['editor']['config']['get']('footnotes.multiBlock');_0x23b468['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x23b468['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x23b468['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xcbf468?_0x23b468['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x23b468['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x23b468['addChildCheck'](_0x40d7fd=>{for(const _0x2b0beb of _0x40d7fd)if('footnoteDefinition'===_0x2b0beb['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x18b77f}=this,{conversion:_0x3af2a3,editing:_0x451a22}=_0x18b77f,{t:t}=_0x18b77f['locale'];_0x3af2a3['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xd86230,{writer:_0x5f5af2,consumable:_0xaee6c8})=>{const _0xe83ad8=_0xd86230['getChild'](0x0);if(!_0xe83ad8||!_0xe83ad8['is']('element','a'))return null;const _0x2feb26=_0xe83ad8['getAttribute']('href')||'';if(!_0x2feb26['startsWith']('#'))return null;const _0x109a54=_0x2feb26['replace'](/^#/,'');if(!_0x109a54)return null;_0xaee6c8['consume'](_0xe83ad8,{'name':!0x0,'attributes':['href']});for(const {item:_0x389707}of _0x451a22['view']['createRangeIn'](_0xe83ad8))_0x389707['is']('$textProxy')?_0xaee6c8['consume'](_0x389707['textNode'],{'name':!0x0}):_0x389707['is']('element')&&_0xaee6c8['consume'](_0x389707,{'name':!0x0});return _0x5f5af2['createElement']('footnoteRef',{'footnoteId':_0x109a54});}}),_0x3af2a3['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5e5d0c,{writer:_0x1f2d65})=>createFootnoteRefView(_0x5e5d0c,_0x1f2d65)}),_0x3af2a3['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x31b67,{writer:_0x1a62dd})=>{const _0x561a7b=_0x31b67['getAttribute']('footnoteCounter');return toWidget(createFootnoteRefView(_0x31b67,_0x1a62dd),_0x1a62dd,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x561a7b)});}});}['_defineDefinitionsConverters'](){const {editor:_0x296bae}=this,{t:t}=_0x296bae['locale'],{conversion:_0x5cd401}=_0x296bae;_0x5cd401['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5cd401['for']('upcast')['add'](_0x424522=>{_0x424522['on']('element:ol',(_0x140e26,_0x1962b6,_0x260505)=>{const _0xdfc6=_0x1962b6['viewItem'];if(!_0xdfc6['hasClass']('footnotes-list')||!_0x1962b6['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x260505['consumable']['consume'](_0xdfc6,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x44d44b,modelCursor:_0xf22390}=_0x260505['convertChildren'](_0x1962b6['viewItem'],_0x1962b6['modelCursor']);_0x1962b6['modelRange']=_0x44d44b,_0x1962b6['modelCursor']=_0xf22390;}),_0x424522['on']('element:hr',(_0x1f9294,_0x4b94f4,_0x7dd038)=>{const _0x3b3ae5=_0x4b94f4['viewItem'];_0x3b3ae5['hasClass']('footnotes-divider')&&_0x4b94f4['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x7dd038['consumable']['consume'](_0x3b3ae5,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5cd401['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x13ad11,{writer:_0x5cdcda})=>createFootnotesWrapperView(_0x5cdcda)}),_0x5cd401['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x35ca67,{writer:_0xdd1e95})=>{const _0x2e9924=createFootnotesWrapperView(_0xdd1e95,{'data-footnotes-list-label':t('Footnotes')}),_0x3b106d=toWidget(_0x2e9924,_0xdd1e95,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xdd1e95['setCustomProperty']('footnotesDefinitions',!0x0,_0x3b106d),_0x3b106d;}});}['_defineDefinitionConverters'](){const {editor:_0x45657c}=this,{conversion:_0x58ff7b,locale:_0x5a814f}=_0x45657c,_0x57e667=_0x45657c['config']['get']('footnotes.multiBlock');_0x58ff7b['for']('upcast')['add'](_0x4c5079=>{_0x4c5079['on']('element:li',(_0x4cbd81,_0x4307a7,_0x28639e)=>{const _0x5e91e5=_0x4307a7['viewItem'];if(!_0x5e91e5['hasClass']('footnote-definition')||!_0x5e91e5['getAttribute']('id'))return;const _0x1a9887=_0x5e91e5['parent'];if(!_0x1a9887['is']('element','ol')||!_0x1a9887['hasClass']('footnotes-list'))return;if(!_0x28639e['consumable']['test'](_0x5e91e5,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x547751=_0x28639e['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5e91e5['getAttribute']('id')});if(!_0x28639e['safeInsert'](_0x547751,_0x4307a7['modelCursor']))return;_0x28639e['consumable']['consume'](_0x5e91e5,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x49c0aa=Array['from'](_0x5e91e5['getChildren']())['find'](_0x2db884=>_0x2db884['is']('element')&&_0x2db884['hasClass']('footnote-content'));for(const _0x404fc2 of _0x5e91e5['getChildren']())_0x404fc2['is']('element')&&(_0x28639e['consumable']['consume'](_0x404fc2,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x28639e['consumable']['consume'](_0x404fc2,{'name':!0x0,'classes':'footnote-content'}));if(_0x49c0aa){if(_0x57e667)_0x28639e['convertChildren'](_0x49c0aa,_0x547751);else{const _0x5055c5=_0x28639e['writer']['createElement']('footnoteInlineContent');_0x28639e['writer']['insert'](_0x5055c5,_0x547751),_0x28639e['convertChildren'](_0x49c0aa,_0x5055c5);}}_0x28639e['updateConversionResult'](_0x547751,_0x4307a7);});}),_0x58ff7b['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x17dde5,{writer:_0x2e881e})=>createFootnoteDefinitionView(_0x17dde5,_0x2e881e,_0x5a814f,{'dataPipeline':!0x0})}),_0x58ff7b['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x6c8b2b,{writer:_0x20e144})=>createFootnoteDefinitionView(_0x6c8b2b,_0x20e144,_0x5a814f)});}['_defineBogusParagraphConverters'](){const {editor:_0x47d0ac}=this,{conversion:_0x5208c8}=_0x47d0ac;_0x47d0ac['config']['get']('footnotes.multiBlock')?(_0x5208c8['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':footnoteBogusParagraphCreator(),'converterPriority':'high'}),_0x5208c8['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':footnoteBogusParagraphCreator({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x47d0ac['model']['document'],'change:data',()=>{footnoteDefinitionRefreshHandler(_0x47d0ac['model'],_0x47d0ac['editing']);})):(_0x5208c8['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':footnoteBogusParagraphCreator()}),_0x5208c8['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3affe6,{writer:_0x182683})=>{const _0x5266b2=_0x182683['createContainerElement']('span');return _0x182683['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5266b2),_0x5266b2;}}));}['_defineKeyboardHandlers'](){const {editor:_0x377165}=this,{editing:_0x5e4145,t:t}=_0x377165,_0x2701a7=_0x377165['model']['document']['selection'];_0x377165['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x377165['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5e4145['view']['document'],'enter',(_0x1b41f1,_0x1f459c)=>{const _0x172595=getSelectedFootnoteRef(_0x2701a7);if(_0x172595){const _0x1a4f26=_0x172595['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1a4f26),_0x1f459c['preventDefault'](),_0x1b41f1['stop']();}},{'context':isWidget});}['_defineClickHandlers'](){const {editor:_0xc24943}=this,{editing:_0x30291c}=_0xc24943;_0xc24943['editing']['view']['addObserver'](PointerObserver),_0xc24943['editing']['view']['addObserver'](ClickObserver);let _0x26749c=!0x1;this['listenTo'](_0x30291c['view']['document'],'pointerdown',(_0x57592a,_0x491d82)=>{const {target:_0x1ca274}=_0x491d82,_0x338a1c=_0x30291c['view']['document']['selection'];_0x26749c=!!(_0x1ca274?.['is']('element','a')&&_0x1ca274['parent']?.['is']('element','sup')&&_0x1ca274['parent']['hasClass']('footnote'))&&_0x338a1c['getSelectedElement']()===_0x1ca274['parent'];},{'priority':'high'}),this['listenTo'](_0x30291c['view']['document'],'click',(_0x4f52dd,_0x135176)=>{const {target:_0x264dae}=_0x135176;if(!_0x264dae?.['is']('element','a'))return;if(_0x264dae['parent']?.['is']('element','sup')&&_0x264dae['parent']['hasClass']('footnote')&&!_0x26749c)return void _0x135176['preventDefault']();let _0x18243f=_0x264dae['getAttribute']('href');if(!_0x18243f?.['startsWith']('#'))return;_0x18243f=_0x18243f['slice'](0x1);let _0x33a3f5=!0x1;(_0x18243f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x18243f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x18243f))&&(_0x33a3f5=!0x0),_0x33a3f5&&(_0x135176['preventDefault'](),_0x4f52dd['stop']());},{'priority':'high','context':'$capture'});}}function getSelectedFootnoteRef(_0x11c768){const _0x33ffae=_0x11c768['getSelectedElement']();return _0x33ffae?.['is']('element','footnoteRef')?_0x33ffae:null;}function footnoteBogusParagraphCreator({dataPipeline:_0x4c4cc0}={}){return(_0xb6b82e,{writer:_0x378d2b})=>{if(!shouldUseBogusParagraphInFootnote(_0xb6b82e))return null;if(!_0x4c4cc0)return _0x378d2b['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5c4c40=_0x378d2b['createContainerElement']('p');return _0x378d2b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5c4c40),_0x5c4c40;};}function shouldUseBogusParagraphInFootnote(_0x31ef07){const {parent:_0x486cbd}=_0x31ef07;if(!_0x486cbd?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x486cbd['childCount'])return!0x1;for(const _0x328496 of _0x31ef07['getAttributeKeys']())if(!_0x328496['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x328496)return!0x1;return!0x0;}function footnoteDefinitionRefreshHandler(_0x1bf81c,_0x5f3cfc){const _0x4c3f70=_0x1bf81c['document']['differ'],_0x3dda26=new Set();for(const _0x37f2cb of _0x4c3f70['getChanges']()){const _0x528cd2='attribute'==_0x37f2cb['type']?_0x37f2cb['range']['start']['parent']:_0x37f2cb['position']['parent'];_0x528cd2['is']('element','footnoteDefinition')&&_0x3dda26['add'](_0x528cd2);}for(const _0x2b10db of _0x3dda26['values']()){const _0x3d3182=Array['from'](_0x2b10db['getChildren']())['filter'](_0x448f9a=>shouldRefresh(_0x448f9a,_0x5f3cfc['mapper']));for(const _0x3469d5 of _0x3d3182)_0x5f3cfc['reconvertItem'](_0x3469d5);}}function shouldRefresh(_0x2b948e,_0x446037){if(!_0x2b948e['is']('element','paragraph'))return!0x1;const _0x2b867b=_0x446037['toViewElement'](_0x2b948e);return!!_0x2b867b&&shouldUseBogusParagraphInFootnote(_0x2b948e)!==_0x2b867b['is']('element','span');}function isFootnotesDefinitionsWidget(_0x142dbf){return isWidget(_0x142dbf)&&_0x142dbf['is']('containerElement')&&!!_0x142dbf['getCustomProperty']('footnotesDefinitions');}function createFootnotesWrapperView(_0x53e45c,_0x36f4d3={}){const _0x2edbb8=_0x53e45c['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1da55d=_0x53e45c['createContainerElement']('ol',{'class':'footnotes-list'},_0x53e45c['createSlot']());return _0x53e45c['createContainerElement']('div',{'class':'footnotes',..._0x36f4d3},[_0x2edbb8,_0x1da55d]);}function createFootnoteRefView(_0x12eb3c,_0x3e63ac){const _0x1d2f3c=_0x12eb3c['getAttribute']('footnoteId'),_0x30559d=_0x12eb3c['getAttribute']('footnoteCounter'),_0x175bd2=_0x3e63ac['createUIElement']('a',{'href':'#'+_0x1d2f3c},function(_0x462f6f){const _0x48ee52=this['toDomElement'](_0x462f6f);return _0x48ee52['textContent']=_0x30559d,_0x48ee52;}),_0x6a7aff=_0x3e63ac['createContainerElement']('sup',{'id':'ref-'+_0x1d2f3c,'class':'footnote'},[_0x175bd2]);return _0x6a7aff['getFillerOffset']=()=>null,_0x6a7aff;}function createFootnoteDefinitionView(_0x24918c,_0x47c23b,_0x4fac8f,{dataPipeline:_0x9c8c53}={}){const {t:t}=_0x4fac8f,_0x11b5c3=_0x24918c['getAttribute']('footnoteId'),_0x397529=_0x47c23b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x11b5c3},function(_0x23ac75){const _0x573e80=this['toDomElement'](_0x23ac75);return _0x573e80['innerText']='^',_0x573e80;}),_0x36aa3d=_0x9c8c53?_0x47c23b['createContainerElement']('div',{'class':'footnote-content'}):toWidgetEditable(_0x47c23b['createEditableElement']('div',{'class':'footnote-content'}),_0x47c23b,{'label':t('Footnote\x20content.')});return _0x47c23b['insert'](_0x47c23b['createPositionAt'](_0x36aa3d,0x0),_0x47c23b['createSlot']()),_0x47c23b['createContainerElement']('li',{'class':'footnote-definition','id':_0x11b5c3},[_0x397529,_0x36aa3d]);}async function checkLicense$c(_0x83dca){const _0x2903c0=_0x2d3e9c([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]),_0x45434c=window[_0x2d3e9c([0x44,0x61,0x74,0x65])][_0x2d3e9c([0x6e,0x6f,0x77])](),_0x507788=_0x83dca[_0x2d3e9c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ad2ca=new window[(_0x2d3e9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f3d52=>{_0x507788[_0x2d3e9c([0x6f,0x6e,0x63,0x65])](_0x2d3e9c([0x72,0x65,0x61,0x64,0x79]),_0x5f3d52);}),_0x264be7={[_0x2d3e9c([0x6b,0x74,0x79])]:_0x2d3e9c([0x45,0x43]),[_0x2d3e9c([0x75,0x73,0x65])]:_0x2d3e9c([0x73,0x69,0x67]),[_0x2d3e9c([0x63,0x72,0x76])]:_0x2d3e9c([0x50,0x2d,0x32,0x35,0x36]),[_0x2d3e9c([0x78])]:_0x2d3e9c([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]),[_0x2d3e9c([0x79])]:_0x2d3e9c([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]),[_0x2d3e9c([0x61,0x6c,0x67])]:_0x2d3e9c([0x45,0x53,0x32,0x35,0x36])},_0x27257c=_0x507788[_0x2d3e9c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d3e9c([0x67,0x65,0x74])](_0x2d3e9c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x55e99f=await(async function(){let _0x4f8cfb,_0x714639=null,_0x55ca34=null;try{if(_0x27257c==_0x2d3e9c([0x47,0x50,0x4c]))return _0x2d3e9c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f8cfb=(function(){const _0x3e27fd=_0x27257c[_0x2d3e9c([0x73,0x70,0x6c,0x69,0x74])](_0x2d3e9c([0x2e]));if(0x3!=_0x3e27fd[_0x2d3e9c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0xfd07fa=_0x3e27fd[0x1];return _0xebdfb2(_0xfd07fa);function _0xebdfb2(_0x55a373){const _0x30f5b2=_0x39e0f6(_0x55a373);return _0x30f5b2&&_0x354026()?_0x30f5b2:null;function _0x354026(){const _0x5d9906=_0x30f5b2[_0x2d3e9c([0x6a,0x74,0x69])],_0x38a6ef=window[_0x2d3e9c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d9906[_0x2d3e9c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d9906[_0x2d3e9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x357d7d={..._0x30f5b2,[_0x2d3e9c([0x6a,0x74,0x69])]:_0x5d9906[_0x2d3e9c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d9906[_0x2d3e9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x357d7d[_0x2d3e9c([0x76,0x63])],_0xbca698(_0x357d7d)==_0x38a6ef;}}}()),!_0x4f8cfb)return _0x2d3e9c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4f8cfb[_0x2d3e9c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55ca34=function(_0x1b93a4,_0x59e2a6){return new window[(_0x2d3e9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59f7e4=>{if(_0xbde1bd())return _0x59f7e4(_0x2d3e9c([0x56,0x61,0x6c,0x69,0x64]));_0x549e35(),_0x507788[_0x2d3e9c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d3e9c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x466a40=!0x1;const _0x3af7da=uid();function _0xdac30c(_0x493eda){return!!_0x493eda&&(typeof _0x493eda===_0x2d3e9c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x493eda===_0x2d3e9c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x493eda[_0x2d3e9c([0x74,0x68,0x65,0x6e])]===_0x2d3e9c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x493eda[_0x2d3e9c([0x63,0x61,0x74,0x63,0x68])]===_0x2d3e9c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3810fd(_0x505eca){_0x33851e(_0x505eca)[_0x2d3e9c([0x74,0x68,0x65,0x6e])](_0x1b84b1=>{if(!_0x1b84b1||_0x1b84b1[_0x2d3e9c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d3e9c([0x6f,0x6b]))return _0x2d3e9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d8ca0(_0xbca698(_0x3af7da+_0x59e2a6))!=_0x1b84b1[_0x2d3e9c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d3e9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d3e9c([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d3e9c([0x74,0x68,0x65,0x6e])](_0x56d9d8=>(_0x346486(),_0x56d9d8),()=>{const _0x363dbf=_0x46270b();return null==_0x363dbf?(_0x346486(),_0x2d3e9c([0x56,0x61,0x6c,0x69,0x64])):_0x2d3e9c(_0x45434c-_0x363dbf>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d3e9c([0x74,0x68,0x65,0x6e])](_0x59f7e4)[_0x2d3e9c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x59f7e4(_0x2d3e9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x58225e=0x36ee80;function _0x346486(){const _0x5a6f90=_0x2d3e9c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d8ca0(_0xbca698(_0x1b93a4)),_0x3bc908=_0x28a8e7(_0x2d8ca0(window[_0x2d3e9c([0x4d,0x61,0x74,0x68])][_0x2d3e9c([0x63,0x65,0x69,0x6c])](_0x45434c/_0x58225e)));window[_0x2d3e9c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d3e9c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a6f90,_0x3bc908);}function _0x46270b(){const _0x52d995=_0x2d3e9c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d8ca0(_0xbca698(_0x1b93a4)),_0x3d0a94=window[_0x2d3e9c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d3e9c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52d995);return _0x3d0a94?window[_0x2d3e9c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28a8e7(_0x3d0a94),0x10)*_0x58225e:null;}function _0x33851e(_0x58d5e9){return new window[(_0x2d3e9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfa7b10,_0x24e362)=>{_0x58d5e9[_0x2d3e9c([0x74,0x68,0x65,0x6e])](_0xfa7b10,_0x24e362),window[_0x2d3e9c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24e362,0x1d4c0);});}}_0x507788[_0x2d3e9c([0x6f,0x6e])](_0x2d3e9c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c02ad,_0x5442a1)=>{if(_0x5442a1[0x0]!=_0x1b93a4)return _0x59f7e4(_0x2d3e9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5442a1[0x1]={..._0x5442a1[0x1],[_0x2d3e9c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3af7da};},{[_0x2d3e9c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d3e9c([0x68,0x69,0x67,0x68])}),_0x507788[_0x2d3e9c([0x6f,0x6e])](_0x2d3e9c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a98fa=>{_0xdac30c(_0x1a98fa[_0x2d3e9c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x466a40=!0x0,_0x3810fd(_0x1a98fa[_0x2d3e9c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d3e9c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d3e9c([0x6c,0x6f,0x77])}),_0x2ad2ca[_0x2d3e9c([0x74,0x68,0x65,0x6e])](()=>{_0x466a40||_0x59f7e4(_0x2d3e9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xbde1bd(){return _0x507788[_0x2d3e9c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d3e9c([0x76,0x69,0x65,0x77])][_0x2d3e9c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d3e9c([0x61,0x75,0x74,0x6f]);}function _0x549e35(){_0x507788[_0x2d3e9c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d3e9c([0x76,0x69,0x65,0x77])][_0x2d3e9c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d3e9c([0x61,0x75,0x74,0x6f]);}}(_0x4f8cfb[_0x2d3e9c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f8cfb[_0x2d3e9c([0x6a,0x74,0x69])]));const _0x3db1ae=await(async function(){let _0x3f5aea=!0x0;try{const _0x3d4850=_0x27257c[_0x2d3e9c([0x73,0x70,0x6c,0x69,0x74])](_0x2d3e9c([0x2e])),[_0x490686,_0x18c1f0,_0x4ac625]=_0x3d4850;return _0x15b307(_0x490686),await _0x1afc47(_0x490686,_0x18c1f0,_0x4ac625),_0x3f5aea;}catch{return!0x1;}function _0x15b307(_0x14bca9){const _0x101f49=_0x39e0f6(_0x14bca9);_0x101f49&&_0x101f49[_0x2d3e9c([0x61,0x6c,0x67])]==_0x2d3e9c([0x45,0x53,0x32,0x35,0x36])||(_0x3f5aea=!0x1);}async function _0x1afc47(_0xe40c0c,_0x5d1ee4,_0x10fb31){const _0x1b53c4=window[_0x2d3e9c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d3e9c([0x66,0x72,0x6f,0x6d])](_0x346f89(_0x10fb31),_0x2e684=>_0x2e684[_0x2d3e9c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47b0f5=new window[(_0x2d3e9c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d3e9c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xe40c0c+_0x2d3e9c([0x2e])+_0x5d1ee4),_0x69c993=window[_0x2d3e9c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d3e9c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x69c993)return;const _0xb71e5d=await _0x69c993[_0x2d3e9c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d3e9c([0x6a,0x77,0x6b]),_0x264be7,{[_0x2d3e9c([0x6e,0x61,0x6d,0x65])]:_0x2d3e9c([0x45,0x43,0x44,0x53,0x41]),[_0x2d3e9c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d3e9c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d3e9c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x69c993[_0x2d3e9c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d3e9c([0x6e,0x61,0x6d,0x65])]:_0x2d3e9c([0x45,0x43,0x44,0x53,0x41]),[_0x2d3e9c([0x68,0x61,0x73,0x68])]:{[_0x2d3e9c([0x6e,0x61,0x6d,0x65])]:_0x2d3e9c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb71e5d,_0x1b53c4,_0x47b0f5)||(_0x3f5aea=!0x1);}}());return _0x3db1ae?(function(){const _0x40f8aa=_0x4f8cfb[_0x2d3e9c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x40f8aa)return!0x1;if(_0x40f8aa[_0x2d3e9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d3e9c([0x2a])))return!0x0;if(_0x40f8aa[_0x2d3e9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d3e9c([0x46,0x4f,0x4f])))return!0x0;return!0x1;}())?(function(){const _0x3c85bf=[_0x2d3e9c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d3e9c([0x74,0x72,0x69,0x61,0x6c])][_0x2d3e9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f8cfb[_0x2d3e9c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45434c/0x3e8:0x69b0b080;return _0x4f8cfb[_0x2d3e9c([0x65,0x78,0x70])]<_0x3c85bf;}())?_0x2d3e9c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x472208=_0x4f8cfb[_0x2d3e9c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x472208||0x0==_0x472208[_0x2d3e9c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x207bab}=new URL(window[_0x2d3e9c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x472208[_0x2d3e9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x207bab))return!0x0;const _0x49ea81=_0x207bab[_0x2d3e9c([0x73,0x70,0x6c,0x69,0x74])](_0x2d3e9c([0x2e]));return _0x472208[_0x2d3e9c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46e478=>_0x46e478[_0x2d3e9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d3e9c([0x2a])))[_0x2d3e9c([0x6d,0x61,0x70])](_0x1d8898=>_0x1d8898[_0x2d3e9c([0x73,0x70,0x6c,0x69,0x74])](_0x2d3e9c([0x2e])))[_0x2d3e9c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x428210=>_0x428210[_0x2d3e9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49ea81[_0x2d3e9c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d3e9c([0x6d,0x61,0x70])](_0x55e4fa=>Array(_0x49ea81[_0x2d3e9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x55e4fa[_0x2d3e9c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d3e9c([0x66,0x69,0x6c,0x6c])](_0x55e4fa[0x0]===_0x2d3e9c([0x2a])?_0x2d3e9c([0x2a]):'')[_0x2d3e9c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x55e4fa))[_0x2d3e9c([0x73,0x6f,0x6d,0x65])](_0x2cfb8c=>_0x49ea81[_0x2d3e9c([0x65,0x76,0x65,0x72,0x79])]((_0x36c152,_0x28a15b)=>_0x2cfb8c[_0x28a15b]===_0x36c152||_0x2cfb8c[_0x28a15b]===_0x2d3e9c([0x2a])));}())?(_0x4f8cfb[_0x2d3e9c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d3e9c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x714639=function(_0xe7b2a3){const _0x6844c2=new window[(_0x2d3e9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21a10d=>setTimeout(_0x21a10d,0x93ecc)),_0x292d45=_0x2ad2ca[_0x2d3e9c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d3e9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb91d03=>{let _0x2e89f1=0x0;_0x507788[_0x2d3e9c([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d3e9c([0x6f,0x6e])](_0x2d3e9c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f98b4,_0x946fb8)=>{_0x946fb8[0x0][_0x2d3e9c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2e89f1++,0x5e8==_0x2e89f1&&(_0xb91d03(),_0x2f98b4[_0x2d3e9c([0x6f,0x66,0x66])]());});})),_0x135708=[_0x6844c2,_0x292d45];return window[_0x2d3e9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d3e9c([0x72,0x61,0x63,0x65])](_0x135708)[_0x2d3e9c([0x74,0x68,0x65,0x6e])](()=>_0xe7b2a3);}(_0x2d3e9c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x714639&&_0x55ca34)return new window[(_0x2d3e9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46d677,_0x373f97)=>{_0x714639[_0x2d3e9c([0x74,0x68,0x65,0x6e])](_0x46d677,_0x373f97),_0x55ca34[_0x2d3e9c([0x74,0x68,0x65,0x6e])](_0x4a47b8=>{_0x4a47b8!=_0x2d3e9c([0x56,0x61,0x6c,0x69,0x64])&&_0x46d677(_0x4a47b8);},_0x373f97);});return _0x714639||_0x55ca34||_0x2d3e9c([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2d3e9c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d3e9c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d3e9c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2d3e9c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x39e0f6(_0x5603ca){return _0x5603ca[_0x2d3e9c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d3e9c([0x65,0x79]))?JSON[_0x2d3e9c([0x70,0x61,0x72,0x73,0x65])](_0x346f89(_0x5603ca)):null;}function _0x346f89(_0x1d9746){return window[_0x2d3e9c([0x61,0x74,0x6f,0x62])](_0x1d9746[_0x2d3e9c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d3e9c([0x2b]))[_0x2d3e9c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d3e9c([0x2f])));}function _0xbca698(_0x133650){let _0x2a51bf=0x1505;function _0x255604(_0x132a76){for(let _0xd27e73=0x0;_0xd27e73<_0x132a76[_0x2d3e9c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd27e73++){const _0x2fa568=_0x132a76[_0x2d3e9c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd27e73);_0x2a51bf=(_0x2a51bf<<0x5)+_0x2a51bf+_0x2fa568,_0x2a51bf&=_0x2a51bf;}}return function _0x4444cb(_0x53e5df){Array[_0x2d3e9c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53e5df)?_0x53e5df[_0x2d3e9c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4444cb):_0x53e5df&&typeof _0x53e5df==_0x2d3e9c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d3e9c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53e5df)[_0x2d3e9c([0x73,0x6f,0x72,0x74])]()[_0x2d3e9c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x97ed96,_0x267031])=>{_0x255604(_0x97ed96),_0x4444cb(_0x267031);}):_0x255604(window[_0x2d3e9c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53e5df));}(_0x133650),_0x2a51bf>>>0x0;}function _0x2d8ca0(_0x5b4dc6){return _0x5b4dc6[_0x2d3e9c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d3e9c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d3e9c([0x30]));}function _0x28a8e7(_0x4ca2f4){return _0x4ca2f4[_0x2d3e9c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d3e9c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d3e9c([0x6a,0x6f,0x69,0x6e])]('');}function _0x28a123(){}function _0x2d3e9c(_0x17bb94){return _0x17bb94['map'](_0x264533=>String['fromCharCode'](_0x264533))['join']('');}!function(_0x3606ce){const _0x5c179d=(function(){const _0x58646b=window[_0x2d3e9c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d3e9c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d3e9c([0x6e,0x6f,0x77])]())[_0x2d3e9c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d3e9c([0x2e]),'');let _0x4abb76=_0x2d3e9c([0x75]);for(let _0x1dedf7=0x0;_0x1dedf7<_0x58646b[_0x2d3e9c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dedf7+=0x2){let _0xdf8152=window[_0x2d3e9c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58646b[_0x2d3e9c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1dedf7,_0x1dedf7+0x2));_0xdf8152>=_0x2903c0[_0x2d3e9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xdf8152-=_0x2903c0[_0x2d3e9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4abb76+=_0x2903c0[_0xdf8152];}return _0x4abb76;}());_0x507788[_0x5c179d]=_0x2d3e9c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3606ce,_0x3606ce!=_0x2d3e9c([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2ad2ca,_0x507788[_0x2d3e9c([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d3e9c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28a123,_0x507788[_0x2d3e9c([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d3e9c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28a123,_0x507788[_0x2d3e9c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d3e9c([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x55e99f);}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:_0x3c298f}=this,{plugins:_0x40f766,model:_0x97536b}=_0x3c298f,_0x5ecd5b=_0x40f766['get'](ClipboardPipeline),_0x49bf6e=_0x40f766['get'](FootnotesTracker);this['listenTo'](_0x5ecd5b,'outputTransformation',(_0x1e3386,_0x45cbda)=>{const _0x2337bb=pickAllFootnotesRefsIdsFromRange(_0x97536b['createRangeIn'](_0x45cbda['content']));if(!_0x2337bb['length'])return;const _0x3d0156=_0x49bf6e['getFootnotes'](),_0x180d63=_0x2337bb['reduce']((_0x110288,_0x2c4c3a)=>{const _0xd49f83=_0x3d0156['find'](_0x5f3209=>_0x5f3209['id']===_0x2c4c3a);if(_0xd49f83){const _0x411c8d=_0x3c298f['data']['toView'](_0xd49f83['definition'],{'isClipboardPipeline':!0x0}),_0x29f3d9=_0x3c298f['data']['htmlProcessor']['toData'](_0x411c8d);_0x110288[_0xd49f83['id']]=_0x29f3d9;}return _0x110288;},Object['create'](null));_0x45cbda['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x180d63));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x11daa7}=this,{model:_0x30a5dc,plugins:_0x1a197d}=_0x11daa7,{view:_0x182ed1}=_0x11daa7['editing'],_0x542b5e=_0x1a197d['get'](ClipboardPipeline),_0x4d4822=_0x1a197d['get'](FootnotesTracker),_0x12e34b=_0x11daa7['config']['get']('footnotes.multiBlock');let _0x59e5df=null;this['listenTo'](_0x182ed1['document'],'clipboardInput',(_0x5e4c52,_0x55ca71)=>{const _0x418551=_0x55ca71['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x59e5df=_0x418551?JSON['parse'](_0x418551):null;}),this['listenTo'](_0x542b5e,'contentInsertion',(_0x48efd1,_0x26a2ff)=>{const _0xd5258=_0x26a2ff['sourceEditorId']===this['editor']['id'];_0xd5258&&'drop'===_0x26a2ff['method']||_0x30a5dc['change'](_0xf86864=>{let _0x2062fd=_0x4d4822['getFootnotesDefinitionsObjectElement']();const _0xfa493f=!!_0x2062fd&&Array['from'](_0x30a5dc['document']['selection']['getSelectedBlocks']())['includes'](_0x2062fd);if(!_0x59e5df&&areThereFootnotesRefsInRange(_0x30a5dc['createRangeIn'](_0x26a2ff['content']))&&(_0x59e5df=extractFootnotesDefinitionsFromContent(_0xf86864,_0x26a2ff['content'])),(_0x2062fd&&!_0xfa493f||!_0x2062fd&&!_0x59e5df)&&removeFootnoteDefinitionsFromFragment(_0xf86864,_0x26a2ff['content']),!_0x59e5df)return;const {selection:_0x1becbc}=_0x30a5dc['document'],_0x9acd9e=_0x1becbc['getFirstRange']()['root'];_0x2062fd&&!_0xfa493f||(_0x2062fd=findFootnoteDefinitionsElementInFragment(_0xf86864,_0x26a2ff['content']),_0x2062fd||=_0x4d4822['_insertEmptyFootnotesDefinitionsContainer'](_0xf86864,_0x9acd9e));const _0x3c1938=Array['from'](_0x1becbc['getRanges']())['flatMap'](pickAllFootnotesRefsIdsFromRange),_0x312fd1=regenerateFootnoteIdsInFragment(_0xf86864,_0x26a2ff['content'],_0x5c8efe=>{if(!_0xd5258)return!0x0;return!!_0x4d4822['getFootnote'](_0x5c8efe)&&!_0x3c1938['includes'](_0x5c8efe);});for(const [_0x15cc0f,_0x3ede0e]of Object['entries'](_0x59e5df)){const _0x57f86e=_0x312fd1[_0x15cc0f]||_0x15cc0f;let _0x353b8c;if('string'!=typeof _0x3ede0e)_0x353b8c=_0x3ede0e,_0x57f86e!==_0x15cc0f&&_0xf86864['setAttribute']('footnoteId',_0x57f86e,_0x353b8c);else{_0x353b8c=_0xf86864['createElement']('footnoteDefinition',{'footnoteId':_0x57f86e});const _0x2f29bb=_0x11daa7['data']['htmlProcessor']['toView'](_0x3ede0e);let _0xa29f6e;if(_0x12e34b)_0xa29f6e=_0x11daa7['data']['toModel'](_0x2f29bb,_0x353b8c);else{_0xa29f6e=_0xf86864['createElement']('footnoteInlineContent');const _0x1d56a2=_0x11daa7['data']['toModel'](_0x2f29bb,_0xa29f6e);_0xf86864['insert'](_0x1d56a2,_0xa29f6e);}_0xf86864['append'](_0xa29f6e,_0x353b8c);}_0xf86864['insert'](_0x353b8c,_0x2062fd,'end');}_0x59e5df=null;});});}}function removeFootnoteDefinitionsFromFragment(_0x3b8eac,_0x396746){const _0x2d048c=[];for(const {item:_0x351562}of _0x3b8eac['createRangeIn'](_0x396746))_0x351562['is']('element','footnotesDefinitions')&&_0x2d048c['push'](_0x351562);for(const _0x2d62dc of _0x2d048c)_0x3b8eac['remove'](_0x2d62dc);}function findFootnoteDefinitionsElementInFragment(_0x6a031c,_0x7d8c45){for(const {item:_0x28c23f}of _0x6a031c['createRangeIn'](_0x7d8c45))if(_0x28c23f['is']('element','footnotesDefinitions'))return _0x28c23f;return null;}function pickAllFootnotesRefsIdsFromRange(_0x10ad82){const _0x3a122d=new Set();for(const {item:_0x45529e}of _0x10ad82)_0x45529e['is']('element','footnoteRef')&&_0x3a122d['add'](_0x45529e['getAttribute']('footnoteId'));return Array['from'](_0x3a122d);}function areThereFootnotesRefsInRange(_0x3547cf){for(const {item:_0x7dad5d}of _0x3547cf)if(_0x7dad5d['is']('element','footnoteRef'))return!0x0;return!0x1;}function extractFootnotesDefinitionsFromContent(_0x33f638,_0x20f3d9){const _0x5c127e=findFootnoteDefinitionsElementInFragment(_0x33f638,_0x20f3d9);if(!_0x5c127e)return null;const _0x11bac8=Object['create'](null);for(const _0x50b057 of _0x5c127e['getChildren']())_0x50b057['is']('element','footnoteDefinition')&&_0x50b057['hasAttribute']('footnoteId')&&(_0x11bac8[_0x50b057['getAttribute']('footnoteId')]=_0x33f638['cloneElement'](_0x50b057,!0x0));return Object['keys'](_0x11bac8)['length']?_0x11bac8:null;}function regenerateFootnoteIdsInFragment(_0x169575,_0x78c6d8,_0x431003){const _0x39887c=Object['create'](null);for(const {item:_0x244dd0}of _0x169575['createRangeIn'](_0x78c6d8))if(_0x244dd0['is']('element','footnoteRef')){const _0xe9a437=_0x244dd0['getAttribute']('footnoteId');if(!_0x431003(_0xe9a437))continue;_0x39887c[_0xe9a437]||(_0x39887c[_0xe9a437]=uid()),_0x169575['setAttribute']('footnoteId',_0x39887c[_0xe9a437],_0x244dd0);}return _0x39887c;}class FootnotesUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c24bb}=this,{componentFactory:_0x2f65db}=_0x3c24bb['ui'];_0x2f65db['add']('insertFootnote',getInsertFootnoteButtonCreator(_0x3c24bb,ButtonView)),_0x2f65db['add']('menuBar:insertFootnote',getInsertFootnoteButtonCreator(_0x3c24bb,MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x37fe53=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2411b4;for(const _0x3ff571 in _0x37fe53){const _0x59e845=_0x3ff571,_0x32db59=_0x37fe53[_0x59e845];if('footnotesLicenseKeyValid'==_0x32db59||'footnotesLicenseKeyInvalid'==_0x32db59||'footnotesLicenseKeyExpired'==_0x32db59||'footnotesLicenseKeyDomainLimit'==_0x32db59||'footnotesLicenseKeyNotAllowed'==_0x32db59||'footnotesLicenseKeyEvaluationLimit'==_0x32db59||'footnotesLicenseKeyUsageLimit'==_0x32db59){delete _0x37fe53[_0x59e845],_0x2411b4=_0x32db59,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2411b4&&_0x37fe53['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2411b4&&_0x37fe53['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2411b4&&_0x37fe53['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2411b4&&_0x37fe53['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2411b4&&_0x37fe53['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x2411b4&&_0x37fe53['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getInsertFootnoteButtonCreator(_0xf1ca9a,_0x28a4ef){const _0x151f46=_0xf1ca9a['commands']['get']('insertFootnote');return _0x43495e=>{const {t:t}=_0x43495e,_0x230894=new _0x28a4ef(_0x43495e),_0x277e83=_0x230894 instanceof MenuBarMenuListItemButtonView;return _0x230894['bind']('isEnabled')['to'](_0x151f46,'isEnabled'),_0x230894['set']({'label':t(_0x277e83?'Footnote':'Insert\x20footnote'),'icon':IconFootnote,'tooltip':!0x0}),_0x230894['on']('execute',()=>{_0x151f46['execute'](),_0xf1ca9a['editing']['view']['focus']();}),_0x230894;};}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 _0x210666{['refresh'](){const {editor:_0x9f0196}=this,_0x3de788=_0x9f0196['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3de788,this['value']=_0x3de788?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5730e9}){const {editor:_0x40080d}=this,_0x107304=_0x40080d['plugins']['get'](FootnotesTracker),_0x134eb8=_0x107304['getFootnotesDefinitionsObjectElement']();_0x134eb8&&FOOTNOTES_DEFINITIONS_STYLES['includes'](_0x5730e9)&&_0x40080d['model']['change'](_0x3eb617=>{_0x3eb617['setAttribute']('footnotesListStyle',_0x5730e9,_0x134eb8),_0x107304['_updateFootnotesCounters'](_0x3eb617);});}}class FootnotesStartCommand extends _0x210666{['refresh'](){const {editor:_0x478354}=this,_0x8a23f4=_0x478354['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x8a23f4,this['value']=_0x8a23f4?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x264fcb}){const {editor:_0xbc2072}=this,_0x4d44b9=_0xbc2072['plugins']['get'](FootnotesTracker),_0x37bd0e=_0x4d44b9['getFootnotesDefinitionsObjectElement']();_0x37bd0e&&Number['isInteger'](_0x264fcb)&&_0xbc2072['model']['change'](_0xe86a8f=>{_0xe86a8f['setAttribute']('footnotesListStart',_0x264fcb,_0x37bd0e),_0x4d44b9['_updateFootnotesCounters'](_0xe86a8f);});}}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:_0x2b8918}=this;_0x2b8918['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2b8918['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2b8918['commands']['add']('footnotesStyle',new FootnotesStyleCommand(_0x2b8918)),_0x2b8918['commands']['add']('footnotesStart',new FootnotesStartCommand(_0x2b8918)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x264838}=this,{schema:_0x1f5097}=_0x264838['model'];_0x1f5097['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1804f7}=this,{conversion:_0x545a4a,model:_0x42bbde}=_0x1804f7,{schema:_0x44da4d}=_0x42bbde;_0x545a4a['for']('upcast')['add'](_0x47c24e=>{_0x47c24e['on']('element:ol',(_0x5119ac,_0x1ba8df,_0x52b83f)=>{const _0x58d381=_0x1ba8df['viewItem'],_0x2fb971=_0x1ba8df['modelCursor']?.['parent'];_0x58d381['hasClass']('footnotes-list')&&_0x2fb971?.['is']('element','footnotesDefinitions')&&(upcastFootnotesListStart(_0x58d381,_0x2fb971,_0x52b83f,_0x44da4d),upcastFootnotesListStyle(_0x58d381,_0x2fb971,_0x52b83f,_0x44da4d));});}),_0x545a4a['for']('downcast')['add'](_0x3d9c52=>{_0x3d9c52['on']('attribute:footnotesListStart:footnotesDefinitions',downcastFootnotesListStart()),_0x3d9c52['on']('attribute:footnotesListStyle:footnotesDefinitions',downcastFootnotesListStyle());});}['_definePostfixer'](){const {editor:_0x224978}=this,{model:_0x4bd0e1}=_0x224978,_0x320d48=_0x224978['plugins']['get'](FootnotesTracker),_0x5d4f23=this['_getDefaultListStyle'](),_0x152587=this['_getDefaultStartIndex']();_0x4bd0e1['document']['registerPostFixer'](_0x4572cd=>{const _0x58e88a=_0x4bd0e1['document']['differ']['getChanges']();let _0xdff594=!0x1;for(const _0x39839b of _0x58e88a){if('insert'!==_0x39839b['type']||'$text'===_0x39839b['name'])continue;const _0x179c45=_0x4bd0e1['createRangeOn'](_0x39839b['position']['nodeAfter']);for(const _0x3bf324 of _0x179c45['getItems']())_0x3bf324['is']('element','footnotesDefinitions')&&(!_0x3bf324['hasAttribute']('footnotesListStart')&&_0x4bd0e1['schema']['checkAttribute'](_0x3bf324,'footnotesListStart')&&(_0x4572cd['setAttribute']('footnotesListStart',_0x152587,_0x3bf324),_0xdff594=!0x0),!_0x3bf324['hasAttribute']('footnotesListStyle')&&_0x4bd0e1['schema']['checkAttribute'](_0x3bf324,'footnotesListStyle')&&(_0x4572cd['setAttribute']('footnotesListStyle',_0x5d4f23,_0x3bf324),_0xdff594=!0x0));}return _0xdff594&&_0x320d48['_updateFootnotesCounters'](_0x4572cd),_0xdff594;});}['_defineFormatter'](){const {editor:_0x430f8f}=this;_0x430f8f['plugins']['get'](FootnotesTracker)['setFootnoteFormatter'](_0x293521=>this['_formatFootnoteListValue'](_0x293521));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x201bfb,value:_0x349ed9,digits:_0x221fc5}){const _0x46f795=_0x201bfb['getAttribute']('footnotesListStyle'),_0x9be6f9=_0x201bfb['getAttribute']('footnotesListStart'),_0x571df4=Math['floor'](_0x349ed9)+(_0x9be6f9??0x1)-0x1;switch(_0x46f795){case'decimal-leading-zero':return formatDecimalLeadingZero(_0x571df4,Math['max'](0x2,_0x221fc5));case'lower-alpha':case'lower-latin':return toLatin(_0x571df4,!0x1);case'upper-alpha':case'upper-latin':return toLatin(_0x571df4,!0x0);case'lower-roman':return toRoman(_0x571df4,!0x1);case'upper-roman':return toRoman(_0x571df4,!0x0);default:return String(_0x571df4);}}}function upcastFootnotesListStart(_0x5a786c,_0x8a5b20,_0x51e59f,_0x29ca76){if(!_0x29ca76['checkAttribute'](_0x8a5b20,'footnotesListStart'))return;let _0x27d116=0x1;const _0x21d24d=_0x51e59f['consumable']['consume'](_0x5a786c,{'attributes':'start'});if(_0x21d24d){const _0x36e62e=Number['parseInt'](_0x5a786c['getAttribute']('start'),0xa);Number['isNaN'](_0x36e62e)||(_0x27d116=_0x36e62e);}!_0x21d24d&&_0x8a5b20['hasAttribute']('footnotesListStart')||_0x51e59f['writer']['setAttribute']('footnotesListStart',_0x27d116,_0x8a5b20);}function upcastFootnotesListStyle(_0x3da21e,_0x167ed6,_0x37309d,_0x2a6bb4){if(!_0x2a6bb4['checkAttribute'](_0x167ed6,'footnotesListStyle'))return;let _0x31e209='decimal',_0x2cc92a=!0x1;if(_0x37309d['consumable']['consume'](_0x3da21e,{'attributes':'type'})){const _0x5c7e67={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x3da21e['getAttribute']('type')];_0x5c7e67&&(_0x31e209=_0x5c7e67),_0x2cc92a=!0x0;}_0x37309d['consumable']['consume'](_0x3da21e,{'styles':'list-style-type'})&&(_0x31e209=normalizeFootnotesListStyle(_0x3da21e['getStyle']('list-style-type')),_0x2cc92a=!0x0),!_0x2cc92a&&_0x167ed6['hasAttribute']('footnotesListStyle')||_0x37309d['writer']['setAttribute']('footnotesListStyle',_0x31e209,_0x167ed6);}function normalizeFootnotesListStyle(_0x45671c){switch(_0x45671c){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x45671c;}}function downcastFootnotesListStart(){return(_0x84f692,_0x4fde4d,_0x228233)=>{if(!_0x228233['consumable']['consume'](_0x4fde4d['item'],_0x84f692['name']))return;const _0x12de8c=getOlElementFromFootnotesDefinitions(_0x4fde4d['item'],_0x228233['mapper']),{attributeNewValue:_0x54af0}=_0x4fde4d;null==_0x54af0||0x1===_0x54af0?_0x228233['writer']['removeAttribute']('start',_0x12de8c):_0x228233['writer']['setAttribute']('start',String(_0x54af0),_0x12de8c);};}function downcastFootnotesListStyle(){return(_0x57279f,_0x20b8b8,_0x2ae697)=>{if(!_0x2ae697['consumable']['consume'](_0x20b8b8['item'],_0x57279f['name']))return;const _0x329432=getOlElementFromFootnotesDefinitions(_0x20b8b8['item'],_0x2ae697['mapper']),{attributeNewValue:_0x49face}=_0x20b8b8;_0x49face&&'decimal'!==_0x49face?_0x2ae697['writer']['setStyle']('list-style-type',_0x49face,_0x329432):_0x2ae697['writer']['removeStyle']('list-style-type',_0x329432);};}function getOlElementFromFootnotesDefinitions(_0x2bd45d,_0x327e07){const _0x219960=_0x327e07['toViewElement'](_0x2bd45d);return Array['from'](_0x219960['getChildren']())['find'](_0x2d8e8a=>_0x2d8e8a['is']('element','ol')&&_0x2d8e8a['hasClass']('footnotes-list'));}function formatDecimalLeadingZero(_0x52772d,_0x55c5e1){return String(_0x52772d)['padStart'](_0x55c5e1,'0');}function toLatin(_0x4344d3,_0x444bef){let _0x1bf091='',_0x54e33d=_0x4344d3;for(;_0x54e33d>0x0;){const _0x4dc404=(_0x54e33d-0x1)%0x1a;_0x1bf091=String['fromCharCode'](0x61+_0x4dc404)+_0x1bf091,_0x54e33d=Math['floor']((_0x54e33d-0x1)/0x1a);}return _0x444bef?_0x1bf091['toUpperCase']():_0x1bf091;}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(_0x315403,_0x44a682){let _0x53b8cc='',_0x507309=_0x315403;for(const {value:_0x224fed,numeral:_0x51aa2e}of ROMAN_MAP)for(;_0x507309>=_0x224fed;)_0x53b8cc+=_0x51aa2e,_0x507309-=_0x224fed;return _0x44a682?_0x53b8cc:_0x53b8cc['toLowerCase']();}class FootnotesDefinitionsPropertiesView extends View{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0x48ac31,{styleButtonViews:_0x53b7ca,styleGridAriaLabel:_0x4f4162}){super(_0x48ac31),(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'](_0x53b7ca,_0x4f4162),[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 _0x24f137 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x24f137['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x42cc73['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 _0x31cec1=_0xfffdcf=>_0xfffdcf['stopPropagation']();this['keystrokes']['set']('arrowright',_0x31cec1),this['keystrokes']['set']('arrowleft',_0x31cec1),this['keystrokes']['set']('arrowup',_0x31cec1),this['keystrokes']['set']('arrowdown',_0x31cec1);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x52f1b7,_0x1d8346){const _0xd6fca4=new View(this['locale']);return _0xd6fca4['children']=_0xd6fca4['createCollection'](),_0xd6fca4['children']['addMany'](_0x52f1b7),_0xd6fca4['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1d8346,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0xd6fca4['children']}),_0xd6fca4['children']['delegate']('execute')['to'](this),_0xd6fca4['focus']=function(){for(const _0x2d61a6 of this['children'])if(_0x2d61a6 instanceof ButtonView&&_0x2d61a6['isOn'])return void _0x2d61a6['focus']();this['children']['first']['focus']();},_0xd6fca4['focusTracker']=new FocusTracker(),_0xd6fca4['keystrokes']=new KeystrokeHandler(),_0xd6fca4['render'](),_0xd6fca4['keystrokes']['listenTo'](_0xd6fca4['element']),this['children']['add'](_0xd6fca4),_0xd6fca4;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x15bc81=this['_createStartIndexPropertyView'](),_0x491b98=[_0x15bc81],_0x170b51=new CollapsibleView(this['locale'],_0x491b98);return _0x170b51['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x170b51['buttonView']['bind']('isEnabled')['toMany'](_0x491b98,'isEnabled',(..._0x1ad87a)=>_0x1ad87a['some'](_0x478d82=>_0x478d82)),_0x170b51['buttonView']['on']('change:isEnabled',(_0x5006fd,_0x31a6f5,_0x20b467)=>{_0x20b467||(_0x170b51['isCollapsed']=!0x0);}),this['children']['add'](_0x170b51),[_0x15bc81,_0x170b51];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3e77c1=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0x3e77c1['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3e77c1['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3e77c1['fieldView']['on']('input',()=>{const _0x276b61=_0x3e77c1['fieldView']['element'],_0x4cc0ff=_0x276b61['valueAsNumber'];Number['isNaN'](_0x4cc0ff)?_0x3e77c1['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x276b61['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x4cc0ff}):_0x3e77c1['errorText']=t(_0x4cc0ff<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3e77c1;}}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:_0x9504a4}=this,{componentFactory:_0x2e4062}=_0x9504a4['ui'];_0x9504a4['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2e4062['add']('footnotesStyle',getFootnotesStyleDropdownViewCreator(_0x9504a4));}['afterInit'](){const {editor:_0x302fdc}=this,{t:t}=_0x302fdc['locale'],_0x55842d=_0x302fdc['plugins']['get'](WidgetToolbarRepository),{defaultPositions:_0x513775}=BalloonPanelView;_0x55842d['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x302fdc['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x281cce=>{let _0x4a7b0e=_0x281cce['getFirstPosition']()?.['parent'];return _0x4a7b0e?.['is']('$text')&&(_0x4a7b0e=_0x4a7b0e['parent']),_0x4a7b0e?.['is']('element')?_0x4a7b0e['findAncestor'](isFootnotesDefinitionsWidget):null;},'positions':[_0x513775['southArrowNorth'],_0x513775['southArrowNorthMiddleWest'],_0x513775['southArrowNorthMiddleEast'],_0x513775['southArrowNorthWest'],_0x513775['southArrowNorthEast'],_0x513775['northArrowSouth'],_0x513775['northArrowSouthMiddleWest'],_0x513775['northArrowSouthMiddleEast'],_0x513775['northArrowSouthWest'],_0x513775['northArrowSouthEast'],_0x513775['viewportStickyNorth']]});}}function getFootnotesStyleDropdownViewCreator(_0x1717ab){return _0x32628c=>{const {t:t}=_0x32628c,_0x35194e=_0x1717ab['commands']['get']('footnotesStyle'),_0x284396=createDropdown(_0x32628c),{buttonView:_0x555502}=_0x284396;return _0x284396['class']='ck-footnotes-styles-dropdown',_0x284396['bind']('isEnabled')['to'](_0x35194e,'isEnabled'),_0x555502['set']({'label':t('Footnotes\x20style'),'icon':IconFootnote,'tooltip':!0x0}),_0x284396['once']('change:isOpen',()=>{const _0xbc9cd=createFootnotesDefinitionsPropertiesView({'editor':_0x1717ab,'dropdownView':_0x284396});_0x284396['panelView']['children']['add'](_0xbc9cd);}),_0x284396;};}function createFootnotesDefinitionsPropertiesView({editor:_0x2b20eb,dropdownView:_0x8c0339}){const {t:t}=_0x2b20eb['locale'],_0x3401fa=t('Footnotes\x20definitions\x20styles'),_0x263e69=createFootnotesDefinitionStyleButtons(_0x2b20eb),_0x25640d=new FootnotesDefinitionsPropertiesView(_0x2b20eb['locale'],{'styleGridAriaLabel':_0x3401fa,'styleButtonViews':_0x263e69}),_0x154c0a=_0x2b20eb['commands']['get']('footnotesStart');return _0x25640d['startIndexFieldView']['bind']('isEnabled')['to'](_0x154c0a),_0x25640d['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x154c0a),_0x25640d['on']('footnotesListStart',(_0x5a4684,_0x417fdd)=>{_0x2b20eb['execute']('footnotesStart',{'value':_0x417fdd['startIndex']});}),_0x25640d['delegate']('execute')['to'](_0x8c0339),_0x25640d;}function createFootnotesDefinitionStyleButtons(_0x570e4b){const t=_0x570e4b['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(_0x570e4b));}function getFootnoteStyleButtonCreator(_0x52bfb5){const _0x24295d=_0x52bfb5['locale'];return({label:_0x13c08f,icon:_0x30582a,tooltip:_0x25f796,style:_0x5f4a54})=>{const _0x54a290=_0x52bfb5['commands']['get']('footnotesStyle'),_0x5e01fd=new ButtonView(_0x24295d);return _0x5e01fd['set']({'label':_0x13c08f,'icon':_0x30582a,'tooltip':_0x25f796}),_0x5e01fd['bind']('isOn')['to'](_0x54a290,'value',_0x21ce10=>_0x21ce10===_0x5f4a54),_0x5e01fd['bind']('isEnabled')['to'](_0x54a290,'isEnabled'),_0x5e01fd['on']('execute',()=>{_0x52bfb5['execute']('footnotesStyle',{'value':_0x5f4a54}),_0x52bfb5['editing']['view']['focus']();}),_0x5e01fd;};}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 _0x210666{constructor(_0x1c1e2c){super(_0x1c1e2c),this['value']=void 0x0,this['on']('change:isEnabled',(_0x3d9496,_0x16a72e,_0x1d95d5)=>{_0x1d95d5||this['reset']();}),this['on']('change:value',()=>_0x1c1e2c['commands']['get'](PASTE_FORMAT_COMMAND_NAME)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x5527d9=this['editor']['model'],_0x289454=_0x5527d9['document']['selection'];return Object['fromEntries'](Array['from'](_0x289454['getAttributes']())['filter'](([_0x42a596])=>_0x5527d9['schema']['getAttributeProperties'](_0x42a596)['isFormatting']));}}class PasteFormatCommand extends _0x210666{constructor(_0x517100){super(_0x517100),this['_removeFormatCommand']=new RemoveFormatCommandAlias(_0x517100);}['execute'](_0xccbee={}){const _0x253c59=this['editor']['model'],_0x5dc6a5=_0x253c59['document']['selection'],_0x35973d=Array['from'](_0x5dc6a5['getRanges']()),_0x4224a1=_0x5dc6a5['isCollapsed']?[this['_createRangeOnEntireWord'](_0x253c59,_0x5dc6a5)]:_0x35973d;_0x253c59['change'](_0x3b8f61=>{_0x3b8f61['setSelection'](_0x4224a1),this['_removeFormatCommand']['execute']();for(const _0x252413 in _0xccbee)for(const _0x434b12 of _0x253c59['schema']['getValidRanges'](_0x4224a1,_0x252413))_0x3b8f61['setAttribute'](_0x252413,_0xccbee[_0x252413],_0x434b12);_0x3b8f61['setSelection'](_0x35973d);});}['_createRangeOnEntireWord'](_0x2f7232,_0x50d958){const _0x2d9797=_0x2f7232['createSelection'](_0x50d958);_0x2f7232['modifySelection'](_0x2d9797,{'unit':'word','direction':'backward'});const _0xadcdbc=_0x2d9797['getFirstPosition']();_0x2f7232['modifySelection'](_0x2d9797,{'unit':'word','direction':'forward'});const _0x285795=_0x2d9797['getLastPosition']();return _0x2f7232['createRange'](_0xadcdbc,_0x285795);}}class RemoveFormatCommandAlias extends _0x210666{['execute'](){const _0x15840e=this['editor']['model'],_0x1c8c8b=_0x15840e['schema'];_0x15840e['change'](_0x26621e=>{for(const _0x32ac68 of this['_getFormattingItems'](_0x15840e['document']['selection'],_0x1c8c8b))if(_0x32ac68['is']('selection')){for(const _0x3fffc2 of this['_getFormattingAttributes'](_0x32ac68,_0x1c8c8b))_0x26621e['removeSelectionAttribute'](_0x3fffc2);}else{const _0x41cfe0=_0x26621e['createRangeOn'](_0x32ac68);for(const _0x588a5b of this['_getFormattingAttributes'](_0x32ac68,_0x1c8c8b))_0x26621e['removeAttribute'](_0x588a5b,_0x41cfe0);}});}*['_getFormattingItems'](_0x2ab0d8,_0x17ca21){const _0x104f96=_0x123848=>!!first(this['_getFormattingAttributes'](_0x123848,_0x17ca21));for(const _0x3fb85c of _0x2ab0d8['getRanges']())for(const _0x1b6753 of _0x3fb85c['getItems']())!_0x17ca21['isBlock'](_0x1b6753)&&_0x104f96(_0x1b6753)&&(yield _0x1b6753);for(const _0x5af919 of _0x2ab0d8['getSelectedBlocks']())_0x104f96(_0x5af919)&&(yield _0x5af919);_0x104f96(_0x2ab0d8)&&(yield _0x2ab0d8);}*['_getFormattingAttributes'](_0x417b2e,_0x14cc04){for(const [_0x247fd1]of _0x417b2e['getAttributes']()){const _0x1d98be=_0x14cc04['getAttributeProperties'](_0x247fd1);_0x1d98be&&_0x1d98be['isFormatting']&&(yield _0x247fd1);}}}class FormatPainterEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x35885b=this['editor'];_0x35885b['commands']['add'](COPY_FORMAT_COMMAND_NAME,new CopyFormatCommand(_0x35885b)),_0x35885b['commands']['add'](PASTE_FORMAT_COMMAND_NAME,new PasteFormatCommand(_0x35885b)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x41d8d4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3448c3;for(const _0x11d28c in _0x41d8d4){const _0x17ba3f=_0x11d28c,_0x48344c=_0x41d8d4[_0x17ba3f];if('formatPainterLicenseKeyValid'==_0x48344c||'formatPainterLicenseKeyInvalid'==_0x48344c||'formatPainterLicenseKeyExpired'==_0x48344c||'formatPainterLicenseKeyDomainLimit'==_0x48344c||'formatPainterLicenseKeyNotAllowed'==_0x48344c||'formatPainterLicenseKeyEvaluationLimit'==_0x48344c||'formatPainterLicenseKeyUsageLimit'==_0x48344c){delete _0x41d8d4[_0x17ba3f],_0x3448c3=_0x48344c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x3448c3&&_0x41d8d4['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x3448c3&&_0x41d8d4['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x3448c3&&_0x41d8d4['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x3448c3&&_0x41d8d4['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x3448c3&&_0x41d8d4['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x3448c3&&_0x41d8d4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getTranslation$b(_0x188c54,_0x26efb7){const t=_0x188c54['t'];switch(_0x26efb7){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 _0x26efb7;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
DomEmitterMixin(Plugin){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x121d4c=this['editor'];_0x121d4c['editing']['view']['addObserver'](ClickObserver),_0x121d4c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$b(_0x121d4c['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':getTranslation$b(_0x121d4c['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x121d4c['ui']['componentFactory']['add']('formatPainter',_0x37fdc5=>{const _0x9b61ac=createDropdown(_0x37fdc5,SplitButtonView),_0x46f838=_0x121d4c['commands']['get'](COPY_FORMAT_COMMAND_NAME);_0x9b61ac['buttonView']['set']({'label':getTranslation$b(_0x121d4c['locale'],'Paint\x20formatting'),'icon':IconPaintRoller,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x9b61ac['class']='ck-format-painter-dropdown',_0x46f838&&(_0x9b61ac['bind']('isEnabled')['to'](_0x46f838,'isEnabled'),this['listenTo'](_0x46f838,'change:isEnabled',(_0x26bcbe,_0xf3467a,_0x165a2d)=>{_0x165a2d||this['_finishPainting']();}),_0x9b61ac['buttonView']['bind']('isOn')['to'](_0x46f838,'value',_0x4cf77a=>!!_0x4cf77a),this['listenTo'](_0x121d4c,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x46f838,'change:value',(_0xe08009,_0x12da21,_0xd8aa30)=>{this['_toggleSpecialCursor'](!!_0xd8aa30);}));const _0x26d416=new UIModel({'withText':!0x0,'label':getTranslation$b(_0x121d4c['locale'],'Continuous\x20painting'),'tooltip':getTranslation$b(_0x121d4c['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});addListToDropdown(_0x9b61ac,new Collection([{'type':'switchbutton','model':_0x26d416}]),{'role':'menu'});const _0x22d1fd=()=>{this['_copyFormatting'](),this['listenTo'](_0x42cc73['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x26d416['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x9b61ac,'execute',()=>{_0x26d416['isOn']=!_0x26d416['isOn'];}),this['listenTo'](_0x9b61ac['buttonView'],'execute',()=>{_0x121d4c['editing']['view']['focus'](),_0x9b61ac['buttonView']['isOn']?this['_finishPainting']():_0x22d1fd();}),_0x121d4c['keystrokes']['set']('Ctrl+Alt+C',(_0x1965c0,_0x15f172)=>{_0x22d1fd(),_0x26d416['isOn']=!0x0,_0x15f172();},{'priority':'high'}),_0x121d4c['keystrokes']['set']('Ctrl+Alt+V',(_0x4af3dd,_0x6312dc)=>{_0x9b61ac['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x26d416['isOn']||this['_finishPainting'](),_0x6312dc());},{'priority':'high'}),_0x121d4c['keystrokes']['set']('Esc',(_0x3b2a03,_0x26c153)=>{_0x9b61ac['buttonView']['isOn']&&(_0x26d416['isOn']=!0x1,this['_finishPainting'](),_0x26c153());}),_0x9b61ac;});}['afterInit'](){checkLicense$b(this);}['_toggleSpecialCursor'](_0x1987b1){this['editor']['editing']['view']['change'](_0x15f2f2=>{for(const _0xadb96b of this['editor']['editing']['view']['document']['roots'])_0x1987b1?_0x15f2f2['addClass'](CURSOR_ACTIVE_CSS_CLASS,_0xadb96b):_0x15f2f2['removeClass'](CURSOR_ACTIVE_CSS_CLASS,_0xadb96b);});}['_copyFormatting'](){const {editor:_0x2f589c}=this;_0x2f589c['execute'](COPY_FORMAT_COMMAND_NAME),_0x2f589c['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x2f589c['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x1a0a34}=this,_0x2de5cd=_0x1a0a34['commands']['get'](COPY_FORMAT_COMMAND_NAME)['value'];_0x1a0a34['execute'](PASTE_FORMAT_COMMAND_NAME,_0x2de5cd),_0x1a0a34['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x1a0a34['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](COPY_FORMAT_COMMAND_NAME)['reset'](),this['stopListening'](_0x42cc73['window']['document'],'mouseup');}}async function checkLicense$b(_0x2d1c13){const _0x54400d=_0x1d9bf8([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]),_0x179047=window[_0x1d9bf8([0x44,0x61,0x74,0x65])][_0x1d9bf8([0x6e,0x6f,0x77])](),_0x4b80a4=_0x2d1c13[_0x1d9bf8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x32d3b4=new window[(_0x1d9bf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf8c06f=>{_0x4b80a4[_0x1d9bf8([0x6f,0x6e,0x63,0x65])](_0x1d9bf8([0x72,0x65,0x61,0x64,0x79]),_0xf8c06f);}),_0x373c0f={[_0x1d9bf8([0x6b,0x74,0x79])]:_0x1d9bf8([0x45,0x43]),[_0x1d9bf8([0x75,0x73,0x65])]:_0x1d9bf8([0x73,0x69,0x67]),[_0x1d9bf8([0x63,0x72,0x76])]:_0x1d9bf8([0x50,0x2d,0x32,0x35,0x36]),[_0x1d9bf8([0x78])]:_0x1d9bf8([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]),[_0x1d9bf8([0x79])]:_0x1d9bf8([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]),[_0x1d9bf8([0x61,0x6c,0x67])]:_0x1d9bf8([0x45,0x53,0x32,0x35,0x36])},_0x3ad56e=_0x4b80a4[_0x1d9bf8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d9bf8([0x67,0x65,0x74])](_0x1d9bf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x2eb63d=await(async function(){let _0x30192d,_0x3878c0=null,_0x1b115e=null;try{if(_0x3ad56e==_0x1d9bf8([0x47,0x50,0x4c]))return _0x1d9bf8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30192d=(function(){const _0xc8e80b=_0x3ad56e[_0x1d9bf8([0x73,0x70,0x6c,0x69,0x74])](_0x1d9bf8([0x2e]));if(0x3!=_0xc8e80b[_0x1d9bf8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x4c779a=_0xc8e80b[0x1];return _0x4ac896(_0x4c779a);function _0x4ac896(_0x1824f8){const _0x3e179a=_0x564891(_0x1824f8);return _0x3e179a&&_0x45ae77()?_0x3e179a:null;function _0x45ae77(){const _0x4e922c=_0x3e179a[_0x1d9bf8([0x6a,0x74,0x69])],_0x490e98=window[_0x1d9bf8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e922c[_0x1d9bf8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e922c[_0x1d9bf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54b6b9={..._0x3e179a,[_0x1d9bf8([0x6a,0x74,0x69])]:_0x4e922c[_0x1d9bf8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e922c[_0x1d9bf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54b6b9[_0x1d9bf8([0x76,0x63])],_0x50f793(_0x54b6b9)==_0x490e98;}}}()),!_0x30192d)return _0x1d9bf8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x30192d[_0x1d9bf8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b115e=function(_0x4a1a4c,_0x21bfc0){return new window[(_0x1d9bf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46475c=>{if(_0x3ef1f9())return _0x46475c(_0x1d9bf8([0x56,0x61,0x6c,0x69,0x64]));_0x4d58d6(),_0x4b80a4[_0x1d9bf8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d9bf8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5f532e=!0x1;const _0x2abc7d=uid();function _0x325eaa(_0x1b4801){return!!_0x1b4801&&(typeof _0x1b4801===_0x1d9bf8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b4801===_0x1d9bf8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b4801[_0x1d9bf8([0x74,0x68,0x65,0x6e])]===_0x1d9bf8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b4801[_0x1d9bf8([0x63,0x61,0x74,0x63,0x68])]===_0x1d9bf8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5cc80b(_0x1b1443){_0x123321(_0x1b1443)[_0x1d9bf8([0x74,0x68,0x65,0x6e])](_0x3c418a=>{if(!_0x3c418a||_0x3c418a[_0x1d9bf8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d9bf8([0x6f,0x6b]))return _0x1d9bf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32dbac(_0x50f793(_0x2abc7d+_0x21bfc0))!=_0x3c418a[_0x1d9bf8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d9bf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d9bf8([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d9bf8([0x74,0x68,0x65,0x6e])](_0x49b187=>(_0x2271a1(),_0x49b187),()=>{const _0x5cbaa1=_0x4d5f1e();return null==_0x5cbaa1?(_0x2271a1(),_0x1d9bf8([0x56,0x61,0x6c,0x69,0x64])):_0x1d9bf8(_0x179047-_0x5cbaa1>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d9bf8([0x74,0x68,0x65,0x6e])](_0x46475c)[_0x1d9bf8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46475c(_0x1d9bf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x183207=0x36ee80;function _0x2271a1(){const _0x5e5469=_0x1d9bf8([0x6c,0x6c,0x63,0x74,0x2d])+_0x32dbac(_0x50f793(_0x4a1a4c)),_0x4c53b7=_0xe1ad10(_0x32dbac(window[_0x1d9bf8([0x4d,0x61,0x74,0x68])][_0x1d9bf8([0x63,0x65,0x69,0x6c])](_0x179047/_0x183207)));window[_0x1d9bf8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d9bf8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e5469,_0x4c53b7);}function _0x4d5f1e(){const _0x117edb=_0x1d9bf8([0x6c,0x6c,0x63,0x74,0x2d])+_0x32dbac(_0x50f793(_0x4a1a4c)),_0x423925=window[_0x1d9bf8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d9bf8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x117edb);return _0x423925?window[_0x1d9bf8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe1ad10(_0x423925),0x10)*_0x183207:null;}function _0x123321(_0x507645){return new window[(_0x1d9bf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a66b3,_0x1e02d1)=>{_0x507645[_0x1d9bf8([0x74,0x68,0x65,0x6e])](_0x5a66b3,_0x1e02d1),window[_0x1d9bf8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e02d1,0x1d4c0);});}}_0x4b80a4[_0x1d9bf8([0x6f,0x6e])](_0x1d9bf8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a8af6,_0x2ee63a)=>{if(_0x2ee63a[0x0]!=_0x4a1a4c)return _0x46475c(_0x1d9bf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ee63a[0x1]={..._0x2ee63a[0x1],[_0x1d9bf8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2abc7d};},{[_0x1d9bf8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d9bf8([0x68,0x69,0x67,0x68])}),_0x4b80a4[_0x1d9bf8([0x6f,0x6e])](_0x1d9bf8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x539cc5=>{_0x325eaa(_0x539cc5[_0x1d9bf8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5f532e=!0x0,_0x5cc80b(_0x539cc5[_0x1d9bf8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d9bf8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d9bf8([0x6c,0x6f,0x77])}),_0x32d3b4[_0x1d9bf8([0x74,0x68,0x65,0x6e])](()=>{_0x5f532e||_0x46475c(_0x1d9bf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ef1f9(){return _0x4b80a4[_0x1d9bf8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d9bf8([0x76,0x69,0x65,0x77])][_0x1d9bf8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d9bf8([0x61,0x75,0x74,0x6f]);}function _0x4d58d6(){_0x4b80a4[_0x1d9bf8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d9bf8([0x76,0x69,0x65,0x77])][_0x1d9bf8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d9bf8([0x61,0x75,0x74,0x6f]);}}(_0x30192d[_0x1d9bf8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30192d[_0x1d9bf8([0x6a,0x74,0x69])]));const _0x5b07aa=await(async function(){let _0x584b7f=!0x0;try{const _0x2159de=_0x3ad56e[_0x1d9bf8([0x73,0x70,0x6c,0x69,0x74])](_0x1d9bf8([0x2e])),[_0xe6c5f1,_0x3f29d8,_0x184975]=_0x2159de;return _0x42116d(_0xe6c5f1),await _0x455d77(_0xe6c5f1,_0x3f29d8,_0x184975),_0x584b7f;}catch{return!0x1;}function _0x42116d(_0x1c91ed){const _0x17cb50=_0x564891(_0x1c91ed);_0x17cb50&&_0x17cb50[_0x1d9bf8([0x61,0x6c,0x67])]==_0x1d9bf8([0x45,0x53,0x32,0x35,0x36])||(_0x584b7f=!0x1);}async function _0x455d77(_0x53e1cd,_0x31e380,_0x5e05ef){const _0x1fb2f1=window[_0x1d9bf8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d9bf8([0x66,0x72,0x6f,0x6d])](_0x5c5daf(_0x5e05ef),_0x2ab449=>_0x2ab449[_0x1d9bf8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xb708cd=new window[(_0x1d9bf8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d9bf8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53e1cd+_0x1d9bf8([0x2e])+_0x31e380),_0x56f942=window[_0x1d9bf8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d9bf8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x56f942)return;const _0x23282f=await _0x56f942[_0x1d9bf8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d9bf8([0x6a,0x77,0x6b]),_0x373c0f,{[_0x1d9bf8([0x6e,0x61,0x6d,0x65])]:_0x1d9bf8([0x45,0x43,0x44,0x53,0x41]),[_0x1d9bf8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d9bf8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d9bf8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x56f942[_0x1d9bf8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d9bf8([0x6e,0x61,0x6d,0x65])]:_0x1d9bf8([0x45,0x43,0x44,0x53,0x41]),[_0x1d9bf8([0x68,0x61,0x73,0x68])]:{[_0x1d9bf8([0x6e,0x61,0x6d,0x65])]:_0x1d9bf8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23282f,_0x1fb2f1,_0xb708cd)||(_0x584b7f=!0x1);}}());return _0x5b07aa?(function(){const _0x31928c=_0x30192d[_0x1d9bf8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x31928c)return!0x1;if(_0x31928c[_0x1d9bf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d9bf8([0x2a])))return!0x0;if(_0x31928c[_0x1d9bf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d9bf8([0x46,0x50])))return!0x0;if(_0x31928c[_0x1d9bf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d9bf8([0x50,0x50])))return!0x0;if(_0x31928c[_0x1d9bf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d9bf8([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x1d9bf8([0x67,0x6c,0x6f,0x62])]&&window[_0x1d9bf8([0x67,0x6c,0x6f,0x62])][_0x1d9bf8([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x2f1853=[_0x1d9bf8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d9bf8([0x74,0x72,0x69,0x61,0x6c])][_0x1d9bf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30192d[_0x1d9bf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x179047/0x3e8:0x69b0b080;return _0x30192d[_0x1d9bf8([0x65,0x78,0x70])]<_0x2f1853;}())?_0x1d9bf8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x4b4e86=_0x30192d[_0x1d9bf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b4e86||0x0==_0x4b4e86[_0x1d9bf8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e615e}=new URL(window[_0x1d9bf8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4b4e86[_0x1d9bf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e615e))return!0x0;const _0x205f5b=_0x5e615e[_0x1d9bf8([0x73,0x70,0x6c,0x69,0x74])](_0x1d9bf8([0x2e]));return _0x4b4e86[_0x1d9bf8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x241515=>_0x241515[_0x1d9bf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d9bf8([0x2a])))[_0x1d9bf8([0x6d,0x61,0x70])](_0x4f92f5=>_0x4f92f5[_0x1d9bf8([0x73,0x70,0x6c,0x69,0x74])](_0x1d9bf8([0x2e])))[_0x1d9bf8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x584ba0=>_0x584ba0[_0x1d9bf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x205f5b[_0x1d9bf8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d9bf8([0x6d,0x61,0x70])](_0x516469=>Array(_0x205f5b[_0x1d9bf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x516469[_0x1d9bf8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d9bf8([0x66,0x69,0x6c,0x6c])](_0x516469[0x0]===_0x1d9bf8([0x2a])?_0x1d9bf8([0x2a]):'')[_0x1d9bf8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x516469))[_0x1d9bf8([0x73,0x6f,0x6d,0x65])](_0xf6174=>_0x205f5b[_0x1d9bf8([0x65,0x76,0x65,0x72,0x79])]((_0xa54ba5,_0x1b7f03)=>_0xf6174[_0x1b7f03]===_0xa54ba5||_0xf6174[_0x1b7f03]===_0x1d9bf8([0x2a])));}())?(_0x30192d[_0x1d9bf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d9bf8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3878c0=function(_0x2418e7){const _0x52d5f5=new window[(_0x1d9bf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x365beb=>setTimeout(_0x365beb,0x93ecc)),_0x2349d7=_0x32d3b4[_0x1d9bf8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d9bf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6a77a8=>{let _0x1c8434=0x0;_0x4b80a4[_0x1d9bf8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d9bf8([0x6f,0x6e])](_0x1d9bf8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38dd20,_0x34ba71)=>{_0x34ba71[0x0][_0x1d9bf8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1c8434++,0x5e8==_0x1c8434&&(_0x6a77a8(),_0x38dd20[_0x1d9bf8([0x6f,0x66,0x66])]());});})),_0x502184=[_0x52d5f5,_0x2349d7];return window[_0x1d9bf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d9bf8([0x72,0x61,0x63,0x65])](_0x502184)[_0x1d9bf8([0x74,0x68,0x65,0x6e])](()=>_0x2418e7);}(_0x1d9bf8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x3878c0&&_0x1b115e)return new window[(_0x1d9bf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x498cfc,_0x4849d8)=>{_0x3878c0[_0x1d9bf8([0x74,0x68,0x65,0x6e])](_0x498cfc,_0x4849d8),_0x1b115e[_0x1d9bf8([0x74,0x68,0x65,0x6e])](_0x5b2a01=>{_0x5b2a01!=_0x1d9bf8([0x56,0x61,0x6c,0x69,0x64])&&_0x498cfc(_0x5b2a01);},_0x4849d8);});return _0x3878c0||_0x1b115e||_0x1d9bf8([0x56,0x61,0x6c,0x69,0x64]);}())):_0x1d9bf8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d9bf8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d9bf8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d9bf8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x564891(_0x3f3f81){return _0x3f3f81[_0x1d9bf8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d9bf8([0x65,0x79]))?JSON[_0x1d9bf8([0x70,0x61,0x72,0x73,0x65])](_0x5c5daf(_0x3f3f81)):null;}function _0x5c5daf(_0x4a8ea8){return window[_0x1d9bf8([0x61,0x74,0x6f,0x62])](_0x4a8ea8[_0x1d9bf8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d9bf8([0x2b]))[_0x1d9bf8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d9bf8([0x2f])));}function _0x50f793(_0x2e5396){let _0x108edd=0x1505;function _0x34e134(_0xb43052){for(let _0x3fd736=0x0;_0x3fd736<_0xb43052[_0x1d9bf8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fd736++){const _0x4dd2fd=_0xb43052[_0x1d9bf8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3fd736);_0x108edd=(_0x108edd<<0x5)+_0x108edd+_0x4dd2fd,_0x108edd&=_0x108edd;}}return function _0x574704(_0x3a83d1){Array[_0x1d9bf8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a83d1)?_0x3a83d1[_0x1d9bf8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x574704):_0x3a83d1&&typeof _0x3a83d1==_0x1d9bf8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d9bf8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a83d1)[_0x1d9bf8([0x73,0x6f,0x72,0x74])]()[_0x1d9bf8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x393071,_0x1271b0])=>{_0x34e134(_0x393071),_0x574704(_0x1271b0);}):_0x34e134(window[_0x1d9bf8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a83d1));}(_0x2e5396),_0x108edd>>>0x0;}function _0x32dbac(_0x6819d){return _0x6819d[_0x1d9bf8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d9bf8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d9bf8([0x30]));}function _0xe1ad10(_0x565e15){return _0x565e15[_0x1d9bf8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d9bf8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d9bf8([0x6a,0x6f,0x69,0x6e])]('');}function _0x37f89e(){}function _0x1d9bf8(_0x4355fb){return _0x4355fb['map'](_0x34bd59=>String['fromCharCode'](_0x34bd59))['join']('');}!function(_0x242d5a){const _0xed3a34=(function(){const _0x48c57a=window[_0x1d9bf8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d9bf8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d9bf8([0x6e,0x6f,0x77])]())[_0x1d9bf8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d9bf8([0x2e]),'');let _0x490424=_0x1d9bf8([0x51]);for(let _0x1c38bb=0x0;_0x1c38bb<_0x48c57a[_0x1d9bf8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c38bb+=0x2){let _0x57d4e7=window[_0x1d9bf8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48c57a[_0x1d9bf8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c38bb,_0x1c38bb+0x2));_0x57d4e7>=_0x54400d[_0x1d9bf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57d4e7-=_0x54400d[_0x1d9bf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x490424+=_0x54400d[_0x57d4e7];}return _0x490424;}());_0x4b80a4[_0xed3a34]=_0x1d9bf8([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x242d5a,_0x242d5a!=_0x1d9bf8([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x32d3b4,_0x4b80a4[_0x1d9bf8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d9bf8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37f89e,_0x4b80a4[_0x1d9bf8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d9bf8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37f89e,_0x4b80a4[_0x1d9bf8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d9bf8([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x2eb63d);}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(_0x42fb4b,_0x572a83){const t=_0x42fb4b['t'];switch(_0x572a83){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 _0x572a83;}}class ImportWordUI extends Plugin{static get['pluginName'](){return'ImportWordUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x36e1fe=this['editor'];_0x36e1fe['ui']['componentFactory']['add']('importWord',()=>{const _0x2fc9af=this['_createButton'](FileDialogButtonView),_0x2fb00a=_0x36e1fe['commands']['get']('importWord');return _0x2fc9af['bind']('isOn')['to'](_0x2fb00a,'isBusy'),_0x2fc9af['tooltip']=!0x0,_0x2fc9af;}),_0x36e1fe['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](MenuBarMenuListItemFileDialogButtonView));}['_createButton'](_0xf3e112){const _0x4ae911=this['editor'],_0x1376e5=_0x4ae911['commands']['get']('importWord'),_0x40fff7=new _0xf3e112(_0x4ae911['locale']),_0x2ae780=new SpinnerView();return _0x40fff7['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x40fff7['set']({'icon':IconImportWord}),_0x40fff7['bind']('isEnabled')['to'](_0x1376e5),_0x40fff7['bind']('label')['to'](_0x1376e5,'isBusy',_0x251e1d=>getTranslation$a(_0x4ae911['locale'],_0x251e1d?'Importing\x20Word\x20document':'Import\x20from\x20Word')),_0x2ae780['bind']('isVisible')['to'](_0x1376e5,'isBusy'),_0x40fff7['iconView']['bind']('isVisible')['to'](_0x1376e5,'isBusy',_0x1b5198=>!_0x1b5198),_0x40fff7['children']['add'](_0x2ae780),_0x40fff7['on']('done',(_0x23cdd1,_0x7f478)=>{_0x4ae911['execute']('importWord',_0x7f478[0x0],{}),_0x4ae911['editing']['view']['focus']();}),_0x40fff7;}}class ImportWordCommand extends _0x210666{['_importMarker'];['_undoStepBatch'];['_abortController'];constructor(_0x3eac08){super(_0x3eac08),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x48ebe8,_0x2eb563)=>{const _0x1ba63c=new DataTransfer();_0x1ba63c['setData']('text/html',_0x2eb563['html']);const _0x5c80b6=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x1a4b5e=>{this['_importMarker']['stopListening'](),_0x1a4b5e['setSelection'](_0x5c80b6),_0x3eac08['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x1ba63c});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xc20565,_0x21a5ec={}){if(this['isBusy'])return Promise['resolve']();const _0x393aac=this['editor']['config']['get']('importWord');if(this['editor']['plugins']['has']('MergeFields')){const {prefix:_0x4ba2be,suffix:_0x3dcb65}=this['editor']['config']['get']('mergeFields');_0x21a5ec['merge_fields']={'prefix':_0x4ba2be,'suffix':_0x3dcb65};}const _0x58900d={'url':_0x393aac['converterUrl'],'file':_0xc20565,'serviceConfig':{..._0x21a5ec,'formatting':_0x393aac['formatting'],'timezone':new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0x58900d)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0x45707c=this['editor']['model'],_0x21978d=_0x45707c['schema'],_0x532dc8=_0x45707c['document']['selection'],_0x4b3595=first(_0x532dc8['getSelectedBlocks']());return!!_0x4b3595&&_0x21978d['checkChild'](_0x4b3595['parent'],'paragraph');}['_prepareForImport'](){const _0x34f34d=this['editor'],_0x47048e=_0x34f34d['model'],_0x46d2f4=_0x47048e['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x34f34d['model']['createBatch']({'isUndoable':!0x0}),_0x47048e['enqueueChange'](this['_undoStepBatch'],_0x57d9ce=>{_0x46d2f4['isCollapsed']||_0x47048e['deleteContent'](_0x46d2f4,{'leaveUnmerged':!0x0});const _0x1a2816=_0x46d2f4['getFirstPosition'](),_0x4cf5df=first(_0x46d2f4['getSelectedBlocks']());let _0x38d1cb;_0x38d1cb=_0x4cf5df['is']('element','paragraph')&&_0x4cf5df['isEmpty']?_0x1a2816:_0x1a2816['isAtStart']?_0x47048e['createPositionBefore'](_0x4cf5df):_0x1a2816['isAtEnd']?_0x47048e['createPositionAfter'](_0x4cf5df):_0x57d9ce['split'](_0x1a2816)['position'],this['_importMarker']=_0x57d9ce['addMarker']('importWord:'+uid(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new ModelRange(_0x38d1cb)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['_cleanUpAfterImport'](){const _0x5cdab6=this['editor']['model'];_0x5cdab6['markers']['has'](this['_importMarker'])&&_0x5cdab6['enqueueChange'](this['_undoStepBatch'],_0x304e3a=>{_0x304e3a['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}['_sendImportRequest']({url:_0x3abd15,file:_0x36b92c,serviceConfig:_0x73cb84}){const _0x1d4e0b=this['editor']['plugins']['get']('ImportWordEditing')['getToken'](),_0x41f546=new FormData();_0x41f546['set']('config',JSON['stringify'](_0x73cb84)),_0x41f546['set']('file',_0x36b92c);const _0x185c0c={'method':'POST','headers':{},'body':_0x41f546,'signal':this['_abortController']['signal']};return _0x1d4e0b&&(_0x185c0c['headers']['Authorization']=_0x1d4e0b['value']),fetch(_0x3abd15,_0x185c0c);}['_handleImportResponse'](_0x55dede){return _0x55dede['ok']?_0x55dede['json']()['then'](_0x4159c6=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',{..._0x4159c6,'undoStepBatch':this['_undoStepBatch']});}):Promise['reject']();}['_handleImportFailure'](){if(this['_abortController']['signal']['aborted'])return void logWarning('import-word-plugin-import-cancelled');const _0x3cb577=this['editor'],_0x32a70a=getTranslation$a(_0x3cb577['locale'],'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x3cb577['plugins']['get']('Notification')['showWarning'](_0x32a70a),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(_0x1f1b81){super(_0x1f1b81),this['_token']=null;}async['init'](){const _0x33a68a=this['editor'];_0x33a68a['config']['define']('importWord',{'converterUrl':'https://docx-converter.cke-cs.com/v2/convert/docx-html','tokenUrl':(_0x33a68a['config']['get']('cloudServices')||{})['tokenUrl'],'formatting':{'resets':'none','defaults':'none','styles':'inline'}}),_0x33a68a['commands']['add']('importWord',new ImportWordCommand(_0x33a68a));const {tokenUrl:_0x1a6643}=_0x33a68a['config']['get']('importWord');if(_0x1a6643){const {tokenUrl:_0x23e346}=_0x33a68a['config']['get']('cloudServices')||{};this['_token']=_0x1a6643===_0x23e346?_0x33a68a['plugins']['get']('CloudServices')['token']:await _0x33a68a['plugins']['get']('CloudServices')['registerTokenUrl'](_0x1a6643);}}['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 _0x210666{['refresh'](){const _0x177cdb=this['editor']['model']['document'],_0x303d2c=first(_0x177cdb['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x303d2c)&&this['_canHaveLineHeight'](_0x303d2c),this['value']=this['isEnabled']&&_0x303d2c['getAttribute']('lineHeight');}['execute'](_0x10fd5a={}){const _0x1b3059=this['editor']['model'],_0xe1d4c0=_0x1b3059['document']['selection'],_0x489d43=_0x10fd5a['value'];_0x1b3059['change'](_0xab5e40=>{const _0x2c865d=Array['from'](_0xe1d4c0['getSelectedBlocks']())['filter'](_0x451eb0=>this['_canHaveLineHeight'](_0x451eb0));for(const _0x3e401f of _0x2c865d)_0x489d43?_0xab5e40['setAttribute']('lineHeight',_0x489d43,_0x3e401f):_0xab5e40['removeAttribute']('lineHeight',_0x3e401f);});}['_canHaveLineHeight'](_0x1da738){return this['editor']['model']['schema']['checkAttribute'](_0x1da738,'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(_0x5143e2){return'string'==typeof _0x5143e2&&'default'===_0x5143e2['toLowerCase']();}function normalizeOptions(_0x3284cf){return _0x3284cf['options']['map'](_0x14f0d2=>isLineHeightDefaultValue(_0x14f0d2)?{'title':String(_0x3284cf['defaultValue']),'model':'default'}:('number'==typeof _0x14f0d2&&(_0x14f0d2=String(_0x14f0d2)),'string'!=typeof _0x14f0d2?_0x14f0d2:parseFloat(_0x14f0d2)?{'title':_0x14f0d2,'model':_0x14f0d2,'view':{'name':'span','styles':{'line-height':_0x14f0d2}}}:findPreset(_0x14f0d2)))['filter'](_0x2c5da8=>void 0x0!==_0x2c5da8);}function findPreset(_0x2985dd){return'string'==typeof _0x2985dd?namedPresets[_0x2985dd]:namedPresets[_0x2985dd['model']];}function buildDefinition(_0x1f70c8,_0x20dcbf){const _0x31a870={'model':{'key':_0x1f70c8,'values':[]},'view':{}};for(const _0x2dc0fb of _0x20dcbf)'class'===_0x2dc0fb['view']?.['key']?(_0x31a870['model']['values']['push'](_0x2dc0fb['model']),_0x31a870['view'][_0x2dc0fb['model']]={'key':'class','value':_0x2dc0fb['view']['value']}):(_0x31a870['model']['values']['push'](_0x2dc0fb['model']),_0x31a870['view'][_0x2dc0fb['model']]={'key':'style','value':'line-height:'+_0x2dc0fb['model']+';'});return _0x31a870;}class LineHeightTodoListIntegration extends Plugin{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x1dc714,conversion:_0x17f0f8}=this['editor'];if(!_0x1dc714['has']('ListEditing')||!_0x1dc714['has']('TodoListEditing'))return;_0x1dc714['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x4fde90,_0x2356d7,_0x3bf2fe,_0x3bc132,_0x244676){'todo'==_0x244676['getAttribute']('listType')&&_0x2356d7&&(_0x4fde90['addClass']('ck-list-marker-line-height',_0x3bf2fe),_0x4fde90['setStyle']('--ck-content-list-marker-line-height',_0x2356d7,_0x3bf2fe));}}),_0x17f0f8['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x17f0f8['for']('upcast')['add'](_0x5223bd=>{_0x5223bd['on']('element:li',attributeUpcastConsumingConverter({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}function attributeUpcastConsumingConverter(_0x4ed005){const _0x1fa2a5=new Matcher(_0x4ed005);return(_0x4202d7,_0x2a5379,_0x254468)=>{const _0x4a0bbc=_0x1fa2a5['match'](_0x2a5379['viewItem']);if(!_0x4a0bbc)return;const _0x54e037=_0x4a0bbc['match'];_0x54e037['name']=!0x1,_0x254468['consumable']['consume'](_0x2a5379['viewItem'],_0x54e037);};}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(_0xd1c84c){super(_0xd1c84c),_0xd1c84c['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x44f5c1=this['editor'];this['_validateConfig'](),_0x44f5c1['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x44f5c1['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x44f5c1['commands']['add']('lineHeight',new LineHeightCommand(_0x44f5c1)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){checkLicense$a(this);}['_validateConfig'](){const _0x92d8a5=this['editor'];if(!_0x92d8a5['config']['get']('lineHeight.supportAllValues'))return;const _0x570af4=_0x92d8a5['config']['get']('lineHeight.options')['filter'](_0x3e66e8=>'string'==typeof _0x3e66e8&&(!isLineHeightDefaultValue(_0x3e66e8)&&isNaN(Number(_0x3e66e8))));if(_0x570af4['length'])throw new CKEditorError('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x570af4});}['_prepareAnyValueConverters'](){const _0x3af900=this['editor'],_0x3bc2af=this['editor']['config']['get']('lineHeight.defaultValue');_0x3af900['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x29408d=>String(_0x29408d)===String(_0x3bc2af)?null:{'key':'style','value':{'line-height':_0x29408d}}}),_0x3af900['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x36664b=>{let _0x166e9a=_0x36664b['getStyle']('line-height');return isPercentageStyleValue(_0x166e9a)&&(_0x166e9a=String(Number(_0x166e9a['slice'](0x0,-0x1))/0x64)),String(_0x166e9a)===String(_0x3bc2af)?null:_0x166e9a;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x30fc6e=this['editor'],_0x517d6a=this['editor']['config']['get']('lineHeight.defaultValue'),_0x487b90=buildDefinition('lineHeight',normalizeOptions(this['editor']['config']['get']('lineHeight'))['filter'](_0x5205fb=>_0x5205fb['model']));_0x30fc6e['conversion']['attributeToAttribute'](_0x487b90),_0x30fc6e['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x5a3256=>{let _0x3acb81=_0x5a3256['getStyle']('line-height');return isPercentageStyleValue(_0x3acb81)&&(_0x3acb81=String(Number(_0x3acb81['slice'](0x0,-0x1))/0x64)),_0x3acb81===String(_0x517d6a)?null:_0x487b90['model']['values']['includes'](_0x3acb81)?_0x3acb81:null;}}});}}async function checkLicense$a(_0x80c8d9){const _0x42bc24=_0xe768f([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]),_0x28cead=window[_0xe768f([0x44,0x61,0x74,0x65])][_0xe768f([0x6e,0x6f,0x77])](),_0x29919e=_0x80c8d9[_0xe768f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x419a73=new window[(_0xe768f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35efd0=>{_0x29919e[_0xe768f([0x6f,0x6e,0x63,0x65])](_0xe768f([0x72,0x65,0x61,0x64,0x79]),_0x35efd0);}),_0x85f03a={[_0xe768f([0x6b,0x74,0x79])]:_0xe768f([0x45,0x43]),[_0xe768f([0x75,0x73,0x65])]:_0xe768f([0x73,0x69,0x67]),[_0xe768f([0x63,0x72,0x76])]:_0xe768f([0x50,0x2d,0x32,0x35,0x36]),[_0xe768f([0x78])]:_0xe768f([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]),[_0xe768f([0x79])]:_0xe768f([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]),[_0xe768f([0x61,0x6c,0x67])]:_0xe768f([0x45,0x53,0x32,0x35,0x36])},_0xd37b9d=_0x29919e[_0xe768f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe768f([0x67,0x65,0x74])](_0xe768f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x3e22d2=await(async function(){let _0x5696fb,_0x17c74c=null,_0xaaaf3b=null;try{if(_0xd37b9d==_0xe768f([0x47,0x50,0x4c]))return _0xe768f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5696fb=(function(){const _0x2e61e7=_0xd37b9d[_0xe768f([0x73,0x70,0x6c,0x69,0x74])](_0xe768f([0x2e]));if(0x3!=_0x2e61e7[_0xe768f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x1f8b3a=_0x2e61e7[0x1];return _0x43b751(_0x1f8b3a);function _0x43b751(_0x125c81){const _0x37717f=_0x378731(_0x125c81);return _0x37717f&&_0x4cd1f5()?_0x37717f:null;function _0x4cd1f5(){const _0x4b2154=_0x37717f[_0xe768f([0x6a,0x74,0x69])],_0x5da123=window[_0xe768f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b2154[_0xe768f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b2154[_0xe768f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xef1c1a={..._0x37717f,[_0xe768f([0x6a,0x74,0x69])]:_0x4b2154[_0xe768f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b2154[_0xe768f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xef1c1a[_0xe768f([0x76,0x63])],_0x42ecb0(_0xef1c1a)==_0x5da123;}}}()),!_0x5696fb)return _0xe768f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x5696fb[_0xe768f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xaaaf3b=function(_0x549718,_0x3495c8){return new window[(_0xe768f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cc572=>{if(_0x298a13())return _0x4cc572(_0xe768f([0x56,0x61,0x6c,0x69,0x64]));_0x2ee195(),_0x29919e[_0xe768f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe768f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3cb6c7=!0x1;const _0x436f9a=uid();function _0x331009(_0x94ad06){return!!_0x94ad06&&(typeof _0x94ad06===_0xe768f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x94ad06===_0xe768f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x94ad06[_0xe768f([0x74,0x68,0x65,0x6e])]===_0xe768f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x94ad06[_0xe768f([0x63,0x61,0x74,0x63,0x68])]===_0xe768f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10c9ff(_0x1b28d7){_0x25b0f2(_0x1b28d7)[_0xe768f([0x74,0x68,0x65,0x6e])](_0x13fb05=>{if(!_0x13fb05||_0x13fb05[_0xe768f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe768f([0x6f,0x6b]))return _0xe768f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2020b0(_0x42ecb0(_0x436f9a+_0x3495c8))!=_0x13fb05[_0xe768f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe768f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe768f([0x56,0x61,0x6c,0x69,0x64]);})[_0xe768f([0x74,0x68,0x65,0x6e])](_0x1a4ef3=>(_0x1646a2(),_0x1a4ef3),()=>{const _0x1775dc=_0x54cc78();return null==_0x1775dc?(_0x1646a2(),_0xe768f([0x56,0x61,0x6c,0x69,0x64])):_0xe768f(_0x28cead-_0x1775dc>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe768f([0x74,0x68,0x65,0x6e])](_0x4cc572)[_0xe768f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cc572(_0xe768f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37fb04=0x36ee80;function _0x1646a2(){const _0x5a43e6=_0xe768f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2020b0(_0x42ecb0(_0x549718)),_0x210474=_0x1227f9(_0x2020b0(window[_0xe768f([0x4d,0x61,0x74,0x68])][_0xe768f([0x63,0x65,0x69,0x6c])](_0x28cead/_0x37fb04)));window[_0xe768f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe768f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a43e6,_0x210474);}function _0x54cc78(){const _0xdcd091=_0xe768f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2020b0(_0x42ecb0(_0x549718)),_0x2dda45=window[_0xe768f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe768f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdcd091);return _0x2dda45?window[_0xe768f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1227f9(_0x2dda45),0x10)*_0x37fb04:null;}function _0x25b0f2(_0x2f7ac8){return new window[(_0xe768f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b1560,_0x3d396c)=>{_0x2f7ac8[_0xe768f([0x74,0x68,0x65,0x6e])](_0x4b1560,_0x3d396c),window[_0xe768f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d396c,0x1d4c0);});}}_0x29919e[_0xe768f([0x6f,0x6e])](_0xe768f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4dd364,_0x1daf50)=>{if(_0x1daf50[0x0]!=_0x549718)return _0x4cc572(_0xe768f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1daf50[0x1]={..._0x1daf50[0x1],[_0xe768f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x436f9a};},{[_0xe768f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe768f([0x68,0x69,0x67,0x68])}),_0x29919e[_0xe768f([0x6f,0x6e])](_0xe768f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e8678=>{_0x331009(_0x5e8678[_0xe768f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3cb6c7=!0x0,_0x10c9ff(_0x5e8678[_0xe768f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe768f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe768f([0x6c,0x6f,0x77])}),_0x419a73[_0xe768f([0x74,0x68,0x65,0x6e])](()=>{_0x3cb6c7||_0x4cc572(_0xe768f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x298a13(){return _0x29919e[_0xe768f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe768f([0x76,0x69,0x65,0x77])][_0xe768f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe768f([0x61,0x75,0x74,0x6f]);}function _0x2ee195(){_0x29919e[_0xe768f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe768f([0x76,0x69,0x65,0x77])][_0xe768f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe768f([0x61,0x75,0x74,0x6f]);}}(_0x5696fb[_0xe768f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5696fb[_0xe768f([0x6a,0x74,0x69])]));const _0x285ebc=await(async function(){let _0x5c0380=!0x0;try{const _0x525a25=_0xd37b9d[_0xe768f([0x73,0x70,0x6c,0x69,0x74])](_0xe768f([0x2e])),[_0x311727,_0xae1b20,_0x399560]=_0x525a25;return _0x274ee4(_0x311727),await _0x253cc6(_0x311727,_0xae1b20,_0x399560),_0x5c0380;}catch{return!0x1;}function _0x274ee4(_0xd61183){const _0x26fa7e=_0x378731(_0xd61183);_0x26fa7e&&_0x26fa7e[_0xe768f([0x61,0x6c,0x67])]==_0xe768f([0x45,0x53,0x32,0x35,0x36])||(_0x5c0380=!0x1);}async function _0x253cc6(_0x41cea3,_0x3682f7,_0x1e421c){const _0x3bfdca=window[_0xe768f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe768f([0x66,0x72,0x6f,0x6d])](_0x2a6d0a(_0x1e421c),_0x44c2e9=>_0x44c2e9[_0xe768f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xb32300=new window[(_0xe768f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe768f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41cea3+_0xe768f([0x2e])+_0x3682f7),_0x651db6=window[_0xe768f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe768f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x651db6)return;const _0x2304d9=await _0x651db6[_0xe768f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe768f([0x6a,0x77,0x6b]),_0x85f03a,{[_0xe768f([0x6e,0x61,0x6d,0x65])]:_0xe768f([0x45,0x43,0x44,0x53,0x41]),[_0xe768f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe768f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe768f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x651db6[_0xe768f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe768f([0x6e,0x61,0x6d,0x65])]:_0xe768f([0x45,0x43,0x44,0x53,0x41]),[_0xe768f([0x68,0x61,0x73,0x68])]:{[_0xe768f([0x6e,0x61,0x6d,0x65])]:_0xe768f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2304d9,_0x3bfdca,_0xb32300)||(_0x5c0380=!0x1);}}());return _0x285ebc?(function(){const _0x1a100f=_0x5696fb[_0xe768f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1a100f)return!0x1;if(_0x1a100f[_0xe768f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe768f([0x2a])))return!0x0;if(_0x1a100f[_0xe768f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe768f([0x4c,0x48])))return!0x0;return!0x1;}())?(function(){const _0x4d6076=[_0xe768f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe768f([0x74,0x72,0x69,0x61,0x6c])][_0xe768f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5696fb[_0xe768f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x28cead/0x3e8:0x69b0b080;return _0x5696fb[_0xe768f([0x65,0x78,0x70])]<_0x4d6076;}())?_0xe768f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1bae76=_0x5696fb[_0xe768f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1bae76||0x0==_0x1bae76[_0xe768f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2385a5}=new URL(window[_0xe768f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1bae76[_0xe768f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2385a5))return!0x0;const _0x56680b=_0x2385a5[_0xe768f([0x73,0x70,0x6c,0x69,0x74])](_0xe768f([0x2e]));return _0x1bae76[_0xe768f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x172167=>_0x172167[_0xe768f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe768f([0x2a])))[_0xe768f([0x6d,0x61,0x70])](_0x3f989d=>_0x3f989d[_0xe768f([0x73,0x70,0x6c,0x69,0x74])](_0xe768f([0x2e])))[_0xe768f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xec6f9=>_0xec6f9[_0xe768f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x56680b[_0xe768f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe768f([0x6d,0x61,0x70])](_0x2c68ab=>Array(_0x56680b[_0xe768f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c68ab[_0xe768f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe768f([0x66,0x69,0x6c,0x6c])](_0x2c68ab[0x0]===_0xe768f([0x2a])?_0xe768f([0x2a]):'')[_0xe768f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c68ab))[_0xe768f([0x73,0x6f,0x6d,0x65])](_0x51fe98=>_0x56680b[_0xe768f([0x65,0x76,0x65,0x72,0x79])]((_0x3f192e,_0x2f90b7)=>_0x51fe98[_0x2f90b7]===_0x3f192e||_0x51fe98[_0x2f90b7]===_0xe768f([0x2a])));}())?(_0x5696fb[_0xe768f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe768f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17c74c=function(_0x1878cc){const _0x17f9e5=new window[(_0xe768f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39cfb2=>setTimeout(_0x39cfb2,0x93ecc)),_0x23e1f3=_0x419a73[_0xe768f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe768f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26826f=>{let _0x1a2d26=0x0;_0x29919e[_0xe768f([0x6d,0x6f,0x64,0x65,0x6c])][_0xe768f([0x6f,0x6e])](_0xe768f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x515c1a,_0x26a6a6)=>{_0x26a6a6[0x0][_0xe768f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a2d26++,0x5e8==_0x1a2d26&&(_0x26826f(),_0x515c1a[_0xe768f([0x6f,0x66,0x66])]());});})),_0x11e005=[_0x17f9e5,_0x23e1f3];return window[_0xe768f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe768f([0x72,0x61,0x63,0x65])](_0x11e005)[_0xe768f([0x74,0x68,0x65,0x6e])](()=>_0x1878cc);}(_0xe768f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x17c74c&&_0xaaaf3b)return new window[(_0xe768f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d5ebd,_0x3caa19)=>{_0x17c74c[_0xe768f([0x74,0x68,0x65,0x6e])](_0x5d5ebd,_0x3caa19),_0xaaaf3b[_0xe768f([0x74,0x68,0x65,0x6e])](_0x1f4be8=>{_0x1f4be8!=_0xe768f([0x56,0x61,0x6c,0x69,0x64])&&_0x5d5ebd(_0x1f4be8);},_0x3caa19);});return _0x17c74c||_0xaaaf3b||_0xe768f([0x56,0x61,0x6c,0x69,0x64]);}())):_0xe768f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe768f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe768f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe768f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x378731(_0x32d269){return _0x32d269[_0xe768f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe768f([0x65,0x79]))?JSON[_0xe768f([0x70,0x61,0x72,0x73,0x65])](_0x2a6d0a(_0x32d269)):null;}function _0x2a6d0a(_0x77dc61){return window[_0xe768f([0x61,0x74,0x6f,0x62])](_0x77dc61[_0xe768f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe768f([0x2b]))[_0xe768f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe768f([0x2f])));}function _0x42ecb0(_0x37d4eb){let _0x24ed5d=0x1505;function _0x262504(_0xd4b53){for(let _0x418b82=0x0;_0x418b82<_0xd4b53[_0xe768f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x418b82++){const _0x1569ef=_0xd4b53[_0xe768f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x418b82);_0x24ed5d=(_0x24ed5d<<0x5)+_0x24ed5d+_0x1569ef,_0x24ed5d&=_0x24ed5d;}}return function _0x5e208f(_0x79a42){Array[_0xe768f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x79a42)?_0x79a42[_0xe768f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e208f):_0x79a42&&typeof _0x79a42==_0xe768f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe768f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x79a42)[_0xe768f([0x73,0x6f,0x72,0x74])]()[_0xe768f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e2cfb,_0x248e18])=>{_0x262504(_0x1e2cfb),_0x5e208f(_0x248e18);}):_0x262504(window[_0xe768f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x79a42));}(_0x37d4eb),_0x24ed5d>>>0x0;}function _0x2020b0(_0x254705){return _0x254705[_0xe768f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe768f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe768f([0x30]));}function _0x1227f9(_0x3a119e){return _0x3a119e[_0xe768f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe768f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe768f([0x6a,0x6f,0x69,0x6e])]('');}function _0x59959d(){}function _0xe768f(_0x3faf5c){return _0x3faf5c['map'](_0x45d19a=>String['fromCharCode'](_0x45d19a))['join']('');}!function(_0x37a207){const _0x585828=(function(){const _0x110ddd=window[_0xe768f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe768f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe768f([0x6e,0x6f,0x77])]())[_0xe768f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe768f([0x2e]),'');let _0x1ca97f=_0xe768f([0x50]);for(let _0x31aa23=0x0;_0x31aa23<_0x110ddd[_0xe768f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31aa23+=0x2){let _0x14d858=window[_0xe768f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x110ddd[_0xe768f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31aa23,_0x31aa23+0x2));_0x14d858>=_0x42bc24[_0xe768f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14d858-=_0x42bc24[_0xe768f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ca97f+=_0x42bc24[_0x14d858];}return _0x1ca97f;}());_0x29919e[_0x585828]=_0xe768f([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37a207,_0x37a207!=_0xe768f([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x419a73,_0x29919e[_0xe768f([0x6d,0x6f,0x64,0x65,0x6c])][_0xe768f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59959d,_0x29919e[_0xe768f([0x6d,0x6f,0x64,0x65,0x6c])][_0xe768f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59959d,_0x29919e[_0xe768f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe768f([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x3e22d2);}class LineHeightUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x23a123={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x23a123),this['_registerMenuBarComponent'](_0x23a123),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x328c66=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x58eddc;for(const _0x3de620 in _0x328c66){const _0x4acd73=_0x3de620,_0xc09b9d=_0x328c66[_0x4acd73];if('lineHeightLicenseKeyValid'==_0xc09b9d||'lineHeightLicenseKeyInvalid'==_0xc09b9d||'lineHeightLicenseKeyExpired'==_0xc09b9d||'lineHeightLicenseKeyDomainLimit'==_0xc09b9d||'lineHeightLicenseKeyNotAllowed'==_0xc09b9d||'lineHeightLicenseKeyEvaluationLimit'==_0xc09b9d||'lineHeightLicenseKeyUsageLimit'==_0xc09b9d){delete _0x328c66[_0x4acd73],_0x58eddc=_0xc09b9d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x58eddc&&_0x328c66['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x58eddc&&_0x328c66['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x58eddc&&_0x328c66['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x58eddc&&_0x328c66['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x58eddc&&_0x328c66['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x58eddc&&_0x328c66['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x7c11c9=this['editor'],t=_0x7c11c9['t'],_0x3fddce=_0x7c11c9['config']['get']('lineHeight'),_0x23870b={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return normalizeOptions(_0x3fddce)['map'](_0x10a996=>{const _0x6b12d4=_0x23870b[_0x10a996['title']];return _0x6b12d4&&_0x6b12d4!=_0x10a996['title']&&(_0x10a996=Object['assign']({},_0x10a996,{'title':_0x6b12d4})),_0x10a996;});}['_prepareListOptions'](){const _0x494c33=this['editor']['commands']['get']('lineHeight'),_0x1f0715=this['editor']['config']['get']('lineHeight.defaultValue'),_0x2bf971=this['_getLocalizedLineHeightOptions'](),_0x240984=new Collection(),_0x424183=_0x40f11e=>'default'===_0x40f11e||String(_0x1f0715)===_0x40f11e;for(const _0x1a9ff3 of _0x2bf971){const _0x546e7c={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x1a9ff3['title'],'withText':!0x0})};_0x424183(_0x1a9ff3['model'])?(_0x546e7c['model']['bind']('isOn')['to'](_0x494c33,'value',_0x4ae3fe=>!_0x4ae3fe),_0x546e7c['model']['commandParam']=void 0x0):(_0x546e7c['model']['bind']('isOn')['to'](_0x494c33,'value',_0xdda554=>_0xdda554===_0x1a9ff3['model']),_0x546e7c['model']['commandParam']=_0x1a9ff3['model']),_0x240984['add'](_0x546e7c);}if(this['_shouldRenderCustomValueOption']()){const _0x11203c=this['_getCustomValueOptionDefinition'](_0x2bf971);_0x240984['add'](_0x11203c);}return _0x240984;}['_getCustomValueOptionDefinition'](_0x525e65){const _0x49b545=this['editor'],t=_0x49b545['t'],_0x50f6cc=_0x49b545['commands']['get']('lineHeight'),_0x4e60c2=_0x525e65['map'](_0x4563bd=>_0x4563bd['model']),_0x2a212e={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x2a212e['model']['bind']('commandParam')['to'](_0x50f6cc,'value'),_0x2a212e['model']['bind']('isOn')['to'](_0x50f6cc,'value',_0x1e04af=>!!_0x1e04af&&!_0x4e60c2['includes'](String(_0x1e04af))),_0x2a212e['model']['bind']('label')['to'](_0x50f6cc,'value',_0x2e9d4a=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x2e9d4a))),_0x2a212e;}['_registerToolbarComponent']({accessibleLabel:_0x97803d,options:_0x3cbfc5}){const _0x934387=this['editor'],_0x1d9b9e=_0x934387['commands']['get']('lineHeight');_0x934387['ui']['componentFactory']['add']('lineHeight',_0x39b9bb=>{const _0x648def=createDropdown(_0x39b9bb);return addListToDropdown(_0x648def,_0x3cbfc5,{'role':'menu','ariaLabel':_0x97803d}),_0x648def['buttonView']['set']({'label':_0x97803d,'tooltip':!0x0,'icon':IconLineHeight}),_0x648def['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x648def['bind']('isEnabled')['to'](_0x1d9b9e),this['listenTo'](_0x648def,'execute',_0x108200=>{_0x934387['execute'](_0x108200['source']['commandName'],{'value':_0x108200['source']['commandParam']}),_0x934387['editing']['view']['focus']();}),_0x648def['once']('change:isOpen',()=>{const _0x55c961=_0x648def['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x648def,_0x3cbfc5,_0x55c961);}),_0x648def;});}['_registerMenuBarComponent']({accessibleLabel:_0x585947,options:_0x5ec79f}){const _0x4d0bed=this['editor'],_0x113852=_0x4d0bed['commands']['get']('lineHeight');_0x4d0bed['ui']['componentFactory']['add']('menuBar:lineHeight',_0x4054df=>{const _0x12886c=new MenuBarMenuView(_0x4054df);_0x12886c['buttonView']['set']({'label':_0x585947,'icon':IconLineHeight}),_0x12886c['bind']('isEnabled')['to'](_0x113852);const _0x1c12d4=new MenuBarMenuListView(_0x4054df);for(const _0x90fbe1 of _0x5ec79f){const _0x48503a=new MenuBarMenuListItemView(_0x4054df,_0x12886c),_0x391d64=new MenuBarMenuListItemButtonView(_0x4054df);_0x391d64['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x391d64['bind'](...Object['keys'](_0x90fbe1['model']))['to'](_0x90fbe1['model']),_0x391d64['delegate']('execute')['to'](_0x12886c),_0x391d64['on']('execute',()=>{_0x4d0bed['execute'](_0x90fbe1['model']['commandName'],{'value':_0x90fbe1['model']['commandParam']}),_0x4d0bed['editing']['view']['focus']();}),_0x48503a['children']['add'](_0x391d64),_0x1c12d4['items']['add'](_0x48503a);}return _0x12886c['panelView']['children']['add'](_0x1c12d4),this['_attachCustomOptionVisibilityHandler'](_0x12886c,_0x5ec79f,_0x1c12d4),_0x12886c;});}['_attachCustomOptionVisibilityHandler'](_0xe642aa,_0x475d23,_0xd1eb06){if(!this['_shouldRenderCustomValueOption']())return;const _0x3295ef=()=>{if(!_0xe642aa['isOpen'])return;_0xd1eb06['items']['last']['isVisible']=Boolean(_0x475d23['last']['model']['isOn']);};_0x3295ef(),_0xe642aa['on']('change:isOpen',()=>{_0x3295ef();});}}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 _0x210666{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x31b1bc,_0x28edd3,_0x199057){super(_0x31b1bc),this['defaultListMarkerStyle']=_0x28edd3,this['_listDefinitions']=_0x199057,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x440b3a={}){const _0x5d75e1=this['editor']['model'],_0x434a91=_0x440b3a['listMarkerStyle']||this['defaultListMarkerStyle'];_0x5d75e1['change'](()=>{const _0xe33501=this['_getListTypeFromListMarkerStyle'](_0x434a91);if(!_0xe33501)return;const _0x4eb3d6=_0xe33501+'List';this['editor']['execute'](_0x4eb3d6,{'additionalAttributes':{'listMarkerStyle':_0x434a91}});});}['_getValue'](){const _0x56b13a=first(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x56b13a)?_0x56b13a['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x23ff85=this['editor'],_0x2e1f46=_0x23ff85['commands']['get']('customNumberedList'),_0x2b49c8=_0x23ff85['commands']['get']('customBulletedList');return _0x2e1f46['isEnabled']||_0x2b49c8['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x16d2e2){const _0x2c8f2b=this['_listDefinitions']['find'](_0x446ced=>_0x446ced['listMarkerStyle']==_0x16d2e2);return _0x2c8f2b?_0x2c8f2b['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(_0x24fd7b){super(_0x24fd7b);const _0x123551=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x98d304=>_0x98d304+'.'}]},..._0x123551];}['init'](){const _0x19faf6=this['editor'],_0x557d89=_0x19faf6['model'],_0xf7ab8f=_0x19faf6['editing']['view'],_0x249cf0=_0x19faf6['plugins']['get']('ListEditing');_0x19faf6['commands']['add']('multiLevelList',new MultiLevelListCommand(_0x19faf6,'legal',this['_listDefinitions'])),_0x557d89['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x557d89['schema']['addAttributeCheck']((_0x704c6f,_0x1058ad)=>{const _0x502330=_0x704c6f['last'];if('listMarker'==_0x1058ad||'listMarkerStyle'==_0x1058ad)return!(!_0x502330['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x19198d=>_0x19198d['listType']==_0x502330['getAttribute']('listType')))&&void 0x0;});for(const _0x108d7d of this['_listDefinitions'])_0x19faf6['conversion']['for']('upcast')['add'](_0x436b53=>{_0x436b53['on']('element:'+('customNumbered'==_0x108d7d['listType']?'ol':'ul'),multiLevelListUpcastConverter(_0x108d7d,_0x557d89['schema']),{'priority':'low'});}),_0x249cf0['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x4962bd,_0xdc128b,_0x1c16eb){_0xdc128b==_0x108d7d['listMarkerStyle']?(_0x4962bd['addClass'](['multi-level-list',_0x108d7d['className']],_0x1c16eb),_0x4962bd['setStyle']('list-style-type','none',_0x1c16eb)):(_0x4962bd['removeClass'](['multi-level-list',_0x108d7d['className']],_0x1c16eb),_0x4962bd['removeStyle']('list-style-type',_0x1c16eb));}}),_0x249cf0['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x690b56,_0x3ae077,{dataPipeline:_0x287339}){if(!_0x3ae077['hasAttribute']('listMarker'))return null;if(_0x3ae077['getAttribute']('listType')!=_0x108d7d['listType']||_0x3ae077['getAttribute']('listMarkerStyle')!=_0x108d7d['listMarkerStyle'])return null;const _0x3fa2a2=String(_0x3ae077['getAttribute']('listMarker')),_0x1eeb1f=this['canInjectMarkerIntoElement'](_0x3ae077);return _0x690b56['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x287339&&{'contenteditable':'false','data-multi-level-list-marker':_0x3fa2a2}},function(_0x298822){const _0x4d6eff=this['toDomElement'](_0x298822);return _0x1eeb1f?(_0x4d6eff['appendChild'](createElement(_0x298822,'span',{},_0x287339?_0x298822['createTextNode'](_0x3fa2a2):[])),_0x4d6eff['appendChild'](_0x298822['createTextNode']('\u00a0'))):_0x287339&&_0x4d6eff['appendChild'](_0x298822['createTextNode'](_0x3fa2a2)),_0x4d6eff;});},'canInjectMarkerIntoElement':_0xd2ddd4=>_0x557d89['schema']['checkChild'](_0xd2ddd4,'$text')&&_0x557d89['schema']['checkChild'](_0xd2ddd4,'$inlineObject')&&!_0x557d89['schema']['isLimit'](_0xd2ddd4)&&_0xd2ddd4['getAttribute']('listType')==_0x108d7d['listType']&&_0xd2ddd4['getAttribute']('listMarkerStyle')==_0x108d7d['listMarkerStyle']});_0x19faf6['conversion']['for']('upcast')['add'](_0xa67870=>{_0xa67870['on']('element:span',multiLevelListMarkerUpcastConverter(_0xf7ab8f));}),_0x249cf0['on']('postFixer',(_0x1040d9,{listNodes:_0x3ca2c8,writer:_0x3bba14})=>{const _0x592ce0=[];for(const {node:_0xf6a8be,previousNodeInList:_0x2e6d70}of _0x3ca2c8){const _0x44529e=_0xf6a8be['getAttribute']('listType'),_0x179c44=_0xf6a8be['getAttribute']('listMarkerStyle')||('customNumbered'==_0x44529e?'legal':void 0x0),_0x4b1b27=this['_listDefinitions']['find'](_0x39e06b=>_0x39e06b['listType']==_0x44529e&&_0x39e06b['listMarkerStyle']==_0x179c44);if('customNumbered'!=_0x44529e&&'customBulleted'!=_0x44529e&&(_0xf6a8be['hasAttribute']('listMarker')&&(_0x3bba14['removeAttribute']('listMarker',_0xf6a8be),_0x1040d9['return']=!0x0),_0xf6a8be['hasAttribute']('listMarkerStyle')&&(_0x3bba14['removeAttribute']('listMarkerStyle',_0xf6a8be),_0x1040d9['return']=!0x0)),!_0x4b1b27){'customBulleted'!=_0x44529e||_0x179c44||(_0x3bba14['setAttribute']('listType','bulleted',_0xf6a8be),_0x1040d9['return']=!0x0);continue;}_0xf6a8be['hasAttribute']('listMarkerStyle')||(_0x3bba14['setAttribute']('listMarkerStyle',_0x179c44,_0xf6a8be),_0x1040d9['return']=!0x0);const _0x3f01e3=_0xf6a8be['getAttribute']('listIndent');if(_0x2e6d70&&_0x2e6d70['getAttribute']('listItemId')==_0xf6a8be['getAttribute']('listItemId'))continue;_0x592ce0['length']=_0x3f01e3+0x1,_0x2e6d70||_0x592ce0[_0x3f01e3]?_0x2e6d70&&_0x2e6d70['getAttribute']('listType')!=_0x4b1b27['listType']?_0x592ce0[_0x3f01e3]=0x1:_0x592ce0[_0x3f01e3]++:_0x592ce0[_0x3f01e3]=_0xf6a8be['getAttribute']('listStart')||0x1;const _0x1c5195=generateMarker(_0x3f01e3,_0x4b1b27,_0x592ce0);_0xf6a8be['getAttribute']('listMarker')!=_0x1c5195&&(_0x3bba14['setAttribute']('listMarker',_0x1c5195,_0xf6a8be),_0x1040d9['return']=!0x0);}});const _0x38c0a3=_0x19faf6['editing']['view']['document'];this['listenTo'](_0x38c0a3,'clipboardOutput',(_0x19d72b,_0x68b4c0)=>{const _0x1cb791=new Matcher({'name':'span','classes':'multi-level-list__marker'}),_0x31921a=new Matcher({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x3d9205=new ViewUpcastWriter(_0x68b4c0['content']['document']),_0xee98e9=[];for(const _0x448817 of _0x3d9205['createRangeIn'](_0x68b4c0['content'])['getItems']())_0x448817['is']('element')&&_0x1cb791['match'](_0x448817)&&_0xee98e9['push'](_0x448817),_0x448817['is']('element')&&_0x31921a['match'](_0x448817)&&_0x3d9205['removeStyle']('list-style-type',_0x448817);for(const _0x5e5bf3 of _0xee98e9)_0x3d9205['remove'](_0x5e5bf3);});}['afterInit'](){checkLicense$9(this);}}function generateMarker(_0x5b0620,_0x305a3b,_0xc1687a){let _0x1d0879=_0x305a3b['listMarkers'][_0x5b0620%_0x305a3b['listMarkers']['length']];if(void 0x0===_0x1d0879['showMarkerPath']||_0x1d0879['showMarkerPath'])return _0xc1687a['slice'](0x0,_0x5b0620+0x1)['map']((_0x18ef18,_0x2fd429)=>(_0x1d0879=_0x305a3b['listMarkers'][_0x2fd429%_0x305a3b['listMarkers']['length']],getMarkerString(_0x1d0879['marker'],_0x18ef18)))['join']('');{const _0x959510=_0xc1687a[_0xc1687a['length']-0x1];return getMarkerString(_0x1d0879['marker'],_0x959510);}}function getMarkerString(_0x5a520f,_0x24cd62){return'function'==typeof _0x5a520f?_0x5a520f(_0x24cd62):_0x5a520f;}function multiLevelListUpcastConverter(_0x358b2d,_0x2b048d){return(_0x5e7deb,_0x436f63,_0x5c8bed)=>{const _0xcd8442=_0x436f63['viewItem'];if(_0x436f63['modelRange']||Object['assign'](_0x436f63,_0x5c8bed['convertChildren'](_0x436f63['viewItem'],_0x436f63['modelCursor'])),!_0x5c8bed['consumable']['test'](_0xcd8442,{'classes':_0x358b2d['className']}))return;const _0x1eafe7=Array['from'](_0x436f63['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x40487b=>_0x2b048d['checkAttribute'](_0x40487b,'listItemId'));if(!_0x1eafe7['length'])return;_0x5c8bed['consumable']['consume'](_0xcd8442,{'classes':_0x358b2d['className']}),_0x5c8bed['consumable']['consume'](_0xcd8442,{'classes':'multi-level-list'}),_0x5c8bed['consumable']['consume'](_0xcd8442,{'styles':'list-style-type'});const _0x3fbb0b=_0x1eafe7[0x0]['getAttribute']('listIndent');for(const _0x2855b2 of _0x1eafe7)_0x2855b2['getAttribute']('listIndent')==_0x3fbb0b&&(_0x5c8bed['writer']['setAttribute']('listType',_0x358b2d['listType'],_0x2855b2),_0x5c8bed['writer']['setAttribute']('listMarkerStyle',_0x358b2d['listMarkerStyle'],_0x2855b2));};}function multiLevelListMarkerUpcastConverter(_0x27ad48){return(_0x31c40c,_0x5e7912,{writer:_0x4ea30f,consumable:_0x15c85a})=>{const _0x5d516c=_0x5e7912['modelCursor'],_0x364285=_0x5d516c['parent'],_0x53f4d1=_0x5e7912['viewItem'];if(_0x15c85a['consume'](_0x53f4d1,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x5d516c['isAtStart']&&_0x364285['hasAttribute']('listType')&&_0x53f4d1['childCount']>0x0){const _0x10c168=_0x27ad48['createRangeIn'](_0x53f4d1);let _0x25ec38='';for(const _0x1eaa19 of _0x10c168['getItems']())_0x1eaa19['is']('$textProxy')?(_0x25ec38+=_0x1eaa19['data']['trim'](),_0x15c85a['consume'](_0x1eaa19['textNode'])):_0x15c85a['consume'](_0x1eaa19,{'name':!0x0});_0x4ea30f['setAttribute']('listMarker',_0x25ec38['trim'](),_0x364285);}};}async function checkLicense$9(_0x513edf){const _0x15f8cc=_0x52d274([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]),_0x53ff6a=window[_0x52d274([0x44,0x61,0x74,0x65])][_0x52d274([0x6e,0x6f,0x77])](),_0x48d559=_0x513edf[_0x52d274([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c3545=new window[(_0x52d274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22f08d=>{_0x48d559[_0x52d274([0x6f,0x6e,0x63,0x65])](_0x52d274([0x72,0x65,0x61,0x64,0x79]),_0x22f08d);}),_0xeb6ad5={[_0x52d274([0x6b,0x74,0x79])]:_0x52d274([0x45,0x43]),[_0x52d274([0x75,0x73,0x65])]:_0x52d274([0x73,0x69,0x67]),[_0x52d274([0x63,0x72,0x76])]:_0x52d274([0x50,0x2d,0x32,0x35,0x36]),[_0x52d274([0x78])]:_0x52d274([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]),[_0x52d274([0x79])]:_0x52d274([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]),[_0x52d274([0x61,0x6c,0x67])]:_0x52d274([0x45,0x53,0x32,0x35,0x36])},_0x1dbf92=_0x48d559[_0x52d274([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52d274([0x67,0x65,0x74])](_0x52d274([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x232f73=await(async function(){let _0x2476a2,_0x1869cf=null,_0x36c1a6=null;try{if(_0x1dbf92==_0x52d274([0x47,0x50,0x4c]))return _0x52d274([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2476a2=(function(){const _0x1a8638=_0x1dbf92[_0x52d274([0x73,0x70,0x6c,0x69,0x74])](_0x52d274([0x2e]));if(0x3!=_0x1a8638[_0x52d274([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5c4b6c=_0x1a8638[0x1];return _0x5de5b4(_0x5c4b6c);function _0x5de5b4(_0x20aaeb){const _0xe76c7d=_0x7937ec(_0x20aaeb);return _0xe76c7d&&_0x208534()?_0xe76c7d:null;function _0x208534(){const _0x11784e=_0xe76c7d[_0x52d274([0x6a,0x74,0x69])],_0x56d2b7=window[_0x52d274([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11784e[_0x52d274([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11784e[_0x52d274([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51651d={..._0xe76c7d,[_0x52d274([0x6a,0x74,0x69])]:_0x11784e[_0x52d274([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x11784e[_0x52d274([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51651d[_0x52d274([0x76,0x63])],_0x599648(_0x51651d)==_0x56d2b7;}}}()),!_0x2476a2)return _0x52d274([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x2476a2[_0x52d274([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36c1a6=function(_0x30d875,_0x1abd97){return new window[(_0x52d274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7e15b2=>{if(_0x57fc0a())return _0x7e15b2(_0x52d274([0x56,0x61,0x6c,0x69,0x64]));_0x3ef147(),_0x48d559[_0x52d274([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52d274([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d2454=!0x1;const _0x53f099=uid();function _0xa8abcb(_0x5c7572){return!!_0x5c7572&&(typeof _0x5c7572===_0x52d274([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c7572===_0x52d274([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c7572[_0x52d274([0x74,0x68,0x65,0x6e])]===_0x52d274([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c7572[_0x52d274([0x63,0x61,0x74,0x63,0x68])]===_0x52d274([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x108a0c(_0x2d870f){_0x4559e0(_0x2d870f)[_0x52d274([0x74,0x68,0x65,0x6e])](_0x2b2b4a=>{if(!_0x2b2b4a||_0x2b2b4a[_0x52d274([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52d274([0x6f,0x6b]))return _0x52d274([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x379f50(_0x599648(_0x53f099+_0x1abd97))!=_0x2b2b4a[_0x52d274([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52d274([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52d274([0x56,0x61,0x6c,0x69,0x64]);})[_0x52d274([0x74,0x68,0x65,0x6e])](_0x3fcfe5=>(_0x38ab99(),_0x3fcfe5),()=>{const _0x5ada58=_0x4f814c();return null==_0x5ada58?(_0x38ab99(),_0x52d274([0x56,0x61,0x6c,0x69,0x64])):_0x52d274(_0x53ff6a-_0x5ada58>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52d274([0x74,0x68,0x65,0x6e])](_0x7e15b2)[_0x52d274([0x63,0x61,0x74,0x63,0x68])](()=>{_0x7e15b2(_0x52d274([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x392331=0x36ee80;function _0x38ab99(){const _0x3ca25e=_0x52d274([0x6c,0x6c,0x63,0x74,0x2d])+_0x379f50(_0x599648(_0x30d875)),_0x372d80=_0x16eb9e(_0x379f50(window[_0x52d274([0x4d,0x61,0x74,0x68])][_0x52d274([0x63,0x65,0x69,0x6c])](_0x53ff6a/_0x392331)));window[_0x52d274([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52d274([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ca25e,_0x372d80);}function _0x4f814c(){const _0x3e48e6=_0x52d274([0x6c,0x6c,0x63,0x74,0x2d])+_0x379f50(_0x599648(_0x30d875)),_0x414619=window[_0x52d274([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52d274([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e48e6);return _0x414619?window[_0x52d274([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16eb9e(_0x414619),0x10)*_0x392331:null;}function _0x4559e0(_0x4739cf){return new window[(_0x52d274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x252410,_0x29b3ba)=>{_0x4739cf[_0x52d274([0x74,0x68,0x65,0x6e])](_0x252410,_0x29b3ba),window[_0x52d274([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29b3ba,0x1d4c0);});}}_0x48d559[_0x52d274([0x6f,0x6e])](_0x52d274([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x441621,_0x131379)=>{if(_0x131379[0x0]!=_0x30d875)return _0x7e15b2(_0x52d274([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x131379[0x1]={..._0x131379[0x1],[_0x52d274([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53f099};},{[_0x52d274([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52d274([0x68,0x69,0x67,0x68])}),_0x48d559[_0x52d274([0x6f,0x6e])](_0x52d274([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4dcf17=>{_0xa8abcb(_0x4dcf17[_0x52d274([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d2454=!0x0,_0x108a0c(_0x4dcf17[_0x52d274([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52d274([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52d274([0x6c,0x6f,0x77])}),_0x5c3545[_0x52d274([0x74,0x68,0x65,0x6e])](()=>{_0x4d2454||_0x7e15b2(_0x52d274([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x57fc0a(){return _0x48d559[_0x52d274([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52d274([0x76,0x69,0x65,0x77])][_0x52d274([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52d274([0x61,0x75,0x74,0x6f]);}function _0x3ef147(){_0x48d559[_0x52d274([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52d274([0x76,0x69,0x65,0x77])][_0x52d274([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52d274([0x61,0x75,0x74,0x6f]);}}(_0x2476a2[_0x52d274([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2476a2[_0x52d274([0x6a,0x74,0x69])]));const _0x539133=await(async function(){let _0x5726ca=!0x0;try{const _0x9b9322=_0x1dbf92[_0x52d274([0x73,0x70,0x6c,0x69,0x74])](_0x52d274([0x2e])),[_0x1e92c9,_0x2c60cc,_0x1d7187]=_0x9b9322;return _0x5ac8a9(_0x1e92c9),await _0x561363(_0x1e92c9,_0x2c60cc,_0x1d7187),_0x5726ca;}catch{return!0x1;}function _0x5ac8a9(_0xd24bd1){const _0x4c0258=_0x7937ec(_0xd24bd1);_0x4c0258&&_0x4c0258[_0x52d274([0x61,0x6c,0x67])]==_0x52d274([0x45,0x53,0x32,0x35,0x36])||(_0x5726ca=!0x1);}async function _0x561363(_0x47930e,_0x2a0d9a,_0x57e24b){const _0x34cb5d=window[_0x52d274([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52d274([0x66,0x72,0x6f,0x6d])](_0x35d276(_0x57e24b),_0x258c92=>_0x258c92[_0x52d274([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9963d6=new window[(_0x52d274([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52d274([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47930e+_0x52d274([0x2e])+_0x2a0d9a),_0x531252=window[_0x52d274([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52d274([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x531252)return;const _0x4b0667=await _0x531252[_0x52d274([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52d274([0x6a,0x77,0x6b]),_0xeb6ad5,{[_0x52d274([0x6e,0x61,0x6d,0x65])]:_0x52d274([0x45,0x43,0x44,0x53,0x41]),[_0x52d274([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52d274([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52d274([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x531252[_0x52d274([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52d274([0x6e,0x61,0x6d,0x65])]:_0x52d274([0x45,0x43,0x44,0x53,0x41]),[_0x52d274([0x68,0x61,0x73,0x68])]:{[_0x52d274([0x6e,0x61,0x6d,0x65])]:_0x52d274([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b0667,_0x34cb5d,_0x9963d6)||(_0x5726ca=!0x1);}}());return _0x539133?(function(){const _0x4a2c0f=_0x2476a2[_0x52d274([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4a2c0f)return!0x1;if(_0x4a2c0f[_0x52d274([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d274([0x2a])))return!0x0;if(_0x4a2c0f[_0x52d274([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d274([0x4d,0x4c,0x4c])))return!0x0;return!0x1;}())?(function(){const _0x1932e9=[_0x52d274([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52d274([0x74,0x72,0x69,0x61,0x6c])][_0x52d274([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2476a2[_0x52d274([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53ff6a/0x3e8:0x69b0b080;return _0x2476a2[_0x52d274([0x65,0x78,0x70])]<_0x1932e9;}())?_0x52d274([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3a697d=_0x2476a2[_0x52d274([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a697d||0x0==_0x3a697d[_0x52d274([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x63eaed}=new URL(window[_0x52d274([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a697d[_0x52d274([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x63eaed))return!0x0;const _0x5d0df3=_0x63eaed[_0x52d274([0x73,0x70,0x6c,0x69,0x74])](_0x52d274([0x2e]));return _0x3a697d[_0x52d274([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ce406=>_0x2ce406[_0x52d274([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d274([0x2a])))[_0x52d274([0x6d,0x61,0x70])](_0x378d21=>_0x378d21[_0x52d274([0x73,0x70,0x6c,0x69,0x74])](_0x52d274([0x2e])))[_0x52d274([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d3243=>_0x5d3243[_0x52d274([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d0df3[_0x52d274([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52d274([0x6d,0x61,0x70])](_0x5dee11=>Array(_0x5d0df3[_0x52d274([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5dee11[_0x52d274([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52d274([0x66,0x69,0x6c,0x6c])](_0x5dee11[0x0]===_0x52d274([0x2a])?_0x52d274([0x2a]):'')[_0x52d274([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5dee11))[_0x52d274([0x73,0x6f,0x6d,0x65])](_0x5c0ec8=>_0x5d0df3[_0x52d274([0x65,0x76,0x65,0x72,0x79])]((_0x4b7a3d,_0x4e9c66)=>_0x5c0ec8[_0x4e9c66]===_0x4b7a3d||_0x5c0ec8[_0x4e9c66]===_0x52d274([0x2a])));}())?(_0x2476a2[_0x52d274([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52d274([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1869cf=function(_0x5a4cb1){const _0x584306=new window[(_0x52d274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f3d9d=>setTimeout(_0x2f3d9d,0x93ecc)),_0x482a41=_0x5c3545[_0x52d274([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52d274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30d08f=>{let _0x2f43f8=0x0;_0x48d559[_0x52d274([0x6d,0x6f,0x64,0x65,0x6c])][_0x52d274([0x6f,0x6e])](_0x52d274([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x182440,_0x5ec7b2)=>{_0x5ec7b2[0x0][_0x52d274([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f43f8++,0x5e8==_0x2f43f8&&(_0x30d08f(),_0x182440[_0x52d274([0x6f,0x66,0x66])]());});})),_0x513886=[_0x584306,_0x482a41];return window[_0x52d274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52d274([0x72,0x61,0x63,0x65])](_0x513886)[_0x52d274([0x74,0x68,0x65,0x6e])](()=>_0x5a4cb1);}(_0x52d274([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x1869cf&&_0x36c1a6)return new window[(_0x52d274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5104c8,_0x3e870e)=>{_0x1869cf[_0x52d274([0x74,0x68,0x65,0x6e])](_0x5104c8,_0x3e870e),_0x36c1a6[_0x52d274([0x74,0x68,0x65,0x6e])](_0xc61da8=>{_0xc61da8!=_0x52d274([0x56,0x61,0x6c,0x69,0x64])&&_0x5104c8(_0xc61da8);},_0x3e870e);});return _0x1869cf||_0x36c1a6||_0x52d274([0x56,0x61,0x6c,0x69,0x64]);}())):_0x52d274([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52d274([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52d274([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52d274([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x7937ec(_0x41d168){return _0x41d168[_0x52d274([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52d274([0x65,0x79]))?JSON[_0x52d274([0x70,0x61,0x72,0x73,0x65])](_0x35d276(_0x41d168)):null;}function _0x35d276(_0x583249){return window[_0x52d274([0x61,0x74,0x6f,0x62])](_0x583249[_0x52d274([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52d274([0x2b]))[_0x52d274([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52d274([0x2f])));}function _0x599648(_0xb48c76){let _0x564608=0x1505;function _0x10784a(_0x1c6467){for(let _0x3f676d=0x0;_0x3f676d<_0x1c6467[_0x52d274([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f676d++){const _0x1437ef=_0x1c6467[_0x52d274([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f676d);_0x564608=(_0x564608<<0x5)+_0x564608+_0x1437ef,_0x564608&=_0x564608;}}return function _0x3069c2(_0x127c2d){Array[_0x52d274([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x127c2d)?_0x127c2d[_0x52d274([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3069c2):_0x127c2d&&typeof _0x127c2d==_0x52d274([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52d274([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x127c2d)[_0x52d274([0x73,0x6f,0x72,0x74])]()[_0x52d274([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x48f51a,_0x3b9b8a])=>{_0x10784a(_0x48f51a),_0x3069c2(_0x3b9b8a);}):_0x10784a(window[_0x52d274([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x127c2d));}(_0xb48c76),_0x564608>>>0x0;}function _0x379f50(_0x523517){return _0x523517[_0x52d274([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52d274([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52d274([0x30]));}function _0x16eb9e(_0x2c67e3){return _0x2c67e3[_0x52d274([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52d274([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52d274([0x6a,0x6f,0x69,0x6e])]('');}function _0x30a6e7(){}function _0x52d274(_0xaa3b62){return _0xaa3b62['map'](_0x279446=>String['fromCharCode'](_0x279446))['join']('');}!function(_0x2e0db2){const _0x734a6a=(function(){const _0x2e36a1=window[_0x52d274([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52d274([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52d274([0x6e,0x6f,0x77])]())[_0x52d274([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52d274([0x2e]),'');let _0x2a5db0=_0x52d274([0x75]);for(let _0x218f6f=0x0;_0x218f6f<_0x2e36a1[_0x52d274([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x218f6f+=0x2){let _0x5e92c9=window[_0x52d274([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e36a1[_0x52d274([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x218f6f,_0x218f6f+0x2));_0x5e92c9>=_0x15f8cc[_0x52d274([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e92c9-=_0x15f8cc[_0x52d274([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a5db0+=_0x15f8cc[_0x5e92c9];}return _0x2a5db0;}());_0x48d559[_0x734a6a]=_0x52d274([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e0db2,_0x2e0db2!=_0x52d274([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x5c3545,_0x48d559[_0x52d274([0x6d,0x6f,0x64,0x65,0x6c])][_0x52d274([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30a6e7,_0x48d559[_0x52d274([0x6d,0x6f,0x64,0x65,0x6c])][_0x52d274([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30a6e7,_0x48d559[_0x52d274([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52d274([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x232f73);}function getTranslation$9(_0x364b94,_0x4d0e6b){const _0x4e71d0=_0x364b94['t'],t=_0x364b94['t'];switch(_0x4d0e6b){case'Start\x20at':return _0x4e71d0('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x4e71d0('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x4e71d0('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x4e71d0('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 _0x4d0e6b;}}class MultiLevelListView extends View{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0x4a8004,{enabledProperties:_0x5a4815,styleButtonViews:_0x27b150,styleGridAriaLabel:_0x1f3cdb}){super(_0x4a8004);const _0x4d731b=['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'}}),_0x5a4815['styles']?(this['stylesView']=this['_createStylesView'](_0x27b150,_0x1f3cdb),this['children']['add'](this['stylesView'])):_0x4d731b['push']('ck-multi-level-list-properties_without-styles'),_0x5a4815['startIndex']&&(this['_addListPropertyViews'](_0x5a4815),_0x4d731b['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x4d731b},'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 _0x248340 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x248340['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x42cc73['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 _0x5a2a7d=_0x42811e=>_0x42811e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5a2a7d),this['keystrokes']['set']('arrowleft',_0x5a2a7d),this['keystrokes']['set']('arrowup',_0x5a2a7d),this['keystrokes']['set']('arrowdown',_0x5a2a7d);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x351152,_0x490f67){const _0x4f540a=new View(this['locale']);return _0x4f540a['children']=_0x4f540a['createCollection'](),_0x4f540a['children']['addMany'](_0x351152),_0x4f540a['setTemplate']({'tag':'div','attributes':{'aria-label':_0x490f67,'class':['ck','ck-multi-level-list-styles']},'children':_0x4f540a['children']}),_0x4f540a['children']['delegate']('execute')['to'](this),_0x4f540a['focus']=function(){this['children']['first']['focus']();},_0x4f540a['focusTracker']=new FocusTracker(),_0x4f540a['keystrokes']=new KeystrokeHandler(),_0x4f540a['render'](),_0x4f540a['keystrokes']['listenTo'](_0x4f540a['element']),_0x4f540a;}['_addListPropertyViews'](_0x5aedc4){const _0x557b97=[];_0x5aedc4['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x557b97['push'](this['startIndexFieldView'])),_0x5aedc4['styles']?(this['additionalPropertiesCollapsibleView']=new CollapsibleView(this['locale'],_0x557b97),this['additionalPropertiesCollapsibleView']['set']({'label':getTranslation$9(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x557b97,'isEnabled',(..._0x2bfaeb)=>_0x2bfaeb['some'](_0x202f96=>_0x202f96)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x37a78f,_0x501803,_0x46a992)=>{_0x46a992||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x557b97);}['_createStartIndexField'](){const _0x313172=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0x313172['set']({'label':getTranslation$9(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x313172['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x313172['fieldView']['on']('input',()=>{const _0x1b0c6f=_0x313172['fieldView']['element'],_0xcbc52b=_0x1b0c6f['valueAsNumber'];Number['isNaN'](_0xcbc52b)?_0x313172['errorText']=getTranslation$9(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x1b0c6f['checkValidity']()?this['fire']('listStart',{'startIndex':_0xcbc52b}):_0x313172['errorText']=getTranslation$9(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x313172;}}class MultiLevelListUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xd87395=this['editor'];_0xd87395['ui']['componentFactory']['add']('multiLevelList',getViewCreator({'editor':_0xd87395,'parentCommandName':'multiLevelList','buttonLabel':getTranslation$9(_0xd87395['locale'],'Multi-level\x20List'),'buttonIcon':IconMultiLevelList,'styleGridAriaLabel':getTranslation$9(_0xd87395['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0xd87395['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x2c07c4=_0xd87395['commands']['get']('multiLevelList'),_0x5f24cb=new MenuBarMenuListItemButtonView(_0xd87395['locale']);return _0x5f24cb['set']({'label':getTranslation$9(_0xd87395['locale'],'Multi-level\x20List'),'icon':IconMultiLevelList}),_0x5f24cb['bind']('isEnabled')['to'](_0x2c07c4),_0x5f24cb['bind']('isOn')['to'](_0x2c07c4,'value',_0x588010=>!!_0x588010),_0x5f24cb['on']('execute',()=>{_0xd87395['execute']('multiLevelList'),_0xd87395['editing']['view']['focus']();}),_0x5f24cb;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x151dbd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53aaa9;for(const _0x2d00dd in _0x151dbd){const _0x453df7=_0x2d00dd,_0x29e887=_0x151dbd[_0x453df7];if('multiLevelListLicenseKeyValid'==_0x29e887||'multiLevelListLicenseKeyInvalid'==_0x29e887||'multiLevelListLicenseKeyExpired'==_0x29e887||'multiLevelListLicenseKeyDomainLimit'==_0x29e887||'multiLevelListLicenseKeyNotAllowed'==_0x29e887||'multiLevelListLicenseKeyEvaluationLimit'==_0x29e887||'multiLevelListLicenseKeyUsageLimit'==_0x29e887){delete _0x151dbd[_0x453df7],_0x53aaa9=_0x29e887,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x53aaa9&&_0x151dbd['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x53aaa9&&_0x151dbd['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x53aaa9&&_0x151dbd['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x53aaa9&&_0x151dbd['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x53aaa9&&_0x151dbd['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x53aaa9&&_0x151dbd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getViewCreator({editor:_0xb0ad32,parentCommandName:_0x330463,buttonLabel:_0x45cd26,buttonIcon:_0x1fd698,styleGridAriaLabel:_0x20e2ec,styleDefinitions:_0x398f1e}){const _0x1b6718=_0xb0ad32['commands']['get'](_0x330463),_0x40c349=_0xb0ad32['config']['get']('list.properties')||{},_0x25a441=_0xb0ad32['plugins']['has']('ListProperties'),_0x5355a7=_0x40c349['startIndex'];return _0x25a441&&_0x5355a7?_0x306606=>{const _0x325672=createDropdown(_0x306606,SplitButtonView),_0x2506d3=_0x325672['buttonView'];return _0x325672['bind']('isEnabled')['to'](_0x1b6718),_0x325672['class']='ck-list-styles-dropdown',_0x2506d3['on']('execute',()=>{_0xb0ad32['execute'](_0x330463),_0xb0ad32['editing']['view']['focus']();}),_0x2506d3['set']({'label':_0x45cd26,'icon':_0x1fd698,'tooltip':!0x0,'isToggleable':!0x0}),_0x2506d3['bind']('isOn')['to'](_0x1b6718,'value',_0x70b174=>!!_0x70b174),_0x325672['once']('change:isOpen',()=>{const _0x593d35=createListPropertiesView({'editor':_0xb0ad32,'dropdownView':_0x325672,'styleGridAriaLabel':_0x20e2ec,'styleDefinitions':_0x398f1e});_0x325672['panelView']['children']['add'](_0x593d35);}),_0x325672['on']('execute',()=>{_0xb0ad32['editing']['view']['focus']();}),_0x325672;}:_0x522851=>{const _0x19fe2c=new ButtonView(_0x522851);return _0x19fe2c['set']({'label':_0x45cd26,'icon':_0x1fd698,'tooltip':!0x0,'isToggleable':!0x0}),_0x19fe2c['bind']('isOn')['to'](_0x1b6718,'value',_0xc400d=>!!_0xc400d),_0x19fe2c['on']('execute',()=>{_0xb0ad32['execute'](_0x330463),_0xb0ad32['editing']['view']['focus']();}),_0x19fe2c;};}function createListPropertiesView({editor:_0x2cb125,dropdownView:_0x53ab59,styleDefinitions:_0x77ffe2,styleGridAriaLabel:_0x1ba1ea}){const _0x4c37fd=_0x2cb125['locale'],_0x1d0996=_0x2cb125['config']['get']('list.properties');_0x1d0996['reversed']=!0x1,_0x77ffe2['length']||(_0x1d0996['styles']=!0x1);const _0x4018b3=new MultiLevelListView(_0x4c37fd,{'styleGridAriaLabel':_0x1ba1ea,'enabledProperties':_0x1d0996,'styleButtonViews':null});if(_0x1d0996['startIndex']){const _0x543ad3=_0x2cb125['commands']['get']('listStart');_0x4018b3['startIndexFieldView']['bind']('isEnabled')['to'](_0x543ad3),_0x4018b3['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x543ad3),_0x4018b3['on']('listStart',(_0xddf74,_0x42dde6)=>_0x2cb125['execute']('listStart',_0x42dde6));}return _0x4018b3['delegate']('execute')['to'](_0x53ab59),_0x4018b3;}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 _0x210666{['refresh'](){const _0x4517d6=this['editor']['model'],_0x37d668=_0x4517d6['schema']['checkChild'](_0x4517d6['document']['selection']['focus'],'mergeField');this['isEnabled']=_0x37d668;}['execute'](_0x3d0b95){if(!_0x3d0b95||'string'!=typeof _0x3d0b95)return;const _0x5a381b=this['editor']['model'];_0x5a381b['change'](_0x4ca735=>{_0x5a381b['deleteContent'](_0x5a381b['document']['selection']);const _0x41b1e8=_0x4ca735['createElement']('mergeField',{'id':_0x3d0b95});for(const [_0x1e22f4,_0x5c2274]of _0x5a381b['document']['selection']['getAttributes']())_0x5a381b['schema']['checkAttribute'](_0x41b1e8,_0x1e22f4)&&_0x4ca735['setAttribute'](_0x1e22f4,_0x5c2274,_0x41b1e8);_0x5a381b['insertContent'](_0x41b1e8,_0x5a381b['document']['selection'],0x0,{'setSelection':'after'});});}}class InsertMergeFieldBlockCommand extends _0x210666{['refresh'](){const _0xd99fef=this['editor']['model'],_0x560697=_0xd99fef['document']['selection'];this['isEnabled']=isAllowedInParent(_0x560697,_0xd99fef);}['execute'](_0x5bd239,_0x1ff379){if(!_0x5bd239||'string'!=typeof _0x5bd239)return;const _0x39f058=this['editor']['model'];_0x39f058['change'](_0x172982=>{const _0x2ee8b6=_0x172982['createElement']('mergeFieldBlock',{'id':_0x5bd239});_0x39f058['insertObject'](_0x2ee8b6,_0x39f058['document']['selection'],null,{'setSelection':'on','findOptimalPosition':!0x1===_0x1ff379?void 0x0:'auto'});});}}function isAllowedInParent(_0x2f81fd,_0x575a19){let _0x424532=findOptimalInsertionRange(_0x2f81fd,_0x575a19)['start']['parent'];return _0x424532['isEmpty']&&!_0x575a19['schema']['isLimit'](_0x424532)&&(_0x424532=_0x424532['parent']),_0x575a19['schema']['checkChild'](_0x424532,'mergeFieldBlock');}class InsertMergeFieldImageCommand extends _0x210666{constructor(_0x306c27){super(_0x306c27),this['bind']('isEnabled')['to'](this['editor']['commands']['get']('insertImage'));}['execute'](_0x458fcd,_0x29e767){if(!_0x458fcd||'string'!=typeof _0x458fcd)return;const _0x21dcc0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1a0ea3=_0x21dcc0['getMergeFieldWidth'](_0x458fcd),_0x492702=_0x21dcc0['getMergeFieldHeight'](_0x458fcd);this['editor']['execute']('insertImage',{'source':{'src':_0x21dcc0['wrapInAffixes'](_0x458fcd),'width':_0x1a0ea3,'height':_0x492702},'breakBlock':_0x29e767&&_0x29e767['breakBlock']});}}class PreviewMergeFieldsCommand extends _0x210666{constructor(_0x5cb60c){super(_0x5cb60c);const _0xa351ee=this['editor']['plugins']['get']('MergeFieldsEditing');this['bind']('value')['to'](_0xa351ee,'previewMode'),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x221350){this['editor']['plugins']['get']('MergeFieldsEditing')['previewMode']=_0x221350;}}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(_0x18a5b9){super(_0x18a5b9),_0x18a5b9['config']['define']('mergeFields.previewModes',['$labels','$defaultValues','$dataSets']),_0x18a5b9['config']['define']('mergeFields.dataSets',[]),_0x18a5b9['config']['define']('mergeFields.definitions',[]),_0x18a5b9['config']['define']('mergeFields.prefix','{{'),_0x18a5b9['config']['define']('mergeFields.suffix','}}'),_0x18a5b9['config']['define']('mergeFields.previewHtmlValues',!0x1),_0x18a5b9['config']['define']('mergeFields.sanitizeHtml',_0x525985=>(logWarning('merge-fields-provide-sanitize-function'),{'html':_0x525985,'hasChanged':!0x1})),this['_mergeFieldPrefix']=_0x18a5b9['config']['get']('mergeFields.prefix'),this['_mergeFieldSuffix']=_0x18a5b9['config']['get']('mergeFields.suffix'),this['_shouldPreviewHtmlValues']=_0x18a5b9['config']['get']('mergeFields.previewHtmlValues'),this['flattenedMergeFieldDefinitions']=this['_getFlattenedMergeFieldDefinitions'](),this['_validateConfig']();const _0x4056ac='\x5c'+this['_mergeFieldPrefix']['split']('')['join']('\x5c'),_0x5b844e='\x5c'+this['_mergeFieldSuffix']['split']('')['join']('\x5c');this['_mergeFieldRegExp']=new RegExp('('+_0x4056ac+'[^'+(_0x4056ac+_0x5b844e)+'\x20]+'+_0x5b844e+')','g'),this['availablePreviewModes']=this['_getAvailablePreviewModes']();const _0x55cbf1=_0x18a5b9['config']['get']('mergeFields.initialPreviewMode')||this['availablePreviewModes'][0x0];this['_validatePreviewMode'](_0x55cbf1),this['set']('previewMode',_0x55cbf1),this['_mergeFieldElements']=new Set();}['init'](){const _0x165e2b=this['editor'];_0x165e2b['commands']['add']('insertMergeField',new InsertMergeFieldCommand(_0x165e2b)),_0x165e2b['commands']['add']('insertMergeFieldBlock',new InsertMergeFieldBlockCommand(_0x165e2b)),_0x165e2b['commands']['add']('insertMergeFieldImage',new InsertMergeFieldImageCommand(_0x165e2b)),_0x165e2b['commands']['add']('previewMergeFields',new PreviewMergeFieldsCommand(_0x165e2b)),this['_defineSchema'](),this['_defineConverters'](),this['_registerConversionPostFixer'](),this['listenTo'](this['editor']['editing']['view']['document'],'imageLoaded',this['_setupTooltipsTogglingForImageMergeField']),this['on']('change:previewMode',(_0x1ecd2f,_0x48ca9a,_0x44fe3b)=>{this['_validatePreviewMode'](_0x44fe3b),this['refreshMergeFields']();}),this['listenTo'](_0x165e2b['model']['document'],'change:data',()=>{this['_trackAddedMergeFields']();}),_0x165e2b['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x165e2b['model'],_0x2fdd84=>_0x2fdd84['hasClass']('ck-merge-field'))),_0x165e2b['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x165e2b['model'],_0x16f284=>_0x16f284['hasClass']('ck-merge-field-block'))),_0x165e2b['editing']['view']['domConverter']['registerInlineObjectMatcher']({'name':'span','classes':['ck-merge-field']});}['afterInit'](){this['_disableCommandOnMergeFields']('ckboxImageEdit'),this['_disableCommandOnMergeFields']('uploadcareImageEdit'),checkLicense$8(this);}['isMergeField'](_0x3bec62){return'mergeField'===_0x3bec62['name']||'mergeFieldBlock'===_0x3bec62['name']||!!('imageBlock'===_0x3bec62['name']||'imageInline'===_0x3bec62['name']&&_0x3bec62['getAttribute']('src'))&&!!_0x3bec62['getAttribute']('src')['match'](this['_mergeFieldRegExp']);}['getDefaultValues'](){const _0x59f6c1={},_0x2db966=this['getMergeFieldsIds']();for(const _0x33ad34 of _0x2db966)_0x59f6c1[_0x33ad34]=this['getMergeFieldDefaultValue'](_0x33ad34);return _0x59f6c1;}['getDataSetValues'](_0x5ed80f,_0x193a1f=!0x1){const _0xe7427d={},_0x5b63fd=this['getMergeFieldsIds']();for(const _0x22cca5 of _0x5b63fd){let _0x4f5a1b=this['getMergeFieldValue'](_0x22cca5,_0x5ed80f);null===_0x4f5a1b&&_0x193a1f&&(_0x4f5a1b=this['getMergeFieldDefaultValue'](_0x22cca5)),_0xe7427d[_0x22cca5]=_0x4f5a1b;}return _0xe7427d;}['getLabel'](_0x2ded21){const _0x3f76de=this['getDefinition'](_0x2ded21);return _0x3f76de&&_0x3f76de['label']?_0x3f76de['label']:null;}['getMergeFieldDefaultValue'](_0x239cc2){const _0x55bc9c=this['getDefinition'](_0x239cc2);if(!_0x55bc9c||void 0x0===_0x55bc9c['defaultValue'])return null;const _0x15e245='function'==typeof _0x55bc9c['defaultValue']?_0x55bc9c['defaultValue'](this['editor']):_0x55bc9c['defaultValue'];return String(_0x15e245);}['getMergeFieldValue'](_0x178296,_0x2ecfb0){const _0x358a01=this['editor']['config']['get']('mergeFields.dataSets')['find'](_0x5f1a3d=>_0x5f1a3d['id']===_0x2ecfb0);if(!_0x358a01)throw new CKEditorError('merge-fields-data-set-not-found',null);const _0x4ce45d=_0x358a01['values'][_0x178296];if(void 0x0===_0x4ce45d)return null;const _0x445b8e='function'==typeof _0x4ce45d?_0x4ce45d(this['editor']):_0x4ce45d;return String(_0x445b8e);}['getMergeFieldType'](_0x51527e){if('string'!=typeof _0x51527e){const _0x56f673=_0x51527e;return'mergeField'===_0x56f673['name']?'text':'mergeFieldBlock'===_0x56f673['name']?'block':'imageBlock'!==_0x56f673['name']&&'imageInline'!==_0x56f673['name']||!_0x56f673['getAttribute']('src')?null:_0x56f673['getAttribute']('src')['match'](this['_mergeFieldRegExp'])?'image':null;}const _0x491fec=this['getDefinition'](_0x51527e);return _0x491fec&&_0x491fec['type']?_0x491fec['type']:'text';}['getMergeFieldHeight'](_0x186670){const _0x130589=this['getDefinition'](_0x186670);return _0x130589&&'block'===_0x130589['type']?_0x130589['height']||DEFAULT_MERGE_FIELD_BLOCK_HEIGHT:_0x130589&&'image'===_0x130589['type']?_0x130589['height']||DEFAULT_MERGE_FIELD_IMAGE_HEIGHT:null;}['getMergeFieldWidth'](_0x2080ee){const _0x386337=this['getDefinition'](_0x2080ee);return _0x386337&&'image'===_0x386337['type']?_0x386337['width']||DEFAULT_MERGE_FIELD_IMAGE_WIDTH:null;}['getDocumentMergeFieldsIds'](){const _0x5dc598=new Set();for(const _0x5344a8 of this['_mergeFieldElements'])'$graveyard'!==_0x5344a8['root']['rootName']&&('image'===this['getMergeFieldType'](_0x5344a8)?_0x5dc598['add'](this['unwrapAffixes'](_0x5344a8['getAttribute']('src'))):_0x5dc598['add'](_0x5344a8['getAttribute']('id')));return Array['from'](_0x5dc598);}['getMergeFieldsIds'](){const _0x178a66=this['flattenedMergeFieldDefinitions']['map'](_0x5461a3=>_0x5461a3['id']),_0xdab1e6=this['getDocumentMergeFieldsIds']();return Array['from'](new Set([..._0x178a66,..._0xdab1e6]));}['getDefinition'](_0x38cc96){return this['flattenedMergeFieldDefinitions']['find'](_0x472ddf=>_0x472ddf['id']===_0x38cc96)||null;}['refreshMergeFields'](){this['_mergeFieldElements']['forEach'](_0x135d02=>{'$graveyard'!==_0x135d02['root']['rootName']&&this['editor']['editing']['reconvertItem'](_0x135d02);});}['wrapInAffixes'](_0x4f82e2){return this['_mergeFieldPrefix']+_0x4f82e2+this['_mergeFieldSuffix'];}['unwrapAffixes'](_0xb9c964){return _0xb9c964['slice'](this['_mergeFieldPrefix']['length'],_0xb9c964['length']-this['_mergeFieldSuffix']['length']);}['_getFlattenedMergeFieldDefinitions'](){const _0x13a4ae=new Set(),_0x251539=this['editor'];return _0x251539['config']['get']('mergeFields.definitions')['reduce']((_0x4061ac,_0x451b49)=>{if('groupId'in _0x451b49){if(_0x13a4ae['has'](_0x451b49['groupId']))throw new CKEditorError('merge-fields-duplicate-group-id',_0x251539,{'duplicateId':_0x451b49['groupId']});_0x13a4ae['add'](_0x451b49['groupId']);}return'groupId'in _0x451b49?function(_0x5e1fa0,_0x239041){for(const _0xd004c5 of _0x239041['definitions'])_0x5e1fa0=_0x5e1fa0['concat'](_0xd004c5);return _0x5e1fa0;}['bind'](_0x251539)(_0x4061ac,_0x451b49):_0x4061ac['concat'](_0x451b49);},new Array());}['_validateConfig'](){const _0x8935fa=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x8935fa['test'](this['_mergeFieldPrefix'])||!_0x8935fa['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 _0x314e9a=new Set();if(this['flattenedMergeFieldDefinitions']['map'](_0x2a05f9=>{if(!ALLOWED_IN_IDS['test'](_0x2a05f9['id']))throw new CKEditorError('merge-fields-invalid-id',this,{'incorrectId':_0x2a05f9['id']});if(_0x314e9a['has'](_0x2a05f9['id']))throw new CKEditorError('merge-fields-duplicate-merge-field-id',this,{'duplicateId':_0x2a05f9['id']});_0x314e9a['add'](_0x2a05f9['id']);}),this['_mergeFieldPrefix']===this['_mergeFieldSuffix'])throw new CKEditorError('merge-fields-prefix-and-suffix-must-differ',this);const _0x2a399e=this['editor']['config']['get']('mergeFields.previewModes'),_0xd5dbf6=['$labels','$defaultValues','$dataSets'];if(!_0x2a399e['length']||!_0x2a399e['every'](_0x278855=>_0xd5dbf6['includes'](_0x278855)))throw new CKEditorError('merge-fields-invalid-preview-modes-configuration',this,{'invalidConfig':_0x2a399e});const _0x4889a0=new Set(),_0xfa2457=this['editor']['config']['get']('mergeFields.dataSets');for(const _0x35cebb of _0xfa2457){if(_0x4889a0['has'](_0x35cebb['id']))throw new CKEditorError('merge-fields-duplicate-data-set-id',this,{'duplicateId':_0x35cebb['id']});_0x4889a0['add'](_0x35cebb['id']);}}['_getAvailablePreviewModes'](){const _0x3b6d30=this['editor']['config']['get']('mergeFields.previewModes'),_0x58a4a3=[];if(_0x3b6d30['includes']('$labels')&&_0x58a4a3['push']('$labels'),_0x3b6d30['includes']('$defaultValues')&&_0x58a4a3['push']('$defaultValues'),_0x3b6d30['includes']('$dataSets')){const _0x9ec6ca=this['editor']['config']['get']('mergeFields.dataSets');_0x58a4a3['push'](..._0x9ec6ca['map'](_0x763fed=>_0x763fed['id']));}return _0x58a4a3;}['_defineSchema'](){const _0x3c0895=this['editor']['model']['schema'];_0x3c0895['register']('mergeField',{'inheritAllFrom':'$inlineObject','allowAttributes':['id'],'allowWhere':'$text'}),_0x3c0895['register']('mergeFieldBlock',{'inheritAllFrom':'$blockObject','allowAttributes':['id']});}['_defineConverters'](){const _0x25ef1f=this['editor']['conversion'];_0x25ef1f['for']('upcast')['add'](_0xb81f3=>{_0xb81f3['on']('text',(_0x2ecb3a,_0x1d1735,_0x9d6c49)=>{const {writer:_0x5b36b5,safeInsert:_0x2fbf50}=_0x9d6c49,{viewItem:_0x32f4d3}=_0x1d1735,_0x23d244=_0x32f4d3['data']['split'](this['_mergeFieldRegExp'])['filter'](_0x5d3919=>_0x5d3919);if(0x1===_0x23d244['length']&&!_0x23d244[0x0]['match'](this['_mergeFieldRegExp']))return;if(!_0x1d1735['modelRange'])return;const _0xfe6a2b=_0x5b36b5['createElement']('$cursor');_0x5b36b5['insert'](_0xfe6a2b,_0x1d1735['modelCursor']);const _0x1ab631=[];for(const _0x36ab71 of _0x1d1735['modelRange']['getItems']()){if(!_0x36ab71['is']('$textProxy'))continue;const _0x3b65ab=_0x36ab71['textNode']['data']['matchAll'](this['_mergeFieldRegExp']),_0xf67d5e=_0x36ab71['parent'],_0x77112f=_0x36ab71['textNode']['startOffset'];for(const _0xddcbb4 of[..._0x3b65ab]['reverse']()){const _0x47bd13=_0xddcbb4[0x0],_0x68ff5d=_0x5b36b5['createPositionAt'](_0xf67d5e,_0xddcbb4['index']+_0x77112f),_0x1b3215=_0x68ff5d['getShiftedBy'](_0x47bd13['length']),_0xd9fe1a=_0x5b36b5['createRange'](_0x68ff5d,_0x1b3215),_0x533068=this['unwrapAffixes'](_0x47bd13),_0x58f7db=this['getMergeFieldType'](_0x533068),_0x346fb0='block'==_0x58f7db?'mergeFieldBlock':'mergeField',_0x4bd55b=_0x5b36b5['createElement'](_0x346fb0,{'id':_0x533068});_0x5b36b5['remove'](_0xd9fe1a),_0x5b36b5['insert'](_0x4bd55b,_0x68ff5d),'block'==_0x58f7db&&_0x1ab631['push'](_0x4bd55b);}}_0x1ab631['reverse']();for(const _0x440279 of _0x1ab631){const _0x47298e=_0x5b36b5['createPositionBefore'](_0x440279),_0x2f4abe=_0x440279['nextSibling']==_0xfe6a2b;_0x5b36b5['remove'](_0x440279),_0x2fbf50(_0x440279,_0x47298e)&&_0x2f4abe&&_0x5b36b5['move'](_0x5b36b5['createRangeOn'](_0xfe6a2b),_0x5b36b5['createPositionAfter'](_0x440279));}_0x1d1735['modelCursor']=_0x5b36b5['createPositionBefore'](_0xfe6a2b),_0x1d1735['modelRange']=_0x5b36b5['createRange'](_0x1d1735['modelRange']['start'],_0x1d1735['modelCursor']),_0x5b36b5['remove'](_0xfe6a2b);},{'priority':priorities['get']('lowest')-0x1});}),_0x25ef1f['for']('upcast')['elementToElement']({'view':{'name':'span','attributes':'data-ck-merge-field'},'model':(_0x59c762,{writer:_0x405552})=>_0x405552['createElement']('mergeField',{'id':_0x59c762['getAttribute']('data-ck-merge-field')})}),_0x25ef1f['for']('upcast')['elementToElement']({'view':{'name':'div','attributes':'data-ck-merge-field'},'model':(_0x22d844,{writer:_0x59763c})=>_0x59763c['createElement']('mergeFieldBlock',{'id':_0x22d844['getAttribute']('data-ck-merge-field')})}),_0x25ef1f['for']('upcast')['add'](this['_upcastSrcAttributeFromClipboard']()),_0x25ef1f['for']('editingDowncast')['elementToElement']({'model':'mergeField','view':(_0x4cd57e,{writer:_0x8ead9f})=>this['_createMergeFieldWidget'](_0x4cd57e,_0x8ead9f,'text')}),_0x25ef1f['for']('dataDowncast')['elementToElement']({'model':'mergeField','view':(_0x4dea12,{writer:_0x262b85,options:_0x157921})=>this['_createTextualMergeField'](_0x4dea12,_0x262b85,_0x157921)}),_0x25ef1f['for']('editingDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x3af86e,{writer:_0x5db74a})=>this['_createMergeFieldWidget'](_0x3af86e,_0x5db74a,'block')}),_0x25ef1f['for']('dataDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x215647,{writer:_0x24375f,options:_0x5918e2})=>this['_createTextualMergeField'](_0x215647,_0x24375f,_0x5918e2)}),_0x25ef1f['for']('editingDowncast')['add'](this['_downcastSrcAttributeToEditing']('imageBlock'))['add'](this['_downcastSrcAttributeToEditing']('imageInline')),_0x25ef1f['for']('dataDowncast')['add'](this['_downcastSrcAttributeToData']('imageBlock'))['add'](this['_downcastSrcAttributeToData']('imageInline'));}['_upcastSrcAttributeFromClipboard'](){return _0x1d8bd3=>{_0x1d8bd3['on']('element:img',(_0x3fdfef,_0x54f319,_0x5d028b)=>{_0x5d028b['consumable']['test'](_0x54f319['viewItem'],{'attributes':'data-ck-merge-field'})&&(_0x5d028b['writer']['setAttribute']('src',this['wrapInAffixes'](_0x54f319['viewItem']['getAttribute']('data-ck-merge-field')),_0x54f319['modelCursor']['nodeBefore']),_0x5d028b['consumable']['consume'](_0x54f319['viewItem'],{'attributes':'data-ck-merge-field'}));},{'priority':'low'});};}['_downcastSrcAttributeToData'](_0x369d10){const _0x90059f=this['editor']['plugins']['get']('ImageUtils'),_0x28ceb5=(_0x50a0ce,_0x14d862,_0x266f5c)=>{if(!0x1!==_0x266f5c['consumable']['test'](_0x14d862['item'],_0x50a0ce['name']))return;if(!String(_0x14d862['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x186255=_0x266f5c['writer'],_0x42ae23=_0x266f5c['mapper']['toViewElement'](_0x14d862['item']),_0x521661=_0x90059f['findViewImgElement'](_0x42ae23),_0x18f02e=String(_0x14d862['attributeNewValue']),_0x4fb115=this['unwrapAffixes'](_0x18f02e),_0x595968=_0x266f5c['options']['mergeFieldsData'];if(_0x266f5c['options']['isClipboardPipeline']&&'$labels'!==this['previewMode']){let _0x10026d;return _0x10026d='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x4fb115)||this['getLabel'](_0x4fb115)||this['wrapInAffixes'](_0x4fb115):this['getMergeFieldValue'](_0x4fb115,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x4fb115)||this['getLabel'](_0x4fb115)||this['wrapInAffixes'](_0x4fb115),_0x186255['setAttribute']('data-ck-merge-field',_0x4fb115,_0x521661),void _0x186255['setAttribute'](_0x14d862['attributeKey'],_0x10026d,_0x521661);}const _0x561659=_0x595968&&_0x595968[_0x4fb115]?_0x595968[_0x4fb115]:_0x18f02e;_0x186255['setAttribute'](_0x14d862['attributeKey'],_0x561659,_0x521661);};return _0x4546a3=>{_0x4546a3['on']('attribute:src:'+_0x369d10,_0x28ceb5,{'priority':'low'});};}['_downcastSrcAttributeToEditing'](_0x21106a){const _0xb25be8=this['editor']['plugins']['get']('ImageUtils'),_0x4c385c=(_0x4c0120,_0x482b02,_0x328de9)=>{if(!0x1!==_0x328de9['consumable']['test'](_0x482b02['item'],_0x4c0120['name']))return;if(!String(_0x482b02['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x4a9fdb=_0x328de9['writer'],_0x25b439=_0x328de9['mapper']['toViewElement'](_0x482b02['item']),_0x1b55fd=_0xb25be8['findViewImgElement'](_0x25b439),_0xd857e1=String(_0x482b02['attributeNewValue']),_0x4e1ba9=this['unwrapAffixes'](_0xd857e1),_0x1fb470=this['getMergeFieldDefaultValue'](_0x4e1ba9),_0x39ce7b='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC';let _0x5ecefe,_0x4d5ae8='',_0x49990f='';if('$labels'===this['previewMode'])_0x5ecefe=_0x39ce7b;else{if('$defaultValues'===this['previewMode'])_0x1fb470?(_0x5ecefe=_0x1fb470,_0x49990f='\x20ck-merge-field-image_with-value'):(_0x5ecefe=_0x39ce7b,_0x4d5ae8='WARNING_MISSING_DEFAULT_VALUE',_0x49990f='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_no-default');else{const _0x48fb94=this['getMergeFieldValue'](_0x4e1ba9,this['previewMode']);_0x48fb94?(_0x5ecefe=_0x48fb94,_0x49990f='\x20ck-merge-field-image_with-value'):_0x1fb470?(_0x5ecefe=_0x1fb470,_0x49990f='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_default-value-used',_0x4d5ae8='WARNING_MISSING_DATA_USED_DEFAULT_VALUE'):(_0x5ecefe=_0x39ce7b,_0x49990f='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_missing-data',_0x4d5ae8='WARNING_MISSING_DATA');}}if(_0x4a9fdb['addClass']('ck-merge-field-image'+_0x49990f,_0x25b439),_0x4a9fdb['setAttribute'](_0x482b02['attributeKey'],_0x5ecefe,_0x1b55fd),'$labels'===this['previewMode']){const _0x2bc81a='imageInline'===_0x21106a?'span':'div',_0x5835be=this['_mergeFieldPrefix'],_0x16b28b=this['_mergeFieldSuffix'],_0x28d43a=_0x4a9fdb['createContainerElement'](_0x2bc81a,{'class':'ck-merge-field','data-cke-tooltip-instant':'true'},[_0x4a9fdb['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x2acb3e){const _0x2efea9=this['toDomElement'](_0x2acb3e);return _0x2efea9['innerHTML']=_0x5835be,_0x2efea9;}),_0x4a9fdb['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x4a9fdb['createText'](this['getLabel'](_0x4e1ba9)||_0x4e1ba9)),_0x4a9fdb['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0xa12de1){const _0x30ad14=this['toDomElement'](_0xa12de1);return _0x30ad14['innerHTML']=_0x16b28b,_0x30ad14;})]);_0x4a9fdb['insert'](_0x4a9fdb['createPositionAt'](_0x25b439,'end'),_0x28d43a),_0x4a9fdb['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x4e1ba9)||_0x4e1ba9,_0x28d43a);}else{if(_0x4d5ae8&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x4d5ae8)){const _0x462ded='imageInline'===_0x21106a?'span':'div',_0x198404=_0x49990f['replace'](/ck-merge-field-image/g,'ck-merge-field'),_0x4ce069=_0x4a9fdb['createContainerElement'](_0x462ded,{'class':'ck-merge-field'+_0x198404,'data-cke-tooltip-instant':'true'},[_0x4a9fdb['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x4a9fdb['createText'](this['getLabel'](_0x4e1ba9)||_0x4e1ba9))]),_0x4367ac=_0x4a9fdb['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0xabed8a){const _0x410c08=this['toDomElement'](_0xabed8a),_0x39f00b=new IconView();return _0x39f00b['set']({'content':IconWarning}),_0x39f00b['render'](),_0x410c08['appendChild'](_0x39f00b['element']),_0x410c08;});_0x4a9fdb['insert'](_0x4a9fdb['createPositionAt'](_0x4ce069,'end'),_0x4367ac),_0x4a9fdb['insert'](_0x4a9fdb['createPositionAt'](_0x25b439,'end'),_0x4ce069),_0x4a9fdb['setCustomProperty']('mergeFieldStatus',_0x4d5ae8,_0x4ce069),_0x4a9fdb['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x4e1ba9)||_0x4e1ba9,_0x4ce069);}}_0x4a9fdb['setAttribute']('data-merge-field-name',_0x4e1ba9,_0x25b439),_0x4d5ae8&&_0x4a9fdb['setCustomProperty']('mergeFieldStatus',_0x4d5ae8,_0x25b439);};return _0x319190=>{_0x319190['on']('attribute:src:'+_0x21106a,_0x4c385c,{'priority':'low'});};}['_setupTooltipsTogglingForImageMergeField'](_0x13874a,_0x4763e1){if(!_0x4763e1['target'])return null;const _0x336f0b=_0x4763e1['target']['parentElement'];return _0x336f0b&&_0x336f0b['classList']['contains']('ck-merge-field-image')?new _0x42ae1a(_0x336f0b,_0x435072=>{const _0x22bc37=_0x435072['target'],_0x366585=_0x22bc37['querySelector']('.ck-merge-field'),_0x1da896=_0x22bc37['querySelector']('.ck-merge-field__content');_0x366585&&_0x1da896&&(_0x1da896['scrollWidth']>_0x1da896['getBoundingClientRect']()['width']?_0x366585['removeAttribute']('data-cke-tooltip-disabled'):_0x366585['setAttribute']('data-cke-tooltip-disabled','true'));}):null;}['_createMergeFieldWidget'](_0x1c5f85,_0xf1ad72,_0x4122ff){const {label:_0x3b7407,classes:_0x279b11,status:_0x253eb6,height:_0x5b5477}=this['_prepareViewElementData'](_0x1c5f85),_0xdd7cb0=this['_mergeFieldPrefix'],_0x1712fa=this['_mergeFieldSuffix'],_0x7e2880=this['editor']['config']['get']('mergeFields.sanitizeHtml'),_0x30d184='text'===_0x4122ff?'span':'div';let _0x3d6955;if('$labels'===this['previewMode'])_0x3d6955=_0xf1ad72['createContainerElement'](_0x30d184,{'class':_0x279b11},[_0xf1ad72['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x2d6394){const _0x373ed2=this['toDomElement'](_0x2d6394);return _0x373ed2['innerHTML']=_0xdd7cb0,_0x373ed2;}),_0xf1ad72['createContainerElement']('span',{'class':'ck-merge-field__content'},_0xf1ad72['createText'](String(_0x3b7407))),_0xf1ad72['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x90675d){const _0x11377d=this['toDomElement'](_0x90675d);return _0x11377d['innerHTML']=_0x1712fa,_0x11377d;})]);else{if(_0x253eb6){const _0x115768=this['_shouldPreviewHtmlValues']?_0xf1ad72['createRawElement']('span',{'class':'ck-merge-field__content'},function(_0xb0f013,_0x62eb5b){_0x62eb5b['setContentOf'](_0xb0f013,_0x7e2880(_0x3b7407)['html']);}):_0xf1ad72['createContainerElement']('span',{'class':'ck-merge-field__content'},_0xf1ad72['createText'](_0x3b7407));if(_0x3d6955=_0xf1ad72['createContainerElement'](_0x30d184,{'class':_0x279b11},[_0x115768]),'text'===_0x4122ff||['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x253eb6)){const _0x2481fa=_0xf1ad72['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x5c8c2f){const _0x32304c=this['toDomElement'](_0x5c8c2f),_0xd5a132=new IconView();return _0xd5a132['set']({'content':IconWarning}),_0xd5a132['render'](),_0x32304c['appendChild'](_0xd5a132['element']),_0x32304c;});_0xf1ad72['insert'](_0xf1ad72['createPositionAt'](_0x3d6955,'end'),_0x2481fa);}_0xf1ad72['setCustomProperty']('mergeFieldStatus',_0x253eb6,_0x3d6955);}else{const _0x994c9a=this['_shouldPreviewHtmlValues']?_0xf1ad72['createRawElement'](_0x30d184,{},function(_0x43f37f,_0x4d86a8){_0x4d86a8['setContentOf'](_0x43f37f,_0x7e2880(_0x3b7407)['html']);}):_0xf1ad72['createText'](_0x3b7407);_0x3d6955=_0xf1ad72['createContainerElement'](_0x30d184,{'class':_0x279b11},_0x994c9a);}}if('block'===_0x4122ff){const _0x16b570=_0xf1ad72['createContainerElement']('div',{'class':'ck-merge-field-block'},[_0x3d6955]);if(('$labels'===this['previewMode']||_0x253eb6&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x253eb6))&&_0xf1ad72['setAttribute']('style','height:\x20'+_0x5b5477+'px',_0x16b570),_0x3d6955['hasClass']('ck-merge-field_with-value'))_0xf1ad72['addClass']('ck-merge-field-block_with-value',_0x16b570);else{if(_0x3d6955['hasClass']('ck-merge-field_with-warning')){for(const _0x33bf66 of _0x3d6955['getClassNames']())if('ck-merge-field'!==_0x33bf66){const _0x275263=_0x33bf66['replace']('ck-merge-field','ck-merge-field-block');_0xf1ad72['addClass'](_0x275263,_0x16b570);}_0xf1ad72['setCustomProperty']('mergeFieldStatus',_0x253eb6,_0x16b570);}}return _0xf1ad72['setCustomProperty']('mergeFieldBlock',!0x0,_0x16b570),_0xf1ad72['setAttribute']('data-merge-field-name',_0x1c5f85['getAttribute']('id'),_0x16b570),toWidget(_0x16b570,_0xf1ad72,{'hasSelectionHandle':!0x0});}return _0xf1ad72['setCustomProperty']('mergeField',!0x0,_0x3d6955),_0xf1ad72['setAttribute']('data-merge-field-name',_0x1c5f85['getAttribute']('id'),_0x3d6955),toWidget(_0x3d6955,_0xf1ad72);}['_prepareViewElementData'](_0x2fe793){const _0x1b07e9=_0x2fe793['getAttribute']('id'),_0x2de986=this['getDefinition'](_0x1b07e9);if(!_0x2de986)return'$labels'===this['previewMode']?{'label':_0x1b07e9,'classes':'ck-merge-field'}:{'label':_0x1b07e9,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','status':'WARNING_MISSING_DATA'};const _0x457f41=this['getLabel'](_0x1b07e9)||_0x1b07e9,_0x10dc75=this['getMergeFieldDefaultValue'](_0x1b07e9),_0x4b9e39=this['getMergeFieldHeight'](_0x1b07e9);if('$labels'===this['previewMode'])return{'label':_0x457f41,'height':_0x4b9e39,'classes':'ck-merge-field'};if('$defaultValues'===this['previewMode'])return _0x10dc75?{'label':_0x10dc75,'height':_0x4b9e39,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:{'label':_0x457f41,'height':_0x4b9e39,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','status':'WARNING_MISSING_DEFAULT_VALUE'};const _0x1ba37d=this['getMergeFieldValue'](_0x2de986['id'],this['previewMode']);return _0x1ba37d?{'label':_0x1ba37d,'height':_0x4b9e39,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:_0x10dc75?{'label':_0x10dc75,'height':_0x4b9e39,'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':_0x457f41,'height':_0x4b9e39,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','status':'WARNING_MISSING_DATA'};}['_createTextualMergeField'](_0x1e7f90,_0x365429,_0x6d6c2d){const _0x508c36=_0x1e7f90['getAttribute']('id');let _0x42f1a4;if(_0x6d6c2d['isClipboardPipeline']&&'$labels'!==this['previewMode'])return this['_downcastForClipboard'](_0x508c36,_0x365429);const _0x52524c=_0x6d6c2d['mergeFieldsData'],_0x228330=_0x52524c&&_0x52524c[_0x508c36]?_0x52524c[_0x508c36]:this['wrapInAffixes'](_0x508c36);if(_0x52524c)_0x42f1a4=_0x365429['createRawElement']('span',{},function(_0x22d1e5,_0xaf5bd8){_0xaf5bd8['setContentOf'](_0x22d1e5,String(_0x228330));});else{_0x42f1a4=_0x365429['createContainerElement']('span');const _0x46b10f=_0x365429['createText'](_0x228330);_0x365429['insert'](_0x365429['createPositionAt'](_0x42f1a4,'end'),_0x46b10f);}return _0x365429['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x42f1a4),_0x42f1a4;}['_downcastForClipboard'](_0x3019f6,_0x41f8ec){const _0x1c0127='block'===this['getMergeFieldType'](_0x3019f6)?'div':'span';let _0x429b62,_0x349083;_0x429b62='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x3019f6)||this['getLabel'](_0x3019f6)||this['wrapInAffixes'](_0x3019f6):this['getMergeFieldValue'](_0x3019f6,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x3019f6)||this['getLabel'](_0x3019f6)||this['wrapInAffixes'](_0x3019f6);const _0x198c9d=this['editor']['config']['get']('mergeFields.sanitizeHtml');return _0x349083=this['_shouldPreviewHtmlValues']?_0x41f8ec['createRawElement'](_0x1c0127,{'data-ck-merge-field':_0x3019f6},function(_0x271173,_0x3c60e9){_0x3c60e9['setContentOf'](_0x271173,_0x198c9d(_0x429b62)['html']);}):_0x41f8ec['createContainerElement'](_0x1c0127,{'data-ck-merge-field':_0x3019f6},_0x41f8ec['createText'](_0x429b62)),_0x349083;}['_validatePreviewMode'](_0x98dd03){if(!this['availablePreviewModes']['includes'](_0x98dd03))throw new CKEditorError('merge-fields-invalid-preview-mode-set',this,{'availablePreviewModes':this['availablePreviewModes'],'previewMode':_0x98dd03});}['_trackAddedMergeFields'](){for(const _0x5cd29b of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x5cd29b['type']||'$text'===_0x5cd29b['name'])continue;if('mergeField'===_0x5cd29b['name']||'mergeFieldBlock'===_0x5cd29b['name']){this['_mergeFieldElements']['add'](_0x5cd29b['position']['nodeAfter']);continue;}if('imageInline'===_0x5cd29b['name']||'imageBlock'===_0x5cd29b['name']&&_0x5cd29b['attributes']['get']('src')&&String(_0x5cd29b['attributes']['get']('src'))['match'](this['_mergeFieldRegExp'])){this['_mergeFieldElements']['add'](_0x5cd29b['position']['nodeAfter']);continue;}const _0x3ab13d=this['editor']['model']['createRangeIn'](_0x5cd29b['position']['nodeAfter']);for(const _0xa1a88b of _0x3ab13d['getItems']())_0xa1a88b['is']('element')&&this['isMergeField'](_0xa1a88b)&&this['_mergeFieldElements']['add'](_0xa1a88b);}}['_registerConversionPostFixer'](){const _0x16be1d=this['editor'];_0x16be1d['model']['document']['registerPostFixer'](_0x1b3c2a=>{if(!_0x1b3c2a['batch']['isLocal'])return!0x1;const _0x51595a=[],_0x55f167=new Set(),_0x759feb=this['_mergeFieldRegExp'];let _0xefcc1e=!0x1;for(const _0x4eb003 of _0x16be1d['model']['document']['differ']['getChanges']())if('insert'===_0x4eb003['type']||'remove'===_0x4eb003['type']){let _0xaa3572='$text'==_0x4eb003['name']?_0x4eb003['position']['parent']:_0x4eb003['position']['nodeAfter'];if(!_0xaa3572)continue;_0xaa3572['is']('$text')&&(_0xaa3572=_0xaa3572['parent']),_0x367c57(_0xaa3572);}for(const _0x4eb22d of _0x51595a['reverse']()){const {match:_0x26faae,item:_0x39d36d}=_0x4eb22d,_0xcd9dad=_0x1b3c2a['createPositionAt'](_0x39d36d,_0x26faae['index']),_0x10b25f=_0xcd9dad['getShiftedBy'](_0x26faae[0x0]['length']),_0x4e0207=_0x1b3c2a['createRange'](_0xcd9dad,_0x10b25f),_0x41135d=_0x26faae[0x0],_0x36ed23=this['unwrapAffixes'](_0x41135d),_0x2e90ae=_0x2d0f55(_0x4e0207),_0x3847b3=this['getMergeFieldType'](_0x36ed23);if(ALLOWED_IN_IDS['test'](_0x36ed23)){if(_0x2e90ae['set']('id',_0x36ed23),'block'===_0x3847b3){const _0xf96142=_0x1b3c2a['createElement']('mergeFieldBlock',{'id':_0x36ed23});_0x1b3c2a['remove'](_0x4e0207),_0x16be1d['model']['insertObject'](_0xf96142,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{if('image'===_0x3847b3){const _0x26d375=_0x1b3c2a['createElement']('imageBlock',{'src':this['wrapInAffixes'](_0x36ed23)});_0x1b3c2a['remove'](_0x4e0207),_0x16be1d['model']['insertObject'](_0x26d375,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{const _0x87a5b4=_0x1b3c2a['createElement']('mergeField',_0x2e90ae);_0x16be1d['model']['schema']['checkChild'](_0x4e0207['start'],'mergeField')?_0x16be1d['model']['insertObject'](_0x87a5b4,_0x4e0207):_0x1b3c2a['remove'](_0x4e0207);}}_0xefcc1e=!0x0;}}return _0xefcc1e;function _0x367c57(_0x249efb){let _0x2bb053='',_0xbfcf3a=0x0;if(!_0x55f167['has'](_0x249efb))for(const _0x15eef6 of _0x249efb['getChildren']()){const _0x24c35c=_0x15eef6['nextSibling'];if(_0x15eef6['is']('$text')&&(''===_0x2bb053&&_0x15eef6['startOffset']&&(_0xbfcf3a=_0x15eef6['startOffset']),_0x2bb053+=_0x15eef6['data']),!_0x24c35c||_0x24c35c['is']('element')){for(const _0x14b586 of _0x2bb053['matchAll'](_0x759feb))_0x14b586['index']=_0x14b586['index']+_0xbfcf3a,_0x51595a['push']({'match':_0x14b586,'item':_0x249efb});_0x55f167['add'](_0x249efb),_0x2bb053='';}_0x15eef6['is']('element')&&_0x367c57(_0x15eef6);}}function _0x2d0f55(_0x4b00bc){const _0x46ae81=_0x4b00bc['getItems'](),_0x1ccb10=_0x46ae81['next']()['value'],_0x4414b1=new Map(_0x1ccb10['getAttributes']());for(const _0x1cdd9a of _0x46ae81)for(const [_0x17a7cc,_0x512b3c]of _0x4414b1)_0x1cdd9a['getAttribute'](_0x17a7cc)!==_0x512b3c&&_0x4414b1['delete'](_0x17a7cc);return _0x4414b1;}});}['_disableCommandOnMergeFields'](_0x5f52c5){const _0x31be80=this['editor'],_0x40f727=_0x31be80['commands']['get'](_0x5f52c5);_0x40f727&&_0x40f727['on']('set:isEnabled',(_0x45af9c,_0x226d35,_0x34bf83)=>{if(0x1==_0x34bf83){const _0x3c0da8=_0x31be80['model']['document']['selection']['getSelectedElement']();_0x3c0da8&&this['isMergeField'](_0x3c0da8)&&(_0x45af9c['return']=!0x1,_0x45af9c['stop']());}});}}async function checkLicense$8(_0x24882f){const _0x428dc1=_0x6206c0([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]),_0x53bf63=window[_0x6206c0([0x44,0x61,0x74,0x65])][_0x6206c0([0x6e,0x6f,0x77])](),_0x4f6779=_0x24882f[_0x6206c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a3a57=new window[(_0x6206c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50d0e3=>{_0x4f6779[_0x6206c0([0x6f,0x6e,0x63,0x65])](_0x6206c0([0x72,0x65,0x61,0x64,0x79]),_0x50d0e3);}),_0x2f0344={[_0x6206c0([0x6b,0x74,0x79])]:_0x6206c0([0x45,0x43]),[_0x6206c0([0x75,0x73,0x65])]:_0x6206c0([0x73,0x69,0x67]),[_0x6206c0([0x63,0x72,0x76])]:_0x6206c0([0x50,0x2d,0x32,0x35,0x36]),[_0x6206c0([0x78])]:_0x6206c0([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]),[_0x6206c0([0x79])]:_0x6206c0([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]),[_0x6206c0([0x61,0x6c,0x67])]:_0x6206c0([0x45,0x53,0x32,0x35,0x36])},_0x2591b8=_0x4f6779[_0x6206c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6206c0([0x67,0x65,0x74])](_0x6206c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5a03d4=await(async function(){let _0x23c243,_0x50a76e=null,_0x4c9362=null;try{if(_0x2591b8==_0x6206c0([0x47,0x50,0x4c]))return _0x6206c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23c243=(function(){const _0x416d8e=_0x2591b8[_0x6206c0([0x73,0x70,0x6c,0x69,0x74])](_0x6206c0([0x2e]));if(0x3!=_0x416d8e[_0x6206c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3e639b=_0x416d8e[0x1];return _0x568e47(_0x3e639b);function _0x568e47(_0x27780f){const _0x542b1e=_0x32923e(_0x27780f);return _0x542b1e&&_0x331c8e()?_0x542b1e:null;function _0x331c8e(){const _0x94d83c=_0x542b1e[_0x6206c0([0x6a,0x74,0x69])],_0x1745bd=window[_0x6206c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x94d83c[_0x6206c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x94d83c[_0x6206c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x378875={..._0x542b1e,[_0x6206c0([0x6a,0x74,0x69])]:_0x94d83c[_0x6206c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x94d83c[_0x6206c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x378875[_0x6206c0([0x76,0x63])],_0x542ad0(_0x378875)==_0x1745bd;}}}()),!_0x23c243)return _0x6206c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x23c243[_0x6206c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c9362=function(_0x432088,_0x92e2b2){return new window[(_0x6206c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c239c=>{if(_0x5bd704())return _0x4c239c(_0x6206c0([0x56,0x61,0x6c,0x69,0x64]));_0x3731da(),_0x4f6779[_0x6206c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6206c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28159a=!0x1;const _0x8dd3e=uid();function _0x14eb76(_0x261ecd){return!!_0x261ecd&&(typeof _0x261ecd===_0x6206c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x261ecd===_0x6206c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x261ecd[_0x6206c0([0x74,0x68,0x65,0x6e])]===_0x6206c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x261ecd[_0x6206c0([0x63,0x61,0x74,0x63,0x68])]===_0x6206c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1660bd(_0x18df2e){_0xd87c56(_0x18df2e)[_0x6206c0([0x74,0x68,0x65,0x6e])](_0x11f0e2=>{if(!_0x11f0e2||_0x11f0e2[_0x6206c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6206c0([0x6f,0x6b]))return _0x6206c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b2d15(_0x542ad0(_0x8dd3e+_0x92e2b2))!=_0x11f0e2[_0x6206c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6206c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6206c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x6206c0([0x74,0x68,0x65,0x6e])](_0x5c8f3b=>(_0x1bdffe(),_0x5c8f3b),()=>{const _0xbbc4b6=_0x202a1f();return null==_0xbbc4b6?(_0x1bdffe(),_0x6206c0([0x56,0x61,0x6c,0x69,0x64])):_0x6206c0(_0x53bf63-_0xbbc4b6>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6206c0([0x74,0x68,0x65,0x6e])](_0x4c239c)[_0x6206c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c239c(_0x6206c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15344d=0x36ee80;function _0x1bdffe(){const _0x4742df=_0x6206c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b2d15(_0x542ad0(_0x432088)),_0x543216=_0x28ee5b(_0x1b2d15(window[_0x6206c0([0x4d,0x61,0x74,0x68])][_0x6206c0([0x63,0x65,0x69,0x6c])](_0x53bf63/_0x15344d)));window[_0x6206c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6206c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4742df,_0x543216);}function _0x202a1f(){const _0x39b1db=_0x6206c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b2d15(_0x542ad0(_0x432088)),_0x5f243c=window[_0x6206c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6206c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39b1db);return _0x5f243c?window[_0x6206c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28ee5b(_0x5f243c),0x10)*_0x15344d:null;}function _0xd87c56(_0x3c6da5){return new window[(_0x6206c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x518cdb,_0xa4649e)=>{_0x3c6da5[_0x6206c0([0x74,0x68,0x65,0x6e])](_0x518cdb,_0xa4649e),window[_0x6206c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa4649e,0x1d4c0);});}}_0x4f6779[_0x6206c0([0x6f,0x6e])](_0x6206c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x23a2e7,_0x3e902c)=>{if(_0x3e902c[0x0]!=_0x432088)return _0x4c239c(_0x6206c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e902c[0x1]={..._0x3e902c[0x1],[_0x6206c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8dd3e};},{[_0x6206c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6206c0([0x68,0x69,0x67,0x68])}),_0x4f6779[_0x6206c0([0x6f,0x6e])](_0x6206c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ccf19=>{_0x14eb76(_0x1ccf19[_0x6206c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28159a=!0x0,_0x1660bd(_0x1ccf19[_0x6206c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6206c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6206c0([0x6c,0x6f,0x77])}),_0x4a3a57[_0x6206c0([0x74,0x68,0x65,0x6e])](()=>{_0x28159a||_0x4c239c(_0x6206c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bd704(){return _0x4f6779[_0x6206c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6206c0([0x76,0x69,0x65,0x77])][_0x6206c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6206c0([0x61,0x75,0x74,0x6f]);}function _0x3731da(){_0x4f6779[_0x6206c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6206c0([0x76,0x69,0x65,0x77])][_0x6206c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6206c0([0x61,0x75,0x74,0x6f]);}}(_0x23c243[_0x6206c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23c243[_0x6206c0([0x6a,0x74,0x69])]));const _0x4ddc11=await(async function(){let _0x55a173=!0x0;try{const _0x3cd1a3=_0x2591b8[_0x6206c0([0x73,0x70,0x6c,0x69,0x74])](_0x6206c0([0x2e])),[_0x567b9a,_0x273c1c,_0x30262d]=_0x3cd1a3;return _0x7dcfee(_0x567b9a),await _0x15963a(_0x567b9a,_0x273c1c,_0x30262d),_0x55a173;}catch{return!0x1;}function _0x7dcfee(_0x31e6b2){const _0x65e4d9=_0x32923e(_0x31e6b2);_0x65e4d9&&_0x65e4d9[_0x6206c0([0x61,0x6c,0x67])]==_0x6206c0([0x45,0x53,0x32,0x35,0x36])||(_0x55a173=!0x1);}async function _0x15963a(_0x3f3183,_0x3d5fe4,_0x5b47fe){const _0x57e8c7=window[_0x6206c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6206c0([0x66,0x72,0x6f,0x6d])](_0x1e0eb0(_0x5b47fe),_0xb62ab5=>_0xb62ab5[_0x6206c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c450c=new window[(_0x6206c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6206c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f3183+_0x6206c0([0x2e])+_0x3d5fe4),_0x3fb0b4=window[_0x6206c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6206c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3fb0b4)return;const _0x1b75e9=await _0x3fb0b4[_0x6206c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6206c0([0x6a,0x77,0x6b]),_0x2f0344,{[_0x6206c0([0x6e,0x61,0x6d,0x65])]:_0x6206c0([0x45,0x43,0x44,0x53,0x41]),[_0x6206c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6206c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6206c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3fb0b4[_0x6206c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6206c0([0x6e,0x61,0x6d,0x65])]:_0x6206c0([0x45,0x43,0x44,0x53,0x41]),[_0x6206c0([0x68,0x61,0x73,0x68])]:{[_0x6206c0([0x6e,0x61,0x6d,0x65])]:_0x6206c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b75e9,_0x57e8c7,_0x4c450c)||(_0x55a173=!0x1);}}());return _0x4ddc11?(function(){const _0x43d5af=_0x23c243[_0x6206c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x43d5af)return!0x1;if(_0x43d5af[_0x6206c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6206c0([0x2a])))return!0x0;if(_0x43d5af[_0x6206c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6206c0([0x4d,0x46])))return!0x0;return!0x1;}())?(function(){const _0x55b455=[_0x6206c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6206c0([0x74,0x72,0x69,0x61,0x6c])][_0x6206c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c243[_0x6206c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53bf63/0x3e8:0x69b0b080;return _0x23c243[_0x6206c0([0x65,0x78,0x70])]<_0x55b455;}())?_0x6206c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x8201b=_0x23c243[_0x6206c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x8201b||0x0==_0x8201b[_0x6206c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20ca6d}=new URL(window[_0x6206c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x8201b[_0x6206c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20ca6d))return!0x0;const _0x4d3cdb=_0x20ca6d[_0x6206c0([0x73,0x70,0x6c,0x69,0x74])](_0x6206c0([0x2e]));return _0x8201b[_0x6206c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd1390d=>_0xd1390d[_0x6206c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6206c0([0x2a])))[_0x6206c0([0x6d,0x61,0x70])](_0x3e5a37=>_0x3e5a37[_0x6206c0([0x73,0x70,0x6c,0x69,0x74])](_0x6206c0([0x2e])))[_0x6206c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x439d33=>_0x439d33[_0x6206c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d3cdb[_0x6206c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6206c0([0x6d,0x61,0x70])](_0xcb2afc=>Array(_0x4d3cdb[_0x6206c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xcb2afc[_0x6206c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6206c0([0x66,0x69,0x6c,0x6c])](_0xcb2afc[0x0]===_0x6206c0([0x2a])?_0x6206c0([0x2a]):'')[_0x6206c0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xcb2afc))[_0x6206c0([0x73,0x6f,0x6d,0x65])](_0x1077c7=>_0x4d3cdb[_0x6206c0([0x65,0x76,0x65,0x72,0x79])]((_0x2472fd,_0x3e7337)=>_0x1077c7[_0x3e7337]===_0x2472fd||_0x1077c7[_0x3e7337]===_0x6206c0([0x2a])));}())?(_0x23c243[_0x6206c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6206c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50a76e=function(_0x18804b){const _0x4bf3ad=new window[(_0x6206c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33fe07=>setTimeout(_0x33fe07,0x93ecc)),_0x317760=_0x4a3a57[_0x6206c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6206c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58743f=>{let _0x952a2b=0x0;_0x4f6779[_0x6206c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x6206c0([0x6f,0x6e])](_0x6206c0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf437d,_0x275ce8)=>{_0x275ce8[0x0][_0x6206c0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x952a2b++,0x5e8==_0x952a2b&&(_0x58743f(),_0xf437d[_0x6206c0([0x6f,0x66,0x66])]());});})),_0x3ce479=[_0x4bf3ad,_0x317760];return window[_0x6206c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6206c0([0x72,0x61,0x63,0x65])](_0x3ce479)[_0x6206c0([0x74,0x68,0x65,0x6e])](()=>_0x18804b);}(_0x6206c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x50a76e&&_0x4c9362)return new window[(_0x6206c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a02a2,_0x52005a)=>{_0x50a76e[_0x6206c0([0x74,0x68,0x65,0x6e])](_0x1a02a2,_0x52005a),_0x4c9362[_0x6206c0([0x74,0x68,0x65,0x6e])](_0x4f21f2=>{_0x4f21f2!=_0x6206c0([0x56,0x61,0x6c,0x69,0x64])&&_0x1a02a2(_0x4f21f2);},_0x52005a);});return _0x50a76e||_0x4c9362||_0x6206c0([0x56,0x61,0x6c,0x69,0x64]);}())):_0x6206c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6206c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6206c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x6206c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x32923e(_0x2c287a){return _0x2c287a[_0x6206c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6206c0([0x65,0x79]))?JSON[_0x6206c0([0x70,0x61,0x72,0x73,0x65])](_0x1e0eb0(_0x2c287a)):null;}function _0x1e0eb0(_0x335f61){return window[_0x6206c0([0x61,0x74,0x6f,0x62])](_0x335f61[_0x6206c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6206c0([0x2b]))[_0x6206c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6206c0([0x2f])));}function _0x542ad0(_0x38d941){let _0x338faf=0x1505;function _0x290b9e(_0x39e2e3){for(let _0x231ff4=0x0;_0x231ff4<_0x39e2e3[_0x6206c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x231ff4++){const _0x1b68cc=_0x39e2e3[_0x6206c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x231ff4);_0x338faf=(_0x338faf<<0x5)+_0x338faf+_0x1b68cc,_0x338faf&=_0x338faf;}}return function _0x5b6426(_0x4244eb){Array[_0x6206c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4244eb)?_0x4244eb[_0x6206c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b6426):_0x4244eb&&typeof _0x4244eb==_0x6206c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6206c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4244eb)[_0x6206c0([0x73,0x6f,0x72,0x74])]()[_0x6206c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x112d56,_0x2da4be])=>{_0x290b9e(_0x112d56),_0x5b6426(_0x2da4be);}):_0x290b9e(window[_0x6206c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4244eb));}(_0x38d941),_0x338faf>>>0x0;}function _0x1b2d15(_0x165e68){return _0x165e68[_0x6206c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6206c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6206c0([0x30]));}function _0x28ee5b(_0x5725ed){return _0x5725ed[_0x6206c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6206c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6206c0([0x6a,0x6f,0x69,0x6e])]('');}function _0x71e9fa(){}function _0x6206c0(_0x192eb8){return _0x192eb8['map'](_0x448d1f=>String['fromCharCode'](_0x448d1f))['join']('');}!function(_0x3c87c6){const _0x17159a=(function(){const _0x51c2f9=window[_0x6206c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6206c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6206c0([0x6e,0x6f,0x77])]())[_0x6206c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6206c0([0x2e]),'');let _0x4769ad=_0x6206c0([0x63]);for(let _0x14619c=0x0;_0x14619c<_0x51c2f9[_0x6206c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14619c+=0x2){let _0x545fa1=window[_0x6206c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51c2f9[_0x6206c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14619c,_0x14619c+0x2));_0x545fa1>=_0x428dc1[_0x6206c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x545fa1-=_0x428dc1[_0x6206c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4769ad+=_0x428dc1[_0x545fa1];}return _0x4769ad;}());_0x4f6779[_0x17159a]=_0x6206c0([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c87c6,_0x3c87c6!=_0x6206c0([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x4a3a57,_0x4f6779[_0x6206c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x6206c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x71e9fa,_0x4f6779[_0x6206c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x6206c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x71e9fa,_0x4f6779[_0x6206c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6206c0([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5a03d4);}class MergeFieldsListView extends ListView{['filter'](_0xf9d5f2){return filterGroupAndItemNames(_0xf9d5f2,this['items']);}}class MergeFieldsPanelView extends View{constructor(_0x31e75c){super(_0x31e75c),this['set']('text','');const _0x5cdbdc=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':_0x5cdbdc['to']('text')}]}]});}}function getTranslation$8(_0x28c5e9,_0x2beb7f){const t=_0x28c5e9['t'];switch(_0x2beb7f){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 _0x2beb7f;}}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(_0x19d3ca){super(_0x19d3ca),this['_removeDefaultValuesPreviewIfUnnecessary'](),this['_removeMenuBarButtonIfUnnecessary'](),this['_setupMentionConfiguration']();}['init'](){const _0x4de379=this['editor'];_0x4de379['ui']['componentFactory']['add']('insertMergeField',_0x63e585=>{const _0x5ef761=createInsertMergeFieldDropdown(_0x63e585);return _0x5ef761['bind']('isEnabled')['toMany']([_0x4de379['commands']['get']('insertMergeField'),_0x4de379['commands']['get']('insertMergeFieldBlock'),_0x4de379['commands']['get']('insertMergeFieldImage')],'isEnabled',(..._0x5e1102)=>_0x5e1102['some'](_0x5d50d9=>_0x5d50d9)),_0x5ef761['once']('change:isOpen',()=>{const _0x219491={'insertInline':_0x4de379['commands']['get']('insertMergeField'),'insertBlock':_0x4de379['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x4de379['commands']['get']('insertMergeFieldImage')},_0x58b8e9=createMergeFieldsListView(_0x63e585,_0x4de379['config']['get']('mergeFields.definitions'),_0x219491);_0x58b8e9['delegate']('execute')['to'](_0x5ef761),_0x5ef761['on']('execute',(_0x1ed7ff,_0x2529b2)=>{const _0x3f958a=_0x4de379['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x2529b2);'image'===_0x3f958a?_0x4de379['execute']('insertMergeFieldImage',_0x2529b2):'block'===_0x3f958a?_0x4de379['execute']('insertMergeFieldBlock',_0x2529b2):_0x4de379['execute']('insertMergeField',_0x2529b2),_0x4de379['editing']['view']['focus']();});const _0x1d14e4=createMergeFieldsSearchTextView(_0x63e585,_0x58b8e9);_0x5ef761['panelView']['children']['add'](_0x1d14e4),_0x5ef761['on']('change:isOpen',(_0x2ca0c9,_0xede11,_0x4339a3)=>{_0x4339a3&&_0x1d14e4['reset']();});}),_0x5ef761;}),_0x4de379['ui']['componentFactory']['add']('menuBar:insertMergeField',_0x4fcb11=>{const _0xdf3353=new MenuBarMenuView(_0x4fcb11),_0x58bb18={'insertInline':_0x4de379['commands']['get']('insertMergeField'),'insertBlock':_0x4de379['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x4de379['commands']['get']('insertMergeFieldImage')};_0xdf3353['buttonView']['set']({'label':getTranslation$8(_0x4fcb11,'Merge\x20field'),'icon':IconInsertMergeField}),_0xdf3353['bind']('isEnabled')['toMany']([...Object['values'](_0x58bb18)],'isEnabled',(..._0xdac701)=>_0xdac701['some'](_0x2fb7fb=>_0x2fb7fb));const _0x45a108=[],_0x43b1c0=new MenuBarMenuListView(_0x4fcb11);for(const _0x259742 of _0x4de379['config']['get']('mergeFields.definitions'))if('groupId'in _0x259742){const _0x67b767=new MenuBarMenuListItemView(_0x4fcb11,_0xdf3353),_0x45c5ef=createMenuBarSubmenu(_0x4fcb11,_0x259742,_0x58bb18);_0x67b767['children']['add'](_0x45c5ef),_0x45c5ef['delegate']('execute')['to'](_0xdf3353),_0x43b1c0['items']['add'](_0x67b767);}else _0x45a108['push'](_0x259742);if(_0x45a108['length']){if(0x0===_0x43b1c0['items']['length'])for(const _0x421a8a of _0x45a108){let _0x356985;_0x356985='block'===_0x421a8a['type']?_0x58bb18['insertBlock']:'image'===_0x421a8a['type']?_0x58bb18['insertImage']:_0x58bb18['insertInline'];const _0x528a57=createMenuBarListItem(_0x4fcb11,_0x421a8a,_0xdf3353,_0x356985);_0x43b1c0['items']['add'](_0x528a57);}else{const _0x2123f7=new MenuBarMenuListItemView(_0x4fcb11,_0xdf3353),_0x454851=createMenuBarSubmenu(_0x4fcb11,{'groupId':'Other','definitions':_0x45a108},_0x58bb18);_0x2123f7['children']['add'](_0x454851),_0x454851['delegate']('execute')['to'](_0xdf3353),_0x43b1c0['items']['add'](_0x2123f7);}}return _0xdf3353['panelView']['children']['add'](_0x43b1c0),_0xdf3353['on']('execute',(_0x2c476e,_0x267bfe)=>{const _0xbe02ce=_0x4de379['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x267bfe);'image'===_0xbe02ce?_0x4de379['execute']('insertMergeFieldImage',_0x267bfe):'block'===_0xbe02ce?_0x4de379['execute']('insertMergeFieldBlock',_0x267bfe):_0x4de379['execute']('insertMergeField',_0x267bfe),_0x4de379['editing']['view']['focus']();}),_0xdf3353;});const _0x210e2a=_0x4de379['config']['get']('mergeFields.previewModes'),_0x5f2898=[];if(_0x210e2a['includes']('$labels')&&_0x5f2898['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Labels'),'commandValue':'$labels'})}),_0x210e2a['includes']('$defaultValues')&&_0x5f2898['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Default\x20values'),'commandValue':'$defaultValues'})}),_0x210e2a['includes']('$dataSets')){const _0x3c17d5=_0x4de379['config']['get']('mergeFields.dataSets');if(_0x3c17d5['length']){for(const _0x390dcd of _0x3c17d5)_0x5f2898['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x390dcd['label']||_0x390dcd['id'],'commandValue':_0x390dcd['id']})});}}_0x4de379['ui']['componentFactory']['add']('previewMergeFields',_0x46d926=>{const _0x109541=_0x4de379['commands']['get']('previewMergeFields'),_0x1e5ba6=new Collection();for(const _0x5c3ecb of cloneDeep(_0x5f2898))_0x5c3ecb['model']['bind']('isOn')['to'](_0x109541,'value',_0x498165=>_0x498165===_0x5c3ecb['model']['commandValue']),_0x1e5ba6['add'](_0x5c3ecb);const _0x229366=createDropdown(_0x46d926),_0x2e8752=getTranslation$8(_0x46d926,'Merge\x20fields\x20preview');return _0x229366['bind']('isEnabled')['to'](_0x109541),addListToDropdown(_0x229366,_0x1e5ba6,{'ariaLabel':_0x2e8752,'role':'menu'}),_0x229366['set']({'class':'ck-merge-fields-preview-dropdown'}),_0x229366['buttonView']['set']({'label':_0x2e8752,'ariaLabel':_0x2e8752,'ariaLabelledBy':void 0x0,'isOn':!0x1,'icon':IconPreviewMergeFields,'tooltip':!0x0}),this['listenTo'](_0x229366,'execute',_0x20fc36=>{const {commandValue:_0xf06bb4}=_0x20fc36['source'];_0x4de379['execute']('previewMergeFields',_0xf06bb4),_0x4de379['editing']['view']['focus']();}),_0x229366;}),_0x4de379['ui']['componentFactory']['add']('menuBar:previewMergeFields',_0x35282e=>{const _0x569d0b=new MenuBarMenuView(_0x35282e),_0x51dc28=_0x4de379['commands']['get']('previewMergeFields');_0x569d0b['buttonView']['set']({'label':getTranslation$8(_0x35282e,'Merge\x20fields\x20preview'),'icon':IconPreviewMergeFields}),_0x569d0b['bind']('isEnabled')['to'](_0x51dc28);const _0xcdf817=new MenuBarMenuListView(_0x35282e);_0xcdf817['set']({'ariaLabel':getTranslation$8(_0x35282e,'Merge\x20fields\x20preview')});for(const _0x2a1520 of cloneDeep(_0x5f2898)){const _0x3ecfc3=new MenuBarMenuListItemView(_0x35282e,_0x569d0b),_0x17d8e3=new MenuBarMenuListItemButtonView(_0x35282e);_0x2a1520['model']['bind']('isOn')['to'](_0x51dc28,'value',_0x5793d4=>_0x5793d4===_0x2a1520['model']['commandValue']),_0x17d8e3['isToggleable']=!0x0,_0x17d8e3['bind'](...Object['keys'](_0x2a1520['model']))['to'](_0x2a1520['model']),_0x17d8e3['delegate']('execute')['to'](_0x569d0b),_0x17d8e3['on']('execute',_0x2470e2=>{const {commandValue:_0x4a8aaf}=_0x2470e2['source'];_0x4de379['execute']('previewMergeFields',_0x4a8aaf),_0x4de379['editing']['view']['focus']();}),_0x3ecfc3['children']['add'](_0x17d8e3),_0xcdf817['items']['add'](_0x3ecfc3);}return _0x569d0b['panelView']['children']['add'](_0xcdf817),_0x569d0b;}),this['_balloon']=_0x4de379['plugins']['get'](ContextualBalloon),this['listenTo'](_0x4de379['ui'],'update',()=>{this['_updateBalloonVisibility']();},{'priority':'low'}),this['listenTo'](_0x4de379['ui']['focusTracker'],'change:isFocused',(_0x4d5bf3,_0x3c8a3d,_0x47d96a)=>{this['_balloon']['visibleView']&&this['_balloon']['visibleView']===this['_balloonPanelView']&&(_0x47d96a?this['_updateBalloonVisibility']():this['_hideBalloon']());},{'priority':'low'}),this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x36197d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x28cfa2;for(const _0x10b79b in _0x36197d){const _0x30c5ea=_0x10b79b,_0x142bf4=_0x36197d[_0x30c5ea];if('mergeFieldsLicenseKeyValid'==_0x142bf4||'mergeFieldsLicenseKeyInvalid'==_0x142bf4||'mergeFieldsLicenseKeyExpired'==_0x142bf4||'mergeFieldsLicenseKeyDomainLimit'==_0x142bf4||'mergeFieldsLicenseKeyNotAllowed'==_0x142bf4||'mergeFieldsLicenseKeyEvaluationLimit'==_0x142bf4||'mergeFieldsLicenseKeyUsageLimit'==_0x142bf4){delete _0x36197d[_0x30c5ea],_0x28cfa2=_0x142bf4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'mergeFieldsLicenseKeyInvalid'==_0x28cfa2&&_0x36197d['_showLicenseError']('invalid'),'mergeFieldsLicenseKeyExpired'==_0x28cfa2&&_0x36197d['_showLicenseError']('expired'),'mergeFieldsLicenseKeyDomainLimit'==_0x28cfa2&&_0x36197d['_showLicenseError']('domainLimit'),'mergeFieldsLicenseKeyNotAllowed'==_0x28cfa2&&_0x36197d['_showLicenseError']('featureNotAllowed','MergeFields'),'mergeFieldsLicenseKeyEvaluationLimit'==_0x28cfa2&&_0x36197d['_showLicenseError']('evaluationLimit'),'mergeFieldsLicenseKeyUsageLimit'==_0x28cfa2&&_0x36197d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_updateBalloonVisibility'](){const _0x4d90ec=this['editor']['editing']['view']['document']['selection']['getSelectedElement'](),_0x25515d=!(!_0x4d90ec||!_0x4d90ec['getCustomProperty']('mergeFieldStatus'));if(this['_balloon']['hasView'](this['_balloonPanelView'])&&this['_balloon']['visibleView']===this['_balloonPanelView']){if(_0x25515d){const _0x5483a4=_0x4d90ec['getCustomProperty']('mergeFieldStatus');this['_balloonPanelView']['text']=getTranslation$8(this['editor']['locale'],_0x5483a4),this['_balloon']['updatePosition'](this['_getBalloonPositionData']());}else this['_hideBalloon']();}else{if(_0x25515d){const _0x1b66be=_0x4d90ec['getCustomProperty']('mergeFieldStatus');this['_showBalloon'](getTranslation$8(this['editor']['locale'],_0x1b66be));}}}['_showBalloon'](_0x446867){this['_balloonPanelView']||(this['_balloonPanelView']=new MergeFieldsPanelView(this['editor']['locale']),this['_balloonPanelView']['text']=_0x446867),this['_balloon']['hasView'](this['_balloonPanelView'])||(this['_balloon']['add']({'stackId':'mergeFieldsStatus','view':this['_balloonPanelView'],'position':this['_getBalloonPositionData']()}),this['_balloon']['showStack']('mergeFieldsStatus'));}['_getBalloonPositionData'](){const _0x19dd61=this['editor']['editing']['view'];return{'target':()=>{const _0x126761=_0x19dd61['document']['selection']['getFirstRange'](),_0x529f9a=_0x19dd61['domConverter']['mapViewToDom'](_0x126761['getContainedElement']());return _0x529f9a?Array['from'](_0x529f9a['getClientRects']())[0x0]:_0x19dd61['domConverter']['viewRangeToDom'](_0x126761);}};}['_hideBalloon'](){this['_balloon']['remove'](this['_balloonPanelView']);}['_removeDefaultValuesPreviewIfUnnecessary'](){if(Object['values'](this['editor']['plugins']['get']('MergeFieldsEditing')['getDefaultValues']())['some'](_0x3d0d70=>_0x3d0d70))return;const _0x31f521=this['editor']['config']['get']('mergeFields.previewModes');_0x31f521['indexOf']('$defaultValues')>-0x1&&_0x31f521['length']>0x1&&(_0x31f521['splice'](_0x31f521['indexOf']('$defaultValues'),0x1),this['editor']['config']['set']('mergeFields.previewModes',_0x31f521));}['_removeMenuBarButtonIfUnnecessary'](){const _0x1ae202=this['editor']['config'];if(_0x1ae202['get']('mergeFields.previewModes')){const _0x3715bb=_0x1ae202['get']('mergeFields.previewModes');if(0x1===_0x3715bb['length']){if(_0x3715bb['includes']('$dataSets'))0x1===_0x1ae202['get']('mergeFields.dataSets')['length']&&_0x3bcd91();else _0x3bcd91();}}function _0x3bcd91(){const _0x2eeedd=_0x1ae202['get']('menuBar.removeItems');_0x2eeedd?(_0x2eeedd['push']('menuBar:previewMergeFields'),_0x1ae202['set']('menuBar.removeItems',_0x2eeedd)):_0x1ae202['set']('menuBar.removeItems',['menuBar:previewMergeFields']);}}['_setupMentionConfiguration'](){const _0x576ecf=this['editor'],_0x33a196=_0x576ecf['config']['get']('mention.feeds'),_0x3b856c=_0x576ecf['config']['get']('mergeFields.prefix');_0x33a196['push']({'marker':_0x3b856c,'dropdownLimit':0xa,'feed':_0x48b8ec=>_0x576ecf['plugins']['get']('MergeFieldsEditing')['flattenedMergeFieldDefinitions']['filter'](_0x471e6b=>{const _0xd91462=_0x576ecf['commands']['get']('insertMergeField')['isEnabled'],_0x5d396d=_0x576ecf['commands']['get']('insertMergeFieldBlock')['isEnabled'],_0x3c021d=_0x576ecf['commands']['get']('insertMergeFieldImage')['isEnabled'],_0x41d691=_0x576ecf['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x471e6b['id']);if('text'===_0x41d691&&!_0xd91462)return!0x1;if('block'===_0x41d691&&!_0x5d396d)return!0x1;if('image'===_0x41d691&&!_0x3c021d)return!0x1;return(_0x576ecf['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x471e6b['id'])||_0x471e6b['id'])['toLowerCase']()['includes'](_0x48b8ec['toLowerCase']());}),'itemRenderer':_0x39d77e=>{const _0x2d9ee1=document['createElement']('button');return _0x2d9ee1['innerHTML']=''+(_0x39d77e['label']||_0x39d77e['id']),_0x2d9ee1;}}),_0x576ecf['config']['set']('mention.feeds',_0x33a196);}['_overrideMentionExecuteListener'](){const _0x5b41ef=this['editor'];_0x5b41ef['commands']['get']('mention')['on']('execute',(_0x2b6f94,_0x3ad67f)=>{const _0x2a1ac5=_0x3ad67f[0x0];_0x2a1ac5['marker']===_0x5b41ef['config']['get']('mergeFields.prefix')&&_0x5b41ef['model']['change'](_0x4bf481=>{_0x4bf481['remove'](_0x2a1ac5['range']);const _0x5e921d=_0x2a1ac5['mention']['id'],_0x1f3036=_0x5b41ef['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x5e921d);'text'===_0x1f3036?_0x5b41ef['execute']('insertMergeField',_0x5e921d):'block'===_0x1f3036?_0x5b41ef['execute']('insertMergeFieldBlock',_0x5e921d,!0x1):_0x5b41ef['execute']('insertMergeFieldImage',_0x5e921d,{'breakBlock':!0x0}),_0x2b6f94['stop']();});},{'priority':'high'});}}function createInsertMergeFieldDropdown(_0x4369ff){const _0x1acb05=createDropdown(_0x4369ff);return _0x1acb05['set']({'class':'ck-insert-merge-field-dropdown','isEnabled':!0x0}),_0x1acb05['buttonView']['set']({'label':getTranslation$8(_0x4369ff,'Insert\x20merge\x20field'),'icon':IconInsertMergeField,'tooltip':!0x0}),_0x1acb05;}function createMergeFieldsListView(_0x9045c,_0x5ee07a,_0x378000){const _0x3964cd=new MergeFieldsListView(_0x9045c),_0x31a1bb=[],_0x4d0157=[];for(const _0x18c201 of _0x5ee07a)if('groupId'in _0x18c201){const _0x3f3245=createMergeFieldsGroupView(_0x9045c,_0x18c201['groupLabel']||_0x18c201['groupId'],_0x18c201['definitions'],_0x378000);_0x3f3245['delegate']('execute')['to'](_0x3964cd),_0x4d0157['push'](_0x3f3245);}else _0x31a1bb['push'](_0x18c201);if(_0x31a1bb['length']){const _0x403a0d=createMergeFieldsGroupView(_0x9045c,'Other',_0x31a1bb,_0x378000);_0x403a0d['delegate']('execute')['to'](_0x3964cd),_0x4d0157['push'](_0x403a0d);}return _0x3964cd['items']['addMany'](_0x4d0157),_0x3964cd;}function createMergeFieldsGroupView(_0x51416c,_0xb7176e,_0x82293a,_0xddf44){const _0x418615=new ListItemGroupView(_0x51416c,new LabelWithHighlightView());_0x418615['label']=_0xb7176e;for(const _0x550a77 of _0x82293a){let _0x2c4b10;_0x2c4b10='block'===_0x550a77['type']?_0xddf44['insertBlock']:'image'===_0x550a77['type']?_0xddf44['insertImage']:_0xddf44['insertInline'];const _0x365d3c=createMergeFieldListItemView(_0x51416c,_0x550a77,_0x2c4b10);_0x365d3c['delegate']('execute')['to'](_0x418615),_0x418615['items']['add'](_0x365d3c);}return _0x418615;}function createMergeFieldListItemView(_0x462500,_0x53eb43,_0x474a42){const _0x1f63c4=new ListItemView(_0x462500),_0x4b749d=new ButtonLabelWithHighlightView(),_0x5ec8e7=new ButtonView(_0x462500,_0x4b749d);return _0x1f63c4['children']['add'](_0x5ec8e7),_0x5ec8e7['set']({'label':_0x53eb43['label']||_0x53eb43['id'],'withText':!0x0}),_0x5ec8e7['bind']('isEnabled')['to'](_0x474a42),_0x5ec8e7['on']('execute',()=>{_0x1f63c4['fire']('execute',_0x53eb43['id']);}),_0x1f63c4;}function createMergeFieldsSearchTextView(_0x4ddbce,_0xd67e30){return new SearchTextView(_0x4ddbce,{'filteredView':_0xd67e30,'queryView':{'label':getTranslation$8(_0x4ddbce,'Search\x20merge\x20field')},'class':'ck-merge-fields-search','infoView':{'text':{'notFound':{'primary':getTranslation$8(_0x4ddbce,'No\x20merge\x20fields\x20found')},'noSearchableItems':{'primary':getTranslation$8(_0x4ddbce,'No\x20merge\x20fields\x20available')}}}});}function createMenuBarSubmenu(_0x422d70,_0x1d3ba3,_0x318a85){const _0x5ef1af=new MenuBarMenuView(_0x422d70),_0x5eb669=new MenuBarMenuListView(_0x422d70);for(const _0x59b449 of _0x1d3ba3['definitions']){let _0x2a88ce;_0x2a88ce='block'===_0x59b449['type']?_0x318a85['insertBlock']:'image'===_0x59b449['type']?_0x318a85['insertImage']:_0x318a85['insertInline'];const _0x823840=createMenuBarListItem(_0x422d70,_0x59b449,_0x5ef1af,_0x2a88ce);_0x5eb669['items']['add'](_0x823840);}return _0x5ef1af['set']({'class':'ck-menu-bar__merge-fields-submenu'}),_0x5ef1af['buttonView']['set']({'label':_0x1d3ba3['groupLabel']||_0x1d3ba3['groupId']}),_0x5ef1af['panelView']['children']['add'](_0x5eb669),_0x5ef1af;}function createMenuBarListItem(_0xd17cfc,_0x3abf74,_0x4603ae,_0x4eddf1){const _0x2fa456=new MenuBarMenuListItemView(_0xd17cfc,_0x4603ae),_0xce5de3=new MenuBarMenuListItemButtonView(_0xd17cfc);return _0xce5de3['set']({'label':_0x3abf74['label']||_0x3abf74['id']}),_0x2fa456['delegate']('execute')['to'](_0x4603ae),_0x2fa456['children']['add'](_0xce5de3),_0xce5de3['bind']('isEnabled')['to'](_0x4eddf1),_0xce5de3['on']('execute',()=>{_0x2fa456['fire']('execute',_0x3abf74['id']);}),_0x2fa456;}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 _0x57dba0=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x57dba0),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x5ec7e9,_0x158839,_0x30b66d)=>{_0x30b66d&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){checkLicense$7(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x377264=this['editor'],_0x2be7a0=_0x377264['editing']['view'],_0xbf9f5b=this['_getAttachedDomRoot']();if(!_0xbf9f5b||0x0===_0xbf9f5b['childElementCount'])return void _0x377264['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x384198,pageHeight:_0x519f1a}=_0x377264['config']['get']('pagination'),{top:_0x5e0c58,left:_0x3eb783,bottom:_0x35ea40,right:_0xaa86cd}=this['_configuredPaddings'];this['_pagesContainer']=new View(_0x377264['locale']);const _0x2e4406=this['_pagesContainer'];_0x2e4406['set']('class',''),_0x2e4406['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x384198,'width':_0x384198,'height':'calc(\x20'+_0x519f1a+'\x20-\x20'+_0x5e0c58+'\x20-\x20'+_0x35ea40+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0xaa86cd+'\x200\x20'+_0x3eb783,'columnGap':'calc('+_0x3eb783+'\x20+\x20'+_0xaa86cd+'\x20+\x20'+COLUMN_GAP+'px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x2e4406['bindTemplate']['to']('class')}}),_0x2e4406['render'](),_0xbf9f5b['parentNode']['insertBefore'](_0x2e4406['element'],_0xbf9f5b['nextSibling']),this['listenTo'](_0x2be7a0,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x505538 of this['editor']['editing']['view']['domRoots']['values']())if(_0x505538['ownerDocument']['body']['contains'](_0x505538))return _0x505538;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x1c59f1=this['editor']['editing']['view'],_0x2e38ed=this['_pagesContainer'],_0x512f29=this['_getAttachedDomRoot']();if(!_0x512f29)return Promise['resolve']();for(_0x2e38ed['class']=['ck-reset','ck-pagination-view',..._0x512f29['classList']]['join']('\x20');_0x2e38ed['element']['firstChild'];)_0x2e38ed['element']['firstChild']['remove']();const _0x2ec1fb=Array['from'](_0x1c59f1['domRoots']);_0x2ec1fb['sort'](([,_0x482f79],[,_0x4c0e62])=>_0x482f79['compareDocumentPosition'](_0x4c0e62)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x234740,_0x4703ed]of _0x2ec1fb){const _0x3afb15=_0x4703ed['cloneNode'](!0x0);'attributeStyleMap'in _0x3afb15&&_0x3afb15['attributeStyleMap']['clear'](),_0x3afb15['dataset']['rootName']=_0x234740,_0x3afb15['className']='ck-content\x20ck-pagination_enabled',_0x3afb15['removeAttribute']('id'),_0x3afb15['tabIndex']=-0x1,_0x2e38ed['element']['append'](_0x3afb15);}const _0x1ce956=Array['from'](_0x2e38ed['element']['querySelectorAll']('img'));return allImagesAreReady(_0x1ce956)['then'](()=>{for(const _0x3a5ca3 of _0x1ce956['filter'](_0x212ec8=>!_0x212ec8['closest']('table')))if(_0x3a5ca3['offsetParent']){const _0x1c15f2=_0x42cc73['window']['getComputedStyle'](_0x3a5ca3),_0x3c0ff2=_0x42cc73['document']['createElement']('span');for(const _0x50de24 of _0x1c15f2)_0x3c0ff2['style']['setProperty'](_0x50de24,_0x1c15f2[_0x50de24]);_0x3c0ff2['style']['backgroundImage']='url(\x20'+_0x3a5ca3['src']+'\x20)',_0x3c0ff2['style']['breakInside']='avoid','PICTURE'==_0x3a5ca3['parentElement']?.['tagName']?_0x3a5ca3['parentElement']['replaceWith'](_0x3c0ff2):_0x3a5ca3['replaceWith'](_0x3c0ff2);}return nextAnimationFrame();})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x5ab720=this['_pagesContainer']['element'];if(!_0x5ab720['ownerDocument']['body']['contains'](_0x5ab720))return;const _0x37fa64=new Rect(_0x5ab720)['excludeScrollbarsAndBorders'](),_0xf99727=Math['floor'](_0x37fa64['width']+COLUMN_GAP),_0x4fbe7e=findPageStarterInfos(_0x5ab720,Math['floor'](_0x37fa64['left']-_0x5ab720['scrollLeft']),_0xf99727,_0x37fa64['height'])['map'](_0x5208ed=>this['_mapPageStarterInfoToPageBreakInfo'](_0x5208ed))['filter'](_0x284dba=>!0x1!==_0x284dba);_0x4fbe7e['every'](_0x1f6336=>!!_0x1f6336)&&(this['pageBreaks']=_0x4fbe7e);}['_mapPageStarterInfoToPageBreakInfo'](_0x269b93){const _0x550520=this['editor']['editing']['view'],_0x2106fe=this['editor']['editing']['mapper'],_0x48f439=_0x550520['domConverter'],_0x512bbd=_0x269b93['path']['shift'](),_0x3e3f4c=this['_pagesContainer']['element']['childNodes'][_0x512bbd]['dataset']['rootName'],_0x200498=_0x550520['getDomRoot'](_0x3e3f4c);if(!_0x200498)return null;const _0x1539ba=pageElementToViewElement(_0x200498,_0x269b93);if(!_0x1539ba)return null;const _0x5549fb=_0x48f439['domPositionToView'](_0x1539ba,_0x269b93['textOffset']||0x0);return _0x5549fb?'manual'==_0x269b93['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x5549fb,_0x1539ba):'text'==_0x269b93['type']&&_0x2106fe['toModelPosition'](_0x5549fb)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x5549fb,_0x1539ba,_0x269b93['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x5549fb,_0x1539ba,_0x269b93['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x430be7,_0x223fca){const _0x98c78=this['editor']['model'],_0x403b91=this['editor']['editing']['mapper']['toModelElement'](_0x430be7['parent']),_0x5cbc3a=_0x98c78['createRangeOn'](_0x403b91);return new PageBreakInfo({'type':'manual','modelRange':_0x5cbc3a,'domNode':_0x223fca,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0xd4754e,_0x286581,_0x19fa76){const _0x48c85f=this['editor']['model'],_0x371f5a=this['editor']['editing']['mapper'],_0x274a38=this['editor']['editing']['view']['domConverter'];if(_0x19fa76>=_0x286581['length'])return null;const _0x121639=_0x371f5a['toModelPosition'](_0xd4754e),_0x1a8424=_0x48c85f['createRange'](_0x121639),_0x33ff39=_0x371f5a['findMappedViewAncestor'](_0xd4754e),_0x2def3d=_0x274a38['mapViewToDom'](_0x33ff39);return new PageBreakInfo({'type':'text','modelRange':_0x1a8424,'domNode':_0x286581,'offset':findOffsetTopForTextOffset(_0x286581,_0x19fa76,_0x2def3d)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x149574,_0x575326,_0x395edf){const _0xb6556a=this['editor']['model'],_0x2649d4=this['editor']['editing'],_0x1a1cb1=_0x2649d4['mapper'],_0x5f744c=_0x2649d4['view']['domConverter'],_0x1fb30c=_0x1a1cb1['findMappedViewAncestor'](_0x149574),_0x3e6908=_0x1a1cb1['toModelElement'](_0x1fb30c);if(!_0x3e6908||_0x3e6908['is']('element','$root'))return!0x1;const _0x3922d3=getTopMostParentBlockTouchingPosition(_0xb6556a['createPositionBefore'](_0x3e6908))||_0x3e6908;let _0x1a81e2=_0x1a1cb1['toViewElement'](_0x3922d3),_0x55531e=_0xb6556a['createRangeOn'](_0x3922d3);const _0x338011=_0xb6556a['createPositionBefore'](_0x3922d3)['nodeBefore'];if(_0x338011&&_0x338011['is']('element','imageBlock')){const _0x4d9501=_0x1a1cb1['toViewElement'](_0x338011),_0xb4778a=_0x5f744c['mapViewToDom'](_0x4d9501),_0x417185=_0x42cc73['window']['getComputedStyle'](_0xb4778a)['float'];'left'!=_0x417185&&'right'!=_0x417185||(_0x55531e=_0xb6556a['createRangeOn'](_0x338011));}for(;_0x1a81e2['parent']!==_0x1a81e2['root']&&0x0===_0x1a81e2['index'];)_0x1a81e2=_0x1a81e2['parent'];const _0x5ecb60=new Rect(isHTMLElement(_0x575326)?_0x575326:createDomRangeOn(_0x575326)),_0x5520a0=_0x395edf?_0x5ecb60['height']-_0x395edf:0x0,_0x5e4704=_0x5f744c['mapViewToDom'](_0x1a81e2),_0x2e513e=new Rect(_0x5e4704);return new PageBreakInfo({'type':'element','modelRange':_0x55531e,'domNode':_0x5e4704,'offset':Math['round'](_0x5520a0)||_0x1fb30c!=findBlockAncestor(_0x149574)?_0x5520a0+_0x5ecb60['top']-_0x2e513e['top']:0x0});}get['_configuredPaddings'](){const _0x5e1ecd=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x5e1ecd);}static['_findPageStarterInfos'](_0x16e14f,_0x48eeba,_0x51b164,_0x2c031a,_0x150fc7){return findPageStarterInfos(_0x16e14f,_0x48eeba,_0x51b164,_0x2c031a,_0x150fc7);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x4023d4,modelRange:_0x32ed2a,domNode:_0x34ae64,offset:_0x1c0250}){this['type']=_0x4023d4,this['modelRange']=_0x32ed2a,this['_domNode']=_0x34ae64,this['_offset']=_0x1c0250;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x570392=new Rect(isHTMLElement(this['_domNode'])?this['_domNode']:createDomRangeOn(this['_domNode']));return'manual'==this['type']?_0x570392['top']+_0x570392['height']/0x2:_0x570392['top']+this['_offset'];}}function isPageBreak(_0x4bede){return!(!_0x4bede||!isHTMLElement(_0x4bede))&&Boolean(_0x4bede['classList']['contains']('page-break')||_0x4bede['closest']('.page-break'));}function pageElementToViewElement(_0x7ac80b,_0x579a03){let _0x4e4d37=_0x7ac80b;for(const _0x186001 of _0x579a03['path']){if(!_0x4e4d37)return null;_0x4e4d37=_0x4e4d37['childNodes'][_0x186001];}return _0x4e4d37;}function findOffsetTopForTextOffset(_0x478c7e,_0x2ec5b5,_0x5b8498){const _0x4a68ac=createDomRangeOn(_0x478c7e),_0x4758fb=createDomRangeIn(_0x5b8498);let _0x23b2d2;_0x23b2d2=0x0==_0x2ec5b5?createDomRangeMultiNode(_0x4758fb['startContainer'],_0x4758fb['startOffset'],_0x478c7e['parentNode'],Array['from'](_0x478c7e['parentNode']['childNodes'])['indexOf'](_0x478c7e)):createDomRangeMultiNode(_0x4758fb['startContainer'],_0x4758fb['startOffset'],_0x478c7e,_0x2ec5b5);const _0x473e7d=createDomRangeMultiNode(_0x478c7e,_0x2ec5b5,_0x4758fb['endContainer'],_0x4758fb['endOffset']),_0x8887ae=new Rect(_0x23b2d2)['bottom'];return(new Rect(_0x473e7d)['top']+_0x8887ae)/0x2-new Rect(_0x4a68ac)['top'];}function getTopMostParentBlockTouchingPosition(_0xef40b1){const _0x14df80=_0xef40b1['parent'],_0x46d5bd=_0x14df80['root']['document']['model'],_0xddf48e=_0x14df80['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x579ccd=null;for(const _0x11416f of _0xddf48e){if(_0x11416f['is']('rootElement'))return _0x579ccd;if(!_0x46d5bd['createPositionBefore'](_0x11416f)['isTouching'](_0xef40b1))return _0x579ccd;_0x579ccd=_0x11416f;}}function findBlockAncestor(_0x27aade){let _0x27360c=_0x27aade['parent'];for(;_0x27360c['is']('$text')||_0x27360c['is']('attributeElement');)_0x27360c=_0x27360c['parent'];return _0x27360c;}function allImagesAreReady(_0x1143c6){return Promise['all'](_0x1143c6['map'](_0x30e4d9=>Promise['race']([imageReady(_0x30e4d9),timeout(0x3e8)])));}function imageReady(_0x3566fc){return _0x3566fc['hasAttribute']('width')&&_0x3566fc['hasAttribute']('height')?Promise['resolve']():new Promise(_0x11ff9c=>{function _0x53f50d(){_0x3566fc['removeEventListener']('load',_0x53f50d),_0x3566fc['removeEventListener']('error',_0x53f50d),_0x11ff9c();}_0x3566fc['complete']?_0x11ff9c():(_0x3566fc['addEventListener']('load',_0x53f50d),_0x3566fc['addEventListener']('error',_0x53f50d));});}function timeout(_0x21608e){return new Promise(_0x257031=>setTimeout(_0x257031,_0x21608e));}function nextAnimationFrame(){return new Promise(_0x282c13=>_0x42cc73['window']['requestAnimationFrame'](()=>_0x282c13()));}function createDomRangeOn(_0x511b28){const _0xdaf6ba=_0x42cc73['document']['createRange']();return _0xdaf6ba['selectNode'](_0x511b28),_0xdaf6ba;}function createDomRangeIn(_0x1aaa96){const _0x4efd9e=_0x42cc73['document']['createRange']();return _0x4efd9e['selectNodeContents'](_0x1aaa96),_0x4efd9e;}function createDomRange(_0x36f5a7,_0x429bab,_0x414f3a){const _0x550922=_0x42cc73['document']['createRange']();return _0x550922['setStart'](_0x36f5a7,_0x429bab),_0x550922['setEnd'](_0x36f5a7,_0x414f3a),_0x550922;}function createDomRangeMultiNode(_0x9c32ac,_0x22f843,_0x2e5dfd,_0x2e1b16){const _0x356bf4=_0x42cc73['document']['createRange']();return _0x356bf4['setStart'](_0x9c32ac,_0x22f843),_0x356bf4['setEnd'](_0x2e5dfd,_0x2e1b16),_0x356bf4;}function findPageStarterInfos(_0x42c128,_0x5f083a,_0x41fc27,_0x5e8980,_0xa9e5be){const _0x47c9eb=[];for(const [_0x2e9e02,_0x101a90]of _0x42c128['childNodes']['entries']()){let _0x301852=[];isHTMLElement(_0x101a90)&&_0x101a90['offsetParent']&&['static','relative']['includes'](_0x42cc73['window']['getComputedStyle'](_0x101a90)['position'])?_0x301852=findPageStartersInElementNode(_0x101a90,_0x2e9e02,_0x5f083a,_0x41fc27,_0x5e8980,_0xa9e5be):isText(_0x101a90)&&(_0x301852=findPageStartersInTextNode(_0x101a90,_0x2e9e02,_0x5f083a,_0x41fc27,_0xa9e5be)),_0x301852['length']&&(_0x47c9eb['push'](..._0x301852),_0x5f083a+=_0x301852['length']*_0x41fc27,_0xa9e5be=!0x1);}return _0x47c9eb;}function findPageStartersInElementNode(_0xb1fbc8,_0x416e17,_0x2a174e,_0x504f44,_0x3d6222,_0x29b77d){const _0x2154d6=[];if(isPageBreak(_0xb1fbc8['previousSibling'])&&(_0x2154d6['push']({'type':'manual','offset':0x0,'path':[_0x416e17-0x1]}),_0x29b77d=!0x0),'table-row'==_0x42cc73['window']['getComputedStyle'](_0xb1fbc8)['display']){let _0x2cee3f=0x0,_0x2ab9fc=!0x1;for(const _0x4c7ca9 of _0xb1fbc8['getClientRects']())_0x2cee3f+=_0x4c7ca9['height'],_0x4c7ca9['left']>=_0x2a174e&&(_0x2ab9fc=!0x0);if(_0x2cee3f<_0x3d6222&&_0x2ab9fc)return _0x29b77d||_0x2154d6['push']({'type':'element','offset':0x0,'path':[_0x416e17]}),_0x2154d6;}const _0x330e96=_0xb1fbc8['closest']('figure.image');if(_0x330e96&&shouldIgnoreFigure(_0x330e96)){const _0x8c6469=_0x42cc73['window']['getComputedStyle'](_0x330e96)['float'];if('left'==_0x8c6469||'right'==_0x8c6469)return _0x2154d6;}const _0x331fc2=findPageStarterInfos(_0xb1fbc8,_0x2a174e,_0x504f44,_0x3d6222,_0x29b77d);if(_0x331fc2['length']){for(const _0x12c115 of _0x331fc2)_0x2154d6['push']({'type':_0x12c115['type'],'offset':_0x12c115['offset'],'textOffset':_0x12c115['textOffset'],'path':[_0x416e17,..._0x12c115['path']]}),_0x2a174e+=_0x504f44,_0x29b77d=!0x1;return _0x2154d6;}return _0x2154d6['push'](...findPageStartersInLeafElementNode(_0xb1fbc8,_0x416e17,_0x2a174e,_0x504f44,_0x29b77d)),_0x2154d6;}function findPageStartersInLeafElementNode(_0x58c8af,_0x521dd2,_0x41b4c5,_0x18e653,_0xcb43e4){const _0x5616aa=[];if('table-cell'==_0x42cc73['window']['getComputedStyle'](_0x58c8af)['display'])return[];const _0x214baf=[];for(const _0x34d406 of _0x58c8af['getClientRects']())if(_0x34d406['left']>=_0x41b4c5){for(const _0x422abe of _0x214baf)_0x422abe['height']+=_0x34d406['height'];_0x214baf['push']({'height':_0x34d406['height']}),_0x41b4c5+=_0x18e653;}for(const _0x326d4c of _0x214baf)_0xcb43e4||_0x5616aa['push']({'type':'element','offset':_0x326d4c['height'],'textOffset':0x0,'path':[_0x521dd2]}),_0xcb43e4=!0x1;return _0x5616aa;}function findPageStartersInTextNode(_0x3e75dc,_0x13850b,_0x1ee1b5,_0x16821c,_0x4b714d){const _0x4e9d7e=createDomRangeOn(_0x3e75dc),_0x44df4e=[];let _0x2a5914=0x0;for(const _0x27b802 of _0x4e9d7e['getClientRects']())if(_0x27b802['left']>=_0x1ee1b5){const _0xef6b2=findLastTextOffsetOnPage(_0x3e75dc,_0x2a5914,_0x1ee1b5,_0x16821c);_0x4b714d||_0x44df4e['push']({'type':'text','path':[_0x13850b],'textOffset':_0xef6b2}),_0x2a5914=_0xef6b2,_0x1ee1b5+=_0x16821c,_0x4b714d=!0x1;}return _0x44df4e;}function findLastTextOffsetOnPage(_0x3e79c2,_0x16a1a5,_0x4d80b4,_0x583835){let _0x343144=_0x16a1a5,_0x3afcdd=_0x3e79c2['length'];for(;_0x3afcdd-_0x343144>0x1;){const _0x40dedc=Math['ceil']((_0x343144+_0x3afcdd)/0x2);domRangeContainsPageBreak(createDomRange(_0x3e79c2,_0x343144,_0x40dedc),_0x4d80b4,_0x583835)?_0x3afcdd=_0x40dedc:_0x343144=_0x40dedc;}return _0x343144;}function domRangeContainsPageBreak(_0x3415aa,_0x95e4b5,_0x458147){for(const _0xc1747c of _0x3415aa['getClientRects']())if(_0xc1747c['left']>=_0x95e4b5&&_0xc1747c['left']<_0x95e4b5+_0x458147)return!0x0;return!0x1;}function shouldIgnoreFigure(_0x10d66c){let _0x31dbb9=!0x1;const _0x2145fa=_0x10d66c['parentElement']['dataset']['rootName'],_0x2422e6=_0x10d66c['nextElementSibling'],_0xd48f01=_0x10d66c['previousElementSibling'],_0x462c71=_0x2422e6&&_0x42cc73['window']['getComputedStyle'](_0x2422e6)['float'],_0x31b099=_0x2422e6&&'ck-fake-selection-container'===_0x2422e6['className'];return!_0x2145fa||_0x2422e6||_0xd48f01||(_0x31dbb9=!0x0),_0x2145fa&&!_0xd48f01&&_0x31b099&&(_0x31dbb9=!0x0),_0x2145fa&&!_0xd48f01&&'none'!==_0x462c71&&(_0x31dbb9=!0x0),!_0x31dbb9;}function isHTMLElement(_0x1b77c8){return _0x1b77c8['nodeType']==Node['ELEMENT_NODE'];}function isText(_0xf66906){return _0xf66906['nodeType']==Node['TEXT_NODE'];}async function checkLicense$7(_0x3c6eba){const _0x1659e5=_0x177364([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]),_0x5c19ff=window[_0x177364([0x44,0x61,0x74,0x65])][_0x177364([0x6e,0x6f,0x77])](),_0x41da13=_0x3c6eba[_0x177364([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e34d2=new window[(_0x177364([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cf87a=>{_0x41da13[_0x177364([0x6f,0x6e,0x63,0x65])](_0x177364([0x72,0x65,0x61,0x64,0x79]),_0x4cf87a);}),_0x3665d0={[_0x177364([0x6b,0x74,0x79])]:_0x177364([0x45,0x43]),[_0x177364([0x75,0x73,0x65])]:_0x177364([0x73,0x69,0x67]),[_0x177364([0x63,0x72,0x76])]:_0x177364([0x50,0x2d,0x32,0x35,0x36]),[_0x177364([0x78])]:_0x177364([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]),[_0x177364([0x79])]:_0x177364([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]),[_0x177364([0x61,0x6c,0x67])]:_0x177364([0x45,0x53,0x32,0x35,0x36])},_0x4d4a51=_0x41da13[_0x177364([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x177364([0x67,0x65,0x74])](_0x177364([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x1813fa=await(async function(){let _0xdb0352,_0x5c3194=null,_0x468a11=null;try{if(_0x4d4a51==_0x177364([0x47,0x50,0x4c]))return _0x177364([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdb0352=(function(){const _0x3c4c37=_0x4d4a51[_0x177364([0x73,0x70,0x6c,0x69,0x74])](_0x177364([0x2e]));if(0x3!=_0x3c4c37[_0x177364([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0xc6f04e=_0x3c4c37[0x1];return _0x32001a(_0xc6f04e);function _0x32001a(_0x1a0dfe){const _0x4838f5=_0x2d6564(_0x1a0dfe);return _0x4838f5&&_0x3021b9()?_0x4838f5:null;function _0x3021b9(){const _0x13e962=_0x4838f5[_0x177364([0x6a,0x74,0x69])],_0x1990c7=window[_0x177364([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13e962[_0x177364([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13e962[_0x177364([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xff4588={..._0x4838f5,[_0x177364([0x6a,0x74,0x69])]:_0x13e962[_0x177364([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13e962[_0x177364([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xff4588[_0x177364([0x76,0x63])],_0x2280e8(_0xff4588)==_0x1990c7;}}}()),!_0xdb0352)return _0x177364([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0xdb0352[_0x177364([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x468a11=function(_0x5341da,_0x2a2038){return new window[(_0x177364([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14f8cd=>{if(_0x3af3ca())return _0x14f8cd(_0x177364([0x56,0x61,0x6c,0x69,0x64]));_0x2b8c6e(),_0x41da13[_0x177364([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x177364([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe7e12=!0x1;const _0x3fb631=uid();function _0x4a6442(_0x360819){return!!_0x360819&&(typeof _0x360819===_0x177364([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x360819===_0x177364([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x360819[_0x177364([0x74,0x68,0x65,0x6e])]===_0x177364([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x360819[_0x177364([0x63,0x61,0x74,0x63,0x68])]===_0x177364([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42bcc8(_0x57b0f4){_0x236b1f(_0x57b0f4)[_0x177364([0x74,0x68,0x65,0x6e])](_0x54fb01=>{if(!_0x54fb01||_0x54fb01[_0x177364([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x177364([0x6f,0x6b]))return _0x177364([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c1096(_0x2280e8(_0x3fb631+_0x2a2038))!=_0x54fb01[_0x177364([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x177364([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x177364([0x56,0x61,0x6c,0x69,0x64]);})[_0x177364([0x74,0x68,0x65,0x6e])](_0x259691=>(_0x30d85c(),_0x259691),()=>{const _0x53a0a4=_0x42aa71();return null==_0x53a0a4?(_0x30d85c(),_0x177364([0x56,0x61,0x6c,0x69,0x64])):_0x177364(_0x5c19ff-_0x53a0a4>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x177364([0x74,0x68,0x65,0x6e])](_0x14f8cd)[_0x177364([0x63,0x61,0x74,0x63,0x68])](()=>{_0x14f8cd(_0x177364([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x533594=0x36ee80;function _0x30d85c(){const _0x15d3c6=_0x177364([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c1096(_0x2280e8(_0x5341da)),_0x913996=_0x542303(_0x3c1096(window[_0x177364([0x4d,0x61,0x74,0x68])][_0x177364([0x63,0x65,0x69,0x6c])](_0x5c19ff/_0x533594)));window[_0x177364([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x177364([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15d3c6,_0x913996);}function _0x42aa71(){const _0x243ca7=_0x177364([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c1096(_0x2280e8(_0x5341da)),_0x43472f=window[_0x177364([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x177364([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x243ca7);return _0x43472f?window[_0x177364([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x542303(_0x43472f),0x10)*_0x533594:null;}function _0x236b1f(_0x39c518){return new window[(_0x177364([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23b061,_0x1f3a50)=>{_0x39c518[_0x177364([0x74,0x68,0x65,0x6e])](_0x23b061,_0x1f3a50),window[_0x177364([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f3a50,0x1d4c0);});}}_0x41da13[_0x177364([0x6f,0x6e])](_0x177364([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a3a78,_0x9c1180)=>{if(_0x9c1180[0x0]!=_0x5341da)return _0x14f8cd(_0x177364([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x9c1180[0x1]={..._0x9c1180[0x1],[_0x177364([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fb631};},{[_0x177364([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x177364([0x68,0x69,0x67,0x68])}),_0x41da13[_0x177364([0x6f,0x6e])](_0x177364([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46b1e3=>{_0x4a6442(_0x46b1e3[_0x177364([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe7e12=!0x0,_0x42bcc8(_0x46b1e3[_0x177364([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x177364([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x177364([0x6c,0x6f,0x77])}),_0x1e34d2[_0x177364([0x74,0x68,0x65,0x6e])](()=>{_0xe7e12||_0x14f8cd(_0x177364([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3af3ca(){return _0x41da13[_0x177364([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x177364([0x76,0x69,0x65,0x77])][_0x177364([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x177364([0x61,0x75,0x74,0x6f]);}function _0x2b8c6e(){_0x41da13[_0x177364([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x177364([0x76,0x69,0x65,0x77])][_0x177364([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x177364([0x61,0x75,0x74,0x6f]);}}(_0xdb0352[_0x177364([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdb0352[_0x177364([0x6a,0x74,0x69])]));const _0x268ec3=await(async function(){let _0x199d67=!0x0;try{const _0x2af891=_0x4d4a51[_0x177364([0x73,0x70,0x6c,0x69,0x74])](_0x177364([0x2e])),[_0x2133ed,_0x1d7866,_0x107fac]=_0x2af891;return _0x9e93bc(_0x2133ed),await _0x580f41(_0x2133ed,_0x1d7866,_0x107fac),_0x199d67;}catch{return!0x1;}function _0x9e93bc(_0x3b966e){const _0x4362b3=_0x2d6564(_0x3b966e);_0x4362b3&&_0x4362b3[_0x177364([0x61,0x6c,0x67])]==_0x177364([0x45,0x53,0x32,0x35,0x36])||(_0x199d67=!0x1);}async function _0x580f41(_0x27b688,_0x2a9860,_0x1245e8){const _0xaa51d9=window[_0x177364([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x177364([0x66,0x72,0x6f,0x6d])](_0x2df4ab(_0x1245e8),_0x385270=>_0x385270[_0x177364([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c1dc5=new window[(_0x177364([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x177364([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27b688+_0x177364([0x2e])+_0x2a9860),_0x2e11f3=window[_0x177364([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x177364([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e11f3)return;const _0x7b04d5=await _0x2e11f3[_0x177364([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x177364([0x6a,0x77,0x6b]),_0x3665d0,{[_0x177364([0x6e,0x61,0x6d,0x65])]:_0x177364([0x45,0x43,0x44,0x53,0x41]),[_0x177364([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x177364([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x177364([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e11f3[_0x177364([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x177364([0x6e,0x61,0x6d,0x65])]:_0x177364([0x45,0x43,0x44,0x53,0x41]),[_0x177364([0x68,0x61,0x73,0x68])]:{[_0x177364([0x6e,0x61,0x6d,0x65])]:_0x177364([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x7b04d5,_0xaa51d9,_0x1c1dc5)||(_0x199d67=!0x1);}}());return _0x268ec3?(function(){const _0x251c6b=_0xdb0352[_0x177364([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x251c6b)return!0x1;if(_0x251c6b[_0x177364([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x177364([0x2a])))return!0x0;if(_0x251c6b[_0x177364([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x177364([0x50,0x41,0x47])))return!0x0;return!0x1;}())?(function(){const _0xf42d8=[_0x177364([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x177364([0x74,0x72,0x69,0x61,0x6c])][_0x177364([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdb0352[_0x177364([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c19ff/0x3e8:0x69b0b080;return _0xdb0352[_0x177364([0x65,0x78,0x70])]<_0xf42d8;}())?_0x177364([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x58bcd9=_0xdb0352[_0x177364([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58bcd9||0x0==_0x58bcd9[_0x177364([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d9745}=new URL(window[_0x177364([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58bcd9[_0x177364([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d9745))return!0x0;const _0x36f713=_0x3d9745[_0x177364([0x73,0x70,0x6c,0x69,0x74])](_0x177364([0x2e]));return _0x58bcd9[_0x177364([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ac8fe=>_0x3ac8fe[_0x177364([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x177364([0x2a])))[_0x177364([0x6d,0x61,0x70])](_0x42c93f=>_0x42c93f[_0x177364([0x73,0x70,0x6c,0x69,0x74])](_0x177364([0x2e])))[_0x177364([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e21a4=>_0x1e21a4[_0x177364([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36f713[_0x177364([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x177364([0x6d,0x61,0x70])](_0x71d3c2=>Array(_0x36f713[_0x177364([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x71d3c2[_0x177364([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x177364([0x66,0x69,0x6c,0x6c])](_0x71d3c2[0x0]===_0x177364([0x2a])?_0x177364([0x2a]):'')[_0x177364([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x71d3c2))[_0x177364([0x73,0x6f,0x6d,0x65])](_0x534020=>_0x36f713[_0x177364([0x65,0x76,0x65,0x72,0x79])]((_0x1ed11a,_0x434627)=>_0x534020[_0x434627]===_0x1ed11a||_0x534020[_0x434627]===_0x177364([0x2a])));}())?(_0xdb0352[_0x177364([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x177364([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c3194=function(_0x52030d){const _0x321ae3=new window[(_0x177364([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3885c4=>setTimeout(_0x3885c4,0x93ecc)),_0x45a04a=_0x1e34d2[_0x177364([0x74,0x68,0x65,0x6e])](()=>new window[(_0x177364([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c62e4=>{let _0x5c98b0=0x0;_0x41da13[_0x177364([0x6d,0x6f,0x64,0x65,0x6c])][_0x177364([0x6f,0x6e])](_0x177364([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x58fd19,_0xb7bc5a)=>{_0xb7bc5a[0x0][_0x177364([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c98b0++,0x5e8==_0x5c98b0&&(_0x5c62e4(),_0x58fd19[_0x177364([0x6f,0x66,0x66])]());});})),_0x3c3a75=[_0x321ae3,_0x45a04a];return window[_0x177364([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x177364([0x72,0x61,0x63,0x65])](_0x3c3a75)[_0x177364([0x74,0x68,0x65,0x6e])](()=>_0x52030d);}(_0x177364([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5c3194&&_0x468a11)return new window[(_0x177364([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1eb11f,_0x52b077)=>{_0x5c3194[_0x177364([0x74,0x68,0x65,0x6e])](_0x1eb11f,_0x52b077),_0x468a11[_0x177364([0x74,0x68,0x65,0x6e])](_0x31cc45=>{_0x31cc45!=_0x177364([0x56,0x61,0x6c,0x69,0x64])&&_0x1eb11f(_0x31cc45);},_0x52b077);});return _0x5c3194||_0x468a11||_0x177364([0x56,0x61,0x6c,0x69,0x64]);}())):_0x177364([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x177364([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x177364([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x177364([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2d6564(_0xea2f1c){return _0xea2f1c[_0x177364([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x177364([0x65,0x79]))?JSON[_0x177364([0x70,0x61,0x72,0x73,0x65])](_0x2df4ab(_0xea2f1c)):null;}function _0x2df4ab(_0x1df81a){return window[_0x177364([0x61,0x74,0x6f,0x62])](_0x1df81a[_0x177364([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x177364([0x2b]))[_0x177364([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x177364([0x2f])));}function _0x2280e8(_0x4f666f){let _0x335c94=0x1505;function _0x4f00a7(_0x29d9e4){for(let _0x56e04e=0x0;_0x56e04e<_0x29d9e4[_0x177364([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56e04e++){const _0x46bbde=_0x29d9e4[_0x177364([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56e04e);_0x335c94=(_0x335c94<<0x5)+_0x335c94+_0x46bbde,_0x335c94&=_0x335c94;}}return function _0x547ac2(_0x4a9330){Array[_0x177364([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a9330)?_0x4a9330[_0x177364([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x547ac2):_0x4a9330&&typeof _0x4a9330==_0x177364([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x177364([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a9330)[_0x177364([0x73,0x6f,0x72,0x74])]()[_0x177364([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x240e6d,_0x254575])=>{_0x4f00a7(_0x240e6d),_0x547ac2(_0x254575);}):_0x4f00a7(window[_0x177364([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a9330));}(_0x4f666f),_0x335c94>>>0x0;}function _0x3c1096(_0x320e37){return _0x320e37[_0x177364([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x177364([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x177364([0x30]));}function _0x542303(_0x54efbe){return _0x54efbe[_0x177364([0x73,0x70,0x6c,0x69,0x74])]('')[_0x177364([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x177364([0x6a,0x6f,0x69,0x6e])]('');}function _0x45d1e9(){}function _0x177364(_0x423207){return _0x423207['map'](_0x23cbd5=>String['fromCharCode'](_0x23cbd5))['join']('');}!function(_0x12fc5d){const _0x20ee6b=(function(){const _0x88b827=window[_0x177364([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x177364([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x177364([0x6e,0x6f,0x77])]())[_0x177364([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x177364([0x2e]),'');let _0x4836ef=_0x177364([0x49]);for(let _0x3a6356=0x0;_0x3a6356<_0x88b827[_0x177364([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a6356+=0x2){let _0x88dd46=window[_0x177364([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x88b827[_0x177364([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a6356,_0x3a6356+0x2));_0x88dd46>=_0x1659e5[_0x177364([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x88dd46-=_0x1659e5[_0x177364([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4836ef+=_0x1659e5[_0x88dd46];}return _0x4836ef;}());_0x41da13[_0x20ee6b]=_0x177364([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x12fc5d,_0x12fc5d!=_0x177364([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x1e34d2,_0x41da13[_0x177364([0x6d,0x6f,0x64,0x65,0x6c])][_0x177364([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45d1e9,_0x41da13[_0x177364([0x6d,0x6f,0x64,0x65,0x6c])][_0x177364([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45d1e9,_0x41da13[_0x177364([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x177364([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x1813fa);}const toPx=/* #__PURE__ -- @preserve */
toUnit('px');let LineView$1=class extends View{constructor(){super();const _0x3bdc08=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x3bdc08['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x3bdc08['if']('isVisible','ck-hidden',_0x3ad042=>!_0x3ad042)],'style':{'left':_0x3bdc08['to']('left',_0x41c7a5=>toPx(_0x41c7a5)),'top':_0x3bdc08['to']('top',_0x54f17e=>toPx(_0x54f17e)),'width':_0x3bdc08['to']('width',_0x3f629a=>toPx(_0x3f629a))}}});}};class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x5677d5){this['_viewCollection']=_0x5677d5['ui']['view']['body'];}['destroy'](){for(const _0x2dc544 of this['_hiddenLines'])_0x2dc544['destroy']();}['cleanLines'](){for(const _0x2ba55b of this['_visibleLines'])_0x2ba55b['isVisible']=!0x1,this['_hiddenLines']['add'](_0x2ba55b);this['_visibleLines']['clear']();}['showLine'](_0x5e9e2c,_0xd79480,_0x23329e,_0x54ed63){let _0x494e2b;this['_hiddenLines']['size']?(_0x494e2b=first(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x494e2b)):_0x494e2b=new LineView$1(),_0x494e2b['set']({'pageNumber':_0x54ed63,'left':_0x5e9e2c,'top':_0xd79480,'width':_0x23329e}),_0x494e2b['isVisible']=!0x0,this['_viewCollection']['has'](_0x494e2b)||this['_viewCollection']['add'](_0x494e2b),this['_visibleLines']['add'](_0x494e2b);}['setViewCollection'](_0x4f0b91){for(const _0x5ada29 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x5ada29)&&this['_viewCollection']['remove'](_0x5ada29);this['_viewCollection']=_0x4f0b91;}}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',(_0x3665c3,_0x2c6f84,_0xce2405)=>{_0xce2405||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,_0xce2405);});}['destroy'](){this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x5dfde1){if(!this['isEnabled'])return;const _0xd8d0f6=_0x5dfde1>0x1?this['_getPageBreakLineOffset'](_0x5dfde1-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0xd8d0f6-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':env['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x5acd5b=this['editor'],_0x201ae0=this['_getAttachedDomRoot']();_0x201ae0?(this['_scrollableEditingRootDomAncestor']&&_0x5acd5b['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=findScrollableElement(_0x201ae0),_0x5acd5b['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x42ae1a(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x5acd5b['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x591003=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x591003['ui']['view']['listenTo'](_0x42cc73['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x591003['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x3854cc of this['editor']['editing']['view']['domRoots']['values']())if(_0x3854cc['ownerDocument']['body']['contains'](_0x3854cc))return _0x3854cc;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x62b7a1=this['_getAttachedDomRoot'](),_0x31d64c=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x62b7a1||0x1==_0x31d64c['length'])return void(this['pageNumber']=0x1);const _0x23c1eb=new Rect(_0x62b7a1)['excludeScrollbarsAndBorders'](),_0x33eaad=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x5c65ba=_0x33eaad['top']+_0x33eaad['height']/0x3;let _0x2da476=!0x1;const _0xc3337e=[];for(let _0x2fbb8f=0x1;_0x2fbb8f<_0x31d64c['length'];_0x2fbb8f++){const _0x31f591=this['_getPageBreakLineOffset'](_0x2fbb8f,_0x33eaad);if(!_0x31f591)continue;const _0x378539=_0x33eaad['top']+_0x31f591-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0xc3337e['push']({'pageOffsetTop':_0x378539,'domRootRect':_0x23c1eb,'domScrollableRect':_0x33eaad,'pageNumber':_0x2fbb8f}),_0x378539>_0x5c65ba&&!_0x2da476&&(this['pageNumber']=_0x2fbb8f,_0x2da476=!0x0);}this['_renderPageBreakLines'](_0xc3337e),_0x2da476||(this['pageNumber']=_0x31d64c['length']);}['_renderPageBreakLines'](_0x9634a){const {scrollX:_0x3719da,scrollY:_0x547c9b}=_0x42cc73['window'];if(_0x9634a['length']){for(const {domScrollableRect:_0x3d4728,pageOffsetTop:_0x248852,domRootRect:_0x885f40,pageNumber:_0xb7ae9d}of _0x9634a)_0x3d4728['top']<_0x248852&&_0x248852<_0x3d4728['bottom']&&this['linesRepository']['showLine'](_0x885f40['left']+_0x3719da,_0x248852+_0x547c9b,_0x885f40['width'],_0xb7ae9d+0x1);}}['_getPageBreakLineOffset'](_0x33b1ef,_0x48e9c5=null){const _0xb70fb5=this['_paginationLookupPlugin']['pageBreaks'][_0x33b1ef]['offset'];return _0xb70fb5?(_0x48e9c5||(_0x48e9c5=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0xb70fb5-_0x48e9c5['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x542f3d,_0x303de3=!0x0){const _0x2f8d39=this['editor']['editing']['view'];_0x2f8d39['change'](_0x2ac51d=>{for(const _0x562df2 of _0x2f8d39['document']['roots'])_0x303de3?_0x2ac51d['addClass'](_0x542f3d,_0x562df2):_0x2ac51d['removeClass'](_0x542f3d,_0x562df2);});}}function findScrollableElement(_0x306a8c){let _0x14739f=_0x306a8c;do{_0x14739f=_0x14739f['parentElement'];const _0x17dcbf=_0x42cc73['window']['getComputedStyle'](_0x14739f)['overflowY'];if('auto'==_0x17dcbf||'scroll'==_0x17dcbf)break;}while('BODY'!=_0x14739f['tagName']);return _0x14739f;}function getTranslation$7(_0x302b4c,_0x2f3a6a,..._0xe9c587){const t=_0x302b4c['t'];switch(_0x2f3a6a){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)',..._0xe9c587);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 _0x2f3a6a;}}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 _0xdd7d59=this['editor']['plugins']['get']('Pagination'),_0x3bd89f=this['editor']['plugins']['get'](PaginationLookup),_0x1d2340=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0xdd7d59),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x1d2340),this['listenTo'](_0x3bd89f,'change:pageBreaks',(_0x475c78,_0x56ab95,_0x22a0ea,_0x11b658)=>{this['totalPages']=_0x22a0ea['length'],this['_updatePageBreakMarkers'](_0x22a0ea,_0x11b658);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3e97b7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2686d1;for(const _0x26696c in _0x3e97b7){const _0x476c27=_0x26696c,_0x2ce2e0=_0x3e97b7[_0x476c27];if('paginationLicenseKeyValid'==_0x2ce2e0||'paginationLicenseKeyInvalid'==_0x2ce2e0||'paginationLicenseKeyExpired'==_0x2ce2e0||'paginationLicenseKeyDomainLimit'==_0x2ce2e0||'paginationLicenseKeyNotAllowed'==_0x2ce2e0||'paginationLicenseKeyEvaluationLimit'==_0x2ce2e0||'paginationLicenseKeyUsageLimit'==_0x2ce2e0){delete _0x3e97b7[_0x476c27],_0x2686d1=_0x2ce2e0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x2686d1&&_0x3e97b7['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x2686d1&&_0x3e97b7['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x2686d1&&_0x3e97b7['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x2686d1&&_0x3e97b7['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x2686d1&&_0x3e97b7['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x2686d1&&_0x3e97b7['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x2f40c7){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x2f40c7));}['moveSelectionToPage'](_0x25fb1f){if(!this['isEnabled'])return;const _0x1697ad=this['editor'],_0x1a02e4=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x25fb1f-0x1];_0x1a02e4&&_0x1697ad['model']['change'](_0x253a98=>{switch(_0x1a02e4['type']){case'manual':{const _0x414dd6=_0x1697ad['model']['schema']['getNearestSelectionRange'](_0x1a02e4['modelRange']['end'],'forward');_0x253a98['setSelection'](_0x414dd6);break;}case'element':{const _0x3f3f96=_0x1697ad['model']['schema']['getNearestSelectionRange'](_0x1a02e4['modelRange']['start'],'forward');_0x253a98['setSelection'](_0x3f3f96);break;}case'text':{const _0xe1db8=_0x1a02e4['modelRange']['start'];if(_0xe1db8['textNode']&&'\x20'===_0xe1db8['textNode']['data'][_0xe1db8['offset']]){const _0x2bd39b=_0x253a98['createPositionAt'](_0xe1db8['parent'],_0xe1db8['offset']+0x1);_0x253a98['setSelection'](_0x2bd39b);}else _0x253a98['setSelection'](_0x1a02e4['modelRange']);}}_0x1697ad['editing']['view']['focus']();});}['goToNextPage'](){const _0x2d4774=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x2d4774),this['scrollToPage'](_0x2d4774);}['goToPreviousPage'](){const _0x298be1=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x298be1),this['scrollToPage'](_0x298be1);}['_updatePageBreakMarkers'](_0x2af4d8,_0x41872e){const _0x10ad95=this['editor']['model'];this['isEnabled']&&_0x10ad95['change'](_0x188999=>{for(let _0x4bf3b4=0x1;_0x4bf3b4<_0x2af4d8['length'];_0x4bf3b4++){const _0x2b6f7f=_0x2af4d8[_0x4bf3b4]['modelRange'],_0x1f250a='pagination:'+(_0x4bf3b4+0x1);_0x10ad95['markers']['has'](_0x1f250a)?_0x188999['updateMarker'](_0x1f250a,{'range':_0x2b6f7f}):_0x188999['addMarker'](_0x1f250a,{'range':_0x2b6f7f,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x571924=_0x2af4d8['length'];_0x571924<_0x41872e['length'];_0x571924++){const _0x186a70='pagination:'+(_0x571924+0x1);_0x10ad95['markers']['has'](_0x186a70)&&_0x188999['removeMarker'](_0x186a70);}});}['_setUpDataDowncastConversion'](){const _0x55d42b='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x2d42e2=>{_0x2d42e2['on']('addMarker:'+_0x55d42b,(_0x5dba2e,{markerRange:_0x27ac15,markerName:_0x52f451},_0x4db6b0)=>{if(!_0x4db6b0['options']['pagination'])return;if(!_0x4db6b0['consumable']['consume'](_0x27ac15,_0x5dba2e['name']))return;const _0x16efdc=_0x27ac15['getContainedElement']();let _0x209ba0=_0x16efdc?_0x4db6b0['mapper']['toViewElement'](_0x16efdc):null;if(!_0x209ba0){const _0x866e8f=_0x27ac15['start'];if(_0x4db6b0['schema']['checkChild'](_0x866e8f,'$text')){const _0x31cb26=_0x4db6b0['mapper']['toViewPosition'](_0x866e8f);_0x209ba0=_0x4db6b0['writer']['createContainerElement']('span'),_0x209ba0['getFillerOffset']=()=>null,_0x4db6b0['writer']['insert'](_0x31cb26,_0x209ba0);}else{const _0x379a92=_0x866e8f['nodeAfter'];_0x209ba0=_0x4db6b0['mapper']['toViewElement'](_0x379a92);}}for(;_0x209ba0['parent']!==_0x209ba0['root']&&0x0===_0x209ba0['index'];)_0x209ba0=_0x209ba0['parent'];const _0x5a18f7=_0x52f451['substring'](0xb);_0x209ba0['hasClass']('page-break')||(_0x4db6b0['writer']['setStyle']('page-break-before','always',_0x209ba0),_0x4db6b0['writer']['setAttribute']('data-pagination-page',_0x5a18f7,_0x209ba0),_0x4db6b0['mapper']['bindElementToMarker'](_0x209ba0,_0x52f451)),_0x5dba2e['stop']();});});}['_setupKeystrokes'](){const _0x582eaa=this['editor'];_0x582eaa['keystrokes']['set']('Shift+Pageup',(_0x5289c9,_0x2e383b)=>{this['goToPreviousPage'](),_0x2e383b();}),_0x582eaa['keystrokes']['set']('Shift+Pagedown',(_0xa2f9bf,_0x7770fc)=>{this['goToNextPage'](),_0x7770fc();}),_0x582eaa['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':getTranslation$7(_0x582eaa['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':getTranslation$7(_0x582eaa['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':getTranslation$7(_0x582eaa['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x18fa70){return _0x18fa70<0x1&&(_0x18fa70=0x1),_0x18fa70>this['totalPages']&&(_0x18fa70=this['totalPages']),_0x18fa70;}}class PageNavigatorView extends View{['pageNumberView'];constructor(_0x3bb227){super(_0x3bb227);const _0x120655=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new InputNumberView(_0x3bb227,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x18a5d5=>getTranslation$7(_0x3bb227,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x18a5d5)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x105567=>!_0x105567),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x120655['if']('isEnabled','ck-disabled',_0xfd0023=>!_0xfd0023)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x120655['to']('totalPages')}]}]});}['render'](){super['render']();const _0x4fd931=this['pageNumberView']['element'],_0x5af7f7=_0x2ef4ef=>{this['pageNumberView']['element']['value']=String(_0x2ef4ef);};_0x5af7f7(this['pageNumber']),this['on']('change:pageNumber',(_0x4804c5,_0x41d9c5,_0x150ee8)=>{_0x5af7f7(_0x150ee8);}),this['listenTo'](_0x4fd931,'keydown',(_0x4b29e4,_0x2a5e17)=>{if('ArrowUp'===_0x2a5e17['key']||'ArrowDown'===_0x2a5e17['key'])return void _0x2a5e17['stopPropagation']();if(_0x2a5e17['keyCode']!==keyCodes['enter'])return;_0x2a5e17['preventDefault']();const _0x3d3633=_0x4fd931['valueAsNumber'];Number['isNaN'](_0x3d3633)?_0x4fd931['value']=String(this['pageNumber']):(_0x4fd931['checkValidity']()?this['pageNumber']=_0x3d3633:_0x3d3633>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x4fd931['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x4fd931['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x4fd931,'blur',()=>{_0x4fd931['value']=String(this['pageNumber']);}),this['listenTo'](_0x4fd931,'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 _0x809766=this['editor'],_0x3d998e=_0x809766['plugins']['get']('PaginationEditing');_0x809766['ui']['componentFactory']['add']('pageNavigation',_0x421cc1=>{const _0x137e70=new PageNavigatorView(_0x421cc1);return _0x137e70['bind']('pageNumber')['to'](_0x3d998e),_0x137e70['bind']('totalPages')['to'](_0x3d998e),_0x137e70['bind']('isEnabled')['to'](_0x3d998e),_0x137e70['on']('navigation',(_0xc00c96,_0x145c2d)=>{_0x3d998e['moveSelectionToPage'](_0x145c2d),_0x3d998e['scrollToPage'](_0x145c2d);}),_0x137e70;}),_0x809766['ui']['componentFactory']['add']('nextPage',_0x137f2c=>{const _0x10bdd0=new ButtonView(_0x137f2c);return _0x10bdd0['isEnabled']=!0x0,_0x10bdd0['label']=getTranslation$7(_0x809766['locale'],'Go\x20to\x20next\x20page'),_0x10bdd0['icon']=IconArrowDown,_0x10bdd0['tooltip']=!0x0,_0x10bdd0['keystroke']='Shift+PageDown',_0x10bdd0['bind']('isEnabled')['to'](_0x3d998e),this['listenTo'](_0x10bdd0,'execute',()=>{_0x3d998e['goToNextPage']();}),_0x10bdd0;}),_0x809766['ui']['componentFactory']['add']('previousPage',_0xc2eab8=>{const _0x22bb67=new ButtonView(_0xc2eab8);return _0x22bb67['isEnabled']=!0x0,_0x22bb67['label']=getTranslation$7(_0x809766['locale'],'Go\x20to\x20previous\x20page'),_0x22bb67['icon']=IconArrowUp,_0x22bb67['tooltip']=!0x0,_0x22bb67['keystroke']='Shift+PageUp',_0x22bb67['bind']('isEnabled')['to'](_0x3d998e),this['listenTo'](_0x22bb67,'execute',()=>{_0x3d998e['goToPreviousPage']();}),_0x22bb67;});}}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(_0x481e9e){super(_0x481e9e),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x42f4d8=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x42f4d8),this['bind']('totalPages')['to'](_0x42f4d8),env['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x155937){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x155937);}}const MS_EXCEL_META_REGEX=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function isMSExcelContent(_0x32b514){return MS_EXCEL_META_REGEX['test'](_0x32b514);}const CSS_SELECTOR_REGEX=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function getMatchingStyles(_0x571fc8,_0x44db08){const _0x12f25a=new Map();for(const [_0x9a2684,_0x54858c]of _0x44db08){if(!_0x9a2684['tagName']&&!_0x9a2684['className'])continue;const _0x3a05a3=!_0x9a2684['tagName']||_0x571fc8['name']===_0x9a2684['tagName'],_0x242ac9=!_0x9a2684['className']||_0x571fc8['hasClass'](_0x9a2684['className']);_0x3a05a3&&_0x242ac9&&_0x12f25a['set'](_0x9a2684,_0x54858c);}return _0x12f25a;}function extractStyles(_0x287aba){const _0x5483f5={};for(const _0x10ccf9 of _0x287aba)for(const _0x3d278d of _0x10ccf9['cssRules'])if(_0x3d278d instanceof CSSStyleRule){const _0x3b2f0c=parseCSSStyleDeclaration(_0x3d278d['style']);_0x5483f5[_0x3d278d['selectorText']]=Object['assign']({},_0x5483f5[_0x3d278d['selectorText']]||{},_0x3b2f0c);}return _0x5483f5;}function expandStyles(_0x3afa4a){const _0x3a1e3b=new Map();for(const _0x4cd38b in _0x3afa4a){const _0x457225=parseCSSSelector(_0x4cd38b),_0x1829b3=_0x3afa4a[_0x4cd38b];for(const _0x2f15d6 of _0x457225)_0x3a1e3b['set'](_0x2f15d6,_0x1829b3);}return _0x3a1e3b;}function parseCSSStyleDeclaration(_0x1e4802){const _0x53506a={};for(let _0x1bb00c=0x0;_0x1bb00c<_0x1e4802['length'];_0x1bb00c++){const _0x39829e=_0x1e4802[_0x1bb00c],_0x16fb59=_0x1e4802['getPropertyValue'](_0x39829e);'initial'!==_0x16fb59&&(_0x53506a[_0x39829e]=_0x16fb59);}return _0x53506a;}function parseCSSSelector(_0x5bace4){const _0x53afea=_0x5bace4['split'](',')['map'](_0x373156=>_0x373156['trim']()),_0x316209=[];for(const _0x20d9bb of _0x53afea){const _0xa501e3=CSS_SELECTOR_REGEX['exec'](_0x20d9bb);_0xa501e3&&_0x316209['push'](_0xa501e3['groups']);}return _0x316209;}function flattenStyleDefinitions(_0x3a61ce){const _0x3c4be2={};for(const _0x255c7e of _0x3a61ce)Object['assign'](_0x3c4be2,_0x255c7e);return _0x3c4be2;}class MSOfficeStylesInliner extends PasteFromOfficeMSWordNormalizer{['execute'](_0x4441f4){const {body:_0x57dbbf,styles:_0x345a72}=_0x4441f4['_parsedData'],_0x25068c=new ViewUpcastWriter(_0x57dbbf['document']),_0x22dda8=_0x25068c['createRangeIn'](_0x57dbbf),_0x37cb53=expandStyles(extractStyles(_0x345a72));for(const _0x5bc3b2 of _0x22dda8){if('elementStart'!==_0x5bc3b2['type'])continue;const _0x59b446=getMatchingStyles(_0x5bc3b2['item'],_0x37cb53);if(_0x59b446['size']){const _0x42c18e=flattenStyleDefinitions(Array['from'](_0x59b446['values']()));for(const _0x19f826 in _0x42c18e){const _0x3eff18=_0x5bc3b2['item'];_0x3eff18['hasStyle'](_0x19f826)||_0x25068c['setStyle'](_0x19f826,_0x42c18e[_0x19f826],_0x3eff18);}}}_0x4441f4['content']=_0x57dbbf;}['isActive'](_0x462fc7){return super['isActive'](_0x462fc7)||isMSExcelContent(_0x462fc7);}}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 _0x2cb65d=this['editor'],_0x30538b=_0x2cb65d['plugins']['get']('ClipboardPipeline'),_0x228d6c=_0x2cb65d['editing']['view']['document'],_0x248248=new MSOfficeStylesInliner(_0x228d6c);_0x30538b['on']('inputTransformation',(_0x390c7c,_0x544bb6)=>{const _0x14cb50=_0x544bb6['dataTransfer']['getData']('text/html');_0x248248['isActive'](_0x14cb50)&&(_0x544bb6['_parsedData']||(_0x544bb6['_parsedData']=parsePasteOfficeHtml(_0x14cb50,_0x228d6c['stylesProcessor'])),_0x248248['execute'](_0x544bb6));},{'priority':priorities['get']('high')+0xb});}['afterInit'](){checkLicense$6(this);}}async function checkLicense$6(_0x37c57c){const _0x98c8cf=_0x2749b6([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]),_0x52ba4c=window[_0x2749b6([0x44,0x61,0x74,0x65])][_0x2749b6([0x6e,0x6f,0x77])](),_0x2fe74a=_0x37c57c[_0x2749b6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54687b=new window[(_0x2749b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2daf8b=>{_0x2fe74a[_0x2749b6([0x6f,0x6e,0x63,0x65])](_0x2749b6([0x72,0x65,0x61,0x64,0x79]),_0x2daf8b);}),_0x27781a={[_0x2749b6([0x6b,0x74,0x79])]:_0x2749b6([0x45,0x43]),[_0x2749b6([0x75,0x73,0x65])]:_0x2749b6([0x73,0x69,0x67]),[_0x2749b6([0x63,0x72,0x76])]:_0x2749b6([0x50,0x2d,0x32,0x35,0x36]),[_0x2749b6([0x78])]:_0x2749b6([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]),[_0x2749b6([0x79])]:_0x2749b6([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]),[_0x2749b6([0x61,0x6c,0x67])]:_0x2749b6([0x45,0x53,0x32,0x35,0x36])},_0x439eef=_0x2fe74a[_0x2749b6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2749b6([0x67,0x65,0x74])](_0x2749b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x31086b=await(async function(){let _0x1bbcc6,_0x2beec0=null,_0xc4d8e6=null;try{if(_0x439eef==_0x2749b6([0x47,0x50,0x4c]))return _0x2749b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bbcc6=(function(){const _0x1717cf=_0x439eef[_0x2749b6([0x73,0x70,0x6c,0x69,0x74])](_0x2749b6([0x2e]));if(0x3!=_0x1717cf[_0x2749b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x43605e=_0x1717cf[0x1];return _0x2d56c7(_0x43605e);function _0x2d56c7(_0x4d090c){const _0x372e3d=_0x44524e(_0x4d090c);return _0x372e3d&&_0x4abbe8()?_0x372e3d:null;function _0x4abbe8(){const _0x210bdc=_0x372e3d[_0x2749b6([0x6a,0x74,0x69])],_0x2f8997=window[_0x2749b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x210bdc[_0x2749b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x210bdc[_0x2749b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5138ba={..._0x372e3d,[_0x2749b6([0x6a,0x74,0x69])]:_0x210bdc[_0x2749b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x210bdc[_0x2749b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5138ba[_0x2749b6([0x76,0x63])],_0x20e55a(_0x5138ba)==_0x2f8997;}}}()),!_0x1bbcc6)return _0x2749b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1bbcc6[_0x2749b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc4d8e6=function(_0x3de4c6,_0x3f7b6a){return new window[(_0x2749b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57fdf6=>{if(_0x458c78())return _0x57fdf6(_0x2749b6([0x56,0x61,0x6c,0x69,0x64]));_0x202f34(),_0x2fe74a[_0x2749b6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2749b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4854cf=!0x1;const _0x25f455=uid();function _0x3ff7e1(_0xa0d7d5){return!!_0xa0d7d5&&(typeof _0xa0d7d5===_0x2749b6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa0d7d5===_0x2749b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa0d7d5[_0x2749b6([0x74,0x68,0x65,0x6e])]===_0x2749b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa0d7d5[_0x2749b6([0x63,0x61,0x74,0x63,0x68])]===_0x2749b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x523d91(_0x3f5697){_0x575b6c(_0x3f5697)[_0x2749b6([0x74,0x68,0x65,0x6e])](_0x1460d1=>{if(!_0x1460d1||_0x1460d1[_0x2749b6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2749b6([0x6f,0x6b]))return _0x2749b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x212d73(_0x20e55a(_0x25f455+_0x3f7b6a))!=_0x1460d1[_0x2749b6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2749b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2749b6([0x56,0x61,0x6c,0x69,0x64]);})[_0x2749b6([0x74,0x68,0x65,0x6e])](_0x5f4f89=>(_0xe60d66(),_0x5f4f89),()=>{const _0x34bacd=_0x52b992();return null==_0x34bacd?(_0xe60d66(),_0x2749b6([0x56,0x61,0x6c,0x69,0x64])):_0x2749b6(_0x52ba4c-_0x34bacd>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2749b6([0x74,0x68,0x65,0x6e])](_0x57fdf6)[_0x2749b6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57fdf6(_0x2749b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x20eb74=0x36ee80;function _0xe60d66(){const _0x438250=_0x2749b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x212d73(_0x20e55a(_0x3de4c6)),_0x58759d=_0x4415e2(_0x212d73(window[_0x2749b6([0x4d,0x61,0x74,0x68])][_0x2749b6([0x63,0x65,0x69,0x6c])](_0x52ba4c/_0x20eb74)));window[_0x2749b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2749b6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x438250,_0x58759d);}function _0x52b992(){const _0x1ec3d7=_0x2749b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x212d73(_0x20e55a(_0x3de4c6)),_0x48b411=window[_0x2749b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2749b6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ec3d7);return _0x48b411?window[_0x2749b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4415e2(_0x48b411),0x10)*_0x20eb74:null;}function _0x575b6c(_0x4a6cc3){return new window[(_0x2749b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f5713,_0x1a1a6b)=>{_0x4a6cc3[_0x2749b6([0x74,0x68,0x65,0x6e])](_0x2f5713,_0x1a1a6b),window[_0x2749b6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1a1a6b,0x1d4c0);});}}_0x2fe74a[_0x2749b6([0x6f,0x6e])](_0x2749b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe567c3,_0x5d836b)=>{if(_0x5d836b[0x0]!=_0x3de4c6)return _0x57fdf6(_0x2749b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d836b[0x1]={..._0x5d836b[0x1],[_0x2749b6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25f455};},{[_0x2749b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2749b6([0x68,0x69,0x67,0x68])}),_0x2fe74a[_0x2749b6([0x6f,0x6e])](_0x2749b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x11fc72=>{_0x3ff7e1(_0x11fc72[_0x2749b6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4854cf=!0x0,_0x523d91(_0x11fc72[_0x2749b6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2749b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2749b6([0x6c,0x6f,0x77])}),_0x54687b[_0x2749b6([0x74,0x68,0x65,0x6e])](()=>{_0x4854cf||_0x57fdf6(_0x2749b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x458c78(){return _0x2fe74a[_0x2749b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2749b6([0x76,0x69,0x65,0x77])][_0x2749b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2749b6([0x61,0x75,0x74,0x6f]);}function _0x202f34(){_0x2fe74a[_0x2749b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2749b6([0x76,0x69,0x65,0x77])][_0x2749b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2749b6([0x61,0x75,0x74,0x6f]);}}(_0x1bbcc6[_0x2749b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bbcc6[_0x2749b6([0x6a,0x74,0x69])]));const _0x5cb729=await(async function(){let _0x19b422=!0x0;try{const _0x4c8785=_0x439eef[_0x2749b6([0x73,0x70,0x6c,0x69,0x74])](_0x2749b6([0x2e])),[_0x142936,_0x4f07be,_0x1523e0]=_0x4c8785;return _0x248a88(_0x142936),await _0xbeb342(_0x142936,_0x4f07be,_0x1523e0),_0x19b422;}catch{return!0x1;}function _0x248a88(_0x592857){const _0x3120df=_0x44524e(_0x592857);_0x3120df&&_0x3120df[_0x2749b6([0x61,0x6c,0x67])]==_0x2749b6([0x45,0x53,0x32,0x35,0x36])||(_0x19b422=!0x1);}async function _0xbeb342(_0x23d59d,_0x42dd5e,_0x3cdecb){const _0x5d16d7=window[_0x2749b6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2749b6([0x66,0x72,0x6f,0x6d])](_0x2e9fd1(_0x3cdecb),_0x52c32=>_0x52c32[_0x2749b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5752ac=new window[(_0x2749b6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2749b6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23d59d+_0x2749b6([0x2e])+_0x42dd5e),_0xaf05a5=window[_0x2749b6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2749b6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xaf05a5)return;const _0x48ad18=await _0xaf05a5[_0x2749b6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2749b6([0x6a,0x77,0x6b]),_0x27781a,{[_0x2749b6([0x6e,0x61,0x6d,0x65])]:_0x2749b6([0x45,0x43,0x44,0x53,0x41]),[_0x2749b6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2749b6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2749b6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xaf05a5[_0x2749b6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2749b6([0x6e,0x61,0x6d,0x65])]:_0x2749b6([0x45,0x43,0x44,0x53,0x41]),[_0x2749b6([0x68,0x61,0x73,0x68])]:{[_0x2749b6([0x6e,0x61,0x6d,0x65])]:_0x2749b6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48ad18,_0x5d16d7,_0x5752ac)||(_0x19b422=!0x1);}}());return _0x5cb729?(function(){const _0x1bf953=_0x1bbcc6[_0x2749b6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1bf953)return!0x1;if(_0x1bf953[_0x2749b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2749b6([0x2a])))return!0x0;if(_0x1bf953[_0x2749b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2749b6([0x50,0x4f,0x45])))return!0x0;if(_0x1bf953[_0x2749b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2749b6([0x50,0x50])))return!0x0;if(_0x1bf953[_0x2749b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2749b6([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x2749b6([0x67,0x6c,0x6f,0x62])]&&window[_0x2749b6([0x67,0x6c,0x6f,0x62])][_0x2749b6([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x5d3597=[_0x2749b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2749b6([0x74,0x72,0x69,0x61,0x6c])][_0x2749b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bbcc6[_0x2749b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52ba4c/0x3e8:0x69b0b080;return _0x1bbcc6[_0x2749b6([0x65,0x78,0x70])]<_0x5d3597;}())?_0x2749b6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x106793=_0x1bbcc6[_0x2749b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x106793||0x0==_0x106793[_0x2749b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a8d5a}=new URL(window[_0x2749b6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x106793[_0x2749b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a8d5a))return!0x0;const _0x4ef04e=_0x3a8d5a[_0x2749b6([0x73,0x70,0x6c,0x69,0x74])](_0x2749b6([0x2e]));return _0x106793[_0x2749b6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b8c79=>_0x4b8c79[_0x2749b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2749b6([0x2a])))[_0x2749b6([0x6d,0x61,0x70])](_0x2f7036=>_0x2f7036[_0x2749b6([0x73,0x70,0x6c,0x69,0x74])](_0x2749b6([0x2e])))[_0x2749b6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbc8842=>_0xbc8842[_0x2749b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4ef04e[_0x2749b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2749b6([0x6d,0x61,0x70])](_0x4542ed=>Array(_0x4ef04e[_0x2749b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4542ed[_0x2749b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2749b6([0x66,0x69,0x6c,0x6c])](_0x4542ed[0x0]===_0x2749b6([0x2a])?_0x2749b6([0x2a]):'')[_0x2749b6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4542ed))[_0x2749b6([0x73,0x6f,0x6d,0x65])](_0x1f3509=>_0x4ef04e[_0x2749b6([0x65,0x76,0x65,0x72,0x79])]((_0x13c90e,_0xb21514)=>_0x1f3509[_0xb21514]===_0x13c90e||_0x1f3509[_0xb21514]===_0x2749b6([0x2a])));}())?(_0x1bbcc6[_0x2749b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2749b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2beec0=function(_0x116c87){const _0x508a65=new window[(_0x2749b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16aa88=>setTimeout(_0x16aa88,0x93ecc)),_0x119af5=_0x54687b[_0x2749b6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2749b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x147152=>{let _0x49a8c7=0x0;_0x2fe74a[_0x2749b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2749b6([0x6f,0x6e])](_0x2749b6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d6ce0,_0x4ec324)=>{_0x4ec324[0x0][_0x2749b6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x49a8c7++,0x5e8==_0x49a8c7&&(_0x147152(),_0x2d6ce0[_0x2749b6([0x6f,0x66,0x66])]());});})),_0x2611a1=[_0x508a65,_0x119af5];return window[_0x2749b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2749b6([0x72,0x61,0x63,0x65])](_0x2611a1)[_0x2749b6([0x74,0x68,0x65,0x6e])](()=>_0x116c87);}(_0x2749b6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2beec0&&_0xc4d8e6)return new window[(_0x2749b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7567c0,_0xcf70b)=>{_0x2beec0[_0x2749b6([0x74,0x68,0x65,0x6e])](_0x7567c0,_0xcf70b),_0xc4d8e6[_0x2749b6([0x74,0x68,0x65,0x6e])](_0x5df6eb=>{_0x5df6eb!=_0x2749b6([0x56,0x61,0x6c,0x69,0x64])&&_0x7567c0(_0x5df6eb);},_0xcf70b);});return _0x2beec0||_0xc4d8e6||_0x2749b6([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2749b6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2749b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2749b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2749b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x44524e(_0x2d14f4){return _0x2d14f4[_0x2749b6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2749b6([0x65,0x79]))?JSON[_0x2749b6([0x70,0x61,0x72,0x73,0x65])](_0x2e9fd1(_0x2d14f4)):null;}function _0x2e9fd1(_0x21f9fe){return window[_0x2749b6([0x61,0x74,0x6f,0x62])](_0x21f9fe[_0x2749b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2749b6([0x2b]))[_0x2749b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2749b6([0x2f])));}function _0x20e55a(_0xa21005){let _0x39371d=0x1505;function _0x202ecb(_0x546f08){for(let _0x3d437d=0x0;_0x3d437d<_0x546f08[_0x2749b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d437d++){const _0x170b36=_0x546f08[_0x2749b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d437d);_0x39371d=(_0x39371d<<0x5)+_0x39371d+_0x170b36,_0x39371d&=_0x39371d;}}return function _0x47e0dc(_0x3027f0){Array[_0x2749b6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3027f0)?_0x3027f0[_0x2749b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47e0dc):_0x3027f0&&typeof _0x3027f0==_0x2749b6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2749b6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3027f0)[_0x2749b6([0x73,0x6f,0x72,0x74])]()[_0x2749b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28a36c,_0xc63dab])=>{_0x202ecb(_0x28a36c),_0x47e0dc(_0xc63dab);}):_0x202ecb(window[_0x2749b6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3027f0));}(_0xa21005),_0x39371d>>>0x0;}function _0x212d73(_0x185188){return _0x185188[_0x2749b6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2749b6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2749b6([0x30]));}function _0x4415e2(_0x5a507e){return _0x5a507e[_0x2749b6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2749b6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2749b6([0x6a,0x6f,0x69,0x6e])]('');}function _0x32eb67(){}function _0x2749b6(_0x3ae0a6){return _0x3ae0a6['map'](_0x310927=>String['fromCharCode'](_0x310927))['join']('');}!function(_0x27d939){const _0x24455e=(function(){const _0x118f7c=window[_0x2749b6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2749b6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2749b6([0x6e,0x6f,0x77])]())[_0x2749b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2749b6([0x2e]),'');let _0x127657=_0x2749b6([0x73]);for(let _0x14f381=0x0;_0x14f381<_0x118f7c[_0x2749b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14f381+=0x2){let _0x243e65=window[_0x2749b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x118f7c[_0x2749b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14f381,_0x14f381+0x2));_0x243e65>=_0x98c8cf[_0x2749b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x243e65-=_0x98c8cf[_0x2749b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x127657+=_0x98c8cf[_0x243e65];}return _0x127657;}());_0x2fe74a[_0x24455e]=_0x2749b6([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])+_0x27d939,_0x27d939!=_0x2749b6([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x54687b,_0x2fe74a[_0x2749b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2749b6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x32eb67,_0x2fe74a[_0x2749b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2749b6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x32eb67,_0x2fe74a[_0x2749b6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2749b6([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x31086b);}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'],[_0x5d2f46=>Number(_0x5d2f46)>=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(_0x2a9dcd){return CSS_PROPERTIES_TO_PROPAGATE['includes'](_0x2a9dcd);}function isPropertyToBePropagatedAsSpan(_0x58425b){return CSS_PROPERTIES_TO_BE_SPANS['includes'](_0x58425b);}function isPropertyToBePropagatedAsHTMLElement(_0x9bd219){return _0x9bd219 in CSS_PROPERTIES_TO_BE_HTML_ELEMENTS;}function getStylePropertyNamesToPropagate(_0x2d88f6){return Array['from'](_0x2d88f6['getStyleNames']())['filter'](isPropertyToBePropagated);}function propagateStyleProperties(_0x4f546c,_0x32b6c3,_0x4ee46b){const {spanStyles:_0x5370e7,stylesToBeHtmlElements:_0x29136c}=getStylesToPropagate(_0x4f546c,_0x4ee46b);propagateStylesAsHTMLElements(_0x4f546c,_0x32b6c3,_0x29136c),propagateStylesAsSpan(_0x4f546c,_0x32b6c3,_0x5370e7);}function propagateStylesAsHTMLElements(_0x33a6a3,_0x165c92,_0x472a94){for(const _0x1cd208 in _0x472a94){_0x472a94[_0x1cd208]['forEach'](([,_0x3795ec])=>{const _0x148d33=_0x165c92['createElement'](_0x3795ec,[],_0x33a6a3['getChildren']());_0x165c92['insertChild'](0x0,_0x148d33,_0x33a6a3);}),_0x165c92['removeStyle'](_0x1cd208,_0x33a6a3);}}function propagateStylesAsSpan(_0x1adae0,_0x502167,_0xdea4a2){if(!Object['keys'](_0xdea4a2)['length'])return;const _0x1f274f=_0x502167['createElement']('span',[],_0x1adae0['getChildren']());_0x502167['setStyle'](_0xdea4a2,_0x1f274f),_0x502167['insertChild'](0x0,_0x1f274f,_0x1adae0),_0x502167['removeStyle'](Object['keys'](_0xdea4a2),_0x1adae0);}function getStylesToPropagate(_0x42d5d5,_0xab5620){const _0x10a515={},_0x24ad93={};return _0xab5620['forEach'](_0x59695a=>{const _0x13b197=_0x42d5d5['getStyle'](_0x59695a);if(_0x13b197){if(isPropertyToBePropagatedAsSpan(_0x59695a))_0x10a515[_0x59695a]=_0x13b197;else{if(isPropertyToBePropagatedAsHTMLElement(_0x59695a)){const _0x275489=_0x13b197['split']('\x20');CSS_PROPERTIES_TO_BE_HTML_ELEMENTS[_0x59695a]['forEach'](([_0x2bf1f6,_0x1bc58c])=>{for(const _0x4013a0 of _0x275489){('function'==typeof _0x2bf1f6&&_0x2bf1f6(_0x4013a0)||_0x2bf1f6===_0x4013a0)&&(_0x24ad93[_0x59695a]=[..._0x24ad93[_0x59695a]||[],[_0x2bf1f6,_0x1bc58c]]);}});}}}}),{'spanStyles':_0x10a515,'stylesToBeHtmlElements':_0x24ad93};}class MSOfficeInlineStylePropagator extends PasteFromOfficeMSWordNormalizer{['execute'](_0x1306e3){const {body:_0x5f1743}=_0x1306e3['_parsedData'],_0x508fe5=new ViewUpcastWriter(_0x5f1743['document']),_0x12d23d=_0x508fe5['createRangeIn'](_0x5f1743),_0x1673d1=new ViewDocument(_0x508fe5['document']['stylesProcessor']),_0x39e9c3=[...new ViewDomConverter(_0x1673d1)['blockElements'],'font'],_0x1a9cc7=_0x12d23d['getItems']();for(const _0x14a91c of _0x1a9cc7)_0x14a91c['is']('element')&&_0x39e9c3['includes'](_0x14a91c['name'])&&propagateStyleProperties(_0x14a91c,_0x508fe5,getStylePropertyNamesToPropagate(_0x14a91c));_0x1306e3['content']=_0x5f1743;}['isActive'](_0x39f8d8){return super['isActive'](_0x39f8d8)||isMSExcelContent(_0x39f8d8);}}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 _0xcfece8=this['editor'],_0x5b873e=_0xcfece8['plugins']['get']('ClipboardPipeline'),_0x2f0aa9=_0xcfece8['editing']['view']['document'],_0xe360e=new MSOfficeInlineStylePropagator(_0x2f0aa9);_0x5b873e['on']('inputTransformation',(_0x2ad10d,_0x274c28)=>{const _0x3e7ad9=_0x274c28['dataTransfer']['getData']('text/html');_0xe360e['isActive'](_0x3e7ad9)&&(_0x274c28['_parsedData']||(_0x274c28['_parsedData']=parsePasteOfficeHtml(_0x3e7ad9,_0x2f0aa9['stylesProcessor'])),_0xe360e['execute'](_0x274c28));},{'priority':priorities['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28cb3e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x46b434;for(const _0x308c2e in _0x28cb3e){const _0x17690d=_0x308c2e,_0x37f287=_0x28cb3e[_0x17690d];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x37f287||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x37f287||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x37f287||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x37f287||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x37f287||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x37f287||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x37f287){delete _0x28cb3e[_0x17690d],_0x46b434=_0x37f287,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x46b434&&_0x28cb3e['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x46b434&&_0x28cb3e['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x46b434&&_0x28cb3e['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x46b434&&_0x28cb3e['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x46b434&&_0x28cb3e['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x46b434&&_0x28cb3e['_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(_0x4b740e,_0x979366){var _0xc67bfa=new Array(arguments['length']-0x1),_0x76d6fa=0x0,_0x2e63a7=0x2,_0x1fd05b=!0x0;for(;_0x2e63a7<arguments['length'];)_0xc67bfa[_0x76d6fa++]=arguments[_0x2e63a7++];return new Promise(function(_0x585f87,_0x4fb4de){_0xc67bfa[_0x76d6fa]=function(_0xceba4a){if(_0x1fd05b){if(_0x1fd05b=!0x1,_0xceba4a)_0x4fb4de(_0xceba4a);else{for(var _0x5b6d3c=new Array(arguments['length']-0x1),_0x3769c4=0x0;_0x3769c4<_0x5b6d3c['length'];)_0x5b6d3c[_0x3769c4++]=arguments[_0x3769c4];_0x585f87['apply'](null,_0x5b6d3c);}}};try{_0x4b740e['apply'](_0x979366||null,_0xc67bfa);}catch(_0x40ee25){_0x1fd05b&&(_0x1fd05b=!0x1,_0x4fb4de(_0x40ee25));}});},aspromise;}var base64={},hasRequiredBase64,eventemitter,hasRequiredEventemitter,float,hasRequiredFloat,inquire_1,hasRequiredInquire;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=0x1,function(_0x5c6be0){var _0x11f001=_0x5c6be0;_0x11f001['length']=function(_0x3c7be6){var _0x45ab90=_0x3c7be6['length'];if(!_0x45ab90)return 0x0;for(var _0x36b2e1=0x0;--_0x45ab90%0x4>0x1&&'='===_0x3c7be6['charAt'](_0x45ab90);)++_0x36b2e1;return Math['ceil'](0x3*_0x3c7be6['length'])/0x4-_0x36b2e1;};for(var _0x522a98=new Array(0x40),_0x11e806=new Array(0x7b),_0x1e2c75=0x0;_0x1e2c75<0x40;)_0x11e806[_0x522a98[_0x1e2c75]=_0x1e2c75<0x1a?_0x1e2c75+0x41:_0x1e2c75<0x34?_0x1e2c75+0x47:_0x1e2c75<0x3e?_0x1e2c75-0x4:_0x1e2c75-0x3b|0x2b]=_0x1e2c75++;_0x11f001['encode']=function(_0x90c284,_0x591464,_0x41e226){for(var t,_0xd14d1f=null,_0x44b77a=[],_0x52956b=0x0,_0xe7b20b=0x0;_0x591464<_0x41e226;){var _0x3fe81f=_0x90c284[_0x591464++];switch(_0xe7b20b){case 0x0:_0x44b77a[_0x52956b++]=_0x522a98[_0x3fe81f>>0x2],t=(0x3&_0x3fe81f)<<0x4,_0xe7b20b=0x1;break;case 0x1:_0x44b77a[_0x52956b++]=_0x522a98[t|_0x3fe81f>>0x4],t=(0xf&_0x3fe81f)<<0x2,_0xe7b20b=0x2;break;case 0x2:_0x44b77a[_0x52956b++]=_0x522a98[t|_0x3fe81f>>0x6],_0x44b77a[_0x52956b++]=_0x522a98[0x3f&_0x3fe81f],_0xe7b20b=0x0;}_0x52956b>0x1fff&&((_0xd14d1f||(_0xd14d1f=[]))['push'](String['fromCharCode']['apply'](String,_0x44b77a)),_0x52956b=0x0);}return _0xe7b20b&&(_0x44b77a[_0x52956b++]=_0x522a98[t],_0x44b77a[_0x52956b++]=0x3d,0x1===_0xe7b20b&&(_0x44b77a[_0x52956b++]=0x3d)),_0xd14d1f?(_0x52956b&&_0xd14d1f['push'](String['fromCharCode']['apply'](String,_0x44b77a['slice'](0x0,_0x52956b))),_0xd14d1f['join']('')):String['fromCharCode']['apply'](String,_0x44b77a['slice'](0x0,_0x52956b));};var _0x272e33='invalid\x20encoding';_0x11f001['decode']=function(_0x116a95,_0x221bff,_0x4699dc){for(var t,_0x48b85d=_0x4699dc,_0x373df4=0x0,_0x38a69d=0x0;_0x38a69d<_0x116a95['length'];){var _0x9c55ef=_0x116a95['charCodeAt'](_0x38a69d++);if(0x3d===_0x9c55ef&&_0x373df4>0x1)break;if(void 0x0===(_0x9c55ef=_0x11e806[_0x9c55ef]))throw Error(_0x272e33);switch(_0x373df4){case 0x0:t=_0x9c55ef,_0x373df4=0x1;break;case 0x1:_0x221bff[_0x4699dc++]=t<<0x2|(0x30&_0x9c55ef)>>0x4,t=_0x9c55ef,_0x373df4=0x2;break;case 0x2:_0x221bff[_0x4699dc++]=(0xf&t)<<0x4|(0x3c&_0x9c55ef)>>0x2,t=_0x9c55ef,_0x373df4=0x3;break;case 0x3:_0x221bff[_0x4699dc++]=(0x3&t)<<0x6|_0x9c55ef,_0x373df4=0x0;}}if(0x1===_0x373df4)throw Error(_0x272e33);return _0x4699dc-_0x48b85d;},_0x11f001['test']=function(_0x503173){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/['test'](_0x503173);};}(base64)),base64;}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function _0x3318e6(){this['_listeners']={};}return hasRequiredEventemitter=0x1,eventemitter=_0x3318e6,_0x3318e6['prototype']['on']=function(_0x1c436c,_0x29c9df,_0x7176eb){return(this['_listeners'][_0x1c436c]||(this['_listeners'][_0x1c436c]=[]))['push']({'fn':_0x29c9df,'ctx':_0x7176eb||this}),this;},_0x3318e6['prototype']['off']=function(_0x127611,_0x58f648){if(void 0x0===_0x127611)this['_listeners']={};else{if(void 0x0===_0x58f648)this['_listeners'][_0x127611]=[];else{for(var _0x50dac9=this['_listeners'][_0x127611],_0x40f051=0x0;_0x40f051<_0x50dac9['length'];)_0x50dac9[_0x40f051]['fn']===_0x58f648?_0x50dac9['splice'](_0x40f051,0x1):++_0x40f051;}}return this;},_0x3318e6['prototype']['emit']=function(_0x2841c7){var _0x1acb62=this['_listeners'][_0x2841c7];if(_0x1acb62){for(var _0x3e304c=[],_0xbb3c0f=0x1;_0xbb3c0f<arguments['length'];)_0x3e304c['push'](arguments[_0xbb3c0f++]);for(_0xbb3c0f=0x0;_0xbb3c0f<_0x1acb62['length'];)_0x1acb62[_0xbb3c0f]['fn']['apply'](_0x1acb62[_0xbb3c0f++]['ctx'],_0x3e304c);}return this;},eventemitter;}function requireFloat(){if(hasRequiredFloat)return float;function _0x45c4d7(_0x137a6b){return'undefined'!=typeof Float32Array?(function(){var _0x3b57ea=new Float32Array([-0x0]),_0x4d8813=new Uint8Array(_0x3b57ea['buffer']),_0x330d09=0x80===_0x4d8813[0x3];function _0x49f352(_0x30696f,_0xc3d2b0,_0x1c270){_0x3b57ea[0x0]=_0x30696f,_0xc3d2b0[_0x1c270]=_0x4d8813[0x0],_0xc3d2b0[_0x1c270+0x1]=_0x4d8813[0x1],_0xc3d2b0[_0x1c270+0x2]=_0x4d8813[0x2],_0xc3d2b0[_0x1c270+0x3]=_0x4d8813[0x3];}function _0x6e6333(_0x3b57c6,_0x58d2f9,_0x17ad3b){_0x3b57ea[0x0]=_0x3b57c6,_0x58d2f9[_0x17ad3b]=_0x4d8813[0x3],_0x58d2f9[_0x17ad3b+0x1]=_0x4d8813[0x2],_0x58d2f9[_0x17ad3b+0x2]=_0x4d8813[0x1],_0x58d2f9[_0x17ad3b+0x3]=_0x4d8813[0x0];}function _0x37860b(_0x3f0dc0,_0x2558b2){return _0x4d8813[0x0]=_0x3f0dc0[_0x2558b2],_0x4d8813[0x1]=_0x3f0dc0[_0x2558b2+0x1],_0x4d8813[0x2]=_0x3f0dc0[_0x2558b2+0x2],_0x4d8813[0x3]=_0x3f0dc0[_0x2558b2+0x3],_0x3b57ea[0x0];}function _0x574c02(_0x3fed8f,_0xee9d7b){return _0x4d8813[0x3]=_0x3fed8f[_0xee9d7b],_0x4d8813[0x2]=_0x3fed8f[_0xee9d7b+0x1],_0x4d8813[0x1]=_0x3fed8f[_0xee9d7b+0x2],_0x4d8813[0x0]=_0x3fed8f[_0xee9d7b+0x3],_0x3b57ea[0x0];}_0x137a6b['writeFloatLE']=_0x330d09?_0x49f352:_0x6e6333,_0x137a6b['writeFloatBE']=_0x330d09?_0x6e6333:_0x49f352,_0x137a6b['readFloatLE']=_0x330d09?_0x37860b:_0x574c02,_0x137a6b['readFloatBE']=_0x330d09?_0x574c02:_0x37860b;}()):(function(){function _0x1a67cf(_0x2d88fb,_0x36111f,_0x1fc170,_0x29db81){var _0x28e00f=_0x36111f<0x0?0x1:0x0;if(_0x28e00f&&(_0x36111f=-_0x36111f),0x0===_0x36111f)_0x2d88fb(0x1/_0x36111f>0x0?0x0:0x80000000,_0x1fc170,_0x29db81);else{if(isNaN(_0x36111f))_0x2d88fb(0x7fc00000,_0x1fc170,_0x29db81);else{if(_0x36111f>0xffffff00000000000000000000000000)_0x2d88fb((_0x28e00f<<0x1f|0x7f800000)>>>0x0,_0x1fc170,_0x29db81);else{if(_0x36111f<1.1754943508222875e-38)_0x2d88fb((_0x28e00f<<0x1f|Math['round'](_0x36111f/1.401298464324817e-45))>>>0x0,_0x1fc170,_0x29db81);else{var _0x54c0d5=Math['floor'](Math['log'](_0x36111f)/Math['LN2']);_0x2d88fb((_0x28e00f<<0x1f|_0x54c0d5+0x7f<<0x17|0x7fffff&Math['round'](_0x36111f*Math['pow'](0x2,-_0x54c0d5)*0x800000))>>>0x0,_0x1fc170,_0x29db81);}}}}}function _0xe0c84f(_0x2e0da0,_0x29f284,_0xc35d5a){var _0x52ab70=_0x2e0da0(_0x29f284,_0xc35d5a),_0x400730=0x2*(_0x52ab70>>0x1f)+0x1,_0x4698ef=_0x52ab70>>>0x17&0xff,_0x25b5a9=0x7fffff&_0x52ab70;return 0xff===_0x4698ef?_0x25b5a9?NaN:_0x400730*(0x1/0x0):0x0===_0x4698ef?1.401298464324817e-45*_0x400730*_0x25b5a9:_0x400730*Math['pow'](0x2,_0x4698ef-0x96)*(_0x25b5a9+0x800000);}_0x137a6b['writeFloatLE']=_0x1a67cf['bind'](null,_0x2c5d8b),_0x137a6b['writeFloatBE']=_0x1a67cf['bind'](null,_0x2d5534),_0x137a6b['readFloatLE']=_0xe0c84f['bind'](null,_0x51a4a0),_0x137a6b['readFloatBE']=_0xe0c84f['bind'](null,_0x3709fd);}()),'undefined'!=typeof Float64Array?(function(){var _0x45d01e=new Float64Array([-0x0]),_0x1d87a7=new Uint8Array(_0x45d01e['buffer']),_0x567493=0x80===_0x1d87a7[0x7];function _0x307343(_0x2b2139,_0xd6d22e,_0xb584b6){_0x45d01e[0x0]=_0x2b2139,_0xd6d22e[_0xb584b6]=_0x1d87a7[0x0],_0xd6d22e[_0xb584b6+0x1]=_0x1d87a7[0x1],_0xd6d22e[_0xb584b6+0x2]=_0x1d87a7[0x2],_0xd6d22e[_0xb584b6+0x3]=_0x1d87a7[0x3],_0xd6d22e[_0xb584b6+0x4]=_0x1d87a7[0x4],_0xd6d22e[_0xb584b6+0x5]=_0x1d87a7[0x5],_0xd6d22e[_0xb584b6+0x6]=_0x1d87a7[0x6],_0xd6d22e[_0xb584b6+0x7]=_0x1d87a7[0x7];}function _0x480792(_0x128ed6,_0x5dc3c0,_0xa3ba8e){_0x45d01e[0x0]=_0x128ed6,_0x5dc3c0[_0xa3ba8e]=_0x1d87a7[0x7],_0x5dc3c0[_0xa3ba8e+0x1]=_0x1d87a7[0x6],_0x5dc3c0[_0xa3ba8e+0x2]=_0x1d87a7[0x5],_0x5dc3c0[_0xa3ba8e+0x3]=_0x1d87a7[0x4],_0x5dc3c0[_0xa3ba8e+0x4]=_0x1d87a7[0x3],_0x5dc3c0[_0xa3ba8e+0x5]=_0x1d87a7[0x2],_0x5dc3c0[_0xa3ba8e+0x6]=_0x1d87a7[0x1],_0x5dc3c0[_0xa3ba8e+0x7]=_0x1d87a7[0x0];}function _0x44c3fc(_0x54bb89,_0x1a5ed5){return _0x1d87a7[0x0]=_0x54bb89[_0x1a5ed5],_0x1d87a7[0x1]=_0x54bb89[_0x1a5ed5+0x1],_0x1d87a7[0x2]=_0x54bb89[_0x1a5ed5+0x2],_0x1d87a7[0x3]=_0x54bb89[_0x1a5ed5+0x3],_0x1d87a7[0x4]=_0x54bb89[_0x1a5ed5+0x4],_0x1d87a7[0x5]=_0x54bb89[_0x1a5ed5+0x5],_0x1d87a7[0x6]=_0x54bb89[_0x1a5ed5+0x6],_0x1d87a7[0x7]=_0x54bb89[_0x1a5ed5+0x7],_0x45d01e[0x0];}function _0x4a97ad(_0x467d08,_0x3291b3){return _0x1d87a7[0x7]=_0x467d08[_0x3291b3],_0x1d87a7[0x6]=_0x467d08[_0x3291b3+0x1],_0x1d87a7[0x5]=_0x467d08[_0x3291b3+0x2],_0x1d87a7[0x4]=_0x467d08[_0x3291b3+0x3],_0x1d87a7[0x3]=_0x467d08[_0x3291b3+0x4],_0x1d87a7[0x2]=_0x467d08[_0x3291b3+0x5],_0x1d87a7[0x1]=_0x467d08[_0x3291b3+0x6],_0x1d87a7[0x0]=_0x467d08[_0x3291b3+0x7],_0x45d01e[0x0];}_0x137a6b['writeDoubleLE']=_0x567493?_0x307343:_0x480792,_0x137a6b['writeDoubleBE']=_0x567493?_0x480792:_0x307343,_0x137a6b['readDoubleLE']=_0x567493?_0x44c3fc:_0x4a97ad,_0x137a6b['readDoubleBE']=_0x567493?_0x4a97ad:_0x44c3fc;}()):(function(){function _0x3993ce(_0x267491,_0x1afeec,_0x57f2dd,_0x4f117d,_0x1e0553,_0x3c8c8b){var _0xa5715d=_0x4f117d<0x0?0x1:0x0;if(_0xa5715d&&(_0x4f117d=-_0x4f117d),0x0===_0x4f117d)_0x267491(0x0,_0x1e0553,_0x3c8c8b+_0x1afeec),_0x267491(0x1/_0x4f117d>0x0?0x0:0x80000000,_0x1e0553,_0x3c8c8b+_0x57f2dd);else{if(isNaN(_0x4f117d))_0x267491(0x0,_0x1e0553,_0x3c8c8b+_0x1afeec),_0x267491(0x7ff80000,_0x1e0553,_0x3c8c8b+_0x57f2dd);else{if(_0x4f117d>0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)_0x267491(0x0,_0x1e0553,_0x3c8c8b+_0x1afeec),_0x267491((_0xa5715d<<0x1f|0x7ff00000)>>>0x0,_0x1e0553,_0x3c8c8b+_0x57f2dd);else{var _0x51a4a1;if(_0x4f117d<2.2250738585072014e-308)_0x267491((_0x51a4a1=_0x4f117d/5e-324)>>>0x0,_0x1e0553,_0x3c8c8b+_0x1afeec),_0x267491((_0xa5715d<<0x1f|_0x51a4a1/0x100000000)>>>0x0,_0x1e0553,_0x3c8c8b+_0x57f2dd);else{var _0xd748d2=Math['floor'](Math['log'](_0x4f117d)/Math['LN2']);0x400===_0xd748d2&&(_0xd748d2=0x3ff),_0x267491(0x10000000000000*(_0x51a4a1=_0x4f117d*Math['pow'](0x2,-_0xd748d2))>>>0x0,_0x1e0553,_0x3c8c8b+_0x1afeec),_0x267491((_0xa5715d<<0x1f|_0xd748d2+0x3ff<<0x14|0x100000*_0x51a4a1&0xfffff)>>>0x0,_0x1e0553,_0x3c8c8b+_0x57f2dd);}}}}}function _0x3297e7(_0x1ee924,_0x415e20,_0xccd40d,_0x1614aa,_0x4b293f){var _0x4b40a6=_0x1ee924(_0x1614aa,_0x4b293f+_0x415e20),_0x573f04=_0x1ee924(_0x1614aa,_0x4b293f+_0xccd40d),_0xecaca6=0x2*(_0x573f04>>0x1f)+0x1,_0x557f7f=_0x573f04>>>0x14&0x7ff,_0x3785d6=0x100000000*(0xfffff&_0x573f04)+_0x4b40a6;return 0x7ff===_0x557f7f?_0x3785d6?NaN:_0xecaca6*(0x1/0x0):0x0===_0x557f7f?5e-324*_0xecaca6*_0x3785d6:_0xecaca6*Math['pow'](0x2,_0x557f7f-0x433)*(_0x3785d6+0x10000000000000);}_0x137a6b['writeDoubleLE']=_0x3993ce['bind'](null,_0x2c5d8b,0x0,0x4),_0x137a6b['writeDoubleBE']=_0x3993ce['bind'](null,_0x2d5534,0x4,0x0),_0x137a6b['readDoubleLE']=_0x3297e7['bind'](null,_0x51a4a0,0x0,0x4),_0x137a6b['readDoubleBE']=_0x3297e7['bind'](null,_0x3709fd,0x4,0x0);}()),_0x137a6b;}function _0x2c5d8b(_0x53e5f8,_0x4ccf4d,_0x3d421b){_0x4ccf4d[_0x3d421b]=0xff&_0x53e5f8,_0x4ccf4d[_0x3d421b+0x1]=_0x53e5f8>>>0x8&0xff,_0x4ccf4d[_0x3d421b+0x2]=_0x53e5f8>>>0x10&0xff,_0x4ccf4d[_0x3d421b+0x3]=_0x53e5f8>>>0x18;}function _0x2d5534(_0x448e48,_0x24b176,_0x49ac69){_0x24b176[_0x49ac69]=_0x448e48>>>0x18,_0x24b176[_0x49ac69+0x1]=_0x448e48>>>0x10&0xff,_0x24b176[_0x49ac69+0x2]=_0x448e48>>>0x8&0xff,_0x24b176[_0x49ac69+0x3]=0xff&_0x448e48;}function _0x51a4a0(_0xf404e8,_0x22312a){return(_0xf404e8[_0x22312a]|_0xf404e8[_0x22312a+0x1]<<0x8|_0xf404e8[_0x22312a+0x2]<<0x10|_0xf404e8[_0x22312a+0x3]<<0x18)>>>0x0;}function _0x3709fd(_0x2fb685,_0x31c415){return(_0x2fb685[_0x31c415]<<0x18|_0x2fb685[_0x31c415+0x1]<<0x10|_0x2fb685[_0x31c415+0x2]<<0x8|_0x2fb685[_0x31c415+0x3])>>>0x0;}return hasRequiredFloat=0x1,float=_0x45c4d7(_0x45c4d7);}function requireInquire(){if(hasRequiredInquire)return inquire_1;function _0x221a1f(_0x19b19f){try{var _0x1a7d3c=eval('quire'['replace'](/^/,'re'))(_0x19b19f);if(_0x1a7d3c&&(_0x1a7d3c['length']||Object['keys'](_0x1a7d3c)['length']))return _0x1a7d3c;}catch(_0x8c0aaa){}return null;}return hasRequiredInquire=0x1,inquire_1=_0x221a1f,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(_0x1ea105){var _0x3e45ae=_0x1ea105;_0x3e45ae['length']=function(_0x65f51a){for(var _0x47ca92=0x0,_0xe819c8=0x0,_0x2f80f9=0x0;_0x2f80f9<_0x65f51a['length'];++_0x2f80f9)(_0xe819c8=_0x65f51a['charCodeAt'](_0x2f80f9))<0x80?_0x47ca92+=0x1:_0xe819c8<0x800?_0x47ca92+=0x2:0xd800==(0xfc00&_0xe819c8)&&0xdc00==(0xfc00&_0x65f51a['charCodeAt'](_0x2f80f9+0x1))?(++_0x2f80f9,_0x47ca92+=0x4):_0x47ca92+=0x3;return _0x47ca92;},_0x3e45ae['read']=function(_0x5e0a0c,_0x3d9634,_0x4df2e5){if(_0x4df2e5-_0x3d9634<0x1)return'';for(var t,_0x1e6938=null,_0x3b127a=[],_0x571880=0x0;_0x3d9634<_0x4df2e5;)(t=_0x5e0a0c[_0x3d9634++])<0x80?_0x3b127a[_0x571880++]=t:t>0xbf&&t<0xe0?_0x3b127a[_0x571880++]=(0x1f&t)<<0x6|0x3f&_0x5e0a0c[_0x3d9634++]:t>0xef&&t<0x16d?(t=((0x7&t)<<0x12|(0x3f&_0x5e0a0c[_0x3d9634++])<<0xc|(0x3f&_0x5e0a0c[_0x3d9634++])<<0x6|0x3f&_0x5e0a0c[_0x3d9634++])-0x10000,_0x3b127a[_0x571880++]=0xd800+(t>>0xa),_0x3b127a[_0x571880++]=0xdc00+(0x3ff&t)):_0x3b127a[_0x571880++]=(0xf&t)<<0xc|(0x3f&_0x5e0a0c[_0x3d9634++])<<0x6|0x3f&_0x5e0a0c[_0x3d9634++],_0x571880>0x1fff&&((_0x1e6938||(_0x1e6938=[]))['push'](String['fromCharCode']['apply'](String,_0x3b127a)),_0x571880=0x0);return _0x1e6938?(_0x571880&&_0x1e6938['push'](String['fromCharCode']['apply'](String,_0x3b127a['slice'](0x0,_0x571880))),_0x1e6938['join']('')):String['fromCharCode']['apply'](String,_0x3b127a['slice'](0x0,_0x571880));},_0x3e45ae['write']=function(_0x3c85c2,_0x3df8f2,_0x1ecffc){for(var _0x4e9b2a,_0x1c22b9,_0xc4f009=_0x1ecffc,_0x2ad7e7=0x0;_0x2ad7e7<_0x3c85c2['length'];++_0x2ad7e7)(_0x4e9b2a=_0x3c85c2['charCodeAt'](_0x2ad7e7))<0x80?_0x3df8f2[_0x1ecffc++]=_0x4e9b2a:_0x4e9b2a<0x800?(_0x3df8f2[_0x1ecffc++]=_0x4e9b2a>>0x6|0xc0,_0x3df8f2[_0x1ecffc++]=0x3f&_0x4e9b2a|0x80):0xd800==(0xfc00&_0x4e9b2a)&&0xdc00==(0xfc00&(_0x1c22b9=_0x3c85c2['charCodeAt'](_0x2ad7e7+0x1)))?(_0x4e9b2a=0x10000+((0x3ff&_0x4e9b2a)<<0xa)+(0x3ff&_0x1c22b9),++_0x2ad7e7,_0x3df8f2[_0x1ecffc++]=_0x4e9b2a>>0x12|0xf0,_0x3df8f2[_0x1ecffc++]=_0x4e9b2a>>0xc&0x3f|0x80,_0x3df8f2[_0x1ecffc++]=_0x4e9b2a>>0x6&0x3f|0x80,_0x3df8f2[_0x1ecffc++]=0x3f&_0x4e9b2a|0x80):(_0x3df8f2[_0x1ecffc++]=_0x4e9b2a>>0xc|0xe0,_0x3df8f2[_0x1ecffc++]=_0x4e9b2a>>0x6&0x3f|0x80,_0x3df8f2[_0x1ecffc++]=0x3f&_0x4e9b2a|0x80);return _0x1ecffc-_0xc4f009;};}(utf8)),utf8;}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=0x1,pool_1=function(_0x51f09a,_0x4ccdb1,_0x23dbbb){var _0x57a08d=_0x23dbbb||0x2000,_0x503418=_0x57a08d>>>0x1,_0x7122b3=null,_0x5c9752=_0x57a08d;return function(_0x4f9b45){if(_0x4f9b45<0x1||_0x4f9b45>_0x503418)return _0x51f09a(_0x4f9b45);_0x5c9752+_0x4f9b45>_0x57a08d&&(_0x7122b3=_0x51f09a(_0x57a08d),_0x5c9752=0x0);var _0x21be0b=_0x4ccdb1['call'](_0x7122b3,_0x5c9752,_0x5c9752+=_0x4f9b45);return 0x7&_0x5c9752&&(_0x5c9752=0x1+(0x7|_0x5c9752)),_0x21be0b;};},pool_1;}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=0x1,longbits=_0x30428c;var _0x5201a3=requireMinimal$1();function _0x30428c(_0x59ffc1,_0x4ce5d7){this['lo']=_0x59ffc1>>>0x0,this['hi']=_0x4ce5d7>>>0x0;}var _0x17793a=_0x30428c['zero']=new _0x30428c(0x0,0x0);_0x17793a['toNumber']=function(){return 0x0;},_0x17793a['zzEncode']=_0x17793a['zzDecode']=function(){return this;},_0x17793a['length']=function(){return 0x1;};var _0x358560=_0x30428c['zeroHash']='\x00\x00\x00\x00\x00\x00\x00\x00';_0x30428c['fromNumber']=function(_0x3dc09c){if(0x0===_0x3dc09c)return _0x17793a;var _0x55d1ca=_0x3dc09c<0x0;_0x55d1ca&&(_0x3dc09c=-_0x3dc09c);var _0x1820b6=_0x3dc09c>>>0x0,_0x132d76=(_0x3dc09c-_0x1820b6)/0x100000000>>>0x0;return _0x55d1ca&&(_0x132d76=~_0x132d76>>>0x0,_0x1820b6=~_0x1820b6>>>0x0,++_0x1820b6>0xffffffff&&(_0x1820b6=0x0,++_0x132d76>0xffffffff&&(_0x132d76=0x0))),new _0x30428c(_0x1820b6,_0x132d76);},_0x30428c['from']=function(_0x199647){if('number'==typeof _0x199647)return _0x30428c['fromNumber'](_0x199647);if(_0x5201a3['isString'](_0x199647)){if(!_0x5201a3['Long'])return _0x30428c['fromNumber'](parseInt(_0x199647,0xa));_0x199647=_0x5201a3['Long']['fromString'](_0x199647);}return _0x199647['low']||_0x199647['high']?new _0x30428c(_0x199647['low']>>>0x0,_0x199647['high']>>>0x0):_0x17793a;},_0x30428c['prototype']['toNumber']=function(_0x330212){if(!_0x330212&&this['hi']>>>0x1f){var _0x1790fc=0x1+~this['lo']>>>0x0,_0x1c1976=~this['hi']>>>0x0;return _0x1790fc||(_0x1c1976=_0x1c1976+0x1>>>0x0),-(_0x1790fc+0x100000000*_0x1c1976);}return this['lo']+0x100000000*this['hi'];},_0x30428c['prototype']['toLong']=function(_0x4a40b9){return _0x5201a3['Long']?new _0x5201a3['Long'](0x0|this['lo'],0x0|this['hi'],Boolean(_0x4a40b9)):{'low':0x0|this['lo'],'high':0x0|this['hi'],'unsigned':Boolean(_0x4a40b9)};};var _0x1ef04c=String['prototype']['charCodeAt'];return _0x30428c['fromHash']=function(_0x5d7733){return _0x5d7733===_0x358560?_0x17793a:new _0x30428c((_0x1ef04c['call'](_0x5d7733,0x0)|_0x1ef04c['call'](_0x5d7733,0x1)<<0x8|_0x1ef04c['call'](_0x5d7733,0x2)<<0x10|_0x1ef04c['call'](_0x5d7733,0x3)<<0x18)>>>0x0,(_0x1ef04c['call'](_0x5d7733,0x4)|_0x1ef04c['call'](_0x5d7733,0x5)<<0x8|_0x1ef04c['call'](_0x5d7733,0x6)<<0x10|_0x1ef04c['call'](_0x5d7733,0x7)<<0x18)>>>0x0);},_0x30428c['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);},_0x30428c['prototype']['zzEncode']=function(){var _0x52e4e6=this['hi']>>0x1f;return this['hi']=((this['hi']<<0x1|this['lo']>>>0x1f)^_0x52e4e6)>>>0x0,this['lo']=(this['lo']<<0x1^_0x52e4e6)>>>0x0,this;},_0x30428c['prototype']['zzDecode']=function(){var _0x101fa7=-(0x1&this['lo']);return this['lo']=((this['lo']>>>0x1|this['hi']<<0x1f)^_0x101fa7)>>>0x0,this['hi']=(this['hi']>>>0x1^_0x101fa7)>>>0x0,this;},_0x30428c['prototype']['length']=function(){var _0x1d288b=this['lo'],_0x765ca9=(this['lo']>>>0x1c|this['hi']<<0x4)>>>0x0,_0x71f2a0=this['hi']>>>0x18;return 0x0===_0x71f2a0?0x0===_0x765ca9?_0x1d288b<0x4000?_0x1d288b<0x80?0x1:0x2:_0x1d288b<0x200000?0x3:0x4:_0x765ca9<0x4000?_0x765ca9<0x80?0x5:0x6:_0x765ca9<0x200000?0x7:0x8:_0x71f2a0<0x80?0x9:0xa;},longbits;}function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=0x1,(function(){var _0x5b5389=minimal$1;function _0x409c45(_0x5d81c4,_0x1ae2c4,_0x31ce42){for(var _0x38b17d=Object['keys'](_0x1ae2c4),_0x50a8e7=0x0;_0x50a8e7<_0x38b17d['length'];++_0x50a8e7)void 0x0!==_0x5d81c4[_0x38b17d[_0x50a8e7]]&&_0x31ce42||(_0x5d81c4[_0x38b17d[_0x50a8e7]]=_0x1ae2c4[_0x38b17d[_0x50a8e7]]);return _0x5d81c4;}function _0x135bf0(_0x3b6363){function _0x130e9f(_0x5b73f6,_0x36258c){if(!(this instanceof _0x130e9f))return new _0x130e9f(_0x5b73f6,_0x36258c);Object['defineProperty'](this,'message',{'get':function(){return _0x5b73f6;}}),Error['captureStackTrace']?Error['captureStackTrace'](this,_0x130e9f):Object['defineProperty'](this,'stack',{'value':new Error()['stack']||''}),_0x36258c&&_0x409c45(this,_0x36258c);}return _0x130e9f['prototype']=Object['create'](Error['prototype'],{'constructor':{'value':_0x130e9f,'writable':!0x0,'enumerable':!0x1,'configurable':!0x0},'name':{'get':function(){return _0x3b6363;},'set':void 0x0,'enumerable':!0x1,'configurable':!0x0},'toString':{'value':function(){return this['name']+':\x20'+this['message'];},'writable':!0x0,'enumerable':!0x1,'configurable':!0x0}}),_0x130e9f;}_0x5b5389['asPromise']=requireAspromise(),_0x5b5389['base64']=requireBase64(),_0x5b5389['EventEmitter']=requireEventemitter(),_0x5b5389['float']=requireFloat(),_0x5b5389['inquire']=requireInquire(),_0x5b5389['utf8']=requireUtf8(),_0x5b5389['pool']=requirePool(),_0x5b5389['LongBits']=requireLongbits(),_0x5b5389['isNode']=Boolean(void 0x0!==commonjsGlobal&&commonjsGlobal&&commonjsGlobal['process']&&commonjsGlobal['process']['versions']&&commonjsGlobal['process']['versions']['node']),_0x5b5389['global']=_0x5b5389['isNode']&&commonjsGlobal||'undefined'!=typeof window&&window||'undefined'!=typeof self&&self||minimal$1,_0x5b5389['emptyArray']=Object['freeze']?Object['freeze']([]):[],_0x5b5389['emptyObject']=Object['freeze']?Object['freeze']({}):{},_0x5b5389['isInteger']=Number['isInteger']||function(_0x23169f){return'number'==typeof _0x23169f&&isFinite(_0x23169f)&&Math['floor'](_0x23169f)===_0x23169f;},_0x5b5389['isString']=function(_0x46e03a){return'string'==typeof _0x46e03a||_0x46e03a instanceof String;},_0x5b5389['isObject']=function(_0x2c354e){return _0x2c354e&&'object'==typeof _0x2c354e;},_0x5b5389['isset']=_0x5b5389['isSet']=function(_0x315bd8,_0x48fda5){var _0x34b01d=_0x315bd8[_0x48fda5];return!(null==_0x34b01d||!_0x315bd8['hasOwnProperty'](_0x48fda5))&&('object'!=typeof _0x34b01d||(Array['isArray'](_0x34b01d)?_0x34b01d['length']:Object['keys'](_0x34b01d)['length'])>0x0);},_0x5b5389['Buffer']=(function(){try{var _0x342c11=_0x5b5389['inquire']('buffer')['Buffer'];return _0x342c11['prototype']['utf8Write']?_0x342c11:null;}catch(_0x4e58f3){return null;}}()),_0x5b5389['_Buffer_from']=null,_0x5b5389['_Buffer_allocUnsafe']=null,_0x5b5389['newBuffer']=function(_0x13a167){return'number'==typeof _0x13a167?_0x5b5389['Buffer']?_0x5b5389['_Buffer_allocUnsafe'](_0x13a167):new _0x5b5389['Array'](_0x13a167):_0x5b5389['Buffer']?_0x5b5389['_Buffer_from'](_0x13a167):'undefined'==typeof Uint8Array?_0x13a167:new Uint8Array(_0x13a167);},_0x5b5389['Array']='undefined'!=typeof Uint8Array?Uint8Array:Array,_0x5b5389['Long']=_0x5b5389['global']['dcodeIO']&&_0x5b5389['global']['dcodeIO']['Long']||_0x5b5389['global']['Long']||_0x5b5389['inquire']('long'),_0x5b5389['key2Re']=/^true|false|0|1$/,_0x5b5389['key32Re']=/^-?(?:0|[1-9][0-9]*)$/,_0x5b5389['key64Re']=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,_0x5b5389['longToHash']=function(_0x1f871b){return _0x1f871b?_0x5b5389['LongBits']['from'](_0x1f871b)['toHash']():_0x5b5389['LongBits']['zeroHash'];},_0x5b5389['longFromHash']=function(_0x3a483b,_0x982547){var _0x5c06a0=_0x5b5389['LongBits']['fromHash'](_0x3a483b);return _0x5b5389['Long']?_0x5b5389['Long']['fromBits'](_0x5c06a0['lo'],_0x5c06a0['hi'],_0x982547):_0x5c06a0['toNumber'](Boolean(_0x982547));},_0x5b5389['merge']=_0x409c45,_0x5b5389['lcFirst']=function(_0x331c9c){return _0x331c9c['charAt'](0x0)['toLowerCase']()+_0x331c9c['substring'](0x1);},_0x5b5389['newError']=_0x135bf0,_0x5b5389['ProtocolError']=_0x135bf0('ProtocolError'),_0x5b5389['oneOfGetter']=function(_0x3103bd){for(var _0x2b7f8e={},_0x22721f=0x0;_0x22721f<_0x3103bd['length'];++_0x22721f)_0x2b7f8e[_0x3103bd[_0x22721f]]=0x1;return function(){for(var _0x313377=Object['keys'](this),_0x3fc151=_0x313377['length']-0x1;_0x3fc151>-0x1;--_0x3fc151)if(0x1===_0x2b7f8e[_0x313377[_0x3fc151]]&&void 0x0!==this[_0x313377[_0x3fc151]]&&null!==this[_0x313377[_0x3fc151]])return _0x313377[_0x3fc151];};},_0x5b5389['oneOfSetter']=function(_0x1f51be){return function(_0x117bf8){for(var _0x59f1f1=0x0;_0x59f1f1<_0x1f51be['length'];++_0x59f1f1)_0x1f51be[_0x59f1f1]!==_0x117bf8&&delete this[_0x1f51be[_0x59f1f1]];};},_0x5b5389['toJSONOptions']={'longs':String,'enums':String,'bytes':String,'json':!0x0},_0x5b5389['_configure']=function(){var _0xd3ec69=_0x5b5389['Buffer'];_0xd3ec69?(_0x5b5389['_Buffer_from']=_0xd3ec69['from']!==Uint8Array['from']&&_0xd3ec69['from']||function(_0xe04b3c,_0x195a4b){return new _0xd3ec69(_0xe04b3c,_0x195a4b);},_0x5b5389['_Buffer_allocUnsafe']=_0xd3ec69['allocUnsafe']||function(_0x1bbb6e){return new _0xd3ec69(_0x1bbb6e);}):_0x5b5389['_Buffer_from']=_0x5b5389['_Buffer_allocUnsafe']=null;};}())),minimal$1;}function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=0x1,writer=_0x50d0bc;var _0x16c579,_0x84002=requireMinimal$1(),_0x1b6ebc=_0x84002['LongBits'],_0x9b8ae9=_0x84002['base64'],_0x27685f=_0x84002['utf8'];function _0x2660fd(_0xed2e4f,_0x174a10,_0x234f5c){this['fn']=_0xed2e4f,this['len']=_0x174a10,this['next']=void 0x0,this['val']=_0x234f5c;}function _0x290659(){}function _0x50adae(_0x571ba7){this['head']=_0x571ba7['head'],this['tail']=_0x571ba7['tail'],this['len']=_0x571ba7['len'],this['next']=_0x571ba7['states'];}function _0x50d0bc(){this['len']=0x0,this['head']=new _0x2660fd(_0x290659,0x0,0x0),this['tail']=this['head'],this['states']=null;}var _0x4e7b2f=function(){return _0x84002['Buffer']?function(){return(_0x50d0bc['create']=function(){return new _0x16c579();})();}:function(){return new _0x50d0bc();};};function _0x4693f7(_0x5433aa,_0x1f38e2,_0xa09ab5){_0x1f38e2[_0xa09ab5]=0xff&_0x5433aa;}function _0x637e71(_0x327af7,_0x11bed9){this['len']=_0x327af7,this['next']=void 0x0,this['val']=_0x11bed9;}function _0x263d34(_0x2ded86,_0x3f8e78,_0x4c1b19){for(;_0x2ded86['hi'];)_0x3f8e78[_0x4c1b19++]=0x7f&_0x2ded86['lo']|0x80,_0x2ded86['lo']=(_0x2ded86['lo']>>>0x7|_0x2ded86['hi']<<0x19)>>>0x0,_0x2ded86['hi']>>>=0x7;for(;_0x2ded86['lo']>0x7f;)_0x3f8e78[_0x4c1b19++]=0x7f&_0x2ded86['lo']|0x80,_0x2ded86['lo']=_0x2ded86['lo']>>>0x7;_0x3f8e78[_0x4c1b19++]=_0x2ded86['lo'];}function _0x10fd0d(_0x18024d,_0x3bb33a,_0x1a5cbd){_0x3bb33a[_0x1a5cbd]=0xff&_0x18024d,_0x3bb33a[_0x1a5cbd+0x1]=_0x18024d>>>0x8&0xff,_0x3bb33a[_0x1a5cbd+0x2]=_0x18024d>>>0x10&0xff,_0x3bb33a[_0x1a5cbd+0x3]=_0x18024d>>>0x18;}_0x50d0bc['create']=_0x4e7b2f(),_0x50d0bc['alloc']=function(_0x5213a7){return new _0x84002['Array'](_0x5213a7);},_0x84002['Array']!==Array&&(_0x50d0bc['alloc']=_0x84002['pool'](_0x50d0bc['alloc'],_0x84002['Array']['prototype']['subarray'])),_0x50d0bc['prototype']['_push']=function(_0x5cca36,_0x392e57,_0x33dd3c){return this['tail']=this['tail']['next']=new _0x2660fd(_0x5cca36,_0x392e57,_0x33dd3c),this['len']+=_0x392e57,this;},_0x637e71['prototype']=Object['create'](_0x2660fd['prototype']),_0x637e71['prototype']['fn']=function(_0x18a6fb,_0xdc02c1,_0x29e06a){for(;_0x18a6fb>0x7f;)_0xdc02c1[_0x29e06a++]=0x7f&_0x18a6fb|0x80,_0x18a6fb>>>=0x7;_0xdc02c1[_0x29e06a]=_0x18a6fb;},_0x50d0bc['prototype']['uint32']=function(_0x4567df){return this['len']+=(this['tail']=this['tail']['next']=new _0x637e71((_0x4567df>>>=0x0)<0x80?0x1:_0x4567df<0x4000?0x2:_0x4567df<0x200000?0x3:_0x4567df<0x10000000?0x4:0x5,_0x4567df))['len'],this;},_0x50d0bc['prototype']['int32']=function(_0x4ac061){return _0x4ac061<0x0?this['_push'](_0x263d34,0xa,_0x1b6ebc['fromNumber'](_0x4ac061)):this['uint32'](_0x4ac061);},_0x50d0bc['prototype']['sint32']=function(_0x59c5b4){return this['uint32']((_0x59c5b4<<0x1^_0x59c5b4>>0x1f)>>>0x0);},_0x50d0bc['prototype']['uint64']=function(_0x2cf499){var _0x1da266=_0x1b6ebc['from'](_0x2cf499);return this['_push'](_0x263d34,_0x1da266['length'](),_0x1da266);},_0x50d0bc['prototype']['int64']=_0x50d0bc['prototype']['uint64'],_0x50d0bc['prototype']['sint64']=function(_0x58bc49){var _0x541bca=_0x1b6ebc['from'](_0x58bc49)['zzEncode']();return this['_push'](_0x263d34,_0x541bca['length'](),_0x541bca);},_0x50d0bc['prototype']['bool']=function(_0x240181){return this['_push'](_0x4693f7,0x1,_0x240181?0x1:0x0);},_0x50d0bc['prototype']['fixed32']=function(_0x318563){return this['_push'](_0x10fd0d,0x4,_0x318563>>>0x0);},_0x50d0bc['prototype']['sfixed32']=_0x50d0bc['prototype']['fixed32'],_0x50d0bc['prototype']['fixed64']=function(_0x29c55c){var _0x70b762=_0x1b6ebc['from'](_0x29c55c);return this['_push'](_0x10fd0d,0x4,_0x70b762['lo'])['_push'](_0x10fd0d,0x4,_0x70b762['hi']);},_0x50d0bc['prototype']['sfixed64']=_0x50d0bc['prototype']['fixed64'],_0x50d0bc['prototype']['float']=function(_0x2b6274){return this['_push'](_0x84002['float']['writeFloatLE'],0x4,_0x2b6274);},_0x50d0bc['prototype']['double']=function(_0x529915){return this['_push'](_0x84002['float']['writeDoubleLE'],0x8,_0x529915);};var _0x1dbeff=_0x84002['Array']['prototype']['set']?function(_0x96fefe,_0x5368e6,_0x4d9763){_0x5368e6['set'](_0x96fefe,_0x4d9763);}:function(_0x7f6543,_0x1a6499,_0x1f744f){for(var _0x28be29=0x0;_0x28be29<_0x7f6543['length'];++_0x28be29)_0x1a6499[_0x1f744f+_0x28be29]=_0x7f6543[_0x28be29];};return _0x50d0bc['prototype']['bytes']=function(_0x1c40a0){var _0xf012f3=_0x1c40a0['length']>>>0x0;if(!_0xf012f3)return this['_push'](_0x4693f7,0x1,0x0);if(_0x84002['isString'](_0x1c40a0)){var _0x533395=_0x50d0bc['alloc'](_0xf012f3=_0x9b8ae9['length'](_0x1c40a0));_0x9b8ae9['decode'](_0x1c40a0,_0x533395,0x0),_0x1c40a0=_0x533395;}return this['uint32'](_0xf012f3)['_push'](_0x1dbeff,_0xf012f3,_0x1c40a0);},_0x50d0bc['prototype']['string']=function(_0x1ae537){var _0x52d3eb=_0x27685f['length'](_0x1ae537);return _0x52d3eb?this['uint32'](_0x52d3eb)['_push'](_0x27685f['write'],_0x52d3eb,_0x1ae537):this['_push'](_0x4693f7,0x1,0x0);},_0x50d0bc['prototype']['fork']=function(){return this['states']=new _0x50adae(this),this['head']=this['tail']=new _0x2660fd(_0x290659,0x0,0x0),this['len']=0x0,this;},_0x50d0bc['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 _0x2660fd(_0x290659,0x0,0x0),this['len']=0x0),this;},_0x50d0bc['prototype']['ldelim']=function(){var _0x3da27e=this['head'],_0x565851=this['tail'],_0xcfbfbf=this['len'];return this['reset']()['uint32'](_0xcfbfbf),_0xcfbfbf&&(this['tail']['next']=_0x3da27e['next'],this['tail']=_0x565851,this['len']+=_0xcfbfbf),this;},_0x50d0bc['prototype']['finish']=function(){for(var _0x4dbda9=this['head']['next'],_0x4cd34d=this['constructor']['alloc'](this['len']),_0x359392=0x0;_0x4dbda9;)_0x4dbda9['fn'](_0x4dbda9['val'],_0x4cd34d,_0x359392),_0x359392+=_0x4dbda9['len'],_0x4dbda9=_0x4dbda9['next'];return _0x4cd34d;},_0x50d0bc['_configure']=function(_0x18c85a){_0x16c579=_0x18c85a,_0x50d0bc['create']=_0x4e7b2f(),_0x16c579['_configure']();},writer;}function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=0x1,writer_buffer=_0x48476b;var _0x54f8f8=requireWriter();(_0x48476b['prototype']=Object['create'](_0x54f8f8['prototype']))['constructor']=_0x48476b;var _0x15b6da=requireMinimal$1();function _0x48476b(){_0x54f8f8['call'](this);}function _0x3aeacb(_0xbadddf,_0x3e58a9,_0xf87f5b){_0xbadddf['length']<0x28?_0x15b6da['utf8']['write'](_0xbadddf,_0x3e58a9,_0xf87f5b):_0x3e58a9['utf8Write']?_0x3e58a9['utf8Write'](_0xbadddf,_0xf87f5b):_0x3e58a9['write'](_0xbadddf,_0xf87f5b);}return _0x48476b['_configure']=function(){_0x48476b['alloc']=_0x15b6da['_Buffer_allocUnsafe'],_0x48476b['writeBytesBuffer']=_0x15b6da['Buffer']&&_0x15b6da['Buffer']['prototype']instanceof Uint8Array&&'set'===_0x15b6da['Buffer']['prototype']['set']['name']?function(_0x21b88b,_0x1002e1,_0x5c84bd){_0x1002e1['set'](_0x21b88b,_0x5c84bd);}:function(_0x213636,_0x15165c,_0x198183){if(_0x213636['copy'])_0x213636['copy'](_0x15165c,_0x198183,0x0,_0x213636['length']);else{for(var _0x2443a0=0x0;_0x2443a0<_0x213636['length'];)_0x15165c[_0x198183++]=_0x213636[_0x2443a0++];}};},_0x48476b['prototype']['bytes']=function(_0x515ad1){_0x15b6da['isString'](_0x515ad1)&&(_0x515ad1=_0x15b6da['_Buffer_from'](_0x515ad1,'base64'));var _0x5a47f3=_0x515ad1['length']>>>0x0;return this['uint32'](_0x5a47f3),_0x5a47f3&&this['_push'](_0x48476b['writeBytesBuffer'],_0x5a47f3,_0x515ad1),this;},_0x48476b['prototype']['string']=function(_0x3522b8){var _0x87de44=_0x15b6da['Buffer']['byteLength'](_0x3522b8);return this['uint32'](_0x87de44),_0x87de44&&this['_push'](_0x3aeacb,_0x87de44,_0x3522b8),this;},_0x48476b['_configure'](),writer_buffer;}function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=0x1,reader=_0x4629d0;var _0x24f1de,_0x31a493=requireMinimal$1(),_0x10b3ab=_0x31a493['LongBits'],_0x32e100=_0x31a493['utf8'];function _0x297ad5(_0x151c6c,_0x5ca8cb){return RangeError('index\x20out\x20of\x20range:\x20'+_0x151c6c['pos']+'\x20+\x20'+(_0x5ca8cb||0x1)+'\x20>\x20'+_0x151c6c['len']);}function _0x4629d0(_0x17ddbc){this['buf']=_0x17ddbc,this['pos']=0x0,this['len']=_0x17ddbc['length'];}var _0x352aee='undefined'!=typeof Uint8Array?function(_0x4339d7){if(_0x4339d7 instanceof Uint8Array||Array['isArray'](_0x4339d7))return new _0x4629d0(_0x4339d7);throw Error('illegal\x20buffer');}:function(_0x5d12b6){if(Array['isArray'](_0x5d12b6))return new _0x4629d0(_0x5d12b6);throw Error('illegal\x20buffer');},_0x367d01=function(){return _0x31a493['Buffer']?function(_0x3f9b1a){return(_0x4629d0['create']=function(_0x366c99){return _0x31a493['Buffer']['isBuffer'](_0x366c99)?new _0x24f1de(_0x366c99):_0x352aee(_0x366c99);})(_0x3f9b1a);}:_0x352aee;};function _0x3487e7(){var _0x15003a=new _0x10b3ab(0x0,0x0),_0x5d201a=0x0;if(!(this['len']-this['pos']>0x4)){for(;_0x5d201a<0x3;++_0x5d201a){if(this['pos']>=this['len'])throw _0x297ad5(this);if(_0x15003a['lo']=(_0x15003a['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x5d201a)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x15003a;}return _0x15003a['lo']=(_0x15003a['lo']|(0x7f&this['buf'][this['pos']++])<<0x7*_0x5d201a)>>>0x0,_0x15003a;}for(;_0x5d201a<0x4;++_0x5d201a)if(_0x15003a['lo']=(_0x15003a['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x5d201a)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x15003a;if(_0x15003a['lo']=(_0x15003a['lo']|(0x7f&this['buf'][this['pos']])<<0x1c)>>>0x0,_0x15003a['hi']=(_0x15003a['hi']|(0x7f&this['buf'][this['pos']])>>0x4)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x15003a;if(_0x5d201a=0x0,this['len']-this['pos']>0x4){for(;_0x5d201a<0x5;++_0x5d201a)if(_0x15003a['hi']=(_0x15003a['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x5d201a+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x15003a;}else for(;_0x5d201a<0x5;++_0x5d201a){if(this['pos']>=this['len'])throw _0x297ad5(this);if(_0x15003a['hi']=(_0x15003a['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x5d201a+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x15003a;}throw Error('invalid\x20varint\x20encoding');}function _0x472639(_0x129ab2,_0x1a9d01){return(_0x129ab2[_0x1a9d01-0x4]|_0x129ab2[_0x1a9d01-0x3]<<0x8|_0x129ab2[_0x1a9d01-0x2]<<0x10|_0x129ab2[_0x1a9d01-0x1]<<0x18)>>>0x0;}function _0x468d7c(){if(this['pos']+0x8>this['len'])throw _0x297ad5(this,0x8);return new _0x10b3ab(_0x472639(this['buf'],this['pos']+=0x4),_0x472639(this['buf'],this['pos']+=0x4));}return _0x4629d0['create']=_0x367d01(),_0x4629d0['prototype']['_slice']=_0x31a493['Array']['prototype']['subarray']||_0x31a493['Array']['prototype']['slice'],_0x4629d0['prototype']['uint32']=(function(){var _0x55a5bb=0xffffffff;return function(){if(_0x55a5bb=(0x7f&this['buf'][this['pos']])>>>0x0,this['buf'][this['pos']++]<0x80)return _0x55a5bb;if(_0x55a5bb=(_0x55a5bb|(0x7f&this['buf'][this['pos']])<<0x7)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x55a5bb;if(_0x55a5bb=(_0x55a5bb|(0x7f&this['buf'][this['pos']])<<0xe)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x55a5bb;if(_0x55a5bb=(_0x55a5bb|(0x7f&this['buf'][this['pos']])<<0x15)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x55a5bb;if(_0x55a5bb=(_0x55a5bb|(0xf&this['buf'][this['pos']])<<0x1c)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x55a5bb;if((this['pos']+=0x5)>this['len'])throw this['pos']=this['len'],_0x297ad5(this,0xa);return _0x55a5bb;};}()),_0x4629d0['prototype']['int32']=function(){return 0x0|this['uint32']();},_0x4629d0['prototype']['sint32']=function(){var _0x52e066=this['uint32']();return _0x52e066>>>0x1^-(0x1&_0x52e066);},_0x4629d0['prototype']['bool']=function(){return 0x0!==this['uint32']();},_0x4629d0['prototype']['fixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x297ad5(this,0x4);return _0x472639(this['buf'],this['pos']+=0x4);},_0x4629d0['prototype']['sfixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x297ad5(this,0x4);return 0x0|_0x472639(this['buf'],this['pos']+=0x4);},_0x4629d0['prototype']['float']=function(){if(this['pos']+0x4>this['len'])throw _0x297ad5(this,0x4);var _0x4dfa4a=_0x31a493['float']['readFloatLE'](this['buf'],this['pos']);return this['pos']+=0x4,_0x4dfa4a;},_0x4629d0['prototype']['double']=function(){if(this['pos']+0x8>this['len'])throw _0x297ad5(this,0x4);var _0x21a200=_0x31a493['float']['readDoubleLE'](this['buf'],this['pos']);return this['pos']+=0x8,_0x21a200;},_0x4629d0['prototype']['bytes']=function(){var _0xa71548=this['uint32'](),_0x46e14d=this['pos'],_0x1712c4=this['pos']+_0xa71548;if(_0x1712c4>this['len'])throw _0x297ad5(this,_0xa71548);if(this['pos']+=_0xa71548,Array['isArray'](this['buf']))return this['buf']['slice'](_0x46e14d,_0x1712c4);if(_0x46e14d===_0x1712c4){var _0x4e71f7=_0x31a493['Buffer'];return _0x4e71f7?_0x4e71f7['alloc'](0x0):new this['buf']['constructor'](0x0);}return this['_slice']['call'](this['buf'],_0x46e14d,_0x1712c4);},_0x4629d0['prototype']['string']=function(){var _0x4a9ab1=this['bytes']();return _0x32e100['read'](_0x4a9ab1,0x0,_0x4a9ab1['length']);},_0x4629d0['prototype']['skip']=function(_0x439d3e){if('number'==typeof _0x439d3e){if(this['pos']+_0x439d3e>this['len'])throw _0x297ad5(this,_0x439d3e);this['pos']+=_0x439d3e;}else do{if(this['pos']>=this['len'])throw _0x297ad5(this);}while(0x80&this['buf'][this['pos']++]);return this;},_0x4629d0['prototype']['skipType']=function(_0x4d9335){switch(_0x4d9335){case 0x0:this['skip']();break;case 0x1:this['skip'](0x8);break;case 0x2:this['skip'](this['uint32']());break;case 0x3:for(;0x4!=(_0x4d9335=0x7&this['uint32']());)this['skipType'](_0x4d9335);break;case 0x5:this['skip'](0x4);break;default:throw Error('invalid\x20wire\x20type\x20'+_0x4d9335+'\x20at\x20offset\x20'+this['pos']);}return this;},_0x4629d0['_configure']=function(_0x49d418){_0x24f1de=_0x49d418,_0x4629d0['create']=_0x367d01(),_0x24f1de['_configure']();var _0x50adc6=_0x31a493['Long']?'toLong':'toNumber';_0x31a493['merge'](_0x4629d0['prototype'],{'int64':function(){return _0x3487e7['call'](this)[_0x50adc6](!0x1);},'uint64':function(){return _0x3487e7['call'](this)[_0x50adc6](!0x0);},'sint64':function(){return _0x3487e7['call'](this)['zzDecode']()[_0x50adc6](!0x1);},'fixed64':function(){return _0x468d7c['call'](this)[_0x50adc6](!0x0);},'sfixed64':function(){return _0x468d7c['call'](this)[_0x50adc6](!0x1);}});},reader;}function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=0x1,reader_buffer=_0x34f895;var _0x1c1166=requireReader();(_0x34f895['prototype']=Object['create'](_0x1c1166['prototype']))['constructor']=_0x34f895;var _0x469a29=requireMinimal$1();function _0x34f895(_0x33bce0){_0x1c1166['call'](this,_0x33bce0);}return _0x34f895['_configure']=function(){_0x469a29['Buffer']&&(_0x34f895['prototype']['_slice']=_0x469a29['Buffer']['prototype']['slice']);},_0x34f895['prototype']['string']=function(){var _0x1fff8e=this['uint32']();return this['buf']['utf8Slice']?this['buf']['utf8Slice'](this['pos'],this['pos']=Math['min'](this['pos']+_0x1fff8e,this['len'])):this['buf']['toString']('utf-8',this['pos'],this['pos']=Math['min'](this['pos']+_0x1fff8e,this['len']));},_0x34f895['_configure'](),reader_buffer;}var rpc={},service,hasRequiredService,hasRequiredRpc,roots,hasRequiredRoots,hasRequiredIndexMinimal,minimal,hasRequiredMinimal;function requireService(){if(hasRequiredService)return service;hasRequiredService=0x1,service=_0x524559;var _0xcbaaa1=requireMinimal$1();function _0x524559(_0x3966d5,_0x5dd481,_0x2cdef1){if('function'!=typeof _0x3966d5)throw TypeError('rpcImpl\x20must\x20be\x20a\x20function');_0xcbaaa1['EventEmitter']['call'](this),this['rpcImpl']=_0x3966d5,this['requestDelimited']=Boolean(_0x5dd481),this['responseDelimited']=Boolean(_0x2cdef1);}return(_0x524559['prototype']=Object['create'](_0xcbaaa1['EventEmitter']['prototype']))['constructor']=_0x524559,_0x524559['prototype']['rpcCall']=function _0x1feb90(_0x1abaac,_0x425d0a,_0x5a31e9,_0x40a710,_0x3a021e){if(!_0x40a710)throw TypeError('request\x20must\x20be\x20specified');var _0x31cb16=this;if(!_0x3a021e)return _0xcbaaa1['asPromise'](_0x1feb90,_0x31cb16,_0x1abaac,_0x425d0a,_0x5a31e9,_0x40a710);if(_0x31cb16['rpcImpl'])try{return _0x31cb16['rpcImpl'](_0x1abaac,_0x425d0a[_0x31cb16['requestDelimited']?'encodeDelimited':'encode'](_0x40a710)['finish'](),function(_0x5cc220,_0x2cf9a3){if(_0x5cc220)return _0x31cb16['emit']('error',_0x5cc220,_0x1abaac),_0x3a021e(_0x5cc220);if(null!==_0x2cf9a3){if(!(_0x2cf9a3 instanceof _0x5a31e9))try{_0x2cf9a3=_0x5a31e9[_0x31cb16['responseDelimited']?'decodeDelimited':'decode'](_0x2cf9a3);}catch(_0x51df92){return _0x31cb16['emit']('error',_0x51df92,_0x1abaac),_0x3a021e(_0x51df92);}return _0x31cb16['emit']('data',_0x2cf9a3,_0x1abaac),_0x3a021e(null,_0x2cf9a3);}_0x31cb16['end'](!0x0);});}catch(_0x32956b){return _0x31cb16['emit']('error',_0x32956b,_0x1abaac),void setTimeout(function(){_0x3a021e(_0x32956b);},0x0);}else setTimeout(function(){_0x3a021e(Error('already\x20ended'));},0x0);},_0x524559['prototype']['end']=function(_0x4b8a82){return this['rpcImpl']&&(_0x4b8a82||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 _0x27b8ce=indexMinimal;function _0x159065(){_0x27b8ce['util']['_configure'](),_0x27b8ce['Writer']['_configure'](_0x27b8ce['BufferWriter']),_0x27b8ce['Reader']['_configure'](_0x27b8ce['BufferReader']);}_0x27b8ce['build']='minimal',_0x27b8ce['Writer']=requireWriter(),_0x27b8ce['BufferWriter']=requireWriter_buffer(),_0x27b8ce['Reader']=requireReader(),_0x27b8ce['BufferReader']=requireReader_buffer(),_0x27b8ce['util']=requireMinimal$1(),_0x27b8ce['rpc']=requireRpc(),_0x27b8ce['roots']=requireRoots(),_0x27b8ce['configure']=_0x159065,_0x159065();}())),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'](_0xd58a74=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_0xd58a74]]=_0xd58a74;});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=_0x30c52a=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x30c52a):_0x30c52a&&_0x30c52a['buffer']instanceof ArrayBuffer,encodePacket=({type:_0x327172,data:_0x13dd27},_0x4e37c0,_0x3ea00c)=>withNativeBlob$1&&_0x13dd27 instanceof Blob?_0x4e37c0?_0x3ea00c(_0x13dd27):encodeBlobAsBase64(_0x13dd27,_0x3ea00c):withNativeArrayBuffer$2&&(_0x13dd27 instanceof ArrayBuffer||isView$1(_0x13dd27))?_0x4e37c0?_0x3ea00c(_0x13dd27):encodeBlobAsBase64(new Blob([_0x13dd27]),_0x3ea00c):_0x3ea00c(PACKET_TYPES[_0x327172]+(_0x13dd27||'')),encodeBlobAsBase64=(_0x55896a,_0x5678a9)=>{const _0x4d4454=new FileReader();return _0x4d4454['onload']=function(){const _0x1a3fa7=_0x4d4454['result']['split'](',')[0x1];_0x5678a9('b'+(_0x1a3fa7||''));},_0x4d4454['readAsDataURL'](_0x55896a);};function toArray(_0x2b2f65){return _0x2b2f65 instanceof Uint8Array?_0x2b2f65:_0x2b2f65 instanceof ArrayBuffer?new Uint8Array(_0x2b2f65):new Uint8Array(_0x2b2f65['buffer'],_0x2b2f65['byteOffset'],_0x2b2f65['byteLength']);}let TEXT_ENCODER;function encodePacketToBinary(_0x177408,_0x239a90){return withNativeBlob$1&&_0x177408['data']instanceof Blob?_0x177408['data']['arrayBuffer']()['then'](toArray)['then'](_0x239a90):withNativeArrayBuffer$2&&(_0x177408['data']instanceof ArrayBuffer||isView$1(_0x177408['data']))?_0x239a90(toArray(_0x177408['data'])):void encodePacket(_0x177408,!0x1,_0x362a49=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder()),_0x239a90(TEXT_ENCODER['encode'](_0x362a49));});}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=_0x5a0752=>{let _0x4d8fe4,_0x453111,_0x5e89f4,_0x20971b,_0xf52608,_0x350202=0.75*_0x5a0752['length'],_0x56becf=_0x5a0752['length'],_0x1f3be3=0x0;'='===_0x5a0752[_0x5a0752['length']-0x1]&&(_0x350202--,'='===_0x5a0752[_0x5a0752['length']-0x2]&&_0x350202--);const _0x58c5a9=new ArrayBuffer(_0x350202),_0x5de5bb=new Uint8Array(_0x58c5a9);for(_0x4d8fe4=0x0;_0x4d8fe4<_0x56becf;_0x4d8fe4+=0x4)_0x453111=lookup$1[_0x5a0752['charCodeAt'](_0x4d8fe4)],_0x5e89f4=lookup$1[_0x5a0752['charCodeAt'](_0x4d8fe4+0x1)],_0x20971b=lookup$1[_0x5a0752['charCodeAt'](_0x4d8fe4+0x2)],_0xf52608=lookup$1[_0x5a0752['charCodeAt'](_0x4d8fe4+0x3)],_0x5de5bb[_0x1f3be3++]=_0x453111<<0x2|_0x5e89f4>>0x4,_0x5de5bb[_0x1f3be3++]=(0xf&_0x5e89f4)<<0x4|_0x20971b>>0x2,_0x5de5bb[_0x1f3be3++]=(0x3&_0x20971b)<<0x6|0x3f&_0xf52608;return _0x58c5a9;},withNativeArrayBuffer$1='function'==typeof ArrayBuffer,decodePacket=(_0x10dfa1,_0x9c0dae)=>{if('string'!=typeof _0x10dfa1)return{'type':'message','data':mapBinary(_0x10dfa1,_0x9c0dae)};const _0x49ae86=_0x10dfa1['charAt'](0x0);if('b'===_0x49ae86)return{'type':'message','data':decodeBase64Packet(_0x10dfa1['substring'](0x1),_0x9c0dae)};return PACKET_TYPES_REVERSE[_0x49ae86]?_0x10dfa1['length']>0x1?{'type':PACKET_TYPES_REVERSE[_0x49ae86],'data':_0x10dfa1['substring'](0x1)}:{'type':PACKET_TYPES_REVERSE[_0x49ae86]}:ERROR_PACKET;},decodeBase64Packet=(_0x45825c,_0x4b58c7)=>{if(withNativeArrayBuffer$1){const _0x18a1e8=decode$1(_0x45825c);return mapBinary(_0x18a1e8,_0x4b58c7);}return{'base64':!0x0,'data':_0x45825c};},mapBinary=(_0xabe37b,_0x4dc1c6)=>'blob'===_0x4dc1c6?_0xabe37b instanceof Blob?_0xabe37b:new Blob([_0xabe37b]):_0xabe37b instanceof ArrayBuffer?_0xabe37b:_0xabe37b['buffer'],SEPARATOR$2=String['fromCharCode'](0x1e),encodePayload=(_0x5b8a85,_0x1fbd5d)=>{const _0x3201e9=_0x5b8a85['length'],_0x27f373=new Array(_0x3201e9);let _0x93d431=0x0;_0x5b8a85['forEach']((_0x422f5e,_0x3941e5)=>{encodePacket(_0x422f5e,!0x1,_0x3ed74d=>{_0x27f373[_0x3941e5]=_0x3ed74d,++_0x93d431===_0x3201e9&&_0x1fbd5d(_0x27f373['join'](SEPARATOR$2));});});},decodePayload=(_0x263d4e,_0x5cb3f7)=>{const _0x18c243=_0x263d4e['split'](SEPARATOR$2),_0x1823ec=[];for(let _0x4dc332=0x0;_0x4dc332<_0x18c243['length'];_0x4dc332++){const _0x4acb0b=decodePacket(_0x18c243[_0x4dc332],_0x5cb3f7);if(_0x1823ec['push'](_0x4acb0b),'error'===_0x4acb0b['type'])break;}return _0x1823ec;};function createPacketEncoderStream(){return new TransformStream({'transform'(_0x36fa39,_0x434b19){encodePacketToBinary(_0x36fa39,_0x173be4=>{const _0x5d9001=_0x173be4['length'];let _0x3461dd;if(_0x5d9001<0x7e)_0x3461dd=new Uint8Array(0x1),new DataView(_0x3461dd['buffer'])['setUint8'](0x0,_0x5d9001);else{if(_0x5d9001<0x10000){_0x3461dd=new Uint8Array(0x3);const _0x19f242=new DataView(_0x3461dd['buffer']);_0x19f242['setUint8'](0x0,0x7e),_0x19f242['setUint16'](0x1,_0x5d9001);}else{_0x3461dd=new Uint8Array(0x9);const _0x494711=new DataView(_0x3461dd['buffer']);_0x494711['setUint8'](0x0,0x7f),_0x494711['setBigUint64'](0x1,BigInt(_0x5d9001));}}_0x36fa39['data']&&'string'!=typeof _0x36fa39['data']&&(_0x3461dd[0x0]|=0x80),_0x434b19['enqueue'](_0x3461dd),_0x434b19['enqueue'](_0x173be4);});}});}let TEXT_DECODER;function totalLength(_0x1bb2cd){return _0x1bb2cd['reduce']((_0x48d045,_0x4d7a90)=>_0x48d045+_0x4d7a90['length'],0x0);}function concatChunks(_0x4495ba,_0x4c2829){if(_0x4495ba[0x0]['length']===_0x4c2829)return _0x4495ba['shift']();const _0x4c5e26=new Uint8Array(_0x4c2829);let _0x2e0a39=0x0;for(let _0x30a5f2=0x0;_0x30a5f2<_0x4c2829;_0x30a5f2++)_0x4c5e26[_0x30a5f2]=_0x4495ba[0x0][_0x2e0a39++],_0x2e0a39===_0x4495ba[0x0]['length']&&(_0x4495ba['shift'](),_0x2e0a39=0x0);return _0x4495ba['length']&&_0x2e0a39<_0x4495ba[0x0]['length']&&(_0x4495ba[0x0]=_0x4495ba[0x0]['slice'](_0x2e0a39)),_0x4c5e26;}function createPacketDecoderStream(_0x3dfb95,_0x130952){TEXT_DECODER||(TEXT_DECODER=new TextDecoder());const _0x12c732=[];let _0x39286e=0x0,_0xc95d6b=-0x1,_0x414d5d=!0x1;return new TransformStream({'transform'(_0x516bcc,_0xe9d14){for(_0x12c732['push'](_0x516bcc);;){if(0x0===_0x39286e){if(totalLength(_0x12c732)<0x1)break;const _0x2b72ad=concatChunks(_0x12c732,0x1);_0x414d5d=!(0x80&~_0x2b72ad[0x0]),_0xc95d6b=0x7f&_0x2b72ad[0x0],_0x39286e=_0xc95d6b<0x7e?0x3:0x7e===_0xc95d6b?0x1:0x2;}else{if(0x1===_0x39286e){if(totalLength(_0x12c732)<0x2)break;const _0x177b93=concatChunks(_0x12c732,0x2);_0xc95d6b=new DataView(_0x177b93['buffer'],_0x177b93['byteOffset'],_0x177b93['length'])['getUint16'](0x0),_0x39286e=0x3;}else{if(0x2===_0x39286e){if(totalLength(_0x12c732)<0x8)break;const _0x552c93=concatChunks(_0x12c732,0x8),_0x575cdb=new DataView(_0x552c93['buffer'],_0x552c93['byteOffset'],_0x552c93['length']),_0x5c032c=_0x575cdb['getUint32'](0x0);if(_0x5c032c>Math['pow'](0x2,0x15)-0x1){_0xe9d14['enqueue'](ERROR_PACKET);break;}_0xc95d6b=_0x5c032c*Math['pow'](0x2,0x20)+_0x575cdb['getUint32'](0x4),_0x39286e=0x3;}else{if(totalLength(_0x12c732)<_0xc95d6b)break;const _0xa754b1=concatChunks(_0x12c732,_0xc95d6b);_0xe9d14['enqueue'](decodePacket(_0x414d5d?_0xa754b1:TEXT_DECODER['decode'](_0xa754b1),_0x130952)),_0x39286e=0x0;}}}if(0x0===_0xc95d6b||_0xc95d6b>_0x3dfb95){_0xe9d14['enqueue'](ERROR_PACKET);break;}}}});}const protocol$1=0x4;function Emitter(_0xbe8f54){if(_0xbe8f54)return mixin(_0xbe8f54);}function mixin(_0x140a90){for(var _0x275e0d in Emitter['prototype'])_0x140a90[_0x275e0d]=Emitter['prototype'][_0x275e0d];return _0x140a90;}Emitter['prototype']['on']=Emitter['prototype']['addEventListener']=function(_0xfbf729,_0x50d5c6){return this['_callbacks']=this['_callbacks']||{},(this['_callbacks']['$'+_0xfbf729]=this['_callbacks']['$'+_0xfbf729]||[])['push'](_0x50d5c6),this;},Emitter['prototype']['once']=function(_0x4dd40d,_0x3777c7){function _0x2f62d3(){this['off'](_0x4dd40d,_0x2f62d3),_0x3777c7['apply'](this,arguments);}return _0x2f62d3['fn']=_0x3777c7,this['on'](_0x4dd40d,_0x2f62d3),this;},Emitter['prototype']['off']=Emitter['prototype']['removeListener']=Emitter['prototype']['removeAllListeners']=Emitter['prototype']['removeEventListener']=function(_0x10c49d,_0x50a191){if(this['_callbacks']=this['_callbacks']||{},0x0==arguments['length'])return this['_callbacks']={},this;var _0x2c5336,_0x36c698=this['_callbacks']['$'+_0x10c49d];if(!_0x36c698)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+_0x10c49d],this;for(var _0x5c4d47=0x0;_0x5c4d47<_0x36c698['length'];_0x5c4d47++)if((_0x2c5336=_0x36c698[_0x5c4d47])===_0x50a191||_0x2c5336['fn']===_0x50a191){_0x36c698['splice'](_0x5c4d47,0x1);break;}return 0x0===_0x36c698['length']&&delete this['_callbacks']['$'+_0x10c49d],this;},Emitter['prototype']['emit']=function(_0x50e302){this['_callbacks']=this['_callbacks']||{};for(var _0x13a535=new Array(arguments['length']-0x1),_0x1b9e78=this['_callbacks']['$'+_0x50e302],_0x22aac4=0x1;_0x22aac4<arguments['length'];_0x22aac4++)_0x13a535[_0x22aac4-0x1]=arguments[_0x22aac4];if(_0x1b9e78){_0x22aac4=0x0;for(var _0x58439d=(_0x1b9e78=_0x1b9e78['slice'](0x0))['length'];_0x22aac4<_0x58439d;++_0x22aac4)_0x1b9e78[_0x22aac4]['apply'](this,_0x13a535);}return this;},Emitter['prototype']['emitReserved']=Emitter['prototype']['emit'],Emitter['prototype']['listeners']=function(_0x557056){return this['_callbacks']=this['_callbacks']||{},this['_callbacks']['$'+_0x557056]||[];},Emitter['prototype']['hasListeners']=function(_0x38be22){return!!this['listeners'](_0x38be22)['length'];};const globalThisShim='undefined'!=typeof self?self:'undefined'!=typeof window?window:Function('return\x20this')();function pick$1(_0x1e678b,..._0x38d020){return _0x38d020['reduce']((_0x30668e,_0x232ef8)=>(_0x1e678b['hasOwnProperty'](_0x232ef8)&&(_0x30668e[_0x232ef8]=_0x1e678b[_0x232ef8]),_0x30668e),{});}const NATIVE_SET_TIMEOUT=globalThisShim['setTimeout'],NATIVE_CLEAR_TIMEOUT=globalThisShim['clearTimeout'];function installTimerFunctions(_0x30e078,_0x3b5fe1){_0x3b5fe1['useNativeTimers']?(_0x30e078['setTimeoutFn']=NATIVE_SET_TIMEOUT['bind'](globalThisShim),_0x30e078['clearTimeoutFn']=NATIVE_CLEAR_TIMEOUT['bind'](globalThisShim)):(_0x30e078['setTimeoutFn']=globalThisShim['setTimeout']['bind'](globalThisShim),_0x30e078['clearTimeoutFn']=globalThisShim['clearTimeout']['bind'](globalThisShim));}const BASE64_OVERHEAD=1.33;function byteLength(_0xde0076){return'string'==typeof _0xde0076?utf8Length(_0xde0076):Math['ceil']((_0xde0076['byteLength']||_0xde0076['size'])*BASE64_OVERHEAD);}function utf8Length(_0x22fe04){let _0x196e84=0x0,_0x5aa0d7=0x0;for(let _0x738f41=0x0,_0x2136c3=_0x22fe04['length'];_0x738f41<_0x2136c3;_0x738f41++)_0x196e84=_0x22fe04['charCodeAt'](_0x738f41),_0x196e84<0x80?_0x5aa0d7+=0x1:_0x196e84<0x800?_0x5aa0d7+=0x2:_0x196e84<0xd800||_0x196e84>=0xe000?_0x5aa0d7+=0x3:(_0x738f41++,_0x5aa0d7+=0x4);return _0x5aa0d7;}function encode$1(_0x4ec1a0){let _0x4f3b8a='';for(let _0x4fca7b in _0x4ec1a0)_0x4ec1a0['hasOwnProperty'](_0x4fca7b)&&(_0x4f3b8a['length']&&(_0x4f3b8a+='&'),_0x4f3b8a+=encodeURIComponent(_0x4fca7b)+'='+encodeURIComponent(_0x4ec1a0[_0x4fca7b]));return _0x4f3b8a;}function decode(_0x2d1f8f){let _0x3ad063={},_0x1f3bc5=_0x2d1f8f['split']('&');for(let _0x419e5f=0x0,_0x28a0c6=_0x1f3bc5['length'];_0x419e5f<_0x28a0c6;_0x419e5f++){let _0x544b67=_0x1f3bc5[_0x419e5f]['split']('=');_0x3ad063[decodeURIComponent(_0x544b67[0x0])]=decodeURIComponent(_0x544b67[0x1]);}return _0x3ad063;}class TransportError extends Error{constructor(_0x19524d,_0x1e5a7f,_0x16db54){super(_0x19524d),this['description']=_0x1e5a7f,this['context']=_0x16db54,this['type']='TransportError';}}class Transport extends Emitter{constructor(_0x4f9226){super(),this['writable']=!0x1,installTimerFunctions(this,_0x4f9226),this['opts']=_0x4f9226,this['query']=_0x4f9226['query'],this['socket']=_0x4f9226['socket'];}['onError'](_0x386373,_0x5bd003,_0x43d268){return super['emitReserved']('error',new TransportError(_0x386373,_0x5bd003,_0x43d268)),this;}['open'](){return this['readyState']='opening',this['doOpen'](),this;}['close'](){return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['doClose'](),this['onClose']()),this;}['send'](_0x11a1f3){'open'===this['readyState']&&this['write'](_0x11a1f3);}['onOpen'](){this['readyState']='open',this['writable']=!0x0,super['emitReserved']('open');}['onData'](_0x358834){const _0x48e9cb=decodePacket(_0x358834,this['socket']['binaryType']);this['onPacket'](_0x48e9cb);}['onPacket'](_0x57fd9e){super['emitReserved']('packet',_0x57fd9e);}['onClose'](_0x5d12b4){this['readyState']='closed',super['emitReserved']('close',_0x5d12b4);}['pause'](_0x2d689c){}['createUri'](_0x1e02f3,_0x122730={}){return _0x1e02f3+'://'+this['_hostname']()+this['_port']()+this['opts']['path']+this['_query'](_0x122730);}['_hostname'](){const _0xb3cfb2=this['opts']['hostname'];return-0x1===_0xb3cfb2['indexOf'](':')?_0xb3cfb2:'['+_0xb3cfb2+']';}['_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'](_0x53565b){const _0x279e87=encode$1(_0x53565b);return _0x279e87['length']?'?'+_0x279e87:'';}}const alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'['split'](''),length=0x40,map={};let seed=0x0,i$3=0x0,prev;function encode(_0x5627e6){let _0xe48a69='';do{_0xe48a69=alphabet[_0x5627e6%length]+_0xe48a69,_0x5627e6=Math['floor'](_0x5627e6/length);}while(_0x5627e6>0x0);return _0xe48a69;}function yeast(){const _0x3dd0af=encode(+new Date());return _0x3dd0af!==prev?(seed=0x0,prev=_0x3dd0af):_0x3dd0af+'.'+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(_0x1d643a){}const hasCORS=value;function XHR(_0xb6c984){const _0x4c52a0=_0xb6c984['xdomain'];try{if('undefined'!=typeof XMLHttpRequest&&(!_0x4c52a0||hasCORS))return new XMLHttpRequest();}catch(_0x399a5c){}if(!_0x4c52a0)try{return new globalThisShim[(['Active']['concat']('Object')['join']('X'))]('Microsoft.XMLHTTP');}catch(_0x1d01cb){}}function createCookieJar(){}function empty(){}const hasXHR2=null!=new XHR({'xdomain':!0x1})['responseType'];class Polling extends Transport{constructor(_0x8894e1){if(super(_0x8894e1),this['polling']=!0x1,'undefined'!=typeof location){const _0x398cf3='https:'===location['protocol'];let _0x8970fb=location['port'];_0x8970fb||(_0x8970fb=_0x398cf3?'443':'80'),this['xd']='undefined'!=typeof location&&_0x8894e1['hostname']!==location['hostname']||_0x8970fb!==_0x8894e1['port'];}const _0x3ff9d9=_0x8894e1&&_0x8894e1['forceBase64'];this['supportsBinary']=hasXHR2&&!_0x3ff9d9,this['opts']['withCredentials']&&(this['cookieJar']=createCookieJar());}get['name'](){return'polling';}['doOpen'](){this['poll']();}['pause'](_0x3a7ffb){this['readyState']='pausing';const _0xa5b335=()=>{this['readyState']='paused',_0x3a7ffb();};if(this['polling']||!this['writable']){let _0x34fe09=0x0;this['polling']&&(_0x34fe09++,this['once']('pollComplete',function(){--_0x34fe09||_0xa5b335();})),this['writable']||(_0x34fe09++,this['once']('drain',function(){--_0x34fe09||_0xa5b335();}));}else _0xa5b335();}['poll'](){this['polling']=!0x0,this['doPoll'](),this['emitReserved']('poll');}['onData'](_0x30f207){decodePayload(_0x30f207,this['socket']['binaryType'])['forEach'](_0x8482d6=>{if('opening'===this['readyState']&&'open'===_0x8482d6['type']&&this['onOpen'](),'close'===_0x8482d6['type'])return this['onClose']({'description':'transport\x20closed\x20by\x20the\x20server'}),!0x1;this['onPacket'](_0x8482d6);}),'closed'!==this['readyState']&&(this['polling']=!0x1,this['emitReserved']('pollComplete'),'open'===this['readyState']&&this['poll']());}['doClose'](){const _0x5af290=()=>{this['write']([{'type':'close'}]);};'open'===this['readyState']?_0x5af290():this['once']('open',_0x5af290);}['write'](_0x4c7a16){this['writable']=!0x1,encodePayload(_0x4c7a16,_0x4438bc=>{this['doWrite'](_0x4438bc,()=>{this['writable']=!0x0,this['emitReserved']('drain');});});}['uri'](){const _0x3df77c=this['opts']['secure']?'https':'http',_0x4fadd9=this['query']||{};return!0x1!==this['opts']['timestampRequests']&&(_0x4fadd9[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||_0x4fadd9['sid']||(_0x4fadd9['b64']=0x1),this['createUri'](_0x3df77c,_0x4fadd9);}['request'](_0x2f39a5={}){return Object['assign'](_0x2f39a5,{'xd':this['xd'],'cookieJar':this['cookieJar']},this['opts']),new Request$1(this['uri'](),_0x2f39a5);}['doWrite'](_0x2e8ea1,_0x280e02){const _0x134e72=this['request']({'method':'POST','data':_0x2e8ea1});_0x134e72['on']('success',_0x280e02),_0x134e72['on']('error',(_0x139301,_0x12ba7c)=>{this['onError']('xhr\x20post\x20error',_0x139301,_0x12ba7c);});}['doPoll'](){const _0x1de41a=this['request']();_0x1de41a['on']('data',this['onData']['bind'](this)),_0x1de41a['on']('error',(_0x454806,_0x118118)=>{this['onError']('xhr\x20poll\x20error',_0x454806,_0x118118);}),this['pollXhr']=_0x1de41a;}}let Request$1=class e extends Emitter{constructor(_0x283e72,_0x390ce1){super(),installTimerFunctions(this,_0x390ce1),this['opts']=_0x390ce1,this['method']=_0x390ce1['method']||'GET',this['uri']=_0x283e72,this['data']=void 0x0!==_0x390ce1['data']?_0x390ce1['data']:null,this['create']();}['create'](){var _0x28e693;const _0x43e99d=pick$1(this['opts'],'agent','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','autoUnref');_0x43e99d['xdomain']=!!this['opts']['xd'];const _0x19120f=this['xhr']=new XHR(_0x43e99d);try{_0x19120f['open'](this['method'],this['uri'],!0x0);try{if(this['opts']['extraHeaders']){_0x19120f['setDisableHeaderCheck']&&_0x19120f['setDisableHeaderCheck'](!0x0);for(let _0x17d431 in this['opts']['extraHeaders'])this['opts']['extraHeaders']['hasOwnProperty'](_0x17d431)&&_0x19120f['setRequestHeader'](_0x17d431,this['opts']['extraHeaders'][_0x17d431]);}}catch(_0x5bf7cf){}if('POST'===this['method'])try{_0x19120f['setRequestHeader']('Content-type','text/plain;charset=UTF-8');}catch(_0x176789){}try{_0x19120f['setRequestHeader']('Accept','*/*');}catch(_0x4147f4){}null===(_0x28e693=this['opts']['cookieJar'])||void 0x0===_0x28e693||_0x28e693['addCookies'](_0x19120f),'withCredentials'in _0x19120f&&(_0x19120f['withCredentials']=this['opts']['withCredentials']),this['opts']['requestTimeout']&&(_0x19120f['timeout']=this['opts']['requestTimeout']),_0x19120f['onreadystatechange']=()=>{var _0x35bc60;0x3===_0x19120f['readyState']&&(null===(_0x35bc60=this['opts']['cookieJar'])||void 0x0===_0x35bc60||_0x35bc60['parseCookies'](_0x19120f)),0x4===_0x19120f['readyState']&&(0xc8===_0x19120f['status']||0x4c7===_0x19120f['status']?this['onLoad']():this['setTimeoutFn'](()=>{this['onError']('number'==typeof _0x19120f['status']?_0x19120f['status']:0x0);},0x0));},_0x19120f['send'](this['data']);}catch(_0x330971){return void this['setTimeoutFn'](()=>{this['onError'](_0x330971);},0x0);}'undefined'!=typeof document&&(this['index']=e['requestsCount']++,e['requests'][this['index']]=this);}['onError'](_0x41c836){this['emitReserved']('error',_0x41c836,this['xhr']),this['cleanup'](!0x0);}['cleanup'](_0x5b6b63){if(void 0x0!==this['xhr']&&null!==this['xhr']){if(this['xhr']['onreadystatechange']=empty,_0x5b6b63)try{this['xhr']['abort']();}catch(_0x4b3dc6){}'undefined'!=typeof document&&delete e['requests'][this['index']],this['xhr']=null;}}['onLoad'](){const _0x5b1080=this['xhr']['responseText'];null!==_0x5b1080&&(this['emitReserved']('data',_0x5b1080),this['emitReserved']('success'),this['cleanup']());}['abort'](){this['cleanup']();}};if(Request$1['requestsCount']=0x0,Request$1['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 _0x5a3650 in Request$1['requests'])Request$1['requests']['hasOwnProperty'](_0x5a3650)&&Request$1['requests'][_0x5a3650]['abort']();}const nextTick='function'==typeof Promise&&'function'==typeof Promise['resolve']?_0x3d7550=>Promise['resolve']()['then'](_0x3d7550):(_0x55553d,_0x50f3a8)=>_0x50f3a8(_0x55553d,0x0),WebSocket$3=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(_0x43e964){super(_0x43e964),this['supportsBinary']=!_0x43e964['forceBase64'];}get['name'](){return'websocket';}['doOpen'](){if(!this['check']())return;const _0x1f1500=this['uri'](),_0x3bf67f=this['opts']['protocols'],_0x43a74d=isReactNative?{}:pick$1(this['opts'],'agent','perMessageDeflate','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','localAddress','protocolVersion','origin','maxPayload','family','checkServerIdentity');this['opts']['extraHeaders']&&(_0x43a74d['headers']=this['opts']['extraHeaders']);try{this['ws']=usingBrowserWebSocket&&!isReactNative?_0x3bf67f?new WebSocket$3(_0x1f1500,_0x3bf67f):new WebSocket$3(_0x1f1500):new WebSocket$3(_0x1f1500,_0x3bf67f,_0x43a74d);}catch(_0x1238c8){return this['emitReserved']('error',_0x1238c8);}this['ws']['binaryType']=this['socket']['binaryType'],this['addEventListeners']();}['addEventListeners'](){this['ws']['onopen']=()=>{this['opts']['autoUnref']&&this['ws']['_socket']['unref'](),this['onOpen']();},this['ws']['onclose']=_0x1d50cd=>this['onClose']({'description':'websocket\x20connection\x20closed','context':_0x1d50cd}),this['ws']['onmessage']=_0x42a22b=>this['onData'](_0x42a22b['data']),this['ws']['onerror']=_0xc1f04d=>this['onError']('websocket\x20error',_0xc1f04d);}['write'](_0x1546e9){this['writable']=!0x1;for(let _0x490ef3=0x0;_0x490ef3<_0x1546e9['length'];_0x490ef3++){const _0xd3ff36=_0x1546e9[_0x490ef3],_0x123e2b=_0x490ef3===_0x1546e9['length']-0x1;encodePacket(_0xd3ff36,this['supportsBinary'],_0x2c5b31=>{try{usingBrowserWebSocket&&this['ws']['send'](_0x2c5b31);}catch(_0x3b669a){}_0x123e2b&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){void 0x0!==this['ws']&&(this['ws']['close'](),this['ws']=null);}['uri'](){const _0x18287e=this['opts']['secure']?'wss':'ws',_0x4ba98c=this['query']||{};return this['opts']['timestampRequests']&&(_0x4ba98c[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||(_0x4ba98c['b64']=0x1),this['createUri'](_0x18287e,_0x4ba98c);}['check'](){return!!WebSocket$3;}}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'](_0x1c74d3=>{this['onError']('webtransport\x20error',_0x1c74d3);}),this['transport']['ready']['then'](()=>{this['transport']['createBidirectionalStream']()['then'](_0x256e0d=>{const _0x712b03=createPacketDecoderStream(Number['MAX_SAFE_INTEGER'],this['socket']['binaryType']),_0x40a178=_0x256e0d['readable']['pipeThrough'](_0x712b03)['getReader'](),_0x3232a4=createPacketEncoderStream();_0x3232a4['readable']['pipeTo'](_0x256e0d['writable']),this['writer']=_0x3232a4['writable']['getWriter']();const _0x2b4776=()=>{_0x40a178['read']()['then'](({done:_0x550593,value:_0x42e91a})=>{_0x550593||(this['onPacket'](_0x42e91a),_0x2b4776());})['catch'](_0x43e288=>{});};_0x2b4776();const _0x13179e={'type':'open'};this['query']['sid']&&(_0x13179e['data']='{\x22sid\x22:\x22'+this['query']['sid']+'\x22}'),this['writer']['write'](_0x13179e)['then'](()=>this['onOpen']());});}));}['write'](_0x39946f){this['writable']=!0x1;for(let _0x144dbc=0x0;_0x144dbc<_0x39946f['length'];_0x144dbc++){const _0x4d6159=_0x39946f[_0x144dbc],_0x205908=_0x144dbc===_0x39946f['length']-0x1;this['writer']['write'](_0x4d6159)['then'](()=>{_0x205908&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){var _0x33c3b0;null===(_0x33c3b0=this['transport'])||void 0x0===_0x33c3b0||_0x33c3b0['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(_0x592e6e){if(_0x592e6e['length']>0x7d0)throw'URI\x20too\x20long';const _0xee7986=_0x592e6e,_0x3b796b=_0x592e6e['indexOf']('['),_0x2d19e2=_0x592e6e['indexOf'](']');-0x1!=_0x3b796b&&-0x1!=_0x2d19e2&&(_0x592e6e=_0x592e6e['substring'](0x0,_0x3b796b)+_0x592e6e['substring'](_0x3b796b,_0x2d19e2)['replace'](/:/g,';')+_0x592e6e['substring'](_0x2d19e2,_0x592e6e['length']));let _0x364048=re['exec'](_0x592e6e||''),_0x19f0e5={},_0x2210f7=0xe;for(;_0x2210f7--;)_0x19f0e5[parts[_0x2210f7]]=_0x364048[_0x2210f7]||'';return-0x1!=_0x3b796b&&-0x1!=_0x2d19e2&&(_0x19f0e5['source']=_0xee7986,_0x19f0e5['host']=_0x19f0e5['host']['substring'](0x1,_0x19f0e5['host']['length']-0x1)['replace'](/;/g,':'),_0x19f0e5['authority']=_0x19f0e5['authority']['replace']('[','')['replace'](']','')['replace'](/;/g,':'),_0x19f0e5['ipv6uri']=!0x0),_0x19f0e5['pathNames']=pathNames(_0x19f0e5,_0x19f0e5['path']),_0x19f0e5['queryKey']=queryKey(_0x19f0e5,_0x19f0e5['query']),_0x19f0e5;}function pathNames(_0x1ac8b9,_0x48702c){const _0x368970=_0x48702c['replace'](/\/{2,9}/g,'/')['split']('/');return'/'!=_0x48702c['slice'](0x0,0x1)&&0x0!==_0x48702c['length']||_0x368970['splice'](0x0,0x1),'/'==_0x48702c['slice'](-0x1)&&_0x368970['splice'](_0x368970['length']-0x1,0x1),_0x368970;}function queryKey(_0x39390f,_0x33ffee){const _0x17cf1a={};return _0x33ffee['replace'](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x5b236b,_0x551dfd,_0xca9276){_0x551dfd&&(_0x17cf1a[_0x551dfd]=_0xca9276);}),_0x17cf1a;}let Socket$1=class e extends Emitter{constructor(_0x136ffb,_0x46fd62={}){super(),this['binaryType']=defaultBinaryType,this['writeBuffer']=[],_0x136ffb&&'object'==typeof _0x136ffb&&(_0x46fd62=_0x136ffb,_0x136ffb=null),_0x136ffb?(_0x136ffb=parse(_0x136ffb),_0x46fd62['hostname']=_0x136ffb['host'],_0x46fd62['secure']='https'===_0x136ffb['protocol']||'wss'===_0x136ffb['protocol'],_0x46fd62['port']=_0x136ffb['port'],_0x136ffb['query']&&(_0x46fd62['query']=_0x136ffb['query'])):_0x46fd62['host']&&(_0x46fd62['hostname']=parse(_0x46fd62['host'])['host']),installTimerFunctions(this,_0x46fd62),this['secure']=null!=_0x46fd62['secure']?_0x46fd62['secure']:'undefined'!=typeof location&&'https:'===location['protocol'],_0x46fd62['hostname']&&!_0x46fd62['port']&&(_0x46fd62['port']=this['secure']?'443':'80'),this['hostname']=_0x46fd62['hostname']||('undefined'!=typeof location?location['hostname']:'localhost'),this['port']=_0x46fd62['port']||('undefined'!=typeof location&&location['port']?location['port']:this['secure']?'443':'80'),this['transports']=_0x46fd62['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},_0x46fd62),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'](_0x9970d){const _0xc89a57=Object['assign']({},this['opts']['query']);_0xc89a57['EIO']=protocol$1,_0xc89a57['transport']=_0x9970d,this['id']&&(_0xc89a57['sid']=this['id']);const _0x247963=Object['assign']({},this['opts'],{'query':_0xc89a57,'socket':this,'hostname':this['hostname'],'secure':this['secure'],'port':this['port']},this['opts']['transportOptions'][_0x9970d]);return new transports[_0x9970d](_0x247963);}['open'](){let _0x452c8f;if(this['opts']['rememberUpgrade']&&e['priorWebsocketSuccess']&&-0x1!==this['transports']['indexOf']('websocket'))_0x452c8f='websocket';else{if(0x0===this['transports']['length'])return void this['setTimeoutFn'](()=>{this['emitReserved']('error','No\x20transports\x20available');},0x0);_0x452c8f=this['transports'][0x0];}this['readyState']='opening';try{_0x452c8f=this['createTransport'](_0x452c8f);}catch(_0x21cd22){return this['transports']['shift'](),void this['open']();}_0x452c8f['open'](),this['setTransport'](_0x452c8f);}['setTransport'](_0x5b0642){this['transport']&&this['transport']['removeAllListeners'](),this['transport']=_0x5b0642,_0x5b0642['on']('drain',this['onDrain']['bind'](this))['on']('packet',this['onPacket']['bind'](this))['on']('error',this['onError']['bind'](this))['on']('close',_0x2fb7d8=>this['onClose']('transport\x20close',_0x2fb7d8));}['probe'](_0x524920){let _0x4df3f4=this['createTransport'](_0x524920),_0x48bfba=!0x1;e['priorWebsocketSuccess']=!0x1;const _0x205107=()=>{_0x48bfba||(_0x4df3f4['send']([{'type':'ping','data':'probe'}]),_0x4df3f4['once']('packet',_0x365948=>{if(!_0x48bfba){if('pong'===_0x365948['type']&&'probe'===_0x365948['data']){if(this['upgrading']=!0x0,this['emitReserved']('upgrading',_0x4df3f4),!_0x4df3f4)return;e['priorWebsocketSuccess']='websocket'===_0x4df3f4['name'],this['transport']['pause'](()=>{_0x48bfba||'closed'!==this['readyState']&&(_0x560928(),this['setTransport'](_0x4df3f4),_0x4df3f4['send']([{'type':'upgrade'}]),this['emitReserved']('upgrade',_0x4df3f4),_0x4df3f4=null,this['upgrading']=!0x1,this['flush']());});}else{const _0x57a826=new Error('probe\x20error');_0x57a826['transport']=_0x4df3f4['name'],this['emitReserved']('upgradeError',_0x57a826);}}}));};function _0x5a4f15(){_0x48bfba||(_0x48bfba=!0x0,_0x560928(),_0x4df3f4['close'](),_0x4df3f4=null);}const _0x4cbe27=_0x19dbaf=>{const _0x563904=new Error('probe\x20error:\x20'+_0x19dbaf);_0x563904['transport']=_0x4df3f4['name'],_0x5a4f15(),this['emitReserved']('upgradeError',_0x563904);};function _0xb80b07(){_0x4cbe27('transport\x20closed');}function _0x23cb67(){_0x4cbe27('socket\x20closed');}function _0x2a5131(_0x1e7df0){_0x4df3f4&&_0x1e7df0['name']!==_0x4df3f4['name']&&_0x5a4f15();}const _0x560928=()=>{_0x4df3f4['removeListener']('open',_0x205107),_0x4df3f4['removeListener']('error',_0x4cbe27),_0x4df3f4['removeListener']('close',_0xb80b07),this['off']('close',_0x23cb67),this['off']('upgrading',_0x2a5131);};_0x4df3f4['once']('open',_0x205107),_0x4df3f4['once']('error',_0x4cbe27),_0x4df3f4['once']('close',_0xb80b07),this['once']('close',_0x23cb67),this['once']('upgrading',_0x2a5131),-0x1!==this['upgrades']['indexOf']('webtransport')&&'webtransport'!==_0x524920?this['setTimeoutFn'](()=>{_0x48bfba||_0x4df3f4['open']();},0xc8):_0x4df3f4['open']();}['onOpen'](){if(this['readyState']='open',e['priorWebsocketSuccess']='websocket'===this['transport']['name'],this['emitReserved']('open'),this['flush'](),'open'===this['readyState']&&this['opts']['upgrade']){let _0x1c79cc=0x0;const _0x2ffac5=this['upgrades']['length'];for(;_0x1c79cc<_0x2ffac5;_0x1c79cc++)this['probe'](this['upgrades'][_0x1c79cc]);}}['onPacket'](_0x12621d){if('opening'===this['readyState']||'open'===this['readyState']||'closing'===this['readyState'])switch(this['emitReserved']('packet',_0x12621d),this['emitReserved']('heartbeat'),this['resetPingTimeout'](),_0x12621d['type']){case'open':this['onHandshake'](JSON['parse'](_0x12621d['data']));break;case'ping':this['sendPacket']('pong'),this['emitReserved']('ping'),this['emitReserved']('pong');break;case'error':const _0x39cac8=new Error('server\x20error');_0x39cac8['code']=_0x12621d['data'],this['onError'](_0x39cac8);break;case'message':this['emitReserved']('data',_0x12621d['data']),this['emitReserved']('message',_0x12621d['data']);}}['onHandshake'](_0x3cb24d){this['emitReserved']('handshake',_0x3cb24d),this['id']=_0x3cb24d['sid'],this['transport']['query']['sid']=_0x3cb24d['sid'],this['upgrades']=this['filterUpgrades'](_0x3cb24d['upgrades']),this['pingInterval']=_0x3cb24d['pingInterval'],this['pingTimeout']=_0x3cb24d['pingTimeout'],this['maxPayload']=_0x3cb24d['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 _0x5c8745=this['getWritablePackets']();this['transport']['send'](_0x5c8745),this['prevBufferLen']=_0x5c8745['length'],this['emitReserved']('flush');}}['getWritablePackets'](){if(!(this['maxPayload']&&'polling'===this['transport']['name']&&this['writeBuffer']['length']>0x1))return this['writeBuffer'];let _0x4e336b=0x1;for(let _0x1aecff=0x0;_0x1aecff<this['writeBuffer']['length'];_0x1aecff++){const _0x416543=this['writeBuffer'][_0x1aecff]['data'];if(_0x416543&&(_0x4e336b+=byteLength(_0x416543)),_0x1aecff>0x0&&_0x4e336b>this['maxPayload'])return this['writeBuffer']['slice'](0x0,_0x1aecff);_0x4e336b+=0x2;}return this['writeBuffer'];}['write'](_0x48202d,_0x3a60a5,_0x5accb8){return this['sendPacket']('message',_0x48202d,_0x3a60a5,_0x5accb8),this;}['send'](_0x270b01,_0x3d0878,_0x57d45a){return this['sendPacket']('message',_0x270b01,_0x3d0878,_0x57d45a),this;}['sendPacket'](_0x5642e2,_0x3880ef,_0x1d843f,_0x2089e7){if('function'==typeof _0x3880ef&&(_0x2089e7=_0x3880ef,_0x3880ef=void 0x0),'function'==typeof _0x1d843f&&(_0x2089e7=_0x1d843f,_0x1d843f=null),'closing'===this['readyState']||'closed'===this['readyState'])return;(_0x1d843f=_0x1d843f||{})['compress']=!0x1!==_0x1d843f['compress'];const _0x11ed95={'type':_0x5642e2,'data':_0x3880ef,'options':_0x1d843f};this['emitReserved']('packetCreate',_0x11ed95),this['writeBuffer']['push'](_0x11ed95),_0x2089e7&&this['once']('flush',_0x2089e7),this['flush']();}['close'](){const _0x5bd27b=()=>{this['onClose']('forced\x20close'),this['transport']['close']();},_0x41c274=()=>{this['off']('upgrade',_0x41c274),this['off']('upgradeError',_0x41c274),_0x5bd27b();},_0xbdedd=()=>{this['once']('upgrade',_0x41c274),this['once']('upgradeError',_0x41c274);};return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['readyState']='closing',this['writeBuffer']['length']?this['once']('drain',()=>{this['upgrading']?_0xbdedd():_0x5bd27b();}):this['upgrading']?_0xbdedd():_0x5bd27b()),this;}['onError'](_0x306768){e['priorWebsocketSuccess']=!0x1,this['emitReserved']('error',_0x306768),this['onClose']('transport\x20error',_0x306768);}['onClose'](_0x30be62,_0x32f30f){'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',_0x30be62,_0x32f30f),this['writeBuffer']=[],this['prevBufferLen']=0x0);}['filterUpgrades'](_0x5b27d1){const _0x22eff8=[];let _0x4fb5ba=0x0;const _0x50af46=_0x5b27d1['length'];for(;_0x4fb5ba<_0x50af46;_0x4fb5ba++)~this['transports']['indexOf'](_0x5b27d1[_0x4fb5ba])&&_0x22eff8['push'](_0x5b27d1[_0x4fb5ba]);return _0x22eff8;}};function url(_0x172542,_0x180466='',_0x31d1b9){let _0x41394a=_0x172542;_0x31d1b9=_0x31d1b9||'undefined'!=typeof location&&location,null==_0x172542&&(_0x172542=_0x31d1b9['protocol']+'//'+_0x31d1b9['host']),'string'==typeof _0x172542&&('/'===_0x172542['charAt'](0x0)&&(_0x172542='/'===_0x172542['charAt'](0x1)?_0x31d1b9['protocol']+_0x172542:_0x31d1b9['host']+_0x172542),/^(https?|wss?):\/\//['test'](_0x172542)||(_0x172542=void 0x0!==_0x31d1b9?_0x31d1b9['protocol']+'//'+_0x172542:'https://'+_0x172542),_0x41394a=parse(_0x172542)),_0x41394a['port']||(/^(http|ws)$/['test'](_0x41394a['protocol'])?_0x41394a['port']='80':/^(http|ws)s$/['test'](_0x41394a['protocol'])&&(_0x41394a['port']='443')),_0x41394a['path']=_0x41394a['path']||'/';const _0x4a39d3=-0x1!==_0x41394a['host']['indexOf'](':')?'['+_0x41394a['host']+']':_0x41394a['host'];return _0x41394a['id']=_0x41394a['protocol']+'://'+_0x4a39d3+':'+_0x41394a['port']+_0x180466,_0x41394a['href']=_0x41394a['protocol']+'://'+_0x4a39d3+(_0x31d1b9&&_0x31d1b9['port']===_0x41394a['port']?'':':'+_0x41394a['port']),_0x41394a;}Socket$1['protocol']=protocol$1;const withNativeArrayBuffer='function'==typeof ArrayBuffer,isView=_0x4dd7f5=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x4dd7f5):_0x4dd7f5['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(_0x344e8f){return withNativeArrayBuffer&&(_0x344e8f instanceof ArrayBuffer||isView(_0x344e8f))||withNativeBlob&&_0x344e8f instanceof Blob||withNativeFile&&_0x344e8f instanceof File;}function hasBinary(_0x423dd7,_0x57920f){if(!_0x423dd7||'object'!=typeof _0x423dd7)return!0x1;if(Array['isArray'](_0x423dd7)){for(let _0x451cb7=0x0,_0x595631=_0x423dd7['length'];_0x451cb7<_0x595631;_0x451cb7++)if(hasBinary(_0x423dd7[_0x451cb7]))return!0x0;return!0x1;}if(isBinary(_0x423dd7))return!0x0;if(_0x423dd7['toJSON']&&'function'==typeof _0x423dd7['toJSON']&&0x1===arguments['length'])return hasBinary(_0x423dd7['toJSON'](),!0x0);for(const _0x16e5b8 in _0x423dd7)if(Object['prototype']['hasOwnProperty']['call'](_0x423dd7,_0x16e5b8)&&hasBinary(_0x423dd7[_0x16e5b8]))return!0x0;return!0x1;}function deconstructPacket(_0x293b4b){const _0x1d082a=[],_0x2ad712=_0x293b4b['data'],_0x3cc32d=_0x293b4b;return _0x3cc32d['data']=_deconstructPacket(_0x2ad712,_0x1d082a),_0x3cc32d['attachments']=_0x1d082a['length'],{'packet':_0x3cc32d,'buffers':_0x1d082a};}function _deconstructPacket(_0xcbd20d,_0x5347ab){if(!_0xcbd20d)return _0xcbd20d;if(isBinary(_0xcbd20d)){const _0x98c4e6={'_placeholder':!0x0,'num':_0x5347ab['length']};return _0x5347ab['push'](_0xcbd20d),_0x98c4e6;}if(Array['isArray'](_0xcbd20d)){const _0x382680=new Array(_0xcbd20d['length']);for(let _0x4d292d=0x0;_0x4d292d<_0xcbd20d['length'];_0x4d292d++)_0x382680[_0x4d292d]=_deconstructPacket(_0xcbd20d[_0x4d292d],_0x5347ab);return _0x382680;}if('object'==typeof _0xcbd20d&&!(_0xcbd20d instanceof Date)){const _0x1a05f9={};for(const _0x17f5e0 in _0xcbd20d)Object['prototype']['hasOwnProperty']['call'](_0xcbd20d,_0x17f5e0)&&(_0x1a05f9[_0x17f5e0]=_deconstructPacket(_0xcbd20d[_0x17f5e0],_0x5347ab));return _0x1a05f9;}return _0xcbd20d;}function reconstructPacket(_0x56f127,_0x2a660c){return _0x56f127['data']=_reconstructPacket(_0x56f127['data'],_0x2a660c),delete _0x56f127['attachments'],_0x56f127;}function _reconstructPacket(_0xee09a,_0x43af51){if(!_0xee09a)return _0xee09a;if(_0xee09a&&!0x0===_0xee09a['_placeholder']){if('number'==typeof _0xee09a['num']&&_0xee09a['num']>=0x0&&_0xee09a['num']<_0x43af51['length'])return _0x43af51[_0xee09a['num']];throw new Error('illegal\x20attachments');}if(Array['isArray'](_0xee09a)){for(let _0x417da8=0x0;_0x417da8<_0xee09a['length'];_0x417da8++)_0xee09a[_0x417da8]=_reconstructPacket(_0xee09a[_0x417da8],_0x43af51);}else{if('object'==typeof _0xee09a){for(const _0x601bc1 in _0xee09a)Object['prototype']['hasOwnProperty']['call'](_0xee09a,_0x601bc1)&&(_0xee09a[_0x601bc1]=_reconstructPacket(_0xee09a[_0x601bc1],_0x43af51));}}return _0xee09a;}const RESERVED_EVENTS$1=['connect','connect_error','disconnect','disconnecting','newListener','removeListener'],protocol=0x5;var PacketType;!function(_0x496efd){_0x496efd[_0x496efd['CONNECT']=0x0]='CONNECT',_0x496efd[_0x496efd['DISCONNECT']=0x1]='DISCONNECT',_0x496efd[_0x496efd['EVENT']=0x2]='EVENT',_0x496efd[_0x496efd['ACK']=0x3]='ACK',_0x496efd[_0x496efd['CONNECT_ERROR']=0x4]='CONNECT_ERROR',_0x496efd[_0x496efd['BINARY_EVENT']=0x5]='BINARY_EVENT',_0x496efd[_0x496efd['BINARY_ACK']=0x6]='BINARY_ACK';}(PacketType||(PacketType={}));let Encoder$1=class{constructor(_0xeee46a){this['replacer']=_0xeee46a;}['encode'](_0x13f613){return _0x13f613['type']!==PacketType['EVENT']&&_0x13f613['type']!==PacketType['ACK']||!hasBinary(_0x13f613)?[this['encodeAsString'](_0x13f613)]:this['encodeAsBinary']({'type':_0x13f613['type']===PacketType['EVENT']?PacketType['BINARY_EVENT']:PacketType['BINARY_ACK'],'nsp':_0x13f613['nsp'],'data':_0x13f613['data'],'id':_0x13f613['id']});}['encodeAsString'](_0x3a6c7f){let _0x8b1816=''+_0x3a6c7f['type'];return _0x3a6c7f['type']!==PacketType['BINARY_EVENT']&&_0x3a6c7f['type']!==PacketType['BINARY_ACK']||(_0x8b1816+=_0x3a6c7f['attachments']+'-'),_0x3a6c7f['nsp']&&'/'!==_0x3a6c7f['nsp']&&(_0x8b1816+=_0x3a6c7f['nsp']+','),null!=_0x3a6c7f['id']&&(_0x8b1816+=_0x3a6c7f['id']),null!=_0x3a6c7f['data']&&(_0x8b1816+=JSON['stringify'](_0x3a6c7f['data'],this['replacer'])),_0x8b1816;}['encodeAsBinary'](_0x534925){const _0x35cb42=deconstructPacket(_0x534925),_0x1578e4=this['encodeAsString'](_0x35cb42['packet']),_0x3a96c8=_0x35cb42['buffers'];return _0x3a96c8['unshift'](_0x1578e4),_0x3a96c8;}};function isObject$2(_0x170142){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x170142);}let Decoder$1=class e extends Emitter{constructor(_0x4dc365){super(),this['reviver']=_0x4dc365;}['add'](_0x528ff0){let _0x2d4dec;if('string'==typeof _0x528ff0){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');_0x2d4dec=this['decodeString'](_0x528ff0);const _0x33e7be=_0x2d4dec['type']===PacketType['BINARY_EVENT'];_0x33e7be||_0x2d4dec['type']===PacketType['BINARY_ACK']?(_0x2d4dec['type']=_0x33e7be?PacketType['EVENT']:PacketType['ACK'],this['reconstructor']=new BinaryReconstructor(_0x2d4dec),0x0===_0x2d4dec['attachments']&&super['emitReserved']('decoded',_0x2d4dec)):super['emitReserved']('decoded',_0x2d4dec);}else{if(!isBinary(_0x528ff0)&&!_0x528ff0['base64'])throw new Error('Unknown\x20type:\x20'+_0x528ff0);if(!this['reconstructor'])throw new Error('got\x20binary\x20data\x20when\x20not\x20reconstructing\x20a\x20packet');_0x2d4dec=this['reconstructor']['takeBinaryData'](_0x528ff0),_0x2d4dec&&(this['reconstructor']=null,super['emitReserved']('decoded',_0x2d4dec));}}['decodeString'](_0x4eb441){let _0x49a811=0x0;const _0x343a05={'type':Number(_0x4eb441['charAt'](0x0))};if(void 0x0===PacketType[_0x343a05['type']])throw new Error('unknown\x20packet\x20type\x20'+_0x343a05['type']);if(_0x343a05['type']===PacketType['BINARY_EVENT']||_0x343a05['type']===PacketType['BINARY_ACK']){const _0x4b1237=_0x49a811+0x1;for(;'-'!==_0x4eb441['charAt'](++_0x49a811)&&_0x49a811!=_0x4eb441['length'];);const _0x56c126=_0x4eb441['substring'](_0x4b1237,_0x49a811);if(_0x56c126!=Number(_0x56c126)||'-'!==_0x4eb441['charAt'](_0x49a811))throw new Error('Illegal\x20attachments');_0x343a05['attachments']=Number(_0x56c126);}if('/'===_0x4eb441['charAt'](_0x49a811+0x1)){const _0x6318f5=_0x49a811+0x1;for(;++_0x49a811;){if(','===_0x4eb441['charAt'](_0x49a811))break;if(_0x49a811===_0x4eb441['length'])break;}_0x343a05['nsp']=_0x4eb441['substring'](_0x6318f5,_0x49a811);}else _0x343a05['nsp']='/';const _0xa41d2f=_0x4eb441['charAt'](_0x49a811+0x1);if(''!==_0xa41d2f&&Number(_0xa41d2f)==_0xa41d2f){const _0x3c5c11=_0x49a811+0x1;for(;++_0x49a811;){const _0x3390a7=_0x4eb441['charAt'](_0x49a811);if(null==_0x3390a7||Number(_0x3390a7)!=_0x3390a7){--_0x49a811;break;}if(_0x49a811===_0x4eb441['length'])break;}_0x343a05['id']=Number(_0x4eb441['substring'](_0x3c5c11,_0x49a811+0x1));}if(_0x4eb441['charAt'](++_0x49a811)){const _0x585407=this['tryParse'](_0x4eb441['substr'](_0x49a811));if(!e['isPayloadValid'](_0x343a05['type'],_0x585407))throw new Error('invalid\x20payload');_0x343a05['data']=_0x585407;}return _0x343a05;}['tryParse'](_0x510142){try{return JSON['parse'](_0x510142,this['reviver']);}catch(_0x49a91f){return!0x1;}}static['isPayloadValid'](_0x565e2d,_0x3b2473){switch(_0x565e2d){case PacketType['CONNECT']:return isObject$2(_0x3b2473);case PacketType['DISCONNECT']:return void 0x0===_0x3b2473;case PacketType['CONNECT_ERROR']:return'string'==typeof _0x3b2473||isObject$2(_0x3b2473);case PacketType['EVENT']:case PacketType['BINARY_EVENT']:return Array['isArray'](_0x3b2473)&&('number'==typeof _0x3b2473[0x0]||'string'==typeof _0x3b2473[0x0]&&-0x1===RESERVED_EVENTS$1['indexOf'](_0x3b2473[0x0]));case PacketType['ACK']:case PacketType['BINARY_ACK']:return Array['isArray'](_0x3b2473);}}['destroy'](){this['reconstructor']&&(this['reconstructor']['finishedReconstruction'](),this['reconstructor']=null);}};class BinaryReconstructor{constructor(_0x372786){this['packet']=_0x372786,this['buffers']=[],this['reconPack']=_0x372786;}['takeBinaryData'](_0x25433c){if(this['buffers']['push'](_0x25433c),this['buffers']['length']===this['reconPack']['attachments']){const _0x322329=reconstructPacket(this['reconPack'],this['buffers']);return this['finishedReconstruction'](),_0x322329;}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(_0x4e4df4,_0x4e66cd,_0x539cc9){return _0x4e4df4['on'](_0x4e66cd,_0x539cc9),function(){_0x4e4df4['off'](_0x4e66cd,_0x539cc9);};}const RESERVED_EVENTS=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});class Socket extends Emitter{constructor(_0x416239,_0x44cdf6,_0xef460c){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']=_0x416239,this['nsp']=_0x44cdf6,_0xef460c&&_0xef460c['auth']&&(this['auth']=_0xef460c['auth']),this['_opts']=Object['assign']({},_0xef460c),this['io']['_autoConnect']&&this['open']();}get['disconnected'](){return!this['connected'];}['subEvents'](){if(this['subs'])return;const _0x254e7c=this['io'];this['subs']=[on(_0x254e7c,'open',this['onopen']['bind'](this)),on(_0x254e7c,'packet',this['onpacket']['bind'](this)),on(_0x254e7c,'error',this['onerror']['bind'](this)),on(_0x254e7c,'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'](..._0x4b4d03){return _0x4b4d03['unshift']('message'),this['emit']['apply'](this,_0x4b4d03),this;}['emit'](_0x3a4f23,..._0x42cf8c){if(RESERVED_EVENTS['hasOwnProperty'](_0x3a4f23))throw new Error('\x22'+_0x3a4f23['toString']()+'\x22\x20is\x20a\x20reserved\x20event\x20name');if(_0x42cf8c['unshift'](_0x3a4f23),this['_opts']['retries']&&!this['flags']['fromQueue']&&!this['flags']['volatile'])return this['_addToQueue'](_0x42cf8c),this;const _0x3d235b={'type':PacketType['EVENT'],'data':_0x42cf8c,'options':{}};if(_0x3d235b['options']['compress']=!0x1!==this['flags']['compress'],'function'==typeof _0x42cf8c[_0x42cf8c['length']-0x1]){const _0x1bc3c7=this['ids']++,_0x57827d=_0x42cf8c['pop']();this['_registerAckCallback'](_0x1bc3c7,_0x57827d),_0x3d235b['id']=_0x1bc3c7;}const _0xd4b24c=this['io']['engine']&&this['io']['engine']['transport']&&this['io']['engine']['transport']['writable'];return this['flags']['volatile']&&(!_0xd4b24c||!this['connected'])||(this['connected']?(this['notifyOutgoingListeners'](_0x3d235b),this['packet'](_0x3d235b)):this['sendBuffer']['push'](_0x3d235b)),this['flags']={},this;}['_registerAckCallback'](_0x3174f4,_0x5c8cc3){var _0x11bcd3;const _0xcd9e5e=null!==(_0x11bcd3=this['flags']['timeout'])&&void 0x0!==_0x11bcd3?_0x11bcd3:this['_opts']['ackTimeout'];if(void 0x0===_0xcd9e5e)return void(this['acks'][_0x3174f4]=_0x5c8cc3);const _0x4ea7d5=this['io']['setTimeoutFn'](()=>{delete this['acks'][_0x3174f4];for(let _0x374baf=0x0;_0x374baf<this['sendBuffer']['length'];_0x374baf++)this['sendBuffer'][_0x374baf]['id']===_0x3174f4&&this['sendBuffer']['splice'](_0x374baf,0x1);_0x5c8cc3['call'](this,new Error('operation\x20has\x20timed\x20out'));},_0xcd9e5e);this['acks'][_0x3174f4]=(..._0x491f19)=>{this['io']['clearTimeoutFn'](_0x4ea7d5),_0x5c8cc3['apply'](this,[null,..._0x491f19]);};}['emitWithAck'](_0x531188,..._0x298277){const _0x3d8368=void 0x0!==this['flags']['timeout']||void 0x0!==this['_opts']['ackTimeout'];return new Promise((_0xd4cde3,_0xd5107f)=>{_0x298277['push']((_0x4d3b91,_0x3d0e98)=>_0x3d8368?_0x4d3b91?_0xd5107f(_0x4d3b91):_0xd4cde3(_0x3d0e98):_0xd4cde3(_0x4d3b91)),this['emit'](_0x531188,..._0x298277);});}['_addToQueue'](_0xc185a6){let _0xf4de88;'function'==typeof _0xc185a6[_0xc185a6['length']-0x1]&&(_0xf4de88=_0xc185a6['pop']());const _0x211ab2={'id':this['_queueSeq']++,'tryCount':0x0,'pending':!0x1,'args':_0xc185a6,'flags':Object['assign']({'fromQueue':!0x0},this['flags'])};_0xc185a6['push']((_0x4db917,..._0x4b1388)=>{if(_0x211ab2!==this['_queue'][0x0])return;return null!==_0x4db917?_0x211ab2['tryCount']>this['_opts']['retries']&&(this['_queue']['shift'](),_0xf4de88&&_0xf4de88(_0x4db917)):(this['_queue']['shift'](),_0xf4de88&&_0xf4de88(null,..._0x4b1388)),_0x211ab2['pending']=!0x1,this['_drainQueue']();}),this['_queue']['push'](_0x211ab2),this['_drainQueue']();}['_drainQueue'](_0x16eb47=!0x1){if(!this['connected']||0x0===this['_queue']['length'])return;const _0x20ba4d=this['_queue'][0x0];_0x20ba4d['pending']&&!_0x16eb47||(_0x20ba4d['pending']=!0x0,_0x20ba4d['tryCount']++,this['flags']=_0x20ba4d['flags'],this['emit']['apply'](this,_0x20ba4d['args']));}['packet'](_0x93e659){_0x93e659['nsp']=this['nsp'],this['io']['_packet'](_0x93e659);}['onopen'](){'function'==typeof this['auth']?this['auth'](_0x3f2bb3=>{this['_sendConnectPacket'](_0x3f2bb3);}):this['_sendConnectPacket'](this['auth']);}['_sendConnectPacket'](_0x55a016){this['packet']({'type':PacketType['CONNECT'],'data':this['_pid']?Object['assign']({'pid':this['_pid'],'offset':this['_lastOffset']},_0x55a016):_0x55a016});}['onerror'](_0x4d3b2b){this['connected']||this['emitReserved']('connect_error',_0x4d3b2b);}['onclose'](_0x45b6ad,_0x22173d){this['connected']=!0x1,delete this['id'],this['emitReserved']('disconnect',_0x45b6ad,_0x22173d);}['onpacket'](_0x447604){if(_0x447604['nsp']===this['nsp'])switch(_0x447604['type']){case PacketType['CONNECT']:_0x447604['data']&&_0x447604['data']['sid']?this['onconnect'](_0x447604['data']['sid'],_0x447604['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'](_0x447604);break;case PacketType['ACK']:case PacketType['BINARY_ACK']:this['onack'](_0x447604);break;case PacketType['DISCONNECT']:this['ondisconnect']();break;case PacketType['CONNECT_ERROR']:this['destroy']();const _0x972195=new Error(_0x447604['data']['message']);_0x972195['data']=_0x447604['data']['data'],this['emitReserved']('connect_error',_0x972195);}}['onevent'](_0x465355){const _0x470112=_0x465355['data']||[];null!=_0x465355['id']&&_0x470112['push'](this['ack'](_0x465355['id'])),this['connected']?this['emitEvent'](_0x470112):this['receiveBuffer']['push'](Object['freeze'](_0x470112));}['emitEvent'](_0x2a4926){if(this['_anyListeners']&&this['_anyListeners']['length']){const _0xe268d9=this['_anyListeners']['slice']();for(const _0x1029b9 of _0xe268d9)_0x1029b9['apply'](this,_0x2a4926);}super['emit']['apply'](this,_0x2a4926),this['_pid']&&_0x2a4926['length']&&'string'==typeof _0x2a4926[_0x2a4926['length']-0x1]&&(this['_lastOffset']=_0x2a4926[_0x2a4926['length']-0x1]);}['ack'](_0x2998c2){const _0x4ebcbf=this;let _0x481022=!0x1;return function(..._0x47a26c){_0x481022||(_0x481022=!0x0,_0x4ebcbf['packet']({'type':PacketType['ACK'],'id':_0x2998c2,'data':_0x47a26c}));};}['onack'](_0x15cb54){const _0x46592f=this['acks'][_0x15cb54['id']];'function'==typeof _0x46592f&&(_0x46592f['apply'](this,_0x15cb54['data']),delete this['acks'][_0x15cb54['id']]);}['onconnect'](_0x49e7ac,_0x56d229){this['id']=_0x49e7ac,this['recovered']=_0x56d229&&this['_pid']===_0x56d229,this['_pid']=_0x56d229,this['connected']=!0x0,this['emitBuffered'](),this['emitReserved']('connect'),this['_drainQueue'](!0x0);}['emitBuffered'](){this['receiveBuffer']['forEach'](_0x37f77e=>this['emitEvent'](_0x37f77e)),this['receiveBuffer']=[],this['sendBuffer']['forEach'](_0x4665ae=>{this['notifyOutgoingListeners'](_0x4665ae),this['packet'](_0x4665ae);}),this['sendBuffer']=[];}['ondisconnect'](){this['destroy'](),this['onclose']('io\x20server\x20disconnect');}['destroy'](){this['subs']&&(this['subs']['forEach'](_0x10a319=>_0x10a319()),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'](_0x4c4cb5){return this['flags']['compress']=_0x4c4cb5,this;}get['volatile'](){return this['flags']['volatile']=!0x0,this;}['timeout'](_0x3de6b9){return this['flags']['timeout']=_0x3de6b9,this;}['onAny'](_0x270550){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['push'](_0x270550),this;}['prependAny'](_0x378984){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['unshift'](_0x378984),this;}['offAny'](_0x3caf2b){if(!this['_anyListeners'])return this;if(_0x3caf2b){const _0x39bf03=this['_anyListeners'];for(let _0x12569d=0x0;_0x12569d<_0x39bf03['length'];_0x12569d++)if(_0x3caf2b===_0x39bf03[_0x12569d])return _0x39bf03['splice'](_0x12569d,0x1),this;}else this['_anyListeners']=[];return this;}['listenersAny'](){return this['_anyListeners']||[];}['onAnyOutgoing'](_0x192fb5){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['push'](_0x192fb5),this;}['prependAnyOutgoing'](_0x533af0){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['unshift'](_0x533af0),this;}['offAnyOutgoing'](_0x5b8d2a){if(!this['_anyOutgoingListeners'])return this;if(_0x5b8d2a){const _0x5c8400=this['_anyOutgoingListeners'];for(let _0x5af17b=0x0;_0x5af17b<_0x5c8400['length'];_0x5af17b++)if(_0x5b8d2a===_0x5c8400[_0x5af17b])return _0x5c8400['splice'](_0x5af17b,0x1),this;}else this['_anyOutgoingListeners']=[];return this;}['listenersAnyOutgoing'](){return this['_anyOutgoingListeners']||[];}['notifyOutgoingListeners'](_0x1980c1){if(this['_anyOutgoingListeners']&&this['_anyOutgoingListeners']['length']){const _0x313ab3=this['_anyOutgoingListeners']['slice']();for(const _0x1d6459 of _0x313ab3)_0x1d6459['apply'](this,_0x1980c1['data']);}}}function Backoff(_0x3bad68){_0x3bad68=_0x3bad68||{},this['ms']=_0x3bad68['min']||0x64,this['max']=_0x3bad68['max']||0x2710,this['factor']=_0x3bad68['factor']||0x2,this['jitter']=_0x3bad68['jitter']>0x0&&_0x3bad68['jitter']<=0x1?_0x3bad68['jitter']:0x0,this['attempts']=0x0;}Backoff['prototype']['duration']=function(){var _0x39d09d=this['ms']*Math['pow'](this['factor'],this['attempts']++);if(this['jitter']){var _0x12e83e=Math['random'](),_0x1f7a14=Math['floor'](_0x12e83e*this['jitter']*_0x39d09d);_0x39d09d=0x1&Math['floor'](0xa*_0x12e83e)?_0x39d09d+_0x1f7a14:_0x39d09d-_0x1f7a14;}return 0x0|Math['min'](_0x39d09d,this['max']);},Backoff['prototype']['reset']=function(){this['attempts']=0x0;},Backoff['prototype']['setMin']=function(_0x3b3a66){this['ms']=_0x3b3a66;},Backoff['prototype']['setMax']=function(_0x339acb){this['max']=_0x339acb;},Backoff['prototype']['setJitter']=function(_0x4480d4){this['jitter']=_0x4480d4;};class Manager extends Emitter{constructor(_0x58c22e,_0x1ad5f9){var _0x540795;super(),this['nsps']={},this['subs']=[],_0x58c22e&&'object'==typeof _0x58c22e&&(_0x1ad5f9=_0x58c22e,_0x58c22e=void 0x0),(_0x1ad5f9=_0x1ad5f9||{})['path']=_0x1ad5f9['path']||'/socket.io',this['opts']=_0x1ad5f9,installTimerFunctions(this,_0x1ad5f9),this['reconnection'](!0x1!==_0x1ad5f9['reconnection']),this['reconnectionAttempts'](_0x1ad5f9['reconnectionAttempts']||0x1/0x0),this['reconnectionDelay'](_0x1ad5f9['reconnectionDelay']||0x3e8),this['reconnectionDelayMax'](_0x1ad5f9['reconnectionDelayMax']||0x1388),this['randomizationFactor'](null!==(_0x540795=_0x1ad5f9['randomizationFactor'])&&void 0x0!==_0x540795?_0x540795:0.5),this['backoff']=new Backoff({'min':this['reconnectionDelay'](),'max':this['reconnectionDelayMax'](),'jitter':this['randomizationFactor']()}),this['timeout'](null==_0x1ad5f9['timeout']?0x4e20:_0x1ad5f9['timeout']),this['_readyState']='closed',this['uri']=_0x58c22e;const _0x34dfb5=_0x1ad5f9['parser']||parser$4;this['encoder']=new _0x34dfb5['Encoder'](),this['decoder']=new _0x34dfb5['Decoder'](),this['_autoConnect']=!0x1!==_0x1ad5f9['autoConnect'],this['_autoConnect']&&this['open']();}['reconnection'](_0x5617a3){return arguments['length']?(this['_reconnection']=!!_0x5617a3,this):this['_reconnection'];}['reconnectionAttempts'](_0x45e538){return void 0x0===_0x45e538?this['_reconnectionAttempts']:(this['_reconnectionAttempts']=_0x45e538,this);}['reconnectionDelay'](_0x810a4c){var _0x43a789;return void 0x0===_0x810a4c?this['_reconnectionDelay']:(this['_reconnectionDelay']=_0x810a4c,null===(_0x43a789=this['backoff'])||void 0x0===_0x43a789||_0x43a789['setMin'](_0x810a4c),this);}['randomizationFactor'](_0x443eb8){var _0x28f207;return void 0x0===_0x443eb8?this['_randomizationFactor']:(this['_randomizationFactor']=_0x443eb8,null===(_0x28f207=this['backoff'])||void 0x0===_0x28f207||_0x28f207['setJitter'](_0x443eb8),this);}['reconnectionDelayMax'](_0x4ed68a){var _0x106355;return void 0x0===_0x4ed68a?this['_reconnectionDelayMax']:(this['_reconnectionDelayMax']=_0x4ed68a,null===(_0x106355=this['backoff'])||void 0x0===_0x106355||_0x106355['setMax'](_0x4ed68a),this);}['timeout'](_0x14637a){return arguments['length']?(this['_timeout']=_0x14637a,this):this['_timeout'];}['maybeReconnectOnOpen'](){!this['_reconnecting']&&this['_reconnection']&&0x0===this['backoff']['attempts']&&this['reconnect']();}['open'](_0x29803b){if(~this['_readyState']['indexOf']('open'))return this;this['engine']=new Socket$1(this['uri'],this['opts']);const _0x535705=this['engine'],_0x10727b=this;this['_readyState']='opening',this['skipReconnect']=!0x1;const _0x4904c0=on(_0x535705,'open',function(){_0x10727b['onopen'](),_0x29803b&&_0x29803b();}),_0x3f784f=_0x35292f=>{this['cleanup'](),this['_readyState']='closed',this['emitReserved']('error',_0x35292f),_0x29803b?_0x29803b(_0x35292f):this['maybeReconnectOnOpen']();},_0x2d624a=on(_0x535705,'error',_0x3f784f);if(!0x1!==this['_timeout']){const _0x1c43a4=this['_timeout'],_0xcd69b=this['setTimeoutFn'](()=>{_0x4904c0(),_0x3f784f(new Error('timeout')),_0x535705['close']();},_0x1c43a4);this['opts']['autoUnref']&&_0xcd69b['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0xcd69b);});}return this['subs']['push'](_0x4904c0),this['subs']['push'](_0x2d624a),this;}['connect'](_0x33db5f){return this['open'](_0x33db5f);}['onopen'](){this['cleanup'](),this['_readyState']='open',this['emitReserved']('open');const _0x37bfa7=this['engine'];this['subs']['push'](on(_0x37bfa7,'ping',this['onping']['bind'](this)),on(_0x37bfa7,'data',this['ondata']['bind'](this)),on(_0x37bfa7,'error',this['onerror']['bind'](this)),on(_0x37bfa7,'close',this['onclose']['bind'](this)),on(this['decoder'],'decoded',this['ondecoded']['bind'](this)));}['onping'](){this['emitReserved']('ping');}['ondata'](_0x5aa559){try{this['decoder']['add'](_0x5aa559);}catch(_0x1ddab3){this['onclose']('parse\x20error',_0x1ddab3);}}['ondecoded'](_0x4e035e){nextTick(()=>{this['emitReserved']('packet',_0x4e035e);},this['setTimeoutFn']);}['onerror'](_0x514c60){this['emitReserved']('error',_0x514c60);}['socket'](_0xca1908,_0x55f755){let _0x2185ad=this['nsps'][_0xca1908];return _0x2185ad?this['_autoConnect']&&!_0x2185ad['active']&&_0x2185ad['connect']():(_0x2185ad=new Socket(this,_0xca1908,_0x55f755),this['nsps'][_0xca1908]=_0x2185ad),_0x2185ad;}['_destroy'](_0x2e4cce){const _0x33dc92=Object['keys'](this['nsps']);for(const _0x3a0d05 of _0x33dc92){if(this['nsps'][_0x3a0d05]['active'])return;}this['_close']();}['_packet'](_0xae4fcd){const _0x5c8f47=this['encoder']['encode'](_0xae4fcd);for(let _0x3566ae=0x0;_0x3566ae<_0x5c8f47['length'];_0x3566ae++)this['engine']['write'](_0x5c8f47[_0x3566ae],_0xae4fcd['options']);}['cleanup'](){this['subs']['forEach'](_0x3935ee=>_0x3935ee()),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'](_0x2119da,_0x16f5d0){this['cleanup'](),this['backoff']['reset'](),this['_readyState']='closed',this['emitReserved']('close',_0x2119da,_0x16f5d0),this['_reconnection']&&!this['skipReconnect']&&this['reconnect']();}['reconnect'](){if(this['_reconnecting']||this['skipReconnect'])return this;const _0x395b71=this;if(this['backoff']['attempts']>=this['_reconnectionAttempts'])this['backoff']['reset'](),this['emitReserved']('reconnect_failed'),this['_reconnecting']=!0x1;else{const _0x4e83a3=this['backoff']['duration']();this['_reconnecting']=!0x0;const _0x1fb8c9=this['setTimeoutFn'](()=>{_0x395b71['skipReconnect']||(this['emitReserved']('reconnect_attempt',_0x395b71['backoff']['attempts']),_0x395b71['skipReconnect']||_0x395b71['open'](_0x419dd3=>{_0x419dd3?(_0x395b71['_reconnecting']=!0x1,_0x395b71['reconnect'](),this['emitReserved']('reconnect_error',_0x419dd3)):_0x395b71['onreconnect']();}));},_0x4e83a3);this['opts']['autoUnref']&&_0x1fb8c9['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x1fb8c9);});}}['onreconnect'](){const _0x3d0c47=this['backoff']['attempts'];this['_reconnecting']=!0x1,this['backoff']['reset'](),this['emitReserved']('reconnect',_0x3d0c47);}}const cache$1={};function lookup(_0x4045e4,_0x212017){'object'==typeof _0x4045e4&&(_0x212017=_0x4045e4,_0x4045e4=void 0x0);const _0x4d934d=url(_0x4045e4,(_0x212017=_0x212017||{})['path']||'/socket.io'),_0x199c77=_0x4d934d['source'],_0x5e7d7c=_0x4d934d['id'],_0x2d4b5c=_0x4d934d['path'],_0x48dad5=cache$1[_0x5e7d7c]&&_0x2d4b5c in cache$1[_0x5e7d7c]['nsps'];let _0x3a6503;return _0x212017['forceNew']||_0x212017['force\x20new\x20connection']||!0x1===_0x212017['multiplex']||_0x48dad5?_0x3a6503=new Manager(_0x199c77,_0x212017):(cache$1[_0x5e7d7c]||(cache$1[_0x5e7d7c]=new Manager(_0x199c77,_0x212017)),_0x3a6503=cache$1[_0x5e7d7c]),_0x4d934d['query']&&!_0x212017['query']&&(_0x212017['query']=_0x4d934d['queryKey']),_0x3a6503['socket'](_0x4d934d['path'],_0x212017);}var requiresPort,hasRequiredRequiresPort;function requireRequiresPort(){return hasRequiredRequiresPort||(hasRequiredRequiresPort=0x1,requiresPort=function(_0xe0b981,_0x1da348){if(_0x1da348=_0x1da348['split'](':')[0x0],!(_0xe0b981=+_0xe0b981))return!0x1;switch(_0x1da348){case'http':case'ws':return 0x50!==_0xe0b981;case'https':case'wss':return 0x1bb!==_0xe0b981;case'ftp':return 0x15!==_0xe0b981;case'gopher':return 0x46!==_0xe0b981;case'file':return!0x1;}return 0x0!==_0xe0b981;}),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 _0x5b5b0=Object['prototype']['hasOwnProperty'];function _0x59a4ef(_0x165c6e){try{return decodeURIComponent(_0x165c6e['replace'](/\+/g,'\x20'));}catch(_0x117450){return null;}}function _0x25379d(_0x3a6036){try{return encodeURIComponent(_0x3a6036);}catch(_0x4c6ed4){return null;}}return querystringify['stringify']=function(_0x36ec2e,_0x55c99a){_0x55c99a=_0x55c99a||'';var _0x39af59,_0x4a5740,_0x1a6948=[];for(_0x4a5740 in('string'!=typeof _0x55c99a&&(_0x55c99a='?'),_0x36ec2e))if(_0x5b5b0['call'](_0x36ec2e,_0x4a5740)){if((_0x39af59=_0x36ec2e[_0x4a5740])||null!=_0x39af59&&!isNaN(_0x39af59)||(_0x39af59=''),_0x4a5740=_0x25379d(_0x4a5740),_0x39af59=_0x25379d(_0x39af59),null===_0x4a5740||null===_0x39af59)continue;_0x1a6948['push'](_0x4a5740+'='+_0x39af59);}return _0x1a6948['length']?_0x55c99a+_0x1a6948['join']('&'):'';},querystringify['parse']=function(_0x18ff56){for(var _0x52bbe9,_0x5c7650=/([^=?#&]+)=?([^&]*)/g,_0x37aa91={};_0x52bbe9=_0x5c7650['exec'](_0x18ff56);){var _0x1c2025=_0x59a4ef(_0x52bbe9[0x1]),_0x1bc2b3=_0x59a4ef(_0x52bbe9[0x2]);null===_0x1c2025||null===_0x1bc2b3||_0x1c2025 in _0x37aa91||(_0x37aa91[_0x1c2025]=_0x1bc2b3);}return _0x37aa91;},querystringify;}function requireUrlParse(){if(hasRequiredUrlParse)return urlParse;hasRequiredUrlParse=0x1;var _0x25ca35=requireRequiresPort(),_0x6c5f8b=requireQuerystringify(),_0x36e8bd=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,_0xdb297d=/[\n\r\t]/g,_0x38656f=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,_0x1d335f=/:\d+$/,_0x36ccdc=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,_0x2e4804=/^[a-zA-Z]:/;function _0x4cb3b4(_0x187f99){return(_0x187f99||'')['toString']()['replace'](_0x36e8bd,'');}var _0x4694cf=[['#','hash'],['?','query'],function(_0x424984,_0x370bef){return _0x458a6a(_0x370bef['protocol'])?_0x424984['replace'](/\\/g,'/'):_0x424984;},['/','pathname'],['@','auth',0x1],[NaN,'host',void 0x0,0x1,0x1],[/:(\d*)$/,'port',void 0x0,0x1],[NaN,'hostname',void 0x0,0x1,0x1]],_0x439c84={'hash':0x1,'query':0x1};function _0x5d7be0(_0x1efeda){var _0xec72eb,_0x583e16=('undefined'!=typeof window?window:void 0x0!==commonjsGlobal?commonjsGlobal:'undefined'!=typeof self?self:{})['location']||{},_0x5bddfe={},_0x29cb4c=typeof(_0x1efeda=_0x1efeda||_0x583e16);if('blob:'===_0x1efeda['protocol'])_0x5bddfe=new _0x27ff37(unescape(_0x1efeda['pathname']),{});else{if('string'===_0x29cb4c){for(_0xec72eb in(_0x5bddfe=new _0x27ff37(_0x1efeda,{}),_0x439c84))delete _0x5bddfe[_0xec72eb];}else{if('object'===_0x29cb4c){for(_0xec72eb in _0x1efeda)_0xec72eb in _0x439c84||(_0x5bddfe[_0xec72eb]=_0x1efeda[_0xec72eb]);void 0x0===_0x5bddfe['slashes']&&(_0x5bddfe['slashes']=_0x38656f['test'](_0x1efeda['href']));}}}return _0x5bddfe;}function _0x458a6a(_0xef1437){return'file:'===_0xef1437||'ftp:'===_0xef1437||'http:'===_0xef1437||'https:'===_0xef1437||'ws:'===_0xef1437||'wss:'===_0xef1437;}function _0x557c7d(_0xd55a9f,_0x1120cc){_0xd55a9f=(_0xd55a9f=_0x4cb3b4(_0xd55a9f))['replace'](_0xdb297d,''),_0x1120cc=_0x1120cc||{};var _0x149e32,_0x13a458=_0x36ccdc['exec'](_0xd55a9f),_0x4de611=_0x13a458[0x1]?_0x13a458[0x1]['toLowerCase']():'',_0x282c96=!!_0x13a458[0x2],_0x51efca=!!_0x13a458[0x3],_0x165b1b=0x0;return _0x282c96?_0x51efca?(_0x149e32=_0x13a458[0x2]+_0x13a458[0x3]+_0x13a458[0x4],_0x165b1b=_0x13a458[0x2]['length']+_0x13a458[0x3]['length']):(_0x149e32=_0x13a458[0x2]+_0x13a458[0x4],_0x165b1b=_0x13a458[0x2]['length']):_0x51efca?(_0x149e32=_0x13a458[0x3]+_0x13a458[0x4],_0x165b1b=_0x13a458[0x3]['length']):_0x149e32=_0x13a458[0x4],'file:'===_0x4de611?_0x165b1b>=0x2&&(_0x149e32=_0x149e32['slice'](0x2)):_0x458a6a(_0x4de611)?_0x149e32=_0x13a458[0x4]:_0x4de611?_0x282c96&&(_0x149e32=_0x149e32['slice'](0x2)):_0x165b1b>=0x2&&_0x458a6a(_0x1120cc['protocol'])&&(_0x149e32=_0x13a458[0x4]),{'protocol':_0x4de611,'slashes':_0x282c96||_0x458a6a(_0x4de611),'slashesCount':_0x165b1b,'rest':_0x149e32};}function _0x27ff37(_0x2fc4be,_0x199c72,_0xdcf14c){if(_0x2fc4be=(_0x2fc4be=_0x4cb3b4(_0x2fc4be))['replace'](_0xdb297d,''),!(this instanceof _0x27ff37))return new _0x27ff37(_0x2fc4be,_0x199c72,_0xdcf14c);var _0x3db941,_0x1a9ece,_0x5627b6,_0x23b115,_0x507029,_0x22a546,_0xa18eb9=_0x4694cf['slice'](),_0x5dc7f0=typeof _0x199c72,_0x515ef7=this,_0x564c93=0x0;for('object'!==_0x5dc7f0&&'string'!==_0x5dc7f0&&(_0xdcf14c=_0x199c72,_0x199c72=null),_0xdcf14c&&'function'!=typeof _0xdcf14c&&(_0xdcf14c=_0x6c5f8b['parse']),_0x3db941=!(_0x1a9ece=_0x557c7d(_0x2fc4be||'',_0x199c72=_0x5d7be0(_0x199c72)))['protocol']&&!_0x1a9ece['slashes'],_0x515ef7['slashes']=_0x1a9ece['slashes']||_0x3db941&&_0x199c72['slashes'],_0x515ef7['protocol']=_0x1a9ece['protocol']||_0x199c72['protocol']||'',_0x2fc4be=_0x1a9ece['rest'],('file:'===_0x1a9ece['protocol']&&(0x2!==_0x1a9ece['slashesCount']||_0x2e4804['test'](_0x2fc4be))||!_0x1a9ece['slashes']&&(_0x1a9ece['protocol']||_0x1a9ece['slashesCount']<0x2||!_0x458a6a(_0x515ef7['protocol'])))&&(_0xa18eb9[0x3]=[/(.*)/,'pathname']);_0x564c93<_0xa18eb9['length'];_0x564c93++)'function'!=typeof(_0x23b115=_0xa18eb9[_0x564c93])?(_0x5627b6=_0x23b115[0x0],_0x22a546=_0x23b115[0x1],_0x5627b6!=_0x5627b6?_0x515ef7[_0x22a546]=_0x2fc4be:'string'==typeof _0x5627b6?~(_0x507029='@'===_0x5627b6?_0x2fc4be['lastIndexOf'](_0x5627b6):_0x2fc4be['indexOf'](_0x5627b6))&&('number'==typeof _0x23b115[0x2]?(_0x515ef7[_0x22a546]=_0x2fc4be['slice'](0x0,_0x507029),_0x2fc4be=_0x2fc4be['slice'](_0x507029+_0x23b115[0x2])):(_0x515ef7[_0x22a546]=_0x2fc4be['slice'](_0x507029),_0x2fc4be=_0x2fc4be['slice'](0x0,_0x507029))):(_0x507029=_0x5627b6['exec'](_0x2fc4be))&&(_0x515ef7[_0x22a546]=_0x507029[0x1],_0x2fc4be=_0x2fc4be['slice'](0x0,_0x507029['index'])),_0x515ef7[_0x22a546]=_0x515ef7[_0x22a546]||_0x3db941&&_0x23b115[0x3]&&_0x199c72[_0x22a546]||'',_0x23b115[0x4]&&(_0x515ef7[_0x22a546]=_0x515ef7[_0x22a546]['toLowerCase']())):_0x2fc4be=_0x23b115(_0x2fc4be,_0x515ef7);_0xdcf14c&&(_0x515ef7['query']=_0xdcf14c(_0x515ef7['query'])),_0x3db941&&_0x199c72['slashes']&&'/'!==_0x515ef7['pathname']['charAt'](0x0)&&(''!==_0x515ef7['pathname']||''!==_0x199c72['pathname'])&&(_0x515ef7['pathname']=function(_0x377671,_0x56169f){if(''===_0x377671)return _0x56169f;for(var _0x4291b9=(_0x56169f||'/')['split']('/')['slice'](0x0,-0x1)['concat'](_0x377671['split']('/')),_0x175709=_0x4291b9['length'],_0x19c776=_0x4291b9[_0x175709-0x1],_0x35b94f=!0x1,_0x239c30=0x0;_0x175709--;)'.'===_0x4291b9[_0x175709]?_0x4291b9['splice'](_0x175709,0x1):'..'===_0x4291b9[_0x175709]?(_0x4291b9['splice'](_0x175709,0x1),_0x239c30++):_0x239c30&&(0x0===_0x175709&&(_0x35b94f=!0x0),_0x4291b9['splice'](_0x175709,0x1),_0x239c30--);return _0x35b94f&&_0x4291b9['unshift'](''),'.'!==_0x19c776&&'..'!==_0x19c776||_0x4291b9['push'](''),_0x4291b9['join']('/');}(_0x515ef7['pathname'],_0x199c72['pathname'])),'/'!==_0x515ef7['pathname']['charAt'](0x0)&&_0x458a6a(_0x515ef7['protocol'])&&(_0x515ef7['pathname']='/'+_0x515ef7['pathname']),_0x25ca35(_0x515ef7['port'],_0x515ef7['protocol'])||(_0x515ef7['host']=_0x515ef7['hostname'],_0x515ef7['port']=''),_0x515ef7['username']=_0x515ef7['password']='',_0x515ef7['auth']&&(~(_0x507029=_0x515ef7['auth']['indexOf'](':'))?(_0x515ef7['username']=_0x515ef7['auth']['slice'](0x0,_0x507029),_0x515ef7['username']=encodeURIComponent(decodeURIComponent(_0x515ef7['username'])),_0x515ef7['password']=_0x515ef7['auth']['slice'](_0x507029+0x1),_0x515ef7['password']=encodeURIComponent(decodeURIComponent(_0x515ef7['password']))):_0x515ef7['username']=encodeURIComponent(decodeURIComponent(_0x515ef7['auth'])),_0x515ef7['auth']=_0x515ef7['password']?_0x515ef7['username']+':'+_0x515ef7['password']:_0x515ef7['username']),_0x515ef7['origin']='file:'!==_0x515ef7['protocol']&&_0x458a6a(_0x515ef7['protocol'])&&_0x515ef7['host']?_0x515ef7['protocol']+'//'+_0x515ef7['host']:'null',_0x515ef7['href']=_0x515ef7['toString']();}return _0x27ff37['prototype']={'set':function(_0x128b7d,_0x1d81fc,_0x3cceb0){var _0x531f7b=this;switch(_0x128b7d){case'query':'string'==typeof _0x1d81fc&&_0x1d81fc['length']&&(_0x1d81fc=(_0x3cceb0||_0x6c5f8b['parse'])(_0x1d81fc)),_0x531f7b[_0x128b7d]=_0x1d81fc;break;case'port':_0x531f7b[_0x128b7d]=_0x1d81fc,_0x25ca35(_0x1d81fc,_0x531f7b['protocol'])?_0x1d81fc&&(_0x531f7b['host']=_0x531f7b['hostname']+':'+_0x1d81fc):(_0x531f7b['host']=_0x531f7b['hostname'],_0x531f7b[_0x128b7d]='');break;case'hostname':_0x531f7b[_0x128b7d]=_0x1d81fc,_0x531f7b['port']&&(_0x1d81fc+=':'+_0x531f7b['port']),_0x531f7b['host']=_0x1d81fc;break;case'host':_0x531f7b[_0x128b7d]=_0x1d81fc,_0x1d335f['test'](_0x1d81fc)?(_0x1d81fc=_0x1d81fc['split'](':'),_0x531f7b['port']=_0x1d81fc['pop'](),_0x531f7b['hostname']=_0x1d81fc['join'](':')):(_0x531f7b['hostname']=_0x1d81fc,_0x531f7b['port']='');break;case'protocol':_0x531f7b['protocol']=_0x1d81fc['toLowerCase'](),_0x531f7b['slashes']=!_0x3cceb0;break;case'pathname':case'hash':if(_0x1d81fc){var _0x6fb31e='pathname'===_0x128b7d?'/':'#';_0x531f7b[_0x128b7d]=_0x1d81fc['charAt'](0x0)!==_0x6fb31e?_0x6fb31e+_0x1d81fc:_0x1d81fc;}else _0x531f7b[_0x128b7d]=_0x1d81fc;break;case'username':case'password':_0x531f7b[_0x128b7d]=encodeURIComponent(_0x1d81fc);break;case'auth':var _0x1bf0c3=_0x1d81fc['indexOf'](':');~_0x1bf0c3?(_0x531f7b['username']=_0x1d81fc['slice'](0x0,_0x1bf0c3),_0x531f7b['username']=encodeURIComponent(decodeURIComponent(_0x531f7b['username'])),_0x531f7b['password']=_0x1d81fc['slice'](_0x1bf0c3+0x1),_0x531f7b['password']=encodeURIComponent(decodeURIComponent(_0x531f7b['password']))):_0x531f7b['username']=encodeURIComponent(decodeURIComponent(_0x1d81fc));}for(var _0x3ad02d=0x0;_0x3ad02d<_0x4694cf['length'];_0x3ad02d++){var _0x3c311d=_0x4694cf[_0x3ad02d];_0x3c311d[0x4]&&(_0x531f7b[_0x3c311d[0x1]]=_0x531f7b[_0x3c311d[0x1]]['toLowerCase']());}return _0x531f7b['auth']=_0x531f7b['password']?_0x531f7b['username']+':'+_0x531f7b['password']:_0x531f7b['username'],_0x531f7b['origin']='file:'!==_0x531f7b['protocol']&&_0x458a6a(_0x531f7b['protocol'])&&_0x531f7b['host']?_0x531f7b['protocol']+'//'+_0x531f7b['host']:'null',_0x531f7b['href']=_0x531f7b['toString'](),_0x531f7b;},'toString':function(_0x1368ce){_0x1368ce&&'function'==typeof _0x1368ce||(_0x1368ce=_0x6c5f8b['stringify']);var _0x515175,_0x46d50e=this,_0x420093=_0x46d50e['host'],_0x1d5ab1=_0x46d50e['protocol'];_0x1d5ab1&&':'!==_0x1d5ab1['charAt'](_0x1d5ab1['length']-0x1)&&(_0x1d5ab1+=':');var _0x48ea82=_0x1d5ab1+(_0x46d50e['protocol']&&_0x46d50e['slashes']||_0x458a6a(_0x46d50e['protocol'])?'//':'');return _0x46d50e['username']?(_0x48ea82+=_0x46d50e['username'],_0x46d50e['password']&&(_0x48ea82+=':'+_0x46d50e['password']),_0x48ea82+='@'):_0x46d50e['password']?(_0x48ea82+=':'+_0x46d50e['password'],_0x48ea82+='@'):'file:'!==_0x46d50e['protocol']&&_0x458a6a(_0x46d50e['protocol'])&&!_0x420093&&'/'!==_0x46d50e['pathname']&&(_0x48ea82+='@'),(':'===_0x420093[_0x420093['length']-0x1]||_0x1d335f['test'](_0x46d50e['hostname'])&&!_0x46d50e['port'])&&(_0x420093+=':'),_0x48ea82+=_0x420093+_0x46d50e['pathname'],(_0x515175='object'==typeof _0x46d50e['query']?_0x1368ce(_0x46d50e['query']):_0x46d50e['query'])&&(_0x48ea82+='?'!==_0x515175['charAt'](0x0)?'?'+_0x515175:_0x515175),_0x46d50e['hash']&&(_0x48ea82+=_0x46d50e['hash']),_0x48ea82;}},_0x27ff37['extractProtocol']=_0x557c7d,_0x27ff37['location']=_0x5d7be0,_0x27ff37['trimLeft']=_0x4cb3b4,_0x27ff37['qs']=_0x6c5f8b,urlParse=_0x27ff37;}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(_0xa232e6,_0x1c4e17=0x0){return byteToHex[_0xa232e6[_0x1c4e17+0x0]]+byteToHex[_0xa232e6[_0x1c4e17+0x1]]+byteToHex[_0xa232e6[_0x1c4e17+0x2]]+byteToHex[_0xa232e6[_0x1c4e17+0x3]]+'-'+byteToHex[_0xa232e6[_0x1c4e17+0x4]]+byteToHex[_0xa232e6[_0x1c4e17+0x5]]+'-'+byteToHex[_0xa232e6[_0x1c4e17+0x6]]+byteToHex[_0xa232e6[_0x1c4e17+0x7]]+'-'+byteToHex[_0xa232e6[_0x1c4e17+0x8]]+byteToHex[_0xa232e6[_0x1c4e17+0x9]]+'-'+byteToHex[_0xa232e6[_0x1c4e17+0xa]]+byteToHex[_0xa232e6[_0x1c4e17+0xb]]+byteToHex[_0xa232e6[_0x1c4e17+0xc]]+byteToHex[_0xa232e6[_0x1c4e17+0xd]]+byteToHex[_0xa232e6[_0x1c4e17+0xe]]+byteToHex[_0xa232e6[_0x1c4e17+0xf]];}const randomUUID='undefined'!=typeof crypto&&crypto['randomUUID']&&crypto['randomUUID']['bind'](crypto);var native$1={'randomUUID':randomUUID};function v4(_0x686648,_0x54104b,_0x3d1d2e){if(native$1['randomUUID']&&!_0x686648)return native$1['randomUUID']();const _0xf470b5=(_0x686648=_0x686648||{})['random']||(_0x686648['rng']||rng)();return _0xf470b5[0x6]=0xf&_0xf470b5[0x6]|0x40,_0xf470b5[0x8]=0x3f&_0xf470b5[0x8]|0x80,unsafeStringify(_0xf470b5);}class Descriptor{static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x2ed67a){}}class Message extends Descriptor{static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x229a5c){super();}static['fromJSON'](_0x4f2212){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(_0x4c432b){super(),this['id']=_0x4c432b;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x32f4d0){return new GetUserMessage(_0x32f4d0['id']);}}class GetUserResponse extends Message{['attributes'];static ['DESCRIPTOR_NAME']='GetUserResponse';static ['DESCRIPTOR']={'fields':{'attributes':{'rule':'repeated','type':'KeyValueDescriptor','id':0x1}}};constructor(_0x34c1dd){super(),this['attributes']=_0x34c1dd;}['toJSON'](){return{'attributes':Object['keys'](this['attributes'])['map'](_0x7620c9=>({'key':_0x7620c9,'value':JSON['stringify'](this['attributes'][_0x7620c9])}))};}static['fromJSON'](_0x81a2c4){const _0x26327f=_0x81a2c4['attributes']['reduce']((_0xe87a7d,_0x1e8384)=>(_0xe87a7d[_0x1e8384['key']]=_0x1e8384['value']?JSON['parse'](_0x1e8384['value']):null,_0xe87a7d),{});return new GetUserResponse(_0x26327f);}}const messages$1=/* #__PURE__ -- @preserve */
((()=>{var _0x10ed9a=minimalExports['Reader'],_0x214d5c=minimalExports['Writer'],_0x17c6dc=minimalExports['util'],_0x1d55ed=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0x1d55ed['StringStringPacketDataMessage']=(function(){function _0x1b2ac3(_0x5f23d1){if(_0x5f23d1){for(var _0xfae100=Object['keys'](_0x5f23d1),_0x53eee5=0x0;_0x53eee5<_0xfae100['length'];++_0x53eee5)null!=_0x5f23d1[_0xfae100[_0x53eee5]]&&(this[_0xfae100[_0x53eee5]]=_0x5f23d1[_0xfae100[_0x53eee5]]);}}return _0x1b2ac3['prototype']['data']='',_0x1b2ac3['prototype']['data1']='',_0x1b2ac3['create']=function(_0x351ccd){return new _0x1b2ac3(_0x351ccd);},_0x1b2ac3['encode']=function(_0x570994,_0x8b3ba8){return _0x8b3ba8||(_0x8b3ba8=_0x214d5c['create']()),null!=_0x570994['data']&&Object['hasOwnProperty']['call'](_0x570994,'data')&&_0x8b3ba8['uint32'](0xa)['string'](_0x570994['data']),null!=_0x570994['data1']&&Object['hasOwnProperty']['call'](_0x570994,'data1')&&_0x8b3ba8['uint32'](0x12)['string'](_0x570994['data1']),_0x8b3ba8;},_0x1b2ac3['encodeDelimited']=function(_0x2f1ee5,_0x2ff814){return this['encode'](_0x2f1ee5,_0x2ff814)['ldelim']();},_0x1b2ac3['decode']=function(_0x3dcbc6,_0x56646f,_0x18a609){_0x3dcbc6 instanceof _0x10ed9a||(_0x3dcbc6=_0x10ed9a['create'](_0x3dcbc6));for(var _0x36a85e=void 0x0===_0x56646f?_0x3dcbc6['len']:_0x3dcbc6['pos']+_0x56646f,_0x2a3eee=new _0x1d55ed['StringStringPacketDataMessage']();_0x3dcbc6['pos']<_0x36a85e;){var _0x1ae67d=_0x3dcbc6['uint32']();if(_0x1ae67d===_0x18a609)break;switch(_0x1ae67d>>>0x3){case 0x1:_0x2a3eee['data']=_0x3dcbc6['string']();break;case 0x2:_0x2a3eee['data1']=_0x3dcbc6['string']();break;default:_0x3dcbc6['skipType'](0x7&_0x1ae67d);}}return _0x2a3eee;},_0x1b2ac3['decodeDelimited']=function(_0x31d893){return _0x31d893 instanceof _0x10ed9a||(_0x31d893=new _0x10ed9a(_0x31d893)),this['decode'](_0x31d893,_0x31d893['uint32']());},_0x1b2ac3['verify']=function(_0x551b80){return'object'!=typeof _0x551b80||null===_0x551b80?'object\x20expected':null!=_0x551b80['data']&&_0x551b80['hasOwnProperty']('data')&&!_0x17c6dc['isString'](_0x551b80['data'])?'data:\x20string\x20expected':null!=_0x551b80['data1']&&_0x551b80['hasOwnProperty']('data1')&&!_0x17c6dc['isString'](_0x551b80['data1'])?'data1:\x20string\x20expected':null;},_0x1b2ac3['fromObject']=function(_0x1b2070){if(_0x1b2070 instanceof _0x1d55ed['StringStringPacketDataMessage'])return _0x1b2070;var _0x46bc99=new _0x1d55ed['StringStringPacketDataMessage']();return null!=_0x1b2070['data']&&(_0x46bc99['data']=String(_0x1b2070['data'])),null!=_0x1b2070['data1']&&(_0x46bc99['data1']=String(_0x1b2070['data1'])),_0x46bc99;},_0x1b2ac3['toObject']=function(_0x613601,_0x138660){_0x138660||(_0x138660={});var _0x49bacb={};return _0x138660['defaults']&&(_0x49bacb['data']='',_0x49bacb['data1']=''),null!=_0x613601['data']&&_0x613601['hasOwnProperty']('data')&&(_0x49bacb['data']=_0x613601['data']),null!=_0x613601['data1']&&_0x613601['hasOwnProperty']('data1')&&(_0x49bacb['data1']=_0x613601['data1']),_0x49bacb;},_0x1b2ac3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1b2ac3['getTypeUrl']=function(_0x1558b4){return void 0x0===_0x1558b4&&(_0x1558b4='type.googleapis.com'),_0x1558b4+'/StringStringPacketDataMessage';},_0x1b2ac3;}()),_0x1d55ed['StringObjectPacketDataMessage']=(function(){function _0x53cdea(_0x508f59){if(_0x508f59){for(var _0x35f4e5=Object['keys'](_0x508f59),_0x5f5432=0x0;_0x5f5432<_0x35f4e5['length'];++_0x5f5432)null!=_0x508f59[_0x35f4e5[_0x5f5432]]&&(this[_0x35f4e5[_0x5f5432]]=_0x508f59[_0x35f4e5[_0x5f5432]]);}}return _0x53cdea['prototype']['data']='',_0x53cdea['prototype']['data1']='',_0x53cdea['create']=function(_0x43fdf8){return new _0x53cdea(_0x43fdf8);},_0x53cdea['encode']=function(_0x62839,_0x49005f){return _0x49005f||(_0x49005f=_0x214d5c['create']()),null!=_0x62839['data']&&Object['hasOwnProperty']['call'](_0x62839,'data')&&_0x49005f['uint32'](0xa)['string'](_0x62839['data']),null!=_0x62839['data1']&&Object['hasOwnProperty']['call'](_0x62839,'data1')&&_0x49005f['uint32'](0x12)['string'](_0x62839['data1']),_0x49005f;},_0x53cdea['encodeDelimited']=function(_0x2cf4e4,_0x573ef0){return this['encode'](_0x2cf4e4,_0x573ef0)['ldelim']();},_0x53cdea['decode']=function(_0x4c5c9c,_0x47c869,_0x160c32){_0x4c5c9c instanceof _0x10ed9a||(_0x4c5c9c=_0x10ed9a['create'](_0x4c5c9c));for(var _0x38026e=void 0x0===_0x47c869?_0x4c5c9c['len']:_0x4c5c9c['pos']+_0x47c869,_0x248134=new _0x1d55ed['StringObjectPacketDataMessage']();_0x4c5c9c['pos']<_0x38026e;){var _0x52c92d=_0x4c5c9c['uint32']();if(_0x52c92d===_0x160c32)break;switch(_0x52c92d>>>0x3){case 0x1:_0x248134['data']=_0x4c5c9c['string']();break;case 0x2:_0x248134['data1']=_0x4c5c9c['string']();break;default:_0x4c5c9c['skipType'](0x7&_0x52c92d);}}return _0x248134;},_0x53cdea['decodeDelimited']=function(_0x2a47d2){return _0x2a47d2 instanceof _0x10ed9a||(_0x2a47d2=new _0x10ed9a(_0x2a47d2)),this['decode'](_0x2a47d2,_0x2a47d2['uint32']());},_0x53cdea['verify']=function(_0x5c9853){return'object'!=typeof _0x5c9853||null===_0x5c9853?'object\x20expected':null!=_0x5c9853['data']&&_0x5c9853['hasOwnProperty']('data')&&!_0x17c6dc['isString'](_0x5c9853['data'])?'data:\x20string\x20expected':null!=_0x5c9853['data1']&&_0x5c9853['hasOwnProperty']('data1')&&!_0x17c6dc['isString'](_0x5c9853['data1'])?'data1:\x20string\x20expected':null;},_0x53cdea['fromObject']=function(_0x1eaff7){if(_0x1eaff7 instanceof _0x1d55ed['StringObjectPacketDataMessage'])return _0x1eaff7;var _0x4a7b00=new _0x1d55ed['StringObjectPacketDataMessage']();return null!=_0x1eaff7['data']&&(_0x4a7b00['data']=String(_0x1eaff7['data'])),null!=_0x1eaff7['data1']&&(_0x4a7b00['data1']=String(_0x1eaff7['data1'])),_0x4a7b00;},_0x53cdea['toObject']=function(_0x3dfd7f,_0x473008){_0x473008||(_0x473008={});var _0x134801={};return _0x473008['defaults']&&(_0x134801['data']='',_0x134801['data1']=''),null!=_0x3dfd7f['data']&&_0x3dfd7f['hasOwnProperty']('data')&&(_0x134801['data']=_0x3dfd7f['data']),null!=_0x3dfd7f['data1']&&_0x3dfd7f['hasOwnProperty']('data1')&&(_0x134801['data1']=_0x3dfd7f['data1']),_0x134801;},_0x53cdea['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x53cdea['getTypeUrl']=function(_0x206bc3){return void 0x0===_0x206bc3&&(_0x206bc3='type.googleapis.com'),_0x206bc3+'/StringObjectPacketDataMessage';},_0x53cdea;}()),_0x1d55ed['StringNumberPacketDataMessage']=(function(){function _0x5adba8(_0x473548){if(_0x473548){for(var _0x31ce39=Object['keys'](_0x473548),_0x1ae045=0x0;_0x1ae045<_0x31ce39['length'];++_0x1ae045)null!=_0x473548[_0x31ce39[_0x1ae045]]&&(this[_0x31ce39[_0x1ae045]]=_0x473548[_0x31ce39[_0x1ae045]]);}}return _0x5adba8['prototype']['data']='',_0x5adba8['prototype']['data1']=0x0,_0x5adba8['create']=function(_0x4b0a15){return new _0x5adba8(_0x4b0a15);},_0x5adba8['encode']=function(_0x2f5865,_0x1dab0d){return _0x1dab0d||(_0x1dab0d=_0x214d5c['create']()),null!=_0x2f5865['data']&&Object['hasOwnProperty']['call'](_0x2f5865,'data')&&_0x1dab0d['uint32'](0xa)['string'](_0x2f5865['data']),null!=_0x2f5865['data1']&&Object['hasOwnProperty']['call'](_0x2f5865,'data1')&&_0x1dab0d['uint32'](0x10)['uint32'](_0x2f5865['data1']),_0x1dab0d;},_0x5adba8['encodeDelimited']=function(_0x5e4369,_0x502f4c){return this['encode'](_0x5e4369,_0x502f4c)['ldelim']();},_0x5adba8['decode']=function(_0x1e8b47,_0x1c8430,_0x20b946){_0x1e8b47 instanceof _0x10ed9a||(_0x1e8b47=_0x10ed9a['create'](_0x1e8b47));for(var _0x5eddb6=void 0x0===_0x1c8430?_0x1e8b47['len']:_0x1e8b47['pos']+_0x1c8430,_0x4597ac=new _0x1d55ed['StringNumberPacketDataMessage']();_0x1e8b47['pos']<_0x5eddb6;){var _0x26a129=_0x1e8b47['uint32']();if(_0x26a129===_0x20b946)break;switch(_0x26a129>>>0x3){case 0x1:_0x4597ac['data']=_0x1e8b47['string']();break;case 0x2:_0x4597ac['data1']=_0x1e8b47['uint32']();break;default:_0x1e8b47['skipType'](0x7&_0x26a129);}}return _0x4597ac;},_0x5adba8['decodeDelimited']=function(_0x7abf30){return _0x7abf30 instanceof _0x10ed9a||(_0x7abf30=new _0x10ed9a(_0x7abf30)),this['decode'](_0x7abf30,_0x7abf30['uint32']());},_0x5adba8['verify']=function(_0x114845){return'object'!=typeof _0x114845||null===_0x114845?'object\x20expected':null!=_0x114845['data']&&_0x114845['hasOwnProperty']('data')&&!_0x17c6dc['isString'](_0x114845['data'])?'data:\x20string\x20expected':null!=_0x114845['data1']&&_0x114845['hasOwnProperty']('data1')&&!_0x17c6dc['isInteger'](_0x114845['data1'])?'data1:\x20integer\x20expected':null;},_0x5adba8['fromObject']=function(_0xe26454){if(_0xe26454 instanceof _0x1d55ed['StringNumberPacketDataMessage'])return _0xe26454;var _0x29b2df=new _0x1d55ed['StringNumberPacketDataMessage']();return null!=_0xe26454['data']&&(_0x29b2df['data']=String(_0xe26454['data'])),null!=_0xe26454['data1']&&(_0x29b2df['data1']=_0xe26454['data1']>>>0x0),_0x29b2df;},_0x5adba8['toObject']=function(_0x31b228,_0x3449f0){_0x3449f0||(_0x3449f0={});var _0x388b8d={};return _0x3449f0['defaults']&&(_0x388b8d['data']='',_0x388b8d['data1']=0x0),null!=_0x31b228['data']&&_0x31b228['hasOwnProperty']('data')&&(_0x388b8d['data']=_0x31b228['data']),null!=_0x31b228['data1']&&_0x31b228['hasOwnProperty']('data1')&&(_0x388b8d['data1']=_0x31b228['data1']),_0x388b8d;},_0x5adba8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5adba8['getTypeUrl']=function(_0x1c78e3){return void 0x0===_0x1c78e3&&(_0x1c78e3='type.googleapis.com'),_0x1c78e3+'/StringNumberPacketDataMessage';},_0x5adba8;}()),_0x1d55ed['StringBytesPacketDataMessage']=(function(){function _0x1401e7(_0x5ad65f){if(_0x5ad65f){for(var _0x4d5a33=Object['keys'](_0x5ad65f),_0x453608=0x0;_0x453608<_0x4d5a33['length'];++_0x453608)null!=_0x5ad65f[_0x4d5a33[_0x453608]]&&(this[_0x4d5a33[_0x453608]]=_0x5ad65f[_0x4d5a33[_0x453608]]);}}return _0x1401e7['prototype']['data']='',_0x1401e7['prototype']['data1']=_0x17c6dc['newBuffer']([]),_0x1401e7['create']=function(_0x95f069){return new _0x1401e7(_0x95f069);},_0x1401e7['encode']=function(_0x50385d,_0x317963){return _0x317963||(_0x317963=_0x214d5c['create']()),null!=_0x50385d['data']&&Object['hasOwnProperty']['call'](_0x50385d,'data')&&_0x317963['uint32'](0xa)['string'](_0x50385d['data']),null!=_0x50385d['data1']&&Object['hasOwnProperty']['call'](_0x50385d,'data1')&&_0x317963['uint32'](0x12)['bytes'](_0x50385d['data1']),_0x317963;},_0x1401e7['encodeDelimited']=function(_0x178963,_0x1fe6c7){return this['encode'](_0x178963,_0x1fe6c7)['ldelim']();},_0x1401e7['decode']=function(_0x541fb4,_0x376409,_0x14daee){_0x541fb4 instanceof _0x10ed9a||(_0x541fb4=_0x10ed9a['create'](_0x541fb4));for(var _0x3578a7=void 0x0===_0x376409?_0x541fb4['len']:_0x541fb4['pos']+_0x376409,_0x2e5efa=new _0x1d55ed['StringBytesPacketDataMessage']();_0x541fb4['pos']<_0x3578a7;){var _0xd05101=_0x541fb4['uint32']();if(_0xd05101===_0x14daee)break;switch(_0xd05101>>>0x3){case 0x1:_0x2e5efa['data']=_0x541fb4['string']();break;case 0x2:_0x2e5efa['data1']=_0x541fb4['bytes']();break;default:_0x541fb4['skipType'](0x7&_0xd05101);}}return _0x2e5efa;},_0x1401e7['decodeDelimited']=function(_0x401066){return _0x401066 instanceof _0x10ed9a||(_0x401066=new _0x10ed9a(_0x401066)),this['decode'](_0x401066,_0x401066['uint32']());},_0x1401e7['verify']=function(_0x4015c7){return'object'!=typeof _0x4015c7||null===_0x4015c7?'object\x20expected':null!=_0x4015c7['data']&&_0x4015c7['hasOwnProperty']('data')&&!_0x17c6dc['isString'](_0x4015c7['data'])?'data:\x20string\x20expected':null!=_0x4015c7['data1']&&_0x4015c7['hasOwnProperty']('data1')&&!(_0x4015c7['data1']&&'number'==typeof _0x4015c7['data1']['length']||_0x17c6dc['isString'](_0x4015c7['data1']))?'data1:\x20buffer\x20expected':null;},_0x1401e7['fromObject']=function(_0x22c19b){if(_0x22c19b instanceof _0x1d55ed['StringBytesPacketDataMessage'])return _0x22c19b;var _0x5c9906=new _0x1d55ed['StringBytesPacketDataMessage']();return null!=_0x22c19b['data']&&(_0x5c9906['data']=String(_0x22c19b['data'])),null!=_0x22c19b['data1']&&('string'==typeof _0x22c19b['data1']?_0x17c6dc['base64']['decode'](_0x22c19b['data1'],_0x5c9906['data1']=_0x17c6dc['newBuffer'](_0x17c6dc['base64']['length'](_0x22c19b['data1'])),0x0):_0x22c19b['data1']['length']>=0x0&&(_0x5c9906['data1']=_0x22c19b['data1'])),_0x5c9906;},_0x1401e7['toObject']=function(_0x1b95b0,_0x1b3a97){_0x1b3a97||(_0x1b3a97={});var _0x4272fa={};return _0x1b3a97['defaults']&&(_0x4272fa['data']='',_0x1b3a97['bytes']===String?_0x4272fa['data1']='':(_0x4272fa['data1']=[],_0x1b3a97['bytes']!==Array&&(_0x4272fa['data1']=_0x17c6dc['newBuffer'](_0x4272fa['data1'])))),null!=_0x1b95b0['data']&&_0x1b95b0['hasOwnProperty']('data')&&(_0x4272fa['data']=_0x1b95b0['data']),null!=_0x1b95b0['data1']&&_0x1b95b0['hasOwnProperty']('data1')&&(_0x4272fa['data1']=_0x1b3a97['bytes']===String?_0x17c6dc['base64']['encode'](_0x1b95b0['data1'],0x0,_0x1b95b0['data1']['length']):_0x1b3a97['bytes']===Array?Array['prototype']['slice']['call'](_0x1b95b0['data1']):_0x1b95b0['data1']),_0x4272fa;},_0x1401e7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1401e7['getTypeUrl']=function(_0x2ff4e5){return void 0x0===_0x2ff4e5&&(_0x2ff4e5='type.googleapis.com'),_0x2ff4e5+'/StringBytesPacketDataMessage';},_0x1401e7;}()),_0x1d55ed['PacketOptionsMessage']=(function(){function _0xefe916(_0x13b400){if(this['rooms']=[],this['except']=[],_0x13b400){for(var _0x1c42b7=Object['keys'](_0x13b400),_0x2a1247=0x0;_0x2a1247<_0x1c42b7['length'];++_0x2a1247)null!=_0x13b400[_0x1c42b7[_0x2a1247]]&&(this[_0x1c42b7[_0x2a1247]]=_0x13b400[_0x1c42b7[_0x2a1247]]);}}return _0xefe916['prototype']['flags']='',_0xefe916['prototype']['rooms']=_0x17c6dc['emptyArray'],_0xefe916['prototype']['except']=_0x17c6dc['emptyArray'],_0xefe916['create']=function(_0x9f1de){return new _0xefe916(_0x9f1de);},_0xefe916['encode']=function(_0x1bb6d3,_0x16348c){if(_0x16348c||(_0x16348c=_0x214d5c['create']()),null!=_0x1bb6d3['flags']&&Object['hasOwnProperty']['call'](_0x1bb6d3,'flags')&&_0x16348c['uint32'](0xa)['string'](_0x1bb6d3['flags']),null!=_0x1bb6d3['rooms']&&_0x1bb6d3['rooms']['length']){for(var _0x483452=0x0;_0x483452<_0x1bb6d3['rooms']['length'];++_0x483452)_0x16348c['uint32'](0x12)['string'](_0x1bb6d3['rooms'][_0x483452]);}if(null!=_0x1bb6d3['except']&&_0x1bb6d3['except']['length']){for(_0x483452=0x0;_0x483452<_0x1bb6d3['except']['length'];++_0x483452)_0x16348c['uint32'](0x1a)['string'](_0x1bb6d3['except'][_0x483452]);}return _0x16348c;},_0xefe916['encodeDelimited']=function(_0x50f41e,_0x21a39f){return this['encode'](_0x50f41e,_0x21a39f)['ldelim']();},_0xefe916['decode']=function(_0x47eb98,_0x10065c,_0x3ee485){_0x47eb98 instanceof _0x10ed9a||(_0x47eb98=_0x10ed9a['create'](_0x47eb98));for(var _0x5525e2=void 0x0===_0x10065c?_0x47eb98['len']:_0x47eb98['pos']+_0x10065c,_0x4f36a7=new _0x1d55ed['PacketOptionsMessage']();_0x47eb98['pos']<_0x5525e2;){var _0x43bfb9=_0x47eb98['uint32']();if(_0x43bfb9===_0x3ee485)break;switch(_0x43bfb9>>>0x3){case 0x1:_0x4f36a7['flags']=_0x47eb98['string']();break;case 0x2:_0x4f36a7['rooms']&&_0x4f36a7['rooms']['length']||(_0x4f36a7['rooms']=[]),_0x4f36a7['rooms']['push'](_0x47eb98['string']());break;case 0x3:_0x4f36a7['except']&&_0x4f36a7['except']['length']||(_0x4f36a7['except']=[]),_0x4f36a7['except']['push'](_0x47eb98['string']());break;default:_0x47eb98['skipType'](0x7&_0x43bfb9);}}return _0x4f36a7;},_0xefe916['decodeDelimited']=function(_0x39f1b7){return _0x39f1b7 instanceof _0x10ed9a||(_0x39f1b7=new _0x10ed9a(_0x39f1b7)),this['decode'](_0x39f1b7,_0x39f1b7['uint32']());},_0xefe916['verify']=function(_0xf5e281){if('object'!=typeof _0xf5e281||null===_0xf5e281)return'object\x20expected';if(null!=_0xf5e281['flags']&&_0xf5e281['hasOwnProperty']('flags')&&!_0x17c6dc['isString'](_0xf5e281['flags']))return'flags:\x20string\x20expected';if(null!=_0xf5e281['rooms']&&_0xf5e281['hasOwnProperty']('rooms')){if(!Array['isArray'](_0xf5e281['rooms']))return'rooms:\x20array\x20expected';for(var _0x248bdf=0x0;_0x248bdf<_0xf5e281['rooms']['length'];++_0x248bdf)if(!_0x17c6dc['isString'](_0xf5e281['rooms'][_0x248bdf]))return'rooms:\x20string[]\x20expected';}if(null!=_0xf5e281['except']&&_0xf5e281['hasOwnProperty']('except')){if(!Array['isArray'](_0xf5e281['except']))return'except:\x20array\x20expected';for(_0x248bdf=0x0;_0x248bdf<_0xf5e281['except']['length'];++_0x248bdf)if(!_0x17c6dc['isString'](_0xf5e281['except'][_0x248bdf]))return'except:\x20string[]\x20expected';}return null;},_0xefe916['fromObject']=function(_0x53e123){if(_0x53e123 instanceof _0x1d55ed['PacketOptionsMessage'])return _0x53e123;var _0x4624c5=new _0x1d55ed['PacketOptionsMessage']();if(null!=_0x53e123['flags']&&(_0x4624c5['flags']=String(_0x53e123['flags'])),_0x53e123['rooms']){if(!Array['isArray'](_0x53e123['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0x4624c5['rooms']=[];for(var _0x327892=0x0;_0x327892<_0x53e123['rooms']['length'];++_0x327892)_0x4624c5['rooms'][_0x327892]=String(_0x53e123['rooms'][_0x327892]);}if(_0x53e123['except']){if(!Array['isArray'](_0x53e123['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');for(_0x4624c5['except']=[],_0x327892=0x0;_0x327892<_0x53e123['except']['length'];++_0x327892)_0x4624c5['except'][_0x327892]=String(_0x53e123['except'][_0x327892]);}return _0x4624c5;},_0xefe916['toObject']=function(_0x255845,_0x1833d6){_0x1833d6||(_0x1833d6={});var _0x32b4a7={};if((_0x1833d6['arrays']||_0x1833d6['defaults'])&&(_0x32b4a7['rooms']=[],_0x32b4a7['except']=[]),_0x1833d6['defaults']&&(_0x32b4a7['flags']=''),null!=_0x255845['flags']&&_0x255845['hasOwnProperty']('flags')&&(_0x32b4a7['flags']=_0x255845['flags']),_0x255845['rooms']&&_0x255845['rooms']['length']){_0x32b4a7['rooms']=[];for(var _0x1eabd4=0x0;_0x1eabd4<_0x255845['rooms']['length'];++_0x1eabd4)_0x32b4a7['rooms'][_0x1eabd4]=_0x255845['rooms'][_0x1eabd4];}if(_0x255845['except']&&_0x255845['except']['length']){for(_0x32b4a7['except']=[],_0x1eabd4=0x0;_0x1eabd4<_0x255845['except']['length'];++_0x1eabd4)_0x32b4a7['except'][_0x1eabd4]=_0x255845['except'][_0x1eabd4];}return _0x32b4a7;},_0xefe916['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xefe916['getTypeUrl']=function(_0x1bad0d){return void 0x0===_0x1bad0d&&(_0x1bad0d='type.googleapis.com'),_0x1bad0d+'/PacketOptionsMessage';},_0xefe916;}()),_0x1d55ed['PacketMessage']=(function(){function _0x5a3f4b(_0x5d2a64){if(_0x5d2a64){for(var _0x968e0a=Object['keys'](_0x5d2a64),_0x438d07=0x0;_0x438d07<_0x968e0a['length'];++_0x438d07)null!=_0x5d2a64[_0x968e0a[_0x438d07]]&&(this[_0x968e0a[_0x438d07]]=_0x5d2a64[_0x968e0a[_0x438d07]]);}}return _0x5a3f4b['prototype']['type']=0x0,_0x5a3f4b['prototype']['id']=0x0,_0x5a3f4b['prototype']['nsp']='',_0x5a3f4b['prototype']['data']=_0x17c6dc['newBuffer']([]),_0x5a3f4b['prototype']['options']=_0x17c6dc['newBuffer']([]),_0x5a3f4b['create']=function(_0x2ff17e){return new _0x5a3f4b(_0x2ff17e);},_0x5a3f4b['encode']=function(_0x5b170d,_0x9d15a0){return _0x9d15a0||(_0x9d15a0=_0x214d5c['create']()),null!=_0x5b170d['type']&&Object['hasOwnProperty']['call'](_0x5b170d,'type')&&_0x9d15a0['uint32'](0x8)['uint32'](_0x5b170d['type']),null!=_0x5b170d['id']&&Object['hasOwnProperty']['call'](_0x5b170d,'id')&&_0x9d15a0['uint32'](0x10)['uint32'](_0x5b170d['id']),null!=_0x5b170d['nsp']&&Object['hasOwnProperty']['call'](_0x5b170d,'nsp')&&_0x9d15a0['uint32'](0x1a)['string'](_0x5b170d['nsp']),null!=_0x5b170d['data']&&Object['hasOwnProperty']['call'](_0x5b170d,'data')&&_0x9d15a0['uint32'](0x22)['bytes'](_0x5b170d['data']),null!=_0x5b170d['options']&&Object['hasOwnProperty']['call'](_0x5b170d,'options')&&_0x9d15a0['uint32'](0x2a)['bytes'](_0x5b170d['options']),_0x9d15a0;},_0x5a3f4b['encodeDelimited']=function(_0x109ba9,_0x34a196){return this['encode'](_0x109ba9,_0x34a196)['ldelim']();},_0x5a3f4b['decode']=function(_0x3ffb45,_0x406f96,_0x39648b){_0x3ffb45 instanceof _0x10ed9a||(_0x3ffb45=_0x10ed9a['create'](_0x3ffb45));for(var _0x3e60dd=void 0x0===_0x406f96?_0x3ffb45['len']:_0x3ffb45['pos']+_0x406f96,_0x44c42d=new _0x1d55ed['PacketMessage']();_0x3ffb45['pos']<_0x3e60dd;){var _0x73b630=_0x3ffb45['uint32']();if(_0x73b630===_0x39648b)break;switch(_0x73b630>>>0x3){case 0x1:_0x44c42d['type']=_0x3ffb45['uint32']();break;case 0x2:_0x44c42d['id']=_0x3ffb45['uint32']();break;case 0x3:_0x44c42d['nsp']=_0x3ffb45['string']();break;case 0x4:_0x44c42d['data']=_0x3ffb45['bytes']();break;case 0x5:_0x44c42d['options']=_0x3ffb45['bytes']();break;default:_0x3ffb45['skipType'](0x7&_0x73b630);}}return _0x44c42d;},_0x5a3f4b['decodeDelimited']=function(_0x3dba67){return _0x3dba67 instanceof _0x10ed9a||(_0x3dba67=new _0x10ed9a(_0x3dba67)),this['decode'](_0x3dba67,_0x3dba67['uint32']());},_0x5a3f4b['verify']=function(_0x412144){return'object'!=typeof _0x412144||null===_0x412144?'object\x20expected':null!=_0x412144['type']&&_0x412144['hasOwnProperty']('type')&&!_0x17c6dc['isInteger'](_0x412144['type'])?'type:\x20integer\x20expected':null!=_0x412144['id']&&_0x412144['hasOwnProperty']('id')&&!_0x17c6dc['isInteger'](_0x412144['id'])?'id:\x20integer\x20expected':null!=_0x412144['nsp']&&_0x412144['hasOwnProperty']('nsp')&&!_0x17c6dc['isString'](_0x412144['nsp'])?'nsp:\x20string\x20expected':null!=_0x412144['data']&&_0x412144['hasOwnProperty']('data')&&!(_0x412144['data']&&'number'==typeof _0x412144['data']['length']||_0x17c6dc['isString'](_0x412144['data']))?'data:\x20buffer\x20expected':null!=_0x412144['options']&&_0x412144['hasOwnProperty']('options')&&!(_0x412144['options']&&'number'==typeof _0x412144['options']['length']||_0x17c6dc['isString'](_0x412144['options']))?'options:\x20buffer\x20expected':null;},_0x5a3f4b['fromObject']=function(_0x6aebce){if(_0x6aebce instanceof _0x1d55ed['PacketMessage'])return _0x6aebce;var _0x45b1f7=new _0x1d55ed['PacketMessage']();return null!=_0x6aebce['type']&&(_0x45b1f7['type']=_0x6aebce['type']>>>0x0),null!=_0x6aebce['id']&&(_0x45b1f7['id']=_0x6aebce['id']>>>0x0),null!=_0x6aebce['nsp']&&(_0x45b1f7['nsp']=String(_0x6aebce['nsp'])),null!=_0x6aebce['data']&&('string'==typeof _0x6aebce['data']?_0x17c6dc['base64']['decode'](_0x6aebce['data'],_0x45b1f7['data']=_0x17c6dc['newBuffer'](_0x17c6dc['base64']['length'](_0x6aebce['data'])),0x0):_0x6aebce['data']['length']>=0x0&&(_0x45b1f7['data']=_0x6aebce['data'])),null!=_0x6aebce['options']&&('string'==typeof _0x6aebce['options']?_0x17c6dc['base64']['decode'](_0x6aebce['options'],_0x45b1f7['options']=_0x17c6dc['newBuffer'](_0x17c6dc['base64']['length'](_0x6aebce['options'])),0x0):_0x6aebce['options']['length']>=0x0&&(_0x45b1f7['options']=_0x6aebce['options'])),_0x45b1f7;},_0x5a3f4b['toObject']=function(_0x350624,_0xdc9101){_0xdc9101||(_0xdc9101={});var _0x387ee4={};return _0xdc9101['defaults']&&(_0x387ee4['type']=0x0,_0x387ee4['id']=0x0,_0x387ee4['nsp']='',_0xdc9101['bytes']===String?_0x387ee4['data']='':(_0x387ee4['data']=[],_0xdc9101['bytes']!==Array&&(_0x387ee4['data']=_0x17c6dc['newBuffer'](_0x387ee4['data']))),_0xdc9101['bytes']===String?_0x387ee4['options']='':(_0x387ee4['options']=[],_0xdc9101['bytes']!==Array&&(_0x387ee4['options']=_0x17c6dc['newBuffer'](_0x387ee4['options'])))),null!=_0x350624['type']&&_0x350624['hasOwnProperty']('type')&&(_0x387ee4['type']=_0x350624['type']),null!=_0x350624['id']&&_0x350624['hasOwnProperty']('id')&&(_0x387ee4['id']=_0x350624['id']),null!=_0x350624['nsp']&&_0x350624['hasOwnProperty']('nsp')&&(_0x387ee4['nsp']=_0x350624['nsp']),null!=_0x350624['data']&&_0x350624['hasOwnProperty']('data')&&(_0x387ee4['data']=_0xdc9101['bytes']===String?_0x17c6dc['base64']['encode'](_0x350624['data'],0x0,_0x350624['data']['length']):_0xdc9101['bytes']===Array?Array['prototype']['slice']['call'](_0x350624['data']):_0x350624['data']),null!=_0x350624['options']&&_0x350624['hasOwnProperty']('options')&&(_0x387ee4['options']=_0xdc9101['bytes']===String?_0x17c6dc['base64']['encode'](_0x350624['options'],0x0,_0x350624['options']['length']):_0xdc9101['bytes']===Array?Array['prototype']['slice']['call'](_0x350624['options']):_0x350624['options']),_0x387ee4;},_0x5a3f4b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5a3f4b['getTypeUrl']=function(_0x1c2b10){return void 0x0===_0x1c2b10&&(_0x1c2b10='type.googleapis.com'),_0x1c2b10+'/PacketMessage';},_0x5a3f4b;}()),_0x1d55ed['ObjectObjectPacketDataMessage']=(function(){function _0x403eae(_0x1daa76){if(_0x1daa76){for(var _0x40176b=Object['keys'](_0x1daa76),_0x4f5713=0x0;_0x4f5713<_0x40176b['length'];++_0x4f5713)null!=_0x1daa76[_0x40176b[_0x4f5713]]&&(this[_0x40176b[_0x4f5713]]=_0x1daa76[_0x40176b[_0x4f5713]]);}}return _0x403eae['prototype']['data']='',_0x403eae['prototype']['data1']='',_0x403eae['create']=function(_0x445609){return new _0x403eae(_0x445609);},_0x403eae['encode']=function(_0x16c3c2,_0x108624){return _0x108624||(_0x108624=_0x214d5c['create']()),null!=_0x16c3c2['data']&&Object['hasOwnProperty']['call'](_0x16c3c2,'data')&&_0x108624['uint32'](0xa)['string'](_0x16c3c2['data']),null!=_0x16c3c2['data1']&&Object['hasOwnProperty']['call'](_0x16c3c2,'data1')&&_0x108624['uint32'](0x12)['string'](_0x16c3c2['data1']),_0x108624;},_0x403eae['encodeDelimited']=function(_0x27dc4c,_0x2b9f06){return this['encode'](_0x27dc4c,_0x2b9f06)['ldelim']();},_0x403eae['decode']=function(_0x3996f9,_0x2ae54c,_0x2fbdbb){_0x3996f9 instanceof _0x10ed9a||(_0x3996f9=_0x10ed9a['create'](_0x3996f9));for(var _0x5004f1=void 0x0===_0x2ae54c?_0x3996f9['len']:_0x3996f9['pos']+_0x2ae54c,_0x4778b8=new _0x1d55ed['ObjectObjectPacketDataMessage']();_0x3996f9['pos']<_0x5004f1;){var _0x29bfed=_0x3996f9['uint32']();if(_0x29bfed===_0x2fbdbb)break;switch(_0x29bfed>>>0x3){case 0x1:_0x4778b8['data']=_0x3996f9['string']();break;case 0x2:_0x4778b8['data1']=_0x3996f9['string']();break;default:_0x3996f9['skipType'](0x7&_0x29bfed);}}return _0x4778b8;},_0x403eae['decodeDelimited']=function(_0x4e6517){return _0x4e6517 instanceof _0x10ed9a||(_0x4e6517=new _0x10ed9a(_0x4e6517)),this['decode'](_0x4e6517,_0x4e6517['uint32']());},_0x403eae['verify']=function(_0x1ed49f){return'object'!=typeof _0x1ed49f||null===_0x1ed49f?'object\x20expected':null!=_0x1ed49f['data']&&_0x1ed49f['hasOwnProperty']('data')&&!_0x17c6dc['isString'](_0x1ed49f['data'])?'data:\x20string\x20expected':null!=_0x1ed49f['data1']&&_0x1ed49f['hasOwnProperty']('data1')&&!_0x17c6dc['isString'](_0x1ed49f['data1'])?'data1:\x20string\x20expected':null;},_0x403eae['fromObject']=function(_0x2b0a57){if(_0x2b0a57 instanceof _0x1d55ed['ObjectObjectPacketDataMessage'])return _0x2b0a57;var _0x393387=new _0x1d55ed['ObjectObjectPacketDataMessage']();return null!=_0x2b0a57['data']&&(_0x393387['data']=String(_0x2b0a57['data'])),null!=_0x2b0a57['data1']&&(_0x393387['data1']=String(_0x2b0a57['data1'])),_0x393387;},_0x403eae['toObject']=function(_0x16b6ee,_0x39a916){_0x39a916||(_0x39a916={});var _0x50e025={};return _0x39a916['defaults']&&(_0x50e025['data']='',_0x50e025['data1']=''),null!=_0x16b6ee['data']&&_0x16b6ee['hasOwnProperty']('data')&&(_0x50e025['data']=_0x16b6ee['data']),null!=_0x16b6ee['data1']&&_0x16b6ee['hasOwnProperty']('data1')&&(_0x50e025['data1']=_0x16b6ee['data1']),_0x50e025;},_0x403eae['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x403eae['getTypeUrl']=function(_0x152aa0){return void 0x0===_0x152aa0&&(_0x152aa0='type.googleapis.com'),_0x152aa0+'/ObjectObjectPacketDataMessage';},_0x403eae;}()),_0x1d55ed['ObjectBufferPacketDataMessage']=(function(){function _0x1d2334(_0x16ca21){if(_0x16ca21){for(var _0x3c3ae3=Object['keys'](_0x16ca21),_0xc11c5c=0x0;_0xc11c5c<_0x3c3ae3['length'];++_0xc11c5c)null!=_0x16ca21[_0x3c3ae3[_0xc11c5c]]&&(this[_0x3c3ae3[_0xc11c5c]]=_0x16ca21[_0x3c3ae3[_0xc11c5c]]);}}return _0x1d2334['prototype']['data']='',_0x1d2334['prototype']['data1']=_0x17c6dc['newBuffer']([]),_0x1d2334['create']=function(_0x29bf50){return new _0x1d2334(_0x29bf50);},_0x1d2334['encode']=function(_0x117801,_0x476438){return _0x476438||(_0x476438=_0x214d5c['create']()),null!=_0x117801['data']&&Object['hasOwnProperty']['call'](_0x117801,'data')&&_0x476438['uint32'](0xa)['string'](_0x117801['data']),null!=_0x117801['data1']&&Object['hasOwnProperty']['call'](_0x117801,'data1')&&_0x476438['uint32'](0x12)['bytes'](_0x117801['data1']),_0x476438;},_0x1d2334['encodeDelimited']=function(_0x2c2634,_0x5b1c2d){return this['encode'](_0x2c2634,_0x5b1c2d)['ldelim']();},_0x1d2334['decode']=function(_0x400c8,_0x589098,_0x343351){_0x400c8 instanceof _0x10ed9a||(_0x400c8=_0x10ed9a['create'](_0x400c8));for(var _0x6a2298=void 0x0===_0x589098?_0x400c8['len']:_0x400c8['pos']+_0x589098,_0x59bd4d=new _0x1d55ed['ObjectBufferPacketDataMessage']();_0x400c8['pos']<_0x6a2298;){var _0x49a2fc=_0x400c8['uint32']();if(_0x49a2fc===_0x343351)break;switch(_0x49a2fc>>>0x3){case 0x1:_0x59bd4d['data']=_0x400c8['string']();break;case 0x2:_0x59bd4d['data1']=_0x400c8['bytes']();break;default:_0x400c8['skipType'](0x7&_0x49a2fc);}}return _0x59bd4d;},_0x1d2334['decodeDelimited']=function(_0x2e8291){return _0x2e8291 instanceof _0x10ed9a||(_0x2e8291=new _0x10ed9a(_0x2e8291)),this['decode'](_0x2e8291,_0x2e8291['uint32']());},_0x1d2334['verify']=function(_0x29d33b){return'object'!=typeof _0x29d33b||null===_0x29d33b?'object\x20expected':null!=_0x29d33b['data']&&_0x29d33b['hasOwnProperty']('data')&&!_0x17c6dc['isString'](_0x29d33b['data'])?'data:\x20string\x20expected':null!=_0x29d33b['data1']&&_0x29d33b['hasOwnProperty']('data1')&&!(_0x29d33b['data1']&&'number'==typeof _0x29d33b['data1']['length']||_0x17c6dc['isString'](_0x29d33b['data1']))?'data1:\x20buffer\x20expected':null;},_0x1d2334['fromObject']=function(_0x45e524){if(_0x45e524 instanceof _0x1d55ed['ObjectBufferPacketDataMessage'])return _0x45e524;var _0x2a45c9=new _0x1d55ed['ObjectBufferPacketDataMessage']();return null!=_0x45e524['data']&&(_0x2a45c9['data']=String(_0x45e524['data'])),null!=_0x45e524['data1']&&('string'==typeof _0x45e524['data1']?_0x17c6dc['base64']['decode'](_0x45e524['data1'],_0x2a45c9['data1']=_0x17c6dc['newBuffer'](_0x17c6dc['base64']['length'](_0x45e524['data1'])),0x0):_0x45e524['data1']['length']>=0x0&&(_0x2a45c9['data1']=_0x45e524['data1'])),_0x2a45c9;},_0x1d2334['toObject']=function(_0x28ed5b,_0x395e08){_0x395e08||(_0x395e08={});var _0x380e44={};return _0x395e08['defaults']&&(_0x380e44['data']='',_0x395e08['bytes']===String?_0x380e44['data1']='':(_0x380e44['data1']=[],_0x395e08['bytes']!==Array&&(_0x380e44['data1']=_0x17c6dc['newBuffer'](_0x380e44['data1'])))),null!=_0x28ed5b['data']&&_0x28ed5b['hasOwnProperty']('data')&&(_0x380e44['data']=_0x28ed5b['data']),null!=_0x28ed5b['data1']&&_0x28ed5b['hasOwnProperty']('data1')&&(_0x380e44['data1']=_0x395e08['bytes']===String?_0x17c6dc['base64']['encode'](_0x28ed5b['data1'],0x0,_0x28ed5b['data1']['length']):_0x395e08['bytes']===Array?Array['prototype']['slice']['call'](_0x28ed5b['data1']):_0x28ed5b['data1']),_0x380e44;},_0x1d2334['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1d2334['getTypeUrl']=function(_0x25c697){return void 0x0===_0x25c697&&(_0x25c697='type.googleapis.com'),_0x25c697+'/ObjectBufferPacketDataMessage';},_0x1d2334;}()),_0x1d55ed['NumberStringPacketDataMessage']=(function(){function _0x3e1912(_0xe631ff){if(_0xe631ff){for(var _0x3ff937=Object['keys'](_0xe631ff),_0x268abd=0x0;_0x268abd<_0x3ff937['length'];++_0x268abd)null!=_0xe631ff[_0x3ff937[_0x268abd]]&&(this[_0x3ff937[_0x268abd]]=_0xe631ff[_0x3ff937[_0x268abd]]);}}return _0x3e1912['prototype']['data']=0x0,_0x3e1912['prototype']['data1']='',_0x3e1912['create']=function(_0x13e620){return new _0x3e1912(_0x13e620);},_0x3e1912['encode']=function(_0x10a1fe,_0xc4ebf9){return _0xc4ebf9||(_0xc4ebf9=_0x214d5c['create']()),null!=_0x10a1fe['data']&&Object['hasOwnProperty']['call'](_0x10a1fe,'data')&&_0xc4ebf9['uint32'](0x8)['uint32'](_0x10a1fe['data']),null!=_0x10a1fe['data1']&&Object['hasOwnProperty']['call'](_0x10a1fe,'data1')&&_0xc4ebf9['uint32'](0x12)['string'](_0x10a1fe['data1']),_0xc4ebf9;},_0x3e1912['encodeDelimited']=function(_0x2d8419,_0x59537f){return this['encode'](_0x2d8419,_0x59537f)['ldelim']();},_0x3e1912['decode']=function(_0x191fee,_0x27ba9c,_0x2c869b){_0x191fee instanceof _0x10ed9a||(_0x191fee=_0x10ed9a['create'](_0x191fee));for(var _0x419291=void 0x0===_0x27ba9c?_0x191fee['len']:_0x191fee['pos']+_0x27ba9c,_0x1591ca=new _0x1d55ed['NumberStringPacketDataMessage']();_0x191fee['pos']<_0x419291;){var _0x4abb3b=_0x191fee['uint32']();if(_0x4abb3b===_0x2c869b)break;switch(_0x4abb3b>>>0x3){case 0x1:_0x1591ca['data']=_0x191fee['uint32']();break;case 0x2:_0x1591ca['data1']=_0x191fee['string']();break;default:_0x191fee['skipType'](0x7&_0x4abb3b);}}return _0x1591ca;},_0x3e1912['decodeDelimited']=function(_0x522c59){return _0x522c59 instanceof _0x10ed9a||(_0x522c59=new _0x10ed9a(_0x522c59)),this['decode'](_0x522c59,_0x522c59['uint32']());},_0x3e1912['verify']=function(_0x448b63){return'object'!=typeof _0x448b63||null===_0x448b63?'object\x20expected':null!=_0x448b63['data']&&_0x448b63['hasOwnProperty']('data')&&!_0x17c6dc['isInteger'](_0x448b63['data'])?'data:\x20integer\x20expected':null!=_0x448b63['data1']&&_0x448b63['hasOwnProperty']('data1')&&!_0x17c6dc['isString'](_0x448b63['data1'])?'data1:\x20string\x20expected':null;},_0x3e1912['fromObject']=function(_0x23379a){if(_0x23379a instanceof _0x1d55ed['NumberStringPacketDataMessage'])return _0x23379a;var _0x3afa36=new _0x1d55ed['NumberStringPacketDataMessage']();return null!=_0x23379a['data']&&(_0x3afa36['data']=_0x23379a['data']>>>0x0),null!=_0x23379a['data1']&&(_0x3afa36['data1']=String(_0x23379a['data1'])),_0x3afa36;},_0x3e1912['toObject']=function(_0x36b174,_0x3255b5){_0x3255b5||(_0x3255b5={});var _0x389410={};return _0x3255b5['defaults']&&(_0x389410['data']=0x0,_0x389410['data1']=''),null!=_0x36b174['data']&&_0x36b174['hasOwnProperty']('data')&&(_0x389410['data']=_0x36b174['data']),null!=_0x36b174['data1']&&_0x36b174['hasOwnProperty']('data1')&&(_0x389410['data1']=_0x36b174['data1']),_0x389410;},_0x3e1912['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3e1912['getTypeUrl']=function(_0x1d28bf){return void 0x0===_0x1d28bf&&(_0x1d28bf='type.googleapis.com'),_0x1d28bf+'/NumberStringPacketDataMessage';},_0x3e1912;}()),_0x1d55ed['NumberObjectPacketDataMessage']=(function(){function _0x48d1e5(_0x1ccbf2){if(_0x1ccbf2){for(var _0x83d40c=Object['keys'](_0x1ccbf2),_0x1fffb0=0x0;_0x1fffb0<_0x83d40c['length'];++_0x1fffb0)null!=_0x1ccbf2[_0x83d40c[_0x1fffb0]]&&(this[_0x83d40c[_0x1fffb0]]=_0x1ccbf2[_0x83d40c[_0x1fffb0]]);}}return _0x48d1e5['prototype']['data']=0x0,_0x48d1e5['prototype']['data1']='',_0x48d1e5['create']=function(_0x34facf){return new _0x48d1e5(_0x34facf);},_0x48d1e5['encode']=function(_0x57532c,_0x5ec9db){return _0x5ec9db||(_0x5ec9db=_0x214d5c['create']()),null!=_0x57532c['data']&&Object['hasOwnProperty']['call'](_0x57532c,'data')&&_0x5ec9db['uint32'](0x8)['uint32'](_0x57532c['data']),null!=_0x57532c['data1']&&Object['hasOwnProperty']['call'](_0x57532c,'data1')&&_0x5ec9db['uint32'](0x12)['string'](_0x57532c['data1']),_0x5ec9db;},_0x48d1e5['encodeDelimited']=function(_0x495530,_0x49f207){return this['encode'](_0x495530,_0x49f207)['ldelim']();},_0x48d1e5['decode']=function(_0x139494,_0x4f47d4,_0x23f2ee){_0x139494 instanceof _0x10ed9a||(_0x139494=_0x10ed9a['create'](_0x139494));for(var _0x3d3009=void 0x0===_0x4f47d4?_0x139494['len']:_0x139494['pos']+_0x4f47d4,_0x1bc7f5=new _0x1d55ed['NumberObjectPacketDataMessage']();_0x139494['pos']<_0x3d3009;){var _0x30d37c=_0x139494['uint32']();if(_0x30d37c===_0x23f2ee)break;switch(_0x30d37c>>>0x3){case 0x1:_0x1bc7f5['data']=_0x139494['uint32']();break;case 0x2:_0x1bc7f5['data1']=_0x139494['string']();break;default:_0x139494['skipType'](0x7&_0x30d37c);}}return _0x1bc7f5;},_0x48d1e5['decodeDelimited']=function(_0x2c5bda){return _0x2c5bda instanceof _0x10ed9a||(_0x2c5bda=new _0x10ed9a(_0x2c5bda)),this['decode'](_0x2c5bda,_0x2c5bda['uint32']());},_0x48d1e5['verify']=function(_0x8d9183){return'object'!=typeof _0x8d9183||null===_0x8d9183?'object\x20expected':null!=_0x8d9183['data']&&_0x8d9183['hasOwnProperty']('data')&&!_0x17c6dc['isInteger'](_0x8d9183['data'])?'data:\x20integer\x20expected':null!=_0x8d9183['data1']&&_0x8d9183['hasOwnProperty']('data1')&&!_0x17c6dc['isString'](_0x8d9183['data1'])?'data1:\x20string\x20expected':null;},_0x48d1e5['fromObject']=function(_0x2e0272){if(_0x2e0272 instanceof _0x1d55ed['NumberObjectPacketDataMessage'])return _0x2e0272;var _0x52fdc5=new _0x1d55ed['NumberObjectPacketDataMessage']();return null!=_0x2e0272['data']&&(_0x52fdc5['data']=_0x2e0272['data']>>>0x0),null!=_0x2e0272['data1']&&(_0x52fdc5['data1']=String(_0x2e0272['data1'])),_0x52fdc5;},_0x48d1e5['toObject']=function(_0x2584fd,_0x38869f){_0x38869f||(_0x38869f={});var _0x4001cf={};return _0x38869f['defaults']&&(_0x4001cf['data']=0x0,_0x4001cf['data1']=''),null!=_0x2584fd['data']&&_0x2584fd['hasOwnProperty']('data')&&(_0x4001cf['data']=_0x2584fd['data']),null!=_0x2584fd['data1']&&_0x2584fd['hasOwnProperty']('data1')&&(_0x4001cf['data1']=_0x2584fd['data1']),_0x4001cf;},_0x48d1e5['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x48d1e5['getTypeUrl']=function(_0xf31a64){return void 0x0===_0xf31a64&&(_0xf31a64='type.googleapis.com'),_0xf31a64+'/NumberObjectPacketDataMessage';},_0x48d1e5;}()),_0x1d55ed['NumberNumberPacketDataMessage']=(function(){function _0x217403(_0x8d5650){if(_0x8d5650){for(var _0x339ee3=Object['keys'](_0x8d5650),_0x1da916=0x0;_0x1da916<_0x339ee3['length'];++_0x1da916)null!=_0x8d5650[_0x339ee3[_0x1da916]]&&(this[_0x339ee3[_0x1da916]]=_0x8d5650[_0x339ee3[_0x1da916]]);}}return _0x217403['prototype']['data']=0x0,_0x217403['prototype']['data1']=0x0,_0x217403['create']=function(_0x27e805){return new _0x217403(_0x27e805);},_0x217403['encode']=function(_0x3601a7,_0x4d1014){return _0x4d1014||(_0x4d1014=_0x214d5c['create']()),null!=_0x3601a7['data']&&Object['hasOwnProperty']['call'](_0x3601a7,'data')&&_0x4d1014['uint32'](0x8)['uint32'](_0x3601a7['data']),null!=_0x3601a7['data1']&&Object['hasOwnProperty']['call'](_0x3601a7,'data1')&&_0x4d1014['uint32'](0x10)['uint32'](_0x3601a7['data1']),_0x4d1014;},_0x217403['encodeDelimited']=function(_0x1b90ba,_0xeb467e){return this['encode'](_0x1b90ba,_0xeb467e)['ldelim']();},_0x217403['decode']=function(_0x319e85,_0xd5d95e,_0x108777){_0x319e85 instanceof _0x10ed9a||(_0x319e85=_0x10ed9a['create'](_0x319e85));for(var _0x38ff08=void 0x0===_0xd5d95e?_0x319e85['len']:_0x319e85['pos']+_0xd5d95e,_0x328b6a=new _0x1d55ed['NumberNumberPacketDataMessage']();_0x319e85['pos']<_0x38ff08;){var _0x478d1e=_0x319e85['uint32']();if(_0x478d1e===_0x108777)break;switch(_0x478d1e>>>0x3){case 0x1:_0x328b6a['data']=_0x319e85['uint32']();break;case 0x2:_0x328b6a['data1']=_0x319e85['uint32']();break;default:_0x319e85['skipType'](0x7&_0x478d1e);}}return _0x328b6a;},_0x217403['decodeDelimited']=function(_0x5b7928){return _0x5b7928 instanceof _0x10ed9a||(_0x5b7928=new _0x10ed9a(_0x5b7928)),this['decode'](_0x5b7928,_0x5b7928['uint32']());},_0x217403['verify']=function(_0x5008f5){return'object'!=typeof _0x5008f5||null===_0x5008f5?'object\x20expected':null!=_0x5008f5['data']&&_0x5008f5['hasOwnProperty']('data')&&!_0x17c6dc['isInteger'](_0x5008f5['data'])?'data:\x20integer\x20expected':null!=_0x5008f5['data1']&&_0x5008f5['hasOwnProperty']('data1')&&!_0x17c6dc['isInteger'](_0x5008f5['data1'])?'data1:\x20integer\x20expected':null;},_0x217403['fromObject']=function(_0x318a15){if(_0x318a15 instanceof _0x1d55ed['NumberNumberPacketDataMessage'])return _0x318a15;var _0x4438eb=new _0x1d55ed['NumberNumberPacketDataMessage']();return null!=_0x318a15['data']&&(_0x4438eb['data']=_0x318a15['data']>>>0x0),null!=_0x318a15['data1']&&(_0x4438eb['data1']=_0x318a15['data1']>>>0x0),_0x4438eb;},_0x217403['toObject']=function(_0x330bcb,_0x4e3ac1){_0x4e3ac1||(_0x4e3ac1={});var _0x4b0d4f={};return _0x4e3ac1['defaults']&&(_0x4b0d4f['data']=0x0,_0x4b0d4f['data1']=0x0),null!=_0x330bcb['data']&&_0x330bcb['hasOwnProperty']('data')&&(_0x4b0d4f['data']=_0x330bcb['data']),null!=_0x330bcb['data1']&&_0x330bcb['hasOwnProperty']('data1')&&(_0x4b0d4f['data1']=_0x330bcb['data1']),_0x4b0d4f;},_0x217403['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x217403['getTypeUrl']=function(_0x58a384){return void 0x0===_0x58a384&&(_0x58a384='type.googleapis.com'),_0x58a384+'/NumberNumberPacketDataMessage';},_0x217403;}()),_0x1d55ed['NumberBytesPacketDataMessage']=(function(){function _0x4755c2(_0x4b0bc2){if(_0x4b0bc2){for(var _0x52eb5a=Object['keys'](_0x4b0bc2),_0x5325df=0x0;_0x5325df<_0x52eb5a['length'];++_0x5325df)null!=_0x4b0bc2[_0x52eb5a[_0x5325df]]&&(this[_0x52eb5a[_0x5325df]]=_0x4b0bc2[_0x52eb5a[_0x5325df]]);}}return _0x4755c2['prototype']['data']=0x0,_0x4755c2['prototype']['data1']=_0x17c6dc['newBuffer']([]),_0x4755c2['create']=function(_0x583b97){return new _0x4755c2(_0x583b97);},_0x4755c2['encode']=function(_0x19998,_0x31da15){return _0x31da15||(_0x31da15=_0x214d5c['create']()),null!=_0x19998['data']&&Object['hasOwnProperty']['call'](_0x19998,'data')&&_0x31da15['uint32'](0x8)['uint32'](_0x19998['data']),null!=_0x19998['data1']&&Object['hasOwnProperty']['call'](_0x19998,'data1')&&_0x31da15['uint32'](0x12)['bytes'](_0x19998['data1']),_0x31da15;},_0x4755c2['encodeDelimited']=function(_0x128dca,_0x2ba1e3){return this['encode'](_0x128dca,_0x2ba1e3)['ldelim']();},_0x4755c2['decode']=function(_0x1c8762,_0x56e213,_0x41f5fe){_0x1c8762 instanceof _0x10ed9a||(_0x1c8762=_0x10ed9a['create'](_0x1c8762));for(var _0x5b39a2=void 0x0===_0x56e213?_0x1c8762['len']:_0x1c8762['pos']+_0x56e213,_0x2b38c4=new _0x1d55ed['NumberBytesPacketDataMessage']();_0x1c8762['pos']<_0x5b39a2;){var _0x53c628=_0x1c8762['uint32']();if(_0x53c628===_0x41f5fe)break;switch(_0x53c628>>>0x3){case 0x1:_0x2b38c4['data']=_0x1c8762['uint32']();break;case 0x2:_0x2b38c4['data1']=_0x1c8762['bytes']();break;default:_0x1c8762['skipType'](0x7&_0x53c628);}}return _0x2b38c4;},_0x4755c2['decodeDelimited']=function(_0x23ff22){return _0x23ff22 instanceof _0x10ed9a||(_0x23ff22=new _0x10ed9a(_0x23ff22)),this['decode'](_0x23ff22,_0x23ff22['uint32']());},_0x4755c2['verify']=function(_0x352b51){return'object'!=typeof _0x352b51||null===_0x352b51?'object\x20expected':null!=_0x352b51['data']&&_0x352b51['hasOwnProperty']('data')&&!_0x17c6dc['isInteger'](_0x352b51['data'])?'data:\x20integer\x20expected':null!=_0x352b51['data1']&&_0x352b51['hasOwnProperty']('data1')&&!(_0x352b51['data1']&&'number'==typeof _0x352b51['data1']['length']||_0x17c6dc['isString'](_0x352b51['data1']))?'data1:\x20buffer\x20expected':null;},_0x4755c2['fromObject']=function(_0x339993){if(_0x339993 instanceof _0x1d55ed['NumberBytesPacketDataMessage'])return _0x339993;var _0x4a8ea4=new _0x1d55ed['NumberBytesPacketDataMessage']();return null!=_0x339993['data']&&(_0x4a8ea4['data']=_0x339993['data']>>>0x0),null!=_0x339993['data1']&&('string'==typeof _0x339993['data1']?_0x17c6dc['base64']['decode'](_0x339993['data1'],_0x4a8ea4['data1']=_0x17c6dc['newBuffer'](_0x17c6dc['base64']['length'](_0x339993['data1'])),0x0):_0x339993['data1']['length']>=0x0&&(_0x4a8ea4['data1']=_0x339993['data1'])),_0x4a8ea4;},_0x4755c2['toObject']=function(_0x93983f,_0x56fa13){_0x56fa13||(_0x56fa13={});var _0x1f2ab0={};return _0x56fa13['defaults']&&(_0x1f2ab0['data']=0x0,_0x56fa13['bytes']===String?_0x1f2ab0['data1']='':(_0x1f2ab0['data1']=[],_0x56fa13['bytes']!==Array&&(_0x1f2ab0['data1']=_0x17c6dc['newBuffer'](_0x1f2ab0['data1'])))),null!=_0x93983f['data']&&_0x93983f['hasOwnProperty']('data')&&(_0x1f2ab0['data']=_0x93983f['data']),null!=_0x93983f['data1']&&_0x93983f['hasOwnProperty']('data1')&&(_0x1f2ab0['data1']=_0x56fa13['bytes']===String?_0x17c6dc['base64']['encode'](_0x93983f['data1'],0x0,_0x93983f['data1']['length']):_0x56fa13['bytes']===Array?Array['prototype']['slice']['call'](_0x93983f['data1']):_0x93983f['data1']),_0x1f2ab0;},_0x4755c2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4755c2['getTypeUrl']=function(_0x4c25ed){return void 0x0===_0x4c25ed&&(_0x4c25ed='type.googleapis.com'),_0x4c25ed+'/NumberBytesPacketDataMessage';},_0x4755c2;}()),_0x1d55ed['BytesBytesPacketDataMessage']=(function(){function _0x553cad(_0x4636e9){if(_0x4636e9){for(var _0x4ce3a3=Object['keys'](_0x4636e9),_0x374f38=0x0;_0x374f38<_0x4ce3a3['length'];++_0x374f38)null!=_0x4636e9[_0x4ce3a3[_0x374f38]]&&(this[_0x4ce3a3[_0x374f38]]=_0x4636e9[_0x4ce3a3[_0x374f38]]);}}return _0x553cad['prototype']['data']=_0x17c6dc['newBuffer']([]),_0x553cad['prototype']['data1']=_0x17c6dc['newBuffer']([]),_0x553cad['create']=function(_0x24685c){return new _0x553cad(_0x24685c);},_0x553cad['encode']=function(_0x5ca150,_0x4ab6ee){return _0x4ab6ee||(_0x4ab6ee=_0x214d5c['create']()),null!=_0x5ca150['data']&&Object['hasOwnProperty']['call'](_0x5ca150,'data')&&_0x4ab6ee['uint32'](0xa)['bytes'](_0x5ca150['data']),null!=_0x5ca150['data1']&&Object['hasOwnProperty']['call'](_0x5ca150,'data1')&&_0x4ab6ee['uint32'](0x12)['bytes'](_0x5ca150['data1']),_0x4ab6ee;},_0x553cad['encodeDelimited']=function(_0x1bffb6,_0x2f652d){return this['encode'](_0x1bffb6,_0x2f652d)['ldelim']();},_0x553cad['decode']=function(_0x2c9095,_0x4a8063,_0x4f2ec7){_0x2c9095 instanceof _0x10ed9a||(_0x2c9095=_0x10ed9a['create'](_0x2c9095));for(var _0x434c2a=void 0x0===_0x4a8063?_0x2c9095['len']:_0x2c9095['pos']+_0x4a8063,_0x3e3b85=new _0x1d55ed['BytesBytesPacketDataMessage']();_0x2c9095['pos']<_0x434c2a;){var _0x256a29=_0x2c9095['uint32']();if(_0x256a29===_0x4f2ec7)break;switch(_0x256a29>>>0x3){case 0x1:_0x3e3b85['data']=_0x2c9095['bytes']();break;case 0x2:_0x3e3b85['data1']=_0x2c9095['bytes']();break;default:_0x2c9095['skipType'](0x7&_0x256a29);}}return _0x3e3b85;},_0x553cad['decodeDelimited']=function(_0x502406){return _0x502406 instanceof _0x10ed9a||(_0x502406=new _0x10ed9a(_0x502406)),this['decode'](_0x502406,_0x502406['uint32']());},_0x553cad['verify']=function(_0x25ae2e){return'object'!=typeof _0x25ae2e||null===_0x25ae2e?'object\x20expected':null!=_0x25ae2e['data']&&_0x25ae2e['hasOwnProperty']('data')&&!(_0x25ae2e['data']&&'number'==typeof _0x25ae2e['data']['length']||_0x17c6dc['isString'](_0x25ae2e['data']))?'data:\x20buffer\x20expected':null!=_0x25ae2e['data1']&&_0x25ae2e['hasOwnProperty']('data1')&&!(_0x25ae2e['data1']&&'number'==typeof _0x25ae2e['data1']['length']||_0x17c6dc['isString'](_0x25ae2e['data1']))?'data1:\x20buffer\x20expected':null;},_0x553cad['fromObject']=function(_0x2b9071){if(_0x2b9071 instanceof _0x1d55ed['BytesBytesPacketDataMessage'])return _0x2b9071;var _0x6eb54c=new _0x1d55ed['BytesBytesPacketDataMessage']();return null!=_0x2b9071['data']&&('string'==typeof _0x2b9071['data']?_0x17c6dc['base64']['decode'](_0x2b9071['data'],_0x6eb54c['data']=_0x17c6dc['newBuffer'](_0x17c6dc['base64']['length'](_0x2b9071['data'])),0x0):_0x2b9071['data']['length']>=0x0&&(_0x6eb54c['data']=_0x2b9071['data'])),null!=_0x2b9071['data1']&&('string'==typeof _0x2b9071['data1']?_0x17c6dc['base64']['decode'](_0x2b9071['data1'],_0x6eb54c['data1']=_0x17c6dc['newBuffer'](_0x17c6dc['base64']['length'](_0x2b9071['data1'])),0x0):_0x2b9071['data1']['length']>=0x0&&(_0x6eb54c['data1']=_0x2b9071['data1'])),_0x6eb54c;},_0x553cad['toObject']=function(_0x21673c,_0x467d48){_0x467d48||(_0x467d48={});var _0x394bb4={};return _0x467d48['defaults']&&(_0x467d48['bytes']===String?_0x394bb4['data']='':(_0x394bb4['data']=[],_0x467d48['bytes']!==Array&&(_0x394bb4['data']=_0x17c6dc['newBuffer'](_0x394bb4['data']))),_0x467d48['bytes']===String?_0x394bb4['data1']='':(_0x394bb4['data1']=[],_0x467d48['bytes']!==Array&&(_0x394bb4['data1']=_0x17c6dc['newBuffer'](_0x394bb4['data1'])))),null!=_0x21673c['data']&&_0x21673c['hasOwnProperty']('data')&&(_0x394bb4['data']=_0x467d48['bytes']===String?_0x17c6dc['base64']['encode'](_0x21673c['data'],0x0,_0x21673c['data']['length']):_0x467d48['bytes']===Array?Array['prototype']['slice']['call'](_0x21673c['data']):_0x21673c['data']),null!=_0x21673c['data1']&&_0x21673c['hasOwnProperty']('data1')&&(_0x394bb4['data1']=_0x467d48['bytes']===String?_0x17c6dc['base64']['encode'](_0x21673c['data1'],0x0,_0x21673c['data1']['length']):_0x467d48['bytes']===Array?Array['prototype']['slice']['call'](_0x21673c['data1']):_0x21673c['data1']),_0x394bb4;},_0x553cad['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x553cad['getTypeUrl']=function(_0x7f3ea4){return void 0x0===_0x7f3ea4&&(_0x7f3ea4='type.googleapis.com'),_0x7f3ea4+'/BytesBytesPacketDataMessage';},_0x553cad;}()),_0x1d55ed['ChannelMessage']=(function(){function _0x2be534(_0x3e62b9){if(_0x3e62b9){for(var _0x26015e=Object['keys'](_0x3e62b9),_0x455113=0x0;_0x455113<_0x26015e['length'];++_0x455113)null!=_0x3e62b9[_0x26015e[_0x455113]]&&(this[_0x26015e[_0x455113]]=_0x3e62b9[_0x26015e[_0x455113]]);}}return _0x2be534['prototype']['type']=0x0,_0x2be534['prototype']['socketId']='',_0x2be534['prototype']['data']=_0x17c6dc['newBuffer']([]),_0x2be534['create']=function(_0x2c22b5){return new _0x2be534(_0x2c22b5);},_0x2be534['encode']=function(_0x118586,_0x212ce8){return _0x212ce8||(_0x212ce8=_0x214d5c['create']()),null!=_0x118586['type']&&Object['hasOwnProperty']['call'](_0x118586,'type')&&_0x212ce8['uint32'](0x8)['uint32'](_0x118586['type']),null!=_0x118586['socketId']&&Object['hasOwnProperty']['call'](_0x118586,'socketId')&&_0x212ce8['uint32'](0x12)['string'](_0x118586['socketId']),null!=_0x118586['data']&&Object['hasOwnProperty']['call'](_0x118586,'data')&&_0x212ce8['uint32'](0x1a)['bytes'](_0x118586['data']),_0x212ce8;},_0x2be534['encodeDelimited']=function(_0x531684,_0x3533d9){return this['encode'](_0x531684,_0x3533d9)['ldelim']();},_0x2be534['decode']=function(_0x25ed71,_0x3da645,_0x4b9d7d){_0x25ed71 instanceof _0x10ed9a||(_0x25ed71=_0x10ed9a['create'](_0x25ed71));for(var _0x5eb4e3=void 0x0===_0x3da645?_0x25ed71['len']:_0x25ed71['pos']+_0x3da645,_0x19f571=new _0x1d55ed['ChannelMessage']();_0x25ed71['pos']<_0x5eb4e3;){var _0x2e2b01=_0x25ed71['uint32']();if(_0x2e2b01===_0x4b9d7d)break;switch(_0x2e2b01>>>0x3){case 0x1:_0x19f571['type']=_0x25ed71['uint32']();break;case 0x2:_0x19f571['socketId']=_0x25ed71['string']();break;case 0x3:_0x19f571['data']=_0x25ed71['bytes']();break;default:_0x25ed71['skipType'](0x7&_0x2e2b01);}}return _0x19f571;},_0x2be534['decodeDelimited']=function(_0x8e6a17){return _0x8e6a17 instanceof _0x10ed9a||(_0x8e6a17=new _0x10ed9a(_0x8e6a17)),this['decode'](_0x8e6a17,_0x8e6a17['uint32']());},_0x2be534['verify']=function(_0x50e224){return'object'!=typeof _0x50e224||null===_0x50e224?'object\x20expected':null!=_0x50e224['type']&&_0x50e224['hasOwnProperty']('type')&&!_0x17c6dc['isInteger'](_0x50e224['type'])?'type:\x20integer\x20expected':null!=_0x50e224['socketId']&&_0x50e224['hasOwnProperty']('socketId')&&!_0x17c6dc['isString'](_0x50e224['socketId'])?'socketId:\x20string\x20expected':null!=_0x50e224['data']&&_0x50e224['hasOwnProperty']('data')&&!(_0x50e224['data']&&'number'==typeof _0x50e224['data']['length']||_0x17c6dc['isString'](_0x50e224['data']))?'data:\x20buffer\x20expected':null;},_0x2be534['fromObject']=function(_0x273df9){if(_0x273df9 instanceof _0x1d55ed['ChannelMessage'])return _0x273df9;var _0x2409e6=new _0x1d55ed['ChannelMessage']();return null!=_0x273df9['type']&&(_0x2409e6['type']=_0x273df9['type']>>>0x0),null!=_0x273df9['socketId']&&(_0x2409e6['socketId']=String(_0x273df9['socketId'])),null!=_0x273df9['data']&&('string'==typeof _0x273df9['data']?_0x17c6dc['base64']['decode'](_0x273df9['data'],_0x2409e6['data']=_0x17c6dc['newBuffer'](_0x17c6dc['base64']['length'](_0x273df9['data'])),0x0):_0x273df9['data']['length']>=0x0&&(_0x2409e6['data']=_0x273df9['data'])),_0x2409e6;},_0x2be534['toObject']=function(_0x266eba,_0x381bd7){_0x381bd7||(_0x381bd7={});var _0x4803b3={};return _0x381bd7['defaults']&&(_0x4803b3['type']=0x0,_0x4803b3['socketId']='',_0x381bd7['bytes']===String?_0x4803b3['data']='':(_0x4803b3['data']=[],_0x381bd7['bytes']!==Array&&(_0x4803b3['data']=_0x17c6dc['newBuffer'](_0x4803b3['data'])))),null!=_0x266eba['type']&&_0x266eba['hasOwnProperty']('type')&&(_0x4803b3['type']=_0x266eba['type']),null!=_0x266eba['socketId']&&_0x266eba['hasOwnProperty']('socketId')&&(_0x4803b3['socketId']=_0x266eba['socketId']),null!=_0x266eba['data']&&_0x266eba['hasOwnProperty']('data')&&(_0x4803b3['data']=_0x381bd7['bytes']===String?_0x17c6dc['base64']['encode'](_0x266eba['data'],0x0,_0x266eba['data']['length']):_0x381bd7['bytes']===Array?Array['prototype']['slice']['call'](_0x266eba['data']):_0x266eba['data']),_0x4803b3;},_0x2be534['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2be534['getTypeUrl']=function(_0x3e837d){return void 0x0===_0x3e837d&&(_0x3e837d='type.googleapis.com'),_0x3e837d+'/ChannelMessage';},_0x2be534;}()),_0x1d55ed['GetUserResponse']=(function(){function _0x3bf690(_0x37ba46){if(this['attributes']=[],_0x37ba46){for(var _0x38462b=Object['keys'](_0x37ba46),_0x2df921=0x0;_0x2df921<_0x38462b['length'];++_0x2df921)null!=_0x37ba46[_0x38462b[_0x2df921]]&&(this[_0x38462b[_0x2df921]]=_0x37ba46[_0x38462b[_0x2df921]]);}}return _0x3bf690['prototype']['attributes']=_0x17c6dc['emptyArray'],_0x3bf690['create']=function(_0x3c4edd){return new _0x3bf690(_0x3c4edd);},_0x3bf690['encode']=function(_0x1e44e3,_0x5a45b5){if(_0x5a45b5||(_0x5a45b5=_0x214d5c['create']()),null!=_0x1e44e3['attributes']&&_0x1e44e3['attributes']['length']){for(var _0x39a917=0x0;_0x39a917<_0x1e44e3['attributes']['length'];++_0x39a917)_0x1d55ed['KeyValueDescriptor']['encode'](_0x1e44e3['attributes'][_0x39a917],_0x5a45b5['uint32'](0xa)['fork']())['ldelim']();}return _0x5a45b5;},_0x3bf690['encodeDelimited']=function(_0x356595,_0x3c7462){return this['encode'](_0x356595,_0x3c7462)['ldelim']();},_0x3bf690['decode']=function(_0x5739c9,_0x63d7cc,_0xf306c1){_0x5739c9 instanceof _0x10ed9a||(_0x5739c9=_0x10ed9a['create'](_0x5739c9));for(var _0x3f113c=void 0x0===_0x63d7cc?_0x5739c9['len']:_0x5739c9['pos']+_0x63d7cc,_0x1e441e=new _0x1d55ed['GetUserResponse']();_0x5739c9['pos']<_0x3f113c;){var _0x13974b=_0x5739c9['uint32']();if(_0x13974b===_0xf306c1)break;_0x13974b>>>0x3==0x1?(_0x1e441e['attributes']&&_0x1e441e['attributes']['length']||(_0x1e441e['attributes']=[]),_0x1e441e['attributes']['push'](_0x1d55ed['KeyValueDescriptor']['decode'](_0x5739c9,_0x5739c9['uint32']()))):_0x5739c9['skipType'](0x7&_0x13974b);}return _0x1e441e;},_0x3bf690['decodeDelimited']=function(_0x10f7aa){return _0x10f7aa instanceof _0x10ed9a||(_0x10f7aa=new _0x10ed9a(_0x10f7aa)),this['decode'](_0x10f7aa,_0x10f7aa['uint32']());},_0x3bf690['verify']=function(_0x4e81cd){if('object'!=typeof _0x4e81cd||null===_0x4e81cd)return'object\x20expected';if(null!=_0x4e81cd['attributes']&&_0x4e81cd['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x4e81cd['attributes']))return'attributes:\x20array\x20expected';for(var _0x2318ed=0x0;_0x2318ed<_0x4e81cd['attributes']['length'];++_0x2318ed){var _0x243b51=_0x1d55ed['KeyValueDescriptor']['verify'](_0x4e81cd['attributes'][_0x2318ed]);if(_0x243b51)return'attributes.'+_0x243b51;}}return null;},_0x3bf690['fromObject']=function(_0x57053d){if(_0x57053d instanceof _0x1d55ed['GetUserResponse'])return _0x57053d;var _0x52c475=new _0x1d55ed['GetUserResponse']();if(_0x57053d['attributes']){if(!Array['isArray'](_0x57053d['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x52c475['attributes']=[];for(var _0x3d39eb=0x0;_0x3d39eb<_0x57053d['attributes']['length'];++_0x3d39eb){if('object'!=typeof _0x57053d['attributes'][_0x3d39eb])throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x52c475['attributes'][_0x3d39eb]=_0x1d55ed['KeyValueDescriptor']['fromObject'](_0x57053d['attributes'][_0x3d39eb]);}}return _0x52c475;},_0x3bf690['toObject']=function(_0x83ab9d,_0x184096){_0x184096||(_0x184096={});var _0x511cf3={};if((_0x184096['arrays']||_0x184096['defaults'])&&(_0x511cf3['attributes']=[]),_0x83ab9d['attributes']&&_0x83ab9d['attributes']['length']){_0x511cf3['attributes']=[];for(var _0x237711=0x0;_0x237711<_0x83ab9d['attributes']['length'];++_0x237711)_0x511cf3['attributes'][_0x237711]=_0x1d55ed['KeyValueDescriptor']['toObject'](_0x83ab9d['attributes'][_0x237711],_0x184096);}return _0x511cf3;},_0x3bf690['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3bf690['getTypeUrl']=function(_0x56496d){return void 0x0===_0x56496d&&(_0x56496d='type.googleapis.com'),_0x56496d+'/GetUserResponse';},_0x3bf690;}()),_0x1d55ed['GetManyUsersResponse']=(function(){function _0x174c2e(_0x514503){if(this['users']=[],_0x514503){for(var _0x2e26f6=Object['keys'](_0x514503),_0x2f43ff=0x0;_0x2f43ff<_0x2e26f6['length'];++_0x2f43ff)null!=_0x514503[_0x2e26f6[_0x2f43ff]]&&(this[_0x2e26f6[_0x2f43ff]]=_0x514503[_0x2e26f6[_0x2f43ff]]);}}return _0x174c2e['prototype']['users']=_0x17c6dc['emptyArray'],_0x174c2e['create']=function(_0xf0ab99){return new _0x174c2e(_0xf0ab99);},_0x174c2e['encode']=function(_0x4ebdb0,_0x2ef99b){if(_0x2ef99b||(_0x2ef99b=_0x214d5c['create']()),null!=_0x4ebdb0['users']&&_0x4ebdb0['users']['length']){for(var _0x36d654=0x0;_0x36d654<_0x4ebdb0['users']['length'];++_0x36d654)_0x1d55ed['UserDescriptor']['encode'](_0x4ebdb0['users'][_0x36d654],_0x2ef99b['uint32'](0xa)['fork']())['ldelim']();}return _0x2ef99b;},_0x174c2e['encodeDelimited']=function(_0x111212,_0x3f15ba){return this['encode'](_0x111212,_0x3f15ba)['ldelim']();},_0x174c2e['decode']=function(_0x2e113d,_0x11724e,_0x49bd8a){_0x2e113d instanceof _0x10ed9a||(_0x2e113d=_0x10ed9a['create'](_0x2e113d));for(var _0x1991a2=void 0x0===_0x11724e?_0x2e113d['len']:_0x2e113d['pos']+_0x11724e,_0x2c03eb=new _0x1d55ed['GetManyUsersResponse']();_0x2e113d['pos']<_0x1991a2;){var _0x28a56b=_0x2e113d['uint32']();if(_0x28a56b===_0x49bd8a)break;_0x28a56b>>>0x3==0x1?(_0x2c03eb['users']&&_0x2c03eb['users']['length']||(_0x2c03eb['users']=[]),_0x2c03eb['users']['push'](_0x1d55ed['UserDescriptor']['decode'](_0x2e113d,_0x2e113d['uint32']()))):_0x2e113d['skipType'](0x7&_0x28a56b);}return _0x2c03eb;},_0x174c2e['decodeDelimited']=function(_0xe397a9){return _0xe397a9 instanceof _0x10ed9a||(_0xe397a9=new _0x10ed9a(_0xe397a9)),this['decode'](_0xe397a9,_0xe397a9['uint32']());},_0x174c2e['verify']=function(_0x125603){if('object'!=typeof _0x125603||null===_0x125603)return'object\x20expected';if(null!=_0x125603['users']&&_0x125603['hasOwnProperty']('users')){if(!Array['isArray'](_0x125603['users']))return'users:\x20array\x20expected';for(var _0xc91df9=0x0;_0xc91df9<_0x125603['users']['length'];++_0xc91df9){var _0x4330d0=_0x1d55ed['UserDescriptor']['verify'](_0x125603['users'][_0xc91df9]);if(_0x4330d0)return'users.'+_0x4330d0;}}return null;},_0x174c2e['fromObject']=function(_0x5a86b0){if(_0x5a86b0 instanceof _0x1d55ed['GetManyUsersResponse'])return _0x5a86b0;var _0x1546b2=new _0x1d55ed['GetManyUsersResponse']();if(_0x5a86b0['users']){if(!Array['isArray'](_0x5a86b0['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x1546b2['users']=[];for(var _0x311b81=0x0;_0x311b81<_0x5a86b0['users']['length'];++_0x311b81){if('object'!=typeof _0x5a86b0['users'][_0x311b81])throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x1546b2['users'][_0x311b81]=_0x1d55ed['UserDescriptor']['fromObject'](_0x5a86b0['users'][_0x311b81]);}}return _0x1546b2;},_0x174c2e['toObject']=function(_0x572593,_0x2ba0ba){_0x2ba0ba||(_0x2ba0ba={});var _0x482f82={};if((_0x2ba0ba['arrays']||_0x2ba0ba['defaults'])&&(_0x482f82['users']=[]),_0x572593['users']&&_0x572593['users']['length']){_0x482f82['users']=[];for(var _0x1f8727=0x0;_0x1f8727<_0x572593['users']['length'];++_0x1f8727)_0x482f82['users'][_0x1f8727]=_0x1d55ed['UserDescriptor']['toObject'](_0x572593['users'][_0x1f8727],_0x2ba0ba);}return _0x482f82;},_0x174c2e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x174c2e['getTypeUrl']=function(_0x409a84){return void 0x0===_0x409a84&&(_0x409a84='type.googleapis.com'),_0x409a84+'/GetManyUsersResponse';},_0x174c2e;}()),_0x1d55ed['GetUserMessage']=(function(){function _0x3bc7d1(_0x127479){if(_0x127479){for(var _0x590e37=Object['keys'](_0x127479),_0x23f91b=0x0;_0x23f91b<_0x590e37['length'];++_0x23f91b)null!=_0x127479[_0x590e37[_0x23f91b]]&&(this[_0x590e37[_0x23f91b]]=_0x127479[_0x590e37[_0x23f91b]]);}}return _0x3bc7d1['prototype']['id']='',_0x3bc7d1['create']=function(_0xa308df){return new _0x3bc7d1(_0xa308df);},_0x3bc7d1['encode']=function(_0x523ee9,_0x4f28bf){return _0x4f28bf||(_0x4f28bf=_0x214d5c['create']()),null!=_0x523ee9['id']&&Object['hasOwnProperty']['call'](_0x523ee9,'id')&&_0x4f28bf['uint32'](0xa)['string'](_0x523ee9['id']),_0x4f28bf;},_0x3bc7d1['encodeDelimited']=function(_0xd3590e,_0x29e625){return this['encode'](_0xd3590e,_0x29e625)['ldelim']();},_0x3bc7d1['decode']=function(_0x5ebeda,_0x2421f0,_0x7cc6c1){_0x5ebeda instanceof _0x10ed9a||(_0x5ebeda=_0x10ed9a['create'](_0x5ebeda));for(var _0x56aca6=void 0x0===_0x2421f0?_0x5ebeda['len']:_0x5ebeda['pos']+_0x2421f0,_0x5111d2=new _0x1d55ed['GetUserMessage']();_0x5ebeda['pos']<_0x56aca6;){var _0x4a06b4=_0x5ebeda['uint32']();if(_0x4a06b4===_0x7cc6c1)break;_0x4a06b4>>>0x3==0x1?_0x5111d2['id']=_0x5ebeda['string']():_0x5ebeda['skipType'](0x7&_0x4a06b4);}return _0x5111d2;},_0x3bc7d1['decodeDelimited']=function(_0x2635c8){return _0x2635c8 instanceof _0x10ed9a||(_0x2635c8=new _0x10ed9a(_0x2635c8)),this['decode'](_0x2635c8,_0x2635c8['uint32']());},_0x3bc7d1['verify']=function(_0x44fdbd){return'object'!=typeof _0x44fdbd||null===_0x44fdbd?'object\x20expected':null!=_0x44fdbd['id']&&_0x44fdbd['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x44fdbd['id'])?'id:\x20string\x20expected':null;},_0x3bc7d1['fromObject']=function(_0x3811ee){if(_0x3811ee instanceof _0x1d55ed['GetUserMessage'])return _0x3811ee;var _0x1b333b=new _0x1d55ed['GetUserMessage']();return null!=_0x3811ee['id']&&(_0x1b333b['id']=String(_0x3811ee['id'])),_0x1b333b;},_0x3bc7d1['toObject']=function(_0x948276,_0x1da04d){_0x1da04d||(_0x1da04d={});var _0x3afb11={};return _0x1da04d['defaults']&&(_0x3afb11['id']=''),null!=_0x948276['id']&&_0x948276['hasOwnProperty']('id')&&(_0x3afb11['id']=_0x948276['id']),_0x3afb11;},_0x3bc7d1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3bc7d1['getTypeUrl']=function(_0x2d84b0){return void 0x0===_0x2d84b0&&(_0x2d84b0='type.googleapis.com'),_0x2d84b0+'/GetUserMessage';},_0x3bc7d1;}()),_0x1d55ed['GetManyUsersMessage']=(function(){function _0x3ef46d(_0x1bcf1f){if(this['ids']=[],_0x1bcf1f){for(var _0x5d4ca1=Object['keys'](_0x1bcf1f),_0x348449=0x0;_0x348449<_0x5d4ca1['length'];++_0x348449)null!=_0x1bcf1f[_0x5d4ca1[_0x348449]]&&(this[_0x5d4ca1[_0x348449]]=_0x1bcf1f[_0x5d4ca1[_0x348449]]);}}return _0x3ef46d['prototype']['ids']=_0x17c6dc['emptyArray'],_0x3ef46d['create']=function(_0x16a3e7){return new _0x3ef46d(_0x16a3e7);},_0x3ef46d['encode']=function(_0xd86e4f,_0x54ea55){if(_0x54ea55||(_0x54ea55=_0x214d5c['create']()),null!=_0xd86e4f['ids']&&_0xd86e4f['ids']['length']){for(var _0x170a7e=0x0;_0x170a7e<_0xd86e4f['ids']['length'];++_0x170a7e)_0x54ea55['uint32'](0xa)['string'](_0xd86e4f['ids'][_0x170a7e]);}return _0x54ea55;},_0x3ef46d['encodeDelimited']=function(_0x317ca7,_0x23c5a0){return this['encode'](_0x317ca7,_0x23c5a0)['ldelim']();},_0x3ef46d['decode']=function(_0x22da7e,_0x124479,_0x260524){_0x22da7e instanceof _0x10ed9a||(_0x22da7e=_0x10ed9a['create'](_0x22da7e));for(var _0x285c30=void 0x0===_0x124479?_0x22da7e['len']:_0x22da7e['pos']+_0x124479,_0x2345d4=new _0x1d55ed['GetManyUsersMessage']();_0x22da7e['pos']<_0x285c30;){var _0x98498b=_0x22da7e['uint32']();if(_0x98498b===_0x260524)break;_0x98498b>>>0x3==0x1?(_0x2345d4['ids']&&_0x2345d4['ids']['length']||(_0x2345d4['ids']=[]),_0x2345d4['ids']['push'](_0x22da7e['string']())):_0x22da7e['skipType'](0x7&_0x98498b);}return _0x2345d4;},_0x3ef46d['decodeDelimited']=function(_0x85b100){return _0x85b100 instanceof _0x10ed9a||(_0x85b100=new _0x10ed9a(_0x85b100)),this['decode'](_0x85b100,_0x85b100['uint32']());},_0x3ef46d['verify']=function(_0xa84dcc){if('object'!=typeof _0xa84dcc||null===_0xa84dcc)return'object\x20expected';if(null!=_0xa84dcc['ids']&&_0xa84dcc['hasOwnProperty']('ids')){if(!Array['isArray'](_0xa84dcc['ids']))return'ids:\x20array\x20expected';for(var _0xa7a7a9=0x0;_0xa7a7a9<_0xa84dcc['ids']['length'];++_0xa7a7a9)if(!_0x17c6dc['isString'](_0xa84dcc['ids'][_0xa7a7a9]))return'ids:\x20string[]\x20expected';}return null;},_0x3ef46d['fromObject']=function(_0x11b288){if(_0x11b288 instanceof _0x1d55ed['GetManyUsersMessage'])return _0x11b288;var _0x440d6d=new _0x1d55ed['GetManyUsersMessage']();if(_0x11b288['ids']){if(!Array['isArray'](_0x11b288['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0x440d6d['ids']=[];for(var _0x5f5d47=0x0;_0x5f5d47<_0x11b288['ids']['length'];++_0x5f5d47)_0x440d6d['ids'][_0x5f5d47]=String(_0x11b288['ids'][_0x5f5d47]);}return _0x440d6d;},_0x3ef46d['toObject']=function(_0x516dbd,_0x453dcf){_0x453dcf||(_0x453dcf={});var _0x41ed2a={};if((_0x453dcf['arrays']||_0x453dcf['defaults'])&&(_0x41ed2a['ids']=[]),_0x516dbd['ids']&&_0x516dbd['ids']['length']){_0x41ed2a['ids']=[];for(var _0x22908b=0x0;_0x22908b<_0x516dbd['ids']['length'];++_0x22908b)_0x41ed2a['ids'][_0x22908b]=_0x516dbd['ids'][_0x22908b];}return _0x41ed2a;},_0x3ef46d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3ef46d['getTypeUrl']=function(_0x2ca51c){return void 0x0===_0x2ca51c&&(_0x2ca51c='type.googleapis.com'),_0x2ca51c+'/GetManyUsersMessage';},_0x3ef46d;}()),_0x1d55ed['UserDescriptor']=(function(){function _0x18ad5a(_0x9c3b40){if(this['attributes']=[],_0x9c3b40){for(var _0x1d5e0c=Object['keys'](_0x9c3b40),_0x45843e=0x0;_0x45843e<_0x1d5e0c['length'];++_0x45843e)null!=_0x9c3b40[_0x1d5e0c[_0x45843e]]&&(this[_0x1d5e0c[_0x45843e]]=_0x9c3b40[_0x1d5e0c[_0x45843e]]);}}return _0x18ad5a['prototype']['attributes']=_0x17c6dc['emptyArray'],_0x18ad5a['create']=function(_0x2852ef){return new _0x18ad5a(_0x2852ef);},_0x18ad5a['encode']=function(_0x2f46c4,_0x20e527){if(_0x20e527||(_0x20e527=_0x214d5c['create']()),null!=_0x2f46c4['attributes']&&_0x2f46c4['attributes']['length']){for(var _0x3574af=0x0;_0x3574af<_0x2f46c4['attributes']['length'];++_0x3574af)_0x1d55ed['KeyValueDescriptor']['encode'](_0x2f46c4['attributes'][_0x3574af],_0x20e527['uint32'](0xa)['fork']())['ldelim']();}return _0x20e527;},_0x18ad5a['encodeDelimited']=function(_0x3c2dcf,_0x53a04f){return this['encode'](_0x3c2dcf,_0x53a04f)['ldelim']();},_0x18ad5a['decode']=function(_0x46eba8,_0x778446,_0x829cd1){_0x46eba8 instanceof _0x10ed9a||(_0x46eba8=_0x10ed9a['create'](_0x46eba8));for(var _0x4ca541=void 0x0===_0x778446?_0x46eba8['len']:_0x46eba8['pos']+_0x778446,_0x44b66f=new _0x1d55ed['UserDescriptor']();_0x46eba8['pos']<_0x4ca541;){var _0x34958f=_0x46eba8['uint32']();if(_0x34958f===_0x829cd1)break;_0x34958f>>>0x3==0x1?(_0x44b66f['attributes']&&_0x44b66f['attributes']['length']||(_0x44b66f['attributes']=[]),_0x44b66f['attributes']['push'](_0x1d55ed['KeyValueDescriptor']['decode'](_0x46eba8,_0x46eba8['uint32']()))):_0x46eba8['skipType'](0x7&_0x34958f);}return _0x44b66f;},_0x18ad5a['decodeDelimited']=function(_0x482535){return _0x482535 instanceof _0x10ed9a||(_0x482535=new _0x10ed9a(_0x482535)),this['decode'](_0x482535,_0x482535['uint32']());},_0x18ad5a['verify']=function(_0x50fe54){if('object'!=typeof _0x50fe54||null===_0x50fe54)return'object\x20expected';if(null!=_0x50fe54['attributes']&&_0x50fe54['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x50fe54['attributes']))return'attributes:\x20array\x20expected';for(var _0x2c6662=0x0;_0x2c6662<_0x50fe54['attributes']['length'];++_0x2c6662){var _0x1dbb24=_0x1d55ed['KeyValueDescriptor']['verify'](_0x50fe54['attributes'][_0x2c6662]);if(_0x1dbb24)return'attributes.'+_0x1dbb24;}}return null;},_0x18ad5a['fromObject']=function(_0x26b9a0){if(_0x26b9a0 instanceof _0x1d55ed['UserDescriptor'])return _0x26b9a0;var _0x270194=new _0x1d55ed['UserDescriptor']();if(_0x26b9a0['attributes']){if(!Array['isArray'](_0x26b9a0['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x270194['attributes']=[];for(var _0x5dfe88=0x0;_0x5dfe88<_0x26b9a0['attributes']['length'];++_0x5dfe88){if('object'!=typeof _0x26b9a0['attributes'][_0x5dfe88])throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x270194['attributes'][_0x5dfe88]=_0x1d55ed['KeyValueDescriptor']['fromObject'](_0x26b9a0['attributes'][_0x5dfe88]);}}return _0x270194;},_0x18ad5a['toObject']=function(_0x180435,_0x94af5e){_0x94af5e||(_0x94af5e={});var _0x2bf2a9={};if((_0x94af5e['arrays']||_0x94af5e['defaults'])&&(_0x2bf2a9['attributes']=[]),_0x180435['attributes']&&_0x180435['attributes']['length']){_0x2bf2a9['attributes']=[];for(var _0x106d62=0x0;_0x106d62<_0x180435['attributes']['length'];++_0x106d62)_0x2bf2a9['attributes'][_0x106d62]=_0x1d55ed['KeyValueDescriptor']['toObject'](_0x180435['attributes'][_0x106d62],_0x94af5e);}return _0x2bf2a9;},_0x18ad5a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x18ad5a['getTypeUrl']=function(_0x37bd05){return void 0x0===_0x37bd05&&(_0x37bd05='type.googleapis.com'),_0x37bd05+'/UserDescriptor';},_0x18ad5a;}()),_0x1d55ed['TrackChangesGetSuggestionResponse']=(function(){function _0xd10966(_0x36d8b6){if(_0x36d8b6){for(var _0x6320db=Object['keys'](_0x36d8b6),_0x4f8b0e=0x0;_0x4f8b0e<_0x6320db['length'];++_0x4f8b0e)null!=_0x36d8b6[_0x6320db[_0x4f8b0e]]&&(this[_0x6320db[_0x4f8b0e]]=_0x36d8b6[_0x6320db[_0x4f8b0e]]);}}return _0xd10966['prototype']['id']='',_0xd10966['prototype']['authorId']='',_0xd10966['prototype']['type']='',_0xd10966['prototype']['createdAt']='',_0xd10966['prototype']['data']='',_0xd10966['prototype']['hasComments']=!0x1,_0xd10966['prototype']['state']='',_0xd10966['prototype']['attributes']='',_0xd10966['create']=function(_0x28adf3){return new _0xd10966(_0x28adf3);},_0xd10966['encode']=function(_0x534595,_0x36b09d){return _0x36b09d||(_0x36b09d=_0x214d5c['create']()),null!=_0x534595['id']&&Object['hasOwnProperty']['call'](_0x534595,'id')&&_0x36b09d['uint32'](0xa)['string'](_0x534595['id']),null!=_0x534595['authorId']&&Object['hasOwnProperty']['call'](_0x534595,'authorId')&&_0x36b09d['uint32'](0x12)['string'](_0x534595['authorId']),null!=_0x534595['type']&&Object['hasOwnProperty']['call'](_0x534595,'type')&&_0x36b09d['uint32'](0x1a)['string'](_0x534595['type']),null!=_0x534595['createdAt']&&Object['hasOwnProperty']['call'](_0x534595,'createdAt')&&_0x36b09d['uint32'](0x22)['string'](_0x534595['createdAt']),null!=_0x534595['data']&&Object['hasOwnProperty']['call'](_0x534595,'data')&&_0x36b09d['uint32'](0x2a)['string'](_0x534595['data']),null!=_0x534595['hasComments']&&Object['hasOwnProperty']['call'](_0x534595,'hasComments')&&_0x36b09d['uint32'](0x30)['bool'](_0x534595['hasComments']),null!=_0x534595['state']&&Object['hasOwnProperty']['call'](_0x534595,'state')&&_0x36b09d['uint32'](0x3a)['string'](_0x534595['state']),null!=_0x534595['attributes']&&Object['hasOwnProperty']['call'](_0x534595,'attributes')&&_0x36b09d['uint32'](0x42)['string'](_0x534595['attributes']),_0x36b09d;},_0xd10966['encodeDelimited']=function(_0x40a091,_0x246d01){return this['encode'](_0x40a091,_0x246d01)['ldelim']();},_0xd10966['decode']=function(_0x31ded9,_0x163473,_0x36764b){_0x31ded9 instanceof _0x10ed9a||(_0x31ded9=_0x10ed9a['create'](_0x31ded9));for(var _0x242cf0=void 0x0===_0x163473?_0x31ded9['len']:_0x31ded9['pos']+_0x163473,_0x2088a0=new _0x1d55ed['TrackChangesGetSuggestionResponse']();_0x31ded9['pos']<_0x242cf0;){var _0x134c53=_0x31ded9['uint32']();if(_0x134c53===_0x36764b)break;switch(_0x134c53>>>0x3){case 0x1:_0x2088a0['id']=_0x31ded9['string']();break;case 0x2:_0x2088a0['authorId']=_0x31ded9['string']();break;case 0x3:_0x2088a0['type']=_0x31ded9['string']();break;case 0x4:_0x2088a0['createdAt']=_0x31ded9['string']();break;case 0x5:_0x2088a0['data']=_0x31ded9['string']();break;case 0x6:_0x2088a0['hasComments']=_0x31ded9['bool']();break;case 0x7:_0x2088a0['state']=_0x31ded9['string']();break;case 0x8:_0x2088a0['attributes']=_0x31ded9['string']();break;default:_0x31ded9['skipType'](0x7&_0x134c53);}}return _0x2088a0;},_0xd10966['decodeDelimited']=function(_0x3f08a0){return _0x3f08a0 instanceof _0x10ed9a||(_0x3f08a0=new _0x10ed9a(_0x3f08a0)),this['decode'](_0x3f08a0,_0x3f08a0['uint32']());},_0xd10966['verify']=function(_0x376507){return'object'!=typeof _0x376507||null===_0x376507?'object\x20expected':null!=_0x376507['id']&&_0x376507['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x376507['id'])?'id:\x20string\x20expected':null!=_0x376507['authorId']&&_0x376507['hasOwnProperty']('authorId')&&!_0x17c6dc['isString'](_0x376507['authorId'])?'authorId:\x20string\x20expected':null!=_0x376507['type']&&_0x376507['hasOwnProperty']('type')&&!_0x17c6dc['isString'](_0x376507['type'])?'type:\x20string\x20expected':null!=_0x376507['createdAt']&&_0x376507['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x376507['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x376507['data']&&_0x376507['hasOwnProperty']('data')&&!_0x17c6dc['isString'](_0x376507['data'])?'data:\x20string\x20expected':null!=_0x376507['hasComments']&&_0x376507['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x376507['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x376507['state']&&_0x376507['hasOwnProperty']('state')&&!_0x17c6dc['isString'](_0x376507['state'])?'state:\x20string\x20expected':null!=_0x376507['attributes']&&_0x376507['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x376507['attributes'])?'attributes:\x20string\x20expected':null;},_0xd10966['fromObject']=function(_0x21a6c0){if(_0x21a6c0 instanceof _0x1d55ed['TrackChangesGetSuggestionResponse'])return _0x21a6c0;var _0x314f2d=new _0x1d55ed['TrackChangesGetSuggestionResponse']();return null!=_0x21a6c0['id']&&(_0x314f2d['id']=String(_0x21a6c0['id'])),null!=_0x21a6c0['authorId']&&(_0x314f2d['authorId']=String(_0x21a6c0['authorId'])),null!=_0x21a6c0['type']&&(_0x314f2d['type']=String(_0x21a6c0['type'])),null!=_0x21a6c0['createdAt']&&(_0x314f2d['createdAt']=String(_0x21a6c0['createdAt'])),null!=_0x21a6c0['data']&&(_0x314f2d['data']=String(_0x21a6c0['data'])),null!=_0x21a6c0['hasComments']&&(_0x314f2d['hasComments']=Boolean(_0x21a6c0['hasComments'])),null!=_0x21a6c0['state']&&(_0x314f2d['state']=String(_0x21a6c0['state'])),null!=_0x21a6c0['attributes']&&(_0x314f2d['attributes']=String(_0x21a6c0['attributes'])),_0x314f2d;},_0xd10966['toObject']=function(_0x139a9b,_0x2d1825){_0x2d1825||(_0x2d1825={});var _0x254828={};return _0x2d1825['defaults']&&(_0x254828['id']='',_0x254828['authorId']='',_0x254828['type']='',_0x254828['createdAt']='',_0x254828['data']='',_0x254828['hasComments']=!0x1,_0x254828['state']='',_0x254828['attributes']=''),null!=_0x139a9b['id']&&_0x139a9b['hasOwnProperty']('id')&&(_0x254828['id']=_0x139a9b['id']),null!=_0x139a9b['authorId']&&_0x139a9b['hasOwnProperty']('authorId')&&(_0x254828['authorId']=_0x139a9b['authorId']),null!=_0x139a9b['type']&&_0x139a9b['hasOwnProperty']('type')&&(_0x254828['type']=_0x139a9b['type']),null!=_0x139a9b['createdAt']&&_0x139a9b['hasOwnProperty']('createdAt')&&(_0x254828['createdAt']=_0x139a9b['createdAt']),null!=_0x139a9b['data']&&_0x139a9b['hasOwnProperty']('data')&&(_0x254828['data']=_0x139a9b['data']),null!=_0x139a9b['hasComments']&&_0x139a9b['hasOwnProperty']('hasComments')&&(_0x254828['hasComments']=_0x139a9b['hasComments']),null!=_0x139a9b['state']&&_0x139a9b['hasOwnProperty']('state')&&(_0x254828['state']=_0x139a9b['state']),null!=_0x139a9b['attributes']&&_0x139a9b['hasOwnProperty']('attributes')&&(_0x254828['attributes']=_0x139a9b['attributes']),_0x254828;},_0xd10966['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xd10966['getTypeUrl']=function(_0x492147){return void 0x0===_0x492147&&(_0x492147='type.googleapis.com'),_0x492147+'/TrackChangesGetSuggestionResponse';},_0xd10966;}()),_0x1d55ed['TrackChangesGetAllSuggestionsResponse']=(function(){function _0x2e5432(_0x4a1f9a){if(this['suggestions']=[],this['suggestionsV2']=[],_0x4a1f9a){for(var _0x18a963=Object['keys'](_0x4a1f9a),_0x27b65c=0x0;_0x27b65c<_0x18a963['length'];++_0x27b65c)null!=_0x4a1f9a[_0x18a963[_0x27b65c]]&&(this[_0x18a963[_0x27b65c]]=_0x4a1f9a[_0x18a963[_0x27b65c]]);}}return _0x2e5432['prototype']['suggestions']=_0x17c6dc['emptyArray'],_0x2e5432['prototype']['suggestionsV2']=_0x17c6dc['emptyArray'],_0x2e5432['create']=function(_0x348118){return new _0x2e5432(_0x348118);},_0x2e5432['encode']=function(_0x363f26,_0x30a729){if(_0x30a729||(_0x30a729=_0x214d5c['create']()),null!=_0x363f26['suggestions']&&_0x363f26['suggestions']['length']){for(var _0x4074b2=0x0;_0x4074b2<_0x363f26['suggestions']['length'];++_0x4074b2)_0x30a729['uint32'](0xa)['string'](_0x363f26['suggestions'][_0x4074b2]);}if(null!=_0x363f26['suggestionsV2']&&_0x363f26['suggestionsV2']['length']){for(_0x4074b2=0x0;_0x4074b2<_0x363f26['suggestionsV2']['length'];++_0x4074b2)_0x1d55ed['SuggestionDescriptor']['encode'](_0x363f26['suggestionsV2'][_0x4074b2],_0x30a729['uint32'](0x12)['fork']())['ldelim']();}return _0x30a729;},_0x2e5432['encodeDelimited']=function(_0x4a8112,_0x50bf95){return this['encode'](_0x4a8112,_0x50bf95)['ldelim']();},_0x2e5432['decode']=function(_0xffd63b,_0x1c9d5f,_0x4e116a){_0xffd63b instanceof _0x10ed9a||(_0xffd63b=_0x10ed9a['create'](_0xffd63b));for(var _0x17f2f2=void 0x0===_0x1c9d5f?_0xffd63b['len']:_0xffd63b['pos']+_0x1c9d5f,_0x20f864=new _0x1d55ed['TrackChangesGetAllSuggestionsResponse']();_0xffd63b['pos']<_0x17f2f2;){var _0xc95ea0=_0xffd63b['uint32']();if(_0xc95ea0===_0x4e116a)break;switch(_0xc95ea0>>>0x3){case 0x1:_0x20f864['suggestions']&&_0x20f864['suggestions']['length']||(_0x20f864['suggestions']=[]),_0x20f864['suggestions']['push'](_0xffd63b['string']());break;case 0x2:_0x20f864['suggestionsV2']&&_0x20f864['suggestionsV2']['length']||(_0x20f864['suggestionsV2']=[]),_0x20f864['suggestionsV2']['push'](_0x1d55ed['SuggestionDescriptor']['decode'](_0xffd63b,_0xffd63b['uint32']()));break;default:_0xffd63b['skipType'](0x7&_0xc95ea0);}}return _0x20f864;},_0x2e5432['decodeDelimited']=function(_0x1d8e7d){return _0x1d8e7d instanceof _0x10ed9a||(_0x1d8e7d=new _0x10ed9a(_0x1d8e7d)),this['decode'](_0x1d8e7d,_0x1d8e7d['uint32']());},_0x2e5432['verify']=function(_0x5bc0c9){if('object'!=typeof _0x5bc0c9||null===_0x5bc0c9)return'object\x20expected';if(null!=_0x5bc0c9['suggestions']&&_0x5bc0c9['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x5bc0c9['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x4779b5=0x0;_0x4779b5<_0x5bc0c9['suggestions']['length'];++_0x4779b5)if(!_0x17c6dc['isString'](_0x5bc0c9['suggestions'][_0x4779b5]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x5bc0c9['suggestionsV2']&&_0x5bc0c9['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x5bc0c9['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x4779b5=0x0;_0x4779b5<_0x5bc0c9['suggestionsV2']['length'];++_0x4779b5){var _0x5f1640=_0x1d55ed['SuggestionDescriptor']['verify'](_0x5bc0c9['suggestionsV2'][_0x4779b5]);if(_0x5f1640)return'suggestionsV2.'+_0x5f1640;}}return null;},_0x2e5432['fromObject']=function(_0x48fc9a){if(_0x48fc9a instanceof _0x1d55ed['TrackChangesGetAllSuggestionsResponse'])return _0x48fc9a;var _0xce3b85=new _0x1d55ed['TrackChangesGetAllSuggestionsResponse']();if(_0x48fc9a['suggestions']){if(!Array['isArray'](_0x48fc9a['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0xce3b85['suggestions']=[];for(var _0x1dc37d=0x0;_0x1dc37d<_0x48fc9a['suggestions']['length'];++_0x1dc37d)_0xce3b85['suggestions'][_0x1dc37d]=String(_0x48fc9a['suggestions'][_0x1dc37d]);}if(_0x48fc9a['suggestionsV2']){if(!Array['isArray'](_0x48fc9a['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');for(_0xce3b85['suggestionsV2']=[],_0x1dc37d=0x0;_0x1dc37d<_0x48fc9a['suggestionsV2']['length'];++_0x1dc37d){if('object'!=typeof _0x48fc9a['suggestionsV2'][_0x1dc37d])throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0xce3b85['suggestionsV2'][_0x1dc37d]=_0x1d55ed['SuggestionDescriptor']['fromObject'](_0x48fc9a['suggestionsV2'][_0x1dc37d]);}}return _0xce3b85;},_0x2e5432['toObject']=function(_0x2d18f4,_0x246651){_0x246651||(_0x246651={});var _0x246cdf={};if((_0x246651['arrays']||_0x246651['defaults'])&&(_0x246cdf['suggestions']=[],_0x246cdf['suggestionsV2']=[]),_0x2d18f4['suggestions']&&_0x2d18f4['suggestions']['length']){_0x246cdf['suggestions']=[];for(var _0x466e8c=0x0;_0x466e8c<_0x2d18f4['suggestions']['length'];++_0x466e8c)_0x246cdf['suggestions'][_0x466e8c]=_0x2d18f4['suggestions'][_0x466e8c];}if(_0x2d18f4['suggestionsV2']&&_0x2d18f4['suggestionsV2']['length']){for(_0x246cdf['suggestionsV2']=[],_0x466e8c=0x0;_0x466e8c<_0x2d18f4['suggestionsV2']['length'];++_0x466e8c)_0x246cdf['suggestionsV2'][_0x466e8c]=_0x1d55ed['SuggestionDescriptor']['toObject'](_0x2d18f4['suggestionsV2'][_0x466e8c],_0x246651);}return _0x246cdf;},_0x2e5432['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2e5432['getTypeUrl']=function(_0x594750){return void 0x0===_0x594750&&(_0x594750='type.googleapis.com'),_0x594750+'/TrackChangesGetAllSuggestionsResponse';},_0x2e5432;}()),_0x1d55ed['TrackChangesConnectResponse']=(function(){function _0x16f855(_0x3fa799){if(this['suggestions']=[],this['suggestionsV2']=[],_0x3fa799){for(var _0x5660d4=Object['keys'](_0x3fa799),_0x1970ea=0x0;_0x1970ea<_0x5660d4['length'];++_0x1970ea)null!=_0x3fa799[_0x5660d4[_0x1970ea]]&&(this[_0x5660d4[_0x1970ea]]=_0x3fa799[_0x5660d4[_0x1970ea]]);}}return _0x16f855['prototype']['channel']='',_0x16f855['prototype']['suggestions']=_0x17c6dc['emptyArray'],_0x16f855['prototype']['suggestionsV2']=_0x17c6dc['emptyArray'],_0x16f855['create']=function(_0x3ba00a){return new _0x16f855(_0x3ba00a);},_0x16f855['encode']=function(_0x2c8177,_0x58b9e7){if(_0x58b9e7||(_0x58b9e7=_0x214d5c['create']()),null!=_0x2c8177['channel']&&Object['hasOwnProperty']['call'](_0x2c8177,'channel')&&_0x58b9e7['uint32'](0xa)['string'](_0x2c8177['channel']),null!=_0x2c8177['suggestions']&&_0x2c8177['suggestions']['length']){for(var _0xc63d09=0x0;_0xc63d09<_0x2c8177['suggestions']['length'];++_0xc63d09)_0x58b9e7['uint32'](0x12)['string'](_0x2c8177['suggestions'][_0xc63d09]);}if(null!=_0x2c8177['suggestionsV2']&&_0x2c8177['suggestionsV2']['length']){for(_0xc63d09=0x0;_0xc63d09<_0x2c8177['suggestionsV2']['length'];++_0xc63d09)_0x1d55ed['SuggestionDescriptor']['encode'](_0x2c8177['suggestionsV2'][_0xc63d09],_0x58b9e7['uint32'](0x1a)['fork']())['ldelim']();}return _0x58b9e7;},_0x16f855['encodeDelimited']=function(_0x1ff947,_0x467e36){return this['encode'](_0x1ff947,_0x467e36)['ldelim']();},_0x16f855['decode']=function(_0x3da0b8,_0x2f347c,_0x56b466){_0x3da0b8 instanceof _0x10ed9a||(_0x3da0b8=_0x10ed9a['create'](_0x3da0b8));for(var _0x4edc08=void 0x0===_0x2f347c?_0x3da0b8['len']:_0x3da0b8['pos']+_0x2f347c,_0x25c14e=new _0x1d55ed['TrackChangesConnectResponse']();_0x3da0b8['pos']<_0x4edc08;){var _0x25ae03=_0x3da0b8['uint32']();if(_0x25ae03===_0x56b466)break;switch(_0x25ae03>>>0x3){case 0x1:_0x25c14e['channel']=_0x3da0b8['string']();break;case 0x2:_0x25c14e['suggestions']&&_0x25c14e['suggestions']['length']||(_0x25c14e['suggestions']=[]),_0x25c14e['suggestions']['push'](_0x3da0b8['string']());break;case 0x3:_0x25c14e['suggestionsV2']&&_0x25c14e['suggestionsV2']['length']||(_0x25c14e['suggestionsV2']=[]),_0x25c14e['suggestionsV2']['push'](_0x1d55ed['SuggestionDescriptor']['decode'](_0x3da0b8,_0x3da0b8['uint32']()));break;default:_0x3da0b8['skipType'](0x7&_0x25ae03);}}return _0x25c14e;},_0x16f855['decodeDelimited']=function(_0x10e503){return _0x10e503 instanceof _0x10ed9a||(_0x10e503=new _0x10ed9a(_0x10e503)),this['decode'](_0x10e503,_0x10e503['uint32']());},_0x16f855['verify']=function(_0x4efd10){if('object'!=typeof _0x4efd10||null===_0x4efd10)return'object\x20expected';if(null!=_0x4efd10['channel']&&_0x4efd10['hasOwnProperty']('channel')&&!_0x17c6dc['isString'](_0x4efd10['channel']))return'channel:\x20string\x20expected';if(null!=_0x4efd10['suggestions']&&_0x4efd10['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x4efd10['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x370a0f=0x0;_0x370a0f<_0x4efd10['suggestions']['length'];++_0x370a0f)if(!_0x17c6dc['isString'](_0x4efd10['suggestions'][_0x370a0f]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x4efd10['suggestionsV2']&&_0x4efd10['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x4efd10['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x370a0f=0x0;_0x370a0f<_0x4efd10['suggestionsV2']['length'];++_0x370a0f){var _0x1c6e3d=_0x1d55ed['SuggestionDescriptor']['verify'](_0x4efd10['suggestionsV2'][_0x370a0f]);if(_0x1c6e3d)return'suggestionsV2.'+_0x1c6e3d;}}return null;},_0x16f855['fromObject']=function(_0x18fcae){if(_0x18fcae instanceof _0x1d55ed['TrackChangesConnectResponse'])return _0x18fcae;var _0x4b092f=new _0x1d55ed['TrackChangesConnectResponse']();if(null!=_0x18fcae['channel']&&(_0x4b092f['channel']=String(_0x18fcae['channel'])),_0x18fcae['suggestions']){if(!Array['isArray'](_0x18fcae['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0x4b092f['suggestions']=[];for(var _0x1a9cbd=0x0;_0x1a9cbd<_0x18fcae['suggestions']['length'];++_0x1a9cbd)_0x4b092f['suggestions'][_0x1a9cbd]=String(_0x18fcae['suggestions'][_0x1a9cbd]);}if(_0x18fcae['suggestionsV2']){if(!Array['isArray'](_0x18fcae['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');for(_0x4b092f['suggestionsV2']=[],_0x1a9cbd=0x0;_0x1a9cbd<_0x18fcae['suggestionsV2']['length'];++_0x1a9cbd){if('object'!=typeof _0x18fcae['suggestionsV2'][_0x1a9cbd])throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0x4b092f['suggestionsV2'][_0x1a9cbd]=_0x1d55ed['SuggestionDescriptor']['fromObject'](_0x18fcae['suggestionsV2'][_0x1a9cbd]);}}return _0x4b092f;},_0x16f855['toObject']=function(_0x509e3c,_0x100d6d){_0x100d6d||(_0x100d6d={});var _0x416f88={};if((_0x100d6d['arrays']||_0x100d6d['defaults'])&&(_0x416f88['suggestions']=[],_0x416f88['suggestionsV2']=[]),_0x100d6d['defaults']&&(_0x416f88['channel']=''),null!=_0x509e3c['channel']&&_0x509e3c['hasOwnProperty']('channel')&&(_0x416f88['channel']=_0x509e3c['channel']),_0x509e3c['suggestions']&&_0x509e3c['suggestions']['length']){_0x416f88['suggestions']=[];for(var _0x392d4d=0x0;_0x392d4d<_0x509e3c['suggestions']['length'];++_0x392d4d)_0x416f88['suggestions'][_0x392d4d]=_0x509e3c['suggestions'][_0x392d4d];}if(_0x509e3c['suggestionsV2']&&_0x509e3c['suggestionsV2']['length']){for(_0x416f88['suggestionsV2']=[],_0x392d4d=0x0;_0x392d4d<_0x509e3c['suggestionsV2']['length'];++_0x392d4d)_0x416f88['suggestionsV2'][_0x392d4d]=_0x1d55ed['SuggestionDescriptor']['toObject'](_0x509e3c['suggestionsV2'][_0x392d4d],_0x100d6d);}return _0x416f88;},_0x16f855['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x16f855['getTypeUrl']=function(_0x2382ae){return void 0x0===_0x2382ae&&(_0x2382ae='type.googleapis.com'),_0x2382ae+'/TrackChangesConnectResponse';},_0x16f855;}()),_0x1d55ed['TrackChangesAddSuggestionResponse']=(function(){function _0x3867fd(_0x4488c2){if(_0x4488c2){for(var _0x1cca2d=Object['keys'](_0x4488c2),_0x1a0ad2=0x0;_0x1a0ad2<_0x1cca2d['length'];++_0x1a0ad2)null!=_0x4488c2[_0x1cca2d[_0x1a0ad2]]&&(this[_0x1cca2d[_0x1a0ad2]]=_0x4488c2[_0x1cca2d[_0x1a0ad2]]);}}return _0x3867fd['prototype']['id']='',_0x3867fd['prototype']['authorId']='',_0x3867fd['prototype']['type']='',_0x3867fd['prototype']['createdAt']='',_0x3867fd['prototype']['data']='',_0x3867fd['prototype']['hasComments']=!0x1,_0x3867fd['prototype']['state']='',_0x3867fd['prototype']['attributes']='',_0x3867fd['create']=function(_0x495a08){return new _0x3867fd(_0x495a08);},_0x3867fd['encode']=function(_0x24cf43,_0x15b75f){return _0x15b75f||(_0x15b75f=_0x214d5c['create']()),null!=_0x24cf43['id']&&Object['hasOwnProperty']['call'](_0x24cf43,'id')&&_0x15b75f['uint32'](0xa)['string'](_0x24cf43['id']),null!=_0x24cf43['authorId']&&Object['hasOwnProperty']['call'](_0x24cf43,'authorId')&&_0x15b75f['uint32'](0x12)['string'](_0x24cf43['authorId']),null!=_0x24cf43['type']&&Object['hasOwnProperty']['call'](_0x24cf43,'type')&&_0x15b75f['uint32'](0x1a)['string'](_0x24cf43['type']),null!=_0x24cf43['createdAt']&&Object['hasOwnProperty']['call'](_0x24cf43,'createdAt')&&_0x15b75f['uint32'](0x22)['string'](_0x24cf43['createdAt']),null!=_0x24cf43['data']&&Object['hasOwnProperty']['call'](_0x24cf43,'data')&&_0x15b75f['uint32'](0x2a)['string'](_0x24cf43['data']),null!=_0x24cf43['hasComments']&&Object['hasOwnProperty']['call'](_0x24cf43,'hasComments')&&_0x15b75f['uint32'](0x30)['bool'](_0x24cf43['hasComments']),null!=_0x24cf43['state']&&Object['hasOwnProperty']['call'](_0x24cf43,'state')&&_0x15b75f['uint32'](0x3a)['string'](_0x24cf43['state']),null!=_0x24cf43['attributes']&&Object['hasOwnProperty']['call'](_0x24cf43,'attributes')&&_0x15b75f['uint32'](0x42)['string'](_0x24cf43['attributes']),_0x15b75f;},_0x3867fd['encodeDelimited']=function(_0x6efaa4,_0x4fc6c9){return this['encode'](_0x6efaa4,_0x4fc6c9)['ldelim']();},_0x3867fd['decode']=function(_0x2af948,_0x1cdb7f,_0x9b08ee){_0x2af948 instanceof _0x10ed9a||(_0x2af948=_0x10ed9a['create'](_0x2af948));for(var _0xc10047=void 0x0===_0x1cdb7f?_0x2af948['len']:_0x2af948['pos']+_0x1cdb7f,_0x216d2c=new _0x1d55ed['TrackChangesAddSuggestionResponse']();_0x2af948['pos']<_0xc10047;){var _0x47a66e=_0x2af948['uint32']();if(_0x47a66e===_0x9b08ee)break;switch(_0x47a66e>>>0x3){case 0x1:_0x216d2c['id']=_0x2af948['string']();break;case 0x2:_0x216d2c['authorId']=_0x2af948['string']();break;case 0x3:_0x216d2c['type']=_0x2af948['string']();break;case 0x4:_0x216d2c['createdAt']=_0x2af948['string']();break;case 0x5:_0x216d2c['data']=_0x2af948['string']();break;case 0x6:_0x216d2c['hasComments']=_0x2af948['bool']();break;case 0x7:_0x216d2c['state']=_0x2af948['string']();break;case 0x8:_0x216d2c['attributes']=_0x2af948['string']();break;default:_0x2af948['skipType'](0x7&_0x47a66e);}}return _0x216d2c;},_0x3867fd['decodeDelimited']=function(_0x3f787c){return _0x3f787c instanceof _0x10ed9a||(_0x3f787c=new _0x10ed9a(_0x3f787c)),this['decode'](_0x3f787c,_0x3f787c['uint32']());},_0x3867fd['verify']=function(_0x571714){return'object'!=typeof _0x571714||null===_0x571714?'object\x20expected':null!=_0x571714['id']&&_0x571714['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x571714['id'])?'id:\x20string\x20expected':null!=_0x571714['authorId']&&_0x571714['hasOwnProperty']('authorId')&&!_0x17c6dc['isString'](_0x571714['authorId'])?'authorId:\x20string\x20expected':null!=_0x571714['type']&&_0x571714['hasOwnProperty']('type')&&!_0x17c6dc['isString'](_0x571714['type'])?'type:\x20string\x20expected':null!=_0x571714['createdAt']&&_0x571714['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x571714['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x571714['data']&&_0x571714['hasOwnProperty']('data')&&!_0x17c6dc['isString'](_0x571714['data'])?'data:\x20string\x20expected':null!=_0x571714['hasComments']&&_0x571714['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x571714['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x571714['state']&&_0x571714['hasOwnProperty']('state')&&!_0x17c6dc['isString'](_0x571714['state'])?'state:\x20string\x20expected':null!=_0x571714['attributes']&&_0x571714['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x571714['attributes'])?'attributes:\x20string\x20expected':null;},_0x3867fd['fromObject']=function(_0x2cbb29){if(_0x2cbb29 instanceof _0x1d55ed['TrackChangesAddSuggestionResponse'])return _0x2cbb29;var _0x3f5f41=new _0x1d55ed['TrackChangesAddSuggestionResponse']();return null!=_0x2cbb29['id']&&(_0x3f5f41['id']=String(_0x2cbb29['id'])),null!=_0x2cbb29['authorId']&&(_0x3f5f41['authorId']=String(_0x2cbb29['authorId'])),null!=_0x2cbb29['type']&&(_0x3f5f41['type']=String(_0x2cbb29['type'])),null!=_0x2cbb29['createdAt']&&(_0x3f5f41['createdAt']=String(_0x2cbb29['createdAt'])),null!=_0x2cbb29['data']&&(_0x3f5f41['data']=String(_0x2cbb29['data'])),null!=_0x2cbb29['hasComments']&&(_0x3f5f41['hasComments']=Boolean(_0x2cbb29['hasComments'])),null!=_0x2cbb29['state']&&(_0x3f5f41['state']=String(_0x2cbb29['state'])),null!=_0x2cbb29['attributes']&&(_0x3f5f41['attributes']=String(_0x2cbb29['attributes'])),_0x3f5f41;},_0x3867fd['toObject']=function(_0x5527bf,_0x2b07a3){_0x2b07a3||(_0x2b07a3={});var _0x498311={};return _0x2b07a3['defaults']&&(_0x498311['id']='',_0x498311['authorId']='',_0x498311['type']='',_0x498311['createdAt']='',_0x498311['data']='',_0x498311['hasComments']=!0x1,_0x498311['state']='',_0x498311['attributes']=''),null!=_0x5527bf['id']&&_0x5527bf['hasOwnProperty']('id')&&(_0x498311['id']=_0x5527bf['id']),null!=_0x5527bf['authorId']&&_0x5527bf['hasOwnProperty']('authorId')&&(_0x498311['authorId']=_0x5527bf['authorId']),null!=_0x5527bf['type']&&_0x5527bf['hasOwnProperty']('type')&&(_0x498311['type']=_0x5527bf['type']),null!=_0x5527bf['createdAt']&&_0x5527bf['hasOwnProperty']('createdAt')&&(_0x498311['createdAt']=_0x5527bf['createdAt']),null!=_0x5527bf['data']&&_0x5527bf['hasOwnProperty']('data')&&(_0x498311['data']=_0x5527bf['data']),null!=_0x5527bf['hasComments']&&_0x5527bf['hasOwnProperty']('hasComments')&&(_0x498311['hasComments']=_0x5527bf['hasComments']),null!=_0x5527bf['state']&&_0x5527bf['hasOwnProperty']('state')&&(_0x498311['state']=_0x5527bf['state']),null!=_0x5527bf['attributes']&&_0x5527bf['hasOwnProperty']('attributes')&&(_0x498311['attributes']=_0x5527bf['attributes']),_0x498311;},_0x3867fd['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3867fd['getTypeUrl']=function(_0x542b7f){return void 0x0===_0x542b7f&&(_0x542b7f='type.googleapis.com'),_0x542b7f+'/TrackChangesAddSuggestionResponse';},_0x3867fd;}()),_0x1d55ed['TrackChangesUpdateSuggestionMessage']=(function(){function _0x34105a(_0x493bf5){if(_0x493bf5){for(var _0x374401=Object['keys'](_0x493bf5),_0x2d85ae=0x0;_0x2d85ae<_0x374401['length'];++_0x2d85ae)null!=_0x493bf5[_0x374401[_0x2d85ae]]&&(this[_0x374401[_0x2d85ae]]=_0x493bf5[_0x374401[_0x2d85ae]]);}}return _0x34105a['prototype']['id']='',_0x34105a['prototype']['documentId']='',_0x34105a['prototype']['hasComments']=!0x1,_0x34105a['prototype']['isHasCommentsModified']=!0x1,_0x34105a['prototype']['state']='',_0x34105a['prototype']['attributes']='',_0x34105a['create']=function(_0x5c0522){return new _0x34105a(_0x5c0522);},_0x34105a['encode']=function(_0x18110b,_0x427bb9){return _0x427bb9||(_0x427bb9=_0x214d5c['create']()),null!=_0x18110b['id']&&Object['hasOwnProperty']['call'](_0x18110b,'id')&&_0x427bb9['uint32'](0xa)['string'](_0x18110b['id']),null!=_0x18110b['documentId']&&Object['hasOwnProperty']['call'](_0x18110b,'documentId')&&_0x427bb9['uint32'](0x12)['string'](_0x18110b['documentId']),null!=_0x18110b['hasComments']&&Object['hasOwnProperty']['call'](_0x18110b,'hasComments')&&_0x427bb9['uint32'](0x18)['bool'](_0x18110b['hasComments']),null!=_0x18110b['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x18110b,'isHasCommentsModified')&&_0x427bb9['uint32'](0x20)['bool'](_0x18110b['isHasCommentsModified']),null!=_0x18110b['state']&&Object['hasOwnProperty']['call'](_0x18110b,'state')&&_0x427bb9['uint32'](0x2a)['string'](_0x18110b['state']),null!=_0x18110b['attributes']&&Object['hasOwnProperty']['call'](_0x18110b,'attributes')&&_0x427bb9['uint32'](0x32)['string'](_0x18110b['attributes']),_0x427bb9;},_0x34105a['encodeDelimited']=function(_0x5e9e62,_0x1d7791){return this['encode'](_0x5e9e62,_0x1d7791)['ldelim']();},_0x34105a['decode']=function(_0x5de412,_0x536998,_0x42308b){_0x5de412 instanceof _0x10ed9a||(_0x5de412=_0x10ed9a['create'](_0x5de412));for(var _0x24ff57=void 0x0===_0x536998?_0x5de412['len']:_0x5de412['pos']+_0x536998,_0x127d87=new _0x1d55ed['TrackChangesUpdateSuggestionMessage']();_0x5de412['pos']<_0x24ff57;){var _0x45cc62=_0x5de412['uint32']();if(_0x45cc62===_0x42308b)break;switch(_0x45cc62>>>0x3){case 0x1:_0x127d87['id']=_0x5de412['string']();break;case 0x2:_0x127d87['documentId']=_0x5de412['string']();break;case 0x3:_0x127d87['hasComments']=_0x5de412['bool']();break;case 0x4:_0x127d87['isHasCommentsModified']=_0x5de412['bool']();break;case 0x5:_0x127d87['state']=_0x5de412['string']();break;case 0x6:_0x127d87['attributes']=_0x5de412['string']();break;default:_0x5de412['skipType'](0x7&_0x45cc62);}}return _0x127d87;},_0x34105a['decodeDelimited']=function(_0x58ab49){return _0x58ab49 instanceof _0x10ed9a||(_0x58ab49=new _0x10ed9a(_0x58ab49)),this['decode'](_0x58ab49,_0x58ab49['uint32']());},_0x34105a['verify']=function(_0x3b4b2b){return'object'!=typeof _0x3b4b2b||null===_0x3b4b2b?'object\x20expected':null!=_0x3b4b2b['id']&&_0x3b4b2b['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x3b4b2b['id'])?'id:\x20string\x20expected':null!=_0x3b4b2b['documentId']&&_0x3b4b2b['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x3b4b2b['documentId'])?'documentId:\x20string\x20expected':null!=_0x3b4b2b['hasComments']&&_0x3b4b2b['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x3b4b2b['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x3b4b2b['isHasCommentsModified']&&_0x3b4b2b['hasOwnProperty']('isHasCommentsModified')&&'boolean'!=typeof _0x3b4b2b['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x3b4b2b['state']&&_0x3b4b2b['hasOwnProperty']('state')&&!_0x17c6dc['isString'](_0x3b4b2b['state'])?'state:\x20string\x20expected':null!=_0x3b4b2b['attributes']&&_0x3b4b2b['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x3b4b2b['attributes'])?'attributes:\x20string\x20expected':null;},_0x34105a['fromObject']=function(_0x275ccc){if(_0x275ccc instanceof _0x1d55ed['TrackChangesUpdateSuggestionMessage'])return _0x275ccc;var _0x85568e=new _0x1d55ed['TrackChangesUpdateSuggestionMessage']();return null!=_0x275ccc['id']&&(_0x85568e['id']=String(_0x275ccc['id'])),null!=_0x275ccc['documentId']&&(_0x85568e['documentId']=String(_0x275ccc['documentId'])),null!=_0x275ccc['hasComments']&&(_0x85568e['hasComments']=Boolean(_0x275ccc['hasComments'])),null!=_0x275ccc['isHasCommentsModified']&&(_0x85568e['isHasCommentsModified']=Boolean(_0x275ccc['isHasCommentsModified'])),null!=_0x275ccc['state']&&(_0x85568e['state']=String(_0x275ccc['state'])),null!=_0x275ccc['attributes']&&(_0x85568e['attributes']=String(_0x275ccc['attributes'])),_0x85568e;},_0x34105a['toObject']=function(_0x274e79,_0x3e0673){_0x3e0673||(_0x3e0673={});var _0x54fc54={};return _0x3e0673['defaults']&&(_0x54fc54['id']='',_0x54fc54['documentId']='',_0x54fc54['hasComments']=!0x1,_0x54fc54['isHasCommentsModified']=!0x1,_0x54fc54['state']='',_0x54fc54['attributes']=''),null!=_0x274e79['id']&&_0x274e79['hasOwnProperty']('id')&&(_0x54fc54['id']=_0x274e79['id']),null!=_0x274e79['documentId']&&_0x274e79['hasOwnProperty']('documentId')&&(_0x54fc54['documentId']=_0x274e79['documentId']),null!=_0x274e79['hasComments']&&_0x274e79['hasOwnProperty']('hasComments')&&(_0x54fc54['hasComments']=_0x274e79['hasComments']),null!=_0x274e79['isHasCommentsModified']&&_0x274e79['hasOwnProperty']('isHasCommentsModified')&&(_0x54fc54['isHasCommentsModified']=_0x274e79['isHasCommentsModified']),null!=_0x274e79['state']&&_0x274e79['hasOwnProperty']('state')&&(_0x54fc54['state']=_0x274e79['state']),null!=_0x274e79['attributes']&&_0x274e79['hasOwnProperty']('attributes')&&(_0x54fc54['attributes']=_0x274e79['attributes']),_0x54fc54;},_0x34105a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x34105a['getTypeUrl']=function(_0x22a395){return void 0x0===_0x22a395&&(_0x22a395='type.googleapis.com'),_0x22a395+'/TrackChangesUpdateSuggestionMessage';},_0x34105a;}()),_0x1d55ed['TrackChangesGetSuggestionMessage']=(function(){function _0x305dab(_0x27aef7){if(_0x27aef7){for(var _0x71ddb0=Object['keys'](_0x27aef7),_0x51391f=0x0;_0x51391f<_0x71ddb0['length'];++_0x51391f)null!=_0x27aef7[_0x71ddb0[_0x51391f]]&&(this[_0x71ddb0[_0x51391f]]=_0x27aef7[_0x71ddb0[_0x51391f]]);}}return _0x305dab['prototype']['id']='',_0x305dab['prototype']['documentId']='',_0x305dab['create']=function(_0x1cea04){return new _0x305dab(_0x1cea04);},_0x305dab['encode']=function(_0x452a99,_0x19b92b){return _0x19b92b||(_0x19b92b=_0x214d5c['create']()),null!=_0x452a99['id']&&Object['hasOwnProperty']['call'](_0x452a99,'id')&&_0x19b92b['uint32'](0xa)['string'](_0x452a99['id']),null!=_0x452a99['documentId']&&Object['hasOwnProperty']['call'](_0x452a99,'documentId')&&_0x19b92b['uint32'](0x12)['string'](_0x452a99['documentId']),_0x19b92b;},_0x305dab['encodeDelimited']=function(_0x3f5cc7,_0x39c75c){return this['encode'](_0x3f5cc7,_0x39c75c)['ldelim']();},_0x305dab['decode']=function(_0xfb8e4e,_0x177c63,_0x316bfd){_0xfb8e4e instanceof _0x10ed9a||(_0xfb8e4e=_0x10ed9a['create'](_0xfb8e4e));for(var _0x1e24fb=void 0x0===_0x177c63?_0xfb8e4e['len']:_0xfb8e4e['pos']+_0x177c63,_0x16ccfb=new _0x1d55ed['TrackChangesGetSuggestionMessage']();_0xfb8e4e['pos']<_0x1e24fb;){var _0x219755=_0xfb8e4e['uint32']();if(_0x219755===_0x316bfd)break;switch(_0x219755>>>0x3){case 0x1:_0x16ccfb['id']=_0xfb8e4e['string']();break;case 0x2:_0x16ccfb['documentId']=_0xfb8e4e['string']();break;default:_0xfb8e4e['skipType'](0x7&_0x219755);}}return _0x16ccfb;},_0x305dab['decodeDelimited']=function(_0x29d91b){return _0x29d91b instanceof _0x10ed9a||(_0x29d91b=new _0x10ed9a(_0x29d91b)),this['decode'](_0x29d91b,_0x29d91b['uint32']());},_0x305dab['verify']=function(_0x16e8f8){return'object'!=typeof _0x16e8f8||null===_0x16e8f8?'object\x20expected':null!=_0x16e8f8['id']&&_0x16e8f8['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x16e8f8['id'])?'id:\x20string\x20expected':null!=_0x16e8f8['documentId']&&_0x16e8f8['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x16e8f8['documentId'])?'documentId:\x20string\x20expected':null;},_0x305dab['fromObject']=function(_0x2dc5bc){if(_0x2dc5bc instanceof _0x1d55ed['TrackChangesGetSuggestionMessage'])return _0x2dc5bc;var _0x4e0a70=new _0x1d55ed['TrackChangesGetSuggestionMessage']();return null!=_0x2dc5bc['id']&&(_0x4e0a70['id']=String(_0x2dc5bc['id'])),null!=_0x2dc5bc['documentId']&&(_0x4e0a70['documentId']=String(_0x2dc5bc['documentId'])),_0x4e0a70;},_0x305dab['toObject']=function(_0x4a3420,_0x2c8002){_0x2c8002||(_0x2c8002={});var _0x317055={};return _0x2c8002['defaults']&&(_0x317055['id']='',_0x317055['documentId']=''),null!=_0x4a3420['id']&&_0x4a3420['hasOwnProperty']('id')&&(_0x317055['id']=_0x4a3420['id']),null!=_0x4a3420['documentId']&&_0x4a3420['hasOwnProperty']('documentId')&&(_0x317055['documentId']=_0x4a3420['documentId']),_0x317055;},_0x305dab['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x305dab['getTypeUrl']=function(_0x5e3735){return void 0x0===_0x5e3735&&(_0x5e3735='type.googleapis.com'),_0x5e3735+'/TrackChangesGetSuggestionMessage';},_0x305dab;}()),_0x1d55ed['TrackChangesGetAllSuggestionMessage']=(function(){function _0x304ef5(_0x3e5671){if(_0x3e5671){for(var _0x248210=Object['keys'](_0x3e5671),_0x519e86=0x0;_0x519e86<_0x248210['length'];++_0x519e86)null!=_0x3e5671[_0x248210[_0x519e86]]&&(this[_0x248210[_0x519e86]]=_0x3e5671[_0x248210[_0x519e86]]);}}return _0x304ef5['prototype']['documentId']='',_0x304ef5['create']=function(_0x54a9f8){return new _0x304ef5(_0x54a9f8);},_0x304ef5['encode']=function(_0x52d48d,_0x2c5fee){return _0x2c5fee||(_0x2c5fee=_0x214d5c['create']()),null!=_0x52d48d['documentId']&&Object['hasOwnProperty']['call'](_0x52d48d,'documentId')&&_0x2c5fee['uint32'](0xa)['string'](_0x52d48d['documentId']),_0x2c5fee;},_0x304ef5['encodeDelimited']=function(_0x34aafd,_0xaf2388){return this['encode'](_0x34aafd,_0xaf2388)['ldelim']();},_0x304ef5['decode']=function(_0x32fbd8,_0x407cd0,_0x1e9fb5){_0x32fbd8 instanceof _0x10ed9a||(_0x32fbd8=_0x10ed9a['create'](_0x32fbd8));for(var _0x451980=void 0x0===_0x407cd0?_0x32fbd8['len']:_0x32fbd8['pos']+_0x407cd0,_0x582646=new _0x1d55ed['TrackChangesGetAllSuggestionMessage']();_0x32fbd8['pos']<_0x451980;){var _0x2a197f=_0x32fbd8['uint32']();if(_0x2a197f===_0x1e9fb5)break;_0x2a197f>>>0x3==0x1?_0x582646['documentId']=_0x32fbd8['string']():_0x32fbd8['skipType'](0x7&_0x2a197f);}return _0x582646;},_0x304ef5['decodeDelimited']=function(_0xf05cd5){return _0xf05cd5 instanceof _0x10ed9a||(_0xf05cd5=new _0x10ed9a(_0xf05cd5)),this['decode'](_0xf05cd5,_0xf05cd5['uint32']());},_0x304ef5['verify']=function(_0x3a4e83){return'object'!=typeof _0x3a4e83||null===_0x3a4e83?'object\x20expected':null!=_0x3a4e83['documentId']&&_0x3a4e83['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x3a4e83['documentId'])?'documentId:\x20string\x20expected':null;},_0x304ef5['fromObject']=function(_0x42933a){if(_0x42933a instanceof _0x1d55ed['TrackChangesGetAllSuggestionMessage'])return _0x42933a;var _0x432b5e=new _0x1d55ed['TrackChangesGetAllSuggestionMessage']();return null!=_0x42933a['documentId']&&(_0x432b5e['documentId']=String(_0x42933a['documentId'])),_0x432b5e;},_0x304ef5['toObject']=function(_0x519d14,_0x1f6885){_0x1f6885||(_0x1f6885={});var _0x281661={};return _0x1f6885['defaults']&&(_0x281661['documentId']=''),null!=_0x519d14['documentId']&&_0x519d14['hasOwnProperty']('documentId')&&(_0x281661['documentId']=_0x519d14['documentId']),_0x281661;},_0x304ef5['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x304ef5['getTypeUrl']=function(_0xfbb8ae){return void 0x0===_0xfbb8ae&&(_0xfbb8ae='type.googleapis.com'),_0xfbb8ae+'/TrackChangesGetAllSuggestionMessage';},_0x304ef5;}()),_0x1d55ed['TrackChangesConnectMessage']=(function(){function _0x2d801f(_0x524484){if(_0x524484){for(var _0x456978=Object['keys'](_0x524484),_0x26d6ee=0x0;_0x26d6ee<_0x456978['length'];++_0x26d6ee)null!=_0x524484[_0x456978[_0x26d6ee]]&&(this[_0x456978[_0x26d6ee]]=_0x524484[_0x456978[_0x26d6ee]]);}}return _0x2d801f['prototype']['documentId']='',_0x2d801f['create']=function(_0x2ffe78){return new _0x2d801f(_0x2ffe78);},_0x2d801f['encode']=function(_0x1ec3b5,_0x2ae8bb){return _0x2ae8bb||(_0x2ae8bb=_0x214d5c['create']()),null!=_0x1ec3b5['documentId']&&Object['hasOwnProperty']['call'](_0x1ec3b5,'documentId')&&_0x2ae8bb['uint32'](0xa)['string'](_0x1ec3b5['documentId']),_0x2ae8bb;},_0x2d801f['encodeDelimited']=function(_0x43e169,_0x494d30){return this['encode'](_0x43e169,_0x494d30)['ldelim']();},_0x2d801f['decode']=function(_0x5b3b05,_0xd6ef37,_0x519f4a){_0x5b3b05 instanceof _0x10ed9a||(_0x5b3b05=_0x10ed9a['create'](_0x5b3b05));for(var _0x2e7f85=void 0x0===_0xd6ef37?_0x5b3b05['len']:_0x5b3b05['pos']+_0xd6ef37,_0x42098d=new _0x1d55ed['TrackChangesConnectMessage']();_0x5b3b05['pos']<_0x2e7f85;){var _0x15a35a=_0x5b3b05['uint32']();if(_0x15a35a===_0x519f4a)break;_0x15a35a>>>0x3==0x1?_0x42098d['documentId']=_0x5b3b05['string']():_0x5b3b05['skipType'](0x7&_0x15a35a);}return _0x42098d;},_0x2d801f['decodeDelimited']=function(_0x3bcadc){return _0x3bcadc instanceof _0x10ed9a||(_0x3bcadc=new _0x10ed9a(_0x3bcadc)),this['decode'](_0x3bcadc,_0x3bcadc['uint32']());},_0x2d801f['verify']=function(_0x2af812){return'object'!=typeof _0x2af812||null===_0x2af812?'object\x20expected':null!=_0x2af812['documentId']&&_0x2af812['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x2af812['documentId'])?'documentId:\x20string\x20expected':null;},_0x2d801f['fromObject']=function(_0x37bfe0){if(_0x37bfe0 instanceof _0x1d55ed['TrackChangesConnectMessage'])return _0x37bfe0;var _0x4b7284=new _0x1d55ed['TrackChangesConnectMessage']();return null!=_0x37bfe0['documentId']&&(_0x4b7284['documentId']=String(_0x37bfe0['documentId'])),_0x4b7284;},_0x2d801f['toObject']=function(_0x418eeb,_0x2d8e0e){_0x2d8e0e||(_0x2d8e0e={});var _0x156db7={};return _0x2d8e0e['defaults']&&(_0x156db7['documentId']=''),null!=_0x418eeb['documentId']&&_0x418eeb['hasOwnProperty']('documentId')&&(_0x156db7['documentId']=_0x418eeb['documentId']),_0x156db7;},_0x2d801f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2d801f['getTypeUrl']=function(_0x3f72f9){return void 0x0===_0x3f72f9&&(_0x3f72f9='type.googleapis.com'),_0x3f72f9+'/TrackChangesConnectMessage';},_0x2d801f;}()),_0x1d55ed['TrackChangesBatchUpdateSuggestionsStateMessage']=(function(){function _0x1797f9(_0x2cf80b){if(this['ids']=[],_0x2cf80b){for(var _0x416998=Object['keys'](_0x2cf80b),_0x30e68f=0x0;_0x30e68f<_0x416998['length'];++_0x30e68f)null!=_0x2cf80b[_0x416998[_0x30e68f]]&&(this[_0x416998[_0x30e68f]]=_0x2cf80b[_0x416998[_0x30e68f]]);}}return _0x1797f9['prototype']['ids']=_0x17c6dc['emptyArray'],_0x1797f9['prototype']['documentId']='',_0x1797f9['prototype']['state']='',_0x1797f9['create']=function(_0x107eb2){return new _0x1797f9(_0x107eb2);},_0x1797f9['encode']=function(_0x329726,_0x208256){if(_0x208256||(_0x208256=_0x214d5c['create']()),null!=_0x329726['ids']&&_0x329726['ids']['length']){for(var _0x3212f0=0x0;_0x3212f0<_0x329726['ids']['length'];++_0x3212f0)_0x208256['uint32'](0xa)['string'](_0x329726['ids'][_0x3212f0]);}return null!=_0x329726['documentId']&&Object['hasOwnProperty']['call'](_0x329726,'documentId')&&_0x208256['uint32'](0x12)['string'](_0x329726['documentId']),null!=_0x329726['state']&&Object['hasOwnProperty']['call'](_0x329726,'state')&&_0x208256['uint32'](0x1a)['string'](_0x329726['state']),_0x208256;},_0x1797f9['encodeDelimited']=function(_0x1f6bee,_0x3a6810){return this['encode'](_0x1f6bee,_0x3a6810)['ldelim']();},_0x1797f9['decode']=function(_0x5d7106,_0x502520,_0x17ceee){_0x5d7106 instanceof _0x10ed9a||(_0x5d7106=_0x10ed9a['create'](_0x5d7106));for(var _0x107830=void 0x0===_0x502520?_0x5d7106['len']:_0x5d7106['pos']+_0x502520,_0x114cd1=new _0x1d55ed['TrackChangesBatchUpdateSuggestionsStateMessage']();_0x5d7106['pos']<_0x107830;){var _0x247478=_0x5d7106['uint32']();if(_0x247478===_0x17ceee)break;switch(_0x247478>>>0x3){case 0x1:_0x114cd1['ids']&&_0x114cd1['ids']['length']||(_0x114cd1['ids']=[]),_0x114cd1['ids']['push'](_0x5d7106['string']());break;case 0x2:_0x114cd1['documentId']=_0x5d7106['string']();break;case 0x3:_0x114cd1['state']=_0x5d7106['string']();break;default:_0x5d7106['skipType'](0x7&_0x247478);}}return _0x114cd1;},_0x1797f9['decodeDelimited']=function(_0x5a8119){return _0x5a8119 instanceof _0x10ed9a||(_0x5a8119=new _0x10ed9a(_0x5a8119)),this['decode'](_0x5a8119,_0x5a8119['uint32']());},_0x1797f9['verify']=function(_0x4225f7){if('object'!=typeof _0x4225f7||null===_0x4225f7)return'object\x20expected';if(null!=_0x4225f7['ids']&&_0x4225f7['hasOwnProperty']('ids')){if(!Array['isArray'](_0x4225f7['ids']))return'ids:\x20array\x20expected';for(var _0x332357=0x0;_0x332357<_0x4225f7['ids']['length'];++_0x332357)if(!_0x17c6dc['isString'](_0x4225f7['ids'][_0x332357]))return'ids:\x20string[]\x20expected';}return null!=_0x4225f7['documentId']&&_0x4225f7['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x4225f7['documentId'])?'documentId:\x20string\x20expected':null!=_0x4225f7['state']&&_0x4225f7['hasOwnProperty']('state')&&!_0x17c6dc['isString'](_0x4225f7['state'])?'state:\x20string\x20expected':null;},_0x1797f9['fromObject']=function(_0x45dea5){if(_0x45dea5 instanceof _0x1d55ed['TrackChangesBatchUpdateSuggestionsStateMessage'])return _0x45dea5;var _0x38b161=new _0x1d55ed['TrackChangesBatchUpdateSuggestionsStateMessage']();if(_0x45dea5['ids']){if(!Array['isArray'](_0x45dea5['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x38b161['ids']=[];for(var _0x528418=0x0;_0x528418<_0x45dea5['ids']['length'];++_0x528418)_0x38b161['ids'][_0x528418]=String(_0x45dea5['ids'][_0x528418]);}return null!=_0x45dea5['documentId']&&(_0x38b161['documentId']=String(_0x45dea5['documentId'])),null!=_0x45dea5['state']&&(_0x38b161['state']=String(_0x45dea5['state'])),_0x38b161;},_0x1797f9['toObject']=function(_0x66e025,_0x558e77){_0x558e77||(_0x558e77={});var _0x3ee062={};if((_0x558e77['arrays']||_0x558e77['defaults'])&&(_0x3ee062['ids']=[]),_0x558e77['defaults']&&(_0x3ee062['documentId']='',_0x3ee062['state']=''),_0x66e025['ids']&&_0x66e025['ids']['length']){_0x3ee062['ids']=[];for(var _0xb2f89e=0x0;_0xb2f89e<_0x66e025['ids']['length'];++_0xb2f89e)_0x3ee062['ids'][_0xb2f89e]=_0x66e025['ids'][_0xb2f89e];}return null!=_0x66e025['documentId']&&_0x66e025['hasOwnProperty']('documentId')&&(_0x3ee062['documentId']=_0x66e025['documentId']),null!=_0x66e025['state']&&_0x66e025['hasOwnProperty']('state')&&(_0x3ee062['state']=_0x66e025['state']),_0x3ee062;},_0x1797f9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1797f9['getTypeUrl']=function(_0x54d181){return void 0x0===_0x54d181&&(_0x54d181='type.googleapis.com'),_0x54d181+'/TrackChangesBatchUpdateSuggestionsStateMessage';},_0x1797f9;}()),_0x1d55ed['TrackChangesAddSuggestionMessage']=(function(){function _0x17db54(_0x2cf547){if(_0x2cf547){for(var _0x452d24=Object['keys'](_0x2cf547),_0x387828=0x0;_0x387828<_0x452d24['length'];++_0x387828)null!=_0x2cf547[_0x452d24[_0x387828]]&&(this[_0x452d24[_0x387828]]=_0x2cf547[_0x452d24[_0x387828]]);}}return _0x17db54['prototype']['id']='',_0x17db54['prototype']['documentId']='',_0x17db54['prototype']['type']='',_0x17db54['prototype']['data']='',_0x17db54['prototype']['originalSuggestionId']='',_0x17db54['prototype']['attributes']='',_0x17db54['create']=function(_0x502d56){return new _0x17db54(_0x502d56);},_0x17db54['encode']=function(_0x549ebe,_0x51ead5){return _0x51ead5||(_0x51ead5=_0x214d5c['create']()),null!=_0x549ebe['id']&&Object['hasOwnProperty']['call'](_0x549ebe,'id')&&_0x51ead5['uint32'](0xa)['string'](_0x549ebe['id']),null!=_0x549ebe['documentId']&&Object['hasOwnProperty']['call'](_0x549ebe,'documentId')&&_0x51ead5['uint32'](0x12)['string'](_0x549ebe['documentId']),null!=_0x549ebe['type']&&Object['hasOwnProperty']['call'](_0x549ebe,'type')&&_0x51ead5['uint32'](0x1a)['string'](_0x549ebe['type']),null!=_0x549ebe['data']&&Object['hasOwnProperty']['call'](_0x549ebe,'data')&&_0x51ead5['uint32'](0x22)['string'](_0x549ebe['data']),null!=_0x549ebe['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x549ebe,'originalSuggestionId')&&_0x51ead5['uint32'](0x2a)['string'](_0x549ebe['originalSuggestionId']),null!=_0x549ebe['attributes']&&Object['hasOwnProperty']['call'](_0x549ebe,'attributes')&&_0x51ead5['uint32'](0x32)['string'](_0x549ebe['attributes']),_0x51ead5;},_0x17db54['encodeDelimited']=function(_0x514298,_0x400054){return this['encode'](_0x514298,_0x400054)['ldelim']();},_0x17db54['decode']=function(_0x412c61,_0x49b06d,_0x2c8826){_0x412c61 instanceof _0x10ed9a||(_0x412c61=_0x10ed9a['create'](_0x412c61));for(var _0x40a669=void 0x0===_0x49b06d?_0x412c61['len']:_0x412c61['pos']+_0x49b06d,_0x211bc9=new _0x1d55ed['TrackChangesAddSuggestionMessage']();_0x412c61['pos']<_0x40a669;){var _0x248e7f=_0x412c61['uint32']();if(_0x248e7f===_0x2c8826)break;switch(_0x248e7f>>>0x3){case 0x1:_0x211bc9['id']=_0x412c61['string']();break;case 0x2:_0x211bc9['documentId']=_0x412c61['string']();break;case 0x3:_0x211bc9['type']=_0x412c61['string']();break;case 0x4:_0x211bc9['data']=_0x412c61['string']();break;case 0x5:_0x211bc9['originalSuggestionId']=_0x412c61['string']();break;case 0x6:_0x211bc9['attributes']=_0x412c61['string']();break;default:_0x412c61['skipType'](0x7&_0x248e7f);}}return _0x211bc9;},_0x17db54['decodeDelimited']=function(_0x49ed5b){return _0x49ed5b instanceof _0x10ed9a||(_0x49ed5b=new _0x10ed9a(_0x49ed5b)),this['decode'](_0x49ed5b,_0x49ed5b['uint32']());},_0x17db54['verify']=function(_0x181428){return'object'!=typeof _0x181428||null===_0x181428?'object\x20expected':null!=_0x181428['id']&&_0x181428['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x181428['id'])?'id:\x20string\x20expected':null!=_0x181428['documentId']&&_0x181428['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x181428['documentId'])?'documentId:\x20string\x20expected':null!=_0x181428['type']&&_0x181428['hasOwnProperty']('type')&&!_0x17c6dc['isString'](_0x181428['type'])?'type:\x20string\x20expected':null!=_0x181428['data']&&_0x181428['hasOwnProperty']('data')&&!_0x17c6dc['isString'](_0x181428['data'])?'data:\x20string\x20expected':null!=_0x181428['originalSuggestionId']&&_0x181428['hasOwnProperty']('originalSuggestionId')&&!_0x17c6dc['isString'](_0x181428['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0x181428['attributes']&&_0x181428['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x181428['attributes'])?'attributes:\x20string\x20expected':null;},_0x17db54['fromObject']=function(_0x35f26a){if(_0x35f26a instanceof _0x1d55ed['TrackChangesAddSuggestionMessage'])return _0x35f26a;var _0x50a666=new _0x1d55ed['TrackChangesAddSuggestionMessage']();return null!=_0x35f26a['id']&&(_0x50a666['id']=String(_0x35f26a['id'])),null!=_0x35f26a['documentId']&&(_0x50a666['documentId']=String(_0x35f26a['documentId'])),null!=_0x35f26a['type']&&(_0x50a666['type']=String(_0x35f26a['type'])),null!=_0x35f26a['data']&&(_0x50a666['data']=String(_0x35f26a['data'])),null!=_0x35f26a['originalSuggestionId']&&(_0x50a666['originalSuggestionId']=String(_0x35f26a['originalSuggestionId'])),null!=_0x35f26a['attributes']&&(_0x50a666['attributes']=String(_0x35f26a['attributes'])),_0x50a666;},_0x17db54['toObject']=function(_0x1aa0e1,_0x5ef540){_0x5ef540||(_0x5ef540={});var _0x42e066={};return _0x5ef540['defaults']&&(_0x42e066['id']='',_0x42e066['documentId']='',_0x42e066['type']='',_0x42e066['data']='',_0x42e066['originalSuggestionId']='',_0x42e066['attributes']=''),null!=_0x1aa0e1['id']&&_0x1aa0e1['hasOwnProperty']('id')&&(_0x42e066['id']=_0x1aa0e1['id']),null!=_0x1aa0e1['documentId']&&_0x1aa0e1['hasOwnProperty']('documentId')&&(_0x42e066['documentId']=_0x1aa0e1['documentId']),null!=_0x1aa0e1['type']&&_0x1aa0e1['hasOwnProperty']('type')&&(_0x42e066['type']=_0x1aa0e1['type']),null!=_0x1aa0e1['data']&&_0x1aa0e1['hasOwnProperty']('data')&&(_0x42e066['data']=_0x1aa0e1['data']),null!=_0x1aa0e1['originalSuggestionId']&&_0x1aa0e1['hasOwnProperty']('originalSuggestionId')&&(_0x42e066['originalSuggestionId']=_0x1aa0e1['originalSuggestionId']),null!=_0x1aa0e1['attributes']&&_0x1aa0e1['hasOwnProperty']('attributes')&&(_0x42e066['attributes']=_0x1aa0e1['attributes']),_0x42e066;},_0x17db54['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x17db54['getTypeUrl']=function(_0x4ba992){return void 0x0===_0x4ba992&&(_0x4ba992='type.googleapis.com'),_0x4ba992+'/TrackChangesAddSuggestionMessage';},_0x17db54;}()),_0x1d55ed['SuggestionDescriptor']=(function(){function _0x97c4b4(_0x189337){if(_0x189337){for(var _0x502f90=Object['keys'](_0x189337),_0x17fdf9=0x0;_0x17fdf9<_0x502f90['length'];++_0x17fdf9)null!=_0x189337[_0x502f90[_0x17fdf9]]&&(this[_0x502f90[_0x17fdf9]]=_0x189337[_0x502f90[_0x17fdf9]]);}}return _0x97c4b4['prototype']['id']='',_0x97c4b4['prototype']['authorId']='',_0x97c4b4['prototype']['type']='',_0x97c4b4['prototype']['createdAt']='',_0x97c4b4['prototype']['data']='',_0x97c4b4['prototype']['hasComments']=!0x1,_0x97c4b4['prototype']['state']='',_0x97c4b4['prototype']['attributes']='',_0x97c4b4['create']=function(_0x3cdcef){return new _0x97c4b4(_0x3cdcef);},_0x97c4b4['encode']=function(_0x34568d,_0x34a994){return _0x34a994||(_0x34a994=_0x214d5c['create']()),null!=_0x34568d['id']&&Object['hasOwnProperty']['call'](_0x34568d,'id')&&_0x34a994['uint32'](0xa)['string'](_0x34568d['id']),null!=_0x34568d['authorId']&&Object['hasOwnProperty']['call'](_0x34568d,'authorId')&&_0x34a994['uint32'](0x12)['string'](_0x34568d['authorId']),null!=_0x34568d['type']&&Object['hasOwnProperty']['call'](_0x34568d,'type')&&_0x34a994['uint32'](0x1a)['string'](_0x34568d['type']),null!=_0x34568d['createdAt']&&Object['hasOwnProperty']['call'](_0x34568d,'createdAt')&&_0x34a994['uint32'](0x22)['string'](_0x34568d['createdAt']),null!=_0x34568d['data']&&Object['hasOwnProperty']['call'](_0x34568d,'data')&&_0x34a994['uint32'](0x2a)['string'](_0x34568d['data']),null!=_0x34568d['hasComments']&&Object['hasOwnProperty']['call'](_0x34568d,'hasComments')&&_0x34a994['uint32'](0x30)['bool'](_0x34568d['hasComments']),null!=_0x34568d['state']&&Object['hasOwnProperty']['call'](_0x34568d,'state')&&_0x34a994['uint32'](0x3a)['string'](_0x34568d['state']),null!=_0x34568d['attributes']&&Object['hasOwnProperty']['call'](_0x34568d,'attributes')&&_0x34a994['uint32'](0x42)['string'](_0x34568d['attributes']),_0x34a994;},_0x97c4b4['encodeDelimited']=function(_0xef6f18,_0x50bea0){return this['encode'](_0xef6f18,_0x50bea0)['ldelim']();},_0x97c4b4['decode']=function(_0x55191,_0x59a42d,_0x507d17){_0x55191 instanceof _0x10ed9a||(_0x55191=_0x10ed9a['create'](_0x55191));for(var _0x3f7334=void 0x0===_0x59a42d?_0x55191['len']:_0x55191['pos']+_0x59a42d,_0x11a88d=new _0x1d55ed['SuggestionDescriptor']();_0x55191['pos']<_0x3f7334;){var _0x5f0541=_0x55191['uint32']();if(_0x5f0541===_0x507d17)break;switch(_0x5f0541>>>0x3){case 0x1:_0x11a88d['id']=_0x55191['string']();break;case 0x2:_0x11a88d['authorId']=_0x55191['string']();break;case 0x3:_0x11a88d['type']=_0x55191['string']();break;case 0x4:_0x11a88d['createdAt']=_0x55191['string']();break;case 0x5:_0x11a88d['data']=_0x55191['string']();break;case 0x6:_0x11a88d['hasComments']=_0x55191['bool']();break;case 0x7:_0x11a88d['state']=_0x55191['string']();break;case 0x8:_0x11a88d['attributes']=_0x55191['string']();break;default:_0x55191['skipType'](0x7&_0x5f0541);}}return _0x11a88d;},_0x97c4b4['decodeDelimited']=function(_0x358583){return _0x358583 instanceof _0x10ed9a||(_0x358583=new _0x10ed9a(_0x358583)),this['decode'](_0x358583,_0x358583['uint32']());},_0x97c4b4['verify']=function(_0x5e597b){return'object'!=typeof _0x5e597b||null===_0x5e597b?'object\x20expected':null!=_0x5e597b['id']&&_0x5e597b['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x5e597b['id'])?'id:\x20string\x20expected':null!=_0x5e597b['authorId']&&_0x5e597b['hasOwnProperty']('authorId')&&!_0x17c6dc['isString'](_0x5e597b['authorId'])?'authorId:\x20string\x20expected':null!=_0x5e597b['type']&&_0x5e597b['hasOwnProperty']('type')&&!_0x17c6dc['isString'](_0x5e597b['type'])?'type:\x20string\x20expected':null!=_0x5e597b['createdAt']&&_0x5e597b['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x5e597b['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x5e597b['data']&&_0x5e597b['hasOwnProperty']('data')&&!_0x17c6dc['isString'](_0x5e597b['data'])?'data:\x20string\x20expected':null!=_0x5e597b['hasComments']&&_0x5e597b['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x5e597b['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x5e597b['state']&&_0x5e597b['hasOwnProperty']('state')&&!_0x17c6dc['isString'](_0x5e597b['state'])?'state:\x20string\x20expected':null!=_0x5e597b['attributes']&&_0x5e597b['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x5e597b['attributes'])?'attributes:\x20string\x20expected':null;},_0x97c4b4['fromObject']=function(_0x5723b7){if(_0x5723b7 instanceof _0x1d55ed['SuggestionDescriptor'])return _0x5723b7;var _0x23544d=new _0x1d55ed['SuggestionDescriptor']();return null!=_0x5723b7['id']&&(_0x23544d['id']=String(_0x5723b7['id'])),null!=_0x5723b7['authorId']&&(_0x23544d['authorId']=String(_0x5723b7['authorId'])),null!=_0x5723b7['type']&&(_0x23544d['type']=String(_0x5723b7['type'])),null!=_0x5723b7['createdAt']&&(_0x23544d['createdAt']=String(_0x5723b7['createdAt'])),null!=_0x5723b7['data']&&(_0x23544d['data']=String(_0x5723b7['data'])),null!=_0x5723b7['hasComments']&&(_0x23544d['hasComments']=Boolean(_0x5723b7['hasComments'])),null!=_0x5723b7['state']&&(_0x23544d['state']=String(_0x5723b7['state'])),null!=_0x5723b7['attributes']&&(_0x23544d['attributes']=String(_0x5723b7['attributes'])),_0x23544d;},_0x97c4b4['toObject']=function(_0x5b3d36,_0xb602e4){_0xb602e4||(_0xb602e4={});var _0x258bc8={};return _0xb602e4['defaults']&&(_0x258bc8['id']='',_0x258bc8['authorId']='',_0x258bc8['type']='',_0x258bc8['createdAt']='',_0x258bc8['data']='',_0x258bc8['hasComments']=!0x1,_0x258bc8['state']='',_0x258bc8['attributes']=''),null!=_0x5b3d36['id']&&_0x5b3d36['hasOwnProperty']('id')&&(_0x258bc8['id']=_0x5b3d36['id']),null!=_0x5b3d36['authorId']&&_0x5b3d36['hasOwnProperty']('authorId')&&(_0x258bc8['authorId']=_0x5b3d36['authorId']),null!=_0x5b3d36['type']&&_0x5b3d36['hasOwnProperty']('type')&&(_0x258bc8['type']=_0x5b3d36['type']),null!=_0x5b3d36['createdAt']&&_0x5b3d36['hasOwnProperty']('createdAt')&&(_0x258bc8['createdAt']=_0x5b3d36['createdAt']),null!=_0x5b3d36['data']&&_0x5b3d36['hasOwnProperty']('data')&&(_0x258bc8['data']=_0x5b3d36['data']),null!=_0x5b3d36['hasComments']&&_0x5b3d36['hasOwnProperty']('hasComments')&&(_0x258bc8['hasComments']=_0x5b3d36['hasComments']),null!=_0x5b3d36['state']&&_0x5b3d36['hasOwnProperty']('state')&&(_0x258bc8['state']=_0x5b3d36['state']),null!=_0x5b3d36['attributes']&&_0x5b3d36['hasOwnProperty']('attributes')&&(_0x258bc8['attributes']=_0x5b3d36['attributes']),_0x258bc8;},_0x97c4b4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x97c4b4['getTypeUrl']=function(_0x1acb6a){return void 0x0===_0x1acb6a&&(_0x1acb6a='type.googleapis.com'),_0x1acb6a+'/SuggestionDescriptor';},_0x97c4b4;}()),_0x1d55ed['SessionsConnectResponse']=(function(){function _0x1a633c(_0x418b95){if(this['sockets']=[],_0x418b95){for(var _0x17f2df=Object['keys'](_0x418b95),_0xc71bb7=0x0;_0xc71bb7<_0x17f2df['length'];++_0xc71bb7)null!=_0x418b95[_0x17f2df[_0xc71bb7]]&&(this[_0x17f2df[_0xc71bb7]]=_0x418b95[_0x17f2df[_0xc71bb7]]);}}return _0x1a633c['prototype']['channel']='',_0x1a633c['prototype']['sockets']=_0x17c6dc['emptyArray'],_0x1a633c['create']=function(_0x28a49c){return new _0x1a633c(_0x28a49c);},_0x1a633c['encode']=function(_0x239a3b,_0xb84197){if(_0xb84197||(_0xb84197=_0x214d5c['create']()),null!=_0x239a3b['channel']&&Object['hasOwnProperty']['call'](_0x239a3b,'channel')&&_0xb84197['uint32'](0xa)['string'](_0x239a3b['channel']),null!=_0x239a3b['sockets']&&_0x239a3b['sockets']['length']){for(var _0x13e1ec=0x0;_0x13e1ec<_0x239a3b['sockets']['length'];++_0x13e1ec)_0x1d55ed['SessionsSocketDescriptor']['encode'](_0x239a3b['sockets'][_0x13e1ec],_0xb84197['uint32'](0x12)['fork']())['ldelim']();}return _0xb84197;},_0x1a633c['encodeDelimited']=function(_0x5e41a4,_0x39d3af){return this['encode'](_0x5e41a4,_0x39d3af)['ldelim']();},_0x1a633c['decode']=function(_0x5628b8,_0x3f0f67,_0x27678c){_0x5628b8 instanceof _0x10ed9a||(_0x5628b8=_0x10ed9a['create'](_0x5628b8));for(var _0x2da937=void 0x0===_0x3f0f67?_0x5628b8['len']:_0x5628b8['pos']+_0x3f0f67,_0x23c716=new _0x1d55ed['SessionsConnectResponse']();_0x5628b8['pos']<_0x2da937;){var _0x1e4af3=_0x5628b8['uint32']();if(_0x1e4af3===_0x27678c)break;switch(_0x1e4af3>>>0x3){case 0x1:_0x23c716['channel']=_0x5628b8['string']();break;case 0x2:_0x23c716['sockets']&&_0x23c716['sockets']['length']||(_0x23c716['sockets']=[]),_0x23c716['sockets']['push'](_0x1d55ed['SessionsSocketDescriptor']['decode'](_0x5628b8,_0x5628b8['uint32']()));break;default:_0x5628b8['skipType'](0x7&_0x1e4af3);}}return _0x23c716;},_0x1a633c['decodeDelimited']=function(_0x4b90ea){return _0x4b90ea instanceof _0x10ed9a||(_0x4b90ea=new _0x10ed9a(_0x4b90ea)),this['decode'](_0x4b90ea,_0x4b90ea['uint32']());},_0x1a633c['verify']=function(_0x3b685b){if('object'!=typeof _0x3b685b||null===_0x3b685b)return'object\x20expected';if(null!=_0x3b685b['channel']&&_0x3b685b['hasOwnProperty']('channel')&&!_0x17c6dc['isString'](_0x3b685b['channel']))return'channel:\x20string\x20expected';if(null!=_0x3b685b['sockets']&&_0x3b685b['hasOwnProperty']('sockets')){if(!Array['isArray'](_0x3b685b['sockets']))return'sockets:\x20array\x20expected';for(var _0x19ae51=0x0;_0x19ae51<_0x3b685b['sockets']['length'];++_0x19ae51){var _0x3bdbdd=_0x1d55ed['SessionsSocketDescriptor']['verify'](_0x3b685b['sockets'][_0x19ae51]);if(_0x3bdbdd)return'sockets.'+_0x3bdbdd;}}return null;},_0x1a633c['fromObject']=function(_0x5a6090){if(_0x5a6090 instanceof _0x1d55ed['SessionsConnectResponse'])return _0x5a6090;var _0x47d109=new _0x1d55ed['SessionsConnectResponse']();if(null!=_0x5a6090['channel']&&(_0x47d109['channel']=String(_0x5a6090['channel'])),_0x5a6090['sockets']){if(!Array['isArray'](_0x5a6090['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x47d109['sockets']=[];for(var _0x6c7f08=0x0;_0x6c7f08<_0x5a6090['sockets']['length'];++_0x6c7f08){if('object'!=typeof _0x5a6090['sockets'][_0x6c7f08])throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x47d109['sockets'][_0x6c7f08]=_0x1d55ed['SessionsSocketDescriptor']['fromObject'](_0x5a6090['sockets'][_0x6c7f08]);}}return _0x47d109;},_0x1a633c['toObject']=function(_0x2dcaf1,_0x435ba7){_0x435ba7||(_0x435ba7={});var _0x3b020f={};if((_0x435ba7['arrays']||_0x435ba7['defaults'])&&(_0x3b020f['sockets']=[]),_0x435ba7['defaults']&&(_0x3b020f['channel']=''),null!=_0x2dcaf1['channel']&&_0x2dcaf1['hasOwnProperty']('channel')&&(_0x3b020f['channel']=_0x2dcaf1['channel']),_0x2dcaf1['sockets']&&_0x2dcaf1['sockets']['length']){_0x3b020f['sockets']=[];for(var _0x44076c=0x0;_0x44076c<_0x2dcaf1['sockets']['length'];++_0x44076c)_0x3b020f['sockets'][_0x44076c]=_0x1d55ed['SessionsSocketDescriptor']['toObject'](_0x2dcaf1['sockets'][_0x44076c],_0x435ba7);}return _0x3b020f;},_0x1a633c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1a633c['getTypeUrl']=function(_0x2e4f6f){return void 0x0===_0x2e4f6f&&(_0x2e4f6f='type.googleapis.com'),_0x2e4f6f+'/SessionsConnectResponse';},_0x1a633c;}()),_0x1d55ed['SocketDisconnectMessage']=(function(){function _0x23b449(_0x538fc4){if(_0x538fc4){for(var _0x208e76=Object['keys'](_0x538fc4),_0x38172a=0x0;_0x38172a<_0x208e76['length'];++_0x38172a)null!=_0x538fc4[_0x208e76[_0x38172a]]&&(this[_0x208e76[_0x38172a]]=_0x538fc4[_0x208e76[_0x38172a]]);}}return _0x23b449['prototype']['id']='',_0x23b449['create']=function(_0x448b20){return new _0x23b449(_0x448b20);},_0x23b449['encode']=function(_0x5d7725,_0x271f3f){return _0x271f3f||(_0x271f3f=_0x214d5c['create']()),null!=_0x5d7725['id']&&Object['hasOwnProperty']['call'](_0x5d7725,'id')&&_0x271f3f['uint32'](0xa)['string'](_0x5d7725['id']),_0x271f3f;},_0x23b449['encodeDelimited']=function(_0xa50f80,_0x139e40){return this['encode'](_0xa50f80,_0x139e40)['ldelim']();},_0x23b449['decode']=function(_0x385d60,_0x3ce9ed,_0x12b0d5){_0x385d60 instanceof _0x10ed9a||(_0x385d60=_0x10ed9a['create'](_0x385d60));for(var _0x12c5ab=void 0x0===_0x3ce9ed?_0x385d60['len']:_0x385d60['pos']+_0x3ce9ed,_0x2434b0=new _0x1d55ed['SocketDisconnectMessage']();_0x385d60['pos']<_0x12c5ab;){var _0x162b00=_0x385d60['uint32']();if(_0x162b00===_0x12b0d5)break;_0x162b00>>>0x3==0x1?_0x2434b0['id']=_0x385d60['string']():_0x385d60['skipType'](0x7&_0x162b00);}return _0x2434b0;},_0x23b449['decodeDelimited']=function(_0x352b16){return _0x352b16 instanceof _0x10ed9a||(_0x352b16=new _0x10ed9a(_0x352b16)),this['decode'](_0x352b16,_0x352b16['uint32']());},_0x23b449['verify']=function(_0x1f8482){return'object'!=typeof _0x1f8482||null===_0x1f8482?'object\x20expected':null!=_0x1f8482['id']&&_0x1f8482['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x1f8482['id'])?'id:\x20string\x20expected':null;},_0x23b449['fromObject']=function(_0x1f2cc9){if(_0x1f2cc9 instanceof _0x1d55ed['SocketDisconnectMessage'])return _0x1f2cc9;var _0x13fe9f=new _0x1d55ed['SocketDisconnectMessage']();return null!=_0x1f2cc9['id']&&(_0x13fe9f['id']=String(_0x1f2cc9['id'])),_0x13fe9f;},_0x23b449['toObject']=function(_0x2138f3,_0x163981){_0x163981||(_0x163981={});var _0x4c287c={};return _0x163981['defaults']&&(_0x4c287c['id']=''),null!=_0x2138f3['id']&&_0x2138f3['hasOwnProperty']('id')&&(_0x4c287c['id']=_0x2138f3['id']),_0x4c287c;},_0x23b449['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x23b449['getTypeUrl']=function(_0x4e3f46){return void 0x0===_0x4e3f46&&(_0x4e3f46='type.googleapis.com'),_0x4e3f46+'/SocketDisconnectMessage';},_0x23b449;}()),_0x1d55ed['SocketConnectMessage']=(function(){function _0x23fe82(_0x33ba69){if(this['permissions']=[],_0x33ba69){for(var _0x3a7a4e=Object['keys'](_0x33ba69),_0x23ac68=0x0;_0x23ac68<_0x3a7a4e['length'];++_0x23ac68)null!=_0x33ba69[_0x3a7a4e[_0x23ac68]]&&(this[_0x3a7a4e[_0x23ac68]]=_0x33ba69[_0x3a7a4e[_0x23ac68]]);}}return _0x23fe82['prototype']['id']='',_0x23fe82['prototype']['userId']='',_0x23fe82['prototype']['role']='',_0x23fe82['prototype']['permissions']=_0x17c6dc['emptyArray'],_0x23fe82['create']=function(_0x4ab44f){return new _0x23fe82(_0x4ab44f);},_0x23fe82['encode']=function(_0x3eb787,_0x40dc7e){if(_0x40dc7e||(_0x40dc7e=_0x214d5c['create']()),null!=_0x3eb787['id']&&Object['hasOwnProperty']['call'](_0x3eb787,'id')&&_0x40dc7e['uint32'](0xa)['string'](_0x3eb787['id']),null!=_0x3eb787['userId']&&Object['hasOwnProperty']['call'](_0x3eb787,'userId')&&_0x40dc7e['uint32'](0x12)['string'](_0x3eb787['userId']),null!=_0x3eb787['role']&&Object['hasOwnProperty']['call'](_0x3eb787,'role')&&_0x40dc7e['uint32'](0x1a)['string'](_0x3eb787['role']),null!=_0x3eb787['permissions']&&_0x3eb787['permissions']['length']){for(var _0x5035f9=0x0;_0x5035f9<_0x3eb787['permissions']['length'];++_0x5035f9)_0x40dc7e['uint32'](0x22)['string'](_0x3eb787['permissions'][_0x5035f9]);}return _0x40dc7e;},_0x23fe82['encodeDelimited']=function(_0x4576b1,_0x119b15){return this['encode'](_0x4576b1,_0x119b15)['ldelim']();},_0x23fe82['decode']=function(_0x2fee7b,_0x281f82,_0x3aa5e0){_0x2fee7b instanceof _0x10ed9a||(_0x2fee7b=_0x10ed9a['create'](_0x2fee7b));for(var _0x3d1ff4=void 0x0===_0x281f82?_0x2fee7b['len']:_0x2fee7b['pos']+_0x281f82,_0x3aa4ec=new _0x1d55ed['SocketConnectMessage']();_0x2fee7b['pos']<_0x3d1ff4;){var _0x13fa7b=_0x2fee7b['uint32']();if(_0x13fa7b===_0x3aa5e0)break;switch(_0x13fa7b>>>0x3){case 0x1:_0x3aa4ec['id']=_0x2fee7b['string']();break;case 0x2:_0x3aa4ec['userId']=_0x2fee7b['string']();break;case 0x3:_0x3aa4ec['role']=_0x2fee7b['string']();break;case 0x4:_0x3aa4ec['permissions']&&_0x3aa4ec['permissions']['length']||(_0x3aa4ec['permissions']=[]),_0x3aa4ec['permissions']['push'](_0x2fee7b['string']());break;default:_0x2fee7b['skipType'](0x7&_0x13fa7b);}}return _0x3aa4ec;},_0x23fe82['decodeDelimited']=function(_0x48bf82){return _0x48bf82 instanceof _0x10ed9a||(_0x48bf82=new _0x10ed9a(_0x48bf82)),this['decode'](_0x48bf82,_0x48bf82['uint32']());},_0x23fe82['verify']=function(_0x240740){if('object'!=typeof _0x240740||null===_0x240740)return'object\x20expected';if(null!=_0x240740['id']&&_0x240740['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x240740['id']))return'id:\x20string\x20expected';if(null!=_0x240740['userId']&&_0x240740['hasOwnProperty']('userId')&&!_0x17c6dc['isString'](_0x240740['userId']))return'userId:\x20string\x20expected';if(null!=_0x240740['role']&&_0x240740['hasOwnProperty']('role')&&!_0x17c6dc['isString'](_0x240740['role']))return'role:\x20string\x20expected';if(null!=_0x240740['permissions']&&_0x240740['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x240740['permissions']))return'permissions:\x20array\x20expected';for(var _0x18d312=0x0;_0x18d312<_0x240740['permissions']['length'];++_0x18d312)if(!_0x17c6dc['isString'](_0x240740['permissions'][_0x18d312]))return'permissions:\x20string[]\x20expected';}return null;},_0x23fe82['fromObject']=function(_0x10bd24){if(_0x10bd24 instanceof _0x1d55ed['SocketConnectMessage'])return _0x10bd24;var _0x11ab10=new _0x1d55ed['SocketConnectMessage']();if(null!=_0x10bd24['id']&&(_0x11ab10['id']=String(_0x10bd24['id'])),null!=_0x10bd24['userId']&&(_0x11ab10['userId']=String(_0x10bd24['userId'])),null!=_0x10bd24['role']&&(_0x11ab10['role']=String(_0x10bd24['role'])),_0x10bd24['permissions']){if(!Array['isArray'](_0x10bd24['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x11ab10['permissions']=[];for(var _0x1e5b8f=0x0;_0x1e5b8f<_0x10bd24['permissions']['length'];++_0x1e5b8f)_0x11ab10['permissions'][_0x1e5b8f]=String(_0x10bd24['permissions'][_0x1e5b8f]);}return _0x11ab10;},_0x23fe82['toObject']=function(_0x3ed710,_0x106495){_0x106495||(_0x106495={});var _0x435e39={};if((_0x106495['arrays']||_0x106495['defaults'])&&(_0x435e39['permissions']=[]),_0x106495['defaults']&&(_0x435e39['id']='',_0x435e39['userId']='',_0x435e39['role']=''),null!=_0x3ed710['id']&&_0x3ed710['hasOwnProperty']('id')&&(_0x435e39['id']=_0x3ed710['id']),null!=_0x3ed710['userId']&&_0x3ed710['hasOwnProperty']('userId')&&(_0x435e39['userId']=_0x3ed710['userId']),null!=_0x3ed710['role']&&_0x3ed710['hasOwnProperty']('role')&&(_0x435e39['role']=_0x3ed710['role']),_0x3ed710['permissions']&&_0x3ed710['permissions']['length']){_0x435e39['permissions']=[];for(var _0x3fd1c2=0x0;_0x3fd1c2<_0x3ed710['permissions']['length'];++_0x3fd1c2)_0x435e39['permissions'][_0x3fd1c2]=_0x3ed710['permissions'][_0x3fd1c2];}return _0x435e39;},_0x23fe82['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x23fe82['getTypeUrl']=function(_0x294e6c){return void 0x0===_0x294e6c&&(_0x294e6c='type.googleapis.com'),_0x294e6c+'/SocketConnectMessage';},_0x23fe82;}()),_0x1d55ed['SessionsConnectMessage']=(function(){function _0x444bb5(_0x194130){if(_0x194130){for(var _0x388437=Object['keys'](_0x194130),_0x216490=0x0;_0x216490<_0x388437['length'];++_0x216490)null!=_0x194130[_0x388437[_0x216490]]&&(this[_0x388437[_0x216490]]=_0x194130[_0x388437[_0x216490]]);}}return _0x444bb5['prototype']['id']='',_0x444bb5['prototype']['sessionType']=0x0,_0x444bb5['create']=function(_0x6d2588){return new _0x444bb5(_0x6d2588);},_0x444bb5['encode']=function(_0x2a3bbd,_0x4d1965){return _0x4d1965||(_0x4d1965=_0x214d5c['create']()),null!=_0x2a3bbd['id']&&Object['hasOwnProperty']['call'](_0x2a3bbd,'id')&&_0x4d1965['uint32'](0xa)['string'](_0x2a3bbd['id']),null!=_0x2a3bbd['sessionType']&&Object['hasOwnProperty']['call'](_0x2a3bbd,'sessionType')&&_0x4d1965['uint32'](0x10)['uint32'](_0x2a3bbd['sessionType']),_0x4d1965;},_0x444bb5['encodeDelimited']=function(_0x15df66,_0x2145b1){return this['encode'](_0x15df66,_0x2145b1)['ldelim']();},_0x444bb5['decode']=function(_0x1be3d6,_0xdafe41,_0x2688c1){_0x1be3d6 instanceof _0x10ed9a||(_0x1be3d6=_0x10ed9a['create'](_0x1be3d6));for(var _0x564831=void 0x0===_0xdafe41?_0x1be3d6['len']:_0x1be3d6['pos']+_0xdafe41,_0x23d7b1=new _0x1d55ed['SessionsConnectMessage']();_0x1be3d6['pos']<_0x564831;){var _0x53dfe9=_0x1be3d6['uint32']();if(_0x53dfe9===_0x2688c1)break;switch(_0x53dfe9>>>0x3){case 0x1:_0x23d7b1['id']=_0x1be3d6['string']();break;case 0x2:_0x23d7b1['sessionType']=_0x1be3d6['uint32']();break;default:_0x1be3d6['skipType'](0x7&_0x53dfe9);}}return _0x23d7b1;},_0x444bb5['decodeDelimited']=function(_0x366244){return _0x366244 instanceof _0x10ed9a||(_0x366244=new _0x10ed9a(_0x366244)),this['decode'](_0x366244,_0x366244['uint32']());},_0x444bb5['verify']=function(_0x208221){return'object'!=typeof _0x208221||null===_0x208221?'object\x20expected':null!=_0x208221['id']&&_0x208221['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x208221['id'])?'id:\x20string\x20expected':null!=_0x208221['sessionType']&&_0x208221['hasOwnProperty']('sessionType')&&!_0x17c6dc['isInteger'](_0x208221['sessionType'])?'sessionType:\x20integer\x20expected':null;},_0x444bb5['fromObject']=function(_0x3291d5){if(_0x3291d5 instanceof _0x1d55ed['SessionsConnectMessage'])return _0x3291d5;var _0x460fd8=new _0x1d55ed['SessionsConnectMessage']();return null!=_0x3291d5['id']&&(_0x460fd8['id']=String(_0x3291d5['id'])),null!=_0x3291d5['sessionType']&&(_0x460fd8['sessionType']=_0x3291d5['sessionType']>>>0x0),_0x460fd8;},_0x444bb5['toObject']=function(_0x5a20f9,_0x4207f2){_0x4207f2||(_0x4207f2={});var _0x1c3aea={};return _0x4207f2['defaults']&&(_0x1c3aea['id']='',_0x1c3aea['sessionType']=0x0),null!=_0x5a20f9['id']&&_0x5a20f9['hasOwnProperty']('id')&&(_0x1c3aea['id']=_0x5a20f9['id']),null!=_0x5a20f9['sessionType']&&_0x5a20f9['hasOwnProperty']('sessionType')&&(_0x1c3aea['sessionType']=_0x5a20f9['sessionType']),_0x1c3aea;},_0x444bb5['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x444bb5['getTypeUrl']=function(_0x16c07f){return void 0x0===_0x16c07f&&(_0x16c07f='type.googleapis.com'),_0x16c07f+'/SessionsConnectMessage';},_0x444bb5;}()),_0x1d55ed['SessionsSocketDescriptor']=(function(){function _0x2453c9(_0x4d80b2){if(this['permissions']=[],_0x4d80b2){for(var _0x4b6237=Object['keys'](_0x4d80b2),_0x18885a=0x0;_0x18885a<_0x4b6237['length'];++_0x18885a)null!=_0x4d80b2[_0x4b6237[_0x18885a]]&&(this[_0x4b6237[_0x18885a]]=_0x4d80b2[_0x4b6237[_0x18885a]]);}}return _0x2453c9['prototype']['session']='',_0x2453c9['prototype']['user']='',_0x2453c9['prototype']['role']='',_0x2453c9['prototype']['permissions']=_0x17c6dc['emptyArray'],_0x2453c9['create']=function(_0x2c5a06){return new _0x2453c9(_0x2c5a06);},_0x2453c9['encode']=function(_0x339327,_0x4d98c2){if(_0x4d98c2||(_0x4d98c2=_0x214d5c['create']()),null!=_0x339327['session']&&Object['hasOwnProperty']['call'](_0x339327,'session')&&_0x4d98c2['uint32'](0xa)['string'](_0x339327['session']),null!=_0x339327['user']&&Object['hasOwnProperty']['call'](_0x339327,'user')&&_0x4d98c2['uint32'](0x12)['string'](_0x339327['user']),null!=_0x339327['role']&&Object['hasOwnProperty']['call'](_0x339327,'role')&&_0x4d98c2['uint32'](0x1a)['string'](_0x339327['role']),null!=_0x339327['permissions']&&_0x339327['permissions']['length']){for(var _0x4a39ea=0x0;_0x4a39ea<_0x339327['permissions']['length'];++_0x4a39ea)_0x4d98c2['uint32'](0x22)['string'](_0x339327['permissions'][_0x4a39ea]);}return _0x4d98c2;},_0x2453c9['encodeDelimited']=function(_0x9a32b5,_0x2281a0){return this['encode'](_0x9a32b5,_0x2281a0)['ldelim']();},_0x2453c9['decode']=function(_0x15141f,_0x435510,_0xa925f7){_0x15141f instanceof _0x10ed9a||(_0x15141f=_0x10ed9a['create'](_0x15141f));for(var _0x5d82e9=void 0x0===_0x435510?_0x15141f['len']:_0x15141f['pos']+_0x435510,_0x14d134=new _0x1d55ed['SessionsSocketDescriptor']();_0x15141f['pos']<_0x5d82e9;){var _0x1c6e9e=_0x15141f['uint32']();if(_0x1c6e9e===_0xa925f7)break;switch(_0x1c6e9e>>>0x3){case 0x1:_0x14d134['session']=_0x15141f['string']();break;case 0x2:_0x14d134['user']=_0x15141f['string']();break;case 0x3:_0x14d134['role']=_0x15141f['string']();break;case 0x4:_0x14d134['permissions']&&_0x14d134['permissions']['length']||(_0x14d134['permissions']=[]),_0x14d134['permissions']['push'](_0x15141f['string']());break;default:_0x15141f['skipType'](0x7&_0x1c6e9e);}}return _0x14d134;},_0x2453c9['decodeDelimited']=function(_0x2cd3a8){return _0x2cd3a8 instanceof _0x10ed9a||(_0x2cd3a8=new _0x10ed9a(_0x2cd3a8)),this['decode'](_0x2cd3a8,_0x2cd3a8['uint32']());},_0x2453c9['verify']=function(_0x4ea7be){if('object'!=typeof _0x4ea7be||null===_0x4ea7be)return'object\x20expected';if(null!=_0x4ea7be['session']&&_0x4ea7be['hasOwnProperty']('session')&&!_0x17c6dc['isString'](_0x4ea7be['session']))return'session:\x20string\x20expected';if(null!=_0x4ea7be['user']&&_0x4ea7be['hasOwnProperty']('user')&&!_0x17c6dc['isString'](_0x4ea7be['user']))return'user:\x20string\x20expected';if(null!=_0x4ea7be['role']&&_0x4ea7be['hasOwnProperty']('role')&&!_0x17c6dc['isString'](_0x4ea7be['role']))return'role:\x20string\x20expected';if(null!=_0x4ea7be['permissions']&&_0x4ea7be['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x4ea7be['permissions']))return'permissions:\x20array\x20expected';for(var _0x4abf52=0x0;_0x4abf52<_0x4ea7be['permissions']['length'];++_0x4abf52)if(!_0x17c6dc['isString'](_0x4ea7be['permissions'][_0x4abf52]))return'permissions:\x20string[]\x20expected';}return null;},_0x2453c9['fromObject']=function(_0xed19c){if(_0xed19c instanceof _0x1d55ed['SessionsSocketDescriptor'])return _0xed19c;var _0x1c6c6a=new _0x1d55ed['SessionsSocketDescriptor']();if(null!=_0xed19c['session']&&(_0x1c6c6a['session']=String(_0xed19c['session'])),null!=_0xed19c['user']&&(_0x1c6c6a['user']=String(_0xed19c['user'])),null!=_0xed19c['role']&&(_0x1c6c6a['role']=String(_0xed19c['role'])),_0xed19c['permissions']){if(!Array['isArray'](_0xed19c['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x1c6c6a['permissions']=[];for(var _0x3412fd=0x0;_0x3412fd<_0xed19c['permissions']['length'];++_0x3412fd)_0x1c6c6a['permissions'][_0x3412fd]=String(_0xed19c['permissions'][_0x3412fd]);}return _0x1c6c6a;},_0x2453c9['toObject']=function(_0x3fc2b9,_0x41db42){_0x41db42||(_0x41db42={});var _0x402fa6={};if((_0x41db42['arrays']||_0x41db42['defaults'])&&(_0x402fa6['permissions']=[]),_0x41db42['defaults']&&(_0x402fa6['session']='',_0x402fa6['user']='',_0x402fa6['role']=''),null!=_0x3fc2b9['session']&&_0x3fc2b9['hasOwnProperty']('session')&&(_0x402fa6['session']=_0x3fc2b9['session']),null!=_0x3fc2b9['user']&&_0x3fc2b9['hasOwnProperty']('user')&&(_0x402fa6['user']=_0x3fc2b9['user']),null!=_0x3fc2b9['role']&&_0x3fc2b9['hasOwnProperty']('role')&&(_0x402fa6['role']=_0x3fc2b9['role']),_0x3fc2b9['permissions']&&_0x3fc2b9['permissions']['length']){_0x402fa6['permissions']=[];for(var _0x28c047=0x0;_0x28c047<_0x3fc2b9['permissions']['length'];++_0x28c047)_0x402fa6['permissions'][_0x28c047]=_0x3fc2b9['permissions'][_0x28c047];}return _0x402fa6;},_0x2453c9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2453c9['getTypeUrl']=function(_0x1a05b2){return void 0x0===_0x1a05b2&&(_0x1a05b2='type.googleapis.com'),_0x1a05b2+'/SessionsSocketDescriptor';},_0x2453c9;}()),_0x1d55ed['RevisionHistoryUpdateRevisionsResponse']=(function(){function _0x5bce8e(_0x3c594d){if(_0x3c594d){for(var _0x3cd041=Object['keys'](_0x3c594d),_0x3fcec8=0x0;_0x3fcec8<_0x3cd041['length'];++_0x3fcec8)null!=_0x3c594d[_0x3cd041[_0x3fcec8]]&&(this[_0x3cd041[_0x3fcec8]]=_0x3c594d[_0x3cd041[_0x3fcec8]]);}}return _0x5bce8e['prototype']['requestId']=0x0,_0x5bce8e['create']=function(_0x13ed27){return new _0x5bce8e(_0x13ed27);},_0x5bce8e['encode']=function(_0x17d96a,_0x355eab){return _0x355eab||(_0x355eab=_0x214d5c['create']()),null!=_0x17d96a['requestId']&&Object['hasOwnProperty']['call'](_0x17d96a,'requestId')&&_0x355eab['uint32'](0x8)['uint32'](_0x17d96a['requestId']),_0x355eab;},_0x5bce8e['encodeDelimited']=function(_0x191122,_0x16cf38){return this['encode'](_0x191122,_0x16cf38)['ldelim']();},_0x5bce8e['decode']=function(_0x1246e0,_0x145235,_0x42f401){_0x1246e0 instanceof _0x10ed9a||(_0x1246e0=_0x10ed9a['create'](_0x1246e0));for(var _0x54a95a=void 0x0===_0x145235?_0x1246e0['len']:_0x1246e0['pos']+_0x145235,_0x3f898d=new _0x1d55ed['RevisionHistoryUpdateRevisionsResponse']();_0x1246e0['pos']<_0x54a95a;){var _0x14f7d9=_0x1246e0['uint32']();if(_0x14f7d9===_0x42f401)break;_0x14f7d9>>>0x3==0x1?_0x3f898d['requestId']=_0x1246e0['uint32']():_0x1246e0['skipType'](0x7&_0x14f7d9);}return _0x3f898d;},_0x5bce8e['decodeDelimited']=function(_0x9f12d3){return _0x9f12d3 instanceof _0x10ed9a||(_0x9f12d3=new _0x10ed9a(_0x9f12d3)),this['decode'](_0x9f12d3,_0x9f12d3['uint32']());},_0x5bce8e['verify']=function(_0x4290b5){return'object'!=typeof _0x4290b5||null===_0x4290b5?'object\x20expected':null!=_0x4290b5['requestId']&&_0x4290b5['hasOwnProperty']('requestId')&&!_0x17c6dc['isInteger'](_0x4290b5['requestId'])?'requestId:\x20integer\x20expected':null;},_0x5bce8e['fromObject']=function(_0x2d6800){if(_0x2d6800 instanceof _0x1d55ed['RevisionHistoryUpdateRevisionsResponse'])return _0x2d6800;var _0x5ddeb3=new _0x1d55ed['RevisionHistoryUpdateRevisionsResponse']();return null!=_0x2d6800['requestId']&&(_0x5ddeb3['requestId']=_0x2d6800['requestId']>>>0x0),_0x5ddeb3;},_0x5bce8e['toObject']=function(_0x3d642e,_0x36460e){_0x36460e||(_0x36460e={});var _0x3e2deb={};return _0x36460e['defaults']&&(_0x3e2deb['requestId']=0x0),null!=_0x3d642e['requestId']&&_0x3d642e['hasOwnProperty']('requestId')&&(_0x3e2deb['requestId']=_0x3d642e['requestId']),_0x3e2deb;},_0x5bce8e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5bce8e['getTypeUrl']=function(_0x95d8b6){return void 0x0===_0x95d8b6&&(_0x95d8b6='type.googleapis.com'),_0x95d8b6+'/RevisionHistoryUpdateRevisionsResponse';},_0x5bce8e;}()),_0x1d55ed['RevisionHistoryGetRevisionResponse']=(function(){function _0x2b9032(_0x199537){if(_0x199537){for(var _0x25e97c=Object['keys'](_0x199537),_0x2bef59=0x0;_0x2bef59<_0x25e97c['length'];++_0x2bef59)null!=_0x199537[_0x25e97c[_0x2bef59]]&&(this[_0x25e97c[_0x2bef59]]=_0x199537[_0x25e97c[_0x2bef59]]);}}return _0x2b9032['prototype']['revisionId']='',_0x2b9032['prototype']['name']='',_0x2b9032['prototype']['creatorId']='',_0x2b9032['prototype']['authorsIds']='',_0x2b9032['prototype']['diffData']='',_0x2b9032['prototype']['createdAt']='',_0x2b9032['prototype']['attributes']='',_0x2b9032['prototype']['toVersion']=0x0,_0x2b9032['prototype']['fromVersion']=0x0,_0x2b9032['prototype']['isEmptyCurrent']=!0x1,_0x2b9032['create']=function(_0x41a337){return new _0x2b9032(_0x41a337);},_0x2b9032['encode']=function(_0x387568,_0xc7a7a3){return _0xc7a7a3||(_0xc7a7a3=_0x214d5c['create']()),null!=_0x387568['revisionId']&&Object['hasOwnProperty']['call'](_0x387568,'revisionId')&&_0xc7a7a3['uint32'](0xa)['string'](_0x387568['revisionId']),null!=_0x387568['name']&&Object['hasOwnProperty']['call'](_0x387568,'name')&&_0xc7a7a3['uint32'](0x12)['string'](_0x387568['name']),null!=_0x387568['creatorId']&&Object['hasOwnProperty']['call'](_0x387568,'creatorId')&&_0xc7a7a3['uint32'](0x1a)['string'](_0x387568['creatorId']),null!=_0x387568['authorsIds']&&Object['hasOwnProperty']['call'](_0x387568,'authorsIds')&&_0xc7a7a3['uint32'](0x22)['string'](_0x387568['authorsIds']),null!=_0x387568['diffData']&&Object['hasOwnProperty']['call'](_0x387568,'diffData')&&_0xc7a7a3['uint32'](0x2a)['string'](_0x387568['diffData']),null!=_0x387568['createdAt']&&Object['hasOwnProperty']['call'](_0x387568,'createdAt')&&_0xc7a7a3['uint32'](0x32)['string'](_0x387568['createdAt']),null!=_0x387568['attributes']&&Object['hasOwnProperty']['call'](_0x387568,'attributes')&&_0xc7a7a3['uint32'](0x3a)['string'](_0x387568['attributes']),null!=_0x387568['toVersion']&&Object['hasOwnProperty']['call'](_0x387568,'toVersion')&&_0xc7a7a3['uint32'](0x40)['uint32'](_0x387568['toVersion']),null!=_0x387568['fromVersion']&&Object['hasOwnProperty']['call'](_0x387568,'fromVersion')&&_0xc7a7a3['uint32'](0x48)['uint32'](_0x387568['fromVersion']),null!=_0x387568['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x387568,'isEmptyCurrent')&&_0xc7a7a3['uint32'](0x50)['bool'](_0x387568['isEmptyCurrent']),_0xc7a7a3;},_0x2b9032['encodeDelimited']=function(_0x183351,_0x1b5382){return this['encode'](_0x183351,_0x1b5382)['ldelim']();},_0x2b9032['decode']=function(_0xe8443e,_0x25adf2,_0x488260){_0xe8443e instanceof _0x10ed9a||(_0xe8443e=_0x10ed9a['create'](_0xe8443e));for(var _0x402867=void 0x0===_0x25adf2?_0xe8443e['len']:_0xe8443e['pos']+_0x25adf2,_0x303e98=new _0x1d55ed['RevisionHistoryGetRevisionResponse']();_0xe8443e['pos']<_0x402867;){var _0x2a9b6c=_0xe8443e['uint32']();if(_0x2a9b6c===_0x488260)break;switch(_0x2a9b6c>>>0x3){case 0x1:_0x303e98['revisionId']=_0xe8443e['string']();break;case 0x2:_0x303e98['name']=_0xe8443e['string']();break;case 0x3:_0x303e98['creatorId']=_0xe8443e['string']();break;case 0x4:_0x303e98['authorsIds']=_0xe8443e['string']();break;case 0x5:_0x303e98['diffData']=_0xe8443e['string']();break;case 0x6:_0x303e98['createdAt']=_0xe8443e['string']();break;case 0x7:_0x303e98['attributes']=_0xe8443e['string']();break;case 0x8:_0x303e98['toVersion']=_0xe8443e['uint32']();break;case 0x9:_0x303e98['fromVersion']=_0xe8443e['uint32']();break;case 0xa:_0x303e98['isEmptyCurrent']=_0xe8443e['bool']();break;default:_0xe8443e['skipType'](0x7&_0x2a9b6c);}}return _0x303e98;},_0x2b9032['decodeDelimited']=function(_0x3d6258){return _0x3d6258 instanceof _0x10ed9a||(_0x3d6258=new _0x10ed9a(_0x3d6258)),this['decode'](_0x3d6258,_0x3d6258['uint32']());},_0x2b9032['verify']=function(_0x46cfcb){return'object'!=typeof _0x46cfcb||null===_0x46cfcb?'object\x20expected':null!=_0x46cfcb['revisionId']&&_0x46cfcb['hasOwnProperty']('revisionId')&&!_0x17c6dc['isString'](_0x46cfcb['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x46cfcb['name']&&_0x46cfcb['hasOwnProperty']('name')&&!_0x17c6dc['isString'](_0x46cfcb['name'])?'name:\x20string\x20expected':null!=_0x46cfcb['creatorId']&&_0x46cfcb['hasOwnProperty']('creatorId')&&!_0x17c6dc['isString'](_0x46cfcb['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x46cfcb['authorsIds']&&_0x46cfcb['hasOwnProperty']('authorsIds')&&!_0x17c6dc['isString'](_0x46cfcb['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x46cfcb['diffData']&&_0x46cfcb['hasOwnProperty']('diffData')&&!_0x17c6dc['isString'](_0x46cfcb['diffData'])?'diffData:\x20string\x20expected':null!=_0x46cfcb['createdAt']&&_0x46cfcb['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x46cfcb['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x46cfcb['attributes']&&_0x46cfcb['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x46cfcb['attributes'])?'attributes:\x20string\x20expected':null!=_0x46cfcb['toVersion']&&_0x46cfcb['hasOwnProperty']('toVersion')&&!_0x17c6dc['isInteger'](_0x46cfcb['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x46cfcb['fromVersion']&&_0x46cfcb['hasOwnProperty']('fromVersion')&&!_0x17c6dc['isInteger'](_0x46cfcb['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x46cfcb['isEmptyCurrent']&&_0x46cfcb['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x46cfcb['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0x2b9032['fromObject']=function(_0x30095d){if(_0x30095d instanceof _0x1d55ed['RevisionHistoryGetRevisionResponse'])return _0x30095d;var _0x15e300=new _0x1d55ed['RevisionHistoryGetRevisionResponse']();return null!=_0x30095d['revisionId']&&(_0x15e300['revisionId']=String(_0x30095d['revisionId'])),null!=_0x30095d['name']&&(_0x15e300['name']=String(_0x30095d['name'])),null!=_0x30095d['creatorId']&&(_0x15e300['creatorId']=String(_0x30095d['creatorId'])),null!=_0x30095d['authorsIds']&&(_0x15e300['authorsIds']=String(_0x30095d['authorsIds'])),null!=_0x30095d['diffData']&&(_0x15e300['diffData']=String(_0x30095d['diffData'])),null!=_0x30095d['createdAt']&&(_0x15e300['createdAt']=String(_0x30095d['createdAt'])),null!=_0x30095d['attributes']&&(_0x15e300['attributes']=String(_0x30095d['attributes'])),null!=_0x30095d['toVersion']&&(_0x15e300['toVersion']=_0x30095d['toVersion']>>>0x0),null!=_0x30095d['fromVersion']&&(_0x15e300['fromVersion']=_0x30095d['fromVersion']>>>0x0),null!=_0x30095d['isEmptyCurrent']&&(_0x15e300['isEmptyCurrent']=Boolean(_0x30095d['isEmptyCurrent'])),_0x15e300;},_0x2b9032['toObject']=function(_0xbad6d0,_0x46b3e1){_0x46b3e1||(_0x46b3e1={});var _0x858eab={};return _0x46b3e1['defaults']&&(_0x858eab['revisionId']='',_0x858eab['name']='',_0x858eab['creatorId']='',_0x858eab['authorsIds']='',_0x858eab['diffData']='',_0x858eab['createdAt']='',_0x858eab['attributes']='',_0x858eab['toVersion']=0x0,_0x858eab['fromVersion']=0x0,_0x858eab['isEmptyCurrent']=!0x1),null!=_0xbad6d0['revisionId']&&_0xbad6d0['hasOwnProperty']('revisionId')&&(_0x858eab['revisionId']=_0xbad6d0['revisionId']),null!=_0xbad6d0['name']&&_0xbad6d0['hasOwnProperty']('name')&&(_0x858eab['name']=_0xbad6d0['name']),null!=_0xbad6d0['creatorId']&&_0xbad6d0['hasOwnProperty']('creatorId')&&(_0x858eab['creatorId']=_0xbad6d0['creatorId']),null!=_0xbad6d0['authorsIds']&&_0xbad6d0['hasOwnProperty']('authorsIds')&&(_0x858eab['authorsIds']=_0xbad6d0['authorsIds']),null!=_0xbad6d0['diffData']&&_0xbad6d0['hasOwnProperty']('diffData')&&(_0x858eab['diffData']=_0xbad6d0['diffData']),null!=_0xbad6d0['createdAt']&&_0xbad6d0['hasOwnProperty']('createdAt')&&(_0x858eab['createdAt']=_0xbad6d0['createdAt']),null!=_0xbad6d0['attributes']&&_0xbad6d0['hasOwnProperty']('attributes')&&(_0x858eab['attributes']=_0xbad6d0['attributes']),null!=_0xbad6d0['toVersion']&&_0xbad6d0['hasOwnProperty']('toVersion')&&(_0x858eab['toVersion']=_0xbad6d0['toVersion']),null!=_0xbad6d0['fromVersion']&&_0xbad6d0['hasOwnProperty']('fromVersion')&&(_0x858eab['fromVersion']=_0xbad6d0['fromVersion']),null!=_0xbad6d0['isEmptyCurrent']&&_0xbad6d0['hasOwnProperty']('isEmptyCurrent')&&(_0x858eab['isEmptyCurrent']=_0xbad6d0['isEmptyCurrent']),_0x858eab;},_0x2b9032['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2b9032['getTypeUrl']=function(_0x550a04){return void 0x0===_0x550a04&&(_0x550a04='type.googleapis.com'),_0x550a04+'/RevisionHistoryGetRevisionResponse';},_0x2b9032;}()),_0x1d55ed['RevisionHistoryConnectResponse']=(function(){function _0x13a7a1(_0x53055a){if(this['revisions']=[],_0x53055a){for(var _0x233beb=Object['keys'](_0x53055a),_0x1c25d0=0x0;_0x1c25d0<_0x233beb['length'];++_0x1c25d0)null!=_0x53055a[_0x233beb[_0x1c25d0]]&&(this[_0x233beb[_0x1c25d0]]=_0x53055a[_0x233beb[_0x1c25d0]]);}}return _0x13a7a1['prototype']['channel']='',_0x13a7a1['prototype']['requestId']=0x0,_0x13a7a1['prototype']['revisions']=_0x17c6dc['emptyArray'],_0x13a7a1['create']=function(_0x474681){return new _0x13a7a1(_0x474681);},_0x13a7a1['encode']=function(_0x4ddd42,_0x44894f){if(_0x44894f||(_0x44894f=_0x214d5c['create']()),null!=_0x4ddd42['channel']&&Object['hasOwnProperty']['call'](_0x4ddd42,'channel')&&_0x44894f['uint32'](0xa)['string'](_0x4ddd42['channel']),null!=_0x4ddd42['requestId']&&Object['hasOwnProperty']['call'](_0x4ddd42,'requestId')&&_0x44894f['uint32'](0x10)['uint32'](_0x4ddd42['requestId']),null!=_0x4ddd42['revisions']&&_0x4ddd42['revisions']['length']){for(var _0x3de3a2=0x0;_0x3de3a2<_0x4ddd42['revisions']['length'];++_0x3de3a2)_0x1d55ed['RevisionDescriptor']['encode'](_0x4ddd42['revisions'][_0x3de3a2],_0x44894f['uint32'](0x1a)['fork']())['ldelim']();}return _0x44894f;},_0x13a7a1['encodeDelimited']=function(_0x42541e,_0x5d5bf8){return this['encode'](_0x42541e,_0x5d5bf8)['ldelim']();},_0x13a7a1['decode']=function(_0x3dac11,_0x3ecf02,_0x4154f5){_0x3dac11 instanceof _0x10ed9a||(_0x3dac11=_0x10ed9a['create'](_0x3dac11));for(var _0x3ab81e=void 0x0===_0x3ecf02?_0x3dac11['len']:_0x3dac11['pos']+_0x3ecf02,_0x2c3042=new _0x1d55ed['RevisionHistoryConnectResponse']();_0x3dac11['pos']<_0x3ab81e;){var _0x16f200=_0x3dac11['uint32']();if(_0x16f200===_0x4154f5)break;switch(_0x16f200>>>0x3){case 0x1:_0x2c3042['channel']=_0x3dac11['string']();break;case 0x2:_0x2c3042['requestId']=_0x3dac11['uint32']();break;case 0x3:_0x2c3042['revisions']&&_0x2c3042['revisions']['length']||(_0x2c3042['revisions']=[]),_0x2c3042['revisions']['push'](_0x1d55ed['RevisionDescriptor']['decode'](_0x3dac11,_0x3dac11['uint32']()));break;default:_0x3dac11['skipType'](0x7&_0x16f200);}}return _0x2c3042;},_0x13a7a1['decodeDelimited']=function(_0x4daf12){return _0x4daf12 instanceof _0x10ed9a||(_0x4daf12=new _0x10ed9a(_0x4daf12)),this['decode'](_0x4daf12,_0x4daf12['uint32']());},_0x13a7a1['verify']=function(_0x1166ff){if('object'!=typeof _0x1166ff||null===_0x1166ff)return'object\x20expected';if(null!=_0x1166ff['channel']&&_0x1166ff['hasOwnProperty']('channel')&&!_0x17c6dc['isString'](_0x1166ff['channel']))return'channel:\x20string\x20expected';if(null!=_0x1166ff['requestId']&&_0x1166ff['hasOwnProperty']('requestId')&&!_0x17c6dc['isInteger'](_0x1166ff['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x1166ff['revisions']&&_0x1166ff['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x1166ff['revisions']))return'revisions:\x20array\x20expected';for(var _0x9a797c=0x0;_0x9a797c<_0x1166ff['revisions']['length'];++_0x9a797c){var _0x25d3be=_0x1d55ed['RevisionDescriptor']['verify'](_0x1166ff['revisions'][_0x9a797c]);if(_0x25d3be)return'revisions.'+_0x25d3be;}}return null;},_0x13a7a1['fromObject']=function(_0x13df58){if(_0x13df58 instanceof _0x1d55ed['RevisionHistoryConnectResponse'])return _0x13df58;var _0xff0161=new _0x1d55ed['RevisionHistoryConnectResponse']();if(null!=_0x13df58['channel']&&(_0xff0161['channel']=String(_0x13df58['channel'])),null!=_0x13df58['requestId']&&(_0xff0161['requestId']=_0x13df58['requestId']>>>0x0),_0x13df58['revisions']){if(!Array['isArray'](_0x13df58['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0xff0161['revisions']=[];for(var _0x24fe1c=0x0;_0x24fe1c<_0x13df58['revisions']['length'];++_0x24fe1c){if('object'!=typeof _0x13df58['revisions'][_0x24fe1c])throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0xff0161['revisions'][_0x24fe1c]=_0x1d55ed['RevisionDescriptor']['fromObject'](_0x13df58['revisions'][_0x24fe1c]);}}return _0xff0161;},_0x13a7a1['toObject']=function(_0x56f487,_0x557769){_0x557769||(_0x557769={});var _0x27d06d={};if((_0x557769['arrays']||_0x557769['defaults'])&&(_0x27d06d['revisions']=[]),_0x557769['defaults']&&(_0x27d06d['channel']='',_0x27d06d['requestId']=0x0),null!=_0x56f487['channel']&&_0x56f487['hasOwnProperty']('channel')&&(_0x27d06d['channel']=_0x56f487['channel']),null!=_0x56f487['requestId']&&_0x56f487['hasOwnProperty']('requestId')&&(_0x27d06d['requestId']=_0x56f487['requestId']),_0x56f487['revisions']&&_0x56f487['revisions']['length']){_0x27d06d['revisions']=[];for(var _0x5bec53=0x0;_0x5bec53<_0x56f487['revisions']['length'];++_0x5bec53)_0x27d06d['revisions'][_0x5bec53]=_0x1d55ed['RevisionDescriptor']['toObject'](_0x56f487['revisions'][_0x5bec53],_0x557769);}return _0x27d06d;},_0x13a7a1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x13a7a1['getTypeUrl']=function(_0x2527a3){return void 0x0===_0x2527a3&&(_0x2527a3='type.googleapis.com'),_0x2527a3+'/RevisionHistoryConnectResponse';},_0x13a7a1;}()),_0x1d55ed['RevisionHistoryUpdateRevisionsMessage']=(function(){function _0x1a83b4(_0x1602f){if(this['revisions']=[],_0x1602f){for(var _0xc555e7=Object['keys'](_0x1602f),_0x1f5a5d=0x0;_0x1f5a5d<_0xc555e7['length'];++_0x1f5a5d)null!=_0x1602f[_0xc555e7[_0x1f5a5d]]&&(this[_0xc555e7[_0x1f5a5d]]=_0x1602f[_0xc555e7[_0x1f5a5d]]);}}return _0x1a83b4['prototype']['documentId']='',_0x1a83b4['prototype']['requestId']=0x0,_0x1a83b4['prototype']['revisions']=_0x17c6dc['emptyArray'],_0x1a83b4['create']=function(_0x2881a2){return new _0x1a83b4(_0x2881a2);},_0x1a83b4['encode']=function(_0x2f3bf1,_0x3da2ac){if(_0x3da2ac||(_0x3da2ac=_0x214d5c['create']()),null!=_0x2f3bf1['documentId']&&Object['hasOwnProperty']['call'](_0x2f3bf1,'documentId')&&_0x3da2ac['uint32'](0xa)['string'](_0x2f3bf1['documentId']),null!=_0x2f3bf1['requestId']&&Object['hasOwnProperty']['call'](_0x2f3bf1,'requestId')&&_0x3da2ac['uint32'](0x10)['uint32'](_0x2f3bf1['requestId']),null!=_0x2f3bf1['revisions']&&_0x2f3bf1['revisions']['length']){for(var _0x1c1524=0x0;_0x1c1524<_0x2f3bf1['revisions']['length'];++_0x1c1524)_0x1d55ed['RevisionDescriptor']['encode'](_0x2f3bf1['revisions'][_0x1c1524],_0x3da2ac['uint32'](0x1a)['fork']())['ldelim']();}return _0x3da2ac;},_0x1a83b4['encodeDelimited']=function(_0x4ed894,_0xb97d0f){return this['encode'](_0x4ed894,_0xb97d0f)['ldelim']();},_0x1a83b4['decode']=function(_0x574511,_0x5955c0,_0x3644cb){_0x574511 instanceof _0x10ed9a||(_0x574511=_0x10ed9a['create'](_0x574511));for(var _0xf1d4ca=void 0x0===_0x5955c0?_0x574511['len']:_0x574511['pos']+_0x5955c0,_0x3d9ad8=new _0x1d55ed['RevisionHistoryUpdateRevisionsMessage']();_0x574511['pos']<_0xf1d4ca;){var _0x16e439=_0x574511['uint32']();if(_0x16e439===_0x3644cb)break;switch(_0x16e439>>>0x3){case 0x1:_0x3d9ad8['documentId']=_0x574511['string']();break;case 0x2:_0x3d9ad8['requestId']=_0x574511['uint32']();break;case 0x3:_0x3d9ad8['revisions']&&_0x3d9ad8['revisions']['length']||(_0x3d9ad8['revisions']=[]),_0x3d9ad8['revisions']['push'](_0x1d55ed['RevisionDescriptor']['decode'](_0x574511,_0x574511['uint32']()));break;default:_0x574511['skipType'](0x7&_0x16e439);}}return _0x3d9ad8;},_0x1a83b4['decodeDelimited']=function(_0x415061){return _0x415061 instanceof _0x10ed9a||(_0x415061=new _0x10ed9a(_0x415061)),this['decode'](_0x415061,_0x415061['uint32']());},_0x1a83b4['verify']=function(_0x21751d){if('object'!=typeof _0x21751d||null===_0x21751d)return'object\x20expected';if(null!=_0x21751d['documentId']&&_0x21751d['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x21751d['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x21751d['requestId']&&_0x21751d['hasOwnProperty']('requestId')&&!_0x17c6dc['isInteger'](_0x21751d['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x21751d['revisions']&&_0x21751d['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x21751d['revisions']))return'revisions:\x20array\x20expected';for(var _0x26981d=0x0;_0x26981d<_0x21751d['revisions']['length'];++_0x26981d){var _0x474ea8=_0x1d55ed['RevisionDescriptor']['verify'](_0x21751d['revisions'][_0x26981d]);if(_0x474ea8)return'revisions.'+_0x474ea8;}}return null;},_0x1a83b4['fromObject']=function(_0x29dca7){if(_0x29dca7 instanceof _0x1d55ed['RevisionHistoryUpdateRevisionsMessage'])return _0x29dca7;var _0x367981=new _0x1d55ed['RevisionHistoryUpdateRevisionsMessage']();if(null!=_0x29dca7['documentId']&&(_0x367981['documentId']=String(_0x29dca7['documentId'])),null!=_0x29dca7['requestId']&&(_0x367981['requestId']=_0x29dca7['requestId']>>>0x0),_0x29dca7['revisions']){if(!Array['isArray'](_0x29dca7['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x367981['revisions']=[];for(var _0x2b6a0f=0x0;_0x2b6a0f<_0x29dca7['revisions']['length'];++_0x2b6a0f){if('object'!=typeof _0x29dca7['revisions'][_0x2b6a0f])throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x367981['revisions'][_0x2b6a0f]=_0x1d55ed['RevisionDescriptor']['fromObject'](_0x29dca7['revisions'][_0x2b6a0f]);}}return _0x367981;},_0x1a83b4['toObject']=function(_0xeb6e78,_0xd807a5){_0xd807a5||(_0xd807a5={});var _0x4f8f9b={};if((_0xd807a5['arrays']||_0xd807a5['defaults'])&&(_0x4f8f9b['revisions']=[]),_0xd807a5['defaults']&&(_0x4f8f9b['documentId']='',_0x4f8f9b['requestId']=0x0),null!=_0xeb6e78['documentId']&&_0xeb6e78['hasOwnProperty']('documentId')&&(_0x4f8f9b['documentId']=_0xeb6e78['documentId']),null!=_0xeb6e78['requestId']&&_0xeb6e78['hasOwnProperty']('requestId')&&(_0x4f8f9b['requestId']=_0xeb6e78['requestId']),_0xeb6e78['revisions']&&_0xeb6e78['revisions']['length']){_0x4f8f9b['revisions']=[];for(var _0x3933a8=0x0;_0x3933a8<_0xeb6e78['revisions']['length'];++_0x3933a8)_0x4f8f9b['revisions'][_0x3933a8]=_0x1d55ed['RevisionDescriptor']['toObject'](_0xeb6e78['revisions'][_0x3933a8],_0xd807a5);}return _0x4f8f9b;},_0x1a83b4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1a83b4['getTypeUrl']=function(_0x1cb58e){return void 0x0===_0x1cb58e&&(_0x1cb58e='type.googleapis.com'),_0x1cb58e+'/RevisionHistoryUpdateRevisionsMessage';},_0x1a83b4;}()),_0x1d55ed['RevisionHistoryReconnectMessage']=(function(){function _0x3b100e(_0x1f2447){if(_0x1f2447){for(var _0x4e3cbb=Object['keys'](_0x1f2447),_0x5447b3=0x0;_0x5447b3<_0x4e3cbb['length'];++_0x5447b3)null!=_0x1f2447[_0x4e3cbb[_0x5447b3]]&&(this[_0x4e3cbb[_0x5447b3]]=_0x1f2447[_0x4e3cbb[_0x5447b3]]);}}return _0x3b100e['prototype']['documentId']='',_0x3b100e['prototype']['requestId']=0x0,_0x3b100e['create']=function(_0x373e05){return new _0x3b100e(_0x373e05);},_0x3b100e['encode']=function(_0x3b8f1f,_0x531a81){return _0x531a81||(_0x531a81=_0x214d5c['create']()),null!=_0x3b8f1f['documentId']&&Object['hasOwnProperty']['call'](_0x3b8f1f,'documentId')&&_0x531a81['uint32'](0xa)['string'](_0x3b8f1f['documentId']),null!=_0x3b8f1f['requestId']&&Object['hasOwnProperty']['call'](_0x3b8f1f,'requestId')&&_0x531a81['uint32'](0x10)['uint32'](_0x3b8f1f['requestId']),_0x531a81;},_0x3b100e['encodeDelimited']=function(_0x448e7f,_0x1543fa){return this['encode'](_0x448e7f,_0x1543fa)['ldelim']();},_0x3b100e['decode']=function(_0x454cdf,_0x3e8148,_0x40631c){_0x454cdf instanceof _0x10ed9a||(_0x454cdf=_0x10ed9a['create'](_0x454cdf));for(var _0x1ef293=void 0x0===_0x3e8148?_0x454cdf['len']:_0x454cdf['pos']+_0x3e8148,_0x24d39f=new _0x1d55ed['RevisionHistoryReconnectMessage']();_0x454cdf['pos']<_0x1ef293;){var _0x3c66d6=_0x454cdf['uint32']();if(_0x3c66d6===_0x40631c)break;switch(_0x3c66d6>>>0x3){case 0x1:_0x24d39f['documentId']=_0x454cdf['string']();break;case 0x2:_0x24d39f['requestId']=_0x454cdf['uint32']();break;default:_0x454cdf['skipType'](0x7&_0x3c66d6);}}return _0x24d39f;},_0x3b100e['decodeDelimited']=function(_0x1c9dcb){return _0x1c9dcb instanceof _0x10ed9a||(_0x1c9dcb=new _0x10ed9a(_0x1c9dcb)),this['decode'](_0x1c9dcb,_0x1c9dcb['uint32']());},_0x3b100e['verify']=function(_0x209668){return'object'!=typeof _0x209668||null===_0x209668?'object\x20expected':null!=_0x209668['documentId']&&_0x209668['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x209668['documentId'])?'documentId:\x20string\x20expected':null!=_0x209668['requestId']&&_0x209668['hasOwnProperty']('requestId')&&!_0x17c6dc['isInteger'](_0x209668['requestId'])?'requestId:\x20integer\x20expected':null;},_0x3b100e['fromObject']=function(_0x42e0fa){if(_0x42e0fa instanceof _0x1d55ed['RevisionHistoryReconnectMessage'])return _0x42e0fa;var _0xa57b6c=new _0x1d55ed['RevisionHistoryReconnectMessage']();return null!=_0x42e0fa['documentId']&&(_0xa57b6c['documentId']=String(_0x42e0fa['documentId'])),null!=_0x42e0fa['requestId']&&(_0xa57b6c['requestId']=_0x42e0fa['requestId']>>>0x0),_0xa57b6c;},_0x3b100e['toObject']=function(_0x25a22c,_0xed3945){_0xed3945||(_0xed3945={});var _0x3bbdc8={};return _0xed3945['defaults']&&(_0x3bbdc8['documentId']='',_0x3bbdc8['requestId']=0x0),null!=_0x25a22c['documentId']&&_0x25a22c['hasOwnProperty']('documentId')&&(_0x3bbdc8['documentId']=_0x25a22c['documentId']),null!=_0x25a22c['requestId']&&_0x25a22c['hasOwnProperty']('requestId')&&(_0x3bbdc8['requestId']=_0x25a22c['requestId']),_0x3bbdc8;},_0x3b100e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3b100e['getTypeUrl']=function(_0x42e728){return void 0x0===_0x42e728&&(_0x42e728='type.googleapis.com'),_0x42e728+'/RevisionHistoryReconnectMessage';},_0x3b100e;}()),_0x1d55ed['RevisionHistoryGetRevisionMessage']=(function(){function _0x104f17(_0x2bb47c){if(_0x2bb47c){for(var _0x35851f=Object['keys'](_0x2bb47c),_0x867c63=0x0;_0x867c63<_0x35851f['length'];++_0x867c63)null!=_0x2bb47c[_0x35851f[_0x867c63]]&&(this[_0x35851f[_0x867c63]]=_0x2bb47c[_0x35851f[_0x867c63]]);}}return _0x104f17['prototype']['documentId']='',_0x104f17['prototype']['revisionId']='',_0x104f17['create']=function(_0x50ccbf){return new _0x104f17(_0x50ccbf);},_0x104f17['encode']=function(_0x37a793,_0x5a8a09){return _0x5a8a09||(_0x5a8a09=_0x214d5c['create']()),null!=_0x37a793['documentId']&&Object['hasOwnProperty']['call'](_0x37a793,'documentId')&&_0x5a8a09['uint32'](0xa)['string'](_0x37a793['documentId']),null!=_0x37a793['revisionId']&&Object['hasOwnProperty']['call'](_0x37a793,'revisionId')&&_0x5a8a09['uint32'](0x12)['string'](_0x37a793['revisionId']),_0x5a8a09;},_0x104f17['encodeDelimited']=function(_0x34787c,_0x15f805){return this['encode'](_0x34787c,_0x15f805)['ldelim']();},_0x104f17['decode']=function(_0x50a43f,_0x1f4bfa,_0x1d2c21){_0x50a43f instanceof _0x10ed9a||(_0x50a43f=_0x10ed9a['create'](_0x50a43f));for(var _0x15a594=void 0x0===_0x1f4bfa?_0x50a43f['len']:_0x50a43f['pos']+_0x1f4bfa,_0x2ea154=new _0x1d55ed['RevisionHistoryGetRevisionMessage']();_0x50a43f['pos']<_0x15a594;){var _0x3c9639=_0x50a43f['uint32']();if(_0x3c9639===_0x1d2c21)break;switch(_0x3c9639>>>0x3){case 0x1:_0x2ea154['documentId']=_0x50a43f['string']();break;case 0x2:_0x2ea154['revisionId']=_0x50a43f['string']();break;default:_0x50a43f['skipType'](0x7&_0x3c9639);}}return _0x2ea154;},_0x104f17['decodeDelimited']=function(_0x2c5496){return _0x2c5496 instanceof _0x10ed9a||(_0x2c5496=new _0x10ed9a(_0x2c5496)),this['decode'](_0x2c5496,_0x2c5496['uint32']());},_0x104f17['verify']=function(_0x186d6b){return'object'!=typeof _0x186d6b||null===_0x186d6b?'object\x20expected':null!=_0x186d6b['documentId']&&_0x186d6b['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x186d6b['documentId'])?'documentId:\x20string\x20expected':null!=_0x186d6b['revisionId']&&_0x186d6b['hasOwnProperty']('revisionId')&&!_0x17c6dc['isString'](_0x186d6b['revisionId'])?'revisionId:\x20string\x20expected':null;},_0x104f17['fromObject']=function(_0x18a92d){if(_0x18a92d instanceof _0x1d55ed['RevisionHistoryGetRevisionMessage'])return _0x18a92d;var _0x20a370=new _0x1d55ed['RevisionHistoryGetRevisionMessage']();return null!=_0x18a92d['documentId']&&(_0x20a370['documentId']=String(_0x18a92d['documentId'])),null!=_0x18a92d['revisionId']&&(_0x20a370['revisionId']=String(_0x18a92d['revisionId'])),_0x20a370;},_0x104f17['toObject']=function(_0x1c9367,_0x37377b){_0x37377b||(_0x37377b={});var _0x21147d={};return _0x37377b['defaults']&&(_0x21147d['documentId']='',_0x21147d['revisionId']=''),null!=_0x1c9367['documentId']&&_0x1c9367['hasOwnProperty']('documentId')&&(_0x21147d['documentId']=_0x1c9367['documentId']),null!=_0x1c9367['revisionId']&&_0x1c9367['hasOwnProperty']('revisionId')&&(_0x21147d['revisionId']=_0x1c9367['revisionId']),_0x21147d;},_0x104f17['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x104f17['getTypeUrl']=function(_0x451551){return void 0x0===_0x451551&&(_0x451551='type.googleapis.com'),_0x451551+'/RevisionHistoryGetRevisionMessage';},_0x104f17;}()),_0x1d55ed['RevisionHistoryConnectMessage']=(function(){function _0x55972a(_0x39c3e9){if(_0x39c3e9){for(var _0x4ad5d3=Object['keys'](_0x39c3e9),_0x237502=0x0;_0x237502<_0x4ad5d3['length'];++_0x237502)null!=_0x39c3e9[_0x4ad5d3[_0x237502]]&&(this[_0x4ad5d3[_0x237502]]=_0x39c3e9[_0x4ad5d3[_0x237502]]);}}return _0x55972a['prototype']['documentId']='',_0x55972a['create']=function(_0x2067c7){return new _0x55972a(_0x2067c7);},_0x55972a['encode']=function(_0x25005a,_0x1b1b3f){return _0x1b1b3f||(_0x1b1b3f=_0x214d5c['create']()),null!=_0x25005a['documentId']&&Object['hasOwnProperty']['call'](_0x25005a,'documentId')&&_0x1b1b3f['uint32'](0xa)['string'](_0x25005a['documentId']),_0x1b1b3f;},_0x55972a['encodeDelimited']=function(_0x54b02d,_0x1ee5d0){return this['encode'](_0x54b02d,_0x1ee5d0)['ldelim']();},_0x55972a['decode']=function(_0x68af94,_0x3515dd,_0x54cc6e){_0x68af94 instanceof _0x10ed9a||(_0x68af94=_0x10ed9a['create'](_0x68af94));for(var _0x2adda1=void 0x0===_0x3515dd?_0x68af94['len']:_0x68af94['pos']+_0x3515dd,_0x2faf32=new _0x1d55ed['RevisionHistoryConnectMessage']();_0x68af94['pos']<_0x2adda1;){var _0x28c293=_0x68af94['uint32']();if(_0x28c293===_0x54cc6e)break;_0x28c293>>>0x3==0x1?_0x2faf32['documentId']=_0x68af94['string']():_0x68af94['skipType'](0x7&_0x28c293);}return _0x2faf32;},_0x55972a['decodeDelimited']=function(_0x450760){return _0x450760 instanceof _0x10ed9a||(_0x450760=new _0x10ed9a(_0x450760)),this['decode'](_0x450760,_0x450760['uint32']());},_0x55972a['verify']=function(_0x32951c){return'object'!=typeof _0x32951c||null===_0x32951c?'object\x20expected':null!=_0x32951c['documentId']&&_0x32951c['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x32951c['documentId'])?'documentId:\x20string\x20expected':null;},_0x55972a['fromObject']=function(_0x395485){if(_0x395485 instanceof _0x1d55ed['RevisionHistoryConnectMessage'])return _0x395485;var _0x39792d=new _0x1d55ed['RevisionHistoryConnectMessage']();return null!=_0x395485['documentId']&&(_0x39792d['documentId']=String(_0x395485['documentId'])),_0x39792d;},_0x55972a['toObject']=function(_0x404f59,_0x27d4e6){_0x27d4e6||(_0x27d4e6={});var _0x51421a={};return _0x27d4e6['defaults']&&(_0x51421a['documentId']=''),null!=_0x404f59['documentId']&&_0x404f59['hasOwnProperty']('documentId')&&(_0x51421a['documentId']=_0x404f59['documentId']),_0x51421a;},_0x55972a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x55972a['getTypeUrl']=function(_0x49088e){return void 0x0===_0x49088e&&(_0x49088e='type.googleapis.com'),_0x49088e+'/RevisionHistoryConnectMessage';},_0x55972a;}()),_0x1d55ed['RevisionDescriptor']=(function(){function _0x51ebd2(_0x5db6ec){if(_0x5db6ec){for(var _0x10453e=Object['keys'](_0x5db6ec),_0x414c56=0x0;_0x414c56<_0x10453e['length'];++_0x414c56)null!=_0x5db6ec[_0x10453e[_0x414c56]]&&(this[_0x10453e[_0x414c56]]=_0x5db6ec[_0x10453e[_0x414c56]]);}}return _0x51ebd2['prototype']['revisionId']='',_0x51ebd2['prototype']['name']='',_0x51ebd2['prototype']['creatorId']='',_0x51ebd2['prototype']['authorsIds']='',_0x51ebd2['prototype']['diffData']='',_0x51ebd2['prototype']['createdAt']='',_0x51ebd2['prototype']['attributes']='',_0x51ebd2['prototype']['toVersion']=0x0,_0x51ebd2['prototype']['fromVersion']=0x0,_0x51ebd2['prototype']['isEmptyCurrent']=!0x1,_0x51ebd2['create']=function(_0x2c211d){return new _0x51ebd2(_0x2c211d);},_0x51ebd2['encode']=function(_0x4b9e66,_0x88f488){return _0x88f488||(_0x88f488=_0x214d5c['create']()),null!=_0x4b9e66['revisionId']&&Object['hasOwnProperty']['call'](_0x4b9e66,'revisionId')&&_0x88f488['uint32'](0xa)['string'](_0x4b9e66['revisionId']),null!=_0x4b9e66['name']&&Object['hasOwnProperty']['call'](_0x4b9e66,'name')&&_0x88f488['uint32'](0x12)['string'](_0x4b9e66['name']),null!=_0x4b9e66['creatorId']&&Object['hasOwnProperty']['call'](_0x4b9e66,'creatorId')&&_0x88f488['uint32'](0x1a)['string'](_0x4b9e66['creatorId']),null!=_0x4b9e66['authorsIds']&&Object['hasOwnProperty']['call'](_0x4b9e66,'authorsIds')&&_0x88f488['uint32'](0x22)['string'](_0x4b9e66['authorsIds']),null!=_0x4b9e66['diffData']&&Object['hasOwnProperty']['call'](_0x4b9e66,'diffData')&&_0x88f488['uint32'](0x2a)['string'](_0x4b9e66['diffData']),null!=_0x4b9e66['createdAt']&&Object['hasOwnProperty']['call'](_0x4b9e66,'createdAt')&&_0x88f488['uint32'](0x32)['string'](_0x4b9e66['createdAt']),null!=_0x4b9e66['attributes']&&Object['hasOwnProperty']['call'](_0x4b9e66,'attributes')&&_0x88f488['uint32'](0x3a)['string'](_0x4b9e66['attributes']),null!=_0x4b9e66['toVersion']&&Object['hasOwnProperty']['call'](_0x4b9e66,'toVersion')&&_0x88f488['uint32'](0x40)['uint32'](_0x4b9e66['toVersion']),null!=_0x4b9e66['fromVersion']&&Object['hasOwnProperty']['call'](_0x4b9e66,'fromVersion')&&_0x88f488['uint32'](0x48)['uint32'](_0x4b9e66['fromVersion']),null!=_0x4b9e66['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x4b9e66,'isEmptyCurrent')&&_0x88f488['uint32'](0x50)['bool'](_0x4b9e66['isEmptyCurrent']),_0x88f488;},_0x51ebd2['encodeDelimited']=function(_0x2f1313,_0x300b90){return this['encode'](_0x2f1313,_0x300b90)['ldelim']();},_0x51ebd2['decode']=function(_0x27b7a7,_0xccd3e6,_0x5312b3){_0x27b7a7 instanceof _0x10ed9a||(_0x27b7a7=_0x10ed9a['create'](_0x27b7a7));for(var _0x431aeb=void 0x0===_0xccd3e6?_0x27b7a7['len']:_0x27b7a7['pos']+_0xccd3e6,_0x29d44c=new _0x1d55ed['RevisionDescriptor']();_0x27b7a7['pos']<_0x431aeb;){var _0x3b3856=_0x27b7a7['uint32']();if(_0x3b3856===_0x5312b3)break;switch(_0x3b3856>>>0x3){case 0x1:_0x29d44c['revisionId']=_0x27b7a7['string']();break;case 0x2:_0x29d44c['name']=_0x27b7a7['string']();break;case 0x3:_0x29d44c['creatorId']=_0x27b7a7['string']();break;case 0x4:_0x29d44c['authorsIds']=_0x27b7a7['string']();break;case 0x5:_0x29d44c['diffData']=_0x27b7a7['string']();break;case 0x6:_0x29d44c['createdAt']=_0x27b7a7['string']();break;case 0x7:_0x29d44c['attributes']=_0x27b7a7['string']();break;case 0x8:_0x29d44c['toVersion']=_0x27b7a7['uint32']();break;case 0x9:_0x29d44c['fromVersion']=_0x27b7a7['uint32']();break;case 0xa:_0x29d44c['isEmptyCurrent']=_0x27b7a7['bool']();break;default:_0x27b7a7['skipType'](0x7&_0x3b3856);}}return _0x29d44c;},_0x51ebd2['decodeDelimited']=function(_0x38c148){return _0x38c148 instanceof _0x10ed9a||(_0x38c148=new _0x10ed9a(_0x38c148)),this['decode'](_0x38c148,_0x38c148['uint32']());},_0x51ebd2['verify']=function(_0x28395a){return'object'!=typeof _0x28395a||null===_0x28395a?'object\x20expected':null!=_0x28395a['revisionId']&&_0x28395a['hasOwnProperty']('revisionId')&&!_0x17c6dc['isString'](_0x28395a['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x28395a['name']&&_0x28395a['hasOwnProperty']('name')&&!_0x17c6dc['isString'](_0x28395a['name'])?'name:\x20string\x20expected':null!=_0x28395a['creatorId']&&_0x28395a['hasOwnProperty']('creatorId')&&!_0x17c6dc['isString'](_0x28395a['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x28395a['authorsIds']&&_0x28395a['hasOwnProperty']('authorsIds')&&!_0x17c6dc['isString'](_0x28395a['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x28395a['diffData']&&_0x28395a['hasOwnProperty']('diffData')&&!_0x17c6dc['isString'](_0x28395a['diffData'])?'diffData:\x20string\x20expected':null!=_0x28395a['createdAt']&&_0x28395a['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x28395a['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x28395a['attributes']&&_0x28395a['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x28395a['attributes'])?'attributes:\x20string\x20expected':null!=_0x28395a['toVersion']&&_0x28395a['hasOwnProperty']('toVersion')&&!_0x17c6dc['isInteger'](_0x28395a['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x28395a['fromVersion']&&_0x28395a['hasOwnProperty']('fromVersion')&&!_0x17c6dc['isInteger'](_0x28395a['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x28395a['isEmptyCurrent']&&_0x28395a['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x28395a['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0x51ebd2['fromObject']=function(_0x108c79){if(_0x108c79 instanceof _0x1d55ed['RevisionDescriptor'])return _0x108c79;var _0x27e6f3=new _0x1d55ed['RevisionDescriptor']();return null!=_0x108c79['revisionId']&&(_0x27e6f3['revisionId']=String(_0x108c79['revisionId'])),null!=_0x108c79['name']&&(_0x27e6f3['name']=String(_0x108c79['name'])),null!=_0x108c79['creatorId']&&(_0x27e6f3['creatorId']=String(_0x108c79['creatorId'])),null!=_0x108c79['authorsIds']&&(_0x27e6f3['authorsIds']=String(_0x108c79['authorsIds'])),null!=_0x108c79['diffData']&&(_0x27e6f3['diffData']=String(_0x108c79['diffData'])),null!=_0x108c79['createdAt']&&(_0x27e6f3['createdAt']=String(_0x108c79['createdAt'])),null!=_0x108c79['attributes']&&(_0x27e6f3['attributes']=String(_0x108c79['attributes'])),null!=_0x108c79['toVersion']&&(_0x27e6f3['toVersion']=_0x108c79['toVersion']>>>0x0),null!=_0x108c79['fromVersion']&&(_0x27e6f3['fromVersion']=_0x108c79['fromVersion']>>>0x0),null!=_0x108c79['isEmptyCurrent']&&(_0x27e6f3['isEmptyCurrent']=Boolean(_0x108c79['isEmptyCurrent'])),_0x27e6f3;},_0x51ebd2['toObject']=function(_0x3038a6,_0x461a7a){_0x461a7a||(_0x461a7a={});var _0x496e70={};return _0x461a7a['defaults']&&(_0x496e70['revisionId']='',_0x496e70['name']='',_0x496e70['creatorId']='',_0x496e70['authorsIds']='',_0x496e70['diffData']='',_0x496e70['createdAt']='',_0x496e70['attributes']='',_0x496e70['toVersion']=0x0,_0x496e70['fromVersion']=0x0,_0x496e70['isEmptyCurrent']=!0x1),null!=_0x3038a6['revisionId']&&_0x3038a6['hasOwnProperty']('revisionId')&&(_0x496e70['revisionId']=_0x3038a6['revisionId']),null!=_0x3038a6['name']&&_0x3038a6['hasOwnProperty']('name')&&(_0x496e70['name']=_0x3038a6['name']),null!=_0x3038a6['creatorId']&&_0x3038a6['hasOwnProperty']('creatorId')&&(_0x496e70['creatorId']=_0x3038a6['creatorId']),null!=_0x3038a6['authorsIds']&&_0x3038a6['hasOwnProperty']('authorsIds')&&(_0x496e70['authorsIds']=_0x3038a6['authorsIds']),null!=_0x3038a6['diffData']&&_0x3038a6['hasOwnProperty']('diffData')&&(_0x496e70['diffData']=_0x3038a6['diffData']),null!=_0x3038a6['createdAt']&&_0x3038a6['hasOwnProperty']('createdAt')&&(_0x496e70['createdAt']=_0x3038a6['createdAt']),null!=_0x3038a6['attributes']&&_0x3038a6['hasOwnProperty']('attributes')&&(_0x496e70['attributes']=_0x3038a6['attributes']),null!=_0x3038a6['toVersion']&&_0x3038a6['hasOwnProperty']('toVersion')&&(_0x496e70['toVersion']=_0x3038a6['toVersion']),null!=_0x3038a6['fromVersion']&&_0x3038a6['hasOwnProperty']('fromVersion')&&(_0x496e70['fromVersion']=_0x3038a6['fromVersion']),null!=_0x3038a6['isEmptyCurrent']&&_0x3038a6['hasOwnProperty']('isEmptyCurrent')&&(_0x496e70['isEmptyCurrent']=_0x3038a6['isEmptyCurrent']),_0x496e70;},_0x51ebd2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x51ebd2['getTypeUrl']=function(_0x2c9af){return void 0x0===_0x2c9af&&(_0x2c9af='type.googleapis.com'),_0x2c9af+'/RevisionDescriptor';},_0x51ebd2;}()),_0x1d55ed['IsEditorBundleUploadedResponse']=(function(){function _0x555986(_0x474d6a){if(_0x474d6a){for(var _0x2a5062=Object['keys'](_0x474d6a),_0x1829cb=0x0;_0x1829cb<_0x2a5062['length'];++_0x1829cb)null!=_0x474d6a[_0x2a5062[_0x1829cb]]&&(this[_0x2a5062[_0x1829cb]]=_0x474d6a[_0x2a5062[_0x1829cb]]);}}return _0x555986['prototype']['isUploaded']=!0x1,_0x555986['create']=function(_0x548f6d){return new _0x555986(_0x548f6d);},_0x555986['encode']=function(_0x3ad287,_0x1104ac){return _0x1104ac||(_0x1104ac=_0x214d5c['create']()),null!=_0x3ad287['isUploaded']&&Object['hasOwnProperty']['call'](_0x3ad287,'isUploaded')&&_0x1104ac['uint32'](0x8)['bool'](_0x3ad287['isUploaded']),_0x1104ac;},_0x555986['encodeDelimited']=function(_0x2002cc,_0x5a03c2){return this['encode'](_0x2002cc,_0x5a03c2)['ldelim']();},_0x555986['decode']=function(_0x58afae,_0x25745c,_0x53657b){_0x58afae instanceof _0x10ed9a||(_0x58afae=_0x10ed9a['create'](_0x58afae));for(var _0x43b932=void 0x0===_0x25745c?_0x58afae['len']:_0x58afae['pos']+_0x25745c,_0x548e29=new _0x1d55ed['IsEditorBundleUploadedResponse']();_0x58afae['pos']<_0x43b932;){var _0x17f4ed=_0x58afae['uint32']();if(_0x17f4ed===_0x53657b)break;_0x17f4ed>>>0x3==0x1?_0x548e29['isUploaded']=_0x58afae['bool']():_0x58afae['skipType'](0x7&_0x17f4ed);}return _0x548e29;},_0x555986['decodeDelimited']=function(_0x305ac5){return _0x305ac5 instanceof _0x10ed9a||(_0x305ac5=new _0x10ed9a(_0x305ac5)),this['decode'](_0x305ac5,_0x305ac5['uint32']());},_0x555986['verify']=function(_0x1acc3d){return'object'!=typeof _0x1acc3d||null===_0x1acc3d?'object\x20expected':null!=_0x1acc3d['isUploaded']&&_0x1acc3d['hasOwnProperty']('isUploaded')&&'boolean'!=typeof _0x1acc3d['isUploaded']?'isUploaded:\x20boolean\x20expected':null;},_0x555986['fromObject']=function(_0x21ce7d){if(_0x21ce7d instanceof _0x1d55ed['IsEditorBundleUploadedResponse'])return _0x21ce7d;var _0x305e5e=new _0x1d55ed['IsEditorBundleUploadedResponse']();return null!=_0x21ce7d['isUploaded']&&(_0x305e5e['isUploaded']=Boolean(_0x21ce7d['isUploaded'])),_0x305e5e;},_0x555986['toObject']=function(_0x80dae1,_0xe1388c){_0xe1388c||(_0xe1388c={});var _0x5c33c8={};return _0xe1388c['defaults']&&(_0x5c33c8['isUploaded']=!0x1),null!=_0x80dae1['isUploaded']&&_0x80dae1['hasOwnProperty']('isUploaded')&&(_0x5c33c8['isUploaded']=_0x80dae1['isUploaded']),_0x5c33c8;},_0x555986['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x555986['getTypeUrl']=function(_0x45263b){return void 0x0===_0x45263b&&(_0x45263b='type.googleapis.com'),_0x45263b+'/IsEditorBundleUploadedResponse';},_0x555986;}()),_0x1d55ed['IsEditorBundleUploadedMessage']=(function(){function _0x2cb084(_0xd907e6){if(_0xd907e6){for(var _0x9ee7d8=Object['keys'](_0xd907e6),_0x1be18a=0x0;_0x1be18a<_0x9ee7d8['length'];++_0x1be18a)null!=_0xd907e6[_0x9ee7d8[_0x1be18a]]&&(this[_0x9ee7d8[_0x1be18a]]=_0xd907e6[_0x9ee7d8[_0x1be18a]]);}}return _0x2cb084['prototype']['bundleVersion']='',_0x2cb084['create']=function(_0x20879f){return new _0x2cb084(_0x20879f);},_0x2cb084['encode']=function(_0x145c92,_0x2d4a77){return _0x2d4a77||(_0x2d4a77=_0x214d5c['create']()),null!=_0x145c92['bundleVersion']&&Object['hasOwnProperty']['call'](_0x145c92,'bundleVersion')&&_0x2d4a77['uint32'](0xa)['string'](_0x145c92['bundleVersion']),_0x2d4a77;},_0x2cb084['encodeDelimited']=function(_0x22cfff,_0x144b4c){return this['encode'](_0x22cfff,_0x144b4c)['ldelim']();},_0x2cb084['decode']=function(_0x17c683,_0x3c9c41,_0x219d2d){_0x17c683 instanceof _0x10ed9a||(_0x17c683=_0x10ed9a['create'](_0x17c683));for(var _0xe71695=void 0x0===_0x3c9c41?_0x17c683['len']:_0x17c683['pos']+_0x3c9c41,_0x2ed702=new _0x1d55ed['IsEditorBundleUploadedMessage']();_0x17c683['pos']<_0xe71695;){var _0x36cdd3=_0x17c683['uint32']();if(_0x36cdd3===_0x219d2d)break;_0x36cdd3>>>0x3==0x1?_0x2ed702['bundleVersion']=_0x17c683['string']():_0x17c683['skipType'](0x7&_0x36cdd3);}return _0x2ed702;},_0x2cb084['decodeDelimited']=function(_0x2d3e40){return _0x2d3e40 instanceof _0x10ed9a||(_0x2d3e40=new _0x10ed9a(_0x2d3e40)),this['decode'](_0x2d3e40,_0x2d3e40['uint32']());},_0x2cb084['verify']=function(_0xdfee7b){return'object'!=typeof _0xdfee7b||null===_0xdfee7b?'object\x20expected':null!=_0xdfee7b['bundleVersion']&&_0xdfee7b['hasOwnProperty']('bundleVersion')&&!_0x17c6dc['isString'](_0xdfee7b['bundleVersion'])?'bundleVersion:\x20string\x20expected':null;},_0x2cb084['fromObject']=function(_0x5bffc6){if(_0x5bffc6 instanceof _0x1d55ed['IsEditorBundleUploadedMessage'])return _0x5bffc6;var _0x4de05f=new _0x1d55ed['IsEditorBundleUploadedMessage']();return null!=_0x5bffc6['bundleVersion']&&(_0x4de05f['bundleVersion']=String(_0x5bffc6['bundleVersion'])),_0x4de05f;},_0x2cb084['toObject']=function(_0x6b2ac,_0x198d95){_0x198d95||(_0x198d95={});var _0x2bd703={};return _0x198d95['defaults']&&(_0x2bd703['bundleVersion']=''),null!=_0x6b2ac['bundleVersion']&&_0x6b2ac['hasOwnProperty']('bundleVersion')&&(_0x2bd703['bundleVersion']=_0x6b2ac['bundleVersion']),_0x2bd703;},_0x2cb084['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2cb084['getTypeUrl']=function(_0x41b759){return void 0x0===_0x41b759&&(_0x41b759='type.googleapis.com'),_0x41b759+'/IsEditorBundleUploadedMessage';},_0x2cb084;}()),_0x1d55ed['KeyValueDescriptor']=(function(){function _0x44cc9b(_0x4a7340){if(_0x4a7340){for(var _0x107b1d=Object['keys'](_0x4a7340),_0x957783=0x0;_0x957783<_0x107b1d['length'];++_0x957783)null!=_0x4a7340[_0x107b1d[_0x957783]]&&(this[_0x107b1d[_0x957783]]=_0x4a7340[_0x107b1d[_0x957783]]);}}return _0x44cc9b['prototype']['key']='',_0x44cc9b['prototype']['value']='',_0x44cc9b['create']=function(_0x4b74d0){return new _0x44cc9b(_0x4b74d0);},_0x44cc9b['encode']=function(_0x14e706,_0x124139){return _0x124139||(_0x124139=_0x214d5c['create']()),null!=_0x14e706['key']&&Object['hasOwnProperty']['call'](_0x14e706,'key')&&_0x124139['uint32'](0xa)['string'](_0x14e706['key']),null!=_0x14e706['value']&&Object['hasOwnProperty']['call'](_0x14e706,'value')&&_0x124139['uint32'](0x12)['string'](_0x14e706['value']),_0x124139;},_0x44cc9b['encodeDelimited']=function(_0x326b2c,_0x1399af){return this['encode'](_0x326b2c,_0x1399af)['ldelim']();},_0x44cc9b['decode']=function(_0x384d3f,_0x14ff89,_0x1553f9){_0x384d3f instanceof _0x10ed9a||(_0x384d3f=_0x10ed9a['create'](_0x384d3f));for(var _0x387f34=void 0x0===_0x14ff89?_0x384d3f['len']:_0x384d3f['pos']+_0x14ff89,_0x7b69fa=new _0x1d55ed['KeyValueDescriptor']();_0x384d3f['pos']<_0x387f34;){var _0x3a8cee=_0x384d3f['uint32']();if(_0x3a8cee===_0x1553f9)break;switch(_0x3a8cee>>>0x3){case 0x1:_0x7b69fa['key']=_0x384d3f['string']();break;case 0x2:_0x7b69fa['value']=_0x384d3f['string']();break;default:_0x384d3f['skipType'](0x7&_0x3a8cee);}}return _0x7b69fa;},_0x44cc9b['decodeDelimited']=function(_0x230b09){return _0x230b09 instanceof _0x10ed9a||(_0x230b09=new _0x10ed9a(_0x230b09)),this['decode'](_0x230b09,_0x230b09['uint32']());},_0x44cc9b['verify']=function(_0x595d76){return'object'!=typeof _0x595d76||null===_0x595d76?'object\x20expected':null!=_0x595d76['key']&&_0x595d76['hasOwnProperty']('key')&&!_0x17c6dc['isString'](_0x595d76['key'])?'key:\x20string\x20expected':null!=_0x595d76['value']&&_0x595d76['hasOwnProperty']('value')&&!_0x17c6dc['isString'](_0x595d76['value'])?'value:\x20string\x20expected':null;},_0x44cc9b['fromObject']=function(_0x44e312){if(_0x44e312 instanceof _0x1d55ed['KeyValueDescriptor'])return _0x44e312;var _0xa22130=new _0x1d55ed['KeyValueDescriptor']();return null!=_0x44e312['key']&&(_0xa22130['key']=String(_0x44e312['key'])),null!=_0x44e312['value']&&(_0xa22130['value']=String(_0x44e312['value'])),_0xa22130;},_0x44cc9b['toObject']=function(_0x35a58a,_0x9f00be){_0x9f00be||(_0x9f00be={});var _0x6b4e5={};return _0x9f00be['defaults']&&(_0x6b4e5['key']='',_0x6b4e5['value']=''),null!=_0x35a58a['key']&&_0x35a58a['hasOwnProperty']('key')&&(_0x6b4e5['key']=_0x35a58a['key']),null!=_0x35a58a['value']&&_0x35a58a['hasOwnProperty']('value')&&(_0x6b4e5['value']=_0x35a58a['value']),_0x6b4e5;},_0x44cc9b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x44cc9b['getTypeUrl']=function(_0x3313ae){return void 0x0===_0x3313ae&&(_0x3313ae='type.googleapis.com'),_0x3313ae+'/KeyValueDescriptor';},_0x44cc9b;}()),_0x1d55ed['CommentsV2GetDocumentThreadsResponse']=(function(){function _0x683539(_0x20bf10){if(this['threads']=[],this['threadsV2']=[],_0x20bf10){for(var _0x9025b7=Object['keys'](_0x20bf10),_0x2ddd34=0x0;_0x2ddd34<_0x9025b7['length'];++_0x2ddd34)null!=_0x20bf10[_0x9025b7[_0x2ddd34]]&&(this[_0x9025b7[_0x2ddd34]]=_0x20bf10[_0x9025b7[_0x2ddd34]]);}}return _0x683539['prototype']['threads']=_0x17c6dc['emptyArray'],_0x683539['prototype']['threadsV2']=_0x17c6dc['emptyArray'],_0x683539['create']=function(_0x435da2){return new _0x683539(_0x435da2);},_0x683539['encode']=function(_0x2934f8,_0x249375){if(_0x249375||(_0x249375=_0x214d5c['create']()),null!=_0x2934f8['threads']&&_0x2934f8['threads']['length']){for(var _0x3f9b76=0x0;_0x3f9b76<_0x2934f8['threads']['length'];++_0x3f9b76)_0x249375['uint32'](0xa)['string'](_0x2934f8['threads'][_0x3f9b76]);}if(null!=_0x2934f8['threadsV2']&&_0x2934f8['threadsV2']['length']){for(_0x3f9b76=0x0;_0x3f9b76<_0x2934f8['threadsV2']['length'];++_0x3f9b76)_0x1d55ed['CommentsThreadDescriptor']['encode'](_0x2934f8['threadsV2'][_0x3f9b76],_0x249375['uint32'](0x12)['fork']())['ldelim']();}return _0x249375;},_0x683539['encodeDelimited']=function(_0x19320a,_0x4010d6){return this['encode'](_0x19320a,_0x4010d6)['ldelim']();},_0x683539['decode']=function(_0x86bc4e,_0x35a261,_0x3070e6){_0x86bc4e instanceof _0x10ed9a||(_0x86bc4e=_0x10ed9a['create'](_0x86bc4e));for(var _0x21b758=void 0x0===_0x35a261?_0x86bc4e['len']:_0x86bc4e['pos']+_0x35a261,_0x9c7575=new _0x1d55ed['CommentsV2GetDocumentThreadsResponse']();_0x86bc4e['pos']<_0x21b758;){var _0x16898d=_0x86bc4e['uint32']();if(_0x16898d===_0x3070e6)break;switch(_0x16898d>>>0x3){case 0x1:_0x9c7575['threads']&&_0x9c7575['threads']['length']||(_0x9c7575['threads']=[]),_0x9c7575['threads']['push'](_0x86bc4e['string']());break;case 0x2:_0x9c7575['threadsV2']&&_0x9c7575['threadsV2']['length']||(_0x9c7575['threadsV2']=[]),_0x9c7575['threadsV2']['push'](_0x1d55ed['CommentsThreadDescriptor']['decode'](_0x86bc4e,_0x86bc4e['uint32']()));break;default:_0x86bc4e['skipType'](0x7&_0x16898d);}}return _0x9c7575;},_0x683539['decodeDelimited']=function(_0x1b7f9b){return _0x1b7f9b instanceof _0x10ed9a||(_0x1b7f9b=new _0x10ed9a(_0x1b7f9b)),this['decode'](_0x1b7f9b,_0x1b7f9b['uint32']());},_0x683539['verify']=function(_0x57a8b0){if('object'!=typeof _0x57a8b0||null===_0x57a8b0)return'object\x20expected';if(null!=_0x57a8b0['threads']&&_0x57a8b0['hasOwnProperty']('threads')){if(!Array['isArray'](_0x57a8b0['threads']))return'threads:\x20array\x20expected';for(var _0x40a7dd=0x0;_0x40a7dd<_0x57a8b0['threads']['length'];++_0x40a7dd)if(!_0x17c6dc['isString'](_0x57a8b0['threads'][_0x40a7dd]))return'threads:\x20string[]\x20expected';}if(null!=_0x57a8b0['threadsV2']&&_0x57a8b0['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x57a8b0['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x40a7dd=0x0;_0x40a7dd<_0x57a8b0['threadsV2']['length'];++_0x40a7dd){var _0x10e18a=_0x1d55ed['CommentsThreadDescriptor']['verify'](_0x57a8b0['threadsV2'][_0x40a7dd]);if(_0x10e18a)return'threadsV2.'+_0x10e18a;}}return null;},_0x683539['fromObject']=function(_0x1c2183){if(_0x1c2183 instanceof _0x1d55ed['CommentsV2GetDocumentThreadsResponse'])return _0x1c2183;var _0x48ce3e=new _0x1d55ed['CommentsV2GetDocumentThreadsResponse']();if(_0x1c2183['threads']){if(!Array['isArray'](_0x1c2183['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x48ce3e['threads']=[];for(var _0x2eb628=0x0;_0x2eb628<_0x1c2183['threads']['length'];++_0x2eb628)_0x48ce3e['threads'][_0x2eb628]=String(_0x1c2183['threads'][_0x2eb628]);}if(_0x1c2183['threadsV2']){if(!Array['isArray'](_0x1c2183['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');for(_0x48ce3e['threadsV2']=[],_0x2eb628=0x0;_0x2eb628<_0x1c2183['threadsV2']['length'];++_0x2eb628){if('object'!=typeof _0x1c2183['threadsV2'][_0x2eb628])throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x48ce3e['threadsV2'][_0x2eb628]=_0x1d55ed['CommentsThreadDescriptor']['fromObject'](_0x1c2183['threadsV2'][_0x2eb628]);}}return _0x48ce3e;},_0x683539['toObject']=function(_0x1a25a0,_0x1c1dcc){_0x1c1dcc||(_0x1c1dcc={});var _0x2b1a71={};if((_0x1c1dcc['arrays']||_0x1c1dcc['defaults'])&&(_0x2b1a71['threads']=[],_0x2b1a71['threadsV2']=[]),_0x1a25a0['threads']&&_0x1a25a0['threads']['length']){_0x2b1a71['threads']=[];for(var _0x185b53=0x0;_0x185b53<_0x1a25a0['threads']['length'];++_0x185b53)_0x2b1a71['threads'][_0x185b53]=_0x1a25a0['threads'][_0x185b53];}if(_0x1a25a0['threadsV2']&&_0x1a25a0['threadsV2']['length']){for(_0x2b1a71['threadsV2']=[],_0x185b53=0x0;_0x185b53<_0x1a25a0['threadsV2']['length'];++_0x185b53)_0x2b1a71['threadsV2'][_0x185b53]=_0x1d55ed['CommentsThreadDescriptor']['toObject'](_0x1a25a0['threadsV2'][_0x185b53],_0x1c1dcc);}return _0x2b1a71;},_0x683539['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x683539['getTypeUrl']=function(_0x26b7bf){return void 0x0===_0x26b7bf&&(_0x26b7bf='type.googleapis.com'),_0x26b7bf+'/CommentsV2GetDocumentThreadsResponse';},_0x683539;}()),_0x1d55ed['CommentsV2GetCommentThreadResponse']=(function(){function _0x3f950a(_0x296c6d){if(this['comments']=[],this['commentsV2']=[],_0x296c6d){for(var _0x5dbe10=Object['keys'](_0x296c6d),_0x1d641a=0x0;_0x1d641a<_0x5dbe10['length'];++_0x1d641a)null!=_0x296c6d[_0x5dbe10[_0x1d641a]]&&(this[_0x5dbe10[_0x1d641a]]=_0x296c6d[_0x5dbe10[_0x1d641a]]);}}return _0x3f950a['prototype']['commentThreadId']='',_0x3f950a['prototype']['comments']=_0x17c6dc['emptyArray'],_0x3f950a['prototype']['commentsV2']=_0x17c6dc['emptyArray'],_0x3f950a['prototype']['resolvedAt']='',_0x3f950a['prototype']['resolvedBy']='',_0x3f950a['prototype']['context']='',_0x3f950a['prototype']['createdAt']='',_0x3f950a['prototype']['deletedAt']='',_0x3f950a['prototype']['attributes']='',_0x3f950a['prototype']['unlinkedAt']='',_0x3f950a['create']=function(_0x46c41d){return new _0x3f950a(_0x46c41d);},_0x3f950a['encode']=function(_0x52b864,_0x54c869){if(_0x54c869||(_0x54c869=_0x214d5c['create']()),null!=_0x52b864['commentThreadId']&&Object['hasOwnProperty']['call'](_0x52b864,'commentThreadId')&&_0x54c869['uint32'](0xa)['string'](_0x52b864['commentThreadId']),null!=_0x52b864['comments']&&_0x52b864['comments']['length']){for(var _0x6e4df6=0x0;_0x6e4df6<_0x52b864['comments']['length'];++_0x6e4df6)_0x54c869['uint32'](0x12)['string'](_0x52b864['comments'][_0x6e4df6]);}if(null!=_0x52b864['commentsV2']&&_0x52b864['commentsV2']['length']){for(_0x6e4df6=0x0;_0x6e4df6<_0x52b864['commentsV2']['length'];++_0x6e4df6)_0x1d55ed['CommentDescriptor']['encode'](_0x52b864['commentsV2'][_0x6e4df6],_0x54c869['uint32'](0x1a)['fork']())['ldelim']();}return null!=_0x52b864['resolvedAt']&&Object['hasOwnProperty']['call'](_0x52b864,'resolvedAt')&&_0x54c869['uint32'](0x22)['string'](_0x52b864['resolvedAt']),null!=_0x52b864['resolvedBy']&&Object['hasOwnProperty']['call'](_0x52b864,'resolvedBy')&&_0x54c869['uint32'](0x2a)['string'](_0x52b864['resolvedBy']),null!=_0x52b864['context']&&Object['hasOwnProperty']['call'](_0x52b864,'context')&&_0x54c869['uint32'](0x32)['string'](_0x52b864['context']),null!=_0x52b864['createdAt']&&Object['hasOwnProperty']['call'](_0x52b864,'createdAt')&&_0x54c869['uint32'](0x3a)['string'](_0x52b864['createdAt']),null!=_0x52b864['deletedAt']&&Object['hasOwnProperty']['call'](_0x52b864,'deletedAt')&&_0x54c869['uint32'](0x42)['string'](_0x52b864['deletedAt']),null!=_0x52b864['attributes']&&Object['hasOwnProperty']['call'](_0x52b864,'attributes')&&_0x54c869['uint32'](0x4a)['string'](_0x52b864['attributes']),null!=_0x52b864['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x52b864,'unlinkedAt')&&_0x54c869['uint32'](0x52)['string'](_0x52b864['unlinkedAt']),_0x54c869;},_0x3f950a['encodeDelimited']=function(_0xcbc68e,_0x1f6924){return this['encode'](_0xcbc68e,_0x1f6924)['ldelim']();},_0x3f950a['decode']=function(_0x271ab9,_0x177b71,_0x23a769){_0x271ab9 instanceof _0x10ed9a||(_0x271ab9=_0x10ed9a['create'](_0x271ab9));for(var _0x275d49=void 0x0===_0x177b71?_0x271ab9['len']:_0x271ab9['pos']+_0x177b71,_0x4fbe76=new _0x1d55ed['CommentsV2GetCommentThreadResponse']();_0x271ab9['pos']<_0x275d49;){var _0x461ffe=_0x271ab9['uint32']();if(_0x461ffe===_0x23a769)break;switch(_0x461ffe>>>0x3){case 0x1:_0x4fbe76['commentThreadId']=_0x271ab9['string']();break;case 0x2:_0x4fbe76['comments']&&_0x4fbe76['comments']['length']||(_0x4fbe76['comments']=[]),_0x4fbe76['comments']['push'](_0x271ab9['string']());break;case 0x3:_0x4fbe76['commentsV2']&&_0x4fbe76['commentsV2']['length']||(_0x4fbe76['commentsV2']=[]),_0x4fbe76['commentsV2']['push'](_0x1d55ed['CommentDescriptor']['decode'](_0x271ab9,_0x271ab9['uint32']()));break;case 0x4:_0x4fbe76['resolvedAt']=_0x271ab9['string']();break;case 0x5:_0x4fbe76['resolvedBy']=_0x271ab9['string']();break;case 0x6:_0x4fbe76['context']=_0x271ab9['string']();break;case 0x7:_0x4fbe76['createdAt']=_0x271ab9['string']();break;case 0x8:_0x4fbe76['deletedAt']=_0x271ab9['string']();break;case 0x9:_0x4fbe76['attributes']=_0x271ab9['string']();break;case 0xa:_0x4fbe76['unlinkedAt']=_0x271ab9['string']();break;default:_0x271ab9['skipType'](0x7&_0x461ffe);}}return _0x4fbe76;},_0x3f950a['decodeDelimited']=function(_0x3d4233){return _0x3d4233 instanceof _0x10ed9a||(_0x3d4233=new _0x10ed9a(_0x3d4233)),this['decode'](_0x3d4233,_0x3d4233['uint32']());},_0x3f950a['verify']=function(_0x35632e){if('object'!=typeof _0x35632e||null===_0x35632e)return'object\x20expected';if(null!=_0x35632e['commentThreadId']&&_0x35632e['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x35632e['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x35632e['comments']&&_0x35632e['hasOwnProperty']('comments')){if(!Array['isArray'](_0x35632e['comments']))return'comments:\x20array\x20expected';for(var _0x4c5632=0x0;_0x4c5632<_0x35632e['comments']['length'];++_0x4c5632)if(!_0x17c6dc['isString'](_0x35632e['comments'][_0x4c5632]))return'comments:\x20string[]\x20expected';}if(null!=_0x35632e['commentsV2']&&_0x35632e['hasOwnProperty']('commentsV2')){if(!Array['isArray'](_0x35632e['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0x4c5632=0x0;_0x4c5632<_0x35632e['commentsV2']['length'];++_0x4c5632){var _0x659467=_0x1d55ed['CommentDescriptor']['verify'](_0x35632e['commentsV2'][_0x4c5632]);if(_0x659467)return'commentsV2.'+_0x659467;}}return null!=_0x35632e['resolvedAt']&&_0x35632e['hasOwnProperty']('resolvedAt')&&!_0x17c6dc['isString'](_0x35632e['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x35632e['resolvedBy']&&_0x35632e['hasOwnProperty']('resolvedBy')&&!_0x17c6dc['isString'](_0x35632e['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x35632e['context']&&_0x35632e['hasOwnProperty']('context')&&!_0x17c6dc['isString'](_0x35632e['context'])?'context:\x20string\x20expected':null!=_0x35632e['createdAt']&&_0x35632e['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x35632e['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x35632e['deletedAt']&&_0x35632e['hasOwnProperty']('deletedAt')&&!_0x17c6dc['isString'](_0x35632e['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x35632e['attributes']&&_0x35632e['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x35632e['attributes'])?'attributes:\x20string\x20expected':null!=_0x35632e['unlinkedAt']&&_0x35632e['hasOwnProperty']('unlinkedAt')&&!_0x17c6dc['isString'](_0x35632e['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x3f950a['fromObject']=function(_0x510a20){if(_0x510a20 instanceof _0x1d55ed['CommentsV2GetCommentThreadResponse'])return _0x510a20;var _0x23f3d3=new _0x1d55ed['CommentsV2GetCommentThreadResponse']();if(null!=_0x510a20['commentThreadId']&&(_0x23f3d3['commentThreadId']=String(_0x510a20['commentThreadId'])),_0x510a20['comments']){if(!Array['isArray'](_0x510a20['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x23f3d3['comments']=[];for(var _0xa192b2=0x0;_0xa192b2<_0x510a20['comments']['length'];++_0xa192b2)_0x23f3d3['comments'][_0xa192b2]=String(_0x510a20['comments'][_0xa192b2]);}if(_0x510a20['commentsV2']){if(!Array['isArray'](_0x510a20['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');for(_0x23f3d3['commentsV2']=[],_0xa192b2=0x0;_0xa192b2<_0x510a20['commentsV2']['length'];++_0xa192b2){if('object'!=typeof _0x510a20['commentsV2'][_0xa192b2])throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x23f3d3['commentsV2'][_0xa192b2]=_0x1d55ed['CommentDescriptor']['fromObject'](_0x510a20['commentsV2'][_0xa192b2]);}}return null!=_0x510a20['resolvedAt']&&(_0x23f3d3['resolvedAt']=String(_0x510a20['resolvedAt'])),null!=_0x510a20['resolvedBy']&&(_0x23f3d3['resolvedBy']=String(_0x510a20['resolvedBy'])),null!=_0x510a20['context']&&(_0x23f3d3['context']=String(_0x510a20['context'])),null!=_0x510a20['createdAt']&&(_0x23f3d3['createdAt']=String(_0x510a20['createdAt'])),null!=_0x510a20['deletedAt']&&(_0x23f3d3['deletedAt']=String(_0x510a20['deletedAt'])),null!=_0x510a20['attributes']&&(_0x23f3d3['attributes']=String(_0x510a20['attributes'])),null!=_0x510a20['unlinkedAt']&&(_0x23f3d3['unlinkedAt']=String(_0x510a20['unlinkedAt'])),_0x23f3d3;},_0x3f950a['toObject']=function(_0x4cf550,_0x323b82){_0x323b82||(_0x323b82={});var _0x18fd7a={};if((_0x323b82['arrays']||_0x323b82['defaults'])&&(_0x18fd7a['comments']=[],_0x18fd7a['commentsV2']=[]),_0x323b82['defaults']&&(_0x18fd7a['commentThreadId']='',_0x18fd7a['resolvedAt']='',_0x18fd7a['resolvedBy']='',_0x18fd7a['context']='',_0x18fd7a['createdAt']='',_0x18fd7a['deletedAt']='',_0x18fd7a['attributes']='',_0x18fd7a['unlinkedAt']=''),null!=_0x4cf550['commentThreadId']&&_0x4cf550['hasOwnProperty']('commentThreadId')&&(_0x18fd7a['commentThreadId']=_0x4cf550['commentThreadId']),_0x4cf550['comments']&&_0x4cf550['comments']['length']){_0x18fd7a['comments']=[];for(var _0x3cee96=0x0;_0x3cee96<_0x4cf550['comments']['length'];++_0x3cee96)_0x18fd7a['comments'][_0x3cee96]=_0x4cf550['comments'][_0x3cee96];}if(_0x4cf550['commentsV2']&&_0x4cf550['commentsV2']['length']){for(_0x18fd7a['commentsV2']=[],_0x3cee96=0x0;_0x3cee96<_0x4cf550['commentsV2']['length'];++_0x3cee96)_0x18fd7a['commentsV2'][_0x3cee96]=_0x1d55ed['CommentDescriptor']['toObject'](_0x4cf550['commentsV2'][_0x3cee96],_0x323b82);}return null!=_0x4cf550['resolvedAt']&&_0x4cf550['hasOwnProperty']('resolvedAt')&&(_0x18fd7a['resolvedAt']=_0x4cf550['resolvedAt']),null!=_0x4cf550['resolvedBy']&&_0x4cf550['hasOwnProperty']('resolvedBy')&&(_0x18fd7a['resolvedBy']=_0x4cf550['resolvedBy']),null!=_0x4cf550['context']&&_0x4cf550['hasOwnProperty']('context')&&(_0x18fd7a['context']=_0x4cf550['context']),null!=_0x4cf550['createdAt']&&_0x4cf550['hasOwnProperty']('createdAt')&&(_0x18fd7a['createdAt']=_0x4cf550['createdAt']),null!=_0x4cf550['deletedAt']&&_0x4cf550['hasOwnProperty']('deletedAt')&&(_0x18fd7a['deletedAt']=_0x4cf550['deletedAt']),null!=_0x4cf550['attributes']&&_0x4cf550['hasOwnProperty']('attributes')&&(_0x18fd7a['attributes']=_0x4cf550['attributes']),null!=_0x4cf550['unlinkedAt']&&_0x4cf550['hasOwnProperty']('unlinkedAt')&&(_0x18fd7a['unlinkedAt']=_0x4cf550['unlinkedAt']),_0x18fd7a;},_0x3f950a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3f950a['getTypeUrl']=function(_0x6f1e3e){return void 0x0===_0x6f1e3e&&(_0x6f1e3e='type.googleapis.com'),_0x6f1e3e+'/CommentsV2GetCommentThreadResponse';},_0x3f950a;}()),_0x1d55ed['CommentsV2ConnectResponse']=(function(){function _0x4e8d4f(_0x5eabd6){if(this['threads']=[],this['threadsV2']=[],_0x5eabd6){for(var _0x16d10f=Object['keys'](_0x5eabd6),_0x17c65a=0x0;_0x17c65a<_0x16d10f['length'];++_0x17c65a)null!=_0x5eabd6[_0x16d10f[_0x17c65a]]&&(this[_0x16d10f[_0x17c65a]]=_0x5eabd6[_0x16d10f[_0x17c65a]]);}}return _0x4e8d4f['prototype']['channel']='',_0x4e8d4f['prototype']['threads']=_0x17c6dc['emptyArray'],_0x4e8d4f['prototype']['threadsV2']=_0x17c6dc['emptyArray'],_0x4e8d4f['create']=function(_0x39b5db){return new _0x4e8d4f(_0x39b5db);},_0x4e8d4f['encode']=function(_0x1cf32e,_0x44f28c){if(_0x44f28c||(_0x44f28c=_0x214d5c['create']()),null!=_0x1cf32e['channel']&&Object['hasOwnProperty']['call'](_0x1cf32e,'channel')&&_0x44f28c['uint32'](0xa)['string'](_0x1cf32e['channel']),null!=_0x1cf32e['threads']&&_0x1cf32e['threads']['length']){for(var _0x54ad27=0x0;_0x54ad27<_0x1cf32e['threads']['length'];++_0x54ad27)_0x44f28c['uint32'](0x12)['string'](_0x1cf32e['threads'][_0x54ad27]);}if(null!=_0x1cf32e['threadsV2']&&_0x1cf32e['threadsV2']['length']){for(_0x54ad27=0x0;_0x54ad27<_0x1cf32e['threadsV2']['length'];++_0x54ad27)_0x1d55ed['CommentsThreadDescriptor']['encode'](_0x1cf32e['threadsV2'][_0x54ad27],_0x44f28c['uint32'](0x1a)['fork']())['ldelim']();}return _0x44f28c;},_0x4e8d4f['encodeDelimited']=function(_0x4ab4f4,_0x1b9d4b){return this['encode'](_0x4ab4f4,_0x1b9d4b)['ldelim']();},_0x4e8d4f['decode']=function(_0x16daf9,_0x13a2a8,_0x24a6c9){_0x16daf9 instanceof _0x10ed9a||(_0x16daf9=_0x10ed9a['create'](_0x16daf9));for(var _0x45db3b=void 0x0===_0x13a2a8?_0x16daf9['len']:_0x16daf9['pos']+_0x13a2a8,_0x1658a5=new _0x1d55ed['CommentsV2ConnectResponse']();_0x16daf9['pos']<_0x45db3b;){var _0x74b80c=_0x16daf9['uint32']();if(_0x74b80c===_0x24a6c9)break;switch(_0x74b80c>>>0x3){case 0x1:_0x1658a5['channel']=_0x16daf9['string']();break;case 0x2:_0x1658a5['threads']&&_0x1658a5['threads']['length']||(_0x1658a5['threads']=[]),_0x1658a5['threads']['push'](_0x16daf9['string']());break;case 0x3:_0x1658a5['threadsV2']&&_0x1658a5['threadsV2']['length']||(_0x1658a5['threadsV2']=[]),_0x1658a5['threadsV2']['push'](_0x1d55ed['CommentsThreadDescriptor']['decode'](_0x16daf9,_0x16daf9['uint32']()));break;default:_0x16daf9['skipType'](0x7&_0x74b80c);}}return _0x1658a5;},_0x4e8d4f['decodeDelimited']=function(_0x953f80){return _0x953f80 instanceof _0x10ed9a||(_0x953f80=new _0x10ed9a(_0x953f80)),this['decode'](_0x953f80,_0x953f80['uint32']());},_0x4e8d4f['verify']=function(_0x56cd26){if('object'!=typeof _0x56cd26||null===_0x56cd26)return'object\x20expected';if(null!=_0x56cd26['channel']&&_0x56cd26['hasOwnProperty']('channel')&&!_0x17c6dc['isString'](_0x56cd26['channel']))return'channel:\x20string\x20expected';if(null!=_0x56cd26['threads']&&_0x56cd26['hasOwnProperty']('threads')){if(!Array['isArray'](_0x56cd26['threads']))return'threads:\x20array\x20expected';for(var _0x36362a=0x0;_0x36362a<_0x56cd26['threads']['length'];++_0x36362a)if(!_0x17c6dc['isString'](_0x56cd26['threads'][_0x36362a]))return'threads:\x20string[]\x20expected';}if(null!=_0x56cd26['threadsV2']&&_0x56cd26['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x56cd26['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x36362a=0x0;_0x36362a<_0x56cd26['threadsV2']['length'];++_0x36362a){var _0xe39759=_0x1d55ed['CommentsThreadDescriptor']['verify'](_0x56cd26['threadsV2'][_0x36362a]);if(_0xe39759)return'threadsV2.'+_0xe39759;}}return null;},_0x4e8d4f['fromObject']=function(_0x5bfd75){if(_0x5bfd75 instanceof _0x1d55ed['CommentsV2ConnectResponse'])return _0x5bfd75;var _0x4ecb51=new _0x1d55ed['CommentsV2ConnectResponse']();if(null!=_0x5bfd75['channel']&&(_0x4ecb51['channel']=String(_0x5bfd75['channel'])),_0x5bfd75['threads']){if(!Array['isArray'](_0x5bfd75['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x4ecb51['threads']=[];for(var _0x9a7e6=0x0;_0x9a7e6<_0x5bfd75['threads']['length'];++_0x9a7e6)_0x4ecb51['threads'][_0x9a7e6]=String(_0x5bfd75['threads'][_0x9a7e6]);}if(_0x5bfd75['threadsV2']){if(!Array['isArray'](_0x5bfd75['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');for(_0x4ecb51['threadsV2']=[],_0x9a7e6=0x0;_0x9a7e6<_0x5bfd75['threadsV2']['length'];++_0x9a7e6){if('object'!=typeof _0x5bfd75['threadsV2'][_0x9a7e6])throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x4ecb51['threadsV2'][_0x9a7e6]=_0x1d55ed['CommentsThreadDescriptor']['fromObject'](_0x5bfd75['threadsV2'][_0x9a7e6]);}}return _0x4ecb51;},_0x4e8d4f['toObject']=function(_0x43d10d,_0x3ae42d){_0x3ae42d||(_0x3ae42d={});var _0x59b71f={};if((_0x3ae42d['arrays']||_0x3ae42d['defaults'])&&(_0x59b71f['threads']=[],_0x59b71f['threadsV2']=[]),_0x3ae42d['defaults']&&(_0x59b71f['channel']=''),null!=_0x43d10d['channel']&&_0x43d10d['hasOwnProperty']('channel')&&(_0x59b71f['channel']=_0x43d10d['channel']),_0x43d10d['threads']&&_0x43d10d['threads']['length']){_0x59b71f['threads']=[];for(var _0x56b64a=0x0;_0x56b64a<_0x43d10d['threads']['length'];++_0x56b64a)_0x59b71f['threads'][_0x56b64a]=_0x43d10d['threads'][_0x56b64a];}if(_0x43d10d['threadsV2']&&_0x43d10d['threadsV2']['length']){for(_0x59b71f['threadsV2']=[],_0x56b64a=0x0;_0x56b64a<_0x43d10d['threadsV2']['length'];++_0x56b64a)_0x59b71f['threadsV2'][_0x56b64a]=_0x1d55ed['CommentsThreadDescriptor']['toObject'](_0x43d10d['threadsV2'][_0x56b64a],_0x3ae42d);}return _0x59b71f;},_0x4e8d4f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4e8d4f['getTypeUrl']=function(_0x556e7a){return void 0x0===_0x556e7a&&(_0x556e7a='type.googleapis.com'),_0x556e7a+'/CommentsV2ConnectResponse';},_0x4e8d4f;}()),_0x1d55ed['CommentsV2AddCommentResponse']=(function(){function _0x2ca2d3(_0xe3d54d){if(_0xe3d54d){for(var _0x2ed427=Object['keys'](_0xe3d54d),_0x3b2995=0x0;_0x3b2995<_0x2ed427['length'];++_0x3b2995)null!=_0xe3d54d[_0x2ed427[_0x3b2995]]&&(this[_0x2ed427[_0x3b2995]]=_0xe3d54d[_0x2ed427[_0x3b2995]]);}}return _0x2ca2d3['prototype']['commentThreadId']='',_0x2ca2d3['prototype']['commentId']='',_0x2ca2d3['prototype']['createdAt']='',_0x2ca2d3['create']=function(_0x2effc5){return new _0x2ca2d3(_0x2effc5);},_0x2ca2d3['encode']=function(_0x7a7d54,_0x786edf){return _0x786edf||(_0x786edf=_0x214d5c['create']()),null!=_0x7a7d54['commentThreadId']&&Object['hasOwnProperty']['call'](_0x7a7d54,'commentThreadId')&&_0x786edf['uint32'](0xa)['string'](_0x7a7d54['commentThreadId']),null!=_0x7a7d54['commentId']&&Object['hasOwnProperty']['call'](_0x7a7d54,'commentId')&&_0x786edf['uint32'](0x12)['string'](_0x7a7d54['commentId']),null!=_0x7a7d54['createdAt']&&Object['hasOwnProperty']['call'](_0x7a7d54,'createdAt')&&_0x786edf['uint32'](0x1a)['string'](_0x7a7d54['createdAt']),_0x786edf;},_0x2ca2d3['encodeDelimited']=function(_0x1decaf,_0x50ab3d){return this['encode'](_0x1decaf,_0x50ab3d)['ldelim']();},_0x2ca2d3['decode']=function(_0x15e06c,_0x1798b7,_0x251cf3){_0x15e06c instanceof _0x10ed9a||(_0x15e06c=_0x10ed9a['create'](_0x15e06c));for(var _0x253813=void 0x0===_0x1798b7?_0x15e06c['len']:_0x15e06c['pos']+_0x1798b7,_0x2cdcba=new _0x1d55ed['CommentsV2AddCommentResponse']();_0x15e06c['pos']<_0x253813;){var _0x14d473=_0x15e06c['uint32']();if(_0x14d473===_0x251cf3)break;switch(_0x14d473>>>0x3){case 0x1:_0x2cdcba['commentThreadId']=_0x15e06c['string']();break;case 0x2:_0x2cdcba['commentId']=_0x15e06c['string']();break;case 0x3:_0x2cdcba['createdAt']=_0x15e06c['string']();break;default:_0x15e06c['skipType'](0x7&_0x14d473);}}return _0x2cdcba;},_0x2ca2d3['decodeDelimited']=function(_0x4d1d4e){return _0x4d1d4e instanceof _0x10ed9a||(_0x4d1d4e=new _0x10ed9a(_0x4d1d4e)),this['decode'](_0x4d1d4e,_0x4d1d4e['uint32']());},_0x2ca2d3['verify']=function(_0x2d77b6){return'object'!=typeof _0x2d77b6||null===_0x2d77b6?'object\x20expected':null!=_0x2d77b6['commentThreadId']&&_0x2d77b6['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x2d77b6['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x2d77b6['commentId']&&_0x2d77b6['hasOwnProperty']('commentId')&&!_0x17c6dc['isString'](_0x2d77b6['commentId'])?'commentId:\x20string\x20expected':null!=_0x2d77b6['createdAt']&&_0x2d77b6['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x2d77b6['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x2ca2d3['fromObject']=function(_0xe698cf){if(_0xe698cf instanceof _0x1d55ed['CommentsV2AddCommentResponse'])return _0xe698cf;var _0xe08173=new _0x1d55ed['CommentsV2AddCommentResponse']();return null!=_0xe698cf['commentThreadId']&&(_0xe08173['commentThreadId']=String(_0xe698cf['commentThreadId'])),null!=_0xe698cf['commentId']&&(_0xe08173['commentId']=String(_0xe698cf['commentId'])),null!=_0xe698cf['createdAt']&&(_0xe08173['createdAt']=String(_0xe698cf['createdAt'])),_0xe08173;},_0x2ca2d3['toObject']=function(_0x4fe55c,_0x169b94){_0x169b94||(_0x169b94={});var _0x18bad1={};return _0x169b94['defaults']&&(_0x18bad1['commentThreadId']='',_0x18bad1['commentId']='',_0x18bad1['createdAt']=''),null!=_0x4fe55c['commentThreadId']&&_0x4fe55c['hasOwnProperty']('commentThreadId')&&(_0x18bad1['commentThreadId']=_0x4fe55c['commentThreadId']),null!=_0x4fe55c['commentId']&&_0x4fe55c['hasOwnProperty']('commentId')&&(_0x18bad1['commentId']=_0x4fe55c['commentId']),null!=_0x4fe55c['createdAt']&&_0x4fe55c['hasOwnProperty']('createdAt')&&(_0x18bad1['createdAt']=_0x4fe55c['createdAt']),_0x18bad1;},_0x2ca2d3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2ca2d3['getTypeUrl']=function(_0x344d57){return void 0x0===_0x344d57&&(_0x344d57='type.googleapis.com'),_0x344d57+'/CommentsV2AddCommentResponse';},_0x2ca2d3;}()),_0x1d55ed['CommentsV2ResolveCommentThreadResponse']=(function(){function _0x139270(_0x463f08){if(_0x463f08){for(var _0x295d34=Object['keys'](_0x463f08),_0x269d9c=0x0;_0x269d9c<_0x295d34['length'];++_0x269d9c)null!=_0x463f08[_0x295d34[_0x269d9c]]&&(this[_0x295d34[_0x269d9c]]=_0x463f08[_0x295d34[_0x269d9c]]);}}return _0x139270['prototype']['commentThreadId']='',_0x139270['prototype']['documentId']='',_0x139270['prototype']['resolvedAt']='',_0x139270['prototype']['resolvedBy']='',_0x139270['create']=function(_0x1be7da){return new _0x139270(_0x1be7da);},_0x139270['encode']=function(_0x4cb8c3,_0x13e5aa){return _0x13e5aa||(_0x13e5aa=_0x214d5c['create']()),null!=_0x4cb8c3['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4cb8c3,'commentThreadId')&&_0x13e5aa['uint32'](0xa)['string'](_0x4cb8c3['commentThreadId']),null!=_0x4cb8c3['documentId']&&Object['hasOwnProperty']['call'](_0x4cb8c3,'documentId')&&_0x13e5aa['uint32'](0x12)['string'](_0x4cb8c3['documentId']),null!=_0x4cb8c3['resolvedAt']&&Object['hasOwnProperty']['call'](_0x4cb8c3,'resolvedAt')&&_0x13e5aa['uint32'](0x1a)['string'](_0x4cb8c3['resolvedAt']),null!=_0x4cb8c3['resolvedBy']&&Object['hasOwnProperty']['call'](_0x4cb8c3,'resolvedBy')&&_0x13e5aa['uint32'](0x22)['string'](_0x4cb8c3['resolvedBy']),_0x13e5aa;},_0x139270['encodeDelimited']=function(_0x13786b,_0x518b29){return this['encode'](_0x13786b,_0x518b29)['ldelim']();},_0x139270['decode']=function(_0x15ca28,_0x1cc6bb,_0x2555cc){_0x15ca28 instanceof _0x10ed9a||(_0x15ca28=_0x10ed9a['create'](_0x15ca28));for(var _0x4306c8=void 0x0===_0x1cc6bb?_0x15ca28['len']:_0x15ca28['pos']+_0x1cc6bb,_0x5fef0a=new _0x1d55ed['CommentsV2ResolveCommentThreadResponse']();_0x15ca28['pos']<_0x4306c8;){var _0x3ab6ee=_0x15ca28['uint32']();if(_0x3ab6ee===_0x2555cc)break;switch(_0x3ab6ee>>>0x3){case 0x1:_0x5fef0a['commentThreadId']=_0x15ca28['string']();break;case 0x2:_0x5fef0a['documentId']=_0x15ca28['string']();break;case 0x3:_0x5fef0a['resolvedAt']=_0x15ca28['string']();break;case 0x4:_0x5fef0a['resolvedBy']=_0x15ca28['string']();break;default:_0x15ca28['skipType'](0x7&_0x3ab6ee);}}return _0x5fef0a;},_0x139270['decodeDelimited']=function(_0x266258){return _0x266258 instanceof _0x10ed9a||(_0x266258=new _0x10ed9a(_0x266258)),this['decode'](_0x266258,_0x266258['uint32']());},_0x139270['verify']=function(_0x314956){return'object'!=typeof _0x314956||null===_0x314956?'object\x20expected':null!=_0x314956['commentThreadId']&&_0x314956['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x314956['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x314956['documentId']&&_0x314956['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x314956['documentId'])?'documentId:\x20string\x20expected':null!=_0x314956['resolvedAt']&&_0x314956['hasOwnProperty']('resolvedAt')&&!_0x17c6dc['isString'](_0x314956['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x314956['resolvedBy']&&_0x314956['hasOwnProperty']('resolvedBy')&&!_0x17c6dc['isString'](_0x314956['resolvedBy'])?'resolvedBy:\x20string\x20expected':null;},_0x139270['fromObject']=function(_0x17912d){if(_0x17912d instanceof _0x1d55ed['CommentsV2ResolveCommentThreadResponse'])return _0x17912d;var _0x32448f=new _0x1d55ed['CommentsV2ResolveCommentThreadResponse']();return null!=_0x17912d['commentThreadId']&&(_0x32448f['commentThreadId']=String(_0x17912d['commentThreadId'])),null!=_0x17912d['documentId']&&(_0x32448f['documentId']=String(_0x17912d['documentId'])),null!=_0x17912d['resolvedAt']&&(_0x32448f['resolvedAt']=String(_0x17912d['resolvedAt'])),null!=_0x17912d['resolvedBy']&&(_0x32448f['resolvedBy']=String(_0x17912d['resolvedBy'])),_0x32448f;},_0x139270['toObject']=function(_0x1eabc0,_0x4fe1d6){_0x4fe1d6||(_0x4fe1d6={});var _0x512797={};return _0x4fe1d6['defaults']&&(_0x512797['commentThreadId']='',_0x512797['documentId']='',_0x512797['resolvedAt']='',_0x512797['resolvedBy']=''),null!=_0x1eabc0['commentThreadId']&&_0x1eabc0['hasOwnProperty']('commentThreadId')&&(_0x512797['commentThreadId']=_0x1eabc0['commentThreadId']),null!=_0x1eabc0['documentId']&&_0x1eabc0['hasOwnProperty']('documentId')&&(_0x512797['documentId']=_0x1eabc0['documentId']),null!=_0x1eabc0['resolvedAt']&&_0x1eabc0['hasOwnProperty']('resolvedAt')&&(_0x512797['resolvedAt']=_0x1eabc0['resolvedAt']),null!=_0x1eabc0['resolvedBy']&&_0x1eabc0['hasOwnProperty']('resolvedBy')&&(_0x512797['resolvedBy']=_0x1eabc0['resolvedBy']),_0x512797;},_0x139270['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x139270['getTypeUrl']=function(_0x676e78){return void 0x0===_0x676e78&&(_0x676e78='type.googleapis.com'),_0x676e78+'/CommentsV2ResolveCommentThreadResponse';},_0x139270;}()),_0x1d55ed['CommentsV2AddCommentThreadResponse']=(function(){function _0x10ddcc(_0x3ffa58){if(this['comments']=[],_0x3ffa58){for(var _0x14bd5a=Object['keys'](_0x3ffa58),_0x477053=0x0;_0x477053<_0x14bd5a['length'];++_0x477053)null!=_0x3ffa58[_0x14bd5a[_0x477053]]&&(this[_0x14bd5a[_0x477053]]=_0x3ffa58[_0x14bd5a[_0x477053]]);}}return _0x10ddcc['prototype']['commentThreadId']='',_0x10ddcc['prototype']['createdAt']='',_0x10ddcc['prototype']['comments']=_0x17c6dc['emptyArray'],_0x10ddcc['create']=function(_0x16cc64){return new _0x10ddcc(_0x16cc64);},_0x10ddcc['encode']=function(_0x59f06c,_0x45723){if(_0x45723||(_0x45723=_0x214d5c['create']()),null!=_0x59f06c['commentThreadId']&&Object['hasOwnProperty']['call'](_0x59f06c,'commentThreadId')&&_0x45723['uint32'](0xa)['string'](_0x59f06c['commentThreadId']),null!=_0x59f06c['createdAt']&&Object['hasOwnProperty']['call'](_0x59f06c,'createdAt')&&_0x45723['uint32'](0x12)['string'](_0x59f06c['createdAt']),null!=_0x59f06c['comments']&&_0x59f06c['comments']['length']){for(var _0x36320c=0x0;_0x36320c<_0x59f06c['comments']['length'];++_0x36320c)_0x1d55ed['CommentThreadAddedCommentDescriptor']['encode'](_0x59f06c['comments'][_0x36320c],_0x45723['uint32'](0x1a)['fork']())['ldelim']();}return _0x45723;},_0x10ddcc['encodeDelimited']=function(_0x402123,_0x430d85){return this['encode'](_0x402123,_0x430d85)['ldelim']();},_0x10ddcc['decode']=function(_0x1f8702,_0x43f14f,_0x3bba83){_0x1f8702 instanceof _0x10ed9a||(_0x1f8702=_0x10ed9a['create'](_0x1f8702));for(var _0x50a50a=void 0x0===_0x43f14f?_0x1f8702['len']:_0x1f8702['pos']+_0x43f14f,_0x300e3b=new _0x1d55ed['CommentsV2AddCommentThreadResponse']();_0x1f8702['pos']<_0x50a50a;){var _0x4cf30b=_0x1f8702['uint32']();if(_0x4cf30b===_0x3bba83)break;switch(_0x4cf30b>>>0x3){case 0x1:_0x300e3b['commentThreadId']=_0x1f8702['string']();break;case 0x2:_0x300e3b['createdAt']=_0x1f8702['string']();break;case 0x3:_0x300e3b['comments']&&_0x300e3b['comments']['length']||(_0x300e3b['comments']=[]),_0x300e3b['comments']['push'](_0x1d55ed['CommentThreadAddedCommentDescriptor']['decode'](_0x1f8702,_0x1f8702['uint32']()));break;default:_0x1f8702['skipType'](0x7&_0x4cf30b);}}return _0x300e3b;},_0x10ddcc['decodeDelimited']=function(_0x37400b){return _0x37400b instanceof _0x10ed9a||(_0x37400b=new _0x10ed9a(_0x37400b)),this['decode'](_0x37400b,_0x37400b['uint32']());},_0x10ddcc['verify']=function(_0x46908a){if('object'!=typeof _0x46908a||null===_0x46908a)return'object\x20expected';if(null!=_0x46908a['commentThreadId']&&_0x46908a['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x46908a['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x46908a['createdAt']&&_0x46908a['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x46908a['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x46908a['comments']&&_0x46908a['hasOwnProperty']('comments')){if(!Array['isArray'](_0x46908a['comments']))return'comments:\x20array\x20expected';for(var _0x532704=0x0;_0x532704<_0x46908a['comments']['length'];++_0x532704){var _0x5103ff=_0x1d55ed['CommentThreadAddedCommentDescriptor']['verify'](_0x46908a['comments'][_0x532704]);if(_0x5103ff)return'comments.'+_0x5103ff;}}return null;},_0x10ddcc['fromObject']=function(_0x9ad85b){if(_0x9ad85b instanceof _0x1d55ed['CommentsV2AddCommentThreadResponse'])return _0x9ad85b;var _0x2bf39f=new _0x1d55ed['CommentsV2AddCommentThreadResponse']();if(null!=_0x9ad85b['commentThreadId']&&(_0x2bf39f['commentThreadId']=String(_0x9ad85b['commentThreadId'])),null!=_0x9ad85b['createdAt']&&(_0x2bf39f['createdAt']=String(_0x9ad85b['createdAt'])),_0x9ad85b['comments']){if(!Array['isArray'](_0x9ad85b['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x2bf39f['comments']=[];for(var _0x1474e3=0x0;_0x1474e3<_0x9ad85b['comments']['length'];++_0x1474e3){if('object'!=typeof _0x9ad85b['comments'][_0x1474e3])throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x2bf39f['comments'][_0x1474e3]=_0x1d55ed['CommentThreadAddedCommentDescriptor']['fromObject'](_0x9ad85b['comments'][_0x1474e3]);}}return _0x2bf39f;},_0x10ddcc['toObject']=function(_0x534406,_0x5775f0){_0x5775f0||(_0x5775f0={});var _0x1f36ec={};if((_0x5775f0['arrays']||_0x5775f0['defaults'])&&(_0x1f36ec['comments']=[]),_0x5775f0['defaults']&&(_0x1f36ec['commentThreadId']='',_0x1f36ec['createdAt']=''),null!=_0x534406['commentThreadId']&&_0x534406['hasOwnProperty']('commentThreadId')&&(_0x1f36ec['commentThreadId']=_0x534406['commentThreadId']),null!=_0x534406['createdAt']&&_0x534406['hasOwnProperty']('createdAt')&&(_0x1f36ec['createdAt']=_0x534406['createdAt']),_0x534406['comments']&&_0x534406['comments']['length']){_0x1f36ec['comments']=[];for(var _0x338c52=0x0;_0x338c52<_0x534406['comments']['length'];++_0x338c52)_0x1f36ec['comments'][_0x338c52]=_0x1d55ed['CommentThreadAddedCommentDescriptor']['toObject'](_0x534406['comments'][_0x338c52],_0x5775f0);}return _0x1f36ec;},_0x10ddcc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x10ddcc['getTypeUrl']=function(_0x5c869a){return void 0x0===_0x5c869a&&(_0x5c869a='type.googleapis.com'),_0x5c869a+'/CommentsV2AddCommentThreadResponse';},_0x10ddcc;}()),_0x1d55ed['CommentsV2UpdateCommentMessage']=(function(){function _0x1cfb73(_0x770680){if(_0x770680){for(var _0x188180=Object['keys'](_0x770680),_0x594944=0x0;_0x594944<_0x188180['length'];++_0x594944)null!=_0x770680[_0x188180[_0x594944]]&&(this[_0x188180[_0x594944]]=_0x770680[_0x188180[_0x594944]]);}}return _0x1cfb73['prototype']['commentThreadId']='',_0x1cfb73['prototype']['commentId']='',_0x1cfb73['prototype']['content']='',_0x1cfb73['prototype']['documentId']='',_0x1cfb73['prototype']['attributes']='',_0x1cfb73['prototype']['isAttributesUpdated']=!0x1,_0x1cfb73['prototype']['commentThread']=null,_0x1cfb73['create']=function(_0x43a545){return new _0x1cfb73(_0x43a545);},_0x1cfb73['encode']=function(_0x2e7ec8,_0x129e57){return _0x129e57||(_0x129e57=_0x214d5c['create']()),null!=_0x2e7ec8['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2e7ec8,'commentThreadId')&&_0x129e57['uint32'](0xa)['string'](_0x2e7ec8['commentThreadId']),null!=_0x2e7ec8['commentId']&&Object['hasOwnProperty']['call'](_0x2e7ec8,'commentId')&&_0x129e57['uint32'](0x12)['string'](_0x2e7ec8['commentId']),null!=_0x2e7ec8['content']&&Object['hasOwnProperty']['call'](_0x2e7ec8,'content')&&_0x129e57['uint32'](0x1a)['string'](_0x2e7ec8['content']),null!=_0x2e7ec8['documentId']&&Object['hasOwnProperty']['call'](_0x2e7ec8,'documentId')&&_0x129e57['uint32'](0x22)['string'](_0x2e7ec8['documentId']),null!=_0x2e7ec8['attributes']&&Object['hasOwnProperty']['call'](_0x2e7ec8,'attributes')&&_0x129e57['uint32'](0x2a)['string'](_0x2e7ec8['attributes']),null!=_0x2e7ec8['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x2e7ec8,'isAttributesUpdated')&&_0x129e57['uint32'](0x30)['bool'](_0x2e7ec8['isAttributesUpdated']),null!=_0x2e7ec8['commentThread']&&Object['hasOwnProperty']['call'](_0x2e7ec8,'commentThread')&&_0x1d55ed['CommentsThreadDescriptor']['encode'](_0x2e7ec8['commentThread'],_0x129e57['uint32'](0x3a)['fork']())['ldelim'](),_0x129e57;},_0x1cfb73['encodeDelimited']=function(_0x2f1045,_0x151555){return this['encode'](_0x2f1045,_0x151555)['ldelim']();},_0x1cfb73['decode']=function(_0x37094a,_0x25648a,_0x583201){_0x37094a instanceof _0x10ed9a||(_0x37094a=_0x10ed9a['create'](_0x37094a));for(var _0x1a4792=void 0x0===_0x25648a?_0x37094a['len']:_0x37094a['pos']+_0x25648a,_0x4a6d76=new _0x1d55ed['CommentsV2UpdateCommentMessage']();_0x37094a['pos']<_0x1a4792;){var _0x32dc82=_0x37094a['uint32']();if(_0x32dc82===_0x583201)break;switch(_0x32dc82>>>0x3){case 0x1:_0x4a6d76['commentThreadId']=_0x37094a['string']();break;case 0x2:_0x4a6d76['commentId']=_0x37094a['string']();break;case 0x3:_0x4a6d76['content']=_0x37094a['string']();break;case 0x4:_0x4a6d76['documentId']=_0x37094a['string']();break;case 0x5:_0x4a6d76['attributes']=_0x37094a['string']();break;case 0x6:_0x4a6d76['isAttributesUpdated']=_0x37094a['bool']();break;case 0x7:_0x4a6d76['commentThread']=_0x1d55ed['CommentsThreadDescriptor']['decode'](_0x37094a,_0x37094a['uint32']());break;default:_0x37094a['skipType'](0x7&_0x32dc82);}}return _0x4a6d76;},_0x1cfb73['decodeDelimited']=function(_0x33a51a){return _0x33a51a instanceof _0x10ed9a||(_0x33a51a=new _0x10ed9a(_0x33a51a)),this['decode'](_0x33a51a,_0x33a51a['uint32']());},_0x1cfb73['verify']=function(_0x4c1442){if('object'!=typeof _0x4c1442||null===_0x4c1442)return'object\x20expected';if(null!=_0x4c1442['commentThreadId']&&_0x4c1442['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x4c1442['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x4c1442['commentId']&&_0x4c1442['hasOwnProperty']('commentId')&&!_0x17c6dc['isString'](_0x4c1442['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x4c1442['content']&&_0x4c1442['hasOwnProperty']('content')&&!_0x17c6dc['isString'](_0x4c1442['content']))return'content:\x20string\x20expected';if(null!=_0x4c1442['documentId']&&_0x4c1442['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x4c1442['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x4c1442['attributes']&&_0x4c1442['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x4c1442['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x4c1442['isAttributesUpdated']&&_0x4c1442['hasOwnProperty']('isAttributesUpdated')&&'boolean'!=typeof _0x4c1442['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x4c1442['commentThread']&&_0x4c1442['hasOwnProperty']('commentThread')){var _0x13932f=_0x1d55ed['CommentsThreadDescriptor']['verify'](_0x4c1442['commentThread']);if(_0x13932f)return'commentThread.'+_0x13932f;}return null;},_0x1cfb73['fromObject']=function(_0x2e7b5b){if(_0x2e7b5b instanceof _0x1d55ed['CommentsV2UpdateCommentMessage'])return _0x2e7b5b;var _0x411084=new _0x1d55ed['CommentsV2UpdateCommentMessage']();if(null!=_0x2e7b5b['commentThreadId']&&(_0x411084['commentThreadId']=String(_0x2e7b5b['commentThreadId'])),null!=_0x2e7b5b['commentId']&&(_0x411084['commentId']=String(_0x2e7b5b['commentId'])),null!=_0x2e7b5b['content']&&(_0x411084['content']=String(_0x2e7b5b['content'])),null!=_0x2e7b5b['documentId']&&(_0x411084['documentId']=String(_0x2e7b5b['documentId'])),null!=_0x2e7b5b['attributes']&&(_0x411084['attributes']=String(_0x2e7b5b['attributes'])),null!=_0x2e7b5b['isAttributesUpdated']&&(_0x411084['isAttributesUpdated']=Boolean(_0x2e7b5b['isAttributesUpdated'])),null!=_0x2e7b5b['commentThread']){if('object'!=typeof _0x2e7b5b['commentThread'])throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x411084['commentThread']=_0x1d55ed['CommentsThreadDescriptor']['fromObject'](_0x2e7b5b['commentThread']);}return _0x411084;},_0x1cfb73['toObject']=function(_0x3eb6d2,_0x57087a){_0x57087a||(_0x57087a={});var _0x1fdc72={};return _0x57087a['defaults']&&(_0x1fdc72['commentThreadId']='',_0x1fdc72['commentId']='',_0x1fdc72['content']='',_0x1fdc72['documentId']='',_0x1fdc72['attributes']='',_0x1fdc72['isAttributesUpdated']=!0x1,_0x1fdc72['commentThread']=null),null!=_0x3eb6d2['commentThreadId']&&_0x3eb6d2['hasOwnProperty']('commentThreadId')&&(_0x1fdc72['commentThreadId']=_0x3eb6d2['commentThreadId']),null!=_0x3eb6d2['commentId']&&_0x3eb6d2['hasOwnProperty']('commentId')&&(_0x1fdc72['commentId']=_0x3eb6d2['commentId']),null!=_0x3eb6d2['content']&&_0x3eb6d2['hasOwnProperty']('content')&&(_0x1fdc72['content']=_0x3eb6d2['content']),null!=_0x3eb6d2['documentId']&&_0x3eb6d2['hasOwnProperty']('documentId')&&(_0x1fdc72['documentId']=_0x3eb6d2['documentId']),null!=_0x3eb6d2['attributes']&&_0x3eb6d2['hasOwnProperty']('attributes')&&(_0x1fdc72['attributes']=_0x3eb6d2['attributes']),null!=_0x3eb6d2['isAttributesUpdated']&&_0x3eb6d2['hasOwnProperty']('isAttributesUpdated')&&(_0x1fdc72['isAttributesUpdated']=_0x3eb6d2['isAttributesUpdated']),null!=_0x3eb6d2['commentThread']&&_0x3eb6d2['hasOwnProperty']('commentThread')&&(_0x1fdc72['commentThread']=_0x1d55ed['CommentsThreadDescriptor']['toObject'](_0x3eb6d2['commentThread'],_0x57087a)),_0x1fdc72;},_0x1cfb73['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1cfb73['getTypeUrl']=function(_0x1180e7){return void 0x0===_0x1180e7&&(_0x1180e7='type.googleapis.com'),_0x1180e7+'/CommentsV2UpdateCommentMessage';},_0x1cfb73;}()),_0x1d55ed['CommentsV2RemoveCommentThreadMessage']=(function(){function _0x3937a3(_0x4defd1){if(_0x4defd1){for(var _0x417517=Object['keys'](_0x4defd1),_0x5e9388=0x0;_0x5e9388<_0x417517['length'];++_0x5e9388)null!=_0x4defd1[_0x417517[_0x5e9388]]&&(this[_0x417517[_0x5e9388]]=_0x4defd1[_0x417517[_0x5e9388]]);}}return _0x3937a3['prototype']['commentThreadId']='',_0x3937a3['prototype']['documentId']='',_0x3937a3['create']=function(_0x33dd61){return new _0x3937a3(_0x33dd61);},_0x3937a3['encode']=function(_0x323be1,_0x4e6ecb){return _0x4e6ecb||(_0x4e6ecb=_0x214d5c['create']()),null!=_0x323be1['commentThreadId']&&Object['hasOwnProperty']['call'](_0x323be1,'commentThreadId')&&_0x4e6ecb['uint32'](0xa)['string'](_0x323be1['commentThreadId']),null!=_0x323be1['documentId']&&Object['hasOwnProperty']['call'](_0x323be1,'documentId')&&_0x4e6ecb['uint32'](0x12)['string'](_0x323be1['documentId']),_0x4e6ecb;},_0x3937a3['encodeDelimited']=function(_0x48f5bc,_0x37ed40){return this['encode'](_0x48f5bc,_0x37ed40)['ldelim']();},_0x3937a3['decode']=function(_0x380610,_0x55eb43,_0x1fce8e){_0x380610 instanceof _0x10ed9a||(_0x380610=_0x10ed9a['create'](_0x380610));for(var _0x525ea=void 0x0===_0x55eb43?_0x380610['len']:_0x380610['pos']+_0x55eb43,_0x3547cb=new _0x1d55ed['CommentsV2RemoveCommentThreadMessage']();_0x380610['pos']<_0x525ea;){var _0x4ef5f9=_0x380610['uint32']();if(_0x4ef5f9===_0x1fce8e)break;switch(_0x4ef5f9>>>0x3){case 0x1:_0x3547cb['commentThreadId']=_0x380610['string']();break;case 0x2:_0x3547cb['documentId']=_0x380610['string']();break;default:_0x380610['skipType'](0x7&_0x4ef5f9);}}return _0x3547cb;},_0x3937a3['decodeDelimited']=function(_0x1361ff){return _0x1361ff instanceof _0x10ed9a||(_0x1361ff=new _0x10ed9a(_0x1361ff)),this['decode'](_0x1361ff,_0x1361ff['uint32']());},_0x3937a3['verify']=function(_0x8efbb7){return'object'!=typeof _0x8efbb7||null===_0x8efbb7?'object\x20expected':null!=_0x8efbb7['commentThreadId']&&_0x8efbb7['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x8efbb7['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x8efbb7['documentId']&&_0x8efbb7['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x8efbb7['documentId'])?'documentId:\x20string\x20expected':null;},_0x3937a3['fromObject']=function(_0x1d3c23){if(_0x1d3c23 instanceof _0x1d55ed['CommentsV2RemoveCommentThreadMessage'])return _0x1d3c23;var _0x4e7cb8=new _0x1d55ed['CommentsV2RemoveCommentThreadMessage']();return null!=_0x1d3c23['commentThreadId']&&(_0x4e7cb8['commentThreadId']=String(_0x1d3c23['commentThreadId'])),null!=_0x1d3c23['documentId']&&(_0x4e7cb8['documentId']=String(_0x1d3c23['documentId'])),_0x4e7cb8;},_0x3937a3['toObject']=function(_0x197cf9,_0x256afb){_0x256afb||(_0x256afb={});var _0x1cfe37={};return _0x256afb['defaults']&&(_0x1cfe37['commentThreadId']='',_0x1cfe37['documentId']=''),null!=_0x197cf9['commentThreadId']&&_0x197cf9['hasOwnProperty']('commentThreadId')&&(_0x1cfe37['commentThreadId']=_0x197cf9['commentThreadId']),null!=_0x197cf9['documentId']&&_0x197cf9['hasOwnProperty']('documentId')&&(_0x1cfe37['documentId']=_0x197cf9['documentId']),_0x1cfe37;},_0x3937a3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3937a3['getTypeUrl']=function(_0x305841){return void 0x0===_0x305841&&(_0x305841='type.googleapis.com'),_0x305841+'/CommentsV2RemoveCommentThreadMessage';},_0x3937a3;}()),_0x1d55ed['CommentsV2RemoveCommentMessage']=(function(){function _0x3ce88b(_0x5e42f6){if(_0x5e42f6){for(var _0x437992=Object['keys'](_0x5e42f6),_0x125fb4=0x0;_0x125fb4<_0x437992['length'];++_0x125fb4)null!=_0x5e42f6[_0x437992[_0x125fb4]]&&(this[_0x437992[_0x125fb4]]=_0x5e42f6[_0x437992[_0x125fb4]]);}}return _0x3ce88b['prototype']['commentThreadId']='',_0x3ce88b['prototype']['commentId']='',_0x3ce88b['prototype']['documentId']='',_0x3ce88b['create']=function(_0x51ae47){return new _0x3ce88b(_0x51ae47);},_0x3ce88b['encode']=function(_0xf07d49,_0x249122){return _0x249122||(_0x249122=_0x214d5c['create']()),null!=_0xf07d49['commentThreadId']&&Object['hasOwnProperty']['call'](_0xf07d49,'commentThreadId')&&_0x249122['uint32'](0xa)['string'](_0xf07d49['commentThreadId']),null!=_0xf07d49['commentId']&&Object['hasOwnProperty']['call'](_0xf07d49,'commentId')&&_0x249122['uint32'](0x12)['string'](_0xf07d49['commentId']),null!=_0xf07d49['documentId']&&Object['hasOwnProperty']['call'](_0xf07d49,'documentId')&&_0x249122['uint32'](0x1a)['string'](_0xf07d49['documentId']),_0x249122;},_0x3ce88b['encodeDelimited']=function(_0x135e04,_0x338d01){return this['encode'](_0x135e04,_0x338d01)['ldelim']();},_0x3ce88b['decode']=function(_0x3b0f66,_0x2e4cc9,_0x58e4ce){_0x3b0f66 instanceof _0x10ed9a||(_0x3b0f66=_0x10ed9a['create'](_0x3b0f66));for(var _0x5393cb=void 0x0===_0x2e4cc9?_0x3b0f66['len']:_0x3b0f66['pos']+_0x2e4cc9,_0x436cf9=new _0x1d55ed['CommentsV2RemoveCommentMessage']();_0x3b0f66['pos']<_0x5393cb;){var _0x2b7d30=_0x3b0f66['uint32']();if(_0x2b7d30===_0x58e4ce)break;switch(_0x2b7d30>>>0x3){case 0x1:_0x436cf9['commentThreadId']=_0x3b0f66['string']();break;case 0x2:_0x436cf9['commentId']=_0x3b0f66['string']();break;case 0x3:_0x436cf9['documentId']=_0x3b0f66['string']();break;default:_0x3b0f66['skipType'](0x7&_0x2b7d30);}}return _0x436cf9;},_0x3ce88b['decodeDelimited']=function(_0x3bb89){return _0x3bb89 instanceof _0x10ed9a||(_0x3bb89=new _0x10ed9a(_0x3bb89)),this['decode'](_0x3bb89,_0x3bb89['uint32']());},_0x3ce88b['verify']=function(_0xfcddba){return'object'!=typeof _0xfcddba||null===_0xfcddba?'object\x20expected':null!=_0xfcddba['commentThreadId']&&_0xfcddba['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0xfcddba['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0xfcddba['commentId']&&_0xfcddba['hasOwnProperty']('commentId')&&!_0x17c6dc['isString'](_0xfcddba['commentId'])?'commentId:\x20string\x20expected':null!=_0xfcddba['documentId']&&_0xfcddba['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0xfcddba['documentId'])?'documentId:\x20string\x20expected':null;},_0x3ce88b['fromObject']=function(_0x29d7e0){if(_0x29d7e0 instanceof _0x1d55ed['CommentsV2RemoveCommentMessage'])return _0x29d7e0;var _0x4dacb8=new _0x1d55ed['CommentsV2RemoveCommentMessage']();return null!=_0x29d7e0['commentThreadId']&&(_0x4dacb8['commentThreadId']=String(_0x29d7e0['commentThreadId'])),null!=_0x29d7e0['commentId']&&(_0x4dacb8['commentId']=String(_0x29d7e0['commentId'])),null!=_0x29d7e0['documentId']&&(_0x4dacb8['documentId']=String(_0x29d7e0['documentId'])),_0x4dacb8;},_0x3ce88b['toObject']=function(_0x542a97,_0x240770){_0x240770||(_0x240770={});var _0x23c97d={};return _0x240770['defaults']&&(_0x23c97d['commentThreadId']='',_0x23c97d['commentId']='',_0x23c97d['documentId']=''),null!=_0x542a97['commentThreadId']&&_0x542a97['hasOwnProperty']('commentThreadId')&&(_0x23c97d['commentThreadId']=_0x542a97['commentThreadId']),null!=_0x542a97['commentId']&&_0x542a97['hasOwnProperty']('commentId')&&(_0x23c97d['commentId']=_0x542a97['commentId']),null!=_0x542a97['documentId']&&_0x542a97['hasOwnProperty']('documentId')&&(_0x23c97d['documentId']=_0x542a97['documentId']),_0x23c97d;},_0x3ce88b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3ce88b['getTypeUrl']=function(_0x2c181e){return void 0x0===_0x2c181e&&(_0x2c181e='type.googleapis.com'),_0x2c181e+'/CommentsV2RemoveCommentMessage';},_0x3ce88b;}()),_0x1d55ed['CommentsV2GetDocumentThreadsMessage']=(function(){function _0xb08f76(_0x4bf72f){if(_0x4bf72f){for(var _0x14d2ec=Object['keys'](_0x4bf72f),_0x8e19d4=0x0;_0x8e19d4<_0x14d2ec['length'];++_0x8e19d4)null!=_0x4bf72f[_0x14d2ec[_0x8e19d4]]&&(this[_0x14d2ec[_0x8e19d4]]=_0x4bf72f[_0x14d2ec[_0x8e19d4]]);}}return _0xb08f76['prototype']['documentId']='',_0xb08f76['create']=function(_0x5cc8ba){return new _0xb08f76(_0x5cc8ba);},_0xb08f76['encode']=function(_0x44076f,_0x442d4f){return _0x442d4f||(_0x442d4f=_0x214d5c['create']()),null!=_0x44076f['documentId']&&Object['hasOwnProperty']['call'](_0x44076f,'documentId')&&_0x442d4f['uint32'](0xa)['string'](_0x44076f['documentId']),_0x442d4f;},_0xb08f76['encodeDelimited']=function(_0x495366,_0x25ac83){return this['encode'](_0x495366,_0x25ac83)['ldelim']();},_0xb08f76['decode']=function(_0x2e5187,_0x360bab,_0x594f23){_0x2e5187 instanceof _0x10ed9a||(_0x2e5187=_0x10ed9a['create'](_0x2e5187));for(var _0x42f031=void 0x0===_0x360bab?_0x2e5187['len']:_0x2e5187['pos']+_0x360bab,_0x55325a=new _0x1d55ed['CommentsV2GetDocumentThreadsMessage']();_0x2e5187['pos']<_0x42f031;){var _0x3bbe2c=_0x2e5187['uint32']();if(_0x3bbe2c===_0x594f23)break;_0x3bbe2c>>>0x3==0x1?_0x55325a['documentId']=_0x2e5187['string']():_0x2e5187['skipType'](0x7&_0x3bbe2c);}return _0x55325a;},_0xb08f76['decodeDelimited']=function(_0x11a257){return _0x11a257 instanceof _0x10ed9a||(_0x11a257=new _0x10ed9a(_0x11a257)),this['decode'](_0x11a257,_0x11a257['uint32']());},_0xb08f76['verify']=function(_0x54771a){return'object'!=typeof _0x54771a||null===_0x54771a?'object\x20expected':null!=_0x54771a['documentId']&&_0x54771a['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x54771a['documentId'])?'documentId:\x20string\x20expected':null;},_0xb08f76['fromObject']=function(_0x15c6ec){if(_0x15c6ec instanceof _0x1d55ed['CommentsV2GetDocumentThreadsMessage'])return _0x15c6ec;var _0x149d8e=new _0x1d55ed['CommentsV2GetDocumentThreadsMessage']();return null!=_0x15c6ec['documentId']&&(_0x149d8e['documentId']=String(_0x15c6ec['documentId'])),_0x149d8e;},_0xb08f76['toObject']=function(_0x384d82,_0x1ddaea){_0x1ddaea||(_0x1ddaea={});var _0x27e1cb={};return _0x1ddaea['defaults']&&(_0x27e1cb['documentId']=''),null!=_0x384d82['documentId']&&_0x384d82['hasOwnProperty']('documentId')&&(_0x27e1cb['documentId']=_0x384d82['documentId']),_0x27e1cb;},_0xb08f76['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xb08f76['getTypeUrl']=function(_0x4f54b1){return void 0x0===_0x4f54b1&&(_0x4f54b1='type.googleapis.com'),_0x4f54b1+'/CommentsV2GetDocumentThreadsMessage';},_0xb08f76;}()),_0x1d55ed['CommentsV2GetCommentThreadMessage']=(function(){function _0x45c509(_0x2b3d55){if(_0x2b3d55){for(var _0x4cdc54=Object['keys'](_0x2b3d55),_0x555a90=0x0;_0x555a90<_0x4cdc54['length'];++_0x555a90)null!=_0x2b3d55[_0x4cdc54[_0x555a90]]&&(this[_0x4cdc54[_0x555a90]]=_0x2b3d55[_0x4cdc54[_0x555a90]]);}}return _0x45c509['prototype']['commentThreadId']='',_0x45c509['prototype']['documentId']='',_0x45c509['create']=function(_0x86c6de){return new _0x45c509(_0x86c6de);},_0x45c509['encode']=function(_0x574bb6,_0x22e7a6){return _0x22e7a6||(_0x22e7a6=_0x214d5c['create']()),null!=_0x574bb6['commentThreadId']&&Object['hasOwnProperty']['call'](_0x574bb6,'commentThreadId')&&_0x22e7a6['uint32'](0xa)['string'](_0x574bb6['commentThreadId']),null!=_0x574bb6['documentId']&&Object['hasOwnProperty']['call'](_0x574bb6,'documentId')&&_0x22e7a6['uint32'](0x12)['string'](_0x574bb6['documentId']),_0x22e7a6;},_0x45c509['encodeDelimited']=function(_0x43e03d,_0x2b555d){return this['encode'](_0x43e03d,_0x2b555d)['ldelim']();},_0x45c509['decode']=function(_0xc1e04a,_0x2315ed,_0x5e7059){_0xc1e04a instanceof _0x10ed9a||(_0xc1e04a=_0x10ed9a['create'](_0xc1e04a));for(var _0x4a7adf=void 0x0===_0x2315ed?_0xc1e04a['len']:_0xc1e04a['pos']+_0x2315ed,_0x57a31e=new _0x1d55ed['CommentsV2GetCommentThreadMessage']();_0xc1e04a['pos']<_0x4a7adf;){var _0x4be9de=_0xc1e04a['uint32']();if(_0x4be9de===_0x5e7059)break;switch(_0x4be9de>>>0x3){case 0x1:_0x57a31e['commentThreadId']=_0xc1e04a['string']();break;case 0x2:_0x57a31e['documentId']=_0xc1e04a['string']();break;default:_0xc1e04a['skipType'](0x7&_0x4be9de);}}return _0x57a31e;},_0x45c509['decodeDelimited']=function(_0x8b2ecc){return _0x8b2ecc instanceof _0x10ed9a||(_0x8b2ecc=new _0x10ed9a(_0x8b2ecc)),this['decode'](_0x8b2ecc,_0x8b2ecc['uint32']());},_0x45c509['verify']=function(_0x5be2c3){return'object'!=typeof _0x5be2c3||null===_0x5be2c3?'object\x20expected':null!=_0x5be2c3['commentThreadId']&&_0x5be2c3['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x5be2c3['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x5be2c3['documentId']&&_0x5be2c3['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x5be2c3['documentId'])?'documentId:\x20string\x20expected':null;},_0x45c509['fromObject']=function(_0x37d68f){if(_0x37d68f instanceof _0x1d55ed['CommentsV2GetCommentThreadMessage'])return _0x37d68f;var _0x5d1098=new _0x1d55ed['CommentsV2GetCommentThreadMessage']();return null!=_0x37d68f['commentThreadId']&&(_0x5d1098['commentThreadId']=String(_0x37d68f['commentThreadId'])),null!=_0x37d68f['documentId']&&(_0x5d1098['documentId']=String(_0x37d68f['documentId'])),_0x5d1098;},_0x45c509['toObject']=function(_0x3ba1f8,_0x4ef635){_0x4ef635||(_0x4ef635={});var _0x5988a3={};return _0x4ef635['defaults']&&(_0x5988a3['commentThreadId']='',_0x5988a3['documentId']=''),null!=_0x3ba1f8['commentThreadId']&&_0x3ba1f8['hasOwnProperty']('commentThreadId')&&(_0x5988a3['commentThreadId']=_0x3ba1f8['commentThreadId']),null!=_0x3ba1f8['documentId']&&_0x3ba1f8['hasOwnProperty']('documentId')&&(_0x5988a3['documentId']=_0x3ba1f8['documentId']),_0x5988a3;},_0x45c509['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x45c509['getTypeUrl']=function(_0x108129){return void 0x0===_0x108129&&(_0x108129='type.googleapis.com'),_0x108129+'/CommentsV2GetCommentThreadMessage';},_0x45c509;}()),_0x1d55ed['CommentsV2ConnectMessage']=(function(){function _0x46ded2(_0x588f37){if(_0x588f37){for(var _0x33778d=Object['keys'](_0x588f37),_0x486c64=0x0;_0x486c64<_0x33778d['length'];++_0x486c64)null!=_0x588f37[_0x33778d[_0x486c64]]&&(this[_0x33778d[_0x486c64]]=_0x588f37[_0x33778d[_0x486c64]]);}}return _0x46ded2['prototype']['documentId']='',_0x46ded2['create']=function(_0x1ab354){return new _0x46ded2(_0x1ab354);},_0x46ded2['encode']=function(_0x5cf9b3,_0x25564a){return _0x25564a||(_0x25564a=_0x214d5c['create']()),null!=_0x5cf9b3['documentId']&&Object['hasOwnProperty']['call'](_0x5cf9b3,'documentId')&&_0x25564a['uint32'](0xa)['string'](_0x5cf9b3['documentId']),_0x25564a;},_0x46ded2['encodeDelimited']=function(_0x40629f,_0x2ab210){return this['encode'](_0x40629f,_0x2ab210)['ldelim']();},_0x46ded2['decode']=function(_0x1c71a2,_0x570097,_0x125f39){_0x1c71a2 instanceof _0x10ed9a||(_0x1c71a2=_0x10ed9a['create'](_0x1c71a2));for(var _0x1e46b5=void 0x0===_0x570097?_0x1c71a2['len']:_0x1c71a2['pos']+_0x570097,_0xd36c44=new _0x1d55ed['CommentsV2ConnectMessage']();_0x1c71a2['pos']<_0x1e46b5;){var _0x4ba694=_0x1c71a2['uint32']();if(_0x4ba694===_0x125f39)break;_0x4ba694>>>0x3==0x1?_0xd36c44['documentId']=_0x1c71a2['string']():_0x1c71a2['skipType'](0x7&_0x4ba694);}return _0xd36c44;},_0x46ded2['decodeDelimited']=function(_0x241c19){return _0x241c19 instanceof _0x10ed9a||(_0x241c19=new _0x10ed9a(_0x241c19)),this['decode'](_0x241c19,_0x241c19['uint32']());},_0x46ded2['verify']=function(_0x277c83){return'object'!=typeof _0x277c83||null===_0x277c83?'object\x20expected':null!=_0x277c83['documentId']&&_0x277c83['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x277c83['documentId'])?'documentId:\x20string\x20expected':null;},_0x46ded2['fromObject']=function(_0x505421){if(_0x505421 instanceof _0x1d55ed['CommentsV2ConnectMessage'])return _0x505421;var _0x150bc4=new _0x1d55ed['CommentsV2ConnectMessage']();return null!=_0x505421['documentId']&&(_0x150bc4['documentId']=String(_0x505421['documentId'])),_0x150bc4;},_0x46ded2['toObject']=function(_0x2781ce,_0xe14ff8){_0xe14ff8||(_0xe14ff8={});var _0x35b7ef={};return _0xe14ff8['defaults']&&(_0x35b7ef['documentId']=''),null!=_0x2781ce['documentId']&&_0x2781ce['hasOwnProperty']('documentId')&&(_0x35b7ef['documentId']=_0x2781ce['documentId']),_0x35b7ef;},_0x46ded2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x46ded2['getTypeUrl']=function(_0x151edb){return void 0x0===_0x151edb&&(_0x151edb='type.googleapis.com'),_0x151edb+'/CommentsV2ConnectMessage';},_0x46ded2;}()),_0x1d55ed['CommentsV2AddCommentMessage']=(function(){function _0x43bdf1(_0x1cc680){if(_0x1cc680){for(var _0x4285df=Object['keys'](_0x1cc680),_0x5555d5=0x0;_0x5555d5<_0x4285df['length'];++_0x5555d5)null!=_0x1cc680[_0x4285df[_0x5555d5]]&&(this[_0x4285df[_0x5555d5]]=_0x1cc680[_0x4285df[_0x5555d5]]);}}return _0x43bdf1['prototype']['commentThreadId']='',_0x43bdf1['prototype']['content']='',_0x43bdf1['prototype']['documentId']='',_0x43bdf1['prototype']['commentId']='',_0x43bdf1['prototype']['createdAt']='',_0x43bdf1['prototype']['userId']='',_0x43bdf1['prototype']['attributes']='',_0x43bdf1['prototype']['commentThread']=null,_0x43bdf1['create']=function(_0x1d080d){return new _0x43bdf1(_0x1d080d);},_0x43bdf1['encode']=function(_0x97a652,_0x33609a){return _0x33609a||(_0x33609a=_0x214d5c['create']()),null!=_0x97a652['commentThreadId']&&Object['hasOwnProperty']['call'](_0x97a652,'commentThreadId')&&_0x33609a['uint32'](0xa)['string'](_0x97a652['commentThreadId']),null!=_0x97a652['content']&&Object['hasOwnProperty']['call'](_0x97a652,'content')&&_0x33609a['uint32'](0x12)['string'](_0x97a652['content']),null!=_0x97a652['documentId']&&Object['hasOwnProperty']['call'](_0x97a652,'documentId')&&_0x33609a['uint32'](0x1a)['string'](_0x97a652['documentId']),null!=_0x97a652['commentId']&&Object['hasOwnProperty']['call'](_0x97a652,'commentId')&&_0x33609a['uint32'](0x22)['string'](_0x97a652['commentId']),null!=_0x97a652['createdAt']&&Object['hasOwnProperty']['call'](_0x97a652,'createdAt')&&_0x33609a['uint32'](0x2a)['string'](_0x97a652['createdAt']),null!=_0x97a652['userId']&&Object['hasOwnProperty']['call'](_0x97a652,'userId')&&_0x33609a['uint32'](0x32)['string'](_0x97a652['userId']),null!=_0x97a652['attributes']&&Object['hasOwnProperty']['call'](_0x97a652,'attributes')&&_0x33609a['uint32'](0x3a)['string'](_0x97a652['attributes']),null!=_0x97a652['commentThread']&&Object['hasOwnProperty']['call'](_0x97a652,'commentThread')&&_0x1d55ed['CommentsThreadDescriptor']['encode'](_0x97a652['commentThread'],_0x33609a['uint32'](0x42)['fork']())['ldelim'](),_0x33609a;},_0x43bdf1['encodeDelimited']=function(_0x1601ef,_0x31834b){return this['encode'](_0x1601ef,_0x31834b)['ldelim']();},_0x43bdf1['decode']=function(_0x2c2e83,_0x1b31d6,_0x35833c){_0x2c2e83 instanceof _0x10ed9a||(_0x2c2e83=_0x10ed9a['create'](_0x2c2e83));for(var _0x26cc39=void 0x0===_0x1b31d6?_0x2c2e83['len']:_0x2c2e83['pos']+_0x1b31d6,_0x4c7c19=new _0x1d55ed['CommentsV2AddCommentMessage']();_0x2c2e83['pos']<_0x26cc39;){var _0x4ed377=_0x2c2e83['uint32']();if(_0x4ed377===_0x35833c)break;switch(_0x4ed377>>>0x3){case 0x1:_0x4c7c19['commentThreadId']=_0x2c2e83['string']();break;case 0x2:_0x4c7c19['content']=_0x2c2e83['string']();break;case 0x3:_0x4c7c19['documentId']=_0x2c2e83['string']();break;case 0x4:_0x4c7c19['commentId']=_0x2c2e83['string']();break;case 0x5:_0x4c7c19['createdAt']=_0x2c2e83['string']();break;case 0x6:_0x4c7c19['userId']=_0x2c2e83['string']();break;case 0x7:_0x4c7c19['attributes']=_0x2c2e83['string']();break;case 0x8:_0x4c7c19['commentThread']=_0x1d55ed['CommentsThreadDescriptor']['decode'](_0x2c2e83,_0x2c2e83['uint32']());break;default:_0x2c2e83['skipType'](0x7&_0x4ed377);}}return _0x4c7c19;},_0x43bdf1['decodeDelimited']=function(_0x553705){return _0x553705 instanceof _0x10ed9a||(_0x553705=new _0x10ed9a(_0x553705)),this['decode'](_0x553705,_0x553705['uint32']());},_0x43bdf1['verify']=function(_0x14affa){if('object'!=typeof _0x14affa||null===_0x14affa)return'object\x20expected';if(null!=_0x14affa['commentThreadId']&&_0x14affa['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x14affa['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x14affa['content']&&_0x14affa['hasOwnProperty']('content')&&!_0x17c6dc['isString'](_0x14affa['content']))return'content:\x20string\x20expected';if(null!=_0x14affa['documentId']&&_0x14affa['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x14affa['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x14affa['commentId']&&_0x14affa['hasOwnProperty']('commentId')&&!_0x17c6dc['isString'](_0x14affa['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x14affa['createdAt']&&_0x14affa['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x14affa['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x14affa['userId']&&_0x14affa['hasOwnProperty']('userId')&&!_0x17c6dc['isString'](_0x14affa['userId']))return'userId:\x20string\x20expected';if(null!=_0x14affa['attributes']&&_0x14affa['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x14affa['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x14affa['commentThread']&&_0x14affa['hasOwnProperty']('commentThread')){var _0x3809af=_0x1d55ed['CommentsThreadDescriptor']['verify'](_0x14affa['commentThread']);if(_0x3809af)return'commentThread.'+_0x3809af;}return null;},_0x43bdf1['fromObject']=function(_0x5365a3){if(_0x5365a3 instanceof _0x1d55ed['CommentsV2AddCommentMessage'])return _0x5365a3;var _0x20e2b7=new _0x1d55ed['CommentsV2AddCommentMessage']();if(null!=_0x5365a3['commentThreadId']&&(_0x20e2b7['commentThreadId']=String(_0x5365a3['commentThreadId'])),null!=_0x5365a3['content']&&(_0x20e2b7['content']=String(_0x5365a3['content'])),null!=_0x5365a3['documentId']&&(_0x20e2b7['documentId']=String(_0x5365a3['documentId'])),null!=_0x5365a3['commentId']&&(_0x20e2b7['commentId']=String(_0x5365a3['commentId'])),null!=_0x5365a3['createdAt']&&(_0x20e2b7['createdAt']=String(_0x5365a3['createdAt'])),null!=_0x5365a3['userId']&&(_0x20e2b7['userId']=String(_0x5365a3['userId'])),null!=_0x5365a3['attributes']&&(_0x20e2b7['attributes']=String(_0x5365a3['attributes'])),null!=_0x5365a3['commentThread']){if('object'!=typeof _0x5365a3['commentThread'])throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0x20e2b7['commentThread']=_0x1d55ed['CommentsThreadDescriptor']['fromObject'](_0x5365a3['commentThread']);}return _0x20e2b7;},_0x43bdf1['toObject']=function(_0x4f213c,_0x4126d7){_0x4126d7||(_0x4126d7={});var _0x50dbfc={};return _0x4126d7['defaults']&&(_0x50dbfc['commentThreadId']='',_0x50dbfc['content']='',_0x50dbfc['documentId']='',_0x50dbfc['commentId']='',_0x50dbfc['createdAt']='',_0x50dbfc['userId']='',_0x50dbfc['attributes']='',_0x50dbfc['commentThread']=null),null!=_0x4f213c['commentThreadId']&&_0x4f213c['hasOwnProperty']('commentThreadId')&&(_0x50dbfc['commentThreadId']=_0x4f213c['commentThreadId']),null!=_0x4f213c['content']&&_0x4f213c['hasOwnProperty']('content')&&(_0x50dbfc['content']=_0x4f213c['content']),null!=_0x4f213c['documentId']&&_0x4f213c['hasOwnProperty']('documentId')&&(_0x50dbfc['documentId']=_0x4f213c['documentId']),null!=_0x4f213c['commentId']&&_0x4f213c['hasOwnProperty']('commentId')&&(_0x50dbfc['commentId']=_0x4f213c['commentId']),null!=_0x4f213c['createdAt']&&_0x4f213c['hasOwnProperty']('createdAt')&&(_0x50dbfc['createdAt']=_0x4f213c['createdAt']),null!=_0x4f213c['userId']&&_0x4f213c['hasOwnProperty']('userId')&&(_0x50dbfc['userId']=_0x4f213c['userId']),null!=_0x4f213c['attributes']&&_0x4f213c['hasOwnProperty']('attributes')&&(_0x50dbfc['attributes']=_0x4f213c['attributes']),null!=_0x4f213c['commentThread']&&_0x4f213c['hasOwnProperty']('commentThread')&&(_0x50dbfc['commentThread']=_0x1d55ed['CommentsThreadDescriptor']['toObject'](_0x4f213c['commentThread'],_0x4126d7)),_0x50dbfc;},_0x43bdf1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x43bdf1['getTypeUrl']=function(_0x26fd6a){return void 0x0===_0x26fd6a&&(_0x26fd6a='type.googleapis.com'),_0x26fd6a+'/CommentsV2AddCommentMessage';},_0x43bdf1;}()),_0x1d55ed['CommentsV2UpdateCommentThreadMessage']=(function(){function _0x119de6(_0x10551e){if(_0x10551e){for(var _0x5a0c34=Object['keys'](_0x10551e),_0x272d3a=0x0;_0x272d3a<_0x5a0c34['length'];++_0x272d3a)null!=_0x10551e[_0x5a0c34[_0x272d3a]]&&(this[_0x5a0c34[_0x272d3a]]=_0x10551e[_0x5a0c34[_0x272d3a]]);}}return _0x119de6['prototype']['commentThreadId']='',_0x119de6['prototype']['documentId']='',_0x119de6['prototype']['context']='',_0x119de6['prototype']['attributes']='',_0x119de6['prototype']['unlinkedAt']='',_0x119de6['create']=function(_0x3c660c){return new _0x119de6(_0x3c660c);},_0x119de6['encode']=function(_0x189003,_0x4e58d2){return _0x4e58d2||(_0x4e58d2=_0x214d5c['create']()),null!=_0x189003['commentThreadId']&&Object['hasOwnProperty']['call'](_0x189003,'commentThreadId')&&_0x4e58d2['uint32'](0xa)['string'](_0x189003['commentThreadId']),null!=_0x189003['documentId']&&Object['hasOwnProperty']['call'](_0x189003,'documentId')&&_0x4e58d2['uint32'](0x12)['string'](_0x189003['documentId']),null!=_0x189003['context']&&Object['hasOwnProperty']['call'](_0x189003,'context')&&_0x4e58d2['uint32'](0x1a)['string'](_0x189003['context']),null!=_0x189003['attributes']&&Object['hasOwnProperty']['call'](_0x189003,'attributes')&&_0x4e58d2['uint32'](0x22)['string'](_0x189003['attributes']),null!=_0x189003['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x189003,'unlinkedAt')&&_0x4e58d2['uint32'](0x2a)['string'](_0x189003['unlinkedAt']),_0x4e58d2;},_0x119de6['encodeDelimited']=function(_0x4dbedb,_0x1b9272){return this['encode'](_0x4dbedb,_0x1b9272)['ldelim']();},_0x119de6['decode']=function(_0x1d4044,_0x11c950,_0x564027){_0x1d4044 instanceof _0x10ed9a||(_0x1d4044=_0x10ed9a['create'](_0x1d4044));for(var _0x4bd083=void 0x0===_0x11c950?_0x1d4044['len']:_0x1d4044['pos']+_0x11c950,_0x48b682=new _0x1d55ed['CommentsV2UpdateCommentThreadMessage']();_0x1d4044['pos']<_0x4bd083;){var _0x34c934=_0x1d4044['uint32']();if(_0x34c934===_0x564027)break;switch(_0x34c934>>>0x3){case 0x1:_0x48b682['commentThreadId']=_0x1d4044['string']();break;case 0x2:_0x48b682['documentId']=_0x1d4044['string']();break;case 0x3:_0x48b682['context']=_0x1d4044['string']();break;case 0x4:_0x48b682['attributes']=_0x1d4044['string']();break;case 0x5:_0x48b682['unlinkedAt']=_0x1d4044['string']();break;default:_0x1d4044['skipType'](0x7&_0x34c934);}}return _0x48b682;},_0x119de6['decodeDelimited']=function(_0x213409){return _0x213409 instanceof _0x10ed9a||(_0x213409=new _0x10ed9a(_0x213409)),this['decode'](_0x213409,_0x213409['uint32']());},_0x119de6['verify']=function(_0x341666){return'object'!=typeof _0x341666||null===_0x341666?'object\x20expected':null!=_0x341666['commentThreadId']&&_0x341666['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x341666['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x341666['documentId']&&_0x341666['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x341666['documentId'])?'documentId:\x20string\x20expected':null!=_0x341666['context']&&_0x341666['hasOwnProperty']('context')&&!_0x17c6dc['isString'](_0x341666['context'])?'context:\x20string\x20expected':null!=_0x341666['attributes']&&_0x341666['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x341666['attributes'])?'attributes:\x20string\x20expected':null!=_0x341666['unlinkedAt']&&_0x341666['hasOwnProperty']('unlinkedAt')&&!_0x17c6dc['isString'](_0x341666['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x119de6['fromObject']=function(_0x194506){if(_0x194506 instanceof _0x1d55ed['CommentsV2UpdateCommentThreadMessage'])return _0x194506;var _0x1a5eb9=new _0x1d55ed['CommentsV2UpdateCommentThreadMessage']();return null!=_0x194506['commentThreadId']&&(_0x1a5eb9['commentThreadId']=String(_0x194506['commentThreadId'])),null!=_0x194506['documentId']&&(_0x1a5eb9['documentId']=String(_0x194506['documentId'])),null!=_0x194506['context']&&(_0x1a5eb9['context']=String(_0x194506['context'])),null!=_0x194506['attributes']&&(_0x1a5eb9['attributes']=String(_0x194506['attributes'])),null!=_0x194506['unlinkedAt']&&(_0x1a5eb9['unlinkedAt']=String(_0x194506['unlinkedAt'])),_0x1a5eb9;},_0x119de6['toObject']=function(_0xfb3e0d,_0x1b2c1e){_0x1b2c1e||(_0x1b2c1e={});var _0x1affc8={};return _0x1b2c1e['defaults']&&(_0x1affc8['commentThreadId']='',_0x1affc8['documentId']='',_0x1affc8['context']='',_0x1affc8['attributes']='',_0x1affc8['unlinkedAt']=''),null!=_0xfb3e0d['commentThreadId']&&_0xfb3e0d['hasOwnProperty']('commentThreadId')&&(_0x1affc8['commentThreadId']=_0xfb3e0d['commentThreadId']),null!=_0xfb3e0d['documentId']&&_0xfb3e0d['hasOwnProperty']('documentId')&&(_0x1affc8['documentId']=_0xfb3e0d['documentId']),null!=_0xfb3e0d['context']&&_0xfb3e0d['hasOwnProperty']('context')&&(_0x1affc8['context']=_0xfb3e0d['context']),null!=_0xfb3e0d['attributes']&&_0xfb3e0d['hasOwnProperty']('attributes')&&(_0x1affc8['attributes']=_0xfb3e0d['attributes']),null!=_0xfb3e0d['unlinkedAt']&&_0xfb3e0d['hasOwnProperty']('unlinkedAt')&&(_0x1affc8['unlinkedAt']=_0xfb3e0d['unlinkedAt']),_0x1affc8;},_0x119de6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x119de6['getTypeUrl']=function(_0x2994fe){return void 0x0===_0x2994fe&&(_0x2994fe='type.googleapis.com'),_0x2994fe+'/CommentsV2UpdateCommentThreadMessage';},_0x119de6;}()),_0x1d55ed['CommentsV2ResolveCommentThreadMessage']=(function(){function _0x375b57(_0x44a30a){if(_0x44a30a){for(var _0x5ca75d=Object['keys'](_0x44a30a),_0x4dd18c=0x0;_0x4dd18c<_0x5ca75d['length'];++_0x4dd18c)null!=_0x44a30a[_0x5ca75d[_0x4dd18c]]&&(this[_0x5ca75d[_0x4dd18c]]=_0x44a30a[_0x5ca75d[_0x4dd18c]]);}}return _0x375b57['prototype']['commentThreadId']='',_0x375b57['prototype']['documentId']='',_0x375b57['prototype']['resolvedBy']='',_0x375b57['prototype']['resolvedAt']='',_0x375b57['create']=function(_0x4c4780){return new _0x375b57(_0x4c4780);},_0x375b57['encode']=function(_0x536ce6,_0x46532a){return _0x46532a||(_0x46532a=_0x214d5c['create']()),null!=_0x536ce6['commentThreadId']&&Object['hasOwnProperty']['call'](_0x536ce6,'commentThreadId')&&_0x46532a['uint32'](0xa)['string'](_0x536ce6['commentThreadId']),null!=_0x536ce6['documentId']&&Object['hasOwnProperty']['call'](_0x536ce6,'documentId')&&_0x46532a['uint32'](0x12)['string'](_0x536ce6['documentId']),null!=_0x536ce6['resolvedBy']&&Object['hasOwnProperty']['call'](_0x536ce6,'resolvedBy')&&_0x46532a['uint32'](0x1a)['string'](_0x536ce6['resolvedBy']),null!=_0x536ce6['resolvedAt']&&Object['hasOwnProperty']['call'](_0x536ce6,'resolvedAt')&&_0x46532a['uint32'](0x22)['string'](_0x536ce6['resolvedAt']),_0x46532a;},_0x375b57['encodeDelimited']=function(_0x1ce005,_0x21b55c){return this['encode'](_0x1ce005,_0x21b55c)['ldelim']();},_0x375b57['decode']=function(_0x2a3c56,_0x45152c,_0x25a4aa){_0x2a3c56 instanceof _0x10ed9a||(_0x2a3c56=_0x10ed9a['create'](_0x2a3c56));for(var _0xec26fd=void 0x0===_0x45152c?_0x2a3c56['len']:_0x2a3c56['pos']+_0x45152c,_0x2b70c2=new _0x1d55ed['CommentsV2ResolveCommentThreadMessage']();_0x2a3c56['pos']<_0xec26fd;){var _0x8b5dac=_0x2a3c56['uint32']();if(_0x8b5dac===_0x25a4aa)break;switch(_0x8b5dac>>>0x3){case 0x1:_0x2b70c2['commentThreadId']=_0x2a3c56['string']();break;case 0x2:_0x2b70c2['documentId']=_0x2a3c56['string']();break;case 0x3:_0x2b70c2['resolvedBy']=_0x2a3c56['string']();break;case 0x4:_0x2b70c2['resolvedAt']=_0x2a3c56['string']();break;default:_0x2a3c56['skipType'](0x7&_0x8b5dac);}}return _0x2b70c2;},_0x375b57['decodeDelimited']=function(_0x5699a9){return _0x5699a9 instanceof _0x10ed9a||(_0x5699a9=new _0x10ed9a(_0x5699a9)),this['decode'](_0x5699a9,_0x5699a9['uint32']());},_0x375b57['verify']=function(_0x3f6645){return'object'!=typeof _0x3f6645||null===_0x3f6645?'object\x20expected':null!=_0x3f6645['commentThreadId']&&_0x3f6645['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x3f6645['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3f6645['documentId']&&_0x3f6645['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x3f6645['documentId'])?'documentId:\x20string\x20expected':null!=_0x3f6645['resolvedBy']&&_0x3f6645['hasOwnProperty']('resolvedBy')&&!_0x17c6dc['isString'](_0x3f6645['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x3f6645['resolvedAt']&&_0x3f6645['hasOwnProperty']('resolvedAt')&&!_0x17c6dc['isString'](_0x3f6645['resolvedAt'])?'resolvedAt:\x20string\x20expected':null;},_0x375b57['fromObject']=function(_0x512f43){if(_0x512f43 instanceof _0x1d55ed['CommentsV2ResolveCommentThreadMessage'])return _0x512f43;var _0x4fa19c=new _0x1d55ed['CommentsV2ResolveCommentThreadMessage']();return null!=_0x512f43['commentThreadId']&&(_0x4fa19c['commentThreadId']=String(_0x512f43['commentThreadId'])),null!=_0x512f43['documentId']&&(_0x4fa19c['documentId']=String(_0x512f43['documentId'])),null!=_0x512f43['resolvedBy']&&(_0x4fa19c['resolvedBy']=String(_0x512f43['resolvedBy'])),null!=_0x512f43['resolvedAt']&&(_0x4fa19c['resolvedAt']=String(_0x512f43['resolvedAt'])),_0x4fa19c;},_0x375b57['toObject']=function(_0x412ab6,_0x249ddc){_0x249ddc||(_0x249ddc={});var _0xeec1d3={};return _0x249ddc['defaults']&&(_0xeec1d3['commentThreadId']='',_0xeec1d3['documentId']='',_0xeec1d3['resolvedBy']='',_0xeec1d3['resolvedAt']=''),null!=_0x412ab6['commentThreadId']&&_0x412ab6['hasOwnProperty']('commentThreadId')&&(_0xeec1d3['commentThreadId']=_0x412ab6['commentThreadId']),null!=_0x412ab6['documentId']&&_0x412ab6['hasOwnProperty']('documentId')&&(_0xeec1d3['documentId']=_0x412ab6['documentId']),null!=_0x412ab6['resolvedBy']&&_0x412ab6['hasOwnProperty']('resolvedBy')&&(_0xeec1d3['resolvedBy']=_0x412ab6['resolvedBy']),null!=_0x412ab6['resolvedAt']&&_0x412ab6['hasOwnProperty']('resolvedAt')&&(_0xeec1d3['resolvedAt']=_0x412ab6['resolvedAt']),_0xeec1d3;},_0x375b57['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x375b57['getTypeUrl']=function(_0x8587){return void 0x0===_0x8587&&(_0x8587='type.googleapis.com'),_0x8587+'/CommentsV2ResolveCommentThreadMessage';},_0x375b57;}()),_0x1d55ed['CommentsV2ReopenCommentThreadMessage']=(function(){function _0x1ca52a(_0x5602ad){if(_0x5602ad){for(var _0x1639ff=Object['keys'](_0x5602ad),_0x32715f=0x0;_0x32715f<_0x1639ff['length'];++_0x32715f)null!=_0x5602ad[_0x1639ff[_0x32715f]]&&(this[_0x1639ff[_0x32715f]]=_0x5602ad[_0x1639ff[_0x32715f]]);}}return _0x1ca52a['prototype']['commentThreadId']='',_0x1ca52a['prototype']['documentId']='',_0x1ca52a['create']=function(_0x5204ef){return new _0x1ca52a(_0x5204ef);},_0x1ca52a['encode']=function(_0x2f1d22,_0x452e2e){return _0x452e2e||(_0x452e2e=_0x214d5c['create']()),null!=_0x2f1d22['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2f1d22,'commentThreadId')&&_0x452e2e['uint32'](0xa)['string'](_0x2f1d22['commentThreadId']),null!=_0x2f1d22['documentId']&&Object['hasOwnProperty']['call'](_0x2f1d22,'documentId')&&_0x452e2e['uint32'](0x12)['string'](_0x2f1d22['documentId']),_0x452e2e;},_0x1ca52a['encodeDelimited']=function(_0x1e7ec9,_0x2cdfd3){return this['encode'](_0x1e7ec9,_0x2cdfd3)['ldelim']();},_0x1ca52a['decode']=function(_0x2329af,_0x3559db,_0x44a00a){_0x2329af instanceof _0x10ed9a||(_0x2329af=_0x10ed9a['create'](_0x2329af));for(var _0x278eed=void 0x0===_0x3559db?_0x2329af['len']:_0x2329af['pos']+_0x3559db,_0xad7562=new _0x1d55ed['CommentsV2ReopenCommentThreadMessage']();_0x2329af['pos']<_0x278eed;){var _0x1c8ddb=_0x2329af['uint32']();if(_0x1c8ddb===_0x44a00a)break;switch(_0x1c8ddb>>>0x3){case 0x1:_0xad7562['commentThreadId']=_0x2329af['string']();break;case 0x2:_0xad7562['documentId']=_0x2329af['string']();break;default:_0x2329af['skipType'](0x7&_0x1c8ddb);}}return _0xad7562;},_0x1ca52a['decodeDelimited']=function(_0x5e516c){return _0x5e516c instanceof _0x10ed9a||(_0x5e516c=new _0x10ed9a(_0x5e516c)),this['decode'](_0x5e516c,_0x5e516c['uint32']());},_0x1ca52a['verify']=function(_0xbebf42){return'object'!=typeof _0xbebf42||null===_0xbebf42?'object\x20expected':null!=_0xbebf42['commentThreadId']&&_0xbebf42['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0xbebf42['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0xbebf42['documentId']&&_0xbebf42['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0xbebf42['documentId'])?'documentId:\x20string\x20expected':null;},_0x1ca52a['fromObject']=function(_0x1a104a){if(_0x1a104a instanceof _0x1d55ed['CommentsV2ReopenCommentThreadMessage'])return _0x1a104a;var _0x2548b4=new _0x1d55ed['CommentsV2ReopenCommentThreadMessage']();return null!=_0x1a104a['commentThreadId']&&(_0x2548b4['commentThreadId']=String(_0x1a104a['commentThreadId'])),null!=_0x1a104a['documentId']&&(_0x2548b4['documentId']=String(_0x1a104a['documentId'])),_0x2548b4;},_0x1ca52a['toObject']=function(_0x4ae2f0,_0x5793f5){_0x5793f5||(_0x5793f5={});var _0x26a7c0={};return _0x5793f5['defaults']&&(_0x26a7c0['commentThreadId']='',_0x26a7c0['documentId']=''),null!=_0x4ae2f0['commentThreadId']&&_0x4ae2f0['hasOwnProperty']('commentThreadId')&&(_0x26a7c0['commentThreadId']=_0x4ae2f0['commentThreadId']),null!=_0x4ae2f0['documentId']&&_0x4ae2f0['hasOwnProperty']('documentId')&&(_0x26a7c0['documentId']=_0x4ae2f0['documentId']),_0x26a7c0;},_0x1ca52a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1ca52a['getTypeUrl']=function(_0x1e73ed){return void 0x0===_0x1e73ed&&(_0x1e73ed='type.googleapis.com'),_0x1e73ed+'/CommentsV2ReopenCommentThreadMessage';},_0x1ca52a;}()),_0x1d55ed['CommentsV2AddCommentThreadMessage']=(function(){function _0x4d4add(_0x450739){if(this['comments']=[],_0x450739){for(var _0x165fd2=Object['keys'](_0x450739),_0x3a5317=0x0;_0x3a5317<_0x165fd2['length'];++_0x3a5317)null!=_0x450739[_0x165fd2[_0x3a5317]]&&(this[_0x165fd2[_0x3a5317]]=_0x450739[_0x165fd2[_0x3a5317]]);}}return _0x4d4add['prototype']['documentId']='',_0x4d4add['prototype']['commentThreadId']='',_0x4d4add['prototype']['context']='',_0x4d4add['prototype']['createdAt']='',_0x4d4add['prototype']['resolvedAt']='',_0x4d4add['prototype']['resolvedBy']='',_0x4d4add['prototype']['attributes']='',_0x4d4add['prototype']['deletedAt']='',_0x4d4add['prototype']['comments']=_0x17c6dc['emptyArray'],_0x4d4add['create']=function(_0x42977b){return new _0x4d4add(_0x42977b);},_0x4d4add['encode']=function(_0x61c6e5,_0x15cd29){if(_0x15cd29||(_0x15cd29=_0x214d5c['create']()),null!=_0x61c6e5['documentId']&&Object['hasOwnProperty']['call'](_0x61c6e5,'documentId')&&_0x15cd29['uint32'](0xa)['string'](_0x61c6e5['documentId']),null!=_0x61c6e5['commentThreadId']&&Object['hasOwnProperty']['call'](_0x61c6e5,'commentThreadId')&&_0x15cd29['uint32'](0x12)['string'](_0x61c6e5['commentThreadId']),null!=_0x61c6e5['context']&&Object['hasOwnProperty']['call'](_0x61c6e5,'context')&&_0x15cd29['uint32'](0x1a)['string'](_0x61c6e5['context']),null!=_0x61c6e5['createdAt']&&Object['hasOwnProperty']['call'](_0x61c6e5,'createdAt')&&_0x15cd29['uint32'](0x22)['string'](_0x61c6e5['createdAt']),null!=_0x61c6e5['resolvedAt']&&Object['hasOwnProperty']['call'](_0x61c6e5,'resolvedAt')&&_0x15cd29['uint32'](0x2a)['string'](_0x61c6e5['resolvedAt']),null!=_0x61c6e5['resolvedBy']&&Object['hasOwnProperty']['call'](_0x61c6e5,'resolvedBy')&&_0x15cd29['uint32'](0x32)['string'](_0x61c6e5['resolvedBy']),null!=_0x61c6e5['attributes']&&Object['hasOwnProperty']['call'](_0x61c6e5,'attributes')&&_0x15cd29['uint32'](0x3a)['string'](_0x61c6e5['attributes']),null!=_0x61c6e5['deletedAt']&&Object['hasOwnProperty']['call'](_0x61c6e5,'deletedAt')&&_0x15cd29['uint32'](0x42)['string'](_0x61c6e5['deletedAt']),null!=_0x61c6e5['comments']&&_0x61c6e5['comments']['length']){for(var _0x40513e=0x0;_0x40513e<_0x61c6e5['comments']['length'];++_0x40513e)_0x1d55ed['CommentDescriptor']['encode'](_0x61c6e5['comments'][_0x40513e],_0x15cd29['uint32'](0x4a)['fork']())['ldelim']();}return _0x15cd29;},_0x4d4add['encodeDelimited']=function(_0x4ca649,_0x1df995){return this['encode'](_0x4ca649,_0x1df995)['ldelim']();},_0x4d4add['decode']=function(_0x260e35,_0x9e8be5,_0x363b73){_0x260e35 instanceof _0x10ed9a||(_0x260e35=_0x10ed9a['create'](_0x260e35));for(var _0x5f50ba=void 0x0===_0x9e8be5?_0x260e35['len']:_0x260e35['pos']+_0x9e8be5,_0x49bca1=new _0x1d55ed['CommentsV2AddCommentThreadMessage']();_0x260e35['pos']<_0x5f50ba;){var _0x2ecc8f=_0x260e35['uint32']();if(_0x2ecc8f===_0x363b73)break;switch(_0x2ecc8f>>>0x3){case 0x1:_0x49bca1['documentId']=_0x260e35['string']();break;case 0x2:_0x49bca1['commentThreadId']=_0x260e35['string']();break;case 0x3:_0x49bca1['context']=_0x260e35['string']();break;case 0x4:_0x49bca1['createdAt']=_0x260e35['string']();break;case 0x5:_0x49bca1['resolvedAt']=_0x260e35['string']();break;case 0x6:_0x49bca1['resolvedBy']=_0x260e35['string']();break;case 0x7:_0x49bca1['attributes']=_0x260e35['string']();break;case 0x8:_0x49bca1['deletedAt']=_0x260e35['string']();break;case 0x9:_0x49bca1['comments']&&_0x49bca1['comments']['length']||(_0x49bca1['comments']=[]),_0x49bca1['comments']['push'](_0x1d55ed['CommentDescriptor']['decode'](_0x260e35,_0x260e35['uint32']()));break;default:_0x260e35['skipType'](0x7&_0x2ecc8f);}}return _0x49bca1;},_0x4d4add['decodeDelimited']=function(_0x586f5d){return _0x586f5d instanceof _0x10ed9a||(_0x586f5d=new _0x10ed9a(_0x586f5d)),this['decode'](_0x586f5d,_0x586f5d['uint32']());},_0x4d4add['verify']=function(_0x6722f7){if('object'!=typeof _0x6722f7||null===_0x6722f7)return'object\x20expected';if(null!=_0x6722f7['documentId']&&_0x6722f7['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x6722f7['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x6722f7['commentThreadId']&&_0x6722f7['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x6722f7['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x6722f7['context']&&_0x6722f7['hasOwnProperty']('context')&&!_0x17c6dc['isString'](_0x6722f7['context']))return'context:\x20string\x20expected';if(null!=_0x6722f7['createdAt']&&_0x6722f7['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x6722f7['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x6722f7['resolvedAt']&&_0x6722f7['hasOwnProperty']('resolvedAt')&&!_0x17c6dc['isString'](_0x6722f7['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x6722f7['resolvedBy']&&_0x6722f7['hasOwnProperty']('resolvedBy')&&!_0x17c6dc['isString'](_0x6722f7['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x6722f7['attributes']&&_0x6722f7['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x6722f7['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x6722f7['deletedAt']&&_0x6722f7['hasOwnProperty']('deletedAt')&&!_0x17c6dc['isString'](_0x6722f7['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x6722f7['comments']&&_0x6722f7['hasOwnProperty']('comments')){if(!Array['isArray'](_0x6722f7['comments']))return'comments:\x20array\x20expected';for(var _0x58fda=0x0;_0x58fda<_0x6722f7['comments']['length'];++_0x58fda){var _0x57007f=_0x1d55ed['CommentDescriptor']['verify'](_0x6722f7['comments'][_0x58fda]);if(_0x57007f)return'comments.'+_0x57007f;}}return null;},_0x4d4add['fromObject']=function(_0x21074f){if(_0x21074f instanceof _0x1d55ed['CommentsV2AddCommentThreadMessage'])return _0x21074f;var _0x4dba4f=new _0x1d55ed['CommentsV2AddCommentThreadMessage']();if(null!=_0x21074f['documentId']&&(_0x4dba4f['documentId']=String(_0x21074f['documentId'])),null!=_0x21074f['commentThreadId']&&(_0x4dba4f['commentThreadId']=String(_0x21074f['commentThreadId'])),null!=_0x21074f['context']&&(_0x4dba4f['context']=String(_0x21074f['context'])),null!=_0x21074f['createdAt']&&(_0x4dba4f['createdAt']=String(_0x21074f['createdAt'])),null!=_0x21074f['resolvedAt']&&(_0x4dba4f['resolvedAt']=String(_0x21074f['resolvedAt'])),null!=_0x21074f['resolvedBy']&&(_0x4dba4f['resolvedBy']=String(_0x21074f['resolvedBy'])),null!=_0x21074f['attributes']&&(_0x4dba4f['attributes']=String(_0x21074f['attributes'])),null!=_0x21074f['deletedAt']&&(_0x4dba4f['deletedAt']=String(_0x21074f['deletedAt'])),_0x21074f['comments']){if(!Array['isArray'](_0x21074f['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0x4dba4f['comments']=[];for(var _0x117835=0x0;_0x117835<_0x21074f['comments']['length'];++_0x117835){if('object'!=typeof _0x21074f['comments'][_0x117835])throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0x4dba4f['comments'][_0x117835]=_0x1d55ed['CommentDescriptor']['fromObject'](_0x21074f['comments'][_0x117835]);}}return _0x4dba4f;},_0x4d4add['toObject']=function(_0x30f586,_0x3b4718){_0x3b4718||(_0x3b4718={});var _0x46f542={};if((_0x3b4718['arrays']||_0x3b4718['defaults'])&&(_0x46f542['comments']=[]),_0x3b4718['defaults']&&(_0x46f542['documentId']='',_0x46f542['commentThreadId']='',_0x46f542['context']='',_0x46f542['createdAt']='',_0x46f542['resolvedAt']='',_0x46f542['resolvedBy']='',_0x46f542['attributes']='',_0x46f542['deletedAt']=''),null!=_0x30f586['documentId']&&_0x30f586['hasOwnProperty']('documentId')&&(_0x46f542['documentId']=_0x30f586['documentId']),null!=_0x30f586['commentThreadId']&&_0x30f586['hasOwnProperty']('commentThreadId')&&(_0x46f542['commentThreadId']=_0x30f586['commentThreadId']),null!=_0x30f586['context']&&_0x30f586['hasOwnProperty']('context')&&(_0x46f542['context']=_0x30f586['context']),null!=_0x30f586['createdAt']&&_0x30f586['hasOwnProperty']('createdAt')&&(_0x46f542['createdAt']=_0x30f586['createdAt']),null!=_0x30f586['resolvedAt']&&_0x30f586['hasOwnProperty']('resolvedAt')&&(_0x46f542['resolvedAt']=_0x30f586['resolvedAt']),null!=_0x30f586['resolvedBy']&&_0x30f586['hasOwnProperty']('resolvedBy')&&(_0x46f542['resolvedBy']=_0x30f586['resolvedBy']),null!=_0x30f586['attributes']&&_0x30f586['hasOwnProperty']('attributes')&&(_0x46f542['attributes']=_0x30f586['attributes']),null!=_0x30f586['deletedAt']&&_0x30f586['hasOwnProperty']('deletedAt')&&(_0x46f542['deletedAt']=_0x30f586['deletedAt']),_0x30f586['comments']&&_0x30f586['comments']['length']){_0x46f542['comments']=[];for(var _0xda87bc=0x0;_0xda87bc<_0x30f586['comments']['length'];++_0xda87bc)_0x46f542['comments'][_0xda87bc]=_0x1d55ed['CommentDescriptor']['toObject'](_0x30f586['comments'][_0xda87bc],_0x3b4718);}return _0x46f542;},_0x4d4add['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4d4add['getTypeUrl']=function(_0x4dcf71){return void 0x0===_0x4dcf71&&(_0x4dcf71='type.googleapis.com'),_0x4dcf71+'/CommentsV2AddCommentThreadMessage';},_0x4d4add;}()),_0x1d55ed['CommentThreadAddedCommentDescriptor']=(function(){function _0x10ef2b(_0x39471b){if(_0x39471b){for(var _0x3d2796=Object['keys'](_0x39471b),_0x110f07=0x0;_0x110f07<_0x3d2796['length'];++_0x110f07)null!=_0x39471b[_0x3d2796[_0x110f07]]&&(this[_0x3d2796[_0x110f07]]=_0x39471b[_0x3d2796[_0x110f07]]);}}return _0x10ef2b['prototype']['commentId']='',_0x10ef2b['prototype']['createdAt']='',_0x10ef2b['create']=function(_0xafb61c){return new _0x10ef2b(_0xafb61c);},_0x10ef2b['encode']=function(_0x313e84,_0x42ded7){return _0x42ded7||(_0x42ded7=_0x214d5c['create']()),null!=_0x313e84['commentId']&&Object['hasOwnProperty']['call'](_0x313e84,'commentId')&&_0x42ded7['uint32'](0xa)['string'](_0x313e84['commentId']),null!=_0x313e84['createdAt']&&Object['hasOwnProperty']['call'](_0x313e84,'createdAt')&&_0x42ded7['uint32'](0x12)['string'](_0x313e84['createdAt']),_0x42ded7;},_0x10ef2b['encodeDelimited']=function(_0x11b7ec,_0x48fc2d){return this['encode'](_0x11b7ec,_0x48fc2d)['ldelim']();},_0x10ef2b['decode']=function(_0x153a00,_0x1eafc9,_0xd5f4ee){_0x153a00 instanceof _0x10ed9a||(_0x153a00=_0x10ed9a['create'](_0x153a00));for(var _0x746ca6=void 0x0===_0x1eafc9?_0x153a00['len']:_0x153a00['pos']+_0x1eafc9,_0x1dc6ff=new _0x1d55ed['CommentThreadAddedCommentDescriptor']();_0x153a00['pos']<_0x746ca6;){var _0x15496d=_0x153a00['uint32']();if(_0x15496d===_0xd5f4ee)break;switch(_0x15496d>>>0x3){case 0x1:_0x1dc6ff['commentId']=_0x153a00['string']();break;case 0x2:_0x1dc6ff['createdAt']=_0x153a00['string']();break;default:_0x153a00['skipType'](0x7&_0x15496d);}}return _0x1dc6ff;},_0x10ef2b['decodeDelimited']=function(_0x463b53){return _0x463b53 instanceof _0x10ed9a||(_0x463b53=new _0x10ed9a(_0x463b53)),this['decode'](_0x463b53,_0x463b53['uint32']());},_0x10ef2b['verify']=function(_0x1e8f01){return'object'!=typeof _0x1e8f01||null===_0x1e8f01?'object\x20expected':null!=_0x1e8f01['commentId']&&_0x1e8f01['hasOwnProperty']('commentId')&&!_0x17c6dc['isString'](_0x1e8f01['commentId'])?'commentId:\x20string\x20expected':null!=_0x1e8f01['createdAt']&&_0x1e8f01['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x1e8f01['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x10ef2b['fromObject']=function(_0x7df346){if(_0x7df346 instanceof _0x1d55ed['CommentThreadAddedCommentDescriptor'])return _0x7df346;var _0xab9988=new _0x1d55ed['CommentThreadAddedCommentDescriptor']();return null!=_0x7df346['commentId']&&(_0xab9988['commentId']=String(_0x7df346['commentId'])),null!=_0x7df346['createdAt']&&(_0xab9988['createdAt']=String(_0x7df346['createdAt'])),_0xab9988;},_0x10ef2b['toObject']=function(_0xdc02bd,_0x576059){_0x576059||(_0x576059={});var _0x136494={};return _0x576059['defaults']&&(_0x136494['commentId']='',_0x136494['createdAt']=''),null!=_0xdc02bd['commentId']&&_0xdc02bd['hasOwnProperty']('commentId')&&(_0x136494['commentId']=_0xdc02bd['commentId']),null!=_0xdc02bd['createdAt']&&_0xdc02bd['hasOwnProperty']('createdAt')&&(_0x136494['createdAt']=_0xdc02bd['createdAt']),_0x136494;},_0x10ef2b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x10ef2b['getTypeUrl']=function(_0x36f810){return void 0x0===_0x36f810&&(_0x36f810='type.googleapis.com'),_0x36f810+'/CommentThreadAddedCommentDescriptor';},_0x10ef2b;}()),_0x1d55ed['CommentsThreadDescriptor']=(function(){function _0x4481da(_0x2306f5){if(this['comments']=[],_0x2306f5){for(var _0x516b45=Object['keys'](_0x2306f5),_0x1a5d4d=0x0;_0x1a5d4d<_0x516b45['length'];++_0x1a5d4d)null!=_0x2306f5[_0x516b45[_0x1a5d4d]]&&(this[_0x516b45[_0x1a5d4d]]=_0x2306f5[_0x516b45[_0x1a5d4d]]);}}return _0x4481da['prototype']['commentThreadId']='',_0x4481da['prototype']['comments']=_0x17c6dc['emptyArray'],_0x4481da['prototype']['resolvedAt']='',_0x4481da['prototype']['resolvedBy']='',_0x4481da['prototype']['context']='',_0x4481da['prototype']['createdAt']='',_0x4481da['prototype']['deletedAt']='',_0x4481da['prototype']['attributes']='',_0x4481da['prototype']['unlinkedAt']='',_0x4481da['create']=function(_0x1fd5f2){return new _0x4481da(_0x1fd5f2);},_0x4481da['encode']=function(_0x2eab78,_0x4c8d66){if(_0x4c8d66||(_0x4c8d66=_0x214d5c['create']()),null!=_0x2eab78['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2eab78,'commentThreadId')&&_0x4c8d66['uint32'](0xa)['string'](_0x2eab78['commentThreadId']),null!=_0x2eab78['comments']&&_0x2eab78['comments']['length']){for(var _0x185111=0x0;_0x185111<_0x2eab78['comments']['length'];++_0x185111)_0x1d55ed['CommentDescriptor']['encode'](_0x2eab78['comments'][_0x185111],_0x4c8d66['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x2eab78['resolvedAt']&&Object['hasOwnProperty']['call'](_0x2eab78,'resolvedAt')&&_0x4c8d66['uint32'](0x1a)['string'](_0x2eab78['resolvedAt']),null!=_0x2eab78['resolvedBy']&&Object['hasOwnProperty']['call'](_0x2eab78,'resolvedBy')&&_0x4c8d66['uint32'](0x22)['string'](_0x2eab78['resolvedBy']),null!=_0x2eab78['context']&&Object['hasOwnProperty']['call'](_0x2eab78,'context')&&_0x4c8d66['uint32'](0x2a)['string'](_0x2eab78['context']),null!=_0x2eab78['createdAt']&&Object['hasOwnProperty']['call'](_0x2eab78,'createdAt')&&_0x4c8d66['uint32'](0x32)['string'](_0x2eab78['createdAt']),null!=_0x2eab78['deletedAt']&&Object['hasOwnProperty']['call'](_0x2eab78,'deletedAt')&&_0x4c8d66['uint32'](0x3a)['string'](_0x2eab78['deletedAt']),null!=_0x2eab78['attributes']&&Object['hasOwnProperty']['call'](_0x2eab78,'attributes')&&_0x4c8d66['uint32'](0x42)['string'](_0x2eab78['attributes']),null!=_0x2eab78['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x2eab78,'unlinkedAt')&&_0x4c8d66['uint32'](0x4a)['string'](_0x2eab78['unlinkedAt']),_0x4c8d66;},_0x4481da['encodeDelimited']=function(_0x37115c,_0x16ec21){return this['encode'](_0x37115c,_0x16ec21)['ldelim']();},_0x4481da['decode']=function(_0x446c09,_0x47f9ee,_0x3b416c){_0x446c09 instanceof _0x10ed9a||(_0x446c09=_0x10ed9a['create'](_0x446c09));for(var _0x4dc5ec=void 0x0===_0x47f9ee?_0x446c09['len']:_0x446c09['pos']+_0x47f9ee,_0x77e285=new _0x1d55ed['CommentsThreadDescriptor']();_0x446c09['pos']<_0x4dc5ec;){var _0x12bb14=_0x446c09['uint32']();if(_0x12bb14===_0x3b416c)break;switch(_0x12bb14>>>0x3){case 0x1:_0x77e285['commentThreadId']=_0x446c09['string']();break;case 0x2:_0x77e285['comments']&&_0x77e285['comments']['length']||(_0x77e285['comments']=[]),_0x77e285['comments']['push'](_0x1d55ed['CommentDescriptor']['decode'](_0x446c09,_0x446c09['uint32']()));break;case 0x3:_0x77e285['resolvedAt']=_0x446c09['string']();break;case 0x4:_0x77e285['resolvedBy']=_0x446c09['string']();break;case 0x5:_0x77e285['context']=_0x446c09['string']();break;case 0x6:_0x77e285['createdAt']=_0x446c09['string']();break;case 0x7:_0x77e285['deletedAt']=_0x446c09['string']();break;case 0x8:_0x77e285['attributes']=_0x446c09['string']();break;case 0x9:_0x77e285['unlinkedAt']=_0x446c09['string']();break;default:_0x446c09['skipType'](0x7&_0x12bb14);}}return _0x77e285;},_0x4481da['decodeDelimited']=function(_0x3df593){return _0x3df593 instanceof _0x10ed9a||(_0x3df593=new _0x10ed9a(_0x3df593)),this['decode'](_0x3df593,_0x3df593['uint32']());},_0x4481da['verify']=function(_0x149268){if('object'!=typeof _0x149268||null===_0x149268)return'object\x20expected';if(null!=_0x149268['commentThreadId']&&_0x149268['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x149268['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x149268['comments']&&_0x149268['hasOwnProperty']('comments')){if(!Array['isArray'](_0x149268['comments']))return'comments:\x20array\x20expected';for(var _0x3e2ea0=0x0;_0x3e2ea0<_0x149268['comments']['length'];++_0x3e2ea0){var _0x35845a=_0x1d55ed['CommentDescriptor']['verify'](_0x149268['comments'][_0x3e2ea0]);if(_0x35845a)return'comments.'+_0x35845a;}}return null!=_0x149268['resolvedAt']&&_0x149268['hasOwnProperty']('resolvedAt')&&!_0x17c6dc['isString'](_0x149268['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x149268['resolvedBy']&&_0x149268['hasOwnProperty']('resolvedBy')&&!_0x17c6dc['isString'](_0x149268['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x149268['context']&&_0x149268['hasOwnProperty']('context')&&!_0x17c6dc['isString'](_0x149268['context'])?'context:\x20string\x20expected':null!=_0x149268['createdAt']&&_0x149268['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x149268['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x149268['deletedAt']&&_0x149268['hasOwnProperty']('deletedAt')&&!_0x17c6dc['isString'](_0x149268['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x149268['attributes']&&_0x149268['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x149268['attributes'])?'attributes:\x20string\x20expected':null!=_0x149268['unlinkedAt']&&_0x149268['hasOwnProperty']('unlinkedAt')&&!_0x17c6dc['isString'](_0x149268['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x4481da['fromObject']=function(_0x88490){if(_0x88490 instanceof _0x1d55ed['CommentsThreadDescriptor'])return _0x88490;var _0x1218c7=new _0x1d55ed['CommentsThreadDescriptor']();if(null!=_0x88490['commentThreadId']&&(_0x1218c7['commentThreadId']=String(_0x88490['commentThreadId'])),_0x88490['comments']){if(!Array['isArray'](_0x88490['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x1218c7['comments']=[];for(var _0x462c64=0x0;_0x462c64<_0x88490['comments']['length'];++_0x462c64){if('object'!=typeof _0x88490['comments'][_0x462c64])throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x1218c7['comments'][_0x462c64]=_0x1d55ed['CommentDescriptor']['fromObject'](_0x88490['comments'][_0x462c64]);}}return null!=_0x88490['resolvedAt']&&(_0x1218c7['resolvedAt']=String(_0x88490['resolvedAt'])),null!=_0x88490['resolvedBy']&&(_0x1218c7['resolvedBy']=String(_0x88490['resolvedBy'])),null!=_0x88490['context']&&(_0x1218c7['context']=String(_0x88490['context'])),null!=_0x88490['createdAt']&&(_0x1218c7['createdAt']=String(_0x88490['createdAt'])),null!=_0x88490['deletedAt']&&(_0x1218c7['deletedAt']=String(_0x88490['deletedAt'])),null!=_0x88490['attributes']&&(_0x1218c7['attributes']=String(_0x88490['attributes'])),null!=_0x88490['unlinkedAt']&&(_0x1218c7['unlinkedAt']=String(_0x88490['unlinkedAt'])),_0x1218c7;},_0x4481da['toObject']=function(_0x3c8687,_0x3dec47){_0x3dec47||(_0x3dec47={});var _0x1b7590={};if((_0x3dec47['arrays']||_0x3dec47['defaults'])&&(_0x1b7590['comments']=[]),_0x3dec47['defaults']&&(_0x1b7590['commentThreadId']='',_0x1b7590['resolvedAt']='',_0x1b7590['resolvedBy']='',_0x1b7590['context']='',_0x1b7590['createdAt']='',_0x1b7590['deletedAt']='',_0x1b7590['attributes']='',_0x1b7590['unlinkedAt']=''),null!=_0x3c8687['commentThreadId']&&_0x3c8687['hasOwnProperty']('commentThreadId')&&(_0x1b7590['commentThreadId']=_0x3c8687['commentThreadId']),_0x3c8687['comments']&&_0x3c8687['comments']['length']){_0x1b7590['comments']=[];for(var _0x15a975=0x0;_0x15a975<_0x3c8687['comments']['length'];++_0x15a975)_0x1b7590['comments'][_0x15a975]=_0x1d55ed['CommentDescriptor']['toObject'](_0x3c8687['comments'][_0x15a975],_0x3dec47);}return null!=_0x3c8687['resolvedAt']&&_0x3c8687['hasOwnProperty']('resolvedAt')&&(_0x1b7590['resolvedAt']=_0x3c8687['resolvedAt']),null!=_0x3c8687['resolvedBy']&&_0x3c8687['hasOwnProperty']('resolvedBy')&&(_0x1b7590['resolvedBy']=_0x3c8687['resolvedBy']),null!=_0x3c8687['context']&&_0x3c8687['hasOwnProperty']('context')&&(_0x1b7590['context']=_0x3c8687['context']),null!=_0x3c8687['createdAt']&&_0x3c8687['hasOwnProperty']('createdAt')&&(_0x1b7590['createdAt']=_0x3c8687['createdAt']),null!=_0x3c8687['deletedAt']&&_0x3c8687['hasOwnProperty']('deletedAt')&&(_0x1b7590['deletedAt']=_0x3c8687['deletedAt']),null!=_0x3c8687['attributes']&&_0x3c8687['hasOwnProperty']('attributes')&&(_0x1b7590['attributes']=_0x3c8687['attributes']),null!=_0x3c8687['unlinkedAt']&&_0x3c8687['hasOwnProperty']('unlinkedAt')&&(_0x1b7590['unlinkedAt']=_0x3c8687['unlinkedAt']),_0x1b7590;},_0x4481da['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4481da['getTypeUrl']=function(_0x341452){return void 0x0===_0x341452&&(_0x341452='type.googleapis.com'),_0x341452+'/CommentsThreadDescriptor';},_0x4481da;}()),_0x1d55ed['CommentDescriptor']=(function(){function _0x39b7e0(_0x186ad7){if(_0x186ad7){for(var _0x20b424=Object['keys'](_0x186ad7),_0x5ce6b6=0x0;_0x5ce6b6<_0x20b424['length'];++_0x5ce6b6)null!=_0x186ad7[_0x20b424[_0x5ce6b6]]&&(this[_0x20b424[_0x5ce6b6]]=_0x186ad7[_0x20b424[_0x5ce6b6]]);}}return _0x39b7e0['prototype']['commentId']='',_0x39b7e0['prototype']['commentThreadId']='',_0x39b7e0['prototype']['userId']='',_0x39b7e0['prototype']['content']='',_0x39b7e0['prototype']['documentId']='',_0x39b7e0['prototype']['createdAt']='',_0x39b7e0['prototype']['attributes']='',_0x39b7e0['create']=function(_0x34f2bf){return new _0x39b7e0(_0x34f2bf);},_0x39b7e0['encode']=function(_0x33ac11,_0x4e5693){return _0x4e5693||(_0x4e5693=_0x214d5c['create']()),null!=_0x33ac11['commentId']&&Object['hasOwnProperty']['call'](_0x33ac11,'commentId')&&_0x4e5693['uint32'](0xa)['string'](_0x33ac11['commentId']),null!=_0x33ac11['commentThreadId']&&Object['hasOwnProperty']['call'](_0x33ac11,'commentThreadId')&&_0x4e5693['uint32'](0x12)['string'](_0x33ac11['commentThreadId']),null!=_0x33ac11['userId']&&Object['hasOwnProperty']['call'](_0x33ac11,'userId')&&_0x4e5693['uint32'](0x1a)['string'](_0x33ac11['userId']),null!=_0x33ac11['content']&&Object['hasOwnProperty']['call'](_0x33ac11,'content')&&_0x4e5693['uint32'](0x22)['string'](_0x33ac11['content']),null!=_0x33ac11['documentId']&&Object['hasOwnProperty']['call'](_0x33ac11,'documentId')&&_0x4e5693['uint32'](0x2a)['string'](_0x33ac11['documentId']),null!=_0x33ac11['createdAt']&&Object['hasOwnProperty']['call'](_0x33ac11,'createdAt')&&_0x4e5693['uint32'](0x32)['string'](_0x33ac11['createdAt']),null!=_0x33ac11['attributes']&&Object['hasOwnProperty']['call'](_0x33ac11,'attributes')&&_0x4e5693['uint32'](0x3a)['string'](_0x33ac11['attributes']),_0x4e5693;},_0x39b7e0['encodeDelimited']=function(_0x4e7378,_0x3c0ada){return this['encode'](_0x4e7378,_0x3c0ada)['ldelim']();},_0x39b7e0['decode']=function(_0x65a880,_0x143c81,_0x103c25){_0x65a880 instanceof _0x10ed9a||(_0x65a880=_0x10ed9a['create'](_0x65a880));for(var _0x577708=void 0x0===_0x143c81?_0x65a880['len']:_0x65a880['pos']+_0x143c81,_0x22a8e6=new _0x1d55ed['CommentDescriptor']();_0x65a880['pos']<_0x577708;){var _0x4d7e44=_0x65a880['uint32']();if(_0x4d7e44===_0x103c25)break;switch(_0x4d7e44>>>0x3){case 0x1:_0x22a8e6['commentId']=_0x65a880['string']();break;case 0x2:_0x22a8e6['commentThreadId']=_0x65a880['string']();break;case 0x3:_0x22a8e6['userId']=_0x65a880['string']();break;case 0x4:_0x22a8e6['content']=_0x65a880['string']();break;case 0x5:_0x22a8e6['documentId']=_0x65a880['string']();break;case 0x6:_0x22a8e6['createdAt']=_0x65a880['string']();break;case 0x7:_0x22a8e6['attributes']=_0x65a880['string']();break;default:_0x65a880['skipType'](0x7&_0x4d7e44);}}return _0x22a8e6;},_0x39b7e0['decodeDelimited']=function(_0x1f00f6){return _0x1f00f6 instanceof _0x10ed9a||(_0x1f00f6=new _0x10ed9a(_0x1f00f6)),this['decode'](_0x1f00f6,_0x1f00f6['uint32']());},_0x39b7e0['verify']=function(_0x131a87){return'object'!=typeof _0x131a87||null===_0x131a87?'object\x20expected':null!=_0x131a87['commentId']&&_0x131a87['hasOwnProperty']('commentId')&&!_0x17c6dc['isString'](_0x131a87['commentId'])?'commentId:\x20string\x20expected':null!=_0x131a87['commentThreadId']&&_0x131a87['hasOwnProperty']('commentThreadId')&&!_0x17c6dc['isString'](_0x131a87['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x131a87['userId']&&_0x131a87['hasOwnProperty']('userId')&&!_0x17c6dc['isString'](_0x131a87['userId'])?'userId:\x20string\x20expected':null!=_0x131a87['content']&&_0x131a87['hasOwnProperty']('content')&&!_0x17c6dc['isString'](_0x131a87['content'])?'content:\x20string\x20expected':null!=_0x131a87['documentId']&&_0x131a87['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x131a87['documentId'])?'documentId:\x20string\x20expected':null!=_0x131a87['createdAt']&&_0x131a87['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x131a87['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x131a87['attributes']&&_0x131a87['hasOwnProperty']('attributes')&&!_0x17c6dc['isString'](_0x131a87['attributes'])?'attributes:\x20string\x20expected':null;},_0x39b7e0['fromObject']=function(_0x4daf8a){if(_0x4daf8a instanceof _0x1d55ed['CommentDescriptor'])return _0x4daf8a;var _0x2d488f=new _0x1d55ed['CommentDescriptor']();return null!=_0x4daf8a['commentId']&&(_0x2d488f['commentId']=String(_0x4daf8a['commentId'])),null!=_0x4daf8a['commentThreadId']&&(_0x2d488f['commentThreadId']=String(_0x4daf8a['commentThreadId'])),null!=_0x4daf8a['userId']&&(_0x2d488f['userId']=String(_0x4daf8a['userId'])),null!=_0x4daf8a['content']&&(_0x2d488f['content']=String(_0x4daf8a['content'])),null!=_0x4daf8a['documentId']&&(_0x2d488f['documentId']=String(_0x4daf8a['documentId'])),null!=_0x4daf8a['createdAt']&&(_0x2d488f['createdAt']=String(_0x4daf8a['createdAt'])),null!=_0x4daf8a['attributes']&&(_0x2d488f['attributes']=String(_0x4daf8a['attributes'])),_0x2d488f;},_0x39b7e0['toObject']=function(_0x39f65a,_0x593b7f){_0x593b7f||(_0x593b7f={});var _0x3d0b5f={};return _0x593b7f['defaults']&&(_0x3d0b5f['commentId']='',_0x3d0b5f['commentThreadId']='',_0x3d0b5f['userId']='',_0x3d0b5f['content']='',_0x3d0b5f['documentId']='',_0x3d0b5f['createdAt']='',_0x3d0b5f['attributes']=''),null!=_0x39f65a['commentId']&&_0x39f65a['hasOwnProperty']('commentId')&&(_0x3d0b5f['commentId']=_0x39f65a['commentId']),null!=_0x39f65a['commentThreadId']&&_0x39f65a['hasOwnProperty']('commentThreadId')&&(_0x3d0b5f['commentThreadId']=_0x39f65a['commentThreadId']),null!=_0x39f65a['userId']&&_0x39f65a['hasOwnProperty']('userId')&&(_0x3d0b5f['userId']=_0x39f65a['userId']),null!=_0x39f65a['content']&&_0x39f65a['hasOwnProperty']('content')&&(_0x3d0b5f['content']=_0x39f65a['content']),null!=_0x39f65a['documentId']&&_0x39f65a['hasOwnProperty']('documentId')&&(_0x3d0b5f['documentId']=_0x39f65a['documentId']),null!=_0x39f65a['createdAt']&&_0x39f65a['hasOwnProperty']('createdAt')&&(_0x3d0b5f['createdAt']=_0x39f65a['createdAt']),null!=_0x39f65a['attributes']&&_0x39f65a['hasOwnProperty']('attributes')&&(_0x3d0b5f['attributes']=_0x39f65a['attributes']),_0x3d0b5f;},_0x39b7e0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x39b7e0['getTypeUrl']=function(_0x38366e){return void 0x0===_0x38366e&&(_0x38366e='type.googleapis.com'),_0x38366e+'/CommentDescriptor';},_0x39b7e0;}()),_0x1d55ed['GetDocumentDetailsResponse']=(function(){function _0x38a4d1(_0x187949){if(_0x187949){for(var _0x37896c=Object['keys'](_0x187949),_0x2cce8e=0x0;_0x2cce8e<_0x37896c['length'];++_0x2cce8e)null!=_0x187949[_0x37896c[_0x2cce8e]]&&(this[_0x37896c[_0x2cce8e]]=_0x187949[_0x37896c[_0x2cce8e]]);}}return _0x38a4d1['prototype']['lastDocumentSessionId']='',_0x38a4d1['prototype']['lastDocumentSessionOperationId']='',_0x38a4d1['prototype']['currentDocumentSessionId']='',_0x38a4d1['prototype']['currentDocumentSessionVersion']=0x0,_0x38a4d1['prototype']['currentDocumentSessionOperationId']='',_0x38a4d1['create']=function(_0x1038bc){return new _0x38a4d1(_0x1038bc);},_0x38a4d1['encode']=function(_0x5cc0d1,_0x5e79e7){return _0x5e79e7||(_0x5e79e7=_0x214d5c['create']()),null!=_0x5cc0d1['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x5cc0d1,'lastDocumentSessionId')&&_0x5e79e7['uint32'](0xa)['string'](_0x5cc0d1['lastDocumentSessionId']),null!=_0x5cc0d1['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x5cc0d1,'lastDocumentSessionOperationId')&&_0x5e79e7['uint32'](0x12)['string'](_0x5cc0d1['lastDocumentSessionOperationId']),null!=_0x5cc0d1['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x5cc0d1,'currentDocumentSessionId')&&_0x5e79e7['uint32'](0x1a)['string'](_0x5cc0d1['currentDocumentSessionId']),null!=_0x5cc0d1['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x5cc0d1,'currentDocumentSessionVersion')&&_0x5e79e7['uint32'](0x20)['uint32'](_0x5cc0d1['currentDocumentSessionVersion']),null!=_0x5cc0d1['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x5cc0d1,'currentDocumentSessionOperationId')&&_0x5e79e7['uint32'](0x2a)['string'](_0x5cc0d1['currentDocumentSessionOperationId']),_0x5e79e7;},_0x38a4d1['encodeDelimited']=function(_0x47127e,_0xc33fdb){return this['encode'](_0x47127e,_0xc33fdb)['ldelim']();},_0x38a4d1['decode']=function(_0x125549,_0x1dc6a7,_0x33d850){_0x125549 instanceof _0x10ed9a||(_0x125549=_0x10ed9a['create'](_0x125549));for(var _0x1e0d2c=void 0x0===_0x1dc6a7?_0x125549['len']:_0x125549['pos']+_0x1dc6a7,_0x4f1237=new _0x1d55ed['GetDocumentDetailsResponse']();_0x125549['pos']<_0x1e0d2c;){var _0x46fce9=_0x125549['uint32']();if(_0x46fce9===_0x33d850)break;switch(_0x46fce9>>>0x3){case 0x1:_0x4f1237['lastDocumentSessionId']=_0x125549['string']();break;case 0x2:_0x4f1237['lastDocumentSessionOperationId']=_0x125549['string']();break;case 0x3:_0x4f1237['currentDocumentSessionId']=_0x125549['string']();break;case 0x4:_0x4f1237['currentDocumentSessionVersion']=_0x125549['uint32']();break;case 0x5:_0x4f1237['currentDocumentSessionOperationId']=_0x125549['string']();break;default:_0x125549['skipType'](0x7&_0x46fce9);}}return _0x4f1237;},_0x38a4d1['decodeDelimited']=function(_0x2ae287){return _0x2ae287 instanceof _0x10ed9a||(_0x2ae287=new _0x10ed9a(_0x2ae287)),this['decode'](_0x2ae287,_0x2ae287['uint32']());},_0x38a4d1['verify']=function(_0x4e50f9){return'object'!=typeof _0x4e50f9||null===_0x4e50f9?'object\x20expected':null!=_0x4e50f9['lastDocumentSessionId']&&_0x4e50f9['hasOwnProperty']('lastDocumentSessionId')&&!_0x17c6dc['isString'](_0x4e50f9['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x4e50f9['lastDocumentSessionOperationId']&&_0x4e50f9['hasOwnProperty']('lastDocumentSessionOperationId')&&!_0x17c6dc['isString'](_0x4e50f9['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x4e50f9['currentDocumentSessionId']&&_0x4e50f9['hasOwnProperty']('currentDocumentSessionId')&&!_0x17c6dc['isString'](_0x4e50f9['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x4e50f9['currentDocumentSessionVersion']&&_0x4e50f9['hasOwnProperty']('currentDocumentSessionVersion')&&!_0x17c6dc['isInteger'](_0x4e50f9['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x4e50f9['currentDocumentSessionOperationId']&&_0x4e50f9['hasOwnProperty']('currentDocumentSessionOperationId')&&!_0x17c6dc['isString'](_0x4e50f9['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null;},_0x38a4d1['fromObject']=function(_0x165d99){if(_0x165d99 instanceof _0x1d55ed['GetDocumentDetailsResponse'])return _0x165d99;var _0x1cce28=new _0x1d55ed['GetDocumentDetailsResponse']();return null!=_0x165d99['lastDocumentSessionId']&&(_0x1cce28['lastDocumentSessionId']=String(_0x165d99['lastDocumentSessionId'])),null!=_0x165d99['lastDocumentSessionOperationId']&&(_0x1cce28['lastDocumentSessionOperationId']=String(_0x165d99['lastDocumentSessionOperationId'])),null!=_0x165d99['currentDocumentSessionId']&&(_0x1cce28['currentDocumentSessionId']=String(_0x165d99['currentDocumentSessionId'])),null!=_0x165d99['currentDocumentSessionVersion']&&(_0x1cce28['currentDocumentSessionVersion']=_0x165d99['currentDocumentSessionVersion']>>>0x0),null!=_0x165d99['currentDocumentSessionOperationId']&&(_0x1cce28['currentDocumentSessionOperationId']=String(_0x165d99['currentDocumentSessionOperationId'])),_0x1cce28;},_0x38a4d1['toObject']=function(_0x42173d,_0x95037b){_0x95037b||(_0x95037b={});var _0x526133={};return _0x95037b['defaults']&&(_0x526133['lastDocumentSessionId']='',_0x526133['lastDocumentSessionOperationId']='',_0x526133['currentDocumentSessionId']='',_0x526133['currentDocumentSessionVersion']=0x0,_0x526133['currentDocumentSessionOperationId']=''),null!=_0x42173d['lastDocumentSessionId']&&_0x42173d['hasOwnProperty']('lastDocumentSessionId')&&(_0x526133['lastDocumentSessionId']=_0x42173d['lastDocumentSessionId']),null!=_0x42173d['lastDocumentSessionOperationId']&&_0x42173d['hasOwnProperty']('lastDocumentSessionOperationId')&&(_0x526133['lastDocumentSessionOperationId']=_0x42173d['lastDocumentSessionOperationId']),null!=_0x42173d['currentDocumentSessionId']&&_0x42173d['hasOwnProperty']('currentDocumentSessionId')&&(_0x526133['currentDocumentSessionId']=_0x42173d['currentDocumentSessionId']),null!=_0x42173d['currentDocumentSessionVersion']&&_0x42173d['hasOwnProperty']('currentDocumentSessionVersion')&&(_0x526133['currentDocumentSessionVersion']=_0x42173d['currentDocumentSessionVersion']),null!=_0x42173d['currentDocumentSessionOperationId']&&_0x42173d['hasOwnProperty']('currentDocumentSessionOperationId')&&(_0x526133['currentDocumentSessionOperationId']=_0x42173d['currentDocumentSessionOperationId']),_0x526133;},_0x38a4d1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x38a4d1['getTypeUrl']=function(_0x2eaf5b){return void 0x0===_0x2eaf5b&&(_0x2eaf5b='type.googleapis.com'),_0x2eaf5b+'/GetDocumentDetailsResponse';},_0x38a4d1;}()),_0x1d55ed['CollaborativeEditingResponse']=(function(){function _0x44678e(_0x535bea){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x535bea){for(var _0x3fb1f3=Object['keys'](_0x535bea),_0x45881b=0x0;_0x45881b<_0x3fb1f3['length'];++_0x45881b)null!=_0x535bea[_0x3fb1f3[_0x45881b]]&&(this[_0x3fb1f3[_0x45881b]]=_0x535bea[_0x3fb1f3[_0x45881b]]);}}return _0x44678e['prototype']['version']=0x0,_0x44678e['prototype']['buffers']=_0x17c6dc['emptyArray'],_0x44678e['prototype']['types']=_0x17c6dc['emptyArray'],_0x44678e['prototype']['metadata']=_0x17c6dc['emptyArray'],_0x44678e['prototype']['lastOperationId']='',_0x44678e['prototype']['lastOperationAcceptedAt']='',_0x44678e['create']=function(_0x41c3af){return new _0x44678e(_0x41c3af);},_0x44678e['encode']=function(_0x1af39f,_0x4095ca){if(_0x4095ca||(_0x4095ca=_0x214d5c['create']()),null!=_0x1af39f['version']&&Object['hasOwnProperty']['call'](_0x1af39f,'version')&&_0x4095ca['uint32'](0x8)['uint32'](_0x1af39f['version']),null!=_0x1af39f['buffers']&&_0x1af39f['buffers']['length']){for(var _0x43bfd8=0x0;_0x43bfd8<_0x1af39f['buffers']['length'];++_0x43bfd8)_0x4095ca['uint32'](0x12)['bytes'](_0x1af39f['buffers'][_0x43bfd8]);}if(null!=_0x1af39f['types']&&_0x1af39f['types']['length']){for(_0x4095ca['uint32'](0x1a)['fork'](),_0x43bfd8=0x0;_0x43bfd8<_0x1af39f['types']['length'];++_0x43bfd8)_0x4095ca['uint32'](_0x1af39f['types'][_0x43bfd8]);_0x4095ca['ldelim']();}if(null!=_0x1af39f['metadata']&&_0x1af39f['metadata']['length']){for(_0x43bfd8=0x0;_0x43bfd8<_0x1af39f['metadata']['length'];++_0x43bfd8)_0x1d55ed['OperationMetadataDescriptor']['encode'](_0x1af39f['metadata'][_0x43bfd8],_0x4095ca['uint32'](0x2a)['fork']())['ldelim']();}return null!=_0x1af39f['lastOperationId']&&Object['hasOwnProperty']['call'](_0x1af39f,'lastOperationId')&&_0x4095ca['uint32'](0x32)['string'](_0x1af39f['lastOperationId']),null!=_0x1af39f['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x1af39f,'lastOperationAcceptedAt')&&_0x4095ca['uint32'](0x3a)['string'](_0x1af39f['lastOperationAcceptedAt']),_0x4095ca;},_0x44678e['encodeDelimited']=function(_0x56bc84,_0x2749b8){return this['encode'](_0x56bc84,_0x2749b8)['ldelim']();},_0x44678e['decode']=function(_0x4b980b,_0x46f652,_0x2cc3c8){_0x4b980b instanceof _0x10ed9a||(_0x4b980b=_0x10ed9a['create'](_0x4b980b));for(var _0x3eb80d=void 0x0===_0x46f652?_0x4b980b['len']:_0x4b980b['pos']+_0x46f652,_0x3c9c86=new _0x1d55ed['CollaborativeEditingResponse']();_0x4b980b['pos']<_0x3eb80d;){var _0xdb3a8e=_0x4b980b['uint32']();if(_0xdb3a8e===_0x2cc3c8)break;switch(_0xdb3a8e>>>0x3){case 0x1:_0x3c9c86['version']=_0x4b980b['uint32']();break;case 0x2:_0x3c9c86['buffers']&&_0x3c9c86['buffers']['length']||(_0x3c9c86['buffers']=[]),_0x3c9c86['buffers']['push'](_0x4b980b['bytes']());break;case 0x3:if(_0x3c9c86['types']&&_0x3c9c86['types']['length']||(_0x3c9c86['types']=[]),0x2==(0x7&_0xdb3a8e)){for(var _0x106ea9=_0x4b980b['uint32']()+_0x4b980b['pos'];_0x4b980b['pos']<_0x106ea9;)_0x3c9c86['types']['push'](_0x4b980b['uint32']());}else _0x3c9c86['types']['push'](_0x4b980b['uint32']());break;case 0x5:_0x3c9c86['metadata']&&_0x3c9c86['metadata']['length']||(_0x3c9c86['metadata']=[]),_0x3c9c86['metadata']['push'](_0x1d55ed['OperationMetadataDescriptor']['decode'](_0x4b980b,_0x4b980b['uint32']()));break;case 0x6:_0x3c9c86['lastOperationId']=_0x4b980b['string']();break;case 0x7:_0x3c9c86['lastOperationAcceptedAt']=_0x4b980b['string']();break;default:_0x4b980b['skipType'](0x7&_0xdb3a8e);}}return _0x3c9c86;},_0x44678e['decodeDelimited']=function(_0x4db7a7){return _0x4db7a7 instanceof _0x10ed9a||(_0x4db7a7=new _0x10ed9a(_0x4db7a7)),this['decode'](_0x4db7a7,_0x4db7a7['uint32']());},_0x44678e['verify']=function(_0x4dfc75){if('object'!=typeof _0x4dfc75||null===_0x4dfc75)return'object\x20expected';if(null!=_0x4dfc75['version']&&_0x4dfc75['hasOwnProperty']('version')&&!_0x17c6dc['isInteger'](_0x4dfc75['version']))return'version:\x20integer\x20expected';if(null!=_0x4dfc75['buffers']&&_0x4dfc75['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x4dfc75['buffers']))return'buffers:\x20array\x20expected';for(var _0x3f45b9=0x0;_0x3f45b9<_0x4dfc75['buffers']['length'];++_0x3f45b9)if(!(_0x4dfc75['buffers'][_0x3f45b9]&&'number'==typeof _0x4dfc75['buffers'][_0x3f45b9]['length']||_0x17c6dc['isString'](_0x4dfc75['buffers'][_0x3f45b9])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x4dfc75['types']&&_0x4dfc75['hasOwnProperty']('types')){if(!Array['isArray'](_0x4dfc75['types']))return'types:\x20array\x20expected';for(_0x3f45b9=0x0;_0x3f45b9<_0x4dfc75['types']['length'];++_0x3f45b9)if(!_0x17c6dc['isInteger'](_0x4dfc75['types'][_0x3f45b9]))return'types:\x20integer[]\x20expected';}if(null!=_0x4dfc75['metadata']&&_0x4dfc75['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x4dfc75['metadata']))return'metadata:\x20array\x20expected';for(_0x3f45b9=0x0;_0x3f45b9<_0x4dfc75['metadata']['length'];++_0x3f45b9){var _0x3f1b0f=_0x1d55ed['OperationMetadataDescriptor']['verify'](_0x4dfc75['metadata'][_0x3f45b9]);if(_0x3f1b0f)return'metadata.'+_0x3f1b0f;}}return null!=_0x4dfc75['lastOperationId']&&_0x4dfc75['hasOwnProperty']('lastOperationId')&&!_0x17c6dc['isString'](_0x4dfc75['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x4dfc75['lastOperationAcceptedAt']&&_0x4dfc75['hasOwnProperty']('lastOperationAcceptedAt')&&!_0x17c6dc['isString'](_0x4dfc75['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},_0x44678e['fromObject']=function(_0x590f61){if(_0x590f61 instanceof _0x1d55ed['CollaborativeEditingResponse'])return _0x590f61;var _0x425495=new _0x1d55ed['CollaborativeEditingResponse']();if(null!=_0x590f61['version']&&(_0x425495['version']=_0x590f61['version']>>>0x0),_0x590f61['buffers']){if(!Array['isArray'](_0x590f61['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0x425495['buffers']=[];for(var _0x397ece=0x0;_0x397ece<_0x590f61['buffers']['length'];++_0x397ece)'string'==typeof _0x590f61['buffers'][_0x397ece]?_0x17c6dc['base64']['decode'](_0x590f61['buffers'][_0x397ece],_0x425495['buffers'][_0x397ece]=_0x17c6dc['newBuffer'](_0x17c6dc['base64']['length'](_0x590f61['buffers'][_0x397ece])),0x0):_0x590f61['buffers'][_0x397ece]['length']>=0x0&&(_0x425495['buffers'][_0x397ece]=_0x590f61['buffers'][_0x397ece]);}if(_0x590f61['types']){if(!Array['isArray'](_0x590f61['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');for(_0x425495['types']=[],_0x397ece=0x0;_0x397ece<_0x590f61['types']['length'];++_0x397ece)_0x425495['types'][_0x397ece]=_0x590f61['types'][_0x397ece]>>>0x0;}if(_0x590f61['metadata']){if(!Array['isArray'](_0x590f61['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');for(_0x425495['metadata']=[],_0x397ece=0x0;_0x397ece<_0x590f61['metadata']['length'];++_0x397ece){if('object'!=typeof _0x590f61['metadata'][_0x397ece])throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0x425495['metadata'][_0x397ece]=_0x1d55ed['OperationMetadataDescriptor']['fromObject'](_0x590f61['metadata'][_0x397ece]);}}return null!=_0x590f61['lastOperationId']&&(_0x425495['lastOperationId']=String(_0x590f61['lastOperationId'])),null!=_0x590f61['lastOperationAcceptedAt']&&(_0x425495['lastOperationAcceptedAt']=String(_0x590f61['lastOperationAcceptedAt'])),_0x425495;},_0x44678e['toObject']=function(_0x3d44ae,_0x1a8f25){_0x1a8f25||(_0x1a8f25={});var _0x8835d0={};if((_0x1a8f25['arrays']||_0x1a8f25['defaults'])&&(_0x8835d0['buffers']=[],_0x8835d0['types']=[],_0x8835d0['metadata']=[]),_0x1a8f25['defaults']&&(_0x8835d0['version']=0x0,_0x8835d0['lastOperationId']='',_0x8835d0['lastOperationAcceptedAt']=''),null!=_0x3d44ae['version']&&_0x3d44ae['hasOwnProperty']('version')&&(_0x8835d0['version']=_0x3d44ae['version']),_0x3d44ae['buffers']&&_0x3d44ae['buffers']['length']){_0x8835d0['buffers']=[];for(var _0x3754e6=0x0;_0x3754e6<_0x3d44ae['buffers']['length'];++_0x3754e6)_0x8835d0['buffers'][_0x3754e6]=_0x1a8f25['bytes']===String?_0x17c6dc['base64']['encode'](_0x3d44ae['buffers'][_0x3754e6],0x0,_0x3d44ae['buffers'][_0x3754e6]['length']):_0x1a8f25['bytes']===Array?Array['prototype']['slice']['call'](_0x3d44ae['buffers'][_0x3754e6]):_0x3d44ae['buffers'][_0x3754e6];}if(_0x3d44ae['types']&&_0x3d44ae['types']['length']){for(_0x8835d0['types']=[],_0x3754e6=0x0;_0x3754e6<_0x3d44ae['types']['length'];++_0x3754e6)_0x8835d0['types'][_0x3754e6]=_0x3d44ae['types'][_0x3754e6];}if(_0x3d44ae['metadata']&&_0x3d44ae['metadata']['length']){for(_0x8835d0['metadata']=[],_0x3754e6=0x0;_0x3754e6<_0x3d44ae['metadata']['length'];++_0x3754e6)_0x8835d0['metadata'][_0x3754e6]=_0x1d55ed['OperationMetadataDescriptor']['toObject'](_0x3d44ae['metadata'][_0x3754e6],_0x1a8f25);}return null!=_0x3d44ae['lastOperationId']&&_0x3d44ae['hasOwnProperty']('lastOperationId')&&(_0x8835d0['lastOperationId']=_0x3d44ae['lastOperationId']),null!=_0x3d44ae['lastOperationAcceptedAt']&&_0x3d44ae['hasOwnProperty']('lastOperationAcceptedAt')&&(_0x8835d0['lastOperationAcceptedAt']=_0x3d44ae['lastOperationAcceptedAt']),_0x8835d0;},_0x44678e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x44678e['getTypeUrl']=function(_0x44fe27){return void 0x0===_0x44fe27&&(_0x44fe27='type.googleapis.com'),_0x44fe27+'/CollaborativeEditingResponse';},_0x44678e;}()),_0x1d55ed['CollaborativeEditingConnectResponse']=(function(){function _0x5ebce7(_0x2f6009){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x2f6009){for(var _0x39dc63=Object['keys'](_0x2f6009),_0x24e7b9=0x0;_0x24e7b9<_0x39dc63['length'];++_0x24e7b9)null!=_0x2f6009[_0x39dc63[_0x24e7b9]]&&(this[_0x39dc63[_0x24e7b9]]=_0x2f6009[_0x39dc63[_0x24e7b9]]);}}return _0x5ebce7['prototype']['channel']='',_0x5ebce7['prototype']['offset']=0x0,_0x5ebce7['prototype']['version']=0x0,_0x5ebce7['prototype']['buffers']=_0x17c6dc['emptyArray'],_0x5ebce7['prototype']['types']=_0x17c6dc['emptyArray'],_0x5ebce7['prototype']['metadata']=_0x17c6dc['emptyArray'],_0x5ebce7['prototype']['initData']='',_0x5ebce7['prototype']['isInitialized']=!0x1,_0x5ebce7['prototype']['sessionId']='',_0x5ebce7['prototype']['lastOperationId']='',_0x5ebce7['prototype']['sessionCreatedAt']='',_0x5ebce7['create']=function(_0x8e1dea){return new _0x5ebce7(_0x8e1dea);},_0x5ebce7['encode']=function(_0x3a0f48,_0x5bdc0d){if(_0x5bdc0d||(_0x5bdc0d=_0x214d5c['create']()),null!=_0x3a0f48['channel']&&Object['hasOwnProperty']['call'](_0x3a0f48,'channel')&&_0x5bdc0d['uint32'](0xa)['string'](_0x3a0f48['channel']),null!=_0x3a0f48['offset']&&Object['hasOwnProperty']['call'](_0x3a0f48,'offset')&&_0x5bdc0d['uint32'](0x10)['uint32'](_0x3a0f48['offset']),null!=_0x3a0f48['version']&&Object['hasOwnProperty']['call'](_0x3a0f48,'version')&&_0x5bdc0d['uint32'](0x18)['uint32'](_0x3a0f48['version']),null!=_0x3a0f48['buffers']&&_0x3a0f48['buffers']['length']){for(var _0xb160bb=0x0;_0xb160bb<_0x3a0f48['buffers']['length'];++_0xb160bb)_0x5bdc0d['uint32'](0x22)['bytes'](_0x3a0f48['buffers'][_0xb160bb]);}if(null!=_0x3a0f48['types']&&_0x3a0f48['types']['length']){for(_0x5bdc0d['uint32'](0x2a)['fork'](),_0xb160bb=0x0;_0xb160bb<_0x3a0f48['types']['length'];++_0xb160bb)_0x5bdc0d['uint32'](_0x3a0f48['types'][_0xb160bb]);_0x5bdc0d['ldelim']();}if(null!=_0x3a0f48['metadata']&&_0x3a0f48['metadata']['length']){for(_0xb160bb=0x0;_0xb160bb<_0x3a0f48['metadata']['length'];++_0xb160bb)_0x1d55ed['OperationMetadataDescriptor']['encode'](_0x3a0f48['metadata'][_0xb160bb],_0x5bdc0d['uint32'](0x3a)['fork']())['ldelim']();}return null!=_0x3a0f48['initData']&&Object['hasOwnProperty']['call'](_0x3a0f48,'initData')&&_0x5bdc0d['uint32'](0x42)['string'](_0x3a0f48['initData']),null!=_0x3a0f48['isInitialized']&&Object['hasOwnProperty']['call'](_0x3a0f48,'isInitialized')&&_0x5bdc0d['uint32'](0x48)['bool'](_0x3a0f48['isInitialized']),null!=_0x3a0f48['sessionId']&&Object['hasOwnProperty']['call'](_0x3a0f48,'sessionId')&&_0x5bdc0d['uint32'](0x52)['string'](_0x3a0f48['sessionId']),null!=_0x3a0f48['lastOperationId']&&Object['hasOwnProperty']['call'](_0x3a0f48,'lastOperationId')&&_0x5bdc0d['uint32'](0x5a)['string'](_0x3a0f48['lastOperationId']),null!=_0x3a0f48['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x3a0f48,'sessionCreatedAt')&&_0x5bdc0d['uint32'](0x62)['string'](_0x3a0f48['sessionCreatedAt']),_0x5bdc0d;},_0x5ebce7['encodeDelimited']=function(_0x5d8d1f,_0x38e4bc){return this['encode'](_0x5d8d1f,_0x38e4bc)['ldelim']();},_0x5ebce7['decode']=function(_0xc1285a,_0x563a3d,_0x522be6){_0xc1285a instanceof _0x10ed9a||(_0xc1285a=_0x10ed9a['create'](_0xc1285a));for(var _0x7a8adc=void 0x0===_0x563a3d?_0xc1285a['len']:_0xc1285a['pos']+_0x563a3d,_0x28c941=new _0x1d55ed['CollaborativeEditingConnectResponse']();_0xc1285a['pos']<_0x7a8adc;){var _0x2940a1=_0xc1285a['uint32']();if(_0x2940a1===_0x522be6)break;switch(_0x2940a1>>>0x3){case 0x1:_0x28c941['channel']=_0xc1285a['string']();break;case 0x2:_0x28c941['offset']=_0xc1285a['uint32']();break;case 0x3:_0x28c941['version']=_0xc1285a['uint32']();break;case 0x4:_0x28c941['buffers']&&_0x28c941['buffers']['length']||(_0x28c941['buffers']=[]),_0x28c941['buffers']['push'](_0xc1285a['bytes']());break;case 0x5:if(_0x28c941['types']&&_0x28c941['types']['length']||(_0x28c941['types']=[]),0x2==(0x7&_0x2940a1)){for(var _0x2d98ed=_0xc1285a['uint32']()+_0xc1285a['pos'];_0xc1285a['pos']<_0x2d98ed;)_0x28c941['types']['push'](_0xc1285a['uint32']());}else _0x28c941['types']['push'](_0xc1285a['uint32']());break;case 0x7:_0x28c941['metadata']&&_0x28c941['metadata']['length']||(_0x28c941['metadata']=[]),_0x28c941['metadata']['push'](_0x1d55ed['OperationMetadataDescriptor']['decode'](_0xc1285a,_0xc1285a['uint32']()));break;case 0x8:_0x28c941['initData']=_0xc1285a['string']();break;case 0x9:_0x28c941['isInitialized']=_0xc1285a['bool']();break;case 0xa:_0x28c941['sessionId']=_0xc1285a['string']();break;case 0xb:_0x28c941['lastOperationId']=_0xc1285a['string']();break;case 0xc:_0x28c941['sessionCreatedAt']=_0xc1285a['string']();break;default:_0xc1285a['skipType'](0x7&_0x2940a1);}}return _0x28c941;},_0x5ebce7['decodeDelimited']=function(_0x41daa7){return _0x41daa7 instanceof _0x10ed9a||(_0x41daa7=new _0x10ed9a(_0x41daa7)),this['decode'](_0x41daa7,_0x41daa7['uint32']());},_0x5ebce7['verify']=function(_0x1009e2){if('object'!=typeof _0x1009e2||null===_0x1009e2)return'object\x20expected';if(null!=_0x1009e2['channel']&&_0x1009e2['hasOwnProperty']('channel')&&!_0x17c6dc['isString'](_0x1009e2['channel']))return'channel:\x20string\x20expected';if(null!=_0x1009e2['offset']&&_0x1009e2['hasOwnProperty']('offset')&&!_0x17c6dc['isInteger'](_0x1009e2['offset']))return'offset:\x20integer\x20expected';if(null!=_0x1009e2['version']&&_0x1009e2['hasOwnProperty']('version')&&!_0x17c6dc['isInteger'](_0x1009e2['version']))return'version:\x20integer\x20expected';if(null!=_0x1009e2['buffers']&&_0x1009e2['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x1009e2['buffers']))return'buffers:\x20array\x20expected';for(var _0x5e77e2=0x0;_0x5e77e2<_0x1009e2['buffers']['length'];++_0x5e77e2)if(!(_0x1009e2['buffers'][_0x5e77e2]&&'number'==typeof _0x1009e2['buffers'][_0x5e77e2]['length']||_0x17c6dc['isString'](_0x1009e2['buffers'][_0x5e77e2])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x1009e2['types']&&_0x1009e2['hasOwnProperty']('types')){if(!Array['isArray'](_0x1009e2['types']))return'types:\x20array\x20expected';for(_0x5e77e2=0x0;_0x5e77e2<_0x1009e2['types']['length'];++_0x5e77e2)if(!_0x17c6dc['isInteger'](_0x1009e2['types'][_0x5e77e2]))return'types:\x20integer[]\x20expected';}if(null!=_0x1009e2['metadata']&&_0x1009e2['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x1009e2['metadata']))return'metadata:\x20array\x20expected';for(_0x5e77e2=0x0;_0x5e77e2<_0x1009e2['metadata']['length'];++_0x5e77e2){var _0x5d5a51=_0x1d55ed['OperationMetadataDescriptor']['verify'](_0x1009e2['metadata'][_0x5e77e2]);if(_0x5d5a51)return'metadata.'+_0x5d5a51;}}return null!=_0x1009e2['initData']&&_0x1009e2['hasOwnProperty']('initData')&&!_0x17c6dc['isString'](_0x1009e2['initData'])?'initData:\x20string\x20expected':null!=_0x1009e2['isInitialized']&&_0x1009e2['hasOwnProperty']('isInitialized')&&'boolean'!=typeof _0x1009e2['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x1009e2['sessionId']&&_0x1009e2['hasOwnProperty']('sessionId')&&!_0x17c6dc['isString'](_0x1009e2['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x1009e2['lastOperationId']&&_0x1009e2['hasOwnProperty']('lastOperationId')&&!_0x17c6dc['isString'](_0x1009e2['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x1009e2['sessionCreatedAt']&&_0x1009e2['hasOwnProperty']('sessionCreatedAt')&&!_0x17c6dc['isString'](_0x1009e2['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},_0x5ebce7['fromObject']=function(_0x502792){if(_0x502792 instanceof _0x1d55ed['CollaborativeEditingConnectResponse'])return _0x502792;var _0xa68d02=new _0x1d55ed['CollaborativeEditingConnectResponse']();if(null!=_0x502792['channel']&&(_0xa68d02['channel']=String(_0x502792['channel'])),null!=_0x502792['offset']&&(_0xa68d02['offset']=_0x502792['offset']>>>0x0),null!=_0x502792['version']&&(_0xa68d02['version']=_0x502792['version']>>>0x0),_0x502792['buffers']){if(!Array['isArray'](_0x502792['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0xa68d02['buffers']=[];for(var _0x3121ef=0x0;_0x3121ef<_0x502792['buffers']['length'];++_0x3121ef)'string'==typeof _0x502792['buffers'][_0x3121ef]?_0x17c6dc['base64']['decode'](_0x502792['buffers'][_0x3121ef],_0xa68d02['buffers'][_0x3121ef]=_0x17c6dc['newBuffer'](_0x17c6dc['base64']['length'](_0x502792['buffers'][_0x3121ef])),0x0):_0x502792['buffers'][_0x3121ef]['length']>=0x0&&(_0xa68d02['buffers'][_0x3121ef]=_0x502792['buffers'][_0x3121ef]);}if(_0x502792['types']){if(!Array['isArray'](_0x502792['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');for(_0xa68d02['types']=[],_0x3121ef=0x0;_0x3121ef<_0x502792['types']['length'];++_0x3121ef)_0xa68d02['types'][_0x3121ef]=_0x502792['types'][_0x3121ef]>>>0x0;}if(_0x502792['metadata']){if(!Array['isArray'](_0x502792['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');for(_0xa68d02['metadata']=[],_0x3121ef=0x0;_0x3121ef<_0x502792['metadata']['length'];++_0x3121ef){if('object'!=typeof _0x502792['metadata'][_0x3121ef])throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0xa68d02['metadata'][_0x3121ef]=_0x1d55ed['OperationMetadataDescriptor']['fromObject'](_0x502792['metadata'][_0x3121ef]);}}return null!=_0x502792['initData']&&(_0xa68d02['initData']=String(_0x502792['initData'])),null!=_0x502792['isInitialized']&&(_0xa68d02['isInitialized']=Boolean(_0x502792['isInitialized'])),null!=_0x502792['sessionId']&&(_0xa68d02['sessionId']=String(_0x502792['sessionId'])),null!=_0x502792['lastOperationId']&&(_0xa68d02['lastOperationId']=String(_0x502792['lastOperationId'])),null!=_0x502792['sessionCreatedAt']&&(_0xa68d02['sessionCreatedAt']=String(_0x502792['sessionCreatedAt'])),_0xa68d02;},_0x5ebce7['toObject']=function(_0x5056af,_0x501995){_0x501995||(_0x501995={});var _0x152a7d={};if((_0x501995['arrays']||_0x501995['defaults'])&&(_0x152a7d['buffers']=[],_0x152a7d['types']=[],_0x152a7d['metadata']=[]),_0x501995['defaults']&&(_0x152a7d['channel']='',_0x152a7d['offset']=0x0,_0x152a7d['version']=0x0,_0x152a7d['initData']='',_0x152a7d['isInitialized']=!0x1,_0x152a7d['sessionId']='',_0x152a7d['lastOperationId']='',_0x152a7d['sessionCreatedAt']=''),null!=_0x5056af['channel']&&_0x5056af['hasOwnProperty']('channel')&&(_0x152a7d['channel']=_0x5056af['channel']),null!=_0x5056af['offset']&&_0x5056af['hasOwnProperty']('offset')&&(_0x152a7d['offset']=_0x5056af['offset']),null!=_0x5056af['version']&&_0x5056af['hasOwnProperty']('version')&&(_0x152a7d['version']=_0x5056af['version']),_0x5056af['buffers']&&_0x5056af['buffers']['length']){_0x152a7d['buffers']=[];for(var _0x2639f0=0x0;_0x2639f0<_0x5056af['buffers']['length'];++_0x2639f0)_0x152a7d['buffers'][_0x2639f0]=_0x501995['bytes']===String?_0x17c6dc['base64']['encode'](_0x5056af['buffers'][_0x2639f0],0x0,_0x5056af['buffers'][_0x2639f0]['length']):_0x501995['bytes']===Array?Array['prototype']['slice']['call'](_0x5056af['buffers'][_0x2639f0]):_0x5056af['buffers'][_0x2639f0];}if(_0x5056af['types']&&_0x5056af['types']['length']){for(_0x152a7d['types']=[],_0x2639f0=0x0;_0x2639f0<_0x5056af['types']['length'];++_0x2639f0)_0x152a7d['types'][_0x2639f0]=_0x5056af['types'][_0x2639f0];}if(_0x5056af['metadata']&&_0x5056af['metadata']['length']){for(_0x152a7d['metadata']=[],_0x2639f0=0x0;_0x2639f0<_0x5056af['metadata']['length'];++_0x2639f0)_0x152a7d['metadata'][_0x2639f0]=_0x1d55ed['OperationMetadataDescriptor']['toObject'](_0x5056af['metadata'][_0x2639f0],_0x501995);}return null!=_0x5056af['initData']&&_0x5056af['hasOwnProperty']('initData')&&(_0x152a7d['initData']=_0x5056af['initData']),null!=_0x5056af['isInitialized']&&_0x5056af['hasOwnProperty']('isInitialized')&&(_0x152a7d['isInitialized']=_0x5056af['isInitialized']),null!=_0x5056af['sessionId']&&_0x5056af['hasOwnProperty']('sessionId')&&(_0x152a7d['sessionId']=_0x5056af['sessionId']),null!=_0x5056af['lastOperationId']&&_0x5056af['hasOwnProperty']('lastOperationId')&&(_0x152a7d['lastOperationId']=_0x5056af['lastOperationId']),null!=_0x5056af['sessionCreatedAt']&&_0x5056af['hasOwnProperty']('sessionCreatedAt')&&(_0x152a7d['sessionCreatedAt']=_0x5056af['sessionCreatedAt']),_0x152a7d;},_0x5ebce7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5ebce7['getTypeUrl']=function(_0x12dc50){return void 0x0===_0x12dc50&&(_0x12dc50='type.googleapis.com'),_0x12dc50+'/CollaborativeEditingConnectResponse';},_0x5ebce7;}()),_0x1d55ed['GetDocumentDetailsMessage']=(function(){function _0x590db5(_0x4abe44){if(_0x4abe44){for(var _0x4868c2=Object['keys'](_0x4abe44),_0x136e8e=0x0;_0x136e8e<_0x4868c2['length'];++_0x136e8e)null!=_0x4abe44[_0x4868c2[_0x136e8e]]&&(this[_0x4868c2[_0x136e8e]]=_0x4abe44[_0x4868c2[_0x136e8e]]);}}return _0x590db5['prototype']['documentId']='',_0x590db5['prototype']['environmentId']='',_0x590db5['create']=function(_0x115cfd){return new _0x590db5(_0x115cfd);},_0x590db5['encode']=function(_0x47ea9e,_0x484d55){return _0x484d55||(_0x484d55=_0x214d5c['create']()),null!=_0x47ea9e['documentId']&&Object['hasOwnProperty']['call'](_0x47ea9e,'documentId')&&_0x484d55['uint32'](0xa)['string'](_0x47ea9e['documentId']),null!=_0x47ea9e['environmentId']&&Object['hasOwnProperty']['call'](_0x47ea9e,'environmentId')&&_0x484d55['uint32'](0x12)['string'](_0x47ea9e['environmentId']),_0x484d55;},_0x590db5['encodeDelimited']=function(_0x340bfd,_0x46ac29){return this['encode'](_0x340bfd,_0x46ac29)['ldelim']();},_0x590db5['decode']=function(_0xed7ee3,_0x4bfb85,_0x3640ef){_0xed7ee3 instanceof _0x10ed9a||(_0xed7ee3=_0x10ed9a['create'](_0xed7ee3));for(var _0x1911bc=void 0x0===_0x4bfb85?_0xed7ee3['len']:_0xed7ee3['pos']+_0x4bfb85,_0x2ff6f1=new _0x1d55ed['GetDocumentDetailsMessage']();_0xed7ee3['pos']<_0x1911bc;){var _0xe835b1=_0xed7ee3['uint32']();if(_0xe835b1===_0x3640ef)break;switch(_0xe835b1>>>0x3){case 0x1:_0x2ff6f1['documentId']=_0xed7ee3['string']();break;case 0x2:_0x2ff6f1['environmentId']=_0xed7ee3['string']();break;default:_0xed7ee3['skipType'](0x7&_0xe835b1);}}return _0x2ff6f1;},_0x590db5['decodeDelimited']=function(_0x16add5){return _0x16add5 instanceof _0x10ed9a||(_0x16add5=new _0x10ed9a(_0x16add5)),this['decode'](_0x16add5,_0x16add5['uint32']());},_0x590db5['verify']=function(_0x10c21b){return'object'!=typeof _0x10c21b||null===_0x10c21b?'object\x20expected':null!=_0x10c21b['documentId']&&_0x10c21b['hasOwnProperty']('documentId')&&!_0x17c6dc['isString'](_0x10c21b['documentId'])?'documentId:\x20string\x20expected':null!=_0x10c21b['environmentId']&&_0x10c21b['hasOwnProperty']('environmentId')&&!_0x17c6dc['isString'](_0x10c21b['environmentId'])?'environmentId:\x20string\x20expected':null;},_0x590db5['fromObject']=function(_0x543844){if(_0x543844 instanceof _0x1d55ed['GetDocumentDetailsMessage'])return _0x543844;var _0x519cf4=new _0x1d55ed['GetDocumentDetailsMessage']();return null!=_0x543844['documentId']&&(_0x519cf4['documentId']=String(_0x543844['documentId'])),null!=_0x543844['environmentId']&&(_0x519cf4['environmentId']=String(_0x543844['environmentId'])),_0x519cf4;},_0x590db5['toObject']=function(_0x5b47dc,_0x2430c7){_0x2430c7||(_0x2430c7={});var _0xeed4d8={};return _0x2430c7['defaults']&&(_0xeed4d8['documentId']='',_0xeed4d8['environmentId']=''),null!=_0x5b47dc['documentId']&&_0x5b47dc['hasOwnProperty']('documentId')&&(_0xeed4d8['documentId']=_0x5b47dc['documentId']),null!=_0x5b47dc['environmentId']&&_0x5b47dc['hasOwnProperty']('environmentId')&&(_0xeed4d8['environmentId']=_0x5b47dc['environmentId']),_0xeed4d8;},_0x590db5['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x590db5['getTypeUrl']=function(_0x1b4db4){return void 0x0===_0x1b4db4&&(_0x1b4db4='type.googleapis.com'),_0x1b4db4+'/GetDocumentDetailsMessage';},_0x590db5;}()),_0x1d55ed['CollaborativeEditingUpdateMessage']=(function(){function _0x2a0f6d(_0x3dbf9f){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x3dbf9f){for(var _0x25664d=Object['keys'](_0x3dbf9f),_0x32df1e=0x0;_0x32df1e<_0x25664d['length'];++_0x32df1e)null!=_0x3dbf9f[_0x25664d[_0x32df1e]]&&(this[_0x25664d[_0x32df1e]]=_0x3dbf9f[_0x25664d[_0x32df1e]]);}}return _0x2a0f6d['prototype']['id']='',_0x2a0f6d['prototype']['baseVersion']=0x0,_0x2a0f6d['prototype']['buffers']=_0x17c6dc['emptyArray'],_0x2a0f6d['prototype']['types']=_0x17c6dc['emptyArray'],_0x2a0f6d['prototype']['metadata']=_0x17c6dc['emptyArray'],_0x2a0f6d['prototype']['lastOperationId']='',_0x2a0f6d['create']=function(_0x2aef28){return new _0x2a0f6d(_0x2aef28);},_0x2a0f6d['encode']=function(_0x256478,_0xef9edc){if(_0xef9edc||(_0xef9edc=_0x214d5c['create']()),null!=_0x256478['id']&&Object['hasOwnProperty']['call'](_0x256478,'id')&&_0xef9edc['uint32'](0xa)['string'](_0x256478['id']),null!=_0x256478['baseVersion']&&Object['hasOwnProperty']['call'](_0x256478,'baseVersion')&&_0xef9edc['uint32'](0x10)['uint32'](_0x256478['baseVersion']),null!=_0x256478['buffers']&&_0x256478['buffers']['length']){for(var _0xb49bf2=0x0;_0xb49bf2<_0x256478['buffers']['length'];++_0xb49bf2)_0xef9edc['uint32'](0x1a)['bytes'](_0x256478['buffers'][_0xb49bf2]);}if(null!=_0x256478['types']&&_0x256478['types']['length']){for(_0xef9edc['uint32'](0x22)['fork'](),_0xb49bf2=0x0;_0xb49bf2<_0x256478['types']['length'];++_0xb49bf2)_0xef9edc['uint32'](_0x256478['types'][_0xb49bf2]);_0xef9edc['ldelim']();}if(null!=_0x256478['metadata']&&_0x256478['metadata']['length']){for(_0xb49bf2=0x0;_0xb49bf2<_0x256478['metadata']['length'];++_0xb49bf2)_0x1d55ed['OperationMetadataDescriptor']['encode'](_0x256478['metadata'][_0xb49bf2],_0xef9edc['uint32'](0x32)['fork']())['ldelim']();}return null!=_0x256478['lastOperationId']&&Object['hasOwnProperty']['call'](_0x256478,'lastOperationId')&&_0xef9edc['uint32'](0x3a)['string'](_0x256478['lastOperationId']),_0xef9edc;},_0x2a0f6d['encodeDelimited']=function(_0x9acf0,_0x498344){return this['encode'](_0x9acf0,_0x498344)['ldelim']();},_0x2a0f6d['decode']=function(_0x33fe8c,_0x12b590,_0x3965e2){_0x33fe8c instanceof _0x10ed9a||(_0x33fe8c=_0x10ed9a['create'](_0x33fe8c));for(var _0xe206a3=void 0x0===_0x12b590?_0x33fe8c['len']:_0x33fe8c['pos']+_0x12b590,_0x584c5c=new _0x1d55ed['CollaborativeEditingUpdateMessage']();_0x33fe8c['pos']<_0xe206a3;){var _0xa791cd=_0x33fe8c['uint32']();if(_0xa791cd===_0x3965e2)break;switch(_0xa791cd>>>0x3){case 0x1:_0x584c5c['id']=_0x33fe8c['string']();break;case 0x2:_0x584c5c['baseVersion']=_0x33fe8c['uint32']();break;case 0x3:_0x584c5c['buffers']&&_0x584c5c['buffers']['length']||(_0x584c5c['buffers']=[]),_0x584c5c['buffers']['push'](_0x33fe8c['bytes']());break;case 0x4:if(_0x584c5c['types']&&_0x584c5c['types']['length']||(_0x584c5c['types']=[]),0x2==(0x7&_0xa791cd)){for(var _0x172300=_0x33fe8c['uint32']()+_0x33fe8c['pos'];_0x33fe8c['pos']<_0x172300;)_0x584c5c['types']['push'](_0x33fe8c['uint32']());}else _0x584c5c['types']['push'](_0x33fe8c['uint32']());break;case 0x6:_0x584c5c['metadata']&&_0x584c5c['metadata']['length']||(_0x584c5c['metadata']=[]),_0x584c5c['metadata']['push'](_0x1d55ed['OperationMetadataDescriptor']['decode'](_0x33fe8c,_0x33fe8c['uint32']()));break;case 0x7:_0x584c5c['lastOperationId']=_0x33fe8c['string']();break;default:_0x33fe8c['skipType'](0x7&_0xa791cd);}}return _0x584c5c;},_0x2a0f6d['decodeDelimited']=function(_0x35604c){return _0x35604c instanceof _0x10ed9a||(_0x35604c=new _0x10ed9a(_0x35604c)),this['decode'](_0x35604c,_0x35604c['uint32']());},_0x2a0f6d['verify']=function(_0x4b62d0){if('object'!=typeof _0x4b62d0||null===_0x4b62d0)return'object\x20expected';if(null!=_0x4b62d0['id']&&_0x4b62d0['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x4b62d0['id']))return'id:\x20string\x20expected';if(null!=_0x4b62d0['baseVersion']&&_0x4b62d0['hasOwnProperty']('baseVersion')&&!_0x17c6dc['isInteger'](_0x4b62d0['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0x4b62d0['buffers']&&_0x4b62d0['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x4b62d0['buffers']))return'buffers:\x20array\x20expected';for(var _0x4551fa=0x0;_0x4551fa<_0x4b62d0['buffers']['length'];++_0x4551fa)if(!(_0x4b62d0['buffers'][_0x4551fa]&&'number'==typeof _0x4b62d0['buffers'][_0x4551fa]['length']||_0x17c6dc['isString'](_0x4b62d0['buffers'][_0x4551fa])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x4b62d0['types']&&_0x4b62d0['hasOwnProperty']('types')){if(!Array['isArray'](_0x4b62d0['types']))return'types:\x20array\x20expected';for(_0x4551fa=0x0;_0x4551fa<_0x4b62d0['types']['length'];++_0x4551fa)if(!_0x17c6dc['isInteger'](_0x4b62d0['types'][_0x4551fa]))return'types:\x20integer[]\x20expected';}if(null!=_0x4b62d0['metadata']&&_0x4b62d0['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x4b62d0['metadata']))return'metadata:\x20array\x20expected';for(_0x4551fa=0x0;_0x4551fa<_0x4b62d0['metadata']['length'];++_0x4551fa){var _0x16fe8e=_0x1d55ed['OperationMetadataDescriptor']['verify'](_0x4b62d0['metadata'][_0x4551fa]);if(_0x16fe8e)return'metadata.'+_0x16fe8e;}}return null!=_0x4b62d0['lastOperationId']&&_0x4b62d0['hasOwnProperty']('lastOperationId')&&!_0x17c6dc['isString'](_0x4b62d0['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x2a0f6d['fromObject']=function(_0x1a860a){if(_0x1a860a instanceof _0x1d55ed['CollaborativeEditingUpdateMessage'])return _0x1a860a;var _0xe46e6f=new _0x1d55ed['CollaborativeEditingUpdateMessage']();if(null!=_0x1a860a['id']&&(_0xe46e6f['id']=String(_0x1a860a['id'])),null!=_0x1a860a['baseVersion']&&(_0xe46e6f['baseVersion']=_0x1a860a['baseVersion']>>>0x0),_0x1a860a['buffers']){if(!Array['isArray'](_0x1a860a['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0xe46e6f['buffers']=[];for(var _0x30964f=0x0;_0x30964f<_0x1a860a['buffers']['length'];++_0x30964f)'string'==typeof _0x1a860a['buffers'][_0x30964f]?_0x17c6dc['base64']['decode'](_0x1a860a['buffers'][_0x30964f],_0xe46e6f['buffers'][_0x30964f]=_0x17c6dc['newBuffer'](_0x17c6dc['base64']['length'](_0x1a860a['buffers'][_0x30964f])),0x0):_0x1a860a['buffers'][_0x30964f]['length']>=0x0&&(_0xe46e6f['buffers'][_0x30964f]=_0x1a860a['buffers'][_0x30964f]);}if(_0x1a860a['types']){if(!Array['isArray'](_0x1a860a['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');for(_0xe46e6f['types']=[],_0x30964f=0x0;_0x30964f<_0x1a860a['types']['length'];++_0x30964f)_0xe46e6f['types'][_0x30964f]=_0x1a860a['types'][_0x30964f]>>>0x0;}if(_0x1a860a['metadata']){if(!Array['isArray'](_0x1a860a['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');for(_0xe46e6f['metadata']=[],_0x30964f=0x0;_0x30964f<_0x1a860a['metadata']['length'];++_0x30964f){if('object'!=typeof _0x1a860a['metadata'][_0x30964f])throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0xe46e6f['metadata'][_0x30964f]=_0x1d55ed['OperationMetadataDescriptor']['fromObject'](_0x1a860a['metadata'][_0x30964f]);}}return null!=_0x1a860a['lastOperationId']&&(_0xe46e6f['lastOperationId']=String(_0x1a860a['lastOperationId'])),_0xe46e6f;},_0x2a0f6d['toObject']=function(_0x9e5c7d,_0x59d6d7){_0x59d6d7||(_0x59d6d7={});var _0x47e549={};if((_0x59d6d7['arrays']||_0x59d6d7['defaults'])&&(_0x47e549['buffers']=[],_0x47e549['types']=[],_0x47e549['metadata']=[]),_0x59d6d7['defaults']&&(_0x47e549['id']='',_0x47e549['baseVersion']=0x0,_0x47e549['lastOperationId']=''),null!=_0x9e5c7d['id']&&_0x9e5c7d['hasOwnProperty']('id')&&(_0x47e549['id']=_0x9e5c7d['id']),null!=_0x9e5c7d['baseVersion']&&_0x9e5c7d['hasOwnProperty']('baseVersion')&&(_0x47e549['baseVersion']=_0x9e5c7d['baseVersion']),_0x9e5c7d['buffers']&&_0x9e5c7d['buffers']['length']){_0x47e549['buffers']=[];for(var _0x309a96=0x0;_0x309a96<_0x9e5c7d['buffers']['length'];++_0x309a96)_0x47e549['buffers'][_0x309a96]=_0x59d6d7['bytes']===String?_0x17c6dc['base64']['encode'](_0x9e5c7d['buffers'][_0x309a96],0x0,_0x9e5c7d['buffers'][_0x309a96]['length']):_0x59d6d7['bytes']===Array?Array['prototype']['slice']['call'](_0x9e5c7d['buffers'][_0x309a96]):_0x9e5c7d['buffers'][_0x309a96];}if(_0x9e5c7d['types']&&_0x9e5c7d['types']['length']){for(_0x47e549['types']=[],_0x309a96=0x0;_0x309a96<_0x9e5c7d['types']['length'];++_0x309a96)_0x47e549['types'][_0x309a96]=_0x9e5c7d['types'][_0x309a96];}if(_0x9e5c7d['metadata']&&_0x9e5c7d['metadata']['length']){for(_0x47e549['metadata']=[],_0x309a96=0x0;_0x309a96<_0x9e5c7d['metadata']['length'];++_0x309a96)_0x47e549['metadata'][_0x309a96]=_0x1d55ed['OperationMetadataDescriptor']['toObject'](_0x9e5c7d['metadata'][_0x309a96],_0x59d6d7);}return null!=_0x9e5c7d['lastOperationId']&&_0x9e5c7d['hasOwnProperty']('lastOperationId')&&(_0x47e549['lastOperationId']=_0x9e5c7d['lastOperationId']),_0x47e549;},_0x2a0f6d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2a0f6d['getTypeUrl']=function(_0x385f55){return void 0x0===_0x385f55&&(_0x385f55='type.googleapis.com'),_0x385f55+'/CollaborativeEditingUpdateMessage';},_0x2a0f6d;}()),_0x1d55ed['CollaborativeEditingReconnectMessage']=(function(){function _0x22a0a4(_0x475347){if(_0x475347){for(var _0x3984c8=Object['keys'](_0x475347),_0x3c289f=0x0;_0x3c289f<_0x3984c8['length'];++_0x3c289f)null!=_0x475347[_0x3984c8[_0x3c289f]]&&(this[_0x3984c8[_0x3c289f]]=_0x475347[_0x3984c8[_0x3c289f]]);}}return _0x22a0a4['prototype']['id']='',_0x22a0a4['prototype']['bundleVersion']='',_0x22a0a4['prototype']['lastKnowVersion']=0x0,_0x22a0a4['create']=function(_0x4c1dc8){return new _0x22a0a4(_0x4c1dc8);},_0x22a0a4['encode']=function(_0x18414f,_0x2fa223){return _0x2fa223||(_0x2fa223=_0x214d5c['create']()),null!=_0x18414f['id']&&Object['hasOwnProperty']['call'](_0x18414f,'id')&&_0x2fa223['uint32'](0xa)['string'](_0x18414f['id']),null!=_0x18414f['bundleVersion']&&Object['hasOwnProperty']['call'](_0x18414f,'bundleVersion')&&_0x2fa223['uint32'](0x12)['string'](_0x18414f['bundleVersion']),null!=_0x18414f['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x18414f,'lastKnowVersion')&&_0x2fa223['uint32'](0x18)['uint32'](_0x18414f['lastKnowVersion']),_0x2fa223;},_0x22a0a4['encodeDelimited']=function(_0x328622,_0x175871){return this['encode'](_0x328622,_0x175871)['ldelim']();},_0x22a0a4['decode']=function(_0x124a64,_0x43bc34,_0x62342e){_0x124a64 instanceof _0x10ed9a||(_0x124a64=_0x10ed9a['create'](_0x124a64));for(var _0x5d8b7f=void 0x0===_0x43bc34?_0x124a64['len']:_0x124a64['pos']+_0x43bc34,_0x46829a=new _0x1d55ed['CollaborativeEditingReconnectMessage']();_0x124a64['pos']<_0x5d8b7f;){var _0x297b43=_0x124a64['uint32']();if(_0x297b43===_0x62342e)break;switch(_0x297b43>>>0x3){case 0x1:_0x46829a['id']=_0x124a64['string']();break;case 0x2:_0x46829a['bundleVersion']=_0x124a64['string']();break;case 0x3:_0x46829a['lastKnowVersion']=_0x124a64['uint32']();break;default:_0x124a64['skipType'](0x7&_0x297b43);}}return _0x46829a;},_0x22a0a4['decodeDelimited']=function(_0x3853cb){return _0x3853cb instanceof _0x10ed9a||(_0x3853cb=new _0x10ed9a(_0x3853cb)),this['decode'](_0x3853cb,_0x3853cb['uint32']());},_0x22a0a4['verify']=function(_0x5daf6f){return'object'!=typeof _0x5daf6f||null===_0x5daf6f?'object\x20expected':null!=_0x5daf6f['id']&&_0x5daf6f['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x5daf6f['id'])?'id:\x20string\x20expected':null!=_0x5daf6f['bundleVersion']&&_0x5daf6f['hasOwnProperty']('bundleVersion')&&!_0x17c6dc['isString'](_0x5daf6f['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0x5daf6f['lastKnowVersion']&&_0x5daf6f['hasOwnProperty']('lastKnowVersion')&&!_0x17c6dc['isInteger'](_0x5daf6f['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null;},_0x22a0a4['fromObject']=function(_0x3f9052){if(_0x3f9052 instanceof _0x1d55ed['CollaborativeEditingReconnectMessage'])return _0x3f9052;var _0x4f9b43=new _0x1d55ed['CollaborativeEditingReconnectMessage']();return null!=_0x3f9052['id']&&(_0x4f9b43['id']=String(_0x3f9052['id'])),null!=_0x3f9052['bundleVersion']&&(_0x4f9b43['bundleVersion']=String(_0x3f9052['bundleVersion'])),null!=_0x3f9052['lastKnowVersion']&&(_0x4f9b43['lastKnowVersion']=_0x3f9052['lastKnowVersion']>>>0x0),_0x4f9b43;},_0x22a0a4['toObject']=function(_0x44c056,_0x53e69b){_0x53e69b||(_0x53e69b={});var _0x20301c={};return _0x53e69b['defaults']&&(_0x20301c['id']='',_0x20301c['bundleVersion']='',_0x20301c['lastKnowVersion']=0x0),null!=_0x44c056['id']&&_0x44c056['hasOwnProperty']('id')&&(_0x20301c['id']=_0x44c056['id']),null!=_0x44c056['bundleVersion']&&_0x44c056['hasOwnProperty']('bundleVersion')&&(_0x20301c['bundleVersion']=_0x44c056['bundleVersion']),null!=_0x44c056['lastKnowVersion']&&_0x44c056['hasOwnProperty']('lastKnowVersion')&&(_0x20301c['lastKnowVersion']=_0x44c056['lastKnowVersion']),_0x20301c;},_0x22a0a4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x22a0a4['getTypeUrl']=function(_0x5cf15b){return void 0x0===_0x5cf15b&&(_0x5cf15b='type.googleapis.com'),_0x5cf15b+'/CollaborativeEditingReconnectMessage';},_0x22a0a4;}()),_0x1d55ed['CollaborativeEditingConnectMessage']=(function(){function _0x54a36a(_0x2ac406){if(this['buffers']=[],this['types']=[],_0x2ac406){for(var _0x27d36f=Object['keys'](_0x2ac406),_0x33ef8a=0x0;_0x33ef8a<_0x27d36f['length'];++_0x33ef8a)null!=_0x2ac406[_0x27d36f[_0x33ef8a]]&&(this[_0x27d36f[_0x33ef8a]]=_0x2ac406[_0x27d36f[_0x33ef8a]]);}}return _0x54a36a['prototype']['id']='',_0x54a36a['prototype']['bundleVersion']='',_0x54a36a['prototype']['buffers']=_0x17c6dc['emptyArray'],_0x54a36a['prototype']['types']=_0x17c6dc['emptyArray'],_0x54a36a['prototype']['lastOperationId']='',_0x54a36a['create']=function(_0x3c3975){return new _0x54a36a(_0x3c3975);},_0x54a36a['encode']=function(_0x1538fc,_0x2d9de7){if(_0x2d9de7||(_0x2d9de7=_0x214d5c['create']()),null!=_0x1538fc['id']&&Object['hasOwnProperty']['call'](_0x1538fc,'id')&&_0x2d9de7['uint32'](0xa)['string'](_0x1538fc['id']),null!=_0x1538fc['bundleVersion']&&Object['hasOwnProperty']['call'](_0x1538fc,'bundleVersion')&&_0x2d9de7['uint32'](0x12)['string'](_0x1538fc['bundleVersion']),null!=_0x1538fc['buffers']&&_0x1538fc['buffers']['length']){for(var _0x8a6f3e=0x0;_0x8a6f3e<_0x1538fc['buffers']['length'];++_0x8a6f3e)_0x2d9de7['uint32'](0x1a)['bytes'](_0x1538fc['buffers'][_0x8a6f3e]);}if(null!=_0x1538fc['types']&&_0x1538fc['types']['length']){for(_0x2d9de7['uint32'](0x22)['fork'](),_0x8a6f3e=0x0;_0x8a6f3e<_0x1538fc['types']['length'];++_0x8a6f3e)_0x2d9de7['uint32'](_0x1538fc['types'][_0x8a6f3e]);_0x2d9de7['ldelim']();}return null!=_0x1538fc['lastOperationId']&&Object['hasOwnProperty']['call'](_0x1538fc,'lastOperationId')&&_0x2d9de7['uint32'](0x2a)['string'](_0x1538fc['lastOperationId']),_0x2d9de7;},_0x54a36a['encodeDelimited']=function(_0x1404ad,_0x39bbd9){return this['encode'](_0x1404ad,_0x39bbd9)['ldelim']();},_0x54a36a['decode']=function(_0xf02014,_0x3fae71,_0x2de829){_0xf02014 instanceof _0x10ed9a||(_0xf02014=_0x10ed9a['create'](_0xf02014));for(var _0x366195=void 0x0===_0x3fae71?_0xf02014['len']:_0xf02014['pos']+_0x3fae71,_0x8baa4f=new _0x1d55ed['CollaborativeEditingConnectMessage']();_0xf02014['pos']<_0x366195;){var _0x571a7b=_0xf02014['uint32']();if(_0x571a7b===_0x2de829)break;switch(_0x571a7b>>>0x3){case 0x1:_0x8baa4f['id']=_0xf02014['string']();break;case 0x2:_0x8baa4f['bundleVersion']=_0xf02014['string']();break;case 0x3:_0x8baa4f['buffers']&&_0x8baa4f['buffers']['length']||(_0x8baa4f['buffers']=[]),_0x8baa4f['buffers']['push'](_0xf02014['bytes']());break;case 0x4:if(_0x8baa4f['types']&&_0x8baa4f['types']['length']||(_0x8baa4f['types']=[]),0x2==(0x7&_0x571a7b)){for(var _0x21c801=_0xf02014['uint32']()+_0xf02014['pos'];_0xf02014['pos']<_0x21c801;)_0x8baa4f['types']['push'](_0xf02014['uint32']());}else _0x8baa4f['types']['push'](_0xf02014['uint32']());break;case 0x5:_0x8baa4f['lastOperationId']=_0xf02014['string']();break;default:_0xf02014['skipType'](0x7&_0x571a7b);}}return _0x8baa4f;},_0x54a36a['decodeDelimited']=function(_0x51a62d){return _0x51a62d instanceof _0x10ed9a||(_0x51a62d=new _0x10ed9a(_0x51a62d)),this['decode'](_0x51a62d,_0x51a62d['uint32']());},_0x54a36a['verify']=function(_0x4492bd){if('object'!=typeof _0x4492bd||null===_0x4492bd)return'object\x20expected';if(null!=_0x4492bd['id']&&_0x4492bd['hasOwnProperty']('id')&&!_0x17c6dc['isString'](_0x4492bd['id']))return'id:\x20string\x20expected';if(null!=_0x4492bd['bundleVersion']&&_0x4492bd['hasOwnProperty']('bundleVersion')&&!_0x17c6dc['isString'](_0x4492bd['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0x4492bd['buffers']&&_0x4492bd['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x4492bd['buffers']))return'buffers:\x20array\x20expected';for(var _0x2f0c54=0x0;_0x2f0c54<_0x4492bd['buffers']['length'];++_0x2f0c54)if(!(_0x4492bd['buffers'][_0x2f0c54]&&'number'==typeof _0x4492bd['buffers'][_0x2f0c54]['length']||_0x17c6dc['isString'](_0x4492bd['buffers'][_0x2f0c54])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x4492bd['types']&&_0x4492bd['hasOwnProperty']('types')){if(!Array['isArray'](_0x4492bd['types']))return'types:\x20array\x20expected';for(_0x2f0c54=0x0;_0x2f0c54<_0x4492bd['types']['length'];++_0x2f0c54)if(!_0x17c6dc['isInteger'](_0x4492bd['types'][_0x2f0c54]))return'types:\x20integer[]\x20expected';}return null!=_0x4492bd['lastOperationId']&&_0x4492bd['hasOwnProperty']('lastOperationId')&&!_0x17c6dc['isString'](_0x4492bd['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x54a36a['fromObject']=function(_0x43c634){if(_0x43c634 instanceof _0x1d55ed['CollaborativeEditingConnectMessage'])return _0x43c634;var _0x446a30=new _0x1d55ed['CollaborativeEditingConnectMessage']();if(null!=_0x43c634['id']&&(_0x446a30['id']=String(_0x43c634['id'])),null!=_0x43c634['bundleVersion']&&(_0x446a30['bundleVersion']=String(_0x43c634['bundleVersion'])),_0x43c634['buffers']){if(!Array['isArray'](_0x43c634['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x446a30['buffers']=[];for(var _0x59dce2=0x0;_0x59dce2<_0x43c634['buffers']['length'];++_0x59dce2)'string'==typeof _0x43c634['buffers'][_0x59dce2]?_0x17c6dc['base64']['decode'](_0x43c634['buffers'][_0x59dce2],_0x446a30['buffers'][_0x59dce2]=_0x17c6dc['newBuffer'](_0x17c6dc['base64']['length'](_0x43c634['buffers'][_0x59dce2])),0x0):_0x43c634['buffers'][_0x59dce2]['length']>=0x0&&(_0x446a30['buffers'][_0x59dce2]=_0x43c634['buffers'][_0x59dce2]);}if(_0x43c634['types']){if(!Array['isArray'](_0x43c634['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');for(_0x446a30['types']=[],_0x59dce2=0x0;_0x59dce2<_0x43c634['types']['length'];++_0x59dce2)_0x446a30['types'][_0x59dce2]=_0x43c634['types'][_0x59dce2]>>>0x0;}return null!=_0x43c634['lastOperationId']&&(_0x446a30['lastOperationId']=String(_0x43c634['lastOperationId'])),_0x446a30;},_0x54a36a['toObject']=function(_0x5ae4b1,_0x57aeb1){_0x57aeb1||(_0x57aeb1={});var _0x7c6197={};if((_0x57aeb1['arrays']||_0x57aeb1['defaults'])&&(_0x7c6197['buffers']=[],_0x7c6197['types']=[]),_0x57aeb1['defaults']&&(_0x7c6197['id']='',_0x7c6197['bundleVersion']='',_0x7c6197['lastOperationId']=''),null!=_0x5ae4b1['id']&&_0x5ae4b1['hasOwnProperty']('id')&&(_0x7c6197['id']=_0x5ae4b1['id']),null!=_0x5ae4b1['bundleVersion']&&_0x5ae4b1['hasOwnProperty']('bundleVersion')&&(_0x7c6197['bundleVersion']=_0x5ae4b1['bundleVersion']),_0x5ae4b1['buffers']&&_0x5ae4b1['buffers']['length']){_0x7c6197['buffers']=[];for(var _0x13e7f2=0x0;_0x13e7f2<_0x5ae4b1['buffers']['length'];++_0x13e7f2)_0x7c6197['buffers'][_0x13e7f2]=_0x57aeb1['bytes']===String?_0x17c6dc['base64']['encode'](_0x5ae4b1['buffers'][_0x13e7f2],0x0,_0x5ae4b1['buffers'][_0x13e7f2]['length']):_0x57aeb1['bytes']===Array?Array['prototype']['slice']['call'](_0x5ae4b1['buffers'][_0x13e7f2]):_0x5ae4b1['buffers'][_0x13e7f2];}if(_0x5ae4b1['types']&&_0x5ae4b1['types']['length']){for(_0x7c6197['types']=[],_0x13e7f2=0x0;_0x13e7f2<_0x5ae4b1['types']['length'];++_0x13e7f2)_0x7c6197['types'][_0x13e7f2]=_0x5ae4b1['types'][_0x13e7f2];}return null!=_0x5ae4b1['lastOperationId']&&_0x5ae4b1['hasOwnProperty']('lastOperationId')&&(_0x7c6197['lastOperationId']=_0x5ae4b1['lastOperationId']),_0x7c6197;},_0x54a36a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x54a36a['getTypeUrl']=function(_0x3b63f6){return void 0x0===_0x3b63f6&&(_0x3b63f6='type.googleapis.com'),_0x3b63f6+'/CollaborativeEditingConnectMessage';},_0x54a36a;}()),_0x1d55ed['OperationMetadataDescriptor']=(function(){function _0x2b33e0(_0x4f9910){if(_0x4f9910){for(var _0x114a82=Object['keys'](_0x4f9910),_0x2ba361=0x0;_0x2ba361<_0x114a82['length'];++_0x2ba361)null!=_0x4f9910[_0x114a82[_0x2ba361]]&&(this[_0x114a82[_0x2ba361]]=_0x4f9910[_0x114a82[_0x2ba361]]);}}return _0x2b33e0['prototype']['userId']='',_0x2b33e0['prototype']['type']='',_0x2b33e0['prototype']['createdAt']='',_0x2b33e0['create']=function(_0x10f687){return new _0x2b33e0(_0x10f687);},_0x2b33e0['encode']=function(_0x411a97,_0xaf4c53){return _0xaf4c53||(_0xaf4c53=_0x214d5c['create']()),null!=_0x411a97['userId']&&Object['hasOwnProperty']['call'](_0x411a97,'userId')&&_0xaf4c53['uint32'](0xa)['string'](_0x411a97['userId']),null!=_0x411a97['type']&&Object['hasOwnProperty']['call'](_0x411a97,'type')&&_0xaf4c53['uint32'](0x12)['string'](_0x411a97['type']),null!=_0x411a97['createdAt']&&Object['hasOwnProperty']['call'](_0x411a97,'createdAt')&&_0xaf4c53['uint32'](0x1a)['string'](_0x411a97['createdAt']),_0xaf4c53;},_0x2b33e0['encodeDelimited']=function(_0x26735f,_0x50e07d){return this['encode'](_0x26735f,_0x50e07d)['ldelim']();},_0x2b33e0['decode']=function(_0x8d62c0,_0x335a21,_0x25c985){_0x8d62c0 instanceof _0x10ed9a||(_0x8d62c0=_0x10ed9a['create'](_0x8d62c0));for(var _0x162995=void 0x0===_0x335a21?_0x8d62c0['len']:_0x8d62c0['pos']+_0x335a21,_0x4eebdd=new _0x1d55ed['OperationMetadataDescriptor']();_0x8d62c0['pos']<_0x162995;){var _0x396354=_0x8d62c0['uint32']();if(_0x396354===_0x25c985)break;switch(_0x396354>>>0x3){case 0x1:_0x4eebdd['userId']=_0x8d62c0['string']();break;case 0x2:_0x4eebdd['type']=_0x8d62c0['string']();break;case 0x3:_0x4eebdd['createdAt']=_0x8d62c0['string']();break;default:_0x8d62c0['skipType'](0x7&_0x396354);}}return _0x4eebdd;},_0x2b33e0['decodeDelimited']=function(_0x2cbede){return _0x2cbede instanceof _0x10ed9a||(_0x2cbede=new _0x10ed9a(_0x2cbede)),this['decode'](_0x2cbede,_0x2cbede['uint32']());},_0x2b33e0['verify']=function(_0x6eac18){return'object'!=typeof _0x6eac18||null===_0x6eac18?'object\x20expected':null!=_0x6eac18['userId']&&_0x6eac18['hasOwnProperty']('userId')&&!_0x17c6dc['isString'](_0x6eac18['userId'])?'userId:\x20string\x20expected':null!=_0x6eac18['type']&&_0x6eac18['hasOwnProperty']('type')&&!_0x17c6dc['isString'](_0x6eac18['type'])?'type:\x20string\x20expected':null!=_0x6eac18['createdAt']&&_0x6eac18['hasOwnProperty']('createdAt')&&!_0x17c6dc['isString'](_0x6eac18['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x2b33e0['fromObject']=function(_0x31d149){if(_0x31d149 instanceof _0x1d55ed['OperationMetadataDescriptor'])return _0x31d149;var _0x435354=new _0x1d55ed['OperationMetadataDescriptor']();return null!=_0x31d149['userId']&&(_0x435354['userId']=String(_0x31d149['userId'])),null!=_0x31d149['type']&&(_0x435354['type']=String(_0x31d149['type'])),null!=_0x31d149['createdAt']&&(_0x435354['createdAt']=String(_0x31d149['createdAt'])),_0x435354;},_0x2b33e0['toObject']=function(_0x42b810,_0x5208b4){_0x5208b4||(_0x5208b4={});var _0x496a42={};return _0x5208b4['defaults']&&(_0x496a42['userId']='',_0x496a42['type']='',_0x496a42['createdAt']=''),null!=_0x42b810['userId']&&_0x42b810['hasOwnProperty']('userId')&&(_0x496a42['userId']=_0x42b810['userId']),null!=_0x42b810['type']&&_0x42b810['hasOwnProperty']('type')&&(_0x496a42['type']=_0x42b810['type']),null!=_0x42b810['createdAt']&&_0x42b810['hasOwnProperty']('createdAt')&&(_0x496a42['createdAt']=_0x42b810['createdAt']),_0x496a42;},_0x2b33e0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2b33e0['getTypeUrl']=function(_0x5b80d8){return void 0x0===_0x5b80d8&&(_0x5b80d8='type.googleapis.com'),_0x5b80d8+'/OperationMetadataDescriptor';},_0x2b33e0;}()),_0x1d55ed;})());class MessagesCompressor{static['decode'](_0x4565cf,_0x2a12e5){const _0x17f7fc=_getType(_0x2a12e5)['decode']('undefined'==typeof window?_0x4565cf:new Uint8Array(_0x4565cf));return _0x2a12e5['fromJSON']({..._0x17f7fc});}static['encode'](_0x3754d8){const _0x606e0f=_getType(_0x3754d8['constructor']),_0x581d56=_0x3754d8['toJSON'](),_0x907c95=_0x606e0f['verify'](_0x581d56);if(_0x907c95)throw Error(_0x907c95);return _0x606e0f['encode'](_0x606e0f['create'](_0x581d56))['finish']();}}function _getType(_0x390601){return messages$1[_0x390601['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(_0x3bcc57){super(),this['ids']=_0x3bcc57;}['toJSON'](){return{'ids':this['ids']};}static['fromJSON'](_0x27035e){return new GetManyUsersMessage(_0x27035e['ids']);}}class GetManyUsersResponse extends Message{['users'];static ['DESCRIPTOR_NAME']='GetManyUsersResponse';static ['DESCRIPTOR']={'fields':{'users':{'rule':'repeated','type':'UserDescriptor','id':0x1}}};constructor(_0xf0ce52){super(),this['users']=_0xf0ce52;}['toJSON'](){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](_0x383c03){return new GetManyUsersResponse(_0x383c03['users']['map'](_userFromJson));}}function _userToJson(_0xb37b83){return{'attributes':Object['keys'](_0xb37b83)['map'](_0xa2545e=>({'key':_0xa2545e,'value':JSON['stringify'](_0xb37b83[_0xa2545e])}))};}function _userFromJson(_0x222f59){return _0x222f59['attributes']['reduce']((_0x53cd01,_0x175c05)=>(_0x53cd01[_0x175c05['key']]=_0x175c05['value']?JSON['parse'](_0x175c05['value']):null,_0x53cd01),{});}class User{static ['_SERVICE']=0x2;constructor(_0x33cace={}){this['_attributes']=new Map();for(const _0x2a003e of Object['keys'](_0x33cace))'id'!==_0x2a003e?(this['_attributes']['set'](_0x2a003e,_0x33cace[_0x2a003e]),Object['defineProperty'](this,_0x2a003e,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x2a003e)})):this['id']=_0x33cace['id'];}static['fromData'](_0x26ccd8){return new User(_0x26ccd8);}static async['get'](_0x1f609c,_0x234b09){const _0x31fe61=new GetUserMessage(_0x234b09);try{const _0x55083a=await _0x1f609c['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x31fe61)),_0x4832b0=MessagesCompressor['decode'](_0x55083a,GetUserResponse);return new User(_0x4832b0['attributes']);}catch(_0x1ac4b2){return new User({'id':_0x234b09});}}static async['getMany'](_0x1ccb5c,_0x57d543){const _0x4efeac=new GetManyUsersMessage(_0x57d543);try{const _0x407d56=await _0x1ccb5c['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0x4efeac));return MessagesCompressor['decode'](_0x407d56,GetManyUsersResponse)['users']['map'](_0x714c4=>new User(_0x714c4));}catch(_0x3fc677){return _0x57d543['map'](_0x150eb2=>new User({'id':_0x150eb2}));}}}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(_0x529f01,_0xe00d41,_0x9c0410){super(),this['type']=_0x529f01,this['socketId']=_0xe00d41,this['data']=_0x9c0410;}['toJSON'](){return{'type':this['type'],'socketId':this['socketId'],'data':this['data']};}static['fromJSON'](_0x4fa9a5){return new ChannelMessage(_0x4fa9a5['type'],_0x4fa9a5['socketId'],_0x4fa9a5['data']);}}class Channel extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_channelName'];['_wsGateway'];['_socket'];constructor(_0x5c3de7,_0x580db4,_0x2b01c7){super(),this['_channelName']=_0x5c3de7,this['_wsGateway']=_0x580db4,this['_socket']=_0x2b01c7,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}['getEventName'](_0xf5317e,_0x1a4625=!0x1){let _0x2d159a='';return _0x1a4625&&(_0x2d159a+='all:'),_0x2d159a+='event',_0xf5317e&&(_0x2d159a+=':'+_0xf5317e),_0x2d159a;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x24d292=>{const _0x17136a=MessagesCompressor['decode'](_0x24d292,ChannelMessage);this['fire'](this['getEventName'](_0x17136a['type'],!0x0),_0x17136a['data'],_0x17136a['socketId']),_0x17136a['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0x17136a['type']),_0x17136a['data'],_0x17136a['socketId']);});}}class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x231763,_0x4243d5,_0x5dc906=null,_0x33a37e={}){super('cloud-services-internal-error:\x20'+_0x231763),this['context']=_0x4243d5,this['code']=_0x5dc906,this['data']=_0x33a37e,this['name']='CKEditorError';}static['fromPublicError'](_0x458c13){return new CKEditorCloudServicesError(function(_0x4afe13){let _0x5e6dc='cloud-services-error:\x20'+_0x4afe13['message'];return _0x4afe13['data']&&(_0x5e6dc+='\x0aError\x20data:\x20'+JSON['stringify'](_0x4afe13['data'])),_0x4afe13['explanation']&&(_0x5e6dc+='\x0aExplanation:\x20'+_0x4afe13['explanation']),_0x4afe13['action']&&(_0x5e6dc+='\x0aAction:\x20'+_0x4afe13['action']),_0x4afe13['traceId']&&(_0x5e6dc+='\x0aTraceId:\x20'+_0x4afe13['traceId']),_0x4afe13['code']&&(_0x5e6dc+='\x0aCode:\x20'+_0x4afe13['code']),_0x5e6dc;}(_0x458c13),_0x458c13);}}class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x573376,_0x298702){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x573376,this['code']=_0x298702['code'],this['traceId']=_0x298702['traceId'],this['data']=_0x298702['data'];}static['fromPublicError'](_0x3fabb7){return new CKEditorCloudServicesServerError(function(_0x16291b){let _0x35b418='cloud-services-server-error:\x20'+_0x16291b['message'];return _0x16291b['explanation']&&(_0x35b418+='\x0aExplanation:\x20'+_0x16291b['explanation']),_0x16291b['action']&&(_0x35b418+='\x0aAction:\x20'+_0x16291b['action']),_0x16291b['traceId']&&(_0x35b418+='\x0aTraceId:\x20'+_0x16291b['traceId']),_0x16291b['code']&&(_0x35b418+='\x0aCode:\x20'+_0x16291b['code']),_0x35b418;}(_0x3fabb7),_0x3fabb7);}}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(_0x441eef,_0x2b3459=[],_0x486daa=[]){super(),this['flags']=_0x441eef,this['rooms']=_0x2b3459,this['except']=_0x486daa;}['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'](_0x4533cf){return new PacketOptionsMessage(_0x4533cf['flags']&&JSON['parse'](_0x4533cf['flags']),_0x4533cf['rooms'],_0x4533cf['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'](..._0x1a938b){let _0x244866=0x0;for(let _0x44a145=0x0;_0x44a145<_0x1a938b['length'];_0x44a145++)_0x244866+=_0x1a938b[_0x44a145]*Math['pow'](0xa,_0x1a938b['length']-_0x44a145-0x1);return _0x244866;}static['getType'](_0x1e70aa){if(ParserUtils['isBuffer'](_0x1e70aa))return MessageDataTypes_BUFFER;const _0x41a1e1=typeof _0x1e70aa;return'string'===_0x41a1e1?MessageDataTypes_STRING:'number'===_0x41a1e1?MessageDataTypes_NUMBER:MessageDataTypes_OBJECT;}static['isBuffer'](_0x1495d0){return IS_NODE&&Buffer['isBuffer'](_0x1495d0)||_0x1495d0 instanceof ArrayBuffer||_0x1495d0 instanceof Uint8Array||this['_isBufferView'](_0x1495d0);}static['_isBufferView'](_0x1de285){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x1de285):_0x1de285['buffer']instanceof ArrayBuffer;}}class PackageDataMessage extends Message{['data'];['data1'];static['create'](_0x3b6309,_0x5deae1){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(_0x3c307c,_0x4b1256){super(),this['data']=_0x3c307c,this['data1']=_0x4b1256;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x5dc394){return new NumberBytesPacketDataMessage(_0x5dc394['data'],_0x5dc394['data1']);}static['create'](_0x123cec,_0x19bb3e){return new NumberBytesPacketDataMessage(_0x123cec,_0x19bb3e);}}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(_0xc4fee,_0x1d22e7){super(),this['data']=_0xc4fee,this['data1']=_0x1d22e7;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x5c9398){return new StringBytesPacketDataMessage(_0x5c9398['data'],_0x5c9398['data1']);}static['create'](_0x26e35b,_0x5aeb64){return new StringBytesPacketDataMessage(_0x26e35b,_0x5aeb64);}}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(_0x1307d3,_0x16b269){super(),this['data']=_0x1307d3,this['data1']=_0x16b269;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x341920){return new BytesBytesPacketDataMessage(_0x341920['data'],_0x341920['data1']);}static['create'](_0x532377,_0x4f388a){return new BytesBytesPacketDataMessage(_0x532377,_0x4f388a);}}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(_0x19409c,_0x520b3f){super(),this['data']=_0x19409c,this['data1']=_0x520b3f;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x46d157){return new StringObjectPacketDataMessage(_0x46d157['data'],_0x46d157['data1']&&JSON['parse'](_0x46d157['data1']));}static['create'](_0x43d312,_0x380d3e){return new StringObjectPacketDataMessage(_0x43d312,_0x380d3e);}}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(_0x282b8f,_0x3636db){super(),this['data']=_0x282b8f,this['data1']=_0x3636db;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x44fc15){return new NumberObjectPacketDataMessage(_0x44fc15['data'],_0x44fc15['data1']&&JSON['parse'](_0x44fc15['data1']));}static['create'](_0xaca66,_0x2b0489){return new NumberObjectPacketDataMessage(_0xaca66,_0x2b0489);}}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(_0x3f9eac,_0x34913f){super(),this['data']=_0x3f9eac,this['data1']=_0x34913f;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0xed0412){return new ObjectObjectPacketDataMessage(_0xed0412['data']&&JSON['parse'](_0xed0412['data']),_0xed0412['data1']&&JSON['parse'](_0xed0412['data1']));}static['create'](_0x3b5c21,_0x562c70){return new ObjectObjectPacketDataMessage(_0x3b5c21,_0x562c70);}}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(_0x59eb64,_0x3b0d9c){super(),this['data']=_0x59eb64,this['data1']=_0x3b0d9c;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']};}static['fromJSON'](_0x40df09){return new ObjectBufferPacketDataMessage(_0x40df09['data']&&JSON['parse'](_0x40df09['data']),_0x40df09['data1']);}static['create'](_0x45edc1,_0x175cfd){return new ObjectBufferPacketDataMessage(_0x45edc1,_0x175cfd);}}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(_0x4317a7,_0x3d86ea){super(),this['data']=_0x4317a7,this['data1']=_0x3d86ea;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x27073b){return new StringStringPacketDataMessage(_0x27073b['data'],_0x27073b['data1']);}static['create'](_0xd841a5,_0x534a4a){return new StringStringPacketDataMessage(_0xd841a5,_0x534a4a);}}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(_0x58f113,_0x55e807){super(),this['data']=_0x58f113,this['data1']=_0x55e807;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x15b5cc){return new StringNumberPacketDataMessage(_0x15b5cc['data'],_0x15b5cc['data1']);}static['create'](_0x4d99d5,_0x37c9ec){return new StringNumberPacketDataMessage(_0x4d99d5,_0x37c9ec);}}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(_0x3ce682,_0x1e3b00){super(),this['data']=_0x3ce682,this['data1']=_0x1e3b00;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0xac02e5){return new NumberNumberPacketDataMessage(_0xac02e5['data'],_0xac02e5['data1']);}static['create'](_0x4f4ea6,_0x5c9020){return new NumberNumberPacketDataMessage(_0x4f4ea6,_0x5c9020);}}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(_0x176640,_0x4e3518){super(),this['data']=_0x176640,this['data1']=_0x4e3518;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x587018){return new NumberStringPacketDataMessage(_0x587018['data'],_0x587018['data1']);}static['create'](_0xbbcf33,_0x21c999){return new NumberStringPacketDataMessage(_0xbbcf33,_0x21c999);}}const PACKET_DATA_MESSAGES=/* #__PURE__ -- @preserve */
((()=>[NumberBytesPacketDataMessage,StringBytesPacketDataMessage,BytesBytesPacketDataMessage,StringObjectPacketDataMessage,NumberObjectPacketDataMessage,ObjectObjectPacketDataMessage,ObjectBufferPacketDataMessage,StringStringPacketDataMessage,StringNumberPacketDataMessage,NumberNumberPacketDataMessage,NumberStringPacketDataMessage]['reduce']((_0x5d3eda,_0x567f73)=>(_0x5d3eda[_0x567f73['TYPE']]=_0x567f73,_0x5d3eda),{}))());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(_0x9fbdd3,_0x30a0d9,_0x56282b,_0x39df79='/',_0x53306e){super(),this['type']=_0x9fbdd3,this['data']=_0x30a0d9,this['id']=_0x56282b,this['nsp']=_0x39df79,this['options']=_0x53306e??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 _0x5ab378=MessagesCompressor['encode'](this['options']),_0xb80a45=MessagesCompressor['encode'](this['data']);return{'type':this['type']+0xa*this['data']['constructor']['TYPE'],'id':this['id'],'nsp':'/'===this['nsp']?void 0x0:this['nsp'],'data':_0xb80a45,'options':_0x5ab378};}static['fromJSON'](_0x3995cb){const _0x3dd7ef=Math['floor'](_0x3995cb['type']/0xa);return new PacketMessage(_0x3995cb['type']-0xa*_0x3dd7ef,MessagesCompressor['decode'](_0x3995cb['data'],PACKET_DATA_MESSAGES[_0x3dd7ef]),_0x3995cb['id'],_0x3995cb['nsp'],_0x3995cb['options']?MessagesCompressor['decode'](_0x3995cb['options'],PacketOptionsMessage):new PacketOptionsMessage());}static['create'](_0x44456c,_0x465292={}){const _0x24c0d1=ParserUtils['getPacketType'](ParserUtils['getType'](_0x44456c['data'][0x0]),ParserUtils['getType'](_0x44456c['data'][0x1]??_0x44456c['data'][0x0]));return new PacketMessage(_0x44456c['type'],PACKET_DATA_MESSAGES[_0x24c0d1]['create'](_0x44456c['data'][0x0],_0x44456c['data'][0x1]),_0x44456c['id'],_0x44456c['nsp'],new PacketOptionsMessage(_0x465292['flags'],_0x465292['rooms'],_0x465292['except']));}}class PacketParser{['encode'](_0x8c2302,_0x2a74a2,_0x48efb5,_0x3a8ef7='/',_0x17bbff={}){if(_0x2a74a2['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const _0x509832={'type':_0x8c2302,'data':_0x2a74a2,'id':_0x48efb5,'nsp':_0x3a8ef7};return MessagesCompressor['encode'](PacketMessage['create'](_0x509832,_0x17bbff));}['decode'](_0xbb573f){const _0x248c8c=MessagesCompressor['decode'](_0xbb573f,PacketMessage);return{'packet':{'id':_0x248c8c['id'],'type':_0x248c8c['type'],'data':_0x248c8c['packetData'],'nsp':_0x248c8c['nsp']},'options':{'flags':_0x248c8c['options']['flags'],'rooms':_0x248c8c['options']['rooms'],'except':_0x248c8c['options']['except']}};}}const ENCODED_TYPES=/* #__PURE__ -- @preserve */
((()=>[PacketType['EVENT'],PacketType['ACK'],PacketType['BINARY_ACK'],PacketType['BINARY_EVENT']])());class Encoder extends Encoder$1{['_packetParser'];constructor(_0x35ab9d){super(),this['_packetParser']=_0x35ab9d??new PacketParser();}['encode'](_0x3efde1){if(ENCODED_TYPES['includes'](_0x3efde1['type']))try{return[this['_packetParser']['encode'](_0x3efde1['type'],_0x3efde1['data'],_0x3efde1['id'],_0x3efde1['nsp'])];}catch(_0x286592){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0x286592['message']}});}return super['encode'](_0x3efde1);}}class Decoder extends Decoder$1{['_packetParser'];constructor(_0x2b6402){super(),this['_packetParser']=_0x2b6402??new PacketParser();}['add'](_0x338afd){if(!ParserUtils['isBuffer'](_0x338afd))return super['add'](_0x338afd);let _0x1e47b7;try{_0x1e47b7=this['_packetParser']['decode'](_0x338afd)['packet'];}catch(_0x5af6a4){return super['add'](_0x338afd);}super['emitReserved']('decoded',_0x1e47b7);}}class WebSocketRequest{['_context'];['_deferredPromise']=/* #__PURE__ -- @preserve */
_deferPromise();['timeout'];constructor(_0x1afd30,_0x4a55da){this['_context']=_0x1afd30,this['timeout']=setTimeout(()=>this['error'](new CKEditorCloudServicesError('Request\x20timeout.',this['_context'])),_0x4a55da);}get['promise'](){return this['_deferredPromise']['promise'];}['response'](_0x44d078){this['_deferredPromise']['resolve'](_0x44d078);}['error'](_0x4a3d46){this['_deferredPromise']['reject'](_0x4a3d46);}}class WebSocketGatewayRequestsManager{['_context'];['_requests']=new Set();constructor(_0x215eaa){this['_context']=_0x215eaa;}async['send'](_0x1eb93f,_0x1b0176=0xafc8){const _0x56e904=this['_createRequest'](_0x1b0176);try{return _0x1eb93f(_0x56e904),await _0x56e904['promise'];}finally{this['_finishRequest'](_0x56e904);}}['errorAll'](_0x144659){for(const _0x1d6a7b of this['_requests'])_0x1d6a7b['error'](_0x144659);}['waitForAllRequests'](_0x832cef=0xafc8){return this['_waitForRequests'](_0x832cef);}['_createRequest'](_0x5d9d1d){const _0x1ccfa1=new WebSocketRequest(this['_context'],_0x5d9d1d);return this['_requests']['add'](_0x1ccfa1),_0x1ccfa1;}['_finishRequest'](_0x4f1241){this['_requests']['delete'](_0x4f1241),clearTimeout(_0x4f1241['timeout']);}async['_waitForRequests'](_0x2cd63e=0x1388,_0x3d7e33=0x0){return!this['_requests']['size']||_0x3d7e33>=_0x2cd63e/0x1f4?Promise['resolve']():(await new Promise(_0x3f612d=>{setTimeout(_0x3f612d,0x1f4);}),this['_waitForRequests'](_0x2cd63e,_0x3d7e33++));}}function _deferPromise(){let _0x516fd8,_0x37ef18;const _0x241013=new Promise((_0x462a07,_0x156479)=>{_0x516fd8=_0x462a07,_0x37ef18=_0x156479;});return{'resolve':_0x516fd8,'reject':_0x37ef18,'promise':_0x241013};}const WEB_SOCKET_GATEWAY_STATES={'DISCONNECTED':'disconnected','CONNECTING':'connecting','CONNECTED':'connected'};let WebSocketGateway$1=class e extends/* #__PURE__ -- @preserve */
_0x55bb62(){['_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(_0x511ad8,_0x6a4096,_0x53c92f,_0x4ddd35,_0x36d75a){if(super(),this['_token']=_0x6a4096,this['_options']=_0x53c92f??{},this['_connectionProvider']=_0x4ddd35??lookup,this['_userFactory']=_0x36d75a??User['get'],this['_requestsManager']=new WebSocketGatewayRequestsManager(this),this['_channels']=new Map(),!_0x511ad8)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(_0x511ad8['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(_0x59166f,_0x3a73b0,_0x31cee8)=>{if(this['_debugEvent']('ws-gw:change:state',_0x31cee8),_0x31cee8!==e['STATE_CONNECTED']){if(_0x31cee8===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(_0x4590c7){}},{'priority':e['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(_0x1ace65,_0x2f8487)=>{this['_options']['onError']?this['_options']['onError'](_0x2f8487):console['error'](_0x2f8487);});}get['sessionId'](){return this['socketId'];}['waitForAllRequests'](_0x1bab0e){return this['_requestsManager']['waitForAllRequests'](_0x1bab0e);}['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'](_0x5b94c5,_0x3f66ad='local.cs.dev:443/ws-v2',_0x3e61af={},_0x3fbf10=lookup,_0x5ec472=User['get']){const _0x1d5bf6=new e(_0x3f66ad,_0x5b94c5,_0x3e61af,_0x3fbf10,_0x5ec472);return await _0x1d5bf6['_connect'](),_0x1d5bf6;}['_sendRequest'](_0x25fabd,_0x29454a,_0x232c60){if(!_0x25fabd)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 _0x41b15b=new ArrayBuffer(_0x232c60['length']+0x2),_0x3bba77=new Uint8Array(_0x41b15b);return _0x3bba77[0x0]=_0x25fabd,_0x3bba77[0x1]=parseInt(_0x29454a),_0x3bba77['set'](_0x232c60,0x2),this['_emit'](0x1,_0x3bba77);}['_getChannel'](_0x52758e,_0x10fe4f){const _0xafdc58=''+_0x52758e+_0x10fe4f;return!this['_channels']['has'](_0xafdc58)&&this['_socket']&&this['_channels']['set'](_0xafdc58,new Channel(_0xafdc58,this,this['_socket'])),this['_channels']['get'](_0xafdc58);}['_connect'](){return new Promise((_0x20e210,_0x2d5c81)=>{const _0x2f11d2=this['_setupSocket']();!this['socketId']&&_0x2f11d2['io']['on']('reconnect_error',()=>{this['_debugEvent']('reconnect_error'),this['_reconnectionAttemptError'](_0x2d5c81);}),_0x2f11d2['once']('connect',async()=>{this['_debugEvent']('once-connect');try{await this['_onConnect'](),_0x20e210();}catch(_0x2dee16){_0x2d5c81(_0x2dee16);}}),_0x2f11d2['connect']();});}['_getPortByProtocol'](_0x2978eb){return['http:','ws:']['includes'](_0x2978eb)?0x50:0x1bb;}['_setupSocket'](){if(this['_socket'])return this['_socket'];const _0x2fc80d=this['_url']['port']||this['_getPortByProtocol'](this['_url']['protocol']),_0x312dfd=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+_0x2fc80d,_0xfe76e2=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',_0x42835f=this['_connectionProvider'](_0x312dfd,{'parser':{'Encoder':Encoder,'Decoder':Decoder},'path':_0xfe76e2+'/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'],_0x42835f['on']('connect',()=>{this['_debugEvent']('connect'),this['socketId']=_0x42835f['id'];}),_0x42835f['on']('connect_error',_0x18984a=>{this['_debugEvent']('connect_error',_0x18984a);}),_0x42835f['on']('disconnect',()=>{this['_debugEvent']('disconnect'),this['_onDisconnect']();}),_0x42835f['io']['on']('reconnect',async()=>{this['_debugEvent']('reconnect'),await this['_onReconnect']();}),_0x42835f['io']['on']('reconnect_attempt',_0x3a2d3a=>{this['_debugEvent']('reconnect_attempt',_0x3a2d3a),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],this['_connectionAttempt']=_0x3a2d3a;}),_0x42835f['on']('unauthorized',_0x8eead8=>{this['_debugEvent']('unauthorized'),this['_onUnauthorized'](_0x8eead8);}),_0x42835f['on']('authenticationRequest',async _0x44cd36=>{this['_debugEvent']('authenticationRequest',_0x44cd36['attempt']),await this['_onReconnect']();}),this['_socket']=_0x42835f,_0x42835f;}['_emit'](_0x4701f1,_0x4ed3c9){const _0x15e7cf=this['_socket'];return this['_requestsManager']['send'](_0xbda33e=>{_0x15e7cf['emit'](_0x4701f1,_0x4ed3c9,(_0x3ab448,_0x13290b)=>{if(_0x3ab448)return _0xbda33e['error'](CKEditorCloudServicesServerError['fromPublicError'](_0x3ab448));_0xbda33e['response'](_0x13290b);});},this['_options']['requestTimeout']);}['_addAuthData'](_0x2232a1,_0x52ca57){this['_socketAuth']={'environmentId':_0x2232a1,'userId':_0x52ca57,'isAuthenticated':!0x0};}['_removeAuthData'](){this['_socketAuth']=void 0x0;}async['_onConnect'](){await this['_authenticate'](this['_token']['value']),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];const _0x5c2672=async(_0x1221e6,_0x5bd51f,_0x343577)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0x343577);}catch(_0x3c0fbf){}};this['_token']['on']('change:value',_0x5c2672),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x5c2672);});}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 _0x2ab1b1 of this['_channels']['values']())_0x2ab1b1['remove']();this['_channels']['clear'](),void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect']||(this['_socket']=void 0x0);}['_debugEvent'](_0x352ddc,_0x56bb2f){if(!this['_isDebugModeEnabled']())return;const _0x39524e=void 0x0!==_0x56bb2f?',\x20data:\x20'+_0x56bb2f:'';console['info'](new Date()['toLocaleString']()+'\x20'+_0x352ddc+_0x39524e);}['_reconnectionAttemptError'](_0x578a88){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0x578a88(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:_0x35b071}){this['_removeAuthData'](),this['fire']('error',CKEditorCloudServicesServerError['fromPublicError'](_0x35b071));}async['_authenticate'](_0x3c9fb7){try{this['_debugEvent']('authenticate:start');const _0x129078=await this['_emit'](0x2,{'token':_0x3c9fb7});this['_debugEvent']('authenticate:success','envId:\x20'+_0x129078['environmentId']+',\x20userId:\x20'+_0x129078['userId']),this['_addAuthData'](_0x129078['environmentId'],_0x129078['userId']);}catch(_0x5aa8f7){throw this['_debugEvent']('authenticate:error',_0x5aa8f7['message']),this['_removeAuthData'](),_0x5aa8f7;}}['_isDebugModeEnabled'](){return!!_0x27cab6['window']['localStorage']&&'true'===(_0x27cab6['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(_0x2e577a){super(),this['bundleVersion']=_0x2e577a;}['toJSON'](){return{'bundleVersion':this['bundleVersion']};}static['fromJSON'](_0x282ab4){return new IsEditorBundleUploadedMessage(_0x282ab4['bundleVersion']);}}class IsEditorBundleUploadedResponse extends Message{['isUploaded'];static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedResponse';static ['DESCRIPTOR']={'fields':{'isUploaded':{'type':'bool','id':0x1}}};constructor(_0x56d796){super(),this['isUploaded']=_0x56d796;}['toJSON'](){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0x4e82b3){return new IsEditorBundleUploadedResponse(_0x4e82b3['isUploaded']);}}class EditorService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](_0x426152,_0x3e4b97){const _0x4a97d9=new IsEditorBundleUploadedMessage(_0x3e4b97);if(_0x426152['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x426152);const _0x5cbfae=await _0x426152['_sendRequest'](EditorService['_SERVICE'],IsEditorBundleUploadedMessage['TYPE'],MessagesCompressor['encode'](_0x4a97d9));return MessagesCompressor['decode'](_0x5cbfae,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(_0x574c3e,_0x2d4355){super(),this['documentId']=_0x574c3e,this['revisionId']=_0x2d4355;}['toJSON'](){return{'documentId':this['documentId'],'revisionId':this['revisionId']};}static['fromJSON'](_0x51e602){return new RevisionHistoryGetRevisionMessage(_0x51e602['documentId'],_0x51e602['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'](_0x3e5061){return{'revisionId':_0x3e5061['id'],'name':_0x3e5061['name'],'creatorId':_0x3e5061['creatorId'],'createdAt':_0x3e5061['createdAt'],'fromVersion':_0x3e5061['fromVersion'],'toVersion':_0x3e5061['toVersion'],'isEmptyCurrent':_0x3e5061['isEmptyCurrent'],'diffData':_0x3e5061['diffData']?JSON['stringify'](_0x3e5061['diffData']):void 0x0,'attributes':_0x3e5061['attributes'],'authorsIds':_0x3e5061['authorsIds']};}static['toJSON'](_0x4cc5ef){return{'revisionId':_0x4cc5ef['revisionId'],'name':_0x4cc5ef['name'],'creatorId':_0x4cc5ef['creatorId'],'authorsIds':_0x4cc5ef['authorsIds']?JSON['stringify'](_0x4cc5ef['authorsIds']):void 0x0,'diffData':_0x4cc5ef['diffData'],'createdAt':_0x4cc5ef['createdAt']?.['toISOString'](),'attributes':_0x4cc5ef['attributes']?JSON['stringify'](_0x4cc5ef['attributes']):void 0x0,'toVersion':_0x4cc5ef['toVersion'],'fromVersion':_0x4cc5ef['fromVersion'],'isEmptyCurrent':_0x4cc5ef['isEmptyCurrent']};}static['fromJSON'](_0x1f5e28){return{'revisionId':(_0x1f5e28={..._0x1f5e28})['revisionId'],'name':_0x1f5e28['name'],'creatorId':_0x1f5e28['creatorId'],'authorsIds':_0x1f5e28['authorsIds']?JSON['parse'](_0x1f5e28['authorsIds']):void 0x0,'diffData':_0x1f5e28['diffData'],'createdAt':_0x1f5e28['createdAt']?new Date(_0x1f5e28['createdAt']):void 0x0,'attributes':_0x1f5e28['attributes']?JSON['parse'](_0x1f5e28['attributes']):void 0x0,'toVersion':_0x1f5e28['toVersion'],'fromVersion':_0x1f5e28['fromVersion'],'isEmptyCurrent':_0x1f5e28['isEmptyCurrent']};}static['toObject'](_0x596085){return function(_0x1f87de){for(const [_0x3aaa13,_0x102fe3]of Object['entries'](_0x1f87de))void 0x0===_0x102fe3&&delete _0x1f87de[_0x3aaa13];return _0x1f87de;}({'id':_0x596085['revisionId'],'name':_0x596085['name'],'creatorId':_0x596085['creatorId'],'createdAt':_0x596085['createdAt'],'fromVersion':_0x596085['fromVersion'],'toVersion':_0x596085['toVersion'],'isEmptyCurrent':_0x596085['isEmptyCurrent'],'diffData':_0x596085['diffData']?JSON['parse'](_0x596085['diffData']):void 0x0,'attributes':_0x596085['attributes'],'authorsIds':_0x596085['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(_0x58ec7b,_0x4a36bb,_0x5281b0,_0x10574d,_0x1783d3,_0x26e6bc,_0x252604,_0x451216,_0x4173dc,_0x2e44d6){super(),this['revisionId']=_0x58ec7b,this['name']=_0x4a36bb,this['creatorId']=_0x5281b0,this['authorsIds']=_0x10574d,this['createdAt']=_0x1783d3,this['diffData']=_0x26e6bc,this['attributes']=_0x252604,this['fromVersion']=_0x451216,this['toVersion']=_0x4173dc,this['isEmptyCurrent']=_0x2e44d6;}['toJSON'](){return RevisionDescriptor['toJSON'](this);}['toObject'](){return RevisionDescriptor['toObject'](this);}static['create'](_0x154701){return new RevisionHistoryGetRevisionResponse(_0x154701['revisionId'],_0x154701['name'],_0x154701['creatorId'],_0x154701['authorsIds'],_0x154701['createdAt'],_0x154701['diffData'],_0x154701['attributes'],_0x154701['fromVersion'],_0x154701['toVersion'],_0x154701['isEmptyCurrent']);}static['fromJSON'](_0x177f48){return new RevisionHistoryGetRevisionResponse(_0x177f48['revisionId'],_0x177f48['name'],_0x177f48['creatorId'],_0x177f48['authorsIds']?JSON['parse'](_0x177f48['authorsIds']):void 0x0,_0x177f48['createdAt']?new Date(_0x177f48['createdAt']):void 0x0,_0x177f48['diffData'],_0x177f48['attributes']?JSON['parse'](_0x177f48['attributes']):void 0x0,_0x177f48['fromVersion'],_0x177f48['toVersion'],_0x177f48['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(_0x4c959c,_0x2e4c82,_0x48f007){super(),this['documentId']=_0x4c959c,this['requestId']=_0x2e4c82,this['revisions']=_0x48f007;}['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'](_0x35d1fc){return new RevisionHistoryUpdateRevisionsMessage(_0x35d1fc['documentId'],_0x35d1fc['requestId'],_0x35d1fc['revisions']['map'](RevisionDescriptor['create']));}static['fromJSON'](_0x3f307e){return new RevisionHistoryUpdateRevisionsMessage(_0x3f307e['documentId'],_0x3f307e['requestId'],_0x3f307e['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryUpdateRevisionsResponse extends Message{['requestId'];static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsResponse';static ['DESCRIPTOR']={'fields':{'requestId':{'type':'uint32','id':0x1}}};constructor(_0x3039ac){super(),this['requestId']=_0x3039ac;}['toJSON'](){return{'requestId':this['requestId']};}static['fromJSON'](_0x7e5828){return new RevisionHistoryUpdateRevisionsResponse(_0x7e5828['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(_0xb013c5){super(),this['documentId']=_0xb013c5;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x2fbae3){return new RevisionHistoryConnectMessage(_0x2fbae3['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(_0x58982c,_0x8c2c5c,_0x184edc){super(),this['channel']=_0x58982c,this['requestId']=_0x8c2c5c,this['revisions']=_0x184edc;}['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'](_0x25d052){return new RevisionHistoryConnectResponse(_0x25d052['channel'],_0x25d052['requestId'],_0x25d052['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(_0xace40c,_0x4cd7ea){super(),this['documentId']=_0xace40c,this['requestId']=_0x4cd7ea;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId']};}static['fromJSON'](_0x25ffa8){return new RevisionHistoryReconnectMessage(_0x25ffa8['documentId'],_0x25ffa8['requestId']);}}class ServiceNotConnectedError extends CKEditorCloudServicesError{constructor(_0x585bfb,_0x3808c9){super(_0x585bfb+'\x20Service\x20is\x20not\x20connected.',_0x3808c9);}}class RevisionHistoryService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xc;constructor(_0x1a722e){super(),this['_documentId']=_0x1a722e;}get['isConnected'](){return this['_isConnected'];}['connect'](_0x5a8ffe){return this['_isConnected']?Promise['resolve']():this['_connect'](_0x5a8ffe,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'](_0x3bec1a,_0x56f93e){if(this['isConnected'])throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x3bec1a);return this['_connect'](_0x3bec1a,new RevisionHistoryReconnectMessage(this['_documentId'],_0x56f93e));}async['updateRevisions'](_0x534550,_0x577613){const _0x2746ce=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':_0x577613,'revisions':_0x534550}),_0x19d09d=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0x2746ce),{requestId:_0x53fe88}=MessagesCompressor['decode'](_0x19d09d,RevisionHistoryUpdateRevisionsResponse);return _0x53fe88;}async['getRevision'](_0xccbe54){const _0xd808ba=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0xccbe54),_0x445a24=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0xd808ba);return MessagesCompressor['decode'](_0x445a24,RevisionHistoryGetRevisionResponse)['toObject']();}async['_connect'](_0xcc33d0,_0x387694){if(_0xcc33d0['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0xcc33d0);this['_wsGateway']=_0xcc33d0,this['stopListening'](_0xcc33d0,'change:state');const _0x58439f=await _0xcc33d0['_sendRequest'](0xc,_0x387694['constructor']['TYPE'],MessagesCompressor['encode'](_0x387694)),{channel:_0x3e8c24,requestId:_0x3b96f6,revisions:_0x1181e1}=MessagesCompressor['decode'](_0x58439f,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](_0xcc33d0,'change:state',(_0x2b5461,_0x56afd3,_0xa7496f)=>this['_onWsGatewayStateChange'](_0xa7496f),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0xcc33d0,_0x3e8c24),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x1181e1,'requestId':_0x3b96f6};}['_connectToChannel'](_0x3045ce,_0x13e50f){this['_channel']=_0x3045ce['_getChannel'](RevisionHistoryService['_SERVICE'],_0x13e50f),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(_0x3983a5,_0x4eb04e)=>{const {documentId:_0x270578,requestId:_0x321a22,revisions:_0x5bc4a8}=MessagesCompressor['decode'](_0x4eb04e,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':_0x270578,'requestId':_0x321a22,'revisionsData':_0x5bc4a8});});}['_onWsGatewayStateChange'](_0x5af539){_0x5af539===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x2b509c,_0x263d29){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,_0x2b509c,MessagesCompressor['encode'](_0x263d29));}}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(_0x10646e,_0x1cfe53,_0x451d09,_0x3d9f73={},_0x298a2c=null,_0x1cb7af=null){super(),this['id']=_0x10646e,this['documentId']=_0x1cfe53,this['type']=_0x451d09,this['data']=_0x3d9f73,this['originalSuggestionId']=_0x298a2c,this['attributes']=_0x1cb7af;}['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'](_0x2c47bd){return new AddSuggestionMessage(_0x2c47bd['id'],_0x2c47bd['documentId'],_0x2c47bd['type'],JSON['parse'](_0x2c47bd['data']),_0x2c47bd['originalSuggestionId']??null,_0x2c47bd['attributes']?JSON['parse'](_0x2c47bd['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(_0x3b8cd7,_0x583a60,_0x348247,_0x4790e7,_0x2858a7,_0x41a768,_0x4bbf75={},_0x4a47d5=null){super(),this['id']=_0x3b8cd7,this['authorId']=_0x583a60,this['type']=_0x348247,this['hasComments']=_0x2858a7,this['state']=_0x41a768,this['data']=_0x4bbf75,this['attributes']=_0x4a47d5,this['createdAt']=_0x4790e7?new Date(_0x4790e7):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'](_0x1ac639){return new AddSuggestionResponse(_0x1ac639['id'],_0x1ac639['authorId'],_0x1ac639['type'],_0x1ac639['createdAt'],_0x1ac639['hasComments'],_0x1ac639['state'],JSON['parse'](_0x1ac639['data']),_0x1ac639['attributes']?JSON['parse'](_0x1ac639['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(_0x2c16eb,_0x10c2af){super(),this['id']=_0x2c16eb,this['documentId']=_0x10c2af;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId']};}static['fromJSON'](_0x188ac6){return new GetSuggestionMessage(_0x188ac6['id'],_0x188ac6['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(_0x41faca,_0x451b14,_0x26ffb5,_0x1b92a7,_0x3b1bf0,_0x2b5d7c,_0x1666b1={},_0x43b329=null){super(),this['id']=_0x41faca,this['authorId']=_0x451b14,this['type']=_0x26ffb5,this['hasComments']=_0x3b1bf0,this['state']=_0x2b5d7c,this['data']=_0x1666b1,this['attributes']=_0x43b329,this['createdAt']=new Date(_0x1b92a7);}['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'](_0x305ca4){return new GetSuggestionResponse(_0x305ca4['id'],_0x305ca4['authorId'],_0x305ca4['type'],_0x305ca4['createdAt'],_0x305ca4['hasComments'],_0x305ca4['state'],JSON['parse'](_0x305ca4['data']),_0x305ca4['attributes']?JSON['parse'](_0x305ca4['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(_0x5e0233){super(),this['documentId']=_0x5e0233;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0xb0c793){return new GetAllSuggestionsMessage(_0xb0c793['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'](_0x3b15fc){return{..._0x3b15fc,'data':_0x3b15fc['data']?JSON['stringify'](_0x3b15fc['data']):_0x3b15fc['data'],'attributes':_0x3b15fc['attributes']?JSON['stringify'](_0x3b15fc['attributes']):_0x3b15fc['attributes'],'createdAt':_0x3b15fc['createdAt']?.['toISOString']()};}static['fromJSON'](_0x94c05f){return{..._0x94c05f,'data':_0x94c05f['data']?JSON['parse'](_0x94c05f['data']):_0x94c05f['data'],'attributes':_0x94c05f['attributes']?JSON['parse'](_0x94c05f['attributes']):_0x94c05f['attributes'],'createdAt':_0x94c05f['createdAt']?new Date(_0x94c05f['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(_0x34044e,_0x32ccf0){super(),this['_suggestions']=_0x34044e,this['_suggestionsV2']=_0x32ccf0,this['suggestions']=_0x32ccf0?.['length']?_0x32ccf0:_0x34044e;}['toJSON'](){return{'suggestions':this['_suggestions']?.['map'](_0x1e8814=>JSON['stringify'](_0x1e8814)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x5f28a0){return new GetAllSuggestionResponse(_0x5f28a0['suggestions']?.['map'](_suggestionFromString),_0x5f28a0['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}}function _suggestionFromString(_0x542f50){const _0x5cdfe3=JSON['parse'](_0x542f50);return _0x5cdfe3['createdAt']=_0x5cdfe3['createdAt']?new Date(_0x5cdfe3['createdAt']):void 0x0,_0x5cdfe3;}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(_0x50e4d6,_0x409225,_0xcb6f44,_0x2c8b84,_0x27c0ba,_0x152527=null){super(),this['id']=_0x50e4d6,this['documentId']=_0x409225,this['hasComments']=_0xcb6f44,this['isHasCommentsModified']=_0x2c8b84,this['state']=_0x27c0ba,this['attributes']=_0x152527;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'hasComments':this['hasComments'],'isHasCommentsModified':this['isHasCommentsModified'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x16478a){return new UpdateSuggestionMessage(_0x16478a['id'],_0x16478a['documentId'],_0x16478a['hasComments'],_0x16478a['isHasCommentsModified'],_0x16478a['state'],_0x16478a['attributes']?JSON['parse'](_0x16478a['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(_0x3904ee){super(),this['documentId']=_0x3904ee;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x400f76){return new e(_0x400f76['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(_0x56aecf,_0x969645,_0x28a5a0){super(),this['channel']=_0x56aecf,this['_suggestions']=_0x969645,this['_suggestionsV2']=_0x28a5a0,this['suggestions']=_0x28a5a0?.['length']?_0x28a5a0:_0x969645;}['toJSON'](){return{'channel':this['channel'],'suggestions':this['_suggestions']?.['map'](_0x18204d=>JSON['stringify'](_0x18204d)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x4aebcc){return new e(_0x4aebcc['channel'],_0x4aebcc['suggestions']?.['map'](_0x11918d=>JSON['parse'](_0x11918d)),_0x4aebcc['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(_0x1733e4,_0x2c4727,_0x470653){super(),this['ids']=_0x1733e4,this['documentId']=_0x2c4727,this['state']=_0x470653;}['toJSON'](){return{'ids':this['ids'],'documentId':this['documentId'],'state':this['state']};}static['fromJSON'](_0x212e30){return new BatchUpdateSuggestionsStateMessage(_0x212e30['ids'],_0x212e30['documentId'],_0x212e30['state']);}}class TrackChangesService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xa;constructor(_0x9fc0da){super(),this['_documentId']=_0x9fc0da;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x256187){if(this['_isConnected'])return;if(_0x256187['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x256187);const _0x3570b3=new ConnectMessage$1(this['_documentId']);this['_wsGateway']=_0x256187,this['stopListening'](_0x256187,'change:state');const _0x2e30f8=await _0x256187['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](_0x3570b3)),_0xa793f2=MessagesCompressor['decode'](_0x2e30f8,ConnectResponse$1);return this['listenTo'](_0x256187,'change:state',(_0x4d698e,_0x24fa3e,_0x2428b4)=>this['_onWsGatewayStateChange'](_0x2428b4),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x256187,_0xa793f2['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0xa793f2['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'](_0x4d675e,_0x2c1e2e,_0x349be4,_0xfeba80=null,_0xafe3df){const _0xf88fda=new AddSuggestionMessage(_0x4d675e,this['_documentId'],_0x2c1e2e,_0x349be4,_0xfeba80,_0xafe3df),_0x3b7af8=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0xf88fda);return MessagesCompressor['decode'](_0x3b7af8,AddSuggestionResponse);}async['get'](_0x15fe09,_0x183d8c=0x1){const _0x204937=new GetSuggestionMessage(_0x15fe09,this['_documentId']);try{const _0x2583a0=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0x204937);return MessagesCompressor['decode'](_0x2583a0,GetSuggestionResponse);}catch(_0x5a6e85){if('CKEditorCloudServicesServerError'===_0x5a6e85['name']&&'404'===_0x5a6e85['code']&&_0x183d8c<0x5)return await(_0x139716=0x64*_0x183d8c,new Promise(_0x5d8ddf=>{setTimeout(_0x5d8ddf,_0x139716);})),this['get'](_0x15fe09,_0x183d8c+0x1);if('CKEditorCloudServicesServerError'===_0x5a6e85['name'])throw _0x5a6e85;throw CKEditorCloudServicesServerError['fromPublicError'](_0x5a6e85);}var _0x139716;}async['getAll'](){const _0x54f10a=new GetAllSuggestionsMessage(this['_documentId']),_0x9a831e=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0x54f10a),{suggestions:_0x20944f}=MessagesCompressor['decode'](_0x9a831e,GetAllSuggestionResponse);return _0x20944f;}async['update'](_0x132d8a,_0xc2ba14={}){const {hasComments:_0x4d7918,state:_0x311df7,attributes:_0xb66a3f}=_0xc2ba14,_0xdba942=void 0x0!==_0x4d7918,_0x577b4d=new UpdateSuggestionMessage(_0x132d8a,this['_documentId'],_0x4d7918,_0xdba942,_0x311df7,_0xb66a3f);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0x577b4d);}async['batchUpdateState'](_0x22e67f){const _0x2e6e8f=new BatchUpdateSuggestionsStateMessage(_0x22e67f['ids'],this['_documentId'],_0x22e67f['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x2e6e8f);}['_connectToChannel'](_0x4af723,_0x37a8ae){this['_channel']=_0x4af723['_getChannel'](TrackChangesService['_SERVICE'],_0x37a8ae),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(_0x1f0bec,_0x157065)=>{const _0x39498c=MessagesCompressor['decode'](_0x157065,UpdateSuggestionMessage);this['fire']('suggestionUpdated',_0x39498c);});}['_onWsGatewayStateChange'](_0x383f5d){_0x383f5d===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x4b3b83,_0x7f9c57){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,_0x4b3b83,MessagesCompressor['encode'](_0x7f9c57));}}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(_0x1367ee,_0x39f7bc=[]){super(),this['channel']=_0x1367ee,this['sockets']=_0x39f7bc;}['toJSON'](){return{'channel':this['channel'],'sockets':this['sockets']['map'](_0x483588=>({'user':_0x483588['userId'],'session':_0x483588['id'],'role':_0x483588['role'],'permissions':_0x483588['permissions']}))};}static['fromJSON'](_0x363fdf){return new SessionsConnectResponse(_0x363fdf['channel'],_0x363fdf['sockets']['map'](_0x43e64b=>({'id':_0x43e64b['session'],'userId':_0x43e64b['user'],'role':_0x43e64b['role'],'permissions':_0x43e64b['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(_0x2ca8f6,_0x1c6167){super(),this['id']=_0x2ca8f6,this['sessionType']=_0x1c6167;}['toJSON'](){return{'id':this['id'],'sessionType':this['sessionType']};}static['fromJSON'](_0x38fb1e){return new SessionsConnectMessage(_0x38fb1e['id'],_0x38fb1e['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(_0x5d2012,_0x3f4a37,_0x1489f1,_0x15fb0e){super(),this['id']=_0x5d2012,this['userId']=_0x3f4a37,this['role']=_0x1489f1,this['permissions']=_0x15fb0e;}['toJSON'](){return{'id':this['id'],'userId':this['userId']??void 0x0,'role':this['role']??void 0x0,'permissions':this['permissions']??void 0x0};}static['fromJSON'](_0x5c9bc2){return new SocketConnectMessage(_0x5c9bc2['id'],_0x5c9bc2['userId'],_0x5c9bc2['role'],_0x5c9bc2['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(_0x265c4d){super(),this['id']=_0x265c4d;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x2d0025){return new SocketDisconnectMessage(_0x2d0025['id']);}}class SessionCollection extends Collection$1{['_id'];['_sessionType'];['_handlers']=new Map();['_channel'];['_wsGateway'];['_connected'];['_eventsQueue']=[];['_isRunning']=!0x1;constructor(_0x691e79,_0x5941ce){super({'idProperty':'id'}),this['_id']=_0x691e79,this['_sessionType']=_0x5941ce;}async['connect'](_0x2ebf56){this['_wsGateway']=_0x2ebf56,this['stopListening'](_0x2ebf56,'change:state');const _0x13ef0e=new SessionsConnectMessage(this['_id'],this['_sessionType']);let _0x380370;try{const _0x48ac4f=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0x13ef0e));_0x380370=MessagesCompressor['decode'](_0x48ac4f,SessionsConnectResponse);}catch(_0x19ecf4){_0x380370=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],_0x380370['channel'],this['_sessionType']);const _0x151533=await async function(_0x2e238d,_0x99f297){const _0x16a5e9=_0x99f297['map'](_0x5f433c=>_0x5f433c['userId']),_0x5311f4=_0x16a5e9['length']?await User['getMany'](_0x2e238d,_0x16a5e9):[];return _0x99f297['map'](_0xe9aa49=>{const _0x11532d={'id':_0xe9aa49['id'],'role':_0xe9aa49['role'],'permissions':_0xe9aa49['permissions']};return _0x11532d['user']=_0xe9aa49['userId']&&_0x5311f4['find'](_0x5c9252=>_0x5c9252['id']===_0xe9aa49['userId'])||new User(),_0x11532d;});}(this['_wsGateway'],_0x380370['sockets']);for(const _0x154fd2 of _0x151533)super['add'](_0x154fd2);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x5cd9b1,_0x3f3e87,_0x1c5b66)=>this['_onWsGatewayStateChange'](_0x1c5b66),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}['disconnect'](_0x183347=!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']&&_0x183347&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0x183347&&this['stopListening']();}}['add'](_0x4c23fb,_0x4a1cef){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0xf4deb6){throw new TypeError('The\x20collection\x20is\x20read-only.');}['_connectToChannel'](_0x1f5064,_0x467c19,_0x125700){this['_channel']=_0x1f5064['_getChannel'](_0x125700,_0x467c19),this['_channel']&&(this['_addHandler'](this['_channel'],SocketConnectMessage['TYPE'],async _0x7b0b4=>{const _0x483a9b=MessagesCompressor['decode'](_0x7b0b4,SocketConnectMessage);if(-0x1===this['getIndex'](_0x483a9b['id'])){const _0x5da1fc={'id':_0x483a9b['id'],'role':_0x483a9b['role'],'permissions':_0x483a9b['permissions']};_0x483a9b['userId']&&(_0x5da1fc['user']=await User['get'](_0x1f5064,_0x483a9b['userId'])),super['add'](_0x5da1fc);}}),this['_addHandler'](this['_channel'],SocketDisconnectMessage['TYPE'],_0x1866be=>{const _0xec885d=MessagesCompressor['decode'](_0x1866be,SocketDisconnectMessage);-0x1!==this['getIndex'](_0xec885d['id'])&&super['remove'](_0xec885d['id']);}));}async['_onWsGatewayStateChange'](_0x2de5d7){_0x2de5d7===WebSocketGateway$1['STATE_DISCONNECTED']&&this['disconnect'](!0x1),_0x2de5d7===WebSocketGateway$1['STATE_CONNECTED']&&await this['connect'](this['_wsGateway']);}async['_runQueue'](){if(this['_isRunning']||!this['_connected'])return;let _0x4e30fd;for(this['_isRunning']=!0x0;_0x4e30fd=this['_eventsQueue']['shift']();){const _0x185f69=this['_handlers']['get'](_0x4e30fd['eventName']);_0x185f69&&await _0x185f69(_0x4e30fd['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x9f3c00,_0x46011b,_0x340b52){const _0x57a1a2=_0x9f3c00['getEventName'](_0x46011b,!0x0);this['listenTo'](_0x9f3c00,_0x57a1a2,async(_0x2cf3a7,_0x25d607)=>{const _0x493b13=_0x2cf3a7['name'];this['_eventsQueue']['push']({'eventName':_0x493b13,'data':_0x25d607}),await this['_runQueue']();}),this['_handlers']['set'](_0x57a1a2,_0x340b52);}}let Sessions$1=class{static async['getConnectedSessions'](_0x3e0f49,_0x36303d,_0x413cad){const _0x535f66=new SessionCollection(_0x36303d,_0x413cad);return await _0x535f66['connect'](_0x3e0f49),_0x535f66;}};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(_0x3be726,_0x1d100a,_0xc490d2,_0x7cc863,_0x273089=''){super(),this['id']=_0x3be726,this['buffers']=_0x1d100a,this['types']=_0xc490d2,this['bundleVersion']=_0x7cc863,this['lastOperationId']=_0x273089;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x5d6af4){return new CollaborativeEditingConnectMessage(_0x5d6af4['id'],_0x5d6af4['buffers'],_0x5d6af4['types'],_0x5d6af4['bundleVersion'],_0x5d6af4['lastOperationId']);}}class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x1d08ec,_0x236e43){if(!_0x1d08ec?.['length']||!_0x236e43?.['length'])return[];const _0xbca873=[];let _0x5e5225=0x0;for(const _0x111073 of _0x1d08ec)if(0x0!==_0x111073){if(!_0x236e43[_0x5e5225])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0xbca873['push'](_0x236e43[_0x5e5225]),_0x5e5225++;}else _0xbca873['push'](_0xbca873[_0xbca873['length']-0x1]);return _0xbca873;}static['removeUnnecessaryMetadata'](_0x223ddd,_0x28e887){if(!_0x223ddd?.['length']||!_0x28e887?.['length'])return[];const _0xfc4df2=[];for(let _0x4d0fa1=0x0;_0x4d0fa1<_0x223ddd['length'];_0x4d0fa1++)if(0x0!==_0x223ddd[_0x4d0fa1]){if(!_0x28e887[_0x4d0fa1])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0xfc4df2['push'](_0x28e887[_0x4d0fa1]);}return _0xfc4df2;}}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:_0x5b3ad7,..._0x1e056c}){const _0x3faf5d={..._0x1e056c};return _0x5b3ad7?.['toISOString']&&(_0x3faf5d['createdAt']=_0x5b3ad7['toISOString']()),_0x3faf5d;}static['fromJSON']({createdAt:_0x4cec30,..._0x5ec921}){const _0xc8aeb9={..._0x5ec921};return _0x4cec30&&(_0xc8aeb9['createdAt']=new Date(_0x4cec30)),_0xc8aeb9;}}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(_0xee59b8,_0x85747f,_0x40bac3,_0x3599c4,_0x132583=[],_0x2ca745=''){super(),this['id']=_0xee59b8,this['buffers']=_0x85747f,this['types']=_0x40bac3,this['baseVersion']=_0x3599c4,this['metadata']=_0x132583,this['lastOperationId']=_0x2ca745;}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'](_0x3aa4d2){return new CollaborativeEditingUpdateMessage(_0x3aa4d2['id'],_0x3aa4d2['buffers'],_0x3aa4d2['types'],_0x3aa4d2['baseVersion'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x3aa4d2['types'],_0x3aa4d2['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x3aa4d2['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(_0x38e07a,_0x2090e5,_0x588218){super(),this['id']=_0x38e07a,this['lastKnowVersion']=_0x2090e5,this['bundleVersion']=_0x588218;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x324813){return new CollaborativeEditingReconnectMessage(_0x324813['id'],_0x324813['lastKnowVersion'],_0x324813['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(_0x3c0aa5,_0x26dca6=[],_0x2a2c81=[],_0x362c3a=[],_0x395a79='',_0x20dd0c=null){super(),this['version']=_0x3c0aa5,this['buffers']=_0x26dca6,this['types']=_0x2a2c81,this['metadata']=_0x362c3a,this['lastOperationId']=_0x395a79,this['lastOperationAcceptedAt']=_0x20dd0c;}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'](_0x22383d){return new CollaborativeEditingResponse(_0x22383d['version'],_0x22383d['buffers'],_0x22383d['types'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x22383d['types'],_0x22383d['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x22383d['lastOperationId'],_0x22383d['lastOperationAcceptedAt']?new Date(_0x22383d['lastOperationAcceptedAt']):null);}static['create'](_0x41c9d7){return new CollaborativeEditingResponse(_0x41c9d7['version'],_0x41c9d7['buffers'],_0x41c9d7['types'],_0x41c9d7['metadata'],_0x41c9d7['lastOperationId'],_0x41c9d7['lastOperationAcceptedAt']?new Date(_0x41c9d7['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(_0x51513d,_0x3ef109,_0x326914=[],_0x1348a5=[],_0x228437=0x0,_0x43af25=[],_0x3cf449=null,_0x649c2f='',_0xb1d152='',_0x5356c9=null){super(),this['channel']=_0x51513d,this['version']=_0x3ef109,this['buffers']=_0x326914,this['types']=_0x1348a5,this['offset']=_0x228437,this['metadata']=_0x43af25,this['initData']=_0x3cf449,this['sessionId']=_0x649c2f,this['lastOperationId']=_0xb1d152,this['sessionCreatedAt']=_0x5356c9;}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'](_0x461a42){return new CollaborativeEditingConnectResponse(_0x461a42['channel'],_0x461a42['version'],_0x461a42['buffers'],_0x461a42['types'],_0x461a42['offset'],_0x461a42['metadata'],_0x461a42['initData'],_0x461a42['sessionId'],_0x461a42['lastOperationId'],_0x461a42['sessionCreatedAt']);}static['fromJSON'](_0xd544b1){let _0x32c9cb=null;return!0x0===_0xd544b1['isInitialized']?_0x32c9cb=_0xd544b1['initData']??'':'boolean'!=typeof _0xd544b1['isInitialized']&&_0xd544b1['initData']&&(_0x32c9cb=_0xd544b1['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0xd544b1['channel'],'version':_0xd544b1['version'],'buffers':_0xd544b1['buffers'],'types':_0xd544b1['types'],'offset':_0xd544b1['offset'],'metadata':OperationMetadataHelpers['prepareMetadataForOperations'](_0xd544b1['types'],_0xd544b1['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),'initData':_0x32c9cb,'sessionId':_0xd544b1['sessionId'],'lastOperationId':_0xd544b1['lastOperationId'],'sessionCreatedAt':_0xd544b1['sessionCreatedAt']?new Date(_0xd544b1['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(_0xecc907,_0x489ece){super(),this['lastDocumentSession']=_0xecc907,this['currentDocumentSession']=_0x489ece;}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'](_0x1bd0e2){const _0x2b5abf=_0x1bd0e2['lastDocumentSessionId']?{'id':_0x1bd0e2['lastDocumentSessionId'],'lastOperationId':_0x1bd0e2['lastDocumentSessionOperationId']}:void 0x0,_0x1ba9bd=_0x1bd0e2['currentDocumentSessionId']?{'lastOperationId':_0x1bd0e2['currentDocumentSessionOperationId'],'version':_0x1bd0e2['currentDocumentSessionVersion'],'id':_0x1bd0e2['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x2b5abf,_0x1ba9bd);}}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(_0x35e201){super(),this['documentId']=_0x35e201;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x1023be){return new GetDocumentDetailsMessage(_0x1023be['documentId']);}}class CollaborativeEditingService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x4dc502,_0x4f2ea7){if(super(),!_0x4dc502)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x4f2ea7??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x4dc502;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x5f14be,_0x2e8343={'buffers':[],'types':[]},_0x2367ee){const _0x526bf7=new CollaborativeEditingConnectMessage(this['getId'](),_0x2e8343['buffers'],_0x2e8343['types'],this['_bundleVersion'],_0x2367ee);return this['_connect'](_0x5f14be,_0x526bf7);}['reconnect'](_0xa1aa98,_0x290ac2){if(this['isConnected']())throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0xa1aa98);return this['_connect'](_0xa1aa98,new CollaborativeEditingReconnectMessage(this['getId'](),_0x290ac2,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 _0x1a2a7e=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x35cd5e=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x1a2a7e));return MessagesCompressor['decode'](_0x35cd5e,GetDocumentDetailsResponse);}async['sendOperations'](_0x4ee773,_0x538902,_0x24b6af){if(!_0x4ee773?.['types']?.['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x15906a='number'==typeof _0x538902?_0x538902:parseInt(_0x538902);if(!Number['isInteger'](_0x15906a)||_0x15906a<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x4951b3=new CollaborativeEditingUpdateMessage(this['getId'](),_0x4ee773['buffers'],_0x4ee773['types'],_0x15906a,[],_0x24b6af);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x2da431=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x4951b3));return MessagesCompressor['decode'](_0x2da431,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'](_0x8d61e0,_0x4596d4){return Sessions$1['getConnectedSessions'](_0x8d61e0,_0x4596d4,0x1);}async['_connect'](_0x4f735b,_0x20b60b){if(this['isConnected']())return;if(_0x4f735b['state']!==WebSocketGateway$1['STATE_CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x4f735b);this['_wsGateway']=_0x4f735b,this['stopListening'](_0x4f735b,'change:state');const _0x1120d1=await _0x4f735b['_sendRequest'](0x1,_0x20b60b['constructor']['TYPE'],MessagesCompressor['encode'](_0x20b60b)),_0x1b4906=MessagesCompressor['decode'](_0x1120d1,CollaborativeEditingConnectResponse);return this['listenTo'](_0x4f735b,'change:state',(_0x57328f,_0x222206,_0x2e2045)=>this['_onWsGatewayStateChange'](_0x2e2045),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x4f735b,_0x1b4906['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x1b4906;}['_connectToChannel'](_0x216b13,_0x6fabe8){this['_channel']=_0x216b13['_getChannel'](0x1,_0x6fabe8),this['listenTo'](this['_channel'],this['_channel']['getEventName'](CollaborativeEditingUpdateMessage['TYPE']),(_0x5c1d33,_0x161217)=>{const _0x15dab4=MessagesCompressor['decode'](_0x161217,CollaborativeEditingUpdateMessage);this['fire']('operationsReceived',_0x15dab4['baseVersion'],_0x15dab4['data'],_0x15dab4['metadata']);});}['_onWsGatewayStateChange'](_0x1d9d49){_0x1d9d49===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'](_0x132981){return{..._0x132981,'createdAt':_0x132981['createdAt']?.['toISOString'](),'attributes':_0x132981['attributes']?JSON['stringify'](_0x132981['attributes']):null};}static['fromJSON'](_0x43fb0e){return{..._0x43fb0e,'createdAt':new Date(_0x43fb0e['createdAt']),'attributes':_0x43fb0e['attributes']?JSON['parse'](_0x43fb0e['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'](_0x1dd8c4){return{..._0x1dd8c4,'createdAt':_0x1dd8c4['createdAt']?.['toISOString'](),'deletedAt':_0x1dd8c4['deletedAt']?.['toISOString'](),'resolvedAt':_0x1dd8c4['resolvedAt']?.['toISOString'](),'attributes':_0x1dd8c4['attributes']?JSON['stringify'](_0x1dd8c4['attributes']):null,'context':_0x1dd8c4['context']?JSON['stringify'](_0x1dd8c4['context']):_0x1dd8c4['context'],'comments':_0x1dd8c4['comments']?.['map'](CommentDescriptor['toJSON']),'unlinkedAt':_0x1dd8c4['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x6a9d5c){return{..._0x6a9d5c,'createdAt':_0x6a9d5c['createdAt']?new Date(_0x6a9d5c['createdAt']):void 0x0,'deletedAt':_0x6a9d5c['deletedAt']?new Date(_0x6a9d5c['deletedAt']):void 0x0,'resolvedAt':_0x6a9d5c['resolvedAt']?new Date(_0x6a9d5c['resolvedAt']):void 0x0,'attributes':_0x6a9d5c['attributes']?JSON['parse'](_0x6a9d5c['attributes']):null,'context':_0x6a9d5c['context']?JSON['parse'](_0x6a9d5c['context']):void 0x0,'comments':_0x6a9d5c['comments']?.['map'](CommentDescriptor['fromJSON']),'unlinkedAt':_0x6a9d5c['unlinkedAt']?new Date(_0x6a9d5c['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(_0x36d4ce,_0x15afd3,_0x14627e,_0x124efe='',_0x59f9d5,_0x36174b='',_0x5d6ead=null,_0x41e267){super(),this['documentId']=_0x36d4ce,this['commentThreadId']=_0x15afd3,this['content']=_0x14627e,this['commentId']=_0x124efe,this['userId']=_0x36174b,this['attributes']=_0x5d6ead,this['commentThread']=_0x41e267,this['createdAt']=_0x59f9d5?new Date(_0x59f9d5):'';}['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'](_0x43a6a2){return new AddCommentMessage(_0x43a6a2['documentId'],_0x43a6a2['commentThreadId'],_0x43a6a2['content'],_0x43a6a2['commentId']?_0x43a6a2['commentId']:void 0x0,_0x43a6a2['createdAt']?new Date(_0x43a6a2['createdAt']):void 0x0,_0x43a6a2['userId']?_0x43a6a2['userId']:void 0x0,_0x43a6a2['attributes']?JSON['parse'](_0x43a6a2['attributes']):{},_0x43a6a2['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x43a6a2['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(_0x44eff1,_0x3ab382,_0x371c01){super(),this['commentThreadId']=_0x44eff1,this['commentId']=_0x3ab382,this['createdAt']=new Date(_0x371c01);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x45bada){return new AddCommentResponse(_0x45bada['commentThreadId'],_0x45bada['commentId'],_0x45bada['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(_0x179ecf){super(),this['documentId']=_0x179ecf;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x2a14ee){return new ConnectMessage(_0x2a14ee['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(_0x4b8e6e,_0x31a9f3,_0x238e42){super(),this['channel']=_0x4b8e6e,this['_threads']=_0x31a9f3,this['_threadsV2']=_0x238e42,this['threads']=_0x238e42?.['length']?_0x238e42:_0x31a9f3;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x53d5bb=>JSON['stringify'](_0x53d5bb)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x2bedfa){return new ConnectResponse(_0x2bedfa['channel'],_0x2bedfa['threads']?.['map'](_0x1106ed=>JSON['parse'](_0x1106ed)),_0x2bedfa['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(_0x43d7e1,_0x286135,_0x3cebcf){super(),this['documentId']=_0x43d7e1,this['commentThreadId']=_0x286135,this['commentId']=_0x3cebcf;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x518b2f){return new RemoveCommentMessage(_0x518b2f['documentId'],_0x518b2f['commentThreadId'],_0x518b2f['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(_0x3f9564,_0x175c01){super(),this['documentId']=_0x3f9564,this['commentThreadId']=_0x175c01;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x32af08){return new RemoveCommentThreadMessage(_0x32af08['documentId'],_0x32af08['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(_0x24f6c1,_0xdce354,_0x298bd4,_0xec61db,_0x1ebf1d=null,_0x3716f3=!0x1,_0x5938f7){super(),this['documentId']=_0x24f6c1,this['commentThreadId']=_0xdce354,this['commentId']=_0x298bd4,this['content']=_0xec61db,this['attributes']=_0x1ebf1d,this['isAttributesUpdated']=_0x3716f3,this['commentThread']=_0x5938f7;}['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'](_0x4bc00b){return new UpdateCommentMessage(_0x4bc00b['documentId'],_0x4bc00b['commentThreadId'],_0x4bc00b['commentId'],_0x4bc00b['content'],_0x4bc00b['attributes']?JSON['parse'](_0x4bc00b['attributes']):null,_0x4bc00b['isAttributesUpdated'],_0x4bc00b['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x4bc00b['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(_0x2ef6a6,_0x2de325){super(),this['commentThreadId']=_0x2ef6a6,this['documentId']=_0x2de325;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x42249b){return new GetCommentThreadMessage(_0x42249b['commentThreadId'],_0x42249b['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(_0x53827f,_0xb25444,_0x54a183,_0x4c8bbb,_0x4d63f4,_0x1a80f5,_0x1190e0,_0x30e1bc,_0x2cc3d7,_0x14e952){super(),this['commentThreadId']=_0x53827f,this['_comments']=_0xb25444,this['_commentsV2']=_0x54a183,this['resolvedBy']=_0x4d63f4,this['comments']=_0x54a183?.['length']?_0x54a183:_0xb25444,this['createdAt']=_0x1190e0?new Date(_0x1190e0):void 0x0,this['deletedAt']='string'==typeof _0x30e1bc?new Date(_0x30e1bc):_0x30e1bc,this['resolvedAt']='string'==typeof _0x2cc3d7?new Date(_0x2cc3d7):_0x2cc3d7,this['unlinkedAt']='string'==typeof _0x14e952?new Date(_0x14e952):_0x14e952,this['attributes']='string'==typeof _0x4c8bbb?JSON['parse'](_0x4c8bbb):_0x4c8bbb,this['context']='string'==typeof _0x1a80f5?JSON['parse'](_0x1a80f5):_0x1a80f5;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'comments':this['_comments']?.['map'](_0x815360=>JSON['stringify'](_0x815360)),'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'](_0x414cad){return new GetCommentThreadResponse(_0x414cad['commentThreadId'],_0x414cad['comments']?.['map'](_0x52e088=>function(_0x4edc99){const _0x3113f1=JSON['parse'](_0x4edc99);return{..._0x3113f1,'createdAt':new Date(_0x3113f1['createdAt'])};}(_0x52e088)),_0x414cad['commentsV2']?.['map'](CommentDescriptor['fromJSON']),_0x414cad['attributes']?JSON['parse'](_0x414cad['attributes']):_0x414cad['attributes'],_0x414cad['resolvedBy'],_0x414cad['context']?JSON['parse'](_0x414cad['context']):_0x414cad['context'],_0x414cad['createdAt'],_0x414cad['deletedAt'],_0x414cad['resolvedAt'],_0x414cad['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(_0x48e0b5){super(),this['documentId']=_0x48e0b5;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x58856f){return new GetDocumentThreadsMessage(_0x58856f['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(_0x352498,_0xb40aa2){super(),this['_threads']=_0x352498,this['_threadsV2']=_0xb40aa2,this['threads']=_0xb40aa2?.['length']?_0xb40aa2:_0x352498;}['toJSON'](){return{'threads':this['_threads']?.['map'](_0x49e0c4=>JSON['stringify'](_0x49e0c4)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x86bb54){return new GetDocumentThreadsResponse(_0x86bb54['threads']?.['map'](_0x31972d=>function(_0x379835){const _0x361b40=JSON['parse'](_0x379835),_0xa4225d={..._0x361b40};return _0x361b40['comments']&&(_0xa4225d['comments']=_0x361b40['comments']?.['map'](_0x5f3f26=>({..._0x5f3f26,'createdAt':new Date(_0x5f3f26['createdAt'])}))),_0xa4225d;}(_0x31972d)),_0x86bb54['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'](_0x38e2ff){return{'commentId':_0x38e2ff['commentId'],'createdAt':_0x38e2ff['createdAt']?.['toISOString']()};}static['fromJSON'](_0x95db52){return{'commentId':_0x95db52['commentId'],'createdAt':new Date(_0x95db52['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(_0x5c7124,_0x9f6abf,_0x276883=[]){super(),this['commentThreadId']=_0x5c7124,this['comments']=_0x276883,this['createdAt']=new Date(_0x9f6abf);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x480975=>CommentThreadAddedCommentDescriptor['toJSON'](_0x480975))};}static['fromJSON'](_0x47e509){return new AddCommentThreadResponse(_0x47e509['commentThreadId'],_0x47e509['createdAt'],_0x47e509['comments']['map'](_0xd3fe97=>CommentThreadAddedCommentDescriptor['fromJSON'](_0xd3fe97)));}}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(_0x472305,_0x192b65,_0x1a5e75=[],_0x27ec74,_0x3e66ba=null,_0xf835b0=null,_0x2ae08d=null,_0x3edf6b=null,_0xf056bb=null){super(),this['documentId']=_0x472305,this['commentThreadId']=_0x192b65,this['comments']=_0x1a5e75,this['context']=_0x27ec74,this['resolvedBy']=_0x3e66ba,this['attributes']=_0xf056bb,this['createdAt']=_0xf835b0?new Date(_0xf835b0):'',this['resolvedAt']=_0x2ae08d?new Date(_0x2ae08d):'',this['deletedAt']=_0x3edf6b?new Date(_0x3edf6b):'';}['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'](_0x455c52=>CommentDescriptor['toJSON'](_0x455c52))};}static['fromJSON'](_0x5016d1){return new AddCommentThreadMessage(_0x5016d1['documentId'],_0x5016d1['commentThreadId'],_0x5016d1['comments']?.['map'](_0x3cab41=>CommentDescriptor['fromJSON']({..._0x3cab41,'documentId':_0x5016d1['documentId'],'commentThreadId':_0x5016d1['commentThreadId']})),_0x5016d1['context']?JSON['parse'](_0x5016d1['context']):_0x5016d1['context'],_0x5016d1['resolvedBy'],_0x5016d1['createdAt']?new Date(_0x5016d1['createdAt']):void 0x0,_0x5016d1['resolvedAt']?new Date(_0x5016d1['resolvedAt']):void 0x0,_0x5016d1['deletedAt']?new Date(_0x5016d1['deletedAt']):void 0x0,_0x5016d1['attributes']?JSON['parse'](_0x5016d1['attributes']):_0x5016d1['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(_0x54e57b,_0x2043cf,_0x45006d,_0x220a15){super(),this['commentThreadId']=_0x54e57b,this['documentId']=_0x2043cf,this['resolvedBy']=_0x45006d,this['resolvedAt']=_0x220a15?new Date(_0x220a15):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x3d406b){return new ResolveCommentThreadMessage(_0x3d406b['commentThreadId'],_0x3d406b['documentId'],_0x3d406b['resolvedBy'],_0x3d406b['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(_0x3d4db8,_0x49b0da){super(),this['commentThreadId']=_0x3d4db8,this['documentId']=_0x49b0da;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x103a09){return new ReopenCommentThreadMessage(_0x103a09['commentThreadId'],_0x103a09['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(_0x4d32e7,_0x4bff96,_0x426e0e,_0x704c5b=null,_0x1401db=null){super(),this['commentThreadId']=_0x4d32e7,this['documentId']=_0x4bff96,this['context']=_0x426e0e,this['attributes']=_0x704c5b,this['unlinkedAt']=_0x1401db?new Date(_0x1401db):'';}['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'](_0x5b1fed){return new UpdateCommentThreadMessage(_0x5b1fed['commentThreadId'],_0x5b1fed['documentId'],_0x5b1fed['context']?JSON['parse'](_0x5b1fed['context']):_0x5b1fed['context'],_0x5b1fed['attributes']?JSON['parse'](_0x5b1fed['attributes']):null,_0x5b1fed['unlinkedAt']?new Date(_0x5b1fed['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(_0x5df544,_0x2fe319,_0x5bbfd3,_0x38f5ae){super(),this['commentThreadId']=_0x5df544,this['documentId']=_0x2fe319,this['resolvedBy']=_0x5bbfd3,this['resolvedAt']=new Date(_0x38f5ae);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x7e0e69){return new ResolveCommentThreadResponse(_0x7e0e69['commentThreadId'],_0x7e0e69['documentId'],_0x7e0e69['resolvedBy'],_0x7e0e69['resolvedAt']);}}class CommentsService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_0x1a2716){super(),this['_documentId']=_0x1a2716;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x5b96ac){if(this['_isConnected'])return;if(_0x5b96ac['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x5b96ac);const _0x7fc457=new ConnectMessage(this['_documentId']);this['_wsGateway']=_0x5b96ac,this['stopListening'](_0x5b96ac,'change:state');const _0x48e721=await _0x5b96ac['_sendRequest'](0x9,ConnectMessage['TYPE'],MessagesCompressor['encode'](_0x7fc457)),{channel:_0x49fd09,threads:_0x58d237}=MessagesCompressor['decode'](_0x48e721,ConnectResponse);return this['listenTo'](_0x5b96ac,'change:state',(_0x2327af,_0x11b1b6,_0xd747f2)=>this['_onWsGatewayStateChange'](_0xd747f2),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x5b96ac,_0x49fd09),this['_isConnected']=!0x0,this['fire']('connected'),_0x58d237;}['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'](_0x29d441,_0xab9227,_0xe57e48,_0x4e0acd){const _0x488a36=new AddCommentMessage(this['_documentId'],_0x29d441,_0xe57e48,_0xab9227,void 0x0,void 0x0,_0x4e0acd),_0x1747e7=await this['_sendRequest'](AddCommentMessage['TYPE'],_0x488a36);return MessagesCompressor['decode'](_0x1747e7,AddCommentResponse);}async['updateComment'](_0x2df5c5,_0x1951ea,_0x14b49c,_0x416cd8){const _0x395e4b=void 0x0!==_0x416cd8,_0x488ffe=new UpdateCommentMessage(this['_documentId'],_0x2df5c5,_0x1951ea,_0x14b49c,_0x416cd8,_0x395e4b);await this['_sendRequest'](UpdateCommentMessage['TYPE'],_0x488ffe);}async['removeComment'](_0x1e2b17,_0x44b48d){const _0x4fd2cc=new RemoveCommentMessage(this['_documentId'],_0x1e2b17,_0x44b48d);await this['_sendRequest'](RemoveCommentMessage['TYPE'],_0x4fd2cc);}async['removeCommentThread'](_0x5bb89e){const _0x16baa4=new RemoveCommentThreadMessage(this['_documentId'],_0x5bb89e);await this['_sendRequest'](RemoveCommentThreadMessage['TYPE'],_0x16baa4);}async['addCommentThread'](_0x10efe4){const _0xa0947f=new AddCommentThreadMessage(this['_documentId'],_0x10efe4['commentThreadId'],_0x10efe4['comments']?.['map'](_0x3e8910=>({..._0x3e8910,'documentId':this['_documentId'],'commentThreadId':_0x10efe4['commentThreadId']})),_0x10efe4['context'],_0x10efe4['resolvedBy'],_0x10efe4['createdAt'],_0x10efe4['resolvedAt'],_0x10efe4['deletedAt'],_0x10efe4['attributes']),_0x3f0d1e=await this['_sendRequest'](AddCommentThreadMessage['TYPE'],_0xa0947f);return MessagesCompressor['decode'](_0x3f0d1e,AddCommentThreadResponse);}async['resolveCommentThread'](_0x48f6ac){const _0x4dc97f=new ResolveCommentThreadMessage(_0x48f6ac,this['_documentId']),_0x302afd=await this['_sendRequest'](ResolveCommentThreadMessage['TYPE'],_0x4dc97f);return MessagesCompressor['decode'](_0x302afd,ResolveCommentThreadResponse);}async['reopenCommentThread'](_0x2cdc29){const _0x980d75=new ReopenCommentThreadMessage(_0x2cdc29,this['_documentId']);await this['_sendRequest'](ReopenCommentThreadMessage['TYPE'],_0x980d75);}async['updateCommentThread'](_0x51d6d8){const _0x2a95ae=new UpdateCommentThreadMessage(_0x51d6d8['commentThreadId'],this['_documentId'],_0x51d6d8['context'],_0x51d6d8['attributes'],_0x51d6d8['unlinkedAt']);await this['_sendRequest'](UpdateCommentThreadMessage['TYPE'],_0x2a95ae);}async['getCommentThread'](_0xd9aad3,_0xade068=0x1){const _0x10818=new GetCommentThreadMessage(_0xd9aad3,this['_documentId']);try{const _0x3c5b99=await this['_sendRequest'](GetCommentThreadMessage['TYPE'],_0x10818),_0x46eec7=MessagesCompressor['decode'](_0x3c5b99,GetCommentThreadResponse);return{'commentThreadId':_0x46eec7['commentThreadId'],'comments':_0x46eec7['comments'],'attributes':_0x46eec7['attributes'],'context':_0x46eec7['context'],'resolvedAt':_0x46eec7['resolvedAt'],'resolvedBy':_0x46eec7['resolvedBy'],'deletedAt':_0x46eec7['deletedAt'],'unlinkedAt':_0x46eec7['unlinkedAt']};}catch(_0x595c69){if('CKEditorCloudServicesServerError'===_0x595c69['name']&&'404'===_0x595c69['code']&&_0xade068<0x5)return await(_0x47d3c3=0x64*_0xade068,new Promise(_0x2884c0=>{setTimeout(_0x2884c0,_0x47d3c3);})),this['getCommentThread'](_0xd9aad3,_0xade068+0x1);if('CKEditorCloudServicesServerError'===_0x595c69['name'])throw _0x595c69;throw CKEditorCloudServicesServerError['fromPublicError'](_0x595c69);}var _0x47d3c3;}async['getDocumentThreads'](){const _0x22a539=new GetDocumentThreadsMessage(this['_documentId']),_0x94f86c=await this['_sendRequest'](GetDocumentThreadsMessage['TYPE'],_0x22a539),{threads:_0x168d90}=MessagesCompressor['decode'](_0x94f86c,GetDocumentThreadsResponse);return{'threads':_0x168d90};}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'](_0x21184b,_0x1abba6){this['_channel']=_0x21184b['_getChannel'](CommentsService['_SERVICE'],_0x1abba6),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentMessage['TYPE']),(_0x27be09,_0x4a67c1)=>{const _0x2f0b88=MessagesCompressor['decode'](_0x4a67c1,AddCommentMessage);this['fire']('commentAdded',_0x2f0b88);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentMessage['TYPE']),(_0x393146,_0x59dc4f)=>{const _0x221c50=MessagesCompressor['decode'](_0x59dc4f,RemoveCommentMessage);this['fire']('commentRemoved',_0x221c50);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentMessage['TYPE']),(_0x27da45,_0x4d1fa7)=>{const _0x58473e=MessagesCompressor['decode'](_0x4d1fa7,UpdateCommentMessage);this['fire']('commentUpdated',_0x58473e);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentThreadMessage['TYPE']),(_0x435359,_0xd919ab)=>{const _0x5e818a=MessagesCompressor['decode'](_0xd919ab,RemoveCommentThreadMessage);this['fire']('commentThreadRemoved',_0x5e818a);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentThreadMessage['TYPE']),(_0x4d3602,_0x2ed4e3)=>{const _0x2f3f36=MessagesCompressor['decode'](_0x2ed4e3,AddCommentThreadMessage);this['fire']('commentThreadAdded',_0x2f3f36);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentThreadMessage['TYPE']),(_0x4d4380,_0x5f0030)=>{const _0x1eb01e=MessagesCompressor['decode'](_0x5f0030,UpdateCommentThreadMessage);this['fire']('commentThreadUpdated',_0x1eb01e);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ResolveCommentThreadMessage['TYPE']),(_0x2254b4,_0x101fec)=>{const _0x345ccd=MessagesCompressor['decode'](_0x101fec,ResolveCommentThreadMessage);this['fire']('commentThreadResolved',_0x345ccd);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ReopenCommentThreadMessage['TYPE']),(_0x16923c,_0x1ea73f)=>{const _0x4482a5=MessagesCompressor['decode'](_0x1ea73f,ReopenCommentThreadMessage);this['fire']('commentThreadReopened',_0x4482a5);}));}['_onWsGatewayStateChange'](_0x109bcb){_0x109bcb===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x153217,_0x56dda2){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x153217,MessagesCompressor['encode'](_0x56dda2));}}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(_0x17fb91){super(_0x17fb91),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 _0x72beac=this['context'],_0x51484f=_0x72beac['plugins']['get']('CloudServices'),_0x3c47d7=_0x72beac['plugins']['get'](Notification);if(!_0x51484f['token'])throw new CKEditorError('websocketgateway-missing-token',this);if(!_0x51484f['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'](_0x51484f['token'],_0x51484f['webSocketUrl'],{'timeout':0x3e8*this['context']['config']['get']('cloudServices.connectionTimeout'),'requestTimeout':0x3e8*this['context']['config']['get']('cloudServices.requestTimeout')})['then'](_0x2267f3=>{if(this['connection']=_0x2267f3,this['bind']('state')['to'](_0x2267f3,'state',this,'_isBrowserOffline',(_0x3889e1,_0x346681)=>('connected'!==_0x3889e1&&(this['_shouldPluginsReconnect']=!0x0),_0x346681||_0x3889e1!==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',(_0x19ea71,_0x541f0f)=>{if('limitExceeded'!==_0x541f0f['code'])throw console['error'](_0x541f0f),new CKEditorError('cloudservices-init',null,{'originalError':_0x541f0f});_0x3c47d7['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'});}),!_0x2267f3['me'])return new Promise(_0x41e7a8=>_0x2267f3['on']('change:me',_0x41e7a8));})['catch'](_0x54f0e7=>{throw console['error'](_0x54f0e7),new CKEditorError('cloudservices-init',null,{'originalError':_0x54f0e7});});}['addToReconnectionStack'](_0x191d38){if('function'!=typeof _0x191d38['reconnect'])throw new CKEditorError('websocketgateway-invalid-plugin-interface',this);if(this['isInReconnectionStack'](_0x191d38))throw new CKEditorError('websocketgateway-plugin-already-registered',this,{'name':_0x191d38['constructor']['pluginName']});this['_reconnectionStack']['add'](_0x191d38);}['removeFromReconnectionStack'](_0x179149){this['_reconnectionStack']['delete'](_0x179149);}['isInReconnectionStack'](_0x21e09a){return this['_reconnectionStack']['has'](_0x21e09a);}['_reconnect'](){return this['connection']['reconnect']()['then'](()=>Promise['all'](Array['from'](this['_reconnectionStack'],_0x3a8c10=>_0x3a8c10['reconnect']())))['then'](()=>this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'])['catch'](_0x23bae7=>{throw console['error'](_0x23bae7),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(_0x513204){super(_0x513204),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 _0x4511f1=this['context']['plugins']['get'](WebSocketGateway);this['listenTo'](_0x4511f1,'change:state',(_0x130367,_0x5d6d6a,_0x4f22f0)=>{if('connected'!==_0x4f22f0)this['channelSessions']['forEach'](_0x5ceffe=>_0x5ceffe['clear']()),this['channelConnectedUsers']['forEach'](_0x165062=>_0x165062['clear']()),this['allConnectedUsers']['clear']();else{for(const [_0x3756c8,_0x36ae01]of this['_registeredSessions'])for(const _0x42233d of _0x36ae01)this['_handleSessionAdd'](_0x3756c8,_0x42233d);}}),this['_createUser'](_0x4511f1['connection']['me'],!0x0);}['register'](_0x48a948,_0xefa9c8){if(this['_registeredSessions']['has'](_0x48a948))throw new CKEditorError('sessions-register-already-registered',null,{'channelId':_0x48a948});this['_registeredSessions']['set'](_0x48a948,_0xefa9c8),this['channelSessions']['set'](_0x48a948,new Collection()),this['channelConnectedUsers']['set'](_0x48a948,new Collection()),this['listenTo'](_0xefa9c8,'add',(_0x493bb5,_0xde2314)=>this['_handleSessionAdd'](_0x48a948,_0xde2314)),this['listenTo'](_0xefa9c8,'remove',(_0x79ebc9,_0x35775e)=>this['_handleSessionRemove'](_0x48a948,_0x35775e));for(const _0x3f4bd2 of _0xefa9c8)this['_handleSessionAdd'](_0x48a948,_0x3f4bd2);}['unregister'](_0x5a19d8){if(!this['_registeredSessions']['has'](_0x5a19d8))throw new CKEditorError('sessions-unregister-not-exist',null,{'channelId':_0x5a19d8});const _0x5a6565=this['_registeredSessions']['get'](_0x5a19d8);this['stopListening'](_0x5a6565);for(const _0x24e257 of _0x5a6565)'connected'===this['context']['plugins']['get'](WebSocketGateway)['state']&&this['_handleSessionRemove'](_0x5a19d8,_0x24e257);this['_registeredSessions']['delete'](_0x5a19d8),this['channelSessions']['delete'](_0x5a19d8),this['channelConnectedUsers']['delete'](_0x5a19d8);}get['mySessionId'](){return this['context']['plugins']['get'](WebSocketGateway)['connection']['sessionId'];}['getUserBySessionId'](_0x37829a){for(const _0x402781 of this['channelSessions']['values']())for(const _0xaeddf of _0x402781)if(_0xaeddf['id']===_0x37829a)return _0xaeddf['user'];}['getUserSessions'](_0x3cbe5d,_0x20af7e){const _0x1d3cdc=_0x20af7e?[this['channelSessions']['get'](_0x20af7e)]:this['channelSessions']['values'](),_0x5e0c8a=new Set();for(const _0x1335c0 of _0x1d3cdc)for(const _0x5c3036 of _0x1335c0)_0x5c3036['user']['id']===_0x3cbe5d['id']&&_0x5e0c8a['add'](_0x5c3036['id']);return _0x5e0c8a;}['getUserRole'](_0x7e8eb6){for(const _0x877b2d of this['channelSessions']['values']())for(const _0x1ff336 of _0x877b2d)if(_0x1ff336['user']===_0x7e8eb6)return _0x1ff336['role'];}['_handleSessionAdd'](_0xd0ec8d,_0x37e56c){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0x160377=_0x37e56c['user'],_0x2adc8e=this['_users']['getUser'](_0x160377['id'])||this['_createUser'](_0x160377),_0x1767a4=Object['assign']({},_0x37e56c,{'user':_0x2adc8e});if(this['channelSessions']['get'](_0xd0ec8d)['add'](_0x1767a4),!_0x160377['hiddenInPresenceList']){const _0x46dc1f=this['channelConnectedUsers']['get'](_0xd0ec8d);_0x46dc1f['has'](_0x2adc8e['id'])||_0x46dc1f['add'](_0x2adc8e),this['allConnectedUsers']['has'](_0x2adc8e['id'])||_0x160377['hiddenInPresenceList']||this['allConnectedUsers']['add'](_0x2adc8e,_0x2adc8e['isMe']?0x0:void 0x0);}this['fire']('sessionAdd:'+_0xd0ec8d,{'channelId':_0xd0ec8d,'session':_0x1767a4});}['_handleSessionRemove'](_0x26ecf4,_0xa36720){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0x50164c=this['channelConnectedUsers']['get'](_0x26ecf4),_0x30f407=_0xa36720['user'];_0x30f407['id']&&(this['channelSessions']['get'](_0x26ecf4)['remove'](_0xa36720['id']),_0x50164c['has'](_0x30f407['id'])&&!this['getUserSessions'](_0x30f407,_0x26ecf4)['size']&&_0x50164c['remove'](_0x30f407['id']),this['allConnectedUsers']['get'](_0x30f407['id'])&&!this['getUserSessions'](_0x30f407)['size']&&this['allConnectedUsers']['remove'](_0x30f407['id']));}['_createUser'](_0x5468b8,_0x28e144){const _0x1630de=this['_users']['addUser'](_0x5468b8);return _0x28e144&&this['_users']['defineMe'](_0x5468b8['id']),_0x1630de['orderNumber']=this['_uniqueUsersCount']++,_0x1630de;}}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 _0x1bacc3=this['editor'],_0xf301c3=_0x1bacc3['plugins']['get'](Sessions);_0x1bacc3['conversion']['for']('editingDowncast')['markerToElement']({'model':'user:position','view':(_0x3fe87b,{writer:_0x5e7f0e})=>createUserPositionViewElement(_0x3fe87b,_0x5e7f0e,_0xf301c3,_0x1bacc3)}),_0x1bacc3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'user:range','view':_0x32b7a6=>createUserRangeViewElement(_0x32b7a6,_0xf301c3)}),createUserMarkerPostFixer(_0x1bacc3),this['_domEmitter']['listenTo'](_0x42cc73['document'],'keydown',(_0x35cb50,{key:_0x28b767})=>{'Escape'===_0x28b767&&hideHoveredUserPositionMarkersTooltips(_0x1bacc3);},{'useCapture':!0x0});}['afterInit'](){const _0x1f9795=this['editor'],_0x1461aa=_0x1f9795['commands']['get']('undo');_0x1461aa&&_0x1f9795['model']['on']('applyOperation',(_0x25d1d6,_0x50caf6)=>{const _0x3f94df=_0x50caf6[0x0];if(!_0x3f94df['isDocumentOperation'])return;if('marker'!=_0x3f94df['type']||!_0x3f94df['name']['startsWith']('user:'))return;const _0x821c81=_0x3f94df['batch'];_0x1461aa['_createdBatches']['has'](_0x821c81)&&(_0x3f94df['newRange']=_0x3f94df['oldRange']?_0x1f9795['model']['createRange'](_0x3f94df['oldRange']['start'],_0x3f94df['oldRange']['end']):null);},{'priority':'highest'});}['destroy'](){return this['_domEmitter']['stopListening'](),super['destroy']();}['createUserMarkerOperations'](){const _0x57b133=this['editor'],_0x1059d3=_0x57b133['model']['document'],_0x3a2357=_0x57b133['plugins']['get'](Sessions);_0x57b133['model']['enqueueChange']({'isUndoable':!0x1},_0x505dc8=>{const _0x367ec8='user:range:'+_0x3a2357['mySessionId'],_0x37ebdd='user:position:'+_0x3a2357['mySessionId'],_0x1bf561=_0x57b133['model']['markers']['has'](_0x367ec8);_0x57b133['editing']['view']['hasDomSelection']?updateUserMarkers(_0x3a2357['mySessionId'],_0x1059d3['selection']['getFirstRange'](),_0x57b133['model'],_0x505dc8):_0x1bf561&&(_0x505dc8['removeMarker'](_0x367ec8),_0x505dc8['removeMarker'](_0x37ebdd));});}}function updateUserMarkers(_0x5f0f03,_0x1abc13,_0x2d2473,_0x13c2d6){const _0x58f8d7='user:range:'+_0x5f0f03,_0x19965f='user:position:'+_0x5f0f03,_0x51bb68=_0x1abc13['getContainedElement']();let _0x4c05e1=_0x1abc13['start'];if(_0x51bb68&&_0x51bb68['is']('element','tableCell')){const _0x5b444b=getPositionForText(_0x1abc13,_0x2d2473);_0x5b444b&&(_0x4c05e1=_0x5b444b,_0x1abc13=_0x13c2d6['createRange'](_0x4c05e1));}const _0xf4a9b9=_0x13c2d6['createRange'](_0x4c05e1);_0x2d2473['markers']['has'](_0x58f8d7)?(_0x13c2d6['updateMarker'](_0x58f8d7,{'range':_0x1abc13}),_0x13c2d6['updateMarker'](_0x19965f,{'range':_0xf4a9b9})):(_0x13c2d6['addMarker'](_0x58f8d7,{'range':_0x1abc13,'usingOperation':!0x0}),_0x13c2d6['addMarker'](_0x19965f,{'range':_0xf4a9b9,'usingOperation':!0x0}));}function getPositionForText(_0x46ae58,_0x31803b){for(const _0x577dde of _0x46ae58['getPositions']())if(_0x31803b['schema']['checkChild'](_0x577dde,'$text'))return _0x577dde;}function createUserPositionViewElement(_0x5937b7,_0x2c1448,_0x11b971,_0x38d3dc){const _0x2952a4=_0x5937b7['markerName']['split'](':')[0x2],_0x390b56=_0x11b971['getUserBySessionId'](_0x2952a4);if(!_0x390b56||_0x2952a4===_0x11b971['mySessionId'])return;if(!_0x38d3dc['model']['schema']['checkChild'](_0x5937b7['markerRange']['start'],'$text'))return;const _0x3a153c={'class':'ck-user__marker\x20'+_0x390b56['color']['getMarkerClass'](),'data-name':_0x390b56['name'],'data-session-id':_0x2952a4},_0x60d3d5=_0x38d3dc['model']['markers']['get'](_0x5937b7['markerName'])['getStart'](),_0x5110d4=_0x60d3d5['nodeAfter'],_0x2cef3f=_0x38d3dc['model']['schema'];if(_0x5110d4&&_0x2cef3f['isObject'](_0x5110d4)&&_0x2cef3f['isInline'](_0x5110d4)&&!_0x38d3dc['model']['markers']['get']('user:range:'+_0x2952a4)['getRange']()['isCollapsed'])return;const _0x154173=_0x60d3d5['parent'];return _0x38d3dc['model']['schema']['isLimit'](_0x154173)&&!_0x38d3dc['model']['hasContent'](_0x154173)&&(_0x3a153c['contenteditable']=!0x1),createUserPositionMarkerElement(_0x2c1448,_0x3a153c,_0x390b56);}function createUserRangeViewElement(_0x6855e2,_0x3917bb){const _0x165b06=_0x6855e2['markerName']['split'](':')[0x2];if(_0x165b06===_0x3917bb['mySessionId'])return null;const _0x3bf660=_0x3917bb['getUserBySessionId'](_0x165b06);return _0x3bf660?{'id':_0x165b06,'classes':['ck-user__selection',_0x3bf660['color']['getSelectionClass']()],'attributes':{'data-session-id':_0x165b06},'priority':0x7d0+_0x3bf660['orderNumber']}:{'id':_0x165b06,'classes':[]};}function createUserPositionMarkerElement(_0xfbd034,_0x47862a,_0x8b884){const _0x147108=_0xfbd034['createUIElement']('span',_0x47862a);return _0xfbd034['setCustomProperty']('userPositionMarker',!0x0,_0x147108),_0x147108['render']=function(_0x371aa3){const _0x1efc32=this['toDomElement'](_0x371aa3),_0x5c8f9e=document['createElement']('span');return _0x5c8f9e['classList']['add']('ck-user__marker-tooltip'),_0x5c8f9e['setAttribute']('contenteditable','false'),_0x5c8f9e['setAttribute']('spellcheck','false'),_0x5c8f9e['textContent']=_0x8b884['name'],_0x1efc32['innerHTML']='⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>'+_0x5c8f9e['outerHTML']+'⁠',_0x1efc32['addEventListener']('mouseenter',()=>{_0x1efc32['classList']['add']('ck-user__marker_hovered');}),_0x1efc32['addEventListener']('mouseleave',()=>{_0x1efc32['classList']['remove']('ck-user__marker_hovered');}),_0x1efc32;},_0x147108['isSimilar']=function(_0x3826bc){return!(!this['getCustomProperty']('userPositionMarker')||!_0x3826bc['getCustomProperty']('userPositionMarker')||this['getAttribute']('data-session-id')!=_0x3826bc['getAttribute']('data-session-id'));},_0x147108;}function hideHoveredUserPositionMarkersTooltips(_0x18e3d9){_0x18e3d9['editing']['view']['change'](_0x24da38=>{for(const _0x449198 of _0x18e3d9['model']['markers']){if(!_0x449198['name']['startsWith']('user:position'))continue;const _0x127f2a=_0x18e3d9['editing']['mapper']['markerNameToElements'](_0x449198['name']);if(_0x127f2a){for(const _0x2eb62e of _0x127f2a)_0x24da38['removeClass']('ck-user__marker_hovered',_0x2eb62e);}}});}function createUserMarkerPostFixer(_0x3ae495){const _0x59f4f8=_0x3ae495['model'],_0xc6c332=new Map(),_0x113c96=_0x3ae495['plugins']['get'](Sessions);_0x59f4f8['markers']['on']('update:user:range',(_0xdcf232,_0x396171,_0x151319,_0x140a0d)=>{if(!_0x140a0d&&_0xc6c332['get'](_0x396171['name']))return _0xc6c332['get'](_0x396171['name'])['detach'](),void _0xc6c332['delete'](_0x396171['name']);const _0x3a00d9=_0x396171['name']['split'](':')[0x2];if(_0x3a00d9===_0x113c96['mySessionId'])return;const _0x2528d6='user:position:'+_0x3a00d9;_0x59f4f8['markers']['has'](_0x2528d6)&&_0x3ae495['editing']['reconvertMarker'](_0x2528d6),_0x396171['on']('change:range',(_0x10b689,_0x1566db,_0x2b40c2)=>{if('$graveyard'!=_0x1566db['root']['rootName']&&'$graveyard'==_0x396171['getRange']()['root']['rootName']&&!_0xc6c332['has'](_0x396171['name'])){const _0x1c65f2=_0x59f4f8['schema']['getNearestSelectionRange'](_0x2b40c2['deletionPosition']);if(_0x1c65f2){const _0x19c11c=ModelLiveRange['fromRange'](_0x1c65f2);_0xc6c332['set'](_0x396171['name'],_0x19c11c),_0x19c11c['on']('change:range',(_0x33134d,_0x3afe43,_0x48ef6c)=>{if('$graveyard'==_0x19c11c['root']['rootName']){const _0x419b0f=_0x59f4f8['schema']['getNearestSelectionRange'](_0x48ef6c['deletionPosition']);_0x419b0f?(_0x19c11c['start']=_0x419b0f['start'],_0x19c11c['end']=_0x419b0f['end']):(_0xc6c332['delete'](_0x396171['name']),_0x19c11c['detach']());}});}}});}),_0x59f4f8['document']['on']('change',()=>{_0xc6c332['size']>0x0&&_0x59f4f8['enqueueChange']({'isUndoable':!0x1},_0x1df777=>{for(const [_0x3ffd0c,_0x3b6cd2]of _0xc6c332)'$graveyard'==_0x59f4f8['markers']['get'](_0x3ffd0c)['getRange']()['root']['rootName']&&(updateUserMarkers(_0x3ffd0c['split'](':')[0x2],_0x3b6cd2['toRange'](),_0x59f4f8,_0x1df777),_0x3b6cd2['detach']());_0xc6c332['clear']();});});}function getTranslation$6(_0x242f4f,_0x32306a,_0x21b3ca){const _0x267c59=_0x242f4f['t'],t=_0x242f4f['t'];switch(_0x32306a){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 _0x267c59({'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'},_0x21b3ca);default:return'';}}const messages=/* #__PURE__ -- @preserve */
((()=>{var _0x3e6c4b=minimalExports['Reader'],_0x2d4810=minimalExports['Writer'],_0x188bc5=minimalExports['util'],_0x58c30e=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0x58c30e['AttributeOperation']=(function(){function _0x5acc0f(_0x2aa620){if(_0x2aa620){for(var _0x296a97=Object['keys'](_0x2aa620),_0x5936e1=0x0;_0x5936e1<_0x296a97['length'];++_0x5936e1)null!=_0x2aa620[_0x296a97[_0x5936e1]]&&(this[_0x296a97[_0x5936e1]]=_0x2aa620[_0x296a97[_0x5936e1]]);}}return _0x5acc0f['prototype']['range']=null,_0x5acc0f['prototype']['key']='',_0x5acc0f['prototype']['oldValueBoolean']=!0x1,_0x5acc0f['prototype']['oldValueJson']='',_0x5acc0f['prototype']['newValueBoolean']=!0x1,_0x5acc0f['prototype']['newValueJson']='',_0x5acc0f['prototype']['wasUndone']=!0x1,_0x5acc0f['create']=function(_0x4ba646){return new _0x5acc0f(_0x4ba646);},_0x5acc0f['encode']=function(_0x1c3d29,_0x4d13e5){return _0x4d13e5||(_0x4d13e5=_0x2d4810['create']()),null!=_0x1c3d29['range']&&Object['hasOwnProperty']['call'](_0x1c3d29,'range')&&_0x58c30e['Range']['encode'](_0x1c3d29['range'],_0x4d13e5['uint32'](0xa)['fork']())['ldelim'](),null!=_0x1c3d29['key']&&Object['hasOwnProperty']['call'](_0x1c3d29,'key')&&_0x4d13e5['uint32'](0x12)['string'](_0x1c3d29['key']),null!=_0x1c3d29['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x1c3d29,'oldValueBoolean')&&_0x4d13e5['uint32'](0x18)['bool'](_0x1c3d29['oldValueBoolean']),null!=_0x1c3d29['oldValueJson']&&Object['hasOwnProperty']['call'](_0x1c3d29,'oldValueJson')&&_0x4d13e5['uint32'](0x22)['string'](_0x1c3d29['oldValueJson']),null!=_0x1c3d29['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x1c3d29,'newValueBoolean')&&_0x4d13e5['uint32'](0x28)['bool'](_0x1c3d29['newValueBoolean']),null!=_0x1c3d29['newValueJson']&&Object['hasOwnProperty']['call'](_0x1c3d29,'newValueJson')&&_0x4d13e5['uint32'](0x32)['string'](_0x1c3d29['newValueJson']),null!=_0x1c3d29['wasUndone']&&Object['hasOwnProperty']['call'](_0x1c3d29,'wasUndone')&&_0x4d13e5['uint32'](0x38)['bool'](_0x1c3d29['wasUndone']),_0x4d13e5;},_0x5acc0f['encodeDelimited']=function(_0x4b19ae,_0x21807f){return this['encode'](_0x4b19ae,_0x21807f)['ldelim']();},_0x5acc0f['decode']=function(_0xb7b292,_0x18f485){_0xb7b292 instanceof _0x3e6c4b||(_0xb7b292=_0x3e6c4b['create'](_0xb7b292));for(var _0x25c664=void 0x0===_0x18f485?_0xb7b292['len']:_0xb7b292['pos']+_0x18f485,_0x347c5b=new _0x58c30e['AttributeOperation']();_0xb7b292['pos']<_0x25c664;){var _0x19d337=_0xb7b292['uint32']();switch(_0x19d337>>>0x3){case 0x1:_0x347c5b['range']=_0x58c30e['Range']['decode'](_0xb7b292,_0xb7b292['uint32']());break;case 0x2:_0x347c5b['key']=_0xb7b292['string']();break;case 0x3:_0x347c5b['oldValueBoolean']=_0xb7b292['bool']();break;case 0x4:_0x347c5b['oldValueJson']=_0xb7b292['string']();break;case 0x5:_0x347c5b['newValueBoolean']=_0xb7b292['bool']();break;case 0x6:_0x347c5b['newValueJson']=_0xb7b292['string']();break;case 0x7:_0x347c5b['wasUndone']=_0xb7b292['bool']();break;default:_0xb7b292['skipType'](0x7&_0x19d337);}}return _0x347c5b;},_0x5acc0f['decodeDelimited']=function(_0x25b39a){return _0x25b39a instanceof _0x3e6c4b||(_0x25b39a=new _0x3e6c4b(_0x25b39a)),this['decode'](_0x25b39a,_0x25b39a['uint32']());},_0x5acc0f['verify']=function(_0x53c490){if('object'!=typeof _0x53c490||null===_0x53c490)return'object\x20expected';if(null!=_0x53c490['range']&&_0x53c490['hasOwnProperty']('range')){var _0x4039f1=_0x58c30e['Range']['verify'](_0x53c490['range']);if(_0x4039f1)return'range.'+_0x4039f1;}return null!=_0x53c490['key']&&_0x53c490['hasOwnProperty']('key')&&!_0x188bc5['isString'](_0x53c490['key'])?'key:\x20string\x20expected':null!=_0x53c490['oldValueBoolean']&&_0x53c490['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x53c490['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x53c490['oldValueJson']&&_0x53c490['hasOwnProperty']('oldValueJson')&&!_0x188bc5['isString'](_0x53c490['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x53c490['newValueBoolean']&&_0x53c490['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x53c490['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x53c490['newValueJson']&&_0x53c490['hasOwnProperty']('newValueJson')&&!_0x188bc5['isString'](_0x53c490['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x53c490['wasUndone']&&_0x53c490['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x53c490['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x5acc0f['fromObject']=function(_0x2bade6){if(_0x2bade6 instanceof _0x58c30e['AttributeOperation'])return _0x2bade6;var _0x27b568=new _0x58c30e['AttributeOperation']();if(null!=_0x2bade6['range']){if('object'!=typeof _0x2bade6['range'])throw TypeError('.AttributeOperation.range:\x20object\x20expected');_0x27b568['range']=_0x58c30e['Range']['fromObject'](_0x2bade6['range']);}return null!=_0x2bade6['key']&&(_0x27b568['key']=String(_0x2bade6['key'])),null!=_0x2bade6['oldValueBoolean']&&(_0x27b568['oldValueBoolean']=Boolean(_0x2bade6['oldValueBoolean'])),null!=_0x2bade6['oldValueJson']&&(_0x27b568['oldValueJson']=String(_0x2bade6['oldValueJson'])),null!=_0x2bade6['newValueBoolean']&&(_0x27b568['newValueBoolean']=Boolean(_0x2bade6['newValueBoolean'])),null!=_0x2bade6['newValueJson']&&(_0x27b568['newValueJson']=String(_0x2bade6['newValueJson'])),null!=_0x2bade6['wasUndone']&&(_0x27b568['wasUndone']=Boolean(_0x2bade6['wasUndone'])),_0x27b568;},_0x5acc0f['toObject']=function(_0x251f23,_0x4aef84){_0x4aef84||(_0x4aef84={});var _0x2c5de1={};return _0x4aef84['defaults']&&(_0x2c5de1['range']=null,_0x2c5de1['key']='',_0x2c5de1['oldValueBoolean']=!0x1,_0x2c5de1['oldValueJson']='',_0x2c5de1['newValueBoolean']=!0x1,_0x2c5de1['newValueJson']='',_0x2c5de1['wasUndone']=!0x1),null!=_0x251f23['range']&&_0x251f23['hasOwnProperty']('range')&&(_0x2c5de1['range']=_0x58c30e['Range']['toObject'](_0x251f23['range'],_0x4aef84)),null!=_0x251f23['key']&&_0x251f23['hasOwnProperty']('key')&&(_0x2c5de1['key']=_0x251f23['key']),null!=_0x251f23['oldValueBoolean']&&_0x251f23['hasOwnProperty']('oldValueBoolean')&&(_0x2c5de1['oldValueBoolean']=_0x251f23['oldValueBoolean']),null!=_0x251f23['oldValueJson']&&_0x251f23['hasOwnProperty']('oldValueJson')&&(_0x2c5de1['oldValueJson']=_0x251f23['oldValueJson']),null!=_0x251f23['newValueBoolean']&&_0x251f23['hasOwnProperty']('newValueBoolean')&&(_0x2c5de1['newValueBoolean']=_0x251f23['newValueBoolean']),null!=_0x251f23['newValueJson']&&_0x251f23['hasOwnProperty']('newValueJson')&&(_0x2c5de1['newValueJson']=_0x251f23['newValueJson']),null!=_0x251f23['wasUndone']&&_0x251f23['hasOwnProperty']('wasUndone')&&(_0x2c5de1['wasUndone']=_0x251f23['wasUndone']),_0x2c5de1;},_0x5acc0f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5acc0f['getTypeUrl']=function(_0x23f227){return void 0x0===_0x23f227&&(_0x23f227='type.googleapis.com'),_0x23f227+'/AttributeOperation';},_0x5acc0f;}()),_0x58c30e['InsertOperation']=(function(){function _0x4a3725(_0x19e2d6){if(this['nodes']=[],_0x19e2d6){for(var _0x1ca382=Object['keys'](_0x19e2d6),_0x479162=0x0;_0x479162<_0x1ca382['length'];++_0x479162)null!=_0x19e2d6[_0x1ca382[_0x479162]]&&(this[_0x1ca382[_0x479162]]=_0x19e2d6[_0x1ca382[_0x479162]]);}}return _0x4a3725['prototype']['position']=null,_0x4a3725['prototype']['nodes']=_0x188bc5['emptyArray'],_0x4a3725['prototype']['shouldReceiveAttributes']=!0x1,_0x4a3725['prototype']['wasUndone']=!0x1,_0x4a3725['create']=function(_0x2de599){return new _0x4a3725(_0x2de599);},_0x4a3725['encode']=function(_0x4abd65,_0x14c924){if(_0x14c924||(_0x14c924=_0x2d4810['create']()),null!=_0x4abd65['position']&&Object['hasOwnProperty']['call'](_0x4abd65,'position')&&_0x58c30e['Position']['encode'](_0x4abd65['position'],_0x14c924['uint32'](0xa)['fork']())['ldelim'](),null!=_0x4abd65['nodes']&&_0x4abd65['nodes']['length']){for(var _0xd07a7f=0x0;_0xd07a7f<_0x4abd65['nodes']['length'];++_0xd07a7f)_0x58c30e['Element']['encode'](_0x4abd65['nodes'][_0xd07a7f],_0x14c924['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x4abd65['shouldReceiveAttributes']&&Object['hasOwnProperty']['call'](_0x4abd65,'shouldReceiveAttributes')&&_0x14c924['uint32'](0x18)['bool'](_0x4abd65['shouldReceiveAttributes']),null!=_0x4abd65['wasUndone']&&Object['hasOwnProperty']['call'](_0x4abd65,'wasUndone')&&_0x14c924['uint32'](0x20)['bool'](_0x4abd65['wasUndone']),_0x14c924;},_0x4a3725['encodeDelimited']=function(_0x12b989,_0x5aa7e4){return this['encode'](_0x12b989,_0x5aa7e4)['ldelim']();},_0x4a3725['decode']=function(_0x2f6736,_0x79e65d){_0x2f6736 instanceof _0x3e6c4b||(_0x2f6736=_0x3e6c4b['create'](_0x2f6736));for(var _0x53e4d7=void 0x0===_0x79e65d?_0x2f6736['len']:_0x2f6736['pos']+_0x79e65d,_0x22491e=new _0x58c30e['InsertOperation']();_0x2f6736['pos']<_0x53e4d7;){var _0x1d6db3=_0x2f6736['uint32']();switch(_0x1d6db3>>>0x3){case 0x1:_0x22491e['position']=_0x58c30e['Position']['decode'](_0x2f6736,_0x2f6736['uint32']());break;case 0x2:_0x22491e['nodes']&&_0x22491e['nodes']['length']||(_0x22491e['nodes']=[]),_0x22491e['nodes']['push'](_0x58c30e['Element']['decode'](_0x2f6736,_0x2f6736['uint32']()));break;case 0x3:_0x22491e['shouldReceiveAttributes']=_0x2f6736['bool']();break;case 0x4:_0x22491e['wasUndone']=_0x2f6736['bool']();break;default:_0x2f6736['skipType'](0x7&_0x1d6db3);}}return _0x22491e;},_0x4a3725['decodeDelimited']=function(_0x3308a7){return _0x3308a7 instanceof _0x3e6c4b||(_0x3308a7=new _0x3e6c4b(_0x3308a7)),this['decode'](_0x3308a7,_0x3308a7['uint32']());},_0x4a3725['verify']=function(_0x5c8129){if('object'!=typeof _0x5c8129||null===_0x5c8129)return'object\x20expected';if(null!=_0x5c8129['position']&&_0x5c8129['hasOwnProperty']('position')&&(_0x48a2a7=_0x58c30e['Position']['verify'](_0x5c8129['position'])))return'position.'+_0x48a2a7;if(null!=_0x5c8129['nodes']&&_0x5c8129['hasOwnProperty']('nodes')){if(!Array['isArray'](_0x5c8129['nodes']))return'nodes:\x20array\x20expected';for(var _0x2233fc=0x0;_0x2233fc<_0x5c8129['nodes']['length'];++_0x2233fc){var _0x48a2a7;if(_0x48a2a7=_0x58c30e['Element']['verify'](_0x5c8129['nodes'][_0x2233fc]))return'nodes.'+_0x48a2a7;}}return null!=_0x5c8129['shouldReceiveAttributes']&&_0x5c8129['hasOwnProperty']('shouldReceiveAttributes')&&'boolean'!=typeof _0x5c8129['shouldReceiveAttributes']?'shouldReceiveAttributes:\x20boolean\x20expected':null!=_0x5c8129['wasUndone']&&_0x5c8129['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x5c8129['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x4a3725['fromObject']=function(_0x2a6c06){if(_0x2a6c06 instanceof _0x58c30e['InsertOperation'])return _0x2a6c06;var _0x141fc2=new _0x58c30e['InsertOperation']();if(null!=_0x2a6c06['position']){if('object'!=typeof _0x2a6c06['position'])throw TypeError('.InsertOperation.position:\x20object\x20expected');_0x141fc2['position']=_0x58c30e['Position']['fromObject'](_0x2a6c06['position']);}if(_0x2a6c06['nodes']){if(!Array['isArray'](_0x2a6c06['nodes']))throw TypeError('.InsertOperation.nodes:\x20array\x20expected');_0x141fc2['nodes']=[];for(var _0x44ad8e=0x0;_0x44ad8e<_0x2a6c06['nodes']['length'];++_0x44ad8e){if('object'!=typeof _0x2a6c06['nodes'][_0x44ad8e])throw TypeError('.InsertOperation.nodes:\x20object\x20expected');_0x141fc2['nodes'][_0x44ad8e]=_0x58c30e['Element']['fromObject'](_0x2a6c06['nodes'][_0x44ad8e]);}}return null!=_0x2a6c06['shouldReceiveAttributes']&&(_0x141fc2['shouldReceiveAttributes']=Boolean(_0x2a6c06['shouldReceiveAttributes'])),null!=_0x2a6c06['wasUndone']&&(_0x141fc2['wasUndone']=Boolean(_0x2a6c06['wasUndone'])),_0x141fc2;},_0x4a3725['toObject']=function(_0x44d112,_0x5ef004){_0x5ef004||(_0x5ef004={});var _0x48ba64={};if((_0x5ef004['arrays']||_0x5ef004['defaults'])&&(_0x48ba64['nodes']=[]),_0x5ef004['defaults']&&(_0x48ba64['position']=null,_0x48ba64['shouldReceiveAttributes']=!0x1,_0x48ba64['wasUndone']=!0x1),null!=_0x44d112['position']&&_0x44d112['hasOwnProperty']('position')&&(_0x48ba64['position']=_0x58c30e['Position']['toObject'](_0x44d112['position'],_0x5ef004)),_0x44d112['nodes']&&_0x44d112['nodes']['length']){_0x48ba64['nodes']=[];for(var _0x42ef54=0x0;_0x42ef54<_0x44d112['nodes']['length'];++_0x42ef54)_0x48ba64['nodes'][_0x42ef54]=_0x58c30e['Element']['toObject'](_0x44d112['nodes'][_0x42ef54],_0x5ef004);}return null!=_0x44d112['shouldReceiveAttributes']&&_0x44d112['hasOwnProperty']('shouldReceiveAttributes')&&(_0x48ba64['shouldReceiveAttributes']=_0x44d112['shouldReceiveAttributes']),null!=_0x44d112['wasUndone']&&_0x44d112['hasOwnProperty']('wasUndone')&&(_0x48ba64['wasUndone']=_0x44d112['wasUndone']),_0x48ba64;},_0x4a3725['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4a3725['getTypeUrl']=function(_0x3b8c92){return void 0x0===_0x3b8c92&&(_0x3b8c92='type.googleapis.com'),_0x3b8c92+'/InsertOperation';},_0x4a3725;}()),_0x58c30e['MarkerOperation']=(function(){function _0x4a3030(_0x540048){if(_0x540048){for(var _0x221311=Object['keys'](_0x540048),_0x2728f1=0x0;_0x2728f1<_0x221311['length'];++_0x2728f1)null!=_0x540048[_0x221311[_0x2728f1]]&&(this[_0x221311[_0x2728f1]]=_0x540048[_0x221311[_0x2728f1]]);}}return _0x4a3030['prototype']['name']='',_0x4a3030['prototype']['oldRange']=null,_0x4a3030['prototype']['newRange']=null,_0x4a3030['prototype']['affectsData']=!0x1,_0x4a3030['prototype']['wasUndone']=!0x1,_0x4a3030['create']=function(_0x422e02){return new _0x4a3030(_0x422e02);},_0x4a3030['encode']=function(_0x4a067d,_0x371fea){return _0x371fea||(_0x371fea=_0x2d4810['create']()),null!=_0x4a067d['name']&&Object['hasOwnProperty']['call'](_0x4a067d,'name')&&_0x371fea['uint32'](0xa)['string'](_0x4a067d['name']),null!=_0x4a067d['oldRange']&&Object['hasOwnProperty']['call'](_0x4a067d,'oldRange')&&_0x58c30e['Range']['encode'](_0x4a067d['oldRange'],_0x371fea['uint32'](0x12)['fork']())['ldelim'](),null!=_0x4a067d['newRange']&&Object['hasOwnProperty']['call'](_0x4a067d,'newRange')&&_0x58c30e['Range']['encode'](_0x4a067d['newRange'],_0x371fea['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x4a067d['affectsData']&&Object['hasOwnProperty']['call'](_0x4a067d,'affectsData')&&_0x371fea['uint32'](0x20)['bool'](_0x4a067d['affectsData']),null!=_0x4a067d['wasUndone']&&Object['hasOwnProperty']['call'](_0x4a067d,'wasUndone')&&_0x371fea['uint32'](0x28)['bool'](_0x4a067d['wasUndone']),_0x371fea;},_0x4a3030['encodeDelimited']=function(_0x4b222b,_0x3e4617){return this['encode'](_0x4b222b,_0x3e4617)['ldelim']();},_0x4a3030['decode']=function(_0x321943,_0x5283fd){_0x321943 instanceof _0x3e6c4b||(_0x321943=_0x3e6c4b['create'](_0x321943));for(var _0x204dfc=void 0x0===_0x5283fd?_0x321943['len']:_0x321943['pos']+_0x5283fd,_0x1f7c26=new _0x58c30e['MarkerOperation']();_0x321943['pos']<_0x204dfc;){var _0xdac196=_0x321943['uint32']();switch(_0xdac196>>>0x3){case 0x1:_0x1f7c26['name']=_0x321943['string']();break;case 0x2:_0x1f7c26['oldRange']=_0x58c30e['Range']['decode'](_0x321943,_0x321943['uint32']());break;case 0x3:_0x1f7c26['newRange']=_0x58c30e['Range']['decode'](_0x321943,_0x321943['uint32']());break;case 0x4:_0x1f7c26['affectsData']=_0x321943['bool']();break;case 0x5:_0x1f7c26['wasUndone']=_0x321943['bool']();break;default:_0x321943['skipType'](0x7&_0xdac196);}}return _0x1f7c26;},_0x4a3030['decodeDelimited']=function(_0x548761){return _0x548761 instanceof _0x3e6c4b||(_0x548761=new _0x3e6c4b(_0x548761)),this['decode'](_0x548761,_0x548761['uint32']());},_0x4a3030['verify']=function(_0x43265f){if('object'!=typeof _0x43265f||null===_0x43265f)return'object\x20expected';if(null!=_0x43265f['name']&&_0x43265f['hasOwnProperty']('name')&&!_0x188bc5['isString'](_0x43265f['name']))return'name:\x20string\x20expected';var _0x31568e;if(null!=_0x43265f['oldRange']&&_0x43265f['hasOwnProperty']('oldRange')&&(_0x31568e=_0x58c30e['Range']['verify'](_0x43265f['oldRange'])))return'oldRange.'+_0x31568e;if(null!=_0x43265f['newRange']&&_0x43265f['hasOwnProperty']('newRange')&&(_0x31568e=_0x58c30e['Range']['verify'](_0x43265f['newRange'])))return'newRange.'+_0x31568e;return null!=_0x43265f['affectsData']&&_0x43265f['hasOwnProperty']('affectsData')&&'boolean'!=typeof _0x43265f['affectsData']?'affectsData:\x20boolean\x20expected':null!=_0x43265f['wasUndone']&&_0x43265f['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x43265f['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x4a3030['fromObject']=function(_0x3f2726){if(_0x3f2726 instanceof _0x58c30e['MarkerOperation'])return _0x3f2726;var _0x7fd97c=new _0x58c30e['MarkerOperation']();if(null!=_0x3f2726['name']&&(_0x7fd97c['name']=String(_0x3f2726['name'])),null!=_0x3f2726['oldRange']){if('object'!=typeof _0x3f2726['oldRange'])throw TypeError('.MarkerOperation.oldRange:\x20object\x20expected');_0x7fd97c['oldRange']=_0x58c30e['Range']['fromObject'](_0x3f2726['oldRange']);}if(null!=_0x3f2726['newRange']){if('object'!=typeof _0x3f2726['newRange'])throw TypeError('.MarkerOperation.newRange:\x20object\x20expected');_0x7fd97c['newRange']=_0x58c30e['Range']['fromObject'](_0x3f2726['newRange']);}return null!=_0x3f2726['affectsData']&&(_0x7fd97c['affectsData']=Boolean(_0x3f2726['affectsData'])),null!=_0x3f2726['wasUndone']&&(_0x7fd97c['wasUndone']=Boolean(_0x3f2726['wasUndone'])),_0x7fd97c;},_0x4a3030['toObject']=function(_0x860a36,_0x288648){_0x288648||(_0x288648={});var _0x519772={};return _0x288648['defaults']&&(_0x519772['name']='',_0x519772['oldRange']=null,_0x519772['newRange']=null,_0x519772['affectsData']=!0x1,_0x519772['wasUndone']=!0x1),null!=_0x860a36['name']&&_0x860a36['hasOwnProperty']('name')&&(_0x519772['name']=_0x860a36['name']),null!=_0x860a36['oldRange']&&_0x860a36['hasOwnProperty']('oldRange')&&(_0x519772['oldRange']=_0x58c30e['Range']['toObject'](_0x860a36['oldRange'],_0x288648)),null!=_0x860a36['newRange']&&_0x860a36['hasOwnProperty']('newRange')&&(_0x519772['newRange']=_0x58c30e['Range']['toObject'](_0x860a36['newRange'],_0x288648)),null!=_0x860a36['affectsData']&&_0x860a36['hasOwnProperty']('affectsData')&&(_0x519772['affectsData']=_0x860a36['affectsData']),null!=_0x860a36['wasUndone']&&_0x860a36['hasOwnProperty']('wasUndone')&&(_0x519772['wasUndone']=_0x860a36['wasUndone']),_0x519772;},_0x4a3030['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4a3030['getTypeUrl']=function(_0x136b49){return void 0x0===_0x136b49&&(_0x136b49='type.googleapis.com'),_0x136b49+'/MarkerOperation';},_0x4a3030;}()),_0x58c30e['MergeOperation']=(function(){function _0x399d75(_0x19c36a){if(_0x19c36a){for(var _0x49b264=Object['keys'](_0x19c36a),_0x573f89=0x0;_0x573f89<_0x49b264['length'];++_0x573f89)null!=_0x19c36a[_0x49b264[_0x573f89]]&&(this[_0x49b264[_0x573f89]]=_0x19c36a[_0x49b264[_0x573f89]]);}}return _0x399d75['prototype']['sourcePosition']=null,_0x399d75['prototype']['targetPosition']=null,_0x399d75['prototype']['graveyardPosition']=null,_0x399d75['prototype']['howMany']=0x0,_0x399d75['prototype']['wasUndone']=!0x1,_0x399d75['create']=function(_0x554725){return new _0x399d75(_0x554725);},_0x399d75['encode']=function(_0x38ee8d,_0xa69d52){return _0xa69d52||(_0xa69d52=_0x2d4810['create']()),null!=_0x38ee8d['sourcePosition']&&Object['hasOwnProperty']['call'](_0x38ee8d,'sourcePosition')&&_0x58c30e['Position']['encode'](_0x38ee8d['sourcePosition'],_0xa69d52['uint32'](0xa)['fork']())['ldelim'](),null!=_0x38ee8d['targetPosition']&&Object['hasOwnProperty']['call'](_0x38ee8d,'targetPosition')&&_0x58c30e['Position']['encode'](_0x38ee8d['targetPosition'],_0xa69d52['uint32'](0x12)['fork']())['ldelim'](),null!=_0x38ee8d['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x38ee8d,'graveyardPosition')&&_0x58c30e['Position']['encode'](_0x38ee8d['graveyardPosition'],_0xa69d52['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x38ee8d['howMany']&&Object['hasOwnProperty']['call'](_0x38ee8d,'howMany')&&_0xa69d52['uint32'](0x20)['uint32'](_0x38ee8d['howMany']),null!=_0x38ee8d['wasUndone']&&Object['hasOwnProperty']['call'](_0x38ee8d,'wasUndone')&&_0xa69d52['uint32'](0x28)['bool'](_0x38ee8d['wasUndone']),_0xa69d52;},_0x399d75['encodeDelimited']=function(_0x3bc6f7,_0x58bd20){return this['encode'](_0x3bc6f7,_0x58bd20)['ldelim']();},_0x399d75['decode']=function(_0xf10f9c,_0x5b4384){_0xf10f9c instanceof _0x3e6c4b||(_0xf10f9c=_0x3e6c4b['create'](_0xf10f9c));for(var _0x38db4b=void 0x0===_0x5b4384?_0xf10f9c['len']:_0xf10f9c['pos']+_0x5b4384,_0x18d8b1=new _0x58c30e['MergeOperation']();_0xf10f9c['pos']<_0x38db4b;){var _0xc6cef6=_0xf10f9c['uint32']();switch(_0xc6cef6>>>0x3){case 0x1:_0x18d8b1['sourcePosition']=_0x58c30e['Position']['decode'](_0xf10f9c,_0xf10f9c['uint32']());break;case 0x2:_0x18d8b1['targetPosition']=_0x58c30e['Position']['decode'](_0xf10f9c,_0xf10f9c['uint32']());break;case 0x3:_0x18d8b1['graveyardPosition']=_0x58c30e['Position']['decode'](_0xf10f9c,_0xf10f9c['uint32']());break;case 0x4:_0x18d8b1['howMany']=_0xf10f9c['uint32']();break;case 0x5:_0x18d8b1['wasUndone']=_0xf10f9c['bool']();break;default:_0xf10f9c['skipType'](0x7&_0xc6cef6);}}return _0x18d8b1;},_0x399d75['decodeDelimited']=function(_0x3b01da){return _0x3b01da instanceof _0x3e6c4b||(_0x3b01da=new _0x3e6c4b(_0x3b01da)),this['decode'](_0x3b01da,_0x3b01da['uint32']());},_0x399d75['verify']=function(_0x48ffc2){if('object'!=typeof _0x48ffc2||null===_0x48ffc2)return'object\x20expected';var _0x36f71b;if(null!=_0x48ffc2['sourcePosition']&&_0x48ffc2['hasOwnProperty']('sourcePosition')&&(_0x36f71b=_0x58c30e['Position']['verify'](_0x48ffc2['sourcePosition'])))return'sourcePosition.'+_0x36f71b;if(null!=_0x48ffc2['targetPosition']&&_0x48ffc2['hasOwnProperty']('targetPosition')&&(_0x36f71b=_0x58c30e['Position']['verify'](_0x48ffc2['targetPosition'])))return'targetPosition.'+_0x36f71b;if(null!=_0x48ffc2['graveyardPosition']&&_0x48ffc2['hasOwnProperty']('graveyardPosition')&&(_0x36f71b=_0x58c30e['Position']['verify'](_0x48ffc2['graveyardPosition'])))return'graveyardPosition.'+_0x36f71b;return null!=_0x48ffc2['howMany']&&_0x48ffc2['hasOwnProperty']('howMany')&&!_0x188bc5['isInteger'](_0x48ffc2['howMany'])?'howMany:\x20integer\x20expected':null!=_0x48ffc2['wasUndone']&&_0x48ffc2['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x48ffc2['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x399d75['fromObject']=function(_0x28f799){if(_0x28f799 instanceof _0x58c30e['MergeOperation'])return _0x28f799;var _0x4b685d=new _0x58c30e['MergeOperation']();if(null!=_0x28f799['sourcePosition']){if('object'!=typeof _0x28f799['sourcePosition'])throw TypeError('.MergeOperation.sourcePosition:\x20object\x20expected');_0x4b685d['sourcePosition']=_0x58c30e['Position']['fromObject'](_0x28f799['sourcePosition']);}if(null!=_0x28f799['targetPosition']){if('object'!=typeof _0x28f799['targetPosition'])throw TypeError('.MergeOperation.targetPosition:\x20object\x20expected');_0x4b685d['targetPosition']=_0x58c30e['Position']['fromObject'](_0x28f799['targetPosition']);}if(null!=_0x28f799['graveyardPosition']){if('object'!=typeof _0x28f799['graveyardPosition'])throw TypeError('.MergeOperation.graveyardPosition:\x20object\x20expected');_0x4b685d['graveyardPosition']=_0x58c30e['Position']['fromObject'](_0x28f799['graveyardPosition']);}return null!=_0x28f799['howMany']&&(_0x4b685d['howMany']=_0x28f799['howMany']>>>0x0),null!=_0x28f799['wasUndone']&&(_0x4b685d['wasUndone']=Boolean(_0x28f799['wasUndone'])),_0x4b685d;},_0x399d75['toObject']=function(_0x301f14,_0x2f53d0){_0x2f53d0||(_0x2f53d0={});var _0x3d74c0={};return _0x2f53d0['defaults']&&(_0x3d74c0['sourcePosition']=null,_0x3d74c0['targetPosition']=null,_0x3d74c0['graveyardPosition']=null,_0x3d74c0['howMany']=0x0,_0x3d74c0['wasUndone']=!0x1),null!=_0x301f14['sourcePosition']&&_0x301f14['hasOwnProperty']('sourcePosition')&&(_0x3d74c0['sourcePosition']=_0x58c30e['Position']['toObject'](_0x301f14['sourcePosition'],_0x2f53d0)),null!=_0x301f14['targetPosition']&&_0x301f14['hasOwnProperty']('targetPosition')&&(_0x3d74c0['targetPosition']=_0x58c30e['Position']['toObject'](_0x301f14['targetPosition'],_0x2f53d0)),null!=_0x301f14['graveyardPosition']&&_0x301f14['hasOwnProperty']('graveyardPosition')&&(_0x3d74c0['graveyardPosition']=_0x58c30e['Position']['toObject'](_0x301f14['graveyardPosition'],_0x2f53d0)),null!=_0x301f14['howMany']&&_0x301f14['hasOwnProperty']('howMany')&&(_0x3d74c0['howMany']=_0x301f14['howMany']),null!=_0x301f14['wasUndone']&&_0x301f14['hasOwnProperty']('wasUndone')&&(_0x3d74c0['wasUndone']=_0x301f14['wasUndone']),_0x3d74c0;},_0x399d75['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x399d75['getTypeUrl']=function(_0xe66456){return void 0x0===_0xe66456&&(_0xe66456='type.googleapis.com'),_0xe66456+'/MergeOperation';},_0x399d75;}()),_0x58c30e['MoveOperation']=(function(){function _0x55e014(_0x2aa0b0){if(_0x2aa0b0){for(var _0x392581=Object['keys'](_0x2aa0b0),_0x4d3e93=0x0;_0x4d3e93<_0x392581['length'];++_0x4d3e93)null!=_0x2aa0b0[_0x392581[_0x4d3e93]]&&(this[_0x392581[_0x4d3e93]]=_0x2aa0b0[_0x392581[_0x4d3e93]]);}}return _0x55e014['prototype']['sourcePosition']=null,_0x55e014['prototype']['howMany']=0x0,_0x55e014['prototype']['targetPosition']=null,_0x55e014['prototype']['wasUndone']=!0x1,_0x55e014['create']=function(_0x4c5ccd){return new _0x55e014(_0x4c5ccd);},_0x55e014['encode']=function(_0x23cb77,_0x5e8fc5){return _0x5e8fc5||(_0x5e8fc5=_0x2d4810['create']()),null!=_0x23cb77['sourcePosition']&&Object['hasOwnProperty']['call'](_0x23cb77,'sourcePosition')&&_0x58c30e['Position']['encode'](_0x23cb77['sourcePosition'],_0x5e8fc5['uint32'](0xa)['fork']())['ldelim'](),null!=_0x23cb77['howMany']&&Object['hasOwnProperty']['call'](_0x23cb77,'howMany')&&_0x5e8fc5['uint32'](0x10)['uint32'](_0x23cb77['howMany']),null!=_0x23cb77['targetPosition']&&Object['hasOwnProperty']['call'](_0x23cb77,'targetPosition')&&_0x58c30e['Position']['encode'](_0x23cb77['targetPosition'],_0x5e8fc5['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x23cb77['wasUndone']&&Object['hasOwnProperty']['call'](_0x23cb77,'wasUndone')&&_0x5e8fc5['uint32'](0x20)['bool'](_0x23cb77['wasUndone']),_0x5e8fc5;},_0x55e014['encodeDelimited']=function(_0x580547,_0x2a55cf){return this['encode'](_0x580547,_0x2a55cf)['ldelim']();},_0x55e014['decode']=function(_0x49896e,_0x287440){_0x49896e instanceof _0x3e6c4b||(_0x49896e=_0x3e6c4b['create'](_0x49896e));for(var _0x334125=void 0x0===_0x287440?_0x49896e['len']:_0x49896e['pos']+_0x287440,_0x206151=new _0x58c30e['MoveOperation']();_0x49896e['pos']<_0x334125;){var _0x194d70=_0x49896e['uint32']();switch(_0x194d70>>>0x3){case 0x1:_0x206151['sourcePosition']=_0x58c30e['Position']['decode'](_0x49896e,_0x49896e['uint32']());break;case 0x2:_0x206151['howMany']=_0x49896e['uint32']();break;case 0x3:_0x206151['targetPosition']=_0x58c30e['Position']['decode'](_0x49896e,_0x49896e['uint32']());break;case 0x4:_0x206151['wasUndone']=_0x49896e['bool']();break;default:_0x49896e['skipType'](0x7&_0x194d70);}}return _0x206151;},_0x55e014['decodeDelimited']=function(_0x25fcfa){return _0x25fcfa instanceof _0x3e6c4b||(_0x25fcfa=new _0x3e6c4b(_0x25fcfa)),this['decode'](_0x25fcfa,_0x25fcfa['uint32']());},_0x55e014['verify']=function(_0x45820f){if('object'!=typeof _0x45820f||null===_0x45820f)return'object\x20expected';var _0x1b3b49;if(null!=_0x45820f['sourcePosition']&&_0x45820f['hasOwnProperty']('sourcePosition')&&(_0x1b3b49=_0x58c30e['Position']['verify'](_0x45820f['sourcePosition'])))return'sourcePosition.'+_0x1b3b49;if(null!=_0x45820f['howMany']&&_0x45820f['hasOwnProperty']('howMany')&&!_0x188bc5['isInteger'](_0x45820f['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x45820f['targetPosition']&&_0x45820f['hasOwnProperty']('targetPosition')&&(_0x1b3b49=_0x58c30e['Position']['verify'](_0x45820f['targetPosition'])))return'targetPosition.'+_0x1b3b49;return null!=_0x45820f['wasUndone']&&_0x45820f['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x45820f['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x55e014['fromObject']=function(_0x5c6bd4){if(_0x5c6bd4 instanceof _0x58c30e['MoveOperation'])return _0x5c6bd4;var _0x371d72=new _0x58c30e['MoveOperation']();if(null!=_0x5c6bd4['sourcePosition']){if('object'!=typeof _0x5c6bd4['sourcePosition'])throw TypeError('.MoveOperation.sourcePosition:\x20object\x20expected');_0x371d72['sourcePosition']=_0x58c30e['Position']['fromObject'](_0x5c6bd4['sourcePosition']);}if(null!=_0x5c6bd4['howMany']&&(_0x371d72['howMany']=_0x5c6bd4['howMany']>>>0x0),null!=_0x5c6bd4['targetPosition']){if('object'!=typeof _0x5c6bd4['targetPosition'])throw TypeError('.MoveOperation.targetPosition:\x20object\x20expected');_0x371d72['targetPosition']=_0x58c30e['Position']['fromObject'](_0x5c6bd4['targetPosition']);}return null!=_0x5c6bd4['wasUndone']&&(_0x371d72['wasUndone']=Boolean(_0x5c6bd4['wasUndone'])),_0x371d72;},_0x55e014['toObject']=function(_0x570a22,_0x19e77c){_0x19e77c||(_0x19e77c={});var _0x2f9ea4={};return _0x19e77c['defaults']&&(_0x2f9ea4['sourcePosition']=null,_0x2f9ea4['howMany']=0x0,_0x2f9ea4['targetPosition']=null,_0x2f9ea4['wasUndone']=!0x1),null!=_0x570a22['sourcePosition']&&_0x570a22['hasOwnProperty']('sourcePosition')&&(_0x2f9ea4['sourcePosition']=_0x58c30e['Position']['toObject'](_0x570a22['sourcePosition'],_0x19e77c)),null!=_0x570a22['howMany']&&_0x570a22['hasOwnProperty']('howMany')&&(_0x2f9ea4['howMany']=_0x570a22['howMany']),null!=_0x570a22['targetPosition']&&_0x570a22['hasOwnProperty']('targetPosition')&&(_0x2f9ea4['targetPosition']=_0x58c30e['Position']['toObject'](_0x570a22['targetPosition'],_0x19e77c)),null!=_0x570a22['wasUndone']&&_0x570a22['hasOwnProperty']('wasUndone')&&(_0x2f9ea4['wasUndone']=_0x570a22['wasUndone']),_0x2f9ea4;},_0x55e014['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x55e014['getTypeUrl']=function(_0x151ef6){return void 0x0===_0x151ef6&&(_0x151ef6='type.googleapis.com'),_0x151ef6+'/MoveOperation';},_0x55e014;}()),_0x58c30e['RenameOperation']=(function(){function _0x1e5461(_0x5b3ca9){if(_0x5b3ca9){for(var _0x15a103=Object['keys'](_0x5b3ca9),_0x5f1fd1=0x0;_0x5f1fd1<_0x15a103['length'];++_0x5f1fd1)null!=_0x5b3ca9[_0x15a103[_0x5f1fd1]]&&(this[_0x15a103[_0x5f1fd1]]=_0x5b3ca9[_0x15a103[_0x5f1fd1]]);}}return _0x1e5461['prototype']['position']=null,_0x1e5461['prototype']['oldName']='',_0x1e5461['prototype']['newName']='',_0x1e5461['prototype']['wasUndone']=!0x1,_0x1e5461['create']=function(_0x15c1dc){return new _0x1e5461(_0x15c1dc);},_0x1e5461['encode']=function(_0x568b83,_0x5a69d4){return _0x5a69d4||(_0x5a69d4=_0x2d4810['create']()),null!=_0x568b83['position']&&Object['hasOwnProperty']['call'](_0x568b83,'position')&&_0x58c30e['Position']['encode'](_0x568b83['position'],_0x5a69d4['uint32'](0xa)['fork']())['ldelim'](),null!=_0x568b83['oldName']&&Object['hasOwnProperty']['call'](_0x568b83,'oldName')&&_0x5a69d4['uint32'](0x12)['string'](_0x568b83['oldName']),null!=_0x568b83['newName']&&Object['hasOwnProperty']['call'](_0x568b83,'newName')&&_0x5a69d4['uint32'](0x1a)['string'](_0x568b83['newName']),null!=_0x568b83['wasUndone']&&Object['hasOwnProperty']['call'](_0x568b83,'wasUndone')&&_0x5a69d4['uint32'](0x20)['bool'](_0x568b83['wasUndone']),_0x5a69d4;},_0x1e5461['encodeDelimited']=function(_0x52f57e,_0x6dd463){return this['encode'](_0x52f57e,_0x6dd463)['ldelim']();},_0x1e5461['decode']=function(_0x18357f,_0x221364){_0x18357f instanceof _0x3e6c4b||(_0x18357f=_0x3e6c4b['create'](_0x18357f));for(var _0x148d58=void 0x0===_0x221364?_0x18357f['len']:_0x18357f['pos']+_0x221364,_0x55dd97=new _0x58c30e['RenameOperation']();_0x18357f['pos']<_0x148d58;){var _0x23ff14=_0x18357f['uint32']();switch(_0x23ff14>>>0x3){case 0x1:_0x55dd97['position']=_0x58c30e['Position']['decode'](_0x18357f,_0x18357f['uint32']());break;case 0x2:_0x55dd97['oldName']=_0x18357f['string']();break;case 0x3:_0x55dd97['newName']=_0x18357f['string']();break;case 0x4:_0x55dd97['wasUndone']=_0x18357f['bool']();break;default:_0x18357f['skipType'](0x7&_0x23ff14);}}return _0x55dd97;},_0x1e5461['decodeDelimited']=function(_0x2fe242){return _0x2fe242 instanceof _0x3e6c4b||(_0x2fe242=new _0x3e6c4b(_0x2fe242)),this['decode'](_0x2fe242,_0x2fe242['uint32']());},_0x1e5461['verify']=function(_0x3764d6){if('object'!=typeof _0x3764d6||null===_0x3764d6)return'object\x20expected';if(null!=_0x3764d6['position']&&_0x3764d6['hasOwnProperty']('position')){var _0x11dbae=_0x58c30e['Position']['verify'](_0x3764d6['position']);if(_0x11dbae)return'position.'+_0x11dbae;}return null!=_0x3764d6['oldName']&&_0x3764d6['hasOwnProperty']('oldName')&&!_0x188bc5['isString'](_0x3764d6['oldName'])?'oldName:\x20string\x20expected':null!=_0x3764d6['newName']&&_0x3764d6['hasOwnProperty']('newName')&&!_0x188bc5['isString'](_0x3764d6['newName'])?'newName:\x20string\x20expected':null!=_0x3764d6['wasUndone']&&_0x3764d6['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x3764d6['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x1e5461['fromObject']=function(_0x2de9ca){if(_0x2de9ca instanceof _0x58c30e['RenameOperation'])return _0x2de9ca;var _0x591548=new _0x58c30e['RenameOperation']();if(null!=_0x2de9ca['position']){if('object'!=typeof _0x2de9ca['position'])throw TypeError('.RenameOperation.position:\x20object\x20expected');_0x591548['position']=_0x58c30e['Position']['fromObject'](_0x2de9ca['position']);}return null!=_0x2de9ca['oldName']&&(_0x591548['oldName']=String(_0x2de9ca['oldName'])),null!=_0x2de9ca['newName']&&(_0x591548['newName']=String(_0x2de9ca['newName'])),null!=_0x2de9ca['wasUndone']&&(_0x591548['wasUndone']=Boolean(_0x2de9ca['wasUndone'])),_0x591548;},_0x1e5461['toObject']=function(_0x1c5708,_0x42cf89){_0x42cf89||(_0x42cf89={});var _0x2bbd1e={};return _0x42cf89['defaults']&&(_0x2bbd1e['position']=null,_0x2bbd1e['oldName']='',_0x2bbd1e['newName']='',_0x2bbd1e['wasUndone']=!0x1),null!=_0x1c5708['position']&&_0x1c5708['hasOwnProperty']('position')&&(_0x2bbd1e['position']=_0x58c30e['Position']['toObject'](_0x1c5708['position'],_0x42cf89)),null!=_0x1c5708['oldName']&&_0x1c5708['hasOwnProperty']('oldName')&&(_0x2bbd1e['oldName']=_0x1c5708['oldName']),null!=_0x1c5708['newName']&&_0x1c5708['hasOwnProperty']('newName')&&(_0x2bbd1e['newName']=_0x1c5708['newName']),null!=_0x1c5708['wasUndone']&&_0x1c5708['hasOwnProperty']('wasUndone')&&(_0x2bbd1e['wasUndone']=_0x1c5708['wasUndone']),_0x2bbd1e;},_0x1e5461['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1e5461['getTypeUrl']=function(_0x322ead){return void 0x0===_0x322ead&&(_0x322ead='type.googleapis.com'),_0x322ead+'/RenameOperation';},_0x1e5461;}()),_0x58c30e['RootAttributeOperation']=(function(){function _0x808ff7(_0x1febd2){if(_0x1febd2){for(var _0x3d02a6=Object['keys'](_0x1febd2),_0x39301f=0x0;_0x39301f<_0x3d02a6['length'];++_0x39301f)null!=_0x1febd2[_0x3d02a6[_0x39301f]]&&(this[_0x3d02a6[_0x39301f]]=_0x1febd2[_0x3d02a6[_0x39301f]]);}}return _0x808ff7['prototype']['root']='',_0x808ff7['prototype']['key']='',_0x808ff7['prototype']['oldValueBoolean']=!0x1,_0x808ff7['prototype']['oldValueJson']='',_0x808ff7['prototype']['newValueBoolean']=!0x1,_0x808ff7['prototype']['newValueJson']='',_0x808ff7['prototype']['wasUndone']=!0x1,_0x808ff7['create']=function(_0x4f1345){return new _0x808ff7(_0x4f1345);},_0x808ff7['encode']=function(_0x1de907,_0x5270f5){return _0x5270f5||(_0x5270f5=_0x2d4810['create']()),null!=_0x1de907['root']&&Object['hasOwnProperty']['call'](_0x1de907,'root')&&_0x5270f5['uint32'](0xa)['string'](_0x1de907['root']),null!=_0x1de907['key']&&Object['hasOwnProperty']['call'](_0x1de907,'key')&&_0x5270f5['uint32'](0x12)['string'](_0x1de907['key']),null!=_0x1de907['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x1de907,'oldValueBoolean')&&_0x5270f5['uint32'](0x18)['bool'](_0x1de907['oldValueBoolean']),null!=_0x1de907['oldValueJson']&&Object['hasOwnProperty']['call'](_0x1de907,'oldValueJson')&&_0x5270f5['uint32'](0x22)['string'](_0x1de907['oldValueJson']),null!=_0x1de907['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x1de907,'newValueBoolean')&&_0x5270f5['uint32'](0x28)['bool'](_0x1de907['newValueBoolean']),null!=_0x1de907['newValueJson']&&Object['hasOwnProperty']['call'](_0x1de907,'newValueJson')&&_0x5270f5['uint32'](0x32)['string'](_0x1de907['newValueJson']),null!=_0x1de907['wasUndone']&&Object['hasOwnProperty']['call'](_0x1de907,'wasUndone')&&_0x5270f5['uint32'](0x38)['bool'](_0x1de907['wasUndone']),_0x5270f5;},_0x808ff7['encodeDelimited']=function(_0x117bd7,_0x2bf82e){return this['encode'](_0x117bd7,_0x2bf82e)['ldelim']();},_0x808ff7['decode']=function(_0x4fb5e0,_0x34d640){_0x4fb5e0 instanceof _0x3e6c4b||(_0x4fb5e0=_0x3e6c4b['create'](_0x4fb5e0));for(var _0x80b252=void 0x0===_0x34d640?_0x4fb5e0['len']:_0x4fb5e0['pos']+_0x34d640,_0x5e3496=new _0x58c30e['RootAttributeOperation']();_0x4fb5e0['pos']<_0x80b252;){var _0x31a5da=_0x4fb5e0['uint32']();switch(_0x31a5da>>>0x3){case 0x1:_0x5e3496['root']=_0x4fb5e0['string']();break;case 0x2:_0x5e3496['key']=_0x4fb5e0['string']();break;case 0x3:_0x5e3496['oldValueBoolean']=_0x4fb5e0['bool']();break;case 0x4:_0x5e3496['oldValueJson']=_0x4fb5e0['string']();break;case 0x5:_0x5e3496['newValueBoolean']=_0x4fb5e0['bool']();break;case 0x6:_0x5e3496['newValueJson']=_0x4fb5e0['string']();break;case 0x7:_0x5e3496['wasUndone']=_0x4fb5e0['bool']();break;default:_0x4fb5e0['skipType'](0x7&_0x31a5da);}}return _0x5e3496;},_0x808ff7['decodeDelimited']=function(_0x121761){return _0x121761 instanceof _0x3e6c4b||(_0x121761=new _0x3e6c4b(_0x121761)),this['decode'](_0x121761,_0x121761['uint32']());},_0x808ff7['verify']=function(_0x13a222){return'object'!=typeof _0x13a222||null===_0x13a222?'object\x20expected':null!=_0x13a222['root']&&_0x13a222['hasOwnProperty']('root')&&!_0x188bc5['isString'](_0x13a222['root'])?'root:\x20string\x20expected':null!=_0x13a222['key']&&_0x13a222['hasOwnProperty']('key')&&!_0x188bc5['isString'](_0x13a222['key'])?'key:\x20string\x20expected':null!=_0x13a222['oldValueBoolean']&&_0x13a222['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x13a222['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x13a222['oldValueJson']&&_0x13a222['hasOwnProperty']('oldValueJson')&&!_0x188bc5['isString'](_0x13a222['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x13a222['newValueBoolean']&&_0x13a222['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x13a222['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x13a222['newValueJson']&&_0x13a222['hasOwnProperty']('newValueJson')&&!_0x188bc5['isString'](_0x13a222['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x13a222['wasUndone']&&_0x13a222['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x13a222['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x808ff7['fromObject']=function(_0x3407bb){if(_0x3407bb instanceof _0x58c30e['RootAttributeOperation'])return _0x3407bb;var _0x58c825=new _0x58c30e['RootAttributeOperation']();return null!=_0x3407bb['root']&&(_0x58c825['root']=String(_0x3407bb['root'])),null!=_0x3407bb['key']&&(_0x58c825['key']=String(_0x3407bb['key'])),null!=_0x3407bb['oldValueBoolean']&&(_0x58c825['oldValueBoolean']=Boolean(_0x3407bb['oldValueBoolean'])),null!=_0x3407bb['oldValueJson']&&(_0x58c825['oldValueJson']=String(_0x3407bb['oldValueJson'])),null!=_0x3407bb['newValueBoolean']&&(_0x58c825['newValueBoolean']=Boolean(_0x3407bb['newValueBoolean'])),null!=_0x3407bb['newValueJson']&&(_0x58c825['newValueJson']=String(_0x3407bb['newValueJson'])),null!=_0x3407bb['wasUndone']&&(_0x58c825['wasUndone']=Boolean(_0x3407bb['wasUndone'])),_0x58c825;},_0x808ff7['toObject']=function(_0x569ef7,_0xcfd4a2){_0xcfd4a2||(_0xcfd4a2={});var _0x2572b9={};return _0xcfd4a2['defaults']&&(_0x2572b9['root']='',_0x2572b9['key']='',_0x2572b9['oldValueBoolean']=!0x1,_0x2572b9['oldValueJson']='',_0x2572b9['newValueBoolean']=!0x1,_0x2572b9['newValueJson']='',_0x2572b9['wasUndone']=!0x1),null!=_0x569ef7['root']&&_0x569ef7['hasOwnProperty']('root')&&(_0x2572b9['root']=_0x569ef7['root']),null!=_0x569ef7['key']&&_0x569ef7['hasOwnProperty']('key')&&(_0x2572b9['key']=_0x569ef7['key']),null!=_0x569ef7['oldValueBoolean']&&_0x569ef7['hasOwnProperty']('oldValueBoolean')&&(_0x2572b9['oldValueBoolean']=_0x569ef7['oldValueBoolean']),null!=_0x569ef7['oldValueJson']&&_0x569ef7['hasOwnProperty']('oldValueJson')&&(_0x2572b9['oldValueJson']=_0x569ef7['oldValueJson']),null!=_0x569ef7['newValueBoolean']&&_0x569ef7['hasOwnProperty']('newValueBoolean')&&(_0x2572b9['newValueBoolean']=_0x569ef7['newValueBoolean']),null!=_0x569ef7['newValueJson']&&_0x569ef7['hasOwnProperty']('newValueJson')&&(_0x2572b9['newValueJson']=_0x569ef7['newValueJson']),null!=_0x569ef7['wasUndone']&&_0x569ef7['hasOwnProperty']('wasUndone')&&(_0x2572b9['wasUndone']=_0x569ef7['wasUndone']),_0x2572b9;},_0x808ff7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x808ff7['getTypeUrl']=function(_0x81bc50){return void 0x0===_0x81bc50&&(_0x81bc50='type.googleapis.com'),_0x81bc50+'/RootAttributeOperation';},_0x808ff7;}()),_0x58c30e['RootOperation']=(function(){function _0x43f9ff(_0x5dad1a){if(_0x5dad1a){for(var _0x1b54c=Object['keys'](_0x5dad1a),_0x13d785=0x0;_0x13d785<_0x1b54c['length'];++_0x13d785)null!=_0x5dad1a[_0x1b54c[_0x13d785]]&&(this[_0x1b54c[_0x13d785]]=_0x5dad1a[_0x1b54c[_0x13d785]]);}}return _0x43f9ff['prototype']['rootName']='',_0x43f9ff['prototype']['elementName']='',_0x43f9ff['prototype']['isAdd']=!0x1,_0x43f9ff['prototype']['wasUndone']=!0x1,_0x43f9ff['create']=function(_0x1c0ae5){return new _0x43f9ff(_0x1c0ae5);},_0x43f9ff['encode']=function(_0x4368a6,_0x161eb6){return _0x161eb6||(_0x161eb6=_0x2d4810['create']()),null!=_0x4368a6['rootName']&&Object['hasOwnProperty']['call'](_0x4368a6,'rootName')&&_0x161eb6['uint32'](0xa)['string'](_0x4368a6['rootName']),null!=_0x4368a6['elementName']&&Object['hasOwnProperty']['call'](_0x4368a6,'elementName')&&_0x161eb6['uint32'](0x12)['string'](_0x4368a6['elementName']),null!=_0x4368a6['isAdd']&&Object['hasOwnProperty']['call'](_0x4368a6,'isAdd')&&_0x161eb6['uint32'](0x18)['bool'](_0x4368a6['isAdd']),null!=_0x4368a6['wasUndone']&&Object['hasOwnProperty']['call'](_0x4368a6,'wasUndone')&&_0x161eb6['uint32'](0x20)['bool'](_0x4368a6['wasUndone']),_0x161eb6;},_0x43f9ff['encodeDelimited']=function(_0x152368,_0xdfdca4){return this['encode'](_0x152368,_0xdfdca4)['ldelim']();},_0x43f9ff['decode']=function(_0x56f6b8,_0x407d95){_0x56f6b8 instanceof _0x3e6c4b||(_0x56f6b8=_0x3e6c4b['create'](_0x56f6b8));for(var _0xbaaeab=void 0x0===_0x407d95?_0x56f6b8['len']:_0x56f6b8['pos']+_0x407d95,_0x25eaf9=new _0x58c30e['RootOperation']();_0x56f6b8['pos']<_0xbaaeab;){var _0x18bddf=_0x56f6b8['uint32']();switch(_0x18bddf>>>0x3){case 0x1:_0x25eaf9['rootName']=_0x56f6b8['string']();break;case 0x2:_0x25eaf9['elementName']=_0x56f6b8['string']();break;case 0x3:_0x25eaf9['isAdd']=_0x56f6b8['bool']();break;case 0x4:_0x25eaf9['wasUndone']=_0x56f6b8['bool']();break;default:_0x56f6b8['skipType'](0x7&_0x18bddf);}}return _0x25eaf9;},_0x43f9ff['decodeDelimited']=function(_0x2f7a99){return _0x2f7a99 instanceof _0x3e6c4b||(_0x2f7a99=new _0x3e6c4b(_0x2f7a99)),this['decode'](_0x2f7a99,_0x2f7a99['uint32']());},_0x43f9ff['verify']=function(_0x2bbb0f){return'object'!=typeof _0x2bbb0f||null===_0x2bbb0f?'object\x20expected':null!=_0x2bbb0f['rootName']&&_0x2bbb0f['hasOwnProperty']('rootName')&&!_0x188bc5['isString'](_0x2bbb0f['rootName'])?'rootName:\x20string\x20expected':null!=_0x2bbb0f['elementName']&&_0x2bbb0f['hasOwnProperty']('elementName')&&!_0x188bc5['isString'](_0x2bbb0f['elementName'])?'elementName:\x20string\x20expected':null!=_0x2bbb0f['isAdd']&&_0x2bbb0f['hasOwnProperty']('isAdd')&&'boolean'!=typeof _0x2bbb0f['isAdd']?'isAdd:\x20boolean\x20expected':null!=_0x2bbb0f['wasUndone']&&_0x2bbb0f['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x2bbb0f['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x43f9ff['fromObject']=function(_0x1b76a9){if(_0x1b76a9 instanceof _0x58c30e['RootOperation'])return _0x1b76a9;var _0x365bea=new _0x58c30e['RootOperation']();return null!=_0x1b76a9['rootName']&&(_0x365bea['rootName']=String(_0x1b76a9['rootName'])),null!=_0x1b76a9['elementName']&&(_0x365bea['elementName']=String(_0x1b76a9['elementName'])),null!=_0x1b76a9['isAdd']&&(_0x365bea['isAdd']=Boolean(_0x1b76a9['isAdd'])),null!=_0x1b76a9['wasUndone']&&(_0x365bea['wasUndone']=Boolean(_0x1b76a9['wasUndone'])),_0x365bea;},_0x43f9ff['toObject']=function(_0x1213f1,_0x2eebf8){_0x2eebf8||(_0x2eebf8={});var _0x1c056c={};return _0x2eebf8['defaults']&&(_0x1c056c['rootName']='',_0x1c056c['elementName']='',_0x1c056c['isAdd']=!0x1,_0x1c056c['wasUndone']=!0x1),null!=_0x1213f1['rootName']&&_0x1213f1['hasOwnProperty']('rootName')&&(_0x1c056c['rootName']=_0x1213f1['rootName']),null!=_0x1213f1['elementName']&&_0x1213f1['hasOwnProperty']('elementName')&&(_0x1c056c['elementName']=_0x1213f1['elementName']),null!=_0x1213f1['isAdd']&&_0x1213f1['hasOwnProperty']('isAdd')&&(_0x1c056c['isAdd']=_0x1213f1['isAdd']),null!=_0x1213f1['wasUndone']&&_0x1213f1['hasOwnProperty']('wasUndone')&&(_0x1c056c['wasUndone']=_0x1213f1['wasUndone']),_0x1c056c;},_0x43f9ff['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x43f9ff['getTypeUrl']=function(_0x177ee1){return void 0x0===_0x177ee1&&(_0x177ee1='type.googleapis.com'),_0x177ee1+'/RootOperation';},_0x43f9ff;}()),_0x58c30e['SplitOperation']=(function(){function _0x1b8c90(_0x48fa4f){if(_0x48fa4f){for(var _0xe5ca53=Object['keys'](_0x48fa4f),_0x45db4e=0x0;_0x45db4e<_0xe5ca53['length'];++_0x45db4e)null!=_0x48fa4f[_0xe5ca53[_0x45db4e]]&&(this[_0xe5ca53[_0x45db4e]]=_0x48fa4f[_0xe5ca53[_0x45db4e]]);}}return _0x1b8c90['prototype']['splitPosition']=null,_0x1b8c90['prototype']['graveyardPosition']=null,_0x1b8c90['prototype']['howMany']=0x0,_0x1b8c90['prototype']['insertionPosition']=null,_0x1b8c90['prototype']['wasUndone']=!0x1,_0x1b8c90['create']=function(_0x3387b1){return new _0x1b8c90(_0x3387b1);},_0x1b8c90['encode']=function(_0x17d833,_0x122a6b){return _0x122a6b||(_0x122a6b=_0x2d4810['create']()),null!=_0x17d833['splitPosition']&&Object['hasOwnProperty']['call'](_0x17d833,'splitPosition')&&_0x58c30e['Position']['encode'](_0x17d833['splitPosition'],_0x122a6b['uint32'](0xa)['fork']())['ldelim'](),null!=_0x17d833['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x17d833,'graveyardPosition')&&_0x58c30e['Position']['encode'](_0x17d833['graveyardPosition'],_0x122a6b['uint32'](0x12)['fork']())['ldelim'](),null!=_0x17d833['howMany']&&Object['hasOwnProperty']['call'](_0x17d833,'howMany')&&_0x122a6b['uint32'](0x18)['uint32'](_0x17d833['howMany']),null!=_0x17d833['insertionPosition']&&Object['hasOwnProperty']['call'](_0x17d833,'insertionPosition')&&_0x58c30e['Position']['encode'](_0x17d833['insertionPosition'],_0x122a6b['uint32'](0x22)['fork']())['ldelim'](),null!=_0x17d833['wasUndone']&&Object['hasOwnProperty']['call'](_0x17d833,'wasUndone')&&_0x122a6b['uint32'](0x28)['bool'](_0x17d833['wasUndone']),_0x122a6b;},_0x1b8c90['encodeDelimited']=function(_0x2dcb5c,_0xcba842){return this['encode'](_0x2dcb5c,_0xcba842)['ldelim']();},_0x1b8c90['decode']=function(_0x52d003,_0x589da4){_0x52d003 instanceof _0x3e6c4b||(_0x52d003=_0x3e6c4b['create'](_0x52d003));for(var _0x31bb70=void 0x0===_0x589da4?_0x52d003['len']:_0x52d003['pos']+_0x589da4,_0x17fd59=new _0x58c30e['SplitOperation']();_0x52d003['pos']<_0x31bb70;){var _0x445d3f=_0x52d003['uint32']();switch(_0x445d3f>>>0x3){case 0x1:_0x17fd59['splitPosition']=_0x58c30e['Position']['decode'](_0x52d003,_0x52d003['uint32']());break;case 0x2:_0x17fd59['graveyardPosition']=_0x58c30e['Position']['decode'](_0x52d003,_0x52d003['uint32']());break;case 0x3:_0x17fd59['howMany']=_0x52d003['uint32']();break;case 0x4:_0x17fd59['insertionPosition']=_0x58c30e['Position']['decode'](_0x52d003,_0x52d003['uint32']());break;case 0x5:_0x17fd59['wasUndone']=_0x52d003['bool']();break;default:_0x52d003['skipType'](0x7&_0x445d3f);}}return _0x17fd59;},_0x1b8c90['decodeDelimited']=function(_0x25c674){return _0x25c674 instanceof _0x3e6c4b||(_0x25c674=new _0x3e6c4b(_0x25c674)),this['decode'](_0x25c674,_0x25c674['uint32']());},_0x1b8c90['verify']=function(_0x22d465){if('object'!=typeof _0x22d465||null===_0x22d465)return'object\x20expected';var _0x36f71d;if(null!=_0x22d465['splitPosition']&&_0x22d465['hasOwnProperty']('splitPosition')&&(_0x36f71d=_0x58c30e['Position']['verify'](_0x22d465['splitPosition'])))return'splitPosition.'+_0x36f71d;if(null!=_0x22d465['graveyardPosition']&&_0x22d465['hasOwnProperty']('graveyardPosition')&&(_0x36f71d=_0x58c30e['Position']['verify'](_0x22d465['graveyardPosition'])))return'graveyardPosition.'+_0x36f71d;if(null!=_0x22d465['howMany']&&_0x22d465['hasOwnProperty']('howMany')&&!_0x188bc5['isInteger'](_0x22d465['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x22d465['insertionPosition']&&_0x22d465['hasOwnProperty']('insertionPosition')&&(_0x36f71d=_0x58c30e['Position']['verify'](_0x22d465['insertionPosition'])))return'insertionPosition.'+_0x36f71d;return null!=_0x22d465['wasUndone']&&_0x22d465['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x22d465['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x1b8c90['fromObject']=function(_0x585a8b){if(_0x585a8b instanceof _0x58c30e['SplitOperation'])return _0x585a8b;var _0x2af944=new _0x58c30e['SplitOperation']();if(null!=_0x585a8b['splitPosition']){if('object'!=typeof _0x585a8b['splitPosition'])throw TypeError('.SplitOperation.splitPosition:\x20object\x20expected');_0x2af944['splitPosition']=_0x58c30e['Position']['fromObject'](_0x585a8b['splitPosition']);}if(null!=_0x585a8b['graveyardPosition']){if('object'!=typeof _0x585a8b['graveyardPosition'])throw TypeError('.SplitOperation.graveyardPosition:\x20object\x20expected');_0x2af944['graveyardPosition']=_0x58c30e['Position']['fromObject'](_0x585a8b['graveyardPosition']);}if(null!=_0x585a8b['howMany']&&(_0x2af944['howMany']=_0x585a8b['howMany']>>>0x0),null!=_0x585a8b['insertionPosition']){if('object'!=typeof _0x585a8b['insertionPosition'])throw TypeError('.SplitOperation.insertionPosition:\x20object\x20expected');_0x2af944['insertionPosition']=_0x58c30e['Position']['fromObject'](_0x585a8b['insertionPosition']);}return null!=_0x585a8b['wasUndone']&&(_0x2af944['wasUndone']=Boolean(_0x585a8b['wasUndone'])),_0x2af944;},_0x1b8c90['toObject']=function(_0x306cd4,_0x442167){_0x442167||(_0x442167={});var _0xc3792={};return _0x442167['defaults']&&(_0xc3792['splitPosition']=null,_0xc3792['graveyardPosition']=null,_0xc3792['howMany']=0x0,_0xc3792['insertionPosition']=null,_0xc3792['wasUndone']=!0x1),null!=_0x306cd4['splitPosition']&&_0x306cd4['hasOwnProperty']('splitPosition')&&(_0xc3792['splitPosition']=_0x58c30e['Position']['toObject'](_0x306cd4['splitPosition'],_0x442167)),null!=_0x306cd4['graveyardPosition']&&_0x306cd4['hasOwnProperty']('graveyardPosition')&&(_0xc3792['graveyardPosition']=_0x58c30e['Position']['toObject'](_0x306cd4['graveyardPosition'],_0x442167)),null!=_0x306cd4['howMany']&&_0x306cd4['hasOwnProperty']('howMany')&&(_0xc3792['howMany']=_0x306cd4['howMany']),null!=_0x306cd4['insertionPosition']&&_0x306cd4['hasOwnProperty']('insertionPosition')&&(_0xc3792['insertionPosition']=_0x58c30e['Position']['toObject'](_0x306cd4['insertionPosition'],_0x442167)),null!=_0x306cd4['wasUndone']&&_0x306cd4['hasOwnProperty']('wasUndone')&&(_0xc3792['wasUndone']=_0x306cd4['wasUndone']),_0xc3792;},_0x1b8c90['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1b8c90['getTypeUrl']=function(_0x2c821d){return void 0x0===_0x2c821d&&(_0x2c821d='type.googleapis.com'),_0x2c821d+'/SplitOperation';},_0x1b8c90;}()),_0x58c30e['Position']=(function(){function _0x1c2c48(_0x435206){if(this['path']=[],_0x435206){for(var _0x1a0b1a=Object['keys'](_0x435206),_0x211d45=0x0;_0x211d45<_0x1a0b1a['length'];++_0x211d45)null!=_0x435206[_0x1a0b1a[_0x211d45]]&&(this[_0x1a0b1a[_0x211d45]]=_0x435206[_0x1a0b1a[_0x211d45]]);}}return _0x1c2c48['prototype']['root']='',_0x1c2c48['prototype']['rootMain']=!0x1,_0x1c2c48['prototype']['rootGraveyard']=!0x1,_0x1c2c48['prototype']['path']=_0x188bc5['emptyArray'],_0x1c2c48['prototype']['stickiness']='',_0x1c2c48['create']=function(_0x4e68a1){return new _0x1c2c48(_0x4e68a1);},_0x1c2c48['encode']=function(_0xa54deb,_0x4b2832){if(_0x4b2832||(_0x4b2832=_0x2d4810['create']()),null!=_0xa54deb['root']&&Object['hasOwnProperty']['call'](_0xa54deb,'root')&&_0x4b2832['uint32'](0xa)['string'](_0xa54deb['root']),null!=_0xa54deb['rootMain']&&Object['hasOwnProperty']['call'](_0xa54deb,'rootMain')&&_0x4b2832['uint32'](0x10)['bool'](_0xa54deb['rootMain']),null!=_0xa54deb['rootGraveyard']&&Object['hasOwnProperty']['call'](_0xa54deb,'rootGraveyard')&&_0x4b2832['uint32'](0x18)['bool'](_0xa54deb['rootGraveyard']),null!=_0xa54deb['path']&&_0xa54deb['path']['length']){_0x4b2832['uint32'](0x22)['fork']();for(var _0x4ce218=0x0;_0x4ce218<_0xa54deb['path']['length'];++_0x4ce218)_0x4b2832['uint32'](_0xa54deb['path'][_0x4ce218]);_0x4b2832['ldelim']();}return null!=_0xa54deb['stickiness']&&Object['hasOwnProperty']['call'](_0xa54deb,'stickiness')&&_0x4b2832['uint32'](0x2a)['string'](_0xa54deb['stickiness']),_0x4b2832;},_0x1c2c48['encodeDelimited']=function(_0xe92188,_0x1517c4){return this['encode'](_0xe92188,_0x1517c4)['ldelim']();},_0x1c2c48['decode']=function(_0x2f09cd,_0x4f9f14){_0x2f09cd instanceof _0x3e6c4b||(_0x2f09cd=_0x3e6c4b['create'](_0x2f09cd));for(var _0x2d6dd7=void 0x0===_0x4f9f14?_0x2f09cd['len']:_0x2f09cd['pos']+_0x4f9f14,_0x493a33=new _0x58c30e['Position']();_0x2f09cd['pos']<_0x2d6dd7;){var _0x15141b=_0x2f09cd['uint32']();switch(_0x15141b>>>0x3){case 0x1:_0x493a33['root']=_0x2f09cd['string']();break;case 0x2:_0x493a33['rootMain']=_0x2f09cd['bool']();break;case 0x3:_0x493a33['rootGraveyard']=_0x2f09cd['bool']();break;case 0x4:if(_0x493a33['path']&&_0x493a33['path']['length']||(_0x493a33['path']=[]),0x2==(0x7&_0x15141b)){for(var _0x117c05=_0x2f09cd['uint32']()+_0x2f09cd['pos'];_0x2f09cd['pos']<_0x117c05;)_0x493a33['path']['push'](_0x2f09cd['uint32']());}else _0x493a33['path']['push'](_0x2f09cd['uint32']());break;case 0x5:_0x493a33['stickiness']=_0x2f09cd['string']();break;default:_0x2f09cd['skipType'](0x7&_0x15141b);}}return _0x493a33;},_0x1c2c48['decodeDelimited']=function(_0x3d73db){return _0x3d73db instanceof _0x3e6c4b||(_0x3d73db=new _0x3e6c4b(_0x3d73db)),this['decode'](_0x3d73db,_0x3d73db['uint32']());},_0x1c2c48['verify']=function(_0x59fb38){if('object'!=typeof _0x59fb38||null===_0x59fb38)return'object\x20expected';if(null!=_0x59fb38['root']&&_0x59fb38['hasOwnProperty']('root')&&!_0x188bc5['isString'](_0x59fb38['root']))return'root:\x20string\x20expected';if(null!=_0x59fb38['rootMain']&&_0x59fb38['hasOwnProperty']('rootMain')&&'boolean'!=typeof _0x59fb38['rootMain'])return'rootMain:\x20boolean\x20expected';if(null!=_0x59fb38['rootGraveyard']&&_0x59fb38['hasOwnProperty']('rootGraveyard')&&'boolean'!=typeof _0x59fb38['rootGraveyard'])return'rootGraveyard:\x20boolean\x20expected';if(null!=_0x59fb38['path']&&_0x59fb38['hasOwnProperty']('path')){if(!Array['isArray'](_0x59fb38['path']))return'path:\x20array\x20expected';for(var _0x2af613=0x0;_0x2af613<_0x59fb38['path']['length'];++_0x2af613)if(!_0x188bc5['isInteger'](_0x59fb38['path'][_0x2af613]))return'path:\x20integer[]\x20expected';}return null!=_0x59fb38['stickiness']&&_0x59fb38['hasOwnProperty']('stickiness')&&!_0x188bc5['isString'](_0x59fb38['stickiness'])?'stickiness:\x20string\x20expected':null;},_0x1c2c48['fromObject']=function(_0x2b7468){if(_0x2b7468 instanceof _0x58c30e['Position'])return _0x2b7468;var _0x156982=new _0x58c30e['Position']();if(null!=_0x2b7468['root']&&(_0x156982['root']=String(_0x2b7468['root'])),null!=_0x2b7468['rootMain']&&(_0x156982['rootMain']=Boolean(_0x2b7468['rootMain'])),null!=_0x2b7468['rootGraveyard']&&(_0x156982['rootGraveyard']=Boolean(_0x2b7468['rootGraveyard'])),_0x2b7468['path']){if(!Array['isArray'](_0x2b7468['path']))throw TypeError('.Position.path:\x20array\x20expected');_0x156982['path']=[];for(var _0x16960d=0x0;_0x16960d<_0x2b7468['path']['length'];++_0x16960d)_0x156982['path'][_0x16960d]=_0x2b7468['path'][_0x16960d]>>>0x0;}return null!=_0x2b7468['stickiness']&&(_0x156982['stickiness']=String(_0x2b7468['stickiness'])),_0x156982;},_0x1c2c48['toObject']=function(_0x23c6b8,_0x519bab){_0x519bab||(_0x519bab={});var _0x191568={};if((_0x519bab['arrays']||_0x519bab['defaults'])&&(_0x191568['path']=[]),_0x519bab['defaults']&&(_0x191568['root']='',_0x191568['rootMain']=!0x1,_0x191568['rootGraveyard']=!0x1,_0x191568['stickiness']=''),null!=_0x23c6b8['root']&&_0x23c6b8['hasOwnProperty']('root')&&(_0x191568['root']=_0x23c6b8['root']),null!=_0x23c6b8['rootMain']&&_0x23c6b8['hasOwnProperty']('rootMain')&&(_0x191568['rootMain']=_0x23c6b8['rootMain']),null!=_0x23c6b8['rootGraveyard']&&_0x23c6b8['hasOwnProperty']('rootGraveyard')&&(_0x191568['rootGraveyard']=_0x23c6b8['rootGraveyard']),_0x23c6b8['path']&&_0x23c6b8['path']['length']){_0x191568['path']=[];for(var _0x301d84=0x0;_0x301d84<_0x23c6b8['path']['length'];++_0x301d84)_0x191568['path'][_0x301d84]=_0x23c6b8['path'][_0x301d84];}return null!=_0x23c6b8['stickiness']&&_0x23c6b8['hasOwnProperty']('stickiness')&&(_0x191568['stickiness']=_0x23c6b8['stickiness']),_0x191568;},_0x1c2c48['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1c2c48['getTypeUrl']=function(_0x4fae76){return void 0x0===_0x4fae76&&(_0x4fae76='type.googleapis.com'),_0x4fae76+'/Position';},_0x1c2c48;}()),_0x58c30e['Range']=(function(){function _0x3f76b9(_0x519e4f){if(_0x519e4f){for(var _0x111a5a=Object['keys'](_0x519e4f),_0x16cda4=0x0;_0x16cda4<_0x111a5a['length'];++_0x16cda4)null!=_0x519e4f[_0x111a5a[_0x16cda4]]&&(this[_0x111a5a[_0x16cda4]]=_0x519e4f[_0x111a5a[_0x16cda4]]);}}return _0x3f76b9['prototype']['start']=null,_0x3f76b9['prototype']['end']=null,_0x3f76b9['create']=function(_0x1351ba){return new _0x3f76b9(_0x1351ba);},_0x3f76b9['encode']=function(_0x19a16d,_0x588ef6){return _0x588ef6||(_0x588ef6=_0x2d4810['create']()),null!=_0x19a16d['start']&&Object['hasOwnProperty']['call'](_0x19a16d,'start')&&_0x58c30e['Position']['encode'](_0x19a16d['start'],_0x588ef6['uint32'](0xa)['fork']())['ldelim'](),null!=_0x19a16d['end']&&Object['hasOwnProperty']['call'](_0x19a16d,'end')&&_0x58c30e['Position']['encode'](_0x19a16d['end'],_0x588ef6['uint32'](0x12)['fork']())['ldelim'](),_0x588ef6;},_0x3f76b9['encodeDelimited']=function(_0x2a07ab,_0x4186e1){return this['encode'](_0x2a07ab,_0x4186e1)['ldelim']();},_0x3f76b9['decode']=function(_0x5f2378,_0x5baddc){_0x5f2378 instanceof _0x3e6c4b||(_0x5f2378=_0x3e6c4b['create'](_0x5f2378));for(var _0x6bb500=void 0x0===_0x5baddc?_0x5f2378['len']:_0x5f2378['pos']+_0x5baddc,_0x42abfd=new _0x58c30e['Range']();_0x5f2378['pos']<_0x6bb500;){var _0x124741=_0x5f2378['uint32']();switch(_0x124741>>>0x3){case 0x1:_0x42abfd['start']=_0x58c30e['Position']['decode'](_0x5f2378,_0x5f2378['uint32']());break;case 0x2:_0x42abfd['end']=_0x58c30e['Position']['decode'](_0x5f2378,_0x5f2378['uint32']());break;default:_0x5f2378['skipType'](0x7&_0x124741);}}return _0x42abfd;},_0x3f76b9['decodeDelimited']=function(_0x2cca23){return _0x2cca23 instanceof _0x3e6c4b||(_0x2cca23=new _0x3e6c4b(_0x2cca23)),this['decode'](_0x2cca23,_0x2cca23['uint32']());},_0x3f76b9['verify']=function(_0x500d5e){if('object'!=typeof _0x500d5e||null===_0x500d5e)return'object\x20expected';var _0x3591b6;if(null!=_0x500d5e['start']&&_0x500d5e['hasOwnProperty']('start')&&(_0x3591b6=_0x58c30e['Position']['verify'](_0x500d5e['start'])))return'start.'+_0x3591b6;if(null!=_0x500d5e['end']&&_0x500d5e['hasOwnProperty']('end')&&(_0x3591b6=_0x58c30e['Position']['verify'](_0x500d5e['end'])))return'end.'+_0x3591b6;return null;},_0x3f76b9['fromObject']=function(_0x540599){if(_0x540599 instanceof _0x58c30e['Range'])return _0x540599;var _0xf2daf8=new _0x58c30e['Range']();if(null!=_0x540599['start']){if('object'!=typeof _0x540599['start'])throw TypeError('.Range.start:\x20object\x20expected');_0xf2daf8['start']=_0x58c30e['Position']['fromObject'](_0x540599['start']);}if(null!=_0x540599['end']){if('object'!=typeof _0x540599['end'])throw TypeError('.Range.end:\x20object\x20expected');_0xf2daf8['end']=_0x58c30e['Position']['fromObject'](_0x540599['end']);}return _0xf2daf8;},_0x3f76b9['toObject']=function(_0x222a60,_0x8141b5){_0x8141b5||(_0x8141b5={});var _0x4088ba={};return _0x8141b5['defaults']&&(_0x4088ba['start']=null,_0x4088ba['end']=null),null!=_0x222a60['start']&&_0x222a60['hasOwnProperty']('start')&&(_0x4088ba['start']=_0x58c30e['Position']['toObject'](_0x222a60['start'],_0x8141b5)),null!=_0x222a60['end']&&_0x222a60['hasOwnProperty']('end')&&(_0x4088ba['end']=_0x58c30e['Position']['toObject'](_0x222a60['end'],_0x8141b5)),_0x4088ba;},_0x3f76b9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3f76b9['getTypeUrl']=function(_0x49b1e2){return void 0x0===_0x49b1e2&&(_0x49b1e2='type.googleapis.com'),_0x49b1e2+'/Range';},_0x3f76b9;}()),_0x58c30e['Element']=(function(){function _0x2bca59(_0x26e5e4){if(this['children']=[],this['attributesBoolean']={},_0x26e5e4){for(var _0x36188e=Object['keys'](_0x26e5e4),_0x55aece=0x0;_0x55aece<_0x36188e['length'];++_0x55aece)null!=_0x26e5e4[_0x36188e[_0x55aece]]&&(this[_0x36188e[_0x55aece]]=_0x26e5e4[_0x36188e[_0x55aece]]);}}return _0x2bca59['prototype']['name']='',_0x2bca59['prototype']['children']=_0x188bc5['emptyArray'],_0x2bca59['prototype']['data']='',_0x2bca59['prototype']['attributesBoolean']=_0x188bc5['emptyObject'],_0x2bca59['prototype']['attributesJson']='',_0x2bca59['create']=function(_0x1e5794){return new _0x2bca59(_0x1e5794);},_0x2bca59['encode']=function(_0x394a7d,_0x294c5b){if(_0x294c5b||(_0x294c5b=_0x2d4810['create']()),null!=_0x394a7d['name']&&Object['hasOwnProperty']['call'](_0x394a7d,'name')&&_0x294c5b['uint32'](0xa)['string'](_0x394a7d['name']),null!=_0x394a7d['children']&&_0x394a7d['children']['length']){for(var _0x5482d9=0x0;_0x5482d9<_0x394a7d['children']['length'];++_0x5482d9)_0x58c30e['Element']['encode'](_0x394a7d['children'][_0x5482d9],_0x294c5b['uint32'](0x12)['fork']())['ldelim']();}if(null!=_0x394a7d['data']&&Object['hasOwnProperty']['call'](_0x394a7d,'data')&&_0x294c5b['uint32'](0x1a)['string'](_0x394a7d['data']),null!=_0x394a7d['attributesBoolean']&&Object['hasOwnProperty']['call'](_0x394a7d,'attributesBoolean')){var _0x2d4e6f=Object['keys'](_0x394a7d['attributesBoolean']);for(_0x5482d9=0x0;_0x5482d9<_0x2d4e6f['length'];++_0x5482d9)_0x294c5b['uint32'](0x22)['fork']()['uint32'](0xa)['string'](_0x2d4e6f[_0x5482d9])['uint32'](0x10)['bool'](_0x394a7d['attributesBoolean'][_0x2d4e6f[_0x5482d9]])['ldelim']();}return null!=_0x394a7d['attributesJson']&&Object['hasOwnProperty']['call'](_0x394a7d,'attributesJson')&&_0x294c5b['uint32'](0x2a)['string'](_0x394a7d['attributesJson']),_0x294c5b;},_0x2bca59['encodeDelimited']=function(_0x1e2a01,_0x12c0c2){return this['encode'](_0x1e2a01,_0x12c0c2)['ldelim']();},_0x2bca59['decode']=function(_0x479fde,_0x3b7519){_0x479fde instanceof _0x3e6c4b||(_0x479fde=_0x3e6c4b['create'](_0x479fde));for(var _0x12fe95,_0x59c915,_0x6ad48a=void 0x0===_0x3b7519?_0x479fde['len']:_0x479fde['pos']+_0x3b7519,_0x32be8e=new _0x58c30e['Element']();_0x479fde['pos']<_0x6ad48a;){var _0x211a90=_0x479fde['uint32']();switch(_0x211a90>>>0x3){case 0x1:_0x32be8e['name']=_0x479fde['string']();break;case 0x2:_0x32be8e['children']&&_0x32be8e['children']['length']||(_0x32be8e['children']=[]),_0x32be8e['children']['push'](_0x58c30e['Element']['decode'](_0x479fde,_0x479fde['uint32']()));break;case 0x3:_0x32be8e['data']=_0x479fde['string']();break;case 0x4:_0x32be8e['attributesBoolean']===_0x188bc5['emptyObject']&&(_0x32be8e['attributesBoolean']={});var _0x17a83d=_0x479fde['uint32']()+_0x479fde['pos'];for(_0x12fe95='',_0x59c915=!0x1;_0x479fde['pos']<_0x17a83d;){var _0x2524cd=_0x479fde['uint32']();switch(_0x2524cd>>>0x3){case 0x1:_0x12fe95=_0x479fde['string']();break;case 0x2:_0x59c915=_0x479fde['bool']();break;default:_0x479fde['skipType'](0x7&_0x2524cd);}}_0x32be8e['attributesBoolean'][_0x12fe95]=_0x59c915;break;case 0x5:_0x32be8e['attributesJson']=_0x479fde['string']();break;default:_0x479fde['skipType'](0x7&_0x211a90);}}return _0x32be8e;},_0x2bca59['decodeDelimited']=function(_0x17be59){return _0x17be59 instanceof _0x3e6c4b||(_0x17be59=new _0x3e6c4b(_0x17be59)),this['decode'](_0x17be59,_0x17be59['uint32']());},_0x2bca59['verify']=function(_0x3fc0f6){if('object'!=typeof _0x3fc0f6||null===_0x3fc0f6)return'object\x20expected';if(null!=_0x3fc0f6['name']&&_0x3fc0f6['hasOwnProperty']('name')&&!_0x188bc5['isString'](_0x3fc0f6['name']))return'name:\x20string\x20expected';if(null!=_0x3fc0f6['children']&&_0x3fc0f6['hasOwnProperty']('children')){if(!Array['isArray'](_0x3fc0f6['children']))return'children:\x20array\x20expected';for(var _0x5a3e1b=0x0;_0x5a3e1b<_0x3fc0f6['children']['length'];++_0x5a3e1b){var _0x3ff239=_0x58c30e['Element']['verify'](_0x3fc0f6['children'][_0x5a3e1b]);if(_0x3ff239)return'children.'+_0x3ff239;}}if(null!=_0x3fc0f6['data']&&_0x3fc0f6['hasOwnProperty']('data')&&!_0x188bc5['isString'](_0x3fc0f6['data']))return'data:\x20string\x20expected';if(null!=_0x3fc0f6['attributesBoolean']&&_0x3fc0f6['hasOwnProperty']('attributesBoolean')){if(!_0x188bc5['isObject'](_0x3fc0f6['attributesBoolean']))return'attributesBoolean:\x20object\x20expected';var _0x50fa7f=Object['keys'](_0x3fc0f6['attributesBoolean']);for(_0x5a3e1b=0x0;_0x5a3e1b<_0x50fa7f['length'];++_0x5a3e1b)if('boolean'!=typeof _0x3fc0f6['attributesBoolean'][_0x50fa7f[_0x5a3e1b]])return'attributesBoolean:\x20boolean{k:string}\x20expected';}return null!=_0x3fc0f6['attributesJson']&&_0x3fc0f6['hasOwnProperty']('attributesJson')&&!_0x188bc5['isString'](_0x3fc0f6['attributesJson'])?'attributesJson:\x20string\x20expected':null;},_0x2bca59['fromObject']=function(_0x482664){if(_0x482664 instanceof _0x58c30e['Element'])return _0x482664;var _0x1e46a1=new _0x58c30e['Element']();if(null!=_0x482664['name']&&(_0x1e46a1['name']=String(_0x482664['name'])),_0x482664['children']){if(!Array['isArray'](_0x482664['children']))throw TypeError('.Element.children:\x20array\x20expected');_0x1e46a1['children']=[];for(var _0x358067=0x0;_0x358067<_0x482664['children']['length'];++_0x358067){if('object'!=typeof _0x482664['children'][_0x358067])throw TypeError('.Element.children:\x20object\x20expected');_0x1e46a1['children'][_0x358067]=_0x58c30e['Element']['fromObject'](_0x482664['children'][_0x358067]);}}if(null!=_0x482664['data']&&(_0x1e46a1['data']=String(_0x482664['data'])),_0x482664['attributesBoolean']){if('object'!=typeof _0x482664['attributesBoolean'])throw TypeError('.Element.attributesBoolean:\x20object\x20expected');_0x1e46a1['attributesBoolean']={};var _0x416e3b=Object['keys'](_0x482664['attributesBoolean']);for(_0x358067=0x0;_0x358067<_0x416e3b['length'];++_0x358067)_0x1e46a1['attributesBoolean'][_0x416e3b[_0x358067]]=Boolean(_0x482664['attributesBoolean'][_0x416e3b[_0x358067]]);}return null!=_0x482664['attributesJson']&&(_0x1e46a1['attributesJson']=String(_0x482664['attributesJson'])),_0x1e46a1;},_0x2bca59['toObject']=function(_0x16c03c,_0x39844e){_0x39844e||(_0x39844e={});var _0x1a5204,_0x21a80d={};if((_0x39844e['arrays']||_0x39844e['defaults'])&&(_0x21a80d['children']=[]),(_0x39844e['objects']||_0x39844e['defaults'])&&(_0x21a80d['attributesBoolean']={}),_0x39844e['defaults']&&(_0x21a80d['name']='',_0x21a80d['data']='',_0x21a80d['attributesJson']=''),null!=_0x16c03c['name']&&_0x16c03c['hasOwnProperty']('name')&&(_0x21a80d['name']=_0x16c03c['name']),_0x16c03c['children']&&_0x16c03c['children']['length']){_0x21a80d['children']=[];for(var _0x334e9e=0x0;_0x334e9e<_0x16c03c['children']['length'];++_0x334e9e)_0x21a80d['children'][_0x334e9e]=_0x58c30e['Element']['toObject'](_0x16c03c['children'][_0x334e9e],_0x39844e);}if(null!=_0x16c03c['data']&&_0x16c03c['hasOwnProperty']('data')&&(_0x21a80d['data']=_0x16c03c['data']),_0x16c03c['attributesBoolean']&&(_0x1a5204=Object['keys'](_0x16c03c['attributesBoolean']))['length']){_0x21a80d['attributesBoolean']={};for(_0x334e9e=0x0;_0x334e9e<_0x1a5204['length'];++_0x334e9e)_0x21a80d['attributesBoolean'][_0x1a5204[_0x334e9e]]=_0x16c03c['attributesBoolean'][_0x1a5204[_0x334e9e]];}return null!=_0x16c03c['attributesJson']&&_0x16c03c['hasOwnProperty']('attributesJson')&&(_0x21a80d['attributesJson']=_0x16c03c['attributesJson']),_0x21a80d;},_0x2bca59['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2bca59['getTypeUrl']=function(_0x1899d5){return void 0x0===_0x1899d5&&(_0x1899d5='type.googleapis.com'),_0x1899d5+'/Element';},_0x2bca59;}()),_0x58c30e;})());class ProtobufFactory{['_protobufRoot'];constructor(){this['_protobufRoot']=messages;}['getDescriptor'](_0x19a0ce){return new ProtobufDescriptor(this['_protobufRoot'][_0x19a0ce]);}}class ProtobufDescriptor{['_protobuf'];constructor(_0x43d2b0){this['_protobuf']=_0x43d2b0;}['compress'](_0x1a1cc0){const _0x3201bb=this['_protobuf']['verify'](_0x1a1cc0);if(_0x3201bb)throw Error(_0x3201bb);return this['_protobuf']['encode'](this['_protobuf']['create'](_0x1a1cc0))['finish']();}['decompress'](_0x18a84e){return this['_protobuf']['toObject'](this['_protobuf']['decode'](_0x18a84e),{'oneofs':!0x0});}}function getPositionShiftedBy(_0xfbf9ff,_0x2b646b){const _0x974c96=cloneDeep(_0xfbf9ff);return _0x974c96['path'][_0x974c96['path']['length']-0x1]+=_0x2b646b,_0x974c96;}function arePositionsEqual(_0x521988,_0x4a4048){return _0x521988['root']===_0x4a4048['root']&&isEqual(_0x521988['path'],_0x4a4048['path']);}function parsePositionBeforeCompression(_0x39a9ac){_mapPositions(_0x39a9ac,_0x25ffc7=>('main'==_0x25ffc7['root']?(_0x25ffc7['rootMain']=!0x0,delete _0x25ffc7['root']):'$graveyard'==_0x25ffc7['root']&&(_0x25ffc7['rootGraveyard']=!0x0,delete _0x25ffc7['root']),_0x25ffc7));}function parsePositionAfterCompression(_0x16a73e){_mapPositions(_0x16a73e,_0x52a3ff=>(_0x52a3ff['rootMain']?(_0x52a3ff['root']='main',delete _0x52a3ff['rootMain']):_0x52a3ff['rootGraveyard']&&(_0x52a3ff['root']='$graveyard',delete _0x52a3ff['rootGraveyard']),_0x52a3ff));}function _mapPositions(_0x12a886,_0x1de6ac){for(const _0x268351 in _0x12a886){const _0x5e6ade=_0x12a886[_0x268351];'nodes'!==_0x268351&&isObject$3(_0x5e6ade)&&(_0x5e6ade['path']&&(_0x5e6ade['root']||_0x5e6ade['rootMain']||_0x5e6ade['rootGraveyard'])?_0x12a886[_0x268351]=_0x1de6ac(_0x5e6ade):_mapPositions(_0x5e6ade,_0x1de6ac));}return _0x12a886;}class OperationCompressor{['_id'];['_operationName'];['_protobufDescriptor'];constructor(_0x20bb06,_0x2508e5,_0xcb9359){this['_id']=_0x20bb06,this['_operationName']=_0x2508e5,this['_protobufDescriptor']=_0xcb9359;}['compress'](_0x3e1e27,_0x39a385){const _0x49f0d9=_0x39a385['operations'][_0x39a385['index']++];return parsePositionBeforeCompression(_0x49f0d9),_0x3e1e27['buffers']['push'](this['_protobufDescriptor']['compress'](_0x49f0d9)),_0x3e1e27['types']['push'](this['_id']),!0x0;}['decompress'](_0x3f8203,_0x984304){_0x984304['typeIndex']++;const _0xd83189=_0x984304['buffers'][_0x984304['bufferIndex']++],_0x89de36=this['_protobufDescriptor']['decompress'](_0xd83189);parsePositionAfterCompression(_0x89de36),_0x89de36['__className']=this['_operationName'],_0x3f8203['push'](_0x89de36);}}class AttributeOperationCompressor extends OperationCompressor{['compress'](_0x4a5e69,_0x45959a){const _0x15f7c6=_0x45959a['operations'][_0x45959a['index']++];return this['_serializeOneOf']('oldValue',_0x15f7c6),this['_serializeOneOf']('newValue',_0x15f7c6),parsePositionBeforeCompression(_0x15f7c6),_0x4a5e69['buffers']['push'](this['_protobufDescriptor']['compress'](_0x15f7c6)),_0x4a5e69['types']['push'](this['_id']),!0x0;}['decompress'](_0x12a0b7,_0x46e963){_0x46e963['typeIndex']++;const _0x125dca=_0x46e963['buffers'][_0x46e963['bufferIndex']++],_0x39af40=this['_protobufDescriptor']['decompress'](_0x125dca);this['_deserializeOneOf']('oldValue',_0x39af40),this['_deserializeOneOf']('newValue',_0x39af40),parsePositionAfterCompression(_0x39af40),_0x39af40['__className']=this['_operationName'],_0x12a0b7['push'](_0x39af40);}['_serializeOneOf'](_0x2a9da7,_0x486480){const _0x21fe2c=_0x486480[_0x2a9da7];'boolean'==typeof _0x21fe2c?_0x486480[_0x2a9da7+'Boolean']=_0x21fe2c:_0x486480[_0x2a9da7+'Json']=JSON['stringify'](_0x21fe2c);}['_deserializeOneOf'](_0x4b17a7,_0x216ba4){const _0x4db71a=_0x4b17a7+'Json';_0x216ba4[_0x4db71a]?(_0x216ba4[_0x4b17a7]=JSON['parse'](_0x216ba4[_0x4db71a]),delete _0x216ba4[_0x4db71a]):(_0x216ba4[_0x4b17a7]=_0x216ba4[_0x4b17a7+'Boolean'],delete _0x216ba4[_0x4b17a7+'Boolean']);}}class InsertOperationCompressor extends OperationCompressor{['compress'](_0x36c892,_0x543fbd){const _0x4abe95=_0x543fbd['operations'][_0x543fbd['index']++];return this['_serializeNodesAttributes'](_0x4abe95['nodes']),parsePositionBeforeCompression(_0x4abe95),_0x36c892['buffers']['push'](this['_protobufDescriptor']['compress'](_0x4abe95)),_0x36c892['types']['push'](this['_id']),!0x0;}['decompress'](_0x56691b,_0x381ffb){_0x381ffb['typeIndex']++;const _0x33e858=_0x381ffb['buffers'][_0x381ffb['bufferIndex']++],_0x4a2f8f=this['_protobufDescriptor']['decompress'](_0x33e858);_0x4a2f8f['nodes']||(_0x4a2f8f['nodes']=[]),this['_deserializeNodesAttributes'](_0x4a2f8f['nodes']),parsePositionAfterCompression(_0x4a2f8f),_0x4a2f8f['__className']=this['_operationName'],_0x56691b['push'](_0x4a2f8f);}['_serializeNodesAttributes'](_0x503c10){for(const _0x3af10c of _0x503c10){if(_0x3af10c['attributes']){const _0x5b3c19=_0x3af10c['attributes'];this['_areValuesBoolean'](_0x5b3c19)?_0x3af10c['attributesBoolean']=_0x5b3c19:_0x3af10c['attributesJson']=JSON['stringify'](_0x5b3c19);}_0x3af10c['children']&&this['_serializeNodesAttributes'](_0x3af10c['children']);}}['_deserializeNodesAttributes'](_0x7fb46c){for(const _0x2003d4 of _0x7fb46c)(_0x2003d4['attributesBoolean']||_0x2003d4['attributesJson'])&&(_0x2003d4['attributesBoolean']?(_0x2003d4['attributes']=_0x2003d4['attributesBoolean'],delete _0x2003d4['attributesBoolean']):(_0x2003d4['attributes']=JSON['parse'](_0x2003d4['attributesJson']),delete _0x2003d4['attributesJson'])),_0x2003d4['children']&&this['_deserializeNodesAttributes'](_0x2003d4['children']);}['_areValuesBoolean'](_0x128bae){return Object['keys'](_0x128bae)['every'](_0x352ef7=>'boolean'==typeof _0x128bae[_0x352ef7]);}}class MarkerOperationCompressor extends OperationCompressor{['decompress'](_0x29d7d5,_0x42e292){super['decompress'](_0x29d7d5,_0x42e292);const _0x49d475=_0x29d7d5[_0x29d7d5['length']-0x1];_0x49d475['oldRange']||(_0x49d475['oldRange']=null),_0x49d475['newRange']||(_0x49d475['newRange']=null);}}class NoOperationCompressor extends OperationCompressor{['compress'](_0x10fa54,_0x2e0d04){return _0x2e0d04['index']++,_0x10fa54['types']['push'](this['_id']),!0x0;}['decompress'](_0x3fe355,_0x489f87){_0x489f87['typeIndex']++,_0x3fe355['push']({'__className':this['_operationName']});}}class AnnotationMarkerOperationCompressor extends MarkerOperationCompressor{['_omittedNamespace'];constructor(_0x461926,_0x3a5a17,_0x227f5b,_0x20a0b7){super(_0x461926,_0x3a5a17,_0x227f5b),this['_omittedNamespace']=_0x20a0b7+':';}['compress'](_0x5e216c,_0x5078e4){const _0x206521=_0x5078e4['operations'][_0x5078e4['index']];return!('MarkerOperation'!=_0x206521['__className']||!_0x206521['name']['startsWith'](this['_omittedNamespace']))&&(_0x206521['name']=_0x206521['name']['replace'](new RegExp('^'+this['_omittedNamespace']),''),super['compress'](_0x5e216c,_0x5078e4),!0x0);}['decompress'](_0x1c2d39,_0x48766c){super['decompress'](_0x1c2d39,_0x48766c);const _0x240b4e=_0x1c2d39[_0x1c2d39['length']-0x1];_0x240b4e['name']=this['_omittedNamespace']+_0x240b4e['name'];}}class ActionCompressor{['_id'];['_context'];constructor(_0x1048b7,_0x95d564){this['_id']=_0x1048b7,this['_context']=_0x95d564;}['compress'](_0x5b4277,_0x23febb){let _0x55cb68,_0x346895=_0x23febb['operations'][_0x23febb['index']],_0x1a83ff=_0x23febb['operations'][_0x23febb['index']+0x1];for(;_0x1a83ff&&this['_compareOperations'](_0x346895,_0x1a83ff);)_0x55cb68?(_0x55cb68=this['_combineNext'](_0x346895,_0x55cb68),_0x5b4277['types']['push'](0x0)):(_0x55cb68=cloneDeep(_0x346895),_0x5b4277['types']['push'](this['_id'])),_0x23febb['index']++,_0x346895=_0x23febb['operations'][_0x23febb['index']],_0x1a83ff=_0x23febb['operations'][_0x23febb['index']+0x1];return!!_0x55cb68&&(_0x55cb68=this['_combineNext'](_0x23febb['operations'][_0x23febb['index']++],_0x55cb68),_0x5b4277['types']['push'](0x0),_0x5b4277['buffers']['push'](this['_compressSingleOperation'](_0x55cb68)),!0x0);}['decompress'](_0x2c9a75,_0x36a94a){const _0x469492=this['_decompressSingleOperation'](_0x36a94a);for(;0x0==_0x36a94a['types'][_0x36a94a['typeIndex']];)_0x36a94a['typeIndex']++,_0x2c9a75['push'](this['_splitCurrent'](_0x469492));_0x2c9a75['push'](_0x469492);}}class TypingActionCompressor extends ActionCompressor{['_combineNext'](_0x17ed43,_0x3e4716){return _0x3e4716['nodes'][0x0]['data']+=_0x17ed43['nodes'][0x0]['data'],_0x3e4716;}['_splitCurrent'](_0x1e2c4b){const _0x4a80f3=cloneDeep(_0x1e2c4b),_0x206f57=_0x4a80f3['nodes'][0x0],_0x10305=_0x1e2c4b['nodes'][0x0],_0x51f75b=_0x10305['data'][Symbol['iterator']]()['next']()['value'],_0x36954f=_0x51f75b['length'];return _0x206f57['data']=_0x51f75b,_0x10305['data']=_0x10305['data']['substr'](_0x36954f),_0x1e2c4b['position']=getPositionShiftedBy(_0x1e2c4b['position'],_0x36954f),_0x4a80f3;}['_compareOperations'](_0x18a689,_0x3d665e){if(this['_checkOperation'](_0x18a689)&&this['_checkOperation'](_0x3d665e)){const _0xbb730e=_0x18a689['nodes'][0x0]['data']['length'],_0x588fc1=arePositionsEqual(getPositionShiftedBy(_0x18a689['position'],_0xbb730e),_0x3d665e['position']),_0x4fe3de=_0x18a689['nodes'][0x0],_0x52cc29=_0x3d665e['nodes'][0x0];return _0x588fc1&&this['_compareAttributes'](_0x4fe3de,_0x52cc29);}return!0x1;}['_compressSingleOperation'](_0x502745){const _0x2508c0={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('InsertOperation')['compress'](_0x2508c0,{'operations':[_0x502745],'index':0x0}),_0x2508c0['buffers'][0x0];}['_decompressSingleOperation'](_0x4c1a79){const _0x46cb50=[];return this['_context']['_getCompressorByName']('InsertOperation')['decompress'](_0x46cb50,_0x4c1a79),_0x46cb50[0x0];}['_checkOperation'](_0x219a3c){return'InsertOperation'==_0x219a3c['__className']&&0x1==_0x219a3c['nodes']['length']&&_0x219a3c['nodes'][0x0]['data']&&!_0x219a3c['wasUndone']&&0x1==Array['from'](_0x219a3c['nodes'][0x0]['data'])['length'];}['_compareAttributes'](_0x81b636,_0x39976e){const _0x7cdd8=Object['keys'](_0x81b636['attributes']||{}),_0x3935b9=Object['keys'](_0x39976e['attributes']||{});return _0x7cdd8['length']===_0x3935b9['length']&&_0x7cdd8['every'](_0x5b6e72=>_0x39976e['attributes'][_0x5b6e72]&&_0x39976e['attributes'][_0x5b6e72]===_0x81b636['attributes'][_0x5b6e72]);}}class DeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x1ae329,_0x2abfb0){return _0x2abfb0['howMany']++,_0x2abfb0['sourcePosition']=cloneDeep(_0x1ae329['sourcePosition']),_0x2abfb0;}['_splitCurrent'](_0x1899f0){const _0x4e3a34=cloneDeep(_0x1899f0);return _0x1899f0['howMany']--,_0x4e3a34['howMany']=0x1,_0x4e3a34['sourcePosition']=getPositionShiftedBy(_0x4e3a34['sourcePosition'],_0x1899f0['howMany']),_0x4e3a34;}['_compareOperations'](_0x7f3e4,_0x99d5d4){return!(!this['_checkOperation'](_0x7f3e4)||!this['_checkOperation'](_0x99d5d4))&&(arePositionsEqual(getPositionShiftedBy(_0x7f3e4['sourcePosition'],-0x1),_0x99d5d4['sourcePosition'])&&arePositionsEqual(_0x7f3e4['targetPosition'],_0x99d5d4['targetPosition']));}['_compressSingleOperation'](_0xd46b6f){const _0x3a502e={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x3a502e,{'operations':[_0xd46b6f],'index':0x0}),_0x3a502e['buffers'][0x0];}['_decompressSingleOperation'](_0x1b8427){const _0x41907a=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x41907a,_0x1b8427),_0x41907a[0x0];}['_checkOperation'](_0x194799){return'MoveOperation'==_0x194799['__className']&&'$graveyard'==_0x194799['targetPosition']['root']&&0x1==_0x194799['howMany']&&!_0x194799['wasUndone'];}}class ForwardDeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x14384d,_0x86a718){return _0x86a718['howMany']++,_0x86a718;}['_splitCurrent'](_0x42f5e6){const _0x3a46e9=cloneDeep(_0x42f5e6);return _0x3a46e9['howMany']=0x1,_0x42f5e6['howMany']--,_0x3a46e9;}['_compareOperations'](_0x3ee0c8,_0x68e9f9){return!(!this['_checkOperation'](_0x3ee0c8)||!this['_checkOperation'](_0x68e9f9))&&(arePositionsEqual(_0x3ee0c8['sourcePosition'],_0x68e9f9['sourcePosition'])&&arePositionsEqual(_0x3ee0c8['targetPosition'],_0x68e9f9['targetPosition']));}['_compressSingleOperation'](_0x59bcb1){const _0x363d85={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x363d85,{'operations':[_0x59bcb1],'index':0x0}),_0x363d85['buffers'][0x0];}['_decompressSingleOperation'](_0x176e03){const _0x3dee7e=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x3dee7e,_0x176e03),_0x3dee7e[0x0];}['_checkOperation'](_0x46b879){return'MoveOperation'==_0x46b879['__className']&&'$graveyard'==_0x46b879['targetPosition']['root']&&0x1==_0x46b879['howMany']&&!_0x46b879['wasUndone'];}}class UserSelectionActionCompressor extends ActionCompressor{['compress'](_0x5b7470,_0x40f2ba){if(!this['_compareOperations'](_0x40f2ba['operations'][_0x40f2ba['index']],_0x40f2ba['operations'][_0x40f2ba['index']+0x1]))return!0x1;const _0x2a55e4=_0x40f2ba['operations'][_0x40f2ba['index']++];return _0x2a55e4['oldRange']=null,_0x2a55e4['newRange']&&arePositionsEqual(_0x2a55e4['newRange']['start'],_0x2a55e4['newRange']['end'])&&(_0x2a55e4['newRange']['end']=null),_0x40f2ba['index']++,_0x5b7470['types']['push'](this['_id']),_0x5b7470['types']['push'](0x0),_0x5b7470['buffers']['push'](this['_compressSingleOperation'](_0x2a55e4)),!0x0;}['decompress'](_0x2f1dbd,_0x2b67c6){const _0x434747=this['_decompressSingleOperation'](_0x2b67c6);_0x434747['newRange']&&!_0x434747['newRange']['end']&&(_0x434747['newRange']['end']=cloneDeep(_0x434747['newRange']['start']));const _0x801f2d=cloneDeep(_0x434747);_0x801f2d['newRange']&&(_0x801f2d['newRange']['start']['stickiness']='toNone',_0x801f2d['newRange']['end']=cloneDeep(_0x801f2d['newRange']['start'])),_0x801f2d['name']='user:position:'+_0x801f2d['name']['split'](':')[0x2],_0x2b67c6['typeIndex']++,_0x2f1dbd['push'](_0x434747),_0x2f1dbd['push'](_0x801f2d);}['_compressSingleOperation'](_0xc0a274){const _0x1522f1={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MarkerOperation')['compress'](_0x1522f1,{'operations':[_0xc0a274],'index':0x0}),_0x1522f1['buffers'][0x0];}['_decompressSingleOperation'](_0x41659e){const _0x16ddf0=[];return this['_context']['_getCompressorByName']('MarkerOperation')['decompress'](_0x16ddf0,_0x41659e),_0x16ddf0[0x0];}['_compareOperations'](_0x583182,_0x300674){return!(!_0x583182||!_0x300674)&&('MarkerOperation'==_0x583182['__className']&&'MarkerOperation'==_0x300674['__className']&&!(!_0x583182['name']['startsWith']('user:')||!_0x300674['name']['startsWith']('user:')||_0x583182['name']==_0x300674['name']));}}class Compressor{['_compressorById'];['_compressorByName'];['_protobufFactory'];constructor(){this['_compressorById']=new Map(),this['_compressorByName']=new Map(),this['_protobufFactory']=new ProtobufFactory();const _0x51454e=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',_0x51454e,'comment')),this['_registerCompressor'](0x13,'SuggestionMarkerOperation',new AnnotationMarkerOperationCompressor(0x13,'MarkerOperation',_0x51454e,'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'](_0x309122){if(!_0x309122||!_0x309122[0x0])throw new CKEditorError('no-operations-provided',this);const _0x5d293a={'operations':_0x309122,'index':0x0},_0x3c68e0={'types':[],'buffers':[],'baseVersion':_0x309122[0x0]['baseVersion']};for(;_0x5d293a['index']<_0x5d293a['operations']['length'];){if(this['_getCompressorByName']('UserSelectionAction')['compress'](_0x3c68e0,_0x5d293a))continue;if(this['_getCompressorByName']('TypingAction')['compress'](_0x3c68e0,_0x5d293a))continue;if(this['_getCompressorByName']('DeletingAction')['compress'](_0x3c68e0,_0x5d293a))continue;if(this['_getCompressorByName']('ForwardDeletingAction')['compress'](_0x3c68e0,_0x5d293a))continue;if(this['_getCompressorByName']('CommentMarkerOperation')['compress'](_0x3c68e0,_0x5d293a))continue;if(this['_getCompressorByName']('SuggestionMarkerOperation')['compress'](_0x3c68e0,_0x5d293a))continue;const _0x1db9b4=_0x5d293a['operations'][_0x5d293a['index']]['__className'];this['_getCompressorByName'](_0x1db9b4)['compress'](_0x3c68e0,_0x5d293a);}return _0x3c68e0;}['decompress'](_0x160acb){const _0x3179ae=[],_0x4d207f={'types':_0x160acb['types'],'buffers':_0x160acb['buffers'],'baseVersion':_0x160acb['baseVersion'],'typeIndex':0x0,'bufferIndex':0x0};for(;_0x4d207f['typeIndex']<_0x4d207f['types']['length'];){const _0x79deb2=_0x4d207f['types'][_0x4d207f['typeIndex']],_0x203d0f=this['_compressorById']['get'](_0x79deb2);if(!_0x203d0f)throw new CKEditorError('decompress-compressor-not-found',this,{'type':_0x79deb2});_0x203d0f['decompress'](_0x3179ae,_0x4d207f);}return _0x3179ae['forEach']((_0x3afc1c,_0x25b6bd)=>_0x3afc1c['baseVersion']=_0x160acb['baseVersion']+_0x25b6bd),_0x3179ae;}['_getCompressorByName'](_0x8f50b){return this['_compressorByName']['get'](_0x8f50b);}['_registerOperationCompressor'](_0x49fadb,_0x26a546,_0x15aca6){const _0x979247=new _0x15aca6(_0x49fadb,_0x26a546,this['_protobufFactory']['getDescriptor'](_0x26a546));this['_registerCompressor'](_0x49fadb,_0x26a546,_0x979247);}['_registerActionCompressor'](_0x4703f4,_0x4b1ec4,_0x5c3926){const _0x2e890a=new _0x5c3926(_0x4703f4,this);this['_registerCompressor'](_0x4703f4,_0x4b1ec4,_0x2e890a);}['_registerCompressor'](_0x435503,_0x40c72b,_0xda25be){this['_compressorById']['set'](_0x435503,_0xda25be),this['_compressorByName']['set'](_0x40c72b,_0xda25be);}}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 _0x461cd8=this['serverHistory']['getOperations']();for(let _0x222305=_0x461cd8['length']-0x1;_0x222305>=0x0;_0x222305--){const _0x18a691=_0x461cd8[_0x222305];if(!this['_disconnectionOperations']['has'](_0x18a691))return _0x18a691['baseVersion']+0x1-this['_offset'];}return 0x0;}constructor(_0x3de8f2){if(super(_0x3de8f2),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 _0x328bf2=_0x3de8f2['config']['get']('cloudServices.bundleVersion')||_0x53d302;this['_service']=new RealTimeCollaborationClient['CollaborativeEditingService'](_0x328bf2,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 _0x97c87d=this['editor'],_0x43eff6=_0x97c87d['plugins']['get'](Users),_0x85350a=_0x97c87d['plugins']['get'](WebSocketGateway);this['listenTo'](_0x43eff6,'getOperationAuthor',(_0x1bea65,_0x3a0a71)=>{const _0x4f98ad=_0x3a0a71[0x0];_0x4f98ad['_authorId']&&(_0x1bea65['return']=_0x43eff6['getUser'](_0x4f98ad['_authorId']),_0x1bea65['stop']()),null===_0x4f98ad['_authorId']&&(_0x1bea65['return']=null,_0x1bea65['stop']());},{'priority':'high'}),this['listenTo'](_0x97c87d['model']['document']['selection'],'change:range',(_0x7d2d5d,_0x4118a4)=>{_0x4118a4['directChange']&&this['_refreshUserSelectionMarkers']();}),this['listenTo'](_0x97c87d['editing']['view'],'change:hasDomSelection',()=>{this['_refreshUserSelectionMarkers']();}),this['_initThrowingOnDataSet'](),_0x97c87d['model']['on']('applyOperation',(_0x47fd64,_0x52d58c)=>{const _0x5c84aa=_0x52d58c[0x0];_0x5c84aa['isDocumentOperation']&&(this['_saveOperationInBuffer'](_0x5c84aa),this['_shouldSendUpdate']()&&this['_sendBufferedOperationsDelayed']());}),this['_setUpDataInit'](),this['bind']('_isEditingAllowed')['to'](_0x85350a,'state',this,'_hasSynchronizationProblem',(_0x386619,_0x2dd78d)=>'connected'===_0x386619&&!_0x2dd78d),this['on']('change:_isEditingAllowed',()=>{this['_isEditingAllowed']?_0x97c87d['disableReadOnlyMode']('rtc-offline'):_0x97c87d['enableReadOnlyMode']('rtc-offline');}),this['_isEditingAllowed']?_0x97c87d['disableReadOnlyMode']('rtc-offline'):_0x97c87d['enableReadOnlyMode']('rtc-offline'),this['set']('_isConnected',!0x1);}async['reconnect'](){const _0xbdcff3=this['editor']['plugins']['get'](Sessions),_0x5125d1=this['editor']['plugins']['get'](WebSocketGateway);try{this['_isPendingUpdate']=!0x0,_0xbdcff3['unregister'](this['_channelId']);const _0x24a414=await this['_service']['reconnect'](_0x5125d1['connection'],this['lastSyncVersion']);await this['_handleReconnectionResponse'](_0x24a414)&&(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());const _0x3e9861=await this['_service']['getConnectedSessions']();_0xbdcff3['register'](this['_channelId'],_0x3e9861),this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}catch(_0x53058e){if(isSessionNotExistingError(_0x53058e)&&this['sessionId'])await this['_connectAfterSessionHasBeenFlushed']();else{if(isBaseVersionMismatchError(_0x53058e)){const _0x553a8c=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'](_0x553a8c);}else{if(!(_0x53058e instanceof ReconnectionError))throw _0x53058e;this['_handleReconnectionError']();}}}}['destroy'](){const _0x519fff=this['editor']['plugins']['get'](WebSocketGateway),_0x1e699c=this['editor']['plugins']['get'](Sessions);this['editor']['enableReadOnlyMode']('rtc-destroyed'),_0x1e699c['channelSessions']['has'](this['_channelId'])&&_0x1e699c['unregister'](this['_channelId']),_0x519fff['removeFromReconnectionStack'](this),this['_disconnectService'](),super['destroy']();}async['_handleReconnectionResponse'](_0x224423){if(this['sessionId']!==_0x224423['sessionId']&&this['_lastSyncedOperationId']!==_0x224423['lastOperationId'])throw new ReconnectionError();return this['sessionId']=_0x224423['sessionId'],this['_handleServerResponse']([],{..._0x224423,'wereChangesApplied':!0x1,'data':_0x224423['data']},'reconnect');}async['_connectService'](_0x4d064d,_0x64ae81=!0x1){const {connection:_0x452b3c}=this['editor']['plugins']['get'](WebSocketGateway);RealTimeCollaborationClient['CollaborativeEditingService']['getConnectedSessions'](_0x452b3c,this['_channelId'])['then'](_0x180da4=>this['_initSessionsHandling'](_0x180da4))['catch'](_0x57414c=>{this['_crash']('realtimecollaborationclient-init-session-connection-error',_0x57414c);}),this['listenTo'](this['_service'],'operationsReceived',this['_handleReceivedOperations']['bind'](this)),this['listenTo'](this['_service'],'error',(_0x2d11d9,_0x5c16df)=>{this['_crash']('realtimecollaborationclient-init-service-internal-error',_0x5c16df);}),this['listenTo'](this['_service'],'disconnected',()=>{this['_isConnected']=!0x1;});const _0x33fe40=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x4d064d);this['_isPendingUpdate']=!0x0;const _0x554cf3=await this['_service']['connect'](_0x452b3c,this['_compressOperations'](_0x4d064d),_0x33fe40);if(this['sessionId']=_0x554cf3['sessionId'],_0x64ae81){if(!_0x554cf3['wereChangesApplied'])return void this['_handleReconnectionError']();this['_isPendingUpdate']=!0x1,this['_clearPendingAction'](),this['serverHistory']['reset'](),this['_offset']=_0x554cf3['offset'],this['serverHistory']['version']=this['_offset'],await this['_handleServerResponse'](_0x4d064d,_0x554cf3,'reconnection:\x20flushed\x20session');}else await this['_handleInitialConnectionData'](_0x554cf3,_0x4d064d);this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}['_handleSendingSelectionMarkers'](){const _0x3d8fb6=this['editor']['plugins']['get'](Sessions),_0x4dc019=this['editor']['plugins']['get'](UserMarkers),_0xd840ff=_0x3d8fb6['channelSessions']['get'](this['_channelId']);_0xd840ff&&_0xd840ff['length']>0x1?_0x4dc019['createUserMarkerOperations']():this['listenTo'](_0x3d8fb6,'sessionAdd:'+this['_channelId'],()=>{0x2===_0x3d8fb6['channelSessions']['get'](this['_channelId'])['length']&&_0x4dc019['createUserMarkerOperations']();});}async['_handleReceivedOperations'](_0x23d98e,_0xeee307,_0x4dd819,_0x1ef324){if(!this['_isPendingUpdate']&&this['_document']['version']==_0xeee307){const _0x43cc56=this['_decompressOperations'](_0x4dd819,_0x1ef324);await this['_fetchMissingUsers'](_0x43cc56),this['_handleExternalOperations'](_0x43cc56,_0xeee307,_0x4dd819['lastOperationId'])||this['_crash']('realtimecollaborationclient-init-service-incorrect-server-operation');}}async['_connectAfterSessionHasBeenFlushed'](){this['_disconnectService']();const {locale:_0x20a986}=this['editor'];let _0x5baf0a;try{_0x5baf0a=await this['_service']['getDocumentDetails']();}catch{const _0x2e1440=getTranslation$6(_0x20a986,'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'](_0x2e1440);}const _0xb2469d=_0x5baf0a['currentDocumentSession']||_0x5baf0a['lastDocumentSession'];if(this['_lastSyncedOperationId']!==_0xb2469d['lastOperationId']){const _0x8f4480=getTranslation$6(_0x20a986,'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'](_0x8f4480);}await this['_connectService'](this['editor']['model']['document']['history']['getOperations'](),!0x0);}['_disconnectService'](){this['_service']['disconnect'](),this['_bufferedOperations']=[],clearTimeout(this['_sendBufferedOperationsDelayId']),this['stopListening'](this['_service']);}['_initSessionsHandling'](_0x4360d9){const _0x169d6c=this['editor']['plugins']['get'](Sessions);this['listenTo'](_0x169d6c,'sessionAdd:'+this['_channelId'],(_0x34a0b3,{session:_0x3650e5})=>{if(_0x3650e5['id']===_0x169d6c['mySessionId']){_0x34a0b3['off']();const _0x5dad9a=this['editor']['plugins']['has']('CommentsOnly')&&this['editor']['plugins']['get']('CommentsOnly');let _0x177aba=_0x3650e5['permissions'];_0x5dad9a&&_0x5dad9a['isEnabled']&&(_0x177aba=_0x177aba['filter'](_0x4ec806=>'document:write'!==_0x4ec806)),this['editor']['plugins']['get']('Permissions')['setPermissions'](_0x177aba,this['_channelId']);}}),_0x169d6c['register'](this['_channelId'],_0x4360d9);}['_initThrowingOnDataSet'](){const _0x48fe6f=this['editor']['data']['set'];this['editor']['data']['set']=(..._0x1f29c5)=>{if(!_0x1f29c5[_0x1f29c5['length']-0x1]['suppressErrorInCollaboration'])throw new CKEditorError('realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration',this);_0x48fe6f['apply'](this['editor']['data'],_0x1f29c5);};}['_setUpDataInit'](){this['editor']['data']['on']('init',(_0x4040b0,[_0x18a3a8])=>{if(this['_document']['version'])throw new CKEditorError('realtimecollaborationclient-init-document-already-initialized',this);_0x4040b0['stop'](),this['_setPendingAction']();const _0x15555d=this['editor']['config']['get']('rootsAttributes'),_0x5b4547=this['_getOperationsFromInitData'](_0x18a3a8,_0x15555d);0x0==_0x5b4547['length']&&_0x5b4547['push'](new NoOperation(0x0)),_0x4040b0['return']=this['_connectService'](_0x5b4547)['then'](()=>{this['editor']['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),this['editor']['data']['fire']('ready');})['catch'](_0x2b2e19=>this['_crash']('realtimecollaborationclient-init-connection-failed',_0x2b2e19))['finally'](()=>this['_clearPendingAction']());},{'priority':'high'}),this['editor']['on']('loadRoot',async(_0x2acff4,[_0x45a182,_0x418e6d])=>{_0x2acff4['stop']();const _0x54761c=this['editor']['model']['document']['getRoot'](_0x45a182);if(!this['_knownRootNames']['has'](_0x45a182)){const _0x45b43a=_0x418e6d&&_0x418e6d['data']?_0x418e6d['data']:'',_0x343971=_0x418e6d&&_0x418e6d['attributes']?_0x418e6d['attributes']:{};await this['_loadRoot'](_0x45a182,_0x45b43a,_0x343971);}this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x54761c['_isLoaded']=!0x0,this['editor']['model']['document']['differ']['_bufferRootLoad'](_0x54761c);});},{'priority':'high'});}async['_fetchMissingUsers'](_0x5e00d4){const _0x2f5b18=this['editor']['plugins']['get'](Users),{connection:_0x263add}=this['editor']['plugins']['get'](WebSocketGateway),_0x5e58a0=new Set();for(const _0x32e367 of _0x5e00d4){const _0x1b33fa=_0x32e367['_authorId'];_0x1b33fa&&!_0x2f5b18['getUser'](_0x1b33fa)&&_0x5e58a0['add'](_0x1b33fa);}if(0x0===_0x5e58a0['size'])return;const _0x230aa5=await User['getMany'](_0x263add,Array['from'](_0x5e58a0));for(const _0x5867c4 of _0x230aa5)_0x2f5b18['getUser'](_0x5867c4['id'])||_0x2f5b18['addUser'](_0x5867c4);}['_getOperationsFromInitData'](_0x1bcad5,_0x5c0951={}){const _0x34da44=this['editor']['model'],_0x23dfb6=[];let _0x3ada81=0x0;const _0x519fbb='string'==typeof _0x1bcad5?{'main':_0x1bcad5}:_0x1bcad5;for(const _0x5c47b0 of Object['keys'](_0x519fbb)){if(!this['_document']['roots']['has'](_0x5c47b0))throw new CKEditorError('realtimecollaborationclient-init-non-existent-root',this);const _0x4f730d=this['editor']['data']['parse'](_0x519fbb[_0x5c47b0]),_0x4c55b2=this['_document']['getRoot'](_0x5c47b0),_0x186ff1=new InsertOperation(_0x34da44['createPositionAt'](_0x4c55b2,0x0),_0x4f730d,_0x3ada81++);_0x23dfb6['push'](_0x186ff1);for(const [_0x121417,_0x1472ed]of _0x4f730d['markers']){const _0x552110=_0x34da44['createRange'](_0x34da44['createPositionFromPath'](_0x4c55b2,_0x1472ed['start']['path']['slice']()),_0x34da44['createPositionFromPath'](_0x4c55b2,_0x1472ed['end']['path']['slice']())),_0x455d50=new MarkerOperation(_0x121417,null,_0x552110,_0x34da44['markers'],!0x0,_0x3ada81++);_0x23dfb6['push'](_0x455d50);}}if(_0x5c0951)for(const [_0x1fc144,_0xb73014]of Object['entries'](_0x5c0951)){const _0x1469ca=_0x34da44['document']['getRoot'](_0x1fc144);if(!_0x1469ca)throw new CKEditorError('multi-root-editor-root-attributes-no-root',null);for(const [_0x1d259b,_0x5afa34]of Object['entries'](_0xb73014))if(null!==_0x5afa34){const _0x423adc=new RootAttributeOperation(_0x1469ca,_0x1d259b,null,_0x5afa34,_0x3ada81++);_0x23dfb6['push'](_0x423adc);}}return _0x23dfb6;}async['_loadRoot'](_0x32bd3c,_0x2002b8,_0xe8c60){this['_getOperationsFromInitData']({[_0x32bd3c]:_0x2002b8},{[_0x32bd3c]:_0xe8c60})['forEach']((_0x31e940,_0x3b068f)=>{_0x31e940['baseVersion']=this['_document']['version']+_0x3b068f,_0x31e940['_isInit']=!0x0,this['_saveOperationInBuffer'](_0x31e940);}),this['_sendBufferedOperationsDelayed'](),await this['_waitUntilSynced']();}async['_handleInitialConnectionData'](_0x59a9f8,_0x5104cc){let _0x5878de;this['_offset']=_0x59a9f8['offset'];const _0x441406=_0x59a9f8['wereChangesApplied']&&!_0x59a9f8['initData'],_0x4450ee=_0x441406?0x0:_0x59a9f8['data']['baseVersion'];if(_0x5104cc['forEach'](_0x340e99=>{_0x340e99['_isInit']=!0x0,_0x340e99['createdAt']=_0x59a9f8['sessionCreatedAt'],_0x340e99['_authorId']=null;}),_0x441406)_0x5878de=_0x5104cc,this['_applyOperationsSet'](_0x5878de,_0x441406);else{if(_0x59a9f8['initData']){const _0x3cb08c=this['_getOperationsFromInitData'](_0x59a9f8['initData']);this['_document']['history']['version']=-_0x3cb08c['length'],_0x3cb08c['forEach'](_0x4edd=>{_0x4edd['baseVersion']-=_0x3cb08c['length'],_0x4edd['createdAt']=_0x59a9f8['sessionCreatedAt'],_0x4edd['_isInit']=!0x0,_0x4edd['_authorId']=null;}),this['_applyOperationsSet'](_0x3cb08c,!0x0),this['serverHistory']['version']=-_0x3cb08c['length']+this['_offset'],this['_updateServerHistory'](_0x3cb08c);}this['_document']['history']['version']=_0x4450ee,_0x5878de=this['_decompressOperations'](_0x59a9f8['data'],_0x59a9f8['metadata']),await this['_fetchMissingUsers'](_0x5878de),this['_applyOperationsSet'](_0x5878de,_0x441406);}_0x59a9f8['lastOperationId']&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x5878de,_0x59a9f8['lastOperationId']),this['_lastSyncedOperationId']=_0x59a9f8['lastOperationId']),this['serverHistory']['version']=_0x4450ee+this['_offset'],this['_updateServerHistory'](_0x5878de),_0x5104cc['filter'](_0xd941b6=>{const _0x18980f=this['_getAffectedRoot'](_0xd941b6);return _0x18980f&&!this['_knownRootNames']['has'](_0x18980f);})['forEach']((_0x375008,_0x110309)=>{_0x375008['baseVersion']=this['_document']['version']+_0x110309,this['_saveOperationInBuffer'](_0x375008);}),this['_shouldSendUpdate']()?(this['_currentBufferDelay']=0x0,this['_sendBufferedOperationsDelayed'](!0x0),await this['_waitUntilSynced']()):(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());}['_crash'](_0x59ab1f,_0x37a05f){const _0x53527c=_0x37a05f&&_0x37a05f['message'];if(_0x53527c&&_0x53527c['startsWith']('realtimecollaborationclient'))throw _0x37a05f;const _0x4a6a34=this['editor']['plugins']['get'](WebSocketGateway);throw this['_isPendingUpdate']=!0x0,_0x4a6a34['disconnect'](),this['editor']['enableReadOnlyMode']('realtimecollaborationclient-error'),new CKEditorError(_0x59ab1f,this['editor'],_0x53527c?{'originalError':_0x53527c}:void 0x0);}['_saveOperationInBuffer'](_0x445b49){this['_knownOperations']['has'](_0x445b49)||(this['_knownOperations']['add'](_0x445b49),this['_bufferedOperations']['push'](_0x445b49),this['_pendingAction']||'marker'==_0x445b49['type']&&!_0x445b49['affectsData']||this['_setPendingAction']());}['_sendBufferedOperationsDelayed'](_0x1b8dc2=!0x1){!_0x1b8dc2&&this['_isPendingUpdate']||(this['_isPendingUpdate']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_sendBufferedOperationsDelayId']=setTimeout(()=>{this['_sendBufferedOperations']()['then'](_0x210c2f=>{_0x210c2f&&(this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1);})['catch'](_0x150409=>{this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1,isDisconnectionError$3(_0x150409)||this['_crash'](_0x150409['message'],_0x150409);});},this['_currentBufferDelay']));}['_waitUntilSynced'](){return new Promise(_0x3d7a4a=>{this['on']('change:_isPendingUpdate',()=>{_0x3d7a4a();});});}async['_sendBufferedOperations'](){const _0xdc01b6=this['editor']['plugins']['get'](UserMarkers);if(this['_shouldSendSelectionUpdate']()&&(_0xdc01b6['createUserMarkerOperations'](),this['_hasSelectionChanged']=!0x1),!this['_shouldSendUpdate']())return!0x0;const _0x4f3a1b=[...this['_bufferedOperations']];for(const _0x879377 of _0x4f3a1b)_0x879377['wasUndone']=this['_document']['history']['isUndoneOperation'](_0x879377);const _0x5ac0d4=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x4f3a1b),_0x3cbc3c=requestCount++,_0x19644b=this['_compressOperations'](_0x4f3a1b),_0x1127fc=await this['_service']['sendOperations'](_0x19644b,_0x19644b['baseVersion'],_0x5ac0d4);try{return await this['_handleServerResponse'](_0x4f3a1b,_0x1127fc,_0x3cbc3c);}catch(_0xb22ae9){return this['_crash']('realtimecollaborationclient-sendbufferedoperations',_0xb22ae9);}}async['_handleServerResponse'](_0x160edd,_0x512d2c,_0x46e019){if('error'in _0x512d2c)throw _0x512d2c['error'];let _0x49c046=!0x1;if(_0x512d2c['wereChangesApplied']){_0x512d2c['lastOperationId']&&(this['_lastSyncedOperationId']=_0x512d2c['lastOperationId']),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x9d6a96=>!_0x160edd['includes'](_0x9d6a96));for(const _0x4cfda1 of _0x160edd)_0x4cfda1['createdAt']='lastOperationAcceptedAt'in _0x512d2c&&_0x512d2c['lastOperationAcceptedAt']||void 0x0;updateBaseVersions(_0x160edd,_0x512d2c['version']-_0x160edd['length']),this['_updateServerHistory'](_0x160edd);const _0xcb8249=_0x160edd['filter'](_0x4e60d3=>{if(!_0x4e60d3['_isInit'])return!0x1;const _0x1189e6=this['_getAffectedRoot'](_0x4e60d3);return _0x1189e6&&!this['_knownRootNames']['has'](_0x1189e6);});updateBaseVersions(_0xcb8249,this['_document']['version']),this['_applyOperationsSet'](_0xcb8249),_0x49c046=!0x0,this['_currentBufferDelay']=this['_baseBufferDelay'];}else{const _0x1f73b0=this['_decompressOperations'](_0x512d2c['data'],_0x512d2c['metadata'])['filter'](_0x172600=>_0x172600['baseVersion']>=this['_lastServerVersion']);_0x1f73b0['forEach'](_0x52a54e=>this['_addKnownRoot'](_0x52a54e)),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x27d886=>!_0x27d886['_isInit']||!this['_knownRootNames']['has'](this['_getAffectedRoot'](_0x27d886))),this['_bufferedOperations']['length']&&updateBaseVersions(this['_bufferedOperations'],this['_bufferedOperations'][0x0]['baseVersion']),await this['_fetchMissingUsers'](_0x1f73b0),_0x49c046=this['_handleExternalOperations'](_0x1f73b0,_0x512d2c['version'],_0x512d2c['lastOperationId']),this['_currentBufferDelay']=Math['round'](this['_currentBufferDelay']/0x2);}return _0x49c046?!this['_shouldSendUpdate']()||(this['_sendBufferedOperationsDelayed'](!0x0),!0x1):this['_crash']('realtimecollaborationclient-handleserverresponse');}['_handleExternalOperations'](_0x361ed6,_0x23df74,_0x2290a2){try{const _0x3cf664={'document':this['_document'],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x19a0ba,operationsB:_0x172252,originalOperations:_0x2843bb}=transformOperationSets(_0x361ed6,this['_bufferedOperations'],_0x3cf664);updateBaseVersions(_0x19a0ba,this['_document']['version']),updateBaseVersions(_0x172252,_0x23df74);for(const _0x43753c of _0x19a0ba){const _0x4015fd=_0x2843bb['get'](_0x43753c);_0x43753c['_authorId']=_0x4015fd?_0x4015fd['_authorId']:null;}_0x2290a2&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x361ed6,_0x2290a2),this['_lastSyncedOperationId']=_0x2290a2),this['_bufferedOperations']=[..._0x172252],this['_applyOperationsSet'](_0x19a0ba),this['_updateServerHistory'](_0x361ed6);}catch(_0x47ed54){return console['error'](_0x47ed54),!0x1;}return!0x0;}['_applyOperationsSet'](_0x5c3a47,_0x221706=!0x1){this['editor']['model']['enqueueChange']({'isUndoable':!0x1,'isLocal':!0x1},_0x1397ba=>{for(const _0x312164 of _0x5c3a47)this['_knownOperations']['add'](_0x312164),this['_addKnownRoot'](_0x312164),_0x1397ba['batch']['addOperation'](_0x312164),this['editor']['model']['applyOperation'](_0x312164);});}['_addKnownRoot'](_0x266274){const _0x32775b=this['_getAffectedRoot'](_0x266274);_0x32775b&&this['_knownRootNames']['add'](_0x32775b);}['_getAffectedRoot'](_0x23c7d6){let _0x4e8c17,_0x3c9cf6;switch(_0x23c7d6['type']){case'insert':_0x4e8c17=_0x23c7d6['position']['root'];break;case'marker':if(_0x3c9cf6=_0x23c7d6['newRange'],!_0x3c9cf6)return null;_0x4e8c17=_0x3c9cf6['root'];break;case'addRootAttribute':_0x4e8c17=_0x23c7d6['root'];break;case'addRoot':_0x4e8c17=_0x23c7d6['affectedSelectable'];break;case'move':_0x4e8c17=_0x23c7d6['targetPosition']['root'];break;default:return null;}return _0x4e8c17['rootName'];}['_updateServerHistory'](_0x1a3f87){_0x1a3f87['forEach'](_0x32f67b=>{const _0x41896d=_0x32f67b['clone']();_0x41896d['_authorId']=_0x32f67b['_authorId'],_0x41896d['_isInit']=!!_0x32f67b['_isInit'],_0x41896d['createdAt']=_0x32f67b['createdAt'],_0x41896d['baseVersion']+=this['_offset'],_0x32f67b['_isDisconnection']&&this['_disconnectionOperations']['add'](_0x41896d),this['serverHistory']['addOperation'](_0x41896d);});}['_handleReconnectionError'](_0x23dd7f){const _0x2a44d6=this['editor']['plugins']['get']('Notification'),_0x2ae577=this['editor']['locale'];_0x23dd7f||(_0x23dd7f=getTranslation$6(_0x2ae577,'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.')),_0x2a44d6['showWarning'](_0x23dd7f,{'title':getTranslation$6(_0x2ae577,'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'](_0x3d3f1a){const _0x135cd8=_0x3d3f1a['map'](_0x5e178d=>_0x5e178d['toJSON']());return this['_compressor']['compress'](_0x135cd8);}['_decompressOperations'](_0x1a7a2a,_0x5d48d0){return this['_compressor']['decompress'](_0x1a7a2a)['map']((_0x17ce55,_0x5dc84d)=>{const _0x2aec8d='init'==_0x5d48d0[_0x5dc84d]['type'];if('InsertOperation'==_0x17ce55['__className']){const _0xe53d16=_0x17ce55['position']['root'];!this['_document']['getRoot'](_0xe53d16)&&(this['_document']['createRoot']('$root',_0xe53d16)['_isAttached']=!0x1);}const _0x488819=OperationFactory['fromJSON'](_0x17ce55,this['_document']);return _0x488819['wasUndone']=_0x17ce55['wasUndone'],_0x488819['_isInit']=_0x2aec8d,_0x488819['_authorId']=_0x2aec8d?null:_0x5d48d0[_0x5dc84d]['userId'],_0x488819['_isDisconnection']='cs:removeUser'===_0x5d48d0[_0x5dc84d]['type'],_0x488819['createdAt']=_0x5d48d0[_0x5dc84d]['createdAt'],_0x488819;});}['_refreshUserSelectionMarkers'](){this['_hasSelectionChanged']=!0x0,this['_shouldSendSelectionUpdate']()?this['_sendBufferedOperationsDelayed']():this['_hasSelectionChanged']=!0x1;}['_shouldSendSelectionUpdate'](){const _0x4b619a=this['editor']['plugins']['get'](Sessions)['channelSessions']['get'](this['_channelId']);return!this['editor']['isReadOnly']&&!!_0x4b619a&&_0x4b619a['length']>0x1&&this['_hasSelectionChanged'];}['_shouldSendUpdate'](){return this['_bufferedOperations']['length']>0x0||this['_shouldSendSelectionUpdate']();}}class ReconnectionError extends Error{}function updateBaseVersions(_0x5b4d43,_0x463a3a){for(const _0x5f27db of _0x5b4d43)_0x5f27db['baseVersion']=_0x463a3a++;}function isSessionNotExistingError(_0x1914e4){return'404'===_0x1914e4['code'];}function isBaseVersionMismatchError(_0x158833){return'409'===_0x158833['code'];}function isDisconnectionError$3(_0x5386f2){return _0x5386f2['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x5386f2['message']['startsWith']('cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.')||_0x5386f2['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class OperationIdentifier{['_ignoredOperations'];['_operationToId'];constructor(_0x256591){this['_ignoredOperations']=_0x256591,this['_operationToId']=new WeakMap();}['getIdOfTheLastOperation'](_0x35877b){let _0x321903=_0x35877b['length'];for(;_0x321903--;){const _0x406b30=_0x35877b[_0x321903];if(!this['_ignoredOperations']['has'](_0x406b30)){if(!this['_operationToId']['has'](_0x406b30)){const _0x2a7d50=uid()['slice'](0x1,0x12);this['_operationToId']['set'](_0x406b30,_0x2a7d50);}return this['_operationToId']['get'](_0x406b30);}}}['setIdForTheLastOperation'](_0x1082c2,_0x2e36b9){if(!_0x2e36b9)return;let _0x57a707=_0x1082c2['length'];for(;_0x57a707--;){const _0x5154c5=_0x1082c2[_0x57a707];this['_ignoredOperations']['has'](_0x5154c5)||this['_operationToId']['set'](_0x5154c5,_0x2e36b9);}}}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(_0x1dbb9d){super(_0x1dbb9d),this['_services']=new Map();}async['init'](){const _0x302008=this['context'],_0x47c26e=_0x302008['plugins']['get']('CommentsRepository');if(_0x302008['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),_0x47c26e['adapter']={'addCommentThread':async({channelId:_0xc79c76,threadId:_0xf1d805,comments:_0x1b17b8,resolvedAt:_0x564cf8,resolvedBy:_0x59cad3,context:_0x248c82,attributes:_0x4e0a59})=>{const _0x4eab12=await this['_getService'](_0xc79c76)['addCommentThread']({'commentThreadId':_0xf1d805,'comments':_0x1b17b8['map'](_0x436362=>parseLocalCommentToRemote(_0x436362,_0xc79c76,_0xf1d805)),'resolvedAt':_0x564cf8,'resolvedBy':_0x59cad3,'context':_0x248c82,'attributes':_0x4e0a59})['catch'](handleDisconnectionError$1);return{'threadId':_0x4eab12['commentThreadId'],'comments':_0x4eab12['comments']};},'getCommentThread':async({channelId:_0x5a40b8,threadId:_0x123b6b})=>{const _0x2e4a9f=await this['_getService'](_0x5a40b8)['getCommentThread'](_0x123b6b)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return _0x2e4a9f?_0x2e4a9f['deletedAt']?null:(await this['_fetchMissingUsersForThreads']([_0x2e4a9f]),{'threadId':_0x2e4a9f['commentThreadId'],'comments':_0x2e4a9f['comments']['map'](parseRemoteCommentToLocal),'context':_0x2e4a9f['context'],'resolvedAt':_0x2e4a9f['resolvedAt'],'resolvedBy':_0x2e4a9f['resolvedBy'],'attributes':_0x2e4a9f['attributes']||{}}):null;},'updateCommentThread':async({channelId:_0x48daa1,threadId:_0xb16eb3,context:_0xb5d1b0,unlinkedAt:_0x3f53eb,attributes:_0x2986dd})=>this['_getService'](_0x48daa1)['updateCommentThread']({'commentThreadId':_0xb16eb3,'context':_0xb5d1b0,'attributes':_0x2986dd,'unlinkedAt':_0x3f53eb})['catch'](handleServerError)['catch'](handleDisconnectionError$1),'resolveCommentThread':async({channelId:_0x33f435,threadId:_0x123e58})=>{const _0x414880=await this['_getService'](_0x33f435)['resolveCommentThread'](_0x123e58)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return{'threadId':_0x414880['commentThreadId'],'resolvedAt':_0x414880['resolvedAt'],'resolvedBy':_0x414880['resolvedBy']};},'reopenCommentThread':async({channelId:_0x31757a,threadId:_0x499a01})=>this['_getService'](_0x31757a)['reopenCommentThread'](_0x499a01)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeCommentThread':({channelId:_0x2df350,threadId:_0x6bf5b})=>this['_getService'](_0x2df350)['removeCommentThread'](_0x6bf5b)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'addComment':({channelId:_0x3a331e,threadId:_0x5577e4,commentId:_0x53d2ac,content:_0x1c4b48,attributes:_0x4326a2})=>this['_getService'](_0x3a331e)['addComment'](_0x5577e4,_0x53d2ac,_0x1c4b48,_0x4326a2)['catch'](handleDisconnectionError$1),'updateComment':({channelId:_0x5b331e,threadId:_0x502ad2,commentId:_0x5d02fd,content:_0x49b3ec,attributes:_0x43a5ce})=>this['_getService'](_0x5b331e)['updateComment'](_0x502ad2,_0x5d02fd,_0x49b3ec,_0x43a5ce)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeComment':({channelId:_0x539f51,threadId:_0x4dae15,commentId:_0x321765})=>this['_getService'](_0x539f51)['removeComment'](_0x4dae15,_0x321765)['catch'](handleServerError)['catch'](handleDisconnectionError$1)},_0x302008 instanceof Context$1){const _0x5c70b6=_0x302008['config']['get']('collaboration.channelId'),_0x4cedf5=_0x302008['plugins']['get'](Sessions);await this['_setUpService'](_0x5c70b6);const _0x152044=await this['_services']['get'](_0x5c70b6)['getConnectedSessions']();this['listenTo'](_0x4cedf5,'sessionAdd:'+_0x5c70b6,(_0x385aee,{session:_0x3a676c})=>{_0x3a676c['id']===_0x4cedf5['mySessionId']&&(_0x385aee['off'](),this['context']['plugins']['get']('Permissions')['setPermissions'](_0x3a676c['permissions'],_0x5c70b6));}),_0x4cedf5['register'](_0x5c70b6,_0x152044);}}async['_setUpService'](_0x1b28ea){if(this['_services']['has'](_0x1b28ea))throw new CKEditorError('cloudservicescommentsadapter-connect-already-connected',null,{'channelId':_0x1b28ea});const _0x56708a=this['context']['plugins']['get']('CommentsRepository'),_0x1e7c4b=new CloudServicesCommentsAdapter['CommentsService'](_0x1b28ea);this['_services']['set'](_0x1b28ea,_0x1e7c4b),this['listenTo'](_0x1e7c4b,'commentThreadAdded',(_0x3314a1,_0x85a920)=>{const {commentThreadId:_0x529b8d,documentId:_0x39353c,context:_0x210a9b,attributes:_0x323a5f,resolvedAt:_0x2afe8b,resolvedBy:_0x593c9,comments:_0x4a7766}=_0x85a920;_0x56708a['getCommentThread'](_0x529b8d)||_0x56708a['addCommentThread']({'threadId':_0x529b8d,'channelId':_0x39353c,'comments':_0x4a7766?_0x4a7766['map'](parseRemoteCommentToLocal):[],'context':_0x210a9b,'attributes':_0x323a5f,'resolvedAt':_0x2afe8b,'resolvedBy':_0x593c9,'isFromAdapter':!0x0});}),this['listenTo'](_0x1e7c4b,'commentThreadUpdated',(_0x4c59f8,{commentThreadId:_0x3bd902,documentId:_0x25cdab,context:_0x2bcc6b,unlinkedAt:_0x55c171,attributes:_0x3b3466})=>{_0x56708a['getCommentThread'](_0x3bd902)&&_0x56708a['updateCommentThread']({'threadId':_0x3bd902,'channelId':_0x25cdab,'context':_0x2bcc6b,'unlinkedAt':_0x55c171,'attributes':_0x3b3466,'isFromAdapter':!0x0});}),this['listenTo'](_0x1e7c4b,'commentThreadResolved',(_0x79166a,{commentThreadId:_0x3eb468,resolvedBy:_0x4aad28,resolvedAt:_0x44f60b})=>{const _0x507bfe=_0x56708a['getCommentThread'](_0x3eb468);_0x507bfe&&_0x507bfe['resolve']({'resolvedBy':_0x4aad28,'resolvedAt':_0x44f60b,'isFromAdapter':!0x0});}),this['listenTo'](_0x1e7c4b,'commentThreadReopened',(_0xef9dea,{commentThreadId:_0x57f3c8})=>{const _0x4e8674=_0x56708a['getCommentThread'](_0x57f3c8);_0x4e8674&&_0x4e8674['reopen']({'isFromAdapter':!0x0});}),this['listenTo'](_0x1e7c4b,'commentThreadRemoved',(_0x244a60,{commentThreadId:_0x2cae31})=>{const _0x473680=_0x56708a['getCommentThread'](_0x2cae31);_0x473680&&_0x473680['remove']({'isFromAdapter':!0x0});}),this['listenTo'](_0x1e7c4b,'commentAdded',(_0x3e8505,_0x29c643)=>{const _0x13da67=_0x29c643['commentThreadId'],_0x4325fa=_0x56708a['getCommentThread'](_0x13da67);_0x4325fa&&_0x4325fa['addComment']({...parseRemoteCommentToLocal(_0x29c643),'isFromAdapter':!0x0});}),this['listenTo'](_0x1e7c4b,'commentUpdated',(_0x3bd3e5,{commentThreadId:_0x2977df,commentId:_0x384682,content:_0x152bb5,attributes:_0x543edd})=>{const _0x329f47=_0x56708a['getCommentThread'](_0x2977df);if(_0x329f47){const _0x2627ec=_0x329f47['getComment'](_0x384682);_0x2627ec&&_0x2627ec['update']({'content':_0x152bb5,'attributes':_0x543edd,'isFromAdapter':!0x0});}}),this['listenTo'](_0x1e7c4b,'commentRemoved',(_0x15f732,{commentThreadId:_0x24242e,commentId:_0x2150cd})=>{const _0x1bdf72=_0x56708a['getCommentThread'](_0x24242e);if(_0x1bdf72){const _0x28d81=_0x1bdf72['getComment'](_0x2150cd);_0x28d81&&_0x28d81['remove']({'isFromAdapter':!0x0});}}),await this['_connectService'](_0x1b28ea);}['destroy'](){if(this['context']instanceof Context$1){const _0x264c56=this['context']['config']['get']('collaboration.channelId');this['_terminateService'](_0x264c56);}}['_terminateService'](_0x496269){if(!this['_services']['has'](_0x496269))throw new CKEditorError('cloudservicescommentsadapter-disconnect-not-exist',null,{'channelId':_0x496269});this['_getService'](_0x496269)['disconnect'](),this['_services']['delete'](_0x496269);}async['reconnect'](){for(const _0x3b60e7 of this['_services']['keys']())await this['_connectService'](_0x3b60e7);if(this['context']instanceof Context$1){const _0x1e924c=this['context']['config']['get']('collaboration.channelId'),_0x113f25=this['context']['plugins']['get'](Sessions);_0x113f25['unregister'](_0x1e924c);const _0xdf9e92=await this['_services']['get'](_0x1e924c)['getConnectedSessions']();_0x113f25['register'](_0x1e924c,_0xdf9e92);}}async['_connectService'](_0x3c50be){const {connection:_0x123861}=this['context']['plugins']['get'](WebSocketGateway),_0xd200db=this['context']['plugins']['get']('CommentsRepository'),_0x17fe43=this['_services']['get'](_0x3c50be),_0x2d20fb=await _0x17fe43['connect'](_0x123861);await this['_fetchMissingUsersForThreads'](_0x2d20fb);const _0x210aba=new Set(Array['from'](_0xd200db['getCommentThreads']({'channelId':_0x3c50be}),_0x43c682=>_0x43c682['id']));for(const _0xe29ed of _0x2d20fb)_0xe29ed['deletedAt']||_0x210aba['delete'](_0xe29ed['commentThreadId']);for(const _0x31582a of _0x210aba)_0xd200db['getCommentThread'](_0x31582a)['remove']({'isFromAdapter':!0x0});for(const _0x1f0ed8 of _0x2d20fb){let _0x5a1098=_0xd200db['getCommentThread'](_0x1f0ed8['commentThreadId']);const {commentThreadId:_0xb73ef3,context:_0x313f4f,attributes:_0x28b58a,resolvedBy:_0xec6d77,resolvedAt:_0x2d9dca,unlinkedAt:_0x5c6b24,deletedAt:_0x3bb462}=_0x1f0ed8;if(_0x3bb462)continue;_0x5a1098||(_0x5a1098=_0xd200db['addCommentThread']({'channelId':_0x3c50be,'threadId':_0xb73ef3,'context':_0x313f4f,'attributes':_0x28b58a||{},'resolvedBy':_0xec6d77,'resolvedAt':_0x2d9dca,'unlinkedAt':_0x5c6b24,'isFromAdapter':!0x0}));const _0x1c4e3a=new Set(Array['from'](_0x5a1098['comments'],_0x472658=>_0x472658['id']));for(const _0xc4e544 of _0x1f0ed8['comments'])_0x1c4e3a['delete'](_0xc4e544['commentId']);for(const _0x5126de of _0x1c4e3a)_0x5a1098['getComment'](_0x5126de)['remove']({'isFromAdapter':!0x0});for(const _0x3e4aab of _0x1f0ed8['comments']){const _0x3662f6=_0x5a1098['getComment'](_0x3e4aab['commentId']);_0x3662f6?_0x3662f6['content']!==_0x3e4aab['content']&&_0x3662f6['update']({'content':_0x3e4aab['content'],'isFromAdapter':!0x0}):_0x5a1098['addComment'](Object['assign'](parseRemoteCommentToLocal(_0x3e4aab),{'isFromAdapter':!0x0}));}}}['_getService'](_0x1da54c){if(!this['_services']['has'](_0x1da54c))throw new CKEditorError('cloudservicescommentsadapter-service-not-exist',null,{'channelId':_0x1da54c});return this['_services']['get'](_0x1da54c);}async['_fetchMissingUsersForThreads'](_0x36f096){const _0x10317a=this['context']['plugins']['get'](Users),{connection:_0x4bb6fb}=this['context']['plugins']['get'](WebSocketGateway),_0x5ce0a3=new Set();for(const {resolvedBy:_0x2bb0b9,comments:_0x155aa1}of _0x36f096){_0x2bb0b9&&!_0x10317a['getUser'](_0x2bb0b9)&&_0x5ce0a3['add'](_0x2bb0b9);for(const {userId:_0x790c63}of _0x155aa1)_0x10317a['getUser'](_0x790c63)||_0x5ce0a3['add'](_0x790c63);}if(0x0===_0x5ce0a3['size'])return;const _0x44a6e7=await User['getMany'](_0x4bb6fb,Array['from'](_0x5ce0a3));for(const _0x2d164f of _0x44a6e7)_0x10317a['getUser'](_0x2d164f['id'])||_0x10317a['addUser'](_0x2d164f);}}async function handleServerError(_0x4ace57){if('404'!==_0x4ace57['code'])throw _0x4ace57;}function handleDisconnectionError$1(_0x5a1aad){if(isDisconnectionError$2(_0x5a1aad))return new Promise(()=>{});throw _0x5a1aad;}function isDisconnectionError$2(_0x591654){return _0x591654['message']['startsWith']('cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.')||_0x591654['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x591654['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}function parseRemoteCommentToLocal(_0x5b3b6e){return{'threadId':_0x5b3b6e['commentThreadId'],'commentId':_0x5b3b6e['commentId'],'content':_0x5b3b6e['content'],'createdAt':_0x5b3b6e['createdAt'],'authorId':_0x5b3b6e['userId'],'attributes':_0x5b3b6e['attributes']||{}};}function parseLocalCommentToRemote(_0x43e745,_0xb4be08,_0x1cb9b3){return{'commentThreadId':_0x1cb9b3,'commentId':_0x43e745['commentId'],'userId':_0x43e745['authorId'],'content':_0x43e745['content'],'documentId':_0xb4be08,'createdAt':_0x43e745['createdAt'],'attributes':_0x43e745['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(_0x371042){super(_0x371042);const _0x5d3eaa=this['editor']['config']['get']('collaboration.channelId');this['_bufferedRequests']=new Map(),this['_trackChangesService']=new CloudServicesTrackChangesAdapter['TrackChangesService'](_0x5d3eaa);}['init'](){const _0x3640bb=this['editor']['plugins']['get'](WebSocketGateway),_0x34706c=this['editor']['plugins']['get']('TrackChangesEditing');return _0x34706c['adapter']={'getSuggestion':async _0x2bedd6=>{await this['_waitForServiceReady']();const _0x1cbf16=await this['_trackChangesService']['get'](_0x2bedd6)['catch'](handleDisconnectionError);return await this['_fetchMissingUsersForThreads']([_0x1cbf16]),_0x1cbf16;},'addSuggestion':async({id:_0x5365f7,type:_0x56bb88,data:_0xd74c79,originalSuggestionId:_0x3d8144,attributes:_0x485df8})=>{await this['_waitForServiceReady']();const _0x4aaf22={'id':_0x5365f7,'type':_0x56bb88,'data':_0xd74c79,'originalSuggestionId':_0x3d8144,'attributes':_0x485df8},_0x30ee55=await this['_trackChangesService']['add'](_0x5365f7,_0x56bb88,_0xd74c79,_0x3d8144,_0x485df8)['catch'](_0x4f6fff=>{if(isDisconnectionError$1(_0x4f6fff))return new Promise(_0x1330f0=>{this['_bufferedRequests']['set'](_0x5365f7,{'resolve':_0x1330f0,'suggestionData':_0x4aaf22});});throw _0x4f6fff;});return this['_bufferedRequests']['delete'](_0x5365f7),_0x30ee55;},'updateSuggestion':async(_0x547657,_0x4e1187)=>{if(await this['_waitForServiceReady'](),'open'!==_0x4e1187['state'])return this['_trackChangesService']['update'](_0x547657,_0x4e1187)['catch'](handleDisconnectionError);}},this['listenTo'](this['_trackChangesService'],'suggestionUpdated',(_0x20dc5d,_0x403f8c)=>{_0x34706c['hasSuggestion'](_0x403f8c['id'])&&(_0x34706c['getSuggestion'](_0x403f8c['id'])['attributes']=_0x403f8c['attributes']);}),this['_trackChangesService']['connect'](_0x3640bb['connection'])['then'](_0x2d6f8e=>(_0x3640bb['addToReconnectionStack'](this),this['_fetchMissingUsersForThreads'](_0x2d6f8e)['then'](()=>{for(const _0x3710f4 of _0x2d6f8e){_0x34706c['addSuggestionData'](_0x3710f4)['_saved']=!0x0;}})));}async['reconnect'](){const _0x3cf34b=this['editor']['plugins']['get']('TrackChangesEditing'),{connection:_0x201cf1}=this['editor']['plugins']['get'](WebSocketGateway),_0x53dae3=await this['_trackChangesService']['connect'](_0x201cf1);await this['_fetchMissingUsersForThreads'](_0x53dae3);for(const {suggestionData:_0x9020f3,resolve:_0x79ae5e}of this['_bufferedRequests']['values']()){let _0x353fe6=_0x53dae3['find'](_0x21a48a=>_0x21a48a['id']===_0x9020f3['id']);_0x353fe6||(_0x353fe6=await this['_trackChangesService']['add'](_0x9020f3['id'],_0x9020f3['type'],_0x9020f3['data'],_0x9020f3['originalSuggestionId'])),_0x79ae5e(_0x353fe6);}for(const _0x3abf4c of _0x53dae3)_0x3cf34b['hasSuggestion'](_0x3abf4c['id'])||_0x3cf34b['addSuggestionData'](_0x3abf4c);}async['_waitForServiceReady'](){this['_trackChangesService']['isConnected']||await new Promise(_0x58b735=>{this['listenTo'](this['_trackChangesService'],'connected',_0x57bebd=>{_0x57bebd['off'](),_0x58b735();});});}async['_fetchMissingUsersForThreads'](_0x655eea){const _0x5a9f9d=this['editor']['plugins']['get'](Users),{connection:_0x4732ea}=this['editor']['plugins']['get'](WebSocketGateway),_0x442349=new Set();for(const {authorId:_0x1b30df}of _0x655eea)_0x5a9f9d['getUser'](_0x1b30df)||_0x442349['add'](_0x1b30df);if(0x0===_0x442349['size'])return;const _0x161de1=await User['getMany'](_0x4732ea,Array['from'](_0x442349));for(const _0x2f583c of _0x161de1)_0x5a9f9d['getUser'](_0x2f583c['id'])||_0x5a9f9d['addUser'](_0x2f583c);}}function handleDisconnectionError(_0x2f822e){if(isDisconnectionError$1(_0x2f822e))return new Promise(()=>{});throw _0x2f822e;}function isDisconnectionError$1(_0x22dc27){return _0x22dc27['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x22dc27['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 _0x1276c7=this['editor']['plugins']['get'](WebSocketGateway),_0x155ede=this['editor']['plugins']['get']('CommentsEditing'),_0xaa4f5f=this['editor']['plugins']['get'](CloudServicesCommentsAdapter);return this['editor']['data']['once']('ready',()=>{this['listenTo'](_0x1276c7,'change:state',(_0x11bb53,_0x91b1db,_0x3ea193)=>{_0x155ede['isThreadsLoadingPaused']='connected'!==_0x3ea193;});}),this['listenTo'](_0x1276c7,'change:state',(_0x56adfe,_0x5b34dc,_0x530ab0)=>{this['editor']['plugins']['get']('CommentsRepository')['switchReadOnly']('connected'!==_0x530ab0);}),_0xaa4f5f['_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(_0x23858b){super(_0x23858b);const _0x309b70=this['editor']['config']['get']('collaboration.channelId');this['_lastRequestId']=null,this['_revisionTracker']=this['editor']['plugins']['get']('RevisionTracker'),this['_revisionHistoryService']=new CloudServicesRevisionHistoryAdapter['RevisionHistoryService'](_0x309b70);}async['init'](){const _0x2b9ae9=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x118343=_0x2b9ae9['serverHistory'],_0x100342=this['editor']['plugins']['get'](WebSocketGateway);this['_revisionTracker']['setSource']({'history':_0x118343,'getLatestVersion':()=>this['_getLatestVersion'](),'getCurrentRevisionId':()=>_0x2b9ae9['sessionId']});const _0x54f880=this['editor']['config']['get']('cloudServices.bundleVersion')||_0x53d302,_0x24b6d5=await EditorService['isBundleUploaded'](_0x100342['connection'],_0x54f880);this['editor']['plugins']['get']('RevisionHistory')['adapter']={'getRevision':async({revisionId:_0x530611})=>(await this['_waitForServiceReady'](),await this['_revisionHistoryService']['getRevision'](_0x530611)),'updateRevisions':async _0x323381=>{await this['_waitForServiceReady']();const _0x45aa42=this['_revisionTracker']['currentRevision'];if(_0x24b6d5&&0x1===_0x323381['length']&&_0x323381[0x0]['id']===_0x45aa42['id'])return _0x323381;for(const _0x1c0181 of _0x323381)_0x1c0181['id']===_0x45aa42['id']&&(_0x1c0181['isEmptyCurrent']=_0x1c0181['fromVersion']===_0x1c0181['toVersion']);return this['_revisionHistoryService']['updateRevisions'](_0x323381,this['_lastRequestId'])['then'](_0x3b378a=>(this['_lastRequestId']=_0x3b378a,_0x323381))['catch'](_0x3acc25=>{if(isDisconnectionError(_0x3acc25)||'400'===_0x3acc25['code']&&void 0x0!==_0x3acc25['data']['wrongRequestId']){for(const _0x35a7b4 of _0x323381){!this['_revisionTracker']['repository']['getRevision'](_0x35a7b4['id'])||this['_revisionTracker']['_bufferUpdate'](_0x35a7b4['id'],_0x35a7b4,!0x1);}if(isDisconnectionError(_0x3acc25))throw _0x3acc25;return _0x323381;}throw _0x3acc25;});}},this['listenTo'](this['_revisionHistoryService'],'revisionsUpdated',(_0x363ab6,{revisionsData:_0x1379a9,requestId:_0x215c47})=>{Math['max'](..._0x1379a9['map'](_0x35d68c=>_0x35d68c['toVersion']))>this['_getLatestVersionFromServerOperations']()-0x1?this['_getLatestVersion']()['then'](()=>{this['_handleRevisionsUpdate'](_0x1379a9,_0x215c47);}):this['_handleRevisionsUpdate'](_0x1379a9,_0x215c47);});const {revisions:_0x352d03,requestId:_0x303e06}=await this['_revisionHistoryService']['connect'](_0x100342['connection']);_0x100342['addToReconnectionStack'](this),this['_lastRequestId']=_0x303e06,await this['_fetchMissingUsers'](_0x352d03);for(const _0x18963b of _0x352d03)this['_revisionTracker']['addRevisionData'](_0x18963b);this['listenTo'](_0x2b9ae9,'change:_isConnected',(_0x474fbe,_0x4defbe,_0x5d88fb)=>{_0x5d88fb&&(this['_oldOffset']=_0x2b9ae9['_offset'],_0x474fbe['off']());}),this['_revisionTracker']['bind']('isEnabled')['to'](_0x100342,'state',_0x241231=>_0x241231===WEB_SOCKET_GATEWAY_STATES['CONNECTED']);}async['reconnect'](){const _0x1709df=this['editor']['plugins']['get'](WebSocketGateway),_0x507aef=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x1d2375=async()=>{const _0x30e235=this['_revisionTracker']['currentRevision'],_0x3942a8=_0x30e235['id'],_0xa9c69b=_0x3942a8!==_0x507aef['sessionId'];if(_0xa9c69b){const _0x352593=_0x507aef['_offset']-this['_oldOffset'],_0x542284=this['_getLatestVersionFromServerOperations']();this['_revisionTracker']['_revisionDataBuilder']['reInit']();if(_0x30e235['toVersion']+_0x352593!==_0x542284){const _0x5ddef7=_0x30e235['fromVersion']+_0x352593,_0x9cd3e0=this['editor']['plugins']['get'](Users),_0x23ded7=this['_revisionTracker']['buildRevisionData']({'revision':_0x30e235,'from':_0x5ddef7,'to':_0x542284});_0x23ded7['id']=_0x30e235['id'];const _0x57cc00=_0x23ded7['authorsIds']['map'](_0x34a35e=>_0x9cd3e0['getUser'](_0x34a35e));_0x30e235['_update']({..._0x23ded7,'authors':_0x57cc00},!0x0),this['_revisionTracker']['_bufferUpdate'](_0x30e235['id'],_0x23ded7,!0x0);}this['_revisionTracker']['_startingVersion']=_0x542284,(_0x30e235['toVersion']===_0x30e235['fromVersion']&&!this['_revisionTracker']['_bufferedUpdates']['has'](_0x3942a8)&&this['_revisionTracker']['repository']['_revisions']['remove'](_0x3942a8),this['_revisionTracker']['_createCurrentRevision'](_0x542284));}const {revisions:_0x293e85,requestId:_0x3187c3}=await this['_revisionHistoryService']['reconnect'](_0x1709df['connection'],this['_lastRequestId']);_0xa9c69b&&_0x293e85['length']>0x0?_0x507aef['_handleReconnectionError']():(await this['_fetchMissingUsers'](_0x293e85),this['_handleRevisionsUpdate'](_0x293e85,_0x3187c3),this['_revisionTracker']['sendBufferedUpdates']());};return _0x507aef['_isConnected']?_0x1d2375():new Promise((_0x3add05,_0x9d11)=>{_0x507aef['once']('change:_isConnected',()=>{_0x1d2375()['then'](_0x3add05)['catch'](_0x9d11);});});}['destroy'](){super['destroy']();}async['_waitForServiceReady'](){this['_revisionHistoryService']['isConnected']||await new Promise(_0x35ce2c=>{this['listenTo'](this['_revisionHistoryService'],'connected',_0x3b0cc8=>{_0x3b0cc8['off'](),_0x35ce2c();});});}['_getLatestVersionFromServerOperations'](){const _0x443939=this['editor']['plugins']['get'](RealTimeCollaborationClient)['serverHistory']['getOperations']()['reverse']();for(const _0x2a0ae3 of _0x443939)if('marker'!==_0x2a0ae3['type']||_0x2a0ae3['affectsData'])return _0x2a0ae3['baseVersion']+0x1;}['_getLatestVersion'](){const _0x52218b=this['editor']['plugins']['get'](RealTimeCollaborationClient);return new Promise(_0x3012ed=>{_0x52218b['_isPendingUpdate']?_0x52218b['once']('change:_isPendingUpdate',()=>{_0x3012ed(this['_getLatestVersionFromServerOperations']());}):_0x3012ed(this['_getLatestVersionFromServerOperations']());});}['_handleRevisionsUpdate'](_0x1f84f8,_0x5227b6){const _0x3067b4=this['_revisionTracker']['repository'];this['_lastRequestId']=_0x5227b6;for(const _0x5784fd of _0x1f84f8){const _0x223715=_0x3067b4['getRevision'](_0x5784fd['id']);if(_0x223715){if((_0x5784fd['fromVersion']||_0x5784fd['toVersion'])&&(_0x5784fd['diffData']=null),_0x223715===this['_revisionTracker']['currentRevision']){const _0x479847=Math['max'](_0x223715['toVersion'],_0x5784fd['toVersion']),_0x205736=Math['max'](_0x223715['fromVersion'],_0x5784fd['fromVersion']);let _0x38bde2;_0x223715['toVersion']===_0x5784fd['toVersion']&&_0x223715['fromVersion']===_0x5784fd['fromVersion']?(_0x38bde2=!0x0,this['_preventResendingRevisionData'](_0x5784fd)):_0x5784fd['toVersion']===_0x479847&&_0x5784fd['fromVersion']===_0x205736?_0x38bde2=!0x1:(_0x223715['toVersion']===_0x479847&&_0x223715['fromVersion']===_0x205736||this['_fixRevision']({'revision':_0x223715,'from':_0x205736,'to':_0x479847}),_0x38bde2=!0x0),_0x38bde2&&(delete _0x5784fd['fromVersion'],delete _0x5784fd['toVersion'],delete _0x5784fd['diffData'],delete _0x5784fd['createdAt'],delete _0x5784fd['authorsIds']);}this['_revisionTracker']['setRevisionData'](_0x5784fd),this['_preventResendingRevisionData'](_0x5784fd);}else this['_revisionTracker']['addRevisionData'](_0x5784fd);}const _0x2ab6e7=_0x3067b4['getRevisions']();_0x2ab6e7['reverse']();for(let _0x5e5201=0x0;_0x5e5201<_0x2ab6e7['length']-0x1;_0x5e5201++){const _0x9de661=_0x2ab6e7[_0x5e5201],_0xd2bbe8=_0x2ab6e7[_0x5e5201+0x1];if(_0x9de661['fromVersion']<_0xd2bbe8['toVersion']){const _0x20755c=_0xd2bbe8['toVersion'],_0x5d3464=Math['max'](_0x20755c,_0x9de661['toVersion']);this['_fixRevision']({'revision':_0x9de661,'from':_0x20755c,'to':_0x5d3464});}}}['_fixRevision']({revision:_0x3c37dd,from:_0x504a4c,to:_0x5cbed8}={}){const _0x24fc99=this['editor']['plugins']['get'](Users),_0x301ae8=this['_revisionTracker']['buildRevisionData']({'revision':_0x3c37dd,'from':_0x504a4c,'to':_0x5cbed8});_0x301ae8['authors']=_0x301ae8['authorsIds']['map'](_0x441e6e=>_0x24fc99['getUser'](_0x441e6e)),_0x3c37dd['_update'](_0x301ae8);}['_preventResendingRevisionData'](_0x2453c7){const _0x2e6406={};_0x2e6406['id']=_0x2453c7['id'];for(const _0xafb31f of Object['keys'](_0x2453c7))'id'!==_0xafb31f&&(_0x2e6406[_0xafb31f]=void 0x0);this['_revisionTracker']['_bufferUpdate'](_0x2e6406['id'],_0x2e6406,!0x0);}async['_fetchMissingUsers'](_0x49e4af){const _0x16fbca=this['editor']['plugins']['get'](Users),{connection:_0x258122}=this['editor']['plugins']['get'](WebSocketGateway),_0x3ac3d4=new Set();for(const _0xb818d6 of _0x49e4af){for(const _0x580a74 of _0xb818d6['authorsIds'])_0x45b6e2(_0x580a74);_0xb818d6['creatorId']&&_0x45b6e2(_0xb818d6['creatorId']);}if(0x0===_0x3ac3d4['size'])return;const _0x3a7f5b=await User['getMany'](_0x258122,Array['from'](_0x3ac3d4));for(const _0x517f7d of _0x3a7f5b)_0x16fbca['getUser'](_0x517f7d['id'])||_0x16fbca['addUser'](_0x517f7d);function _0x45b6e2(_0xb577a3){_0x16fbca['getUser'](_0xb577a3)||_0x3ac3d4['add'](_0xb577a3);}}}function isDisconnectionError(_0x77f0aa){return _0x77f0aa['message']['startsWith']('cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.')||_0x77f0aa['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x77f0aa['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(_0x5e8460,_0x15c30e=0x6){super(_0x5e8460);const _0x1f8722=this['bindTemplate'];this['set']('isHidden',!0x0),this['set']('usersCount',0x0),this['_collapseAt']=_0x15c30e,this['bind']('isHidden')['to'](this,'usersCount',_0x46eaba=>_0x46eaba<_0x15c30e),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item',_0x1f8722['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':_0x1f8722['to']('usersCount',_0x104dd2=>'+'+(_0x104dd2-this['_collapseAt']+0x2)['toString']())}]}]}]});}}class PresenceInlineListView extends View{['items'];['keystrokes'];constructor(_0x4a67b2){super(_0x4a67b2);const _0x5268ff=this['bindTemplate'];this['items']=this['createCollection'](),this['keystrokes']=new KeystrokeHandler(),this['set']({'hasPopup':!0x1,'isExpanded':!0x1}),this['setTemplate']({'tag':'div','attributes':{'aria-haspopup':_0x5268ff['if']('hasPopup'),'aria-expanded':_0x5268ff['to']('isExpanded',_0x375c43=>this['hasPopup']&&String(_0x375c43)),'aria-label':_0x5268ff['to']('hasPopup',_0x354ecc=>getTranslation$6(_0x4a67b2,_0x354ecc?'Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)':'Connected\x20users\x20list')),'role':'list','tabindex':_0x5268ff['to']('hasPopup',_0x346e8f=>!!_0x346e8f&&0x0),'class':['ck','ck-presence-list__list']},'children':this['items'],'on':{'mouseenter':_0x5268ff['to'](()=>this['fire']('presencelist:show')),'mouseleave':_0x5268ff['to'](_0x564354=>{const _0x13b9d2=_0x564354,_0x334a8d=document['querySelector']('.ck-presence-list__dropdown-list'),_0x192203=document['querySelector']('.ck-balloon-panel_with-arrow');_0x334a8d?.['contains'](_0x13b9d2['relatedTarget'])||_0x192203?.['contains'](_0x13b9d2['relatedTarget'])||this['fire']('presencelist:hide');})}}),this['on']('change:hasPopup',(_0x439880,_0x4ad68f,_0x14b378)=>{this['element']&&(_0x14b378?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(_0x511cb3,_0x395b6b=0x6){super(_0x511cb3);const _0x4867d6=this['bindTemplate'];this['set']('isCollapsed',!0x0),this['counterView']=new PresenceCounterView(this['locale'],_0x395b6b),this['inlineListView']=new PresenceInlineListView(_0x511cb3),this['inlineListView']['bind']('hasPopup')['to'](this,'isCollapsed'),this['listenTo'](this['inlineListView']['items'],'change',()=>{for(const _0x2647ce of this['inlineListView']['items'])_0x2647ce['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',_0x4867d6['if']('isCollapsed','ck-presence-list--collapsed')]},'children':[this['inlineListView']]});}}class PresenceDropdownListView extends View{['listWrapperView'];constructor(_0x3abadd,_0x5e9aa3){super(_0x3abadd);const _0x2e690e=this['bindTemplate'];this['listWrapperView']=new PresenceDropdownListWrapperView(_0x3abadd,_0x5e9aa3),this['setTemplate']({'tag':'div','attributes':{'tabindex':-0x1,'role':'application','class':['ck','ck-presence-list__dropdown-list'],'aria-label':getTranslation$6(_0x3abadd,'Connected\x20users\x20list\x20dropdown\x20menu')},'children':[this['listWrapperView']],'on':{'mouseleave':_0x2e690e['to'](_0xd198a1=>{const _0x84de1b=_0xd198a1,_0x4a1bf8=document['querySelector']('.ck-presence-list__list'),_0x4dbdeb=document['querySelector']('.ck-balloon-panel_with-arrow');_0x4a1bf8?.['contains'](_0x84de1b['relatedTarget'])||_0x4dbdeb?.['contains'](_0x84de1b['relatedTarget'])||this['fire']('presencelist:hide');})}});}}class PresenceDropdownListWrapperView extends ListView{constructor(_0x234d18,_0x1c3b5a){super(_0x234d18);const _0x29e4b7=this['bindTemplate'];this['set']('_isScrollable',!0x1),this['setTemplate']({'tag':_0x1c3b5a?'div':'ul','attributes':{'class':['ck','ck-reset','ck-list','ck-presence-list__dropdown-list-wrapper',_0x29e4b7['if']('_isScrollable','ck-presence-list__dropdown-list-wrapper_scrollable')],'role':_0x29e4b7['to']('role'),'aria-label':_0x29e4b7['to']('ariaLabel'),'aria-labelledby':_0x29e4b7['to']('ariaLabelledBy')},'children':this['items']}),this['listenTo'](_0x42cc73['window'],'resize',()=>this['checkIfScrollable']()),this['items']['on']('change',()=>this['checkIfScrollable']());}['render'](){super['render'](),this['checkIfScrollable']();}['checkIfScrollable'](){const _0x2b993c=this['element'];_0x2b993c&&(this['_isScrollable']=Math['max'](_0x2b993c['scrollHeight'],_0x2b993c['clientHeight'])>0.8*window['innerHeight']);}}class PresenceDropdownListItemView extends ListItemView{['userView'];constructor(_0x2a2759,_0x21b648,_0x286bdb){super(_0x2a2759);const _0x41b7f5=this['bindTemplate'];this['userView']=new UserView(_0x2a2759,_0x21b648);const _0x58e956={'tag':'li','attributes':{'class':['ck','ck-presence-list__dropdown-list-item'],'tabindex':-0x1,'role':'presentation','aria-label':_0x21b648['name']},'children':[this['userView'],{'tag':'span','attributes':{'class':['ck','ck-user__full-name']},'children':[{'text':_0x21b648['name']}]},{'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x21b648['color']['getBackgroundColorClass']()],'aria-hidden':'true'}}]};_0x286bdb&&(_0x58e956['tag']='button',_0x58e956['on']={'click':_0x41b7f5['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x58e956);}['focus'](){this['element']['focus']();}}class PresenceInlineListItemView extends View{['userView'];['markerView'];constructor(_0x181a45,_0x51af1f,_0x5b93dd){super(_0x181a45);const _0x4e28a3=this['bindTemplate'];this['set']('isFocusable',!0x1),this['set']('hasTooltip',!0x0),this['set']('tooltipPosition',''),this['userView']=new UserView(_0x181a45,_0x51af1f),this['markerView']=new MarkerView(_0x181a45,_0x51af1f);const _0xff390d=new LabelView(_0x181a45);_0xff390d['template']['tag']='span',_0xff390d['text']=_0x51af1f['name'];const _0x20ba3e={'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item'],'role':'listitem','tabindex':_0x4e28a3['to']('isFocusable',_0xd3d245=>!!_0xd3d245&&0x0),'aria-labelledby':_0xff390d['id'],'data-cke-tooltip-text':this['userView']['name'],'data-cke-tooltip-position':_0x4e28a3['to']('tooltipPosition'),'data-cke-tooltip-disabled':_0x4e28a3['to']('hasTooltip',_0x1ef739=>!_0x1ef739),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this['userView'],this['markerView'],_0xff390d]};_0x5b93dd&&(_0x20ba3e['tag']='button',_0x20ba3e['on']={'click':_0x4e28a3['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x20ba3e);}}class MarkerView extends View{constructor(_0x4b0c0e,_0xb5274c){super(_0x4b0c0e),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0xb5274c['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(_0x35a0f2){super(_0x35a0f2),this['context']['config']['define']('presenceList',defaultPresenceListConfig);const _0x3ab34d=_0x35a0f2['config']['get']('presenceList.collapseAt');if('number'!=typeof _0x3ab34d)throw new CKEditorError('presencelist-collapseat-invalid-format',this);if(_0x3ab34d<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 _0x163b43 of this['_allConnectedUsers'])this['_handleUserAdd'](_0x163b43);this['listenTo'](this['_allConnectedUsers'],'add',(_0xff8099,_0x5c250b)=>{this['_handleUserAdd'](_0x5c250b);}),this['listenTo'](this['_allConnectedUsers'],'remove',(_0x3a9f8a,_0x4672f0)=>{this['_handleUserRemove'](_0x4672f0);});}['_createView'](){const _0x1048e6=this['context'],_0x1f74de=new PresenceListView(this['context']['locale'],this['context']['config']['get']('presenceList.collapseAt')),_0x5364b2=this['balloonPanelView'];if(!isElement$2(_0x1048e6['config']['get']('presenceList.container')))throw new CKEditorError('presencelist-missing-container',this);return _0x1f74de['counterView']['bind']('usersCount')['to'](this),_0x1f74de['bind']('isCollapsed')['to'](this,'usersCount',_0x523a09=>{const {collapseAt:_0x1ff000}=_0x1048e6['config']['get']('presenceList'),_0x30fb13=_0x523a09>=_0x1ff000;if(_0x30fb13&&!_0x1f74de['inlineListView']['items']['find'](_0x27df5f=>_0x27df5f instanceof PresenceCounterView)){const _0xbc2827=this['context']['config']['get']('presenceList.collapseAt')-0x1;this['currentDisplayedUsers']['length']==_0xbc2827&&this['currentDisplayedUsers']['length']>0x1&&this['currentDisplayedUsers']['remove'](this['currentDisplayedUsers']['length']-0x1),_0x1f74de['inlineListView']['items']['add'](_0x1f74de['counterView']);}return _0x30fb13||this['hideDropdown'](),_0x30fb13;}),_0x1f74de['inlineListView']['items']['bindTo'](this['currentDisplayedUsers'])['using'](_0x3ef814=>{const _0x18c811=_0x1048e6['config']['get']('presenceList'),_0x42584d=new PresenceInlineListItemView(_0x1048e6['locale'],_0x3ef814,!!_0x18c811['onClick']);return _0x42584d['bind']('hasTooltip')['to'](_0x1f74de,'isCollapsed',_0x585508=>!_0x585508),_0x42584d['bind']('isFocusable')['to'](_0x1f74de,'isCollapsed',_0x2a5746=>!_0x2a5746),_0x18c811['onClick']&&this['listenTo'](_0x42584d,'execute',()=>{this['view']['isCollapsed']||_0x18c811['onClick'](_0x3ef814,_0x42584d['element']);}),_0x42584d;}),this['listenTo'](_0x1f74de['inlineListView'],'presencelist:show',()=>{this['view']['isCollapsed']&&this['showDropdown']();}),this['listenTo'](_0x1f74de['inlineListView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();}),_0x1f74de['inlineListView']['keystrokes']['set']('Enter',(_0x144ec3,_0x5739bb)=>{this['view']['isCollapsed']&&(this['showDropdown'](),_0x5739bb());}),_0x1f74de['render'](),_0x5364b2['render'](),clickOutsideHandler({'emitter':_0x1f74de,'activator':()=>_0x5364b2['isVisible'],'contextElements':[_0x5364b2['element'],_0x1f74de['inlineListView']['element']],'callback':()=>this['hideDropdown']()}),_0x1048e6['config']['get']('presenceList.container')['appendChild'](_0x1f74de['element']),this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_bodyCollection']['add'](this['balloonPanelView']),_0x1f74de;}['_handleUserAdd'](_0x222500){if(!this['context']['config']['get']('presenceList.displayMe')&&_0x222500['isMe'])return;const _0x3bc73c=this['context']['config']['get']('presenceList.collapseAt')-0x1;for(this['usersCount']++;this['currentDisplayedUsers']['length']>=_0x3bc73c-(this['view']['isCollapsed']?0x1:0x0)&&this['currentDisplayedUsers']['length']>0x1;)this['currentDisplayedUsers']['remove'](0x1);const _0x30139d=_0x222500['isMe']?0x0:this['currentDisplayedUsers']['length'];this['currentDisplayedUsers']['add'](_0x222500,_0x30139d);}['_handleUserRemove'](_0x5c3d0d){this['usersCount']--;const {collapseAt:_0x5646a4}=this['context']['config']['get']('presenceList'),_0x6bf3b2=this['usersCount']>=_0x5646a4;if(this['currentDisplayedUsers']['get'](_0x5c3d0d['id']))this['currentDisplayedUsers']['remove'](_0x5c3d0d['id']);else{if(_0x6bf3b2&&this['currentDisplayedUsers']['length']+0x1===_0x5646a4-0x1)return;}if(this['currentDisplayedUsers']['length']+(_0x6bf3b2?0x1:0x0)<this['usersCount']){for(const _0x1be2fd of Array['from'](this['_allConnectedUsers'])['reverse']())if(!this['currentDisplayedUsers']['get'](_0x1be2fd['id'])&&(this['currentDisplayedUsers']['add'](_0x1be2fd,Math['min'](this['currentDisplayedUsers']['length']-(_0x6bf3b2?0x1:0x0),0x1)),this['currentDisplayedUsers']['length']+(_0x6bf3b2?0x1:0x0)===_0x5646a4-0x1))return;}}['showDropdown'](){if(this['presenceDropdownView'])return;const _0xc965a9=this['context']['config']['get']('presenceList');this['presenceDropdownView']=new PresenceDropdownListView(this['context']['locale'],!!_0xc965a9['onClick']),this['view']['inlineListView']['isExpanded']=!0x0,this['listenTo'](this['presenceDropdownView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();});const {listWrapperView:_0x3fcf61}=this['presenceDropdownView'];_0x3fcf61['items']['bindTo'](this['_allConnectedUsers'])['using'](_0x43a14e=>{if(!_0xc965a9['displayMe']&&_0x43a14e['isMe'])return null;const _0x36e5ce=new PresenceDropdownListItemView(this['context']['locale'],_0x43a14e,!!_0xc965a9['onClick']);return _0xc965a9['onClick']&&this['listenTo'](_0x36e5ce,'execute',()=>{_0xc965a9['onClick'](_0x43a14e,_0x36e5ce['element']);}),_0x36e5ce;}),this['balloonPanelView']['content']['add'](this['presenceDropdownView']),this['balloonPanelView']['pin']({'target':this['view']['inlineListView']['element']}),_0x3fcf61['focus'](),_0x3fcf61['checkIfScrollable']();const _0x398f5d=(_0x1b7633,_0xc41a8d)=>{this['hideDropdown'](),this['view']['inlineListView']['focus'](),_0xc41a8d();};_0x3fcf61['keystrokes']['set']('Esc',_0x398f5d),_0x3fcf61['keystrokes']['set']('Shift+Tab',_0x398f5d),_0x3fcf61['keystrokes']['set']('Tab',(_0x346643,_0x5bccb7)=>{focusNextElement(this['view']['element']),this['hideDropdown'](),_0x5bccb7();}),_0x3fcf61['focusTracker']['add'](this['view']['element']),_0x3fcf61['focusTracker']['on']('change:isFocused',(_0xba78fc,_0x209254,_0x3104b6)=>{_0x3104b6||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(_0x2aba7d){const _0x1d2015=['a','button','input','select','textarea','[tabindex]','[contenteditable]']['map'](_0x578b24=>_0x578b24+':not([disabled]):not([tabindex=\x22-1\x22])')['join'](','),_0x98450f=[...document['body']['querySelectorAll'](_0x1d2015)]['filter'](_0x37bbc3=>_0x37bbc3===document['activeElement']||_0x37bbc3['offsetWidth']+_0x37bbc3['offsetHeight']>0x0)['sort']((_0x5a356a,_0xcebb80)=>(_0x5a356a['tabIndex']||0x0)-(_0xcebb80['tabIndex']||0x0)),_0x508b41=_0x98450f['indexOf'](_0x2aba7d),_0x51c1b1=_0x98450f[(_0x508b41+0x1)%_0x98450f['length']];_0x51c1b1&&_0x51c1b1['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(_0x116dd3){super(),this['id']=_0x116dd3['id']||uid(),this['creator']=_0x116dd3['creator']||null,this['authors']=_0x116dd3['authors']||[],this['diffData']=_0x116dd3['diffData']||null,this['toVersion']=_0x116dd3['toVersion']||0x0,this['fromVersion']=_0x116dd3['fromVersion']||0x0,this['set']('name',_0x116dd3['name']||''),this['set']('createdAt',_0x116dd3['createdAt']||new Date()),this['set']('attributes',_0x116dd3['attributes']||{});}['setName'](_0x154d83){this['_update']({'name':_0x154d83});}['setAttribute'](_0x1dc67a,_0x485820){const _0x425c7b=cloneDeep(this['attributes']);set(_0x425c7b,_0x1dc67a,_0x485820),this['_update']({'attributes':_0x425c7b});}['removeAttribute'](_0x58f3c3){const _0xb9a828=cloneDeep(this['attributes']);unset(_0xb9a828,_0x58f3c3),this['_update']({'attributes':_0xb9a828});}['_update'](_0x1d93b6,_0x12162c=!0x1){let _0x5d89ba=!0x1;const _0x39a43b={'id':this['id']},_0x195ef9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xb2b735 of _0x195ef9){const _0x45c66d=_0x1d93b6[_0xb2b735];void 0x0!==_0x45c66d&&_0x45c66d!==this[_0xb2b735]&&(this[_0xb2b735]=_0x45c66d,_0x39a43b[_0xb2b735]=_0x45c66d,_0x5d89ba=!0x0);}_0x5d89ba&&(_0x39a43b['authors']&&(_0x39a43b['authorsIds']=_0x39a43b['authors']['map'](_0x133735=>_0x133735['id']),delete _0x39a43b['authors']),this['fire']('_update',_0x39a43b,_0x12162c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3f9214=>_0x3f9214['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(_0x2a5adb){super(_0x2a5adb),this['_revisions']=new Collection();}['afterInit'](){checkLicense$5(this);}['createRevision'](_0x314579){const _0xad043d=this['editor']['plugins']['get']('Users');return new Revision({'id':_0x314579['id'],'name':_0x314579['name'],'creator':_0x314579['creatorId']?_0xad043d['getUser'](_0x314579['creatorId']):null,'diffData':_0x314579['diffData']||_0x314579['data'],'authors':_0x314579['authorsIds']['map'](_0x218044=>_0xad043d['getUser'](_0x218044)),'createdAt':new Date(_0x314579['createdAt']),'attributes':_0x314579['attributes'],'fromVersion':_0x314579['fromVersion'],'toVersion':_0x314579['toVersion']});}['addRevision'](_0x451354,_0x292a9c=0x0){this['_revisions']['add'](_0x451354,_0x292a9c);}['getRevision'](_0x393036){return this['_revisions']['get'](_0x393036);}['getRevisions'](_0x589d68={'toJSON':!0x1}){const _0x19a4c0=Array['from'](this['_revisions']);return _0x19a4c0['reverse'](),_0x589d68['toJSON']?_0x19a4c0['map'](_0x2c5e24=>_0x2c5e24['toJSON']()):_0x19a4c0;}['getIndex'](_0x3bdf52){return this['_revisions']['getIndex'](_0x3bdf52);}['getEarlierVisibleRevision'](_0x39de57){const [,_0x1b9798]=this['getRevisionsIterator'](_0x39de57,{'direction':'earlier'});return _0x1b9798;}['getLaterVisibleRevision'](_0x409641){const [,_0x1f8ab6]=this['getRevisionsIterator'](_0x409641,{'direction':'later'});return _0x1f8ab6;}['getRevisionsInDiff'](_0x3afd82){const _0x2f0a59=[];for(const _0x34fbd1 of this['getRevisionsIterator'](_0x3afd82['newRevisionId']))if(_0x2f0a59['push'](_0x34fbd1),_0x34fbd1['id']===_0x3afd82['oldRevisionId'])break;return _0x2f0a59;}*['getRevisionsIterator'](_0x434135,{direction:_0x3fde8d='earlier',filter:_0x2d4626=()=>!0x0}={}){const _0x160d46='earlier'===_0x3fde8d?0x1:-0x1;let _0x55e834=this['_revisions']['get'](_0x434135),_0x52cc91=this['getIndex'](_0x55e834);for(yield _0x55e834;_0x55e834;){if(_0x52cc91+=_0x160d46,_0x55e834=this['getRevision'](_0x52cc91),!_0x55e834)return;_0x2d4626(_0x55e834)&&(yield _0x55e834);}}}async function checkLicense$5(_0x32fcab){const _0x27d27e=_0xe95523([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]),_0x40327f=0xeb829,_0x3a54fb=window[_0xe95523([0x44,0x61,0x74,0x65])][_0xe95523([0x6e,0x6f,0x77])](),_0xecc744=_0x32fcab[_0xe95523([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a0cd0=new window[(_0xe95523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31331b=>{_0xecc744[_0xe95523([0x6f,0x6e,0x63,0x65])](_0xe95523([0x72,0x65,0x61,0x64,0x79]),_0x31331b);}),_0x452eb0={[_0xe95523([0x6b,0x74,0x79])]:_0xe95523([0x45,0x43]),[_0xe95523([0x75,0x73,0x65])]:_0xe95523([0x73,0x69,0x67]),[_0xe95523([0x63,0x72,0x76])]:_0xe95523([0x50,0x2d,0x32,0x35,0x36]),[_0xe95523([0x78])]:_0xe95523([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]),[_0xe95523([0x79])]:_0xe95523([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]),[_0xe95523([0x61,0x6c,0x67])]:_0xe95523([0x45,0x53,0x32,0x35,0x36])},_0x37894b=_0xecc744[_0xe95523([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe95523([0x67,0x65,0x74])](_0xe95523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x53e67c=await(async function(){let _0x301151,_0x178074=null,_0xec6428=null;try{if(_0x37894b==_0xe95523([0x47,0x50,0x4c]))return _0xe95523([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x301151=(function(){const _0x50643d=_0x37894b[_0xe95523([0x73,0x70,0x6c,0x69,0x74])](_0xe95523([0x2e]));if(0x3!=_0x50643d[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x400193=_0x50643d[0x1];return _0x2d476f(_0x400193);function _0x2d476f(_0x5d65d4){const _0xfdce66=_0x412db0(_0x5d65d4);return _0xfdce66&&_0x46424d()?_0xfdce66:null;function _0x46424d(){const _0x61ec9f=_0xfdce66[_0xe95523([0x6a,0x74,0x69])],_0x4cf19f=window[_0xe95523([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x61ec9f[_0xe95523([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x61ec9f[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ea0c7={..._0xfdce66,[_0xe95523([0x6a,0x74,0x69])]:_0x61ec9f[_0xe95523([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x61ec9f[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ea0c7[_0xe95523([0x76,0x63])],_0x2c3573(_0x4ea0c7)==_0x4cf19f;}}}()),!_0x301151)return _0xe95523([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x301151[_0xe95523([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xec6428=function(_0x263078,_0x19c35f){return new window[(_0xe95523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9ee3fe=>{if(_0x3bbcc1())return _0x9ee3fe(_0xe95523([0x56,0x61,0x6c,0x69,0x64]));_0x2727c7(),_0xecc744[_0xe95523([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe95523([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27546f=!0x1;const _0x52b006=uid();function _0x3c8b66(_0x3ba346){return!!_0x3ba346&&(typeof _0x3ba346===_0xe95523([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ba346===_0xe95523([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ba346[_0xe95523([0x74,0x68,0x65,0x6e])]===_0xe95523([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ba346[_0xe95523([0x63,0x61,0x74,0x63,0x68])]===_0xe95523([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b3004(_0x15c67f){_0x1167be(_0x15c67f)[_0xe95523([0x74,0x68,0x65,0x6e])](_0x1d851e=>{if(!_0x1d851e||_0x1d851e[_0xe95523([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe95523([0x6f,0x6b]))return _0xe95523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51387c(_0x2c3573(_0x52b006+_0x19c35f))!=_0x1d851e[_0xe95523([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe95523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe95523([0x56,0x61,0x6c,0x69,0x64]);})[_0xe95523([0x74,0x68,0x65,0x6e])](_0x2f8173=>(_0x11f951(),_0x2f8173),()=>{const _0x32c042=_0xe0ff1e();return null==_0x32c042?(_0x11f951(),_0xe95523([0x56,0x61,0x6c,0x69,0x64])):_0xe95523(_0x3a54fb-_0x32c042>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe95523([0x74,0x68,0x65,0x6e])](_0x9ee3fe)[_0xe95523([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9ee3fe(_0xe95523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d0833=0x36ee80;function _0x11f951(){const _0x537bfd=_0xe95523([0x6c,0x6c,0x63,0x74,0x2d])+_0x51387c(_0x2c3573(_0x263078)),_0x8b0c96=_0x59befd(_0x51387c(window[_0xe95523([0x4d,0x61,0x74,0x68])][_0xe95523([0x63,0x65,0x69,0x6c])](_0x3a54fb/_0x3d0833)));window[_0xe95523([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe95523([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x537bfd,_0x8b0c96);}function _0xe0ff1e(){const _0x1981f4=_0xe95523([0x6c,0x6c,0x63,0x74,0x2d])+_0x51387c(_0x2c3573(_0x263078)),_0x190690=window[_0xe95523([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe95523([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1981f4);return _0x190690?window[_0xe95523([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59befd(_0x190690),0x10)*_0x3d0833:null;}function _0x1167be(_0x5f5b7c){return new window[(_0xe95523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4574dd,_0x17cfdb)=>{_0x5f5b7c[_0xe95523([0x74,0x68,0x65,0x6e])](_0x4574dd,_0x17cfdb),window[_0xe95523([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17cfdb,0x1d4c0);});}}_0xecc744[_0xe95523([0x6f,0x6e])](_0xe95523([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3bdb0e,_0x54c8ae)=>{if(_0x54c8ae[0x0]!=_0x263078)return _0x9ee3fe(_0xe95523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54c8ae[0x1]={..._0x54c8ae[0x1],[_0xe95523([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x52b006};},{[_0xe95523([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe95523([0x68,0x69,0x67,0x68])}),_0xecc744[_0xe95523([0x6f,0x6e])](_0xe95523([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x530b4d=>{_0x3c8b66(_0x530b4d[_0xe95523([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27546f=!0x0,_0x5b3004(_0x530b4d[_0xe95523([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe95523([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe95523([0x6c,0x6f,0x77])}),_0x2a0cd0[_0xe95523([0x74,0x68,0x65,0x6e])](()=>{_0x27546f||_0x9ee3fe(_0xe95523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3bbcc1(){return _0xecc744[_0xe95523([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe95523([0x76,0x69,0x65,0x77])][_0xe95523([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe95523([0x61,0x75,0x74,0x6f]);}function _0x2727c7(){_0xecc744[_0xe95523([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe95523([0x76,0x69,0x65,0x77])][_0xe95523([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe95523([0x61,0x75,0x74,0x6f]);}}(_0x301151[_0xe95523([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x301151[_0xe95523([0x6a,0x74,0x69])]));const _0x523c83=await(async function(){let _0x40ad7c=!0x0;try{const _0x465e67=_0x37894b[_0xe95523([0x73,0x70,0x6c,0x69,0x74])](_0xe95523([0x2e])),[_0x5d6d53,_0x1128ee,_0x298586]=_0x465e67;return _0x465afc(_0x5d6d53),await _0x29505c(_0x5d6d53,_0x1128ee,_0x298586),_0x40ad7c;}catch{return!0x1;}function _0x465afc(_0x1ce084){const _0x49b308=_0x412db0(_0x1ce084);_0x49b308&&_0x49b308[_0xe95523([0x61,0x6c,0x67])]==_0xe95523([0x45,0x53,0x32,0x35,0x36])||(_0x40ad7c=!0x1);}async function _0x29505c(_0x352707,_0xbef6cd,_0x12c227){const _0x235191=window[_0xe95523([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe95523([0x66,0x72,0x6f,0x6d])](_0x423b80(_0x12c227),_0x536ee6=>_0x536ee6[_0xe95523([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8e8e02=new window[(_0xe95523([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe95523([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x352707+_0xe95523([0x2e])+_0xbef6cd),_0x57aff2=window[_0xe95523([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe95523([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57aff2)return;const _0x2763a5=await _0x57aff2[_0xe95523([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe95523([0x6a,0x77,0x6b]),_0x452eb0,{[_0xe95523([0x6e,0x61,0x6d,0x65])]:_0xe95523([0x45,0x43,0x44,0x53,0x41]),[_0xe95523([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe95523([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe95523([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57aff2[_0xe95523([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe95523([0x6e,0x61,0x6d,0x65])]:_0xe95523([0x45,0x43,0x44,0x53,0x41]),[_0xe95523([0x68,0x61,0x73,0x68])]:{[_0xe95523([0x6e,0x61,0x6d,0x65])]:_0xe95523([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2763a5,_0x235191,_0x8e8e02)||(_0x40ad7c=!0x1);}}());return _0x523c83?(function(){const _0x3c0637=_0x301151[_0xe95523([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c0637)return!0x1;if(_0x3c0637[_0xe95523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe95523([0x2a])))return!0x0;if(_0x3c0637[_0xe95523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe95523([0x52,0x48])))return!0x0;if(_0x3c0637[_0xe95523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe95523([0x52,0x52,0x48]))){if(_0x114388(_0xe95523([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1afbd6(_0xe95523([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xe95523([0x73,0x74,0x61,0x74,0x65])]==_0xe95523([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x114388(_0xe95523([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]))||_0x114388(_0xe95523([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 _0x5e254f=[_0xe95523([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe95523([0x74,0x72,0x69,0x61,0x6c])][_0xe95523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x301151[_0xe95523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a54fb/0x3e8:0x69b0b080;return _0x301151[_0xe95523([0x65,0x78,0x70])]<_0x5e254f;}())?_0xe95523([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3728bf=_0x301151[_0xe95523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3728bf||0x0==_0x3728bf[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f2c47}=new URL(window[_0xe95523([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3728bf[_0xe95523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2c47))return!0x0;const _0x28f972=_0x2f2c47[_0xe95523([0x73,0x70,0x6c,0x69,0x74])](_0xe95523([0x2e]));return _0x3728bf[_0xe95523([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x316168=>_0x316168[_0xe95523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe95523([0x2a])))[_0xe95523([0x6d,0x61,0x70])](_0x36bc9a=>_0x36bc9a[_0xe95523([0x73,0x70,0x6c,0x69,0x74])](_0xe95523([0x2e])))[_0xe95523([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fef94=>_0x3fef94[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28f972[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe95523([0x6d,0x61,0x70])](_0x2185a5=>Array(_0x28f972[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2185a5[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe95523([0x66,0x69,0x6c,0x6c])](_0x2185a5[0x0]===_0xe95523([0x2a])?_0xe95523([0x2a]):'')[_0xe95523([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2185a5))[_0xe95523([0x73,0x6f,0x6d,0x65])](_0x265ec1=>_0x28f972[_0xe95523([0x65,0x76,0x65,0x72,0x79])]((_0x5f01b3,_0x17f477)=>_0x265ec1[_0x17f477]===_0x5f01b3||_0x265ec1[_0x17f477]===_0xe95523([0x2a])));}())?(_0x301151[_0xe95523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe95523([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x178074=function(_0x4f63c1){const _0x14bab2=new window[(_0xe95523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x184670=>setTimeout(_0x184670,0x93ecc)),_0x10477f=_0x2a0cd0[_0xe95523([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe95523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8373=>{const _0xff969b=0x7,_0x4a517c=_0x32fcab[_0xe95523([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x309c10(){_0x4a517c[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xff969b&&_0x3e8373();}_0x309c10(),_0x4a517c[_0xe95523([0x6f,0x6e])](_0xe95523([0x61,0x64,0x64]),_0x309c10);})),_0x3b3b19=new window[(_0xe95523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33bd50=>{function _0x517d0b(){for(const _0x12f9b9 in window)if(window[_0xe95523([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xe95523([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x12f9b9))&&window[_0x12f9b9]==_0x40327f)return _0x33bd50();_0xecc744[_0xe95523([0x73,0x74,0x61,0x74,0x65])]!=_0xe95523([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xe95523([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x517d0b,0x1388);}_0x114388(_0xe95523([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x517d0b();}),_0x1ee4f8=[_0x14bab2,_0x10477f,_0x3b3b19];return window[_0xe95523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe95523([0x72,0x61,0x63,0x65])](_0x1ee4f8)[_0xe95523([0x74,0x68,0x65,0x6e])](()=>_0x4f63c1);}(_0xe95523([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x178074&&_0xec6428)return new window[(_0xe95523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39b377,_0x266c5b)=>{_0x178074[_0xe95523([0x74,0x68,0x65,0x6e])](_0x39b377,_0x266c5b),_0xec6428[_0xe95523([0x74,0x68,0x65,0x6e])](_0xde1078=>{_0xde1078!=_0xe95523([0x56,0x61,0x6c,0x69,0x64])&&_0x39b377(_0xde1078);},_0x266c5b);});return _0x178074||_0xec6428||_0xe95523([0x56,0x61,0x6c,0x69,0x64]);}())):_0xe95523([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe95523([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe95523([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe95523([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0xa2642c(){const _0x21c7e8=window[_0xe95523([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe95523([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe95523([0x6e,0x6f,0x77])]())[_0xe95523([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe95523([0x2e]),'');let _0x31c6d0=_0xe95523([0x76]);for(let _0x17daac=0x0;_0x17daac<_0x21c7e8[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17daac+=0x2){let _0x28a006=window[_0xe95523([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21c7e8[_0xe95523([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17daac,_0x17daac+0x2));_0x28a006>=_0x27d27e[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28a006-=_0x27d27e[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x31c6d0+=_0x27d27e[_0x28a006];}return _0x31c6d0;}function _0x412db0(_0x34ec0f){return _0x34ec0f[_0xe95523([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe95523([0x65,0x79]))?JSON[_0xe95523([0x70,0x61,0x72,0x73,0x65])](_0x423b80(_0x34ec0f)):null;}function _0x423b80(_0xa3d816){return window[_0xe95523([0x61,0x74,0x6f,0x62])](_0xa3d816[_0xe95523([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe95523([0x2b]))[_0xe95523([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe95523([0x2f])));}function _0x2c3573(_0x55372e){let _0x14f284=0x1505;function _0xd67d0f(_0xf7258e){for(let _0x1f058e=0x0;_0x1f058e<_0xf7258e[_0xe95523([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f058e++){const _0x28bb0a=_0xf7258e[_0xe95523([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f058e);_0x14f284=(_0x14f284<<0x5)+_0x14f284+_0x28bb0a,_0x14f284&=_0x14f284;}}return function _0xfeaf6c(_0x64ffcc){Array[_0xe95523([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x64ffcc)?_0x64ffcc[_0xe95523([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xfeaf6c):_0x64ffcc&&typeof _0x64ffcc==_0xe95523([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe95523([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x64ffcc)[_0xe95523([0x73,0x6f,0x72,0x74])]()[_0xe95523([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ee665,_0x911753])=>{_0xd67d0f(_0x2ee665),_0xfeaf6c(_0x911753);}):_0xd67d0f(window[_0xe95523([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x64ffcc));}(_0x55372e),_0x14f284>>>0x0;}function _0x51387c(_0x43ba20){return _0x43ba20[_0xe95523([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe95523([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe95523([0x30]));}function _0x59befd(_0x5bd20d){return _0x5bd20d[_0xe95523([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe95523([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe95523([0x6a,0x6f,0x69,0x6e])]('');}function _0x114388(_0x2c7450){return _0xecc744[_0xe95523([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe95523([0x68,0x61,0x73])](_0x2c7450);}function _0x1afbd6(_0x209fea){return _0xecc744[_0xe95523([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe95523([0x67,0x65,0x74])](_0x209fea);}function _0x5f5db3(){}function _0xe95523(_0xe728e3){return _0xe728e3['map'](_0xef11b6=>String['fromCharCode'](_0xef11b6))['join']('');}!function(_0x5d7c91){const _0x242e22=_0xa2642c();_0xecc744[_0x242e22]=_0xe95523([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])+_0x5d7c91,_0x5d7c91[_0xe95523([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xe95523([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xa2642c()]=_0x40327f),_0x5d7c91!=_0xe95523([0x56,0x61,0x6c,0x69,0x64])&&(async function(){if(await _0x2a0cd0,_0x114388(_0xe95523([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x57c6a8=_0x32fcab[_0xe95523([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3cb9f7=_0x32fcab[_0xe95523([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])](_0x57c6a8[_0xe95523([0x69,0x64])]),_0x385bb7=_0x1afbd6(_0xe95523([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x385bb7[_0xe95523([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x57c6a8['id'],_0x3cb9f7?_0x3cb9f7['id']:null,!0x0),_0x385bb7[_0xe95523([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xe95523([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x385bb7[_0xe95523([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x385bb7[_0xe95523([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5f5db3,void(_0x385bb7[_0xe95523([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5f5db3);}if(_0x114388(_0xe95523([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3366c8=_0x1afbd6(_0xe95523([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3366c8[_0xe95523([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xe95523([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3366c8[_0xe95523([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3366c8[_0xe95523([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5f5db3,_0x3366c8[_0xe95523([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5f5db3;}_0xecc744[_0xe95523([0x6d,0x6f,0x64,0x65,0x6c])][_0xe95523([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5f5db3,_0xecc744[_0xe95523([0x6d,0x6f,0x64,0x65,0x6c])][_0xe95523([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5f5db3,_0xecc744[_0xe95523([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe95523([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x53e67c);}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'](_0x24d1da,_0x567408){if(_0x24d1da['diffData']||!_0x567408)return;const _0x50d115=this['editor']['config']['get']('collaboration.channelId'),_0x32912f=await _0x567408['getRevision']({'channelId':_0x50d115,'revisionId':_0x24d1da['id']});_0x24d1da['diffData']=_0x32912f['diffData'];}['getRevisionDocumentData'](_0x4a8022){const _0x459cf2={};for(const _0x28ae82 in _0x4a8022['diffData']){if(_0x4a8022['diffData'][_0x28ae82]['attachChange']&&!_0x4a8022['diffData'][_0x28ae82]['attachChange']['isAttached'])continue;const _0x523196=this['_removeRevisionMarkers'](JSON['parse'](_0x4a8022['diffData'][_0x28ae82]['insertions'])),_0x55cdb2=this['editor']['editing']['view']['document'],_0x168786=new ViewDocumentFragment(_0x55cdb2,_0x523196['map'](_0x4fb22b=>this['_getViewFromDiffObj'](_0x4fb22b,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x459cf2[_0x28ae82]=this['editor']['data']['processor']['toData'](_0x168786),this['editor']['data']['processor']['useFillerType']('default');}return _0x459cf2;}['getRevisionRootsAttributes'](_0x2e22a3){const _0x50a38d={};for(const _0x56e29e in _0x2e22a3['diffData'])_0x2e22a3['diffData'][_0x56e29e]['attachChange']&&!_0x2e22a3['diffData'][_0x56e29e]['attachChange']['isAttached']||(_0x50a38d[_0x56e29e]=_0x2e22a3['diffData'][_0x56e29e]['attributesAfter']||{});return _0x50a38d;}['_getTypeCharForViewElement'](_0x20f2a5){return this['_viewClassToTypeChar']['get'](_0x20f2a5['constructor']);}['_getViewFromDiffObj'](_0x506207,_0x137719){const _0x5a2b16=this['editor']['editing']['view']['document'];if('string'==typeof _0x506207)return new ViewText(_0x5a2b16,_0x506207);{let _0x2bed01,_0x38fa26;_0x38fa26='u'==_0x506207['type']||'r'==_0x506207['type']?[]:_0x506207['children']['map'](_0x2c4c0a=>this['_getViewFromDiffObj'](_0x2c4c0a,_0x137719));const _0x435486=this['_typeCharToViewClass']['get'](_0x506207['type'])||ViewElement,_0x56c248=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2bed01=new _0x435486(_0x5a2b16,_0x506207['name'],_0x506207['attributes'],_0x38fa26),'u'==_0x506207['type']&&_0x506207['children'][0x0]){const _0x9202d4=_0x506207['children'][0x0];if(_0x2bed01['render']=function(_0x222f05){const _0x35e00a=_0x222f05['createElement']('div');return _0x35e00a['innerHTML']=_0x9202d4,_0x35e00a['childNodes'][0x0];},_0x137719){const _0x225003=new ViewDocumentFragment(_0x5a2b16);_0x225003['_appendChild'](_0x2bed01);const _0x1a3920=Array['from'](_0x56c248['viewChildrenToDom'](_0x225003,{'bind':!0x1})),_0x97792b=_0x56c248['domDocument']['createElement']('div');_0x97792b['append'](..._0x1a3920),_0x2bed01=Array['from'](_0x56c248['domChildrenToView'](_0x97792b))[0x0];}}else{if('r'==_0x506207['type']&&_0x506207['children'][0x0]){const _0x74e48f=_0x506207['children'][0x0];if(_0x2bed01['render']=function(_0x2a0d92){_0x2a0d92['innerHTML']=_0x74e48f;},_0x137719){const _0x27520c=new ViewDocumentFragment(_0x5a2b16);_0x27520c['_appendChild'](_0x2bed01);const _0x5cdc23=Array['from'](_0x56c248['viewChildrenToDom'](_0x27520c,{'bind':!0x1})),_0x563b64=_0x56c248['domDocument']['createElement']('div');_0x563b64['append'](..._0x5cdc23);const _0x5bd3b9=Array['from'](_0x56c248['domChildrenToView'](_0x563b64));_0x5bd3b9['length']>0x1?_0x2bed01['_appendChild'](_0x5bd3b9):_0x2bed01=_0x5bd3b9[0x0];}}}if(_0x506207['customProperties']){for(const [_0x359983,_0x16f86c]of _0x506207['customProperties'])_0x2bed01['_setCustomProperty'](_0x359983,_0x16f86c);}const _0x1c772d=void 0x0===_0x506207['fillerOffset']?null:_0x506207['fillerOffset'];return null!==_0x1c772d&&(_0x2bed01['getFillerOffset']=()=>_0x1c772d),_0x2bed01;}}['_makeModelFromViewString'](_0x19e6a3){const _0x2b2e79=JSON['parse'](_0x19e6a3),_0x470111=this['editor']['editing']['view']['document'],_0x142f1c=new ViewDocumentFragment(_0x470111,_0x2b2e79['map'](_0x16c349=>this['_getViewFromDiffObj'](_0x16c349,!0x0)));return this['editor']['data']['toModel'](_0x142f1c);}['_removeRevisionMarkers'](_0xa8d6df){return(_0xa8d6df=_0xa8d6df['filter'](_0x511220=>!_0x511220['name']||'revision-start'!==_0x511220['name']&&'revision-end'!==_0x511220['name']))['forEach'](_0x525f39=>{'string'!=typeof _0x525f39&&(_0x525f39['children']=this['_removeRevisionMarkers'](_0x525f39['children']),_0x525f39['attributes']=_0x525f39['attributes']['filter'](_0x7279ac=>!_0x7279ac[0x0]['startsWith']('data-revision-')));}),_0xa8d6df;}}function getTranslation$5(_0x25b31e,_0x3ade00,_0x4dc74d){const t=_0x25b31e['t'];switch(_0x3ade00){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'},_0x4dc74d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4dc74d);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(_0x2f5a97){super(_0x2f5a97),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 _0xbc2166=uid();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xbc2166},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 _0x438fc6=this['repository']['getRevision'](0x0),_0x26f08f=_0x438fc6&&null===_0x438fc6['creator']?_0x438fc6:null;if(this['_continueCurrentRevision']=!!_0x26f08f&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5e6e2a=this['_source']['getCurrentRevisionId'](),_0x5d5ef9=this['repository']['getRevision'](_0x5e6e2a);if(_0x5d5ef9)this['_startingVersion']=_0x5d5ef9['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3ec153=this['_source']['history']['_operations']['find'](_0x5e7c89=>!_0x5e7c89['_isInit']),_0x4a1ff0=_0x3ec153?_0x3ec153['baseVersion']:this['_source']['history']['version'];_0x438fc6?(_0x438fc6['toVersion']<_0x4a1ff0&&_0x438fc6['_update']({'toVersion':_0x4a1ff0}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x26f08f['id'],this['_startingVersion']=_0x26f08f['fromVersion']):(this['_startingVersion']=_0x438fc6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4a1ff0,this['_continueCurrentRevision']=!0x1);}}else _0x26f08f&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x26f08f['toVersion'],this['editor']['model']['document']['history']['version']),_0x26f08f['fromVersion']===_0x26f08f['toVersion']?(0x0!==_0x26f08f['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x26f08f['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x26f08f['id'],this['_startingVersion']=_0x26f08f['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',_0x337441=>!_0x337441),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5c514d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15d3f0;for(const _0x434c53 in _0x5c514d){const _0x3e00b9=_0x434c53,_0x507e25=_0x5c514d[_0x3e00b9];if('revisionHistoryLicenseKeyValid'==_0x507e25||'revisionHistoryLicenseKeyInvalid'==_0x507e25||'revisionHistoryLicenseKeyExpired'==_0x507e25||'revisionHistoryLicenseKeyDomainLimit'==_0x507e25||'revisionHistoryLicenseKeyNotAllowed'==_0x507e25||'revisionHistoryLicenseKeyEvaluationLimit'==_0x507e25||'revisionHistoryLicenseKeyUsageLimit'==_0x507e25){delete _0x5c514d[_0x3e00b9],_0x15d3f0=_0x507e25,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x15d3f0&&_0x5c514d['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x15d3f0&&_0x5c514d['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x15d3f0&&_0x5c514d['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x15d3f0&&_0x5c514d['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x15d3f0&&_0x5c514d['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x15d3f0&&_0x5c514d['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x88ba2e=this['repository']['getRevision'](0x0),_0x4c455c=await this['getRevisionDocumentData'](_0x88ba2e),_0x28414c=await this['getRevisionRootsAttributes'](_0x88ba2e);this['_replaceEditorDataWithRevisionData'](_0x4c455c,_0x28414c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xbd9b6e){this['_source']=_0xbd9b6e;}async['update'](){const _0x23029a=await this['_source']['getLatestVersion']();if(_0x23029a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1c3d89=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x23029a});_0x1c3d89['authors']=_0x1c3d89['authorsIds']['map'](_0x4aef15=>this['editor']['plugins']['get']('Users')['getUser'](_0x4aef15)),this['currentRevision']['_update'](_0x1c3d89);}}async['saveRevision'](_0x4048d6={},_0x16647e=null){const _0x2a5c74=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x16647e>this['currentRevision']['toVersion']&&(_0x16647e=null),null===_0x16647e&&(_0x16647e=await this['_source']['getLatestVersion']());const _0x38906d=this['_getFromVersion'](_0x16647e),_0x1726da=this['buildRevisionData']({'from':_0x38906d,'to':_0x16647e});if(this['currentRevision']['toVersion']<_0x16647e){const _0x68ee46=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x16647e,'to':_0x16647e});_0x68ee46['authors']=[],_0x68ee46['authorsIds']=[],_0x68ee46['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x68ee46,!0x0),delete _0x68ee46['authors'],_0x2a5c74['push'](_0x68ee46);}_0x4048d6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4048d6['name']=_0x4048d6['name']||null,_0x4048d6['id']=_0x4048d6['id']||uid(),_0x4048d6={..._0x4048d6,..._0x1726da};const _0x27b028=this['addRevisionData'](_0x4048d6);_0x2a5c74['push'](_0x4048d6);const _0x30f63a=this['repository']['getIndex'](_0x27b028);if(0x0!==_0x30f63a){const _0x482584=this['repository']['getRevision'](_0x30f63a-0x1);if(_0x482584['fromVersion']!==_0x16647e){const _0x5e91a9=this['_revisionDataBuilder']['getData'](_0x16647e,_0x482584['toVersion']),_0x383750={'id':_0x482584['id'],'diffData':_0x5e91a9['diffData'],'authorsIds':_0x5e91a9['authorsIds'],'authors':_0x5e91a9['authorsIds']['map'](_0x673ec9=>this['editor']['plugins']['get']('Users')['getUser'](_0x673ec9)),'fromVersion':_0x16647e};_0x482584===this['currentRevision']&&(_0x383750['createdAt']=new Date(_0x4048d6['createdAt']['getTime']()+0xa)),_0x482584['_update'](_0x383750,!0x0),delete _0x383750['authors'],_0x2a5c74['push'](_0x383750);}}if(this['adapter']){for(const _0x330f77 of _0x2a5c74)this['_bufferUpdate'](_0x330f77['id'],_0x330f77,!0x0);this['sendBufferedUpdates']();}return _0x27b028;}['addRevisionData'](_0x439366){const _0x3417ed=this['repository']['createRevision'](_0x439366);return this['adapter']&&_0x3417ed['on']('_update',(_0x306820,_0x4472e7,_0x1bf316)=>{_0x1bf316||(this['_bufferUpdate'](_0x4472e7['id'],_0x4472e7,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3417ed,this['_findInsertionIndex'](_0x3417ed)),_0x3417ed;}async['getRevisionDocumentData'](_0x29a824){return await this['_utils']['loadRevisionData'](_0x29a824,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x29a824);}async['getRevisionRootsAttributes'](_0x15132e){return await this['_utils']['loadRevisionData'](_0x15132e,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x15132e);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x329474=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xf796e2=0x0;_0xf796e2<_0x329474['length'];_0xf796e2++){const _0x38c46e=_0x329474[_0xf796e2];let _0x432b52=!0x1;for(const _0xc4d792 of Object['keys'](_0x38c46e))void 0x0===_0x38c46e[_0xc4d792]?delete _0x38c46e[_0xc4d792]:'id'!==_0xc4d792&&(_0x432b52=!0x0);_0x432b52||(_0x329474[_0xf796e2]=null);}if(_0x329474=_0x329474['filter'](_0x547fed=>null!==_0x547fed),!_0x329474['length'])return;for(let _0x96d5bf=0x0;_0x96d5bf<_0x329474['length'];_0x96d5bf++){const _0x4f1851=_0x329474[_0x96d5bf];void 0x0!==_0x4f1851['fromVersion']&&void 0x0===_0x4f1851['toVersion']&&(_0x4f1851['toVersion']=this['repository']['getRevision'](_0x4f1851['id'])['toVersion']),void 0x0!==_0x4f1851['toVersion']&&void 0x0===_0x4f1851['fromVersion']&&(_0x4f1851['fromVersion']=this['repository']['getRevision'](_0x4f1851['id'])['fromVersion']);}const _0x4af60f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x329474,_0x4af60f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3194c9=>{if(_0x3194c9){for(const _0x438e9e of _0x3194c9)this['setRevisionData']({'id':_0x438e9e['id'],'createdAt':_0x438e9e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xe3dce4=null,from:_0x1ed044=null,to:_0x39d76a=null}){_0x1ed044=null!==_0x1ed044?_0x1ed044:_0xe3dce4['fromVersion'],_0x39d76a=null!==_0x39d76a?_0x39d76a:_0xe3dce4['toVersion'];const _0x2c2894=this['_revisionDataBuilder']['getData'](_0x1ed044,_0x39d76a),_0x12dcc2={'diffData':_0x2c2894['diffData'],'authorsIds':_0x2c2894['authorsIds'],'fromVersion':_0x1ed044,'toVersion':_0x39d76a};if(!_0xe3dce4||_0x39d76a!==_0xe3dce4['toVersion']){const _0x135c1a=_0x39d76a-0x1,_0x1b78a0=this['_source']['history']['getOperation'](_0x135c1a);_0x12dcc2['createdAt']=_0x1b78a0&&_0x1b78a0['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1ed044===this['_loadedStateData']['fromVersion']){for(const _0x59da48 of this['_loadedStateData']['authors'])_0x12dcc2['authorsIds']['includes'](_0x59da48['id'])||_0x12dcc2['authorsIds']['push'](_0x59da48['id']);}return _0x12dcc2;}['_bufferUpdate'](_0x3b4f48,_0x304b9e,_0x570acc){if(this['_bufferedUpdates']['has'](_0x3b4f48)){const _0x2dd447=this['_bufferedUpdates']['get'](_0x3b4f48);_0x304b9e=_0x570acc?{..._0x2dd447,..._0x304b9e}:{..._0x304b9e,..._0x2dd447};}this['_bufferedUpdates']['set'](_0x3b4f48,_0x304b9e);}['setRevisionData'](_0x43305d){const _0x2631ef=this['repository']['getRevision'](_0x43305d['id']);if(_0x43305d['createdAt']&&(_0x43305d['createdAt']=new Date(_0x43305d['createdAt'])),_0x43305d['authorsIds']){const _0xb61807=this['editor']['plugins']['get']('Users');_0x43305d['authors']=_0x43305d['authorsIds']['map'](_0x137541=>_0xb61807['getUser'](_0x137541));}_0x2631ef['_update'](_0x43305d,!0x0);}['_createInitialRevision'](_0x140cd3){const _0x31f25b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x31f25b)this['_initialRevisionId']=_0x31f25b['id'];else{const _0x35a88d=!this['editor']['model']['document']['roots']['find'](_0x441820=>this['editor']['model']['hasContent'](_0x441820)),_0xf6a8bf=this['editor']['plugins']['get']('Users')['me']['id'],_0x3a705f=getTranslation$5(this['editor']['locale'],_0x35a88d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x140cd3,'to':_0x140cd3,'id':this['_initialRevisionId'],'name':_0x3a705f,'creatorId':_0xf6a8bf});}}['_createCurrentRevision'](_0x347624){const _0x294b60=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x294b60),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x347624,'to':_0x347624,'id':_0x294b60,'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'](_0x17aa94,_0x3a8f57){let _0xf13ea0=this['editor']['config']['get']('initialData'),_0x300ebf=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xf13ea0){_0xf13ea0={};for(const _0x12c497 of this['editor']['model']['document']['getRootNames']())_0xf13ea0[_0x12c497]='';}if('string'==typeof _0xf13ea0&&(_0xf13ea0={'main':_0xf13ea0}),void 0x0===_0x300ebf){_0x300ebf={};for(const _0x474a70 of this['editor']['model']['document']['getRootNames']())_0x300ebf[_0x474a70]={};}let _0x5c544c=!0x1;const _0x3ae558=Object['keys'](_0xf13ea0),_0x412fa2=Object['keys'](_0x17aa94);for(const _0x29d635 of _0x3ae558){if(_0xf13ea0[_0x29d635]!==_0x17aa94[_0x29d635]&&''!==_0xf13ea0[_0x29d635]['trim']()){_0x5c544c=!0x0;break;}if(!isEqual(_0x300ebf[_0x29d635],_0x3a8f57[_0x29d635])&&Object['keys'](_0x300ebf[_0x29d635])['length']>0x0){_0x5c544c=!0x0;break;}}_0x5c544c||(_0x5c544c=_0x412fa2['some'](_0x36bb1a=>!this['editor']['model']['document']['getRoot'](_0x36bb1a))),_0x5c544c&&logWarning('editor-initial-data-replaced-with-revision-data',{'editorData':_0xf13ea0,'editorRootsAttributes':_0x300ebf,'revisionData':_0x17aa94,'revisionRootsAttributes':_0x3a8f57}),this['editor']['config']['set']('initialData',_0x17aa94),this['editor']['config']['set']('rootsAttributes',_0x3a8f57);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4ba75c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4ba75c['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'](_0x20165b){const _0x392095=this['repository']['getRevisions']();_0x392095['reverse']();let _0x65f009=0x0;for(;_0x65f009<_0x392095['length'];){const _0x4a8c63=_0x392095[_0x65f009];if(_0x4a8c63===this['currentRevision']){_0x65f009++;continue;}if(_0x4a8c63['id']===this['_initialRevisionId'])break;const _0x9ac4b1=_0x20165b['toVersion']-_0x4a8c63['toVersion']||_0x20165b['fromVersion']-_0x4a8c63['fromVersion'];if(_0x9ac4b1>0x0)break;if(_0x9ac4b1<0x0)_0x65f009++;else{if(!_0x20165b['creator']&&_0x4a8c63['creator'])break;if(_0x4a8c63['creator']||!_0x20165b['creator']){if(_0x20165b['createdAt']>_0x4a8c63['createdAt'])break;_0x65f009++;}else _0x65f009++;}}return _0x65f009;}['_getFromVersion'](_0x457445){const _0x9135b4=this['repository']['getRevisions']();_0x9135b4['reverse'](),_0x9135b4['shift']();const _0x4e906d=_0x9135b4['find'](_0x2c2f10=>_0x2c2f10['toVersion']<=_0x457445)['toVersion'];return _0x4e906d<this['_startingVersion']?this['_startingVersion']:_0x4e906d;}['_makeRevision']({name:_0x27155d,from:_0x3261ab,to:_0x52fa8a,creatorId:_0x5ae253,id:_0x2f9587}){const _0x2eabab=this['buildRevisionData']({'from':_0x3261ab,'to':_0x52fa8a});_0x2eabab['name']=_0x27155d,_0x2eabab['creatorId']=_0x5ae253,_0x2eabab['id']=_0x2f9587;const _0x4d9afa=this['addRevisionData'](_0x2eabab);return this['adapter']&&this['_bufferUpdate'](_0x2eabab['id'],_0x2eabab,!0x0),_0x4d9afa;}['_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(_0x230dae){this['editor']=_0x230dae,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'](_0x1e611d){this['source']=_0x1e611d;const _0x40a19d=new Map(),_0x402bb6=new Map(),_0x5c730b=this['editor']['model']['document']['roots']['map'](_0x4c7491=>_0x4c7491['rootName']);for(const _0x2c387c of _0x5c730b){const _0x38019c=this['editor']['model']['document']['getRoot'](_0x2c387c),_0x226590=_cloneRoot(_0x38019c);_0x40a19d['set'](_0x2c387c,_0x226590),_0x402bb6['set'](_0x2c387c,Object['fromEntries'](_0x38019c['getAttributes']()));}const _0x440d1c=Array['from'](this['editor']['model']['markers'])['map'](_0x23657f=>[_0x23657f['name'],_0x23657f['getRange']()]),_0x235ce9=this['source']['version'];this['_saveMetaData'](_0x235ce9,_0x40a19d,_0x440d1c,_0x402bb6),this['_startingRevisionId']=this['_revisionId'];const _0x22ae6e=new Map(),_0xadc288=new Map();for(const _0x40533d of _0x5c730b){const _0x35ae1c=_emptyRoot(_0x40533d);_0x22ae6e['set'](_0x40533d,_0x35ae1c),_0xadc288['set'](_0x40533d,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x22ae6e,[],_0xadc288);}['getData'](_0x29bc12,_0x42d39c){if(this['_lastFrom']===_0x29bc12&&this['_lastTo']<=_0x42d39c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x42d39c,!0x0);else{if(!this['_savedMetaData']['has'](_0x29bc12)){const _0x473dae=this['_getPreviousFrom'](_0x29bc12);this['_calculateMetaData'](_0x473dae,_0x29bc12,!0x1);}this['_calculateMetaData'](_0x29bc12,_0x42d39c,!0x0);}return this['_lastFrom']=_0x29bc12,this['_lastTo']=_0x42d39c,this['_getState']();}['loadState'](_0x34390c){if(!this['_savedMetaData']['has'](_0x34390c['fromVersion'])){const _0x223cc1=this['_getPreviousFrom'](_0x34390c['fromVersion']);this['_calculateMetaData'](_0x223cc1,_0x34390c['fromVersion'],!0x1);}this['_calculateMetaData'](_0x34390c['fromVersion'],_0x34390c['toVersion'],!0x1);const _0x260aaf=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x34390c['fromVersion'],this['_lastTo']=_0x34390c['toVersion'];for(const _0xdafc55 in _0x34390c['diffData']){const _0x136868=_0x34390c['diffData'][_0xdafc55]['attachChange'],_0x11dec0=cloneDeep(_0x34390c['diffData'][_0xdafc55]['attributesBefore'])||{},_0x2fcb56=_0x260aaf['_makeModelFromViewString'](_0x34390c['diffData'][_0xdafc55]['deletions']);_0x2fcb56['rootName']=_0xdafc55,_0x2fcb56['_isAttached']=!_0x136868||!_0x136868['isAttached'],_0x2fcb56['isAttached']=()=>_0x2fcb56['_isAttached'],this['_baseRoots']['set'](_0xdafc55,_0x2fcb56),this['_baseRootsAttributes']['set'](_0xdafc55,_0x11dec0),_0x136868&&this['_touchedRoots']['set'](_0xdafc55,_0x136868);const _0x12bf4c=this['_makeIdsRoot'](_0x2fcb56);this['_baseIdsRoots']['set'](_0xdafc55,_0x12bf4c);for(const [_0x237479,_0x5f5ace]of _0x2fcb56['markers']){if(!_0x237479['startsWith']('revision:'))continue;const _0x27b4ca=_0x237479['split'](':')[0x2];for(const _0x398b45 of _0x5f5ace['getWalker']({'singleCharacters':!0x0})){const _0x538464=this['_getVidAttributeName'](_0x398b45),_0x337778='elementEnd'==_0x398b45['type']?_0x398b45['previousPosition']['path']['slice'](0x0,-0x1):_0x398b45['previousPosition']['path'],_0x2c2127=_0x12bf4c['getNodeByPath'](_0x337778)['getAttribute'](_0x538464);this['_touched']['set'](_0x2c2127,{'userId':_0x27b4ca});}_0x2fcb56['markers']['delete'](_0x237479);}}this['_startingRevisionId']=this['_revisionId'];const _0x855246=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1982c3=>!this['_touched']['has'](_0x1982c3));let _0x3f553a=0x0;const _0x3dd08f=new Map();for(const _0x273efb in _0x34390c['diffData']){const _0x40eb08=_0x34390c['diffData'][_0x273efb]['attachChange'],_0x411d4b=cloneDeep(_0x34390c['diffData'][_0x273efb]['attributesAfter'])||{},_0x29cdb1=_0x260aaf['_makeModelFromViewString'](_0x34390c['diffData'][_0x273efb]['insertions']);_0x29cdb1['rootName']=_0x273efb,_0x29cdb1['_isAttached']=!_0x40eb08||_0x40eb08['isAttached'],_0x29cdb1['isAttached']=()=>_0x29cdb1['_isAttached'],this['_diffRoots']['set'](_0x273efb,_0x29cdb1),this['_diffRootsAttributes']['set'](_0x273efb,_0x411d4b);const _0x350dc2=this['_makeIdsRoot'](_0x29cdb1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x273efb,_0x350dc2),_0x3dd08f['set'](_0x273efb,_0x29cdb1['isAttached']()?_0x411d4b:{});for(const [_0x5b0bfa,_0x56f1f0]of _0x29cdb1['markers']){if(!_0x5b0bfa['startsWith']('revision:'))continue;const _0x663e29=_0x5b0bfa['split'](':')[0x2];for(const _0x4865e0 of _0x56f1f0['getWalker']({'singleCharacters':!0x0})){const _0x57240c=this['_getVidAttributeName'](_0x4865e0),_0x428205=this['_revisionId']++,_0xc1fa02='elementEnd'==_0x4865e0['type']?_0x4865e0['previousPosition']['path']['slice'](0x0,-0x1):_0x4865e0['previousPosition']['path'];_0x350dc2['getNodeByPath'](_0xc1fa02)['_setAttribute'](_0x57240c,_0x428205),this['_touched']['set'](_0x428205,{'userId':_0x663e29});}_0x29cdb1['markers']['delete'](_0x5b0bfa);}for(const _0x442737 of this['editor']['model']['createRangeIn'](_0x29cdb1)['getWalker']({'singleCharacters':!0x0})){const _0x5d4fb7=this['_getVidAttributeName'](_0x442737),_0x27b5a5='elementEnd'==_0x442737['type']?_0x442737['previousPosition']['path']['slice'](0x0,-0x1):_0x442737['previousPosition']['path'],_0xd9373e=_0x350dc2['getNodeByPath'](_0x27b5a5);_0xd9373e['getAttribute'](_0x5d4fb7)>0x0||_0xd9373e['_setAttribute'](_0x5d4fb7,_0x855246[_0x3f553a++]);}for(const [_0x2aa412,_0x450ad0]of _0x29cdb1['markers'])_0x2aa412['startsWith']('revision:')||this['_markers']['set'](_0x2aa412,_0x450ad0);}const {roots:_0xffee4a}=this['_savedMetaData']['get'](_0x34390c['fromVersion']),{roots:_0x587938}=this['_savedMetaData']['get'](_0x34390c['toVersion']),_0x66fcd4=_cloneRoot(_0xffee4a['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x66fcd4),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x66fcd4,Number['NEGATIVE_INFINITY']));const _0x416a18=_cloneRoot(_0x587938['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x416a18),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x416a18));const _0x2c7905=Array['from'](this['_diffRoots'])['map'](([_0x43ce45,_0x3e4271])=>[_0x43ce45,_cloneRoot(_0x3e4271)]);this['_saveMetaData'](this['_lastTo'],_0x2c7905,this['_markers'],_0x3dd08f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x33c12e,_0x10c7b8,_0xe8f3a0,_0x160e7b){const _0xc612df=new Map(_0x10c7b8),_0x453322=new Map(cloneDeep(_0x160e7b)),_0x351227=new Map();for(const [_0x19d232,_0x2e49aa]of _0xe8f3a0)_0x351227['set'](_0x19d232,{'start':_0x2e49aa['start']['clone'](),'end':_0x2e49aa['end']['clone'](),'rootName':_0x2e49aa['root']['rootName']});this['_savedMetaData']['set'](_0x33c12e,{'roots':_0xc612df,'markers':_0x351227,'rootsAttributes':_0x453322});}['_removeMetaData'](_0x5c395c){this['_savedMetaData']['delete'](_0x5c395c);}['_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'](_0x7ad0a3,_0x56ff9f=null){let _0x555489=null;_0x7ad0a3['is']('documentFragment')||(_0x555489=new ModelElement(_0x7ad0a3['name'],{'vid_start':null===_0x56ff9f?this['_revisionId']++:_0x56ff9f++}));const _0x150e49=[];for(const _0x343a2f of _0x7ad0a3['getChildren']())if(_0x343a2f['is']('element')){_0x150e49['push'](this['_makeIdsRoot'](_0x343a2f,_0x56ff9f));const _0x2b8b85=_0x150e49[_0x150e49['length']-0x1];null!==_0x56ff9f&&(_0x56ff9f=_0x2b8b85['is']('element','$text')?_0x2b8b85['getAttribute']('vid')+0x1:_0x2b8b85['getAttribute']('vid_end')+0x1);}else{for(let _0x324294=0x0;_0x324294<_0x343a2f['offsetSize'];_0x324294++)_0x150e49['push'](new ModelElement('$text',{'vid':null===_0x56ff9f?this['_revisionId']++:_0x56ff9f++}));}if(_0x7ad0a3['is']('documentFragment')){const _0x6ca19e=_emptyRoot(_0x7ad0a3['rootName']);return _0x6ca19e['_insertChild'](0x0,_0x150e49),_0x6ca19e;}return _0x555489['_setAttribute']('vid_end',null===_0x56ff9f?this['_revisionId']++:_0x56ff9f++),_0x555489['_insertChild'](0x0,_0x150e49),_0x555489;}['_calculateMetaData'](_0x54f350,_0x574eb8,_0x956f03){this['_reset']();const {roots:_0xa8bbb4,markers:_0x422a74,rootsAttributes:_0x231b19}=this['_savedMetaData']['get'](_0x54f350);this['_baseRoots']=new Map(_0xa8bbb4),this['_baseRootsAttributes']=new Map(cloneDeep(_0x231b19));for(const [_0x170df0,_0xb2cb07]of this['_baseRoots'])if('$graveyard'!==_0x170df0&&(this['_diffRoots']['set'](_0x170df0,_cloneRoot(_0xb2cb07)),this['_diffRootsAttributes']=new Map(cloneDeep(_0x231b19)),_0x956f03)){const _0x14f528=this['_revisionId'];this['_idsRoots']['set'](_0x170df0,this['_makeIdsRoot'](_0xb2cb07)),this['_baseIdsRoots']['set'](_0x170df0,this['_makeIdsRoot'](_0xb2cb07,_0x14f528));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',_cloneRoot(this['_baseRoots']['get']('$graveyard'))),_0x956f03&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3297d8,_0x4ca56d]of _0x422a74){const _0x4f8cbf=this['_baseRoots']['get'](_0x4ca56d['rootName']),_0x10c4de=this['_diffRoots']['get'](_0x4ca56d['rootName']),_0x240e4e=new ModelRange(this['_fixPosition'](_0x4ca56d['start'],_0x4f8cbf),this['_fixPosition'](_0x4ca56d['end'],_0x4f8cbf)),_0x433f17=this['_fixRange'](_0x240e4e,_0x10c4de);_0x4f8cbf['markers']['set'](_0x3297d8,_0x240e4e),this['_markers']['set'](_0x3297d8,_0x433f17);}this['_applyOperations'](_0x54f350,_0x574eb8,_0x956f03);}['_applyOperations'](_0x586290,_0x129bc1,_0x36f05c){for(const _0x3a2df7 of this['source']['getOperations'](_0x586290,_0x129bc1))this['_handleOperation'](_0x3a2df7,_0x36f05c);for(const _0x521e40 of this['_diffRoots']['values']())_0x521e40['markers']['clear']();for(const [_0x3cacd0,_0x521f32]of this['_markers']){this['_diffRoots']['get'](_0x521f32['root']['rootName'])['markers']['set'](_0x3cacd0,_0x521f32['clone']());}const _0x29fe12=new Map(),_0xa8dc88=new Map();for(const [_0x39eae5,_0x232c82]of this['_diffRoots'])_0x29fe12['set'](_0x39eae5,_cloneRoot(_0x232c82)),_0xa8dc88['set'](_0x39eae5,this['_diffRootsAttributes']['get'](_0x39eae5));this['_saveMetaData'](_0x129bc1,_0x29fe12,this['_markers'],_0xa8dc88);}['_getPreviousFrom'](_0x43a384){const _0x561868=Array['from'](this['_savedMetaData']['keys']());_0x561868['sort']((_0x497a25,_0x59a42a)=>_0x497a25-_0x59a42a),_0x561868['reverse']();for(const _0xf05ba5 of _0x561868)if(_0xf05ba5<_0x43a384)return _0xf05ba5;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4afba4,_0x24221d){const _0x4a7149=Array['from'](_0x24221d['markers'])['map'](([_0x2d38ef,_0x41d8ed])=>[_0x2d38ef,this['_fixRange'](_0x41d8ed,_0x4afba4)]);_0x4afba4['markers']=new Map(_0x4a7149);}['_transformMarkers'](_0x267079){for(const _0xe4c88d of this['_markers']['values']()){const _0xa81455=_0xe4c88d['getTransformedByOperation'](_0x267079),_0x45d366=ModelRange['_createFromRanges'](_0xa81455);_0xe4c88d['start']=_0x45d366['start'],_0xe4c88d['end']=_0x45d366['end'];}}['_handleOperation'](_0x54b99b,_0x5231ff){if('addRoot'!=_0x54b99b['type']&&'detachRoot'!=_0x54b99b['type']){if('insert'==_0x54b99b['type']){const _0xb006bd=_0x54b99b['position']['root']['rootName'];this['_diffRoots']['has'](_0xb006bd)||(this['_diffRoots']['set'](_0xb006bd,_emptyRoot(_0xb006bd,!0x0)),this['_diffRootsAttributes']['set'](_0xb006bd,{}),_0x5231ff&&this['_idsRoots']['set'](_0xb006bd,_emptyRoot(_0xb006bd,!0x0)));}else{if('addRootAttribute'==_0x54b99b['type']||'removeRootAttribute'==_0x54b99b['type']||'changeRootAttribute'==_0x54b99b['type'])return void this['_handleRootAttributeOperation'](_0x54b99b);'marker'==_0x54b99b['type']&&this['_handleMarkerOperation'](_0x54b99b);}if('marker'!==_0x54b99b['type']){const _0x1efa98=this['_cloneOperation'](_0x54b99b,this['_diffRoots']);_0x1efa98['_execute'](),this['_transformMarkers'](_0x1efa98);}if(_0x5231ff)switch(_0x54b99b['type']){case'insert':this['_handleInsertOperation'](_0x54b99b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x54b99b);break;case'merge':this['_handleMergeOperation'](_0x54b99b);break;case'split':this['_handleSplitOperation'](_0x54b99b);}}else this['_handleRootOperation'](_0x54b99b,_0x5231ff);}['_cloneOperation'](_0x10d07b,_0x56c233){const _0x315b4c=_0x10d07b['clone']();return _0x315b4c['_authorId']=_0x10d07b['_authorId'],this['_fixOperation'](_0x315b4c,_0x56c233),_0x315b4c;}['_getBaseVids'](_0x231cc2){return _0x231cc2['map'](_0xe19bf1=>{const _0x3177fb=this['_getVidAttributeName'](_0xe19bf1);return Number(_0xe19bf1['item']['getAttribute'](_0x3177fb));});}['_generateTape'](_0x224ad8,_0x2df846){if(_0x224ad8['is']('element','$text'))_0x2df846['push']({'item':_0x224ad8,'type':'text'});else{_0x224ad8['is']('element')&&_0x2df846['push']({'item':_0x224ad8,'type':'elementStart'});for(const _0x40440c of _0x224ad8['getChildren']())this['_generateTape'](_0x40440c,_0x2df846);_0x224ad8['is']('element')&&_0x2df846['push']({'item':_0x224ad8,'type':'elementEnd'});}return _0x2df846;}['_getState'](){const _0x14d994=new Map(this['_touched']),_0x5f523a=new Map(_0x14d994),_0x5dba79=new Map(),_0x4f6660={'insertions':{},'deletions':{}},_0x34f54b={'insertions':{},'deletions':{}},_0x1e365a=new Map(),_0x2aa63d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2aa63d['delete']('$graveyard');for(const _0x5a6894 of _0x2aa63d){const _0x30a0e5=this['_diffRoots']['get'](_0x5a6894)||_emptyRoot(_0x5a6894,!0x1),_0x451b89=this['_baseRoots']['get'](_0x5a6894)||_emptyRoot(_0x5a6894,!0x1);_0x30a0e5['isAttached']()||_0x451b89['isAttached']()?(_0x4f6660['insertions'][_0x5a6894]=_cloneRoot(_0x30a0e5),_0x4f6660['deletions'][_0x5a6894]=_cloneRoot(_0x451b89),this['_copyMarkers'](_0x4f6660['deletions'][_0x5a6894],_0x451b89),this['_copyMarkers'](_0x4f6660['insertions'][_0x5a6894],_0x30a0e5),_0x34f54b['insertions'][_0x5a6894]=this['_generateTape'](this['_idsRoots']['get'](_0x5a6894),[]),_0x34f54b['deletions'][_0x5a6894]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5a6894)||_emptyRoot(_0x5a6894,!0x1),[])):_0x2aa63d['delete'](_0x5a6894);}for(const _0x1a1041 of _0x2aa63d){const _0x2ce1e3=_0x34f54b['insertions'][_0x1a1041];for(const _0x4af33c of _0x2ce1e3){const _0x308470=this['_getVidAttributeName'](_0x4af33c),_0x4cef77=_0x4af33c['item']['getAttribute'](_0x308470);_0x5f523a['delete'](_0x4cef77),_0x4cef77>=this['_startingRevisionId']&&_0x5dba79['set'](_0x4cef77,_0x14d994['get'](_0x4cef77));}}for(const _0x4ff428 of _0x2aa63d){const _0x477ef5=_0x34f54b['insertions'][_0x4ff428],_0x20fc96=this['_getBaseVids'](_0x34f54b['deletions'][_0x4ff428]);let _0x5a7d0b=0x0;for(const _0x145e14 of _0x477ef5){const _0x293697=this['_getVidAttributeName'](_0x145e14),_0x21e243=_0x145e14['item']['getAttribute'](_0x293697);if(!_0x5dba79['has'](_0x21e243)&&!_0x1e365a['has'](_0x21e243)){if(_0x5f523a['has'](_0x21e243))_0x5a7d0b++;else{if(_0x21e243!=_0x20fc96[_0x5a7d0b]){const _0x471ceb=_0x14d994['get'](_0x21e243)||_0x14d994['get'](_0x20fc96[_0x5a7d0b]);for(;_0x21e243!=_0x20fc96[_0x5a7d0b];)_0x5f523a['has'](_0x20fc96[_0x5a7d0b])||(_0x1e365a['set'](_0x20fc96[_0x5a7d0b],_0x471ceb),_0x14d994['set'](_0x20fc96[_0x5a7d0b],_0x471ceb)),_0x5a7d0b++;}_0x5a7d0b++;}}}}for(const _0x260dd2 of _0x2aa63d){const _0x3043bd=_0x34f54b['insertions'][_0x260dd2];for(const _0x5b7405 of _0x3043bd){const _0x3e467d=this['_getVidAttributeName'](_0x5b7405),_0x263326=_0x5b7405['item']['getAttribute'](_0x3e467d);if(_0x1e365a['has'](_0x263326)){const _0xadbd83=_0x1e365a['get'](_0x263326);_0x5f523a['has'](_0x263326)||_0x5f523a['set'](_0x263326,{..._0xadbd83}),_0x5dba79['set'](_0x263326,{..._0xadbd83});}}}for(const _0x53a19e of _0x5f523a['keys']())_0x53a19e>=this['_startingRevisionId']&&_0x5f523a['delete'](_0x53a19e);const _0x159284=new Map();for(const _0x3f1c9a of _0x2aa63d){let _0x25e346=_0x34f54b['insertions'][_0x3f1c9a];for(const _0x525786 of _0x25e346)if(_0x525786['item']['is']('element','tableCell')){const _0x5c358c=this['_getVidAttributeName'](_0x525786),_0x4aa2b6=_0x525786['item']['getAttribute'](_0x5c358c);if(_0x5dba79['has'](_0x4aa2b6)){const _0x579f2a=_0x525786['item']['parent']['parent']['getAttribute']('vid_start'),_0x44bdc5=_0x159284['get'](_0x579f2a)||new Set();_0x44bdc5['add'](_0x5dba79['get'](_0x4aa2b6)['userId']),_0x159284['set'](_0x579f2a,_0x44bdc5);}}_0x25e346=_0x34f54b['deletions'][_0x3f1c9a];for(const _0x273a80 of _0x25e346)if(_0x273a80['item']['is']('element','tableCell')){const _0x3df779=this['_getVidAttributeName'](_0x273a80),_0x4cc0bb=_0x273a80['item']['getAttribute'](_0x3df779);if(_0x5f523a['has'](_0x4cc0bb)){const _0xa9541d=_0x273a80['item']['parent']['parent']['getAttribute']('vid_start'),_0x46dbe1=_0x159284['get'](_0xa9541d)||new Set();_0x46dbe1['add'](_0x5f523a['get'](_0x4cc0bb)['userId']),_0x159284['set'](_0xa9541d,_0x46dbe1);}}for(const _0x702113 of _0x159284['keys']())(_0x5dba79['has'](_0x702113)||_0x5f523a['has'](_0x702113))&&_0x159284['delete'](_0x702113);}for(const _0x3a1f81 of _0x2aa63d){const _0x18d201=_0x34f54b['insertions'][_0x3a1f81];let _0x55a29c=null,_0x11211e=null;for(const _0x26a885 of _0x18d201){const _0x5b821a=this['_getVidAttributeName'](_0x26a885),_0x3c5be5=_0x26a885['item']['getAttribute'](_0x5b821a),_0x557659=_0x159284['get'](_0x3c5be5);_0x557659&&'elementStart'==_0x26a885['type']&&(_0x55a29c=Array['from'](_0x557659)[0x0],_0x11211e=_0x26a885['item']['getAttribute']('vid_end')),_0x55a29c&&(_0x5f523a['set'](_0x3c5be5,{'userId':_0x55a29c}),_0x5dba79['set'](_0x3c5be5,{'userId':_0x55a29c})),_0x3c5be5==_0x11211e&&(_0x55a29c=null,_0x11211e=null);}}const _0x4c5ae4={},_0x24e998=new Set();for(const _0x40d279 of _0x2aa63d){const _0x25c069=_0x4f6660['deletions'][_0x40d279],_0x480b4=_0x4f6660['insertions'][_0x40d279];for(const {userId:_0x12731d}of this['_touchedMarkers']['values']())null!==_0x12731d&&_0x24e998['add'](_0x12731d);for(const {userId:_0x2e94b9}of this['_touchedRoots']['values']())null!==_0x2e94b9&&_0x24e998['add'](_0x2e94b9);this['_markChanges'](_0x480b4,_0x34f54b['insertions'][_0x40d279],_0x5dba79,'insertion',_0x24e998),this['_markChanges'](_0x25c069,_0x34f54b['deletions'][_0x40d279],_0x5f523a,'deletion',_0x24e998),_0x4c5ae4[_0x40d279]={'insertions':this['_prepareViewToSave'](_0x480b4),'deletions':this['_prepareViewToSave'](_0x25c069),'attachChange':this['_touchedRoots']['get'](_0x40d279)||null,'attributesBefore':cloneDeep(this['_baseRootsAttributes']['get'](_0x40d279))||{},'attributesAfter':cloneDeep(this['_diffRootsAttributes']['get'](_0x40d279))};}return{'diffData':_0x4c5ae4,'authorsIds':Array['from'](_0x24e998)};}['_processRootBeforeSave'](_0x5b97c2){for(const [,_0x2bffb3]of _0x5b97c2['markers']){const _0x14eb86=_0x2bffb3['start']['getAncestors']()['filter'](_0xd58b0f=>'tableCell'==_0xd58b0f['name']);for(const _0x4d13da of _0x14eb86)0x1==_0x4d13da['childCount']&&_0x4d13da['getChild'](0x0)['is']('element','paragraph')&&_0x4d13da['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xadbef){this['_processRootBeforeSave'](_0xadbef);const _0x2f48b2=this['editor']['data']['toView'](_0xadbef,{}),_0x67a72d=Array['from'](_0x2f48b2['getChildren']())['map'](_0x484c05=>this['_getViewJson'](_0x484c05));return JSON['stringify'](_0x67a72d);}['_getViewJson'](_0x359827){if(_0x359827['is']('$text'))return _0x359827['data'];{const _0x8679eb=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5acbc7=_0x359827,_0x1cf242=this['editor']['data']['htmlProcessor']['domConverter'],_0x2e0494={'type':_0x8679eb['_getTypeCharForViewElement'](_0x5acbc7),'name':_0x5acbc7['name'],'attributes':Array['from'](_0x5acbc7['getAttributes']()),'children':Array['from'](_0x5acbc7['getChildren']())['map'](_0x6f484c=>this['_getViewJson'](_0x6f484c))};if(_0x359827['is']('uiElement')&&'$comment'!=_0x359827['name']){const _0x5dcddd=_0x359827['render'](_0x1cf242['domDocument'],_0x1cf242);_0x2e0494['children']['push'](_0x5dcddd['outerHTML']);}else{if(_0x359827['is']('rawElement')){const _0x2352e8=_0x1cf242['domDocument']['createElement'](_0x5acbc7['name']);_0x359827['render'](_0x2352e8,_0x1cf242),_0x2e0494['children']['push'](_0x2352e8['innerHTML']);}}const _0x51e35a=Array['from'](_0x5acbc7['getCustomProperties']());_0x51e35a['length']>0x0&&(_0x2e0494['customProperties']=_0x51e35a);const _0x2487b9=_0x5acbc7['getFillerOffset']();return null!==_0x2487b9&&(_0x2e0494['fillerOffset']=_0x2487b9),_0x2e0494;}}['_markChanges'](_0x384c4f,_0x3a12f3,_0x439a83,_0x1f1c8c,_0x5148ef){let _0x4efac7=null,_0xc0a8f=null,_0x110e03=0x0;const _0x156ed2=this['editor']['model'];for(let _0x2875db=0x0;_0x2875db<_0x3a12f3['length'];_0x2875db++){const _0xdf12f9=this['_getVidAttributeName'](_0x3a12f3[_0x2875db]),_0x375e7c=_0x3a12f3[_0x2875db]['item']['getAttribute'](_0xdf12f9),_0xf81172=_0x439a83['get'](_0x375e7c),_0x30985b=_0x2875db==_0x3a12f3['length']-0x1;(!_0x4efac7&&_0xf81172&&(_0x4efac7=_0xf81172,_0xc0a8f=_0x3a12f3[_0x2875db]),_0x4efac7&&(!_0xf81172||_0xf81172['userId']!=_0x4efac7['userId']))&&(_0xf090d6(_0xf81172,_getPosBefore(_0xc0a8f,_0x384c4f,_0x156ed2),_getPosBefore(_0x3a12f3[_0x2875db],_0x384c4f,_0x156ed2)),_0x4efac7=_0xf81172||null,_0xc0a8f=_0xf81172?_0x3a12f3[_0x2875db]:null),_0x4efac7&&_0x30985b&&_0xf090d6(_0xf81172,_getPosBefore(_0xc0a8f,_0x384c4f,_0x156ed2),_getPosAfter(_0x3a12f3[_0x2875db],_0x384c4f,_0x156ed2));}function _0xf090d6(_0x9da1e9,_0x3e85ee,_0x1f9098){const _0x50baed=_0x4efac7['userId'],_0x458e6d='revision:'+_0x1f1c8c+':'+_0x50baed+':'+_0x110e03++,_0x4c73d7=_0x156ed2['createRange'](_0x3e85ee,_0x1f9098);_0x384c4f['markers']['set'](_0x458e6d,_0x4c73d7),null!==_0x50baed&&_0x5148ef['add'](_0x50baed);}}['_getVidAttributeName'](_0x29a4eb){switch(_0x29a4eb['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2bad2b,_0x2c03d1){_0x2bad2b['baseVersion']=null;for(const _0x1d41ce in _0x2bad2b){const _0x576ccc=_0x2bad2b[_0x1d41ce];if(_0x576ccc instanceof ModelPosition){const _0x3b5a03=_0x2c03d1['get'](_0x576ccc['root']['rootName']);_0x2bad2b[_0x1d41ce]=this['_fixPosition'](_0x576ccc,_0x3b5a03);}if(_0x576ccc instanceof ModelRange){const _0x3bd458=_0x2c03d1['get'](_0x576ccc['root']['rootName']);_0x2bad2b[_0x1d41ce]=this['_fixRange'](_0x576ccc,_0x3bd458);}'root'===_0x1d41ce&&(_0x2bad2b['root']=_0x2c03d1['get'](_0x2bad2b['root']['rootName']));}}['_fixRange'](_0x438a4c,_0xfb86b9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x438a4c['start'],_0xfb86b9),this['_fixPosition'](_0x438a4c['end'],_0xfb86b9));}['_fixPosition'](_0x5daab0,_0x51538a){return this['editor']['model']['createPositionFromPath'](_0x51538a,_0x5daab0['path'],_0x5daab0['stickiness']);}['_handleInsertOperation'](_0x1c3e81){const _0x4fd454=this['_idsRoots']['get'](_0x1c3e81['position']['root']['rootName']),_0x4a42c7=this['_fixPosition'](_0x1c3e81['position'],_0x4fd454),_0x3d506e=null===_0x1c3e81['_authorId']?null:_0x1c3e81['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e04f2=_0x4a42c7['parent'],_0x373e6f=this['_revisionId'],_0x260d05=[];for(const _0x25cf30 of _0x1c3e81['nodes'])if(_0x25cf30['is']('element'))_0x260d05['push'](this['_makeIdsRoot'](_0x25cf30));else{for(let _0x383959=0x0;_0x383959<_0x25cf30['offsetSize'];_0x383959++)_0x260d05['push'](new ModelElement('$text',{'vid':this['_revisionId']++}));}const _0x30c983=this['_revisionId'];for(let _0x469f12=_0x373e6f;_0x469f12<_0x30c983;_0x469f12++)this['_touched']['set'](_0x469f12,{'userId':_0x3d506e});_0x1e04f2['_insertChild'](_0x4a42c7['offset'],_0x260d05);}['_handleMoveOperation'](_0x3721dc){(_0x3721dc=this['_cloneOperation'](_0x3721dc,this['_idsRoots']))['_execute']();const _0x1f14e9=null===_0x3721dc['_authorId']?null:_0x3721dc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x198b52=_0x3721dc['getMovedRangeStart'](),_0x142fa0=_0x198b52['parent'],_0x4d41cf=_0x198b52['offset'];!function _0x24af27(_0x1f8012,_0x5d26d7,_0x20d5b5,_0x119beb){for(let _0x3ef041=_0x20d5b5;_0x3ef041<_0x119beb;_0x3ef041++){const _0x4c2321=_0x5d26d7['getChild'](_0x3ef041);_0x4c2321['is']('element','$text')?_0x1f8012['set'](_0x4c2321['getAttribute']('vid'),{'userId':_0x1f14e9}):(_0x1f8012['set'](_0x4c2321['getAttribute']('vid_start'),{'userId':_0x1f14e9}),_0x24af27(_0x1f8012,_0x4c2321,0x0,_0x4c2321['childCount']),_0x1f8012['set'](_0x4c2321['getAttribute']('vid_end'),{'userId':_0x1f14e9}));}}(this['_touched'],_0x142fa0,_0x4d41cf,_0x4d41cf+_0x3721dc['howMany']);}['_handleMergeOperation'](_0x588cbc){const _0x5c2cf7=null===(_0x588cbc=this['_cloneOperation'](_0x588cbc,this['_idsRoots']))['_authorId']?null:_0x588cbc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c11c2=_0x588cbc['targetPosition']['parent'],_0x3609e8=_0x588cbc['sourcePosition']['parent'],_0x212fe8=_0x4c11c2['getAttribute']('vid_end'),_0x3c301d=_0x3609e8['getAttribute']('vid_start');_0x4c11c2['_setAttribute']('vid_end',_0x3609e8['getAttribute']('vid_end')),_0x3609e8['_setAttribute']('vid_end',_0x212fe8),this['_touched']['set'](_0x3c301d,{'userId':_0x5c2cf7}),this['_touched']['set'](_0x212fe8,{'userId':_0x5c2cf7}),_0x588cbc['_execute']();}['_handleSplitOperation'](_0x16a62c){const _0x16fa1e=null===(_0x16a62c=this['_cloneOperation'](_0x16a62c,this['_idsRoots']))['_authorId']?null:_0x16a62c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1be082=_0x16a62c['graveyardPosition'],_0x5e4123=_0x16a62c['splitPosition']['parent'];_0x16a62c['_execute']();const _0x1a15a6=_0x5e4123['getAttribute']('vid_end'),_0x28e776=_0x16a62c['insertionPosition']['nodeAfter'];if(_0x1be082){const _0x2af829=_0x28e776['getAttribute']('vid_end'),_0x571339=_0x5e4123['getAttribute']('vid_end');_0x5e4123['_setAttribute']('vid_end',_0x2af829),_0x28e776['_setAttribute']('vid_end',_0x571339),this['_touched']['set'](_0x5e4123['getAttribute']('vid_end'),{'userId':_0x16fa1e}),this['_touched']['set'](_0x28e776['getAttribute']('vid_start'),{'userId':_0x16fa1e});}else{const _0x4859e8=this['_revisionId']++,_0x4d3531=this['_revisionId']++;_0x5e4123['_setAttribute']('vid_end',_0x4859e8),_0x28e776['_setAttribute']('vid_start',_0x4d3531),_0x28e776['_setAttribute']('vid_end',_0x1a15a6),this['_touched']['set'](_0x4859e8,{'userId':_0x16fa1e}),this['_touched']['set'](_0x4d3531,{'userId':_0x16fa1e});}}['_handleMarkerOperation'](_0x347795){if(!_0x347795['affectsData'])return;const _0x3ca97f=(_0x347795=this['_cloneOperation'](_0x347795,this['_diffRoots']))['oldRange']?_0x347795['oldRange']['root']:null,_0x27ee25=_0x347795['newRange']?_0x347795['newRange']['root']:null;_0x3ca97f&&this['_markers']['delete'](_0x347795['name']),_0x27ee25&&this['_markers']['set'](_0x347795['name'],_0x347795['newRange']['clone']());const _0x3a2954=null===_0x347795['_authorId']?null:_0x347795['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x45f4d7=_0x347795['name'];if(!this['_touchedMarkers']['has'](_0x45f4d7))return void this['_touchedMarkers']['set'](_0x45f4d7,{'range':_0x347795['oldRange'],'userId':_0x3a2954});const _0x169ab1=this['_touchedMarkers']['get'](_0x45f4d7),_0x526b79=_0x169ab1['range'],_0x55976f=_0x347795['newRange'];null==_0x526b79&&null==_0x55976f||_0x526b79&&_0x55976f&&_0x526b79['isEqual'](_0x55976f)?this['_touchedMarkers']['delete'](_0x347795['name']):_0x169ab1['userId']=_0x3a2954;}['_handleRootOperation'](_0x4b0f5f,_0x1c940e){this['_diffRoots']['has'](_0x4b0f5f['rootName'])?this['_diffRoots']['get'](_0x4b0f5f['rootName'])['_isAttached']=_0x4b0f5f['isAdd']:(this['_diffRoots']['set'](_0x4b0f5f['rootName'],_emptyRoot(_0x4b0f5f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4b0f5f['rootName'],{}),_0x1c940e&&this['_idsRoots']['set'](_0x4b0f5f['rootName'],_emptyRoot(_0x4b0f5f['rootName'],!0x0)));const _0x315370=null===_0x4b0f5f['_authorId']?null:_0x4b0f5f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21ff7c=this['_touchedRoots']['get'](_0x4b0f5f['rootName']);_0x21ff7c&&_0x21ff7c['userId']===_0x315370?this['_touchedRoots']['delete'](_0x4b0f5f['rootName']):this['_touchedRoots']['set'](_0x4b0f5f['rootName'],{'userId':_0x315370,'isAttached':_0x4b0f5f['isAdd']});}['_handleRootAttributeOperation'](_0x6ee17d){const _0x568e35=this['_diffRootsAttributes']['get'](_0x6ee17d['root']['rootName']);null===_0x6ee17d['newValue']?delete _0x568e35[_0x6ee17d['key']]:_0x568e35[_0x6ee17d['key']]=_0x6ee17d['newValue'];}}function _cloneRoot(_0x252e49){const _0x13503c=_emptyRoot(_0x252e49['rootName'],_0x252e49['isAttached']());for(const _0x14bbe4 of _0x252e49['getChildren']()){const _0x5a3f6b=_0x14bbe4['_clone'](!0x0);_0x13503c['_appendChild'](_0x5a3f6b);}return _0x13503c;}function _emptyRoot(_0x51ff88,_0x31ac3b=!0x0){const _0x4e2f48=new ModelDocumentFragment();return _0x4e2f48['rootName']=_0x51ff88,_0x4e2f48['_isAttached']=_0x31ac3b,_0x4e2f48['isAttached']=()=>_0x4e2f48['_isAttached'],_0x4e2f48;}function _getPosBefore(_0x6e6e84,_0x506db8,_0x4f4ff6){const _0x23741d='elementEnd'==_0x6e6e84['type']?_0x4f4ff6['createPositionAt'](_0x6e6e84['item'],'end'):_0x4f4ff6['createPositionBefore'](_0x6e6e84['item']);return _0x4f4ff6['createPositionFromPath'](_0x506db8,_0x23741d['path'],_0x23741d['stickiness']);}function _getPosAfter(_0x28fb85,_0x2def12,_0x4e0ee1){const _0x1e2d20='elementStart'==_0x28fb85['type']?_0x4e0ee1['createPositionAt'](_0x28fb85['item'],0x0):_0x4e0ee1['createPositionAfter'](_0x28fb85['item']);return _0x4e0ee1['createPositionFromPath'](_0x2def12,_0x1e2d20['path'],_0x1e2d20['stickiness']);}class RevisionHistorySaveRevisionFormView extends/* #__PURE__ -- @preserve */
CssTransitionDisablerMixin(View){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1f7940,_0x287a0d){super(_0x1f7940),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x287a0d),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 _0x35e4e5=_0x96f9e2=>_0x96f9e2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x35e4e5),this['keystrokes']['set']('arrowleft',_0x35e4e5),this['keystrokes']['set']('arrowup',_0x35e4e5),this['keystrokes']['set']('arrowdown',_0x35e4e5);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4afedb){this['revisionNameInputView']['fieldView']['element']['value']=_0x4afedb['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x21f0e2){const _0x2761f0=new LabeledFieldView(this['locale'],createLabeledInputText),_0x520894=_0x2761f0['fieldView'];_0x520894['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x34d9b8=getTranslation$5(this['locale'],'Name\x20of\x20the\x20revision');return!_0x21f0e2&&(_0x34d9b8+='\x20('+getTranslation$5(this['locale'],'optional')+')'),(_0x2761f0['label']=_0x34d9b8,_0x520894['on']('input',()=>{this['revisionNameInputValue']=_0x520894['element']['value']['trim']();}),_0x2761f0);}}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 _0x26389a=this['editor'],_0x5403d9=_0x26389a['plugins']['get']('RevisionTracker');_0x26389a['ui']['componentFactory']['add']('revisionHistory',_0x2aee0e=>{const _0x24f293=createDropdown(_0x2aee0e),_0x5f2472=_0x24f293['panelView']['children'],_0x3e395f=new ListView(_0x2aee0e),_0x5eb3ac=new ListItemView(_0x2aee0e),_0x3dc90d=this['_createSaveRevisionButton'](ButtonView),_0x5a25fd=new ListItemView(_0x2aee0e),_0x1d2957=this['_createOpenRevisionButton'](ButtonView);return _0x24f293['bind']('isEnabled')['to'](_0x5403d9,'isReady',_0x5403d9,'isEnabled',_0x26389a,'isReadOnly',(_0x57ae6c,_0x149c69,_0x3a5a7c)=>_0x57ae6c&&_0x149c69&&!_0x3a5a7c),_0x24f293['buttonView']['set']({'icon':IconHistory,'label':getTranslation$5(_0x2aee0e,'Revision\x20history'),'tooltip':!0x0}),_0x3dc90d['set']({'withText':!0x0,'role':'menuitem'}),_0x1d2957['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x1d2957,'execute',()=>{_0x24f293['isOpen']=!0x1,_0x26389a['editing']['view']['focus']();},{'priority':'low'}),_0x5eb3ac['children']['add'](_0x3dc90d),_0x5a25fd['children']['add'](_0x1d2957),_0x3e395f['role']='menu',_0x3e395f['items']['addMany']([_0x5eb3ac,_0x5a25fd]),_0x5f2472['add'](_0x3e395f),_0x24f293;}),_0x26389a['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1ef51e=this['editor'],_0x36198f=_0x1ef51e['locale'],_0xba21b6=_0x1ef51e['plugins']['get']('RevisionTracker'),_0x2c64a9=new MenuBarMenuView(_0x36198f),_0x370552=new MenuBarMenuListView(_0x36198f);_0x2c64a9['bind']('isEnabled')['to'](_0xba21b6,'isReady',_0xba21b6,'isEnabled',_0x1ef51e,'isReadOnly',(_0x502e0c,_0x515ea7,_0x283787)=>_0x502e0c&&_0x515ea7&&!_0x283787),_0x2c64a9['buttonView']['set']({'icon':IconHistory,'label':getTranslation$5(_0x36198f,'Revision\x20history')});const _0x1b84c4=new MenuBarMenuListItemView(_0x36198f,_0x2c64a9),_0x2fc689=this['_createSaveRevisionButton'](MenuBarMenuListItemButtonView);_0x2fc689['delegate']('execute')['to'](_0x2c64a9),_0x1b84c4['children']['add'](_0x2fc689),_0x370552['items']['add'](_0x1b84c4);const _0x125854=new MenuBarMenuListItemView(_0x36198f,_0x2c64a9),_0x167ed9=this['_createOpenRevisionButton'](MenuBarMenuListItemButtonView);return _0x167ed9['delegate']('execute')['to'](_0x2c64a9),_0x125854['children']['add'](_0x167ed9),_0x370552['items']['add'](_0x125854),_0x2c64a9['panelView']['children']['add'](_0x370552),_0x2c64a9;}['_createSaveRevisionButton'](_0x1e6aec){const _0x1748d9=this['editor'],_0x2591e4=_0x1748d9['plugins']['get']('RevisionTracker'),_0x4ee4b6=new _0x1e6aec(_0x1748d9['locale']);return _0x4ee4b6['set']({'label':getTranslation$5(_0x1748d9['locale'],'Save\x20current\x20revision')}),_0x4ee4b6['bind']('isEnabled')['to'](_0x2591e4,'isReady',_0x2591e4,'isEnabled',_0x1748d9,'isReadOnly',(_0x36e1ef,_0x4e2783,_0x3e9e3c)=>_0x36e1ef&&_0x4e2783&&!_0x3e9e3c),this['listenTo'](_0x4ee4b6,'execute',()=>{this['_showDialog']();}),_0x4ee4b6;}['_createOpenRevisionButton'](_0x5cc656){const _0x10073e=this['editor'],_0x325114=_0x10073e['plugins']['get']('RevisionTracker'),_0x19a1b6=new _0x5cc656(_0x10073e['locale']);return _0x19a1b6['set']({'label':getTranslation$5(_0x10073e['locale'],'Open\x20revision\x20history')}),_0x19a1b6['bind']('isEnabled')['to'](_0x325114,'isReady',_0x10073e,'isReadOnly',(_0x82ad8,_0x29abf0)=>_0x82ad8&&!_0x29abf0),this['listenTo'](_0x19a1b6,'execute',()=>{_0x10073e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x19a1b6;}['_showDialog'](){const _0x5534cd=this['editor'],_0x359786=_0x5534cd['locale'],_0xbf2884=_0x5534cd['plugins']['get']('Dialog'),_0xc82aa3=_0x5534cd['plugins']['get']('RevisionTracker');function _0x598f96(_0x3c226c){_0x5534cd['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3c226c['revisionName']?_0x3c226c['revisionNameInputView']['errorText']=getTranslation$5(_0x359786,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5534cd['plugins']['get'](RevisionTracker)['saveRevision']({'name':_0x3c226c['revisionName']}),_0xbf2884['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x598f96(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xbf2884['show']({'id':'revisionSave','title':getTranslation$5(_0x359786,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':getTranslation$5(_0x5534cd['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xbf2884['hide']()},{'label':getTranslation$5(_0x5534cd['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4a61d4){_0x4a61d4['bind']('isEnabled')['to'](_0xc82aa3,'isReady',_0xc82aa3,'isEnabled',_0x5534cd,'isReadOnly',(_0x46f7cf,_0x5c4e5f,_0x452dfd)=>_0x46f7cf&&_0x5c4e5f&&!_0x452dfd);},'onExecute':()=>_0x598f96(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2f842f=this['editor'],_0x3d0a06=_0x2f842f['locale'];this['_saveRevisionFormView']=new RevisionHistorySaveRevisionFormView(_0x3d0a06,_0x2f842f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class ChangeDetailsView extends View{['changeId'];['_model'];constructor(_0x3dfecd,_0x8e1372){super(_0x3dfecd),this['_model']=_0x8e1372,this['changeId']=_0x8e1372['id'];const _0x4ce98b=this['bindTemplate'],_0x5adde2=getTranslation$5(_0x3dfecd,_0x8e1372['data']['isSuggestion']?'Suggested\x20by':'add'==_0x8e1372['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x8e1372['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4ce98b['to']('type',_0x4b0634=>'ck-revision-change__'+_0x4b0634)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5adde2}]},{'text':'\x20'+_0x8e1372['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class ChangeItem extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1a5035){super(),this['id']=_0x1a5035['id']||uid(),this['author']=_0x1a5035['author'],this['type']=_0x1a5035['type'],this['data']=_0x1a5035['data']||{},this['rootName']=_0x1a5035['rootName'],this['set']('createdAt',_0x1a5035['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(_0x3b3ca7,_0x43b972){this['newRevisionId']=_0x3b3ca7,this['oldRevisionId']=_0x43b972,this['changes']=new Collection();}['_setChanges'](_0x1f99f9){for(const _0x45d95e of _0x1f99f9)this['changes']['add'](_0x45d95e);}}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(_0x1d56e1){super(_0x1d56e1),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',(_0x5deb1a,_0x1b36d3,_0x48e8d1)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xfe1e66=>{for(const _0x183411 of this['editor']['editing']['view']['document']['roots'])_0x48e8d1?_0xfe1e66['removeClass']('ck-editor__editable__overlay',_0x183411):_0xfe1e66['addClass']('ck-editor__editable__overlay',_0x183411);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xb36cd5=>null!==_0xb36cd5),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5e8413,_0xc8a212,_0x3a1acb)=>_0x5e8413&&_0x3a1acb?_0xc8a212['changes']['getIndex'](_0x3a1acb):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4bc46f,_0x24e2f9)=>_0x4bc46f?_0x24e2f9['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](ContextualBalloon);}['init'](){const _0x3edfa3=this['editor'],_0x440c73=new ShowChangeCommand(_0x3edfa3,{'direction':'backward'}),_0x2896dc=new ShowChangeCommand(_0x3edfa3,{'direction':'forward'});(_0x3edfa3['commands']['add']('showPreviousChange',_0x440c73),_0x3edfa3['commands']['add']('showNextChange',_0x2896dc),_0x3edfa3['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x3edfa3)),this['on']('change:numberOfChanges',()=>{_0x440c73['refresh'](),_0x2896dc['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3edfa3['enableReadOnlyMode']('revision-viewer'),_0x3edfa3['plugins']['has']('WidgetToolbarRepository'))&&_0x3edfa3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x16dd7a){return await this['_utils']['loadRevisionData'](_0x16dd7a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x16dd7a);}async['getRevisionRootsAttributes'](_0x417a1c){return await this['_utils']['loadRevisionData'](_0x417a1c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x417a1c);}async['compare'](_0x3843c2,_0x4b1144,_0x5334c9=!0x1){if(!this['isEnabled'])return;const _0x1c0d37=this['diff'],_0xd0a4d6=this['repository'],_0xa1b043='string'==typeof _0x3843c2?_0xd0a4d6['getRevision'](_0x3843c2):_0x3843c2,_0x2d5306='string'==typeof _0x4b1144?_0xd0a4d6['getRevision'](_0x4b1144):_0x4b1144,_0x8e14e1=_0xa1b043['id'],_0x4f9098=_0x2d5306?_0x2d5306['id']:null;if(!_0x5334c9&&this['diff']&&this['diff']['newRevisionId']===_0x8e14e1&&this['diff']['oldRevisionId']===_0x4f9098)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new RevisionDiff(_0x8e14e1,_0x4f9098);const _0x3c93e2=this['_getRevisionsRange'](_0xa1b043,_0x2d5306,!0x0)['map'](_0x10e43f=>this['_utils']['loadRevisionData'](_0x10e43f,this['adapter']));return _0x3c93e2['push'](new Promise(_0x4a6bf4=>{setTimeout(_0x4a6bf4,0x14);})),Promise['all'](_0x3c93e2)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x255cbd=this['_getDiff'](_0x8e14e1,_0x4f9098);for(const _0x1d5acb of _0x255cbd['changes'])this['_changeIdToChange']['set'](_0x1d5acb['id'],_0x1d5acb);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3a1d06=>{for(const _0x41bde8 of this['editor']['model']['document']['getRootNames']())_0x3a1d06['detachRoot'](_0x41bde8);for(const _0x148997 of Object['keys'](_0x255cbd['model'])){const _0xdfb988=_0x3a1d06['addRoot'](_0x148997);for(const _0x4b2890 of Object['keys'](_0x255cbd['attributes'][_0x148997]))_0x3a1d06['setAttribute'](_0x4b2890,_0x255cbd['attributes'][_0x148997][_0x4b2890],_0xdfb988);_0x3a1d06['insert'](_0x255cbd['model'][_0x148997],_0xdfb988,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x255cbd['changes'])),this['isReady']=!0x0;})['catch'](_0x485198=>{console['error'](_0x485198),this['_cleanUp'](),_0x1c0d37&&(this['diff']=_0x1c0d37),this['isReady']=!0x0;});}['addRevisionData'](_0x368ddc,_0xad2240){const _0x3795d2=this['repository']['createRevision'](_0x368ddc);return _0x3795d2['on']('_update',(_0x31b943,_0x216000,_0x1c9c4a)=>_0xad2240(_0x216000,_0x1c9c4a,_0x3795d2)),this['repository']['addRevision'](_0x3795d2),_0x3795d2;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x429552=>{for(const _0x3311f6 of this['editor']['model']['document']['getRootNames']())_0x429552['detachRoot'](_0x3311f6);});}['_sortAndFilterDiffChanges'](_0x55d44f){const _0x62a4b1=[],_0x4af1e3=new Map();for(const _0x58e91d of this['editor']['model']['document']['getRootNames']()){const _0x418b59=this['editor']['editing']['view']['getDomRoot'](_0x58e91d);if(!_0x418b59)continue;const _0x5ddbd7=_0x418b59['getClientRects']()['item'](0x0);_0x5ddbd7&&(_0x62a4b1['push'](_0x58e91d),_0x4af1e3['set'](_0x58e91d,_0x5ddbd7));}return _0x62a4b1['sort']((_0x423e41,_0x1d5282)=>{const _0x5114eb=_0x4af1e3['get'](_0x423e41),_0x425361=_0x4af1e3['get'](_0x1d5282);return _0x5114eb['y']-_0x425361['y']||_0x5114eb['x']-_0x425361['x'];}),(_0x55d44f=_0x55d44f['filter'](_0x499c78=>_0x62a4b1['includes'](_0x499c78['rootName'])))['sort']((_0x2b31c5,_0x365e28)=>_0x62a4b1['indexOf'](_0x2b31c5['rootName'])-_0x62a4b1['indexOf'](_0x365e28['rootName'])),_0x55d44f;}['_makeTape'](_0x3604fc){const _0x3906c1=Array['from'](_0x3604fc['markers'])['filter'](([_0x5ac296,_0x57b0e6])=>_0x5ac296['startsWith']('revision:')&&!_0x57b0e6['isCollapsed']),_0x5b967f=Array['from'](this['editor']['model']['createRangeIn'](_0x3604fc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3906c1['length'])for(const _0x3c2a0f of _0x5b967f){const [_0x8cbfaf,_0x27206e]=_0x3906c1[0x0],[,_0x5148ae,_0x3f4853]=_0x8cbfaf['split'](':');if(_0x27206e['end']['isEqual'](_0x3c2a0f['nextPosition'])&&_0x3906c1['shift'](),(_0x3c2a0f['previousPosition']['isEqual'](_0x27206e['start'])||_0x3c2a0f['previousPosition']['isAfter'](_0x27206e['start']))&&('insertion'==_0x5148ae?_0x3c2a0f['isAdded']={'userId':_0x3f4853}:'deletion'==_0x5148ae&&(_0x3c2a0f['isRemoved']={'userId':_0x3f4853})),0x0==_0x3906c1['length'])break;}return _0x5b967f;}['_refreshStartEndIndex'](_0x42afdf){const _0x2038d3=new Map();for(let _0x5d0047=0x0;_0x5d0047<_0x42afdf['length'];_0x5d0047++)'text'===_0x42afdf[_0x5d0047]['type']?(_0x42afdf[_0x5d0047]['item']['startIndex']=_0x5d0047,_0x42afdf[_0x5d0047]['item']['endIndex']=_0x5d0047):('elementStart'===_0x42afdf[_0x5d0047]['type']?_0x42afdf[_0x5d0047]['item']['startIndex']=_0x5d0047:'elementEnd'===_0x42afdf[_0x5d0047]['type']&&(_0x42afdf[_0x5d0047]['item']['endIndex']=_0x5d0047),_0x2038d3['set'](_0x42afdf[_0x5d0047]['id'],_0x5d0047));for(const _0x53cf30 of _0x2038d3['values']())'elementStart'===_0x42afdf[_0x53cf30]['type']?_0x42afdf[_0x53cf30]['item']['endIndex']=_0x2038d3['get'](_0x42afdf[_0x53cf30]['pairId']):'elementEnd'===_0x42afdf[_0x53cf30]['type']&&(_0x42afdf[_0x53cf30]['item']['startIndex']=_0x2038d3['get'](_0x42afdf[_0x53cf30]['pairId']));}['_processTape'](_0x146c60){for(let _0x3e4488=0x0;_0x3e4488<_0x146c60['length'];_0x3e4488++){if('elementStart'===_0x146c60[_0x3e4488]['type'])_0x146c60[_0x3e4488]['item']['startIndex']=_0x3e4488;else{if('elementEnd'===_0x146c60[_0x3e4488]['type']){_0x146c60[_0x3e4488]['item']['endIndex']=_0x3e4488;const _0x41ff56=_0x146c60[_0x3e4488]['item']['startIndex'];_0x146c60[_0x41ff56]['pairId']=_0x146c60[_0x3e4488]['id'],_0x146c60[_0x3e4488]['pairId']=_0x146c60[_0x41ff56]['id'];}else _0x146c60[_0x3e4488]['item']['startIndex']=_0x3e4488,_0x146c60[_0x3e4488]['item']['endIndex']=_0x3e4488,_0x146c60[_0x3e4488]['pairId']=null;}_0x146c60[_0x3e4488]['markersStart']||(_0x146c60[_0x3e4488]['markersStart']=[],_0x146c60[_0x3e4488]['markersEnd']=[]);}}['_markInsertions'](_0x44a176,_0x500a4d){const _0x42cd89=_0x44a176['filter'](_0x19150c=>!_0x19150c['isAdded']);for(let _0x5c1b46=0x0;_0x5c1b46<_0x500a4d['length'];_0x5c1b46++)_0x500a4d[_0x5c1b46]['isAdded']&&(_0x42cd89[_0x5c1b46]['isAdded']=_0x500a4d[_0x5c1b46]['isAdded']);}['_getDiff'](_0x397926,_0xfe4614=null){const _0x194783=this['repository']['getRevision'](_0x397926),_0x178120=_0xfe4614?this['repository']['getRevision'](_0xfe4614):null,_0x2727ee=this['_getRevisionsRange'](_0x194783,_0x178120),_0x3f01fd=_0x2727ee[_0x2727ee['length']-0x1],_0x5a1059=new Map(),_0x379e28={'model':{},'attributes':{},'changes':[]},_0x5b014d=new Set(),_0x4dc9b9=new Map();for(let _0x33bc01=_0x2727ee['length']-0x1;_0x33bc01>=0x0;_0x33bc01--){const _0x1ae97e=_0x2727ee[_0x33bc01];for(const _0xc27b1c of Object['keys'](_0x1ae97e['diffData']))if(_0x1ae97e['diffData'][_0xc27b1c]['attachChange']){const _0x48894a=_0x1ae97e['diffData'][_0xc27b1c]['attachChange'];_0x48894a['isAttached']?(_0x5b014d['add'](_0xc27b1c),_0x4dc9b9['has'](_0xc27b1c)&&_0x4dc9b9['get'](_0xc27b1c)['userId']==_0x48894a['userId']?_0x4dc9b9['delete'](_0xc27b1c):_0x4dc9b9['set'](_0xc27b1c,_0x48894a)):_0x4dc9b9['has'](_0xc27b1c)?(_0x5b014d['delete'](_0xc27b1c),_0x4dc9b9['delete'](_0xc27b1c)):(_0x5b014d['add'](_0xc27b1c),_0x4dc9b9['set'](_0xc27b1c,_0x48894a));}else _0x5b014d['add'](_0xc27b1c);}for(const _0xa20195 of _0x5b014d){const _0x361c19=_0x4dc9b9['has'](_0xa20195)&&!_0x4dc9b9['get'](_0xa20195)['isAttached'];let _0x13fe88=_0x361c19?_0x2727ee['length']-0x1:0x0;const _0x811eb9=_0x361c19?-0x1:0x1;for(;_0x2727ee[_0x13fe88];){const _0x4a7630=_0x2727ee[_0x13fe88];if(_0x4a7630['diffData'][_0xa20195]){const _0x235d68=_0x361c19?_0x4a7630['diffData'][_0xa20195]['attributesBefore']:_0x4a7630['diffData'][_0xa20195]['attributesAfter'];_0x379e28['attributes'][_0xa20195]=_0x235d68?cloneDeep(_0x235d68):{};break;}_0x13fe88+=_0x811eb9;}}for(const _0x2b1eb6 of _0x2727ee){_0x2b1eb6['model']={};for(const _0x420c07 of _0x2b1eb6['authors'])_0x5a1059['set'](_0x420c07['id'],_0x420c07);for(const _0x3a5bc7 of _0x5b014d){const _0x5f3df1=_0x2b1eb6['diffData'][_0x3a5bc7]?_0x2b1eb6['diffData'][_0x3a5bc7]['insertions']:'[]',_0x3ebdfc=_0x2b1eb6['diffData'][_0x3a5bc7]?_0x2b1eb6['diffData'][_0x3a5bc7]['deletions']:'[]';_0x2b1eb6['model'][_0x3a5bc7]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5f3df1),'deletions':this['_utils']['_makeModelFromViewString'](_0x3ebdfc)};}}for(const _0x15d5bf of _0x5b014d){let _0x5efb39=null,_0x3d6520=0x0;const _0x4fb04b=new Map(Array['from'](_0x194783['model'][_0x15d5bf]['insertions']['markers'])['filter'](([_0x235f47])=>!_0x235f47['startsWith']('revision:')));let _0x2500c1=0x0;for(const _0x3e0fe3 of _0x2727ee){const _0x3baa4d=this['_makeTape'](_0x3e0fe3['model'][_0x15d5bf]['insertions']);_0x3e0fe3==_0x194783?(_0x5efb39=_0x3baa4d,_0x3d6520=_0x5efb39['length'],_0x5efb39['forEach'](_0x3fa41e=>{_0x3fa41e['id']=_0x2500c1++;}),this['_processTape'](_0x5efb39)):this['_markInsertions'](_0x5efb39,_0x3baa4d);const _0x90c9d=_0x5efb39['filter'](_0x310d2d=>!_0x310d2d['isAdded'])['map'](_0x45e38f=>_0x45e38f['id']);let _0x5b1a14=0x0;const _0x1c8e51=this['_makeTape'](_0x3e0fe3['model'][_0x15d5bf]['deletions']);_0x1c8e51['forEach'](_0x47d3a7=>{_0x47d3a7['isRemoved']?_0x47d3a7['id']=_0x3d6520++:_0x47d3a7['id']=_0x90c9d[_0x5b1a14++];}),this['_processTape'](_0x1c8e51),this['_setDistance'](_0x5efb39,'isAdded'),this['_setDistance'](_0x1c8e51,'isRemoved'),_0x3e0fe3==_0x194783&&this['_markMarkers'](_0x5efb39,_0x4fb04b),_0x5efb39=this['_joinTapes'](_0x5efb39,_0x1c8e51),this['_refreshStartEndIndex'](_0x5efb39),this['_setDistance'](_0x5efb39,'isRemoved');}_0x5efb39=_0x5efb39['filter'](_0x1e7021=>!(_0x1e7021['isAdded']&&_0x1e7021['isRemoved']));const _0x3a404d=new Map(_0x3f01fd['model'][_0x15d5bf]['deletions']['markers']),_0x136129=new Set(_0x4fb04b['keys']());for(const _0x4a8fdd of _0x3a404d['keys']())_0x136129['delete'](_0x4a8fdd);this['_markSuggestions'](_0x5efb39,_0x136129),this['_fixObsoleteTags'](_0x5efb39),_0x5efb39=this['_removeMissingPairs'](_0x5efb39),_0x5efb39=this['_markMismatchedRemovedTags'](_0x5efb39),_0x5efb39=this['_removeUnsupportedChanges'](_0x5efb39);const {root:_0x532e7e,changes:_0x2eb503}=this['_makeModelFromTape'](_0x5efb39,_0x5a1059,_0x15d5bf);_0x379e28['model'][_0x15d5bf]=_0x532e7e;const _0x3a0ac5=_0x4dc9b9['get'](_0x15d5bf);if(_0x3a0ac5){const _0x6ce150=_0x5a1059['get'](_0x3a0ac5['userId']),_0x3a6b88=new ChangeItem({'author':_0x6ce150,'type':_0x3a0ac5['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x15d5bf});_0x2eb503['unshift'](_0x3a6b88),_0x379e28['attributes'][_0x15d5bf]['revisionHistoryAttachChange']=_0x3a6b88['id'];}_0x379e28['changes']=_0x379e28['changes']['concat'](_0x2eb503);}return _0x379e28;}['_markMarkers'](_0x39a590,_0x3e43e5){for(let _0x4c0bb1=0x0;_0x4c0bb1<_0x39a590['length'];_0x4c0bb1++)for(const [_0x285e80,_0x4ddfff]of _0x3e43e5)!_0x4ddfff['isCollapsed']&&_0x4ddfff['start']['isEqual'](_0x39a590[_0x4c0bb1]['previousPosition'])&&_0x39a590[_0x4c0bb1]['markersStart']['push'](_0x285e80),_0x4ddfff['end']['isEqual'](_0x39a590[_0x4c0bb1]['nextPosition'])&&_0x39a590[_0x4c0bb1]['markersEnd']['push'](_0x285e80);}['_joinTapes'](_0x2d6e3e,_0x472d51){let _0x536490=[],_0x439e25=0x0,_0x1e3181=0x0;for(;_0x439e25<_0x2d6e3e['length']||_0x1e3181<_0x472d51['length'];){const _0x746345=_0x2d6e3e[_0x439e25]||{},_0x48f371=_0x472d51[_0x1e3181]||{};if(_0x746345['id']==_0x48f371['id'])_0x439e25++,_0x1e3181++,_0x536490['push'](_0x746345);else{if(_0x48f371['isRemoved']&&_0x746345['isAdded']){const {commonTape:_0xb4ca52,iEnd:_0x81045e,jEnd:_0x14a0b3}=this['_threeWayMerge'](_0x2d6e3e,_0x439e25,_0x472d51,_0x1e3181);_0x536490=_0x536490['concat'](_0xb4ca52),_0x439e25=_0x81045e,_0x1e3181=_0x14a0b3;}else _0x48f371['isRemoved']?(_0x1e3181++,_0x536490['push'](_0x48f371)):(_0x439e25++,_0x536490['push'](_0x746345));}}return _0x536490;}['_markSuggestions'](_0x460af3,_0x2e9cd6){const _0x5f0e03=[];for(let _0x343455=0x0;_0x343455<_0x460af3['length'];_0x343455++){for(let _0x2c8195=0x0;_0x2c8195<_0x460af3[_0x343455]['markersStart']['length'];_0x2c8195++){const _0x5a874e=_0x460af3[_0x343455]['markersStart'][_0x2c8195];if(!_0x2e9cd6['has'](_0x5a874e))continue;const {group:_0x37b669,type:_0x4cd18e,authorId:_0x1d47dd}=_0x2bf2ec(_0x5a874e);'revision-suggestion'!=_0x37b669||'insertion'!=_0x4cd18e&&'deletion'!=_0x4cd18e||(_0x5f0e03['unshift']({'type':_0x4cd18e,'name':_0x5a874e,'userId':_0x1d47dd}),_0x460af3[_0x343455]['markersStart']['splice'](_0x2c8195,0x1),_0x2c8195--);}_0x222d20(_0x460af3[_0x343455]);for(let _0x50b227=0x0;_0x50b227<_0x460af3[_0x343455]['markersEnd']['length'];_0x50b227++){const _0x4e0423=_0x460af3[_0x343455]['markersEnd'][_0x50b227];if(!_0x2e9cd6['has'](_0x4e0423))continue;const {group:_0x469b7b,type:_0xa2cf52}=_0x2bf2ec(_0x4e0423);if('revision-suggestion'!=_0x469b7b||'insertion'!=_0xa2cf52&&'deletion'!=_0xa2cf52)continue;_0x460af3[_0x343455]['markersEnd']['splice'](_0x50b227,0x1),_0x50b227--;const _0x10a2bc=_0x5f0e03['findIndex'](_0x4f02fc=>_0x4f02fc['name']==_0x4e0423);_0x10a2bc>-0x1&&_0x5f0e03['splice'](_0x10a2bc,0x1);}}function _0x2bf2ec(_0x136227){const _0x5a0505=_0x136227['split'](':');return{'group':_0x5a0505[0x0],'type':_0x5a0505[0x1],'subType':_0x5a0505['length']>=0x5?_0x5a0505[0x2]:null,'id':_0x5a0505['length']<0x5?_0x5a0505[0x2]:_0x5a0505[0x3],'authorId':_0x5a0505['length']<0x5?_0x5a0505[0x3]:_0x5a0505[0x4],'markerCount':0x6==_0x5a0505['length']?_0x5a0505[0x5]:null};}function _0x222d20(_0x3435af){for(let _0x2a6c9c=0x0;_0x2a6c9c<_0x5f0e03['length'];_0x2a6c9c++){if(_0x3435af['isAdded']&&'insertion'==_0x5f0e03[_0x2a6c9c]['type']&&_0x3435af['isAdded']['userId']==_0x5f0e03[_0x2a6c9c]['userId'])return _0x3435af['isAddSuggestion']=_0x5f0e03[_0x2a6c9c],void delete _0x3435af['isAdded'];if(!_0x3435af['isAdded']&&!_0x3435af['isRemoved']&&'deletion'==_0x5f0e03[_0x2a6c9c]['type'])return void(_0x3435af['isRemoveSuggestion']=_0x5f0e03[_0x2a6c9c]);}}}['_setDistance'](_0x31f48f,_0x2e9ee2){let _0x107230=0x0,_0x51a3c0=!0x1;const _0x5ce2a2=new Map();for(const _0x34367b of _0x31f48f)_0x34367b[_0x2e9ee2]?_0x51a3c0&&(_0x107230++,_0x51a3c0=!0x1):(_0x107230++,_0x51a3c0=!0x0),_0x5ce2a2['set'](_0x34367b['id'],_0x107230);for(let _0xa2bdbb=0x0;_0xa2bdbb<_0x31f48f['length'];_0xa2bdbb++){if('isRemoved'==_0x2e9ee2&&_0x31f48f[_0xa2bdbb]['isAdded']||'isAdded'==_0x2e9ee2&&_0x31f48f[_0xa2bdbb]['isRemoved'])continue;if('text'==_0x31f48f[_0xa2bdbb]['type']){_0x31f48f[_0xa2bdbb]['distance']=0x0;continue;}const _0x5ac617=_0x5ce2a2['get'](_0x31f48f[_0xa2bdbb]['pairId']),_0x2c2e46=_0x5ce2a2['get'](_0x31f48f[_0xa2bdbb]['id']);_0x31f48f[_0xa2bdbb]['distance']=_0x5ac617-_0x2c2e46;}}['_getRevisionsRange'](_0x44bd4a,_0x55e241,_0x51087f=!0x1){const _0x3fb6e2=[];let _0x4bc881=this['repository']['getIndex'](_0x44bd4a),_0x2282a1=this['repository']['getIndex'](_0x55e241);for(-0x1==_0x2282a1&&(_0x2282a1=this['repository']['_revisions']['length'],_0x51087f=!0x1);_0x4bc881<_0x2282a1;)_0x3fb6e2['push'](this['repository']['getRevision'](_0x4bc881)),_0x4bc881++;return _0x51087f&&_0x3fb6e2['push'](this['repository']['getRevision'](_0x4bc881)),_0x3fb6e2;}['_threeWayMerge'](_0x549c7b,_0x2d867b,_0x46fc63,_0x67195f){const _0x531817=this['editor']['model']['schema'];let _0x2cbef1=_0x2d867b;for(;_0x549c7b[_0x2cbef1]&&_0x549c7b[_0x2cbef1]['isAdded'];)_0x2cbef1++;let _0x207e51=_0x67195f;for(;_0x46fc63[_0x207e51]&&_0x46fc63[_0x207e51]['isRemoved'];)_0x207e51++;_0x3ab3c4(_0x549c7b,_0x2d867b,_0x2cbef1),_0x3ab3c4(_0x46fc63,_0x67195f,_0x207e51);const _0x5d2936=_0x46fc63['slice'](_0x67195f,_0x207e51)['concat'](_0x549c7b['slice'](_0x2d867b,_0x2cbef1));return _0x5d2936['sort']((_0x513b30,_0xcfe94c)=>_0x513b30['side']!=_0xcfe94c['side']?_0x513b30['side']-_0xcfe94c['side']:_0x513b30['level']!=_0xcfe94c['level']?_0x513b30['level']-_0xcfe94c['level']:_0x513b30['distance']!=_0xcfe94c['distance']?_0xcfe94c['distance']-_0x513b30['distance']:!!_0x513b30['isAdded']!=!!_0xcfe94c['isAdded']?-0x1==_0x513b30['side']||0x0==_0x513b30['side']?_0x513b30['isAdded']?-0x1:0x1:_0x513b30['isAdded']?0x1:-0x1:_0x513b30['index']-_0xcfe94c['index']),{'commonTape':_0x5d2936,'iEnd':_0x2cbef1,'jEnd':_0x207e51};function _0x3ab3c4(_0x32d6ee,_0x13d791,_0x5ca2fd){let _0x497836=-0x1,_0x4de3d2=Number['POSITIVE_INFINITY'],_0x19ca49=!0x0;for(let _0x35ac38=_0x13d791;_0x35ac38<_0x5ca2fd;_0x35ac38++)if(_0x531817['isInline'](_0x32d6ee[_0x35ac38]['item'])||(_0x19ca49=!0x1),_0x32d6ee[_0x35ac38]['item']['startIndex']<_0x13d791&&(_0x497836=_0x35ac38),_0x32d6ee[_0x35ac38]['item']['endIndex']>=_0x5ca2fd){_0x4de3d2=_0x35ac38;break;}_0x19ca49&&(_0x497836=_0x5ca2fd-0x1);for(let _0xf6d8cd=_0x13d791;_0xf6d8cd<_0x5ca2fd;_0xf6d8cd++)_0x32d6ee[_0xf6d8cd]['side']=_0xf6d8cd<=_0x497836?-0x1:_0xf6d8cd<_0x4de3d2?0x0:0x1,_0x32d6ee[_0xf6d8cd]['index']=_0xf6d8cd;let _0x16e3c1=0x0;for(let _0x5debf0=_0x13d791;_0x5debf0<=_0x497836;_0x5debf0++)0x0==_0x32d6ee[_0x5debf0]['distance']?_0x32d6ee[_0x5debf0]['level']=_0x16e3c1:(_0x16e3c1++,_0x32d6ee[_0x5debf0]['level']=_0x16e3c1,_0x16e3c1++);for(let _0x43d5c5=_0x13d791;_0x43d5c5<_0x5ca2fd;_0x43d5c5++)0x0==_0x32d6ee[_0x43d5c5]['side']&&(_0x32d6ee[_0x43d5c5]['level']=_0x16e3c1);_0x16e3c1=0x0;for(let _0x1fc206=_0x5ca2fd-0x1;_0x1fc206>=_0x4de3d2;_0x1fc206--)0x0==_0x32d6ee[_0x1fc206]['distance']?_0x32d6ee[_0x1fc206]['level']=_0x16e3c1:(_0x16e3c1--,_0x32d6ee[_0x1fc206]['level']=_0x16e3c1,_0x16e3c1--);}}['_fixObsoleteTags'](_0x32d523){const _0x3ffe24=new Map(),_0x418f71=this['editor']['model']['schema'];for(let _0x11d238=0x1;_0x11d238<_0x32d523['length'];_0x11d238++){let _0x5e4570,_0x2ce61b,_0x2cb25d;const _0x381548=_0x32d523[_0x11d238],_0xe15866=_0x32d523[_0x11d238-0x1];if('text'==_0x381548['type'])continue;if(_0x381548['type']!=_0xe15866['type'])continue;if(!_0x418f71['isBlock'](_0xe15866['item'])||_0x418f71['isLimit'](_0xe15866['item']))continue;if(!_0x418f71['isBlock'](_0x381548['item'])||_0x418f71['isLimit'](_0x381548['item']))continue;if((_0x32d523[_0x11d238]['isAdded']||_0x32d523[_0x11d238]['isAddSuggestion'])&&_0x32d523[_0x11d238-0x1]['isRemoved'])_0x5e4570=_0x32d523[_0x11d238],_0x2ce61b=_0x32d523[_0x11d238-0x1],_0x2cb25d=_0x11d238-0x1;else{if(!_0x32d523[_0x11d238]['isRemoved']||!_0x32d523[_0x11d238-0x1]['isAdded']&&!_0x32d523[_0x11d238-0x1]['isAddSuggestion'])continue;_0x5e4570=_0x32d523[_0x11d238-0x1],_0x2ce61b=_0x32d523[_0x11d238],_0x2cb25d=_0x11d238;}const _0x24a658=_0x5e4570['level']==_0x2ce61b['level'],_0x324293=Math['abs'](_0x5e4570['level'])<Math['abs'](_0x2ce61b['level'])&&0x0==_0x2ce61b['distance'];(_0x24a658||_0x324293)&&(_0x3ffe24['set'](_0x2ce61b['id'],_0x5e4570['id']),_0x32d523['splice'](_0x2cb25d,0x1),_0x11d238--,_0x5e4570['isAdded']=!0x1);}for(let _0x3c9d72=0x0;_0x3c9d72<_0x32d523['length'];_0x3c9d72++)_0x3ffe24['has'](_0x32d523[_0x3c9d72]['pairId'])&&(_0x32d523[_0x3c9d72]['pairId']=_0x3ffe24['get'](_0x32d523[_0x3c9d72]['pairId']));}['_removeMissingPairs'](_0x4f4da2){const _0x2cefa3=new Set(_0x4f4da2['map'](_0x5c5075=>_0x5c5075['id']));for(let _0x5d737b=0x0;_0x5d737b<_0x4f4da2['length'];_0x5d737b++)_0x2cefa3['has'](_0x4f4da2[_0x5d737b]['pairId'])||0x0==_0x4f4da2[_0x5d737b]['distance']||(_0x4f4da2[_0x5d737b]['isIncorrect']=!0x0);return _0x4f4da2['filter'](_0x54e193=>!_0x54e193['isIncorrect']);}['_markMismatchedRemovedTags'](_0x192fa1){const _0x36a258=new Set();for(let _0x334994=0x0;_0x334994<_0x192fa1['length'];_0x334994++){if(_0x36a258['has'](_0x192fa1[_0x334994]['id'])&&_0x192fa1[_0x334994]['isRemoved']&&(_0x192fa1[_0x334994]['isIncorrect']=!0x0),_0x192fa1[_0x334994]['isIncorrect'])continue;if(0x0==_0x192fa1[_0x334994]['distance'])continue;if('elementStart'!=_0x192fa1[_0x334994]['type'])continue;if(null==_0x192fa1[_0x334994]['pairId'])continue;let _0x63316=_0x334994+0x1,_0x250f74=0x0;for(;_0x192fa1[_0x63316]['id']!=_0x192fa1[_0x334994]['pairId'];)'elementStart'==_0x192fa1[_0x63316]['type']?_0x250f74++:'elementEnd'==_0x192fa1[_0x63316]['type']&&_0x250f74--,_0x63316++;if(0x0!=_0x250f74){if(_0x192fa1[_0x334994]['isRemoved'])_0x192fa1[_0x334994]['isIncorrect']=!0x0;else{for(;_0x63316!=_0x334994;)_0x192fa1[_0x63316]['isRemoved']&&0x0!=_0x192fa1[_0x63316]['distance']&&(_0x192fa1[_0x63316]['isIncorrect']=!0x0,_0x36a258['add'](_0x192fa1[_0x63316]['pairId'])),_0x63316--;}}}return _0x192fa1['filter'](_0x647433=>!_0x647433['isIncorrect']);}['_removeUnsupportedChanges'](_0x149402){const _0x43c6a9=this['editor']['model']['schema'];for(let _0x156561=0x0;_0x156561<_0x149402['length'];_0x156561++){if(!(_0x149402[_0x156561]['isAdded']||_0x149402[_0x156561]['isAddSuggestion']||_0x149402[_0x156561]['isRemoved']||_0x149402[_0x156561]['isRemoveSuggestion']))continue;if(0x0==_0x149402[_0x156561]['distance'])continue;const _0x2cf645=_0x149402[_0x156561]['item'];_0x43c6a9['isBlock'](_0x2cf645)||_0x43c6a9['isLimit'](_0x2cf645)||(_0x149402[_0x156561]['isAdded']&&delete _0x149402[_0x156561]['isAdded'],_0x149402[_0x156561]['isAddSuggestion']&&delete _0x149402[_0x156561]['isAddSuggestion'],_0x149402[_0x156561]['isRemoveSuggestion']&&delete _0x149402[_0x156561]['isRemoveSuggestion'],_0x149402[_0x156561]['isRemoved']&&(_0x149402[_0x156561]['isIncorrect']=!0x0));}return _0x149402['filter'](_0x3e3555=>!_0x3e3555['isIncorrect']);}['_makeModelFromTape'](_0xc07dcf,_0x548ece,_0x3cd9fb){const _0x202722=new ModelDocumentFragment(),_0x781ddb=[],_0x471b44=new Map(),_0x1bcf53=this['editor']['model'],_0x1d81ee=_0x1bcf53['schema'],_0x3bb9fc=[_0x202722],_0x228bbe={},_0x612053={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1bb0e6=null;const _0x43b133=[0x0];for(let _0x3f52c7=0x0;_0x3f52c7<_0xc07dcf['length'];_0x3f52c7++)if('elementStart'===_0xc07dcf[_0x3f52c7]['type']){_0xc07dcf[_0x3f52c7]['previousPosition']=_0x1bcf53['createPositionFromPath'](_0x202722,_0x43b133);const _0x4401cd=new ModelElement(_0xc07dcf[_0x3f52c7]['item']['name'],_0xc07dcf[_0x3f52c7]['item']['getAttributes']());_0x3bb9fc[0x0]['_appendChild'](_0x4401cd),_0x43b133['push'](0x0),_0x3bb9fc['unshift'](_0x4401cd),_0xc07dcf[_0x3f52c7]['nextPosition']=_0x1bcf53['createPositionFromPath'](_0x202722,_0x43b133);}else'elementEnd'===_0xc07dcf[_0x3f52c7]['type']?(_0x3bb9fc['shift'](),_0xc07dcf[_0x3f52c7]['previousPosition']=_0x1bcf53['createPositionFromPath'](_0x202722,_0x43b133),_0x43b133['pop'](),_0x43b133[_0x43b133['length']-0x1]++,_0xc07dcf[_0x3f52c7]['nextPosition']=_0x1bcf53['createPositionFromPath'](_0x202722,_0x43b133)):(_0xc07dcf[_0x3f52c7]['previousPosition']=_0x1bcf53['createPositionFromPath'](_0x202722,_0x43b133),_0x1bb0e6?_0x1bb0e6['_data']+=_0xc07dcf[_0x3f52c7]['item']['data']:_0x1bb0e6=new ModelText(_0xc07dcf[_0x3f52c7]['item']['data'],_0xc07dcf[_0x3f52c7]['item']['getAttributes']()),_0xc07dcf[_0x3f52c7+0x1]&&'text'===_0xc07dcf[_0x3f52c7+0x1]['type']&&_0x382c5f(_0x1bb0e6,_0xc07dcf[_0x3f52c7+0x1]['item'])||(_0x3bb9fc[0x0]['_appendChild'](_0x1bb0e6),_0x1bb0e6=null),_0x43b133[_0x43b133['length']-0x1]+=_0xc07dcf[_0x3f52c7]['item']['offsetSize'],_0xc07dcf[_0x3f52c7]['nextPosition']=_0x1bcf53['createPositionFromPath'](_0x202722,_0x43b133));for(let _0x5b59f5=0x0;_0x5b59f5<_0xc07dcf['length'];_0x5b59f5++){const _0x338a1d=_0xc07dcf[_0x5b59f5]['previousPosition'],_0x4e2c78=_0xc07dcf[_0x5b59f5]['nextPosition'];for(const _0x55bec0 of _0xc07dcf[_0x5b59f5]['markersStart'])_0x471b44['set'](_0x55bec0,{'start':_0x338a1d,'end':null});_0x33d483('isRemoveSuggestion',_0x5b59f5,_0x338a1d,_0x4e2c78),_0x33d483('isAddSuggestion',_0x5b59f5,_0x338a1d,_0x4e2c78),_0x33d483('isRemoved',_0x5b59f5,_0x338a1d,_0x4e2c78),_0x33d483('isAdded',_0x5b59f5,_0x338a1d,_0x4e2c78);for(const _0x2a713c of _0xc07dcf[_0x5b59f5]['markersEnd']){const _0x5d8088=_0x471b44['get'](_0x2a713c);_0x5d8088?_0x5d8088['end']=_0x4e2c78:_0x471b44['set'](_0x2a713c,{'start':_0x4e2c78,'end':_0x4e2c78});}}for(const [_0x54e742,_0x4aa18b]of _0x471b44){const _0x33b0d1=this['editor']['model']['createRange'](_0x4aa18b['start'],_0x4aa18b['end']);_0x202722['markers']['set'](_0x54e742,_0x33b0d1);}return _0x781ddb['sort']((_0x2b9c00,_0x4aef57)=>{const _0x4eab80=_0x202722['markers']['get']('revision:'+_0x2b9c00['id']),_0x10905c=_0x202722['markers']['get']('revision:'+_0x4aef57['id']);return _0x4eab80['start']['isBefore'](_0x10905c['start'])?-0x1:_0x4eab80['start']['isAfter'](_0x10905c['start'])?0x1:_0x4eab80['end']['isBefore'](_0x10905c['end'])?-0x1:_0x4eab80['end']['isAfter'](_0x10905c['end'])?0x1:'add'===_0x2b9c00['type']?-0x1:0x1;}),{'root':_0x202722,'changes':_0x781ddb};function _0x33d483(_0x1bbae2,_0x2baf77,_0x4240c8,_0x58b50c){const _0x5fa83a=!!_0xc07dcf[_0x2baf77][_0x1bbae2],_0x233d96=_0x5fa83a?_0xc07dcf[_0x2baf77][_0x1bbae2]['userId']:null,_0x36fb2c=_0x2baf77===_0xc07dcf['length']-0x1,_0x27ae75=_0x612053[_0x1bbae2][0x0],_0x2cc306=_0x1d81ee['isObject'](_0xc07dcf[_0x2baf77]['item']);!_0x228bbe[_0x1bbae2]&&_0x5fa83a?_0x228bbe[_0x1bbae2]={'start':_0x4240c8,'tapeItem':_0xc07dcf[_0x2baf77],'userId':_0x233d96,'type':_0x1bbae2}:_0x228bbe[_0x1bbae2]&&!_0x5fa83a?(_0x228bbe[_0x1bbae2]['end']=_0x4240c8,_0x49e32c(_0x228bbe[_0x1bbae2]),_0x228bbe[_0x1bbae2]=null):_0x228bbe[_0x1bbae2]&&_0x5fa83a&&_0x228bbe[_0x1bbae2]['userId']!==_0x233d96&&(_0x228bbe[_0x1bbae2]['end']=_0x4240c8,_0x27ae75&&_0x27ae75['userId']===_0x228bbe[_0x1bbae2]['userId']||_0x49e32c(_0x228bbe[_0x1bbae2]),_0x228bbe[_0x1bbae2]={'start':_0x4240c8,'tapeItem':_0xc07dcf[_0x2baf77],'userId':_0x233d96,'type':_0x1bbae2}),_0x228bbe[_0x1bbae2]&&_0x2cc306&&('elementStart'!==_0xc07dcf[_0x2baf77]['type']||_0x27ae75&&_0x27ae75['userId']===_0x233d96||_0x612053[_0x1bbae2]['unshift']({'userId':_0x233d96,'object':_0xc07dcf[_0x2baf77]['item'],'change':_0x228bbe[_0x1bbae2]}),'elementEnd'===_0xc07dcf[_0x2baf77]['type']&&_0x27ae75&&_0x27ae75['object']===_0xc07dcf[_0x2baf77]['item']&&(_0x612053[_0x1bbae2]['shift'](),_0x228bbe[_0x1bbae2]=_0x27ae75['change'])),_0x228bbe[_0x1bbae2]&&_0x36fb2c&&(_0x228bbe[_0x1bbae2]['end']=_0x58b50c,_0x49e32c(_0x228bbe[_0x1bbae2]),_0x228bbe[_0x1bbae2]=null);}function _0x49e32c({start:_0x333d10,end:_0x36125a,tapeItem:_0x5a8649,userId:_0x1ebd3f,type:_0x31eb95}){const _0x4aa4e7=_0x5a8649['item'],_0xd226fa=_0x1bcf53['schema']['isBlock'](_0x4aa4e7)&&!_0x1bcf53['schema']['isLimit'](_0x4aa4e7),_0x40dd55=_0x333d10['nodeAfter']==_0x36125a['parent']&&_0x36125a['isAtStart'];if(_0xd226fa&&_0x40dd55)return;const _0x5dc46a=_0x1bcf53['createRange'](_0x333d10,_0x36125a),_0x3e35ef=_0x548ece['get'](_0x1ebd3f),_0x57cb08=new ChangeItem({'author':_0x3e35ef,'type':'isAdded'==_0x31eb95||'isAddSuggestion'==_0x31eb95?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x31eb95||'isRemoveSuggestion'==_0x31eb95},'createdAt':new Date(),'rootName':_0x3cd9fb});_0x781ddb['push'](_0x57cb08),_0x202722['markers']['set']('revision:'+_0x57cb08['id'],_0x5dc46a);}function _0x382c5f(_0x1f9dc4,_0x1667d9){const _0x27c9b6=_0x1f9dc4['getAttributes'](),_0x33f5f2=_0x1667d9['getAttributes']();for(const _0x3a0a33 of _0x27c9b6){if(_0x3a0a33[0x1]!==_0x1667d9['getAttribute'](_0x3a0a33[0x0]))return!0x1;_0x33f5f2['next']();}return _0x33f5f2['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x37e6f6=>{const _0x3a8242=_0x37e6f6['markerName']['split'](':')[0x1],_0x3dffae=this['_getChangeFromId'](_0x3a8242);if(!_0x3dffae)return null;const _0x50d328='add'==_0x3dffae['type']?'insertion':'deletion',_0x288bdc=['ck-suggestion-marker','ck-suggestion-marker-'+_0x50d328];return _0x3dffae['data']['isSuggestion']&&_0x288bdc['push']('ck-suggestion-marker-'+_0x50d328+'-new'),this['activeChange']==_0x3dffae&&_0x288bdc['push']('ck-suggestion-marker--active'),{'classes':_0x288bdc,'attributes':{'data-change-id':_0x3a8242}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x181c9f=>{_0x181c9f['on']('element:pre',(_0x3c841b,_0x37b1be,_0x2b5aa9)=>{const _0x2e6567=_0x37b1be['viewItem']['getChild'](0x0);if(!_0x2e6567||!_0x2e6567['is']('element','code'))return;if(!_0x2b5aa9['consumable']['consume'](_0x2e6567,{'attributes':['vid_start','vid_end']}))return;const _0x171d81=_0x37b1be['modelRange']['start']['nodeAfter'];_0x2b5aa9['writer']['setAttribute']('vid_start',_0x2e6567['getAttribute']('vid_start'),_0x171d81),_0x2b5aa9['writer']['setAttribute']('vid_end',_0x2e6567['getAttribute']('vid_end'),_0x171d81);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x599e43=>{_0x599e43['on']('element',(_0x549cc9,_0x51b413,_0xc8e156)=>{if(!_0xc8e156['consumable']['consume'](_0x51b413['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x51b413['modelRange']['isCollapsed'])return;const _0x5659eb=_0x51b413['modelRange']['start']['nodeAfter'];_0x5659eb['hasAttribute']('vid_start')||_0x5659eb['hasAttribute']('vid')||(_0xc8e156['writer']['setAttribute']('vid_start',_0x51b413['viewItem']['getAttribute']('vid_start'),_0x5659eb),_0xc8e156['writer']['setAttribute']('vid_end',_0x51b413['viewItem']['getAttribute']('vid_end'),_0x5659eb));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2ad2c3=>_0x2ad2c3['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x341747,[,_0x48e514])=>{['vid_start','vid_end','vid']['includes'](_0x48e514)&&(_0x341747['return']=!0x0,_0x341747['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4d34d5=>{_0x4d34d5['on']('attribute:vid',(_0x4ce90b,_0x547eaf,_0x40c6e8)=>{if('\x20'!=_0x547eaf['item']['data']||_0x547eaf['item']['parent']['maxOffset']>0x1)return;if(!_0x40c6e8['consumable']['consume'](_0x547eaf['item'],_0x4ce90b['name']))return;const _0xb67b71=_0x40c6e8['writer'],_0x67ab24=_0x40c6e8['mapper']['toViewRange'](_0x547eaf['range']);_0xb67b71['wrap'](_0x67ab24,_0xb67b71['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',(_0x2b9409,_0x2a2874,_0x536d25)=>{const _0x4e01b3=_0x536d25['mapper']['markerNameToElements'](_0x2a2874['markerName']);if(_0x4e01b3){for(const _0xd8e31b of _0x4e01b3)(_0xd8e31b['hasClass']('ck-suggestion-marker-split')||_0xd8e31b['hasClass']('ck-suggestion-marker-merge'))&&(_0x536d25['mapper']['unbindElementFromMarkerName'](_0xd8e31b,_0x2a2874['markerName']),_0x536d25['writer']['remove'](_0xd8e31b));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x20677b,_0x5b4904,_0x14898d)=>{const _0x5674ed=_0x5b4904['markerName']['split'](':')[0x1],_0x331433=this['_getChangeFromId'](_0x5674ed);if(!_0x331433)return null;const _0x36bc72='add'==_0x331433['type']?'split':'merge';if(_0x14898d['consumable']['test'](_0x5b4904['markerRange'],_0x20677b['name']))for(const _0x4d9819 of _0x5b4904['markerRange']['getItems']()){if(!_0x4d9819['is']('element','softBreak'))continue;const _0x5c4dbc=_0x14898d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36bc72}),_0x401f56=_0x14898d['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4d9819));_0x331433['data']['isSuggestion']&&_0x14898d['writer']['addClass']('ck-suggestion-marker-'+_0x36bc72+'-new',_0x5c4dbc),this['activeChange']==_0x331433&&_0x14898d['writer']['addClass']('ck-suggestion-marker--active',_0x5c4dbc),_0x14898d['writer']['insert'](_0x401f56,_0x5c4dbc),_0x14898d['mapper']['bindElementToMarker'](_0x5c4dbc,_0x5b4904['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x163786=>{for(const _0x22b754 of this['editor']['model']['document']['getRootNames']()){const _0x3590fc=this['editor']['model']['document']['getRoot'](_0x22b754),_0x1118c7=this['editor']['editing']['view']['document']['getRoot'](_0x22b754);if(_0x1118c7){const _0x5439e0=_0x3590fc['getAttribute']('revisionHistoryAttachChange');if(_0x163786['removeAttribute']('data-change-id',_0x1118c7),_0x163786['removeClass']('ck-revision-history-root-add',_0x1118c7),_0x163786['removeClass']('ck-revision-history-root-remove',_0x1118c7),_0x163786['removeClass']('ck-revision-history-root--active',_0x1118c7),_0x5439e0){const _0x1e2ed3=this['_getChangeFromId'](_0x5439e0);if(!_0x1e2ed3)return null;_0x163786['setAttribute']('data-change-id',_0x5439e0,_0x1118c7),_0x163786['addClass']('ck-revision-history-root-'+_0x1e2ed3['type'],_0x1118c7),this['activeChange']==_0x1e2ed3&&_0x163786['addClass']('ck-revision-history-root--active',_0x1118c7);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3b28cc=>'revision-comment:'+_0x3b28cc,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2f5d93=>'revision-suggestion:'+_0x2f5d93,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x434c86=>({'name':'suggestion:'+_0x434c86,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4fdb36=>{const _0xb5514a=_0x4fdb36['markerName']['split'](':')[0x1];return'insertion'!=_0xb5514a&&'deletion'!=_0xb5514a?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xb5514a]};}}),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',(_0x37e51f,_0x4ab60f,_0x20ea7a)=>{const _0x309994=_0x20ea7a['mapper']['markerNameToElements'](_0x4ab60f['markerName']);if(_0x309994){for(const _0x59b9ff of _0x309994)_0x59b9ff['is']('uiElement')&&(_0x20ea7a['mapper']['unbindElementFromMarkerName'](_0x59b9ff,_0x4ab60f['markerName']),_0x20ea7a['writer']['remove'](_0x59b9ff));}},{'priority':'high'});}['_getChangeFromId'](_0x40fd8f){return this['_changeIdToChange']['get'](_0x40fd8f);}['_getViewForChange'](_0x553a63){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new ChangeDetailsView(this['editor']['locale'],_0x553a63),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x342e1a,_0x2f7052,_0xd0fa05,_0x276cce)=>{_0x276cce&&this['_balloon']['remove'](_0x276cce),_0xd0fa05&&(this['_balloon']['add']({'view':_0xd0fa05,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x30aec4=this['editor']['editing'],_0x50ee15=this['_getChangeFromId'](_0xd0fa05['changeId']);let _0x4c4ec4;if(_0x50ee15['data']['isOnRoot']){const _0x46ec13=_0x30aec4['view']['getDomRoot'](_0x50ee15['rootName']);_0x4c4ec4=Array['from'](_0x46ec13['getClientRects']());}else{const _0x41a2b0=this['editor']['model']['markers']['get']('revision:'+_0xd0fa05['changeId']);_0x4c4ec4=Array['from'](_0x30aec4['mapper']['markerNameToElements'](_0x41a2b0['name']))['map'](_0x14b68d=>_0x30aec4['view']['domConverter']['mapViewToDom'](_0x14b68d))['map'](_0x2abb5b=>Array['from'](_0x2abb5b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4c4ec4[0x0];return _0x4c4ec4['find'](_0x1dcef9=>_0x1dcef9['top']-0x3<=this['_activeViewTarget']['y']&&_0x1dcef9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1dcef9['left']-0x3<=this['_activeViewTarget']['x']&&_0x1dcef9['right']+0x3>=this['_activeViewTarget']['x'])||_0x4c4ec4[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x51c178,_0x58c0e2,_0x39df99,_0x91fc62)=>{this['activeView']=_0x39df99?this['_getViewForChange'](_0x39df99):null,this['editor']['model']['change'](()=>{const _0x2414c8=this['editor']['editing'];_0x91fc62&&(_0x91fc62['data']['isOnRoot']?_0x2414c8['view']['change'](_0x294b25=>{_0x294b25['removeClass']('ck-revision-history-root--active',_0x2414c8['view']['document']['getRoot'](_0x91fc62['rootName']));}):_0x2414c8['reconvertMarker']('revision:'+_0x91fc62['id'])),_0x39df99&&(_0x39df99['data']['isOnRoot']?_0x2414c8['view']['change'](_0x1d9007=>{_0x1d9007['addClass']('ck-revision-history-root--active',_0x2414c8['view']['document']['getRoot'](_0x39df99['rootName']));}):_0x2414c8['reconvertMarker']('revision:'+_0x39df99['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3cd4ca,_0x42bb8d)=>{if(this['activeChange'])return;const _0x32f847=this['_findChangeIdFromDomTarget'](_0x42bb8d['target']),_0x31aa8f=this['_changeIdToChange']['get'](_0x32f847);_0x31aa8f?(this['_activeViewTarget']={'x':_0x42bb8d['domEvent']['x'],'y':_0x42bb8d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x31aa8f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x223ead,_0xc6600e)=>{const _0xfd2b0d=this['_findChangeIdFromDomTarget'](_0xc6600e['target']),_0x25e3fc=this['_changeIdToChange']['get'](_0xfd2b0d);_0x25e3fc?(this['_activeViewTarget']={'x':_0xc6600e['domEvent']['x'],'y':_0xc6600e['domEvent']['y']},_0x25e3fc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x25e3fc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1f0d24){do{const _0x10ff16=_0x1f0d24['getAttribute']('data-change-id');if(_0x10ff16)return _0x10ff16;_0x1f0d24=_0x1f0d24['parent'];}while(_0x1f0d24);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5d35c0=>{for(const _0x5f281a of this['editor']['model']['markers'])_0x5d35c0['removeMarker'](_0x5f281a);});}}function downcastSplitMergeMarker(_0x1a3ff4){const _0x4a8da9=_0x1a3ff4['plugins']['get']('RevisionViewer');return(_0x1fd6bc,_0x2c04d6,_0x51e601)=>{const _0x4a6ecd=_0x2c04d6['markerName']['split'](':')[0x1],_0x301a2e=_0x4a8da9['_getChangeFromId'](_0x4a6ecd);if(!_0x301a2e)return null;const _0x4a25e0='add'==_0x301a2e['type']?'split':'merge';if(!_0x51e601['consumable']['test'](_0x2c04d6['markerRange'],_0x1fd6bc['name']))return;const _0x1170b5=_0x2c04d6['markerRange']['getWalker'](),_0x181e72=_0x2c04d6['markerRange']['start'],_0x560e83=_0x1a3ff4['model']['schema'];let _0xe2aaff=null,_0x2939e2=null,_0x265496=!0x1,_0x37a3ad=!0x1;for(const _0x297f68 of _0x1170b5){const _0x4edb3c=_0x297f68['item'];_0x265496=_0x265496||_0x560e83['isContent'](_0x4edb3c);const _0x41b092=_0x51e601['mapper']['toViewElement'](_0x4edb3c);if(_0x41b092&&_0x41b092['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x297f68['type']&&(_0x560e83['isBlock'](_0x4edb3c)&&!_0x560e83['isLimit'](_0x4edb3c)&&(_0x4edb3c['nextSibling']||_0x181e72['isAtEnd']?_0xe2aaff&&_0xe2aaff['parent']==_0x4edb3c||(_0xe2aaff=_0x4edb3c,_0x3311b7(_0x297f68['previousPosition']),_0x37a3ad=!0x0):_0x2939e2=_0x2939e2||_0x297f68['previousPosition']));}function _0x3311b7(_0x3f52a2){const _0x5c55a5=_0x51e601['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a25e0}),_0x5cbee2=_0x51e601['mapper']['toViewPosition'](_0x3f52a2);_0x301a2e['data']['isSuggestion']&&_0x51e601['writer']['addClass']('ck-suggestion-marker-'+_0x4a25e0+'-new',_0x5c55a5),_0x4a8da9['activeChange']==_0x301a2e&&_0x51e601['writer']['addClass']('ck-suggestion-marker--active',_0x5c55a5),_0x51e601['writer']['insert'](_0x5cbee2,_0x5c55a5),_0x51e601['mapper']['bindElementToMarker'](_0x5c55a5,_0x2c04d6['markerName']);}_0x265496||_0x37a3ad||!_0x2939e2||_0x3311b7(_0x2939e2);};}function downcastSplitMergeMarkerSuggestion(_0x5e8789,_0x50449e){return(_0x8b744c,_0xccb7fb,_0x21b955)=>{if(!_0x21b955['consumable']['test'](_0xccb7fb['markerRange'],_0x8b744c['name']))return;const _0x49100e=_0xccb7fb['markerRange']['getWalker'](),_0x202f89=_0xccb7fb['markerRange']['start'],_0x3c8b0d=_0x5e8789['model']['schema'];let _0x11837a=null,_0x57ce6c=null,_0x4c5fdc=!0x1,_0x5b3ba8=!0x1;for(const _0x5bca9b of _0x49100e){const _0x2be84c=_0x5bca9b['item'];_0x4c5fdc=_0x4c5fdc||_0x3c8b0d['isContent'](_0x2be84c);const _0x13212e=_0x21b955['mapper']['toViewElement'](_0x2be84c);if(_0x13212e&&_0x13212e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5bca9b['type']&&(_0x3c8b0d['isBlock'](_0x2be84c)&&!_0x3c8b0d['isLimit'](_0x2be84c)&&(_0x2be84c['nextSibling']||_0x202f89['isAtEnd']?_0x11837a&&_0x11837a['parent']==_0x2be84c||(_0x11837a=_0x2be84c,_0x5d9531(_0x5bca9b['previousPosition']),_0x5b3ba8=!0x0):_0x57ce6c=_0x57ce6c||_0x5bca9b['previousPosition']));}function _0x5d9531(_0x5c2a45){const _0x169f1d=_0x21b955['mapper']['toViewPosition'](_0x5c2a45),_0x4898f1=_0x21b955['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x50449e});_0x21b955['writer']['insert'](_0x169f1d,_0x4898f1),_0x21b955['mapper']['bindElementToMarker'](_0x4898f1,_0xccb7fb['markerName']);}_0x4c5fdc||_0x5b3ba8||!_0x57ce6c||_0x5d9531(_0x57ce6c);};}class RestoreRevisionCommand extends _0x210666{constructor(_0x200f3){super(_0x200f3);const _0x447581=_0x200f3['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['listenTo'](_0x447581,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x447581,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3f9e03=this['editor'],_0x47ce34=_0x3f9e03['plugins']['get'](RevisionViewer),_0x498f0f=_0x47ce34['isReady']?_0x47ce34['diff']['newRevisionId']:null;_0x3f9e03['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x498f0f);}['refresh'](){const {isReady:_0x5a0a30,isEnabled:_0x428de8,repository:_0x2525e1,diff:_0x4c2a7d}=this['editor']['plugins']['get'](RevisionViewer),_0x432cc4=_0x4c2a7d&&_0x2525e1['getLaterVisibleRevision'](_0x4c2a7d['newRevisionId']);this['isEnabled']=_0x5a0a30&&_0x428de8&&Boolean(_0x432cc4);}}class ShowChangeCommand extends _0x210666{['_step'];constructor(_0x5ccdb1,{direction:_0x15883a}){super(_0x5ccdb1);const _0x262773=_0x5ccdb1['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['_step']='forward'===_0x15883a?0x1:-0x1,this['listenTo'](_0x262773,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x262773,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x262773,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x29c527=this['editor'],_0x1b39c3=_0x29c527['plugins']['get'](RevisionViewer),{isNavigationMode:_0x40beb2,currentChangeNumber:_0x1a3f6c}=_0x1b39c3;let _0x55ea5f;if(_0x1b39c3['activeChange']=_0x40beb2?_0x1b39c3['diff']['changes']['get'](_0x1a3f6c+this['_step']):_0x1b39c3['diff']['changes']['first'],_0x1b39c3['activeChange']['data']['isOnRoot'])_0x55ea5f=_0x29c527['editing']['view']['getDomRoot'](_0x1b39c3['activeChange']['rootName']);else{const _0x10e43d=_0x29c527['model']['markers']['get']('revision:'+_0x1b39c3['activeChange']['id']);_0x55ea5f=getMarkerDomElement(_0x29c527['editing'],_0x10e43d);}scrollViewportToShowTarget({'target':_0x55ea5f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x58a675,currentChangeNumber:_0x16a7fe,numberOfChanges:_0x471f1e,isReady:_0x17b75f,isEnabled:_0x1df5d5}=this['editor']['plugins']['get'](RevisionViewer);this['isEnabled']=!!(_0x1df5d5&&_0x17b75f&&_0x471f1e)&&(!_0x58a675||(0x1===this['_step']?_0x16a7fe<_0x471f1e-0x1:_0x16a7fe>0x0));}}class ChangesNavigationView extends View{constructor(_0x14b8ff){super(_0x14b8ff);const _0x3180ac=this['bindTemplate'],_0x4c9474=new ButtonView(_0x14b8ff),_0xec8a2c=new ButtonView(_0x14b8ff);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',(_0x1d94e4,_0x454df3)=>_0x1d94e4&&_0x454df3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x112c4f,_0x48367e,_0x374483,_0x4f6d8f)=>{if(!_0x112c4f)return getTranslation$5(_0x14b8ff,'Loading...');if(!_0x374483)return getTranslation$5(_0x14b8ff,'No\x20changes');const _0x123770=getTranslation$5(_0x14b8ff,'NUMBER_OF_CHANGES',_0x374483);return _0x4f6d8f?getTranslation$5(_0x14b8ff,'X_OF_Y_CHANGES',[_0x48367e+0x1,_0x374483]):_0x123770;}),_0x4c9474['set']({'label':getTranslation$5(_0x14b8ff,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':IconChevronUp}),_0xec8a2c['set']({'label':getTranslation$5(_0x14b8ff,'Show\x20next\x20change'),'tooltip':!0x0,'icon':IconChevronDown}),_0x4c9474['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xec8a2c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4c9474['on']('execute',()=>this['fire']('execute','backward')),_0xec8a2c['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',_0x3180ac['if']('_isStatusLabelVisible','ck-hidden',_0x21418c=>!_0x21418c)]},'children':[{'text':_0x3180ac['to']('isNavigationMode',_0x1d1005=>_0x1d1005?getTranslation$5(_0x14b8ff,'EDIT_X_OF_Y_REVISIONS')+':\x20':getTranslation$5(_0x14b8ff,'Total')+':\x20')}]},{'text':_0x3180ac['to']('_statusText')}]},new ToolbarSeparatorView(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4c9474,_0xec8a2c]}]});}}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 _0x5c8faf=this['editor']['editing']['view'];_0x5c8faf['change'](_0x330904=>{for(const _0x1943e7 of _0x5c8faf['document']['roots'])_0x330904['addClass'](OVERLAY_CSS_CLASS,_0x1943e7);});}['hide'](){const _0x51365b=this['editor']['editing']['view'];_0x51365b['change'](_0x34adb0=>{for(const _0x5cdfb2 of _0x51365b['document']['roots'])_0x34adb0['removeClass'](OVERLAY_CSS_CLASS,_0x5cdfb2);});}}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 _0x8923cc=this['editor'],_0x1bb3d2=_0x8923cc['plugins']['get'](RevisionViewer),_0x588027=_0x8923cc['plugins']['get'](RevisionViewerLoadingOverlay);_0x8923cc['ui']['componentFactory']['add']('exitToEditing',_0x51bf80=>{const _0x35bea9=new ButtonView(_0x51bf80);return _0x35bea9['set']({'label':getTranslation$5(_0x51bf80,'Back\x20to\x20editing'),'icon':IconUndo,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x35bea9,'execute',()=>{_0x8923cc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x35bea9;}),_0x8923cc['ui']['componentFactory']['add']('restoreRevision',_0xbc691=>{const _0x30aa54=new ButtonView(_0xbc691);return _0x30aa54['set']({'label':getTranslation$5(_0xbc691,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x30aa54['bind']('isEnabled')['to'](_0x8923cc['commands']['get']('restoreRevision')),this['listenTo'](_0x30aa54,'execute',()=>_0x8923cc['execute']('restoreRevision')),_0x30aa54;}),_0x8923cc['ui']['componentFactory']['add']('changesNavigation',_0x3e93ca=>{const _0x2cf5a8=new ChangesNavigationView(_0x3e93ca),_0x393f34=_0x8923cc['commands']['get']('showPreviousChange'),_0x159689=_0x8923cc['commands']['get']('showNextChange');return _0x2cf5a8['bind']('isBackwardNavigationEnabled')['to'](_0x393f34,'isEnabled'),_0x2cf5a8['bind']('isForwardNavigationEnabled')['to'](_0x159689,'isEnabled'),_0x2cf5a8['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1bb3d2),this['listenTo'](_0x2cf5a8,'execute',(_0x11e3db,_0x114ba2)=>{_0x8923cc['execute']('forward'===_0x114ba2?'showNextChange':'showPreviousChange');}),_0x2cf5a8;}),_0x588027['show'](),_0x1bb3d2['on']('change:isReady',(_0x2fbadd,_0x229269,_0x1d11ac)=>{_0x1d11ac?_0x588027['hide']():_0x588027['show']();});}}class RevisionNameView extends LabeledFieldView{['_resizeObserver']=null;constructor(_0x4ffb78,_0x1e7af2){super(_0x4ffb78,_0x1e7af2);const _0x3c9049=this['bindTemplate'];this['set']({'label':getTranslation$5(_0x4ffb78,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=getTranslation$5(_0x4ffb78,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3c9049['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new _0x42ae1a(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x401304=this['fieldView']['element'];this['_tooltipString']=_0x401304['scrollWidth']>_0x401304['clientWidth']&&_0x401304['value']||'';}}class RevisionAuthorView extends View{constructor(_0x35b5ea,_0x3e74a3,_0x4d1ac8){super(_0x35b5ea);const _0x34abff=new IconView();_0x34abff['set']({'content':IconUser,'viewBox':'0\x200\x2011\x2010'});const _0x5269d8=['ck','ck-revision-history-sidebar__revision-author'];_0x4d1ac8&&_0x5269d8['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1078a5=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':getTranslation$5(_0x35b5ea,_0x4d1ac8?'Revision\x20creator':'Revision\x20author')},'children':[_0x34abff,_0x3e74a3['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5269d8},'children':_0x1078a5});}}function dateToPrettyFormat(_0x454836,_0x4f5697){return _0x4f5697['toLocaleDateString'](_0x454836,{'month':'long','day':'numeric'})+',\x20'+_0x4f5697['toLocaleTimeString'](_0x454836,{'hour':'numeric','minute':'numeric'});}function createActionsDropdownView(_0x149b12,_0x5a9426){const _0x32fbd5=_0x149b12['bindTemplate'],_0x208072=_0x149b12['locale'],_0x39314c=createDropdown(_0x208072);_0x39314c['panelPosition']='sw';const _0x295c8a=_createDropdownOptions(_0x149b12,_0x5a9426);return _0x149b12['bind']('isActionsDropdownOpen')['to'](_0x39314c,'isOpen'),_0x39314c['buttonView']['set']({'label':getTranslation$5(_0x208072,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':IconThreeVerticalDots}),_0x39314c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x32fbd5['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x32fbd5['to'](_0x82dc1d=>_0x82dc1d['stopPropagation']())}}),_0x39314c['on']('execute',_0x598641=>{_0x149b12['isReady']&&'function'==typeof _0x598641['source']['_action']&&_0x598641['source']['_action'](_0x149b12);}),addListToDropdown(_0x39314c,_0x295c8a,{'role':'menu'}),_0x39314c['listenTo'](_0x149b12,'change:isActionsDropdownOpen',(_0x6eb3c7,_0x5e2553,_0xe11074)=>{if(_0xe11074)for(const _0x3a9430 of _0x39314c['listView']['items']){const _0x4adc0e=_0x3a9430['children']['first'],_0x55fb3f=_0x5a9426['find'](_0x4a6303=>_0x4a6303['action']===_0x4adc0e['_action'])['isVisible'];_0x3a9430['isVisible']=void 0x0===_0x55fb3f||_0x55fb3f(_0x149b12);}}),_0x39314c;}function _createDropdownOptions(_0x44c10e,_0x3992c0){const _0x292652=_getLocalizedOptions(_0x44c10e,_0x3992c0),_0x5ada24=new Collection();for(const _0x2886fe of _0x292652){const _0x4475fb={'type':'button','model':new UIModel({'label':_0x2886fe['name'],'class':_0x2886fe['class'],'withText':!0x0,'role':'menuitem','_action':_0x2886fe['action']})};_0x4475fb['model']['bind']('isEnabled')['to'](_0x44c10e,'isActionsDropdownOpen',_0x1e4414=>'function'!=typeof _0x2886fe['isEnabled']||(!_0x1e4414||_0x2886fe['isEnabled'](_0x44c10e))),_0x5ada24['add'](_0x4475fb);}return _0x5ada24;}function _getLocalizedOptions(_0x81965c,_0x40181c){const _0xacb68b=_0x81965c['locale'],_0x519482={'Compare\x20against\x20selected':getTranslation$5(_0xacb68b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':getTranslation$5(_0xacb68b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':getTranslation$5(_0xacb68b,'Restore\x20this\x20revision')};return _0x40181c['map'](_0x28f2b2=>{const _0x283649=_0x519482[_0x28f2b2['name']];return _0x283649&&_0x283649!==_0x28f2b2['name']&&(_0x28f2b2['name']=_0x283649),_0x28f2b2;});}class RevisionView extends/* #__PURE__ -- @preserve */
ConfirmMixin(View){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x23b2ec,_0x1be884,_0x559f64,_0x147049){super(_0x23b2ec);const _0x4e3e6c=this['bindTemplate'],_0x389d4b=getAuthorViews(_0x23b2ec,_0x1be884);this['id']=_0x1be884['id'],this['_revision']=_0x1be884,this['_requireRevisionName']=_0x147049,this['bind']('name','createdAt')['to'](_0x1be884),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x138e16=>dateToPrettyFormat(_0x23b2ec['uiLanguage'],_0x138e16)),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new RevisionNameView(_0x23b2ec,createLabeledInputText),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xfe3573=>_0xfe3573||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x500a0f,_0x44c891)=>_0x500a0f&&_0x44c891),this['revisionActionsView']=_0x559f64&&_0x559f64['length']?createActionsDropdownView(this,_0x559f64):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4e3e6c['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4e3e6c['if']('isEnabled','ck-disabled',_0x5fcffe=>!_0x5fcffe),_0x4e3e6c['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4e3e6c['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4e3e6c['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':_0x4e3e6c['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':_0x389d4b}]},this['revisionActionsView']],'on':{'click':_0x4e3e6c['to'](_0x52d0ac=>{_0x52d0ac['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x283b7e=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x283b7e,'change',()=>{this['_requireRevisionName']&&!_0x283b7e['value']||this['fire']('setName',{'id':this['id'],'name':_0x283b7e['value']}),_0x283b7e['value']||(_0x283b7e['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(_0x2e9688,_0x1ef263){const _0x410c3c=Array['from'](_0x1ef263['authors'])['filter'](_0x122201=>_0x122201!=_0x1ef263['creator']);return _0x1ef263['creator']&&_0x410c3c['unshift'](_0x1ef263['creator']),_0x410c3c['map'](_0x2507f3=>new RevisionAuthorView(_0x2e9688,_0x2507f3,_0x2507f3==_0x1ef263['creator']));}function getDateTimePeriodInfo(_0x42e352,_0x1d8f1a){const _0x169343=DateTime['fromJSDate'](_0x42e352)['setLocale'](_0x1d8f1a),_0x12fc5=DateTime['local'](),_0x3236f5=_0x12fc5['minus']({'days':0x1})['startOf']('day');let _0x2e12c6,_0xa3f775;return _0x169343['hasSame'](_0x12fc5,'day')?(_0x2e12c6=_0x169343['startOf']('day')['toJSDate'](),_0xa3f775=_0x169343['toRelativeCalendar']()):_0x169343['hasSame'](_0x3236f5,'day')?(_0x2e12c6=_0x3236f5['toJSDate'](),_0xa3f775=_0x169343['toRelativeCalendar']()):_0x169343['hasSame'](_0x12fc5,'week')?(_0x2e12c6=_0x169343['startOf']('week')['toJSDate'](),_0xa3f775=_0x169343['weekdayLong']||''):_0x169343['hasSame'](_0x12fc5,'year')?(_0x2e12c6=_0x169343['startOf']('month')['toJSDate'](),_0xa3f775=_0x169343['monthLong']||''):(_0x2e12c6=_0x169343['startOf']('year')['toJSDate'](),_0xa3f775=String(_0x169343['year'])),{'startDate':_0x2e12c6,'localizedPeriodName':_0xa3f775};}class RevisionsSidebarTimePeriodView extends View{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x434407,_0x4e3b0a,_0x2560f9,_0xa330c7){super(_0x434407);const _0x360bf5=getDateTimePeriodInfo(_0x4e3b0a,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4e3b0a,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2560f9,this['_requireRevisionName']=_0xa330c7,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':_0x360bf5}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x48109f){const _0x461247=new RevisionView(this['locale'],_0x48109f,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x461247);}['removeRevision'](_0x446124){const _0x39286d=this['revisionViews']['find'](_0x1948cb=>_0x1948cb['id']===_0x446124['id']);this['revisionViews']['remove'](_0x39286d);}}class RevisionsSidebarHeaderView extends View{constructor(_0x3f3110){super(_0x3f3110);const _0x35e90a=new IconView();_0x35e90a['content']=IconHistory,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x35e90a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[getTranslation$5(_0x3f3110,'Revision\x20history')]}]});}}class RevisionsSidebarView extends View{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4b5d53,_0x4d208a,_0x147642,_0x5d1999){super(_0x4b5d53);const _0x21a963=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4d208a,this['_revisionActions']=_0x147642,this['_requireRevisionName']=_0x5d1999,this['on']('select',(_0x340fae,_0x5b977d)=>{this['fire']('revisionSelected',_0x5b977d);}),this['on']('setName',(_0x3c84ad,_0x121585)=>{this['fire']('revisionSetName',_0x121585);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new RevisionsSidebarHeaderView(_0x4b5d53),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x21a963['if']('isEnabled','ck-disabled',_0x1953fd=>!_0x1953fd)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4ee083 of this['_revisions'])this['_addRevision'](_0x4ee083);this['_revisions']['on']('add',(_0x46f7ed,_0x3c4233)=>{this['_addRevision'](_0x3c4233);}),this['_revisions']['on']('remove',(_0x4b994f,_0x21ba95)=>{this['_removeRevision'](_0x21ba95);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4b0154=>_0x4b0154['revisionViews']['map'](_0x4011cd=>_0x4011cd))['flat']();}['selectRevision'](_0x17ca36){for(const _0x138776 of this['revisionViews'])_0x17ca36&&_0x17ca36['id']===_0x138776['id']?_0x138776['select']():_0x138776['deselect']();}['highlightRevisions'](_0x3a7223){for(const _0x39592d of this['revisionViews'])_0x3a7223['some'](({id:_0x58fd00})=>_0x58fd00===_0x39592d['id'])?_0x39592d['highlight']():_0x39592d['unhighlight']();}['_addRevision'](_0x33aac7){const _0x535b81=getDateTimePeriodInfo(_0x33aac7['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2e53b1=this['timePeriodViews']['get'](0x0);_0x2e53b1&&_0x2e53b1['startDate']['getTime']()===_0x535b81['getTime']()||(_0x2e53b1=new RevisionsSidebarTimePeriodView(this['locale'],_0x535b81,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2e53b1)),_0x2e53b1['addRevision'](_0x33aac7);}['_removeRevision'](_0x49ca07){const _0x3368ba=getDateTimePeriodInfo(_0x49ca07['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3368ba)['removeRevision'](_0x49ca07);}['_getTimePeriodViewByStartDate'](_0x18f00f){return this['timePeriodViews']['find'](_0x818bcd=>_0x818bcd['startDate']['getTime']()===_0x18f00f['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(_0x4c517e){super(_0x4c517e),this['_revisionViewer']=_0x4c517e['plugins']['get'](RevisionViewer),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2ec090=this['_revisionsRepository']['_revisions'],_0x1e2307=this['_createRevisionActions'](),_0x38e652=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new RevisionsSidebarView(this['editor']['locale'],_0x2ec090,_0x1e2307,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',(_0x857594,_0x5772d7)=>{_0x5772d7['revisionViews']['on']('add',(_0x3bd000,_0x21a45d)=>{_0x21a45d['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)),_0x38e652['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2affcf=this['_revisionsRepository']['getRevision'](0x0);if(_0x2affcf){const _0x5d1793=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2affcf['id']);this['_revisionViewer']['compare'](_0x2affcf,_0x5d1793);}}['_handleRevisionSelected'](_0x20890e,_0x59fda5){const _0x2c0a1b=this['_revisionsRepository']['getRevision'](_0x59fda5['id']),_0x29efc2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2c0a1b['id']);this['_revisionViewer']['compare'](_0x2c0a1b,_0x29efc2);}['_handleRevisionSetName'](_0x151879,_0x4faad6){this['_revisionsRepository']['getRevision'](_0x4faad6['id'])['setName'](_0x4faad6['name']);}['_handleDiffChange'](_0x9f3a77,_0x307b4f,_0x4d8c2e){const _0x3d5d9b=this['_revisionsRepository']['getRevisionsInDiff'](_0x4d8c2e);_0x3d5d9b['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3d5d9b),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3d5d9b[0x0]));}['_createRevisionActions'](){const _0x2fe848=this['editor'],_0x104a47=RevisionsSidebar['availableRevisionActions'],_0xec6f12=_0x2fe848['config']['get']('revisionHistory.revisionActions')||RevisionsSidebar['defaultRevisionActions'];if(_0xec6f12['length'])return _0xec6f12['map'](_0x2688a3=>{const _0x2957a1='string'==typeof _0x2688a3?Object['assign']({},_0x104a47[_0x2688a3]):_0x2688a3;return _0x2957a1['action']=_0x2957a1['action']['bind'](this,_0x2fe848),_0x2957a1['isVisible']&&(_0x2957a1['isVisible']=_0x2957a1['isVisible']['bind'](this,_0x2fe848)),_0x2957a1;});}}function availableRevisionActions(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x295e24},_0x3f38c3)=>{const _0x44c80f=_0x295e24['get'](RevisionViewer),_0x1bedb9=_0x44c80f['repository'];let _0x323015=_0x44c80f['diff']['newRevisionId'],_0x5c9da6=_0x3f38c3['id'];_0x1bedb9['getIndex'](_0x323015)>_0x1bedb9['getIndex'](_0x5c9da6)&&([_0x323015,_0x5c9da6]=[_0x5c9da6,_0x323015]),_0x44c80f['compare'](_0x323015,_0x5c9da6);},'isVisible':({plugins:_0x1c3f58},_0x2a6043)=>{const _0xf0ce9d=_0x1c3f58['get'](RevisionViewer);return!(_0xf0ce9d['repository']['getRevisionsInDiff'](_0xf0ce9d['diff'])['length']>0x2)&&!_0x2a6043['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x177742,{id:_0x5b01ec})=>{_0x177742['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5b01ec);},'isVisible':({plugins:_0x4ac412},_0x4c0f55)=>!!_0x4ac412['get'](RevisionViewer)['repository']['getLaterVisibleRevision'](_0x4c0f55['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3d5883},{id:_0x5e1808,revisionNameView:_0x5f0791})=>{const _0x29b80b=_0x3d5883['get'](RevisionViewer),_0x25e59e=_0x29b80b['repository']['getEarlierVisibleRevision'](_0x5e1808);_0x29b80b['compare'](_0x5e1808,_0x25e59e),_0x5f0791['focus'](),_0x5f0791['fieldView']['select']();}}};}class RevisionViewerEditorUI extends EditorUI{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x479194,_0x29af5c){super(_0x479194),this['_view']=_0x29af5c,this['_toolbarConfig']=normalizeToolbarConfig(_0x479194['config']['get']('toolbar')),this['_elementReplacer']=new ElementReplacer();}get['element'](){return this['view']['element'];}['init'](_0xbfdf6){const _0x4ca4cf=this['editor'],_0x287388=this['view'],_0x2c272c=_0x4ca4cf['editing']['view'],_0x572a40=_0x287388['editable'],_0x309032=_0x2c272c['document']['getRoot']();_0x572a40['name']=_0x309032['rootName'],_0x287388['render']();const _0x460986=_0x572a40['element'];this['setEditableElement'](_0x572a40['name'],_0x460986),_0x287388['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2c272c['attachDomRoot'](_0x460986),this['_elementReplacer']['replace'](_0xbfdf6,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x523c15=this['view'],_0x48e4c9=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x48e4c9['detachDomRoot'](_0x523c15['editable']['name']),_0x523c15['destroy']();}['_initToolbar'](){const _0x171029=this['view'];_0x171029['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x171029['stickyPanel']['limiterElement']=_0x171029['element'],_0x171029['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x525270})=>_0x525270),_0x171029['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x171029['toolbar']);}}class RevisionViewerEditorUIView extends BoxedEditorUIView{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x26f2db,_0x3c82e1,_0x379a3b={}){super(_0x26f2db),this['stickyPanel']=new StickyPanelView(_0x26f2db),this['toolbar']=new ToolbarView(_0x26f2db,{'shouldGroupWhenFull':_0x379a3b['shouldToolbarGroupWhenFull']}),this['_editable']=new InlineEditableUIView(_0x26f2db,_0x3c82e1);}['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(_0x9a9517,_0x536c94){super(_0x536c94),this['sourceElement']=_0x9a9517,this['model']['document']['createRoot']();const _0xcfeeee=new RevisionViewerEditorUIView(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new RevisionViewerEditorUI(this,_0xcfeeee);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x527687,_0xdc81c){const _0x4402a5=new this(_0x527687,_0xdc81c);return await _0x4402a5['initPlugins'](),await _0x4402a5['ui']['init'](_0x527687),await _0x4402a5['data']['init'](_0x4402a5['config']['get']('initialData')||''),_0x4402a5['fire']('ready'),_0x4402a5;}}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(_0x160e21){function _0x369b3d(_0x3e6ba3){return _0x3e6ba3['map'](_0xb4d371=>String['fromCharCode'](_0xb4d371))['join']('');}super(_0x160e21),this['result']='end',_0x160e21[_0x369b3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x369b3d([0x76,0x69,0x65,0x77])][_0x369b3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x369b3d([0x61,0x75,0x74,0x6f]),_0x160e21[_0x369b3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x369b3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x369b3d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x369b3d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x369b3d([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(_0x5e5926){if(super(_0x5e5926),!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',_0x5329aa=>this['_showRevisionViewer']({..._0x5329aa,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4fb715=>this['_closeRevisionViewer'](_0x4fb715)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x354877=>this['_restoreRevision'](_0x354877)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x26312a){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x26312a;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x82ccf2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x82ccf2);}['getRevision'](_0x369e63){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x369e63);}['getRevisions'](_0x268fff){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x268fff||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x19786e=this['editor'],_0xc6f060=sanitizeEditorConfig(_0x19786e,blackListedPlugins$1),_0x46a295=_0x19786e['plugins']['get']('RevisionTracker'),_0x2b74a8=_0x19786e['plugins']['get']('Users')['users'];return _0xc6f060['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xc6f060['lazyRoots'],(_0xc6f060['plugins']['push'](RevisionViewerIntegration,RevisionViewer,RevisionViewerUI,class extends Plugin{static get['requires'](){return[RevisionViewer,'Users'];}['init'](){const _0x30e865=this['editor']['plugins']['get']('Users');for(const _0x5a0d75 of _0x2b74a8)_0x5a0d75['isAnonymous']||_0x30e865['getUser'](_0x5a0d75['id'])||_0x30e865['addUser'](_0x5a0d75);const _0x584555=_0x46a295['repository']['getRevisions']();let _0x365c99=null;const _0x19846e=this['editor']['plugins']['get']('RevisionViewer');_0x19846e['adapter']=_0x46a295['adapter'],_0x19846e['bind']('isEnabled')['to'](_0x46a295),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x19786e,'isReadOnly',_0x499f3d=>!_0x499f3d);for(const _0xbba713 of _0x584555){const _0x9c6cf=null===_0xbba713['creator'];if(_0x9c6cf&&_0xbba713['toVersion']===_0xbba713['fromVersion'])continue;const _0x581044=_0xbba713['toJSON']();_0x19846e['addRevisionData'](_0x581044,(_0x36e673,_0x150f8c,_0x54428f)=>{if(_0x9c6cf){if(_0x365c99)_0x365c99['_update'](_0x36e673,_0x150f8c);else{if(!_0x150f8c){const _0x1ffa4a=_0x54428f['toJSON']();_0x1ffa4a['id']=uid(),_0x46a295['saveRevision'](_0x1ffa4a,_0x54428f['toVersion'])['then'](_0x5b44ef=>{_0x365c99=_0x5b44ef;});}}}else _0xbba713['_update'](_0x36e673,_0x150f8c);});}}},RevisionsSidebar),_0xc6f060);}['_enhanceShowRevisionViewerCallback'](){const _0x4e662c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x25ae59=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x52150b=this['editor']['plugins']['get']('Autosave');await _0x52150b['save']();}else await _0x25ae59['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x40af25=this['editor']['plugins']['get']('Dialog');_0x40af25['isOpen']&&_0x40af25['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x40b13f=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x51cfb1 of _0x40b13f)_0x51cfb1['class']=_0x51cfb1['class']?_0x51cfb1['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x12c6b0=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x12c6b0&&_0x12c6b0['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x3b4e1a=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x3b4e1a&&_0x3b4e1a['setAttribute']('tabindex','-1');}}const _0x164dbf=this['_getRevisionViewerEditorConfig']();return _0x4e662c(_0x164dbf)['then'](_0x2d1f0c=>{return(this['_viewerEditor']=_0x2d1f0c,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'),_0x2d1f0c);})['catch'](_0x33d993=>(console['error'](_0x33d993),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x455821=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 _0x442b43=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x4fe44b of _0x442b43)_0x4fe44b['class']='ck-tab-panel_disabled'===_0x4fe44b['class']?'':_0x4fe44b['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x272d89=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x272d89&&_0x272d89['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x1c2191=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x1c2191&&_0x1c2191['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x455821(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x556742=this['editor']['plugins']['get']('Annotations');_0x556742['refreshVisibility'](),_0x556742['refreshPositioning']();}});});}['_showRevisionViewer'](_0x2d25dc){const _0x98d495=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x10c221=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5b1ee7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return RevisionViewerEditor['create'](_0x5b1ee7,_0x2d25dc)['then'](_0x541b3c=>(_0x10c221['style']['display']='block',_0x98d495['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x541b3c));}['_closeRevisionViewer'](_0x2de9e7){const _0x41f8df=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x41f8df['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2de9e7['destroy']();}async['_restoreRevision'](_0x1b1e6e){const _0x459237=this['editor'],_0x35c010=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x31bd20=_0x459237['plugins']['get']('RevisionTracker'),_0x189424=_0x459237['plugins']['get']('RevisionHistoryUtils'),_0x5525a9=_0x35c010['repository']['getRevision'](_0x1b1e6e);let _0x58bdca,_0x54bce2,_0x39e2c8;try{await _0x189424['loadRevisionData'](_0x5525a9,this['adapter']),_0x58bdca=_0x189424['getRevisionDocumentData'](_0x5525a9),_0x54bce2=_0x189424['getRevisionRootsAttributes'](_0x5525a9);}catch(_0x564e3a){return void console['error'](_0x564e3a);}_0x459237['model']['change'](_0x2f88d2=>{for(const _0x290d00 of Array['from'](_0x459237['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2f88d2['removeMarker'](_0x290d00);}),_0x35c010['isReady']=!0x1,_0x459237['model']['enqueueChange'](_0x43688e=>{_0x43688e['setSelection'](null),_0x43688e['removeSelectionAttribute'](_0x459237['model']['document']['selection']['getAttributeKeys']());const _0x4f79e4=Object['keys'](_0x58bdca);for(const _0x26dd32 of _0x459237['model']['document']['roots'])'$graveyard'!=_0x26dd32['rootName']&&_0x26dd32['isAttached']()&&!_0x4f79e4['includes'](_0x26dd32['rootName'])&&_0x43688e['detachRoot'](_0x26dd32);for(const _0x3ffbc0 of _0x4f79e4){let _0x4a47d6=_0x459237['model']['document']['getRoot'](_0x3ffbc0);_0x4a47d6&&_0x4a47d6['isAttached']()||(_0x4a47d6=_0x43688e['addRoot'](_0x3ffbc0));const _0x5d3ad2=_0x54bce2[_0x3ffbc0],_0x2e7518=Object['keys'](_0x5d3ad2),_0x3bc11d=_0x58bdca[_0x3ffbc0];for(const _0x454fb7 of _0x4a47d6['getAttributeKeys']())_0x2e7518['includes'](_0x454fb7)||_0x43688e['removeAttribute'](_0x454fb7,_0x4a47d6);for(const _0x28f21d of _0x2e7518)_0x43688e['setAttribute'](_0x28f21d,_0x54bce2[_0x3ffbc0][_0x28f21d],_0x4a47d6);_0x43688e['remove'](_0x43688e['createRangeIn'](_0x4a47d6)),_0x43688e['insert'](_0x459237['data']['parse'](_0x3bc11d,_0x4a47d6),_0x4a47d6,0x0);}});const _0xbb8898=getTranslation$5(_0x459237['locale'],'Restored');if(_0x5525a9['name'])_0x39e2c8=-0x1==_0x5525a9['name']['indexOf'](_0xbb8898)?_0xbb8898+':\x20'+_0x5525a9['name']:_0x5525a9['name'];else _0x39e2c8=_0xbb8898+':\x20'+(_0x5525a9['createdAt']['toLocaleDateString'](_0x459237['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5525a9['createdAt']['toLocaleTimeString'](_0x459237['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x31bd20['saveRevision']({'name':_0x39e2c8}),_0x35c010['isReady']=!0x0,_0x459237['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}function getTranslation$4(_0x24abe3,_0xf8474f){const t=_0x24abe3['t'],_0x280b90=_0x24abe3['t'];switch(_0xf8474f){case'AI\x20Assistant':return _0x280b90('AI\x20Assistant');case'Block\x20quote':return _0x280b90('Block\x20quote');case'Bulleted\x20list':return _0x280b90('Bulleted\x20list');case'Insert\x20code\x20block':return _0x280b90('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x280b90('Open\x20file\x20manager');case'Insert\x20image':return _0x280b90('Insert\x20image');case'Heading\x201':return _0x280b90('Heading\x201');case'Heading\x202':return _0x280b90('Heading\x202');case'Heading\x203':return _0x280b90('Heading\x203');case'Heading\x204':return _0x280b90('Heading\x204');case'Heading\x205':return _0x280b90('Heading\x205');case'Heading\x206':return _0x280b90('Heading\x206');case'Horizontal\x20line':return _0x280b90('Horizontal\x20line');case'Insert\x20HTML':return _0x280b90('Insert\x20HTML');case'Increase\x20indent':return _0x280b90('Increase\x20indent');case'Insert\x20table':return _0x280b90('Insert\x20table');case'Table\x20of\x20contents':return _0x280b90('Table\x20of\x20contents');case'Numbered\x20list':return _0x280b90('Numbered\x20list');case'Decrease\x20indent':return _0x280b90('Decrease\x20indent');case'Paragraph':return _0x280b90('Paragraph');case'To-do\x20list':return _0x280b90('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 _0xf8474f;}}class SlashCommandConfig extends Plugin{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb78def){super(_0xb78def),this['_allowedCommands']=null;}['afterInit'](){const _0xc8ab4e=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x4be96a=getExcludedHeadings(this['editor']['config']['get']('heading.options')),_0x5b1e69=this['getDefaultCommands']()['filter'](_0x163a9a=>!_0x4be96a['includes'](_0x163a9a['id']));let _0x55ccb2=_0x5b1e69['filter'](_0x307cbe=>!_0xc8ab4e['includes'](_0x307cbe['commandName']));const _0x54a0b7=this['editor']['config']['get']('slashCommand.extraCommands');_0x54a0b7&&_0x54a0b7['length']&&(_0x55ccb2=_0x55ccb2['concat'](_0x54a0b7));const _0x14c0f7=this['editor']['config']['get']('template.definitions');_0x14c0f7&&_0x14c0f7['length']&&(_0x55ccb2=_0x55ccb2['concat'](mapTemplates(_0x14c0f7)));const _0x435e3e=this['editor']['config']['get']('style.definitions');_0x435e3e&&_0x435e3e['length']&&(_0x55ccb2=_0x55ccb2['concat'](mapStyles(_0x435e3e)));const _0x3a230c=_0x55ccb2['filter'](_0x33f388=>!_0x33f388['commandName']||void 0x0!==this['editor']['commands']['get'](_0x33f388['commandName'])),_0x2202d4=[];for(const _0x430a0f of _0x3a230c)_0x2202d4['push']({'id':_0x430a0f['id'],'commandName':_0x430a0f['commandName'],'title':'function'==typeof _0x430a0f['title']?_0x430a0f['title'](this['editor']):_0x430a0f['title'],'description':_0x430a0f['description'],'icon':_0x430a0f['icon'],'isIconColorInherited':_0x430a0f['isIconColorInherited'],'aliases':_0x430a0f['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x430a0f),'execute':()=>this['_proxyExecute'](_0x430a0f)});this['_allowedCommands']=_0x2202d4['sort'](compareCommands),checkLicense$4(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x4be18a=_0x292c52=>getTranslation$4(this['editor']['locale'],_0x292c52);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':IconRobotPencil,'title':_0x4be18a('AI\x20Assistant'),'description':_0x4be18a('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x1226ba=>{setTimeout(()=>_0x1226ba['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':IconQuote,'title':_0x4be18a('Block\x20quote'),'description':_0x4be18a('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':IconBulletedList,'title':_0x4be18a('Bulleted\x20list'),'description':_0x4be18a('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':IconCodeBlock,'title':_0x4be18a('Insert\x20code\x20block'),'description':_0x4be18a('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x4dad5f,'title':_0x4be18a('Open\x20file\x20manager'),'description':_0x4be18a('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x4dad5f,'title':_0x4be18a('Insert\x20image'),'description':_0x4be18a('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':IconEmoji,'title':_0x4be18a('Emoji'),'description':_0x4be18a('Insert\x20an\x20emoji'),'execute':_0x70166c=>{setTimeout(()=>_0x70166c['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':IconHeading1,'title':_0x4be18a('Heading\x201'),'description':_0x4be18a('Create\x20a\x20heading\x20level\x201'),'execute':_0xf4fcb3=>{_0xf4fcb3['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':IconHeading2,'title':_0x4be18a('Heading\x202'),'description':_0x4be18a('Create\x20a\x20heading\x20level\x202'),'execute':_0x3220cb=>{_0x3220cb['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':IconHeading3,'title':_0x4be18a('Heading\x203'),'description':_0x4be18a('Create\x20a\x20heading\x20level\x203'),'execute':_0x26336f=>{_0x26336f['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':IconHeading4,'title':_0x4be18a('Heading\x204'),'description':_0x4be18a('Create\x20a\x20heading\x20level\x204'),'execute':_0x56a5aa=>{_0x56a5aa['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':IconHeading5,'title':_0x4be18a('Heading\x205'),'description':_0x4be18a('Create\x20a\x20heading\x20level\x205'),'execute':_0x595a86=>{_0x595a86['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':IconHeading6,'title':_0x4be18a('Heading\x206'),'description':_0x4be18a('Create\x20a\x20heading\x20level\x206'),'execute':_0x22d0f1=>{_0x22d0f1['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':IconHorizontalLine,'title':_0x4be18a('Horizontal\x20line'),'description':_0x4be18a('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':IconHtml,'title':_0x4be18a('Insert\x20HTML'),'description':_0x4be18a('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':IconIndent,'title':_0x4be18a('Increase\x20indent'),'description':_0x4be18a('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x4be18a('Insert\x20Mermaid\x20diagram'),'description':_0x4be18a('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':IconTable,'title':_0x4be18a('Insert\x20table'),'description':_0x4be18a('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':IconTableOfContents,'title':_0x4be18a('Table\x20of\x20contents'),'description':_0x4be18a('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':IconNumberedList,'title':_0x4be18a('Numbered\x20list'),'description':_0x4be18a('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':IconOutdent,'title':_0x4be18a('Decrease\x20indent'),'description':_0x4be18a('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':IconParagraph,'title':_0x4be18a('Paragraph'),'description':_0x4be18a('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':IconTodoList,'title':_0x4be18a('To-do\x20list'),'description':_0x4be18a('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':IconFootnote,'title':_0x4be18a('Footnote'),'description':_0x4be18a('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x2c7c64){return _0x2c7c64['isEnabled']?_0x2c7c64['isEnabled'](this['editor']):!_0x2c7c64['commandName']||this['editor']['commands']['get'](_0x2c7c64['commandName'])['isEnabled'];}['_proxyExecute'](_0x40ceec){if(_0x40ceec['execute'])_0x40ceec['execute'](this['editor']);else{if(!_0x40ceec['commandName'])throw new CKEditorError('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x40ceec});this['editor']['execute'](_0x40ceec['commandName']);}}}function compareCommands(_0x5dec08,_0x385c84){return _0x5dec08['title']<_0x385c84['title']?-0x1:_0x5dec08['title']>_0x385c84['title']?0x1:0x0;}function convertTitleToId(_0x4ff11e,_0x97bce2){return _0x97bce2+'-'+_0x4ff11e['toLowerCase']()['split']('\x20')['join']('-');}function mapTemplates(_0x4e110a){return _0x4e110a['map'](_0x51a2d3=>{const {title:_0xf3f66a,icon:_0x83d42a,description:_0x4f7a28,data:_0x1cbd30}=_0x51a2d3,_0x3167be={'id':convertTitleToId(_0xf3f66a,'template'),'commandName':'insertTemplate','execute':_0x3a9f1f=>{_0x3a9f1f['execute']('insertTemplate',_0x1cbd30);},'description':_0x4f7a28,'icon':_0x83d42a,'title':_0xf3f66a};return _0x83d42a&&(_0x3167be['isIconColorInherited']=!0x1),_0x3167be;});}function mapStyles(_0x241def){return _0x241def['map'](_0x106450=>{const _0x244f92={'id':convertTitleToId(_0x106450['name'],'style'),'commandName':'style','execute':_0x574ddc=>{_0x574ddc['execute']('style',{'styleName':_0x106450['name']});},'isEnabled':_0x3295a4=>{const _0x3bb161=_0x3295a4['commands']['get']('style');return _0x3bb161['isEnabled']&&_0x3bb161['enabledStyles']['includes'](_0x106450['name']);},'title':_0x106450['name']};return _0x244f92;});}function getExcludedHeadings(_0x4e3946){let _0x2f2e83=['heading4','heading5','heading6'];if(_0x4e3946){const _0x5599c0=_0x4e3946['map'](_0x237a3e=>_0x237a3e['model']);_0x2f2e83=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x26fec2=>!_0x5599c0['includes'](_0x26fec2));}return _0x2f2e83;}async function checkLicense$4(_0x6c2d37){const _0x164068=_0x33448a([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]),_0x36c6fe=window[_0x33448a([0x44,0x61,0x74,0x65])][_0x33448a([0x6e,0x6f,0x77])](),_0x716b15=_0x6c2d37[_0x33448a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x384e02=new window[(_0x33448a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x339c74=>{_0x716b15[_0x33448a([0x6f,0x6e,0x63,0x65])](_0x33448a([0x72,0x65,0x61,0x64,0x79]),_0x339c74);}),_0x4028b8={[_0x33448a([0x6b,0x74,0x79])]:_0x33448a([0x45,0x43]),[_0x33448a([0x75,0x73,0x65])]:_0x33448a([0x73,0x69,0x67]),[_0x33448a([0x63,0x72,0x76])]:_0x33448a([0x50,0x2d,0x32,0x35,0x36]),[_0x33448a([0x78])]:_0x33448a([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]),[_0x33448a([0x79])]:_0x33448a([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]),[_0x33448a([0x61,0x6c,0x67])]:_0x33448a([0x45,0x53,0x32,0x35,0x36])},_0x6da1b3=_0x716b15[_0x33448a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x33448a([0x67,0x65,0x74])](_0x33448a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5b39ad=await(async function(){let _0x52aa4a,_0x49b885=null,_0x566035=null;try{if(_0x6da1b3==_0x33448a([0x47,0x50,0x4c]))return _0x33448a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52aa4a=(function(){const _0x3e28dc=_0x6da1b3[_0x33448a([0x73,0x70,0x6c,0x69,0x74])](_0x33448a([0x2e]));if(0x3!=_0x3e28dc[_0x33448a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x24f7c6=_0x3e28dc[0x1];return _0x2c44fc(_0x24f7c6);function _0x2c44fc(_0x18b849){const _0x17e819=_0x4dab2f(_0x18b849);return _0x17e819&&_0x8ba26c()?_0x17e819:null;function _0x8ba26c(){const _0x97bdc5=_0x17e819[_0x33448a([0x6a,0x74,0x69])],_0x112e91=window[_0x33448a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x97bdc5[_0x33448a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x97bdc5[_0x33448a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x482a8e={..._0x17e819,[_0x33448a([0x6a,0x74,0x69])]:_0x97bdc5[_0x33448a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x97bdc5[_0x33448a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x482a8e[_0x33448a([0x76,0x63])],_0x44375a(_0x482a8e)==_0x112e91;}}}()),!_0x52aa4a)return _0x33448a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x52aa4a[_0x33448a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x566035=function(_0x12c133,_0x51f4af){return new window[(_0x33448a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5df303=>{if(_0x244218())return _0x5df303(_0x33448a([0x56,0x61,0x6c,0x69,0x64]));_0x80876b(),_0x716b15[_0x33448a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x33448a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xab99eb=!0x1;const _0x2eb7fe=uid();function _0xb5ac60(_0x58f229){return!!_0x58f229&&(typeof _0x58f229===_0x33448a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58f229===_0x33448a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58f229[_0x33448a([0x74,0x68,0x65,0x6e])]===_0x33448a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58f229[_0x33448a([0x63,0x61,0x74,0x63,0x68])]===_0x33448a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x43a506(_0x1d3390){_0x30b5f6(_0x1d3390)[_0x33448a([0x74,0x68,0x65,0x6e])](_0x2b4926=>{if(!_0x2b4926||_0x2b4926[_0x33448a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x33448a([0x6f,0x6b]))return _0x33448a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14e683(_0x44375a(_0x2eb7fe+_0x51f4af))!=_0x2b4926[_0x33448a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x33448a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x33448a([0x56,0x61,0x6c,0x69,0x64]);})[_0x33448a([0x74,0x68,0x65,0x6e])](_0x204c8e=>(_0xd842a4(),_0x204c8e),()=>{const _0x7d041f=_0x1c61df();return null==_0x7d041f?(_0xd842a4(),_0x33448a([0x56,0x61,0x6c,0x69,0x64])):_0x33448a(_0x36c6fe-_0x7d041f>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x33448a([0x74,0x68,0x65,0x6e])](_0x5df303)[_0x33448a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5df303(_0x33448a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10e25a=0x36ee80;function _0xd842a4(){const _0x4c0cb0=_0x33448a([0x6c,0x6c,0x63,0x74,0x2d])+_0x14e683(_0x44375a(_0x12c133)),_0x12a52f=_0x31df45(_0x14e683(window[_0x33448a([0x4d,0x61,0x74,0x68])][_0x33448a([0x63,0x65,0x69,0x6c])](_0x36c6fe/_0x10e25a)));window[_0x33448a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x33448a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c0cb0,_0x12a52f);}function _0x1c61df(){const _0x495360=_0x33448a([0x6c,0x6c,0x63,0x74,0x2d])+_0x14e683(_0x44375a(_0x12c133)),_0x2ca43f=window[_0x33448a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x33448a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x495360);return _0x2ca43f?window[_0x33448a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31df45(_0x2ca43f),0x10)*_0x10e25a:null;}function _0x30b5f6(_0x4ad979){return new window[(_0x33448a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfcd8cc,_0x350eb5)=>{_0x4ad979[_0x33448a([0x74,0x68,0x65,0x6e])](_0xfcd8cc,_0x350eb5),window[_0x33448a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x350eb5,0x1d4c0);});}}_0x716b15[_0x33448a([0x6f,0x6e])](_0x33448a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1124f8,_0x4b8d0d)=>{if(_0x4b8d0d[0x0]!=_0x12c133)return _0x5df303(_0x33448a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b8d0d[0x1]={..._0x4b8d0d[0x1],[_0x33448a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2eb7fe};},{[_0x33448a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x33448a([0x68,0x69,0x67,0x68])}),_0x716b15[_0x33448a([0x6f,0x6e])](_0x33448a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x285bcf=>{_0xb5ac60(_0x285bcf[_0x33448a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xab99eb=!0x0,_0x43a506(_0x285bcf[_0x33448a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x33448a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x33448a([0x6c,0x6f,0x77])}),_0x384e02[_0x33448a([0x74,0x68,0x65,0x6e])](()=>{_0xab99eb||_0x5df303(_0x33448a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x244218(){return _0x716b15[_0x33448a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33448a([0x76,0x69,0x65,0x77])][_0x33448a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x33448a([0x61,0x75,0x74,0x6f]);}function _0x80876b(){_0x716b15[_0x33448a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33448a([0x76,0x69,0x65,0x77])][_0x33448a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x33448a([0x61,0x75,0x74,0x6f]);}}(_0x52aa4a[_0x33448a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52aa4a[_0x33448a([0x6a,0x74,0x69])]));const _0x1061a3=await(async function(){let _0x2aad5e=!0x0;try{const _0x3abfb3=_0x6da1b3[_0x33448a([0x73,0x70,0x6c,0x69,0x74])](_0x33448a([0x2e])),[_0x17c994,_0x4ec707,_0x137457]=_0x3abfb3;return _0x4d3982(_0x17c994),await _0x2d4ae2(_0x17c994,_0x4ec707,_0x137457),_0x2aad5e;}catch{return!0x1;}function _0x4d3982(_0x26702f){const _0x3dc0f7=_0x4dab2f(_0x26702f);_0x3dc0f7&&_0x3dc0f7[_0x33448a([0x61,0x6c,0x67])]==_0x33448a([0x45,0x53,0x32,0x35,0x36])||(_0x2aad5e=!0x1);}async function _0x2d4ae2(_0x1a4379,_0xd83723,_0x190bdb){const _0x3317e5=window[_0x33448a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x33448a([0x66,0x72,0x6f,0x6d])](_0x34236a(_0x190bdb),_0x281afd=>_0x281afd[_0x33448a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b08c2=new window[(_0x33448a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x33448a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a4379+_0x33448a([0x2e])+_0xd83723),_0x4b7215=window[_0x33448a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x33448a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b7215)return;const _0x3fd7e1=await _0x4b7215[_0x33448a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x33448a([0x6a,0x77,0x6b]),_0x4028b8,{[_0x33448a([0x6e,0x61,0x6d,0x65])]:_0x33448a([0x45,0x43,0x44,0x53,0x41]),[_0x33448a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x33448a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x33448a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b7215[_0x33448a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x33448a([0x6e,0x61,0x6d,0x65])]:_0x33448a([0x45,0x43,0x44,0x53,0x41]),[_0x33448a([0x68,0x61,0x73,0x68])]:{[_0x33448a([0x6e,0x61,0x6d,0x65])]:_0x33448a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3fd7e1,_0x3317e5,_0x2b08c2)||(_0x2aad5e=!0x1);}}());return _0x1061a3?(function(){const _0x1a3e5f=_0x52aa4a[_0x33448a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1a3e5f)return!0x1;if(_0x1a3e5f[_0x33448a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33448a([0x2a])))return!0x0;if(_0x1a3e5f[_0x33448a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33448a([0x53,0x43])))return!0x0;if(_0x1a3e5f[_0x33448a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33448a([0x50,0x50])))return!0x0;if(_0x1a3e5f[_0x33448a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33448a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x33448a([0x67,0x6c,0x6f,0x62])]&&window[_0x33448a([0x67,0x6c,0x6f,0x62])][_0x33448a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0xdad6ad=[_0x33448a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x33448a([0x74,0x72,0x69,0x61,0x6c])][_0x33448a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52aa4a[_0x33448a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36c6fe/0x3e8:0x69b0b080;return _0x52aa4a[_0x33448a([0x65,0x78,0x70])]<_0xdad6ad;}())?_0x33448a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x17affa=_0x52aa4a[_0x33448a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x17affa||0x0==_0x17affa[_0x33448a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11864a}=new URL(window[_0x33448a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x17affa[_0x33448a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11864a))return!0x0;const _0x5bdf24=_0x11864a[_0x33448a([0x73,0x70,0x6c,0x69,0x74])](_0x33448a([0x2e]));return _0x17affa[_0x33448a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x245492=>_0x245492[_0x33448a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33448a([0x2a])))[_0x33448a([0x6d,0x61,0x70])](_0x2ea958=>_0x2ea958[_0x33448a([0x73,0x70,0x6c,0x69,0x74])](_0x33448a([0x2e])))[_0x33448a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf0a926=>_0xf0a926[_0x33448a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5bdf24[_0x33448a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x33448a([0x6d,0x61,0x70])](_0x109d0b=>Array(_0x5bdf24[_0x33448a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x109d0b[_0x33448a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x33448a([0x66,0x69,0x6c,0x6c])](_0x109d0b[0x0]===_0x33448a([0x2a])?_0x33448a([0x2a]):'')[_0x33448a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x109d0b))[_0x33448a([0x73,0x6f,0x6d,0x65])](_0x229aef=>_0x5bdf24[_0x33448a([0x65,0x76,0x65,0x72,0x79])]((_0x19d641,_0x1702a7)=>_0x229aef[_0x1702a7]===_0x19d641||_0x229aef[_0x1702a7]===_0x33448a([0x2a])));}())?(_0x52aa4a[_0x33448a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x33448a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49b885=function(_0x178d7d){const _0x1326df=new window[(_0x33448a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3363f9=>setTimeout(_0x3363f9,0x93ecc)),_0x9a407b=_0x384e02[_0x33448a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x33448a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x481c73=>{let _0x2eadf8=0x0;_0x716b15[_0x33448a([0x6d,0x6f,0x64,0x65,0x6c])][_0x33448a([0x6f,0x6e])](_0x33448a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xaa3170,_0x3d6c9e)=>{_0x3d6c9e[0x0][_0x33448a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2eadf8++,0x5e8==_0x2eadf8&&(_0x481c73(),_0xaa3170[_0x33448a([0x6f,0x66,0x66])]());});})),_0x5f38a1=[_0x1326df,_0x9a407b];return window[_0x33448a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x33448a([0x72,0x61,0x63,0x65])](_0x5f38a1)[_0x33448a([0x74,0x68,0x65,0x6e])](()=>_0x178d7d);}(_0x33448a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x49b885&&_0x566035)return new window[(_0x33448a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46b930,_0x50bf45)=>{_0x49b885[_0x33448a([0x74,0x68,0x65,0x6e])](_0x46b930,_0x50bf45),_0x566035[_0x33448a([0x74,0x68,0x65,0x6e])](_0x49eb48=>{_0x49eb48!=_0x33448a([0x56,0x61,0x6c,0x69,0x64])&&_0x46b930(_0x49eb48);},_0x50bf45);});return _0x49b885||_0x566035||_0x33448a([0x56,0x61,0x6c,0x69,0x64]);}())):_0x33448a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x33448a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x33448a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x33448a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x4dab2f(_0x26c04a){return _0x26c04a[_0x33448a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x33448a([0x65,0x79]))?JSON[_0x33448a([0x70,0x61,0x72,0x73,0x65])](_0x34236a(_0x26c04a)):null;}function _0x34236a(_0x38bf4e){return window[_0x33448a([0x61,0x74,0x6f,0x62])](_0x38bf4e[_0x33448a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x33448a([0x2b]))[_0x33448a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x33448a([0x2f])));}function _0x44375a(_0x3c5e3a){let _0x20dc1a=0x1505;function _0x2b4424(_0x470dc5){for(let _0x52840b=0x0;_0x52840b<_0x470dc5[_0x33448a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52840b++){const _0x2cd6a1=_0x470dc5[_0x33448a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x52840b);_0x20dc1a=(_0x20dc1a<<0x5)+_0x20dc1a+_0x2cd6a1,_0x20dc1a&=_0x20dc1a;}}return function _0x3edb89(_0x5a570d){Array[_0x33448a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a570d)?_0x5a570d[_0x33448a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3edb89):_0x5a570d&&typeof _0x5a570d==_0x33448a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x33448a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a570d)[_0x33448a([0x73,0x6f,0x72,0x74])]()[_0x33448a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46c61a,_0x1ab45c])=>{_0x2b4424(_0x46c61a),_0x3edb89(_0x1ab45c);}):_0x2b4424(window[_0x33448a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a570d));}(_0x3c5e3a),_0x20dc1a>>>0x0;}function _0x14e683(_0x47fe25){return _0x47fe25[_0x33448a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x33448a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x33448a([0x30]));}function _0x31df45(_0x5a531e){return _0x5a531e[_0x33448a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x33448a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x33448a([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f1e2d(){}function _0x33448a(_0xe1249a){return _0xe1249a['map'](_0x55a7ff=>String['fromCharCode'](_0x55a7ff))['join']('');}!function(_0x6d4a64){const _0x2bff70=(function(){const _0x4aef47=window[_0x33448a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x33448a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x33448a([0x6e,0x6f,0x77])]())[_0x33448a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x33448a([0x2e]),'');let _0x5d8be9=_0x33448a([0x75]);for(let _0x46bad6=0x0;_0x46bad6<_0x4aef47[_0x33448a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46bad6+=0x2){let _0x108564=window[_0x33448a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4aef47[_0x33448a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46bad6,_0x46bad6+0x2));_0x108564>=_0x164068[_0x33448a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x108564-=_0x164068[_0x33448a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d8be9+=_0x164068[_0x108564];}return _0x5d8be9;}());_0x716b15[_0x2bff70]=_0x33448a([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6d4a64,_0x6d4a64!=_0x33448a([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x384e02,_0x716b15[_0x33448a([0x6d,0x6f,0x64,0x65,0x6c])][_0x33448a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5f1e2d,_0x716b15[_0x33448a([0x6d,0x6f,0x64,0x65,0x6c])][_0x33448a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5f1e2d,_0x716b15[_0x33448a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x33448a([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5b39ad);}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'](_0x312a55){const _0x59de06=_0x312a55&&_0x312a55['toLowerCase']();let _0x2f22c7=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x2f22c7=_0x2f22c7['filter'](_0x211cd4=>_0x211cd4['isEnabled']()),_0x59de06){const _0x23b728=[],_0x41a1d8=[],_0x4fdc09=[],_0x2f1060=[];for(const _0x1071dd of _0x2f22c7)_0x1071dd['id']['toLowerCase']()['includes'](_0x59de06)?_0x23b728['push'](_0x1071dd):_0x1071dd['title']['toLowerCase']()['includes'](_0x59de06)?_0x41a1d8['push'](_0x1071dd):_0x1071dd['aliases']&&_0x1071dd['aliases']['some'](_0x1817b9=>_0x1817b9['toLowerCase']()['includes'](_0x59de06))?_0x4fdc09['push'](_0x1071dd):_0x1071dd['description']&&_0x1071dd['description']['toLowerCase']()['includes'](_0x59de06)&&_0x2f1060['push'](_0x1071dd);_0x2f22c7=_0x23b728['concat'](_0x41a1d8,_0x4fdc09,_0x2f1060);}return _0x2f22c7;}}class SlashCommandButtonView extends ButtonView{constructor(_0xf4a1a5,_0x3006b1){super(_0xf4a1a5),this['textPartView']=this['_createTextPartView'](_0xf4a1a5,_0x3006b1),void 0x0!==_0x3006b1['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x3006b1['isIconColorInherited']),this['set']({'icon':_0x3006b1['icon']||IconPlay,'withText':!0x0,'label':_0x3006b1['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x377c0e,_0xb05c8e){const _0x4be4e6=new View(_0x377c0e);return _0x4be4e6['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0xb05c8e['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0xb05c8e['description']}]}]:[this['labelView']]}),_0x4be4e6;}}class SlashCommandUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x474645){super(_0x474645),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x169031=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f51bd;for(const _0x4962b8 in _0x169031){const _0x5f54f7=_0x4962b8,_0x114cf=_0x169031[_0x5f54f7];if('slashCommandLicenseKeyValid'==_0x114cf||'slashCommandLicenseKeyInvalid'==_0x114cf||'slashCommandLicenseKeyExpired'==_0x114cf||'slashCommandLicenseKeyDomainLimit'==_0x114cf||'slashCommandLicenseKeyNotAllowed'==_0x114cf||'slashCommandLicenseKeyEvaluationLimit'==_0x114cf||'slashCommandLicenseKeyUsageLimit'==_0x114cf){delete _0x169031[_0x5f54f7],_0x2f51bd=_0x114cf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x2f51bd&&_0x169031['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x2f51bd&&_0x169031['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x2f51bd&&_0x169031['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x2f51bd&&_0x169031['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x2f51bd&&_0x169031['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x2f51bd&&_0x169031['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x2feacb=this['editor'],_0x5cb2a7=this['editor']['plugins']['get']('SlashCommandEditing'),_0x3d40a1=_0x2feacb['config']['get']('mention.feeds');_0x3d40a1['push']({'marker':'/','feed':_0x53a6ff=>_0x5cb2a7['getMatchingCommands'](_0x53a6ff),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x2feacb['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x2feacb['config']['set']('mention.feeds',_0x3d40a1);}['_overrideMentionExecuteListener'](){const _0x464c6b=this['editor'];_0x464c6b['commands']['get']('mention')['on']('execute',(_0x1756e8,_0x4b4836)=>{const _0x1a735b=_0x4b4836[0x0],_0x41715b=_0x464c6b['model'];'/'===_0x1a735b['marker']&&_0x41715b['change'](_0x19af50=>{_0x19af50['remove'](_0x1a735b['range']),_0x1a735b['mention']['execute'](),_0x1756e8['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0xf3988b){const _0xc4f0f8=this['editor']['locale'],_0x31d730=new SlashCommandButtonView(_0xc4f0f8,_0xf3988b);return _0x31d730['render'](),_0x31d730['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(_0x11ad40,_0x3ec837){const t=_0x11ad40['t'];switch(_0x3ec837){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 _0x3ec837;}}function getActiveRootName(_0x223b55){const _0x28c065=_0x223b55['editing']['view']['document']['roots'],_0x52ff55=_0x28c065['length'];if(0x0===_0x52ff55)throw new CKEditorError('source-editing-enhanced-editor-no-root',_0x223b55);if(0x1===_0x52ff55)return _0x28c065['first']['rootName'];return Array['from'](_0x223b55['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function formatSource(_0x3acbb4){return isHtml(_0x3acbb4)?formatHtml(_0x3acbb4):_0x3acbb4;}function unformatSource(_0x44a2bb){return isHtml(_0x44a2bb['replace'](/^[\n\s]*/g,''))?_0x44a2bb['replace'](/\s+/g,''):_0x44a2bb;}function isHtml(_0x30d5c9){return _0x30d5c9['startsWith']('<');}let rangeFrom=[],rangeTo=[];function isExtendingChar(_0x517e68){if(_0x517e68<0x300)return!0x1;for(let _0x5054f7=0x0,_0x253653=rangeFrom['length'];;){let _0xc44fb2=_0x5054f7+_0x253653>>0x1;if(_0x517e68<rangeFrom[_0xc44fb2])_0x253653=_0xc44fb2;else{if(!(_0x517e68>=rangeTo[_0xc44fb2]))return!0x0;_0x5054f7=_0xc44fb2+0x1;}if(_0x5054f7==_0x253653)return!0x1;}}function isRegionalIndicator(_0x33d288){return _0x33d288>=0x1f1e6&&_0x33d288<=0x1f1ff;}((()=>{let _0x445947='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'](_0x2808ab=>_0x2808ab?parseInt(_0x2808ab,0x24):0x1);for(let _0x38879d=0x0,_0x2338ca=0x0;_0x38879d<_0x445947['length'];_0x38879d++)(_0x38879d%0x2?rangeTo:rangeFrom)['push'](_0x2338ca+=_0x445947[_0x38879d]);})());const ZWJ=0x200d;function findClusterBreak$1(_0x818344,_0x29dce0,_0x4a4e26=!0x0,_0x46e6f0=!0x0){return(_0x4a4e26?nextClusterBreak:prevClusterBreak)(_0x818344,_0x29dce0,_0x46e6f0);}function nextClusterBreak(_0x31f080,_0x162670,_0x532589){if(_0x162670==_0x31f080['length'])return _0x162670;_0x162670&&surrogateLow$1(_0x31f080['charCodeAt'](_0x162670))&&surrogateHigh$1(_0x31f080['charCodeAt'](_0x162670-0x1))&&_0x162670--;let _0x1b0a2f=codePointAt$1(_0x31f080,_0x162670);for(_0x162670+=codePointSize$1(_0x1b0a2f);_0x162670<_0x31f080['length'];){let _0x4a75c0=codePointAt$1(_0x31f080,_0x162670);if(_0x1b0a2f==ZWJ||_0x4a75c0==ZWJ||_0x532589&&isExtendingChar(_0x4a75c0))_0x162670+=codePointSize$1(_0x4a75c0),_0x1b0a2f=_0x4a75c0;else{if(!isRegionalIndicator(_0x4a75c0))break;{let _0x46644f=0x0,_0x19aab0=_0x162670-0x2;for(;_0x19aab0>=0x0&&isRegionalIndicator(codePointAt$1(_0x31f080,_0x19aab0));)_0x46644f++,_0x19aab0-=0x2;if(_0x46644f%0x2==0x0)break;_0x162670+=0x2;}}}return _0x162670;}function prevClusterBreak(_0x141b2e,_0x436ac7,_0x47283a){for(;_0x436ac7>0x0;){let _0x120652=nextClusterBreak(_0x141b2e,_0x436ac7-0x2,_0x47283a);if(_0x120652<_0x436ac7)return _0x120652;_0x436ac7--;}return 0x0;}function codePointAt$1(_0x4377d2,_0x4fb47f){let _0x232c6e=_0x4377d2['charCodeAt'](_0x4fb47f);if(!surrogateHigh$1(_0x232c6e)||_0x4fb47f+0x1==_0x4377d2['length'])return _0x232c6e;let _0x19bffb=_0x4377d2['charCodeAt'](_0x4fb47f+0x1);return surrogateLow$1(_0x19bffb)?_0x19bffb-0xdc00+(_0x232c6e-0xd800<<0xa)+0x10000:_0x232c6e;}function surrogateLow$1(_0x51c109){return _0x51c109>=0xdc00&&_0x51c109<0xe000;}function surrogateHigh$1(_0x3a4528){return _0x3a4528>=0xd800&&_0x3a4528<0xdc00;}function codePointSize$1(_0xdbe4bd){return _0xdbe4bd<0x10000?0x1:0x2;}class Text{['lineAt'](_0x49798c){if(_0x49798c<0x0||_0x49798c>this['length'])throw new RangeError('Invalid\x20position\x20'+_0x49798c+'\x20in\x20document\x20of\x20length\x20'+this['length']);return this['lineInner'](_0x49798c,!0x1,0x1,0x0);}['line'](_0x3b7fbc){if(_0x3b7fbc<0x1||_0x3b7fbc>this['lines'])throw new RangeError('Invalid\x20line\x20number\x20'+_0x3b7fbc+'\x20in\x20'+this['lines']+'-line\x20document');return this['lineInner'](_0x3b7fbc,!0x0,0x1,0x0);}['replace'](_0x3eb01c,_0x4adbc5,_0xd77102){[_0x3eb01c,_0x4adbc5]=clip(this,_0x3eb01c,_0x4adbc5);let _0x5dd8d0=[];return this['decompose'](0x0,_0x3eb01c,_0x5dd8d0,0x2),_0xd77102['length']&&_0xd77102['decompose'](0x0,_0xd77102['length'],_0x5dd8d0,0x3),this['decompose'](_0x4adbc5,this['length'],_0x5dd8d0,0x1),TextNode['from'](_0x5dd8d0,this['length']-(_0x4adbc5-_0x3eb01c)+_0xd77102['length']);}['append'](_0x5c165d){return this['replace'](this['length'],this['length'],_0x5c165d);}['slice'](_0x11d16b,_0x367b7c=this['length']){[_0x11d16b,_0x367b7c]=clip(this,_0x11d16b,_0x367b7c);let _0x30f739=[];return this['decompose'](_0x11d16b,_0x367b7c,_0x30f739,0x0),TextNode['from'](_0x30f739,_0x367b7c-_0x11d16b);}['eq'](_0x4f4ce5){if(_0x4f4ce5==this)return!0x0;if(_0x4f4ce5['length']!=this['length']||_0x4f4ce5['lines']!=this['lines'])return!0x1;let _0x48d2e4=this['scanIdentical'](_0x4f4ce5,0x1),_0x5c7e5d=this['length']-this['scanIdentical'](_0x4f4ce5,-0x1),_0x1ae50a=new RawTextCursor(this),_0x4c247f=new RawTextCursor(_0x4f4ce5);for(let _0x33ee1c=_0x48d2e4,_0x2b9c05=_0x48d2e4;;){if(_0x1ae50a['next'](_0x33ee1c),_0x4c247f['next'](_0x33ee1c),_0x33ee1c=0x0,_0x1ae50a['lineBreak']!=_0x4c247f['lineBreak']||_0x1ae50a['done']!=_0x4c247f['done']||_0x1ae50a['value']!=_0x4c247f['value'])return!0x1;if(_0x2b9c05+=_0x1ae50a['value']['length'],_0x1ae50a['done']||_0x2b9c05>=_0x5c7e5d)return!0x0;}}['iter'](_0x3e74bb=0x1){return new RawTextCursor(this,_0x3e74bb);}['iterRange'](_0x3c9ac7,_0x225928=this['length']){return new PartialTextCursor(this,_0x3c9ac7,_0x225928);}['iterLines'](_0x5c587a,_0x8b117a){let _0x1b5f67;if(null==_0x5c587a)_0x1b5f67=this['iter']();else{null==_0x8b117a&&(_0x8b117a=this['lines']+0x1);let _0x4fec5f=this['line'](_0x5c587a)['from'];_0x1b5f67=this['iterRange'](_0x4fec5f,Math['max'](_0x4fec5f,_0x8b117a==this['lines']+0x1?this['length']:_0x8b117a<=0x1?0x0:this['line'](_0x8b117a-0x1)['to']));}return new LineCursor(_0x1b5f67);}['toString'](){return this['sliceString'](0x0);}['toJSON'](){let _0x27896c=[];return this['flatten'](_0x27896c),_0x27896c;}constructor(){}static['of'](_0x4dc4ad){if(0x0==_0x4dc4ad['length'])throw new RangeError('A\x20document\x20must\x20have\x20at\x20least\x20one\x20line');return 0x1!=_0x4dc4ad['length']||_0x4dc4ad[0x0]?_0x4dc4ad['length']<=0x20?new TextLeaf(_0x4dc4ad):TextNode['from'](TextLeaf['split'](_0x4dc4ad,[])):Text['empty'];}}class TextLeaf extends Text{constructor(_0x58856a,_0x10dcbe=textLength(_0x58856a)){super(),this['text']=_0x58856a,this['length']=_0x10dcbe;}get['lines'](){return this['text']['length'];}get['children'](){return null;}['lineInner'](_0x1e754e,_0x938edb,_0x1c812d,_0x40f10e){for(let _0x35fdd5=0x0;;_0x35fdd5++){let _0x40094a=this['text'][_0x35fdd5],_0x5e208c=_0x40f10e+_0x40094a['length'];if((_0x938edb?_0x1c812d:_0x5e208c)>=_0x1e754e)return new Line$1(_0x40f10e,_0x5e208c,_0x1c812d,_0x40094a);_0x40f10e=_0x5e208c+0x1,_0x1c812d++;}}['decompose'](_0x5f0032,_0x2339da,_0x53ab2f,_0x3093bb){let _0x2ef0a8=_0x5f0032<=0x0&&_0x2339da>=this['length']?this:new TextLeaf(sliceText(this['text'],_0x5f0032,_0x2339da),Math['min'](_0x2339da,this['length'])-Math['max'](0x0,_0x5f0032));if(0x1&_0x3093bb){let _0x381326=_0x53ab2f['pop'](),_0x9c6b47=appendText(_0x2ef0a8['text'],_0x381326['text']['slice'](),0x0,_0x2ef0a8['length']);if(_0x9c6b47['length']<=0x20)_0x53ab2f['push'](new TextLeaf(_0x9c6b47,_0x381326['length']+_0x2ef0a8['length']));else{let _0x27b245=_0x9c6b47['length']>>0x1;_0x53ab2f['push'](new TextLeaf(_0x9c6b47['slice'](0x0,_0x27b245)),new TextLeaf(_0x9c6b47['slice'](_0x27b245)));}}else _0x53ab2f['push'](_0x2ef0a8);}['replace'](_0x2835f3,_0x9d67fa,_0x2cf7c3){if(!(_0x2cf7c3 instanceof TextLeaf))return super['replace'](_0x2835f3,_0x9d67fa,_0x2cf7c3);[_0x2835f3,_0x9d67fa]=clip(this,_0x2835f3,_0x9d67fa);let _0x3582e9=appendText(this['text'],appendText(_0x2cf7c3['text'],sliceText(this['text'],0x0,_0x2835f3)),_0x9d67fa),_0xb385f9=this['length']+_0x2cf7c3['length']-(_0x9d67fa-_0x2835f3);return _0x3582e9['length']<=0x20?new TextLeaf(_0x3582e9,_0xb385f9):TextNode['from'](TextLeaf['split'](_0x3582e9,[]),_0xb385f9);}['sliceString'](_0x3fef85,_0x417fc4=this['length'],_0xe2a16b='\x0a'){[_0x3fef85,_0x417fc4]=clip(this,_0x3fef85,_0x417fc4);let _0x3d79e8='';for(let _0x5f5ac4=0x0,_0x2a83ac=0x0;_0x5f5ac4<=_0x417fc4&&_0x2a83ac<this['text']['length'];_0x2a83ac++){let _0x1df0f0=this['text'][_0x2a83ac],_0x56e44e=_0x5f5ac4+_0x1df0f0['length'];_0x5f5ac4>_0x3fef85&&_0x2a83ac&&(_0x3d79e8+=_0xe2a16b),_0x3fef85<_0x56e44e&&_0x417fc4>_0x5f5ac4&&(_0x3d79e8+=_0x1df0f0['slice'](Math['max'](0x0,_0x3fef85-_0x5f5ac4),_0x417fc4-_0x5f5ac4)),_0x5f5ac4=_0x56e44e+0x1;}return _0x3d79e8;}['flatten'](_0x50f504){for(let _0x1b1913 of this['text'])_0x50f504['push'](_0x1b1913);}['scanIdentical'](){return 0x0;}static['split'](_0x1595e0,_0x1835e8){let _0x48491c=[],_0x15964b=-0x1;for(let _0x24674c of _0x1595e0)_0x48491c['push'](_0x24674c),_0x15964b+=_0x24674c['length']+0x1,0x20==_0x48491c['length']&&(_0x1835e8['push'](new TextLeaf(_0x48491c,_0x15964b)),_0x48491c=[],_0x15964b=-0x1);return _0x15964b>-0x1&&_0x1835e8['push'](new TextLeaf(_0x48491c,_0x15964b)),_0x1835e8;}}class TextNode extends Text{constructor(_0x1ab1ba,_0x25d959){super(),this['children']=_0x1ab1ba,this['length']=_0x25d959,this['lines']=0x0;for(let _0x2f53a2 of _0x1ab1ba)this['lines']+=_0x2f53a2['lines'];}['lineInner'](_0x3b7e65,_0x5474c9,_0xd37d94,_0x3d6d89){for(let _0x58d9ca=0x0;;_0x58d9ca++){let _0x168730=this['children'][_0x58d9ca],_0x214fb5=_0x3d6d89+_0x168730['length'],_0x37ec6b=_0xd37d94+_0x168730['lines']-0x1;if((_0x5474c9?_0x37ec6b:_0x214fb5)>=_0x3b7e65)return _0x168730['lineInner'](_0x3b7e65,_0x5474c9,_0xd37d94,_0x3d6d89);_0x3d6d89=_0x214fb5+0x1,_0xd37d94=_0x37ec6b+0x1;}}['decompose'](_0x44556f,_0x520192,_0x18bd25,_0x57f212){for(let _0x1debb1=0x0,_0x1e7370=0x0;_0x1e7370<=_0x520192&&_0x1debb1<this['children']['length'];_0x1debb1++){let _0x25f8f3=this['children'][_0x1debb1],_0x4787be=_0x1e7370+_0x25f8f3['length'];if(_0x44556f<=_0x4787be&&_0x520192>=_0x1e7370){let _0x16d4c6=_0x57f212&((_0x1e7370<=_0x44556f?0x1:0x0)|(_0x4787be>=_0x520192?0x2:0x0));_0x1e7370>=_0x44556f&&_0x4787be<=_0x520192&&!_0x16d4c6?_0x18bd25['push'](_0x25f8f3):_0x25f8f3['decompose'](_0x44556f-_0x1e7370,_0x520192-_0x1e7370,_0x18bd25,_0x16d4c6);}_0x1e7370=_0x4787be+0x1;}}['replace'](_0x432401,_0x2d4f6a,_0x29e3eb){if([_0x432401,_0x2d4f6a]=clip(this,_0x432401,_0x2d4f6a),_0x29e3eb['lines']<this['lines'])for(let _0x1180b0=0x0,_0x768e98=0x0;_0x1180b0<this['children']['length'];_0x1180b0++){let _0x1ef494=this['children'][_0x1180b0],_0x30c06b=_0x768e98+_0x1ef494['length'];if(_0x432401>=_0x768e98&&_0x2d4f6a<=_0x30c06b){let _0xc90f17=_0x1ef494['replace'](_0x432401-_0x768e98,_0x2d4f6a-_0x768e98,_0x29e3eb),_0x3d6752=this['lines']-_0x1ef494['lines']+_0xc90f17['lines'];if(_0xc90f17['lines']<_0x3d6752>>0x4&&_0xc90f17['lines']>_0x3d6752>>0x6){let _0x5b52c1=this['children']['slice']();return _0x5b52c1[_0x1180b0]=_0xc90f17,new TextNode(_0x5b52c1,this['length']-(_0x2d4f6a-_0x432401)+_0x29e3eb['length']);}return super['replace'](_0x768e98,_0x30c06b,_0xc90f17);}_0x768e98=_0x30c06b+0x1;}return super['replace'](_0x432401,_0x2d4f6a,_0x29e3eb);}['sliceString'](_0x411a7a,_0x188402=this['length'],_0x42f65f='\x0a'){[_0x411a7a,_0x188402]=clip(this,_0x411a7a,_0x188402);let _0x32729d='';for(let _0x33d89b=0x0,_0x4f16c7=0x0;_0x33d89b<this['children']['length']&&_0x4f16c7<=_0x188402;_0x33d89b++){let _0x256c0c=this['children'][_0x33d89b],_0x4583bc=_0x4f16c7+_0x256c0c['length'];_0x4f16c7>_0x411a7a&&_0x33d89b&&(_0x32729d+=_0x42f65f),_0x411a7a<_0x4583bc&&_0x188402>_0x4f16c7&&(_0x32729d+=_0x256c0c['sliceString'](_0x411a7a-_0x4f16c7,_0x188402-_0x4f16c7,_0x42f65f)),_0x4f16c7=_0x4583bc+0x1;}return _0x32729d;}['flatten'](_0x30e672){for(let _0x4fb65e of this['children'])_0x4fb65e['flatten'](_0x30e672);}['scanIdentical'](_0x3814f0,_0x11f8e8){if(!(_0x3814f0 instanceof TextNode))return 0x0;let _0x588184=0x0,[_0x5e8e10,_0x59716f,_0x50c7e5,_0x181cb7]=_0x11f8e8>0x0?[0x0,0x0,this['children']['length'],_0x3814f0['children']['length']]:[this['children']['length']-0x1,_0x3814f0['children']['length']-0x1,-0x1,-0x1];for(;;_0x5e8e10+=_0x11f8e8,_0x59716f+=_0x11f8e8){if(_0x5e8e10==_0x50c7e5||_0x59716f==_0x181cb7)return _0x588184;let _0x2e1117=this['children'][_0x5e8e10],_0x4c54c2=_0x3814f0['children'][_0x59716f];if(_0x2e1117!=_0x4c54c2)return _0x588184+_0x2e1117['scanIdentical'](_0x4c54c2,_0x11f8e8);_0x588184+=_0x2e1117['length']+0x1;}}static['from'](_0x22bbbf,_0x2c20cd=_0x22bbbf['reduce']((_0x33b2bb,_0x57b654)=>_0x33b2bb+_0x57b654['length']+0x1,-0x1)){let _0x3bedb1=0x0;for(let _0x3a7618 of _0x22bbbf)_0x3bedb1+=_0x3a7618['lines'];if(_0x3bedb1<0x20){let _0x258d74=[];for(let _0x284228 of _0x22bbbf)_0x284228['flatten'](_0x258d74);return new TextLeaf(_0x258d74,_0x2c20cd);}let _0x369413=Math['max'](0x20,_0x3bedb1>>0x5),_0x103dcf=_0x369413<<0x1,_0xd783=_0x369413>>0x1,_0x120af6=[],_0x2560f3=0x0,_0x51d3f1=-0x1,_0x205451=[];function _0xd320ca(_0xe4a267){let _0xad9318;if(_0xe4a267['lines']>_0x103dcf&&_0xe4a267 instanceof TextNode){for(let _0x49c4ff of _0xe4a267['children'])_0xd320ca(_0x49c4ff);}else _0xe4a267['lines']>_0xd783&&(_0x2560f3>_0xd783||!_0x2560f3)?(_0x1c4278(),_0x120af6['push'](_0xe4a267)):_0xe4a267 instanceof TextLeaf&&_0x2560f3&&(_0xad9318=_0x205451[_0x205451['length']-0x1])instanceof TextLeaf&&_0xe4a267['lines']+_0xad9318['lines']<=0x20?(_0x2560f3+=_0xe4a267['lines'],_0x51d3f1+=_0xe4a267['length']+0x1,_0x205451[_0x205451['length']-0x1]=new TextLeaf(_0xad9318['text']['concat'](_0xe4a267['text']),_0xad9318['length']+0x1+_0xe4a267['length'])):(_0x2560f3+_0xe4a267['lines']>_0x369413&&_0x1c4278(),_0x2560f3+=_0xe4a267['lines'],_0x51d3f1+=_0xe4a267['length']+0x1,_0x205451['push'](_0xe4a267));}function _0x1c4278(){0x0!=_0x2560f3&&(_0x120af6['push'](0x1==_0x205451['length']?_0x205451[0x0]:TextNode['from'](_0x205451,_0x51d3f1)),_0x51d3f1=-0x1,_0x2560f3=_0x205451['length']=0x0);}for(let _0x20af49 of _0x22bbbf)_0xd320ca(_0x20af49);return _0x1c4278(),0x1==_0x120af6['length']?_0x120af6[0x0]:new TextNode(_0x120af6,_0x2c20cd);}}function textLength(_0x9866ef){let _0x34c85d=-0x1;for(let _0x280b0f of _0x9866ef)_0x34c85d+=_0x280b0f['length']+0x1;return _0x34c85d;}function appendText(_0x20d0c5,_0x1f1bf8,_0x45d1e4=0x0,_0xd4af8f=0x3b9aca00){for(let _0x1ef9be=0x0,_0x4f5a49=0x0,_0x257433=!0x0;_0x4f5a49<_0x20d0c5['length']&&_0x1ef9be<=_0xd4af8f;_0x4f5a49++){let _0x37217b=_0x20d0c5[_0x4f5a49],_0x37cc17=_0x1ef9be+_0x37217b['length'];_0x37cc17>=_0x45d1e4&&(_0x37cc17>_0xd4af8f&&(_0x37217b=_0x37217b['slice'](0x0,_0xd4af8f-_0x1ef9be)),_0x1ef9be<_0x45d1e4&&(_0x37217b=_0x37217b['slice'](_0x45d1e4-_0x1ef9be)),_0x257433?(_0x1f1bf8[_0x1f1bf8['length']-0x1]+=_0x37217b,_0x257433=!0x1):_0x1f1bf8['push'](_0x37217b)),_0x1ef9be=_0x37cc17+0x1;}return _0x1f1bf8;}function sliceText(_0x376ce7,_0x2e2ba1,_0x3f692e){return appendText(_0x376ce7,[''],_0x2e2ba1,_0x3f692e);}Text['empty']=new TextLeaf([''],0x0);class RawTextCursor{constructor(_0x42d281,_0x6e80de=0x1){this['dir']=_0x6e80de,this['done']=!0x1,this['lineBreak']=!0x1,this['value']='',this['nodes']=[_0x42d281],this['offsets']=[_0x6e80de>0x0?0x1:(_0x42d281 instanceof TextLeaf?_0x42d281['text']['length']:_0x42d281['children']['length'])<<0x1];}['nextInner'](_0x4c69ca,_0x313f93){for(this['done']=this['lineBreak']=!0x1;;){let _0x25f95c=this['nodes']['length']-0x1,_0x170018=this['nodes'][_0x25f95c],_0x570e94=this['offsets'][_0x25f95c],_0x13a4cd=_0x570e94>>0x1,_0x4a812d=_0x170018 instanceof TextLeaf?_0x170018['text']['length']:_0x170018['children']['length'];if(_0x13a4cd==(_0x313f93>0x0?_0x4a812d:0x0)){if(0x0==_0x25f95c)return this['done']=!0x0,this['value']='',this;_0x313f93>0x0&&this['offsets'][_0x25f95c-0x1]++,this['nodes']['pop'](),this['offsets']['pop']();}else{if((0x1&_0x570e94)==(_0x313f93>0x0?0x0:0x1)){if(this['offsets'][_0x25f95c]+=_0x313f93,0x0==_0x4c69ca)return this['lineBreak']=!0x0,this['value']='\x0a',this;_0x4c69ca--;}else{if(_0x170018 instanceof TextLeaf){let _0x1d3752=_0x170018['text'][_0x13a4cd+(_0x313f93<0x0?-0x1:0x0)];if(this['offsets'][_0x25f95c]+=_0x313f93,_0x1d3752['length']>Math['max'](0x0,_0x4c69ca))return this['value']=0x0==_0x4c69ca?_0x1d3752:_0x313f93>0x0?_0x1d3752['slice'](_0x4c69ca):_0x1d3752['slice'](0x0,_0x1d3752['length']-_0x4c69ca),this;_0x4c69ca-=_0x1d3752['length'];}else{let _0x1703db=_0x170018['children'][_0x13a4cd+(_0x313f93<0x0?-0x1:0x0)];_0x4c69ca>_0x1703db['length']?(_0x4c69ca-=_0x1703db['length'],this['offsets'][_0x25f95c]+=_0x313f93):(_0x313f93<0x0&&this['offsets'][_0x25f95c]--,this['nodes']['push'](_0x1703db),this['offsets']['push'](_0x313f93>0x0?0x1:(_0x1703db instanceof TextLeaf?_0x1703db['text']['length']:_0x1703db['children']['length'])<<0x1));}}}}}['next'](_0x578719=0x0){return _0x578719<0x0&&(this['nextInner'](-_0x578719,-this['dir']),_0x578719=this['value']['length']),this['nextInner'](_0x578719,this['dir']);}}class PartialTextCursor{constructor(_0x418a4b,_0x180ac3,_0x2fbc1f){this['value']='',this['done']=!0x1,this['cursor']=new RawTextCursor(_0x418a4b,_0x180ac3>_0x2fbc1f?-0x1:0x1),this['pos']=_0x180ac3>_0x2fbc1f?_0x418a4b['length']:0x0,this['from']=Math['min'](_0x180ac3,_0x2fbc1f),this['to']=Math['max'](_0x180ac3,_0x2fbc1f);}['nextInner'](_0x48b2a4,_0x247846){if(_0x247846<0x0?this['pos']<=this['from']:this['pos']>=this['to'])return this['value']='',this['done']=!0x0,this;_0x48b2a4+=Math['max'](0x0,_0x247846<0x0?this['pos']-this['to']:this['from']-this['pos']);let _0x2c2246=_0x247846<0x0?this['pos']-this['from']:this['to']-this['pos'];_0x48b2a4>_0x2c2246&&(_0x48b2a4=_0x2c2246),_0x2c2246-=_0x48b2a4;let {value:_0x143ad1}=this['cursor']['next'](_0x48b2a4);return this['pos']+=(_0x143ad1['length']+_0x48b2a4)*_0x247846,this['value']=_0x143ad1['length']<=_0x2c2246?_0x143ad1:_0x247846<0x0?_0x143ad1['slice'](_0x143ad1['length']-_0x2c2246):_0x143ad1['slice'](0x0,_0x2c2246),this['done']=!this['value'],this;}['next'](_0xe843b8=0x0){return _0xe843b8<0x0?_0xe843b8=Math['max'](_0xe843b8,this['from']-this['pos']):_0xe843b8>0x0&&(_0xe843b8=Math['min'](_0xe843b8,this['to']-this['pos'])),this['nextInner'](_0xe843b8,this['cursor']['dir']);}get['lineBreak'](){return this['cursor']['lineBreak']&&''!=this['value'];}}class LineCursor{constructor(_0x2a3d0c){this['inner']=_0x2a3d0c,this['afterBreak']=!0x0,this['value']='',this['done']=!0x1;}['next'](_0x35280f=0x0){let {done:_0x801b96,lineBreak:_0x43b555,value:_0x36c4e1}=this['inner']['next'](_0x35280f);return _0x801b96&&this['afterBreak']?(this['value']='',this['afterBreak']=!0x1):_0x801b96?(this['done']=!0x0,this['value']=''):_0x43b555?this['afterBreak']?this['value']='':(this['afterBreak']=!0x0,this['next']()):(this['value']=_0x36c4e1,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(_0x10e8f4,_0x43b5c7,_0x4dabc8,_0x79f3b7){this['from']=_0x10e8f4,this['to']=_0x43b5c7,this['number']=_0x4dabc8,this['text']=_0x79f3b7;}get['length'](){return this['to']-this['from'];}};function clip(_0x478bea,_0x56efc1,_0x2b4dcd){return[_0x56efc1=Math['max'](0x0,Math['min'](_0x478bea['length'],_0x56efc1)),Math['max'](_0x56efc1,Math['min'](_0x478bea['length'],_0x2b4dcd))];}function findClusterBreak(_0x368e27,_0x4c5477,_0x353fb2=!0x0,_0x1a5522=!0x0){return findClusterBreak$1(_0x368e27,_0x4c5477,_0x353fb2,_0x1a5522);}function surrogateLow(_0x3ae32f){return _0x3ae32f>=0xdc00&&_0x3ae32f<0xe000;}function surrogateHigh(_0x48e885){return _0x48e885>=0xd800&&_0x48e885<0xdc00;}function codePointAt(_0x4f8a58,_0x146cde){let _0x3d2af6=_0x4f8a58['charCodeAt'](_0x146cde);if(!surrogateHigh(_0x3d2af6)||_0x146cde+0x1==_0x4f8a58['length'])return _0x3d2af6;let _0x1a8c4e=_0x4f8a58['charCodeAt'](_0x146cde+0x1);return surrogateLow(_0x1a8c4e)?_0x1a8c4e-0xdc00+(_0x3d2af6-0xd800<<0xa)+0x10000:_0x3d2af6;}function fromCodePoint(_0x1c85ad){return _0x1c85ad<=0xffff?String['fromCharCode'](_0x1c85ad):(_0x1c85ad-=0x10000,String['fromCharCode'](0xd800+(_0x1c85ad>>0xa),0xdc00+(0x3ff&_0x1c85ad)));}function codePointSize(_0x292f2a){return _0x292f2a<0x10000?0x1:0x2;}const DefaultSplit=/\r\n?|\n/;var MapMode=function(_0x5b1737){return _0x5b1737[_0x5b1737['Simple']=0x0]='Simple',_0x5b1737[_0x5b1737['TrackDel']=0x1]='TrackDel',_0x5b1737[_0x5b1737['TrackBefore']=0x2]='TrackBefore',_0x5b1737[_0x5b1737['TrackAfter']=0x3]='TrackAfter',_0x5b1737;}(MapMode||(MapMode={}));class ChangeDesc{constructor(_0x3867b3){this['sections']=_0x3867b3;}get['length'](){let _0xca0120=0x0;for(let _0x3a9b95=0x0;_0x3a9b95<this['sections']['length'];_0x3a9b95+=0x2)_0xca0120+=this['sections'][_0x3a9b95];return _0xca0120;}get['newLength'](){let _0x200638=0x0;for(let _0x5b4cf0=0x0;_0x5b4cf0<this['sections']['length'];_0x5b4cf0+=0x2){let _0x108b61=this['sections'][_0x5b4cf0+0x1];_0x200638+=_0x108b61<0x0?this['sections'][_0x5b4cf0]:_0x108b61;}return _0x200638;}get['empty'](){return 0x0==this['sections']['length']||0x2==this['sections']['length']&&this['sections'][0x1]<0x0;}['iterGaps'](_0x1f0ecc){for(let _0x2baa25=0x0,_0x57975a=0x0,_0x4ea5ab=0x0;_0x2baa25<this['sections']['length'];){let _0x458245=this['sections'][_0x2baa25++],_0x1356ac=this['sections'][_0x2baa25++];_0x1356ac<0x0?(_0x1f0ecc(_0x57975a,_0x4ea5ab,_0x458245),_0x4ea5ab+=_0x458245):_0x4ea5ab+=_0x1356ac,_0x57975a+=_0x458245;}}['iterChangedRanges'](_0x34d712,_0x1225c2=!0x1){iterChanges(this,_0x34d712,_0x1225c2);}get['invertedDesc'](){let _0x426f19=[];for(let _0x31ef40=0x0;_0x31ef40<this['sections']['length'];){let _0x2e4c54=this['sections'][_0x31ef40++],_0x4ed7e8=this['sections'][_0x31ef40++];_0x4ed7e8<0x0?_0x426f19['push'](_0x2e4c54,_0x4ed7e8):_0x426f19['push'](_0x4ed7e8,_0x2e4c54);}return new ChangeDesc(_0x426f19);}['composeDesc'](_0x1fb41b){return this['empty']?_0x1fb41b:_0x1fb41b['empty']?this:composeSets(this,_0x1fb41b);}['mapDesc'](_0x51fad6,_0x481282=!0x1){return _0x51fad6['empty']?this:mapSet(this,_0x51fad6,_0x481282);}['mapPos'](_0x26bc40,_0x12b2ce=-0x1,_0x4e2a6d=MapMode['Simple']){let _0x4a3efc=0x0,_0xea6a12=0x0;for(let _0x10b776=0x0;_0x10b776<this['sections']['length'];){let _0x5a0f73=this['sections'][_0x10b776++],_0x3913b5=this['sections'][_0x10b776++],_0x2369db=_0x4a3efc+_0x5a0f73;if(_0x3913b5<0x0){if(_0x2369db>_0x26bc40)return _0xea6a12+(_0x26bc40-_0x4a3efc);_0xea6a12+=_0x5a0f73;}else{if(_0x4e2a6d!=MapMode['Simple']&&_0x2369db>=_0x26bc40&&(_0x4e2a6d==MapMode['TrackDel']&&_0x4a3efc<_0x26bc40&&_0x2369db>_0x26bc40||_0x4e2a6d==MapMode['TrackBefore']&&_0x4a3efc<_0x26bc40||_0x4e2a6d==MapMode['TrackAfter']&&_0x2369db>_0x26bc40))return null;if(_0x2369db>_0x26bc40||_0x2369db==_0x26bc40&&_0x12b2ce<0x0&&!_0x5a0f73)return _0x26bc40==_0x4a3efc||_0x12b2ce<0x0?_0xea6a12:_0xea6a12+_0x3913b5;_0xea6a12+=_0x3913b5;}_0x4a3efc=_0x2369db;}if(_0x26bc40>_0x4a3efc)throw new RangeError('Position\x20'+_0x26bc40+'\x20is\x20out\x20of\x20range\x20for\x20changeset\x20of\x20length\x20'+_0x4a3efc);return _0xea6a12;}['touchesRange'](_0x300c0a,_0x1433ae=_0x300c0a){for(let _0x257224=0x0,_0x171738=0x0;_0x257224<this['sections']['length']&&_0x171738<=_0x1433ae;){let _0x322767=_0x171738+this['sections'][_0x257224++];if(this['sections'][_0x257224++]>=0x0&&_0x171738<=_0x1433ae&&_0x322767>=_0x300c0a)return!(_0x171738<_0x300c0a&&_0x322767>_0x1433ae)||'cover';_0x171738=_0x322767;}return!0x1;}['toString'](){let _0x59b3ea='';for(let _0x1bce49=0x0;_0x1bce49<this['sections']['length'];){let _0x434171=this['sections'][_0x1bce49++],_0x1afa93=this['sections'][_0x1bce49++];_0x59b3ea+=(_0x59b3ea?'\x20':'')+_0x434171+(_0x1afa93>=0x0?':'+_0x1afa93:'');}return _0x59b3ea;}['toJSON'](){return this['sections'];}static['fromJSON'](_0x21ff70){if(!Array['isArray'](_0x21ff70)||_0x21ff70['length']%0x2||_0x21ff70['some'](_0x18edd1=>'number'!=typeof _0x18edd1))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeDesc');return new ChangeDesc(_0x21ff70);}static['create'](_0x441770){return new ChangeDesc(_0x441770);}}class ChangeSet extends ChangeDesc{constructor(_0x458261,_0x562d16){super(_0x458261),this['inserted']=_0x562d16;}['apply'](_0x54b73f){if(this['length']!=_0x54b73f['length'])throw new RangeError('Applying\x20change\x20set\x20to\x20a\x20document\x20with\x20the\x20wrong\x20length');return iterChanges(this,(_0x21f259,_0x1f933,_0x18654d,_0x5291f3,_0x4e7b08)=>_0x54b73f=_0x54b73f['replace'](_0x18654d,_0x18654d+(_0x1f933-_0x21f259),_0x4e7b08),!0x1),_0x54b73f;}['mapDesc'](_0x4cb48c,_0x5eea92=!0x1){return mapSet(this,_0x4cb48c,_0x5eea92,!0x0);}['invert'](_0x4d52af){let _0x2819ef=this['sections']['slice'](),_0x1d3106=[];for(let _0x1ed188=0x0,_0xaff6e3=0x0;_0x1ed188<_0x2819ef['length'];_0x1ed188+=0x2){let _0xd1975d=_0x2819ef[_0x1ed188],_0x40089c=_0x2819ef[_0x1ed188+0x1];if(_0x40089c>=0x0){_0x2819ef[_0x1ed188]=_0x40089c,_0x2819ef[_0x1ed188+0x1]=_0xd1975d;let _0x6e6101=_0x1ed188>>0x1;for(;_0x1d3106['length']<_0x6e6101;)_0x1d3106['push'](Text['empty']);_0x1d3106['push'](_0xd1975d?_0x4d52af['slice'](_0xaff6e3,_0xaff6e3+_0xd1975d):Text['empty']);}_0xaff6e3+=_0xd1975d;}return new ChangeSet(_0x2819ef,_0x1d3106);}['compose'](_0x58d101){return this['empty']?_0x58d101:_0x58d101['empty']?this:composeSets(this,_0x58d101,!0x0);}['map'](_0x27fe1f,_0x418331=!0x1){return _0x27fe1f['empty']?this:mapSet(this,_0x27fe1f,_0x418331,!0x0);}['iterChanges'](_0x20c525,_0x19a5e9=!0x1){iterChanges(this,_0x20c525,_0x19a5e9);}get['desc'](){return ChangeDesc['create'](this['sections']);}['filter'](_0x1a964c){let _0x4b29a9=[],_0x2d74c0=[],_0x311f83=[],_0x3120a2=new SectionIter(this);t:for(let _0x5432a5=0x0,_0x5ab24d=0x0;;){let _0x79380c=_0x5432a5==_0x1a964c['length']?0x3b9aca00:_0x1a964c[_0x5432a5++];for(;_0x5ab24d<_0x79380c||_0x5ab24d==_0x79380c&&0x0==_0x3120a2['len'];){if(_0x3120a2['done'])break t;let _0x869e5=Math['min'](_0x3120a2['len'],_0x79380c-_0x5ab24d);addSection(_0x311f83,_0x869e5,-0x1);let _0xec65aa=-0x1==_0x3120a2['ins']?-0x1:0x0==_0x3120a2['off']?_0x3120a2['ins']:0x0;addSection(_0x4b29a9,_0x869e5,_0xec65aa),_0xec65aa>0x0&&addInsert(_0x2d74c0,_0x4b29a9,_0x3120a2['text']),_0x3120a2['forward'](_0x869e5),_0x5ab24d+=_0x869e5;}let _0x3fd678=_0x1a964c[_0x5432a5++];for(;_0x5ab24d<_0x3fd678;){if(_0x3120a2['done'])break t;let _0x56fd2e=Math['min'](_0x3120a2['len'],_0x3fd678-_0x5ab24d);addSection(_0x4b29a9,_0x56fd2e,-0x1),addSection(_0x311f83,_0x56fd2e,-0x1==_0x3120a2['ins']?-0x1:0x0==_0x3120a2['off']?_0x3120a2['ins']:0x0),_0x3120a2['forward'](_0x56fd2e),_0x5ab24d+=_0x56fd2e;}}return{'changes':new ChangeSet(_0x4b29a9,_0x2d74c0),'filtered':ChangeDesc['create'](_0x311f83)};}['toJSON'](){let _0x37182d=[];for(let _0x2f8419=0x0;_0x2f8419<this['sections']['length'];_0x2f8419+=0x2){let _0x246034=this['sections'][_0x2f8419],_0xa90c19=this['sections'][_0x2f8419+0x1];_0xa90c19<0x0?_0x37182d['push'](_0x246034):0x0==_0xa90c19?_0x37182d['push']([_0x246034]):_0x37182d['push']([_0x246034]['concat'](this['inserted'][_0x2f8419>>0x1]['toJSON']()));}return _0x37182d;}static['of'](_0x10675f,_0x4db269,_0x4417e5){let _0x26e7d0=[],_0xed0b28=[],_0x1c3bb4=0x0,_0x566837=null;function _0x2c35c1(_0x5a7d41=!0x1){if(!_0x5a7d41&&!_0x26e7d0['length'])return;_0x1c3bb4<_0x4db269&&addSection(_0x26e7d0,_0x4db269-_0x1c3bb4,-0x1);let _0xc37828=new ChangeSet(_0x26e7d0,_0xed0b28);_0x566837=_0x566837?_0x566837['compose'](_0xc37828['map'](_0x566837)):_0xc37828,_0x26e7d0=[],_0xed0b28=[],_0x1c3bb4=0x0;}return function _0x4cf8d7(_0x5ed9b9){if(Array['isArray'](_0x5ed9b9)){for(let _0x8a7f3c of _0x5ed9b9)_0x4cf8d7(_0x8a7f3c);}else{if(_0x5ed9b9 instanceof ChangeSet){if(_0x5ed9b9['length']!=_0x4db269)throw new RangeError('Mismatched\x20change\x20set\x20length\x20(got\x20'+_0x5ed9b9['length']+',\x20expected\x20'+_0x4db269+')');_0x2c35c1(),_0x566837=_0x566837?_0x566837['compose'](_0x5ed9b9['map'](_0x566837)):_0x5ed9b9;}else{let {from:_0x4b82ac,to:_0x20eac9=_0x4b82ac,insert:_0x3f900d}=_0x5ed9b9;if(_0x4b82ac>_0x20eac9||_0x4b82ac<0x0||_0x20eac9>_0x4db269)throw new RangeError('Invalid\x20change\x20range\x20'+_0x4b82ac+'\x20to\x20'+_0x20eac9+'\x20(in\x20doc\x20of\x20length\x20'+_0x4db269+')');let _0x11604e=_0x3f900d?'string'==typeof _0x3f900d?Text['of'](_0x3f900d['split'](_0x4417e5||DefaultSplit)):_0x3f900d:Text['empty'],_0x2878a6=_0x11604e['length'];if(_0x4b82ac==_0x20eac9&&0x0==_0x2878a6)return;_0x4b82ac<_0x1c3bb4&&_0x2c35c1(),_0x4b82ac>_0x1c3bb4&&addSection(_0x26e7d0,_0x4b82ac-_0x1c3bb4,-0x1),addSection(_0x26e7d0,_0x20eac9-_0x4b82ac,_0x2878a6),addInsert(_0xed0b28,_0x26e7d0,_0x11604e),_0x1c3bb4=_0x20eac9;}}}(_0x10675f),_0x2c35c1(!_0x566837),_0x566837;}static['empty'](_0x12a4e4){return new ChangeSet(_0x12a4e4?[_0x12a4e4,-0x1]:[],[]);}static['fromJSON'](_0x5c54ad){if(!Array['isArray'](_0x5c54ad))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');let _0x14e134=[],_0x1b7c03=[];for(let _0x26fd5f=0x0;_0x26fd5f<_0x5c54ad['length'];_0x26fd5f++){let _0x41944f=_0x5c54ad[_0x26fd5f];if('number'==typeof _0x41944f)_0x14e134['push'](_0x41944f,-0x1);else{if(!Array['isArray'](_0x41944f)||'number'!=typeof _0x41944f[0x0]||_0x41944f['some']((_0x31932c,_0x1d719f)=>_0x1d719f&&'string'!=typeof _0x31932c))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');if(0x1==_0x41944f['length'])_0x14e134['push'](_0x41944f[0x0],0x0);else{for(;_0x1b7c03['length']<_0x26fd5f;)_0x1b7c03['push'](Text['empty']);_0x1b7c03[_0x26fd5f]=Text['of'](_0x41944f['slice'](0x1)),_0x14e134['push'](_0x41944f[0x0],_0x1b7c03[_0x26fd5f]['length']);}}}return new ChangeSet(_0x14e134,_0x1b7c03);}static['createSet'](_0x135148,_0x724f7d){return new ChangeSet(_0x135148,_0x724f7d);}}function addSection(_0x5c3e07,_0x354b07,_0x35b438,_0x21dc8f=!0x1){if(0x0==_0x354b07&&_0x35b438<=0x0)return;let _0x546550=_0x5c3e07['length']-0x2;_0x546550>=0x0&&_0x35b438<=0x0&&_0x35b438==_0x5c3e07[_0x546550+0x1]?_0x5c3e07[_0x546550]+=_0x354b07:_0x546550>=0x0&&0x0==_0x354b07&&0x0==_0x5c3e07[_0x546550]?_0x5c3e07[_0x546550+0x1]+=_0x35b438:_0x21dc8f?(_0x5c3e07[_0x546550]+=_0x354b07,_0x5c3e07[_0x546550+0x1]+=_0x35b438):_0x5c3e07['push'](_0x354b07,_0x35b438);}function addInsert(_0x1c0ce2,_0x7c9968,_0xff4081){if(0x0==_0xff4081['length'])return;let _0x542e1c=_0x7c9968['length']-0x2>>0x1;if(_0x542e1c<_0x1c0ce2['length'])_0x1c0ce2[_0x1c0ce2['length']-0x1]=_0x1c0ce2[_0x1c0ce2['length']-0x1]['append'](_0xff4081);else{for(;_0x1c0ce2['length']<_0x542e1c;)_0x1c0ce2['push'](Text['empty']);_0x1c0ce2['push'](_0xff4081);}}function iterChanges(_0x367791,_0x11c21d,_0x22cbc1){let _0x3fa179=_0x367791['inserted'];for(let _0x434840=0x0,_0x233d60=0x0,_0x2d6e2c=0x0;_0x2d6e2c<_0x367791['sections']['length'];){let _0x28bbbf=_0x367791['sections'][_0x2d6e2c++],_0x454dfb=_0x367791['sections'][_0x2d6e2c++];if(_0x454dfb<0x0)_0x434840+=_0x28bbbf,_0x233d60+=_0x28bbbf;else{let _0x46ad1d=_0x434840,_0x537cec=_0x233d60,_0x3f9060=Text['empty'];for(;_0x46ad1d+=_0x28bbbf,_0x537cec+=_0x454dfb,_0x454dfb&&_0x3fa179&&(_0x3f9060=_0x3f9060['append'](_0x3fa179[_0x2d6e2c-0x2>>0x1])),!(_0x22cbc1||_0x2d6e2c==_0x367791['sections']['length']||_0x367791['sections'][_0x2d6e2c+0x1]<0x0);)_0x28bbbf=_0x367791['sections'][_0x2d6e2c++],_0x454dfb=_0x367791['sections'][_0x2d6e2c++];_0x11c21d(_0x434840,_0x46ad1d,_0x233d60,_0x537cec,_0x3f9060),_0x434840=_0x46ad1d,_0x233d60=_0x537cec;}}}function mapSet(_0x4d881f,_0x53169b,_0x2a89a7,_0x52f5a6=!0x1){let _0x2263a7=[],_0x423ba8=_0x52f5a6?[]:null,_0x26b760=new SectionIter(_0x4d881f),_0x269c95=new SectionIter(_0x53169b);for(let _0x2d7da6=-0x1;;){if(_0x26b760['done']&&_0x269c95['len']||_0x269c95['done']&&_0x26b760['len'])throw new Error('Mismatched\x20change\x20set\x20lengths');if(-0x1==_0x26b760['ins']&&-0x1==_0x269c95['ins']){let _0x7b929c=Math['min'](_0x26b760['len'],_0x269c95['len']);addSection(_0x2263a7,_0x7b929c,-0x1),_0x26b760['forward'](_0x7b929c),_0x269c95['forward'](_0x7b929c);}else{if(_0x269c95['ins']>=0x0&&(_0x26b760['ins']<0x0||_0x2d7da6==_0x26b760['i']||0x0==_0x26b760['off']&&(_0x269c95['len']<_0x26b760['len']||_0x269c95['len']==_0x26b760['len']&&!_0x2a89a7))){let _0x3b5eab=_0x269c95['len'];for(addSection(_0x2263a7,_0x269c95['ins'],-0x1);_0x3b5eab;){let _0x33b816=Math['min'](_0x26b760['len'],_0x3b5eab);_0x26b760['ins']>=0x0&&_0x2d7da6<_0x26b760['i']&&_0x26b760['len']<=_0x33b816&&(addSection(_0x2263a7,0x0,_0x26b760['ins']),_0x423ba8&&addInsert(_0x423ba8,_0x2263a7,_0x26b760['text']),_0x2d7da6=_0x26b760['i']),_0x26b760['forward'](_0x33b816),_0x3b5eab-=_0x33b816;}_0x269c95['next']();}else{if(!(_0x26b760['ins']>=0x0)){if(_0x26b760['done']&&_0x269c95['done'])return _0x423ba8?ChangeSet['createSet'](_0x2263a7,_0x423ba8):ChangeDesc['create'](_0x2263a7);throw new Error('Mismatched\x20change\x20set\x20lengths');}{let _0x2a199b=0x0,_0x2b527d=_0x26b760['len'];for(;_0x2b527d;)if(-0x1==_0x269c95['ins']){let _0x34bdea=Math['min'](_0x2b527d,_0x269c95['len']);_0x2a199b+=_0x34bdea,_0x2b527d-=_0x34bdea,_0x269c95['forward'](_0x34bdea);}else{if(!(0x0==_0x269c95['ins']&&_0x269c95['len']<_0x2b527d))break;_0x2b527d-=_0x269c95['len'],_0x269c95['next']();}addSection(_0x2263a7,_0x2a199b,_0x2d7da6<_0x26b760['i']?_0x26b760['ins']:0x0),_0x423ba8&&_0x2d7da6<_0x26b760['i']&&addInsert(_0x423ba8,_0x2263a7,_0x26b760['text']),_0x2d7da6=_0x26b760['i'],_0x26b760['forward'](_0x26b760['len']-_0x2b527d);}}}}}function composeSets(_0x367d5f,_0x6b5393,_0x4251d4=!0x1){let _0x587c0f=[],_0x5e3db3=_0x4251d4?[]:null,_0x4f1a8e=new SectionIter(_0x367d5f),_0x23d02a=new SectionIter(_0x6b5393);for(let _0x3240b9=!0x1;;){if(_0x4f1a8e['done']&&_0x23d02a['done'])return _0x5e3db3?ChangeSet['createSet'](_0x587c0f,_0x5e3db3):ChangeDesc['create'](_0x587c0f);if(0x0==_0x4f1a8e['ins'])addSection(_0x587c0f,_0x4f1a8e['len'],0x0,_0x3240b9),_0x4f1a8e['next']();else{if(0x0!=_0x23d02a['len']||_0x23d02a['done']){if(_0x4f1a8e['done']||_0x23d02a['done'])throw new Error('Mismatched\x20change\x20set\x20lengths');{let _0x3203fd=Math['min'](_0x4f1a8e['len2'],_0x23d02a['len']),_0x4db76b=_0x587c0f['length'];if(-0x1==_0x4f1a8e['ins']){let _0x2cb79e=-0x1==_0x23d02a['ins']?-0x1:_0x23d02a['off']?0x0:_0x23d02a['ins'];addSection(_0x587c0f,_0x3203fd,_0x2cb79e,_0x3240b9),_0x5e3db3&&_0x2cb79e&&addInsert(_0x5e3db3,_0x587c0f,_0x23d02a['text']);}else-0x1==_0x23d02a['ins']?(addSection(_0x587c0f,_0x4f1a8e['off']?0x0:_0x4f1a8e['len'],_0x3203fd,_0x3240b9),_0x5e3db3&&addInsert(_0x5e3db3,_0x587c0f,_0x4f1a8e['textBit'](_0x3203fd))):(addSection(_0x587c0f,_0x4f1a8e['off']?0x0:_0x4f1a8e['len'],_0x23d02a['off']?0x0:_0x23d02a['ins'],_0x3240b9),_0x5e3db3&&!_0x23d02a['off']&&addInsert(_0x5e3db3,_0x587c0f,_0x23d02a['text']));_0x3240b9=(_0x4f1a8e['ins']>_0x3203fd||_0x23d02a['ins']>=0x0&&_0x23d02a['len']>_0x3203fd)&&(_0x3240b9||_0x587c0f['length']>_0x4db76b),_0x4f1a8e['forward2'](_0x3203fd),_0x23d02a['forward'](_0x3203fd);}}else addSection(_0x587c0f,0x0,_0x23d02a['ins'],_0x3240b9),_0x5e3db3&&addInsert(_0x5e3db3,_0x587c0f,_0x23d02a['text']),_0x23d02a['next']();}}}class SectionIter{constructor(_0x5a0cf1){this['set']=_0x5a0cf1,this['i']=0x0,this['next']();}['next'](){let {sections:_0x32e7dc}=this['set'];this['i']<_0x32e7dc['length']?(this['len']=_0x32e7dc[this['i']++],this['ins']=_0x32e7dc[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:_0xe13f03}=this['set'],_0x125a8b=this['i']-0x2>>0x1;return _0x125a8b>=_0xe13f03['length']?Text['empty']:_0xe13f03[_0x125a8b];}['textBit'](_0x587ea9){let {inserted:_0x100204}=this['set'],_0x59e024=this['i']-0x2>>0x1;return _0x59e024>=_0x100204['length']&&!_0x587ea9?Text['empty']:_0x100204[_0x59e024]['slice'](this['off'],null==_0x587ea9?void 0x0:this['off']+_0x587ea9);}['forward'](_0xc39f84){_0xc39f84==this['len']?this['next']():(this['len']-=_0xc39f84,this['off']+=_0xc39f84);}['forward2'](_0x49c456){-0x1==this['ins']?this['forward'](_0x49c456):_0x49c456==this['ins']?this['next']():(this['ins']-=_0x49c456,this['off']+=_0x49c456);}}class SelectionRange{constructor(_0x2dd31a,_0x1cf018,_0x2951fe){this['from']=_0x2dd31a,this['to']=_0x1cf018,this['flags']=_0x2951fe;}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 _0x5d4436=0x7&this['flags'];return 0x7==_0x5d4436?null:_0x5d4436;}get['goalColumn'](){let _0x29e360=this['flags']>>0x6;return 0xffffff==_0x29e360?void 0x0:_0x29e360;}['map'](_0x280ece,_0x597139=-0x1){let _0x3eba17,_0x6d664b;return this['empty']?_0x3eba17=_0x6d664b=_0x280ece['mapPos'](this['from'],_0x597139):(_0x3eba17=_0x280ece['mapPos'](this['from'],0x1),_0x6d664b=_0x280ece['mapPos'](this['to'],-0x1)),_0x3eba17==this['from']&&_0x6d664b==this['to']?this:new SelectionRange(_0x3eba17,_0x6d664b,this['flags']);}['extend'](_0x4cbaf5,_0x24d7cd=_0x4cbaf5){if(_0x4cbaf5<=this['anchor']&&_0x24d7cd>=this['anchor'])return EditorSelection['range'](_0x4cbaf5,_0x24d7cd);let _0x3bab93=Math['abs'](_0x4cbaf5-this['anchor'])>Math['abs'](_0x24d7cd-this['anchor'])?_0x4cbaf5:_0x24d7cd;return EditorSelection['range'](this['anchor'],_0x3bab93);}['eq'](_0x23c9e3,_0x3a0bfb=!0x1){return!(this['anchor']!=_0x23c9e3['anchor']||this['head']!=_0x23c9e3['head']||_0x3a0bfb&&this['empty']&&this['assoc']!=_0x23c9e3['assoc']);}['toJSON'](){return{'anchor':this['anchor'],'head':this['head']};}static['fromJSON'](_0x31ef4b){if(!_0x31ef4b||'number'!=typeof _0x31ef4b['anchor']||'number'!=typeof _0x31ef4b['head'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20SelectionRange');return EditorSelection['range'](_0x31ef4b['anchor'],_0x31ef4b['head']);}static['create'](_0x155d47,_0x38a188,_0xf521af){return new SelectionRange(_0x155d47,_0x38a188,_0xf521af);}}class EditorSelection{constructor(_0x1012d3,_0x36a9f0){this['ranges']=_0x1012d3,this['mainIndex']=_0x36a9f0;}['map'](_0x472ced,_0x126165=-0x1){return _0x472ced['empty']?this:EditorSelection['create'](this['ranges']['map'](_0x3973f1=>_0x3973f1['map'](_0x472ced,_0x126165)),this['mainIndex']);}['eq'](_0x301039,_0x5cc718=!0x1){if(this['ranges']['length']!=_0x301039['ranges']['length']||this['mainIndex']!=_0x301039['mainIndex'])return!0x1;for(let _0x167574=0x0;_0x167574<this['ranges']['length'];_0x167574++)if(!this['ranges'][_0x167574]['eq'](_0x301039['ranges'][_0x167574],_0x5cc718))return!0x1;return!0x0;}get['main'](){return this['ranges'][this['mainIndex']];}['asSingle'](){return 0x1==this['ranges']['length']?this:new EditorSelection([this['main']],0x0);}['addRange'](_0x119b41,_0x5ccf57=!0x0){return EditorSelection['create']([_0x119b41]['concat'](this['ranges']),_0x5ccf57?0x0:this['mainIndex']+0x1);}['replaceRange'](_0x5588c,_0x538900=this['mainIndex']){let _0x3758c9=this['ranges']['slice']();return _0x3758c9[_0x538900]=_0x5588c,EditorSelection['create'](_0x3758c9,this['mainIndex']);}['toJSON'](){return{'ranges':this['ranges']['map'](_0x7103d3=>_0x7103d3['toJSON']()),'main':this['mainIndex']};}static['fromJSON'](_0x4778e8){if(!_0x4778e8||!Array['isArray'](_0x4778e8['ranges'])||'number'!=typeof _0x4778e8['main']||_0x4778e8['main']>=_0x4778e8['ranges']['length'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorSelection');return new EditorSelection(_0x4778e8['ranges']['map'](_0x2387c6=>SelectionRange['fromJSON'](_0x2387c6)),_0x4778e8['main']);}static['single'](_0x5f22db,_0x296837=_0x5f22db){return new EditorSelection([EditorSelection['range'](_0x5f22db,_0x296837)],0x0);}static['create'](_0x171577,_0x4e9911=0x0){if(0x0==_0x171577['length'])throw new RangeError('A\x20selection\x20needs\x20at\x20least\x20one\x20range');for(let _0x2c0e49=0x0,_0x48050c=0x0;_0x48050c<_0x171577['length'];_0x48050c++){let _0x1d9981=_0x171577[_0x48050c];if(_0x1d9981['empty']?_0x1d9981['from']<=_0x2c0e49:_0x1d9981['from']<_0x2c0e49)return EditorSelection['normalized'](_0x171577['slice'](),_0x4e9911);_0x2c0e49=_0x1d9981['to'];}return new EditorSelection(_0x171577,_0x4e9911);}static['cursor'](_0x528897,_0x458553=0x0,_0x352a02,_0x46dc1c){return SelectionRange['create'](_0x528897,_0x528897,(0x0==_0x458553?0x0:_0x458553<0x0?0x8:0x10)|(null==_0x352a02?0x7:Math['min'](0x6,_0x352a02))|(null!=_0x46dc1c?_0x46dc1c:0xffffff)<<0x6);}static['range'](_0x2460b5,_0x36b2b1,_0x4ca45e,_0x160ec5){let _0x2c2b8d=(null!=_0x4ca45e?_0x4ca45e:0xffffff)<<0x6|(null==_0x160ec5?0x7:Math['min'](0x6,_0x160ec5));return _0x36b2b1<_0x2460b5?SelectionRange['create'](_0x36b2b1,_0x2460b5,0x30|_0x2c2b8d):SelectionRange['create'](_0x2460b5,_0x36b2b1,(_0x36b2b1>_0x2460b5?0x8:0x0)|_0x2c2b8d);}static['normalized'](_0x4ecbb1,_0xf5be81=0x0){let _0x2632a8=_0x4ecbb1[_0xf5be81];_0x4ecbb1['sort']((_0x56085a,_0x203f39)=>_0x56085a['from']-_0x203f39['from']),_0xf5be81=_0x4ecbb1['indexOf'](_0x2632a8);for(let _0x228018=0x1;_0x228018<_0x4ecbb1['length'];_0x228018++){let _0x9fefec=_0x4ecbb1[_0x228018],_0x3652d5=_0x4ecbb1[_0x228018-0x1];if(_0x9fefec['empty']?_0x9fefec['from']<=_0x3652d5['to']:_0x9fefec['from']<_0x3652d5['to']){let _0x459b4f=_0x3652d5['from'],_0x4717f8=Math['max'](_0x9fefec['to'],_0x3652d5['to']);_0x228018<=_0xf5be81&&_0xf5be81--,_0x4ecbb1['splice'](--_0x228018,0x2,_0x9fefec['anchor']>_0x9fefec['head']?EditorSelection['range'](_0x4717f8,_0x459b4f):EditorSelection['range'](_0x459b4f,_0x4717f8));}}return new EditorSelection(_0x4ecbb1,_0xf5be81);}}function checkSelection(_0xddb86b,_0x28d0ec){for(let _0xfa0f6f of _0xddb86b['ranges'])if(_0xfa0f6f['to']>_0x28d0ec)throw new RangeError('Selection\x20points\x20outside\x20of\x20document');}let nextID=0x0;class Facet{constructor(_0x26584b,_0x3741f7,_0x560f29,_0x4ac221,_0x2e1449){this['combine']=_0x26584b,this['compareInput']=_0x3741f7,this['compare']=_0x560f29,this['isStatic']=_0x4ac221,this['id']=nextID++,this['default']=_0x26584b([]),this['extensions']='function'==typeof _0x2e1449?_0x2e1449(this):_0x2e1449;}get['reader'](){return this;}static['define'](_0x4966b8={}){return new Facet(_0x4966b8['combine']||(_0x221d8d=>_0x221d8d),_0x4966b8['compareInput']||((_0x455258,_0x2d69b7)=>_0x455258===_0x2d69b7),_0x4966b8['compare']||(_0x4966b8['combine']?(_0x47f9e2,_0x5891bc)=>_0x47f9e2===_0x5891bc:sameArray$1),!!_0x4966b8['static'],_0x4966b8['enables']);}['of'](_0x18e73b){return new FacetProvider([],this,0x0,_0x18e73b);}['compute'](_0x349e68,_0x241e05){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x349e68,this,0x1,_0x241e05);}['computeN'](_0x50db27,_0x312ab3){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x50db27,this,0x2,_0x312ab3);}['from'](_0x131a15,_0x3c7c83){return _0x3c7c83||(_0x3c7c83=_0x365fa5=>_0x365fa5),this['compute']([_0x131a15],_0x19246c=>_0x3c7c83(_0x19246c['field'](_0x131a15)));}}function sameArray$1(_0x1678ea,_0x4185fc){return _0x1678ea==_0x4185fc||_0x1678ea['length']==_0x4185fc['length']&&_0x1678ea['every']((_0x34fdb7,_0x381998)=>_0x34fdb7===_0x4185fc[_0x381998]);}class FacetProvider{constructor(_0x5aa586,_0x236043,_0x3ad88e,_0x23d5f3){this['dependencies']=_0x5aa586,this['facet']=_0x236043,this['type']=_0x3ad88e,this['value']=_0x23d5f3,this['id']=nextID++;}['dynamicSlot'](_0x1f94a8){var _0x4a174c;let _0x1c4fb2=this['value'],_0x14e03e=this['facet']['compareInput'],_0x385864=this['id'],_0x13baef=_0x1f94a8[_0x385864]>>0x1,_0xb5b2df=0x2==this['type'],_0x105265=!0x1,_0xa8b9f3=!0x1,_0x358fc5=[];for(let _0x34033b of this['dependencies'])'doc'==_0x34033b?_0x105265=!0x0:'selection'==_0x34033b?_0xa8b9f3=!0x0:0x1&(null!==(_0x4a174c=_0x1f94a8[_0x34033b['id']])&&void 0x0!==_0x4a174c?_0x4a174c:0x1)||_0x358fc5['push'](_0x1f94a8[_0x34033b['id']]);return{'create':_0x507711=>(_0x507711['values'][_0x13baef]=_0x1c4fb2(_0x507711),0x1),'update'(_0x239b24,_0xfe11c7){if(_0x105265&&_0xfe11c7['docChanged']||_0xa8b9f3&&(_0xfe11c7['docChanged']||_0xfe11c7['selection'])||ensureAll(_0x239b24,_0x358fc5)){let _0x377697=_0x1c4fb2(_0x239b24);if(_0xb5b2df?!compareArray(_0x377697,_0x239b24['values'][_0x13baef],_0x14e03e):!_0x14e03e(_0x377697,_0x239b24['values'][_0x13baef]))return _0x239b24['values'][_0x13baef]=_0x377697,0x1;}return 0x0;},'reconfigure':(_0xdb4f84,_0x499ed6)=>{let _0x3615bb,_0x50fba7=_0x499ed6['config']['address'][_0x385864];if(null!=_0x50fba7){let _0x54ebf4=getAddr(_0x499ed6,_0x50fba7);if(this['dependencies']['every'](_0x5b0167=>_0x5b0167 instanceof Facet?_0x499ed6['facet'](_0x5b0167)===_0xdb4f84['facet'](_0x5b0167):!(_0x5b0167 instanceof StateField)||_0x499ed6['field'](_0x5b0167,!0x1)==_0xdb4f84['field'](_0x5b0167,!0x1))||(_0xb5b2df?compareArray(_0x3615bb=_0x1c4fb2(_0xdb4f84),_0x54ebf4,_0x14e03e):_0x14e03e(_0x3615bb=_0x1c4fb2(_0xdb4f84),_0x54ebf4)))return _0xdb4f84['values'][_0x13baef]=_0x54ebf4,0x0;}else _0x3615bb=_0x1c4fb2(_0xdb4f84);return _0xdb4f84['values'][_0x13baef]=_0x3615bb,0x1;}};}}function compareArray(_0x2378d9,_0x54a748,_0xc91f19){if(_0x2378d9['length']!=_0x54a748['length'])return!0x1;for(let _0x1350a9=0x0;_0x1350a9<_0x2378d9['length'];_0x1350a9++)if(!_0xc91f19(_0x2378d9[_0x1350a9],_0x54a748[_0x1350a9]))return!0x1;return!0x0;}function ensureAll(_0x332898,_0x12d057){let _0x538908=!0x1;for(let _0x1b2ec1 of _0x12d057)0x1&ensureAddr(_0x332898,_0x1b2ec1)&&(_0x538908=!0x0);return _0x538908;}function dynamicFacetSlot(_0x2c0a56,_0x16c731,_0x8be958){let _0xd9ca8f=_0x8be958['map'](_0x589d0f=>_0x2c0a56[_0x589d0f['id']]),_0x132c4a=_0x8be958['map'](_0x417006=>_0x417006['type']),_0x4486d8=_0xd9ca8f['filter'](_0xeaf698=>!(0x1&_0xeaf698)),_0x4003f=_0x2c0a56[_0x16c731['id']]>>0x1;function _0xe6cb85(_0x469a9e){let _0x589bfc=[];for(let _0xa08fcd=0x0;_0xa08fcd<_0xd9ca8f['length'];_0xa08fcd++){let _0x483756=getAddr(_0x469a9e,_0xd9ca8f[_0xa08fcd]);if(0x2==_0x132c4a[_0xa08fcd]){for(let _0x27d1e1 of _0x483756)_0x589bfc['push'](_0x27d1e1);}else _0x589bfc['push'](_0x483756);}return _0x16c731['combine'](_0x589bfc);}return{'create'(_0x3afafd){for(let _0x1aebbc of _0xd9ca8f)ensureAddr(_0x3afafd,_0x1aebbc);return _0x3afafd['values'][_0x4003f]=_0xe6cb85(_0x3afafd),0x1;},'update'(_0x1fcd6b,_0x4c7bdd){if(!ensureAll(_0x1fcd6b,_0x4486d8))return 0x0;let _0x4ea2c2=_0xe6cb85(_0x1fcd6b);return _0x16c731['compare'](_0x4ea2c2,_0x1fcd6b['values'][_0x4003f])?0x0:(_0x1fcd6b['values'][_0x4003f]=_0x4ea2c2,0x1);},'reconfigure'(_0x2f2ec4,_0x1d5aa3){let _0x3047e6=ensureAll(_0x2f2ec4,_0xd9ca8f),_0x1f5d4b=_0x1d5aa3['config']['facets'][_0x16c731['id']],_0x3eb01b=_0x1d5aa3['facet'](_0x16c731);if(_0x1f5d4b&&!_0x3047e6&&sameArray$1(_0x8be958,_0x1f5d4b))return _0x2f2ec4['values'][_0x4003f]=_0x3eb01b,0x0;let _0x4ca82b=_0xe6cb85(_0x2f2ec4);return _0x16c731['compare'](_0x4ca82b,_0x3eb01b)?(_0x2f2ec4['values'][_0x4003f]=_0x3eb01b,0x0):(_0x2f2ec4['values'][_0x4003f]=_0x4ca82b,0x1);}};}const initField=Facet['define']({'static':!0x0});class StateField{constructor(_0x6bf52f,_0x23048c,_0x59d592,_0xe2f7b2,_0x412428){this['id']=_0x6bf52f,this['createF']=_0x23048c,this['updateF']=_0x59d592,this['compareF']=_0xe2f7b2,this['spec']=_0x412428,this['provides']=void 0x0;}static['define'](_0x28579c){let _0x1667ad=new StateField(nextID++,_0x28579c['create'],_0x28579c['update'],_0x28579c['compare']||((_0x239369,_0x486929)=>_0x239369===_0x486929),_0x28579c);return _0x28579c['provide']&&(_0x1667ad['provides']=_0x28579c['provide'](_0x1667ad)),_0x1667ad;}['create'](_0x31b7f4){let _0x4133c8=_0x31b7f4['facet'](initField)['find'](_0x423ce9=>_0x423ce9['field']==this);return((null==_0x4133c8?void 0x0:_0x4133c8['create'])||this['createF'])(_0x31b7f4);}['slot'](_0x4a0e0b){let _0x3c27a7=_0x4a0e0b[this['id']]>>0x1;return{'create':_0xd4c5c6=>(_0xd4c5c6['values'][_0x3c27a7]=this['create'](_0xd4c5c6),0x1),'update':(_0x1d8d1c,_0x322deb)=>{let _0x4ba365=_0x1d8d1c['values'][_0x3c27a7],_0x50d509=this['updateF'](_0x4ba365,_0x322deb);return this['compareF'](_0x4ba365,_0x50d509)?0x0:(_0x1d8d1c['values'][_0x3c27a7]=_0x50d509,0x1);},'reconfigure':(_0x234aa0,_0x21b8eb)=>{let _0x5d98ae,_0x350f22=_0x234aa0['facet'](initField),_0x558e52=_0x21b8eb['facet'](initField);return(_0x5d98ae=_0x350f22['find'](_0x1e9c35=>_0x1e9c35['field']==this))&&_0x5d98ae!=_0x558e52['find'](_0x382d1d=>_0x382d1d['field']==this)?(_0x234aa0['values'][_0x3c27a7]=_0x5d98ae['create'](_0x234aa0),0x1):null!=_0x21b8eb['config']['address'][this['id']]?(_0x234aa0['values'][_0x3c27a7]=_0x21b8eb['field'](this),0x0):(_0x234aa0['values'][_0x3c27a7]=this['create'](_0x234aa0),0x1);}};}['init'](_0x3086cf){return[this,initField['of']({'field':this,'create':_0x3086cf})];}get['extension'](){return this;}}const Prec_={'lowest':0x4,'low':0x3,'default':0x2,'high':0x1,'highest':0x0};function prec(_0x4d7d32){return _0x1a380f=>new PrecExtension(_0x1a380f,_0x4d7d32);}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(_0x23bf49,_0x5304a9){this['inner']=_0x23bf49,this['prec']=_0x5304a9;}}class Compartment{['of'](_0x14b504){return new CompartmentInstance(this,_0x14b504);}['reconfigure'](_0x59a9e8){return Compartment['reconfigure']['of']({'compartment':this,'extension':_0x59a9e8});}['get'](_0x3f86f2){return _0x3f86f2['config']['compartments']['get'](this);}}class CompartmentInstance{constructor(_0x585bef,_0x3d689b){this['compartment']=_0x585bef,this['inner']=_0x3d689b;}}class Configuration{constructor(_0x35e9e5,_0x113d5a,_0x3839ae,_0x4d266e,_0x52c930,_0x1c0fc8){for(this['base']=_0x35e9e5,this['compartments']=_0x113d5a,this['dynamicSlots']=_0x3839ae,this['address']=_0x4d266e,this['staticValues']=_0x52c930,this['facets']=_0x1c0fc8,this['statusTemplate']=[];this['statusTemplate']['length']<_0x3839ae['length'];)this['statusTemplate']['push'](0x0);}['staticFacet'](_0xd5d317){let _0x22d9d9=this['address'][_0xd5d317['id']];return null==_0x22d9d9?_0xd5d317['default']:this['staticValues'][_0x22d9d9>>0x1];}static['resolve'](_0x431456,_0x4b35f1,_0x146fc0){let _0xc5022d=[],_0x1b9d49=Object['create'](null),_0x3444d7=new Map();for(let _0x5dc771 of flatten(_0x431456,_0x4b35f1,_0x3444d7))_0x5dc771 instanceof StateField?_0xc5022d['push'](_0x5dc771):(_0x1b9d49[_0x5dc771['facet']['id']]||(_0x1b9d49[_0x5dc771['facet']['id']]=[]))['push'](_0x5dc771);let _0x2281e6=Object['create'](null),_0x37efc9=[],_0x70fcad=[];for(let _0x38b631 of _0xc5022d)_0x2281e6[_0x38b631['id']]=_0x70fcad['length']<<0x1,_0x70fcad['push'](_0x2a8e82=>_0x38b631['slot'](_0x2a8e82));let _0xdde616=null==_0x146fc0?void 0x0:_0x146fc0['config']['facets'];for(let _0xc94c61 in _0x1b9d49){let _0x128a1c=_0x1b9d49[_0xc94c61],_0xa5a45d=_0x128a1c[0x0]['facet'],_0x5b6884=_0xdde616&&_0xdde616[_0xc94c61]||[];if(_0x128a1c['every'](_0x31321d=>0x0==_0x31321d['type'])){if(_0x2281e6[_0xa5a45d['id']]=_0x37efc9['length']<<0x1|0x1,sameArray$1(_0x5b6884,_0x128a1c))_0x37efc9['push'](_0x146fc0['facet'](_0xa5a45d));else{let _0x364891=_0xa5a45d['combine'](_0x128a1c['map'](_0x244492=>_0x244492['value']));_0x37efc9['push'](_0x146fc0&&_0xa5a45d['compare'](_0x364891,_0x146fc0['facet'](_0xa5a45d))?_0x146fc0['facet'](_0xa5a45d):_0x364891);}}else{for(let _0xc99f75 of _0x128a1c)0x0==_0xc99f75['type']?(_0x2281e6[_0xc99f75['id']]=_0x37efc9['length']<<0x1|0x1,_0x37efc9['push'](_0xc99f75['value'])):(_0x2281e6[_0xc99f75['id']]=_0x70fcad['length']<<0x1,_0x70fcad['push'](_0xe11c98=>_0xc99f75['dynamicSlot'](_0xe11c98)));_0x2281e6[_0xa5a45d['id']]=_0x70fcad['length']<<0x1,_0x70fcad['push'](_0x35ef55=>dynamicFacetSlot(_0x35ef55,_0xa5a45d,_0x128a1c));}}let _0x905466=_0x70fcad['map'](_0x25d4df=>_0x25d4df(_0x2281e6));return new Configuration(_0x431456,_0x3444d7,_0x905466,_0x2281e6,_0x37efc9,_0x1b9d49);}}function flatten(_0x25f5f4,_0x1857c9,_0x4d9c45){let _0x2c57d4=[[],[],[],[],[]],_0x153b2d=new Map();return function _0x5dbed5(_0x3db768,_0x5f48cd){let _0x3c0710=_0x153b2d['get'](_0x3db768);if(null!=_0x3c0710){if(_0x3c0710<=_0x5f48cd)return;let _0x59c82a=_0x2c57d4[_0x3c0710]['indexOf'](_0x3db768);_0x59c82a>-0x1&&_0x2c57d4[_0x3c0710]['splice'](_0x59c82a,0x1),_0x3db768 instanceof CompartmentInstance&&_0x4d9c45['delete'](_0x3db768['compartment']);}if(_0x153b2d['set'](_0x3db768,_0x5f48cd),Array['isArray'](_0x3db768)){for(let _0x5cd8ff of _0x3db768)_0x5dbed5(_0x5cd8ff,_0x5f48cd);}else{if(_0x3db768 instanceof CompartmentInstance){if(_0x4d9c45['has'](_0x3db768['compartment']))throw new RangeError('Duplicate\x20use\x20of\x20compartment\x20in\x20extensions');let _0x5ee714=_0x1857c9['get'](_0x3db768['compartment'])||_0x3db768['inner'];_0x4d9c45['set'](_0x3db768['compartment'],_0x5ee714),_0x5dbed5(_0x5ee714,_0x5f48cd);}else{if(_0x3db768 instanceof PrecExtension)_0x5dbed5(_0x3db768['inner'],_0x3db768['prec']);else{if(_0x3db768 instanceof StateField)_0x2c57d4[_0x5f48cd]['push'](_0x3db768),_0x3db768['provides']&&_0x5dbed5(_0x3db768['provides'],_0x5f48cd);else{if(_0x3db768 instanceof FacetProvider)_0x2c57d4[_0x5f48cd]['push'](_0x3db768),_0x3db768['facet']['extensions']&&_0x5dbed5(_0x3db768['facet']['extensions'],Prec_['default']);else{let _0x1cc2f0=_0x3db768['extension'];if(!_0x1cc2f0)throw new Error('Unrecognized\x20extension\x20value\x20in\x20extension\x20set\x20('+_0x3db768+').\x20This\x20sometimes\x20happens\x20because\x20multiple\x20instances\x20of\x20@codemirror/state\x20are\x20loaded,\x20breaking\x20instanceof\x20checks.');_0x5dbed5(_0x1cc2f0,_0x5f48cd);}}}}}}(_0x25f5f4,Prec_['default']),_0x2c57d4['reduce']((_0x36b021,_0x32fe67)=>_0x36b021['concat'](_0x32fe67));}function ensureAddr(_0x54442e,_0x21ff6d){if(0x1&_0x21ff6d)return 0x2;let _0x4c1ab6=_0x21ff6d>>0x1,_0x5752b1=_0x54442e['status'][_0x4c1ab6];if(0x4==_0x5752b1)throw new Error('Cyclic\x20dependency\x20between\x20fields\x20and/or\x20facets');if(0x2&_0x5752b1)return _0x5752b1;_0x54442e['status'][_0x4c1ab6]=0x4;let _0x231ea5=_0x54442e['computeSlot'](_0x54442e,_0x54442e['config']['dynamicSlots'][_0x4c1ab6]);return _0x54442e['status'][_0x4c1ab6]=0x2|_0x231ea5;}function getAddr(_0x29445e,_0x377a3b){return 0x1&_0x377a3b?_0x29445e['config']['staticValues'][_0x377a3b>>0x1]:_0x29445e['values'][_0x377a3b>>0x1];}const languageData=Facet['define'](),allowMultipleSelections=Facet['define']({'combine':_0xd7efb6=>_0xd7efb6['some'](_0x1d5113=>_0x1d5113),'static':!0x0}),lineSeparator=Facet['define']({'combine':_0x5eabd7=>_0x5eabd7['length']?_0x5eabd7[0x0]:void 0x0,'static':!0x0}),changeFilter=Facet['define'](),transactionFilter=Facet['define'](),transactionExtender=Facet['define'](),readOnly=Facet['define']({'combine':_0x644b2=>!!_0x644b2['length']&&_0x644b2[0x0]});class Annotation{constructor(_0x4ef900,_0x2139f2){this['type']=_0x4ef900,this['value']=_0x2139f2;}static['define'](){return new AnnotationType();}}class AnnotationType{['of'](_0x190785){return new Annotation(this,_0x190785);}}class StateEffectType{constructor(_0x46b707){this['map']=_0x46b707;}['of'](_0x4888df){return new StateEffect(this,_0x4888df);}}class StateEffect{constructor(_0x1dccb4,_0x3d56b9){this['type']=_0x1dccb4,this['value']=_0x3d56b9;}['map'](_0x2f7a32){let _0x401149=this['type']['map'](this['value'],_0x2f7a32);return void 0x0===_0x401149?void 0x0:_0x401149==this['value']?this:new StateEffect(this['type'],_0x401149);}['is'](_0x51d62e){return this['type']==_0x51d62e;}static['define'](_0xd537ab={}){return new StateEffectType(_0xd537ab['map']||(_0x14a069=>_0x14a069));}static['mapEffects'](_0x13adc9,_0x20cea6){if(!_0x13adc9['length'])return _0x13adc9;let _0x205463=[];for(let _0x5665ce of _0x13adc9){let _0x43ca43=_0x5665ce['map'](_0x20cea6);_0x43ca43&&_0x205463['push'](_0x43ca43);}return _0x205463;}}StateEffect['reconfigure']=StateEffect['define'](),StateEffect['appendConfig']=StateEffect['define']();class Transaction{constructor(_0x58f484,_0x40e43a,_0x116da6,_0x3eb588,_0x17dcb3,_0x35041b){this['startState']=_0x58f484,this['changes']=_0x40e43a,this['selection']=_0x116da6,this['effects']=_0x3eb588,this['annotations']=_0x17dcb3,this['scrollIntoView']=_0x35041b,this['_doc']=null,this['_state']=null,_0x116da6&&checkSelection(_0x116da6,_0x40e43a['newLength']),_0x17dcb3['some'](_0x11a881=>_0x11a881['type']==Transaction['time'])||(this['annotations']=_0x17dcb3['concat'](Transaction['time']['of'](Date['now']())));}static['create'](_0x280f28,_0xb3bfbe,_0x12661b,_0x1c169f,_0x357394,_0x33de0d){return new Transaction(_0x280f28,_0xb3bfbe,_0x12661b,_0x1c169f,_0x357394,_0x33de0d);}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'](_0x118e35){for(let _0x438f49 of this['annotations'])if(_0x438f49['type']==_0x118e35)return _0x438f49['value'];}get['docChanged'](){return!this['changes']['empty'];}get['reconfigured'](){return this['startState']['config']!=this['state']['config'];}['isUserEvent'](_0x51d4ca){let _0x5ddee3=this['annotation'](Transaction['userEvent']);return!(!_0x5ddee3||!(_0x5ddee3==_0x51d4ca||_0x5ddee3['length']>_0x51d4ca['length']&&_0x5ddee3['slice'](0x0,_0x51d4ca['length'])==_0x51d4ca&&'.'==_0x5ddee3[_0x51d4ca['length']]));}}function joinRanges(_0xe146f2,_0x2bbfe8){let _0x547df7=[];for(let _0x187430=0x0,_0xe4f7a3=0x0;;){let _0x5bde8a,_0xd1bf5f;if(_0x187430<_0xe146f2['length']&&(_0xe4f7a3==_0x2bbfe8['length']||_0x2bbfe8[_0xe4f7a3]>=_0xe146f2[_0x187430]))_0x5bde8a=_0xe146f2[_0x187430++],_0xd1bf5f=_0xe146f2[_0x187430++];else{if(!(_0xe4f7a3<_0x2bbfe8['length']))return _0x547df7;_0x5bde8a=_0x2bbfe8[_0xe4f7a3++],_0xd1bf5f=_0x2bbfe8[_0xe4f7a3++];}!_0x547df7['length']||_0x547df7[_0x547df7['length']-0x1]<_0x5bde8a?_0x547df7['push'](_0x5bde8a,_0xd1bf5f):_0x547df7[_0x547df7['length']-0x1]<_0xd1bf5f&&(_0x547df7[_0x547df7['length']-0x1]=_0xd1bf5f);}}function mergeTransaction(_0x4a6e67,_0xc3ef33,_0x55515d){var _0x38b3ff;let _0x4edf42,_0x103312,_0xeb9453;return _0x55515d?(_0x4edf42=_0xc3ef33['changes'],_0x103312=ChangeSet['empty'](_0xc3ef33['changes']['length']),_0xeb9453=_0x4a6e67['changes']['compose'](_0xc3ef33['changes'])):(_0x4edf42=_0xc3ef33['changes']['map'](_0x4a6e67['changes']),_0x103312=_0x4a6e67['changes']['mapDesc'](_0xc3ef33['changes'],!0x0),_0xeb9453=_0x4a6e67['changes']['compose'](_0x4edf42)),{'changes':_0xeb9453,'selection':_0xc3ef33['selection']?_0xc3ef33['selection']['map'](_0x103312):null===(_0x38b3ff=_0x4a6e67['selection'])||void 0x0===_0x38b3ff?void 0x0:_0x38b3ff['map'](_0x4edf42),'effects':StateEffect['mapEffects'](_0x4a6e67['effects'],_0x4edf42)['concat'](StateEffect['mapEffects'](_0xc3ef33['effects'],_0x103312)),'annotations':_0x4a6e67['annotations']['length']?_0x4a6e67['annotations']['concat'](_0xc3ef33['annotations']):_0xc3ef33['annotations'],'scrollIntoView':_0x4a6e67['scrollIntoView']||_0xc3ef33['scrollIntoView']};}function resolveTransactionInner(_0x186521,_0x51f204,_0x105403){let _0x2ca4a7=_0x51f204['selection'],_0x2618a3=asArray$2(_0x51f204['annotations']);return _0x51f204['userEvent']&&(_0x2618a3=_0x2618a3['concat'](Transaction['userEvent']['of'](_0x51f204['userEvent']))),{'changes':_0x51f204['changes']instanceof ChangeSet?_0x51f204['changes']:ChangeSet['of'](_0x51f204['changes']||[],_0x105403,_0x186521['facet'](lineSeparator)),'selection':_0x2ca4a7&&(_0x2ca4a7 instanceof EditorSelection?_0x2ca4a7:EditorSelection['single'](_0x2ca4a7['anchor'],_0x2ca4a7['head'])),'effects':asArray$2(_0x51f204['effects']),'annotations':_0x2618a3,'scrollIntoView':!!_0x51f204['scrollIntoView']};}function resolveTransaction(_0x28200a,_0x59e17c,_0x72d7ba){let _0x26c6b4=resolveTransactionInner(_0x28200a,_0x59e17c['length']?_0x59e17c[0x0]:{},_0x28200a['doc']['length']);_0x59e17c['length']&&!0x1===_0x59e17c[0x0]['filter']&&(_0x72d7ba=!0x1);for(let _0x2ba0e9=0x1;_0x2ba0e9<_0x59e17c['length'];_0x2ba0e9++){!0x1===_0x59e17c[_0x2ba0e9]['filter']&&(_0x72d7ba=!0x1);let _0x36ac10=!!_0x59e17c[_0x2ba0e9]['sequential'];_0x26c6b4=mergeTransaction(_0x26c6b4,resolveTransactionInner(_0x28200a,_0x59e17c[_0x2ba0e9],_0x36ac10?_0x26c6b4['changes']['newLength']:_0x28200a['doc']['length']),_0x36ac10);}let _0x1e8558=Transaction['create'](_0x28200a,_0x26c6b4['changes'],_0x26c6b4['selection'],_0x26c6b4['effects'],_0x26c6b4['annotations'],_0x26c6b4['scrollIntoView']);return extendTransaction(_0x72d7ba?filterTransaction(_0x1e8558):_0x1e8558);}function filterTransaction(_0x3ccd22){let _0x188b63=_0x3ccd22['startState'],_0x4b0df7=!0x0;for(let _0x1ac3f6 of _0x188b63['facet'](changeFilter)){let _0x482aac=_0x1ac3f6(_0x3ccd22);if(!0x1===_0x482aac){_0x4b0df7=!0x1;break;}Array['isArray'](_0x482aac)&&(_0x4b0df7=!0x0===_0x4b0df7?_0x482aac:joinRanges(_0x4b0df7,_0x482aac));}if(!0x0!==_0x4b0df7){let _0x56582f,_0xd43188;if(!0x1===_0x4b0df7)_0xd43188=_0x3ccd22['changes']['invertedDesc'],_0x56582f=ChangeSet['empty'](_0x188b63['doc']['length']);else{let _0x195212=_0x3ccd22['changes']['filter'](_0x4b0df7);_0x56582f=_0x195212['changes'],_0xd43188=_0x195212['filtered']['mapDesc'](_0x195212['changes'])['invertedDesc'];}_0x3ccd22=Transaction['create'](_0x188b63,_0x56582f,_0x3ccd22['selection']&&_0x3ccd22['selection']['map'](_0xd43188),StateEffect['mapEffects'](_0x3ccd22['effects'],_0xd43188),_0x3ccd22['annotations'],_0x3ccd22['scrollIntoView']);}let _0x14c1ac=_0x188b63['facet'](transactionFilter);for(let _0x1d3dc3=_0x14c1ac['length']-0x1;_0x1d3dc3>=0x0;_0x1d3dc3--){let _0x57a6d3=_0x14c1ac[_0x1d3dc3](_0x3ccd22);_0x3ccd22=_0x57a6d3 instanceof Transaction?_0x57a6d3:Array['isArray'](_0x57a6d3)&&0x1==_0x57a6d3['length']&&_0x57a6d3[0x0]instanceof Transaction?_0x57a6d3[0x0]:resolveTransaction(_0x188b63,asArray$2(_0x57a6d3),!0x1);}return _0x3ccd22;}function extendTransaction(_0x710b6f){let _0x2bc2b3=_0x710b6f['startState'],_0x542b32=_0x2bc2b3['facet'](transactionExtender),_0x544ecd=_0x710b6f;for(let _0xf0bf3b=_0x542b32['length']-0x1;_0xf0bf3b>=0x0;_0xf0bf3b--){let _0x30bcdb=_0x542b32[_0xf0bf3b](_0x710b6f);_0x30bcdb&&Object['keys'](_0x30bcdb)['length']&&(_0x544ecd=mergeTransaction(_0x544ecd,resolveTransactionInner(_0x2bc2b3,_0x30bcdb,_0x710b6f['changes']['newLength']),!0x0));}return _0x544ecd==_0x710b6f?_0x710b6f:Transaction['create'](_0x2bc2b3,_0x710b6f['changes'],_0x710b6f['selection'],_0x544ecd['effects'],_0x544ecd['annotations'],_0x544ecd['scrollIntoView']);}Transaction['time']=Annotation['define'](),Transaction['userEvent']=Annotation['define'](),Transaction['addToHistory']=Annotation['define'](),Transaction['remote']=Annotation['define']();const none$3=[];function asArray$2(_0x2df101){return null==_0x2df101?none$3:Array['isArray'](_0x2df101)?_0x2df101:[_0x2df101];}var CharCategory=function(_0x3df4d7){return _0x3df4d7[_0x3df4d7['Word']=0x0]='Word',_0x3df4d7[_0x3df4d7['Space']=0x1]='Space',_0x3df4d7[_0x3df4d7['Other']=0x2]='Other',_0x3df4d7;}(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(_0x275f8d){}function hasWordChar(_0x3a79a8){if(wordChar)return wordChar['test'](_0x3a79a8);for(let _0x484421=0x0;_0x484421<_0x3a79a8['length'];_0x484421++){let _0x47301b=_0x3a79a8[_0x484421];if(/\w/['test'](_0x47301b)||_0x47301b>'\u0080'&&(_0x47301b['toUpperCase']()!=_0x47301b['toLowerCase']()||nonASCIISingleCaseWordChar['test'](_0x47301b)))return!0x0;}return!0x1;}function makeCategorizer(_0x5b7378){return _0xf5bf72=>{if(!/\S/['test'](_0xf5bf72))return CharCategory['Space'];if(hasWordChar(_0xf5bf72))return CharCategory['Word'];for(let _0x30ec27=0x0;_0x30ec27<_0x5b7378['length'];_0x30ec27++)if(_0xf5bf72['indexOf'](_0x5b7378[_0x30ec27])>-0x1)return CharCategory['Word'];return CharCategory['Other'];};}class EditorState{constructor(_0x2edcec,_0x11aa4a,_0x386ed0,_0x5432cf,_0x550a0c,_0x37cee7){this['config']=_0x2edcec,this['doc']=_0x11aa4a,this['selection']=_0x386ed0,this['values']=_0x5432cf,this['status']=_0x2edcec['statusTemplate']['slice'](),this['computeSlot']=_0x550a0c,_0x37cee7&&(_0x37cee7['_state']=this);for(let _0x77824=0x0;_0x77824<this['config']['dynamicSlots']['length'];_0x77824++)ensureAddr(this,_0x77824<<0x1);this['computeSlot']=null;}['field'](_0x2c4bf2,_0x5ceac6=!0x0){let _0x3a716e=this['config']['address'][_0x2c4bf2['id']];if(null!=_0x3a716e)return ensureAddr(this,_0x3a716e),getAddr(this,_0x3a716e);if(_0x5ceac6)throw new RangeError('Field\x20is\x20not\x20present\x20in\x20this\x20state');}['update'](..._0x14f46d){return resolveTransaction(this,_0x14f46d,!0x0);}['applyTransaction'](_0x2325b4){let _0x1a239b,_0x13ec3d=this['config'],{base:_0x325561,compartments:_0x76ec14}=_0x13ec3d;for(let _0x1e38c0 of _0x2325b4['effects'])_0x1e38c0['is'](Compartment['reconfigure'])?(_0x13ec3d&&(_0x76ec14=new Map(),_0x13ec3d['compartments']['forEach']((_0x561f60,_0x5dfaf4)=>_0x76ec14['set'](_0x5dfaf4,_0x561f60)),_0x13ec3d=null),_0x76ec14['set'](_0x1e38c0['value']['compartment'],_0x1e38c0['value']['extension'])):_0x1e38c0['is'](StateEffect['reconfigure'])?(_0x13ec3d=null,_0x325561=_0x1e38c0['value']):_0x1e38c0['is'](StateEffect['appendConfig'])&&(_0x13ec3d=null,_0x325561=asArray$2(_0x325561)['concat'](_0x1e38c0['value']));if(_0x13ec3d)_0x1a239b=_0x2325b4['startState']['values']['slice']();else _0x13ec3d=Configuration['resolve'](_0x325561,_0x76ec14,this),_0x1a239b=new EditorState(_0x13ec3d,this['doc'],this['selection'],_0x13ec3d['dynamicSlots']['map'](()=>null),(_0x3f2373,_0x4d048a)=>_0x4d048a['reconfigure'](_0x3f2373,this),null)['values'];let _0x168098=_0x2325b4['startState']['facet'](allowMultipleSelections)?_0x2325b4['newSelection']:_0x2325b4['newSelection']['asSingle']();new EditorState(_0x13ec3d,_0x2325b4['newDoc'],_0x168098,_0x1a239b,(_0x2504ed,_0x327832)=>_0x327832['update'](_0x2504ed,_0x2325b4),_0x2325b4);}['replaceSelection'](_0x1abcf4){return'string'==typeof _0x1abcf4&&(_0x1abcf4=this['toText'](_0x1abcf4)),this['changeByRange'](_0x33c81a=>({'changes':{'from':_0x33c81a['from'],'to':_0x33c81a['to'],'insert':_0x1abcf4},'range':EditorSelection['cursor'](_0x33c81a['from']+_0x1abcf4['length'])}));}['changeByRange'](_0x5a7e56){let _0x219865=this['selection'],_0x24ad61=_0x5a7e56(_0x219865['ranges'][0x0]),_0x3c20d6=this['changes'](_0x24ad61['changes']),_0x284201=[_0x24ad61['range']],_0x30f726=asArray$2(_0x24ad61['effects']);for(let _0x5e3d58=0x1;_0x5e3d58<_0x219865['ranges']['length'];_0x5e3d58++){let _0x557aa5=_0x5a7e56(_0x219865['ranges'][_0x5e3d58]),_0x309ac8=this['changes'](_0x557aa5['changes']),_0x2c97a8=_0x309ac8['map'](_0x3c20d6);for(let _0x3771c8=0x0;_0x3771c8<_0x5e3d58;_0x3771c8++)_0x284201[_0x3771c8]=_0x284201[_0x3771c8]['map'](_0x2c97a8);let _0x59104e=_0x3c20d6['mapDesc'](_0x309ac8,!0x0);_0x284201['push'](_0x557aa5['range']['map'](_0x59104e)),_0x3c20d6=_0x3c20d6['compose'](_0x2c97a8),_0x30f726=StateEffect['mapEffects'](_0x30f726,_0x2c97a8)['concat'](StateEffect['mapEffects'](asArray$2(_0x557aa5['effects']),_0x59104e));}return{'changes':_0x3c20d6,'selection':EditorSelection['create'](_0x284201,_0x219865['mainIndex']),'effects':_0x30f726};}['changes'](_0x262699=[]){return _0x262699 instanceof ChangeSet?_0x262699:ChangeSet['of'](_0x262699,this['doc']['length'],this['facet'](EditorState['lineSeparator']));}['toText'](_0x30b39f){return Text['of'](_0x30b39f['split'](this['facet'](EditorState['lineSeparator'])||DefaultSplit));}['sliceDoc'](_0x40eb09=0x0,_0x3b9fe9=this['doc']['length']){return this['doc']['sliceString'](_0x40eb09,_0x3b9fe9,this['lineBreak']);}['facet'](_0x3ff35a){let _0x2e9516=this['config']['address'][_0x3ff35a['id']];return null==_0x2e9516?_0x3ff35a['default']:(ensureAddr(this,_0x2e9516),getAddr(this,_0x2e9516));}['toJSON'](_0x258ce1){let _0x1e13e8={'doc':this['sliceDoc'](),'selection':this['selection']['toJSON']()};if(_0x258ce1)for(let _0x32c6a6 in _0x258ce1){let _0xda2900=_0x258ce1[_0x32c6a6];_0xda2900 instanceof StateField&&null!=this['config']['address'][_0xda2900['id']]&&(_0x1e13e8[_0x32c6a6]=_0xda2900['spec']['toJSON'](this['field'](_0x258ce1[_0x32c6a6]),this));}return _0x1e13e8;}static['fromJSON'](_0x554808,_0x4831a9={},_0x485efb){if(!_0x554808||'string'!=typeof _0x554808['doc'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorState');let _0x2e71fb=[];if(_0x485efb){for(let _0x3f3a3f in _0x485efb)if(Object['prototype']['hasOwnProperty']['call'](_0x554808,_0x3f3a3f)){let _0x1decca=_0x485efb[_0x3f3a3f],_0x5992ce=_0x554808[_0x3f3a3f];_0x2e71fb['push'](_0x1decca['init'](_0x5eb4cd=>_0x1decca['spec']['fromJSON'](_0x5992ce,_0x5eb4cd)));}}return EditorState['create']({'doc':_0x554808['doc'],'selection':EditorSelection['fromJSON'](_0x554808['selection']),'extensions':_0x4831a9['extensions']?_0x2e71fb['concat']([_0x4831a9['extensions']]):_0x2e71fb});}static['create'](_0x4bbc66={}){let _0x368e5e=Configuration['resolve'](_0x4bbc66['extensions']||[],new Map()),_0x1e0199=_0x4bbc66['doc']instanceof Text?_0x4bbc66['doc']:Text['of']((_0x4bbc66['doc']||'')['split'](_0x368e5e['staticFacet'](EditorState['lineSeparator'])||DefaultSplit)),_0x4dab81=_0x4bbc66['selection']?_0x4bbc66['selection']instanceof EditorSelection?_0x4bbc66['selection']:EditorSelection['single'](_0x4bbc66['selection']['anchor'],_0x4bbc66['selection']['head']):EditorSelection['single'](0x0);return checkSelection(_0x4dab81,_0x1e0199['length']),_0x368e5e['staticFacet'](allowMultipleSelections)||(_0x4dab81=_0x4dab81['asSingle']()),new EditorState(_0x368e5e,_0x1e0199,_0x4dab81,_0x368e5e['dynamicSlots']['map'](()=>null),(_0x486426,_0x2123d0)=>_0x2123d0['create'](_0x486426),null);}get['tabSize'](){return this['facet'](EditorState['tabSize']);}get['lineBreak'](){return this['facet'](EditorState['lineSeparator'])||'\x0a';}get['readOnly'](){return this['facet'](readOnly);}['phrase'](_0x4fc323,..._0x3705ea){for(let _0x4e798d of this['facet'](EditorState['phrases']))if(Object['prototype']['hasOwnProperty']['call'](_0x4e798d,_0x4fc323)){_0x4fc323=_0x4e798d[_0x4fc323];break;}return _0x3705ea['length']&&(_0x4fc323=_0x4fc323['replace'](/\$(\$|\d*)/g,(_0x1c6860,_0x5a82ac)=>{if('$'==_0x5a82ac)return'$';let _0x10d990=+(_0x5a82ac||0x1);return!_0x10d990||_0x10d990>_0x3705ea['length']?_0x1c6860:_0x3705ea[_0x10d990-0x1];})),_0x4fc323;}['languageDataAt'](_0x35c117,_0x2b7894,_0x4167ec=-0x1){let _0x382329=[];for(let _0x808c7f of this['facet'](languageData))for(let _0x19c8fa of _0x808c7f(this,_0x2b7894,_0x4167ec))Object['prototype']['hasOwnProperty']['call'](_0x19c8fa,_0x35c117)&&_0x382329['push'](_0x19c8fa[_0x35c117]);return _0x382329;}['charCategorizer'](_0x30bf35){return makeCategorizer(this['languageDataAt']('wordChars',_0x30bf35)['join'](''));}['wordAt'](_0x5ee57f){let {text:_0x33f790,from:_0x38f2c1,length:_0x43e772}=this['doc']['lineAt'](_0x5ee57f),_0x3c3415=this['charCategorizer'](_0x5ee57f),_0x133b7e=_0x5ee57f-_0x38f2c1,_0x2232b7=_0x5ee57f-_0x38f2c1;for(;_0x133b7e>0x0;){let _0x29eaca=findClusterBreak(_0x33f790,_0x133b7e,!0x1);if(_0x3c3415(_0x33f790['slice'](_0x29eaca,_0x133b7e))!=CharCategory['Word'])break;_0x133b7e=_0x29eaca;}for(;_0x2232b7<_0x43e772;){let _0x1be719=findClusterBreak(_0x33f790,_0x2232b7);if(_0x3c3415(_0x33f790['slice'](_0x2232b7,_0x1be719))!=CharCategory['Word'])break;_0x2232b7=_0x1be719;}return _0x133b7e==_0x2232b7?null:EditorSelection['range'](_0x133b7e+_0x38f2c1,_0x2232b7+_0x38f2c1);}}function combineConfig(_0xc2873d,_0x4b8506,_0x494ed7={}){let _0x1ff4c0={};for(let _0x2c29c7 of _0xc2873d)for(let _0x4f29c0 of Object['keys'](_0x2c29c7)){let _0x3cd8c7=_0x2c29c7[_0x4f29c0],_0xd5ad4c=_0x1ff4c0[_0x4f29c0];if(void 0x0===_0xd5ad4c)_0x1ff4c0[_0x4f29c0]=_0x3cd8c7;else{if(_0xd5ad4c===_0x3cd8c7||void 0x0===_0x3cd8c7);else{if(!Object['hasOwnProperty']['call'](_0x494ed7,_0x4f29c0))throw new Error('Config\x20merge\x20conflict\x20for\x20field\x20'+_0x4f29c0);_0x1ff4c0[_0x4f29c0]=_0x494ed7[_0x4f29c0](_0xd5ad4c,_0x3cd8c7);}}}for(let _0x5aa8b in _0x4b8506)void 0x0===_0x1ff4c0[_0x5aa8b]&&(_0x1ff4c0[_0x5aa8b]=_0x4b8506[_0x5aa8b]);return _0x1ff4c0;}EditorState['allowMultipleSelections']=allowMultipleSelections,EditorState['tabSize']=Facet['define']({'combine':_0x523aa2=>_0x523aa2['length']?_0x523aa2[0x0]:0x4}),EditorState['lineSeparator']=lineSeparator,EditorState['readOnly']=readOnly,EditorState['phrases']=Facet['define']({'compare'(_0x5071d4,_0x55e2b5){let _0x33db0d=Object['keys'](_0x5071d4),_0x128a3d=Object['keys'](_0x55e2b5);return _0x33db0d['length']==_0x128a3d['length']&&_0x33db0d['every'](_0x4484e9=>_0x5071d4[_0x4484e9]==_0x55e2b5[_0x4484e9]);}}),EditorState['languageData']=languageData,EditorState['changeFilter']=changeFilter,EditorState['transactionFilter']=transactionFilter,EditorState['transactionExtender']=transactionExtender,Compartment['reconfigure']=StateEffect['define']();class RangeValue{['eq'](_0x25a674){return this==_0x25a674;}['range'](_0x3313ba,_0x334169=_0x3313ba){return Range$1['create'](_0x3313ba,_0x334169,this);}}RangeValue['prototype']['startSide']=RangeValue['prototype']['endSide']=0x0,RangeValue['prototype']['point']=!0x1,RangeValue['prototype']['mapMode']=MapMode['TrackDel'];let Range$1=class e{constructor(_0x5a1f88,_0x3790d7,_0x372dbe){this['from']=_0x5a1f88,this['to']=_0x3790d7,this['value']=_0x372dbe;}static['create'](_0x536eb0,_0x3f373e,_0x594b95){return new e(_0x536eb0,_0x3f373e,_0x594b95);}};function cmpRange(_0x4f70b1,_0x154d15){return _0x4f70b1['from']-_0x154d15['from']||_0x4f70b1['value']['startSide']-_0x154d15['value']['startSide'];}class Chunk{constructor(_0x2659ae,_0x9d025f,_0x4efdc8,_0x5f64bf){this['from']=_0x2659ae,this['to']=_0x9d025f,this['value']=_0x4efdc8,this['maxPoint']=_0x5f64bf;}get['length'](){return this['to'][this['to']['length']-0x1];}['findIndex'](_0x3f808d,_0x2a8b65,_0x6a909d,_0x4fd3dd=0x0){let _0x306882=_0x6a909d?this['to']:this['from'];for(let _0x59b17b=_0x4fd3dd,_0x23e20a=_0x306882['length'];;){if(_0x59b17b==_0x23e20a)return _0x59b17b;let _0x520989=_0x59b17b+_0x23e20a>>0x1,_0x99312=_0x306882[_0x520989]-_0x3f808d||(_0x6a909d?this['value'][_0x520989]['endSide']:this['value'][_0x520989]['startSide'])-_0x2a8b65;if(_0x520989==_0x59b17b)return _0x99312>=0x0?_0x59b17b:_0x23e20a;_0x99312>=0x0?_0x23e20a=_0x520989:_0x59b17b=_0x520989+0x1;}}['between'](_0x524e42,_0x2a4153,_0x129582,_0x2599f4){for(let _0x5dccfc=this['findIndex'](_0x2a4153,-0x3b9aca00,!0x0),_0x2c34d9=this['findIndex'](_0x129582,0x3b9aca00,!0x1,_0x5dccfc);_0x5dccfc<_0x2c34d9;_0x5dccfc++)if(!0x1===_0x2599f4(this['from'][_0x5dccfc]+_0x524e42,this['to'][_0x5dccfc]+_0x524e42,this['value'][_0x5dccfc]))return!0x1;}['map'](_0x5004ef,_0x2e5014){let _0x2edd4c=[],_0x15ffb8=[],_0x39667b=[],_0x2ad770=-0x1,_0x586c3a=-0x1;for(let _0x186fe9=0x0;_0x186fe9<this['value']['length'];_0x186fe9++){let _0x56ff14,_0xa7bdbb,_0x1376df=this['value'][_0x186fe9],_0x256085=this['from'][_0x186fe9]+_0x5004ef,_0x2ef003=this['to'][_0x186fe9]+_0x5004ef;if(_0x256085==_0x2ef003){let _0x5ce24=_0x2e5014['mapPos'](_0x256085,_0x1376df['startSide'],_0x1376df['mapMode']);if(null==_0x5ce24)continue;if(_0x56ff14=_0xa7bdbb=_0x5ce24,_0x1376df['startSide']!=_0x1376df['endSide']&&(_0xa7bdbb=_0x2e5014['mapPos'](_0x256085,_0x1376df['endSide']),_0xa7bdbb<_0x56ff14))continue;}else{if(_0x56ff14=_0x2e5014['mapPos'](_0x256085,_0x1376df['startSide']),_0xa7bdbb=_0x2e5014['mapPos'](_0x2ef003,_0x1376df['endSide']),_0x56ff14>_0xa7bdbb||_0x56ff14==_0xa7bdbb&&_0x1376df['startSide']>0x0&&_0x1376df['endSide']<=0x0)continue;}(_0xa7bdbb-_0x56ff14||_0x1376df['endSide']-_0x1376df['startSide'])<0x0||(_0x2ad770<0x0&&(_0x2ad770=_0x56ff14),_0x1376df['point']&&(_0x586c3a=Math['max'](_0x586c3a,_0xa7bdbb-_0x56ff14)),_0x2edd4c['push'](_0x1376df),_0x15ffb8['push'](_0x56ff14-_0x2ad770),_0x39667b['push'](_0xa7bdbb-_0x2ad770));}return{'mapped':_0x2edd4c['length']?new Chunk(_0x15ffb8,_0x39667b,_0x2edd4c,_0x586c3a):null,'pos':_0x2ad770};}}class RangeSet{constructor(_0x1cc5b0,_0x1a53d9,_0x3ffaff,_0x169921){this['chunkPos']=_0x1cc5b0,this['chunk']=_0x1a53d9,this['nextLayer']=_0x3ffaff,this['maxPoint']=_0x169921;}static['create'](_0xb1a208,_0x21ede8,_0x530be1,_0x52440f){return new RangeSet(_0xb1a208,_0x21ede8,_0x530be1,_0x52440f);}get['length'](){let _0x44e309=this['chunk']['length']-0x1;return _0x44e309<0x0?0x0:Math['max'](this['chunkEnd'](_0x44e309),this['nextLayer']['length']);}get['size'](){if(this['isEmpty'])return 0x0;let _0x44dba1=this['nextLayer']['size'];for(let _0x756ed7 of this['chunk'])_0x44dba1+=_0x756ed7['value']['length'];return _0x44dba1;}['chunkEnd'](_0x24a8c3){return this['chunkPos'][_0x24a8c3]+this['chunk'][_0x24a8c3]['length'];}['update'](_0x1763d7){let {add:_0x32365c=[],sort:_0x129995=!0x1,filterFrom:_0x57b139=0x0,filterTo:_0x5f3e7c=this['length']}=_0x1763d7,_0xefc4af=_0x1763d7['filter'];if(0x0==_0x32365c['length']&&!_0xefc4af)return this;if(_0x129995&&(_0x32365c=_0x32365c['slice']()['sort'](cmpRange)),this['isEmpty'])return _0x32365c['length']?RangeSet['of'](_0x32365c):this;let _0x5b126b=new LayerCursor(this,null,-0x1)['goto'](0x0),_0x3ae738=0x0,_0xbc9895=[],_0xf0d9d7=new RangeSetBuilder();for(;_0x5b126b['value']||_0x3ae738<_0x32365c['length'];)if(_0x3ae738<_0x32365c['length']&&(_0x5b126b['from']-_0x32365c[_0x3ae738]['from']||_0x5b126b['startSide']-_0x32365c[_0x3ae738]['value']['startSide'])>=0x0){let _0x314fe1=_0x32365c[_0x3ae738++];_0xf0d9d7['addInner'](_0x314fe1['from'],_0x314fe1['to'],_0x314fe1['value'])||_0xbc9895['push'](_0x314fe1);}else 0x1==_0x5b126b['rangeIndex']&&_0x5b126b['chunkIndex']<this['chunk']['length']&&(_0x3ae738==_0x32365c['length']||this['chunkEnd'](_0x5b126b['chunkIndex'])<_0x32365c[_0x3ae738]['from'])&&(!_0xefc4af||_0x57b139>this['chunkEnd'](_0x5b126b['chunkIndex'])||_0x5f3e7c<this['chunkPos'][_0x5b126b['chunkIndex']])&&_0xf0d9d7['addChunk'](this['chunkPos'][_0x5b126b['chunkIndex']],this['chunk'][_0x5b126b['chunkIndex']])?_0x5b126b['nextChunk']():((!_0xefc4af||_0x57b139>_0x5b126b['to']||_0x5f3e7c<_0x5b126b['from']||_0xefc4af(_0x5b126b['from'],_0x5b126b['to'],_0x5b126b['value']))&&(_0xf0d9d7['addInner'](_0x5b126b['from'],_0x5b126b['to'],_0x5b126b['value'])||_0xbc9895['push'](Range$1['create'](_0x5b126b['from'],_0x5b126b['to'],_0x5b126b['value']))),_0x5b126b['next']());return _0xf0d9d7['finishInner'](this['nextLayer']['isEmpty']&&!_0xbc9895['length']?RangeSet['empty']:this['nextLayer']['update']({'add':_0xbc9895,'filter':_0xefc4af,'filterFrom':_0x57b139,'filterTo':_0x5f3e7c}));}['map'](_0x5daf8e){if(_0x5daf8e['empty']||this['isEmpty'])return this;let _0x4442f9=[],_0x49164d=[],_0x2e65ab=-0x1;for(let _0x5bf095=0x0;_0x5bf095<this['chunk']['length'];_0x5bf095++){let _0x413bca=this['chunkPos'][_0x5bf095],_0x591f1a=this['chunk'][_0x5bf095],_0x2b19ba=_0x5daf8e['touchesRange'](_0x413bca,_0x413bca+_0x591f1a['length']);if(!0x1===_0x2b19ba)_0x2e65ab=Math['max'](_0x2e65ab,_0x591f1a['maxPoint']),_0x4442f9['push'](_0x591f1a),_0x49164d['push'](_0x5daf8e['mapPos'](_0x413bca));else{if(!0x0===_0x2b19ba){let {mapped:_0x1c33eb,pos:_0x14625d}=_0x591f1a['map'](_0x413bca,_0x5daf8e);_0x1c33eb&&(_0x2e65ab=Math['max'](_0x2e65ab,_0x1c33eb['maxPoint']),_0x4442f9['push'](_0x1c33eb),_0x49164d['push'](_0x14625d));}}}let _0x237960=this['nextLayer']['map'](_0x5daf8e);return 0x0==_0x4442f9['length']?_0x237960:new RangeSet(_0x49164d,_0x4442f9,_0x237960||RangeSet['empty'],_0x2e65ab);}['between'](_0x4804e5,_0x480f66,_0x34c2cc){if(!this['isEmpty']){for(let _0x5e1d33=0x0;_0x5e1d33<this['chunk']['length'];_0x5e1d33++){let _0x2a3e02=this['chunkPos'][_0x5e1d33],_0x28de05=this['chunk'][_0x5e1d33];if(_0x480f66>=_0x2a3e02&&_0x4804e5<=_0x2a3e02+_0x28de05['length']&&!0x1===_0x28de05['between'](_0x2a3e02,_0x4804e5-_0x2a3e02,_0x480f66-_0x2a3e02,_0x34c2cc))return;}this['nextLayer']['between'](_0x4804e5,_0x480f66,_0x34c2cc);}}['iter'](_0x36e19c=0x0){return HeapCursor['from']([this])['goto'](_0x36e19c);}get['isEmpty'](){return this['nextLayer']==this;}static['iter'](_0x387c65,_0x414a45=0x0){return HeapCursor['from'](_0x387c65)['goto'](_0x414a45);}static['compare'](_0x440ba7,_0x52032b,_0x2b5908,_0x5d6688,_0x1c85f2=-0x1){let _0x53cafe=_0x440ba7['filter'](_0x4dac66=>_0x4dac66['maxPoint']>0x0||!_0x4dac66['isEmpty']&&_0x4dac66['maxPoint']>=_0x1c85f2),_0x544c77=_0x52032b['filter'](_0x512657=>_0x512657['maxPoint']>0x0||!_0x512657['isEmpty']&&_0x512657['maxPoint']>=_0x1c85f2),_0x2ef0be=findSharedChunks(_0x53cafe,_0x544c77,_0x2b5908),_0x487ef0=new SpanCursor(_0x53cafe,_0x2ef0be,_0x1c85f2),_0x4ed324=new SpanCursor(_0x544c77,_0x2ef0be,_0x1c85f2);_0x2b5908['iterGaps']((_0x3d6ee7,_0x1d19d6,_0x545059)=>compare(_0x487ef0,_0x3d6ee7,_0x4ed324,_0x1d19d6,_0x545059,_0x5d6688)),_0x2b5908['empty']&&0x0==_0x2b5908['length']&&compare(_0x487ef0,0x0,_0x4ed324,0x0,0x0,_0x5d6688);}static['eq'](_0x54df07,_0x211c9d,_0x41a08c=0x0,_0xf98e16){null==_0xf98e16&&(_0xf98e16=0x3b9ac9ff);let _0x54cc3e=_0x54df07['filter'](_0x129bf0=>!_0x129bf0['isEmpty']&&_0x211c9d['indexOf'](_0x129bf0)<0x0),_0x37b7a2=_0x211c9d['filter'](_0x1d4fa2=>!_0x1d4fa2['isEmpty']&&_0x54df07['indexOf'](_0x1d4fa2)<0x0);if(_0x54cc3e['length']!=_0x37b7a2['length'])return!0x1;if(!_0x54cc3e['length'])return!0x0;let _0x1d71b4=findSharedChunks(_0x54cc3e,_0x37b7a2),_0x4a2d95=new SpanCursor(_0x54cc3e,_0x1d71b4,0x0)['goto'](_0x41a08c),_0x518520=new SpanCursor(_0x37b7a2,_0x1d71b4,0x0)['goto'](_0x41a08c);for(;;){if(_0x4a2d95['to']!=_0x518520['to']||!sameValues(_0x4a2d95['active'],_0x518520['active'])||_0x4a2d95['point']&&(!_0x518520['point']||!_0x4a2d95['point']['eq'](_0x518520['point'])))return!0x1;if(_0x4a2d95['to']>_0xf98e16)return!0x0;_0x4a2d95['next'](),_0x518520['next']();}}static['spans'](_0x3fec4d,_0x3ac274,_0x98176c,_0x3a2bf9,_0x3a01e5=-0x1){let _0x471eec=new SpanCursor(_0x3fec4d,null,_0x3a01e5)['goto'](_0x3ac274),_0x2ba0d8=_0x3ac274,_0x2385c5=_0x471eec['openStart'];for(;;){let _0x12cf0a=Math['min'](_0x471eec['to'],_0x98176c);if(_0x471eec['point']){let _0x41c669=_0x471eec['activeForPoint'](_0x471eec['to']),_0x1b92ca=_0x471eec['pointFrom']<_0x3ac274?_0x41c669['length']+0x1:_0x471eec['point']['startSide']<0x0?_0x41c669['length']:Math['min'](_0x41c669['length'],_0x2385c5);_0x3a2bf9['point'](_0x2ba0d8,_0x12cf0a,_0x471eec['point'],_0x41c669,_0x1b92ca,_0x471eec['pointRank']),_0x2385c5=Math['min'](_0x471eec['openEnd'](_0x12cf0a),_0x41c669['length']);}else _0x12cf0a>_0x2ba0d8&&(_0x3a2bf9['span'](_0x2ba0d8,_0x12cf0a,_0x471eec['active'],_0x2385c5),_0x2385c5=_0x471eec['openEnd'](_0x12cf0a));if(_0x471eec['to']>_0x98176c)return _0x2385c5+(_0x471eec['point']&&_0x471eec['to']>_0x98176c?0x1:0x0);_0x2ba0d8=_0x471eec['to'],_0x471eec['next']();}}static['of'](_0x39dfea,_0x87271c=!0x1){let _0x4bb8d8=new RangeSetBuilder();for(let _0x4dbec3 of _0x39dfea instanceof Range$1?[_0x39dfea]:_0x87271c?lazySort(_0x39dfea):_0x39dfea)_0x4bb8d8['add'](_0x4dbec3['from'],_0x4dbec3['to'],_0x4dbec3['value']);return _0x4bb8d8['finish']();}static['join'](_0x46b6df){if(!_0x46b6df['length'])return RangeSet['empty'];let _0x12aea5=_0x46b6df[_0x46b6df['length']-0x1];for(let _0x538fd9=_0x46b6df['length']-0x2;_0x538fd9>=0x0;_0x538fd9--)for(let _0x4e82cc=_0x46b6df[_0x538fd9];_0x4e82cc!=RangeSet['empty'];_0x4e82cc=_0x4e82cc['nextLayer'])_0x12aea5=new RangeSet(_0x4e82cc['chunkPos'],_0x4e82cc['chunk'],_0x12aea5,Math['max'](_0x4e82cc['maxPoint'],_0x12aea5['maxPoint']));return _0x12aea5;}}function lazySort(_0x5d16c6){if(_0x5d16c6['length']>0x1)for(let _0x2889e5=_0x5d16c6[0x0],_0x308aa4=0x1;_0x308aa4<_0x5d16c6['length'];_0x308aa4++){let _0x45fa5e=_0x5d16c6[_0x308aa4];if(cmpRange(_0x2889e5,_0x45fa5e)>0x0)return _0x5d16c6['slice']()['sort'](cmpRange);_0x2889e5=_0x45fa5e;}return _0x5d16c6;}RangeSet['empty']=new RangeSet([],[],null,-0x1),RangeSet['empty']['nextLayer']=RangeSet['empty'];class RangeSetBuilder{['finishChunk'](_0x897bbb){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,_0x897bbb&&(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'](_0x4df9fd,_0x7c596e,_0x503756){this['addInner'](_0x4df9fd,_0x7c596e,_0x503756)||(this['nextLayer']||(this['nextLayer']=new RangeSetBuilder()))['add'](_0x4df9fd,_0x7c596e,_0x503756);}['addInner'](_0x1a2dbf,_0x4e22fe,_0x49e706){let _0x2c196d=_0x1a2dbf-this['lastTo']||_0x49e706['startSide']-this['last']['endSide'];if(_0x2c196d<=0x0&&(_0x1a2dbf-this['lastFrom']||_0x49e706['startSide']-this['last']['startSide'])<0x0)throw new Error('Ranges\x20must\x20be\x20added\x20sorted\x20by\x20`from`\x20position\x20and\x20`startSide`');return!(_0x2c196d<0x0)&&(0xfa==this['from']['length']&&this['finishChunk'](!0x0),this['chunkStart']<0x0&&(this['chunkStart']=_0x1a2dbf),this['from']['push'](_0x1a2dbf-this['chunkStart']),this['to']['push'](_0x4e22fe-this['chunkStart']),this['last']=_0x49e706,this['lastFrom']=_0x1a2dbf,this['lastTo']=_0x4e22fe,this['value']['push'](_0x49e706),_0x49e706['point']&&(this['maxPoint']=Math['max'](this['maxPoint'],_0x4e22fe-_0x1a2dbf)),!0x0);}['addChunk'](_0x1d8cdd,_0x2b23fc){if((_0x1d8cdd-this['lastTo']||_0x2b23fc['value'][0x0]['startSide']-this['last']['endSide'])<0x0)return!0x1;this['from']['length']&&this['finishChunk'](!0x0),this['setMaxPoint']=Math['max'](this['setMaxPoint'],_0x2b23fc['maxPoint']),this['chunks']['push'](_0x2b23fc),this['chunkPos']['push'](_0x1d8cdd);let _0x3fa018=_0x2b23fc['value']['length']-0x1;return this['last']=_0x2b23fc['value'][_0x3fa018],this['lastFrom']=_0x2b23fc['from'][_0x3fa018]+_0x1d8cdd,this['lastTo']=_0x2b23fc['to'][_0x3fa018]+_0x1d8cdd,!0x0;}['finish'](){return this['finishInner'](RangeSet['empty']);}['finishInner'](_0x486a45){if(this['from']['length']&&this['finishChunk'](!0x1),0x0==this['chunks']['length'])return _0x486a45;let _0x41a756=RangeSet['create'](this['chunkPos'],this['chunks'],this['nextLayer']?this['nextLayer']['finishInner'](_0x486a45):_0x486a45,this['setMaxPoint']);return this['from']=null,_0x41a756;}}function findSharedChunks(_0x3355f4,_0x4c05ac,_0x5e465e){let _0x540dd9=new Map();for(let _0x4d27cc of _0x3355f4)for(let _0x38488b=0x0;_0x38488b<_0x4d27cc['chunk']['length'];_0x38488b++)_0x4d27cc['chunk'][_0x38488b]['maxPoint']<=0x0&&_0x540dd9['set'](_0x4d27cc['chunk'][_0x38488b],_0x4d27cc['chunkPos'][_0x38488b]);let _0x280163=new Set();for(let _0x2c73d7 of _0x4c05ac)for(let _0x402f59=0x0;_0x402f59<_0x2c73d7['chunk']['length'];_0x402f59++){let _0x4a779c=_0x540dd9['get'](_0x2c73d7['chunk'][_0x402f59]);null==_0x4a779c||(_0x5e465e?_0x5e465e['mapPos'](_0x4a779c):_0x4a779c)!=_0x2c73d7['chunkPos'][_0x402f59]||(null==_0x5e465e?void 0x0:_0x5e465e['touchesRange'](_0x4a779c,_0x4a779c+_0x2c73d7['chunk'][_0x402f59]['length']))||_0x280163['add'](_0x2c73d7['chunk'][_0x402f59]);}return _0x280163;}class LayerCursor{constructor(_0x1b963f,_0x2d9f2f,_0x120fd9,_0x8e5a23=0x0){this['layer']=_0x1b963f,this['skip']=_0x2d9f2f,this['minPoint']=_0x120fd9,this['rank']=_0x8e5a23;}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}get['endSide'](){return this['value']?this['value']['endSide']:0x0;}['goto'](_0x5e53a1,_0xc3cf24=-0x3b9aca00){return this['chunkIndex']=this['rangeIndex']=0x0,this['gotoInner'](_0x5e53a1,_0xc3cf24,!0x1),this;}['gotoInner'](_0x228a3c,_0xd2c3b0,_0x5e8ee6){for(;this['chunkIndex']<this['layer']['chunk']['length'];){let _0x4b63a4=this['layer']['chunk'][this['chunkIndex']];if(!(this['skip']&&this['skip']['has'](_0x4b63a4)||this['layer']['chunkEnd'](this['chunkIndex'])<_0x228a3c||_0x4b63a4['maxPoint']<this['minPoint']))break;this['chunkIndex']++,_0x5e8ee6=!0x1;}if(this['chunkIndex']<this['layer']['chunk']['length']){let _0x5351b7=this['layer']['chunk'][this['chunkIndex']]['findIndex'](_0x228a3c-this['layer']['chunkPos'][this['chunkIndex']],_0xd2c3b0,!0x0);(!_0x5e8ee6||this['rangeIndex']<_0x5351b7)&&this['setRangeIndex'](_0x5351b7);}this['next']();}['forward'](_0x57944c,_0x407345){(this['to']-_0x57944c||this['endSide']-_0x407345)<0x0&&this['gotoInner'](_0x57944c,_0x407345,!0x0);}['next'](){for(;;){if(this['chunkIndex']==this['layer']['chunk']['length']){this['from']=this['to']=0x3b9aca00,this['value']=null;break;}{let _0x5a771e=this['layer']['chunkPos'][this['chunkIndex']],_0xb461e7=this['layer']['chunk'][this['chunkIndex']],_0x27ffa3=_0x5a771e+_0xb461e7['from'][this['rangeIndex']];if(this['from']=_0x27ffa3,this['to']=_0x5a771e+_0xb461e7['to'][this['rangeIndex']],this['value']=_0xb461e7['value'][this['rangeIndex']],this['setRangeIndex'](this['rangeIndex']+0x1),this['minPoint']<0x0||this['value']['point']&&this['to']-this['from']>=this['minPoint'])break;}}}['setRangeIndex'](_0x585b5d){if(_0x585b5d==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']=_0x585b5d;}['nextChunk'](){this['chunkIndex']++,this['rangeIndex']=0x0,this['next']();}['compare'](_0x348e29){return this['from']-_0x348e29['from']||this['startSide']-_0x348e29['startSide']||this['rank']-_0x348e29['rank']||this['to']-_0x348e29['to']||this['endSide']-_0x348e29['endSide'];}}class HeapCursor{constructor(_0x496319){this['heap']=_0x496319;}static['from'](_0x4fe10a,_0x404529=null,_0x1f0a02=-0x1){let _0x5692f1=[];for(let _0x11f22d=0x0;_0x11f22d<_0x4fe10a['length'];_0x11f22d++)for(let _0x3c5fe6=_0x4fe10a[_0x11f22d];!_0x3c5fe6['isEmpty'];_0x3c5fe6=_0x3c5fe6['nextLayer'])_0x3c5fe6['maxPoint']>=_0x1f0a02&&_0x5692f1['push'](new LayerCursor(_0x3c5fe6,_0x404529,_0x1f0a02,_0x11f22d));return 0x1==_0x5692f1['length']?_0x5692f1[0x0]:new HeapCursor(_0x5692f1);}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}['goto'](_0x2599bd,_0x243783=-0x3b9aca00){for(let _0x489dad of this['heap'])_0x489dad['goto'](_0x2599bd,_0x243783);for(let _0x23d4d5=this['heap']['length']>>0x1;_0x23d4d5>=0x0;_0x23d4d5--)heapBubble(this['heap'],_0x23d4d5);return this['next'](),this;}['forward'](_0x4f6957,_0x536a0b){for(let _0x4fe89e of this['heap'])_0x4fe89e['forward'](_0x4f6957,_0x536a0b);for(let _0x2c5400=this['heap']['length']>>0x1;_0x2c5400>=0x0;_0x2c5400--)heapBubble(this['heap'],_0x2c5400);(this['to']-_0x4f6957||this['value']['endSide']-_0x536a0b)<0x0&&this['next']();}['next'](){if(0x0==this['heap']['length'])this['from']=this['to']=0x3b9aca00,this['value']=null,this['rank']=-0x1;else{let _0x15ed34=this['heap'][0x0];this['from']=_0x15ed34['from'],this['to']=_0x15ed34['to'],this['value']=_0x15ed34['value'],this['rank']=_0x15ed34['rank'],_0x15ed34['value']&&_0x15ed34['next'](),heapBubble(this['heap'],0x0);}}}function heapBubble(_0x46b4a4,_0x944dca){for(let _0x5b831d=_0x46b4a4[_0x944dca];;){let _0x5dd6f6=0x1+(_0x944dca<<0x1);if(_0x5dd6f6>=_0x46b4a4['length'])break;let _0x54ac61=_0x46b4a4[_0x5dd6f6];if(_0x5dd6f6+0x1<_0x46b4a4['length']&&_0x54ac61['compare'](_0x46b4a4[_0x5dd6f6+0x1])>=0x0&&(_0x54ac61=_0x46b4a4[_0x5dd6f6+0x1],_0x5dd6f6++),_0x5b831d['compare'](_0x54ac61)<0x0)break;_0x46b4a4[_0x5dd6f6]=_0x5b831d,_0x46b4a4[_0x944dca]=_0x54ac61,_0x944dca=_0x5dd6f6;}}class SpanCursor{constructor(_0x370cb2,_0xda8ba0,_0x123dbb){this['minPoint']=_0x123dbb,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'](_0x370cb2,_0xda8ba0,_0x123dbb);}['goto'](_0x6b3a52,_0x24a3e1=-0x3b9aca00){return this['cursor']['goto'](_0x6b3a52,_0x24a3e1),this['active']['length']=this['activeTo']['length']=this['activeRank']['length']=0x0,this['minActive']=-0x1,this['to']=_0x6b3a52,this['endSide']=_0x24a3e1,this['openStart']=-0x1,this['next'](),this;}['forward'](_0x1bd03e,_0x3f1b15){for(;this['minActive']>-0x1&&(this['activeTo'][this['minActive']]-_0x1bd03e||this['active'][this['minActive']]['endSide']-_0x3f1b15)<0x0;)this['removeActive'](this['minActive']);this['cursor']['forward'](_0x1bd03e,_0x3f1b15);}['removeActive'](_0x322db7){remove(this['active'],_0x322db7),remove(this['activeTo'],_0x322db7),remove(this['activeRank'],_0x322db7),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['addActive'](_0x58d5be){let _0x35dbe8=0x0,{value:_0x3c9b80,to:_0x46c2d8,rank:_0x33a059}=this['cursor'];for(;_0x35dbe8<this['activeRank']['length']&&(_0x33a059-this['activeRank'][_0x35dbe8]||_0x46c2d8-this['activeTo'][_0x35dbe8])>0x0;)_0x35dbe8++;insert(this['active'],_0x35dbe8,_0x3c9b80),insert(this['activeTo'],_0x35dbe8,_0x46c2d8),insert(this['activeRank'],_0x35dbe8,_0x33a059),_0x58d5be&&insert(_0x58d5be,_0x35dbe8,this['cursor']['from']),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['next'](){let _0x35c8b0=this['to'],_0x329ca0=this['point'];this['point']=null;let _0x39e545=this['openStart']<0x0?[]:null;for(;;){let _0x8e0855=this['minActive'];if(_0x8e0855>-0x1&&(this['activeTo'][_0x8e0855]-this['cursor']['from']||this['active'][_0x8e0855]['endSide']-this['cursor']['startSide'])<0x0){if(this['activeTo'][_0x8e0855]>_0x35c8b0){this['to']=this['activeTo'][_0x8e0855],this['endSide']=this['active'][_0x8e0855]['endSide'];break;}this['removeActive'](_0x8e0855),_0x39e545&&remove(_0x39e545,_0x8e0855);}else{if(!this['cursor']['value']){this['to']=this['endSide']=0x3b9aca00;break;}if(this['cursor']['from']>_0x35c8b0){this['to']=this['cursor']['from'],this['endSide']=this['cursor']['startSide'];break;}{let _0x36c5a1=this['cursor']['value'];if(_0x36c5a1['point']){if(!(_0x329ca0&&this['cursor']['to']==this['to']&&this['cursor']['from']<this['cursor']['to'])){this['point']=_0x36c5a1,this['pointFrom']=this['cursor']['from'],this['pointRank']=this['cursor']['rank'],this['to']=this['cursor']['to'],this['endSide']=_0x36c5a1['endSide'],this['cursor']['next'](),this['forward'](this['to'],this['endSide']);break;}this['cursor']['next']();}else this['addActive'](_0x39e545),this['cursor']['next']();}}}if(_0x39e545){this['openStart']=0x0;for(let _0x294642=_0x39e545['length']-0x1;_0x294642>=0x0&&_0x39e545[_0x294642]<_0x35c8b0;_0x294642--)this['openStart']++;}}['activeForPoint'](_0xdc898e){if(!this['active']['length'])return this['active'];let _0x384e0=[];for(let _0x455d36=this['active']['length']-0x1;_0x455d36>=0x0&&!(this['activeRank'][_0x455d36]<this['pointRank']);_0x455d36--)(this['activeTo'][_0x455d36]>_0xdc898e||this['activeTo'][_0x455d36]==_0xdc898e&&this['active'][_0x455d36]['endSide']>=this['point']['endSide'])&&_0x384e0['push'](this['active'][_0x455d36]);return _0x384e0['reverse']();}['openEnd'](_0x50d360){let _0x46f893=0x0;for(let _0x1d282f=this['activeTo']['length']-0x1;_0x1d282f>=0x0&&this['activeTo'][_0x1d282f]>_0x50d360;_0x1d282f--)_0x46f893++;return _0x46f893;}}function compare(_0x4815f5,_0x3d1a70,_0x555d0e,_0x40ad0f,_0x12de0d,_0x2f7293){_0x4815f5['goto'](_0x3d1a70),_0x555d0e['goto'](_0x40ad0f);let _0x223da6=_0x40ad0f+_0x12de0d,_0x38c9dc=_0x40ad0f,_0x408e8c=_0x40ad0f-_0x3d1a70;for(;;){let _0x574abf=_0x4815f5['to']+_0x408e8c-_0x555d0e['to'],_0x2397a2=_0x574abf||_0x4815f5['endSide']-_0x555d0e['endSide'],_0x5459b9=_0x2397a2<0x0?_0x4815f5['to']+_0x408e8c:_0x555d0e['to'],_0x1bd969=Math['min'](_0x5459b9,_0x223da6);if(_0x4815f5['point']||_0x555d0e['point']?_0x4815f5['point']&&_0x555d0e['point']&&(_0x4815f5['point']==_0x555d0e['point']||_0x4815f5['point']['eq'](_0x555d0e['point']))&&sameValues(_0x4815f5['activeForPoint'](_0x4815f5['to']),_0x555d0e['activeForPoint'](_0x555d0e['to']))||_0x2f7293['comparePoint'](_0x38c9dc,_0x1bd969,_0x4815f5['point'],_0x555d0e['point']):_0x1bd969>_0x38c9dc&&!sameValues(_0x4815f5['active'],_0x555d0e['active'])&&_0x2f7293['compareRange'](_0x38c9dc,_0x1bd969,_0x4815f5['active'],_0x555d0e['active']),_0x5459b9>_0x223da6)break;(_0x574abf||_0x4815f5['openEnd']!=_0x555d0e['openEnd'])&&_0x2f7293['boundChange']&&_0x2f7293['boundChange'](_0x5459b9),_0x38c9dc=_0x5459b9,_0x2397a2<=0x0&&_0x4815f5['next'](),_0x2397a2>=0x0&&_0x555d0e['next']();}}function sameValues(_0x39f87f,_0x6431fa){if(_0x39f87f['length']!=_0x6431fa['length'])return!0x1;for(let _0x426b7a=0x0;_0x426b7a<_0x39f87f['length'];_0x426b7a++)if(_0x39f87f[_0x426b7a]!=_0x6431fa[_0x426b7a]&&!_0x39f87f[_0x426b7a]['eq'](_0x6431fa[_0x426b7a]))return!0x1;return!0x0;}function remove(_0x46f9ec,_0x6060f1){for(let _0x1e59f6=_0x6060f1,_0x43174a=_0x46f9ec['length']-0x1;_0x1e59f6<_0x43174a;_0x1e59f6++)_0x46f9ec[_0x1e59f6]=_0x46f9ec[_0x1e59f6+0x1];_0x46f9ec['pop']();}function insert(_0x38c4dc,_0x334bbb,_0x5cd4fd){for(let _0x241c80=_0x38c4dc['length']-0x1;_0x241c80>=_0x334bbb;_0x241c80--)_0x38c4dc[_0x241c80+0x1]=_0x38c4dc[_0x241c80];_0x38c4dc[_0x334bbb]=_0x5cd4fd;}function findMinIndex(_0x2d83e2,_0x34c8c2){let _0x44ec94=-0x1,_0x447609=0x3b9aca00;for(let _0xa2096c=0x0;_0xa2096c<_0x34c8c2['length'];_0xa2096c++)(_0x34c8c2[_0xa2096c]-_0x447609||_0x2d83e2[_0xa2096c]['endSide']-_0x2d83e2[_0x44ec94]['endSide'])<0x0&&(_0x44ec94=_0xa2096c,_0x447609=_0x34c8c2[_0xa2096c]);return _0x44ec94;}function countColumn(_0x52f889,_0x3a7ff1,_0x2f8198=_0x52f889['length']){let _0x102ecc=0x0;for(let _0x260a74=0x0;_0x260a74<_0x2f8198&&_0x260a74<_0x52f889['length'];)0x9==_0x52f889['charCodeAt'](_0x260a74)?(_0x102ecc+=_0x3a7ff1-_0x102ecc%_0x3a7ff1,_0x260a74++):(_0x102ecc++,_0x260a74=findClusterBreak(_0x52f889,_0x260a74));return _0x102ecc;}function findColumn(_0x10fbba,_0x22a0e0,_0x13faa3,_0x53f41a){for(let _0x1cebca=0x0,_0x3a267d=0x0;;){if(_0x3a267d>=_0x22a0e0)return _0x1cebca;if(_0x1cebca==_0x10fbba['length'])break;_0x3a267d+=0x9==_0x10fbba['charCodeAt'](_0x1cebca)?_0x13faa3-_0x3a267d%_0x13faa3:0x1,_0x1cebca=findClusterBreak(_0x10fbba,_0x1cebca);}return!0x0===_0x53f41a?-0x1:_0x10fbba['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(_0x13ac80,_0x39d466){this['rules']=[];let {finish:_0x13f1aa}=_0x39d466||{};function _0x506f7a(_0x5f244a){return/^@/['test'](_0x5f244a)?[_0x5f244a]:_0x5f244a['split'](/,\s*/);}function _0x1941af(_0x75c2f6,_0x58f533,_0xc16b5a,_0x3734ea){let _0x4877b9=[],_0x3c07f4=/^@(\w+)\b/['exec'](_0x75c2f6[0x0]),_0x322b11=_0x3c07f4&&'keyframes'==_0x3c07f4[0x1];if(_0x3c07f4&&null==_0x58f533)return _0xc16b5a['push'](_0x75c2f6[0x0]+';');for(let _0x29dc30 in _0x58f533){let _0x235b7b=_0x58f533[_0x29dc30];if(/&/['test'](_0x29dc30))_0x1941af(_0x29dc30['split'](/,\s*/)['map'](_0x4fee69=>_0x75c2f6['map'](_0x24982f=>_0x4fee69['replace'](/&/,_0x24982f)))['reduce']((_0x211aa2,_0x33f274)=>_0x211aa2['concat'](_0x33f274)),_0x235b7b,_0xc16b5a);else{if(_0x235b7b&&'object'==typeof _0x235b7b){if(!_0x3c07f4)throw new RangeError('The\x20value\x20of\x20a\x20property\x20('+_0x29dc30+')\x20should\x20be\x20a\x20primitive\x20value.');_0x1941af(_0x506f7a(_0x29dc30),_0x235b7b,_0x4877b9,_0x322b11);}else null!=_0x235b7b&&_0x4877b9['push'](_0x29dc30['replace'](/_.*/,'')['replace'](/[A-Z]/g,_0x4cddc7=>'-'+_0x4cddc7['toLowerCase']())+':\x20'+_0x235b7b+';');}}(_0x4877b9['length']||_0x322b11)&&_0xc16b5a['push']((!_0x13f1aa||_0x3c07f4||_0x3734ea?_0x75c2f6:_0x75c2f6['map'](_0x13f1aa))['join'](',\x20')+'\x20{'+_0x4877b9['join']('\x20')+'}');}for(let _0x363d64 in _0x13ac80)_0x1941af(_0x506f7a(_0x363d64),_0x13ac80[_0x363d64],this['rules']);}['getRules'](){return this['rules']['join']('\x0a');}static['newName'](){let _0x4739eb=top[COUNT]||0x1;return top[COUNT]=_0x4739eb+0x1,C+_0x4739eb['toString'](0x24);}static['mount'](_0x27319a,_0x5e1796,_0x46f801){let _0xda8950=_0x27319a[SET],_0x4af5f5=_0x46f801&&_0x46f801['nonce'];_0xda8950?_0x4af5f5&&_0xda8950['setNonce'](_0x4af5f5):_0xda8950=new StyleSet(_0x27319a,_0x4af5f5),_0xda8950['mount'](Array['isArray'](_0x5e1796)?_0x5e1796:[_0x5e1796],_0x27319a);}}let adoptedSet=new Map();class StyleSet{constructor(_0x111ae2,_0x317bcb){let _0x27cd92=_0x111ae2['ownerDocument']||_0x111ae2,_0x12851e=_0x27cd92['defaultView'];if(!_0x111ae2['head']&&_0x111ae2['adoptedStyleSheets']&&_0x12851e['CSSStyleSheet']){let _0xbf2e69=adoptedSet['get'](_0x27cd92);if(_0xbf2e69)return _0x111ae2[SET]=_0xbf2e69;this['sheet']=new _0x12851e['CSSStyleSheet'](),adoptedSet['set'](_0x27cd92,this);}else this['styleTag']=_0x27cd92['createElement']('style'),_0x317bcb&&this['styleTag']['setAttribute']('nonce',_0x317bcb);this['modules']=[],_0x111ae2[SET]=this;}['mount'](_0x15d984,_0x24a2bf){let _0x54e542=this['sheet'],_0x8d5f10=0x0,_0x5be9e4=0x0;for(let _0x61305e=0x0;_0x61305e<_0x15d984['length'];_0x61305e++){let _0x87c09=_0x15d984[_0x61305e],_0x58adf0=this['modules']['indexOf'](_0x87c09);if(_0x58adf0<_0x5be9e4&&_0x58adf0>-0x1&&(this['modules']['splice'](_0x58adf0,0x1),_0x5be9e4--,_0x58adf0=-0x1),-0x1==_0x58adf0){if(this['modules']['splice'](_0x5be9e4++,0x0,_0x87c09),_0x54e542){for(let _0x461659=0x0;_0x461659<_0x87c09['rules']['length'];_0x461659++)_0x54e542['insertRule'](_0x87c09['rules'][_0x461659],_0x8d5f10++);}}else{for(;_0x5be9e4<_0x58adf0;)_0x8d5f10+=this['modules'][_0x5be9e4++]['rules']['length'];_0x8d5f10+=_0x87c09['rules']['length'],_0x5be9e4++;}}if(_0x54e542)_0x24a2bf['adoptedStyleSheets']['indexOf'](this['sheet'])<0x0&&(_0x24a2bf['adoptedStyleSheets']=[this['sheet'],..._0x24a2bf['adoptedStyleSheets']]);else{let _0x1f34c5='';for(let _0xfa1536=0x0;_0xfa1536<this['modules']['length'];_0xfa1536++)_0x1f34c5+=this['modules'][_0xfa1536]['getRules']()+'\x0a';this['styleTag']['textContent']=_0x1f34c5;let _0x33a454=_0x24a2bf['head']||_0x24a2bf;this['styleTag']['parentNode']!=_0x33a454&&_0x33a454['insertBefore'](this['styleTag'],_0x33a454['firstChild']);}}['setNonce'](_0x4bf4fc){this['styleTag']&&this['styleTag']['getAttribute']('nonce')!=_0x4bf4fc&&this['styleTag']['setAttribute']('nonce',_0x4bf4fc);}}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(_0x4b52af){var _0x47fa61=!(mac&&_0x4b52af['metaKey']&&_0x4b52af['shiftKey']&&!_0x4b52af['ctrlKey']&&!_0x4b52af['altKey']||ie$1&&_0x4b52af['shiftKey']&&_0x4b52af['key']&&0x1==_0x4b52af['key']['length']||'Unidentified'==_0x4b52af['key'])&&_0x4b52af['key']||(_0x4b52af['shiftKey']?shift:base$2)[_0x4b52af['keyCode']]||_0x4b52af['key']||'Unidentified';return'Esc'==_0x47fa61&&(_0x47fa61='Escape'),'Del'==_0x47fa61&&(_0x47fa61='Delete'),'Left'==_0x47fa61&&(_0x47fa61='ArrowLeft'),'Up'==_0x47fa61&&(_0x47fa61='ArrowUp'),'Right'==_0x47fa61&&(_0x47fa61='ArrowRight'),'Down'==_0x47fa61&&(_0x47fa61='ArrowDown'),_0x47fa61;}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(_0x218d6c){let _0x412364;return _0x412364=0xb==_0x218d6c['nodeType']?_0x218d6c['getSelection']?_0x218d6c:_0x218d6c['ownerDocument']:_0x218d6c,_0x412364['getSelection']();}function contains(_0x3a2605,_0x33385e){return!!_0x33385e&&(_0x3a2605==_0x33385e||_0x3a2605['contains'](0x1!=_0x33385e['nodeType']?_0x33385e['parentNode']:_0x33385e));}function hasSelection(_0x3d3dda,_0x23e6ae){if(!_0x23e6ae['anchorNode'])return!0x1;try{return contains(_0x3d3dda,_0x23e6ae['anchorNode']);}catch(_0xd7f810){return!0x1;}}function clientRectsFor(_0x353277){return 0x3==_0x353277['nodeType']?textRange(_0x353277,0x0,_0x353277['nodeValue']['length'])['getClientRects']():0x1==_0x353277['nodeType']?_0x353277['getClientRects']():[];}function isEquivalentPosition(_0x342ce5,_0x52ebdb,_0x983129,_0x3c534f){return!!_0x983129&&(scanFor(_0x342ce5,_0x52ebdb,_0x983129,_0x3c534f,-0x1)||scanFor(_0x342ce5,_0x52ebdb,_0x983129,_0x3c534f,0x1));}function domIndex(_0x2acc31){for(var _0x25ac46=0x0;;_0x25ac46++)if(!(_0x2acc31=_0x2acc31['previousSibling']))return _0x25ac46;}function isBlockElement(_0x4677b5){return 0x1==_0x4677b5['nodeType']&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/['test'](_0x4677b5['nodeName']);}function scanFor(_0x4a6bc2,_0x5b0eac,_0x15e8de,_0x379758,_0x4970f5){for(;;){if(_0x4a6bc2==_0x15e8de&&_0x5b0eac==_0x379758)return!0x0;if(_0x5b0eac==(_0x4970f5<0x0?0x0:maxOffset(_0x4a6bc2))){if('DIV'==_0x4a6bc2['nodeName'])return!0x1;let _0x1d43d5=_0x4a6bc2['parentNode'];if(!_0x1d43d5||0x1!=_0x1d43d5['nodeType'])return!0x1;_0x5b0eac=domIndex(_0x4a6bc2)+(_0x4970f5<0x0?0x0:0x1),_0x4a6bc2=_0x1d43d5;}else{if(0x1!=_0x4a6bc2['nodeType'])return!0x1;if(0x1==(_0x4a6bc2=_0x4a6bc2['childNodes'][_0x5b0eac+(_0x4970f5<0x0?-0x1:0x0)])['nodeType']&&'false'==_0x4a6bc2['contentEditable'])return!0x1;_0x5b0eac=_0x4970f5<0x0?maxOffset(_0x4a6bc2):0x0;}}}function maxOffset(_0x131527){return 0x3==_0x131527['nodeType']?_0x131527['nodeValue']['length']:_0x131527['childNodes']['length'];}function flattenRect(_0x42d7d0,_0x3c3ecd){let _0x109c0f=_0x3c3ecd?_0x42d7d0['left']:_0x42d7d0['right'];return{'left':_0x109c0f,'right':_0x109c0f,'top':_0x42d7d0['top'],'bottom':_0x42d7d0['bottom']};}function windowRect(_0x35a6a7){let _0x1d4e51=_0x35a6a7['visualViewport'];return _0x1d4e51?{'left':0x0,'right':_0x1d4e51['width'],'top':0x0,'bottom':_0x1d4e51['height']}:{'left':0x0,'right':_0x35a6a7['innerWidth'],'top':0x0,'bottom':_0x35a6a7['innerHeight']};}function getScale(_0x4fb7de,_0x231c02){let _0x5beb7e=_0x231c02['width']/_0x4fb7de['offsetWidth'],_0x2f3552=_0x231c02['height']/_0x4fb7de['offsetHeight'];return(_0x5beb7e>0.995&&_0x5beb7e<1.005||!isFinite(_0x5beb7e)||Math['abs'](_0x231c02['width']-_0x4fb7de['offsetWidth'])<0x1)&&(_0x5beb7e=0x1),(_0x2f3552>0.995&&_0x2f3552<1.005||!isFinite(_0x2f3552)||Math['abs'](_0x231c02['height']-_0x4fb7de['offsetHeight'])<0x1)&&(_0x2f3552=0x1),{'scaleX':_0x5beb7e,'scaleY':_0x2f3552};}function scrollRectIntoView(_0x14b4c0,_0x825fa1,_0xbe7b38,_0x32889c,_0x4f1f3d,_0x2b6f09,_0xdff585,_0x5e0dfe){let _0x474f91=_0x14b4c0['ownerDocument'],_0x8e6040=_0x474f91['defaultView']||window;for(let _0x322af6=_0x14b4c0,_0x4d2582=!0x1;_0x322af6&&!_0x4d2582;)if(0x1==_0x322af6['nodeType']){let _0x280456,_0x5a71cf=_0x322af6==_0x474f91['body'],_0x22574e=0x1,_0x1db0f8=0x1;if(_0x5a71cf)_0x280456=windowRect(_0x8e6040);else{if(/^(fixed|sticky)$/['test'](getComputedStyle(_0x322af6)['position'])&&(_0x4d2582=!0x0),_0x322af6['scrollHeight']<=_0x322af6['clientHeight']&&_0x322af6['scrollWidth']<=_0x322af6['clientWidth']){_0x322af6=_0x322af6['assignedSlot']||_0x322af6['parentNode'];continue;}let _0x515d53=_0x322af6['getBoundingClientRect']();({scaleX:_0x22574e,scaleY:_0x1db0f8}=getScale(_0x322af6,_0x515d53),_0x280456={'left':_0x515d53['left'],'right':_0x515d53['left']+_0x322af6['clientWidth']*_0x22574e,'top':_0x515d53['top'],'bottom':_0x515d53['top']+_0x322af6['clientHeight']*_0x1db0f8});}let _0x13f61e=0x0,_0x28fb1b=0x0;if('nearest'==_0x4f1f3d)_0x825fa1['top']<_0x280456['top']?(_0x28fb1b=_0x825fa1['top']-(_0x280456['top']+_0xdff585),_0xbe7b38>0x0&&_0x825fa1['bottom']>_0x280456['bottom']+_0x28fb1b&&(_0x28fb1b=_0x825fa1['bottom']-_0x280456['bottom']+_0xdff585)):_0x825fa1['bottom']>_0x280456['bottom']&&(_0x28fb1b=_0x825fa1['bottom']-_0x280456['bottom']+_0xdff585,_0xbe7b38<0x0&&_0x825fa1['top']-_0x28fb1b<_0x280456['top']&&(_0x28fb1b=_0x825fa1['top']-(_0x280456['top']+_0xdff585)));else{let _0x34bf44=_0x825fa1['bottom']-_0x825fa1['top'],_0x34907b=_0x280456['bottom']-_0x280456['top'];_0x28fb1b=('center'==_0x4f1f3d&&_0x34bf44<=_0x34907b?_0x825fa1['top']+_0x34bf44/0x2-_0x34907b/0x2:'start'==_0x4f1f3d||'center'==_0x4f1f3d&&_0xbe7b38<0x0?_0x825fa1['top']-_0xdff585:_0x825fa1['bottom']-_0x34907b+_0xdff585)-_0x280456['top'];}if('nearest'==_0x32889c)_0x825fa1['left']<_0x280456['left']?(_0x13f61e=_0x825fa1['left']-(_0x280456['left']+_0x2b6f09),_0xbe7b38>0x0&&_0x825fa1['right']>_0x280456['right']+_0x13f61e&&(_0x13f61e=_0x825fa1['right']-_0x280456['right']+_0x2b6f09)):_0x825fa1['right']>_0x280456['right']&&(_0x13f61e=_0x825fa1['right']-_0x280456['right']+_0x2b6f09,_0xbe7b38<0x0&&_0x825fa1['left']<_0x280456['left']+_0x13f61e&&(_0x13f61e=_0x825fa1['left']-(_0x280456['left']+_0x2b6f09)));else _0x13f61e=('center'==_0x32889c?_0x825fa1['left']+(_0x825fa1['right']-_0x825fa1['left'])/0x2-(_0x280456['right']-_0x280456['left'])/0x2:'start'==_0x32889c==_0x5e0dfe?_0x825fa1['left']-_0x2b6f09:_0x825fa1['right']-(_0x280456['right']-_0x280456['left'])+_0x2b6f09)-_0x280456['left'];if(_0x13f61e||_0x28fb1b){if(_0x5a71cf)_0x8e6040['scrollBy'](_0x13f61e,_0x28fb1b);else{let _0xea0078=0x0,_0x1ea41a=0x0;if(_0x28fb1b){let _0x15b1e7=_0x322af6['scrollTop'];_0x322af6['scrollTop']+=_0x28fb1b/_0x1db0f8,_0x1ea41a=(_0x322af6['scrollTop']-_0x15b1e7)*_0x1db0f8;}if(_0x13f61e){let _0x4db97b=_0x322af6['scrollLeft'];_0x322af6['scrollLeft']+=_0x13f61e/_0x22574e,_0xea0078=(_0x322af6['scrollLeft']-_0x4db97b)*_0x22574e;}_0x825fa1={'left':_0x825fa1['left']-_0xea0078,'top':_0x825fa1['top']-_0x1ea41a,'right':_0x825fa1['right']-_0xea0078,'bottom':_0x825fa1['bottom']-_0x1ea41a},_0xea0078&&Math['abs'](_0xea0078-_0x13f61e)<0x1&&(_0x32889c='nearest'),_0x1ea41a&&Math['abs'](_0x1ea41a-_0x28fb1b)<0x1&&(_0x4f1f3d='nearest');}}if(_0x5a71cf)break;(_0x825fa1['top']<_0x280456['top']||_0x825fa1['bottom']>_0x280456['bottom']||_0x825fa1['left']<_0x280456['left']||_0x825fa1['right']>_0x280456['right'])&&(_0x825fa1={'left':Math['max'](_0x825fa1['left'],_0x280456['left']),'right':Math['min'](_0x825fa1['right'],_0x280456['right']),'top':Math['max'](_0x825fa1['top'],_0x280456['top']),'bottom':Math['min'](_0x825fa1['bottom'],_0x280456['bottom'])}),_0x322af6=_0x322af6['assignedSlot']||_0x322af6['parentNode'];}else{if(0xb!=_0x322af6['nodeType'])break;_0x322af6=_0x322af6['host'];}}function scrollableParents(_0x5315ae){let _0x96dc8d,_0x319cd6,_0x4cba8c=_0x5315ae['ownerDocument'];for(let _0x31841a=_0x5315ae['parentNode'];_0x31841a&&!(_0x31841a==_0x4cba8c['body']||_0x96dc8d&&_0x319cd6);)if(0x1==_0x31841a['nodeType'])!_0x319cd6&&_0x31841a['scrollHeight']>_0x31841a['clientHeight']&&(_0x319cd6=_0x31841a),!_0x96dc8d&&_0x31841a['scrollWidth']>_0x31841a['clientWidth']&&(_0x96dc8d=_0x31841a),_0x31841a=_0x31841a['assignedSlot']||_0x31841a['parentNode'];else{if(0xb!=_0x31841a['nodeType'])break;_0x31841a=_0x31841a['host'];}return{'x':_0x96dc8d,'y':_0x319cd6};}class DOMSelectionState{constructor(){this['anchorNode']=null,this['anchorOffset']=0x0,this['focusNode']=null,this['focusOffset']=0x0;}['eq'](_0x31bf2a){return this['anchorNode']==_0x31bf2a['anchorNode']&&this['anchorOffset']==_0x31bf2a['anchorOffset']&&this['focusNode']==_0x31bf2a['focusNode']&&this['focusOffset']==_0x31bf2a['focusOffset'];}['setRange'](_0x10bde4){let {anchorNode:_0x54913f,focusNode:_0xd07368}=_0x10bde4;this['set'](_0x54913f,Math['min'](_0x10bde4['anchorOffset'],_0x54913f?maxOffset(_0x54913f):0x0),_0xd07368,Math['min'](_0x10bde4['focusOffset'],_0xd07368?maxOffset(_0xd07368):0x0));}['set'](_0x4ba9cd,_0x4f1b63,_0x412c69,_0x2a7f67){this['anchorNode']=_0x4ba9cd,this['anchorOffset']=_0x4f1b63,this['focusNode']=_0x412c69,this['focusOffset']=_0x2a7f67;}}let preventScrollSupported=null,scratchRange;function focusPreventScroll(_0x33855e){if(_0x33855e['setActive'])return _0x33855e['setActive']();if(preventScrollSupported)return _0x33855e['focus'](preventScrollSupported);let _0x6bae93=[];for(let _0x4dc5b5=_0x33855e;_0x4dc5b5&&(_0x6bae93['push'](_0x4dc5b5,_0x4dc5b5['scrollTop'],_0x4dc5b5['scrollLeft']),_0x4dc5b5!=_0x4dc5b5['ownerDocument']);_0x4dc5b5=_0x4dc5b5['parentNode']);if(_0x33855e['focus'](null==preventScrollSupported?{get 'preventScroll'(){return preventScrollSupported={'preventScroll':!0x0},!0x0;}}:void 0x0),!preventScrollSupported){preventScrollSupported=!0x1;for(let _0x4ebc27=0x0;_0x4ebc27<_0x6bae93['length'];){let _0xfb7d4f=_0x6bae93[_0x4ebc27++],_0x3a9bd0=_0x6bae93[_0x4ebc27++],_0x309cc0=_0x6bae93[_0x4ebc27++];_0xfb7d4f['scrollTop']!=_0x3a9bd0&&(_0xfb7d4f['scrollTop']=_0x3a9bd0),_0xfb7d4f['scrollLeft']!=_0x309cc0&&(_0xfb7d4f['scrollLeft']=_0x309cc0);}}}function textRange(_0x48a75b,_0x4215bd,_0x546636=_0x4215bd){let _0x4a2249=scratchRange||(scratchRange=document['createRange']());return _0x4a2249['setEnd'](_0x48a75b,_0x546636),_0x4a2249['setStart'](_0x48a75b,_0x4215bd),_0x4a2249;}function dispatchKey(_0x3c7a71,_0x5126e6,_0x206ac2,_0x38ff28){let _0x1a7657={'key':_0x5126e6,'code':_0x5126e6,'keyCode':_0x206ac2,'which':_0x206ac2,'cancelable':!0x0};_0x38ff28&&({altKey:_0x1a7657['altKey'],ctrlKey:_0x1a7657['ctrlKey'],shiftKey:_0x1a7657['shiftKey'],metaKey:_0x1a7657['metaKey']}=_0x38ff28);let _0x2c7d92=new KeyboardEvent('keydown',_0x1a7657);_0x2c7d92['synthetic']=!0x0,_0x3c7a71['dispatchEvent'](_0x2c7d92);let _0x2d7cbd=new KeyboardEvent('keyup',_0x1a7657);return _0x2d7cbd['synthetic']=!0x0,_0x3c7a71['dispatchEvent'](_0x2d7cbd),_0x2c7d92['defaultPrevented']||_0x2d7cbd['defaultPrevented'];}function getRoot(_0x2cfd7f){for(;_0x2cfd7f;){if(_0x2cfd7f&&(0x9==_0x2cfd7f['nodeType']||0xb==_0x2cfd7f['nodeType']&&_0x2cfd7f['host']))return _0x2cfd7f;_0x2cfd7f=_0x2cfd7f['assignedSlot']||_0x2cfd7f['parentNode'];}return null;}function clearAttributes(_0x5001ea){for(;_0x5001ea['attributes']['length'];)_0x5001ea['removeAttributeNode'](_0x5001ea['attributes'][0x0]);}function atElementStart(_0x521050,_0x23e4a1){let _0x24cd3d=_0x23e4a1['focusNode'],_0x41984f=_0x23e4a1['focusOffset'];if(!_0x24cd3d||_0x23e4a1['anchorNode']!=_0x24cd3d||_0x23e4a1['anchorOffset']!=_0x41984f)return!0x1;for(_0x41984f=Math['min'](_0x41984f,maxOffset(_0x24cd3d));;)if(_0x41984f){if(0x1!=_0x24cd3d['nodeType'])return!0x1;let _0x3106ce=_0x24cd3d['childNodes'][_0x41984f-0x1];'false'==_0x3106ce['contentEditable']?_0x41984f--:(_0x24cd3d=_0x3106ce,_0x41984f=maxOffset(_0x24cd3d));}else{if(_0x24cd3d==_0x521050)return!0x0;_0x41984f=domIndex(_0x24cd3d),_0x24cd3d=_0x24cd3d['parentNode'];}}function isScrolledToBottom(_0x30dbd8){return _0x30dbd8['scrollTop']>Math['max'](0x1,_0x30dbd8['scrollHeight']-_0x30dbd8['clientHeight']-0x4);}function textNodeBefore(_0x50e9a5,_0x248721){for(let _0x529ace=_0x50e9a5,_0x279fe2=_0x248721;;){if(0x3==_0x529ace['nodeType']&&_0x279fe2>0x0)return{'node':_0x529ace,'offset':_0x279fe2};if(0x1==_0x529ace['nodeType']&&_0x279fe2>0x0){if('false'==_0x529ace['contentEditable'])return null;_0x529ace=_0x529ace['childNodes'][_0x279fe2-0x1],_0x279fe2=maxOffset(_0x529ace);}else{if(!_0x529ace['parentNode']||isBlockElement(_0x529ace))return null;_0x279fe2=domIndex(_0x529ace),_0x529ace=_0x529ace['parentNode'];}}}function textNodeAfter(_0x2a300a,_0x3e5d0d){for(let _0xe33665=_0x2a300a,_0x103608=_0x3e5d0d;;){if(0x3==_0xe33665['nodeType']&&_0x103608<_0xe33665['nodeValue']['length'])return{'node':_0xe33665,'offset':_0x103608};if(0x1==_0xe33665['nodeType']&&_0x103608<_0xe33665['childNodes']['length']){if('false'==_0xe33665['contentEditable'])return null;_0xe33665=_0xe33665['childNodes'][_0x103608],_0x103608=0x0;}else{if(!_0xe33665['parentNode']||isBlockElement(_0xe33665))return null;_0x103608=domIndex(_0xe33665)+0x1,_0xe33665=_0xe33665['parentNode'];}}}browser['safari']&&browser['safari_version']>=0x1a&&(preventScrollSupported=!0x1);class DOMPos{constructor(_0x3abe09,_0x5c95bb,_0x24fa09=!0x0){this['node']=_0x3abe09,this['offset']=_0x5c95bb,this['precise']=_0x24fa09;}static['before'](_0x29d17e,_0x676a9){return new DOMPos(_0x29d17e['parentNode'],domIndex(_0x29d17e),_0x676a9);}static['after'](_0x9c4ed9,_0x4f66f3){return new DOMPos(_0x9c4ed9['parentNode'],domIndex(_0x9c4ed9)+0x1,_0x4f66f3);}}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'](_0x1ac245){let _0xbb4871=this['posAtStart'];for(let _0x2a1171 of this['children']){if(_0x2a1171==_0x1ac245)return _0xbb4871;_0xbb4871+=_0x2a1171['length']+_0x2a1171['breakAfter'];}throw new RangeError('Invalid\x20child\x20in\x20posBefore');}['posAfter'](_0xa43ab1){return this['posBefore'](_0xa43ab1)+_0xa43ab1['length'];}['sync'](_0x289744,_0x5749d0){if(0x2&this['flags']){let _0x2edbc7,_0x454c44=this['dom'],_0x108bf2=null;for(let _0x18607c of this['children']){if(0x7&_0x18607c['flags']){if(!_0x18607c['dom']&&(_0x2edbc7=_0x108bf2?_0x108bf2['nextSibling']:_0x454c44['firstChild'])){let _0x1f4796=ContentView['get'](_0x2edbc7);(!_0x1f4796||!_0x1f4796['parent']&&_0x1f4796['canReuseDOM'](_0x18607c))&&_0x18607c['reuseDOM'](_0x2edbc7);}_0x18607c['sync'](_0x289744,_0x5749d0),_0x18607c['flags']&=-0x8;}if(_0x2edbc7=_0x108bf2?_0x108bf2['nextSibling']:_0x454c44['firstChild'],_0x5749d0&&!_0x5749d0['written']&&_0x5749d0['node']==_0x454c44&&_0x2edbc7!=_0x18607c['dom']&&(_0x5749d0['written']=!0x0),_0x18607c['dom']['parentNode']==_0x454c44){for(;_0x2edbc7&&_0x2edbc7!=_0x18607c['dom'];)_0x2edbc7=rm$1(_0x2edbc7);}else _0x454c44['insertBefore'](_0x18607c['dom'],_0x2edbc7);_0x108bf2=_0x18607c['dom'];}for(_0x2edbc7=_0x108bf2?_0x108bf2['nextSibling']:_0x454c44['firstChild'],_0x2edbc7&&_0x5749d0&&_0x5749d0['node']==_0x454c44&&(_0x5749d0['written']=!0x0);_0x2edbc7;)_0x2edbc7=rm$1(_0x2edbc7);}else{if(0x1&this['flags']){for(let _0x17592d of this['children'])0x7&_0x17592d['flags']&&(_0x17592d['sync'](_0x289744,_0x5749d0),_0x17592d['flags']&=-0x8);}}}['reuseDOM'](_0x4ee3f5){}['localPosFromDOM'](_0x35f2a8,_0x1b49fa){let _0x2b8ab1;if(_0x35f2a8==this['dom'])_0x2b8ab1=this['dom']['childNodes'][_0x1b49fa];else{let _0x5e2f1a=0x0==maxOffset(_0x35f2a8)?0x0:0x0==_0x1b49fa?-0x1:0x1;for(;;){let _0x30e404=_0x35f2a8['parentNode'];if(_0x30e404==this['dom'])break;0x0==_0x5e2f1a&&_0x30e404['firstChild']!=_0x30e404['lastChild']&&(_0x5e2f1a=_0x35f2a8==_0x30e404['firstChild']?-0x1:0x1),_0x35f2a8=_0x30e404;}_0x2b8ab1=_0x5e2f1a<0x0?_0x35f2a8:_0x35f2a8['nextSibling'];}if(_0x2b8ab1==this['dom']['firstChild'])return 0x0;for(;_0x2b8ab1&&!ContentView['get'](_0x2b8ab1);)_0x2b8ab1=_0x2b8ab1['nextSibling'];if(!_0x2b8ab1)return this['length'];for(let _0x18c088=0x0,_0xb15c37=0x0;;_0x18c088++){let _0x5dc636=this['children'][_0x18c088];if(_0x5dc636['dom']==_0x2b8ab1)return _0xb15c37;_0xb15c37+=_0x5dc636['length']+_0x5dc636['breakAfter'];}}['domBoundsAround'](_0x2e3220,_0x34586a,_0x2284e6=0x0){let _0x53fdd4=-0x1,_0x30ec70=-0x1,_0xbaa7b7=-0x1,_0x1408dc=-0x1;for(let _0x561c26=0x0,_0x429308=_0x2284e6,_0x1a790f=_0x2284e6;_0x561c26<this['children']['length'];_0x561c26++){let _0x878bd1=this['children'][_0x561c26],_0x15edd7=_0x429308+_0x878bd1['length'];if(_0x429308<_0x2e3220&&_0x15edd7>_0x34586a)return _0x878bd1['domBoundsAround'](_0x2e3220,_0x34586a,_0x429308);if(_0x15edd7>=_0x2e3220&&-0x1==_0x53fdd4&&(_0x53fdd4=_0x561c26,_0x30ec70=_0x429308),_0x429308>_0x34586a&&_0x878bd1['dom']['parentNode']==this['dom']){_0xbaa7b7=_0x561c26,_0x1408dc=_0x1a790f;break;}_0x1a790f=_0x15edd7,_0x429308=_0x15edd7+_0x878bd1['breakAfter'];}return{'from':_0x30ec70,'to':_0x1408dc<0x0?_0x2284e6+this['length']:_0x1408dc,'startDOM':(_0x53fdd4?this['children'][_0x53fdd4-0x1]['dom']['nextSibling']:null)||this['dom']['firstChild'],'endDOM':_0xbaa7b7<this['children']['length']&&_0xbaa7b7>=0x0?this['children'][_0xbaa7b7]['dom']:null};}['markDirty'](_0xffae6=!0x1){this['flags']|=0x2,this['markParentsDirty'](_0xffae6);}['markParentsDirty'](_0x43b90c){for(let _0x18fa94=this['parent'];_0x18fa94;_0x18fa94=_0x18fa94['parent']){if(_0x43b90c&&(_0x18fa94['flags']|=0x2),0x1&_0x18fa94['flags'])return;_0x18fa94['flags']|=0x1,_0x43b90c=!0x1;}}['setParent'](_0x497400){this['parent']!=_0x497400&&(this['parent']=_0x497400,0x7&this['flags']&&this['markParentsDirty'](!0x0));}['setDOM'](_0x13aceb){this['dom']!=_0x13aceb&&(this['dom']&&(this['dom']['cmView']=null),this['dom']=_0x13aceb,_0x13aceb['cmView']=this);}get['rootView'](){for(let _0x4e9227=this;;){let _0x5eaf21=_0x4e9227['parent'];if(!_0x5eaf21)return _0x4e9227;_0x4e9227=_0x5eaf21;}}['replaceChildren'](_0x55abf5,_0x2c6ce3,_0x46f30e=noChildren){this['markDirty']();for(let _0x7a0b64=_0x55abf5;_0x7a0b64<_0x2c6ce3;_0x7a0b64++){let _0x3455fb=this['children'][_0x7a0b64];_0x3455fb['parent']==this&&_0x46f30e['indexOf'](_0x3455fb)<0x0&&_0x3455fb['destroy']();}_0x46f30e['length']<0xfa?this['children']['splice'](_0x55abf5,_0x2c6ce3-_0x55abf5,..._0x46f30e):this['children']=[]['concat'](this['children']['slice'](0x0,_0x55abf5),_0x46f30e,this['children']['slice'](_0x2c6ce3));for(let _0x3da57d=0x0;_0x3da57d<_0x46f30e['length'];_0x3da57d++)_0x46f30e[_0x3da57d]['setParent'](this);}['ignoreMutation'](_0x4cdd15){return!0x1;}['ignoreEvent'](_0xd61fd8){return!0x1;}['childCursor'](_0x486685=this['length']){return new ChildCursor(this['children'],_0x486685,this['children']['length']);}['childPos'](_0x52da03,_0x5da545=0x1){return this['childCursor']()['findPos'](_0x52da03,_0x5da545);}['toString'](){let _0x5a1021=this['constructor']['name']['replace']('View','');return _0x5a1021+(this['children']['length']?'('+this['children']['join']()+')':this['length']?'['+('Text'==_0x5a1021?this['text']:this['length'])+']':'')+(this['breakAfter']?'#':'');}static['get'](_0x3b5a8c){return _0x3b5a8c['cmView'];}get['isEditable'](){return!0x0;}get['isWidget'](){return!0x1;}get['isHidden'](){return!0x1;}['merge'](_0x200b69,_0x42ff99,_0x950676,_0x37d937,_0x5516dd,_0x4a0e13){return!0x1;}['become'](_0x425f6c){return!0x1;}['canReuseDOM'](_0x25893b){return _0x25893b['constructor']==this['constructor']&&!(0x8&(this['flags']|_0x25893b['flags']));}['getSide'](){return 0x0;}['destroy'](){for(let _0x2318fe of this['children'])_0x2318fe['parent']==this&&_0x2318fe['destroy']();this['parent']=null;}}function rm$1(_0x4834c9){let _0x46b0d5=_0x4834c9['nextSibling'];return _0x4834c9['parentNode']['removeChild'](_0x4834c9),_0x46b0d5;}ContentView['prototype']['breakAfter']=0x0;class ChildCursor{constructor(_0x1a6cde,_0x1f9c3a,_0x55debd){this['children']=_0x1a6cde,this['pos']=_0x1f9c3a,this['i']=_0x55debd,this['off']=0x0;}['findPos'](_0x5bde03,_0x2a4e64=0x1){for(;;){if(_0x5bde03>this['pos']||_0x5bde03==this['pos']&&(_0x2a4e64>0x0||0x0==this['i']||this['children'][this['i']-0x1]['breakAfter']))return this['off']=_0x5bde03-this['pos'],this;let _0x3058d0=this['children'][--this['i']];this['pos']-=_0x3058d0['length']+_0x3058d0['breakAfter'];}}}function replaceRange(_0x4b7f0b,_0x534fbc,_0xe38d68,_0x40fd85,_0x30095c,_0x218fce,_0x35061e,_0x4f251c,_0x5399b3){let {children:_0x2a995e}=_0x4b7f0b,_0x39c492=_0x2a995e['length']?_0x2a995e[_0x534fbc]:null,_0x5f1322=_0x218fce['length']?_0x218fce[_0x218fce['length']-0x1]:null,_0x23e49a=_0x5f1322?_0x5f1322['breakAfter']:_0x35061e;if(!(_0x534fbc==_0x40fd85&&_0x39c492&&!_0x35061e&&!_0x23e49a&&_0x218fce['length']<0x2&&_0x39c492['merge'](_0xe38d68,_0x30095c,_0x218fce['length']?_0x5f1322:null,0x0==_0xe38d68,_0x4f251c,_0x5399b3))){if(_0x40fd85<_0x2a995e['length']){let _0x3e19b2=_0x2a995e[_0x40fd85];_0x3e19b2&&(_0x30095c<_0x3e19b2['length']||_0x3e19b2['breakAfter']&&(null==_0x5f1322?void 0x0:_0x5f1322['breakAfter']))?(_0x534fbc==_0x40fd85&&(_0x3e19b2=_0x3e19b2['split'](_0x30095c),_0x30095c=0x0),!_0x23e49a&&_0x5f1322&&_0x3e19b2['merge'](0x0,_0x30095c,_0x5f1322,!0x0,0x0,_0x5399b3)?_0x218fce[_0x218fce['length']-0x1]=_0x3e19b2:((_0x30095c||_0x3e19b2['children']['length']&&!_0x3e19b2['children'][0x0]['length'])&&_0x3e19b2['merge'](0x0,_0x30095c,null,!0x1,0x0,_0x5399b3),_0x218fce['push'](_0x3e19b2))):(null==_0x3e19b2?void 0x0:_0x3e19b2['breakAfter'])&&(_0x5f1322?_0x5f1322['breakAfter']=0x1:_0x35061e=0x1),_0x40fd85++;}for(_0x39c492&&(_0x39c492['breakAfter']=_0x35061e,_0xe38d68>0x0&&(!_0x35061e&&_0x218fce['length']&&_0x39c492['merge'](_0xe38d68,_0x39c492['length'],_0x218fce[0x0],!0x1,_0x4f251c,0x0)?_0x39c492['breakAfter']=_0x218fce['shift']()['breakAfter']:(_0xe38d68<_0x39c492['length']||_0x39c492['children']['length']&&0x0==_0x39c492['children'][_0x39c492['children']['length']-0x1]['length'])&&_0x39c492['merge'](_0xe38d68,_0x39c492['length'],null,!0x1,_0x4f251c,0x0),_0x534fbc++));_0x534fbc<_0x40fd85&&_0x218fce['length'];)if(_0x2a995e[_0x40fd85-0x1]['become'](_0x218fce[_0x218fce['length']-0x1]))_0x40fd85--,_0x218fce['pop'](),_0x5399b3=_0x218fce['length']?0x0:_0x4f251c;else{if(!_0x2a995e[_0x534fbc]['become'](_0x218fce[0x0]))break;_0x534fbc++,_0x218fce['shift'](),_0x4f251c=_0x218fce['length']?0x0:_0x5399b3;}!_0x218fce['length']&&_0x534fbc&&_0x40fd85<_0x2a995e['length']&&!_0x2a995e[_0x534fbc-0x1]['breakAfter']&&_0x2a995e[_0x40fd85]['merge'](0x0,0x0,_0x2a995e[_0x534fbc-0x1],!0x1,_0x4f251c,_0x5399b3)&&_0x534fbc--,(_0x534fbc<_0x40fd85||_0x218fce['length'])&&_0x4b7f0b['replaceChildren'](_0x534fbc,_0x40fd85,_0x218fce);}}function mergeChildrenInto(_0x11565d,_0x290bc,_0x1cedad,_0x47d5bd,_0x3e469f,_0x24a3f0){let _0x495e68=_0x11565d['childCursor'](),{i:_0x31e1fe,off:_0x4f330f}=_0x495e68['findPos'](_0x1cedad,0x1),{i:_0x884adc,off:_0x389e95}=_0x495e68['findPos'](_0x290bc,-0x1),_0x1f7c72=_0x290bc-_0x1cedad;for(let _0x1983ff of _0x47d5bd)_0x1f7c72+=_0x1983ff['length'];_0x11565d['length']+=_0x1f7c72,replaceRange(_0x11565d,_0x884adc,_0x389e95,_0x31e1fe,_0x4f330f,_0x47d5bd,0x0,_0x3e469f,_0x24a3f0);}const MaxJoinLen=0x100;class TextView extends ContentView{constructor(_0x356455){super(),this['text']=_0x356455;}get['length'](){return this['text']['length'];}['createDOM'](_0x51b24a){this['setDOM'](_0x51b24a||document['createTextNode'](this['text']));}['sync'](_0x3aa738,_0x23f5e4){this['dom']||this['createDOM'](),this['dom']['nodeValue']!=this['text']&&(_0x23f5e4&&_0x23f5e4['node']==this['dom']&&(_0x23f5e4['written']=!0x0),this['dom']['nodeValue']=this['text']);}['reuseDOM'](_0x21db6e){0x3==_0x21db6e['nodeType']&&this['createDOM'](_0x21db6e);}['merge'](_0xc7f851,_0x4b8b6a,_0x1c4423){return!(0x8&this['flags']||_0x1c4423&&(!(_0x1c4423 instanceof TextView)||this['length']-(_0x4b8b6a-_0xc7f851)+_0x1c4423['length']>MaxJoinLen||0x8&_0x1c4423['flags']))&&(this['text']=this['text']['slice'](0x0,_0xc7f851)+(_0x1c4423?_0x1c4423['text']:'')+this['text']['slice'](_0x4b8b6a),this['markDirty'](),!0x0);}['split'](_0xbe26ff){let _0x5c3132=new TextView(this['text']['slice'](_0xbe26ff));return this['text']=this['text']['slice'](0x0,_0xbe26ff),this['markDirty'](),_0x5c3132['flags']|=0x8&this['flags'],_0x5c3132;}['localPosFromDOM'](_0x299e96,_0x42b78e){return _0x299e96==this['dom']?_0x42b78e:_0x42b78e?this['text']['length']:0x0;}['domAtPos'](_0x519e3f){return new DOMPos(this['dom'],_0x519e3f);}['domBoundsAround'](_0x5bc60a,_0x58a669,_0x521eb1){return{'from':_0x521eb1,'to':_0x521eb1+this['length'],'startDOM':this['dom'],'endDOM':this['dom']['nextSibling']};}['coordsAt'](_0x176256,_0xf813a9){return textCoords(this['dom'],_0x176256,_0xf813a9);}}class MarkView extends ContentView{constructor(_0x5430ea,_0x2966a4=[],_0x249996=0x0){super(),this['mark']=_0x5430ea,this['children']=_0x2966a4,this['length']=_0x249996;for(let _0x44fbae of _0x2966a4)_0x44fbae['setParent'](this);}['setAttrs'](_0x3a2c22){if(clearAttributes(_0x3a2c22),this['mark']['class']&&(_0x3a2c22['className']=this['mark']['class']),this['mark']['attrs']){for(let _0xa7c411 in this['mark']['attrs'])_0x3a2c22['setAttribute'](_0xa7c411,this['mark']['attrs'][_0xa7c411]);}return _0x3a2c22;}['canReuseDOM'](_0x11fe3d){return super['canReuseDOM'](_0x11fe3d)&&!(0x8&(this['flags']|_0x11fe3d['flags']));}['reuseDOM'](_0x1d8b0e){_0x1d8b0e['nodeName']==this['mark']['tagName']['toUpperCase']()&&(this['setDOM'](_0x1d8b0e),this['flags']|=0x6);}['sync'](_0x15bec6,_0x463b78){this['dom']?0x4&this['flags']&&this['setAttrs'](this['dom']):this['setDOM'](this['setAttrs'](document['createElement'](this['mark']['tagName']))),super['sync'](_0x15bec6,_0x463b78);}['merge'](_0x32d7dd,_0x45e1cf,_0x4abe60,_0x472e1b,_0x76451e,_0x570e3a){return(!_0x4abe60||!(!(_0x4abe60 instanceof MarkView&&_0x4abe60['mark']['eq'](this['mark']))||_0x32d7dd&&_0x76451e<=0x0||_0x45e1cf<this['length']&&_0x570e3a<=0x0))&&(mergeChildrenInto(this,_0x32d7dd,_0x45e1cf,_0x4abe60?_0x4abe60['children']['slice']():[],_0x76451e-0x1,_0x570e3a-0x1),this['markDirty'](),!0x0);}['split'](_0x1a7da5){let _0x5b4a62=[],_0x2786f0=0x0,_0x2ece7c=-0x1,_0x3e0c51=0x0;for(let _0x4cd9f8 of this['children']){let _0x5153af=_0x2786f0+_0x4cd9f8['length'];_0x5153af>_0x1a7da5&&_0x5b4a62['push'](_0x2786f0<_0x1a7da5?_0x4cd9f8['split'](_0x1a7da5-_0x2786f0):_0x4cd9f8),_0x2ece7c<0x0&&_0x2786f0>=_0x1a7da5&&(_0x2ece7c=_0x3e0c51),_0x2786f0=_0x5153af,_0x3e0c51++;}let _0x36f596=this['length']-_0x1a7da5;return this['length']=_0x1a7da5,_0x2ece7c>-0x1&&(this['children']['length']=_0x2ece7c,this['markDirty']()),new MarkView(this['mark'],_0x5b4a62,_0x36f596);}['domAtPos'](_0x4c7d2c){return inlineDOMAtPos(this,_0x4c7d2c);}['coordsAt'](_0x58a130,_0x3523b7){return coordsInChildren(this,_0x58a130,_0x3523b7);}}function textCoords(_0x4c3da5,_0x510961,_0x211173){let _0x132842=_0x4c3da5['nodeValue']['length'];_0x510961>_0x132842&&(_0x510961=_0x132842);let _0x4c36e3=_0x510961,_0x256637=_0x510961,_0x2c8982=0x0;0x0==_0x510961&&_0x211173<0x0||_0x510961==_0x132842&&_0x211173>=0x0?browser['chrome']||browser['gecko']||(_0x510961?(_0x4c36e3--,_0x2c8982=0x1):_0x256637<_0x132842&&(_0x256637++,_0x2c8982=-0x1)):_0x211173<0x0?_0x4c36e3--:_0x256637<_0x132842&&_0x256637++;let _0x1d9c68=textRange(_0x4c3da5,_0x4c36e3,_0x256637)['getClientRects']();if(!_0x1d9c68['length'])return null;let _0x1fafcc=_0x1d9c68[(_0x2c8982?_0x2c8982<0x0:_0x211173>=0x0)?0x0:_0x1d9c68['length']-0x1];return browser['safari']&&!_0x2c8982&&0x0==_0x1fafcc['width']&&(_0x1fafcc=Array['prototype']['find']['call'](_0x1d9c68,_0x1e00d2=>_0x1e00d2['width'])||_0x1fafcc),_0x2c8982?flattenRect(_0x1fafcc,_0x2c8982<0x0):_0x1fafcc||null;}class WidgetView extends ContentView{static['create'](_0x35f073,_0x37d798,_0x4c1661){return new WidgetView(_0x35f073,_0x37d798,_0x4c1661);}constructor(_0x238d0d,_0x2ccbfd,_0xf4f5ef){super(),this['widget']=_0x238d0d,this['length']=_0x2ccbfd,this['side']=_0xf4f5ef,this['prevWidget']=null;}['split'](_0x12b5a8){let _0x3e7486=WidgetView['create'](this['widget'],this['length']-_0x12b5a8,this['side']);return this['length']-=_0x12b5a8,_0x3e7486;}['sync'](_0x469f01){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x469f01)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x469f01)),this['widget']['editable']||(this['dom']['contentEditable']='false'));}['getSide'](){return this['side'];}['merge'](_0x17989e,_0x4ef6dd,_0x43b4b8,_0x25e998,_0x3416bb,_0x20427d){return!(_0x43b4b8&&(!(_0x43b4b8 instanceof WidgetView&&this['widget']['compare'](_0x43b4b8['widget']))||_0x17989e>0x0&&_0x3416bb<=0x0||_0x4ef6dd<this['length']&&_0x20427d<=0x0))&&(this['length']=_0x17989e+(_0x43b4b8?_0x43b4b8['length']:0x0)+(this['length']-_0x4ef6dd),!0x0);}['become'](_0x369677){return _0x369677 instanceof WidgetView&&_0x369677['side']==this['side']&&this['widget']['constructor']==_0x369677['widget']['constructor']&&(this['widget']['compare'](_0x369677['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x369677['widget'],this['length']=_0x369677['length'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x256ecd){return this['widget']['ignoreEvent'](_0x256ecd);}get['overrideDOMText'](){if(0x0==this['length'])return Text['empty'];let _0x7ce59=this;for(;_0x7ce59['parent'];)_0x7ce59=_0x7ce59['parent'];let {view:_0x587378}=_0x7ce59,_0x373685=_0x587378&&_0x587378['state']['doc'],_0x256490=this['posAtStart'];return _0x373685?_0x373685['slice'](_0x256490,_0x256490+this['length']):Text['empty'];}['domAtPos'](_0x2e94a1){return(this['length']?0x0==_0x2e94a1:this['side']>0x0)?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0x2e94a1==this['length']);}['domBoundsAround'](){return null;}['coordsAt'](_0x22277a,_0x44df7c){let _0x333757=this['widget']['coordsAt'](this['dom'],_0x22277a,_0x44df7c);if(_0x333757)return _0x333757;let _0x307440=this['dom']['getClientRects'](),_0x3f1f9f=null;if(!_0x307440['length'])return null;let _0x405513=this['side']?this['side']<0x0:_0x22277a>0x0;for(let _0x15e504=_0x405513?_0x307440['length']-0x1:0x0;_0x3f1f9f=_0x307440[_0x15e504],!(_0x22277a>0x0?0x0==_0x15e504:_0x15e504==_0x307440['length']-0x1||_0x3f1f9f['top']<_0x3f1f9f['bottom']);_0x15e504+=_0x405513?-0x1:0x1);return flattenRect(_0x3f1f9f,!_0x405513);}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(_0x502f3e){super(),this['side']=_0x502f3e;}get['length'](){return 0x0;}['merge'](){return!0x1;}['become'](_0x406df0){return _0x406df0 instanceof WidgetBufferView&&_0x406df0['side']==this['side'];}['split'](){return new WidgetBufferView(this['side']);}['sync'](){if(!this['dom']){let _0x4af121=document['createElement']('img');_0x4af121['className']='cm-widgetBuffer',_0x4af121['setAttribute']('aria-hidden','true'),this['setDOM'](_0x4af121);}}['getSide'](){return this['side'];}['domAtPos'](_0x21f6b4){return this['side']>0x0?DOMPos['before'](this['dom']):DOMPos['after'](this['dom']);}['localPosFromDOM'](){return 0x0;}['domBoundsAround'](){return null;}['coordsAt'](_0x68dd29){return this['dom']['getBoundingClientRect']();}get['overrideDOMText'](){return Text['empty'];}get['isHidden'](){return!0x0;}}function inlineDOMAtPos(_0x2daa97,_0x3d6c50){let _0x51dfd1=_0x2daa97['dom'],{children:_0x3998bc}=_0x2daa97,_0x29c0c5=0x0;for(let _0x50bbc9=0x0;_0x29c0c5<_0x3998bc['length'];_0x29c0c5++){let _0x3de05a=_0x3998bc[_0x29c0c5],_0x4295ab=_0x50bbc9+_0x3de05a['length'];if(!(_0x4295ab==_0x50bbc9&&_0x3de05a['getSide']()<=0x0)){if(_0x3d6c50>_0x50bbc9&&_0x3d6c50<_0x4295ab&&_0x3de05a['dom']['parentNode']==_0x51dfd1)return _0x3de05a['domAtPos'](_0x3d6c50-_0x50bbc9);if(_0x3d6c50<=_0x50bbc9)break;_0x50bbc9=_0x4295ab;}}for(let _0xbf852a=_0x29c0c5;_0xbf852a>0x0;_0xbf852a--){let _0x13b5cd=_0x3998bc[_0xbf852a-0x1];if(_0x13b5cd['dom']['parentNode']==_0x51dfd1)return _0x13b5cd['domAtPos'](_0x13b5cd['length']);}for(let _0x50d37f=_0x29c0c5;_0x50d37f<_0x3998bc['length'];_0x50d37f++){let _0x18627e=_0x3998bc[_0x50d37f];if(_0x18627e['dom']['parentNode']==_0x51dfd1)return _0x18627e['domAtPos'](0x0);}return new DOMPos(_0x51dfd1,0x0);}function joinInlineInto(_0x4fa102,_0x310aa6,_0x271a21){let _0x5e8f0f,{children:_0x38eac0}=_0x4fa102;_0x271a21>0x0&&_0x310aa6 instanceof MarkView&&_0x38eac0['length']&&(_0x5e8f0f=_0x38eac0[_0x38eac0['length']-0x1])instanceof MarkView&&_0x5e8f0f['mark']['eq'](_0x310aa6['mark'])?joinInlineInto(_0x5e8f0f,_0x310aa6['children'][0x0],_0x271a21-0x1):(_0x38eac0['push'](_0x310aa6),_0x310aa6['setParent'](_0x4fa102)),_0x4fa102['length']+=_0x310aa6['length'];}function coordsInChildren(_0x1ac794,_0x3eb754,_0x4d5a38){let _0x5b84a9=null,_0x536829=-0x1,_0x43dffc=null,_0x1effe2=-0x1;!function _0x5e52c1(_0x58a65b,_0x446ebe){for(let _0x5d58e1=0x0,_0x233ac6=0x0;_0x5d58e1<_0x58a65b['children']['length']&&_0x233ac6<=_0x446ebe;_0x5d58e1++){let _0x2fb242=_0x58a65b['children'][_0x5d58e1],_0x3bbedb=_0x233ac6+_0x2fb242['length'];_0x3bbedb>=_0x446ebe&&(_0x2fb242['children']['length']?_0x5e52c1(_0x2fb242,_0x446ebe-_0x233ac6):(!_0x43dffc||_0x43dffc['isHidden']&&(_0x4d5a38>0x0||onSameLine(_0x43dffc,_0x2fb242)))&&(_0x3bbedb>_0x446ebe||_0x233ac6==_0x3bbedb&&_0x2fb242['getSide']()>0x0)?(_0x43dffc=_0x2fb242,_0x1effe2=_0x446ebe-_0x233ac6):(_0x233ac6<_0x446ebe||_0x233ac6==_0x3bbedb&&_0x2fb242['getSide']()<0x0&&!_0x2fb242['isHidden'])&&(_0x5b84a9=_0x2fb242,_0x536829=_0x446ebe-_0x233ac6)),_0x233ac6=_0x3bbedb;}}(_0x1ac794,_0x3eb754);let _0x4cdfbb=(_0x4d5a38<0x0?_0x5b84a9:_0x43dffc)||_0x5b84a9||_0x43dffc;return _0x4cdfbb?_0x4cdfbb['coordsAt'](Math['max'](0x0,_0x4cdfbb==_0x5b84a9?_0x536829:_0x1effe2),_0x4d5a38):fallbackRect(_0x1ac794);}function fallbackRect(_0x1e23db){let _0x5d5a4e=_0x1e23db['dom']['lastChild'];if(!_0x5d5a4e)return _0x1e23db['dom']['getBoundingClientRect']();let _0x5ee556=clientRectsFor(_0x5d5a4e);return _0x5ee556[_0x5ee556['length']-0x1]||null;}function onSameLine(_0x1591c,_0x5c3e20){let _0x43a753=_0x1591c['coordsAt'](0x0,0x1),_0x1c239b=_0x5c3e20['coordsAt'](0x0,0x1);return _0x43a753&&_0x1c239b&&_0x1c239b['top']<_0x43a753['bottom'];}function combineAttrs(_0xac3ad,_0x256a00){for(let _0x453dbc in _0xac3ad)'class'==_0x453dbc&&_0x256a00['class']?_0x256a00['class']+='\x20'+_0xac3ad['class']:'style'==_0x453dbc&&_0x256a00['style']?_0x256a00['style']+=';'+_0xac3ad['style']:_0x256a00[_0x453dbc]=_0xac3ad[_0x453dbc];return _0x256a00;}TextView['prototype']['children']=WidgetView['prototype']['children']=WidgetBufferView['prototype']['children']=noChildren;const noAttrs$1=Object['create'](null);function attrsEq(_0x104d3b,_0x248060,_0x2b9c59){if(_0x104d3b==_0x248060)return!0x0;_0x104d3b||(_0x104d3b=noAttrs$1),_0x248060||(_0x248060=noAttrs$1);let _0x4a9a4d=Object['keys'](_0x104d3b),_0x12f0e8=Object['keys'](_0x248060);if(_0x4a9a4d['length']-(_0x2b9c59&&_0x4a9a4d['indexOf'](_0x2b9c59)>-0x1?0x1:0x0)!=_0x12f0e8['length']-(_0x2b9c59&&_0x12f0e8['indexOf'](_0x2b9c59)>-0x1?0x1:0x0))return!0x1;for(let _0x35f6d8 of _0x4a9a4d)if(_0x35f6d8!=_0x2b9c59&&(-0x1==_0x12f0e8['indexOf'](_0x35f6d8)||_0x104d3b[_0x35f6d8]!==_0x248060[_0x35f6d8]))return!0x1;return!0x0;}function updateAttrs(_0x5479f4,_0x342580,_0x459587){let _0x3a2302=!0x1;if(_0x342580){for(let _0x393c15 in _0x342580)_0x459587&&_0x393c15 in _0x459587||(_0x3a2302=!0x0,'style'==_0x393c15?_0x5479f4['style']['cssText']='':_0x5479f4['removeAttribute'](_0x393c15));}if(_0x459587){for(let _0x563b6f in _0x459587)_0x342580&&_0x342580[_0x563b6f]==_0x459587[_0x563b6f]||(_0x3a2302=!0x0,'style'==_0x563b6f?_0x5479f4['style']['cssText']=_0x459587[_0x563b6f]:_0x5479f4['setAttribute'](_0x563b6f,_0x459587[_0x563b6f]));}return _0x3a2302;}function getAttrs$1(_0x1d2ca3){let _0x39874e=Object['create'](null);for(let _0x3074cf=0x0;_0x3074cf<_0x1d2ca3['attributes']['length'];_0x3074cf++){let _0x19143e=_0x1d2ca3['attributes'][_0x3074cf];_0x39874e[_0x19143e['name']]=_0x19143e['value'];}return _0x39874e;}class WidgetType{['eq'](_0x193b5d){return!0x1;}['updateDOM'](_0x2bf25d,_0x2f8a80){return!0x1;}['compare'](_0x4f196f){return this==_0x4f196f||this['constructor']==_0x4f196f['constructor']&&this['eq'](_0x4f196f);}get['estimatedHeight'](){return-0x1;}get['lineBreaks'](){return 0x0;}['ignoreEvent'](_0x422b3a){return!0x0;}['coordsAt'](_0x27b33f,_0x3440d0,_0x57adb7){return null;}get['isHidden'](){return!0x1;}get['editable'](){return!0x1;}['destroy'](_0xa2ef59){}}var BlockType=function(_0x35841c){return _0x35841c[_0x35841c['Text']=0x0]='Text',_0x35841c[_0x35841c['WidgetBefore']=0x1]='WidgetBefore',_0x35841c[_0x35841c['WidgetAfter']=0x2]='WidgetAfter',_0x35841c[_0x35841c['WidgetRange']=0x3]='WidgetRange',_0x35841c;}(BlockType||(BlockType={}));class Decoration extends RangeValue{constructor(_0x523bca,_0x1144a2,_0x8f3658,_0x12ae26){super(),this['startSide']=_0x523bca,this['endSide']=_0x1144a2,this['widget']=_0x8f3658,this['spec']=_0x12ae26;}get['heightRelevant'](){return!0x1;}static['mark'](_0x55e1aa){return new MarkDecoration(_0x55e1aa);}static['widget'](_0x418ebf){let _0x58be05=Math['max'](-0x2710,Math['min'](0x2710,_0x418ebf['side']||0x0)),_0x331567=!!_0x418ebf['block'];return _0x58be05+=_0x331567&&!_0x418ebf['inlineOrder']?_0x58be05>0x0?0x11e1a300:-0x17d78400:_0x58be05>0x0?0x5f5e100:-0x5f5e100,new PointDecoration(_0x418ebf,_0x58be05,_0x58be05,_0x331567,_0x418ebf['widget']||null,!0x1);}static['replace'](_0x2d54c2){let _0x340af0,_0x906bc9,_0x40b167=!!_0x2d54c2['block'];if(_0x2d54c2['isBlockGap'])_0x340af0=-0x1dcd6500,_0x906bc9=0x17d78400;else{let {start:_0xc7ceea,end:_0x1fda8a}=getInclusive(_0x2d54c2,_0x40b167);_0x340af0=(_0xc7ceea?_0x40b167?-0x11e1a300:-0x1:0x1dcd6500)-0x1,_0x906bc9=0x1+(_0x1fda8a?_0x40b167?0xbebc200:0x1:-0x23c34600);}return new PointDecoration(_0x2d54c2,_0x340af0,_0x906bc9,_0x40b167,_0x2d54c2['widget']||null,!0x0);}static['line'](_0x240e59){return new LineDecoration(_0x240e59);}static['set'](_0x5830bc,_0x472482=!0x1){return RangeSet['of'](_0x5830bc,_0x472482);}['hasHeight'](){return!!this['widget']&&this['widget']['estimatedHeight']>-0x1;}}Decoration['none']=RangeSet['empty'];class MarkDecoration extends Decoration{constructor(_0x2c4b02){let {start:_0x47ef8e,end:_0x3b2225}=getInclusive(_0x2c4b02);super(_0x47ef8e?-0x1:0x1dcd6500,_0x3b2225?0x1:-0x23c34600,null,_0x2c4b02),this['tagName']=_0x2c4b02['tagName']||'span',this['class']=_0x2c4b02['class']||'',this['attrs']=_0x2c4b02['attributes']||null;}['eq'](_0xc4551a){var _0x530cd4,_0x49b4ab;return this==_0xc4551a||_0xc4551a instanceof MarkDecoration&&this['tagName']==_0xc4551a['tagName']&&(this['class']||(null===(_0x530cd4=this['attrs'])||void 0x0===_0x530cd4?void 0x0:_0x530cd4['class']))==(_0xc4551a['class']||(null===(_0x49b4ab=_0xc4551a['attrs'])||void 0x0===_0x49b4ab?void 0x0:_0x49b4ab['class']))&&attrsEq(this['attrs'],_0xc4551a['attrs'],'class');}['range'](_0x6dd69e,_0x47bbf1=_0x6dd69e){if(_0x6dd69e>=_0x47bbf1)throw new RangeError('Mark\x20decorations\x20may\x20not\x20be\x20empty');return super['range'](_0x6dd69e,_0x47bbf1);}}MarkDecoration['prototype']['point']=!0x1;class LineDecoration extends Decoration{constructor(_0x48e976){super(-0xbebc200,-0xbebc200,null,_0x48e976);}['eq'](_0x26d820){return _0x26d820 instanceof LineDecoration&&this['spec']['class']==_0x26d820['spec']['class']&&attrsEq(this['spec']['attributes'],_0x26d820['spec']['attributes']);}['range'](_0x4f45ef,_0x16c1ca=_0x4f45ef){if(_0x16c1ca!=_0x4f45ef)throw new RangeError('Line\x20decoration\x20ranges\x20must\x20be\x20zero-length');return super['range'](_0x4f45ef,_0x16c1ca);}}LineDecoration['prototype']['mapMode']=MapMode['TrackBefore'],LineDecoration['prototype']['point']=!0x0;class PointDecoration extends Decoration{constructor(_0x4e18ff,_0x1adb80,_0x534596,_0x9708fc,_0x322b96,_0x5a283b){super(_0x1adb80,_0x534596,_0x322b96,_0x4e18ff),this['block']=_0x9708fc,this['isReplace']=_0x5a283b,this['mapMode']=_0x9708fc?_0x1adb80<=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'](_0x5cc2b6){return _0x5cc2b6 instanceof PointDecoration&&widgetsEq(this['widget'],_0x5cc2b6['widget'])&&this['block']==_0x5cc2b6['block']&&this['startSide']==_0x5cc2b6['startSide']&&this['endSide']==_0x5cc2b6['endSide'];}['range'](_0x107851,_0xba8f63=_0x107851){if(this['isReplace']&&(_0x107851>_0xba8f63||_0x107851==_0xba8f63&&this['startSide']>0x0&&this['endSide']<=0x0))throw new RangeError('Invalid\x20range\x20for\x20replacement\x20decoration');if(!this['isReplace']&&_0xba8f63!=_0x107851)throw new RangeError('Widget\x20decorations\x20can\x20only\x20have\x20zero-length\x20ranges');return super['range'](_0x107851,_0xba8f63);}}function getInclusive(_0x36ca38,_0x3b6a2b=!0x1){let {inclusiveStart:_0x243287,inclusiveEnd:_0x118e8e}=_0x36ca38;return null==_0x243287&&(_0x243287=_0x36ca38['inclusive']),null==_0x118e8e&&(_0x118e8e=_0x36ca38['inclusive']),{'start':null!=_0x243287?_0x243287:_0x3b6a2b,'end':null!=_0x118e8e?_0x118e8e:_0x3b6a2b};}function widgetsEq(_0x2887a8,_0x55423f){return _0x2887a8==_0x55423f||!!(_0x2887a8&&_0x55423f&&_0x2887a8['compare'](_0x55423f));}function addRange(_0x4cbc25,_0x63faa7,_0x21c0e3,_0x435799=0x0){let _0x2d434f=_0x21c0e3['length']-0x1;_0x2d434f>=0x0&&_0x21c0e3[_0x2d434f]+_0x435799>=_0x4cbc25?_0x21c0e3[_0x2d434f]=Math['max'](_0x21c0e3[_0x2d434f],_0x63faa7):_0x21c0e3['push'](_0x4cbc25,_0x63faa7);}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'](_0x4106ea,_0x5a433d,_0x3c16f7,_0x3e12b7,_0x1caaf8,_0x2ba402){if(_0x3c16f7){if(!(_0x3c16f7 instanceof LineView))return!0x1;this['dom']||_0x3c16f7['transferDOM'](this);}return _0x3e12b7&&this['setDeco'](_0x3c16f7?_0x3c16f7['attrs']:null),mergeChildrenInto(this,_0x4106ea,_0x5a433d,_0x3c16f7?_0x3c16f7['children']['slice']():[],_0x1caaf8,_0x2ba402),!0x0;}['split'](_0x4067a8){let _0x4cdb95=new LineView();if(_0x4cdb95['breakAfter']=this['breakAfter'],0x0==this['length'])return _0x4cdb95;let {i:_0x12937c,off:_0x359e27}=this['childPos'](_0x4067a8);_0x359e27&&(_0x4cdb95['append'](this['children'][_0x12937c]['split'](_0x359e27),0x0),this['children'][_0x12937c]['merge'](_0x359e27,this['children'][_0x12937c]['length'],null,!0x1,0x0,0x0),_0x12937c++);for(let _0x9d9e25=_0x12937c;_0x9d9e25<this['children']['length'];_0x9d9e25++)_0x4cdb95['append'](this['children'][_0x9d9e25],0x0);for(;_0x12937c>0x0&&0x0==this['children'][_0x12937c-0x1]['length'];)this['children'][--_0x12937c]['destroy']();return this['children']['length']=_0x12937c,this['markDirty'](),this['length']=_0x4067a8,_0x4cdb95;}['transferDOM'](_0x2ad0aa){this['dom']&&(this['markDirty'](),_0x2ad0aa['setDOM'](this['dom']),_0x2ad0aa['prevAttrs']=void 0x0===this['prevAttrs']?this['attrs']:this['prevAttrs'],this['prevAttrs']=void 0x0,this['dom']=null);}['setDeco'](_0x215dea){attrsEq(this['attrs'],_0x215dea)||(this['dom']&&(this['prevAttrs']=this['attrs'],this['markDirty']()),this['attrs']=_0x215dea);}['append'](_0x22599d,_0x2cb950){joinInlineInto(this,_0x22599d,_0x2cb950);}['addLineDeco'](_0x31c409){let _0x584b66=_0x31c409['spec']['attributes'],_0x4a6771=_0x31c409['spec']['class'];_0x584b66&&(this['attrs']=combineAttrs(_0x584b66,this['attrs']||{})),_0x4a6771&&(this['attrs']=combineAttrs({'class':_0x4a6771},this['attrs']||{}));}['domAtPos'](_0x2199ef){return inlineDOMAtPos(this,_0x2199ef);}['reuseDOM'](_0x54d0fb){'DIV'==_0x54d0fb['nodeName']&&(this['setDOM'](_0x54d0fb),this['flags']|=0x6);}['sync'](_0x3067aa,_0x5f5341){var _0x51e4e5;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'](_0x3067aa,_0x5f5341);let _0x23d8be=this['dom']['lastChild'];for(;_0x23d8be&&ContentView['get'](_0x23d8be)instanceof MarkView;)_0x23d8be=_0x23d8be['lastChild'];if(!(_0x23d8be&&this['length']&&('BR'==_0x23d8be['nodeName']||0x0!=(null===(_0x51e4e5=ContentView['get'](_0x23d8be))||void 0x0===_0x51e4e5?void 0x0:_0x51e4e5['isEditable'])||browser['ios']&&this['children']['some'](_0x4c2d51=>_0x4c2d51 instanceof TextView)))){let _0x2d7348=document['createElement']('BR');_0x2d7348['cmIgnore']=!0x0,this['dom']['appendChild'](_0x2d7348);}}['measureTextSize'](){if(0x0==this['children']['length']||this['length']>0x14)return null;let _0x30ce94,_0xe89ea0=0x0;for(let _0x1675d6 of this['children']){if(!(_0x1675d6 instanceof TextView)||/[^ -~]/['test'](_0x1675d6['text']))return null;let _0x180bc8=clientRectsFor(_0x1675d6['dom']);if(0x1!=_0x180bc8['length'])return null;_0xe89ea0+=_0x180bc8[0x0]['width'],_0x30ce94=_0x180bc8[0x0]['height'];}return _0xe89ea0?{'lineHeight':this['dom']['getBoundingClientRect']()['height'],'charWidth':_0xe89ea0/this['length'],'textHeight':_0x30ce94}:null;}['coordsAt'](_0x2133b9,_0x1fec92){let _0x562738=coordsInChildren(this,_0x2133b9,_0x1fec92);if(!this['children']['length']&&_0x562738&&this['parent']){let {heightOracle:_0x381728}=this['parent']['view']['viewState'],_0x465c22=_0x562738['bottom']-_0x562738['top'];if(Math['abs'](_0x465c22-_0x381728['lineHeight'])<0x2&&_0x381728['textHeight']<_0x465c22){let _0x2ec2bf=(_0x465c22-_0x381728['textHeight'])/0x2;return{'top':_0x562738['top']+_0x2ec2bf,'bottom':_0x562738['bottom']-_0x2ec2bf,'left':_0x562738['left'],'right':_0x562738['left']};}}return _0x562738;}['become'](_0x3f1dd9){return _0x3f1dd9 instanceof LineView&&0x0==this['children']['length']&&0x0==_0x3f1dd9['children']['length']&&attrsEq(this['attrs'],_0x3f1dd9['attrs'])&&this['breakAfter']==_0x3f1dd9['breakAfter'];}['covers'](){return!0x0;}static['find'](_0x11f86e,_0x501f57){for(let _0x52de61=0x0,_0x3a769c=0x0;_0x52de61<_0x11f86e['children']['length'];_0x52de61++){let _0x58d811=_0x11f86e['children'][_0x52de61],_0x5a7e3e=_0x3a769c+_0x58d811['length'];if(_0x5a7e3e>=_0x501f57){if(_0x58d811 instanceof LineView)return _0x58d811;if(_0x5a7e3e>_0x501f57)break;}_0x3a769c=_0x5a7e3e+_0x58d811['breakAfter'];}return null;}}class BlockWidgetView extends ContentView{constructor(_0x87da15,_0x4db95b,_0x23bacb){super(),this['widget']=_0x87da15,this['length']=_0x4db95b,this['deco']=_0x23bacb,this['breakAfter']=0x0,this['prevWidget']=null;}['merge'](_0x3f2d65,_0x53f699,_0x5373ca,_0x240948,_0x2fe6dc,_0xa1b650){return!(_0x5373ca&&(!(_0x5373ca instanceof BlockWidgetView&&this['widget']['compare'](_0x5373ca['widget']))||_0x3f2d65>0x0&&_0x2fe6dc<=0x0||_0x53f699<this['length']&&_0xa1b650<=0x0))&&(this['length']=_0x3f2d65+(_0x5373ca?_0x5373ca['length']:0x0)+(this['length']-_0x53f699),!0x0);}['domAtPos'](_0x2ce41b){return 0x0==_0x2ce41b?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0x2ce41b==this['length']);}['split'](_0x4c3f16){let _0x1bc5b1=this['length']-_0x4c3f16;this['length']=_0x4c3f16;let _0x89846e=new BlockWidgetView(this['widget'],_0x1bc5b1,this['deco']);return _0x89846e['breakAfter']=this['breakAfter'],_0x89846e;}get['children'](){return noChildren;}['sync'](_0x1ecc44){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x1ecc44)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x1ecc44)),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'](_0x1d0bbe){return _0x1d0bbe instanceof BlockWidgetView&&_0x1d0bbe['widget']['constructor']==this['widget']['constructor']&&(_0x1d0bbe['widget']['compare'](this['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x1d0bbe['widget'],this['length']=_0x1d0bbe['length'],this['deco']=_0x1d0bbe['deco'],this['breakAfter']=_0x1d0bbe['breakAfter'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x1077b1){return this['widget']['ignoreEvent'](_0x1077b1);}get['isEditable'](){return!0x1;}get['isWidget'](){return!0x0;}['coordsAt'](_0x190540,_0x28f7fb){let _0x159fc1=this['widget']['coordsAt'](this['dom'],_0x190540,_0x28f7fb);return _0x159fc1||(this['widget']instanceof BlockGapWidget?null:flattenRect(this['dom']['getBoundingClientRect'](),this['length']?0x0==_0x190540:_0x28f7fb<=0x0));}['destroy'](){super['destroy'](),this['dom']&&this['widget']['destroy'](this['dom']);}['covers'](_0x5b6759){let {startSide:_0x5c55f2,endSide:_0x3620d1}=this['deco'];return _0x5c55f2!=_0x3620d1&&(_0x5b6759<0x0?_0x5c55f2<0x0:_0x3620d1>0x0);}}class BlockGapWidget extends WidgetType{constructor(_0x400699){super(),this['height']=_0x400699;}['toDOM'](){let _0x18b154=document['createElement']('div');return _0x18b154['className']='cm-gap',this['updateDOM'](_0x18b154),_0x18b154;}['eq'](_0x48a4c0){return _0x48a4c0['height']==this['height'];}['updateDOM'](_0x3ae1b1){return _0x3ae1b1['style']['height']=this['height']+'px',!0x0;}get['editable'](){return!0x0;}get['estimatedHeight'](){return this['height'];}['ignoreEvent'](){return!0x1;}}class ContentBuilder{constructor(_0x5c4dcc,_0x179904,_0x764aee,_0x315dbf){this['doc']=_0x5c4dcc,this['pos']=_0x179904,this['end']=_0x764aee,this['disallowBlockEffectsFor']=_0x315dbf,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']=_0x5c4dcc['iter'](),this['skip']=_0x179904;}['posCovered'](){if(0x0==this['content']['length'])return!this['breakAtStart']&&this['doc']['lineAt'](this['pos'])['from']!=this['pos'];let _0x5b9bed=this['content'][this['content']['length']-0x1];return!(_0x5b9bed['breakAfter']||_0x5b9bed instanceof BlockWidgetView&&_0x5b9bed['deco']['endSide']<0x0);}['getLine'](){return this['curLine']||(this['content']['push'](this['curLine']=new LineView()),this['atCursorPos']=!0x0),this['curLine'];}['flushBuffer'](_0x390b4f=this['bufferMarks']){this['pendingBuffer']&&(this['curLine']['append'](wrapMarks(new WidgetBufferView(-0x1),_0x390b4f),_0x390b4f['length']),this['pendingBuffer']=0x0);}['addBlockWidget'](_0x4c4cf0){this['flushBuffer'](),this['curLine']=null,this['content']['push'](_0x4c4cf0);}['finish'](_0x3fce69){this['pendingBuffer']&&_0x3fce69<=this['bufferMarks']['length']?this['flushBuffer']():this['pendingBuffer']=0x0,this['posCovered']()||_0x3fce69&&this['content']['length']&&this['content'][this['content']['length']-0x1]instanceof BlockWidgetView||this['getLine']();}['buildText'](_0x1bdded,_0x1e53d2,_0xaa6364){for(;_0x1bdded>0x0;){if(this['textOff']==this['text']['length']){let {value:_0x5ae0ee,lineBreak:_0x47a31d,done:_0x4164ac}=this['cursor']['next'](this['skip']);if(this['skip']=0x0,_0x4164ac)throw new Error('Ran\x20out\x20of\x20text\x20content\x20when\x20drawing\x20inline\x20views');if(_0x47a31d){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,_0x1bdded--;continue;}this['text']=_0x5ae0ee,this['textOff']=0x0;}let _0x355751=Math['min'](this['text']['length']-this['textOff'],_0x1bdded),_0x2d23d3=Math['min'](_0x355751,0x200);this['flushBuffer'](_0x1e53d2['slice'](_0x1e53d2['length']-_0xaa6364)),this['getLine']()['append'](wrapMarks(new TextView(this['text']['slice'](this['textOff'],this['textOff']+_0x2d23d3)),_0x1e53d2),_0xaa6364),this['atCursorPos']=!0x0,this['textOff']+=_0x2d23d3,_0x1bdded-=_0x2d23d3,_0xaa6364=_0x355751<=_0x2d23d3?0x0:_0x1e53d2['length'];}}['span'](_0x376374,_0x3d1fba,_0x2ebd54,_0xdb2667){this['buildText'](_0x3d1fba-_0x376374,_0x2ebd54,_0xdb2667),this['pos']=_0x3d1fba,this['openStart']<0x0&&(this['openStart']=_0xdb2667);}['point'](_0x541443,_0x2af60f,_0x2f259b,_0x2195fb,_0x440125,_0x5eb214){if(this['disallowBlockEffectsFor'][_0x5eb214]&&_0x2f259b instanceof PointDecoration){if(_0x2f259b['block'])throw new RangeError('Block\x20decorations\x20may\x20not\x20be\x20specified\x20via\x20plugins');if(_0x2af60f>this['doc']['lineAt'](this['pos'])['to'])throw new RangeError('Decorations\x20that\x20replace\x20line\x20breaks\x20may\x20not\x20be\x20specified\x20via\x20plugins');}let _0x385236=_0x2af60f-_0x541443;if(_0x2f259b instanceof PointDecoration){if(_0x2f259b['block'])_0x2f259b['startSide']>0x0&&!this['posCovered']()&&this['getLine'](),this['addBlockWidget'](new BlockWidgetView(_0x2f259b['widget']||NullWidget['block'],_0x385236,_0x2f259b));else{let _0x5c5469=WidgetView['create'](_0x2f259b['widget']||NullWidget['inline'],_0x385236,_0x385236?0x0:_0x2f259b['startSide']),_0x4f8374=this['atCursorPos']&&!_0x5c5469['isEditable']&&_0x440125<=_0x2195fb['length']&&(_0x541443<_0x2af60f||_0x2f259b['startSide']>0x0),_0x4ab0a0=!_0x5c5469['isEditable']&&(_0x541443<_0x2af60f||_0x440125>_0x2195fb['length']||_0x2f259b['startSide']<=0x0),_0x399ea5=this['getLine']();0x2!=this['pendingBuffer']||_0x4f8374||_0x5c5469['isEditable']||(this['pendingBuffer']=0x0),this['flushBuffer'](_0x2195fb),_0x4f8374&&(_0x399ea5['append'](wrapMarks(new WidgetBufferView(0x1),_0x2195fb),_0x440125),_0x440125=_0x2195fb['length']+Math['max'](0x0,_0x440125-_0x2195fb['length'])),_0x399ea5['append'](wrapMarks(_0x5c5469,_0x2195fb),_0x440125),this['atCursorPos']=_0x4ab0a0,this['pendingBuffer']=_0x4ab0a0?_0x541443<_0x2af60f||_0x440125>_0x2195fb['length']?0x1:0x2:0x0,this['pendingBuffer']&&(this['bufferMarks']=_0x2195fb['slice']());}}else this['doc']['lineAt'](this['pos'])['from']==this['pos']&&this['getLine']()['addLineDeco'](_0x2f259b);_0x385236&&(this['textOff']+_0x385236<=this['text']['length']?this['textOff']+=_0x385236:(this['skip']+=_0x385236-(this['text']['length']-this['textOff']),this['text']='',this['textOff']=0x0),this['pos']=_0x2af60f),this['openStart']<0x0&&(this['openStart']=_0x440125);}static['build'](_0x229fd7,_0x23dcb9,_0x38f07c,_0x1fe84e,_0x594de3){let _0x260e05=new ContentBuilder(_0x229fd7,_0x23dcb9,_0x38f07c,_0x594de3);return _0x260e05['openEnd']=RangeSet['spans'](_0x1fe84e,_0x23dcb9,_0x38f07c,_0x260e05),_0x260e05['openStart']<0x0&&(_0x260e05['openStart']=_0x260e05['openEnd']),_0x260e05['finish'](_0x260e05['openEnd']),_0x260e05;}}function wrapMarks(_0x389d84,_0x17f416){for(let _0x1c5a94 of _0x17f416)_0x389d84=new MarkView(_0x1c5a94,[_0x389d84],_0x389d84['length']);return _0x389d84;}class NullWidget extends WidgetType{constructor(_0x345dc4){super(),this['tag']=_0x345dc4;}['eq'](_0x45b263){return _0x45b263['tag']==this['tag'];}['toDOM'](){return document['createElement'](this['tag']);}['updateDOM'](_0x30a80){return _0x30a80['nodeName']['toLowerCase']()==this['tag'];}get['isHidden'](){return!0x0;}}NullWidget['inline']=new NullWidget('span'),NullWidget['block']=new NullWidget('div');var Direction=function(_0x4a8fab){return _0x4a8fab[_0x4a8fab['LTR']=0x0]='LTR',_0x4a8fab[_0x4a8fab['RTL']=0x1]='RTL',_0x4a8fab;}(Direction||(Direction={}));const LTR=Direction['LTR'],RTL=Direction['RTL'];function dec(_0x1c63c7){let _0x2741a2=[];for(let _0x3895ca=0x0;_0x3895ca<_0x1c63c7['length'];_0x3895ca++)_0x2741a2['push'](0x1<<+_0x1c63c7[_0x3895ca]);return _0x2741a2;}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(_0x262058){return _0x262058<=0xf7?LowTypes[_0x262058]:0x590<=_0x262058&&_0x262058<=0x5f4?0x2:0x600<=_0x262058&&_0x262058<=0x6f9?ArabicTypes[_0x262058-0x600]:0x6ee<=_0x262058&&_0x262058<=0x8ac?0x4:0x2000<=_0x262058&&_0x262058<=0x200c?0x100:0xfb50<=_0x262058&&_0x262058<=0xfdff?0x4:0x1;}const BidiRE=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class BidiSpan{get['dir'](){return this['level']%0x2?RTL:LTR;}constructor(_0x561f88,_0xc095b7,_0x537a4c){this['from']=_0x561f88,this['to']=_0xc095b7,this['level']=_0x537a4c;}['side'](_0x4719ac,_0x35011b){return this['dir']==_0x35011b==_0x4719ac?this['to']:this['from'];}['forward'](_0x28d527,_0x1844bb){return _0x28d527==(this['dir']==_0x1844bb);}static['find'](_0x38c4d7,_0x215e15,_0xcf1455,_0x13ac2a){let _0x370d77=-0x1;for(let _0x279447=0x0;_0x279447<_0x38c4d7['length'];_0x279447++){let _0x3c5779=_0x38c4d7[_0x279447];if(_0x3c5779['from']<=_0x215e15&&_0x3c5779['to']>=_0x215e15){if(_0x3c5779['level']==_0xcf1455)return _0x279447;(_0x370d77<0x0||(0x0!=_0x13ac2a?_0x13ac2a<0x0?_0x3c5779['from']<_0x215e15:_0x3c5779['to']>_0x215e15:_0x38c4d7[_0x370d77]['level']>_0x3c5779['level']))&&(_0x370d77=_0x279447);}}if(_0x370d77<0x0)throw new RangeError('Index\x20out\x20of\x20range');return _0x370d77;}}function isolatesEq(_0x3c7b97,_0x44c512){if(_0x3c7b97['length']!=_0x44c512['length'])return!0x1;for(let _0xbecb51=0x0;_0xbecb51<_0x3c7b97['length'];_0xbecb51++){let _0x3bbbbb=_0x3c7b97[_0xbecb51],_0x30125e=_0x44c512[_0xbecb51];if(_0x3bbbbb['from']!=_0x30125e['from']||_0x3bbbbb['to']!=_0x30125e['to']||_0x3bbbbb['direction']!=_0x30125e['direction']||!isolatesEq(_0x3bbbbb['inner'],_0x30125e['inner']))return!0x1;}return!0x0;}const types=[];function computeCharTypes(_0x15a996,_0x19665a,_0x25ed79,_0xed8ec4,_0x39be1e){for(let _0x3982cd=0x0;_0x3982cd<=_0xed8ec4['length'];_0x3982cd++){let _0x3c7040=_0x3982cd?_0xed8ec4[_0x3982cd-0x1]['to']:_0x19665a,_0x483d6d=_0x3982cd<_0xed8ec4['length']?_0xed8ec4[_0x3982cd]['from']:_0x25ed79,_0x5ed7b2=_0x3982cd?0x100:_0x39be1e;for(let _0x86a030=_0x3c7040,_0x25218c=_0x5ed7b2,_0x391ee3=_0x5ed7b2;_0x86a030<_0x483d6d;_0x86a030++){let _0x3f8463=charType(_0x15a996['charCodeAt'](_0x86a030));0x200==_0x3f8463?_0x3f8463=_0x25218c:0x8==_0x3f8463&&0x4==_0x391ee3&&(_0x3f8463=0x10),types[_0x86a030]=0x4==_0x3f8463?0x2:_0x3f8463,0x7&_0x3f8463&&(_0x391ee3=_0x3f8463),_0x25218c=_0x3f8463;}for(let _0x300f57=_0x3c7040,_0x42e601=_0x5ed7b2,_0x21d7b8=_0x5ed7b2;_0x300f57<_0x483d6d;_0x300f57++){let _0x5f4b7f=types[_0x300f57];if(0x80==_0x5f4b7f)_0x300f57<_0x483d6d-0x1&&_0x42e601==types[_0x300f57+0x1]&&0x18&_0x42e601?_0x5f4b7f=types[_0x300f57]=_0x42e601:types[_0x300f57]=0x100;else{if(0x40==_0x5f4b7f){let _0x210f29=_0x300f57+0x1;for(;_0x210f29<_0x483d6d&&0x40==types[_0x210f29];)_0x210f29++;let _0x5b9e21=_0x300f57&&0x8==_0x42e601||_0x210f29<_0x25ed79&&0x8==types[_0x210f29]?0x1==_0x21d7b8?0x1:0x8:0x100;for(let _0x4aacfa=_0x300f57;_0x4aacfa<_0x210f29;_0x4aacfa++)types[_0x4aacfa]=_0x5b9e21;_0x300f57=_0x210f29-0x1;}else 0x8==_0x5f4b7f&&0x1==_0x21d7b8&&(types[_0x300f57]=0x1);}_0x42e601=_0x5f4b7f,0x7&_0x5f4b7f&&(_0x21d7b8=_0x5f4b7f);}}}function processBracketPairs(_0x378246,_0x4bed1d,_0xa756e2,_0x4d811b,_0x16ce45){let _0x4e57a1=0x1==_0x16ce45?0x2:0x1;for(let _0x2c98ec=0x0,_0x441f1e=0x0,_0x281867=0x0;_0x2c98ec<=_0x4d811b['length'];_0x2c98ec++){let _0x2aabe0=_0x2c98ec?_0x4d811b[_0x2c98ec-0x1]['to']:_0x4bed1d,_0x425e44=_0x2c98ec<_0x4d811b['length']?_0x4d811b[_0x2c98ec]['from']:_0xa756e2;for(let _0x15d4e6,_0x573ac9,_0x5ae947,_0x9ee7d1=_0x2aabe0;_0x9ee7d1<_0x425e44;_0x9ee7d1++)if(_0x573ac9=Brackets[_0x15d4e6=_0x378246['charCodeAt'](_0x9ee7d1)]){if(_0x573ac9<0x0){for(let _0x5a9379=_0x441f1e-0x3;_0x5a9379>=0x0;_0x5a9379-=0x3)if(BracketStack[_0x5a9379+0x1]==-_0x573ac9){let _0x4818b2=BracketStack[_0x5a9379+0x2],_0x251cb0=0x2&_0x4818b2?_0x16ce45:0x4&_0x4818b2?0x1&_0x4818b2?_0x4e57a1:_0x16ce45:0x0;_0x251cb0&&(types[_0x9ee7d1]=types[BracketStack[_0x5a9379]]=_0x251cb0),_0x441f1e=_0x5a9379;break;}}else{if(0xbd==BracketStack['length'])break;BracketStack[_0x441f1e++]=_0x9ee7d1,BracketStack[_0x441f1e++]=_0x15d4e6,BracketStack[_0x441f1e++]=_0x281867;}}else{if(0x2==(_0x5ae947=types[_0x9ee7d1])||0x1==_0x5ae947){let _0xea0c1b=_0x5ae947==_0x16ce45;_0x281867=_0xea0c1b?0x0:0x1;for(let _0x181432=_0x441f1e-0x3;_0x181432>=0x0;_0x181432-=0x3){let _0x58b9e0=BracketStack[_0x181432+0x2];if(0x2&_0x58b9e0)break;if(_0xea0c1b)BracketStack[_0x181432+0x2]|=0x2;else{if(0x4&_0x58b9e0)break;BracketStack[_0x181432+0x2]|=0x4;}}}}}}function processNeutrals(_0x533c9e,_0x4a3e3f,_0x58d3f2,_0x502cd2){for(let _0x420296=0x0,_0x15d026=_0x502cd2;_0x420296<=_0x58d3f2['length'];_0x420296++){let _0x593c26=_0x420296?_0x58d3f2[_0x420296-0x1]['to']:_0x533c9e,_0x36ba39=_0x420296<_0x58d3f2['length']?_0x58d3f2[_0x420296]['from']:_0x4a3e3f;for(let _0x16a060=_0x593c26;_0x16a060<_0x36ba39;){let _0x52beed=types[_0x16a060];if(0x100==_0x52beed){let _0xa9a835=_0x16a060+0x1;for(;;)if(_0xa9a835==_0x36ba39){if(_0x420296==_0x58d3f2['length'])break;_0xa9a835=_0x58d3f2[_0x420296++]['to'],_0x36ba39=_0x420296<_0x58d3f2['length']?_0x58d3f2[_0x420296]['from']:_0x4a3e3f;}else{if(0x100!=types[_0xa9a835])break;_0xa9a835++;}let _0x4619e3=0x1==_0x15d026,_0x2a2369=_0x4619e3==(0x1==(_0xa9a835<_0x4a3e3f?types[_0xa9a835]:_0x502cd2))?_0x4619e3?0x1:0x2:_0x502cd2;for(let _0x551920=_0xa9a835,_0x5ada28=_0x420296,_0x441014=_0x5ada28?_0x58d3f2[_0x5ada28-0x1]['to']:_0x533c9e;_0x551920>_0x16a060;)_0x551920==_0x441014&&(_0x551920=_0x58d3f2[--_0x5ada28]['from'],_0x441014=_0x5ada28?_0x58d3f2[_0x5ada28-0x1]['to']:_0x533c9e),types[--_0x551920]=_0x2a2369;_0x16a060=_0xa9a835;}else _0x15d026=_0x52beed,_0x16a060++;}}}function emitSpans(_0x1fcc90,_0x32ae94,_0x40436f,_0x4b5ca2,_0x901ad8,_0x23a0db,_0xbdb209){let _0xff6350=_0x4b5ca2%0x2?0x2:0x1;if(_0x4b5ca2%0x2==_0x901ad8%0x2)for(let _0x1ce049=_0x32ae94,_0x5d47b4=0x0;_0x1ce049<_0x40436f;){let _0x363341=!0x0,_0x459b65=!0x1;if(_0x5d47b4==_0x23a0db['length']||_0x1ce049<_0x23a0db[_0x5d47b4]['from']){let _0x322905=types[_0x1ce049];_0x322905!=_0xff6350&&(_0x363341=!0x1,_0x459b65=0x10==_0x322905);}let _0x249986=_0x363341||0x1!=_0xff6350?null:[],_0x4ce6bd=_0x363341?_0x4b5ca2:_0x4b5ca2+0x1,_0x2c25ec=_0x1ce049;t:for(;;)if(_0x5d47b4<_0x23a0db['length']&&_0x2c25ec==_0x23a0db[_0x5d47b4]['from']){if(_0x459b65)break t;let _0x43de8e=_0x23a0db[_0x5d47b4];if(!_0x363341)for(let _0xad6061=_0x43de8e['to'],_0x35b1df=_0x5d47b4+0x1;;){if(_0xad6061==_0x40436f)break t;if(!(_0x35b1df<_0x23a0db['length']&&_0x23a0db[_0x35b1df]['from']==_0xad6061)){if(types[_0xad6061]==_0xff6350)break t;break;}_0xad6061=_0x23a0db[_0x35b1df++]['to'];}if(_0x5d47b4++,_0x249986)_0x249986['push'](_0x43de8e);else _0x43de8e['from']>_0x1ce049&&_0xbdb209['push'](new BidiSpan(_0x1ce049,_0x43de8e['from'],_0x4ce6bd)),computeSectionOrder(_0x1fcc90,_0x43de8e['direction']==LTR!=!(_0x4ce6bd%0x2)?_0x4b5ca2+0x1:_0x4b5ca2,_0x901ad8,_0x43de8e['inner'],_0x43de8e['from'],_0x43de8e['to'],_0xbdb209),_0x1ce049=_0x43de8e['to'];_0x2c25ec=_0x43de8e['to'];}else{if(_0x2c25ec==_0x40436f||(_0x363341?types[_0x2c25ec]!=_0xff6350:types[_0x2c25ec]==_0xff6350))break;_0x2c25ec++;}_0x249986?emitSpans(_0x1fcc90,_0x1ce049,_0x2c25ec,_0x4b5ca2+0x1,_0x901ad8,_0x249986,_0xbdb209):_0x1ce049<_0x2c25ec&&_0xbdb209['push'](new BidiSpan(_0x1ce049,_0x2c25ec,_0x4ce6bd)),_0x1ce049=_0x2c25ec;}else for(let _0x1d3b81=_0x40436f,_0x14633a=_0x23a0db['length'];_0x1d3b81>_0x32ae94;){let _0x384161=!0x0,_0x1e96a0=!0x1;if(!_0x14633a||_0x1d3b81>_0x23a0db[_0x14633a-0x1]['to']){let _0x5d2e8c=types[_0x1d3b81-0x1];_0x5d2e8c!=_0xff6350&&(_0x384161=!0x1,_0x1e96a0=0x10==_0x5d2e8c);}let _0x48fc5b=_0x384161||0x1!=_0xff6350?null:[],_0x4a39e4=_0x384161?_0x4b5ca2:_0x4b5ca2+0x1,_0x343d12=_0x1d3b81;t:for(;;)if(_0x14633a&&_0x343d12==_0x23a0db[_0x14633a-0x1]['to']){if(_0x1e96a0)break t;let _0x5f37f6=_0x23a0db[--_0x14633a];if(!_0x384161)for(let _0x5a8c84=_0x5f37f6['from'],_0x31c4b6=_0x14633a;;){if(_0x5a8c84==_0x32ae94)break t;if(!_0x31c4b6||_0x23a0db[_0x31c4b6-0x1]['to']!=_0x5a8c84){if(types[_0x5a8c84-0x1]==_0xff6350)break t;break;}_0x5a8c84=_0x23a0db[--_0x31c4b6]['from'];}if(_0x48fc5b)_0x48fc5b['push'](_0x5f37f6);else _0x5f37f6['to']<_0x1d3b81&&_0xbdb209['push'](new BidiSpan(_0x5f37f6['to'],_0x1d3b81,_0x4a39e4)),computeSectionOrder(_0x1fcc90,_0x5f37f6['direction']==LTR!=!(_0x4a39e4%0x2)?_0x4b5ca2+0x1:_0x4b5ca2,_0x901ad8,_0x5f37f6['inner'],_0x5f37f6['from'],_0x5f37f6['to'],_0xbdb209),_0x1d3b81=_0x5f37f6['from'];_0x343d12=_0x5f37f6['from'];}else{if(_0x343d12==_0x32ae94||(_0x384161?types[_0x343d12-0x1]!=_0xff6350:types[_0x343d12-0x1]==_0xff6350))break;_0x343d12--;}_0x48fc5b?emitSpans(_0x1fcc90,_0x343d12,_0x1d3b81,_0x4b5ca2+0x1,_0x901ad8,_0x48fc5b,_0xbdb209):_0x343d12<_0x1d3b81&&_0xbdb209['push'](new BidiSpan(_0x343d12,_0x1d3b81,_0x4a39e4)),_0x1d3b81=_0x343d12;}}function computeSectionOrder(_0x597dcc,_0x43fbc5,_0x2fb226,_0x2714d7,_0x3eb069,_0x43f097,_0x12f435){let _0x3b96e5=_0x43fbc5%0x2?0x2:0x1;computeCharTypes(_0x597dcc,_0x3eb069,_0x43f097,_0x2714d7,_0x3b96e5),processBracketPairs(_0x597dcc,_0x3eb069,_0x43f097,_0x2714d7,_0x3b96e5),processNeutrals(_0x3eb069,_0x43f097,_0x2714d7,_0x3b96e5),emitSpans(_0x597dcc,_0x3eb069,_0x43f097,_0x43fbc5,_0x2fb226,_0x2714d7,_0x12f435);}function computeOrder(_0x1fd834,_0x5065ec,_0x38ef84){if(!_0x1fd834)return[new BidiSpan(0x0,0x0,_0x5065ec==RTL?0x1:0x0)];if(_0x5065ec==LTR&&!_0x38ef84['length']&&!BidiRE['test'](_0x1fd834))return trivialOrder(_0x1fd834['length']);if(_0x38ef84['length']){for(;_0x1fd834['length']>types['length'];)types[types['length']]=0x100;}let _0x27498c=[],_0x296cc2=_0x5065ec==LTR?0x0:0x1;return computeSectionOrder(_0x1fd834,_0x296cc2,_0x296cc2,_0x38ef84,0x0,_0x1fd834['length'],_0x27498c),_0x27498c;}function trivialOrder(_0x16769d){return[new BidiSpan(0x0,_0x16769d,0x0)];}let movedOver='';function moveVisually(_0x2d8de0,_0x5079fe,_0x4eb065,_0xc59fb5,_0x1efbdb){var _0xf2ae0f;let _0x274160=_0xc59fb5['head']-_0x2d8de0['from'],_0x20081e=BidiSpan['find'](_0x5079fe,_0x274160,null!==(_0xf2ae0f=_0xc59fb5['bidiLevel'])&&void 0x0!==_0xf2ae0f?_0xf2ae0f:-0x1,_0xc59fb5['assoc']),_0x1e89c9=_0x5079fe[_0x20081e],_0x50c335=_0x1e89c9['side'](_0x1efbdb,_0x4eb065);if(_0x274160==_0x50c335){let _0xe6259c=_0x20081e+=_0x1efbdb?0x1:-0x1;if(_0xe6259c<0x0||_0xe6259c>=_0x5079fe['length'])return null;_0x1e89c9=_0x5079fe[_0x20081e=_0xe6259c],_0x274160=_0x1e89c9['side'](!_0x1efbdb,_0x4eb065),_0x50c335=_0x1e89c9['side'](_0x1efbdb,_0x4eb065);}let _0x2d0ca4=findClusterBreak(_0x2d8de0['text'],_0x274160,_0x1e89c9['forward'](_0x1efbdb,_0x4eb065));(_0x2d0ca4<_0x1e89c9['from']||_0x2d0ca4>_0x1e89c9['to'])&&(_0x2d0ca4=_0x50c335),movedOver=_0x2d8de0['text']['slice'](Math['min'](_0x274160,_0x2d0ca4),Math['max'](_0x274160,_0x2d0ca4));let _0x5d5714=_0x20081e==(_0x1efbdb?_0x5079fe['length']-0x1:0x0)?null:_0x5079fe[_0x20081e+(_0x1efbdb?0x1:-0x1)];return _0x5d5714&&_0x2d0ca4==_0x50c335&&_0x5d5714['level']+(_0x1efbdb?0x0:0x1)<_0x1e89c9['level']?EditorSelection['cursor'](_0x5d5714['side'](!_0x1efbdb,_0x4eb065)+_0x2d8de0['from'],_0x5d5714['forward'](_0x1efbdb,_0x4eb065)?0x1:-0x1,_0x5d5714['level']):EditorSelection['cursor'](_0x2d0ca4+_0x2d8de0['from'],_0x1e89c9['forward'](_0x1efbdb,_0x4eb065)?-0x1:0x1,_0x1e89c9['level']);}function autoDirection(_0x58f3f5,_0x43040c,_0x29ea5d){for(let _0xbc4204=_0x43040c;_0xbc4204<_0x29ea5d;_0xbc4204++){let _0x62e976=charType(_0x58f3f5['charCodeAt'](_0xbc4204));if(0x1==_0x62e976)return LTR;if(0x2==_0x62e976||0x4==_0x62e976)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':_0x2e063c=>_0x2e063c['some'](_0x1316d9=>_0x1316d9)}),nativeSelectionHidden=Facet['define']({'combine':_0x50b8b0=>_0x50b8b0['some'](_0x4328e7=>_0x4328e7)}),scrollHandler=Facet['define']();class ScrollTarget{constructor(_0x47e5e9,_0x116c81='nearest',_0x4e95cc='nearest',_0x3199de=0x5,_0x184cfc=0x5,_0x37aef6=!0x1){this['range']=_0x47e5e9,this['y']=_0x116c81,this['x']=_0x4e95cc,this['yMargin']=_0x3199de,this['xMargin']=_0x184cfc,this['isSnapshot']=_0x37aef6;}['map'](_0x1973a6){return _0x1973a6['empty']?this:new ScrollTarget(this['range']['map'](_0x1973a6),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}['clip'](_0x1a63b0){return this['range']['to']<=_0x1a63b0['doc']['length']?this:new ScrollTarget(EditorSelection['cursor'](_0x1a63b0['doc']['length']),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}}const scrollIntoView$1=StateEffect['define']({'map':(t,_0xb47f85)=>t['map'](_0xb47f85)}),setEditContextFormatting=StateEffect['define']();function logException(_0x229845,_0x308a1d,_0x2b3411){let _0x5b9a18=_0x229845['facet'](exceptionSink);_0x5b9a18['length']?_0x5b9a18[0x0](_0x308a1d):window['onerror']&&window['onerror'](String(_0x308a1d),_0x2b3411,void 0x0,void 0x0,_0x308a1d)||(_0x2b3411?console['error'](_0x2b3411+':',_0x308a1d):console['error'](_0x308a1d));}const editable=Facet['define']({'combine':_0x2d08e4=>!_0x2d08e4['length']||_0x2d08e4[0x0]});let nextPluginID=0x0;const viewPlugin=Facet['define']({'combine':_0x323838=>_0x323838['filter']((_0x5d9b0f,_0x48f95b)=>{for(let _0x1f16d0=0x0;_0x1f16d0<_0x48f95b;_0x1f16d0++)if(_0x323838[_0x1f16d0]['plugin']==_0x5d9b0f['plugin'])return!0x1;return!0x0;})});class ViewPlugin{constructor(_0x33c482,_0x2ef4db,_0x448c24,_0x32ac48,_0x2fd334){this['id']=_0x33c482,this['create']=_0x2ef4db,this['domEventHandlers']=_0x448c24,this['domEventObservers']=_0x32ac48,this['baseExtensions']=_0x2fd334(this),this['extension']=this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':void 0x0}));}['of'](_0x3e8cff){return this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':_0x3e8cff}));}static['define'](_0x51d6e2,_0x41ac2b){const {eventHandlers:_0x24e102,eventObservers:_0x2a8b15,provide:_0x2b35e1,decorations:_0x2083d4}=_0x41ac2b||{};return new ViewPlugin(nextPluginID++,_0x51d6e2,_0x24e102,_0x2a8b15,_0x83d066=>{let _0x53eff3=[];return _0x2083d4&&_0x53eff3['push'](decorations['of'](_0x296963=>{let _0x213f82=_0x296963['plugin'](_0x83d066);return _0x213f82?_0x2083d4(_0x213f82):Decoration['none'];})),_0x2b35e1&&_0x53eff3['push'](_0x2b35e1(_0x83d066)),_0x53eff3;});}static['fromClass'](_0x2aad7d,_0x21fb46){return ViewPlugin['define']((_0x173b98,_0x411cba)=>new _0x2aad7d(_0x173b98,_0x411cba),_0x21fb46);}}class PluginInstance{constructor(_0x22c129){this['spec']=_0x22c129,this['mustUpdate']=null,this['value']=null;}get['plugin'](){return this['spec']&&this['spec']['plugin'];}['update'](_0x1aac00){if(this['value']){if(this['mustUpdate']){let _0x1bd2bf=this['mustUpdate'];if(this['mustUpdate']=null,this['value']['update'])try{this['value']['update'](_0x1bd2bf);}catch(_0x590d9e){if(logException(_0x1bd2bf['state'],_0x590d9e,'CodeMirror\x20plugin\x20crashed'),this['value']['destroy'])try{this['value']['destroy']();}catch(_0x4e7c5a){}this['deactivate']();}}}else{if(this['spec'])try{this['value']=this['spec']['plugin']['create'](_0x1aac00,this['spec']['arg']);}catch(_0x36f8ee){logException(_0x1aac00['state'],_0x36f8ee,'CodeMirror\x20plugin\x20crashed'),this['deactivate']();}}return this;}['destroy'](_0x30ed87){var _0x19cabd;if(null===(_0x19cabd=this['value'])||void 0x0===_0x19cabd?void 0x0:_0x19cabd['destroy'])try{this['value']['destroy']();}catch(_0x4d0da4){logException(_0x30ed87['state'],_0x4d0da4,'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(_0x42517f,_0x10434e){let _0x7529e3=_0x42517f['state']['facet'](bidiIsolatedRanges);if(!_0x7529e3['length'])return _0x7529e3;let _0x39e18f=_0x7529e3['map'](_0x2ac946=>_0x2ac946 instanceof Function?_0x2ac946(_0x42517f):_0x2ac946),_0xa10e7f=[];return RangeSet['spans'](_0x39e18f,_0x10434e['from'],_0x10434e['to'],{'point'(){},'span'(_0x392f85,_0x53c7c2,_0x1678d3,_0x3303f4){let _0x48b275=_0x392f85-_0x10434e['from'],_0x4c94fa=_0x53c7c2-_0x10434e['from'],_0x44c885=_0xa10e7f;for(let _0x24ee29=_0x1678d3['length']-0x1;_0x24ee29>=0x0;_0x24ee29--,_0x3303f4--){let _0x2fdbfe,_0x1189b5=_0x1678d3[_0x24ee29]['spec']['bidiIsolate'];if(null==_0x1189b5&&(_0x1189b5=autoDirection(_0x10434e['text'],_0x48b275,_0x4c94fa)),_0x3303f4>0x0&&_0x44c885['length']&&(_0x2fdbfe=_0x44c885[_0x44c885['length']-0x1])['to']==_0x48b275&&_0x2fdbfe['direction']==_0x1189b5)_0x2fdbfe['to']=_0x4c94fa,_0x44c885=_0x2fdbfe['inner'];else{let _0x2120d7={'from':_0x48b275,'to':_0x4c94fa,'direction':_0x1189b5,'inner':[]};_0x44c885['push'](_0x2120d7),_0x44c885=_0x2120d7['inner'];}}}}),_0xa10e7f;}const scrollMargins=Facet['define']();function getScrollMargins(_0x24e68e){let _0x19a893=0x0,_0x3bc205=0x0,_0x1be022=0x0,_0x32961c=0x0;for(let _0x1266e8 of _0x24e68e['state']['facet'](scrollMargins)){let _0x57c7fa=_0x1266e8(_0x24e68e);_0x57c7fa&&(null!=_0x57c7fa['left']&&(_0x19a893=Math['max'](_0x19a893,_0x57c7fa['left'])),null!=_0x57c7fa['right']&&(_0x3bc205=Math['max'](_0x3bc205,_0x57c7fa['right'])),null!=_0x57c7fa['top']&&(_0x1be022=Math['max'](_0x1be022,_0x57c7fa['top'])),null!=_0x57c7fa['bottom']&&(_0x32961c=Math['max'](_0x32961c,_0x57c7fa['bottom'])));}return{'left':_0x19a893,'right':_0x3bc205,'top':_0x1be022,'bottom':_0x32961c};}const styleModule=Facet['define']();class ChangedRange{constructor(_0xbd4171,_0x2d94d4,_0x5ae16a,_0x2ebba2){this['fromA']=_0xbd4171,this['toA']=_0x2d94d4,this['fromB']=_0x5ae16a,this['toB']=_0x2ebba2;}['join'](_0x457372){return new ChangedRange(Math['min'](this['fromA'],_0x457372['fromA']),Math['max'](this['toA'],_0x457372['toA']),Math['min'](this['fromB'],_0x457372['fromB']),Math['max'](this['toB'],_0x457372['toB']));}['addToSet'](_0x4e827a){let _0x35fa2c=_0x4e827a['length'],_0x4c2cba=this;for(;_0x35fa2c>0x0;_0x35fa2c--){let _0x22f3ca=_0x4e827a[_0x35fa2c-0x1];if(!(_0x22f3ca['fromA']>_0x4c2cba['toA'])){if(_0x22f3ca['toA']<_0x4c2cba['fromA'])break;_0x4c2cba=_0x4c2cba['join'](_0x22f3ca),_0x4e827a['splice'](_0x35fa2c-0x1,0x1);}}return _0x4e827a['splice'](_0x35fa2c,0x0,_0x4c2cba),_0x4e827a;}static['extendWithRanges'](_0x2affee,_0x5b8576){if(0x0==_0x5b8576['length'])return _0x2affee;let _0x25aba2=[];for(let _0x48fa68=0x0,_0x354856=0x0,_0x755ad7=0x0,_0x1309ba=0x0;;_0x48fa68++){let _0x3fdb52=_0x48fa68==_0x2affee['length']?null:_0x2affee[_0x48fa68],_0x2af8c0=_0x755ad7-_0x1309ba,_0x4c3e59=_0x3fdb52?_0x3fdb52['fromB']:0x3b9aca00;for(;_0x354856<_0x5b8576['length']&&_0x5b8576[_0x354856]<_0x4c3e59;){let _0x2e13a0=_0x5b8576[_0x354856],_0x56d8ce=_0x5b8576[_0x354856+0x1],_0x4258f1=Math['max'](_0x1309ba,_0x2e13a0),_0x291d89=Math['min'](_0x4c3e59,_0x56d8ce);if(_0x4258f1<=_0x291d89&&new ChangedRange(_0x4258f1+_0x2af8c0,_0x291d89+_0x2af8c0,_0x4258f1,_0x291d89)['addToSet'](_0x25aba2),_0x56d8ce>_0x4c3e59)break;_0x354856+=0x2;}if(!_0x3fdb52)return _0x25aba2;new ChangedRange(_0x3fdb52['fromA'],_0x3fdb52['toA'],_0x3fdb52['fromB'],_0x3fdb52['toB'])['addToSet'](_0x25aba2),_0x755ad7=_0x3fdb52['toA'],_0x1309ba=_0x3fdb52['toB'];}}}class ViewUpdate{constructor(_0x413a54,_0x26fc7b,_0x539cf6){this['view']=_0x413a54,this['state']=_0x26fc7b,this['transactions']=_0x539cf6,this['flags']=0x0,this['startState']=_0x413a54['state'],this['changes']=ChangeSet['empty'](this['startState']['doc']['length']);for(let _0x2fb0df of _0x539cf6)this['changes']=this['changes']['compose'](_0x2fb0df['changes']);let _0x45bc72=[];this['changes']['iterChangedRanges']((_0x159e41,_0x181393,_0x1b748e,_0x1fd179)=>_0x45bc72['push'](new ChangedRange(_0x159e41,_0x181393,_0x1b748e,_0x1fd179))),this['changedRanges']=_0x45bc72;}static['create'](_0x39c888,_0x55ac33,_0x267f23){return new ViewUpdate(_0x39c888,_0x55ac33,_0x267f23);}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'](_0xd040f6=>_0xd040f6['selection']);}get['empty'](){return 0x0==this['flags']&&0x0==this['transactions']['length'];}}class DocView extends ContentView{get['length'](){return this['view']['state']['doc']['length'];}constructor(_0x2ade7b){super(),this['view']=_0x2ade7b,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'](_0x2ade7b['contentDOM']),this['children']=[new LineView()],this['children'][0x0]['setParent'](this),this['updateDeco'](),this['updateInner']([new ChangedRange(0x0,0x0,0x0,_0x2ade7b['state']['doc']['length'])],0x0,null);}['update'](_0x3c6a5e){var _0x517e32;let _0x5235fe=_0x3c6a5e['changedRanges'];this['minWidth']>0x0&&_0x5235fe['length']&&(_0x5235fe['every'](({fromA:_0x5a3003,toA:_0x451a1c})=>_0x451a1c<this['minWidthFrom']||_0x5a3003>this['minWidthTo'])?(this['minWidthFrom']=_0x3c6a5e['changes']['mapPos'](this['minWidthFrom'],0x1),this['minWidthTo']=_0x3c6a5e['changes']['mapPos'](this['minWidthTo'],0x1)):this['minWidth']=this['minWidthFrom']=this['minWidthTo']=0x0),this['updateEditContextFormatting'](_0x3c6a5e);let _0x10d59c=-0x1;this['view']['inputState']['composing']>=0x0&&!this['view']['observer']['editContext']&&((null===(_0x517e32=this['domChanged'])||void 0x0===_0x517e32?void 0x0:_0x517e32['newSel'])?_0x10d59c=this['domChanged']['newSel']['head']:touchesComposition(_0x3c6a5e['changes'],this['hasComposition'])||_0x3c6a5e['selectionSet']||(_0x10d59c=_0x3c6a5e['state']['selection']['main']['head']));let _0x5ae582=_0x10d59c>-0x1?findCompositionRange(this['view'],_0x3c6a5e['changes'],_0x10d59c):null;if(this['domChanged']=null,this['hasComposition']){this['markedForComposition']['clear']();let {from:_0x45f81a,to:_0x129fc6}=this['hasComposition'];_0x5235fe=new ChangedRange(_0x45f81a,_0x129fc6,_0x3c6a5e['changes']['mapPos'](_0x45f81a,-0x1),_0x3c6a5e['changes']['mapPos'](_0x129fc6,0x1))['addToSet'](_0x5235fe['slice']());}this['hasComposition']=_0x5ae582?{'from':_0x5ae582['range']['fromB'],'to':_0x5ae582['range']['toB']}:null,(browser['ie']||browser['chrome'])&&!_0x5ae582&&_0x3c6a5e&&_0x3c6a5e['state']['doc']['lines']!=_0x3c6a5e['startState']['doc']['lines']&&(this['forceSelection']=!0x0);let _0xb892ed=findChangedDeco(this['decorations'],this['updateDeco'](),_0x3c6a5e['changes']);return _0x5235fe=ChangedRange['extendWithRanges'](_0x5235fe,_0xb892ed),!!(0x7&this['flags']||0x0!=_0x5235fe['length'])&&(this['updateInner'](_0x5235fe,_0x3c6a5e['startState']['doc']['length'],_0x5ae582),_0x3c6a5e['transactions']['length']&&(this['lastUpdate']=Date['now']()),!0x0);}['updateInner'](_0x30fda2,_0x5a2b3d,_0x9a799e){this['view']['viewState']['mustMeasureContent']=!0x0,this['updateChildren'](_0x30fda2,_0x5a2b3d,_0x9a799e);let {observer:_0x22243c}=this['view'];_0x22243c['ignore'](()=>{this['dom']['style']['height']=this['view']['viewState']['contentHeight']/this['view']['scaleY']+'px',this['dom']['style']['flexBasis']=this['minWidth']?this['minWidth']+'px':'';let _0x5aed6b=browser['chrome']||browser['ios']?{'node':_0x22243c['selectionRange']['focusNode'],'written':!0x1}:void 0x0;this['sync'](this['view'],_0x5aed6b),this['flags']&=-0x8,_0x5aed6b&&(_0x5aed6b['written']||_0x22243c['selectionRange']['focusNode']!=_0x5aed6b['node'])&&(this['forceSelection']=!0x0),this['dom']['style']['height']='';}),this['markedForComposition']['forEach'](_0x52c01f=>_0x52c01f['flags']&=-0x9);let _0x2ec1c1=[];if(this['view']['viewport']['from']||this['view']['viewport']['to']<this['view']['state']['doc']['length']){for(let _0x2cde61 of this['children'])_0x2cde61 instanceof BlockWidgetView&&_0x2cde61['widget']instanceof BlockGapWidget&&_0x2ec1c1['push'](_0x2cde61['dom']);}_0x22243c['updateGaps'](_0x2ec1c1);}['updateChildren'](_0x533bb2,_0x55d4a2,_0x2839dd){let _0x4362e1=_0x2839dd?_0x2839dd['range']['addToSet'](_0x533bb2['slice']()):_0x533bb2,_0x12861c=this['childCursor'](_0x55d4a2);for(let _0x305b83=_0x4362e1['length']-0x1;;_0x305b83--){let _0x32cf24=_0x305b83>=0x0?_0x4362e1[_0x305b83]:null;if(!_0x32cf24)break;let _0x55073b,_0x240e30,_0x5c6114,_0x306ce1,{fromA:_0x338448,toA:_0x41a595,fromB:_0x1fc0a6,toB:_0x5da8ee}=_0x32cf24;if(_0x2839dd&&_0x2839dd['range']['fromB']<_0x5da8ee&&_0x2839dd['range']['toB']>_0x1fc0a6){let _0x595faf=ContentBuilder['build'](this['view']['state']['doc'],_0x1fc0a6,_0x2839dd['range']['fromB'],this['decorations'],this['dynamicDecorationMap']),_0x188105=ContentBuilder['build'](this['view']['state']['doc'],_0x2839dd['range']['toB'],_0x5da8ee,this['decorations'],this['dynamicDecorationMap']);_0x240e30=_0x595faf['breakAtStart'],_0x5c6114=_0x595faf['openStart'],_0x306ce1=_0x188105['openEnd'];let _0x23c56e=this['compositionView'](_0x2839dd);_0x188105['breakAtStart']?_0x23c56e['breakAfter']=0x1:_0x188105['content']['length']&&_0x23c56e['merge'](_0x23c56e['length'],_0x23c56e['length'],_0x188105['content'][0x0],!0x1,_0x188105['openStart'],0x0)&&(_0x23c56e['breakAfter']=_0x188105['content'][0x0]['breakAfter'],_0x188105['content']['shift']()),_0x595faf['content']['length']&&_0x23c56e['merge'](0x0,0x0,_0x595faf['content'][_0x595faf['content']['length']-0x1],!0x0,0x0,_0x595faf['openEnd'])&&_0x595faf['content']['pop'](),_0x55073b=_0x595faf['content']['concat'](_0x23c56e)['concat'](_0x188105['content']);}else({content:_0x55073b,breakAtStart:_0x240e30,openStart:_0x5c6114,openEnd:_0x306ce1}=ContentBuilder['build'](this['view']['state']['doc'],_0x1fc0a6,_0x5da8ee,this['decorations'],this['dynamicDecorationMap']));let {i:_0x1ea912,off:_0x3e3ae0}=_0x12861c['findPos'](_0x41a595,0x1),{i:_0x217bda,off:_0x5e45e8}=_0x12861c['findPos'](_0x338448,-0x1);replaceRange(this,_0x217bda,_0x5e45e8,_0x1ea912,_0x3e3ae0,_0x55073b,_0x240e30,_0x5c6114,_0x306ce1);}_0x2839dd&&this['fixCompositionDOM'](_0x2839dd);}['updateEditContextFormatting'](_0x13364f){this['editContextFormatting']=this['editContextFormatting']['map'](_0x13364f['changes']);for(let _0x2df7fa of _0x13364f['transactions'])for(let _0x27818a of _0x2df7fa['effects'])_0x27818a['is'](setEditContextFormatting)&&(this['editContextFormatting']=_0x27818a['value']);}['compositionView'](_0x5a63e9){let _0x114d99=new TextView(_0x5a63e9['text']['nodeValue']);_0x114d99['flags']|=0x8;for(let {deco:_0x530409}of _0x5a63e9['marks'])_0x114d99=new MarkView(_0x530409,[_0x114d99],_0x114d99['length']);let _0x3e2b7c=new LineView();return _0x3e2b7c['append'](_0x114d99,0x0),_0x3e2b7c;}['fixCompositionDOM'](_0x12a2e4){let _0x142dc8=(_0x14c4be,_0x5e78ca)=>{_0x5e78ca['flags']|=0x8|(_0x5e78ca['children']['some'](_0x2316f7=>0x7&_0x2316f7['flags'])?0x1:0x0),this['markedForComposition']['add'](_0x5e78ca);let _0x1ad1ab=ContentView['get'](_0x14c4be);_0x1ad1ab&&_0x1ad1ab!=_0x5e78ca&&(_0x1ad1ab['dom']=null),_0x5e78ca['setDOM'](_0x14c4be);},_0x5812ed=this['childPos'](_0x12a2e4['range']['fromB'],0x1),_0x597781=this['children'][_0x5812ed['i']];_0x142dc8(_0x12a2e4['line'],_0x597781);for(let _0x1ad085=_0x12a2e4['marks']['length']-0x1;_0x1ad085>=-0x1;_0x1ad085--)_0x5812ed=_0x597781['childPos'](_0x5812ed['off'],0x1),_0x597781=_0x597781['children'][_0x5812ed['i']],_0x142dc8(_0x1ad085>=0x0?_0x12a2e4['marks'][_0x1ad085]['node']:_0x12a2e4['text'],_0x597781);}['updateSelection'](_0x4f1985=!0x1,_0x3ef71a=!0x1){!_0x4f1985&&this['view']['observer']['selectionRange']['focusNode']||this['view']['observer']['readSelectionRange']();let _0x40555d=this['view']['root']['activeElement'],_0x2e9770=_0x40555d==this['dom'],_0x375c1d=!_0x2e9770&&!(this['view']['state']['facet'](editable)||this['dom']['tabIndex']>-0x1)&&hasSelection(this['dom'],this['view']['observer']['selectionRange'])&&!(_0x40555d&&this['dom']['contains'](_0x40555d));if(!(_0x2e9770||_0x3ef71a||_0x375c1d))return;let _0x20c49e=this['forceSelection'];this['forceSelection']=!0x1;let _0xa4678f=this['view']['state']['selection']['main'],_0x5aaced=this['moveToLine'](this['domAtPos'](_0xa4678f['anchor'])),_0x27e8ea=_0xa4678f['empty']?_0x5aaced:this['moveToLine'](this['domAtPos'](_0xa4678f['head']));if(browser['gecko']&&_0xa4678f['empty']&&!this['hasComposition']&&betweenUneditable(_0x5aaced)){let _0xf26a06=document['createTextNode']('');this['view']['observer']['ignore'](()=>_0x5aaced['node']['insertBefore'](_0xf26a06,_0x5aaced['node']['childNodes'][_0x5aaced['offset']]||null)),_0x5aaced=_0x27e8ea=new DOMPos(_0xf26a06,0x0),_0x20c49e=!0x0;}let _0x271c3f=this['view']['observer']['selectionRange'];!_0x20c49e&&_0x271c3f['focusNode']&&(isEquivalentPosition(_0x5aaced['node'],_0x5aaced['offset'],_0x271c3f['anchorNode'],_0x271c3f['anchorOffset'])&&isEquivalentPosition(_0x27e8ea['node'],_0x27e8ea['offset'],_0x271c3f['focusNode'],_0x271c3f['focusOffset'])||this['suppressWidgetCursorChange'](_0x271c3f,_0xa4678f))||(this['view']['observer']['ignore'](()=>{browser['android']&&browser['chrome']&&this['dom']['contains'](_0x271c3f['focusNode'])&&inUneditable(_0x271c3f['focusNode'],this['dom'])&&(this['dom']['blur'](),this['dom']['focus']({'preventScroll':!0x0}));let _0x202352=getSelection(this['view']['root']);if(_0x202352){if(_0xa4678f['empty']){if(browser['gecko']){let _0x4fdbd2=nextToUneditable(_0x5aaced['node'],_0x5aaced['offset']);if(_0x4fdbd2&&0x3!=_0x4fdbd2){let _0x32249e=(0x1==_0x4fdbd2?textNodeBefore:textNodeAfter)(_0x5aaced['node'],_0x5aaced['offset']);_0x32249e&&(_0x5aaced=new DOMPos(_0x32249e['node'],_0x32249e['offset']));}}_0x202352['collapse'](_0x5aaced['node'],_0x5aaced['offset']),null!=_0xa4678f['bidiLevel']&&void 0x0!==_0x202352['caretBidiLevel']&&(_0x202352['caretBidiLevel']=_0xa4678f['bidiLevel']);}else{if(_0x202352['extend']){_0x202352['collapse'](_0x5aaced['node'],_0x5aaced['offset']);try{_0x202352['extend'](_0x27e8ea['node'],_0x27e8ea['offset']);}catch(_0x274117){}}else{let _0x1b4311=document['createRange']();_0xa4678f['anchor']>_0xa4678f['head']&&([_0x5aaced,_0x27e8ea]=[_0x27e8ea,_0x5aaced]),_0x1b4311['setEnd'](_0x27e8ea['node'],_0x27e8ea['offset']),_0x1b4311['setStart'](_0x5aaced['node'],_0x5aaced['offset']),_0x202352['removeAllRanges'](),_0x202352['addRange'](_0x1b4311);}}}else;_0x375c1d&&this['view']['root']['activeElement']==this['dom']&&(this['dom']['blur'](),_0x40555d&&_0x40555d['focus']());}),this['view']['observer']['setSelectionRange'](_0x5aaced,_0x27e8ea)),this['impreciseAnchor']=_0x5aaced['precise']?null:new DOMPos(_0x271c3f['anchorNode'],_0x271c3f['anchorOffset']),this['impreciseHead']=_0x27e8ea['precise']?null:new DOMPos(_0x271c3f['focusNode'],_0x271c3f['focusOffset']);}['suppressWidgetCursorChange'](_0x27d47b,_0x45efc2){return this['hasComposition']&&_0x45efc2['empty']&&isEquivalentPosition(_0x27d47b['focusNode'],_0x27d47b['focusOffset'],_0x27d47b['anchorNode'],_0x27d47b['anchorOffset'])&&this['posFromDOM'](_0x27d47b['focusNode'],_0x27d47b['focusOffset'])==_0x45efc2['head'];}['enforceCursorAssoc'](){if(this['hasComposition'])return;let {view:_0x398277}=this,_0x33e003=_0x398277['state']['selection']['main'],_0x1b875e=getSelection(_0x398277['root']),{anchorNode:_0x4ec2e9,anchorOffset:_0x534ae5}=_0x398277['observer']['selectionRange'];if(!(_0x1b875e&&_0x33e003['empty']&&_0x33e003['assoc']&&_0x1b875e['modify']))return;let _0x1b64d0=LineView['find'](this,_0x33e003['head']);if(!_0x1b64d0)return;let _0x40dc92=_0x1b64d0['posAtStart'];if(_0x33e003['head']==_0x40dc92||_0x33e003['head']==_0x40dc92+_0x1b64d0['length'])return;let _0x3d3e16=this['coordsAt'](_0x33e003['head'],-0x1),_0x17c698=this['coordsAt'](_0x33e003['head'],0x1);if(!_0x3d3e16||!_0x17c698||_0x3d3e16['bottom']>_0x17c698['top'])return;let _0x32d923=this['domAtPos'](_0x33e003['head']+_0x33e003['assoc']);_0x1b875e['collapse'](_0x32d923['node'],_0x32d923['offset']),_0x1b875e['modify']('move',_0x33e003['assoc']<0x0?'forward':'backward','lineboundary'),_0x398277['observer']['readSelectionRange']();let _0x27e618=_0x398277['observer']['selectionRange'];_0x398277['docView']['posFromDOM'](_0x27e618['anchorNode'],_0x27e618['anchorOffset'])!=_0x33e003['from']&&_0x1b875e['collapse'](_0x4ec2e9,_0x534ae5);}['moveToLine'](_0x127146){let _0x2bdd4b,_0x5798c6=this['dom'];if(_0x127146['node']!=_0x5798c6)return _0x127146;for(let _0xb6d823=_0x127146['offset'];!_0x2bdd4b&&_0xb6d823<_0x5798c6['childNodes']['length'];_0xb6d823++){let _0x2b4ee1=ContentView['get'](_0x5798c6['childNodes'][_0xb6d823]);_0x2b4ee1 instanceof LineView&&(_0x2bdd4b=_0x2b4ee1['domAtPos'](0x0));}for(let _0x1c82e0=_0x127146['offset']-0x1;!_0x2bdd4b&&_0x1c82e0>=0x0;_0x1c82e0--){let _0x550d9c=ContentView['get'](_0x5798c6['childNodes'][_0x1c82e0]);_0x550d9c instanceof LineView&&(_0x2bdd4b=_0x550d9c['domAtPos'](_0x550d9c['length']));}return _0x2bdd4b?new DOMPos(_0x2bdd4b['node'],_0x2bdd4b['offset'],!0x0):_0x127146;}['nearest'](_0x56594e){for(let _0xdf2f17=_0x56594e;_0xdf2f17;){let _0x47ab75=ContentView['get'](_0xdf2f17);if(_0x47ab75&&_0x47ab75['rootView']==this)return _0x47ab75;_0xdf2f17=_0xdf2f17['parentNode'];}return null;}['posFromDOM'](_0x88c155,_0x15a5cc){let _0x42c9b8=this['nearest'](_0x88c155);if(!_0x42c9b8)throw new RangeError('Trying\x20to\x20find\x20position\x20for\x20a\x20DOM\x20position\x20outside\x20of\x20the\x20document');return _0x42c9b8['localPosFromDOM'](_0x88c155,_0x15a5cc)+_0x42c9b8['posAtStart'];}['domAtPos'](_0x1c9dc7){let {i:_0xf795f5,off:_0x10bf88}=this['childCursor']()['findPos'](_0x1c9dc7,-0x1);for(;_0xf795f5<this['children']['length']-0x1;){let _0x477e41=this['children'][_0xf795f5];if(_0x10bf88<_0x477e41['length']||_0x477e41 instanceof LineView)break;_0xf795f5++,_0x10bf88=0x0;}return this['children'][_0xf795f5]['domAtPos'](_0x10bf88);}['coordsAt'](_0x57f809,_0x4884f1){let _0x2b993f=null,_0xde4b21=0x0;for(let _0x31f713=this['length'],_0x413d49=this['children']['length']-0x1;_0x413d49>=0x0;_0x413d49--){let _0x5a6824=this['children'][_0x413d49],_0x3ec68f=_0x31f713-_0x5a6824['breakAfter'],_0x4a3ac8=_0x3ec68f-_0x5a6824['length'];if(_0x3ec68f<_0x57f809)break;if(_0x4a3ac8<=_0x57f809&&(_0x4a3ac8<_0x57f809||_0x5a6824['covers'](-0x1))&&(_0x3ec68f>_0x57f809||_0x5a6824['covers'](0x1))&&(!_0x2b993f||_0x5a6824 instanceof LineView&&!(_0x2b993f instanceof LineView&&_0x4884f1>=0x0)))_0x2b993f=_0x5a6824,_0xde4b21=_0x4a3ac8;else{if(_0x2b993f&&_0x4a3ac8==_0x57f809&&_0x3ec68f==_0x57f809&&_0x5a6824 instanceof BlockWidgetView&&Math['abs'](_0x4884f1)<0x2){if(_0x5a6824['deco']['startSide']<0x0)break;_0x413d49&&(_0x2b993f=null);}}_0x31f713=_0x4a3ac8;}return _0x2b993f?_0x2b993f['coordsAt'](_0x57f809-_0xde4b21,_0x4884f1):null;}['coordsForChar'](_0x7038a9){let {i:_0x32d975,off:_0x11e3f4}=this['childPos'](_0x7038a9,0x1),_0x136756=this['children'][_0x32d975];if(!(_0x136756 instanceof LineView))return null;for(;_0x136756['children']['length'];){let {i:_0xbbdcd0,off:_0x1ce327}=_0x136756['childPos'](_0x11e3f4,0x1);for(;;_0xbbdcd0++){if(_0xbbdcd0==_0x136756['children']['length'])return null;if((_0x136756=_0x136756['children'][_0xbbdcd0])['length'])break;}_0x11e3f4=_0x1ce327;}if(!(_0x136756 instanceof TextView))return null;let _0x5ba51e=findClusterBreak(_0x136756['text'],_0x11e3f4);if(_0x5ba51e==_0x11e3f4)return null;let _0x4476f6=textRange(_0x136756['dom'],_0x11e3f4,_0x5ba51e)['getClientRects']();for(let _0x1272e8=0x0;_0x1272e8<_0x4476f6['length'];_0x1272e8++){let _0x228d05=_0x4476f6[_0x1272e8];if(_0x1272e8==_0x4476f6['length']-0x1||_0x228d05['top']<_0x228d05['bottom']&&_0x228d05['left']<_0x228d05['right'])return _0x228d05;}return null;}['measureVisibleLineHeights'](_0x39997e){let _0x1d8f8b=[],{from:_0x468480,to:_0x259fdb}=_0x39997e,_0x15d801=this['view']['contentDOM']['clientWidth'],_0x5617c7=_0x15d801>Math['max'](this['view']['scrollDOM']['clientWidth'],this['minWidth'])+0x1,_0x105e46=-0x1,_0x1d6305=this['view']['textDirection']==Direction['LTR'];for(let _0x5e2fb9=0x0,_0x50c50e=0x0;_0x50c50e<this['children']['length'];_0x50c50e++){let _0x59999a=this['children'][_0x50c50e],_0x31c36c=_0x5e2fb9+_0x59999a['length'];if(_0x31c36c>_0x259fdb)break;if(_0x5e2fb9>=_0x468480){let _0x59c8a1=_0x59999a['dom']['getBoundingClientRect']();if(_0x1d8f8b['push'](_0x59c8a1['height']),_0x5617c7){let _0x55ea4d=_0x59999a['dom']['lastChild'],_0x390331=_0x55ea4d?clientRectsFor(_0x55ea4d):[];if(_0x390331['length']){let _0x361e86=_0x390331[_0x390331['length']-0x1],_0x587847=_0x1d6305?_0x361e86['right']-_0x59c8a1['left']:_0x59c8a1['right']-_0x361e86['left'];_0x587847>_0x105e46&&(_0x105e46=_0x587847,this['minWidth']=_0x15d801,this['minWidthFrom']=_0x5e2fb9,this['minWidthTo']=_0x31c36c);}}}_0x5e2fb9=_0x31c36c+_0x59999a['breakAfter'];}return _0x1d8f8b;}['textDirectionAt'](_0x3506a7){let {i:_0x2ac0b3}=this['childPos'](_0x3506a7,0x1);return'rtl'==getComputedStyle(this['children'][_0x2ac0b3]['dom'])['direction']?Direction['RTL']:Direction['LTR'];}['measureTextSize'](){for(let _0x368337 of this['children'])if(_0x368337 instanceof LineView){let _0x40f411=_0x368337['measureTextSize']();if(_0x40f411)return _0x40f411;}let _0x25f31a,_0x325d24,_0x454f66,_0x44e3ae=document['createElement']('div');return _0x44e3ae['className']='cm-line',_0x44e3ae['style']['width']='99999px',_0x44e3ae['style']['position']='absolute',_0x44e3ae['textContent']='abc\x20def\x20ghi\x20jkl\x20mno\x20pqr\x20stu',this['view']['observer']['ignore'](()=>{this['dom']['appendChild'](_0x44e3ae);let _0x2c6532=clientRectsFor(_0x44e3ae['firstChild'])[0x0];_0x25f31a=_0x44e3ae['getBoundingClientRect']()['height'],_0x325d24=_0x2c6532?_0x2c6532['width']/0x1b:0x7,_0x454f66=_0x2c6532?_0x2c6532['height']:_0x25f31a,_0x44e3ae['remove']();}),{'lineHeight':_0x25f31a,'charWidth':_0x325d24,'textHeight':_0x454f66};}['childCursor'](_0x458d4b=this['length']){let _0x12cfbd=this['children']['length'];return _0x12cfbd&&(_0x458d4b-=this['children'][--_0x12cfbd]['length']),new ChildCursor(this['children'],_0x458d4b,_0x12cfbd);}['computeBlockGapDeco'](){let _0x1420d5=[],_0x2ddfe7=this['view']['viewState'];for(let _0x22dbde=0x0,_0xbac857=0x0;;_0xbac857++){let _0x5e5b2b=_0xbac857==_0x2ddfe7['viewports']['length']?null:_0x2ddfe7['viewports'][_0xbac857],_0x56f33e=_0x5e5b2b?_0x5e5b2b['from']-0x1:this['length'];if(_0x56f33e>_0x22dbde){let _0xf773ba=(_0x2ddfe7['lineBlockAt'](_0x56f33e)['bottom']-_0x2ddfe7['lineBlockAt'](_0x22dbde)['top'])/this['view']['scaleY'];_0x1420d5['push'](Decoration['replace']({'widget':new BlockGapWidget(_0xf773ba),'block':!0x0,'inclusive':!0x0,'isBlockGap':!0x0})['range'](_0x22dbde,_0x56f33e));}if(!_0x5e5b2b)break;_0x22dbde=_0x5e5b2b['to']+0x1;}return Decoration['set'](_0x1420d5);}['updateDeco'](){let _0x24b818=0x1,_0x3c2996=this['view']['state']['facet'](decorations)['map'](_0xf0b81e=>(this['dynamicDecorationMap'][_0x24b818++]='function'==typeof _0xf0b81e)?_0xf0b81e(this['view']):_0xf0b81e),_0x23586a=!0x1,_0x3ab29c=this['view']['state']['facet'](outerDecorations)['map']((_0xd55245,_0x2bc9b3)=>{let _0x189e4d='function'==typeof _0xd55245;return _0x189e4d&&(_0x23586a=!0x0),_0x189e4d?_0xd55245(this['view']):_0xd55245;});for(_0x3ab29c['length']&&(this['dynamicDecorationMap'][_0x24b818++]=_0x23586a,_0x3c2996['push'](RangeSet['join'](_0x3ab29c))),this['decorations']=[this['editContextFormatting'],..._0x3c2996,this['computeBlockGapDeco'](),this['view']['viewState']['lineGapDeco']];_0x24b818<this['decorations']['length'];)this['dynamicDecorationMap'][_0x24b818++]=!0x1;return this['decorations'];}['scrollIntoView'](_0x502631){if(_0x502631['isSnapshot']){let _0x543acf=this['view']['viewState']['lineBlockAt'](_0x502631['range']['head']);return this['view']['scrollDOM']['scrollTop']=_0x543acf['top']-_0x502631['yMargin'],void(this['view']['scrollDOM']['scrollLeft']=_0x502631['xMargin']);}for(let _0x4f38a5 of this['view']['state']['facet'](scrollHandler))try{if(_0x4f38a5(this['view'],_0x502631['range'],_0x502631))return!0x0;}catch(_0x12ff6b){logException(this['view']['state'],_0x12ff6b,'scroll\x20handler');}let _0x28675b,{range:_0x2816fd}=_0x502631,_0x3af484=this['coordsAt'](_0x2816fd['head'],_0x2816fd['empty']?_0x2816fd['assoc']:_0x2816fd['head']>_0x2816fd['anchor']?-0x1:0x1);if(!_0x3af484)return;!_0x2816fd['empty']&&(_0x28675b=this['coordsAt'](_0x2816fd['anchor'],_0x2816fd['anchor']>_0x2816fd['head']?-0x1:0x1))&&(_0x3af484={'left':Math['min'](_0x3af484['left'],_0x28675b['left']),'top':Math['min'](_0x3af484['top'],_0x28675b['top']),'right':Math['max'](_0x3af484['right'],_0x28675b['right']),'bottom':Math['max'](_0x3af484['bottom'],_0x28675b['bottom'])});let _0x43984d=getScrollMargins(this['view']),_0x25ae20={'left':_0x3af484['left']-_0x43984d['left'],'top':_0x3af484['top']-_0x43984d['top'],'right':_0x3af484['right']+_0x43984d['right'],'bottom':_0x3af484['bottom']+_0x43984d['bottom']},{offsetWidth:_0x50223a,offsetHeight:_0x22d012}=this['view']['scrollDOM'];scrollRectIntoView(this['view']['scrollDOM'],_0x25ae20,_0x2816fd['head']<_0x2816fd['anchor']?-0x1:0x1,_0x502631['x'],_0x502631['y'],Math['max'](Math['min'](_0x502631['xMargin'],_0x50223a),-_0x50223a),Math['max'](Math['min'](_0x502631['yMargin'],_0x22d012),-_0x22d012),this['view']['textDirection']==Direction['LTR']);}}function betweenUneditable(_0x1735d5){return 0x1==_0x1735d5['node']['nodeType']&&_0x1735d5['node']['firstChild']&&(0x0==_0x1735d5['offset']||'false'==_0x1735d5['node']['childNodes'][_0x1735d5['offset']-0x1]['contentEditable'])&&(_0x1735d5['offset']==_0x1735d5['node']['childNodes']['length']||'false'==_0x1735d5['node']['childNodes'][_0x1735d5['offset']]['contentEditable']);}function findCompositionNode(_0x1e93d3,_0x3c68cb){let _0x97130d=_0x1e93d3['observer']['selectionRange'];if(!_0x97130d['focusNode'])return null;let _0x1e4d78=textNodeBefore(_0x97130d['focusNode'],_0x97130d['focusOffset']),_0x1dfca2=textNodeAfter(_0x97130d['focusNode'],_0x97130d['focusOffset']),_0x27e453=_0x1e4d78||_0x1dfca2;if(_0x1dfca2&&_0x1e4d78&&_0x1dfca2['node']!=_0x1e4d78['node']){let _0x571c37=ContentView['get'](_0x1dfca2['node']);if(!_0x571c37||_0x571c37 instanceof TextView&&_0x571c37['text']!=_0x1dfca2['node']['nodeValue'])_0x27e453=_0x1dfca2;else{if(_0x1e93d3['docView']['lastCompositionAfterCursor']){let _0x2d773f=ContentView['get'](_0x1e4d78['node']);!_0x2d773f||_0x2d773f instanceof TextView&&_0x2d773f['text']!=_0x1e4d78['node']['nodeValue']||(_0x27e453=_0x1dfca2);}}}if(_0x1e93d3['docView']['lastCompositionAfterCursor']=_0x27e453!=_0x1e4d78,!_0x27e453)return null;let _0x4940e4=_0x3c68cb-_0x27e453['offset'];return{'from':_0x4940e4,'to':_0x4940e4+_0x27e453['node']['nodeValue']['length'],'node':_0x27e453['node']};}function findCompositionRange(_0x15a2d2,_0xb72611,_0x305f82){let _0x1dbe01=findCompositionNode(_0x15a2d2,_0x305f82);if(!_0x1dbe01)return null;let {node:_0x24066d,from:_0x1c7506,to:_0x4314d9}=_0x1dbe01,_0x1e1a77=_0x24066d['nodeValue'];if(/[\n\r]/['test'](_0x1e1a77))return null;if(_0x15a2d2['state']['doc']['sliceString'](_0x1dbe01['from'],_0x1dbe01['to'])!=_0x1e1a77)return null;let _0x132e64=_0xb72611['invertedDesc'],_0x3b3c05=new ChangedRange(_0x132e64['mapPos'](_0x1c7506),_0x132e64['mapPos'](_0x4314d9),_0x1c7506,_0x4314d9),_0x631acc=[];for(let _0xca62a8=_0x24066d['parentNode'];;_0xca62a8=_0xca62a8['parentNode']){let _0x44f0ce=ContentView['get'](_0xca62a8);if(_0x44f0ce instanceof MarkView)_0x631acc['push']({'node':_0xca62a8,'deco':_0x44f0ce['mark']});else{if(_0x44f0ce instanceof LineView||'DIV'==_0xca62a8['nodeName']&&_0xca62a8['parentNode']==_0x15a2d2['contentDOM'])return{'range':_0x3b3c05,'text':_0x24066d,'marks':_0x631acc,'line':_0xca62a8};if(_0xca62a8==_0x15a2d2['contentDOM'])return null;_0x631acc['push']({'node':_0xca62a8,'deco':new MarkDecoration({'inclusive':!0x0,'attributes':getAttrs$1(_0xca62a8),'tagName':_0xca62a8['tagName']['toLowerCase']()})});}}}function nextToUneditable(_0x40f5cc,_0x192cc0){return 0x1!=_0x40f5cc['nodeType']?0x0:(_0x192cc0&&'false'==_0x40f5cc['childNodes'][_0x192cc0-0x1]['contentEditable']?0x1:0x0)|(_0x192cc0<_0x40f5cc['childNodes']['length']&&'false'==_0x40f5cc['childNodes'][_0x192cc0]['contentEditable']?0x2:0x0);}let DecorationComparator$1=class{constructor(){this['changes']=[];}['compareRange'](_0x11e6b3,_0xf686f7){addRange(_0x11e6b3,_0xf686f7,this['changes']);}['comparePoint'](_0xd0a28c,_0x2585d8){addRange(_0xd0a28c,_0x2585d8,this['changes']);}['boundChange'](_0xb77ed7){addRange(_0xb77ed7,_0xb77ed7,this['changes']);}};function findChangedDeco(_0x2aa4f6,_0x4d751f,_0x13f5a7){let _0x2cef28=new DecorationComparator$1();return RangeSet['compare'](_0x2aa4f6,_0x4d751f,_0x13f5a7,_0x2cef28),_0x2cef28['changes'];}function inUneditable(_0x4091cd,_0x1498f2){for(let _0x4b5f39=_0x4091cd;_0x4b5f39&&_0x4b5f39!=_0x1498f2;_0x4b5f39=_0x4b5f39['assignedSlot']||_0x4b5f39['parentNode'])if(0x1==_0x4b5f39['nodeType']&&'false'==_0x4b5f39['contentEditable'])return!0x0;return!0x1;}function touchesComposition(_0x5964e2,_0x28c1d5){let _0x52bca8=!0x1;return _0x28c1d5&&_0x5964e2['iterChangedRanges']((_0x35656d,_0x56a099)=>{_0x35656d<_0x28c1d5['to']&&_0x56a099>_0x28c1d5['from']&&(_0x52bca8=!0x0);}),_0x52bca8;}function groupAt(_0x1803d7,_0x5b9d20,_0x2acc98=0x1){let _0x5692a2=_0x1803d7['charCategorizer'](_0x5b9d20),_0x23d6ee=_0x1803d7['doc']['lineAt'](_0x5b9d20),_0x2d6dba=_0x5b9d20-_0x23d6ee['from'];if(0x0==_0x23d6ee['length'])return EditorSelection['cursor'](_0x5b9d20);0x0==_0x2d6dba?_0x2acc98=0x1:_0x2d6dba==_0x23d6ee['length']&&(_0x2acc98=-0x1);let _0x16830c=_0x2d6dba,_0x44e316=_0x2d6dba;_0x2acc98<0x0?_0x16830c=findClusterBreak(_0x23d6ee['text'],_0x2d6dba,!0x1):_0x44e316=findClusterBreak(_0x23d6ee['text'],_0x2d6dba);let _0x44bb3a=_0x5692a2(_0x23d6ee['text']['slice'](_0x16830c,_0x44e316));for(;_0x16830c>0x0;){let _0x3799eb=findClusterBreak(_0x23d6ee['text'],_0x16830c,!0x1);if(_0x5692a2(_0x23d6ee['text']['slice'](_0x3799eb,_0x16830c))!=_0x44bb3a)break;_0x16830c=_0x3799eb;}for(;_0x44e316<_0x23d6ee['length'];){let _0x10aba2=findClusterBreak(_0x23d6ee['text'],_0x44e316);if(_0x5692a2(_0x23d6ee['text']['slice'](_0x44e316,_0x10aba2))!=_0x44bb3a)break;_0x44e316=_0x10aba2;}return EditorSelection['range'](_0x16830c+_0x23d6ee['from'],_0x44e316+_0x23d6ee['from']);}function getdx(_0x5e3c70,_0x42fcaf){return _0x42fcaf['left']>_0x5e3c70?_0x42fcaf['left']-_0x5e3c70:Math['max'](0x0,_0x5e3c70-_0x42fcaf['right']);}function getdy(_0x3f729f,_0x4c8563){return _0x4c8563['top']>_0x3f729f?_0x4c8563['top']-_0x3f729f:Math['max'](0x0,_0x3f729f-_0x4c8563['bottom']);}function yOverlap(_0x4250b2,_0x1c3a5a){return _0x4250b2['top']<_0x1c3a5a['bottom']-0x1&&_0x4250b2['bottom']>_0x1c3a5a['top']+0x1;}function upTop(_0x48c3a5,_0x2a3b4b){return _0x2a3b4b<_0x48c3a5['top']?{'top':_0x2a3b4b,'left':_0x48c3a5['left'],'right':_0x48c3a5['right'],'bottom':_0x48c3a5['bottom']}:_0x48c3a5;}function upBot(_0x8c27d4,_0x23b9b7){return _0x23b9b7>_0x8c27d4['bottom']?{'top':_0x8c27d4['top'],'left':_0x8c27d4['left'],'right':_0x8c27d4['right'],'bottom':_0x23b9b7}:_0x8c27d4;}function domPosAtCoords(_0x38b5d6,_0x29b920,_0x36fd6c){let _0x50e45a,_0x1ffe93,_0x7633ce,_0x28a278,_0x1b691d,_0x20dd86,_0x27f1d0,_0x4d592b,_0x4acc6e=!0x1;for(let _0x32b3d2=_0x38b5d6['firstChild'];_0x32b3d2;_0x32b3d2=_0x32b3d2['nextSibling']){let _0x5e654a=clientRectsFor(_0x32b3d2);for(let _0x4558c9=0x0;_0x4558c9<_0x5e654a['length'];_0x4558c9++){let _0x3eed78=_0x5e654a[_0x4558c9];_0x1ffe93&&yOverlap(_0x1ffe93,_0x3eed78)&&(_0x3eed78=upTop(upBot(_0x3eed78,_0x1ffe93['bottom']),_0x1ffe93['top']));let _0x30a530=getdx(_0x29b920,_0x3eed78),_0x4d805d=getdy(_0x36fd6c,_0x3eed78);if(0x0==_0x30a530&&0x0==_0x4d805d)return 0x3==_0x32b3d2['nodeType']?domPosInText(_0x32b3d2,_0x29b920,_0x36fd6c):domPosAtCoords(_0x32b3d2,_0x29b920,_0x36fd6c);(!_0x50e45a||_0x28a278>_0x4d805d||_0x28a278==_0x4d805d&&_0x7633ce>_0x30a530)&&(_0x50e45a=_0x32b3d2,_0x1ffe93=_0x3eed78,_0x7633ce=_0x30a530,_0x28a278=_0x4d805d,_0x4acc6e=!_0x30a530||(_0x29b920<_0x3eed78['left']?_0x4558c9>0x0:_0x4558c9<_0x5e654a['length']-0x1)),0x0==_0x30a530?_0x36fd6c>_0x3eed78['bottom']&&(!_0x27f1d0||_0x27f1d0['bottom']<_0x3eed78['bottom'])?(_0x1b691d=_0x32b3d2,_0x27f1d0=_0x3eed78):_0x36fd6c<_0x3eed78['top']&&(!_0x4d592b||_0x4d592b['top']>_0x3eed78['top'])&&(_0x20dd86=_0x32b3d2,_0x4d592b=_0x3eed78):_0x27f1d0&&yOverlap(_0x27f1d0,_0x3eed78)?_0x27f1d0=upBot(_0x27f1d0,_0x3eed78['bottom']):_0x4d592b&&yOverlap(_0x4d592b,_0x3eed78)&&(_0x4d592b=upTop(_0x4d592b,_0x3eed78['top']));}}if(_0x27f1d0&&_0x27f1d0['bottom']>=_0x36fd6c?(_0x50e45a=_0x1b691d,_0x1ffe93=_0x27f1d0):_0x4d592b&&_0x4d592b['top']<=_0x36fd6c&&(_0x50e45a=_0x20dd86,_0x1ffe93=_0x4d592b),!_0x50e45a)return{'node':_0x38b5d6,'offset':0x0};let _0x92557e=Math['max'](_0x1ffe93['left'],Math['min'](_0x1ffe93['right'],_0x29b920));return 0x3==_0x50e45a['nodeType']?domPosInText(_0x50e45a,_0x92557e,_0x36fd6c):_0x4acc6e&&'false'!=_0x50e45a['contentEditable']?domPosAtCoords(_0x50e45a,_0x92557e,_0x36fd6c):{'node':_0x38b5d6,'offset':Array['prototype']['indexOf']['call'](_0x38b5d6['childNodes'],_0x50e45a)+(_0x29b920>=(_0x1ffe93['left']+_0x1ffe93['right'])/0x2?0x1:0x0)};}function domPosInText(_0x3bf049,_0x3a0d25,_0x29dd26){let _0x536a24=_0x3bf049['nodeValue']['length'],_0x588a28=-0x1,_0x452554=0x3b9aca00,_0x28f180=0x0;for(let _0x15434f=0x0;_0x15434f<_0x536a24;_0x15434f++){let _0x5236c6=textRange(_0x3bf049,_0x15434f,_0x15434f+0x1)['getClientRects']();for(let _0x37c48e=0x0;_0x37c48e<_0x5236c6['length'];_0x37c48e++){let _0x450345=_0x5236c6[_0x37c48e];if(_0x450345['top']==_0x450345['bottom'])continue;_0x28f180||(_0x28f180=_0x3a0d25-_0x450345['left']);let _0x1976e7=(_0x450345['top']>_0x29dd26?_0x450345['top']-_0x29dd26:_0x29dd26-_0x450345['bottom'])-0x1;if(_0x450345['left']-0x1<=_0x3a0d25&&_0x450345['right']+0x1>=_0x3a0d25&&_0x1976e7<_0x452554){let _0x3aecb9=_0x3a0d25>=(_0x450345['left']+_0x450345['right'])/0x2,_0x27378f=_0x3aecb9;(browser['chrome']||browser['gecko'])&&(textRange(_0x3bf049,_0x15434f)['getBoundingClientRect']()['left']==_0x450345['right']&&(_0x27378f=!_0x3aecb9));if(_0x1976e7<=0x0)return{'node':_0x3bf049,'offset':_0x15434f+(_0x27378f?0x1:0x0)};_0x588a28=_0x15434f+(_0x27378f?0x1:0x0),_0x452554=_0x1976e7;}}}return{'node':_0x3bf049,'offset':_0x588a28>-0x1?_0x588a28:_0x28f180>0x0?_0x3bf049['nodeValue']['length']:0x0};}function posAtCoords(_0x288641,_0x13e7ff,_0x48b79d,_0x2d73f2=-0x1){var _0x551acb,_0x350242;let _0xdd7935,_0x14ed8a=_0x288641['contentDOM']['getBoundingClientRect'](),_0x1ed21c=_0x14ed8a['top']+_0x288641['viewState']['paddingTop'],{docHeight:_0x1b0208}=_0x288641['viewState'],{x:_0x2782e6,y:_0x22f4c0}=_0x13e7ff,_0x5671e8=_0x22f4c0-_0x1ed21c;if(_0x5671e8<0x0)return 0x0;if(_0x5671e8>_0x1b0208)return _0x288641['state']['doc']['length'];for(let _0x54bb68=_0x288641['viewState']['heightOracle']['textHeight']/0x2,_0x519777=!0x1;_0xdd7935=_0x288641['elementAtHeight'](_0x5671e8),_0xdd7935['type']!=BlockType['Text'];)for(;_0x5671e8=_0x2d73f2>0x0?_0xdd7935['bottom']+_0x54bb68:_0xdd7935['top']-_0x54bb68,!(_0x5671e8>=0x0&&_0x5671e8<=_0x1b0208);){if(_0x519777)return _0x48b79d?null:0x0;_0x519777=!0x0,_0x2d73f2=-_0x2d73f2;}_0x22f4c0=_0x1ed21c+_0x5671e8;let _0x5c569d=_0xdd7935['from'];if(_0x5c569d<_0x288641['viewport']['from'])return 0x0==_0x288641['viewport']['from']?0x0:_0x48b79d?null:posAtCoordsImprecise(_0x288641,_0x14ed8a,_0xdd7935,_0x2782e6,_0x22f4c0);if(_0x5c569d>_0x288641['viewport']['to'])return _0x288641['viewport']['to']==_0x288641['state']['doc']['length']?_0x288641['state']['doc']['length']:_0x48b79d?null:posAtCoordsImprecise(_0x288641,_0x14ed8a,_0xdd7935,_0x2782e6,_0x22f4c0);let _0x1d6eff=_0x288641['dom']['ownerDocument'],_0x393889=_0x288641['root']['elementFromPoint']?_0x288641['root']:_0x1d6eff,_0x34d352=_0x393889['elementFromPoint'](_0x2782e6,_0x22f4c0);_0x34d352&&!_0x288641['contentDOM']['contains'](_0x34d352)&&(_0x34d352=null),_0x34d352||(_0x2782e6=Math['max'](_0x14ed8a['left']+0x1,Math['min'](_0x14ed8a['right']-0x1,_0x2782e6)),_0x34d352=_0x393889['elementFromPoint'](_0x2782e6,_0x22f4c0),_0x34d352&&!_0x288641['contentDOM']['contains'](_0x34d352)&&(_0x34d352=null));let _0x45931f,_0x3bcf8=-0x1;if(_0x34d352&&0x0!=(null===(_0x551acb=_0x288641['docView']['nearest'](_0x34d352))||void 0x0===_0x551acb?void 0x0:_0x551acb['isEditable'])){if(_0x1d6eff['caretPositionFromPoint']){let _0x2803ad=_0x1d6eff['caretPositionFromPoint'](_0x2782e6,_0x22f4c0);_0x2803ad&&({offsetNode:_0x45931f,offset:_0x3bcf8}=_0x2803ad);}else{if(_0x1d6eff['caretRangeFromPoint']){let _0x9450f3=_0x1d6eff['caretRangeFromPoint'](_0x2782e6,_0x22f4c0);_0x9450f3&&({startContainer:_0x45931f,startOffset:_0x3bcf8}=_0x9450f3);}}_0x45931f&&(!_0x288641['contentDOM']['contains'](_0x45931f)||browser['safari']&&isSuspiciousSafariCaretResult(_0x45931f,_0x3bcf8,_0x2782e6)||browser['chrome']&&isSuspiciousChromeCaretResult(_0x45931f,_0x3bcf8,_0x2782e6))&&(_0x45931f=void 0x0),_0x45931f&&(_0x3bcf8=Math['min'](maxOffset(_0x45931f),_0x3bcf8));}if(!_0x45931f||!_0x288641['docView']['dom']['contains'](_0x45931f)){let _0x587679=LineView['find'](_0x288641['docView'],_0x5c569d);if(!_0x587679)return _0x5671e8>_0xdd7935['top']+_0xdd7935['height']/0x2?_0xdd7935['to']:_0xdd7935['from'];({node:_0x45931f,offset:_0x3bcf8}=domPosAtCoords(_0x587679['dom'],_0x2782e6,_0x22f4c0));}let _0x162adb=_0x288641['docView']['nearest'](_0x45931f);if(!_0x162adb)return null;if(_0x162adb['isWidget']&&0x1==(null===(_0x350242=_0x162adb['dom'])||void 0x0===_0x350242?void 0x0:_0x350242['nodeType'])){let _0xde66a7=_0x162adb['dom']['getBoundingClientRect']();return _0x13e7ff['y']<_0xde66a7['top']||_0x13e7ff['y']<=_0xde66a7['bottom']&&_0x13e7ff['x']<=(_0xde66a7['left']+_0xde66a7['right'])/0x2?_0x162adb['posAtStart']:_0x162adb['posAtEnd'];}return _0x162adb['localPosFromDOM'](_0x45931f,_0x3bcf8)+_0x162adb['posAtStart'];}function posAtCoordsImprecise(_0x21ccbf,_0x1cf005,_0x4c23b0,_0x44c5ad,_0x157bc5){let _0x2ac5d9=Math['round']((_0x44c5ad-_0x1cf005['left'])*_0x21ccbf['defaultCharacterWidth']);if(_0x21ccbf['lineWrapping']&&_0x4c23b0['height']>1.5*_0x21ccbf['defaultLineHeight']){let _0x387aa2=_0x21ccbf['viewState']['heightOracle']['textHeight'];_0x2ac5d9+=Math['floor']((_0x157bc5-_0x4c23b0['top']-0.5*(_0x21ccbf['defaultLineHeight']-_0x387aa2))/_0x387aa2)*_0x21ccbf['viewState']['heightOracle']['lineLength'];}let _0x3fcc4c=_0x21ccbf['state']['sliceDoc'](_0x4c23b0['from'],_0x4c23b0['to']);return _0x4c23b0['from']+findColumn(_0x3fcc4c,_0x2ac5d9,_0x21ccbf['state']['tabSize']);}function isEndOfLineBefore(_0x3bc69e,_0x4b307b,_0x492ef5){let _0x3e46c1,_0x21ff1a=_0x3bc69e;if(0x3!=_0x3bc69e['nodeType']||_0x4b307b!=(_0x3e46c1=_0x3bc69e['nodeValue']['length']))return!0x1;for(;;){let _0x986e17=_0x21ff1a['nextSibling'];if(_0x986e17){if('BR'==_0x986e17['nodeName'])break;return!0x1;}{let _0x57366d=_0x21ff1a['parentNode'];if(!_0x57366d||'DIV'==_0x57366d['nodeName'])break;_0x21ff1a=_0x57366d;}}return textRange(_0x3bc69e,_0x3e46c1-0x1,_0x3e46c1)['getBoundingClientRect']()['right']>_0x492ef5;}function isSuspiciousSafariCaretResult(_0x1d2da8,_0x55d366,_0xee82aa){return isEndOfLineBefore(_0x1d2da8,_0x55d366,_0xee82aa);}function isSuspiciousChromeCaretResult(_0x55d8b6,_0x1e1276,_0x3677a8){if(0x0!=_0x1e1276)return isEndOfLineBefore(_0x55d8b6,_0x1e1276,_0x3677a8);for(let _0x3c67a8=_0x55d8b6;;){let _0x1834ef=_0x3c67a8['parentNode'];if(!_0x1834ef||0x1!=_0x1834ef['nodeType']||_0x1834ef['firstChild']!=_0x3c67a8)return!0x1;if(_0x1834ef['classList']['contains']('cm-line'))break;_0x3c67a8=_0x1834ef;}return _0x3677a8-(0x1==_0x55d8b6['nodeType']?_0x55d8b6['getBoundingClientRect']():textRange(_0x55d8b6,0x0,Math['max'](_0x55d8b6['nodeValue']['length'],0x1))['getBoundingClientRect']())['left']>0x5;}function blockAt(_0x3178b8,_0x329995,_0x35fd29){let _0x2be0a4=_0x3178b8['lineBlockAt'](_0x329995);if(Array['isArray'](_0x2be0a4['type'])){let _0x45c143;for(let _0x22058e of _0x2be0a4['type']){if(_0x22058e['from']>_0x329995)break;if(!(_0x22058e['to']<_0x329995)){if(_0x22058e['from']<_0x329995&&_0x22058e['to']>_0x329995)return _0x22058e;_0x45c143&&(_0x22058e['type']!=BlockType['Text']||_0x45c143['type']==_0x22058e['type']&&!(_0x35fd29<0x0?_0x22058e['from']<_0x329995:_0x22058e['to']>_0x329995))||(_0x45c143=_0x22058e);}}return _0x45c143||_0x2be0a4;}return _0x2be0a4;}function moveToLineBoundary(_0x37989a,_0x25b3a9,_0xa911f9,_0x5729d8){let _0x42949d=blockAt(_0x37989a,_0x25b3a9['head'],_0x25b3a9['assoc']||-0x1),_0x55e380=_0x5729d8&&_0x42949d['type']==BlockType['Text']&&(_0x37989a['lineWrapping']||_0x42949d['widgetLineBreaks'])?_0x37989a['coordsAtPos'](_0x25b3a9['assoc']<0x0&&_0x25b3a9['head']>_0x42949d['from']?_0x25b3a9['head']-0x1:_0x25b3a9['head']):null;if(_0x55e380){let _0x31dcc0=_0x37989a['dom']['getBoundingClientRect'](),_0x4239af=_0x37989a['textDirectionAt'](_0x42949d['from']),_0x593fa2=_0x37989a['posAtCoords']({'x':_0xa911f9==(_0x4239af==Direction['LTR'])?_0x31dcc0['right']-0x1:_0x31dcc0['left']+0x1,'y':(_0x55e380['top']+_0x55e380['bottom'])/0x2});if(null!=_0x593fa2)return EditorSelection['cursor'](_0x593fa2,_0xa911f9?-0x1:0x1);}return EditorSelection['cursor'](_0xa911f9?_0x42949d['to']:_0x42949d['from'],_0xa911f9?-0x1:0x1);}function moveByChar(_0x3bf007,_0xbee1b6,_0x55c4de,_0x5c1ff5){let _0x332885=_0x3bf007['state']['doc']['lineAt'](_0xbee1b6['head']),_0x3586d4=_0x3bf007['bidiSpans'](_0x332885),_0x3b32a2=_0x3bf007['textDirectionAt'](_0x332885['from']);for(let _0xc902fb=_0xbee1b6,_0x5c34cc=null;;){let _0x48aed5=moveVisually(_0x332885,_0x3586d4,_0x3b32a2,_0xc902fb,_0x55c4de),_0x508c8c=movedOver;if(!_0x48aed5){if(_0x332885['number']==(_0x55c4de?_0x3bf007['state']['doc']['lines']:0x1))return _0xc902fb;_0x508c8c='\x0a',_0x332885=_0x3bf007['state']['doc']['line'](_0x332885['number']+(_0x55c4de?0x1:-0x1)),_0x3586d4=_0x3bf007['bidiSpans'](_0x332885),_0x48aed5=_0x3bf007['visualLineSide'](_0x332885,!_0x55c4de);}if(_0x5c34cc){if(!_0x5c34cc(_0x508c8c))return _0xc902fb;}else{if(!_0x5c1ff5)return _0x48aed5;_0x5c34cc=_0x5c1ff5(_0x508c8c);}_0xc902fb=_0x48aed5;}}function byGroup(_0x2b06cc,_0x32a3a0,_0x340006){let _0x251a7f=_0x2b06cc['state']['charCategorizer'](_0x32a3a0),_0x549966=_0x251a7f(_0x340006);return _0x2b9196=>{let _0x11fc6c=_0x251a7f(_0x2b9196);return _0x549966==CharCategory['Space']&&(_0x549966=_0x11fc6c),_0x549966==_0x11fc6c;};}function moveVertically(_0x396d21,_0x35e916,_0x112b79,_0x1438fc){let _0x209f3e=_0x35e916['head'],_0x250921=_0x112b79?0x1:-0x1;if(_0x209f3e==(_0x112b79?_0x396d21['state']['doc']['length']:0x0))return EditorSelection['cursor'](_0x209f3e,_0x35e916['assoc']);let _0xf7ffff,_0x17766c=_0x35e916['goalColumn'],_0x329e2b=_0x396d21['contentDOM']['getBoundingClientRect'](),_0x536578=_0x396d21['coordsAtPos'](_0x209f3e,_0x35e916['assoc']||-0x1),_0x3df307=_0x396d21['documentTop'];if(_0x536578)null==_0x17766c&&(_0x17766c=_0x536578['left']-_0x329e2b['left']),_0xf7ffff=_0x250921<0x0?_0x536578['top']:_0x536578['bottom'];else{let _0x53a1b5=_0x396d21['viewState']['lineBlockAt'](_0x209f3e);null==_0x17766c&&(_0x17766c=Math['min'](_0x329e2b['right']-_0x329e2b['left'],_0x396d21['defaultCharacterWidth']*(_0x209f3e-_0x53a1b5['from']))),_0xf7ffff=(_0x250921<0x0?_0x53a1b5['top']:_0x53a1b5['bottom'])+_0x3df307;}let _0x27f67a=_0x329e2b['left']+_0x17766c,_0x2ed10d=null!=_0x1438fc?_0x1438fc:_0x396d21['viewState']['heightOracle']['textHeight']>>0x1;for(let _0x3f1021=0x0;;_0x3f1021+=0xa){let _0x2aa5e2=_0xf7ffff+(_0x2ed10d+_0x3f1021)*_0x250921,_0x561de9=posAtCoords(_0x396d21,{'x':_0x27f67a,'y':_0x2aa5e2},!0x1,_0x250921);if(_0x2aa5e2<_0x329e2b['top']||_0x2aa5e2>_0x329e2b['bottom']||(_0x250921<0x0?_0x561de9<_0x209f3e:_0x561de9>_0x209f3e)){let _0x28ba49=_0x396d21['docView']['coordsForChar'](_0x561de9),_0x416159=!_0x28ba49||_0x2aa5e2<_0x28ba49['top']?-0x1:0x1;return EditorSelection['cursor'](_0x561de9,_0x416159,void 0x0,_0x17766c);}}}function skipAtomicRanges(_0x3257fe,_0x4d18e3,_0x14d464){for(;;){let _0x26bdc3=0x0;for(let _0x4a1aaa of _0x3257fe)_0x4a1aaa['between'](_0x4d18e3-0x1,_0x4d18e3+0x1,(_0x8461fc,_0x253d0b,_0x3cc4c2)=>{if(_0x4d18e3>_0x8461fc&&_0x4d18e3<_0x253d0b){let _0x331f3b=_0x26bdc3||_0x14d464||(_0x4d18e3-_0x8461fc<_0x253d0b-_0x4d18e3?-0x1:0x1);_0x4d18e3=_0x331f3b<0x0?_0x8461fc:_0x253d0b,_0x26bdc3=_0x331f3b;}});if(!_0x26bdc3)return _0x4d18e3;}}function skipAtomsForSelection(_0x466f80,_0x163d10){let _0x26dfe2=null;for(let _0x355dca=0x0;_0x355dca<_0x163d10['ranges']['length'];_0x355dca++){let _0x56f6a9=_0x163d10['ranges'][_0x355dca],_0xfbcd3e=null;if(_0x56f6a9['empty']){let _0x663e24=skipAtomicRanges(_0x466f80,_0x56f6a9['from'],0x0);_0x663e24!=_0x56f6a9['from']&&(_0xfbcd3e=EditorSelection['cursor'](_0x663e24,-0x1));}else{let _0x392b29=skipAtomicRanges(_0x466f80,_0x56f6a9['from'],-0x1),_0x472b88=skipAtomicRanges(_0x466f80,_0x56f6a9['to'],0x1);_0x392b29==_0x56f6a9['from']&&_0x472b88==_0x56f6a9['to']||(_0xfbcd3e=EditorSelection['range'](_0x56f6a9['from']==_0x56f6a9['anchor']?_0x392b29:_0x472b88,_0x56f6a9['from']==_0x56f6a9['head']?_0x392b29:_0x472b88));}_0xfbcd3e&&(_0x26dfe2||(_0x26dfe2=_0x163d10['ranges']['slice']()),_0x26dfe2[_0x355dca]=_0xfbcd3e);}return _0x26dfe2?EditorSelection['create'](_0x26dfe2,_0x163d10['mainIndex']):_0x163d10;}function skipAtoms(_0x23d371,_0x3e7c4a,_0x54c3dc){let _0x560298=skipAtomicRanges(_0x23d371['state']['facet'](atomicRanges)['map'](_0x597281=>_0x597281(_0x23d371)),_0x54c3dc['from'],_0x3e7c4a['head']>_0x54c3dc['from']?-0x1:0x1);return _0x560298==_0x54c3dc['from']?_0x54c3dc:EditorSelection['cursor'](_0x560298,_0x560298<_0x54c3dc['from']?0x1:-0x1);}const LineBreakPlaceholder='';class DOMReader{constructor(_0x588e4a,_0x7cdc0e){this['points']=_0x588e4a,this['text']='',this['lineSeparator']=_0x7cdc0e['facet'](EditorState['lineSeparator']);}['append'](_0x5ad050){this['text']+=_0x5ad050;}['lineBreak'](){this['text']+=LineBreakPlaceholder;}['readRange'](_0x3c6ea5,_0x501835){if(!_0x3c6ea5)return this;let _0x518ac6=_0x3c6ea5['parentNode'];for(let _0x35ce1f=_0x3c6ea5;;){this['findPointBefore'](_0x518ac6,_0x35ce1f);let _0x23ae08=this['text']['length'];this['readNode'](_0x35ce1f);let _0x33759b=_0x35ce1f['nextSibling'];if(_0x33759b==_0x501835)break;let _0x1b80cb=ContentView['get'](_0x35ce1f),_0xc9b9ac=ContentView['get'](_0x33759b);(_0x1b80cb&&_0xc9b9ac?_0x1b80cb['breakAfter']:(_0x1b80cb?_0x1b80cb['breakAfter']:isBlockElement(_0x35ce1f))||isBlockElement(_0x33759b)&&('BR'!=_0x35ce1f['nodeName']||_0x35ce1f['cmIgnore'])&&this['text']['length']>_0x23ae08)&&!isEmptyToEnd(_0x33759b,_0x501835)&&this['lineBreak'](),_0x35ce1f=_0x33759b;}return this['findPointBefore'](_0x518ac6,_0x501835),this;}['readTextNode'](_0x51e61e){let _0x12df01=_0x51e61e['nodeValue'];for(let _0x250004 of this['points'])_0x250004['node']==_0x51e61e&&(_0x250004['pos']=this['text']['length']+Math['min'](_0x250004['offset'],_0x12df01['length']));for(let _0xb0da39=0x0,_0x4529a3=this['lineSeparator']?null:/\r\n?|\n/g;;){let _0x3d0aa2,_0x28269d=-0x1,_0x25226a=0x1;if(this['lineSeparator']?(_0x28269d=_0x12df01['indexOf'](this['lineSeparator'],_0xb0da39),_0x25226a=this['lineSeparator']['length']):(_0x3d0aa2=_0x4529a3['exec'](_0x12df01))&&(_0x28269d=_0x3d0aa2['index'],_0x25226a=_0x3d0aa2[0x0]['length']),this['append'](_0x12df01['slice'](_0xb0da39,_0x28269d<0x0?_0x12df01['length']:_0x28269d)),_0x28269d<0x0)break;if(this['lineBreak'](),_0x25226a>0x1){for(let _0x53a3fb of this['points'])_0x53a3fb['node']==_0x51e61e&&_0x53a3fb['pos']>this['text']['length']&&(_0x53a3fb['pos']-=_0x25226a-0x1);}_0xb0da39=_0x28269d+_0x25226a;}}['readNode'](_0x20f4dc){if(_0x20f4dc['cmIgnore'])return;let _0x351ff8=ContentView['get'](_0x20f4dc),_0x1747bd=_0x351ff8&&_0x351ff8['overrideDOMText'];if(null!=_0x1747bd){this['findPointInside'](_0x20f4dc,_0x1747bd['length']);for(let _0xd81987=_0x1747bd['iter']();!_0xd81987['next']()['done'];)_0xd81987['lineBreak']?this['lineBreak']():this['append'](_0xd81987['value']);}else 0x3==_0x20f4dc['nodeType']?this['readTextNode'](_0x20f4dc):'BR'==_0x20f4dc['nodeName']?_0x20f4dc['nextSibling']&&this['lineBreak']():0x1==_0x20f4dc['nodeType']&&this['readRange'](_0x20f4dc['firstChild'],null);}['findPointBefore'](_0x539d50,_0xec9938){for(let _0x19d4cc of this['points'])_0x19d4cc['node']==_0x539d50&&_0x539d50['childNodes'][_0x19d4cc['offset']]==_0xec9938&&(_0x19d4cc['pos']=this['text']['length']);}['findPointInside'](_0xd73a37,_0x1b37b0){for(let _0x306180 of this['points'])(0x3==_0xd73a37['nodeType']?_0x306180['node']==_0xd73a37:_0xd73a37['contains'](_0x306180['node']))&&(_0x306180['pos']=this['text']['length']+(isAtEnd(_0xd73a37,_0x306180['node'],_0x306180['offset'])?_0x1b37b0:0x0));}}function isAtEnd(_0x11fee1,_0x225905,_0xbdb2a2){for(;;){if(!_0x225905||_0xbdb2a2<maxOffset(_0x225905))return!0x1;if(_0x225905==_0x11fee1)return!0x0;_0xbdb2a2=domIndex(_0x225905)+0x1,_0x225905=_0x225905['parentNode'];}}function isEmptyToEnd(_0x50cca9,_0x3df8ee){let _0x5cb123;for(;_0x50cca9!=_0x3df8ee&&_0x50cca9;_0x50cca9=_0x50cca9['nextSibling']){let _0x1ecd36=ContentView['get'](_0x50cca9);if(!(null==_0x1ecd36?void 0x0:_0x1ecd36['isWidget'])&&!_0x50cca9['cmIgnore'])return!0x1;_0x1ecd36&&(_0x5cb123||(_0x5cb123=[]))['push'](_0x1ecd36);}if(_0x5cb123)for(let _0x1ca5ec of _0x5cb123){let _0x214f9d=_0x1ca5ec['overrideDOMText'];if(null==_0x214f9d?void 0x0:_0x214f9d['length'])return!0x1;}return!0x0;}class DOMPoint{constructor(_0x504795,_0x57caec){this['node']=_0x504795,this['offset']=_0x57caec,this['pos']=-0x1;}}class DOMChange{constructor(_0x57d153,_0xb810f8,_0x402260,_0x3316fa){this['typeOver']=_0x3316fa,this['bounds']=null,this['text']='',this['domChanged']=_0xb810f8>-0x1;let {impreciseHead:_0x5ae8d6,impreciseAnchor:_0x4632d7}=_0x57d153['docView'];if(_0x57d153['state']['readOnly']&&_0xb810f8>-0x1)this['newSel']=null;else{if(_0xb810f8>-0x1&&(this['bounds']=_0x57d153['docView']['domBoundsAround'](_0xb810f8,_0x402260,0x0))){let _0x105a53=_0x5ae8d6||_0x4632d7?[]:selectionPoints(_0x57d153),_0x50a5c8=new DOMReader(_0x105a53,_0x57d153['state']);_0x50a5c8['readRange'](this['bounds']['startDOM'],this['bounds']['endDOM']),this['text']=_0x50a5c8['text'],this['newSel']=selectionFromPoints(_0x105a53,this['bounds']['from']);}else{let _0x4dc7f1=_0x57d153['observer']['selectionRange'],_0x461fb4=_0x5ae8d6&&_0x5ae8d6['node']==_0x4dc7f1['focusNode']&&_0x5ae8d6['offset']==_0x4dc7f1['focusOffset']||!contains(_0x57d153['contentDOM'],_0x4dc7f1['focusNode'])?_0x57d153['state']['selection']['main']['head']:_0x57d153['docView']['posFromDOM'](_0x4dc7f1['focusNode'],_0x4dc7f1['focusOffset']),_0x56eb48=_0x4632d7&&_0x4632d7['node']==_0x4dc7f1['anchorNode']&&_0x4632d7['offset']==_0x4dc7f1['anchorOffset']||!contains(_0x57d153['contentDOM'],_0x4dc7f1['anchorNode'])?_0x57d153['state']['selection']['main']['anchor']:_0x57d153['docView']['posFromDOM'](_0x4dc7f1['anchorNode'],_0x4dc7f1['anchorOffset']),_0x570bad=_0x57d153['viewport'];if((browser['ios']||browser['chrome'])&&_0x57d153['state']['selection']['main']['empty']&&_0x461fb4!=_0x56eb48&&(_0x570bad['from']>0x0||_0x570bad['to']<_0x57d153['state']['doc']['length'])){let _0x5917f0=Math['min'](_0x461fb4,_0x56eb48),_0x67e17d=Math['max'](_0x461fb4,_0x56eb48),_0x1862f4=_0x570bad['from']-_0x5917f0,_0x1bd28e=_0x570bad['to']-_0x67e17d;0x0!=_0x1862f4&&0x1!=_0x1862f4&&0x0!=_0x5917f0||0x0!=_0x1bd28e&&-0x1!=_0x1bd28e&&_0x67e17d!=_0x57d153['state']['doc']['length']||(_0x461fb4=0x0,_0x56eb48=_0x57d153['state']['doc']['length']);}this['newSel']=EditorSelection['single'](_0x56eb48,_0x461fb4);}}}}function applyDOMChange(_0x572b50,_0x225265){let _0x5cfcbb,{newSel:_0x508da1}=_0x225265,_0x379791=_0x572b50['state']['selection']['main'],_0x1a6842=_0x572b50['inputState']['lastKeyTime']>Date['now']()-0x64?_0x572b50['inputState']['lastKeyCode']:-0x1;if(_0x225265['bounds']){let {from:_0x3cc272,to:_0x373b5b}=_0x225265['bounds'],_0x361e2f=_0x379791['from'],_0x229a76=null;(0x8===_0x1a6842||browser['android']&&_0x225265['text']['length']<_0x373b5b-_0x3cc272)&&(_0x361e2f=_0x379791['to'],_0x229a76='end');let _0xf58e24=findDiff(_0x572b50['state']['doc']['sliceString'](_0x3cc272,_0x373b5b,LineBreakPlaceholder),_0x225265['text'],_0x361e2f-_0x3cc272,_0x229a76);_0xf58e24&&(browser['chrome']&&0xd==_0x1a6842&&_0xf58e24['toB']==_0xf58e24['from']+0x2&&_0x225265['text']['slice'](_0xf58e24['from'],_0xf58e24['toB'])==LineBreakPlaceholder+LineBreakPlaceholder&&_0xf58e24['toB']--,_0x5cfcbb={'from':_0x3cc272+_0xf58e24['from'],'to':_0x3cc272+_0xf58e24['toA'],'insert':Text['of'](_0x225265['text']['slice'](_0xf58e24['from'],_0xf58e24['toB'])['split'](LineBreakPlaceholder))});}else _0x508da1&&(!_0x572b50['hasFocus']&&_0x572b50['state']['facet'](editable)||_0x508da1['main']['eq'](_0x379791))&&(_0x508da1=null);if(!_0x5cfcbb&&!_0x508da1)return!0x1;if(!_0x5cfcbb&&_0x225265['typeOver']&&!_0x379791['empty']&&_0x508da1&&_0x508da1['main']['empty']?_0x5cfcbb={'from':_0x379791['from'],'to':_0x379791['to'],'insert':_0x572b50['state']['doc']['slice'](_0x379791['from'],_0x379791['to'])}:(browser['mac']||browser['android'])&&_0x5cfcbb&&_0x5cfcbb['from']==_0x5cfcbb['to']&&_0x5cfcbb['from']==_0x379791['head']-0x1&&/^\. ?$/['test'](_0x5cfcbb['insert']['toString']())&&'off'==_0x572b50['contentDOM']['getAttribute']('autocorrect')?(_0x508da1&&0x2==_0x5cfcbb['insert']['length']&&(_0x508da1=EditorSelection['single'](_0x508da1['main']['anchor']-0x1,_0x508da1['main']['head']-0x1)),_0x5cfcbb={'from':_0x5cfcbb['from'],'to':_0x5cfcbb['to'],'insert':Text['of']([_0x5cfcbb['insert']['toString']()['replace']('.','\x20')])}):_0x5cfcbb&&_0x5cfcbb['from']>=_0x379791['from']&&_0x5cfcbb['to']<=_0x379791['to']&&(_0x5cfcbb['from']!=_0x379791['from']||_0x5cfcbb['to']!=_0x379791['to'])&&_0x379791['to']-_0x379791['from']-(_0x5cfcbb['to']-_0x5cfcbb['from'])<=0x4?_0x5cfcbb={'from':_0x379791['from'],'to':_0x379791['to'],'insert':_0x572b50['state']['doc']['slice'](_0x379791['from'],_0x5cfcbb['from'])['append'](_0x5cfcbb['insert'])['append'](_0x572b50['state']['doc']['slice'](_0x5cfcbb['to'],_0x379791['to']))}:browser['chrome']&&_0x5cfcbb&&_0x5cfcbb['from']==_0x5cfcbb['to']&&_0x5cfcbb['from']==_0x379791['head']&&'\x0a\x20'==_0x5cfcbb['insert']['toString']()&&_0x572b50['lineWrapping']&&(_0x508da1&&(_0x508da1=EditorSelection['single'](_0x508da1['main']['anchor']-0x1,_0x508da1['main']['head']-0x1)),_0x5cfcbb={'from':_0x379791['from'],'to':_0x379791['to'],'insert':Text['of'](['\x20'])}),_0x5cfcbb)return applyDOMChangeInner(_0x572b50,_0x5cfcbb,_0x508da1,_0x1a6842);if(_0x508da1&&!_0x508da1['main']['eq'](_0x379791)){let _0x4d64a2=!0x1,_0xe95c07='select';return _0x572b50['inputState']['lastSelectionTime']>Date['now']()-0x32&&('select'==_0x572b50['inputState']['lastSelectionOrigin']&&(_0x4d64a2=!0x0),_0xe95c07=_0x572b50['inputState']['lastSelectionOrigin'],'select.pointer'==_0xe95c07&&(_0x508da1=skipAtomsForSelection(_0x572b50['state']['facet'](atomicRanges)['map'](_0x24a439=>_0x24a439(_0x572b50)),_0x508da1))),_0x572b50['dispatch']({'selection':_0x508da1,'scrollIntoView':_0x4d64a2,'userEvent':_0xe95c07}),!0x0;}return!0x1;}function applyDOMChangeInner(_0x99932c,_0x16b2d6,_0x4a95c4,_0x414fc2=-0x1){if(browser['ios']&&_0x99932c['inputState']['flushIOSKey'](_0x16b2d6))return!0x0;let _0x2c2cab=_0x99932c['state']['selection']['main'];if(browser['android']&&(_0x16b2d6['to']==_0x2c2cab['to']&&(_0x16b2d6['from']==_0x2c2cab['from']||_0x16b2d6['from']==_0x2c2cab['from']-0x1&&'\x20'==_0x99932c['state']['sliceDoc'](_0x16b2d6['from'],_0x2c2cab['from']))&&0x1==_0x16b2d6['insert']['length']&&0x2==_0x16b2d6['insert']['lines']&&dispatchKey(_0x99932c['contentDOM'],'Enter',0xd)||(_0x16b2d6['from']==_0x2c2cab['from']-0x1&&_0x16b2d6['to']==_0x2c2cab['to']&&0x0==_0x16b2d6['insert']['length']||0x8==_0x414fc2&&_0x16b2d6['insert']['length']<_0x16b2d6['to']-_0x16b2d6['from']&&_0x16b2d6['to']>_0x2c2cab['head'])&&dispatchKey(_0x99932c['contentDOM'],'Backspace',0x8)||_0x16b2d6['from']==_0x2c2cab['from']&&_0x16b2d6['to']==_0x2c2cab['to']+0x1&&0x0==_0x16b2d6['insert']['length']&&dispatchKey(_0x99932c['contentDOM'],'Delete',0x2e)))return!0x0;let _0x151a5b,_0x4f9d77=_0x16b2d6['insert']['toString']();_0x99932c['inputState']['composing']>=0x0&&_0x99932c['inputState']['composing']++;let _0x1fa8ef=()=>_0x151a5b||(_0x151a5b=applyDefaultInsert(_0x99932c,_0x16b2d6,_0x4a95c4));return _0x99932c['state']['facet'](inputHandler$1)['some'](_0x194831=>_0x194831(_0x99932c,_0x16b2d6['from'],_0x16b2d6['to'],_0x4f9d77,_0x1fa8ef))||_0x99932c['dispatch'](_0x1fa8ef()),!0x0;}function applyDefaultInsert(_0xfdec49,_0x44eec4,_0x3d77e5){let _0x422563,_0x3278a0=_0xfdec49['state'],_0x334e8a=_0x3278a0['selection']['main'],_0x4974ae=-0x1;if(_0x44eec4['from']==_0x44eec4['to']&&_0x44eec4['from']<_0x334e8a['from']||_0x44eec4['from']>_0x334e8a['to']){let _0x43ad36=_0x44eec4['from']<_0x334e8a['from']?-0x1:0x1,_0x42dfcb=_0x43ad36<0x0?_0x334e8a['from']:_0x334e8a['to'],_0x574a74=skipAtomicRanges(_0x3278a0['facet'](atomicRanges)['map'](_0x22cc4b=>_0x22cc4b(_0xfdec49)),_0x42dfcb,_0x43ad36);_0x44eec4['from']==_0x574a74&&(_0x4974ae=_0x574a74);}if(_0x4974ae>-0x1)_0x422563={'changes':_0x44eec4,'selection':EditorSelection['cursor'](_0x44eec4['from']+_0x44eec4['insert']['length'],-0x1)};else{if(_0x44eec4['from']>=_0x334e8a['from']&&_0x44eec4['to']<=_0x334e8a['to']&&_0x44eec4['to']-_0x44eec4['from']>=(_0x334e8a['to']-_0x334e8a['from'])/0x3&&(!_0x3d77e5||_0x3d77e5['main']['empty']&&_0x3d77e5['main']['from']==_0x44eec4['from']+_0x44eec4['insert']['length'])&&_0xfdec49['inputState']['composing']<0x0){let _0x4e1ef8=_0x334e8a['from']<_0x44eec4['from']?_0x3278a0['sliceDoc'](_0x334e8a['from'],_0x44eec4['from']):'',_0x93966b=_0x334e8a['to']>_0x44eec4['to']?_0x3278a0['sliceDoc'](_0x44eec4['to'],_0x334e8a['to']):'';_0x422563=_0x3278a0['replaceSelection'](_0xfdec49['state']['toText'](_0x4e1ef8+_0x44eec4['insert']['sliceString'](0x0,void 0x0,_0xfdec49['state']['lineBreak'])+_0x93966b));}else{let _0x47b577=_0x3278a0['changes'](_0x44eec4),_0x2fe9fa=_0x3d77e5&&_0x3d77e5['main']['to']<=_0x47b577['newLength']?_0x3d77e5['main']:void 0x0;if(_0x3278a0['selection']['ranges']['length']>0x1&&_0xfdec49['inputState']['composing']>=0x0&&_0x44eec4['to']<=_0x334e8a['to']&&_0x44eec4['to']>=_0x334e8a['to']-0xa){let _0x53b7b4,_0x20ff1e=_0xfdec49['state']['sliceDoc'](_0x44eec4['from'],_0x44eec4['to']),_0x3bf1c3=_0x3d77e5&&findCompositionNode(_0xfdec49,_0x3d77e5['main']['head']);if(_0x3bf1c3){let _0x45554e=_0x44eec4['insert']['length']-(_0x44eec4['to']-_0x44eec4['from']);_0x53b7b4={'from':_0x3bf1c3['from'],'to':_0x3bf1c3['to']-_0x45554e};}else _0x53b7b4=_0xfdec49['state']['doc']['lineAt'](_0x334e8a['head']);let _0x1a5aaa=_0x334e8a['to']-_0x44eec4['to'],_0x4aa809=_0x334e8a['to']-_0x334e8a['from'];_0x422563=_0x3278a0['changeByRange'](_0x529c59=>{if(_0x529c59['from']==_0x334e8a['from']&&_0x529c59['to']==_0x334e8a['to'])return{'changes':_0x47b577,'range':_0x2fe9fa||_0x529c59['map'](_0x47b577)};let _0x372f19=_0x529c59['to']-_0x1a5aaa,_0x2c7958=_0x372f19-_0x20ff1e['length'];if(_0x529c59['to']-_0x529c59['from']!=_0x4aa809||_0xfdec49['state']['sliceDoc'](_0x2c7958,_0x372f19)!=_0x20ff1e||_0x529c59['to']>=_0x53b7b4['from']&&_0x529c59['from']<=_0x53b7b4['to'])return{'range':_0x529c59};let _0x143e41=_0x3278a0['changes']({'from':_0x2c7958,'to':_0x372f19,'insert':_0x44eec4['insert']}),_0x3df862=_0x529c59['to']-_0x334e8a['to'];return{'changes':_0x143e41,'range':_0x2fe9fa?EditorSelection['range'](Math['max'](0x0,_0x2fe9fa['anchor']+_0x3df862),Math['max'](0x0,_0x2fe9fa['head']+_0x3df862)):_0x529c59['map'](_0x143e41)};});}else _0x422563={'changes':_0x47b577,'selection':_0x2fe9fa&&_0x3278a0['selection']['replaceRange'](_0x2fe9fa)};}}let _0x14e289='input.type';return(_0xfdec49['composing']||_0xfdec49['inputState']['compositionPendingChange']&&_0xfdec49['inputState']['compositionEndedAt']>Date['now']()-0x32)&&(_0xfdec49['inputState']['compositionPendingChange']=!0x1,_0x14e289+='.compose',_0xfdec49['inputState']['compositionFirstChange']&&(_0x14e289+='.start',_0xfdec49['inputState']['compositionFirstChange']=!0x1)),_0x3278a0['update'](_0x422563,{'userEvent':_0x14e289,'scrollIntoView':!0x0});}function findDiff(_0x21abf5,_0x2d8a80,_0x2205ce,_0x276bbe){let _0x90505b=Math['min'](_0x21abf5['length'],_0x2d8a80['length']),_0x485a25=0x0;for(;_0x485a25<_0x90505b&&_0x21abf5['charCodeAt'](_0x485a25)==_0x2d8a80['charCodeAt'](_0x485a25);)_0x485a25++;if(_0x485a25==_0x90505b&&_0x21abf5['length']==_0x2d8a80['length'])return null;let _0x15e5ef=_0x21abf5['length'],_0x31d834=_0x2d8a80['length'];for(;_0x15e5ef>0x0&&_0x31d834>0x0&&_0x21abf5['charCodeAt'](_0x15e5ef-0x1)==_0x2d8a80['charCodeAt'](_0x31d834-0x1);)_0x15e5ef--,_0x31d834--;'end'==_0x276bbe&&(_0x2205ce-=_0x15e5ef+Math['max'](0x0,_0x485a25-Math['min'](_0x15e5ef,_0x31d834))-_0x485a25);if(_0x15e5ef<_0x485a25&&_0x21abf5['length']<_0x2d8a80['length'])_0x485a25-=_0x2205ce<=_0x485a25&&_0x2205ce>=_0x15e5ef?_0x485a25-_0x2205ce:0x0,_0x31d834=_0x485a25+(_0x31d834-_0x15e5ef),_0x15e5ef=_0x485a25;else _0x31d834<_0x485a25&&(_0x485a25-=_0x2205ce<=_0x485a25&&_0x2205ce>=_0x31d834?_0x485a25-_0x2205ce:0x0,_0x15e5ef=_0x485a25+(_0x15e5ef-_0x31d834),_0x31d834=_0x485a25);return{'from':_0x485a25,'toA':_0x15e5ef,'toB':_0x31d834};}function selectionPoints(_0x3ae793){let _0x30cb9a=[];if(_0x3ae793['root']['activeElement']!=_0x3ae793['contentDOM'])return _0x30cb9a;let {anchorNode:_0x4b1ec2,anchorOffset:_0xd5b858,focusNode:_0x2cd3a7,focusOffset:_0x74f20}=_0x3ae793['observer']['selectionRange'];return _0x4b1ec2&&(_0x30cb9a['push'](new DOMPoint(_0x4b1ec2,_0xd5b858)),_0x2cd3a7==_0x4b1ec2&&_0x74f20==_0xd5b858||_0x30cb9a['push'](new DOMPoint(_0x2cd3a7,_0x74f20))),_0x30cb9a;}function selectionFromPoints(_0x432187,_0x3674c1){if(0x0==_0x432187['length'])return null;let _0x78506d=_0x432187[0x0]['pos'],_0x330b39=0x2==_0x432187['length']?_0x432187[0x1]['pos']:_0x78506d;return _0x78506d>-0x1&&_0x330b39>-0x1?EditorSelection['single'](_0x78506d+_0x3674c1,_0x330b39+_0x3674c1):null;}class InputState{['setSelectionOrigin'](_0x385cb3){this['lastSelectionOrigin']=_0x385cb3,this['lastSelectionTime']=Date['now']();}constructor(_0x45f47c){this['view']=_0x45f47c,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']=_0x45f47c['hasFocus'],browser['safari']&&_0x45f47c['contentDOM']['addEventListener']('input',()=>null),browser['gecko']&&firefoxCopyCutHack(_0x45f47c['contentDOM']['ownerDocument']);}['handleEvent'](_0x1e880f){eventBelongsToEditor(this['view'],_0x1e880f)&&!this['ignoreDuringComposition'](_0x1e880f)&&('keydown'==_0x1e880f['type']&&this['keydown'](_0x1e880f)||(0x0!=this['view']['updateState']?Promise['resolve']()['then'](()=>this['runHandlers'](_0x1e880f['type'],_0x1e880f)):this['runHandlers'](_0x1e880f['type'],_0x1e880f)));}['runHandlers'](_0x56eba1,_0x455545){let _0x84d1bc=this['handlers'][_0x56eba1];if(_0x84d1bc){for(let _0x171f70 of _0x84d1bc['observers'])_0x171f70(this['view'],_0x455545);for(let _0xff7b16 of _0x84d1bc['handlers']){if(_0x455545['defaultPrevented'])break;if(_0xff7b16(this['view'],_0x455545)){_0x455545['preventDefault']();break;}}}}['ensureHandlers'](_0x180060){let _0x467edf=computeHandlers(_0x180060),_0x1314f7=this['handlers'],_0x2f2aca=this['view']['contentDOM'];for(let _0x56b8fb in _0x467edf)if('scroll'!=_0x56b8fb){let _0x308955=!_0x467edf[_0x56b8fb]['handlers']['length'],_0x24f3a6=_0x1314f7[_0x56b8fb];_0x24f3a6&&_0x308955!=!_0x24f3a6['handlers']['length']&&(_0x2f2aca['removeEventListener'](_0x56b8fb,this['handleEvent']),_0x24f3a6=null),_0x24f3a6||_0x2f2aca['addEventListener'](_0x56b8fb,this['handleEvent'],{'passive':_0x308955});}for(let _0x18150e in _0x1314f7)'scroll'==_0x18150e||_0x467edf[_0x18150e]||_0x2f2aca['removeEventListener'](_0x18150e,this['handleEvent']);this['handlers']=_0x467edf;}['keydown'](_0x4aa56f){if(this['lastKeyCode']=_0x4aa56f['keyCode'],this['lastKeyTime']=Date['now'](),0x9==_0x4aa56f['keyCode']&&this['tabFocusMode']>-0x1&&(!this['tabFocusMode']||Date['now']()<=this['tabFocusMode']))return!0x0;if(this['tabFocusMode']>0x0&&0x1b!=_0x4aa56f['keyCode']&&modifierCodes['indexOf'](_0x4aa56f['keyCode'])<0x0&&(this['tabFocusMode']=-0x1),browser['android']&&browser['chrome']&&!_0x4aa56f['synthetic']&&(0xd==_0x4aa56f['keyCode']||0x8==_0x4aa56f['keyCode']))return this['view']['observer']['delayAndroidKey'](_0x4aa56f['key'],_0x4aa56f['keyCode']),!0x0;let _0x318f65;return!browser['ios']||_0x4aa56f['synthetic']||_0x4aa56f['altKey']||_0x4aa56f['metaKey']||!((_0x318f65=PendingKeys['find'](_0xeb879b=>_0xeb879b['keyCode']==_0x4aa56f['keyCode']))&&!_0x4aa56f['ctrlKey']||EmacsyPendingKeys['indexOf'](_0x4aa56f['key'])>-0x1&&_0x4aa56f['ctrlKey']&&!_0x4aa56f['shiftKey'])?(0xe5!=_0x4aa56f['keyCode']&&this['view']['observer']['forceFlush'](),!0x1):(this['pendingIOSKey']=_0x318f65||_0x4aa56f,setTimeout(()=>this['flushIOSKey'](),0xfa),!0x0);}['flushIOSKey'](_0x79dc57){let _0xb98119=this['pendingIOSKey'];return!!_0xb98119&&(!('Enter'==_0xb98119['key']&&_0x79dc57&&_0x79dc57['from']<_0x79dc57['to']&&/^\S+$/['test'](_0x79dc57['insert']['toString']()))&&(this['pendingIOSKey']=void 0x0,dispatchKey(this['view']['contentDOM'],_0xb98119['key'],_0xb98119['keyCode'],_0xb98119 instanceof KeyboardEvent?_0xb98119:void 0x0)));}['ignoreDuringComposition'](_0x11265a){return!(!/^key/['test'](_0x11265a['type'])||_0x11265a['synthetic'])&&(this['composing']>0x0||!!(browser['safari']&&!browser['ios']&&this['compositionPendingKey']&&Date['now']()-this['compositionEndedAt']<0x64)&&(this['compositionPendingKey']=!0x1,!0x0));}['startMouseSelection'](_0x48ef02){this['mouseSelection']&&this['mouseSelection']['destroy'](),this['mouseSelection']=_0x48ef02;}['update'](_0x331717){this['view']['observer']['update'](_0x331717),this['mouseSelection']&&this['mouseSelection']['update'](_0x331717),this['draggedContent']&&_0x331717['docChanged']&&(this['draggedContent']=this['draggedContent']['map'](_0x331717['changes'])),_0x331717['transactions']['length']&&(this['lastKeyCode']=this['lastSelectionTime']=0x0);}['destroy'](){this['mouseSelection']&&this['mouseSelection']['destroy']();}}function bindHandler(_0x2afdac,_0x314a0c){return(_0x563205,_0x495fd7)=>{try{return _0x314a0c['call'](_0x2afdac,_0x495fd7,_0x563205);}catch(_0x83b1b2){logException(_0x563205['state'],_0x83b1b2);}};}function computeHandlers(_0x3b70c0){let _0x24e71f=Object['create'](null);function _0x238631(_0x505689){return _0x24e71f[_0x505689]||(_0x24e71f[_0x505689]={'observers':[],'handlers':[]});}for(let _0x5a63a0 of _0x3b70c0){let _0x420c88=_0x5a63a0['spec'],_0x2036ea=_0x420c88&&_0x420c88['plugin']['domEventHandlers'],_0x2d98db=_0x420c88&&_0x420c88['plugin']['domEventObservers'];if(_0x2036ea)for(let _0x4f0662 in _0x2036ea){let _0x579d64=_0x2036ea[_0x4f0662];_0x579d64&&_0x238631(_0x4f0662)['handlers']['push'](bindHandler(_0x5a63a0['value'],_0x579d64));}if(_0x2d98db)for(let _0x52ef28 in _0x2d98db){let _0x4bf1b5=_0x2d98db[_0x52ef28];_0x4bf1b5&&_0x238631(_0x52ef28)['observers']['push'](bindHandler(_0x5a63a0['value'],_0x4bf1b5));}}for(let _0x4d9f41 in handlers)_0x238631(_0x4d9f41)['handlers']['push'](handlers[_0x4d9f41]);for(let _0x1ca8dd in observers)_0x238631(_0x1ca8dd)['observers']['push'](observers[_0x1ca8dd]);return _0x24e71f;}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(_0x227fc1){return 0.7*Math['max'](0x0,_0x227fc1)+0x8;}function dist(_0x561b1,_0x414944){return Math['max'](Math['abs'](_0x561b1['clientX']-_0x414944['clientX']),Math['abs'](_0x561b1['clientY']-_0x414944['clientY']));}class MouseSelection{constructor(_0x51e8c2,_0x1dfe30,_0x19a0dc,_0x4e3f60){this['view']=_0x51e8c2,this['startEvent']=_0x1dfe30,this['style']=_0x19a0dc,this['mustSelect']=_0x4e3f60,this['scrollSpeed']={'x':0x0,'y':0x0},this['scrolling']=-0x1,this['lastEvent']=_0x1dfe30,this['scrollParents']=scrollableParents(_0x51e8c2['contentDOM']),this['atoms']=_0x51e8c2['state']['facet'](atomicRanges)['map'](_0x2634e9=>_0x2634e9(_0x51e8c2));let _0x1f35b1=_0x51e8c2['contentDOM']['ownerDocument'];_0x1f35b1['addEventListener']('mousemove',this['move']=this['move']['bind'](this)),_0x1f35b1['addEventListener']('mouseup',this['up']=this['up']['bind'](this)),this['extend']=_0x1dfe30['shiftKey'],this['multiple']=_0x51e8c2['state']['facet'](EditorState['allowMultipleSelections'])&&addsSelectionRange(_0x51e8c2,_0x1dfe30),this['dragging']=!(!isInPrimarySelection(_0x51e8c2,_0x1dfe30)||0x1!=getClickType(_0x1dfe30))&&null;}['start'](_0xc11379){!0x1===this['dragging']&&this['select'](_0xc11379);}['move'](_0x202f31){if(0x0==_0x202f31['buttons'])return this['destroy']();if(this['dragging']||null==this['dragging']&&dist(this['startEvent'],_0x202f31)<0xa)return;this['select'](this['lastEvent']=_0x202f31);let _0x11f46b=0x0,_0x213e8b=0x0,_0x4f7949=0x0,_0x357f0d=0x0,_0xd5d070=this['view']['win']['innerWidth'],_0x38f4cc=this['view']['win']['innerHeight'];this['scrollParents']['x']&&({left:_0x4f7949,right:_0xd5d070}=this['scrollParents']['x']['getBoundingClientRect']()),this['scrollParents']['y']&&({top:_0x357f0d,bottom:_0x38f4cc}=this['scrollParents']['y']['getBoundingClientRect']());let _0x3a6e71=getScrollMargins(this['view']);_0x202f31['clientX']-_0x3a6e71['left']<=_0x4f7949+dragScrollMargin?_0x11f46b=-dragScrollSpeed(_0x4f7949-_0x202f31['clientX']):_0x202f31['clientX']+_0x3a6e71['right']>=_0xd5d070-dragScrollMargin&&(_0x11f46b=dragScrollSpeed(_0x202f31['clientX']-_0xd5d070)),_0x202f31['clientY']-_0x3a6e71['top']<=_0x357f0d+dragScrollMargin?_0x213e8b=-dragScrollSpeed(_0x357f0d-_0x202f31['clientY']):_0x202f31['clientY']+_0x3a6e71['bottom']>=_0x38f4cc-dragScrollMargin&&(_0x213e8b=dragScrollSpeed(_0x202f31['clientY']-_0x38f4cc)),this['setScrollSpeed'](_0x11f46b,_0x213e8b);}['up'](_0x19edd0){null==this['dragging']&&this['select'](this['lastEvent']),this['dragging']||_0x19edd0['preventDefault'](),this['destroy']();}['destroy'](){this['setScrollSpeed'](0x0,0x0);let _0x1b0b30=this['view']['contentDOM']['ownerDocument'];_0x1b0b30['removeEventListener']('mousemove',this['move']),_0x1b0b30['removeEventListener']('mouseup',this['up']),this['view']['inputState']['mouseSelection']=this['view']['inputState']['draggedContent']=null;}['setScrollSpeed'](_0x394c8c,_0x38604c){this['scrollSpeed']={'x':_0x394c8c,'y':_0x38604c},_0x394c8c||_0x38604c?this['scrolling']<0x0&&(this['scrolling']=setInterval(()=>this['scroll'](),0x32)):this['scrolling']>-0x1&&(clearInterval(this['scrolling']),this['scrolling']=-0x1);}['scroll'](){let {x:_0x3e3971,y:_0x8cf36d}=this['scrollSpeed'];_0x3e3971&&this['scrollParents']['x']&&(this['scrollParents']['x']['scrollLeft']+=_0x3e3971,_0x3e3971=0x0),_0x8cf36d&&this['scrollParents']['y']&&(this['scrollParents']['y']['scrollTop']+=_0x8cf36d,_0x8cf36d=0x0),(_0x3e3971||_0x8cf36d)&&this['view']['win']['scrollBy'](_0x3e3971,_0x8cf36d),!0x1===this['dragging']&&this['select'](this['lastEvent']);}['select'](_0x2799a0){let {view:_0x2b1a03}=this,_0x5475b4=skipAtomsForSelection(this['atoms'],this['style']['get'](_0x2799a0,this['extend'],this['multiple']));!this['mustSelect']&&_0x5475b4['eq'](_0x2b1a03['state']['selection'],!0x1===this['dragging'])||this['view']['dispatch']({'selection':_0x5475b4,'userEvent':'select.pointer'}),this['mustSelect']=!0x1;}['update'](_0x4f0b40){_0x4f0b40['transactions']['some'](_0x1ecd1d=>_0x1ecd1d['isUserEvent']('input.type'))?this['destroy']():this['style']['update'](_0x4f0b40)&&setTimeout(()=>this['select'](this['lastEvent']),0x14);}}function addsSelectionRange(_0x4791cd,_0x1b6229){let _0xc84be9=_0x4791cd['state']['facet'](clickAddsSelectionRange);return _0xc84be9['length']?_0xc84be9[0x0](_0x1b6229):browser['mac']?_0x1b6229['metaKey']:_0x1b6229['ctrlKey'];}function dragMovesSelection(_0x810c82,_0x326885){let _0x34c583=_0x810c82['state']['facet'](dragMovesSelection$1);return _0x34c583['length']?_0x34c583[0x0](_0x326885):browser['mac']?!_0x326885['altKey']:!_0x326885['ctrlKey'];}function isInPrimarySelection(_0x46cb7c,_0x4f34f9){let {main:_0x28c3f9}=_0x46cb7c['state']['selection'];if(_0x28c3f9['empty'])return!0x1;let _0x3d74c6=getSelection(_0x46cb7c['root']);if(!_0x3d74c6||0x0==_0x3d74c6['rangeCount'])return!0x0;let _0x44f979=_0x3d74c6['getRangeAt'](0x0)['getClientRects']();for(let _0x2be6fe=0x0;_0x2be6fe<_0x44f979['length'];_0x2be6fe++){let _0x447410=_0x44f979[_0x2be6fe];if(_0x447410['left']<=_0x4f34f9['clientX']&&_0x447410['right']>=_0x4f34f9['clientX']&&_0x447410['top']<=_0x4f34f9['clientY']&&_0x447410['bottom']>=_0x4f34f9['clientY'])return!0x0;}return!0x1;}function eventBelongsToEditor(_0x58b12d,_0x5ee65e){if(!_0x5ee65e['bubbles'])return!0x0;if(_0x5ee65e['defaultPrevented'])return!0x1;for(let _0x36ad26,_0x19bed1=_0x5ee65e['target'];_0x19bed1!=_0x58b12d['contentDOM'];_0x19bed1=_0x19bed1['parentNode'])if(!_0x19bed1||0xb==_0x19bed1['nodeType']||(_0x36ad26=ContentView['get'](_0x19bed1))&&_0x36ad26['ignoreEvent'](_0x5ee65e))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(_0x5d9495){let _0x2de25f=_0x5d9495['dom']['parentNode'];if(!_0x2de25f)return;let _0x2951e4=_0x2de25f['appendChild'](document['createElement']('textarea'));_0x2951e4['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x2951e4['focus'](),setTimeout(()=>{_0x5d9495['focus'](),_0x2951e4['remove'](),doPaste(_0x5d9495,_0x2951e4['value']);},0x32);}function textFilter(_0x263ff8,_0x28d5da,_0x24fa5d){for(let _0xdba44c of _0x263ff8['facet'](_0x28d5da))_0x24fa5d=_0xdba44c(_0x24fa5d,_0x263ff8);return _0x24fa5d;}function doPaste(_0x485fe3,_0x363f03){_0x363f03=textFilter(_0x485fe3['state'],clipboardInputFilter,_0x363f03);let _0x3b6609,{state:_0x5f3711}=_0x485fe3,_0x46a97e=0x1,_0x1c0bf9=_0x5f3711['toText'](_0x363f03),_0x154e8a=_0x1c0bf9['lines']==_0x5f3711['selection']['ranges']['length'],_0x4e8dc8=null!=lastLinewiseCopy&&_0x5f3711['selection']['ranges']['every'](_0x575953=>_0x575953['empty'])&&lastLinewiseCopy==_0x1c0bf9['toString']();if(_0x4e8dc8){let _0x4da85b=-0x1;_0x3b6609=_0x5f3711['changeByRange'](_0x301c9a=>{let _0x20d64a=_0x5f3711['doc']['lineAt'](_0x301c9a['from']);if(_0x20d64a['from']==_0x4da85b)return{'range':_0x301c9a};_0x4da85b=_0x20d64a['from'];let _0x46a72f=_0x5f3711['toText']((_0x154e8a?_0x1c0bf9['line'](_0x46a97e++)['text']:_0x363f03)+_0x5f3711['lineBreak']);return{'changes':{'from':_0x20d64a['from'],'insert':_0x46a72f},'range':EditorSelection['cursor'](_0x301c9a['from']+_0x46a72f['length'])};});}else _0x3b6609=_0x154e8a?_0x5f3711['changeByRange'](_0x212b5d=>{let _0x5d04b3=_0x1c0bf9['line'](_0x46a97e++);return{'changes':{'from':_0x212b5d['from'],'to':_0x212b5d['to'],'insert':_0x5d04b3['text']},'range':EditorSelection['cursor'](_0x212b5d['from']+_0x5d04b3['length'])};}):_0x5f3711['replaceSelection'](_0x1c0bf9);_0x485fe3['dispatch'](_0x3b6609,{'userEvent':'input.paste','scrollIntoView':!0x0});}function rangeForClick(_0x23702a,_0x2d8af7,_0x38b396,_0x55a991){if(0x1==_0x55a991)return EditorSelection['cursor'](_0x2d8af7,_0x38b396);if(0x2==_0x55a991)return groupAt(_0x23702a['state'],_0x2d8af7,_0x38b396);{let _0xb22da4=LineView['find'](_0x23702a['docView'],_0x2d8af7),_0x212b26=_0x23702a['state']['doc']['lineAt'](_0xb22da4?_0xb22da4['posAtEnd']:_0x2d8af7),_0x2c3560=_0xb22da4?_0xb22da4['posAtStart']:_0x212b26['from'],_0x5babca=_0xb22da4?_0xb22da4['posAtEnd']:_0x212b26['to'];return _0x5babca<_0x23702a['state']['doc']['length']&&_0x5babca==_0x212b26['to']&&_0x5babca++,EditorSelection['range'](_0x2c3560,_0x5babca);}}observers['scroll']=_0x446de1=>{_0x446de1['inputState']['lastScrollTop']=_0x446de1['scrollDOM']['scrollTop'],_0x446de1['inputState']['lastScrollLeft']=_0x446de1['scrollDOM']['scrollLeft'];},handlers['keydown']=(_0x1684c3,_0x370508)=>(_0x1684c3['inputState']['setSelectionOrigin']('select'),0x1b==_0x370508['keyCode']&&0x0!=_0x1684c3['inputState']['tabFocusMode']&&(_0x1684c3['inputState']['tabFocusMode']=Date['now']()+0x7d0),!0x1),observers['touchstart']=(_0x20e1b7,_0x35ead6)=>{_0x20e1b7['inputState']['lastTouchTime']=Date['now'](),_0x20e1b7['inputState']['setSelectionOrigin']('select.pointer');},observers['touchmove']=_0x5a62e2=>{_0x5a62e2['inputState']['setSelectionOrigin']('select.pointer');},handlers['mousedown']=(_0x2206a8,_0x3ca0fc)=>{if(_0x2206a8['observer']['flush'](),_0x2206a8['inputState']['lastTouchTime']>Date['now']()-0x7d0)return!0x1;let _0x13a814=null;for(let _0x1b03b7 of _0x2206a8['state']['facet'](mouseSelectionStyle))if(_0x13a814=_0x1b03b7(_0x2206a8,_0x3ca0fc),_0x13a814)break;if(_0x13a814||0x0!=_0x3ca0fc['button']||(_0x13a814=basicMouseSelection(_0x2206a8,_0x3ca0fc)),_0x13a814){let _0x4323cc=!_0x2206a8['hasFocus'];_0x2206a8['inputState']['startMouseSelection'](new MouseSelection(_0x2206a8,_0x3ca0fc,_0x13a814,_0x4323cc)),_0x4323cc&&_0x2206a8['observer']['ignore'](()=>{focusPreventScroll(_0x2206a8['contentDOM']);let _0x1a7675=_0x2206a8['root']['activeElement'];_0x1a7675&&!_0x1a7675['contains'](_0x2206a8['contentDOM'])&&_0x1a7675['blur']();});let _0x591c25=_0x2206a8['inputState']['mouseSelection'];if(_0x591c25)return _0x591c25['start'](_0x3ca0fc),!0x1===_0x591c25['dragging'];}else _0x2206a8['inputState']['setSelectionOrigin']('select.pointer');return!0x1;};let inside=(_0x59d144,_0x43d9d7,_0xf00a53)=>_0x43d9d7>=_0xf00a53['top']&&_0x43d9d7<=_0xf00a53['bottom']&&_0x59d144>=_0xf00a53['left']&&_0x59d144<=_0xf00a53['right'];function findPositionSide(_0xb28240,_0x32b469,_0x560f73,_0xa38668){let _0x21127f=LineView['find'](_0xb28240['docView'],_0x32b469);if(!_0x21127f)return 0x1;let _0xbba0d=_0x32b469-_0x21127f['posAtStart'];if(0x0==_0xbba0d)return 0x1;if(_0xbba0d==_0x21127f['length'])return-0x1;let _0x220c33=_0x21127f['coordsAt'](_0xbba0d,-0x1);if(_0x220c33&&inside(_0x560f73,_0xa38668,_0x220c33))return-0x1;let _0x4ce30b=_0x21127f['coordsAt'](_0xbba0d,0x1);return _0x4ce30b&&inside(_0x560f73,_0xa38668,_0x4ce30b)?0x1:_0x220c33&&_0x220c33['bottom']>=_0xa38668?-0x1:0x1;}function queryPos(_0x32006e,_0x32044a){let _0x3faeca=_0x32006e['posAtCoords']({'x':_0x32044a['clientX'],'y':_0x32044a['clientY']},!0x1);return{'pos':_0x3faeca,'bias':findPositionSide(_0x32006e,_0x3faeca,_0x32044a['clientX'],_0x32044a['clientY'])};}const BadMouseDetail=browser['ie']&&browser['ie_version']<=0xb;let lastMouseDown=null,lastMouseDownCount=0x0,lastMouseDownTime=0x0;function getClickType(_0x5b2df6){if(!BadMouseDetail)return _0x5b2df6['detail'];let _0x36c2c5=lastMouseDown,_0x5e4a19=lastMouseDownTime;return lastMouseDown=_0x5b2df6,lastMouseDownTime=Date['now'](),lastMouseDownCount=!_0x36c2c5||_0x5e4a19>Date['now']()-0x190&&Math['abs'](_0x36c2c5['clientX']-_0x5b2df6['clientX'])<0x2&&Math['abs'](_0x36c2c5['clientY']-_0x5b2df6['clientY'])<0x2?(lastMouseDownCount+0x1)%0x3:0x1;}function basicMouseSelection(_0x281fdd,_0xfa15f6){let _0x53160b=queryPos(_0x281fdd,_0xfa15f6),_0x29edc5=getClickType(_0xfa15f6),_0x545a82=_0x281fdd['state']['selection'];return{'update'(_0x3da57b){_0x3da57b['docChanged']&&(_0x53160b['pos']=_0x3da57b['changes']['mapPos'](_0x53160b['pos']),_0x545a82=_0x545a82['map'](_0x3da57b['changes']));},'get'(_0x158fbd,_0x3c3e50,_0x57b14e){let _0x3b9376,_0x56472d=queryPos(_0x281fdd,_0x158fbd),_0xbf783c=rangeForClick(_0x281fdd,_0x56472d['pos'],_0x56472d['bias'],_0x29edc5);if(_0x53160b['pos']!=_0x56472d['pos']&&!_0x3c3e50){let _0x35ecd5=rangeForClick(_0x281fdd,_0x53160b['pos'],_0x53160b['bias'],_0x29edc5),_0x35ca4e=Math['min'](_0x35ecd5['from'],_0xbf783c['from']),_0x20db5b=Math['max'](_0x35ecd5['to'],_0xbf783c['to']);_0xbf783c=_0x35ca4e<_0xbf783c['from']?EditorSelection['range'](_0x35ca4e,_0x20db5b):EditorSelection['range'](_0x20db5b,_0x35ca4e);}return _0x3c3e50?_0x545a82['replaceRange'](_0x545a82['main']['extend'](_0xbf783c['from'],_0xbf783c['to'])):_0x57b14e&&0x1==_0x29edc5&&_0x545a82['ranges']['length']>0x1&&(_0x3b9376=removeRangeAround(_0x545a82,_0x56472d['pos']))?_0x3b9376:_0x57b14e?_0x545a82['addRange'](_0xbf783c):EditorSelection['create']([_0xbf783c]);}};}function removeRangeAround(_0x45f238,_0x1e1d13){for(let _0x306cef=0x0;_0x306cef<_0x45f238['ranges']['length'];_0x306cef++){let {from:_0x4fd52a,to:_0x53b3b8}=_0x45f238['ranges'][_0x306cef];if(_0x4fd52a<=_0x1e1d13&&_0x53b3b8>=_0x1e1d13)return EditorSelection['create'](_0x45f238['ranges']['slice'](0x0,_0x306cef)['concat'](_0x45f238['ranges']['slice'](_0x306cef+0x1)),_0x45f238['mainIndex']==_0x306cef?0x0:_0x45f238['mainIndex']-(_0x45f238['mainIndex']>_0x306cef?0x1:0x0));}return null;}function dropText(_0x464060,_0x33dde0,_0x489c56,_0x3a3671){if(!(_0x489c56=textFilter(_0x464060['state'],clipboardInputFilter,_0x489c56)))return;let _0x33b99f=_0x464060['posAtCoords']({'x':_0x33dde0['clientX'],'y':_0x33dde0['clientY']},!0x1),{draggedContent:_0x4cf4aa}=_0x464060['inputState'],_0x4dc13d=_0x3a3671&&_0x4cf4aa&&dragMovesSelection(_0x464060,_0x33dde0)?{'from':_0x4cf4aa['from'],'to':_0x4cf4aa['to']}:null,_0x41ac0f={'from':_0x33b99f,'insert':_0x489c56},_0x1a370f=_0x464060['state']['changes'](_0x4dc13d?[_0x4dc13d,_0x41ac0f]:_0x41ac0f);_0x464060['focus'](),_0x464060['dispatch']({'changes':_0x1a370f,'selection':{'anchor':_0x1a370f['mapPos'](_0x33b99f,-0x1),'head':_0x1a370f['mapPos'](_0x33b99f,0x1)},'userEvent':_0x4dc13d?'move.drop':'input.drop'}),_0x464060['inputState']['draggedContent']=null;}function captureCopy(_0x5a7373,_0x5c91f6){let _0x3c6931=_0x5a7373['dom']['parentNode'];if(!_0x3c6931)return;let _0x4def21=_0x3c6931['appendChild'](document['createElement']('textarea'));_0x4def21['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x4def21['value']=_0x5c91f6,_0x4def21['focus'](),_0x4def21['selectionEnd']=_0x5c91f6['length'],_0x4def21['selectionStart']=0x0,setTimeout(()=>{_0x4def21['remove'](),_0x5a7373['focus']();},0x32);}function copiedRange(_0x19fc63){let _0x474a3e=[],_0x28c257=[],_0x646179=!0x1;for(let _0x38e310 of _0x19fc63['selection']['ranges'])_0x38e310['empty']||(_0x474a3e['push'](_0x19fc63['sliceDoc'](_0x38e310['from'],_0x38e310['to'])),_0x28c257['push'](_0x38e310));if(!_0x474a3e['length']){let _0x1e6dcd=-0x1;for(let {from:_0x2c57a3}of _0x19fc63['selection']['ranges']){let _0x274345=_0x19fc63['doc']['lineAt'](_0x2c57a3);_0x274345['number']>_0x1e6dcd&&(_0x474a3e['push'](_0x274345['text']),_0x28c257['push']({'from':_0x274345['from'],'to':Math['min'](_0x19fc63['doc']['length'],_0x274345['to']+0x1)})),_0x1e6dcd=_0x274345['number'];}_0x646179=!0x0;}return{'text':textFilter(_0x19fc63,clipboardOutputFilter,_0x474a3e['join'](_0x19fc63['lineBreak'])),'ranges':_0x28c257,'linewise':_0x646179};}handlers['dragstart']=(_0x5bbed2,_0x1c5aab)=>{let {selection:{main:_0xc66f79}}=_0x5bbed2['state'];if(_0x1c5aab['target']['draggable']){let _0x98eb44=_0x5bbed2['docView']['nearest'](_0x1c5aab['target']);if(_0x98eb44&&_0x98eb44['isWidget']){let _0x49fbe4=_0x98eb44['posAtStart'],_0x2a920b=_0x49fbe4+_0x98eb44['length'];(_0x49fbe4>=_0xc66f79['to']||_0x2a920b<=_0xc66f79['from'])&&(_0xc66f79=EditorSelection['range'](_0x49fbe4,_0x2a920b));}}let {inputState:_0x191416}=_0x5bbed2;return _0x191416['mouseSelection']&&(_0x191416['mouseSelection']['dragging']=!0x0),_0x191416['draggedContent']=_0xc66f79,_0x1c5aab['dataTransfer']&&(_0x1c5aab['dataTransfer']['setData']('Text',textFilter(_0x5bbed2['state'],clipboardOutputFilter,_0x5bbed2['state']['sliceDoc'](_0xc66f79['from'],_0xc66f79['to']))),_0x1c5aab['dataTransfer']['effectAllowed']='copyMove'),!0x1;},handlers['dragend']=_0x3f7d71=>(_0x3f7d71['inputState']['draggedContent']=null,!0x1),handlers['drop']=(_0x5d7213,_0x1c3780)=>{if(!_0x1c3780['dataTransfer'])return!0x1;if(_0x5d7213['state']['readOnly'])return!0x0;let _0x27c52e=_0x1c3780['dataTransfer']['files'];if(_0x27c52e&&_0x27c52e['length']){let _0x3deea2=Array(_0x27c52e['length']),_0x5d235d=0x0,_0x472997=()=>{++_0x5d235d==_0x27c52e['length']&&dropText(_0x5d7213,_0x1c3780,_0x3deea2['filter'](_0x178974=>null!=_0x178974)['join'](_0x5d7213['state']['lineBreak']),!0x1);};for(let _0x983c9b=0x0;_0x983c9b<_0x27c52e['length'];_0x983c9b++){let _0x2ea9b7=new FileReader();_0x2ea9b7['onerror']=_0x472997,_0x2ea9b7['onload']=()=>{/[\x00-\x08\x0e-\x1f]{2}/['test'](_0x2ea9b7['result'])||(_0x3deea2[_0x983c9b]=_0x2ea9b7['result']),_0x472997();},_0x2ea9b7['readAsText'](_0x27c52e[_0x983c9b]);}return!0x0;}{let _0x16792d=_0x1c3780['dataTransfer']['getData']('Text');if(_0x16792d)return dropText(_0x5d7213,_0x1c3780,_0x16792d,!0x0),!0x0;}return!0x1;},handlers['paste']=(_0x318ea9,_0x11c276)=>{if(_0x318ea9['state']['readOnly'])return!0x0;_0x318ea9['observer']['flush']();let _0x136024=brokenClipboardAPI?null:_0x11c276['clipboardData'];return _0x136024?(doPaste(_0x318ea9,_0x136024['getData']('text/plain')||_0x136024['getData']('text/uri-list')),!0x0):(capturePaste(_0x318ea9),!0x1);};let lastLinewiseCopy=null;handlers['copy']=handlers['cut']=(_0x1e9054,_0x3027ff)=>{let {text:_0x46955f,ranges:_0x52b9ae,linewise:_0x304191}=copiedRange(_0x1e9054['state']);if(!_0x46955f&&!_0x304191)return!0x1;lastLinewiseCopy=_0x304191?_0x46955f:null,'cut'!=_0x3027ff['type']||_0x1e9054['state']['readOnly']||_0x1e9054['dispatch']({'changes':_0x52b9ae,'scrollIntoView':!0x0,'userEvent':'delete.cut'});let _0x384dd9=brokenClipboardAPI?null:_0x3027ff['clipboardData'];return _0x384dd9?(_0x384dd9['clearData'](),_0x384dd9['setData']('text/plain',_0x46955f),!0x0):(captureCopy(_0x1e9054,_0x46955f),!0x1);};const isFocusChange=Annotation['define']();function focusChangeTransaction(_0x382f17,_0x14484b){let _0x287fb5=[];for(let _0x147915 of _0x382f17['facet'](focusChangeEffect)){let _0x4eed7e=_0x147915(_0x382f17,_0x14484b);_0x4eed7e&&_0x287fb5['push'](_0x4eed7e);}return _0x287fb5['length']?_0x382f17['update']({'effects':_0x287fb5,'annotations':isFocusChange['of'](!0x0)}):null;}function updateForFocusChange(_0x49be19){setTimeout(()=>{let _0x1111fe=_0x49be19['hasFocus'];if(_0x1111fe!=_0x49be19['inputState']['notifiedFocused']){let _0x24a51c=focusChangeTransaction(_0x49be19['state'],_0x1111fe);_0x24a51c?_0x49be19['dispatch'](_0x24a51c):_0x49be19['update']([]);}},0xa);}observers['focus']=_0x2796b1=>{_0x2796b1['inputState']['lastFocusTime']=Date['now'](),_0x2796b1['scrollDOM']['scrollTop']||!_0x2796b1['inputState']['lastScrollTop']&&!_0x2796b1['inputState']['lastScrollLeft']||(_0x2796b1['scrollDOM']['scrollTop']=_0x2796b1['inputState']['lastScrollTop'],_0x2796b1['scrollDOM']['scrollLeft']=_0x2796b1['inputState']['lastScrollLeft']),updateForFocusChange(_0x2796b1);},observers['blur']=_0x56c06a=>{_0x56c06a['observer']['clearSelectionRange'](),updateForFocusChange(_0x56c06a);},observers['compositionstart']=observers['compositionupdate']=_0x38cbd4=>{_0x38cbd4['observer']['editContext']||(null==_0x38cbd4['inputState']['compositionFirstChange']&&(_0x38cbd4['inputState']['compositionFirstChange']=!0x0),_0x38cbd4['inputState']['composing']<0x0&&(_0x38cbd4['inputState']['composing']=0x0));},observers['compositionend']=_0x52f8ef=>{_0x52f8ef['observer']['editContext']||(_0x52f8ef['inputState']['composing']=-0x1,_0x52f8ef['inputState']['compositionEndedAt']=Date['now'](),_0x52f8ef['inputState']['compositionPendingKey']=!0x0,_0x52f8ef['inputState']['compositionPendingChange']=_0x52f8ef['observer']['pendingRecords']()['length']>0x0,_0x52f8ef['inputState']['compositionFirstChange']=null,browser['chrome']&&browser['android']?_0x52f8ef['observer']['flushSoon']():_0x52f8ef['inputState']['compositionPendingChange']?Promise['resolve']()['then'](()=>_0x52f8ef['observer']['flush']()):setTimeout(()=>{_0x52f8ef['inputState']['composing']<0x0&&_0x52f8ef['docView']['hasComposition']&&_0x52f8ef['update']([]);},0x32));},observers['contextmenu']=_0x372baa=>{_0x372baa['inputState']['lastContextMenu']=Date['now']();},handlers['beforeinput']=(_0x32a44f,_0x3bc445)=>{var _0x4ab9af,_0x3de9b5;if('insertReplacementText'==_0x3bc445['inputType']&&_0x32a44f['observer']['editContext']){let _0x472eeb=null===(_0x4ab9af=_0x3bc445['dataTransfer'])||void 0x0===_0x4ab9af?void 0x0:_0x4ab9af['getData']('text/plain'),_0x58ae97=_0x3bc445['getTargetRanges']();if(_0x472eeb&&_0x58ae97['length']){let _0x37a794=_0x58ae97[0x0],_0x2e33c5=_0x32a44f['posAtDOM'](_0x37a794['startContainer'],_0x37a794['startOffset']),_0x20d739=_0x32a44f['posAtDOM'](_0x37a794['endContainer'],_0x37a794['endOffset']);return applyDOMChangeInner(_0x32a44f,{'from':_0x2e33c5,'to':_0x20d739,'insert':_0x32a44f['state']['toText'](_0x472eeb)},null),!0x0;}}let _0x5acaa4;if(browser['chrome']&&browser['android']&&(_0x5acaa4=PendingKeys['find'](_0x1eb740=>_0x1eb740['inputType']==_0x3bc445['inputType']))&&(_0x32a44f['observer']['delayAndroidKey'](_0x5acaa4['key'],_0x5acaa4['keyCode']),'Backspace'==_0x5acaa4['key']||'Delete'==_0x5acaa4['key'])){let _0x3c5b41=(null===(_0x3de9b5=window['visualViewport'])||void 0x0===_0x3de9b5?void 0x0:_0x3de9b5['height'])||0x0;setTimeout(()=>{var _0x3bb7d5;((null===(_0x3bb7d5=window['visualViewport'])||void 0x0===_0x3bb7d5?void 0x0:_0x3bb7d5['height'])||0x0)>_0x3c5b41+0xa&&_0x32a44f['hasFocus']&&(_0x32a44f['contentDOM']['blur'](),_0x32a44f['focus']());},0x64);}return browser['ios']&&'deleteContentForward'==_0x3bc445['inputType']&&_0x32a44f['observer']['flushSoon'](),browser['safari']&&'insertText'==_0x3bc445['inputType']&&_0x32a44f['inputState']['composing']>=0x0&&setTimeout(()=>observers['compositionend'](_0x32a44f,_0x3bc445),0x14),!0x1;};const appliedFirefoxHack=new Set();function firefoxCopyCutHack(_0x5c1bd4){appliedFirefoxHack['has'](_0x5c1bd4)||(appliedFirefoxHack['add'](_0x5c1bd4),_0x5c1bd4['addEventListener']('copy',()=>{}),_0x5c1bd4['addEventListener']('cut',()=>{}));}const wrappingWhiteSpace=['pre-wrap','normal','pre-line','break-spaces'];let heightChangeFlag=!0x1;function clearHeightChangeFlag(){heightChangeFlag=!0x1;}class HeightOracle{constructor(_0x436f24){this['lineWrapping']=_0x436f24,this['doc']=Text['empty'],this['heightSamples']={},this['lineHeight']=0xe,this['charWidth']=0x7,this['textHeight']=0xe,this['lineLength']=0x1e;}['heightForGap'](_0x3da123,_0x41966d){let _0x4a37aa=this['doc']['lineAt'](_0x41966d)['number']-this['doc']['lineAt'](_0x3da123)['number']+0x1;return this['lineWrapping']&&(_0x4a37aa+=Math['max'](0x0,Math['ceil']((_0x41966d-_0x3da123-_0x4a37aa*this['lineLength']*0.5)/this['lineLength']))),this['lineHeight']*_0x4a37aa;}['heightForLine'](_0x332e01){if(!this['lineWrapping'])return this['lineHeight'];return(0x1+Math['max'](0x0,Math['ceil']((_0x332e01-this['lineLength'])/Math['max'](0x1,this['lineLength']-0x5))))*this['lineHeight'];}['setDoc'](_0x2f3e43){return this['doc']=_0x2f3e43,this;}['mustRefreshForWrapping'](_0xe33e7d){return wrappingWhiteSpace['indexOf'](_0xe33e7d)>-0x1!=this['lineWrapping'];}['mustRefreshForHeights'](_0x3ad570){let _0x1c71ff=!0x1;for(let _0x26bda3=0x0;_0x26bda3<_0x3ad570['length'];_0x26bda3++){let _0x39183c=_0x3ad570[_0x26bda3];_0x39183c<0x0?_0x26bda3++:this['heightSamples'][Math['floor'](0xa*_0x39183c)]||(_0x1c71ff=!0x0,this['heightSamples'][Math['floor'](0xa*_0x39183c)]=!0x0);}return _0x1c71ff;}['refresh'](_0x4e1967,_0x3186bb,_0x4121bf,_0x5259a9,_0x58ff04,_0x2e87d6){let _0x2608d8=wrappingWhiteSpace['indexOf'](_0x4e1967)>-0x1,_0x28b757=Math['round'](_0x3186bb)!=Math['round'](this['lineHeight'])||this['lineWrapping']!=_0x2608d8;if(this['lineWrapping']=_0x2608d8,this['lineHeight']=_0x3186bb,this['charWidth']=_0x4121bf,this['textHeight']=_0x5259a9,this['lineLength']=_0x58ff04,_0x28b757){this['heightSamples']={};for(let _0x310e59=0x0;_0x310e59<_0x2e87d6['length'];_0x310e59++){let _0x36c30f=_0x2e87d6[_0x310e59];_0x36c30f<0x0?_0x310e59++:this['heightSamples'][Math['floor'](0xa*_0x36c30f)]=!0x0;}}return _0x28b757;}}class MeasuredHeights{constructor(_0x411ee6,_0x6ab00e){this['from']=_0x411ee6,this['heights']=_0x6ab00e,this['index']=0x0;}get['more'](){return this['index']<this['heights']['length'];}}class BlockInfo{constructor(_0x3aee10,_0x329b21,_0x46d21e,_0x5c56d0,_0x15ed5e){this['from']=_0x3aee10,this['length']=_0x329b21,this['top']=_0x46d21e,this['height']=_0x5c56d0,this['_content']=_0x15ed5e;}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'](_0x1e1aee){let _0x317d05=(Array['isArray'](this['_content'])?this['_content']:[this])['concat'](Array['isArray'](_0x1e1aee['_content'])?_0x1e1aee['_content']:[_0x1e1aee]);return new BlockInfo(this['from'],this['length']+_0x1e1aee['length'],this['top'],this['height']+_0x1e1aee['height'],_0x317d05);}}var QueryType=function(_0x45e256){return _0x45e256[_0x45e256['ByPos']=0x0]='ByPos',_0x45e256[_0x45e256['ByHeight']=0x1]='ByHeight',_0x45e256[_0x45e256['ByPosNoHeight']=0x2]='ByPosNoHeight',_0x45e256;}(QueryType||(QueryType={}));const Epsilon=0.001;class HeightMap{constructor(_0xc61c56,_0x693d36,_0x567ef2=0x2){this['length']=_0xc61c56,this['height']=_0x693d36,this['flags']=_0x567ef2;}get['outdated'](){return(0x2&this['flags'])>0x0;}set['outdated'](_0x1ad109){this['flags']=(_0x1ad109?0x2:0x0)|-0x3&this['flags'];}['setHeight'](_0x4560e1){this['height']!=_0x4560e1&&(Math['abs'](this['height']-_0x4560e1)>Epsilon&&(heightChangeFlag=!0x0),this['height']=_0x4560e1);}['replace'](_0x1a4a02,_0x4766a1,_0x12615e){return HeightMap['of'](_0x12615e);}['decomposeLeft'](_0x54797f,_0x67bff3){_0x67bff3['push'](this);}['decomposeRight'](_0x2ffe3a,_0x2c7842){_0x2c7842['push'](this);}['applyChanges'](_0x15aca9,_0x5ea644,_0x43429c,_0xdbbbef){let _0x4bb254=this,_0x56e372=_0x43429c['doc'];for(let _0xb8fa03=_0xdbbbef['length']-0x1;_0xb8fa03>=0x0;_0xb8fa03--){let {fromA:_0x46898d,toA:_0x47fa75,fromB:_0x145ee5,toB:_0x14987d}=_0xdbbbef[_0xb8fa03],_0x65eab6=_0x4bb254['lineAt'](_0x46898d,QueryType['ByPosNoHeight'],_0x43429c['setDoc'](_0x5ea644),0x0,0x0),_0x8c6132=_0x65eab6['to']>=_0x47fa75?_0x65eab6:_0x4bb254['lineAt'](_0x47fa75,QueryType['ByPosNoHeight'],_0x43429c,0x0,0x0);for(_0x14987d+=_0x8c6132['to']-_0x47fa75,_0x47fa75=_0x8c6132['to'];_0xb8fa03>0x0&&_0x65eab6['from']<=_0xdbbbef[_0xb8fa03-0x1]['toA'];)_0x46898d=_0xdbbbef[_0xb8fa03-0x1]['fromA'],_0x145ee5=_0xdbbbef[_0xb8fa03-0x1]['fromB'],_0xb8fa03--,_0x46898d<_0x65eab6['from']&&(_0x65eab6=_0x4bb254['lineAt'](_0x46898d,QueryType['ByPosNoHeight'],_0x43429c,0x0,0x0));_0x145ee5+=_0x65eab6['from']-_0x46898d,_0x46898d=_0x65eab6['from'];let _0x2bb7ce=NodeBuilder['build'](_0x43429c['setDoc'](_0x56e372),_0x15aca9,_0x145ee5,_0x14987d);_0x4bb254=replace(_0x4bb254,_0x4bb254['replace'](_0x46898d,_0x47fa75,_0x2bb7ce));}return _0x4bb254['updateHeight'](_0x43429c,0x0);}static['empty'](){return new HeightMapText(0x0,0x0);}static['of'](_0x1aa3ad){if(0x1==_0x1aa3ad['length'])return _0x1aa3ad[0x0];let _0xb295fa=0x0,_0x5d5240=_0x1aa3ad['length'],_0x44acac=0x0,_0x4496bd=0x0;for(;;)if(_0xb295fa==_0x5d5240){if(_0x44acac>0x2*_0x4496bd){let _0x109df6=_0x1aa3ad[_0xb295fa-0x1];_0x109df6['break']?_0x1aa3ad['splice'](--_0xb295fa,0x1,_0x109df6['left'],null,_0x109df6['right']):_0x1aa3ad['splice'](--_0xb295fa,0x1,_0x109df6['left'],_0x109df6['right']),_0x5d5240+=0x1+_0x109df6['break'],_0x44acac-=_0x109df6['size'];}else{if(!(_0x4496bd>0x2*_0x44acac))break;{let _0xbe04ff=_0x1aa3ad[_0x5d5240];_0xbe04ff['break']?_0x1aa3ad['splice'](_0x5d5240,0x1,_0xbe04ff['left'],null,_0xbe04ff['right']):_0x1aa3ad['splice'](_0x5d5240,0x1,_0xbe04ff['left'],_0xbe04ff['right']),_0x5d5240+=0x2+_0xbe04ff['break'],_0x4496bd-=_0xbe04ff['size'];}}}else{if(_0x44acac<_0x4496bd){let _0x2ea87e=_0x1aa3ad[_0xb295fa++];_0x2ea87e&&(_0x44acac+=_0x2ea87e['size']);}else{let _0xc9617d=_0x1aa3ad[--_0x5d5240];_0xc9617d&&(_0x4496bd+=_0xc9617d['size']);}}let _0x44c224=0x0;return null==_0x1aa3ad[_0xb295fa-0x1]?(_0x44c224=0x1,_0xb295fa--):null==_0x1aa3ad[_0xb295fa]&&(_0x44c224=0x1,_0x5d5240++),new HeightMapBranch(HeightMap['of'](_0x1aa3ad['slice'](0x0,_0xb295fa)),_0x44c224,HeightMap['of'](_0x1aa3ad['slice'](_0x5d5240)));}}function replace(_0x5dfb74,_0x11780e){return _0x5dfb74==_0x11780e?_0x5dfb74:(_0x5dfb74['constructor']!=_0x11780e['constructor']&&(heightChangeFlag=!0x0),_0x11780e);}HeightMap['prototype']['size']=0x1;class HeightMapBlock extends HeightMap{constructor(_0x5aade8,_0x30a343,_0x41977f){super(_0x5aade8,_0x30a343),this['deco']=_0x41977f;}['blockAt'](_0x36c677,_0x158d0f,_0x357e82,_0x2f2c05){return new BlockInfo(_0x2f2c05,this['length'],_0x357e82,this['height'],this['deco']||0x0);}['lineAt'](_0xc47fab,_0x51e5ef,_0x157e3e,_0x49db73,_0x356078){return this['blockAt'](0x0,_0x157e3e,_0x49db73,_0x356078);}['forEachLine'](_0x4fb044,_0x50bc2a,_0x28267b,_0x111f9e,_0x2e68a0,_0x109e2b){_0x4fb044<=_0x2e68a0+this['length']&&_0x50bc2a>=_0x2e68a0&&_0x109e2b(this['blockAt'](0x0,_0x28267b,_0x111f9e,_0x2e68a0));}['updateHeight'](_0x388b50,_0x4fc3e6=0x0,_0x3e3604=!0x1,_0x14598b){return _0x14598b&&_0x14598b['from']<=_0x4fc3e6&&_0x14598b['more']&&this['setHeight'](_0x14598b['heights'][_0x14598b['index']++]),this['outdated']=!0x1,this;}['toString'](){return'block('+this['length']+')';}}class HeightMapText extends HeightMapBlock{constructor(_0x45a52c,_0x1c4527){super(_0x45a52c,_0x1c4527,null),this['collapsed']=0x0,this['widgetHeight']=0x0,this['breaks']=0x0;}['blockAt'](_0x513eca,_0x54aeaf,_0x5a04ab,_0x197cb6){return new BlockInfo(_0x197cb6,this['length'],_0x5a04ab,this['height'],this['breaks']);}['replace'](_0x1f095e,_0x455d9a,_0x1439b8){let _0x2fb6fc=_0x1439b8[0x0];return 0x1==_0x1439b8['length']&&(_0x2fb6fc instanceof HeightMapText||_0x2fb6fc instanceof HeightMapGap&&0x4&_0x2fb6fc['flags'])&&Math['abs'](this['length']-_0x2fb6fc['length'])<0xa?(_0x2fb6fc instanceof HeightMapGap?_0x2fb6fc=new HeightMapText(_0x2fb6fc['length'],this['height']):_0x2fb6fc['height']=this['height'],this['outdated']||(_0x2fb6fc['outdated']=!0x1),_0x2fb6fc):HeightMap['of'](_0x1439b8);}['updateHeight'](_0x4bf101,_0x547650=0x0,_0x376ca4=!0x1,_0x10b44a){return _0x10b44a&&_0x10b44a['from']<=_0x547650&&_0x10b44a['more']?this['setHeight'](_0x10b44a['heights'][_0x10b44a['index']++]):(_0x376ca4||this['outdated'])&&this['setHeight'](Math['max'](this['widgetHeight'],_0x4bf101['heightForLine'](this['length']-this['collapsed']))+this['breaks']*_0x4bf101['lineHeight']),this['outdated']=!0x1,this;}['toString'](){return'line('+this['length']+(this['collapsed']?-this['collapsed']:'')+(this['widgetHeight']?':'+this['widgetHeight']:'')+')';}}class HeightMapGap extends HeightMap{constructor(_0x1c778c){super(_0x1c778c,0x0);}['heightMetrics'](_0x1d9585,_0x307170){let _0x5cd88b,_0x831c43=_0x1d9585['doc']['lineAt'](_0x307170)['number'],_0x52d585=_0x1d9585['doc']['lineAt'](_0x307170+this['length'])['number'],_0xb9387f=_0x52d585-_0x831c43+0x1,_0x2e8c82=0x0;if(_0x1d9585['lineWrapping']){let _0x17eb0f=Math['min'](this['height'],_0x1d9585['lineHeight']*_0xb9387f);_0x5cd88b=_0x17eb0f/_0xb9387f,this['length']>_0xb9387f+0x1&&(_0x2e8c82=(this['height']-_0x17eb0f)/(this['length']-_0xb9387f-0x1));}else _0x5cd88b=this['height']/_0xb9387f;return{'firstLine':_0x831c43,'lastLine':_0x52d585,'perLine':_0x5cd88b,'perChar':_0x2e8c82};}['blockAt'](_0x35fbad,_0x5bb742,_0x515a98,_0x5e8fe6){let {firstLine:_0x23211e,lastLine:_0x3cbcb1,perLine:_0x3c7ad6,perChar:_0x5c2100}=this['heightMetrics'](_0x5bb742,_0x5e8fe6);if(_0x5bb742['lineWrapping']){let _0x49f4eb=_0x5e8fe6+(_0x35fbad<_0x5bb742['lineHeight']?0x0:Math['round'](Math['max'](0x0,Math['min'](0x1,(_0x35fbad-_0x515a98)/this['height']))*this['length'])),_0x37f5dc=_0x5bb742['doc']['lineAt'](_0x49f4eb),_0x3faedc=_0x3c7ad6+_0x37f5dc['length']*_0x5c2100,_0x31178a=Math['max'](_0x515a98,_0x35fbad-_0x3faedc/0x2);return new BlockInfo(_0x37f5dc['from'],_0x37f5dc['length'],_0x31178a,_0x3faedc,0x0);}{let _0x5702b3=Math['max'](0x0,Math['min'](_0x3cbcb1-_0x23211e,Math['floor']((_0x35fbad-_0x515a98)/_0x3c7ad6))),{from:_0x5a4332,length:_0x2809cd}=_0x5bb742['doc']['line'](_0x23211e+_0x5702b3);return new BlockInfo(_0x5a4332,_0x2809cd,_0x515a98+_0x3c7ad6*_0x5702b3,_0x3c7ad6,0x0);}}['lineAt'](_0x4f8612,_0x5a47e7,_0x362521,_0x482c05,_0x26a716){if(_0x5a47e7==QueryType['ByHeight'])return this['blockAt'](_0x4f8612,_0x362521,_0x482c05,_0x26a716);if(_0x5a47e7==QueryType['ByPosNoHeight']){let {from:_0x155fd5,to:_0xc40457}=_0x362521['doc']['lineAt'](_0x4f8612);return new BlockInfo(_0x155fd5,_0xc40457-_0x155fd5,0x0,0x0,0x0);}let {firstLine:_0x4245be,perLine:_0x3eb3e4,perChar:_0xadb3ba}=this['heightMetrics'](_0x362521,_0x26a716),_0x16fe18=_0x362521['doc']['lineAt'](_0x4f8612),_0x455ab4=_0x3eb3e4+_0x16fe18['length']*_0xadb3ba,_0x532cc4=_0x16fe18['number']-_0x4245be,_0x3d8360=_0x482c05+_0x3eb3e4*_0x532cc4+_0xadb3ba*(_0x16fe18['from']-_0x26a716-_0x532cc4);return new BlockInfo(_0x16fe18['from'],_0x16fe18['length'],Math['max'](_0x482c05,Math['min'](_0x3d8360,_0x482c05+this['height']-_0x455ab4)),_0x455ab4,0x0);}['forEachLine'](_0x2928b4,_0x16e50b,_0x39f8d9,_0x58bf0b,_0x20bd0f,_0x581923){_0x2928b4=Math['max'](_0x2928b4,_0x20bd0f),_0x16e50b=Math['min'](_0x16e50b,_0x20bd0f+this['length']);let {firstLine:_0x3a82aa,perLine:_0x2b7f32,perChar:_0xd63e06}=this['heightMetrics'](_0x39f8d9,_0x20bd0f);for(let _0x7c367c=_0x2928b4,_0x137c28=_0x58bf0b;_0x7c367c<=_0x16e50b;){let _0x98b77b=_0x39f8d9['doc']['lineAt'](_0x7c367c);if(_0x7c367c==_0x2928b4){let _0x474e53=_0x98b77b['number']-_0x3a82aa;_0x137c28+=_0x2b7f32*_0x474e53+_0xd63e06*(_0x2928b4-_0x20bd0f-_0x474e53);}let _0x5bb06b=_0x2b7f32+_0xd63e06*_0x98b77b['length'];_0x581923(new BlockInfo(_0x98b77b['from'],_0x98b77b['length'],_0x137c28,_0x5bb06b,0x0)),_0x137c28+=_0x5bb06b,_0x7c367c=_0x98b77b['to']+0x1;}}['replace'](_0x5ec721,_0x320a89,_0x28e650){let _0x3dd8c3=this['length']-_0x320a89;if(_0x3dd8c3>0x0){let _0x23e2aa=_0x28e650[_0x28e650['length']-0x1];_0x23e2aa instanceof HeightMapGap?_0x28e650[_0x28e650['length']-0x1]=new HeightMapGap(_0x23e2aa['length']+_0x3dd8c3):_0x28e650['push'](null,new HeightMapGap(_0x3dd8c3-0x1));}if(_0x5ec721>0x0){let _0x553428=_0x28e650[0x0];_0x553428 instanceof HeightMapGap?_0x28e650[0x0]=new HeightMapGap(_0x5ec721+_0x553428['length']):_0x28e650['unshift'](new HeightMapGap(_0x5ec721-0x1),null);}return HeightMap['of'](_0x28e650);}['decomposeLeft'](_0xd56de0,_0x112781){_0x112781['push'](new HeightMapGap(_0xd56de0-0x1),null);}['decomposeRight'](_0x6ffa1d,_0x258278){_0x258278['push'](null,new HeightMapGap(this['length']-_0x6ffa1d-0x1));}['updateHeight'](_0x31293e,_0x3cedb4=0x0,_0x318c5d=!0x1,_0x3a6db8){let _0x3ee13e=_0x3cedb4+this['length'];if(_0x3a6db8&&_0x3a6db8['from']<=_0x3cedb4+this['length']&&_0x3a6db8['more']){let _0x459b85=[],_0x57c6ca=Math['max'](_0x3cedb4,_0x3a6db8['from']),_0x526360=-0x1;for(_0x3a6db8['from']>_0x3cedb4&&_0x459b85['push'](new HeightMapGap(_0x3a6db8['from']-_0x3cedb4-0x1)['updateHeight'](_0x31293e,_0x3cedb4));_0x57c6ca<=_0x3ee13e&&_0x3a6db8['more'];){let _0xbd58d7=_0x31293e['doc']['lineAt'](_0x57c6ca)['length'];_0x459b85['length']&&_0x459b85['push'](null);let _0x1236a1=_0x3a6db8['heights'][_0x3a6db8['index']++];-0x1==_0x526360?_0x526360=_0x1236a1:Math['abs'](_0x1236a1-_0x526360)>=Epsilon&&(_0x526360=-0x2);let _0x42a587=new HeightMapText(_0xbd58d7,_0x1236a1);_0x42a587['outdated']=!0x1,_0x459b85['push'](_0x42a587),_0x57c6ca+=_0xbd58d7+0x1;}_0x57c6ca<=_0x3ee13e&&_0x459b85['push'](null,new HeightMapGap(_0x3ee13e-_0x57c6ca)['updateHeight'](_0x31293e,_0x57c6ca));let _0x2fd310=HeightMap['of'](_0x459b85);return(_0x526360<0x0||Math['abs'](_0x2fd310['height']-this['height'])>=Epsilon||Math['abs'](_0x526360-this['heightMetrics'](_0x31293e,_0x3cedb4)['perLine'])>=Epsilon)&&(heightChangeFlag=!0x0),replace(this,_0x2fd310);}return(_0x318c5d||this['outdated'])&&(this['setHeight'](_0x31293e['heightForGap'](_0x3cedb4,_0x3cedb4+this['length'])),this['outdated']=!0x1),this;}['toString'](){return'gap('+this['length']+')';}}class HeightMapBranch extends HeightMap{constructor(_0x182d28,_0x185a5f,_0x536c92){super(_0x182d28['length']+_0x185a5f+_0x536c92['length'],_0x182d28['height']+_0x536c92['height'],_0x185a5f|(_0x182d28['outdated']||_0x536c92['outdated']?0x2:0x0)),this['left']=_0x182d28,this['right']=_0x536c92,this['size']=_0x182d28['size']+_0x536c92['size'];}get['break'](){return 0x1&this['flags'];}['blockAt'](_0x187a6e,_0x10f106,_0x163552,_0x45acbf){let _0x48e3b1=_0x163552+this['left']['height'];return _0x187a6e<_0x48e3b1?this['left']['blockAt'](_0x187a6e,_0x10f106,_0x163552,_0x45acbf):this['right']['blockAt'](_0x187a6e,_0x10f106,_0x48e3b1,_0x45acbf+this['left']['length']+this['break']);}['lineAt'](_0x3df0bc,_0x1f4a2b,_0x1421a6,_0x3de6d1,_0x438ec2){let _0x1d14c7=_0x3de6d1+this['left']['height'],_0x5ea96a=_0x438ec2+this['left']['length']+this['break'],_0x35b060=_0x1f4a2b==QueryType['ByHeight']?_0x3df0bc<_0x1d14c7:_0x3df0bc<_0x5ea96a,_0x20dfa0=_0x35b060?this['left']['lineAt'](_0x3df0bc,_0x1f4a2b,_0x1421a6,_0x3de6d1,_0x438ec2):this['right']['lineAt'](_0x3df0bc,_0x1f4a2b,_0x1421a6,_0x1d14c7,_0x5ea96a);if(this['break']||(_0x35b060?_0x20dfa0['to']<_0x5ea96a:_0x20dfa0['from']>_0x5ea96a))return _0x20dfa0;let _0xdb29a1=_0x1f4a2b==QueryType['ByPosNoHeight']?QueryType['ByPosNoHeight']:QueryType['ByPos'];return _0x35b060?_0x20dfa0['join'](this['right']['lineAt'](_0x5ea96a,_0xdb29a1,_0x1421a6,_0x1d14c7,_0x5ea96a)):this['left']['lineAt'](_0x5ea96a,_0xdb29a1,_0x1421a6,_0x3de6d1,_0x438ec2)['join'](_0x20dfa0);}['forEachLine'](_0x32d45a,_0x77623c,_0x41b707,_0x15e881,_0x379461,_0x3bb3cc){let _0x5487b1=_0x15e881+this['left']['height'],_0x3864f2=_0x379461+this['left']['length']+this['break'];if(this['break'])_0x32d45a<_0x3864f2&&this['left']['forEachLine'](_0x32d45a,_0x77623c,_0x41b707,_0x15e881,_0x379461,_0x3bb3cc),_0x77623c>=_0x3864f2&&this['right']['forEachLine'](_0x32d45a,_0x77623c,_0x41b707,_0x5487b1,_0x3864f2,_0x3bb3cc);else{let _0x434224=this['lineAt'](_0x3864f2,QueryType['ByPos'],_0x41b707,_0x15e881,_0x379461);_0x32d45a<_0x434224['from']&&this['left']['forEachLine'](_0x32d45a,_0x434224['from']-0x1,_0x41b707,_0x15e881,_0x379461,_0x3bb3cc),_0x434224['to']>=_0x32d45a&&_0x434224['from']<=_0x77623c&&_0x3bb3cc(_0x434224),_0x77623c>_0x434224['to']&&this['right']['forEachLine'](_0x434224['to']+0x1,_0x77623c,_0x41b707,_0x5487b1,_0x3864f2,_0x3bb3cc);}}['replace'](_0x3d4836,_0x31350b,_0x4af11e){let _0x3d6a7c=this['left']['length']+this['break'];if(_0x31350b<_0x3d6a7c)return this['balanced'](this['left']['replace'](_0x3d4836,_0x31350b,_0x4af11e),this['right']);if(_0x3d4836>this['left']['length'])return this['balanced'](this['left'],this['right']['replace'](_0x3d4836-_0x3d6a7c,_0x31350b-_0x3d6a7c,_0x4af11e));let _0x15883e=[];_0x3d4836>0x0&&this['decomposeLeft'](_0x3d4836,_0x15883e);let _0x4a7e2f=_0x15883e['length'];for(let _0x5ac19a of _0x4af11e)_0x15883e['push'](_0x5ac19a);if(_0x3d4836>0x0&&mergeGaps(_0x15883e,_0x4a7e2f-0x1),_0x31350b<this['length']){let _0x4bcd10=_0x15883e['length'];this['decomposeRight'](_0x31350b,_0x15883e),mergeGaps(_0x15883e,_0x4bcd10);}return HeightMap['of'](_0x15883e);}['decomposeLeft'](_0x219161,_0x1e45bf){let _0x1e96a8=this['left']['length'];if(_0x219161<=_0x1e96a8)return this['left']['decomposeLeft'](_0x219161,_0x1e45bf);_0x1e45bf['push'](this['left']),this['break']&&(_0x1e96a8++,_0x219161>=_0x1e96a8&&_0x1e45bf['push'](null)),_0x219161>_0x1e96a8&&this['right']['decomposeLeft'](_0x219161-_0x1e96a8,_0x1e45bf);}['decomposeRight'](_0x3e6b0f,_0x25f2f1){let _0xe9eeee=this['left']['length'],_0x58f661=_0xe9eeee+this['break'];if(_0x3e6b0f>=_0x58f661)return this['right']['decomposeRight'](_0x3e6b0f-_0x58f661,_0x25f2f1);_0x3e6b0f<_0xe9eeee&&this['left']['decomposeRight'](_0x3e6b0f,_0x25f2f1),this['break']&&_0x3e6b0f<_0x58f661&&_0x25f2f1['push'](null),_0x25f2f1['push'](this['right']);}['balanced'](_0x4a5846,_0x43b4fe){return _0x4a5846['size']>0x2*_0x43b4fe['size']||_0x43b4fe['size']>0x2*_0x4a5846['size']?HeightMap['of'](this['break']?[_0x4a5846,null,_0x43b4fe]:[_0x4a5846,_0x43b4fe]):(this['left']=replace(this['left'],_0x4a5846),this['right']=replace(this['right'],_0x43b4fe),this['setHeight'](_0x4a5846['height']+_0x43b4fe['height']),this['outdated']=_0x4a5846['outdated']||_0x43b4fe['outdated'],this['size']=_0x4a5846['size']+_0x43b4fe['size'],this['length']=_0x4a5846['length']+this['break']+_0x43b4fe['length'],this);}['updateHeight'](_0x13712e,_0x353bf2=0x0,_0x430762=!0x1,_0x327353){let {left:_0x10b5d5,right:_0x137ddc}=this,_0x2d1d5e=_0x353bf2+_0x10b5d5['length']+this['break'],_0x33237b=null;return _0x327353&&_0x327353['from']<=_0x353bf2+_0x10b5d5['length']&&_0x327353['more']?_0x33237b=_0x10b5d5=_0x10b5d5['updateHeight'](_0x13712e,_0x353bf2,_0x430762,_0x327353):_0x10b5d5['updateHeight'](_0x13712e,_0x353bf2,_0x430762),_0x327353&&_0x327353['from']<=_0x2d1d5e+_0x137ddc['length']&&_0x327353['more']?_0x33237b=_0x137ddc=_0x137ddc['updateHeight'](_0x13712e,_0x2d1d5e,_0x430762,_0x327353):_0x137ddc['updateHeight'](_0x13712e,_0x2d1d5e,_0x430762),_0x33237b?this['balanced'](_0x10b5d5,_0x137ddc):(this['height']=this['left']['height']+this['right']['height'],this['outdated']=!0x1,this);}['toString'](){return this['left']+(this['break']?'\x20':'-')+this['right'];}}function mergeGaps(_0x18cc96,_0x86c663){let _0x53904c,_0x4f91d0;null==_0x18cc96[_0x86c663]&&(_0x53904c=_0x18cc96[_0x86c663-0x1])instanceof HeightMapGap&&(_0x4f91d0=_0x18cc96[_0x86c663+0x1])instanceof HeightMapGap&&_0x18cc96['splice'](_0x86c663-0x1,0x3,new HeightMapGap(_0x53904c['length']+0x1+_0x4f91d0['length']));}const relevantWidgetHeight=0x5;class NodeBuilder{constructor(_0x2a64f3,_0x46cdcd){this['pos']=_0x2a64f3,this['oracle']=_0x46cdcd,this['nodes']=[],this['lineStart']=-0x1,this['lineEnd']=-0x1,this['covering']=null,this['writtenTo']=_0x2a64f3;}get['isCovered'](){return this['covering']&&this['nodes'][this['nodes']['length']-0x1]==this['covering'];}['span'](_0x2c6806,_0x253e40){if(this['lineStart']>-0x1){let _0x5e44d6=Math['min'](_0x253e40,this['lineEnd']),_0x81a666=this['nodes'][this['nodes']['length']-0x1];_0x81a666 instanceof HeightMapText?_0x81a666['length']+=_0x5e44d6-this['pos']:(_0x5e44d6>this['pos']||!this['isCovered'])&&this['nodes']['push'](new HeightMapText(_0x5e44d6-this['pos'],-0x1)),this['writtenTo']=_0x5e44d6,_0x253e40>_0x5e44d6&&(this['nodes']['push'](null),this['writtenTo']++,this['lineStart']=-0x1);}this['pos']=_0x253e40;}['point'](_0x1e350e,_0x48b487,_0x54a5d6){if(_0x1e350e<_0x48b487||_0x54a5d6['heightRelevant']){let _0x2d2d9e=_0x54a5d6['widget']?_0x54a5d6['widget']['estimatedHeight']:0x0,_0x33aeec=_0x54a5d6['widget']?_0x54a5d6['widget']['lineBreaks']:0x0;_0x2d2d9e<0x0&&(_0x2d2d9e=this['oracle']['lineHeight']);let _0x256a85=_0x48b487-_0x1e350e;_0x54a5d6['block']?this['addBlock'](new HeightMapBlock(_0x256a85,_0x2d2d9e,_0x54a5d6)):(_0x256a85||_0x33aeec||_0x2d2d9e>=relevantWidgetHeight)&&this['addLineDeco'](_0x2d2d9e,_0x33aeec,_0x256a85);}else _0x48b487>_0x1e350e&&this['span'](_0x1e350e,_0x48b487);this['lineEnd']>-0x1&&this['lineEnd']<this['pos']&&(this['lineEnd']=this['oracle']['doc']['lineAt'](this['pos'])['to']);}['enterLine'](){if(this['lineStart']>-0x1)return;let {from:_0x304ed9,to:_0x31fc28}=this['oracle']['doc']['lineAt'](this['pos']);this['lineStart']=_0x304ed9,this['lineEnd']=_0x31fc28,this['writtenTo']<_0x304ed9&&((this['writtenTo']<_0x304ed9-0x1||null==this['nodes'][this['nodes']['length']-0x1])&&this['nodes']['push'](this['blankContent'](this['writtenTo'],_0x304ed9-0x1)),this['nodes']['push'](null)),this['pos']>_0x304ed9&&this['nodes']['push'](new HeightMapText(this['pos']-_0x304ed9,-0x1)),this['writtenTo']=this['pos'];}['blankContent'](_0xb065d1,_0x553eac){let _0x13b307=new HeightMapGap(_0x553eac-_0xb065d1);return this['oracle']['doc']['lineAt'](_0xb065d1)['to']==_0x553eac&&(_0x13b307['flags']|=0x4),_0x13b307;}['ensureLine'](){this['enterLine']();let _0x5d9482=this['nodes']['length']?this['nodes'][this['nodes']['length']-0x1]:null;if(_0x5d9482 instanceof HeightMapText)return _0x5d9482;let _0x117e1c=new HeightMapText(0x0,-0x1);return this['nodes']['push'](_0x117e1c),_0x117e1c;}['addBlock'](_0x5e0a8a){this['enterLine']();let _0x5e5fb6=_0x5e0a8a['deco'];_0x5e5fb6&&_0x5e5fb6['startSide']>0x0&&!this['isCovered']&&this['ensureLine'](),this['nodes']['push'](_0x5e0a8a),this['writtenTo']=this['pos']=this['pos']+_0x5e0a8a['length'],_0x5e5fb6&&_0x5e5fb6['endSide']>0x0&&(this['covering']=_0x5e0a8a);}['addLineDeco'](_0x30f98b,_0x3d54af,_0x4f5467){let _0x2c042=this['ensureLine']();_0x2c042['length']+=_0x4f5467,_0x2c042['collapsed']+=_0x4f5467,_0x2c042['widgetHeight']=Math['max'](_0x2c042['widgetHeight'],_0x30f98b),_0x2c042['breaks']+=_0x3d54af,this['writtenTo']=this['pos']=this['pos']+_0x4f5467;}['finish'](_0x3174a1){let _0x5df5c3=0x0==this['nodes']['length']?null:this['nodes'][this['nodes']['length']-0x1];!(this['lineStart']>-0x1)||_0x5df5c3 instanceof HeightMapText||this['isCovered']?(this['writtenTo']<this['pos']||null==_0x5df5c3)&&this['nodes']['push'](this['blankContent'](this['writtenTo'],this['pos'])):this['nodes']['push'](new HeightMapText(0x0,-0x1));let _0x189d20=_0x3174a1;for(let _0x30d010 of this['nodes'])_0x30d010 instanceof HeightMapText&&_0x30d010['updateHeight'](this['oracle'],_0x189d20),_0x189d20+=_0x30d010?_0x30d010['length']:0x1;return this['nodes'];}static['build'](_0x1a2729,_0x49ff41,_0x2a59ab,_0x5d1c0e){let _0x5c9acf=new NodeBuilder(_0x2a59ab,_0x1a2729);return RangeSet['spans'](_0x49ff41,_0x2a59ab,_0x5d1c0e,_0x5c9acf,0x0),_0x5c9acf['finish'](_0x2a59ab);}}function heightRelevantDecoChanges(_0x196bda,_0x142bf2,_0x22fa1c){let _0x19bbc2=new DecorationComparator();return RangeSet['compare'](_0x196bda,_0x142bf2,_0x22fa1c,_0x19bbc2,0x0),_0x19bbc2['changes'];}class DecorationComparator{constructor(){this['changes']=[];}['compareRange'](){}['comparePoint'](_0x49f134,_0x3e2c31,_0x41d017,_0x4ecfcc){(_0x49f134<_0x3e2c31||_0x41d017&&_0x41d017['heightRelevant']||_0x4ecfcc&&_0x4ecfcc['heightRelevant'])&&addRange(_0x49f134,_0x3e2c31,this['changes'],0x5);}}function visiblePixelRange(_0x1ba94d,_0x353d21){let _0xdb43e=_0x1ba94d['getBoundingClientRect'](),_0x99ae31=_0x1ba94d['ownerDocument'],_0x36fa72=_0x99ae31['defaultView']||window,_0x2091c5=Math['max'](0x0,_0xdb43e['left']),_0x9cea77=Math['min'](_0x36fa72['innerWidth'],_0xdb43e['right']),_0xdfc45=Math['max'](0x0,_0xdb43e['top']),_0x48131d=Math['min'](_0x36fa72['innerHeight'],_0xdb43e['bottom']);for(let _0x1f706c=_0x1ba94d['parentNode'];_0x1f706c&&_0x1f706c!=_0x99ae31['body'];)if(0x1==_0x1f706c['nodeType']){let _0x246578=_0x1f706c,_0x1b9dcc=window['getComputedStyle'](_0x246578);if((_0x246578['scrollHeight']>_0x246578['clientHeight']||_0x246578['scrollWidth']>_0x246578['clientWidth'])&&'visible'!=_0x1b9dcc['overflow']){let _0x567bf1=_0x246578['getBoundingClientRect']();_0x2091c5=Math['max'](_0x2091c5,_0x567bf1['left']),_0x9cea77=Math['min'](_0x9cea77,_0x567bf1['right']),_0xdfc45=Math['max'](_0xdfc45,_0x567bf1['top']),_0x48131d=Math['min'](_0x1f706c==_0x1ba94d['parentNode']?_0x36fa72['innerHeight']:_0x48131d,_0x567bf1['bottom']);}_0x1f706c='absolute'==_0x1b9dcc['position']||'fixed'==_0x1b9dcc['position']?_0x246578['offsetParent']:_0x246578['parentNode'];}else{if(0xb!=_0x1f706c['nodeType'])break;_0x1f706c=_0x1f706c['host'];}return{'left':_0x2091c5-_0xdb43e['left'],'right':Math['max'](_0x2091c5,_0x9cea77)-_0xdb43e['left'],'top':_0xdfc45-(_0xdb43e['top']+_0x353d21),'bottom':Math['max'](_0xdfc45,_0x48131d)-(_0xdb43e['top']+_0x353d21)};}function inWindow(_0x5d055c){let _0x22eeca=_0x5d055c['getBoundingClientRect'](),_0x32aeaa=_0x5d055c['ownerDocument']['defaultView']||window;return _0x22eeca['left']<_0x32aeaa['innerWidth']&&_0x22eeca['right']>0x0&&_0x22eeca['top']<_0x32aeaa['innerHeight']&&_0x22eeca['bottom']>0x0;}function fullPixelRange(_0x4fdf2e,_0x2f24e8){let _0x20cf2a=_0x4fdf2e['getBoundingClientRect']();return{'left':0x0,'right':_0x20cf2a['right']-_0x20cf2a['left'],'top':_0x2f24e8,'bottom':_0x20cf2a['bottom']-(_0x20cf2a['top']+_0x2f24e8)};}class LineGap{constructor(_0x210b5e,_0x223799,_0x347f8e,_0x5e4cce){this['from']=_0x210b5e,this['to']=_0x223799,this['size']=_0x347f8e,this['displaySize']=_0x5e4cce;}static['same'](_0x305def,_0x5f19a8){if(_0x305def['length']!=_0x5f19a8['length'])return!0x1;for(let _0x4b7f8a=0x0;_0x4b7f8a<_0x305def['length'];_0x4b7f8a++){let _0x581e0c=_0x305def[_0x4b7f8a],_0x350553=_0x5f19a8[_0x4b7f8a];if(_0x581e0c['from']!=_0x350553['from']||_0x581e0c['to']!=_0x350553['to']||_0x581e0c['size']!=_0x350553['size'])return!0x1;}return!0x0;}['draw'](_0x21f1bc,_0xc64bc6){return Decoration['replace']({'widget':new LineGapWidget(this['displaySize']*(_0xc64bc6?_0x21f1bc['scaleY']:_0x21f1bc['scaleX']),_0xc64bc6)})['range'](this['from'],this['to']);}}class LineGapWidget extends WidgetType{constructor(_0x59ba71,_0x323313){super(),this['size']=_0x59ba71,this['vertical']=_0x323313;}['eq'](_0x89a29b){return _0x89a29b['size']==this['size']&&_0x89a29b['vertical']==this['vertical'];}['toDOM'](){let _0x3c8679=document['createElement']('div');return this['vertical']?_0x3c8679['style']['height']=this['size']+'px':(_0x3c8679['style']['width']=this['size']+'px',_0x3c8679['style']['height']='2px',_0x3c8679['style']['display']='inline-block'),_0x3c8679;}get['estimatedHeight'](){return this['vertical']?this['size']:-0x1;}}class ViewState{constructor(_0x3e23c7){this['state']=_0x3e23c7,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 _0x5259c4=_0x3e23c7['facet'](contentAttributes)['some'](_0x558959=>'function'!=typeof _0x558959&&'cm-lineWrapping'==_0x558959['class']);this['heightOracle']=new HeightOracle(_0x5259c4),this['stateDeco']=_0x3e23c7['facet'](decorations)['filter'](_0x2d5dad=>'function'!=typeof _0x2d5dad),this['heightMap']=HeightMap['empty']()['applyChanges'](this['stateDeco'],Text['empty'],this['heightOracle']['setDoc'](_0x3e23c7['doc']),[new ChangedRange(0x0,0x0,0x0,_0x3e23c7['doc']['length'])]);for(let _0x39a07d=0x0;_0x39a07d<0x2&&(this['viewport']=this['getViewport'](0x0,null),this['updateForViewport']());_0x39a07d++);this['updateViewportLines'](),this['lineGaps']=this['ensureLineGaps']([]),this['lineGapDeco']=Decoration['set'](this['lineGaps']['map'](_0x5798d4=>_0x5798d4['draw'](this,!0x1))),this['computeVisibleRanges']();}['updateForViewport'](){let _0x3ad444=[this['viewport']],{main:_0x30e90e}=this['state']['selection'];for(let _0x205382=0x0;_0x205382<=0x1;_0x205382++){let _0x2aadb6=_0x205382?_0x30e90e['head']:_0x30e90e['anchor'];if(!_0x3ad444['some'](({from:_0x78d0b6,to:_0x3e51e8})=>_0x2aadb6>=_0x78d0b6&&_0x2aadb6<=_0x3e51e8)){let {from:_0x144f34,to:_0x3592c4}=this['lineBlockAt'](_0x2aadb6);_0x3ad444['push'](new Viewport(_0x144f34,_0x3592c4));}}return this['viewports']=_0x3ad444['sort']((_0x38f0a1,_0x42aa90)=>_0x38f0a1['from']-_0x42aa90['from']),this['updateScaler']();}['updateScaler'](){let _0x346985=this['scaler'];return this['scaler']=this['heightMap']['height']<=0x6acfc0?IdScaler:new BigScaler(this['heightOracle'],this['heightMap'],this['viewports']),_0x346985['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,_0x2c53a2=>{this['viewportLines']['push'](scaleBlock(_0x2c53a2,this['scaler']));});}['update'](_0x10a16f,_0x2a938c=null){this['state']=_0x10a16f['state'];let _0x2e2249=this['stateDeco'];this['stateDeco']=this['state']['facet'](decorations)['filter'](_0x3864da=>'function'!=typeof _0x3864da);let _0x49f6c4=_0x10a16f['changedRanges'],_0x2bd0af=ChangedRange['extendWithRanges'](_0x49f6c4,heightRelevantDecoChanges(_0x2e2249,this['stateDeco'],_0x10a16f?_0x10a16f['changes']:ChangeSet['empty'](this['state']['doc']['length']))),_0x39e70c=this['heightMap']['height'],_0x47ad14=this['scrolledToBottom']?null:this['scrollAnchorAt'](this['scrollTop']);clearHeightChangeFlag(),this['heightMap']=this['heightMap']['applyChanges'](this['stateDeco'],_0x10a16f['startState']['doc'],this['heightOracle']['setDoc'](this['state']['doc']),_0x2bd0af),(this['heightMap']['height']!=_0x39e70c||heightChangeFlag)&&(_0x10a16f['flags']|=0x2),_0x47ad14?(this['scrollAnchorPos']=_0x10a16f['changes']['mapPos'](_0x47ad14['from'],-0x1),this['scrollAnchorHeight']=_0x47ad14['top']):(this['scrollAnchorPos']=-0x1,this['scrollAnchorHeight']=_0x39e70c);let _0x48ad20=_0x2bd0af['length']?this['mapViewport'](this['viewport'],_0x10a16f['changes']):this['viewport'];(_0x2a938c&&(_0x2a938c['range']['head']<_0x48ad20['from']||_0x2a938c['range']['head']>_0x48ad20['to'])||!this['viewportIsAppropriate'](_0x48ad20))&&(_0x48ad20=this['getViewport'](0x0,_0x2a938c));let _0x54c455=_0x48ad20['from']!=this['viewport']['from']||_0x48ad20['to']!=this['viewport']['to'];this['viewport']=_0x48ad20,_0x10a16f['flags']|=this['updateForViewport'](),(_0x54c455||!_0x10a16f['changes']['empty']||0x2&_0x10a16f['flags'])&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](this['mapLineGaps'](this['lineGaps'],_0x10a16f['changes']))),_0x10a16f['flags']|=this['computeVisibleRanges'](_0x10a16f['changes']),_0x2a938c&&(this['scrollTarget']=_0x2a938c),!this['mustEnforceCursorAssoc']&&_0x10a16f['selectionSet']&&_0x10a16f['view']['lineWrapping']&&_0x10a16f['state']['selection']['main']['empty']&&_0x10a16f['state']['selection']['main']['assoc']&&!_0x10a16f['state']['facet'](nativeSelectionHidden)&&(this['mustEnforceCursorAssoc']=!0x0);}['measure'](_0x41a715){let _0x15e6a1=_0x41a715['contentDOM'],_0x4b2ed1=window['getComputedStyle'](_0x15e6a1),_0x3e75c3=this['heightOracle'],_0xd638d=_0x4b2ed1['whiteSpace'];this['defaultTextDirection']='rtl'==_0x4b2ed1['direction']?Direction['RTL']:Direction['LTR'];let _0x50ff29=this['heightOracle']['mustRefreshForWrapping'](_0xd638d),_0x5995d7=_0x15e6a1['getBoundingClientRect'](),_0x406261=_0x50ff29||this['mustMeasureContent']||this['contentDOMHeight']!=_0x5995d7['height'];this['contentDOMHeight']=_0x5995d7['height'],this['mustMeasureContent']=!0x1;let _0x6dbd63=0x0,_0x514bd3=0x0;if(_0x5995d7['width']&&_0x5995d7['height']){let {scaleX:_0x2f7bca,scaleY:_0x279553}=getScale(_0x15e6a1,_0x5995d7);(_0x2f7bca>0.005&&Math['abs'](this['scaleX']-_0x2f7bca)>0.005||_0x279553>0.005&&Math['abs'](this['scaleY']-_0x279553)>0.005)&&(this['scaleX']=_0x2f7bca,this['scaleY']=_0x279553,_0x6dbd63|=0x10,_0x50ff29=_0x406261=!0x0);}let _0x5b523f=(parseInt(_0x4b2ed1['paddingTop'])||0x0)*this['scaleY'],_0x221e9b=(parseInt(_0x4b2ed1['paddingBottom'])||0x0)*this['scaleY'];this['paddingTop']==_0x5b523f&&this['paddingBottom']==_0x221e9b||(this['paddingTop']=_0x5b523f,this['paddingBottom']=_0x221e9b,_0x6dbd63|=0x12),this['editorWidth']!=_0x41a715['scrollDOM']['clientWidth']&&(_0x3e75c3['lineWrapping']&&(_0x406261=!0x0),this['editorWidth']=_0x41a715['scrollDOM']['clientWidth'],_0x6dbd63|=0x10);let _0x2124f9=_0x41a715['scrollDOM']['scrollTop']*this['scaleY'];this['scrollTop']!=_0x2124f9&&(this['scrollAnchorHeight']=-0x1,this['scrollTop']=_0x2124f9),this['scrolledToBottom']=isScrolledToBottom(_0x41a715['scrollDOM']);let _0x408030=(this['printing']?fullPixelRange:visiblePixelRange)(_0x15e6a1,this['paddingTop']),_0x4a9b57=_0x408030['top']-this['pixelViewport']['top'],_0x3c6380=_0x408030['bottom']-this['pixelViewport']['bottom'];this['pixelViewport']=_0x408030;let _0x4e86c5=this['pixelViewport']['bottom']>this['pixelViewport']['top']&&this['pixelViewport']['right']>this['pixelViewport']['left'];if(_0x4e86c5!=this['inView']&&(this['inView']=_0x4e86c5,_0x4e86c5&&(_0x406261=!0x0)),!this['inView']&&!this['scrollTarget']&&!inWindow(_0x41a715['dom']))return 0x0;let _0x279034=_0x5995d7['width'];if(this['contentDOMWidth']==_0x279034&&this['editorHeight']==_0x41a715['scrollDOM']['clientHeight']||(this['contentDOMWidth']=_0x5995d7['width'],this['editorHeight']=_0x41a715['scrollDOM']['clientHeight'],_0x6dbd63|=0x10),_0x406261){let _0x52b554=_0x41a715['docView']['measureVisibleLineHeights'](this['viewport']);if(_0x3e75c3['mustRefreshForHeights'](_0x52b554)&&(_0x50ff29=!0x0),_0x50ff29||_0x3e75c3['lineWrapping']&&Math['abs'](_0x279034-this['contentDOMWidth'])>_0x3e75c3['charWidth']){let {lineHeight:_0x2d70b4,charWidth:_0x591a6a,textHeight:_0x1bc631}=_0x41a715['docView']['measureTextSize']();_0x50ff29=_0x2d70b4>0x0&&_0x3e75c3['refresh'](_0xd638d,_0x2d70b4,_0x591a6a,_0x1bc631,Math['max'](0x5,_0x279034/_0x591a6a),_0x52b554),_0x50ff29&&(_0x41a715['docView']['minWidth']=0x0,_0x6dbd63|=0x10);}_0x4a9b57>0x0&&_0x3c6380>0x0?_0x514bd3=Math['max'](_0x4a9b57,_0x3c6380):_0x4a9b57<0x0&&_0x3c6380<0x0&&(_0x514bd3=Math['min'](_0x4a9b57,_0x3c6380)),clearHeightChangeFlag();for(let _0x357d0e of this['viewports']){let _0x5ce06b=_0x357d0e['from']==this['viewport']['from']?_0x52b554:_0x41a715['docView']['measureVisibleLineHeights'](_0x357d0e);this['heightMap']=(_0x50ff29?HeightMap['empty']()['applyChanges'](this['stateDeco'],Text['empty'],this['heightOracle'],[new ChangedRange(0x0,0x0,0x0,_0x41a715['state']['doc']['length'])]):this['heightMap'])['updateHeight'](_0x3e75c3,0x0,_0x50ff29,new MeasuredHeights(_0x357d0e['from'],_0x5ce06b));}heightChangeFlag&&(_0x6dbd63|=0x2);}let _0x5b9b5e=!this['viewportIsAppropriate'](this['viewport'],_0x514bd3)||this['scrollTarget']&&(this['scrollTarget']['range']['head']<this['viewport']['from']||this['scrollTarget']['range']['head']>this['viewport']['to']);return _0x5b9b5e&&(0x2&_0x6dbd63&&(_0x6dbd63|=this['updateScaler']()),this['viewport']=this['getViewport'](_0x514bd3,this['scrollTarget']),_0x6dbd63|=this['updateForViewport']()),(0x2&_0x6dbd63||_0x5b9b5e)&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](_0x50ff29?[]:this['lineGaps'],_0x41a715)),_0x6dbd63|=this['computeVisibleRanges'](),this['mustEnforceCursorAssoc']&&(this['mustEnforceCursorAssoc']=!0x1,_0x41a715['docView']['enforceCursorAssoc']()),_0x6dbd63;}get['visibleTop'](){return this['scaler']['fromDOM'](this['pixelViewport']['top']);}get['visibleBottom'](){return this['scaler']['fromDOM'](this['pixelViewport']['bottom']);}['getViewport'](_0x40f988,_0x5e87ba){let _0x22bb85=0.5-Math['max'](-0.5,Math['min'](0.5,_0x40f988/0x3e8/0x2)),_0x5d5066=this['heightMap'],_0x3f062d=this['heightOracle'],{visibleTop:_0x2a76d7,visibleBottom:_0xa2b8e4}=this,_0x347841=new Viewport(_0x5d5066['lineAt'](_0x2a76d7-0x3e8*_0x22bb85,QueryType['ByHeight'],_0x3f062d,0x0,0x0)['from'],_0x5d5066['lineAt'](_0xa2b8e4+0x3e8*(0x1-_0x22bb85),QueryType['ByHeight'],_0x3f062d,0x0,0x0)['to']);if(_0x5e87ba){let {head:_0x39b321}=_0x5e87ba['range'];if(_0x39b321<_0x347841['from']||_0x39b321>_0x347841['to']){let _0x4076a4,_0xe2f67a=Math['min'](this['editorHeight'],this['pixelViewport']['bottom']-this['pixelViewport']['top']),_0x57d73=_0x5d5066['lineAt'](_0x39b321,QueryType['ByPos'],_0x3f062d,0x0,0x0);_0x4076a4='center'==_0x5e87ba['y']?(_0x57d73['top']+_0x57d73['bottom'])/0x2-_0xe2f67a/0x2:'start'==_0x5e87ba['y']||'nearest'==_0x5e87ba['y']&&_0x39b321<_0x347841['from']?_0x57d73['top']:_0x57d73['bottom']-_0xe2f67a,_0x347841=new Viewport(_0x5d5066['lineAt'](_0x4076a4-0x1f4,QueryType['ByHeight'],_0x3f062d,0x0,0x0)['from'],_0x5d5066['lineAt'](_0x4076a4+_0xe2f67a+0x1f4,QueryType['ByHeight'],_0x3f062d,0x0,0x0)['to']);}}return _0x347841;}['mapViewport'](_0x3ca348,_0x597a17){let _0x36b0f5=_0x597a17['mapPos'](_0x3ca348['from'],-0x1),_0x452715=_0x597a17['mapPos'](_0x3ca348['to'],0x1);return new Viewport(this['heightMap']['lineAt'](_0x36b0f5,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['from'],this['heightMap']['lineAt'](_0x452715,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['to']);}['viewportIsAppropriate']({from:_0xd9b756,to:_0x52c416},_0x37635=0x0){if(!this['inView'])return!0x0;let {top:_0x41344b}=this['heightMap']['lineAt'](_0xd9b756,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{bottom:_0x51be12}=this['heightMap']['lineAt'](_0x52c416,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{visibleTop:_0x43c17c,visibleBottom:_0x555183}=this;return(0x0==_0xd9b756||_0x41344b<=_0x43c17c-Math['max'](0xa,Math['min'](-_0x37635,0xfa)))&&(_0x52c416==this['state']['doc']['length']||_0x51be12>=_0x555183+Math['max'](0xa,Math['min'](_0x37635,0xfa)))&&_0x41344b>_0x43c17c-0x7d0&&_0x51be12<_0x555183+0x7d0;}['mapLineGaps'](_0x57dbd3,_0x3848c8){if(!_0x57dbd3['length']||_0x3848c8['empty'])return _0x57dbd3;let _0x95da7b=[];for(let _0x84c1df of _0x57dbd3)_0x3848c8['touchesRange'](_0x84c1df['from'],_0x84c1df['to'])||_0x95da7b['push'](new LineGap(_0x3848c8['mapPos'](_0x84c1df['from']),_0x3848c8['mapPos'](_0x84c1df['to']),_0x84c1df['size'],_0x84c1df['displaySize']));return _0x95da7b;}['ensureLineGaps'](_0xbcc841,_0x3e9166){let _0x4bea98=this['heightOracle']['lineWrapping'],_0x520980=_0x4bea98?0x2710:0x7d0,_0x3b03a6=_0x520980>>0x1,_0x3a5510=_0x520980<<0x1;if(this['defaultTextDirection']!=Direction['LTR']&&!_0x4bea98)return[];let _0x4316fb=[],_0x26dfa2=(_0x9b975a,_0x240418,_0x369505,_0x1a2fbd)=>{if(_0x240418-_0x9b975a<_0x3b03a6)return;let _0xeb29b5=this['state']['selection']['main'],_0x11bbec=[_0xeb29b5['from']];_0xeb29b5['empty']||_0x11bbec['push'](_0xeb29b5['to']);for(let _0x2e11f0 of _0x11bbec)if(_0x2e11f0>_0x9b975a&&_0x2e11f0<_0x240418)return _0x26dfa2(_0x9b975a,_0x2e11f0-0xa,_0x369505,_0x1a2fbd),void _0x26dfa2(_0x2e11f0+0xa,_0x240418,_0x369505,_0x1a2fbd);let _0x427edc=find(_0xbcc841,_0x53434e=>_0x53434e['from']>=_0x369505['from']&&_0x53434e['to']<=_0x369505['to']&&Math['abs'](_0x53434e['from']-_0x9b975a)<_0x3b03a6&&Math['abs'](_0x53434e['to']-_0x240418)<_0x3b03a6&&!_0x11bbec['some'](_0x3ad588=>_0x53434e['from']<_0x3ad588&&_0x53434e['to']>_0x3ad588));if(!_0x427edc){if(_0x240418<_0x369505['to']&&_0x3e9166&&_0x4bea98&&_0x3e9166['visibleRanges']['some'](_0x1f0a4c=>_0x1f0a4c['from']<=_0x240418&&_0x1f0a4c['to']>=_0x240418)){let _0xdc77ec=_0x3e9166['moveToLineBoundary'](EditorSelection['cursor'](_0x240418),!0x1,!0x0)['head'];_0xdc77ec>_0x9b975a&&(_0x240418=_0xdc77ec);}let _0x35799c=this['gapSize'](_0x369505,_0x9b975a,_0x240418,_0x1a2fbd);_0x427edc=new LineGap(_0x9b975a,_0x240418,_0x35799c,_0x4bea98||_0x35799c<0x1e8480?_0x35799c:0x1e8480);}_0x4316fb['push'](_0x427edc);},_0x208753=_0x39c7a2=>{if(_0x39c7a2['length']<_0x3a5510||_0x39c7a2['type']!=BlockType['Text'])return;let _0x397160=lineStructure(_0x39c7a2['from'],_0x39c7a2['to'],this['stateDeco']);if(_0x397160['total']<_0x3a5510)return;let _0x485e36,_0x3f924a,_0x133cda=this['scrollTarget']?this['scrollTarget']['range']['head']:null;if(_0x4bea98){let _0x821266,_0x1f97ae,_0x1825ce=_0x520980/this['heightOracle']['lineLength']*this['heightOracle']['lineHeight'];if(null!=_0x133cda){let _0x43ee04=findFraction(_0x397160,_0x133cda),_0x3a5389=((this['visibleBottom']-this['visibleTop'])/0x2+_0x1825ce)/_0x39c7a2['height'];_0x821266=_0x43ee04-_0x3a5389,_0x1f97ae=_0x43ee04+_0x3a5389;}else _0x821266=(this['visibleTop']-_0x39c7a2['top']-_0x1825ce)/_0x39c7a2['height'],_0x1f97ae=(this['visibleBottom']-_0x39c7a2['top']+_0x1825ce)/_0x39c7a2['height'];_0x485e36=findPosition(_0x397160,_0x821266),_0x3f924a=findPosition(_0x397160,_0x1f97ae);}else{let _0xe477ce=_0x397160['total']*this['heightOracle']['charWidth'],_0xb32506=_0x520980*this['heightOracle']['charWidth'],_0x4e30cd=0x0;if(_0xe477ce>0x1e8480){for(let _0x1acd7c of _0xbcc841)_0x1acd7c['from']>=_0x39c7a2['from']&&_0x1acd7c['from']<_0x39c7a2['to']&&_0x1acd7c['size']!=_0x1acd7c['displaySize']&&_0x1acd7c['from']*this['heightOracle']['charWidth']+_0x4e30cd<this['pixelViewport']['left']&&(_0x4e30cd=_0x1acd7c['size']-_0x1acd7c['displaySize']);}let _0x1ac991,_0x58e347,_0x4d0690=this['pixelViewport']['left']+_0x4e30cd,_0x37fb3f=this['pixelViewport']['right']+_0x4e30cd;if(null!=_0x133cda){let _0xe565d9=findFraction(_0x397160,_0x133cda),_0x2e61a7=((_0x37fb3f-_0x4d0690)/0x2+_0xb32506)/_0xe477ce;_0x1ac991=_0xe565d9-_0x2e61a7,_0x58e347=_0xe565d9+_0x2e61a7;}else _0x1ac991=(_0x4d0690-_0xb32506)/_0xe477ce,_0x58e347=(_0x37fb3f+_0xb32506)/_0xe477ce;_0x485e36=findPosition(_0x397160,_0x1ac991),_0x3f924a=findPosition(_0x397160,_0x58e347);}_0x485e36>_0x39c7a2['from']&&_0x26dfa2(_0x39c7a2['from'],_0x485e36,_0x39c7a2,_0x397160),_0x3f924a<_0x39c7a2['to']&&_0x26dfa2(_0x3f924a,_0x39c7a2['to'],_0x39c7a2,_0x397160);};for(let _0x164e71 of this['viewportLines'])Array['isArray'](_0x164e71['type'])?_0x164e71['type']['forEach'](_0x208753):_0x208753(_0x164e71);return _0x4316fb;}['gapSize'](_0x424ef2,_0x147354,_0x2711f2,_0x3a879b){let _0x8966f3=findFraction(_0x3a879b,_0x2711f2)-findFraction(_0x3a879b,_0x147354);return this['heightOracle']['lineWrapping']?_0x424ef2['height']*_0x8966f3:_0x3a879b['total']*this['heightOracle']['charWidth']*_0x8966f3;}['updateLineGaps'](_0x427c72){LineGap['same'](_0x427c72,this['lineGaps'])||(this['lineGaps']=_0x427c72,this['lineGapDeco']=Decoration['set'](_0x427c72['map'](_0x36d62f=>_0x36d62f['draw'](this,this['heightOracle']['lineWrapping']))));}['computeVisibleRanges'](_0x2c5dce){let _0x444fa1=this['stateDeco'];this['lineGaps']['length']&&(_0x444fa1=_0x444fa1['concat'](this['lineGapDeco']));let _0x3ab396=[];RangeSet['spans'](_0x444fa1,this['viewport']['from'],this['viewport']['to'],{'span'(_0x386a97,_0x2e7e6b){_0x3ab396['push']({'from':_0x386a97,'to':_0x2e7e6b});},'point'(){}},0x14);let _0x159762=0x0;if(_0x3ab396['length']!=this['visibleRanges']['length'])_0x159762=0xc;else for(let _0x3b3a44=0x0;_0x3b3a44<_0x3ab396['length']&&!(0x8&_0x159762);_0x3b3a44++){let _0x8d3e46=this['visibleRanges'][_0x3b3a44],_0x241b11=_0x3ab396[_0x3b3a44];_0x8d3e46['from']==_0x241b11['from']&&_0x8d3e46['to']==_0x241b11['to']||(_0x159762|=0x4,_0x2c5dce&&_0x2c5dce['mapPos'](_0x8d3e46['from'],-0x1)==_0x241b11['from']&&_0x2c5dce['mapPos'](_0x8d3e46['to'],0x1)==_0x241b11['to']||(_0x159762|=0x8));}return this['visibleRanges']=_0x3ab396,_0x159762;}['lineBlockAt'](_0x18d134){return _0x18d134>=this['viewport']['from']&&_0x18d134<=this['viewport']['to']&&this['viewportLines']['find'](_0x538a48=>_0x538a48['from']<=_0x18d134&&_0x538a48['to']>=_0x18d134)||scaleBlock(this['heightMap']['lineAt'](_0x18d134,QueryType['ByPos'],this['heightOracle'],0x0,0x0),this['scaler']);}['lineBlockAtHeight'](_0x375032){return _0x375032>=this['viewportLines'][0x0]['top']&&_0x375032<=this['viewportLines'][this['viewportLines']['length']-0x1]['bottom']&&this['viewportLines']['find'](_0x2431d6=>_0x2431d6['top']<=_0x375032&&_0x2431d6['bottom']>=_0x375032)||scaleBlock(this['heightMap']['lineAt'](this['scaler']['fromDOM'](_0x375032),QueryType['ByHeight'],this['heightOracle'],0x0,0x0),this['scaler']);}['scrollAnchorAt'](_0x3b92fb){let _0xca3dd1=this['lineBlockAtHeight'](_0x3b92fb+0x8);return _0xca3dd1['from']>=this['viewport']['from']||this['viewportLines'][0x0]['top']-_0x3b92fb>0xc8?_0xca3dd1:this['viewportLines'][0x0];}['elementAtHeight'](_0xdf769c){return scaleBlock(this['heightMap']['blockAt'](this['scaler']['fromDOM'](_0xdf769c),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(_0x1d6ca7,_0x18b4c0){this['from']=_0x1d6ca7,this['to']=_0x18b4c0;}}function lineStructure(_0x9db99,_0x31d7a5,_0x2b5ce5){let _0x3410e8=[],_0x3cf292=_0x9db99,_0x1b0fff=0x0;return RangeSet['spans'](_0x2b5ce5,_0x9db99,_0x31d7a5,{'span'(){},'point'(_0x49ff94,_0x4fb0fe){_0x49ff94>_0x3cf292&&(_0x3410e8['push']({'from':_0x3cf292,'to':_0x49ff94}),_0x1b0fff+=_0x49ff94-_0x3cf292),_0x3cf292=_0x4fb0fe;}},0x14),_0x3cf292<_0x31d7a5&&(_0x3410e8['push']({'from':_0x3cf292,'to':_0x31d7a5}),_0x1b0fff+=_0x31d7a5-_0x3cf292),{'total':_0x1b0fff,'ranges':_0x3410e8};}function findPosition({total:_0x268bc4,ranges:_0x117b2d},_0x3f2d9b){if(_0x3f2d9b<=0x0)return _0x117b2d[0x0]['from'];if(_0x3f2d9b>=0x1)return _0x117b2d[_0x117b2d['length']-0x1]['to'];let _0x66db2=Math['floor'](_0x268bc4*_0x3f2d9b);for(let _0x10c796=0x0;;_0x10c796++){let {from:_0x2859f7,to:_0x13e8fc}=_0x117b2d[_0x10c796],_0x4bcb59=_0x13e8fc-_0x2859f7;if(_0x66db2<=_0x4bcb59)return _0x2859f7+_0x66db2;_0x66db2-=_0x4bcb59;}}function findFraction(_0x57cdd3,_0x365484){let _0x40bb2f=0x0;for(let {from:_0x57a5c9,to:_0x1eda13}of _0x57cdd3['ranges']){if(_0x365484<=_0x1eda13){_0x40bb2f+=_0x365484-_0x57a5c9;break;}_0x40bb2f+=_0x1eda13-_0x57a5c9;}return _0x40bb2f/_0x57cdd3['total'];}function find(_0x3c0440,_0x2024d2){for(let _0x281820 of _0x3c0440)if(_0x2024d2(_0x281820))return _0x281820;}const IdScaler={'toDOM':_0x2acf25=>_0x2acf25,'fromDOM':_0x5887df=>_0x5887df,'scale':0x1,'eq'(_0x3b86c8){return _0x3b86c8==this;}};class BigScaler{constructor(_0x51302d,_0x4669ef,_0x56db85){let _0x5b75fa=0x0,_0x225f08=0x0,_0x422cd9=0x0;this['viewports']=_0x56db85['map'](({from:_0x4ad4fb,to:_0x3c2155})=>{let _0x298cc2=_0x4669ef['lineAt'](_0x4ad4fb,QueryType['ByPos'],_0x51302d,0x0,0x0)['top'],_0x36be61=_0x4669ef['lineAt'](_0x3c2155,QueryType['ByPos'],_0x51302d,0x0,0x0)['bottom'];return _0x5b75fa+=_0x36be61-_0x298cc2,{'from':_0x4ad4fb,'to':_0x3c2155,'top':_0x298cc2,'bottom':_0x36be61,'domTop':0x0,'domBottom':0x0};}),this['scale']=(0x6acfc0-_0x5b75fa)/(_0x4669ef['height']-_0x5b75fa);for(let _0x5b5498 of this['viewports'])_0x5b5498['domTop']=_0x422cd9+(_0x5b5498['top']-_0x225f08)*this['scale'],_0x422cd9=_0x5b5498['domBottom']=_0x5b5498['domTop']+(_0x5b5498['bottom']-_0x5b5498['top']),_0x225f08=_0x5b5498['bottom'];}['toDOM'](_0x40d2ab){for(let _0x4060e5=0x0,_0x23d889=0x0,_0x3111b0=0x0;;_0x4060e5++){let _0x43f276=_0x4060e5<this['viewports']['length']?this['viewports'][_0x4060e5]:null;if(!_0x43f276||_0x40d2ab<_0x43f276['top'])return _0x3111b0+(_0x40d2ab-_0x23d889)*this['scale'];if(_0x40d2ab<=_0x43f276['bottom'])return _0x43f276['domTop']+(_0x40d2ab-_0x43f276['top']);_0x23d889=_0x43f276['bottom'],_0x3111b0=_0x43f276['domBottom'];}}['fromDOM'](_0x5b132f){for(let _0x6c0e64=0x0,_0x30b427=0x0,_0x1241fe=0x0;;_0x6c0e64++){let _0x2d04bd=_0x6c0e64<this['viewports']['length']?this['viewports'][_0x6c0e64]:null;if(!_0x2d04bd||_0x5b132f<_0x2d04bd['domTop'])return _0x30b427+(_0x5b132f-_0x1241fe)/this['scale'];if(_0x5b132f<=_0x2d04bd['domBottom'])return _0x2d04bd['top']+(_0x5b132f-_0x2d04bd['domTop']);_0x30b427=_0x2d04bd['bottom'],_0x1241fe=_0x2d04bd['domBottom'];}}['eq'](_0x1c6052){return _0x1c6052 instanceof BigScaler&&(this['scale']==_0x1c6052['scale']&&this['viewports']['length']==_0x1c6052['viewports']['length']&&this['viewports']['every']((_0x539a35,_0x364382)=>_0x539a35['from']==_0x1c6052['viewports'][_0x364382]['from']&&_0x539a35['to']==_0x1c6052['viewports'][_0x364382]['to']));}}function scaleBlock(_0x13665a,_0x2e5624){if(0x1==_0x2e5624['scale'])return _0x13665a;let _0x495a72=_0x2e5624['toDOM'](_0x13665a['top']),_0x3fe2fd=_0x2e5624['toDOM'](_0x13665a['bottom']);return new BlockInfo(_0x13665a['from'],_0x13665a['length'],_0x495a72,_0x3fe2fd-_0x495a72,Array['isArray'](_0x13665a['_content'])?_0x13665a['_content']['map'](_0x431527=>scaleBlock(_0x431527,_0x2e5624)):_0x13665a['_content']);}const theme=Facet['define']({'combine':_0x25dad6=>_0x25dad6['join']('\x20')}),darkTheme=Facet['define']({'combine':_0x2289c0=>_0x2289c0['indexOf'](!0x0)>-0x1}),baseThemeID=StyleModule['newName'](),baseLightID=StyleModule['newName'](),baseDarkID=StyleModule['newName'](),lightDarkIDs={'&light':'.'+baseLightID,'&dark':'.'+baseDarkID};function buildTheme(_0x11edd1,_0x5a07e1,_0x5f00c1){return new StyleModule(_0x5a07e1,{'finish':_0x37e876=>/&/['test'](_0x37e876)?_0x37e876['replace'](/&\w*/,_0x51a5e5=>{if('&'==_0x51a5e5)return _0x11edd1;if(!_0x5f00c1||!_0x5f00c1[_0x51a5e5])throw new RangeError('Unsupported\x20selector:\x20'+_0x51a5e5);return _0x5f00c1[_0x51a5e5];}):_0x11edd1+'\x20'+_0x37e876});}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(_0x4e974b){this['view']=_0x4e974b,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']=_0x4e974b['contentDOM'],this['observer']=new MutationObserver(_0x3db035=>{for(let _0x667a01 of _0x3db035)this['queue']['push'](_0x667a01);(browser['ie']&&browser['ie_version']<=0xb||browser['ios']&&_0x4e974b['composing'])&&_0x3db035['some'](_0x527ccc=>'childList'==_0x527ccc['type']&&_0x527ccc['removedNodes']['length']||'characterData'==_0x527ccc['type']&&_0x527ccc['oldValue']['length']>_0x527ccc['target']['nodeValue']['length'])?this['flushSoon']():this['flush']();}),!window['EditContext']||!browser['android']||!0x1===_0x4e974b['constructor']['EDIT_CONTEXT']||browser['chrome']&&browser['chrome_version']<0x7e||(this['editContext']=new EditContextManager(_0x4e974b),_0x4e974b['state']['facet'](editable)&&(_0x4e974b['contentDOM']['editContext']=this['editContext']['editContext'])),useCharData&&(this['onCharData']=_0x58a1e2=>{this['queue']['push']({'target':_0x58a1e2['target'],'type':'characterData','oldValue':_0x58a1e2['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 _0x126962;(null===(_0x126962=this['view']['docView'])||void 0x0===_0x126962?void 0x0:_0x126962['lastUpdate'])<Date['now']()-0x4b&&this['onResize']();}),this['resizeScroll']['observe'](_0x4e974b['scrollDOM'])),this['addWindowListeners'](this['win']=_0x4e974b['win']),this['start'](),'function'==typeof IntersectionObserver&&(this['intersection']=new IntersectionObserver(_0x3544d4=>{this['parentCheck']<0x0&&(this['parentCheck']=setTimeout(this['listenForScroll']['bind'](this),0x3e8)),_0x3544d4['length']>0x0&&_0x3544d4[_0x3544d4['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(_0x5677e6=>{_0x5677e6['length']>0x0&&_0x5677e6[_0x5677e6['length']-0x1]['intersectionRatio']>0x0&&this['onScrollChanged'](document['createEvent']('Event'));},{})),this['listenForScroll'](),this['readSelectionRange']();}['onScrollChanged'](_0x3163b3){this['view']['inputState']['runHandlers']('scroll',_0x3163b3),this['intersecting']&&this['view']['measure']();}['onScroll'](_0x5a2455){this['intersecting']&&this['flush'](!0x1),this['editContext']&&this['view']['requestMeasure'](this['editContext']['measureReq']),this['onScrollChanged'](_0x5a2455);}['onResize'](){this['resizeTimeout']<0x0&&(this['resizeTimeout']=setTimeout(()=>{this['resizeTimeout']=-0x1,this['view']['requestMeasure']();},0x32));}['onPrint'](_0x4fb20d){('change'!=_0x4fb20d['type']&&_0x4fb20d['type']||_0x4fb20d['matches'])&&(this['view']['viewState']['printing']=!0x0,this['view']['measure'](),setTimeout(()=>{this['view']['viewState']['printing']=!0x1,this['view']['requestMeasure']();},0x1f4));}['updateGaps'](_0x19c936){if(this['gapIntersection']&&(_0x19c936['length']!=this['gaps']['length']||this['gaps']['some']((_0x42da5e,_0x431962)=>_0x42da5e!=_0x19c936[_0x431962]))){this['gapIntersection']['disconnect']();for(let _0x961a54 of _0x19c936)this['gapIntersection']['observe'](_0x961a54);this['gaps']=_0x19c936;}}['onSelectionChange'](_0x2fd39f){let _0x53de23=this['selectionChanged'];if(!this['readSelectionRange']()||this['delayedAndroidKey'])return;let {view:_0x34c608}=this,_0x493be8=this['selectionRange'];if(_0x34c608['state']['facet'](editable)?_0x34c608['root']['activeElement']!=this['dom']:!hasSelection(this['dom'],_0x493be8))return;let _0x4db6c2=_0x493be8['anchorNode']&&_0x34c608['docView']['nearest'](_0x493be8['anchorNode']);_0x4db6c2&&_0x4db6c2['ignoreEvent'](_0x2fd39f)?_0x53de23||(this['selectionChanged']=!0x1):(browser['ie']&&browser['ie_version']<=0xb||browser['android']&&browser['chrome'])&&!_0x34c608['state']['selection']['main']['empty']&&_0x493be8['focusNode']&&isEquivalentPosition(_0x493be8['focusNode'],_0x493be8['focusOffset'],_0x493be8['anchorNode'],_0x493be8['anchorOffset'])?this['flushSoon']():this['flush'](!0x1);}['readSelectionRange'](){let {view:_0x360ff8}=this,_0x4cc1cc=getSelection(_0x360ff8['root']);if(!_0x4cc1cc)return!0x1;let _0xf050f3=browser['safari']&&0xb==_0x360ff8['root']['nodeType']&&_0x360ff8['root']['activeElement']==this['dom']&&safariSelectionRangeHack(this['view'],_0x4cc1cc)||_0x4cc1cc;if(!_0xf050f3||this['selectionRange']['eq'](_0xf050f3))return!0x1;let _0x9912ea=hasSelection(this['dom'],_0xf050f3);return _0x9912ea&&!this['selectionChanged']&&_0x360ff8['inputState']['lastFocusTime']>Date['now']()-0xc8&&_0x360ff8['inputState']['lastTouchTime']<Date['now']()-0x12c&&atElementStart(this['dom'],_0xf050f3)?(this['view']['inputState']['lastFocusTime']=0x0,_0x360ff8['docView']['updateSelection'](),!0x1):(this['selectionRange']['setRange'](_0xf050f3),_0x9912ea&&(this['selectionChanged']=!0x0),!0x0);}['setSelectionRange'](_0x194fba,_0x25a670){this['selectionRange']['set'](_0x194fba['node'],_0x194fba['offset'],_0x25a670['node'],_0x25a670['offset']),this['selectionChanged']=!0x1;}['clearSelectionRange'](){this['selectionRange']['set'](null,0x0,null,0x0);}['listenForScroll'](){this['parentCheck']=-0x1;let _0x2c0c34=0x0,_0x30f396=null;for(let _0x1b6b58=this['dom'];_0x1b6b58;)if(0x1==_0x1b6b58['nodeType'])!_0x30f396&&_0x2c0c34<this['scrollTargets']['length']&&this['scrollTargets'][_0x2c0c34]==_0x1b6b58?_0x2c0c34++:_0x30f396||(_0x30f396=this['scrollTargets']['slice'](0x0,_0x2c0c34)),_0x30f396&&_0x30f396['push'](_0x1b6b58),_0x1b6b58=_0x1b6b58['assignedSlot']||_0x1b6b58['parentNode'];else{if(0xb!=_0x1b6b58['nodeType'])break;_0x1b6b58=_0x1b6b58['host'];}if(_0x2c0c34<this['scrollTargets']['length']&&!_0x30f396&&(_0x30f396=this['scrollTargets']['slice'](0x0,_0x2c0c34)),_0x30f396){for(let _0x28f6a8 of this['scrollTargets'])_0x28f6a8['removeEventListener']('scroll',this['onScroll']);for(let _0x4c5924 of this['scrollTargets']=_0x30f396)_0x4c5924['addEventListener']('scroll',this['onScroll']);}}['ignore'](_0x5043a5){if(!this['active'])return _0x5043a5();try{return this['stop'](),_0x5043a5();}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'](_0x54dc72,_0x50ea71){var _0x4c560a;if(!this['delayedAndroidKey']){let _0x5a5153=()=>{let _0x2e3ed8=this['delayedAndroidKey'];_0x2e3ed8&&(this['clearDelayedAndroidKey'](),this['view']['inputState']['lastKeyCode']=_0x2e3ed8['keyCode'],this['view']['inputState']['lastKeyTime']=Date['now'](),!this['flush']()&&_0x2e3ed8['force']&&dispatchKey(this['dom'],_0x2e3ed8['key'],_0x2e3ed8['keyCode']));};this['flushingAndroidKey']=this['view']['win']['requestAnimationFrame'](_0x5a5153);}this['delayedAndroidKey']&&'Enter'!=_0x54dc72||(this['delayedAndroidKey']={'key':_0x54dc72,'keyCode':_0x50ea71,'force':this['lastChange']<Date['now']()-0x32||!!(null===(_0x4c560a=this['delayedAndroidKey'])||void 0x0===_0x4c560a?void 0x0:_0x4c560a['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 _0x3d822e of this['observer']['takeRecords']())this['queue']['push'](_0x3d822e);return this['queue'];}['processRecords'](){let _0x1cdc35=this['pendingRecords']();_0x1cdc35['length']&&(this['queue']=[]);let _0x3a3e49=-0x1,_0x5b6843=-0x1,_0x166d28=!0x1;for(let _0x2865d7 of _0x1cdc35){let _0x2954bf=this['readMutation'](_0x2865d7);_0x2954bf&&(_0x2954bf['typeOver']&&(_0x166d28=!0x0),-0x1==_0x3a3e49?{from:_0x3a3e49,to:_0x5b6843}=_0x2954bf:(_0x3a3e49=Math['min'](_0x2954bf['from'],_0x3a3e49),_0x5b6843=Math['max'](_0x2954bf['to'],_0x5b6843)));}return{'from':_0x3a3e49,'to':_0x5b6843,'typeOver':_0x166d28};}['readChange'](){let {from:_0x3ebfe1,to:_0x1f67f8,typeOver:_0x4bc0b3}=this['processRecords'](),_0xc834cb=this['selectionChanged']&&hasSelection(this['dom'],this['selectionRange']);if(_0x3ebfe1<0x0&&!_0xc834cb)return null;_0x3ebfe1>-0x1&&(this['lastChange']=Date['now']()),this['view']['inputState']['lastFocusTime']=0x0,this['selectionChanged']=!0x1;let _0x522732=new DOMChange(this['view'],_0x3ebfe1,_0x1f67f8,_0x4bc0b3);return this['view']['docView']['domChanged']={'newSel':_0x522732['newSel']?_0x522732['newSel']['main']:null},_0x522732;}['flush'](_0x27ba6=!0x0){if(this['delayedFlush']>=0x0||this['delayedAndroidKey'])return!0x1;_0x27ba6&&this['readSelectionRange']();let _0x12e80c=this['readChange']();if(!_0x12e80c)return this['view']['requestMeasure'](),!0x1;let _0x154fe8=this['view']['state'],_0x25262d=applyDOMChange(this['view'],_0x12e80c);return this['view']['state']==_0x154fe8&&(_0x12e80c['domChanged']||_0x12e80c['newSel']&&!_0x12e80c['newSel']['main']['eq'](this['view']['state']['selection']['main']))&&this['view']['update']([]),_0x25262d;}['readMutation'](_0xa615e4){let _0x468aa8=this['view']['docView']['nearest'](_0xa615e4['target']);if(!_0x468aa8||_0x468aa8['ignoreMutation'](_0xa615e4))return null;if(_0x468aa8['markDirty']('attributes'==_0xa615e4['type']),'attributes'==_0xa615e4['type']&&(_0x468aa8['flags']|=0x4),'childList'==_0xa615e4['type']){let _0x234a9c=findChild(_0x468aa8,_0xa615e4['previousSibling']||_0xa615e4['target']['previousSibling'],-0x1),_0x244397=findChild(_0x468aa8,_0xa615e4['nextSibling']||_0xa615e4['target']['nextSibling'],0x1);return{'from':_0x234a9c?_0x468aa8['posAfter'](_0x234a9c):_0x468aa8['posAtStart'],'to':_0x244397?_0x468aa8['posBefore'](_0x244397):_0x468aa8['posAtEnd'],'typeOver':!0x1};}return'characterData'==_0xa615e4['type']?{'from':_0x468aa8['posAtStart'],'to':_0x468aa8['posAtEnd'],'typeOver':_0xa615e4['target']['nodeValue']==_0xa615e4['oldValue']}:null;}['setWindow'](_0x15787f){_0x15787f!=this['win']&&(this['removeWindowListeners'](this['win']),this['win']=_0x15787f,this['addWindowListeners'](this['win']));}['addWindowListeners'](_0x8bcf1f){_0x8bcf1f['addEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['addEventListener']?this['printQuery']['addEventListener']('change',this['onPrint']):this['printQuery']['addListener'](this['onPrint']):_0x8bcf1f['addEventListener']('beforeprint',this['onPrint']),_0x8bcf1f['addEventListener']('scroll',this['onScroll']),_0x8bcf1f['document']['addEventListener']('selectionchange',this['onSelectionChange']);}['removeWindowListeners'](_0x467205){_0x467205['removeEventListener']('scroll',this['onScroll']),_0x467205['removeEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['removeEventListener']?this['printQuery']['removeEventListener']('change',this['onPrint']):this['printQuery']['removeListener'](this['onPrint']):_0x467205['removeEventListener']('beforeprint',this['onPrint']),_0x467205['document']['removeEventListener']('selectionchange',this['onSelectionChange']);}['update'](_0x4296ae){this['editContext']&&(this['editContext']['update'](_0x4296ae),_0x4296ae['startState']['facet'](editable)!=_0x4296ae['state']['facet'](editable)&&(_0x4296ae['view']['contentDOM']['editContext']=_0x4296ae['state']['facet'](editable)?this['editContext']['editContext']:null));}['destroy'](){var _0x4501c1,_0x1eca77,_0x272a38;this['stop'](),null===(_0x4501c1=this['intersection'])||void 0x0===_0x4501c1||_0x4501c1['disconnect'](),null===(_0x1eca77=this['gapIntersection'])||void 0x0===_0x1eca77||_0x1eca77['disconnect'](),null===(_0x272a38=this['resizeScroll'])||void 0x0===_0x272a38||_0x272a38['disconnect']();for(let _0x4f46d7 of this['scrollTargets'])_0x4f46d7['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(_0x34a44e,_0x52f4ca,_0x44da4c){for(;_0x52f4ca;){let _0x159d95=ContentView['get'](_0x52f4ca);if(_0x159d95&&_0x159d95['parent']==_0x34a44e)return _0x159d95;let _0x2bf328=_0x52f4ca['parentNode'];_0x52f4ca=_0x2bf328!=_0x34a44e['dom']?_0x2bf328:_0x44da4c>0x0?_0x52f4ca['nextSibling']:_0x52f4ca['previousSibling'];}return null;}function buildSelectionRangeFromRange(_0x421191,_0x48bf60){let _0xb48178=_0x48bf60['startContainer'],_0x1346d1=_0x48bf60['startOffset'],_0x4f73d2=_0x48bf60['endContainer'],_0xb50bda=_0x48bf60['endOffset'],_0x409dfd=_0x421191['docView']['domAtPos'](_0x421191['state']['selection']['main']['anchor']);return isEquivalentPosition(_0x409dfd['node'],_0x409dfd['offset'],_0x4f73d2,_0xb50bda)&&([_0xb48178,_0x1346d1,_0x4f73d2,_0xb50bda]=[_0x4f73d2,_0xb50bda,_0xb48178,_0x1346d1]),{'anchorNode':_0xb48178,'anchorOffset':_0x1346d1,'focusNode':_0x4f73d2,'focusOffset':_0xb50bda};}function safariSelectionRangeHack(_0x40869e,_0x521dec){if(_0x521dec['getComposedRanges']){let _0x4aaff1=_0x521dec['getComposedRanges'](_0x40869e['root'])[0x0];if(_0x4aaff1)return buildSelectionRangeFromRange(_0x40869e,_0x4aaff1);}let _0x191706=null;function _0x550491(_0x4e7e80){_0x4e7e80['preventDefault'](),_0x4e7e80['stopImmediatePropagation'](),_0x191706=_0x4e7e80['getTargetRanges']()[0x0];}return _0x40869e['contentDOM']['addEventListener']('beforeinput',_0x550491,!0x0),_0x40869e['dom']['ownerDocument']['execCommand']('indent'),_0x40869e['contentDOM']['removeEventListener']('beforeinput',_0x550491,!0x0),_0x191706?buildSelectionRangeFromRange(_0x40869e,_0x191706):null;}class EditContextManager{constructor(_0x3cac23){this['from']=0x0,this['to']=0x0,this['pendingContextChange']=null,this['handlers']=Object['create'](null),this['composing']=null,this['resetRange'](_0x3cac23['state']);let _0x135f83=this['editContext']=new window['EditContext']({'text':_0x3cac23['state']['doc']['sliceString'](this['from'],this['to']),'selectionStart':this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x3cac23['state']['selection']['main']['anchor']))),'selectionEnd':this['toContextPos'](_0x3cac23['state']['selection']['main']['head'])});this['handlers']['textupdate']=_0x2d829f=>{let _0x10786a=_0x3cac23['state']['selection']['main'],{anchor:_0x18466e,head:_0x155fbf}=_0x10786a,_0x1cb9d7=this['toEditorPos'](_0x2d829f['updateRangeStart']),_0x2271a7=this['toEditorPos'](_0x2d829f['updateRangeEnd']);_0x3cac23['inputState']['composing']>=0x0&&!this['composing']&&(this['composing']={'contextBase':_0x2d829f['updateRangeStart'],'editorBase':_0x1cb9d7,'drifted':!0x1});let _0x21d7bc=_0x2271a7-_0x1cb9d7>_0x2d829f['text']['length'];_0x1cb9d7==this['from']&&_0x18466e<this['from']?_0x1cb9d7=_0x18466e:_0x2271a7==this['to']&&_0x18466e>this['to']&&(_0x2271a7=_0x18466e);let _0x2308b7=findDiff(_0x3cac23['state']['sliceDoc'](_0x1cb9d7,_0x2271a7),_0x2d829f['text'],(_0x21d7bc?_0x10786a['from']:_0x10786a['to'])-_0x1cb9d7,_0x21d7bc?'end':null);if(!_0x2308b7){let _0x3ef3ec=EditorSelection['single'](this['toEditorPos'](_0x2d829f['selectionStart']),this['toEditorPos'](_0x2d829f['selectionEnd']));return void(_0x3ef3ec['main']['eq'](_0x10786a)||_0x3cac23['dispatch']({'selection':_0x3ef3ec,'userEvent':'select'}));}let _0x33b37f={'from':_0x2308b7['from']+_0x1cb9d7,'to':_0x2308b7['toA']+_0x1cb9d7,'insert':Text['of'](_0x2d829f['text']['slice'](_0x2308b7['from'],_0x2308b7['toB'])['split']('\x0a'))};if((browser['mac']||browser['android'])&&_0x33b37f['from']==_0x155fbf-0x1&&/^\. ?$/['test'](_0x2d829f['text'])&&'off'==_0x3cac23['contentDOM']['getAttribute']('autocorrect')&&(_0x33b37f={'from':_0x1cb9d7,'to':_0x2271a7,'insert':Text['of']([_0x2d829f['text']['replace']('.','\x20')])}),this['pendingContextChange']=_0x33b37f,!_0x3cac23['state']['readOnly']){let _0x101ffc=this['to']-this['from']+(_0x33b37f['to']-_0x33b37f['from']+_0x33b37f['insert']['length']);applyDOMChangeInner(_0x3cac23,_0x33b37f,EditorSelection['single'](this['toEditorPos'](_0x2d829f['selectionStart'],_0x101ffc),this['toEditorPos'](_0x2d829f['selectionEnd'],_0x101ffc)));}this['pendingContextChange']&&(this['revertPending'](_0x3cac23['state']),this['setSelection'](_0x3cac23['state'])),_0x33b37f['from']<_0x33b37f['to']&&!_0x33b37f['insert']['length']&&_0x3cac23['inputState']['composing']>=0x0&&!/[\\p{Alphabetic}\\p{Number}_]/['test'](_0x135f83['text']['slice'](Math['max'](0x0,_0x2d829f['updateRangeStart']-0x1),Math['min'](_0x135f83['text']['length'],_0x2d829f['updateRangeStart']+0x1)))&&this['handlers']['compositionend'](_0x2d829f);},this['handlers']['characterboundsupdate']=_0x34f80a=>{let _0x1ef41a=[],_0xa4fa8=null;for(let _0x44df37=this['toEditorPos'](_0x34f80a['rangeStart']),_0xf2c70e=this['toEditorPos'](_0x34f80a['rangeEnd']);_0x44df37<_0xf2c70e;_0x44df37++){let _0x35deda=_0x3cac23['coordsForChar'](_0x44df37);_0xa4fa8=_0x35deda&&new DOMRect(_0x35deda['left'],_0x35deda['top'],_0x35deda['right']-_0x35deda['left'],_0x35deda['bottom']-_0x35deda['top'])||_0xa4fa8||new DOMRect(),_0x1ef41a['push'](_0xa4fa8);}_0x135f83['updateCharacterBounds'](_0x34f80a['rangeStart'],_0x1ef41a);},this['handlers']['textformatupdate']=_0x4f7534=>{let _0x44a292=[];for(let _0x405156 of _0x4f7534['getTextFormats']()){let _0x3596b9=_0x405156['underlineStyle'],_0xcef99e=_0x405156['underlineThickness'];if(!/none/i['test'](_0x3596b9)&&!/none/i['test'](_0xcef99e)){let _0x8ce6e6=this['toEditorPos'](_0x405156['rangeStart']),_0x365284=this['toEditorPos'](_0x405156['rangeEnd']);if(_0x8ce6e6<_0x365284){let _0x3ba8d6='text-decoration:\x20underline\x20'+(/^[a-z]/['test'](_0x3596b9)?_0x3596b9+'\x20':'Dashed'==_0x3596b9?'dashed\x20':'Squiggle'==_0x3596b9?'wavy\x20':'')+(/thin/i['test'](_0xcef99e)?0x1:0x2)+'px';_0x44a292['push'](Decoration['mark']({'attributes':{'style':_0x3ba8d6}})['range'](_0x8ce6e6,_0x365284));}}}_0x3cac23['dispatch']({'effects':setEditContextFormatting['of'](Decoration['set'](_0x44a292))});},this['handlers']['compositionstart']=()=>{_0x3cac23['inputState']['composing']<0x0&&(_0x3cac23['inputState']['composing']=0x0,_0x3cac23['inputState']['compositionFirstChange']=!0x0);},this['handlers']['compositionend']=()=>{if(_0x3cac23['inputState']['composing']=-0x1,_0x3cac23['inputState']['compositionFirstChange']=null,this['composing']){let {drifted:_0x199973}=this['composing'];this['composing']=null,_0x199973&&this['reset'](_0x3cac23['state']);}};for(let _0xf04c7f in this['handlers'])_0x135f83['addEventListener'](_0xf04c7f,this['handlers'][_0xf04c7f]);this['measureReq']={'read':_0x642156=>{this['editContext']['updateControlBounds'](_0x642156['contentDOM']['getBoundingClientRect']());let _0x469859=getSelection(_0x642156['root']);_0x469859&&_0x469859['rangeCount']&&this['editContext']['updateSelectionBounds'](_0x469859['getRangeAt'](0x0)['getBoundingClientRect']());}};}['applyEdits'](_0x276f48){let _0x397660=0x0,_0x495a61=!0x1,_0x3ab23d=this['pendingContextChange'];return _0x276f48['changes']['iterChanges']((_0x254251,_0x55cd35,_0x2eaa34,_0x3f2d13,_0x3c41da)=>{if(_0x495a61)return;let _0x513ef3=_0x3c41da['length']-(_0x55cd35-_0x254251);if(_0x3ab23d&&_0x55cd35>=_0x3ab23d['to']){if(_0x3ab23d['from']==_0x254251&&_0x3ab23d['to']==_0x55cd35&&_0x3ab23d['insert']['eq'](_0x3c41da))return _0x3ab23d=this['pendingContextChange']=null,_0x397660+=_0x513ef3,void(this['to']+=_0x513ef3);_0x3ab23d=null,this['revertPending'](_0x276f48['state']);}if(_0x254251+=_0x397660,(_0x55cd35+=_0x397660)<=this['from'])this['from']+=_0x513ef3,this['to']+=_0x513ef3;else{if(_0x254251<this['to']){if(_0x254251<this['from']||_0x55cd35>this['to']||this['to']-this['from']+_0x3c41da['length']>0x7530)return void(_0x495a61=!0x0);this['editContext']['updateText'](this['toContextPos'](_0x254251),this['toContextPos'](_0x55cd35),_0x3c41da['toString']()),this['to']+=_0x513ef3;}}_0x397660+=_0x513ef3;}),_0x3ab23d&&!_0x495a61&&this['revertPending'](_0x276f48['state']),!_0x495a61;}['update'](_0x2fbca7){let _0x1cad83=this['pendingContextChange'],_0x23c8ea=_0x2fbca7['startState']['selection']['main'];this['composing']&&(this['composing']['drifted']||!_0x2fbca7['changes']['touchesRange'](_0x23c8ea['from'],_0x23c8ea['to'])&&_0x2fbca7['transactions']['some'](_0x2e652d=>!_0x2e652d['isUserEvent']('input.type')&&_0x2e652d['changes']['touchesRange'](this['from'],this['to'])))?(this['composing']['drifted']=!0x0,this['composing']['editorBase']=_0x2fbca7['changes']['mapPos'](this['composing']['editorBase'])):this['applyEdits'](_0x2fbca7)&&this['rangeIsValid'](_0x2fbca7['state'])?(_0x2fbca7['docChanged']||_0x2fbca7['selectionSet']||_0x1cad83)&&this['setSelection'](_0x2fbca7['state']):(this['pendingContextChange']=null,this['reset'](_0x2fbca7['state'])),(_0x2fbca7['geometryChanged']||_0x2fbca7['docChanged']||_0x2fbca7['selectionSet'])&&_0x2fbca7['view']['requestMeasure'](this['measureReq']);}['resetRange'](_0x12ebc7){let {head:_0x415617}=_0x12ebc7['selection']['main'];this['from']=Math['max'](0x0,_0x415617-0x2710),this['to']=Math['min'](_0x12ebc7['doc']['length'],_0x415617+0x2710);}['reset'](_0x3632af){this['resetRange'](_0x3632af),this['editContext']['updateText'](0x0,this['editContext']['text']['length'],_0x3632af['doc']['sliceString'](this['from'],this['to'])),this['setSelection'](_0x3632af);}['revertPending'](_0xa98bc1){let _0xf79850=this['pendingContextChange'];this['pendingContextChange']=null,this['editContext']['updateText'](this['toContextPos'](_0xf79850['from']),this['toContextPos'](_0xf79850['from']+_0xf79850['insert']['length']),_0xa98bc1['doc']['sliceString'](_0xf79850['from'],_0xf79850['to']));}['setSelection'](_0x1ef654){let {main:_0x259bb8}=_0x1ef654['selection'],_0x3b9071=this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x259bb8['anchor']))),_0x39099c=this['toContextPos'](_0x259bb8['head']);this['editContext']['selectionStart']==_0x3b9071&&this['editContext']['selectionEnd']==_0x39099c||this['editContext']['updateSelection'](_0x3b9071,_0x39099c);}['rangeIsValid'](_0xc1135a){let {head:_0xae21de}=_0xc1135a['selection']['main'];return!(this['from']>0x0&&_0xae21de-this['from']<0x1f4||this['to']<_0xc1135a['doc']['length']&&this['to']-_0xae21de<0x1f4||this['to']-this['from']>0x7530);}['toEditorPos'](_0x358081,_0x3582f4=this['to']-this['from']){_0x358081=Math['min'](_0x358081,_0x3582f4);let _0x161f2c=this['composing'];return _0x161f2c&&_0x161f2c['drifted']?_0x161f2c['editorBase']+(_0x358081-_0x161f2c['contextBase']):_0x358081+this['from'];}['toContextPos'](_0x2a6041){let _0x420fdc=this['composing'];return _0x420fdc&&_0x420fdc['drifted']?_0x420fdc['contextBase']+(_0x2a6041-_0x420fdc['editorBase']):_0x2a6041-this['from'];}['destroy'](){for(let _0x1e7df6 in this['handlers'])this['editContext']['removeEventListener'](_0x1e7df6,this['handlers'][_0x1e7df6]);}}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(_0x1a2b7e={}){var _0x4edace;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']),_0x1a2b7e['parent']&&_0x1a2b7e['parent']['appendChild'](this['dom']);let {dispatch:_0x424ffb}=_0x1a2b7e;this['dispatchTransactions']=_0x1a2b7e['dispatchTransactions']||_0x424ffb&&(_0x4117d8=>_0x4117d8['forEach'](_0x273852=>_0x424ffb(_0x273852,this)))||(_0x1fc670=>this['update'](_0x1fc670)),this['dispatch']=this['dispatch']['bind'](this),this['_root']=_0x1a2b7e['root']||getRoot(_0x1a2b7e['parent'])||document,this['viewState']=new ViewState(_0x1a2b7e['state']||EditorState['create'](_0x1a2b7e)),_0x1a2b7e['scrollTo']&&_0x1a2b7e['scrollTo']['is'](scrollIntoView$1)&&(this['viewState']['scrollTarget']=_0x1a2b7e['scrollTo']['value']['clip'](this['viewState']['state'])),this['plugins']=this['state']['facet'](viewPlugin)['map'](_0x3d9422=>new PluginInstance(_0x3d9422));for(let _0x36a826 of this['plugins'])_0x36a826['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===(_0x4edace=document['fonts'])||void 0x0===_0x4edace?void 0x0:_0x4edace['ready'])&&document['fonts']['ready']['then'](()=>this['requestMeasure']());}['dispatch'](..._0x12d9c5){let _0x39421c=0x1==_0x12d9c5['length']&&_0x12d9c5[0x0]instanceof Transaction?_0x12d9c5:0x1==_0x12d9c5['length']&&Array['isArray'](_0x12d9c5[0x0])?_0x12d9c5[0x0]:[this['state']['update'](..._0x12d9c5)];this['dispatchTransactions'](_0x39421c,this);}['update'](_0x262eb6){if(0x0!=this['updateState'])throw new Error('Calls\x20to\x20EditorView.update\x20are\x20not\x20allowed\x20while\x20an\x20update\x20is\x20in\x20progress');let _0x45e75f,_0x54a90d=!0x1,_0x1f9fce=!0x1,_0x43ee5a=this['state'];for(let _0xb3ea8f of _0x262eb6){if(_0xb3ea8f['startState']!=_0x43ee5a)throw new RangeError('Trying\x20to\x20update\x20state\x20with\x20a\x20transaction\x20that\x20doesn\x27t\x20start\x20from\x20the\x20previous\x20state.');_0x43ee5a=_0xb3ea8f['state'];}if(this['destroyed'])return void(this['viewState']['state']=_0x43ee5a);let _0x759b15=this['hasFocus'],_0x1535c3=0x0,_0x1de550=null;_0x262eb6['some'](_0x20aac4=>_0x20aac4['annotation'](isFocusChange))?(this['inputState']['notifiedFocused']=_0x759b15,_0x1535c3=0x1):_0x759b15!=this['inputState']['notifiedFocused']&&(this['inputState']['notifiedFocused']=_0x759b15,_0x1de550=focusChangeTransaction(_0x43ee5a,_0x759b15),_0x1de550||(_0x1535c3=0x1));let _0xfbe4b7=this['observer']['delayedAndroidKey'],_0x55cecc=null;if(_0xfbe4b7?(this['observer']['clearDelayedAndroidKey'](),_0x55cecc=this['observer']['readChange'](),(_0x55cecc&&!this['state']['doc']['eq'](_0x43ee5a['doc'])||!this['state']['selection']['eq'](_0x43ee5a['selection']))&&(_0x55cecc=null)):this['observer']['clear'](),_0x43ee5a['facet'](EditorState['phrases'])!=this['state']['facet'](EditorState['phrases']))return this['setState'](_0x43ee5a);_0x45e75f=ViewUpdate['create'](this,_0x43ee5a,_0x262eb6),_0x45e75f['flags']|=_0x1535c3;let _0x422232=this['viewState']['scrollTarget'];try{this['updateState']=0x2;for(let _0x2c56ca of _0x262eb6){if(_0x422232&&(_0x422232=_0x422232['map'](_0x2c56ca['changes'])),_0x2c56ca['scrollIntoView']){let {main:_0x1b7672}=_0x2c56ca['state']['selection'];_0x422232=new ScrollTarget(_0x1b7672['empty']?_0x1b7672:EditorSelection['cursor'](_0x1b7672['head'],_0x1b7672['head']>_0x1b7672['anchor']?-0x1:0x1));}for(let _0x224c85 of _0x2c56ca['effects'])_0x224c85['is'](scrollIntoView$1)&&(_0x422232=_0x224c85['value']['clip'](this['state']));}this['viewState']['update'](_0x45e75f,_0x422232),this['bidiCache']=CachedOrder['update'](this['bidiCache'],_0x45e75f['changes']),_0x45e75f['empty']||(this['updatePlugins'](_0x45e75f),this['inputState']['update'](_0x45e75f)),_0x54a90d=this['docView']['update'](_0x45e75f),this['state']['facet'](styleModule)!=this['styleModules']&&this['mountStyles'](),_0x1f9fce=this['updateAttrs'](),this['showAnnouncements'](_0x262eb6),this['docView']['updateSelection'](_0x54a90d,_0x262eb6['some'](_0xf37da8=>_0xf37da8['isUserEvent']('select.pointer')));}finally{this['updateState']=0x0;}if(_0x45e75f['startState']['facet'](theme)!=_0x45e75f['state']['facet'](theme)&&(this['viewState']['mustMeasureContent']=!0x0),(_0x54a90d||_0x1f9fce||_0x422232||this['viewState']['mustEnforceCursorAssoc']||this['viewState']['mustMeasureContent'])&&this['requestMeasure'](),_0x54a90d&&this['docViewUpdate'](),!_0x45e75f['empty']){for(let _0x59b1fd of this['state']['facet'](updateListener))try{_0x59b1fd(_0x45e75f);}catch(_0xbf7a2a){logException(this['state'],_0xbf7a2a,'update\x20listener');}}(_0x1de550||_0x55cecc)&&Promise['resolve']()['then'](()=>{_0x1de550&&this['state']==_0x1de550['startState']&&this['dispatch'](_0x1de550),_0x55cecc&&!applyDOMChange(this,_0x55cecc)&&_0xfbe4b7['force']&&dispatchKey(this['contentDOM'],_0xfbe4b7['key'],_0xfbe4b7['keyCode']);});}['setState'](_0x8404b){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']=_0x8404b);this['updateState']=0x2;let _0x3fb9be=this['hasFocus'];try{for(let _0x46eced of this['plugins'])_0x46eced['destroy'](this);this['viewState']=new ViewState(_0x8404b),this['plugins']=_0x8404b['facet'](viewPlugin)['map'](_0x4062ad=>new PluginInstance(_0x4062ad)),this['pluginMap']['clear']();for(let _0x944718 of this['plugins'])_0x944718['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;}_0x3fb9be&&this['focus'](),this['requestMeasure']();}['updatePlugins'](_0x4d860e){let _0x14e486=_0x4d860e['startState']['facet'](viewPlugin),_0x3289e0=_0x4d860e['state']['facet'](viewPlugin);if(_0x14e486!=_0x3289e0){let _0xe18354=[];for(let _0x30cfc0 of _0x3289e0){let _0x59fa5f=_0x14e486['indexOf'](_0x30cfc0);if(_0x59fa5f<0x0)_0xe18354['push'](new PluginInstance(_0x30cfc0));else{let _0x289355=this['plugins'][_0x59fa5f];_0x289355['mustUpdate']=_0x4d860e,_0xe18354['push'](_0x289355);}}for(let _0xba2e97 of this['plugins'])_0xba2e97['mustUpdate']!=_0x4d860e&&_0xba2e97['destroy'](this);this['plugins']=_0xe18354,this['pluginMap']['clear']();}else{for(let _0x20a008 of this['plugins'])_0x20a008['mustUpdate']=_0x4d860e;}for(let _0x5aea99=0x0;_0x5aea99<this['plugins']['length'];_0x5aea99++)this['plugins'][_0x5aea99]['update'](this);_0x14e486!=_0x3289e0&&this['inputState']['ensureHandlers'](this['plugins']);}['docViewUpdate'](){for(let _0x3c0b18 of this['plugins']){let _0x363125=_0x3c0b18['value'];if(_0x363125&&_0x363125['docViewUpdate'])try{_0x363125['docViewUpdate'](this);}catch(_0x6b090a){logException(this['state'],_0x6b090a,'doc\x20view\x20update\x20listener');}}}['measure'](_0x1ac867=!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,_0x1ac867&&this['observer']['forceFlush']();let _0x152dcb=null,_0x2cfd40=this['scrollDOM'],_0x25d2d5=_0x2cfd40['scrollTop']*this['scaleY'],{scrollAnchorPos:_0x32c48b,scrollAnchorHeight:_0x255fa5}=this['viewState'];Math['abs'](_0x25d2d5-this['viewState']['scrollTop'])>0x1&&(_0x255fa5=-0x1),this['viewState']['scrollAnchorHeight']=-0x1;try{for(let _0x50454d=0x0;;_0x50454d++){if(_0x255fa5<0x0){if(isScrolledToBottom(_0x2cfd40))_0x32c48b=-0x1,_0x255fa5=this['viewState']['heightMap']['height'];else{let _0x4a8cb5=this['viewState']['scrollAnchorAt'](_0x25d2d5);_0x32c48b=_0x4a8cb5['from'],_0x255fa5=_0x4a8cb5['top'];}}this['updateState']=0x1;let _0x58deab=this['viewState']['measure'](this);if(!_0x58deab&&!this['measureRequests']['length']&&null==this['viewState']['scrollTarget'])break;if(_0x50454d>0x5){console['warn'](this['measureRequests']['length']?'Measure\x20loop\x20restarted\x20more\x20than\x205\x20times':'Viewport\x20failed\x20to\x20stabilize');break;}let _0x1bec21=[];0x4&_0x58deab||([this['measureRequests'],_0x1bec21]=[_0x1bec21,this['measureRequests']]);let _0x456e21=_0x1bec21['map'](_0x5e5b18=>{try{return _0x5e5b18['read'](this);}catch(_0x51b6af){return logException(this['state'],_0x51b6af),BadMeasure;}}),_0x25b47e=ViewUpdate['create'](this,this['state'],[]),_0x2ebe80=!0x1;_0x25b47e['flags']|=_0x58deab,_0x152dcb?_0x152dcb['flags']|=_0x58deab:_0x152dcb=_0x25b47e,this['updateState']=0x2,_0x25b47e['empty']||(this['updatePlugins'](_0x25b47e),this['inputState']['update'](_0x25b47e),this['updateAttrs'](),_0x2ebe80=this['docView']['update'](_0x25b47e),_0x2ebe80&&this['docViewUpdate']());for(let _0x5807fb=0x0;_0x5807fb<_0x1bec21['length'];_0x5807fb++)if(_0x456e21[_0x5807fb]!=BadMeasure)try{let _0x118c68=_0x1bec21[_0x5807fb];_0x118c68['write']&&_0x118c68['write'](_0x456e21[_0x5807fb],this);}catch(_0x48c6b5){logException(this['state'],_0x48c6b5);}if(_0x2ebe80&&this['docView']['updateSelection'](!0x0),!_0x25b47e['viewportChanged']&&0x0==this['measureRequests']['length']){if(this['viewState']['editorHeight']){if(this['viewState']['scrollTarget']){this['docView']['scrollIntoView'](this['viewState']['scrollTarget']),this['viewState']['scrollTarget']=null,_0x255fa5=-0x1;continue;}{let _0x10837a=(_0x32c48b<0x0?this['viewState']['heightMap']['height']:this['viewState']['lineBlockAt'](_0x32c48b)['top'])-_0x255fa5;if(_0x10837a>0x1||_0x10837a<-0x1){_0x25d2d5+=_0x10837a,_0x2cfd40['scrollTop']=_0x25d2d5/this['scaleY'],_0x255fa5=-0x1;continue;}}}break;}}}finally{this['updateState']=0x0,this['measureScheduled']=-0x1;}if(_0x152dcb&&!_0x152dcb['empty']){for(let _0x1187e4 of this['state']['facet'](updateListener))_0x1187e4(_0x152dcb);}}get['themeClasses'](){return baseThemeID+'\x20'+(this['state']['facet'](darkTheme)?baseDarkID:baseLightID)+'\x20'+this['state']['facet'](theme);}['updateAttrs'](){let _0x3f6260=attrsFromFacet(this,editorAttributes,{'class':'cm-editor'+(this['hasFocus']?'\x20cm-focused\x20':'\x20')+this['themeClasses']}),_0x33ffe5={'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']&&(_0x33ffe5['aria-readonly']='true'),attrsFromFacet(this,contentAttributes,_0x33ffe5);let _0x40d216=this['observer']['ignore'](()=>{let _0x3cef2d=updateAttrs(this['contentDOM'],this['contentAttrs'],_0x33ffe5),_0x1054f8=updateAttrs(this['dom'],this['editorAttrs'],_0x3f6260);return _0x3cef2d||_0x1054f8;});return this['editorAttrs']=_0x3f6260,this['contentAttrs']=_0x33ffe5,_0x40d216;}['showAnnouncements'](_0x751c4){let _0x4b32f4=!0x0;for(let _0x4d7eba of _0x751c4)for(let _0x40866d of _0x4d7eba['effects'])_0x40866d['is'](EditorView['announce'])&&(_0x4b32f4&&(this['announceDOM']['textContent']=''),_0x4b32f4=!0x1,this['announceDOM']['appendChild'](document['createElement']('div'))['textContent']=_0x40866d['value']);}['mountStyles'](){this['styleModules']=this['state']['facet'](styleModule);let _0x44e536=this['state']['facet'](EditorView['cspNonce']);StyleModule['mount'](this['root'],this['styleModules']['concat'](baseTheme$1$1)['reverse'](),_0x44e536?{'nonce':_0x44e536}: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'](_0x2484ac){if(this['measureScheduled']<0x0&&(this['measureScheduled']=this['win']['requestAnimationFrame'](()=>this['measure']())),_0x2484ac){if(this['measureRequests']['indexOf'](_0x2484ac)>-0x1)return;if(null!=_0x2484ac['key']){for(let _0x3dd351=0x0;_0x3dd351<this['measureRequests']['length'];_0x3dd351++)if(this['measureRequests'][_0x3dd351]['key']===_0x2484ac['key'])return void(this['measureRequests'][_0x3dd351]=_0x2484ac);}this['measureRequests']['push'](_0x2484ac);}}['plugin'](_0x38efc2){let _0x5e4b96=this['pluginMap']['get'](_0x38efc2);return(void 0x0===_0x5e4b96||_0x5e4b96&&_0x5e4b96['plugin']!=_0x38efc2)&&this['pluginMap']['set'](_0x38efc2,_0x5e4b96=this['plugins']['find'](_0x4ba7f7=>_0x4ba7f7['plugin']==_0x38efc2)||null),_0x5e4b96&&_0x5e4b96['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'](_0x2cc8e9){return this['readMeasured'](),this['viewState']['elementAtHeight'](_0x2cc8e9);}['lineBlockAtHeight'](_0x1d7e47){return this['readMeasured'](),this['viewState']['lineBlockAtHeight'](_0x1d7e47);}get['viewportLineBlocks'](){return this['viewState']['viewportLines'];}['lineBlockAt'](_0x4ddcde){return this['viewState']['lineBlockAt'](_0x4ddcde);}get['contentHeight'](){return this['viewState']['contentHeight'];}['moveByChar'](_0x22f50e,_0x5d6509,_0x1ee9f9){return skipAtoms(this,_0x22f50e,moveByChar(this,_0x22f50e,_0x5d6509,_0x1ee9f9));}['moveByGroup'](_0x315362,_0x122890){return skipAtoms(this,_0x315362,moveByChar(this,_0x315362,_0x122890,_0x2d8639=>byGroup(this,_0x315362['head'],_0x2d8639)));}['visualLineSide'](_0x3f9a83,_0x340724){let _0x3d3c0b=this['bidiSpans'](_0x3f9a83),_0x4d2665=this['textDirectionAt'](_0x3f9a83['from']),_0x15a9ef=_0x3d3c0b[_0x340724?_0x3d3c0b['length']-0x1:0x0];return EditorSelection['cursor'](_0x15a9ef['side'](_0x340724,_0x4d2665)+_0x3f9a83['from'],_0x15a9ef['forward'](!_0x340724,_0x4d2665)?0x1:-0x1);}['moveToLineBoundary'](_0x1fe398,_0x467771,_0x38c102=!0x0){return moveToLineBoundary(this,_0x1fe398,_0x467771,_0x38c102);}['moveVertically'](_0x5c487f,_0x1ac633,_0x130d7b){return skipAtoms(this,_0x5c487f,moveVertically(this,_0x5c487f,_0x1ac633,_0x130d7b));}['domAtPos'](_0x232fd3){return this['docView']['domAtPos'](_0x232fd3);}['posAtDOM'](_0x3f0593,_0x249a6d=0x0){return this['docView']['posFromDOM'](_0x3f0593,_0x249a6d);}['posAtCoords'](_0x5958e5,_0x486cf9=!0x0){return this['readMeasured'](),posAtCoords(this,_0x5958e5,_0x486cf9);}['coordsAtPos'](_0x3102c3,_0xaaf44d=0x1){this['readMeasured']();let _0x500225=this['docView']['coordsAt'](_0x3102c3,_0xaaf44d);if(!_0x500225||_0x500225['left']==_0x500225['right'])return _0x500225;let _0x27e3cb=this['state']['doc']['lineAt'](_0x3102c3),_0x30bda4=this['bidiSpans'](_0x27e3cb);return flattenRect(_0x500225,_0x30bda4[BidiSpan['find'](_0x30bda4,_0x3102c3-_0x27e3cb['from'],-0x1,_0xaaf44d)]['dir']==Direction['LTR']==_0xaaf44d>0x0);}['coordsForChar'](_0xfa5adf){return this['readMeasured'](),this['docView']['coordsForChar'](_0xfa5adf);}get['defaultCharacterWidth'](){return this['viewState']['heightOracle']['charWidth'];}get['defaultLineHeight'](){return this['viewState']['heightOracle']['lineHeight'];}get['textDirection'](){return this['viewState']['defaultTextDirection'];}['textDirectionAt'](_0x31875e){return!this['state']['facet'](perLineTextDirection)||_0x31875e<this['viewport']['from']||_0x31875e>this['viewport']['to']?this['textDirection']:(this['readMeasured'](),this['docView']['textDirectionAt'](_0x31875e));}get['lineWrapping'](){return this['viewState']['heightOracle']['lineWrapping'];}['bidiSpans'](_0x54a9e2){if(_0x54a9e2['length']>MaxBidiLine)return trivialOrder(_0x54a9e2['length']);let _0xf1fd53,_0x12ce0a=this['textDirectionAt'](_0x54a9e2['from']);for(let _0x452409 of this['bidiCache'])if(_0x452409['from']==_0x54a9e2['from']&&_0x452409['dir']==_0x12ce0a&&(_0x452409['fresh']||isolatesEq(_0x452409['isolates'],_0xf1fd53=getIsolatedRanges(this,_0x54a9e2))))return _0x452409['order'];_0xf1fd53||(_0xf1fd53=getIsolatedRanges(this,_0x54a9e2));let _0x32a14c=computeOrder(_0x54a9e2['text'],_0x12ce0a,_0xf1fd53);return this['bidiCache']['push'](new CachedOrder(_0x54a9e2['from'],_0x54a9e2['to'],_0x12ce0a,_0xf1fd53,!0x0,_0x32a14c)),_0x32a14c;}get['hasFocus'](){var _0x5d7be4;return(this['dom']['ownerDocument']['hasFocus']()||browser['safari']&&(null===(_0x5d7be4=this['inputState'])||void 0x0===_0x5d7be4?void 0x0:_0x5d7be4['lastContextMenu'])>Date['now']()-0x7530)&&this['root']['activeElement']==this['contentDOM'];}['focus'](){this['observer']['ignore'](()=>{focusPreventScroll(this['contentDOM']),this['docView']['updateSelection']();});}['setRoot'](_0x3f4c19){this['_root']!=_0x3f4c19&&(this['_root']=_0x3f4c19,this['observer']['setWindow']((0x9==_0x3f4c19['nodeType']?_0x3f4c19:_0x3f4c19['ownerDocument'])['defaultView']||window),this['mountStyles']());}['destroy'](){this['root']['activeElement']==this['contentDOM']&&this['contentDOM']['blur']();for(let _0x519167 of this['plugins'])_0x519167['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'](_0x4780d1,_0x5a6479={}){return scrollIntoView$1['of'](new ScrollTarget('number'==typeof _0x4780d1?EditorSelection['cursor'](_0x4780d1):_0x4780d1,_0x5a6479['y'],_0x5a6479['x'],_0x5a6479['yMargin'],_0x5a6479['xMargin']));}['scrollSnapshot'](){let {scrollTop:_0x4ae605,scrollLeft:_0x9bc3a7}=this['scrollDOM'],_0x3e88c0=this['viewState']['scrollAnchorAt'](_0x4ae605);return scrollIntoView$1['of'](new ScrollTarget(EditorSelection['cursor'](_0x3e88c0['from']),'start','start',_0x3e88c0['top']-_0x4ae605,_0x9bc3a7,!0x0));}['setTabFocusMode'](_0x15041a){null==_0x15041a?this['inputState']['tabFocusMode']=this['inputState']['tabFocusMode']<0x0?0x0:-0x1:'boolean'==typeof _0x15041a?this['inputState']['tabFocusMode']=_0x15041a?0x0:-0x1:0x0!=this['inputState']['tabFocusMode']&&(this['inputState']['tabFocusMode']=Date['now']()+_0x15041a);}static['domEventHandlers'](_0x59d546){return ViewPlugin['define'](()=>({}),{'eventHandlers':_0x59d546});}static['domEventObservers'](_0x46f285){return ViewPlugin['define'](()=>({}),{'eventObservers':_0x46f285});}static['theme'](_0x3a28a3,_0x402abf){let _0x5c994b=StyleModule['newName'](),_0x445c03=[theme['of'](_0x5c994b),styleModule['of'](buildTheme('.'+_0x5c994b,_0x3a28a3))];return _0x402abf&&_0x402abf['dark']&&_0x445c03['push'](darkTheme['of'](!0x0)),_0x445c03;}static['baseTheme'](_0x55098b){return Prec['lowest'](styleModule['of'](buildTheme('.'+baseThemeID,_0x55098b,lightDarkIDs)));}static['findFromDOM'](_0x884210){var _0x4355f1;let _0x3d0c0d=_0x884210['querySelector']('.cm-content'),_0x3fd173=_0x3d0c0d&&ContentView['get'](_0x3d0c0d)||ContentView['get'](_0x884210);return(null===(_0x4355f1=null==_0x3fd173?void 0x0:_0x3fd173['rootView'])||void 0x0===_0x4355f1?void 0x0:_0x4355f1['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':_0x2766a9=>_0x2766a9['length']?_0x2766a9[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(_0x29c126,_0x525729,_0x1c0118,_0x29dc18,_0x42d57e,_0x49ea86){this['from']=_0x29c126,this['to']=_0x525729,this['dir']=_0x1c0118,this['isolates']=_0x29dc18,this['fresh']=_0x42d57e,this['order']=_0x49ea86;}static['update'](_0x1ccd75,_0x52db27){if(_0x52db27['empty']&&!_0x1ccd75['some'](_0x1e2088=>_0x1e2088['fresh']))return _0x1ccd75;let _0xeb7c0b=[],_0x589e78=_0x1ccd75['length']?_0x1ccd75[_0x1ccd75['length']-0x1]['dir']:Direction['LTR'];for(let _0x216021=Math['max'](0x0,_0x1ccd75['length']-0xa);_0x216021<_0x1ccd75['length'];_0x216021++){let _0x4e8971=_0x1ccd75[_0x216021];_0x4e8971['dir']!=_0x589e78||_0x52db27['touchesRange'](_0x4e8971['from'],_0x4e8971['to'])||_0xeb7c0b['push'](new CachedOrder(_0x52db27['mapPos'](_0x4e8971['from'],0x1),_0x52db27['mapPos'](_0x4e8971['to'],-0x1),_0x4e8971['dir'],_0x4e8971['isolates'],!0x1,_0x4e8971['order']));}return _0xeb7c0b;}}function attrsFromFacet(_0x2a9668,_0x55044a,_0x4503c7){for(let _0x37a504=_0x2a9668['state']['facet'](_0x55044a),_0x1df8e9=_0x37a504['length']-0x1;_0x1df8e9>=0x0;_0x1df8e9--){let _0x2c97f2=_0x37a504[_0x1df8e9],_0x4f0554='function'==typeof _0x2c97f2?_0x2c97f2(_0x2a9668):_0x2c97f2;_0x4f0554&&combineAttrs(_0x4f0554,_0x4503c7);}return _0x4503c7;}const currentPlatform=browser['mac']?'mac':browser['windows']?'win':browser['linux']?'linux':'key';function normalizeKeyName(_0x4d5dbd,_0x3ebf83){const _0x4233c0=_0x4d5dbd['split'](/-(?!$)/);let _0x4da4f9,_0x37c3fb,_0x4afb0b,_0x51284f,_0x1a3341=_0x4233c0[_0x4233c0['length']-0x1];'Space'==_0x1a3341&&(_0x1a3341='\x20');for(let _0x2c1c2b=0x0;_0x2c1c2b<_0x4233c0['length']-0x1;++_0x2c1c2b){const _0x45d803=_0x4233c0[_0x2c1c2b];if(/^(cmd|meta|m)$/i['test'](_0x45d803))_0x51284f=!0x0;else{if(/^a(lt)?$/i['test'](_0x45d803))_0x4da4f9=!0x0;else{if(/^(c|ctrl|control)$/i['test'](_0x45d803))_0x37c3fb=!0x0;else{if(/^s(hift)?$/i['test'](_0x45d803))_0x4afb0b=!0x0;else{if(!/^mod$/i['test'](_0x45d803))throw new Error('Unrecognized\x20modifier\x20name:\x20'+_0x45d803);'mac'==_0x3ebf83?_0x51284f=!0x0:_0x37c3fb=!0x0;}}}}}return _0x4da4f9&&(_0x1a3341='Alt-'+_0x1a3341),_0x37c3fb&&(_0x1a3341='Ctrl-'+_0x1a3341),_0x51284f&&(_0x1a3341='Meta-'+_0x1a3341),_0x4afb0b&&(_0x1a3341='Shift-'+_0x1a3341),_0x1a3341;}function modifiers(_0x37a84c,_0x3fb24e,_0x1b2ded){return _0x3fb24e['altKey']&&(_0x37a84c='Alt-'+_0x37a84c),_0x3fb24e['ctrlKey']&&(_0x37a84c='Ctrl-'+_0x37a84c),_0x3fb24e['metaKey']&&(_0x37a84c='Meta-'+_0x37a84c),!0x1!==_0x1b2ded&&_0x3fb24e['shiftKey']&&(_0x37a84c='Shift-'+_0x37a84c),_0x37a84c;}const handleKeyEvents=Prec['default'](EditorView['domEventHandlers']({'keydown':(_0x3ddd8a,_0xaba92b)=>runHandlers(getKeymap(_0xaba92b['state']),_0x3ddd8a,_0xaba92b,'editor')})),keymap=Facet['define']({'enables':handleKeyEvents}),Keymaps=new WeakMap();function getKeymap(_0x56755d){let _0x166551=_0x56755d['facet'](keymap),_0x2992fc=Keymaps['get'](_0x166551);return _0x2992fc||Keymaps['set'](_0x166551,_0x2992fc=buildKeymap(_0x166551['reduce']((_0x543282,_0x408de3)=>_0x543282['concat'](_0x408de3),[]))),_0x2992fc;}let storedPrefix=null;const PrefixTimeout=0xfa0;function buildKeymap(_0x2cf8dd,_0x3992c5=currentPlatform){let _0x2ca8c1=Object['create'](null),_0x30f574=Object['create'](null),_0x1924b1=(_0x46b7d9,_0x511d25)=>{let _0x37afc8=_0x30f574[_0x46b7d9];if(null==_0x37afc8)_0x30f574[_0x46b7d9]=_0x511d25;else{if(_0x37afc8!=_0x511d25)throw new Error('Key\x20binding\x20'+_0x46b7d9+'\x20is\x20used\x20both\x20as\x20a\x20regular\x20binding\x20and\x20as\x20a\x20multi-stroke\x20prefix');}},_0x41f968=(_0x5bff34,_0x5dcf2d,_0x4bebc4,_0x57b54e,_0x15a7c4)=>{var _0x578dd8,_0x3822fd;let _0x32aee7=_0x2ca8c1[_0x5bff34]||(_0x2ca8c1[_0x5bff34]=Object['create'](null)),_0x129e3c=_0x5dcf2d['split'](/ (?!$)/)['map'](_0x441b14=>normalizeKeyName(_0x441b14,_0x3992c5));for(let _0x370bf5=0x1;_0x370bf5<_0x129e3c['length'];_0x370bf5++){let _0x434418=_0x129e3c['slice'](0x0,_0x370bf5)['join']('\x20');_0x1924b1(_0x434418,!0x0),_0x32aee7[_0x434418]||(_0x32aee7[_0x434418]={'preventDefault':!0x0,'stopPropagation':!0x1,'run':[_0x32d7f3=>{let _0x102ae5=storedPrefix={'view':_0x32d7f3,'prefix':_0x434418,'scope':_0x5bff34};return setTimeout(()=>{storedPrefix==_0x102ae5&&(storedPrefix=null);},PrefixTimeout),!0x0;}]});}let _0x492e32=_0x129e3c['join']('\x20');_0x1924b1(_0x492e32,!0x1);let _0x58fa2c=_0x32aee7[_0x492e32]||(_0x32aee7[_0x492e32]={'preventDefault':!0x1,'stopPropagation':!0x1,'run':(null===(_0x3822fd=null===(_0x578dd8=_0x32aee7['_any'])||void 0x0===_0x578dd8?void 0x0:_0x578dd8['run'])||void 0x0===_0x3822fd?void 0x0:_0x3822fd['slice']())||[]});_0x4bebc4&&_0x58fa2c['run']['push'](_0x4bebc4),_0x57b54e&&(_0x58fa2c['preventDefault']=!0x0),_0x15a7c4&&(_0x58fa2c['stopPropagation']=!0x0);};for(let _0x90cb56 of _0x2cf8dd){let _0x31dd07=_0x90cb56['scope']?_0x90cb56['scope']['split']('\x20'):['editor'];if(_0x90cb56['any'])for(let _0x543b89 of _0x31dd07){let _0x475b1a=_0x2ca8c1[_0x543b89]||(_0x2ca8c1[_0x543b89]=Object['create'](null));_0x475b1a['_any']||(_0x475b1a['_any']={'preventDefault':!0x1,'stopPropagation':!0x1,'run':[]});let {any:_0x168a76}=_0x90cb56;for(let _0x620b5b in _0x475b1a)_0x475b1a[_0x620b5b]['run']['push'](_0xdac8ea=>_0x168a76(_0xdac8ea,currentKeyEvent));}let _0x5e00a2=_0x90cb56[_0x3992c5]||_0x90cb56['key'];if(_0x5e00a2){for(let _0x230a03 of _0x31dd07)_0x41f968(_0x230a03,_0x5e00a2,_0x90cb56['run'],_0x90cb56['preventDefault'],_0x90cb56['stopPropagation']),_0x90cb56['shift']&&_0x41f968(_0x230a03,'Shift-'+_0x5e00a2,_0x90cb56['shift'],_0x90cb56['preventDefault'],_0x90cb56['stopPropagation']);}}return _0x2ca8c1;}let currentKeyEvent=null;function runHandlers(_0x355bba,_0x5cb887,_0x11e032,_0xd8d237){currentKeyEvent=_0x5cb887;let _0x36b35a=keyName(_0x5cb887),_0x5f32c1=codePointSize(codePointAt(_0x36b35a,0x0))==_0x36b35a['length']&&'\x20'!=_0x36b35a,_0x575019='',_0x2eff3e=!0x1,_0x17e048=!0x1,_0x585820=!0x1;storedPrefix&&storedPrefix['view']==_0x11e032&&storedPrefix['scope']==_0xd8d237&&(_0x575019=storedPrefix['prefix']+'\x20',modifierCodes['indexOf'](_0x5cb887['keyCode'])<0x0&&(_0x17e048=!0x0,storedPrefix=null));let _0x54350e,_0x98453a,_0x2c39b8=new Set(),_0x411a39=_0x1c20a9=>{if(_0x1c20a9){for(let _0x20655c of _0x1c20a9['run'])if(!_0x2c39b8['has'](_0x20655c)&&(_0x2c39b8['add'](_0x20655c),_0x20655c(_0x11e032)))return _0x1c20a9['stopPropagation']&&(_0x585820=!0x0),!0x0;_0x1c20a9['preventDefault']&&(_0x1c20a9['stopPropagation']&&(_0x585820=!0x0),_0x17e048=!0x0);}return!0x1;},_0x3d08ee=_0x355bba[_0xd8d237];return _0x3d08ee&&(_0x411a39(_0x3d08ee[_0x575019+modifiers(_0x36b35a,_0x5cb887,!_0x5f32c1)])?_0x2eff3e=!0x0:!_0x5f32c1||!(_0x5cb887['altKey']||_0x5cb887['metaKey']||_0x5cb887['ctrlKey'])||browser['windows']&&_0x5cb887['ctrlKey']&&_0x5cb887['altKey']||browser['mac']&&_0x5cb887['altKey']&&!_0x5cb887['ctrlKey']&&!_0x5cb887['metaKey']||!(_0x54350e=base$2[_0x5cb887['keyCode']])||_0x54350e==_0x36b35a?_0x5f32c1&&_0x5cb887['shiftKey']&&_0x411a39(_0x3d08ee[_0x575019+modifiers(_0x36b35a,_0x5cb887,!0x0)])&&(_0x2eff3e=!0x0):(_0x411a39(_0x3d08ee[_0x575019+modifiers(_0x54350e,_0x5cb887,!0x0)])||_0x5cb887['shiftKey']&&(_0x98453a=shift[_0x5cb887['keyCode']])!=_0x36b35a&&_0x98453a!=_0x54350e&&_0x411a39(_0x3d08ee[_0x575019+modifiers(_0x98453a,_0x5cb887,!0x1)]))&&(_0x2eff3e=!0x0),!_0x2eff3e&&_0x411a39(_0x3d08ee['_any'])&&(_0x2eff3e=!0x0)),_0x17e048&&(_0x2eff3e=!0x0),_0x2eff3e&&_0x585820&&_0x5cb887['stopPropagation'](),currentKeyEvent=null,_0x2eff3e;}class RectangleMarker{constructor(_0xc2699f,_0x36497f,_0x1f4495,_0x16356f,_0x2304ac){this['className']=_0xc2699f,this['left']=_0x36497f,this['top']=_0x1f4495,this['width']=_0x16356f,this['height']=_0x2304ac;}['draw'](){let _0x22cd0f=document['createElement']('div');return _0x22cd0f['className']=this['className'],this['adjust'](_0x22cd0f),_0x22cd0f;}['update'](_0x49e63b,_0x3296cb){return _0x3296cb['className']==this['className']&&(this['adjust'](_0x49e63b),!0x0);}['adjust'](_0x325157){_0x325157['style']['left']=this['left']+'px',_0x325157['style']['top']=this['top']+'px',null!=this['width']&&(_0x325157['style']['width']=this['width']+'px'),_0x325157['style']['height']=this['height']+'px';}['eq'](_0xd8e4a6){return this['left']==_0xd8e4a6['left']&&this['top']==_0xd8e4a6['top']&&this['width']==_0xd8e4a6['width']&&this['height']==_0xd8e4a6['height']&&this['className']==_0xd8e4a6['className'];}static['forRange'](_0x4c8610,_0x5c57be,_0x3d1c1d){if(_0x3d1c1d['empty']){let _0x3edc18=_0x4c8610['coordsAtPos'](_0x3d1c1d['head'],_0x3d1c1d['assoc']||0x1);if(!_0x3edc18)return[];let _0x2171ef=getBase(_0x4c8610);return[new RectangleMarker(_0x5c57be,_0x3edc18['left']-_0x2171ef['left'],_0x3edc18['top']-_0x2171ef['top'],null,_0x3edc18['bottom']-_0x3edc18['top'])];}return rectanglesForRange(_0x4c8610,_0x5c57be,_0x3d1c1d);}}function getBase(_0x4c849f){let _0x582c58=_0x4c849f['scrollDOM']['getBoundingClientRect']();return{'left':(_0x4c849f['textDirection']==Direction['LTR']?_0x582c58['left']:_0x582c58['right']-_0x4c849f['scrollDOM']['clientWidth']*_0x4c849f['scaleX'])-_0x4c849f['scrollDOM']['scrollLeft']*_0x4c849f['scaleX'],'top':_0x582c58['top']-_0x4c849f['scrollDOM']['scrollTop']*_0x4c849f['scaleY']};}function wrappedLine(_0x550a6c,_0x3a4fa9,_0x4af108,_0xdbb56d){let _0x2a8614=_0x550a6c['coordsAtPos'](_0x3a4fa9,0x2*_0x4af108);if(!_0x2a8614)return _0xdbb56d;let _0x4a6859=_0x550a6c['dom']['getBoundingClientRect'](),_0x1c981a=(_0x2a8614['top']+_0x2a8614['bottom'])/0x2,_0x1afa38=_0x550a6c['posAtCoords']({'x':_0x4a6859['left']+0x1,'y':_0x1c981a}),_0x3bf068=_0x550a6c['posAtCoords']({'x':_0x4a6859['right']-0x1,'y':_0x1c981a});return null==_0x1afa38||null==_0x3bf068?_0xdbb56d:{'from':Math['max'](_0xdbb56d['from'],Math['min'](_0x1afa38,_0x3bf068)),'to':Math['min'](_0xdbb56d['to'],Math['max'](_0x1afa38,_0x3bf068))};}function rectanglesForRange(_0x2d1086,_0x4736f8,_0x26e089){if(_0x26e089['to']<=_0x2d1086['viewport']['from']||_0x26e089['from']>=_0x2d1086['viewport']['to'])return[];let _0x15ca64=Math['max'](_0x26e089['from'],_0x2d1086['viewport']['from']),_0x1f79f4=Math['min'](_0x26e089['to'],_0x2d1086['viewport']['to']),_0x13a229=_0x2d1086['textDirection']==Direction['LTR'],_0x12cf38=_0x2d1086['contentDOM'],_0x21a09b=_0x12cf38['getBoundingClientRect'](),_0x96e809=getBase(_0x2d1086),_0x521cce=_0x12cf38['querySelector']('.cm-line'),_0x2d03a1=_0x521cce&&window['getComputedStyle'](_0x521cce),_0x4e8a85=_0x21a09b['left']+(_0x2d03a1?parseInt(_0x2d03a1['paddingLeft'])+Math['min'](0x0,parseInt(_0x2d03a1['textIndent'])):0x0),_0xbd9261=_0x21a09b['right']-(_0x2d03a1?parseInt(_0x2d03a1['paddingRight']):0x0),_0x4118ef=blockAt(_0x2d1086,_0x15ca64,0x1),_0x312bc5=blockAt(_0x2d1086,_0x1f79f4,-0x1),_0x474a17=_0x4118ef['type']==BlockType['Text']?_0x4118ef:null,_0x493b31=_0x312bc5['type']==BlockType['Text']?_0x312bc5:null;if(_0x474a17&&(_0x2d1086['lineWrapping']||_0x4118ef['widgetLineBreaks'])&&(_0x474a17=wrappedLine(_0x2d1086,_0x15ca64,0x1,_0x474a17)),_0x493b31&&(_0x2d1086['lineWrapping']||_0x312bc5['widgetLineBreaks'])&&(_0x493b31=wrappedLine(_0x2d1086,_0x1f79f4,-0x1,_0x493b31)),_0x474a17&&_0x493b31&&_0x474a17['from']==_0x493b31['from']&&_0x474a17['to']==_0x493b31['to'])return _0x1c4808(_0x1cc852(_0x26e089['from'],_0x26e089['to'],_0x474a17));{let _0x5c8e50=_0x474a17?_0x1cc852(_0x26e089['from'],null,_0x474a17):_0x1bf5ad(_0x4118ef,!0x1),_0x7f44d=_0x493b31?_0x1cc852(null,_0x26e089['to'],_0x493b31):_0x1bf5ad(_0x312bc5,!0x0),_0x38ccb2=[];return(_0x474a17||_0x4118ef)['to']<(_0x493b31||_0x312bc5)['from']-(_0x474a17&&_0x493b31?0x1:0x0)||_0x4118ef['widgetLineBreaks']>0x1&&_0x5c8e50['bottom']+_0x2d1086['defaultLineHeight']/0x2<_0x7f44d['top']?_0x38ccb2['push'](_0x4f611e(_0x4e8a85,_0x5c8e50['bottom'],_0xbd9261,_0x7f44d['top'])):_0x5c8e50['bottom']<_0x7f44d['top']&&_0x2d1086['elementAtHeight']((_0x5c8e50['bottom']+_0x7f44d['top'])/0x2)['type']==BlockType['Text']&&(_0x5c8e50['bottom']=_0x7f44d['top']=(_0x5c8e50['bottom']+_0x7f44d['top'])/0x2),_0x1c4808(_0x5c8e50)['concat'](_0x38ccb2)['concat'](_0x1c4808(_0x7f44d));}function _0x4f611e(_0x26692f,_0x522c46,_0x2ec65d,_0xeed855){return new RectangleMarker(_0x4736f8,_0x26692f-_0x96e809['left'],_0x522c46-_0x96e809['top'],_0x2ec65d-_0x26692f,_0xeed855-_0x522c46);}function _0x1c4808({top:_0x5bbc5c,bottom:_0x18cdf3,horizontal:_0x3cd537}){let _0x3b9b86=[];for(let _0x29cd8a=0x0;_0x29cd8a<_0x3cd537['length'];_0x29cd8a+=0x2)_0x3b9b86['push'](_0x4f611e(_0x3cd537[_0x29cd8a],_0x5bbc5c,_0x3cd537[_0x29cd8a+0x1],_0x18cdf3));return _0x3b9b86;}function _0x1cc852(_0x428a31,_0xfd4391,_0x253a99){let _0x22ff41=0x3b9aca00,_0x51bb78=-0x3b9aca00,_0x4bf583=[];function _0x3b17ca(_0x233b29,_0x35b13f,_0x42125d,_0x3d7459,_0x1f125c){let _0xebfa6d=_0x2d1086['coordsAtPos'](_0x233b29,_0x233b29==_0x253a99['to']?-0x2:0x2),_0x1dfd23=_0x2d1086['coordsAtPos'](_0x42125d,_0x42125d==_0x253a99['from']?0x2:-0x2);_0xebfa6d&&_0x1dfd23&&(_0x22ff41=Math['min'](_0xebfa6d['top'],_0x1dfd23['top'],_0x22ff41),_0x51bb78=Math['max'](_0xebfa6d['bottom'],_0x1dfd23['bottom'],_0x51bb78),_0x1f125c==Direction['LTR']?_0x4bf583['push'](_0x13a229&&_0x35b13f?_0x4e8a85:_0xebfa6d['left'],_0x13a229&&_0x3d7459?_0xbd9261:_0x1dfd23['right']):_0x4bf583['push'](!_0x13a229&&_0x3d7459?_0x4e8a85:_0x1dfd23['left'],!_0x13a229&&_0x35b13f?_0xbd9261:_0xebfa6d['right']));}let _0x1baf9c=null!=_0x428a31?_0x428a31:_0x253a99['from'],_0xf4b787=null!=_0xfd4391?_0xfd4391:_0x253a99['to'];for(let _0x47b610 of _0x2d1086['visibleRanges'])if(_0x47b610['to']>_0x1baf9c&&_0x47b610['from']<_0xf4b787)for(let _0x101dd6=Math['max'](_0x47b610['from'],_0x1baf9c),_0xc8b2dc=Math['min'](_0x47b610['to'],_0xf4b787);;){let _0x25affd=_0x2d1086['state']['doc']['lineAt'](_0x101dd6);for(let _0x2c9f0d of _0x2d1086['bidiSpans'](_0x25affd)){let _0x5e1c0f=_0x2c9f0d['from']+_0x25affd['from'],_0x59cb35=_0x2c9f0d['to']+_0x25affd['from'];if(_0x5e1c0f>=_0xc8b2dc)break;_0x59cb35>_0x101dd6&&_0x3b17ca(Math['max'](_0x5e1c0f,_0x101dd6),null==_0x428a31&&_0x5e1c0f<=_0x1baf9c,Math['min'](_0x59cb35,_0xc8b2dc),null==_0xfd4391&&_0x59cb35>=_0xf4b787,_0x2c9f0d['dir']);}if(_0x101dd6=_0x25affd['to']+0x1,_0x101dd6>=_0xc8b2dc)break;}return 0x0==_0x4bf583['length']&&_0x3b17ca(_0x1baf9c,null==_0x428a31,_0xf4b787,null==_0xfd4391,_0x2d1086['textDirection']),{'top':_0x22ff41,'bottom':_0x51bb78,'horizontal':_0x4bf583};}function _0x1bf5ad(_0x1595af,_0x29856f){let _0x3a810f=_0x21a09b['top']+(_0x29856f?_0x1595af['top']:_0x1595af['bottom']);return{'top':_0x3a810f,'bottom':_0x3a810f,'horizontal':[]};}}function sameMarker(_0x19e52a,_0x55f38f){return _0x19e52a['constructor']==_0x55f38f['constructor']&&_0x19e52a['eq'](_0x55f38f);}class LayerView{constructor(_0xf7d05b,_0x52fe06){this['view']=_0xf7d05b,this['layer']=_0x52fe06,this['drawn']=[],this['scaleX']=0x1,this['scaleY']=0x1,this['measureReq']={'read':this['measure']['bind'](this),'write':this['draw']['bind'](this)},this['dom']=_0xf7d05b['scrollDOM']['appendChild'](document['createElement']('div')),this['dom']['classList']['add']('cm-layer'),_0x52fe06['above']&&this['dom']['classList']['add']('cm-layer-above'),_0x52fe06['class']&&this['dom']['classList']['add'](_0x52fe06['class']),this['scale'](),this['dom']['setAttribute']('aria-hidden','true'),this['setOrder'](_0xf7d05b['state']),_0xf7d05b['requestMeasure'](this['measureReq']),_0x52fe06['mount']&&_0x52fe06['mount'](this['dom'],_0xf7d05b);}['update'](_0x1e5122){_0x1e5122['startState']['facet'](layerOrder)!=_0x1e5122['state']['facet'](layerOrder)&&this['setOrder'](_0x1e5122['state']),(this['layer']['update'](_0x1e5122,this['dom'])||_0x1e5122['geometryChanged'])&&(this['scale'](),_0x1e5122['view']['requestMeasure'](this['measureReq']));}['docViewUpdate'](_0x228172){!0x1!==this['layer']['updateOnDocViewUpdate']&&_0x228172['requestMeasure'](this['measureReq']);}['setOrder'](_0xac6f70){let _0x57707f=0x0,_0x2a3950=_0xac6f70['facet'](layerOrder);for(;_0x57707f<_0x2a3950['length']&&_0x2a3950[_0x57707f]!=this['layer'];)_0x57707f++;this['dom']['style']['zIndex']=String((this['layer']['above']?0x96:-0x1)-_0x57707f);}['measure'](){return this['layer']['markers'](this['view']);}['scale'](){let {scaleX:_0x5a53d2,scaleY:_0xa0546e}=this['view'];_0x5a53d2==this['scaleX']&&_0xa0546e==this['scaleY']||(this['scaleX']=_0x5a53d2,this['scaleY']=_0xa0546e,this['dom']['style']['transform']='scale('+0x1/_0x5a53d2+',\x20'+0x1/_0xa0546e+')');}['draw'](_0x3291ae){if(_0x3291ae['length']!=this['drawn']['length']||_0x3291ae['some']((_0x26d93e,_0x45838c)=>!sameMarker(_0x26d93e,this['drawn'][_0x45838c]))){let _0x3da9f7=this['dom']['firstChild'],_0x3a2e1b=0x0;for(let _0x1924f8 of _0x3291ae)_0x1924f8['update']&&_0x3da9f7&&_0x1924f8['constructor']&&this['drawn'][_0x3a2e1b]['constructor']&&_0x1924f8['update'](_0x3da9f7,this['drawn'][_0x3a2e1b])?(_0x3da9f7=_0x3da9f7['nextSibling'],_0x3a2e1b++):this['dom']['insertBefore'](_0x1924f8['draw'](),_0x3da9f7);for(;_0x3da9f7;){let _0x34212b=_0x3da9f7['nextSibling'];_0x3da9f7['remove'](),_0x3da9f7=_0x34212b;}this['drawn']=_0x3291ae,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(_0x4d92fe){return[ViewPlugin['define'](_0x5c30f4=>new LayerView(_0x5c30f4,_0x4d92fe)),layerOrder['of'](_0x4d92fe)];}const selectionConfig=Facet['define']({'combine':_0x3b2524=>combineConfig(_0x3b2524,{'cursorBlinkRate':0x4b0,'drawRangeCursor':!0x0},{'cursorBlinkRate':(_0x2072f4,_0x20b271)=>Math['min'](_0x2072f4,_0x20b271),'drawRangeCursor':(_0x39dd5b,_0xa384aa)=>_0x39dd5b||_0xa384aa})});function drawSelection(_0x3c6899={}){return[selectionConfig['of'](_0x3c6899),cursorLayer,selectionLayer,hideNativeSelection,nativeSelectionHidden['of'](!0x0)];}function configChanged(_0x52b0fd){return _0x52b0fd['startState']['facet'](selectionConfig)!=_0x52b0fd['state']['facet'](selectionConfig);}const cursorLayer=layer({'above':!0x0,'markers'(_0x53d20e){let {state:_0x48db2d}=_0x53d20e,_0xa0cacc=_0x48db2d['facet'](selectionConfig),_0xf84477=[];for(let _0x6e5de1 of _0x48db2d['selection']['ranges']){let _0x51b492=_0x6e5de1==_0x48db2d['selection']['main'];if(_0x6e5de1['empty']||_0xa0cacc['drawRangeCursor']){let _0x3e18cc=_0x51b492?'cm-cursor\x20cm-cursor-primary':'cm-cursor\x20cm-cursor-secondary',_0xa26d30=_0x6e5de1['empty']?_0x6e5de1:EditorSelection['cursor'](_0x6e5de1['head'],_0x6e5de1['head']>_0x6e5de1['anchor']?-0x1:0x1);for(let _0x1499d5 of RectangleMarker['forRange'](_0x53d20e,_0x3e18cc,_0xa26d30))_0xf84477['push'](_0x1499d5);}}return _0xf84477;},'update'(_0x5e47c6,_0x5ee010){_0x5e47c6['transactions']['some'](_0x501b64=>_0x501b64['selection'])&&(_0x5ee010['style']['animationName']='cm-blink'==_0x5ee010['style']['animationName']?'cm-blink2':'cm-blink');let _0x255974=configChanged(_0x5e47c6);return _0x255974&&setBlinkRate(_0x5e47c6['state'],_0x5ee010),_0x5e47c6['docChanged']||_0x5e47c6['selectionSet']||_0x255974;},'mount'(_0x5f5594,_0x28f428){setBlinkRate(_0x28f428['state'],_0x5f5594);},'class':'cm-cursorLayer'});function setBlinkRate(_0x25dba7,_0x3a84f4){_0x3a84f4['style']['animationDuration']=_0x25dba7['facet'](selectionConfig)['cursorBlinkRate']+'ms';}const selectionLayer=layer({'above':!0x1,'markers':_0x4bd93a=>_0x4bd93a['state']['selection']['ranges']['map'](_0x2a4ab9=>_0x2a4ab9['empty']?[]:RectangleMarker['forRange'](_0x4bd93a,'cm-selectionBackground',_0x2a4ab9))['reduce']((_0xab216,_0x53e298)=>_0xab216['concat'](_0x53e298)),'update':(_0x12f5be,_0x3d8063)=>_0x12f5be['docChanged']||_0x12f5be['selectionSet']||_0x12f5be['viewportChanged']||configChanged(_0x12f5be),'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':(_0x16cd54,_0x11fc55)=>null==_0x16cd54?null:_0x11fc55['mapPos'](_0x16cd54)}),dropCursorPos=StateField['define']({'create':()=>null,'update':(_0x543f61,_0x3ae159)=>(null!=_0x543f61&&(_0x543f61=_0x3ae159['changes']['mapPos'](_0x543f61)),_0x3ae159['effects']['reduce']((_0x217507,_0x39c2e6)=>_0x39c2e6['is'](setDropCursorPos)?_0x39c2e6['value']:_0x217507,_0x543f61))}),drawDropCursor=ViewPlugin['fromClass'](class{constructor(_0x3f0bb5){this['view']=_0x3f0bb5,this['cursor']=null,this['measureReq']={'read':this['readPos']['bind'](this),'write':this['drawCursor']['bind'](this)};}['update'](_0x4c864b){var _0x4112b3;let _0x39bd76=_0x4c864b['state']['field'](dropCursorPos);null==_0x39bd76?null!=this['cursor']&&(null===(_0x4112b3=this['cursor'])||void 0x0===_0x4112b3||_0x4112b3['remove'](),this['cursor']=null):(this['cursor']||(this['cursor']=this['view']['scrollDOM']['appendChild'](document['createElement']('div')),this['cursor']['className']='cm-dropCursor'),(_0x4c864b['startState']['field'](dropCursorPos)!=_0x39bd76||_0x4c864b['docChanged']||_0x4c864b['geometryChanged'])&&this['view']['requestMeasure'](this['measureReq']));}['readPos'](){let {view:_0x19b03a}=this,_0x330f99=_0x19b03a['state']['field'](dropCursorPos),_0x1ae4da=null!=_0x330f99&&_0x19b03a['coordsAtPos'](_0x330f99);if(!_0x1ae4da)return null;let _0x4fbf19=_0x19b03a['scrollDOM']['getBoundingClientRect']();return{'left':_0x1ae4da['left']-_0x4fbf19['left']+_0x19b03a['scrollDOM']['scrollLeft']*_0x19b03a['scaleX'],'top':_0x1ae4da['top']-_0x4fbf19['top']+_0x19b03a['scrollDOM']['scrollTop']*_0x19b03a['scaleY'],'height':_0x1ae4da['bottom']-_0x1ae4da['top']};}['drawCursor'](_0x58d6e6){if(this['cursor']){let {scaleX:_0x3dfd1c,scaleY:_0x3fa1b8}=this['view'];_0x58d6e6?(this['cursor']['style']['left']=_0x58d6e6['left']/_0x3dfd1c+'px',this['cursor']['style']['top']=_0x58d6e6['top']/_0x3fa1b8+'px',this['cursor']['style']['height']=_0x58d6e6['height']/_0x3fa1b8+'px'):this['cursor']['style']['left']='-100000px';}}['destroy'](){this['cursor']&&this['cursor']['remove']();}['setDropPos'](_0x3d0aeb){this['view']['state']['field'](dropCursorPos)!=_0x3d0aeb&&this['view']['dispatch']({'effects':setDropCursorPos['of'](_0x3d0aeb)});}},{'eventObservers':{'dragover'(_0x5a0da6){this['setDropPos'](this['view']['posAtCoords']({'x':_0x5a0da6['clientX'],'y':_0x5a0da6['clientY']}));},'dragleave'(_0x135f63){_0x135f63['target']!=this['view']['contentDOM']&&this['view']['contentDOM']['contains'](_0x135f63['relatedTarget'])||this['setDropPos'](null);},'dragend'(){this['setDropPos'](null);},'drop'(){this['setDropPos'](null);}}});function dropCursor(){return[dropCursorPos,drawDropCursor];}function iterMatches(_0x59e7d5,_0x2d2fe3,_0x5078d3,_0x20cd6c,_0x3815f8){_0x2d2fe3['lastIndex']=0x0;for(let _0x1efce0,_0x1b8a54=_0x59e7d5['iterRange'](_0x5078d3,_0x20cd6c),_0x4c05bf=_0x5078d3;!_0x1b8a54['next']()['done'];_0x4c05bf+=_0x1b8a54['value']['length'])if(!_0x1b8a54['lineBreak']){for(;_0x1efce0=_0x2d2fe3['exec'](_0x1b8a54['value']);)_0x3815f8(_0x4c05bf+_0x1efce0['index'],_0x1efce0);}}function matchRanges(_0x454e81,_0x488c78){let _0x7bc56a=_0x454e81['visibleRanges'];if(0x1==_0x7bc56a['length']&&_0x7bc56a[0x0]['from']==_0x454e81['viewport']['from']&&_0x7bc56a[0x0]['to']==_0x454e81['viewport']['to'])return _0x7bc56a;let _0x2b12d0=[];for(let {from:_0x299c10,to:_0x32b5e2}of _0x7bc56a)_0x299c10=Math['max'](_0x454e81['state']['doc']['lineAt'](_0x299c10)['from'],_0x299c10-_0x488c78),_0x32b5e2=Math['min'](_0x454e81['state']['doc']['lineAt'](_0x32b5e2)['to'],_0x32b5e2+_0x488c78),_0x2b12d0['length']&&_0x2b12d0[_0x2b12d0['length']-0x1]['to']>=_0x299c10?_0x2b12d0[_0x2b12d0['length']-0x1]['to']=_0x32b5e2:_0x2b12d0['push']({'from':_0x299c10,'to':_0x32b5e2});return _0x2b12d0;}class MatchDecorator{constructor(_0x1cadf1){const {regexp:_0x516ee2,decoration:_0x50173d,decorate:_0x43e168,boundary:_0x380b32,maxLength:_0x2f15d8=0x3e8}=_0x1cadf1;if(!_0x516ee2['global'])throw new RangeError('The\x20regular\x20expression\x20given\x20to\x20MatchDecorator\x20should\x20have\x20its\x20\x27g\x27\x20flag\x20set');if(this['regexp']=_0x516ee2,_0x43e168)this['addMatch']=(_0xa2ada1,_0x2bfd53,_0xe0f656,_0x55e2b4)=>_0x43e168(_0x55e2b4,_0xe0f656,_0xe0f656+_0xa2ada1[0x0]['length'],_0xa2ada1,_0x2bfd53);else{if('function'==typeof _0x50173d)this['addMatch']=(_0x19a493,_0x1e2383,_0x363c88,_0x2dcebf)=>{let _0x169f39=_0x50173d(_0x19a493,_0x1e2383,_0x363c88);_0x169f39&&_0x2dcebf(_0x363c88,_0x363c88+_0x19a493[0x0]['length'],_0x169f39);};else{if(!_0x50173d)throw new RangeError('Either\x20\x27decorate\x27\x20or\x20\x27decoration\x27\x20should\x20be\x20provided\x20to\x20MatchDecorator');this['addMatch']=(_0xd2fe49,_0x5819bb,_0x5e6f57,_0x39b61a)=>_0x39b61a(_0x5e6f57,_0x5e6f57+_0xd2fe49[0x0]['length'],_0x50173d);}}this['boundary']=_0x380b32,this['maxLength']=_0x2f15d8;}['createDeco'](_0xaa45ea){let _0x4e80b2=new RangeSetBuilder(),_0x89a8c7=_0x4e80b2['add']['bind'](_0x4e80b2);for(let {from:_0x3d39e0,to:_0x4e3a53}of matchRanges(_0xaa45ea,this['maxLength']))iterMatches(_0xaa45ea['state']['doc'],this['regexp'],_0x3d39e0,_0x4e3a53,(_0x2d9c20,_0x1fcb54)=>this['addMatch'](_0x1fcb54,_0xaa45ea,_0x2d9c20,_0x89a8c7));return _0x4e80b2['finish']();}['updateDeco'](_0x8bd149,_0x32e06e){let _0x395da3=0x3b9aca00,_0x41af98=-0x1;return _0x8bd149['docChanged']&&_0x8bd149['changes']['iterChanges']((_0x4f74f1,_0x49e1f9,_0x47a080,_0x5cceb6)=>{_0x5cceb6>=_0x8bd149['view']['viewport']['from']&&_0x47a080<=_0x8bd149['view']['viewport']['to']&&(_0x395da3=Math['min'](_0x47a080,_0x395da3),_0x41af98=Math['max'](_0x5cceb6,_0x41af98));}),_0x8bd149['viewportMoved']||_0x41af98-_0x395da3>0x3e8?this['createDeco'](_0x8bd149['view']):_0x41af98>-0x1?this['updateRange'](_0x8bd149['view'],_0x32e06e['map'](_0x8bd149['changes']),_0x395da3,_0x41af98):_0x32e06e;}['updateRange'](_0x55038c,_0x395ca2,_0x3ae04b,_0x27b5c8){for(let _0x4b896c of _0x55038c['visibleRanges']){let _0x268c5d=Math['max'](_0x4b896c['from'],_0x3ae04b),_0x569e36=Math['min'](_0x4b896c['to'],_0x27b5c8);if(_0x569e36>=_0x268c5d){let _0x5550cf=_0x55038c['state']['doc']['lineAt'](_0x268c5d),_0x379190=_0x5550cf['to']<_0x569e36?_0x55038c['state']['doc']['lineAt'](_0x569e36):_0x5550cf,_0x3d3ba0=Math['max'](_0x4b896c['from'],_0x5550cf['from']),_0x3ec05a=Math['min'](_0x4b896c['to'],_0x379190['to']);if(this['boundary']){for(;_0x268c5d>_0x5550cf['from'];_0x268c5d--)if(this['boundary']['test'](_0x5550cf['text'][_0x268c5d-0x1-_0x5550cf['from']])){_0x3d3ba0=_0x268c5d;break;}for(;_0x569e36<_0x379190['to'];_0x569e36++)if(this['boundary']['test'](_0x379190['text'][_0x569e36-_0x379190['from']])){_0x3ec05a=_0x569e36;break;}}let _0x400166,_0x3ba131=[],_0x58c1e2=(_0x45ff66,_0x11cd42,_0x59f426)=>_0x3ba131['push'](_0x59f426['range'](_0x45ff66,_0x11cd42));if(_0x5550cf==_0x379190){for(this['regexp']['lastIndex']=_0x3d3ba0-_0x5550cf['from'];(_0x400166=this['regexp']['exec'](_0x5550cf['text']))&&_0x400166['index']<_0x3ec05a-_0x5550cf['from'];)this['addMatch'](_0x400166,_0x55038c,_0x400166['index']+_0x5550cf['from'],_0x58c1e2);}else iterMatches(_0x55038c['state']['doc'],this['regexp'],_0x3d3ba0,_0x3ec05a,(_0x7cc8a8,_0x24fecb)=>this['addMatch'](_0x24fecb,_0x55038c,_0x7cc8a8,_0x58c1e2));_0x395ca2=_0x395ca2['update']({'filterFrom':_0x3d3ba0,'filterTo':_0x3ec05a,'filter':(_0x13f131,_0xd25fcc)=>_0x13f131<_0x3d3ba0||_0xd25fcc>_0x3ec05a,'add':_0x3ba131});}}return _0x395ca2;}}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 _0x12d907;if(null==_supportsTabSize&&'undefined'!=typeof document&&document['body']){let _0x9309f6=document['body']['style'];_supportsTabSize=null!=(null!==(_0x12d907=_0x9309f6['tabSize'])&&void 0x0!==_0x12d907?_0x12d907:_0x9309f6['MozTabSize']);}return _supportsTabSize||!0x1;}const specialCharConfig=Facet['define']({'combine'(_0x2de118){let _0x4d3a3a=combineConfig(_0x2de118,{'render':null,'specialChars':Specials,'addSpecialChars':null});return(_0x4d3a3a['replaceTabs']=!supportsTabSize())&&(_0x4d3a3a['specialChars']=new RegExp('\x09|'+_0x4d3a3a['specialChars']['source'],UnicodeRegexpSupport)),_0x4d3a3a['addSpecialChars']&&(_0x4d3a3a['specialChars']=new RegExp(_0x4d3a3a['specialChars']['source']+'|'+_0x4d3a3a['addSpecialChars']['source'],UnicodeRegexpSupport)),_0x4d3a3a;}});function highlightSpecialChars(_0x386859={}){return[specialCharConfig['of'](_0x386859),specialCharPlugin()];}let _plugin=null;function specialCharPlugin(){return _plugin||(_plugin=ViewPlugin['fromClass'](class{constructor(_0x2907b9){this['view']=_0x2907b9,this['decorations']=Decoration['none'],this['decorationCache']=Object['create'](null),this['decorator']=this['makeDecorator'](_0x2907b9['state']['facet'](specialCharConfig)),this['decorations']=this['decorator']['createDeco'](_0x2907b9);}['makeDecorator'](_0x4bbfe9){return new MatchDecorator({'regexp':_0x4bbfe9['specialChars'],'decoration':(_0x19cb29,_0x4993ba,_0x245838)=>{let {doc:_0x5e6803}=_0x4993ba['state'],_0x5497f9=codePointAt(_0x19cb29[0x0],0x0);if(0x9==_0x5497f9){let _0x3c89b8=_0x5e6803['lineAt'](_0x245838),_0x19ee5d=_0x4993ba['state']['tabSize'],_0x10b6e6=countColumn(_0x3c89b8['text'],_0x19ee5d,_0x245838-_0x3c89b8['from']);return Decoration['replace']({'widget':new TabWidget((_0x19ee5d-_0x10b6e6%_0x19ee5d)*this['view']['defaultCharacterWidth']/this['view']['scaleX'])});}return this['decorationCache'][_0x5497f9]||(this['decorationCache'][_0x5497f9]=Decoration['replace']({'widget':new SpecialCharWidget(_0x4bbfe9,_0x5497f9)}));},'boundary':_0x4bbfe9['replaceTabs']?void 0x0:/[^]/});}['update'](_0x36fba0){let _0x209b7e=_0x36fba0['state']['facet'](specialCharConfig);_0x36fba0['startState']['facet'](specialCharConfig)!=_0x209b7e?(this['decorator']=this['makeDecorator'](_0x209b7e),this['decorations']=this['decorator']['createDeco'](_0x36fba0['view'])):this['decorations']=this['decorator']['updateDeco'](_0x36fba0,this['decorations']);}},{'decorations':_0x534c9c=>_0x534c9c['decorations']}));}const DefaultPlaceholder='•';function placeholder$1(_0x5aa5e3){return _0x5aa5e3>=0x20?DefaultPlaceholder:0xa==_0x5aa5e3?'␤':String['fromCharCode'](0x2400+_0x5aa5e3);}class SpecialCharWidget extends WidgetType{constructor(_0x2e0099,_0x2b4223){super(),this['options']=_0x2e0099,this['code']=_0x2b4223;}['eq'](_0x362197){return _0x362197['code']==this['code'];}['toDOM'](_0x186296){let _0x293281=placeholder$1(this['code']),_0x97cc8e=_0x186296['state']['phrase']('Control\x20character')+'\x20'+(Names[this['code']]||'0x'+this['code']['toString'](0x10)),_0x1d1c28=this['options']['render']&&this['options']['render'](this['code'],_0x97cc8e,_0x293281);if(_0x1d1c28)return _0x1d1c28;let _0x1778f4=document['createElement']('span');return _0x1778f4['textContent']=_0x293281,_0x1778f4['title']=_0x97cc8e,_0x1778f4['setAttribute']('aria-label',_0x97cc8e),_0x1778f4['className']='cm-specialChar',_0x1778f4;}['ignoreEvent'](){return!0x1;}}class TabWidget extends WidgetType{constructor(_0x57ff66){super(),this['width']=_0x57ff66;}['eq'](_0x15ae06){return _0x15ae06['width']==this['width'];}['toDOM'](){let _0x48b04e=document['createElement']('span');return _0x48b04e['textContent']='\x09',_0x48b04e['className']='cm-tab',_0x48b04e['style']['width']=this['width']+'px',_0x48b04e;}['ignoreEvent'](){return!0x1;}}function highlightActiveLine(){return activeLineHighlighter;}const lineDeco=Decoration['line']({'class':'cm-activeLine'}),activeLineHighlighter=ViewPlugin['fromClass'](class{constructor(_0x593e59){this['decorations']=this['getDeco'](_0x593e59);}['update'](_0x2d2493){(_0x2d2493['docChanged']||_0x2d2493['selectionSet'])&&(this['decorations']=this['getDeco'](_0x2d2493['view']));}['getDeco'](_0x48db6a){let _0x469e22=-0x1,_0x4697ec=[];for(let _0x456245 of _0x48db6a['state']['selection']['ranges']){let _0x38a783=_0x48db6a['lineBlockAt'](_0x456245['head']);_0x38a783['from']>_0x469e22&&(_0x4697ec['push'](lineDeco['range'](_0x38a783['from'])),_0x469e22=_0x38a783['from']);}return Decoration['set'](_0x4697ec);}},{'decorations':_0x19cf2d=>_0x19cf2d['decorations']}),MaxOff=0x7d0;function rectangleFor(_0x38b49f,_0x4e5832,_0x1a119a){let _0x13d94c=Math['min'](_0x4e5832['line'],_0x1a119a['line']),_0x2ee21f=Math['max'](_0x4e5832['line'],_0x1a119a['line']),_0x23e93f=[];if(_0x4e5832['off']>MaxOff||_0x1a119a['off']>MaxOff||_0x4e5832['col']<0x0||_0x1a119a['col']<0x0){let _0x42a922=Math['min'](_0x4e5832['off'],_0x1a119a['off']),_0x174069=Math['max'](_0x4e5832['off'],_0x1a119a['off']);for(let _0x49e9b1=_0x13d94c;_0x49e9b1<=_0x2ee21f;_0x49e9b1++){let _0x26ade3=_0x38b49f['doc']['line'](_0x49e9b1);_0x26ade3['length']<=_0x174069&&_0x23e93f['push'](EditorSelection['range'](_0x26ade3['from']+_0x42a922,_0x26ade3['to']+_0x174069));}}else{let _0x1c521b=Math['min'](_0x4e5832['col'],_0x1a119a['col']),_0x388476=Math['max'](_0x4e5832['col'],_0x1a119a['col']);for(let _0x441912=_0x13d94c;_0x441912<=_0x2ee21f;_0x441912++){let _0x4478ff=_0x38b49f['doc']['line'](_0x441912),_0x5c0101=findColumn(_0x4478ff['text'],_0x1c521b,_0x38b49f['tabSize'],!0x0);if(_0x5c0101<0x0)_0x23e93f['push'](EditorSelection['cursor'](_0x4478ff['to']));else{let _0x56f2e5=findColumn(_0x4478ff['text'],_0x388476,_0x38b49f['tabSize']);_0x23e93f['push'](EditorSelection['range'](_0x4478ff['from']+_0x5c0101,_0x4478ff['from']+_0x56f2e5));}}}return _0x23e93f;}function absoluteColumn(_0x11152d,_0x4f1fe1){let _0x5bbfd8=_0x11152d['coordsAtPos'](_0x11152d['viewport']['from']);return _0x5bbfd8?Math['round'](Math['abs']((_0x5bbfd8['left']-_0x4f1fe1)/_0x11152d['defaultCharacterWidth'])):-0x1;}function getPos(_0x57fdc5,_0x5a5a14){let _0xbb1686=_0x57fdc5['posAtCoords']({'x':_0x5a5a14['clientX'],'y':_0x5a5a14['clientY']},!0x1),_0x44d20d=_0x57fdc5['state']['doc']['lineAt'](_0xbb1686),_0x41b805=_0xbb1686-_0x44d20d['from'],_0xb8a8e4=_0x41b805>MaxOff?-0x1:_0x41b805==_0x44d20d['length']?absoluteColumn(_0x57fdc5,_0x5a5a14['clientX']):countColumn(_0x44d20d['text'],_0x57fdc5['state']['tabSize'],_0xbb1686-_0x44d20d['from']);return{'line':_0x44d20d['number'],'col':_0xb8a8e4,'off':_0x41b805};}function rectangleSelectionStyle(_0xb85feb,_0x235eb7){let _0xabf007=getPos(_0xb85feb,_0x235eb7),_0x4fdf01=_0xb85feb['state']['selection'];return _0xabf007?{'update'(_0x37920d){if(_0x37920d['docChanged']){let _0x2463d3=_0x37920d['changes']['mapPos'](_0x37920d['startState']['doc']['line'](_0xabf007['line'])['from']),_0x11322b=_0x37920d['state']['doc']['lineAt'](_0x2463d3);_0xabf007={'line':_0x11322b['number'],'col':_0xabf007['col'],'off':Math['min'](_0xabf007['off'],_0x11322b['length'])},_0x4fdf01=_0x4fdf01['map'](_0x37920d['changes']);}},'get'(_0x236b28,_0x14e64d,_0x5436cd){let _0x59df37=getPos(_0xb85feb,_0x236b28);if(!_0x59df37)return _0x4fdf01;let _0x49ea61=rectangleFor(_0xb85feb['state'],_0xabf007,_0x59df37);return _0x49ea61['length']?_0x5436cd?EditorSelection['create'](_0x49ea61['concat'](_0x4fdf01['ranges'])):EditorSelection['create'](_0x49ea61):_0x4fdf01;}}:null;}function rectangularSelection(_0x35eb0a){return EditorView['mouseSelectionStyle']['of']((_0x41fc78,_0x50715b)=>(_0x481415=>_0x481415['altKey']&&0x0==_0x481415['button'])(_0x50715b)?rectangleSelectionStyle(_0x41fc78,_0x50715b):null);}const keys={'Alt':[0x12,_0x4e7a65=>!!_0x4e7a65['altKey']],'Control':[0x11,_0x3220ce=>!!_0x3220ce['ctrlKey']],'Shift':[0x10,_0x18de26=>!!_0x18de26['shiftKey']],'Meta':[0x5b,_0xb907d0=>!!_0xb907d0['metaKey']]},showCrosshair={'style':'cursor:\x20crosshair'};function crosshairCursor(_0xc78572={}){let [_0x2bb5e4,_0x2b89a9]=keys[_0xc78572['key']||'Alt'],_0x5eaa13=ViewPlugin['fromClass'](class{constructor(_0x3743bb){this['view']=_0x3743bb,this['isDown']=!0x1;}['set'](_0x5790c9){this['isDown']!=_0x5790c9&&(this['isDown']=_0x5790c9,this['view']['update']([]));}},{'eventObservers':{'keydown'(_0x508657){this['set'](_0x508657['keyCode']==_0x2bb5e4||_0x2b89a9(_0x508657));},'keyup'(_0x49750c){_0x49750c['keyCode']!=_0x2bb5e4&&_0x2b89a9(_0x49750c)||this['set'](!0x1);},'mousemove'(_0x2c4f36){this['set'](_0x2b89a9(_0x2c4f36));}}});return[_0x5eaa13,EditorView['contentAttributes']['of'](_0x1aad31=>{var _0xcd0b32;return(null===(_0xcd0b32=_0x1aad31['plugin'](_0x5eaa13))||void 0x0===_0xcd0b32?void 0x0:_0xcd0b32['isDown'])?showCrosshair:null;})];}const Outside='-10000px';class TooltipViewManager{constructor(_0x2ec9ea,_0xc5315e,_0x133d59,_0x676ca5){this['facet']=_0xc5315e,this['createTooltipView']=_0x133d59,this['removeTooltipView']=_0x676ca5,this['input']=_0x2ec9ea['state']['facet'](_0xc5315e),this['tooltips']=this['input']['filter'](t=>t);let _0x13d25c=null;this['tooltipViews']=this['tooltips']['map'](t=>_0x13d25c=_0x133d59(t,_0x13d25c));}['update'](_0x34c468,_0x42ef24){var _0x5847ab;let _0x53cf88=_0x34c468['state']['facet'](this['facet']),_0x1a70f6=_0x53cf88['filter'](_0x5cdd9f=>_0x5cdd9f);if(_0x53cf88===this['input']){for(let t of this['tooltipViews'])t['update']&&t['update'](_0x34c468);return!0x1;}let _0x1c441b=[],_0x4f57f7=_0x42ef24?[]:null;for(let _0x3bd62f=0x0;_0x3bd62f<_0x1a70f6['length'];_0x3bd62f++){let _0x313997=_0x1a70f6[_0x3bd62f],_0x27b0a3=-0x1;if(_0x313997){for(let _0x4d242b=0x0;_0x4d242b<this['tooltips']['length'];_0x4d242b++){let _0x4c9a91=this['tooltips'][_0x4d242b];_0x4c9a91&&_0x4c9a91['create']==_0x313997['create']&&(_0x27b0a3=_0x4d242b);}if(_0x27b0a3<0x0)_0x1c441b[_0x3bd62f]=this['createTooltipView'](_0x313997,_0x3bd62f?_0x1c441b[_0x3bd62f-0x1]:null),_0x4f57f7&&(_0x4f57f7[_0x3bd62f]=!!_0x313997['above']);else{let _0x233689=_0x1c441b[_0x3bd62f]=this['tooltipViews'][_0x27b0a3];_0x4f57f7&&(_0x4f57f7[_0x3bd62f]=_0x42ef24[_0x27b0a3]),_0x233689['update']&&_0x233689['update'](_0x34c468);}}}for(let t of this['tooltipViews'])_0x1c441b['indexOf'](t)<0x0&&(this['removeTooltipView'](t),null===(_0x5847ab=t['destroy'])||void 0x0===_0x5847ab||_0x5847ab['call'](t));return _0x42ef24&&(_0x4f57f7['forEach']((_0x4616ec,_0x16846c)=>_0x42ef24[_0x16846c]=_0x4616ec),_0x42ef24['length']=_0x4f57f7['length']),this['input']=_0x53cf88,this['tooltips']=_0x1a70f6,this['tooltipViews']=_0x1c441b,!0x0;}}function windowSpace(_0x136d0c){let _0x167561=_0x136d0c['dom']['ownerDocument']['documentElement'];return{'top':0x0,'left':0x0,'bottom':_0x167561['clientHeight'],'right':_0x167561['clientWidth']};}const tooltipConfig=Facet['define']({'combine':_0x175e2b=>{var _0x3aa872,_0x289e88,_0x462b3b;return{'position':browser['ios']?'absolute':(null===(_0x3aa872=_0x175e2b['find'](_0x2f1fd7=>_0x2f1fd7['position']))||void 0x0===_0x3aa872?void 0x0:_0x3aa872['position'])||'fixed','parent':(null===(_0x289e88=_0x175e2b['find'](_0x3d512c=>_0x3d512c['parent']))||void 0x0===_0x289e88?void 0x0:_0x289e88['parent'])||null,'tooltipSpace':(null===(_0x462b3b=_0x175e2b['find'](_0x5d82ef=>_0x5d82ef['tooltipSpace']))||void 0x0===_0x462b3b?void 0x0:_0x462b3b['tooltipSpace'])||windowSpace};}}),knownHeight=new WeakMap(),tooltipPlugin=ViewPlugin['fromClass'](class{constructor(_0x46c889){this['view']=_0x46c889,this['above']=[],this['inView']=!0x0,this['madeAbsolute']=!0x1,this['lastTransaction']=0x0,this['measureTimeout']=-0x1;let _0x5b0ee3=_0x46c889['state']['facet'](tooltipConfig);this['position']=_0x5b0ee3['position'],this['parent']=_0x5b0ee3['parent'],this['classes']=_0x46c889['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(_0x46c889,showTooltip,(t,_0xb3609b)=>this['createTooltip'](t,_0xb3609b),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(_0x580152=>{Date['now']()>this['lastTransaction']-0x32&&_0x580152['length']>0x0&&_0x580152[_0x580152['length']-0x1]['intersectionRatio']<0x1&&this['measureSoon']();},{'threshold':[0x1]}):null,this['observeIntersection'](),_0x46c889['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 _0x1c4269 of this['manager']['tooltipViews'])this['intersectionObserver']['observe'](_0x1c4269['dom']);}}['measureSoon'](){this['measureTimeout']<0x0&&(this['measureTimeout']=setTimeout(()=>{this['measureTimeout']=-0x1,this['maybeMeasure']();},0x32));}['update'](_0x53f6f2){_0x53f6f2['transactions']['length']&&(this['lastTransaction']=Date['now']());let _0x72e4d2=this['manager']['update'](_0x53f6f2,this['above']);_0x72e4d2&&this['observeIntersection']();let _0x44ed88=_0x72e4d2||_0x53f6f2['geometryChanged'],_0x244832=_0x53f6f2['state']['facet'](tooltipConfig);if(_0x244832['position']!=this['position']&&!this['madeAbsolute']){this['position']=_0x244832['position'];for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']=this['position'];_0x44ed88=!0x0;}if(_0x244832['parent']!=this['parent']){this['parent']&&this['container']['remove'](),this['parent']=_0x244832['parent'],this['createContainer']();for(let t of this['manager']['tooltipViews'])this['container']['appendChild'](t['dom']);_0x44ed88=!0x0;}else this['parent']&&this['view']['themeClasses']!=this['classes']&&(this['classes']=this['container']['className']=this['view']['themeClasses']);_0x44ed88&&this['maybeMeasure']();}['createTooltip'](_0x361f42,_0x3b1da6){let _0x535ba9=_0x361f42['create'](this['view']),_0x325d0c=_0x3b1da6?_0x3b1da6['dom']:null;if(_0x535ba9['dom']['classList']['add']('cm-tooltip'),_0x361f42['arrow']&&!_0x535ba9['dom']['querySelector']('.cm-tooltip\x20>\x20.cm-tooltip-arrow')){let _0x5e87ee=document['createElement']('div');_0x5e87ee['className']='cm-tooltip-arrow',_0x535ba9['dom']['appendChild'](_0x5e87ee);}return _0x535ba9['dom']['style']['position']=this['position'],_0x535ba9['dom']['style']['top']=Outside,_0x535ba9['dom']['style']['left']='0px',this['container']['insertBefore'](_0x535ba9['dom'],_0x325d0c),_0x535ba9['mount']&&_0x535ba9['mount'](this['view']),this['resizeObserver']&&this['resizeObserver']['observe'](_0x535ba9['dom']),_0x535ba9;}['destroy'](){var _0x147c45,_0x18777d,_0xac77c1;this['view']['win']['removeEventListener']('resize',this['measureSoon']);for(let _0x19c986 of this['manager']['tooltipViews'])_0x19c986['dom']['remove'](),null===(_0x147c45=_0x19c986['destroy'])||void 0x0===_0x147c45||_0x147c45['call'](_0x19c986);this['parent']&&this['container']['remove'](),null===(_0x18777d=this['resizeObserver'])||void 0x0===_0x18777d||_0x18777d['disconnect'](),null===(_0xac77c1=this['intersectionObserver'])||void 0x0===_0xac77c1||_0xac77c1['disconnect'](),clearTimeout(this['measureTimeout']);}['readMeasure'](){let _0x4883f6=0x1,_0x50ff96=0x1,_0x4080d9=!0x1;if('fixed'==this['position']&&this['manager']['tooltipViews']['length']){let {dom:_0x272cf2}=this['manager']['tooltipViews'][0x0];if(browser['gecko'])_0x4080d9=_0x272cf2['offsetParent']!=this['container']['ownerDocument']['body'];else{if(_0x272cf2['style']['top']==Outside&&'0px'==_0x272cf2['style']['left']){let _0x7d2ce2=_0x272cf2['getBoundingClientRect']();_0x4080d9=Math['abs'](_0x7d2ce2['top']+0x2710)>0x1||Math['abs'](_0x7d2ce2['left'])>0x1;}}}if(_0x4080d9||'absolute'==this['position']){if(this['parent']){let _0x30514b=this['parent']['getBoundingClientRect']();_0x30514b['width']&&_0x30514b['height']&&(_0x4883f6=_0x30514b['width']/this['parent']['offsetWidth'],_0x50ff96=_0x30514b['height']/this['parent']['offsetHeight']);}else({scaleX:_0x4883f6,scaleY:_0x50ff96}=this['view']['viewState']);}let _0x3852bd=this['view']['scrollDOM']['getBoundingClientRect'](),_0x582033=getScrollMargins(this['view']);return{'visible':{'left':_0x3852bd['left']+_0x582033['left'],'top':_0x3852bd['top']+_0x582033['top'],'right':_0x3852bd['right']-_0x582033['right'],'bottom':_0x3852bd['bottom']-_0x582033['bottom']},'parent':this['parent']?this['container']['getBoundingClientRect']():this['view']['dom']['getBoundingClientRect'](),'pos':this['manager']['tooltips']['map']((t,_0x246d03)=>{let _0x2cc6ad=this['manager']['tooltipViews'][_0x246d03];return _0x2cc6ad['getCoords']?_0x2cc6ad['getCoords'](t['pos']):this['view']['coordsAtPos'](t['pos']);}),'size':this['manager']['tooltipViews']['map'](({dom:_0xe13c72})=>_0xe13c72['getBoundingClientRect']()),'space':this['view']['state']['facet'](tooltipConfig)['tooltipSpace'](this['view']),'scaleX':_0x4883f6,'scaleY':_0x50ff96,'makeAbsolute':_0x4080d9};}['writeMeasure'](_0x538d0a){var _0x59fcdd;if(_0x538d0a['makeAbsolute']){this['madeAbsolute']=!0x0,this['position']='absolute';for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']='absolute';}let {visible:_0x2eeacb,space:_0x3219b5,scaleX:_0x21627d,scaleY:_0x4e50d5}=_0x538d0a,_0x36b714=[];for(let _0x1eed67=0x0;_0x1eed67<this['manager']['tooltips']['length'];_0x1eed67++){let _0x1c2edb=this['manager']['tooltips'][_0x1eed67],_0x4415a3=this['manager']['tooltipViews'][_0x1eed67],{dom:_0x4ec590}=_0x4415a3,_0x390969=_0x538d0a['pos'][_0x1eed67],_0x2a0816=_0x538d0a['size'][_0x1eed67];if(!_0x390969||!0x1!==_0x1c2edb['clip']&&(_0x390969['bottom']<=Math['max'](_0x2eeacb['top'],_0x3219b5['top'])||_0x390969['top']>=Math['min'](_0x2eeacb['bottom'],_0x3219b5['bottom'])||_0x390969['right']<Math['max'](_0x2eeacb['left'],_0x3219b5['left'])-0.1||_0x390969['left']>Math['min'](_0x2eeacb['right'],_0x3219b5['right'])+0.1)){_0x4ec590['style']['top']=Outside;continue;}let _0x168c1d=_0x1c2edb['arrow']?_0x4415a3['dom']['querySelector']('.cm-tooltip-arrow'):null,_0x455731=_0x168c1d?0x7:0x0,_0x4de473=_0x2a0816['right']-_0x2a0816['left'],_0x5637f7=null!==(_0x59fcdd=knownHeight['get'](_0x4415a3))&&void 0x0!==_0x59fcdd?_0x59fcdd:_0x2a0816['bottom']-_0x2a0816['top'],_0x4ced77=_0x4415a3['offset']||noOffset,_0xaf6274=this['view']['textDirection']==Direction['LTR'],_0x2f7201=_0x2a0816['width']>_0x3219b5['right']-_0x3219b5['left']?_0xaf6274?_0x3219b5['left']:_0x3219b5['right']-_0x2a0816['width']:_0xaf6274?Math['max'](_0x3219b5['left'],Math['min'](_0x390969['left']-(_0x168c1d?0xe:0x0)+_0x4ced77['x'],_0x3219b5['right']-_0x4de473)):Math['min'](Math['max'](_0x3219b5['left'],_0x390969['left']-_0x4de473+(_0x168c1d?0xe:0x0)-_0x4ced77['x']),_0x3219b5['right']-_0x4de473),_0x522efb=this['above'][_0x1eed67];!_0x1c2edb['strictSide']&&(_0x522efb?_0x390969['top']-_0x5637f7-_0x455731-_0x4ced77['y']<_0x3219b5['top']:_0x390969['bottom']+_0x5637f7+_0x455731+_0x4ced77['y']>_0x3219b5['bottom'])&&_0x522efb==_0x3219b5['bottom']-_0x390969['bottom']>_0x390969['top']-_0x3219b5['top']&&(_0x522efb=this['above'][_0x1eed67]=!_0x522efb);let _0x47ffc4=(_0x522efb?_0x390969['top']-_0x3219b5['top']:_0x3219b5['bottom']-_0x390969['bottom'])-_0x455731;if(_0x47ffc4<_0x5637f7&&!0x1!==_0x4415a3['resize']){if(_0x47ffc4<this['view']['defaultLineHeight']){_0x4ec590['style']['top']=Outside;continue;}knownHeight['set'](_0x4415a3,_0x5637f7),_0x4ec590['style']['height']=(_0x5637f7=_0x47ffc4)/_0x4e50d5+'px';}else _0x4ec590['style']['height']&&(_0x4ec590['style']['height']='');let _0x500a91=_0x522efb?_0x390969['top']-_0x5637f7-_0x455731-_0x4ced77['y']:_0x390969['bottom']+_0x455731+_0x4ced77['y'],_0xdf292b=_0x2f7201+_0x4de473;if(!0x0!==_0x4415a3['overlap']){for(let _0x4b7933 of _0x36b714)_0x4b7933['left']<_0xdf292b&&_0x4b7933['right']>_0x2f7201&&_0x4b7933['top']<_0x500a91+_0x5637f7&&_0x4b7933['bottom']>_0x500a91&&(_0x500a91=_0x522efb?_0x4b7933['top']-_0x5637f7-0x2-_0x455731:_0x4b7933['bottom']+_0x455731+0x2);}if('absolute'==this['position']?(_0x4ec590['style']['top']=(_0x500a91-_0x538d0a['parent']['top'])/_0x4e50d5+'px',setLeftStyle(_0x4ec590,(_0x2f7201-_0x538d0a['parent']['left'])/_0x21627d)):(_0x4ec590['style']['top']=_0x500a91/_0x4e50d5+'px',setLeftStyle(_0x4ec590,_0x2f7201/_0x21627d)),_0x168c1d){let _0x364b29=_0x390969['left']+(_0xaf6274?_0x4ced77['x']:-_0x4ced77['x'])-(_0x2f7201+0xe-0x7);_0x168c1d['style']['left']=_0x364b29/_0x21627d+'px';}!0x0!==_0x4415a3['overlap']&&_0x36b714['push']({'left':_0x2f7201,'top':_0x500a91,'right':_0xdf292b,'bottom':_0x500a91+_0x5637f7}),_0x4ec590['classList']['toggle']('cm-tooltip-above',_0x522efb),_0x4ec590['classList']['toggle']('cm-tooltip-below',!_0x522efb),_0x4415a3['positioned']&&_0x4415a3['positioned'](_0x538d0a['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 _0x296d00 of this['manager']['tooltipViews'])_0x296d00['dom']['style']['top']=Outside;}}},{'eventObservers':{'scroll'(){this['maybeMeasure']();}}});function setLeftStyle(_0x843ac4,_0x3357dc){let _0x365fdb=parseInt(_0x843ac4['style']['left'],0xa);(isNaN(_0x365fdb)||Math['abs'](_0x3357dc-_0x365fdb)>0x1)&&(_0x843ac4['style']['left']=_0x3357dc+'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(_0x352eba,_0x1f59ba){let _0x2e6b32=_0x352eba['plugin'](tooltipPlugin);if(!_0x2e6b32)return null;let _0x596a6d=_0x2e6b32['manager']['tooltips']['indexOf'](_0x1f59ba);return _0x596a6d<0x0?null:_0x2e6b32['manager']['tooltipViews'][_0x596a6d];}class GutterMarker extends RangeValue{['compare'](_0x170ca5){return this==_0x170ca5||this['constructor']==_0x170ca5['constructor']&&this['eq'](_0x170ca5);}['eq'](_0x1e1301){return!0x1;}['destroy'](_0x546aed){}}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(_0x2ae764){return[gutters(),activeGutters['of']({...defaults$1,..._0x2ae764})];}const unfixGutters=Facet['define']({'combine':_0x4efa8a=>_0x4efa8a['some'](_0x114b82=>_0x114b82)});function gutters(_0x8ff7e0){return[gutterView];}const gutterView=ViewPlugin['fromClass'](class{constructor(_0x14a2e8){this['view']=_0x14a2e8,this['domAfter']=null,this['prevViewport']=_0x14a2e8['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']=_0x14a2e8['state']['facet'](activeGutters)['map'](_0x45a0b6=>new SingleGutterView(_0x14a2e8,_0x45a0b6)),this['fixed']=!_0x14a2e8['state']['facet'](unfixGutters);for(let _0x5514f1 of this['gutters'])'after'==_0x5514f1['config']['side']?this['getDOMAfter']()['appendChild'](_0x5514f1['dom']):this['dom']['appendChild'](_0x5514f1['dom']);this['fixed']&&(this['dom']['style']['position']='sticky'),this['syncGutters'](!0x1),_0x14a2e8['scrollDOM']['insertBefore'](this['dom'],_0x14a2e8['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'](_0x59afdc){if(this['updateGutters'](_0x59afdc)){let _0x1de1f=this['prevViewport'],_0x3f9c9e=_0x59afdc['view']['viewport'],_0x387d63=Math['min'](_0x1de1f['to'],_0x3f9c9e['to'])-Math['max'](_0x1de1f['from'],_0x3f9c9e['from']);this['syncGutters'](_0x387d63<0.8*(_0x3f9c9e['to']-_0x3f9c9e['from']));}if(_0x59afdc['geometryChanged']){let _0x5ce5e8=this['view']['contentHeight']/this['view']['scaleY']+'px';this['dom']['style']['minHeight']=_0x5ce5e8,this['domAfter']&&(this['domAfter']['style']['minHeight']=_0x5ce5e8);}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']=_0x59afdc['view']['viewport'];}['syncGutters'](_0x13ca52){let _0x39ceed=this['dom']['nextSibling'];_0x13ca52&&(this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']());let _0x1c2011=RangeSet['iter'](this['view']['state']['facet'](gutterLineClass),this['view']['viewport']['from']),_0xda8fc9=[],_0x554f05=this['gutters']['map'](_0xd25df8=>new UpdateContext(_0xd25df8,this['view']['viewport'],-this['view']['documentPadding']['top']));for(let _0x33cc20 of this['view']['viewportLineBlocks'])if(_0xda8fc9['length']&&(_0xda8fc9=[]),Array['isArray'](_0x33cc20['type'])){let _0x1e13c3=!0x0;for(let _0x1a243c of _0x33cc20['type'])if(_0x1a243c['type']==BlockType['Text']&&_0x1e13c3){advanceCursor(_0x1c2011,_0xda8fc9,_0x1a243c['from']);for(let _0x15fe9d of _0x554f05)_0x15fe9d['line'](this['view'],_0x1a243c,_0xda8fc9);_0x1e13c3=!0x1;}else{if(_0x1a243c['widget']){for(let _0x11ad24 of _0x554f05)_0x11ad24['widget'](this['view'],_0x1a243c);}}}else{if(_0x33cc20['type']==BlockType['Text']){advanceCursor(_0x1c2011,_0xda8fc9,_0x33cc20['from']);for(let _0x2b7536 of _0x554f05)_0x2b7536['line'](this['view'],_0x33cc20,_0xda8fc9);}else{if(_0x33cc20['widget']){for(let _0x7bf9 of _0x554f05)_0x7bf9['widget'](this['view'],_0x33cc20);}}}for(let _0x9fab38 of _0x554f05)_0x9fab38['finish']();_0x13ca52&&(this['view']['scrollDOM']['insertBefore'](this['dom'],_0x39ceed),this['domAfter']&&this['view']['scrollDOM']['appendChild'](this['domAfter']));}['updateGutters'](_0x286149){let _0x7e3f58=_0x286149['startState']['facet'](activeGutters),_0x329cf7=_0x286149['state']['facet'](activeGutters),_0x1cbeb7=_0x286149['docChanged']||_0x286149['heightChanged']||_0x286149['viewportChanged']||!RangeSet['eq'](_0x286149['startState']['facet'](gutterLineClass),_0x286149['state']['facet'](gutterLineClass),_0x286149['view']['viewport']['from'],_0x286149['view']['viewport']['to']);if(_0x7e3f58==_0x329cf7){for(let _0x57efaf of this['gutters'])_0x57efaf['update'](_0x286149)&&(_0x1cbeb7=!0x0);}else{_0x1cbeb7=!0x0;let _0x21af11=[];for(let _0xaa8d96 of _0x329cf7){let _0x1967dc=_0x7e3f58['indexOf'](_0xaa8d96);_0x1967dc<0x0?_0x21af11['push'](new SingleGutterView(this['view'],_0xaa8d96)):(this['gutters'][_0x1967dc]['update'](_0x286149),_0x21af11['push'](this['gutters'][_0x1967dc]));}for(let _0x533f11 of this['gutters'])_0x533f11['dom']['remove'](),_0x21af11['indexOf'](_0x533f11)<0x0&&_0x533f11['destroy']();for(let _0x5dfd51 of _0x21af11)'after'==_0x5dfd51['config']['side']?this['getDOMAfter']()['appendChild'](_0x5dfd51['dom']):this['dom']['appendChild'](_0x5dfd51['dom']);this['gutters']=_0x21af11;}return _0x1cbeb7;}['destroy'](){for(let _0x443fc9 of this['gutters'])_0x443fc9['destroy']();this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']();}},{'provide':_0x4a9654=>EditorView['scrollMargins']['of'](_0x3b5dd8=>{let _0x54d899=_0x3b5dd8['plugin'](_0x4a9654);if(!_0x54d899||0x0==_0x54d899['gutters']['length']||!_0x54d899['fixed'])return null;let _0x292f33=_0x54d899['dom']['offsetWidth']*_0x3b5dd8['scaleX'],_0x26447b=_0x54d899['domAfter']?_0x54d899['domAfter']['offsetWidth']*_0x3b5dd8['scaleX']:0x0;return _0x3b5dd8['textDirection']==Direction['LTR']?{'left':_0x292f33,'right':_0x26447b}:{'right':_0x292f33,'left':_0x26447b};})});function asArray$1(_0x2e470a){return Array['isArray'](_0x2e470a)?_0x2e470a:[_0x2e470a];}function advanceCursor(_0x42eb59,_0x37e897,_0x2d57a3){for(;_0x42eb59['value']&&_0x42eb59['from']<=_0x2d57a3;)_0x42eb59['from']==_0x2d57a3&&_0x37e897['push'](_0x42eb59['value']),_0x42eb59['next']();}class UpdateContext{constructor(_0x54e8a4,_0x20313f,_0x3c8c7d){this['gutter']=_0x54e8a4,this['height']=_0x3c8c7d,this['i']=0x0,this['cursor']=RangeSet['iter'](_0x54e8a4['markers'],_0x20313f['from']);}['addElement'](_0x27e929,_0x39ccea,_0xa85fae){let {gutter:_0x92168}=this,_0x3cd39d=(_0x39ccea['top']-this['height'])/_0x27e929['scaleY'],_0x4b1fca=_0x39ccea['height']/_0x27e929['scaleY'];if(this['i']==_0x92168['elements']['length']){let _0x5e2399=new GutterElement(_0x27e929,_0x4b1fca,_0x3cd39d,_0xa85fae);_0x92168['elements']['push'](_0x5e2399),_0x92168['dom']['appendChild'](_0x5e2399['dom']);}else _0x92168['elements'][this['i']]['update'](_0x27e929,_0x4b1fca,_0x3cd39d,_0xa85fae);this['height']=_0x39ccea['bottom'],this['i']++;}['line'](_0x171d12,_0x2ac81e,_0x4f737c){let _0x275fb6=[];advanceCursor(this['cursor'],_0x275fb6,_0x2ac81e['from']),_0x4f737c['length']&&(_0x275fb6=_0x275fb6['concat'](_0x4f737c));let _0x15a55d=this['gutter']['config']['lineMarker'](_0x171d12,_0x2ac81e,_0x275fb6);_0x15a55d&&_0x275fb6['unshift'](_0x15a55d);let _0x1011de=this['gutter'];(0x0!=_0x275fb6['length']||_0x1011de['config']['renderEmptyElements'])&&this['addElement'](_0x171d12,_0x2ac81e,_0x275fb6);}['widget'](_0x18aa1b,_0x29412a){let _0x4d48f7=this['gutter']['config']['widgetMarker'](_0x18aa1b,_0x29412a['widget'],_0x29412a),_0x42f388=_0x4d48f7?[_0x4d48f7]:null;for(let _0x4a19d0 of _0x18aa1b['state']['facet'](gutterWidgetClass)){let _0x4e06ac=_0x4a19d0(_0x18aa1b,_0x29412a['widget'],_0x29412a);_0x4e06ac&&(_0x42f388||(_0x42f388=[]))['push'](_0x4e06ac);}_0x42f388&&this['addElement'](_0x18aa1b,_0x29412a,_0x42f388);}['finish'](){let _0x57c34d=this['gutter'];for(;_0x57c34d['elements']['length']>this['i'];){let _0x3d5a4a=_0x57c34d['elements']['pop']();_0x57c34d['dom']['removeChild'](_0x3d5a4a['dom']),_0x3d5a4a['destroy']();}}}class SingleGutterView{constructor(_0x468faf,_0x1edb39){this['view']=_0x468faf,this['config']=_0x1edb39,this['elements']=[],this['spacer']=null,this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutter'+(this['config']['class']?'\x20'+this['config']['class']:'');for(let _0x59a7e4 in _0x1edb39['domEventHandlers'])this['dom']['addEventListener'](_0x59a7e4,_0xe5d7a4=>{let _0x3d2f7f,_0x12859f=_0xe5d7a4['target'];if(_0x12859f!=this['dom']&&this['dom']['contains'](_0x12859f)){for(;_0x12859f['parentNode']!=this['dom'];)_0x12859f=_0x12859f['parentNode'];let _0x2a0342=_0x12859f['getBoundingClientRect']();_0x3d2f7f=(_0x2a0342['top']+_0x2a0342['bottom'])/0x2;}else _0x3d2f7f=_0xe5d7a4['clientY'];let _0x85b32b=_0x468faf['lineBlockAtHeight'](_0x3d2f7f-_0x468faf['documentTop']);_0x1edb39['domEventHandlers'][_0x59a7e4](_0x468faf,_0x85b32b,_0xe5d7a4)&&_0xe5d7a4['preventDefault']();});this['markers']=asArray$1(_0x1edb39['markers'](_0x468faf)),_0x1edb39['initialSpacer']&&(this['spacer']=new GutterElement(_0x468faf,0x0,0x0,[_0x1edb39['initialSpacer'](_0x468faf)]),this['dom']['appendChild'](this['spacer']['dom']),this['spacer']['dom']['style']['cssText']+='visibility:\x20hidden;\x20pointer-events:\x20none');}['update'](_0x27c409){let _0x1813db=this['markers'];if(this['markers']=asArray$1(this['config']['markers'](_0x27c409['view'])),this['spacer']&&this['config']['updateSpacer']){let _0x25019c=this['config']['updateSpacer'](this['spacer']['markers'][0x0],_0x27c409);_0x25019c!=this['spacer']['markers'][0x0]&&this['spacer']['update'](_0x27c409['view'],0x0,0x0,[_0x25019c]);}let _0x36a557=_0x27c409['view']['viewport'];return!RangeSet['eq'](this['markers'],_0x1813db,_0x36a557['from'],_0x36a557['to'])||!!this['config']['lineMarkerChange']&&this['config']['lineMarkerChange'](_0x27c409);}['destroy'](){for(let _0x3065f4 of this['elements'])_0x3065f4['destroy']();}}class GutterElement{constructor(_0x615dfb,_0x284db6,_0x3a2e71,_0x53e005){this['height']=-0x1,this['above']=0x0,this['markers']=[],this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutterElement',this['update'](_0x615dfb,_0x284db6,_0x3a2e71,_0x53e005);}['update'](_0x557196,_0x464f5b,_0x9b1a07,_0x5881dc){this['height']!=_0x464f5b&&(this['height']=_0x464f5b,this['dom']['style']['height']=_0x464f5b+'px'),this['above']!=_0x9b1a07&&(this['dom']['style']['marginTop']=(this['above']=_0x9b1a07)?_0x9b1a07+'px':''),sameMarkers(this['markers'],_0x5881dc)||this['setMarkers'](_0x557196,_0x5881dc);}['setMarkers'](_0x4ebf33,_0xf9a2a3){let _0x1e3844='cm-gutterElement',_0x35f5bd=this['dom']['firstChild'];for(let _0xd2351f=0x0,_0x5db2d5=0x0;;){let _0x25901d=_0x5db2d5,_0x24fc5a=_0xd2351f<_0xf9a2a3['length']?_0xf9a2a3[_0xd2351f++]:null,_0x5f5785=!0x1;if(_0x24fc5a){let _0xf840c8=_0x24fc5a['elementClass'];_0xf840c8&&(_0x1e3844+='\x20'+_0xf840c8);for(let _0x5b8467=_0x5db2d5;_0x5b8467<this['markers']['length'];_0x5b8467++)if(this['markers'][_0x5b8467]['compare'](_0x24fc5a)){_0x25901d=_0x5b8467,_0x5f5785=!0x0;break;}}else _0x25901d=this['markers']['length'];for(;_0x5db2d5<_0x25901d;){let _0x1e484e=this['markers'][_0x5db2d5++];if(_0x1e484e['toDOM']){_0x1e484e['destroy'](_0x35f5bd);let _0x56b830=_0x35f5bd['nextSibling'];_0x35f5bd['remove'](),_0x35f5bd=_0x56b830;}}if(!_0x24fc5a)break;_0x24fc5a['toDOM']&&(_0x5f5785?_0x35f5bd=_0x35f5bd['nextSibling']:this['dom']['insertBefore'](_0x24fc5a['toDOM'](_0x4ebf33),_0x35f5bd)),_0x5f5785&&_0x5db2d5++;}this['dom']['className']=_0x1e3844,this['markers']=_0xf9a2a3;}['destroy'](){this['setMarkers'](null,[]);}}function sameMarkers(_0x653c26,_0x3406a3){if(_0x653c26['length']!=_0x3406a3['length'])return!0x1;for(let _0xade2f8=0x0;_0xade2f8<_0x653c26['length'];_0xade2f8++)if(!_0x653c26[_0xade2f8]['compare'](_0x3406a3[_0xade2f8]))return!0x1;return!0x0;}const lineNumberMarkers=Facet['define'](),lineNumberWidgetMarker=Facet['define'](),lineNumberConfig=Facet['define']({'combine':_0xd81faa=>combineConfig(_0xd81faa,{'formatNumber':String,'domEventHandlers':{}},{'domEventHandlers'(_0x104883,_0x11832b){let _0x13c8c0=Object['assign']({},_0x104883);for(let _0xac1cd in _0x11832b){let _0x21b504=_0x13c8c0[_0xac1cd],_0x2fd1a3=_0x11832b[_0xac1cd];_0x13c8c0[_0xac1cd]=_0x21b504?(_0x5eaf9e,_0x3d0e1,_0x519617)=>_0x21b504(_0x5eaf9e,_0x3d0e1,_0x519617)||_0x2fd1a3(_0x5eaf9e,_0x3d0e1,_0x519617):_0x2fd1a3;}return _0x13c8c0;}})});class NumberMarker extends GutterMarker{constructor(_0x402bca){super(),this['number']=_0x402bca;}['eq'](_0x14ed67){return this['number']==_0x14ed67['number'];}['toDOM'](){return document['createTextNode'](this['number']);}}function formatNumber(_0x398e35,_0x24c2c7){return _0x398e35['state']['facet'](lineNumberConfig)['formatNumber'](_0x24c2c7,_0x398e35['state']);}const lineNumberGutter=activeGutters['compute']([lineNumberConfig],_0x136fe4=>({'class':'cm-lineNumbers','renderEmptyElements':!0x1,'markers':_0x4b095e=>_0x4b095e['state']['facet'](lineNumberMarkers),'lineMarker':(_0x16ccc9,_0x5e87db,_0x25839b)=>_0x25839b['some'](_0x1ad0ae=>_0x1ad0ae['toDOM'])?null:new NumberMarker(formatNumber(_0x16ccc9,_0x16ccc9['state']['doc']['lineAt'](_0x5e87db['from'])['number'])),'widgetMarker':(_0x2b0caf,_0x1a9103,_0x4d9640)=>{for(let _0x47bae8 of _0x2b0caf['state']['facet'](lineNumberWidgetMarker)){let _0x2f0eb8=_0x47bae8(_0x2b0caf,_0x1a9103,_0x4d9640);if(_0x2f0eb8)return _0x2f0eb8;}return null;},'lineMarkerChange':_0xdd467e=>_0xdd467e['startState']['facet'](lineNumberConfig)!=_0xdd467e['state']['facet'](lineNumberConfig),'initialSpacer':_0x57a379=>new NumberMarker(formatNumber(_0x57a379,maxLineNumber(_0x57a379['state']['doc']['lines']))),'updateSpacer'(_0x40e577,_0x137d58){let _0x193221=formatNumber(_0x137d58['view'],maxLineNumber(_0x137d58['view']['state']['doc']['lines']));return _0x193221==_0x40e577['number']?_0x40e577:new NumberMarker(_0x193221);},'domEventHandlers':_0x136fe4['facet'](lineNumberConfig)['domEventHandlers'],'side':'before'}));function lineNumbers(_0x5c056a={}){return[lineNumberConfig['of'](_0x5c056a),gutters(),lineNumberGutter];}function maxLineNumber(_0xea1a84){let _0x55820e=0x9;for(;_0x55820e<_0xea1a84;)_0x55820e=0xa*_0x55820e+0x9;return _0x55820e;}const activeLineGutterMarker=new class extends GutterMarker{constructor(){super(...arguments),this['elementClass']='cm-activeLineGutter';}}(),activeLineGutterHighlighter=gutterLineClass['compute'](['selection'],_0x58e8c7=>{let _0x502bcd=[],_0x163e30=-0x1;for(let _0x6151ea of _0x58e8c7['selection']['ranges']){let _0x2ae8c5=_0x58e8c7['doc']['lineAt'](_0x6151ea['head'])['from'];_0x2ae8c5>_0x163e30&&(_0x163e30=_0x2ae8c5,_0x502bcd['push'](activeLineGutterMarker['range'](_0x2ae8c5)));}return RangeSet['of'](_0x502bcd);});function highlightActiveLineGutter(){return activeLineGutterHighlighter;}const DefaultBufferLength=0x400;let nextPropID=0x0;class Range{constructor(_0x213c5f,_0x5be0cf){this['from']=_0x213c5f,this['to']=_0x5be0cf;}}class NodeProp{constructor(_0x360fbf={}){this['id']=nextPropID++,this['perNode']=!!_0x360fbf['perNode'],this['deserialize']=_0x360fbf['deserialize']||(()=>{throw new Error('This\x20node\x20type\x20doesn\x27t\x20define\x20a\x20deserialize\x20function');}),this['combine']=_0x360fbf['combine']||null;}['add'](_0x563e15){if(this['perNode'])throw new RangeError('Can\x27t\x20add\x20per-node\x20props\x20to\x20node\x20types');return'function'!=typeof _0x563e15&&(_0x563e15=NodeType['match'](_0x563e15)),_0x49e7e7=>{let _0x4d66ec=_0x563e15(_0x49e7e7);return void 0x0===_0x4d66ec?null:[this,_0x4d66ec];};}}NodeProp['closedBy']=new NodeProp({'deserialize':_0x112194=>_0x112194['split']('\x20')}),NodeProp['openedBy']=new NodeProp({'deserialize':_0x5bcc7e=>_0x5bcc7e['split']('\x20')}),NodeProp['group']=new NodeProp({'deserialize':_0xc2f903=>_0xc2f903['split']('\x20')}),NodeProp['isolate']=new NodeProp({'deserialize':_0x37988c=>{if(_0x37988c&&'rtl'!=_0x37988c&&'ltr'!=_0x37988c&&'auto'!=_0x37988c)throw new RangeError('Invalid\x20value\x20for\x20isolate:\x20'+_0x37988c);return _0x37988c||'auto';}}),NodeProp['contextHash']=new NodeProp({'perNode':!0x0}),NodeProp['lookAhead']=new NodeProp({'perNode':!0x0}),NodeProp['mounted']=new NodeProp({'perNode':!0x0});class MountedTree{constructor(_0x5c4b31,_0x3dc139,_0x12767a){this['tree']=_0x5c4b31,this['overlay']=_0x3dc139,this['parser']=_0x12767a;}static['get'](_0x4cbfa9){return _0x4cbfa9&&_0x4cbfa9['props']&&_0x4cbfa9['props'][NodeProp['mounted']['id']];}}const noProps=Object['create'](null);class NodeType{constructor(_0x594044,_0x1ff502,_0x53fb95,_0x25607a=0x0){this['name']=_0x594044,this['props']=_0x1ff502,this['id']=_0x53fb95,this['flags']=_0x25607a;}static['define'](_0x4cf530){let _0x315d1e=_0x4cf530['props']&&_0x4cf530['props']['length']?Object['create'](null):noProps,_0x4c0eac=(_0x4cf530['top']?0x1:0x0)|(_0x4cf530['skipped']?0x2:0x0)|(_0x4cf530['error']?0x4:0x0)|(null==_0x4cf530['name']?0x8:0x0),_0x27581c=new NodeType(_0x4cf530['name']||'',_0x315d1e,_0x4cf530['id'],_0x4c0eac);if(_0x4cf530['props']){for(let _0x32c712 of _0x4cf530['props'])if(Array['isArray'](_0x32c712)||(_0x32c712=_0x32c712(_0x27581c)),_0x32c712){if(_0x32c712[0x0]['perNode'])throw new RangeError('Can\x27t\x20store\x20a\x20per-node\x20prop\x20on\x20a\x20node\x20type');_0x315d1e[_0x32c712[0x0]['id']]=_0x32c712[0x1];}}return _0x27581c;}['prop'](_0x267ea5){return this['props'][_0x267ea5['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'](_0x4be426){if('string'==typeof _0x4be426){if(this['name']==_0x4be426)return!0x0;let _0x5c8552=this['prop'](NodeProp['group']);return!!_0x5c8552&&_0x5c8552['indexOf'](_0x4be426)>-0x1;}return this['id']==_0x4be426;}static['match'](_0x45f60f){let _0x2a7458=Object['create'](null);for(let _0x458e14 in _0x45f60f)for(let _0x200f38 of _0x458e14['split']('\x20'))_0x2a7458[_0x200f38]=_0x45f60f[_0x458e14];return _0x36f9d9=>{for(let _0x26b951=_0x36f9d9['prop'](NodeProp['group']),_0x4b576f=-0x1;_0x4b576f<(_0x26b951?_0x26b951['length']:0x0);_0x4b576f++){let _0x58f094=_0x2a7458[_0x4b576f<0x0?_0x36f9d9['name']:_0x26b951[_0x4b576f]];if(_0x58f094)return _0x58f094;}};}}NodeType['none']=new NodeType('',Object['create'](null),0x0,0x8);class NodeSet{constructor(_0x4c6fe7){this['types']=_0x4c6fe7;for(let _0x5863b7=0x0;_0x5863b7<_0x4c6fe7['length'];_0x5863b7++)if(_0x4c6fe7[_0x5863b7]['id']!=_0x5863b7)throw new RangeError('Node\x20type\x20ids\x20should\x20correspond\x20to\x20array\x20positions\x20when\x20creating\x20a\x20node\x20set');}['extend'](..._0x15258b){let _0x4f46c0=[];for(let _0x27e122 of this['types']){let _0x5dd51a=null;for(let _0x3cf5d5 of _0x15258b){let _0x30a8e3=_0x3cf5d5(_0x27e122);if(_0x30a8e3){_0x5dd51a||(_0x5dd51a=Object['assign']({},_0x27e122['props']));let _0x127607=_0x30a8e3[0x1],_0x51cea2=_0x30a8e3[0x0];_0x51cea2['combine']&&_0x51cea2['id']in _0x5dd51a&&(_0x127607=_0x51cea2['combine'](_0x5dd51a[_0x51cea2['id']],_0x127607)),_0x5dd51a[_0x51cea2['id']]=_0x127607;}}_0x4f46c0['push'](_0x5dd51a?new NodeType(_0x27e122['name'],_0x5dd51a,_0x27e122['id'],_0x27e122['flags']):_0x27e122);}return new NodeSet(_0x4f46c0);}}const CachedNode=new WeakMap(),CachedInnerNode=new WeakMap();var IterMode;!function(_0x5ac846){_0x5ac846[_0x5ac846['ExcludeBuffers']=0x1]='ExcludeBuffers',_0x5ac846[_0x5ac846['IncludeAnonymous']=0x2]='IncludeAnonymous',_0x5ac846[_0x5ac846['IgnoreMounts']=0x4]='IgnoreMounts',_0x5ac846[_0x5ac846['IgnoreOverlays']=0x8]='IgnoreOverlays';}(IterMode||(IterMode={}));class Tree{constructor(_0x49a4b4,_0x5aae5e,_0x21937c,_0x3c0113,_0x2c565e){if(this['type']=_0x49a4b4,this['children']=_0x5aae5e,this['positions']=_0x21937c,this['length']=_0x3c0113,this['props']=null,_0x2c565e&&_0x2c565e['length']){this['props']=Object['create'](null);for(let [_0x3fb700,_0x5aedda]of _0x2c565e)this['props']['number'==typeof _0x3fb700?_0x3fb700:_0x3fb700['id']]=_0x5aedda;}}['toString'](){let _0x46a162=MountedTree['get'](this);if(_0x46a162&&!_0x46a162['overlay'])return _0x46a162['tree']['toString']();let _0xa3581e='';for(let _0x40a6be of this['children']){let _0x24d136=_0x40a6be['toString']();_0x24d136&&(_0xa3581e&&(_0xa3581e+=','),_0xa3581e+=_0x24d136);}return this['type']['name']?(/\W/['test'](this['type']['name'])&&!this['type']['isError']?JSON['stringify'](this['type']['name']):this['type']['name'])+(_0xa3581e['length']?'('+_0xa3581e+')':''):_0xa3581e;}['cursor'](_0x34b01b=0x0){return new TreeCursor(this['topNode'],_0x34b01b);}['cursorAt'](_0x21f7d1,_0x36d892=0x0,_0x177a6b=0x0){let _0x1f756b=CachedNode['get'](this)||this['topNode'],_0x3f6866=new TreeCursor(_0x1f756b);return _0x3f6866['moveTo'](_0x21f7d1,_0x36d892),CachedNode['set'](this,_0x3f6866['_tree']),_0x3f6866;}get['topNode'](){return new TreeNode(this,0x0,0x0,null);}['resolve'](_0x3f9835,_0x5654ff=0x0){let _0x33bebb=resolveNode(CachedNode['get'](this)||this['topNode'],_0x3f9835,_0x5654ff,!0x1);return CachedNode['set'](this,_0x33bebb),_0x33bebb;}['resolveInner'](_0x4aef60,_0x3399b7=0x0){let _0x170da9=resolveNode(CachedInnerNode['get'](this)||this['topNode'],_0x4aef60,_0x3399b7,!0x0);return CachedInnerNode['set'](this,_0x170da9),_0x170da9;}['resolveStack'](_0x2c735e,_0x1b5c29=0x0){return stackIterator(this,_0x2c735e,_0x1b5c29);}['iterate'](_0x222bb4){let {enter:_0x3fb676,leave:_0x223e5e,from:_0x4925e8=0x0,to:_0x42b102=this['length']}=_0x222bb4,_0x1ab401=_0x222bb4['mode']||0x0,_0x483a61=(_0x1ab401&IterMode['IncludeAnonymous'])>0x0;for(let _0x2de171=this['cursor'](_0x1ab401|IterMode['IncludeAnonymous']);;){let _0x286bd3=!0x1;if(_0x2de171['from']<=_0x42b102&&_0x2de171['to']>=_0x4925e8&&(!_0x483a61&&_0x2de171['type']['isAnonymous']||!0x1!==_0x3fb676(_0x2de171))){if(_0x2de171['firstChild']())continue;_0x286bd3=!0x0;}for(;_0x286bd3&&_0x223e5e&&(_0x483a61||!_0x2de171['type']['isAnonymous'])&&_0x223e5e(_0x2de171),!_0x2de171['nextSibling']();){if(!_0x2de171['parent']())return;_0x286bd3=!0x0;}}}['prop'](_0x3e9058){return _0x3e9058['perNode']?this['props']?this['props'][_0x3e9058['id']]:void 0x0:this['type']['prop'](_0x3e9058);}get['propValues'](){let _0x4daa5b=[];if(this['props']){for(let _0x2b7968 in this['props'])_0x4daa5b['push']([+_0x2b7968,this['props'][_0x2b7968]]);}return _0x4daa5b;}['balance'](_0x149182={}){return this['children']['length']<=0x8?this:balanceRange(NodeType['none'],this['children'],this['positions'],0x0,this['children']['length'],0x0,this['length'],(_0xf78c4e,_0x49e078,_0x46ce6f)=>new Tree(this['type'],_0xf78c4e,_0x49e078,_0x46ce6f,this['propValues']),_0x149182['makeTree']||((_0x378aa3,_0x202f86,_0x53a28b)=>new Tree(NodeType['none'],_0x378aa3,_0x202f86,_0x53a28b)));}static['build'](_0x4da73c){return buildTree(_0x4da73c);}}Tree['empty']=new Tree(NodeType['none'],[],[],0x0);class FlatBufferCursor{constructor(_0x587bdd,_0x14b539){this['buffer']=_0x587bdd,this['index']=_0x14b539;}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(_0x517c60,_0x27feb3,_0x307e47){this['buffer']=_0x517c60,this['length']=_0x27feb3,this['set']=_0x307e47;}get['type'](){return NodeType['none'];}['toString'](){let _0x7183e1=[];for(let _0x492179=0x0;_0x492179<this['buffer']['length'];)_0x7183e1['push'](this['childString'](_0x492179)),_0x492179=this['buffer'][_0x492179+0x3];return _0x7183e1['join'](',');}['childString'](_0x22dba0){let _0x11d88b=this['buffer'][_0x22dba0],_0x3c6e2d=this['buffer'][_0x22dba0+0x3],_0x5cff9a=this['set']['types'][_0x11d88b],_0x377722=_0x5cff9a['name'];if(/\W/['test'](_0x377722)&&!_0x5cff9a['isError']&&(_0x377722=JSON['stringify'](_0x377722)),_0x3c6e2d==(_0x22dba0+=0x4))return _0x377722;let _0xab3fd=[];for(;_0x22dba0<_0x3c6e2d;)_0xab3fd['push'](this['childString'](_0x22dba0)),_0x22dba0=this['buffer'][_0x22dba0+0x3];return _0x377722+'('+_0xab3fd['join'](',')+')';}['findChild'](_0xced27c,_0x34bdde,_0x417e4f,_0x5641f6,_0x444e70){let {buffer:_0x2613b5}=this,_0x2aad0c=-0x1;for(let _0x477224=_0xced27c;_0x477224!=_0x34bdde&&!(checkSide(_0x444e70,_0x5641f6,_0x2613b5[_0x477224+0x1],_0x2613b5[_0x477224+0x2])&&(_0x2aad0c=_0x477224,_0x417e4f>0x0));_0x477224=_0x2613b5[_0x477224+0x3]);return _0x2aad0c;}['slice'](_0x9360ee,_0xcdf024,_0xa9cc98){let _0x310292=this['buffer'],_0xbdaf4b=new Uint16Array(_0xcdf024-_0x9360ee),_0x334b4f=0x0;for(let _0x40273b=_0x9360ee,_0x267972=0x0;_0x40273b<_0xcdf024;){_0xbdaf4b[_0x267972++]=_0x310292[_0x40273b++],_0xbdaf4b[_0x267972++]=_0x310292[_0x40273b++]-_0xa9cc98;let _0x48d397=_0xbdaf4b[_0x267972++]=_0x310292[_0x40273b++]-_0xa9cc98;_0xbdaf4b[_0x267972++]=_0x310292[_0x40273b++]-_0x9360ee,_0x334b4f=Math['max'](_0x334b4f,_0x48d397);}return new TreeBuffer(_0xbdaf4b,_0x334b4f,this['set']);}}function checkSide(_0x2192bf,_0x2f3793,_0x5629b8,_0xcd1783){switch(_0x2192bf){case-0x2:return _0x5629b8<_0x2f3793;case-0x1:return _0xcd1783>=_0x2f3793&&_0x5629b8<_0x2f3793;case 0x0:return _0x5629b8<_0x2f3793&&_0xcd1783>_0x2f3793;case 0x1:return _0x5629b8<=_0x2f3793&&_0xcd1783>_0x2f3793;case 0x2:return _0xcd1783>_0x2f3793;case 0x4:return!0x0;}}function resolveNode(_0x121c4f,_0x58a8f0,_0x5b70dd,_0x1d6e75){for(var _0x2db174;_0x121c4f['from']==_0x121c4f['to']||(_0x5b70dd<0x1?_0x121c4f['from']>=_0x58a8f0:_0x121c4f['from']>_0x58a8f0)||(_0x5b70dd>-0x1?_0x121c4f['to']<=_0x58a8f0:_0x121c4f['to']<_0x58a8f0);){let _0x59db28=!_0x1d6e75&&_0x121c4f instanceof TreeNode&&_0x121c4f['index']<0x0?null:_0x121c4f['parent'];if(!_0x59db28)return _0x121c4f;_0x121c4f=_0x59db28;}let _0x2172bc=_0x1d6e75?0x0:IterMode['IgnoreOverlays'];if(_0x1d6e75){for(let _0x19480d=_0x121c4f,_0xeaa310=_0x19480d['parent'];_0xeaa310;_0x19480d=_0xeaa310,_0xeaa310=_0x19480d['parent'])_0x19480d instanceof TreeNode&&_0x19480d['index']<0x0&&(null===(_0x2db174=_0xeaa310['enter'](_0x58a8f0,_0x5b70dd,_0x2172bc))||void 0x0===_0x2db174?void 0x0:_0x2db174['from'])!=_0x19480d['from']&&(_0x121c4f=_0xeaa310);}for(;;){let _0x4cd400=_0x121c4f['enter'](_0x58a8f0,_0x5b70dd,_0x2172bc);if(!_0x4cd400)return _0x121c4f;_0x121c4f=_0x4cd400;}}class BaseNode{['cursor'](_0x220769=0x0){return new TreeCursor(this,_0x220769);}['getChild'](_0x10f69f,_0x5ea6d8=null,_0x3601f8=null){let _0x3cf0cb=getChildren(this,_0x10f69f,_0x5ea6d8,_0x3601f8);return _0x3cf0cb['length']?_0x3cf0cb[0x0]:null;}['getChildren'](_0x1956c3,_0x46691d=null,_0x50e061=null){return getChildren(this,_0x1956c3,_0x46691d,_0x50e061);}['resolve'](_0x37f22b,_0x4d9bd4=0x0){return resolveNode(this,_0x37f22b,_0x4d9bd4,!0x1);}['resolveInner'](_0x43f731,_0x21ff99=0x0){return resolveNode(this,_0x43f731,_0x21ff99,!0x0);}['matchContext'](_0xf37608){return matchNodeContext(this['parent'],_0xf37608);}['enterUnfinishedNodesBefore'](_0x252471){let _0xf06a5d=this['childBefore'](_0x252471),_0x2e9caf=this;for(;_0xf06a5d;){let _0x230b28=_0xf06a5d['lastChild'];if(!_0x230b28||_0x230b28['to']!=_0xf06a5d['to'])break;_0x230b28['type']['isError']&&_0x230b28['from']==_0x230b28['to']?(_0x2e9caf=_0xf06a5d,_0xf06a5d=_0x230b28['prevSibling']):_0xf06a5d=_0x230b28;}return _0x2e9caf;}get['node'](){return this;}get['next'](){return this['parent'];}}class TreeNode extends BaseNode{constructor(_0x4f9b36,_0x5e9a01,_0x346a1b,_0x3b844a){super(),this['_tree']=_0x4f9b36,this['from']=_0x5e9a01,this['index']=_0x346a1b,this['_parent']=_0x3b844a;}get['type'](){return this['_tree']['type'];}get['name'](){return this['_tree']['type']['name'];}get['to'](){return this['from']+this['_tree']['length'];}['nextChild'](_0x2d47ad,_0x306adb,_0x1f4a09,_0x29013b,_0x4430e4=0x0){for(let _0x15a070=this;;){for(let {children:_0x5bcdef,positions:_0x1a64eb}=_0x15a070['_tree'],_0x4069a2=_0x306adb>0x0?_0x5bcdef['length']:-0x1;_0x2d47ad!=_0x4069a2;_0x2d47ad+=_0x306adb){let _0x1b6bd1=_0x5bcdef[_0x2d47ad],_0x1b2a81=_0x1a64eb[_0x2d47ad]+_0x15a070['from'];if(checkSide(_0x29013b,_0x1f4a09,_0x1b2a81,_0x1b2a81+_0x1b6bd1['length'])){if(_0x1b6bd1 instanceof TreeBuffer){if(_0x4430e4&IterMode['ExcludeBuffers'])continue;let _0x4e5079=_0x1b6bd1['findChild'](0x0,_0x1b6bd1['buffer']['length'],_0x306adb,_0x1f4a09-_0x1b2a81,_0x29013b);if(_0x4e5079>-0x1)return new BufferNode(new BufferContext(_0x15a070,_0x1b6bd1,_0x2d47ad,_0x1b2a81),null,_0x4e5079);}else{if(_0x4430e4&IterMode['IncludeAnonymous']||!_0x1b6bd1['type']['isAnonymous']||hasChild(_0x1b6bd1)){let _0x4de63d;if(!(_0x4430e4&IterMode['IgnoreMounts'])&&(_0x4de63d=MountedTree['get'](_0x1b6bd1))&&!_0x4de63d['overlay'])return new TreeNode(_0x4de63d['tree'],_0x1b2a81,_0x2d47ad,_0x15a070);let _0x6df5cf=new TreeNode(_0x1b6bd1,_0x1b2a81,_0x2d47ad,_0x15a070);return _0x4430e4&IterMode['IncludeAnonymous']||!_0x6df5cf['type']['isAnonymous']?_0x6df5cf:_0x6df5cf['nextChild'](_0x306adb<0x0?_0x1b6bd1['children']['length']-0x1:0x0,_0x306adb,_0x1f4a09,_0x29013b);}}}}if(_0x4430e4&IterMode['IncludeAnonymous']||!_0x15a070['type']['isAnonymous'])return null;if(_0x2d47ad=_0x15a070['index']>=0x0?_0x15a070['index']+_0x306adb:_0x306adb<0x0?-0x1:_0x15a070['_parent']['_tree']['children']['length'],_0x15a070=_0x15a070['_parent'],!_0x15a070)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'](_0x1e120f){return this['nextChild'](0x0,0x1,_0x1e120f,0x2);}['childBefore'](_0x213e5e){return this['nextChild'](this['_tree']['children']['length']-0x1,-0x1,_0x213e5e,-0x2);}['enter'](_0x985849,_0x4659b7,_0x4de6e9=0x0){let _0x4409e5;if(!(_0x4de6e9&IterMode['IgnoreOverlays'])&&(_0x4409e5=MountedTree['get'](this['_tree']))&&_0x4409e5['overlay']){let _0x3dad15=_0x985849-this['from'];for(let {from:_0x143bfd,to:_0x3fd7aa}of _0x4409e5['overlay'])if((_0x4659b7>0x0?_0x143bfd<=_0x3dad15:_0x143bfd<_0x3dad15)&&(_0x4659b7<0x0?_0x3fd7aa>=_0x3dad15:_0x3fd7aa>_0x3dad15))return new TreeNode(_0x4409e5['tree'],_0x4409e5['overlay'][0x0]['from']+this['from'],-0x1,this);}return this['nextChild'](0x0,0x1,_0x985849,_0x4659b7,_0x4de6e9);}['nextSignificantParent'](){let _0x49481f=this;for(;_0x49481f['type']['isAnonymous']&&_0x49481f['_parent'];)_0x49481f=_0x49481f['_parent'];return _0x49481f;}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(_0xe4508b,_0x30a70a,_0x12a530,_0x51f98e){let _0x34547f=_0xe4508b['cursor'](),_0x572657=[];if(!_0x34547f['firstChild']())return _0x572657;if(null!=_0x12a530){for(let _0x2d051c=!0x1;!_0x2d051c;)if(_0x2d051c=_0x34547f['type']['is'](_0x12a530),!_0x34547f['nextSibling']())return _0x572657;}for(;;){if(null!=_0x51f98e&&_0x34547f['type']['is'](_0x51f98e))return _0x572657;if(_0x34547f['type']['is'](_0x30a70a)&&_0x572657['push'](_0x34547f['node']),!_0x34547f['nextSibling']())return null==_0x51f98e?_0x572657:[];}}function matchNodeContext(_0x3d3613,_0x3c8667,_0x1fe682=_0x3c8667['length']-0x1){for(let _0x2e954b=_0x3d3613;_0x1fe682>=0x0;_0x2e954b=_0x2e954b['parent']){if(!_0x2e954b)return!0x1;if(!_0x2e954b['type']['isAnonymous']){if(_0x3c8667[_0x1fe682]&&_0x3c8667[_0x1fe682]!=_0x2e954b['name'])return!0x1;_0x1fe682--;}}return!0x0;}class BufferContext{constructor(_0x125b41,_0x27e15d,_0x292dcb,_0x2534e5){this['parent']=_0x125b41,this['buffer']=_0x27e15d,this['index']=_0x292dcb,this['start']=_0x2534e5;}}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(_0x336e27,_0x1f2cf2,_0x3867ea){super(),this['context']=_0x336e27,this['_parent']=_0x1f2cf2,this['index']=_0x3867ea,this['type']=_0x336e27['buffer']['set']['types'][_0x336e27['buffer']['buffer'][_0x3867ea]];}['child'](_0x4f3613,_0x30984e,_0x37ba42){let {buffer:_0x23e98c}=this['context'],_0x26d15d=_0x23e98c['findChild'](this['index']+0x4,_0x23e98c['buffer'][this['index']+0x3],_0x4f3613,_0x30984e-this['context']['start'],_0x37ba42);return _0x26d15d<0x0?null:new BufferNode(this['context'],this,_0x26d15d);}get['firstChild'](){return this['child'](0x1,0x0,0x4);}get['lastChild'](){return this['child'](-0x1,0x0,0x4);}['childAfter'](_0x58d795){return this['child'](0x1,_0x58d795,0x2);}['childBefore'](_0x2be0fe){return this['child'](-0x1,_0x2be0fe,-0x2);}['enter'](_0x5ae81a,_0xbc173,_0x17fc16=0x0){if(_0x17fc16&IterMode['ExcludeBuffers'])return null;let {buffer:_0x234a29}=this['context'],_0x10b24d=_0x234a29['findChild'](this['index']+0x4,_0x234a29['buffer'][this['index']+0x3],_0xbc173>0x0?0x1:-0x1,_0x5ae81a-this['context']['start'],_0xbc173);return _0x10b24d<0x0?null:new BufferNode(this['context'],this,_0x10b24d);}get['parent'](){return this['_parent']||this['context']['parent']['nextSignificantParent']();}['externalSibling'](_0x1bd230){return this['_parent']?null:this['context']['parent']['nextChild'](this['context']['index']+_0x1bd230,_0x1bd230,0x0,0x4);}get['nextSibling'](){let {buffer:_0x37da0e}=this['context'],_0x1bb2ff=_0x37da0e['buffer'][this['index']+0x3];return _0x1bb2ff<(this['_parent']?_0x37da0e['buffer'][this['_parent']['index']+0x3]:_0x37da0e['buffer']['length'])?new BufferNode(this['context'],this['_parent'],_0x1bb2ff):this['externalSibling'](0x1);}get['prevSibling'](){let {buffer:_0x4f7be7}=this['context'],_0x55b659=this['_parent']?this['_parent']['index']+0x4:0x0;return this['index']==_0x55b659?this['externalSibling'](-0x1):new BufferNode(this['context'],this['_parent'],_0x4f7be7['findChild'](_0x55b659,this['index'],-0x1,0x0,0x4));}get['tree'](){return null;}['toTree'](){let _0x23937d=[],_0x149b14=[],{buffer:_0x149b19}=this['context'],_0x3f9f92=this['index']+0x4,_0x10f513=_0x149b19['buffer'][this['index']+0x3];if(_0x10f513>_0x3f9f92){let _0x9f95d7=_0x149b19['buffer'][this['index']+0x1];_0x23937d['push'](_0x149b19['slice'](_0x3f9f92,_0x10f513,_0x9f95d7)),_0x149b14['push'](0x0);}return new Tree(this['type'],_0x23937d,_0x149b14,this['to']-this['from']);}['toString'](){return this['context']['buffer']['childString'](this['index']);}}function iterStack(_0x433078){if(!_0x433078['length'])return null;let _0x569091=0x0,_0x582cab=_0x433078[0x0];for(let _0x52cc0b=0x1;_0x52cc0b<_0x433078['length'];_0x52cc0b++){let _0x5b4eff=_0x433078[_0x52cc0b];(_0x5b4eff['from']>_0x582cab['from']||_0x5b4eff['to']<_0x582cab['to'])&&(_0x582cab=_0x5b4eff,_0x569091=_0x52cc0b);}let _0x5f09db=_0x582cab instanceof TreeNode&&_0x582cab['index']<0x0?null:_0x582cab['parent'],_0x5d53fa=_0x433078['slice']();return _0x5f09db?_0x5d53fa[_0x569091]=_0x5f09db:_0x5d53fa['splice'](_0x569091,0x1),new StackIterator(_0x5d53fa,_0x582cab);}class StackIterator{constructor(_0x4f4366,_0x4df31b){this['heads']=_0x4f4366,this['node']=_0x4df31b;}get['next'](){return iterStack(this['heads']);}}function stackIterator(_0x575c3b,_0x24610d,_0x1623a0){let _0x21d4d5=_0x575c3b['resolveInner'](_0x24610d,_0x1623a0),_0x4c4c72=null;for(let _0x514840=_0x21d4d5 instanceof TreeNode?_0x21d4d5:_0x21d4d5['context']['parent'];_0x514840;_0x514840=_0x514840['parent'])if(_0x514840['index']<0x0){let _0x2a5960=_0x514840['parent'];(_0x4c4c72||(_0x4c4c72=[_0x21d4d5]))['push'](_0x2a5960['resolve'](_0x24610d,_0x1623a0)),_0x514840=_0x2a5960;}else{let _0x484b49=MountedTree['get'](_0x514840['tree']);if(_0x484b49&&_0x484b49['overlay']&&_0x484b49['overlay'][0x0]['from']<=_0x24610d&&_0x484b49['overlay'][_0x484b49['overlay']['length']-0x1]['to']>=_0x24610d){let _0x23d6ca=new TreeNode(_0x484b49['tree'],_0x484b49['overlay'][0x0]['from']+_0x514840['from'],-0x1,_0x514840);(_0x4c4c72||(_0x4c4c72=[_0x21d4d5]))['push'](resolveNode(_0x23d6ca,_0x24610d,_0x1623a0,!0x1));}}return _0x4c4c72?iterStack(_0x4c4c72):_0x21d4d5;}class TreeCursor{get['name'](){return this['type']['name'];}constructor(_0xb16abf,_0x27af01=0x0){if(this['mode']=_0x27af01,this['buffer']=null,this['stack']=[],this['index']=0x0,this['bufferNode']=null,_0xb16abf instanceof TreeNode)this['yieldNode'](_0xb16abf);else{this['_tree']=_0xb16abf['context']['parent'],this['buffer']=_0xb16abf['context'];for(let _0x50afb3=_0xb16abf['_parent'];_0x50afb3;_0x50afb3=_0x50afb3['_parent'])this['stack']['unshift'](_0x50afb3['index']);this['bufferNode']=_0xb16abf,this['yieldBuf'](_0xb16abf['index']);}}['yieldNode'](_0x4ba4af){return!!_0x4ba4af&&(this['_tree']=_0x4ba4af,this['type']=_0x4ba4af['type'],this['from']=_0x4ba4af['from'],this['to']=_0x4ba4af['to'],!0x0);}['yieldBuf'](_0x6267a0,_0x3bc062){this['index']=_0x6267a0;let {start:_0x43165c,buffer:_0x5d4e18}=this['buffer'];return this['type']=_0x3bc062||_0x5d4e18['set']['types'][_0x5d4e18['buffer'][_0x6267a0]],this['from']=_0x43165c+_0x5d4e18['buffer'][_0x6267a0+0x1],this['to']=_0x43165c+_0x5d4e18['buffer'][_0x6267a0+0x2],!0x0;}['yield'](_0x4b187e){return!!_0x4b187e&&(_0x4b187e instanceof TreeNode?(this['buffer']=null,this['yieldNode'](_0x4b187e)):(this['buffer']=_0x4b187e['context'],this['yieldBuf'](_0x4b187e['index'],_0x4b187e['type'])));}['toString'](){return this['buffer']?this['buffer']['buffer']['childString'](this['index']):this['_tree']['toString']();}['enterChild'](_0x297dd9,_0x4b3215,_0x5596d6){if(!this['buffer'])return this['yield'](this['_tree']['nextChild'](_0x297dd9<0x0?this['_tree']['_tree']['children']['length']-0x1:0x0,_0x297dd9,_0x4b3215,_0x5596d6,this['mode']));let {buffer:_0x51b0d7}=this['buffer'],_0x1742b6=_0x51b0d7['findChild'](this['index']+0x4,_0x51b0d7['buffer'][this['index']+0x3],_0x297dd9,_0x4b3215-this['buffer']['start'],_0x5596d6);return!(_0x1742b6<0x0)&&(this['stack']['push'](this['index']),this['yieldBuf'](_0x1742b6));}['firstChild'](){return this['enterChild'](0x1,0x0,0x4);}['lastChild'](){return this['enterChild'](-0x1,0x0,0x4);}['childAfter'](_0x2cecfe){return this['enterChild'](0x1,_0x2cecfe,0x2);}['childBefore'](_0x43d3d9){return this['enterChild'](-0x1,_0x43d3d9,-0x2);}['enter'](_0x5dd355,_0x34a162,_0x44f853=this['mode']){return this['buffer']?!(_0x44f853&IterMode['ExcludeBuffers'])&&this['enterChild'](0x1,_0x5dd355,_0x34a162):this['yield'](this['_tree']['enter'](_0x5dd355,_0x34a162,_0x44f853));}['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 _0x532e72=this['mode']&IterMode['IncludeAnonymous']?this['buffer']['parent']:this['buffer']['parent']['nextSignificantParent']();return this['buffer']=null,this['yieldNode'](_0x532e72);}['sibling'](_0x403f29){if(!this['buffer'])return!!this['_tree']['_parent']&&this['yield'](this['_tree']['index']<0x0?null:this['_tree']['_parent']['nextChild'](this['_tree']['index']+_0x403f29,_0x403f29,0x0,0x4,this['mode']));let {buffer:_0x32770d}=this['buffer'],_0xe0f685=this['stack']['length']-0x1;if(_0x403f29<0x0){let _0x489967=_0xe0f685<0x0?0x0:this['stack'][_0xe0f685]+0x4;if(this['index']!=_0x489967)return this['yieldBuf'](_0x32770d['findChild'](_0x489967,this['index'],-0x1,0x0,0x4));}else{let _0x513cee=_0x32770d['buffer'][this['index']+0x3];if(_0x513cee<(_0xe0f685<0x0?_0x32770d['buffer']['length']:_0x32770d['buffer'][this['stack'][_0xe0f685]+0x3]))return this['yieldBuf'](_0x513cee);}return _0xe0f685<0x0&&this['yield'](this['buffer']['parent']['nextChild'](this['buffer']['index']+_0x403f29,_0x403f29,0x0,0x4,this['mode']));}['nextSibling'](){return this['sibling'](0x1);}['prevSibling'](){return this['sibling'](-0x1);}['atLastNode'](_0x31bff9){let _0x34aa21,_0x1394b6,{buffer:_0x283316}=this;if(_0x283316){if(_0x31bff9>0x0){if(this['index']<_0x283316['buffer']['buffer']['length'])return!0x1;}else{for(let _0x570468=0x0;_0x570468<this['index'];_0x570468++)if(_0x283316['buffer']['buffer'][_0x570468+0x3]<this['index'])return!0x1;}({index:_0x34aa21,parent:_0x1394b6}=_0x283316);}else({index:_0x34aa21,_parent:_0x1394b6}=this['_tree']);for(;_0x1394b6;{index:_0x34aa21,_parent:_0x1394b6}=_0x1394b6)if(_0x34aa21>-0x1)for(let _0x1d8353=_0x34aa21+_0x31bff9,_0xa59bd8=_0x31bff9<0x0?-0x1:_0x1394b6['_tree']['children']['length'];_0x1d8353!=_0xa59bd8;_0x1d8353+=_0x31bff9){let _0xba9f32=_0x1394b6['_tree']['children'][_0x1d8353];if(this['mode']&IterMode['IncludeAnonymous']||_0xba9f32 instanceof TreeBuffer||!_0xba9f32['type']['isAnonymous']||hasChild(_0xba9f32))return!0x1;}return!0x0;}['move'](_0x54db1d,_0x1ece69){if(_0x1ece69&&this['enterChild'](_0x54db1d,0x0,0x4))return!0x0;for(;;){if(this['sibling'](_0x54db1d))return!0x0;if(this['atLastNode'](_0x54db1d)||!this['parent']())return!0x1;}}['next'](_0x58b94c=!0x0){return this['move'](0x1,_0x58b94c);}['prev'](_0x542d2d=!0x0){return this['move'](-0x1,_0x542d2d);}['moveTo'](_0x5c2962,_0x4caae4=0x0){for(;(this['from']==this['to']||(_0x4caae4<0x1?this['from']>=_0x5c2962:this['from']>_0x5c2962)||(_0x4caae4>-0x1?this['to']<=_0x5c2962:this['to']<_0x5c2962))&&this['parent'](););for(;this['enterChild'](0x1,_0x5c2962,_0x4caae4););return this;}get['node'](){if(!this['buffer'])return this['_tree'];let _0x315120=this['bufferNode'],_0x1aff30=null,_0x2074c2=0x0;if(_0x315120&&_0x315120['context']==this['buffer']){t:for(let _0x35ed86=this['index'],_0x1edade=this['stack']['length'];_0x1edade>=0x0;){for(let _0x2207ec=_0x315120;_0x2207ec;_0x2207ec=_0x2207ec['_parent'])if(_0x2207ec['index']==_0x35ed86){if(_0x35ed86==this['index'])return _0x2207ec;_0x1aff30=_0x2207ec,_0x2074c2=_0x1edade+0x1;break t;}_0x35ed86=this['stack'][--_0x1edade];}}for(let _0x168473=_0x2074c2;_0x168473<this['stack']['length'];_0x168473++)_0x1aff30=new BufferNode(this['buffer'],_0x1aff30,this['stack'][_0x168473]);return this['bufferNode']=new BufferNode(this['buffer'],_0x1aff30,this['index']);}get['tree'](){return this['buffer']?null:this['_tree']['_tree'];}['iterate'](_0x52298b,_0x18b598){for(let _0x38b7de=0x0;;){let _0x1f4aec=!0x1;if(this['type']['isAnonymous']||!0x1!==_0x52298b(this)){if(this['firstChild']()){_0x38b7de++;continue;}this['type']['isAnonymous']||(_0x1f4aec=!0x0);}for(;;){if(_0x1f4aec&&_0x18b598&&_0x18b598(this),_0x1f4aec=this['type']['isAnonymous'],!_0x38b7de)return;if(this['nextSibling']())break;this['parent'](),_0x38b7de--,_0x1f4aec=!0x0;}}}['matchContext'](_0x5a002a){if(!this['buffer'])return matchNodeContext(this['node']['parent'],_0x5a002a);let {buffer:_0x111970}=this['buffer'],{types:_0x5bd6dd}=_0x111970['set'];for(let _0x326a56=_0x5a002a['length']-0x1,_0x37887e=this['stack']['length']-0x1;_0x326a56>=0x0;_0x37887e--){if(_0x37887e<0x0)return matchNodeContext(this['_tree'],_0x5a002a,_0x326a56);let _0x569c4d=_0x5bd6dd[_0x111970['buffer'][this['stack'][_0x37887e]]];if(!_0x569c4d['isAnonymous']){if(_0x5a002a[_0x326a56]&&_0x5a002a[_0x326a56]!=_0x569c4d['name'])return!0x1;_0x326a56--;}}return!0x0;}}function hasChild(_0x3e26ad){return _0x3e26ad['children']['some'](_0x8394c8=>_0x8394c8 instanceof TreeBuffer||!_0x8394c8['type']['isAnonymous']||hasChild(_0x8394c8));}function buildTree(_0x474adf){var _0x17e6b9;let {buffer:_0x1d9061,nodeSet:_0x3478d3,maxBufferLength:_0x2a743b=DefaultBufferLength,reused:_0x1d531b=[],minRepeatType:_0x4914b1=_0x3478d3['types']['length']}=_0x474adf,_0x36a317=Array['isArray'](_0x1d9061)?new FlatBufferCursor(_0x1d9061,_0x1d9061['length']):_0x1d9061,_0x5d4b9d=_0x3478d3['types'],_0x225522=0x0,_0x6f0330=0x0;function _0x5e706f(_0x2532bc,_0x59da25,_0x117343,_0x5aaf3e,_0x54f7e6,_0x477eb8){let {id:_0x426c2a,start:_0x501dd7,end:_0x56c66a,size:_0x67cae0}=_0x36a317,_0x3f53e8=_0x6f0330,_0x3d7f5f=_0x225522;if(_0x67cae0<0x0){if(_0x36a317['next'](),-0x1==_0x67cae0){let _0x139233=_0x1d531b[_0x426c2a];return _0x117343['push'](_0x139233),void _0x5aaf3e['push'](_0x501dd7-_0x2532bc);}if(-0x3==_0x67cae0)return void(_0x225522=_0x426c2a);if(-0x4==_0x67cae0)return void(_0x6f0330=_0x426c2a);throw new RangeError('Unrecognized\x20record\x20size:\x20'+_0x67cae0);}let _0x42a4b0,_0x239508,_0x732abc=_0x5d4b9d[_0x426c2a],_0x1d1961=_0x501dd7-_0x2532bc;if(_0x56c66a-_0x501dd7<=_0x2a743b&&(_0x239508=function(_0x25b9b6,_0x3d43c0){let _0x4caf3a=_0x36a317['fork'](),_0x129979=0x0,_0x398f86=0x0,_0xf4a7e0=0x0,_0x5e4f0c=_0x4caf3a['end']-_0x2a743b,_0x321905={'size':0x0,'start':0x0,'skip':0x0};t:for(let _0x1803f0=_0x4caf3a['pos']-_0x25b9b6;_0x4caf3a['pos']>_0x1803f0;){let _0x33a252=_0x4caf3a['size'];if(_0x4caf3a['id']==_0x3d43c0&&_0x33a252>=0x0){_0x321905['size']=_0x129979,_0x321905['start']=_0x398f86,_0x321905['skip']=_0xf4a7e0,_0xf4a7e0+=0x4,_0x129979+=0x4,_0x4caf3a['next']();continue;}let _0x159f8c=_0x4caf3a['pos']-_0x33a252;if(_0x33a252<0x0||_0x159f8c<_0x1803f0||_0x4caf3a['start']<_0x5e4f0c)break;let _0x236ea4=_0x4caf3a['id']>=_0x4914b1?0x4:0x0,_0x1309db=_0x4caf3a['start'];for(_0x4caf3a['next']();_0x4caf3a['pos']>_0x159f8c;){if(_0x4caf3a['size']<0x0){if(-0x3!=_0x4caf3a['size'])break t;_0x236ea4+=0x4;}else _0x4caf3a['id']>=_0x4914b1&&(_0x236ea4+=0x4);_0x4caf3a['next']();}_0x398f86=_0x1309db,_0x129979+=_0x33a252,_0xf4a7e0+=_0x236ea4;}return(_0x3d43c0<0x0||_0x129979==_0x25b9b6)&&(_0x321905['size']=_0x129979,_0x321905['start']=_0x398f86,_0x321905['skip']=_0xf4a7e0),_0x321905['size']>0x4?_0x321905:void 0x0;}(_0x36a317['pos']-_0x59da25,_0x54f7e6))){let _0x54092c=new Uint16Array(_0x239508['size']-_0x239508['skip']),_0x3d38f8=_0x36a317['pos']-_0x239508['size'],_0x42e0db=_0x54092c['length'];for(;_0x36a317['pos']>_0x3d38f8;)_0x42e0db=_0x538047(_0x239508['start'],_0x54092c,_0x42e0db);_0x42a4b0=new TreeBuffer(_0x54092c,_0x56c66a-_0x239508['start'],_0x3478d3),_0x1d1961=_0x239508['start']-_0x2532bc;}else{let _0x1ff239=_0x36a317['pos']-_0x67cae0;_0x36a317['next']();let _0x21b616=[],_0x3e1b24=[],_0x17af28=_0x426c2a>=_0x4914b1?_0x426c2a:-0x1,_0x5c1fa5=0x0,_0x3047bd=_0x56c66a;for(;_0x36a317['pos']>_0x1ff239;)_0x17af28>=0x0&&_0x36a317['id']==_0x17af28&&_0x36a317['size']>=0x0?(_0x36a317['end']<=_0x3047bd-_0x2a743b&&(_0x39a05e(_0x21b616,_0x3e1b24,_0x501dd7,_0x5c1fa5,_0x36a317['end'],_0x3047bd,_0x17af28,_0x3f53e8,_0x3d7f5f),_0x5c1fa5=_0x21b616['length'],_0x3047bd=_0x36a317['end']),_0x36a317['next']()):_0x477eb8>0x9c4?_0xa13556(_0x501dd7,_0x1ff239,_0x21b616,_0x3e1b24):_0x5e706f(_0x501dd7,_0x1ff239,_0x21b616,_0x3e1b24,_0x17af28,_0x477eb8+0x1);if(_0x17af28>=0x0&&_0x5c1fa5>0x0&&_0x5c1fa5<_0x21b616['length']&&_0x39a05e(_0x21b616,_0x3e1b24,_0x501dd7,_0x5c1fa5,_0x501dd7,_0x3047bd,_0x17af28,_0x3f53e8,_0x3d7f5f),_0x21b616['reverse'](),_0x3e1b24['reverse'](),_0x17af28>-0x1&&_0x5c1fa5>0x0){let _0x5ecf7f=function(_0x2d9585,_0x462414){return(_0x5809f3,_0x51825f,_0x36eb2d)=>{let _0xa0843a,_0xfb751,_0x48aa28=0x0,_0x594a6a=_0x5809f3['length']-0x1;if(_0x594a6a>=0x0&&(_0xa0843a=_0x5809f3[_0x594a6a])instanceof Tree){if(!_0x594a6a&&_0xa0843a['type']==_0x2d9585&&_0xa0843a['length']==_0x36eb2d)return _0xa0843a;(_0xfb751=_0xa0843a['prop'](NodeProp['lookAhead']))&&(_0x48aa28=_0x51825f[_0x594a6a]+_0xa0843a['length']+_0xfb751);}return _0x2931a7(_0x2d9585,_0x5809f3,_0x51825f,_0x36eb2d,_0x48aa28,_0x462414);};}(_0x732abc,_0x3d7f5f);_0x42a4b0=balanceRange(_0x732abc,_0x21b616,_0x3e1b24,0x0,_0x21b616['length'],0x0,_0x56c66a-_0x501dd7,_0x5ecf7f,_0x5ecf7f);}else _0x42a4b0=_0x2931a7(_0x732abc,_0x21b616,_0x3e1b24,_0x56c66a-_0x501dd7,_0x3f53e8-_0x56c66a,_0x3d7f5f);}_0x117343['push'](_0x42a4b0),_0x5aaf3e['push'](_0x1d1961);}function _0xa13556(_0x1dcb33,_0x21b270,_0x3ddb45,_0x45694e){let _0x57a783=[],_0x2e696a=0x0,_0x1947f3=-0x1;for(;_0x36a317['pos']>_0x21b270;){let {id:_0x17fff4,start:_0x420453,end:_0xe0f880,size:_0x32d776}=_0x36a317;if(_0x32d776>0x4)_0x36a317['next']();else{if(_0x1947f3>-0x1&&_0x420453<_0x1947f3)break;_0x1947f3<0x0&&(_0x1947f3=_0xe0f880-_0x2a743b),_0x57a783['push'](_0x17fff4,_0x420453,_0xe0f880),_0x2e696a++,_0x36a317['next']();}}if(_0x2e696a){let _0x46f265=new Uint16Array(0x4*_0x2e696a),_0x63c8b6=_0x57a783[_0x57a783['length']-0x2];for(let _0x22f620=_0x57a783['length']-0x3,_0x54b323=0x0;_0x22f620>=0x0;_0x22f620-=0x3)_0x46f265[_0x54b323++]=_0x57a783[_0x22f620],_0x46f265[_0x54b323++]=_0x57a783[_0x22f620+0x1]-_0x63c8b6,_0x46f265[_0x54b323++]=_0x57a783[_0x22f620+0x2]-_0x63c8b6,_0x46f265[_0x54b323++]=_0x54b323;_0x3ddb45['push'](new TreeBuffer(_0x46f265,_0x57a783[0x2]-_0x63c8b6,_0x3478d3)),_0x45694e['push'](_0x63c8b6-_0x1dcb33);}}function _0x39a05e(_0x5dda66,_0x3a43fe,_0x33e39f,_0x2e18c2,_0x2d58fa,_0x5e325a,_0x38b032,_0x1218f5,_0xc8f485){let _0x43c591=[],_0x282bfc=[];for(;_0x5dda66['length']>_0x2e18c2;)_0x43c591['push'](_0x5dda66['pop']()),_0x282bfc['push'](_0x3a43fe['pop']()+_0x33e39f-_0x2d58fa);_0x5dda66['push'](_0x2931a7(_0x3478d3['types'][_0x38b032],_0x43c591,_0x282bfc,_0x5e325a-_0x2d58fa,_0x1218f5-_0x5e325a,_0xc8f485)),_0x3a43fe['push'](_0x2d58fa-_0x33e39f);}function _0x2931a7(_0x2b1bce,_0x1e4b51,_0xcc255,_0x98d754,_0x4da5fa,_0x20b7fb,_0x33ed66){if(_0x20b7fb){let _0x56a4dc=[NodeProp['contextHash'],_0x20b7fb];_0x33ed66=_0x33ed66?[_0x56a4dc]['concat'](_0x33ed66):[_0x56a4dc];}if(_0x4da5fa>0x19){let _0x15c4d=[NodeProp['lookAhead'],_0x4da5fa];_0x33ed66=_0x33ed66?[_0x15c4d]['concat'](_0x33ed66):[_0x15c4d];}return new Tree(_0x2b1bce,_0x1e4b51,_0xcc255,_0x98d754,_0x33ed66);}function _0x538047(_0x5e115e,_0x28c4f1,_0x27f0de){let {id:_0x1f7de1,start:_0x212805,end:_0x1fa96e,size:_0x4a32d5}=_0x36a317;if(_0x36a317['next'](),_0x4a32d5>=0x0&&_0x1f7de1<_0x4914b1){let _0x4656b0=_0x27f0de;if(_0x4a32d5>0x4){let _0x18907a=_0x36a317['pos']-(_0x4a32d5-0x4);for(;_0x36a317['pos']>_0x18907a;)_0x27f0de=_0x538047(_0x5e115e,_0x28c4f1,_0x27f0de);}_0x28c4f1[--_0x27f0de]=_0x4656b0,_0x28c4f1[--_0x27f0de]=_0x1fa96e-_0x5e115e,_0x28c4f1[--_0x27f0de]=_0x212805-_0x5e115e,_0x28c4f1[--_0x27f0de]=_0x1f7de1;}else-0x3==_0x4a32d5?_0x225522=_0x1f7de1:-0x4==_0x4a32d5&&(_0x6f0330=_0x1f7de1);return _0x27f0de;}let _0x589ceb=[],_0x2b251b=[];for(;_0x36a317['pos']>0x0;)_0x5e706f(_0x474adf['start']||0x0,_0x474adf['bufferStart']||0x0,_0x589ceb,_0x2b251b,-0x1,0x0);let _0x409547=null!==(_0x17e6b9=_0x474adf['length'])&&void 0x0!==_0x17e6b9?_0x17e6b9:_0x589ceb['length']?_0x2b251b[0x0]+_0x589ceb[0x0]['length']:0x0;return new Tree(_0x5d4b9d[_0x474adf['topID']],_0x589ceb['reverse'](),_0x2b251b['reverse'](),_0x409547);}const nodeSizeCache=new WeakMap();function nodeSize(_0x1547b7,_0x4bccf6){if(!_0x1547b7['isAnonymous']||_0x4bccf6 instanceof TreeBuffer||_0x4bccf6['type']!=_0x1547b7)return 0x1;let _0x592e57=nodeSizeCache['get'](_0x4bccf6);if(null==_0x592e57){_0x592e57=0x1;for(let _0x190f18 of _0x4bccf6['children']){if(_0x190f18['type']!=_0x1547b7||!(_0x190f18 instanceof Tree)){_0x592e57=0x1;break;}_0x592e57+=nodeSize(_0x1547b7,_0x190f18);}nodeSizeCache['set'](_0x4bccf6,_0x592e57);}return _0x592e57;}function balanceRange(_0x3a0501,_0x1ada3c,_0x4376a6,_0x115a6d,_0x4c79c2,_0x10b12e,_0x16caa8,_0x294834,_0x494768){let _0x5e6489=0x0;for(let _0x2bab6a=_0x115a6d;_0x2bab6a<_0x4c79c2;_0x2bab6a++)_0x5e6489+=nodeSize(_0x3a0501,_0x1ada3c[_0x2bab6a]);let _0xa4f1a8=Math['ceil'](1.5*_0x5e6489/0x8),_0x191c06=[],_0x56d41d=[];return function _0x186cd6(_0x56420a,_0x390e5c,_0x399a65,_0x1007e6,_0x316216){for(let _0x2a670e=_0x399a65;_0x2a670e<_0x1007e6;){let _0x12e5aa=_0x2a670e,_0x84392d=_0x390e5c[_0x2a670e],_0x1103bb=nodeSize(_0x3a0501,_0x56420a[_0x2a670e]);for(_0x2a670e++;_0x2a670e<_0x1007e6;_0x2a670e++){let _0x399d08=nodeSize(_0x3a0501,_0x56420a[_0x2a670e]);if(_0x1103bb+_0x399d08>=_0xa4f1a8)break;_0x1103bb+=_0x399d08;}if(_0x2a670e==_0x12e5aa+0x1){if(_0x1103bb>_0xa4f1a8){let _0x4326c9=_0x56420a[_0x12e5aa];_0x186cd6(_0x4326c9['children'],_0x4326c9['positions'],0x0,_0x4326c9['children']['length'],_0x390e5c[_0x12e5aa]+_0x316216);continue;}_0x191c06['push'](_0x56420a[_0x12e5aa]);}else{let _0x4fa8da=_0x390e5c[_0x2a670e-0x1]+_0x56420a[_0x2a670e-0x1]['length']-_0x84392d;_0x191c06['push'](balanceRange(_0x3a0501,_0x56420a,_0x390e5c,_0x12e5aa,_0x2a670e,_0x84392d,_0x4fa8da,null,_0x494768));}_0x56d41d['push'](_0x84392d+_0x316216-_0x10b12e);}}(_0x1ada3c,_0x4376a6,_0x115a6d,_0x4c79c2,0x0),(_0x294834||_0x494768)(_0x191c06,_0x56d41d,_0x16caa8);}class NodeWeakMap{constructor(){this['map']=new WeakMap();}['setBuffer'](_0x2dc750,_0x34dd4b,_0x1487b3){let _0x1ac661=this['map']['get'](_0x2dc750);_0x1ac661||this['map']['set'](_0x2dc750,_0x1ac661=new Map()),_0x1ac661['set'](_0x34dd4b,_0x1487b3);}['getBuffer'](_0x1d034c,_0x51678c){let _0x358dba=this['map']['get'](_0x1d034c);return _0x358dba&&_0x358dba['get'](_0x51678c);}['set'](_0x5b5440,_0x4df95c){_0x5b5440 instanceof BufferNode?this['setBuffer'](_0x5b5440['context']['buffer'],_0x5b5440['index'],_0x4df95c):_0x5b5440 instanceof TreeNode&&this['map']['set'](_0x5b5440['tree'],_0x4df95c);}['get'](_0x3ca2e2){return _0x3ca2e2 instanceof BufferNode?this['getBuffer'](_0x3ca2e2['context']['buffer'],_0x3ca2e2['index']):_0x3ca2e2 instanceof TreeNode?this['map']['get'](_0x3ca2e2['tree']):void 0x0;}['cursorSet'](_0x4b4426,_0x214f80){_0x4b4426['buffer']?this['setBuffer'](_0x4b4426['buffer']['buffer'],_0x4b4426['index'],_0x214f80):this['map']['set'](_0x4b4426['tree'],_0x214f80);}['cursorGet'](_0xa309e8){return _0xa309e8['buffer']?this['getBuffer'](_0xa309e8['buffer']['buffer'],_0xa309e8['index']):this['map']['get'](_0xa309e8['tree']);}}class TreeFragment{constructor(_0x16e62b,_0x8b15c4,_0x5204ab,_0x10c8c4,_0x1de5df=!0x1,_0x450d8c=!0x1){this['from']=_0x16e62b,this['to']=_0x8b15c4,this['tree']=_0x5204ab,this['offset']=_0x10c8c4,this['open']=(_0x1de5df?0x1:0x0)|(_0x450d8c?0x2:0x0);}get['openStart'](){return(0x1&this['open'])>0x0;}get['openEnd'](){return(0x2&this['open'])>0x0;}static['addTree'](_0x2f947b,_0x4c7646=[],_0x4d7a1c=!0x1){let _0x13ea14=[new TreeFragment(0x0,_0x2f947b['length'],_0x2f947b,0x0,!0x1,_0x4d7a1c)];for(let _0x17e46d of _0x4c7646)_0x17e46d['to']>_0x2f947b['length']&&_0x13ea14['push'](_0x17e46d);return _0x13ea14;}static['applyChanges'](_0x9866c5,_0x2eaafe,_0x3dc4b0=0x80){if(!_0x2eaafe['length'])return _0x9866c5;let _0x2cc2fe=[],_0x56a0de=0x1,_0x4b79b1=_0x9866c5['length']?_0x9866c5[0x0]:null;for(let _0x560696=0x0,_0x8bf658=0x0,_0xcdc8a5=0x0;;_0x560696++){let _0xa4c08a=_0x560696<_0x2eaafe['length']?_0x2eaafe[_0x560696]:null,_0x1be83f=_0xa4c08a?_0xa4c08a['fromA']:0x3b9aca00;if(_0x1be83f-_0x8bf658>=_0x3dc4b0)for(;_0x4b79b1&&_0x4b79b1['from']<_0x1be83f;){let _0x32ca9e=_0x4b79b1;if(_0x8bf658>=_0x32ca9e['from']||_0x1be83f<=_0x32ca9e['to']||_0xcdc8a5){let _0x4eed4a=Math['max'](_0x32ca9e['from'],_0x8bf658)-_0xcdc8a5,_0x3d2b4f=Math['min'](_0x32ca9e['to'],_0x1be83f)-_0xcdc8a5;_0x32ca9e=_0x4eed4a>=_0x3d2b4f?null:new TreeFragment(_0x4eed4a,_0x3d2b4f,_0x32ca9e['tree'],_0x32ca9e['offset']+_0xcdc8a5,_0x560696>0x0,!!_0xa4c08a);}if(_0x32ca9e&&_0x2cc2fe['push'](_0x32ca9e),_0x4b79b1['to']>_0x1be83f)break;_0x4b79b1=_0x56a0de<_0x9866c5['length']?_0x9866c5[_0x56a0de++]:null;}if(!_0xa4c08a)break;_0x8bf658=_0xa4c08a['toA'],_0xcdc8a5=_0xa4c08a['toA']-_0xa4c08a['toB'];}return _0x2cc2fe;}}class Parser{['startParse'](_0x3cf138,_0x10d9d8,_0x5e2db7){return'string'==typeof _0x3cf138&&(_0x3cf138=new StringInput(_0x3cf138)),_0x5e2db7=_0x5e2db7?_0x5e2db7['length']?_0x5e2db7['map'](_0x1db29f=>new Range(_0x1db29f['from'],_0x1db29f['to'])):[new Range(0x0,0x0)]:[new Range(0x0,_0x3cf138['length'])],this['createParse'](_0x3cf138,_0x10d9d8||[],_0x5e2db7);}['parse'](_0x526f5e,_0x8de453,_0x20b94d){let _0x45ebfd=this['startParse'](_0x526f5e,_0x8de453,_0x20b94d);for(;;){let _0x273608=_0x45ebfd['advance']();if(_0x273608)return _0x273608;}}}class StringInput{constructor(_0x4fb7c8){this['string']=_0x4fb7c8;}get['length'](){return this['string']['length'];}['chunk'](_0x44e48d){return this['string']['slice'](_0x44e48d);}get['lineChunks'](){return!0x1;}['read'](_0x589631,_0x2718af){return this['string']['slice'](_0x589631,_0x2718af);}}function parseMixed(_0x3ca1a7){return(_0x947023,_0x41f272,_0x3852ec,_0x219e08)=>new MixedParse(_0x947023,_0x3ca1a7,_0x41f272,_0x3852ec,_0x219e08);}class InnerParse{constructor(_0x51bb95,_0x361126,_0x17ac6c,_0x22c447,_0x3e03ef){this['parser']=_0x51bb95,this['parse']=_0x361126,this['overlay']=_0x17ac6c,this['target']=_0x22c447,this['from']=_0x3e03ef;}}function checkRanges(_0x14fb2a){if(!_0x14fb2a['length']||_0x14fb2a['some'](_0x3d715f=>_0x3d715f['from']>=_0x3d715f['to']))throw new RangeError('Invalid\x20inner\x20parse\x20ranges\x20given:\x20'+JSON['stringify'](_0x14fb2a));}class ActiveOverlay{constructor(_0x4583b8,_0x51c016,_0x573d92,_0x426690,_0x34f694,_0x3caf1b,_0x1d5b63){this['parser']=_0x4583b8,this['predicate']=_0x51c016,this['mounts']=_0x573d92,this['index']=_0x426690,this['start']=_0x34f694,this['target']=_0x3caf1b,this['prev']=_0x1d5b63,this['depth']=0x0,this['ranges']=[];}}const stoppedInner=new NodeProp({'perNode':!0x0});class MixedParse{constructor(_0x4db0a9,_0x6060c2,_0x3c7735,_0x4466a4,_0x399db5){this['nest']=_0x6060c2,this['input']=_0x3c7735,this['fragments']=_0x4466a4,this['ranges']=_0x399db5,this['inner']=[],this['innerDone']=0x0,this['baseTree']=null,this['stoppedAt']=null,this['baseParse']=_0x4db0a9;}['advance'](){if(this['baseParse']){let _0x4013c2=this['baseParse']['advance']();if(!_0x4013c2)return null;if(this['baseParse']=null,this['baseTree']=_0x4013c2,this['startInner'](),null!=this['stoppedAt']){for(let _0x5e7a48 of this['inner'])_0x5e7a48['parse']['stopAt'](this['stoppedAt']);}}if(this['innerDone']==this['inner']['length']){let _0x481cb4=this['baseTree'];return null!=this['stoppedAt']&&(_0x481cb4=new Tree(_0x481cb4['type'],_0x481cb4['children'],_0x481cb4['positions'],_0x481cb4['length'],_0x481cb4['propValues']['concat']([[stoppedInner,this['stoppedAt']]]))),_0x481cb4;}let _0x496528=this['inner'][this['innerDone']],_0x2ebb5=_0x496528['parse']['advance']();if(_0x2ebb5){this['innerDone']++;let _0x50d481=Object['assign'](Object['create'](null),_0x496528['target']['props']);_0x50d481[NodeProp['mounted']['id']]=new MountedTree(_0x2ebb5,_0x496528['overlay'],_0x496528['parser']),_0x496528['target']['props']=_0x50d481;}return null;}get['parsedPos'](){if(this['baseParse'])return 0x0;let _0x542d5d=this['input']['length'];for(let _0x53493f=this['innerDone'];_0x53493f<this['inner']['length'];_0x53493f++)this['inner'][_0x53493f]['from']<_0x542d5d&&(_0x542d5d=Math['min'](_0x542d5d,this['inner'][_0x53493f]['parse']['parsedPos']));return _0x542d5d;}['stopAt'](_0x44daad){if(this['stoppedAt']=_0x44daad,this['baseParse'])this['baseParse']['stopAt'](_0x44daad);else{for(let _0x53df6c=this['innerDone'];_0x53df6c<this['inner']['length'];_0x53df6c++)this['inner'][_0x53df6c]['parse']['stopAt'](_0x44daad);}}['startInner'](){let _0x161da7=new FragmentCursor$2(this['fragments']),_0x37740c=null,_0x2ce509=null,_0x2e1c32=new TreeCursor(new TreeNode(this['baseTree'],this['ranges'][0x0]['from'],0x0,null),IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);t:for(let _0x18969b,_0x4609eb;;){let _0x148eac,_0x802ff1=!0x0;if(null!=this['stoppedAt']&&_0x2e1c32['from']>=this['stoppedAt'])_0x802ff1=!0x1;else{if(_0x161da7['hasNode'](_0x2e1c32)){if(_0x37740c){let _0x287f73=_0x37740c['mounts']['find'](_0x1c5c48=>_0x1c5c48['frag']['from']<=_0x2e1c32['from']&&_0x1c5c48['frag']['to']>=_0x2e1c32['to']&&_0x1c5c48['mount']['overlay']);if(_0x287f73)for(let _0xa4517c of _0x287f73['mount']['overlay']){let _0x484aee=_0xa4517c['from']+_0x287f73['pos'],_0x138035=_0xa4517c['to']+_0x287f73['pos'];_0x484aee>=_0x2e1c32['from']&&_0x138035<=_0x2e1c32['to']&&!_0x37740c['ranges']['some'](_0x242d9f=>_0x242d9f['from']<_0x138035&&_0x242d9f['to']>_0x484aee)&&_0x37740c['ranges']['push']({'from':_0x484aee,'to':_0x138035});}}_0x802ff1=!0x1;}else{if(_0x2ce509&&(_0x4609eb=checkCover(_0x2ce509['ranges'],_0x2e1c32['from'],_0x2e1c32['to'])))_0x802ff1=0x2!=_0x4609eb;else{if(!_0x2e1c32['type']['isAnonymous']&&(_0x18969b=this['nest'](_0x2e1c32,this['input']))&&(_0x2e1c32['from']<_0x2e1c32['to']||!_0x18969b['overlay'])){_0x2e1c32['tree']||(materialize(_0x2e1c32),_0x37740c&&_0x37740c['depth']++,_0x2ce509&&_0x2ce509['depth']++);let _0xc5593d=_0x161da7['findMounts'](_0x2e1c32['from'],_0x18969b['parser']);if('function'==typeof _0x18969b['overlay'])_0x37740c=new ActiveOverlay(_0x18969b['parser'],_0x18969b['overlay'],_0xc5593d,this['inner']['length'],_0x2e1c32['from'],_0x2e1c32['tree'],_0x37740c);else{let _0x3785bc=punchRanges(this['ranges'],_0x18969b['overlay']||(_0x2e1c32['from']<_0x2e1c32['to']?[new Range(_0x2e1c32['from'],_0x2e1c32['to'])]:[]));_0x3785bc['length']&&checkRanges(_0x3785bc),!_0x3785bc['length']&&_0x18969b['overlay']||this['inner']['push'](new InnerParse(_0x18969b['parser'],_0x3785bc['length']?_0x18969b['parser']['startParse'](this['input'],enterFragments(_0xc5593d,_0x3785bc),_0x3785bc):_0x18969b['parser']['startParse'](''),_0x18969b['overlay']?_0x18969b['overlay']['map'](_0x4c119c=>new Range(_0x4c119c['from']-_0x2e1c32['from'],_0x4c119c['to']-_0x2e1c32['from'])):null,_0x2e1c32['tree'],_0x3785bc['length']?_0x3785bc[0x0]['from']:_0x2e1c32['from'])),_0x18969b['overlay']?_0x3785bc['length']&&(_0x2ce509={'ranges':_0x3785bc,'depth':0x0,'prev':_0x2ce509}):_0x802ff1=!0x1;}}else{if(_0x37740c&&(_0x148eac=_0x37740c['predicate'](_0x2e1c32))&&(!0x0===_0x148eac&&(_0x148eac=new Range(_0x2e1c32['from'],_0x2e1c32['to'])),_0x148eac['from']<_0x148eac['to'])){let _0x1892f0=_0x37740c['ranges']['length']-0x1;_0x1892f0>=0x0&&_0x37740c['ranges'][_0x1892f0]['to']==_0x148eac['from']?_0x37740c['ranges'][_0x1892f0]={'from':_0x37740c['ranges'][_0x1892f0]['from'],'to':_0x148eac['to']}:_0x37740c['ranges']['push'](_0x148eac);}}}}}if(_0x802ff1&&_0x2e1c32['firstChild']())_0x37740c&&_0x37740c['depth']++,_0x2ce509&&_0x2ce509['depth']++;else for(;!_0x2e1c32['nextSibling']();){if(!_0x2e1c32['parent']())break t;if(_0x37740c&&!--_0x37740c['depth']){let _0xdcf50f=punchRanges(this['ranges'],_0x37740c['ranges']);_0xdcf50f['length']&&(checkRanges(_0xdcf50f),this['inner']['splice'](_0x37740c['index'],0x0,new InnerParse(_0x37740c['parser'],_0x37740c['parser']['startParse'](this['input'],enterFragments(_0x37740c['mounts'],_0xdcf50f),_0xdcf50f),_0x37740c['ranges']['map'](_0x3c1335=>new Range(_0x3c1335['from']-_0x37740c['start'],_0x3c1335['to']-_0x37740c['start'])),_0x37740c['target'],_0xdcf50f[0x0]['from']))),_0x37740c=_0x37740c['prev'];}_0x2ce509&&!--_0x2ce509['depth']&&(_0x2ce509=_0x2ce509['prev']);}}}}function checkCover(_0x41271a,_0x4fea51,_0x32616f){for(let _0x22a5d9 of _0x41271a){if(_0x22a5d9['from']>=_0x32616f)break;if(_0x22a5d9['to']>_0x4fea51)return _0x22a5d9['from']<=_0x4fea51&&_0x22a5d9['to']>=_0x32616f?0x2:0x1;}return 0x0;}function sliceBuf(_0x565906,_0x177cea,_0x452f4d,_0x563240,_0x55b6c2,_0x1ebea1){if(_0x177cea<_0x452f4d){let _0x1569f1=_0x565906['buffer'][_0x177cea+0x1];_0x563240['push'](_0x565906['slice'](_0x177cea,_0x452f4d,_0x1569f1)),_0x55b6c2['push'](_0x1569f1-_0x1ebea1);}}function materialize(_0x207854){let {node:_0x3b3384}=_0x207854,_0x165c0d=[],_0x3b5456=_0x3b3384['context']['buffer'];do{_0x165c0d['push'](_0x207854['index']),_0x207854['parent']();}while(!_0x207854['tree']);let _0xabf877=_0x207854['tree'],_0x1476a1=_0xabf877['children']['indexOf'](_0x3b5456),_0x43a20d=_0xabf877['children'][_0x1476a1],_0x3801c5=_0x43a20d['buffer'],_0x5a3e23=[_0x1476a1];_0xabf877['children'][_0x1476a1]=function _0x4c8dd1(_0x40d3c2,_0x191439,_0x3df148,_0x3afe83,_0x878f17,_0x5efa45){let _0x3c6f14=_0x165c0d[_0x5efa45],_0x1175ac=[],_0x57490d=[];sliceBuf(_0x43a20d,_0x40d3c2,_0x3c6f14,_0x1175ac,_0x57490d,_0x3afe83);let _0x5671a7=_0x3801c5[_0x3c6f14+0x1],_0x40ee01=_0x3801c5[_0x3c6f14+0x2];_0x5a3e23['push'](_0x1175ac['length']);let _0x3ef93b=_0x5efa45?_0x4c8dd1(_0x3c6f14+0x4,_0x3801c5[_0x3c6f14+0x3],_0x43a20d['set']['types'][_0x3801c5[_0x3c6f14]],_0x5671a7,_0x40ee01-_0x5671a7,_0x5efa45-0x1):_0x3b3384['toTree']();return _0x1175ac['push'](_0x3ef93b),_0x57490d['push'](_0x5671a7-_0x3afe83),sliceBuf(_0x43a20d,_0x3801c5[_0x3c6f14+0x3],_0x191439,_0x1175ac,_0x57490d,_0x3afe83),new Tree(_0x3df148,_0x1175ac,_0x57490d,_0x878f17);}(0x0,_0x3801c5['length'],NodeType['none'],0x0,_0x43a20d['length'],_0x165c0d['length']-0x1);for(let _0x4a93ce of _0x5a3e23){let _0x9636af=_0x207854['tree']['children'][_0x4a93ce],_0x4b9391=_0x207854['tree']['positions'][_0x4a93ce];_0x207854['yield'](new TreeNode(_0x9636af,_0x4b9391+_0x207854['from'],_0x4a93ce,_0x207854['_tree']));}}class StructureCursor{constructor(_0x656cb,_0xbc647a){this['offset']=_0xbc647a,this['done']=!0x1,this['cursor']=_0x656cb['cursor'](IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);}['moveTo'](_0x292289){let {cursor:_0x5a6fe5}=this,_0x35c538=_0x292289-this['offset'];for(;!this['done']&&_0x5a6fe5['from']<_0x35c538;)_0x5a6fe5['to']>=_0x292289&&_0x5a6fe5['enter'](_0x35c538,0x1,IterMode['IgnoreOverlays']|IterMode['ExcludeBuffers'])||_0x5a6fe5['next'](!0x1)||(this['done']=!0x0);}['hasNode'](_0x260bae){if(this['moveTo'](_0x260bae['from']),!this['done']&&this['cursor']['from']+this['offset']==_0x260bae['from']&&this['cursor']['tree'])for(let _0x54f5e5=this['cursor']['tree'];;){if(_0x54f5e5==_0x260bae['tree'])return!0x0;if(!(_0x54f5e5['children']['length']&&0x0==_0x54f5e5['positions'][0x0]&&_0x54f5e5['children'][0x0]instanceof Tree))break;_0x54f5e5=_0x54f5e5['children'][0x0];}return!0x1;}}let FragmentCursor$2=class{constructor(_0x38f718){var _0x21de6d;if(this['fragments']=_0x38f718,this['curTo']=0x0,this['fragI']=0x0,_0x38f718['length']){let _0x32c863=this['curFrag']=_0x38f718[0x0];this['curTo']=null!==(_0x21de6d=_0x32c863['tree']['prop'](stoppedInner))&&void 0x0!==_0x21de6d?_0x21de6d:_0x32c863['to'],this['inner']=new StructureCursor(_0x32c863['tree'],-_0x32c863['offset']);}else this['curFrag']=this['inner']=null;}['hasNode'](_0xc35a5){for(;this['curFrag']&&_0xc35a5['from']>=this['curTo'];)this['nextFrag']();return this['curFrag']&&this['curFrag']['from']<=_0xc35a5['from']&&this['curTo']>=_0xc35a5['to']&&this['inner']['hasNode'](_0xc35a5);}['nextFrag'](){var _0x2821f0;if(this['fragI']++,this['fragI']==this['fragments']['length'])this['curFrag']=this['inner']=null;else{let _0x204af0=this['curFrag']=this['fragments'][this['fragI']];this['curTo']=null!==(_0x2821f0=_0x204af0['tree']['prop'](stoppedInner))&&void 0x0!==_0x2821f0?_0x2821f0:_0x204af0['to'],this['inner']=new StructureCursor(_0x204af0['tree'],-_0x204af0['offset']);}}['findMounts'](_0x1b4a48,_0x475ca3){var _0x25ee91;let _0x378409=[];if(this['inner']){this['inner']['cursor']['moveTo'](_0x1b4a48,0x1);for(let _0x2d0f73=this['inner']['cursor']['node'];_0x2d0f73;_0x2d0f73=_0x2d0f73['parent']){let _0x435ed6=null===(_0x25ee91=_0x2d0f73['tree'])||void 0x0===_0x25ee91?void 0x0:_0x25ee91['prop'](NodeProp['mounted']);if(_0x435ed6&&_0x435ed6['parser']==_0x475ca3)for(let _0x1c5a9d=this['fragI'];_0x1c5a9d<this['fragments']['length'];_0x1c5a9d++){let _0x50b125=this['fragments'][_0x1c5a9d];if(_0x50b125['from']>=_0x2d0f73['to'])break;_0x50b125['tree']==this['curFrag']['tree']&&_0x378409['push']({'frag':_0x50b125,'pos':_0x2d0f73['from']-_0x50b125['offset'],'mount':_0x435ed6});}}}return _0x378409;}};function punchRanges(_0x1adcaf,_0xece042){let _0x1c0469=null,_0x538c52=_0xece042;for(let _0x20840d=0x1,_0x53d81b=0x0;_0x20840d<_0x1adcaf['length'];_0x20840d++){let _0x542209=_0x1adcaf[_0x20840d-0x1]['to'],_0x553bd1=_0x1adcaf[_0x20840d]['from'];for(;_0x53d81b<_0x538c52['length'];_0x53d81b++){let _0x3da82e=_0x538c52[_0x53d81b];if(_0x3da82e['from']>=_0x553bd1)break;_0x3da82e['to']<=_0x542209||(_0x1c0469||(_0x538c52=_0x1c0469=_0xece042['slice']()),_0x3da82e['from']<_0x542209?(_0x1c0469[_0x53d81b]=new Range(_0x3da82e['from'],_0x542209),_0x3da82e['to']>_0x553bd1&&_0x1c0469['splice'](_0x53d81b+0x1,0x0,new Range(_0x553bd1,_0x3da82e['to']))):_0x3da82e['to']>_0x553bd1?_0x1c0469[_0x53d81b--]=new Range(_0x553bd1,_0x3da82e['to']):_0x1c0469['splice'](_0x53d81b--,0x1));}}return _0x538c52;}function findCoverChanges(_0x4940a1,_0x7049b9,_0x299283,_0x17dd84){let _0x213798=0x0,_0x2c1786=0x0,_0xf0ab24=!0x1,_0x3a72d0=!0x1,_0x29e745=-0x3b9aca00,_0x2b144c=[];for(;;){let _0x4c0847=_0x213798==_0x4940a1['length']?0x3b9aca00:_0xf0ab24?_0x4940a1[_0x213798]['to']:_0x4940a1[_0x213798]['from'],_0x53aef8=_0x2c1786==_0x7049b9['length']?0x3b9aca00:_0x3a72d0?_0x7049b9[_0x2c1786]['to']:_0x7049b9[_0x2c1786]['from'];if(_0xf0ab24!=_0x3a72d0){let _0x4c9618=Math['max'](_0x29e745,_0x299283),_0x326cfa=Math['min'](_0x4c0847,_0x53aef8,_0x17dd84);_0x4c9618<_0x326cfa&&_0x2b144c['push'](new Range(_0x4c9618,_0x326cfa));}if(_0x29e745=Math['min'](_0x4c0847,_0x53aef8),0x3b9aca00==_0x29e745)break;_0x4c0847==_0x29e745&&(_0xf0ab24?(_0xf0ab24=!0x1,_0x213798++):_0xf0ab24=!0x0),_0x53aef8==_0x29e745&&(_0x3a72d0?(_0x3a72d0=!0x1,_0x2c1786++):_0x3a72d0=!0x0);}return _0x2b144c;}function enterFragments(_0x5af3f7,_0x41eb11){let _0x10eb5d=[];for(let {pos:_0x33cca2,mount:_0x44ff52,frag:_0x56437e}of _0x5af3f7){let _0x5d2195=_0x33cca2+(_0x44ff52['overlay']?_0x44ff52['overlay'][0x0]['from']:0x0),_0x1d96da=_0x5d2195+_0x44ff52['tree']['length'],_0x334b6c=Math['max'](_0x56437e['from'],_0x5d2195),_0x282de6=Math['min'](_0x56437e['to'],_0x1d96da);if(_0x44ff52['overlay']){let _0x43cf97=_0x44ff52['overlay']['map'](_0x2f3a8d=>new Range(_0x2f3a8d['from']+_0x33cca2,_0x2f3a8d['to']+_0x33cca2)),_0x230515=findCoverChanges(_0x41eb11,_0x43cf97,_0x334b6c,_0x282de6);for(let _0x3dc860=0x0,_0x172209=_0x334b6c;;_0x3dc860++){let _0x1a7788=_0x3dc860==_0x230515['length'],_0x33c3ae=_0x1a7788?_0x282de6:_0x230515[_0x3dc860]['from'];if(_0x33c3ae>_0x172209&&_0x10eb5d['push'](new TreeFragment(_0x172209,_0x33c3ae,_0x44ff52['tree'],-_0x5d2195,_0x56437e['from']>=_0x172209||_0x56437e['openStart'],_0x56437e['to']<=_0x33c3ae||_0x56437e['openEnd'])),_0x1a7788)break;_0x172209=_0x230515[_0x3dc860]['to'];}}else _0x10eb5d['push'](new TreeFragment(_0x334b6c,_0x282de6,_0x44ff52['tree'],-_0x5d2195,_0x56437e['from']>=_0x5d2195||_0x56437e['openStart'],_0x56437e['to']<=_0x1d96da||_0x56437e['openEnd']));}return _0x10eb5d;}let nextTagID=0x0;class Tag{constructor(_0x58ae81,_0xeb3aa1,_0x53f30d,_0x20d0a5){this['name']=_0x58ae81,this['set']=_0xeb3aa1,this['base']=_0x53f30d,this['modified']=_0x20d0a5,this['id']=nextTagID++;}['toString'](){let {name:_0x4d1178}=this;for(let _0x3ee6f1 of this['modified'])_0x3ee6f1['name']&&(_0x4d1178=_0x3ee6f1['name']+'('+_0x4d1178+')');return _0x4d1178;}static['define'](_0x3c350c,_0x5e3081){let _0x1736d8='string'==typeof _0x3c350c?_0x3c350c:'?';if(_0x3c350c instanceof Tag&&(_0x5e3081=_0x3c350c),null==_0x5e3081?void 0x0:_0x5e3081['base'])throw new Error('Can\x20not\x20derive\x20from\x20a\x20modified\x20tag');let _0x51bb4e=new Tag(_0x1736d8,[],null,[]);if(_0x51bb4e['set']['push'](_0x51bb4e),_0x5e3081){for(let t of _0x5e3081['set'])_0x51bb4e['set']['push'](t);}return _0x51bb4e;}static['defineModifier'](_0xa80201){let _0x20fb40=new Modifier(_0xa80201);return _0xde639e=>_0xde639e['modified']['indexOf'](_0x20fb40)>-0x1?_0xde639e:Modifier['get'](_0xde639e['base']||_0xde639e,_0xde639e['modified']['concat'](_0x20fb40)['sort']((_0x47b309,_0x2bad88)=>_0x47b309['id']-_0x2bad88['id']));}}let nextModifierID=0x0;class Modifier{constructor(_0x2d4d34){this['name']=_0x2d4d34,this['instances']=[],this['id']=nextModifierID++;}static['get'](_0x48f244,_0x42fa7b){if(!_0x42fa7b['length'])return _0x48f244;let _0xfbbb95=_0x42fa7b[0x0]['instances']['find'](t=>t['base']==_0x48f244&&sameArray(_0x42fa7b,t['modified']));if(_0xfbbb95)return _0xfbbb95;let _0x58e7dc=[],_0xc44a0b=new Tag(_0x48f244['name'],_0x58e7dc,_0x48f244,_0x42fa7b);for(let _0xb1ffc of _0x42fa7b)_0xb1ffc['instances']['push'](_0xc44a0b);let _0xbdbdb1=powerSet(_0x42fa7b);for(let _0x5ee413 of _0x48f244['set'])if(!_0x5ee413['modified']['length']){for(let _0x271c41 of _0xbdbdb1)_0x58e7dc['push'](Modifier['get'](_0x5ee413,_0x271c41));}return _0xc44a0b;}}function sameArray(_0x38afd6,_0x5e4158){return _0x38afd6['length']==_0x5e4158['length']&&_0x38afd6['every']((_0x41b3f9,_0x5e83a2)=>_0x41b3f9==_0x5e4158[_0x5e83a2]);}function powerSet(_0x413044){let _0x37253c=[[]];for(let _0x1c59af=0x0;_0x1c59af<_0x413044['length'];_0x1c59af++)for(let _0x3d43f3=0x0,_0x98575=_0x37253c['length'];_0x3d43f3<_0x98575;_0x3d43f3++)_0x37253c['push'](_0x37253c[_0x3d43f3]['concat'](_0x413044[_0x1c59af]));return _0x37253c['sort']((_0x40fdcd,_0x10453d)=>_0x10453d['length']-_0x40fdcd['length']);}function styleTags(_0x41c9c4){let _0x3d55eb=Object['create'](null);for(let _0x56fedb in _0x41c9c4){let _0x30d9e2=_0x41c9c4[_0x56fedb];Array['isArray'](_0x30d9e2)||(_0x30d9e2=[_0x30d9e2]);for(let _0x302355 of _0x56fedb['split']('\x20'))if(_0x302355){let _0x512f4c=[],_0x4a11ba=0x2,_0x37757b=_0x302355;for(let _0x45adb1=0x0;;){if('...'==_0x37757b&&_0x45adb1>0x0&&_0x45adb1+0x3==_0x302355['length']){_0x4a11ba=0x1;break;}let _0x1756c4=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/['exec'](_0x37757b);if(!_0x1756c4)throw new RangeError('Invalid\x20path:\x20'+_0x302355);if(_0x512f4c['push']('*'==_0x1756c4[0x0]?'':'\x22'==_0x1756c4[0x0][0x0]?JSON['parse'](_0x1756c4[0x0]):_0x1756c4[0x0]),_0x45adb1+=_0x1756c4[0x0]['length'],_0x45adb1==_0x302355['length'])break;let _0x36c8db=_0x302355[_0x45adb1++];if(_0x45adb1==_0x302355['length']&&'!'==_0x36c8db){_0x4a11ba=0x0;break;}if('/'!=_0x36c8db)throw new RangeError('Invalid\x20path:\x20'+_0x302355);_0x37757b=_0x302355['slice'](_0x45adb1);}let _0xb84c1e=_0x512f4c['length']-0x1,_0x25d29c=_0x512f4c[_0xb84c1e];if(!_0x25d29c)throw new RangeError('Invalid\x20path:\x20'+_0x302355);let _0x188a5e=new Rule(_0x30d9e2,_0x4a11ba,_0xb84c1e>0x0?_0x512f4c['slice'](0x0,_0xb84c1e):null);_0x3d55eb[_0x25d29c]=_0x188a5e['sort'](_0x3d55eb[_0x25d29c]);}}return ruleNodeProp['add'](_0x3d55eb);}const ruleNodeProp=new NodeProp({'combine'(_0x264ad1,_0xd0b1f8){let _0x50851a,_0x81a09c,_0x3698b2;for(;_0x264ad1||_0xd0b1f8;){if(!_0x264ad1||_0xd0b1f8&&_0x264ad1['depth']>=_0xd0b1f8['depth']?(_0x3698b2=_0xd0b1f8,_0xd0b1f8=_0xd0b1f8['next']):(_0x3698b2=_0x264ad1,_0x264ad1=_0x264ad1['next']),_0x50851a&&_0x50851a['mode']==_0x3698b2['mode']&&!_0x3698b2['context']&&!_0x50851a['context'])continue;let _0x16b89d=new Rule(_0x3698b2['tags'],_0x3698b2['mode'],_0x3698b2['context']);_0x50851a?_0x50851a['next']=_0x16b89d:_0x81a09c=_0x16b89d,_0x50851a=_0x16b89d;}return _0x81a09c;}});class Rule{constructor(_0x5a9265,_0x3dddd3,_0x55f16b,_0x261877){this['tags']=_0x5a9265,this['mode']=_0x3dddd3,this['context']=_0x55f16b,this['next']=_0x261877;}get['opaque'](){return 0x0==this['mode'];}get['inherit'](){return 0x1==this['mode'];}['sort'](_0x3e0eb4){return!_0x3e0eb4||_0x3e0eb4['depth']<this['depth']?(this['next']=_0x3e0eb4,this):(_0x3e0eb4['next']=this['sort'](_0x3e0eb4['next']),_0x3e0eb4);}get['depth'](){return this['context']?this['context']['length']:0x0;}}function tagHighlighter(_0x447f0c,_0x3099f7){let _0x2a5940=Object['create'](null);for(let _0x22746a of _0x447f0c)if(Array['isArray'](_0x22746a['tag'])){for(let _0x28a24a of _0x22746a['tag'])_0x2a5940[_0x28a24a['id']]=_0x22746a['class'];}else _0x2a5940[_0x22746a['tag']['id']]=_0x22746a['class'];let {scope:_0x25ae0c,all:_0x4688ed=null}=_0x3099f7||{};return{'style':_0x4a50fe=>{let _0x2df5ab=_0x4688ed;for(let _0x8549e6 of _0x4a50fe)for(let _0x192b73 of _0x8549e6['set']){let _0x35d67f=_0x2a5940[_0x192b73['id']];if(_0x35d67f){_0x2df5ab=_0x2df5ab?_0x2df5ab+'\x20'+_0x35d67f:_0x35d67f;break;}}return _0x2df5ab;},'scope':_0x25ae0c};}function highlightTags(_0x34d0f6,_0x3029af){let _0x514165=null;for(let _0x486b60 of _0x34d0f6){let _0x436f17=_0x486b60['style'](_0x3029af);_0x436f17&&(_0x514165=_0x514165?_0x514165+'\x20'+_0x436f17:_0x436f17);}return _0x514165;}function highlightTree(_0x5a3060,_0x2e26ef,_0x4b39aa,_0x4a2f77=0x0,_0x11e8f4=_0x5a3060['length']){let _0x2864c2=new HighlightBuilder(_0x4a2f77,Array['isArray'](_0x2e26ef)?_0x2e26ef:[_0x2e26ef],_0x4b39aa);_0x2864c2['highlightRange'](_0x5a3060['cursor'](),_0x4a2f77,_0x11e8f4,'',_0x2864c2['highlighters']),_0x2864c2['flush'](_0x11e8f4);}Rule['empty']=new Rule([],0x2,null);class HighlightBuilder{constructor(_0x4b4b10,_0x3c5f35,_0x130b1e){this['at']=_0x4b4b10,this['highlighters']=_0x3c5f35,this['span']=_0x130b1e,this['class']='';}['startSpan'](_0x38f275,_0x3e16fa){_0x3e16fa!=this['class']&&(this['flush'](_0x38f275),_0x38f275>this['at']&&(this['at']=_0x38f275),this['class']=_0x3e16fa);}['flush'](_0x3315e2){_0x3315e2>this['at']&&this['class']&&this['span'](this['at'],_0x3315e2,this['class']);}['highlightRange'](_0x2856ba,_0x5e349f,_0x13f19d,_0x45fd59,_0x33be29){let {type:_0x2f678e,from:_0x21a557,to:_0x1f976a}=_0x2856ba;if(_0x21a557>=_0x13f19d||_0x1f976a<=_0x5e349f)return;_0x2f678e['isTop']&&(_0x33be29=this['highlighters']['filter'](_0x27267a=>!_0x27267a['scope']||_0x27267a['scope'](_0x2f678e)));let _0x5612d9=_0x45fd59,_0x54d449=getStyleTags(_0x2856ba)||Rule['empty'],_0xb36b7d=highlightTags(_0x33be29,_0x54d449['tags']);if(_0xb36b7d&&(_0x5612d9&&(_0x5612d9+='\x20'),_0x5612d9+=_0xb36b7d,0x1==_0x54d449['mode']&&(_0x45fd59+=(_0x45fd59?'\x20':'')+_0xb36b7d)),this['startSpan'](Math['max'](_0x5e349f,_0x21a557),_0x5612d9),_0x54d449['opaque'])return;let _0x1c8f29=_0x2856ba['tree']&&_0x2856ba['tree']['prop'](NodeProp['mounted']);if(_0x1c8f29&&_0x1c8f29['overlay']){let _0x1a248b=_0x2856ba['node']['enter'](_0x1c8f29['overlay'][0x0]['from']+_0x21a557,0x1),_0x45fa96=this['highlighters']['filter'](_0x59aad1=>!_0x59aad1['scope']||_0x59aad1['scope'](_0x1c8f29['tree']['type'])),_0xc6677d=_0x2856ba['firstChild']();for(let _0x1bd6b0=0x0,_0x540c79=_0x21a557;;_0x1bd6b0++){let _0x45ff94=_0x1bd6b0<_0x1c8f29['overlay']['length']?_0x1c8f29['overlay'][_0x1bd6b0]:null,_0x5459a0=_0x45ff94?_0x45ff94['from']+_0x21a557:_0x1f976a,_0x1d057e=Math['max'](_0x5e349f,_0x540c79),_0x45193b=Math['min'](_0x13f19d,_0x5459a0);if(_0x1d057e<_0x45193b&&_0xc6677d){for(;_0x2856ba['from']<_0x45193b&&(this['highlightRange'](_0x2856ba,_0x1d057e,_0x45193b,_0x45fd59,_0x33be29),this['startSpan'](Math['min'](_0x45193b,_0x2856ba['to']),_0x5612d9),!(_0x2856ba['to']>=_0x5459a0)&&_0x2856ba['nextSibling']()););}if(!_0x45ff94||_0x5459a0>_0x13f19d)break;_0x540c79=_0x45ff94['to']+_0x21a557,_0x540c79>_0x5e349f&&(this['highlightRange'](_0x1a248b['cursor'](),Math['max'](_0x5e349f,_0x45ff94['from']+_0x21a557),Math['min'](_0x13f19d,_0x540c79),'',_0x45fa96),this['startSpan'](Math['min'](_0x13f19d,_0x540c79),_0x5612d9));}_0xc6677d&&_0x2856ba['parent']();}else{if(_0x2856ba['firstChild']()){_0x1c8f29&&(_0x45fd59='');do{if(!(_0x2856ba['to']<=_0x5e349f)){if(_0x2856ba['from']>=_0x13f19d)break;this['highlightRange'](_0x2856ba,_0x5e349f,_0x13f19d,_0x45fd59,_0x33be29),this['startSpan'](Math['min'](_0x13f19d,_0x2856ba['to']),_0x5612d9);}}while(_0x2856ba['nextSibling']());_0x2856ba['parent']();}}}}function getStyleTags(_0x31109e){let _0xeb4a94=_0x31109e['type']['prop'](ruleNodeProp);for(;_0xeb4a94&&_0xeb4a94['context']&&!_0x31109e['matchContext'](_0xeb4a94['context']);)_0xeb4a94=_0xeb4a94['next'];return _0xeb4a94||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(_0x3c60b6){return Facet['define']({'combine':_0x3c60b6?_0x325d48=>_0x325d48['concat'](_0x3c60b6):void 0x0});}const sublanguageProp=new NodeProp();class Language{constructor(_0x550b3b,_0x19a0c0,_0x2c0731=[],_0x37a5fe=''){this['data']=_0x550b3b,this['name']=_0x37a5fe,EditorState['prototype']['hasOwnProperty']('tree')||Object['defineProperty'](EditorState['prototype'],'tree',{'get'(){return syntaxTree(this);}}),this['parser']=_0x19a0c0,this['extension']=[language['of'](this),EditorState['languageData']['of']((_0xe9f51b,_0x15076d,_0x1ad1a4)=>{let _0xbae908=topNodeAt(_0xe9f51b,_0x15076d,_0x1ad1a4),_0x155b23=_0xbae908['type']['prop'](languageDataProp);if(!_0x155b23)return[];let _0x4cb1c0=_0xe9f51b['facet'](_0x155b23),_0x235f21=_0xbae908['type']['prop'](sublanguageProp);if(_0x235f21){let _0x344940=_0xbae908['resolve'](_0x15076d-_0xbae908['from'],_0x1ad1a4);for(let _0x29802f of _0x235f21)if(_0x29802f['test'](_0x344940,_0xe9f51b)){let _0x1c0bfc=_0xe9f51b['facet'](_0x29802f['facet']);return'replace'==_0x29802f['type']?_0x1c0bfc:_0x1c0bfc['concat'](_0x4cb1c0);}}return _0x4cb1c0;})]['concat'](_0x2c0731);}['isActiveAt'](_0xd7bf2a,_0x15408b,_0xb63f0=-0x1){return topNodeAt(_0xd7bf2a,_0x15408b,_0xb63f0)['type']['prop'](languageDataProp)==this['data'];}['findRegions'](_0x1aef95){let _0x3f75ba=_0x1aef95['facet'](language);if((null==_0x3f75ba?void 0x0:_0x3f75ba['data'])==this['data'])return[{'from':0x0,'to':_0x1aef95['doc']['length']}];if(!_0x3f75ba||!_0x3f75ba['allowsNesting'])return[];let _0x36aaa6=[],_0x393415=(_0x434577,_0x3657ca)=>{if(_0x434577['prop'](languageDataProp)==this['data'])return void _0x36aaa6['push']({'from':_0x3657ca,'to':_0x3657ca+_0x434577['length']});let _0x4795db=_0x434577['prop'](NodeProp['mounted']);if(_0x4795db){if(_0x4795db['tree']['prop'](languageDataProp)==this['data']){if(_0x4795db['overlay']){for(let _0x17151b of _0x4795db['overlay'])_0x36aaa6['push']({'from':_0x17151b['from']+_0x3657ca,'to':_0x17151b['to']+_0x3657ca});}else _0x36aaa6['push']({'from':_0x3657ca,'to':_0x3657ca+_0x434577['length']});return;}if(_0x4795db['overlay']){let _0x5ae82b=_0x36aaa6['length'];if(_0x393415(_0x4795db['tree'],_0x4795db['overlay'][0x0]['from']+_0x3657ca),_0x36aaa6['length']>_0x5ae82b)return;}}for(let _0x236b4e=0x0;_0x236b4e<_0x434577['children']['length'];_0x236b4e++){let _0x2639c0=_0x434577['children'][_0x236b4e];_0x2639c0 instanceof Tree&&_0x393415(_0x2639c0,_0x434577['positions'][_0x236b4e]+_0x3657ca);}};return _0x393415(syntaxTree(_0x1aef95),0x0),_0x36aaa6;}get['allowsNesting'](){return!0x0;}}function topNodeAt(_0x2965e1,_0x4b13c5,_0x129f1d){let _0x2a0ceb=_0x2965e1['facet'](language),_0x150324=syntaxTree(_0x2965e1)['topNode'];if(!_0x2a0ceb||_0x2a0ceb['allowsNesting']){for(let _0x492d44=_0x150324;_0x492d44;_0x492d44=_0x492d44['enter'](_0x4b13c5,_0x129f1d,IterMode['ExcludeBuffers']))_0x492d44['type']['isTop']&&(_0x150324=_0x492d44);}return _0x150324;}Language['setState']=StateEffect['define']();class LRLanguage extends Language{constructor(_0x58c141,_0x26b7d8,_0x3c687a){super(_0x58c141,_0x26b7d8,[],_0x3c687a),this['parser']=_0x26b7d8;}static['define'](_0x557956){let _0xe7379e=defineLanguageFacet(_0x557956['languageData']);return new LRLanguage(_0xe7379e,_0x557956['parser']['configure']({'props':[languageDataProp['add'](_0x260b36=>_0x260b36['isTop']?_0xe7379e:void 0x0)]}),_0x557956['name']);}['configure'](_0x3ac0b3,_0x23f594){return new LRLanguage(this['data'],this['parser']['configure'](_0x3ac0b3),_0x23f594||this['name']);}get['allowsNesting'](){return this['parser']['hasWrappers']();}}function syntaxTree(_0x38d815){let _0x1de93b=_0x38d815['field'](Language['state'],!0x1);return _0x1de93b?_0x1de93b['tree']:Tree['empty'];}class DocInput{constructor(_0x6d759a){this['doc']=_0x6d759a,this['cursorPos']=0x0,this['string']='',this['cursor']=_0x6d759a['iter']();}get['length'](){return this['doc']['length'];}['syncTo'](_0x448de6){return this['string']=this['cursor']['next'](_0x448de6-this['cursorPos'])['value'],this['cursorPos']=_0x448de6+this['string']['length'],this['cursorPos']-this['string']['length'];}['chunk'](_0x3506a3){return this['syncTo'](_0x3506a3),this['string'];}get['lineChunks'](){return!0x0;}['read'](_0x313410,_0x4c360c){let _0x3be26c=this['cursorPos']-this['string']['length'];return _0x313410<_0x3be26c||_0x4c360c>=this['cursorPos']?this['doc']['sliceString'](_0x313410,_0x4c360c):this['string']['slice'](_0x313410-_0x3be26c,_0x4c360c-_0x3be26c);}}let currentContext=null;class ParseContext{constructor(_0x1d1132,_0x289c45,_0x5daa7=[],_0x3735f3,_0x4127df,_0x2eb972,_0x4e7e32,_0x562618){this['parser']=_0x1d1132,this['state']=_0x289c45,this['fragments']=_0x5daa7,this['tree']=_0x3735f3,this['treeLen']=_0x4127df,this['viewport']=_0x2eb972,this['skipped']=_0x4e7e32,this['scheduleOn']=_0x562618,this['parse']=null,this['tempSkipped']=[];}static['create'](_0x31e892,_0x190da3,_0x3002d8){return new ParseContext(_0x31e892,_0x190da3,[],Tree['empty'],0x0,_0x3002d8,[],null);}['startParse'](){return this['parser']['startParse'](new DocInput(this['state']['doc']),this['fragments']);}['work'](_0x12b07f,_0x5a5660){return null!=_0x5a5660&&_0x5a5660>=this['state']['doc']['length']&&(_0x5a5660=void 0x0),this['tree']!=Tree['empty']&&this['isDone'](null!=_0x5a5660?_0x5a5660:this['state']['doc']['length'])?(this['takeTree'](),!0x0):this['withContext'](()=>{var _0xed5586;if('number'==typeof _0x12b07f){let _0x22a0d4=Date['now']()+_0x12b07f;_0x12b07f=()=>Date['now']()>_0x22a0d4;}for(this['parse']||(this['parse']=this['startParse']()),null!=_0x5a5660&&(null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x5a5660)&&_0x5a5660<this['state']['doc']['length']&&this['parse']['stopAt'](_0x5a5660);;){let _0x490734=this['parse']['advance']();if(_0x490734){if(this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](_0x490734,this['fragments'],null!=this['parse']['stoppedAt'])),this['treeLen']=null!==(_0xed5586=this['parse']['stoppedAt'])&&void 0x0!==_0xed5586?_0xed5586:this['state']['doc']['length'],this['tree']=_0x490734,this['parse']=null,!(this['treeLen']<(null!=_0x5a5660?_0x5a5660:this['state']['doc']['length'])))return!0x0;this['parse']=this['startParse']();}if(_0x12b07f())return!0x1;}});}['takeTree'](){let _0x13a165,_0x34ba87;this['parse']&&(_0x13a165=this['parse']['parsedPos'])>=this['treeLen']&&((null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x13a165)&&this['parse']['stopAt'](_0x13a165),this['withContext'](()=>{for(;!(_0x34ba87=this['parse']['advance']()););}),this['treeLen']=_0x13a165,this['tree']=_0x34ba87,this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](this['tree'],this['fragments'],!0x0)),this['parse']=null);}['withContext'](_0x52963a){let _0x97938e=currentContext;currentContext=this;try{return _0x52963a();}finally{currentContext=_0x97938e;}}['withoutTempSkipped'](_0xffb6f8){for(let _0x16d26a;_0x16d26a=this['tempSkipped']['pop']();)_0xffb6f8=cutFragments(_0xffb6f8,_0x16d26a['from'],_0x16d26a['to']);return _0xffb6f8;}['changes'](_0x556ae0,_0x4a0c51){let {fragments:_0x2c564d,tree:_0x3ab630,treeLen:_0x1a5117,viewport:_0x3cb53a,skipped:_0x4e67a6}=this;if(this['takeTree'](),!_0x556ae0['empty']){let _0x32f489=[];if(_0x556ae0['iterChangedRanges']((_0x47f1a0,_0x22725d,_0x312a6a,_0x10a7dd)=>_0x32f489['push']({'fromA':_0x47f1a0,'toA':_0x22725d,'fromB':_0x312a6a,'toB':_0x10a7dd})),_0x2c564d=TreeFragment['applyChanges'](_0x2c564d,_0x32f489),_0x3ab630=Tree['empty'],_0x1a5117=0x0,_0x3cb53a={'from':_0x556ae0['mapPos'](_0x3cb53a['from'],-0x1),'to':_0x556ae0['mapPos'](_0x3cb53a['to'],0x1)},this['skipped']['length']){_0x4e67a6=[];for(let _0x5ae8c6 of this['skipped']){let _0x47ce42=_0x556ae0['mapPos'](_0x5ae8c6['from'],0x1),_0x5cd2f0=_0x556ae0['mapPos'](_0x5ae8c6['to'],-0x1);_0x47ce42<_0x5cd2f0&&_0x4e67a6['push']({'from':_0x47ce42,'to':_0x5cd2f0});}}}return new ParseContext(this['parser'],_0x4a0c51,_0x2c564d,_0x3ab630,_0x1a5117,_0x3cb53a,_0x4e67a6,this['scheduleOn']);}['updateViewport'](_0x4d76d8){if(this['viewport']['from']==_0x4d76d8['from']&&this['viewport']['to']==_0x4d76d8['to'])return!0x1;this['viewport']=_0x4d76d8;let _0x57d9e0=this['skipped']['length'];for(let _0x1db396=0x0;_0x1db396<this['skipped']['length'];_0x1db396++){let {from:_0x15c43e,to:_0x2350bc}=this['skipped'][_0x1db396];_0x15c43e<_0x4d76d8['to']&&_0x2350bc>_0x4d76d8['from']&&(this['fragments']=cutFragments(this['fragments'],_0x15c43e,_0x2350bc),this['skipped']['splice'](_0x1db396--,0x1));}return!(this['skipped']['length']>=_0x57d9e0)&&(this['reset'](),!0x0);}['reset'](){this['parse']&&(this['takeTree'](),this['parse']=null);}['skipUntilInView'](_0x401c07,_0x29777a){this['skipped']['push']({'from':_0x401c07,'to':_0x29777a});}static['getSkippingParser'](_0x1624cb){return new class extends Parser{['createParse'](_0xbedde4,_0x55174e,_0x3fb776){let _0x35759b=_0x3fb776[0x0]['from'],_0x51f304=_0x3fb776[_0x3fb776['length']-0x1]['to'],_0x37a456={'parsedPos':_0x35759b,'advance'(){let _0x4914b9=currentContext;if(_0x4914b9){for(let _0x19e915 of _0x3fb776)_0x4914b9['tempSkipped']['push'](_0x19e915);_0x1624cb&&(_0x4914b9['scheduleOn']=_0x4914b9['scheduleOn']?Promise['all']([_0x4914b9['scheduleOn'],_0x1624cb]):_0x1624cb);}return this['parsedPos']=_0x51f304,new Tree(NodeType['none'],[],[],_0x51f304-_0x35759b);},'stoppedAt':null,'stopAt'(){}};return _0x37a456;}}();}['isDone'](_0x299379){_0x299379=Math['min'](_0x299379,this['state']['doc']['length']);let _0x658cd7=this['fragments'];return this['treeLen']>=_0x299379&&_0x658cd7['length']&&0x0==_0x658cd7[0x0]['from']&&_0x658cd7[0x0]['to']>=_0x299379;}static['get'](){return currentContext;}}function cutFragments(_0x1acd97,_0x42e934,_0x256119){return TreeFragment['applyChanges'](_0x1acd97,[{'fromA':_0x42e934,'toA':_0x256119,'fromB':_0x42e934,'toB':_0x256119}]);}class LanguageState{constructor(_0x1468c8){this['context']=_0x1468c8,this['tree']=_0x1468c8['tree'];}['apply'](_0xf9f562){if(!_0xf9f562['docChanged']&&this['tree']==this['context']['tree'])return this;let _0x383121=this['context']['changes'](_0xf9f562['changes'],_0xf9f562['state']),_0x47e17f=this['context']['treeLen']==_0xf9f562['startState']['doc']['length']?void 0x0:Math['max'](_0xf9f562['changes']['mapPos'](this['context']['treeLen']),_0x383121['viewport']['to']);return _0x383121['work'](0x14,_0x47e17f)||_0x383121['takeTree'](),new LanguageState(_0x383121);}static['init'](_0x2aa474){let _0x584948=Math['min'](0xbb8,_0x2aa474['doc']['length']),_0x5e652b=ParseContext['create'](_0x2aa474['facet'](language)['parser'],_0x2aa474,{'from':0x0,'to':_0x584948});return _0x5e652b['work'](0x14,_0x584948)||_0x5e652b['takeTree'](),new LanguageState(_0x5e652b);}}Language['state']=StateField['define']({'create':LanguageState['init'],'update'(_0x1d6f6a,_0x1354bc){for(let _0x1e3c7f of _0x1354bc['effects'])if(_0x1e3c7f['is'](Language['setState']))return _0x1e3c7f['value'];return _0x1354bc['startState']['facet'](language)!=_0x1354bc['state']['facet'](language)?LanguageState['init'](_0x1354bc['state']):_0x1d6f6a['apply'](_0x1354bc);}});let requestIdle=_0x2f128=>{let _0x23b5d5=setTimeout(()=>_0x2f128(),0x1f4);return()=>clearTimeout(_0x23b5d5);};'undefined'!=typeof requestIdleCallback&&(requestIdle=_0x2c9be7=>{let _0x5be0c8=-0x1,_0x2d22e2=setTimeout(()=>{_0x5be0c8=requestIdleCallback(_0x2c9be7,{'timeout':0x190});},0x64);return()=>_0x5be0c8<0x0?clearTimeout(_0x2d22e2):cancelIdleCallback(_0x5be0c8);});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(_0x256c1e){this['view']=_0x256c1e,this['working']=null,this['workScheduled']=0x0,this['chunkEnd']=-0x1,this['chunkBudget']=-0x1,this['work']=this['work']['bind'](this),this['scheduleWork']();}['update'](_0x4fc703){let _0x1f518d=this['view']['state']['field'](Language['state'])['context'];(_0x1f518d['updateViewport'](_0x4fc703['view']['viewport'])||this['view']['viewport']['to']>_0x1f518d['treeLen'])&&this['scheduleWork'](),(_0x4fc703['docChanged']||_0x4fc703['selectionSet'])&&(this['view']['hasFocus']&&(this['chunkBudget']+=0x32),this['scheduleWork']()),this['checkAsyncSchedule'](_0x1f518d);}['scheduleWork'](){if(this['working'])return;let {state:_0x16b76a}=this['view'],_0x335dcd=_0x16b76a['field'](Language['state']);_0x335dcd['tree']==_0x335dcd['context']['tree']&&_0x335dcd['context']['isDone'](_0x16b76a['doc']['length'])||(this['working']=requestIdle(this['work']));}['work'](_0xd1772a){this['working']=null;let _0x4a1e96=Date['now']();if(this['chunkEnd']<_0x4a1e96&&(this['chunkEnd']<0x0||this['view']['hasFocus'])&&(this['chunkEnd']=_0x4a1e96+0x7530,this['chunkBudget']=0xbb8),this['chunkBudget']<=0x0)return;let {state:_0x2e8509,viewport:{to:_0x7b85ce}}=this['view'],_0x55f99=_0x2e8509['field'](Language['state']);if(_0x55f99['tree']==_0x55f99['context']['tree']&&_0x55f99['context']['isDone'](_0x7b85ce+0x186a0))return;let _0xf4305=Date['now']()+Math['min'](this['chunkBudget'],0x64,_0xd1772a&&!isInputPending?Math['max'](0x19,_0xd1772a['timeRemaining']()-0x5):0x3b9aca00),_0x21041d=_0x55f99['context']['treeLen']<_0x7b85ce&&_0x2e8509['doc']['length']>_0x7b85ce+0x3e8,_0xd7fe0f=_0x55f99['context']['work'](()=>isInputPending&&isInputPending()||Date['now']()>_0xf4305,_0x7b85ce+(_0x21041d?0x0:0x186a0));this['chunkBudget']-=Date['now']()-_0x4a1e96,(_0xd7fe0f||this['chunkBudget']<=0x0)&&(_0x55f99['context']['takeTree'](),this['view']['dispatch']({'effects':Language['setState']['of'](new LanguageState(_0x55f99['context']))})),this['chunkBudget']>0x0&&(!_0xd7fe0f||_0x21041d)&&this['scheduleWork'](),this['checkAsyncSchedule'](_0x55f99['context']);}['checkAsyncSchedule'](_0x811f5c){_0x811f5c['scheduleOn']&&(this['workScheduled']++,_0x811f5c['scheduleOn']['then'](()=>this['scheduleWork']())['catch'](_0x36c302=>logException(this['view']['state'],_0x36c302))['then'](()=>this['workScheduled']--),_0x811f5c['scheduleOn']=null);}['destroy'](){this['working']&&this['working']();}['isWorking'](){return!!(this['working']||this['workScheduled']>0x0);}},{'eventHandlers':{'focus'(){this['scheduleWork']();}}}),language=Facet['define']({'combine':_0x47f436=>_0x47f436['length']?_0x47f436[0x0]:null,'enables':_0x1ee918=>[Language['state'],parseWorker,EditorView['contentAttributes']['compute']([_0x1ee918],_0x5d7b2c=>{let _0x229c4c=_0x5d7b2c['facet'](_0x1ee918);return _0x229c4c&&_0x229c4c['name']?{'data-language':_0x229c4c['name']}:{};})]});class LanguageSupport{constructor(_0x42fbb5,_0xa6d3fe=[]){this['language']=_0x42fbb5,this['support']=_0xa6d3fe,this['extension']=[_0x42fbb5,_0xa6d3fe];}}class LanguageDescription{constructor(_0x20c085,_0xcbf78c,_0x16bc82,_0x3096f3,_0x81dfe6,_0x111f1e=void 0x0){this['name']=_0x20c085,this['alias']=_0xcbf78c,this['extensions']=_0x16bc82,this['filename']=_0x3096f3,this['loadFunc']=_0x81dfe6,this['support']=_0x111f1e,this['loading']=null;}['load'](){return this['loading']||(this['loading']=this['loadFunc']()['then'](_0xb8594b=>this['support']=_0xb8594b,_0x4226a9=>{throw this['loading']=null,_0x4226a9;}));}static['of'](_0x110c60){let {load:_0x4ee3f9,support:_0x4a6bca}=_0x110c60;if(!_0x4ee3f9){if(!_0x4a6bca)throw new RangeError('Must\x20pass\x20either\x20\x27load\x27\x20or\x20\x27support\x27\x20to\x20LanguageDescription.of');_0x4ee3f9=()=>Promise['resolve'](_0x4a6bca);}return new LanguageDescription(_0x110c60['name'],(_0x110c60['alias']||[])['concat'](_0x110c60['name'])['map'](_0x281193=>_0x281193['toLowerCase']()),_0x110c60['extensions']||[],_0x110c60['filename'],_0x4ee3f9,_0x4a6bca);}static['matchFilename'](_0x46db2f,_0x1b911a){for(let _0x5d4f81 of _0x46db2f)if(_0x5d4f81['filename']&&_0x5d4f81['filename']['test'](_0x1b911a))return _0x5d4f81;let _0x4d4014=/\.([^.]+)$/['exec'](_0x1b911a);if(_0x4d4014){for(let _0x5b179b of _0x46db2f)if(_0x5b179b['extensions']['indexOf'](_0x4d4014[0x1])>-0x1)return _0x5b179b;}return null;}static['matchLanguageName'](_0x20db5c,_0x3815fa,_0x5969e3=!0x0){_0x3815fa=_0x3815fa['toLowerCase']();for(let _0x776777 of _0x20db5c)if(_0x776777['alias']['some'](_0x2f9909=>_0x2f9909==_0x3815fa))return _0x776777;if(_0x5969e3){for(let _0x5796cf of _0x20db5c)for(let _0x432215 of _0x5796cf['alias']){let _0x5678bd=_0x3815fa['indexOf'](_0x432215);if(_0x5678bd>-0x1&&(_0x432215['length']>0x2||!/\w/['test'](_0x3815fa[_0x5678bd-0x1])&&!/\w/['test'](_0x3815fa[_0x5678bd+_0x432215['length']])))return _0x5796cf;}}return null;}}const indentService=Facet['define'](),indentUnit=Facet['define']({'combine':_0x578904=>{if(!_0x578904['length'])return'\x20\x20';let _0x33631d=_0x578904[0x0];if(!_0x33631d||/\S/['test'](_0x33631d)||Array['from'](_0x33631d)['some'](_0x2a2214=>_0x2a2214!=_0x33631d[0x0]))throw new Error('Invalid\x20indent\x20unit:\x20'+JSON['stringify'](_0x578904[0x0]));return _0x33631d;}});function getIndentUnit(_0x29333d){let _0x455c32=_0x29333d['facet'](indentUnit);return 0x9==_0x455c32['charCodeAt'](0x0)?_0x29333d['tabSize']*_0x455c32['length']:_0x455c32['length'];}function indentString(_0x2b7b36,_0x12b71b){let _0x36998d='',_0x2100ec=_0x2b7b36['tabSize'],_0x1f9be0=_0x2b7b36['facet'](indentUnit)[0x0];if('\x09'==_0x1f9be0){for(;_0x12b71b>=_0x2100ec;)_0x36998d+='\x09',_0x12b71b-=_0x2100ec;_0x1f9be0='\x20';}for(let _0xa85ac6=0x0;_0xa85ac6<_0x12b71b;_0xa85ac6++)_0x36998d+=_0x1f9be0;return _0x36998d;}function getIndentation(_0x22e8ca,_0x567c57){_0x22e8ca instanceof EditorState&&(_0x22e8ca=new IndentContext(_0x22e8ca));for(let _0x13bc5a of _0x22e8ca['state']['facet'](indentService)){let _0x484fba=_0x13bc5a(_0x22e8ca,_0x567c57);if(void 0x0!==_0x484fba)return _0x484fba;}let _0x409baf=syntaxTree(_0x22e8ca['state']);return _0x409baf['length']>=_0x567c57?syntaxIndentation(_0x22e8ca,_0x409baf,_0x567c57):null;}class IndentContext{constructor(_0x4d7754,_0x5f47fc={}){this['state']=_0x4d7754,this['options']=_0x5f47fc,this['unit']=getIndentUnit(_0x4d7754);}['lineAt'](_0x39ff40,_0x3a486a=0x1){let _0x1b016c=this['state']['doc']['lineAt'](_0x39ff40),{simulateBreak:_0x34d677,simulateDoubleBreak:_0x51f78f}=this['options'];return null!=_0x34d677&&_0x34d677>=_0x1b016c['from']&&_0x34d677<=_0x1b016c['to']?_0x51f78f&&_0x34d677==_0x39ff40?{'text':'','from':_0x39ff40}:(_0x3a486a<0x0?_0x34d677<_0x39ff40:_0x34d677<=_0x39ff40)?{'text':_0x1b016c['text']['slice'](_0x34d677-_0x1b016c['from']),'from':_0x34d677}:{'text':_0x1b016c['text']['slice'](0x0,_0x34d677-_0x1b016c['from']),'from':_0x1b016c['from']}:_0x1b016c;}['textAfterPos'](_0x3cbab5,_0x1fef79=0x1){if(this['options']['simulateDoubleBreak']&&_0x3cbab5==this['options']['simulateBreak'])return'';let {text:_0x2c3bc0,from:_0x16c756}=this['lineAt'](_0x3cbab5,_0x1fef79);return _0x2c3bc0['slice'](_0x3cbab5-_0x16c756,Math['min'](_0x2c3bc0['length'],_0x3cbab5+0x64-_0x16c756));}['column'](_0x49ced8,_0x32a6b0=0x1){let {text:_0x2551e6,from:_0x364ee7}=this['lineAt'](_0x49ced8,_0x32a6b0),_0x91a93f=this['countColumn'](_0x2551e6,_0x49ced8-_0x364ee7),_0x3f946e=this['options']['overrideIndentation']?this['options']['overrideIndentation'](_0x364ee7):-0x1;return _0x3f946e>-0x1&&(_0x91a93f+=_0x3f946e-this['countColumn'](_0x2551e6,_0x2551e6['search'](/\S|$/))),_0x91a93f;}['countColumn'](_0x5d1007,_0x1d7856=_0x5d1007['length']){return countColumn(_0x5d1007,this['state']['tabSize'],_0x1d7856);}['lineIndent'](_0x11d614,_0x17e278=0x1){let {text:_0x297a84,from:_0x9cac52}=this['lineAt'](_0x11d614,_0x17e278),_0x16d07a=this['options']['overrideIndentation'];if(_0x16d07a){let _0x4bc1ff=_0x16d07a(_0x9cac52);if(_0x4bc1ff>-0x1)return _0x4bc1ff;}return this['countColumn'](_0x297a84,_0x297a84['search'](/\S|$/));}get['simulatedBreak'](){return this['options']['simulateBreak']||null;}}const indentNodeProp=new NodeProp();function syntaxIndentation(_0x217c2f,_0x481678,_0x380fd4){let _0x1c3af1=_0x481678['resolveStack'](_0x380fd4),_0x2017d0=_0x481678['resolveInner'](_0x380fd4,-0x1)['resolve'](_0x380fd4,0x0)['enterUnfinishedNodesBefore'](_0x380fd4);if(_0x2017d0!=_0x1c3af1['node']){let _0xfb2349=[];for(let _0x2cb24a=_0x2017d0;_0x2cb24a&&!(_0x2cb24a['from']<_0x1c3af1['node']['from']||_0x2cb24a['to']>_0x1c3af1['node']['to']||_0x2cb24a['from']==_0x1c3af1['node']['from']&&_0x2cb24a['type']==_0x1c3af1['node']['type']);_0x2cb24a=_0x2cb24a['parent'])_0xfb2349['push'](_0x2cb24a);for(let _0x106b0f=_0xfb2349['length']-0x1;_0x106b0f>=0x0;_0x106b0f--)_0x1c3af1={'node':_0xfb2349[_0x106b0f],'next':_0x1c3af1};}return indentFor(_0x1c3af1,_0x217c2f,_0x380fd4);}function indentFor(_0x2952e3,_0x2015d3,_0x8142c2){for(let _0x387d6b=_0x2952e3;_0x387d6b;_0x387d6b=_0x387d6b['next']){let _0xe31b9=indentStrategy(_0x387d6b['node']);if(_0xe31b9)return _0xe31b9(TreeIndentContext['create'](_0x2015d3,_0x8142c2,_0x387d6b));}return 0x0;}function ignoreClosed(_0x57c015){return _0x57c015['pos']==_0x57c015['options']['simulateBreak']&&_0x57c015['options']['simulateDoubleBreak'];}function indentStrategy(_0x1d5ef7){let _0x3d7737=_0x1d5ef7['type']['prop'](indentNodeProp);if(_0x3d7737)return _0x3d7737;let _0x41b411,_0x3fd4ac=_0x1d5ef7['firstChild'];if(_0x3fd4ac&&(_0x41b411=_0x3fd4ac['type']['prop'](NodeProp['closedBy']))){let _0x4a5827=_0x1d5ef7['lastChild'],_0x168a1d=_0x4a5827&&_0x41b411['indexOf'](_0x4a5827['name'])>-0x1;return _0x22075a=>delimitedStrategy(_0x22075a,!0x0,0x1,void 0x0,_0x168a1d&&!ignoreClosed(_0x22075a)?_0x4a5827['from']:void 0x0);}return null==_0x1d5ef7['parent']?topIndent:null;}function topIndent(){return 0x0;}class TreeIndentContext extends IndentContext{constructor(_0x249c76,_0x5aa649,_0x158cb6){super(_0x249c76['state'],_0x249c76['options']),this['base']=_0x249c76,this['pos']=_0x5aa649,this['context']=_0x158cb6;}get['node'](){return this['context']['node'];}static['create'](_0x2a7c72,_0x139856,_0x180016){return new TreeIndentContext(_0x2a7c72,_0x139856,_0x180016);}get['textAfter'](){return this['textAfterPos'](this['pos']);}get['baseIndent'](){return this['baseIndentFor'](this['node']);}['baseIndentFor'](_0x4a50a1){let _0x1036b5=this['state']['doc']['lineAt'](_0x4a50a1['from']);for(;;){let _0xa5c8a3=_0x4a50a1['resolve'](_0x1036b5['from']);for(;_0xa5c8a3['parent']&&_0xa5c8a3['parent']['from']==_0xa5c8a3['from'];)_0xa5c8a3=_0xa5c8a3['parent'];if(isParent(_0xa5c8a3,_0x4a50a1))break;_0x1036b5=this['state']['doc']['lineAt'](_0xa5c8a3['from']);}return this['lineIndent'](_0x1036b5['from']);}['continue'](){return indentFor(this['context']['next'],this['base'],this['pos']);}}function isParent(_0x12f006,_0x4317c6){for(let _0x336f0f=_0x4317c6;_0x336f0f;_0x336f0f=_0x336f0f['parent'])if(_0x12f006==_0x336f0f)return!0x0;return!0x1;}function bracketedAligned(_0x4bba48){let _0x169124=_0x4bba48['node'],_0x4066a3=_0x169124['childAfter'](_0x169124['from']),_0x5ac490=_0x169124['lastChild'];if(!_0x4066a3)return null;let _0x2ac98c=_0x4bba48['options']['simulateBreak'],_0x495791=_0x4bba48['state']['doc']['lineAt'](_0x4066a3['from']),_0x1ab20a=null==_0x2ac98c||_0x2ac98c<=_0x495791['from']?_0x495791['to']:Math['min'](_0x495791['to'],_0x2ac98c);for(let _0x3c4a59=_0x4066a3['to'];;){let _0x4bbb89=_0x169124['childAfter'](_0x3c4a59);if(!_0x4bbb89||_0x4bbb89==_0x5ac490)return null;if(!_0x4bbb89['type']['isSkipped']){if(_0x4bbb89['from']>=_0x1ab20a)return null;let _0x344a48=/^ */['exec'](_0x495791['text']['slice'](_0x4066a3['to']-_0x495791['from']))[0x0]['length'];return{'from':_0x4066a3['from'],'to':_0x4066a3['to']+_0x344a48};}_0x3c4a59=_0x4bbb89['to'];}}function delimitedIndent({closing:_0x1e07b6,align:_0x3cbf27=!0x0,units:_0x301816=0x1}){return _0x574545=>delimitedStrategy(_0x574545,_0x3cbf27,_0x301816,_0x1e07b6);}function delimitedStrategy(_0x4fcbea,_0x4e6388,_0x1283a7,_0x51fa9d,_0x4a5b96){let _0x1b3765=_0x4fcbea['textAfter'],_0x4a33d7=_0x1b3765['match'](/^\s*/)[0x0]['length'],_0x4e6e6a=_0x51fa9d&&_0x1b3765['slice'](_0x4a33d7,_0x4a33d7+_0x51fa9d['length'])==_0x51fa9d||_0x4a5b96==_0x4fcbea['pos']+_0x4a33d7,_0x2d28d1=_0x4e6388?bracketedAligned(_0x4fcbea):null;return _0x2d28d1?_0x4e6e6a?_0x4fcbea['column'](_0x2d28d1['from']):_0x4fcbea['column'](_0x2d28d1['to']):_0x4fcbea['baseIndent']+(_0x4e6e6a?0x0:_0x4fcbea['unit']*_0x1283a7);}const flatIndent=_0x342c8f=>_0x342c8f['baseIndent'];function continuedIndent({except:_0x319c67,units:_0x3b7a56=0x1}={}){return _0xf2dd79=>{let _0x2d1381=_0x319c67&&_0x319c67['test'](_0xf2dd79['textAfter']);return _0xf2dd79['baseIndent']+(_0x2d1381?0x0:_0x3b7a56*_0xf2dd79['unit']);};}const DontIndentBeyond=0xc8;function indentOnInput(){return EditorState['transactionFilter']['of'](_0x2b46c1=>{if(!_0x2b46c1['docChanged']||!_0x2b46c1['isUserEvent']('input.type')&&!_0x2b46c1['isUserEvent']('input.complete'))return _0x2b46c1;let _0x3af9fc=_0x2b46c1['startState']['languageDataAt']('indentOnInput',_0x2b46c1['startState']['selection']['main']['head']);if(!_0x3af9fc['length'])return _0x2b46c1;let _0x3d38bd=_0x2b46c1['newDoc'],{head:_0x595aab}=_0x2b46c1['newSelection']['main'],_0xe30888=_0x3d38bd['lineAt'](_0x595aab);if(_0x595aab>_0xe30888['from']+DontIndentBeyond)return _0x2b46c1;let _0x2139b5=_0x3d38bd['sliceString'](_0xe30888['from'],_0x595aab);if(!_0x3af9fc['some'](_0x2af62c=>_0x2af62c['test'](_0x2139b5)))return _0x2b46c1;let {state:_0x48bb40}=_0x2b46c1,_0x23dfc9=-0x1,_0x3794f2=[];for(let {head:_0x375e4b}of _0x48bb40['selection']['ranges']){let _0x3ae9cd=_0x48bb40['doc']['lineAt'](_0x375e4b);if(_0x3ae9cd['from']==_0x23dfc9)continue;_0x23dfc9=_0x3ae9cd['from'];let _0xf397a6=getIndentation(_0x48bb40,_0x3ae9cd['from']);if(null==_0xf397a6)continue;let _0x328e12=/^\s*/['exec'](_0x3ae9cd['text'])[0x0],_0x5aae44=indentString(_0x48bb40,_0xf397a6);_0x328e12!=_0x5aae44&&_0x3794f2['push']({'from':_0x3ae9cd['from'],'to':_0x3ae9cd['from']+_0x328e12['length'],'insert':_0x5aae44});}return _0x3794f2['length']?[_0x2b46c1,{'changes':_0x3794f2,'sequential':!0x0}]:_0x2b46c1;});}const foldService=Facet['define'](),foldNodeProp=new NodeProp();function foldInside(_0x147c78){let _0x22eb40=_0x147c78['firstChild'],_0x7bae26=_0x147c78['lastChild'];return _0x22eb40&&_0x22eb40['to']<_0x7bae26['from']?{'from':_0x22eb40['to'],'to':_0x7bae26['type']['isError']?_0x147c78['to']:_0x7bae26['from']}:null;}function syntaxFolding(_0x364b47,_0x1ec8de,_0x2b76ce){let _0x3eb7e1=syntaxTree(_0x364b47);if(_0x3eb7e1['length']<_0x2b76ce)return null;let _0x3076ae=null;for(let _0x503a84=_0x3eb7e1['resolveStack'](_0x2b76ce,0x1);_0x503a84;_0x503a84=_0x503a84['next']){let _0x3a26a8=_0x503a84['node'];if(_0x3a26a8['to']<=_0x2b76ce||_0x3a26a8['from']>_0x2b76ce)continue;if(_0x3076ae&&_0x3a26a8['from']<_0x1ec8de)break;let _0x3315b8=_0x3a26a8['type']['prop'](foldNodeProp);if(_0x3315b8&&(_0x3a26a8['to']<_0x3eb7e1['length']-0x32||_0x3eb7e1['length']==_0x364b47['doc']['length']||!isUnfinished(_0x3a26a8))){let _0x3d8c73=_0x3315b8(_0x3a26a8,_0x364b47);_0x3d8c73&&_0x3d8c73['from']<=_0x2b76ce&&_0x3d8c73['from']>=_0x1ec8de&&_0x3d8c73['to']>_0x2b76ce&&(_0x3076ae=_0x3d8c73);}}return _0x3076ae;}function isUnfinished(_0x1db129){let _0x3e3d6e=_0x1db129['lastChild'];return _0x3e3d6e&&_0x3e3d6e['to']==_0x1db129['to']&&_0x3e3d6e['type']['isError'];}function foldable(_0x300909,_0x46cf00,_0x20839e){for(let _0xd33a90 of _0x300909['facet'](foldService)){let _0x10b488=_0xd33a90(_0x300909,_0x46cf00,_0x20839e);if(_0x10b488)return _0x10b488;}return syntaxFolding(_0x300909,_0x46cf00,_0x20839e);}function mapRange(_0x42f3e0,_0x24f351){let _0x5cf21f=_0x24f351['mapPos'](_0x42f3e0['from'],0x1),_0x5059c5=_0x24f351['mapPos'](_0x42f3e0['to'],-0x1);return _0x5cf21f>=_0x5059c5?void 0x0:{'from':_0x5cf21f,'to':_0x5059c5};}const foldEffect=StateEffect['define']({'map':mapRange}),unfoldEffect=StateEffect['define']({'map':mapRange});function selectedLines(_0x212b3c){let _0x11fe0f=[];for(let {head:_0x44764e}of _0x212b3c['state']['selection']['ranges'])_0x11fe0f['some'](_0x367ee8=>_0x367ee8['from']<=_0x44764e&&_0x367ee8['to']>=_0x44764e)||_0x11fe0f['push'](_0x212b3c['lineBlockAt'](_0x44764e));return _0x11fe0f;}const foldState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x11eac4,_0x1b6968){_0x1b6968['isUserEvent']('delete')&&_0x1b6968['changes']['iterChangedRanges']((_0x2c779f,_0x4b2f8c)=>_0x11eac4=clearTouchedFolds(_0x11eac4,_0x2c779f,_0x4b2f8c)),_0x11eac4=_0x11eac4['map'](_0x1b6968['changes']);for(let _0x15b70e of _0x1b6968['effects'])if(_0x15b70e['is'](foldEffect)&&!foldExists(_0x11eac4,_0x15b70e['value']['from'],_0x15b70e['value']['to'])){let {preparePlaceholder:_0x188028}=_0x1b6968['state']['facet'](foldConfig),_0x591a58=_0x188028?Decoration['replace']({'widget':new PreparedFoldWidget(_0x188028(_0x1b6968['state'],_0x15b70e['value']))}):foldWidget;_0x11eac4=_0x11eac4['update']({'add':[_0x591a58['range'](_0x15b70e['value']['from'],_0x15b70e['value']['to'])]});}else _0x15b70e['is'](unfoldEffect)&&(_0x11eac4=_0x11eac4['update']({'filter':(_0x4af9f6,_0x651be7)=>_0x15b70e['value']['from']!=_0x4af9f6||_0x15b70e['value']['to']!=_0x651be7,'filterFrom':_0x15b70e['value']['from'],'filterTo':_0x15b70e['value']['to']}));return _0x1b6968['selection']&&(_0x11eac4=clearTouchedFolds(_0x11eac4,_0x1b6968['selection']['main']['head'])),_0x11eac4;},'provide':_0xca9e27=>EditorView['decorations']['from'](_0xca9e27),'toJSON'(_0x3cd4da,_0x4ee6c3){let _0x4d1811=[];return _0x3cd4da['between'](0x0,_0x4ee6c3['doc']['length'],(_0x1aac54,_0x418e9b)=>{_0x4d1811['push'](_0x1aac54,_0x418e9b);}),_0x4d1811;},'fromJSON'(_0x466863){if(!Array['isArray'](_0x466863)||_0x466863['length']%0x2)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');let _0x3340d8=[];for(let _0x4544f2=0x0;_0x4544f2<_0x466863['length'];){let _0x11c64f=_0x466863[_0x4544f2++],_0x48e4be=_0x466863[_0x4544f2++];if('number'!=typeof _0x11c64f||'number'!=typeof _0x48e4be)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');_0x3340d8['push'](foldWidget['range'](_0x11c64f,_0x48e4be));}return Decoration['set'](_0x3340d8,!0x0);}});function clearTouchedFolds(_0x59ff3a,_0x867d82,_0x4b61fb=_0x867d82){let _0x49acbc=!0x1;return _0x59ff3a['between'](_0x867d82,_0x4b61fb,(_0x370771,_0x31b729)=>{_0x370771<_0x4b61fb&&_0x31b729>_0x867d82&&(_0x49acbc=!0x0);}),_0x49acbc?_0x59ff3a['update']({'filterFrom':_0x867d82,'filterTo':_0x4b61fb,'filter':(_0x4f316a,_0x17f63a)=>_0x4f316a>=_0x4b61fb||_0x17f63a<=_0x867d82}):_0x59ff3a;}function findFold(_0x420274,_0x3c9211,_0x23ed32){var _0x1427a7;let _0x49981f=null;return null===(_0x1427a7=_0x420274['field'](foldState,!0x1))||void 0x0===_0x1427a7||_0x1427a7['between'](_0x3c9211,_0x23ed32,(_0x1619cf,_0x3da265)=>{(!_0x49981f||_0x49981f['from']>_0x1619cf)&&(_0x49981f={'from':_0x1619cf,'to':_0x3da265});}),_0x49981f;}function foldExists(_0x168fff,_0xd12584,_0x571314){let _0x5b8825=!0x1;return _0x168fff['between'](_0xd12584,_0xd12584,(_0x345d0b,_0x40d778)=>{_0x345d0b==_0xd12584&&_0x40d778==_0x571314&&(_0x5b8825=!0x0);}),_0x5b8825;}function maybeEnable(_0x47c2a5,_0x3f54fc){return _0x47c2a5['field'](foldState,!0x1)?_0x3f54fc:_0x3f54fc['concat'](StateEffect['appendConfig']['of'](codeFolding()));}const foldCode=_0x41986e=>{for(let _0x3033c6 of selectedLines(_0x41986e)){let _0x599385=foldable(_0x41986e['state'],_0x3033c6['from'],_0x3033c6['to']);if(_0x599385)return _0x41986e['dispatch']({'effects':maybeEnable(_0x41986e['state'],[foldEffect['of'](_0x599385),announceFold(_0x41986e,_0x599385)])}),!0x0;}return!0x1;},unfoldCode=_0x445956=>{if(!_0x445956['state']['field'](foldState,!0x1))return!0x1;let _0x274f3c=[];for(let _0x1fd7b2 of selectedLines(_0x445956)){let _0x4d00ff=findFold(_0x445956['state'],_0x1fd7b2['from'],_0x1fd7b2['to']);_0x4d00ff&&_0x274f3c['push'](unfoldEffect['of'](_0x4d00ff),announceFold(_0x445956,_0x4d00ff,!0x1));}return _0x274f3c['length']&&_0x445956['dispatch']({'effects':_0x274f3c}),_0x274f3c['length']>0x0;};function announceFold(_0x33142f,_0x1df7e0,_0x585326=!0x0){let _0x521bbe=_0x33142f['state']['doc']['lineAt'](_0x1df7e0['from'])['number'],_0x3d98ae=_0x33142f['state']['doc']['lineAt'](_0x1df7e0['to'])['number'];return EditorView['announce']['of'](_0x33142f['state']['phrase'](_0x585326?'Folded\x20lines':'Unfolded\x20lines')+'\x20'+_0x521bbe+'\x20'+_0x33142f['state']['phrase']('to')+'\x20'+_0x3d98ae+'.');}const foldAll=_0x4ffc04=>{let {state:_0x3b9a86}=_0x4ffc04,_0x5c1994=[];for(let _0x1f715a=0x0;_0x1f715a<_0x3b9a86['doc']['length'];){let _0x144ce4=_0x4ffc04['lineBlockAt'](_0x1f715a),_0x45b98a=foldable(_0x3b9a86,_0x144ce4['from'],_0x144ce4['to']);_0x45b98a&&_0x5c1994['push'](foldEffect['of'](_0x45b98a)),_0x1f715a=(_0x45b98a?_0x4ffc04['lineBlockAt'](_0x45b98a['to']):_0x144ce4)['to']+0x1;}return _0x5c1994['length']&&_0x4ffc04['dispatch']({'effects':maybeEnable(_0x4ffc04['state'],_0x5c1994)}),!!_0x5c1994['length'];},unfoldAll=_0x3a66c8=>{let _0x42820e=_0x3a66c8['state']['field'](foldState,!0x1);if(!_0x42820e||!_0x42820e['size'])return!0x1;let _0x576de9=[];return _0x42820e['between'](0x0,_0x3a66c8['state']['doc']['length'],(_0x30baf4,_0x492cd6)=>{_0x576de9['push'](unfoldEffect['of']({'from':_0x30baf4,'to':_0x492cd6}));}),_0x3a66c8['dispatch']({'effects':_0x576de9}),!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':_0x44a02e=>combineConfig(_0x44a02e,defaultConfig)});function codeFolding(_0xb58fe7){return[foldState,baseTheme$1];}function widgetToDOM(_0x5afde9,_0x102771){let {state:_0x34d3a0}=_0x5afde9,_0x46c19c=_0x34d3a0['facet'](foldConfig),_0x12c0db=_0x227c79=>{let _0xddd99a=_0x5afde9['lineBlockAt'](_0x5afde9['posAtDOM'](_0x227c79['target'])),_0x113b54=findFold(_0x5afde9['state'],_0xddd99a['from'],_0xddd99a['to']);_0x113b54&&_0x5afde9['dispatch']({'effects':unfoldEffect['of'](_0x113b54)}),_0x227c79['preventDefault']();};if(_0x46c19c['placeholderDOM'])return _0x46c19c['placeholderDOM'](_0x5afde9,_0x12c0db,_0x102771);let _0x1dcc34=document['createElement']('span');return _0x1dcc34['textContent']=_0x46c19c['placeholderText'],_0x1dcc34['setAttribute']('aria-label',_0x34d3a0['phrase']('folded\x20code')),_0x1dcc34['title']=_0x34d3a0['phrase']('unfold'),_0x1dcc34['className']='cm-foldPlaceholder',_0x1dcc34['onclick']=_0x12c0db,_0x1dcc34;}const foldWidget=Decoration['replace']({'widget':new class extends WidgetType{['toDOM'](_0x591e7e){return widgetToDOM(_0x591e7e,null);}}()});class PreparedFoldWidget extends WidgetType{constructor(_0xcdb824){super(),this['value']=_0xcdb824;}['eq'](_0x494822){return this['value']==_0x494822['value'];}['toDOM'](_0x298292){return widgetToDOM(_0x298292,this['value']);}}const foldGutterDefaults={'openText':'⌄','closedText':'›','markerDOM':null,'domEventHandlers':{},'foldingChanged':()=>!0x1};class FoldMarker extends GutterMarker{constructor(_0x5d81de,_0x5c9dab){super(),this['config']=_0x5d81de,this['open']=_0x5c9dab;}['eq'](_0x30207a){return this['config']==_0x30207a['config']&&this['open']==_0x30207a['open'];}['toDOM'](_0x58a720){if(this['config']['markerDOM'])return this['config']['markerDOM'](this['open']);let _0x43973e=document['createElement']('span');return _0x43973e['textContent']=this['open']?this['config']['openText']:this['config']['closedText'],_0x43973e['title']=_0x58a720['state']['phrase'](this['open']?'Fold\x20line':'Unfold\x20line'),_0x43973e;}}function foldGutter(_0x2837c0={}){let _0x23acdb={...foldGutterDefaults,..._0x2837c0},_0x45c2a3=new FoldMarker(_0x23acdb,!0x0),_0x253c82=new FoldMarker(_0x23acdb,!0x1),_0x2edce8=ViewPlugin['fromClass'](class{constructor(_0x2b73e1){this['from']=_0x2b73e1['viewport']['from'],this['markers']=this['buildMarkers'](_0x2b73e1);}['update'](_0x5da36f){(_0x5da36f['docChanged']||_0x5da36f['viewportChanged']||_0x5da36f['startState']['facet'](language)!=_0x5da36f['state']['facet'](language)||_0x5da36f['startState']['field'](foldState,!0x1)!=_0x5da36f['state']['field'](foldState,!0x1)||syntaxTree(_0x5da36f['startState'])!=syntaxTree(_0x5da36f['state'])||_0x23acdb['foldingChanged'](_0x5da36f))&&(this['markers']=this['buildMarkers'](_0x5da36f['view']));}['buildMarkers'](_0x50f7dd){let _0x16cd66=new RangeSetBuilder();for(let _0xc17c8f of _0x50f7dd['viewportLineBlocks']){let _0x242292=findFold(_0x50f7dd['state'],_0xc17c8f['from'],_0xc17c8f['to'])?_0x253c82:foldable(_0x50f7dd['state'],_0xc17c8f['from'],_0xc17c8f['to'])?_0x45c2a3:null;_0x242292&&_0x16cd66['add'](_0xc17c8f['from'],_0xc17c8f['from'],_0x242292);}return _0x16cd66['finish']();}}),{domEventHandlers:_0x56cf79}=_0x23acdb;return[_0x2edce8,gutter({'class':'cm-foldGutter','markers'(_0x56aef2){var _0x2082f7;return(null===(_0x2082f7=_0x56aef2['plugin'](_0x2edce8))||void 0x0===_0x2082f7?void 0x0:_0x2082f7['markers'])||RangeSet['empty'];},'initialSpacer':()=>new FoldMarker(_0x23acdb,!0x1),'domEventHandlers':{..._0x56cf79,'click':(_0x1ce8bf,_0x51ff60,_0x168583)=>{if(_0x56cf79['click']&&_0x56cf79['click'](_0x1ce8bf,_0x51ff60,_0x168583))return!0x0;let _0x4755f8=findFold(_0x1ce8bf['state'],_0x51ff60['from'],_0x51ff60['to']);if(_0x4755f8)return _0x1ce8bf['dispatch']({'effects':unfoldEffect['of'](_0x4755f8)}),!0x0;let _0xb0be4=foldable(_0x1ce8bf['state'],_0x51ff60['from'],_0x51ff60['to']);return!!_0xb0be4&&(_0x1ce8bf['dispatch']({'effects':foldEffect['of'](_0xb0be4)}),!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(_0x20bac1,_0x1e5fa7){let _0x2908f3;function _0x338e63(_0x4c2337){let _0x12a2b3=StyleModule['newName']();return(_0x2908f3||(_0x2908f3=Object['create'](null)))['.'+_0x12a2b3]=_0x4c2337,_0x12a2b3;}this['specs']=_0x20bac1;const _0x535094='string'==typeof _0x1e5fa7['all']?_0x1e5fa7['all']:_0x1e5fa7['all']?_0x338e63(_0x1e5fa7['all']):void 0x0,_0x1098b6=_0x1e5fa7['scope'];this['scope']=_0x1098b6 instanceof Language?_0x538ae1=>_0x538ae1['prop'](languageDataProp)==_0x1098b6['data']:_0x1098b6?_0x14cd85=>_0x14cd85==_0x1098b6:void 0x0,this['style']=tagHighlighter(_0x20bac1['map'](_0x327708=>({'tag':_0x327708['tag'],'class':_0x327708['class']||_0x338e63(Object['assign']({},_0x327708,{'tag':null}))})),{'all':_0x535094})['style'],this['module']=_0x2908f3?new StyleModule(_0x2908f3):null,this['themeType']=_0x1e5fa7['themeType'];}static['define'](_0x844564,_0x1a26e5){return new HighlightStyle(_0x844564,_0x1a26e5||{});}}const highlighterFacet=Facet['define'](),fallbackHighlighter=Facet['define']({'combine':_0x4a2c82=>_0x4a2c82['length']?[_0x4a2c82[0x0]]:null});function getHighlighters(_0x471cf8){let _0x37ae11=_0x471cf8['facet'](highlighterFacet);return _0x37ae11['length']?_0x37ae11:_0x471cf8['facet'](fallbackHighlighter);}function syntaxHighlighting(_0x159451,_0x48fbcd){let _0x181b44,_0x5d07f2=[treeHighlighter];return _0x159451 instanceof HighlightStyle&&(_0x159451['module']&&_0x5d07f2['push'](EditorView['styleModule']['of'](_0x159451['module'])),_0x181b44=_0x159451['themeType']),(null==_0x48fbcd?void 0x0:_0x48fbcd['fallback'])?_0x5d07f2['push'](fallbackHighlighter['of'](_0x159451)):_0x181b44?_0x5d07f2['push'](highlighterFacet['computeN']([EditorView['darkTheme']],_0x18f1a8=>_0x18f1a8['facet'](EditorView['darkTheme'])==('dark'==_0x181b44)?[_0x159451]:[])):_0x5d07f2['push'](highlighterFacet['of'](_0x159451)),_0x5d07f2;}class TreeHighlighter{constructor(_0x8c600f){this['markCache']=Object['create'](null),this['tree']=syntaxTree(_0x8c600f['state']),this['decorations']=this['buildDeco'](_0x8c600f,getHighlighters(_0x8c600f['state'])),this['decoratedTo']=_0x8c600f['viewport']['to'];}['update'](_0x1df96d){let _0x3d1ecd=syntaxTree(_0x1df96d['state']),_0x48b137=getHighlighters(_0x1df96d['state']),_0x4676f8=_0x48b137!=getHighlighters(_0x1df96d['startState']),{viewport:_0x40c7e4}=_0x1df96d['view'],_0x5bd466=_0x1df96d['changes']['mapPos'](this['decoratedTo'],0x1);_0x3d1ecd['length']<_0x40c7e4['to']&&!_0x4676f8&&_0x3d1ecd['type']==this['tree']['type']&&_0x5bd466>=_0x40c7e4['to']?(this['decorations']=this['decorations']['map'](_0x1df96d['changes']),this['decoratedTo']=_0x5bd466):(_0x3d1ecd!=this['tree']||_0x1df96d['viewportChanged']||_0x4676f8)&&(this['tree']=_0x3d1ecd,this['decorations']=this['buildDeco'](_0x1df96d['view'],_0x48b137),this['decoratedTo']=_0x40c7e4['to']);}['buildDeco'](_0x26a159,_0xb63a6a){if(!_0xb63a6a||!this['tree']['length'])return Decoration['none'];let _0x5e1daf=new RangeSetBuilder();for(let {from:_0x20d1a8,to:_0x19a3db}of _0x26a159['visibleRanges'])highlightTree(this['tree'],_0xb63a6a,(_0x368cd4,_0x254811,_0x2a7be2)=>{_0x5e1daf['add'](_0x368cd4,_0x254811,this['markCache'][_0x2a7be2]||(this['markCache'][_0x2a7be2]=Decoration['mark']({'class':_0x2a7be2})));},_0x20d1a8,_0x19a3db);return _0x5e1daf['finish']();}}const treeHighlighter=Prec['high'](ViewPlugin['fromClass'](TreeHighlighter,{'decorations':_0x44d63d=>_0x44d63d['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':_0x19df72=>combineConfig(_0x19df72,{'afterCursor':!0x0,'brackets':DefaultBrackets,'maxScanDistance':DefaultScanDist,'renderMatch':defaultRenderMatch})}),matchingMark=Decoration['mark']({'class':'cm-matchingBracket'}),nonmatchingMark=Decoration['mark']({'class':'cm-nonmatchingBracket'});function defaultRenderMatch(_0xf3649){let _0x5090d9=[],_0x16b02b=_0xf3649['matched']?matchingMark:nonmatchingMark;return _0x5090d9['push'](_0x16b02b['range'](_0xf3649['start']['from'],_0xf3649['start']['to'])),_0xf3649['end']&&_0x5090d9['push'](_0x16b02b['range'](_0xf3649['end']['from'],_0xf3649['end']['to'])),_0x5090d9;}const bracketMatchingState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x10d75f,_0x30ea4d){if(!_0x30ea4d['docChanged']&&!_0x30ea4d['selection'])return _0x10d75f;let _0xa96129=[],_0x17a0a4=_0x30ea4d['state']['facet'](bracketMatchingConfig);for(let _0x11aa15 of _0x30ea4d['state']['selection']['ranges']){if(!_0x11aa15['empty'])continue;let _0x331906=matchBrackets(_0x30ea4d['state'],_0x11aa15['head'],-0x1,_0x17a0a4)||_0x11aa15['head']>0x0&&matchBrackets(_0x30ea4d['state'],_0x11aa15['head']-0x1,0x1,_0x17a0a4)||_0x17a0a4['afterCursor']&&(matchBrackets(_0x30ea4d['state'],_0x11aa15['head'],0x1,_0x17a0a4)||_0x11aa15['head']<_0x30ea4d['state']['doc']['length']&&matchBrackets(_0x30ea4d['state'],_0x11aa15['head']+0x1,-0x1,_0x17a0a4));_0x331906&&(_0xa96129=_0xa96129['concat'](_0x17a0a4['renderMatch'](_0x331906,_0x30ea4d['state'])));}return Decoration['set'](_0xa96129,!0x0);},'provide':_0x1837eb=>EditorView['decorations']['from'](_0x1837eb)}),bracketMatchingUnique=[bracketMatchingState,baseTheme$2];function bracketMatching(_0x31cd5b={}){return[bracketMatchingConfig['of'](_0x31cd5b),bracketMatchingUnique];}const bracketMatchingHandle=new NodeProp();function matchingNodes(_0x54bd06,_0x4673b8,_0x22e879){let _0x53ba5d=_0x54bd06['prop'](_0x4673b8<0x0?NodeProp['openedBy']:NodeProp['closedBy']);if(_0x53ba5d)return _0x53ba5d;if(0x1==_0x54bd06['name']['length']){let _0x5a78e0=_0x22e879['indexOf'](_0x54bd06['name']);if(_0x5a78e0>-0x1&&_0x5a78e0%0x2==(_0x4673b8<0x0?0x1:0x0))return[_0x22e879[_0x5a78e0+_0x4673b8]];}return null;}function findHandle(_0x436903){let _0x1152de=_0x436903['type']['prop'](bracketMatchingHandle);return _0x1152de?_0x1152de(_0x436903['node']):_0x436903;}function matchBrackets(_0x2f8286,_0x5871be,_0x5e3098,_0x4a495d={}){let _0x50a08d=_0x4a495d['maxScanDistance']||DefaultScanDist,_0x5d84ad=_0x4a495d['brackets']||DefaultBrackets,_0x402e34=syntaxTree(_0x2f8286),_0x4ef1f2=_0x402e34['resolveInner'](_0x5871be,_0x5e3098);for(let _0x2d3c59=_0x4ef1f2;_0x2d3c59;_0x2d3c59=_0x2d3c59['parent']){let _0x2b8250=matchingNodes(_0x2d3c59['type'],_0x5e3098,_0x5d84ad);if(_0x2b8250&&_0x2d3c59['from']<_0x2d3c59['to']){let _0x36989f=findHandle(_0x2d3c59);if(_0x36989f&&(_0x5e3098>0x0?_0x5871be>=_0x36989f['from']&&_0x5871be<_0x36989f['to']:_0x5871be>_0x36989f['from']&&_0x5871be<=_0x36989f['to']))return matchMarkedBrackets(_0x2f8286,_0x5871be,_0x5e3098,_0x2d3c59,_0x36989f,_0x2b8250,_0x5d84ad);}}return matchPlainBrackets(_0x2f8286,_0x5871be,_0x5e3098,_0x402e34,_0x4ef1f2['type'],_0x50a08d,_0x5d84ad);}function matchMarkedBrackets(_0x4aa355,_0x59e651,_0x4a9102,_0x5d88d1,_0x909193,_0xd25136,_0x20fbcf){let _0x28878d=_0x5d88d1['parent'],_0x540dc4={'from':_0x909193['from'],'to':_0x909193['to']},_0x3af75c=0x0,_0x5e23e0=null==_0x28878d?void 0x0:_0x28878d['cursor']();if(_0x5e23e0&&(_0x4a9102<0x0?_0x5e23e0['childBefore'](_0x5d88d1['from']):_0x5e23e0['childAfter'](_0x5d88d1['to'])))do{if(_0x4a9102<0x0?_0x5e23e0['to']<=_0x5d88d1['from']:_0x5e23e0['from']>=_0x5d88d1['to']){if(0x0==_0x3af75c&&_0xd25136['indexOf'](_0x5e23e0['type']['name'])>-0x1&&_0x5e23e0['from']<_0x5e23e0['to']){let _0x14e331=findHandle(_0x5e23e0);return{'start':_0x540dc4,'end':_0x14e331?{'from':_0x14e331['from'],'to':_0x14e331['to']}:void 0x0,'matched':!0x0};}if(matchingNodes(_0x5e23e0['type'],_0x4a9102,_0x20fbcf))_0x3af75c++;else{if(matchingNodes(_0x5e23e0['type'],-_0x4a9102,_0x20fbcf)){if(0x0==_0x3af75c){let _0x1f9a08=findHandle(_0x5e23e0);return{'start':_0x540dc4,'end':_0x1f9a08&&_0x1f9a08['from']<_0x1f9a08['to']?{'from':_0x1f9a08['from'],'to':_0x1f9a08['to']}:void 0x0,'matched':!0x1};}_0x3af75c--;}}}}while(_0x4a9102<0x0?_0x5e23e0['prevSibling']():_0x5e23e0['nextSibling']());return{'start':_0x540dc4,'matched':!0x1};}function matchPlainBrackets(_0x209fda,_0xea48a1,_0xb15fb,_0x4f8652,_0x1ebd4d,_0xea8ee3,_0x4e9cd9){let _0x4c53fa=_0xb15fb<0x0?_0x209fda['sliceDoc'](_0xea48a1-0x1,_0xea48a1):_0x209fda['sliceDoc'](_0xea48a1,_0xea48a1+0x1),_0x47895f=_0x4e9cd9['indexOf'](_0x4c53fa);if(_0x47895f<0x0||_0x47895f%0x2==0x0!=_0xb15fb>0x0)return null;let _0x362256={'from':_0xb15fb<0x0?_0xea48a1-0x1:_0xea48a1,'to':_0xb15fb>0x0?_0xea48a1+0x1:_0xea48a1},_0x145a82=_0x209fda['doc']['iterRange'](_0xea48a1,_0xb15fb>0x0?_0x209fda['doc']['length']:0x0),_0x160809=0x0;for(let _0x3dc6fe=0x0;!_0x145a82['next']()['done']&&_0x3dc6fe<=_0xea8ee3;){let _0xc41422=_0x145a82['value'];_0xb15fb<0x0&&(_0x3dc6fe+=_0xc41422['length']);let _0x10135b=_0xea48a1+_0x3dc6fe*_0xb15fb;for(let _0x260bf9=_0xb15fb>0x0?0x0:_0xc41422['length']-0x1,_0x4016d8=_0xb15fb>0x0?_0xc41422['length']:-0x1;_0x260bf9!=_0x4016d8;_0x260bf9+=_0xb15fb){let _0xce95f=_0x4e9cd9['indexOf'](_0xc41422[_0x260bf9]);if(!(_0xce95f<0x0||_0x4f8652['resolveInner'](_0x10135b+_0x260bf9,0x1)['type']!=_0x1ebd4d)){if(_0xce95f%0x2==0x0==_0xb15fb>0x0)_0x160809++;else{if(0x1==_0x160809)return{'start':_0x362256,'end':{'from':_0x10135b+_0x260bf9,'to':_0x10135b+_0x260bf9+0x1},'matched':_0xce95f>>0x1==_0x47895f>>0x1};_0x160809--;}}}_0xb15fb>0x0&&(_0x3dc6fe+=_0xc41422['length']);}return _0x145a82['done']?{'start':_0x362256,'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(_0x49a7c3,_0x3472d0){warned['indexOf'](_0x49a7c3)>-0x1||(warned['push'](_0x49a7c3),console['warn'](_0x3472d0));}function createTokenType(_0x56c1ce,_0x521c22){let _0x32b4ab=[];for(let _0x3b1a0c of _0x521c22['split']('\x20')){let _0x1ab272=[];for(let _0x2cf3f9 of _0x3b1a0c['split']('.')){let _0x32e8c8=_0x56c1ce[_0x2cf3f9]||tags$1[_0x2cf3f9];_0x32e8c8?'function'==typeof _0x32e8c8?_0x1ab272['length']?_0x1ab272=_0x1ab272['map'](_0x32e8c8):warnForPart(_0x2cf3f9,'Modifier\x20'+_0x2cf3f9+'\x20used\x20at\x20start\x20of\x20tag'):_0x1ab272['length']?warnForPart(_0x2cf3f9,'Tag\x20'+_0x2cf3f9+'\x20used\x20as\x20modifier'):_0x1ab272=Array['isArray'](_0x32e8c8)?_0x32e8c8:[_0x32e8c8]:warnForPart(_0x2cf3f9,'Unknown\x20highlighting\x20tag\x20'+_0x2cf3f9);}for(let _0x408a16 of _0x1ab272)_0x32b4ab['push'](_0x408a16);}if(!_0x32b4ab['length'])return 0x0;let _0x1af335=_0x521c22['replace'](/ /g,'_'),_0x164b6b=_0x1af335+'\x20'+_0x32b4ab['map'](t=>t['id']),_0x56d082=byTag[_0x164b6b];if(_0x56d082)return _0x56d082['id'];let _0x52c893=byTag[_0x164b6b]=NodeType['define']({'id':typeArray['length'],'name':_0x1af335,'props':[styleTags({[_0x1af335]:_0x32b4ab})]});return typeArray['push'](_0x52c893),_0x52c893['id'];}Direction['RTL'],Direction['LTR'];const toggleComment=_0x425424=>{let {state:_0x443d5c}=_0x425424,_0x5aa4a3=_0x443d5c['doc']['lineAt'](_0x443d5c['selection']['main']['from']),_0x3e14b9=getConfig(_0x425424['state'],_0x5aa4a3['from']);return _0x3e14b9['line']?toggleLineComment(_0x425424):!!_0x3e14b9['block']&&toggleBlockCommentByLine(_0x425424);};function command(_0x39d2db,_0x10b1d2){return({state:_0x33a934,dispatch:_0x5c1c0f})=>{if(_0x33a934['readOnly'])return!0x1;let _0x5a2677=_0x39d2db(_0x10b1d2,_0x33a934);return!!_0x5a2677&&(_0x5c1c0f(_0x33a934['update'](_0x5a2677)),!0x0);};}const toggleLineComment=command(changeLineComment,0x0),toggleBlockComment=command(changeBlockComment,0x0),toggleBlockCommentByLine=command((_0x1ca14f,_0x4ad4c1)=>changeBlockComment(_0x1ca14f,_0x4ad4c1,selectedLineRanges(_0x4ad4c1)),0x0);function getConfig(_0x204e1d,_0x1c3bcd){let _0x330e1c=_0x204e1d['languageDataAt']('commentTokens',_0x1c3bcd,0x1);return _0x330e1c['length']?_0x330e1c[0x0]:{};}const SearchMargin=0x32;function findBlockComment(_0x4372f7,{open:_0x55990b,close:_0x1aa8d3},_0x181a11,_0x3cd8f2){let _0x53dc63,_0xdc6a79,_0x5227c0=_0x4372f7['sliceDoc'](_0x181a11-SearchMargin,_0x181a11),_0x5c2bb0=_0x4372f7['sliceDoc'](_0x3cd8f2,_0x3cd8f2+SearchMargin),_0x22c03d=/\s*$/['exec'](_0x5227c0)[0x0]['length'],_0x10198e=/^\s*/['exec'](_0x5c2bb0)[0x0]['length'],_0x1f3610=_0x5227c0['length']-_0x22c03d;if(_0x5227c0['slice'](_0x1f3610-_0x55990b['length'],_0x1f3610)==_0x55990b&&_0x5c2bb0['slice'](_0x10198e,_0x10198e+_0x1aa8d3['length'])==_0x1aa8d3)return{'open':{'pos':_0x181a11-_0x22c03d,'margin':_0x22c03d&&0x1},'close':{'pos':_0x3cd8f2+_0x10198e,'margin':_0x10198e&&0x1}};_0x3cd8f2-_0x181a11<=0x2*SearchMargin?_0x53dc63=_0xdc6a79=_0x4372f7['sliceDoc'](_0x181a11,_0x3cd8f2):(_0x53dc63=_0x4372f7['sliceDoc'](_0x181a11,_0x181a11+SearchMargin),_0xdc6a79=_0x4372f7['sliceDoc'](_0x3cd8f2-SearchMargin,_0x3cd8f2));let _0x519a0c=/^\s*/['exec'](_0x53dc63)[0x0]['length'],_0xd4c14e=/\s*$/['exec'](_0xdc6a79)[0x0]['length'],_0x83dbb8=_0xdc6a79['length']-_0xd4c14e-_0x1aa8d3['length'];return _0x53dc63['slice'](_0x519a0c,_0x519a0c+_0x55990b['length'])==_0x55990b&&_0xdc6a79['slice'](_0x83dbb8,_0x83dbb8+_0x1aa8d3['length'])==_0x1aa8d3?{'open':{'pos':_0x181a11+_0x519a0c+_0x55990b['length'],'margin':/\s/['test'](_0x53dc63['charAt'](_0x519a0c+_0x55990b['length']))?0x1:0x0},'close':{'pos':_0x3cd8f2-_0xd4c14e-_0x1aa8d3['length'],'margin':/\s/['test'](_0xdc6a79['charAt'](_0x83dbb8-0x1))?0x1:0x0}}:null;}function selectedLineRanges(_0xd6edcc){let _0x3a163c=[];for(let _0x3bb734 of _0xd6edcc['selection']['ranges']){let _0x2e981e=_0xd6edcc['doc']['lineAt'](_0x3bb734['from']),_0x51c0cf=_0x3bb734['to']<=_0x2e981e['to']?_0x2e981e:_0xd6edcc['doc']['lineAt'](_0x3bb734['to']);_0x51c0cf['from']>_0x2e981e['from']&&_0x51c0cf['from']==_0x3bb734['to']&&(_0x51c0cf=_0x3bb734['to']==_0x2e981e['to']+0x1?_0x2e981e:_0xd6edcc['doc']['lineAt'](_0x3bb734['to']-0x1));let _0x627ddb=_0x3a163c['length']-0x1;_0x627ddb>=0x0&&_0x3a163c[_0x627ddb]['to']>_0x2e981e['from']?_0x3a163c[_0x627ddb]['to']=_0x51c0cf['to']:_0x3a163c['push']({'from':_0x2e981e['from']+/^\s*/['exec'](_0x2e981e['text'])[0x0]['length'],'to':_0x51c0cf['to']});}return _0x3a163c;}function changeBlockComment(_0x50fec3,_0x18eb4c,_0x53889f=_0x18eb4c['selection']['ranges']){let _0x446491=_0x53889f['map'](_0xb97789=>getConfig(_0x18eb4c,_0xb97789['from'])['block']);if(!_0x446491['every'](_0x2e3b10=>_0x2e3b10))return null;let _0x2cfb5b=_0x53889f['map']((_0x46ff16,_0x3dae2e)=>findBlockComment(_0x18eb4c,_0x446491[_0x3dae2e],_0x46ff16['from'],_0x46ff16['to']));if(0x2!=_0x50fec3&&!_0x2cfb5b['every'](_0x4b2b8f=>_0x4b2b8f))return{'changes':_0x18eb4c['changes'](_0x53889f['map']((_0xda9f58,_0x56024e)=>_0x2cfb5b[_0x56024e]?[]:[{'from':_0xda9f58['from'],'insert':_0x446491[_0x56024e]['open']+'\x20'},{'from':_0xda9f58['to'],'insert':'\x20'+_0x446491[_0x56024e]['close']}]))};if(0x1!=_0x50fec3&&_0x2cfb5b['some'](_0x143b75=>_0x143b75)){let _0x205327=[];for(let _0x33b99b,_0x5e9e97=0x0;_0x5e9e97<_0x2cfb5b['length'];_0x5e9e97++)if(_0x33b99b=_0x2cfb5b[_0x5e9e97]){let _0x12824a=_0x446491[_0x5e9e97],{open:_0x19a5a8,close:_0x93d718}=_0x33b99b;_0x205327['push']({'from':_0x19a5a8['pos']-_0x12824a['open']['length'],'to':_0x19a5a8['pos']+_0x19a5a8['margin']},{'from':_0x93d718['pos']-_0x93d718['margin'],'to':_0x93d718['pos']+_0x12824a['close']['length']});}return{'changes':_0x205327};}return null;}function changeLineComment(_0x4989e5,_0x5a2663,_0x477abe=_0x5a2663['selection']['ranges']){let _0x14c781=[],_0x2f8674=-0x1;for(let {from:_0x13c50c,to:_0x2fd72e}of _0x477abe){let _0x4ae829=_0x14c781['length'],_0x313bc2=0x3b9aca00,_0x322410=getConfig(_0x5a2663,_0x13c50c)['line'];if(_0x322410){for(let _0x446e98=_0x13c50c;_0x446e98<=_0x2fd72e;){let _0x21f20c=_0x5a2663['doc']['lineAt'](_0x446e98);if(_0x21f20c['from']>_0x2f8674&&(_0x13c50c==_0x2fd72e||_0x2fd72e>_0x21f20c['from'])){_0x2f8674=_0x21f20c['from'];let _0x25e957=/^\s*/['exec'](_0x21f20c['text'])[0x0]['length'],_0x5a3ed3=_0x25e957==_0x21f20c['length'],_0xf62662=_0x21f20c['text']['slice'](_0x25e957,_0x25e957+_0x322410['length'])==_0x322410?_0x25e957:-0x1;_0x25e957<_0x21f20c['text']['length']&&_0x25e957<_0x313bc2&&(_0x313bc2=_0x25e957),_0x14c781['push']({'line':_0x21f20c,'comment':_0xf62662,'token':_0x322410,'indent':_0x25e957,'empty':_0x5a3ed3,'single':!0x1});}_0x446e98=_0x21f20c['to']+0x1;}if(_0x313bc2<0x3b9aca00){for(let _0x5b934f=_0x4ae829;_0x5b934f<_0x14c781['length'];_0x5b934f++)_0x14c781[_0x5b934f]['indent']<_0x14c781[_0x5b934f]['line']['text']['length']&&(_0x14c781[_0x5b934f]['indent']=_0x313bc2);}_0x14c781['length']==_0x4ae829+0x1&&(_0x14c781[_0x4ae829]['single']=!0x0);}}if(0x2!=_0x4989e5&&_0x14c781['some'](_0x178a43=>_0x178a43['comment']<0x0&&(!_0x178a43['empty']||_0x178a43['single']))){let _0x55070e=[];for(let {line:_0x1ca223,token:_0x5ce3b8,indent:_0x27df11,empty:_0x10508d,single:_0x3dffd8}of _0x14c781)!_0x3dffd8&&_0x10508d||_0x55070e['push']({'from':_0x1ca223['from']+_0x27df11,'insert':_0x5ce3b8+'\x20'});let _0x553d94=_0x5a2663['changes'](_0x55070e);return{'changes':_0x553d94,'selection':_0x5a2663['selection']['map'](_0x553d94,0x1)};}if(0x1!=_0x4989e5&&_0x14c781['some'](_0x5069cb=>_0x5069cb['comment']>=0x0)){let _0x1bd92b=[];for(let {line:_0x3d4eda,comment:_0x26ab2f,token:_0x465d9c}of _0x14c781)if(_0x26ab2f>=0x0){let _0x2c5460=_0x3d4eda['from']+_0x26ab2f,_0xb49d8d=_0x2c5460+_0x465d9c['length'];'\x20'==_0x3d4eda['text'][_0xb49d8d-_0x3d4eda['from']]&&_0xb49d8d++,_0x1bd92b['push']({'from':_0x2c5460,'to':_0xb49d8d});}return{'changes':_0x1bd92b};}return null;}const fromHistory=Annotation['define'](),isolateHistory=Annotation['define'](),invertedEffects=Facet['define'](),historyConfig=Facet['define']({'combine':_0x2c1ded=>combineConfig(_0x2c1ded,{'minDepth':0x64,'newGroupDelay':0x1f4,'joinToEvent':(_0xcc7fe6,_0x261116)=>_0x261116},{'minDepth':Math['max'],'newGroupDelay':Math['min'],'joinToEvent':(_0x523298,_0xa50a81)=>(_0x4ad797,_0x582e73)=>_0x523298(_0x4ad797,_0x582e73)||_0xa50a81(_0x4ad797,_0x582e73)})}),historyField_=StateField['define']({'create':()=>HistoryState['empty'],'update'(_0x35a8a9,_0x4af097){let _0x52d157=_0x4af097['state']['facet'](historyConfig),_0x65c8f3=_0x4af097['annotation'](fromHistory);if(_0x65c8f3){let _0x438c2c=HistEvent['fromTransaction'](_0x4af097,_0x65c8f3['selection']),_0xac0dc2=_0x65c8f3['side'],_0x1f7153=0x0==_0xac0dc2?_0x35a8a9['undone']:_0x35a8a9['done'];return _0x1f7153=_0x438c2c?updateBranch(_0x1f7153,_0x1f7153['length'],_0x52d157['minDepth'],_0x438c2c):addSelection(_0x1f7153,_0x4af097['startState']['selection']),new HistoryState(0x0==_0xac0dc2?_0x65c8f3['rest']:_0x1f7153,0x0==_0xac0dc2?_0x1f7153:_0x65c8f3['rest']);}let _0xa864f0=_0x4af097['annotation'](isolateHistory);if('full'!=_0xa864f0&&'before'!=_0xa864f0||(_0x35a8a9=_0x35a8a9['isolate']()),!0x1===_0x4af097['annotation'](Transaction['addToHistory']))return _0x4af097['changes']['empty']?_0x35a8a9:_0x35a8a9['addMapping'](_0x4af097['changes']['desc']);let _0x496b18=HistEvent['fromTransaction'](_0x4af097),_0x1bb2f6=_0x4af097['annotation'](Transaction['time']),_0xa2e483=_0x4af097['annotation'](Transaction['userEvent']);return _0x496b18?_0x35a8a9=_0x35a8a9['addChanges'](_0x496b18,_0x1bb2f6,_0xa2e483,_0x52d157,_0x4af097):_0x4af097['selection']&&(_0x35a8a9=_0x35a8a9['addSelection'](_0x4af097['startState']['selection'],_0x1bb2f6,_0xa2e483,_0x52d157['newGroupDelay'])),'full'!=_0xa864f0&&'after'!=_0xa864f0||(_0x35a8a9=_0x35a8a9['isolate']()),_0x35a8a9;},'toJSON':_0x5bd740=>({'done':_0x5bd740['done']['map'](_0x1269b4=>_0x1269b4['toJSON']()),'undone':_0x5bd740['undone']['map'](_0x53e5a8=>_0x53e5a8['toJSON']())}),'fromJSON':_0x1ee827=>new HistoryState(_0x1ee827['done']['map'](HistEvent['fromJSON']),_0x1ee827['undone']['map'](HistEvent['fromJSON']))});function history(_0x57b632={}){return[historyField_,historyConfig['of'](_0x57b632),EditorView['domEventHandlers']({'beforeinput'(_0x45510d,_0x168bcb){let _0x3ff6f4='historyUndo'==_0x45510d['inputType']?undo:'historyRedo'==_0x45510d['inputType']?redo:null;return!!_0x3ff6f4&&(_0x45510d['preventDefault'](),_0x3ff6f4(_0x168bcb));}})];}function cmd(_0x3ce5d8,_0x4018cc){return function({state:_0x5564cd,dispatch:_0x429f8a}){if(!_0x4018cc&&_0x5564cd['readOnly'])return!0x1;let _0x3f0658=_0x5564cd['field'](historyField_,!0x1);if(!_0x3f0658)return!0x1;let _0x4dc3b5=_0x3f0658['pop'](_0x3ce5d8,_0x5564cd,_0x4018cc);return!!_0x4dc3b5&&(_0x429f8a(_0x4dc3b5),!0x0);};}const undo=cmd(0x0,!0x1),redo=cmd(0x1,!0x1),undoSelection=cmd(0x0,!0x0),redoSelection=cmd(0x1,!0x0);class HistEvent{constructor(_0x44121d,_0x175bfb,_0x5ee93c,_0x389fcc,_0x25985b){this['changes']=_0x44121d,this['effects']=_0x175bfb,this['mapped']=_0x5ee93c,this['startSelection']=_0x389fcc,this['selectionsAfter']=_0x25985b;}['setSelAfter'](_0x5e6d93){return new HistEvent(this['changes'],this['effects'],this['mapped'],this['startSelection'],_0x5e6d93);}['toJSON'](){var _0x45cf2a,_0x15c80d,_0x50606a;return{'changes':null===(_0x45cf2a=this['changes'])||void 0x0===_0x45cf2a?void 0x0:_0x45cf2a['toJSON'](),'mapped':null===(_0x15c80d=this['mapped'])||void 0x0===_0x15c80d?void 0x0:_0x15c80d['toJSON'](),'startSelection':null===(_0x50606a=this['startSelection'])||void 0x0===_0x50606a?void 0x0:_0x50606a['toJSON'](),'selectionsAfter':this['selectionsAfter']['map'](_0x3c7b73=>_0x3c7b73['toJSON']())};}static['fromJSON'](_0x3c57bc){return new HistEvent(_0x3c57bc['changes']&&ChangeSet['fromJSON'](_0x3c57bc['changes']),[],_0x3c57bc['mapped']&&ChangeDesc['fromJSON'](_0x3c57bc['mapped']),_0x3c57bc['startSelection']&&EditorSelection['fromJSON'](_0x3c57bc['startSelection']),_0x3c57bc['selectionsAfter']['map'](EditorSelection['fromJSON']));}static['fromTransaction'](_0x50f77d,_0x5f4b04){let _0x4a5cd0=none$2;for(let _0x33d772 of _0x50f77d['startState']['facet'](invertedEffects)){let _0x4a2f32=_0x33d772(_0x50f77d);_0x4a2f32['length']&&(_0x4a5cd0=_0x4a5cd0['concat'](_0x4a2f32));}return!_0x4a5cd0['length']&&_0x50f77d['changes']['empty']?null:new HistEvent(_0x50f77d['changes']['invert'](_0x50f77d['startState']['doc']),_0x4a5cd0,void 0x0,_0x5f4b04||_0x50f77d['startState']['selection'],none$2);}static['selection'](_0x2014c4){return new HistEvent(void 0x0,none$2,void 0x0,void 0x0,_0x2014c4);}}function updateBranch(_0xb4568f,_0x57857e,_0x37cb7b,_0x59729f){let _0x160bb5=_0x57857e+0x1>_0x37cb7b+0x14?_0x57857e-_0x37cb7b-0x1:0x0,_0x23e277=_0xb4568f['slice'](_0x160bb5,_0x57857e);return _0x23e277['push'](_0x59729f),_0x23e277;}function isAdjacent(_0xc9233a,_0x3ae6c2){let _0x272825=[],_0x52d84a=!0x1;return _0xc9233a['iterChangedRanges']((_0x9c22b1,t)=>_0x272825['push'](_0x9c22b1,t)),_0x3ae6c2['iterChangedRanges']((_0x516fc3,_0x179f5f,_0x26c7cc,t)=>{for(let _0x191889=0x0;_0x191889<_0x272825['length'];){let _0x10940e=_0x272825[_0x191889++],_0x259aae=_0x272825[_0x191889++];t>=_0x10940e&&_0x26c7cc<=_0x259aae&&(_0x52d84a=!0x0);}}),_0x52d84a;}function eqSelectionShape(_0xd0ce71,_0x567beb){return _0xd0ce71['ranges']['length']==_0x567beb['ranges']['length']&&0x0===_0xd0ce71['ranges']['filter']((_0x48c405,_0x329a92)=>_0x48c405['empty']!=_0x567beb['ranges'][_0x329a92]['empty'])['length'];}function conc(_0xedf8d0,_0x2bf453){return _0xedf8d0['length']?_0x2bf453['length']?_0xedf8d0['concat'](_0x2bf453):_0xedf8d0:_0x2bf453;}const none$2=[],MaxSelectionsPerEvent=0xc8;function addSelection(_0x433efc,_0x1e656e){if(_0x433efc['length']){let _0xba379c=_0x433efc[_0x433efc['length']-0x1],_0x5742fe=_0xba379c['selectionsAfter']['slice'](Math['max'](0x0,_0xba379c['selectionsAfter']['length']-MaxSelectionsPerEvent));return _0x5742fe['length']&&_0x5742fe[_0x5742fe['length']-0x1]['eq'](_0x1e656e)?_0x433efc:(_0x5742fe['push'](_0x1e656e),updateBranch(_0x433efc,_0x433efc['length']-0x1,0x3b9aca00,_0xba379c['setSelAfter'](_0x5742fe)));}return[HistEvent['selection']([_0x1e656e])];}function popSelection(_0x459066){let _0x14d074=_0x459066[_0x459066['length']-0x1],_0x112173=_0x459066['slice']();return _0x112173[_0x459066['length']-0x1]=_0x14d074['setSelAfter'](_0x14d074['selectionsAfter']['slice'](0x0,_0x14d074['selectionsAfter']['length']-0x1)),_0x112173;}function addMappingToBranch(_0x1a11ef,_0x3f621e){if(!_0x1a11ef['length'])return _0x1a11ef;let _0x38fe8b=_0x1a11ef['length'],_0x2074cb=none$2;for(;_0x38fe8b;){let _0x13a692=mapEvent(_0x1a11ef[_0x38fe8b-0x1],_0x3f621e,_0x2074cb);if(_0x13a692['changes']&&!_0x13a692['changes']['empty']||_0x13a692['effects']['length']){let _0x5c28d1=_0x1a11ef['slice'](0x0,_0x38fe8b);return _0x5c28d1[_0x38fe8b-0x1]=_0x13a692,_0x5c28d1;}_0x3f621e=_0x13a692['mapped'],_0x38fe8b--,_0x2074cb=_0x13a692['selectionsAfter'];}return _0x2074cb['length']?[HistEvent['selection'](_0x2074cb)]:none$2;}function mapEvent(_0x23970a,_0x19521c,_0x56283b){let _0x291bcf=conc(_0x23970a['selectionsAfter']['length']?_0x23970a['selectionsAfter']['map'](_0x89ca0=>_0x89ca0['map'](_0x19521c)):none$2,_0x56283b);if(!_0x23970a['changes'])return HistEvent['selection'](_0x291bcf);let _0xbe766a=_0x23970a['changes']['map'](_0x19521c),_0x18327a=_0x19521c['mapDesc'](_0x23970a['changes'],!0x0),_0xa06ed=_0x23970a['mapped']?_0x23970a['mapped']['composeDesc'](_0x18327a):_0x18327a;return new HistEvent(_0xbe766a,StateEffect['mapEffects'](_0x23970a['effects'],_0x19521c),_0xa06ed,_0x23970a['startSelection']['map'](_0x18327a),_0x291bcf);}const joinableUserEvent=/^(input\.type|delete)($|\.)/;class HistoryState{constructor(_0x59fd72,_0x2802c0,_0x4e3a7e=0x0,_0x18f365=void 0x0){this['done']=_0x59fd72,this['undone']=_0x2802c0,this['prevTime']=_0x4e3a7e,this['prevUserEvent']=_0x18f365;}['isolate'](){return this['prevTime']?new HistoryState(this['done'],this['undone']):this;}['addChanges'](_0x4a8a8e,_0x192e96,_0x14c301,_0x2b6987,_0x266bb5){let _0x24d9c9=this['done'],_0x5c1d30=_0x24d9c9[_0x24d9c9['length']-0x1];return _0x24d9c9=_0x5c1d30&&_0x5c1d30['changes']&&!_0x5c1d30['changes']['empty']&&_0x4a8a8e['changes']&&(!_0x14c301||joinableUserEvent['test'](_0x14c301))&&(!_0x5c1d30['selectionsAfter']['length']&&_0x192e96-this['prevTime']<_0x2b6987['newGroupDelay']&&_0x2b6987['joinToEvent'](_0x266bb5,isAdjacent(_0x5c1d30['changes'],_0x4a8a8e['changes']))||'input.type.compose'==_0x14c301)?updateBranch(_0x24d9c9,_0x24d9c9['length']-0x1,_0x2b6987['minDepth'],new HistEvent(_0x4a8a8e['changes']['compose'](_0x5c1d30['changes']),conc(StateEffect['mapEffects'](_0x4a8a8e['effects'],_0x5c1d30['changes']),_0x5c1d30['effects']),_0x5c1d30['mapped'],_0x5c1d30['startSelection'],none$2)):updateBranch(_0x24d9c9,_0x24d9c9['length'],_0x2b6987['minDepth'],_0x4a8a8e),new HistoryState(_0x24d9c9,none$2,_0x192e96,_0x14c301);}['addSelection'](_0x528c5f,_0x5739ec,_0x62bb63,_0xc5184d){let _0x4088fb=this['done']['length']?this['done'][this['done']['length']-0x1]['selectionsAfter']:none$2;return _0x4088fb['length']>0x0&&_0x5739ec-this['prevTime']<_0xc5184d&&_0x62bb63==this['prevUserEvent']&&_0x62bb63&&/^select($|\.)/['test'](_0x62bb63)&&eqSelectionShape(_0x4088fb[_0x4088fb['length']-0x1],_0x528c5f)?this:new HistoryState(addSelection(this['done'],_0x528c5f),this['undone'],_0x5739ec,_0x62bb63);}['addMapping'](_0x4a2f5e){return new HistoryState(addMappingToBranch(this['done'],_0x4a2f5e),addMappingToBranch(this['undone'],_0x4a2f5e),this['prevTime'],this['prevUserEvent']);}['pop'](_0x28f888,_0x18403f,_0x19c10e){let _0x8fe6db=0x0==_0x28f888?this['done']:this['undone'];if(0x0==_0x8fe6db['length'])return null;let _0x2673e3=_0x8fe6db[_0x8fe6db['length']-0x1],_0x5e2c47=_0x2673e3['selectionsAfter'][0x0]||_0x18403f['selection'];if(_0x19c10e&&_0x2673e3['selectionsAfter']['length'])return _0x18403f['update']({'selection':_0x2673e3['selectionsAfter'][_0x2673e3['selectionsAfter']['length']-0x1],'annotations':fromHistory['of']({'side':_0x28f888,'rest':popSelection(_0x8fe6db),'selection':_0x5e2c47}),'userEvent':0x0==_0x28f888?'select.undo':'select.redo','scrollIntoView':!0x0});if(_0x2673e3['changes']){let _0x4e68a6=0x1==_0x8fe6db['length']?none$2:_0x8fe6db['slice'](0x0,_0x8fe6db['length']-0x1);return _0x2673e3['mapped']&&(_0x4e68a6=addMappingToBranch(_0x4e68a6,_0x2673e3['mapped'])),_0x18403f['update']({'changes':_0x2673e3['changes'],'selection':_0x2673e3['startSelection'],'effects':_0x2673e3['effects'],'annotations':fromHistory['of']({'side':_0x28f888,'rest':_0x4e68a6,'selection':_0x5e2c47}),'filter':!0x1,'userEvent':0x0==_0x28f888?'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(_0x12c076,_0x51fd65){return EditorSelection['create'](_0x12c076['ranges']['map'](_0x51fd65),_0x12c076['mainIndex']);}function setSel(_0x21906f,_0x30b0a3){return _0x21906f['update']({'selection':_0x30b0a3,'scrollIntoView':!0x0,'userEvent':'select'});}function moveSel({state:_0x29e9a0,dispatch:_0x313825},_0x5f65dc){let _0x556e00=updateSel(_0x29e9a0['selection'],_0x5f65dc);return!_0x556e00['eq'](_0x29e9a0['selection'],!0x0)&&(_0x313825(setSel(_0x29e9a0,_0x556e00)),!0x0);}function rangeEnd(_0x2338ac,_0x46bb81){return EditorSelection['cursor'](_0x46bb81?_0x2338ac['to']:_0x2338ac['from']);}function cursorByChar(_0x3ed42f,_0x4366e3){return moveSel(_0x3ed42f,_0x1a4982=>_0x1a4982['empty']?_0x3ed42f['moveByChar'](_0x1a4982,_0x4366e3):rangeEnd(_0x1a4982,_0x4366e3));}function ltrAtCursor(_0x13a410){return _0x13a410['textDirectionAt'](_0x13a410['state']['selection']['main']['head'])==Direction['LTR'];}const cursorCharLeft=_0x1f7066=>cursorByChar(_0x1f7066,!ltrAtCursor(_0x1f7066)),cursorCharRight=_0x3e2087=>cursorByChar(_0x3e2087,ltrAtCursor(_0x3e2087));function cursorByGroup(_0x24f661,_0x2e50b1){return moveSel(_0x24f661,_0x2a5d4f=>_0x2a5d4f['empty']?_0x24f661['moveByGroup'](_0x2a5d4f,_0x2e50b1):rangeEnd(_0x2a5d4f,_0x2e50b1));}const cursorGroupLeft=_0x2f155a=>cursorByGroup(_0x2f155a,!ltrAtCursor(_0x2f155a)),cursorGroupRight=_0x29fdfd=>cursorByGroup(_0x29fdfd,ltrAtCursor(_0x29fdfd));function interestingNode(_0x503594,_0x592d3f,_0x4647c3){if(_0x592d3f['type']['prop'](_0x4647c3))return!0x0;let _0x232095=_0x592d3f['to']-_0x592d3f['from'];return _0x232095&&(_0x232095>0x2||/[^\s,.;:]/['test'](_0x503594['sliceDoc'](_0x592d3f['from'],_0x592d3f['to'])))||_0x592d3f['firstChild'];}function moveBySyntax(_0x222fac,_0x33c415,_0x57ce1f){let _0xed588e,_0x4aef62,_0x3c8256=syntaxTree(_0x222fac)['resolveInner'](_0x33c415['head']),_0xdab158=_0x57ce1f?NodeProp['closedBy']:NodeProp['openedBy'];for(let _0xfe7498=_0x33c415['head'];;){let _0x250337=_0x57ce1f?_0x3c8256['childAfter'](_0xfe7498):_0x3c8256['childBefore'](_0xfe7498);if(!_0x250337)break;interestingNode(_0x222fac,_0x250337,_0xdab158)?_0x3c8256=_0x250337:_0xfe7498=_0x57ce1f?_0x250337['to']:_0x250337['from'];}return _0x4aef62=_0x3c8256['type']['prop'](_0xdab158)&&(_0xed588e=_0x57ce1f?matchBrackets(_0x222fac,_0x3c8256['from'],0x1):matchBrackets(_0x222fac,_0x3c8256['to'],-0x1))&&_0xed588e['matched']?_0x57ce1f?_0xed588e['end']['to']:_0xed588e['end']['from']:_0x57ce1f?_0x3c8256['to']:_0x3c8256['from'],EditorSelection['cursor'](_0x4aef62,_0x57ce1f?-0x1:0x1);}const cursorSyntaxLeft=_0x2456f6=>moveSel(_0x2456f6,_0x3e6d38=>moveBySyntax(_0x2456f6['state'],_0x3e6d38,!ltrAtCursor(_0x2456f6))),cursorSyntaxRight=_0x10bfce=>moveSel(_0x10bfce,_0x25e165=>moveBySyntax(_0x10bfce['state'],_0x25e165,ltrAtCursor(_0x10bfce)));function cursorByLine(_0x57737d,_0x582e1f){return moveSel(_0x57737d,_0x4c40dd=>{if(!_0x4c40dd['empty'])return rangeEnd(_0x4c40dd,_0x582e1f);let _0xe791a4=_0x57737d['moveVertically'](_0x4c40dd,_0x582e1f);return _0xe791a4['head']!=_0x4c40dd['head']?_0xe791a4:_0x57737d['moveToLineBoundary'](_0x4c40dd,_0x582e1f);});}const cursorLineUp=_0xbc640d=>cursorByLine(_0xbc640d,!0x1),cursorLineDown=_0x37e0ef=>cursorByLine(_0x37e0ef,!0x0);function pageInfo(_0x3da17d){let _0x5a5ead,_0x1c2584=_0x3da17d['scrollDOM']['clientHeight']<_0x3da17d['scrollDOM']['scrollHeight']-0x2,_0x41fd60=0x0,_0x132746=0x0;if(_0x1c2584){for(let _0x33fb48 of _0x3da17d['state']['facet'](EditorView['scrollMargins'])){let _0x27969b=_0x33fb48(_0x3da17d);(null==_0x27969b?void 0x0:_0x27969b['top'])&&(_0x41fd60=Math['max'](null==_0x27969b?void 0x0:_0x27969b['top'],_0x41fd60)),(null==_0x27969b?void 0x0:_0x27969b['bottom'])&&(_0x132746=Math['max'](null==_0x27969b?void 0x0:_0x27969b['bottom'],_0x132746));}_0x5a5ead=_0x3da17d['scrollDOM']['clientHeight']-_0x41fd60-_0x132746;}else _0x5a5ead=(_0x3da17d['dom']['ownerDocument']['defaultView']||window)['innerHeight'];return{'marginTop':_0x41fd60,'marginBottom':_0x132746,'selfScroll':_0x1c2584,'height':Math['max'](_0x3da17d['defaultLineHeight'],_0x5a5ead-0x5)};}function cursorByPage(_0x5539f7,_0x1ef00d){let _0x117728,_0x5a33ff=pageInfo(_0x5539f7),{state:_0x4bda4e}=_0x5539f7,_0x402ee1=updateSel(_0x4bda4e['selection'],_0x4d662e=>_0x4d662e['empty']?_0x5539f7['moveVertically'](_0x4d662e,_0x1ef00d,_0x5a33ff['height']):rangeEnd(_0x4d662e,_0x1ef00d));if(_0x402ee1['eq'](_0x4bda4e['selection']))return!0x1;if(_0x5a33ff['selfScroll']){let _0x43d488=_0x5539f7['coordsAtPos'](_0x4bda4e['selection']['main']['head']),_0x403ef4=_0x5539f7['scrollDOM']['getBoundingClientRect'](),_0x5c3a88=_0x403ef4['top']+_0x5a33ff['marginTop'],_0x20ff28=_0x403ef4['bottom']-_0x5a33ff['marginBottom'];_0x43d488&&_0x43d488['top']>_0x5c3a88&&_0x43d488['bottom']<_0x20ff28&&(_0x117728=EditorView['scrollIntoView'](_0x402ee1['main']['head'],{'y':'start','yMargin':_0x43d488['top']-_0x5c3a88}));}return _0x5539f7['dispatch'](setSel(_0x4bda4e,_0x402ee1),{'effects':_0x117728}),!0x0;}const cursorPageUp=_0x16cf23=>cursorByPage(_0x16cf23,!0x1),cursorPageDown=_0xf56d10=>cursorByPage(_0xf56d10,!0x0);function moveByLineBoundary(_0x19a274,_0xb8f1b6,_0x36b1c9){let _0x1fa5c7=_0x19a274['lineBlockAt'](_0xb8f1b6['head']),_0x438acb=_0x19a274['moveToLineBoundary'](_0xb8f1b6,_0x36b1c9);if(_0x438acb['head']==_0xb8f1b6['head']&&_0x438acb['head']!=(_0x36b1c9?_0x1fa5c7['to']:_0x1fa5c7['from'])&&(_0x438acb=_0x19a274['moveToLineBoundary'](_0xb8f1b6,_0x36b1c9,!0x1)),!_0x36b1c9&&_0x438acb['head']==_0x1fa5c7['from']&&_0x1fa5c7['length']){let _0x5db8f3=/^\s*/['exec'](_0x19a274['state']['sliceDoc'](_0x1fa5c7['from'],Math['min'](_0x1fa5c7['from']+0x64,_0x1fa5c7['to'])))[0x0]['length'];_0x5db8f3&&_0xb8f1b6['head']!=_0x1fa5c7['from']+_0x5db8f3&&(_0x438acb=EditorSelection['cursor'](_0x1fa5c7['from']+_0x5db8f3));}return _0x438acb;}const cursorLineBoundaryForward=_0xbd9765=>moveSel(_0xbd9765,_0x5ed69d=>moveByLineBoundary(_0xbd9765,_0x5ed69d,!0x0)),cursorLineBoundaryBackward=_0x752d94=>moveSel(_0x752d94,_0x477b7d=>moveByLineBoundary(_0x752d94,_0x477b7d,!0x1)),cursorLineBoundaryLeft=_0x2e0b8d=>moveSel(_0x2e0b8d,_0x57976c=>moveByLineBoundary(_0x2e0b8d,_0x57976c,!ltrAtCursor(_0x2e0b8d))),cursorLineBoundaryRight=_0x2816d3=>moveSel(_0x2816d3,_0x43db9c=>moveByLineBoundary(_0x2816d3,_0x43db9c,ltrAtCursor(_0x2816d3))),cursorLineStart=_0xee83c0=>moveSel(_0xee83c0,_0x2863be=>EditorSelection['cursor'](_0xee83c0['lineBlockAt'](_0x2863be['head'])['from'],0x1)),cursorLineEnd=_0x17491e=>moveSel(_0x17491e,_0x144b77=>EditorSelection['cursor'](_0x17491e['lineBlockAt'](_0x144b77['head'])['to'],-0x1));function toMatchingBracket(_0x38fd66,_0x5b7379,_0x11739d){let _0x57fda0=!0x1,_0x2048d0=updateSel(_0x38fd66['selection'],_0x3a7f14=>{let _0x241d59=matchBrackets(_0x38fd66,_0x3a7f14['head'],-0x1)||matchBrackets(_0x38fd66,_0x3a7f14['head'],0x1)||_0x3a7f14['head']>0x0&&matchBrackets(_0x38fd66,_0x3a7f14['head']-0x1,0x1)||_0x3a7f14['head']<_0x38fd66['doc']['length']&&matchBrackets(_0x38fd66,_0x3a7f14['head']+0x1,-0x1);if(!_0x241d59||!_0x241d59['end'])return _0x3a7f14;_0x57fda0=!0x0;let _0x26e1de=_0x241d59['start']['from']==_0x3a7f14['head']?_0x241d59['end']['to']:_0x241d59['end']['from'];return EditorSelection['cursor'](_0x26e1de);});return!!_0x57fda0&&(_0x5b7379(setSel(_0x38fd66,_0x2048d0)),!0x0);}const cursorMatchingBracket=({state:_0x2c4909,dispatch:_0x226ca7})=>toMatchingBracket(_0x2c4909,_0x226ca7);function extendSel(_0x2272f0,_0x264955){let _0x98f629=updateSel(_0x2272f0['state']['selection'],_0x363202=>{let _0x5f431f=_0x264955(_0x363202);return EditorSelection['range'](_0x363202['anchor'],_0x5f431f['head'],_0x5f431f['goalColumn'],_0x5f431f['bidiLevel']||void 0x0);});return!_0x98f629['eq'](_0x2272f0['state']['selection'])&&(_0x2272f0['dispatch'](setSel(_0x2272f0['state'],_0x98f629)),!0x0);}function selectByChar(_0x4a4bdf,_0x55647c){return extendSel(_0x4a4bdf,_0x47c027=>_0x4a4bdf['moveByChar'](_0x47c027,_0x55647c));}const selectCharLeft=_0x5895f0=>selectByChar(_0x5895f0,!ltrAtCursor(_0x5895f0)),selectCharRight=_0x25a64b=>selectByChar(_0x25a64b,ltrAtCursor(_0x25a64b));function selectByGroup(_0x46de01,_0x41a22e){return extendSel(_0x46de01,_0x420d89=>_0x46de01['moveByGroup'](_0x420d89,_0x41a22e));}const selectGroupLeft=_0x290683=>selectByGroup(_0x290683,!ltrAtCursor(_0x290683)),selectGroupRight=_0x291deb=>selectByGroup(_0x291deb,ltrAtCursor(_0x291deb)),selectSyntaxLeft=_0xe8f9fe=>extendSel(_0xe8f9fe,_0x5356de=>moveBySyntax(_0xe8f9fe['state'],_0x5356de,!ltrAtCursor(_0xe8f9fe))),selectSyntaxRight=_0x44aa30=>extendSel(_0x44aa30,_0x29d15e=>moveBySyntax(_0x44aa30['state'],_0x29d15e,ltrAtCursor(_0x44aa30)));function selectByLine(_0x583494,_0x5b1667){return extendSel(_0x583494,_0x305361=>_0x583494['moveVertically'](_0x305361,_0x5b1667));}const selectLineUp=_0x300499=>selectByLine(_0x300499,!0x1),selectLineDown=_0x55d521=>selectByLine(_0x55d521,!0x0);function selectByPage(_0x4e1349,_0x5f0c4b){return extendSel(_0x4e1349,_0x280009=>_0x4e1349['moveVertically'](_0x280009,_0x5f0c4b,pageInfo(_0x4e1349)['height']));}const selectPageUp=_0x4581ae=>selectByPage(_0x4581ae,!0x1),selectPageDown=_0x250e3c=>selectByPage(_0x250e3c,!0x0),selectLineBoundaryForward=_0x380751=>extendSel(_0x380751,_0x5fa886=>moveByLineBoundary(_0x380751,_0x5fa886,!0x0)),selectLineBoundaryBackward=_0x5d9d57=>extendSel(_0x5d9d57,_0x157674=>moveByLineBoundary(_0x5d9d57,_0x157674,!0x1)),selectLineBoundaryLeft=_0xa148ae=>extendSel(_0xa148ae,_0x16d90d=>moveByLineBoundary(_0xa148ae,_0x16d90d,!ltrAtCursor(_0xa148ae))),selectLineBoundaryRight=_0x2a753c=>extendSel(_0x2a753c,_0x3adb9d=>moveByLineBoundary(_0x2a753c,_0x3adb9d,ltrAtCursor(_0x2a753c))),selectLineStart=_0x3f6198=>extendSel(_0x3f6198,_0x3f3464=>EditorSelection['cursor'](_0x3f6198['lineBlockAt'](_0x3f3464['head'])['from'])),selectLineEnd=_0x38ecac=>extendSel(_0x38ecac,_0xf879c0=>EditorSelection['cursor'](_0x38ecac['lineBlockAt'](_0xf879c0['head'])['to'])),cursorDocStart=({state:_0x4f7848,dispatch:_0x9a5b37})=>(_0x9a5b37(setSel(_0x4f7848,{'anchor':0x0})),!0x0),cursorDocEnd=({state:_0x58196c,dispatch:_0x34eeed})=>(_0x34eeed(setSel(_0x58196c,{'anchor':_0x58196c['doc']['length']})),!0x0),selectDocStart=({state:_0x4d8d5a,dispatch:_0x454171})=>(_0x454171(setSel(_0x4d8d5a,{'anchor':_0x4d8d5a['selection']['main']['anchor'],'head':0x0})),!0x0),selectDocEnd=({state:_0x28c9d4,dispatch:_0x3bcecf})=>(_0x3bcecf(setSel(_0x28c9d4,{'anchor':_0x28c9d4['selection']['main']['anchor'],'head':_0x28c9d4['doc']['length']})),!0x0),selectAll=({state:_0x2af7c5,dispatch:_0x2ca57a})=>(_0x2ca57a(_0x2af7c5['update']({'selection':{'anchor':0x0,'head':_0x2af7c5['doc']['length']},'userEvent':'select'})),!0x0),selectLine=({state:_0x587320,dispatch:_0x55e83e})=>{let _0x4dc532=selectedLineBlocks(_0x587320)['map'](({from:_0x5ac7ab,to:_0x57ba40})=>EditorSelection['range'](_0x5ac7ab,Math['min'](_0x57ba40+0x1,_0x587320['doc']['length'])));return _0x55e83e(_0x587320['update']({'selection':EditorSelection['create'](_0x4dc532),'userEvent':'select'})),!0x0;},selectParentSyntax=({state:_0x240c33,dispatch:_0x1c9dfa})=>{let _0x5cb8bd=updateSel(_0x240c33['selection'],_0x46adc7=>{let _0xbab57b=syntaxTree(_0x240c33),_0x460be2=_0xbab57b['resolveStack'](_0x46adc7['from'],0x1);if(_0x46adc7['empty']){let _0x127184=_0xbab57b['resolveStack'](_0x46adc7['from'],-0x1);_0x127184['node']['from']>=_0x460be2['node']['from']&&_0x127184['node']['to']<=_0x460be2['node']['to']&&(_0x460be2=_0x127184);}for(let _0xc45d08=_0x460be2;_0xc45d08;_0xc45d08=_0xc45d08['next']){let {node:_0x4d8169}=_0xc45d08;if((_0x4d8169['from']<_0x46adc7['from']&&_0x4d8169['to']>=_0x46adc7['to']||_0x4d8169['to']>_0x46adc7['to']&&_0x4d8169['from']<=_0x46adc7['from'])&&_0xc45d08['next'])return EditorSelection['range'](_0x4d8169['to'],_0x4d8169['from']);}return _0x46adc7;});return!_0x5cb8bd['eq'](_0x240c33['selection'])&&(_0x1c9dfa(setSel(_0x240c33,_0x5cb8bd)),!0x0);},simplifySelection=({state:_0x17668a,dispatch:_0x2ba71c})=>{let _0x15a3db=_0x17668a['selection'],_0x5b1634=null;return _0x15a3db['ranges']['length']>0x1?_0x5b1634=EditorSelection['create']([_0x15a3db['main']]):_0x15a3db['main']['empty']||(_0x5b1634=EditorSelection['create']([EditorSelection['cursor'](_0x15a3db['main']['head'])])),!!_0x5b1634&&(_0x2ba71c(setSel(_0x17668a,_0x5b1634)),!0x0);};function deleteBy(_0x21e7b7,_0x4fa2ec){if(_0x21e7b7['state']['readOnly'])return!0x1;let _0x111c93='delete.selection',{state:_0x3146f3}=_0x21e7b7,_0x1ffc77=_0x3146f3['changeByRange'](_0x3f3c64=>{let {from:_0x476a8a,to:_0x2a61e6}=_0x3f3c64;if(_0x476a8a==_0x2a61e6){let _0x41431e=_0x4fa2ec(_0x3f3c64);_0x41431e<_0x476a8a?(_0x111c93='delete.backward',_0x41431e=skipAtomic(_0x21e7b7,_0x41431e,!0x1)):_0x41431e>_0x476a8a&&(_0x111c93='delete.forward',_0x41431e=skipAtomic(_0x21e7b7,_0x41431e,!0x0)),_0x476a8a=Math['min'](_0x476a8a,_0x41431e),_0x2a61e6=Math['max'](_0x2a61e6,_0x41431e);}else _0x476a8a=skipAtomic(_0x21e7b7,_0x476a8a,!0x1),_0x2a61e6=skipAtomic(_0x21e7b7,_0x2a61e6,!0x0);return _0x476a8a==_0x2a61e6?{'range':_0x3f3c64}:{'changes':{'from':_0x476a8a,'to':_0x2a61e6},'range':EditorSelection['cursor'](_0x476a8a,_0x476a8a<_0x3f3c64['head']?-0x1:0x1)};});return!_0x1ffc77['changes']['empty']&&(_0x21e7b7['dispatch'](_0x3146f3['update'](_0x1ffc77,{'scrollIntoView':!0x0,'userEvent':_0x111c93,'effects':'delete.selection'==_0x111c93?EditorView['announce']['of'](_0x3146f3['phrase']('Selection\x20deleted')):void 0x0})),!0x0);}function skipAtomic(_0x2fa035,_0x3d772e,_0xe38a8c){if(_0x2fa035 instanceof EditorView){for(let _0x4745a6 of _0x2fa035['state']['facet'](EditorView['atomicRanges'])['map'](_0x11c4ca=>_0x11c4ca(_0x2fa035)))_0x4745a6['between'](_0x3d772e,_0x3d772e,(_0x43ac5d,_0x5c0458)=>{_0x43ac5d<_0x3d772e&&_0x5c0458>_0x3d772e&&(_0x3d772e=_0xe38a8c?_0x5c0458:_0x43ac5d);});}return _0x3d772e;}const deleteByChar=(_0x2f4bb2,_0x41c07d,_0x58f636)=>deleteBy(_0x2f4bb2,_0x3f846a=>{let _0x8b5b0c,_0x40e599,_0x5a85d6=_0x3f846a['from'],{state:_0xf270ce}=_0x2f4bb2,_0x5b40b8=_0xf270ce['doc']['lineAt'](_0x5a85d6);if(_0x58f636&&!_0x41c07d&&_0x5a85d6>_0x5b40b8['from']&&_0x5a85d6<_0x5b40b8['from']+0xc8&&!/[^ \t]/['test'](_0x8b5b0c=_0x5b40b8['text']['slice'](0x0,_0x5a85d6-_0x5b40b8['from']))){if('\x09'==_0x8b5b0c[_0x8b5b0c['length']-0x1])return _0x5a85d6-0x1;let _0x3785b6=countColumn(_0x8b5b0c,_0xf270ce['tabSize'])%getIndentUnit(_0xf270ce)||getIndentUnit(_0xf270ce);for(let _0x2b8f7d=0x0;_0x2b8f7d<_0x3785b6&&'\x20'==_0x8b5b0c[_0x8b5b0c['length']-0x1-_0x2b8f7d];_0x2b8f7d++)_0x5a85d6--;_0x40e599=_0x5a85d6;}else _0x40e599=findClusterBreak(_0x5b40b8['text'],_0x5a85d6-_0x5b40b8['from'],_0x41c07d,_0x41c07d)+_0x5b40b8['from'],_0x40e599==_0x5a85d6&&_0x5b40b8['number']!=(_0x41c07d?_0xf270ce['doc']['lines']:0x1)?_0x40e599+=_0x41c07d?0x1:-0x1:!_0x41c07d&&/[\ufe00-\ufe0f]/['test'](_0x5b40b8['text']['slice'](_0x40e599-_0x5b40b8['from'],_0x5a85d6-_0x5b40b8['from']))&&(_0x40e599=findClusterBreak(_0x5b40b8['text'],_0x40e599-_0x5b40b8['from'],!0x1,!0x1)+_0x5b40b8['from']);return _0x40e599;}),deleteCharBackward=_0x11e744=>deleteByChar(_0x11e744,!0x1,!0x0),deleteCharForward=_0x3bcec4=>deleteByChar(_0x3bcec4,!0x0,!0x1),deleteByGroup=(_0x57a1c4,_0x59351b)=>deleteBy(_0x57a1c4,_0x4d3614=>{let _0x15d877=_0x4d3614['head'],{state:_0x1bab3c}=_0x57a1c4,_0x2f905e=_0x1bab3c['doc']['lineAt'](_0x15d877),_0x385ff6=_0x1bab3c['charCategorizer'](_0x15d877);for(let _0xf76dd9=null;;){if(_0x15d877==(_0x59351b?_0x2f905e['to']:_0x2f905e['from'])){_0x15d877==_0x4d3614['head']&&_0x2f905e['number']!=(_0x59351b?_0x1bab3c['doc']['lines']:0x1)&&(_0x15d877+=_0x59351b?0x1:-0x1);break;}let _0x197dcc=findClusterBreak(_0x2f905e['text'],_0x15d877-_0x2f905e['from'],_0x59351b)+_0x2f905e['from'],_0x3e34f1=_0x2f905e['text']['slice'](Math['min'](_0x15d877,_0x197dcc)-_0x2f905e['from'],Math['max'](_0x15d877,_0x197dcc)-_0x2f905e['from']),_0x138fbb=_0x385ff6(_0x3e34f1);if(null!=_0xf76dd9&&_0x138fbb!=_0xf76dd9)break;'\x20'==_0x3e34f1&&_0x15d877==_0x4d3614['head']||(_0xf76dd9=_0x138fbb),_0x15d877=_0x197dcc;}return _0x15d877;}),deleteGroupBackward=_0x4bcb14=>deleteByGroup(_0x4bcb14,!0x1),deleteGroupForward=_0x4a3cc9=>deleteByGroup(_0x4a3cc9,!0x0),deleteToLineEnd=_0x15afe7=>deleteBy(_0x15afe7,_0x382a0c=>{let _0x121f33=_0x15afe7['lineBlockAt'](_0x382a0c['head'])['to'];return _0x382a0c['head']<_0x121f33?_0x121f33:Math['min'](_0x15afe7['state']['doc']['length'],_0x382a0c['head']+0x1);}),deleteLineBoundaryBackward=_0x1894a9=>deleteBy(_0x1894a9,_0x22089c=>{let _0x3fc5b3=_0x1894a9['moveToLineBoundary'](_0x22089c,!0x1)['head'];return _0x22089c['head']>_0x3fc5b3?_0x3fc5b3:Math['max'](0x0,_0x22089c['head']-0x1);}),deleteLineBoundaryForward=_0x3c8b3e=>deleteBy(_0x3c8b3e,_0x2e5119=>{let _0x4006c3=_0x3c8b3e['moveToLineBoundary'](_0x2e5119,!0x0)['head'];return _0x2e5119['head']<_0x4006c3?_0x4006c3:Math['min'](_0x3c8b3e['state']['doc']['length'],_0x2e5119['head']+0x1);}),splitLine=({state:_0x1c6415,dispatch:_0x433805})=>{if(_0x1c6415['readOnly'])return!0x1;let _0x7d41eb=_0x1c6415['changeByRange'](_0x2e614b=>({'changes':{'from':_0x2e614b['from'],'to':_0x2e614b['to'],'insert':Text['of'](['',''])},'range':EditorSelection['cursor'](_0x2e614b['from'])}));return _0x433805(_0x1c6415['update'](_0x7d41eb,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;},transposeChars=({state:_0xb43dae,dispatch:_0x5c438a})=>{if(_0xb43dae['readOnly'])return!0x1;let _0x507ce5=_0xb43dae['changeByRange'](_0x292ce0=>{if(!_0x292ce0['empty']||0x0==_0x292ce0['from']||_0x292ce0['from']==_0xb43dae['doc']['length'])return{'range':_0x292ce0};let _0x54f3e8=_0x292ce0['from'],_0x1ae204=_0xb43dae['doc']['lineAt'](_0x54f3e8),_0x159600=_0x54f3e8==_0x1ae204['from']?_0x54f3e8-0x1:findClusterBreak(_0x1ae204['text'],_0x54f3e8-_0x1ae204['from'],!0x1)+_0x1ae204['from'],_0x27a01e=_0x54f3e8==_0x1ae204['to']?_0x54f3e8+0x1:findClusterBreak(_0x1ae204['text'],_0x54f3e8-_0x1ae204['from'],!0x0)+_0x1ae204['from'];return{'changes':{'from':_0x159600,'to':_0x27a01e,'insert':_0xb43dae['doc']['slice'](_0x54f3e8,_0x27a01e)['append'](_0xb43dae['doc']['slice'](_0x159600,_0x54f3e8))},'range':EditorSelection['cursor'](_0x27a01e)};});return!_0x507ce5['changes']['empty']&&(_0x5c438a(_0xb43dae['update'](_0x507ce5,{'scrollIntoView':!0x0,'userEvent':'move.character'})),!0x0);};function selectedLineBlocks(_0x1d4220){let _0x24dd0e=[],_0x17e48e=-0x1;for(let _0x44b967 of _0x1d4220['selection']['ranges']){let _0x4eafee=_0x1d4220['doc']['lineAt'](_0x44b967['from']),_0x369431=_0x1d4220['doc']['lineAt'](_0x44b967['to']);if(_0x44b967['empty']||_0x44b967['to']!=_0x369431['from']||(_0x369431=_0x1d4220['doc']['lineAt'](_0x44b967['to']-0x1)),_0x17e48e>=_0x4eafee['number']){let _0x24a4ae=_0x24dd0e[_0x24dd0e['length']-0x1];_0x24a4ae['to']=_0x369431['to'],_0x24a4ae['ranges']['push'](_0x44b967);}else _0x24dd0e['push']({'from':_0x4eafee['from'],'to':_0x369431['to'],'ranges':[_0x44b967]});_0x17e48e=_0x369431['number']+0x1;}return _0x24dd0e;}function moveLine(_0x1f4a29,_0x5b86d8,_0x50eccc){if(_0x1f4a29['readOnly'])return!0x1;let _0x40825b=[],_0x46317d=[];for(let _0x54a160 of selectedLineBlocks(_0x1f4a29)){if(_0x50eccc?_0x54a160['to']==_0x1f4a29['doc']['length']:0x0==_0x54a160['from'])continue;let _0x2c2848=_0x1f4a29['doc']['lineAt'](_0x50eccc?_0x54a160['to']+0x1:_0x54a160['from']-0x1),_0x50ca85=_0x2c2848['length']+0x1;if(_0x50eccc){_0x40825b['push']({'from':_0x54a160['to'],'to':_0x2c2848['to']},{'from':_0x54a160['from'],'insert':_0x2c2848['text']+_0x1f4a29['lineBreak']});for(let _0x220c29 of _0x54a160['ranges'])_0x46317d['push'](EditorSelection['range'](Math['min'](_0x1f4a29['doc']['length'],_0x220c29['anchor']+_0x50ca85),Math['min'](_0x1f4a29['doc']['length'],_0x220c29['head']+_0x50ca85)));}else{_0x40825b['push']({'from':_0x2c2848['from'],'to':_0x54a160['from']},{'from':_0x54a160['to'],'insert':_0x1f4a29['lineBreak']+_0x2c2848['text']});for(let _0x405c2 of _0x54a160['ranges'])_0x46317d['push'](EditorSelection['range'](_0x405c2['anchor']-_0x50ca85,_0x405c2['head']-_0x50ca85));}}return!!_0x40825b['length']&&(_0x5b86d8(_0x1f4a29['update']({'changes':_0x40825b,'scrollIntoView':!0x0,'selection':EditorSelection['create'](_0x46317d,_0x1f4a29['selection']['mainIndex']),'userEvent':'move.line'})),!0x0);}const moveLineUp=({state:_0x3ce694,dispatch:_0x17cfaa})=>moveLine(_0x3ce694,_0x17cfaa,!0x1),moveLineDown=({state:_0x48ef3d,dispatch:_0x73424f})=>moveLine(_0x48ef3d,_0x73424f,!0x0);function copyLine(_0x3608ae,_0x1211b6,_0x5a52f8){if(_0x3608ae['readOnly'])return!0x1;let _0x45cbeb=[];for(let _0x4cd14e of selectedLineBlocks(_0x3608ae))_0x5a52f8?_0x45cbeb['push']({'from':_0x4cd14e['from'],'insert':_0x3608ae['doc']['slice'](_0x4cd14e['from'],_0x4cd14e['to'])+_0x3608ae['lineBreak']}):_0x45cbeb['push']({'from':_0x4cd14e['to'],'insert':_0x3608ae['lineBreak']+_0x3608ae['doc']['slice'](_0x4cd14e['from'],_0x4cd14e['to'])});return _0x1211b6(_0x3608ae['update']({'changes':_0x45cbeb,'scrollIntoView':!0x0,'userEvent':'input.copyline'})),!0x0;}const copyLineUp=({state:_0xbd992d,dispatch:_0x2c92a4})=>copyLine(_0xbd992d,_0x2c92a4,!0x1),copyLineDown=({state:_0x4c6db3,dispatch:_0x466405})=>copyLine(_0x4c6db3,_0x466405,!0x0),deleteLine=_0x3e8173=>{if(_0x3e8173['state']['readOnly'])return!0x1;let {state:_0xdafc6}=_0x3e8173,_0x591e58=_0xdafc6['changes'](selectedLineBlocks(_0xdafc6)['map'](({from:_0xa9096c,to:_0x185867})=>(_0xa9096c>0x0?_0xa9096c--:_0x185867<_0xdafc6['doc']['length']&&_0x185867++,{'from':_0xa9096c,'to':_0x185867}))),_0xdace2=updateSel(_0xdafc6['selection'],_0x4decfb=>{let _0x4517f4;if(_0x3e8173['lineWrapping']){let _0x2efcbb=_0x3e8173['lineBlockAt'](_0x4decfb['head']),_0xc0718f=_0x3e8173['coordsAtPos'](_0x4decfb['head'],_0x4decfb['assoc']||0x1);_0xc0718f&&(_0x4517f4=_0x2efcbb['bottom']+_0x3e8173['documentTop']-_0xc0718f['bottom']+_0x3e8173['defaultLineHeight']/0x2);}return _0x3e8173['moveVertically'](_0x4decfb,!0x0,_0x4517f4);})['map'](_0x591e58);return _0x3e8173['dispatch']({'changes':_0x591e58,'selection':_0xdace2,'scrollIntoView':!0x0,'userEvent':'delete.line'}),!0x0;};function isBetweenBrackets(_0x7e412f,_0x570f5a){if(/\(\)|\[\]|\{\}/['test'](_0x7e412f['sliceDoc'](_0x570f5a-0x1,_0x570f5a+0x1)))return{'from':_0x570f5a,'to':_0x570f5a};let _0x1c22af,_0x5fc593=syntaxTree(_0x7e412f)['resolveInner'](_0x570f5a),_0x4ca059=_0x5fc593['childBefore'](_0x570f5a),_0xce684c=_0x5fc593['childAfter'](_0x570f5a);return _0x4ca059&&_0xce684c&&_0x4ca059['to']<=_0x570f5a&&_0xce684c['from']>=_0x570f5a&&(_0x1c22af=_0x4ca059['type']['prop'](NodeProp['closedBy']))&&_0x1c22af['indexOf'](_0xce684c['name'])>-0x1&&_0x7e412f['doc']['lineAt'](_0x4ca059['to'])['from']==_0x7e412f['doc']['lineAt'](_0xce684c['from'])['from']&&!/\S/['test'](_0x7e412f['sliceDoc'](_0x4ca059['to'],_0xce684c['from']))?{'from':_0x4ca059['to'],'to':_0xce684c['from']}:null;}const insertNewlineAndIndent=newlineAndIndent(!0x1),insertBlankLine=newlineAndIndent(!0x0);function newlineAndIndent(_0x3d405c){return({state:_0x49dc5d,dispatch:_0x39426b})=>{if(_0x49dc5d['readOnly'])return!0x1;let _0x27a35a=_0x49dc5d['changeByRange'](_0x3f13e8=>{let {from:_0x51b222,to:_0x58e96c}=_0x3f13e8,_0x4b768e=_0x49dc5d['doc']['lineAt'](_0x51b222),_0xb7cd2f=!_0x3d405c&&_0x51b222==_0x58e96c&&isBetweenBrackets(_0x49dc5d,_0x51b222);_0x3d405c&&(_0x51b222=_0x58e96c=(_0x58e96c<=_0x4b768e['to']?_0x4b768e:_0x49dc5d['doc']['lineAt'](_0x58e96c))['to']);let _0x2cf0fc=new IndentContext(_0x49dc5d,{'simulateBreak':_0x51b222,'simulateDoubleBreak':!!_0xb7cd2f}),_0x5edd9c=getIndentation(_0x2cf0fc,_0x51b222);for(null==_0x5edd9c&&(_0x5edd9c=countColumn(/^\s*/['exec'](_0x49dc5d['doc']['lineAt'](_0x51b222)['text'])[0x0],_0x49dc5d['tabSize']));_0x58e96c<_0x4b768e['to']&&/\s/['test'](_0x4b768e['text'][_0x58e96c-_0x4b768e['from']]);)_0x58e96c++;_0xb7cd2f?{from:_0x51b222,to:_0x58e96c}=_0xb7cd2f:_0x51b222>_0x4b768e['from']&&_0x51b222<_0x4b768e['from']+0x64&&!/\S/['test'](_0x4b768e['text']['slice'](0x0,_0x51b222))&&(_0x51b222=_0x4b768e['from']);let _0x933c9c=['',indentString(_0x49dc5d,_0x5edd9c)];return _0xb7cd2f&&_0x933c9c['push'](indentString(_0x49dc5d,_0x2cf0fc['lineIndent'](_0x4b768e['from'],-0x1))),{'changes':{'from':_0x51b222,'to':_0x58e96c,'insert':Text['of'](_0x933c9c)},'range':EditorSelection['cursor'](_0x51b222+0x1+_0x933c9c[0x1]['length'])};});return _0x39426b(_0x49dc5d['update'](_0x27a35a,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;};}function changeBySelectedLine(_0x187f20,_0x307e28){let _0x57e16b=-0x1;return _0x187f20['changeByRange'](_0x4e781c=>{let _0x47c422=[];for(let _0x5b8ac1=_0x4e781c['from'];_0x5b8ac1<=_0x4e781c['to'];){let _0x4b2868=_0x187f20['doc']['lineAt'](_0x5b8ac1);_0x4b2868['number']>_0x57e16b&&(_0x4e781c['empty']||_0x4e781c['to']>_0x4b2868['from'])&&(_0x307e28(_0x4b2868,_0x47c422,_0x4e781c),_0x57e16b=_0x4b2868['number']),_0x5b8ac1=_0x4b2868['to']+0x1;}let _0x343d9a=_0x187f20['changes'](_0x47c422);return{'changes':_0x47c422,'range':EditorSelection['range'](_0x343d9a['mapPos'](_0x4e781c['anchor'],0x1),_0x343d9a['mapPos'](_0x4e781c['head'],0x1))};});}const indentSelection=({state:_0x4f44b4,dispatch:_0x20c162})=>{if(_0x4f44b4['readOnly'])return!0x1;let _0xdab4e2=Object['create'](null),_0x5cb3f8=new IndentContext(_0x4f44b4,{'overrideIndentation':_0x343f68=>{let _0x804ac3=_0xdab4e2[_0x343f68];return null==_0x804ac3?-0x1:_0x804ac3;}}),_0x112c89=changeBySelectedLine(_0x4f44b4,(_0x3067bb,_0x676eef,_0x47dca3)=>{let _0x4ba52d=getIndentation(_0x5cb3f8,_0x3067bb['from']);if(null==_0x4ba52d)return;/\S/['test'](_0x3067bb['text'])||(_0x4ba52d=0x0);let _0x5538bb=/^\s*/['exec'](_0x3067bb['text'])[0x0],_0xcd0af5=indentString(_0x4f44b4,_0x4ba52d);(_0x5538bb!=_0xcd0af5||_0x47dca3['from']<_0x3067bb['from']+_0x5538bb['length'])&&(_0xdab4e2[_0x3067bb['from']]=_0x4ba52d,_0x676eef['push']({'from':_0x3067bb['from'],'to':_0x3067bb['from']+_0x5538bb['length'],'insert':_0xcd0af5}));});return _0x112c89['changes']['empty']||_0x20c162(_0x4f44b4['update'](_0x112c89,{'userEvent':'indent'})),!0x0;},indentMore=({state:_0x4b0df0,dispatch:_0x1599af})=>!_0x4b0df0['readOnly']&&(_0x1599af(_0x4b0df0['update'](changeBySelectedLine(_0x4b0df0,(_0x55d345,_0x57c585)=>{_0x57c585['push']({'from':_0x55d345['from'],'insert':_0x4b0df0['facet'](indentUnit)});}),{'userEvent':'input.indent'})),!0x0),indentLess=({state:_0x2a5b44,dispatch:_0x5c7516})=>!_0x2a5b44['readOnly']&&(_0x5c7516(_0x2a5b44['update'](changeBySelectedLine(_0x2a5b44,(_0x1389fc,_0x400a01)=>{let _0x745390=/^\s*/['exec'](_0x1389fc['text'])[0x0];if(!_0x745390)return;let _0x71fdf1=countColumn(_0x745390,_0x2a5b44['tabSize']),_0x2236fb=0x0,_0x95e32d=indentString(_0x2a5b44,Math['max'](0x0,_0x71fdf1-getIndentUnit(_0x2a5b44)));for(;_0x2236fb<_0x745390['length']&&_0x2236fb<_0x95e32d['length']&&_0x745390['charCodeAt'](_0x2236fb)==_0x95e32d['charCodeAt'](_0x2236fb);)_0x2236fb++;_0x400a01['push']({'from':_0x1389fc['from']+_0x2236fb,'to':_0x1389fc['from']+_0x745390['length'],'insert':_0x95e32d['slice'](_0x2236fb)});}),{'userEvent':'delete.dedent'})),!0x0),toggleTabFocusMode=_0x3f863e=>(_0x3f863e['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'](_0x3b9256=>({'mac':_0x3b9256['key'],'run':_0x3b9256['run'],'shift':_0x3b9256['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(_0x527ce0,_0x3ba3f1,_0x56d29e,_0x458d11){this['state']=_0x527ce0,this['pos']=_0x3ba3f1,this['explicit']=_0x56d29e,this['view']=_0x458d11,this['abortListeners']=[],this['abortOnDocChange']=!0x1;}['tokenBefore'](_0x4ed981){let _0x1532ba=syntaxTree(this['state'])['resolveInner'](this['pos'],-0x1);for(;_0x1532ba&&_0x4ed981['indexOf'](_0x1532ba['name'])<0x0;)_0x1532ba=_0x1532ba['parent'];return _0x1532ba?{'from':_0x1532ba['from'],'to':this['pos'],'text':this['state']['sliceDoc'](_0x1532ba['from'],this['pos']),'type':_0x1532ba['type']}:null;}['matchBefore'](_0x3c44a7){let _0x3e6871=this['state']['doc']['lineAt'](this['pos']),_0x50fa6b=Math['max'](_0x3e6871['from'],this['pos']-0xfa),_0x6a4692=_0x3e6871['text']['slice'](_0x50fa6b-_0x3e6871['from'],this['pos']-_0x3e6871['from']),_0x326b35=_0x6a4692['search'](ensureAnchor(_0x3c44a7,!0x1));return _0x326b35<0x0?null:{'from':_0x50fa6b+_0x326b35,'to':this['pos'],'text':_0x6a4692['slice'](_0x326b35)};}get['aborted'](){return null==this['abortListeners'];}['addEventListener'](_0x4bf00a,_0xdee028,_0x6a1544){'abort'==_0x4bf00a&&this['abortListeners']&&(this['abortListeners']['push'](_0xdee028),_0x6a1544&&_0x6a1544['onDocChange']&&(this['abortOnDocChange']=!0x0));}}function toSet(_0x257903){let _0x101c69=Object['keys'](_0x257903)['join'](''),_0x43ba97=/\w/['test'](_0x101c69);return _0x43ba97&&(_0x101c69=_0x101c69['replace'](/\w/g,'')),'['+(_0x43ba97?'\x5cw':'')+_0x101c69['replace'](/[^\w\s]/g,'\x5c$&')+']';}function prefixMatch(_0x24c057){let _0x14a646=Object['create'](null),_0x121c98=Object['create'](null);for(let {label:_0x3c86fe}of _0x24c057){_0x14a646[_0x3c86fe[0x0]]=!0x0;for(let _0x3a52a4=0x1;_0x3a52a4<_0x3c86fe['length'];_0x3a52a4++)_0x121c98[_0x3c86fe[_0x3a52a4]]=!0x0;}let _0x262112=toSet(_0x14a646)+toSet(_0x121c98)+'*$';return[new RegExp('^'+_0x262112),new RegExp(_0x262112)];}function completeFromList(_0x3de584){let _0x58116e=_0x3de584['map'](_0x5c2488=>'string'==typeof _0x5c2488?{'label':_0x5c2488}:_0x5c2488),[_0x250f31,_0x3e42ec]=_0x58116e['every'](_0x159060=>/^\w+$/['test'](_0x159060['label']))?[/\w*$/,/\w+$/]:prefixMatch(_0x58116e);return _0x21ed0e=>{let _0x1feb70=_0x21ed0e['matchBefore'](_0x3e42ec);return _0x1feb70||_0x21ed0e['explicit']?{'from':_0x1feb70?_0x1feb70['from']:_0x21ed0e['pos'],'options':_0x58116e,'validFor':_0x250f31}:null;};}function ifNotIn(_0xf51bc,_0x2146d3){return _0xb8c691=>{for(let _0x14a46d=syntaxTree(_0xb8c691['state'])['resolveInner'](_0xb8c691['pos'],-0x1);_0x14a46d;_0x14a46d=_0x14a46d['parent']){if(_0xf51bc['indexOf'](_0x14a46d['name'])>-0x1)return null;if(_0x14a46d['type']['isTop'])break;}return _0x2146d3(_0xb8c691);};}class Option{constructor(_0x10e24a,_0x5c4c75,_0x22e9a4,_0x59e99c){this['completion']=_0x10e24a,this['source']=_0x5c4c75,this['match']=_0x22e9a4,this['score']=_0x59e99c;}}function cur(_0x5dc118){return _0x5dc118['selection']['main']['from'];}function ensureAnchor(_0x526e84,_0x4dec89){var _0x27d77e;let {source:_0x5866dd}=_0x526e84,_0x2469fc=_0x4dec89&&'^'!=_0x5866dd[0x0],_0x46ff37='$'!=_0x5866dd[_0x5866dd['length']-0x1];return _0x2469fc||_0x46ff37?new RegExp((_0x2469fc?'^':'')+'(?:'+_0x5866dd+')'+(_0x46ff37?'$':''),null!==(_0x27d77e=_0x526e84['flags'])&&void 0x0!==_0x27d77e?_0x27d77e:_0x526e84['ignoreCase']?'i':''):_0x526e84;}const pickedCompletion=Annotation['define']();function insertCompletionText(_0x5df12e,_0x5b9522,_0x515269,_0x38ef0f){let {main:_0x51ee28}=_0x5df12e['selection'],_0x36471f=_0x515269-_0x51ee28['from'],_0x3215b3=_0x38ef0f-_0x51ee28['from'];return{..._0x5df12e['changeByRange'](_0x222b2e=>{if(_0x222b2e!=_0x51ee28&&_0x515269!=_0x38ef0f&&_0x5df12e['sliceDoc'](_0x222b2e['from']+_0x36471f,_0x222b2e['from']+_0x3215b3)!=_0x5df12e['sliceDoc'](_0x515269,_0x38ef0f))return{'range':_0x222b2e};let _0xce675f=_0x5df12e['toText'](_0x5b9522);return{'changes':{'from':_0x222b2e['from']+_0x36471f,'to':_0x38ef0f==_0x51ee28['from']?_0x222b2e['to']:_0x222b2e['from']+_0x3215b3,'insert':_0xce675f},'range':EditorSelection['cursor'](_0x222b2e['from']+_0x36471f+_0xce675f['length'])};}),'scrollIntoView':!0x0,'userEvent':'input.complete'};}const SourceCache=new WeakMap();function asSource(_0x5e1ee0){if(!Array['isArray'](_0x5e1ee0))return _0x5e1ee0;let _0x9f5b1=SourceCache['get'](_0x5e1ee0);return _0x9f5b1||SourceCache['set'](_0x5e1ee0,_0x9f5b1=completeFromList(_0x5e1ee0)),_0x9f5b1;}const startCompletionEffect=StateEffect['define'](),closeCompletionEffect=StateEffect['define']();class FuzzyMatcher{constructor(_0x3c4bcf){this['pattern']=_0x3c4bcf,this['chars']=[],this['folded']=[],this['any']=[],this['precise']=[],this['byWord']=[],this['score']=0x0,this['matched']=[];for(let _0x265c38=0x0;_0x265c38<_0x3c4bcf['length'];){let _0x5c1373=codePointAt(_0x3c4bcf,_0x265c38),_0x1dcc7a=codePointSize(_0x5c1373);this['chars']['push'](_0x5c1373);let _0x2244df=_0x3c4bcf['slice'](_0x265c38,_0x265c38+_0x1dcc7a),_0x11165c=_0x2244df['toUpperCase']();this['folded']['push'](codePointAt(_0x11165c==_0x2244df?_0x2244df['toLowerCase']():_0x11165c,0x0)),_0x265c38+=_0x1dcc7a;}this['astral']=_0x3c4bcf['length']!=this['chars']['length'];}['ret'](_0x8a27a2,_0x554354){return this['score']=_0x8a27a2,this['matched']=_0x554354,this;}['match'](_0xee45b1){if(0x0==this['pattern']['length'])return this['ret'](-0x64,[]);if(_0xee45b1['length']<this['pattern']['length'])return null;let {chars:_0x3e3e05,folded:_0x53645e,any:_0x24cd4a,precise:_0x5f2832,byWord:_0x45c8ee}=this;if(0x1==_0x3e3e05['length']){let _0x1a048d=codePointAt(_0xee45b1,0x0),_0x54dd2d=codePointSize(_0x1a048d),_0x1c82e2=_0x54dd2d==_0xee45b1['length']?0x0:-0x64;if(_0x1a048d==_0x3e3e05[0x0]);else{if(_0x1a048d!=_0x53645e[0x0])return null;_0x1c82e2+=-0xc8;}return this['ret'](_0x1c82e2,[0x0,_0x54dd2d]);}let _0xa86977=_0xee45b1['indexOf'](this['pattern']);if(0x0==_0xa86977)return this['ret'](_0xee45b1['length']==this['pattern']['length']?0x0:-0x64,[0x0,this['pattern']['length']]);let _0xb1c517=_0x3e3e05['length'],_0x4cdc50=0x0;if(_0xa86977<0x0){for(let _0x2642b8=0x0,_0x4aaf70=Math['min'](_0xee45b1['length'],0xc8);_0x2642b8<_0x4aaf70&&_0x4cdc50<_0xb1c517;){let _0x42178e=codePointAt(_0xee45b1,_0x2642b8);_0x42178e!=_0x3e3e05[_0x4cdc50]&&_0x42178e!=_0x53645e[_0x4cdc50]||(_0x24cd4a[_0x4cdc50++]=_0x2642b8),_0x2642b8+=codePointSize(_0x42178e);}if(_0x4cdc50<_0xb1c517)return null;}let _0x23f1a3=0x0,_0x2929eb=0x0,_0x4b012b=!0x1,_0x2f2d17=0x0,_0x35bac0=-0x1,_0xd5f730=-0x1,_0x11bec4=/[a-z]/['test'](_0xee45b1),_0x3d07f2=!0x0;for(let _0x240e03=0x0,_0x877113=Math['min'](_0xee45b1['length'],0xc8),_0x424180=0x0;_0x240e03<_0x877113&&_0x2929eb<_0xb1c517;){let _0x43fcee=codePointAt(_0xee45b1,_0x240e03);_0xa86977<0x0&&(_0x23f1a3<_0xb1c517&&_0x43fcee==_0x3e3e05[_0x23f1a3]&&(_0x5f2832[_0x23f1a3++]=_0x240e03),_0x2f2d17<_0xb1c517&&(_0x43fcee==_0x3e3e05[_0x2f2d17]||_0x43fcee==_0x53645e[_0x2f2d17]?(0x0==_0x2f2d17&&(_0x35bac0=_0x240e03),_0xd5f730=_0x240e03+0x1,_0x2f2d17++):_0x2f2d17=0x0));let _0x2c84cd,_0xb6fdb=_0x43fcee<0xff?_0x43fcee>=0x30&&_0x43fcee<=0x39||_0x43fcee>=0x61&&_0x43fcee<=0x7a?0x2:_0x43fcee>=0x41&&_0x43fcee<=0x5a?0x1:0x0:(_0x2c84cd=fromCodePoint(_0x43fcee))!=_0x2c84cd['toLowerCase']()?0x1:_0x2c84cd!=_0x2c84cd['toUpperCase']()?0x2:0x0;(!_0x240e03||0x1==_0xb6fdb&&_0x11bec4||0x0==_0x424180&&0x0!=_0xb6fdb)&&(_0x3e3e05[_0x2929eb]==_0x43fcee||_0x53645e[_0x2929eb]==_0x43fcee&&(_0x4b012b=!0x0)?_0x45c8ee[_0x2929eb++]=_0x240e03:_0x45c8ee['length']&&(_0x3d07f2=!0x1)),_0x424180=_0xb6fdb,_0x240e03+=codePointSize(_0x43fcee);}return _0x2929eb==_0xb1c517&&0x0==_0x45c8ee[0x0]&&_0x3d07f2?this['result']((_0x4b012b?-0xc8:0x0)-0x64,_0x45c8ee,_0xee45b1):_0x2f2d17==_0xb1c517&&0x0==_0x35bac0?this['ret'](-0xc8-_0xee45b1['length']+(_0xd5f730==_0xee45b1['length']?0x0:-0x64),[0x0,_0xd5f730]):_0xa86977>-0x1?this['ret'](-0x2bc-_0xee45b1['length'],[_0xa86977,_0xa86977+this['pattern']['length']]):_0x2f2d17==_0xb1c517?this['ret'](-0x384-_0xee45b1['length'],[_0x35bac0,_0xd5f730]):_0x2929eb==_0xb1c517?this['result']((_0x4b012b?-0xc8:0x0)-0x64-0x2bc+(_0x3d07f2?0x0:-0x44c),_0x45c8ee,_0xee45b1):0x2==_0x3e3e05['length']?null:this['result']((_0x24cd4a[0x0]?-0x2bc:0x0)-0xc8-0x44c,_0x24cd4a,_0xee45b1);}['result'](_0x53f64a,_0x1fe913,_0x185709){let _0x198f86=[],_0x5aadd7=0x0;for(let _0x44bb58 of _0x1fe913){let _0xa18933=_0x44bb58+(this['astral']?codePointSize(codePointAt(_0x185709,_0x44bb58)):0x1);_0x5aadd7&&_0x198f86[_0x5aadd7-0x1]==_0x44bb58?_0x198f86[_0x5aadd7-0x1]=_0xa18933:(_0x198f86[_0x5aadd7++]=_0x44bb58,_0x198f86[_0x5aadd7++]=_0xa18933);}return this['ret'](_0x53f64a-_0x185709['length'],_0x198f86);}}class StrictMatcher{constructor(_0x3704c2){this['pattern']=_0x3704c2,this['matched']=[],this['score']=0x0,this['folded']=_0x3704c2['toLowerCase']();}['match'](_0x4e89c8){if(_0x4e89c8['length']<this['pattern']['length'])return null;let _0x23e143=_0x4e89c8['slice'](0x0,this['pattern']['length']),_0x1c8dac=_0x23e143==this['pattern']?0x0:_0x23e143['toLowerCase']()==this['folded']?-0xc8:null;return null==_0x1c8dac?null:(this['matched']=[0x0,_0x23e143['length']],this['score']=_0x1c8dac+(_0x4e89c8['length']==this['pattern']['length']?0x0:-0x64),this);}}const completionConfig=Facet['define']({'combine':_0x3fa7c7=>combineConfig(_0x3fa7c7,{'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':(_0x3ebcd0,_0xc33092)=>_0x3ebcd0['label']['localeCompare'](_0xc33092['label']),'interactionDelay':0x4b,'updateSyncTime':0x64},{'defaultKeymap':(_0x2b724f,_0x101fd2)=>_0x2b724f&&_0x101fd2,'closeOnBlur':(_0x7952f9,_0x158f49)=>_0x7952f9&&_0x158f49,'icons':(_0x1b2555,_0x2c90f0)=>_0x1b2555&&_0x2c90f0,'tooltipClass':(_0x212f03,_0x2f935f)=>_0x3d3918=>joinClass(_0x212f03(_0x3d3918),_0x2f935f(_0x3d3918)),'optionClass':(_0x433463,_0x1983fc)=>_0x538336=>joinClass(_0x433463(_0x538336),_0x1983fc(_0x538336)),'addToOptions':(_0x74986b,_0x2b1ed6)=>_0x74986b['concat'](_0x2b1ed6),'filterStrict':(_0x3fb677,_0x41b021)=>_0x3fb677||_0x41b021})});function joinClass(_0x58ba54,_0x56cfc5){return _0x58ba54?_0x56cfc5?_0x58ba54+'\x20'+_0x56cfc5:_0x58ba54:_0x56cfc5;}function defaultPositionInfo(_0x2ec01b,_0x5002a1,_0x1c05c8,_0x2f1e9b,_0x4070e8,_0x17acf6){let _0x195b99,_0x3f7fd7,_0x5a37b4=_0x2ec01b['textDirection']==Direction['RTL'],_0x19aafe=_0x5a37b4,_0x26ecd2=!0x1,_0x506a32='top',_0xdc0fab=_0x5002a1['left']-_0x4070e8['left'],_0x5c0541=_0x4070e8['right']-_0x5002a1['right'],_0x3b6008=_0x2f1e9b['right']-_0x2f1e9b['left'],_0x36ccf9=_0x2f1e9b['bottom']-_0x2f1e9b['top'];if(_0x19aafe&&_0xdc0fab<Math['min'](_0x3b6008,_0x5c0541)?_0x19aafe=!0x1:!_0x19aafe&&_0x5c0541<Math['min'](_0x3b6008,_0xdc0fab)&&(_0x19aafe=!0x0),_0x3b6008<=(_0x19aafe?_0xdc0fab:_0x5c0541))_0x195b99=Math['max'](_0x4070e8['top'],Math['min'](_0x1c05c8['top'],_0x4070e8['bottom']-_0x36ccf9))-_0x5002a1['top'],_0x3f7fd7=Math['min'](0x190,_0x19aafe?_0xdc0fab:_0x5c0541);else{_0x26ecd2=!0x0,_0x3f7fd7=Math['min'](0x190,(_0x5a37b4?_0x5002a1['right']:_0x4070e8['right']-_0x5002a1['left'])-0x1e);let _0x333e9e=_0x4070e8['bottom']-_0x5002a1['bottom'];_0x333e9e>=_0x36ccf9||_0x333e9e>_0x5002a1['top']?_0x195b99=_0x1c05c8['bottom']-_0x5002a1['top']:(_0x506a32='bottom',_0x195b99=_0x5002a1['bottom']-_0x1c05c8['top']);}return{'style':_0x506a32+':\x20'+_0x195b99/((_0x5002a1['bottom']-_0x5002a1['top'])/_0x17acf6['offsetHeight'])+'px;\x20max-width:\x20'+_0x3f7fd7/((_0x5002a1['right']-_0x5002a1['left'])/_0x17acf6['offsetWidth'])+'px','class':'cm-completionInfo-'+(_0x26ecd2?_0x5a37b4?'left-narrow':'right-narrow':_0x19aafe?'left':'right')};}function optionContent(_0x3d610c){let _0x4b9087=_0x3d610c['addToOptions']['slice']();return _0x3d610c['icons']&&_0x4b9087['push']({'render'(_0x433a8a){let _0x6e99eb=document['createElement']('div');return _0x6e99eb['classList']['add']('cm-completionIcon'),_0x433a8a['type']&&_0x6e99eb['classList']['add'](..._0x433a8a['type']['split'](/\s+/g)['map'](_0xaa9244=>'cm-completionIcon-'+_0xaa9244)),_0x6e99eb['setAttribute']('aria-hidden','true'),_0x6e99eb;},'position':0x14}),_0x4b9087['push']({'render'(_0x3437da,_0x4d8eb9,_0x47d366,_0x4ad2c0){let _0x4ed99b=document['createElement']('span');_0x4ed99b['className']='cm-completionLabel';let _0x242861=_0x3437da['displayLabel']||_0x3437da['label'],_0x47907c=0x0;for(let _0x25a138=0x0;_0x25a138<_0x4ad2c0['length'];){let _0x552b63=_0x4ad2c0[_0x25a138++],_0x357ceb=_0x4ad2c0[_0x25a138++];_0x552b63>_0x47907c&&_0x4ed99b['appendChild'](document['createTextNode'](_0x242861['slice'](_0x47907c,_0x552b63)));let _0x90fce8=_0x4ed99b['appendChild'](document['createElement']('span'));_0x90fce8['appendChild'](document['createTextNode'](_0x242861['slice'](_0x552b63,_0x357ceb))),_0x90fce8['className']='cm-completionMatchedText',_0x47907c=_0x357ceb;}return _0x47907c<_0x242861['length']&&_0x4ed99b['appendChild'](document['createTextNode'](_0x242861['slice'](_0x47907c))),_0x4ed99b;},'position':0x32},{'render'(_0x1be8b8){if(!_0x1be8b8['detail'])return null;let _0x65c2e7=document['createElement']('span');return _0x65c2e7['className']='cm-completionDetail',_0x65c2e7['textContent']=_0x1be8b8['detail'],_0x65c2e7;},'position':0x50}),_0x4b9087['sort']((_0x29cb16,_0x44a537)=>_0x29cb16['position']-_0x44a537['position'])['map'](_0x180d6a=>_0x180d6a['render']);}function rangeAroundSelected(_0x49e0ff,_0x5275fa,_0x294765){if(_0x49e0ff<=_0x294765)return{'from':0x0,'to':_0x49e0ff};if(_0x5275fa<0x0&&(_0x5275fa=0x0),_0x5275fa<=_0x49e0ff>>0x1){let _0x51f59f=Math['floor'](_0x5275fa/_0x294765);return{'from':_0x51f59f*_0x294765,'to':(_0x51f59f+0x1)*_0x294765};}let _0x42caba=Math['floor']((_0x49e0ff-_0x5275fa)/_0x294765);return{'from':_0x49e0ff-(_0x42caba+0x1)*_0x294765,'to':_0x49e0ff-_0x42caba*_0x294765};}class CompletionTooltip{constructor(_0x4ac14e,_0x24a4dc,_0x27c43a){this['view']=_0x4ac14e,this['stateField']=_0x24a4dc,this['applyCompletion']=_0x27c43a,this['info']=null,this['infoDestroy']=null,this['placeInfoReq']={'read':()=>this['measureInfo'](),'write':_0x4f12ed=>this['placeInfo'](_0x4f12ed),'key':this},this['space']=null,this['currentClass']='';let _0x562c82=_0x4ac14e['state']['field'](_0x24a4dc),{options:_0x43edf0,selected:_0x201b27}=_0x562c82['open'],_0x3d0868=_0x4ac14e['state']['facet'](completionConfig);this['optionContent']=optionContent(_0x3d0868),this['optionClass']=_0x3d0868['optionClass'],this['tooltipClass']=_0x3d0868['tooltipClass'],this['range']=rangeAroundSelected(_0x43edf0['length'],_0x201b27,_0x3d0868['maxRenderedOptions']),this['dom']=document['createElement']('div'),this['dom']['className']='cm-tooltip-autocomplete',this['updateTooltipClass'](_0x4ac14e['state']),this['dom']['addEventListener']('mousedown',_0x143863=>{let {options:_0x2fac0f}=_0x4ac14e['state']['field'](_0x24a4dc)['open'];for(let _0x29e8a5,_0x4d2484=_0x143863['target'];_0x4d2484&&_0x4d2484!=this['dom'];_0x4d2484=_0x4d2484['parentNode'])if('LI'==_0x4d2484['nodeName']&&(_0x29e8a5=/-(\d+)$/['exec'](_0x4d2484['id']))&&+_0x29e8a5[0x1]<_0x2fac0f['length'])return this['applyCompletion'](_0x4ac14e,_0x2fac0f[+_0x29e8a5[0x1]]),void _0x143863['preventDefault']();}),this['dom']['addEventListener']('focusout',_0x3780d7=>{let _0x59875b=_0x4ac14e['state']['field'](this['stateField'],!0x1);_0x59875b&&_0x59875b['tooltip']&&_0x4ac14e['state']['facet'](completionConfig)['closeOnBlur']&&_0x3780d7['relatedTarget']!=_0x4ac14e['contentDOM']&&_0x4ac14e['dispatch']({'effects':closeCompletionEffect['of'](null)});}),this['showOptions'](_0x43edf0,_0x562c82['id']);}['mount'](){this['updateSel']();}['showOptions'](_0x17844f,_0x47ff46){this['list']&&this['list']['remove'](),this['list']=this['dom']['appendChild'](this['createListBox'](_0x17844f,_0x47ff46,this['range'])),this['list']['addEventListener']('scroll',()=>{this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);});}['update'](_0x44e468){var _0x30b53c;let _0x3b5efe=_0x44e468['state']['field'](this['stateField']),_0x3f887b=_0x44e468['startState']['field'](this['stateField']);if(this['updateTooltipClass'](_0x44e468['state']),_0x3b5efe!=_0x3f887b){let {options:_0x30cd71,selected:_0x13f51d,disabled:_0x58a3b9}=_0x3b5efe['open'];_0x3f887b['open']&&_0x3f887b['open']['options']==_0x30cd71||(this['range']=rangeAroundSelected(_0x30cd71['length'],_0x13f51d,_0x44e468['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x30cd71,_0x3b5efe['id'])),this['updateSel'](),_0x58a3b9!=(null===(_0x30b53c=_0x3f887b['open'])||void 0x0===_0x30b53c?void 0x0:_0x30b53c['disabled'])&&this['dom']['classList']['toggle']('cm-tooltip-autocomplete-disabled',!!_0x58a3b9);}}['updateTooltipClass'](_0x40199a){let _0x20176b=this['tooltipClass'](_0x40199a);if(_0x20176b!=this['currentClass']){for(let _0xf38ddd of this['currentClass']['split']('\x20'))_0xf38ddd&&this['dom']['classList']['remove'](_0xf38ddd);for(let _0xec590a of _0x20176b['split']('\x20'))_0xec590a&&this['dom']['classList']['add'](_0xec590a);this['currentClass']=_0x20176b;}}['positioned'](_0x42757b){this['space']=_0x42757b,this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);}['updateSel'](){let _0x4d9724=this['view']['state']['field'](this['stateField']),_0x1faa1d=_0x4d9724['open'];(_0x1faa1d['selected']>-0x1&&_0x1faa1d['selected']<this['range']['from']||_0x1faa1d['selected']>=this['range']['to'])&&(this['range']=rangeAroundSelected(_0x1faa1d['options']['length'],_0x1faa1d['selected'],this['view']['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x1faa1d['options'],_0x4d9724['id']));let _0x458944=this['updateSelectedOption'](_0x1faa1d['selected']);if(_0x458944){this['destroyInfo']();let {completion:_0x108fb2}=_0x1faa1d['options'][_0x1faa1d['selected']],{info:_0x1251f9}=_0x108fb2;if(!_0x1251f9)return;let _0x491228='string'==typeof _0x1251f9?document['createTextNode'](_0x1251f9):_0x1251f9(_0x108fb2);if(!_0x491228)return;'then'in _0x491228?_0x491228['then'](_0x1e51ad=>{_0x1e51ad&&this['view']['state']['field'](this['stateField'],!0x1)==_0x4d9724&&this['addInfoPane'](_0x1e51ad,_0x108fb2);})['catch'](_0x6c5e71=>logException(this['view']['state'],_0x6c5e71,'completion\x20info')):(this['addInfoPane'](_0x491228,_0x108fb2),_0x458944['setAttribute']('aria-describedby',this['info']['id']));}}['addInfoPane'](_0x41c14b,_0x2fb283){this['destroyInfo']();let _0x4d639f=this['info']=document['createElement']('div');if(_0x4d639f['className']='cm-tooltip\x20cm-completionInfo',_0x4d639f['id']='cm-completionInfo-'+Math['floor'](0xffff*Math['random']())['toString'](0x10),null!=_0x41c14b['nodeType'])_0x4d639f['appendChild'](_0x41c14b),this['infoDestroy']=null;else{let {dom:_0x56db12,destroy:_0x111c30}=_0x41c14b;_0x4d639f['appendChild'](_0x56db12),this['infoDestroy']=_0x111c30||null;}this['dom']['appendChild'](_0x4d639f),this['view']['requestMeasure'](this['placeInfoReq']);}['updateSelectedOption'](_0x3c4f45){let _0x4f07b2=null;for(let _0x3061f6=this['list']['firstChild'],_0x504513=this['range']['from'];_0x3061f6;_0x3061f6=_0x3061f6['nextSibling'],_0x504513++)'LI'==_0x3061f6['nodeName']&&_0x3061f6['id']?_0x504513==_0x3c4f45?_0x3061f6['hasAttribute']('aria-selected')||(_0x3061f6['setAttribute']('aria-selected','true'),_0x4f07b2=_0x3061f6):_0x3061f6['hasAttribute']('aria-selected')&&(_0x3061f6['removeAttribute']('aria-selected'),_0x3061f6['removeAttribute']('aria-describedby')):_0x504513--;return _0x4f07b2&&scrollIntoView(this['list'],_0x4f07b2),_0x4f07b2;}['measureInfo'](){let _0x58c319=this['dom']['querySelector']('[aria-selected]');if(!_0x58c319||!this['info'])return null;let _0x4652cd=this['dom']['getBoundingClientRect'](),_0x129cc3=this['info']['getBoundingClientRect'](),_0x14cefe=_0x58c319['getBoundingClientRect'](),_0x47ecd9=this['space'];if(!_0x47ecd9){let _0x4782ca=this['dom']['ownerDocument']['documentElement'];_0x47ecd9={'left':0x0,'top':0x0,'right':_0x4782ca['clientWidth'],'bottom':_0x4782ca['clientHeight']};}return _0x14cefe['top']>Math['min'](_0x47ecd9['bottom'],_0x4652cd['bottom'])-0xa||_0x14cefe['bottom']<Math['max'](_0x47ecd9['top'],_0x4652cd['top'])+0xa?null:this['view']['state']['facet'](completionConfig)['positionInfo'](this['view'],_0x4652cd,_0x14cefe,_0x129cc3,_0x47ecd9,this['dom']);}['placeInfo'](_0x486ef0){this['info']&&(_0x486ef0?(_0x486ef0['style']&&(this['info']['style']['cssText']=_0x486ef0['style']),this['info']['className']='cm-tooltip\x20cm-completionInfo\x20'+(_0x486ef0['class']||'')):this['info']['style']['cssText']='top:\x20-1e6px');}['createListBox'](_0x184cdf,_0x44cce3,_0x118dc6){const _0x12b29f=document['createElement']('ul');_0x12b29f['id']=_0x44cce3,_0x12b29f['setAttribute']('role','listbox'),_0x12b29f['setAttribute']('aria-expanded','true'),_0x12b29f['setAttribute']('aria-label',this['view']['state']['phrase']('Completions')),_0x12b29f['addEventListener']('mousedown',_0x5084ca=>{_0x5084ca['target']==_0x12b29f&&_0x5084ca['preventDefault']();});let _0x32bb52=null;for(let _0x59a487=_0x118dc6['from'];_0x59a487<_0x118dc6['to'];_0x59a487++){let {completion:_0x219822,match:_0x2dbcc7}=_0x184cdf[_0x59a487],{section:_0x1c6637}=_0x219822;if(_0x1c6637){let _0x2164bb='string'==typeof _0x1c6637?_0x1c6637:_0x1c6637['name'];if(_0x2164bb!=_0x32bb52&&(_0x59a487>_0x118dc6['from']||0x0==_0x118dc6['from'])){if(_0x32bb52=_0x2164bb,'string'!=typeof _0x1c6637&&_0x1c6637['header'])_0x12b29f['appendChild'](_0x1c6637['header'](_0x1c6637));else _0x12b29f['appendChild'](document['createElement']('completion-section'))['textContent']=_0x2164bb;}}const _0x6ee09c=_0x12b29f['appendChild'](document['createElement']('li'));_0x6ee09c['id']=_0x44cce3+'-'+_0x59a487,_0x6ee09c['setAttribute']('role','option');let _0x4346c2=this['optionClass'](_0x219822);_0x4346c2&&(_0x6ee09c['className']=_0x4346c2);for(let _0x4afa18 of this['optionContent']){let _0x4273d7=_0x4afa18(_0x219822,this['view']['state'],this['view'],_0x2dbcc7);_0x4273d7&&_0x6ee09c['appendChild'](_0x4273d7);}}return _0x118dc6['from']&&_0x12b29f['classList']['add']('cm-completionListIncompleteTop'),_0x118dc6['to']<_0x184cdf['length']&&_0x12b29f['classList']['add']('cm-completionListIncompleteBottom'),_0x12b29f;}['destroyInfo'](){this['info']&&(this['infoDestroy']&&this['infoDestroy'](),this['info']['remove'](),this['info']=null);}['destroy'](){this['destroyInfo']();}}function completionTooltip(_0x844a11,_0x25a6ac){return _0x34c25f=>new CompletionTooltip(_0x34c25f,_0x844a11,_0x25a6ac);}function scrollIntoView(_0x3bbf7c,_0x3fc616){let _0x36a35d=_0x3bbf7c['getBoundingClientRect'](),_0x3eb064=_0x3fc616['getBoundingClientRect'](),_0x267725=_0x36a35d['height']/_0x3bbf7c['offsetHeight'];_0x3eb064['top']<_0x36a35d['top']?_0x3bbf7c['scrollTop']-=(_0x36a35d['top']-_0x3eb064['top'])/_0x267725:_0x3eb064['bottom']>_0x36a35d['bottom']&&(_0x3bbf7c['scrollTop']+=(_0x3eb064['bottom']-_0x36a35d['bottom'])/_0x267725);}function score(_0x188d43){return 0x64*(_0x188d43['boost']||0x0)+(_0x188d43['apply']?0xa:0x0)+(_0x188d43['info']?0x5:0x0)+(_0x188d43['type']?0x1:0x0);}function sortOptions(_0xb256ac,_0x382e2e){let _0xfcdca2=[],_0x4ae654=null,_0x3437ab=null,_0x40278f=_0x91e9d=>{_0xfcdca2['push'](_0x91e9d);let {section:_0x1f336f}=_0x91e9d['completion'];if(_0x1f336f){_0x4ae654||(_0x4ae654=[]);let _0x4d6489='string'==typeof _0x1f336f?_0x1f336f:_0x1f336f['name'];_0x4ae654['some'](_0xa3bbb9=>_0xa3bbb9['name']==_0x4d6489)||_0x4ae654['push']('string'==typeof _0x1f336f?{'name':_0x4d6489}:_0x1f336f);}},_0x4fad47=_0x382e2e['facet'](completionConfig);for(let _0x268153 of _0xb256ac)if(_0x268153['hasResult']()){let _0xa1173=_0x268153['result']['getMatch'];if(!0x1===_0x268153['result']['filter']){for(let _0x4731ce of _0x268153['result']['options'])_0x40278f(new Option(_0x4731ce,_0x268153['source'],_0xa1173?_0xa1173(_0x4731ce):[],0x3b9aca00-_0xfcdca2['length']));}else{let _0x2501ce,_0x57ac1e=_0x382e2e['sliceDoc'](_0x268153['from'],_0x268153['to']),_0x150075=_0x4fad47['filterStrict']?new StrictMatcher(_0x57ac1e):new FuzzyMatcher(_0x57ac1e);for(let _0x579db0 of _0x268153['result']['options'])if(_0x2501ce=_0x150075['match'](_0x579db0['label'])){let _0x803d4=_0x579db0['displayLabel']?_0xa1173?_0xa1173(_0x579db0,_0x2501ce['matched']):[]:_0x2501ce['matched'],_0x19b445=_0x2501ce['score']+(_0x579db0['boost']||0x0);if(_0x40278f(new Option(_0x579db0,_0x268153['source'],_0x803d4,_0x19b445)),'object'==typeof _0x579db0['section']&&'dynamic'===_0x579db0['section']['rank']){let {name:_0x5e90e5}=_0x579db0['section'];_0x3437ab||(_0x3437ab=Object['create'](null)),_0x3437ab[_0x5e90e5]=Math['max'](_0x19b445,_0x3437ab[_0x5e90e5]||-0x3b9aca00);}}}}if(_0x4ae654){let _0xfcd974=Object['create'](null),_0x7ecf5e=0x0,_0x46808d=(_0x8109a5,_0x4b49ec)=>('dynamic'===_0x8109a5['rank']&&'dynamic'===_0x4b49ec['rank']?_0x3437ab[_0x4b49ec['name']]-_0x3437ab[_0x8109a5['name']]:0x0)||('number'==typeof _0x8109a5['rank']?_0x8109a5['rank']:0x3b9aca00)-('number'==typeof _0x4b49ec['rank']?_0x4b49ec['rank']:0x3b9aca00)||(_0x8109a5['name']<_0x4b49ec['name']?-0x1:0x1);for(let _0x35c1aa of _0x4ae654['sort'](_0x46808d))_0x7ecf5e-=0x186a0,_0xfcd974[_0x35c1aa['name']]=_0x7ecf5e;for(let _0x1acea1 of _0xfcdca2){let {section:_0x1c40c8}=_0x1acea1['completion'];_0x1c40c8&&(_0x1acea1['score']+=_0xfcd974['string'==typeof _0x1c40c8?_0x1c40c8:_0x1c40c8['name']]);}}let _0x49f558=[],_0xfb174a=null,_0x54f648=_0x4fad47['compareCompletions'];for(let _0x134282 of _0xfcdca2['sort']((_0x572ce1,_0x21dbbb)=>_0x21dbbb['score']-_0x572ce1['score']||_0x54f648(_0x572ce1['completion'],_0x21dbbb['completion']))){let _0x348cc8=_0x134282['completion'];!_0xfb174a||_0xfb174a['label']!=_0x348cc8['label']||_0xfb174a['detail']!=_0x348cc8['detail']||null!=_0xfb174a['type']&&null!=_0x348cc8['type']&&_0xfb174a['type']!=_0x348cc8['type']||_0xfb174a['apply']!=_0x348cc8['apply']||_0xfb174a['boost']!=_0x348cc8['boost']?_0x49f558['push'](_0x134282):score(_0x134282['completion'])>score(_0xfb174a)&&(_0x49f558[_0x49f558['length']-0x1]=_0x134282),_0xfb174a=_0x134282['completion'];}return _0x49f558;}class CompletionDialog{constructor(_0x9cba26,_0x2a8579,_0x394c0a,_0x5e8e5b,_0x1b99f9,_0x87a674){this['options']=_0x9cba26,this['attrs']=_0x2a8579,this['tooltip']=_0x394c0a,this['timestamp']=_0x5e8e5b,this['selected']=_0x1b99f9,this['disabled']=_0x87a674;}['setSelected'](_0x2cb982,_0x403def){return _0x2cb982==this['selected']||_0x2cb982>=this['options']['length']?this:new CompletionDialog(this['options'],makeAttrs(_0x403def,_0x2cb982),this['tooltip'],this['timestamp'],_0x2cb982,this['disabled']);}static['build'](_0xdc9885,_0x5b10a4,_0x497c4e,_0x5e2360,_0x49c859,_0x74d252){if(_0x5e2360&&!_0x74d252&&_0xdc9885['some'](_0x1f16bc=>_0x1f16bc['isPending']))return _0x5e2360['setDisabled']();let _0x22f86f=sortOptions(_0xdc9885,_0x5b10a4);if(!_0x22f86f['length'])return _0x5e2360&&_0xdc9885['some'](_0x1506ab=>_0x1506ab['isPending'])?_0x5e2360['setDisabled']():null;let _0x3851f9=_0x5b10a4['facet'](completionConfig)['selectOnOpen']?0x0:-0x1;if(_0x5e2360&&_0x5e2360['selected']!=_0x3851f9&&-0x1!=_0x5e2360['selected']){let _0x16ab63=_0x5e2360['options'][_0x5e2360['selected']]['completion'];for(let _0x57cc4d=0x0;_0x57cc4d<_0x22f86f['length'];_0x57cc4d++)if(_0x22f86f[_0x57cc4d]['completion']==_0x16ab63){_0x3851f9=_0x57cc4d;break;}}return new CompletionDialog(_0x22f86f,makeAttrs(_0x497c4e,_0x3851f9),{'pos':_0xdc9885['reduce']((_0xa85340,_0x1bb698)=>_0x1bb698['hasResult']()?Math['min'](_0xa85340,_0x1bb698['from']):_0xa85340,0x5f5e100),'create':createTooltip,'above':_0x49c859['aboveCursor']},_0x5e2360?_0x5e2360['timestamp']:Date['now'](),_0x3851f9,!0x1);}['map'](_0x4f6795){return new CompletionDialog(this['options'],this['attrs'],{...this['tooltip'],'pos':_0x4f6795['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(_0x5971b4,_0x5282e7,_0x5a5405){this['active']=_0x5971b4,this['id']=_0x5282e7,this['open']=_0x5a5405;}static['start'](){return new CompletionState(none$1,'cm-ac-'+Math['floor'](0x1e8480*Math['random']())['toString'](0x24),null);}['update'](_0x58a179){let {state:_0x24a1e9}=_0x58a179,_0x274a05=_0x24a1e9['facet'](completionConfig),_0x1f2fa5=(_0x274a05['override']||_0x24a1e9['languageDataAt']('autocomplete',cur(_0x24a1e9))['map'](asSource))['map'](_0x399e7c=>{let _0xe474eb=this['active']['find'](_0x3ceca0=>_0x3ceca0['source']==_0x399e7c)||new ActiveSource(_0x399e7c,this['active']['some'](_0x7f89f3=>0x0!=_0x7f89f3['state'])?0x1:0x0);return _0xe474eb['update'](_0x58a179,_0x274a05);});_0x1f2fa5['length']==this['active']['length']&&_0x1f2fa5['every']((_0x57cbeb,_0x3e72ba)=>_0x57cbeb==this['active'][_0x3e72ba])&&(_0x1f2fa5=this['active']);let _0x29ea44=this['open'],_0x1e4fb1=_0x58a179['effects']['some'](_0x2e080b=>_0x2e080b['is'](setActiveEffect));_0x29ea44&&_0x58a179['docChanged']&&(_0x29ea44=_0x29ea44['map'](_0x58a179['changes'])),_0x58a179['selection']||_0x1f2fa5['some'](_0x31fe47=>_0x31fe47['hasResult']()&&_0x58a179['changes']['touchesRange'](_0x31fe47['from'],_0x31fe47['to']))||!sameResults(_0x1f2fa5,this['active'])||_0x1e4fb1?_0x29ea44=CompletionDialog['build'](_0x1f2fa5,_0x24a1e9,this['id'],_0x29ea44,_0x274a05,_0x1e4fb1):_0x29ea44&&_0x29ea44['disabled']&&!_0x1f2fa5['some'](_0x41d449=>_0x41d449['isPending'])&&(_0x29ea44=null),!_0x29ea44&&_0x1f2fa5['every'](_0x56ddeb=>!_0x56ddeb['isPending'])&&_0x1f2fa5['some'](_0x275798=>_0x275798['hasResult']())&&(_0x1f2fa5=_0x1f2fa5['map'](_0x1215d9=>_0x1215d9['hasResult']()?new ActiveSource(_0x1215d9['source'],0x0):_0x1215d9));for(let _0x44d197 of _0x58a179['effects'])_0x44d197['is'](setSelectedEffect)&&(_0x29ea44=_0x29ea44&&_0x29ea44['setSelected'](_0x44d197['value'],this['id']));return _0x1f2fa5==this['active']&&_0x29ea44==this['open']?this:new CompletionState(_0x1f2fa5,this['id'],_0x29ea44);}get['tooltip'](){return this['open']?this['open']['tooltip']:null;}get['attrs'](){return this['open']?this['open']['attrs']:this['active']['length']?baseAttrs:noAttrs;}}function sameResults(_0x23d2fe,_0x52e773){if(_0x23d2fe==_0x52e773)return!0x0;for(let _0x13310e=0x0,_0x5d359d=0x0;;){for(;_0x13310e<_0x23d2fe['length']&&!_0x23d2fe[_0x13310e]['hasResult']();)_0x13310e++;for(;_0x5d359d<_0x52e773['length']&&!_0x52e773[_0x5d359d]['hasResult']();)_0x5d359d++;let _0x5745d4=_0x13310e==_0x23d2fe['length'],_0x2ca589=_0x5d359d==_0x52e773['length'];if(_0x5745d4||_0x2ca589)return _0x5745d4==_0x2ca589;if(_0x23d2fe[_0x13310e++]['result']!=_0x52e773[_0x5d359d++]['result'])return!0x1;}}const baseAttrs={'aria-autocomplete':'list'},noAttrs={};function makeAttrs(_0x3817a0,_0x65955f){let _0x439ccf={'aria-autocomplete':'list','aria-haspopup':'listbox','aria-controls':_0x3817a0};return _0x65955f>-0x1&&(_0x439ccf['aria-activedescendant']=_0x3817a0+'-'+_0x65955f),_0x439ccf;}const none$1=[];function getUpdateType(_0xfe57fa,_0x262ff6){if(_0xfe57fa['isUserEvent']('input.complete')){let _0x4a70ef=_0xfe57fa['annotation'](pickedCompletion);if(_0x4a70ef&&_0x262ff6['activateOnCompletion'](_0x4a70ef))return 0xc;}let _0x40786a=_0xfe57fa['isUserEvent']('input.type');return _0x40786a&&_0x262ff6['activateOnTyping']?0x5:_0x40786a?0x1:_0xfe57fa['isUserEvent']('delete.backward')?0x2:_0xfe57fa['selection']?0x8:_0xfe57fa['docChanged']?0x10:0x0;}class ActiveSource{constructor(_0x1a3e5c,_0x574aac,_0x509cad=!0x1){this['source']=_0x1a3e5c,this['state']=_0x574aac,this['explicit']=_0x509cad;}['hasResult'](){return!0x1;}get['isPending'](){return 0x1==this['state'];}['update'](_0x4a05b4,_0x220c1c){let _0x314b25=getUpdateType(_0x4a05b4,_0x220c1c),_0x2db7c8=this;(0x8&_0x314b25||0x10&_0x314b25&&this['touches'](_0x4a05b4))&&(_0x2db7c8=new ActiveSource(_0x2db7c8['source'],0x0)),0x4&_0x314b25&&0x0==_0x2db7c8['state']&&(_0x2db7c8=new ActiveSource(this['source'],0x1)),_0x2db7c8=_0x2db7c8['updateFor'](_0x4a05b4,_0x314b25);for(let _0x54426a of _0x4a05b4['effects'])if(_0x54426a['is'](startCompletionEffect))_0x2db7c8=new ActiveSource(_0x2db7c8['source'],0x1,_0x54426a['value']);else{if(_0x54426a['is'](closeCompletionEffect))_0x2db7c8=new ActiveSource(_0x2db7c8['source'],0x0);else{if(_0x54426a['is'](setActiveEffect)){for(let _0x527132 of _0x54426a['value'])_0x527132['source']==_0x2db7c8['source']&&(_0x2db7c8=_0x527132);}}}return _0x2db7c8;}['updateFor'](_0x382a5c,_0x73d139){return this['map'](_0x382a5c['changes']);}['map'](_0x59c0eb){return this;}['touches'](_0x59a5e0){return _0x59a5e0['changes']['touchesRange'](cur(_0x59a5e0['state']));}}class ActiveResult extends ActiveSource{constructor(_0x44d4c2,_0x58a8f7,_0x2d1c11,_0x263e90,_0x5d522d,_0x3a5b76){super(_0x44d4c2,0x3,_0x58a8f7),this['limit']=_0x2d1c11,this['result']=_0x263e90,this['from']=_0x5d522d,this['to']=_0x3a5b76;}['hasResult'](){return!0x0;}['updateFor'](_0x3b68eb,_0x2e266f){var _0x1b14f3;if(!(0x3&_0x2e266f))return this['map'](_0x3b68eb['changes']);let _0x5b51f9=this['result'];_0x5b51f9['map']&&!_0x3b68eb['changes']['empty']&&(_0x5b51f9=_0x5b51f9['map'](_0x5b51f9,_0x3b68eb['changes']));let _0x16bc05=_0x3b68eb['changes']['mapPos'](this['from']),_0xb6ab21=_0x3b68eb['changes']['mapPos'](this['to'],0x1),_0x23c396=cur(_0x3b68eb['state']);if(_0x23c396>_0xb6ab21||!_0x5b51f9||0x2&_0x2e266f&&(cur(_0x3b68eb['startState'])==this['from']||_0x23c396<this['limit']))return new ActiveSource(this['source'],0x4&_0x2e266f?0x1:0x0);let _0x161fe3=_0x3b68eb['changes']['mapPos'](this['limit']);return checkValid(_0x5b51f9['validFor'],_0x3b68eb['state'],_0x16bc05,_0xb6ab21)?new ActiveResult(this['source'],this['explicit'],_0x161fe3,_0x5b51f9,_0x16bc05,_0xb6ab21):_0x5b51f9['update']&&(_0x5b51f9=_0x5b51f9['update'](_0x5b51f9,_0x16bc05,_0xb6ab21,new CompletionContext(_0x3b68eb['state'],_0x23c396,!0x1)))?new ActiveResult(this['source'],this['explicit'],_0x161fe3,_0x5b51f9,_0x5b51f9['from'],null!==(_0x1b14f3=_0x5b51f9['to'])&&void 0x0!==_0x1b14f3?_0x1b14f3:cur(_0x3b68eb['state'])):new ActiveSource(this['source'],0x1,this['explicit']);}['map'](_0x11e36f){if(_0x11e36f['empty'])return this;return(this['result']['map']?this['result']['map'](this['result'],_0x11e36f):this['result'])?new ActiveResult(this['source'],this['explicit'],_0x11e36f['mapPos'](this['limit']),this['result'],_0x11e36f['mapPos'](this['from']),_0x11e36f['mapPos'](this['to'],0x1)):new ActiveSource(this['source'],0x0);}['touches'](_0x3dbac6){return _0x3dbac6['changes']['touchesRange'](this['from'],this['to']);}}function checkValid(_0x235691,_0x5c239c,_0x2b4822,_0x217ccb){if(!_0x235691)return!0x1;let _0x493c31=_0x5c239c['sliceDoc'](_0x2b4822,_0x217ccb);return'function'==typeof _0x235691?_0x235691(_0x493c31,_0x2b4822,_0x217ccb,_0x5c239c):ensureAnchor(_0x235691,!0x0)['test'](_0x493c31);}const setActiveEffect=StateEffect['define']({'map':(_0x1c2c8d,_0x1afa09)=>_0x1c2c8d['map'](_0x1bbbb8=>_0x1bbbb8['map'](_0x1afa09))}),setSelectedEffect=StateEffect['define'](),completionState=StateField['define']({'create':()=>CompletionState['start'](),'update':(_0x4029f5,_0x1f5a44)=>_0x4029f5['update'](_0x1f5a44),'provide':_0x408485=>[showTooltip['from'](_0x408485,_0x5b5543=>_0x5b5543['tooltip']),EditorView['contentAttributes']['from'](_0x408485,_0x6bc417=>_0x6bc417['attrs'])]});function applyCompletion(_0x21d0a7,_0x2f1dcb){const _0x2af8f0=_0x2f1dcb['completion']['apply']||_0x2f1dcb['completion']['label'];let _0x4978e8=_0x21d0a7['state']['field'](completionState)['active']['find'](_0x62e0b2=>_0x62e0b2['source']==_0x2f1dcb['source']);return _0x4978e8 instanceof ActiveResult&&('string'==typeof _0x2af8f0?_0x21d0a7['dispatch']({...insertCompletionText(_0x21d0a7['state'],_0x2af8f0,_0x4978e8['from'],_0x4978e8['to']),'annotations':pickedCompletion['of'](_0x2f1dcb['completion'])}):_0x2af8f0(_0x21d0a7,_0x2f1dcb['completion'],_0x4978e8['from'],_0x4978e8['to']),!0x0);}const createTooltip=completionTooltip(completionState,applyCompletion);function moveCompletionSelection(_0x4ee3e7,_0x5a70aa='option'){return _0x4a72dc=>{let _0x3aa492=_0x4a72dc['state']['field'](completionState,!0x1);if(!_0x3aa492||!_0x3aa492['open']||_0x3aa492['open']['disabled']||Date['now']()-_0x3aa492['open']['timestamp']<_0x4a72dc['state']['facet'](completionConfig)['interactionDelay'])return!0x1;let _0x1c4415,_0x2a18a5=0x1;'page'==_0x5a70aa&&(_0x1c4415=getTooltip(_0x4a72dc,_0x3aa492['open']['tooltip']))&&(_0x2a18a5=Math['max'](0x2,Math['floor'](_0x1c4415['dom']['offsetHeight']/_0x1c4415['dom']['querySelector']('li')['offsetHeight'])-0x1));let {length:_0x5a7be4}=_0x3aa492['open']['options'],_0x13d952=_0x3aa492['open']['selected']>-0x1?_0x3aa492['open']['selected']+_0x2a18a5*(_0x4ee3e7?0x1:-0x1):_0x4ee3e7?0x0:_0x5a7be4-0x1;return _0x13d952<0x0?_0x13d952='page'==_0x5a70aa?0x0:_0x5a7be4-0x1:_0x13d952>=_0x5a7be4&&(_0x13d952='page'==_0x5a70aa?_0x5a7be4-0x1:0x0),_0x4a72dc['dispatch']({'effects':setSelectedEffect['of'](_0x13d952)}),!0x0;};}const acceptCompletion=_0x36aaf2=>{let _0x5712ec=_0x36aaf2['state']['field'](completionState,!0x1);return!(_0x36aaf2['state']['readOnly']||!_0x5712ec||!_0x5712ec['open']||_0x5712ec['open']['selected']<0x0||_0x5712ec['open']['disabled']||Date['now']()-_0x5712ec['open']['timestamp']<_0x36aaf2['state']['facet'](completionConfig)['interactionDelay'])&&applyCompletion(_0x36aaf2,_0x5712ec['open']['options'][_0x5712ec['open']['selected']]);},startCompletion=_0x55f3a2=>!!_0x55f3a2['state']['field'](completionState,!0x1)&&(_0x55f3a2['dispatch']({'effects':startCompletionEffect['of'](!0x0)}),!0x0),closeCompletion=_0x248cba=>{let _0x30a26b=_0x248cba['state']['field'](completionState,!0x1);return!(!_0x30a26b||!_0x30a26b['active']['some'](_0x3df750=>0x0!=_0x3df750['state']))&&(_0x248cba['dispatch']({'effects':closeCompletionEffect['of'](null)}),!0x0);};class RunningQuery{constructor(_0x2ddc1b,_0x12dad3){this['active']=_0x2ddc1b,this['context']=_0x12dad3,this['time']=Date['now'](),this['updates']=[],this['done']=void 0x0;}}const MaxUpdateCount=0x32,MinAbortTime=0x3e8,completionPlugin=ViewPlugin['fromClass'](class{constructor(_0x4d7898){this['view']=_0x4d7898,this['debounceUpdate']=-0x1,this['running']=[],this['debounceAccept']=-0x1,this['pendingStart']=!0x1,this['composing']=0x0;for(let _0x53c30b of _0x4d7898['state']['field'](completionState)['active'])_0x53c30b['isPending']&&this['startQuery'](_0x53c30b);}['update'](_0x1a9c85){let _0x47381e=_0x1a9c85['state']['field'](completionState),_0x4d6a73=_0x1a9c85['state']['facet'](completionConfig);if(!_0x1a9c85['selectionSet']&&!_0x1a9c85['docChanged']&&_0x1a9c85['startState']['field'](completionState)==_0x47381e)return;let _0x3ca605=_0x1a9c85['transactions']['some'](_0x4d65a8=>{let _0x459060=getUpdateType(_0x4d65a8,_0x4d6a73);return 0x8&_0x459060||(_0x4d65a8['selection']||_0x4d65a8['docChanged'])&&!(0x3&_0x459060);});for(let _0x1f8ce3=0x0;_0x1f8ce3<this['running']['length'];_0x1f8ce3++){let _0x12d884=this['running'][_0x1f8ce3];if(_0x3ca605||_0x12d884['context']['abortOnDocChange']&&_0x1a9c85['docChanged']||_0x12d884['updates']['length']+_0x1a9c85['transactions']['length']>MaxUpdateCount&&Date['now']()-_0x12d884['time']>MinAbortTime){for(let _0x213600 of _0x12d884['context']['abortListeners'])try{_0x213600();}catch(_0x446d4b){logException(this['view']['state'],_0x446d4b);}_0x12d884['context']['abortListeners']=null,this['running']['splice'](_0x1f8ce3--,0x1);}else _0x12d884['updates']['push'](..._0x1a9c85['transactions']);}this['debounceUpdate']>-0x1&&clearTimeout(this['debounceUpdate']),_0x1a9c85['transactions']['some'](_0x581864=>_0x581864['effects']['some'](_0x13c834=>_0x13c834['is'](startCompletionEffect)))&&(this['pendingStart']=!0x0);let _0x2b8a38=this['pendingStart']?0x32:_0x4d6a73['activateOnTypingDelay'];if(this['debounceUpdate']=_0x47381e['active']['some'](_0x1379eb=>_0x1379eb['isPending']&&!this['running']['some'](_0x5d2d63=>_0x5d2d63['active']['source']==_0x1379eb['source']))?setTimeout(()=>this['startUpdate'](),_0x2b8a38):-0x1,0x0!=this['composing']){for(let _0x1f3d04 of _0x1a9c85['transactions'])_0x1f3d04['isUserEvent']('input.type')?this['composing']=0x2:0x2==this['composing']&&_0x1f3d04['selection']&&(this['composing']=0x3);}}['startUpdate'](){this['debounceUpdate']=-0x1,this['pendingStart']=!0x1;let {state:_0x300b9a}=this['view'],_0x51b24d=_0x300b9a['field'](completionState);for(let _0x54d85d of _0x51b24d['active'])_0x54d85d['isPending']&&!this['running']['some'](_0xc29fe9=>_0xc29fe9['active']['source']==_0x54d85d['source'])&&this['startQuery'](_0x54d85d);this['running']['length']&&_0x51b24d['open']&&_0x51b24d['open']['disabled']&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['startQuery'](_0x9eed67){let {state:_0x4db257}=this['view'],_0x45579d=cur(_0x4db257),_0xbe2ca8=new CompletionContext(_0x4db257,_0x45579d,_0x9eed67['explicit'],this['view']),_0x401917=new RunningQuery(_0x9eed67,_0xbe2ca8);this['running']['push'](_0x401917),Promise['resolve'](_0x9eed67['source'](_0xbe2ca8))['then'](_0x4be216=>{_0x401917['context']['aborted']||(_0x401917['done']=_0x4be216||null,this['scheduleAccept']());},_0x6fe7c2=>{this['view']['dispatch']({'effects':closeCompletionEffect['of'](null)}),logException(this['view']['state'],_0x6fe7c2);});}['scheduleAccept'](){this['running']['every'](_0x5ad675=>void 0x0!==_0x5ad675['done'])?this['accept']():this['debounceAccept']<0x0&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['accept'](){var _0x20b414;this['debounceAccept']>-0x1&&clearTimeout(this['debounceAccept']),this['debounceAccept']=-0x1;let _0x1d0bf4=[],_0x228504=this['view']['state']['facet'](completionConfig),_0x38c5ac=this['view']['state']['field'](completionState);for(let _0x4325b5=0x0;_0x4325b5<this['running']['length'];_0x4325b5++){let _0x5dd7e4=this['running'][_0x4325b5];if(void 0x0===_0x5dd7e4['done'])continue;if(this['running']['splice'](_0x4325b5--,0x1),_0x5dd7e4['done']){let _0x2a0a22=cur(_0x5dd7e4['updates']['length']?_0x5dd7e4['updates'][0x0]['startState']:this['view']['state']),_0x36e7bd=Math['min'](_0x2a0a22,_0x5dd7e4['done']['from']+(_0x5dd7e4['active']['explicit']?0x0:0x1)),_0x257705=new ActiveResult(_0x5dd7e4['active']['source'],_0x5dd7e4['active']['explicit'],_0x36e7bd,_0x5dd7e4['done'],_0x5dd7e4['done']['from'],null!==(_0x20b414=_0x5dd7e4['done']['to'])&&void 0x0!==_0x20b414?_0x20b414:_0x2a0a22);for(let _0x2df25a of _0x5dd7e4['updates'])_0x257705=_0x257705['update'](_0x2df25a,_0x228504);if(_0x257705['hasResult']()){_0x1d0bf4['push'](_0x257705);continue;}}let _0x4d3799=_0x38c5ac['active']['find'](_0x2cb0fb=>_0x2cb0fb['source']==_0x5dd7e4['active']['source']);if(_0x4d3799&&_0x4d3799['isPending']){if(null==_0x5dd7e4['done']){let _0x45e5b7=new ActiveSource(_0x5dd7e4['active']['source'],0x0);for(let _0xd18f01 of _0x5dd7e4['updates'])_0x45e5b7=_0x45e5b7['update'](_0xd18f01,_0x228504);_0x45e5b7['isPending']||_0x1d0bf4['push'](_0x45e5b7);}else this['startQuery'](_0x4d3799);}}(_0x1d0bf4['length']||_0x38c5ac['open']&&_0x38c5ac['open']['disabled'])&&this['view']['dispatch']({'effects':setActiveEffect['of'](_0x1d0bf4)});}},{'eventHandlers':{'blur'(_0x287c7){let _0x2972de=this['view']['state']['field'](completionState,!0x1);if(_0x2972de&&_0x2972de['tooltip']&&this['view']['state']['facet'](completionConfig)['closeOnBlur']){let _0x10c903=_0x2972de['open']&&getTooltip(this['view'],_0x2972de['open']['tooltip']);_0x10c903&&_0x10c903['dom']['contains'](_0x287c7['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'(_0x2fcae2,_0x55f6f6){let _0x168a61=_0x55f6f6['state']['field'](completionState,!0x1);if(!_0x168a61||!_0x168a61['open']||_0x168a61['open']['disabled']||_0x168a61['open']['selected']<0x0||_0x2fcae2['key']['length']>0x1||_0x2fcae2['ctrlKey']&&(!windows||!_0x2fcae2['altKey'])||_0x2fcae2['metaKey'])return!0x1;let _0x550c8b=_0x168a61['open']['options'][_0x168a61['open']['selected']],_0x4adaf2=_0x168a61['active']['find'](_0x18daff=>_0x18daff['source']==_0x550c8b['source']),_0x3eac35=_0x550c8b['completion']['commitCharacters']||_0x4adaf2['result']['commitCharacters'];return _0x3eac35&&_0x3eac35['indexOf'](_0x2fcae2['key'])>-0x1&&applyCompletion(_0x55f6f6,_0x550c8b),!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(_0x45651f,_0x341bbb,_0x3f2871,_0x3df86b){this['field']=_0x45651f,this['line']=_0x341bbb,this['from']=_0x3f2871,this['to']=_0x3df86b;}}class FieldRange{constructor(_0x4b8fed,_0x26426f,_0x2a534c){this['field']=_0x4b8fed,this['from']=_0x26426f,this['to']=_0x2a534c;}['map'](_0x319640){let _0x16b66d=_0x319640['mapPos'](this['from'],-0x1,MapMode['TrackDel']),_0x3f2e45=_0x319640['mapPos'](this['to'],0x1,MapMode['TrackDel']);return null==_0x16b66d||null==_0x3f2e45?null:new FieldRange(this['field'],_0x16b66d,_0x3f2e45);}}class Snippet{constructor(_0x1efc1d,_0x5c26f6){this['lines']=_0x1efc1d,this['fieldPositions']=_0x5c26f6;}['instantiate'](_0x417848,_0xf30a1){let _0xefe9ca=[],_0x41a882=[_0xf30a1],_0x1f3abf=_0x417848['doc']['lineAt'](_0xf30a1),_0x3f2511=/^\s*/['exec'](_0x1f3abf['text'])[0x0];for(let _0x531f86 of this['lines']){if(_0xefe9ca['length']){let _0x293665=_0x3f2511,_0x2b51dd=/^\t*/['exec'](_0x531f86)[0x0]['length'];for(let _0x54593f=0x0;_0x54593f<_0x2b51dd;_0x54593f++)_0x293665+=_0x417848['facet'](indentUnit);_0x41a882['push'](_0xf30a1+_0x293665['length']-_0x2b51dd),_0x531f86=_0x293665+_0x531f86['slice'](_0x2b51dd);}_0xefe9ca['push'](_0x531f86),_0xf30a1+=_0x531f86['length']+0x1;}let _0x255759=this['fieldPositions']['map'](_0x438c34=>new FieldRange(_0x438c34['field'],_0x41a882[_0x438c34['line']]+_0x438c34['from'],_0x41a882[_0x438c34['line']]+_0x438c34['to']));return{'text':_0xefe9ca,'ranges':_0x255759};}static['parse'](_0x471c48){let _0xa14104,_0x59c014=[],_0x43620c=[],_0x2e41a6=[];for(let _0x750caa of _0x471c48['split'](/\r\n?|\n/)){for(;_0xa14104=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/['exec'](_0x750caa);){let _0x5aa79b=_0xa14104[0x1]?+_0xa14104[0x1]:null,_0x156830=_0xa14104[0x2]||_0xa14104[0x3]||'',_0xfecf52=-0x1,_0x461adf=_0x156830['replace'](/\\[{}]/g,_0x3e4c73=>_0x3e4c73[0x1]);for(let _0x5f424f=0x0;_0x5f424f<_0x59c014['length'];_0x5f424f++)(null!=_0x5aa79b?_0x59c014[_0x5f424f]['seq']==_0x5aa79b:_0x461adf&&_0x59c014[_0x5f424f]['name']==_0x461adf)&&(_0xfecf52=_0x5f424f);if(_0xfecf52<0x0){let _0xeae55b=0x0;for(;_0xeae55b<_0x59c014['length']&&(null==_0x5aa79b||null!=_0x59c014[_0xeae55b]['seq']&&_0x59c014[_0xeae55b]['seq']<_0x5aa79b);)_0xeae55b++;_0x59c014['splice'](_0xeae55b,0x0,{'seq':_0x5aa79b,'name':_0x461adf}),_0xfecf52=_0xeae55b;for(let _0x518fc8 of _0x2e41a6)_0x518fc8['field']>=_0xfecf52&&_0x518fc8['field']++;}for(let _0x7b32a1 of _0x2e41a6)if(_0x7b32a1['line']==_0x43620c['length']&&_0x7b32a1['from']>_0xa14104['index']){let _0x4b6095=_0xa14104[0x2]?0x3+(_0xa14104[0x1]||'')['length']:0x2;_0x7b32a1['from']-=_0x4b6095,_0x7b32a1['to']-=_0x4b6095;}_0x2e41a6['push'](new FieldPos(_0xfecf52,_0x43620c['length'],_0xa14104['index'],_0xa14104['index']+_0x461adf['length'])),_0x750caa=_0x750caa['slice'](0x0,_0xa14104['index'])+_0x156830+_0x750caa['slice'](_0xa14104['index']+_0xa14104[0x0]['length']);}_0x750caa=_0x750caa['replace'](/\\([{}])/g,(_0x14ffad,_0x485b05,_0x2d9e92)=>{for(let _0x33005c of _0x2e41a6)_0x33005c['line']==_0x43620c['length']&&_0x33005c['from']>_0x2d9e92&&(_0x33005c['from']--,_0x33005c['to']--);return _0x485b05;}),_0x43620c['push'](_0x750caa);}return new Snippet(_0x43620c,_0x2e41a6);}}let fieldMarker=Decoration['widget']({'widget':new class extends WidgetType{['toDOM'](){let _0x504a09=document['createElement']('span');return _0x504a09['className']='cm-snippetFieldPosition',_0x504a09;}['ignoreEvent'](){return!0x1;}}()}),fieldRange=Decoration['mark']({'class':'cm-snippetField'});class ActiveSnippet{constructor(_0x26d7f7,_0x444982){this['ranges']=_0x26d7f7,this['active']=_0x444982,this['deco']=Decoration['set'](_0x26d7f7['map'](_0x1cfdff=>(_0x1cfdff['from']==_0x1cfdff['to']?fieldMarker:fieldRange)['range'](_0x1cfdff['from'],_0x1cfdff['to'])),!0x0);}['map'](_0x237c37){let _0x21d5ff=[];for(let _0x548431 of this['ranges']){let _0x2d07f6=_0x548431['map'](_0x237c37);if(!_0x2d07f6)return null;_0x21d5ff['push'](_0x2d07f6);}return new ActiveSnippet(_0x21d5ff,this['active']);}['selectionInsideField'](_0x87541e){return _0x87541e['ranges']['every'](_0x447d04=>this['ranges']['some'](_0x3f351e=>_0x3f351e['field']==this['active']&&_0x3f351e['from']<=_0x447d04['from']&&_0x3f351e['to']>=_0x447d04['to']));}}const setActive=StateEffect['define']({'map':(_0x6c8f39,_0x52d05f)=>_0x6c8f39&&_0x6c8f39['map'](_0x52d05f)}),moveToField=StateEffect['define'](),snippetState=StateField['define']({'create':()=>null,'update'(_0x45b332,_0x38c45e){for(let _0x2af68a of _0x38c45e['effects']){if(_0x2af68a['is'](setActive))return _0x2af68a['value'];if(_0x2af68a['is'](moveToField)&&_0x45b332)return new ActiveSnippet(_0x45b332['ranges'],_0x2af68a['value']);}return _0x45b332&&_0x38c45e['docChanged']&&(_0x45b332=_0x45b332['map'](_0x38c45e['changes'])),_0x45b332&&_0x38c45e['selection']&&!_0x45b332['selectionInsideField'](_0x38c45e['selection'])&&(_0x45b332=null),_0x45b332;},'provide':_0x51ca1=>EditorView['decorations']['from'](_0x51ca1,_0x43c750=>_0x43c750?_0x43c750['deco']:Decoration['none'])});function fieldSelection(_0x442821,_0x2e4341){return EditorSelection['create'](_0x442821['filter'](_0x2e475b=>_0x2e475b['field']==_0x2e4341)['map'](_0x2fc6ec=>EditorSelection['range'](_0x2fc6ec['from'],_0x2fc6ec['to'])));}function snippet(_0x808c8c){let _0x10c1bc=Snippet['parse'](_0x808c8c);return(_0x3bdeac,_0x1dd0c5,_0x5e00b7,_0x44a1c5)=>{let {text:_0x2ac993,ranges:_0x15df57}=_0x10c1bc['instantiate'](_0x3bdeac['state'],_0x5e00b7),{main:_0x1bbe6d}=_0x3bdeac['state']['selection'],_0x357117={'changes':{'from':_0x5e00b7,'to':_0x44a1c5==_0x1bbe6d['from']?_0x1bbe6d['to']:_0x44a1c5,'insert':Text['of'](_0x2ac993)},'scrollIntoView':!0x0,'annotations':_0x1dd0c5?[pickedCompletion['of'](_0x1dd0c5),Transaction['userEvent']['of']('input.complete')]:void 0x0};if(_0x15df57['length']&&(_0x357117['selection']=fieldSelection(_0x15df57,0x0)),_0x15df57['some'](_0x3546f6=>_0x3546f6['field']>0x0)){let _0x5ccd65=new ActiveSnippet(_0x15df57,0x0),_0x427a6b=_0x357117['effects']=[setActive['of'](_0x5ccd65)];void 0x0===_0x3bdeac['state']['field'](snippetState,!0x1)&&_0x427a6b['push'](StateEffect['appendConfig']['of']([snippetState,addSnippetKeymap,snippetPointerHandler,baseTheme]));}_0x3bdeac['dispatch'](_0x3bdeac['state']['update'](_0x357117));};}function moveField(_0x110c78){return({state:_0x4a2897,dispatch:_0x384097})=>{let _0x5831a9=_0x4a2897['field'](snippetState,!0x1);if(!_0x5831a9||_0x110c78<0x0&&0x0==_0x5831a9['active'])return!0x1;let _0x311dd0=_0x5831a9['active']+_0x110c78,_0x3602b8=_0x110c78>0x0&&!_0x5831a9['ranges']['some'](_0x32bbf7=>_0x32bbf7['field']==_0x311dd0+_0x110c78);return _0x384097(_0x4a2897['update']({'selection':fieldSelection(_0x5831a9['ranges'],_0x311dd0),'effects':setActive['of'](_0x3602b8?null:new ActiveSnippet(_0x5831a9['ranges'],_0x311dd0)),'scrollIntoView':!0x0})),!0x0;};}const clearSnippet=({state:_0x573a97,dispatch:_0x4f316f})=>!!_0x573a97['field'](snippetState,!0x1)&&(_0x4f316f(_0x573a97['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':_0x420ab2=>_0x420ab2['length']?_0x420ab2[0x0]:defaultSnippetKeymap}),addSnippetKeymap=Prec['highest'](keymap['compute']([snippetKeymap],_0x522a6d=>_0x522a6d['facet'](snippetKeymap)));function snippetCompletion(_0x1a4b1d,_0x25ba2c){return{..._0x25ba2c,'apply':snippet(_0x1a4b1d)};}const snippetPointerHandler=EditorView['domEventHandlers']({'mousedown'(_0x342926,_0x5a16c4){let _0x207187,_0x4247f6=_0x5a16c4['state']['field'](snippetState,!0x1);if(!_0x4247f6||null==(_0x207187=_0x5a16c4['posAtCoords']({'x':_0x342926['clientX'],'y':_0x342926['clientY']})))return!0x1;let _0xe249c5=_0x4247f6['ranges']['find'](_0x5cf56b=>_0x5cf56b['from']<=_0x207187&&_0x5cf56b['to']>=_0x207187);return!(!_0xe249c5||_0xe249c5['field']==_0x4247f6['active'])&&(_0x5a16c4['dispatch']({'selection':fieldSelection(_0x4247f6['ranges'],_0xe249c5['field']),'effects':setActive['of'](_0x4247f6['ranges']['some'](_0x5c2119=>_0x5c2119['field']>_0xe249c5['field'])?new ActiveSnippet(_0x4247f6['ranges'],_0xe249c5['field']):null),'scrollIntoView':!0x0}),!0x0);}}),defaults={'brackets':['(','[','{','\x27','\x22'],'before':')]}:;>','stringPrefixes':[]},closeBracketEffect=StateEffect['define']({'map'(_0x45e179,_0x1f3dfe){let _0x73c6da=_0x1f3dfe['mapPos'](_0x45e179,-0x1,MapMode['TrackAfter']);return null==_0x73c6da?void 0x0:_0x73c6da;}}),closedBracket=new class extends RangeValue{}();closedBracket['startSide']=0x1,closedBracket['endSide']=-0x1;const bracketState=StateField['define']({'create':()=>RangeSet['empty'],'update'(_0x1a16a8,_0x288e17){if(_0x1a16a8=_0x1a16a8['map'](_0x288e17['changes']),_0x288e17['selection']){let _0x385d96=_0x288e17['state']['doc']['lineAt'](_0x288e17['selection']['main']['head']);_0x1a16a8=_0x1a16a8['update']({'filter':_0x3083c3=>_0x3083c3>=_0x385d96['from']&&_0x3083c3<=_0x385d96['to']});}for(let _0x153532 of _0x288e17['effects'])_0x153532['is'](closeBracketEffect)&&(_0x1a16a8=_0x1a16a8['update']({'add':[closedBracket['range'](_0x153532['value'],_0x153532['value']+0x1)]}));return _0x1a16a8;}});function closeBrackets(){return[inputHandler,bracketState];}const definedClosing='()[]{}<>«»»«［］｛｝';function closing(_0x37fdc1){for(let _0x3556c8=0x0;_0x3556c8<definedClosing['length'];_0x3556c8+=0x2)if(definedClosing['charCodeAt'](_0x3556c8)==_0x37fdc1)return definedClosing['charAt'](_0x3556c8+0x1);return fromCodePoint(_0x37fdc1<0x80?_0x37fdc1:_0x37fdc1+0x1);}function config$1(_0x381c5f,_0x5d030e){return _0x381c5f['languageDataAt']('closeBrackets',_0x5d030e)[0x0]||defaults;}const android$1='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),inputHandler=EditorView['inputHandler']['of']((_0x3d63d5,_0x399ca8,_0x1f9eaf,_0x15ce54)=>{if((android$1?_0x3d63d5['composing']:_0x3d63d5['compositionStarted'])||_0x3d63d5['state']['readOnly'])return!0x1;let _0xe938bb=_0x3d63d5['state']['selection']['main'];if(_0x15ce54['length']>0x2||0x2==_0x15ce54['length']&&0x1==codePointSize(codePointAt(_0x15ce54,0x0))||_0x399ca8!=_0xe938bb['from']||_0x1f9eaf!=_0xe938bb['to'])return!0x1;let _0x33ac2a=insertBracket(_0x3d63d5['state'],_0x15ce54);return!!_0x33ac2a&&(_0x3d63d5['dispatch'](_0x33ac2a),!0x0);}),deleteBracketPair=({state:_0x2d090d,dispatch:_0x257529})=>{if(_0x2d090d['readOnly'])return!0x1;let _0x17fc4f=config$1(_0x2d090d,_0x2d090d['selection']['main']['head'])['brackets']||defaults['brackets'],_0x4e3c19=null,_0x30b03a=_0x2d090d['changeByRange'](_0x52cbd2=>{if(_0x52cbd2['empty']){let _0x54e77f=prevChar(_0x2d090d['doc'],_0x52cbd2['head']);for(let _0x117a81 of _0x17fc4f)if(_0x117a81==_0x54e77f&&nextChar(_0x2d090d['doc'],_0x52cbd2['head'])==closing(codePointAt(_0x117a81,0x0)))return{'changes':{'from':_0x52cbd2['head']-_0x117a81['length'],'to':_0x52cbd2['head']+_0x117a81['length']},'range':EditorSelection['cursor'](_0x52cbd2['head']-_0x117a81['length'])};}return{'range':_0x4e3c19=_0x52cbd2};});return _0x4e3c19||_0x257529(_0x2d090d['update'](_0x30b03a,{'scrollIntoView':!0x0,'userEvent':'delete.backward'})),!_0x4e3c19;},closeBracketsKeymap=[{'key':'Backspace','run':deleteBracketPair}];function insertBracket(_0x40fa14,_0x108d09){let _0x33bd67=config$1(_0x40fa14,_0x40fa14['selection']['main']['head']),_0xbb63bb=_0x33bd67['brackets']||defaults['brackets'];for(let _0x3d5f6c of _0xbb63bb){let _0x31b0a8=closing(codePointAt(_0x3d5f6c,0x0));if(_0x108d09==_0x3d5f6c)return _0x31b0a8==_0x3d5f6c?handleSame(_0x40fa14,_0x3d5f6c,_0xbb63bb['indexOf'](_0x3d5f6c+_0x3d5f6c+_0x3d5f6c)>-0x1,_0x33bd67):handleOpen(_0x40fa14,_0x3d5f6c,_0x31b0a8,_0x33bd67['before']||defaults['before']);if(_0x108d09==_0x31b0a8&&closedBracketAt(_0x40fa14,_0x40fa14['selection']['main']['from']))return handleClose(_0x40fa14,_0x3d5f6c,_0x31b0a8);}return null;}function closedBracketAt(_0x2345c1,_0x14be07){let _0x2a6a95=!0x1;return _0x2345c1['field'](bracketState)['between'](0x0,_0x2345c1['doc']['length'],_0x2a87bd=>{_0x2a87bd==_0x14be07&&(_0x2a6a95=!0x0);}),_0x2a6a95;}function nextChar(_0x327db9,_0x574124){let _0x38c253=_0x327db9['sliceString'](_0x574124,_0x574124+0x2);return _0x38c253['slice'](0x0,codePointSize(codePointAt(_0x38c253,0x0)));}function prevChar(_0x366843,_0x41ab3d){let _0x54dfde=_0x366843['sliceString'](_0x41ab3d-0x2,_0x41ab3d);return codePointSize(codePointAt(_0x54dfde,0x0))==_0x54dfde['length']?_0x54dfde:_0x54dfde['slice'](0x1);}function handleOpen(_0x3bc9b9,_0x11c39f,_0x552267,_0x53956e){let _0x4b9b78=null,_0x49f93f=_0x3bc9b9['changeByRange'](_0x459675=>{if(!_0x459675['empty'])return{'changes':[{'insert':_0x11c39f,'from':_0x459675['from']},{'insert':_0x552267,'from':_0x459675['to']}],'effects':closeBracketEffect['of'](_0x459675['to']+_0x11c39f['length']),'range':EditorSelection['range'](_0x459675['anchor']+_0x11c39f['length'],_0x459675['head']+_0x11c39f['length'])};let _0x31fdf4=nextChar(_0x3bc9b9['doc'],_0x459675['head']);return!_0x31fdf4||/\s/['test'](_0x31fdf4)||_0x53956e['indexOf'](_0x31fdf4)>-0x1?{'changes':{'insert':_0x11c39f+_0x552267,'from':_0x459675['head']},'effects':closeBracketEffect['of'](_0x459675['head']+_0x11c39f['length']),'range':EditorSelection['cursor'](_0x459675['head']+_0x11c39f['length'])}:{'range':_0x4b9b78=_0x459675};});return _0x4b9b78?null:_0x3bc9b9['update'](_0x49f93f,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleClose(_0x5a97b,_0x124436,_0x454a0e){let _0xfd4530=null,_0x2ef45d=_0x5a97b['changeByRange'](_0xcf9e3c=>_0xcf9e3c['empty']&&nextChar(_0x5a97b['doc'],_0xcf9e3c['head'])==_0x454a0e?{'changes':{'from':_0xcf9e3c['head'],'to':_0xcf9e3c['head']+_0x454a0e['length'],'insert':_0x454a0e},'range':EditorSelection['cursor'](_0xcf9e3c['head']+_0x454a0e['length'])}:_0xfd4530={'range':_0xcf9e3c});return _0xfd4530?null:_0x5a97b['update'](_0x2ef45d,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleSame(_0x5dca0d,_0x189176,_0x3cc631,_0x41769b){let _0x544c72=_0x41769b['stringPrefixes']||defaults['stringPrefixes'],_0x58617f=null,_0x5f2e1c=_0x5dca0d['changeByRange'](_0x18a152=>{if(!_0x18a152['empty'])return{'changes':[{'insert':_0x189176,'from':_0x18a152['from']},{'insert':_0x189176,'from':_0x18a152['to']}],'effects':closeBracketEffect['of'](_0x18a152['to']+_0x189176['length']),'range':EditorSelection['range'](_0x18a152['anchor']+_0x189176['length'],_0x18a152['head']+_0x189176['length'])};let _0x5b09e8,_0x496b0b=_0x18a152['head'],_0x4eadd3=nextChar(_0x5dca0d['doc'],_0x496b0b);if(_0x4eadd3==_0x189176){if(nodeStart(_0x5dca0d,_0x496b0b))return{'changes':{'insert':_0x189176+_0x189176,'from':_0x496b0b},'effects':closeBracketEffect['of'](_0x496b0b+_0x189176['length']),'range':EditorSelection['cursor'](_0x496b0b+_0x189176['length'])};if(closedBracketAt(_0x5dca0d,_0x496b0b)){let _0x3c0565=_0x3cc631&&_0x5dca0d['sliceDoc'](_0x496b0b,_0x496b0b+0x3*_0x189176['length'])==_0x189176+_0x189176+_0x189176?_0x189176+_0x189176+_0x189176:_0x189176;return{'changes':{'from':_0x496b0b,'to':_0x496b0b+_0x3c0565['length'],'insert':_0x3c0565},'range':EditorSelection['cursor'](_0x496b0b+_0x3c0565['length'])};}}else{if(_0x3cc631&&_0x5dca0d['sliceDoc'](_0x496b0b-0x2*_0x189176['length'],_0x496b0b)==_0x189176+_0x189176&&(_0x5b09e8=canStartStringAt(_0x5dca0d,_0x496b0b-0x2*_0x189176['length'],_0x544c72))>-0x1&&nodeStart(_0x5dca0d,_0x5b09e8))return{'changes':{'insert':_0x189176+_0x189176+_0x189176+_0x189176,'from':_0x496b0b},'effects':closeBracketEffect['of'](_0x496b0b+_0x189176['length']),'range':EditorSelection['cursor'](_0x496b0b+_0x189176['length'])};if(_0x5dca0d['charCategorizer'](_0x496b0b)(_0x4eadd3)!=CharCategory['Word']&&canStartStringAt(_0x5dca0d,_0x496b0b,_0x544c72)>-0x1&&!probablyInString(_0x5dca0d,_0x496b0b,_0x189176,_0x544c72))return{'changes':{'insert':_0x189176+_0x189176,'from':_0x496b0b},'effects':closeBracketEffect['of'](_0x496b0b+_0x189176['length']),'range':EditorSelection['cursor'](_0x496b0b+_0x189176['length'])};}return{'range':_0x58617f=_0x18a152};});return _0x58617f?null:_0x5dca0d['update'](_0x5f2e1c,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function nodeStart(_0x2c4704,_0xd3c515){let _0x21d8c0=syntaxTree(_0x2c4704)['resolveInner'](_0xd3c515+0x1);return _0x21d8c0['parent']&&_0x21d8c0['from']==_0xd3c515;}function probablyInString(_0x103866,_0x543a25,_0x2a152f,_0x49423a){let _0x553f90=syntaxTree(_0x103866)['resolveInner'](_0x543a25,-0x1),_0x46cf84=_0x49423a['reduce']((_0x4f63a2,_0x168977)=>Math['max'](_0x4f63a2,_0x168977['length']),0x0);for(let _0x47cefe=0x0;_0x47cefe<0x5;_0x47cefe++){let _0x33d6d0=_0x103866['sliceDoc'](_0x553f90['from'],Math['min'](_0x553f90['to'],_0x553f90['from']+_0x2a152f['length']+_0x46cf84)),_0x573b8f=_0x33d6d0['indexOf'](_0x2a152f);if(!_0x573b8f||_0x573b8f>-0x1&&_0x49423a['indexOf'](_0x33d6d0['slice'](0x0,_0x573b8f))>-0x1){let _0x37f22e=_0x553f90['firstChild'];for(;_0x37f22e&&_0x37f22e['from']==_0x553f90['from']&&_0x37f22e['to']-_0x37f22e['from']>_0x2a152f['length']+_0x573b8f;){if(_0x103866['sliceDoc'](_0x37f22e['to']-_0x2a152f['length'],_0x37f22e['to'])==_0x2a152f)return!0x1;_0x37f22e=_0x37f22e['firstChild'];}return!0x0;}let _0x367674=_0x553f90['to']==_0x543a25&&_0x553f90['parent'];if(!_0x367674)break;_0x553f90=_0x367674;}return!0x1;}function canStartStringAt(_0x42c9ed,_0x398950,_0x49615e){let _0x4b5f6e=_0x42c9ed['charCategorizer'](_0x398950);if(_0x4b5f6e(_0x42c9ed['sliceDoc'](_0x398950-0x1,_0x398950))!=CharCategory['Word'])return _0x398950;for(let _0x306f4d of _0x49615e){let _0x28e0be=_0x398950-_0x306f4d['length'];if(_0x42c9ed['sliceDoc'](_0x28e0be,_0x398950)==_0x306f4d&&_0x4b5f6e(_0x42c9ed['sliceDoc'](_0x28e0be-0x1,_0x28e0be))!=CharCategory['Word'])return _0x28e0be;}return-0x1;}function autocompletion(_0x573a9b={}){return[commitCharacters,completionState,completionConfig['of'](_0x573a9b),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],_0x387c47=>_0x387c47['facet'](completionConfig)['defaultKeymap']?[completionKeymap]:[]));class Stack{constructor(_0x5a8c1c,_0x27b5d6,_0x54956e,_0x3a93b3,_0x24b358,_0xa8a6da,_0x531c33,_0x4f1050,_0x33e704,_0x23581d=0x0,_0x2faff5){this['p']=_0x5a8c1c,this['stack']=_0x27b5d6,this['state']=_0x54956e,this['reducePos']=_0x3a93b3,this['pos']=_0x24b358,this['score']=_0xa8a6da,this['buffer']=_0x531c33,this['bufferBase']=_0x4f1050,this['curContext']=_0x33e704,this['lookAhead']=_0x23581d,this['parent']=_0x2faff5;}['toString'](){return'['+this['stack']['filter']((_0x2af1f6,_0x5454fd)=>_0x5454fd%0x3==0x0)['concat'](this['state'])+']@'+this['pos']+(this['score']?'!'+this['score']:'');}static['start'](_0x147373,_0x2698e7,_0x481f1e=0x0){let _0x24c170=_0x147373['parser']['context'];return new Stack(_0x147373,[],_0x2698e7,_0x481f1e,_0x481f1e,0x0,[],0x0,_0x24c170?new StackContext(_0x24c170,_0x24c170['start']):null,0x0,null);}get['context'](){return this['curContext']?this['curContext']['context']:null;}['pushState'](_0x543e19,_0x493844){this['stack']['push'](this['state'],_0x493844,this['bufferBase']+this['buffer']['length']),this['state']=_0x543e19;}['reduce'](_0x3d638a){var _0x175ff7;let _0x3482d2=_0x3d638a>>0x13,_0x5e9616=0xffff&_0x3d638a,{parser:_0x1e132f}=this['p'],_0x2c8e24=this['reducePos']<this['pos']-0x19;_0x2c8e24&&this['setLookAhead'](this['pos']);let _0x51692f=_0x1e132f['dynamicPrecedence'](_0x5e9616);if(_0x51692f&&(this['score']+=_0x51692f),0x0==_0x3482d2)return this['pushState'](_0x1e132f['getGoto'](this['state'],_0x5e9616,!0x0),this['reducePos']),_0x5e9616<_0x1e132f['minRepeatTerm']&&this['storeNode'](_0x5e9616,this['reducePos'],this['reducePos'],_0x2c8e24?0x8:0x4,!0x0),void this['reduceContext'](_0x5e9616,this['reducePos']);let _0x6f94f4=this['stack']['length']-0x3*(_0x3482d2-0x1)-(0x40000&_0x3d638a?0x6:0x0),_0x138935=_0x6f94f4?this['stack'][_0x6f94f4-0x2]:this['p']['ranges'][0x0]['from'],_0x377530=this['reducePos']-_0x138935;_0x377530>=0x7d0&&!(null===(_0x175ff7=this['p']['parser']['nodeSet']['types'][_0x5e9616])||void 0x0===_0x175ff7?void 0x0:_0x175ff7['isAnonymous'])&&(_0x138935==this['p']['lastBigReductionStart']?(this['p']['bigReductionCount']++,this['p']['lastBigReductionSize']=_0x377530):this['p']['lastBigReductionSize']<_0x377530&&(this['p']['bigReductionCount']=0x1,this['p']['lastBigReductionStart']=_0x138935,this['p']['lastBigReductionSize']=_0x377530));let _0x4087d9=_0x6f94f4?this['stack'][_0x6f94f4-0x1]:0x0,_0x584bf7=this['bufferBase']+this['buffer']['length']-_0x4087d9;if(_0x5e9616<_0x1e132f['minRepeatTerm']||0x20000&_0x3d638a){let _0x2a0a3d=_0x1e132f['stateFlag'](this['state'],0x1)?this['pos']:this['reducePos'];this['storeNode'](_0x5e9616,_0x138935,_0x2a0a3d,_0x584bf7+0x4,!0x0);}if(0x40000&_0x3d638a)this['state']=this['stack'][_0x6f94f4];else{let _0x5b02ac=this['stack'][_0x6f94f4-0x3];this['state']=_0x1e132f['getGoto'](_0x5b02ac,_0x5e9616,!0x0);}for(;this['stack']['length']>_0x6f94f4;)this['stack']['pop']();this['reduceContext'](_0x5e9616,_0x138935);}['storeNode'](_0x4475ee,_0x555b20,_0x48f779,_0x2b37c3=0x4,_0x571d5d=!0x1){if(0x0==_0x4475ee&&(!this['stack']['length']||this['stack'][this['stack']['length']-0x1]<this['buffer']['length']+this['bufferBase'])){let _0xbc34a7=this,_0x353ffc=this['buffer']['length'];if(0x0==_0x353ffc&&_0xbc34a7['parent']&&(_0x353ffc=_0xbc34a7['bufferBase']-_0xbc34a7['parent']['bufferBase'],_0xbc34a7=_0xbc34a7['parent']),_0x353ffc>0x0&&0x0==_0xbc34a7['buffer'][_0x353ffc-0x4]&&_0xbc34a7['buffer'][_0x353ffc-0x1]>-0x1){if(_0x555b20==_0x48f779)return;if(_0xbc34a7['buffer'][_0x353ffc-0x2]>=_0x555b20)return void(_0xbc34a7['buffer'][_0x353ffc-0x2]=_0x48f779);}}if(_0x571d5d&&this['pos']!=_0x48f779){let _0x259848=this['buffer']['length'];if(_0x259848>0x0&&(0x0!=this['buffer'][_0x259848-0x4]||this['buffer'][_0x259848-0x1]<0x0)){let _0x503787=!0x1;for(let _0x252b34=_0x259848;_0x252b34>0x0&&this['buffer'][_0x252b34-0x2]>_0x48f779;_0x252b34-=0x4)if(this['buffer'][_0x252b34-0x1]>=0x0){_0x503787=!0x0;break;}if(_0x503787){for(;_0x259848>0x0&&this['buffer'][_0x259848-0x2]>_0x48f779;)this['buffer'][_0x259848]=this['buffer'][_0x259848-0x4],this['buffer'][_0x259848+0x1]=this['buffer'][_0x259848-0x3],this['buffer'][_0x259848+0x2]=this['buffer'][_0x259848-0x2],this['buffer'][_0x259848+0x3]=this['buffer'][_0x259848-0x1],_0x259848-=0x4,_0x2b37c3>0x4&&(_0x2b37c3-=0x4);}}this['buffer'][_0x259848]=_0x4475ee,this['buffer'][_0x259848+0x1]=_0x555b20,this['buffer'][_0x259848+0x2]=_0x48f779,this['buffer'][_0x259848+0x3]=_0x2b37c3;}else this['buffer']['push'](_0x4475ee,_0x555b20,_0x48f779,_0x2b37c3);}['shift'](_0x21ccbd,_0x1f0fd0,_0x57fc91,_0x41d9db){if(0x20000&_0x21ccbd)this['pushState'](0xffff&_0x21ccbd,this['pos']);else{if(0x40000&_0x21ccbd)this['pos']=_0x41d9db,this['shiftContext'](_0x1f0fd0,_0x57fc91),_0x1f0fd0<=this['p']['parser']['maxNode']&&this['buffer']['push'](_0x1f0fd0,_0x57fc91,_0x41d9db,0x4);else{let _0x269bc2=_0x21ccbd,{parser:_0x347725}=this['p'];(_0x41d9db>this['pos']||_0x1f0fd0<=_0x347725['maxNode'])&&(this['pos']=_0x41d9db,_0x347725['stateFlag'](_0x269bc2,0x1)||(this['reducePos']=_0x41d9db)),this['pushState'](_0x269bc2,_0x57fc91),this['shiftContext'](_0x1f0fd0,_0x57fc91),_0x1f0fd0<=_0x347725['maxNode']&&this['buffer']['push'](_0x1f0fd0,_0x57fc91,_0x41d9db,0x4);}}}['apply'](_0x2400dd,_0x356386,_0x5ea8fd,_0x42c1b5){0x10000&_0x2400dd?this['reduce'](_0x2400dd):this['shift'](_0x2400dd,_0x356386,_0x5ea8fd,_0x42c1b5);}['useNode'](_0x31ed51,_0x2a5954){let _0x4acb79=this['p']['reused']['length']-0x1;(_0x4acb79<0x0||this['p']['reused'][_0x4acb79]!=_0x31ed51)&&(this['p']['reused']['push'](_0x31ed51),_0x4acb79++);let _0x30921a=this['pos'];this['reducePos']=this['pos']=_0x30921a+_0x31ed51['length'],this['pushState'](_0x2a5954,_0x30921a),this['buffer']['push'](_0x4acb79,_0x30921a,this['reducePos'],-0x1),this['curContext']&&this['updateContext'](this['curContext']['tracker']['reuse'](this['curContext']['context'],_0x31ed51,this,this['p']['stream']['reset'](this['pos']-_0x31ed51['length'])));}['split'](){let _0x43fafe=this,_0x15da19=_0x43fafe['buffer']['length'];for(;_0x15da19>0x0&&_0x43fafe['buffer'][_0x15da19-0x2]>_0x43fafe['reducePos'];)_0x15da19-=0x4;let _0x185cca=_0x43fafe['buffer']['slice'](_0x15da19),_0x244c42=_0x43fafe['bufferBase']+_0x15da19;for(;_0x43fafe&&_0x244c42==_0x43fafe['bufferBase'];)_0x43fafe=_0x43fafe['parent'];return new Stack(this['p'],this['stack']['slice'](),this['state'],this['reducePos'],this['pos'],this['score'],_0x185cca,_0x244c42,this['curContext'],this['lookAhead'],_0x43fafe);}['recoverByDelete'](_0x533a02,_0x4071aa){let _0x102aec=_0x533a02<=this['p']['parser']['maxNode'];_0x102aec&&this['storeNode'](_0x533a02,this['pos'],_0x4071aa,0x4),this['storeNode'](0x0,this['pos'],_0x4071aa,_0x102aec?0x8:0x4),this['pos']=this['reducePos']=_0x4071aa,this['score']-=0xbe;}['canShift'](_0x5cf5c0){for(let _0x3f9984=new SimulatedStack(this);;){let _0x246d6e=this['p']['parser']['stateSlot'](_0x3f9984['state'],0x4)||this['p']['parser']['hasAction'](_0x3f9984['state'],_0x5cf5c0);if(0x0==_0x246d6e)return!0x1;if(!(0x10000&_0x246d6e))return!0x0;_0x3f9984['reduce'](_0x246d6e);}}['recoverByInsert'](_0x42d62d){if(this['stack']['length']>=0x12c)return[];let _0xb18709=this['p']['parser']['nextStates'](this['state']);if(_0xb18709['length']>0x8||this['stack']['length']>=0x78){let _0xa92117=[];for(let _0x3b2815,_0x171757=0x0;_0x171757<_0xb18709['length'];_0x171757+=0x2)(_0x3b2815=_0xb18709[_0x171757+0x1])!=this['state']&&this['p']['parser']['hasAction'](_0x3b2815,_0x42d62d)&&_0xa92117['push'](_0xb18709[_0x171757],_0x3b2815);if(this['stack']['length']<0x78)for(let _0x337f4b=0x0;_0xa92117['length']<0x8&&_0x337f4b<_0xb18709['length'];_0x337f4b+=0x2){let _0x1de082=_0xb18709[_0x337f4b+0x1];_0xa92117['some']((_0x586719,_0x13b078)=>0x1&_0x13b078&&_0x586719==_0x1de082)||_0xa92117['push'](_0xb18709[_0x337f4b],_0x1de082);}_0xb18709=_0xa92117;}let _0xb52609=[];for(let _0x3b109f=0x0;_0x3b109f<_0xb18709['length']&&_0xb52609['length']<0x4;_0x3b109f+=0x2){let _0x3b404a=_0xb18709[_0x3b109f+0x1];if(_0x3b404a==this['state'])continue;let _0x5e7980=this['split']();_0x5e7980['pushState'](_0x3b404a,this['pos']),_0x5e7980['storeNode'](0x0,_0x5e7980['pos'],_0x5e7980['pos'],0x4,!0x0),_0x5e7980['shiftContext'](_0xb18709[_0x3b109f],this['pos']),_0x5e7980['reducePos']=this['pos'],_0x5e7980['score']-=0xc8,_0xb52609['push'](_0x5e7980);}return _0xb52609;}['forceReduce'](){let {parser:_0x2ae61c}=this['p'],_0x1c8894=_0x2ae61c['stateSlot'](this['state'],0x5);if(!(0x10000&_0x1c8894))return!0x1;if(!_0x2ae61c['validAction'](this['state'],_0x1c8894)){let _0x16caa3=_0x1c8894>>0x13,_0x264a82=0xffff&_0x1c8894,_0x48305e=this['stack']['length']-0x3*_0x16caa3;if(_0x48305e<0x0||_0x2ae61c['getGoto'](this['stack'][_0x48305e],_0x264a82,!0x1)<0x0){let _0x13170e=this['findForcedReduction']();if(null==_0x13170e)return!0x1;_0x1c8894=_0x13170e;}this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['score']-=0x64;}return this['reducePos']=this['pos'],this['reduce'](_0x1c8894),!0x0;}['findForcedReduction'](){let {parser:_0x48f7d9}=this['p'],_0x3c0768=[],_0x4ac4db=(_0x8480b1,_0x5b4924)=>{if(!_0x3c0768['includes'](_0x8480b1))return _0x3c0768['push'](_0x8480b1),_0x48f7d9['allActions'](_0x8480b1,_0x22b2c0=>{if(0x60000&_0x22b2c0);else{if(0x10000&_0x22b2c0){let _0x1fe325=(_0x22b2c0>>0x13)-_0x5b4924;if(_0x1fe325>0x1){let _0x36e549=0xffff&_0x22b2c0,_0x264b75=this['stack']['length']-0x3*_0x1fe325;if(_0x264b75>=0x0&&_0x48f7d9['getGoto'](this['stack'][_0x264b75],_0x36e549,!0x1)>=0x0)return _0x1fe325<<0x13|0x10000|_0x36e549;}}else{let _0x18b3c6=_0x4ac4db(_0x22b2c0,_0x5b4924+0x1);if(null!=_0x18b3c6)return _0x18b3c6;}}});};return _0x4ac4db(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:_0xadb0aa}=this['p'];return 0xffff==_0xadb0aa['data'][_0xadb0aa['stateSlot'](this['state'],0x1)]&&!_0xadb0aa['stateSlot'](this['state'],0x4);}['restart'](){this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['state']=this['stack'][0x0],this['stack']['length']=0x0;}['sameState'](_0x51af0f){if(this['state']!=_0x51af0f['state']||this['stack']['length']!=_0x51af0f['stack']['length'])return!0x1;for(let _0x28175b=0x0;_0x28175b<this['stack']['length'];_0x28175b+=0x3)if(this['stack'][_0x28175b]!=_0x51af0f['stack'][_0x28175b])return!0x1;return!0x0;}get['parser'](){return this['p']['parser'];}['dialectEnabled'](_0x10ce8d){return this['p']['parser']['dialect']['flags'][_0x10ce8d];}['shiftContext'](_0x3b1822,_0x10e7fa){this['curContext']&&this['updateContext'](this['curContext']['tracker']['shift'](this['curContext']['context'],_0x3b1822,this,this['p']['stream']['reset'](_0x10e7fa)));}['reduceContext'](_0x2857c7,_0x465e02){this['curContext']&&this['updateContext'](this['curContext']['tracker']['reduce'](this['curContext']['context'],_0x2857c7,this,this['p']['stream']['reset'](_0x465e02)));}['emitContext'](){let _0x1ae2a5=this['buffer']['length']-0x1;(_0x1ae2a5<0x0||-0x3!=this['buffer'][_0x1ae2a5])&&this['buffer']['push'](this['curContext']['hash'],this['pos'],this['pos'],-0x3);}['emitLookAhead'](){let _0x35874a=this['buffer']['length']-0x1;(_0x35874a<0x0||-0x4!=this['buffer'][_0x35874a])&&this['buffer']['push'](this['lookAhead'],this['pos'],this['pos'],-0x4);}['updateContext'](_0x227ab6){if(_0x227ab6!=this['curContext']['context']){let _0x77dc45=new StackContext(this['curContext']['tracker'],_0x227ab6);_0x77dc45['hash']!=this['curContext']['hash']&&this['emitContext'](),this['curContext']=_0x77dc45;}}['setLookAhead'](_0x1548e5){_0x1548e5>this['lookAhead']&&(this['emitLookAhead'](),this['lookAhead']=_0x1548e5);}['close'](){this['curContext']&&this['curContext']['tracker']['strict']&&this['emitContext'](),this['lookAhead']>0x0&&this['emitLookAhead']();}}class StackContext{constructor(_0x41c9c0,_0x5aa335){this['tracker']=_0x41c9c0,this['context']=_0x5aa335,this['hash']=_0x41c9c0['strict']?_0x41c9c0['hash'](_0x5aa335):0x0;}}class SimulatedStack{constructor(_0xd68b8a){this['start']=_0xd68b8a,this['state']=_0xd68b8a['state'],this['stack']=_0xd68b8a['stack'],this['base']=this['stack']['length'];}['reduce'](_0x28d2e1){let _0x1e0ba0=0xffff&_0x28d2e1,_0x421aad=_0x28d2e1>>0x13;0x0==_0x421aad?(this['stack']==this['start']['stack']&&(this['stack']=this['stack']['slice']()),this['stack']['push'](this['state'],0x0,0x0),this['base']+=0x3):this['base']-=0x3*(_0x421aad-0x1);let _0x51adf2=this['start']['p']['parser']['getGoto'](this['stack'][this['base']-0x3],_0x1e0ba0,!0x0);this['state']=_0x51adf2;}}class StackBufferCursor{constructor(_0x5dfc0e,_0x144f96,_0x5b69e8){this['stack']=_0x5dfc0e,this['pos']=_0x144f96,this['index']=_0x5b69e8,this['buffer']=_0x5dfc0e['buffer'],0x0==this['index']&&this['maybeNext']();}static['create'](_0x5b9c6f,_0x569f0c=_0x5b9c6f['bufferBase']+_0x5b9c6f['buffer']['length']){return new StackBufferCursor(_0x5b9c6f,_0x569f0c,_0x569f0c-_0x5b9c6f['bufferBase']);}['maybeNext'](){let _0x193830=this['stack']['parent'];null!=_0x193830&&(this['index']=this['stack']['bufferBase']-_0x193830['bufferBase'],this['stack']=_0x193830,this['buffer']=_0x193830['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(_0x2a12b2,_0x58592a=Uint16Array){if('string'!=typeof _0x2a12b2)return _0x2a12b2;let _0x51b457=null;for(let _0x5ef835=0x0,_0x58faad=0x0;_0x5ef835<_0x2a12b2['length'];){let _0x5042a1=0x0;for(;;){let _0x4446ba=_0x2a12b2['charCodeAt'](_0x5ef835++),_0x4b550b=!0x1;if(0x7e==_0x4446ba){_0x5042a1=0xffff;break;}_0x4446ba>=0x5c&&_0x4446ba--,_0x4446ba>=0x22&&_0x4446ba--;let _0x47b131=_0x4446ba-0x20;if(_0x47b131>=0x2e&&(_0x47b131-=0x2e,_0x4b550b=!0x0),_0x5042a1+=_0x47b131,_0x4b550b)break;_0x5042a1*=0x2e;}_0x51b457?_0x51b457[_0x58faad++]=_0x5042a1:_0x51b457=new _0x58592a(_0x5042a1);}return _0x51b457;}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(_0x1a68d5,_0x203bf7){this['input']=_0x1a68d5,this['ranges']=_0x203bf7,this['chunk']='',this['chunkOff']=0x0,this['chunk2']='',this['chunk2Pos']=0x0,this['next']=-0x1,this['token']=nullToken,this['rangeIndex']=0x0,this['pos']=this['chunkPos']=_0x203bf7[0x0]['from'],this['range']=_0x203bf7[0x0],this['end']=_0x203bf7[_0x203bf7['length']-0x1]['to'],this['readNext']();}['resolveOffset'](_0x255da7,_0x5c1a60){let _0x1a3751=this['range'],_0x279977=this['rangeIndex'],_0x34a6a6=this['pos']+_0x255da7;for(;_0x34a6a6<_0x1a3751['from'];){if(!_0x279977)return null;let _0x21331a=this['ranges'][--_0x279977];_0x34a6a6-=_0x1a3751['from']-_0x21331a['to'],_0x1a3751=_0x21331a;}for(;_0x5c1a60<0x0?_0x34a6a6>_0x1a3751['to']:_0x34a6a6>=_0x1a3751['to'];){if(_0x279977==this['ranges']['length']-0x1)return null;let _0x242588=this['ranges'][++_0x279977];_0x34a6a6+=_0x242588['from']-_0x1a3751['to'],_0x1a3751=_0x242588;}return _0x34a6a6;}['clipPos'](_0x11b9ad){if(_0x11b9ad>=this['range']['from']&&_0x11b9ad<this['range']['to'])return _0x11b9ad;for(let _0x1a5eb2 of this['ranges'])if(_0x1a5eb2['to']>_0x11b9ad)return Math['max'](_0x11b9ad,_0x1a5eb2['from']);return this['end'];}['peek'](_0x4f7700){let _0xef27de,_0x58405f,_0x28f161=this['chunkOff']+_0x4f7700;if(_0x28f161>=0x0&&_0x28f161<this['chunk']['length'])_0xef27de=this['pos']+_0x4f7700,_0x58405f=this['chunk']['charCodeAt'](_0x28f161);else{let _0x3b2be5=this['resolveOffset'](_0x4f7700,0x1);if(null==_0x3b2be5)return-0x1;if(_0xef27de=_0x3b2be5,_0xef27de>=this['chunk2Pos']&&_0xef27de<this['chunk2Pos']+this['chunk2']['length'])_0x58405f=this['chunk2']['charCodeAt'](_0xef27de-this['chunk2Pos']);else{let _0x3a78b9=this['rangeIndex'],_0x37de6b=this['range'];for(;_0x37de6b['to']<=_0xef27de;)_0x37de6b=this['ranges'][++_0x3a78b9];this['chunk2']=this['input']['chunk'](this['chunk2Pos']=_0xef27de),_0xef27de+this['chunk2']['length']>_0x37de6b['to']&&(this['chunk2']=this['chunk2']['slice'](0x0,_0x37de6b['to']-_0xef27de)),_0x58405f=this['chunk2']['charCodeAt'](0x0);}}return _0xef27de>=this['token']['lookAhead']&&(this['token']['lookAhead']=_0xef27de+0x1),_0x58405f;}['acceptToken'](_0x1cad26,_0x11a99e=0x0){let _0x46f866=_0x11a99e?this['resolveOffset'](_0x11a99e,-0x1):this['pos'];if(null==_0x46f866||_0x46f866<this['token']['start'])throw new RangeError('Token\x20end\x20out\x20of\x20bounds');this['token']['value']=_0x1cad26,this['token']['end']=_0x46f866;}['acceptTokenTo'](_0x4f8dfd,_0x23f98f){this['token']['value']=_0x4f8dfd,this['token']['end']=_0x23f98f;}['getChunk'](){if(this['pos']>=this['chunk2Pos']&&this['pos']<this['chunk2Pos']+this['chunk2']['length']){let {chunk:_0xc6582,chunkPos:_0x7506e5}=this;this['chunk']=this['chunk2'],this['chunkPos']=this['chunk2Pos'],this['chunk2']=_0xc6582,this['chunk2Pos']=_0x7506e5,this['chunkOff']=this['pos']-this['chunkPos'];}else{this['chunk2']=this['chunk'],this['chunk2Pos']=this['chunkPos'];let _0x37828d=this['input']['chunk'](this['pos']),_0x47bd59=this['pos']+_0x37828d['length'];this['chunk']=_0x47bd59>this['range']['to']?_0x37828d['slice'](0x0,this['range']['to']-this['pos']):_0x37828d,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'](_0x20c4c2=0x1){for(this['chunkOff']+=_0x20c4c2;this['pos']+_0x20c4c2>=this['range']['to'];){if(this['rangeIndex']==this['ranges']['length']-0x1)return this['setDone']();_0x20c4c2-=this['range']['to']-this['pos'],this['range']=this['ranges'][++this['rangeIndex']],this['pos']=this['range']['from'];}return this['pos']+=_0x20c4c2,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'](_0x3b9bc5,_0x22818c){if(_0x22818c?(this['token']=_0x22818c,_0x22818c['start']=_0x3b9bc5,_0x22818c['lookAhead']=_0x3b9bc5+0x1,_0x22818c['value']=_0x22818c['extended']=-0x1):this['token']=nullToken,this['pos']!=_0x3b9bc5){if(this['pos']=_0x3b9bc5,_0x3b9bc5==this['end'])return this['setDone'](),this;for(;_0x3b9bc5<this['range']['from'];)this['range']=this['ranges'][--this['rangeIndex']];for(;_0x3b9bc5>=this['range']['to'];)this['range']=this['ranges'][++this['rangeIndex']];_0x3b9bc5>=this['chunkPos']&&_0x3b9bc5<this['chunkPos']+this['chunk']['length']?this['chunkOff']=_0x3b9bc5-this['chunkPos']:(this['chunk']='',this['chunkOff']=0x0),this['readNext']();}return this;}['read'](_0x52e0a4,_0x35f007){if(_0x52e0a4>=this['chunkPos']&&_0x35f007<=this['chunkPos']+this['chunk']['length'])return this['chunk']['slice'](_0x52e0a4-this['chunkPos'],_0x35f007-this['chunkPos']);if(_0x52e0a4>=this['chunk2Pos']&&_0x35f007<=this['chunk2Pos']+this['chunk2']['length'])return this['chunk2']['slice'](_0x52e0a4-this['chunk2Pos'],_0x35f007-this['chunk2Pos']);if(_0x52e0a4>=this['range']['from']&&_0x35f007<=this['range']['to'])return this['input']['read'](_0x52e0a4,_0x35f007);let _0x367e21='';for(let _0xcbb318 of this['ranges']){if(_0xcbb318['from']>=_0x35f007)break;_0xcbb318['to']>_0x52e0a4&&(_0x367e21+=this['input']['read'](Math['max'](_0xcbb318['from'],_0x52e0a4),Math['min'](_0xcbb318['to'],_0x35f007)));}return _0x367e21;}}class TokenGroup{constructor(_0x36ef64,_0x470868){this['data']=_0x36ef64,this['id']=_0x470868;}['token'](_0x4c6ee0,_0x467e51){let {parser:_0x8356b3}=_0x467e51['p'];readToken(this['data'],_0x4c6ee0,_0x467e51,this['id'],_0x8356b3['data'],_0x8356b3['tokenPrecTable']);}}TokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class LocalTokenGroup{constructor(_0x506461,_0x1e2550,_0x3adb2b){this['precTable']=_0x1e2550,this['elseToken']=_0x3adb2b,this['data']='string'==typeof _0x506461?decodeArray(_0x506461):_0x506461;}['token'](_0x47b9e7,_0x5476ea){let _0x4d1ef2=_0x47b9e7['pos'],_0x221992=0x0;for(;;){let _0x26f499=_0x47b9e7['next']<0x0,_0x576d69=_0x47b9e7['resolveOffset'](0x1,0x1);if(readToken(this['data'],_0x47b9e7,_0x5476ea,0x0,this['data'],this['precTable']),_0x47b9e7['token']['value']>-0x1)break;if(null==this['elseToken'])return;if(_0x26f499||_0x221992++,null==_0x576d69)break;_0x47b9e7['reset'](_0x576d69,_0x47b9e7['token']);}_0x221992&&(_0x47b9e7['reset'](_0x4d1ef2,_0x47b9e7['token']),_0x47b9e7['acceptToken'](this['elseToken'],_0x221992));}}LocalTokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class ExternalTokenizer{constructor(_0x67e5a4,_0x95b93c={}){this['token']=_0x67e5a4,this['contextual']=!!_0x95b93c['contextual'],this['fallback']=!!_0x95b93c['fallback'],this['extend']=!!_0x95b93c['extend'];}}function readToken(_0x1c945e,_0x4871e4,_0x3fb843,_0x3c26cc,_0x545470,_0xedd4f2){let _0x32d451=0x0,_0x416ad5=0x1<<_0x3c26cc,{dialect:_0x18d779}=_0x3fb843['p']['parser'];t:for(;0x0!=(_0x416ad5&_0x1c945e[_0x32d451]);){let _0x19121a=_0x1c945e[_0x32d451+0x1];for(let _0xf237ce=_0x32d451+0x3;_0xf237ce<_0x19121a;_0xf237ce+=0x2)if((_0x1c945e[_0xf237ce+0x1]&_0x416ad5)>0x0){let _0x42b10f=_0x1c945e[_0xf237ce];if(_0x18d779['allows'](_0x42b10f)&&(-0x1==_0x4871e4['token']['value']||_0x4871e4['token']['value']==_0x42b10f||overrides(_0x42b10f,_0x4871e4['token']['value'],_0x545470,_0xedd4f2))){_0x4871e4['acceptToken'](_0x42b10f);break;}}let _0x3dd928=_0x4871e4['next'],_0x213793=0x0,_0x2d1dae=_0x1c945e[_0x32d451+0x2];if(!(_0x4871e4['next']<0x0&&_0x2d1dae>_0x213793&&0xffff==_0x1c945e[_0x19121a+0x3*_0x2d1dae-0x3])){for(;_0x213793<_0x2d1dae;){let _0x4d1cd3=_0x213793+_0x2d1dae>>0x1,_0x2453d4=_0x19121a+_0x4d1cd3+(_0x4d1cd3<<0x1),_0x314238=_0x1c945e[_0x2453d4],_0x3e1647=_0x1c945e[_0x2453d4+0x1]||0x10000;if(_0x3dd928<_0x314238)_0x2d1dae=_0x4d1cd3;else{if(!(_0x3dd928>=_0x3e1647)){_0x32d451=_0x1c945e[_0x2453d4+0x2],_0x4871e4['advance']();continue t;}_0x213793=_0x4d1cd3+0x1;}}break;}_0x32d451=_0x1c945e[_0x19121a+0x3*_0x2d1dae-0x1];}}function findOffset(_0x323966,_0x10e668,_0x5a274c){for(let _0x57b6c8,_0x119ba0=_0x10e668;0xffff!=(_0x57b6c8=_0x323966[_0x119ba0]);_0x119ba0++)if(_0x57b6c8==_0x5a274c)return _0x119ba0-_0x10e668;return-0x1;}function overrides(_0x436e6f,_0x5d0b03,_0x5f6f45,_0x4e236c){let _0x319dbd=findOffset(_0x5f6f45,_0x4e236c,_0x5d0b03);return _0x319dbd<0x0||findOffset(_0x5f6f45,_0x4e236c,_0x436e6f)<_0x319dbd;}const verbose='undefined'!=typeof process&&process['env']&&/\bparse\b/['test'](process['env']['LOG']);let stackIDs=null;function cutAt(_0x37cf4e,_0x414c09,_0x258bae){let _0x254609=_0x37cf4e['cursor'](IterMode['IncludeAnonymous']);for(_0x254609['moveTo'](_0x414c09);;)if(!(_0x258bae<0x0?_0x254609['childBefore'](_0x414c09):_0x254609['childAfter'](_0x414c09)))for(;;){if((_0x258bae<0x0?_0x254609['to']<_0x414c09:_0x254609['from']>_0x414c09)&&!_0x254609['type']['isError'])return _0x258bae<0x0?Math['max'](0x0,Math['min'](_0x254609['to']-0x1,_0x414c09-0x19)):Math['min'](_0x37cf4e['length'],Math['max'](_0x254609['from']+0x1,_0x414c09+0x19));if(_0x258bae<0x0?_0x254609['prevSibling']():_0x254609['nextSibling']())break;if(!_0x254609['parent']())return _0x258bae<0x0?0x0:_0x37cf4e['length'];}}let FragmentCursor$1=class{constructor(_0xe8353b,_0x1b35a8){this['fragments']=_0xe8353b,this['nodeSet']=_0x1b35a8,this['i']=0x0,this['fragment']=null,this['safeFrom']=-0x1,this['safeTo']=-0x1,this['trees']=[],this['start']=[],this['index']=[],this['nextFragment']();}['nextFragment'](){let _0x349a6a=this['fragment']=this['i']==this['fragments']['length']?null:this['fragments'][this['i']++];if(_0x349a6a){for(this['safeFrom']=_0x349a6a['openStart']?cutAt(_0x349a6a['tree'],_0x349a6a['from']+_0x349a6a['offset'],0x1)-_0x349a6a['offset']:_0x349a6a['from'],this['safeTo']=_0x349a6a['openEnd']?cutAt(_0x349a6a['tree'],_0x349a6a['to']+_0x349a6a['offset'],-0x1)-_0x349a6a['offset']:_0x349a6a['to'];this['trees']['length'];)this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();this['trees']['push'](_0x349a6a['tree']),this['start']['push'](-_0x349a6a['offset']),this['index']['push'](0x0),this['nextStart']=this['safeFrom'];}else this['nextStart']=0x3b9aca00;}['nodeAt'](_0x40a048){if(_0x40a048<this['nextStart'])return null;for(;this['fragment']&&this['safeTo']<=_0x40a048;)this['nextFragment']();if(!this['fragment'])return null;for(;;){let _0x1b8a28=this['trees']['length']-0x1;if(_0x1b8a28<0x0)return this['nextFragment'](),null;let _0xe21eaa=this['trees'][_0x1b8a28],_0x2957c0=this['index'][_0x1b8a28];if(_0x2957c0==_0xe21eaa['children']['length']){this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();continue;}let _0x2a88f6=_0xe21eaa['children'][_0x2957c0],_0x1d7797=this['start'][_0x1b8a28]+_0xe21eaa['positions'][_0x2957c0];if(_0x1d7797>_0x40a048)return this['nextStart']=_0x1d7797,null;if(_0x2a88f6 instanceof Tree){if(_0x1d7797==_0x40a048){if(_0x1d7797<this['safeFrom'])return null;let _0x29ba3a=_0x1d7797+_0x2a88f6['length'];if(_0x29ba3a<=this['safeTo']){let _0x158250=_0x2a88f6['prop'](NodeProp['lookAhead']);if(!_0x158250||_0x29ba3a+_0x158250<this['fragment']['to'])return _0x2a88f6;}}this['index'][_0x1b8a28]++,_0x1d7797+_0x2a88f6['length']>=Math['max'](this['safeFrom'],_0x40a048)&&(this['trees']['push'](_0x2a88f6),this['start']['push'](_0x1d7797),this['index']['push'](0x0));}else this['index'][_0x1b8a28]++,this['nextStart']=_0x1d7797+_0x2a88f6['length'];}}};class TokenCache{constructor(_0x328941,_0x17eb8d){this['stream']=_0x17eb8d,this['tokens']=[],this['mainToken']=null,this['actions']=[],this['tokens']=_0x328941['tokenizers']['map'](_0x476357=>new CachedToken());}['getActions'](_0x1d01c7){let _0x295dc0=0x0,_0x1cd082=null,{parser:_0x3af38b}=_0x1d01c7['p'],{tokenizers:_0x133899}=_0x3af38b,_0x49741e=_0x3af38b['stateSlot'](_0x1d01c7['state'],0x3),_0x347661=_0x1d01c7['curContext']?_0x1d01c7['curContext']['hash']:0x0,_0x1f573a=0x0;for(let _0x5e3886=0x0;_0x5e3886<_0x133899['length'];_0x5e3886++){if(!(0x1<<_0x5e3886&_0x49741e))continue;let _0x51742b=_0x133899[_0x5e3886],_0x5baba1=this['tokens'][_0x5e3886];if((!_0x1cd082||_0x51742b['fallback'])&&((_0x51742b['contextual']||_0x5baba1['start']!=_0x1d01c7['pos']||_0x5baba1['mask']!=_0x49741e||_0x5baba1['context']!=_0x347661)&&(this['updateCachedToken'](_0x5baba1,_0x51742b,_0x1d01c7),_0x5baba1['mask']=_0x49741e,_0x5baba1['context']=_0x347661),_0x5baba1['lookAhead']>_0x5baba1['end']+0x19&&(_0x1f573a=Math['max'](_0x5baba1['lookAhead'],_0x1f573a)),0x0!=_0x5baba1['value'])){let _0x402128=_0x295dc0;if(_0x5baba1['extended']>-0x1&&(_0x295dc0=this['addActions'](_0x1d01c7,_0x5baba1['extended'],_0x5baba1['end'],_0x295dc0)),_0x295dc0=this['addActions'](_0x1d01c7,_0x5baba1['value'],_0x5baba1['end'],_0x295dc0),!_0x51742b['extend']&&(_0x1cd082=_0x5baba1,_0x295dc0>_0x402128))break;}}for(;this['actions']['length']>_0x295dc0;)this['actions']['pop']();return _0x1f573a&&_0x1d01c7['setLookAhead'](_0x1f573a),_0x1cd082||_0x1d01c7['pos']!=this['stream']['end']||(_0x1cd082=new CachedToken(),_0x1cd082['value']=_0x1d01c7['p']['parser']['eofTerm'],_0x1cd082['start']=_0x1cd082['end']=_0x1d01c7['pos'],_0x295dc0=this['addActions'](_0x1d01c7,_0x1cd082['value'],_0x1cd082['end'],_0x295dc0)),this['mainToken']=_0x1cd082,this['actions'];}['getMainToken'](_0x28fb34){if(this['mainToken'])return this['mainToken'];let _0xb3528a=new CachedToken(),{pos:_0x2f4831,p:_0x4b0134}=_0x28fb34;return _0xb3528a['start']=_0x2f4831,_0xb3528a['end']=Math['min'](_0x2f4831+0x1,_0x4b0134['stream']['end']),_0xb3528a['value']=_0x2f4831==_0x4b0134['stream']['end']?_0x4b0134['parser']['eofTerm']:0x0,_0xb3528a;}['updateCachedToken'](_0x12780b,_0x314693,_0x21fb2c){let _0x5e8985=this['stream']['clipPos'](_0x21fb2c['pos']);if(_0x314693['token'](this['stream']['reset'](_0x5e8985,_0x12780b),_0x21fb2c),_0x12780b['value']>-0x1){let {parser:_0x28a7ae}=_0x21fb2c['p'];for(let _0x5af55c=0x0;_0x5af55c<_0x28a7ae['specialized']['length'];_0x5af55c++)if(_0x28a7ae['specialized'][_0x5af55c]==_0x12780b['value']){let _0x357427=_0x28a7ae['specializers'][_0x5af55c](this['stream']['read'](_0x12780b['start'],_0x12780b['end']),_0x21fb2c);if(_0x357427>=0x0&&_0x21fb2c['p']['parser']['dialect']['allows'](_0x357427>>0x1)){0x1&_0x357427?_0x12780b['extended']=_0x357427>>0x1:_0x12780b['value']=_0x357427>>0x1;break;}}}else _0x12780b['value']=0x0,_0x12780b['end']=this['stream']['clipPos'](_0x5e8985+0x1);}['putAction'](_0x5233a9,_0x144138,_0x1cc08a,_0x28375f){for(let _0xdef576=0x0;_0xdef576<_0x28375f;_0xdef576+=0x3)if(this['actions'][_0xdef576]==_0x5233a9)return _0x28375f;return this['actions'][_0x28375f++]=_0x5233a9,this['actions'][_0x28375f++]=_0x144138,this['actions'][_0x28375f++]=_0x1cc08a,_0x28375f;}['addActions'](_0x17654e,_0x27cc38,_0x3c976e,_0x820329){let {state:_0xae7ab4}=_0x17654e,{parser:_0x4f0758}=_0x17654e['p'],{data:_0x1bcdc8}=_0x4f0758;for(let _0x369a52=0x0;_0x369a52<0x2;_0x369a52++)for(let _0x129269=_0x4f0758['stateSlot'](_0xae7ab4,_0x369a52?0x2:0x1);;_0x129269+=0x3){if(0xffff==_0x1bcdc8[_0x129269]){if(0x1!=_0x1bcdc8[_0x129269+0x1]){0x0==_0x820329&&0x2==_0x1bcdc8[_0x129269+0x1]&&(_0x820329=this['putAction'](pair(_0x1bcdc8,_0x129269+0x2),_0x27cc38,_0x3c976e,_0x820329));break;}_0x129269=pair(_0x1bcdc8,_0x129269+0x2);}_0x1bcdc8[_0x129269]==_0x27cc38&&(_0x820329=this['putAction'](pair(_0x1bcdc8,_0x129269+0x1),_0x27cc38,_0x3c976e,_0x820329));}return _0x820329;}}class Parse{constructor(_0xb35f9,_0x12c8d6,_0x244632,_0x5de9cc){this['parser']=_0xb35f9,this['input']=_0x12c8d6,this['ranges']=_0x5de9cc,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(_0x12c8d6,_0x5de9cc),this['tokens']=new TokenCache(_0xb35f9,this['stream']),this['topTerm']=_0xb35f9['top'][0x1];let {from:_0x14939c}=_0x5de9cc[0x0];this['stacks']=[Stack['start'](this,_0xb35f9['top'][0x0],_0x14939c)],this['fragments']=_0x244632['length']&&this['stream']['end']-_0x14939c>0x4*_0xb35f9['bufferLength']?new FragmentCursor$1(_0x244632,_0xb35f9['nodeSet']):null;}get['parsedPos'](){return this['minStackPos'];}['advance'](){let _0x33fda3,_0x447528,_0x525482=this['stacks'],_0x3d2c5f=this['minStackPos'],_0x38f4aa=this['stacks']=[];if(this['bigReductionCount']>0x12c&&0x1==_0x525482['length']){let [_0x19b3ab]=_0x525482;for(;_0x19b3ab['forceReduce']()&&_0x19b3ab['stack']['length']&&_0x19b3ab['stack'][_0x19b3ab['stack']['length']-0x2]>=this['lastBigReductionStart'];);this['bigReductionCount']=this['lastBigReductionSize']=0x0;}for(let _0x353ded=0x0;_0x353ded<_0x525482['length'];_0x353ded++){let _0xeea1f1=_0x525482[_0x353ded];for(;;){if(this['tokens']['mainToken']=null,_0xeea1f1['pos']>_0x3d2c5f)_0x38f4aa['push'](_0xeea1f1);else{if(this['advanceStack'](_0xeea1f1,_0x38f4aa,_0x525482))continue;{_0x33fda3||(_0x33fda3=[],_0x447528=[]),_0x33fda3['push'](_0xeea1f1);let _0x330cd5=this['tokens']['getMainToken'](_0xeea1f1);_0x447528['push'](_0x330cd5['value'],_0x330cd5['end']);}}break;}}if(!_0x38f4aa['length']){let _0x401178=_0x33fda3&&findFinished(_0x33fda3);if(_0x401178)return verbose&&console['log']('Finish\x20with\x20'+this['stackID'](_0x401178)),this['stackToTree'](_0x401178);if(this['parser']['strict'])throw verbose&&_0x33fda3&&console['log']('Stuck\x20with\x20token\x20'+(this['tokens']['mainToken']?this['parser']['getName'](this['tokens']['mainToken']['value']):'none')),new SyntaxError('No\x20parse\x20at\x20'+_0x3d2c5f);this['recovering']||(this['recovering']=0x5);}if(this['recovering']&&_0x33fda3){let _0xc7b319=null!=this['stoppedAt']&&_0x33fda3[0x0]['pos']>this['stoppedAt']?_0x33fda3[0x0]:this['runRecovery'](_0x33fda3,_0x447528,_0x38f4aa);if(_0xc7b319)return verbose&&console['log']('Force-finish\x20'+this['stackID'](_0xc7b319)),this['stackToTree'](_0xc7b319['forceAll']());}if(this['recovering']){let _0x3431b8=0x1==this['recovering']?0x1:0x3*this['recovering'];if(_0x38f4aa['length']>_0x3431b8){for(_0x38f4aa['sort']((_0x1cbea9,_0xc09572)=>_0xc09572['score']-_0x1cbea9['score']);_0x38f4aa['length']>_0x3431b8;)_0x38f4aa['pop']();}_0x38f4aa['some'](_0x5bc59a=>_0x5bc59a['reducePos']>_0x3d2c5f)&&this['recovering']--;}else{if(_0x38f4aa['length']>0x1){t:for(let _0x2cb3c2=0x0;_0x2cb3c2<_0x38f4aa['length']-0x1;_0x2cb3c2++){let _0x2e71da=_0x38f4aa[_0x2cb3c2];for(let _0x4997b8=_0x2cb3c2+0x1;_0x4997b8<_0x38f4aa['length'];_0x4997b8++){let _0x1b154e=_0x38f4aa[_0x4997b8];if(_0x2e71da['sameState'](_0x1b154e)||_0x2e71da['buffer']['length']>0x1f4&&_0x1b154e['buffer']['length']>0x1f4){if(!((_0x2e71da['score']-_0x1b154e['score']||_0x2e71da['buffer']['length']-_0x1b154e['buffer']['length'])>0x0)){_0x38f4aa['splice'](_0x2cb3c2--,0x1);continue t;}_0x38f4aa['splice'](_0x4997b8--,0x1);}}}_0x38f4aa['length']>0xc&&_0x38f4aa['splice'](0xc,_0x38f4aa['length']-0xc);}}this['minStackPos']=_0x38f4aa[0x0]['pos'];for(let _0xb4d091=0x1;_0xb4d091<_0x38f4aa['length'];_0xb4d091++)_0x38f4aa[_0xb4d091]['pos']<this['minStackPos']&&(this['minStackPos']=_0x38f4aa[_0xb4d091]['pos']);return null;}['stopAt'](_0x51d20f){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x51d20f)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x51d20f;}['advanceStack'](_0x3ecd56,_0xae8816,_0x1fef97){let _0x2b0669=_0x3ecd56['pos'],{parser:_0x596563}=this,_0x198841=verbose?this['stackID'](_0x3ecd56)+'\x20->\x20':'';if(null!=this['stoppedAt']&&_0x2b0669>this['stoppedAt'])return _0x3ecd56['forceReduce']()?_0x3ecd56:null;if(this['fragments']){let _0x3b8324=_0x3ecd56['curContext']&&_0x3ecd56['curContext']['tracker']['strict'],_0x125c24=_0x3b8324?_0x3ecd56['curContext']['hash']:0x0;for(let _0x1eaf06=this['fragments']['nodeAt'](_0x2b0669);_0x1eaf06;){let _0x2b9192=this['parser']['nodeSet']['types'][_0x1eaf06['type']['id']]==_0x1eaf06['type']?_0x596563['getGoto'](_0x3ecd56['state'],_0x1eaf06['type']['id']):-0x1;if(_0x2b9192>-0x1&&_0x1eaf06['length']&&(!_0x3b8324||(_0x1eaf06['prop'](NodeProp['contextHash'])||0x0)==_0x125c24))return _0x3ecd56['useNode'](_0x1eaf06,_0x2b9192),verbose&&console['log'](_0x198841+this['stackID'](_0x3ecd56)+('\x20(via\x20reuse\x20of\x20'+_0x596563['getName'](_0x1eaf06['type']['id'])+')')),!0x0;if(!(_0x1eaf06 instanceof Tree)||0x0==_0x1eaf06['children']['length']||_0x1eaf06['positions'][0x0]>0x0)break;let _0x337023=_0x1eaf06['children'][0x0];if(!(_0x337023 instanceof Tree&&0x0==_0x1eaf06['positions'][0x0]))break;_0x1eaf06=_0x337023;}}let _0x11fcb9=_0x596563['stateSlot'](_0x3ecd56['state'],0x4);if(_0x11fcb9>0x0)return _0x3ecd56['reduce'](_0x11fcb9),verbose&&console['log'](_0x198841+this['stackID'](_0x3ecd56)+('\x20(via\x20always-reduce\x20'+_0x596563['getName'](0xffff&_0x11fcb9)+')')),!0x0;if(_0x3ecd56['stack']['length']>=0x20d0){for(;_0x3ecd56['stack']['length']>0x1770&&_0x3ecd56['forceReduce'](););}let _0x2f1aa8=this['tokens']['getActions'](_0x3ecd56);for(let _0xd53806=0x0;_0xd53806<_0x2f1aa8['length'];){let _0x19daff=_0x2f1aa8[_0xd53806++],_0x5dbceb=_0x2f1aa8[_0xd53806++],_0x3c8f21=_0x2f1aa8[_0xd53806++],_0x39aee6=_0xd53806==_0x2f1aa8['length']||!_0x1fef97,_0x45bb26=_0x39aee6?_0x3ecd56:_0x3ecd56['split'](),_0x25cc28=this['tokens']['mainToken'];if(_0x45bb26['apply'](_0x19daff,_0x5dbceb,_0x25cc28?_0x25cc28['start']:_0x45bb26['pos'],_0x3c8f21),verbose&&console['log'](_0x198841+this['stackID'](_0x45bb26)+('\x20(via\x20'+(0x10000&_0x19daff?'reduce\x20of\x20'+_0x596563['getName'](0xffff&_0x19daff):'shift')+'\x20for\x20'+_0x596563['getName'](_0x5dbceb)+'\x20@\x20'+_0x2b0669+(_0x45bb26==_0x3ecd56?'':',\x20split')+')')),_0x39aee6)return!0x0;_0x45bb26['pos']>_0x2b0669?_0xae8816['push'](_0x45bb26):_0x1fef97['push'](_0x45bb26);}return!0x1;}['advanceFully'](_0x39167f,_0x5d5cbd){let _0x299ee4=_0x39167f['pos'];for(;;){if(!this['advanceStack'](_0x39167f,null,null))return!0x1;if(_0x39167f['pos']>_0x299ee4)return pushStackDedup(_0x39167f,_0x5d5cbd),!0x0;}}['runRecovery'](_0xd7c935,_0x551969,_0x13aeba){let _0x5748dd=null,_0x5ecfd2=!0x1;for(let _0x47a6b8=0x0;_0x47a6b8<_0xd7c935['length'];_0x47a6b8++){let _0x1414bb=_0xd7c935[_0x47a6b8],_0x174de8=_0x551969[_0x47a6b8<<0x1],_0x1ec728=_0x551969[0x1+(_0x47a6b8<<0x1)],_0x4e17e9=verbose?this['stackID'](_0x1414bb)+'\x20->\x20':'';if(_0x1414bb['deadEnd']){if(_0x5ecfd2)continue;if(_0x5ecfd2=!0x0,_0x1414bb['restart'](),verbose&&console['log'](_0x4e17e9+this['stackID'](_0x1414bb)+'\x20(restarted)'),this['advanceFully'](_0x1414bb,_0x13aeba))continue;}let _0x4182a1=_0x1414bb['split'](),_0x132c22=_0x4e17e9;for(let _0x1f3905=0x0;_0x1f3905<0xa&&_0x4182a1['forceReduce']();_0x1f3905++){if(verbose&&console['log'](_0x132c22+this['stackID'](_0x4182a1)+'\x20(via\x20force-reduce)'),this['advanceFully'](_0x4182a1,_0x13aeba))break;verbose&&(_0x132c22=this['stackID'](_0x4182a1)+'\x20->\x20');}for(let _0xfd3f77 of _0x1414bb['recoverByInsert'](_0x174de8))verbose&&console['log'](_0x4e17e9+this['stackID'](_0xfd3f77)+'\x20(via\x20recover-insert)'),this['advanceFully'](_0xfd3f77,_0x13aeba);this['stream']['end']>_0x1414bb['pos']?(_0x1ec728==_0x1414bb['pos']&&(_0x1ec728++,_0x174de8=0x0),_0x1414bb['recoverByDelete'](_0x174de8,_0x1ec728),verbose&&console['log'](_0x4e17e9+this['stackID'](_0x1414bb)+('\x20(via\x20recover-delete\x20'+this['parser']['getName'](_0x174de8)+')')),pushStackDedup(_0x1414bb,_0x13aeba)):(!_0x5748dd||_0x5748dd['score']<_0x1414bb['score'])&&(_0x5748dd=_0x1414bb);}return _0x5748dd;}['stackToTree'](_0x407568){return _0x407568['close'](),Tree['build']({'buffer':StackBufferCursor['create'](_0x407568),'nodeSet':this['parser']['nodeSet'],'topID':this['topTerm'],'maxBufferLength':this['parser']['bufferLength'],'reused':this['reused'],'start':this['ranges'][0x0]['from'],'length':_0x407568['pos']-this['ranges'][0x0]['from'],'minRepeatType':this['parser']['minRepeatTerm']});}['stackID'](_0x2a74d4){let _0x2c99b6=(stackIDs||(stackIDs=new WeakMap()))['get'](_0x2a74d4);return _0x2c99b6||stackIDs['set'](_0x2a74d4,_0x2c99b6=String['fromCodePoint'](this['nextStackID']++)),_0x2c99b6+_0x2a74d4;}}function pushStackDedup(_0x359119,_0x449598){for(let _0x231f53=0x0;_0x231f53<_0x449598['length'];_0x231f53++){let _0x555511=_0x449598[_0x231f53];if(_0x555511['pos']==_0x359119['pos']&&_0x555511['sameState'](_0x359119))return void(_0x449598[_0x231f53]['score']<_0x359119['score']&&(_0x449598[_0x231f53]=_0x359119));}_0x449598['push'](_0x359119);}class Dialect{constructor(_0x584daf,_0x1e42d1,_0x5c2315){this['source']=_0x584daf,this['flags']=_0x1e42d1,this['disabled']=_0x5c2315;}['allows'](_0x299937){return!this['disabled']||0x0==this['disabled'][_0x299937];}}const id=_0x3e6f36=>_0x3e6f36;class ContextTracker{constructor(_0x5ed04f){this['start']=_0x5ed04f['start'],this['shift']=_0x5ed04f['shift']||id,this['reduce']=_0x5ed04f['reduce']||id,this['reuse']=_0x5ed04f['reuse']||id,this['hash']=_0x5ed04f['hash']||(()=>0x0),this['strict']=!0x1!==_0x5ed04f['strict'];}}class LRParser extends Parser{constructor(_0x4e9ba9){if(super(),this['wrappers']=[],0xe!=_0x4e9ba9['version'])throw new RangeError('Parser\x20version\x20('+_0x4e9ba9['version']+')\x20doesn\x27t\x20match\x20runtime\x20version\x20(14)');let _0x305d61=_0x4e9ba9['nodeNames']['split']('\x20');this['minRepeatTerm']=_0x305d61['length'];for(let _0x3db0d7=0x0;_0x3db0d7<_0x4e9ba9['repeatNodeCount'];_0x3db0d7++)_0x305d61['push']('');let _0x176858=Object['keys'](_0x4e9ba9['topRules'])['map'](_0x572207=>_0x4e9ba9['topRules'][_0x572207][0x1]),_0x4a6b8c=[];for(let _0x46faa3=0x0;_0x46faa3<_0x305d61['length'];_0x46faa3++)_0x4a6b8c['push']([]);function _0x378d2f(_0x3cc789,_0x28be95,_0x2701b3){_0x4a6b8c[_0x3cc789]['push']([_0x28be95,_0x28be95['deserialize'](String(_0x2701b3))]);}if(_0x4e9ba9['nodeProps'])for(let _0x3e88c7 of _0x4e9ba9['nodeProps']){let _0x425c55=_0x3e88c7[0x0];'string'==typeof _0x425c55&&(_0x425c55=NodeProp[_0x425c55]);for(let _0x423438=0x1;_0x423438<_0x3e88c7['length'];){let _0x332c7b=_0x3e88c7[_0x423438++];if(_0x332c7b>=0x0)_0x378d2f(_0x332c7b,_0x425c55,_0x3e88c7[_0x423438++]);else{let _0x3925fa=_0x3e88c7[_0x423438+-_0x332c7b];for(let _0x20f9a3=-_0x332c7b;_0x20f9a3>0x0;_0x20f9a3--)_0x378d2f(_0x3e88c7[_0x423438++],_0x425c55,_0x3925fa);_0x423438++;}}}this['nodeSet']=new NodeSet(_0x305d61['map']((_0x2fa4a7,_0x5c15e6)=>NodeType['define']({'name':_0x5c15e6>=this['minRepeatTerm']?void 0x0:_0x2fa4a7,'id':_0x5c15e6,'props':_0x4a6b8c[_0x5c15e6],'top':_0x176858['indexOf'](_0x5c15e6)>-0x1,'error':0x0==_0x5c15e6,'skipped':_0x4e9ba9['skippedNodes']&&_0x4e9ba9['skippedNodes']['indexOf'](_0x5c15e6)>-0x1}))),_0x4e9ba9['propSources']&&(this['nodeSet']=this['nodeSet']['extend'](..._0x4e9ba9['propSources'])),this['strict']=!0x1,this['bufferLength']=DefaultBufferLength;let _0x2a144c=decodeArray(_0x4e9ba9['tokenData']);this['context']=_0x4e9ba9['context'],this['specializerSpecs']=_0x4e9ba9['specialized']||[],this['specialized']=new Uint16Array(this['specializerSpecs']['length']);for(let _0x21e5fe=0x0;_0x21e5fe<this['specializerSpecs']['length'];_0x21e5fe++)this['specialized'][_0x21e5fe]=this['specializerSpecs'][_0x21e5fe]['term'];this['specializers']=this['specializerSpecs']['map'](getSpecializer),this['states']=decodeArray(_0x4e9ba9['states'],Uint32Array),this['data']=decodeArray(_0x4e9ba9['stateData']),this['goto']=decodeArray(_0x4e9ba9['goto']),this['maxTerm']=_0x4e9ba9['maxTerm'],this['tokenizers']=_0x4e9ba9['tokenizers']['map'](_0x4b77d7=>'number'==typeof _0x4b77d7?new TokenGroup(_0x2a144c,_0x4b77d7):_0x4b77d7),this['topRules']=_0x4e9ba9['topRules'],this['dialects']=_0x4e9ba9['dialects']||{},this['dynamicPrecedences']=_0x4e9ba9['dynamicPrecedences']||null,this['tokenPrecTable']=_0x4e9ba9['tokenPrec'],this['termNames']=_0x4e9ba9['termNames']||null,this['maxNode']=this['nodeSet']['types']['length']-0x1,this['dialect']=this['parseDialect'](),this['top']=this['topRules'][Object['keys'](this['topRules'])[0x0]];}['createParse'](_0x418a08,_0x2740cb,_0x68c043){let _0x212819=new Parse(this,_0x418a08,_0x2740cb,_0x68c043);for(let _0x31df4e of this['wrappers'])_0x212819=_0x31df4e(_0x212819,_0x418a08,_0x2740cb,_0x68c043);return _0x212819;}['getGoto'](_0x5dca75,_0x5bc0e0,_0x1e79fa=!0x1){let _0x15d0b5=this['goto'];if(_0x5bc0e0>=_0x15d0b5[0x0])return-0x1;for(let _0x44dc0f=_0x15d0b5[_0x5bc0e0+0x1];;){let _0x3b3dfd=_0x15d0b5[_0x44dc0f++],_0x5c57a0=0x1&_0x3b3dfd,_0x47f68c=_0x15d0b5[_0x44dc0f++];if(_0x5c57a0&&_0x1e79fa)return _0x47f68c;for(let _0x42c8a1=_0x44dc0f+(_0x3b3dfd>>0x1);_0x44dc0f<_0x42c8a1;_0x44dc0f++)if(_0x15d0b5[_0x44dc0f]==_0x5dca75)return _0x47f68c;if(_0x5c57a0)return-0x1;}}['hasAction'](_0x74e6fe,_0x3da43a){let _0x458728=this['data'];for(let _0xbe514c=0x0;_0xbe514c<0x2;_0xbe514c++)for(let _0x36a338,_0xb853dd=this['stateSlot'](_0x74e6fe,_0xbe514c?0x2:0x1);;_0xb853dd+=0x3){if(0xffff==(_0x36a338=_0x458728[_0xb853dd])){if(0x1!=_0x458728[_0xb853dd+0x1]){if(0x2==_0x458728[_0xb853dd+0x1])return pair(_0x458728,_0xb853dd+0x2);break;}_0x36a338=_0x458728[_0xb853dd=pair(_0x458728,_0xb853dd+0x2)];}if(_0x36a338==_0x3da43a||0x0==_0x36a338)return pair(_0x458728,_0xb853dd+0x1);}return 0x0;}['stateSlot'](_0x53c66e,_0x4850fe){return this['states'][0x6*_0x53c66e+_0x4850fe];}['stateFlag'](_0x1c5b42,_0x1ab086){return(this['stateSlot'](_0x1c5b42,0x0)&_0x1ab086)>0x0;}['validAction'](_0x1ba6ef,_0x391f9d){return!!this['allActions'](_0x1ba6ef,_0x5c940b=>_0x5c940b==_0x391f9d||null);}['allActions'](_0x3da4c7,_0x19d783){let _0x3b6ed5=this['stateSlot'](_0x3da4c7,0x4),_0x45c045=_0x3b6ed5?_0x19d783(_0x3b6ed5):void 0x0;for(let _0x320203=this['stateSlot'](_0x3da4c7,0x1);null==_0x45c045;_0x320203+=0x3){if(0xffff==this['data'][_0x320203]){if(0x1!=this['data'][_0x320203+0x1])break;_0x320203=pair(this['data'],_0x320203+0x2);}_0x45c045=_0x19d783(pair(this['data'],_0x320203+0x1));}return _0x45c045;}['nextStates'](_0x4e2016){let _0x2942cd=[];for(let _0xa2367d=this['stateSlot'](_0x4e2016,0x1);;_0xa2367d+=0x3){if(0xffff==this['data'][_0xa2367d]){if(0x1!=this['data'][_0xa2367d+0x1])break;_0xa2367d=pair(this['data'],_0xa2367d+0x2);}if(!(0x1&this['data'][_0xa2367d+0x2])){let _0x3c1309=this['data'][_0xa2367d+0x1];_0x2942cd['some']((_0x5a200e,_0x1b7b33)=>0x1&_0x1b7b33&&_0x5a200e==_0x3c1309)||_0x2942cd['push'](this['data'][_0xa2367d],_0x3c1309);}}return _0x2942cd;}['configure'](_0x15bd21){let _0xc68165=Object['assign'](Object['create'](LRParser['prototype']),this);if(_0x15bd21['props']&&(_0xc68165['nodeSet']=this['nodeSet']['extend'](..._0x15bd21['props'])),_0x15bd21['top']){let _0x381221=this['topRules'][_0x15bd21['top']];if(!_0x381221)throw new RangeError('Invalid\x20top\x20rule\x20name\x20'+_0x15bd21['top']);_0xc68165['top']=_0x381221;}return _0x15bd21['tokenizers']&&(_0xc68165['tokenizers']=this['tokenizers']['map'](t=>{let _0x501183=_0x15bd21['tokenizers']['find'](_0x664c95=>_0x664c95['from']==t);return _0x501183?_0x501183['to']:t;})),_0x15bd21['specializers']&&(_0xc68165['specializers']=this['specializers']['slice'](),_0xc68165['specializerSpecs']=this['specializerSpecs']['map']((_0xf44a11,_0x2a5d78)=>{let _0x4a2ed6=_0x15bd21['specializers']['find'](_0x6d709b=>_0x6d709b['from']==_0xf44a11['external']);if(!_0x4a2ed6)return _0xf44a11;let _0x45838e=Object['assign'](Object['assign']({},_0xf44a11),{'external':_0x4a2ed6['to']});return _0xc68165['specializers'][_0x2a5d78]=getSpecializer(_0x45838e),_0x45838e;})),_0x15bd21['contextTracker']&&(_0xc68165['context']=_0x15bd21['contextTracker']),_0x15bd21['dialect']&&(_0xc68165['dialect']=this['parseDialect'](_0x15bd21['dialect'])),null!=_0x15bd21['strict']&&(_0xc68165['strict']=_0x15bd21['strict']),_0x15bd21['wrap']&&(_0xc68165['wrappers']=_0xc68165['wrappers']['concat'](_0x15bd21['wrap'])),null!=_0x15bd21['bufferLength']&&(_0xc68165['bufferLength']=_0x15bd21['bufferLength']),_0xc68165;}['hasWrappers'](){return this['wrappers']['length']>0x0;}['getName'](_0x1cf8c9){return this['termNames']?this['termNames'][_0x1cf8c9]:String(_0x1cf8c9<=this['maxNode']&&this['nodeSet']['types'][_0x1cf8c9]['name']||_0x1cf8c9);}get['eofTerm'](){return this['maxNode']+0x1;}get['topNode'](){return this['nodeSet']['types'][this['top'][0x1]];}['dynamicPrecedence'](_0x3c222b){let _0x2597c1=this['dynamicPrecedences'];return null==_0x2597c1?0x0:_0x2597c1[_0x3c222b]||0x0;}['parseDialect'](_0x238a20){let _0x290715=Object['keys'](this['dialects']),_0x191664=_0x290715['map'](()=>!0x1);if(_0x238a20)for(let _0x38186c of _0x238a20['split']('\x20')){let _0xb18e1a=_0x290715['indexOf'](_0x38186c);_0xb18e1a>=0x0&&(_0x191664[_0xb18e1a]=!0x0);}let _0x2d697c=null;for(let _0x5bddd5=0x0;_0x5bddd5<_0x290715['length'];_0x5bddd5++)if(!_0x191664[_0x5bddd5]){for(let _0x3b7c59,_0x24611e=this['dialects'][_0x290715[_0x5bddd5]];0xffff!=(_0x3b7c59=this['data'][_0x24611e++]);)(_0x2d697c||(_0x2d697c=new Uint8Array(this['maxTerm']+0x1)))[_0x3b7c59]=0x1;}return new Dialect(_0x238a20,_0x191664,_0x2d697c);}static['deserialize'](_0x1d4612){return new LRParser(_0x1d4612);}}function pair(_0x2f9cf2,_0x519066){return _0x2f9cf2[_0x519066]|_0x2f9cf2[_0x519066+0x1]<<0x10;}function findFinished(_0x9ee95c){let _0x3f6784=null;for(let _0x37fb1d of _0x9ee95c){let _0x65c876=_0x37fb1d['p']['stoppedAt'];(_0x37fb1d['pos']==_0x37fb1d['p']['stream']['end']||null!=_0x65c876&&_0x37fb1d['pos']>_0x65c876)&&_0x37fb1d['p']['parser']['stateFlag'](_0x37fb1d['state'],0x2)&&(!_0x3f6784||_0x3f6784['score']<_0x37fb1d['score'])&&(_0x3f6784=_0x37fb1d);}return _0x3f6784;}function getSpecializer(_0x334352){if(_0x334352['external']){let _0x5bf81b=_0x334352['extend']?0x1:0x0;return(_0x258412,_0x38d03e)=>_0x334352['external'](_0x258412,_0x38d03e)<<0x1|_0x5bf81b;}return _0x334352['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(_0x23664e){return 0x2d==_0x23664e||0x2e==_0x23664e||0x3a==_0x23664e||_0x23664e>=0x41&&_0x23664e<=0x5a||0x5f==_0x23664e||_0x23664e>=0x61&&_0x23664e<=0x7a||_0x23664e>=0xa1;}let cachedName=null,cachedInput=null,cachedPos=0x0;function tagNameAfter(_0x7ee2fa,_0x5790ec){let _0x43e5f8=_0x7ee2fa['pos']+_0x5790ec;if(cachedPos==_0x43e5f8&&cachedInput==_0x7ee2fa)return cachedName;let _0x1345b0=_0x7ee2fa['peek'](_0x5790ec),_0x2a2b83='';for(;nameChar(_0x1345b0);)_0x2a2b83+=String['fromCharCode'](_0x1345b0),_0x1345b0=_0x7ee2fa['peek'](++_0x5790ec);return cachedInput=_0x7ee2fa,cachedPos=_0x43e5f8,cachedName=_0x2a2b83?_0x2a2b83['toLowerCase']():_0x1345b0==question$1||_0x1345b0==bang?void 0x0:null;}const lessThan=0x3c,greaterThan=0x3e,slash$1=0x2f,question$1=0x3f,bang=0x21,dash$1=0x2d;function ElementContext(_0x3d6bbd,_0x394c72){this['name']=_0x3d6bbd,this['parent']=_0x394c72;}const startTagTerms=[StartTag,StartSelfClosingTag,StartScriptTag,StartStyleTag,StartTextareaTag],elementContext=new ContextTracker({'start':null,'shift':(_0x47c903,_0x48a5c6,_0x4fdc3e,_0xba97f4)=>startTagTerms['indexOf'](_0x48a5c6)>-0x1?new ElementContext(tagNameAfter(_0xba97f4,0x1)||'',_0x47c903):_0x47c903,'reduce':(_0x2e7c66,_0x514e46)=>_0x514e46==Element$2&&_0x2e7c66?_0x2e7c66['parent']:_0x2e7c66,'reuse'(_0x55d349,_0x33a5c9,_0x14efd9,_0x6cd2ee){let _0x5542e6=_0x33a5c9['type']['id'];return _0x5542e6==StartTag||_0x5542e6==OpenTag?new ElementContext(tagNameAfter(_0x6cd2ee,0x1)||'',_0x55d349):_0x55d349;},'strict':!0x1}),tagStart=new ExternalTokenizer((_0x47aa0f,_0x3fe659)=>{if(_0x47aa0f['next']!=lessThan)return void(_0x47aa0f['next']<0x0&&_0x3fe659['context']&&_0x47aa0f['acceptToken'](missingCloseTag));_0x47aa0f['advance']();let _0x15dc5c=_0x47aa0f['next']==slash$1;_0x15dc5c&&_0x47aa0f['advance']();let _0x19c1c1=tagNameAfter(_0x47aa0f,0x0);if(void 0x0===_0x19c1c1)return;if(!_0x19c1c1)return _0x47aa0f['acceptToken'](_0x15dc5c?IncompleteCloseTag:IncompleteTag);let _0x25f425=_0x3fe659['context']?_0x3fe659['context']['name']:null;if(_0x15dc5c){if(_0x19c1c1==_0x25f425)return _0x47aa0f['acceptToken'](StartCloseTag);if(_0x25f425&&implicitlyClosed[_0x25f425])return _0x47aa0f['acceptToken'](missingCloseTag,-0x2);if(_0x3fe659['dialectEnabled'](Dialect_noMatch))return _0x47aa0f['acceptToken'](NoMatchStartCloseTag);for(let _0x3a5df6=_0x3fe659['context'];_0x3a5df6;_0x3a5df6=_0x3a5df6['parent'])if(_0x3a5df6['name']==_0x19c1c1)return;_0x47aa0f['acceptToken'](MismatchedStartCloseTag);}else{if('script'==_0x19c1c1)return _0x47aa0f['acceptToken'](StartScriptTag);if('style'==_0x19c1c1)return _0x47aa0f['acceptToken'](StartStyleTag);if('textarea'==_0x19c1c1)return _0x47aa0f['acceptToken'](StartTextareaTag);if(selfClosers$1['hasOwnProperty'](_0x19c1c1))return _0x47aa0f['acceptToken'](StartSelfClosingTag);_0x25f425&&closeOnOpen[_0x25f425]&&closeOnOpen[_0x25f425][_0x19c1c1]?_0x47aa0f['acceptToken'](missingCloseTag,-0x1):_0x47aa0f['acceptToken'](StartTag);}},{'contextual':!0x0}),commentContent=new ExternalTokenizer(_0x34b086=>{for(let _0x30eb81=0x0,_0x30934c=0x0;;_0x30934c++){if(_0x34b086['next']<0x0){_0x30934c&&_0x34b086['acceptToken'](commentContent$1);break;}if(_0x34b086['next']==dash$1)_0x30eb81++;else{if(_0x34b086['next']==greaterThan&&_0x30eb81>=0x2){_0x30934c>=0x3&&_0x34b086['acceptToken'](commentContent$1,-0x2);break;}_0x30eb81=0x0;}_0x34b086['advance']();}});function inForeignElement(_0x5300e6){for(;_0x5300e6;_0x5300e6=_0x5300e6['parent'])if('svg'==_0x5300e6['name']||'math'==_0x5300e6['name'])return!0x0;return!0x1;}const endTag=new ExternalTokenizer((_0x53352c,_0x2a425b)=>{if(_0x53352c['next']==slash$1&&_0x53352c['peek'](0x1)==greaterThan){let _0x49cc28=_0x2a425b['dialectEnabled'](Dialect_selfClosing)||inForeignElement(_0x2a425b['context']);_0x53352c['acceptToken'](_0x49cc28?SelfClosingEndTag:EndTag,0x2);}else _0x53352c['next']==greaterThan&&_0x53352c['acceptToken'](EndTag,0x1);});function contentTokenizer(_0x5522c2,_0x706e09,_0x3ace29){let _0x340710=0x2+_0x5522c2['length'];return new ExternalTokenizer(_0x42d815=>{for(let _0x1e84d1=0x0,_0x57006e=0x0,_0x439525=0x0;;_0x439525++){if(_0x42d815['next']<0x0){_0x439525&&_0x42d815['acceptToken'](_0x706e09);break;}if(0x0==_0x1e84d1&&_0x42d815['next']==lessThan||0x1==_0x1e84d1&&_0x42d815['next']==slash$1||_0x1e84d1>=0x2&&_0x1e84d1<_0x340710&&_0x42d815['next']==_0x5522c2['charCodeAt'](_0x1e84d1-0x2))_0x1e84d1++,_0x57006e++;else{if(_0x1e84d1==_0x340710&&_0x42d815['next']==greaterThan){_0x439525>_0x57006e?_0x42d815['acceptToken'](_0x706e09,-_0x57006e):_0x42d815['acceptToken'](_0x3ace29,-(_0x57006e-0x2));break;}if((0xa==_0x42d815['next']||0xd==_0x42d815['next'])&&_0x439525){_0x42d815['acceptToken'](_0x706e09,0x1);break;}_0x1e84d1=_0x57006e=0x0;}_0x42d815['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(_0x360983,_0x40d475){let _0x37c19d=Object['create'](null);for(let _0x2936a3 of _0x360983['getChildren'](Attribute)){let _0x222c73=_0x2936a3['getChild'](AttributeName),_0x100679=_0x2936a3['getChild'](AttributeValue)||_0x2936a3['getChild'](UnquotedAttributeValue);_0x222c73&&(_0x37c19d[_0x40d475['read'](_0x222c73['from'],_0x222c73['to'])]=_0x100679?_0x100679['type']['id']==AttributeValue?_0x40d475['read'](_0x100679['from']+0x1,_0x100679['to']-0x1):_0x40d475['read'](_0x100679['from'],_0x100679['to']):'');}return _0x37c19d;}function findTagName(_0x8760a3,_0x1eefc2){let _0x320d7d=_0x8760a3['getChild'](TagName);return _0x320d7d?_0x1eefc2['read'](_0x320d7d['from'],_0x320d7d['to']):'\x20';}function maybeNest(_0xe68d33,_0x22973d,_0x227438){let _0x1b7565;for(let _0x410ef1 of _0x227438)if(!_0x410ef1['attrs']||_0x410ef1['attrs'](_0x1b7565||(_0x1b7565=getAttrs(_0xe68d33['node']['parent']['firstChild'],_0x22973d))))return{'parser':_0x410ef1['parser']};return null;}function configureNesting(_0x3e47f2=[],_0x347ab9=[]){let _0x39772c=[],_0x10027e=[],_0x2365f3=[],_0x1f18b0=[];for(let _0x4618de of _0x3e47f2){('script'==_0x4618de['tag']?_0x39772c:'style'==_0x4618de['tag']?_0x10027e:'textarea'==_0x4618de['tag']?_0x2365f3:_0x1f18b0)['push'](_0x4618de);}let _0x44b84b=_0x347ab9['length']?Object['create'](null):null;for(let _0x339a50 of _0x347ab9)(_0x44b84b[_0x339a50['name']]||(_0x44b84b[_0x339a50['name']]=[]))['push'](_0x339a50);return parseMixed((_0x301414,_0x1ae048)=>{let _0x494b25=_0x301414['type']['id'];if(_0x494b25==ScriptText)return maybeNest(_0x301414,_0x1ae048,_0x39772c);if(_0x494b25==StyleText)return maybeNest(_0x301414,_0x1ae048,_0x10027e);if(_0x494b25==TextareaText)return maybeNest(_0x301414,_0x1ae048,_0x2365f3);if(_0x494b25==Element$2&&_0x1f18b0['length']){let _0x275cda,_0x352f58=_0x301414['node'],_0x91a877=_0x352f58['firstChild'],_0x369638=_0x91a877&&findTagName(_0x91a877,_0x1ae048);if(_0x369638){for(let _0x491af5 of _0x1f18b0)if(_0x491af5['tag']==_0x369638&&(!_0x491af5['attrs']||_0x491af5['attrs'](_0x275cda||(_0x275cda=getAttrs(_0x91a877,_0x1ae048))))){let _0x29594b=_0x352f58['lastChild'],_0x18ff07=_0x29594b['type']['id']==CloseTag?_0x29594b['from']:_0x352f58['to'];if(_0x18ff07>_0x91a877['to'])return{'parser':_0x491af5['parser'],'overlay':[{'from':_0x91a877['to'],'to':_0x18ff07}]};}}}if(_0x44b84b&&_0x494b25==Attribute){let _0x1a8289,_0x36f908=_0x301414['node'];if(_0x1a8289=_0x36f908['firstChild']){let _0x151f9=_0x44b84b[_0x1ae048['read'](_0x1a8289['from'],_0x1a8289['to'])];if(_0x151f9)for(let _0x19eaf7 of _0x151f9){if(_0x19eaf7['tagName']&&_0x19eaf7['tagName']!=findTagName(_0x36f908['parent'],_0x1ae048))continue;let _0x5b210a=_0x36f908['lastChild'];if(_0x5b210a['type']['id']==AttributeValue){let _0xd54dc4=_0x5b210a['from']+0x1,_0x3af680=_0x5b210a['lastChild'],_0x428410=_0x5b210a['to']-(_0x3af680&&_0x3af680['isError']?0x0:0x1);if(_0x428410>_0xd54dc4)return{'parser':_0x19eaf7['parser'],'overlay':[{'from':_0xd54dc4,'to':_0x428410}]};}else{if(_0x5b210a['type']['id']==UnquotedAttributeValue)return{'parser':_0x19eaf7['parser'],'overlay':[{'from':_0x5b210a['from'],'to':_0x5b210a['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(_0x1d9036){return _0x1d9036>=0x41&&_0x1d9036<=0x5a||_0x1d9036>=0x61&&_0x1d9036<=0x7a||_0x1d9036>=0xa1;}function isDigit(_0x6a5170){return _0x6a5170>=0x30&&_0x6a5170<=0x39;}function isHex(_0x4cc5d7){return isDigit(_0x4cc5d7)||_0x4cc5d7>=0x61&&_0x4cc5d7<=0x66||_0x4cc5d7>=0x41&&_0x4cc5d7<=0x46;}const identifierTokens=(_0x3dac15,_0x2a6fb4,_0x15a246)=>(_0x195cdc,_0x24dcaf)=>{for(let _0x320d43=!0x1,_0x3c1e25=0x0,_0x238c11=0x0;;_0x238c11++){let {next:_0x51021b}=_0x195cdc;if(isAlpha(_0x51021b)||_0x51021b==dash||_0x51021b==underscore||_0x320d43&&isDigit(_0x51021b))!_0x320d43&&(_0x51021b!=dash||_0x238c11>0x0)&&(_0x320d43=!0x0),_0x3c1e25===_0x238c11&&_0x51021b==dash&&_0x3c1e25++,_0x195cdc['advance']();else{if(_0x51021b!=backslash||_0x195cdc['peek'](0x1)==newline$1){_0x320d43&&_0x195cdc['acceptToken'](0x2==_0x3c1e25&&_0x24dcaf['canShift'](VariableName)?_0x2a6fb4:_0x51021b==parenL?_0x15a246:_0x3dac15);break;}if(_0x195cdc['advance'](),isHex(_0x195cdc['next'])){do{_0x195cdc['advance']();}while(isHex(_0x195cdc['next']));0x20==_0x195cdc['next']&&_0x195cdc['advance']();}else _0x195cdc['next']>-0x1&&_0x195cdc['advance']();_0x320d43=!0x0;}}},identifiers=new ExternalTokenizer(identifierTokens(identifier$2,VariableName,callee)),queryIdentifiers=new ExternalTokenizer(identifierTokens(queryIdentifier,queryVariableName,QueryCallee)),descendant=new ExternalTokenizer(_0x4c616e=>{if(space$2['includes'](_0x4c616e['peek'](-0x1))){let {next:_0x5db44b}=_0x4c616e;(isAlpha(_0x5db44b)||_0x5db44b==underscore||_0x5db44b==hash||_0x5db44b==period||_0x5db44b==asterisk||_0x5db44b==bracketL$1||_0x5db44b==colon&&isAlpha(_0x4c616e['peek'](0x1))||_0x5db44b==dash||_0x5db44b==ampersand)&&_0x4c616e['acceptToken'](descendantOp);}}),unitToken=new ExternalTokenizer(_0x4be0e3=>{if(!space$2['includes'](_0x4be0e3['peek'](-0x1))){let {next:_0xc2283}=_0x4be0e3;if(_0xc2283==percent&&(_0x4be0e3['advance'](),_0x4be0e3['acceptToken'](Unit)),isAlpha(_0xc2283)){do{_0x4be0e3['advance']();}while(isAlpha(_0x4be0e3['next'])||isDigit(_0x4be0e3['next']));_0x4be0e3['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':_0x2f1dc6=>spec_callee[_0x2f1dc6]||-0x1},{'term':0x7d,'get':_0x3d11c5=>spec_queryIdentifier[_0x3d11c5]||-0x1},{'term':0x4,'get':_0x56f949=>spec_QueryCallee[_0x56f949]||-0x1},{'term':0x19,'get':_0x45a0f2=>spec_AtKeyword[_0x45a0f2]||-0x1},{'term':0x7b,'get':_0x5afcac=>spec_identifier$1[_0x5afcac]||-0x1}],'tokenPrec':0x7ab});let _properties=null;function properties(){if(!_properties&&'object'==typeof document&&document['body']){let {style:_0x1449db}=document['body'],_0x2545fc=[],_0x3f0148=new Set();for(let _0x3ba4c7 in _0x1449db)'cssText'!=_0x3ba4c7&&'cssFloat'!=_0x3ba4c7&&'string'==typeof _0x1449db[_0x3ba4c7]&&(/[A-Z]/['test'](_0x3ba4c7)&&(_0x3ba4c7=_0x3ba4c7['replace'](/[A-Z]/g,_0x3e22a7=>'-'+_0x3e22a7['toLowerCase']())),_0x3f0148['has'](_0x3ba4c7)||(_0x2545fc['push'](_0x3ba4c7),_0x3f0148['add'](_0x3ba4c7)));_properties=_0x2545fc['sort']()['map'](_0x147c2a=>({'type':'property','label':_0x147c2a,'apply':_0x147c2a+':\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'](_0x251da6=>({'type':'class','label':_0x251da6})),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'](_0x25a3de=>({'type':'keyword','label':_0x25a3de}))['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'](_0xecc3b9=>({'type':'constant','label':_0xecc3b9}))),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'](_0x545fa2=>({'type':'type','label':_0x545fa2})),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'](_0x1aa114=>({'type':'keyword','label':_0x1aa114})),identifier$1=/^(\w[\w-]*|-\w[\w-]*|)$/,variable=/^-(-[\w-]*)?$/;function isVarArg(_0x191bbe,_0x10d631){var _0x2692f7;if(('('==_0x191bbe['name']||_0x191bbe['type']['isError'])&&(_0x191bbe=_0x191bbe['parent']||_0x191bbe),'ArgList'!=_0x191bbe['name'])return!0x1;let _0x48b1ff=null===(_0x2692f7=_0x191bbe['parent'])||void 0x0===_0x2692f7?void 0x0:_0x2692f7['firstChild'];return'Callee'==(null==_0x48b1ff?void 0x0:_0x48b1ff['name'])&&'var'==_0x10d631['sliceString'](_0x48b1ff['from'],_0x48b1ff['to']);}const VariablesByNode=new NodeWeakMap(),declSelector=['Declaration'];function astTop(_0x5aaedc){for(let _0xfb62f0=_0x5aaedc;;){if(_0xfb62f0['type']['isTop'])return _0xfb62f0;if(!(_0xfb62f0=_0xfb62f0['parent']))return _0x5aaedc;}}function variableNames(_0x3a2433,_0x23b767,_0x3b82a4){if(_0x23b767['to']-_0x23b767['from']>0x1000){let _0x451dc0=VariablesByNode['get'](_0x23b767);if(_0x451dc0)return _0x451dc0;let _0x3bb884=[],_0x28117f=new Set(),_0xb87332=_0x23b767['cursor'](IterMode['IncludeAnonymous']);if(_0xb87332['firstChild']())do{for(let _0x1d1284 of variableNames(_0x3a2433,_0xb87332['node'],_0x3b82a4))_0x28117f['has'](_0x1d1284['label'])||(_0x28117f['add'](_0x1d1284['label']),_0x3bb884['push'](_0x1d1284));}while(_0xb87332['nextSibling']());return VariablesByNode['set'](_0x23b767,_0x3bb884),_0x3bb884;}{let _0x3fbe45=[],_0x3c5ca3=new Set();return _0x23b767['cursor']()['iterate'](_0x2033b7=>{var _0x309045;if(_0x3b82a4(_0x2033b7)&&_0x2033b7['matchContext'](declSelector)&&':'==(null===(_0x309045=_0x2033b7['node']['nextSibling'])||void 0x0===_0x309045?void 0x0:_0x309045['name'])){let _0x51bbd2=_0x3a2433['sliceString'](_0x2033b7['from'],_0x2033b7['to']);_0x3c5ca3['has'](_0x51bbd2)||(_0x3c5ca3['add'](_0x51bbd2),_0x3fbe45['push']({'label':_0x51bbd2,'type':'variable'}));}}),_0x3fbe45;}}const defineCSSCompletionSource=_0x4de963=>_0xdd4187=>{let {state:_0x10fa52,pos:_0x57b60e}=_0xdd4187,_0x23a863=syntaxTree(_0x10fa52)['resolveInner'](_0x57b60e,-0x1),_0x2547b5=_0x23a863['type']['isError']&&_0x23a863['from']==_0x23a863['to']-0x1&&'-'==_0x10fa52['doc']['sliceString'](_0x23a863['from'],_0x23a863['to']);if('PropertyName'==_0x23a863['name']||(_0x2547b5||'TagName'==_0x23a863['name'])&&/^(Block|Styles)$/['test'](_0x23a863['resolve'](_0x23a863['to'])['name']))return{'from':_0x23a863['from'],'options':properties(),'validFor':identifier$1};if('ValueName'==_0x23a863['name'])return{'from':_0x23a863['from'],'options':values,'validFor':identifier$1};if('PseudoClassName'==_0x23a863['name'])return{'from':_0x23a863['from'],'options':pseudoClasses,'validFor':identifier$1};if(_0x4de963(_0x23a863)||(_0xdd4187['explicit']||_0x2547b5)&&isVarArg(_0x23a863,_0x10fa52['doc']))return{'from':_0x4de963(_0x23a863)||_0x2547b5?_0x23a863['from']:_0x57b60e,'options':variableNames(_0x10fa52['doc'],astTop(_0x23a863),_0x4de963),'validFor':variable};if('TagName'==_0x23a863['name']){for(let {parent:_0x2fc702}=_0x23a863;_0x2fc702;_0x2fc702=_0x2fc702['parent'])if('Block'==_0x2fc702['name'])return{'from':_0x23a863['from'],'options':properties(),'validFor':identifier$1};return{'from':_0x23a863['from'],'options':tags,'validFor':identifier$1};}if('AtKeyword'==_0x23a863['name'])return{'from':_0x23a863['from'],'options':atRules,'validFor':identifier$1};if(!_0xdd4187['explicit'])return null;let _0x5cb907=_0x23a863['resolve'](_0x57b60e),_0x12c4ef=_0x5cb907['childBefore'](_0x57b60e);return _0x12c4ef&&':'==_0x12c4ef['name']&&'PseudoClassSelector'==_0x5cb907['name']?{'from':_0x57b60e,'options':pseudoClasses,'validFor':identifier$1}:_0x12c4ef&&':'==_0x12c4ef['name']&&'Declaration'==_0x5cb907['name']||'ArgList'==_0x5cb907['name']?{'from':_0x57b60e,'options':values,'validFor':identifier$1}:'Block'==_0x5cb907['name']||'Styles'==_0x5cb907['name']?{'from':_0x57b60e,'options':properties(),'validFor':identifier$1}:null;},cssCompletionSource=defineCSSCompletionSource(_0x53c682=>'VariableName'==_0x53c682['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':(_0x4de911,_0xd95689)=>_0xd95689==LineComment||_0xd95689==BlockComment||_0xd95689==spaces?_0x4de911:_0xd95689==newline,'strict':!0x1}),insertSemicolon=new ExternalTokenizer((_0x2b300f,_0x21aa7a)=>{let {next:_0x428273}=_0x2b300f;(_0x428273==braceR||-0x1==_0x428273||_0x21aa7a['context'])&&_0x2b300f['acceptToken'](insertSemi);},{'contextual':!0x0,'fallback':!0x0}),noSemicolon=new ExternalTokenizer((_0x328182,_0x5bffaa)=>{let _0x14e5db,{next:_0x4f4608}=_0x328182;space$1['indexOf'](_0x4f4608)>-0x1||(_0x4f4608!=slash||(_0x14e5db=_0x328182['peek'](0x1))!=slash&&_0x14e5db!=star)&&(_0x4f4608==braceR||_0x4f4608==semicolon||-0x1==_0x4f4608||_0x5bffaa['context']||_0x328182['acceptToken'](noSemi));},{'contextual':!0x0}),noSemicolonType=new ExternalTokenizer((_0x2cf9e5,_0x144736)=>{_0x2cf9e5['next']!=bracketL||_0x144736['context']||_0x2cf9e5['acceptToken'](noSemiType);},{'contextual':!0x0}),operatorToken=new ExternalTokenizer((_0x16a03d,_0x2ae69f)=>{let {next:_0x2f312e}=_0x16a03d;if(_0x2f312e==plus||_0x2f312e==minus){if(_0x16a03d['advance'](),_0x2f312e==_0x16a03d['next']){_0x16a03d['advance']();let _0x43a640=!_0x2ae69f['context']&&_0x2ae69f['canShift'](incdec);_0x16a03d['acceptToken'](_0x43a640?incdec:incdecPrefix);}}else _0x2f312e==question&&_0x16a03d['peek'](0x1)==dot&&(_0x16a03d['advance'](),_0x16a03d['advance'](),(_0x16a03d['next']<0x30||_0x16a03d['next']>0x39)&&_0x16a03d['acceptToken'](questionDot));},{'contextual':!0x0});function identifierChar(_0x2f878a,_0x40882d){return _0x2f878a>=0x41&&_0x2f878a<=0x5a||_0x2f878a>=0x61&&_0x2f878a<=0x7a||0x5f==_0x2f878a||_0x2f878a>=0xc0||!_0x40882d&&_0x2f878a>=0x30&&_0x2f878a<=0x39;}const jsx=new ExternalTokenizer((_0x12d00d,_0x40ba04)=>{if(_0x12d00d['next']!=lt||!_0x40ba04['dialectEnabled'](Dialect_jsx))return;if(_0x12d00d['advance'](),_0x12d00d['next']==slash)return;let _0x931d9c=0x0;for(;space$1['indexOf'](_0x12d00d['next'])>-0x1;)_0x12d00d['advance'](),_0x931d9c++;if(identifierChar(_0x12d00d['next'],!0x0)){for(_0x12d00d['advance'](),_0x931d9c++;identifierChar(_0x12d00d['next'],!0x1);)_0x12d00d['advance'](),_0x931d9c++;for(;space$1['indexOf'](_0x12d00d['next'])>-0x1;)_0x12d00d['advance'](),_0x931d9c++;if(_0x12d00d['next']==comma)return;for(let _0x3995a0=0x0;;_0x3995a0++){if(0x7==_0x3995a0){if(!identifierChar(_0x12d00d['next'],!0x0))return;break;}if(_0x12d00d['next']!='extends'['charCodeAt'](_0x3995a0))break;_0x12d00d['advance'](),_0x931d9c++;}}_0x12d00d['acceptToken'](JSXStartTag,-_0x931d9c);}),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':_0x4befed=>spec_identifier[_0x4befed]||-0x1},{'term':0x157,'get':_0xbb54dd=>spec_word[_0xbb54dd]||-0x1},{'term':0x5f,'get':_0x2daea0=>spec_LessThan[_0x2daea0]||-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(_0x58da1e){return(_0x1ae6c1,_0x18e2ed)=>{let _0x368262=_0x1ae6c1['node']['getChild']('VariableDefinition');return _0x368262&&_0x18e2ed(_0x368262,_0x58da1e),!0x0;};}const functionContext=['FunctionDeclaration'],gatherCompletions={'FunctionDeclaration':defID('function'),'ClassDeclaration':defID('class'),'ClassExpression':()=>!0x0,'EnumDeclaration':defID('constant'),'TypeAliasDeclaration':defID('type'),'NamespaceDeclaration':defID('namespace'),'VariableDefinition'(_0xfd1e24,_0x9cf4be){_0xfd1e24['matchContext'](functionContext)||_0x9cf4be(_0xfd1e24,'variable');},'TypeDefinition'(_0x27b65e,_0x4c8ddd){_0x4c8ddd(_0x27b65e,'type');},'__proto__':null};function getScope(_0x2389c8,_0x16d952){let _0x1137d4=cache['get'](_0x16d952);if(_0x1137d4)return _0x1137d4;let _0xd2a16e=[],_0x1ce939=!0x0;function _0xf7d25d(_0x4bb051,_0x20b47a){let _0x568b6d=_0x2389c8['sliceString'](_0x4bb051['from'],_0x4bb051['to']);_0xd2a16e['push']({'label':_0x568b6d,'type':_0x20b47a});}return _0x16d952['cursor'](IterMode['IncludeAnonymous'])['iterate'](_0x5d81e7=>{if(_0x1ce939)_0x1ce939=!0x1;else{if(_0x5d81e7['name']){let _0x208269=gatherCompletions[_0x5d81e7['name']];if(_0x208269&&_0x208269(_0x5d81e7,_0xf7d25d)||ScopeNodes['has'](_0x5d81e7['name']))return!0x1;}else{if(_0x5d81e7['to']-_0x5d81e7['from']>0x2000){for(let _0x571690 of getScope(_0x2389c8,_0x5d81e7['node']))_0xd2a16e['push'](_0x571690);return!0x1;}}}}),cache['set'](_0x16d952,_0xd2a16e),_0xd2a16e;}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(_0x74c4e1){let _0x101cef=syntaxTree(_0x74c4e1['state'])['resolveInner'](_0x74c4e1['pos'],-0x1);if(dontComplete['indexOf'](_0x101cef['name'])>-0x1)return null;let _0x1214c5='VariableName'==_0x101cef['name']||_0x101cef['to']-_0x101cef['from']<0x14&&Identifier['test'](_0x74c4e1['state']['sliceDoc'](_0x101cef['from'],_0x101cef['to']));if(!_0x1214c5&&!_0x74c4e1['explicit'])return null;let _0x5d76dc=[];for(let _0x98fa51=_0x101cef;_0x98fa51;_0x98fa51=_0x98fa51['parent'])ScopeNodes['has'](_0x98fa51['name'])&&(_0x5d76dc=_0x5d76dc['concat'](getScope(_0x74c4e1['state']['doc'],_0x98fa51)));return{'options':_0x5d76dc,'from':_0x1214c5?_0x101cef['from']:_0x74c4e1['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':_0x594819=>{let _0xbdef1e=_0x594819['textAfter'],_0x4e4ae5=/^\s*\}/['test'](_0xbdef1e),_0x43d561=/^\s*(case|default)\b/['test'](_0xbdef1e);return _0x594819['baseIndent']+(_0x4e4ae5?0x0:_0x43d561?0x1:0x2)*_0x594819['unit'];},'Block':delimitedIndent({'closing':'}'}),'ArrowFunction':_0xc41ea5=>_0xc41ea5['baseIndent']+_0xc41ea5['unit'],'TemplateString\x20BlockComment':()=>null,'Statement\x20Property':continuedIndent({'except':/^\s*{/}),'JSXElement'(_0x457a77){let _0x31c8ca=/^\s*<\//['test'](_0x457a77['textAfter']);return _0x457a77['lineIndent'](_0x457a77['node']['from'])+(_0x31c8ca?0x0:_0x457a77['unit']);},'JSXEscape'(_0x1a68b7){let _0x443aff=/\s*\}/['test'](_0x1a68b7['textAfter']);return _0x1a68b7['lineIndent'](_0x1a68b7['node']['from'])+(_0x443aff?0x0:_0x1a68b7['unit']);},'JSXOpenTag\x20JSXSelfClosingTag':_0x5273f6=>_0x5273f6['column'](_0x5273f6['node']['from'])+_0x5273f6['unit']}),foldNodeProp['add']({'Block\x20ClassBody\x20SwitchBody\x20EnumBody\x20ObjectExpression\x20ArrayExpression\x20ObjectType':foldInside,'BlockComment':_0x5506c6=>({'from':_0x5506c6['from']+0x2,'to':_0x5506c6['to']-0x2})})]}),'languageData':{'closeBrackets':{'brackets':['(','[','{','\x27','\x22','`']},'commentTokens':{'line':'//','block':{'open':'/*','close':'*/'}},'indentOnInput':/^\s*(?:case |default:|\{|\}|<\/)$/,'wordChars':'$'}}),jsxSublanguage={'test':_0x4a0c6c=>/^JSX/['test'](_0x4a0c6c['name']),'facet':defineLanguageFacet({'commentTokens':{'block':{'open':'{/*','close':'*/}'}}})},typescriptLanguage=javascriptLanguage['configure']({'dialect':'ts'},'typescript'),jsxLanguage=javascriptLanguage['configure']({'dialect':'jsx','props':[sublanguageProp['add'](_0x484cbc=>_0x484cbc['isTop']?[jsxSublanguage]:void 0x0)]}),tsxLanguage=javascriptLanguage['configure']({'dialect':'jsx\x20ts','props':[sublanguageProp['add'](_0x292fee=>_0x292fee['isTop']?[jsxSublanguage]:void 0x0)]},'typescript');let kwCompletion=_0x1c3158=>({'label':_0x1c3158,'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(_0x50d134={}){let _0xfaa72f=_0x50d134['jsx']?_0x50d134['typescript']?tsxLanguage:jsxLanguage:_0x50d134['typescript']?typescriptLanguage:javascriptLanguage,_0x4299d2=_0x50d134['typescript']?typescriptSnippets['concat'](typescriptKeywords):snippets['concat'](keywords);return new LanguageSupport(_0xfaa72f,[javascriptLanguage['data']['of']({'autocomplete':ifNotIn(dontComplete,completeFromList(_0x4299d2))}),javascriptLanguage['data']['of']({'autocomplete':localCompletionSource}),_0x50d134['jsx']?autoCloseTags$1:[]]);}function findOpenTag(_0x5dc462){for(;;){if('JSXOpenTag'==_0x5dc462['name']||'JSXSelfClosingTag'==_0x5dc462['name']||'JSXFragmentTag'==_0x5dc462['name'])return _0x5dc462;if('JSXEscape'==_0x5dc462['name']||!_0x5dc462['parent'])return null;_0x5dc462=_0x5dc462['parent'];}}function elementName$1(_0x277b1d,_0x348e8a,_0xb7edbf=_0x277b1d['length']){for(let _0x546e1d=null==_0x348e8a?void 0x0:_0x348e8a['firstChild'];_0x546e1d;_0x546e1d=_0x546e1d['nextSibling'])if('JSXIdentifier'==_0x546e1d['name']||'JSXBuiltin'==_0x546e1d['name']||'JSXNamespacedName'==_0x546e1d['name']||'JSXMemberExpression'==_0x546e1d['name'])return _0x277b1d['sliceString'](_0x546e1d['from'],Math['min'](_0x546e1d['to'],_0xb7edbf));return'';}const android='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),autoCloseTags$1=EditorView['inputHandler']['of']((_0x2127f9,_0x36cb9b,_0x5d384b,_0x2953ac,_0x4d6d0f)=>{if((android?_0x2127f9['composing']:_0x2127f9['compositionStarted'])||_0x2127f9['state']['readOnly']||_0x36cb9b!=_0x5d384b||'>'!=_0x2953ac&&'/'!=_0x2953ac||!javascriptLanguage['isActiveAt'](_0x2127f9['state'],_0x36cb9b,-0x1))return!0x1;let _0x4db1a2=_0x4d6d0f(),{state:_0x774f75}=_0x4db1a2,_0x43f5e0=_0x774f75['changeByRange'](_0x192db9=>{var _0x786cd7;let _0x5cd088,{head:_0x58791b}=_0x192db9,_0x29278f=syntaxTree(_0x774f75)['resolveInner'](_0x58791b-0x1,-0x1);if('JSXStartTag'==_0x29278f['name']&&(_0x29278f=_0x29278f['parent']),_0x774f75['doc']['sliceString'](_0x58791b-0x1,_0x58791b)!=_0x2953ac||'JSXAttributeValue'==_0x29278f['name']&&_0x29278f['to']>_0x58791b);else{if('>'==_0x2953ac&&'JSXFragmentTag'==_0x29278f['name'])return{'range':_0x192db9,'changes':{'from':_0x58791b,'insert':'</>'}};if('/'==_0x2953ac&&'JSXStartCloseTag'==_0x29278f['name']){let _0x4fe36f=_0x29278f['parent'],_0x1eb1c9=_0x4fe36f['parent'];if(_0x1eb1c9&&_0x4fe36f['from']==_0x58791b-0x2&&((_0x5cd088=elementName$1(_0x774f75['doc'],_0x1eb1c9['firstChild'],_0x58791b))||'JSXFragmentTag'==(null===(_0x786cd7=_0x1eb1c9['firstChild'])||void 0x0===_0x786cd7?void 0x0:_0x786cd7['name']))){let _0xc1dd10=_0x5cd088+'>';return{'range':EditorSelection['cursor'](_0x58791b+_0xc1dd10['length'],-0x1),'changes':{'from':_0x58791b,'insert':_0xc1dd10}};}}else{if('>'==_0x2953ac){let _0xe2815=findOpenTag(_0x29278f);if(_0xe2815&&'JSXOpenTag'==_0xe2815['name']&&!/^\/?>|^<\//['test'](_0x774f75['doc']['sliceString'](_0x58791b,_0x58791b+0x2))&&(_0x5cd088=elementName$1(_0x774f75['doc'],_0xe2815,_0x58791b)))return{'range':_0x192db9,'changes':{'from':_0x58791b,'insert':'</'+_0x5cd088+'>'}};}}}return{'range':_0x192db9};});return!_0x43f5e0['changes']['empty']&&(_0x2127f9['dispatch']([_0x4db1a2,_0x774f75['update'](_0x43f5e0,{'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'](_0x3b21a7=>'on'+_0x3b21a7);for(let e of eventAttributes)GlobalAttrs[e]=null;class Schema{constructor(_0x4352f3,_0x18c09a){this['tags']={...Tags,..._0x4352f3},this['globalAttrs']={...GlobalAttrs,..._0x18c09a},this['allTags']=Object['keys'](this['tags']),this['globalAttrNames']=Object['keys'](this['globalAttrs']);}}function elementName(_0x1830dc,_0x272b35,_0xe2cf48=_0x1830dc['length']){if(!_0x272b35)return'';let _0x3fd87e=_0x272b35['firstChild'],_0x14d92f=_0x3fd87e&&_0x3fd87e['getChild']('TagName');return _0x14d92f?_0x1830dc['sliceString'](_0x14d92f['from'],Math['min'](_0x14d92f['to'],_0xe2cf48)):'';}function findParentElement(_0x18ff74,_0x4bd636=!0x1){for(;_0x18ff74;_0x18ff74=_0x18ff74['parent'])if('Element'==_0x18ff74['name']){if(!_0x4bd636)return _0x18ff74;_0x4bd636=!0x1;}return null;}function allowedChildren(_0x18a081,_0x4c6e38,_0x105069){let _0x5ad89c=_0x105069['tags'][elementName(_0x18a081,findParentElement(_0x4c6e38))];return(null==_0x5ad89c?void 0x0:_0x5ad89c['children'])||_0x105069['allTags'];}function openTags(_0xe08c91,_0x30beae){let _0x35c380=[];for(let _0x7caeb0=findParentElement(_0x30beae);_0x7caeb0&&!_0x7caeb0['type']['isTop'];_0x7caeb0=findParentElement(_0x7caeb0['parent'])){let _0x1d117b=elementName(_0xe08c91,_0x7caeb0);if(_0x1d117b&&'CloseTag'==_0x7caeb0['lastChild']['name'])break;_0x1d117b&&_0x35c380['indexOf'](_0x1d117b)<0x0&&('EndTag'==_0x30beae['name']||_0x30beae['from']>=_0x7caeb0['firstChild']['to'])&&_0x35c380['push'](_0x1d117b);}return _0x35c380;}Schema['default']=new Schema();const identifier=/^[:\-\.\w\u00b7-\uffff]*$/;function completeTag(_0x213242,_0x582a58,_0x5b027d,_0x8cea23,_0x1a283b){let _0x4084b5=/\s*>/['test'](_0x213242['sliceDoc'](_0x1a283b,_0x1a283b+0x5))?'':'>',_0x5a8eaa=findParentElement(_0x5b027d,'StartTag'==_0x5b027d['name']||'TagName'==_0x5b027d['name']);return{'from':_0x8cea23,'to':_0x1a283b,'options':allowedChildren(_0x213242['doc'],_0x5a8eaa,_0x582a58)['map'](_0x4caab5=>({'label':_0x4caab5,'type':'type'}))['concat'](openTags(_0x213242['doc'],_0x5b027d)['map']((_0x2febe4,_0x52515b)=>({'label':'/'+_0x2febe4,'apply':'/'+_0x2febe4+_0x4084b5,'type':'type','boost':0x63-_0x52515b}))),'validFor':/^\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeCloseTag(_0x160c43,_0x3d2899,_0x1ca71a,_0x586af3){let _0x57d77d=/\s*>/['test'](_0x160c43['sliceDoc'](_0x586af3,_0x586af3+0x5))?'':'>';return{'from':_0x1ca71a,'to':_0x586af3,'options':openTags(_0x160c43['doc'],_0x3d2899)['map']((_0x546b6c,_0x1c02ff)=>({'label':_0x546b6c,'apply':_0x546b6c+_0x57d77d,'type':'type','boost':0x63-_0x1c02ff})),'validFor':identifier};}function completeStartTag(_0x40a4ff,_0x4d8d4c,_0x5686f2,_0x50153c){let _0x3bffbd=[],_0x507f66=0x0;for(let _0x121b59 of allowedChildren(_0x40a4ff['doc'],_0x5686f2,_0x4d8d4c))_0x3bffbd['push']({'label':'<'+_0x121b59,'type':'type'});for(let _0x748643 of openTags(_0x40a4ff['doc'],_0x5686f2))_0x3bffbd['push']({'label':'</'+_0x748643+'>','type':'type','boost':0x63-_0x507f66++});return{'from':_0x50153c,'to':_0x50153c,'options':_0x3bffbd,'validFor':/^<\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeAttrName(_0x1be2c0,_0x16639b,_0x18c920,_0x1de5c2,_0x2d2417){let _0x2c33b9=findParentElement(_0x18c920),_0xfbd932=_0x2c33b9?_0x16639b['tags'][elementName(_0x1be2c0['doc'],_0x2c33b9)]:null,_0xd158c7=_0xfbd932&&_0xfbd932['attrs']?Object['keys'](_0xfbd932['attrs']):[];return{'from':_0x1de5c2,'to':_0x2d2417,'options':(_0xfbd932&&!0x1===_0xfbd932['globalAttrs']?_0xd158c7:_0xd158c7['length']?_0xd158c7['concat'](_0x16639b['globalAttrNames']):_0x16639b['globalAttrNames'])['map'](_0x4c94dc=>({'label':_0x4c94dc,'type':'property'})),'validFor':identifier};}function completeAttrValue(_0x4b629c,_0x1cf03a,_0x2caa17,_0x4b084b,_0x27ef82){var _0xf851bf;let _0x5033c8,_0x331dba=null===(_0xf851bf=_0x2caa17['parent'])||void 0x0===_0xf851bf?void 0x0:_0xf851bf['getChild']('AttributeName'),_0x2608e3=[];if(_0x331dba){let _0x1f748b=_0x4b629c['sliceDoc'](_0x331dba['from'],_0x331dba['to']),_0x19b23a=_0x1cf03a['globalAttrs'][_0x1f748b];if(!_0x19b23a){let _0x284ce9=findParentElement(_0x2caa17),_0x499405=_0x284ce9?_0x1cf03a['tags'][elementName(_0x4b629c['doc'],_0x284ce9)]:null;_0x19b23a=(null==_0x499405?void 0x0:_0x499405['attrs'])&&_0x499405['attrs'][_0x1f748b];}if(_0x19b23a){let _0x2f33fd=_0x4b629c['sliceDoc'](_0x4b084b,_0x27ef82)['toLowerCase'](),_0x4f02dc='\x22',_0x635aa7='\x22';/^['"]/['test'](_0x2f33fd)?(_0x5033c8='\x22'==_0x2f33fd[0x0]?/^[^"]*$/:/^[^']*$/,_0x4f02dc='',_0x635aa7=_0x4b629c['sliceDoc'](_0x27ef82,_0x27ef82+0x1)==_0x2f33fd[0x0]?'':_0x2f33fd[0x0],_0x2f33fd=_0x2f33fd['slice'](0x1),_0x4b084b++):_0x5033c8=/^[^\s<>='"]*$/;for(let _0x263e8b of _0x19b23a)_0x2608e3['push']({'label':_0x263e8b,'apply':_0x4f02dc+_0x263e8b+_0x635aa7,'type':'constant'});}}return{'from':_0x4b084b,'to':_0x27ef82,'options':_0x2608e3,'validFor':_0x5033c8};}function htmlCompletionFor(_0x135221,_0x28d1b3){let {state:_0x88a8fa,pos:_0x1bf26c}=_0x28d1b3,_0x1b4a68=syntaxTree(_0x88a8fa)['resolveInner'](_0x1bf26c,-0x1),_0xc43c47=_0x1b4a68['resolve'](_0x1bf26c);for(let _0x456f86,_0x2631ad=_0x1bf26c;_0xc43c47==_0x1b4a68&&(_0x456f86=_0x1b4a68['childBefore'](_0x2631ad));){let _0x5ded1b=_0x456f86['lastChild'];if(!_0x5ded1b||!_0x5ded1b['type']['isError']||_0x5ded1b['from']<_0x5ded1b['to'])break;_0xc43c47=_0x1b4a68=_0x456f86,_0x2631ad=_0x5ded1b['from'];}return'TagName'==_0x1b4a68['name']?_0x1b4a68['parent']&&/CloseTag$/['test'](_0x1b4a68['parent']['name'])?completeCloseTag(_0x88a8fa,_0x1b4a68,_0x1b4a68['from'],_0x1bf26c):completeTag(_0x88a8fa,_0x135221,_0x1b4a68,_0x1b4a68['from'],_0x1bf26c):'StartTag'==_0x1b4a68['name']||'IncompleteTag'==_0x1b4a68['name']?completeTag(_0x88a8fa,_0x135221,_0x1b4a68,_0x1bf26c,_0x1bf26c):'StartCloseTag'==_0x1b4a68['name']||'IncompleteCloseTag'==_0x1b4a68['name']?completeCloseTag(_0x88a8fa,_0x1b4a68,_0x1bf26c,_0x1bf26c):'OpenTag'==_0x1b4a68['name']||'SelfClosingTag'==_0x1b4a68['name']||'AttributeName'==_0x1b4a68['name']?completeAttrName(_0x88a8fa,_0x135221,_0x1b4a68,'AttributeName'==_0x1b4a68['name']?_0x1b4a68['from']:_0x1bf26c,_0x1bf26c):'Is'==_0x1b4a68['name']||'AttributeValue'==_0x1b4a68['name']||'UnquotedAttributeValue'==_0x1b4a68['name']?completeAttrValue(_0x88a8fa,_0x135221,_0x1b4a68,'Is'==_0x1b4a68['name']?_0x1bf26c:_0x1b4a68['from'],_0x1bf26c):!_0x28d1b3['explicit']||'Element'!=_0xc43c47['name']&&'Text'!=_0xc43c47['name']&&'Document'!=_0xc43c47['name']?null:completeStartTag(_0x88a8fa,_0x135221,_0x1b4a68,_0x1bf26c);}function htmlCompletionSource(_0x37b4d5){return htmlCompletionFor(Schema['default'],_0x37b4d5);}function htmlCompletionSourceWith(_0x481cf0){let {extraTags:_0x198289,extraGlobalAttributes:_0x2b8723}=_0x481cf0,_0x115027=_0x2b8723||_0x198289?new Schema(_0x198289,_0x2b8723):Schema['default'];return _0x545bbd=>htmlCompletionFor(_0x115027,_0x545bbd);}const jsonParser=javascriptLanguage['parser']['configure']({'top':'SingleExpression'}),defaultNesting=[{'tag':'script','attrs':_0x443d24=>'text/typescript'==_0x443d24['type']||'ts'==_0x443d24['lang'],'parser':typescriptLanguage['parser']},{'tag':'script','attrs':_0x8e8e60=>'text/babel'==_0x8e8e60['type']||'text/jsx'==_0x8e8e60['type'],'parser':jsxLanguage['parser']},{'tag':'script','attrs':_0x1ee15e=>'text/typescript-jsx'==_0x1ee15e['type'],'parser':tsxLanguage['parser']},{'tag':'script','attrs':_0x3070d4=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i['test'](_0x3070d4['type']),'parser':jsonParser},{'tag':'script','attrs':_0x8af0c6=>!_0x8af0c6['type']||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i['test'](_0x8af0c6['type']),'parser':javascriptLanguage['parser']},{'tag':'style','attrs':_0x2813b4=>(!_0x2813b4['lang']||'css'==_0x2813b4['lang'])&&(!_0x2813b4['type']||/^(text\/)?(x-)?(stylesheet|css)$/i['test'](_0x2813b4['type'])),'parser':cssLanguage['parser']}],defaultAttrs=[{'name':'style','parser':cssLanguage['parser']['configure']({'top':'Styles'})}]['concat'](eventAttributes['map'](_0x58b494=>({'name':_0x58b494,'parser':javascriptLanguage['parser']}))),htmlPlain=LRLanguage['define']({'name':'html','parser':parser$3['configure']({'props':[indentNodeProp['add']({'Element'(_0xb5e255){let _0x65457f=/^(\s*)(<\/)?/['exec'](_0xb5e255['textAfter']);return _0xb5e255['node']['to']<=_0xb5e255['pos']+_0x65457f[0x0]['length']?_0xb5e255['continue']():_0xb5e255['lineIndent'](_0xb5e255['node']['from'])+(_0x65457f[0x2]?0x0:_0xb5e255['unit']);},'OpenTag\x20CloseTag\x20SelfClosingTag':_0x3c449d=>_0x3c449d['column'](_0x3c449d['node']['from'])+_0x3c449d['unit'],'Document'(_0x3647cb){if(_0x3647cb['pos']+/\s*/['exec'](_0x3647cb['textAfter'])[0x0]['length']<_0x3647cb['node']['to'])return _0x3647cb['continue']();let _0x419125,_0x403000=null;for(let _0x1b3ff0=_0x3647cb['node'];;){let _0x349775=_0x1b3ff0['lastChild'];if(!_0x349775||'Element'!=_0x349775['name']||_0x349775['to']!=_0x1b3ff0['to'])break;_0x403000=_0x1b3ff0=_0x349775;}return _0x403000&&(!(_0x419125=_0x403000['lastChild'])||'CloseTag'!=_0x419125['name']&&'SelfClosingTag'!=_0x419125['name'])?_0x3647cb['lineIndent'](_0x403000['from'])+_0x3647cb['unit']:null;}}),foldNodeProp['add']({'Element'(_0x2545bf){let _0x4d85a5=_0x2545bf['firstChild'],_0x359ed6=_0x2545bf['lastChild'];return _0x4d85a5&&'OpenTag'==_0x4d85a5['name']?{'from':_0x4d85a5['to'],'to':'CloseTag'==_0x359ed6['name']?_0x359ed6['from']:_0x2545bf['to']}:null;}}),bracketMatchingHandle['add']({'OpenTag\x20CloseTag':_0x342531=>_0x342531['getChild']('TagName')})]}),'languageData':{'commentTokens':{'block':{'open':'<!--','close':'-->'}},'indentOnInput':/^\s*<\/\w+\W$/,'wordChars':'-_'}}),htmlLanguage=htmlPlain['configure']({'wrap':configureNesting(defaultNesting,defaultAttrs)});function html(_0x469f44={}){let _0x484647,_0x1c8cf7='';!0x1===_0x469f44['matchClosingTags']&&(_0x1c8cf7='noMatch'),!0x0===_0x469f44['selfClosingTags']&&(_0x1c8cf7=(_0x1c8cf7?_0x1c8cf7+'\x20':'')+'selfClosing'),(_0x469f44['nestedLanguages']&&_0x469f44['nestedLanguages']['length']||_0x469f44['nestedAttributes']&&_0x469f44['nestedAttributes']['length'])&&(_0x484647=configureNesting((_0x469f44['nestedLanguages']||[])['concat'](defaultNesting),(_0x469f44['nestedAttributes']||[])['concat'](defaultAttrs)));let _0x4f8434=_0x484647?htmlPlain['configure']({'wrap':_0x484647,'dialect':_0x1c8cf7}):_0x1c8cf7?htmlLanguage['configure']({'dialect':_0x1c8cf7}):htmlLanguage;return new LanguageSupport(_0x4f8434,[htmlLanguage['data']['of']({'autocomplete':htmlCompletionSourceWith(_0x469f44)}),!0x1!==_0x469f44['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']((_0x142548,_0x3fb8da,_0x161c34,_0x38765f,_0x4f8cc4)=>{if(_0x142548['composing']||_0x142548['state']['readOnly']||_0x3fb8da!=_0x161c34||'>'!=_0x38765f&&'/'!=_0x38765f||!htmlLanguage['isActiveAt'](_0x142548['state'],_0x3fb8da,-0x1))return!0x1;let _0x35e4e0=_0x4f8cc4(),{state:_0x22219f}=_0x35e4e0,_0x409b8b=_0x22219f['changeByRange'](_0x5aca11=>{var _0x122ecd,_0x36853d,_0x4a5b05;let _0x358fcb,_0x1657c8=_0x22219f['doc']['sliceString'](_0x5aca11['from']-0x1,_0x5aca11['to'])==_0x38765f,{head:_0x266c48}=_0x5aca11,_0x439aaa=syntaxTree(_0x22219f)['resolveInner'](_0x266c48,-0x1);if(_0x1657c8&&'>'==_0x38765f&&'EndTag'==_0x439aaa['name']){let _0x43a612=_0x439aaa['parent'];if('CloseTag'!=(null===(_0x36853d=null===(_0x122ecd=_0x43a612['parent'])||void 0x0===_0x122ecd?void 0x0:_0x122ecd['lastChild'])||void 0x0===_0x36853d?void 0x0:_0x36853d['name'])&&(_0x358fcb=elementName(_0x22219f['doc'],_0x43a612['parent'],_0x266c48))&&!selfClosers['has'](_0x358fcb))return{'range':_0x5aca11,'changes':{'from':_0x266c48,'to':_0x266c48+('>'===_0x22219f['doc']['sliceString'](_0x266c48,_0x266c48+0x1)?0x1:0x0),'insert':'</'+_0x358fcb+'>'}};}else{if(_0x1657c8&&'/'==_0x38765f&&'IncompleteCloseTag'==_0x439aaa['name']){let _0x3268d2=_0x439aaa['parent'];if(_0x439aaa['from']==_0x266c48-0x2&&'CloseTag'!=(null===(_0x4a5b05=_0x3268d2['lastChild'])||void 0x0===_0x4a5b05?void 0x0:_0x4a5b05['name'])&&(_0x358fcb=elementName(_0x22219f['doc'],_0x3268d2,_0x266c48))&&!selfClosers['has'](_0x358fcb)){let _0x9806b6=_0x266c48+('>'===_0x22219f['doc']['sliceString'](_0x266c48,_0x266c48+0x1)?0x1:0x0),_0x4df22d=_0x358fcb+'>';return{'range':EditorSelection['cursor'](_0x266c48+_0x4df22d['length'],-0x1),'changes':{'from':_0x266c48,'to':_0x9806b6,'insert':_0x4df22d}};}}}return{'range':_0x5aca11};});return!_0x409b8b['changes']['empty']&&(_0x142548['dispatch']([_0x35e4e0,_0x22219f['update'](_0x409b8b,{'userEvent':'input.complete','scrollIntoView':!0x0})]),!0x0);});class CompositeBlock{static['create'](_0x3a8fc4,_0x12e288,_0x373f6f,_0x59b3c1,_0x1c15bf){return new CompositeBlock(_0x3a8fc4,_0x12e288,_0x373f6f,_0x59b3c1+(_0x59b3c1<<0x8)+_0x3a8fc4+(_0x12e288<<0x4)|0x0,_0x1c15bf,[],[]);}constructor(_0x42e9a0,_0x1ddbdd,_0x11a4b1,_0x5562ab,_0x1605cb,_0x419278,_0x3708b7){this['type']=_0x42e9a0,this['value']=_0x1ddbdd,this['from']=_0x11a4b1,this['hash']=_0x5562ab,this['end']=_0x1605cb,this['children']=_0x419278,this['positions']=_0x3708b7,this['hashProp']=[[NodeProp['contextHash'],_0x5562ab]];}['addChild'](_0x38316e,_0x371bc9){_0x38316e['prop'](NodeProp['contextHash'])!=this['hash']&&(_0x38316e=new Tree(_0x38316e['type'],_0x38316e['children'],_0x38316e['positions'],_0x38316e['length'],this['hashProp'])),this['children']['push'](_0x38316e),this['positions']['push'](_0x371bc9);}['toTree'](_0x32a0a9,_0x37a7d2=this['end']){let _0x51a7a9=this['children']['length']-0x1;return _0x51a7a9>=0x0&&(_0x37a7d2=Math['max'](_0x37a7d2,this['positions'][_0x51a7a9]+this['children'][_0x51a7a9]['length']+this['from'])),new Tree(_0x32a0a9['types'][this['type']],this['children'],this['positions'],_0x37a7d2-this['from'])['balance']({'makeTree':(_0x3f8b8d,_0x14a138,_0x5ae783)=>new Tree(NodeType['none'],_0x3f8b8d,_0x14a138,_0x5ae783,this['hashProp'])});}}var Type;!function(_0x4bf85a){_0x4bf85a[_0x4bf85a['Document']=0x1]='Document',_0x4bf85a[_0x4bf85a['CodeBlock']=0x2]='CodeBlock',_0x4bf85a[_0x4bf85a['FencedCode']=0x3]='FencedCode',_0x4bf85a[_0x4bf85a['Blockquote']=0x4]='Blockquote',_0x4bf85a[_0x4bf85a['HorizontalRule']=0x5]='HorizontalRule',_0x4bf85a[_0x4bf85a['BulletList']=0x6]='BulletList',_0x4bf85a[_0x4bf85a['OrderedList']=0x7]='OrderedList',_0x4bf85a[_0x4bf85a['ListItem']=0x8]='ListItem',_0x4bf85a[_0x4bf85a['ATXHeading1']=0x9]='ATXHeading1',_0x4bf85a[_0x4bf85a['ATXHeading2']=0xa]='ATXHeading2',_0x4bf85a[_0x4bf85a['ATXHeading3']=0xb]='ATXHeading3',_0x4bf85a[_0x4bf85a['ATXHeading4']=0xc]='ATXHeading4',_0x4bf85a[_0x4bf85a['ATXHeading5']=0xd]='ATXHeading5',_0x4bf85a[_0x4bf85a['ATXHeading6']=0xe]='ATXHeading6',_0x4bf85a[_0x4bf85a['SetextHeading1']=0xf]='SetextHeading1',_0x4bf85a[_0x4bf85a['SetextHeading2']=0x10]='SetextHeading2',_0x4bf85a[_0x4bf85a['HTMLBlock']=0x11]='HTMLBlock',_0x4bf85a[_0x4bf85a['LinkReference']=0x12]='LinkReference',_0x4bf85a[_0x4bf85a['Paragraph']=0x13]='Paragraph',_0x4bf85a[_0x4bf85a['CommentBlock']=0x14]='CommentBlock',_0x4bf85a[_0x4bf85a['ProcessingInstructionBlock']=0x15]='ProcessingInstructionBlock',_0x4bf85a[_0x4bf85a['Escape']=0x16]='Escape',_0x4bf85a[_0x4bf85a['Entity']=0x17]='Entity',_0x4bf85a[_0x4bf85a['HardBreak']=0x18]='HardBreak',_0x4bf85a[_0x4bf85a['Emphasis']=0x19]='Emphasis',_0x4bf85a[_0x4bf85a['StrongEmphasis']=0x1a]='StrongEmphasis',_0x4bf85a[_0x4bf85a['Link']=0x1b]='Link',_0x4bf85a[_0x4bf85a['Image']=0x1c]='Image',_0x4bf85a[_0x4bf85a['InlineCode']=0x1d]='InlineCode',_0x4bf85a[_0x4bf85a['HTMLTag']=0x1e]='HTMLTag',_0x4bf85a[_0x4bf85a['Comment']=0x1f]='Comment',_0x4bf85a[_0x4bf85a['ProcessingInstruction']=0x20]='ProcessingInstruction',_0x4bf85a[_0x4bf85a['Autolink']=0x21]='Autolink',_0x4bf85a[_0x4bf85a['HeaderMark']=0x22]='HeaderMark',_0x4bf85a[_0x4bf85a['QuoteMark']=0x23]='QuoteMark',_0x4bf85a[_0x4bf85a['ListMark']=0x24]='ListMark',_0x4bf85a[_0x4bf85a['LinkMark']=0x25]='LinkMark',_0x4bf85a[_0x4bf85a['EmphasisMark']=0x26]='EmphasisMark',_0x4bf85a[_0x4bf85a['CodeMark']=0x27]='CodeMark',_0x4bf85a[_0x4bf85a['CodeText']=0x28]='CodeText',_0x4bf85a[_0x4bf85a['CodeInfo']=0x29]='CodeInfo',_0x4bf85a[_0x4bf85a['LinkTitle']=0x2a]='LinkTitle',_0x4bf85a[_0x4bf85a['LinkLabel']=0x2b]='LinkLabel',_0x4bf85a[_0x4bf85a['URL']=0x2c]='URL';}(Type||(Type={}));class LeafBlock{constructor(_0x1c7dc4,_0x48c7ed){this['start']=_0x1c7dc4,this['content']=_0x48c7ed,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 _0x34c0af=this['skipSpace'](this['basePos']);this['indent']=this['countIndent'](_0x34c0af,this['pos'],this['indent']),this['pos']=_0x34c0af,this['next']=_0x34c0af==this['text']['length']?-0x1:this['text']['charCodeAt'](_0x34c0af);}['skipSpace'](_0x3589ba){return skipSpace(this['text'],_0x3589ba);}['reset'](_0x19c38c){for(this['text']=_0x19c38c,this['baseIndent']=this['basePos']=this['pos']=this['indent']=0x0,this['forwardInner'](),this['depth']=0x1;this['markers']['length'];)this['markers']['pop']();}['moveBase'](_0x1c27a3){this['basePos']=_0x1c27a3,this['baseIndent']=this['countIndent'](_0x1c27a3,this['pos'],this['indent']);}['moveBaseColumn'](_0x163a6f){this['baseIndent']=_0x163a6f,this['basePos']=this['findColumn'](_0x163a6f);}['addMarker'](_0x48d19b){this['markers']['push'](_0x48d19b);}['countIndent'](_0x22feea,_0x3def92=0x0,_0x48aca2=0x0){for(let _0x118b17=_0x3def92;_0x118b17<_0x22feea;_0x118b17++)_0x48aca2+=0x9==this['text']['charCodeAt'](_0x118b17)?0x4-_0x48aca2%0x4:0x1;return _0x48aca2;}['findColumn'](_0x3fad2a){let _0x36c6a=0x0;for(let _0x2a0222=0x0;_0x36c6a<this['text']['length']&&_0x2a0222<_0x3fad2a;_0x36c6a++)_0x2a0222+=0x9==this['text']['charCodeAt'](_0x36c6a)?0x4-_0x2a0222%0x4:0x1;return _0x36c6a;}['scrub'](){if(!this['baseIndent'])return this['text'];let _0x1c4d1b='';for(let _0x838e1f=0x0;_0x838e1f<this['basePos'];_0x838e1f++)_0x1c4d1b+='\x20';return _0x1c4d1b+this['text']['slice'](this['basePos']);}}function skipForList(_0x1c149c,_0x438bf7,_0x3bbfa5){if(_0x3bbfa5['pos']==_0x3bbfa5['text']['length']||_0x1c149c!=_0x438bf7['block']&&_0x3bbfa5['indent']>=_0x438bf7['stack'][_0x3bbfa5['depth']+0x1]['value']+_0x3bbfa5['baseIndent'])return!0x0;if(_0x3bbfa5['indent']>=_0x3bbfa5['baseIndent']+0x4)return!0x1;let _0x105313=(_0x1c149c['type']==Type['OrderedList']?isOrderedList:isBulletList)(_0x3bbfa5,_0x438bf7,!0x1);return _0x105313>0x0&&(_0x1c149c['type']!=Type['BulletList']||isHorizontalRule(_0x3bbfa5,_0x438bf7,!0x1)<0x0)&&_0x3bbfa5['text']['charCodeAt'](_0x3bbfa5['pos']+_0x105313-0x1)==_0x1c149c['value'];}const DefaultSkipMarkup={[Type['Blockquote']]:(_0x44cb2b,_0x2a076f,_0x4be693)=>0x3e==_0x4be693['next']&&(_0x4be693['markers']['push'](elt(Type['QuoteMark'],_0x2a076f['lineStart']+_0x4be693['pos'],_0x2a076f['lineStart']+_0x4be693['pos']+0x1)),_0x4be693['moveBase'](_0x4be693['pos']+(space(_0x4be693['text']['charCodeAt'](_0x4be693['pos']+0x1))?0x2:0x1)),_0x44cb2b['end']=_0x2a076f['lineStart']+_0x4be693['text']['length'],!0x0),[Type['ListItem']]:(_0x368319,_0x364e13,_0x4f9045)=>!(_0x4f9045['indent']<_0x4f9045['baseIndent']+_0x368319['value']&&_0x4f9045['next']>-0x1)&&(_0x4f9045['moveBaseColumn'](_0x4f9045['baseIndent']+_0x368319['value']),!0x0),[Type['OrderedList']]:skipForList,[Type['BulletList']]:skipForList,[Type['Document']]:()=>!0x0};function space(_0x103403){return 0x20==_0x103403||0x9==_0x103403||0xa==_0x103403||0xd==_0x103403;}function skipSpace(_0x5607d6,_0x1af076=0x0){for(;_0x1af076<_0x5607d6['length']&&space(_0x5607d6['charCodeAt'](_0x1af076));)_0x1af076++;return _0x1af076;}function skipSpaceBack(_0x22d652,_0x9416fc,_0x3a5336){for(;_0x9416fc>_0x3a5336&&space(_0x22d652['charCodeAt'](_0x9416fc-0x1));)_0x9416fc--;return _0x9416fc;}function isFencedCode(_0x74f195){if(0x60!=_0x74f195['next']&&0x7e!=_0x74f195['next'])return-0x1;let _0xd29c1c=_0x74f195['pos']+0x1;for(;_0xd29c1c<_0x74f195['text']['length']&&_0x74f195['text']['charCodeAt'](_0xd29c1c)==_0x74f195['next'];)_0xd29c1c++;if(_0xd29c1c<_0x74f195['pos']+0x3)return-0x1;if(0x60==_0x74f195['next']){for(let _0x148da3=_0xd29c1c;_0x148da3<_0x74f195['text']['length'];_0x148da3++)if(0x60==_0x74f195['text']['charCodeAt'](_0x148da3))return-0x1;}return _0xd29c1c;}function isBlockquote(_0x391832){return 0x3e!=_0x391832['next']?-0x1:0x20==_0x391832['text']['charCodeAt'](_0x391832['pos']+0x1)?0x2:0x1;}function isHorizontalRule(_0x57feb1,_0x4e4109,_0x403067){if(0x2a!=_0x57feb1['next']&&0x2d!=_0x57feb1['next']&&0x5f!=_0x57feb1['next'])return-0x1;let _0x6bee53=0x1;for(let _0x23b964=_0x57feb1['pos']+0x1;_0x23b964<_0x57feb1['text']['length'];_0x23b964++){let _0xf48e5a=_0x57feb1['text']['charCodeAt'](_0x23b964);if(_0xf48e5a==_0x57feb1['next'])_0x6bee53++;else{if(!space(_0xf48e5a))return-0x1;}}return _0x403067&&0x2d==_0x57feb1['next']&&isSetextUnderline(_0x57feb1)>-0x1&&_0x57feb1['depth']==_0x4e4109['stack']['length']&&_0x4e4109['parser']['leafBlockParsers']['indexOf'](DefaultLeafBlocks['SetextHeading'])>-0x1||_0x6bee53<0x3?-0x1:0x1;}function inList(_0x103fe7,_0x2f374f){for(let _0x4abade=_0x103fe7['stack']['length']-0x1;_0x4abade>=0x0;_0x4abade--)if(_0x103fe7['stack'][_0x4abade]['type']==_0x2f374f)return!0x0;return!0x1;}function isBulletList(_0x523594,_0x4d0ff6,_0x36066d){return 0x2d!=_0x523594['next']&&0x2b!=_0x523594['next']&&0x2a!=_0x523594['next']||_0x523594['pos']!=_0x523594['text']['length']-0x1&&!space(_0x523594['text']['charCodeAt'](_0x523594['pos']+0x1))||!(!_0x36066d||inList(_0x4d0ff6,Type['BulletList'])||_0x523594['skipSpace'](_0x523594['pos']+0x2)<_0x523594['text']['length'])?-0x1:0x1;}function isOrderedList(_0x53215b,_0x1f72de,_0x47f7b7){let _0x1f8544=_0x53215b['pos'],_0x261547=_0x53215b['next'];for(;_0x261547>=0x30&&_0x261547<=0x39;){if(_0x1f8544++,_0x1f8544==_0x53215b['text']['length'])return-0x1;_0x261547=_0x53215b['text']['charCodeAt'](_0x1f8544);}return _0x1f8544==_0x53215b['pos']||_0x1f8544>_0x53215b['pos']+0x9||0x2e!=_0x261547&&0x29!=_0x261547||_0x1f8544<_0x53215b['text']['length']-0x1&&!space(_0x53215b['text']['charCodeAt'](_0x1f8544+0x1))||_0x47f7b7&&!inList(_0x1f72de,Type['OrderedList'])&&(_0x53215b['skipSpace'](_0x1f8544+0x1)==_0x53215b['text']['length']||_0x1f8544>_0x53215b['pos']+0x1||0x31!=_0x53215b['next'])?-0x1:_0x1f8544+0x1-_0x53215b['pos'];}function isAtxHeading(_0x4c059c){if(0x23!=_0x4c059c['next'])return-0x1;let _0x4306bc=_0x4c059c['pos']+0x1;for(;_0x4306bc<_0x4c059c['text']['length']&&0x23==_0x4c059c['text']['charCodeAt'](_0x4306bc);)_0x4306bc++;if(_0x4306bc<_0x4c059c['text']['length']&&0x20!=_0x4c059c['text']['charCodeAt'](_0x4306bc))return-0x1;let _0x54f705=_0x4306bc-_0x4c059c['pos'];return _0x54f705>0x6?-0x1:_0x54f705;}function isSetextUnderline(_0xd1e67d){if(0x2d!=_0xd1e67d['next']&&0x3d!=_0xd1e67d['next']||_0xd1e67d['indent']>=_0xd1e67d['baseIndent']+0x4)return-0x1;let _0x2c09ad=_0xd1e67d['pos']+0x1;for(;_0x2c09ad<_0xd1e67d['text']['length']&&_0xd1e67d['text']['charCodeAt'](_0x2c09ad)==_0xd1e67d['next'];)_0x2c09ad++;let _0x3afe51=_0x2c09ad;for(;_0x2c09ad<_0xd1e67d['text']['length']&&space(_0xd1e67d['text']['charCodeAt'](_0x2c09ad));)_0x2c09ad++;return _0x2c09ad==_0xd1e67d['text']['length']?_0x3afe51:-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(_0x3e5f55,_0x5a465d,_0x45aecb){if(0x3c!=_0x3e5f55['next'])return-0x1;let _0x47a4c4=_0x3e5f55['text']['slice'](_0x3e5f55['pos']);for(let _0x3d1bd5=0x0,_0x1e146b=HTMLBlockStyle['length']-(_0x45aecb?0x1:0x0);_0x3d1bd5<_0x1e146b;_0x3d1bd5++)if(HTMLBlockStyle[_0x3d1bd5][0x0]['test'](_0x47a4c4))return _0x3d1bd5;return-0x1;}function getListIndent(_0x4ba1c0,_0x2374e0){let _0x524399=_0x4ba1c0['countIndent'](_0x2374e0,_0x4ba1c0['pos'],_0x4ba1c0['indent']),_0x26a227=_0x4ba1c0['countIndent'](_0x4ba1c0['skipSpace'](_0x2374e0),_0x2374e0,_0x524399);return _0x26a227>=_0x524399+0x5?_0x524399+0x1:_0x26a227;}function addCodeText(_0xe35e1b,_0x5922ac,_0xcf90a8){let _0x11bcf3=_0xe35e1b['length']-0x1;_0x11bcf3>=0x0&&_0xe35e1b[_0x11bcf3]['to']==_0x5922ac&&_0xe35e1b[_0x11bcf3]['type']==Type['CodeText']?_0xe35e1b[_0x11bcf3]['to']=_0xcf90a8:_0xe35e1b['push'](elt(Type['CodeText'],_0x5922ac,_0xcf90a8));}const DefaultBlockParsers={'LinkReference':void 0x0,'IndentedCode'(_0x3f8431,_0x3bb433){let _0x4ba1f1=_0x3bb433['baseIndent']+0x4;if(_0x3bb433['indent']<_0x4ba1f1)return!0x1;let _0x407123=_0x3bb433['findColumn'](_0x4ba1f1),_0x27c566=_0x3f8431['lineStart']+_0x407123,_0x48d44e=_0x3f8431['lineStart']+_0x3bb433['text']['length'],_0x5b4ec9=[],_0x5ced54=[];for(addCodeText(_0x5b4ec9,_0x27c566,_0x48d44e);_0x3f8431['nextLine']()&&_0x3bb433['depth']>=_0x3f8431['stack']['length'];)if(_0x3bb433['pos']==_0x3bb433['text']['length']){addCodeText(_0x5ced54,_0x3f8431['lineStart']-0x1,_0x3f8431['lineStart']);for(let _0x142069 of _0x3bb433['markers'])_0x5ced54['push'](_0x142069);}else{if(_0x3bb433['indent']<_0x4ba1f1)break;{if(_0x5ced54['length']){for(let _0x5598b9 of _0x5ced54)_0x5598b9['type']==Type['CodeText']?addCodeText(_0x5b4ec9,_0x5598b9['from'],_0x5598b9['to']):_0x5b4ec9['push'](_0x5598b9);_0x5ced54=[];}addCodeText(_0x5b4ec9,_0x3f8431['lineStart']-0x1,_0x3f8431['lineStart']);for(let _0x392b0f of _0x3bb433['markers'])_0x5b4ec9['push'](_0x392b0f);_0x48d44e=_0x3f8431['lineStart']+_0x3bb433['text']['length'];let _0x5d4fe7=_0x3f8431['lineStart']+_0x3bb433['findColumn'](_0x3bb433['baseIndent']+0x4);_0x5d4fe7<_0x48d44e&&addCodeText(_0x5b4ec9,_0x5d4fe7,_0x48d44e);}}return _0x5ced54['length']&&(_0x5ced54=_0x5ced54['filter'](_0x49283c=>_0x49283c['type']!=Type['CodeText']),_0x5ced54['length']&&(_0x3bb433['markers']=_0x5ced54['concat'](_0x3bb433['markers']))),_0x3f8431['addNode'](_0x3f8431['buffer']['writeElements'](_0x5b4ec9,-_0x27c566)['finish'](Type['CodeBlock'],_0x48d44e-_0x27c566),_0x27c566),!0x0;},'FencedCode'(_0x2da2d8,_0x3c4de4){let _0x273c82=isFencedCode(_0x3c4de4);if(_0x273c82<0x0)return!0x1;let _0x4713c4=_0x2da2d8['lineStart']+_0x3c4de4['pos'],_0x5e9255=_0x3c4de4['next'],_0x1117ab=_0x273c82-_0x3c4de4['pos'],_0xfc4c91=_0x3c4de4['skipSpace'](_0x273c82),_0x68f532=skipSpaceBack(_0x3c4de4['text'],_0x3c4de4['text']['length'],_0xfc4c91),_0x3f9c06=[elt(Type['CodeMark'],_0x4713c4,_0x4713c4+_0x1117ab)];_0xfc4c91<_0x68f532&&_0x3f9c06['push'](elt(Type['CodeInfo'],_0x2da2d8['lineStart']+_0xfc4c91,_0x2da2d8['lineStart']+_0x68f532));for(let _0x294ed9=!0x0;_0x2da2d8['nextLine']()&&_0x3c4de4['depth']>=_0x2da2d8['stack']['length'];_0x294ed9=!0x1){let _0x4ae553=_0x3c4de4['pos'];if(_0x3c4de4['indent']-_0x3c4de4['baseIndent']<0x4){for(;_0x4ae553<_0x3c4de4['text']['length']&&_0x3c4de4['text']['charCodeAt'](_0x4ae553)==_0x5e9255;)_0x4ae553++;}if(_0x4ae553-_0x3c4de4['pos']>=_0x1117ab&&_0x3c4de4['skipSpace'](_0x4ae553)==_0x3c4de4['text']['length']){for(let _0x42d3ab of _0x3c4de4['markers'])_0x3f9c06['push'](_0x42d3ab);_0x3f9c06['push'](elt(Type['CodeMark'],_0x2da2d8['lineStart']+_0x3c4de4['pos'],_0x2da2d8['lineStart']+_0x4ae553)),_0x2da2d8['nextLine']();break;}{_0x294ed9||addCodeText(_0x3f9c06,_0x2da2d8['lineStart']-0x1,_0x2da2d8['lineStart']);for(let _0x1c8c5d of _0x3c4de4['markers'])_0x3f9c06['push'](_0x1c8c5d);let _0x3ca8b8=_0x2da2d8['lineStart']+_0x3c4de4['basePos'],_0x279a51=_0x2da2d8['lineStart']+_0x3c4de4['text']['length'];_0x3ca8b8<_0x279a51&&addCodeText(_0x3f9c06,_0x3ca8b8,_0x279a51);}}return _0x2da2d8['addNode'](_0x2da2d8['buffer']['writeElements'](_0x3f9c06,-_0x4713c4)['finish'](Type['FencedCode'],_0x2da2d8['prevLineEnd']()-_0x4713c4),_0x4713c4),!0x0;},'Blockquote'(_0x1b9743,_0x406c1f){let _0x410fe8=isBlockquote(_0x406c1f);return!(_0x410fe8<0x0)&&(_0x1b9743['startContext'](Type['Blockquote'],_0x406c1f['pos']),_0x1b9743['addNode'](Type['QuoteMark'],_0x1b9743['lineStart']+_0x406c1f['pos'],_0x1b9743['lineStart']+_0x406c1f['pos']+0x1),_0x406c1f['moveBase'](_0x406c1f['pos']+_0x410fe8),null);},'HorizontalRule'(_0x3ab0bc,_0x4ef13b){if(isHorizontalRule(_0x4ef13b,_0x3ab0bc,!0x1)<0x0)return!0x1;let _0xb9ab65=_0x3ab0bc['lineStart']+_0x4ef13b['pos'];return _0x3ab0bc['nextLine'](),_0x3ab0bc['addNode'](Type['HorizontalRule'],_0xb9ab65),!0x0;},'BulletList'(_0xfd5275,_0x140aaf){let _0x2580be=isBulletList(_0x140aaf,_0xfd5275,!0x1);if(_0x2580be<0x0)return!0x1;_0xfd5275['block']['type']!=Type['BulletList']&&_0xfd5275['startContext'](Type['BulletList'],_0x140aaf['basePos'],_0x140aaf['next']);let _0x101942=getListIndent(_0x140aaf,_0x140aaf['pos']+0x1);return _0xfd5275['startContext'](Type['ListItem'],_0x140aaf['basePos'],_0x101942-_0x140aaf['baseIndent']),_0xfd5275['addNode'](Type['ListMark'],_0xfd5275['lineStart']+_0x140aaf['pos'],_0xfd5275['lineStart']+_0x140aaf['pos']+_0x2580be),_0x140aaf['moveBaseColumn'](_0x101942),null;},'OrderedList'(_0x333bbe,_0x5a0bd3){let _0x48fab7=isOrderedList(_0x5a0bd3,_0x333bbe,!0x1);if(_0x48fab7<0x0)return!0x1;_0x333bbe['block']['type']!=Type['OrderedList']&&_0x333bbe['startContext'](Type['OrderedList'],_0x5a0bd3['basePos'],_0x5a0bd3['text']['charCodeAt'](_0x5a0bd3['pos']+_0x48fab7-0x1));let _0x16e516=getListIndent(_0x5a0bd3,_0x5a0bd3['pos']+_0x48fab7);return _0x333bbe['startContext'](Type['ListItem'],_0x5a0bd3['basePos'],_0x16e516-_0x5a0bd3['baseIndent']),_0x333bbe['addNode'](Type['ListMark'],_0x333bbe['lineStart']+_0x5a0bd3['pos'],_0x333bbe['lineStart']+_0x5a0bd3['pos']+_0x48fab7),_0x5a0bd3['moveBaseColumn'](_0x16e516),null;},'ATXHeading'(_0x22f65b,_0xa1524a){let _0x298907=isAtxHeading(_0xa1524a);if(_0x298907<0x0)return!0x1;let _0x57d507=_0xa1524a['pos'],_0x46ec07=_0x22f65b['lineStart']+_0x57d507,_0x2a4cb9=skipSpaceBack(_0xa1524a['text'],_0xa1524a['text']['length'],_0x57d507),_0x2aef35=_0x2a4cb9;for(;_0x2aef35>_0x57d507&&_0xa1524a['text']['charCodeAt'](_0x2aef35-0x1)==_0xa1524a['next'];)_0x2aef35--;_0x2aef35!=_0x2a4cb9&&_0x2aef35!=_0x57d507&&space(_0xa1524a['text']['charCodeAt'](_0x2aef35-0x1))||(_0x2aef35=_0xa1524a['text']['length']);let _0x18dd14=_0x22f65b['buffer']['write'](Type['HeaderMark'],0x0,_0x298907)['writeElements'](_0x22f65b['parser']['parseInline'](_0xa1524a['text']['slice'](_0x57d507+_0x298907+0x1,_0x2aef35),_0x46ec07+_0x298907+0x1),-_0x46ec07);_0x2aef35<_0xa1524a['text']['length']&&_0x18dd14['write'](Type['HeaderMark'],_0x2aef35-_0x57d507,_0x2a4cb9-_0x57d507);let _0x1f753b=_0x18dd14['finish'](Type['ATXHeading1']-0x1+_0x298907,_0xa1524a['text']['length']-_0x57d507);return _0x22f65b['nextLine'](),_0x22f65b['addNode'](_0x1f753b,_0x46ec07),!0x0;},'HTMLBlock'(_0x5f458d,_0x4c1d09){let _0x2cf3a9=isHTMLBlock(_0x4c1d09,_0x5f458d,!0x1);if(_0x2cf3a9<0x0)return!0x1;let _0x5512e1=_0x5f458d['lineStart']+_0x4c1d09['pos'],_0x2f31ee=HTMLBlockStyle[_0x2cf3a9][0x1],_0x44753a=[],_0x50aee2=_0x2f31ee!=EmptyLine;for(;!_0x2f31ee['test'](_0x4c1d09['text'])&&_0x5f458d['nextLine']();){if(_0x4c1d09['depth']<_0x5f458d['stack']['length']){_0x50aee2=!0x1;break;}for(let _0x133123 of _0x4c1d09['markers'])_0x44753a['push'](_0x133123);}_0x50aee2&&_0x5f458d['nextLine']();let _0x126c04=_0x2f31ee==CommentEnd?Type['CommentBlock']:_0x2f31ee==ProcessingEnd?Type['ProcessingInstructionBlock']:Type['HTMLBlock'],_0x4e161e=_0x5f458d['prevLineEnd']();return _0x5f458d['addNode'](_0x5f458d['buffer']['writeElements'](_0x44753a,-_0x5512e1)['finish'](_0x126c04,_0x4e161e-_0x5512e1),_0x5512e1),!0x0;},'SetextHeading':void 0x0};class LinkReferenceParser{constructor(_0x269be1){this['stage']=0x0,this['elts']=[],this['pos']=0x0,this['start']=_0x269be1['start'],this['advance'](_0x269be1['content']);}['nextLine'](_0x3ad4b9,_0x10fa44,_0x6ea0b1){if(-0x1==this['stage'])return!0x1;let _0x3920a0=_0x6ea0b1['content']+'\x0a'+_0x10fa44['scrub'](),_0x3ee377=this['advance'](_0x3920a0);return _0x3ee377>-0x1&&_0x3ee377<_0x3920a0['length']&&this['complete'](_0x3ad4b9,_0x6ea0b1,_0x3ee377);}['finish'](_0x2e42eb,_0x4127f3){return(0x2==this['stage']||0x3==this['stage'])&&skipSpace(_0x4127f3['content'],this['pos'])==_0x4127f3['content']['length']&&this['complete'](_0x2e42eb,_0x4127f3,_0x4127f3['content']['length']);}['complete'](_0x1f7fc9,_0x2183d1,_0x4c0f00){return _0x1f7fc9['addLeafElement'](_0x2183d1,elt(Type['LinkReference'],this['start'],this['start']+_0x4c0f00,this['elts'])),!0x0;}['nextStage'](_0x281b3e){return _0x281b3e?(this['pos']=_0x281b3e['to']-this['start'],this['elts']['push'](_0x281b3e),this['stage']++,!0x0):(!0x1===_0x281b3e&&(this['stage']=-0x1),!0x1);}['advance'](_0x141ab1){for(;;){if(-0x1==this['stage'])return-0x1;if(0x0==this['stage']){if(!this['nextStage'](parseLinkLabel(_0x141ab1,this['pos'],this['start'],!0x0)))return-0x1;if(0x3a!=_0x141ab1['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 _0x33b6ac=skipSpace(_0x141ab1,this['pos']),_0x3d2935=0x0;if(_0x33b6ac>this['pos']){let _0x46f21d=parseLinkTitle(_0x141ab1,_0x33b6ac,this['start']);if(_0x46f21d){let _0x39ae3b=lineEnd(_0x141ab1,_0x46f21d['to']-this['start']);_0x39ae3b>0x0&&(this['nextStage'](_0x46f21d),_0x3d2935=_0x39ae3b);}}return _0x3d2935||(_0x3d2935=lineEnd(_0x141ab1,this['pos'])),_0x3d2935>0x0&&_0x3d2935<_0x141ab1['length']?_0x3d2935:-0x1;}return lineEnd(_0x141ab1,this['pos']);}if(!this['nextStage'](parseURL(_0x141ab1,skipSpace(_0x141ab1,this['pos']),this['start'])))return-0x1;}}}}function lineEnd(_0x144b58,_0x119fb5){for(;_0x119fb5<_0x144b58['length'];_0x119fb5++){let _0x1a61f4=_0x144b58['charCodeAt'](_0x119fb5);if(0xa==_0x1a61f4)break;if(!space(_0x1a61f4))return-0x1;}return _0x119fb5;}class SetextHeadingParser{['nextLine'](_0x26e5e2,_0x17ad72,_0x5664cd){let _0x15be6f=_0x17ad72['depth']<_0x26e5e2['stack']['length']?-0x1:isSetextUnderline(_0x17ad72),_0x401e90=_0x17ad72['next'];if(_0x15be6f<0x0)return!0x1;let _0x544be2=elt(Type['HeaderMark'],_0x26e5e2['lineStart']+_0x17ad72['pos'],_0x26e5e2['lineStart']+_0x15be6f);return _0x26e5e2['nextLine'](),_0x26e5e2['addLeafElement'](_0x5664cd,elt(0x3d==_0x401e90?Type['SetextHeading1']:Type['SetextHeading2'],_0x5664cd['start'],_0x26e5e2['prevLineEnd'](),[..._0x26e5e2['parser']['parseInline'](_0x5664cd['content'],_0x5664cd['start']),_0x544be2])),!0x0;}['finish'](){return!0x1;}}const DefaultLeafBlocks={'LinkReference':(_0x425c5a,_0x3f044d)=>0x5b==_0x3f044d['content']['charCodeAt'](0x0)?new LinkReferenceParser(_0x3f044d):null,'SetextHeading':()=>new SetextHeadingParser()},DefaultEndLeaf=[(_0x58ad2f,_0x5bf843)=>isAtxHeading(_0x5bf843)>=0x0,(_0x2e78ad,_0x3412b9)=>isFencedCode(_0x3412b9)>=0x0,(_0x40f7cf,_0x5e0e8d)=>isBlockquote(_0x5e0e8d)>=0x0,(_0x5eca56,_0xb5424b)=>isBulletList(_0xb5424b,_0x5eca56,!0x0)>=0x0,(_0x285ec3,_0xe70cee)=>isOrderedList(_0xe70cee,_0x285ec3,!0x0)>=0x0,(_0x4a3fbe,_0x5957e1)=>isHorizontalRule(_0x5957e1,_0x4a3fbe,!0x0)>=0x0,(_0x59e77c,_0x5e446b)=>isHTMLBlock(_0x5e446b,_0x59e77c,!0x0)>=0x0],scanLineResult={'text':'','end':0x0};class BlockContext{constructor(_0x97b1ee,_0x5af73f,_0x4c52ba,_0x3776a4){this['parser']=_0x97b1ee,this['input']=_0x5af73f,this['ranges']=_0x3776a4,this['line']=new Line(),this['atEnd']=!0x1,this['reusePlaceholders']=new Map(),this['stoppedAt']=null,this['rangeI']=0x0,this['to']=_0x3776a4[_0x3776a4['length']-0x1]['to'],this['lineStart']=this['absoluteLineStart']=this['absoluteLineEnd']=_0x3776a4[0x0]['from'],this['block']=CompositeBlock['create'](Type['Document'],0x0,this['lineStart'],0x0,0x0),this['stack']=[this['block']],this['fragments']=_0x4c52ba['length']?new FragmentCursor(_0x4c52ba,_0x5af73f):null,this['readLine']();}get['parsedPos'](){return this['absoluteLineStart'];}['advance'](){if(null!=this['stoppedAt']&&this['absoluteLineStart']>this['stoppedAt'])return this['finish']();let {line:_0x36fb31}=this;for(;;){for(let _0xb03e57=0x0;;){let _0x1ea8b9=_0x36fb31['depth']<this['stack']['length']?this['stack'][this['stack']['length']-0x1]:null;for(;_0xb03e57<_0x36fb31['markers']['length']&&(!_0x1ea8b9||_0x36fb31['markers'][_0xb03e57]['from']<_0x1ea8b9['end']);){let _0x228061=_0x36fb31['markers'][_0xb03e57++];this['addNode'](_0x228061['type'],_0x228061['from'],_0x228061['to']);}if(!_0x1ea8b9)break;this['finishContext']();}if(_0x36fb31['pos']<_0x36fb31['text']['length'])break;if(!this['nextLine']())return this['finish']();}if(this['fragments']&&this['reuseFragment'](_0x36fb31['basePos']))return null;t:for(;;){for(let _0x391e04 of this['parser']['blockParsers'])if(_0x391e04){let _0x4c9878=_0x391e04(this,_0x36fb31);if(0x0!=_0x4c9878){if(0x1==_0x4c9878)return null;_0x36fb31['forward']();continue t;}}break;}let _0x1066aa=new LeafBlock(this['lineStart']+_0x36fb31['pos'],_0x36fb31['text']['slice'](_0x36fb31['pos']));for(let _0x35f201 of this['parser']['leafBlockParsers'])if(_0x35f201){let _0x5f52a6=_0x35f201(this,_0x1066aa);_0x5f52a6&&_0x1066aa['parsers']['push'](_0x5f52a6);}t:for(;this['nextLine']()&&_0x36fb31['pos']!=_0x36fb31['text']['length'];){if(_0x36fb31['indent']<_0x36fb31['baseIndent']+0x4){for(let _0x24403e of this['parser']['endLeafBlock'])if(_0x24403e(this,_0x36fb31,_0x1066aa))break t;}for(let _0x56a331 of _0x1066aa['parsers'])if(_0x56a331['nextLine'](this,_0x36fb31,_0x1066aa))return null;_0x1066aa['content']+='\x0a'+_0x36fb31['scrub']();for(let _0x42efa0 of _0x36fb31['markers'])_0x1066aa['marks']['push'](_0x42efa0);}return this['finishLeaf'](_0x1066aa),null;}['stopAt'](_0x59b736){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x59b736)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x59b736;}['reuseFragment'](_0x231118){if(!this['fragments']['moveTo'](this['absoluteLineStart']+_0x231118,this['absoluteLineStart'])||!this['fragments']['matches'](this['block']['hash']))return!0x1;let _0x356728=this['fragments']['takeNodes'](this);return!!_0x356728&&(this['absoluteLineStart']+=_0x356728,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'](_0x18bfea=this['depth']-0x1){return this['parser']['nodeSet']['types'][this['stack'][_0x18bfea]['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'](_0x5bcedb){let _0x296b63=scanLineResult;if(_0x296b63['end']=_0x5bcedb,_0x5bcedb>=this['to'])_0x296b63['text']='';else{if(_0x296b63['text']=this['lineChunkAt'](_0x5bcedb),_0x296b63['end']+=_0x296b63['text']['length'],this['ranges']['length']>0x1){let _0x4ecfa9=this['absoluteLineStart'],_0x22db68=this['rangeI'];for(;this['ranges'][_0x22db68]['to']<_0x296b63['end'];){_0x22db68++;let _0x3718a2=this['ranges'][_0x22db68]['from'],_0x139327=this['lineChunkAt'](_0x3718a2);_0x296b63['end']=_0x3718a2+_0x139327['length'],_0x296b63['text']=_0x296b63['text']['slice'](0x0,this['ranges'][_0x22db68-0x1]['to']-_0x4ecfa9)+_0x139327,_0x4ecfa9=_0x296b63['end']-_0x296b63['text']['length'];}}}return _0x296b63;}['readLine'](){let {line:_0x131d3b}=this,{text:_0x324a7f,end:_0x5c6192}=this['scanLine'](this['absoluteLineStart']);for(this['absoluteLineEnd']=_0x5c6192,_0x131d3b['reset'](_0x324a7f);_0x131d3b['depth']<this['stack']['length'];_0x131d3b['depth']++){let _0x16d5da=this['stack'][_0x131d3b['depth']],_0x37ea72=this['parser']['skipContextMarkup'][_0x16d5da['type']];if(!_0x37ea72)throw new Error('Unhandled\x20block\x20context\x20'+Type[_0x16d5da['type']]);let _0x1fee4e=this['line']['markers']['length'];if(!_0x37ea72(_0x16d5da,this,_0x131d3b)){this['line']['markers']['length']>_0x1fee4e&&(_0x16d5da['end']=this['line']['markers'][this['line']['markers']['length']-0x1]['to']);break;}_0x131d3b['forward']();}}['lineChunkAt'](_0x50a533){let _0x1c1335,_0xf355e8=this['input']['chunk'](_0x50a533);if(this['input']['lineChunks'])_0x1c1335='\x0a'==_0xf355e8?'':_0xf355e8;else{let _0x11abb6=_0xf355e8['indexOf']('\x0a');_0x1c1335=_0x11abb6<0x0?_0xf355e8:_0xf355e8['slice'](0x0,_0x11abb6);}return _0x50a533+_0x1c1335['length']>this['to']?_0x1c1335['slice'](0x0,this['to']-_0x50a533):_0x1c1335;}['prevLineEnd'](){return this['atEnd']?this['lineStart']:this['lineStart']-0x1;}['startContext'](_0x385ce6,_0x35d7fa,_0x2910cb=0x0){this['block']=CompositeBlock['create'](_0x385ce6,_0x2910cb,this['lineStart']+_0x35d7fa,this['block']['hash'],this['lineStart']+this['line']['text']['length']),this['stack']['push'](this['block']);}['startComposite'](_0x37ce29,_0x3ae84c,_0x123482=0x0){this['startContext'](this['parser']['getNodeType'](_0x37ce29),_0x3ae84c,_0x123482);}['addNode'](_0x3ca974,_0x2419d0,_0x385957){'number'==typeof _0x3ca974&&(_0x3ca974=new Tree(this['parser']['nodeSet']['types'][_0x3ca974],none,none,(null!=_0x385957?_0x385957:this['prevLineEnd']())-_0x2419d0)),this['block']['addChild'](_0x3ca974,_0x2419d0-this['block']['from']);}['addElement'](_0x4137f7){this['block']['addChild'](_0x4137f7['toTree'](this['parser']['nodeSet']),_0x4137f7['from']-this['block']['from']);}['addLeafElement'](_0x82b6e5,_0x549d81){this['addNode'](this['buffer']['writeElements'](injectMarks(_0x549d81['children'],_0x82b6e5['marks']),-_0x549d81['from'])['finish'](_0x549d81['type'],_0x549d81['to']-_0x549d81['from']),_0x549d81['from']);}['finishContext'](){let _0x269e30=this['stack']['pop'](),_0x5d2a4d=this['stack'][this['stack']['length']-0x1];_0x5d2a4d['addChild'](_0x269e30['toTree'](this['parser']['nodeSet']),_0x269e30['from']-_0x5d2a4d['from']),this['block']=_0x5d2a4d;}['finish'](){for(;this['stack']['length']>0x1;)this['finishContext']();return this['addGaps'](this['block']['toTree'](this['parser']['nodeSet'],this['lineStart']));}['addGaps'](_0x1fe737){return this['ranges']['length']>0x1?injectGaps(this['ranges'],0x0,_0x1fe737['topNode'],this['ranges'][0x0]['from'],this['reusePlaceholders']):_0x1fe737;}['finishLeaf'](_0x8bf3a4){for(let _0x45e48a of _0x8bf3a4['parsers'])if(_0x45e48a['finish'](this,_0x8bf3a4))return;let _0xbfc7aa=injectMarks(this['parser']['parseInline'](_0x8bf3a4['content'],_0x8bf3a4['start']),_0x8bf3a4['marks']);this['addNode'](this['buffer']['writeElements'](_0xbfc7aa,-_0x8bf3a4['start'])['finish'](Type['Paragraph'],_0x8bf3a4['content']['length']),_0x8bf3a4['start']);}['elt'](_0x25b410,_0x47ab99,_0x5a5d17,_0x515e06){return'string'==typeof _0x25b410?elt(this['parser']['getNodeType'](_0x25b410),_0x47ab99,_0x5a5d17,_0x515e06):new TreeElement(_0x25b410,_0x47ab99);}get['buffer'](){return new Buffer$1(this['parser']['nodeSet']);}}function injectGaps(_0x2c0d74,_0x360bfa,_0x15c539,_0x45f392,_0x1783c6){let _0x534d1a=_0x2c0d74[_0x360bfa]['to'],_0x565434=[],_0x2983e1=[],_0x2a408c=_0x15c539['from']+_0x45f392;function _0x4e60a5(_0x5714b0,_0x3d3eec){for(;_0x3d3eec?_0x5714b0>=_0x534d1a:_0x5714b0>_0x534d1a;){let _0x45f07f=_0x2c0d74[_0x360bfa+0x1]['from']-_0x534d1a;_0x45f392+=_0x45f07f,_0x5714b0+=_0x45f07f,_0x360bfa++,_0x534d1a=_0x2c0d74[_0x360bfa]['to'];}}for(let _0x14b52e=_0x15c539['firstChild'];_0x14b52e;_0x14b52e=_0x14b52e['nextSibling']){_0x4e60a5(_0x14b52e['from']+_0x45f392,!0x0);let _0x1d8e03,_0x48e1c7=_0x14b52e['from']+_0x45f392,_0x22c295=_0x1783c6['get'](_0x14b52e['tree']);_0x22c295?_0x1d8e03=_0x22c295:_0x14b52e['to']+_0x45f392>_0x534d1a?(_0x1d8e03=injectGaps(_0x2c0d74,_0x360bfa,_0x14b52e,_0x45f392,_0x1783c6),_0x4e60a5(_0x14b52e['to']+_0x45f392,!0x1)):_0x1d8e03=_0x14b52e['toTree'](),_0x565434['push'](_0x1d8e03),_0x2983e1['push'](_0x48e1c7-_0x2a408c);}return _0x4e60a5(_0x15c539['to']+_0x45f392,!0x1),new Tree(_0x15c539['type'],_0x565434,_0x2983e1,_0x15c539['to']+_0x45f392-_0x2a408c,_0x15c539['tree']?_0x15c539['tree']['propValues']:void 0x0);}class MarkdownParser extends Parser{constructor(_0x14eb34,_0x453ac6,_0x374173,_0x1b8a07,_0x2ea7f5,_0x225a9c,_0x12a015,_0x53561b,_0x5919fe){super(),this['nodeSet']=_0x14eb34,this['blockParsers']=_0x453ac6,this['leafBlockParsers']=_0x374173,this['blockNames']=_0x1b8a07,this['endLeafBlock']=_0x2ea7f5,this['skipContextMarkup']=_0x225a9c,this['inlineParsers']=_0x12a015,this['inlineNames']=_0x53561b,this['wrappers']=_0x5919fe,this['nodeTypes']=Object['create'](null);for(let t of _0x14eb34['types'])this['nodeTypes'][t['name']]=t['id'];}['createParse'](_0x2c78c7,_0x4688ca,_0x3daad0){let _0x5e0454=new BlockContext(this,_0x2c78c7,_0x4688ca,_0x3daad0);for(let _0x2556fb of this['wrappers'])_0x5e0454=_0x2556fb(_0x5e0454,_0x2c78c7,_0x4688ca,_0x3daad0);return _0x5e0454;}['configure'](_0x5a0a65){let _0x506356=resolveConfig(_0x5a0a65);if(!_0x506356)return this;let {nodeSet:_0x33e5de,skipContextMarkup:_0xe3e443}=this,_0x3f241f=this['blockParsers']['slice'](),_0x399c36=this['leafBlockParsers']['slice'](),_0x317441=this['blockNames']['slice'](),_0x561658=this['inlineParsers']['slice'](),_0x49bebe=this['inlineNames']['slice'](),_0x113e03=this['endLeafBlock']['slice'](),_0x1a4c7c=this['wrappers'];if(nonEmpty(_0x506356['defineNodes'])){_0xe3e443=Object['assign']({},_0xe3e443);let _0xf40bdc,_0x12007d=_0x33e5de['types']['slice']();for(let _0x490b69 of _0x506356['defineNodes']){let {name:_0x11cfea,block:_0x20a848,composite:_0x6d23e7,style:_0x121f02}='string'==typeof _0x490b69?{'name':_0x490b69}:_0x490b69;if(_0x12007d['some'](t=>t['name']==_0x11cfea))continue;_0x6d23e7&&(_0xe3e443[_0x12007d['length']]=(_0x432272,_0x4f7785,_0x7ea4b9)=>_0x6d23e7(_0x4f7785,_0x7ea4b9,_0x432272['value']));let _0x49535b=_0x12007d['length'],_0x2c6ff8=_0x6d23e7?['Block','BlockContext']:_0x20a848?_0x49535b>=Type['ATXHeading1']&&_0x49535b<=Type['SetextHeading2']?['Block','LeafBlock','Heading']:['Block','LeafBlock']:void 0x0;_0x12007d['push'](NodeType['define']({'id':_0x49535b,'name':_0x11cfea,'props':_0x2c6ff8&&[[NodeProp['group'],_0x2c6ff8]]})),_0x121f02&&(_0xf40bdc||(_0xf40bdc={}),Array['isArray'](_0x121f02)||_0x121f02 instanceof Tag?_0xf40bdc[_0x11cfea]=_0x121f02:Object['assign'](_0xf40bdc,_0x121f02));}_0x33e5de=new NodeSet(_0x12007d),_0xf40bdc&&(_0x33e5de=_0x33e5de['extend'](styleTags(_0xf40bdc)));}if(nonEmpty(_0x506356['props'])&&(_0x33e5de=_0x33e5de['extend'](..._0x506356['props'])),nonEmpty(_0x506356['remove']))for(let _0x317996 of _0x506356['remove']){let _0x4fddfa=this['blockNames']['indexOf'](_0x317996),_0x92d64b=this['inlineNames']['indexOf'](_0x317996);_0x4fddfa>-0x1&&(_0x3f241f[_0x4fddfa]=_0x399c36[_0x4fddfa]=void 0x0),_0x92d64b>-0x1&&(_0x561658[_0x92d64b]=void 0x0);}if(nonEmpty(_0x506356['parseBlock']))for(let _0x477d52 of _0x506356['parseBlock']){let _0x5f5750=_0x317441['indexOf'](_0x477d52['name']);if(_0x5f5750>-0x1)_0x3f241f[_0x5f5750]=_0x477d52['parse'],_0x399c36[_0x5f5750]=_0x477d52['leaf'];else{let _0x53b37e=_0x477d52['before']?findName(_0x317441,_0x477d52['before']):_0x477d52['after']?findName(_0x317441,_0x477d52['after'])+0x1:_0x317441['length']-0x1;_0x3f241f['splice'](_0x53b37e,0x0,_0x477d52['parse']),_0x399c36['splice'](_0x53b37e,0x0,_0x477d52['leaf']),_0x317441['splice'](_0x53b37e,0x0,_0x477d52['name']);}_0x477d52['endLeaf']&&_0x113e03['push'](_0x477d52['endLeaf']);}if(nonEmpty(_0x506356['parseInline']))for(let _0x5def82 of _0x506356['parseInline']){let _0x3df9f8=_0x49bebe['indexOf'](_0x5def82['name']);if(_0x3df9f8>-0x1)_0x561658[_0x3df9f8]=_0x5def82['parse'];else{let _0x2e1690=_0x5def82['before']?findName(_0x49bebe,_0x5def82['before']):_0x5def82['after']?findName(_0x49bebe,_0x5def82['after'])+0x1:_0x49bebe['length']-0x1;_0x561658['splice'](_0x2e1690,0x0,_0x5def82['parse']),_0x49bebe['splice'](_0x2e1690,0x0,_0x5def82['name']);}}return _0x506356['wrap']&&(_0x1a4c7c=_0x1a4c7c['concat'](_0x506356['wrap'])),new MarkdownParser(_0x33e5de,_0x3f241f,_0x399c36,_0x317441,_0x113e03,_0xe3e443,_0x561658,_0x49bebe,_0x1a4c7c);}['getNodeType'](_0x3df4e1){let _0x21839e=this['nodeTypes'][_0x3df4e1];if(null==_0x21839e)throw new RangeError('Unknown\x20node\x20type\x20\x27'+_0x3df4e1+'\x27');return _0x21839e;}['parseInline'](_0x5053a6,_0x310c65){let _0x1e0428=new InlineContext(this,_0x5053a6,_0x310c65);t:for(let _0x3109f8=_0x310c65;_0x3109f8<_0x1e0428['end'];){let _0x3a36a0=_0x1e0428['char'](_0x3109f8);for(let _0x172f70 of this['inlineParsers'])if(_0x172f70){let _0x4bc2d2=_0x172f70(_0x1e0428,_0x3a36a0,_0x3109f8);if(_0x4bc2d2>=0x0){_0x3109f8=_0x4bc2d2;continue t;}}_0x3109f8++;}return _0x1e0428['resolveMarkers'](0x0);}}function nonEmpty(_0x1913d9){return null!=_0x1913d9&&_0x1913d9['length']>0x0;}function resolveConfig(_0x48b0fb){if(!Array['isArray'](_0x48b0fb))return _0x48b0fb;if(0x0==_0x48b0fb['length'])return null;let _0x40cf45=resolveConfig(_0x48b0fb[0x0]);if(0x1==_0x48b0fb['length'])return _0x40cf45;let _0x25b079=resolveConfig(_0x48b0fb['slice'](0x1));if(!_0x25b079||!_0x40cf45)return _0x40cf45||_0x25b079;let _0x2db6a1=(_0xd72a24,_0x49b4d4)=>(_0xd72a24||none)['concat'](_0x49b4d4||none),_0x34f29d=_0x40cf45['wrap'],_0x31e176=_0x25b079['wrap'];return{'props':_0x2db6a1(_0x40cf45['props'],_0x25b079['props']),'defineNodes':_0x2db6a1(_0x40cf45['defineNodes'],_0x25b079['defineNodes']),'parseBlock':_0x2db6a1(_0x40cf45['parseBlock'],_0x25b079['parseBlock']),'parseInline':_0x2db6a1(_0x40cf45['parseInline'],_0x25b079['parseInline']),'remove':_0x2db6a1(_0x40cf45['remove'],_0x25b079['remove']),'wrap':_0x34f29d?_0x31e176?(_0x53948e,_0x54690a,_0x3ca1fa,_0x11bce2)=>_0x34f29d(_0x31e176(_0x53948e,_0x54690a,_0x3ca1fa,_0x11bce2),_0x54690a,_0x3ca1fa,_0x11bce2):_0x34f29d:_0x31e176};}function findName(_0x6e95f6,_0x56df2d){let _0x5b42d5=_0x6e95f6['indexOf'](_0x56df2d);if(_0x5b42d5<0x0)throw new RangeError('Position\x20specified\x20relative\x20to\x20unknown\x20parser\x20'+_0x56df2d);return _0x5b42d5;}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(_0x523af0){this['nodeSet']=_0x523af0,this['content']=[],this['nodes']=[];}['write'](_0x43ad73,_0x575a73,_0x4937db,_0x580518=0x0){return this['content']['push'](_0x43ad73,_0x575a73,_0x4937db,0x4+0x4*_0x580518),this;}['writeElements'](_0xf8188f,_0x20e8c2=0x0){for(let _0x329498 of _0xf8188f)_0x329498['writeTo'](this,_0x20e8c2);return this;}['finish'](_0x195b74,_0x2a9939){return Tree['build']({'buffer':this['content'],'nodeSet':this['nodeSet'],'reused':this['nodes'],'topID':_0x195b74,'length':_0x2a9939});}},Element$1=class{constructor(_0x322b71,_0x141f9f,_0xcf8f2d,_0x3540dc=none){this['type']=_0x322b71,this['from']=_0x141f9f,this['to']=_0xcf8f2d,this['children']=_0x3540dc;}['writeTo'](_0x2b546f,_0x586e37){let _0x41d2cf=_0x2b546f['content']['length'];_0x2b546f['writeElements'](this['children'],_0x586e37),_0x2b546f['content']['push'](this['type'],this['from']+_0x586e37,this['to']+_0x586e37,_0x2b546f['content']['length']+0x4-_0x41d2cf);}['toTree'](_0x4ef585){return new Buffer$1(_0x4ef585)['writeElements'](this['children'],-this['from'])['finish'](this['type'],this['to']-this['from']);}};class TreeElement{constructor(_0x468245,_0x202489){this['tree']=_0x468245,this['from']=_0x202489;}get['to'](){return this['from']+this['tree']['length'];}get['type'](){return this['tree']['type']['id'];}get['children'](){return none;}['writeTo'](_0x502bfe,_0xfa505b){_0x502bfe['nodes']['push'](this['tree']),_0x502bfe['content']['push'](_0x502bfe['nodes']['length']-0x1,this['from']+_0xfa505b,this['to']+_0xfa505b,-0x1);}['toTree'](){return this['tree'];}}function elt(_0x1d3690,_0x327acb,_0x333ebb,_0x20e3a6){return new Element$1(_0x1d3690,_0x327acb,_0x333ebb,_0x20e3a6);}const EmphasisUnderscore={'resolve':'Emphasis','mark':'EmphasisMark'},EmphasisAsterisk={'resolve':'Emphasis','mark':'EmphasisMark'},LinkStart={},ImageStart={};class InlineDelimiter{constructor(_0x3caa2b,_0x380bc8,_0x2b37e6,_0x5ce071){this['type']=_0x3caa2b,this['from']=_0x380bc8,this['to']=_0x2b37e6,this['side']=_0x5ce071;}}const Escapable='!\x22#$%&\x27()*+,-./:;<=>?@[\x5c]^_`{|}~';let Punctuation=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Punctuation=new RegExp('[\x5cp{S}|\x5cp{P}]','u');}catch(_0x4b1d36){}const DefaultInline={'Escape'(_0x22395f,_0x277cec,_0xdd6772){if(0x5c!=_0x277cec||_0xdd6772==_0x22395f['end']-0x1)return-0x1;let _0x25e43a=_0x22395f['char'](_0xdd6772+0x1);for(let _0x3ccf97=0x0;_0x3ccf97<Escapable['length'];_0x3ccf97++)if(Escapable['charCodeAt'](_0x3ccf97)==_0x25e43a)return _0x22395f['append'](elt(Type['Escape'],_0xdd6772,_0xdd6772+0x2));return-0x1;},'Entity'(_0x3042d1,_0x4b0bc7,_0x3661ad){if(0x26!=_0x4b0bc7)return-0x1;let _0x134f92=/^(?:#\d+|#x[a-f\d]+|\w+);/i['exec'](_0x3042d1['slice'](_0x3661ad+0x1,_0x3661ad+0x1f));return _0x134f92?_0x3042d1['append'](elt(Type['Entity'],_0x3661ad,_0x3661ad+0x1+_0x134f92[0x0]['length'])):-0x1;},'InlineCode'(_0x224642,_0x156086,_0x1eb688){if(0x60!=_0x156086||_0x1eb688&&0x60==_0x224642['char'](_0x1eb688-0x1))return-0x1;let _0x304d06=_0x1eb688+0x1;for(;_0x304d06<_0x224642['end']&&0x60==_0x224642['char'](_0x304d06);)_0x304d06++;let _0x119f61=_0x304d06-_0x1eb688,_0x5b6e4c=0x0;for(;_0x304d06<_0x224642['end'];_0x304d06++)if(0x60==_0x224642['char'](_0x304d06)){if(_0x5b6e4c++,_0x5b6e4c==_0x119f61&&0x60!=_0x224642['char'](_0x304d06+0x1))return _0x224642['append'](elt(Type['InlineCode'],_0x1eb688,_0x304d06+0x1,[elt(Type['CodeMark'],_0x1eb688,_0x1eb688+_0x119f61),elt(Type['CodeMark'],_0x304d06+0x1-_0x119f61,_0x304d06+0x1)]));}else _0x5b6e4c=0x0;return-0x1;},'HTMLTag'(_0x53b581,_0x2e2d0b,_0x48e321){if(0x3c!=_0x2e2d0b||_0x48e321==_0x53b581['end']-0x1)return-0x1;let _0x38345b=_0x53b581['slice'](_0x48e321+0x1,_0x53b581['end']),_0x283682=/^(?:[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'](_0x38345b);if(_0x283682)return _0x53b581['append'](elt(Type['Autolink'],_0x48e321,_0x48e321+0x1+_0x283682[0x0]['length'],[elt(Type['LinkMark'],_0x48e321,_0x48e321+0x1),elt(Type['URL'],_0x48e321+0x1,_0x48e321+_0x283682[0x0]['length']),elt(Type['LinkMark'],_0x48e321+_0x283682[0x0]['length'],_0x48e321+0x1+_0x283682[0x0]['length'])]));let _0x1683db=/^!--[^>](?:-[^-]|[^-])*?-->/i['exec'](_0x38345b);if(_0x1683db)return _0x53b581['append'](elt(Type['Comment'],_0x48e321,_0x48e321+0x1+_0x1683db[0x0]['length']));let _0x35d6f1=/^\?[^]*?\?>/['exec'](_0x38345b);if(_0x35d6f1)return _0x53b581['append'](elt(Type['ProcessingInstruction'],_0x48e321,_0x48e321+0x1+_0x35d6f1[0x0]['length']));let _0x37eecf=/^(?:![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'](_0x38345b);return _0x37eecf?_0x53b581['append'](elt(Type['HTMLTag'],_0x48e321,_0x48e321+0x1+_0x37eecf[0x0]['length'])):-0x1;},'Emphasis'(_0xf567ac,_0x5c6a74,_0x2fc169){if(0x5f!=_0x5c6a74&&0x2a!=_0x5c6a74)return-0x1;let _0x5e8771=_0x2fc169+0x1;for(;_0xf567ac['char'](_0x5e8771)==_0x5c6a74;)_0x5e8771++;let _0x1d9050=_0xf567ac['slice'](_0x2fc169-0x1,_0x2fc169),_0x240f7c=_0xf567ac['slice'](_0x5e8771,_0x5e8771+0x1),_0x5ebbca=Punctuation['test'](_0x1d9050),_0x3db236=Punctuation['test'](_0x240f7c),_0x189b81=/\s|^$/['test'](_0x1d9050),_0x1860fa=/\s|^$/['test'](_0x240f7c),_0x57b7cd=!_0x1860fa&&(!_0x3db236||_0x189b81||_0x5ebbca),_0x469204=!_0x189b81&&(!_0x5ebbca||_0x1860fa||_0x3db236),_0x329808=_0x57b7cd&&(0x2a==_0x5c6a74||!_0x469204||_0x5ebbca),_0x8fb936=_0x469204&&(0x2a==_0x5c6a74||!_0x57b7cd||_0x3db236);return _0xf567ac['append'](new InlineDelimiter(0x5f==_0x5c6a74?EmphasisUnderscore:EmphasisAsterisk,_0x2fc169,_0x5e8771,(_0x329808?0x1:0x0)|(_0x8fb936?0x2:0x0)));},'HardBreak'(_0x4e383b,_0x1fcf40,_0x1533d4){if(0x5c==_0x1fcf40&&0xa==_0x4e383b['char'](_0x1533d4+0x1))return _0x4e383b['append'](elt(Type['HardBreak'],_0x1533d4,_0x1533d4+0x2));if(0x20==_0x1fcf40){let _0x27ef4e=_0x1533d4+0x1;for(;0x20==_0x4e383b['char'](_0x27ef4e);)_0x27ef4e++;if(0xa==_0x4e383b['char'](_0x27ef4e)&&_0x27ef4e>=_0x1533d4+0x2)return _0x4e383b['append'](elt(Type['HardBreak'],_0x1533d4,_0x27ef4e+0x1));}return-0x1;},'Link':(_0x23f0e9,_0x3d9fea,_0x1c4979)=>0x5b==_0x3d9fea?_0x23f0e9['append'](new InlineDelimiter(LinkStart,_0x1c4979,_0x1c4979+0x1,0x1)):-0x1,'Image':(_0x16f080,_0x1f38fa,_0x573f63)=>0x21==_0x1f38fa&&0x5b==_0x16f080['char'](_0x573f63+0x1)?_0x16f080['append'](new InlineDelimiter(ImageStart,_0x573f63,_0x573f63+0x2,0x1)):-0x1,'LinkEnd'(_0x59160a,_0x30c5db,_0x19bdbd){if(0x5d!=_0x30c5db)return-0x1;for(let _0x5852ab=_0x59160a['parts']['length']-0x1;_0x5852ab>=0x0;_0x5852ab--){let _0x57f8f5=_0x59160a['parts'][_0x5852ab];if(_0x57f8f5 instanceof InlineDelimiter&&(_0x57f8f5['type']==LinkStart||_0x57f8f5['type']==ImageStart)){if(!_0x57f8f5['side']||_0x59160a['skipSpace'](_0x57f8f5['to'])==_0x19bdbd&&!/[(\[]/['test'](_0x59160a['slice'](_0x19bdbd+0x1,_0x19bdbd+0x2)))return _0x59160a['parts'][_0x5852ab]=null,-0x1;let _0x571061=_0x59160a['takeContent'](_0x5852ab),_0x72059a=_0x59160a['parts'][_0x5852ab]=finishLink(_0x59160a,_0x571061,_0x57f8f5['type']==LinkStart?Type['Link']:Type['Image'],_0x57f8f5['from'],_0x19bdbd+0x1);if(_0x57f8f5['type']==LinkStart)for(let _0x2cc211=0x0;_0x2cc211<_0x5852ab;_0x2cc211++){let _0x494a9f=_0x59160a['parts'][_0x2cc211];_0x494a9f instanceof InlineDelimiter&&_0x494a9f['type']==LinkStart&&(_0x494a9f['side']=0x0);}return _0x72059a['to'];}}return-0x1;}};function finishLink(_0x451aa6,_0x59cdcc,_0x34afe4,_0x1be2e2,_0xd4da34){let {text:_0x39621}=_0x451aa6,_0x231065=_0x451aa6['char'](_0xd4da34),_0x577ad7=_0xd4da34;if(_0x59cdcc['unshift'](elt(Type['LinkMark'],_0x1be2e2,_0x1be2e2+(_0x34afe4==Type['Image']?0x2:0x1))),_0x59cdcc['push'](elt(Type['LinkMark'],_0xd4da34-0x1,_0xd4da34)),0x28==_0x231065){let _0x38a205,_0x5ac48e=_0x451aa6['skipSpace'](_0xd4da34+0x1),_0x2d4935=parseURL(_0x39621,_0x5ac48e-_0x451aa6['offset'],_0x451aa6['offset']);_0x2d4935&&(_0x5ac48e=_0x451aa6['skipSpace'](_0x2d4935['to']),_0x5ac48e!=_0x2d4935['to']&&(_0x38a205=parseLinkTitle(_0x39621,_0x5ac48e-_0x451aa6['offset'],_0x451aa6['offset']),_0x38a205&&(_0x5ac48e=_0x451aa6['skipSpace'](_0x38a205['to'])))),0x29==_0x451aa6['char'](_0x5ac48e)&&(_0x59cdcc['push'](elt(Type['LinkMark'],_0xd4da34,_0xd4da34+0x1)),_0x577ad7=_0x5ac48e+0x1,_0x2d4935&&_0x59cdcc['push'](_0x2d4935),_0x38a205&&_0x59cdcc['push'](_0x38a205),_0x59cdcc['push'](elt(Type['LinkMark'],_0x5ac48e,_0x577ad7)));}else{if(0x5b==_0x231065){let _0x3d88d4=parseLinkLabel(_0x39621,_0xd4da34-_0x451aa6['offset'],_0x451aa6['offset'],!0x1);_0x3d88d4&&(_0x59cdcc['push'](_0x3d88d4),_0x577ad7=_0x3d88d4['to']);}}return elt(_0x34afe4,_0x1be2e2,_0x577ad7,_0x59cdcc);}function parseURL(_0x4efdb2,_0x3c99ec,_0x1c970c){if(0x3c==_0x4efdb2['charCodeAt'](_0x3c99ec)){for(let _0x541803=_0x3c99ec+0x1;_0x541803<_0x4efdb2['length'];_0x541803++){let _0x11f9ae=_0x4efdb2['charCodeAt'](_0x541803);if(0x3e==_0x11f9ae)return elt(Type['URL'],_0x3c99ec+_0x1c970c,_0x541803+0x1+_0x1c970c);if(0x3c==_0x11f9ae||0xa==_0x11f9ae)return!0x1;}return null;}{let _0x3b41fd=0x0,_0x42994e=_0x3c99ec;for(let _0x1e07d1=!0x1;_0x42994e<_0x4efdb2['length'];_0x42994e++){let _0x569ded=_0x4efdb2['charCodeAt'](_0x42994e);if(space(_0x569ded))break;if(_0x1e07d1)_0x1e07d1=!0x1;else{if(0x28==_0x569ded)_0x3b41fd++;else{if(0x29==_0x569ded){if(!_0x3b41fd)break;_0x3b41fd--;}else 0x5c==_0x569ded&&(_0x1e07d1=!0x0);}}}return _0x42994e>_0x3c99ec?elt(Type['URL'],_0x3c99ec+_0x1c970c,_0x42994e+_0x1c970c):_0x42994e==_0x4efdb2['length']&&null;}}function parseLinkTitle(_0x54d12a,_0x5a8145,_0x2560de){let _0xd18eb1=_0x54d12a['charCodeAt'](_0x5a8145);if(0x27!=_0xd18eb1&&0x22!=_0xd18eb1&&0x28!=_0xd18eb1)return!0x1;let _0x5381fb=0x28==_0xd18eb1?0x29:_0xd18eb1;for(let _0x14c2c4=_0x5a8145+0x1,_0x73afd0=!0x1;_0x14c2c4<_0x54d12a['length'];_0x14c2c4++){let _0x35b6e2=_0x54d12a['charCodeAt'](_0x14c2c4);if(_0x73afd0)_0x73afd0=!0x1;else{if(_0x35b6e2==_0x5381fb)return elt(Type['LinkTitle'],_0x5a8145+_0x2560de,_0x14c2c4+0x1+_0x2560de);0x5c==_0x35b6e2&&(_0x73afd0=!0x0);}}return null;}function parseLinkLabel(_0x532f3b,_0x374540,_0x35528f,_0x2d7809){for(let _0x21a7a2=!0x1,_0x39d020=_0x374540+0x1,_0x273f34=Math['min'](_0x532f3b['length'],_0x39d020+0x3e7);_0x39d020<_0x273f34;_0x39d020++){let _0x3a7f6e=_0x532f3b['charCodeAt'](_0x39d020);if(_0x21a7a2)_0x21a7a2=!0x1;else{if(0x5d==_0x3a7f6e)return!_0x2d7809&&elt(Type['LinkLabel'],_0x374540+_0x35528f,_0x39d020+0x1+_0x35528f);if(_0x2d7809&&!space(_0x3a7f6e)&&(_0x2d7809=!0x1),0x5b==_0x3a7f6e)return!0x1;0x5c==_0x3a7f6e&&(_0x21a7a2=!0x0);}}return null;}class InlineContext{constructor(_0x4cbb40,_0x3864b,_0x3ba773){this['parser']=_0x4cbb40,this['text']=_0x3864b,this['offset']=_0x3ba773,this['parts']=[];}['char'](_0xf3eac2){return _0xf3eac2>=this['end']?-0x1:this['text']['charCodeAt'](_0xf3eac2-this['offset']);}get['end'](){return this['offset']+this['text']['length'];}['slice'](_0x31c450,_0x27e803){return this['text']['slice'](_0x31c450-this['offset'],_0x27e803-this['offset']);}['append'](_0x183781){return this['parts']['push'](_0x183781),_0x183781['to'];}['addDelimiter'](_0x2678a1,_0x399a7f,_0xdd42e8,_0x1f635b,_0x1315cc){return this['append'](new InlineDelimiter(_0x2678a1,_0x399a7f,_0xdd42e8,(_0x1f635b?0x1:0x0)|(_0x1315cc?0x2:0x0)));}get['hasOpenLink'](){for(let _0x9db988=this['parts']['length']-0x1;_0x9db988>=0x0;_0x9db988--){let _0x44e79f=this['parts'][_0x9db988];if(_0x44e79f instanceof InlineDelimiter&&(_0x44e79f['type']==LinkStart||_0x44e79f['type']==ImageStart))return!0x0;}return!0x1;}['addElement'](_0x5d28eb){return this['append'](_0x5d28eb);}['resolveMarkers'](_0x47478b){for(let _0x5e45b8=_0x47478b;_0x5e45b8<this['parts']['length'];_0x5e45b8++){let _0x43cdd0=this['parts'][_0x5e45b8];if(!(_0x43cdd0 instanceof InlineDelimiter&&_0x43cdd0['type']['resolve']&&0x2&_0x43cdd0['side']))continue;let _0x2ebc01,_0x4b4b29=_0x43cdd0['type']==EmphasisUnderscore||_0x43cdd0['type']==EmphasisAsterisk,_0x1a5bc6=_0x43cdd0['to']-_0x43cdd0['from'],_0xbd5611=_0x5e45b8-0x1;for(;_0xbd5611>=_0x47478b;_0xbd5611--){let _0x3807b2=this['parts'][_0xbd5611];if(_0x3807b2 instanceof InlineDelimiter&&0x1&_0x3807b2['side']&&_0x3807b2['type']==_0x43cdd0['type']&&!(_0x4b4b29&&(0x1&_0x43cdd0['side']||0x2&_0x3807b2['side'])&&(_0x3807b2['to']-_0x3807b2['from']+_0x1a5bc6)%0x3==0x0&&((_0x3807b2['to']-_0x3807b2['from'])%0x3||_0x1a5bc6%0x3))){_0x2ebc01=_0x3807b2;break;}}if(!_0x2ebc01)continue;let _0x39ae7f=_0x43cdd0['type']['resolve'],_0xd8ca0a=[],_0x2ca6ee=_0x2ebc01['from'],_0x4afc36=_0x43cdd0['to'];if(_0x4b4b29){let _0x75255d=Math['min'](0x2,_0x2ebc01['to']-_0x2ebc01['from'],_0x1a5bc6);_0x2ca6ee=_0x2ebc01['to']-_0x75255d,_0x4afc36=_0x43cdd0['from']+_0x75255d,_0x39ae7f=0x1==_0x75255d?'Emphasis':'StrongEmphasis';}_0x2ebc01['type']['mark']&&_0xd8ca0a['push'](this['elt'](_0x2ebc01['type']['mark'],_0x2ca6ee,_0x2ebc01['to']));for(let _0x52186c=_0xbd5611+0x1;_0x52186c<_0x5e45b8;_0x52186c++)this['parts'][_0x52186c]instanceof Element$1&&_0xd8ca0a['push'](this['parts'][_0x52186c]),this['parts'][_0x52186c]=null;_0x43cdd0['type']['mark']&&_0xd8ca0a['push'](this['elt'](_0x43cdd0['type']['mark'],_0x43cdd0['from'],_0x4afc36));let _0x257825=this['elt'](_0x39ae7f,_0x2ca6ee,_0x4afc36,_0xd8ca0a);this['parts'][_0xbd5611]=_0x4b4b29&&_0x2ebc01['from']!=_0x2ca6ee?new InlineDelimiter(_0x2ebc01['type'],_0x2ebc01['from'],_0x2ca6ee,_0x2ebc01['side']):null,(this['parts'][_0x5e45b8]=_0x4b4b29&&_0x43cdd0['to']!=_0x4afc36?new InlineDelimiter(_0x43cdd0['type'],_0x4afc36,_0x43cdd0['to'],_0x43cdd0['side']):null)?this['parts']['splice'](_0x5e45b8,0x0,_0x257825):this['parts'][_0x5e45b8]=_0x257825;}let _0xcb8a78=[];for(let _0x497014=_0x47478b;_0x497014<this['parts']['length'];_0x497014++){let _0x14a395=this['parts'][_0x497014];_0x14a395 instanceof Element$1&&_0xcb8a78['push'](_0x14a395);}return _0xcb8a78;}['findOpeningDelimiter'](_0x258084){for(let _0x52b099=this['parts']['length']-0x1;_0x52b099>=0x0;_0x52b099--){let _0x5e0566=this['parts'][_0x52b099];if(_0x5e0566 instanceof InlineDelimiter&&_0x5e0566['type']==_0x258084&&0x1&_0x5e0566['side'])return _0x52b099;}return null;}['takeContent'](_0x30e95e){let _0x2137bf=this['resolveMarkers'](_0x30e95e);return this['parts']['length']=_0x30e95e,_0x2137bf;}['getDelimiterAt'](_0x1448c3){let _0x53b0b5=this['parts'][_0x1448c3];return _0x53b0b5 instanceof InlineDelimiter?_0x53b0b5:null;}['skipSpace'](_0x135e3a){return skipSpace(this['text'],_0x135e3a-this['offset'])+this['offset'];}['elt'](_0x475d2c,_0x5954c1,_0x3ec0bf,_0xc8fa25){return'string'==typeof _0x475d2c?elt(this['parser']['getNodeType'](_0x475d2c),_0x5954c1,_0x3ec0bf,_0xc8fa25):new TreeElement(_0x475d2c,_0x5954c1);}}function injectMarks(_0x24e8ef,_0x869671){if(!_0x869671['length'])return _0x24e8ef;if(!_0x24e8ef['length'])return _0x869671;let _0x3c4afd=_0x24e8ef['slice'](),_0x5f52eb=0x0;for(let _0x581176 of _0x869671){for(;_0x5f52eb<_0x3c4afd['length']&&_0x3c4afd[_0x5f52eb]['to']<_0x581176['to'];)_0x5f52eb++;if(_0x5f52eb<_0x3c4afd['length']&&_0x3c4afd[_0x5f52eb]['from']<_0x581176['from']){let _0x28aff5=_0x3c4afd[_0x5f52eb];_0x28aff5 instanceof Element$1&&(_0x3c4afd[_0x5f52eb]=new Element$1(_0x28aff5['type'],_0x28aff5['from'],_0x28aff5['to'],injectMarks(_0x28aff5['children'],[_0x581176])));}else _0x3c4afd['splice'](_0x5f52eb++,0x0,_0x581176);}return _0x3c4afd;}InlineContext['linkStart']=LinkStart,InlineContext['imageStart']=ImageStart;const NotLast=[Type['CodeBlock'],Type['ListItem'],Type['OrderedList'],Type['BulletList']];class FragmentCursor{constructor(_0x10cb43,_0x5b4a8c){this['fragments']=_0x10cb43,this['input']=_0x5b4a8c,this['i']=0x0,this['fragment']=null,this['fragmentEnd']=-0x1,this['cursor']=null,_0x10cb43['length']&&(this['fragment']=_0x10cb43[this['i']++]);}['nextFragment'](){this['fragment']=this['i']<this['fragments']['length']?this['fragments'][this['i']++]:null,this['cursor']=null,this['fragmentEnd']=-0x1;}['moveTo'](_0x17e245,_0x6cd0a7){for(;this['fragment']&&this['fragment']['to']<=_0x17e245;)this['nextFragment']();if(!this['fragment']||this['fragment']['from']>(_0x17e245?_0x17e245-0x1:0x0))return!0x1;if(this['fragmentEnd']<0x0){let _0x183297=this['fragment']['to'];for(;_0x183297>0x0&&'\x0a'!=this['input']['read'](_0x183297-0x1,_0x183297);)_0x183297--;this['fragmentEnd']=_0x183297?_0x183297-0x1:0x0;}let _0x320f8f=this['cursor'];_0x320f8f||(_0x320f8f=this['cursor']=this['fragment']['tree']['cursor'](),_0x320f8f['firstChild']());let _0x17a13a=_0x17e245+this['fragment']['offset'];for(;_0x320f8f['to']<=_0x17a13a;)if(!_0x320f8f['parent']())return!0x1;for(;;){if(_0x320f8f['from']>=_0x17a13a)return this['fragment']['from']<=_0x6cd0a7;if(!_0x320f8f['childAfter'](_0x17a13a))return!0x1;}}['matches'](_0x2d46f5){let _0xdb7bf2=this['cursor']['tree'];return _0xdb7bf2&&_0xdb7bf2['prop'](NodeProp['contextHash'])==_0x2d46f5;}['takeNodes'](_0x30eee4){let _0x63c3c1=this['cursor'],_0x1a80b0=this['fragment']['offset'],_0xc23a3a=this['fragmentEnd']-(this['fragment']['openEnd']?0x1:0x0),_0x385bc5=_0x30eee4['absoluteLineStart'],_0x5644fb=_0x385bc5,_0x5c719b=_0x30eee4['block']['children']['length'],_0x45227a=_0x5644fb,_0x1bdbde=_0x5c719b;for(;;){if(_0x63c3c1['to']-_0x1a80b0>_0xc23a3a){if(_0x63c3c1['type']['isAnonymous']&&_0x63c3c1['firstChild']())continue;break;}let _0x3a1438=toRelative(_0x63c3c1['from']-_0x1a80b0,_0x30eee4['ranges']);if(_0x63c3c1['to']-_0x1a80b0<=_0x30eee4['ranges'][_0x30eee4['rangeI']]['to'])_0x30eee4['addNode'](_0x63c3c1['tree'],_0x3a1438);else{let _0xd1ae1=new Tree(_0x30eee4['parser']['nodeSet']['types'][Type['Paragraph']],[],[],0x0,_0x30eee4['block']['hashProp']);_0x30eee4['reusePlaceholders']['set'](_0xd1ae1,_0x63c3c1['tree']),_0x30eee4['addNode'](_0xd1ae1,_0x3a1438);}if(_0x63c3c1['type']['is']('Block')&&(NotLast['indexOf'](_0x63c3c1['type']['id'])<0x0?(_0x5644fb=_0x63c3c1['to']-_0x1a80b0,_0x5c719b=_0x30eee4['block']['children']['length']):(_0x5644fb=_0x45227a,_0x5c719b=_0x1bdbde,_0x45227a=_0x63c3c1['to']-_0x1a80b0,_0x1bdbde=_0x30eee4['block']['children']['length'])),!_0x63c3c1['nextSibling']())break;}for(;_0x30eee4['block']['children']['length']>_0x5c719b;)_0x30eee4['block']['children']['pop'](),_0x30eee4['block']['positions']['pop']();return _0x5644fb-_0x385bc5;}}function toRelative(_0x3110e0,_0x3ce639){let _0x4003f6=_0x3110e0;for(let _0x17ab97=0x1;_0x17ab97<_0x3ce639['length'];_0x17ab97++){let _0x57f36a=_0x3ce639[_0x17ab97-0x1]['to'],_0x1b14ce=_0x3ce639[_0x17ab97]['from'];_0x57f36a<_0x3110e0&&(_0x4003f6-=_0x1b14ce-_0x57f36a);}return _0x4003f6;}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'](_0x1ddd95=>DefaultBlockParsers[_0x1ddd95]),Object['keys'](DefaultBlockParsers)['map'](_0x29f983=>DefaultLeafBlocks[_0x29f983]),Object['keys'](DefaultBlockParsers),DefaultEndLeaf,DefaultSkipMarkup,Object['keys'](DefaultInline)['map'](_0x26789d=>DefaultInline[_0x26789d]),Object['keys'](DefaultInline),[]);function leftOverSpace(_0xa1037e,_0x356d07,_0xdd61e2){let _0x1bf50d=[];for(let _0x4833c6=_0xa1037e['firstChild'],_0x12b1fb=_0x356d07;;_0x4833c6=_0x4833c6['nextSibling']){let _0x336b5d=_0x4833c6?_0x4833c6['from']:_0xdd61e2;if(_0x336b5d>_0x12b1fb&&_0x1bf50d['push']({'from':_0x12b1fb,'to':_0x336b5d}),!_0x4833c6)break;_0x12b1fb=_0x4833c6['to'];}return _0x1bf50d;}function parseCode(_0x3a1dee){let {codeParser:_0x421cc5,htmlParser:_0x447cd7}=_0x3a1dee,_0x2f1740=parseMixed((_0x34058e,_0x38e368)=>{let _0xd9b66b=_0x34058e['type']['id'];if(!_0x421cc5||_0xd9b66b!=Type['CodeBlock']&&_0xd9b66b!=Type['FencedCode']){if(_0x447cd7&&(_0xd9b66b==Type['HTMLBlock']||_0xd9b66b==Type['HTMLTag']||_0xd9b66b==Type['CommentBlock']))return{'parser':_0x447cd7,'overlay':leftOverSpace(_0x34058e['node'],_0x34058e['from'],_0x34058e['to'])};}else{let _0x777ef6='';if(_0xd9b66b==Type['FencedCode']){let _0x57f30a=_0x34058e['node']['getChild'](Type['CodeInfo']);_0x57f30a&&(_0x777ef6=_0x38e368['read'](_0x57f30a['from'],_0x57f30a['to']));}let _0x525cca=_0x421cc5(_0x777ef6);if(_0x525cca)return{'parser':_0x525cca,'overlay':_0x2619df=>_0x2619df['type']['id']==Type['CodeText']};}return null;});return{'wrap':_0x2f1740};}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'(_0x105d4d,_0x46832c,_0x332427){if(0x7e!=_0x46832c||0x7e!=_0x105d4d['char'](_0x332427+0x1)||0x7e==_0x105d4d['char'](_0x332427+0x2))return-0x1;let _0x3e230b=_0x105d4d['slice'](_0x332427-0x1,_0x332427),_0x30d738=_0x105d4d['slice'](_0x332427+0x2,_0x332427+0x3),_0x3d06c6=/\s|^$/['test'](_0x3e230b),_0x8120fb=/\s|^$/['test'](_0x30d738),_0x2b7dbf=Punctuation['test'](_0x3e230b),_0x2da8ea=Punctuation['test'](_0x30d738);return _0x105d4d['addDelimiter'](StrikethroughDelim,_0x332427,_0x332427+0x2,!_0x8120fb&&(!_0x2da8ea||_0x3d06c6||_0x2b7dbf),!_0x3d06c6&&(!_0x2b7dbf||_0x8120fb||_0x2da8ea));},'after':'Emphasis'}]};function parseRow(_0x58b483,_0x4643cf,_0x41fc3b=0x0,_0x268b13,_0x4dfd73=0x0){let _0x5ebdef=0x0,_0x4683ee=!0x0,_0x164582=-0x1,_0x3a9a2e=-0x1,_0x43f415=!0x1,_0x307e1f=()=>{_0x268b13['push'](_0x58b483['elt']('TableCell',_0x4dfd73+_0x164582,_0x4dfd73+_0x3a9a2e,_0x58b483['parser']['parseInline'](_0x4643cf['slice'](_0x164582,_0x3a9a2e),_0x4dfd73+_0x164582)));};for(let _0x35ae3b=_0x41fc3b;_0x35ae3b<_0x4643cf['length'];_0x35ae3b++){let _0x2f42c5=_0x4643cf['charCodeAt'](_0x35ae3b);0x7c!=_0x2f42c5||_0x43f415?(_0x43f415||0x20!=_0x2f42c5&&0x9!=_0x2f42c5)&&(_0x164582<0x0&&(_0x164582=_0x35ae3b),_0x3a9a2e=_0x35ae3b+0x1):((!_0x4683ee||_0x164582>-0x1)&&_0x5ebdef++,_0x4683ee=!0x1,_0x268b13&&(_0x164582>-0x1&&_0x307e1f(),_0x268b13['push'](_0x58b483['elt']('TableDelimiter',_0x35ae3b+_0x4dfd73,_0x35ae3b+_0x4dfd73+0x1))),_0x164582=_0x3a9a2e=-0x1),_0x43f415=!_0x43f415&&0x5c==_0x2f42c5;}return _0x164582>-0x1&&(_0x5ebdef++,_0x268b13&&_0x307e1f()),_0x5ebdef;}function hasPipe(_0x34721d,_0x37f366){for(let _0x6a5e1b=_0x37f366;_0x6a5e1b<_0x34721d['length'];_0x6a5e1b++){let _0x12fde9=_0x34721d['charCodeAt'](_0x6a5e1b);if(0x7c==_0x12fde9)return!0x0;0x5c==_0x12fde9&&_0x6a5e1b++;}return!0x1;}const delimiterLine=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class TableParser{constructor(){this['rows']=null;}['nextLine'](_0x248844,_0x4b487e,_0x68f21e){if(null==this['rows']){let _0x5c5cc7;if(this['rows']=!0x1,(0x2d==_0x4b487e['next']||0x3a==_0x4b487e['next']||0x7c==_0x4b487e['next'])&&delimiterLine['test'](_0x5c5cc7=_0x4b487e['text']['slice'](_0x4b487e['pos']))){let _0x4037dd=[];parseRow(_0x248844,_0x68f21e['content'],0x0,_0x4037dd,_0x68f21e['start'])==parseRow(_0x248844,_0x5c5cc7,_0x4b487e['pos'])&&(this['rows']=[_0x248844['elt']('TableHeader',_0x68f21e['start'],_0x68f21e['start']+_0x68f21e['content']['length'],_0x4037dd),_0x248844['elt']('TableDelimiter',_0x248844['lineStart']+_0x4b487e['pos'],_0x248844['lineStart']+_0x4b487e['text']['length'])]);}}else{if(this['rows']){let _0x54ab9d=[];parseRow(_0x248844,_0x4b487e['text'],_0x4b487e['pos'],_0x54ab9d,_0x248844['lineStart']),this['rows']['push'](_0x248844['elt']('TableRow',_0x248844['lineStart']+_0x4b487e['pos'],_0x248844['lineStart']+_0x4b487e['text']['length'],_0x54ab9d));}}return!0x1;}['finish'](_0x3123a8,_0x5f2b94){return!!this['rows']&&(_0x3123a8['addLeafElement'](_0x5f2b94,_0x3123a8['elt']('Table',_0x5f2b94['start'],_0x5f2b94['start']+_0x5f2b94['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':(_0x4e80e7,_0x30d6a0)=>hasPipe(_0x30d6a0['content'],0x0)?new TableParser():null,'endLeaf'(_0x3b27dc,_0x2f6111,_0xbd6cb4){if(_0xbd6cb4['parsers']['some'](_0x135310=>_0x135310 instanceof TableParser)||!hasPipe(_0x2f6111['text'],_0x2f6111['basePos']))return!0x1;let _0x4224f3=_0x3b27dc['peekLine']();return delimiterLine['test'](_0x4224f3)&&parseRow(_0x3b27dc,_0x2f6111['text'],_0x2f6111['basePos'])==parseRow(_0x3b27dc,_0x4224f3,_0x2f6111['basePos']);},'before':'SetextHeading'}]};class TaskParser{['nextLine'](){return!0x1;}['finish'](_0x106da1,_0x3531da){return _0x106da1['addLeafElement'](_0x3531da,_0x106da1['elt']('Task',_0x3531da['start'],_0x3531da['start']+_0x3531da['content']['length'],[_0x106da1['elt']('TaskMarker',_0x3531da['start'],_0x3531da['start']+0x3),..._0x106da1['parser']['parseInline'](_0x3531da['content']['slice'](0x3),_0x3531da['start']+0x3)])),!0x0;}}const TaskList={'defineNodes':[{'name':'Task','block':!0x0,'style':tags$1['list']},{'name':'TaskMarker','style':tags$1['atom']}],'parseBlock':[{'name':'TaskList','leaf':(_0xb60b22,_0x1e2c70)=>/^\[[ xX]\][ \t]/['test'](_0x1e2c70['content'])&&'ListItem'==_0xb60b22['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(_0x43a27c,_0x52e3a5,_0x352862,_0x351325){let _0x263df3=0x0;for(let _0x326bdc=_0x52e3a5;_0x326bdc<_0x352862;_0x326bdc++)_0x43a27c[_0x326bdc]==_0x351325&&_0x263df3++;return _0x263df3;}function autolinkURLEnd(_0x265b41,_0x4006f3){urlRE['lastIndex']=_0x4006f3;let _0x497d43=urlRE['exec'](_0x265b41);if(!_0x497d43||lastTwoDomainWords['exec'](_0x497d43[0x0])[0x0]['indexOf']('_')>-0x1)return-0x1;let _0x5c8878=_0x4006f3+_0x497d43[0x0]['length'];for(;;){let _0x54b8fd,_0x353e58=_0x265b41[_0x5c8878-0x1];if(/[?!.,:*_~]/['test'](_0x353e58)||')'==_0x353e58&&count(_0x265b41,_0x4006f3,_0x5c8878,')')>count(_0x265b41,_0x4006f3,_0x5c8878,'('))_0x5c8878--;else{if(';'!=_0x353e58||!(_0x54b8fd=/&(?:#\d+|#x[a-f\d]+|\w+);$/['exec'](_0x265b41['slice'](_0x4006f3,_0x5c8878))))break;_0x5c8878=_0x4006f3+_0x54b8fd['index'];}}return _0x5c8878;}function autolinkEmailEnd(_0x28e9ea,_0x4a8125){emailRE['lastIndex']=_0x4a8125;let _0x4eab41=emailRE['exec'](_0x28e9ea);if(!_0x4eab41)return-0x1;let _0x4b3baa=_0x4eab41[0x0][_0x4eab41[0x0]['length']-0x1];return'_'==_0x4b3baa||'-'==_0x4b3baa?-0x1:_0x4a8125+_0x4eab41[0x0]['length']-('.'==_0x4b3baa?0x1:0x0);}const Autolink={'parseInline':[{'name':'Autolink','parse'(_0x2bba28,_0x55dc24,_0x2ca0b7){let _0x2765e0=_0x2ca0b7-_0x2bba28['offset'];if(_0x2765e0&&/\w/['test'](_0x2bba28['text'][_0x2765e0-0x1]))return-0x1;autolinkRE['lastIndex']=_0x2765e0;let _0x11b2c8=autolinkRE['exec'](_0x2bba28['text']),_0x471f52=-0x1;if(!_0x11b2c8)return-0x1;if(_0x11b2c8[0x1]||_0x11b2c8[0x2])(_0x471f52=autolinkURLEnd(_0x2bba28['text'],_0x2765e0+_0x11b2c8[0x0]['length']),_0x471f52>-0x1&&_0x2bba28['hasOpenLink'])&&(_0x471f52=_0x2765e0+/([^\[\]]|\[[^\]]*\])*/['exec'](_0x2bba28['text']['slice'](_0x2765e0,_0x471f52))[0x0]['length']);else _0x11b2c8[0x3]?_0x471f52=autolinkEmailEnd(_0x2bba28['text'],_0x2765e0):(_0x471f52=autolinkEmailEnd(_0x2bba28['text'],_0x2765e0+_0x11b2c8[0x0]['length']),_0x471f52>-0x1&&'xmpp:'==_0x11b2c8[0x0]&&(xmppResourceRE['lastIndex']=_0x471f52,_0x11b2c8=xmppResourceRE['exec'](_0x2bba28['text']),_0x11b2c8&&(_0x471f52=_0x11b2c8['index']+_0x11b2c8[0x0]['length'])));return _0x471f52<0x0?-0x1:(_0x2bba28['addElement'](_0x2bba28['elt']('URL',_0x2ca0b7,_0x471f52+_0x2bba28['offset'])),_0x471f52+_0x2bba28['offset']);}}]},GFM=[Table,TaskList,Strikethrough,Autolink];function parseSubSuper(_0x36cefd,_0x752382,_0x476664){return(_0x352092,_0x9921f1,_0x3dec24)=>{if(_0x9921f1!=_0x36cefd||_0x352092['char'](_0x3dec24+0x1)==_0x36cefd)return-0x1;let _0x4af933=[_0x352092['elt'](_0x476664,_0x3dec24,_0x3dec24+0x1)];for(let _0x5210b0=_0x3dec24+0x1;_0x5210b0<_0x352092['end'];_0x5210b0++){let _0x4b3093=_0x352092['char'](_0x5210b0);if(_0x4b3093==_0x36cefd)return _0x352092['addElement'](_0x352092['elt'](_0x752382,_0x3dec24,_0x5210b0+0x1,_0x4af933['concat'](_0x352092['elt'](_0x476664,_0x5210b0,_0x5210b0+0x1))));if(0x5c==_0x4b3093&&_0x4af933['push'](_0x352092['elt']('Escape',_0x5210b0,0x2+_0x5210b0++)),space(_0x4b3093))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'(_0x299410,_0x12d58d,_0x34788d){let _0x255752;return 0x3a==_0x12d58d&&(_0x255752=/^[a-zA-Z_0-9]+:/['exec'](_0x299410['slice'](_0x34788d+0x1,_0x299410['end'])))?_0x299410['addElement'](_0x299410['elt']('Emoji',_0x34788d,_0x34788d+0x1+_0x255752[0x0]['length'])):-0x1;}}]},data=defineLanguageFacet({'commentTokens':{'block':{'open':'<!--','close':'-->'}}}),headingProp=new NodeProp(),commonmark=parser['configure']({'props':[foldNodeProp['add'](_0x380eb9=>!_0x380eb9['is']('Block')||_0x380eb9['is']('Document')||null!=isHeading(_0x380eb9)||isList(_0x380eb9)?void 0x0:(_0xb0cf45,_0x595e94)=>({'from':_0x595e94['doc']['lineAt'](_0xb0cf45['from'])['to'],'to':_0xb0cf45['to']})),headingProp['add'](isHeading),indentNodeProp['add']({'Document':()=>null}),languageDataProp['add']({'Document':data})]});function isHeading(_0xe59ac7){let _0x5e78bf=/^(?:ATX|Setext)Heading(\d)$/['exec'](_0xe59ac7['name']);return _0x5e78bf?+_0x5e78bf[0x1]:void 0x0;}function isList(_0x1e4ab6){return'OrderedList'==_0x1e4ab6['name']||'BulletList'==_0x1e4ab6['name'];}function findSectionEnd(_0x37d6e0,_0x3d1fc9){let _0x522257=_0x37d6e0;for(;;){let _0x7160e4,_0x36fb10=_0x522257['nextSibling'];if(!_0x36fb10||null!=(_0x7160e4=isHeading(_0x36fb10['type']))&&_0x7160e4<=_0x3d1fc9)break;_0x522257=_0x36fb10;}return _0x522257['to'];}const headerIndent=foldService['of']((_0x378d1a,_0xfd9541,_0x286309)=>{for(let _0x30ecae=syntaxTree(_0x378d1a)['resolveInner'](_0x286309,-0x1);_0x30ecae&&!(_0x30ecae['from']<_0xfd9541);_0x30ecae=_0x30ecae['parent']){let _0x5c3b0c=_0x30ecae['type']['prop'](headingProp);if(null==_0x5c3b0c)continue;let _0x40ab78=findSectionEnd(_0x30ecae,_0x5c3b0c);if(_0x40ab78>_0x286309)return{'from':_0x286309,'to':_0x40ab78};}return null;});function mkLang(_0x5ba519){return new Language(data,_0x5ba519,[headerIndent],'markdown');}const commonmarkLanguage=mkLang(commonmark),extended=commonmark['configure']([GFM,Subscript,Superscript,Emoji,{'props':[foldNodeProp['add']({'Table':(_0xf08145,_0x233e07)=>({'from':_0x233e07['doc']['lineAt'](_0xf08145['from'])['to'],'to':_0xf08145['to']})})]}]),markdownLanguage=mkLang(extended);function getCodeParser(_0x28f4c0,_0x119f57){return _0x44d13d=>{if(_0x44d13d&&_0x28f4c0){let _0x258121=null;if(_0x44d13d=/\S*/['exec'](_0x44d13d)[0x0],_0x258121='function'==typeof _0x28f4c0?_0x28f4c0(_0x44d13d):LanguageDescription['matchLanguageName'](_0x28f4c0,_0x44d13d,!0x0),_0x258121 instanceof LanguageDescription)return _0x258121['support']?_0x258121['support']['language']['parser']:ParseContext['getSkippingParser'](_0x258121['load']());if(_0x258121)return _0x258121['parser'];}return _0x119f57?_0x119f57['parser']:null;};}class Context{constructor(_0x376d6c,_0x5ae460,_0x40db9d,_0x5d3ac6,_0x5c12f8,_0x3394f0,_0x3fc81d){this['node']=_0x376d6c,this['from']=_0x5ae460,this['to']=_0x40db9d,this['spaceBefore']=_0x5d3ac6,this['spaceAfter']=_0x5c12f8,this['type']=_0x3394f0,this['item']=_0x3fc81d;}['blank'](_0x2a5571,_0x41ff7d=!0x0){let _0x3bc807=this['spaceBefore']+('Blockquote'==this['node']['name']?'>':'');if(null!=_0x2a5571){for(;_0x3bc807['length']<_0x2a5571;)_0x3bc807+='\x20';return _0x3bc807;}for(let _0x41cfe4=this['to']-this['from']-_0x3bc807['length']-this['spaceAfter']['length'];_0x41cfe4>0x0;_0x41cfe4--)_0x3bc807+='\x20';return _0x3bc807+(_0x41ff7d?this['spaceAfter']:'');}['marker'](_0x26f090,_0x18c641){let _0x12fcd4='OrderedList'==this['node']['name']?String(+itemNumber(this['item'],_0x26f090)[0x2]+_0x18c641):'';return this['spaceBefore']+_0x12fcd4+this['type']+this['spaceAfter'];}}function getContext(_0x53b515,_0x4d4086){let _0x2fe453=[],_0x1ecf36=[];for(let _0x3ed548=_0x53b515;_0x3ed548;_0x3ed548=_0x3ed548['parent']){if('FencedCode'==_0x3ed548['name'])return _0x1ecf36;'ListItem'!=_0x3ed548['name']&&'Blockquote'!=_0x3ed548['name']||_0x2fe453['push'](_0x3ed548);}for(let _0x401b3c=_0x2fe453['length']-0x1;_0x401b3c>=0x0;_0x401b3c--){let _0x1d1fa0,_0x872ba7=_0x2fe453[_0x401b3c],_0x1b2d9a=_0x4d4086['lineAt'](_0x872ba7['from']),_0x4994c7=_0x872ba7['from']-_0x1b2d9a['from'];if('Blockquote'==_0x872ba7['name']&&(_0x1d1fa0=/^ *>( ?)/['exec'](_0x1b2d9a['text']['slice'](_0x4994c7))))_0x1ecf36['push'](new Context(_0x872ba7,_0x4994c7,_0x4994c7+_0x1d1fa0[0x0]['length'],'',_0x1d1fa0[0x1],'>',null));else{if('ListItem'==_0x872ba7['name']&&'OrderedList'==_0x872ba7['parent']['name']&&(_0x1d1fa0=/^( *)\d+([.)])( *)/['exec'](_0x1b2d9a['text']['slice'](_0x4994c7)))){let _0x901b63=_0x1d1fa0[0x3],_0x4d7a61=_0x1d1fa0[0x0]['length'];_0x901b63['length']>=0x4&&(_0x901b63=_0x901b63['slice'](0x0,_0x901b63['length']-0x4),_0x4d7a61-=0x4),_0x1ecf36['push'](new Context(_0x872ba7['parent'],_0x4994c7,_0x4994c7+_0x4d7a61,_0x1d1fa0[0x1],_0x901b63,_0x1d1fa0[0x2],_0x872ba7));}else{if('ListItem'==_0x872ba7['name']&&'BulletList'==_0x872ba7['parent']['name']&&(_0x1d1fa0=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/['exec'](_0x1b2d9a['text']['slice'](_0x4994c7)))){let _0x33a89f=_0x1d1fa0[0x4],_0x4145db=_0x1d1fa0[0x0]['length'];_0x33a89f['length']>0x4&&(_0x33a89f=_0x33a89f['slice'](0x0,_0x33a89f['length']-0x4),_0x4145db-=0x4);let _0xb4f5f7=_0x1d1fa0[0x2];_0x1d1fa0[0x3]&&(_0xb4f5f7+=_0x1d1fa0[0x3]['replace'](/[xX]/,'\x20')),_0x1ecf36['push'](new Context(_0x872ba7['parent'],_0x4994c7,_0x4994c7+_0x4145db,_0x1d1fa0[0x1],_0x33a89f,_0xb4f5f7,_0x872ba7));}}}}return _0x1ecf36;}function itemNumber(_0x168b0c,_0x47c2ba){return/^(\s*)(\d+)(?=[.)])/['exec'](_0x47c2ba['sliceString'](_0x168b0c['from'],_0x168b0c['from']+0xa));}function renumberList(_0x3f8522,_0x10baa4,_0x5b4903,_0x1c561c=0x0){for(let _0x3fe505=-0x1,_0x421255=_0x3f8522;;){if('ListItem'==_0x421255['name']){let _0x8b4645=itemNumber(_0x421255,_0x10baa4),_0x3d7625=+_0x8b4645[0x2];if(_0x3fe505>=0x0){if(_0x3d7625!=_0x3fe505+0x1)return;_0x5b4903['push']({'from':_0x421255['from']+_0x8b4645[0x1]['length'],'to':_0x421255['from']+_0x8b4645[0x0]['length'],'insert':String(_0x3fe505+0x2+_0x1c561c)});}_0x3fe505=_0x3d7625;}let _0x496b52=_0x421255['nextSibling'];if(!_0x496b52)break;_0x421255=_0x496b52;}}function normalizeIndent(_0x2d1806,_0x29d8c4){let _0xd1e299=/^[ \t]*/['exec'](_0x2d1806)[0x0]['length'];if(!_0xd1e299||'\x09'!=_0x29d8c4['facet'](indentUnit))return _0x2d1806;let _0x337ecf='';for(let _0x560624=countColumn(_0x2d1806,0x4,_0xd1e299);_0x560624>0x0;)_0x560624>=0x4?(_0x337ecf+='\x09',_0x560624-=0x4):(_0x337ecf+='\x20',_0x560624--);return _0x337ecf+_0x2d1806['slice'](_0xd1e299);}const insertNewlineContinueMarkup=({state:_0x5b6f98,dispatch:_0x575704})=>{let _0x469a66=syntaxTree(_0x5b6f98),{doc:_0x46c9d8}=_0x5b6f98,_0x48eebf=null,_0x54d86b=_0x5b6f98['changeByRange'](_0x12c90c=>{if(!_0x12c90c['empty']||!markdownLanguage['isActiveAt'](_0x5b6f98,_0x12c90c['from'],0x0))return _0x48eebf={'range':_0x12c90c};let _0x2e65df=_0x12c90c['from'],_0x2459e3=_0x46c9d8['lineAt'](_0x2e65df),_0x3609c4=getContext(_0x469a66['resolveInner'](_0x2e65df,-0x1),_0x46c9d8);for(;_0x3609c4['length']&&_0x3609c4[_0x3609c4['length']-0x1]['from']>_0x2e65df-_0x2459e3['from'];)_0x3609c4['pop']();if(!_0x3609c4['length'])return _0x48eebf={'range':_0x12c90c};let _0x10cdae=_0x3609c4[_0x3609c4['length']-0x1];if(_0x10cdae['to']-_0x10cdae['spaceAfter']['length']>_0x2e65df-_0x2459e3['from'])return _0x48eebf={'range':_0x12c90c};let _0x3d3fe6=_0x2e65df>=_0x10cdae['to']-_0x10cdae['spaceAfter']['length']&&!/\S/['test'](_0x2459e3['text']['slice'](_0x10cdae['to']));if(_0x10cdae['item']&&_0x3d3fe6){let _0x1d570a=_0x10cdae['node']['firstChild'],_0x9d92e5=_0x10cdae['node']['getChild']('ListItem','ListItem');if(_0x1d570a['to']>=_0x2e65df||_0x9d92e5&&_0x9d92e5['to']<_0x2e65df||_0x2459e3['from']>0x0&&!/[^\s>]/['test'](_0x46c9d8['lineAt'](_0x2459e3['from']-0x1)['text'])){let _0x40c339,_0x55cd82=_0x3609c4['length']>0x1?_0x3609c4[_0x3609c4['length']-0x2]:null,_0xfc828='';_0x55cd82&&_0x55cd82['item']?(_0x40c339=_0x2459e3['from']+_0x55cd82['from'],_0xfc828=_0x55cd82['marker'](_0x46c9d8,0x1)):_0x40c339=_0x2459e3['from']+(_0x55cd82?_0x55cd82['to']:0x0);let _0x1012e9=[{'from':_0x40c339,'to':_0x2e65df,'insert':_0xfc828}];return'OrderedList'==_0x10cdae['node']['name']&&renumberList(_0x10cdae['item'],_0x46c9d8,_0x1012e9,-0x2),_0x55cd82&&'OrderedList'==_0x55cd82['node']['name']&&renumberList(_0x55cd82['item'],_0x46c9d8,_0x1012e9),{'range':EditorSelection['cursor'](_0x40c339+_0xfc828['length']),'changes':_0x1012e9};}{let _0xb3c565=blankLine(_0x3609c4,_0x5b6f98,_0x2459e3);return{'range':EditorSelection['cursor'](_0x2e65df+_0xb3c565['length']+0x1),'changes':{'from':_0x2459e3['from'],'insert':_0xb3c565+_0x5b6f98['lineBreak']}};}}if('Blockquote'==_0x10cdae['node']['name']&&_0x3d3fe6&&_0x2459e3['from']){let _0x510674=_0x46c9d8['lineAt'](_0x2459e3['from']-0x1),_0x58d5b2=/>\s*$/['exec'](_0x510674['text']);if(_0x58d5b2&&_0x58d5b2['index']==_0x10cdae['from']){let _0x1892dc=_0x5b6f98['changes']([{'from':_0x510674['from']+_0x58d5b2['index'],'to':_0x510674['to']},{'from':_0x2459e3['from']+_0x10cdae['from'],'to':_0x2459e3['to']}]);return{'range':_0x12c90c['map'](_0x1892dc),'changes':_0x1892dc};}}let _0x396fc9=[];'OrderedList'==_0x10cdae['node']['name']&&renumberList(_0x10cdae['item'],_0x46c9d8,_0x396fc9);let _0x5122b1=_0x10cdae['item']&&_0x10cdae['item']['from']<_0x2459e3['from'],_0x48cfe0='';if(!_0x5122b1||/^[\s\d.)\-+*>]*/['exec'](_0x2459e3['text'])[0x0]['length']>=_0x10cdae['to']){for(let _0x3400e7=0x0,_0x32815b=_0x3609c4['length']-0x1;_0x3400e7<=_0x32815b;_0x3400e7++)_0x48cfe0+=_0x3400e7!=_0x32815b||_0x5122b1?_0x3609c4[_0x3400e7]['blank'](_0x3400e7<_0x32815b?countColumn(_0x2459e3['text'],0x4,_0x3609c4[_0x3400e7+0x1]['from'])-_0x48cfe0['length']:null):_0x3609c4[_0x3400e7]['marker'](_0x46c9d8,0x1);}let _0x53cf02=_0x2e65df;for(;_0x53cf02>_0x2459e3['from']&&/\s/['test'](_0x2459e3['text']['charAt'](_0x53cf02-_0x2459e3['from']-0x1));)_0x53cf02--;return _0x48cfe0=normalizeIndent(_0x48cfe0,_0x5b6f98),nonTightList(_0x10cdae['node'],_0x5b6f98['doc'])&&(_0x48cfe0=blankLine(_0x3609c4,_0x5b6f98,_0x2459e3)+_0x5b6f98['lineBreak']+_0x48cfe0),_0x396fc9['push']({'from':_0x53cf02,'to':_0x2e65df,'insert':_0x5b6f98['lineBreak']+_0x48cfe0}),{'range':EditorSelection['cursor'](_0x53cf02+_0x48cfe0['length']+0x1),'changes':_0x396fc9};});return!_0x48eebf&&(_0x575704(_0x5b6f98['update'](_0x54d86b,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0);};function isMark(_0x5197ce){return'QuoteMark'==_0x5197ce['name']||'ListMark'==_0x5197ce['name'];}function nonTightList(_0x5c410c,_0x765a8f){if('OrderedList'!=_0x5c410c['name']&&'BulletList'!=_0x5c410c['name'])return!0x1;let _0xb1a28b=_0x5c410c['firstChild'],_0x3ec2cd=_0x5c410c['getChild']('ListItem','ListItem');if(!_0x3ec2cd)return!0x1;let _0x19c254=_0x765a8f['lineAt'](_0xb1a28b['to']),_0xed95a5=_0x765a8f['lineAt'](_0x3ec2cd['from']),_0x4911f5=/^[\s>]*$/['test'](_0x19c254['text']);return _0x19c254['number']+(_0x4911f5?0x0:0x1)<_0xed95a5['number'];}function blankLine(_0x5b596e,_0x1d8362,_0x1d6d8f){let _0x3e7f5c='';for(let _0x1f9106=0x0,_0x4ab279=_0x5b596e['length']-0x2;_0x1f9106<=_0x4ab279;_0x1f9106++)_0x3e7f5c+=_0x5b596e[_0x1f9106]['blank'](_0x1f9106<_0x4ab279?countColumn(_0x1d6d8f['text'],0x4,Math['min'](_0x1d6d8f['text']['length'],_0x5b596e[_0x1f9106+0x1]['from']))-_0x3e7f5c['length']:null,_0x1f9106<_0x4ab279);return normalizeIndent(_0x3e7f5c,_0x1d8362);}function contextNodeForDelete(_0x5ae102,_0x10ebe7){let _0x5b17ad=_0x5ae102['resolveInner'](_0x10ebe7,-0x1),_0x2883f7=_0x10ebe7;isMark(_0x5b17ad)&&(_0x2883f7=_0x5b17ad['from'],_0x5b17ad=_0x5b17ad['parent']);for(let _0x121962;_0x121962=_0x5b17ad['childBefore'](_0x2883f7);)if(isMark(_0x121962))_0x2883f7=_0x121962['from'];else{if('OrderedList'!=_0x121962['name']&&'BulletList'!=_0x121962['name'])break;_0x5b17ad=_0x121962['lastChild'],_0x2883f7=_0x5b17ad['to'];}return _0x5b17ad;}const deleteMarkupBackward=({state:_0x529be6,dispatch:_0x455f39})=>{let _0x2ac6ce=syntaxTree(_0x529be6),_0x31ec04=null,_0xc70f00=_0x529be6['changeByRange'](_0xc8cfb1=>{let _0x3a8cd2=_0xc8cfb1['from'],{doc:_0x1919fd}=_0x529be6;if(_0xc8cfb1['empty']&&markdownLanguage['isActiveAt'](_0x529be6,_0xc8cfb1['from'])){let _0x57e4a8=_0x1919fd['lineAt'](_0x3a8cd2),_0x2e2469=getContext(contextNodeForDelete(_0x2ac6ce,_0x3a8cd2),_0x1919fd);if(_0x2e2469['length']){let _0x5b51d4=_0x2e2469[_0x2e2469['length']-0x1],_0x477851=_0x5b51d4['to']-_0x5b51d4['spaceAfter']['length']+(_0x5b51d4['spaceAfter']?0x1:0x0);if(_0x3a8cd2-_0x57e4a8['from']>_0x477851&&!/\S/['test'](_0x57e4a8['text']['slice'](_0x477851,_0x3a8cd2-_0x57e4a8['from'])))return{'range':EditorSelection['cursor'](_0x57e4a8['from']+_0x477851),'changes':{'from':_0x57e4a8['from']+_0x477851,'to':_0x3a8cd2}};if(_0x3a8cd2-_0x57e4a8['from']==_0x477851&&(!_0x5b51d4['item']||_0x57e4a8['from']<=_0x5b51d4['item']['from']||!/\S/['test'](_0x57e4a8['text']['slice'](0x0,_0x5b51d4['to'])))){let _0x45e7c5=_0x57e4a8['from']+_0x5b51d4['from'];if(_0x5b51d4['item']&&_0x5b51d4['node']['from']<_0x5b51d4['item']['from']&&/\S/['test'](_0x57e4a8['text']['slice'](_0x5b51d4['from'],_0x5b51d4['to']))){let _0x2f4f41=_0x5b51d4['blank'](countColumn(_0x57e4a8['text'],0x4,_0x5b51d4['to'])-countColumn(_0x57e4a8['text'],0x4,_0x5b51d4['from']));return _0x45e7c5==_0x57e4a8['from']&&(_0x2f4f41=normalizeIndent(_0x2f4f41,_0x529be6)),{'range':EditorSelection['cursor'](_0x45e7c5+_0x2f4f41['length']),'changes':{'from':_0x45e7c5,'to':_0x57e4a8['from']+_0x5b51d4['to'],'insert':_0x2f4f41}};}if(_0x45e7c5<_0x3a8cd2)return{'range':EditorSelection['cursor'](_0x45e7c5),'changes':{'from':_0x45e7c5,'to':_0x3a8cd2}};}}}return _0x31ec04={'range':_0xc8cfb1};});return!_0x31ec04&&(_0x455f39(_0x529be6['update'](_0xc70f00,{'scrollIntoView':!0x0,'userEvent':'delete'})),!0x0);},markdownKeymap=[{'key':'Enter','run':insertNewlineContinueMarkup},{'key':'Backspace','run':deleteMarkupBackward}],htmlNoMatch=html({'matchClosingTags':!0x1});function markdown(_0x30c3be={}){let {codeLanguages:_0x5918c4,defaultCodeLanguage:_0x5b5912,addKeymap:_0x375433=!0x0,base:{parser:_0x46c1aa}=commonmarkLanguage,completeHTMLTags:_0x3a3647=!0x0,htmlTagLanguage:_0x4f49dd=htmlNoMatch}=_0x30c3be;if(!(_0x46c1aa instanceof MarkdownParser))throw new RangeError('Base\x20parser\x20provided\x20to\x20`markdown`\x20should\x20be\x20a\x20Markdown\x20parser');let _0x1a590a,_0x349d51=_0x30c3be['extensions']?[_0x30c3be['extensions']]:[],_0x25654b=[_0x4f49dd['support']];_0x5b5912 instanceof LanguageSupport?(_0x25654b['push'](_0x5b5912['support']),_0x1a590a=_0x5b5912['language']):_0x5b5912&&(_0x1a590a=_0x5b5912);let _0x1e4b71=_0x5918c4||_0x1a590a?getCodeParser(_0x5918c4,_0x1a590a):void 0x0;_0x349d51['push'](parseCode({'codeParser':_0x1e4b71,'htmlParser':_0x4f49dd['language']['parser']})),_0x375433&&_0x25654b['push'](Prec['high'](keymap['of'](markdownKeymap)));let _0x512025=mkLang(_0x46c1aa['configure'](_0x349d51));return _0x3a3647&&_0x25654b['push'](_0x512025['data']['of']({'autocomplete':htmlTagCompletion})),new LanguageSupport(_0x512025,_0x25654b);}function htmlTagCompletion(_0xf357d4){let {state:_0x2ab4df,pos:_0x21a989}=_0xf357d4,_0x2738b2=/<[:\-\.\w\u00b7-\uffff]*$/['exec'](_0x2ab4df['sliceDoc'](_0x21a989-0x19,_0x21a989));if(!_0x2738b2)return null;let _0x4408c9=syntaxTree(_0x2ab4df)['resolveInner'](_0x21a989,-0x1);for(;_0x4408c9&&!_0x4408c9['type']['isTop'];){if('CodeBlock'==_0x4408c9['name']||'FencedCode'==_0x4408c9['name']||'ProcessingInstructionBlock'==_0x4408c9['name']||'CommentBlock'==_0x4408c9['name']||'Link'==_0x4408c9['name']||'Image'==_0x4408c9['name'])return null;_0x4408c9=_0x4408c9['parent'];}return{'from':_0x21a989-_0x2738b2[0x0]['length'],'to':_0x21a989,'options':htmlTagCompletions(),'validFor':/^<[:\-\.\w\u00b7-\uffff]*$/};}let _tagCompletions=null;function htmlTagCompletions(){if(_tagCompletions)return _tagCompletions;let _0x172ad9=htmlCompletionSource(new CompletionContext(EditorState['create']({'extensions':htmlNoMatch}),0x0,!0x0));return _tagCompletions=_0x172ad9?_0x172ad9['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(_0xa8ef81){const _0x38e758=getDefaultExtensions(),_0x143205=new Compartment();_0x38e758['push'](_0x143205['of'](EditorView['editable']['of'](!0x0))),'html'===_0xa8ef81['syntaxLanguage']?_0x38e758['push'](html()):_0x38e758['push'](markdown());const _0x32d748=normalizeTheme(_0xa8ef81['theme']);_0x32d748&&_0x38e758['push'](_0x32d748),_0x38e758['push'](...getKeybindings());const _0x3ab1d9=new EditorView({'extensions':_0x38e758,'parent':_0xa8ef81['parent']});return toggleTabFocusMode(_0x3ab1d9),{'focus':()=>{_0x3ab1d9['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x3ab1d9['focus']();},'getData':()=>_0x3ab1d9['state']['doc']['toString'](),'setData':_0x3b70c1=>{_0x3ab1d9['dispatch']({'changes':{'from':0x0,'to':_0x3ab1d9['state']['doc']['length'],'insert':_0x3b70c1},'annotations':Transaction['addToHistory']['of'](!0x1)});},'setReadOnly':_0x583ed7=>{_0x3ab1d9['dispatch']({'effects':[_0x143205['reconfigure'](EditorView['editable']['of'](!_0x583ed7))]});},'destroy':()=>{_0x3ab1d9['destroy']();},'instance':_0x3ab1d9};}function normalizeTheme(_0x56f5b8){return _0x56f5b8&&'default'!==_0x56f5b8?'dark'===_0x56f5b8?oneDark:_0x56f5b8: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(_0x136448,_0x56cdbf){super(_0x136448),this['_options']=_0x56cdbf,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',(_0x18a3dd,_0x3b15d8,_0x47d250)=>{this['setReadOnly'](_0x47d250);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x3ea497){this['_codeEditorApi']['setData'](_0x3ea497);}['setReadOnly'](_0x163382){this['_codeEditorApi']['setReadOnly'](_0x163382);}}const COMMAND_FORCE_DISABLE_ID='SourceEditingEnhancedMode';class EditSourceCommand extends _0x210666{constructor(_0x4c9f5c){super(_0x4c9f5c),this['affectsData']=!0x1,this['editor']['plugins']['get'](PendingActions)['on']('change:hasAny',(_0x447374,_0x40073b,_0x352ad8)=>{_0x352ad8?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x1d5762=this['editor'];for(const _0x493e7e of _0x1d5762['commands']['names']())['replaceSource','editSource']['includes'](_0x493e7e)||_0x1d5762['commands']['get'](_0x493e7e)['forceDisabled'](COMMAND_FORCE_DISABLE_ID);}['_enableCommands'](){const _0xd66b9b=this['editor'];for(const _0x2cf4cf of _0xd66b9b['commands']['commands']())_0x2cf4cf['clearForceDisabled'](COMMAND_FORCE_DISABLE_ID);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x13d239=this['editor'],_0x29e00f=_0x13d239['locale'],_0x3af522=_0x13d239['plugins']['get']('Dialog'),_0x19e0da=getActiveRootName(_0x13d239),_0x54542d=formatSource(_0x13d239['data']['get']({'rootName':_0x19e0da})),_0x500eba=new CodeEditorView(_0x29e00f,{'syntaxLanguage':_0x13d239['plugins']['has']('Markdown')?'markdown':'html','theme':_0x13d239['config']['get']('sourceEditingEnhanced.theme')});let _0x1601de=!0x0;const _0x7e1f7=_0x53591c=>{if(!_0x1601de)return;return unformatSource(_0x500eba['getData']())!==unformatSource(_0x54542d)?window['confirm'](getTranslation$3(_0x29e00f,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x53591c['stop']():void 0x0;};_0x3af522['show']({'id':'sourceEditingEnhanced','title':getTranslation$3(_0x29e00f,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x500eba,'actionButtons':[{'label':getTranslation$3(_0x29e00f,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x3af522['hide']();}},{'label':getTranslation$3(_0x29e00f,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x1d799f=unformatSource(_0x500eba['getData']())!==unformatSource(_0x54542d);(_0x1d799f&&_0x13d239['execute']('replaceSource',_0x500eba['getData']()),_0x1601de=!0x1,_0x3af522['hide'](),_0x1d799f&&'editables'in _0x13d239['ui']['view'])&&_0x13d239['ui']['view']['editables'][_0x19e0da]['element']['focus']();},'onCreate':_0x529960=>{_0x529960['set']('isEnabled',!_0x13d239['isReadOnly']),_0x529960['bind']('isEnabled')['to'](_0x13d239,'isReadOnly',this,'isEnabled',(_0xe7b2fe,_0xe93e48)=>!_0xe7b2fe&&_0xe93e48);}}],'onHide':()=>{this['_enableCommands'](),_0x3af522['off']('hide',_0x7e1f7),_0x500eba['destroy']();},'onShow':()=>{_0x500eba['bind']('isReadOnly')['to'](_0x13d239,'isReadOnly',this,'isEnabled',(_0x4915f6,_0x392897)=>_0x4915f6||!_0x392897),_0x500eba['setData'](_0x54542d),_0x500eba['focus'](),_0x3af522['on']('hide',_0x7e1f7,{'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 _0x3a516b=this['editor'],_0x24d152=_0x3a516b['locale'],_0x181a87=new EditSourceCommand(_0x3a516b);_0x3a516b['commands']['add']('editSource',_0x181a87),_0x3a516b['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x5ad27c=this['_createButton'](ButtonView,_0x181a87);return _0x5ad27c['set']({'label':getTranslation$3(_0x24d152,'Source'),'icon':IconSource,'tooltip':getTranslation$3(_0x24d152,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x5ad27c;}),_0x3a516b['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x4df3e3=this['_createButton'](MenuBarMenuListItemButtonView,_0x181a87,!0x0);return _0x4df3e3['set']({'label':getTranslation$3(_0x24d152,'Edit\x20source\x20modal\x20label'),'icon':IconSource,'role':'menuitemcheckbox'}),_0x4df3e3;}),this['_registerKeybindings']();}['afterInit'](){checkLicense$3(this);}['_createButton'](_0x110e88,_0xe97512,_0x1eadd4=!0x1){const _0x3d84a9=new _0x110e88(this['editor']['locale']);return _0x3d84a9['set']({'withText':_0x1eadd4,'isToggleable':!0x1}),_0x3d84a9['bind']('isEnabled')['to'](_0xe97512,'isEnabled'),this['listenTo'](_0x3d84a9,'execute',()=>_0xe97512['execute']()),_0x3d84a9;}['_registerKeybindings'](){const _0x20374d=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':getTranslation$3(_0x20374d,'Source\x20Editing\x20Enhanced')});const _0x2c211c=env['isMac']||env['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':getTranslation$3(_0x20374d,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':getTranslation$3(_0x20374d,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':getTranslation$3(_0x20374d,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':getTranslation$3(_0x20374d,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':getTranslation$3(_0x20374d,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':getTranslation$3(_0x20374d,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':getTranslation$3(_0x20374d,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x2c211c?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':getTranslation$3(_0x20374d,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':getTranslation$3(_0x20374d,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':getTranslation$3(_0x20374d,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':getTranslation$3(_0x20374d,'Select\x20line'),'keystroke':_0x2c211c?'Ctrl!+L':'Alt+L'},{'label':getTranslation$3(_0x20374d,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x2c211c?'Alt+Shift+M':'Ctrl+M'},{'label':getTranslation$3(_0x20374d,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':getTranslation$3(_0x20374d,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':getTranslation$3(_0x20374d,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':getTranslation$3(_0x20374d,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':getTranslation$3(_0x20374d,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x2c211c?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}async function checkLicense$3(_0x2d06cf){const _0x40bf0c=_0x556de0([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]),_0x288f94=window[_0x556de0([0x44,0x61,0x74,0x65])][_0x556de0([0x6e,0x6f,0x77])](),_0x57a211=_0x2d06cf[_0x556de0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2078bf=new window[(_0x556de0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e545b=>{_0x57a211[_0x556de0([0x6f,0x6e,0x63,0x65])](_0x556de0([0x72,0x65,0x61,0x64,0x79]),_0x3e545b);}),_0x3b71b3={[_0x556de0([0x6b,0x74,0x79])]:_0x556de0([0x45,0x43]),[_0x556de0([0x75,0x73,0x65])]:_0x556de0([0x73,0x69,0x67]),[_0x556de0([0x63,0x72,0x76])]:_0x556de0([0x50,0x2d,0x32,0x35,0x36]),[_0x556de0([0x78])]:_0x556de0([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]),[_0x556de0([0x79])]:_0x556de0([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]),[_0x556de0([0x61,0x6c,0x67])]:_0x556de0([0x45,0x53,0x32,0x35,0x36])},_0x2dc3de=_0x57a211[_0x556de0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x556de0([0x67,0x65,0x74])](_0x556de0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x2e980f=await(async function(){let _0x3d4385,_0x537945=null,_0x2b8cdc=null;try{if(_0x2dc3de==_0x556de0([0x47,0x50,0x4c]))return _0x556de0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d4385=(function(){const _0x302ae5=_0x2dc3de[_0x556de0([0x73,0x70,0x6c,0x69,0x74])](_0x556de0([0x2e]));if(0x3!=_0x302ae5[_0x556de0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x584fb8=_0x302ae5[0x1];return _0x4ef516(_0x584fb8);function _0x4ef516(_0x5c531a){const _0x595d06=_0xabec55(_0x5c531a);return _0x595d06&&_0x27cf6b()?_0x595d06:null;function _0x27cf6b(){const _0x20cf48=_0x595d06[_0x556de0([0x6a,0x74,0x69])],_0x14030b=window[_0x556de0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20cf48[_0x556de0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20cf48[_0x556de0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d83a3={..._0x595d06,[_0x556de0([0x6a,0x74,0x69])]:_0x20cf48[_0x556de0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20cf48[_0x556de0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d83a3[_0x556de0([0x76,0x63])],_0x5ae49f(_0x3d83a3)==_0x14030b;}}}()),!_0x3d4385)return _0x556de0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x3d4385[_0x556de0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b8cdc=function(_0x36f182,_0x5417a2){return new window[(_0x556de0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1485e8=>{if(_0x197d2a())return _0x1485e8(_0x556de0([0x56,0x61,0x6c,0x69,0x64]));_0x41f8b7(),_0x57a211[_0x556de0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x556de0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3dc025=!0x1;const _0x43ba2a=uid();function _0xabebc9(_0x32d9c1){return!!_0x32d9c1&&(typeof _0x32d9c1===_0x556de0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32d9c1===_0x556de0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32d9c1[_0x556de0([0x74,0x68,0x65,0x6e])]===_0x556de0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32d9c1[_0x556de0([0x63,0x61,0x74,0x63,0x68])]===_0x556de0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x15f22a(_0x5dba4a){_0x7690f4(_0x5dba4a)[_0x556de0([0x74,0x68,0x65,0x6e])](_0x3221e5=>{if(!_0x3221e5||_0x3221e5[_0x556de0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x556de0([0x6f,0x6b]))return _0x556de0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b2545(_0x5ae49f(_0x43ba2a+_0x5417a2))!=_0x3221e5[_0x556de0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x556de0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x556de0([0x56,0x61,0x6c,0x69,0x64]);})[_0x556de0([0x74,0x68,0x65,0x6e])](_0x3518d7=>(_0x3e2d66(),_0x3518d7),()=>{const _0x5f1d82=_0x5f1f5d();return null==_0x5f1d82?(_0x3e2d66(),_0x556de0([0x56,0x61,0x6c,0x69,0x64])):_0x556de0(_0x288f94-_0x5f1d82>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x556de0([0x74,0x68,0x65,0x6e])](_0x1485e8)[_0x556de0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1485e8(_0x556de0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54d411=0x36ee80;function _0x3e2d66(){const _0x272b06=_0x556de0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b2545(_0x5ae49f(_0x36f182)),_0xbaad1f=_0x13d962(_0x1b2545(window[_0x556de0([0x4d,0x61,0x74,0x68])][_0x556de0([0x63,0x65,0x69,0x6c])](_0x288f94/_0x54d411)));window[_0x556de0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x556de0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x272b06,_0xbaad1f);}function _0x5f1f5d(){const _0x3d21a1=_0x556de0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b2545(_0x5ae49f(_0x36f182)),_0x92566b=window[_0x556de0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x556de0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d21a1);return _0x92566b?window[_0x556de0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13d962(_0x92566b),0x10)*_0x54d411:null;}function _0x7690f4(_0x24acb7){return new window[(_0x556de0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39206c,_0x3d0dc0)=>{_0x24acb7[_0x556de0([0x74,0x68,0x65,0x6e])](_0x39206c,_0x3d0dc0),window[_0x556de0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d0dc0,0x1d4c0);});}}_0x57a211[_0x556de0([0x6f,0x6e])](_0x556de0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x506ff4,_0x9779f7)=>{if(_0x9779f7[0x0]!=_0x36f182)return _0x1485e8(_0x556de0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x9779f7[0x1]={..._0x9779f7[0x1],[_0x556de0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43ba2a};},{[_0x556de0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x556de0([0x68,0x69,0x67,0x68])}),_0x57a211[_0x556de0([0x6f,0x6e])](_0x556de0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x198044=>{_0xabebc9(_0x198044[_0x556de0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3dc025=!0x0,_0x15f22a(_0x198044[_0x556de0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x556de0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x556de0([0x6c,0x6f,0x77])}),_0x2078bf[_0x556de0([0x74,0x68,0x65,0x6e])](()=>{_0x3dc025||_0x1485e8(_0x556de0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x197d2a(){return _0x57a211[_0x556de0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x556de0([0x76,0x69,0x65,0x77])][_0x556de0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x556de0([0x61,0x75,0x74,0x6f]);}function _0x41f8b7(){_0x57a211[_0x556de0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x556de0([0x76,0x69,0x65,0x77])][_0x556de0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x556de0([0x61,0x75,0x74,0x6f]);}}(_0x3d4385[_0x556de0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d4385[_0x556de0([0x6a,0x74,0x69])]));const _0x2e2126=await(async function(){let _0x3152c1=!0x0;try{const _0x607058=_0x2dc3de[_0x556de0([0x73,0x70,0x6c,0x69,0x74])](_0x556de0([0x2e])),[_0x5c585e,_0x34b9cf,_0x3049ef]=_0x607058;return _0x5f340f(_0x5c585e),await _0xa0cc73(_0x5c585e,_0x34b9cf,_0x3049ef),_0x3152c1;}catch{return!0x1;}function _0x5f340f(_0x1b8b99){const _0x1369f9=_0xabec55(_0x1b8b99);_0x1369f9&&_0x1369f9[_0x556de0([0x61,0x6c,0x67])]==_0x556de0([0x45,0x53,0x32,0x35,0x36])||(_0x3152c1=!0x1);}async function _0xa0cc73(_0x41788f,_0x170d9d,_0x4d0ab3){const _0x36595d=window[_0x556de0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x556de0([0x66,0x72,0x6f,0x6d])](_0x179824(_0x4d0ab3),_0x30438e=>_0x30438e[_0x556de0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29eb6a=new window[(_0x556de0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x556de0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41788f+_0x556de0([0x2e])+_0x170d9d),_0x3c909a=window[_0x556de0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x556de0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c909a)return;const _0x15f61b=await _0x3c909a[_0x556de0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x556de0([0x6a,0x77,0x6b]),_0x3b71b3,{[_0x556de0([0x6e,0x61,0x6d,0x65])]:_0x556de0([0x45,0x43,0x44,0x53,0x41]),[_0x556de0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x556de0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x556de0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c909a[_0x556de0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x556de0([0x6e,0x61,0x6d,0x65])]:_0x556de0([0x45,0x43,0x44,0x53,0x41]),[_0x556de0([0x68,0x61,0x73,0x68])]:{[_0x556de0([0x6e,0x61,0x6d,0x65])]:_0x556de0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15f61b,_0x36595d,_0x29eb6a)||(_0x3152c1=!0x1);}}());return _0x2e2126?(function(){const _0x526468=_0x3d4385[_0x556de0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x526468)return!0x1;if(_0x526468[_0x556de0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556de0([0x2a])))return!0x0;if(_0x526468[_0x556de0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556de0([0x53,0x45,0x45])))return!0x0;return!0x1;}())?(function(){const _0x13810c=[_0x556de0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x556de0([0x74,0x72,0x69,0x61,0x6c])][_0x556de0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d4385[_0x556de0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x288f94/0x3e8:0x69b0b080;return _0x3d4385[_0x556de0([0x65,0x78,0x70])]<_0x13810c;}())?_0x556de0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x102fdb=_0x3d4385[_0x556de0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x102fdb||0x0==_0x102fdb[_0x556de0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x539a69}=new URL(window[_0x556de0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x102fdb[_0x556de0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539a69))return!0x0;const _0x362460=_0x539a69[_0x556de0([0x73,0x70,0x6c,0x69,0x74])](_0x556de0([0x2e]));return _0x102fdb[_0x556de0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f9f11=>_0x1f9f11[_0x556de0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556de0([0x2a])))[_0x556de0([0x6d,0x61,0x70])](_0x3cb612=>_0x3cb612[_0x556de0([0x73,0x70,0x6c,0x69,0x74])](_0x556de0([0x2e])))[_0x556de0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54f1cd=>_0x54f1cd[_0x556de0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x362460[_0x556de0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x556de0([0x6d,0x61,0x70])](_0x506c24=>Array(_0x362460[_0x556de0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x506c24[_0x556de0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x556de0([0x66,0x69,0x6c,0x6c])](_0x506c24[0x0]===_0x556de0([0x2a])?_0x556de0([0x2a]):'')[_0x556de0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x506c24))[_0x556de0([0x73,0x6f,0x6d,0x65])](_0x37eada=>_0x362460[_0x556de0([0x65,0x76,0x65,0x72,0x79])]((_0x5863f7,_0x1f6920)=>_0x37eada[_0x1f6920]===_0x5863f7||_0x37eada[_0x1f6920]===_0x556de0([0x2a])));}())?(_0x3d4385[_0x556de0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x556de0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x537945=function(_0x27a4d0){const _0x7d7567=new window[(_0x556de0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14cf2b=>setTimeout(_0x14cf2b,0x93ecc)),_0x1fa6dc=_0x2078bf[_0x556de0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x556de0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x448453=>{let _0x20dbb1=0x0;_0x57a211[_0x556de0([0x6d,0x6f,0x64,0x65,0x6c])][_0x556de0([0x6f,0x6e])](_0x556de0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x292ae7,_0x717349)=>{_0x717349[0x0][_0x556de0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x20dbb1++,0x5e8==_0x20dbb1&&(_0x448453(),_0x292ae7[_0x556de0([0x6f,0x66,0x66])]());});})),_0x47b331=[_0x7d7567,_0x1fa6dc];return window[_0x556de0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x556de0([0x72,0x61,0x63,0x65])](_0x47b331)[_0x556de0([0x74,0x68,0x65,0x6e])](()=>_0x27a4d0);}(_0x556de0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x537945&&_0x2b8cdc)return new window[(_0x556de0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa18718,_0x2c574b)=>{_0x537945[_0x556de0([0x74,0x68,0x65,0x6e])](_0xa18718,_0x2c574b),_0x2b8cdc[_0x556de0([0x74,0x68,0x65,0x6e])](_0x1d1425=>{_0x1d1425!=_0x556de0([0x56,0x61,0x6c,0x69,0x64])&&_0xa18718(_0x1d1425);},_0x2c574b);});return _0x537945||_0x2b8cdc||_0x556de0([0x56,0x61,0x6c,0x69,0x64]);}())):_0x556de0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x556de0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x556de0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x556de0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0xabec55(_0x504870){return _0x504870[_0x556de0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x556de0([0x65,0x79]))?JSON[_0x556de0([0x70,0x61,0x72,0x73,0x65])](_0x179824(_0x504870)):null;}function _0x179824(_0x51f481){return window[_0x556de0([0x61,0x74,0x6f,0x62])](_0x51f481[_0x556de0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x556de0([0x2b]))[_0x556de0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x556de0([0x2f])));}function _0x5ae49f(_0x46965d){let _0x3036d0=0x1505;function _0x279def(_0xd18b88){for(let _0x211840=0x0;_0x211840<_0xd18b88[_0x556de0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x211840++){const _0x953316=_0xd18b88[_0x556de0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x211840);_0x3036d0=(_0x3036d0<<0x5)+_0x3036d0+_0x953316,_0x3036d0&=_0x3036d0;}}return function _0x40af78(_0x218f5a){Array[_0x556de0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x218f5a)?_0x218f5a[_0x556de0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40af78):_0x218f5a&&typeof _0x218f5a==_0x556de0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x556de0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x218f5a)[_0x556de0([0x73,0x6f,0x72,0x74])]()[_0x556de0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7c999c,_0x4ca8d0])=>{_0x279def(_0x7c999c),_0x40af78(_0x4ca8d0);}):_0x279def(window[_0x556de0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x218f5a));}(_0x46965d),_0x3036d0>>>0x0;}function _0x1b2545(_0x20932f){return _0x20932f[_0x556de0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x556de0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x556de0([0x30]));}function _0x13d962(_0x416124){return _0x416124[_0x556de0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x556de0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x556de0([0x6a,0x6f,0x69,0x6e])]('');}function _0x22fa0c(){}function _0x556de0(_0x5d8cb5){return _0x5d8cb5['map'](_0x582592=>String['fromCharCode'](_0x582592))['join']('');}!function(_0x1d85f4){const _0xab6043=(function(){const _0x380146=window[_0x556de0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x556de0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x556de0([0x6e,0x6f,0x77])]())[_0x556de0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x556de0([0x2e]),'');let _0x2e3c58=_0x556de0([0x4e]);for(let _0x44565b=0x0;_0x44565b<_0x380146[_0x556de0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44565b+=0x2){let _0x40eaca=window[_0x556de0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x380146[_0x556de0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44565b,_0x44565b+0x2));_0x40eaca>=_0x40bf0c[_0x556de0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40eaca-=_0x40bf0c[_0x556de0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e3c58+=_0x40bf0c[_0x40eaca];}return _0x2e3c58;}());_0x57a211[_0xab6043]=_0x556de0([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])+_0x1d85f4,_0x1d85f4!=_0x556de0([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2078bf,_0x57a211[_0x556de0([0x6d,0x6f,0x64,0x65,0x6c])][_0x556de0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22fa0c,_0x57a211[_0x556de0([0x6d,0x6f,0x64,0x65,0x6c])][_0x556de0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22fa0c,_0x57a211[_0x556de0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x556de0([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x2e980f);}class ReplaceSourceCommand extends _0x210666{constructor(_0x54d6e4){super(_0x54d6e4),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x29b60b,_0x3ff9ce){const _0x4ea9b3=this['editor'],_0x2de46d=_0x3ff9ce?.['rootName']??getActiveRootName(_0x4ea9b3);_0x4ea9b3['data']['set']({[_0x2de46d]:_0x29b60b},{'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(_0xf5ff8){super(_0xf5ff8),_0xf5ff8['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 _0x164e09=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5cf4ed;for(const _0x28bc1e in _0x164e09){const _0x102c6b=_0x28bc1e,_0x58d1d6=_0x164e09[_0x102c6b];if('sourceEditingEnhancedLicenseKeyValid'==_0x58d1d6||'sourceEditingEnhancedLicenseKeyInvalid'==_0x58d1d6||'sourceEditingEnhancedLicenseKeyExpired'==_0x58d1d6||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x58d1d6||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x58d1d6||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x58d1d6||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x58d1d6){delete _0x164e09[_0x102c6b],_0x5cf4ed=_0x58d1d6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x5cf4ed&&_0x164e09['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x5cf4ed&&_0x164e09['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x5cf4ed&&_0x164e09['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x5cf4ed&&_0x164e09['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x5cf4ed&&_0x164e09['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x5cf4ed&&_0x164e09['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x81a18=this['editor'],_0x1e13c9=_0x81a18['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x1e13c9&&_0x81a18['plugins']['has']('RealTimeCollaborativeEditing'))throw new CKEditorError('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x1e13c9&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x5e3002=>_0x81a18['plugins']['has'](_0x5e3002))&&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.'),_0x81a18['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 _0x210666{['execute'](_0x20cd18){const {model:_0xd89976}=this['editor'];let _0x258092;switch(typeof _0x20cd18){case'string':_0x258092=_0x20cd18;break;case'function':_0x258092=_0x20cd18();}'string'==typeof _0x258092&&_0xd89976['change'](()=>{const _0x2b1918=this['editor']['data']['htmlProcessor']['toView'](_0x258092),_0x14777c=this['editor']['data']['toModel'](_0x2b1918);_0xd89976['insertContent'](_0x14777c);});}}class TemplateEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4d1e32}=this;_0x4d1e32['commands']['add']('insertTemplate',new TemplateCommand(_0x4d1e32)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x503ebb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x519f34;for(const _0x1d231f in _0x503ebb){const _0x212e2e=_0x1d231f,_0x2bdfe9=_0x503ebb[_0x212e2e];if('templateLicenseKeyValid'==_0x2bdfe9||'templateLicenseKeyInvalid'==_0x2bdfe9||'templateLicenseKeyExpired'==_0x2bdfe9||'templateLicenseKeyDomainLimit'==_0x2bdfe9||'templateLicenseKeyNotAllowed'==_0x2bdfe9||'templateLicenseKeyEvaluationLimit'==_0x2bdfe9||'templateLicenseKeyUsageLimit'==_0x2bdfe9){delete _0x503ebb[_0x212e2e],_0x519f34=_0x2bdfe9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x519f34&&_0x503ebb['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x519f34&&_0x503ebb['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x519f34&&_0x503ebb['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x519f34&&_0x503ebb['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x519f34&&_0x503ebb['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x519f34&&_0x503ebb['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TemplateListView extends ListView{['filter'](_0x26a8b9){if(!_0x26a8b9)return this['_resetFiltering']();const _0x138401=new Map(),_0x29f9db=this['items']['map'](_0x1d1970=>{const _0x1400b5=_0x1d1970['buttonView']['isMatching'](_0x26a8b9);return _0x1d1970['isVisible']=!!_0x1400b5,_0x1d1970['buttonView']['highlightText'](_0x1400b5?_0x26a8b9:null),_0x1400b5&&_0x138401['set'](_0x1d1970,_0x1400b5),_0x1d1970;})['sort'](unsortListItemsCallback)['sort'](getSortListItemsCallback(_0x138401));return this['items']['clear'](),this['items']['addMany'](_0x29f9db),{'resultsCount':_0x138401['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x53eb5f=this['items']['map'](_0x39c880=>_0x39c880)['sort'](unsortListItemsCallback);return _0x53eb5f['forEach'](_0x322263=>{_0x322263['isVisible']=!0x0,_0x322263['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x53eb5f),{'resultsCount':_0x53eb5f['length'],'totalItemsCount':_0x53eb5f['length']};}}function getSortListItemsCallback(_0x22c68d){return function(_0x5c320,_0x573d33){const _0x52cadb=_0x22c68d['get'](_0x5c320),_0x410e99=_0x22c68d['get'](_0x573d33);return _0x52cadb&&!_0x410e99?-0x1:_0x410e99&&!_0x52cadb?0x1:_0x52cadb||_0x410e99?_0x52cadb['title']&&!_0x410e99['title']?-0x1:!_0x52cadb['title']&&_0x410e99['title']?0x1:0x0:0x0;};}function unsortListItemsCallback(_0x4a2a90,_0x5ac78e){return _0x4a2a90['originalIndex']-_0x5ac78e['originalIndex'];}class TemplateListItemView extends ListItemView{['originalIndex'];['buttonView'];constructor(_0xd6079e,_0x2ea437){super(_0xd6079e),this['originalIndex']=_0x2ea437,this['buttonView']=null;}}class TemplateListButtonView extends ButtonView{['templateDefinition'];['textPartView'];constructor(_0xa42815,_0x25471d){super(_0xa42815),this['templateDefinition']=_0x25471d,this['textPartView']=null;const {icon:_0x140d04=IconTemplateGeneric}=_0x25471d;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x140d04}),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'](_0x3b3be1){const {title:_0x1c3c2f,description:_0x368dff}=this['templateDefinition'],_0x4ce667=!!_0x1c3c2f['match'](_0x3b3be1),_0x240ab7=!(!_0x368dff||!_0x368dff['match'](_0x3b3be1));return _0x4ce667||_0x240ab7?{'title':_0x4ce667,'description':_0x240ab7}:null;}['highlightText'](_0x4221a8){this['textPartView']['highlightText'](_0x4221a8);}}class TextPartView extends View{constructor(_0x29ac94,_0x268546,_0x41e627){super(_0x29ac94),this['title']=_0x268546['title'],this['description']=_0x268546['description'],this['titleView']=new HighlightedTextView(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x41e627}});const _0x2e17ed=[this['titleView']];this['description']&&(this['descriptionView']=new HighlightedTextView(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x2e17ed['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x2e17ed});}['highlightText'](_0x543556){this['titleView']['highlightText'](_0x543556),this['description']&&this['descriptionView']['highlightText'](_0x543556);}}function getTranslation$2(_0x50fefb,_0x2c6ea5,..._0x2eefd9){const t=_0x50fefb['t'];switch(_0x2c6ea5){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x2eefd9);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',..._0x2eefd9);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x2c6ea5;}}class TemplateUI extends Plugin{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2f2577}=this,_0xf316e7=_0x2f2577['config']['get']('template.definitions')||[];_0x2f2577['ui']['componentFactory']['add']('insertTemplate',_0x4dad2c=>{const _0x544be=createDropdown(_0x4dad2c),_0x422307=this['_createTemplateListView'](_0x4dad2c,_0xf316e7),_0x26637e=new SearchTextView(_0x4dad2c,{'filteredView':_0x422307,'queryView':{'label':getTranslation$2(_0x4dad2c,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x8d57a7=>getTranslation$2(_0x4dad2c,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x8d57a7),'secondary':getTranslation$2(_0x4dad2c,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':getTranslation$2(_0x4dad2c,'No\x20templates\x20available.')}}}}),_0x58415e=_0x2f2577['commands']['get']('insertTemplate');return _0x26637e['on']('search',(_0x5366d0,_0x339244)=>{_0x339244['query']&&_0x339244['query']['length']&&_0x2f2577['ui']['ariaLiveAnnouncer']['announce'](getTranslation$2(_0x4dad2c,'%0\x20templates\x20found',_0x339244['resultsCount']));}),_0x544be['bind']('isEnabled')['to'](_0x58415e),_0x544be['panelView']['children']['add'](_0x26637e),_0x544be['buttonView']['set']({'label':getTranslation$2(_0x4dad2c,'Insert\x20template'),'icon':IconTemplate,'tooltip':!0x0}),_0x544be['on']('change:isOpen',(_0x78571c,_0x15ce78,_0x4e508d)=>{_0x4e508d||_0x26637e['reset']();}),_0x544be;}),_0x2f2577['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x2057e2=>{const _0xf34674=_0x2f2577['commands']['get']('insertTemplate'),_0x4bbe44=new MenuBarMenuView(_0x2057e2);_0x4bbe44['buttonView']['set']({'label':getTranslation$2(_0x2057e2,'Template'),'icon':IconTemplate});const _0x1ab13b=new MenuBarMenuListView(_0x2057e2);if(!_0xf316e7||!_0xf316e7['length']){const _0x3510ad=new MenuBarMenuListItemView(_0x2057e2,_0x4bbe44),_0x33c5c5=new MenuBarMenuListItemButtonView(_0x2057e2);_0x33c5c5['set']({'label':getTranslation$2(_0x2057e2,'No\x20templates\x20available.')}),_0x33c5c5['delegate']('execute')['to'](_0x4bbe44),_0x33c5c5['on']('execute',()=>{_0x2f2577['editing']['view']['focus']();}),_0x3510ad['children']['add'](_0x33c5c5),_0x1ab13b['items']['add'](_0x3510ad);}for(const _0x47fd83 of _0xf316e7){const _0x2cf86a=new MenuBarMenuListItemView(_0x2057e2,_0x4bbe44),_0x13b001=new MenuBarMenuListItemButtonView(_0x2057e2);_0x13b001['set']({'class':'ck-template-button','label':_0x47fd83['title'],'icon':_0x47fd83['icon']||IconTemplateGeneric}),_0x13b001['delegate']('execute')['to'](_0x4bbe44),_0x13b001['on']('execute',()=>{_0x2f2577['execute']('insertTemplate',_0x47fd83['data']),_0x2f2577['editing']['view']['focus']();}),_0x2cf86a['children']['add'](_0x13b001),_0x1ab13b['items']['add'](_0x2cf86a);}return _0x4bbe44['panelView']['children']['add'](_0x1ab13b),_0x4bbe44['bind']('isEnabled')['to'](_0xf34674,'isEnabled'),_0x4bbe44;});}['afterInit'](){checkLicense$2(this);}['_createTemplateListView'](_0x5ce581,_0x2e36fd){const {editor:_0x1552c8}=this,_0x2791cb=new TemplateListView(_0x5ce581);return _0x2791cb['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x2791cb['items']['addMany'](_0x2e36fd['map']((_0x1564c4,_0x52b298)=>{const _0x227a65=new TemplateListItemView(_0x5ce581,_0x52b298),_0x341dc1=new TemplateListButtonView(_0x5ce581,_0x1564c4);return _0x227a65['buttonView']=_0x341dc1,_0x227a65['children']['add'](_0x341dc1),_0x227a65['buttonView']['on']('execute',_0x45c7a0=>{_0x1552c8['execute']('insertTemplate',_0x45c7a0['source']['templateDefinition']['data']),_0x1552c8['editing']['view']['focus']();}),_0x227a65;})),_0x2791cb;}}async function checkLicense$2(_0x4dad6b){const _0x2ac926=_0x477404([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]),_0x31392f=window[_0x477404([0x44,0x61,0x74,0x65])][_0x477404([0x6e,0x6f,0x77])](),_0x3456bb=_0x4dad6b[_0x477404([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a7f80=new window[(_0x477404([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c9fcf=>{_0x3456bb[_0x477404([0x6f,0x6e,0x63,0x65])](_0x477404([0x72,0x65,0x61,0x64,0x79]),_0x3c9fcf);}),_0x4e3149={[_0x477404([0x6b,0x74,0x79])]:_0x477404([0x45,0x43]),[_0x477404([0x75,0x73,0x65])]:_0x477404([0x73,0x69,0x67]),[_0x477404([0x63,0x72,0x76])]:_0x477404([0x50,0x2d,0x32,0x35,0x36]),[_0x477404([0x78])]:_0x477404([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]),[_0x477404([0x79])]:_0x477404([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]),[_0x477404([0x61,0x6c,0x67])]:_0x477404([0x45,0x53,0x32,0x35,0x36])},_0x41a14a=_0x3456bb[_0x477404([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x477404([0x67,0x65,0x74])](_0x477404([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4351fc=await(async function(){let _0x340aaa,_0x576c72=null,_0x4832d7=null;try{if(_0x41a14a==_0x477404([0x47,0x50,0x4c]))return _0x477404([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x340aaa=(function(){const _0x393278=_0x41a14a[_0x477404([0x73,0x70,0x6c,0x69,0x74])](_0x477404([0x2e]));if(0x3!=_0x393278[_0x477404([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x90651c=_0x393278[0x1];return _0x320c09(_0x90651c);function _0x320c09(_0x3eb1dc){const _0x3a7c13=_0x170556(_0x3eb1dc);return _0x3a7c13&&_0x1b64e1()?_0x3a7c13:null;function _0x1b64e1(){const _0x426a3c=_0x3a7c13[_0x477404([0x6a,0x74,0x69])],_0x1e852a=window[_0x477404([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x426a3c[_0x477404([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x426a3c[_0x477404([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3952d4={..._0x3a7c13,[_0x477404([0x6a,0x74,0x69])]:_0x426a3c[_0x477404([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x426a3c[_0x477404([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3952d4[_0x477404([0x76,0x63])],_0x167b68(_0x3952d4)==_0x1e852a;}}}()),!_0x340aaa)return _0x477404([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x340aaa[_0x477404([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4832d7=function(_0x1f113f,_0x58b271){return new window[(_0x477404([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e4290=>{if(_0x438793())return _0x3e4290(_0x477404([0x56,0x61,0x6c,0x69,0x64]));_0x555f5c(),_0x3456bb[_0x477404([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x477404([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5878a7=!0x1;const _0x4b56c7=uid();function _0x5e2ceb(_0x5b9f42){return!!_0x5b9f42&&(typeof _0x5b9f42===_0x477404([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b9f42===_0x477404([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b9f42[_0x477404([0x74,0x68,0x65,0x6e])]===_0x477404([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b9f42[_0x477404([0x63,0x61,0x74,0x63,0x68])]===_0x477404([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x263a6a(_0x432a04){_0x3ec3ab(_0x432a04)[_0x477404([0x74,0x68,0x65,0x6e])](_0x4cc8ef=>{if(!_0x4cc8ef||_0x4cc8ef[_0x477404([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x477404([0x6f,0x6b]))return _0x477404([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d0ad1(_0x167b68(_0x4b56c7+_0x58b271))!=_0x4cc8ef[_0x477404([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x477404([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x477404([0x56,0x61,0x6c,0x69,0x64]);})[_0x477404([0x74,0x68,0x65,0x6e])](_0x3b39eb=>(_0xf72871(),_0x3b39eb),()=>{const _0x35aaad=_0x284d5f();return null==_0x35aaad?(_0xf72871(),_0x477404([0x56,0x61,0x6c,0x69,0x64])):_0x477404(_0x31392f-_0x35aaad>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x477404([0x74,0x68,0x65,0x6e])](_0x3e4290)[_0x477404([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e4290(_0x477404([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b9e74=0x36ee80;function _0xf72871(){const _0x114e2d=_0x477404([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d0ad1(_0x167b68(_0x1f113f)),_0x1a7bdd=_0x1b503a(_0x2d0ad1(window[_0x477404([0x4d,0x61,0x74,0x68])][_0x477404([0x63,0x65,0x69,0x6c])](_0x31392f/_0x2b9e74)));window[_0x477404([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x477404([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x114e2d,_0x1a7bdd);}function _0x284d5f(){const _0x450ccf=_0x477404([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d0ad1(_0x167b68(_0x1f113f)),_0x17b0a2=window[_0x477404([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x477404([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x450ccf);return _0x17b0a2?window[_0x477404([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b503a(_0x17b0a2),0x10)*_0x2b9e74:null;}function _0x3ec3ab(_0x1f3601){return new window[(_0x477404([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b2d7f,_0x2b6b87)=>{_0x1f3601[_0x477404([0x74,0x68,0x65,0x6e])](_0x3b2d7f,_0x2b6b87),window[_0x477404([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2b6b87,0x1d4c0);});}}_0x3456bb[_0x477404([0x6f,0x6e])](_0x477404([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2050a1,_0x34012a)=>{if(_0x34012a[0x0]!=_0x1f113f)return _0x3e4290(_0x477404([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34012a[0x1]={..._0x34012a[0x1],[_0x477404([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b56c7};},{[_0x477404([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x477404([0x68,0x69,0x67,0x68])}),_0x3456bb[_0x477404([0x6f,0x6e])](_0x477404([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f4d9f=>{_0x5e2ceb(_0x3f4d9f[_0x477404([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5878a7=!0x0,_0x263a6a(_0x3f4d9f[_0x477404([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x477404([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x477404([0x6c,0x6f,0x77])}),_0x3a7f80[_0x477404([0x74,0x68,0x65,0x6e])](()=>{_0x5878a7||_0x3e4290(_0x477404([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x438793(){return _0x3456bb[_0x477404([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x477404([0x76,0x69,0x65,0x77])][_0x477404([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x477404([0x61,0x75,0x74,0x6f]);}function _0x555f5c(){_0x3456bb[_0x477404([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x477404([0x76,0x69,0x65,0x77])][_0x477404([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x477404([0x61,0x75,0x74,0x6f]);}}(_0x340aaa[_0x477404([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x340aaa[_0x477404([0x6a,0x74,0x69])]));const _0x4dd3c0=await(async function(){let _0x5659c1=!0x0;try{const _0x8cd8dc=_0x41a14a[_0x477404([0x73,0x70,0x6c,0x69,0x74])](_0x477404([0x2e])),[_0x1e099e,_0x413d5b,_0x32d5ce]=_0x8cd8dc;return _0x1a00fe(_0x1e099e),await _0x1b79b0(_0x1e099e,_0x413d5b,_0x32d5ce),_0x5659c1;}catch{return!0x1;}function _0x1a00fe(_0x185537){const _0x5812f9=_0x170556(_0x185537);_0x5812f9&&_0x5812f9[_0x477404([0x61,0x6c,0x67])]==_0x477404([0x45,0x53,0x32,0x35,0x36])||(_0x5659c1=!0x1);}async function _0x1b79b0(_0x4b6006,_0x406c61,_0x35e48b){const _0x124e8e=window[_0x477404([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x477404([0x66,0x72,0x6f,0x6d])](_0x4d30d6(_0x35e48b),_0x3dcbcb=>_0x3dcbcb[_0x477404([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2960cc=new window[(_0x477404([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x477404([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b6006+_0x477404([0x2e])+_0x406c61),_0x5e0e1d=window[_0x477404([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x477404([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e0e1d)return;const _0x259bea=await _0x5e0e1d[_0x477404([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x477404([0x6a,0x77,0x6b]),_0x4e3149,{[_0x477404([0x6e,0x61,0x6d,0x65])]:_0x477404([0x45,0x43,0x44,0x53,0x41]),[_0x477404([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x477404([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x477404([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e0e1d[_0x477404([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x477404([0x6e,0x61,0x6d,0x65])]:_0x477404([0x45,0x43,0x44,0x53,0x41]),[_0x477404([0x68,0x61,0x73,0x68])]:{[_0x477404([0x6e,0x61,0x6d,0x65])]:_0x477404([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x259bea,_0x124e8e,_0x2960cc)||(_0x5659c1=!0x1);}}());return _0x4dd3c0?(function(){const _0x4c4741=_0x340aaa[_0x477404([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4c4741)return!0x1;if(_0x4c4741[_0x477404([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x477404([0x2a])))return!0x0;if(_0x4c4741[_0x477404([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x477404([0x54,0x50,0x4c])))return!0x0;if(_0x4c4741[_0x477404([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x477404([0x50,0x50])))return!0x0;if(_0x4c4741[_0x477404([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x477404([0x44,0x52,0x55,0x50]))&&window[_0x477404([0x44,0x72,0x75,0x70,0x61,0x6c])])return!0x0;if(_0x4c4741[_0x477404([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x477404([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x477404([0x67,0x6c,0x6f,0x62])]&&window[_0x477404([0x67,0x6c,0x6f,0x62])][_0x477404([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x4561f4=[_0x477404([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x477404([0x74,0x72,0x69,0x61,0x6c])][_0x477404([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x340aaa[_0x477404([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x31392f/0x3e8:0x69b0b080;return _0x340aaa[_0x477404([0x65,0x78,0x70])]<_0x4561f4;}())?_0x477404([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x409a7e=_0x340aaa[_0x477404([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x409a7e||0x0==_0x409a7e[_0x477404([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c8ff3}=new URL(window[_0x477404([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x409a7e[_0x477404([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c8ff3))return!0x0;const _0x473fa0=_0x4c8ff3[_0x477404([0x73,0x70,0x6c,0x69,0x74])](_0x477404([0x2e]));return _0x409a7e[_0x477404([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a874a=>_0x3a874a[_0x477404([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x477404([0x2a])))[_0x477404([0x6d,0x61,0x70])](_0x2d96e=>_0x2d96e[_0x477404([0x73,0x70,0x6c,0x69,0x74])](_0x477404([0x2e])))[_0x477404([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24b5f4=>_0x24b5f4[_0x477404([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x473fa0[_0x477404([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x477404([0x6d,0x61,0x70])](_0x55d03d=>Array(_0x473fa0[_0x477404([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x55d03d[_0x477404([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x477404([0x66,0x69,0x6c,0x6c])](_0x55d03d[0x0]===_0x477404([0x2a])?_0x477404([0x2a]):'')[_0x477404([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x55d03d))[_0x477404([0x73,0x6f,0x6d,0x65])](_0x2415a3=>_0x473fa0[_0x477404([0x65,0x76,0x65,0x72,0x79])]((_0x534afb,_0x3d0650)=>_0x2415a3[_0x3d0650]===_0x534afb||_0x2415a3[_0x3d0650]===_0x477404([0x2a])));}())?(_0x340aaa[_0x477404([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x477404([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x576c72=function(_0x40dd37){const _0x3bcf7c=new window[(_0x477404([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26f3d4=>setTimeout(_0x26f3d4,0x93ecc)),_0x259c31=_0x3a7f80[_0x477404([0x74,0x68,0x65,0x6e])](()=>new window[(_0x477404([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35ec75=>{let _0x12a5fe=0x0;_0x3456bb[_0x477404([0x6d,0x6f,0x64,0x65,0x6c])][_0x477404([0x6f,0x6e])](_0x477404([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2108ae,_0x30caa3)=>{_0x30caa3[0x0][_0x477404([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12a5fe++,0x5e8==_0x12a5fe&&(_0x35ec75(),_0x2108ae[_0x477404([0x6f,0x66,0x66])]());});})),_0x111602=[_0x3bcf7c,_0x259c31];return window[_0x477404([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x477404([0x72,0x61,0x63,0x65])](_0x111602)[_0x477404([0x74,0x68,0x65,0x6e])](()=>_0x40dd37);}(_0x477404([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x576c72&&_0x4832d7)return new window[(_0x477404([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x94d155,_0x5ba49d)=>{_0x576c72[_0x477404([0x74,0x68,0x65,0x6e])](_0x94d155,_0x5ba49d),_0x4832d7[_0x477404([0x74,0x68,0x65,0x6e])](_0x55217a=>{_0x55217a!=_0x477404([0x56,0x61,0x6c,0x69,0x64])&&_0x94d155(_0x55217a);},_0x5ba49d);});return _0x576c72||_0x4832d7||_0x477404([0x56,0x61,0x6c,0x69,0x64]);}())):_0x477404([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x477404([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x477404([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x477404([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x170556(_0x38a06f){return _0x38a06f[_0x477404([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x477404([0x65,0x79]))?JSON[_0x477404([0x70,0x61,0x72,0x73,0x65])](_0x4d30d6(_0x38a06f)):null;}function _0x4d30d6(_0x3f0589){return window[_0x477404([0x61,0x74,0x6f,0x62])](_0x3f0589[_0x477404([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x477404([0x2b]))[_0x477404([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x477404([0x2f])));}function _0x167b68(_0x404e22){let _0x1b98ff=0x1505;function _0x47e279(_0x1117a2){for(let _0xfec146=0x0;_0xfec146<_0x1117a2[_0x477404([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfec146++){const _0x588d1f=_0x1117a2[_0x477404([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xfec146);_0x1b98ff=(_0x1b98ff<<0x5)+_0x1b98ff+_0x588d1f,_0x1b98ff&=_0x1b98ff;}}return function _0x1fbdd5(_0x2d9269){Array[_0x477404([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d9269)?_0x2d9269[_0x477404([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fbdd5):_0x2d9269&&typeof _0x2d9269==_0x477404([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x477404([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d9269)[_0x477404([0x73,0x6f,0x72,0x74])]()[_0x477404([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a139b,_0x7b0a84])=>{_0x47e279(_0x1a139b),_0x1fbdd5(_0x7b0a84);}):_0x47e279(window[_0x477404([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d9269));}(_0x404e22),_0x1b98ff>>>0x0;}function _0x2d0ad1(_0x2244d2){return _0x2244d2[_0x477404([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x477404([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x477404([0x30]));}function _0x1b503a(_0x14d9e9){return _0x14d9e9[_0x477404([0x73,0x70,0x6c,0x69,0x74])]('')[_0x477404([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x477404([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b8b92(){}function _0x477404(_0x4a3703){return _0x4a3703['map'](_0x58fbbe=>String['fromCharCode'](_0x58fbbe))['join']('');}!function(_0x36a6c8){const _0x2fa4ac=(function(){const _0x13f109=window[_0x477404([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x477404([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x477404([0x6e,0x6f,0x77])]())[_0x477404([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x477404([0x2e]),'');let _0x24324c=_0x477404([0x67]);for(let _0x100216=0x0;_0x100216<_0x13f109[_0x477404([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x100216+=0x2){let _0x16e211=window[_0x477404([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13f109[_0x477404([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x100216,_0x100216+0x2));_0x16e211>=_0x2ac926[_0x477404([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16e211-=_0x2ac926[_0x477404([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24324c+=_0x2ac926[_0x16e211];}return _0x24324c;}());_0x3456bb[_0x2fa4ac]=_0x477404([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36a6c8,_0x36a6c8!=_0x477404([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x3a7f80,_0x3456bb[_0x477404([0x6d,0x6f,0x64,0x65,0x6c])][_0x477404([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b8b92,_0x3456bb[_0x477404([0x6d,0x6f,0x64,0x65,0x6c])][_0x477404([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b8b92,_0x3456bb[_0x477404([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x477404([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4351fc);}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 _0x210666{['_enabledCommands'];constructor(_0x8fb3f5,_0x28c7cf){super(_0x8fb3f5),this['_enabledCommands']=_0x28c7cf,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 _0x137860 of this['editor']['commands']['commands']())_0x137860['affectsData']&&!this['_enabledCommands']['has'](_0x137860)&&_0x137860['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x65957 of this['editor']['commands']['commands']())_0x65957['affectsData']&&!this['_enabledCommands']['has'](_0x65957)&&_0x65957['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x210666{['_suggestions'];constructor(_0x4d4f8f,_0x1e6c53){super(_0x4d4f8f),this['_suggestions']=_0x1e6c53,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x19b5f7){const _0x18ee1a=this['_suggestions']['get'](_0x19b5f7);if(!_0x18ee1a)throw new CKEditorError('track-changes-accept-suggestion-not-found',this);const _0x5b508d=_0x18ee1a['getRanges']();this['editor']['model']['canEditAt'](_0x5b508d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x18ee1a);}}class DiscardSuggestionCommand extends _0x210666{['_suggestions'];constructor(_0xf96b7a,_0x1f67d5){super(_0xf96b7a),this['_suggestions']=_0x1f67d5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x68896b){const _0x2b8dc7=this['_suggestions']['get'](_0x68896b);if(!_0x2b8dc7)throw new CKEditorError('track-changes-discard-suggestion-not-found',this);const _0x45ea7e=_0x2b8dc7['getRanges']();this['editor']['model']['canEditAt'](_0x45ea7e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2b8dc7);}}function renderDescription(_0x4e067a,_0x43b693){let _0x4aa171='';return _0x4aa171+=_0x4e067a['split']('*')['map']((_0x2d75a1,_0x49fccf)=>_0x49fccf%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+sanitize(_0x2d75a1)+'</span>':sanitize(_0x2d75a1))['join'](''),_0x43b693&&(_0x4aa171+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x43b693['value']+'\x22\x20title=\x22'+_0x43b693['title']+'\x22></span>'),_0x4aa171;}function sanitize(_0x9712cc){const _0x132bc9=document['createElement']('span');return _0x132bc9['innerText']=_0x9712cc,_0x132bc9['innerHTML'];}function sortSuggestions(_0xcb03f3){return _0xcb03f3['sort']((_0x359e55,_0x48f7e3)=>'attribute'===_0x359e55['type']&&'attribute'!==_0x48f7e3['type']?-0x1:'attribute'!==_0x359e55['type']&&'attribute'===_0x48f7e3['type']?0x1:'deletion'==_0x359e55['type']&&'deletion'!=_0x48f7e3['type']?-0x1:'deletion'!=_0x359e55['type']&&'deletion'==_0x48f7e3['type']?0x1:0x0);}function getSelectedSuggestions(_0x1617d6,_0x23a76c){const _0x1f568f=Array['from'](_0x1617d6['getRanges']()),_0x2bed73=new Set();for(const _0x352207 of _0x23a76c)if(_0x352207['isInContent']){for(const _0x1b36c6 of _0x1f568f)for(const _0x2c1f67 of _0x352207['getRanges']())(_0x1b36c6['isIntersecting'](_0x2c1f67)||_0x1617d6['isCollapsed']&&!_0x352207['isMultiRange']&&_0x352207['next']&&_0x2c1f67['end']['isTouching'](_0x1b36c6['start']))&&_0x2bed73['add'](_0x352207);}return _0x2bed73;}function getRangesOfBlockGroups(_0x42307f,_0x36aa1a){let _0x1c3548,_0x3dccb1=0x0;const _0x215a95=[],_0x5f09ea=_0x36aa1a['schema'];for(;_0x3dccb1<_0x42307f['length'];){const _0x284d2a=_0x42307f[_0x3dccb1],_0x52033a=_0x42307f[_0x3dccb1+0x1];_0x1c3548||(_0x1c3548=_0x36aa1a['createPositionBefore'](_0x284d2a)),areNeighbourBlocks(_0x36aa1a,_0x284d2a,_0x52033a)||(_0x215a95['push'](_0x36aa1a['createRange'](_0x1c3548,_0x5f09ea['isObject'](_0x284d2a)?_0x36aa1a['createPositionAfter'](_0x284d2a):_0x36aa1a['createPositionAt'](_0x284d2a,'end'))),_0x1c3548=null),_0x3dccb1++;}return _0x215a95;}function areNeighbourBlocks(_0x3d53a3,_0x34094c,_0x351ad7){if(!_0x351ad7)return!0x1;const _0x14a809=_0x3d53a3['createPositionAfter'](_0x34094c),_0x191da6=_0x3d53a3['createPositionBefore'](_0x351ad7);return _0x14a809['isTouching'](_0x191da6);}const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;function executeCommandForSuggestions(_0x4445c5,_0x153aba,_0xeec175){for(;_0xeec175['length'];){const _0x278f60=_0xeec175['splice'](0x0,MAX_SUGGESTION_ACTIONS_IN_BATCH);_0x4445c5['change'](()=>{for(const _0x9a0b13 of _0x278f60)_0x9a0b13['isInContent']&&_0x153aba['execute'](_0x9a0b13['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x210666{['_command'];['_suggestions'];constructor(_0x3db676,_0xef38e7,_0x144035){super(_0x3db676),this['_command']=_0xef38e7,this['_suggestions']=_0x144035,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16b640=Array['from'](this['_suggestions']['values']())['some'](_0x300c9d=>_0x300c9d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x16b640;}['execute'](){const _0x662cc3=sortSuggestions(Array['from'](this['_suggestions']['values']()));for(const _0x35c4e7 of _0x662cc3){const _0x470a52=_0x35c4e7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x470a52))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0x662cc3);}}class ExecuteOnSelectedSuggestionsCommand extends _0x210666{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x508adc,_0x5391a4,_0x35262e){super(_0x508adc),this['_command']=_0x5391a4,this['_suggestions']=_0x35262e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xbf717d=this['editor']['model']['document']['selection'],_0x1e28fc=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=getSelectedSuggestions(_0xbf717d,_0x1e28fc),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x464f52=sortSuggestions(Array['from'](this['_selectedSuggestions']));for(const _0x32eb09 of _0x464f52){const _0x451baf=_0x32eb09['getRanges']();if(!this['editor']['model']['canEditAt'](_0x451baf))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0x464f52);}}class Suggestion extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2b3675,_0x57f267){super(),this['id']=_0x57f267['id'],this['type']=_0x57f267['type'],this['subType']=_0x57f267['subType']||null,this['author']=_0x57f267['author'],this['creator']=_0x57f267['creator']||_0x57f267['author'],this['isExternal']=Boolean(_0x57f267['attributes']&&_0x57f267['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x57f267['originalSuggestionId']||null,this['_model']=_0x2b3675,this['_onAccept']=_0x57f267['onAccept'],this['_onDiscard']=_0x57f267['onDiscard'],this['_onAttributesChange']=_0x57f267['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x57f267['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 _0x1afb65=this;for(;_0x1afb65['previous'];)_0x1afb65=_0x1afb65['previous'];return _0x1afb65;}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'](_0x3b802e){this['_markerNames']['add'](_0x3b802e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4a0fd4=>this['_model']['markers']['get'](_0x4a0fd4))['filter'](_0x3bb4e7=>_0x3bb4e7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x134233=>{for(const _0x1c51c6 of this['getMarkers']())_0x134233['removeMarker'](_0x1c51c6);}),this['_markerNames']['clear']();}['removeMarker'](_0xcfa9ac){this['_model']['change'](_0x8517c5=>{_0x8517c5['removeMarker'](_0xcfa9ac);}),this['_markerNames']['delete'](_0xcfa9ac);}['addRange'](_0x4673a1){const _0x26aefd='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x26aefd),this['_model']['change'](_0x80cf54=>{_0x80cf54['addMarker'](_0x26aefd,{'range':_0x4673a1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x581bd4){for(const _0x146e75 of this['getRanges']())if(_0x146e75['isIntersecting'](_0x581bd4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x480dcb=>_0x480dcb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2c6749,_0xd92db0)=>[..._0x2c6749,..._0xd92db0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2dcadc=this['getRanges']();if(0x1!=_0x2dcadc['length'])return null;const _0xc91115=_0x2dcadc[0x0],_0x30861c=_0xc91115['start']['nodeAfter'],_0x4c5ef5=_0xc91115['end']['nodeBefore'];return _0x30861c instanceof ModelElement?_0x30861c!=_0x4c5ef5?null:_0x30861c: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 _0x550c87=[];let _0x720212=this['head'];for(;_0x720212;)_0x550c87['push'](_0x720212),_0x720212=_0x720212['next'];return _0x550c87;}['setAttribute'](_0x5b1995,_0x444ee7){const _0x213f78=cloneDeep(this['attributes']);set(_0x213f78,_0x5b1995,_0x444ee7),isEqual(_0x213f78,this['attributes'])||(this['attributes']=_0x213f78,this['_onAttributesChange'](_0x213f78));}['removeAttribute'](_0x452ae8){const _0x3ea980=cloneDeep(this['attributes']);unset(_0x3ea980,_0x452ae8),isEqual(_0x3ea980,this['attributes'])||(this['attributes']=_0x3ea980,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(_0x70abe7,_0x5c60c6,_0x57b00e){const _0x419879=_0x70abe7['t'],t=_0x70abe7['t'];switch(_0x5c60c6){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',_0x57b00e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x57b00e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x57b00e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x57b00e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x57b00e);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',_0x57b00e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x57b00e);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',_0x57b00e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x57b00e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x57b00e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x57b00e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x57b00e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x57b00e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x57b00e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x57b00e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x57b00e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x57b00e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x57b00e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x57b00e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x57b00e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x57b00e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x57b00e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x57b00e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x57b00e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x57b00e);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'},_0x57b00e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x57b00e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x57b00e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x57b00e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x57b00e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x57b00e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x57b00e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x57b00e);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'},_0x57b00e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x57b00e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x57b00e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x57b00e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x57b00e);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'},_0x57b00e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x57b00e);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'},_0x57b00e);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'},_0x57b00e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x57b00e);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'},_0x57b00e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x57b00e);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'},_0x57b00e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x57b00e);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x57b00e);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x57b00e);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x57b00e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x57b00e);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'},_0x57b00e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x57b00e);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 _0x419879({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x57b00e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x419879({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x57b00e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x57b00e);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'},_0x57b00e);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'},_0x57b00e);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'},_0x57b00e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5c60c6;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1e4974,_0x8fa1e2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1e4974,this['_locale']=_0x8fa1e2;}['getDescriptions'](_0x3eaba7){const _0x5d8591=[],_0x280348=new Set(),_0x5e8c06=new Set();for(let _0x53cebd=0x0;_0x53cebd<_0x3eaba7['length'];_0x53cebd++){const _0x41d2cc=_0x3eaba7[_0x53cebd];if(!_0x41d2cc['isInContent'])continue;const _0x47a9e4=this['_handleCustomCallbackDescription'](_0x41d2cc);if(_0x47a9e4){if(null!=_0x41d2cc['subType']){if(_0x280348['has'](_0x41d2cc['subType']))continue;_0x280348['add'](_0x41d2cc['subType']);}_0x5d8591['push'](_0x47a9e4);}else{if('attribute'==_0x41d2cc['type']){const _0x23052c=_0x41d2cc['data']['key'];if(_0x5e8c06['has'](_0x23052c))continue;_0x5e8c06['add'](_0x41d2cc['data']['key']),_0x23052c==renameAttributeKey?this['_handleRenameSuggestionDescription'](_0x5d8591,_0x41d2cc):this['_handleAttributeSuggestionDescription'](_0x5d8591,_0x41d2cc);continue;}'insertion'!=_0x41d2cc['type']&&'deletion'!=_0x41d2cc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5d8591,_0x41d2cc,_0x3eaba7[_0x53cebd+0x1]);}}return this['_resolveDescriptionItems'](_0x5d8591);}['registerDescriptionCallback'](_0x3e6319){this['_customCallbacks']['push'](_0x3e6319);}['registerElementLabel'](_0x2ee995,_0x33fc57,_0x3b9a61=priorities['normal']){'function'==typeof _0x2ee995?insertToPriorityArray(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2ee995,'label':_0x33fc57,'priority':_0x3b9a61}):this['_itemLabels']['set'](_0x2ee995,_0x33fc57);}['registerAttributeLabel'](_0x455263,_0x431b8a){this['_attributeLabels']['set'](_0x455263,_0x431b8a);}['getItemLabel'](_0xdb1632,_0x3ebf6a=0x1){let _0x1f4b67;for(const _0x1a7cba of this['_itemLabelsCallbacks'])if(_0x1a7cba['matchingCallback'](_0xdb1632)){_0x1f4b67=_0x1a7cba['label'];break;}return _0x1f4b67||(_0x1f4b67=this['_itemLabels']['get'](_0xdb1632['name'])),_0x1f4b67?_0x1f4b67(_0x3ebf6a):0x1!==_0x3ebf6a?_0x3ebf6a+'\x20'+_0xdb1632['name']+'s':''+_0xdb1632['name'];}['_addDescriptionItems'](_0x181e1c,_0x266e4a){const _0x1c9cc7=_0x266e4a['getFirstRange']()['getWalker'](),_0x2d2ec3='insertion'==_0x266e4a['type']?'add':'remove';for(const _0x242c9c of _0x1c9cc7){const _0x3bcae3=_0x242c9c['item'],_0x2d922b=_0x181e1c[_0x181e1c['length']-0x1];if(_0x3bcae3['is']('$textProxy'))_0x2d922b&&_0x2d922b['type']['indexOf']('Container')>-0x1&&_0x181e1c['pop'](),_0x2d922b&&'text'==_0x2d922b['type']?_0x2d922b[_0x2d2ec3]+=_0x3bcae3['data']:_0x181e1c['push']({'type':'text','add':'add'==_0x2d2ec3?_0x3bcae3['data']:'','remove':'remove'==_0x2d2ec3?_0x3bcae3['data']:''});else{if(this['_schema']['isObject'](_0x3bcae3)){const _0x3d489d=_0x3bcae3;if(_0x2d922b&&_0x2d922b['type']['indexOf']('Container')>-0x1&&_0x181e1c['pop'](),'elementEnd'==_0x242c9c['type'])continue;_0x2d922b&&_0x2d922b['type']==_0x2d2ec3+'Object'&&_0x2d922b['element']['name']==_0x3d489d['name']?_0x2d922b['quantity']++:_0x181e1c['push']({'type':_0x2d2ec3+'Object','element':_0x3d489d,'quantity':0x1}),_0x1c9cc7['skip'](_0x368ab0=>!('elementEnd'==_0x368ab0['type']&&_0x368ab0['item']==_0x3bcae3));}else{if(this['_schema']['checkChild'](_0x3bcae3,'$text')||_0x3bcae3['is']('element','softBreak')){const _0x71709=_0x3bcae3;if('add'==_0x2d2ec3&&'elementStart'==_0x242c9c['type']||'remove'==_0x2d2ec3&&'elementEnd'==_0x242c9c['type'])continue;if(_0x2d922b&&-0x1==_0x2d922b['type']['indexOf']('Container')){'text'==_0x2d922b['type']&&(_0x2d922b[_0x2d2ec3]+='\x0a');continue;}let _0x6ae57;if(_0x6ae57='add'==_0x2d2ec3?_0x71709['nextSibling']&&!this['_schema']['isObject'](_0x71709['nextSibling'])?_0x71709['nextSibling']:null:_0x71709['previousSibling']&&!this['_schema']['isObject'](_0x71709['previousSibling'])?_0x71709['previousSibling']:null,_0x71709['isEmpty']||_0x6ae57&&_0x6ae57['isEmpty']){const _0x54f382=_0x6ae57&&_0x6ae57['isEmpty']?_0x6ae57:_0x71709;_0x2d922b&&_0x2d922b['type']==_0x2d2ec3+'EmptyContainer'&&_0x2d922b['element']['name']==_0x54f382['name']?_0x2d922b['quantity']++:_0x181e1c['push']({'type':_0x2d2ec3+'EmptyContainer','element':_0x54f382,'quantity':0x1});}else _0x181e1c['push']({'type':_0x2d2ec3+'Container','element':_0x71709});}}}}}['_resolveDescriptionItems'](_0x385d26){const _0x15f096=this['_locale'],_0x182501=[],_0x5d854d=[],_0x4ab3ef=[];for(const _0x22a28c of _0x385d26)switch(_0x22a28c['type']){case'text':if(_0x22a28c['add']=_0x22a28c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x22a28c['remove']=_0x22a28c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x22a28c['add']&&''!=_0x22a28c['remove']){_0x182501['push']({'type':'replace','content':getTranslation$1(_0x15f096,'REPLACE_TEXT',['\x22'+_0x22a28c['remove']+'\x22','\x22'+_0x22a28c['add']+'\x22'])});continue;}if(null!=_0x22a28c['add']['match'](/^ +$/)){_0x182501['push']({'type':'insertion','content':getTranslation$1(_0x15f096,'*Insert:*\x20%0',getTranslation$1(_0x15f096,'ELEMENT_SPACE',_0x22a28c['add']['length']))});continue;}if(null!=_0x22a28c['remove']['match'](/^ +$/)){_0x182501['push']({'type':'deletion','content':getTranslation$1(_0x15f096,'*Remove:*\x20%0',getTranslation$1(_0x15f096,'ELEMENT_SPACE',_0x22a28c['remove']['length']))});continue;}if(''!=_0x22a28c['add']){_0x182501['push']({'type':'insertion','content':getTranslation$1(_0x15f096,'*Insert:*\x20%0','\x22'+_0x22a28c['add']+'\x22')});continue;}_0x182501['push']({'type':'deletion','content':getTranslation$1(_0x15f096,'*Remove:*\x20%0','\x22'+_0x22a28c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x182501['push']({'type':'insertion','content':getTranslation$1(_0x15f096,'*Insert:*\x20%0',this['getItemLabel'](_0x22a28c['element'],_0x22a28c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x182501['push']({'type':'deletion','content':getTranslation$1(_0x15f096,'*Remove:*\x20%0',this['getItemLabel'](_0x22a28c['element'],_0x22a28c['quantity']))});continue;case'addContainer':_0x182501['push']({'type':'insertion','content':getTranslation$1(_0x15f096,'*Split:*\x20%0',this['getItemLabel'](_0x22a28c['element'],_0x22a28c['quantity']))});continue;case'removeContainer':_0x182501['push']({'type':'deletion','content':getTranslation$1(_0x15f096,'*Merge:*\x20%0',this['getItemLabel'](_0x22a28c['element'],_0x22a28c['quantity']))});continue;case'addFormat':_0x5d854d['push'](_0x22a28c['key']);continue;case'removeFormat':_0x4ab3ef['push'](_0x22a28c['key']);continue;default:_0x182501['push'](_0x22a28c);}if(_0x5d854d['length']){const _0x3a235e=_0x5d854d['map'](_0x10c864=>this['_attributeLabels']['has'](_0x10c864)?this['_attributeLabels']['get'](_0x10c864):_0x10c864)['join'](',\x20');_0x182501['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Set\x20format:*\x20%0',_0x3a235e)});}if(_0x4ab3ef['length']){const _0x247120=_0x4ab3ef['map'](_0x10ad19=>this['_attributeLabels']['has'](_0x10ad19)?this['_attributeLabels']['get'](_0x10ad19):_0x10ad19)['join'](',\x20');_0x182501['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Remove\x20format:*\x20%0',_0x247120)});}return _0x182501;}['_handleCustomCallbackDescription'](_0x580764){for(const _0x25b48d of this['_customCallbacks']){const _0x91ea85=_0x25b48d(_0x580764);if(_0x91ea85&&'type'in _0x91ea85)return _0x91ea85;}}['_handleAttributeSuggestionDescription'](_0x5cb2f6,_0x17e816){const _0x1ae4b3=_0x17e816['data'],_0x4b289e=void 0x0===_0x1ae4b3['newValue']?'removeFormat':'addFormat';_0x5cb2f6['push']({'type':_0x4b289e,'key':_0x1ae4b3['key']});}['_handleRenameSuggestionDescription'](_0x3c8377,_0xb87555){_0x3c8377['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xb87555['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x163106,_0x17db2c,_0x282432){if(this['_addDescriptionItems'](_0x163106,_0x17db2c),_0x282432&&_0x282432['getFirstRange']()&&!_0x17db2c['getFirstRange']()['end']['isEqual'](_0x282432['getFirstRange']()['start'])){const _0xac064e=_0x163106[_0x163106['length']-0x1],_0x891f5c='insertion'==_0x17db2c['type']?'add':'remove';_0xac064e&&'text'==_0xac064e['type']&&(_0xac064e[_0x891f5c]+='\x0a');}}}class TrackChangesAIAssistant extends Plugin{['afterInit'](){const _0x27992e=this['editor'],_0x4a7da2=_0x27992e['plugins']['get']('TrackChangesEditing');_0x27992e['commands']['get']('showAIAssistant')&&_0x4a7da2['enableCommand']('showAIAssistant');}}class TrackChangesAI extends Plugin{['afterInit'](){const _0x4f6a9b=this['editor'],_0x1d5893=_0x4f6a9b['plugins']['get']('TrackChangesEditing');_0x4f6a9b['commands']['get']('toggleAi')&&_0x1d5893['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends Plugin{['afterInit'](){const _0x55559e=this['editor'],_0x35d6c0=_0x55559e['plugins']['get']('TrackChangesEditing');_0x55559e['commands']['get']('aiQuickAction')&&_0x35d6c0['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends Plugin{['afterInit'](){const _0x29b669=this['editor'],_0x3d72e5=_0x29b669['locale'];if(!_0x29b669['plugins']['has']('AlignmentEditing'))return;const _0x169dd2=_0x29b669['plugins']['get']('TrackChangesEditing');_0x169dd2['enableDefaultAttributesIntegration']('alignment'),_0x169dd2['descriptionFactory']['registerAttributeLabel']('alignment',getTranslation$1(_0x3d72e5,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x575345=this['editor'],_0x37b5b8=_0x575345['locale'];_0x575345['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd68543=>{if('formatBlock'!=_0xd68543['type'])return;const {data:_0x50ff7b}=_0xd68543;if(_0x50ff7b&&'alignment'==_0x50ff7b['commandName']){const _0x2e7e10=_0x50ff7b['commandParams'][0x0]['value'];return{'type':'format','content':getTranslation$1(_0x37b5b8,'*Format:*\x20%0',function(_0x527f4b){switch(_0x527f4b){case'left':return getTranslation$1(_0x37b5b8,'FORMAT_ALIGN_TO_LEFT');case'right':return getTranslation$1(_0x37b5b8,'FORMAT_ALIGN_TO_RIGHT');case'center':return getTranslation$1(_0x37b5b8,'FORMAT_ALIGN_TO_CENTER');case'justify':return getTranslation$1(_0x37b5b8,'FORMAT_JUSTIFY_TEXT');}}(_0x2e7e10))};}});}}const basicStylesPlugins=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends Plugin{['afterInit'](){const _0x2f5cd5=this['editor'],_0x11e161=_0x2f5cd5['plugins']['get']('TrackChangesEditing'),_0x50a1c1=_0x2f5cd5['locale'];for(const _0x29eefc of basicStylesPlugins){if(!_0x2f5cd5['plugins']['has'](_0x29eefc))continue;const _0x795b78=_0x29eefc['slice'](0x0,-0x7)['toLowerCase'](),_0x16ae14='FORMAT_'+_0x795b78['toUpperCase']();_0x11e161['enableDefaultAttributesIntegration'](_0x795b78),_0x11e161['descriptionFactory']['registerAttributeLabel'](_0x795b78,getTranslation$1(_0x50a1c1,_0x16ae14));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x524a55=this['editor'],_0x5bd991=_0x524a55['locale'],_0x3c4960=_0x524a55['plugins']['get']('TrackChangesEditing');function _0x57ec58(_0x39bae5,_0x3f64c6){_0x3c4960['descriptionFactory']['registerDescriptionCallback'](_0xa241ec=>{if('formatInline'!=_0xa241ec['type'])return;const {data:_0x4e6ebf}=_0xa241ec;return _0x4e6ebf&&_0x4e6ebf['commandName']===_0x39bae5?_0x4e6ebf['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x5bd991,'*Format:*\x20%0',_0x3f64c6)}:{'type':'format','content':getTranslation$1(_0x5bd991,'*Remove\x20format:*\x20%0',_0x3f64c6)}:void 0x0;});}_0x57ec58('bold',getTranslation$1(_0x5bd991,'FORMAT_BOLD')),_0x57ec58('italic',getTranslation$1(_0x5bd991,'FORMAT_ITALIC')),_0x57ec58('underline',getTranslation$1(_0x5bd991,'FORMAT_UNDERLINE')),_0x57ec58('code',getTranslation$1(_0x5bd991,'FORMAT_CODE')),_0x57ec58('strikethrough',getTranslation$1(_0x5bd991,'FORMAT_STRIKETHROUGH')),_0x57ec58('subscript',getTranslation$1(_0x5bd991,'FORMAT_SUBSCRIPT')),_0x57ec58('superscript',getTranslation$1(_0x5bd991,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends Plugin{['afterInit'](){const _0x1902f2=this['editor'],_0x509e58=_0x1902f2['locale'];if(!_0x1902f2['plugins']['has']('BlockQuoteEditing'))return;const _0x3a35e1=_0x1902f2['plugins']['get']('TrackChangesEditing'),_0x40e953=this['editor']['commands']['get']('blockQuote');_0x3a35e1['enableCommand']('blockQuote',(_0x263b39,_0x3ae436={})=>{const _0x4c7d98=this['editor']['model']['document']['selection'],_0x168b49=_0x3ae436&&void 0x0!==_0x3ae436['forceValue']?_0x3ae436['forceValue']:!_0x40e953['value'];let _0x2cd4b7=[];if(_0x168b49){const _0x4ac36b=Array['from'](_0x4c7d98['getSelectedBlocks']())['filter'](_0x1ea079=>isInQuote(_0x1ea079)||checkCanBeQuoted(_0x1ea079,this['editor']['model']['schema']));_0x2cd4b7=getRangesOfBlockGroups(_0x4ac36b,_0x1902f2['model']);}else{const _0x521139=Array['from'](_0x4c7d98['getSelectedBlocks']())['filter'](_0x414a13=>isInQuote(_0x414a13));_0x2cd4b7=getRangesOfBlockGroups(_0x521139,_0x1902f2['model']);}_0x1902f2['model']['change'](()=>{for(const _0x3ab41d of _0x2cd4b7)_0x3a35e1['markBlockFormat'](_0x3ab41d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x168b49}]});});}),_0x3a35e1['descriptionFactory']['registerDescriptionCallback'](_0x51eb9f=>{const {data:_0x1bab72}=_0x51eb9f;if(_0x1bab72&&'blockQuote'==_0x1bab72['commandName']){const _0x33c58a=getTranslation$1(_0x509e58,'ELEMENT_BLOCK_QUOTE');return _0x1bab72['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x509e58,'*Set\x20format:*\x20%0',_0x33c58a)}:{'type':'format','content':getTranslation$1(_0x509e58,'*Remove\x20format:*\x20%0',_0x33c58a)};}});}}function checkCanBeQuoted(_0x3216,_0x3f9af8){const _0x4607aa=_0x3f9af8['checkChild'](_0x3216['parent'],'blockQuote'),_0x183842=_0x3f9af8['checkChild'](['$root','blockQuote'],_0x3216);return _0x4607aa&&_0x183842;}function isInQuote(_0x23f833){return'blockQuote'==_0x23f833['parent']['name'];}class TrackChangesBookmark extends Plugin{['afterInit'](){const _0x5e6a95=this['editor'],_0x1bdc2e=_0x5e6a95['locale'],_0x4c8776=_0x5e6a95['plugins']['get']('TrackChangesEditing');_0x5e6a95['plugins']['has']('BookmarkEditing')&&(_0x4c8776['enableCommand']('insertBookmark'),_0x4c8776['enableDefaultAttributesIntegration']('updateBookmark'),_0x4c8776['descriptionFactory']['registerDescriptionCallback'](_0xb78192=>{if('insertion'!=_0xb78192['type']&&'deletion'!=_0xb78192['type']&&'attribute'!=_0xb78192['type'])return;const _0x3f1756=_0xb78192['getContainedElement']();if(null==_0x3f1756)return;if(!_0x3f1756['is']('element','bookmark'))return;const _0x304164=_0x3f1756['getAttribute']('bookmarkId');if('insertion'==_0xb78192['type'])return{'type':'insertion','content':getTranslation$1(_0x1bdc2e,'*Insert:*\x20%0','\x22'+_0x304164+'\x22\x20'+getTranslation$1(_0x1bdc2e,'ELEMENT_BOOKMARK'))};if('deletion'==_0xb78192['type'])return{'type':'deletion','content':getTranslation$1(_0x1bdc2e,'*Remove:*\x20%0','\x22'+_0x304164+'\x22\x20'+getTranslation$1(_0x1bdc2e,'ELEMENT_BOOKMARK'))};const {data:_0xeb0125}=_0xb78192;if(!_0xeb0125||'bookmarkId'!=_0xeb0125['key'])return;return{'type':'format','content':getTranslation$1(_0x1bdc2e,'*Set\x20bookmark:*\x20%0','\x22'+_0xeb0125['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends Plugin{['afterInit'](){const _0x628e23=this['editor'];_0x628e23['plugins']['has']('CaseChange')&&(_0x628e23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x628e23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x628e23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends Plugin{['afterInit'](){const _0x9c52ba=this['editor'];_0x9c52ba['commands']['get']('ckbox')&&_0x9c52ba['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends Plugin{['afterInit'](){const _0x2d72fd=this['editor'];if(!_0x2d72fd['plugins']['has']('CodeBlock'))return;const _0xf0b30a=_0x2d72fd['plugins']['get']('TrackChangesEditing'),_0x2d8763=_0x2d72fd['locale'],_0x2803fe=_0x2d72fd['config']['get']('codeBlock')['languages'],_0x217add=_0x2d72fd['commands']['get']('codeBlock');_0xf0b30a['enableCommand']('indentCodeBlock'),_0xf0b30a['enableCommand']('outdentCodeBlock'),_0xf0b30a['enableCommand']('codeBlock',(_0x3cbb34,_0x432609={})=>{const _0x1255de=_0x2d72fd['model'],_0x171586=_0x2d72fd['model']['document']['selection'],_0x397fd2=_0x432609&&void 0x0!==_0x432609['forceValue']?_0x432609['forceValue']:!_0x217add['value'];let _0x4019b2;_0x432609['language']||(_0x432609['language']=_0x2803fe[0x0]['language']),_0x4019b2=_0x397fd2?Array['from'](_0x171586['getSelectedBlocks']())['filter'](_0x590c82=>isCodeBlock(_0x590c82)||canBeCodeBlock(_0x590c82,_0x1255de['schema'])):Array['from'](_0x171586['getSelectedBlocks']())['filter'](_0x5ee2bc=>isCodeBlock(_0x5ee2bc));const _0x2e9eb9=getRangesOfBlockGroups(_0x4019b2,_0x1255de);_0x1255de['change'](()=>{for(const _0x1a5bd9 of _0x2e9eb9)_0xf0b30a['markBlockFormat'](_0x1a5bd9,{'commandName':'codeBlock','commandParams':[{..._0x432609,'forceValue':_0x397fd2}],'formatGroupId':'blockName'});});}),(_0xf0b30a['descriptionFactory']['registerElementLabel']('codeBlock',_0x27388c=>getTranslation$1(_0x2d8763,'ELEMENT_CODE_BLOCK',_0x27388c)),_0xf0b30a['descriptionFactory']['registerDescriptionCallback'](_0x73cfc6=>{if('formatBlock'!=_0x73cfc6['type'])return;const _0x1f0dda=_0x2d8763['t'],{data:_0x567ac0}=_0x73cfc6;if(!_0x567ac0||'codeBlock'!=_0x567ac0['commandName'])return;const _0x562491=_0x567ac0['commandParams'][0x0]['language'],_0x189600=_0x2803fe['find'](_0xdb2ef2=>_0xdb2ef2['language']===_0x562491)['label'],_0x334cc9=_0x1f0dda(_0x189600)['toLowerCase']();return _0x567ac0['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x2d8763,'*Set\x20format:*\x20%0',getTranslation$1(_0x2d8763,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x334cc9+')')}:{'type':'format','content':getTranslation$1(_0x2d8763,'*Remove\x20format:*\x20%0',getTranslation$1(_0x2d8763,'ELEMENT_CODE_BLOCK',0x1))};}));}}function canBeCodeBlock(_0x5b765e,_0x5e5237){return!_0x5b765e['is']('rootElement')&&!_0x5e5237['isLimit'](_0x5b765e)&&_0x5e5237['checkChild'](_0x5b765e['parent'],'codeBlock');}function isCodeBlock(_0x4a681a){return'codeBlock'==_0x4a681a['name'];}class TrackChangesComments extends Plugin{['afterInit'](){const _0x3c1846=this['editor'];if(!_0x3c1846['plugins']['has']('CommentsEditing'))return;_0x3c1846['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends Plugin{static get['requires'](){return[Delete];}['init'](){const _0x261292=this['editor'],_0xd5ed98=_0x261292['plugins']['get']('TrackChangesEditing');_0xd5ed98['enableCommand']('delete');const _0x4ca223=_0x261292['commands']['get']('deleteForward');_0xd5ed98['enableCommand']('deleteForward',(_0x2ff49b,_0xe947e8={})=>{const _0x184d33=_0x261292['model']['createSelection'](_0x261292['model']['document']['selection']);_0x184d33['isCollapsed']&&_0x261292['model']['modifySelection'](_0x184d33,{'direction':'forward','unit':_0xe947e8['unit']});const _0x33b5f7=_0x184d33['getFirstRange'](),_0x527713=ModelLiveRange['fromRange'](_0x33b5f7);let _0x59e528;_0x2ff49b(_0xe947e8),_0x59e528='$graveyard'==_0x527713['root']['rootName']?_0x261292['model']['createRange'](_0x33b5f7['start']):_0x261292['model']['createRange'](_0x527713['start'],_0x527713['end']),_0x527713['detach'](),_0x261292['model']['enqueueChange'](_0x4ca223['buffer']['batch'],_0xddd895=>{_0x4ca223['buffer']['lock'](),_0xddd895['setSelection'](_0xddd895['createRange'](_0x59e528['end'])),_0x4ca223['buffer']['unlock']();});});}}class TrackChangesList extends Plugin{['afterInit'](){const _0x370aa4=this['editor'];if(!_0x370aa4['plugins']['has']('ListEditing'))return;const _0x14e747=_0x370aa4['locale'],_0x7e24d4=_0x370aa4['plugins']['get']('TrackChangesEditing'),_0x6df278=_0x370aa4['plugins']['has']('TodoListEditing'),_0x3935a6=!!_0x370aa4['config']['get']('list.multiBlock');function _0x34d59e(_0x6be873){return{'type':'format','content':''+getTranslation$1(_0x14e747,'*Set\x20format:*\x20%0',_0x6be873)};}function _0x221ff6(_0x376733){return{'type':'format','content':''+getTranslation$1(_0x14e747,'*Remove\x20format:*\x20%0',_0x376733)};}_0x7e24d4['enableDefaultAttributesIntegration']('numberedList'),_0x7e24d4['enableDefaultAttributesIntegration']('bulletedList'),_0x7e24d4['enableDefaultAttributesIntegration']('customNumberedList'),_0x7e24d4['enableDefaultAttributesIntegration']('customBulletedList'),_0x7e24d4['enableDefaultAttributesIntegration']('indentList'),_0x7e24d4['enableDefaultAttributesIntegration']('outdentList'),_0x7e24d4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x7e24d4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3935a6&&(_0x7e24d4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x7e24d4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x6df278&&(_0x7e24d4['enableDefaultAttributesIntegration']('todoList'),_0x7e24d4['enableDefaultAttributesIntegration']('checkTodoList'),_0x7e24d4['descriptionFactory']['registerDescriptionCallback'](_0x4f1b64=>{const {data:_0x589c2e}=_0x4f1b64;if(_0x589c2e&&'todoListChecked'==_0x589c2e['key'])return{'type':'format','content':_0x589c2e['newValue']?getTranslation$1(_0x14e747,'*Check\x20item*'):getTranslation$1(_0x14e747,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1a0088=>{if(_0x1a0088['batch']['isUndo'])return!0x1;let _0x3488aa=!0x1;const _0x351897=_0x7e24d4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4573d8=>'todoListChecked'===_0x7e24d4['_getAttributeKey'](_0x4573d8));for(const _0x33d2c0 of _0x351897){'todo'!=_0x33d2c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x7e24d4['_findSuggestions'](_0x33d2c0['getFirstRange'](),'attribute')['find'](_0x2aecab=>'listType'===_0x7e24d4['_getAttributeKey'](_0x2aecab['suggestion']))||(_0x1a0088['removeMarker'](_0x33d2c0['getFirstMarker']()),_0x3488aa=!0x0));}return _0x3488aa;})),_0x7e24d4['descriptionFactory']['registerAttributeLabel']('listIndent',getTranslation$1(_0x14e747,'FORMAT_INDENT'));const _0x77b4a6={'type':'format','content':''};_0x7e24d4['descriptionFactory']['registerDescriptionCallback'](_0x395ab6=>{const {data:_0x186689}=_0x395ab6;if(!_0x186689||'listType'!=_0x186689['key'])return;let _0x3481a0=_0x395ab6['head'];for(;_0x3481a0;){if(_0x3481a0['data']&&(('listStyle'==_0x3481a0['data']['key']||'listMarkerStyle'==_0x3481a0['data']['key'])&&(_0x3481a0['data']['newValue']&&'default'!=_0x3481a0['data']['newValue']||'default'!=_0x3481a0['data']['oldValue']&&!_0x186689['newValue'])||!_0x3935a6&&_0x3481a0['data']['key']==renameAttributeKey))return _0x77b4a6;_0x3481a0=_0x3481a0['next'];}if(null==_0x186689['newValue'])switch(_0x186689['oldValue']){case'bulleted':return _0x221ff6(getTranslation$1(_0x14e747,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x221ff6(getTranslation$1(_0x14e747,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x221ff6(getTranslation$1(_0x14e747,'ELEMENT_TODO_LIST'));}switch(_0x186689['newValue']){case'bulleted':return _0x34d59e(getTranslation$1(_0x14e747,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34d59e(getTranslation$1(_0x14e747,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34d59e(getTranslation$1(_0x14e747,'ELEMENT_TODO_LIST'));}}),_0x7e24d4['descriptionFactory']['registerDescriptionCallback'](_0x2ea0ba=>{const {data:_0x5e3ac1}=_0x2ea0ba;if(_0x5e3ac1&&'listIndent'==_0x5e3ac1['key'])return null==_0x5e3ac1['newValue']||null==_0x5e3ac1['oldValue']&&0x0==_0x5e3ac1['newValue']?_0x77b4a6:void 0x0;}),_0x7e24d4['descriptionFactory']['registerDescriptionCallback'](_0x416b35=>{if('attribute'!=_0x416b35['type'])return;const {data:_0x1eeea4}=_0x416b35;if(!_0x1eeea4||'listItemId'!=_0x1eeea4['key'])return;const _0x553212=checkSiblingsListItemId(_0x416b35);return'newValue'==_0x553212?{'type':'format','content':getTranslation$1(_0x14e747,'*Merge:*\x20list\x20item')}:'oldValue'==_0x553212?{'type':'format','content':getTranslation$1(_0x14e747,'*Split:*\x20list\x20item')}:_0x77b4a6;}),_0x370aa4['model']['document']['registerPostFixer'](_0x3da3f6=>this['listItemIdFixer'](_0x3da3f6)),_0x370aa4['model']['document']['registerPostFixer'](_0x3d78c5=>this['noTrackChangesFixer'](_0x3d78c5)),_0x370aa4['model']['document']['on']('change:data',(_0x17ba70,_0x48f772)=>{if(_0x48f772['isUndo']||!_0x48f772['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x359cd5){if(_0x359cd5['batch']['isUndo']||!_0x359cd5['batch']['isLocal'])return!0x1;let _0x39185e=!0x1;const _0x4cc234=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x93824d=>_0x93824d['data']&&'listItemId'==_0x93824d['data']['key'])['filter'](_0x3533cf=>_0x3533cf['data']['newValue']&&_0x3533cf['data']['oldValue']);for(const _0x4ba8a6 of _0x4cc234)checkSiblingsListItemId(_0x4ba8a6)||(_0x359cd5['removeMarker'](_0x4ba8a6['getFirstMarker']()),_0x39185e=!0x0);return _0x39185e;}['noTrackChangesFixer'](_0x62a9f2){if(_0x62a9f2['batch']['isUndo']||!_0x62a9f2['batch']['isLocal'])return!0x1;const _0xd5974e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xd5974e['trackChangesCommand']['value'])return!0x1;let _0x541566=!0x1;const _0x425cca=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2e629=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4fc5e3=>'attribute'==_0x4fc5e3['type'])['filter'](_0x188327=>_0x425cca['includes'](_0x188327['attributeKey']));if(0x0==_0x2e629['length'])return _0x541566;for(const _0x4f6d81 of _0x2e629){const _0x39cf23=_0xd5974e['_findSuggestions'](_0x4f6d81['range'],'attribute')['filter'](_0x1b0054=>!_0x1b0054['meta']['isNextTo'])['map'](_0x510a34=>_0x510a34['suggestion'])['filter'](_0x1a1887=>{const _0x445fab=_0xd5974e['_getAttributeKey'](_0x1a1887);return _0x425cca['includes'](_0x445fab);});if(_0x39cf23['length']){for(const _0x5bbfe0 of _0x39cf23)_0x62a9f2['removeMarker'](_0x5bbfe0['getFirstMarker']());_0x541566=!0x0;}}return _0x541566;}['assureChains'](){const _0x230641=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e1237=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3c02fa;const _0x5032e6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ce054=>{if(_0x4ce054['data']['oldRange']||!_0x4ce054['data']['newRange'])return null;if(!_0x4ce054['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x536b15}=_0x230641['_splitMarkerName'](_0x4ce054['name']);if(!_0x230641['hasSuggestion'](_0x536b15))return null;const _0x535cc0=_0x230641['getSuggestion'](_0x536b15);return _0x3e1237['includes'](_0x535cc0['data']['key']);})['map'](_0x312466=>{const {id:_0xb64020}=_0x230641['_splitMarkerName'](_0x312466['name']),_0x5b6b49=_0x230641['getSuggestion'](_0xb64020);return _0x3c02fa=_0x5b6b49['attributes']['groupId'],_0x5b6b49['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5032e6['size'])return;const _0x21ce43=_0x230641['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58e750=>'attribute'==_0x58e750['type']&&_0x58e750['data']&&_0x3e1237['includes'](_0x58e750['data']['key'])&&_0x58e750['attributes']['groupId']!=_0x3c02fa)['map'](_0x5804a5=>({'listItem':_0x5804a5['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5804a5['attributes']['groupId']})),_0x28246f=new Set();for(const {groupId:_0x15d070,listItem:_0x36b675}of _0x21ce43)_0x5032e6['has'](_0x36b675)&&_0x28246f['add'](_0x15d070);for(const _0x186c98 of _0x230641['getSuggestions']())_0x28246f['has'](_0x186c98['attributes']['groupId'])&&_0x186c98['setAttribute']('groupId',_0x3c02fa);}['_supportLegacySuggestions'](){const _0xcacde8=this['editor'],_0x38fed6=_0xcacde8['locale'],_0x173744=_0xcacde8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x173744['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4ff093,_0x2b0116){const _0x248ba6=[];for(let _0x38d364 of _0x4ff093)_0x38d364['start']['nodeAfter']===_0x38d364['end']['parent']&&(_0x38d364=_0xcacde8['model']['createRange'](_0xcacde8['model']['createPositionAt'](_0x38d364['start']['nodeAfter'],0x0))),_0x248ba6['push'](_0x38d364);_0xcacde8['model']['change'](_0xef0fea=>{const _0x2ea907=_0xcacde8['model']['document']['selection'],_0x5d9415=Array['from'](_0x2ea907['getRanges']())['map'](_0x29d765=>ModelLiveRange['fromRange'](_0x29d765));_0xef0fea['setSelection'](_0x248ba6),_0xcacde8['commands']['get'](_0x2b0116['commandName'])['refresh'](),_0x2b0116['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xcacde8['execute'](_0x2b0116['commandName'],..._0x2b0116['commandParams']),_0xef0fea['setSelection'](_0x5d9415);for(const _0x14f324 of _0x5d9415)_0x14f324['detach']();});}),_0x173744['descriptionFactory']['registerElementLabel'](function(_0x397509){const _0x2b5cd2=!_0xcacde8['model']['schema']['isObject'](_0x397509),_0x4b3015=_0x397509['previousSibling'],_0x2a7a7b=_0x397509['nextSibling'],_0x4fc754=_0x397509['getAttribute']('listItemId'),_0x4da6a5=!_0x4b3015||_0x4b3015['getAttribute']('listItemId')!==_0x4fc754,_0x58e8c4=!_0x2a7a7b||_0x2a7a7b['getAttribute']('listItemId')!==_0x4fc754;return _0x2b5cd2&&Boolean(_0x4fc754)&&_0x4da6a5&&_0x58e8c4;},_0x38277d=>getTranslation$1(_0x38fed6,'ELEMENT_LIST_ITEM',_0x38277d));}['_registerLegacyDescription'](){const _0x1e7e9a=this['editor'],_0x4260ae=_0x1e7e9a['locale'];function _0x32c186(_0x261926){const _0x2e99fd=_0x1e7e9a['commands']['get']('bulletedList')['value'],_0x2f8d66=_0x1e7e9a['commands']['get']('numberedList')['value'];return'numberedList'===_0x261926?_0x2e99fd:_0x2f8d66;}_0x1e7e9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1333b2){if('formatBlock'!=_0x1333b2['type'])return;const {data:_0x5ae71a}=_0x1333b2;if(!_0x5ae71a)return;let _0x1f313e,_0x5e8af6,_0x3b8386,_0x259dce;switch(_0x5ae71a['commandName']){case'bulletedList':_0x3b8386=_0x5ae71a['commandParams'][0x0]['forceValue'],_0x259dce=_0x32c186(_0x5ae71a['commandName']),_0x1f313e=_0x3b8386?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x259dce&&_0x1e7e9a['config']['get']('list.multiBlock')||(_0x1f313e='*Change\x20to:*\x20%0'),_0x5e8af6={'type':'format','content':getTranslation$1(_0x4260ae,_0x1f313e,getTranslation$1(_0x4260ae,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3b8386=_0x5ae71a['commandParams'][0x0]['forceValue'],_0x259dce=_0x32c186(_0x5ae71a['commandName']),_0x1f313e=_0x3b8386?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x259dce&&_0x1e7e9a['config']['get']('list.multiBlock')||(_0x1f313e='*Change\x20to:*\x20%0'),_0x5e8af6={'type':'format','content':getTranslation$1(_0x4260ae,_0x1f313e,getTranslation$1(_0x4260ae,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1f313e='*Indent:*\x20%0',_0x5e8af6={'type':'format','content':getTranslation$1(_0x4260ae,_0x1f313e,getTranslation$1(_0x4260ae,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1f313e=function(_0x529d5d){const _0x37d6f0=_0x529d5d['getFirstRange']();let _0x3433aa=_0x37d6f0['start']['nodeAfter'];for(;_0x3433aa&&_0x37d6f0['containsItem'](_0x3433aa);){if(_0x3433aa['getAttribute']('listIndent')>0x0)return!0x1;_0x3433aa=_0x3433aa['nextSibling'];}return!0x0;}(_0x1333b2)?getTranslation$1(_0x4260ae,'*Format:*\x20remove\x20from\x20%0',getTranslation$1(_0x4260ae,function(_0x433264){return'ELEMENT_'+_0x433264['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1333b2))):getTranslation$1(_0x4260ae,'*Outdent:*\x20%0',getTranslation$1(_0x4260ae,'ELEMENT_LIST_ITEM')),_0x5e8af6={'type':'format','content':_0x1f313e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5ae71a['multipleBlocks']&&(_0x1f313e='*Merge:*\x20%0',_0x5e8af6={'type':'deletion','content':getTranslation$1(_0x4260ae,_0x1f313e,getTranslation$1(_0x4260ae,'ELEMENT_LIST_ITEM'))});}return _0x5e8af6;});}}function checkSiblingsListItemId(_0x95eff8){let _0x5f5894=_0x95eff8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5f5894;){const _0x5ab564=_0x5f5894['getAttribute']('listItemId');if(!_0x5ab564)return!0x1;if(_0x5ab564==_0x95eff8['data']['newValue'])return'newValue';if(_0x5ab564==_0x95eff8['data']['oldValue'])return'oldValue';_0x5f5894=_0x5f5894['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3b300b=this['editor']['config']['get']('list.properties'),_0xbe7478=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b300b['styles']&&_0xbe7478['enableDefaultAttributesIntegration']('listStyle'),_0x3b300b['reversed']&&_0xbe7478['enableDefaultAttributesIntegration']('listReversed'),_0x3b300b['startIndex']&&_0xbe7478['enableDefaultAttributesIntegration']('listStart');const _0x5c9610={'type':'format','content':''};_0xbe7478['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x29935d=this['editor']['locale'];_0xbe7478['descriptionFactory']['registerAttributeLabel']('listReversed',getTranslation$1(_0x29935d,'FORMAT_LIST_REVERSED')),_0xbe7478['descriptionFactory']['registerDescriptionCallback'](_0x2cd133=>{const {data:_0x353d44}=_0x2cd133;if(_0x353d44&&'listReversed'==_0x353d44['key'])return null==_0x353d44['newValue']||0x0==_0x353d44['newValue']&&null==_0x353d44['oldValue']?_0x5c9610:void 0x0;}),_0xbe7478['descriptionFactory']['registerAttributeLabel']('listStart',getTranslation$1(_0x29935d,'FORMAT_LIST_START')),_0xbe7478['descriptionFactory']['registerDescriptionCallback'](_0x1386f5=>{const {data:_0x184683}=_0x1386f5;if(_0x184683&&'listStart'==_0x184683['key'])return null==_0x184683['newValue']||0x1==_0x184683['newValue']&&null==_0x184683['oldValue']?_0x5c9610:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x42a449=>{if(_0x42a449['batch']['isUndo'])return!0x1;let _0x136f39=!0x1;const _0x41577f=_0xbe7478['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fb871=>{const _0x1ddc20=_0xbe7478['_getAttributeKey'](_0x3fb871);return'listStart'==_0x1ddc20||'listReversed'==_0x1ddc20;});for(const _0x273dd7 of _0x41577f){const _0x285de1=_0x273dd7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x285de1||'customNumbered'==_0x285de1)continue;_0xbe7478['_findSuggestions'](_0x273dd7['getFirstRange'](),'attribute')['find'](_0x251862=>'listType'==_0xbe7478['_getAttributeKey'](_0x251862['suggestion']))||(_0x42a449['removeMarker'](_0x273dd7['getFirstMarker']()),_0x136f39=!0x0);}return _0x136f39;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x209d52){const _0x1c4a13=this['editor']['locale'],{data:_0x9ef6d}=_0x209d52,_0x4c0a3d={'type':'format','content':''};if(!_0x9ef6d||'listStyle'!=_0x9ef6d['key'])return;if(!_0x9ef6d['oldValue'])return'default'==_0x9ef6d['newValue']?_0x4c0a3d:{'type':'format','content':''+getTranslation$1(_0x1c4a13,'*Set\x20format:*\x20%0',getTranslation$1(_0x1c4a13,this['_getTranslationKeyForListStyle'](_0x9ef6d['newValue'])))};if(!_0x9ef6d['newValue']){if('default'==_0x9ef6d['oldValue'])return _0x4c0a3d;let _0x28791a=_0x209d52['head'];for(;_0x28791a;){if(_0x28791a['data']&&'listType'==_0x28791a['data']['key']&&_0x28791a['data']['newValue'])return _0x4c0a3d;_0x28791a=_0x28791a['next'];}return{'type':'format','content':''+getTranslation$1(_0x1c4a13,'*Remove\x20format:*\x20%0',getTranslation$1(_0x1c4a13,this['_getTranslationKeyForListStyle'](_0x9ef6d['oldValue'])))};}if('default'!=_0x9ef6d['newValue'])return{'type':'format','content':''+getTranslation$1(_0x1c4a13,'*Set\x20format:*\x20%0',getTranslation$1(_0x1c4a13,this['_getTranslationKeyForListStyle'](_0x9ef6d['newValue'])))};let _0x4d14de=_0x209d52['head'];for(;_0x4d14de;){if(_0x4d14de['data']&&'listType'==_0x4d14de['data']['key']&&_0x4d14de['data']['newValue']&&_0x4d14de['data']['oldValue'])return _0x4c0a3d;_0x4d14de=_0x4d14de['next'];}return{'type':'format','content':getTranslation$1(_0x1c4a13,'*Set\x20format:*\x20%0',getTranslation$1(_0x1c4a13,'ELEMENT_'+_0x209d52['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3b89b6=this['editor'],_0x2639cb=_0x3b89b6['locale'];_0x3b89b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b93b0=>{if('formatBlock'!=_0x4b93b0['type'])return;const {data:_0x5458e9}=_0x4b93b0;if(!_0x5458e9)return;let _0x2a9d45,_0x30beb9;switch(_0x5458e9['commandName']){case'listStyle':_0x2a9d45='*Change\x20to:*\x20%0',_0x30beb9={'type':'format','content':getTranslation$1(_0x2639cb,_0x2a9d45,getTranslation$1(_0x2639cb,this['_getTranslationKeyForListStyle'](_0x5458e9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2a9d45=_0x5458e9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30beb9={'type':'format','content':getTranslation$1(_0x2639cb,_0x2a9d45)};break;case'listStart':_0x2a9d45='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30beb9={'type':'format','content':getTranslation$1(_0x2639cb,_0x2a9d45,_0x5458e9['commandParams'][0x0]['startIndex'])};}return _0x30beb9;});}['_getTranslationKeyForListStyle'](_0x4e5a50){return'ELEMENT_'+getListTypeFromListStyleType(_0x4e5a50)['toUpperCase']()+'_LIST_'+_0x4e5a50['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(_0x340378){return BULLETED_LIST_STYLE_TYPES['includes'](_0x340378)?'bulleted':NUMBERED_LIST_STYLE_TYPES['includes'](_0x340378)?'numbered':null;}class TrackChangesEmoji extends Plugin{['afterInit'](){const _0x2d5779=this['editor'];_0x2d5779['commands']['get']('emoji')&&_0x2d5779['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends Plugin{static get['requires'](){return[Enter];}['init'](){const _0x3acdab=this['editor'],_0x502c14=_0x3acdab['plugins']['get']('TrackChangesEditing'),_0x35f3cc=_0x3acdab['commands']['get']('enter');_0x502c14['enableCommand']('enter',()=>{_0x3acdab['model']['change'](_0x5e877e=>{const _0xd5091f=_0x3acdab['model']['document']['selection'],_0x2ea144=_0xd5091f['getFirstPosition'](),_0x51f4c9=ModelLiveRange['fromRange'](_0xd5091f['getFirstRange']());if(_0x35f3cc['enterBlock'](_0x5e877e)){const _0x38b7da=_0x3acdab['model']['createPositionAt'](_0x2ea144['parent']['nextSibling'],0x0),_0x1e1c8b=_0x5e877e['createRange'](_0x2ea144,_0x38b7da);_0x502c14['markInsertion'](_0x1e1c8b);}else _0x5e877e['setSelection'](_0x5e877e['createRange'](_0x51f4c9['end']));_0x51f4c9['detach'](),_0x35f3cc['fire']('afterExecute',{'writer':_0x5e877e});});});}}class TrackChangesFindAndReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4746e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x4746e6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4746e6['enableCommand']('findNext'),_0x4746e6['enableCommand']('findPrevious'),_0x4746e6['enableCommand']('replace'),_0x4746e6['enableCommand']('replaceAll');}['handleFindCommand'](_0x113903,_0xe03d88,_0x688f5a={}){const _0x95701=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x113903(_0x2ba486=>{let _0x256b0b=('string'==typeof _0xe03d88?_0x95701['findByTextCallback'](_0xe03d88,_0x688f5a):_0xe03d88)(_0x2ba486);Array['isArray'](_0x256b0b)&&(_0x256b0b={'results':_0x256b0b,'searchText':'string'==typeof _0xe03d88?_0xe03d88:''});const _0x30edcc=_0x256b0b['results']['filter'](_0x54ae3c=>!0x1===this['_isInDeletionRange'](_0x54ae3c,_0x2ba486['item']));return{..._0x256b0b,'results':_0x30edcc};},_0x688f5a);}['_isInDeletionRange'](_0x435006,_0x5b2e3f){const _0x22e995=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b2e3f,_0x435006['start']),this['editor']['model']['createPositionAt'](_0x5b2e3f,_0x435006['end']));for(const _0x3093f8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x22e995['getIntersection'](_0x3093f8['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 _0x463237=this['editor']['locale'],_0x2ef3b6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5caf04,commandName:_0x5024fc}of fontPlugins)this['editor']['plugins']['has'](_0x5caf04)&&_0x2ef3b6['enableDefaultAttributesIntegration'](_0x5024fc);_0x2ef3b6['descriptionFactory']['registerAttributeLabel']('fontSize',getTranslation$1(_0x463237,'FORMAT_FONT_SIZE')),_0x2ef3b6['descriptionFactory']['registerAttributeLabel']('fontFamily',getTranslation$1(_0x463237,'FORMAT_FONT_FAMILY')),_0x2ef3b6['descriptionFactory']['registerAttributeLabel']('fontColor',getTranslation$1(_0x463237,'FORMAT_FONT_COLOR')),_0x2ef3b6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',getTranslation$1(_0x463237,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4db1e6=this['editor'],_0x69cee=_0x4db1e6['locale'];_0x4db1e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12938e=>{const _0x44b5fb=_0x69cee['t'];if('formatInline'!=_0x12938e['type'])return;const {data:_0x271c46}=_0x12938e;if(null!=_0x271c46){if('fontSize'==_0x271c46['commandName']){const _0x312925=_0x271c46['commandParams'][0x0]['value'];if(_0x312925){const _0x1d9c3e=_0x44b5fb(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4c1e63=>_0x4c1e63['model']==_0x312925)['title'])['toLowerCase']();return{'type':'format','content':getTranslation$1(_0x69cee,'*Set\x20font\x20size:*\x20%0',_0x1d9c3e)};}return{'type':'format','content':getTranslation$1(_0x69cee,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x271c46['commandName']){const _0x46a8b6=_0x271c46['commandParams'][0x0]['value'];return _0x46a8b6?{'type':'format','content':getTranslation$1(_0x69cee,'*Set\x20font\x20family:*\x20%0',_0x46a8b6)}:{'type':'format','content':getTranslation$1(_0x69cee,'*Reset\x20font\x20family*')};}if('fontColor'==_0x271c46['commandName']){const _0x411db4=_0x271c46['commandParams'][0x0]['value'];if(_0x411db4){const _0x2fd0ad=normalizeColorOptions(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2eceb3=>_0x2eceb3['model']==_0x411db4);let _0x2f4521=_0x411db4,_0x36ed18='';return _0x2fd0ad&&(_0x2f4521=_0x2fd0ad['label'],_0x36ed18=_0x44b5fb(_0x2f4521)['toLowerCase']()),{'type':'format','content':getTranslation$1(_0x69cee,'*Set\x20font\x20color:*\x20%0',_0x36ed18)['trim'](),'color':{'value':_0x411db4,'title':_0x36ed18||_0x2f4521}};}return{'type':'format','content':getTranslation$1(_0x69cee,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x271c46['commandName']){const _0x4cdcfd=_0x271c46['commandParams'][0x0]['value'];if(_0x4cdcfd){const _0x1f485a=normalizeColorOptions(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x288bf0=>_0x288bf0['model']==_0x4cdcfd);let _0x3f2e5f=_0x4cdcfd,_0x5f1273='';return _0x1f485a&&(_0x3f2e5f=_0x1f485a['label'],_0x5f1273=_0x44b5fb(_0x3f2e5f)['toLowerCase']()),{'type':'format','content':getTranslation$1(_0x69cee,'*Set\x20font\x20background\x20color:*\x20%0',_0x5f1273)['trim'](),'color':{'value':_0x4cdcfd,'title':_0x5f1273||_0x3f2e5f}};}return{'type':'format','content':getTranslation$1(_0x69cee,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends Plugin{['afterInit'](){const {plugins:_0x2a9c86}=this['editor'];_0x2a9c86['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2a9c86['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x8e1807,plugins:_0x101b5d,commands:_0x19561d}=this['editor'],_0x33ad5a=_0x101b5d['get']('TrackChangesEditing');_0x19561d['get']('footnotesStyle')&&_0x33ad5a['enableDefaultAttributesIntegration']('footnotesStyle'),_0x19561d['get']('footnotesStart')&&_0x33ad5a['enableDefaultAttributesIntegration']('footnotesStart'),_0x33ad5a['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',getTranslation$1(_0x8e1807,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x33ad5a['descriptionFactory']['registerAttributeLabel']('footnotesListStart',getTranslation$1(_0x8e1807,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2cb97c=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x1548c3,commands:_0x5daa1b}=this['editor'];_0x5daa1b['get']('insertFootnote')&&_0x2cb97c['enableCommand']('insertFootnote'),_0x2cb97c['descriptionFactory']['registerElementLabel']('footnoteRef',_0x59b0dc=>getTranslation$1(_0x1548c3,'ELEMENT_FOOTNOTE_REF',_0x59b0dc)),_0x2cb97c['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x189087=>getTranslation$1(_0x1548c3,'ELEMENT_FOOTNOTE_DEFINITION',_0x189087)),_0x2cb97c['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3e9fc6=>getTranslation$1(_0x1548c3,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3e9fc6));}}class TrackChangesFormatPainter extends Plugin{['afterInit'](){const _0x385d4d=this['editor'],_0x483f5c=_0x385d4d['plugins']['get']('TrackChangesEditing'),_0xc4d308=_0x385d4d['commands']['get']('copyFormat'),_0x19415b=_0x385d4d['commands']['get']('pasteFormat');_0xc4d308&&_0x19415b&&(_0x483f5c['enableDefaultAttributesIntegration']('pasteFormat'),_0x483f5c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4d44dd=this['editor'],_0x4db61f=_0x4d44dd['locale'];_0x4d44dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x919a3b=>{if('formatBlock'!=_0x919a3b['type']&&'formatInline'!=_0x919a3b['type'])return;const {data:_0x3686b7}=_0x919a3b;if(_0x3686b7&&'pasteFormat'===_0x3686b7['commandName']){const _0x2a0413=[],_0x297a4b=_0x3686b7['commandParams'][0x0];for(const [_0x3b7344,_0x2acd6c]of Object['entries'](_0x297a4b))_0x2a0413['push'](translateFormatting(_0x4d44dd,_0x3b7344,_0x2acd6c));return _0x2a0413['length']?{'type':'format','content':getTranslation$1(_0x4db61f,'*Set\x20format\x20to:*\x20%0',_0x2a0413['join'](',\x20'))}:{'type':'format','content':getTranslation$1(_0x4db61f,'*Remove\x20all\x20formatting*')};}});}}function translateFormatting(_0x11b29c,_0x123bc7,_0x4cfedd){const _0x5e39cb=_0x11b29c['locale']['t'],_0x166e52=_0x123bc7['split'](/(?=[A-Z])/)['join']('\x20'),_0x21a1c5=_0x5e39cb(_0x166e52['charAt'](0x0)['toUpperCase']()+_0x166e52['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4cfedd)return _0x21a1c5;if('fontColor'===_0x123bc7||'fontBackgroundColor'===_0x123bc7){const _0x1cef3e=normalizeColorOptions(_0x11b29c['config']['get']('fontColor.colors'))['find'](_0x3c74fc=>_0x3c74fc['model']==_0x4cfedd);return _0x21a1c5+'\x20('+(_0x1cef3e?_0x5e39cb(_0x1cef3e['label'])['toLowerCase']():_0x4cfedd)+')';}if('fontSize'===_0x123bc7&&isNaN(parseFloat(_0x4cfedd))){const _0xd9e06b=_0x11b29c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x11b29c['config']['get']('fontSize.options'))['find'](_0x4b1928=>_0x4b1928['model']==_0x4cfedd);return _0x21a1c5+'\x20('+(_0xd9e06b?_0x5e39cb(_0xd9e06b['title'])['toLowerCase']():_0x4cfedd)+')';}return _0x21a1c5+'\x20('+_0x4cfedd+')';}class TrackChangesHeading extends Plugin{['_headingOptions'];['afterInit'](){const _0x114496=this['editor'];if(!_0x114496['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x114496['config']['get']('heading.options');const _0x1672d6=_0x114496['locale'],_0x363aeb=_0x114496['plugins']['get']('TrackChangesEditing');_0x363aeb['enableDefaultAttributesIntegration']('heading');for(const _0x2a0265 of this['_headingOptions'])'paragraph'!=_0x2a0265['model']&&_0x363aeb['descriptionFactory']['registerElementLabel'](_0x2a0265['model'],_0x1be467=>{const _0x3ae5aa=this['_getHeadingLevel'](_0x2a0265['model']);return null!==_0x3ae5aa?_0x2c6d05(_0x1be467,_0x3ae5aa):_0xe95cf7(_0x1be467,_0x2a0265['title']);});function _0x2c6d05(_0x47d2b7,_0x125201){return getTranslation$1(_0x1672d6,'ELEMENT_HEADING',[_0x47d2b7,_0x125201]);}function _0xe95cf7(_0x40705d,_0x56a840){return getTranslation$1(_0x1672d6,'ELEMENT_HEADING_CUSTOM',[_0x40705d,_0x56a840]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x524edb=this['editor'],_0x332651=_0x524edb['locale'];function _0x2cc3a8(_0x2da9b3,_0x80514a){return getTranslation$1(_0x332651,'ELEMENT_HEADING_CUSTOM',[_0x2da9b3,_0x80514a]);}_0x524edb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b91fe=>{if('formatBlock'!=_0x4b91fe['type'])return;const {data:_0x496d15}=_0x4b91fe;if(_0x496d15&&'heading'==_0x496d15['commandName']){const _0x207b14=_0x496d15['commandParams'][0x0]['value'],_0x2df7bb=this['_getHeadingLevel'](_0x207b14);if(null!==_0x2df7bb)return{'type':'format','content':getTranslation$1(_0x332651,'*Change\x20to:*\x20%0',(_0x307856=0x1,_0x149fc4=_0x2df7bb,getTranslation$1(_0x332651,'ELEMENT_HEADING',[_0x307856,_0x149fc4])))};const _0x3c8978=this['_headingOptions']['find'](_0x1972e5=>_0x1972e5['model']===_0x207b14)['title'];return{'type':'format','content':getTranslation$1(_0x332651,'*Change\x20to:*\x20%0',_0x2cc3a8(0x1,_0x3c8978))};}var _0x307856,_0x149fc4;});}['_getHeadingLevel'](_0x482b69){const _0x19512c=_0x482b69['match'](/^heading(\d+)/);if(_0x19512c)return _0x19512c[0x1];const _0x10714d=this['_headingOptions']?.['find'](_0x5507f3=>_0x5507f3['model']==_0x482b69);if(_0x10714d&&_0x10714d['view']){const _0x555dc3=_0x10714d['view'],_0x359fa9=(_0x555dc3['name']??_0x555dc3)['match'](/^h(\d+)/);if(_0x359fa9)return _0x359fa9[0x1];}return null;}}class TrackChangesHighlight extends Plugin{['afterInit'](){const _0x4f884d=this['editor'];if(!_0x4f884d['plugins']['has']('HighlightEditing'))return;const _0x3d91be=_0x4f884d['plugins']['get']('TrackChangesEditing'),_0x35dfd3=_0x4f884d['locale'];_0x3d91be['enableDefaultAttributesIntegration']('highlight'),_0x3d91be['descriptionFactory']['registerAttributeLabel']('highlight',getTranslation$1(_0x35dfd3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f85ef=this['editor'],_0x22ebf6=_0x3f85ef['locale'];_0x3f85ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20f206=>{if('formatInline'!=_0x20f206['type'])return;const {data:_0x14993c}=_0x20f206;if(_0x14993c&&'highlight'==_0x14993c['commandName']){const _0xafe349=_0x22ebf6['t'],_0xfb40b1=_0x14993c['commandParams'][0x0]['value'];if(_0xfb40b1){const _0x5936f4=_0x3f85ef['config']['get']('highlight.options')['find'](_0x37e459=>_0x37e459['model']==_0xfb40b1),_0x92d3d6=_0xafe349(_0x5936f4['title'])['toLowerCase']();return{'type':'format','content':getTranslation$1(_0x22ebf6,'*Set\x20highlight:*\x20%0',_0x92d3d6),'color':{'value':_0x5936f4['color'],'title':_0x5936f4['title']}};}return{'type':'format','content':getTranslation$1(_0x22ebf6,'*Remove\x20highlight*',getTranslation$1(_0x22ebf6,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends Plugin{['afterInit'](){const _0x1433d6=this['editor'];if(!_0x1433d6['plugins']['has']('HorizontalLineEditing'))return;_0x1433d6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xdd5308=_0x1433d6['plugins']['get']('TrackChangesEditing'),_0x2fe156=_0x1433d6['locale'];_0xdd5308['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3aff9d=>getTranslation$1(_0x2fe156,'ELEMENT_HORIZONTAL_LINE',_0x3aff9d));}}class TrackChangesHtmlEmbed extends Plugin{['afterInit'](){const _0x2d0f60=this['editor'];if(!_0x2d0f60['plugins']['has']('HtmlEmbed'))return;const _0xfc8fb1=_0x2d0f60['plugins']['get']('TrackChangesEditing'),_0xc6d67=_0x2d0f60['locale'];_0xfc8fb1['descriptionFactory']['registerElementLabel']('rawHtml',_0x261630=>getTranslation$1(_0xc6d67,'ELEMENT_HTML_EMBED',_0x261630)),_0xfc8fb1['enableDefaultAttributesIntegration']('htmlEmbed'),_0xfc8fb1['descriptionFactory']['registerDescriptionCallback'](_0x528cbc=>{if('attribute'!=_0x528cbc['type'])return;const {data:_0xc04748}=_0x528cbc;if(_0xc04748&&'value'==_0xc04748['key']&&_0x528cbc['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x20ae39=getTranslation$1(_0xc6d67,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$1(_0xc6d67,'*Change\x20%0\x20content*',_0x20ae39)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15da0f=this['editor'],_0x3e8e44=_0x15da0f['locale'];_0x15da0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b5090=>{if('formatBlock'!=_0x5b5090['type'])return;const {data:_0x3f8898}=_0x5b5090;if(_0x3f8898&&'htmlEmbed'==_0x3f8898['commandName']){const _0x586b2e=getTranslation$1(_0x3e8e44,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$1(_0x3e8e44,'*Change\x20%0\x20content*',_0x586b2e)};}});}}class TrackChangesImage extends Plugin{['afterInit'](){const _0x577bbc=this['editor'];if(!_0x577bbc['plugins']['has']('ImageEditing'))return;const _0x2a4bcf=_0x577bbc['plugins']['get']('TrackChangesEditing'),_0x41f8a1=_0x577bbc['plugins']['get']('ImageUtils'),_0x325ce0=_0x577bbc['locale'];_0x2a4bcf['enableCommand']('insertImage'),_0x2a4bcf['descriptionFactory']['registerElementLabel']('imageBlock',_0x4cd298=>getTranslation$1(_0x325ce0,'ELEMENT_IMAGE',_0x4cd298)),_0x2a4bcf['descriptionFactory']['registerElementLabel']('imageInline',_0x34b56f=>getTranslation$1(_0x325ce0,'ELEMENT_INLINE_IMAGE',_0x34b56f)),_0x2a4bcf['descriptionFactory']['registerElementLabel']('caption',()=>getTranslation$1(_0x325ce0,'ELEMENT_CAPTION')),_0x577bbc['plugins']['has']('ImageUploadEditing')&&_0x2a4bcf['enableCommand']('uploadImage'),_0x577bbc['plugins']['has']('ImageBlockEditing')&&_0x577bbc['plugins']['has']('ImageInlineEditing')&&(_0x2a4bcf['enableCommand']('imageTypeInline',(_0x11259a,_0x25967c)=>{const _0x3a38f8=_0x41f8a1['getClosestSelectedImageElement'](_0x577bbc['model']['document']['selection']);_0x577bbc['model']['change'](()=>{_0x2a4bcf['markBlockFormat'](_0x3a38f8,{'commandName':'imageTypeInline','commandParams':[_0x25967c]},[],'convertBlockImageToInline');});}),_0x2a4bcf['enableCommand']('imageTypeBlock',(_0x7edbfd,_0x3debdf)=>{_0x577bbc['model']['change'](_0x170b48=>{let _0x3c3698=_0x41f8a1['getClosestSelectedImageElement'](_0x577bbc['model']['document']['selection']),_0x524de5=_0x170b48['createRangeOn'](_0x3c3698);const _0x1dca1d=ModelLivePosition['fromPosition'](_0x524de5['start'],'toPrevious'),_0xa92c5e=ModelLivePosition['fromPosition'](_0x524de5['end'],'toNext');_0x2a4bcf['forceDefaultExecution'](()=>_0x7edbfd(_0x3debdf)),_0x3c3698=_0x41f8a1['getClosestSelectedImageElement'](_0x577bbc['model']['document']['selection']),_0x524de5=_0x170b48['createRangeOn'](_0x3c3698);const _0x328ab0=_0x170b48['createRange'](_0x1dca1d,_0xa92c5e);_0x1dca1d['detach'](),_0xa92c5e['detach'](),_0x2a4bcf['markBlockFormat'](_0x3c3698,{'commandName':'imageTypeInline','commandParams':[_0x3debdf]},[],'convertInlineImageToBlock'),_0x328ab0['start']['isBefore'](_0x524de5['start'])&&_0x2a4bcf['markInsertion'](_0x170b48['createRange'](_0x328ab0['start'],_0x524de5['start']),'convertInlineImageToBlock'),_0x524de5['end']['isBefore'](_0x328ab0['end'])&&_0x2a4bcf['markInsertion'](_0x170b48['createRange'](_0x524de5['end'],_0x328ab0['end']),'convertInlineImageToBlock');});}),_0x2a4bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2a4bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2a4bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2a4bcf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2a4bcf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2a4bcf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2d2a90])=>{const _0x260a51=_0x2a4bcf['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3d99e1=_0x2d2a90['start'],_0x8bb516=_0x2d2a90['end'];const _0x556d78=_0x577bbc['model']['schema']['getNearestSelectionRange'](_0x3d99e1,'backward'),_0x4e4f2c=_0x577bbc['model']['schema']['getNearestSelectionRange'](_0x8bb516,'forward');_0x556d78['isCollapsed']&&(_0x3d99e1=_0x556d78['start']),_0x4e4f2c['isCollapsed']&&(_0x8bb516=_0x4e4f2c['end']),_0x260a51([_0x577bbc['model']['createRange'](_0x3d99e1,_0x8bb516)]);}),_0x2a4bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x576883),_0x2a4bcf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x576883)),_0x577bbc['plugins']['has']('ImageCaptionEditing')&&(_0x2a4bcf['enableCommand']('toggleImageCaption',(_0x56761e,_0xc40ab4)=>{const _0x1ff932=_0x577bbc['plugins']['get']('ImageCaptionUtils');let _0x523bbb=_0x41f8a1['getClosestSelectedImageElement'](_0x577bbc['model']['document']['selection']),_0x5efe4a=_0x1ff932['getCaptionFromImageModelElement'](_0x523bbb);_0x577bbc['model']['change'](()=>{if(_0x5efe4a)return void _0x2a4bcf['markDeletion'](_0x577bbc['model']['createRangeOn'](_0x5efe4a));const _0x147628=_0x41f8a1['isBlockImage'](_0x523bbb);_0x56761e(_0xc40ab4),_0x523bbb=_0x41f8a1['getClosestSelectedImageElement'](_0x577bbc['model']['document']['selection']),_0x5efe4a=_0x1ff932['getCaptionFromImageModelElement'](_0x523bbb),_0x2a4bcf['markInsertion'](_0x577bbc['model']['createRangeOn'](_0x5efe4a),_0x147628?null:'imageCaption');});}),_0x2a4bcf['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x576883));const _0x1ee061=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x362833(_0x48479a,_0x4364c9){const _0x4ae82e=_0x1ee061['findIndex'](({type:_0x1a734b,subType:_0x4c4b04})=>_0x48479a['type']==_0x1a734b&&_0x48479a['subType']==_0x4c4b04),_0x5d8241=_0x1ee061['findIndex'](({type:_0x5ecec3,subType:_0x2f58de})=>_0x4364c9['type']==_0x5ecec3&&_0x4364c9['subType']==_0x2f58de);if(_0x4ae82e<0x0||_0x5d8241<0x0)return!0x1;const _0x380570=_0x48479a['getFirstRange'](),_0x1d2b7b=_0x4364c9['getFirstRange']();if((0x0==_0x4ae82e||0x1==_0x4ae82e)&&0x2==_0x5d8241&&_0x380570['isIntersecting'](_0x1d2b7b))return!0x0;if(0x2==_0x4ae82e&&0x3==_0x5d8241){const _0xb6039a=_0x2a4bcf['_findSuggestions'](_0x380570,'insertion')['filter'](({suggestion:_0x1d7196,meta:_0x827c33})=>_0x827c33['isOwn']&&'convertInlineImageToBlock'==_0x1d7196['subType']);if(_0xb6039a['length']>0x1&&_0x1d2b7b['end']['isEqual'](_0x380570['start']))return!0x0;if(0x1==_0xb6039a['length']&&(_0x380570['start']['isEqual'](_0x1d2b7b['end'])||_0x380570['end']['isEqual'](_0x1d2b7b['start'])))return!0x0;}if(0x3==_0x4ae82e&&0x3==_0x5d8241&&_0x380570['start']['isBefore'](_0x1d2b7b['start'])){const _0x36ee2c=_0x380570['end']['nodeAfter'],_0x54dbd9=_0x1d2b7b['start']['nodeBefore'];return _0x41f8a1['isBlockImage'](_0x36ee2c)&&_0x36ee2c===_0x54dbd9;}return!0x1;}function _0x576883(_0x10f343,_0x882158){return _0x362833(_0x10f343,_0x882158)?[_0x10f343,_0x882158]:_0x362833(_0x882158,_0x10f343)?[_0x882158,_0x10f343]:null;}_0x577bbc['plugins']['has']('ImageResize')&&(_0x2a4bcf['enableDefaultAttributesIntegration']('resizeImage'),_0x2a4bcf['descriptionFactory']['registerAttributeLabel']('resizedWidth',getTranslation$1(_0x325ce0,'FORMAT_IMAGE_SIZE'))),_0x577bbc['plugins']['has']('ImageTextAlternativeEditing')&&_0x2a4bcf['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x577bbc['plugins']['has']('PictureEditing')&&_0x2a4bcf['descriptionFactory']['registerDescriptionCallback'](_0x2b7515=>{if('attribute'!=_0x2b7515['type'])return;const {data:_0x6b21a5}=_0x2b7515;return _0x6b21a5&&'sources'==_0x6b21a5['key']?{'type':'format','content':''}:void 0x0;}),_0x577bbc['plugins']['has']('ImageSizeAttributes')&&_0x2a4bcf['descriptionFactory']['registerDescriptionCallback'](_0x100f95=>{if('attribute'!=_0x100f95['type'])return;const {data:_0x46a32d}=_0x100f95;return!_0x46a32d||'width'!=_0x46a32d['key']&&'height'!=_0x46a32d['key']?void 0x0:{'type':'format','content':''};}),_0x2a4bcf['descriptionFactory']['registerDescriptionCallback'](_0xa68bcb=>{if(!!_0x1ee061['find'](({type:_0x5195d8,subType:_0xfca8b6})=>_0xa68bcb['type']==_0x5195d8&&_0xa68bcb['subType']==_0xfca8b6))return _0xa68bcb['previous']?{}:void 0x0;}),_0x2a4bcf['descriptionFactory']['registerDescriptionCallback'](_0x24f5dd=>{if('insertion'==_0x24f5dd['type']||'deletion'==_0x24f5dd['type']){const _0x7d4d72=_0x24f5dd['getContainedElement']();if(_0x7d4d72&&_0x7d4d72['is']('element','caption'))return{'type':'insertion'==_0x24f5dd['type']?'addObject':'removeObject','element':_0x7d4d72,'quantity':0x1};}}),_0x2a4bcf['descriptionFactory']['registerDescriptionCallback'](_0x17b952=>'formatBlock'==_0x17b952['type']&&'convertInlineImageToBlock'==_0x17b952['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x17b952['type']&&'convertBlockImageToInline'==_0x17b952['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2a4bcf['descriptionFactory']['registerDescriptionCallback'](_0x54c9da=>{if('attribute'!=_0x54c9da['type'])return;const {data:_0x42b80f}=_0x54c9da;if(!_0x42b80f||'alt'!=_0x42b80f['key'])return;const _0x19a315=_0x42b80f['newValue'];return _0x19a315?{'type':'format','content':getTranslation$1(_0x325ce0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x19a315+'\x22')}:{'type':'format','content':getTranslation$1(_0x325ce0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1141b0=this['editor'],_0x37c659=_0x1141b0['locale'];_0x1141b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x168b1a=>{if('formatBlock'!=_0x168b1a['type']&&'formatInline'!=_0x168b1a['type'])return;const {data:_0x5083af}=_0x168b1a;if(_0x5083af){if('imageTextAlternative'==_0x5083af['commandName']){const _0x588967=_0x5083af['commandParams'][0x0]['newValue'];return _0x588967?{'type':'format','content':getTranslation$1(_0x37c659,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x588967+'\x22')}:{'type':'format','content':getTranslation$1(_0x37c659,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5083af['commandName']){const _0x36cd98=_0x5083af['commandParams'][0x0]['width'];return _0x36cd98?{'type':'format','content':getTranslation$1(_0x37c659,'*Set\x20image\x20width:*\x20%0',_0x36cd98)}:{'type':'format','content':getTranslation$1(_0x37c659,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x333fbd=this['editor']['locale'],_0x6a4930=this['editor']['plugins']['get']('TrackChangesEditing');_0x6a4930['enableDefaultAttributesIntegration']('replaceImageSource'),_0x6a4930['descriptionFactory']['registerDescriptionCallback'](_0x5647ec=>{if('attribute'!=_0x5647ec['type'])return;const {data:_0x3b7575}=_0x5647ec;return _0x3b7575&&'src'==_0x3b7575['key']?_0x3b7575['newValue']&&_0x3b7575['oldValue']?{'type':'format','content':getTranslation$1(_0x333fbd,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1e612c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e612c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1e612c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1e612c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1e612c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ab6c7=this['editor'],_0x5be42b=_0x1ab6c7['locale'];_0x1ab6c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5eb05b=>{if('formatBlock'!=_0x5eb05b['type']&&'formatInline'!=_0x5eb05b['type'])return;const {data:_0x53e86b}=_0x5eb05b;if(!_0x53e86b||'replaceImageSource'!=_0x53e86b['commandName'])return;return{'type':'format','content':getTranslation$1(_0x5be42b,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends Plugin{['afterInit'](){const _0x59561b=this['editor'];if(!_0x59561b['plugins']['has']('ImageStyleEditing'))return;const _0x5af652=_0x59561b['plugins']['get']('TrackChangesEditing'),_0x53feef=_0x59561b['plugins']['get']('ImageUtils'),_0x5e9c73={};_0x5af652['enableCommand']('imageStyle',(_0x3a653a,_0x23bcdc)=>{const _0x5bb792=_0x59561b['plugins']['get']('Users')['me'],_0x162d66=_0x59561b['commands']['get']('imageStyle');let _0x1f49ea=_0x53feef['getClosestSelectedImageElement'](_0x59561b['model']['document']['selection']),_0x26552a=_0x59561b['model']['createRangeOn'](_0x1f49ea),_0x4c7e0c=_0x162d66['value'];if(_0x4c7e0c==_0x23bcdc['value'])return;const _0x519868={'commandName':'imageStyle','commandParams':[_0x23bcdc],'formatGroupId':uid()};_0x59561b['model']['change'](()=>{if(_0x5af652['getSuggestions']()['filter'](_0x5f220e=>_0x5f220e['isInContent']&&_0x5bb792==_0x5f220e['author']&&('formatBlock'==_0x5f220e['type']||'formatInline'==_0x5f220e['type'])&&('imageStylePreApply'==_0x5f220e['subType']||'imageStylePostApply'==_0x5f220e['subType'])&&_0x5f220e['getFirstRange']()['isEqual'](_0x26552a))['forEach'](_0x16e760=>_0x5af652['discardSuggestion'](_0x16e760['head'])),_0x1f49ea=_0x53feef['getClosestSelectedImageElement'](_0x59561b['model']['document']['selection']),_0x26552a=_0x59561b['model']['createRangeOn'](_0x1f49ea),_0x162d66['refresh'](),_0x59561b['commands']['get']('imageTypeInline')['refresh'](),_0x59561b['commands']['get']('imageTypeBlock')['refresh'](),_0x4c7e0c=_0x162d66['value'],_0x4c7e0c!=_0x23bcdc['value'])return _0x53feef['isInlineImage'](_0x1f49ea)&&_0x162d66['shouldConvertImageType'](_0x23bcdc['value'],_0x1f49ea)?(_0x3a653a({..._0x23bcdc,'setImageSizes':!0x1}),_0x1f49ea=_0x53feef['getClosestSelectedImageElement'](_0x59561b['model']['document']['selection']),void _0x5af652['markBlockFormat'](_0x1f49ea,{..._0x519868,'commandReversedParams':[{'value':_0x4c7e0c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x53feef['isBlockImage'](_0x1f49ea)?_0x5af652['markBlockFormat'](_0x1f49ea,_0x519868,[],'imageStylePostApply'):_0x5af652['markInlineFormat'](_0x26552a,_0x519868,'imageStylePostApply'));});});for(const _0x141eb7 of _0x59561b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5e9c73[_0x141eb7['name']]=_0x141eb7['title']['toLowerCase']();_0x5af652['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5af652['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5af652['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5af652['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4ae7d6])=>{_0x53feef['setImageNaturalSizeAttributes'](_0x4ae7d6['getContainedElement']());}),_0x5af652['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x32af27,_0x2efd42)=>{_0x5af652['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x32af27,{'commandName':_0x2efd42['commandName'],'commandParams':_0x2efd42['commandReversedParams']});}),_0x5af652['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x279422,_0x223de1){if(_0xe1742(_0x279422,_0x223de1))return[_0x279422,_0x223de1];if(_0xe1742(_0x223de1,_0x279422))return[_0x223de1,_0x279422];return null;});const _0x3e2d87=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xe1742(_0x16eb06,_0x34f609){const _0x3b0b8e=_0x3e2d87['findIndex'](({type:_0x57bcdf,subType:_0x16517c})=>_0x16eb06['type']==_0x57bcdf&&_0x16eb06['subType']==_0x16517c),_0x21f7da=_0x3e2d87['findIndex'](({type:_0x572e9d,subType:_0x4ca5bf})=>_0x34f609['type']==_0x572e9d&&_0x34f609['subType']==_0x4ca5bf);if(_0x3b0b8e<0x0||_0x21f7da<0x0)return!0x1;const _0x3cb36f=_0x16eb06['getFirstRange'](),_0x44b43c=_0x34f609['getFirstRange']();if((0x0==_0x3b0b8e||0x1==_0x3b0b8e)&&0x2==_0x21f7da&&_0x3cb36f['isIntersecting'](_0x44b43c))return!0x0;if(0x2==_0x3b0b8e&&0x3==_0x21f7da){const _0x1989d8=_0x5af652['_findSuggestions'](_0x3cb36f,'insertion')['filter'](({suggestion:_0x4755af,meta:_0x1523e7})=>_0x1523e7['isOwn']&&'convertInlineImageToBlock'==_0x4755af['subType']);if(_0x1989d8['length']>0x1&&_0x44b43c['end']['isEqual'](_0x3cb36f['start']))return!0x0;if(0x1==_0x1989d8['length']&&(_0x3cb36f['start']['isEqual'](_0x44b43c['end'])||_0x3cb36f['end']['isEqual'](_0x44b43c['start'])))return!0x0;}if(0x3==_0x3b0b8e&&0x3==_0x21f7da&&_0x3cb36f['start']['isBefore'](_0x44b43c['start'])){const _0x26f74d=_0x3cb36f['end']['nodeAfter'],_0x38d7ff=_0x44b43c['start']['nodeBefore'];return _0x53feef['isBlockImage'](_0x26f74d)&&_0x26f74d===_0x38d7ff;}return!0x1;}_0x59561b['model']['document']['registerPostFixer'](()=>{let _0x1d3bc9=!0x1;const _0x11a5a8=Array['from'](_0x59561b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21cd84,data:_0x58e050}of _0x11a5a8){const {group:_0x551a16,type:_0x455311,subType:_0x3846b2,id:_0x57e6cc}=_0x5af652['_splitMarkerName'](_0x21cd84);if('suggestion'==_0x551a16&&_0x5af652['hasSuggestion'](_0x57e6cc)){if('formatBlock'==_0x455311&&('imageStylePreApply'==_0x3846b2||'imageStylePostApply'==_0x3846b2)){const _0x1cea88=_0x5af652['getSuggestion'](_0x57e6cc);if(_0x58e050['newRange']){const _0x56bb62=_0x1cea88['getFirstRange']()['getContainedElement']();if(_0x53feef['isBlockImage'](_0x56bb62))continue;_0x5af652['discardSuggestion'](_0x1cea88),_0x1d3bc9=!0x0;}}if('insertion'==_0x455311&&'imageCaption'==_0x3846b2&&!_0x58e050['newRange']){const _0x34e058=_0x5af652['getSuggestion'](_0x57e6cc);_0x34e058['next']&&_0x34e058['next']['isInContent']&&(_0x5af652['discardSuggestion'](_0x34e058['next']),_0x1d3bc9=!0x0);}}}return _0x1d3bc9;}),this['_registerLegacyDescription'](_0x5e9c73);}['_registerLegacyDescription'](_0x1998e7){const _0x44b6e7=this['editor'],_0x39a9b2=_0x44b6e7['locale'];_0x44b6e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51f448=>{if('formatBlock'!=_0x51f448['type']&&'formatInline'!=_0x51f448['type'])return;const {data:_0x6d90a2}=_0x51f448;if(!_0x6d90a2||'imageStyle'!=_0x6d90a2['commandName'])return;const _0x89ed3=_0x6d90a2['commandParams'][0x0]['value'];return _0x48ade0('side'===_0x89ed3?getTranslation$1(_0x39a9b2,'FORMAT_SIDE_IMAGE'):_0x1998e7[_0x89ed3]||_0x89ed3);function _0x48ade0(_0x2cc7cc){return{'type':'format','content':getTranslation$1(_0x39a9b2,'*Format:*\x20%0',_0x2cc7cc)};}});}}class TrackChangesImportWord extends Plugin{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4e8337){super(_0x4e8337),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2aec6a=this['editor'],_0x173114=_0x2aec6a['commands']['get']('importWord'),_0x42a458=_0x2aec6a['commands']['get']('trackChanges');_0x173114&&(_0x173114['on']('execute',(_0x187f41,[,_0x5f1fb3])=>{this['_trackChangesValueDuringImport']=_0x42a458['value'],_0x5f1fb3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x173114,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x173114,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x42a458['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2aec6a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x394380,_0x2d25f5){const {suggestions:_0xb302bf}=_0x2d25f5,_0x3a45c1=this['editor']['commands']['get']('trackChanges'),_0x153054=_0x3a45c1['value'];this['_trackChangesValueDuringImport']!==_0x153054&&(_0x3a45c1['execute'](),this['_trackChangesExecuted']=!0x0),_0xb302bf&&_0xb302bf['forEach'](({id:_0x3c57e1,type:_0xcb2cf3,author:_0x4d7037,created_at:_0x1cba59})=>{const _0x578af3={'id':_0x3c57e1,'type':_0xcb2cf3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4d7037,'createdAt':_0x1cba59?new Date(_0x1cba59):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x578af3);});}}class TrackChangesIndent extends Plugin{['afterInit'](){const _0x4a45f0=this['editor'],_0x36a499=_0x4a45f0['plugins']['get']('TrackChangesEditing');if(_0x4a45f0['plugins']['has']('IndentEditing')&&(_0x36a499['enableCommand']('indent'),_0x36a499['enableCommand']('outdent')),_0x4a45f0['plugins']['has']('IndentBlock')){for(const _0x4b32d3 of['indentBlock','outdentBlock'])_0x36a499['enableDefaultAttributesIntegration'](_0x4b32d3);if(_0x4a45f0['plugins']['has']('ListEditing')){for(const _0x2ed728 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x36a499['enableDefaultAttributesIntegration'](_0x2ed728);}}const _0x52f175=_0x4a45f0['locale'];_0x36a499['descriptionFactory']['registerAttributeLabel']('blockIndent',getTranslation$1(_0x52f175,'FORMAT_INDENT')),_0x36a499['descriptionFactory']['registerAttributeLabel']('blockIndentList',getTranslation$1(_0x52f175,'FORMAT_INDENT')),_0x36a499['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',getTranslation$1(_0x52f175,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x588b8c=this['editor'],_0x3185f8=_0x588b8c['locale'],_0x58a591=_0x588b8c['plugins']['get']('TrackChangesEditing');_0x58a591['descriptionFactory']['registerDescriptionCallback'](_0x33f0a7=>{if('formatBlock'!=_0x33f0a7['type'])return;const {data:_0x198894}=_0x33f0a7;if(!_0x198894)return;if('indentBlock'!=_0x198894['commandName']&&'outdentBlock'!=_0x198894['commandName'])return;const _0x5e87e8=_0x33f0a7['getItems']()[0x0],_0x5220ce=_0x58a591['descriptionFactory']['getItemLabel'](_0x5e87e8);return'indentBlock'==_0x198894['commandName']?{'type':'format','content':getTranslation$1(_0x3185f8,'*Indent:*\x20%0',_0x5220ce)}:'outdentBlock'==_0x198894['commandName']?{'type':'format','content':getTranslation$1(_0x3185f8,'*Outdent:*\x20%0',_0x5220ce)}: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 _0x3abd41=this['editor'];if(!_0x3abd41['plugins']['has']('LinkEditing'))return;const _0x30b97e=_0x3abd41['plugins']['get']('TrackChangesEditing'),_0x2f7552=_0x3abd41['commands']['get']('link');_0x30b97e['enableDefaultAttributesIntegration']('link'),_0x30b97e['enableDefaultAttributesIntegration']('unlink');for(const _0x59a933 of _0x2f7552['manualDecorators'])_0x30b97e['descriptionFactory']['registerAttributeLabel'](_0x59a933['id'],'link\x20('+_0x59a933['label']['toLowerCase']()+')');_0x30b97e['descriptionFactory']['registerDescriptionCallback'](_0x5262f5=>{if('attribute'!=_0x5262f5['type'])return;const {data:_0x2f0a97}=_0x5262f5;if(!_0x2f0a97||'linkHref'!=_0x2f0a97['key'])return;const _0x193048=_0x2f0a97['newValue'],_0x11880d=_0x3abd41['locale'];return{'type':'format','content':null==_0x193048?getTranslation$1(_0x11880d,'*Remove\x20link*'):getTranslation$1(_0x11880d,'*Set\x20link:*\x20%0','\x22'+_0x193048+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f53d6=this['editor'],_0x51222e=_0x3f53d6['locale'];_0x3f53d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1569ab=>{if('formatInline'!=_0x1569ab['type'])return;const {data:_0xf80450}=_0x1569ab;if(_0xf80450){if('link'==_0xf80450['commandName']){const _0x161354=_0xf80450['commandParams'][0x0];return{'type':'format','content':getTranslation$1(_0x51222e,'*Set\x20link:*\x20%0','\x22'+_0x161354+'\x22')};}return'unlink'==_0xf80450['commandName']?{'type':'format','content':getTranslation$1(_0x51222e,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends Plugin{['afterInit'](){const _0x497e86=this['editor'],_0x14e73c=_0x497e86['locale'];if(!_0x497e86['plugins']['has']('LegacyListEditing'))return;const _0x139c24=_0x497e86['plugins']['get']('TrackChangesEditing'),_0x55713c=_0x497e86['plugins']['has']('LegacyTodoListEditing');function _0x5eb837(_0x501310){return()=>{const _0x3ff9f4=_0x497e86['model']['document']['selection'],_0x13cd75=_0x497e86['commands']['get'](_0x501310);if(_0x13cd75['value'])return void _0x497e86['execute']('paragraph',{});const _0x2b7c28=_0x501310['slice'](0x0,-0x4),_0x5dc7b6=getBlocksToMarkForListTypeChange(_0x3ff9f4['getSelectedBlocks'](),_0x2b7c28,_0x497e86['model']['schema']);_0x497e86['model']['change'](()=>{for(const _0x11ba99 of _0x5dc7b6)_0x139c24['markBlockFormat'](_0x11ba99,{'commandName':_0x501310,'commandParams':[{'forceValue':!_0x13cd75['value']}],'formatGroupId':'blockName'},getBlocksAffectedByListTypeChange(_0x11ba99));});};}function _0x16af38(_0x9d0e68){return()=>{const _0x6f58ae=getBlocksToMarkForIndentChange(_0x497e86['model']['document']['selection']['getSelectedBlocks']()),_0x38f395=_0x497e86['model']['createRange'](_0x497e86['model']['createPositionAt'](_0x6f58ae[0x0],'before'),_0x497e86['model']['createPositionAt'](_0x6f58ae[_0x6f58ae['length']-0x1],'end'));_0x497e86['model']['change'](()=>{_0x139c24['markBlockFormat'](_0x38f395,{'commandName':_0x9d0e68,'commandParams':[],'formatGroupId':'listIndent'},getBlocksAffectedByIndent(_0x6f58ae));});};}_0x139c24['enableCommand']('numberedList',_0x5eb837('numberedList')),_0x139c24['enableCommand']('bulletedList',_0x5eb837('bulletedList')),_0x55713c&&_0x139c24['enableCommand']('todoList',_0x5eb837('todoList')),_0x139c24['enableCommand']('indentList',_0x16af38('indentList')),_0x139c24['enableCommand']('outdentList',_0x16af38('outdentList')),_0x55713c&&_0x139c24['enableCommand']('checkTodoList',()=>{const _0x33d09f=_0x497e86['commands']['get']('checkTodoList'),_0x17661e=Array['from'](_0x33d09f['_selectedElements']);_0x17661e['filter'](_0x47fa49=>_0x47fa49['getAttribute']('todoListChecked')!=_0x33d09f['value']),_0x497e86['model']['change'](()=>{for(const _0x2d835a of _0x17661e)_0x139c24['markBlockFormat'](_0x2d835a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x33d09f['value']}]});});}),_0x139c24['descriptionFactory']['registerElementLabel']('listItem',_0x26f948=>getTranslation$1(_0x14e73c,'ELEMENT_LIST_ITEM',_0x26f948)),_0x139c24['descriptionFactory']['registerDescriptionCallback'](_0x1c7fb7=>{if('formatBlock'!=_0x1c7fb7['type']&&'formatInline'!=_0x1c7fb7['type'])return;const {data:_0x3e91a9}=_0x1c7fb7;if(_0x3e91a9){if('numberedList'==_0x3e91a9['commandName']||'bulletedList'==_0x3e91a9['commandName']||'todoList'==_0x3e91a9['commandName'])switch(_0x3e91a9['commandName']['replace']('List','')){case'bulleted':return _0xd1ddd4(getTranslation$1(_0x14e73c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd1ddd4(getTranslation$1(_0x14e73c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd1ddd4(getTranslation$1(_0x14e73c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3e91a9['commandName'])return{'type':'format','content':getTranslation$1(_0x14e73c,'*Indent:*\x20%0',getTranslation$1(_0x14e73c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3e91a9['commandName'])return{'type':'format','content':getTranslation$1(_0x14e73c,'*Outdent:*\x20%0',getTranslation$1(_0x14e73c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3e91a9['commandName'])return _0x3e91a9['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x14e73c,'*Check\x20item*')}:{'type':'format','content':getTranslation$1(_0x14e73c,'*Uncheck\x20item*')};}function _0xd1ddd4(_0x2f6769){return{'type':'format','content':getTranslation$1(_0x14e73c,'*Change\x20to:*\x20%0',_0x2f6769)};}});}}function getBlocksToMarkForListTypeChange(_0x29657a,_0x3578b3,_0x4601da){let _0x3ca4a4=Array['from'](_0x29657a)['filter'](_0x3753d1=>checkCanBecomeListItem(_0x3753d1,_0x4601da));_0x3ca4a4=_0x3ca4a4['filter'](_0x49361c=>!_0x49361c['is']('element','listItem')||_0x49361c['getAttribute']('listType')!=_0x3578b3);const _0xe3ae0d=new Set();for(const _0x4ba596 of _0x3ca4a4)_0x4ba596['is']('element','listItem')?_0xe3ae0d['add'](getListHead(_0x4ba596)):_0xe3ae0d['add'](_0x4ba596);return Array['from'](_0xe3ae0d);}function checkCanBecomeListItem(_0x2a8114,_0x373e82){return _0x373e82['checkChild'](_0x2a8114['parent'],'listItem')&&!_0x373e82['isObject'](_0x2a8114);}function getBlocksToMarkForIndentChange(_0x6ffdb8){let _0x2f41eb=Array['from'](_0x6ffdb8);const _0x478e0b=_0x2f41eb['findIndex'](_0x4fad53=>'listItem'!=_0x4fad53['name']);return _0x478e0b>-0x1&&(_0x2f41eb=_0x2f41eb['slice'](0x0,_0x478e0b)),_0x2f41eb;}function getListHead(_0x1d14e3){const _0x2e4a27=_0x1d14e3['getAttribute']('listIndent');if(0x0==_0x2e4a27)return _0x1d14e3;let _0x1d09a6=_0x1d14e3;for(;_0x1d14e3['previousSibling']&&_0x1d14e3['previousSibling']['is']('element','listItem');){const _0x3723d9=_0x1d14e3['previousSibling']['getAttribute']('listIndent');if(_0x3723d9==_0x2e4a27)_0x1d09a6=_0x1d14e3['previousSibling'];else{if(_0x3723d9<_0x2e4a27)break;}_0x1d14e3=_0x1d14e3['previousSibling'];}return _0x1d09a6;}function getBlocksAffectedByListTypeChange(_0xac0c39){const _0x327c8c=[];if(_0xac0c39['is']('element','listItem')&&_0xac0c39['getAttribute']('listIndent')>0x0){let _0x2b941a=_0xac0c39['nextSibling'];for(;_0x2b941a&&'listItem'==_0x2b941a['name']&&_0x2b941a['getAttribute']('listIndent')==_0xac0c39['getAttribute']('listIndent');)_0x327c8c['push'](_0x2b941a),_0x2b941a=_0x2b941a['nextSibling'];}return _0x327c8c;}function getBlocksAffectedByIndent(_0x390a3e){const _0x4adf07=new Set();for(const _0x402eff of _0x390a3e){let _0x416800=_0x402eff['nextSibling'];for(;_0x416800&&_0x416800['getAttribute']('listIndent')>_0x402eff['getAttribute']('listIndent');)_0x4adf07['add'](_0x416800),_0x416800=_0x416800['nextSibling'];}return Array['from'](_0x4adf07);}class TrackChangesLegacyListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xa1af83=this['editor']['config']['get']('list.properties'),_0x39c418=this['editor']['plugins']['get']('TrackChangesEditing');_0xa1af83['styles']&&_0x39c418['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xa1af83['reversed']&&_0x39c418['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xa1af83['startIndex']&&_0x39c418['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x39c418['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5134cf,_0x124bb7={}){const _0x1d9da9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25fcad=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1d9da9['markMultiRangeBlockFormat'](_0x25fcad,{'commandName':'listStyle','commandParams':[{'type':_0x124bb7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x301002,_0x55ba6a={}){const _0x1d8c23=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41710b=this['_getSuggestionBlocks'](_0x2a655f=>_0x2a655f['is']('element','listItem')&&'numbered'===_0x2a655f['getAttribute']('listType'));if(_0x41710b['length']<0x1)return;const _0x124d4f=_0x41710b['map'](_0x29dfa3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29dfa3,'before'),this['editor']['model']['createPositionAt'](_0x29dfa3,0x0)));this['editor']['model']['change'](()=>{_0x1d8c23['markMultiRangeBlockFormat'](_0x124d4f,{'commandName':'listReversed','commandParams':[{'reversed':_0x55ba6a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x170f7f,_0xdf5427={}){const _0x2a7e23=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa2aa9f=this['_getSuggestionBlocks'](_0x4fe725=>_0x4fe725['is']('element','listItem')&&'numbered'===_0x4fe725['getAttribute']('listType'));if(_0xa2aa9f['length']<0x1)return;const _0x2929ab=_0xa2aa9f['map'](_0x22a100=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22a100,'before'),this['editor']['model']['createPositionAt'](_0x22a100,0x0)));this['editor']['model']['change'](()=>{_0x2a7e23['markMultiRangeBlockFormat'](_0x2929ab,{'commandName':'listStart','commandParams':[{'startIndex':_0xdf5427['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x40f6eb){if('formatBlock'!=_0x40f6eb['type']&&'formatInline'!=_0x40f6eb['type'])return;const _0x124395=this['editor']['locale'],{data:_0x4f8143}=_0x40f6eb;if(!_0x4f8143)return;let _0x40eb98,_0x522a22;switch(_0x4f8143['commandName']){case'listStyle':_0x40eb98='*Change\x20to:*\x20%0',_0x522a22={'type':'format','content':getTranslation$1(_0x124395,_0x40eb98,getTranslation$1(_0x124395,this['_getTranslationKeyForListStyle'](_0x4f8143['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40eb98=_0x4f8143['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x522a22={'type':'format','content':getTranslation$1(_0x124395,_0x40eb98)};break;case'listStart':_0x40eb98='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x522a22={'type':'format','content':getTranslation$1(_0x124395,_0x40eb98,_0x4f8143['commandParams'][0x0]['startIndex'])};}return _0x522a22;}['_getSuggestionBlocksForListStyle'](){const _0x59ec65=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b8ade=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2b8ade[0x0]?.['is']('element','listItem')&&_0x2b8ade['unshift'](..._0x59ec65['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2b8ade[_0x2b8ade['length']-0x1]?.['is']('element','listItem')&&_0x2b8ade['push'](..._0x59ec65['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2b8ade=[...new Set(_0x2b8ade)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2b8ade=_0x2b8ade['filter'](_0x46460c=>_0x46460c['is']('element','listItem'))),_0x2b8ade;}['_getSuggestionBlocks'](_0x412e6e){const _0x314c97=this['editor']['plugins']['get']('LegacyListUtils');let _0x22bde6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x412e6e)['map'](_0x25b772=>{const _0x2bb52f=this['editor']['model']['createPositionAt'](_0x25b772,0x0);return[..._0x314c97['getSiblingNodes'](_0x2bb52f,'backward'),..._0x314c97['getSiblingNodes'](_0x2bb52f,'forward')];})['flat']();return _0x22bde6=[...new Set(_0x22bde6)],_0x22bde6;}['_getTranslationKeyForListStyle'](_0x58fcf4){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x58fcf4)||'default')['toUpperCase']()+'_LIST_'+_0x58fcf4['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends Plugin{['afterInit'](){const _0x22f424=this['editor'];if(!_0x22f424['plugins']['has']('MediaEmbedEditing'))return;const _0x4fb233=_0x22f424['plugins']['get']('TrackChangesEditing'),_0x3f577c=_0x22f424['locale'];_0x4fb233['enableCommand']('mediaEmbed'),_0x4fb233['descriptionFactory']['registerElementLabel']('media',_0x3c48a8=>getTranslation$1(_0x3f577c,'ELEMENT_MEDIA',_0x3c48a8));}}class TrackChangesMention extends Plugin{['afterInit'](){const _0x485b7d=this['editor'];_0x485b7d['plugins']['has']('MentionEditing')&&_0x485b7d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends Plugin{['afterInit'](){const _0x57ff8e=this['editor'];if(!_0x57ff8e['plugins']['has']('MergeFieldsEditing'))return;const _0x2b680b=_0x57ff8e['plugins']['get']('TrackChangesEditing'),_0x166998=_0x57ff8e['locale'];_0x2b680b['enableCommand']('insertMergeField'),_0x2b680b['enableCommand']('insertMergeFieldBlock'),_0x2b680b['enableCommand']('insertMergeFieldImage'),_0x2b680b['descriptionFactory']['registerElementLabel']('mergeField',_0x16679b=>getTranslation$1(_0x166998,'ELEMENT_MERGE_FIELD',_0x16679b)),_0x2b680b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x324378=>getTranslation$1(_0x166998,'ELEMENT_MERGE_FIELD',_0x324378)),_0x2b680b['descriptionFactory']['registerDescriptionCallback'](_0x1291e5=>{if('insertion'!=_0x1291e5['type']&&'deletion'!=_0x1291e5['type'])return;const _0x2d51f3=_0x1291e5['getContainedElement']();if(null==_0x2d51f3)return;const _0x503f46=_0x57ff8e['plugins']['get']('MergeFieldsEditing');let _0x169a22;switch(_0x503f46['getMergeFieldType'](_0x2d51f3)){case null:return;case'image':{const _0x56346e=_0x503f46['unwrapAffixes'](_0x2d51f3['getAttribute']('src'));_0x169a22=_0x503f46['getLabel'](_0x56346e)||_0x56346e;break;}default:{const _0x45bed1=_0x2d51f3['getAttribute']('id');_0x169a22=_0x503f46['getLabel'](_0x45bed1)||_0x45bed1;break;}}return'insertion'==_0x1291e5['type']?{'type':'insertion','content':getTranslation$1(_0x166998,'*Insert:*\x20%0','\x22'+_0x169a22+'\x22\x20'+getTranslation$1(_0x166998,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':getTranslation$1(_0x166998,'*Remove:*\x20%0','\x22'+_0x169a22+'\x22\x20'+getTranslation$1(_0x166998,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends Plugin{['afterInit'](){const _0x5b538a=this['editor'],_0x5e2c20=_0x5b538a['plugins']['get']('TrackChangesEditing');_0x5b538a['plugins']['has']('MultiLevelList')&&(_0x5e2c20['enableDefaultAttributesIntegration']('multiLevelList'),_0x5e2c20['descriptionFactory']['registerDescriptionCallback'](_0x2410a6=>this['handleDescriptions'](_0x2410a6)));}['handleDescriptions'](_0x25c85b){const _0x353b62=this['editor']['locale'],{data:_0x1be2e0}=_0x25c85b,_0x251a0d={'type':'format','content':''};if(_0x1be2e0&&'listMarkerStyle'==_0x1be2e0['key']){if(!_0x1be2e0['oldValue'])return{'type':'format','content':getTranslation$1(_0x353b62,'*Set\x20format:*\x20%0',getTranslation$1(_0x353b62,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1be2e0['newValue']+')'};if(!_0x1be2e0['newValue']){let _0x47f74e=_0x25c85b['head'];for(;_0x47f74e;){if(_0x47f74e['data']&&'listType'==_0x47f74e['data']['key']&&_0x47f74e['data']['newValue'])return _0x251a0d;_0x47f74e=_0x47f74e['next'];}return{'type':'format','content':getTranslation$1(_0x353b62,'*Remove\x20format:*\x20%0',getTranslation$1(_0x353b62,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1be2e0['oldValue']+')'};}}}}class TrackChangesPageBreak extends Plugin{['afterInit'](){const _0x98d30d=this['editor'];if(!_0x98d30d['plugins']['has']('PageBreakEditing'))return;_0x98d30d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x557a23=_0x98d30d['plugins']['get']('TrackChangesEditing'),_0x1ce993=_0x98d30d['locale'];_0x557a23['descriptionFactory']['registerElementLabel']('pageBreak',_0xa0fbe6=>getTranslation$1(_0x1ce993,'ELEMENT_PAGE_BREAK',_0xa0fbe6));}}class TrackChangesParagraph extends Plugin{['afterInit'](){const _0x2dcea9=this['editor'];if(!_0x2dcea9['plugins']['has']('Paragraph'))return;const _0x1fb7a0=_0x2dcea9['locale'],_0xbf8d0f=_0x2dcea9['plugins']['get']('TrackChangesEditing');_0xbf8d0f['descriptionFactory']['registerElementLabel']('paragraph',_0x451813=>getTranslation$1(_0x1fb7a0,'ELEMENT_PARAGRAPH',_0x451813)),_0xbf8d0f['enableDefaultAttributesIntegration']('paragraph'),_0xbf8d0f['enableCommand']('insertParagraph');const _0x41792c=_0xbf8d0f['descriptionFactory'];_0x41792c['registerDescriptionCallback'](_0x5d51bb=>{if('insertion'!==_0x5d51bb['type'])return;const {start:_0x42f010,end:_0x1a8778}=_0x5d51bb['getFirstRange']();if(!_0x42f010['isTouching'](_0x1a8778)||!_0x42f010['nodeAfter'])return;const _0x504ab6=_0x2dcea9['model']['schema'],_0x3aec92=_0x42f010['nodeAfter'];return _0x504ab6['isBlock'](_0x3aec92)&&!_0x504ab6['isLimit'](_0x3aec92)&&_0x504ab6['checkChild'](_0x3aec92,'$text')?{'type':'insertion','content':getTranslation$1(_0x1fb7a0,'*Insert:*\x20%0',_0x41792c['getItemLabel'](_0x3aec92,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9bf7c2=this['editor'],_0x91cec2=_0x9bf7c2['locale'];_0x9bf7c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x477b2b=>{if('formatBlock'!=_0x477b2b['type'])return;const {data:_0x43a159}=_0x477b2b;return _0x43a159&&'paragraph'==_0x43a159['commandName']?{'type':'format','content':getTranslation$1(_0x91cec2,'*Change\x20to:*\x20%0',getTranslation$1(_0x91cec2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends Plugin{['afterInit'](){const _0x3e8cbe=this['editor'];_0x3e8cbe['commands']['get']('replaceSource')&&_0x3e8cbe['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends Plugin{['afterInit'](){const _0xe65c07=this['editor'];if(!_0xe65c07['plugins']['has']('RemoveFormatEditing'))return;_0xe65c07['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13275e=this['editor'];_0x13275e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fbe00=>{if('formatBlock'!=_0x4fbe00['type']&&'formatInline'!=_0x4fbe00['type'])return;const {data:_0x3aa335}=_0x4fbe00;return _0x3aa335&&'removeFormat'==_0x3aa335['commandName']?{'type':'format','content':getTranslation$1(_0x13275e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends Plugin{['afterInit'](){const _0x3abbc2=this['editor'];if(!_0x3abbc2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4e465b=_0x3abbc2['plugins']['get']('TrackChangesEditing');_0x4e465b['enableCommand']('goToPreviousRestrictedEditingException'),_0x4e465b['enableCommand']('goToNextRestrictedEditingException');const _0x1d327c=_0x3abbc2['plugins']['get']('RestrictedEditingModeEditing');_0x1d327c['enableCommand']('trackChanges'),_0x1d327c['enableCommand']('acceptSuggestion'),_0x1d327c['enableCommand']('discardSuggestion'),_0x1d327c['enableCommand']('acceptAllSuggestions'),_0x1d327c['enableCommand']('discardAllSuggestions'),_0x1d327c['enableCommand']('acceptSelectedSuggestions'),_0x1d327c['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends Plugin{['afterInit'](){const _0x573151=this['editor'];if(!_0x573151['plugins']['has']('ShiftEnter'))return;const _0x415c9b=_0x573151['plugins']['get']('TrackChangesEditing');_0x415c9b['enableCommand']('shiftEnter'),_0x415c9b['descriptionFactory']['registerElementLabel']('softBreak',_0x1f5e63=>getTranslation$1(_0x573151['locale'],'ELEMENT_LINE_BREAK',_0x1f5e63));}}function getRangesWithAttribute(_0x3a88e2,_0x22cdee,_0x10c544){const _0x4045a9=[];for(const _0x2726b7 of _0x22cdee['getItems']())_0x2726b7['hasAttribute'](_0x3a88e2)&&_0x4045a9['push'](_0x10c544['createRangeOn'](_0x2726b7));return _0x4045a9;}class TrackChangesStandardEditingMode extends Plugin{['afterInit'](){const _0x389b4a=this['editor'],_0x38d2f6=_0x389b4a['plugins']['get']('TrackChangesEditing');_0x389b4a['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x38d2f6['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x4bd6b5=this['editor'],_0xb442d0=_0x4bd6b5['model'],_0x3e1af1=_0x4bd6b5['locale'],_0x5efa3a=_0x4bd6b5['plugins']['get']('TrackChangesEditing'),_0x321972='restrictedEditingException',_0x459759=_0x4bd6b5['commands']['get'](_0x321972);_0x5efa3a['enableCommand'](_0x321972,(_0x4ac38e,_0x288439={})=>{const _0x27b1be=_0xb442d0['document']['selection'];if(_0x27b1be['isCollapsed'])return void _0x4ac38e(_0x288439);const _0x392ac5=void 0x0!==_0x288439['forceValue']?_0x288439['forceValue']:!_0x459759['value'];_0xb442d0['change'](()=>{const _0x31d015=Array['from'](_0x27b1be['getRanges']());for(const _0x3bd9a4 of _0x31d015){const _0x135725=_0x392ac5?[_0x3bd9a4]:getRangesWithAttribute(_0x321972,_0x3bd9a4,_0xb442d0);for(const _0x5cc621 of _0x135725)_0x5efa3a['markInlineFormat'](_0x5cc621,{'commandName':_0x321972,'commandParams':[{'forceValue':_0x392ac5}]});}});}),_0x5efa3a['descriptionFactory']['registerDescriptionCallback'](_0x1e47d8=>{if('formatBlock'!=_0x1e47d8['type']&&'formatInline'!=_0x1e47d8['type'])return;const {data:_0xaeb396}=_0x1e47d8;return _0xaeb396&&_0xaeb396['commandName']==_0x321972?_0xaeb396['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x3e1af1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$1(_0x3e1af1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x37395e=this['editor'],_0xc31ffc=_0x37395e['locale'],_0xb5bad1=_0x37395e['plugins']['get']('TrackChangesEditing'),_0x690fd2='restrictedEditingExceptionBlock',_0x31aafb=this['editor']['commands']['get'](_0x690fd2);_0xb5bad1['enableCommand'](_0x690fd2,(_0x546cf5,_0x425be7={})=>{const _0x53c1e3=this['editor']['model']['document']['selection'],_0x533041=_0x425be7&&void 0x0!==_0x425be7['forceValue']?_0x425be7['forceValue']:!_0x31aafb['value'];let _0x4224be=[];if(_0x533041){const _0x2d9112=Array['from'](_0x53c1e3['getSelectedBlocks']())['filter'](_0x3e1f80=>isInBlockException(_0x3e1f80)||checkCanBeWrapped(_0x3e1f80,this['editor']['model']['schema']));_0x4224be=getRangesOfBlockGroups(_0x2d9112,_0x37395e['model']);}else{const _0x4c9808=Array['from'](_0x53c1e3['getSelectedBlocks']())['map'](_0x9fcd44=>findExceptionContentBlock(_0x9fcd44))['filter'](_0x4b1c31=>!!_0x4b1c31);_0x4224be=getRangesOfBlockGroups(_0x4c9808,_0x37395e['model']);}_0x37395e['model']['change'](()=>{for(const _0x4a9f41 of _0x4224be)_0xb5bad1['markBlockFormat'](_0x4a9f41,{'commandName':_0x690fd2,'commandParams':[{'forceValue':_0x533041}]});});}),_0xb5bad1['descriptionFactory']['registerDescriptionCallback'](_0x5dd184=>{const {data:_0x42ab57}=_0x5dd184;if(_0x42ab57&&_0x42ab57['commandName']==_0x690fd2)return _0x42ab57['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0xc31ffc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$1(_0xc31ffc,'FORMAT_RESTRICTED_DISABLED')};});}}function checkCanBeWrapped(_0x58cfcb,_0x19a3d1){const _0x261dd6=_0x19a3d1['createContext'](_0x58cfcb['parent']);return!!_0x19a3d1['checkChild'](_0x261dd6,'restrictedEditingException')&&!!_0x19a3d1['checkChild'](_0x261dd6['push']('restrictedEditingException'),_0x58cfcb);}function isInBlockException(_0x14ca10){return!!_0x14ca10['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}function findExceptionContentBlock(_0x41e882){let _0x2c0a4e=_0x41e882;for(;_0x2c0a4e['parent'];){if('restrictedEditingException'==_0x2c0a4e['parent']['name'])return _0x2c0a4e;_0x2c0a4e=_0x2c0a4e['parent'];}return null;}class TrackChangesStylesDropdown extends Plugin{['afterInit'](){const _0x2b7e93=this['editor'];if(!_0x2b7e93['plugins']['has']('Style')||!_0x2b7e93['plugins']['has']('DataSchema'))return;const _0x1c0e83=_0x2b7e93['plugins']['get']('TrackChangesEditing'),_0x2f5c07=_0x2b7e93['locale'],_0x5241e6=_0x2b7e93['config']['get']('style')||{},_0x488345=_0x2b7e93['plugins']['get']('GeneralHtmlSupport'),_0x340f74=_0x2b7e93['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2b7e93['plugins']['get']('DataSchema'),_0x5241e6['definitions']);_0x1c0e83['enableDefaultAttributesIntegration']('style');const _0x5c0362=new Set();for(const _0x709e7 of _0x340f74['block']){const _0x4532a3=_0x488345['getGhsAttributeNameForElement'](_0x709e7['element']);_0x5c0362['add'](_0x4532a3);}const _0x2500e0=new Set();for(const _0x3fca36 of _0x340f74['inline']){const _0x48c27e=_0x488345['getGhsAttributeNameForElement'](_0x3fca36['element']);_0x2500e0['add'](_0x48c27e);for(const _0x33f86b of _0x3fca36['ghsAttributes'])_0x2500e0['add'](_0x33f86b);}for(const _0x2d59b4 of _0x5c0362)_0x1c0e83['descriptionFactory']['registerAttributeLabel'](_0x2d59b4,getTranslation$1(_0x2f5c07,'FORMAT_STYLE'));for(const _0x17bc9e of _0x2500e0)_0x1c0e83['descriptionFactory']['registerAttributeLabel'](_0x17bc9e,getTranslation$1(_0x2f5c07,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1740d6=this['editor'],_0x1c35e6=_0x1740d6['locale'];_0x1740d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e3dfe=>{if('formatBlock'!=_0x2e3dfe['type']&&'formatInline'!=_0x2e3dfe['type'])return;const {data:_0x35f49d}=_0x2e3dfe;return _0x35f49d&&'style'===_0x35f49d['commandName']?_0x35f49d['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x1c35e6,'*Set\x20format:*\x20%0',_0x35f49d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':getTranslation$1(_0x1c35e6,'*Remove\x20format:*\x20%0',_0x35f49d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends Plugin{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x33b462){super(_0x33b462),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x490f2f=this['editor'],_0x30d8bc=_0x490f2f['model']['document']['selection'];if(!_0x490f2f['plugins']['has']('TableEditing'))return;const _0x1b8ceb=_0x490f2f['locale'],_0x480f99=_0x490f2f['plugins']['get']('TrackChangesEditing'),_0x190e50=_0x490f2f['plugins']['get']('TableUtils');_0x480f99['descriptionFactory']['registerElementLabel']('table',_0x5578f7=>getTranslation$1(_0x1b8ceb,'ELEMENT_TABLE',_0x5578f7)),this['_setupColumnsRowsFixing'](),_0x480f99['enableCommand']('insertTable'),_0x480f99['enableCommand']('selectTableRow'),_0x480f99['enableCommand']('selectTableColumn');for(const _0x1c3f6d of['insertTableRowAbove','insertTableRowBelow']){const _0x15bfa4=_0x490f2f['commands']['get'](_0x1c3f6d);_0x480f99['enableCommand'](_0x1c3f6d,_0x39508c=>{_0x490f2f['model']['change'](_0x526461=>{_0x39508c();const _0x565884='above'===_0x15bfa4['order'],_0x3b7f91=_0x190e50['getSelectionAffectedTableCells'](_0x30d8bc),_0x1c557a=_0x190e50['getRowIndexes'](_0x3b7f91),_0x1b96bb=_0x565884?_0x1c557a['first']-0x1:_0x1c557a['last']+0x1,_0x2bc73f=_0x3b7f91[0x0]['findAncestor']('table'),_0x26be48=_0x190e50['createTableWalker'](_0x2bc73f,{'startRow':_0x1b96bb,'endRow':_0x1b96bb}),_0x27aef1=Array['from'](_0x26be48)['map'](_0x385aff=>_0x526461['createRangeOn'](_0x385aff['cell']));_0x480f99['markMultiRangeInsertion'](_0x27aef1,'tableRow');});});}for(const _0x4ffdd9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4ee760=_0x490f2f['commands']['get'](_0x4ffdd9);_0x480f99['enableCommand'](_0x4ffdd9,_0x1f3bc0=>{_0x490f2f['model']['change'](_0x36d970=>{_0x1f3bc0();const _0x5ccec7='left'===_0x4ee760['order'],_0x15b881=_0x190e50['getSelectionAffectedTableCells'](_0x30d8bc),_0x4581c2=_0x190e50['getColumnIndexes'](_0x15b881),_0x3f4445=_0x5ccec7?_0x4581c2['first']-0x1:_0x4581c2['last']+0x1,_0x168c41=_0x15b881[0x0]['findAncestor']('table'),_0x241b80=_0x190e50['createTableWalker'](_0x168c41,{'startRow':0x0,'column':_0x3f4445,'includeAllSlots':!0x1}),_0x40e983=Array['from'](_0x241b80)['map'](_0x5670f1=>_0x36d970['createRangeOn'](_0x5670f1['cell']));_0x480f99['markMultiRangeInsertion'](_0x40e983,'tableColumn');});});}for(const _0x44e79d of['removeTableRow','removeTableColumn']){const _0x19c5c6=_0x44e79d['substr'](0xb),_0x524238=_0x19c5c6['toLowerCase'](),_0x93f2a3=_0x524238['substr'](0x0,0x3)+'span',_0x4a0d73='table'+_0x19c5c6,_0x24b1e1='min'+_0x19c5c6,_0x596894='max'+_0x19c5c6;_0x480f99['enableCommand'](_0x44e79d,()=>{_0x490f2f['model']['change'](_0x54a6d4=>{const _0x104aac=_0x190e50['getSelectionAffectedTableCells'](_0x30d8bc),_0x2a985f=_0x104aac[0x0]['findAncestor']('table');let _0x3d5ef7;if('removeTableRow'==_0x44e79d){const _0x222a2a=_0x190e50['getRowIndexes'](_0x104aac);_0x3d5ef7={'startRow':_0x222a2a['first'],'endRow':_0x222a2a['last'],'includeAllSlots':!0x0};}else{const _0x66ed4d=_0x190e50['getColumnIndexes'](_0x104aac);_0x3d5ef7={'startColumn':_0x66ed4d['first'],'endColumn':_0x66ed4d['last'],'includeAllSlots':!0x0};}const _0x2aa7ea=_0x190e50['createTableWalker'](_0x2a985f,_0x3d5ef7),_0x1e8060=Array['from'](_0x2aa7ea)['map'](({cell:_0x491595})=>_0x491595),_0x239e5e=uniqueValues(_0x1e8060['filter'](_0xc7ee92=>_0xc7ee92['hasAttribute'](_0x93f2a3))),_0x59360d=uniqueValues(_0x1e8060['filter'](_0x461356=>!_0x461356['hasAttribute'](_0x93f2a3)))['map'](_0x30fc13=>_0x54a6d4['createRangeOn'](_0x30fc13)),_0x431bbf=_0x480f99['markMultiRangeDeletion'](_0x59360d,_0x4a0d73);if(_0x431bbf&&('tableRow'==_0x431bbf['subType']||'tableColumn'==_0x431bbf['subType'])){const _0x3eec45=this['_getSuggestionCoords'](_0x431bbf);for(const _0x41eeed of _0x239e5e){const _0x1687c1=_0x54a6d4['createRangeOn'](_0x41eeed),_0x223aa2=_0x190e50['getCellLocation'](_0x41eeed),_0x33bddb=_0x41eeed['getAttribute'](_0x93f2a3)-0x1,_0x5b4934=_0x3eec45[_0x24b1e1],_0x2d298e=_0x3eec45[_0x596894];_0x5b4934<=_0x223aa2[_0x524238]&&_0x223aa2[_0x524238]+_0x33bddb<=_0x2d298e&&_0x431bbf['addRange'](_0x1687c1);}}});});}function _0x205936(_0xf1104e){const _0x399684=Array['from'](_0x30d8bc['getRanges']())['map'](_0x255e4c=>ModelLiveRange['fromRange'](_0x255e4c));_0x490f2f['model']['change'](_0x17b38f=>{const _0x41af04=_0x17b38f['batch'];_0xf1104e=_0xf1104e['filter'](_0x4a25ce=>'$graveyard'!=_0x4a25ce['root']['rootName']),_0x17b38f['setSelection'](_0xf1104e),_0x490f2f['commands']['get']('removeTableRow')['refresh'](),_0x490f2f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x490f2f['model']['enqueueChange'](()=>{_0x490f2f['model']['enqueueChange'](_0x41af04,_0x2d0a78=>{const _0x3e84f7=_0x399684['filter'](_0x5b86af=>'$graveyard'!=_0x5b86af['root']['rootName']);_0x3e84f7['length']>0x0&&_0x2d0a78['setSelection'](_0x3e84f7);for(const _0x4736b6 of _0x399684)_0x4736b6['detach']();});});});}function _0x1761d3(_0x447ccc){_0x490f2f['model']['change'](_0x24dba2=>{const _0x299754=Array['from'](_0x30d8bc['getRanges']())['map'](_0x1bf64a=>ModelLiveRange['fromRange'](_0x1bf64a)),_0x1bae4e=[];for(const _0x486ad7 of _0x447ccc)for(const _0x345e4c of _0x486ad7['getItems']({'shallow':!0x0}))_0x1bae4e['push'](_0x345e4c);for(const _0x30bb96 of _0x1bae4e)'$graveyard'!=_0x30bb96['root']['rootName']&&(_0x24dba2['setSelection'](_0x24dba2['createPositionAt'](_0x30bb96,0x0)),_0x490f2f['commands']['get']('removeTableColumn')['refresh'](),_0x490f2f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1385fd=_0x299754['filter'](_0x2442d4=>'$graveyard'!=_0x2442d4['root']['rootName']);_0x1385fd['length']>0x0&&_0x24dba2['setSelection'](_0x1385fd);for(const _0x3ca6d8 of _0x299754)_0x3ca6d8['detach']();});}function _0x34d27c(_0x33167a,_0x427163){return _0x427163['every'](_0x2539cc=>_0x33167a['some'](_0xc064a=>_0xc064a['end']['isEqual'](_0x2539cc['start'])||_0x2539cc['end']['isEqual'](_0xc064a['start'])));}function _0x3f7071(_0x5dc993,_0x29d328){return!_0x5dc993['some'](_0x38c052=>_0x29d328['some'](_0x1c2d90=>_0x38c052['isIntersecting'](_0x1c2d90)))&&_0x5dc993['some'](_0x45bcf6=>_0x29d328['some'](_0x1451e9=>_0x45bcf6['end']['isTouching'](_0x1451e9['start'])));}_0x480f99['descriptionFactory']['registerDescriptionCallback'](_0x551b1e=>{if('insertion'!=_0x551b1e['type']&&'deletion'!=_0x551b1e['type'])return;const _0x1122d4=_0x551b1e['getContainedElement']();if(null!=_0x1122d4&&_0x1122d4['is']('element','table')){if('insertion'==_0x551b1e['type']){const _0x27e706=_0x551b1e['getItems']()['filter'](_0x29fe3e=>_0x29fe3e['is']('$textProxy'))['map'](_0x20257f=>_0x20257f['data']);if(_0x27e706['length'])return{'type':'insertion','content':getTranslation$1(_0x1b8ceb,'*Insert:*\x20%0',getTranslation$1(_0x1b8ceb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x27e706['join']('\x20')+'\x22'))};}if('deletion'==_0x551b1e['type']){const _0x294697=_0x551b1e['getItems']()['filter'](_0x42e325=>_0x42e325['is']('$textProxy'))['map'](_0x198d09=>_0x198d09['data']);if(_0x294697['length'])return{'type':'deletion','content':getTranslation$1(_0x1b8ceb,'*Remove:*\x20%0',getTranslation$1(_0x1b8ceb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x294697['join']('\x20')+'\x22'))};}}}),_0x480f99['descriptionFactory']['registerDescriptionCallback'](_0x5047c4=>{if('tableRow'==_0x5047c4['subType']){const _0x1eba99=_0x5047c4['getItems']()['filter'](_0x536890=>_0x536890['is']('$textProxy'))['map'](_0x4c981a=>_0x4c981a['data']),_0x34d6e0=this['_getSuggestionCoords'](_0x5047c4),_0x39d298=_0x34d6e0['maxRow']-_0x34d6e0['minRow']+0x1;if('insertion'==_0x5047c4['type'])return _0x1eba99['length']?{'type':'insertion','content':getTranslation$1(_0x1b8ceb,'*Insert:*\x20%0',getTranslation$1(_0x1b8ceb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x39d298,'\x22'+_0x1eba99['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$1(_0x1b8ceb,'*Insert:*\x20%0',getTranslation$1(_0x1b8ceb,'ELEMENT_TABLE_ROW',_0x39d298))};if('deletion'==_0x5047c4['type'])return _0x1eba99['length']?{'type':'deletion','content':getTranslation$1(_0x1b8ceb,'*Remove:*\x20%0',getTranslation$1(_0x1b8ceb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x39d298,'\x22'+_0x1eba99['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$1(_0x1b8ceb,'*Remove:*\x20%0',getTranslation$1(_0x1b8ceb,'ELEMENT_TABLE_ROW',_0x39d298))};}if('tableColumn'==_0x5047c4['subType']){const _0x1ee7b4=_0x5047c4['getItems']()['filter'](_0x1de7cf=>_0x1de7cf['is']('$textProxy'))['map'](_0x4f7f8c=>_0x4f7f8c['data']),_0x19bbfc=this['_getSuggestionCoords'](_0x5047c4),_0x3fc0d7=_0x19bbfc['maxColumn']-_0x19bbfc['minColumn']+0x1;if('insertion'==_0x5047c4['type'])return _0x1ee7b4['length']?{'type':'insertion','content':getTranslation$1(_0x1b8ceb,'*Insert:*\x20%0',getTranslation$1(_0x1b8ceb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3fc0d7,'\x22'+_0x1ee7b4['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$1(_0x1b8ceb,'*Insert:*\x20%0',getTranslation$1(_0x1b8ceb,'ELEMENT_TABLE_COLUMN',_0x3fc0d7))};if('deletion'==_0x5047c4['type'])return _0x1ee7b4['length']?{'type':'deletion','content':getTranslation$1(_0x1b8ceb,'*Remove:*\x20%0',getTranslation$1(_0x1b8ceb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3fc0d7,'\x22'+_0x1ee7b4['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$1(_0x1b8ceb,'*Remove:*\x20%0',getTranslation$1(_0x1b8ceb,'ELEMENT_TABLE_COLUMN',_0x3fc0d7))};}}),_0x480f99['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x205936),_0x480f99['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x205936),_0x480f99['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1761d3),_0x480f99['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1761d3),_0x480f99['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x34d27c),_0x480f99['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x34d27c),_0x480f99['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3f7071),_0x480f99['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3f7071);}['_acceptFormatSuggestionCallbackFactory'](){const _0x448a0f=this['editor'],_0x1fbbaa=_0x448a0f['model']['document']['selection'];return(_0x1e9e73,_0x52d94a)=>{_0x448a0f['model']['change'](_0x5e5b39=>{const {commandName:_0x4ab59f,commandParams:_0x1ada23}=_0x52d94a;let _0x163218=_0x1e9e73[0x0]['end']['nodeBefore'];_0x1ada23&&_0x1ada23[0x0]&&!0x1===_0x1ada23[0x0]['forceValue']&&(_0x163218=_0x1e9e73[0x0]['start']['nodeAfter']);const _0x1fe42c=_0x5e5b39['createRangeIn'](_0x163218);if('$graveyard'==_0x1fe42c['root']['rootName'])return;const _0xa4bb5d=Array['from'](_0x1fbbaa['getRanges']())['map'](_0x487d0e=>ModelLiveRange['fromRange'](_0x487d0e));_0x5e5b39['setSelection'](_0x1fe42c),_0x448a0f['commands']['get'](_0x4ab59f)['refresh'](),_0x1ada23['push']({'forceDefaultExecution':!0x0}),_0x448a0f['execute'](_0x4ab59f,..._0x1ada23);const _0x46e985=_0xa4bb5d['filter'](_0x557775=>'$graveyard'!=_0x557775['root']['rootName']);_0x46e985['length']>0x0&&_0x5e5b39['setSelection'](_0x46e985);for(const _0x217574 of _0xa4bb5d)_0x217574['detach']();});};}['_getCoordsForCells'](_0x258efc){const _0x38fbae=this['editor']['plugins']['get']('TableUtils');let _0x59e146=Number['MAX_SAFE_INTEGER'],_0x47ea32=Number['MIN_SAFE_INTEGER'],_0x320cc4=Number['MAX_SAFE_INTEGER'],_0x3ea3b4=Number['MIN_SAFE_INTEGER'];for(const _0x122e8d of _0x258efc){if('$graveyard'==_0x122e8d['root']['rootName'])continue;const {row:_0xb17958,column:_0x486131}=_0x38fbae['getCellLocation'](_0x122e8d),_0x561d57=_0x122e8d['hasAttribute']('rowspan')?_0x122e8d['getAttribute']('rowspan')-0x1:0x0,_0xce89ad=_0x122e8d['hasAttribute']('colspan')?_0x122e8d['getAttribute']('colspan')-0x1:0x0;_0x59e146=_0xb17958<_0x59e146?_0xb17958:_0x59e146,_0x47ea32=_0xb17958+_0x561d57>_0x47ea32?_0xb17958+_0x561d57:_0x47ea32,_0x320cc4=_0x486131<_0x320cc4?_0x486131:_0x320cc4,_0x3ea3b4=_0x486131+_0xce89ad>_0x3ea3b4?_0x486131+_0xce89ad:_0x3ea3b4;}return{'minRow':_0x59e146,'maxRow':_0x47ea32,'minColumn':_0x320cc4,'maxColumn':_0x3ea3b4};}['_setupColumnsRowsFixing'](){const _0x370639=this['editor'],_0x1d2ecf=_0x370639['plugins']['get']('TrackChangesEditing'),_0x40ebf8=_0x370639['plugins']['get']('TableUtils');_0x370639['model']['document']['on']('change:data',()=>{const _0x3838a3=Array['from'](_0x370639['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4700db,data:_0x4a0178}of _0x3838a3){const {group:_0x4925d5,id:_0x1d12a6,subType:_0x23820a}=_0x1d2ecf['_splitMarkerName'](_0x4700db);if('suggestion'!=_0x4925d5)continue;if(null!=_0x4a0178['oldRange'])continue;const _0x55514c=_0x1d2ecf['getSuggestion'](_0x1d12a6);this['_tablePostFixingSubtypes']['includes'](_0x23820a)&&this['_tableSuggestions']['add'](_0x55514c);}},{'priority':'low'});const _0x5992f0=(_0x2317a9,_0x5a3d0f)=>{let _0xc3cbb1=!0x1;const _0x19973f=_0x5a3d0f['createRangeOn'](_0x2317a9),_0x1482a8=_0x2317a9['findAncestor']('table'),_0x1351d1=_0x40ebf8['getCellLocation'](_0x2317a9);for(const _0x52112f of this['_tableSuggestions']){const _0x28ad3a=_0x52112f['subType'],_0x1716d8=_0x28ad3a['startsWith']('tablePaste'),_0x498468=_0x28ad3a['substr'](_0x1716d8?0xa:0x5),_0x56f3ca=_0x498468['toLowerCase'](),_0x39f2fe=_0x56f3ca['substr'](0x0,0x3)+'span',_0x419c0e='min'+_0x498468,_0x293370='max'+_0x498468;if(!_0x52112f['isInContent'])continue;if(_0x1482a8!=_0x52112f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x52112f['isIntersectingWithRange'](_0x19973f))continue;const _0x12700b=_0x2317a9['hasAttribute'](_0x39f2fe)?_0x2317a9['getAttribute'](_0x39f2fe)-0x1:0x0,_0x4e1110=this['_getSuggestionCoords'](_0x52112f),_0x59ee74=_0x4e1110[_0x419c0e],_0x352454=_0x4e1110[_0x293370];_0x59ee74<=_0x1351d1[_0x56f3ca]&&_0x1351d1[_0x56f3ca]+_0x12700b<=_0x352454&&(_0x52112f['addRange'](_0x19973f),_0xc3cbb1=!0x0);}return _0xc3cbb1;};_0x370639['model']['document']['registerPostFixer'](_0x429195=>{let _0xacf60f=!0x1;for(const _0x20e717 of _0x370639['model']['document']['differ']['getChanges']())if('insert'==_0x20e717['type']){if('tableRow'==_0x20e717['name']){for(const _0x2f3f77 of _0x20e717['position']['nodeAfter']['getChildren']())_0xacf60f=_0xacf60f||_0x5992f0(_0x2f3f77,_0x429195);}else'tableCell'==_0x20e717['name']&&(_0xacf60f=_0xacf60f||_0x5992f0(_0x20e717['position']['nodeAfter'],_0x429195));}return _0xacf60f;});}['_getSuggestionCoords'](_0x21b2b0){return this['_getCoordsForCells'](_0x21b2b0['getRanges']()['map'](_0x5f1737=>_0x5f1737['start']['nodeAfter']));}}function uniqueValues(_0x4598f4){return Array['from'](new Set(_0x4598f4)['values']());}class TrackChangesTableMergeSplit extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x1b70c4=this['editor'],_0x5d946e=_0x1b70c4['model']['document']['selection'],_0x365e39=_0x1b70c4['locale'];if(!_0x1b70c4['plugins']['has']('TableEditing'))return;const _0x283d4d=_0x1b70c4['plugins']['get']('TrackChangesEditing'),_0x1d45f4=_0x1b70c4['plugins']['get']('TableUtils'),_0x1a3a1a=_0x1b70c4['plugins']['get'](TrackChangesTable);_0x1a3a1a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x283d4d['enableCommand']('mergeTableCells',()=>{const _0x1a9be3=_0x1d45f4['getSelectionAffectedTableCells'](_0x1b70c4['model']['document']['selection']);_0x1b70c4['model']['change'](()=>{_0x283d4d['markMultiRangeBlockFormat'](_0x1a9be3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1b70c4['commands']['get']('mergeTableCells')['on']('execute',(_0x2e9a2f,_0x396ef7)=>{_0x1b70c4['commands']['get']('trackChanges')['value']&&(_0x396ef7['length']>0x0&&_0x396ef7[_0x396ef7['length']-0x1]&&_0x396ef7[_0x396ef7['length']-0x1]['forceDefaultExecution']||_0x283d4d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2e9a2f['stop']());},{'priority':'highest'});for(const _0x4c491e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b5e40=_0x1b70c4['commands']['get'](_0x4c491e);_0x283d4d['enableCommand'](_0x4c491e,()=>{const _0x469116=_0x1b70c4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x273abc=>_0x273abc['is']('element','tableCell')),_0x30a68b=_0x2b5e40['value'];_0x1b70c4['model']['change'](()=>{_0x283d4d['markMultiRangeBlockFormat']([_0x469116,_0x30a68b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x48ac49 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x31ecdc=_0x1b70c4['commands']['get'](_0x48ac49);_0x283d4d['enableCommand'](_0x48ac49,()=>{const _0x20a80a=_0x1d45f4['getSelectionAffectedTableCells'](_0x1b70c4['model']['document']['selection'])[0x0],_0x3e9499=_0x20a80a['findAncestor']('table'),{column:_0x3cf760,row:_0x5e11ae}=_0x1d45f4['getCellLocation'](_0x20a80a);let _0x361493=[];if('horizontally'==_0x31ecdc['direction']){const _0x42487e=_0x1d45f4['createTableWalker'](_0x3e9499,{'startRow':_0x5e11ae,'endRow':_0x5e11ae,'includeAllSlots':!0x0});_0x361493=Array['from'](_0x42487e)['map'](_0x230219=>_0x230219['cell']);}else{const _0x57d194=_0x1d45f4['createTableWalker'](_0x3e9499,{'column':_0x3cf760,'includeAllSlots':!0x0});_0x361493=Array['from'](_0x57d194)['map'](_0x395f9a=>_0x395f9a['cell']);}_0x1b70c4['model']['change'](_0x26567e=>{_0x283d4d['markBlockFormat'](_0x26567e['createRangeOn'](_0x20a80a),{'commandName':_0x48ac49,'commandParams':[]},_0x361493,_0x48ac49);});});}_0x283d4d['descriptionFactory']['registerDescriptionCallback'](_0x27cc96=>{if('formatBlock'!=_0x27cc96['type']&&'formatInline'!=_0x27cc96['type'])return;const {data:_0x2fca0f}=_0x27cc96;return _0x2fca0f&&'mergeTableCells'==_0x2fca0f['commandName']?{'type':'format','content':getTranslation$1(_0x365e39,'*Merge\x20cells*')}:void 0x0;}),_0x283d4d['descriptionFactory']['registerDescriptionCallback'](_0x1223da=>{if('formatBlock'!=_0x1223da['type']&&'formatInline'!=_0x1223da['type'])return;const {data:_0x387011}=_0x1223da;return _0x387011?'splitTableCellVertically'==_0x387011['commandName']?{'type':'format','content':getTranslation$1(_0x365e39,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x387011['commandName']?{'type':'format','content':getTranslation$1(_0x365e39,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4195ea=_0x1a3a1a['_acceptFormatSuggestionCallbackFactory']();for(const _0x54c310 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x283d4d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x54c310,'accept',_0x4195ea);for(const _0x3e87de of['splitTableCellVertically','splitTableCellHorizontally'])_0x283d4d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e87de,'accept',_0x4195ea);_0x283d4d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x11f182=>{_0x1b70c4['model']['change'](_0x165a2c=>{const _0x18a8c1=Array['from'](_0x5d946e['getRanges']())['map'](_0x3bf643=>ModelLiveRange['fromRange'](_0x3bf643));_0x165a2c['setSelection'](_0x11f182),_0x1b70c4['commands']['get']('mergeTableCells')['refresh'](),_0x1b70c4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x496882=_0x18a8c1['filter'](_0x1f5199=>'$graveyard'!=_0x1f5199['root']['rootName']);_0x496882['length']>0x0&&_0x165a2c['setSelection'](_0x496882);for(const _0x3885c3 of _0x18a8c1)_0x3885c3['detach']();});});for(const _0x23a548 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x511789=_0x1b70c4['commands']['get'](_0x23a548);_0x511789['on']('set:isEnabled',(_0x269939,_0x3e56ab,_0x563102)=>{if(_0x563102){const _0x974516=_0x1b70c4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1641d9=>_0x1641d9['is']('element','tableCell'));this['_areMergableCells'](_0x511789['value'],_0x974516)||(_0x269939['return']=!0x1,_0x269939['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3a6d64=this['editor']['commands']['get']('mergeTableCells'),_0x1fc628=this['editor']['plugins']['get']('TableUtils');if(!_0x3a6d64['isEnabled'])return!0x1;const _0x4c0478=_0x1fc628['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x13143e of _0x4c0478)for(const _0xb08200 of _0x4c0478)if(_0x13143e!=_0xb08200&&!this['_areMergableCells'](_0x13143e,_0xb08200))return!0x1;return!0x0;}['_areMergableCells'](_0x110ee8,_0x11a306){const _0x57ef15=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43160f=this['editor']['model']['createRangeOn'](_0x110ee8),_0x67ebfc=this['editor']['model']['createRangeOn'](_0x11a306),_0xc2a2b1=new Set(),_0x8cbef9=new Set();for(const _0x1920e9 of _0x57ef15['getSuggestions']())if(('insertion'==_0x1920e9['type']||'deletion'==_0x1920e9['type']||'mergeTableCells'==_0x1920e9['subType'])&&_0x1920e9['isInContent']){for(const _0x553af7 of _0x1920e9['getRanges']())_0x553af7['containsRange'](_0x43160f,!0x0)&&_0xc2a2b1['add'](_0x1920e9['type']+':'+_0x1920e9['author']['id']),_0x553af7['containsRange'](_0x67ebfc,!0x0)&&_0x8cbef9['add'](_0x1920e9['type']+':'+_0x1920e9['author']['id']);}if(_0xc2a2b1['size']!=_0x8cbef9['size'])return!0x1;for(const _0x4d9987 of _0xc2a2b1)if(!_0x8cbef9['has'](_0x4d9987))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x518967=this['editor'];if(!_0x518967['plugins']['has']('TableEditing'))return;const _0x56f2a2=_0x518967['locale'],_0x2faf33=_0x518967['plugins']['get']('TrackChangesEditing');_0x2faf33['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2faf33['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2faf33['descriptionFactory']['registerAttributeLabel']('headingRows',getTranslation$1(_0x56f2a2,'FORMAT_HEADER_ROW')),_0x2faf33['descriptionFactory']['registerAttributeLabel']('headingColumns',getTranslation$1(_0x56f2a2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12fcc1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x143646=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x12fcc1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x143646),_0x12fcc1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x143646),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4acfe0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6e3cfc=this['editor']['plugins']['get']('TableUtils');function _0x355128({showActiveMarker:_0x471963=!0x0,setDataAttribute:_0x3cb1f9=!0x0}={}){return(_0xdab139,_0x159b44,_0x507740)=>{const {type:_0x120372,id:_0x24254e}=_0x4acfe0['_splitMarkerName'](_0x159b44['markerName']);if(!_0x4acfe0['hasSuggestion'](_0x24254e))return;const _0x25ae54=_0x4acfe0['getSuggestion'](_0x24254e),_0x33bb32=_0x25ae54['data'];if('formatBlock'!=_0x25ae54['type']||!_0x33bb32||'setTableColumnHeader'!=_0x33bb32['commandName'])return;if(_0x159b44['item'])return void _0xdab139['stop']();if(!_0x507740['consumable']['consume'](_0x159b44['markerRange'],_0xdab139['name']))return;const _0x5129bd=_0x159b44['markerRange']['start']['nodeAfter'],_0x34c990=_0x159b44['markerRange']['end']['nodeBefore'],_0x1308a7=_0x5129bd['parent']['parent'],{column:_0x9ce98e}=_0x6e3cfc['getCellLocation'](_0x5129bd),{column:_0x27021b}=_0x6e3cfc['getCellLocation'](_0x34c990);for(let _0x55e948=_0x9ce98e;_0x55e948<=_0x27021b;_0x55e948++){const _0x74c6f0=_0x6e3cfc['createTableWalker'](_0x1308a7,{'column':_0x55e948,'includeAllSlots':!0x1});for(const _0x38f0fc of _0x74c6f0){const _0x70d62b=_0x38f0fc['cell'],_0x2032af=_0x507740['mapper']['toViewElement'](_0x70d62b);_0x507740['writer']['addClass']('ck-suggestion-marker-'+_0x120372,_0x2032af),_0x3cb1f9&&_0x507740['writer']['setAttribute']('data-suggestion',_0x24254e,_0x2032af),_0x507740['mapper']['bindElementToMarker'](_0x2032af,_0x159b44['markerName']),_0x471963&&(_0x4acfe0['activeMarkers']['includes'](_0x159b44['markerName'])?_0x507740['writer']['addClass']('ck-suggestion-marker--active',_0x2032af):_0x507740['writer']['removeClass']('ck-suggestion-marker--active',_0x2032af));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x355128(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3fce07,_0x3c624a,_0x259a2d)=>{_0x259a2d['options']['showSuggestionHighlights']&&_0x355128({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3fce07,_0x3c624a,_0x259a2d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x568900,_0x20755f,_0x331707)=>{const {type:_0x239a8d,id:_0x1f4ab3}=_0x4acfe0['_splitMarkerName'](_0x20755f['markerName']);if(!_0x4acfe0['hasSuggestion'](_0x1f4ab3))return;const _0x10ae9a=_0x4acfe0['getSuggestion'](_0x1f4ab3),_0x4d3d78=_0x10ae9a['data'];if('formatBlock'!=_0x10ae9a['type']||!_0x4d3d78||'setTableColumnHeader'!=_0x4d3d78['commandName'])return;const _0x105a66=_0x331707['mapper']['markerNameToElements'](_0x20755f['markerName']);if(_0x105a66){for(const _0x5a8048 of _0x105a66)_0x331707['writer']['removeClass']('ck-suggestion-marker-'+_0x239a8d,_0x5a8048),_0x331707['writer']['removeClass']('ck-suggestion-marker--active',_0x5a8048),_0x331707['writer']['removeAttribute']('data-suggestion',_0x5a8048),_0x331707['mapper']['unbindElementFromMarkerName'](_0x5a8048,_0x20755f['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4def2f=this['editor'],_0x1e0c41=_0x4def2f['locale'];function _0x1441a3(_0x459e57){return{'type':'format','content':getTranslation$1(_0x1e0c41,'*Format:*\x20%0',_0x459e57)};}_0x4def2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29cf9d=>{if('formatBlock'!=_0x29cf9d['type'])return;const {data:_0x41b750}=_0x29cf9d;if(_0x41b750){if('setTableRowHeader'==_0x41b750['commandName']){const _0x349bcf=_0x41b750['commandParams'][0x0]['forceValue'];return _0x1441a3(getTranslation$1(_0x1e0c41,_0x349bcf?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x41b750['commandName']){const _0x3f2fbe=_0x41b750['commandParams'][0x0]['forceValue'];return _0x1441a3(getTranslation$1(_0x1e0c41,_0x3f2fbe?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableLayout extends Plugin{['afterInit'](){const _0x1b4497=this['editor'],_0x102289=_0x1b4497['locale'],_0x3963ca=_0x1b4497['plugins']['get']('TrackChangesEditing');function _0x2abc68(_0x3709b6){return{'type':'format','content':''+getTranslation$1(_0x102289,'*Set\x20table\x20type:*\x20%0',_0x3709b6)};}_0x1b4497['plugins']['has']('TableLayout')&&(_0x3963ca['enableCommand']('insertTableLayout'),_0x3963ca['enableDefaultAttributesIntegration']('tableType'),_0x3963ca['descriptionFactory']['registerElementLabel'](_0x5455dc=>_0x5455dc['is']('element','table')&&'layout'===_0x5455dc['getAttribute']('tableType'),_0x5db967=>getTranslation$1(_0x102289,'ELEMENT_LAYOUT_TABLE',_0x5db967)),_0x3963ca['descriptionFactory']['registerDescriptionCallback'](_0x22776a=>{const {data:_0x3c83ce}=_0x22776a;if(_0x3c83ce&&'tableType'==_0x3c83ce['key'])switch(_0x3c83ce['newValue']){case'layout':return _0x2abc68(getTranslation$1(_0x102289,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2abc68(getTranslation$1(_0x102289,'ELEMENT_CONTENT_TABLE'));}}));}}const tableCellStyleAttributeNames=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],tableCellStyleAttributesObject=/* #__PURE__ -- @preserve */
Object['fromEntries'](tableCellStyleAttributeNames['map'](_0x53a125=>[_0x53a125,null]));class TrackChangesTableClipboard extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x393091=this['editor'];if(!_0x393091['plugins']['has']('TableClipboard'))return;const _0x4498a6=_0x393091['plugins']['get']('TrackChangesEditing'),_0xadeb3b=_0x393091['plugins']['get']('TableUtils'),_0xdb1451=_0x393091['plugins']['get'](TrackChangesTable),_0x2c663f=_0x393091['plugins']['get']('TableClipboard'),_0x31dfbc=_0x393091['plugins']['get']('TableSelection'),_0xb22c46=_0x393091['plugins']['get'](ClipboardPipeline);_0xdb1451['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x393091['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x393091['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5ba7e6=null,_0x243700=!0x1;_0xb22c46['on']('contentInsertion',(_0x106c32,_0x2de203)=>{_0x243700='paste'===_0x2de203['method'];}),_0x393091['model']['on']('insertContent',(_0x341811,_0x2dba36)=>{if(!_0x243700&&null===_0x31dfbc['getSelectedTableCells']())return;const [_0x1a036a,_0x23ebe3]=_0x2dba36,_0x2a6acc=_0x2dba36[_0x2dba36['length']-0x1];_0x2a6acc&&_0x2a6acc['forceDefaultExecution']||_0x4498a6['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&isPasteTableIntoTable(_0x1a036a,_0x23ebe3,_0x393091['model'],_0xadeb3b,_0x2c663f)&&(_0x341811['stop'](),_0x5ba7e6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x393091['model']['change'](()=>{_0x393091['model']['insertContent'](_0x2dba36[0x0],_0x2dba36[0x1],_0x2dba36[0x2],{'forceDefaultExecution':!0x0});const _0x17a4b6=uid(),{rowInsertionRanges:_0x556766,columnInsertionRanges:_0x5331de,insertionRanges:_0x259a7d,deletionRanges:_0x12c310,cells:_0x1b7742}=_0x5ba7e6;_0x556766['length']&&_0x4498a6['markMultiRangeInsertion'](_0x556766,'tablePasteRow',{'tablePasteChainId':_0x17a4b6}),_0x5331de['length']&&_0x4498a6['markMultiRangeInsertion'](_0x5331de,'tablePasteColumn',{'tablePasteChainId':_0x17a4b6}),_0x259a7d['length']&&(_0x4498a6['markMultiRangeInsertion'](_0x259a7d,'tablePaste',{'tablePasteChainId':_0x17a4b6,'skipNestingCheck':!0x0}),_0x259a7d['forEach'](_0x58a1f7=>_0x58a1f7['detach']?.())),_0x12c310['length']&&(_0x4498a6['markMultiRangeDeletion'](_0x12c310,'tablePaste',{'tablePasteChainId':_0x17a4b6,'skipNestingCheck':!0x0}),_0x12c310['forEach'](_0x5a3095=>_0x5a3095['detach']?.()));const _0xd8e97f=_0x4498a6['markMultiRangeBlockFormat'](_0x1b7742['map'](({element:_0x282c45})=>_0x282c45),{'formatGroupId':uid()},[],'tablePasteCell',{'tablePasteChainId':_0x17a4b6});if(_0xd8e97f){const _0x1e2b93=_0xd8e97f['getMarkers'](),_0x2b641c=[];for(const {element:_0x2b4f98,attributes:_0x4a6ae3}of _0x1b7742){if(!_0x4a6ae3)continue;const _0x1e7441=_0x393091['model']['createRangeOn'](_0x2b4f98),_0x13a892=_0x1e2b93['find'](_0x846fd6=>_0x846fd6['getRange']()['isEqual'](_0x1e7441));_0x13a892&&_0x2b641c['push']([_0x13a892['name'],_0x4a6ae3]);}_0x2b641c['length']&&_0xd8e97f['setAttribute']('markerAttributes',Object['fromEntries'](_0x2b641c));}_0x5ba7e6=null;}));},{'priority':priorities['high']+0xa}),_0xb22c46['on']('contentInsertion',()=>{_0x243700=!0x1;},{'priority':'lowest'}),_0x393091['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x119d1e,_0x4eefd8)=>{const [_0xe06d0d,_0x3846ac,,_0x189c18]=_0x4eefd8;if(!_0x5ba7e6)return;_0x119d1e['stop']();const _0x51ed08=_0xe06d0d['cell'],_0x4e7e23=_0x3846ac,_0x4350a7=isEmpty(_0x51ed08),_0x39487b=isEmpty(_0x4e7e23);_0x119d1e['return']=_0x51ed08;let _0x2eaf3a=null,_0x9ab0d9=null;if(_0x39487b||_0x4350a7){if(_0x4350a7&&!_0x39487b){_0x189c18['remove'](_0x51ed08['getChild'](0x0));for(const _0x250a2e of Array['from'](_0x4e7e23['getChildren']()))_0x189c18['insert'](_0x250a2e,_0x51ed08,'end');const _0x2ac44d=_0x5ba7e6['rowInsertionIndexes']['includes'](_0xe06d0d['row']),_0x232366=_0x5ba7e6['columnInsertionIndexes']['includes'](_0xe06d0d['column']);_0x2ac44d||_0x232366||(_0x2eaf3a=ModelLiveRange['fromRange'](_0x189c18['createRangeIn'](_0x51ed08)));}else _0x39487b&&!_0x4350a7&&(_0x9ab0d9=_0x189c18['createRangeIn'](_0x51ed08));}else{const _0x3c6288=_0x189c18['createElement']('tableCellSuggestion'),_0x2c253c=_0x189c18['createElement']('tableCellSuggestion');_0x189c18['wrap'](_0x189c18['createRangeIn'](_0x51ed08),_0x2c253c),_0x189c18['insert'](_0x3c6288,_0x51ed08,0x0);for(const _0x2d0df5 of Array['from'](_0x4e7e23['getChildren']()))_0x189c18['insert'](_0x2d0df5,_0x3c6288,'end');_0x2eaf3a=ModelLiveRange['fromRange'](_0x189c18['createRangeOn'](_0x3c6288)),_0x9ab0d9=ModelLiveRange['fromRange'](_0x189c18['createRangeOn'](_0x2c253c));}const _0x5a9be5=Array['from'](_0x4e7e23['getAttributes']())['filter'](([_0x5afe85])=>tableCellStyleAttributeNames['includes'](_0x5afe85));_0x5ba7e6['cells']['push']({'element':_0x51ed08,'attributes':_0x5a9be5['length']?Object['fromEntries'](_0x5a9be5):null}),_0x2eaf3a&&_0x5ba7e6['insertionRanges']['push'](_0x2eaf3a),_0x9ab0d9&&_0x5ba7e6['deletionRanges']['push'](_0x9ab0d9);},{'priority':'high'}),_0xadeb3b['on']('insertColumns',(_0x590302,_0x4a0481)=>{const [_0x58b013,_0x3f7735={}]=_0x4a0481;if(!_0x5ba7e6)return;const _0x3375b0=_0x3f7735['at']||0x0,_0x5f58d6=_0x3f7735['columns']||0x1;_0x5ba7e6['columnInsertionIndexes']=new Array(_0x5f58d6)['fill'](_0x3375b0)['map']((_0x480a60,_0x1dd2e9)=>_0x480a60+_0x1dd2e9);for(const {cell:_0x49bfed}of _0xadeb3b['createTableWalker'](_0x58b013,{'startColumn':_0x3375b0,'endColumn':_0x3375b0+_0x5f58d6-0x1}))_0x5ba7e6['columnInsertionRanges']['push'](_0x393091['model']['createRangeOn'](_0x49bfed));},{'priority':'low'}),_0xadeb3b['on']('insertRows',(_0x592643,_0x2edcd0)=>{const [_0x5d6111,_0x1e8940={}]=_0x2edcd0;if(!_0x5ba7e6)return;const _0x53ee80=_0x1e8940['at']||0x0,_0x2943da=_0x1e8940['rows']||0x1;_0x5ba7e6['rowInsertionIndexes']=new Array(_0x2943da)['fill'](_0x53ee80)['map']((_0x460d64,_0x4a50a0)=>_0x460d64+_0x4a50a0);for(const {cell:_0x1e9085}of _0xadeb3b['createTableWalker'](_0x5d6111,{'startRow':_0x53ee80,'endRow':_0x53ee80+_0x2943da-0x1}))_0x5ba7e6['rowInsertionRanges']['push'](_0x393091['model']['createRangeOn'](_0x1e9085));},{'priority':'low'}),_0x4498a6['descriptionFactory']['registerDescriptionCallback'](_0x383ac9=>{if(_0x383ac9['subType']&&_0x383ac9['subType']['startsWith']('tablePaste'))return _0x383ac9['previous']?{}:{'type':'insertion','content':getTranslation$1(_0x393091['locale'],'*Replace\x20table\x20cells*')};});const _0x1f90ec=()=>!0x1;for(const _0x28cad1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4498a6['_suggestionFactory']['registerCustomCallback']('insertion',_0x28cad1,'join',_0x1f90ec),_0x4498a6['_suggestionFactory']['registerCustomCallback']('deletion',_0x28cad1,'join',_0x1f90ec),_0x4498a6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x28cad1,'join',_0x1f90ec);_0x4498a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1f90ec),_0x4498a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3e6716,_0x943710,_0x14333a)=>{const _0x594998=_0x3e6716['map'](_0x271504=>_0x271504['getContainedElement']())['filter'](_0x2ef0b9=>_0x2ef0b9),_0x58cebf=new Map(_0x594998['map'](_0x4bb4ac=>[_0x4bb4ac,null]));if(_0x5ba7e6){for(const {element:_0xfc45f1,attributes:_0x3bc378}of _0x5ba7e6['cells'])_0x3bc378&&_0x58cebf['set'](_0xfc45f1,_0x3bc378);}else{if(_0x14333a&&_0x14333a['markerAttributes'])for(const [_0x1f7675,_0x5db41a]of Object['entries'](_0x14333a['markerAttributes'])){const _0x1b7efc=_0x393091['model']['markers']['get'](_0x1f7675),_0x2719b5=_0x1b7efc?_0x1b7efc['getRange']()['getContainedElement']():null;_0x2719b5&&_0x58cebf['set'](_0x2719b5,_0x5db41a);}}_0x393091['model']['change'](_0x277400=>{for(const [_0xf1722,_0xb72d93]of _0x58cebf)_0x277400['setAttributes']({...tableCellStyleAttributesObject,..._0xb72d93},_0xf1722);});});const _0x26bc4a=(_0x56e47e,_0x30e5e2)=>{_0x4498a6['_suggestionFactory']['registerCustomCallback'](_0x56e47e,'tablePaste',_0x30e5e2,(_0x38124b,_0x40d97d,_0x2b162a)=>{_0x393091['model']['change'](_0x4b53e4=>{const _0x1e74b6=[];for(const _0x5b92b7 of _0x38124b){const _0x4b8eb4=_0x5b92b7['start']['nodeAfter'];_0x4b8eb4['is']('element','tableCellSuggestion')&&_0x1e74b6['push'](_0x4b8eb4);}_0x4498a6['_suggestionFactory']['getSuggestionCallback'](_0x56e47e,null,_0x30e5e2)(_0x38124b,_0x40d97d,_0x2b162a);for(const _0x2b2457 of _0x1e74b6)'$graveyard'!=_0x2b2457['root']['rootName']&&_0x4b53e4['unwrap'](_0x2b2457);});});};_0x26bc4a('insertion','accept'),_0x26bc4a('insertion','discard'),_0x26bc4a('deletion','accept'),_0x26bc4a('deletion','discard'),_0x4498a6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3b71d2=>{const _0x26cc70=_0x3b71d2['map'](_0x1c1aa1=>_0x1c1aa1['getContainedElement']()),_0x2e00c4=_0x26cc70[0x0]['findAncestor']('table'),{minRow:_0x43eeb0,maxRow:_0x28cded}=_0xdb1451['_getCoordsForCells'](_0x26cc70);_0xadeb3b['removeRows'](_0x2e00c4,{'at':_0x43eeb0,'rows':_0x28cded-_0x43eeb0+0x1});}),_0x4498a6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4f0ca4=>{const _0x3fa30d=_0x4f0ca4['map'](_0x4ca629=>_0x4ca629['getContainedElement']()),_0x4611ed=_0x3fa30d[0x0]['findAncestor']('table'),{minColumn:_0x89ef7e,maxColumn:_0x38bb01}=_0xdb1451['_getCoordsForCells'](_0x3fa30d);_0xadeb3b['removeColumns'](_0x4611ed,{'at':_0x89ef7e,'columns':_0x38bb01-_0x89ef7e+0x1});});const _0x21a6b8=(_0x37ecf8,_0x34d3b4)=>{if(!_0x34d3b4['subType']||!_0x34d3b4['subType']['startsWith']('tablePaste'))return;const _0x83844d=_0x34d3b4['attributes']['tablePasteChainId'],_0x2a028e=_0x4498a6['getSuggestions']()['filter'](_0x3aa37d=>_0x3aa37d['isInContent']&&_0x3aa37d['attributes']&&_0x3aa37d['attributes']['tablePasteChainId']==_0x83844d);_0x2a028e['length']&&_0x34d3b4['getAllAdjacentSuggestions']()['length']!=_0x2a028e['length']&&_0x2a028e['reduce']((_0x2fbe86,_0x8da237)=>(_0x2fbe86['next']=_0x8da237,_0x8da237['previous']=_0x2fbe86,_0x8da237));};function _0x422d32(_0x3f1384,_0x43d60a=!0x0){const {id:_0x17346b,authorId:_0xe55a13}=_0x4498a6['_splitMarkerName'](_0x3f1384['markerName']),_0x3b4633=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x166f49=_0x4498a6['activeMarkers']['includes'](_0x3f1384['markerName']);return _0x166f49&&_0x3b4633['push']('ck-suggestion-marker--active'),{'classes':_0x3b4633,'attributes':{'data-suggestion':_0x17346b,'data-author-id':_0xe55a13},'priority':_0x166f49&&_0x43d60a?0xbc2:0xbb8};}_0x4498a6['on']('suggestionLoaded',_0x21a6b8,{'priority':'high'}),_0x4498a6['on']('suggestionUnloaded',_0x21a6b8,{'priority':'high'}),_0x393091['model']['document']['registerPostFixer'](()=>{let _0x3cd2f8=!0x1;const _0x1d1a2b=Array['from'](_0x393091['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5fed85,data:_0x2fa0b9}of _0x1d1a2b){const {group:_0x3e147c,type:_0x56ffbb,id:_0x250313}=_0x4498a6['_splitMarkerName'](_0x5fed85);if('suggestion'!=_0x3e147c||'deletion'!=_0x56ffbb||_0x2fa0b9['oldRange'])continue;if(!_0x4498a6['hasSuggestion'](_0x250313))continue;const _0x56e254=_0x4498a6['getSuggestion'](_0x250313)['getRanges'](),_0x4e70c1=_0x393091['plugins']['get']('Users')['me'];for(const _0x56b190 of _0x4498a6['getSuggestions']()){if(!_0x56b190['isInContent']||_0x56b190['author']!=_0x4e70c1)continue;if('formatBlock'!=_0x56b190['type']||'tablePasteCell'!=_0x56b190['subType'])continue;if(_0x56b190['getRanges']()['every'](_0x5732f3=>_0x56e254['some'](_0x2ad60a=>_0x2ad60a['containsRange'](_0x5732f3,!0x0)))){for(const _0x1ed82d of _0x56b190['getAllAdjacentSuggestions']())_0x1ed82d['isInContent']&&(_0x1ed82d['discard'](),_0x3cd2f8=!0x0);}}}return _0x3cd2f8;}),_0x393091['model']['document']['registerPostFixer'](_0x54f75f=>{const _0x40ff9f=_0x393091['commands']['get']('redo');if(!_0x40ff9f||!_0x40ff9f['_createdBatches']['has'](_0x54f75f['batch']))return!0x1;let _0x23d458=!0x1;const _0x5b2f2a=_0x393091['plugins']['get']('Users')['me'],_0xf718b2=_0x393091['model']['document']['differ']['getChanges'](),_0x3dbbe6=Array['from'](_0x393091['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x16a6a0,data:_0x44078b})=>{const {group:_0x207abf,subType:_0x5ac428,authorId:_0xa0e0c6}=_0x4498a6['_splitMarkerName'](_0x16a6a0);return'suggestion'==_0x207abf&&'tablePaste'==_0x5ac428&&_0xa0e0c6==_0x5b2f2a['id']&&!_0x44078b['oldRange'];});for(const _0x58c53d of _0xf718b2){if('insert'!=_0x58c53d['type']||'tableCellSuggestion'!=_0x58c53d['name']||0x1!=_0x58c53d['length'])continue;const _0x3e096c=_0x54f75f['createRange'](_0x58c53d['position'],_0x58c53d['position']['getShiftedBy'](0x1)),_0xc17776=_0x3dbbe6['find'](({data:_0x7fbd2f})=>_0x7fbd2f['newRange']['isEqual'](_0x3e096c));if(!_0xc17776){for(const {name:_0x214131,data:_0x837f9c}of _0x3dbbe6)if(_0x3e096c['containsRange'](_0x837f9c['newRange'])){_0x54f75f['updateMarker'](_0x214131,{'range':_0x3e096c}),_0x23d458=!0x0;break;}}}return _0x23d458;}),_0x393091['model']['document']['registerPostFixer'](_0x3c6bb9=>{let _0x4eb850=!0x1;const _0x26a2dc=_0x393091['plugins']['get']('Users')['me'],_0x2f5d6d=_0x4498a6['getSuggestions']()['filter'](_0x397331=>_0x397331['isInContent']&&_0x397331['author']==_0x26a2dc),_0x599f45=new Set(),_0x1a2545=new Set();for(const _0x1f68de of _0x2f5d6d)if('tablePaste'==_0x1f68de['subType'])for(const _0x21bdeb of _0x1f68de['getMarkers']()){const _0x5c82c8=_0x21bdeb['getRange']()['getContainedElement']();if(_0x5c82c8){if(_0x5c82c8['is']('element','tableCellSuggestion')&&isEmpty(_0x5c82c8)){_0x1f68de['removeMarker'](_0x21bdeb['name']),_0x599f45['add'](_0x5c82c8),_0x4eb850=!0x0;const _0x129f24=_0x5c82c8['nextSibling'],_0x4de0c7=_0x5c82c8['previousSibling'],_0x49fab6=_0x129f24&&_0x129f24['is']('element','tableCellSuggestion'),_0x5d9751=_0x4de0c7&&_0x4de0c7['is']('element','tableCellSuggestion');_0x49fab6&&!_0x599f45['has'](_0x129f24)&&_0x1a2545['add'](_0x129f24),_0x5d9751&&!_0x599f45['has'](_0x4de0c7)&&_0x1a2545['add'](_0x4de0c7);}else _0x5c82c8['is']('element','paragraph')&&_0x5c82c8['isEmpty']&&(_0x1f68de['removeMarker'](_0x21bdeb['name']),_0x4eb850=!0x0);}}else{if('tablePasteCell'==_0x1f68de['subType']){if(!_0x1f68de['attributes']||!_0x1f68de['attributes']['tablePasteChainId'])continue;const _0x20167f=_0x1f68de['attributes']['markerAttributes'];if(_0x20167f&&Object['keys'](_0x20167f)['length'])continue;const _0x47ca75=_0x1f68de['attributes']['tablePasteChainId'];let _0x42161c=!0x0,_0x466517=!0x0;for(const _0x270ef8 of _0x2f5d6d)if(_0x270ef8['subType']&&_0x270ef8['subType']['startsWith']('tablePaste')){if(!_0x270ef8['attributes']['tablePasteChainId']){_0x466517=!0x1;break;}if(_0x270ef8['id']!=_0x1f68de['id']&&_0x270ef8['attributes']['tablePasteChainId']==_0x47ca75){_0x42161c=!0x1;break;}}_0x466517&&_0x42161c&&(_0x1f68de['removeMarkers'](),_0x4eb850=!0x0);}}for(const _0x236b01 of _0x599f45)_0x3c6bb9['remove'](_0x236b01);for(const _0x5efb76 of _0x1a2545)_0x3c6bb9['unwrap'](_0x5efb76);return _0x4eb850;}),_0x393091['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2884a2=>_0x422d32(_0x2884a2),'converterPriority':'high'}),_0x393091['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x43c19a,_0x3570a9)=>_0x3570a9['options']['showSuggestionHighlights']?_0x422d32(_0x43c19a,!0x1):null,'converterPriority':'high'});const _0x3362ec=_0x393091['editing']['view'];this['listenTo'](_0x3362ec['document'],'clipboardOutput',(_0x4251cc,_0x3b7540)=>{const _0x40b5b1=[];for(const _0x1a90e1 of _0x3362ec['createRangeIn'](_0x3b7540['content'])['getItems']())_0x1a90e1['is']('element','suggestion-td')&&_0x40b5b1['push'](_0x1a90e1);_0x3362ec['change'](_0x337862=>{for(const _0x5c006e of _0x40b5b1)_0x337862['move'](_0x337862['createRangeIn'](_0x5c006e),_0x337862['createPositionBefore'](_0x5c006e)),_0x337862['remove'](_0x5c006e);});});}}function isEmpty(_0xc22b63){if(_0xc22b63['isEmpty'])return!0x0;const _0x3ec516=_0xc22b63['getChild'](0x0);return _0x3ec516['is']('element','paragraph')&&_0x3ec516['isEmpty'];}function isPasteTableIntoTable(_0x573618,_0x871021,_0x154b33,_0x4b9510,_0xec9cee){if(_0x871021&&!_0x871021['is']('documentSelection'))return!0x1;const _0x52bfb2=_0xec9cee['getTableIfOnlyTableInContent'](_0x573618,_0x154b33);if(!_0x52bfb2||!isPlainTable(_0x52bfb2,void 0x0,_0x4b9510))return!0x1;const _0x201d9d=_0x4b9510['getSelectionAffectedTableCells'](_0x154b33['document']['selection']);if(!_0x201d9d['length'])return!0x1;const _0x163c1e=_0x201d9d[0x0]['findAncestor']('table'),_0x55c16e=_0x4b9510['getRowIndexes'](_0x201d9d),_0x47489b=_0x4b9510['getColumnIndexes'](_0x201d9d),_0x5a5e0a={'startRow':_0x55c16e['first'],'endRow':_0x55c16e['last'],'startColumn':_0x47489b['first'],'endColumn':_0x47489b['last']};return 0x1==_0x201d9d['length']&&(_0x5a5e0a['endRow']+=_0x4b9510['getRows'](_0x52bfb2)-0x1,_0x5a5e0a['endColumn']+=_0x4b9510['getColumns'](_0x52bfb2)-0x1),isPlainTable(_0x163c1e,_0x5a5e0a,_0x4b9510);}function isPlainTable(_0x5228df,_0x2168ac={},_0x5adadc){for(const {isAnchor:_0x10b01f,cellHeight:_0x4b392e,cellWidth:_0x3bede7}of _0x5adadc['createTableWalker'](_0x5228df,{'includeAllSlots':!0x0,..._0x2168ac}))if(!_0x10b01f||0x1!=_0x4b392e||0x1!=_0x3bede7)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x96edd=this['editor']['plugins']['get']('TrackChangesEditing');_0x96edd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x96edd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x96edd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x96edd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x96edd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x96edd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x388a0f,_0x11e2b7){const _0x4c86b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26d685=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x59c616=_0x11e2b7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x22f7dc=_0x26d685['getColumnGroupElement'](_0x59c616);let _0x4c0212=_0x22f7dc?_0x26d685['getTableColumnsWidths'](_0x22f7dc):null,_0x5843ce=_0x59c616['getAttribute']('tableWidth')||null;const _0x5b82a8=_0x11e2b7['tableWidth']||_0x5843ce,_0x5e4ac9=_0x11e2b7['columnWidths']||_0x4c0212,_0x2e6ef9=this['editor']['plugins']['get']('Users')['me'];for(const _0x38e8c2 of _0x4c86b7['getSuggestions']()){const _0x1af5ce=_0x38e8c2['getContainedElement']();if('resizeTable'===_0x38e8c2['subType']&&_0x1af5ce===_0x59c616){_0x38e8c2['author']!==_0x2e6ef9&&_0x38e8c2['discard']();const _0x2600d5=_0x38e8c2['data']['commandParams'];_0x5843ce=_0x2600d5[0x0]['tableWidth'],_0x4c0212=_0x2600d5[0x0]['columnWidths'];break;}}_0x388a0f({'table':_0x59c616,'tableWidth':_0x5b82a8,'columnWidths':_0x5e4ac9}),_0x4c86b7['markBlockFormat'](_0x59c616,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5843ce,'columnWidths':_0x4c0212}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2b374d){if('formatBlock'!=_0x2b374d['type']&&'formatInline'!=_0x2b374d['type'])return;const {data:_0x15ab5e}=_0x2b374d;if(_0x15ab5e&&'resizeTable'===_0x15ab5e['formatGroupId']){const _0x44ebab='*Format:*\x20resize\x20table';return{'type':'format','content':getTranslation$1(this['editor']['locale'],_0x44ebab)};}}}class TrackChangesTemplate extends Plugin{['afterInit'](){const _0x2d427b=this['editor'];_0x2d427b['plugins']['has']('Template')&&_0x2d427b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends Plugin{['afterInit'](){const _0x1e21eb=this['editor'];if(!_0x1e21eb['commands']['get']('insertTableOfContents'))return;_0x1e21eb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1856f7=_0x1e21eb['plugins']['get']('TrackChangesEditing'),_0x581332=_0x1e21eb['locale'];_0x1856f7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5c02fc=>getTranslation$1(_0x581332,'ELEMENT_TABLE_OF_CONTENTS',_0x5c02fc));}}class TrackChangesTitle extends Plugin{['afterInit'](){const _0x214bd1=this['editor'];if(!_0x214bd1['plugins']['has']('Title'))return;const _0x3fac3c=_0x214bd1['plugins']['get']('TrackChangesEditing');_0x3fac3c['descriptionFactory']['registerElementLabel']('title-content',()=>getTranslation$1(_0x214bd1['locale'],'ELEMENT_TITLE')),_0x214bd1['model']['document']['registerPostFixer'](_0x1c2eea=>{let _0x138d33=!0x1;const _0x1a577f=Array['from'](_0x214bd1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1eb93a,data:_0x119cb9}of _0x1a577f){const {group:_0x180d15}=_0x3fac3c['_splitMarkerName'](_0x1eb93a);if('suggestion'!==_0x180d15||!_0x119cb9['newRange'])continue;const _0x2ca2dd=_0x119cb9['newRange'],_0x318ecc=_0x2ca2dd['end']['nodeBefore'];if(!_0x318ecc||!_0x318ecc['is']('element','title-content'))continue;if(!_0x2ca2dd['start']['isTouching'](_0x2ca2dd['end']))continue;const _0x3e4d6e=_0x214bd1['model']['schema']['getNearestSelectionRange'](_0x2ca2dd['end'],'forward');if(_0x3e4d6e&&_0x3e4d6e['isCollapsed']){const _0x3354ae=_0x1c2eea['createRange'](_0x2ca2dd['start'],_0x3e4d6e['start']);_0x3354ae['isEqual'](_0x2ca2dd)||(_0x1c2eea['updateMarker'](_0x1eb93a,{'range':_0x3354ae}),_0x138d33=!0x0);}_0x138d33||(_0x1c2eea['removeMarker'](_0x1eb93a),_0x138d33=!0x0);}return _0x138d33;});}}class TrackChangesUploadcare extends Plugin{['afterInit'](){const _0x15b30d=this['editor'],_0x5dad24=_0x15b30d['plugins']['get']('TrackChangesEditing');_0x15b30d['plugins']['has']('Uploadcare')&&(_0x5dad24['enableCommand']('uploadcare'),_0x15b30d['plugins']['has']('UploadcareImageEdit')&&(_0x5dad24['enableCommand']('uploadcareImageEdit'),_0x5dad24['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5dad24['descriptionFactory']['registerDescriptionCallback'](_0x2aef52=>{if('attribute'!=_0x2aef52['type'])return;const {data:_0x4c44e3}=_0x2aef52;return _0x4c44e3&&'uploadcareImageId'==_0x4c44e3['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends Plugin{['afterInit'](){const _0x4edfe1=this['editor'],_0x58f21d=_0x4edfe1['plugins']['get']('TrackChangesEditing');_0x4edfe1['plugins']['has']('UndoEditing')&&(_0x58f21d['enableCommand']('undo'),_0x58f21d['enableCommand']('redo'));}}class TrackChangesTableCaption extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x56fab2=this['editor'];if(!_0x56fab2['plugins']['has']('TableCaptionEditing'))return;_0x56fab2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends Plugin{['tableProperties'];['tableCellProperties'];constructor(_0x4b87c6){super(_0x4b87c6),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x4b87c6['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 _0x129310=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x224873 of this['tableProperties'])_0x129310['enableCommand'](_0x224873,(_0x3d7c8a,_0x5a4e6d)=>{const _0x22eda4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x224873,[_0x22eda4],this['tableProperties'],'tableProperties',_0x3d7c8a,_0x5a4e6d);});_0x129310['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x129310['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x129310['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4aa1e7,_0x38d6fd)=>this['handleDiscardAction'](this['tableProperties'],_0x4aa1e7,_0x38d6fd)),_0x129310['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1819e0 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1819e0)&&_0x129310['enableCommand'](_0x1819e0,(_0x3cc455,_0x113a42)=>{const _0x1c7d21=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1819e0,_0x1c7d21,this['tableCellProperties'],'tableCellProperties',_0x3cc455,_0x113a42);});_0x129310['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x129310['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x129310['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1d6712,_0x59891d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1d6712,_0x59891d)),_0x129310['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x129310['descriptionFactory']['registerAttributeLabel']('tableCellType',getTranslation$1(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x129310['descriptionFactory']['registerDescriptionCallback'](_0x497ae6=>this['handleSuggestionDescription'](_0x497ae6)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x448b52,_0x8ee353,_0xe492d2,_0x5157f6,_0x30823d,_0x3cb86a){const _0x4849a2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3cb86a['batch'],()=>{for(const _0x24551a of _0x8ee353){if(this['_getSuggestion'](_0x24551a,_0x5157f6))_0x30823d(_0x3cb86a);else{const _0x184b55={};for(const _0x4ad916 of _0xe492d2){const _0x284f84=_0x24551a['getAttribute'](_0x4ad916);void 0x0!==_0x284f84&&(_0x184b55[_0x4ad916]=_0x284f84);}_0x30823d(_0x3cb86a),_0x4849a2['markBlockFormat'](_0x24551a,{'commandParams':[_0x184b55]},[],_0x5157f6);}}});}['handleDiscardAction'](_0x25c2b2,_0x4e4f04,_0x29b8ac){const _0xcd5a6=_0x4e4f04[0x0]['start']['nodeAfter'],_0x37e110=_0x29b8ac['commandParams'][0x0];this['editor']['model']['change'](_0x1d470b=>{for(const _0x93bd04 of _0x25c2b2)void 0x0!==_0x37e110[_0x93bd04]?_0x1d470b['setAttribute'](_0x93bd04,_0x37e110[_0x93bd04],_0xcd5a6):_0x1d470b['removeAttribute'](_0x93bd04,_0xcd5a6);});}['handleSuggestionDescription'](_0x28be91){if(_0x28be91['data'])switch(_0x28be91['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'](_0x41dfcf,_0x465650){const _0x13eecc=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5ef5e9 of _0x13eecc['getSuggestions']({'skipNotAttached':!0x0})){const _0x508720=_0x5ef5e9['getContainedElement']();if(_0x5ef5e9['subType']===_0x465650&&_0x508720===_0x41dfcf)return _0x5ef5e9;}return null;}['_registerTablePropertiesAttributes'](){const _0x32b1b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15d733=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2fcd45 of _0x15d733){const _0x2241c0=_0x2fcd45['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x32b1b2['descriptionFactory']['registerAttributeLabel'](_0x2fcd45,getTranslation$1(this['editor']['locale'],'FORMAT_'+_0x2241c0));}}}class TrackChangesLineHeight extends Plugin{['afterInit'](){const _0x29f17c=this['editor'];if(!_0x29f17c['plugins']['has']('LineHeight'))return;const _0x28a1fb=_0x29f17c['plugins']['get']('TrackChangesEditing'),_0x1d8b21=_0x29f17c['locale'];_0x28a1fb['enableDefaultAttributesIntegration']('lineHeight'),_0x28a1fb['descriptionFactory']['registerAttributeLabel']('lineHeight',getTranslation$1(_0x1d8b21,'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(_0x1f2eeb){super(_0x1f2eeb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4ef6e8,_0x45ab1d,_0x183473,_0xcd052f)=>{this['_model']['change'](()=>{for(const _0x1fb83e of[..._0xcd052f,..._0x183473])this['_model']['markers']['has'](_0x1fb83e)&&_0x1f2eeb['editing']['reconvertMarker'](_0x1fb83e);});}),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']=_0x1f2eeb['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1f2eeb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1f2eeb['config']['get']('trackChanges.trackFormatChanges'),_0x1f2eeb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1f2eeb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x1f2eeb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4f3946=this['editor'];_0x4f3946['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1e5924,{writer:_0x3aab3f})=>{let _0x134a00='suggestion:'+_0x1e5924['getAttribute']('suggestion-type')+':'+_0x1e5924['getAttribute']('id');return _0x1e5924['getAttribute']('marker-count')&&(_0x134a00+=':'+_0x1e5924['getAttribute']('marker-count')),_0x3aab3f['createElement']('$marker',{'data-name':_0x134a00});}}),_0x4f3946['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4f3946['model']['document']['registerPostFixer'](_0x5ef640=>{let _0x3ce877=!0x1;const _0x2e21fa=Array['from'](_0x4f3946['model']['document']['differ']['getChangedMarkers']()),_0x529540=new Set();for(const {name:_0x5cee8b,data:_0x363ac}of _0x2e21fa){const {group:_0x15760b,type:_0x910683,subType:_0x4f9a96,id:_0x3f43a3}=this['_splitMarkerName'](_0x5cee8b);if('suggestion'!==_0x15760b)continue;const _0x5213f0=_0x4f9a96?'suggestion:'+_0x910683+':'+_0x4f9a96+':'+_0x3f43a3:'suggestion:'+_0x910683+':'+_0x3f43a3,_0x5c927a=_0x4f3946['model']['markers']['getMarkersGroup'](_0x5213f0),_0x4cd1ea=_0x4f3946['model']['markers']['get'](_0x5cee8b),_0xbd9afb=this['_suggestions']['get'](_0x3f43a3);if(null!=_0x363ac['newRange']){'formatInline'==_0x910683&&(_0x3ce877=_0x3ce877||trimFormatInlineSuggestionRange(_0x363ac['newRange'],_0x5cee8b,_0x5ef640,_0x4f3946['model']['schema']));const _0x4e7ea2='attribute'==_0x910683&&this['_isBlockAttribute'](_0x4f9a96['split']('|')[0x0]),_0x11ca7f='attribute'==_0x910683&&this['_isInlineAttribute'](_0x4f9a96['split']('|')[0x0]);if(_0x363ac['newRange']['isCollapsed']||'$graveyard'==_0x363ac['newRange']['root']['rootName']||'formatBlock'==_0x910683&&!isCorrectFormatBlockSuggestionRange(_0x363ac['newRange'])||_0x4e7ea2&&!isCorrectFormatBlockSuggestionRange(_0x363ac['newRange'])||_0x11ca7f&&isEmptyRange(_0x363ac['newRange'])||'deletion'==_0x910683&&isEmptyRange(_0x363ac['newRange'])||_0x4cd1ea&&isIntersectingWithOtherMarkers(_0x4cd1ea,_0x5c927a))_0x5ef640['removeMarker'](_0x5cee8b),_0x3ce877=!0x0;else{if(!_0xbd9afb||!_0xbd9afb['isInContent'])continue;if(_0x363ac['newRange']&&_0x363ac['oldRange']&&_0x363ac['newRange']['isEqual'](_0x363ac['oldRange']))continue;_0x529540['add'](_0xbd9afb);}}}return _0x529540['size']>0x0&&(_0x3ce877=!!this['_joinWithAdjacentSuggestions'](_0x529540)||_0x3ce877),_0x3ce877;}),_0x4f3946['model']['document']['registerPostFixer'](_0x47f80b=>{let _0x371ce3=!0x1;for(const _0x4863e2 of _0x4f3946['model']['document']['differ']['getChanges']())if('insert'==_0x4863e2['type'])for(const _0x477722 of this['_suggestions']['values']()){if(_0x477722['isMultiRange']||!_0x477722['isInContent'])continue;const _0x5a86cb='formatBlock'==_0x477722['type'],_0x51b363=this['_getAttributeKey'](_0x477722),_0x2f5b0b=_0x51b363&&this['_isBlockAttribute'](_0x51b363);if(!_0x5a86cb&&!_0x2f5b0b)continue;const _0x43d4a4=_0x477722['getFirstRange']();if(_0x43d4a4['start']['parent']!=_0x43d4a4['end']['parent']&&!_0x43d4a4['end']['isAtEnd']){const _0x62ec1b=_0x4f3946['model']['createPositionAt'](_0x43d4a4['start']['nodeAfter'],'end'),_0x10221e=_0x4f3946['model']['createRange'](_0x43d4a4['start'],_0x62ec1b);_0x47f80b['updateMarker'](_0x477722['getFirstMarker'](),{'range':_0x10221e}),_0x371ce3=!0x0;}}return _0x371ce3;}),_0x4f3946['model']['document']['registerPostFixer'](_0x869a5e=>this['_processAttributeChanges'](_0x869a5e)),_0x4f3946['model']['document']['registerPostFixer'](_0x268c74=>!_0x268c74['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x268c74)),_0x4f3946['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4f3946['model']['document']['on']('change:data',(_0x292a6f,_0x423e09)=>{if(!_0x423e09['isLocal']||_0x423e09['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x43a259=_0x4f3946['model']['document']['differ']['getChanges']();if(0x0==_0x43a259['length'])return;const _0x1e033f=[],_0x3ce843=_0x43a259['filter'](_0x17457a=>'attribute'==_0x17457a['type']),_0x51d3d9=_0x43a259['filter'](_0x55e403=>'insert'==_0x55e403['type']&&'$text'!=_0x55e403['name']);for(const _0x2a41d2 of _0x3ce843)this['_isRegisteredAttribute'](_0x2a41d2['attributeKey'])&&_0x1e033f['push']({'key':_0x2a41d2['attributeKey'],'newValue':_0x2a41d2['attributeNewValue'],'oldValue':_0x2a41d2['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x2a41d2['range'],_0x4f3946['model'])});for(const _0x28db32 of _0x51d3d9){if('rename'!=_0x28db32['action']&&'refresh'!=_0x28db32['action'])continue;const _0x214661=createBlockFormatRangeForElement(_0x28db32['position']['nodeAfter'],_0x4f3946['model']),_0xb0428f=_0x28db32['before'];'rename'==_0x28db32['action']&&_0x1e033f['push']({'key':renameAttributeKey,'newValue':_0x28db32['name'],'oldValue':_0xb0428f['name'],'range':_0x214661});for(const [_0x466438,_0x3dca35]of _0xb0428f['attributes']){if(!this['_isRegisteredAttribute'](_0x466438))continue;const _0x2e1362=_0x28db32['attributes']['get'](_0x466438);_0x3dca35!==_0x2e1362&&_0x1e033f['push']({'key':_0x466438,'newValue':_0x2e1362,'oldValue':_0x3dca35,'range':_0x214661});}for(const [_0x30a6fa,_0x17b54e]of _0x28db32['attributes'])this['_isRegisteredAttribute'](_0x30a6fa)&&(_0xb0428f['attributes']['has'](_0x30a6fa)||_0x1e033f['push']({'key':_0x30a6fa,'newValue':_0x17b54e,'oldValue':null,'range':_0x214661}));}0x0!=_0x1e033f['length']&&_0x4f3946['model']['enqueueChange'](_0x423e09,_0x4fc629=>{const _0x4fa420=uid();for(const {range:_0x34e605,key:_0x453228,oldValue:_0x4d65d9,newValue:_0x14fb84}of _0x1e033f)this['markAttributeChange'](_0x34e605,_0x453228,_0x4d65d9,_0x14fb84,{'groupId':_0x4fa420});this['_reduceExistingSuggestions'](_0x4fc629,_0x1e033f);});},{'priority':'lowest'}),_0x4f3946['model']['markers']['on']('update:suggestion',(_0x432ffd,_0x310fac,_0x4bd0ea)=>{if(null==_0x4bd0ea){const {id:_0x501f25}=this['_splitMarkerName'](_0x310fac['name']),_0x18645e=this['_suggestions']['get'](_0x501f25);_0x18645e&&_0x18645e['addMarkerName'](_0x310fac['name']);}}),_0x4f3946['model']['document']['on']('change:data',()=>{const _0x39fd1f=Array['from'](_0x4f3946['model']['document']['differ']['getChangedMarkers']())['filter'](_0x54f81d=>'suggestion'===this['_splitMarkerName'](_0x54f81d['name'])['group']);if(0x0===_0x39fd1f['length'])return;_0x39fd1f['sort']((_0x323b86,_0x56b626)=>{const _0x40e542=_0x323b86['data']['oldRange'],_0x3bdc9e=_0x56b626['data']['oldRange'];return null===_0x40e542&&null===_0x3bdc9e?0x0:null===_0x40e542&&null!==_0x3bdc9e?-0x1:null!==_0x40e542&&null===_0x3bdc9e?0x1:_0x40e542['start']['isBefore'](_0x3bdc9e['start'])?-0x1:0x1;});const _0x10ea73=new Set(),_0x2ec2f7=new Set();for(const {name:_0x3a843f,data:_0x583cec}of _0x39fd1f){const {id:_0x549ba6}=this['_splitMarkerName'](_0x3a843f);if(null===_0x583cec['oldRange']){const _0x31d522=this['_handleNewSuggestionMarker'](_0x3a843f);_0x2ec2f7['add'](_0x31d522);}else{const _0x4533e4=this['_suggestions']['get'](_0x549ba6);null!==_0x583cec['newRange']||_0x4533e4['isInContent']?(_0x10ea73['add'](_0x4533e4['head']),_0x2ec2f7['add'](_0x4533e4)):this['_removeSuggestion'](_0x4533e4);}}_0x2ec2f7['size']>0x0&&this['_refreshSuggestionsChain'](_0x2ec2f7);for(const _0x2a9c17 of _0x10ea73)this['fire']('suggestionChanged',_0x2a9c17);}),_0x4f3946['model']['on']('applyOperation',(_0x19af86,_0xd48291)=>{const _0x62f2f3=_0xd48291[0x0];if(!this['_suggestions']['size'])return;if(!_0x62f2f3['isDocumentOperation'])return;if(_0x62f2f3['batch']['isUndo']||!_0x62f2f3['batch']['isLocal'])return;let _0x431693,_0x362543;switch(_0x62f2f3['type']){case'insert':_0x431693=_0x4f3946['model']['createPositionAt'](_0x62f2f3['position']),_0x362543=_0x431693['getShiftedBy'](_0x62f2f3['howMany']);break;case'split':_0x431693=_0x4f3946['model']['createPositionAt'](_0x62f2f3['splitPosition']),_0x362543=_0x4f3946['model']['createPositionAt'](_0x62f2f3['moveTargetPosition']);break;case'move':_0x431693=_0x4f3946['model']['createPositionAt'](_0x62f2f3['targetPosition']),_0x362543=_0x431693['getShiftedBy'](_0x62f2f3['howMany']);break;default:return;}const _0x2b799a=_0x4f3946['model']['createRange'](_0x431693,_0x362543);_0x4f3946['model']['change'](()=>{for(const {suggestion:_0x561624,meta:_0x23dbdc}of this['_findSuggestions'](_0x2b799a)){if(_0x561624['isMultiRange'])continue;if('formatInline'==_0x561624['type'])continue;const _0x116fbd=this['_getAttributeKey'](_0x561624);if(_0x116fbd&&this['_isBlockAttribute'](_0x116fbd)&&'split'!=_0x62f2f3['type'])continue;const _0x3fec6f=_0x561624['data']&&_0x561624['data']['multipleBlocks'];('formatBlock'!=_0x561624['type']||'split'==_0x62f2f3['type']&&!_0x3fec6f)&&(_0x23dbdc['containsRangeInObject']||'insertion'==_0x561624['type']&&_0x23dbdc['isOwn']||_0x561624['getFirstRange']()['containsRange'](_0x2b799a)&&this['_breakSuggestionMarker'](_0x561624,_0x431693,_0x362543));}});},{'priority':'lowest'}),_0x4f3946['model']['on']('deleteContent',(_0x8c19a4,_0x3ff579)=>{const _0x51b326=_0x3ff579[0x0],_0x23b139=_0x3ff579[0x1];if(_0x23b139&&_0x23b139['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x51b326['isCollapsed'])return;const _0x4fbc41=_0x4f3946['model']['schema'],{start:_0x4b0956,end:_0xc39f7a}=_0x51b326['getFirstRange'](),_0x494ab7=_0x4b0956['nodeAfter']&&_0x4fbc41['isLimit'](_0x4b0956['nodeAfter'])?null:_0x4fbc41['getNearestSelectionRange'](_0x4b0956,'forward'),_0x4bf11c=_0xc39f7a['nodeBefore']&&_0x4fbc41['isLimit'](_0xc39f7a['nodeBefore'])?null:_0x4fbc41['getNearestSelectionRange'](_0xc39f7a,'backward'),_0x37495b=_0x4f3946['model']['createRange'](_0x494ab7?_0x494ab7['start']:_0x4b0956,_0x4bf11c?_0x4bf11c['end']:_0xc39f7a);_0x4f3946['model']['change'](_0x464a10=>{this['markDeletion'](_0x37495b);const _0x58c72f=_0x4f3946['model']['schema']['getNearestSelectionRange'](_0x37495b['start']);_0x51b326['is']('documentSelection')?_0x464a10['setSelection'](_0x58c72f):_0x51b326['setTo'](_0x58c72f);}),_0x8c19a4['stop']();},{'priority':priorities['normal']+0xa}),_0x4f3946['model']['on']('insertContent',(_0x46d1ef,_0x304b76)=>{const _0x395f05=_0x304b76[_0x304b76['length']-0x1];_0x395f05&&_0x395f05['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4f3946['model']['change'](()=>{let _0x54a43c=_0x4f3946['model']['insertContent'](_0x304b76[0x0],_0x304b76[0x1],_0x304b76[0x2],{'forceDefaultExecution':!0x0});if(!_0x54a43c)return;_0x46d1ef['return']=_0x54a43c['clone']();const _0x1a4d09=_0x54a43c['end']['nodeBefore'],_0x436eb8=_0x4f3946['model']['schema'];_0x1a4d09&&_0x436eb8['isBlock'](_0x1a4d09)&&!_0x436eb8['isObject'](_0x1a4d09)&&(_0x54a43c=_0x4f3946['model']['createRange'](_0x54a43c['start'],_0x4f3946['model']['createPositionAt'](_0x1a4d09,'end'))),this['markInsertion'](_0x54a43c);}),_0x46d1ef['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5275de=new AcceptSuggestionCommand(_0x4f3946,this['_suggestions']);_0x4f3946['commands']['add']('acceptSuggestion',_0x5275de),this['enableCommand']('acceptSuggestion');const _0x24769e=new DiscardSuggestionCommand(_0x4f3946,this['_suggestions']);_0x4f3946['commands']['add']('discardSuggestion',_0x24769e),this['enableCommand']('discardSuggestion'),_0x4f3946['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x4f3946,_0x5275de,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4f3946['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x4f3946,_0x24769e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4f3946['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x4f3946,_0x5275de,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4f3946['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x4f3946,_0x24769e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x42dc45=_0x4f3946['plugins']['get']('CommentsRepository');this['listenTo'](_0x42dc45,'addComment',(_0x218a1f,{threadId:_0x301e63})=>{const _0x1db4a4=this['_suggestions']['get'](_0x301e63);_0x1db4a4&&_0x1db4a4['commentThread']&&0x1===_0x1db4a4['commentThread']['length']&&this['_updateSuggestionData'](_0x301e63,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x42dc45,'removeComment',(_0x362739,{threadId:_0x4d502e})=>{const _0x426f8f=this['_suggestions']['get'](_0x4d502e);_0x426f8f&&_0x426f8f['commentThread']&&!_0x426f8f['commentThread']['length']&&this['_updateSuggestionData'](_0x4d502e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){checkLicense$1(this);}set['adapter'](_0x1e1e67){if(this['_adapter'])throw new CKEditorError('track-changes-adapter-already-set',this);this['_adapter']=_0x1e1e67;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x461782=!0x1,toJSON:_0x55d858=!0x1}={}){const _0xf62748=[];for(const _0xfeee75 of this['_suggestions']['values']())_0x461782&&!_0xfeee75['isInContent']||_0xf62748['push'](_0xfeee75);return _0x55d858?_0xf62748['map'](_0x28e4ad=>_0x28e4ad['toJSON']()):_0xf62748;}['getSuggestion'](_0x4c6bfa){const _0x525445=this['_suggestions']['get'](_0x4c6bfa);if(!_0x525445)throw new CKEditorError('track-changes-suggestion-not-found',this);return _0x525445;}['hasSuggestion'](_0x4c1e0e){return this['_suggestions']['has'](_0x4c1e0e);}['addSuggestionData'](_0xb839fd){const {authorId:_0x1092bd,id:_0x4d7e53,originalSuggestionId:_0x26027d,attributes:_0x1541ad}=_0xb839fd,[_0xc36e85,_0x4e026f]=_0xb839fd['type']['split'](':'),_0x28dcec=this['_suggestions']['get'](_0x4d7e53)||this['_createSuggestion'](_0xc36e85,_0x4e026f,_0x4d7e53,_0x1092bd,_0x1541ad,_0x26027d);if(this['_addThreadToSuggestion'](_0x28dcec),this['_checkSuggestionCorrectness'](_0x28dcec,_0xc36e85,_0x4e026f||null,_0x1092bd),_0x28dcec['createdAt']=_0xb839fd['createdAt'],_0x28dcec['_isDataLoaded']=!0x0,_0x1541ad&&_0x1541ad['@external']){const _0x3c1c0c=_0x1541ad['@external'],_0x47dd1c=this['_getExternalAuthor'](_0x3c1c0c['authorName']);_0x28dcec['authoredAt']=_0x3c1c0c['createdAt'],_0x28dcec['author']=_0x47dd1c,_0x28dcec['isExternal']=!0x0;}else _0x28dcec['authoredAt']=_0xb839fd['createdAt'];switch(_0xb839fd['data']&&(_0x28dcec['data']=_0xb839fd['data']),_0xb839fd['attributes']&&(_0x28dcec['attributes']=_0xb839fd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x28dcec['_saved']=!0x0),this['_suggestionState']['get'](_0x28dcec)){case'notReady':this['_suggestionState']['set'](_0x28dcec,'dataReady');break;case'markerReady':_0x28dcec['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x28dcec])),this['_refreshSuggestionsChain'](new Set([_0x28dcec])),this['_suggestionState']['set'](_0x28dcec,'ready'),this['fire']('suggestionLoaded',_0x28dcec)):this['_suggestionState']['set'](_0x28dcec,'removed');}return _0x28dcec;}['acceptSuggestion'](_0xa1c689){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x107163 of _0xa1c689['getAllAdjacentSuggestions']())_0x107163['accept']();});});}['discardSuggestion'](_0x15355d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c32ca of _0x15355d['getAllAdjacentSuggestions']())_0x2c32ca['discard']();});});}['enableCommand'](_0x4786e0,_0x4f5562){const _0x1ecd46=this['editor']['commands']['get'](_0x4786e0);if(!_0x1ecd46)throw new CKEditorError('track-changes-command-not-found',this,{'commandName':_0x4786e0});if(this['_enabledCommands']['has'](_0x1ecd46))throw new CKEditorError('track-changes-enable-command-twice',this,{'commandName':_0x4786e0});this['_enabledCommands']['add'](_0x1ecd46),_0x4f5562&&_0x1ecd46['on']('execute',(_0x13585c,_0x503059)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x503059['length']>0x0&&_0x503059[_0x503059['length']-0x1]&&_0x503059[_0x503059['length']-0x1]['forceDefaultExecution']?_0x503059['pop']():(_0x13585c['return']=_0x4f5562((..._0x218ec6)=>_0x1ecd46['execute'](..._0x218ec6,{'forceDefaultExecution':!0x0}),..._0x503059),_0x13585c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x54104a){let _0x2dc74a,_0x204760;const _0x20afbe=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2dc74a=_0x54104a();}catch(_0x5e1efc){_0x204760=_0x5e1efc;}return _0x20afbe||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x204760&&CKEditorError['rethrowUnexpectedError'](_0x204760,this),_0x2dc74a;}['markInsertion'](_0x42dcc4,_0x32d04f=null,_0x17b841={}){if(_0x42dcc4['isCollapsed'])return null;const _0x1650bb=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x17b841['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x96988c,meta:_0x197503}of this['_findSuggestions'](_0x42dcc4,'insertion'))if(_0x197503['isOwn']){if(!_0x197503['isNextTo']){if(_0x197503['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!_areSimilarAttributes(_0x96988c,_0x17b841))continue;return _0x96988c;}if(_areSimilarAttributes(_0x96988c,_0x17b841))return _0x96988c;this['_breakSuggestionMarker'](_0x96988c,_0x42dcc4['start'],_0x42dcc4['end']);break;}if(_0x32d04f==_0x96988c['subType']&&_areSimilarAttributes(_0x96988c,_0x17b841)){const _0x2b67c5=_0x96988c['getFirstRange']();return _0x2b67c5['start']['isEqual'](_0x42dcc4['end'])?this['_setSuggestionRange'](_0x96988c,this['_model']['createRange'](_0x42dcc4['start'],_0x2b67c5['end'])):this['_setSuggestionRange'](_0x96988c,this['_model']['createRange'](_0x2b67c5['start'],_0x42dcc4['end'])),_0x96988c;}}const _0x563733=uid(),_0x340919=_0x1650bb['id'],_0x5c55c4=_0x32d04f?'insertion:'+_0x32d04f:'insertion',_0x35fff2=this['_setSuggestionData']({'id':_0x563733,'type':_0x5c55c4,'createdAt':new Date(),'authorId':_0x340919,'attributes':_0x17b841});return this['_addSuggestionMarker'](_0x5c55c4,_0x563733,_0x340919,_0x42dcc4),_0x35fff2;}['markMultiRangeInsertion'](_0x470254,_0x4aaedf='multi',_0x4ff1c4={}){const _0x58b3b5=this['editor']['plugins']['get']('Users')['me'],_0x2a7265=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4aaedf,'join');this['_trackingSessionId']&&(_0x4ff1c4['trackingSessionId']=this['_trackingSessionId']);for(const _0xeb6711 of this['getSuggestions']())if(_0xeb6711['author']['id']==_0x58b3b5['id']&&'insertion'==_0xeb6711['type']&&_0xeb6711['subType']==_0x4aaedf&&_areSimilarAttributes(_0xeb6711,_0x4ff1c4)&&(_0x2a7265(_0xeb6711['getRanges'](),_0x470254)||_0x2a7265(_0x470254,_0xeb6711['getRanges']()))){for(const _0x3c9e10 of _0x470254)_0xeb6711['addRange'](_0x3c9e10);return _0xeb6711;}for(const {suggestion:_0x257a03,meta:_0x3320af}of this['_findSuggestions'](_0x470254,'insertion')){if(!_0x3320af['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3320af['containsRangeInObject'])continue;if(!_areSimilarAttributes(_0x257a03,_0x4ff1c4))continue;let _0x58c070=!0x0;for(const _0x59d78c of _0x257a03['getRanges']())for(const _0x2a310b of _0x470254)if(!_0x59d78c['containsRange'](_0x2a310b)){_0x58c070=!0x1;break;}if(_0x58c070)return _0x257a03;}const _0x164dfe=uid(),_0x433399=_0x58b3b5['id'],_0x4e8c2c='insertion:'+_0x4aaedf,_0x2a049c=this['_setSuggestionData']({'id':_0x164dfe,'type':_0x4e8c2c,'createdAt':new Date(),'authorId':_0x433399,'attributes':_0x4ff1c4});for(const _0x36ecef of _0x470254)this['_addSuggestionMarker'](_0x4e8c2c,_0x164dfe,_0x433399,_0x36ecef,Suggestion['getMultiRangeId']());return _0x2a049c;}['markInlineFormat'](_0x3ca821,_0x390ce3,_0x21d95e=null,_0x39296f={}){if(_0x21d95e=_0x21d95e||createFormatSubType(_0x390ce3),_0x3ca821['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x39296f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x44ae30=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x21d95e,'accept');return this['forceDefaultExecution'](()=>_0x44ae30([_0x3ca821],_0x390ce3,_0x39296f)),null;}const _0xc0b9e=this['editor']['plugins']['get']('Users')['me'],_0x2a837f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4fdd1e,meta:_0x443a3c}of this['_findSuggestions'](_0x3ca821,'insertion'))_0x443a3c['isOwn']&&!_0x443a3c['isInsideObject']&&_0x2a837f['push'](..._0x4fdd1e['getRanges']());}const _0x457160=getIntersectionsWithMultipleRanges(_0x3ca821,_0x2a837f),_0x339447=getDifferencesWithMultipleRanges(_0x3ca821,_0x2a837f);_0x457160['length']&&this['_model']['change'](()=>{for(const _0x4a673e of _0x457160){const _0x5dd92e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x21d95e,'accept');this['forceDefaultExecution'](()=>_0x5dd92e([_0x4a673e],_0x390ce3,_0x39296f));}});for(const _0x4f8fe0 of _0x339447){let _0x175a89=null,_0x1fc914=_0x4f8fe0['start'],_0x5532d0=_0x4f8fe0['end'];for(const {suggestion:_0x514ff8,meta:_0x4ec3c1}of this['_findSuggestions'](_0x4f8fe0,'formatInline')){if(!_0x4ec3c1['isOwn'])continue;if(_0x514ff8['subType']!=_0x21d95e)continue;if(!_areSimilarAttributes(_0x514ff8,_0x39296f))continue;const _0x52c0a9=_0x514ff8['getFirstRange']();if(_0x52c0a9['containsRange'](_0x4f8fe0,!0x0))return null;_0x1fc914=_0x1fc914['isBefore'](_0x52c0a9['start'])?_0x1fc914:_0x52c0a9['start'],_0x5532d0=_0x5532d0['isAfter'](_0x52c0a9['end'])?_0x5532d0:_0x52c0a9['end'],_0x175a89?_0x52c0a9['start']['isBefore'](_0x175a89['getFirstRange']()['start'])?(_0x175a89['removeMarkers'](),_0x175a89=_0x514ff8):_0x514ff8['removeMarkers']():_0x175a89=_0x514ff8;}const _0x2eb429=this['_model']['createRange'](_0x1fc914,_0x5532d0);if(_0x175a89)this['_setSuggestionRange'](_0x175a89,_0x2eb429);else{const _0x707ff4=uid(),_0x3f4662=_0xc0b9e['id'];this['_setSuggestionData']({'id':_0x707ff4,'type':'formatInline:'+_0x21d95e,'data':_0x390ce3,'createdAt':new Date(),'authorId':_0x3f4662,'attributes':_0x39296f}),this['_addSuggestionMarker']('formatInline:'+_0x21d95e,_0x707ff4,_0x3f4662,_0x2eb429);}}return null;}['markBlockFormat'](_0xed1659,_0x4f7782,_0x52a622=[],_0x49e882=null,_0x389478={}){_0x4f7782['formatGroupId']||(_0x4f7782['formatGroupId']=_0x4f7782['commandName']),_0x4f7782['multipleBlocks']=_0xed1659['is']('range'),_0x49e882=_0x49e882||createFormatSubType(_0x4f7782);const _0x5330a=_0x52a622['map'](_0x5d0cf1=>createBlockFormatRangeForElement(_0x5d0cf1,this['_model'])),_0x1b95d5=_0xed1659['is']('range')?_0xed1659:createBlockFormatRangeForElement(_0xed1659,this['_model']);if(this['_trackingSessionId']&&(_0x389478['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2adc11=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49e882,'accept');return this['forceDefaultExecution'](()=>_0x2adc11([_0x1b95d5],_0x4f7782,_0x389478)),null;}_0x5330a['push'](_0x1b95d5);let _0x3f5ee3=!0x0;for(const _0x384fef of _0x5330a)if(!this['_rangeIsInLocalUserInsertion'](_0x384fef)){_0x3f5ee3=!0x1;break;}if(_0x3f5ee3&&'always'!==this['_trackFormatChanges']){const _0x1a5b16=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49e882,'accept');return this['forceDefaultExecution'](()=>_0x1a5b16([_0x1b95d5],_0x4f7782,_0x389478)),null;}let _0x20c4ac=null,_0x5f7d4=_0x1b95d5['start'],_0x1af879=_0x1b95d5['end'];for(const {suggestion:_0x5925ad,meta:_0x3df6c8}of this['_findSuggestions'](_0x1b95d5,'formatBlock')){if(!_0x3df6c8['isOwn'])continue;if(_0x3df6c8['isNextTo']||_0x3df6c8['containsRangeInObject']||_0x3df6c8['isInsideObject'])continue;if(_0x5925ad['data']['formatGroupId']!=_0x4f7782['formatGroupId'])continue;if(!_areSimilarAttributes(_0x5925ad,_0x389478))continue;const _0x3eb299=_0x5925ad['getFirstRange']();if(_0x5925ad['subType']==_0x49e882){if(_0x3eb299['containsRange'](_0x1b95d5,!0x0))return null;_0x5f7d4=_0x5f7d4['isBefore'](_0x3eb299['start'])?_0x5f7d4:_0x3eb299['start'],_0x1af879=_0x1af879['isAfter'](_0x3eb299['end'])?_0x1af879:_0x3eb299['end'],_0x20c4ac?_0x3eb299['start']['isBefore'](_0x20c4ac['getFirstRange']()['start'])?(_0x20c4ac['removeMarkers'](),_0x20c4ac=_0x5925ad):_0x5925ad['removeMarkers']():_0x20c4ac=_0x5925ad;}else{const _0x53246c=_0x1b95d5['getIntersection'](_0x3eb299);this['_cutOutSuggestionMarker'](_0x5925ad,_0x53246c);}}const _0x372468=this['editor']['plugins']['get']('Users')['me'],_0x5597a3=uid(),_0x3a74bc=_0x372468['id'];if(_0x20c4ac)return this['_setSuggestionRange'](_0x20c4ac,this['_model']['createRange'](_0x5f7d4,_0x1af879)),_0x20c4ac;{const _0x2fca11=this['_setSuggestionData']({'id':_0x5597a3,'type':'formatBlock:'+_0x49e882,'data':_0x4f7782,'createdAt':new Date(),'authorId':_0x3a74bc,'attributes':_0x389478});return this['_addSuggestionMarker']('formatBlock:'+_0x49e882,_0x5597a3,_0x3a74bc,this['_model']['createRange'](_0x5f7d4,_0x1af879)),_0x2fca11;}}['markMultiRangeBlockFormat'](_0x373c32,_0x213719,_0x172f99=[],_0xbe649c=null,_0x5125dc={}){_0x213719['formatGroupId']||(_0x213719['formatGroupId']=_0x213719['commandName']);const _0x3a538a=_0x373c32[0x0];_0x213719['multipleBlocks']=_0x3a538a['is']('range'),_0xbe649c=_0xbe649c||createFormatSubType(_0x213719);const _0x1ff376=_0x172f99['map'](_0x107fc7=>createBlockFormatRangeForElement(_0x107fc7,this['_model'])),_0x4515da=_0x3a538a['is']('range')?_0x373c32:_0x373c32['map'](_0x1c228f=>createBlockFormatRangeForElement(_0x1c228f,this['_model']));if(this['_trackingSessionId']&&(_0x5125dc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x346bfe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbe649c,'accept');return this['forceDefaultExecution'](()=>_0x346bfe(_0x4515da,_0x213719,_0x5125dc)),null;}_0x1ff376['push'](..._0x4515da);let _0x5178d5=!0x0;for(const _0x27491 of _0x1ff376)if(!this['_rangeIsInLocalUserInsertion'](_0x27491)){_0x5178d5=!0x1;break;}if(_0x5178d5&&'always'!==this['_trackFormatChanges']){const _0x4b9a11=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbe649c,'accept');return this['forceDefaultExecution'](()=>_0x4b9a11(_0x4515da,_0x213719,_0x5125dc)),null;}const _0x101917=this['editor']['plugins']['get']('Users')['me'];for(const _0x3b5d21 of this['getSuggestions']()){const _0x399648=_0x3b5d21['data'];if(_0x3b5d21['author']['id']!=_0x101917['id'])continue;if('formatBlock'!=_0x3b5d21['type']||_0x399648['formatGroupId']!=_0x213719['formatGroupId'])continue;if(!_areSimilarAttributes(_0x3b5d21,_0x5125dc))continue;const _0x31566a=_0x3b5d21['subType']==_0xbe649c;for(let _0x58e60a=0x0;_0x58e60a<_0x4515da['length'];_0x58e60a++){const _0x5a71b3=_0x4515da[_0x58e60a];for(const _0x27f6de of _0x3b5d21['getMarkers']()){const _0x1f9c18=_0x27f6de['getRange']();if(_0x5a71b3['isEqual'](_0x1f9c18)){_0x31566a?(_0x4515da['splice'](_0x58e60a,0x1),_0x58e60a--):_0x3b5d21['removeMarker'](_0x27f6de['name']);break;}}}}if(0x0==_0x4515da['length'])return null;const _0x57f49e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbe649c,'join');for(const _0x1dd11e of this['getSuggestions']()){const _0x1256cc=_0x1dd11e['data'];if(_0x1dd11e['author']['id']==_0x101917['id']&&('formatBlock'==_0x1dd11e['type']&&_0x1256cc['formatGroupId']==_0x213719['formatGroupId']&&_0x1dd11e['subType']==_0xbe649c&&_areSimilarAttributes(_0x1dd11e,_0x5125dc)&&(_0x57f49e(_0x1dd11e['getRanges'](),_0x4515da)||_0x57f49e(_0x4515da,_0x1dd11e['getRanges']())))){for(const _0x5ae351 of _0x4515da)_0x1dd11e['addRange'](_0x5ae351);return _0x1dd11e;}}const _0x717f01=uid(),_0x25f5a8=_0x101917['id'],_0x519241='formatBlock:'+_0xbe649c,_0x5d7d1d=this['_setSuggestionData']({'id':_0x717f01,'type':_0x519241,'data':_0x213719,'createdAt':new Date(),'authorId':_0x25f5a8,'attributes':_0x5125dc});for(const _0x4aa5e0 of _0x4515da)this['_addSuggestionMarker'](_0x519241,_0x717f01,_0x25f5a8,_0x4aa5e0,Suggestion['getMultiRangeId']());return _0x5d7d1d;}['markDeletion'](_0xd61fa,_0x19aae7=null,_0x242108={}){if(_0xd61fa['isCollapsed'])return null;const _0x4c334e=this['editor']['plugins']['get']('Users')['me'],_0x4c6129=new ModelLiveRange(_0xd61fa['start'],_0xd61fa['end']);this['_trackingSessionId']&&(_0x242108['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xa0707c,meta:_0x5a8e7f}of this['_findSuggestions'](_0x4c6129,'insertion'))if(_0x5a8e7f['isOwn']&&!_0x5a8e7f['isNextTo']){if(_0xa0707c['isMultiRange']){const _0x4d6c9e=_0xa0707c['getRanges']()['filter'](_0x579daa=>'$graveyard'!=_0x579daa['root']['rootName']);_0x4d6c9e['every'](_0x4453ae=>_0x4c6129['containsRange'](_0x4453ae,!0x0))&&_0xa0707c['discard']();if(_0x4d6c9e['some'](_0x287115=>_0x287115['containsRange'](_0x4c6129,!0x0))){const _0x4d3544=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19aae7,'accept');return this['forceDefaultExecution'](()=>_0x4d3544([_0x4c6129],null,_0x242108)),null;}}else{const _0x2fab0a=_0x4c6129['getIntersection'](_0xa0707c['getFirstRange']());null!==_0x2fab0a&&_0xa0707c['_onDiscard']([_0x2fab0a],null,_0x242108);}}if(_0x4c6129['detach'](),_0x4c6129['isCollapsed']||'$graveyard'==_0x4c6129['root']['rootName'])return null;let _0xa1b2c9=null,_0x1a6a60=_0x4c6129['start'],_0x3466c4=_0x4c6129['end'];const _0x5dea96=this['_findSuggestions'](_0x4c6129,'deletion');for(const {suggestion:_0x458c83,meta:_0x4ff688}of _0x5dea96){const _0x24225a=this['_model']['createRange'](_0x1a6a60,_0x3466c4);if(_0x4ff688['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4ff688['containsRangeInObject']&&!_0x4ff688['isInsideObject'])){if(_0x458c83['isMultiRange']){if(!_areSimilarAttributes(_0x458c83,_0x242108))continue;let _0xd6ba27=!0x0;for(const _0x1d9560 of _0x458c83['getRanges']()){if(_0x1d9560['containsRange'](_0x24225a,!0x0))return _0x458c83;_0x24225a['containsRange'](_0x1d9560)||(_0xd6ba27=!0x1);}_0xd6ba27&&_0x458c83['discard']();}else{const _0x32dbda=_0x458c83['getFirstRange']();if(_0x32dbda['containsRange'](_0x24225a,!0x0))return _0x458c83;if(!_areSimilarAttributes(_0x458c83,_0x242108)){_0x24225a['containsRange'](_0x32dbda)?_0x458c83['removeMarkers']():_0x32dbda['containsPosition'](_0x1a6a60)?_0x1a6a60=_0x32dbda['end']:_0x32dbda['containsPosition'](_0x3466c4)&&(_0x3466c4=_0x32dbda['start']);continue;}_0x1a6a60=_0x1a6a60['isBefore'](_0x32dbda['start'])?_0x1a6a60:_0x32dbda['start'],_0x3466c4=_0x3466c4['isAfter'](_0x32dbda['end'])?_0x3466c4:_0x32dbda['end'],_0x242108=Object['assign']({},_0x458c83['attributes']),_0xa1b2c9?_0x32dbda['start']['isBefore'](_0xa1b2c9['getFirstRange']()['start'])?(_0xa1b2c9['removeMarkers'](),_0xa1b2c9=_0x458c83):_0x458c83['removeMarkers']():_0xa1b2c9=_0x458c83;}}}if(_0xa1b2c9)return this['_setSuggestionRange'](_0xa1b2c9,this['_model']['createRange'](_0x1a6a60,_0x3466c4)),_0xa1b2c9;{const _0x51a69d=uid(),_0x4c4c70=this['_model']['createRange'](_0x1a6a60,_0x3466c4),_0x23cec5=_0x4c334e['id'],_0x202112=_0x19aae7?'deletion:'+_0x19aae7:'deletion',_0x5b59bf=this['_setSuggestionData']({'id':_0x51a69d,'type':_0x202112,'createdAt':new Date(),'authorId':_0x23cec5,'attributes':_0x242108});return this['_addSuggestionMarker'](_0x202112,_0x51a69d,_0x23cec5,_0x4c4c70),_0x5b59bf;}}['markMultiRangeDeletion'](_0x3ceb3f,_0x2a3f04='multi',_0x5c2aa8={}){const _0x506a2c=this['editor']['plugins']['get']('Users')['me'],_0x13764c=_0x3ceb3f['map'](_0xe80615=>new ModelLiveRange(_0xe80615['start'],_0xe80615['end'])),_0x457df0=new Set();this['_trackingSessionId']&&(_0x5c2aa8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x449733,meta:_0x2d11f9}of this['_findSuggestions'](_0x13764c,'insertion'))_0x2d11f9['isOwn']&&!_0x2d11f9['isNextTo']&&_0x457df0['add'](_0x449733);for(const _0x246c97 of _0x457df0)if(_0x246c97['isMultiRange']){const _0x44c07a=_0x246c97['getRanges']();(!_0x246c97['attributes']||!_0x246c97['attributes']['skipNestingCheck'])&&(_0x44c07a['every'](_0x59aab4=>_0x13764c['some'](_0x47800f=>_0x47800f['containsRange'](_0x59aab4,!0x0)))&&_0x246c97['discard']());if(_0x13764c['every'](_0x2d4b94=>_0x44c07a['some'](_0x2c7b4d=>_0x2c7b4d['containsRange'](_0x2d4b94,!0x0)))){const _0x4fde18=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2a3f04,'accept');return this['forceDefaultExecution'](()=>_0x4fde18(_0x3ceb3f,null,_0x5c2aa8)),null;}}else{const _0x144288=_0x246c97['getFirstRange']();_0x13764c['some'](_0x596862=>_0x596862['containsRange'](_0x144288,!0x0))&&_0x246c97['discard']();if(_0x13764c['every'](_0x161b3f=>_0x144288['containsRange'](_0x161b3f,!0x0))){const _0x2a7c28=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2a3f04,'accept');return this['forceDefaultExecution'](()=>_0x2a7c28(_0x13764c,null,_0x5c2aa8)),null;}}const _0x2c9b72=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2a3f04,'join');let _0x5b2558=null;for(const _0x46dc96 of this['getSuggestions']())if(_0x46dc96['author']['id']==_0x506a2c['id']&&_0x46dc96['isInContent']&&'deletion'==_0x46dc96['type']&&_0x46dc96['subType']==_0x2a3f04&&_areSimilarAttributes(_0x46dc96,_0x5c2aa8)&&(_0x2c9b72(_0x46dc96['getRanges'](),_0x13764c)||_0x2c9b72(_0x13764c,_0x46dc96['getRanges']()))){if(_0x5b2558){if(_0x46dc96['commentThread']&&_0x46dc96['commentThread']['length'])continue;for(const _0x49458a of _0x46dc96['getRanges']())_0x5b2558['isIntersectingWithRange'](_0x49458a)||_0x5b2558['addRange'](_0x49458a);_0x46dc96['removeMarkers']();}else{_0x5b2558=_0x46dc96;for(const _0x4781f5 of _0x13764c)_0x46dc96['isIntersectingWithRange'](_0x4781f5)||_0x46dc96['addRange'](_0x4781f5);}}if(_0x5b2558)return _0x5b2558;_0x457df0['clear']();for(const {suggestion:_0x352499,meta:_0x1051ba}of this['_findSuggestions'](_0x13764c,'deletion'))_0x1051ba['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1051ba['containsRangeInObject']&&!_0x1051ba['isInsideObject'])&&_areSimilarAttributes(_0x352499,_0x5c2aa8)&&_0x457df0['add'](_0x352499);for(const _0x42bc6e of _0x457df0){const _0x71112f=_0x42bc6e['getRanges']();if(!_0x5c2aa8||!_0x5c2aa8['skipNestingCheck']){if(_0x13764c['every'](_0x38e78f=>_0x71112f['some'](_0x5cdd55=>_0x5cdd55['containsRange'](_0x38e78f,!0x0))))return _0x42bc6e;}(!_0x42bc6e['attributes']||!_0x42bc6e['attributes']['skipNestingCheck'])&&(_0x71112f['every'](_0x1083f7=>_0x13764c['some'](_0x55570f=>_0x55570f['containsRange'](_0x1083f7,!0x0)))&&_0x42bc6e['discard']());}const _0x5d1f69=uid(),_0x46c98c=_0x506a2c['id'],_0xb87dd5='deletion:'+_0x2a3f04,_0x5e2f37=this['_setSuggestionData']({'id':_0x5d1f69,'type':_0xb87dd5,'createdAt':new Date(),'authorId':_0x46c98c,'attributes':_0x5c2aa8});for(const _0x4f1566 of _0x13764c)_0x4f1566['detach'](),_0x4f1566['isCollapsed']||'$graveyard'==_0x4f1566['root']['rootName']||this['_addSuggestionMarker'](_0xb87dd5,_0x5d1f69,_0x46c98c,_0x4f1566,Suggestion['getMultiRangeId']());return _0x5e2f37;}['markAttributeChange'](_0x406b29,_0x491064,_0x504cba,_0x398c10,_0x1c393f){if(_0x406b29['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x40e42d=this['editor']['plugins']['get']('Users')['me']['id'],_0x48a0bd=Array['from'](this['_suggestions']['values']())['filter'](_0x8bf316=>'attribute'==_0x8bf316['type']&&_0x8bf316['data']['key']==_0x491064&&_0x8bf316['isIntersectingWithRange'](_0x406b29));if(this['_trackingSessionId']&&(_0x1c393f['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x105fd2=this['_findSuggestions'](_0x406b29,'insertion')['filter'](({meta:_0x19cc26})=>_0x19cc26['isOwn']&&!_0x19cc26['isInsideObject']&&!_0x19cc26['isNextTo'])['map'](({suggestion:_0x3c9eea})=>_0x3c9eea);_0x48a0bd['unshift'](..._0x105fd2);}const _0x4b923d=new Map([[_0x406b29,_0x504cba]]);for(const _0xdf964 of _0x48a0bd){const _0x4ee1e2='attribute'==_0xdf964['type']?_0xdf964['data']['oldValue']:void 0x0,_0x50fad7=_0xdf964['getFirstRange'](),_0x4b013a=Array['from'](_0x4b923d['keys']())['find'](_0x32be2d=>_0x32be2d['isIntersecting'](_0x50fad7));if(!_0x4b013a)continue;const _0x522a42=_0x4b013a['getDifference'](_0x50fad7);this['_isBlockAttribute'](_0x491064)&&'insertion'==_0xdf964['type']&&0x0!=_0x522a42['length']||(_0x4b923d['delete'](_0x4b013a),_0x522a42['forEach'](_0x25216f=>{_0x4b923d['set'](_0x25216f,_0x504cba);}),'insertion'!=_0xdf964['type']&&_0x4ee1e2!=_0x398c10&&_0x4b923d['set'](_0x4b013a['getIntersection'](_0x50fad7),_0x4ee1e2));}const _0x3a2281=[];for(const [_0x395006,_0x37c323]of _0x4b923d){const _0x4e6a90=uid(),_0x4ea914={'key':_0x491064,'oldValue':_0x37c323,'newValue':_0x398c10};_0x491064['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':_0x491064});const _0x271216=('attribute:'+(_0x491064+'|'+createFormatSubType({'newValue':_0x398c10})))['substring'](0x0,0x3c),_0x1c0f0f=this['_setSuggestionData']({'id':_0x4e6a90,'type':_0x271216,'data':_0x4ea914,'createdAt':new Date(),'authorId':_0x40e42d,'attributes':_0x1c393f});_0x3a2281['push'](_0x1c0f0f),this['_addSuggestionMarker'](_0x271216,_0x4e6a90,_0x40e42d,_0x395006);}return _0x3a2281;}['enableDefaultAttributesIntegration'](_0x4188da){this['enableCommand'](_0x4188da,(_0x12a50a,..._0x101b2b)=>{this['recordAttributeChanges'](()=>{_0x12a50a(..._0x101b2b);});});}['registerBlockAttribute'](_0x3ecb1d){this['editor']['plugins']['get'](SuggestionsConversion)['registerBlockAttribute'](_0x3ecb1d);}['registerInlineAttribute'](_0x1a9630){this['editor']['plugins']['get'](SuggestionsConversion)['registerInlineAttribute'](_0x1a9630);}['startTrackingSession'](_0x48cc72){return this['_trackingSessionId']=void 0x0!==_0x48cc72?_0x48cc72:uid(),this['_trackingSessionId'];}['_getAttributeKey'](_0x571103){return'attribute'==_0x571103['type']?_getAttributeKeyFromSubType(_0x571103['subType']):null;}['_applyOperationsAsSuggestions'](_0x1dd51e){if(0x0==_0x1dd51e['length'])return;const _0x265965=this['editor'],_0x59f69a=_0x265965['plugins']['get'](DocumentCompare),_0x49397d=[];_0x265965['model']['change'](_0x8d2df5=>{for(let _0x23a89e=0x0;_0x23a89e<_0x1dd51e['length'];_0x23a89e++){const _0x46e732=_0x1dd51e[_0x23a89e];if(_0x46e732['baseVersion']=_0x265965['model']['document']['version'],_0x46e732['isDocumentOperation']=!0x0,_0x59f69a['isMarkedRemoveOperation'](_0x46e732)){const _0x1255ca=fixElementSuggestionRange(_0x46e732['newRange'],_0x265965['model']);_0x49397d['unshift'](ModelLiveRange['fromRange'](_0x1255ca));}else switch(_0x46e732['type']){case'rename':{const _0x4b67af=_0x46e732['oldName'],_0x4f6b6a=_0x46e732['newName'];if(_0x4b67af==_0x4f6b6a)break;_0x8d2df5['batch']['addOperation'](_0x46e732),_0x265965['model']['applyOperation'](_0x46e732);const _0x3f1155='$elementName',_0x128c8b=_0x46e732['position'],_0x44f42c=_0x265965['model']['createRange'](_0x128c8b,_0x265965['model']['createPositionAt'](_0x128c8b['nodeAfter'],'end'));this['markAttributeChange'](_0x44f42c,_0x3f1155,_0x4b67af,_0x4f6b6a,{'groupId':uid()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xa0fe97=_0x46e732['oldValue'],_0x53ad5f=_0x46e732['newValue'];if(_0xa0fe97==_0x53ad5f)break;_0x8d2df5['batch']['addOperation'](_0x46e732),_0x265965['model']['applyOperation'](_0x46e732);const _0x22ff4f=_0x46e732['key'];if(!this['_isRegisteredAttribute'](_0x22ff4f))break;const _0x583b2e=fixElementSuggestionRange(_0x46e732['range'],_0x265965['model']);this['markAttributeChange'](_0x583b2e,_0x22ff4f,_0xa0fe97,_0x53ad5f,{'groupId':uid()});break;}case'insert':{_0x8d2df5['batch']['addOperation'](_0x46e732),_0x265965['model']['applyOperation'](_0x46e732);if(_0x1dd51e[_0x23a89e+0x1]&&'move'==_0x1dd51e[_0x23a89e+0x1]['type'])break;const _0x172a9c=_0x46e732['position'],_0x4bb1d9=_0x46e732['howMany'],_0x260d3d=fixElementSuggestionRange(_0x265965['model']['createRange'](_0x172a9c,_0x172a9c['getShiftedBy'](_0x4bb1d9)),_0x265965['model']);this['markInsertion'](_0x260d3d);break;}case'split':{_0x8d2df5['batch']['addOperation'](_0x46e732),_0x265965['model']['applyOperation'](_0x46e732);const _0x333c0a=_0x46e732['splitPosition'],_0xd71961=_0x46e732['moveTargetPosition'];this['markInsertion'](_0x265965['model']['createRange'](_0x333c0a,_0xd71961));break;}case'move':case'remove':_0x8d2df5['batch']['addOperation'](_0x46e732),_0x265965['model']['applyOperation'](_0x46e732);}}for(const _0x56f17e of _0x49397d)_0x56f17e['detach'](),this['markDeletion'](_0x56f17e);});}['_setSuggestionRange'](_0x16e5e5,_0xdcc9a6){const _0x350685=_0x16e5e5['getFirstMarker']();this['_model']['change'](_0x527800=>{_0x527800['updateMarker'](_0x350685,{'range':_0xdcc9a6});});}['_addThreadToSuggestion'](_0x404f1d){const _0x25aa0f=_0x404f1d['id'],_0x3e2d8b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x25aa0f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3e2d8b,'threadId':_0x25aa0f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x547c73=this['_commentsRepository']['getCommentThread'](_0x25aa0f);_0x547c73['unbind']('isRemovable'),_0x547c73['isRemovable']=!0x1,_0x404f1d['commentThread']=_0x547c73;}['_checkSuggestionCorrectness'](_0x62cf15,_0x4e8fe8,_0x1ec485,_0x1136dd){if(_0x62cf15['type']!=_0x4e8fe8||_0x62cf15['subType']!=_0x1ec485||_0x62cf15['creator']['id']!=_0x1136dd)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new CKEditorError('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x36abc9,_0x2133e9){const _0x506c1e=_0x36abc9['getFirstRange']();if(_0x2133e9['isEqual'](_0x506c1e))_0x36abc9['removeMarkers']();else{if(_0x506c1e['containsRange'](_0x2133e9)){const _0x53d6b1=this['_model']['createPositionAt'](_0x2133e9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x36abc9,this['_model']['createRange'](_0x506c1e['start'],_0x53d6b1));const _0x2e9956=uid(),_0x25e67e=_0x36abc9['creator']['id'],_0xa703aa=_0x36abc9['type']+':'+_0x36abc9['subType'];this['_setSuggestionData']({'id':_0x2e9956,'type':_0xa703aa,'createdAt':new Date(),'authorId':_0x25e67e,'data':_0x36abc9['data'],'attributes':_0x36abc9['attributes']});const _0x2dd908=this['_model']['createPositionAt'](_0x2133e9['end']['parent'],'after'),_0x22d703=this['_model']['createRange'](_0x2dd908,_0x506c1e['end']);this['_addSuggestionMarker'](_0xa703aa,_0x2e9956,_0x25e67e,_0x22d703);}else{if(_0x506c1e['containsPosition'](_0x2133e9['start'])){const _0x472c34=this['_model']['createPositionAt'](_0x2133e9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x36abc9,this['_model']['createRange'](_0x506c1e['start'],_0x472c34));}else{const _0x178b2d=this['_model']['createPositionAt'](_0x2133e9['end']['parent'],'after');this['_setSuggestionRange'](_0x36abc9,this['_model']['createRange'](_0x178b2d,_0x506c1e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4a85a7){for(const {suggestion:_0x538649,meta:_0x3b1cac}of this['_findSuggestions'](_0x4a85a7,'insertion')){if(!_0x3b1cac['isOwn'])continue;const _0x413f1a=_0x538649['getRanges']();for(const _0x2f9786 of _0x413f1a)if(!_0x4a85a7['getDifference'](_0x2f9786)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3de180){return this['editor']['plugins']['get']('Users')['getUser'](_0x3de180);}['_getExternalAuthor'](_0x49cc55){const _0x1fd266=this['editor']['plugins']['get']('Users'),_0x1b32db=hashObject('external:'+_0x49cc55),_0x366cfa=_0x1fd266['getUser'](_0x1b32db);return _0x366cfa||_0x1fd266['addUser']({'id':_0x1b32db,'name':_0x49cc55});}['_createSuggestion'](_0x2c953e,_0x5bf30c,_0xe223b6,_0x113fca,_0x53d073,_0x5cbd2b){const _0x5902a8=this['_getAuthorFromId'](_0x113fca);if(!_0x5902a8)throw new CKEditorError('track-changes-user-not-found',this,{'authorId':_0x113fca,'suggestionId':_0xe223b6});const _0x572962=this['_suggestionFactory']['buildSuggestion'](_0x2c953e,_0x5bf30c,_0xe223b6,_0x5902a8,_0x53d073,_0x33989b=>{this['_updateSuggestionData'](_0xe223b6,{'attributes':_0x33989b});const _0x1f9e9b=this['getSuggestion'](_0xe223b6);this['_joinWithAdjacentSuggestions'](new Set([_0x1f9e9b])),this['_refreshSuggestionsChain'](new Set([_0x1f9e9b]));},_0x5cbd2b);return this['listenTo'](_0x572962,'accept',()=>{this['_updateSuggestionData'](_0xe223b6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x572962,'discard',()=>{this['_updateSuggestionData'](_0xe223b6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xe223b6,_0x572962),this['_suggestionState']['set'](_0x572962,'notReady'),_0x572962;}['_splitMarkerName'](_0x1ec816){return splitSuggestionMarkerName(_0x1ec816);}['_breakSuggestionMarker'](_0x4d6250,_0x4021fc,_0x2c65d7){const _0x2849b4=_0x4d6250['getFirstRange'](),_0x75ca6c=_0x2849b4['start'],_0x561c55=_0x2849b4['end'];this['_setSuggestionRange'](_0x4d6250,this['_model']['createRange'](_0x75ca6c,_0x4021fc));const _0x488818=uid(),_0xee44a9=_0x4d6250['creator']['id'],_0x526944=_0x4d6250['type']+(_0x4d6250['subType']?':'+_0x4d6250['subType']:'');this['_setSuggestionData']({'id':_0x488818,'type':_0x526944,'createdAt':new Date(),'authorId':_0xee44a9,'originalSuggestionId':_0x4d6250['_originalSuggestionId']||_0x4d6250['id'],'attributes':_0x4d6250['attributes'],'data':_0x4d6250['data']});const _0x33c46e=this['_getAttributeKey'](_0x4d6250);('formatBlock'==_0x4d6250['type']||_0x33c46e&&this['_isBlockAttribute'](_0x33c46e))&&(_0x2c65d7=this['_model']['createPositionBefore'](_0x2c65d7['parent'])),this['_addSuggestionMarker'](_0x526944,_0x488818,_0xee44a9,this['_model']['createRange'](_0x2c65d7,_0x561c55));}['_findSuggestions'](_0x3d67a,_0x1f0950=null){const _0x26c67e=[],_0x5d0969=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3d67a)||(_0x3d67a=[_0x3d67a]);for(const _0x395783 of this['getSuggestions']()){if(!_0x395783['isInContent'])continue;if(_0x1f0950&&_0x395783['type']!=_0x1f0950)continue;let _0x2d6e07=!0x1;for(const _0x3206c3 of _0x395783['getRanges']()){for(const _0x478cc9 of _0x3d67a){const _0x167e1e=_0x478cc9['start']['isEqual'](_0x3206c3['end'])||_0x478cc9['end']['isEqual'](_0x3206c3['start']);if(_0x167e1e||_0x478cc9['getIntersection'](_0x3206c3)){const _0x4e163e=_0x478cc9['containsRange'](_0x3206c3)&&_isInObject(this['_model']['schema'],_0x3206c3['start'],_0x478cc9),_0x38d751=_0x3206c3['containsRange'](_0x478cc9)&&_isInObject(this['_model']['schema'],_0x478cc9['start'],_0x3206c3);_0x26c67e['push']({'suggestion':_0x395783,'meta':{'isOwn':_0x5d0969==_0x395783['author'],'isNextTo':_0x167e1e,'isInsideObject':_0x4e163e,'containsRangeInObject':_0x38d751}}),_0x2d6e07=!0x0;break;}}if(_0x2d6e07)break;}}return _0x26c67e;}['_addSuggestionMarker'](_0x4bd641,_0x3c95e2,_0x1017b9,_0x21670e,_0x1c55a8){this['_model']['change'](_0x3ccb97=>{let _0x33f687='suggestion:'+_0x4bd641+':'+_0x3c95e2+':'+_0x1017b9;_0x1c55a8&&(_0x33f687=_0x33f687+':'+_0x1c55a8),_0x3ccb97['addMarker'](_0x33f687,{'range':_0x21670e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3d47e5){const _0x39528a=_0x3d47e5['previous'],_0x4edc67=_0x3d47e5['next'];_0x3d47e5['previous']=null,_0x3d47e5['next']=null,null!=_0x39528a&&_0x39528a['next']==_0x3d47e5&&(_0x39528a['next']=_0x4edc67),null!=_0x4edc67&&_0x4edc67['previous']==_0x3d47e5&&(_0x4edc67['previous']=_0x39528a),'ready'==this['_suggestionState']['get'](_0x3d47e5)&&(this['_suggestionState']['set'](_0x3d47e5,'removed'),this['fire']('suggestionUnloaded',_0x3d47e5,_0x39528a,_0x4edc67));}['_setSuggestionData'](_0xbebd8f){const _0x430d70=_0xbebd8f['id'],_0x117e9a=this['addSuggestionData'](_0xbebd8f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x573731=this['editor']['plugins']['get']('PendingActions'),_0x535bcd=_0x117e9a['hasComments'],_0x328645=_0x117e9a['subType']?_0x117e9a['type']+':'+_0x117e9a['subType']:_0x117e9a['type'],_0xe84bcb=this['editor']['locale'],_0xcf0850=_0x573731['add'](getTranslation$1(_0xe84bcb,'PENDING_ACTION_SUGGESTION')),_0xda1b90={'id':_0x430d70,'type':_0x328645,'hasComments':_0x535bcd,'data':_0xbebd8f['data']||null,'originalSuggestionId':_0xbebd8f['originalSuggestionId']||null,'attributes':_0x117e9a['attributes']};this['_adapter']['addSuggestion'](_0xda1b90)['then'](_0x31f6c3=>{_0x117e9a['_saved']=!0x0,_0x573731['remove'](_0xcf0850),_0x31f6c3&&_0x31f6c3['createdAt']&&(this['_suggestions']['get'](_0x430d70)['createdAt']=_0x31f6c3['createdAt']);})['catch'](_0x436705=>{throw logWarning('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x117e9a['discard']();}),_0x117e9a['stopListening'](),this['_suggestions']['delete'](_0x117e9a['id']),this['_suggestionState']['delete'](_0x117e9a),_0x436705;});}return _0x117e9a;}['_isBlockAttribute'](_0x652c66){return this['editor']['plugins']['get'](SuggestionsConversion)['isBlockAttribute'](_0x652c66);}['_isInlineAttribute'](_0x26b9c7){return this['editor']['plugins']['get'](SuggestionsConversion)['isInlineAttribute'](_0x26b9c7);}['_updateSuggestionData'](_0x2761a5,_0x3f4c1a){const _0x4a112a=this['editor']['plugins']['get']('PendingActions'),_0x539ad6=this['getSuggestion'](_0x2761a5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x539ad6['_saved']){const _0x2d4568=_0x4a112a['add'](getTranslation$1(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2761a5,_0x3f4c1a)['then'](()=>{_0x4a112a['remove'](_0x2d4568);});}else _0x539ad6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2761a5,_0x3f4c1a);});}}['_getSuggestionData'](_0x44643b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new CKEditorError('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x44643b);}['_handleNewSuggestionMarker'](_0x59c55c){const {id:_0x2a9c5f,type:_0x53b635,subType:_0x266bb4,authorId:_0x20e6f1}=this['_splitMarkerName'](_0x59c55c),_0x548645=this['_suggestions']['get'](_0x2a9c5f)||this['_createSuggestion'](_0x53b635,_0x266bb4,_0x2a9c5f,_0x20e6f1,{});switch(this['_checkSuggestionCorrectness'](_0x548645,_0x53b635,_0x266bb4,_0x20e6f1),this['_suggestionState']['get'](_0x548645)){case'notReady':this['_getSuggestionData'](_0x2a9c5f)['then'](_0x13b978=>{let _0x1c6e63=Promise['resolve']();_0x13b978['hasComments']&&(_0x1c6e63=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2a9c5f})),_0x1c6e63['then'](()=>{this['addSuggestionData'](_0x13b978)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x548645,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2a9c5f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x548645,'ready'),this['fire']('suggestionLoaded',_0x548645);break;case'ready':this['fire']('suggestionChanged',_0x548645);}return _0x548645['addMarkerName'](_0x59c55c),_0x548645;}['_refreshSuggestionsChain'](_0x3616cc){const _0x457677=Array['from'](_0x3616cc),_0x21f010=_0x457677['filter'](_0x29f390=>'attribute'==_0x29f390['type']);this['_refreshAttributeSuggestionsChain'](_0x21f010);const _0x1e19b2=_0x457677['filter'](_0x24307c=>!_0x24307c['isMultiRange']&&'attribute'!=_0x24307c['type']),_0x279b27=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a8ed3=>!_0x3a8ed3['isMultiRange']&&'attribute'!=_0x3a8ed3['type']),_0x23c9b8=_0x279b27['filter'](_0xe6580e=>!_0x3616cc['has'](_0xe6580e)),_0x280906=new Map(_0x279b27['map'](_0xa47845=>[_0xa47845,this['_suggestionFactory']['getSuggestionCallback'](_0xa47845['type'],_0xa47845['subType'],'chain')])),_0x57b739=new Map(_0x279b27['map'](_0x5469fb=>[_0x5469fb,_0x5469fb['getFirstRange']()])),_0x3c0851=new Set(),_0x380592=new Set();for(let _0x69ec5=0x0;_0x69ec5<_0x1e19b2['length'];_0x69ec5++)_0x1bbbc7(_0x1e19b2[_0x69ec5],_0x1e19b2,_0x69ec5+0x1);for(let _0x543983=0x0;_0x543983<_0x1e19b2['length'];_0x543983++)_0x1bbbc7(_0x1e19b2[_0x543983],_0x23c9b8,0x0);const _0x8da297=new Set();for(let _0x1e0c5c=0x0;_0x1e0c5c<_0x1e19b2['length'];_0x1e0c5c++){const _0x4a51ee=_0x1e19b2[_0x1e0c5c];!_0x380592['has'](_0x4a51ee)&&_0x4a51ee['previous']&&(_0x8da297['add'](_0x4a51ee['previous']),_0x4a51ee['previous']['next']===_0x4a51ee&&(_0x4a51ee['previous']['next']=null),_0x4a51ee['previous']=null),!_0x3c0851['has'](_0x4a51ee)&&_0x4a51ee['next']&&(_0x8da297['add'](_0x4a51ee['next']),_0x4a51ee['next']['previous']===_0x4a51ee&&(_0x4a51ee['next']['previous']=null),_0x4a51ee['next']=null);}function _0x1bbbc7(_0x3f933f,_0x1961c3,_0x490004){for(let _0x139e86=_0x490004;_0x139e86<_0x1961c3['length'];_0x139e86++){const _0x6a33fd=_0x106892(_0x3f933f,_0x1961c3[_0x139e86]);_0x6a33fd&&(_0x6a33fd[0x0]['next']=_0x6a33fd[0x1],_0x6a33fd[0x1]['previous']=_0x6a33fd[0x0],_0x3c0851['add'](_0x6a33fd[0x0]),_0x380592['add'](_0x6a33fd[0x1]));}}function _0x106892(_0x5f0de6,_0x1f8dfe){if(_0x5f0de6['author']['id']!==_0x1f8dfe['author']['id'])return null;const _0x90d462=_0x280906['get'](_0x5f0de6)(_0x5f0de6,_0x1f8dfe,_0x57b739['get'](_0x5f0de6),_0x57b739['get'](_0x1f8dfe));if(!_0x90d462)return null;return _0x280906['get'](_0x1f8dfe)(_0x5f0de6,_0x1f8dfe,_0x57b739['get'](_0x5f0de6),_0x57b739['get'](_0x1f8dfe))?_0x90d462[0x1]['commentThread']&&_0x90d462[0x1]['commentThread']['length']?null:_0x90d462:null;}_0x8da297['size']&&this['_refreshSuggestionsChain'](_0x8da297);}['_refreshAttributeSuggestionsChain'](_0x1b3615){if(0x0==_0x1b3615['length'])return;const _0x384d62=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3adf37=>'attribute'==_0x3adf37['type']&&_0x3adf37['_isDataLoaded']),_0x5eb2ee=[],_0x5314a8=new Map();for(const _0x5890ed of _0x384d62){const _0x57b428=hashObject(_0x5890ed['attributes']);_0x5314a8['has'](_0x57b428)||(_0x5314a8['set'](_0x57b428,_0x5eb2ee['length']),_0x5eb2ee['push']([]));const _0x1296a6=_0x5314a8['get'](_0x57b428);_0x5eb2ee[_0x1296a6]['push'](_0x5890ed);}!(function(){_0x5eb2ee['sort']((_0x148690,_0x3ec08d)=>{const _0x495851=_0x148690[0x0]['createdAt'],_0x32faca=_0x3ec08d[0x0]['createdAt'];return _0x495851==_0x32faca?_0x148690[0x0]['attributes']['groupId']<_0x3ec08d[0x0]['attributes']['groupId']?-0x1:0x1:_0x495851<_0x32faca?-0x1:0x1;});for(const _0x2251be of _0x5eb2ee)_0x2251be['sort']((_0x3b6587,_0x27303b)=>_0x3b6587['id']<_0x27303b['id']?-0x1:0x1);}());for(let _0x56a109=0x0;_0x56a109<_0x5eb2ee['length'];_0x56a109++){if(0x0==_0x5eb2ee[_0x56a109]['length'])continue;const _0xf9055b=[];for(let _0x524fad=_0x56a109+0x1;_0x524fad<_0x5eb2ee['length'];_0x524fad++)0x0!=_0x5eb2ee[_0x524fad]['length']&&_0x5b070c(_0x5eb2ee[_0x56a109],_0x5eb2ee[_0x524fad])&&_0xf9055b['push'](_0x524fad);for(const _0x367fd5 of _0xf9055b)_0x5eb2ee[_0x56a109]=_0x5eb2ee[_0x56a109]['concat'](_0x5eb2ee[_0x367fd5]),_0x5eb2ee[_0x367fd5]=[];}for(const _0x3d1fb9 of _0x5eb2ee)for(let _0x433de1=0x0;_0x433de1<_0x3d1fb9['length'];_0x433de1++){const _0x190468=_0x3d1fb9[_0x433de1+0x1]||null;_0x3d1fb9[_0x433de1]['next']!==_0x190468&&(_0x3d1fb9[_0x433de1]['next']=_0x190468);}for(const _0x5c740d of _0x5eb2ee)for(let _0x33b332=0x0;_0x33b332<_0x5c740d['length'];_0x33b332++){const _0x8148b=_0x5c740d[_0x33b332-0x1]||null;_0x5c740d[_0x33b332]['previous']!==_0x8148b&&(_0x5c740d[_0x33b332]['previous']=_0x8148b);}function _0x5b070c(_0x2d0dbe,_0x4be3a9){if(_0x2d0dbe[0x0]['attributes']['groupId']!==_0x4be3a9[0x0]['attributes']['groupId']&&_0x2d0dbe[0x0]['author']!==_0x4be3a9[0x0]['author'])return!0x1;if(!function(_0x262e10,_0x203fb1){if(!_0x262e10['hasComments']&&!_0x203fb1['hasComments'])return!0x0;if(_0x262e10['hasComments']&&_0x203fb1['hasComments'])return!0x1;if(_0x262e10['hasComments']&&_0x203fb1['createdAt']<_0x262e10['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x203fb1['hasComments']&&_0x262e10['createdAt']<_0x203fb1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d0dbe[0x0],_0x4be3a9[0x0]))return!0x1;if(!isEqual(omit(_0x2d0dbe[0x0]['attributes'],['groupId','trackingSessionId']),omit(_0x4be3a9[0x0]['attributes'],['groupId','trackingSessionId'])))return!0x1;if(_0x2d0dbe[0x0]['attributes']['groupId']==_0x4be3a9[0x0]['attributes']['groupId'])return!0x0;if(_0x2d0dbe[0x0]['attributes']['trackingSessionId']!==_0x4be3a9[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2d0dbe['every'](_0x5b1831=>_0x4be3a9['some'](_0x51d2c4=>_0x5b1831['getFirstRange']()['isEqual'](_0x51d2c4['getFirstRange']())))&&_0x4be3a9['every'](_0x2d7e28=>_0x2d0dbe['some'](_0x1ee7c4=>_0x2d7e28['getFirstRange']()['isEqual'](_0x1ee7c4['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x45b05b){const _0x5bd52d=Array['from'](_0x45b05b),_0x2b5fb0=this['getSuggestions']({'skipNotAttached':!0x0}),_0x58ec2c=_0x2b5fb0['filter'](_0xb2dabc=>!_0x45b05b['has'](_0xb2dabc)),_0x17f52c=new Map(_0x5bd52d['map'](_0x82052f=>[_0x82052f,this['_suggestionFactory']['getSuggestionCallback'](_0x82052f['type'],_0x82052f['subType'],'join')])),_0x77f496=new Map(_0x2b5fb0['map'](_0x9883d6=>[_0x9883d6,_0x9883d6['getRanges']()]));for(let _0x2df59d=0x0;_0x2df59d<_0x5bd52d['length'];_0x2df59d++){if(_0x124f93(this,_0x5bd52d[_0x2df59d],_0x5bd52d,_0x2df59d+0x1))return!0x0;}for(let _0x2ffe43=0x0;_0x2ffe43<_0x5bd52d['length'];_0x2ffe43++){if(_0x124f93(this,_0x5bd52d[_0x2ffe43],_0x58ec2c,0x0))return!0x0;}return!0x1;function _0x124f93(_0x3acde0,_0xa0cc3a,_0x249063,_0x145e47){for(let _0x1e8f40=_0x145e47;_0x1e8f40<_0x249063['length'];_0x1e8f40++){const _0x555086=_0x249063[_0x1e8f40];if(_0x555086['type']!==_0xa0cc3a['type']||_0x555086['author']['id']!==_0xa0cc3a['author']['id']||_0x555086['subType']!==_0xa0cc3a['subType'])continue;if(!_haveSameAttributes(_0xa0cc3a,_0x555086))continue;if('attribute'==_0xa0cc3a['type']&&_0xa0cc3a['data']['oldValue']!=_0x555086['data']['oldValue'])continue;if('attribute'==_0xa0cc3a['type']&&_0x3acde0['_isBlockAttribute'](_0xa0cc3a['data']['key']))continue;if('formatBlock'==_0xa0cc3a['type']){const _0x1de4fd=_0x3acde0['editor']['model'],_0x11d051=_0xa0cc3a['getContainedElement']();if(_0x11d051&&(_0x1de4fd['schema']['isObject'](_0x11d051)||_0x1de4fd['schema']['isLimit'](_0x11d051)))continue;}const _0x18beb2=_0x17f52c['get'](_0xa0cc3a),_0x465ca3=_0x77f496['get'](_0xa0cc3a),_0x555358=_0x77f496['get'](_0x555086),_0x302757=_0xa0cc3a['commentThread']&&_0xa0cc3a['commentThread']['length'],_0x4f6f09=_0x555086['commentThread']&&_0x555086['commentThread']['length'];if(!_0x302757&&_0x18beb2(_0x555358,_0x465ca3))return _0x3acde0['_joinSuggestions'](_0x555086,_0xa0cc3a),_0x77f496['delete'](_0xa0cc3a),!0x0;if(!_0x4f6f09&&_0x18beb2(_0x465ca3,_0x555358))return _0x3acde0['_joinSuggestions'](_0xa0cc3a,_0x555086),_0x77f496['delete'](_0x555086),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4eb326,_0x290c7d){if(_0x4eb326['isMultiRange']){for(const _0x4a88f6 of _0x290c7d['getRanges']())_0x4eb326['addRange'](_0x4a88f6);}else{const _0x54de56=_0x290c7d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4eb326,this['_model']['createRange'](_0x4eb326['getFirstRange']()['start'],_0x54de56));}_0x290c7d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5348e8,_0x3934c0,_0x33c510){const _0x44a3b4=_0x5348e8['startsWith']('format')||_0x5348e8['startsWith']('attribute')?'FORMATTING':_0x5348e8['toUpperCase']();return getTranslation$1(this['editor']['locale'],_0x3934c0+'_'+_0x44a3b4+'_SUGGESTION_ANNOUNCEMENT',_0x33c510);}['_initAriaMarkerChangeAnnouncements'](){const _0x4b9633=this['editor'];if(!_0x4b9633['ui'])return;const {ariaLiveAnnouncer:_0x504cbf}=_0x4b9633['ui'];surroundingMarkersDetector(this['_model'],({left:_0x269e89,entered:_0x48ae01})=>{for(const _0x5ee8f6 of _0x269e89){const {group:_0x3ee7bc,type:_0x4d56bd}=this['_splitMarkerName'](_0x5ee8f6['name']);if('suggestion'===_0x3ee7bc){_0x504cbf['announce'](this['_getMarkerAnnouncementText'](_0x4d56bd,'LEAVE'));break;}}for(const _0x1d3a74 of _0x48ae01){const {group:_0x2d1471,type:_0x48d184}=this['_splitMarkerName'](_0x1d3a74['name']);if('suggestion'===_0x2d1471){_0x504cbf['announce'](this['_getMarkerAnnouncementText'](_0x48d184,'ENTER',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}}});}['_processAttributeChanges'](_0x5a5ba8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3e6c7a=this['editor'],_0x478f82=_0x3e6c7a['model']['document']['differ']['getChanges']();if(0x0==_0x478f82['length'])return!0x1;const _0x54c494=[],_0x17e118=_0x478f82['filter'](_0x4632f0=>'attribute'==_0x4632f0['type']),_0x29943d=_0x478f82['filter'](_0xe5c12b=>'insert'==_0xe5c12b['type']&&'$text'!=_0xe5c12b['name']),_0x45edfc=_0x478f82['filter'](_0x40974b=>'remove'==_0x40974b['type']&&'$text'!=_0x40974b['name']);for(const _0x194aae of _0x17e118)_0x54c494['push']({'key':_0x194aae['attributeKey'],'newValue':_0x194aae['attributeNewValue'],'oldValue':_0x194aae['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x194aae['range'],_0x3e6c7a['model'])});for(const _0x38e7ee of _0x29943d){const _0x1b479f=_0x45edfc['find'](_0x570699=>_0x570699['position']['isEqual'](_0x38e7ee['position']));_0x1b479f&&_0x54c494['push']({'key':renameAttributeKey,'newValue':_0x38e7ee['name'],'oldValue':_0x1b479f['name'],'range':_0x3e6c7a['model']['createRangeOn'](_0x38e7ee['position']['nodeAfter'])});}return 0x0!=_0x54c494['length']&&this['_reduceExistingSuggestions'](_0x5a5ba8,_0x54c494);}['_processAttributeSuggestions'](_0xc13e67){let _0x14caef=!0x1;const _0x3c7082=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3825b3=>_0x3825b3['data']['newRange']&&_0x3825b3['name']['startsWith']('suggestion:attribute:'));for(const _0x363c3d of _0x3c7082){const {subType:_0x5832f9,id:_0x46f7ff}=this['_splitMarkerName'](_0x363c3d['name']),_0x1614b8=_0x5832f9['split']('|')[0x0];for(const _0x4b1267 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4b1267['id']!=_0x46f7ff&&'attribute'==_0x4b1267['type']&&_0x4b1267['data']&&_0x4b1267['data']['key']==_0x1614b8&&_0x4b1267['getFirstRange']()['isIntersecting'](_0x363c3d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4b1267,_0x363c3d['data']['newRange'],_0xc13e67),_0x14caef=!0x0);}return _0x14caef;}['recordAttributeChanges'](_0x32f693){this['_recordAttributeSuggestions']=!0x0,_0x32f693();}['_isRegisteredAttribute'](_0x22c7cf){return this['editor']['plugins']['get'](SuggestionsConversion)['isRegisteredAttribute'](_0x22c7cf);}['_reduceExistingSuggestions'](_0x556e70,_0x4f39d6){if(0x0==_0x4f39d6['length'])return!0x1;let _0x5010dc=!0x1;for(const _0x37dc2c of _0x4f39d6){const _0x418666=this['_findSuggestions'](_0x37dc2c['range'],'attribute')['filter'](_0x441645=>!_0x441645['meta']['isNextTo'])['map'](_0x5deda9=>_0x5deda9['suggestion']),_0x68094f=hashObject({'newValue':_0x37dc2c['newValue']});_0x418666['filter'](_0x3c619e=>{const [_0x4ad891,_0x2b391e]=_0x3c619e['subType']['split']('|');return _0x4ad891==_0x37dc2c['key']&&_0x2b391e!=_0x68094f;})['forEach'](_0x4ca344=>{this['_reduceSuggestionAttributeRange'](_0x4ca344,_0x37dc2c['range'],_0x556e70),_0x5010dc=!0x0;});}return _0x5010dc;}['_reduceSuggestionAttributeRange'](_0x5b79b6,_0x3dfa08,_0x189e42){const _0x46f831=_0x5b79b6['getFirstRange']()['getDifference'](_0x3dfa08);0x0!==_0x46f831['length']?0x1!==_0x46f831['length']?this['_breakSuggestionMarker'](_0x5b79b6,_0x3dfa08['start'],_0x3dfa08['end']):this['_setSuggestionRange'](_0x5b79b6,_0x46f831[0x0]):_0x189e42['removeMarker'](_0x5b79b6['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x192735){this['_editor']=_0x192735,this['_model']=_0x192735['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3d37aa,_0x294fd2,_0x53a627,_0x4216ad,_0x51af43,_0x444b68,_0xb7e83){return new Suggestion(this['_model'],{'type':_0x3d37aa,'subType':_0x294fd2,'id':_0x53a627,'originalSuggestionId':_0xb7e83,'author':_0x4216ad,'creator':_0x4216ad,'attributes':_0x51af43,'onAttributesChange':_0x444b68,'onAccept':(..._0x444656)=>this['getSuggestionCallback'](_0x3d37aa,_0x294fd2,'accept')(..._0x444656),'onDiscard':(..._0x1faf66)=>this['getSuggestionCallback'](_0x3d37aa,_0x294fd2,'discard')(..._0x1faf66)});}['registerCustomCallback'](_0x54bd98,_0x17377a,_0x1a3d58,_0x3617a1){const _0x3b549a=_0x54bd98+':'+_0x17377a+':'+_0x1a3d58;this['_customCallbacks']['set'](_0x3b549a,_0x3617a1);}['getSuggestionCallback'](_0x1e4212,_0x4f9990,_0x57a3ef){const _0x2499e4=_0x1e4212+':'+_0x4f9990+':'+_0x57a3ef;return this['_customCallbacks']['get'](_0x2499e4)||this['_defaultCallbacks']['get'](_0x1e4212+':'+_0x57a3ef);}['_registerDefaultCallbacks'](){const _0x598b15=()=>!0x1,_0x3fb016=_0x3ce249=>{_0x3ce249['sort']((_0x5e7a11,_0xc77226)=>_0x5e7a11['start']['isBefore'](_0xc77226['start'])?0x1:-0x1),this['_model']['change'](_0x2295f6=>{for(const _0x33bdf8 of _0x3ce249){let _0x1191d4;_0x1191d4=_0x33bdf8['end']['isAtEnd']&&_0x33bdf8['end']['parent']==_0x33bdf8['start']['nodeAfter']?_0x2295f6['createSelection'](_0x33bdf8['start']['nodeAfter'],'on'):_0x2295f6['createSelection'](_0x33bdf8),this['_model']['deleteContent'](_0x1191d4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x121832=(_0x411645,_0x565b29)=>{_0x565b29&&this['_model']['change'](_0x55157a=>{const {commandName:_0x5a3857,commandParams:_0x4272fc=[]}=_0x565b29,_0x381f86=_0x411645['map'](_0x5e40de=>(rangeOnOpeningTag(_0x5e40de)&&(_0x5e40de=this['_model']['createRange'](_0x5e40de['end'])),_0x5e40de))['filter'](_0x106af1=>'$graveyard'!==_0x106af1['root']['rootName']);if(_0x381f86['length']<0x1)return;const _0x44fc0c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x153f0c=>ModelLiveRange['fromRange'](_0x153f0c));_0x55157a['setSelection'](_0x381f86);for(const _0x1d7237 of this['_editor']['commands']['commands']())_0x1d7237['refresh']();_0x4272fc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5a3857,..._0x4272fc);const _0x55fb62=_0x44fc0c['filter'](_0x4fa98e=>'$graveyard'!=_0x4fa98e['root']['rootName']);_0x55fb62['length']>0x0&&_0x55157a['setSelection'](_0x55fb62);for(const _0x42a149 of _0x44fc0c)_0x42a149['detach']();});},_0x532434=(_0x33978f,_0x5f174c)=>0x1==_0x33978f['length']&&0x1==_0x5f174c['length']&&_0x33978f[0x0]['end']['isEqual'](_0x5f174c[0x0]['start']),_0x293a89=(_0x3e295a,_0x18a601,_0x32932b,_0x1e16fb)=>canChainSuggestions(_0x3e295a,_0x18a601,_0x32932b,_0x1e16fb)?[_0x3e295a,_0x18a601]:canChainSuggestions(_0x18a601,_0x3e295a,_0x1e16fb,_0x32932b)?[_0x18a601,_0x3e295a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x598b15),this['_defaultCallbacks']['set']('insertion:discard',_0x3fb016),this['_defaultCallbacks']['set']('insertion:join',_0x532434),this['_defaultCallbacks']['set']('insertion:chain',_0x293a89),this['_defaultCallbacks']['set']('deletion:accept',_0x3fb016),this['_defaultCallbacks']['set']('deletion:discard',_0x598b15),this['_defaultCallbacks']['set']('deletion:join',_0x532434),this['_defaultCallbacks']['set']('deletion:chain',_0x293a89),this['_defaultCallbacks']['set']('formatInline:accept',_0x121832),this['_defaultCallbacks']['set']('formatInline:discard',_0x598b15),this['_defaultCallbacks']['set']('formatInline:join',_0x532434),this['_defaultCallbacks']['set']('formatInline:chain',_0x598b15),this['_defaultCallbacks']['set']('formatBlock:accept',_0x121832),this['_defaultCallbacks']['set']('formatBlock:discard',_0x598b15),this['_defaultCallbacks']['set']('formatBlock:join',_0x532434),this['_defaultCallbacks']['set']('formatBlock:chain',_0x598b15),this['_defaultCallbacks']['set']('attribute:accept',_0x598b15),this['_defaultCallbacks']['set']('attribute:discard',(_0x5e1667,_0x270f99)=>{if(!_0x270f99)return;const _0xb035db=this['_editor']['plugins']['get'](TrackChangesEditing);this['_model']['change'](_0x4d7063=>{if(_0x270f99['key']==renameAttributeKey)for(const _0x45f70c of _0x5e1667){const _0x390cfc=_0x45f70c['start']['nodeAfter'],_0x35902c=_0x270f99['oldValue'];_0x4d7063['rename'](_0x390cfc,_0x35902c);}else{if(_0xb035db['_isBlockAttribute'](_0x270f99['key'])){for(const _0xf99506 of _0x5e1667)void 0x0!==_0x270f99['oldValue']?_0x4d7063['setAttribute'](_0x270f99['key'],_0x270f99['oldValue'],_0xf99506['start']['nodeAfter']):_0x4d7063['removeAttribute'](_0x270f99['key'],_0xf99506['start']['nodeAfter']);}else{for(const _0x351105 of _0x5e1667)_0x270f99['oldValue']?_0x4d7063['setAttribute'](_0x270f99['key'],_0x270f99['oldValue'],_0x351105):_0x4d7063['removeAttribute'](_0x270f99['key'],_0x351105);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x532434);}}function getIntersectionsWithMultipleRanges(_0x57f3c2,_0x102999){const _0xbe29cc=[];for(const _0x17b815 of _0x102999){const _0x536a9a=_0x57f3c2['getIntersection'](_0x17b815);_0x536a9a&&_0xbe29cc['push'](_0x536a9a);}return _0xbe29cc;}function getDifferencesWithMultipleRanges(_0x54e5ee,_0x555070){const _0x24f5a5=[_0x54e5ee];for(const _0x4b64b3 of _0x555070){let _0x3b4140=0x0;for(;_0x3b4140<_0x24f5a5['length'];){const _0x253a53=_0x24f5a5[_0x3b4140]['getDifference'](_0x4b64b3);_0x24f5a5['splice'](_0x3b4140,0x1,..._0x253a53),_0x3b4140+=_0x253a53['length'];}}return _0x24f5a5;}function _isInObject(_0x4ce1b4,_0x51b9ec,_0x4e08c9){for(const _0x29110a of _0x51b9ec['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x29110a['root']==_0x29110a)return!0x1;if(!_0x4e08c9['containsItem'](_0x29110a))return!0x1;if(_0x4ce1b4['isObject'](_0x29110a)||_0x4ce1b4['isLimit'](_0x29110a))return!0x0;}return!0x1;}function rangeOnOpeningTag(_0x57eeb0){return _0x57eeb0['end']['parent']==_0x57eeb0['start']['nodeAfter']&&_0x57eeb0['end']['isAtStart'];}function rangeOnClosingTag(_0x2dcfa3){return _0x2dcfa3['start']['parent']==_0x2dcfa3['end']['nodeBefore']&&_0x2dcfa3['start']['isAtEnd'];}function trimFormatInlineSuggestionRange(_0x4d0c4f,_0x4c3c40,_0x2df262,_0x4609fc){const _0x38aabc=_0x4b7e6a=>!_0x4b7e6a['item']['is']('$textProxy')&&!_0x4609fc['isObject'](_0x4b7e6a['item']),_0x371d05=_0x4d0c4f['start']['getLastMatchingPosition'](_0x38aabc),_0x51d302=_0x4d0c4f['end']['getLastMatchingPosition'](_0x38aabc,{'direction':'backward'});return(!_0x4d0c4f['start']['isEqual'](_0x371d05)||!_0x4d0c4f['end']['isEqual'](_0x51d302))&&(_0x371d05['isBefore'](_0x51d302)?_0x2df262['updateMarker'](_0x4c3c40,{'range':_0x2df262['createRange'](_0x371d05,_0x51d302)}):_0x2df262['removeMarker'](_0x4c3c40),!0x0);}function createFormatSubType(_0x3237fa){return hashObject(_0x3237fa);}function isCorrectFormatBlockSuggestionRange(_0x113d25){const _0x1a4dc=_0x113d25['start']['nodeAfter'];return _0x1a4dc&&_0x1a4dc['is']('element');}function isEmptyRange(_0x39ad6f){return rangeOnOpeningTag(_0x39ad6f)||rangeOnClosingTag(_0x39ad6f);}function isIntersectingWithOtherMarkers(_0x18faef,_0x58266e){try{const _0x9b27fe=_0x18faef['getRange']();for(const _0x3e3deb of _0x58266e)if(_0x18faef!==_0x3e3deb&&_0x9b27fe&&_0x9b27fe['isIntersecting'](_0x3e3deb['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function fixAttributeSuggestionRange(_0x173463,_0x52a8ec){return null==_0x173463['end']['nodeBefore']&&_0x173463['end']['parent']==_0x173463['start']['nodeAfter']?createBlockFormatRangeForElement(_0x173463['start']['nodeAfter'],_0x52a8ec):_0x173463;}function createBlockFormatRangeForElement(_0x528346,_0x24ad57){const _0x4e41c5=_0x24ad57['schema']['isObject'](_0x528346)||_0x24ad57['schema']['isSelectable'](_0x528346);return _0x24ad57['createRange'](_0x24ad57['createPositionAt'](_0x528346,'before'),_0x4e41c5?_0x24ad57['createPositionAfter'](_0x528346):_0x24ad57['createPositionAt'](_0x528346,'end'));}function canChainSuggestions(_0x1938d0,_0x509ac1,_0x188c96,_0x23f5df){return!!_haveSameAttributes(_0x1938d0,_0x509ac1)&&_0x188c96['end']['isEqual'](_0x23f5df['start']);}function _haveSameAttributes(_0x29156c,_0xd5a0ed){if(!_0x29156c['_isDataLoaded']||!_0xd5a0ed['_isDataLoaded'])return!0x1;const _0x387989=new Set(Object['keys'](_0x29156c['attributes'])),_0x25083f=new Set(Object['keys'](_0xd5a0ed['attributes']));if(_0x387989['delete']('groupId'),_0x25083f['delete']('groupId'),0x0==_0x387989['size']&&0x0==_0x25083f['size'])return!0x0;if(_0x387989['size']!=_0x25083f['size'])return!0x1;const _0x41e906={..._0x29156c['attributes']},_0x654d31={..._0xd5a0ed['attributes']};return delete _0x41e906['groupId'],delete _0x654d31['groupId'],JSON['stringify'](_0x41e906)==JSON['stringify'](_0x654d31);}function _areSimilarAttributes(_0x3e6bcb,_0x31970b){const _0x1ee1ba=_cleanUpAttributes(_0x3e6bcb['attributes']),_0x48d27c=_cleanUpAttributes(_0x31970b);if(!_0x3e6bcb['_isDataLoaded'])return!0x1;for(const _0x28f823 of Object['keys'](_0x48d27c))if(!isEqual(_0x1ee1ba[_0x28f823],_0x48d27c[_0x28f823]))return!0x1;return!0x0;}function _cleanUpAttributes(_0x5be933){const _0x420075=Object['assign']({},_0x5be933);return delete _0x420075['skipNestingCheck'],delete _0x420075['tablePasteChainId'],_0x420075;}function _getAttributeKeyFromSubType(_0x37c49e){return _0x37c49e['split']('|')[0x0];}async function checkLicense$1(_0x5f3f23){const _0x423a4f=_0x517cfe([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]),_0x2cd4bb=window[_0x517cfe([0x44,0x61,0x74,0x65])][_0x517cfe([0x6e,0x6f,0x77])](),_0x141223=_0x5f3f23[_0x517cfe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x24f17e=new window[(_0x517cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48d98d=>{_0x141223[_0x517cfe([0x6f,0x6e,0x63,0x65])](_0x517cfe([0x72,0x65,0x61,0x64,0x79]),_0x48d98d);}),_0x5ec75e={[_0x517cfe([0x6b,0x74,0x79])]:_0x517cfe([0x45,0x43]),[_0x517cfe([0x75,0x73,0x65])]:_0x517cfe([0x73,0x69,0x67]),[_0x517cfe([0x63,0x72,0x76])]:_0x517cfe([0x50,0x2d,0x32,0x35,0x36]),[_0x517cfe([0x78])]:_0x517cfe([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]),[_0x517cfe([0x79])]:_0x517cfe([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]),[_0x517cfe([0x61,0x6c,0x67])]:_0x517cfe([0x45,0x53,0x32,0x35,0x36])},_0x22aca5=_0x141223[_0x517cfe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x517cfe([0x67,0x65,0x74])](_0x517cfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x1e6be5=await(async function(){let _0x51c8b1,_0x29b4d7=null,_0x2c63f1=null;try{if(_0x22aca5==_0x517cfe([0x47,0x50,0x4c]))return _0x517cfe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51c8b1=(function(){const _0x3fb650=_0x22aca5[_0x517cfe([0x73,0x70,0x6c,0x69,0x74])](_0x517cfe([0x2e]));if(0x3!=_0x3fb650[_0x517cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x55719a=_0x3fb650[0x1];return _0x2cbc4e(_0x55719a);function _0x2cbc4e(_0x4776cd){const _0x570715=_0x2bd066(_0x4776cd);return _0x570715&&_0x400d81()?_0x570715:null;function _0x400d81(){const _0x73be35=_0x570715[_0x517cfe([0x6a,0x74,0x69])],_0x96c2a0=window[_0x517cfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x73be35[_0x517cfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x73be35[_0x517cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3419a3={..._0x570715,[_0x517cfe([0x6a,0x74,0x69])]:_0x73be35[_0x517cfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x73be35[_0x517cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3419a3[_0x517cfe([0x76,0x63])],_0xca67e(_0x3419a3)==_0x96c2a0;}}}()),!_0x51c8b1)return _0x517cfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x51c8b1[_0x517cfe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c63f1=function(_0x5c1223,_0x162df2){return new window[(_0x517cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x451200=>{if(_0xa94b68())return _0x451200(_0x517cfe([0x56,0x61,0x6c,0x69,0x64]));_0x4cd47b(),_0x141223[_0x517cfe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x517cfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49cec9=!0x1;const _0xfb28a8=uid();function _0xe38da5(_0x527537){return!!_0x527537&&(typeof _0x527537===_0x517cfe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x527537===_0x517cfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x527537[_0x517cfe([0x74,0x68,0x65,0x6e])]===_0x517cfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x527537[_0x517cfe([0x63,0x61,0x74,0x63,0x68])]===_0x517cfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d9242(_0x48a975){_0x2514ea(_0x48a975)[_0x517cfe([0x74,0x68,0x65,0x6e])](_0x426000=>{if(!_0x426000||_0x426000[_0x517cfe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x517cfe([0x6f,0x6b]))return _0x517cfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x386897(_0xca67e(_0xfb28a8+_0x162df2))!=_0x426000[_0x517cfe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x517cfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x517cfe([0x56,0x61,0x6c,0x69,0x64]);})[_0x517cfe([0x74,0x68,0x65,0x6e])](_0x138a3d=>(_0x1586c8(),_0x138a3d),()=>{const _0x5f2893=_0x442367();return null==_0x5f2893?(_0x1586c8(),_0x517cfe([0x56,0x61,0x6c,0x69,0x64])):_0x517cfe(_0x2cd4bb-_0x5f2893>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x517cfe([0x74,0x68,0x65,0x6e])](_0x451200)[_0x517cfe([0x63,0x61,0x74,0x63,0x68])](()=>{_0x451200(_0x517cfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5c015f=0x36ee80;function _0x1586c8(){const _0x1d1e46=_0x517cfe([0x6c,0x6c,0x63,0x74,0x2d])+_0x386897(_0xca67e(_0x5c1223)),_0x2cbe03=_0x447541(_0x386897(window[_0x517cfe([0x4d,0x61,0x74,0x68])][_0x517cfe([0x63,0x65,0x69,0x6c])](_0x2cd4bb/_0x5c015f)));window[_0x517cfe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x517cfe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d1e46,_0x2cbe03);}function _0x442367(){const _0x478066=_0x517cfe([0x6c,0x6c,0x63,0x74,0x2d])+_0x386897(_0xca67e(_0x5c1223)),_0x32c9e6=window[_0x517cfe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x517cfe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x478066);return _0x32c9e6?window[_0x517cfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x447541(_0x32c9e6),0x10)*_0x5c015f:null;}function _0x2514ea(_0xec03e0){return new window[(_0x517cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4755dd,_0x186a5b)=>{_0xec03e0[_0x517cfe([0x74,0x68,0x65,0x6e])](_0x4755dd,_0x186a5b),window[_0x517cfe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x186a5b,0x1d4c0);});}}_0x141223[_0x517cfe([0x6f,0x6e])](_0x517cfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3dff95,_0x41a833)=>{if(_0x41a833[0x0]!=_0x5c1223)return _0x451200(_0x517cfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x41a833[0x1]={..._0x41a833[0x1],[_0x517cfe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfb28a8};},{[_0x517cfe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x517cfe([0x68,0x69,0x67,0x68])}),_0x141223[_0x517cfe([0x6f,0x6e])](_0x517cfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x24d119=>{_0xe38da5(_0x24d119[_0x517cfe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49cec9=!0x0,_0x5d9242(_0x24d119[_0x517cfe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x517cfe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x517cfe([0x6c,0x6f,0x77])}),_0x24f17e[_0x517cfe([0x74,0x68,0x65,0x6e])](()=>{_0x49cec9||_0x451200(_0x517cfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa94b68(){return _0x141223[_0x517cfe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x517cfe([0x76,0x69,0x65,0x77])][_0x517cfe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x517cfe([0x61,0x75,0x74,0x6f]);}function _0x4cd47b(){_0x141223[_0x517cfe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x517cfe([0x76,0x69,0x65,0x77])][_0x517cfe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x517cfe([0x61,0x75,0x74,0x6f]);}}(_0x51c8b1[_0x517cfe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51c8b1[_0x517cfe([0x6a,0x74,0x69])]));const _0x12930d=await(async function(){let _0x13a530=!0x0;try{const _0xea7bea=_0x22aca5[_0x517cfe([0x73,0x70,0x6c,0x69,0x74])](_0x517cfe([0x2e])),[_0x3dfa8b,_0x4a2064,_0x557c5d]=_0xea7bea;return _0x33ccda(_0x3dfa8b),await _0x3700e1(_0x3dfa8b,_0x4a2064,_0x557c5d),_0x13a530;}catch{return!0x1;}function _0x33ccda(_0x3cc29b){const _0x30d372=_0x2bd066(_0x3cc29b);_0x30d372&&_0x30d372[_0x517cfe([0x61,0x6c,0x67])]==_0x517cfe([0x45,0x53,0x32,0x35,0x36])||(_0x13a530=!0x1);}async function _0x3700e1(_0x180903,_0x1834ad,_0x537ed1){const _0x1e204e=window[_0x517cfe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x517cfe([0x66,0x72,0x6f,0x6d])](_0x16b0e2(_0x537ed1),_0x23bfd2=>_0x23bfd2[_0x517cfe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e0c84=new window[(_0x517cfe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x517cfe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x180903+_0x517cfe([0x2e])+_0x1834ad),_0x10d285=window[_0x517cfe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x517cfe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x10d285)return;const _0x1f4062=await _0x10d285[_0x517cfe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x517cfe([0x6a,0x77,0x6b]),_0x5ec75e,{[_0x517cfe([0x6e,0x61,0x6d,0x65])]:_0x517cfe([0x45,0x43,0x44,0x53,0x41]),[_0x517cfe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x517cfe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x517cfe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x10d285[_0x517cfe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x517cfe([0x6e,0x61,0x6d,0x65])]:_0x517cfe([0x45,0x43,0x44,0x53,0x41]),[_0x517cfe([0x68,0x61,0x73,0x68])]:{[_0x517cfe([0x6e,0x61,0x6d,0x65])]:_0x517cfe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f4062,_0x1e204e,_0x3e0c84)||(_0x13a530=!0x1);}}());return _0x12930d?(function(){const _0x1d232b=_0x51c8b1[_0x517cfe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1d232b)return!0x1;if(_0x1d232b[_0x517cfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517cfe([0x2a])))return!0x0;if(_0x1d232b[_0x517cfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517cfe([0x54,0x43])))return!0x0;if(_0x1d232b[_0x517cfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517cfe([0x52,0x54,0x43]))){if(_0xd6d974(_0x517cfe([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x18f8b2=_0x517cfe([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x141223[_0x517cfe([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x517cfe([0x67,0x65,0x74])](_0x18f8b2))[_0x517cfe([0x73,0x74,0x61,0x74,0x65])]==_0x517cfe([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0xd6d974(_0x517cfe([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]))||_0xd6d974(_0x517cfe([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 _0x18f8b2;return!0x1;}())?(function(){const _0x223473=[_0x517cfe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x517cfe([0x74,0x72,0x69,0x61,0x6c])][_0x517cfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51c8b1[_0x517cfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2cd4bb/0x3e8:0x69b0b080;return _0x51c8b1[_0x517cfe([0x65,0x78,0x70])]<_0x223473;}())?_0x517cfe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x156e44=_0x51c8b1[_0x517cfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x156e44||0x0==_0x156e44[_0x517cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b53a4}=new URL(window[_0x517cfe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x156e44[_0x517cfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b53a4))return!0x0;const _0x2d5df4=_0x4b53a4[_0x517cfe([0x73,0x70,0x6c,0x69,0x74])](_0x517cfe([0x2e]));return _0x156e44[_0x517cfe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11ce86=>_0x11ce86[_0x517cfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517cfe([0x2a])))[_0x517cfe([0x6d,0x61,0x70])](_0xeb54b8=>_0xeb54b8[_0x517cfe([0x73,0x70,0x6c,0x69,0x74])](_0x517cfe([0x2e])))[_0x517cfe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d1c7e=>_0x3d1c7e[_0x517cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2d5df4[_0x517cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x517cfe([0x6d,0x61,0x70])](_0x43b3fb=>Array(_0x2d5df4[_0x517cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x43b3fb[_0x517cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x517cfe([0x66,0x69,0x6c,0x6c])](_0x43b3fb[0x0]===_0x517cfe([0x2a])?_0x517cfe([0x2a]):'')[_0x517cfe([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x43b3fb))[_0x517cfe([0x73,0x6f,0x6d,0x65])](_0x56ecfd=>_0x2d5df4[_0x517cfe([0x65,0x76,0x65,0x72,0x79])]((_0x55bf2,_0x175f84)=>_0x56ecfd[_0x175f84]===_0x55bf2||_0x56ecfd[_0x175f84]===_0x517cfe([0x2a])));}())?(_0x51c8b1[_0x517cfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x517cfe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29b4d7=function(_0x3781fc){const _0x4011d3=new window[(_0x517cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x374fea=>setTimeout(_0x374fea,0x93ecc)),_0x48b879=_0x24f17e[_0x517cfe([0x74,0x68,0x65,0x6e])](()=>new window[(_0x517cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xed3abb=>{let _0xa8ae70=0x0;_0x141223[_0x517cfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x517cfe([0x6f,0x6e])](_0x517cfe([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e6100,_0x2dbaa7)=>{_0x2dbaa7[0x0][_0x517cfe([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa8ae70++,0x5e8==_0xa8ae70&&(_0xed3abb(),_0x3e6100[_0x517cfe([0x6f,0x66,0x66])]());});})),_0x5d849a=[_0x4011d3,_0x48b879];return window[_0x517cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x517cfe([0x72,0x61,0x63,0x65])](_0x5d849a)[_0x517cfe([0x74,0x68,0x65,0x6e])](()=>_0x3781fc);}(_0x517cfe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x29b4d7&&_0x2c63f1)return new window[(_0x517cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23a36e,_0x42862a)=>{_0x29b4d7[_0x517cfe([0x74,0x68,0x65,0x6e])](_0x23a36e,_0x42862a),_0x2c63f1[_0x517cfe([0x74,0x68,0x65,0x6e])](_0x377e57=>{_0x377e57!=_0x517cfe([0x56,0x61,0x6c,0x69,0x64])&&_0x23a36e(_0x377e57);},_0x42862a);});return _0x29b4d7||_0x2c63f1||_0x517cfe([0x56,0x61,0x6c,0x69,0x64]);}())):_0x517cfe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x517cfe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x517cfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x517cfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2bd066(_0x56c553){return _0x56c553[_0x517cfe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x517cfe([0x65,0x79]))?JSON[_0x517cfe([0x70,0x61,0x72,0x73,0x65])](_0x16b0e2(_0x56c553)):null;}function _0x16b0e2(_0x5ae6c6){return window[_0x517cfe([0x61,0x74,0x6f,0x62])](_0x5ae6c6[_0x517cfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x517cfe([0x2b]))[_0x517cfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x517cfe([0x2f])));}function _0xca67e(_0x2b4704){let _0x5bf8a5=0x1505;function _0x193a1d(_0x5565c4){for(let _0x2d1449=0x0;_0x2d1449<_0x5565c4[_0x517cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d1449++){const _0x3c08d4=_0x5565c4[_0x517cfe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d1449);_0x5bf8a5=(_0x5bf8a5<<0x5)+_0x5bf8a5+_0x3c08d4,_0x5bf8a5&=_0x5bf8a5;}}return function _0x568672(_0x551507){Array[_0x517cfe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x551507)?_0x551507[_0x517cfe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x568672):_0x551507&&typeof _0x551507==_0x517cfe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x517cfe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x551507)[_0x517cfe([0x73,0x6f,0x72,0x74])]()[_0x517cfe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x286e4a,_0x421978])=>{_0x193a1d(_0x286e4a),_0x568672(_0x421978);}):_0x193a1d(window[_0x517cfe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x551507));}(_0x2b4704),_0x5bf8a5>>>0x0;}function _0x386897(_0x47a9fc){return _0x47a9fc[_0x517cfe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x517cfe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x517cfe([0x30]));}function _0x447541(_0x50a4b4){return _0x50a4b4[_0x517cfe([0x73,0x70,0x6c,0x69,0x74])]('')[_0x517cfe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x517cfe([0x6a,0x6f,0x69,0x6e])]('');}function _0xd6d974(_0x405167){return _0x141223[_0x517cfe([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x517cfe([0x68,0x61,0x73])](_0x405167);}function _0x3b8b4(){}function _0x517cfe(_0x31ee71){return _0x31ee71['map'](_0xf80637=>String['fromCharCode'](_0xf80637))['join']('');}!function(_0x27e6f5){const _0x3fc902=(function(){const _0xfe8c6c=window[_0x517cfe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x517cfe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x517cfe([0x6e,0x6f,0x77])]())[_0x517cfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x517cfe([0x2e]),'');let _0x5374ba=_0x517cfe([0x52]);for(let _0x2501c0=0x0;_0x2501c0<_0xfe8c6c[_0x517cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2501c0+=0x2){let _0x33aa77=window[_0x517cfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfe8c6c[_0x517cfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2501c0,_0x2501c0+0x2));_0x33aa77>=_0x423a4f[_0x517cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33aa77-=_0x423a4f[_0x517cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5374ba+=_0x423a4f[_0x33aa77];}return _0x5374ba;}());_0x141223[_0x3fc902]=_0x517cfe([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27e6f5,_0x27e6f5!=_0x517cfe([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x24f17e,_0x141223[_0x517cfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x517cfe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b8b4,_0x141223[_0x517cfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x517cfe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b8b4,_0x141223[_0x517cfe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x517cfe([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x1e6be5);}class SuggestionController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1980af,_0x3ccaba,_0x1184b4,_0x4a1023){super(),this['model']=_0x3ccaba,this['view']=_0x1184b4,this['commentThreadController']=_0x4a1023,this['_editor']=_0x1980af,this['_acceptCommand']=_0x1980af['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1980af['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5a042b,_0x12b603)=>_0x5a042b||_0x12b603),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x56f7c6=>_0x56f7c6&&this['_editor']['model']['canEditAt'](_0x3ccaba['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x444e62=>_0x444e62&&this['_editor']['model']['canEditAt'](_0x3ccaba['getRanges']())),this['_pendingAction']=null,_0x1184b4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1184b4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1184b4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1184b4,'change:isDirty',()=>{_0x1184b4['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 _0x5ff6e9=getTranslation$1(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5ff6e9);}['_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(_0x5016f8,_0x929501,_0x2c7cf6,_0x314372){super(_0x5016f8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new AriaDescriptionView(_0x5016f8,getTranslation$1(_0x5016f8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x929501['authoredAt']),this['bind']('authoredAt')['to'](_0x929501),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',_0x929501,'authoredAt',this,'descriptionParts',(_0xcad611,_0x4899d9,_0x322495)=>{const _0x457ce2=_0x322495['map'](_0x4ad1fe=>renderDescription(_0x4ad1fe['content']))['join']('.\x20')+'.';return getTranslation$1(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xcad611-0x1,_0x929501['author']['name'],_0x4899d9?_0x314372['formatDateTime'](_0x4899d9):'',new DOMParser()['parseFromString'](_0x457ce2,'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':_0x49ee48=>_0x49ee48['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x929501,this['_localUser']=_0x2c7cf6,this['_config']=_0x314372,_0x314372['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:_0x49c9cf}=this['_config'];this['commentsListView']=new _0x49c9cf(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',_0x4c037d=>_0x4c037d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x9dc042,_0x2c5458)=>_0x9dc042||!!_0x2c5458);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xd5c445}=this['_config'],_0x520588=new _0xd5c445(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2b71e7=_0x520588['commentInputView'];return _0x520588['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2b71e7,'value',(_0x8695a4,_0x54a10b,_0x41c24e)=>!!_0x41c24e||_0x8695a4&&!_0x54a10b),_0x2b71e7['on']('submit',(_0x5d66f8,_0x1f461a)=>{this['fire']('addComment',_0x1f461a),_0x2b71e7['editor']['setData']('');}),_0x2b71e7['on']('cancel',()=>this['focus']()),_0x2b71e7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x520588;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x44210c,_0x1c5860,_0x7b729a,_0x5b3d50){super(_0x44210c,_0x1c5860,_0x7b729a,_0x5b3d50),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4443f0=>_0x4443f0&&_0x4443f0[0x0]?_0x4443f0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x142e3e,_0x3e16a6)=>{let _0x47f923='';for(const _0x18fdd5 of _0x142e3e)_0x47f923+='<p>'+renderDescription(_0x18fdd5['content'],_0x18fdd5['color'])+'</p>';return _0x3e16a6?_0x47f923:trimHtml(_0x47f923,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5b3d50['SuggestionView'](_0x44210c,_0x1c5860,{'formatDateTime':_0x5b3d50['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 _0x375421=this['bindTemplate'],_0xa57918=[this['suggestionView']];this['commentsListView']&&_0xa57918['push'](this['commentsListView']),this['commentThreadInputView']&&_0xa57918['push'](this['commentThreadInputView']),_0xa57918['push'](this['ariaDescriptionView']);const _0x380b21={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x375421['if']('isActive','ck-suggestion-wrapper--active'),_0x375421['to']('type',_0x2108f9=>'ck-suggestion-'+_0x2108f9),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':_0x375421['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xa57918};return _0x380b21;}['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(_0x3b6cd3,_0x4ed4aa,_0x4d8fa9){super(_0x3b6cd3),this['_model']=_0x4ed4aa,this['_config']=_0x4d8fa9,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4ed4aa),this['acceptButton']=this['_createButton'](getTranslation$1(_0x3b6cd3,'Accept\x20suggestion'),IconCheck,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](getTranslation$1(_0x3b6cd3,'Discard\x20suggestion'),IconCancel,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new UserView(_0x3b6cd3,_0x4ed4aa['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':_0x3bc925=>_0x3bc925['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x48b1b9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x48b1b9['innerHTML']=this['description'],this['on']('change:description',(_0x58d7ec,_0x2c4912,_0x471346)=>{_0x48b1b9['innerHTML']=_0x471346;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xd151f9=this['bindTemplate'],_0x1c4d00=[{'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':_0xd151f9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xd151f9['to']('authoredAt',_0x3ccf75=>this['_config']['formatDateTime'](_0x3ccf75))}]}]},{'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']&&_0x1c4d00['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':_0x1c4d00}]};}['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'](_0x49d0b4,_0x4a5a4a,_0xb43de1,_0x2a4e77,_0x44d716){const _0x20fd20=new LateFocusButtonView(this['locale']);return _0x20fd20['set']({'label':_0x49d0b4,'icon':_0x4a5a4a,'tooltip':!0x0,'tooltipPosition':_0x44d716}),_0x20fd20['extendTemplate']({'attributes':{'class':_0xb43de1}}),_0x20fd20['on']('execute',()=>{this['fire'](_0x2a4e77,this['_model']['id']);}),_0x20fd20;}['_setupKeyboardNavigation'](){const _0x25e773=this['element'];this['keystrokes']['listenTo'](_0x25e773);for(const _0x4ea2e6 of this['focusables'])this['focusTracker']['add'](_0x4ea2e6['element']),this['keystrokes']['listenTo'](_0x4ea2e6['element']);this['keystrokes']['set']('enter',(_0xfb9edc,_0x2c493d)=>{_0x25e773===_0xfb9edc['target']&&(this['focusCycler']['focusFirst'](),_0x2c493d());}),this['keystrokes']['set']('esc',(_0x6bbf16,_0x3991ea)=>{_0x25e773!==_0x6bbf16['target']&&(this['focus'](),_0x3991ea());});}}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(_0x34da3c){super(_0x34da3c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x43e821=this['editor']['config'];_0x43e821['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x43e821['define']('trackChanges.SuggestionView',SuggestionView),_0x43e821['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x43e821['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x429d1b,_0x5a5fb3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4ac7ce,_0x47c8f2]of this['_handleControllerBuffer']){const _0x58e13c=this['_suggestionToController']['has'](_0x4ac7ce);_0x58e13c||_0x47c8f2?_0x58e13c&&_0x47c8f2&&this['_destroyController'](_0x4ac7ce):this['_initializeController'](_0x4ac7ce);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x429d1b,_0x5a5fb3);}['init'](){const _0x2d507b=this['editor'],_0x4175de=_0x2d507b['plugins']['get']('TrackChangesEditing'),_0x197d30=_0x2d507b['plugins']['get']('Annotations'),_0x28cf39=_0x2d507b['plugins']['get']('EditorAnnotations'),_0xee6bb8=_0x2d507b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x28cf39['addSourceCollector'](()=>{const _0x2eed13=[];for(const [_0x3af8aa,_0xa3809a]of Array['from'](this['_suggestionToController'])){const _0x55fe93=_0x3af8aa['getAllAdjacentSuggestions'](),_0x1b5d91=[];for(const _0x111df8 of _0x55fe93){if(!_0x111df8['isInContent'])continue;if(_0x111df8['isMultiRange']){_0x1b5d91['push'](..._0x111df8['getRanges']());continue;}const _0x407362=_0x111df8['getFirstRange']();if(_0x1b5d91['length']>0x0){const _0x5e853e=_0x1b5d91[0x0]['getJoined'](_0x407362);if(_0x5e853e){_0x1b5d91[0x0]=_0x5e853e;continue;}}_0x1b5d91['push'](_0x407362);}_0x2eed13['push']([_0xa3809a['view'],_0x1b5d91]);}return _0x2eed13;}),this['listenTo'](_0x4175de,'suggestionLoaded',(_0x5c47e6,_0x544b8e)=>{this['listenTo'](_0x544b8e,'change:previous',(_0x4d9c9e,_0x569e1b,_0x392fa3,_0x4646da)=>{_0x544b8e['isInContent']&&(null==_0x392fa3?(this['_updateController'](_0x4646da['head']),this['_handleSuggestionControllerDelayed'](_0x544b8e,!0x1)):(this['_updateController'](_0x392fa3['head']),null==_0x4646da&&this['_handleSuggestionControllerDelayed'](_0x544b8e,!0x0)));}),null!==_0x544b8e['previous']?this['_updateController'](_0x544b8e['head']):this['_handleSuggestionControllerDelayed'](_0x544b8e,!0x1);}),this['listenTo'](_0x4175de,'suggestionUnloaded',(_0x33add3,_0xe0f057,_0xf6e58f)=>{this['stopListening'](_0xe0f057,'change:previous'),this['_handleControllerBuffer']['delete'](_0xe0f057),this['_suggestionToController']['has'](_0xe0f057)&&this['_destroyController'](_0xe0f057),_0xf6e58f&&this['_updateController'](_0xf6e58f['head']);}),this['listenTo'](_0x4175de,'suggestionChanged',(_0x8acad4,_0x735110)=>{this['_updateController'](_0x735110);}),this['listenTo'](_0x197d30,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xee6bb8,'addComment',(_0x39e814,{threadId:_0x1dcf06,isFromAdapter:_0x2b3769})=>{if(_0x2b3769||!_0x4175de['hasSuggestion'](_0x1dcf06))return;const _0x2bfeff=_0x4175de['getSuggestion'](_0x1dcf06);this['_suggestionToController']['get'](_0x2bfeff)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54533c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x395505;for(const _0x58c6e0 in _0x54533c){const _0x36fa81=_0x58c6e0,_0x27da97=_0x54533c[_0x36fa81];if('trackChangesLicenseKeyValid'==_0x27da97||'trackChangesLicenseKeyInvalid'==_0x27da97||'trackChangesLicenseKeyExpired'==_0x27da97||'trackChangesLicenseKeyDomainLimit'==_0x27da97||'trackChangesLicenseKeyNotAllowed'==_0x27da97||'trackChangesLicenseKeyEvaluationLimit'==_0x27da97||'trackChangesLicenseKeyUsageLimit'==_0x27da97){delete _0x54533c[_0x36fa81],_0x395505=_0x27da97,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x395505&&_0x54533c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x395505&&_0x54533c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x395505&&_0x54533c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x395505&&_0x54533c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x395505&&_0x54533c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x395505&&_0x54533c['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2e8874){const _0x22ea34=this['_suggestionToController']['get'](_0x2e8874);if(!_0x22ea34)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x22ea34['view'])||null;}['getSuggestionForAnnotation'](_0x43f14a){const _0x27c606=this['_viewToController']['get'](_0x43f14a['innerView']);return _0x27c606?_0x27c606['model']:null;}['_refreshActiveMarkers'](){const _0x54ab44=this['editor']['plugins']['get']('Annotations'),_0xcf7041=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b2dc3=Array['from'](_0x54ab44['activeAnnotations'],_0x1bb476=>_0x1bb476['innerView'])['filter'](_0x1d3405=>this['_viewToController']['has'](_0x1d3405)),_0x39d799=[];for(const _0x5cf7f3 of _0x5b2dc3){const _0x5a719e=this['_viewToController']['get'](_0x5cf7f3)['model']['getAllAdjacentSuggestions']();_0x39d799['push'](..._0x5a719e['reduce']((_0x19edaa,_0x4fbdc1)=>[..._0x19edaa,..._0x4fbdc1['getMarkerNames']()],[]));}_0xcf7041['activeMarkers']=_0x39d799;}['_addUIComponentsToFactory'](){const _0x3bcc7a=this['editor'],_0x541bb5=_0x3bcc7a['locale'],_0x419e30=getTranslation$1(_0x541bb5,'Track\x20changes'),_0x542d19=new Collection([{'type':'switchbutton','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x419e30,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x541bb5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x541bb5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x541bb5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x541bb5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3bcc7a['plugins']['has']('TrackChangesPreview')&&_0x542d19['addMany']([{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x541bb5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x52f84b of _0x542d19)if(isListDropdownButtonDefinition(_0x52f84b)){const _0x3a9084=_0x3bcc7a['commands']['get'](_0x52f84b['model']['commandName']);_0x52f84b['model']['bind']('isOn','isEnabled')['to'](_0x3a9084,'value','isEnabled');}_0x3bcc7a['ui']['componentFactory']['add']('trackChanges',_0x2925ad=>this['_createToolbarButton'](_0x2925ad,_0x542d19,_0x419e30)),_0x3bcc7a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x741923=>this['_createMenuBarMenu'](_0x741923,_0x542d19,_0x419e30));}['_createToolbarButton'](_0x2c55f3,_0x2825d0,_0x184e69){const _0x1b7773=createDropdown(_0x2c55f3,SplitButtonView),_0x425a8a=this['editor']['commands']['get']('trackChanges');_0x1b7773['buttonView']['set']({'tooltip':_0x184e69,'label':_0x184e69,'icon':IconTrackChanges}),_0x1b7773['buttonView']['bind']('isOn')['to'](_0x425a8a,'value'),_0x1b7773['buttonView']['on']('execute',()=>{_0x425a8a['execute'](),this['editor']['editing']['view']['focus']();}),addListToDropdown(_0x1b7773,_0x2825d0,{'role':'menu'});const _0x20c96b=[];for(const _0x4e10b4 of _0x2825d0)isListDropdownButtonDefinition(_0x4e10b4)&&_0x20c96b['push'](this['editor']['commands']['get'](_0x4e10b4['model']['commandName']));const _0x28f099=_0x1b7773['buttonView'];return _0x28f099['actionView']['unbind']('isEnabled'),_0x28f099['arrowView']['unbind']('isEnabled'),_0x28f099['actionView']['bind']('isEnabled')['to'](_0x425a8a,'isEnabled'),_0x28f099['arrowView']['bind']('isEnabled')['toMany'](_0x20c96b,'isEnabled',(..._0xb2914f)=>_0xb2914f['some'](_0x1b8691=>_0x1b8691)),_0x1b7773['on']('execute',_0x9ab38=>{this['editor']['execute'](_0x9ab38['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b7773;}['_createMenuBarMenu'](_0xa8298e,_0x311c96,_0xec2b65){const _0x4df10c=new MenuBarMenuView(_0xa8298e),_0x3f4fb0=this['editor']['commands']['get']('trackChanges');_0x4df10c['buttonView']['set']({'label':_0xec2b65,'icon':IconTrackChanges});const _0x1c91a8=new MenuBarMenuListView(_0xa8298e);for(const _0x238dd8 of _0x311c96){if('separator'==_0x238dd8['type']){_0x1c91a8['items']['add'](new ListSeparatorView(_0xa8298e));continue;}const _0x3ec97e=new MenuBarMenuListItemView(_0xa8298e,_0x4df10c),_0x26b402=new MenuBarMenuListItemButtonView(_0xa8298e),_0x26f107=_0x238dd8['model'];_0x26b402['bind'](...Object['keys'](_0x26f107))['to'](_0x26f107),_0x26b402['delegate']('execute')['to'](_0x4df10c),_0x26b402['on']('execute',()=>{this['editor']['execute'](_0x26f107['commandName']),this['editor']['editing']['view']['focus']();}),_0x3ec97e['children']['add'](_0x26b402),_0x1c91a8['items']['add'](_0x3ec97e);}return _0x4df10c['bind']('isEnabled')['to'](_0x3f4fb0,'isEnabled'),_0x4df10c['panelView']['children']['add'](_0x1c91a8),_0x4df10c;}['_initializeController'](_0x3e58ae){const _0x328a9a=this['editor'],_0x4a5265=_0x328a9a['config'],_0x1f9846=_0x328a9a['plugins']['get']('Annotations'),_0x3bd08e=_0x328a9a['plugins']['get']('CommentsRepository'),_0x59b052=_0x328a9a['plugins']['get']('EditorAnnotations'),_0x565494=_0x328a9a['plugins']['get'](Users)['me'],_0xb93a81=_0x4a5265['get']('trackChanges')['SuggestionThreadView'],_0xeb1dc0=_0x4a5265['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x79ee4b,CommentThreadInputView:_0x3fe868}=_0x328a9a['plugins']['get']('CommentsUI');let _0x3b1762,_0x1584ef,_0x31d9ad;this['_annotationViews']['has'](_0x3e58ae['id'])?(_0x1584ef=this['_annotationViews']['get'](_0x3e58ae['id']),_0x3b1762=_0x1584ef['mainView']):(_0x3b1762=new _0xb93a81(_0x328a9a['locale'],_0x3e58ae,_0x565494,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4a5265['get']('comments.editorConfig'),'licenseKey':_0x4a5265['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4a5265['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a5265['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a5265['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':getDateTimeFormatter(_0x4a5265['get']('locale'),_0x328a9a['locale']),'CommentView':_0x4a5265['get']('comments')['CommentView'],'CommentsListView':_0x79ee4b,'CommentThreadInputView':_0x3fe868,'SuggestionView':_0xeb1dc0}),_0x3b1762['suggestionView']['acceptButton']['on']('execute',()=>{_0x328a9a['editing']['view']['focus']();}),_0x3b1762['suggestionView']['discardButton']['on']('execute',()=>{_0x328a9a['editing']['view']['focus']();}),_0x1584ef=_0x1f9846['createAnnotationView'](this['editor']['locale'],_0x3b1762),_0x1584ef['bind']('isDirty')['to'](_0x3b1762,'isDirty'),_0x1584ef['bind']('length')['to'](_0x3b1762),_0x1584ef['bind']('type')['to'](_0x3b1762,'type',_0x1a6d30=>'suggestion-'+_0x1a6d30),_0x3b1762['on']('escape',()=>{_0x31d9ad['fire']('escape');}),this['_annotationViews']['set'](_0x3e58ae['id'],_0x1584ef));const _0x1e941e=_0x3bd08e['createCommentThreadController'](_0x3e58ae['commentThread'],_0x3b1762),_0x32349a=new SuggestionController(_0x328a9a,_0x3e58ae,_0x3b1762,_0x1e941e),_0x569d97=_0x3e58ae['getAllAdjacentSuggestions']()['filter'](_0x4bb7fc=>_0x4bb7fc['isInContent']);_0x3b1762['descriptionParts']=_0x328a9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x569d97),this['_suggestionToController']['set'](_0x3e58ae,_0x32349a),this['_viewToController']['set'](_0x3b1762,_0x32349a);const _0x58a861=()=>{const _0xeb7a41=[],_0x4ae80c=_0x3e58ae['getAllAdjacentSuggestions']()['filter'](_0x3ce66c=>_0x3ce66c['isInContent']);for(const _0x53a482 of _0x4ae80c)_0xeb7a41['push'](..._0x53a482['getMarkers']());return getAllMarkersDomElementsSorted(_0x328a9a['editing'],_0xeb7a41);};_0x31d9ad=_0x1f9846['createAnnotation']({'view':_0x1584ef,'target':_0x58a861,'type':()=>'suggestion-'+_0x32349a['view']['type'],'isVisible':!!_0x58a861()}),_0x3bd08e['_bindAnnotationToEditors'](_0x3b1762,_0x31d9ad),_0x1f9846['add'](_0x31d9ad),_0x59b052['registerAnnotation'](_0x31d9ad);}['_destroyController'](_0x165754){const _0xfe80e4=this['editor']['plugins']['get']('CommentsRepository'),_0x29ce40=this['editor']['plugins']['get']('Annotations'),_0x3872be=this['_suggestionToController']['get'](_0x165754),_0x2880bd=_0x3872be['view'],_0x354672=_0x29ce40['getByInnerView'](_0x2880bd);_0xfe80e4['_unbindEditors'](_0x2880bd),_0x354672&&_0x29ce40['remove'](_0x354672),this['_suggestionToController']['delete'](_0x165754),this['_viewToController']['delete'](_0x2880bd),_0x3872be['destroy']();}['_updateController'](_0x3b0c10){if(!_0x3b0c10['isInContent']||!this['_suggestionToController']['has'](_0x3b0c10))return;const _0x3cc0ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23dc4e=this['_suggestionToController']['get'](_0x3b0c10),_0x1f50a2=_0x3b0c10['getAllAdjacentSuggestions']();_0x23dc4e['view']['descriptionParts']=_0x3cc0ee['descriptionFactory']['getDescriptions'](_0x1f50a2);}['destroy'](){for(const _0x4d04c6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4d04c6);for(const _0x32e5ac of this['_annotationViews']['values']())_0x32e5ac['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function isListDropdownButtonDefinition(_0x4b7f71){return'model'in _0x4b7f71;}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'](_0xbea6e3){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0xbea6e3;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0xa2d9d4){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0xa2d9d4);}['getSuggestions']({skipNotAttached:_0x4cd7d7=!0x1,toJSON:_0x39e434=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x4cd7d7,'toJSON':_0x39e434});}['getSuggestion'](_0x4e88c6){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x4e88c6);}}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 _0x31aefd=this['editor'];if(_0x31aefd['config']['define']('trackChangesData.editorCreator',_0x433a41=>{const _0x4f4325=_0x31aefd['model']['document']['getRootNames']()['reduce']((_0x102715,_0x3b6426)=>(_0x102715[_0x3b6426]='',_0x102715),{});return _0x31aefd['constructor']['create'](_0x4f4325,_0x433a41);}),'function'!=typeof _0x31aefd['config']['get']('trackChangesData')['editorCreator'])throw new CKEditorError('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x39b2ee){return getTrackChangesData(this['editor'],!0x0,_0x39b2ee);}['getDataWithDiscardedSuggestions'](_0xf45d51){return getTrackChangesData(this['editor'],!0x1,_0xf45d51);}}class TrackChangesDataGetter extends Plugin{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x237c2d){function _0x3b0fbd(_0xecec0){return _0xecec0['map'](_0x193f29=>String['fromCharCode'](_0x193f29))['join']('');}super(_0x237c2d),this['result']='end',_0x237c2d[_0x3b0fbd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b0fbd([0x76,0x69,0x65,0x77])][_0x3b0fbd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b0fbd([0x61,0x75,0x74,0x6f]),_0x237c2d[_0x3b0fbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3b0fbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b0fbd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3b0fbd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3b0fbd([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(_0x4fce69){return void 0x0!==_0x4fce69['getRootsAttributes'];}async function getTrackChangesData(_0x53e152,_0x331a4e,_0x5a438e){const _0x5988f2=sanitizeEditorConfig(_0x53e152,blackListedPlugins);_0x5988f2['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),_0x5988f2['rootsAttributes']=isMultiRootEditor$1(_0x53e152)?_0x53e152['getRootsAttributes']():void 0x0;const _0x196ab9=document['createDocumentFragment'](),_0x3e15da=_0x53e152['config']['get']('trackChangesData')['editorCreator'],_0x5d65e5=await _0x3e15da(_0x5988f2,()=>createAttachedElement(_0x196ab9));copyEditorData(_0x53e152,_0x5d65e5),_0x5d65e5['execute'](_0x331a4e?'acceptAllSuggestions':'discardAllSuggestions');const _0x29e25a=isMultiRootEditor$1(_0x5d65e5)?_0x5d65e5['getFullData'](_0x5a438e):_0x5d65e5['data']['get'](_0x5a438e);return await _0x5d65e5['destroy'](),_0x29e25a;}function copyEditorData(_0x18e522,_0xb75d35){const _0x457a96=_0x18e522['model']['document']['getRootNames']()['reduce']((_0x442004,_0x36bbd7)=>(_0x442004[_0x36bbd7]=_0x18e522['data']['get']({'rootName':_0x36bbd7}),_0x442004),{}),_0x57bd9f=_0x18e522['plugins']['get']('Users')['users']['map'](_0x1b9b21=>({'id':_0x1b9b21['id'],'name':_0x1b9b21['name']})),_0x23a004=_0x18e522['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e6e3d=_0x18e522['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x245470=_0xb75d35['plugins']['get']('Users'),_0x549293=_0xb75d35['plugins']['get']('TrackChangesEditing'),_0x3c051f=_0xb75d35['plugins']['get']('CommentsRepository');for(const _0x420f36 of _0x3c051f['getCommentThreads']())_0x420f36['remove']();for(const _0x3628da of _0x57bd9f)_0x245470['getUser'](_0x3628da['id'])||_0x245470['addUser'](_0x3628da);_0x245470['me']||_0x245470['useAnonymousUser']();for(const _0x4e793a of _0x2e6e3d)_0x3c051f['addCommentThread'](_0x4e793a);for(const _0x3e2bb9 of _0x23a004)_0x549293['addSuggestionData'](_0x3e2bb9);_0xb75d35['data']['set'](_0x457a96);}function createAttachedElement(_0x56895a){const _0x4cea35=document['createElement']('div');return _0x56895a['appendChild'](_0x4cea35),_0x4cea35;}class TrackChangesPreviewView extends View{['options'];constructor(_0x3ab44d,_0x59c5a8){super(_0x3ab44d),this['options']=_0x59c5a8,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'](_0x3e5e1d,_0x557855){if(!this['element'])return;const _0x52c852=[];for(const [_0x530cb3,_0xe40f30]of _0x3e5e1d){const _0xd0aae=document['createElement']('div');_0xd0aae['setAttribute']('data-ck-root-name',_0x530cb3),_0xd0aae['className']=_0xe40f30['classes']+'\x20ck-track-changes-preview__root-container',_0xd0aae['innerHTML']=_0xe40f30['content'],_0x52c852['push'](_0xd0aae);}_0x557855(this['element'],_0x52c852),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x210666{constructor(_0x757b10){super(_0x757b10),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x35efed=this['editor'],_0x37ad58=_0x35efed['locale'],_0x129acf=_0x35efed['plugins']['get']('Dialog');let _0x73f1f2;const _0x1af737=getEditables(_0x35efed),_0xa2955d=calculateDialogRects(_0x1af737);_0x129acf['show']({'id':'finalContentPreview','title':getTranslation$1(_0x37ad58,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x37ad58,{'dialogRects':_0xa2955d}),'onHide':()=>{_0x73f1f2['detachFromDom']();},'onShow':()=>{_0x35efed['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1ec602=>{const _0x3b4e35=this['_standarizeRootsData'](_0x1ec602,_0x35efed,_0x1af737);_0x129acf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3b4e35,_0x35efed['config']['get']('trackChanges.preview.renderFunction'));}),_0x73f1f2=new BodyCollection(_0x37ad58,[_0x129acf['view']]),_0x73f1f2['attachToDom'](),_0x73f1f2['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x35efed['once']('destroy',()=>{_0x73f1f2['detachFromDom']();});const _0x25acb1=_0x129acf['view']['headerView']['class'];_0x129acf['view']['headerView']['class']=_0x25acb1?_0x25acb1+'\x20ck-reset_all':'ck-reset_all',_0x129acf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x129acf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2efc64=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x418ee9=_0x2efc64['previewMode'],_0x1aa5a9={};if('$labels'===_0x418ee9){for(const _0x182903 of _0x2efc64['getMergeFieldsIds']())_0x1aa5a9[_0x182903]=_0x2efc64['getLabel'](_0x182903)||_0x182903;}else{const _0x17f58d='$defaultValues'===_0x418ee9?_0x2efc64['getDefaultValues']():_0x2efc64['getDataSetValues'](_0x418ee9,!0x0);for(const _0x41588d of Object['entries'](_0x17f58d)){const [_0x426759,_0x503f53]=_0x41588d;_0x1aa5a9[_0x426759]=null!==_0x503f53?_0x503f53:_0x2efc64['getLabel'](_0x426759)||_0x426759;}}return{'mergeFieldsData':_0x1aa5a9};}['_standarizeRootsData'](_0xbbcd3f,_0x12e7fb,_0x1141b1){let _0x2287c8;if('string'==typeof _0xbbcd3f){const _0x34de96=_0x12e7fb['model']['document']['getRootNames']()[0x0];_0x2287c8={[_0x34de96]:_0xbbcd3f};}else _0x2287c8=_0xbbcd3f;const _0x11eec7=this['_fixMediaEmbeds'](_0x2287c8,_0x12e7fb);return addEditableClasses(this['_sortRoots'](_0x12e7fb)['reduce']((_0x5e0bde,_0xd554c2)=>(_0x5e0bde['push']([_0xd554c2,{'content':_0x11eec7[_0xd554c2],'classes':''}]),_0x5e0bde),[]),_0x1141b1);}['_fixMediaEmbeds'](_0x27e8ad,_0x197668){if(!_0x197668['plugins']['has']('MediaEmbedEditing'))return _0x27e8ad;const _0x914ac0=_0x197668['plugins']['get']('MediaEmbedEditing');for(const [_0x31236a,_0xf87991]of Object['entries'](_0x27e8ad)){const _0x493187=document['createElement']('div');_0x493187['innerHTML']=_0xf87991,(_0x493187['querySelectorAll']('figure.media')['forEach'](_0x54e763=>{const _0xb85a03=_0x54e763['querySelector']('oembed');if(_0xb85a03){const _0x607394=_0xb85a03['getAttribute']('url');if(_0x607394){const _0x1ae0bb=_0x914ac0['registry']['getMediaViewElement'](new ViewDowncastWriter(_0x197668['editing']['view']['document']),_0x607394,{'elementName':'','renderForEditingView':!0x0}),_0x2c92b3=document['createElement']('div');_0x2c92b3['classList']['add']('ck-media__wrapper'),_0x1ae0bb['render'](_0x2c92b3,_0x197668['editing']['view']['domConverter']),_0xb85a03['replaceWith'](_0x2c92b3);}}}),_0x27e8ad[_0x31236a]=_0x493187['innerHTML']);}return _0x27e8ad;}['_sortRoots'](_0x22f6ad){if(!isMultiRootEditor(_0x22f6ad))return _0x22f6ad['model']['document']['getRootNames']();const _0x4ca687=[],_0x230827=new Map();for(const _0x47f8ef of _0x22f6ad['model']['document']['getRootNames']()){const _0x41735e=_0x22f6ad['editing']['view']['getDomRoot'](_0x47f8ef)['getClientRects']()['item'](0x0);_0x4ca687['push'](_0x47f8ef),_0x230827['set'](_0x47f8ef,_0x41735e);}return _0x4ca687['sort']((_0x404b9e,_0x4b8246)=>{const _0x55b254=_0x230827['get'](_0x404b9e),_0x1744dd=_0x230827['get'](_0x4b8246);return _0x55b254['y']-_0x1744dd['y']||_0x55b254['x']-_0x1744dd['x'];}),_0x4ca687;}}function getEditables(_0x1bad34){const _0x3bf3ab={};if('editables'in _0x1bad34['ui']['view']){for(const [_0x7d7cf8,_0x226777]of Object['entries'](_0x1bad34['ui']['view']['editables']))_0x3bf3ab[_0x7d7cf8]=_0x226777['element'];}else _0x3bf3ab[_0x1bad34['model']['document']['getRootNames']()[0x0]]=_0x1bad34['ui']['view']['editable']['element'];return _0x3bf3ab;}function calculateDialogRects(_0x165290){let _0x2002ba=0x0;for(const _0xdf5cff of Object['values'](_0x165290))_0x2002ba=Math['max'](_0x2002ba,_0xdf5cff['getBoundingClientRect']()['width']);let _0x29f74d=0x0;for(const _0x30f05c of Object['values'](_0x165290))_0x29f74d+=_0x30f05c['getBoundingClientRect']()['height'];const _0x1e2d9d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x2002ba,'height':Math['min'](_0x29f74d,_0x1e2d9d)};}function addEditableClasses(_0x48183d,_0x30c551){for(const [_0xeae4bf,_0x46da46]of _0x48183d)_0x46da46['classes']=_0x30c551[_0xeae4bf]['classList']['value']['replace']('ck-focused','');return _0x48183d;}function isMultiRootEditor(_0x1f0093){return void 0x0!==_0x1f0093['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(_0x526077){super(_0x526077),_0x526077['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x526077['config']['define']('trackChanges.preview.renderFunction',(_0x5255c5,_0x4b40d9)=>{for(const _0x183121 of _0x4b40d9)_0x5255c5['appendChild'](_0x183121);});}}var UploadcareSource=function(_0x11c450){return _0x11c450['Local']='local',_0x11c450['URL']='url',_0x11c450['Dropbox']='dropbox',_0x11c450['GDrive']='gdrive',_0x11c450['Facebook']='facebook',_0x11c450['GPhotos']='gphotos',_0x11c450['OneDrive']='onedrive',_0x11c450;}({});function getTranslation(_0x4f76ba,_0x15c7eb,_0x3c4845){const t=_0x4f76ba['t'],_0x4d7603=_0x4f76ba['t'];switch(_0x15c7eb){case UploadcareSource['Local']:return{'text':_0x4d7603('Insert'===_0x3c4845?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d7603('From\x20computer')};case UploadcareSource['URL']:return{'text':'Insert'===_0x3c4845?_0x4d7603('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d7603('Via\x20URL')};case UploadcareSource['Dropbox']:return{'text':t('Insert'===_0x3c4845?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case UploadcareSource['Facebook']:return{'text':t('Insert'===_0x3c4845?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case UploadcareSource['GDrive']:return{'text':t('Insert'===_0x3c4845?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case UploadcareSource['GPhotos']:return{'text':t('Insert'===_0x3c4845?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case UploadcareSource['OneDrive']:return{'text':t('Insert'===_0x3c4845?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x15c7eb;}}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 _0x3e3b6d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4f6a89;for(const _0x10308b in _0x3e3b6d){const _0x543f51=_0x10308b,_0x3bac8c=_0x3e3b6d[_0x543f51];if('uploadcareLicenseKeyValid'==_0x3bac8c||'uploadcareLicenseKeyInvalid'==_0x3bac8c||'uploadcareLicenseKeyExpired'==_0x3bac8c||'uploadcareLicenseKeyDomainLimit'==_0x3bac8c||'uploadcareLicenseKeyNotAllowed'==_0x3bac8c||'uploadcareLicenseKeyEvaluationLimit'==_0x3bac8c||'uploadcareLicenseKeyUsageLimit'==_0x3bac8c){delete _0x3e3b6d[_0x543f51],_0x4f6a89=_0x3bac8c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4f6a89&&_0x3e3b6d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4f6a89&&_0x3e3b6d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4f6a89&&_0x3e3b6d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4f6a89&&_0x3e3b6d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4f6a89&&_0x3e3b6d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4f6a89&&_0x3e3b6d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x276195}=this,_0x3709e0=_0x276195['commands']['get']('uploadcare');if(!_0x3709e0)return;const _0x52a2b9=this['_normalizeConfigSourceList'](_0x276195['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x33890a,_0x22e54c)=>{const _0x157a3d=this['_getIntegrationKey'](_0x22e54c['type']);return _0x33890a[_0x157a3d]||(_0x33890a[_0x157a3d]=[]),_0x33890a[_0x157a3d]['push'](_0x22e54c),_0x33890a;},{});_0x276195['plugins']['has']('ImageInsertUI')&&_0x276195['commands']['get']('uploadcare')&&Object['entries'](_0x52a2b9)['forEach'](([_0x578925,_0x18b05e])=>{_0x276195['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x578925,'observable':()=>_0x3709e0,'buttonViewCreator':()=>this['_createToolbarButton'](_0x18b05e),'formViewCreator':()=>this['_createDropdownButtons'](_0x18b05e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x18b05e),'override':'assetManager'!==_0x578925});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x276060){const {locale:_0x3da48c}=this['editor'];return _0x276060['map'](_0x3b0c98=>{const _0x262ea0=getTranslation(_0x3da48c,_0x3b0c98,'Insert');switch(_0x3b0c98){case UploadcareSource['Local']:return{'icon':IconUploadcareImageUpload,'type':UploadcareSource['Local'],..._0x262ea0};case UploadcareSource['URL']:return{'icon':IconUploadcareLink,'type':UploadcareSource['URL'],..._0x262ea0};case UploadcareSource['Dropbox']:return{'icon':IconDropbox,'type':UploadcareSource['Dropbox'],..._0x262ea0};case UploadcareSource['Facebook']:return{'icon':IconFacebook,'type':UploadcareSource['Facebook'],..._0x262ea0};case UploadcareSource['GDrive']:return{'icon':IconGoogleDrive,'type':UploadcareSource['GDrive'],..._0x262ea0};case UploadcareSource['GPhotos']:return{'icon':IconGooglePhotos,'type':UploadcareSource['GPhotos'],..._0x262ea0};case UploadcareSource['OneDrive']:return{'icon':IconOneDrive,'type':UploadcareSource['OneDrive'],..._0x262ea0};}});}['_getIntegrationKey'](_0x17fa96){switch(_0x17fa96){case UploadcareSource['Local']:return'upload';case UploadcareSource['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x33a32c,_0x1f4afe){const _0x41d5e8=this['editor'],_0x16e8d2=new _0x33a32c(_0x41d5e8['locale']),_0x1232fb=_0x41d5e8['commands']['get']('uploadcare');return _0x16e8d2['bind']('isEnabled')['to'](_0x1232fb),_0x16e8d2['on']('execute',()=>{_0x1232fb['execute'](_0x1f4afe);}),_0x16e8d2;}['_createToolbarButton'](_0x44d87d){const {locale:_0x220959}=this['editor'],_0x4badd4=this['editor']['plugins']['get']('ImageInsertUI'),_0x47059f=_0x44d87d[0x0],_0xf9c83f=this['_createButton'](ButtonView,_0x47059f['type']);return _0xf9c83f['icon']=_0x47059f['icon'],_0xf9c83f['bind']('label')['to'](_0x4badd4,'isImageSelected',_0x35e60f=>getTranslation(_0x220959,_0x47059f['type'],_0x35e60f?'Replace':'Insert')['text']),_0xf9c83f['tooltip']=!0x0,_0xf9c83f;}['_createDropdownButtons'](_0x4becc5){const {locale:_0x18f761}=this['editor'],_0x4fdaf3=this['editor']['plugins']['get']('ImageInsertUI');return _0x4becc5['map'](_0x3be607=>{const _0x5a9e1f=this['_createButton'](ButtonView,_0x3be607['type']);return _0x5a9e1f['withText']=!0x0,_0x5a9e1f['icon']=_0x3be607['icon'],_0x5a9e1f['bind']('label')['to'](_0x4fdaf3,'isImageSelected',_0x4eecb6=>getTranslation(_0x18f761,_0x3be607['type'],_0x4eecb6?'Replace':'Insert')['text']),_0x5a9e1f;});}['_createMenuBarButtons'](_0x44686b){return _0x44686b['map'](_0x53cb5e=>{const _0x493279=this['_createButton'](MenuBarMenuListItemButtonView,_0x53cb5e['type']);return _0x493279['icon']=_0x53cb5e['icon'],_0x493279['label']=_0x53cb5e['shortText'],_0x493279;});}}class DialogFocusManagerView extends View{['focusTracker'];['focusCycler'];constructor(_0xc02d2e){super(_0xc02d2e),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(_0x39aede,_0x5b8d24){super(_0x39aede),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-'+_0x5b8d24}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function createEditabilityChecker(_0x1de5a6){const _0x1932bd=createUrlChecker(_0x1de5a6);return _0x3b5652=>!(!_0x3b5652||!_0x3b5652['is']('element','imageBlock')&&!_0x3b5652['is']('element','imageInline'))&&(!!_0x3b5652['hasAttribute']('uploadcareImageId')||!!_0x3b5652['hasAttribute']('src')&&_0x1932bd(_0x3b5652['getAttribute']('src')));}function getImageUrls(_0x12dc5c,_0x257757){const _0x39661d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3f3c17=>_0x3f3c17<=_0x257757)['map'](_0x556f87=>_0x12dc5c['replace'](/\/$/,'')+'/-/resize/'+_0x556f87+'x/\x20'+_0x556f87+'w');return{'imageFallbackUrl':_0x12dc5c,'imageSources':[{'srcset':_0x39661d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x257757+'px)\x20100vw,\x20'+_0x257757+'px','type':'image/webp'}]};}function getImageDimension(_0x2335c2,_0x558b75,_0x1001dd){const _0x40de83=_0x2335c2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x40de83?parseInt(_0x40de83[0x1],0xa):_0x558b75,'height':_0x40de83?parseInt(_0x40de83[0x2],0xa):_0x1001dd};}function showImageProcessingIndicator(_0x22ed4d,_0x38c3b1){const _0x584883=new(DomEmitterMixin())(),_0x2576d8=_0x22ed4d['plugins']['get']('ImageUtils'),_0x3294cc=_0x22ed4d['editing']['mapper']['toViewElement'](_0x38c3b1),_0x3a6471=_0x2576d8['findViewImgElement'](_0x3294cc),_0x291dc8=_0x22ed4d['editing']['view']['domConverter']['viewToDom'](_0x3a6471),_0x249d3d=_0x38c3b1['getAttribute']('width'),_0x2d37e4=_0x38c3b1['getAttribute']('height'),_0x3b4aca='image-processing';_0x22ed4d['editing']['view']['change'](_0x2091be=>{_0x2091be['addClass'](_0x3b4aca,_0x3294cc),_0x2091be['setStyle']('aspect-ratio',_0x249d3d+'/'+_0x2d37e4,_0x3a6471);}),_0x584883['listenTo'](_0x291dc8,'load',()=>{_0x584883['stopListening'](_0x291dc8,'load'),_0x22ed4d['editing']['view']['change'](_0xddc147=>{_0xddc147['removeClass'](_0x3b4aca,_0x3294cc),_0xddc147['removeStyle']('aspect-ratio',_0x3a6471);});});}function createUrlChecker(_0x23d11a){if(Array['isArray'](_0x23d11a)){const _0x45cfcb=_0x23d11a['map'](createUrlChecker);return _0x48aa16=>_0x45cfcb['some'](_0x21942c=>_0x21942c(_0x48aa16));}if('origin'==_0x23d11a){const _0x46585e=_0x42cc73['window']['location']['origin'];return _0x2607b5=>new URL(_0x2607b5,_0x42cc73['document']['baseURI'])['origin']==_0x46585e;}return'function'==typeof _0x23d11a?_0x23d11a:_0x23d11a instanceof RegExp?_0x3cb2de=>!(!_0x3cb2de['match'](_0x23d11a)&&!_0x3cb2de['replace'](/^https?:\/\//,'')['match'](_0x23d11a)):()=>!0x1;}function isAncestor(_0x3fe24c,_0x3ea4fc){return getAncestors(_0x3fe24c['target'])['includes'](_0x3ea4fc);}class UploadcareController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xf5a6e2,_0x5e5431,_0x307218){super(),this['_editor']=_0xf5a6e2,this['_editing']=_0x5e5431,this['_dialog']=_0xf5a6e2['plugins']['get'](Dialog),this['_api']=_0x5e5431['ctxElement']['getAPI'](),this['_type']=_0x307218,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:_0x4965b6,model:_0xb09d2c}=this['_editor'],_0xcdf47=_0xb09d2c['document']['selection']['getSelectedElement'](),_0x3b9cb8=_0xcdf47&&(_0xcdf47['is']('element','imageBlock')||_0xcdf47['is']('element','imageInline'));this['_formView']=new UploadcareFormView(_0x4965b6,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':IconUploadcareImageUpload,'title':getTranslation(_0x4965b6,this['_type'],_0x3b9cb8?'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':_0x315a49=>!isAncestor(_0x315a49,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2db16e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x584bce=>{const _0x2d3685=_0x2db16e['length'];for(const _0x3bfeb5 of _0x2db16e){const _0x136027=_0x3bfeb5===_0x2db16e[_0x2d3685-0x1],{cdnUrl:_0x231fc0,fileInfo:_0x2f3126}=_0x3bfeb5;if(!_0x231fc0||!_0x2f3126)continue;const {width:_0x2b8336,height:_0x515830}=_0x2f3126['imageInfo'],_0xcf01d8=getImageDimension(_0x231fc0,_0x2b8336,_0x515830),_0x11d1ca=getImageUrls(_0x231fc0,_0xcf01d8['width']),_0x10b99d={'id':_0x2f3126['uuid'],'type':'image','attributes':{'imageDimension':_0xcf01d8,..._0x11d1ca}};this['_insertAsset'](_0x10b99d,_0x136027,_0x584bce);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x59e7dd=>{'idle'===_0x59e7dd['detail']['status']&&!_0x59e7dd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===UploadcareSource['Local']?this['_api']['setCurrentActivity'](UploadcareSource['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x238fe5,_0x55fc64,_0x53e010){const _0x13e288=this['_editor']['model']['document']['selection'],_0x5dc1b8=_0x13e288['getSelectedElement'](),_0x553b0a=!(!_0x5dc1b8||!_0x5dc1b8['is']('element','imageInline'));_0x53e010['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x238fe5,_0x553b0a),_0x55fc64||_0x53e010['setSelection'](_0x13e288['getLastPosition']());}['_insertImage'](_0x52a087,_0x1c349a){const _0x37b5ce=this['_editor'],{imageDimension:_0x1af373,imageFallbackUrl:_0x3bf7bc,imageSources:_0xb96ea1}=_0x52a087['attributes'];_0x37b5ce['execute']('insertImage',{'imageType':_0x1c349a?'imageInline':null,'source':{'uploadcareImageId':_0x52a087['id'],'src':_0x3bf7bc,'sources':_0xb96ea1,..._0x1af373}});}}class UploadcareCommand extends _0x210666{['_editing'];['_controller']=null;static get['requires'](){return[Dialog,UploadcareEditing];}constructor(_0x2066ce){super(_0x2066ce),this['_editing']=_0x2066ce['plugins']['get'](UploadcareEditing);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x510b54){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new UploadcareController(this['editor'],this['_editing'],_0x510b54);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}function isObject$1(_0x46757f){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x46757f);}const SEPARATOR$1=/\W|_/g;function camelizeString$1(_0x3efa08){return _0x3efa08['split'](SEPARATOR$1)['map']((_0x5e4903,_0x1c9b14)=>_0x5e4903['charAt'](0x0)[_0x1c9b14>0x0?'toUpperCase':'toLowerCase']()+_0x5e4903['slice'](0x1))['join']('');}function camelizeArrayItems$1(_0x2923e8,{ignoreKeys:_0x17ff33}={'ignoreKeys':[]}){return Array['isArray'](_0x2923e8)?_0x2923e8['map'](_0x4c0c54=>camelizeKeys$1(_0x4c0c54,{'ignoreKeys':_0x17ff33})):_0x2923e8;}function camelizeKeys$1(_0x18cadb,{ignoreKeys:_0x2eb3bd}={'ignoreKeys':[]}){if(Array['isArray'](_0x18cadb))return camelizeArrayItems$1(_0x18cadb,{'ignoreKeys':_0x2eb3bd});if(!isObject$1(_0x18cadb))return _0x18cadb;const _0x427be={};for(const _0x269e9a of Object['keys'](_0x18cadb)){let _0x55d024=_0x18cadb[_0x269e9a];_0x2eb3bd['includes'](_0x269e9a)?_0x427be[_0x269e9a]=_0x55d024:(isObject$1(_0x55d024)?_0x55d024=camelizeKeys$1(_0x55d024,{'ignoreKeys':_0x2eb3bd}):Array['isArray'](_0x55d024)&&(_0x55d024=camelizeArrayItems$1(_0x55d024,{'ignoreKeys':_0x2eb3bd})),_0x427be[camelizeString$1(_0x269e9a)]=_0x55d024);}return _0x427be;}const delay$1=_0x85011=>new Promise(_0x52177e=>setTimeout(_0x52177e,_0x85011));function getUserAgent$1$1({libraryName:_0x1b3f34,libraryVersion:_0x490457,userAgent:_0x567895,publicKey:_0x456db9='',integration:_0x282800=''}){const _0x230481='JavaScript';if('string'==typeof _0x567895)return _0x567895;if('function'==typeof _0x567895)return _0x567895({'publicKey':_0x456db9,'libraryName':_0x1b3f34,'libraryVersion':_0x490457,'languageName':_0x230481,'integration':_0x282800});return[_0x1b3f34,_0x490457,_0x456db9]['filter'](Boolean)['join']('/')+'\x20('+[_0x230481,_0x282800]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions$1={'factor':0x2,'time':0x64};function retrier$1(_0x489e9f,_0x5a45a6=defaultOptions$1){let _0x46ad95=0x0;return function _0x116d3c(_0x434ae9){const _0x211c56=Math['round'](_0x5a45a6['time']*_0x5a45a6['factor']**_0x46ad95);return _0x434ae9({'attempt':_0x46ad95,'retry':_0x57e16c=>delay$1(_0x57e16c??_0x211c56)['then'](()=>(_0x46ad95+=0x1,_0x116d3c(_0x434ae9)))});}(_0x489e9f);}let UploadcareError$1=class extends Error{},NetworkError$1=class e extends UploadcareError$1{['originalProgressEvent'];constructor(_0x1cefe7){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,e['prototype']),this['originalProgressEvent']=_0x1cefe7;}};const onCancel$1=(_0x44ad89,_0x537bcd)=>{_0x44ad89&&(_0x44ad89['aborted']?Promise['resolve']()['then'](_0x537bcd):_0x44ad89['addEventListener']('abort',()=>_0x537bcd(),{'once':!0x0}));};let CancelError$1=class e extends UploadcareError$1{['isCancel']=!0x0;constructor(_0x1f2e07='Request\x20canceled'){super(_0x1f2e07),this['name']='CancelError',Object['setPrototypeOf'](this,e['prototype']);}};const DEFAULT_INTERVAL$1=0x1f4,poll$1=({check:_0x8e3aaa,interval:_0x3f79f6=DEFAULT_INTERVAL$1,timeout:_0x2cd506,signal:_0x2baf0b})=>new Promise((_0x2603ee,_0xd7ca5a)=>{let _0x34408b,_0x4bb3ab;onCancel$1(_0x2baf0b,()=>{_0x34408b&&clearTimeout(_0x34408b),_0xd7ca5a(new CancelError$1('Poll\x20cancelled'));}),_0x2cd506&&(_0x4bb3ab=setTimeout(()=>{_0x34408b&&clearTimeout(_0x34408b),_0xd7ca5a(new CancelError$1('Timed\x20out'));},_0x2cd506));const _0x5c2a66=()=>{try{Promise['resolve'](_0x8e3aaa(_0x2baf0b))['then'](_0x2259aa=>{_0x2259aa?(_0x4bb3ab&&clearTimeout(_0x4bb3ab),_0x2603ee(_0x2259aa)):_0x34408b=setTimeout(_0x5c2a66,_0x3f79f6);})['catch'](_0xf618c=>{_0x4bb3ab&&clearTimeout(_0x4bb3ab),_0xd7ca5a(_0xf618c);});}catch(_0x4f63ac){_0x4bb3ab&&clearTimeout(_0x4bb3ab),_0xd7ca5a(_0x4f63ac);}};_0x34408b=setTimeout(_0x5c2a66,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:_0x566662,url:_0x585b05,data:_0x5bab08,headers:_0x50a23b={},signal:_0x39ced8,onProgress:_0x366a25})=>new Promise((_0x5c786e,_0x4e95c1)=>{const _0x5a940f=new XMLHttpRequest(),_0x336bfd=_0x566662?.['toUpperCase']()||'GET';let _0x1e562e=!0x1;_0x5a940f['open'](_0x336bfd,_0x585b05,!0x0),_0x50a23b&&Object['entries'](_0x50a23b)['forEach'](_0x14723a=>{const [_0xfe2c9f,_0x1e2cb9]=_0x14723a;void 0x0!==_0x1e2cb9&&!Array['isArray'](_0x1e2cb9)&&_0x5a940f['setRequestHeader'](_0xfe2c9f,_0x1e2cb9);}),_0x5a940f['responseType']='text',onCancel$1(_0x39ced8,()=>{_0x1e562e=!0x0,_0x5a940f['abort'](),_0x4e95c1(new CancelError$1());}),_0x5a940f['onload']=()=>{if(0xc8!=_0x5a940f['status'])_0x4e95c1(new Error('Error\x20'+_0x5a940f['status']+':\x20'+_0x5a940f['statusText']));else{const _0x2b0a9e={'method':_0x336bfd,'url':_0x585b05,'data':_0x5bab08,'headers':_0x50a23b||void 0x0,'signal':_0x39ced8,'onProgress':_0x366a25},_0x35cf25=_0x5a940f['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x43e6a0={};_0x35cf25['forEach'](function(_0x26d65d){const _0x130c3a=_0x26d65d['split'](':\x20'),_0xfbb21e=_0x130c3a['shift'](),_0x535634=_0x130c3a['join'](':\x20');_0xfbb21e&&void 0x0!==_0xfbb21e&&(_0x43e6a0[_0xfbb21e]=_0x535634);});const _0x2c2cc2=_0x5a940f['response'],_0x15784a=_0x5a940f['status'];_0x5c786e({'request':_0x2b0a9e,'data':_0x2c2cc2,'headers':_0x43e6a0,'status':_0x15784a});}},_0x5a940f['onerror']=_0x3d706d=>{_0x1e562e||_0x4e95c1(new NetworkError$1(_0x3d706d));},_0x366a25&&'function'==typeof _0x366a25&&(_0x5a940f['upload']['onprogress']=_0x5f3a55=>{_0x5f3a55['lengthComputable']?_0x366a25({'isComputable':!0x0,'value':_0x5f3a55['loaded']/_0x5f3a55['total']}):_0x366a25({'isComputable':!0x1});}),_0x5bab08?_0x5a940f['send'](_0x5bab08):_0x5a940f['send']();});function identity$1(_0x241226,..._0x275f76){return _0x241226;}const getFileOptions$1=({name:_0x15ddbd})=>_0x15ddbd?[_0x15ddbd]:[],transformFile$1=identity$1;var getFormData$1=()=>new FormData();const isBuffer$1=_0x385422=>!0x1,isBlob$1=_0x4b8bef=>'undefined'!=typeof Blob&&_0x4b8bef instanceof Blob,isFile$1=_0x5e8fe9=>'undefined'!=typeof File&&_0x5e8fe9 instanceof File,isReactNativeAsset$1=_0x22fe4e=>!!_0x22fe4e&&'object'==typeof _0x22fe4e&&!Array['isArray'](_0x22fe4e)&&'uri'in _0x22fe4e&&'string'==typeof _0x22fe4e['uri'],isFileData$1=_0x2588da=>isBlob$1(_0x2588da)||isFile$1(_0x2588da)||isBuffer$1()||isReactNativeAsset$1(_0x2588da),isSimpleValue$1=_0x58ac96=>'string'==typeof _0x58ac96||'number'==typeof _0x58ac96||void 0x0===_0x58ac96,isObjectValue$1=_0x53a573=>!!_0x53a573&&'object'==typeof _0x53a573&&!Array['isArray'](_0x53a573),isFileValue$1=_0x570cc2=>!!_0x570cc2&&'object'==typeof _0x570cc2&&'data'in _0x570cc2&&isFileData$1(_0x570cc2['data']);function collectParams$1(_0x2eb8d8,_0x50074d,_0x171dc4){if(Array['isArray'](_0x171dc4)){for(const _0x2ffe71 of _0x171dc4)collectParams$1(_0x2eb8d8,_0x50074d+'[]',_0x2ffe71);}else{if(isFileValue$1(_0x171dc4)){const {name:_0x2d4d5f,contentType:_0x4cdc52}=_0x171dc4,_0x33a047=transformFile$1(_0x171dc4['data'],_0x2d4d5f,_0x4cdc52??defaultContentType$1),_0x4bfdc2=getFileOptions$1({'name':_0x2d4d5f});_0x2eb8d8['push']([_0x50074d,_0x33a047,..._0x4bfdc2]);}else{if(isObjectValue$1(_0x171dc4)){for(const [_0x61e7e7,_0x3be53e]of Object['entries'](_0x171dc4))void 0x0!==_0x3be53e&&_0x2eb8d8['push']([_0x50074d+'['+_0x61e7e7+']',String(_0x3be53e)]);}else isSimpleValue$1(_0x171dc4)&&_0x171dc4&&_0x2eb8d8['push']([_0x50074d,_0x171dc4['toString']()]);}}}function getFormDataParams$1(_0x39c4ce){const _0x4bd38e=[];for(const [_0x25e97f,_0x285607]of Object['entries'](_0x39c4ce))collectParams$1(_0x4bd38e,_0x25e97f,_0x285607);return _0x4bd38e;}function buildFormData$1(_0x59a977){const _0x33f6a6=getFormData$1(),_0x454b12=getFormDataParams$1(_0x59a977);for(const _0xc83d02 of _0x454b12){const [_0xcb0a57,_0x207966,..._0x1e3266]=_0xc83d02;_0x33f6a6['append'](_0xcb0a57,_0x207966,..._0x1e3266);}return _0x33f6a6;}let UploadError$1=class e extends UploadcareError$1{['code'];['request'];['response'];['headers'];constructor(_0x4b37f2,_0x40eab0,_0x40e293,_0x3d49c6,_0x512a9c){super(),this['name']='UploadError',this['message']=_0x4b37f2,this['code']=_0x40eab0,this['request']=_0x40e293,this['response']=_0x3d49c6,this['headers']=_0x512a9c,Object['setPrototypeOf'](this,e['prototype']);}};const buildSearchParams$1=_0x4427a4=>{const _0x3ba911=new URLSearchParams();for(const [_0x49ac7b,_0x3fbe39]of Object['entries'](_0x4427a4))_0x3fbe39&&'object'==typeof _0x3fbe39&&!Array['isArray'](_0x3fbe39)?Object['entries'](_0x3fbe39)['filter'](_0x383c23=>_0x383c23[0x1]??!0x1)['forEach'](_0x29ff2d=>_0x3ba911['set'](_0x49ac7b+'['+_0x29ff2d[0x0]+']',String(_0x29ff2d[0x1]))):Array['isArray'](_0x3fbe39)?_0x3fbe39['forEach'](_0x4ef6fc=>{_0x3ba911['append'](_0x49ac7b+'[]',_0x4ef6fc);}):'string'==typeof _0x3fbe39&&_0x3fbe39?_0x3ba911['set'](_0x49ac7b,_0x3fbe39):'number'==typeof _0x3fbe39&&_0x3ba911['set'](_0x49ac7b,_0x3fbe39['toString']());return _0x3ba911['toString']();},getUrl$1=(_0x5be3d8,_0x4aa8c1,_0x75581d)=>{const _0x485841=new URL(_0x5be3d8);return _0x485841['pathname']=(_0x485841['pathname']+_0x4aa8c1)['replace']('//','/'),_0x75581d&&(_0x485841['search']=buildSearchParams$1(_0x75581d)),_0x485841['toString']();};var version$2='6.14.3';const LIBRARY_NAME$1='UploadcareUploadClient',LIBRARY_VERSION$1=version$2;function getUserAgent$2(_0x2839f1){return getUserAgent$1$1({'libraryName':LIBRARY_NAME$1,'libraryVersion':LIBRARY_VERSION$1,..._0x2839f1});}const REQUEST_WAS_THROTTLED_CODE$1='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT$1=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT$1=0x3e8;function getTimeoutFromThrottledRequest$1(_0x3ad79d){const {headers:_0xe7549e}=_0x3ad79d||{};if(!_0xe7549e||'string'!=typeof _0xe7549e['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT$1;const _0x1b5009=parseInt(_0xe7549e['retry-after'],0xa);return Number['isFinite'](_0x1b5009)?0x3e8*_0x1b5009:DEFAULT_RETRY_AFTER_TIMEOUT$1;}function retryIfFailed$1(_0x5da3ac,_0x1857e4){const {retryThrottledRequestMaxTimes:_0x319e1a,retryNetworkErrorMaxTimes:_0xf18f3b}=_0x1857e4;return retrier$1(({attempt:_0x58dfd1,retry:_0x3e21e5})=>_0x5da3ac()['catch'](_0x943e67=>{if('response'in _0x943e67&&_0x943e67?.['code']===REQUEST_WAS_THROTTLED_CODE$1&&_0x58dfd1<_0x319e1a)return _0x3e21e5(getTimeoutFromThrottledRequest$1(_0x943e67));if(_0x943e67 instanceof NetworkError$1&&_0x58dfd1<_0xf18f3b)return _0x3e21e5((_0x58dfd1+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT$1);throw _0x943e67;}));}const getContentType$1=_0x37f5f1=>{let _0x489f1a='';return(isBlob$1(_0x37f5f1)||isFile$1(_0x37f5f1)||isReactNativeAsset$1(_0x37f5f1))&&(_0x489f1a=_0x37f5f1['type']),_0x489f1a||defaultContentType$1;},getFileName$1=_0xc31f87=>{let _0x3f9e05='';return isFile$1(_0xc31f87)&&_0xc31f87['name']?_0x3f9e05=_0xc31f87['name']:isBlob$1(_0xc31f87)||isBuffer$1()?_0x3f9e05='':isReactNativeAsset$1(_0xc31f87)&&_0xc31f87['name']&&(_0x3f9e05=_0xc31f87['name']),_0x3f9e05||defaultFilename$1;};function getStoreValue$1(_0x4d01a8){return void 0x0===_0x4d01a8||'auto'===_0x4d01a8?'auto':_0x4d01a8?'1':'0';}function base$1(_0x217703,{publicKey:_0x365be9,fileName:_0x34b30c,contentType:_0x267f6b,baseURL:_0x5123a7=defaultSettings$1['baseURL'],secureSignature:_0x3c9133,secureExpire:_0x5d56f0,store:_0x53f79c,signal:_0x357f88,onProgress:_0x3fb87a,source:_0x45f7b0='local',integration:_0x16b1de,userAgent:_0x4cf15a,retryThrottledRequestMaxTimes:_0x4f9e90=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x39a6e9=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x26f564}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x5123a7,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x365be9,'integration':_0x16b1de,'userAgent':_0x4cf15a})},'data':buildFormData$1({'file':{'data':_0x217703,'name':_0x34b30c||getFileName$1(_0x217703),'contentType':_0x267f6b||getContentType$1(_0x217703)},'UPLOADCARE_PUB_KEY':_0x365be9,'UPLOADCARE_STORE':getStoreValue$1(_0x53f79c),'signature':_0x3c9133,'expire':_0x5d56f0,'source':_0x45f7b0,'metadata':_0x26f564}),'signal':_0x357f88,'onProgress':_0x3fb87a})['then'](({data:_0x493e76,headers:_0x40ccfc,request:_0x92770})=>{const _0x560b04=camelizeKeys$1(JSON['parse'](_0x493e76));if('error'in _0x560b04)throw new UploadError$1(_0x560b04['error']['content'],_0x560b04['error']['errorCode'],_0x92770,_0x560b04,_0x40ccfc);return _0x560b04;}),{'retryNetworkErrorMaxTimes':_0x39a6e9,'retryThrottledRequestMaxTimes':_0x4f9e90});}var TypeEnum$1,Status$1;function fromUrl$1(_0x55d35d,{publicKey:_0x9b715c,baseURL:_0x19b35b=defaultSettings$1['baseURL'],store:_0x40e41b,fileName:_0x55e54d,checkForUrlDuplicates:_0x48bcaa,saveUrlForRecurrentUploads:_0x4dbd04,secureSignature:_0x2d4a9c,secureExpire:_0x7c4770,source:_0x150e27='url',signal:_0x13c447,integration:_0x38518c,userAgent:_0x574e36,retryThrottledRequestMaxTimes:_0x5ee775=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x402d3d=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x1a05d9}){return retryIfFailed$1(()=>request$1({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x9b715c,'integration':_0x38518c,'userAgent':_0x574e36})},'url':getUrl$1(_0x19b35b,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x9b715c,'source_url':_0x55d35d,'store':getStoreValue$1(_0x40e41b),'filename':_0x55e54d,'check_URL_duplicates':_0x48bcaa?0x1:void 0x0,'save_URL_duplicates':_0x4dbd04?0x1:void 0x0,'signature':_0x2d4a9c,'expire':_0x7c4770,'source':_0x150e27,'metadata':_0x1a05d9}),'signal':_0x13c447})['then'](({data:_0x122efe,headers:_0x1ae790,request:_0x54d39b})=>{const _0x20015c=camelizeKeys$1(JSON['parse'](_0x122efe));if('error'in _0x20015c)throw new UploadError$1(_0x20015c['error']['content'],_0x20015c['error']['errorCode'],_0x54d39b,_0x20015c,_0x1ae790);return _0x20015c;}),{'retryNetworkErrorMaxTimes':_0x402d3d,'retryThrottledRequestMaxTimes':_0x5ee775});}!function(_0x1e6481){_0x1e6481['Token']='token',_0x1e6481['FileInfo']='file_info';}(TypeEnum$1||(TypeEnum$1={})),function(_0x556ffd){_0x556ffd['Unknown']='unknown',_0x556ffd['Waiting']='waiting',_0x556ffd['Progress']='progress',_0x556ffd['Error']='error',_0x556ffd['Success']='success';}(Status$1||(Status$1={}));const isErrorResponse$1=_0x163630=>'status'in _0x163630&&_0x163630['status']===Status$1['Error'];function fromUrlStatus$1(_0x53fb5c,{publicKey:_0x462eeb,baseURL:_0x2e2e51=defaultSettings$1['baseURL'],signal:_0x528505,integration:_0x25a8ed,userAgent:_0x289bb2,retryThrottledRequestMaxTimes:_0x3893c5=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x1bbb94=defaultSettings$1['retryNetworkErrorMaxTimes']}={}){return retryIfFailed$1(()=>request$1({'method':'GET','headers':_0x462eeb?{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x462eeb,'integration':_0x25a8ed,'userAgent':_0x289bb2})}:void 0x0,'url':getUrl$1(_0x2e2e51,'/from_url/status/',{'jsonerrors':0x1,'token':_0x53fb5c}),'signal':_0x528505})['then'](({data:_0x57fc5b,headers:_0x31caa0,request:_0x58d2c0})=>{const _0x648fbd=camelizeKeys$1(JSON['parse'](_0x57fc5b));if('error'in _0x648fbd&&!isErrorResponse$1(_0x648fbd))throw new UploadError$1(_0x648fbd['error']['content'],_0x648fbd['error']['errorCode'],_0x58d2c0,_0x648fbd,_0x31caa0);return _0x648fbd;}),{'retryNetworkErrorMaxTimes':_0x1bbb94,'retryThrottledRequestMaxTimes':_0x3893c5});}function info$1(_0x1c5534,{publicKey:_0x300dee,baseURL:_0x6ec354=defaultSettings$1['baseURL'],signal:_0x20b875,source:_0x5f5551,integration:_0x20e3fc,userAgent:_0x30b7f5,retryThrottledRequestMaxTimes:_0x4ed6b9=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x5b29b3=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x300dee,'integration':_0x20e3fc,'userAgent':_0x30b7f5})},'url':getUrl$1(_0x6ec354,'/info/',{'jsonerrors':0x1,'pub_key':_0x300dee,'file_id':_0x1c5534,'source':_0x5f5551}),'signal':_0x20b875})['then'](({data:_0x34923f,headers:_0x2c8766,request:_0x18d9bc})=>{const _0x2f1bb2=camelizeKeys$1(JSON['parse'](_0x34923f));if('error'in _0x2f1bb2)throw new UploadError$1(_0x2f1bb2['error']['content'],_0x2f1bb2['error']['errorCode'],_0x18d9bc,_0x2f1bb2,_0x2c8766);return _0x2f1bb2;}),{'retryThrottledRequestMaxTimes':_0x4ed6b9,'retryNetworkErrorMaxTimes':_0x5b29b3});}function multipartStart$1(_0x1def77,{publicKey:_0x134e7d,contentType:_0x186728,fileName:_0xf50aee,multipartChunkSize:_0x3382a0=defaultSettings$1['multipartChunkSize'],baseURL:_0x30f63b='',secureSignature:_0x18323e,secureExpire:_0xa0cc7d,store:_0x395825,signal:_0x503169,source:_0x358243='local',integration:_0x5acac4,userAgent:_0x15629e,retryThrottledRequestMaxTimes:_0xcf4750=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x2f83e2=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x2f360b}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x30f63b,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x134e7d,'integration':_0x5acac4,'userAgent':_0x15629e})},'data':buildFormData$1({'filename':_0xf50aee||defaultFilename$1,'size':_0x1def77,'content_type':_0x186728||defaultContentType$1,'part_size':_0x3382a0,'UPLOADCARE_STORE':getStoreValue$1(_0x395825),'UPLOADCARE_PUB_KEY':_0x134e7d,'signature':_0x18323e,'expire':_0xa0cc7d,'source':_0x358243,'metadata':_0x2f360b}),'signal':_0x503169})['then'](({data:_0x360b19,headers:_0x11f6b7,request:_0x435ce9})=>{const _0x362173=camelizeKeys$1(JSON['parse'](_0x360b19));if('error'in _0x362173)throw new UploadError$1(_0x362173['error']['content'],_0x362173['error']['errorCode'],_0x435ce9,_0x362173,_0x11f6b7);return _0x362173['parts']=Object['keys'](_0x362173['parts'])['map'](_0x4c5739=>_0x362173['parts'][Number(_0x4c5739)]),_0x362173;}),{'retryThrottledRequestMaxTimes':_0xcf4750,'retryNetworkErrorMaxTimes':_0x2f83e2});}function multipartUpload$1(_0x3567b4,_0x29ab93,{contentType:_0x44f679,signal:_0x44c788,onProgress:_0x4ec041,retryThrottledRequestMaxTimes:_0x1e5e69=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x48b24a=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'PUT','url':_0x29ab93,'data':_0x3567b4,'onProgress':_0x4ec041,'signal':_0x44c788,'headers':{'Content-Type':_0x44f679||defaultContentType$1}})['then'](_0x347adb=>(_0x4ec041&&_0x4ec041({'isComputable':!0x0,'value':0x1}),_0x347adb))['then'](({status:_0x1941bb})=>({'code':_0x1941bb})),{'retryThrottledRequestMaxTimes':_0x1e5e69,'retryNetworkErrorMaxTimes':_0x48b24a});}function multipartComplete$1(_0x19ef38,{publicKey:_0x3959af,baseURL:_0x2a0f9e=defaultSettings$1['baseURL'],source:_0x2e46d4='local',signal:_0x44dda3,integration:_0x282bba,userAgent:_0x398c9f,retryThrottledRequestMaxTimes:_0x8dfbca=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x1f04b7=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x2a0f9e,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x3959af,'integration':_0x282bba,'userAgent':_0x398c9f})},'data':buildFormData$1({'uuid':_0x19ef38,'UPLOADCARE_PUB_KEY':_0x3959af,'source':_0x2e46d4}),'signal':_0x44dda3})['then'](({data:_0x312097,headers:_0x1364e7,request:_0xd9a982})=>{const _0x319f14=camelizeKeys$1(JSON['parse'](_0x312097));if('error'in _0x319f14)throw new UploadError$1(_0x319f14['error']['content'],_0x319f14['error']['errorCode'],_0xd9a982,_0x319f14,_0x1364e7);return _0x319f14;}),{'retryThrottledRequestMaxTimes':_0x8dfbca,'retryNetworkErrorMaxTimes':_0x1f04b7});}function isReadyPoll$1(_0x1c950c,{publicKey:_0x52e4eb,baseURL:_0x3720d8,source:_0x27800e,integration:_0x447448,userAgent:_0x46e505,retryThrottledRequestMaxTimes:_0x11a58a,retryNetworkErrorMaxTimes:_0x2b3dcb,signal:_0x233888,onProgress:_0x48f259}){return poll$1({'check':_0x584f0d=>info$1(_0x1c950c,{'publicKey':_0x52e4eb,'baseURL':_0x3720d8,'signal':_0x584f0d,'source':_0x27800e,'integration':_0x447448,'userAgent':_0x46e505,'retryThrottledRequestMaxTimes':_0x11a58a,'retryNetworkErrorMaxTimes':_0x2b3dcb})['then'](_0x5f48ef=>_0x5f48ef['isReady']?_0x5f48ef:(_0x48f259&&_0x48f259({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x233888});}function isGroupFileInfo$1(_0x1e4b98){return'defaultEffects'in _0x1e4b98;}let UploadcareFile$1=class{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x6dea04,{baseCDN:_0x299041=defaultSettings$1['baseCDN'],fileName:_0x21cd53}={}){const {uuid:_0x7eac85,s3Bucket:_0x2801f8}=_0x6dea04,_0x5c7422=getUrl$1(_0x299041,_0x7eac85+'/'),_0x5e2f45=_0x2801f8?getUrl$1('https://'+_0x2801f8+'.s3.amazonaws.com/',_0x7eac85+'/'+_0x6dea04['filename']):null;this['uuid']=_0x7eac85,this['name']=_0x21cd53||_0x6dea04['filename'],this['size']=_0x6dea04['size'],this['isStored']=_0x6dea04['isStored'],this['isImage']=_0x6dea04['isImage'],this['mimeType']=_0x6dea04['mimeType'],this['cdnUrl']=_0x5c7422,this['originalFilename']=_0x6dea04['originalFilename'],this['imageInfo']=_0x6dea04['imageInfo'],this['videoInfo']=_0x6dea04['videoInfo'],this['contentInfo']=_0x6dea04['contentInfo'],this['metadata']=_0x6dea04['metadata']||null,this['s3Bucket']=_0x2801f8||null,this['s3Url']=_0x5e2f45,isGroupFileInfo$1(_0x6dea04)&&(this['defaultEffects']=_0x6dea04['defaultEffects']);}};const uploadDirect$1=(_0x509343,{publicKey:_0x2a907c,fileName:_0x28b5c1,baseURL:_0x463ca4,secureSignature:_0x1c375e,secureExpire:_0x23dc14,store:_0x2e8074,contentType:_0x5c723a,signal:_0x37fefb,onProgress:_0x36d9ec,source:_0x233685,integration:_0x1f135b,userAgent:_0x104d81,retryThrottledRequestMaxTimes:_0xfb5234,retryNetworkErrorMaxTimes:_0x1bc0f9,baseCDN:_0x132e9b,metadata:_0x388453})=>base$1(_0x509343,{'publicKey':_0x2a907c,'fileName':_0x28b5c1,'contentType':_0x5c723a,'baseURL':_0x463ca4,'secureSignature':_0x1c375e,'secureExpire':_0x23dc14,'store':_0x2e8074,'signal':_0x37fefb,'onProgress':_0x36d9ec,'source':_0x233685,'integration':_0x1f135b,'userAgent':_0x104d81,'retryThrottledRequestMaxTimes':_0xfb5234,'retryNetworkErrorMaxTimes':_0x1bc0f9,'metadata':_0x388453})['then'](({file:_0x5152a4})=>isReadyPoll$1(_0x5152a4,{'publicKey':_0x2a907c,'baseURL':_0x463ca4,'source':_0x233685,'integration':_0x1f135b,'userAgent':_0x104d81,'retryThrottledRequestMaxTimes':_0xfb5234,'retryNetworkErrorMaxTimes':_0x1bc0f9,'onProgress':_0x36d9ec,'signal':_0x37fefb}))['then'](_0x5a27ea=>new UploadcareFile$1(_0x5a27ea,{'baseCDN':_0x132e9b})),uploadFromUploaded$1=(_0x14d606,{publicKey:_0x1a2d79,fileName:_0x5ae456,baseURL:_0x46e34b,signal:_0x360d3d,onProgress:_0x3d63a1,source:_0x58010e,integration:_0x57d9eb,userAgent:_0xafeaca,retryThrottledRequestMaxTimes:_0x46b9ea,retryNetworkErrorMaxTimes:_0x1ac9ec,baseCDN:_0x433a56})=>info$1(_0x14d606,{'publicKey':_0x1a2d79,'baseURL':_0x46e34b,'signal':_0x360d3d,'source':_0x58010e,'integration':_0x57d9eb,'userAgent':_0xafeaca,'retryThrottledRequestMaxTimes':_0x46b9ea,'retryNetworkErrorMaxTimes':_0x1ac9ec})['then'](_0x2ba15f=>new UploadcareFile$1(_0x2ba15f,{'baseCDN':_0x433a56,'fileName':_0x5ae456}))['then'](_0x5560d5=>(_0x3d63a1&&_0x3d63a1({'isComputable':!0x0,'value':0x1}),_0x5560d5)),race$1=(_0x3c0b8c,{signal:_0x53c65e}={})=>{let _0x5495c2=null,_0x3e12c7=null;const _0x30af28=_0x3c0b8c['map'](()=>new AbortController());return onCancel$1(_0x53c65e,()=>{_0x30af28['forEach'](_0x3c5ec1=>_0x3c5ec1['abort']());}),Promise['all'](_0x3c0b8c['map']((_0x4f2046,_0x3cba62)=>{const _0x570c51=(_0x4e1bea=>()=>{_0x3e12c7=_0x4e1bea,_0x30af28['forEach']((_0x3fbb93,_0xb540c2)=>_0xb540c2!==_0x4e1bea&&_0x3fbb93['abort']());})(_0x3cba62);return Promise['resolve']()['then'](()=>_0x4f2046({'stopRace':_0x570c51,'signal':_0x30af28[_0x3cba62]['signal']}))['then'](_0x5df14c=>(_0x570c51(),_0x5df14c))['catch'](_0x3fb478=>(_0x5495c2=_0x3fb478,null));}))['then'](_0xb1eb0b=>{if(null===_0x3e12c7)throw _0x5495c2;return _0xb1eb0b[_0x3e12c7];});};var WebSocket$2=window['WebSocket'];let Events$1=class{['events']=Object['create']({});['emit'](_0x48ef62,_0x35dfc9){this['events'][_0x48ef62]?.['forEach'](_0x1ae576=>_0x1ae576(_0x35dfc9));}['on'](_0x543f3e,_0x911f22){this['events'][_0x543f3e]=this['events'][_0x543f3e]||[],this['events'][_0x543f3e]['push'](_0x911f22);}['off'](_0x58da03,_0x26292b){this['events'][_0x58da03]=_0x26292b?this['events'][_0x58da03]['filter'](_0x4cd82b=>_0x4cd82b!==_0x26292b):[];}};const response$1=(_0x245fbb,_0x5a0968)=>'success'===_0x245fbb?{'status':Status$1['Success'],..._0x5a0968}:'progress'===_0x245fbb?{'status':Status$1['Progress'],..._0x5a0968}:{'status':Status$1['Error'],..._0x5a0968};let Pusher$1=class{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events$1();['disconnectTimeoutId']=null;constructor(_0x1bf57a,_0x9edba3=0x7530){this['key']=_0x1bf57a,this['disconnectTime']=_0x9edba3;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x4cca6f='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket$2(_0x4cca6f),this['ws']['addEventListener']('error',_0x1d90fa=>{this['emmitter']['emit']('error',new Error(_0x1d90fa['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x1e5eaa=>this['send'](_0x1e5eaa['event'],_0x1e5eaa['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x4d6217=>{const _0xa45eef=JSON['parse'](_0x4d6217['data']['toString']());switch(_0xa45eef['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'](_0xa45eef['channel'],response$1(_0xa45eef['event'],JSON['parse'](_0xa45eef['data'])));}});}}['disconnect'](){const _0x1fa8d5=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x1fa8d5();},this['disconnectTime']):_0x1fa8d5();}['send'](_0x4e189e,_0x3da415){const _0x29363a=JSON['stringify']({'event':_0x4e189e,'data':_0x3da415});this['ws']?.['send'](_0x29363a);}['subscribe'](_0x4ce0d2,_0x57b9ec){this['subscribers']+=0x1,this['connect']();const _0x6bf89='task-status-'+_0x4ce0d2,_0x36c133={'event':'pusher:subscribe','data':{'channel':_0x6bf89}};this['emmitter']['on'](_0x6bf89,_0x57b9ec),this['isConnected']?this['send'](_0x36c133['event'],_0x36c133['data']):this['queue']['push'](_0x36c133);}['unsubscribe'](_0x1afc01){this['subscribers']-=0x1;const _0x4b48e8='task-status-'+_0x1afc01,_0x2a5769={'event':'pusher:unsubscribe','data':{'channel':_0x4b48e8}};this['emmitter']['off'](_0x4b48e8),this['isConnected']?this['send'](_0x2a5769['event'],_0x2a5769['data']):this['queue']=this['queue']['filter'](_0x33e1c4=>_0x33e1c4['data']['channel']!==_0x4b48e8),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x45774c){return this['emmitter']['on']('error',_0x45774c),()=>this['emmitter']['off']('error',_0x45774c);}},pusher$1=null;const getPusher$1=_0x190323=>{if(!pusher$1){const _0x1f738d='undefined'==typeof window?0x0:0x7530;pusher$1=new Pusher$1(_0x190323,_0x1f738d);}return pusher$1;},preconnect$1=_0x29b042=>{getPusher$1(_0x29b042)['connect']();};function pollStrategy$1({token:_0x174ae4,publicKey:_0x26a867,baseURL:_0x59916c,integration:_0x4ebe6a,userAgent:_0x510eb0,retryThrottledRequestMaxTimes:_0x196611,retryNetworkErrorMaxTimes:_0x24b497,onProgress:_0x5f18ee,signal:_0x4113df}){return poll$1({'check':_0x510bfe=>fromUrlStatus$1(_0x174ae4,{'publicKey':_0x26a867,'baseURL':_0x59916c,'integration':_0x4ebe6a,'userAgent':_0x510eb0,'retryThrottledRequestMaxTimes':_0x196611,'retryNetworkErrorMaxTimes':_0x24b497,'signal':_0x510bfe})['then'](_0x15658b=>{switch(_0x15658b['status']){case Status$1['Error']:return new UploadError$1(_0x15658b['error'],_0x15658b['errorCode']);case Status$1['Waiting']:return!0x1;case Status$1['Unknown']:return new UploadError$1('Token\x20\x22'+_0x174ae4+'\x22\x20was\x20not\x20found.');case Status$1['Progress']:return _0x5f18ee&&('unknown'===_0x15658b['total']?_0x5f18ee({'isComputable':!0x1}):_0x5f18ee({'isComputable':!0x0,'value':_0x15658b['done']/_0x15658b['total']})),!0x1;case Status$1['Success']:return _0x5f18ee&&_0x5f18ee({'isComputable':!0x0,'value':_0x15658b['done']/_0x15658b['total']}),_0x15658b;default:throw new Error('Unknown\x20status');}}),'signal':_0x4113df});}const pushStrategy$1=({token:_0x359f3d,pusherKey:_0x26b5a0,signal:_0x3920f8,onProgress:_0x3d54ae})=>new Promise((_0x204505,_0x2f2695)=>{const _0x3833d1=getPusher$1(_0x26b5a0),_0x2be69e=_0x3833d1['onError'](_0x2f2695),_0x31fef8=()=>{_0x2be69e(),_0x3833d1['unsubscribe'](_0x359f3d);};onCancel$1(_0x3920f8,()=>{_0x31fef8(),_0x2f2695(new CancelError$1('pusher\x20cancelled'));}),_0x3833d1['subscribe'](_0x359f3d,_0x6601d0=>{switch(_0x6601d0['status']){case Status$1['Progress']:_0x3d54ae&&('unknown'===_0x6601d0['total']?_0x3d54ae({'isComputable':!0x1}):_0x3d54ae({'isComputable':!0x0,'value':_0x6601d0['done']/_0x6601d0['total']}));break;case Status$1['Success']:_0x31fef8(),_0x3d54ae&&_0x3d54ae({'isComputable':!0x0,'value':_0x6601d0['done']/_0x6601d0['total']}),_0x204505(_0x6601d0);break;case Status$1['Error']:_0x31fef8(),_0x2f2695(new UploadError$1(_0x6601d0['msg'],_0x6601d0['error_code']));}});}),uploadFromUrl$1=(_0x57e900,{publicKey:_0x4b80c1,fileName:_0x55af90,baseURL:_0x1a21be,baseCDN:_0x2487c7,checkForUrlDuplicates:_0x146ebd,saveUrlForRecurrentUploads:_0x44e9fd,secureSignature:_0x2e5f22,secureExpire:_0x1da424,store:_0x4dbce2,signal:_0x43c02d,onProgress:_0x59d259,source:_0x1bc056,integration:_0x37680b,userAgent:_0x4fd385,retryThrottledRequestMaxTimes:_0x318b7a,pusherKey:_0x141900=defaultSettings$1['pusherKey'],metadata:_0x56f7a9})=>Promise['resolve'](preconnect$1(_0x141900))['then'](()=>fromUrl$1(_0x57e900,{'publicKey':_0x4b80c1,'fileName':_0x55af90,'baseURL':_0x1a21be,'checkForUrlDuplicates':_0x146ebd,'saveUrlForRecurrentUploads':_0x44e9fd,'secureSignature':_0x2e5f22,'secureExpire':_0x1da424,'store':_0x4dbce2,'signal':_0x43c02d,'source':_0x1bc056,'integration':_0x37680b,'userAgent':_0x4fd385,'retryThrottledRequestMaxTimes':_0x318b7a,'metadata':_0x56f7a9}))['catch'](_0x4a59e4=>{const _0x5c9ff5=getPusher$1(_0x141900);return _0x5c9ff5?.['disconnect'](),Promise['reject'](_0x4a59e4);})['then'](_0x451f4c=>_0x451f4c['type']===TypeEnum$1['FileInfo']?_0x451f4c:race$1([({signal:_0x35b0c6})=>pollStrategy$1({'token':_0x451f4c['token'],'publicKey':_0x4b80c1,'baseURL':_0x1a21be,'integration':_0x37680b,'userAgent':_0x4fd385,'retryThrottledRequestMaxTimes':_0x318b7a,'onProgress':_0x59d259,'signal':_0x35b0c6}),({signal:_0xee1761})=>pushStrategy$1({'token':_0x451f4c['token'],'pusherKey':_0x141900,'signal':_0xee1761,'onProgress':_0x59d259})],{'signal':_0x43c02d}))['then'](_0x451f2e=>{if(_0x451f2e instanceof UploadError$1)throw _0x451f2e;return _0x451f2e;})['then'](_0x396126=>isReadyPoll$1(_0x396126['uuid'],{'publicKey':_0x4b80c1,'baseURL':_0x1a21be,'integration':_0x37680b,'userAgent':_0x4fd385,'retryThrottledRequestMaxTimes':_0x318b7a,'onProgress':_0x59d259,'signal':_0x43c02d}))['then'](_0x5139d2=>new UploadcareFile$1(_0x5139d2,{'baseCDN':_0x2487c7})),memo$1=new WeakMap(),getBlobFromReactNativeAsset$1=async _0x56e812=>{if(memo$1['has'](_0x56e812))return memo$1['get'](_0x56e812);const _0xdffc04=await fetch(_0x56e812['uri'])['then'](_0x296d96=>_0x296d96['blob']());return memo$1['set'](_0x56e812,_0xdffc04),_0xdffc04;},getFileSize$1=async _0x34a530=>{if(isFile$1(_0x34a530)||isBlob$1(_0x34a530))return _0x34a530['size'];if(isReactNativeAsset$1(_0x34a530))return(await getBlobFromReactNativeAsset$1(_0x34a530))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart$1=(_0x479f55,_0x57b858=defaultSettings$1['multipartMinFileSize'])=>_0x479f55>=_0x57b858,isUuid$1=_0x3635c4=>{const _0x55568e=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(_0x3635c4)&&_0x55568e['test'](_0x3635c4);},isUrl$1=_0x2a29b6=>{const _0x195302=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData$1(_0x2a29b6)&&_0x195302['test'](_0x2a29b6);},runWithConcurrency$1=(_0x39b067,_0x16dbb9)=>new Promise((_0x574b6b,_0x1ba8c3)=>{const _0x2a7c4c=[];let _0x418de5=!0x1,_0x33e220=_0x16dbb9['length'];const _0x48c552=[..._0x16dbb9],_0x5c2837=()=>{const _0x13843f=_0x16dbb9['length']-_0x48c552['length'],_0x1f8fdb=_0x48c552['shift']();_0x1f8fdb&&_0x1f8fdb()['then'](_0x47eeb5=>{_0x418de5||(_0x2a7c4c[_0x13843f]=_0x47eeb5,_0x33e220-=0x1,_0x33e220?_0x5c2837():_0x574b6b(_0x2a7c4c));})['catch'](_0x505858=>{_0x418de5=!0x0,_0x1ba8c3(_0x505858);});};for(let _0x25236a=0x0;_0x25236a<_0x39b067;_0x25236a++)_0x5c2837();}),sliceChunk$1=(_0x1789a0,_0x331d88,_0x6fbd5c,_0x85533c)=>{const _0xeb533d=_0x85533c*_0x331d88,_0x35922a=Math['min'](_0xeb533d+_0x85533c,_0x6fbd5c);return _0x1789a0['slice'](_0xeb533d,_0x35922a);},prepareChunks$1=async(_0x5505e5,_0x4da0fa,_0x81eef8)=>_0x595373=>sliceChunk$1(_0x5505e5,_0x595373,_0x4da0fa,_0x81eef8),uploadPart$1=(_0x484a41,_0x180aa5,{publicKey:_0x42503c,contentType:_0x390e93,onProgress:_0x111d8f,signal:_0x5e68b8,integration:_0x4436d9,retryThrottledRequestMaxTimes:_0x3df184,retryNetworkErrorMaxTimes:_0x10d550})=>multipartUpload$1(_0x484a41,_0x180aa5,{'contentType':_0x390e93,'onProgress':_0x111d8f,'signal':_0x5e68b8,'retryThrottledRequestMaxTimes':_0x3df184,'retryNetworkErrorMaxTimes':_0x10d550}),uploadMultipart$1=async(_0x196b60,{publicKey:_0x2fc008,fileName:_0x22e7b5,fileSize:_0x2b6880,baseURL:_0x3ab188,secureSignature:_0x5d4ef0,secureExpire:_0xe2b619,store:_0x4bcecb,signal:_0x20414f,onProgress:_0x1b2fd7,source:_0x985070,integration:_0x2c6c84,userAgent:_0x444948,retryThrottledRequestMaxTimes:_0x513d43,retryNetworkErrorMaxTimes:_0x3d961f,contentType:_0x3ce78d,multipartChunkSize:_0x4b4e90=defaultSettings$1['multipartChunkSize'],maxConcurrentRequests:_0x1bf82b=defaultSettings$1['maxConcurrentRequests'],baseCDN:_0x2a3c3e,metadata:_0x35cea5})=>{const _0x1eb82d=_0x2b6880??await getFileSize$1(_0x196b60);let _0x47f0de;const _0xddefb9=(_0x1f3a3d,_0x74efcb)=>{if(!_0x1b2fd7)return;_0x47f0de||(_0x47f0de=Array(_0x1f3a3d)['fill'](0x0));const _0x5e1ac7=_0x41108d=>_0x41108d['reduce']((_0x26e8a3,_0x5bd064)=>_0x26e8a3+_0x5bd064,0x0);return _0x2c67ab=>{_0x2c67ab['isComputable']&&(_0x47f0de[_0x74efcb]=_0x2c67ab['value'],_0x1b2fd7({'isComputable':!0x0,'value':_0x5e1ac7(_0x47f0de)/_0x1f3a3d}));};};return _0x3ce78d||=getContentType$1(_0x196b60),multipartStart$1(_0x1eb82d,{'publicKey':_0x2fc008,'contentType':_0x3ce78d,'fileName':_0x22e7b5||getFileName$1(_0x196b60),'baseURL':_0x3ab188,'secureSignature':_0x5d4ef0,'secureExpire':_0xe2b619,'store':_0x4bcecb,'signal':_0x20414f,'source':_0x985070,'integration':_0x2c6c84,'userAgent':_0x444948,'retryThrottledRequestMaxTimes':_0x513d43,'retryNetworkErrorMaxTimes':_0x3d961f,'metadata':_0x35cea5,'multipartChunkSize':_0x4b4e90})['then'](async({uuid:_0xd9b0c7,parts:_0x2f479f})=>{const _0x24cf57=await prepareChunks$1(_0x196b60,_0x1eb82d,_0x4b4e90);return Promise['all']([_0xd9b0c7,runWithConcurrency$1(_0x1bf82b,_0x2f479f['map']((_0x5abe5c,_0x52dd81)=>()=>uploadPart$1(_0x24cf57(_0x52dd81),_0x5abe5c,{'publicKey':_0x2fc008,'contentType':_0x3ce78d,'onProgress':_0xddefb9(_0x2f479f['length'],_0x52dd81),'signal':_0x20414f,'integration':_0x2c6c84,'retryThrottledRequestMaxTimes':_0x513d43,'retryNetworkErrorMaxTimes':_0x3d961f})))]);})['then'](([_0x32796e])=>multipartComplete$1(_0x32796e,{'publicKey':_0x2fc008,'baseURL':_0x3ab188,'source':_0x985070,'integration':_0x2c6c84,'userAgent':_0x444948,'retryThrottledRequestMaxTimes':_0x513d43,'retryNetworkErrorMaxTimes':_0x3d961f}))['then'](_0x1d37cf=>_0x1d37cf['isReady']?_0x1d37cf:isReadyPoll$1(_0x1d37cf['uuid'],{'publicKey':_0x2fc008,'baseURL':_0x3ab188,'source':_0x985070,'integration':_0x2c6c84,'userAgent':_0x444948,'retryThrottledRequestMaxTimes':_0x513d43,'retryNetworkErrorMaxTimes':_0x3d961f,'onProgress':_0x1b2fd7,'signal':_0x20414f}))['then'](_0x101c46=>new UploadcareFile$1(_0x101c46,{'baseCDN':_0x2a3c3e}));};async function uploadFile$1(_0x50f11d,{publicKey:_0x730593,fileName:_0x1c6bd5,baseURL:_0x553a41=defaultSettings$1['baseURL'],secureSignature:_0x5052f2,secureExpire:_0x44b037,store:_0x56f9a7,signal:_0xc71246,onProgress:_0x1d06f2,source:_0x2c3377,integration:_0x474e94,userAgent:_0xacd820,retryThrottledRequestMaxTimes:_0x534d39,retryNetworkErrorMaxTimes:_0x46a951,contentType:_0x5e5f72,multipartMinFileSize:_0x5b3eca,multipartChunkSize:_0x25bec2,maxConcurrentRequests:_0x403e88,baseCDN:_0x5edec2=defaultSettings$1['baseCDN'],checkForUrlDuplicates:_0x33e8e9,saveUrlForRecurrentUploads:_0x5ab770,pusherKey:_0x18b3fe,metadata:_0x127f9e}){if(isFileData$1(_0x50f11d)){const _0x4a834e=await getFileSize$1(_0x50f11d);return isMultipart$1(_0x4a834e,_0x5b3eca)?uploadMultipart$1(_0x50f11d,{'publicKey':_0x730593,'contentType':_0x5e5f72,'multipartChunkSize':_0x25bec2,'fileSize':_0x4a834e,'fileName':_0x1c6bd5,'baseURL':_0x553a41,'secureSignature':_0x5052f2,'secureExpire':_0x44b037,'store':_0x56f9a7,'signal':_0xc71246,'onProgress':_0x1d06f2,'source':_0x2c3377,'integration':_0x474e94,'userAgent':_0xacd820,'maxConcurrentRequests':_0x403e88,'retryThrottledRequestMaxTimes':_0x534d39,'retryNetworkErrorMaxTimes':_0x46a951,'baseCDN':_0x5edec2,'metadata':_0x127f9e}):uploadDirect$1(_0x50f11d,{'publicKey':_0x730593,'fileName':_0x1c6bd5,'contentType':_0x5e5f72,'baseURL':_0x553a41,'secureSignature':_0x5052f2,'secureExpire':_0x44b037,'store':_0x56f9a7,'signal':_0xc71246,'onProgress':_0x1d06f2,'source':_0x2c3377,'integration':_0x474e94,'userAgent':_0xacd820,'retryThrottledRequestMaxTimes':_0x534d39,'retryNetworkErrorMaxTimes':_0x46a951,'baseCDN':_0x5edec2,'metadata':_0x127f9e});}if(isUrl$1(_0x50f11d))return uploadFromUrl$1(_0x50f11d,{'publicKey':_0x730593,'fileName':_0x1c6bd5,'baseURL':_0x553a41,'baseCDN':_0x5edec2,'checkForUrlDuplicates':_0x33e8e9,'saveUrlForRecurrentUploads':_0x5ab770,'secureSignature':_0x5052f2,'secureExpire':_0x44b037,'store':_0x56f9a7,'signal':_0xc71246,'onProgress':_0x1d06f2,'source':_0x2c3377,'integration':_0x474e94,'userAgent':_0xacd820,'retryThrottledRequestMaxTimes':_0x534d39,'pusherKey':_0x18b3fe,'metadata':_0x127f9e});if(isUuid$1(_0x50f11d))return uploadFromUploaded$1(_0x50f11d,{'publicKey':_0x730593,'fileName':_0x1c6bd5,'baseURL':_0x553a41,'signal':_0xc71246,'onProgress':_0x1d06f2,'source':_0x2c3377,'integration':_0x474e94,'userAgent':_0xacd820,'retryThrottledRequestMaxTimes':_0x534d39,'retryNetworkErrorMaxTimes':_0x46a951,'baseCDN':_0x5edec2});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x50f11d+'\x22\x20is\x20not\x20supported');}class UploadUtils{static['upload']({file:_0x2ff2d3,..._0x1e7507}){return uploadFile$1(_0x2ff2d3,_0x1e7507);}static['getInfo'](_0x1e4159,_0x2202f6){return info$1(_0x1e4159,_0x2202f6);}}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 _0x4043a6=this['editor'];if(!!!_0x4043a6['config']['get']('uploadcare'))return;_0x4043a6['plugins']['get'](FileRepository)['createUploadAdapter']=_0x5b96a3=>new Adapter(_0x5b96a3,_0x4043a6),_0x4043a6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x849df4,{imageElement:_0x245832,data:_0x529e31})=>{_0x4043a6['model']['change'](_0x149074=>{_0x149074['setAttribute']('uploadcareImageId',_0x529e31['uploadcareImageId'],_0x245832);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x100b8c,_0x23da87){this['loader']=_0x100b8c,this['editor']=_0x23da87,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1dfc9e=await this['loader']['file'];return UploadUtils['upload']({'file':_0x1dfc9e,'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':_0x109e44=>{_0x109e44&&_0x109e44['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x109e44['value']);}})['then'](async _0x448f5f=>{const {imageFallbackUrl:_0x54ccaa,imageSources:_0x45c587}=getImageUrls(_0x448f5f['cdnUrl'],_0x448f5f['imageInfo']['width']);return{'uploadcareImageId':_0x448f5f['uuid'],'default':_0x54ccaa,'sources':_0x45c587};})['catch'](()=>{const _0x1f209a=t('Cannot\x20upload\x20file:')+('\x20'+_0x1dfc9e['name']+'.');return Promise['reject'](_0x1f209a);});}['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(_0x22ea35){super(_0x22ea35),this['ucContextId']=uid();}['init'](){const _0x9cf2a=this['editor'];_0x9cf2a['commands']['add']('uploadcare',new UploadcareCommand(_0x9cf2a));}['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 _0x13655a=_0x42cc73['document']['querySelector']('input[uploadcare-file-input]');_0x13655a&&_0x13655a['remove']();}),checkLicense(this);}['_initSchema'](){const _0x4f2f93=this['editor']['model']['schema'];_0x4f2f93['isRegistered']('imageBlock')&&_0x4f2f93['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4f2f93['isRegistered']('imageInline')&&_0x4f2f93['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x56e639=this['editor'];_0x56e639['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x56e639['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x7cb2a3=>_0x7cb2a3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b26f7=_0x56e639['commands']['get']('replaceImageSource');_0x2b26f7&&this['listenTo'](_0x2b26f7,'cleanupImage',(_0x418b2e,[_0x4bdf7e,_0x25faa0])=>{_0x4bdf7e['removeAttribute']('uploadcareImageId',_0x25faa0);});}['_initConfig'](){const _0x473b1a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x455053=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=createElement(_0x42cc73['document'],'uc-config',{..._0x473b1a,'pubkey':_0x455053,'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']=_0x53773f=>{if('closeMax'==_0x53773f)return'#uc-icon-arrow-down';},_0x42cc73['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=createElement(_0x42cc73['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x42cc73['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5e18dd=this['editor']['commands']['get']('insertImage');_0x5e18dd&&this['listenTo'](_0x5e18dd,'execute',()=>{const _0x1e661b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e661b&&_0x1e661b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x1e661b);});});const _0x439cdc=this['editor']['commands']['get']('uploadcareImageReplace');_0x439cdc&&this['listenTo'](_0x439cdc,'execute',()=>{const _0x5683d5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5683d5&&_0x5683d5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x5683d5);});});}}async function checkLicense(_0x280ecf){const _0x4ff147=_0x16e689([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]),_0x3f7418=window[_0x16e689([0x44,0x61,0x74,0x65])][_0x16e689([0x6e,0x6f,0x77])](),_0x4aad97=_0x280ecf[_0x16e689([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xfa1783=new window[(_0x16e689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6f4238=>{_0x4aad97[_0x16e689([0x6f,0x6e,0x63,0x65])](_0x16e689([0x72,0x65,0x61,0x64,0x79]),_0x6f4238);}),_0x55880d={[_0x16e689([0x6b,0x74,0x79])]:_0x16e689([0x45,0x43]),[_0x16e689([0x75,0x73,0x65])]:_0x16e689([0x73,0x69,0x67]),[_0x16e689([0x63,0x72,0x76])]:_0x16e689([0x50,0x2d,0x32,0x35,0x36]),[_0x16e689([0x78])]:_0x16e689([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]),[_0x16e689([0x79])]:_0x16e689([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]),[_0x16e689([0x61,0x6c,0x67])]:_0x16e689([0x45,0x53,0x32,0x35,0x36])},_0x457515=_0x4aad97[_0x16e689([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16e689([0x67,0x65,0x74])](_0x16e689([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x29cc43=await(async function(){let _0x352818,_0xddec8e=null,_0x286452=null;try{if(_0x457515==_0x16e689([0x47,0x50,0x4c]))return _0x16e689([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x352818=(function(){const _0x5833ce=_0x457515[_0x16e689([0x73,0x70,0x6c,0x69,0x74])](_0x16e689([0x2e]));if(0x3!=_0x5833ce[_0x16e689([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x162367=_0x5833ce[0x1];return _0x280c0e(_0x162367);function _0x280c0e(_0x5c454d){const _0x6e6a5d=_0x9e866e(_0x5c454d);return _0x6e6a5d&&_0x17fcf7()?_0x6e6a5d:null;function _0x17fcf7(){const _0x931853=_0x6e6a5d[_0x16e689([0x6a,0x74,0x69])],_0x57cd8e=window[_0x16e689([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x931853[_0x16e689([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x931853[_0x16e689([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x518254={..._0x6e6a5d,[_0x16e689([0x6a,0x74,0x69])]:_0x931853[_0x16e689([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x931853[_0x16e689([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x518254[_0x16e689([0x76,0x63])],_0x3aa607(_0x518254)==_0x57cd8e;}}}()),!_0x352818)return _0x16e689([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x352818[_0x16e689([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x286452=function(_0x3af0c9,_0x5bf0fc){return new window[(_0x16e689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d49af=>{if(_0x1f5e9d())return _0x4d49af(_0x16e689([0x56,0x61,0x6c,0x69,0x64]));_0x1fc0cf(),_0x4aad97[_0x16e689([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16e689([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5abf45=!0x1;const _0x399cd2=uid();function _0x4e9229(_0x19e1f0){return!!_0x19e1f0&&(typeof _0x19e1f0===_0x16e689([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19e1f0===_0x16e689([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19e1f0[_0x16e689([0x74,0x68,0x65,0x6e])]===_0x16e689([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19e1f0[_0x16e689([0x63,0x61,0x74,0x63,0x68])]===_0x16e689([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41b982(_0x555bcf){_0x302e63(_0x555bcf)[_0x16e689([0x74,0x68,0x65,0x6e])](_0x4c1d93=>{if(!_0x4c1d93||_0x4c1d93[_0x16e689([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16e689([0x6f,0x6b]))return _0x16e689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3884b7(_0x3aa607(_0x399cd2+_0x5bf0fc))!=_0x4c1d93[_0x16e689([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16e689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16e689([0x56,0x61,0x6c,0x69,0x64]);})[_0x16e689([0x74,0x68,0x65,0x6e])](_0x2c0895=>(_0x887c04(),_0x2c0895),()=>{const _0xa6915a=_0x8cdf5c();return null==_0xa6915a?(_0x887c04(),_0x16e689([0x56,0x61,0x6c,0x69,0x64])):_0x16e689(_0x3f7418-_0xa6915a>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16e689([0x74,0x68,0x65,0x6e])](_0x4d49af)[_0x16e689([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d49af(_0x16e689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x9fbdb3=0x36ee80;function _0x887c04(){const _0x490b0e=_0x16e689([0x6c,0x6c,0x63,0x74,0x2d])+_0x3884b7(_0x3aa607(_0x3af0c9)),_0x57cc1b=_0x288f69(_0x3884b7(window[_0x16e689([0x4d,0x61,0x74,0x68])][_0x16e689([0x63,0x65,0x69,0x6c])](_0x3f7418/_0x9fbdb3)));window[_0x16e689([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16e689([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x490b0e,_0x57cc1b);}function _0x8cdf5c(){const _0x1cb3e9=_0x16e689([0x6c,0x6c,0x63,0x74,0x2d])+_0x3884b7(_0x3aa607(_0x3af0c9)),_0x4a7eb9=window[_0x16e689([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16e689([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cb3e9);return _0x4a7eb9?window[_0x16e689([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x288f69(_0x4a7eb9),0x10)*_0x9fbdb3:null;}function _0x302e63(_0x45fd62){return new window[(_0x16e689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9cd5c1,_0x490c60)=>{_0x45fd62[_0x16e689([0x74,0x68,0x65,0x6e])](_0x9cd5c1,_0x490c60),window[_0x16e689([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x490c60,0x1d4c0);});}}_0x4aad97[_0x16e689([0x6f,0x6e])](_0x16e689([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57c56d,_0x33e371)=>{if(_0x33e371[0x0]!=_0x3af0c9)return _0x4d49af(_0x16e689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x33e371[0x1]={..._0x33e371[0x1],[_0x16e689([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x399cd2};},{[_0x16e689([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16e689([0x68,0x69,0x67,0x68])}),_0x4aad97[_0x16e689([0x6f,0x6e])](_0x16e689([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b1eb3=>{_0x4e9229(_0x2b1eb3[_0x16e689([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5abf45=!0x0,_0x41b982(_0x2b1eb3[_0x16e689([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16e689([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16e689([0x6c,0x6f,0x77])}),_0xfa1783[_0x16e689([0x74,0x68,0x65,0x6e])](()=>{_0x5abf45||_0x4d49af(_0x16e689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f5e9d(){return _0x4aad97[_0x16e689([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16e689([0x76,0x69,0x65,0x77])][_0x16e689([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16e689([0x61,0x75,0x74,0x6f]);}function _0x1fc0cf(){_0x4aad97[_0x16e689([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16e689([0x76,0x69,0x65,0x77])][_0x16e689([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16e689([0x61,0x75,0x74,0x6f]);}}(_0x352818[_0x16e689([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x352818[_0x16e689([0x6a,0x74,0x69])]));const _0x2ffaed=await(async function(){let _0x4df8b3=!0x0;try{const _0x467866=_0x457515[_0x16e689([0x73,0x70,0x6c,0x69,0x74])](_0x16e689([0x2e])),[_0x2729c2,_0x4c14a7,_0x55d158]=_0x467866;return _0x3c72c8(_0x2729c2),await _0x4abe49(_0x2729c2,_0x4c14a7,_0x55d158),_0x4df8b3;}catch{return!0x1;}function _0x3c72c8(_0x5cc469){const _0x7773b5=_0x9e866e(_0x5cc469);_0x7773b5&&_0x7773b5[_0x16e689([0x61,0x6c,0x67])]==_0x16e689([0x45,0x53,0x32,0x35,0x36])||(_0x4df8b3=!0x1);}async function _0x4abe49(_0x491ebb,_0x200665,_0x5edc40){const _0x1ae92b=window[_0x16e689([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16e689([0x66,0x72,0x6f,0x6d])](_0x34ffae(_0x5edc40),_0x1b5d67=>_0x1b5d67[_0x16e689([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x51ee29=new window[(_0x16e689([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16e689([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x491ebb+_0x16e689([0x2e])+_0x200665),_0x3b5bdf=window[_0x16e689([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16e689([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b5bdf)return;const _0x5d7918=await _0x3b5bdf[_0x16e689([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16e689([0x6a,0x77,0x6b]),_0x55880d,{[_0x16e689([0x6e,0x61,0x6d,0x65])]:_0x16e689([0x45,0x43,0x44,0x53,0x41]),[_0x16e689([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16e689([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16e689([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b5bdf[_0x16e689([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16e689([0x6e,0x61,0x6d,0x65])]:_0x16e689([0x45,0x43,0x44,0x53,0x41]),[_0x16e689([0x68,0x61,0x73,0x68])]:{[_0x16e689([0x6e,0x61,0x6d,0x65])]:_0x16e689([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d7918,_0x1ae92b,_0x51ee29)||(_0x4df8b3=!0x1);}}());return _0x2ffaed?(function(){const _0x3724a8=_0x352818[_0x16e689([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3724a8)return!0x1;if(_0x3724a8[_0x16e689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e689([0x2a])))return!0x0;if(_0x3724a8[_0x16e689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e689([0x55,0x50,0x4c,0x43])))return!0x0;return!0x1;}())?(function(){const _0x230093=[_0x16e689([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16e689([0x74,0x72,0x69,0x61,0x6c])][_0x16e689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x352818[_0x16e689([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f7418/0x3e8:0x69b0b080;return _0x352818[_0x16e689([0x65,0x78,0x70])]<_0x230093;}())?_0x16e689([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x34bc95=_0x352818[_0x16e689([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34bc95||0x0==_0x34bc95[_0x16e689([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x48d84c}=new URL(window[_0x16e689([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34bc95[_0x16e689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d84c))return!0x0;const _0x3e5af7=_0x48d84c[_0x16e689([0x73,0x70,0x6c,0x69,0x74])](_0x16e689([0x2e]));return _0x34bc95[_0x16e689([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ca90d=>_0x1ca90d[_0x16e689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e689([0x2a])))[_0x16e689([0x6d,0x61,0x70])](_0x56e4df=>_0x56e4df[_0x16e689([0x73,0x70,0x6c,0x69,0x74])](_0x16e689([0x2e])))[_0x16e689([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58142e=>_0x58142e[_0x16e689([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3e5af7[_0x16e689([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16e689([0x6d,0x61,0x70])](_0x2e0917=>Array(_0x3e5af7[_0x16e689([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e0917[_0x16e689([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16e689([0x66,0x69,0x6c,0x6c])](_0x2e0917[0x0]===_0x16e689([0x2a])?_0x16e689([0x2a]):'')[_0x16e689([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e0917))[_0x16e689([0x73,0x6f,0x6d,0x65])](_0x33422f=>_0x3e5af7[_0x16e689([0x65,0x76,0x65,0x72,0x79])]((_0x341631,_0x2fd2dc)=>_0x33422f[_0x2fd2dc]===_0x341631||_0x33422f[_0x2fd2dc]===_0x16e689([0x2a])));}())?(_0x352818[_0x16e689([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16e689([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xddec8e=function(_0x47f963){const _0x466835=new window[(_0x16e689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cd725=>setTimeout(_0x1cd725,0x93ecc)),_0x36015b=_0xfa1783[_0x16e689([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16e689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c9894=>{let _0x19fb81=0x0;_0x4aad97[_0x16e689([0x6d,0x6f,0x64,0x65,0x6c])][_0x16e689([0x6f,0x6e])](_0x16e689([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f30f7,_0xf6cc93)=>{_0xf6cc93[0x0][_0x16e689([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19fb81++,0x5e8==_0x19fb81&&(_0x4c9894(),_0x4f30f7[_0x16e689([0x6f,0x66,0x66])]());});})),_0x196501=[_0x466835,_0x36015b];return window[_0x16e689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16e689([0x72,0x61,0x63,0x65])](_0x196501)[_0x16e689([0x74,0x68,0x65,0x6e])](()=>_0x47f963);}(_0x16e689([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0xddec8e&&_0x286452)return new window[(_0x16e689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30f327,_0x5dbd58)=>{_0xddec8e[_0x16e689([0x74,0x68,0x65,0x6e])](_0x30f327,_0x5dbd58),_0x286452[_0x16e689([0x74,0x68,0x65,0x6e])](_0x18b3a5=>{_0x18b3a5!=_0x16e689([0x56,0x61,0x6c,0x69,0x64])&&_0x30f327(_0x18b3a5);},_0x5dbd58);});return _0xddec8e||_0x286452||_0x16e689([0x56,0x61,0x6c,0x69,0x64]);}())):_0x16e689([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16e689([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16e689([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16e689([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x9e866e(_0x352422){return _0x352422[_0x16e689([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16e689([0x65,0x79]))?JSON[_0x16e689([0x70,0x61,0x72,0x73,0x65])](_0x34ffae(_0x352422)):null;}function _0x34ffae(_0x4efdaf){return window[_0x16e689([0x61,0x74,0x6f,0x62])](_0x4efdaf[_0x16e689([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16e689([0x2b]))[_0x16e689([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16e689([0x2f])));}function _0x3aa607(_0x43963f){let _0x164293=0x1505;function _0x255525(_0x4974e0){for(let _0x166035=0x0;_0x166035<_0x4974e0[_0x16e689([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x166035++){const _0x347390=_0x4974e0[_0x16e689([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x166035);_0x164293=(_0x164293<<0x5)+_0x164293+_0x347390,_0x164293&=_0x164293;}}return function _0xa96bd8(_0x409bd6){Array[_0x16e689([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x409bd6)?_0x409bd6[_0x16e689([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa96bd8):_0x409bd6&&typeof _0x409bd6==_0x16e689([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16e689([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x409bd6)[_0x16e689([0x73,0x6f,0x72,0x74])]()[_0x16e689([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35351b,_0x30c830])=>{_0x255525(_0x35351b),_0xa96bd8(_0x30c830);}):_0x255525(window[_0x16e689([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x409bd6));}(_0x43963f),_0x164293>>>0x0;}function _0x3884b7(_0x40f5ad){return _0x40f5ad[_0x16e689([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16e689([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16e689([0x30]));}function _0x288f69(_0x1bdbe6){return _0x1bdbe6[_0x16e689([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16e689([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16e689([0x6a,0x6f,0x69,0x6e])]('');}function _0x567e0f(){}function _0x16e689(_0xec2961){return _0xec2961['map'](_0x56ab65=>String['fromCharCode'](_0x56ab65))['join']('');}!function(_0x2d6d8a){const _0xd8081c=(function(){const _0x1a54db=window[_0x16e689([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16e689([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16e689([0x6e,0x6f,0x77])]())[_0x16e689([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16e689([0x2e]),'');let _0x2e1e2a=_0x16e689([0x68]);for(let _0x594a51=0x0;_0x594a51<_0x1a54db[_0x16e689([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x594a51+=0x2){let _0x1d2117=window[_0x16e689([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a54db[_0x16e689([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x594a51,_0x594a51+0x2));_0x1d2117>=_0x4ff147[_0x16e689([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1d2117-=_0x4ff147[_0x16e689([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e1e2a+=_0x4ff147[_0x1d2117];}return _0x2e1e2a;}());_0x4aad97[_0xd8081c]=_0x16e689([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d6d8a,_0x2d6d8a!=_0x16e689([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0xfa1783,_0x4aad97[_0x16e689([0x6d,0x6f,0x64,0x65,0x6c])][_0x16e689([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x567e0f,_0x4aad97[_0x16e689([0x6d,0x6f,0x64,0x65,0x6c])][_0x16e689([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x567e0f,_0x4aad97[_0x16e689([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16e689([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x29cc43);}var __defProp=Object['defineProperty'],__defNormalProp=(_0x228970,_0x253e0f,_0x51f9be)=>_0x253e0f in _0x228970?__defProp(_0x228970,_0x253e0f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51f9be}):_0x228970[_0x253e0f]=_0x51f9be,__publicField=(_0x4dd887,_0x234f22,_0x2ed271)=>(__defNormalProp(_0x4dd887,'symbol'!=typeof _0x234f22?_0x234f22+'':_0x234f22,_0x2ed271),_0x2ed271);function cloneObj(_0x3f9598){let _0x3833b4=_0x50f869=>{var _0x35c6bf;for(let _0x4f5e4e in _0x50f869)(null==(_0x35c6bf=_0x50f869[_0x4f5e4e])?void 0x0:_0x35c6bf['constructor'])===Object&&(_0x50f869[_0x4f5e4e]=_0x3833b4(_0x50f869[_0x4f5e4e]));return{..._0x50f869};};return _0x3833b4(_0x3f9598);}var Data=class{constructor(_0x41e3af){_0x41e3af['constructor']===Object?this['store']=cloneObj(_0x41e3af):(this['_storeIsProxy']=!0x0,this['store']=_0x41e3af),this['callbackMap']=Object['create'](null);}static['warn'](_0x3fa436,_0x20f87c){console['warn']('Symbiote\x20Data:\x20cannot\x20'+_0x3fa436+'.\x20Prop\x20name:\x20'+_0x20f87c);}['read'](_0x5b76aa){return this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x5b76aa)?this['store'][_0x5b76aa]:(Data['warn']('read',_0x5b76aa),null);}['has'](_0x2ff64a){return this['_storeIsProxy']?void 0x0!==this['store'][_0x2ff64a]:this['store']['hasOwnProperty'](_0x2ff64a);}['add'](_0x1e6f28,_0x208d28,_0x2f7551=!0x1){!_0x2f7551&&Object['keys'](this['store'])['includes'](_0x1e6f28)||(this['store'][_0x1e6f28]=_0x208d28,this['notify'](_0x1e6f28));}['pub'](_0x454f0d,_0x27d1fb){this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x454f0d)?(this['store'][_0x454f0d]=_0x27d1fb,this['notify'](_0x454f0d)):Data['warn']('publish',_0x454f0d);}['multiPub'](_0x54e2d9){for(let _0x443d44 in _0x54e2d9)this['pub'](_0x443d44,_0x54e2d9[_0x443d44]);}['notify'](_0x50bb99){this['callbackMap'][_0x50bb99]&&this['callbackMap'][_0x50bb99]['forEach'](_0x286297=>{_0x286297(this['store'][_0x50bb99]);});}['sub'](_0xe200d1,_0xdd094c,_0x1d7ad4=!0x0){return this['_storeIsProxy']||this['store']['hasOwnProperty'](_0xe200d1)?(this['callbackMap'][_0xe200d1]||(this['callbackMap'][_0xe200d1]=new Set()),this['callbackMap'][_0xe200d1]['add'](_0xdd094c),_0x1d7ad4&&_0xdd094c(this['store'][_0xe200d1]),{'remove':()=>{this['callbackMap'][_0xe200d1]['delete'](_0xdd094c),this['callbackMap'][_0xe200d1]['size']||delete this['callbackMap'][_0xe200d1];},'callback':_0xdd094c}):(Data['warn']('subscribe',_0xe200d1),null);}static['registerCtx'](_0x5151a4,_0x579d0f=Symbol()){let _0x56c487=Data['globalStore']['get'](_0x579d0f);return _0x56c487?console['warn']('State:\x20context\x20UID\x20\x22'+_0x579d0f+'\x22\x20already\x20in\x20use'):(_0x56c487=new Data(_0x5151a4),Data['globalStore']['set'](_0x579d0f,_0x56c487)),_0x56c487;}static['deleteCtx'](_0x45e781){Data['globalStore']['delete'](_0x45e781);}static['getCtx'](_0x11fe7a,_0x5e764b=!0x0){return Data['globalStore']['get'](_0x11fe7a)||(_0x5e764b&&console['warn']('State:\x20wrong\x20context\x20UID\x20-\x20\x22'+_0x11fe7a+'\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'](_0x4d4dbf='XXXXXXXXX-XXX'){let _0x18001e='';for(let _0x46f4d2=0x0;_0x46f4d2<_0x4d4dbf['length'];_0x46f4d2++)_0x18001e+='-'===_0x4d4dbf[_0x46f4d2]?_0x4d4dbf[_0x46f4d2]:CHARS['charAt'](Math['random']()*CHLENGTH);return _0x18001e;}};function setNestedProp(_0x37f4d4,_0x14e5f2,_0x392500){let _0xbd4f42,_0x2975ad=!0x0,_0x4c5a5e=_0x14e5f2['split']('.');return _0x4c5a5e['forEach']((_0x204b6e,_0x4d51f6)=>{_0x4d51f6<_0x4c5a5e['length']-0x1?_0x37f4d4=_0x37f4d4[_0x204b6e]:_0xbd4f42=_0x204b6e;}),_0x37f4d4?_0x37f4d4[_0xbd4f42]=_0x392500:_0x2975ad=!0x1,_0x2975ad;}function kebabToCamel(_0x4d8b2e){return _0x4d8b2e['split']('-')['map']((_0x3998d1,_0x31dc40)=>_0x3998d1&&_0x31dc40?_0x3998d1[0x0]['toUpperCase']()+_0x3998d1['slice'](0x1):_0x3998d1)['join']('')['split']('_')['map']((_0x3eb285,_0xb4e872)=>_0x3eb285&&_0xb4e872?_0x3eb285['toUpperCase']():_0x3eb285)['join']('');}function repeatProcessor(_0x2eab93,_0x734a38){[..._0x2eab93['querySelectorAll']('['+DICT['REPEAT_ATTR']+']')]['forEach'](_0xa818df=>{let _0x572a62,_0x51deda=_0xa818df['getAttribute'](DICT['REPEAT_ITEM_TAG_ATTR']);if(_0x51deda&&(_0x572a62=window['customElements']['get'](_0x51deda)),!_0x572a62){_0x572a62=class extends _0x734a38['BaseComponent']{constructor(){super(),_0x51deda||(this['style']['display']='contents');}};let _0x28ff50=_0xa818df['innerHTML'];_0x572a62['template']=_0x28ff50,_0x572a62['reg'](_0x51deda);}for(;_0xa818df['firstChild'];)_0xa818df['firstChild']['remove']();let _0x2abff1=_0xa818df['getAttribute'](DICT['REPEAT_ATTR']);_0x734a38['sub'](_0x2abff1,_0x28e509=>{if(!_0x28e509){for(;_0xa818df['firstChild'];)_0xa818df['firstChild']['remove']();return;}let _0x3bf1e5,_0x4b8d5b=[..._0xa818df['children']],_0x48be25=_0x2c2ab7=>{_0x2c2ab7['forEach']((_0x5ef8e7,_0xb99831)=>{if(_0x4b8d5b[_0xb99831]){if(_0x4b8d5b[_0xb99831]['set$'])setTimeout(()=>{_0x4b8d5b[_0xb99831]['set$'](_0x5ef8e7);});else{for(let _0xf24398 in _0x5ef8e7)_0x4b8d5b[_0xb99831][_0xf24398]=_0x5ef8e7[_0xf24398];}}else{_0x3bf1e5||(_0x3bf1e5=new DocumentFragment());let _0x3f939c=new _0x572a62();Object['assign'](_0x3f939c['init$'],_0x5ef8e7),_0x3bf1e5['appendChild'](_0x3f939c);}}),_0x3bf1e5&&_0xa818df['appendChild'](_0x3bf1e5);let _0x547816=_0x4b8d5b['slice'](_0x2c2ab7['length'],_0x4b8d5b['length']);for(let _0x3d54c8 of _0x547816)_0x3d54c8['remove']();};if(_0x28e509['constructor']===Array)_0x48be25(_0x28e509);else{if(_0x28e509['constructor']===Object){let _0x23387b=[];for(let _0x39a11d in _0x28e509){let _0x19a5df=_0x28e509[_0x39a11d];Object['defineProperty'](_0x19a5df,'_KEY_',{'value':_0x39a11d,'enumerable':!0x0}),_0x23387b['push'](_0x19a5df);}_0x48be25(_0x23387b);}else console['warn']('Symbiote\x20repeat\x20data\x20type\x20error:'),console['log'](_0x28e509);}}),_0xa818df['removeAttribute'](DICT['REPEAT_ATTR']),_0xa818df['removeAttribute'](DICT['REPEAT_ITEM_TAG_ATTR']);});}var DEFAULT_SLOT_KEY='__default__';function slotProcessor(_0x17f722,_0x5ec400){if(_0x5ec400['shadowRoot'])return;let _0x5436f7=[..._0x17f722['querySelectorAll']('slot')];if(!_0x5436f7['length'])return;let _0x51cf59={};_0x5436f7['forEach'](_0x3b5dcc=>{let _0x35b98e=_0x3b5dcc['getAttribute']('name')||DEFAULT_SLOT_KEY;_0x51cf59[_0x35b98e]={'slot':_0x3b5dcc,'fr':document['createDocumentFragment']()};}),_0x5ec400['initChildren']['forEach'](_0x21ec5d=>{var _0x306bb7;let _0x31760d=DEFAULT_SLOT_KEY;_0x21ec5d instanceof Element&&_0x21ec5d['hasAttribute']('slot')&&(_0x31760d=_0x21ec5d['getAttribute']('slot'),_0x21ec5d['removeAttribute']('slot')),null==(_0x306bb7=_0x51cf59[_0x31760d])||_0x306bb7['fr']['appendChild'](_0x21ec5d);}),Object['values'](_0x51cf59)['forEach'](_0xa8e795=>{if(_0xa8e795['fr']['childNodes']['length'])_0xa8e795['slot']['parentNode']['replaceChild'](_0xa8e795['fr'],_0xa8e795['slot']);else{if(_0xa8e795['slot']['childNodes']['length']){let _0x342079=document['createDocumentFragment']();_0x342079['append'](..._0xa8e795['slot']['childNodes']),_0xa8e795['slot']['parentNode']['replaceChild'](_0x342079,_0xa8e795['slot']);}else _0xa8e795['slot']['remove']();}});}function refProcessor(_0x371274,_0x1667a0){[..._0x371274['querySelectorAll']('['+DICT['EL_REF_ATTR']+']')]['forEach'](_0x27a6ec=>{let _0x2c0d81=_0x27a6ec['getAttribute'](DICT['EL_REF_ATTR']);_0x1667a0['ref'][_0x2c0d81]=_0x27a6ec,_0x27a6ec['removeAttribute'](DICT['EL_REF_ATTR']);});}function domSetProcessor(_0x32eacd,_0x40be84){[..._0x32eacd['querySelectorAll']('['+DICT['BIND_ATTR']+']')]['forEach'](_0x2d4828=>{let _0x19302b=_0x2d4828['getAttribute'](DICT['BIND_ATTR'])['split'](';');[..._0x2d4828['attributes']]['forEach'](_0x2ad4cf=>{if(_0x2ad4cf['name']['startsWith']('-')&&_0x2ad4cf['value']){let _0x222101=kebabToCamel(_0x2ad4cf['name']['replace']('-',''));_0x19302b['push'](_0x222101+':'+_0x2ad4cf['value']),_0x2d4828['removeAttribute'](_0x2ad4cf['name']);}}),_0x19302b['forEach'](_0x3ba191=>{if(!_0x3ba191)return;let _0x34de8d,_0x5baa8c=_0x3ba191['split'](':')['map'](_0x5c6f49=>_0x5c6f49['trim']()),_0x23ce9e=_0x5baa8c[0x0];0x0===_0x23ce9e['indexOf'](DICT['ATTR_BIND_PRFX'])&&(_0x34de8d=!0x0,_0x23ce9e=_0x23ce9e['replace'](DICT['ATTR_BIND_PRFX'],''));let _0x3e22bb=_0x5baa8c[0x1]['split'](',')['map'](_0x2a28ef=>_0x2a28ef['trim']());for(let _0x835aa5 of _0x3e22bb){let _0x2b704b;_0x835aa5['startsWith']('!!')?(_0x2b704b='double',_0x835aa5=_0x835aa5['replace']('!!','')):_0x835aa5['startsWith']('!')&&(_0x2b704b='single',_0x835aa5=_0x835aa5['replace']('!','')),_0x40be84['sub'](_0x835aa5,_0x474c45=>{'double'===_0x2b704b?_0x474c45=!!_0x474c45:'single'===_0x2b704b&&(_0x474c45=!_0x474c45),_0x34de8d?(null==_0x474c45?void 0x0:_0x474c45['constructor'])===Boolean?_0x474c45?_0x2d4828['setAttribute'](_0x23ce9e,''):_0x2d4828['removeAttribute'](_0x23ce9e):_0x2d4828['setAttribute'](_0x23ce9e,_0x474c45):setNestedProp(_0x2d4828,_0x23ce9e,_0x474c45)||(_0x2d4828[DICT['SET_LATER_KEY']]||(_0x2d4828[DICT['SET_LATER_KEY']]=Object['create'](null)),_0x2d4828[DICT['SET_LATER_KEY']][_0x23ce9e]=_0x474c45);});}}),_0x2d4828['removeAttribute'](DICT['BIND_ATTR']);});}var OPEN_TOKEN$1='{{',CLOSE_TOKEN$1='}}',SKIP_ATTR='skip-text';function getTextNodesWithTokens(_0x1382b2){let _0x407989,_0x437a75=[],_0x56570d=document['createTreeWalker'](_0x1382b2,NodeFilter['SHOW_TEXT'],{'acceptNode':_0x33804b=>{var _0x5429f5;return!(null==(_0x5429f5=_0x33804b['parentElement'])?void 0x0:_0x5429f5['hasAttribute'](SKIP_ATTR))&&_0x33804b['textContent']['includes'](OPEN_TOKEN$1)&&_0x33804b['textContent']['includes'](CLOSE_TOKEN$1)&&0x1;}});for(;_0x407989=_0x56570d['nextNode']();)_0x437a75['push'](_0x407989);return _0x437a75;}var txtNodesProcessor=function(_0x2abbe6,_0x1f1375){getTextNodesWithTokens(_0x2abbe6)['forEach'](_0x2682b2=>{let _0x159911,_0x3b37ac=[];for(;_0x2682b2['textContent']['includes'](CLOSE_TOKEN$1);)_0x2682b2['textContent']['startsWith'](OPEN_TOKEN$1)?(_0x159911=_0x2682b2['textContent']['indexOf'](CLOSE_TOKEN$1)+CLOSE_TOKEN$1['length'],_0x2682b2['splitText'](_0x159911),_0x3b37ac['push'](_0x2682b2)):(_0x159911=_0x2682b2['textContent']['indexOf'](OPEN_TOKEN$1),_0x2682b2['splitText'](_0x159911)),_0x2682b2=_0x2682b2['nextSibling'];_0x3b37ac['forEach'](_0x3d6d59=>{let _0x2ca9a4=_0x3d6d59['textContent']['replace'](OPEN_TOKEN$1,'')['replace'](CLOSE_TOKEN$1,'');_0x3d6d59['textContent']='',_0x1f1375['sub'](_0x2ca9a4,_0x32b602=>{_0x3d6d59['textContent']=_0x32b602;});});});},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(_0x42162a){return!(_0x42162a[0x0]!==DOUBLE_QUOTE&&_0x42162a[0x0]!==SINGLE_QUOTE||_0x42162a[_0x42162a['length']-0x1]!==DOUBLE_QUOTE&&_0x42162a[_0x42162a['length']-0x1]!==SINGLE_QUOTE);}function trimQuotes(_0x5b75e6){return _0x5b75e6[0x0]!==DOUBLE_QUOTE&&_0x5b75e6[0x0]!==SINGLE_QUOTE||(_0x5b75e6=_0x5b75e6['slice'](0x1)),_0x5b75e6[_0x5b75e6['length']-0x1]!==DOUBLE_QUOTE&&_0x5b75e6[_0x5b75e6['length']-0x1]!==SINGLE_QUOTE||(_0x5b75e6=_0x5b75e6['slice'](0x0,-0x1)),_0x5b75e6;}function escapeQuotes(_0x412b75){let _0x2044bb='',_0x2011b5='';for(var _0x17c511=0x0;_0x17c511<_0x412b75['length'];_0x17c511++){const _0x51b70c=_0x412b75[_0x17c511+0x1];'\x5c'===_0x412b75[_0x17c511]&&'\x22'===_0x51b70c?(_0x2044bb+='\x5c\x22',_0x17c511++):'\x22'===_0x412b75[_0x17c511]&&'\x5c'!==_0x2011b5?_0x2044bb+='\x5c\x22':_0x2044bb+=_0x412b75[_0x17c511],_0x2011b5=_0x412b75[_0x17c511];}return _0x2044bb;}function parseCssPropertyValue(_0x23b8ef){let _0x5bcc3d=_0x23b8ef;hasLeadingTrailingQuotes(_0x23b8ef)&&(_0x5bcc3d=trimQuotes(_0x5bcc3d),_0x5bcc3d=_0x5bcc3d['replace'](ESCAPED_PATTERN,(_0x25870a,_0x2049ba)=>String['fromCodePoint'](parseInt(_0x2049ba['trim'](),0x10))),_0x5bcc3d=_0x5bcc3d['replaceAll']('\x5c\x0a','\x5cn'),_0x5bcc3d=escapeQuotes(_0x5bcc3d),_0x5bcc3d=DOUBLE_QUOTE+_0x5bcc3d+DOUBLE_QUOTE);try{return JSON['parse'](_0x5bcc3d);}catch(_0x223da1){throw new Error('Failed\x20to\x20parse\x20CSS\x20property\x20value:\x20'+_0x5bcc3d+'.\x20Original\x20input:\x20'+_0x23b8ef);}}var autoTagsCount=0x0,styleMutationObserver=null,styleMutationObserverCbList=null,_BaseComponent=class extends HTMLElement{constructor(){super(),__publicField(this,'updateCssData',()=>{var _0x5f4cdb;this['dropCssDataCache'](),null==(_0x5f4cdb=this['__boundCssProps'])||_0x5f4cdb['forEach'](_0x34b7be=>{let _0x1c1722=this['getCssData'](this['__extractCssName'](_0x34b7be),!0x0);null!==_0x1c1722&&this['$'][_0x34b7be]!==_0x1c1722&&(this['$'][_0x34b7be]=_0x1c1722);});}),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 _0x20b39a;this['__initialized']||(this['__initialized']=!0x0,null==(_0x20b39a=this['initCallback'])||_0x20b39a['call'](this));}['render'](_0xac2c4d,_0x37a17a=this['renderShadow']){let _0x4e7afb;if(!_0x37a17a&&!this['constructor']['__shadowStylesUrl']||this['shadowRoot']||this['attachShadow']({'mode':'open'}),this['allowCustomTemplate']){let _0x12322a=this['getAttribute'](DICT['USE_TPL']);if(_0x12322a){let _0x5d6c80=this['getRootNode'](),_0x7081e8=(null==_0x5d6c80?void 0x0:_0x5d6c80['querySelector'](_0x12322a))||document['querySelector'](_0x12322a);_0x7081e8?_0xac2c4d=_0x7081e8['content']['cloneNode'](!0x0):console['warn']('Symbiote\x20template\x20\x22'+_0x12322a+'\x22\x20is\x20not\x20found...');}}if(this['processInnerHtml']){for(let _0x5d02cf of this['tplProcessors'])_0x5d02cf(this,this);}if(_0xac2c4d||this['constructor']['template']){if(this['constructor']['template']&&!this['constructor']['__tpl']&&(this['constructor']['__tpl']=document['createElement']('template'),this['constructor']['__tpl']['innerHTML']=this['constructor']['template']),(null==_0xac2c4d?void 0x0:_0xac2c4d['constructor'])===DocumentFragment)_0x4e7afb=_0xac2c4d;else{if((null==_0xac2c4d?void 0x0:_0xac2c4d['constructor'])===String){let _0x8277f7=document['createElement']('template');_0x8277f7['innerHTML']=_0xac2c4d,_0x4e7afb=_0x8277f7['content']['cloneNode'](!0x0);}else this['constructor']['__tpl']&&(_0x4e7afb=this['constructor']['__tpl']['content']['cloneNode'](!0x0));}for(let _0x2357b5 of this['tplProcessors'])_0x2357b5(_0x4e7afb,this);}let _0x542af1=()=>{_0x4e7afb&&(_0x37a17a&&this['shadowRoot']['appendChild'](_0x4e7afb)||this['appendChild'](_0x4e7afb)),this['__initCallback']();};if(this['constructor']['__shadowStylesUrl']){_0x37a17a=!0x0;let _0x2799b1=document['createElement']('link');_0x2799b1['rel']='stylesheet',_0x2799b1['href']=this['constructor']['__shadowStylesUrl'],_0x2799b1['onload']=_0x542af1,this['shadowRoot']['prepend'](_0x2799b1);}else _0x542af1();}['addTemplateProcessor'](_0x49f262){this['tplProcessors']['add'](_0x49f262);}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 _0x231d84;let _0x55986a=(null==(_0x231d84=this['getAttribute'](DICT['CTX_NAME_ATTR']))?void 0x0:_0x231d84['trim']())||this['cssCtxName']||this['__cachedCtxName']||this['autoCtxName'];return this['__cachedCtxName']=_0x55986a,_0x55986a;}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'](_0xfd8404,_0x3a8fa1){let _0x26a7a7,_0x5b5a0f;if(_0xfd8404['startsWith'](DICT['EXT_DATA_CTX_PRFX']))_0x26a7a7=_0x3a8fa1['nodeCtx'],_0x5b5a0f=_0xfd8404['replace'](DICT['EXT_DATA_CTX_PRFX'],'');else{if(_0xfd8404['includes'](DICT['NAMED_DATA_CTX_SPLTR'])){let _0x584964=_0xfd8404['split'](DICT['NAMED_DATA_CTX_SPLTR']);_0x26a7a7=Data['getCtx'](_0x584964[0x0]),_0x5b5a0f=_0x584964[0x1];}else _0x26a7a7=_0x3a8fa1['localCtx'],_0x5b5a0f=_0xfd8404;}return{'ctx':_0x26a7a7,'name':_0x5b5a0f};}['sub'](_0x2ce3c0,_0x34da41,_0x255b02=!0x0){let _0x3f27a3=_0x51f150=>{this['isConnected']&&_0x34da41(_0x51f150);},_0x1bff72=_BaseComponent['__parseProp'](_0x2ce3c0,this);_0x1bff72['ctx']['has'](_0x1bff72['name'])?this['allSubs']['add'](_0x1bff72['ctx']['sub'](_0x1bff72['name'],_0x3f27a3,_0x255b02)):window['setTimeout'](()=>{this['allSubs']['add'](_0x1bff72['ctx']['sub'](_0x1bff72['name'],_0x3f27a3,_0x255b02));});}['notify'](_0x3a5496){let _0x7415f3=_BaseComponent['__parseProp'](_0x3a5496,this);_0x7415f3['ctx']['notify'](_0x7415f3['name']);}['has'](_0x42791a){let _0x387ab4=_BaseComponent['__parseProp'](_0x42791a,this);return _0x387ab4['ctx']['has'](_0x387ab4['name']);}['add'](_0x3ea91b,_0x5f5a8e,_0x49bf0f=!0x1){let _0x41e5bd=_BaseComponent['__parseProp'](_0x3ea91b,this);_0x41e5bd['ctx']['add'](_0x41e5bd['name'],_0x5f5a8e,_0x49bf0f);}['add$'](_0x47e0f2,_0x2e1e60=!0x1){for(let _0x234120 in _0x47e0f2)this['add'](_0x234120,_0x47e0f2[_0x234120],_0x2e1e60);}get['$'](){if(!this['__stateProxy']){let _0x13ef27=Object['create'](null);this['__stateProxy']=new Proxy(_0x13ef27,{'set':(_0x3e109f,_0x3929c2,_0x2abed1)=>{let _0x439bdc=_BaseComponent['__parseProp'](_0x3929c2,this);return _0x439bdc['ctx']['pub'](_0x439bdc['name'],_0x2abed1),!0x0;},'get':(_0x1b7a19,_0x2b8e46)=>{let _0x4da4c3=_BaseComponent['__parseProp'](_0x2b8e46,this);return _0x4da4c3['ctx']['read'](_0x4da4c3['name']);}});}return this['__stateProxy'];}['set$'](_0x18eaf9,_0x360a66=!0x1){for(let _0x5ecf60 in _0x18eaf9){let _0x450101=_0x18eaf9[_0x5ecf60],_0x3571b7=[String,Number,Boolean];(_0x360a66||!_0x3571b7['includes'](null==_0x450101?void 0x0:_0x450101['constructor'])||this['$'][_0x5ecf60]!==_0x450101)&&(this['$'][_0x5ecf60]=_0x450101);}}get['__ctxOwner'](){return this['ctxOwner']||this['hasAttribute'](DICT['CTX_OWNER_ATTR'])&&'false'!==this['getAttribute'](DICT['CTX_OWNER_ATTR']);}['__initDataCtx'](){let _0x51df28=this['constructor']['__attrDesc'];if(_0x51df28){for(let _0x48ac83 of Object['values'](_0x51df28))Object['keys'](this['init$'])['includes'](_0x48ac83)||(this['init$'][_0x48ac83]='');}for(let _0x166908 in this['init$'])if(_0x166908['startsWith'](DICT['EXT_DATA_CTX_PRFX']))this['nodeCtx']['add'](_0x166908['replace'](DICT['EXT_DATA_CTX_PRFX'],''),this['init$'][_0x166908],this['__ctxOwner']);else{if(_0x166908['includes'](DICT['NAMED_DATA_CTX_SPLTR'])){let _0x22c764=_0x166908['split'](DICT['NAMED_DATA_CTX_SPLTR']),_0x19f23e=_0x22c764[0x0]['trim'](),_0x3b2a63=_0x22c764[0x1]['trim']();if(_0x19f23e&&_0x3b2a63){let _0x44706d=Data['getCtx'](_0x19f23e,!0x1);_0x44706d||(_0x44706d=Data['registerCtx']({},_0x19f23e)),_0x44706d['add'](_0x3b2a63,this['init$'][_0x166908]);}}else this['localCtx']['add'](_0x166908,this['init$'][_0x166908]);}for(let _0x4296e6 in this['cssInit$'])this['bindCssData'](_0x4296e6,this['cssInit$'][_0x4296e6]);this['__dataCtxInitialized']=!0x0;}['connectedCallback'](){var _0x38ee63;if(this['isConnected']){if(this['__disconnectTimeout']&&window['clearTimeout'](this['__disconnectTimeout']),!this['connectedOnce']){let _0x39e5f0=null==(_0x38ee63=this['getAttribute'](DICT['CTX_NAME_ATTR']))?void 0x0:_0x38ee63['trim']();if(_0x39e5f0&&this['style']['setProperty'](DICT['CSS_CTX_PROP'],'\x27'+_0x39e5f0+'\x27'),this['__initDataCtx'](),this[DICT['SET_LATER_KEY']]){for(let _0x711b82 in this[DICT['SET_LATER_KEY']])setNestedProp(this,_0x711b82,this[DICT['SET_LATER_KEY']][_0x711b82]);delete this[DICT['SET_LATER_KEY']];}this['initChildren']=[...this['childNodes']];for(let _0x77111e of tpl_processors_default)this['addTemplateProcessor'](_0x77111e);if(this['pauseRender'])this['__initCallback']();else{if(this['constructor']['__rootStylesLink']){let _0x10fa09=this['getRootNode']();if(!_0x10fa09)return;if(null==_0x10fa09?void 0x0:_0x10fa09['querySelector']('link['+DICT['ROOT_STYLE_ATTR_NAME']+'=\x22'+this['constructor']['is']+'\x22]'))return void this['render']();let _0x2b4940=this['constructor']['__rootStylesLink']['cloneNode'](!0x0);_0x2b4940['setAttribute'](DICT['ROOT_STYLE_ATTR_NAME'],this['constructor']['is']),_0x2b4940['onload']=()=>{this['render']();},_0x10fa09['nodeType']===Node['DOCUMENT_NODE']?_0x10fa09['head']['appendChild'](_0x2b4940):_0x10fa09['prepend'](_0x2b4940);}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 _0xe94b13 of this['allSubs'])_0xe94b13['remove'](),this['allSubs']['delete'](_0xe94b13);for(let _0x51dd36 of this['tplProcessors'])this['tplProcessors']['delete'](_0x51dd36);null==styleMutationObserverCbList||styleMutationObserverCbList['delete'](this['updateCssData']),(null==styleMutationObserverCbList?void 0x0:styleMutationObserverCbList['size'])||(null==styleMutationObserver||styleMutationObserver['disconnect'](),styleMutationObserver=null,styleMutationObserverCbList=null);},0x64)));}static['reg'](_0x5b89ca,_0x453ce7=!0x1){_0x5b89ca||(autoTagsCount++,_0x5b89ca=DICT['AUTO_TAG_PRFX']+'-'+autoTagsCount),this['__tag']=_0x5b89ca;let _0x35859f=window['customElements']['get'](_0x5b89ca);_0x35859f?_0x453ce7||_0x35859f===this||console['warn'](['Element\x20with\x20tag\x20name\x20\x22'+_0x5b89ca+'\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'](_0x5b89ca,_0x453ce7?class extends this{}:this);}static get['is'](){return this['__tag']||this['reg'](),this['__tag'];}static['bindAttributes'](_0x320e23){this['observedAttributes']=Object['keys'](_0x320e23),this['__attrDesc']=_0x320e23;}['attributeChangedCallback'](_0x12b0aa,_0x339dc2,_0x503bac){var _0x217d57;if(_0x339dc2===_0x503bac)return;let _0xcf30af=null==(_0x217d57=this['constructor']['__attrDesc'])?void 0x0:_0x217d57[_0x12b0aa];_0xcf30af?this['__dataCtxInitialized']?this['$'][_0xcf30af]=_0x503bac:this['init$'][_0xcf30af]=_0x503bac:this[_0x12b0aa]=_0x503bac;}['getCssData'](_0x4bf151,_0x4a50d8=!0x1){if(this['__cssDataCache']||(this['__cssDataCache']=Object['create'](null)),!Object['keys'](this['__cssDataCache'])['includes'](_0x4bf151)){this['__computedStyle']||(this['__computedStyle']=window['getComputedStyle'](this));let _0x2e94f7=this['__computedStyle']['getPropertyValue'](_0x4bf151)['trim']();try{this['__cssDataCache'][_0x4bf151]=parseCssPropertyValue(_0x2e94f7);}catch(_0x1c98c2){!_0x4a50d8&&console['warn']('CSS\x20Data\x20error:\x20'+_0x4bf151),this['__cssDataCache'][_0x4bf151]=null;}}return this['__cssDataCache'][_0x4bf151];}['__extractCssName'](_0x37dca1){return _0x37dca1['split']('--')['map']((_0x3cc0b8,_0xc0d12c)=>0x0===_0xc0d12c?'':_0x3cc0b8)['join']('--');}['__initStyleAttrObserver'](){styleMutationObserverCbList||(styleMutationObserverCbList=new Set()),styleMutationObserverCbList['add'](this['updateCssData']),styleMutationObserver||(styleMutationObserver=new MutationObserver(_0xa534ec=>{'attributes'===_0xa534ec[0x0]['type']&&styleMutationObserverCbList['forEach'](_0x8b063d=>{_0x8b063d();});}))['observe'](document,{'childList':!0x0,'subtree':!0x0,'attributes':!0x0,'attributeFilter':['style']});}['bindCssData'](_0x52136a,_0x2125a4=''){this['__boundCssProps']||(this['__boundCssProps']=new Set()),this['__boundCssProps']['add'](_0x52136a);let _0x3ae301=this['getCssData'](this['__extractCssName'](_0x52136a),!0x0);null===_0x3ae301&&(_0x3ae301=_0x2125a4),this['add'](_0x52136a,_0x3ae301),this['__initStyleAttrObserver']();}['dropCssDataCache'](){this['__cssDataCache']=null,this['__computedStyle']=null;}['defineAccessor'](_0x3f6277,_0x238fb5,_0x2f31dd){let _0x14a500='__'+_0x3f6277;this[_0x14a500]=this[_0x3f6277],Object['defineProperty'](this,_0x3f6277,{'set':_0x4b800f=>{this[_0x14a500]=_0x4b800f,_0x2f31dd?window['setTimeout'](()=>{null==_0x238fb5||_0x238fb5(_0x4b800f);}):null==_0x238fb5||_0x238fb5(_0x4b800f);},'get':()=>this[_0x14a500]}),this[_0x3f6277]=this[_0x14a500];}static set['shadowStyles'](_0x5728ab){let _0x37983e=new Blob([_0x5728ab],{'type':'text/css'});this['__shadowStylesUrl']=URL['createObjectURL'](_0x37983e);}static set['rootStyles'](_0x92a885){if(!this['__rootStylesLink']){let _0x2607c4=new Blob([_0x92a885],{'type':'text/css'}),_0x251060=URL['createObjectURL'](_0x2607c4),_0x79585b=document['createElement']('link');_0x79585b['href']=_0x251060,_0x79585b['rel']='stylesheet',this['__rootStylesLink']=_0x79585b;}}},BaseComponent=_BaseComponent;function applyStyles(_0x42443c,_0x18f278){for(let _0x22d402 in _0x18f278)_0x22d402['includes']('-')?_0x42443c['style']['setProperty'](_0x22d402,_0x18f278[_0x22d402]):_0x42443c['style'][_0x22d402]=_0x18f278[_0x22d402];}function applyAttributes(_0x167639,_0x532336){for(let _0x551b0b in _0x532336)_0x532336[_0x551b0b]['constructor']===Boolean?_0x532336[_0x551b0b]?_0x167639['setAttribute'](_0x551b0b,''):_0x167639['removeAttribute'](_0x551b0b):_0x167639['setAttribute'](_0x551b0b,_0x532336[_0x551b0b]);}function create(_0x578a5f={'tag':'div'}){let _0x3cef53=document['createElement'](_0x578a5f['tag']);if(_0x578a5f['attributes']&&applyAttributes(_0x3cef53,_0x578a5f['attributes']),_0x578a5f['styles']&&applyStyles(_0x3cef53,_0x578a5f['styles']),_0x578a5f['properties']){for(let _0x4ec5ed in _0x578a5f['properties'])_0x3cef53[_0x4ec5ed]=_0x578a5f['properties'][_0x4ec5ed];}return _0x578a5f['processors']&&_0x578a5f['processors']['forEach'](_0x5b8de0=>{_0x5b8de0(_0x3cef53);}),_0x578a5f['children']&&_0x578a5f['children']['forEach'](_0x30596c=>{let _0x5e46ec=create(_0x30596c);_0x3cef53['appendChild'](_0x5e46ec);}),_0x3cef53;}__publicField(BaseComponent,'template');var READY_EVENT_NAME='idb-store-ready',DEFAULT_DB_NAME='symbiote-db',UPD_EVENT_PREFIX='symbiote-idb-update_',DbInstance=class{['_notifyWhenReady'](_0x48b7ac=null){window['dispatchEvent'](new CustomEvent(READY_EVENT_NAME,{'detail':{'dbName':this['name'],'storeName':this['storeName'],'event':_0x48b7ac}}));}get['_updEventName'](){return UPD_EVENT_PREFIX+this['name'];}['_getUpdateEvent'](_0x334f95){return new CustomEvent(this['_updEventName'],{'detail':{'key':this['name'],'newValue':_0x334f95}});}['_notifySubscribers'](_0x1da0ee){window['localStorage']['removeItem'](this['name']),window['localStorage']['setItem'](this['name'],_0x1da0ee),window['dispatchEvent'](this['_getUpdateEvent'](_0x1da0ee));}constructor(_0x3018c1,_0x5d0654){this['name']=_0x3018c1,this['storeName']=_0x5d0654,this['version']=0x1,this['request']=window['indexedDB']['open'](this['name'],this['version']),this['request']['onupgradeneeded']=_0x47093b=>{this['db']=_0x47093b['target']['result'],this['objStore']=this['db']['createObjectStore'](_0x5d0654,{'keyPath':'_key'}),this['objStore']['transaction']['oncomplete']=_0x18989=>{this['_notifyWhenReady'](_0x18989);};},this['request']['onsuccess']=_0x176e57=>{this['db']=_0x176e57['target']['result'],this['_notifyWhenReady'](_0x176e57);},this['request']['onerror']=_0x354c13=>{console['error'](_0x354c13);},this['_subscriptionsMap']={},this['_updateHandler']=_0x1ca930=>{_0x1ca930['key']===this['name']&&this['_subscriptionsMap'][_0x1ca930['newValue']]&&this['_subscriptionsMap'][_0x1ca930['newValue']]['forEach'](async _0x2c03d2=>{_0x2c03d2(await this['read'](_0x1ca930['newValue']));});},this['_localUpdateHandler']=_0x38221a=>{this['_updateHandler'](_0x38221a['detail']);},window['addEventListener']('storage',this['_updateHandler']),window['addEventListener'](this['_updEventName'],this['_localUpdateHandler']);}['read'](_0x5eba0b){let _0x37d8e4=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['get'](_0x5eba0b);return new Promise((_0x166f0a,_0x5f2a73)=>{_0x37d8e4['onsuccess']=_0x46ee61=>{var _0x315306;(null==(_0x315306=_0x46ee61['target']['result'])?void 0x0:_0x315306['_value'])?_0x166f0a(_0x46ee61['target']['result']['_value']):(_0x166f0a(null),console['warn']('IDB:\x20cannot\x20read\x20\x22'+_0x5eba0b+'\x22'));},_0x37d8e4['onerror']=_0x219fcf=>{_0x5f2a73(_0x219fcf);};});}['write'](_0x5194c0,_0x57937e,_0x42f212=!0x1){let _0x9921b1={'_key':_0x5194c0,'_value':_0x57937e},_0x504c74=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['put'](_0x9921b1);return new Promise((_0x1eec83,_0x1b5a61)=>{_0x504c74['onsuccess']=_0x2e32d5=>{_0x42f212||this['_notifySubscribers'](_0x5194c0),_0x1eec83(_0x2e32d5['target']['result']);},_0x504c74['onerror']=_0x17b900=>{_0x1b5a61(_0x17b900);};});}['delete'](_0x465133,_0x254c0d=!0x1){let _0x4a6822=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['delete'](_0x465133);return new Promise((_0x3fb1f1,_0x213201)=>{_0x4a6822['onsuccess']=_0x1cbde7=>{_0x254c0d||this['_notifySubscribers'](_0x465133),_0x3fb1f1(_0x1cbde7);},_0x4a6822['onerror']=_0x37c07b=>{_0x213201(_0x37c07b);};});}['getAll'](){let _0x3d9368=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['getAll']();return new Promise((_0xbc6667,_0xbc5ea1)=>{_0x3d9368['onsuccess']=_0x493d4e=>{let _0x475e33=_0x493d4e['target']['result'];_0xbc6667(_0x475e33['map'](_0x291d18=>_0x291d18['_value']));},_0x3d9368['onerror']=_0x4784fb=>{_0xbc5ea1(_0x4784fb);};});}['subscribe'](_0x201b5e,_0x1bfe08){this['_subscriptionsMap'][_0x201b5e]||(this['_subscriptionsMap'][_0x201b5e]=new Set());let _0x4932a7=this['_subscriptionsMap'][_0x201b5e];return _0x4932a7['add'](_0x1bfe08),{'remove':()=>{_0x4932a7['delete'](_0x1bfe08),_0x4932a7['size']||delete this['_subscriptionsMap'][_0x201b5e];}};}['stop'](){window['removeEventListener']('storage',this['_updateHandler']),this['_subscriptionsMap']=null,IDB['clear'](this['name']);}},IDB=class{static get['readyEventName'](){return READY_EVENT_NAME;}static['open'](_0x90586b=DEFAULT_DB_NAME,_0x56f50b='store'){let _0x449eea=_0x90586b+'/'+_0x56f50b;return this['_reg'][_0x449eea]||(this['_reg'][_0x449eea]=new DbInstance(_0x90586b,_0x56f50b)),this['_reg'][_0x449eea];}static['clear'](_0x14be06){window['indexedDB']['deleteDatabase'](_0x14be06);for(let _0x2eafaa in this['_reg'])_0x2eafaa['split']('/')[0x0]===_0x14be06&&delete this['_reg'][_0x2eafaa];}};function isObject(_0x51d262){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x51d262);}__publicField(IDB,'_reg',Object['create'](null));const SEPARATOR=/\W|_/g;function camelizeString(_0x1db0a8){return _0x1db0a8['split'](SEPARATOR)['map']((_0x42adec,_0x43199b)=>_0x42adec['charAt'](0x0)[_0x43199b>0x0?'toUpperCase':'toLowerCase']()+_0x42adec['slice'](0x1))['join']('');}function camelizeArrayItems(_0x4e8cd8,{ignoreKeys:_0x741ac}={'ignoreKeys':[]}){return Array['isArray'](_0x4e8cd8)?_0x4e8cd8['map'](_0x36768d=>camelizeKeys(_0x36768d,{'ignoreKeys':_0x741ac})):_0x4e8cd8;}function camelizeKeys(_0x5d5e0f,{ignoreKeys:_0x1e9b41}={'ignoreKeys':[]}){if(Array['isArray'](_0x5d5e0f))return camelizeArrayItems(_0x5d5e0f,{'ignoreKeys':_0x1e9b41});if(!isObject(_0x5d5e0f))return _0x5d5e0f;const _0x28e43b={};for(const _0x1f62a1 of Object['keys'](_0x5d5e0f)){let _0x202ecc=_0x5d5e0f[_0x1f62a1];_0x1e9b41['includes'](_0x1f62a1)?_0x28e43b[_0x1f62a1]=_0x202ecc:(isObject(_0x202ecc)?_0x202ecc=camelizeKeys(_0x202ecc,{'ignoreKeys':_0x1e9b41}):Array['isArray'](_0x202ecc)&&(_0x202ecc=camelizeArrayItems(_0x202ecc,{'ignoreKeys':_0x1e9b41})),_0x28e43b[camelizeString(_0x1f62a1)]=_0x202ecc);}return _0x28e43b;}const delay=_0x445ba9=>new Promise(_0x9d9c6d=>setTimeout(_0x9d9c6d,_0x445ba9));function getUserAgent$1({libraryName:_0x257123,libraryVersion:_0xfc281c,userAgent:_0xa41056,publicKey:_0x416504='',integration:_0x1309c8=''}){const _0x30003d='JavaScript';if('string'==typeof _0xa41056)return _0xa41056;if('function'==typeof _0xa41056)return _0xa41056({'publicKey':_0x416504,'libraryName':_0x257123,'libraryVersion':_0xfc281c,'languageName':_0x30003d,'integration':_0x1309c8});return[_0x257123,_0xfc281c,_0x416504]['filter'](Boolean)['join']('/')+'\x20('+[_0x30003d,_0x1309c8]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions={'factor':0x2,'time':0x64};function retrier(_0x431bb8,_0xa8f8d4=defaultOptions){let _0x293ede=0x0;return function _0x25c4b5(_0x58ae68){const _0x2bcc24=Math['round'](_0xa8f8d4['time']*_0xa8f8d4['factor']**_0x293ede);return _0x58ae68({'attempt':_0x293ede,'retry':_0x442c49=>delay(_0x442c49??_0x2bcc24)['then'](()=>(_0x293ede+=0x1,_0x25c4b5(_0x58ae68)))});}(_0x431bb8);}class UploadcareError extends Error{}class NetworkError extends UploadcareError{['originalProgressEvent'];constructor(_0x54e857){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,NetworkError['prototype']),this['originalProgressEvent']=_0x54e857;}}const onCancel=(_0x664d9a,_0xbf98c7)=>{_0x664d9a&&(_0x664d9a['aborted']?Promise['resolve']()['then'](_0xbf98c7):_0x664d9a['addEventListener']('abort',()=>_0xbf98c7(),{'once':!0x0}));};class CancelError extends UploadcareError{['isCancel']=!0x0;constructor(_0x168f92='Request\x20canceled'){super(_0x168f92),this['name']='CancelError',Object['setPrototypeOf'](this,CancelError['prototype']);}}const DEFAULT_INTERVAL=0x1f4,poll=({check:_0x13ab56,interval:_0x1268a2=DEFAULT_INTERVAL,timeout:_0x2bc49e,signal:_0x179aaa})=>new Promise((_0x1bb8ee,_0x46aef7)=>{let _0x5b3986,_0x2cfefb;onCancel(_0x179aaa,()=>{_0x5b3986&&clearTimeout(_0x5b3986),_0x46aef7(new CancelError('Poll\x20cancelled'));}),_0x2bc49e&&(_0x2cfefb=setTimeout(()=>{_0x5b3986&&clearTimeout(_0x5b3986),_0x46aef7(new CancelError('Timed\x20out'));},_0x2bc49e));const _0x55f090=()=>{try{Promise['resolve'](_0x13ab56(_0x179aaa))['then'](_0x540bde=>{_0x540bde?(_0x2cfefb&&clearTimeout(_0x2cfefb),_0x1bb8ee(_0x540bde)):_0x5b3986=setTimeout(_0x55f090,_0x1268a2);})['catch'](_0x27ffab=>{_0x2cfefb&&clearTimeout(_0x2cfefb),_0x46aef7(_0x27ffab);});}catch(_0x2dcdef){_0x2cfefb&&clearTimeout(_0x2cfefb),_0x46aef7(_0x2dcdef);}};_0x5b3986=setTimeout(_0x55f090,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:_0x525b88,url:_0x3b840b,data:_0xa191ae,headers:_0x2c8d87={},signal:_0xc5ef78,onProgress:_0x161e21})=>new Promise((_0x35987e,_0x2f99b2)=>{const _0x432397=new XMLHttpRequest(),_0x4b5041=_0x525b88?.['toUpperCase']()||'GET';let _0xcb0a30=!0x1;_0x432397['open'](_0x4b5041,_0x3b840b,!0x0),_0x2c8d87&&Object['entries'](_0x2c8d87)['forEach'](_0xa69ea7=>{const [_0x48f446,_0x29cc8c]=_0xa69ea7;void 0x0!==_0x29cc8c&&!Array['isArray'](_0x29cc8c)&&_0x432397['setRequestHeader'](_0x48f446,_0x29cc8c);}),_0x432397['responseType']='text',onCancel(_0xc5ef78,()=>{_0xcb0a30=!0x0,_0x432397['abort'](),_0x2f99b2(new CancelError());}),_0x432397['onload']=()=>{if(0xc8!=_0x432397['status'])_0x2f99b2(new Error('Error\x20'+_0x432397['status']+':\x20'+_0x432397['statusText']));else{const _0x7620fb={'method':_0x4b5041,'url':_0x3b840b,'data':_0xa191ae,'headers':_0x2c8d87||void 0x0,'signal':_0xc5ef78,'onProgress':_0x161e21},_0x17c411=_0x432397['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x5f3776={};_0x17c411['forEach'](function(_0x19286a){const _0x2cee18=_0x19286a['split'](':\x20'),_0x35a44e=_0x2cee18['shift'](),_0x24ca5c=_0x2cee18['join'](':\x20');_0x35a44e&&void 0x0!==_0x35a44e&&(_0x5f3776[_0x35a44e]=_0x24ca5c);});const _0x118101=_0x432397['response'],_0x112c13=_0x432397['status'];_0x35987e({'request':_0x7620fb,'data':_0x118101,'headers':_0x5f3776,'status':_0x112c13});}},_0x432397['onerror']=_0x4d4688=>{_0xcb0a30||_0x2f99b2(new NetworkError(_0x4d4688));},_0x161e21&&'function'==typeof _0x161e21&&(_0x432397['upload']['onprogress']=_0xc45e48=>{_0xc45e48['lengthComputable']?_0x161e21({'isComputable':!0x0,'value':_0xc45e48['loaded']/_0xc45e48['total']}):_0x161e21({'isComputable':!0x1});}),_0xa191ae?_0x432397['send'](_0xa191ae):_0x432397['send']();});function identity(_0x37d209,..._0x5b79fc){return _0x37d209;}const getFileOptions=({name:_0x3bd881})=>_0x3bd881?[_0x3bd881]:[],transformFile=identity;var getFormData=()=>new FormData();const isBuffer=_0x21978f=>!0x1,isBlob=_0x5f2191=>'undefined'!=typeof Blob&&_0x5f2191 instanceof Blob,isFile=_0x2aadcb=>'undefined'!=typeof File&&_0x2aadcb instanceof File,isReactNativeAsset=_0x286d8e=>!!_0x286d8e&&'object'==typeof _0x286d8e&&!Array['isArray'](_0x286d8e)&&'uri'in _0x286d8e&&'string'==typeof _0x286d8e['uri'],isFileData=_0x4b15ba=>isBlob(_0x4b15ba)||isFile(_0x4b15ba)||isBuffer()||isReactNativeAsset(_0x4b15ba),isSimpleValue=_0x4d0001=>'string'==typeof _0x4d0001||'number'==typeof _0x4d0001||void 0x0===_0x4d0001,isObjectValue=_0x256f7d=>!!_0x256f7d&&'object'==typeof _0x256f7d&&!Array['isArray'](_0x256f7d),isFileValue=_0x3164b4=>!!_0x3164b4&&'object'==typeof _0x3164b4&&'data'in _0x3164b4&&isFileData(_0x3164b4['data']);function collectParams(_0x335d4c,_0x3ad6f3,_0x57022c){if(Array['isArray'](_0x57022c)){for(const _0x32dbef of _0x57022c)collectParams(_0x335d4c,_0x3ad6f3+'[]',_0x32dbef);}else{if(isFileValue(_0x57022c)){const {name:_0x31b37e,contentType:_0x500dbd}=_0x57022c,_0x2dc720=transformFile(_0x57022c['data'],_0x31b37e,_0x500dbd??defaultContentType),_0x25bb0c=getFileOptions({'name':_0x31b37e});_0x335d4c['push']([_0x3ad6f3,_0x2dc720,..._0x25bb0c]);}else{if(isObjectValue(_0x57022c)){for(const [_0x61842c,_0x6e16ec]of Object['entries'](_0x57022c))void 0x0!==_0x6e16ec&&_0x335d4c['push']([_0x3ad6f3+'['+_0x61842c+']',String(_0x6e16ec)]);}else isSimpleValue(_0x57022c)&&_0x57022c&&_0x335d4c['push']([_0x3ad6f3,_0x57022c['toString']()]);}}}function getFormDataParams(_0x320603){const _0x2a7981=[];for(const [_0x350aa2,_0x5701c6]of Object['entries'](_0x320603))collectParams(_0x2a7981,_0x350aa2,_0x5701c6);return _0x2a7981;}function buildFormData(_0x50b32f){const _0x2b28e9=getFormData(),_0x400bcc=getFormDataParams(_0x50b32f);for(const _0x57174d of _0x400bcc){const [_0x5438fa,_0x575102,..._0x45083b]=_0x57174d;_0x2b28e9['append'](_0x5438fa,_0x575102,..._0x45083b);}return _0x2b28e9;}class UploadError extends UploadcareError{['code'];['request'];['response'];['headers'];constructor(_0x28eb30,_0x4062ff,_0x18e575,_0x1355c9,_0xc29591){super(),this['name']='UploadError',this['message']=_0x28eb30,this['code']=_0x4062ff,this['request']=_0x18e575,this['response']=_0x1355c9,this['headers']=_0xc29591,Object['setPrototypeOf'](this,UploadError['prototype']);}}const buildSearchParams=_0x3c2f63=>{const _0xa76565=new URLSearchParams();for(const [_0x5485fa,_0x2cf423]of Object['entries'](_0x3c2f63))_0x2cf423&&'object'==typeof _0x2cf423&&!Array['isArray'](_0x2cf423)?Object['entries'](_0x2cf423)['filter'](_0x3bf59d=>_0x3bf59d[0x1]??!0x1)['forEach'](_0x510a53=>_0xa76565['set'](_0x5485fa+'['+_0x510a53[0x0]+']',String(_0x510a53[0x1]))):Array['isArray'](_0x2cf423)?_0x2cf423['forEach'](_0x21633a=>{_0xa76565['append'](_0x5485fa+'[]',_0x21633a);}):'string'==typeof _0x2cf423&&_0x2cf423?_0xa76565['set'](_0x5485fa,_0x2cf423):'number'==typeof _0x2cf423&&_0xa76565['set'](_0x5485fa,_0x2cf423['toString']());return _0xa76565['toString']();},getUrl=(_0x3b7b99,_0x192184,_0x4269e5)=>{const _0x5eac85=new URL(_0x3b7b99);return _0x5eac85['pathname']=(_0x5eac85['pathname']+_0x192184)['replace']('//','/'),_0x4269e5&&(_0x5eac85['search']=buildSearchParams(_0x4269e5)),_0x5eac85['toString']();};var version$1='6.18.2';const LIBRARY_NAME='UploadcareUploadClient',LIBRARY_VERSION=version$1;function getUserAgent(_0xee0204){return getUserAgent$1({'libraryName':LIBRARY_NAME,'libraryVersion':LIBRARY_VERSION,..._0xee0204});}const REQUEST_WAS_THROTTLED_CODE='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT=0x3e8;function getTimeoutFromThrottledRequest(_0x2ecf2b){const {headers:_0x4efa06}=_0x2ecf2b||{};if(!_0x4efa06||'string'!=typeof _0x4efa06['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT;const _0x276081=parseInt(_0x4efa06['retry-after'],0xa);return Number['isFinite'](_0x276081)?0x3e8*_0x276081:DEFAULT_RETRY_AFTER_TIMEOUT;}function retryIfFailed(_0x17000b,_0x5d8e60){const {retryThrottledRequestMaxTimes:_0x1998be,retryNetworkErrorMaxTimes:_0x5abf60}=_0x5d8e60;return retrier(({attempt:_0x1c21fc,retry:_0x9b8b4f})=>_0x17000b()['catch'](_0x42fd4a=>{if('response'in _0x42fd4a&&_0x42fd4a?.['code']===REQUEST_WAS_THROTTLED_CODE&&_0x1c21fc<_0x1998be)return _0x9b8b4f(getTimeoutFromThrottledRequest(_0x42fd4a));if(_0x42fd4a instanceof NetworkError&&_0x1c21fc<_0x5abf60)return _0x9b8b4f((_0x1c21fc+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT);throw _0x42fd4a;}));}const getContentType=_0x52e1cd=>{let _0x109210='';return(isBlob(_0x52e1cd)||isFile(_0x52e1cd)||isReactNativeAsset(_0x52e1cd))&&(_0x109210=_0x52e1cd['type']),_0x109210||defaultContentType;},getFileName=_0x497438=>{let _0x3d5b1e='';return isFile(_0x497438)&&_0x497438['name']?_0x3d5b1e=_0x497438['name']:isBlob(_0x497438)||isBuffer()?_0x3d5b1e='':isReactNativeAsset(_0x497438)&&_0x497438['name']&&(_0x3d5b1e=_0x497438['name']),_0x3d5b1e||defaultFilename;};function getStoreValue(_0x5a376e){return void 0x0===_0x5a376e||'auto'===_0x5a376e?'auto':_0x5a376e?'1':'0';}function base(_0x305efa,{publicKey:_0x4867b2,fileName:_0x30ef16,contentType:_0x3ed78f,baseURL:_0x299ac9=defaultSettings['baseURL'],secureSignature:_0x33f00f,secureExpire:_0x56e43d,store:_0x3a959b,signal:_0x3b01af,onProgress:_0x5a1ab2,source:_0x2a506e='local',integration:_0x3d0ad1,userAgent:_0x589fe0,retryThrottledRequestMaxTimes:_0x34312e=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x48144c=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x54b4d0}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x299ac9,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x4867b2,'integration':_0x3d0ad1,'userAgent':_0x589fe0})},'data':buildFormData({'file':{'data':_0x305efa,'name':_0x30ef16||getFileName(_0x305efa),'contentType':_0x3ed78f||getContentType(_0x305efa)},'UPLOADCARE_PUB_KEY':_0x4867b2,'UPLOADCARE_STORE':getStoreValue(_0x3a959b),'signature':_0x33f00f,'expire':_0x56e43d,'source':_0x2a506e,'metadata':_0x54b4d0}),'signal':_0x3b01af,'onProgress':_0x5a1ab2})['then'](({data:_0x49a6e8,headers:_0x334e36,request:_0x869c7d})=>{const _0x1e9075=camelizeKeys(JSON['parse'](_0x49a6e8));if('error'in _0x1e9075)throw new UploadError(_0x1e9075['error']['content'],_0x1e9075['error']['errorCode'],_0x869c7d,_0x1e9075,_0x334e36);return _0x1e9075;}),{'retryNetworkErrorMaxTimes':_0x48144c,'retryThrottledRequestMaxTimes':_0x34312e});}var TypeEnum,Status;function fromUrl(_0x1adcd1,{publicKey:_0x3c0be7,baseURL:_0x4dceee=defaultSettings['baseURL'],store:_0x5ec49e,fileName:_0x51a2bf,checkForUrlDuplicates:_0x37a5f1,saveUrlForRecurrentUploads:_0x4ef92a,secureSignature:_0x5732b1,secureExpire:_0x36fbc4,source:_0x398e49='url',signal:_0x1f9297,integration:_0x2e6827,userAgent:_0x5aac72,retryThrottledRequestMaxTimes:_0x2ffe16=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x174b43=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x4920e8}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x3c0be7,'integration':_0x2e6827,'userAgent':_0x5aac72})},'url':getUrl(_0x4dceee,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x3c0be7,'source_url':_0x1adcd1,'store':getStoreValue(_0x5ec49e),'filename':_0x51a2bf,'check_URL_duplicates':_0x37a5f1?0x1:void 0x0,'save_URL_duplicates':_0x4ef92a?0x1:void 0x0,'signature':_0x5732b1,'expire':_0x36fbc4,'source':_0x398e49,'metadata':_0x4920e8}),'signal':_0x1f9297})['then'](({data:_0x1e9426,headers:_0x304209,request:_0x1d5fc9})=>{const _0x198afd=camelizeKeys(JSON['parse'](_0x1e9426));if('error'in _0x198afd)throw new UploadError(_0x198afd['error']['content'],_0x198afd['error']['errorCode'],_0x1d5fc9,_0x198afd,_0x304209);return _0x198afd;}),{'retryNetworkErrorMaxTimes':_0x174b43,'retryThrottledRequestMaxTimes':_0x2ffe16});}!function(_0x1d9346){_0x1d9346['Token']='token',_0x1d9346['FileInfo']='file_info';}(TypeEnum||(TypeEnum={})),function(_0x4a9d37){_0x4a9d37['Unknown']='unknown',_0x4a9d37['Waiting']='waiting',_0x4a9d37['Progress']='progress',_0x4a9d37['Error']='error',_0x4a9d37['Success']='success';}(Status||(Status={}));const isErrorResponse=_0x4f8c43=>'status'in _0x4f8c43&&_0x4f8c43['status']===Status['Error'];function fromUrlStatus(_0x5eba1e,{publicKey:_0x1191f0,baseURL:_0x39d6e0=defaultSettings['baseURL'],signal:_0x441855,integration:_0x36fddc,userAgent:_0x170775,retryThrottledRequestMaxTimes:_0x180a31=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x497346=defaultSettings['retryNetworkErrorMaxTimes']}={}){return retryIfFailed(()=>request({'method':'GET','headers':_0x1191f0?{'X-UC-User-Agent':getUserAgent({'publicKey':_0x1191f0,'integration':_0x36fddc,'userAgent':_0x170775})}:void 0x0,'url':getUrl(_0x39d6e0,'/from_url/status/',{'jsonerrors':0x1,'token':_0x5eba1e}),'signal':_0x441855})['then'](({data:_0x315b8d,headers:_0x1b11ab,request:_0x1e7341})=>{const _0x17e084=camelizeKeys(JSON['parse'](_0x315b8d));if('error'in _0x17e084&&!isErrorResponse(_0x17e084))throw new UploadError(_0x17e084['error']['content'],_0x17e084['error']['errorCode'],_0x1e7341,_0x17e084,_0x1b11ab);return _0x17e084;}),{'retryNetworkErrorMaxTimes':_0x497346,'retryThrottledRequestMaxTimes':_0x180a31});}function group(_0x160084,{publicKey:_0x379ba1,baseURL:_0x1c3e53=defaultSettings['baseURL'],jsonpCallback:_0x2123b2,secureSignature:_0x4d1cb7,secureExpire:_0x3598e0,signal:_0x33ab30,source:_0x3e749e,integration:_0x26d358,userAgent:_0x5813e3,retryThrottledRequestMaxTimes:_0x4b41ff=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x187ab8=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x379ba1,'integration':_0x26d358,'userAgent':_0x5813e3})},'url':getUrl(_0x1c3e53,'/group/',{'jsonerrors':0x1}),'data':buildFormData({'files':_0x160084,'callback':_0x2123b2,'pub_key':_0x379ba1,'signature':_0x4d1cb7,'expire':_0x3598e0,'source':_0x3e749e}),'signal':_0x33ab30})['then'](({data:_0x5e0a26,headers:_0x4e598c,request:_0x4d8d49})=>{const _0x3f7768=camelizeKeys(JSON['parse'](_0x5e0a26));if('error'in _0x3f7768)throw new UploadError(_0x3f7768['error']['content'],_0x3f7768['error']['errorCode'],_0x4d8d49,_0x3f7768,_0x4e598c);return _0x3f7768;}),{'retryNetworkErrorMaxTimes':_0x187ab8,'retryThrottledRequestMaxTimes':_0x4b41ff});}function info(_0x2f3c6e,{publicKey:_0x1222bd,baseURL:_0x385cac=defaultSettings['baseURL'],signal:_0x3f4dcc,source:_0x164873,integration:_0x5d1c9a,userAgent:_0x28153e,retryThrottledRequestMaxTimes:_0x142e25=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x5eda44=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x1222bd,'integration':_0x5d1c9a,'userAgent':_0x28153e})},'url':getUrl(_0x385cac,'/info/',{'jsonerrors':0x1,'pub_key':_0x1222bd,'file_id':_0x2f3c6e,'source':_0x164873}),'signal':_0x3f4dcc})['then'](({data:_0x408cdd,headers:_0x1dc08b,request:_0x594d3a})=>{const _0x294016=camelizeKeys(JSON['parse'](_0x408cdd));if('error'in _0x294016)throw new UploadError(_0x294016['error']['content'],_0x294016['error']['errorCode'],_0x594d3a,_0x294016,_0x1dc08b);return _0x294016;}),{'retryThrottledRequestMaxTimes':_0x142e25,'retryNetworkErrorMaxTimes':_0x5eda44});}function multipartStart(_0x585305,{publicKey:_0x177286,contentType:_0x4868e5,fileName:_0x2b48e3,multipartChunkSize:_0x27920d=defaultSettings['multipartChunkSize'],baseURL:_0x48c642='',secureSignature:_0x270224,secureExpire:_0x29c51f,store:_0x3884f9,signal:_0x58e97b,source:_0x167cd3='local',integration:_0x970289,userAgent:_0x1261bc,retryThrottledRequestMaxTimes:_0x594d1b=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x38d0be=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x28e4eb}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x48c642,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x177286,'integration':_0x970289,'userAgent':_0x1261bc})},'data':buildFormData({'filename':_0x2b48e3||defaultFilename,'size':_0x585305,'content_type':_0x4868e5||defaultContentType,'part_size':_0x27920d,'UPLOADCARE_STORE':getStoreValue(_0x3884f9),'UPLOADCARE_PUB_KEY':_0x177286,'signature':_0x270224,'expire':_0x29c51f,'source':_0x167cd3,'metadata':_0x28e4eb}),'signal':_0x58e97b})['then'](({data:_0x3cdef8,headers:_0x1275af,request:_0x5cbea2})=>{const _0x3a17ed=camelizeKeys(JSON['parse'](_0x3cdef8));if('error'in _0x3a17ed)throw new UploadError(_0x3a17ed['error']['content'],_0x3a17ed['error']['errorCode'],_0x5cbea2,_0x3a17ed,_0x1275af);return _0x3a17ed['parts']=Object['keys'](_0x3a17ed['parts'])['map'](_0x30b893=>_0x3a17ed['parts'][Number(_0x30b893)]),_0x3a17ed;}),{'retryThrottledRequestMaxTimes':_0x594d1b,'retryNetworkErrorMaxTimes':_0x38d0be});}function multipartUpload(_0x322e41,_0x4f766e,{contentType:_0x12ef15,signal:_0x56b8f2,onProgress:_0x92e937,retryThrottledRequestMaxTimes:_0x24f4fb=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x20a45d=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'PUT','url':_0x4f766e,'data':_0x322e41,'onProgress':_0x92e937,'signal':_0x56b8f2,'headers':{'Content-Type':_0x12ef15||defaultContentType}})['then'](_0x120e91=>(_0x92e937&&_0x92e937({'isComputable':!0x0,'value':0x1}),_0x120e91))['then'](({status:_0x44a072})=>({'code':_0x44a072})),{'retryThrottledRequestMaxTimes':_0x24f4fb,'retryNetworkErrorMaxTimes':_0x20a45d});}function multipartComplete(_0x24f067,{publicKey:_0x367c7c,baseURL:_0x326465=defaultSettings['baseURL'],source:_0x3d2ee7='local',signal:_0x4683fd,integration:_0x38715a,userAgent:_0x10f4e1,retryThrottledRequestMaxTimes:_0x5dbee4=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x24ce68=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x326465,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x367c7c,'integration':_0x38715a,'userAgent':_0x10f4e1})},'data':buildFormData({'uuid':_0x24f067,'UPLOADCARE_PUB_KEY':_0x367c7c,'source':_0x3d2ee7}),'signal':_0x4683fd})['then'](({data:_0x350bec,headers:_0x33a3b2,request:_0x5eaaaf})=>{const _0xea9f69=camelizeKeys(JSON['parse'](_0x350bec));if('error'in _0xea9f69)throw new UploadError(_0xea9f69['error']['content'],_0xea9f69['error']['errorCode'],_0x5eaaaf,_0xea9f69,_0x33a3b2);return _0xea9f69;}),{'retryThrottledRequestMaxTimes':_0x5dbee4,'retryNetworkErrorMaxTimes':_0x24ce68});}function isReadyPoll(_0x5626ff,{publicKey:_0x7367f2,baseURL:_0x27e12a,source:_0x122408,integration:_0xc602b6,userAgent:_0x12cfee,retryThrottledRequestMaxTimes:_0x2b22db,retryNetworkErrorMaxTimes:_0x6df5c3,signal:_0x5e5b9a,onProgress:_0x37ab5b}){return poll({'check':_0x5cdd9a=>info(_0x5626ff,{'publicKey':_0x7367f2,'baseURL':_0x27e12a,'signal':_0x5cdd9a,'source':_0x122408,'integration':_0xc602b6,'userAgent':_0x12cfee,'retryThrottledRequestMaxTimes':_0x2b22db,'retryNetworkErrorMaxTimes':_0x6df5c3})['then'](_0x347b8a=>_0x347b8a['isReady']?_0x347b8a:(_0x37ab5b&&_0x37ab5b({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x5e5b9a});}function isGroupFileInfo(_0xe333a5){return'defaultEffects'in _0xe333a5;}class UploadcareFile{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x127d47,{baseCDN:_0x5d306f=defaultSettings['baseCDN'],fileName:_0x506a1f}={}){const {uuid:_0x3d6570,s3Bucket:_0x2226a3}=_0x127d47,_0x5dc62d=getUrl(_0x5d306f,_0x3d6570+'/'),_0xaf73c=_0x2226a3?getUrl('https://'+_0x2226a3+'.s3.amazonaws.com/',_0x3d6570+'/'+_0x127d47['filename']):null;this['uuid']=_0x3d6570,this['name']=_0x506a1f||_0x127d47['filename'],this['size']=_0x127d47['size'],this['isStored']=_0x127d47['isStored'],this['isImage']=_0x127d47['isImage'],this['mimeType']=_0x127d47['mimeType'],this['cdnUrl']=_0x5dc62d,this['originalFilename']=_0x127d47['originalFilename'],this['imageInfo']=_0x127d47['imageInfo'],this['videoInfo']=_0x127d47['videoInfo'],this['contentInfo']=_0x127d47['contentInfo'],this['metadata']=_0x127d47['metadata']||null,this['s3Bucket']=_0x2226a3||null,this['s3Url']=_0xaf73c,isGroupFileInfo(_0x127d47)&&(this['defaultEffects']=_0x127d47['defaultEffects']);}}const uploadDirect=(_0x5d8d61,{publicKey:_0x372e85,fileName:_0x467232,baseURL:_0x39093d,secureSignature:_0x4ba192,secureExpire:_0x5aaf29,store:_0x5dd842,contentType:_0x40dae4,signal:_0x23a4e1,onProgress:_0x2a6118,source:_0xf7578c,integration:_0x107519,userAgent:_0x5e1b3b,retryThrottledRequestMaxTimes:_0xaa2162,retryNetworkErrorMaxTimes:_0x2b8eff,baseCDN:_0x1d54a4,metadata:_0x22c545})=>base(_0x5d8d61,{'publicKey':_0x372e85,'fileName':_0x467232,'contentType':_0x40dae4,'baseURL':_0x39093d,'secureSignature':_0x4ba192,'secureExpire':_0x5aaf29,'store':_0x5dd842,'signal':_0x23a4e1,'onProgress':_0x2a6118,'source':_0xf7578c,'integration':_0x107519,'userAgent':_0x5e1b3b,'retryThrottledRequestMaxTimes':_0xaa2162,'retryNetworkErrorMaxTimes':_0x2b8eff,'metadata':_0x22c545})['then'](({file:_0x37adc9})=>isReadyPoll(_0x37adc9,{'publicKey':_0x372e85,'baseURL':_0x39093d,'source':_0xf7578c,'integration':_0x107519,'userAgent':_0x5e1b3b,'retryThrottledRequestMaxTimes':_0xaa2162,'retryNetworkErrorMaxTimes':_0x2b8eff,'onProgress':_0x2a6118,'signal':_0x23a4e1}))['then'](_0x5d3f3e=>new UploadcareFile(_0x5d3f3e,{'baseCDN':_0x1d54a4})),uploadFromUploaded=(_0x490156,{publicKey:_0x5064ba,fileName:_0x262ee2,baseURL:_0x130ee9,signal:_0x38e166,onProgress:_0x2fd28b,source:_0x4a97b9,integration:_0x5ce4a2,userAgent:_0x2676a2,retryThrottledRequestMaxTimes:_0xc0c39d,retryNetworkErrorMaxTimes:_0x9614c4,baseCDN:_0x245c89})=>info(_0x490156,{'publicKey':_0x5064ba,'baseURL':_0x130ee9,'signal':_0x38e166,'source':_0x4a97b9,'integration':_0x5ce4a2,'userAgent':_0x2676a2,'retryThrottledRequestMaxTimes':_0xc0c39d,'retryNetworkErrorMaxTimes':_0x9614c4})['then'](_0xf7513a=>new UploadcareFile(_0xf7513a,{'baseCDN':_0x245c89,'fileName':_0x262ee2}))['then'](_0xa8da50=>(_0x2fd28b&&_0x2fd28b({'isComputable':!0x0,'value':0x1}),_0xa8da50)),race=(_0x35ebd0,{signal:_0x5d69e6}={})=>{let _0x493403=null,_0x345089=null;const _0xc740a2=_0x35ebd0['map'](()=>new AbortController());return onCancel(_0x5d69e6,()=>{_0xc740a2['forEach'](_0x3136b5=>_0x3136b5['abort']());}),Promise['all'](_0x35ebd0['map']((_0x351528,_0x59d041)=>{const _0x369d43=(_0x571dcf=>()=>{_0x345089=_0x571dcf,_0xc740a2['forEach']((_0x46c6ba,_0x417501)=>_0x417501!==_0x571dcf&&_0x46c6ba['abort']());})(_0x59d041);return Promise['resolve']()['then'](()=>_0x351528({'stopRace':_0x369d43,'signal':_0xc740a2[_0x59d041]['signal']}))['then'](_0x1ff8d8=>(_0x369d43(),_0x1ff8d8))['catch'](_0x2d0bdc=>(_0x493403=_0x2d0bdc,null));}))['then'](_0x2da4fc=>{if(null===_0x345089)throw _0x493403;return _0x2da4fc[_0x345089];});};var WebSocket$1=window['WebSocket'];class Events{['events']=Object['create']({});['emit'](_0x4d6379,_0x9c0c0f){this['events'][_0x4d6379]?.['forEach'](_0x149983=>_0x149983(_0x9c0c0f));}['on'](_0x48d139,_0x213d42){this['events'][_0x48d139]=this['events'][_0x48d139]||[],this['events'][_0x48d139]['push'](_0x213d42);}['off'](_0x443e9c,_0x106412){this['events'][_0x443e9c]=_0x106412?this['events'][_0x443e9c]['filter'](_0xe00e61=>_0xe00e61!==_0x106412):[];}}const response=(_0x11a95b,_0x48121d)=>'success'===_0x11a95b?{'status':Status['Success'],..._0x48121d}:'progress'===_0x11a95b?{'status':Status['Progress'],..._0x48121d}:{'status':Status['Error'],..._0x48121d};class Pusher{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events();['disconnectTimeoutId']=null;constructor(_0x4ebff7,_0x30dc82=0x7530){this['key']=_0x4ebff7,this['disconnectTime']=_0x30dc82;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x1e7396='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket$1(_0x1e7396),this['ws']['addEventListener']('error',_0x566ea3=>{this['emmitter']['emit']('error',new Error(_0x566ea3['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0xc143e6=>this['send'](_0xc143e6['event'],_0xc143e6['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x390a10=>{const _0x419090=JSON['parse'](_0x390a10['data']['toString']());switch(_0x419090['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'](_0x419090['channel'],response(_0x419090['event'],JSON['parse'](_0x419090['data'])));}});}}['disconnect'](){const _0x27e9b5=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x27e9b5();},this['disconnectTime']):_0x27e9b5();}['send'](_0xba6e17,_0x162baa){const _0x4c1e7e=JSON['stringify']({'event':_0xba6e17,'data':_0x162baa});this['ws']?.['send'](_0x4c1e7e);}['subscribe'](_0x2e950c,_0x3798c7){this['subscribers']+=0x1,this['connect']();const _0x46bf59='task-status-'+_0x2e950c,_0x527628={'event':'pusher:subscribe','data':{'channel':_0x46bf59}};this['emmitter']['on'](_0x46bf59,_0x3798c7),this['isConnected']?this['send'](_0x527628['event'],_0x527628['data']):this['queue']['push'](_0x527628);}['unsubscribe'](_0x473eac){this['subscribers']-=0x1;const _0x1263a3='task-status-'+_0x473eac,_0x35177d={'event':'pusher:unsubscribe','data':{'channel':_0x1263a3}};this['emmitter']['off'](_0x1263a3),this['isConnected']?this['send'](_0x35177d['event'],_0x35177d['data']):this['queue']=this['queue']['filter'](_0x1dd662=>_0x1dd662['data']['channel']!==_0x1263a3),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0xb830d5){return this['emmitter']['on']('error',_0xb830d5),()=>this['emmitter']['off']('error',_0xb830d5);}}let pusher=null;const getPusher=_0x37a2d0=>{if(!pusher){const _0xb8ba50='undefined'==typeof window?0x0:0x7530;pusher=new Pusher(_0x37a2d0,_0xb8ba50);}return pusher;},preconnect=_0xa8d09a=>{getPusher(_0xa8d09a)['connect']();};function pollStrategy({token:_0x2c97eb,publicKey:_0x168ff0,baseURL:_0x5ec6f7,integration:_0xff7e54,userAgent:_0x255ddf,retryThrottledRequestMaxTimes:_0x5e000b,retryNetworkErrorMaxTimes:_0x206d95,onProgress:_0x30162f,signal:_0x1bc59d}){return poll({'check':_0x52af74=>fromUrlStatus(_0x2c97eb,{'publicKey':_0x168ff0,'baseURL':_0x5ec6f7,'integration':_0xff7e54,'userAgent':_0x255ddf,'retryThrottledRequestMaxTimes':_0x5e000b,'retryNetworkErrorMaxTimes':_0x206d95,'signal':_0x52af74})['then'](_0x3eabe5=>{switch(_0x3eabe5['status']){case Status['Error']:return new UploadError(_0x3eabe5['error'],_0x3eabe5['errorCode']);case Status['Waiting']:return!0x1;case Status['Unknown']:return new UploadError('Token\x20\x22'+_0x2c97eb+'\x22\x20was\x20not\x20found.');case Status['Progress']:return _0x30162f&&('unknown'===_0x3eabe5['total']?_0x30162f({'isComputable':!0x1}):_0x30162f({'isComputable':!0x0,'value':_0x3eabe5['done']/_0x3eabe5['total']})),!0x1;case Status['Success']:return _0x30162f&&_0x30162f({'isComputable':!0x0,'value':_0x3eabe5['done']/_0x3eabe5['total']}),_0x3eabe5;default:throw new Error('Unknown\x20status');}}),'signal':_0x1bc59d});}const pushStrategy=({token:_0x4acada,pusherKey:_0x32bc29,signal:_0x228d0e,onProgress:_0x2bc762})=>new Promise((_0x23ea41,_0x1a7c23)=>{const _0x5f21f9=getPusher(_0x32bc29),_0x55fca8=_0x5f21f9['onError'](_0x1a7c23),_0xc51d6b=()=>{_0x55fca8(),_0x5f21f9['unsubscribe'](_0x4acada);};onCancel(_0x228d0e,()=>{_0xc51d6b(),_0x1a7c23(new CancelError('pusher\x20cancelled'));}),_0x5f21f9['subscribe'](_0x4acada,_0x56dda7=>{switch(_0x56dda7['status']){case Status['Progress']:_0x2bc762&&('unknown'===_0x56dda7['total']?_0x2bc762({'isComputable':!0x1}):_0x2bc762({'isComputable':!0x0,'value':_0x56dda7['done']/_0x56dda7['total']}));break;case Status['Success']:_0xc51d6b(),_0x2bc762&&_0x2bc762({'isComputable':!0x0,'value':_0x56dda7['done']/_0x56dda7['total']}),_0x23ea41(_0x56dda7);break;case Status['Error']:_0xc51d6b(),_0x1a7c23(new UploadError(_0x56dda7['msg'],_0x56dda7['error_code']));}});}),uploadFromUrl=(_0x5003c2,{publicKey:_0x3e755d,fileName:_0x2d830e,baseURL:_0x1db4a3,baseCDN:_0x316c52,checkForUrlDuplicates:_0x40aaa7,saveUrlForRecurrentUploads:_0x293c46,secureSignature:_0x44346f,secureExpire:_0x3a57a8,store:_0x1d4ac4,signal:_0x1cbda2,onProgress:_0xbb8c03,source:_0x47d1c6,integration:_0x4fe4ba,userAgent:_0x5694c2,retryThrottledRequestMaxTimes:_0x3cda2e,pusherKey:_0xfe44d7=defaultSettings['pusherKey'],metadata:_0x3763b3})=>Promise['resolve'](preconnect(_0xfe44d7))['then'](()=>fromUrl(_0x5003c2,{'publicKey':_0x3e755d,'fileName':_0x2d830e,'baseURL':_0x1db4a3,'checkForUrlDuplicates':_0x40aaa7,'saveUrlForRecurrentUploads':_0x293c46,'secureSignature':_0x44346f,'secureExpire':_0x3a57a8,'store':_0x1d4ac4,'signal':_0x1cbda2,'source':_0x47d1c6,'integration':_0x4fe4ba,'userAgent':_0x5694c2,'retryThrottledRequestMaxTimes':_0x3cda2e,'metadata':_0x3763b3}))['catch'](_0x91c0a4=>{const _0x5d5d83=getPusher(_0xfe44d7);return _0x5d5d83?.['disconnect'](),Promise['reject'](_0x91c0a4);})['then'](_0x1b323f=>_0x1b323f['type']===TypeEnum['FileInfo']?_0x1b323f:race([({signal:_0x2f3998})=>pollStrategy({'token':_0x1b323f['token'],'publicKey':_0x3e755d,'baseURL':_0x1db4a3,'integration':_0x4fe4ba,'userAgent':_0x5694c2,'retryThrottledRequestMaxTimes':_0x3cda2e,'onProgress':_0xbb8c03,'signal':_0x2f3998}),({signal:_0x499bb7})=>pushStrategy({'token':_0x1b323f['token'],'pusherKey':_0xfe44d7,'signal':_0x499bb7,'onProgress':_0xbb8c03})],{'signal':_0x1cbda2}))['then'](_0x243bbf=>{if(_0x243bbf instanceof UploadError)throw _0x243bbf;return _0x243bbf;})['then'](_0x2f4912=>isReadyPoll(_0x2f4912['uuid'],{'publicKey':_0x3e755d,'baseURL':_0x1db4a3,'integration':_0x4fe4ba,'userAgent':_0x5694c2,'retryThrottledRequestMaxTimes':_0x3cda2e,'onProgress':_0xbb8c03,'signal':_0x1cbda2}))['then'](_0x559c12=>new UploadcareFile(_0x559c12,{'baseCDN':_0x316c52})),memo=new WeakMap(),getBlobFromReactNativeAsset=async _0x439698=>{if(memo['has'](_0x439698))return memo['get'](_0x439698);const _0x219eda=await fetch(_0x439698['uri'])['then'](_0x390490=>_0x390490['blob']());return memo['set'](_0x439698,_0x219eda),_0x219eda;},getFileSize=async _0x425a76=>{if(isFile(_0x425a76)||isBlob(_0x425a76))return _0x425a76['size'];if(isReactNativeAsset(_0x425a76))return(await getBlobFromReactNativeAsset(_0x425a76))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart=(_0x28dba2,_0x5fccc0=defaultSettings['multipartMinFileSize'])=>_0x28dba2>=_0x5fccc0,isUuid=_0x3db4d9=>{const _0xf06d7f=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!isFileData(_0x3db4d9)&&_0xf06d7f['test'](_0x3db4d9);},isUrl=_0x3a5df0=>{const _0x316fad=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData(_0x3a5df0)&&_0x316fad['test'](_0x3a5df0);},runWithConcurrency=(_0x2aab1c,_0x1f752c)=>new Promise((_0x1a0f6f,_0x21a1da)=>{const _0x377289=[];let _0x437b69=!0x1,_0xfb1e40=_0x1f752c['length'];const _0x451357=[..._0x1f752c],_0x406418=()=>{const _0x60d91=_0x1f752c['length']-_0x451357['length'],_0x5bdf3e=_0x451357['shift']();_0x5bdf3e&&_0x5bdf3e()['then'](_0x20080e=>{_0x437b69||(_0x377289[_0x60d91]=_0x20080e,_0xfb1e40-=0x1,_0xfb1e40?_0x406418():_0x1a0f6f(_0x377289));})['catch'](_0x1c5239=>{_0x437b69=!0x0,_0x21a1da(_0x1c5239);});};for(let _0x1b0757=0x0;_0x1b0757<_0x2aab1c;_0x1b0757++)_0x406418();}),sliceChunk=(_0x220a26,_0x255653,_0x32fe37,_0xc1b4bc)=>{const _0x3c199e=_0xc1b4bc*_0x255653,_0x21e23c=Math['min'](_0x3c199e+_0xc1b4bc,_0x32fe37);return _0x220a26['slice'](_0x3c199e,_0x21e23c);},prepareChunks=async(_0x3d1440,_0x54d4a0,_0x5a476b)=>_0x4852eb=>sliceChunk(_0x3d1440,_0x4852eb,_0x54d4a0,_0x5a476b),uploadPart=(_0x414ed2,_0x2ffbf3,{publicKey:_0x5c4a92,contentType:_0x13cd61,onProgress:_0x12433d,signal:_0x126bbb,integration:_0x1dbdd0,retryThrottledRequestMaxTimes:_0x546b8d,retryNetworkErrorMaxTimes:_0x6554d7})=>multipartUpload(_0x414ed2,_0x2ffbf3,{'contentType':_0x13cd61,'onProgress':_0x12433d,'signal':_0x126bbb,'retryThrottledRequestMaxTimes':_0x546b8d,'retryNetworkErrorMaxTimes':_0x6554d7}),uploadMultipart=async(_0x497474,{publicKey:_0x4c25ea,fileName:_0x6a43ce,fileSize:_0x3e36fd,baseURL:_0x1ea014,secureSignature:_0x2362de,secureExpire:_0x324a2a,store:_0x504c7e,signal:_0x5627bf,onProgress:_0x122ad9,source:_0x56999c,integration:_0x5eb97b,userAgent:_0x504c58,retryThrottledRequestMaxTimes:_0x24c68a,retryNetworkErrorMaxTimes:_0x5d0e1e,contentType:_0x487bb8,multipartChunkSize:_0x2ea94b=defaultSettings['multipartChunkSize'],maxConcurrentRequests:_0x438431=defaultSettings['maxConcurrentRequests'],baseCDN:_0x2398e1,metadata:_0x300683})=>{const _0x3b0056=_0x3e36fd??await getFileSize(_0x497474);let _0xadce8e;const _0x22e133=(_0x21b4ef,_0x474bde)=>{if(!_0x122ad9)return;_0xadce8e||(_0xadce8e=Array(_0x21b4ef)['fill'](0x0));const _0x4f5e00=_0xbdaa74=>_0xbdaa74['reduce']((_0xb38682,_0x5d0710)=>_0xb38682+_0x5d0710,0x0);return _0x260e28=>{_0x260e28['isComputable']&&(_0xadce8e[_0x474bde]=_0x260e28['value'],_0x122ad9({'isComputable':!0x0,'value':_0x4f5e00(_0xadce8e)/_0x21b4ef}));};};return _0x487bb8||=getContentType(_0x497474),multipartStart(_0x3b0056,{'publicKey':_0x4c25ea,'contentType':_0x487bb8,'fileName':_0x6a43ce||getFileName(_0x497474),'baseURL':_0x1ea014,'secureSignature':_0x2362de,'secureExpire':_0x324a2a,'store':_0x504c7e,'signal':_0x5627bf,'source':_0x56999c,'integration':_0x5eb97b,'userAgent':_0x504c58,'retryThrottledRequestMaxTimes':_0x24c68a,'retryNetworkErrorMaxTimes':_0x5d0e1e,'metadata':_0x300683,'multipartChunkSize':_0x2ea94b})['then'](async({uuid:_0x3b922c,parts:_0x56b69a})=>{const _0x4cdbab=await prepareChunks(_0x497474,_0x3b0056,_0x2ea94b);return Promise['all']([_0x3b922c,runWithConcurrency(_0x438431,_0x56b69a['map']((_0x152331,_0x6d36b0)=>()=>uploadPart(_0x4cdbab(_0x6d36b0),_0x152331,{'publicKey':_0x4c25ea,'contentType':_0x487bb8,'onProgress':_0x22e133(_0x56b69a['length'],_0x6d36b0),'signal':_0x5627bf,'integration':_0x5eb97b,'retryThrottledRequestMaxTimes':_0x24c68a,'retryNetworkErrorMaxTimes':_0x5d0e1e})))]);})['then'](([_0x3c551b])=>multipartComplete(_0x3c551b,{'publicKey':_0x4c25ea,'baseURL':_0x1ea014,'source':_0x56999c,'integration':_0x5eb97b,'userAgent':_0x504c58,'retryThrottledRequestMaxTimes':_0x24c68a,'retryNetworkErrorMaxTimes':_0x5d0e1e}))['then'](_0x4f7bba=>_0x4f7bba['isReady']?_0x4f7bba:isReadyPoll(_0x4f7bba['uuid'],{'publicKey':_0x4c25ea,'baseURL':_0x1ea014,'source':_0x56999c,'integration':_0x5eb97b,'userAgent':_0x504c58,'retryThrottledRequestMaxTimes':_0x24c68a,'retryNetworkErrorMaxTimes':_0x5d0e1e,'onProgress':_0x122ad9,'signal':_0x5627bf}))['then'](_0xc6086f=>new UploadcareFile(_0xc6086f,{'baseCDN':_0x2398e1}));};async function uploadFile(_0x1b6a43,{publicKey:_0x34fc88,fileName:_0x293fa2,baseURL:_0x2677d7=defaultSettings['baseURL'],secureSignature:_0x465050,secureExpire:_0x1cb83e,store:_0x2ea182,signal:_0x5a7c78,onProgress:_0x35ed94,source:_0x55846d,integration:_0x1b484b,userAgent:_0x1e0300,retryThrottledRequestMaxTimes:_0x5a7cef,retryNetworkErrorMaxTimes:_0x543f42,contentType:_0x4f5466,multipartMinFileSize:_0x212124,multipartChunkSize:_0x587f3d,maxConcurrentRequests:_0x118344,baseCDN:_0x5c0432=defaultSettings['baseCDN'],checkForUrlDuplicates:_0x5e3b11,saveUrlForRecurrentUploads:_0x26100f,pusherKey:_0x2b708b,metadata:_0x53cab4}){if(isFileData(_0x1b6a43)){const _0x15e442=await getFileSize(_0x1b6a43);return isMultipart(_0x15e442,_0x212124)?uploadMultipart(_0x1b6a43,{'publicKey':_0x34fc88,'contentType':_0x4f5466,'multipartChunkSize':_0x587f3d,'fileSize':_0x15e442,'fileName':_0x293fa2,'baseURL':_0x2677d7,'secureSignature':_0x465050,'secureExpire':_0x1cb83e,'store':_0x2ea182,'signal':_0x5a7c78,'onProgress':_0x35ed94,'source':_0x55846d,'integration':_0x1b484b,'userAgent':_0x1e0300,'maxConcurrentRequests':_0x118344,'retryThrottledRequestMaxTimes':_0x5a7cef,'retryNetworkErrorMaxTimes':_0x543f42,'baseCDN':_0x5c0432,'metadata':_0x53cab4}):uploadDirect(_0x1b6a43,{'publicKey':_0x34fc88,'fileName':_0x293fa2,'contentType':_0x4f5466,'baseURL':_0x2677d7,'secureSignature':_0x465050,'secureExpire':_0x1cb83e,'store':_0x2ea182,'signal':_0x5a7c78,'onProgress':_0x35ed94,'source':_0x55846d,'integration':_0x1b484b,'userAgent':_0x1e0300,'retryThrottledRequestMaxTimes':_0x5a7cef,'retryNetworkErrorMaxTimes':_0x543f42,'baseCDN':_0x5c0432,'metadata':_0x53cab4});}if(isUrl(_0x1b6a43))return uploadFromUrl(_0x1b6a43,{'publicKey':_0x34fc88,'fileName':_0x293fa2,'baseURL':_0x2677d7,'baseCDN':_0x5c0432,'checkForUrlDuplicates':_0x5e3b11,'saveUrlForRecurrentUploads':_0x26100f,'secureSignature':_0x465050,'secureExpire':_0x1cb83e,'store':_0x2ea182,'signal':_0x5a7c78,'onProgress':_0x35ed94,'source':_0x55846d,'integration':_0x1b484b,'userAgent':_0x1e0300,'retryThrottledRequestMaxTimes':_0x5a7cef,'pusherKey':_0x2b708b,'metadata':_0x53cab4});if(isUuid(_0x1b6a43))return uploadFromUploaded(_0x1b6a43,{'publicKey':_0x34fc88,'fileName':_0x293fa2,'baseURL':_0x2677d7,'signal':_0x5a7c78,'onProgress':_0x35ed94,'source':_0x55846d,'integration':_0x1b484b,'userAgent':_0x1e0300,'retryThrottledRequestMaxTimes':_0x5a7cef,'retryNetworkErrorMaxTimes':_0x543f42,'baseCDN':_0x5c0432});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x1b6a43+'\x22\x20is\x20not\x20supported');}class UploadcareGroup{['uuid'];['filesCount'];['totalSize'];['isStored'];['isImage'];['cdnUrl'];['files'];['createdAt'];['storedAt']=null;constructor(_0x2fd253,{baseCDN:_0x3d4f88=defaultSettings['baseCDN']}={}){this['uuid']=_0x2fd253['id'],this['filesCount']=_0x2fd253['filesCount'];const _0x246013=_0x2fd253['files']['filter'](Boolean);this['totalSize']=Object['values'](_0x246013)['reduce']((_0x58fb31,_0x4389a7)=>_0x58fb31+_0x4389a7['size'],0x0),this['isStored']=!!_0x2fd253['datetimeStored'],this['isImage']=!!Object['values'](_0x246013)['filter'](_0x6c7e00=>_0x6c7e00['isImage'])['length'],this['cdnUrl']=_0x2fd253['cdnUrl'],this['files']=_0x246013['map'](_0x58efc3=>new UploadcareFile(_0x58efc3,{'baseCDN':_0x3d4f88})),this['createdAt']=_0x2fd253['datetimeCreated'],this['storedAt']=_0x2fd253['datetimeStored'];}}const isFileDataArray=_0x7893de=>{for(const _0x38b1e6 of _0x7893de)if(!isFileData(_0x38b1e6))return!0x1;return!0x0;},isUuidArray=_0x4cf6fb=>{for(const _0x3d323b of _0x4cf6fb)if(!isUuid(_0x3d323b))return!0x1;return!0x0;},isUrlArray=_0x52fcbe=>{for(const _0x4f76eb of _0x52fcbe)if(!isUrl(_0x4f76eb))return!0x1;return!0x0;};function uploadFileGroup(_0x179d21,{publicKey:_0x123a8f,fileName:_0xbe5761,baseURL:_0x35b18f=defaultSettings['baseURL'],secureSignature:_0x54cda0,secureExpire:_0x658373,store:_0x54ac06,signal:_0xe1f57,onProgress:_0x26e67f,source:_0x7f5413,integration:_0x588ea1,userAgent:_0x224761,retryThrottledRequestMaxTimes:_0x3c86d4,retryNetworkErrorMaxTimes:_0xbe1873,contentType:_0x3b5594,multipartChunkSize:_0x4990ca=defaultSettings['multipartChunkSize'],baseCDN:_0x3a1d62=defaultSettings['baseCDN'],checkForUrlDuplicates:_0x1ac4db,saveUrlForRecurrentUploads:_0x430981,jsonpCallback:_0x279e69}){if(!isFileDataArray(_0x179d21)&&!isUrlArray(_0x179d21)&&!isUuidArray(_0x179d21))throw new TypeError('Group\x20uploading\x20from\x20\x22'+_0x179d21+'\x22\x20is\x20not\x20supported');let _0x490086,_0xa25c09=!0x0;const _0x3225a9=_0x179d21['length'],_0x4ee8cd=(_0x318d91,_0x2a1c5a)=>{if(!_0x26e67f)return;_0x490086||(_0x490086=Array(_0x318d91)['fill'](0x0));const _0x22ffdf=_0x3d1ef6=>_0x3d1ef6['reduce']((_0x1511b7,_0x476667)=>_0x1511b7+_0x476667)/_0x318d91;return _0x458dd7=>{if(!_0x458dd7['isComputable']||!_0xa25c09)return _0xa25c09=!0x1,void _0x26e67f({'isComputable':!0x1});_0x490086[_0x2a1c5a]=_0x458dd7['value'],_0x26e67f({'isComputable':!0x0,'value':_0x22ffdf(_0x490086)});};};return Promise['all'](_0x179d21['map']((_0xdf775f,_0x49b451)=>isFileData(_0xdf775f)||isUrl(_0xdf775f)?uploadFile(_0xdf775f,{'publicKey':_0x123a8f,'fileName':_0xbe5761,'baseURL':_0x35b18f,'secureSignature':_0x54cda0,'secureExpire':_0x658373,'store':_0x54ac06,'signal':_0xe1f57,'onProgress':_0x4ee8cd(_0x3225a9,_0x49b451),'source':_0x7f5413,'integration':_0x588ea1,'userAgent':_0x224761,'retryThrottledRequestMaxTimes':_0x3c86d4,'retryNetworkErrorMaxTimes':_0xbe1873,'contentType':_0x3b5594,'multipartChunkSize':_0x4990ca,'baseCDN':_0x3a1d62,'checkForUrlDuplicates':_0x1ac4db,'saveUrlForRecurrentUploads':_0x430981})['then'](_0x1f0634=>_0x1f0634['uuid']):_0xdf775f))['then'](_0x2dc7fe=>group(_0x2dc7fe,{'publicKey':_0x123a8f,'baseURL':_0x35b18f,'jsonpCallback':_0x279e69,'secureSignature':_0x54cda0,'secureExpire':_0x658373,'signal':_0xe1f57,'source':_0x7f5413,'integration':_0x588ea1,'userAgent':_0x224761,'retryThrottledRequestMaxTimes':_0x3c86d4,'retryNetworkErrorMaxTimes':_0xbe1873})['then'](_0x40e036=>new UploadcareGroup(_0x40e036,{'baseCDN':_0x3a1d62}))['then'](_0x517b3c=>(_0x26e67f&&_0x26e67f({'isComputable':!0x0,'value':0x1}),_0x517b3c)));}class Queue{['_concurrency']=0x1;['_pending']=[];['_running']=0x0;['_resolvers']=new Map();['_rejectors']=new Map();constructor(_0x4fd417){this['_concurrency']=_0x4fd417;}['run'](){const _0x250d25=this['_concurrency']-this['_running'];for(let _0x4a2175=0x0;_0x4a2175<_0x250d25;_0x4a2175++){const _0x40e627=this['_pending']['shift']();if(!_0x40e627)return;const _0x57c768=this['_resolvers']['get'](_0x40e627),_0x20f5c8=this['_rejectors']['get'](_0x40e627);if(!_0x57c768||!_0x20f5c8)throw new Error('Unexpected\x20behavior:\x20resolver\x20or\x20rejector\x20is\x20undefined');this['_running']+=0x1,_0x40e627()['finally'](()=>{this['_resolvers']['delete'](_0x40e627),this['_rejectors']['delete'](_0x40e627),this['_running']-=0x1,this['run']();})['then'](_0x4a3c42=>_0x57c768(_0x4a3c42))['catch'](_0x21e01c=>_0x20f5c8(_0x21e01c));}}['add'](_0x6e3a5,{autoRun:_0x2da6ba}={'autoRun':!0x0}){return new Promise((_0x42def2,_0x1ab0b1)=>{this['_resolvers']['set'](_0x6e3a5,_0x42def2),this['_rejectors']['set'](_0x6e3a5,_0x1ab0b1),this['_pending']['push'](_0x6e3a5),_0x2da6ba&&this['run']();});}get['pending'](){return this['_pending']['length'];}get['running'](){return this['_running'];}set['concurrency'](_0x5a167e){this['_concurrency']=_0x5a167e,this['run']();}get['concurrency'](){return this['_concurrency'];}}const ROLES={'button':['toolbar'],'checkbox':['toolbar'],'menuitem':['menu','menubar'],'option':['listbox'],'tab':['tablist']};function focus(_0x277e5e,_0x32534c){_0x32534c['tabIndex']=0x0,_0x32534c['focus'](),_0x277e5e['tabIndex']=-0x1;}function findGroupNodeByEventTarget(_0x3caf54){let _0x2e16b1=_0x3caf54['role']||_0x3caf54['type']||_0x3caf54['tagName'];if(!_0x2e16b1)return null;let _0x4b7f00=ROLES[_0x2e16b1['toLowerCase']()];if(!_0x4b7f00)return null;for(let _0x56b1b9 of _0x4b7f00){let _0x17a2ce=_0x3caf54['closest']('[role='+_0x56b1b9+']');if(_0x17a2ce)return _0x17a2ce;}}function getItems(_0x3ee480,_0x2b601a){return'toolbar'===_0x2b601a['role']?getToolbarItems(_0x2b601a):_0x2b601a['querySelectorAll']('[role='+_0x3ee480['role']+']');}function getToolbarItems(_0x4ea099){return[..._0x4ea099['querySelectorAll']('*')]['filter'](_0x51e43c=>'button'===_0x51e43c['role']||'button'===_0x51e43c['type']||'checkbox'===_0x51e43c['role']||'checkbox'===_0x51e43c['type']);}function isHorizontalOrientation(_0x5fc493){let _0x11ed2e=_0x5fc493['getAttribute']('aria-orientation');if('vertical'===_0x11ed2e)return!0x1;if('horizontal'===_0x11ed2e)return!0x0;let _0x3bb771=_0x5fc493['role'];return'menubar'===_0x3bb771||'tablist'===_0x3bb771||'toolbar'===_0x3bb771;}function focusGroupKeyUX(_0xbf728f){return _0x3f5302=>{let _0x5beca6=!0x1,_0x51e7ee=0x0,_0x28a134='';function _0x7cdb4b(_0x48cdb8){let _0x457720=findGroupNodeByEventTarget(_0x48cdb8['target']);if(!_0x457720)return void _0xf7f49b();let _0x2eea43=getItems(_0x48cdb8['target'],_0x457720),_0x213e6d=Array['from'](_0x2eea43)['indexOf'](_0x48cdb8['target']),_0x4a8393='ArrowDown',_0x150af6='ArrowUp';if(isHorizontalOrientation(_0x457720)&&('rtl'===_0x3f5302['document']['dir']?(_0x4a8393='ArrowLeft',_0x150af6='ArrowRight'):(_0x4a8393='ArrowRight',_0x150af6='ArrowLeft')),_0x48cdb8['key']===_0x4a8393)_0x48cdb8['preventDefault'](),focus(_0x48cdb8['target'],_0x2eea43[_0x213e6d+0x1]||_0x2eea43[0x0]);else{if(_0x48cdb8['key']===_0x150af6)_0x48cdb8['preventDefault'](),focus(_0x48cdb8['target'],_0x2eea43[_0x213e6d-0x1]||_0x2eea43[_0x2eea43['length']-0x1]);else{if('Home'===_0x48cdb8['key'])_0x48cdb8['preventDefault'](),focus(_0x48cdb8['target'],_0x2eea43[0x0]);else{if('End'===_0x48cdb8['key'])_0x48cdb8['preventDefault'](),focus(_0x48cdb8['target'],_0x2eea43[_0x2eea43['length']-0x1]);else{if(0x1===_0x48cdb8['key']['length']&&'tablist'!==_0x457720['role']){let _0x4d6720=Date['now']();_0x4d6720-_0x51e7ee<=0x12c?_0x28a134+=_0x48cdb8['key']['toLowerCase']():_0x28a134=_0x48cdb8['key']['toLowerCase'](),_0x51e7ee=_0x4d6720;let _0x23282c=Array['from'](_0x2eea43)['find'](_0x523595=>_0x523595['textContent']?.['trim']()?.['toLowerCase']()?.['startsWith'](_0x28a134));_0x23282c&&(_0x48cdb8['preventDefault'](),focus(_0x48cdb8['target'],_0x23282c));}}}}}}function _0xf7f49b(){_0x5beca6=!0x1,_0x3f5302['removeEventListener']('keydown',_0x7cdb4b);}function _0x865a01(_0x5abf8f){let _0x1131cc=findGroupNodeByEventTarget(_0x5abf8f['target']);if(_0x1131cc){_0x5beca6||(_0x5beca6=!0x0,_0x3f5302['addEventListener']('keydown',_0x7cdb4b));let _0x46270f=getItems(_0x5abf8f['target'],_0x1131cc);for(let _0x2fc7f4 of _0x46270f)_0x2fc7f4!==_0x5abf8f['target']&&_0x2fc7f4['setAttribute']('tabindex',-0x1);}else _0x5beca6&&_0xf7f49b();}function _0x3e30aa(_0xaea95c){_0xaea95c['relatedTarget']&&_0xaea95c['relatedTarget']!==_0x3f5302['document']||_0xf7f49b();}function _0x128395(_0x94c251){let _0x487b64=findGroupNodeByEventTarget(_0x94c251['target']);if(_0x487b64){let _0x5d2790=getItems(_0x94c251['target'],_0x487b64);for(let _0x4e2db1 of _0x5d2790)_0x4e2db1!==_0x94c251['target']&&_0x4e2db1['setAttribute']('tabindex',-0x1);_0x94c251['target']['setAttribute']('tabindex',0x0);}}return _0x3f5302['addEventListener']('click',_0x128395),_0x3f5302['addEventListener']('focusin',_0x865a01),_0x3f5302['addEventListener']('focusout',_0x3e30aa),()=>{_0xf7f49b(),_0x3f5302['removeEventListener']('click',_0x128395),_0x3f5302['removeEventListener']('focusin',_0x865a01),_0x3f5302['removeEventListener']('focusout',_0x3e30aa);};};}function hiddenKeyUX(){return _0x1b0e6b=>{let _0x515b02,_0x49b614;function _0x2a856a(_0x5d4347){if('true'===_0x5d4347['target']['getAttribute']('aria-hidden')){_0x515b02=_0x5d4347['target'],_0x515b02['setAttribute']('aria-hidden','false'),_0x49b614=_0x515b02['hidden'],_0x49b614&&(_0x515b02['hidden']=!0x1);let _0x254577=_0x5d4347['target']['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x254577&&(_0x254577['tabIndex']=0x0);}}function _0x381f96(_0x3b5a3e){!_0x515b02||!_0x515b02['contains'](_0x3b5a3e['target'])||_0x3b5a3e['relatedTarget']&&_0x515b02['contains'](_0x3b5a3e['relatedTarget'])||(_0x3b5a3e['target']['tabIndex']=-0x1,_0x515b02['setAttribute']('aria-hidden','true'),_0x49b614&&(_0x515b02['hidden']=!0x0),_0x515b02=null);}return _0x1b0e6b['addEventListener']('keyuxJump',_0x2a856a),_0x1b0e6b['addEventListener']('focusout',_0x381f96),()=>{_0x1b0e6b['removeEventListener']('keyuxJump',_0x2a856a),_0x1b0e6b['removeEventListener']('focusout',_0x381f96);};};}function jumpKeyUX(){return _0x8dac8=>{let _0x104ded=[];function _0x25c5c8(){let _0x26140e=_0x104ded['pop']();if(!_0x26140e)return void _0x8dac8['document']['activeElement']['blur']();let _0x5a2c6a=_0x26140e['deref']();_0x5a2c6a&&_0x5a2c6a['isConnected']?_0x5a2c6a['focus']():_0x25c5c8();}let _0xa62509,_0x23a277=0x0;function _0x1a804c(_0x4fc58d){clearInterval(_0xa62509);let _0x534005=_0x4fc58d['getAttribute']('aria-controls');_0xa62509=setInterval(()=>{if(_0x23a277++>0x32)return void clearInterval(_0xa62509);let _0x2ad3e6=_0x8dac8['document']['getElementById'](_0x534005);if(_0x2ad3e6){let _0x26a02c=_0x2ad3e6['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x26a02c&&(clearInterval(_0xa62509),_0x2ad3e6['dispatchEvent'](new _0x8dac8['CustomEvent']('keyuxJump',{'bubbles':!0x0})),function(_0x4c862c){let _0x478d4a=_0x8dac8['document']['activeElement'];_0x478d4a&&_0x478d4a!==_0x8dac8['document']['body']&&_0x104ded['push'](new WeakRef(_0x478d4a)),_0x4c862c['focus']({'focusVisible':!0x0});}(_0x26a02c));}},0x32);}function _0x5e35bc(_0xa97c68){_0xa97c68['target']['getAttribute']('aria-controls')&&'Enter'===_0xa97c68['key']&&_0x1a804c(_0xa97c68['target']),'Escape'===_0xa97c68['key']&&_0x25c5c8();}return _0x8dac8['addEventListener']('keydown',_0x5e35bc),()=>{_0x8dac8['removeEventListener']('keydown',_0x5e35bc);};};}function pressKeyUX(_0x387372){let _0x12b782,_0xb31ee9,_0xd0ea73=_0x387372['split']('\x20');function _0x37de44(_0x5372d7){'Enter'!==_0x5372d7['key']||'BUTTON'!==_0x5372d7['target']['tagName']&&'A'!==_0x5372d7['target']['tagName']||(_0x2c96fe(),_0x5372d7['target']['classList']['add'](..._0xd0ea73),_0x12b782=_0x5372d7['target'],_0xb31ee9=_0x5372d7['target']);}function _0x2c96fe(){_0x12b782&&_0x12b782['classList']['remove'](..._0xd0ea73),_0xb31ee9=null;}function _0xdf4dae(_0x584488){0x0===_0x584488['clientX']&&0x0===_0x584488['clientY']&&_0xb31ee9!==_0x584488['target']&&(_0x2c96fe(),_0x584488['target']['classList']['add'](..._0xd0ea73),_0x12b782=_0x584488['target']);}return _0x186ed1=>(_0x186ed1['addEventListener']('click',_0xdf4dae),_0x186ed1['addEventListener']('keydown',_0x37de44),_0x186ed1['addEventListener']('keyup',_0x2c96fe),()=>{_0x186ed1['removeEventListener']('click',_0xdf4dae),_0x186ed1['removeEventListener']('keydown',_0x37de44),_0x186ed1['removeEventListener']('keyup',_0x2c96fe);});}function startKeyUX(_0x178fc5,_0x1ef612){let _0x5e14a2=_0x1ef612['map'](_0x4c5917=>_0x4c5917(_0x178fc5));return()=>{_0x5e14a2['forEach'](_0x2d4421=>_0x2d4421());};}function i$1(_0x3db76a){return _0x3db76a['replace'](/[A-Z]/g,_0x276724=>'_'+_0x276724['toLowerCase']())['replace'](/__/g,'_');}function c$2(_0x58a377){return Array['isArray'](_0x58a377)?_0x58a377['map'](_0x50f975=>'object'==typeof _0x50f975&&null!==_0x50f975?c$2(_0x50f975):_0x50f975):'object'!=typeof _0x58a377||null===_0x58a377?_0x58a377:Object['fromEntries'](Object['entries'](_0x58a377)['map'](([_0x2027ca,_0xfa73a2])=>{const t=i$1(_0x2027ca);return'object'==typeof _0xfa73a2&&null!==_0xfa73a2?[t,c$2(_0xfa73a2)]:[t,_0xfa73a2];}));}function u(_0x58aef7){return{'ok':!0x0,'value':_0x58aef7};}function a$1(_0x530fa5){return{'ok':!0x1,'error':_0x530fa5};}const l='https://tlm.uploadcare.com/api/';class y{constructor(_0x2d05f5=l){this['baseUrl']=_0x2d05f5;}async['base'](_0x828a27,_0x14faec={}){const t=''+this['baseUrl']+_0x828a27;try{const _0x24ec68=await fetch(t,_0x14faec);if(!_0x24ec68['ok'])return a$1(new Error('Got\x20non-200\x20response\x20from\x20\x22'+t+'\x22.\x20Status:\x20'+_0x24ec68['status']['toString']()));try{return u(await _0x24ec68['json']());}catch(_0x44f25b){return a$1(new Error('Error\x20parsing\x20JSON\x20from\x20\x22'+t+'\x22.\x20Error:\x20'+_0x44f25b));}}catch(_0x334ee7){return a$1(new Error('Error\x20fetching\x20data\x20from\x20\x22'+t+'\x22.\x20Error:\x20'+_0x334ee7));}}async['post'](_0x61be8,_0x4749de,t={}){return await this['base'](_0x61be8,{...t,'method':'POST','body':JSON['stringify'](c$2(_0x4749de)),'headers':{'Content-Type':'application/json',...t['headers']||{}}});}async['get'](_0x59826b,_0x33e796={}){return await this['base'](_0x59826b,{'method':'GET',..._0x33e796});}}const f$1=async(_0x6faf6,_0x86e1f4)=>({'success':!0x0,'data':_0x86e1f4});class p extends y{constructor(){super();}async['sendEvent'](_0x2e0421,_0x6d99c1){const t=await f$1(void 0x0,_0x2e0421);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',_0x2e0421,_0x6d99c1);}}const o=(_0x5234e5,_0x4e5720)=>{const _0x3ca8bb=new URL(_0x4e5720);return _0x3ca8bb['hostname']=_0x5234e5+'.'+_0x3ca8bb['hostname'],_0x3ca8bb['toString']()['replace'](/\/$/,'');},s='0123456789abcdefghijklmnopqrstuvwxyz',a=_0x2a0a59=>{if(_0x2a0a59<=0x0n)return'0';let _0x4dc59b='';for(;_0x2a0a59>0x0n;){_0x4dc59b=s[Number(_0x2a0a59%0x24n)]+_0x4dc59b,_0x2a0a59/=0x24n;}return _0x4dc59b;},c$1=(_0x31dc22,_0xf119d2)=>{try{const _0x3ee10b=new URL(_0x31dc22),t=new URL(_0xf119d2);return _0x3ee10b['hostname']['endsWith'](t['hostname']);}catch{return!0x1;}},c=async _0x16dac2=>{const _0x535070=new TextEncoder()['encode'](_0x16dac2),t=await window['crypto']['subtle']['digest']('SHA-256',_0x535070),_0x3be638=Array['from'](new Uint8Array(t))['map'](_0x5c2f96=>_0x5c2f96['toString'](0x10)['padStart'](0x2,'0'))['join']('');return BigInt('0x'+_0x3be638);},i=0xa,d=async _0xcd3e4b=>{const _0x11a053=await c(_0xcd3e4b);return a(_0x11a053)['slice'](0x0,i);},f=async(_0x4cce0d,_0x4257a4)=>{const t=await d(_0x4cce0d);return o(t,_0x4257a4);},readJpegChunks=()=>{const _0x590377=[];return{'stack':_0x590377,'promiseReadJpegChunks':_0x3cb686=>new Promise((_0x5c9689,_0x5eec7a)=>{let _0x8dc44a=0x2;const _0x1de7f7=(_0x5afe3f,_0x5f00a8)=>{const _0x218e80=new FileReader();_0x218e80['addEventListener']('load',()=>{_0x5f00a8(new DataView(_0x218e80['result']));}),_0x218e80['addEventListener']('error',_0x1783a1=>{_0x5eec7a('Reader\x20error:\x20'+_0x1783a1);}),_0x218e80['readAsArrayBuffer'](_0x5afe3f);},_0x54911d=()=>_0x1de7f7(_0x3cb686['slice'](_0x8dc44a,_0x8dc44a+0x80),_0x4cda8d=>{let _0x53177b,_0x2eced1,_0x563c94;for(_0x53177b=_0x2eced1=0x0,_0x563c94=_0x4cda8d['byteLength'];_0x563c94>=0x0?_0x2eced1<_0x563c94:_0x2eced1>_0x563c94;_0x53177b=_0x563c94>=0x0?++_0x2eced1:--_0x2eced1)if(0xff===_0x4cda8d['getUint8'](_0x53177b)){_0x8dc44a+=_0x53177b;break;}_0x3ab510();}),_0x3ab510=()=>{const _0x2926fd=_0x8dc44a;return _0x1de7f7(_0x3cb686['slice'](_0x8dc44a,_0x8dc44a+=0x4),_0x7105c5=>{if(0x4!==_0x7105c5['byteLength']||0xff!==_0x7105c5['getUint8'](0x0))return void _0x5eec7a('Corrupted');const _0x25a3fb=_0x7105c5['getUint8'](0x1);if(0xda===_0x25a3fb)return void _0x5c9689(!0x0);const _0x208de5=_0x7105c5['getUint16'](0x2)-0x2;return _0x1de7f7(_0x3cb686['slice'](_0x8dc44a,_0x8dc44a+=_0x208de5),_0x581182=>{_0x581182['byteLength']===_0x208de5?(_0x590377['push']({'startPos':_0x2926fd,'length':_0x208de5,'marker':_0x25a3fb,'view':_0x581182}),_0x54911d()):_0x5eec7a('Corrupted');});});};FileReader&&DataView||_0x5eec7a('Not\x20Support'),_0x1de7f7(_0x3cb686['slice'](0x0,0x2),_0x40fb3d=>{0xffd8!==_0x40fb3d['getUint16'](0x0)&&_0x5eec7a('Not\x20jpeg'),_0x54911d();});})};},getIccProfile=async _0x236325=>{const _0x3e26b3=[],{promiseReadJpegChunks:_0x4ce539,stack:_0x205787}=readJpegChunks();return await _0x4ce539(_0x236325),_0x205787['forEach'](({marker:_0x4442e3,view:_0xe47c32})=>{0xe2===_0x4442e3&&0x4943435f===_0xe47c32['getUint32'](0x0)&&0x50524f46===_0xe47c32['getUint32'](0x4)&&0x494c4500===_0xe47c32['getUint32'](0x8)&&_0x3e26b3['push'](_0xe47c32);}),_0x3e26b3;},replaceJpegChunk=async(_0x3740b9,_0x55ac46,_0x14370e)=>{{const _0x247960=[],_0x3c620c=[],{promiseReadJpegChunks:_0x688b04,stack:_0x280497}=readJpegChunks();await _0x688b04(_0x3740b9),_0x280497['forEach'](_0x3236c1=>{if(_0x3236c1['marker']===_0x55ac46)return _0x247960['push'](_0x3236c1['startPos']),_0x3c620c['push'](_0x3236c1['length']);});const _0xcdda1=[_0x3740b9['slice'](0x0,0x2)];for(const _0x3cd717 of _0x14370e){const _0x476222=new DataView(new ArrayBuffer(0x4));_0x476222['setUint16'](0x0,0xff00+_0x55ac46),_0x476222['setUint16'](0x2,_0x3cd717['byteLength']+0x2),_0xcdda1['push'](_0x476222['buffer']),_0xcdda1['push'](_0x3cd717);}let _0x2adb0b=0x2;for(let _0x283d23=0x0;_0x283d23<_0x247960['length'];_0x283d23++)_0x247960[_0x283d23]>_0x2adb0b&&_0xcdda1['push'](_0x3740b9['slice'](_0x2adb0b,_0x247960[_0x283d23])),_0x2adb0b=_0x247960[_0x283d23]+_0x3c620c[_0x283d23]+0x4;return _0xcdda1['push'](_0x3740b9['slice'](_0x2adb0b,_0x3740b9['size'])),new Blob(_0xcdda1,{'type':_0x3740b9['type']});}},MARKER=0xe2,replaceIccProfile=(_0x13203f,_0x3327aa)=>replaceJpegChunk(_0x13203f,MARKER,_0x3327aa['map'](_0x5091a7=>_0x5091a7['buffer'])),stripIccProfile=async _0x4fbcc7=>{try{return await replaceIccProfile(_0x4fbcc7,[]);}catch(_0x3634c1){throw new Error('Failed\x20to\x20strip\x20ICC\x20profile:\x20'+_0x3634c1);}},canvasToBlob=(_0x10da99,_0x9c1001,_0x19fddf)=>new Promise((_0x37932b,_0x5e28b2)=>{_0x10da99['toBlob'](_0x5b7a48=>{_0x5b7a48?_0x37932b(_0x5b7a48):_0x5e28b2('Failed\x20to\x20convert\x20canvas\x20to\x20blob');},_0x9c1001,_0x19fddf),_0x10da99['width']=_0x10da99['height']=0x1;}),createCanvas=()=>{const _0x242aab=document['createElement']('canvas'),_0x5a3599=_0x242aab['getContext']('2d');return{'canvas':_0x242aab,'ctx':_0x5a3599};},hasTransparency=_0x451487=>{const {ctx:_0x3fff49,canvas:_0x50fc70}=createCanvas();_0x50fc70['width']=_0x50fc70['height']=0x32,_0x3fff49['drawImage'](_0x451487,0x0,0x0,0x32,0x32);const _0x5aec3f=_0x3fff49['getImageData'](0x0,0x0,0x32,0x32)['data'];_0x50fc70['width']=_0x50fc70['height']=0x1;for(let _0x21fe2d=0x3;_0x21fe2d<_0x5aec3f['length'];_0x21fe2d+=0x4)if(_0x5aec3f[_0x21fe2d]<0xfe)return!0x0;return!0x1;},getExif=async _0x4a0834=>{let _0x292629=null;const {promiseReadJpegChunks:_0x2b382c,stack:_0x2c2bf4}=readJpegChunks();return await _0x2b382c(_0x4a0834),_0x2c2bf4['forEach'](({marker:_0x62c050,view:_0x5971db})=>{!_0x292629&&0xe1===_0x62c050&&_0x5971db['byteLength']>=0xe&&0x45786966===_0x5971db['getUint32'](0x0)&&0x0===_0x5971db['getUint16'](0x4)&&(_0x292629=_0x5971db);}),_0x292629;},base64ImageSrc='data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=';let isApplied;const isBrowserApplyExifOrientation=()=>new Promise(_0x15488f=>{if(void 0x0!==isApplied)_0x15488f(isApplied);else{const _0xa904f4=new Image();_0xa904f4['addEventListener']('load',()=>{isApplied=_0xa904f4['naturalWidth']<_0xa904f4['naturalHeight'],_0xa904f4['src']='//:0',_0x15488f(isApplied);}),_0xa904f4['src']=base64ImageSrc;}}),findExifOrientation=(_0xf6ee8f,_0x438b5b)=>{let _0x1503d3,_0x1f1103,_0x1bda21,_0x441260;if(!_0xf6ee8f||_0xf6ee8f['byteLength']<0xe||0x45786966!==_0xf6ee8f['getUint32'](0x0)||0x0!==_0xf6ee8f['getUint16'](0x4))return;if(0x4949===_0xf6ee8f['getUint16'](0x6))_0x1f1103=!0x0;else{if(0x4d4d!==_0xf6ee8f['getUint16'](0x6))return;_0x1f1103=!0x1;}if(0x2a!==_0xf6ee8f['getUint16'](0x8,_0x1f1103))return;_0x1bda21=0x8+_0xf6ee8f['getUint32'](0xa,_0x1f1103);for(_0x1503d3=0x0,_0x441260=_0xf6ee8f['getUint16'](_0x1bda21-0x2,_0x1f1103);_0x441260>=0x0?_0x1503d3<_0x441260:_0x1503d3>_0x441260;_0x441260>=0x0?++_0x1503d3:--_0x1503d3){if(_0xf6ee8f['byteLength']<_0x1bda21+0xa)return;0x112===_0xf6ee8f['getUint16'](_0x1bda21,_0x1f1103)&&_0x438b5b(_0x1bda21+0x8,_0x1f1103),_0x1bda21+=0xc;}},setExifOrientation=(_0x387e3f,_0x12e515)=>{findExifOrientation(_0x387e3f,(_0x4b459d,_0x5b69a8)=>_0x387e3f['setUint16'](_0x4b459d,_0x12e515,_0x5b69a8));},replaceExif=async(_0x5716fc,_0x387e77,_0x31c82b)=>(_0x31c82b&&setExifOrientation(_0x387e77,0x1),replaceJpegChunk(_0x5716fc,0xe1,[_0x387e77['buffer']])),processImage=(_0x4cb0a5,_0x290bfe)=>new Promise((_0x455f59,_0x1a7ff6)=>{_0x290bfe&&(_0x4cb0a5['src']=_0x290bfe),_0x4cb0a5['complete']?_0x455f59(_0x4cb0a5):(_0x4cb0a5['addEventListener']('load',()=>{_0x455f59(_0x4cb0a5);}),_0x4cb0a5['addEventListener']('error',()=>{_0x1a7ff6(new Error('Failed\x20to\x20load\x20image.\x20Probably\x20not\x20an\x20image.'));}));}),imageLoader=_0x25b081=>processImage(new Image(),_0x25b081),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 _0x13a9d3=>{let _0x4b74f5=!0x1;const {promiseReadJpegChunks:_0xfa0582,stack:_0x1a3e8b}=readJpegChunks();return await _0xfa0582(_0x13a9d3)['then'](()=>(_0x1a3e8b['forEach'](({marker:_0xda675c,view:_0x1d67b5})=>{if(!_0x4b74f5&&markers['indexOf'](_0xda675c)>=0x0){const _0x751ee7=_0x1d67b5['getUint8'](0x5);allowLayers['indexOf'](_0x751ee7)<0x0&&(_0x4b74f5=!0x0);}}),_0x4b74f5))['catch'](()=>_0x4b74f5);},memoize$1=(_0x2dea7d,_0x4230b0)=>{const _0x1b06d4={};return(..._0x34f0cb)=>{const _0x20f7f9=_0x4230b0(_0x34f0cb,_0x1b06d4);return _0x20f7f9 in _0x1b06d4?_0x1b06d4[_0x20f7f9]:_0x1b06d4[_0x20f7f9]=_0x2dea7d(..._0x34f0cb);};},memoKeySerializer=(_0x1542da,_0x320098)=>{const [_0xd0efcb]=_0x1542da,_0x46f65a=Object['keys'](_0x320098)['map'](_0x34f4d4=>parseInt(_0x34f4d4,0xa))['sort']((_0x202053,_0x197410)=>_0x202053-_0x197410);for(let _0x599f5a=0x0;_0x599f5a<_0x46f65a['length'];_0x599f5a++){const _0x18547d=_0x46f65a[_0x599f5a],_0x43eccb=!!_0x320098[_0x18547d];if(_0x18547d>_0xd0efcb&&_0x43eccb)return _0x18547d;if(_0x18547d<_0xd0efcb&&!_0x43eccb)return _0x18547d;}return _0xd0efcb;},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=(_0x161362,_0x587f0b)=>{try{const _0x102b7e=[_0x161362-0x1,_0x587f0b-0x1,0x1,0x1],{canvas:_0x5633cc,ctx:_0x145d29}=createCanvas();_0x5633cc['width']=0x1,_0x5633cc['height']=0x1;const {canvas:_0x5f0f0a,ctx:_0x393762}=createCanvas();_0x5f0f0a['width']=_0x161362,_0x5f0f0a['height']=_0x587f0b,_0x393762&&(_0x393762['fillStyle']=FILL_STYLE,_0x393762['fillRect'](..._0x102b7e),_0x145d29['drawImage'](_0x5f0f0a,_0x161362-0x1,_0x587f0b-0x1,0x1,0x1,0x0,0x0,0x1,0x1));const _0x40964a=_0x145d29&&_0x145d29['getImageData'](0x0,0x0,0x1,0x1)['data'];let _0x4e9547=!0x1;return _0x40964a&&(_0x4e9547=_0x40964a[0x0]===TestPixel['R']&&_0x40964a[0x1]===TestPixel['G']&&_0x40964a[0x2]===TestPixel['B']&&_0x40964a[0x3]===TestPixel['A']),_0x5f0f0a['width']=_0x5f0f0a['height']=0x1,_0x4e9547;}catch(_0x2ac53c){return console['error']('Failed\x20to\x20test\x20for\x20max\x20canvas\x20size\x20of\x20'+_0x161362+'x'+_0x587f0b+'.'),!0x1;}};function wrapAsync(_0x22f325){return(..._0x1d73c8)=>new Promise(_0x2bde7e=>{setTimeout(()=>{const _0x4b5e28=_0x22f325(..._0x1d73c8);_0x2bde7e(_0x4b5e28);},0x0);});}const squareTest=wrapAsync(memoize$1(canvasTest,memoKeySerializer)),dimensionTest=wrapAsync(memoize$1(canvasTest,memoKeySerializer)),testCanvasSize=async(_0xfdb62c,_0x3a3982)=>{const _0x3cb9bd=sizes['squareSide']['find'](_0x55421a=>_0x55421a*_0x55421a>=_0xfdb62c*_0x3a3982),_0x321a13=sizes['dimension']['find'](_0xa2f204=>_0xa2f204>=_0xfdb62c&&_0xa2f204>=_0x3a3982);if(!_0x3cb9bd||!_0x321a13)throw new Error('Not\x20supported');const [_0x59ee1e,_0x2e6979]=await Promise['all']([squareTest(_0x3cb9bd,_0x3cb9bd),dimensionTest(_0x321a13,0x1)]);if(_0x59ee1e&&_0x2e6979)return!0x0;throw new Error('Not\x20supported');},canvasResize=async(_0x48ce52,_0x2ba1db,_0x4d3578)=>{try{const {ctx:_0x323fa2,canvas:_0x192f3d}=createCanvas();return _0x192f3d['width']=_0x2ba1db,_0x192f3d['height']=_0x4d3578,_0x323fa2['imageSmoothingQuality']='high',_0x323fa2['drawImage'](_0x48ce52,0x0,0x0,_0x2ba1db,_0x4d3578),_0x48ce52 instanceof HTMLImageElement&&(_0x48ce52['src']='//:0'),_0x48ce52 instanceof HTMLCanvasElement&&(_0x48ce52['width']=_0x48ce52['height']=0x1),_0x192f3d;}catch(_0x5be993){throw new Error('Canvas\x20resize\x20error',{'cause':_0x5be993});}},native=({img:_0x46fe4b,targetW:_0x41926d,targetH:_0x420c8a})=>canvasResize(_0x46fe4b,_0x41926d,_0x420c8a),calcShrinkSteps=function({sourceW:_0x40115e,targetW:_0xcac270,targetH:_0x4e3eb1,step:_0x38ed3e}){const _0x417ad2=[];let _0x4abc41=_0xcac270,_0x18da45=_0x4e3eb1;do{_0x417ad2['push']([_0x4abc41,_0x18da45]),_0x4abc41=Math['round'](_0x4abc41/_0x38ed3e),_0x18da45=Math['round'](_0x18da45/_0x38ed3e);}while(_0x4abc41<_0x40115e*_0x38ed3e);return _0x417ad2['reverse']();},fallback=({img:_0x48b7a1,sourceW:_0x2e907f,targetW:_0x2e4ea3,targetH:_0x39bd95,step:_0x4bf0bd})=>{const _0x339b78=calcShrinkSteps({'sourceW':_0x2e907f,'targetW':_0x2e4ea3,'targetH':_0x39bd95,'step':_0x4bf0bd});return _0x339b78['reduce']((_0x4b646e,[_0x576215,_0x5be931],_0x17bf4b)=>_0x4b646e['then'](_0x484b8d=>testCanvasSize(_0x576215,_0x5be931)['then'](()=>canvasResize(_0x484b8d,_0x576215,_0x5be931))['catch'](()=>{if(_0x17bf4b===_0x339b78['length']-0x1)throw new Error('Not\x20supported');return _0x484b8d;})),Promise['resolve'](_0x48b7a1));},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=(_0x40bc11,_0x40940a)=>{if(_0x40bc11['width']*STEP*_0x40bc11['height']*STEP<_0x40940a['size'])throw new Error('Not\x20required');const _0x1db7c3=_0x40bc11['width'],_0x48eb33=_0x40bc11['height'],_0x59d066=_0x1db7c3/_0x48eb33,_0x93662c=Math['floor'](Math['sqrt'](_0x40940a['size']*_0x59d066)),_0x1fb3a8=Math['floor'](_0x40940a['size']/Math['sqrt'](_0x40940a['size']*_0x59d066));return testCanvasSize(_0x93662c,_0x1fb3a8)['then'](()=>{const {ctx:_0x241a5d}=createCanvas();return'imageSmoothingQuality'in _0x241a5d&&!isIOS()&&!isIpadOS?native({'img':_0x40bc11,'targetW':_0x93662c,'targetH':_0x1fb3a8}):fallback({'img':_0x40bc11,'sourceW':_0x1db7c3,'targetW':_0x93662c,'targetH':_0x1fb3a8,'step':STEP});})['catch'](()=>Promise['reject']('Not\x20supported'));},shrinkFile=async(_0x1e3a30,_0x56fa63)=>{try{if(await shouldSkipShrink(_0x1e3a30))throw new Error('Should\x20skipped');const _0x5660b0=await Promise['allSettled']([getExif(_0x1e3a30),isBrowserApplyExifOrientation(),getIccProfile(_0x1e3a30)]),_0x50fba2=!_0x5660b0['some'](_0xe31fea=>'rejected'===_0xe31fea['status']),[_0x5e273c,_0x52def1,_0xde2c88]=_0x5660b0,_0x1e3846=await stripIccProfile(_0x1e3a30)['catch'](()=>_0x1e3a30),_0x3f897a=await imageLoader(URL['createObjectURL'](_0x1e3846));URL['revokeObjectURL'](_0x3f897a['src']);const _0x193546=await shrinkImage(_0x3f897a,_0x56fa63);let _0x3a950e='image/jpeg',_0x596686=_0x56fa63?.['quality']||0.8;!_0x50fba2&&hasTransparency(_0x193546)&&(_0x3a950e='image/png',_0x596686=void 0x0);let _0x2e7534=await canvasToBlob(_0x193546,_0x3a950e,_0x596686);if(_0x50fba2&&'fulfilled'===_0x5e273c['status']&&_0x5e273c['value']){const _0x2aeda3=_0x5e273c['value'],_0x6c1afc='fulfilled'===_0x52def1['status']&&_0x52def1['value'];_0x2e7534=await replaceExif(_0x2e7534,_0x2aeda3,_0x6c1afc);}return _0x50fba2&&'fulfilled'===_0xde2c88['status']&&_0xde2c88['value']['length']>0x0&&(_0x2e7534=await replaceIccProfile(_0x2e7534,_0xde2c88['value'])),_0x2e7534;}catch(_0x570e6a){let _0xe1840c;throw _0x570e6a instanceof Error&&(_0xe1840c=_0x570e6a['message']),'string'==typeof _0x570e6a&&(_0xe1840c=_0x570e6a),new Error('Failed\x20to\x20shrink\x20image.\x20'+(_0xe1840c?'Message:\x20\x22'+_0xe1840c+'\x22.':''),{'cause':_0x570e6a});}};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(_0x3e609b){this['_debugPrint']=_0x3e609b;}['bindTarget'](_0x128579){this['_targets']['add'](_0x128579);}['unbindTarget'](_0x26d018){this['_targets']['delete'](_0x26d018);}['_dispatch'](_0x5adb27,_0x2f21e5){for(const _0x1b6639 of this['_targets'])_0x1b6639['dispatchEvent'](new CustomEvent(_0x5adb27,{'detail':_0x2f21e5}));this['_debugPrint']?.(()=>{const _0x33003e=_0x2f21e5&&'object'==typeof _0x2f21e5?{..._0x2f21e5}:_0x2f21e5;return['event\x20\x22'+_0x5adb27+'\x22',_0x33003e];});}['emit'](_0x4c27af,_0x5646c2,_0x4d90ea={}){const {debounce:_0x36a6cc}=_0x4d90ea;if('number'!=typeof _0x36a6cc&&!_0x36a6cc)return void this['_dispatch'](_0x4c27af,'function'==typeof _0x5646c2?_0x5646c2():_0x5646c2);this['_timeoutStore']['has'](_0x4c27af)&&window['clearTimeout'](this['_timeoutStore']['get'](_0x4c27af));const _0x4af5d4='number'==typeof _0x36a6cc?_0x36a6cc:DEFAULT_DEBOUNCE_TIMEOUT,_0x244023=window['setTimeout'](()=>{this['_dispatch'](_0x4c27af,'function'==typeof _0x5646c2?_0x5646c2():_0x5646c2),this['_timeoutStore']['delete'](_0x4c27af);},_0x4af5d4);this['_timeoutStore']['set'](_0x4c27af,_0x244023);}};function debounce(_0x111348,_0x4b8b86){let _0x4dac84;const _0x340c26=(..._0x4fe06a)=>{_0x4dac84&&clearTimeout(_0x4dac84),_0x4dac84=setTimeout(()=>_0x111348(..._0x4fe06a),_0x4b8b86);};return _0x340c26['cancel']=()=>{_0x4dac84&&clearTimeout(_0x4dac84);},_0x340c26;}var deserializeCsv=_0x72984b=>_0x72984b?_0x72984b['split'](',')['map'](_0x29bd6f=>_0x29bd6f['trim']())['filter'](Boolean):[],serializeCsv=_0xc63e8b=>_0xc63e8b['join'](','),normalizeCdnOperation=_0x5a0dc5=>{if('string'!=typeof _0x5a0dc5||!_0x5a0dc5)return'';let _0xb382d9=_0x5a0dc5['trim']();return _0xb382d9['startsWith']('-/')?_0xb382d9=_0xb382d9['slice'](0x2):_0xb382d9['startsWith']('/')&&(_0xb382d9=_0xb382d9['slice'](0x1)),_0xb382d9['endsWith']('/')&&(_0xb382d9=_0xb382d9['slice'](0x0,_0xb382d9['length']-0x1)),_0xb382d9;},joinCdnOperations=(..._0x4315e3)=>_0x4315e3['filter'](_0x569661=>'string'==typeof _0x569661&&!!_0x569661)['map'](_0x5321d1=>normalizeCdnOperation(_0x5321d1))['join']('/-/'),createCdnUrlModifiers=(..._0x5d7ab0)=>{const _0x370d30=joinCdnOperations(..._0x5d7ab0);return _0x370d30?'-/'+_0x370d30+'/':'';};function extractFilename(_0x64859e){const _0x25e8a6=new URL(_0x64859e),_0x3e90af=_0x25e8a6['pathname']+_0x25e8a6['search']+_0x25e8a6['hash'],_0x390763=_0x3e90af['lastIndexOf']('http'),_0x51dbe3=_0x3e90af['lastIndexOf']('/');let _0xecd9a4='';return _0x390763>=0x0?_0xecd9a4=_0x3e90af['slice'](_0x390763):_0x51dbe3>=0x0&&(_0xecd9a4=_0x3e90af['slice'](_0x51dbe3+0x1)),_0xecd9a4;}function extractUuid(_0x165f80){const _0x303377=new URL(_0x165f80),{pathname:_0x52aa3f}=_0x303377,_0x8949c7=_0x52aa3f['indexOf']('/'),_0x24d590=_0x52aa3f['indexOf']('/',_0x8949c7+0x1);return _0x52aa3f['substring'](_0x8949c7+0x1,_0x24d590);}function extractCdnUrlModifiers(_0x2a74df){const _0x559241=trimFilename(_0x2a74df),_0x130163=new URL(_0x559241),_0x5e8adb=_0x130163['pathname']['indexOf']('/-/');if(-0x1===_0x5e8adb)return'';return _0x130163['pathname']['substring'](_0x5e8adb)['slice'](0x1);}function extractOperations(_0x385669){return extractCdnUrlModifiers(_0x385669)['split']('/-/')['filter'](Boolean)['map'](_0x11caee=>normalizeCdnOperation(_0x11caee));}function trimFilename(_0x3e2bb6){const _0x1caa2e=new URL(_0x3e2bb6),_0x5bc983=extractFilename(_0x3e2bb6),_0x1a7805=isFileUrl(_0x5bc983)?splitFileUrl(_0x5bc983)['pathname']:_0x5bc983;return _0x1caa2e['pathname']=_0x1caa2e['pathname']['replace'](_0x1a7805,''),_0x1caa2e['search']='',_0x1caa2e['hash']='',_0x1caa2e['toString']();}function isFileUrl(_0x4bbe09){return _0x4bbe09['startsWith']('http');}function splitFileUrl(_0x27b78d){const _0x1f0a2c=new URL(_0x27b78d);return{'pathname':''+_0x1f0a2c['origin']+(_0x1f0a2c['pathname']??''),'search':_0x1f0a2c['search']??'','hash':_0x1f0a2c['hash']??''};}var createCdnUrl=(_0x2b3252,_0x400eee,_0x4e46c4)=>{const _0x2d75e4=new URL(trimFilename(_0x2b3252)),_0x1cbce3=_0x4e46c4??extractFilename(_0x2b3252),_0x35f955=_0x400eee??'';if(_0x2d75e4['pathname']['startsWith']('//')&&(_0x2d75e4['pathname']=_0x2d75e4['pathname']['replace']('//','/')),_0x1cbce3&&isFileUrl(_0x1cbce3)){const _0x4c1247=splitFileUrl(_0x1cbce3);_0x2d75e4['pathname']=''+_0x2d75e4['pathname']+_0x35f955+(_0x4c1247['pathname']||''),_0x2d75e4['search']=_0x4c1247['search'],_0x2d75e4['hash']=_0x4c1247['hash'];}else _0x2d75e4['pathname']=''+_0x2d75e4['pathname']+_0x35f955+(_0x1cbce3||'');return _0x2d75e4['toString']();},createOriginalUrl=(_0x2c567b,_0x5adc38)=>{const _0x117f32=new URL(_0x2c567b);return _0x117f32['pathname']=_0x5adc38+'/',_0x117f32['toString']();},stringToArray=(_0x501364,_0x323043=',')=>_0x501364['trim']()['split'](_0x323043)['map'](_0x55f36c=>_0x55f36c['trim']())['filter'](_0x35383f=>_0x35383f['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(_0x12a046,_0x3673fa){if('number'==typeof _0x3673fa){const _0x4457b0=_0x3673fa;return OPERATIONS_DEFAULTS[_0x12a046]!==_0x4457b0?_0x12a046+'/'+_0x4457b0:'';}if('boolean'==typeof _0x3673fa){const _0x57f786=_0x3673fa;return OPERATIONS_DEFAULTS[_0x12a046]!==_0x57f786?''+_0x12a046:'';}if('filter'===_0x12a046&&_0x3673fa){const {name:_0x239919,amount:_0x2014bb}=_0x3673fa;return OPERATIONS_DEFAULTS['filter']===_0x2014bb?'':_0x12a046+'/'+_0x239919+'/'+_0x2014bb;}if('crop'===_0x12a046&&_0x3673fa){const {dimensions:_0x13b186,coords:_0x439f66}=_0x3673fa;return _0x12a046+'/'+_0x13b186['join']('x')+'/'+_0x439f66['join'](',');}return'';}function transformationsToOperations(_0x44b93b){return joinCdnOperations(...SUPPORTED_OPERATIONS_ORDERED['filter'](_0x49a5f5=>void 0x0!==_0x44b93b[_0x49a5f5]&&null!==_0x44b93b[_0x49a5f5])['map'](_0x2ea972=>transformationToStr(_0x2ea972,_0x44b93b[_0x2ea972]))['filter'](_0x1ec995=>!!_0x1ec995));}var COMMON_OPERATIONS=joinCdnOperations('format/auto','progressive/yes'),asNumber=([_0x2c9c1d])=>void 0x0!==_0x2c9c1d?Number(_0x2c9c1d):void 0x0,asBoolean=()=>!0x0,asFilter=([_0x1011af,_0x2c043b])=>({'name':_0x1011af,'amount':void 0x0!==_0x2c043b?Number(_0x2c043b):0x64}),asCrop=([_0x591c26,_0x485f30])=>{if(!/\d+x\d+/['test'](_0x591c26)||!/\d+,\d+/['test'](_0x485f30))throw new Error('Crop\x20by\x20aspect\x20ratio,\x20percentage\x20or\x20alignment\x20shortcuts\x20is\x20not\x20supported.');return{'dimensions':stringToArray(_0x591c26,'x')['map'](Number),'coords':stringToArray(_0x485f30)['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':_0x29e3fe=>{const [_0x2fb141,_0x27fe8a]=_0x29e3fe,{dimensions:_0x296cd0,coords:_0x149a60}=asCrop([_0x2fb141,_0x27fe8a]);return{'dimensions':_0x296cd0,'coords':_0x149a60};}});function operationsToTransformations(_0x5ccadd){const _0x2f98f9={};for(const _0x34fb91 of _0x5ccadd){const [_0x27660f,..._0x298f2f]=_0x34fb91['split']('/');if(!_0x27660f||!SUPPORTED_OPERATIONS_ORDERED['includes'](_0x27660f))continue;const _0x10713b=_0x27660f,_0x421bd0=OPERATION_PROCESSORS[_0x10713b];try{const _0x315e78=_0x421bd0(_0x298f2f);_0x2f98f9[_0x10713b]=_0x315e78;}catch(_0x5494a6){console['warn'](['Failed\x20to\x20parse\x20URL\x20operation\x20\x22'+_0x34fb91+'\x22.\x20It\x20will\x20be\x20ignored.',_0x5494a6 instanceof Error?'Error\x20message:\x20\x22'+_0x5494a6['message']+'\x22':_0x5494a6,'If\x20you\x20need\x20this\x20functionality,\x20please\x20feel\x20free\x20to\x20open\x20an\x20issue\x20at\x20https://github.com/uploadcare/blocks/issues/new']['join']('\x0a'));}}return _0x2f98f9;}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=_0x37e56a=>{const _0x21978c=new Intl['Locale'](_0x37e56a);let _0xad9398='ltr';const _0x495994=_0x21978c['getTextInfo']?.()['direction'];return _0x495994?_0xad9398=_0x495994:_0x21978c['textInfo']?.['direction']&&(_0xad9398=_0x21978c['textInfo']['direction']),_0xad9398;},getPluralForm=(_0x1355d7,_0x95b37)=>new Intl['PluralRules'](_0x1355d7)['select'](_0x95b37),DEFAULT_TRANSFORMER=_0xc70fd=>_0xc70fd,OPEN_TOKEN='{{',CLOSE_TOKEN='}}',PLURAL_PREFIX='plural:';function applyTemplateData(_0xef43f9,_0x1a35f2={},_0x5b943e={}){const {openToken:_0x2af036=OPEN_TOKEN,closeToken:_0x51de2c=CLOSE_TOKEN,transform:_0x447c82=DEFAULT_TRANSFORMER}=_0x5b943e;for(const _0xb73fc8 in _0x1a35f2){const _0x59c82b=_0x1a35f2[_0xb73fc8],_0x1efd64=null!=_0x59c82b?_0x59c82b['toString']():void 0x0,_0x3be0bf='string'==typeof _0x1efd64?_0x447c82(_0x1efd64):String(_0x1efd64);_0xef43f9=_0xef43f9['replaceAll'](_0x2af036+_0xb73fc8+_0x51de2c,_0x3be0bf);}return _0xef43f9;}function getPluralObjects(_0x44a1f5){const _0x2281c2=[];let _0x231262=_0x44a1f5['indexOf'](OPEN_TOKEN);for(;-0x1!==_0x231262;){const _0x446be9=_0x44a1f5['indexOf'](CLOSE_TOKEN,_0x231262);if(-0x1===_0x446be9)break;const _0x309e94=_0x44a1f5['substring'](_0x231262+0x2,_0x446be9);if(_0x309e94['startsWith'](PLURAL_PREFIX)){const _0x1829da=_0x44a1f5['substring'](_0x231262+0x2,_0x446be9)['replace'](PLURAL_PREFIX,''),_0x3e72e1=_0x1829da['substring'](0x0,_0x1829da['indexOf']('(')),_0x16cce3=_0x1829da['substring'](_0x1829da['indexOf']('(')+0x1,_0x1829da['indexOf'](')'));_0x2281c2['push']({'variable':_0x309e94,'pluralKey':_0x3e72e1,'countVariable':_0x16cce3});}_0x231262=_0x44a1f5['indexOf'](OPEN_TOKEN,_0x446be9);}return _0x2281c2;}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'](_0xffc8c5){0x0===e['clientsRegistry']['size']&&e['attachTracker'](),e['clientsRegistry']['add'](_0xffc8c5);}static['unregisterClient'](_0x16bba9){e['clientsRegistry']['delete'](_0x16bba9),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:_0x1b75b3,attribute:_0x3c5270,onSuccess:_0x2dde94,onTimeout:_0xaedd75,timeout:_0x1940ba=0x12c})=>{const _0x5b3cd6=_0x1b75b3['getAttribute'](_0x3c5270);if(null!==_0x5b3cd6)return void _0x2dde94(_0x5b3cd6);const _0x36f469=new MutationObserver(_0x316925=>{const _0x1d259c=_0x316925[_0x316925['length']-0x1];_0x1d259c&&_0x21b361(_0x1d259c);});_0x36f469['observe'](_0x1b75b3,{'attributes':!0x0,'attributeFilter':[_0x3c5270]});const _0x183ee7=window['setTimeout'](()=>{_0x36f469['disconnect'](),_0xaedd75();},_0x1940ba),_0x21b361=_0x32e60c=>{const _0xb171d0=_0x1b75b3['getAttribute'](_0x3c5270);'attributes'===_0x32e60c['type']&&_0x32e60c['attributeName']===_0x3c5270&&null!==_0xb171d0&&(window['clearTimeout'](_0x183ee7),_0x36f469['disconnect'](),_0x2dde94(_0xb171d0));};},blockCtx=()=>({}),activityBlockCtx=_0x1e5a93=>({...blockCtx(),'*currentActivity':null,'*currentActivityParams':{},'*history':[],'*historyBack':null,'*closeModal':()=>{_0x1e5a93['modalManager']?.['close'](_0x1e5a93['$']['*currentActivity']),_0x1e5a93['set$']({'*currentActivity':null});}}),uploaderBlockCtx=_0x52bd11=>({...activityBlockCtx(_0x52bd11),'*commonProgress':0x0,'*uploadList':[],'*uploadQueue':new Queue(0x1),'*collectionErrors':[],'*collectionState':null,'*groupInfo':null,'*uploadTrigger':new Set(),'*secureUploadsManager':null}),solutionBlockCtx=_0x109ed6=>({...uploaderBlockCtx(_0x109ed6),'*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=(_0x5e7763,_0x251ac8)=>{localeRegistry['has'](_0x5e7763)&&console['log']('Locale\x20'+_0x5e7763+'\x20is\x20already\x20defined.\x20Overwriting...'),localeRegistry['set'](_0x5e7763,{...en_default,..._0x251ac8});},defineLocaleAsync=(_0x50c36b,_0x277e40)=>{localeResolvers['set'](_0x50c36b,_0x277e40);},defineLocale=(_0x29ad25,_0x1a44b0)=>{'function'==typeof _0x1a44b0?defineLocaleAsync(_0x29ad25,_0x1a44b0):defineLocaleSync(_0x29ad25,_0x1a44b0);},resolveLocaleDefinition=async _0x12bd2e=>{if(!localeRegistry['has'](_0x12bd2e)){if(!localeResolvers['has'](_0x12bd2e))throw new Error('Locale\x20'+_0x12bd2e+'\x20is\x20not\x20defined');const _0x4297c9=localeResolvers['get'](_0x12bd2e),_0x5f2739=await _0x4297c9();defineLocaleSync(_0x12bd2e,_0x5f2739);}return localeRegistry['get'](_0x12bd2e);};defineLocale('en',en_default);var localeStateKey=_0x28f8dd=>'*l10n/'+_0x28f8dd,DEFAULT_LOCALE='en',LocaleManager=class{['_blockInstance']=null;['_localeName']='';['_callbacks']=new Set();['_boundBlocks']=new Map();constructor(_0x1da086){this['_blockInstance']=_0x1da086;for(const [_0x4f3ee6,_0x464b08]of Object['entries'](en_default)){const _0x5b8ca8=!this['_blockInstance']['has'](localeStateKey(_0x4f3ee6))||!this['_blockInstance']['$'][localeStateKey(_0x4f3ee6)];this['_blockInstance']['add'](localeStateKey(_0x4f3ee6),_0x464b08,_0x5b8ca8);}setTimeout(()=>{_0x1da086['subConfigValue']('localeName',async _0x3fbe20=>{if(!this['_blockInstance']||!_0x3fbe20)return;this['_localeName']=_0x3fbe20;const _0x149300=await resolveLocaleDefinition(_0x3fbe20);if(_0x3fbe20!==DEFAULT_LOCALE&&this['_localeName']!==_0x3fbe20)return;const _0x5403b1=this['_blockInstance']['cfg']['localeDefinitionOverride']?.[_0x3fbe20];for(const [_0x474ac7,_0x1051c3]of Object['entries'](_0x149300)){const _0x111a97=_0x5403b1?.[_0x474ac7];this['_blockInstance']['add'](localeStateKey(_0x474ac7),_0x111a97??_0x1051c3,!0x0);for(const _0x3bf1f7 of this['_callbacks'])_0x3bf1f7();}}),_0x1da086['subConfigValue']('localeDefinitionOverride',_0x591a4b=>{if(!_0x591a4b)return;const _0x36fa52=_0x591a4b[this['_localeName']];if(_0x36fa52)for(const [_0x3322d2,_0x42154b]of Object['entries'](_0x36fa52)){this['_blockInstance']?.['add'](localeStateKey(_0x3322d2),_0x42154b,!0x0);for(const _0x388fc0 of this['_callbacks'])_0x388fc0();}});});}['onLocaleChange'](_0x27a74d){const _0x16940f=debounce(_0x27a74d,0x0);return this['_callbacks']['add'](_0x16940f),()=>{this['_callbacks']['delete'](_0x16940f);};}['bindL10n'](_0x4f0161,_0xbb2d14,_0x3556f9){_0x4f0161['$'][_0xbb2d14]=_0x3556f9(),this['_boundBlocks']['has'](_0x4f0161)||this['_boundBlocks']['set'](_0x4f0161,new Map()),this['_boundBlocks']['get'](_0x4f0161)?.['get'](_0xbb2d14)?.();const _0x2bb6bb=this['onLocaleChange'](()=>{_0x4f0161['$'][_0xbb2d14]=_0x3556f9();});this['_boundBlocks']['get'](_0x4f0161)?.['set'](_0xbb2d14,_0x2bb6bb);}['destroyL10nBindings'](_0x24a40f){const _0x35a43b=this['_boundBlocks']['get'](_0x24a40f);if(_0x35a43b){for(const _0x2e43da of _0x35a43b['values']())_0x2e43da();this['_boundBlocks']['delete'](_0x24a40f);}}['destroy'](){this['_callbacks']['clear']();}};function l10nProcessor(_0x59ce44,_0x11dba0){[..._0x59ce44['querySelectorAll']('[l10n]')]['forEach'](_0x56d752=>{const _0x2aa5fc=_0x56d752['getAttribute']('l10n');if(!_0x2aa5fc)return;const _0x2490a1=_0x2aa5fc['split'](';');for(const _0xe43bbc of _0x2490a1)_0xe43bbc&&locale(_0x56d752,_0xe43bbc,_0x11dba0);});}var locale=(_0x1fdc60,_0x1d2c74,_0x532024)=>{let _0x108536='textContent',_0x211a76=!0x1;if(_0x1d2c74['includes'](':')){const _0x131b0c=_0x1d2c74['split'](':');if(0x2!==_0x131b0c['length'])return void console['warn']('l10n\x20attribute\x20value\x20should\x20be\x20in\x20format\x20\x22property:key\x22\x20or\x20\x22key\x22.\x20Found:\x20'+_0x1d2c74);const _0x18f12d=_0x131b0c;_0x108536=_0x18f12d[0x0],_0x1d2c74=_0x18f12d[0x1],_0x108536['startsWith']('@')&&(_0x108536=_0x108536['slice'](0x1),_0x211a76=!0x0);}const _0x324f54=_0x1d2c74;_0x532024['has'](_0x324f54)&&_0x532024['sub'](_0x324f54,_0x1fddd2=>{if(!_0x1fddd2)return;_0x532024['l10nProcessorSubs']['has'](_0x324f54)||_0x532024['l10nProcessorSubs']['set'](_0x324f54,new Set());const _0x2bfc7a=_0x532024['l10nProcessorSubs']['get'](_0x324f54);_0x2bfc7a?.['forEach'](_0x5be793=>{_0x5be793['remove'](),_0x2bfc7a['delete'](_0x5be793),_0x532024['allSubs']['delete'](_0x5be793);});const _0x22b0ae=localeStateKey(_0x1fddd2)['replace']('*','');_0x532024['nodeCtx']['has'](_0x22b0ae)||_0x532024['nodeCtx']['add'](_0x22b0ae,_0x1fddd2);const _0x4ba143=_0x532024['nodeCtx']['sub'](_0x22b0ae,()=>{_0x1fdc60[_0x108536]=_0x532024['l10n'](_0x1fddd2);});_0x2bfc7a?.['add'](_0x4ba143),_0x532024['allSubs']['add'](_0x4ba143),_0x1fdc60['removeAttribute']('l10n');});const _0x21c6f8=localeStateKey(_0x1d2c74);_0x532024['has'](_0x21c6f8)||_0x532024['add'](_0x21c6f8,''),_0x532024['sub'](_0x21c6f8,()=>{_0x211a76?_0x1fdc60['setAttribute'](_0x108536,_0x532024['l10n'](_0x1d2c74)):_0x1fdc60[_0x108536]=_0x532024['l10n'](_0x1d2c74);}),_0x1fdc60['removeAttribute']('l10n');},ScopedMinimalWindow=class{['_listeners']=new Map();['_scope']=[];['addEventListener'](_0x40fdda,_0x4b5516){const _0x1ff534=_0x23c052=>{const _0x1051a1=_0x23c052['target'];_0x1051a1 instanceof Node&&this['_scope']['some'](_0x31fc54=>_0x31fc54===_0x1051a1||_0x31fc54['contains'](_0x1051a1))&&_0x4b5516(_0x23c052);};this['_listeners']['set'](_0x4b5516,_0x1ff534),window['addEventListener'](_0x40fdda,_0x1ff534);}['removeEventListener'](_0x2c3ab6,_0x8fce53){const _0x11dbea=this['_listeners']['get'](_0x8fce53);_0x11dbea&&window['removeEventListener'](_0x2c3ab6,_0x11dbea),this['_listeners']['delete'](_0x8fce53);}get['CustomEvent'](){return window['CustomEvent'];}get['document'](){return window['document'];}get['navigator'](){return window['navigator'];}['registerScope'](_0x147768){this['_scope']['push'](_0x147768);}['destroy'](){this['_scope']=[];for(const _0x1b5b69 of this['_listeners']['values']())window['removeEventListener']('keydown',_0x1b5b69),window['removeEventListener']('keyup',_0x1b5b69);this['_listeners']['clear']();}},A11y=class{['_destroyKeyUX'];['_scopedWindow'];constructor(){this['_scopedWindow']=new ScopedMinimalWindow(),this['_destroyKeyUX']=startKeyUX(this['_scopedWindow'],[focusGroupKeyUX(),pressKeyUX('is-pressed'),jumpKeyUX(),hiddenKeyUX()]);}['registerBlock'](_0x326ba3){this['_scopedWindow']['registerScope'](_0x326ba3);}['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(_0x23dc20){this['_block']=_0x23dc20;}['_debugPrint'](..._0x52b52f){this['_block']['debugPrint']('[modal-manager]',..._0x52b52f);}['registerModal'](_0x30ae58,_0x29e4fd){this['_modals']['set'](_0x30ae58,_0x29e4fd),this['_notify'](ModalEvents['ADD'],{'id':_0x30ae58,'modal':_0x29e4fd});}['deleteModal'](_0x4946c0){if(!this['_modals']['has'](_0x4946c0))return!0x1;const _0x5569e4=this['_modals']['get'](_0x4946c0);return this['_modals']['delete'](_0x4946c0),this['_activeModals']['delete'](_0x4946c0),this['_notify'](ModalEvents['DELETE'],{'id':_0x4946c0,'modal':_0x5569e4}),!0x0;}['open'](_0x4bd76d){if(!this['_modals']['has'](_0x4bd76d))return this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x4bd76d+'\x22\x20not\x20found'),!0x1;const _0x45ca7b=this['_modals']['get'](_0x4bd76d);return this['_activeModals']['add'](_0x4bd76d),this['_notify'](ModalEvents['OPEN'],{'modal':_0x45ca7b,'id':_0x4bd76d}),!0x0;}['close'](_0x13d5b4){if(!this['_modals']['has'](_0x13d5b4)||!this['_activeModals']['has'](_0x13d5b4))return this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x13d5b4+'\x22\x20not\x20found\x20or\x20not\x20active'),!0x1;const _0x4da6f6=this['_modals']['get'](_0x13d5b4);return this['_activeModals']['delete'](_0x13d5b4),this['_notify'](ModalEvents['CLOSE'],{'id':_0x13d5b4,'modal':_0x4da6f6}),!0x0;}['toggle'](_0x45c43d){return this['_modals']['has'](_0x45c43d)?this['_activeModals']['has'](_0x45c43d)?this['close'](_0x45c43d):this['open'](_0x45c43d):(this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x45c43d+'\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 _0x130abf=Array['from'](this['_activeModals'])['pop']();return!!_0x130abf&&this['close'](_0x130abf);}['closeAll'](){const _0x1ea1ee=this['_activeModals']['size'];return this['_activeModals']['clear'](),this['_notify'](ModalEvents['CLOSE_ALL'],{}),_0x1ea1ee;}['subscribe'](_0x9f228f,_0x55f9db){return this['_subscribers']['has'](_0x9f228f)||this['_subscribers']['set'](_0x9f228f,new Set()),this['_subscribers']['get'](_0x9f228f)?.['add'](_0x55f9db),()=>this['unsubscribe'](_0x9f228f,_0x55f9db);}['unsubscribe'](_0x319080,_0x16c2a2){this['_subscribers']['has'](_0x319080)&&this['_subscribers']['get'](_0x319080)?.['delete'](_0x16c2a2);}['_notify'](_0x91bcd7,_0x17174d){if(this['_subscribers']['has'](_0x91bcd7)){for(const _0x16812d of this['_subscribers']['get'](_0x91bcd7)??new Set())try{_0x16812d(_0x17174d);}catch(_0x37b7b0){this['_block']['telemetryManager']['sendEventError'](_0x37b7b0,'modal\x20subscriber'),this['_debugPrint']('Error\x20in\x20modal\x20subscriber:',_0x37b7b0);}}}['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(_0x424958){this['_block']=_0x424958,this['_telemetryInstance']=new p(),this['_queue']=new Queue(0xa);for(const _0x4a7beb of Object['keys'](this['_config']))this['_block']['subConfigValue'](_0x4a7beb,_0x48bde1=>{this['_initialized']&&this['_config'][_0x4a7beb]!==_0x48bde1&&this['sendEvent']({'eventType':InternalEventType['CHANGE_CONFIG']}),this['_setConfig'](_0x4a7beb,_0x48bde1);});}['_init'](_0x3343f9){_0x3343f9!==InternalEventType['INIT_SOLUTION']||this['_initialized']||(this['_initialized']=!0x0);}['_setConfig'](_0x159824,_0x25a9ed){this['_config'][_0x159824]!==_0x25a9ed&&(this['_config'][_0x159824]=_0x25a9ed);}['_formattingPayload'](_0x104dc4){const _0x1dc00c=_0x104dc4['payload']?{..._0x104dc4['payload']}:{};_0x1dc00c['activity']&&(_0x1dc00c['activity']=void 0x0);const _0x2c0191={..._0x104dc4};return _0x104dc4['eventType']!==InternalEventType['INIT_SOLUTION']&&_0x104dc4['eventType']!==InternalEventType['CHANGE_CONFIG']||(_0x2c0191['config']=this['_config']),{..._0x2c0191,'appVersion':PACKAGE_VERSION,'appName':PACKAGE_NAME,'sessionId':this['_sessionId'],'component':this['_solution'],'activity':this['_activity'],'projectPubkey':this['_config']['pubkey'],'userAgent':navigator['userAgent'],'eventType':_0x2c0191['eventType']??'','eventTimestamp':this['_timestamp'],'payload':{'location':this['_location'],..._0x1dc00c}};}['_excludedEvents'](_0x4e3759){return!(!_0x4e3759||![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'](_0x4e3759));}['sendEvent'](_0x227a98){const _0x187671=this['_formattingPayload']({'eventType':_0x227a98['eventType'],'payload':_0x227a98['payload'],'config':_0x227a98['config']});this['_init'](_0x227a98['eventType']);if(this['_excludedEvents'](_0x227a98['eventType']))return;this['_lastPayload']&&this['_checkObj'](this['_lastPayload'],_0x187671)||this['_queue']['add'](async()=>{this['_lastPayload']=_0x187671,await this['_telemetryInstance']['sendEvent'](_0x187671);});}['sendEventError'](_0x34619a,_0x399c8f='unknown'){this['sendEvent']({'eventType':InternalEventType['ERROR_EVENT'],'payload':{'metadata':{'event':'error','text':'Error\x20in\x20'+_0x399c8f,'error':_0x34619a['message']}}});}['sendEventCloudImageEditor'](_0x31b9c4,_0x5c04d7,_0x9637fd={}){this['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'tabId':_0x5c04d7,'node':_0x31b9c4['currentTarget']?.['tagName'],'event':_0x31b9c4['type'],..._0x9637fd}}});}['_checkObj'](_0x256ae6,_0x4c39da){if(JSON['stringify'](_0x256ae6)===JSON['stringify'](_0x4c39da))return!0x0;if('object'!=typeof _0x256ae6||'object'!=typeof _0x4c39da||null==_0x256ae6||null==_0x4c39da)return!0x1;const _0x2ee832=Object['keys'](_0x256ae6),_0xeca2f4=Object['keys'](_0x4c39da);if(_0x2ee832['length']!==_0xeca2f4['length'])return!0x1;for(const _0x566822 of _0x2ee832){if(!Object['hasOwn'](_0x4c39da,_0x566822))return!0x1;if(!this['_checkObj'](_0x256ae6[_0x566822],_0x4c39da[_0x566822]))return!0x1;}return!0x0;}get['_timestamp'](){return Date['now']();}get['_solution'](){if(!this['_block']['has']('*solution'))return null;const _0x14e8a3=this['_block']['$']['*solution'];return _0x14e8a3?_0x14e8a3['toLowerCase']():null;}get['_activity'](){return this['_block']['has']('*currentActivity')?this['_block']['$']['*currentActivity']??null:null;}get['_location'](){return location['origin'];}},sharedConfigKey=_0x10f8ad=>'*cfg/'+_0x10f8ad;function testModeProcessor(_0x18f5a4,_0x134065){const _0x54eef8=_0x18f5a4['querySelectorAll']('[data-testid]');if(0x0===_0x54eef8['length'])return;const _0x2b5e51=new WeakMap();for(const _0x45940e of _0x54eef8){const _0x2707fe=_0x45940e['getAttribute']('data-testid');_0x2707fe&&_0x2b5e51['set'](_0x45940e,_0x2707fe);}_0x134065['subConfigValue']('testMode',_0x55c140=>{if(!_0x55c140){for(const _0x1fe6ac of _0x54eef8)_0x1fe6ac['removeAttribute']('data-testid');return;}const _0x4fd9dd=_0x134065['testId'];for(const _0x5e885c of _0x54eef8){const _0x3f5a78=_0x2b5e51['get'](_0x5e885c);_0x3f5a78&&_0x5e885c['setAttribute']('data-testid',_0x4fd9dd+'--'+_0x3f5a78);}});}var TAG_PREFIX='uc-',Block=class extends BaseComponent{['__cfgProxy'];['l10nProcessorSubs']=new Map();static ['StateConsumerScope']=null;static ['styleAttrs']=[];['requireCtxName']=!0x1;['activityType']=null;['init$']=blockCtx();['l10n'](_0x6f34f,_0x5db105={}){if(!_0x6f34f)return'';const _0xe751d8=this['$'][localeStateKey(_0x6f34f)]||_0x6f34f,_0x4f6ce0=getPluralObjects(_0xe751d8);for(const _0x3724f7 of _0x4f6ce0)_0x5db105[_0x3724f7['variable']]=this['pluralize'](_0x3724f7['pluralKey'],Number(_0x5db105[_0x3724f7['countVariable']]));return applyTemplateData(_0xe751d8,_0x5db105);}['pluralize'](_0x1222a5,_0x2e3c3a){const _0x1e5f0f=this['l10n']('locale-id')||'en',_0x10cf1c=getPluralForm(_0x1e5f0f,_0x2e3c3a);return this['l10n'](_0x1222a5+'__'+_0x10cf1c);}['bindL10n'](_0x5d6afe,_0xbd29b9){this['localeManager']?.['bindL10n'](this,_0x5d6afe,_0xbd29b9);}constructor(){super(),this['addTemplateProcessor'](l10nProcessor),this['addTemplateProcessor'](testModeProcessor);}['emit'](_0x24de8b,_0x20bf40,_0x2d8c6e){const _0x1f74a8=this['has']('*eventEmitter')?this['$']['*eventEmitter']:void 0x0;_0x1f74a8&&(_0x1f74a8['emit'](_0x24de8b,_0x20bf40,_0x2d8c6e),this['telemetryManager']['sendEvent']({'eventType':_0x24de8b,'payload':'function'==typeof _0x20bf40?_0x20bf40():_0x20bf40}));}['hasBlockInCtx'](_0x503430){for(const _0x1e1aa6 of this['blocksRegistry'])if(_0x503430(_0x1e1aa6))return!0x0;return!0x1;}['setOrAddState'](_0x140b96,_0x3ffc4f){this['add$']({[_0x140b96]:_0x3ffc4f},!0x0);}['connectedCallback'](){this['constructor']['styleAttrs']['forEach'](_0x1a433c=>{this['setAttribute'](_0x1a433c,'');}),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'),_0x4da201=>{const _0x4ef8d4=getLocaleDirection(_0x4da201);this['style']['direction']='ltr'===_0x4ef8d4?'':_0x4ef8d4;}),this['subConfigValue']('testMode',_0x4567c7=>{_0x4567c7&&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 _0x353550=this['blocksRegistry'];_0x353550?.['delete'](this),this['localeManager']?.['destroyL10nBindings'](this),this['l10nProcessorSubs']=new Map(),Data['deleteCtx'](this),0x0===_0x353550?.['size']&&setTimeout(()=>{this['destroyCtxCallback']();},0x0);}['destroyCtxCallback'](){Data['deleteCtx'](this['ctxName']),this['localeManager']?.['destroy'](),this['modalManager']?.['destroy']();}async['proxyUrl'](_0x48f863){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'](_0x48f863,{'uuid':extractUuid(_0x48f863),'cdnUrlModifiers':extractCdnUrlModifiers(_0x48f863),'fileName':extractFilename(_0x48f863)});}catch(_0x2b43b8){return console['error']('Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.',_0x2b43b8),this['telemetryManager']['sendEventError'](_0x2b43b8,'secureDeliveryProxyUrlResolver.\x20Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.'),_0x48f863;}return this['cfg']['secureDeliveryProxy']?applyTemplateData(this['cfg']['secureDeliveryProxy'],{'previewUrl':_0x48f863},{'transform':_0x594c21=>window['encodeURIComponent'](_0x594c21)}):_0x48f863;}get['cfg'](){if(!this['__cfgProxy']){const _0x53c0e6=Object['create'](null);this['__cfgProxy']=new Proxy(_0x53c0e6,{'set':(_0xa2e293,_0x400c19,_0x148f9f)=>{if('string'!=typeof _0x400c19)return!0x1;const _0x262339=sharedConfigKey(_0x400c19);return this['has'](_0x262339)||this['add'](_0x262339,initialConfig[_0x400c19]),this['$'][_0x262339]=_0x148f9f,!0x0;},'get':(_0x4f804a,_0xc6d509)=>{const _0x1e73b5=sharedConfigKey(_0xc6d509);return this['has'](_0x1e73b5)||this['add'](_0x1e73b5,initialConfig[_0xc6d509]),this['$'][sharedConfigKey(_0xc6d509)];}});}return this['__cfgProxy'];}['subConfigValue'](_0x59c610,_0x450324){const _0x58dd0f=sharedConfigKey(_0x59c610);this['has'](_0x58dd0f)||this['add'](_0x58dd0f,initialConfig[_0x59c610]),this['sub'](_0x58dd0f,_0x450324);}['debugPrint'](..._0x56050e){if(!this['cfg']['debug'])return;let _0x30b182=_0x56050e;'function'==typeof _0x56050e?.[0x0]&&(_0x30b182=(0x0,_0x56050e[0x0])()),console['log']('['+this['ctxName']+']',..._0x30b182);}static['reg'](_0x7f72e5){_0x7f72e5?_0x7f72e5['startsWith'](TAG_PREFIX)&&super['reg'](_0x7f72e5):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 _0x2bc327=e['_activityCallbacks']['get'](this);this[ACTIVE_PROP]=!0x1,this['removeAttribute'](ACTIVE_ATTR),_0x2bc327?.['deactivateCallback']?.();}['_activate'](){const _0x41120c=e['_activityCallbacks']['get'](this);this['$']['*historyBack']=this['historyBack']['bind'](this),this[ACTIVE_PROP]=!0x0,this['setAttribute'](ACTIVE_ATTR,''),_0x41120c?.['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',_0x497179=>{try{this['activityType']!==_0x497179&&this[ACTIVE_PROP]?this['_deactivate']():this['activityType']!==_0x497179||this[ACTIVE_PROP]||this['_activate']();}catch(_0x264fe5){this['telemetryManager']['sendEventError'](_0x264fe5,'activity\x20\x22'+this['activityType']+'\x22'),console['error']('Error\x20in\x20activity\x20\x22'+this['activityType']+'\x22.\x20',_0x264fe5),this['$']['*currentActivity']=this['$']['*history'][this['$']['*history']['length']-0x1]??null;}_0x497179||(this['$']['*history']=[]);}));}['_historyFlush'](){let _0x2c9ee0=this['$']['*history'];_0x2c9ee0&&(_0x2c9ee0['length']>0xa&&(_0x2c9ee0=_0x2c9ee0['slice'](_0x2c9ee0['length']-0xb,_0x2c9ee0['length']-0x1)),this['historyTracked']&&_0x2c9ee0[_0x2c9ee0['length']-0x1]!==this['activityType']&&_0x2c9ee0['push'](this['activityType']),this['$']['*history']=_0x2c9ee0);}['_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'](_0x3e3f49,_0x2769cd={}){const {onActivate:_0x287dbc,onDeactivate:_0x489562}=_0x2769cd;e['_activityCallbacks']['set'](this,{'activateCallback':_0x287dbc,'deactivateCallback':_0x489562});}['unregisterActivity'](){this['isActivityActive']&&this['_deactivate'](),e['_activityCallbacks']['delete'](this);}['destroyCallback'](){super['destroyCallback'](),this['_isActivityRegistered']()&&this['unregisterActivity']();const _0x289e51=this['$']['*currentActivity'];!![...this['blocksRegistry']]['find'](_0x47e6b1=>_0x47e6b1 instanceof e&&_0x47e6b1['activityType']===_0x289e51)||(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 _0x102b76=this['$']['*history'];if(_0x102b76){let _0x566a65=_0x102b76['pop']();for(;_0x566a65===this['activityType'];)_0x566a65=_0x102b76['pop']();let _0x5c1c2d=!!_0x566a65;if(_0x566a65){const _0x28fe4f=[...this['blocksRegistry']]['find'](_0x579da5=>_0x579da5['activityType']===_0x566a65);_0x5c1c2d=_0x28fe4f?.['couldOpenActivity']??!0x1;}_0x566a65=_0x5c1c2d?_0x566a65:void 0x0,_0x566a65&&this['modalManager']?.['open'](_0x566a65),this['$']['*currentActivity']=_0x566a65,this['$']['*history']=_0x102b76,_0x566a65||this['modalManager']?.['closeAll']();}}};function defineComponents(_0x560a5a){for(const _0x251381 in _0x560a5a){let _0x446cfe=[..._0x251381]['reduce']((_0x2569d9,_0x23729f)=>(_0x23729f['toUpperCase']()===_0x23729f&&(_0x23729f='-'+_0x23729f['toLowerCase']()),_0x2569d9+=_0x23729f),'');_0x446cfe['startsWith']('-')&&(_0x446cfe=_0x446cfe['replace']('-','')),_0x446cfe['startsWith']('uc-')||(_0x446cfe='uc-'+_0x446cfe),_0x560a5a[_0x251381]['reg']&&_0x560a5a[_0x251381]['reg'](_0x446cfe);}}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(_0x368fca,_0x14a3a9=!0x1){return new Promise((_0x427313,_0x4304bd)=>{if('object'!=typeof document)return void _0x427313(null);if('object'==typeof window&&window[UC_WINDOW_KEY])return void _0x427313(window[UC_WINDOW_KEY]);const _0x4db91f=document['createElement']('script');_0x4db91f['async']=!0x0,_0x4db91f['src']=_0x368fca,_0x4db91f['onerror']=()=>{_0x4304bd();},_0x4db91f['onload']=()=>{const _0x46ac39=window[UC_WINDOW_KEY];_0x14a3a9&&defineComponents(_0x46ac39),_0x427313(_0x46ac39);},document['head']['appendChild'](_0x4db91f);});}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'](_0x56fd01){this['_template']=svg_sprite_default+_0x56fd01+'<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(_0x4e09fe,_0x2e5120){for(const [_0x2e3db6,_0x17ea8d]of Object['entries'](_0x2e5120))_0x4e09fe['setAttributeNS'](null,_0x2e3db6,_0x17ea8d['toString']());}function createSvgNode(_0x2f5fa5,_0x831757={}){const _0x314577=document['createElementNS']('http://www.w3.org/2000/svg',_0x2f5fa5);return setSvgNodeAttrs(_0x314577,_0x831757),_0x314577;}function cornerPath(_0xb14845,_0x4a0816,_0x22b259){const {x:_0x477d24,y:_0x385de1,width:_0x534be5,height:_0x203d1e}=_0xb14845,_0x1b72d1=_0x4a0816['includes']('w')?0x0:0x1,_0x5c5019=_0x4a0816['includes']('n')?0x0:0x1,_0x4fe579=0x0===_0x1b72d1?-0x1:0x1,_0x400547=0x0===_0x5c5019?-0x1:0x1,_0x41ebc9=[_0x477d24+_0x1b72d1*_0x534be5+THUMB_OFFSET*_0x4fe579,_0x385de1+_0x5c5019*_0x203d1e+THUMB_OFFSET*_0x400547-THUMB_CORNER_SIZE*_0x22b259*_0x400547],_0x23b0e8=[_0x477d24+_0x1b72d1*_0x534be5+THUMB_OFFSET*_0x4fe579,_0x385de1+_0x5c5019*_0x203d1e+THUMB_OFFSET*_0x400547],_0x99f12a=[_0x477d24+_0x1b72d1*_0x534be5-THUMB_CORNER_SIZE*_0x22b259*_0x4fe579+THUMB_OFFSET*_0x4fe579,_0x385de1+_0x5c5019*_0x203d1e+THUMB_OFFSET*_0x400547];return{'d':'M\x20'+_0x41ebc9[0x0]+'\x20'+_0x41ebc9[0x1]+'\x20L\x20'+_0x23b0e8[0x0]+'\x20'+_0x23b0e8[0x1]+'\x20L\x20'+_0x99f12a[0x0]+'\x20'+_0x99f12a[0x1],'center':[_0x23b0e8[0x0],_0x23b0e8[0x1]]};}function sidePath(_0x53d7d0,_0x29b347,_0x365f88){const {x:_0x470f14,y:_0x2f3f7d,width:_0x359007,height:_0x183202}=_0x53d7d0,_0x41ec29='n'===_0x29b347||'s'===_0x29b347,_0xade496=_0x41ec29?0.5:'w'===_0x29b347?0x0:0x1,_0x584f37='w'===_0x29b347||'e'===_0x29b347?0.5:'n'===_0x29b347?0x0:0x1,_0x4aff2c='w'===_0x29b347?-0x1:'e'===_0x29b347?0x1:0x0,_0x180221='n'===_0x29b347?-0x1:'s'===_0x29b347?0x1:0x0;let _0x428ea0,_0x4a9929;return _0x41ec29?(_0x428ea0=[_0x470f14+_0xade496*_0x359007-THUMB_SIDE_SIZE*_0x365f88/0x2,_0x2f3f7d+_0x584f37*_0x183202+THUMB_OFFSET*_0x180221],_0x4a9929=[_0x470f14+_0xade496*_0x359007+THUMB_SIDE_SIZE*_0x365f88/0x2,_0x2f3f7d+_0x584f37*_0x183202+THUMB_OFFSET*_0x180221]):(_0x428ea0=[_0x470f14+_0xade496*_0x359007+THUMB_OFFSET*_0x4aff2c,_0x2f3f7d+_0x584f37*_0x183202-THUMB_SIDE_SIZE*_0x365f88/0x2],_0x4a9929=[_0x470f14+_0xade496*_0x359007+THUMB_OFFSET*_0x4aff2c,_0x2f3f7d+_0x584f37*_0x183202+THUMB_SIDE_SIZE*_0x365f88/0x2]),{'d':'M\x20'+_0x428ea0[0x0]+'\x20'+_0x428ea0[0x1]+'\x20L\x20'+_0x4a9929[0x0]+'\x20'+_0x4a9929[0x1],'center':[(_0x428ea0[0x0]+_0x4a9929[0x0])/0x2,(_0x428ea0[0x1]+_0x4a9929[0x1])/0x2]};}function thumbCursor(_0x3c0b51){return''===_0x3c0b51?'move':['e','w']['includes'](_0x3c0b51)?'ew-resize':['n','s']['includes'](_0x3c0b51)?'ns-resize':['nw','se']['includes'](_0x3c0b51)?'nwse-resize':'nesw-resize';}function moveRect({rect:_0xec9d44,delta:[_0x32c0cd,_0x11e009],imageBox:_0xdf79df}){return constraintRect({..._0xec9d44,'x':_0xec9d44['x']+_0x32c0cd,'y':_0xec9d44['y']+_0x11e009},_0xdf79df);}function constraintRect(_0x4143fb,_0x73c4db){let {x:_0x17bc75}=_0x4143fb,{y:_0x761dd6}=_0x4143fb;return _0x4143fb['x']<_0x73c4db['x']?_0x17bc75=_0x73c4db['x']:_0x4143fb['x']+_0x4143fb['width']>_0x73c4db['x']+_0x73c4db['width']&&(_0x17bc75=_0x73c4db['x']+_0x73c4db['width']-_0x4143fb['width']),_0x4143fb['y']<_0x73c4db['y']?_0x761dd6=_0x73c4db['y']:_0x4143fb['y']+_0x4143fb['height']>_0x73c4db['y']+_0x73c4db['height']&&(_0x761dd6=_0x73c4db['y']+_0x73c4db['height']-_0x4143fb['height']),{..._0x4143fb,'x':_0x17bc75,'y':_0x761dd6};}function resizeNorth({rect:_0x45f4f5,delta:_0x5ad6bb,aspectRatio:_0x9c2cd6,imageBox:_0x12811f}){const [,_0x12fcbf]=_0x5ad6bb;let {y:_0x880dc5,width:_0x15a615,height:_0x559c48}=_0x45f4f5;_0x880dc5+=_0x12fcbf,_0x559c48-=_0x12fcbf,_0x9c2cd6&&(_0x15a615=_0x559c48*_0x9c2cd6);let _0x528cfb=_0x45f4f5['x']+_0x45f4f5['width']/0x2-_0x15a615/0x2;return _0x880dc5<=_0x12811f['y']&&(_0x880dc5=_0x12811f['y'],_0x559c48=_0x45f4f5['y']+_0x45f4f5['height']-_0x880dc5,_0x9c2cd6&&(_0x15a615=_0x559c48*_0x9c2cd6,_0x528cfb=_0x45f4f5['x']+_0x45f4f5['width']/0x2-_0x15a615/0x2)),_0x528cfb<=_0x12811f['x']&&(_0x528cfb=_0x12811f['x'],_0x880dc5=_0x45f4f5['y']+_0x45f4f5['height']-_0x559c48),_0x528cfb+_0x15a615>=_0x12811f['x']+_0x12811f['width']&&(_0x528cfb=Math['max'](_0x12811f['x'],_0x12811f['x']+_0x12811f['width']-_0x15a615),_0x15a615=_0x12811f['x']+_0x12811f['width']-_0x528cfb,_0x9c2cd6&&(_0x559c48=_0x15a615/_0x9c2cd6),_0x880dc5=_0x45f4f5['y']+_0x45f4f5['height']-_0x559c48),_0x559c48<MIN_CROP_SIZE&&(_0x559c48=MIN_CROP_SIZE,_0x9c2cd6&&(_0x15a615=_0x559c48*_0x9c2cd6,_0x528cfb=_0x45f4f5['x']+_0x45f4f5['width']/0x2-_0x15a615/0x2),_0x880dc5=_0x45f4f5['y']+_0x45f4f5['height']-_0x559c48),_0x15a615<MIN_CROP_SIZE&&(_0x15a615=MIN_CROP_SIZE,_0x9c2cd6&&(_0x559c48=_0x15a615/_0x9c2cd6,_0x528cfb=_0x45f4f5['x']+_0x45f4f5['width']/0x2-_0x15a615/0x2),_0x880dc5=_0x45f4f5['y']+_0x45f4f5['height']-_0x559c48),{'x':_0x528cfb,'y':_0x880dc5,'width':_0x15a615,'height':_0x559c48};}function resizeWest({rect:_0x53c8ce,delta:_0x9597fa,aspectRatio:_0xa0b679,imageBox:_0x26a975}){const [_0x18fbf0]=_0x9597fa;let {x:_0x274263,width:_0x8dd77c,height:_0x49e2b8}=_0x53c8ce;_0x274263+=_0x18fbf0,_0x8dd77c-=_0x18fbf0,_0xa0b679&&(_0x49e2b8=_0x8dd77c/_0xa0b679);let _0x1280f4=_0x53c8ce['y']+_0x53c8ce['height']/0x2-_0x49e2b8/0x2;return _0x274263<=_0x26a975['x']&&(_0x274263=_0x26a975['x'],_0x8dd77c=_0x53c8ce['x']+_0x53c8ce['width']-_0x274263,_0xa0b679&&(_0x49e2b8=_0x8dd77c/_0xa0b679,_0x1280f4=_0x53c8ce['y']+_0x53c8ce['height']/0x2-_0x49e2b8/0x2)),_0x1280f4<=_0x26a975['y']&&(_0x1280f4=_0x26a975['y'],_0x274263=_0x53c8ce['x']+_0x53c8ce['width']-_0x8dd77c),_0x1280f4+_0x49e2b8>=_0x26a975['y']+_0x26a975['height']&&(_0x1280f4=Math['max'](_0x26a975['y'],_0x26a975['y']+_0x26a975['height']-_0x49e2b8),_0x49e2b8=_0x26a975['y']+_0x26a975['height']-_0x1280f4,_0xa0b679&&(_0x8dd77c=_0x49e2b8*_0xa0b679),_0x274263=_0x53c8ce['x']+_0x53c8ce['width']-_0x8dd77c),_0x49e2b8<MIN_CROP_SIZE&&(_0x49e2b8=MIN_CROP_SIZE,_0xa0b679&&(_0x8dd77c=_0x49e2b8*_0xa0b679),_0x1280f4=_0x53c8ce['y']+_0x53c8ce['height']/0x2-_0x49e2b8/0x2,_0x274263=_0x53c8ce['x']+_0x53c8ce['width']-_0x8dd77c),_0x8dd77c<MIN_CROP_SIZE&&(_0x8dd77c=MIN_CROP_SIZE,_0xa0b679&&(_0x49e2b8=_0x8dd77c/_0xa0b679),_0x1280f4=_0x53c8ce['y']+_0x53c8ce['height']/0x2-_0x49e2b8/0x2,_0x274263=_0x53c8ce['x']+_0x53c8ce['width']-_0x8dd77c),{'x':_0x274263,'y':_0x1280f4,'width':_0x8dd77c,'height':_0x49e2b8};}function resizeSouth({rect:_0x3991c8,delta:_0x42b579,aspectRatio:_0x50ea24,imageBox:_0x55fe65}){const [,_0x1191cd]=_0x42b579;let {y:_0x3b847c,width:_0x5b5387,height:_0x4fbdba}=_0x3991c8;_0x4fbdba+=_0x1191cd,_0x50ea24&&(_0x5b5387=_0x4fbdba*_0x50ea24);let _0x11b20d=_0x3991c8['x']+_0x3991c8['width']/0x2-_0x5b5387/0x2;return _0x3b847c+_0x4fbdba>=_0x55fe65['y']+_0x55fe65['height']&&(_0x4fbdba=_0x55fe65['y']+_0x55fe65['height']-_0x3b847c,_0x50ea24&&(_0x5b5387=_0x4fbdba*_0x50ea24),_0x11b20d=_0x3991c8['x']+_0x3991c8['width']/0x2-_0x5b5387/0x2),_0x11b20d<=_0x55fe65['x']&&(_0x11b20d=_0x55fe65['x'],_0x3b847c=_0x3991c8['y']),_0x11b20d+_0x5b5387>=_0x55fe65['x']+_0x55fe65['width']&&(_0x11b20d=Math['max'](_0x55fe65['x'],_0x55fe65['x']+_0x55fe65['width']-_0x5b5387),_0x5b5387=_0x55fe65['x']+_0x55fe65['width']-_0x11b20d,_0x50ea24&&(_0x4fbdba=_0x5b5387/_0x50ea24),_0x3b847c=_0x3991c8['y']),_0x4fbdba<MIN_CROP_SIZE&&(_0x4fbdba=MIN_CROP_SIZE,_0x50ea24&&(_0x5b5387=_0x4fbdba*_0x50ea24),_0x11b20d=_0x3991c8['x']+_0x3991c8['width']/0x2-_0x5b5387/0x2),_0x5b5387<MIN_CROP_SIZE&&(_0x5b5387=MIN_CROP_SIZE,_0x50ea24&&(_0x4fbdba=_0x5b5387/_0x50ea24),_0x11b20d=_0x3991c8['x']+_0x3991c8['width']/0x2-_0x5b5387/0x2),{'x':_0x11b20d,'y':_0x3b847c,'width':_0x5b5387,'height':_0x4fbdba};}function resizeEast({rect:_0x37ffac,delta:_0x52313e,aspectRatio:_0x5b4321,imageBox:_0x3091bc}){const [_0x19b9e9]=_0x52313e;let {x:_0x417325,width:_0xa4abc9,height:_0x293427}=_0x37ffac;_0xa4abc9+=_0x19b9e9,_0x5b4321&&(_0x293427=_0xa4abc9/_0x5b4321);let _0x9d260f=_0x37ffac['y']+_0x37ffac['height']/0x2-_0x293427/0x2;return _0x417325+_0xa4abc9>=_0x3091bc['x']+_0x3091bc['width']&&(_0xa4abc9=_0x3091bc['x']+_0x3091bc['width']-_0x417325,_0x5b4321&&(_0x293427=_0xa4abc9/_0x5b4321),_0x9d260f=_0x37ffac['y']+_0x37ffac['height']/0x2-_0x293427/0x2),_0x9d260f<=_0x3091bc['y']&&(_0x9d260f=_0x3091bc['y'],_0x417325=_0x37ffac['x']),_0x9d260f+_0x293427>=_0x3091bc['y']+_0x3091bc['height']&&(_0x9d260f=Math['max'](_0x3091bc['y'],_0x3091bc['y']+_0x3091bc['height']-_0x293427),_0x293427=_0x3091bc['y']+_0x3091bc['height']-_0x9d260f,_0x5b4321&&(_0xa4abc9=_0x293427*_0x5b4321),_0x417325=_0x37ffac['x']),_0x293427<MIN_CROP_SIZE&&(_0x293427=MIN_CROP_SIZE,_0x5b4321&&(_0xa4abc9=_0x293427*_0x5b4321),_0x9d260f=_0x37ffac['y']+_0x37ffac['height']/0x2-_0x293427/0x2),_0xa4abc9<MIN_CROP_SIZE&&(_0xa4abc9=MIN_CROP_SIZE,_0x5b4321&&(_0x293427=_0xa4abc9/_0x5b4321),_0x9d260f=_0x37ffac['y']+_0x37ffac['height']/0x2-_0x293427/0x2),{'x':_0x417325,'y':_0x9d260f,'width':_0xa4abc9,'height':_0x293427};}function resizeNorthWest({rect:_0x439aa9,delta:_0x59b10c,aspectRatio:_0x2281b3,imageBox:_0x1cb35e}){let [_0x589546,_0x3849e7]=_0x59b10c,{x:_0x411eaa,y:_0x3e0a88,width:_0x3eacab,height:_0x1d1ab9}=_0x439aa9;return _0x411eaa+_0x589546<_0x1cb35e['x']&&(_0x589546=_0x1cb35e['x']-_0x411eaa),_0x3e0a88+_0x3849e7<_0x1cb35e['y']&&(_0x3849e7=_0x1cb35e['y']-_0x3e0a88),_0x411eaa+=_0x589546,_0x3eacab-=_0x589546,_0x3e0a88+=_0x3849e7,_0x1d1ab9-=_0x3849e7,_0x2281b3&&Math['abs'](_0x3eacab/_0x1d1ab9)>_0x2281b3?(_0x3849e7=_0x3eacab/_0x2281b3-_0x1d1ab9,_0x1d1ab9+=_0x3849e7,_0x3e0a88-=_0x3849e7,_0x3e0a88<=_0x1cb35e['y']&&(_0x1d1ab9-=_0x1cb35e['y']-_0x3e0a88,_0x3eacab=_0x1d1ab9*_0x2281b3,_0x411eaa=_0x439aa9['x']+_0x439aa9['width']-_0x3eacab,_0x3e0a88=_0x1cb35e['y'])):_0x2281b3&&(_0x589546=_0x1d1ab9*_0x2281b3-_0x3eacab,_0x3eacab+=_0x589546,_0x411eaa-=_0x589546,_0x411eaa<=_0x1cb35e['x']&&(_0x3eacab-=_0x1cb35e['x']-_0x411eaa,_0x1d1ab9=_0x3eacab/_0x2281b3,_0x411eaa=_0x1cb35e['x'],_0x3e0a88=_0x439aa9['y']+_0x439aa9['height']-_0x1d1ab9)),_0x1d1ab9<MIN_CROP_SIZE&&(_0x1d1ab9=MIN_CROP_SIZE,_0x2281b3&&(_0x3eacab=_0x1d1ab9*_0x2281b3),_0x411eaa=_0x439aa9['x']+_0x439aa9['width']-_0x3eacab,_0x3e0a88=_0x439aa9['y']+_0x439aa9['height']-_0x1d1ab9),_0x3eacab<MIN_CROP_SIZE&&(_0x3eacab=MIN_CROP_SIZE,_0x2281b3&&(_0x1d1ab9=_0x3eacab/_0x2281b3),_0x411eaa=_0x439aa9['x']+_0x439aa9['width']-_0x3eacab,_0x3e0a88=_0x439aa9['y']+_0x439aa9['height']-_0x1d1ab9),{'x':_0x411eaa,'y':_0x3e0a88,'width':_0x3eacab,'height':_0x1d1ab9};}function resizeNorthEast({rect:_0x176415,delta:_0x200ca2,aspectRatio:_0x4d3671,imageBox:_0x213690}){let [_0x492e9a,_0x5d8c07]=_0x200ca2,{x:_0x54d54c,y:_0x52cabd,width:_0x4b7ec1,height:_0x5bf4d3}=_0x176415;return _0x54d54c+_0x4b7ec1+_0x492e9a>_0x213690['x']+_0x213690['width']&&(_0x492e9a=_0x213690['x']+_0x213690['width']-_0x54d54c-_0x4b7ec1),_0x52cabd+_0x5d8c07<_0x213690['y']&&(_0x5d8c07=_0x213690['y']-_0x52cabd),_0x4b7ec1+=_0x492e9a,_0x52cabd+=_0x5d8c07,_0x5bf4d3-=_0x5d8c07,_0x4d3671&&Math['abs'](_0x4b7ec1/_0x5bf4d3)>_0x4d3671?(_0x5d8c07=_0x4b7ec1/_0x4d3671-_0x5bf4d3,_0x5bf4d3+=_0x5d8c07,_0x52cabd-=_0x5d8c07,_0x52cabd<=_0x213690['y']&&(_0x5bf4d3-=_0x213690['y']-_0x52cabd,_0x4b7ec1=_0x5bf4d3*_0x4d3671,_0x54d54c=_0x176415['x'],_0x52cabd=_0x213690['y'])):_0x4d3671&&(_0x492e9a=_0x5bf4d3*_0x4d3671-_0x4b7ec1,_0x4b7ec1+=_0x492e9a,_0x54d54c+_0x4b7ec1>=_0x213690['x']+_0x213690['width']&&(_0x4b7ec1=_0x213690['x']+_0x213690['width']-_0x54d54c,_0x5bf4d3=_0x4b7ec1/_0x4d3671,_0x54d54c=_0x213690['x']+_0x213690['width']-_0x4b7ec1,_0x52cabd=_0x176415['y']+_0x176415['height']-_0x5bf4d3)),_0x5bf4d3<MIN_CROP_SIZE&&(_0x5bf4d3=MIN_CROP_SIZE,_0x4d3671&&(_0x4b7ec1=_0x5bf4d3*_0x4d3671),_0x52cabd=_0x176415['y']+_0x176415['height']-_0x5bf4d3),_0x4b7ec1<MIN_CROP_SIZE&&(_0x4b7ec1=MIN_CROP_SIZE,_0x4d3671&&(_0x5bf4d3=_0x4b7ec1/_0x4d3671),_0x52cabd=_0x176415['y']+_0x176415['height']-_0x5bf4d3),{'x':_0x54d54c,'y':_0x52cabd,'width':_0x4b7ec1,'height':_0x5bf4d3};}function resizeSouthWest({rect:_0x20d868,delta:_0x4afca2,aspectRatio:_0x126974,imageBox:_0x3e394b}){let [_0x2c66c8,_0x23c3ae]=_0x4afca2,{x:_0x312f83,y:_0x203125,width:_0xa0b417,height:_0x3366e9}=_0x20d868;return _0x312f83+_0x2c66c8<_0x3e394b['x']&&(_0x2c66c8=_0x3e394b['x']-_0x312f83),_0x203125+_0x3366e9+_0x23c3ae>_0x3e394b['y']+_0x3e394b['height']&&(_0x23c3ae=_0x3e394b['y']+_0x3e394b['height']-_0x203125-_0x3366e9),_0x312f83+=_0x2c66c8,_0xa0b417-=_0x2c66c8,_0x3366e9+=_0x23c3ae,_0x126974&&Math['abs'](_0xa0b417/_0x3366e9)>_0x126974?(_0x23c3ae=_0xa0b417/_0x126974-_0x3366e9,_0x3366e9+=_0x23c3ae,_0x203125+_0x3366e9>=_0x3e394b['y']+_0x3e394b['height']&&(_0x3366e9=_0x3e394b['y']+_0x3e394b['height']-_0x203125,_0xa0b417=_0x3366e9*_0x126974,_0x312f83=_0x20d868['x']+_0x20d868['width']-_0xa0b417,_0x203125=_0x3e394b['y']+_0x3e394b['height']-_0x3366e9)):_0x126974&&(_0x2c66c8=_0x3366e9*_0x126974-_0xa0b417,_0xa0b417+=_0x2c66c8,_0x312f83-=_0x2c66c8,_0x312f83<=_0x3e394b['x']&&(_0xa0b417-=_0x3e394b['x']-_0x312f83,_0x3366e9=_0xa0b417/_0x126974,_0x312f83=_0x3e394b['x'],_0x203125=_0x20d868['y'])),_0x3366e9<MIN_CROP_SIZE&&(_0x3366e9=MIN_CROP_SIZE,_0x126974&&(_0xa0b417=_0x3366e9*_0x126974),_0x312f83=_0x20d868['x']+_0x20d868['width']-_0xa0b417),_0xa0b417<MIN_CROP_SIZE&&(_0xa0b417=MIN_CROP_SIZE,_0x126974&&(_0x3366e9=_0xa0b417/_0x126974),_0x312f83=_0x20d868['x']+_0x20d868['width']-_0xa0b417),{'x':_0x312f83,'y':_0x203125,'width':_0xa0b417,'height':_0x3366e9};}function resizeSouthEast({rect:_0x44f08c,delta:_0x164d20,aspectRatio:_0x53253e,imageBox:_0x3d9a5d}){let [_0xaeb72,_0x300a89]=_0x164d20,{x:_0x5bda78,y:_0x127423,width:_0x10b1f7,height:_0x117868}=_0x44f08c;return _0x5bda78+_0x10b1f7+_0xaeb72>_0x3d9a5d['x']+_0x3d9a5d['width']&&(_0xaeb72=_0x3d9a5d['x']+_0x3d9a5d['width']-_0x5bda78-_0x10b1f7),_0x127423+_0x117868+_0x300a89>_0x3d9a5d['y']+_0x3d9a5d['height']&&(_0x300a89=_0x3d9a5d['y']+_0x3d9a5d['height']-_0x127423-_0x117868),_0x10b1f7+=_0xaeb72,_0x117868+=_0x300a89,_0x53253e&&Math['abs'](_0x10b1f7/_0x117868)>_0x53253e?(_0x300a89=_0x10b1f7/_0x53253e-_0x117868,_0x117868+=_0x300a89,_0x127423+_0x117868>=_0x3d9a5d['y']+_0x3d9a5d['height']&&(_0x117868=_0x3d9a5d['y']+_0x3d9a5d['height']-_0x127423,_0x10b1f7=_0x117868*_0x53253e,_0x5bda78=_0x44f08c['x'],_0x127423=_0x3d9a5d['y']+_0x3d9a5d['height']-_0x117868)):_0x53253e&&(_0xaeb72=_0x117868*_0x53253e-_0x10b1f7,_0x10b1f7+=_0xaeb72,_0x5bda78+_0x10b1f7>=_0x3d9a5d['x']+_0x3d9a5d['width']&&(_0x10b1f7=_0x3d9a5d['x']+_0x3d9a5d['width']-_0x5bda78,_0x117868=_0x10b1f7/_0x53253e,_0x5bda78=_0x3d9a5d['x']+_0x3d9a5d['width']-_0x10b1f7,_0x127423=_0x44f08c['y'])),_0x117868<MIN_CROP_SIZE&&(_0x117868=MIN_CROP_SIZE,_0x53253e&&(_0x10b1f7=_0x117868*_0x53253e)),_0x10b1f7<MIN_CROP_SIZE&&(_0x10b1f7=MIN_CROP_SIZE,_0x53253e&&(_0x117868=_0x10b1f7/_0x53253e)),{'x':_0x5bda78,'y':_0x127423,'width':_0x10b1f7,'height':_0x117868};}function resizeRect({direction:_0x343a79,..._0x4677cd}){switch(_0x343a79){case'n':return resizeNorth(_0x4677cd);case'w':return resizeWest(_0x4677cd);case's':return resizeSouth(_0x4677cd);case'e':return resizeEast(_0x4677cd);case'nw':return resizeNorthWest(_0x4677cd);case'ne':return resizeNorthEast(_0x4677cd);case'sw':return resizeSouthWest(_0x4677cd);case'se':return resizeSouthEast(_0x4677cd);default:return _0x4677cd['rect'];}}function rectContainsPoint(_0xa3ba8f,[_0x5b758b,_0x59a8f3]){return _0xa3ba8f['x']<=_0x5b758b&&_0x5b758b<=_0xa3ba8f['x']+_0xa3ba8f['width']&&_0xa3ba8f['y']<=_0x59a8f3&&_0x59a8f3<=_0xa3ba8f['y']+_0xa3ba8f['height'];}function isRectInsideRect(_0x503911,_0x3ce111){return _0x503911['x']>=_0x3ce111['x']&&_0x503911['y']>=_0x3ce111['y']&&_0x503911['x']+_0x503911['width']<=_0x3ce111['x']+_0x3ce111['width']&&_0x503911['y']+_0x503911['height']<=_0x3ce111['y']+_0x3ce111['height'];}function isRectMatchesAspectRatio(_0x1f0ae1,_0x1365d3){return Math['abs'](_0x1f0ae1['width']/_0x1f0ae1['height']-_0x1365d3)<0.1;}function rotateSize({width:_0xc4fe45,height:_0x4d4921},_0x2b2966){const _0x321647=_0x2b2966/0x5a%0x2!=0x0;return{'width':_0x321647?_0x4d4921:_0xc4fe45,'height':_0x321647?_0xc4fe45:_0x4d4921};}function calculateMaxCenteredCropFrame(_0x50128a,_0x26a5bc,_0x34484e){let _0x568752,_0x157654;_0x50128a/_0x26a5bc>_0x34484e?(_0x568752=Math['round'](_0x26a5bc*_0x34484e),_0x157654=_0x26a5bc):(_0x568752=_0x50128a,_0x157654=Math['round'](_0x50128a/_0x34484e));const _0x540ca8=Math['round']((_0x50128a-_0x568752)/0x2),_0x4f6339=Math['round']((_0x26a5bc-_0x157654)/0x2);return _0x540ca8+_0x568752>_0x50128a&&(_0x568752=_0x50128a-_0x540ca8),_0x4f6339+_0x157654>_0x26a5bc&&(_0x157654=_0x26a5bc-_0x4f6339),{'x':_0x540ca8,'y':_0x4f6339,'width':_0x568752,'height':_0x157654};}function roundRect(_0x19862f){return{'x':Math['round'](_0x19862f['x']),'y':Math['round'](_0x19862f['y']),'width':Math['round'](_0x19862f['width']),'height':Math['round'](_0x19862f['height'])};}function clamp(_0xbd5b53,_0x1e548c,_0x3c498e){return Math['min'](Math['max'](_0xbd5b53,_0x1e548c),_0x3c498e);}var EXCLUDED_TYPES=['free'],parseCropPreset=_0x57d7fa=>{const _0xc19301=stringToArray(_0x57d7fa);if(!_0xc19301||0x0===_0xc19301['length'])return[];const _0x491d77=[];for(const _0x2d956f of _0xc19301){const _0xf236a4=_0x2d956f['trim']();if(!_0xf236a4)continue;const _0x4dba45=_0xf236a4['indexOf'](':');if(-0x1===_0x4dba45&&!EXCLUDED_TYPES['includes'](_0xf236a4)){console['warn']('Invalid\x20crop\x20preset:\x20'+_0xf236a4);continue;}const _0x5cb637=Number(_0xf236a4['slice'](0x0,_0x4dba45)),_0x44656f=Number(_0xf236a4['slice'](_0x4dba45+0x1));!(!Number['isFinite'](_0x5cb637)||!Number['isFinite'](_0x44656f)||_0x5cb637<=0x0||_0x44656f<=0x0)||EXCLUDED_TYPES['includes'](_0xf236a4)?_0x491d77['push']({'id':UID['generate'](),'type':'aspect-ratio','width':EXCLUDED_TYPES['includes'](_0xf236a4)?0x0:_0x5cb637,'height':EXCLUDED_TYPES['includes'](_0xf236a4)?0x0:_0x44656f,'hasFreeform':EXCLUDED_TYPES['includes'](_0xf236a4)}):console['warn']('Invalid\x20crop\x20preset:\x20'+_0xf236a4);}return _0x491d77;},getClosestAspectRatio=(_0x4986ef,_0x5f50fd,_0x4fac36,_0x42af75=0.1)=>{const _0x1705ec=_0x4986ef/_0x5f50fd;let _0x110a88=null,_0x4aeab4=0x1/0x0;for(const _0x26c0f7 of _0x4fac36){const [_0x318527,_0x1a0657]=[_0x26c0f7['width'],_0x26c0f7['height']],_0x41dae5=_0x318527/_0x1a0657,_0x5aad01=Math['abs'](_0x1705ec-_0x41dae5);_0x5aad01<_0x4aeab4&&(_0x4aeab4=_0x5aad01,_0x110a88=_0x26c0f7);}if(_0x110a88){const [_0x36dc60,_0x2726bb]=[_0x110a88['width'],_0x110a88['height']],_0x3fc32a=_0x36dc60/_0x2726bb;if(Math['abs'](_0x1705ec-_0x3fc32a)/_0x3fc32a>_0x42af75)return null;}return _0x110a88;},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(_0x51cb22){return getUserAgent$1({..._0x51cb22,'libraryName':PACKAGE_NAME,'libraryVersion':PACKAGE_VERSION});}var msToUnixTimestamp=_0x39b3c2=>'number'!=typeof _0x39b3c2?0x0:Math['floor'](_0x39b3c2/0x3e8),isSecureTokenExpired=(_0x4a0102,{threshold:_0x3faf7b})=>{const {secureExpire:_0x4e9c95}=_0x4a0102,_0xcbebe2=msToUnixTimestamp(Date['now']()),_0x195559=Number(_0x4e9c95);return _0xcbebe2+msToUnixTimestamp(_0x3faf7b)>=_0x195559;},SecureUploadsManager=class{['_block'];['_secureToken']=null;constructor(_0x16e6cc){this['_block']=_0x16e6cc;}['_debugPrint'](..._0x4e9d02){this['_block']['debugPrint']('[secure-uploads]',..._0x4e9d02);}async['getSecureToken'](){const {secureSignature:_0x2d3dbb,secureExpire:_0x560dc3,secureUploadsSignatureResolver:_0x20c12f}=this['_block']['cfg'];if((_0x2d3dbb||_0x560dc3)&&_0x20c12f&&console['warn']('Both\x20secureSignature/secureExpire\x20and\x20secureUploadsSignatureResolver\x20are\x20set.\x20secureUploadsSignatureResolver\x20will\x20be\x20used.'),_0x20c12f){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 _0x286362=await _0x20c12f();_0x286362?_0x286362['secureSignature']&&_0x286362['secureExpire']?(this['_debugPrint']('Secure\x20signature\x20resolved:',_0x286362),this['_debugPrint']('Secure\x20signature\x20will\x20expire\x20in',new Date(0x3e8*Number(_0x286362['secureExpire']))['toISOString']()),this['_secureToken']=_0x286362):console['error']('Secure\x20signature\x20resolver\x20returned\x20an\x20invalid\x20result:',_0x286362):(this['_debugPrint']('Secure\x20signature\x20resolver\x20returned\x20nothing.'),this['_secureToken']=null);}catch(_0x17d5b9){console['error']('Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.',_0x17d5b9),this['_block']['telemetryManager']['sendEventError'](_0x17d5b9,'secureUploadsSignatureResolver.\x20Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.');}}return this['_secureToken'];}return _0x2d3dbb&&_0x560dc3?(this['_debugPrint']('Secure\x20signature\x20and\x20expire\x20are\x20set.\x20Using\x20them...',{'secureSignature':_0x2d3dbb,'secureExpire':_0x560dc3}),{'secureSignature':_0x2d3dbb,'secureExpire':_0x560dc3}):null;}},validateCollectionUploadError=(_0x25d491,_0x21d0d7)=>{if(_0x25d491['failedCount']>0x0)return{'type':'SOME_FILES_HAS_ERRORS','message':_0x21d0d7['l10n']('some-files-were-not-uploaded')};},validateMultiple=(_0x139b1d,_0x3cfcd6)=>{const _0x50155d=_0x139b1d['totalCount'],_0xe3dbde=_0x3cfcd6['cfg']['multiple']?_0x3cfcd6['cfg']['multipleMin']:0x0,_0x454c9b=_0x3cfcd6['cfg']['multiple']?_0x3cfcd6['cfg']['multipleMax']:0x1;if(_0xe3dbde&&_0x50155d<_0xe3dbde)return{'type':'TOO_FEW_FILES','message':_0x3cfcd6['l10n']('files-count-limit-error-too-few',{'min':_0xe3dbde,'max':_0x454c9b,'total':_0x50155d}),'payload':{'total':_0x50155d,'min':_0xe3dbde,'max':_0x454c9b}};if(_0x454c9b&&_0x50155d>_0x454c9b)return{'type':'TOO_MANY_FILES','message':_0x3cfcd6['l10n']('files-count-limit-error-too-many',{'min':_0xe3dbde,'max':_0x454c9b,'total':_0x50155d}),'payload':{'total':_0x50155d,'min':_0xe3dbde,'max':_0x454c9b}};},calcIsDesktopSafari=()=>{const _0x9c343=navigator['userAgent'];return/Macintosh|Windows/['test'](_0x9c343)&&/Version\/[\d.]+.*Safari/['test'](_0x9c343)&&!/Chrome|Chromium|Edg|OPR/['test'](_0x9c343);},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=_0x4a133b=>_0x4a133b?_0x4a133b['filter'](_0x28d057=>'string'==typeof _0x28d057)['flatMap'](_0x15d484=>stringToArray(_0x15d484)):[],matchMimeType=(_0x14948a,_0x57b5c6)=>_0x57b5c6['some'](_0x19ffe5=>{if(_0x19ffe5['endsWith']('*')){const _0x17a68b=_0x19ffe5['replace']('*','');return _0x14948a['startsWith'](_0x17a68b);}return _0x14948a===_0x19ffe5;}),matchExtension=(_0x14899a,_0x4c2e25)=>_0x4c2e25['some'](_0x5305fd=>!!_0x5305fd['startsWith']('.')&&_0x14899a['toLowerCase']()['endsWith'](_0x5305fd['toLowerCase']())),fileIsImage=_0x45c877=>{const _0xca1c63=_0x45c877?.['type'];return!!_0xca1c63&&matchMimeType(_0xca1c63,IMAGE_ACCEPT_LIST);},validateFileType=(_0x329716,_0x27ceb0)=>{const _0x37ee7e=_0x27ceb0['cfg']['imgOnly'],_0x4a61fd=_0x27ceb0['cfg']['accept'],_0x57a1f4=mergeFileTypes([..._0x37ee7e?IMAGE_ACCEPT_LIST:[],_0x4a61fd]);if(!_0x57a1f4['length'])return;const _0xb9da22=_0x329716['mimeType'],_0xe1d69c=_0x329716['name'];if(!_0xb9da22||!_0xe1d69c)return;const _0x3b127e=matchMimeType(_0xb9da22,_0x57a1f4),_0x5925d9=matchExtension(_0xe1d69c,_0x57a1f4);return _0x3b127e||_0x5925d9?void 0x0:{'type':'FORBIDDEN_FILE_TYPE','message':_0x27ceb0['l10n']('file-type-not-allowed'),'payload':{'entry':_0x329716}};},validateIsImage=(_0x74d391,_0x17612a)=>{const _0x504ca6=_0x17612a['cfg']['imgOnly'],_0x531d50=_0x74d391['isImage'];if(_0x504ca6&&!_0x531d50&&(_0x74d391['fileInfo']||!_0x74d391['externalUrl'])&&(_0x74d391['fileInfo']||_0x74d391['mimeType']))return{'type':'NOT_AN_IMAGE','message':_0x17612a['l10n']('images-only-accepted'),'payload':{'entry':_0x74d391}};},BASE=0x3e8,ByteUnitEnum=Object['freeze']({'AUTO':'auto','BYTE':'byte','KB':'kb','MB':'mb','GB':'gb','TB':'tb','PB':'pb'}),round=_0x48088a=>Math['ceil'](0x64*_0x48088a)/0x64,prettyBytes=(_0x9505a4,_0xc73a17=ByteUnitEnum['AUTO'])=>{const _0x3ac435=_0xc73a17===ByteUnitEnum['AUTO'];if(_0xc73a17===ByteUnitEnum['BYTE']||_0x3ac435&&_0x9505a4<BASE**0x1)return _0x9505a4+'\x20'+('one'===getPluralForm('en-US',_0x9505a4)?'byte':'bytes');return _0xc73a17===ByteUnitEnum['KB']||_0x3ac435&&_0x9505a4<BASE**0x2?round(_0x9505a4/BASE**0x1)+'\x20KB':_0xc73a17===ByteUnitEnum['MB']||_0x3ac435&&_0x9505a4<BASE**0x3?round(_0x9505a4/BASE**0x2)+'\x20MB':_0xc73a17===ByteUnitEnum['GB']||_0x3ac435&&_0x9505a4<BASE**0x4?round(_0x9505a4/BASE**0x3)+'\x20GB':_0xc73a17===ByteUnitEnum['TB']||_0x3ac435&&_0x9505a4<BASE**0x5?round(_0x9505a4/BASE**0x4)+'\x20TB':round(_0x9505a4/BASE**0x5)+'\x20PB';},validateMaxSizeLimit=(_0x190d7b,_0x151e94)=>{const _0x198d54=_0x151e94['cfg']['maxLocalFileSizeBytes'],_0x294cfb=_0x190d7b['size'];if(_0x198d54&&_0x294cfb&&_0x294cfb>_0x198d54)return{'type':'FILE_SIZE_EXCEEDED','message':_0x151e94['l10n']('files-max-size-limit-error',{'maxFileSize':prettyBytes(_0x198d54)}),'payload':{'entry':_0x190d7b}};},validateUploadError=(_0xd1023c,_0x1dcb6b)=>{const {internalId:_0x5b2591}=_0xd1023c,_0x55fc87=_0x1dcb6b['_uploadCollection']['read'](_0x5b2591),_0x4e1067=_0x55fc87?.['getValue']('uploadError');if(!_0x4e1067)return;if(_0x4e1067 instanceof UploadError)return{'type':'UPLOAD_ERROR','message':_0x4e1067['message'],'payload':{'entry':_0xd1023c,'error':_0x4e1067}};if(_0x4e1067 instanceof NetworkError)return{'type':'NETWORK_ERROR','message':_0x4e1067['message'],'payload':{'entry':_0xd1023c,'error':_0x4e1067}};const _0x506339=_0x4e1067 instanceof Error?_0x4e1067:new Error('Unknown\x20error',{'cause':_0x4e1067});return{'type':'UNKNOWN_ERROR','message':_0x506339['message'],'payload':{'entry':_0xd1023c,'error':_0x506339}};},withResolvers=()=>{let _0x1298c2=()=>{},_0x49322c=()=>{};return{'promise':new Promise((_0x559c10,_0x5c8ca4)=>{_0x1298c2=_0x559c10,_0x49322c=_0x5c8ca4;}),'resolve':_0x1298c2,'reject':_0x49322c};},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=_0x5831eb=>'function'==typeof _0x5831eb?{'runOn':'change','validator':_0x5831eb}:_0x5831eb,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(_0x67f14){this['_blockInstance']=_0x67f14,this['_uploadCollection']=this['_blockInstance']['uploadCollection'];const _0x404780=()=>{this['runFileValidators']('change'),this['runCollectionValidators']();};this['_blockInstance']['subConfigValue']('maxLocalFileSizeBytes',_0x404780),this['_blockInstance']['subConfigValue']('multipleMin',_0x404780),this['_blockInstance']['subConfigValue']('multipleMax',_0x404780),this['_blockInstance']['subConfigValue']('multiple',_0x404780),this['_blockInstance']['subConfigValue']('imgOnly',_0x404780),this['_blockInstance']['subConfigValue']('accept',_0x404780),this['_blockInstance']['subConfigValue']('validationConcurrency',_0x169030=>{this['_queue']['concurrency']=_0x169030;});}['runFileValidators'](_0x5dacba,_0x3b7778){const _0x5ad307=_0x3b7778??this['_uploadCollection']['items']();for(const _0xc71043 of _0x5ad307){const _0x110446=this['_uploadCollection']['read'](_0xc71043);_0x110446&&this['_runFileValidatorsForEntry'](_0x110446,_0x5dacba);}}['runCollectionValidators'](){const _0x1387e6=this['_blockInstance']['api']['getOutputCollectionState'](),_0x14f538=[];for(const _0x4b6e9c of[...this['_commonCollectionValidators'],...this['_blockInstance']['cfg']['collectionValidators']])try{const _0x399022=_0x4b6e9c(_0x1387e6,this['_blockInstance']['api']);if(!_0x399022)continue;_0x399022&&(_0x14f538['push'](this['_addCustomTypeToValidationError'](_0x399022)),_0x399022['message']||console['warn'](LOG_TEXT['MISSING_ERROR_MESSAGE']));}catch(_0x423009){console['warn'](LOG_TEXT['COLLECTION_VALIDATION_FAILED'],_0x423009);}this['_blockInstance']['$']['*collectionErrors']=_0x14f538,_0x14f538['length']>0x0&&this['_blockInstance']['emit'](EventType['COMMON_UPLOAD_FAILED'],()=>this['_blockInstance']['api']['getOutputCollectionState'](),{'debounce':!0x0});}['cleanupValidationForEntry'](_0x8f8142){const _0x451d3f=this['_entryValidationState']['get'](_0x8f8142['uid']);_0x451d3f&&(_0x451d3f['abortController']?.['abort'](),this['_entryValidationState']['delete'](_0x8f8142['uid']));}async['_runFileValidatorsForEntry'](_0x293457,_0x47cad1){const _0xb14429=this['_getValidatorDescriptorsForEntry'](_0x293457,_0x47cad1);if(0x0===_0xb14429['length'])return;_0x293457['setMultipleValues']({'isQueuedForValidation':!0x0,'isValidationPending':!0x0});const _0x3e0d22=this['_blockInstance']['api']['getOutputItem'](_0x293457['uid']),_0x29abae=this['_getEntryValidationState'](_0x293457);_0x29abae['promise']&&await _0x29abae['promise'];const {promise:_0x58e894,resolve:_0x4e228c}=withResolvers();_0x29abae['promise']=_0x58e894;const _0x296854=new AbortController();_0x29abae['abortController']=_0x296854;const _0x5e0ce1=this['_blockInstance']['cfg']['validationTimeout'],_0x1c45a8=this['_getValidatorDescriptors'](),_0x348b0d=new Set(_0xb14429['map'](_0x17f304=>_0x17f304['validator'])),_0x4cf896=[];for(const _0x2c9a13 of _0x1c45a8)if(!_0x348b0d['has'](_0x2c9a13['validator'])){const _0x24ec1f=_0x29abae['lastErrorThrownByValidator']['get'](_0x2c9a13['validator']);_0x24ec1f&&_0x4cf896['push'](_0x24ec1f);}const _0x3b54b6=_0xb14429['map'](_0x26816d=>async()=>{if(!this['_blockInstance']['isConnected'])return;const _0x24f3a1=setTimeout(()=>{_0x29abae['skippedValidators']['add'](_0x26816d['validator']),_0x296854['abort'](),console['warn'](LOG_TEXT['FILE_VALIDATION_TIMEOUT']);},_0x5e0ce1);try{const _0x55c0e7=await _0x26816d['validator'](_0x3e0d22,this['_blockInstance']['api'],{'signal':_0x296854['signal']});if(!_0x55c0e7||_0x296854['signal']['aborted'])return void _0x29abae['lastErrorThrownByValidator']['set'](_0x26816d['validator'],void 0x0);const _0x5735c6=this['_addCustomTypeToValidationError'](_0x55c0e7);_0x29abae['lastErrorThrownByValidator']['set'](_0x26816d['validator'],_0x5735c6),_0x4cf896['push'](_0x5735c6),_0x55c0e7['message']||console['warn'](LOG_TEXT['MISSING_ERROR_MESSAGE']);}catch(_0x5a22a3){_0x296854['signal']['aborted']||(_0x29abae['skippedValidators']['add'](_0x26816d['validator']),console['warn'](LOG_TEXT['FILE_VALIDATION_FAILED'],_0x5a22a3),this['_blockInstance']['telemetryManager']['sendEventError'](_0x5a22a3,'file\x20validator.\x20'+LOG_TEXT['FILE_VALIDATION_FAILED']));}finally{clearTimeout(_0x24f3a1),'change'!==_0x26816d['runOn']&&_0x29abae['skippedValidators']['add'](_0x26816d['validator']);}});if(this['_runQueueDebounced'](),await this['_queue']['add'](async()=>{_0x293457['setValue']('isQueuedForValidation',!0x1),await Promise['all'](_0x3b54b6['map'](_0x59bf0c=>_0x59bf0c()))['catch'](()=>{});},{'autoRun':!0x1}),_0x296854['signal']['aborted'])return _0x293457['setMultipleValues']({'isQueuedForValidation':!0x1,'isValidationPending':!0x1}),void _0x4e228c();_0x293457['setMultipleValues']({'isValidationPending':!0x1,'isQueuedForValidation':!0x1,'errors':_0x4cf896}),_0x4e228c();}['_addCustomTypeToValidationError'](_0x2a0b32){return{..._0x2a0b32,'type':_0x2a0b32['type']??'CUSTOM_ERROR'};}['_getEntryValidationState'](_0xf77b13){const _0x34420c=this['_entryValidationState']['get'](_0xf77b13['uid']);if(_0x34420c)return _0x34420c;const _0x3b5314={'abortController':void 0x0,'skippedValidators':new WeakSet(),'promise':void 0x0,'lastErrorThrownByValidator':new WeakMap()};return this['_entryValidationState']['set'](_0xf77b13['uid'],_0x3b5314),_0x3b5314;}['_getValidatorDescriptors'](){return[...this['_commonFileValidators'],...this['_blockInstance']['cfg']['fileValidators']]['map'](getValidatorDescriptor);}['_getValidatorDescriptorsForEntry'](_0x384776,_0x5ad9b2){const _0x3c1046=this['_getEntryValidationState'](_0x384776);return this['_getValidatorDescriptors']()['filter'](_0x5ae381=>!_0x3c1046['skippedValidators']['has'](_0x5ae381['validator']))['filter'](_0xbeb426=>_0xbeb426['runOn']===_0x5ad9b2);}},MSG_NAME='[Typed\x20State]\x20Wrong\x20property\x20name:\x20',MSG_TYPE='[Typed\x20State]\x20Wrong\x20property\x20type:\x20',TypedData=class{['__typedSchema'];['__ctxId'];['__schema'];['__data'];constructor(_0x40e306,_0x9bd773){this['__typedSchema']=_0x40e306,this['__ctxId']=_0x9bd773||UID['generate'](),this['__schema']=Object['keys'](_0x40e306)['reduce']((_0x2d7392,_0x55bd2a)=>(_0x40e306[_0x55bd2a]&&(_0x2d7392[_0x55bd2a]=_0x40e306[_0x55bd2a]['value']),_0x2d7392),{}),this['__data']=Data['registerCtx'](this['__schema'],this['__ctxId']);}get['uid'](){return this['__ctxId'];}['setValue'](_0x53f0c7,_0x541312){if(!Object['hasOwn'](this['__typedSchema'],_0x53f0c7)||!this['__typedSchema'][_0x53f0c7])return void console['warn'](MSG_NAME+_0x53f0c7);const _0x48ca3a=this['__typedSchema'][_0x53f0c7],_0x1a23ad=_0x541312?.['constructor']===_0x48ca3a['type'],_0x118dee=_0x541312 instanceof _0x48ca3a['type'],_0x4992f6=_0x48ca3a['nullable']&&null===_0x541312;_0x1a23ad||_0x118dee||_0x4992f6?this['__data']['pub'](_0x53f0c7,_0x541312):console['warn'](MSG_TYPE+_0x53f0c7);}['setMultipleValues'](_0x503fea){for(const [_0x349c73,_0x1494ad]of Object['entries'](_0x503fea))this['setValue'](_0x349c73,_0x1494ad);}['getValue'](_0x4aaae0){return Object['hasOwn'](this['__typedSchema'],_0x4aaae0)||console['warn'](MSG_NAME+_0x4aaae0),this['__data']['read'](_0x4aaae0);}['subscribe'](_0x3f367a,_0xdc0c0e){return this['__data']['sub'](_0x3f367a,_0xdc0c0e);}['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(_0x39a59a){this['__typedSchema']=_0x39a59a['typedSchema'],this['__ctxId']=_0x39a59a['ctxName']||UID['generate'](),this['__data']=Data['registerCtx']({},this['__ctxId']),this['__watchList']=_0x39a59a['watchList']||[];let _0x3f5d58=Object['create'](null);this['__notifyObservers']=(_0x407314,_0x26768a)=>{this['__observeTimeout']&&window['clearTimeout'](this['__observeTimeout']),_0x3f5d58[_0x407314]||(_0x3f5d58[_0x407314]=new Set()),_0x3f5d58[_0x407314]['add'](_0x26768a),this['__observeTimeout']=window['setTimeout'](()=>{0x0!==Object['keys'](_0x3f5d58)['length']&&(this['__propertyObservers']['forEach'](_0x5e6603=>{_0x5e6603({..._0x3f5d58});}),_0x3f5d58=Object['create'](null));});},_0x39a59a['handler']&&this['observeCollection'](_0x39a59a['handler']);}['notify'](){this['__notifyTimeout']&&window['clearTimeout'](this['__notifyTimeout']),this['__notifyTimeout']=window['setTimeout'](()=>{const _0x5800f3=new Set(this['__added']),_0x21ed12=new Set(this['__removed']);this['__added']['clear'](),this['__removed']['clear']();for(const _0x4a2848 of this['__collectionObservers'])_0x4a2848?.([...this['__items']],_0x5800f3,_0x21ed12);});}['observeCollection'](_0x3db98f){return this['__collectionObservers']['add'](_0x3db98f),this['__items']['size']>0x0&&this['notify'](),()=>{this['unobserveCollection'](_0x3db98f);};}['unobserveCollection'](_0xae995f){this['__collectionObservers']['delete'](_0xae995f);}['add'](_0x4272d7){const _0x387697=new TypedData(this['__typedSchema']);for(const [_0x19f953,_0x55ee73]of Object['entries'](_0x4272d7))void 0x0!==_0x55ee73&&_0x387697['setValue'](_0x19f953,_0x55ee73);return this['__items']['add'](_0x387697['uid']),this['notify'](),this['__data']['add'](_0x387697['uid'],_0x387697),this['__added']['add'](_0x387697),this['__watchList']['forEach'](_0x46ee4f=>{this['__subsMap'][_0x387697['uid']]||(this['__subsMap'][_0x387697['uid']]=[]),this['__subsMap'][_0x387697['uid']]?.['push'](_0x387697['subscribe'](_0x46ee4f,()=>{this['__notifyObservers'](_0x46ee4f,_0x387697['uid']);}));}),_0x387697['uid'];}['read'](_0x59eecd){return this['__data']['read'](_0x59eecd);}['readProp'](_0x13a502,_0x1c86cb){const _0x27261f=this['read'](_0x13a502);return _0x27261f?_0x27261f['getValue'](_0x1c86cb):(console['warn']('Item\x20with\x20id\x20'+_0x13a502+'\x20not\x20found'),null);}['publishProp'](_0x48c4fb,_0x5243f4,_0x2d81e3){const _0x28d814=this['read'](_0x48c4fb);_0x28d814?_0x28d814['setValue'](_0x5243f4,_0x2d81e3):console['warn']('Item\x20with\x20id\x20'+_0x48c4fb+'\x20not\x20found');}['remove'](_0x562ec1){const _0x27bcae=this['read'](_0x562ec1);_0x27bcae&&this['__removed']['add'](_0x27bcae),this['__items']['delete'](_0x562ec1),this['notify'](),this['__data']['pub'](_0x562ec1,null),delete this['__subsMap'][_0x562ec1];}['clearAll'](){this['__items']['forEach'](_0x1b8089=>{this['remove'](_0x1b8089);});}['observeProperties'](_0xa60ab9){return this['__propertyObservers']['add'](_0xa60ab9),()=>{this['unobserveProperties'](_0xa60ab9);};}['unobserveProperties'](_0x38d416){this['__propertyObservers']['delete'](_0x38d416);}['findItems'](_0x3df0b3){const _0x90506c=[];return this['__items']['forEach'](_0x245161=>{const _0x197a0c=this['read'](_0x245161);_0x197a0c&&_0x3df0b3(_0x197a0c)&&_0x90506c['push'](_0x245161);}),_0x90506c;}['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 _0x36e146 in this['__subsMap'])this['__subsMap'][_0x36e146]?.['forEach'](_0x59bc59=>{_0x59bc59['remove']();}),delete this['__subsMap'][_0x36e146];}},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=_0x239954=>({'isVideoRecordingEnabled':deserializeCsv(_0x239954['cameraModes'])['includes'](CameraSourceTypes['VIDEO']),'isPhotoEnabled':deserializeCsv(_0x239954['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:_0x279b8d,cdnBase:_0x4a1fd1})=>{const _0x2688b1=new URL(_0x4a1fd1),_0x32da96=new URL(DEFAULT_CDN_CNAME),_0x12799f=new URL(_0x279b8d);if(_0x2688b1['host']!==_0x12799f['host']&&_0x32da96['host']!==_0x12799f['host'])return null;const _0x5dfd2c=cdnUrlRegex['exec'](_0x12799f['pathname']);if(!_0x5dfd2c)return null;const [,_0x321c3e,_0xbe1f0e,_0x3f977c]=_0x5dfd2c;return _0x321c3e?{'uuid':_0x321c3e,'cdnUrlModifiers':_0xbe1f0e||'','filename':_0x3f977c||null}:null;};function memoize(_0x993450){const _0x1af566=new Map();return(..._0x16ee99)=>{const _0x3d62c2=JSON['stringify'](_0x16ee99);if(_0x1af566['has'](_0x3d62c2))return _0x1af566['get'](_0x3d62c2);const _0xc02262=_0x993450(..._0x16ee99);return _0x1af566['set'](_0x3d62c2,_0xc02262),_0xc02262;};}var warnings=new Set();function warnOnce(_0x549e47){warnings['has'](_0x549e47)||(warnings['add'](_0x549e47),console['warn'](_0x549e47));}function createAsyncAssertWrapper(_0x3c8f17){let _0x2f38da=!0x1;return setTimeout(()=>{_0x2f38da=!0x0;},0x0),_0x49bee7=>(..._0x1ddb83)=>(_0x2f38da&&warnOnce(_0x3c8f17),_0x49bee7(..._0x1ddb83));}function buildOutputCollectionState(_0xed1067){const _0x10b09b={},_0xca5d01={'progress':()=>_0xed1067['$']['*commonProgress'],'errors':()=>_0xed1067['$']['*collectionErrors'],'group':()=>_0xed1067['$']['*groupInfo'],'totalCount':()=>_0xed1067['uploadCollection']['size'],'failedCount':()=>_0x10b09b['failedEntries']['length'],'successCount':()=>_0x10b09b['successEntries']['length'],'uploadingCount':()=>_0x10b09b['uploadingEntries']['length'],'status':()=>_0x10b09b['isFailed']?'failed':_0x10b09b['isUploading']?'uploading':_0x10b09b['isSuccess']?'success':'idle','isSuccess':()=>_0x10b09b['allEntries']['length']>0x0&&0x0===_0x10b09b['errors']['length']&&_0x10b09b['successEntries']['length']===_0x10b09b['allEntries']['length'],'isUploading':()=>_0x10b09b['allEntries']['some'](_0x5dbcbb=>'uploading'===_0x5dbcbb['status']),'isFailed':()=>_0x10b09b['errors']['length']>0x0||_0x10b09b['failedEntries']['length']>0x0,'allEntries':()=>_0xed1067['getOutputData'](),'successEntries':()=>_0x10b09b['allEntries']['filter'](_0x53a127=>'success'===_0x53a127['status']),'failedEntries':()=>_0x10b09b['allEntries']['filter'](_0x178980=>'failed'===_0x178980['status']),'uploadingEntries':()=>_0x10b09b['allEntries']['filter'](_0xb7edb1=>'uploading'===_0xb7edb1['status']),'idleEntries':()=>_0x10b09b['allEntries']['filter'](_0xaa1627=>'idle'===_0xaa1627['status'])},_0x16fe8f=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 [_0x52ff1d,_0xc2dc6d]of Object['entries'](_0xca5d01)){const _0x2a02e4=_0x52ff1d,_0x59bb0d=memoize(_0x16fe8f(_0xc2dc6d));Object['defineProperty'](_0x10b09b,_0x2a02e4,{'get':_0x59bb0d,'enumerable':!0x0});}return _0x10b09b;}var UploaderPublicApi=class{['_ctx'];constructor(_0x5d72f6){this['_ctx']=_0x5d72f6;}get['_uploadCollection'](){return this['_ctx']['uploadCollection'];}get['cfg'](){return this['_ctx']['cfg'];}get['l10n'](){return this['_ctx']['l10n']['bind'](this['_ctx']);}['addFileFromUrl']=(_0xbfdb68,{silent:_0x44ccfb,fileName:_0x8cdcaf,source:_0x49669d}={})=>{const _0x5a2c94=this['_uploadCollection']['add']({'externalUrl':_0xbfdb68,'fileName':_0x8cdcaf??null,'silent':_0x44ccfb??!0x1,'source':_0x49669d??UploadSource['API']});return this['getOutputItem'](_0x5a2c94);};['addFileFromUuid']=(_0x4f6dd9,{silent:_0x4bcbf3,fileName:_0x22da4f,source:_0x15b1dc}={})=>{const _0x3082bc=this['_uploadCollection']['add']({'uuid':_0x4f6dd9,'fileName':_0x22da4f??null,'silent':_0x4bcbf3??!0x1,'source':_0x15b1dc??UploadSource['API']});return this['getOutputItem'](_0x3082bc);};['addFileFromCdnUrl']=(_0xa8da6f,{silent:_0x4ddef9,fileName:_0xfad227,source:_0x557354}={})=>{const _0x1b2a79=parseCdnUrl({'url':_0xa8da6f,'cdnBase':this['cfg']['cdnCname']});if(!_0x1b2a79)throw new Error('Invalid\x20CDN\x20URL');const _0x22d2af=this['_uploadCollection']['add']({'uuid':_0x1b2a79['uuid'],'cdnUrl':_0xa8da6f,'cdnUrlModifiers':_0x1b2a79['cdnUrlModifiers'],'fileName':_0xfad227??_0x1b2a79['filename']??null,'silent':_0x4ddef9??!0x1,'source':_0x557354??UploadSource['API']});return this['getOutputItem'](_0x22d2af);};['addFileFromObject']=(_0xabd3d9,{silent:_0x43af09,fileName:_0x4716e2,source:_0x4c4d29,fullPath:_0x295112}={})=>{const _0x53f2a8=this['_uploadCollection']['add']({'file':_0xabd3d9,'isImage':fileIsImage(_0xabd3d9),'mimeType':_0xabd3d9['type'],'fileName':_0x4716e2??_0xabd3d9['name'],'fileSize':_0xabd3d9['size'],'silent':_0x43af09??!0x1,'source':_0x4c4d29??UploadSource['API'],'fullPath':_0x295112??null});return this['getOutputItem'](_0x53f2a8);};['removeFileByInternalId']=_0x54c41e=>{if(!this['_uploadCollection']['read'](_0x54c41e))throw new Error('File\x20with\x20internalId\x20'+_0x54c41e+'\x20not\x20found');this['_uploadCollection']['remove'](_0x54c41e);};['removeAllFiles'](){this['_uploadCollection']['clearAll']();}['uploadAll']=()=>{const _0x2e9297=this['_uploadCollection']['items']()['filter'](_0x4299fb=>{const _0x3e75f4=this['_uploadCollection']['read'](_0x4299fb);return!!_0x3e75f4&&!(_0x3e75f4['getValue']('isRemoved')||_0x3e75f4['getValue']('isUploading')||_0x3e75f4['getValue']('fileInfo')||0x0!==_0x3e75f4['getValue']('errors')['length']||_0x3e75f4['getValue']('isValidationPending')||_0x3e75f4['getValue']('isQueuedForValidation'));});0x0!==_0x2e9297['length']&&(this['_ctx']['$']['*uploadTrigger']=new Set(_0x2e9297),this['_ctx']['emit'](EventType['COMMON_UPLOAD_START'],this['getOutputCollectionState']()));};['openSystemDialog']=(_0x4ba7df={})=>{const _0x3fa45d=serializeCsv(mergeFileTypes([this['cfg']['accept']??'',...this['cfg']['imgOnly']?IMAGE_ACCEPT_LIST:[]])),_0x256e94='uploadcare-file-input',_0x4c70fb=document['createElement']('input');if(_0x4c70fb['setAttribute'](_0x256e94,''),applyStyles(_0x4c70fb,{'opacity':0x0,'height':0x0,'width':0x0,'visibility':'hidden','position':'absolute','top':0x0,'left':0x0}),_0x4c70fb['type']='file',_0x4c70fb['multiple']=this['cfg']['multiple'],_0x4ba7df['captureCamera']){_0x4c70fb['capture']=this['cfg']['cameraCapture'];const {isPhotoEnabled:_0x4a6783,isVideoRecordingEnabled:_0xbbae8}=calcCameraModes(this['cfg']);_0x4ba7df['modeCamera']===CameraSourceTypes['PHOTO']&&_0x4a6783?_0x4c70fb['accept']=BASIC_IMAGE_WILDCARD:_0x4ba7df['modeCamera']===CameraSourceTypes['VIDEO']&&_0xbbae8?_0x4c70fb['accept']=BASIC_VIDEO_WILDCARD:_0x4c70fb['accept']=[BASIC_IMAGE_WILDCARD,_0xbbae8&&BASIC_VIDEO_WILDCARD]['filter'](Boolean)['join'](',');}else _0x4c70fb['accept']=_0x3fa45d;_0x4c70fb['addEventListener']('change',()=>{_0x4c70fb['files']&&([..._0x4c70fb['files']]['forEach'](_0x80d95c=>{this['addFileFromObject'](_0x80d95c,{'source':_0x4ba7df['captureCamera']?UploadSource['CAMERA']:UploadSource['LOCAL']});}),this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['_ctx']['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],_0x4c70fb['remove']());},{'once':!0x0}),document['querySelectorAll']('['+_0x256e94+']')['forEach'](_0x73f9d5=>{_0x73f9d5['remove']();}),document['body']['appendChild'](_0x4c70fb),_0x4c70fb['dispatchEvent'](new MouseEvent('click'));};['getOutputItem'](_0x5e6e2b){const _0x1d4a94=Data['getCtx'](_0x5e6e2b)['store'],_0x2b371f=_0x1d4a94['fileInfo'],_0xa70777=_0x1d4a94['isRemoved']?'removed':_0x1d4a94['errors']['length']>0x0?'failed':_0x1d4a94['fileInfo']?'success':_0x1d4a94['isUploading']?'uploading':'idle';return{'uuid':_0x2b371f?.['uuid']??_0x1d4a94['uuid']??null,'internalId':_0x5e6e2b,'name':_0x2b371f?.['originalFilename']??_0x1d4a94['fileName'],'size':_0x2b371f?.['size']??_0x1d4a94['fileSize'],'isImage':_0x2b371f?.['isImage']??_0x1d4a94['isImage'],'mimeType':_0x2b371f?.['mimeType']??_0x1d4a94['mimeType'],'file':_0x1d4a94['file'],'externalUrl':_0x1d4a94['externalUrl'],'cdnUrlModifiers':_0x1d4a94['cdnUrlModifiers'],'cdnUrl':_0x1d4a94['cdnUrl']??_0x2b371f?.['cdnUrl']??null,'fullPath':_0x1d4a94['fullPath'],'uploadProgress':_0x1d4a94['uploadProgress'],'fileInfo':_0x2b371f??null,'metadata':_0x1d4a94['metadata']??_0x2b371f?.['metadata']??null,'isSuccess':'success'===_0xa70777,'isUploading':'uploading'===_0xa70777,'isFailed':'failed'===_0xa70777,'isRemoved':'removed'===_0xa70777,'isValidationPending':_0x1d4a94['isValidationPending'],'errors':_0x1d4a94['errors'],'status':_0xa70777,'source':_0x1d4a94?.['source']};}['getOutputCollectionState'](){return buildOutputCollectionState(this['_ctx']);}['initFlow']=(_0x9e0a7b=!0x1)=>{if(this['_uploadCollection']['size']>0x0&&!_0x9e0a7b)this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']});else{if(0x1===this['_sourceList']?.['length']){const _0x174f2f=this['_sourceList'][0x0];if('local'===_0x174f2f)return this['_ctx']['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],void this['openSystemDialog']();if('camera'===_0x174f2f&&browserFeatures['htmlMediaCapture']){const {isPhotoEnabled:_0x587a72,isVideoRecordingEnabled:_0x4418dd}=calcCameraModes(this['cfg']);if(_0x587a72&&_0x4418dd)return void this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['START_FROM']});if(_0x587a72||_0x4418dd)return void this['openSystemDialog']({'captureCamera':!0x0,'modeCamera':_0x587a72?CameraSourceTypes['PHOTO']:CameraSourceTypes['VIDEO']});this['openSystemDialog']({'captureCamera':!0x0,'modeCamera':CameraSourceTypes['PHOTO']});}const _0x3bd168=[...this['_ctx']['$']['*blocksRegistry']]['find'](_0xda135c=>'type'in _0xda135c&&_0xda135c['type']===_0x174f2f);_0x3bd168?.['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']=(_0x3ed717,..._0x5cf0b4)=>{this['_ctx']['hasBlockInCtx'](_0x1b8d74=>_0x1b8d74['activityType']===_0x3ed717)?this['_ctx']['set$']({'*currentActivityParams':_0x5cf0b4??{},'*currentActivity':_0x3ed717}):console['warn']('Activity\x20type\x20\x22'+_0x3ed717+'\x22\x20not\x20found\x20in\x20the\x20context');};['getCurrentActivity']=()=>this['_ctx']['$']['*currentActivity'];['setModalState']=_0x282ed0=>{!_0x282ed0||this['_ctx']['$']['*currentActivity']?_0x282ed0?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 _0x273434=[];return this['cfg']['sourceList']&&(_0x273434=stringToArray(this['cfg']['sourceList'])),_0x273434;}},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'](_0x4c8ae6=>_0x4c8ae6 instanceof e&&(_0x4c8ae6['isCtxOwner']&&_0x4c8ae6['isConnected']&&_0x4c8ae6!==this));}['initCallback'](){if(super['initCallback'](),!this['has']('*uploadCollection')){const _0x109612=new TypedCollection({'typedSchema':uploadEntrySchema,'watchList':['uploadProgress','uploadError','fileInfo','errors','cdnUrl','isUploading','isValidationPending']});this['add']('*uploadCollection',_0x109612);}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',_0x4720e8=>{this['$']['*uploadQueue']['concurrency']=Number(_0x4720e8)||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'](_0x2a90e3){const _0x1c2931=await this['getUploadClientOptions'](),_0x5c8044=_0x2a90e3['allEntries']['map'](_0x13815e=>_0x13815e['uuid']+(_0x13815e['cdnUrlModifiers']?'/'+_0x13815e['cdnUrlModifiers']:'')),_0x2d13cf=new AbortController(),_0x4a6a72=await uploadFileGroup(_0x5c8044,{..._0x1c2931,'signal':_0x2d13cf['signal']});if(this['$']['*collectionState']!==_0x2a90e3)return void _0x2d13cf['abort']();this['$']['*groupInfo']=_0x4a6a72;const _0x47aa63=this['api']['getOutputCollectionState']();this['emit'](EventType['GROUP_CREATED'],_0x47aa63),this['emit'](EventType['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['$']['*collectionState']=_0x47aa63;}['_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']=(_0x14ba70,_0x304650,_0x46b88d)=>{(_0x304650['size']||_0x46b88d['size'])&&(this['$']['*groupInfo']=null),this['validationManager']['runFileValidators']('add',[..._0x304650]['map'](_0x321d6a=>_0x321d6a['uid']));for(const _0x542ed2 of _0x304650)_0x542ed2['getValue']('silent')||this['emit'](EventType['FILE_ADDED'],this['api']['getOutputItem'](_0x542ed2['uid']));this['validationManager']['runCollectionValidators']();for(const _0x354cb8 of _0x46b88d){this['$']['*uploadTrigger']['delete'](_0x354cb8['uid']),this['validationManager']['cleanupValidationForEntry'](_0x354cb8),_0x354cb8['getValue']('abortController')?.['abort'](),_0x354cb8['setMultipleValues']({'isRemoved':!0x0,'abortController':null,'isUploading':!0x1,'uploadProgress':0x0});const _0x276ba6=_0x354cb8?.['getValue']('thumbUrl');_0x276ba6&&URL['revokeObjectURL'](_0x276ba6),this['emit'](EventType['FILE_REMOVED'],this['api']['getOutputItem'](_0x354cb8['uid']));}this['$']['*uploadList']=_0x14ba70['map'](_0x43d122=>({'uid':_0x43d122})),this['_flushCommonUploadProgress'](),this['_flushOutputItems']();};['_handleCollectionPropertiesUpdate']=_0x40e70e=>{this['_flushOutputItems']();const _0x2b0b74=this['uploadCollection'],_0x40871b=[...new Set(Object['entries'](_0x40e70e)['filter'](([_0x3c0cac])=>['uploadError','fileInfo','cdnUrl','cdnUrlModifiers']['includes'](_0x3c0cac))['flatMap'](([,_0x1ab988])=>[..._0x1ab988]))];if(_0x40871b['length']>0x0&&setTimeout(()=>{const _0x3d9c2d=_0x40871b['filter'](_0x2b0aef=>_0x40e70e['fileInfo']?.['has'](_0x2b0aef)&&!!Data['getCtx'](_0x2b0aef)['store']['fileInfo']);_0x3d9c2d['length']>0x0&&this['validationManager']['runFileValidators']('upload',_0x3d9c2d),this['validationManager']['runFileValidators']('change',_0x40871b);}),_0x40e70e['uploadProgress']){for(const _0x23bbc5 of _0x40e70e['uploadProgress']){const {isUploading:_0x161d57,silent:_0x3b3966}=Data['getCtx'](_0x23bbc5)['store'];_0x161d57&&!_0x3b3966&&this['emit'](EventType['FILE_UPLOAD_PROGRESS'],this['api']['getOutputItem'](_0x23bbc5));}this['_flushCommonUploadProgress']();}if(_0x40e70e['isUploading'])for(const _0x7e22aa of _0x40e70e['isUploading']){const {isUploading:_0x57493e,silent:_0xd2e22d}=Data['getCtx'](_0x7e22aa)['store'];_0x57493e&&!_0xd2e22d&&this['emit'](EventType['FILE_UPLOAD_START'],this['api']['getOutputItem'](_0x7e22aa));}if(_0x40e70e['fileInfo']){for(const _0x411433 of _0x40e70e['fileInfo']){const {fileInfo:_0x350de0,silent:_0x5032d2}=Data['getCtx'](_0x411433)['store'];_0x350de0&&!_0x5032d2&&this['emit'](EventType['FILE_UPLOAD_SUCCESS'],this['api']['getOutputItem'](_0x411433));}this['cfg']['cropPreset']&&this['setInitialCrop'](),this['cfg']['cloudImageEditorAutoOpen']&&this['openCloudImageEditor']();}if(_0x40e70e['errors']){this['validationManager']['runCollectionValidators']();for(const _0x4f85e9 of _0x40e70e['errors']){const {errors:_0x2eac7e}=Data['getCtx'](_0x4f85e9)['store'];_0x2eac7e['length']>0x0&&(this['emit'](EventType['FILE_UPLOAD_FAILED'],this['api']['getOutputItem'](_0x4f85e9)),this['emit'](EventType['COMMON_UPLOAD_FAILED'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}));}const _0x5c8d42=_0x2b0b74['findItems'](_0x290b96=>!!_0x290b96['getValue']('fileInfo')),_0x5934bd=_0x2b0b74['findItems'](_0x2aada2=>_0x2aada2['getValue']('errors')['length']>0x0);_0x2b0b74['size']>0x0&&0x0===_0x5934bd['length']&&_0x2b0b74['size']===_0x5c8d42['length']&&0x0===this['$']['*collectionErrors']['length']&&this['emit'](EventType['COMMON_UPLOAD_SUCCESS'],this['api']['getOutputCollectionState']());}if(_0x40e70e['cdnUrl']){const _0x3c134b=[..._0x40e70e['cdnUrl']]['filter'](_0x2b6295=>!!this['uploadCollection']['read'](_0x2b6295)?.['getValue']('cdnUrl'));_0x3c134b['forEach'](_0x426860=>{this['emit'](EventType['FILE_URL_CHANGED'],this['api']['getOutputItem'](_0x426860));}),this['$']['*groupInfo']=null;}};['_flushCommonUploadProgress']=()=>{let _0x27c3cd=0x0;const _0x38da69=[...this['$']['*uploadTrigger']]['filter'](_0x431048=>!!this['uploadCollection']['read'](_0x431048));_0x38da69['forEach'](_0x17cbfe=>{const _0x33d70d=this['uploadCollection']['readProp'](_0x17cbfe,'uploadProgress');'number'==typeof _0x33d70d&&(_0x27c3cd+=_0x33d70d);});const _0xe476d8=_0x38da69['length']?Math['round'](_0x27c3cd/_0x38da69['length']):0x0;this['$']['*commonProgress']!==_0xe476d8&&(this['$']['*commonProgress']=_0xe476d8,this['emit'](EventType['COMMON_UPLOAD_PROGRESS'],this['api']['getOutputCollectionState']()));};['openCloudImageEditor'](){const [_0x8744f7]=this['uploadCollection']['findItems'](_0x38c9e8=>!!_0x38c9e8['getValue']('fileInfo')&&_0x38c9e8['getValue']('isImage'))['map'](_0x406147=>this['uploadCollection']['read'](_0x406147));_0x8744f7&&0x1===this['uploadCollection']['size']&&this['cfg']['useCloudImageEditor']&&this['hasBlockInCtx'](_0x4ccb1d=>_0x4ccb1d['activityType']===ActivityBlock['activities']['CLOUD_IMG_EDIT'])&&(this['$']['*currentActivityParams']={'internalId':_0x8744f7['uid']},this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'],this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']));}['setInitialCrop'](){const _0x259b25=parseCropPreset(this['cfg']['cropPreset']);if(_0x259b25){const [_0x5ec16a]=_0x259b25,_0x6f800a=this['uploadCollection']['findItems'](_0x1b9293=>!!_0x1b9293['getValue']('fileInfo')&&_0x1b9293['getValue']('isImage')&&!_0x1b9293['getValue']('cdnUrlModifiers')?.['includes']('/crop/'))['map'](_0x3d3177=>this['uploadCollection']['read'](_0x3d3177))['filter'](Boolean);for(const _0xe1e9ef of _0x6f800a){const _0x2a0467=_0xe1e9ef['getValue']('fileInfo');if(!_0x2a0467||!_0x2a0467['imageInfo']){console['warn']('Failed\x20to\x20get\x20image\x20info\x20for\x20entry',_0xe1e9ef['uid']);continue;}const {width:_0x5b0760,height:_0x3b0db8}=_0x2a0467['imageInfo'],_0x262d9e=calculateMaxCenteredCropFrame(_0x5b0760,_0x3b0db8,'number'==typeof _0x5ec16a?.['width']&&'number'==typeof _0x5ec16a?.['height']&&_0x5ec16a['width']>0x0&&_0x5ec16a['height']>0x0?_0x5ec16a['width']/_0x5ec16a['height']:0x1),_0x2dacd2=createCdnUrlModifiers('crop/'+_0x262d9e['width']+'x'+_0x262d9e['height']+'/'+_0x262d9e['x']+','+_0x262d9e['y'],'preview'),_0x5307c7=_0xe1e9ef['getValue']('cdnUrl');_0x5307c7?(_0xe1e9ef['setMultipleValues']({'cdnUrlModifiers':_0x2dacd2,'cdnUrl':createCdnUrl(_0x5307c7,_0x2dacd2)}),0x1===this['uploadCollection']['size']&&this['cfg']['useCloudImageEditor']&&this['hasBlockInCtx'](_0x5bc6fe=>_0x5bc6fe['activityType']===ActivityBlock['activities']['CLOUD_IMG_EDIT'])&&(this['$']['*currentActivityParams']={'internalId':_0xe1e9ef['uid']},this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'],this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']))):console['warn']('Failed\x20to\x20get\x20cdnUrl\x20for\x20entry',_0xe1e9ef['uid']);}}}async['getMetadataFor'](_0x42843d){const _0x5cdbc8=this['cfg']['metadata']||void 0x0;if('function'==typeof _0x5cdbc8){const _0xb48d6f=this['api']['getOutputItem'](_0x42843d);return await _0x5cdbc8(_0xb48d6f);}return _0x5cdbc8;}async['getUploadClientOptions'](){const _0x4c87dd=this['$']['*secureUploadsManager'],_0x4d7b2d=await _0x4c87dd['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':_0x4d7b2d?.['secureSignature'],'secureExpire':_0x4d7b2d?.['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'](_0x133932=>this['api']['getOutputItem'](_0x133932));}};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(_0x3d658f){return Math['floor'](_0x3d658f/0x3c)['toString']()['padStart'](0x2,'0')+':'+Math['floor'](_0x3d658f%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':_0x5491f1=>{const _0x33e857=_0x5491f1['target'];_0x33e857&&(this['_selectedCameraId']=_0x33e857['value'],this['_capture']());},'onAudioSelectChange':_0x36c8f0=>{const _0x3d97f1=_0x36c8f0['target'];_0x3d97f1&&(this['_selectedAudioId']=_0x3d97f1['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':_0x1c024f=>{const _0x16ca0c=_0x1c024f['currentTarget'],_0x1daf94=_0x16ca0c?.['getAttribute']('data-id');_0x1daf94&&this['_handleActiveTab'](_0x1daf94);}};}['_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 _0x898075=Math['floor']((performance['now']()-this['$']['_startTime']+this['$']['_elapsedTime'])/0x3e8);if('number'==typeof this['cfg']['maxVideoRecordingDuration']&&this['cfg']['maxVideoRecordingDuration']>0x0){const _0x512260=this['cfg']['maxVideoRecordingDuration']-_0x898075;if(_0x512260<=0x0){const _0x175027=this['ref']['timer'];return _0x175027&&(_0x175027['textContent']=formatTime(_0x512260)),void this['_stopRecording']();}const _0x45eab6=this['ref']['timer'];_0x45eab6&&(_0x45eab6['textContent']=formatTime(_0x512260));}else{const _0x4e88b2=this['ref']['timer'];_0x4e88b2&&(_0x4e88b2['textContent']=formatTime(_0x898075));}this['_animationFrameId']=requestAnimationFrame(this['_updateTimer']);};['_startTimer']=()=>{this['$']['_startTime']=performance['now'](),this['$']['_elapsedTime']=0x0,this['_updateTimer']();};['_stopTimer']=()=>{this['_animationFrameId']&&cancelAnimationFrame(this['_animationFrameId']);};['_startTimeline']=()=>{const _0x53c4a7=this['ref']['video'];if(!_0x53c4a7)return;const _0x5e87e3=_0x53c4a7['currentTime'],_0x4e4900=_0x53c4a7['duration']||0x1,_0x2bbf87=this['ref']['line'];_0x2bbf87&&(_0x2bbf87['style']['transform']='scaleX('+_0x5e87e3/_0x4e4900+')');const _0x87109=this['ref']['timer'];_0x87109&&(_0x87109['textContent']=formatTime(_0x5e87e3)),this['_animationFrameId']=requestAnimationFrame(this['_startTimeline']);};['_stopTimeline']=()=>{this['_animationFrameId']&&cancelAnimationFrame(this['_animationFrameId']);};['_animationFrameId']=null;['_startRecording']=()=>{try{this['_chunks']=[],this['_options']={...this['cfg']['mediaRecorderOptions']};const {mimeType:_0x131a4a}=this['cfg']['mediaRecorderOptions']||{};_0x131a4a&&MediaRecorder['isTypeSupported'](_0x131a4a)?this['_options']['mimeType']=_0x131a4a: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',_0x4cdc29=>{this['_chunks']['push'](_0x4cdc29['data']);}),this['_startTimer'](),this['classList']['add']('uc-recording'),this['_setCameraState'](CameraSourceEvents['PLAY']));}catch(_0x55b24d){console['error']('Failed\x20to\x20start\x20recording',_0x55b24d),this['telemetryManager']['sendEventError'](_0x55b24d,'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'](_0x390fbc=>{_0x390fbc['enabled']=!_0x390fbc['enabled'],this['$']['toggleMicrophoneIcon']=_0x390fbc['enabled']?'microphone':'microphone-mute',this['$']['audioSelectDisabled']=!_0x390fbc['enabled'];});};['_previewVideo']=()=>{try{const _0x374a34=new Blob(this['_chunks'],{'type':this['_mediaRecorder']?.['mimeType']}),_0x2ae8b1=URL['createObjectURL'](_0x374a34),_0x3bf1ba=this['ref']['video'];if(!_0x3bf1ba)return;_0x3bf1ba['muted']=!0x1,_0x3bf1ba['volume']=0x1,this['$']['video']=null,_0x3bf1ba['src']=_0x2ae8b1,_0x3bf1ba['addEventListener']('play',()=>{this['_startTimeline'](),this['set$']({'currentTimelineIcon':'pause'});}),_0x3bf1ba['addEventListener']('pause',()=>{this['set$']({'currentTimelineIcon':'play'}),this['_stopTimeline']();});}catch(_0x5da852){console['error']('Failed\x20to\x20preview\x20video',_0x5da852),this['telemetryManager']['sendEventError'](_0x5da852,'camera\x20previewing.\x20Failed\x20to\x20preview\x20video');}};['_retake']=()=>{if(this['_setCameraState'](CameraSourceEvents['RETAKE']),this['_activeTab']===CameraSourceTypes['VIDEO']){this['$']['video']=this['_stream'];const _0xd0b688=this['ref']['video'];_0xd0b688&&(_0xd0b688['muted']=!0x0);}this['ref']['video']?.['play']?.();};['_accept']=()=>{if(this['_setCameraState'](CameraSourceEvents['ACCEPT']),this['_activeTab']===CameraSourceTypes['PHOTO'])return void this['_canvas']?.['toBlob'](_0x1c507d=>{if(!_0x1c507d)return;const _0x2dc43b=this['_createFile']('camera','jpeg',DEFAULT_PICTURE_FORMAT,_0x1c507d);this['_toSend'](_0x2dc43b);},DEFAULT_PICTURE_FORMAT);const _0x1cc974=new Blob(this['_chunks'],{'type':this['_mediaRecorder']?.['mimeType']}),_0x47ef4b=this['_guessExtensionByMime'](this['_mediaRecorder']?.['mimeType']),_0x4d1ded=this['_createFile']('video',_0x47ef4b,'video/'+_0x47ef4b,_0x1cc974);this['_toSend'](_0x4d1ded),this['_chunks']=[];};['_handlePhoto']=_0xe503d3=>{_0xe503d3===CameraSourceEvents['SHOT']&&this['set$']({'tabVideoHidden':!0x0,'cameraHidden':!0x0,'tabCameraHidden':!0x0,'cameraActionsHidden':!0x1,'cameraSelectHidden':!0x0}),_0xe503d3!==CameraSourceEvents['RETAKE']&&_0xe503d3!==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']=_0x212b5e=>{_0x212b5e===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'}),_0x212b5e===CameraSourceEvents['STOP']&&this['set$']({'timerHidden':!0x1,'cameraHidden':!0x0,'audioToggleMicrophoneHidden':!0x0,'cameraActionsHidden':!0x1}),_0x212b5e!==CameraSourceEvents['RETAKE']&&_0x212b5e!==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']=_0x40f60c=>{this['_activeTab']!==CameraSourceTypes['PHOTO']||'shot'!==_0x40f60c&&'retake'!==_0x40f60c&&'accept'!==_0x40f60c||this['_handlePhoto'](_0x40f60c),this['_activeTab']!==CameraSourceTypes['VIDEO']||'play'!==_0x40f60c&&'stop'!==_0x40f60c&&'retake'!==_0x40f60c&&'accept'!==_0x40f60c&&'pause'!==_0x40f60c&&'resume'!==_0x40f60c||this['_handleVideo'](_0x40f60c);};['_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']=_0x1054ba=>{const _0xd01401=this['ref']['switcher'];_0xd01401?.['querySelectorAll']('button')['forEach'](_0x584e93=>{_0x584e93['classList']['toggle']('uc-active',_0x584e93['getAttribute']('data-id')===_0x1054ba);}),_0x1054ba===CameraSourceTypes['PHOTO']&&this['set$']({'currentIcon':'camera-full','audioSelectHidden':!0x0,'audioToggleMicrophoneHidden':!0x0}),_0x1054ba===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':_0x1054ba}}}),this['_activeTab']=_0x1054ba;};['_createFile']=(_0x5505bd,_0x16e9ad,_0x5bd28f,_0x1f439d)=>{const _0x8b4fff=Date['now']();return new File([_0x1f439d],_0x5505bd+'-'+_0x8b4fff+'.'+_0x16e9ad,{'lastModified':_0x8b4fff,'type':_0x5bd28f});};['_guessExtensionByMime'](_0x34d305){const _0x1f3804={'mp4':'mp4','ogg':'ogg','webm':'webm','quicktime':'mov','x-matroska':'mkv'};if(''===_0x34d305)return'webm';if(_0x34d305){const _0x5ee1dd=_0x34d305['split']('/');if('video'===_0x5ee1dd?.[0x0]){const _0x236321=_0x5ee1dd['slice'](0x1)['join']('/'),_0x589bb0=_0x236321?.['split'](';')[0x0];if(_0x589bb0&&_0x1f3804[_0x589bb0])return _0x1f3804[_0x589bb0];}}return'avi';}['_toSend']=_0x31243c=>{this['api']['addFileFromObject'](_0x31243c,{'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'](_0x2ed6c4=>_0x2ed6c4===CameraSourceTypes['PHOTO']||_0x2ed6c4===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 _0x29143a=this['_stream']?.['getAudioTracks'](),_0x2dfe9f=this['_stream']?.['getVideoTracks']();return _0x29143a['forEach'](_0x5b8f12=>{_0x5b8f12['stop']();}),_0x2dfe9f['forEach'](_0x220b31=>{_0x220b31['stop']();}),!0x0;};['_stopCapture']=()=>{if(this['_capturing']){this['ref']['video']['volume']=0x0;const _0x485015=this['$']['video']?.['getTracks']?.();_0x485015?.[0x0]?.['stop'](),this['$']['video']=null,this['_makeStreamInactive'](),this['_stopTimer'](),this['_capturing']=!0x1;}};['_capture']=async()=>{const _0x153e3d={'video':{...DEFAULT_VIDEO_CONFIG},'audio':!!this['cfg']['enableAudioRecording']&&{}};this['_selectedCameraId']&&(_0x153e3d['video']={'deviceId':{'exact':this['_selectedCameraId']}}),this['_selectedAudioId']&&this['cfg']['enableAudioRecording']&&(_0x153e3d['audio']={'deviceId':{'exact':this['_selectedAudioId']}}),this['ref']['video']&&(this['ref']['video']['volume']=0x0);try{this['_setPermissionsState']('prompt'),this['_stream']=await navigator['mediaDevices']['getUserMedia'](_0x153e3d),this['_stream']['addEventListener']('inactive',()=>{this['_setPermissionsState']('denied');}),this['$']['video']=this['_stream'],this['_capturing']=!0x0,this['_setPermissionsState']('granted');}catch(_0x2e1f6b){this['_setPermissionsState']('denied'),console['log']('Failed\x20to\x20capture\x20camera',_0x2e1f6b),this['telemetryManager']['sendEventError'](_0x2e1f6b,'camera\x20capturing.\x20Failed\x20to\x20capture\x20camera');}};['_handlePermissionsChange']=()=>{this['_capture']();};['_permissionAccess']=async()=>{try{for(const _0x45ec97 of DEFAULT_PERMISSIONS){const _0x119075=await navigator['permissions']['query']({'name':_0x45ec97});this['_permissionResponses'][_0x45ec97]=_0x119075,_0x119075['addEventListener']('change',this['_handlePermissionsChange']);}}catch(_0x64a681){console['log']('Failed\x20to\x20use\x20permissions\x20API.\x20Fallback\x20to\x20manual\x20request\x20mode.',_0x64a681),this['telemetryManager']['sendEventError'](_0x64a681,'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(_0x1220cd){this['telemetryManager']['sendEventError'](_0x1220cd,'camera\x20devices.\x20Failed\x20to\x20get\x20user\x20media'),console['log']('Failed\x20to\x20get\x20user\x20media',_0x1220cd);}};['_getDevices']=async()=>{try{const _0x207759=await navigator['mediaDevices']['enumerateDevices']();this['_cameraDevices']=_0x207759['filter'](_0x5acb3d=>'videoinput'===_0x5acb3d['kind'])['map']((_0x1f1e4d,_0x45a75b)=>({'text':_0x1f1e4d['label']['trim']()||this['l10n']('caption-camera')+'\x20'+(_0x45a75b+0x1),'value':_0x1f1e4d['deviceId']})),this['_audioDevices']=this['cfg']['enableAudioRecording']?_0x207759['filter'](_0x3e8dc4=>'audioinput'===_0x3e8dc4['kind'])['map'](_0x3f1b62=>({'text':_0x3f1b62['label']['trim'](),'value':_0x3f1b62['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(_0x15281d){this['telemetryManager']['sendEventError'](_0x15281d,'camera\x20devices.\x20Failed\x20to\x20get\x20devices'),console['log']('Failed\x20to\x20get\x20devices',_0x15281d);}};['_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']=_0x2197b6=>{this['$']['tabVideoHidden']=!_0x2197b6['includes'](CameraSourceTypes['VIDEO']),this['$']['tabCameraHidden']=!_0x2197b6['includes'](CameraSourceTypes['PHOTO']);const _0x10ce52=_0x2197b6[0x0];!_0x10ce52||this['_activeTab']&&_0x2197b6['includes'](this['_activeTab'])||this['_handleActiveTab'](_0x10ce52);};['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':this['_onActivate'],'onDeactivate':this['_onDeactivate']}),this['subConfigValue']('cameraMirror',_0x24f10b=>{this['$']['videoTransformCss']=_0x24f10b?'scaleX(-1)':null;}),this['subConfigValue']('enableAudioRecording',_0x1dfe47=>{this['$']['audioToggleMicrophoneHidden']=!_0x1dfe47,this['$']['audioSelectDisabled']=!_0x1dfe47;}),this['subConfigValue']('cameraModes',_0x355451=>{if(!this['isActivityActive'])return;const _0x23cd94=deserializeCsv(_0x355451);this['_handleCameraModes'](_0x23cd94['filter'](_0x5e6afe=>_0x5e6afe===CameraSourceTypes['PHOTO']||_0x5e6afe===CameraSourceTypes['VIDEO']));});}['_destroy'](){for(const _0x40ae91 of DEFAULT_PERMISSIONS)this['_permissionResponses'][_0x40ae91]?.['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(..._0x90f9d3){return _0x90f9d3['reduce']((_0x502b0e,_0x5a55f7)=>{if('string'==typeof _0x5a55f7)return _0x502b0e[_0x5a55f7]=!0x0,_0x502b0e;for(const _0x3130d0 of Object['keys'](_0x5a55f7))_0x502b0e[_0x3130d0]=_0x5a55f7[_0x3130d0];return _0x502b0e;},{});}function classNames(..._0x104c3e){const _0x520a64=normalize(..._0x104c3e);return Object['keys'](_0x520a64)['reduce']((_0x1610c0,_0x385642)=>(_0x520a64[_0x385642]&&_0x1610c0['push'](_0x385642),_0x1610c0),[])['join']('\x20');}function applyClassNames(_0x883d18,..._0x758c46){const _0x21729d=normalize(..._0x758c46);for(const _0x4a6361 of Object['keys'](_0x21729d))_0x883d18['classList']['toggle'](_0x4a6361,Boolean(_0x21729d[_0x4a6361]));}var isTabIdValue=_0x53c179=>ALL_TABS['includes'](_0x53c179),parseTabs=_0x441604=>{if(!_0x441604)return ALL_TABS;const _0x537db2=deserializeCsv(_0x441604)['filter'](isTabIdValue);return 0x0===_0x537db2['length']?ALL_TABS:_0x537db2;};function initState(_0x2bd05f){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 _0x145922=_0x2bd05f['querySelectorAll']('img');for(const _0x35e601 of _0x145922){const _0x19c3fd=_0x35e601['src'];_0x35e601['src']=TRANSPARENT_PIXEL_SRC,_0x35e601['src']=_0x19c3fd;}_0x2bd05f['$']['*networkProblems']=!0x1;},'*on.apply':_0xa646ba=>{if(!_0xa646ba)return;const _0xc38277=_0x2bd05f['$']['*originalUrl'],_0x27a670=createCdnUrlModifiers(transformationsToOperations(_0xa646ba),'preview'),_0x507c84={'originalUrl':_0xc38277,'cdnUrlModifiers':_0x27a670,'cdnUrl':createCdnUrl(_0xc38277,_0x27a670),'transformations':_0xa646ba};_0x2bd05f['dispatchEvent'](new CustomEvent('apply',{'detail':_0x507c84,'bubbles':!0x0,'composed':!0x0})),_0x2bd05f['remove']();},'*on.cancel':()=>{_0x2bd05f['remove'](),_0x2bd05f['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'](_0x4cf477){this['$']['showLoader']=_0x4cf477;}['_waitForSize'](){return new Promise((_0x54db6f,_0x1dbee1)=>{const _0x83638=window['setTimeout'](()=>{_0x1dbee1(new Error('[cloud-image-editor]\x20timeout\x20waiting\x20for\x20non-zero\x20container\x20size'));},0xbb8),_0xaeff36=new ResizeObserver(_0x3eaa8f=>{const [_0x4649d1]=_0x3eaa8f;_0x4649d1&&_0x4649d1['contentRect']['width']>0x0&&_0x4649d1['contentRect']['height']>0x0&&(window['clearTimeout'](_0x83638),_0xaeff36['disconnect'](),window['setTimeout'](()=>_0x54db6f(),0x0));});_0xaeff36['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 _0x1de8f6=this['$']['cdnUrl'],_0x5746fd=extractUuid(_0x1de8f6),_0x7902fc=createOriginalUrl(_0x1de8f6,_0x5746fd);if(_0x7902fc===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x7902fc;const _0x139114=operationsToTransformations(extractOperations(_0x1de8f6));this['$']['*editorTransformations']=_0x139114;}else{if(!this['$']['uuid'])throw new Error('No\x20UUID\x20nor\x20CDN\x20URL\x20provided');{const _0x192871=createOriginalUrl(this['cfg']['cdnCname'],this['$']['uuid']);if(_0x192871===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x192871,this['$']['*editorTransformations']={};}}this['$']['*tabId']===TabId['CROP']?this['$']['*cropperEl']?.['deactivate']({'reset':!0x0}):this['$']['*faderEl']?.['deactivate']();try{const _0xfcd0fa=this['$']['*originalUrl'],_0x5978a8=await this['proxyUrl'](createCdnUrl(_0xfcd0fa,createCdnUrlModifiers('json'))),_0x3104b4=await fetch(_0x5978a8)['then'](_0x5f0a97=>_0x5f0a97['json']()),{width:_0x5bf66,height:_0x4e6b71}=_0x3104b4;this['$']['*imageSize']={'width':_0x5bf66,'height':_0x4e6b71},this['$']['*tabId']===TabId['CROP']?this['$']['*cropperEl']?.['activate'](this['$']['*imageSize']):this['$']['*faderEl']?.['activate']({'url':_0xfcd0fa});}catch(_0x2dea9c){_0x2dea9c&&(this['telemetryManager']['sendEventError'](_0x2dea9c,'cloud\x20editor\x20image.\x20Failed\x20to\x20load\x20image\x20info'),console['error']('Failed\x20to\x20load\x20image\x20info',_0x2dea9c));}}}async['initEditor'](){try{await this['_waitForSize']();}catch(_0x2a1e58){return void(this['isConnected']&&console['error'](_0x2a1e58['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',_0x52b9bb=>{const _0x3d4a0a=this['ref']['img-el'];_0x3d4a0a['src']!==_0x52b9bb&&(_0x3d4a0a['src']=_0x52b9bb||TRANSPARENT_PIXEL_SRC);}),this['sub']('tabs',_0x5a1f99=>{this['$']['*tabList']=parseTabs(_0x5a1f99);}),this['sub']('*tabId',_0x398370=>{this['ref']['img-el']['className']=classNames('uc-image',{'uc-image_hidden_to_cropper':_0x398370===TabId['CROP'],'uc-image_hidden_effects':_0x398370!==TabId['CROP']});}),this['classList']['add']('uc-editor_ON'),this['sub']('*networkProblems',_0x2855bf=>{this['$']['presence.networkProblems']=_0x2855bf,this['$']['presence.modalCaption']=!_0x2855bf;}),this['sub']('*editorTransformations',_0x49844e=>{if(0x0===Object['keys'](_0x49844e)['length'])return;const _0x1f0ea8=this['$']['*originalUrl'],_0x4470b5=createCdnUrlModifiers(transformationsToOperations(_0x49844e),'preview'),_0x1f0b01={'originalUrl':_0x1f0ea8,'cdnUrlModifiers':_0x4470b5,'cdnUrl':createCdnUrl(_0x1f0ea8,_0x4470b5),'transformations':_0x49844e};this['dispatchEvent'](new CustomEvent('change',{'detail':_0x1f0b01,'bubbles':!0x0,'composed':!0x0}));},!0x1),this['sub']('uuid',_0x3b2d5f=>_0x3b2d5f&&this['updateImage']()),this['sub']('cdnUrl',_0x190dcd=>_0x190dcd&&this['updateImage']()),this['sub']('cropPreset',_0x270109=>{const _0x3d4e3d=parseCropPreset(_0x270109);let _0x5055c0=null;if(this['$']['cdnUrl']){const _0x1ffc8a=operationsToTransformations(extractOperations(this['$']['cdnUrl']));if(Array['isArray'](_0x1ffc8a?.['crop']?.['dimensions'])){const [_0x3c2205,_0x405724]=_0x1ffc8a['crop']['dimensions'];_0x5055c0=getClosestAspectRatio(_0x3c2205,_0x405724,_0x3d4e3d,0.1);}}this['$']['*cropPresetList']=_0x3d4e3d,this['$']['*currentAspectRatio']=_0x5055c0??_0x3d4e3d?.[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'](_0xe9d52e){const _0x5cbf11=this['$']['*imageBox'];if(!_0x5cbf11)return!0x1;if(''===_0xe9d52e&&_0x5cbf11['height']<=MIN_CROP_SIZE&&_0x5cbf11['width']<=MIN_CROP_SIZE)return!0x0;const _0x1f636f=_0x5cbf11['height']<=MIN_CROP_SIZE&&(_0xe9d52e['includes']('n')||_0xe9d52e['includes']('s')),_0x16e22f=_0x5cbf11['width']<=MIN_CROP_SIZE&&(_0xe9d52e['includes']('e')||_0xe9d52e['includes']('w'));return _0x1f636f||_0x16e22f;}['_createBackdrop'](){const _0x226cd1=this['$']['*cropBox'];if(!_0x226cd1)return;const {x:_0xdfc5f9,y:_0x4d22c7,width:_0x15ab77,height:_0x1e9dc5}=_0x226cd1,_0x2b054f=this['ref']['svg-el'],_0x289c81=createSvgNode('mask',{'id':this['_backdropMaskId']}),_0x1a1453=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'white'}),_0x2159a2=createSvgNode('rect',{'x':_0xdfc5f9,'y':_0x4d22c7,'width':_0x15ab77,'height':_0x1e9dc5,'fill':'black'});_0x289c81['appendChild'](_0x1a1453),_0x289c81['appendChild'](_0x2159a2);const _0x53871a=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'var(--color-image-background)','fill-opacity':0.85,'mask':'url(#'+this['_backdropMaskId']+')'});_0x2b054f['appendChild'](_0x53871a),_0x2b054f['appendChild'](_0x289c81),this['_backdropMask']=_0x289c81,this['_backdropMaskInner']=_0x2159a2;}['_resizeBackdrop'](){this['_backdropMask']&&(this['_backdropMask']['style']['display']='none',window['requestAnimationFrame'](()=>{this['_backdropMask']&&(this['_backdropMask']['style']['display']='block');}));}['_updateBackdrop'](){const _0x543906=this['$']['*cropBox'];if(!_0x543906)return;const {x:_0x4c397b,y:_0x438add,width:_0x18f2f5,height:_0x335eea}=_0x543906;this['_backdropMaskInner']&&setSvgNodeAttrs(this['_backdropMaskInner'],{'x':_0x4c397b,'y':_0x438add,'width':_0x18f2f5,'height':_0x335eea});}['_updateFrame'](){const _0x11540c=this['$']['*cropBox'];if(_0x11540c&&this['_frameGuides']&&this['_frameThumbs']){for(const _0x485e7b of Object['values'](this['_frameThumbs'])){if(!_0x485e7b)continue;const {direction:_0x1517d1,pathNode:_0x3f6745,interactionNode:_0x309acf,groupNode:_0x1ab37f}=_0x485e7b,_0x73b144=''===_0x1517d1,_0x96ba3f=0x2===_0x1517d1['length'],{x:_0x187295,y:_0x5f2977,width:_0x3bb88d,height:_0x2fed94}=_0x11540c;if(_0x73b144)setSvgNodeAttrs(_0x309acf,{'x':_0x187295,'y':_0x5f2977,'width':_0x3bb88d,'height':_0x2fed94});else{const _0x3040ec=clamp(Math['min'](_0x3bb88d,_0x2fed94)/(0x2*THUMB_CORNER_SIZE+THUMB_SIDE_SIZE)/0x2,0x0,0x1),_0x4ce224=_0x96ba3f?cornerPath(_0x11540c,_0x1517d1,_0x3040ec):sidePath(_0x11540c,_0x1517d1,_0x3040ec),_0xba9978=_0x4ce224['center'];if(!_0xba9978)continue;const _0x436e53=Math['max'](MAX_INTERACTION_SIZE*clamp(Math['min'](_0x3bb88d,_0x2fed94)/MAX_INTERACTION_SIZE/0x3,0x0,0x1),MIN_INTERACTION_SIZE);setSvgNodeAttrs(_0x309acf,{'x':_0xba9978[0x0]-_0x436e53,'y':_0xba9978[0x1]-_0x436e53,'width':0x2*_0x436e53,'height':0x2*_0x436e53}),setSvgNodeAttrs(_0x3f6745,{'d':_0x4ce224['d']});}const _0x12ef79=this['_shouldThumbBeDisabled'](_0x1517d1);_0x1ab37f['setAttribute']('class',classNames('uc-thumb',{'uc-thumb--hidden':_0x12ef79,'uc-thumb--visible':!_0x12ef79}));}setSvgNodeAttrs(this['_frameGuides'],{'x':_0x11540c['x']-0.5*GUIDE_STROKE_WIDTH,'y':_0x11540c['y']-0.5*GUIDE_STROKE_WIDTH,'width':_0x11540c['width']+GUIDE_STROKE_WIDTH,'height':_0x11540c['height']+GUIDE_STROKE_WIDTH});}}['_createThumb'](_0x3976c4,_0x87c8f1){const _0x5024ec=createSvgNode('g');_0x5024ec['classList']['add']('uc-thumb'),_0x5024ec['setAttribute']('with-effects','');const _0x4540c2=createSvgNode('rect',{'fill':'transparent'}),_0x56cf50=createSvgNode('path',{'stroke':'currentColor','fill':'none','stroke-width':THUMB_STROKE_WIDTH});_0x5024ec['appendChild'](_0x56cf50),_0x5024ec['appendChild'](_0x4540c2),_0x3976c4[_0x87c8f1]={'direction':_0x87c8f1,'pathNode':_0x56cf50,'interactionNode':_0x4540c2,'groupNode':_0x5024ec},''===_0x87c8f1&&(_0x5024ec['style']['cursor']='move'),_0x4540c2['addEventListener']('pointerdown',this['_handlePointerDown']['bind'](this,_0x87c8f1));}['_createThumbs'](){const _0x5c8c1b={};for(let _0x3ba38a=0x0;_0x3ba38a<0x3;_0x3ba38a++)for(let _0x263b11=0x0;_0x263b11<0x3;_0x263b11++){const _0x305fcf=''+['n','','s'][_0x3ba38a]+['w','','e'][_0x263b11];''!==_0x305fcf&&this['_createThumb'](_0x5c8c1b,_0x305fcf);}return this['_createThumb'](_0x5c8c1b,''),_0x5c8c1b;}['_createGuides'](){const _0x9b770e=createSvgNode('svg'),_0x531084=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'none','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.5});_0x9b770e['appendChild'](_0x531084);for(let _0x5a9249=0x1;_0x5a9249<=0x2;_0x5a9249++){const _0x382ca6=createSvgNode('line',{'x1':GUIDE_THIRD*_0x5a9249+'%','y1':'0%','x2':GUIDE_THIRD*_0x5a9249+'%','y2':'100%','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.3});_0x9b770e['appendChild'](_0x382ca6);}for(let _0x54edc3=0x1;_0x54edc3<=0x2;_0x54edc3++){const _0x1bea09=createSvgNode('line',{'x1':'0%','y1':GUIDE_THIRD*_0x54edc3+'%','x2':'100%','y2':GUIDE_THIRD*_0x54edc3+'%','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.3});_0x9b770e['appendChild'](_0x1bea09);}return _0x9b770e['classList']['add']('uc-guides','uc-guides--semi-hidden'),_0x9b770e;}['_createFrame'](){const _0x37bd99=this['ref']['svg-el'],_0x55765d=document['createDocumentFragment'](),_0x54a4c9=this['_createGuides']();_0x55765d['appendChild'](_0x54a4c9);const _0x454828=this['_createThumbs']();for(const {groupNode:_0x5c1aae}of Object['values'](_0x454828))_0x55765d['appendChild'](_0x5c1aae);_0x37bd99['appendChild'](_0x55765d),this['_frameThumbs']=_0x454828,this['_frameGuides']=_0x54a4c9;}['_handlePointerDown'](_0x15295c,_0x137c7d){if(!this['_frameThumbs'])return;const _0x275d74=this['_frameThumbs'][_0x15295c];if(!_0x275d74)return;if(this['_shouldThumbBeDisabled'](_0x15295c))return;const _0x590df3=this['$']['*cropBox'],_0x36ea6c=this['ref']['svg-el'],{x:_0x1f7d59,y:_0x506e90}=_0x36ea6c['getBoundingClientRect'](),_0x1b9a15=_0x137c7d['x']-_0x1f7d59,_0x78f10c=_0x137c7d['y']-_0x506e90;this['$']['dragging']=!0x0,this['_draggingThumb']=_0x275d74,this['_dragStartPoint']=[_0x1b9a15,_0x78f10c],this['_dragStartCrop']={..._0x590df3};}['_handlePointerUp_'](_0x2a2335){this['_updateCursor'](),this['$']['dragging']&&(_0x2a2335['stopPropagation'](),_0x2a2335['preventDefault'](),this['$']['dragging']=!0x1);}['_handlePointerMove_'](_0x609230){if(!this['$']['dragging']||!this['_dragStartPoint']||!this['_draggingThumb'])return;_0x609230['stopPropagation'](),_0x609230['preventDefault']();const _0x2cc237=this['ref']['svg-el'],{x:_0x2a9953,y:_0x219a0e}=_0x2cc237['getBoundingClientRect'](),_0x5110fd=_0x609230['x']-_0x2a9953,_0x32d053=_0x609230['y']-_0x219a0e,_0x50ae9e=_0x5110fd-this['_dragStartPoint'][0x0],_0x2e04ba=_0x32d053-this['_dragStartPoint'][0x1],{direction:_0x1993f9}=this['_draggingThumb'],_0x395010=this['_calcCropBox'](_0x1993f9,[_0x50ae9e,_0x2e04ba]);_0x395010&&(this['$']['*cropBox']=_0x395010);}['_calcCropBox'](_0x5c27a7,_0x333904){const [_0x5a07cc,_0x3d0cd7]=_0x333904,_0x441e0f=this['$']['*imageBox'];let _0x4e3c95=this['_dragStartCrop']??this['$']['*cropBox'];const _0x210779=this['$']['*currentAspectRatio'],_0x1565f2=_0x210779?_0x210779['width']/_0x210779['height']:void 0x0;if(_0x4e3c95=''===_0x5c27a7?moveRect({'rect':_0x4e3c95,'delta':[_0x5a07cc,_0x3d0cd7],'imageBox':_0x441e0f}):resizeRect({'rect':_0x4e3c95,'delta':[_0x5a07cc,_0x3d0cd7],'direction':_0x5c27a7,'aspectRatio':_0x1565f2,'imageBox':_0x441e0f}),Object['values'](_0x4e3c95)['every'](_0x34a2f7=>Number['isFinite'](_0x34a2f7)&&_0x34a2f7>=0x0))return constraintRect(roundRect(_0x4e3c95),_0x441e0f);console['error']('CropFrame\x20is\x20trying\x20to\x20create\x20invalid\x20rectangle',{'payload':_0x4e3c95});}['_handleSvgPointerMove_'](_0x18283f){if(!this['_frameThumbs'])return;const _0x207473=Object['values'](this['_frameThumbs'])['find'](_0x55b24f=>{if(!_0x55b24f)return!0x1;if(this['_shouldThumbBeDisabled'](_0x55b24f['direction']))return!0x1;const _0x271c57=_0x55b24f['interactionNode']['getBoundingClientRect']();return rectContainsPoint({'x':_0x271c57['x'],'y':_0x271c57['y'],'width':_0x271c57['width'],'height':_0x271c57['height']},[_0x18283f['x'],_0x18283f['y']]);});this['_hoverThumb']=_0x207473,this['_updateCursor']();}['_updateCursor'](){const _0x153373=this['_hoverThumb'];this['ref']['svg-el']['style']['cursor']=_0x153373?thumbCursor(_0x153373['direction']):'initial';}['_createMask'](_0x9ac70d){if(this['_frameImage'])return void this['_frameImage']['setAttribute']('href',_0x9ac70d);const _0x1f11f2=this['ref']['svg-el'],_0x295117=document['createDocumentFragment'](),_0x73598e=createSvgNode('image',{'href':_0x9ac70d});_0x73598e['setAttribute']('class','uc-cloud-mask'),_0x295117['appendChild'](_0x73598e),_0x1f11f2['appendChild'](_0x295117),this['_frameImage']=_0x73598e;}['_updateMask'](){const _0x532dc5=this['$']['*cropBox'];if(!_0x532dc5||!this['_frameImage'])return;const {x:_0x4776e8,y:_0x4d46d7,width:_0xe759e5,height:_0xccbfa4}=_0x532dc5;setSvgNodeAttrs(this['_frameImage'],{'x':_0x4776e8,'y':_0x4d46d7,'height':_0xccbfa4,'width':_0xe759e5});}['_render'](){this['_updateBackdrop'](),this['_updateFrame'](),this['_updateMask']();}['toggleThumbs'](_0x26c054){if(this['_frameThumbs'])for(const _0x3ce7b0 of Object['values'](this['_frameThumbs'])){if(!_0x3ce7b0)continue;const {groupNode:_0x5940c1}=_0x3ce7b0;_0x5940c1['setAttribute']('class',classNames('uc-thumb',{'uc-thumb--hidden':!_0x26c054,'uc-thumb--visible':_0x26c054}));}}['initCallback'](){super['initCallback'](),this['_createBackdrop'](),this['_createFrame'](),this['sub']('*imageBox',()=>{this['_resizeBackdrop'](),window['requestAnimationFrame'](()=>{this['_render']();});}),this['sub']('*cropBox',_0x3c4122=>{_0x3c4122&&(this['_guidesHidden']=_0x3c4122['height']<=MIN_CROP_SIZE||_0x3c4122['width']<=MIN_CROP_SIZE,window['requestAnimationFrame'](()=>{this['_render']();}));}),this['subConfigValue']('cloudImageEditorMaskHref',_0x5cafcb=>{_0x5cafcb&&this['_createMask'](_0x5cafcb);}),this['sub']('dragging',_0x3395df=>{this['_frameGuides']&&this['_frameGuides']['setAttribute']('class',classNames({'uc-guides--hidden':this['_guidesHidden'],'uc-guides--visible':!this['_guidesHidden']&&_0x3395df,'uc-guides--semi-hidden':!this['_guidesHidden']&&!_0x3395df}));}),(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',_0x5a1c16=>{const _0x47ddfc=this['_titleEl'];_0x47ddfc&&(_0x47ddfc['style']['display']=_0x5a1c16?'block':'none');}),this['sub']('active',_0x18388a=>{this['className']=classNames({'uc-active':_0x18388a,'uc-not_active':!_0x18388a});}),this['sub']('on.click',_0x60843d=>{this['onclick']=_0x60843d??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=_0x18579a=>{let _0x217433=0xc,_0xe3b905=0xc;return _0x18579a['width']/_0x18579a['height']>=0x1?(_0x217433=SIZE_RECT_FIXED,_0xe3b905=Math['round'](SIZE_RECT_FIXED*_0x18579a['height']/_0x18579a['width'])):(_0xe3b905=SIZE_RECT_FIXED,_0x217433=Math['round'](SIZE_RECT_FIXED*_0x18579a['width']/_0x18579a['height'])),{'width':_0x217433,'height':_0xe3b905};},EditorFreeformButtonControl=class extends EditorButtonControl{['initCallback'](){super['initCallback'](),this['$']['icon']='arrow-dropdown',this['$']['on.click']=this['handleClick']['bind'](this),this['sub']('*currentAspectRatio',_0x240c25=>{this['$']['title']=_0x240c25['hasFreeform']?this['l10n']('freeform-crop'):this['l10n']('crop-to-shape',{'value':_0x240c25['width']+':'+_0x240c25['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',_0xd9bfd7=>{if(!_0xd9bfd7)return;const _0x2e1542=!!_0xd9bfd7['hasFreeform'];this['$']['title']=_0x2e1542?this['l10n']('custom'):_0xd9bfd7['width']+':'+_0xd9bfd7['height'],_0x2e1542||this['_renderRectBasedOnAspectRatio'](_0xd9bfd7),_0x2e1542&&this['setAttribute']('uc-aspect-ratio-freeform',''),this['_aspectRatio']=_0xd9bfd7,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-aspect-ratio',{'name':_0x2e1542?this['l10n']('custom')['toLowerCase']():this['l10n']('crop-to-shape',{'value':_0xd9bfd7['width']+':'+_0xd9bfd7['height']})['toLowerCase'](),'value':''}));}),this['sub']('*currentAspectRatio',_0x2f1901=>{this['$']['active']=_0x2f1901&&_0x2f1901['id']===this['_aspectRatio']?.['id']||_0x2f1901?.['width']===this['_aspectRatio']?.['width']&&_0x2f1901?.['height']===this['_aspectRatio']?.['height'];}),this['$']['on.click']=this['handleClick']['bind'](this);}['handleClick'](){const _0x5b6eb7=this['$']['*currentAspectRatio'];_0x5b6eb7?.['id']!==this['_aspectRatio']?.['id']&&(this['$']['*currentAspectRatio']=this['_aspectRatio']);}['_renderRectBasedOnAspectRatio'](_0x4d4165){const {width:_0xad967b,height:_0x505bd6}=getAdjustResolutions(_0x4d4165),_0x28a70c=createSvgNode('rect',{'stroke-linejoin':'round','fill':'none','stroke':'currentColor','stroke-width':1.2,'fill-rule':'evenodd','x':(SIZE_SVG_WRAPPER-_0xad967b)/0x2,'y':(SIZE_SVG_WRAPPER-_0x505bd6)/0x2,'rx':0x2,'width':_0xad967b,'height':_0x505bd6}),_0x244663=this['ref']['icon-el']?.['ref']?.['svg'];_0x244663&&(_0x244663['innerHTML']='',_0x244663['appendChild'](_0x28a70c));}['_aspectRatio'];};function nextAngle(_0x3f31fb){let _0x550229=_0x3f31fb+0x5a;return _0x550229=_0x550229>=0x168?0x0:_0x550229,_0x550229;}function nextValue(_0x3942d4,_0x10f1a7){if('rotate'===_0x3942d4)return nextAngle('number'==typeof _0x10f1a7?_0x10f1a7:0x0);if('mirror'===_0x3942d4||'flip'===_0x3942d4)return!_0x10f1a7;throw new Error('Unsupported\x20operation:\x20'+_0x3942d4);}var EditorCropButtonControl=class extends EditorButtonControl{['_operation']=void 0x0;['initCallback'](){super['initCallback'](),this['defineAccessor']('operation',_0x1bebb2=>{_0x1bebb2&&(this['_operation']=_0x1bebb2,this['$']['icon']=_0x1bebb2,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-crop',{'name':this['l10n'](_0x1bebb2)['toLowerCase']()})));}),this['$']['on.click']=_0x4d1363=>{if(!this['_operation'])return;const _0x2e3743=this['$']['*cropperEl'],_0x11f219=_0x2e3743['getValue'](this['_operation']),_0x333a9d=nextValue(this['_operation'],_0x11f219);this['telemetryManager']['sendEventCloudImageEditor'](_0x4d1363,this['$']['*tabId'],{'operation':this['_operation'],'next':_0x333a9d,'prev':_0x11f219}),_0x2e3743['setValue'](this['_operation'],_0x333a9d);};}};function preloadImage(_0x4e93d3){const _0x1d846=new Image();return{'promise':new Promise((_0x458453,_0xff896)=>{_0x1d846['src']=_0x4e93d3,_0x1d846['onload']=()=>_0x458453(),_0x1d846['onerror']=_0x1a8304=>_0xff896(_0x1a8304);}),'image':_0x1d846,'cancel':()=>{0x0===_0x1d846['naturalWidth']&&(_0x1d846['src']=TRANSPARENT_PIXEL_SRC);}};}function batchPreloadImages(_0x124654){const _0x4bc953=[];for(const _0xe08844 of _0x124654){const _0x5bfa86=preloadImage(_0xe08844);_0x4bc953['push'](_0x5bfa86);}const _0xf8c3d7=_0x4bc953['map'](_0x11a32f=>_0x11a32f['image']);return{'promise':Promise['allSettled'](_0x4bc953['map'](_0x3d8922=>_0x3d8922['promise'])),'images':_0xf8c3d7,'cancel':()=>{_0x4bc953['forEach'](_0x349259=>{_0x349259['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':_0xed8587=>{const _0x2ed7b1=this['$']['*faderEl'];_0x2ed7b1?.['set'](_0xed8587),this['$']['value']=_0xed8587;}};}['setOperation'](_0x302dbc,_0x287aee){this['_operation']=_0x302dbc,this['_filter']=_0x287aee,this['_initializeValues']();const _0x3c29db=this['$']['*faderEl'],_0x1e6414=this['_originalUrl']||this['$']['*originalUrl'];_0x3c29db&&_0x1e6414&&_0x3c29db['activate']({'url':_0x1e6414,'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 _0x1b4481=this['_operation'],{range:_0x53c286,zero:_0x4b0a3a}=COLOR_OPERATIONS_CONFIG[_0x1b4481],[_0x10023c,_0x1bca57]=_0x53c286;this['$']['min']=_0x10023c,this['$']['max']=_0x1bca57,this['$']['zero']=_0x4b0a3a;const _0x657944=this['$']['*editorTransformations'][_0x1b4481];if('filter'===_0x1b4481){let _0x2db960=Number(_0x1bca57);const _0x3f2cf5=_0x657944;if(_0x3f2cf5){const {name:_0x2bec29,amount:_0x311b0d}=_0x3f2cf5;_0x2db960=_0x2bec29===this['_filter']?_0x311b0d:_0x1bca57;}return this['$']['value']=_0x2db960,void(this['$']['defaultValue']=_0x2db960);}const _0x1f446d=void 0x0!==_0x657944?_0x657944:_0x4b0a3a;this['$']['value']=_0x1f446d,this['$']['defaultValue']=_0x1f446d;}['apply'](){const _0x42f1b1={...this['$']['*editorTransformations']};'filter'===this['_operation']?this['_filter']&&this['_filter']!==FAKE_ORIGINAL_FILTER?_0x42f1b1['filter']={'name':this['_filter'],'amount':this['$']['value']}:delete _0x42f1b1['filter']:_0x42f1b1[this['_operation']]=this['$']['value'],this['$']['*editorTransformations']=_0x42f1b1;}['cancel'](){const _0x2fe390=this['$']['*faderEl'];_0x2fe390?.['deactivate']({'hide':!0x1});}['initCallback'](){super['initCallback'](),this['sub']('*originalUrl',_0x4d207c=>{this['_originalUrl']=_0x4d207c;}),this['sub']('value',_0x36ba69=>{const _0xb4250a=(this['_filter']??this['_operation'])+'\x20'+_0x36ba69;this['$']['*operationTooltip']=_0xb4250a;});}};function parseFilterValue(_0x4f5c62){const _0x57516b=_0x4f5c62['match'](/^([A-Za-z]+)\s+(\d+)$/);if(!_0x57516b)return null;const [,_0x409d36,_0x35c3c5]=_0x57516b;return _0x409d36&&void 0x0!==_0x35c3c5?{'filter':_0x409d36,'value':Number(_0x35c3c5)}: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 _0x16ea99=parseInt(window['getComputedStyle'](this)['getPropertyValue']('--l-base-min-width'),0xa),_0x57229f=window['devicePixelRatio'],_0x1849ae=Math['ceil'](_0x57229f*_0x16ea99),_0x100b0b=_0x57229f>=0x2?'lightest':'normal',_0x3a908c={...this['$']['*editorTransformations']};return _0x3a908c[this['_operation']]=this['_filter']!==FAKE_ORIGINAL_FILTER?{'name':this['_filter'],'amount':0x64}:void 0x0,createCdnUrl(this['_originalUrl'],createCdnUrlModifiers(COMMON_OPERATIONS,transformationsToOperations(_0x3a908c),'quality/'+_0x100b0b,'scale_crop/'+_0x1849ae+'x'+_0x1849ae+'/center'));}async['_observerCallback'](_0x508efe,_0x760f84){const _0x342242=_0x508efe[0x0];if(_0x342242?.['isIntersecting']){const _0x5e5811=await this['proxyUrl'](this['_previewSrc']()),_0x15286b=this['ref']['preview-el'],{promise:_0x13f541,cancel:_0x3561f3}=preloadImage(_0x5e5811);this['_cancelPreload']=_0x3561f3,_0x13f541['catch'](_0x535e33=>{this['$']['*networkProblems']=!0x0,console['error']('Failed\x20to\x20load\x20image',{'error':_0x535e33});})['finally'](()=>{_0x15286b['style']['backgroundImage']='url('+_0x5e5811+')',_0x15286b['setAttribute']('loaded',''),_0x760f84['unobserve'](this);});}else this['_cancelPreload']?.();}['initCallback'](){super['initCallback'](),this['$']['on.click']=_0x15d449=>{if(this['$']['active'])!this['$']['isOriginal']&&(this['$']['*sliderEl']['setOperation'](this['_operation'],this['_filter']),this['$']['*showSlider']=!0x0);else{const _0x4ab79a=this['$']['*sliderEl'];_0x4ab79a['setOperation'](this['_operation'],this['_filter']),_0x4ab79a['apply']();}this['telemetryManager']['sendEventCloudImageEditor'](_0x15d449,this['$']['*tabId'],{'operation':parseFilterValue(this['$']['*operationTooltip'])}),this['$']['*currentFilter']=this['_filter'];},this['defineAccessor']('filter',_0x5f41d8=>{this['_operation']='filter',this['_filter']=_0x5f41d8,this['$']['isOriginal']=_0x5f41d8===FAKE_ORIGINAL_FILTER,this['$']['icon']=this['$']['isOriginal']?'original':'slider',this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-filter',{'name':_0x5f41d8['toLowerCase']()}));}),this['_observer']=new window['IntersectionObserver'](this['_observerCallback']['bind'](this),{'threshold':[0x0,0x1]});const _0x4a0fd6=this['$']['*originalUrl'];if(this['_originalUrl']=_0x4a0fd6,this['$']['isOriginal'])this['ref']['icon-el']['classList']['add']('uc-original-icon');else this['_observer']['observe'](this);this['sub']('*currentFilter',_0x22785f=>{this['$']['active']=_0x22785f&&_0x22785f===this['_filter'];}),this['sub']('isOriginal',_0x41d41c=>{this['$']['iconSize']=_0x41d41c?0x28:0x14;}),this['sub']('active',_0x198b57=>{if(this['$']['isOriginal'])return;this['ref']['icon-el']['style']['opacity']=_0x198b57?'1':'0';const _0x5cb63e=this['ref']['preview-el'];_0x198b57?_0x5cb63e['style']['opacity']='0':_0x5cb63e['style']['backgroundImage']&&(_0x5cb63e['style']['opacity']='1');}),this['sub']('*networkProblems',async _0x19da08=>{if(!_0x19da08){const _0x141ff0=await this['proxyUrl'](this['_previewSrc']()),_0x14d92d=this['ref']['preview-el'];_0x14d92d['style']['backgroundImage']&&(_0x14d92d['style']['backgroundImage']='none',_0x14d92d['style']['backgroundImage']='url('+_0x141ff0+')');}});}['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=(_0x53a0df,_0x3ac935)=>{let _0xb248cb,_0x114d6c=!0x1,_0x16fd8a=0x0;const _0x48b4e6=(..._0x50b48c)=>{_0x114d6c?(_0xb248cb&&clearTimeout(_0xb248cb),_0xb248cb=setTimeout(()=>{Date['now']()-_0x16fd8a>=_0x3ac935&&(_0x53a0df(..._0x50b48c),_0x16fd8a=Date['now']());},Math['max'](_0x3ac935-(Date['now']()-_0x16fd8a),0x0))):(_0x53a0df(..._0x50b48c),_0x16fd8a=Date['now'](),_0x114d6c=!0x0);};return Object['defineProperty'](_0x48b4e6,'cancel',{'configurable':!0x1,'writable':!0x1,'enumerable':!0x1,'value':()=>{_0xb248cb&&clearTimeout(_0xb248cb);}}),_0x48b4e6;};function pick(_0x44418e,_0x466e69){const _0x8c8740={};for(const _0xa9a309 of _0x466e69){const _0x132a41=_0x44418e[_0xa9a309];(Object['hasOwn'](_0x44418e,_0xa9a309)||void 0x0!==_0x132a41)&&(_0x8c8740[_0xa9a309]=_0x132a41);}return _0x8c8740;}function viewerImageSrc(_0x54b2b9,_0x821bf1,_0x55f32){const _0x48d744=window['devicePixelRatio'],_0x3569c4=Math['min'](Math['ceil'](_0x821bf1*_0x48d744),0xbb8),_0x162400=_0x48d744>=0x2?'lightest':'normal';return createCdnUrl(_0x54b2b9,createCdnUrlModifiers(COMMON_OPERATIONS,transformationsToOperations(_0x55f32),'quality/'+_0x162400,'stretch/off/-/resize/'+_0x3569c4+'x','@clib/'+PACKAGE_NAME+'/'+PACKAGE_VERSION+'/uc-cloud-image-editor/'));}function validateCrop(_0x426ea5){if(!_0x426ea5)return!0x0;const _0x4c567e=[({dimensions:_0x56ca0f,coords:_0x538030})=>[..._0x56ca0f,..._0x538030]['every'](_0x18c7a6=>Number['isInteger'](_0x18c7a6)&&Number['isFinite'](_0x18c7a6)),({dimensions:_0x28525f,coords:_0x3f3dd8})=>_0x28525f['every'](_0x2567c1=>_0x2567c1>0x0)&&_0x3f3dd8['every'](_0x459e6=>_0x459e6>=0x0)];return _0x4c567e['every'](_0xf662f=>_0xf662f(_0x426ea5));}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 _0x142929=pick(this['$']['*editorTransformations'],Object['keys'](this['$']['*operations'])),_0x221098={...this['$']['*operations'],..._0x142929};this['$']['*operations']=_0x221098;}['_initCanvas'](){const _0x2742cc=this['ref']['canvas-el'],_0x579471=_0x2742cc['getContext']('2d'),_0x4b14c2=this['offsetWidth'],_0x5e5c4d=this['offsetHeight'],_0x35d992=window['devicePixelRatio'];_0x2742cc['style']['width']=_0x4b14c2+'px',_0x2742cc['style']['height']=_0x5e5c4d+'px',_0x2742cc['width']=_0x4b14c2*_0x35d992,_0x2742cc['height']=_0x5e5c4d*_0x35d992,_0x579471?.['scale'](_0x35d992,_0x35d992),this['_canvas']=_0x2742cc,this['_ctx']=_0x579471;}['_alignImage'](){if(!this['_isActive']||!this['$']['image'])return;const _0x1afde1=this['$']['image'],_0x4ee848=this['$']['*padding'],_0x3ba1aa=this['$']['*operations'],{rotate:_0x108b52}=_0x3ba1aa,_0x275f1a=this['offsetWidth'],_0x2cd35f=this['offsetHeight'],_0x2c0c44=rotateSize({'width':_0x1afde1['naturalWidth'],'height':_0x1afde1['naturalHeight']},_0x108b52);let _0xb89aa7;if(_0x2c0c44['width']>_0x275f1a-0x2*_0x4ee848||_0x2c0c44['height']>_0x2cd35f-0x2*_0x4ee848){const _0x54fa00=_0x2c0c44['width']/_0x2c0c44['height'];if(_0x54fa00>_0x275f1a/_0x2cd35f){const _0x183b9a=_0x275f1a-0x2*_0x4ee848,_0x3f36c7=_0x183b9a/_0x54fa00;_0xb89aa7={'x':0x0+_0x4ee848,'y':_0x4ee848+(_0x2cd35f-0x2*_0x4ee848)/0x2-_0x3f36c7/0x2,'width':_0x183b9a,'height':_0x3f36c7};}else{const _0x27bbe9=_0x2cd35f-0x2*_0x4ee848,_0xa09034=_0x27bbe9*_0x54fa00;_0xb89aa7={'x':_0x4ee848+(_0x275f1a-0x2*_0x4ee848)/0x2-_0xa09034/0x2,'y':0x0+_0x4ee848,'width':_0xa09034,'height':_0x27bbe9};}}else{const {width:_0x18bb1a,height:_0x4c9ca1}=_0x2c0c44;_0xb89aa7={'x':_0x4ee848+(_0x275f1a-0x2*_0x4ee848)/0x2-_0x18bb1a/0x2,'y':_0x4ee848+(_0x2cd35f-0x2*_0x4ee848)/0x2-_0x4c9ca1/0x2,'width':_0x18bb1a,'height':_0x4c9ca1};}this['$']['*imageBox']=roundRect(_0xb89aa7);}['_alignCrop'](){let _0x16ecbf=this['$']['*cropBox'];const _0x19fbff=this['$']['*imageBox'],_0x4b4b34=this['$']['*operations'],{rotate:_0x11f223}=_0x4b4b34,_0x365447=this['$']['*editorTransformations']['crop'],{width:_0x181435,x:_0x4c1874,y:_0xe8067e}=_0x19fbff;if(_0x365447){const {dimensions:[_0x41cb4f,_0x302c1b],coords:[_0x5cb44e,_0x525c53]}=_0x365447,{width:_0x291a93}=rotateSize(this['_imageSize'],_0x11f223),_0x406432=_0x181435/_0x291a93;_0x16ecbf=constraintRect(roundRect({'x':_0x4c1874+_0x5cb44e*_0x406432,'y':_0xe8067e+_0x525c53*_0x406432,'width':_0x41cb4f*_0x406432,'height':_0x302c1b*_0x406432}),_0x19fbff);}const _0x12cc87=this['$']['*currentAspectRatio'],_0x17865a=_0x12cc87?_0x12cc87['width']/_0x12cc87['height']:void 0x0;if(!isRectInsideRect(_0x16ecbf,_0x19fbff)||_0x17865a&&!isRectMatchesAspectRatio(_0x16ecbf,_0x17865a)){const _0x2d1e99=_0x19fbff['width']/_0x19fbff['height'];let _0x447ee6=_0x19fbff['width'],_0x8c736c=_0x19fbff['height'];_0x17865a&&(_0x2d1e99>_0x17865a?_0x447ee6=Math['min'](_0x19fbff['height']*_0x17865a,_0x19fbff['width']):_0x8c736c=Math['min'](_0x19fbff['width']/_0x17865a,_0x19fbff['height'])),_0x16ecbf={'x':_0x19fbff['x']+_0x19fbff['width']/0x2-_0x447ee6/0x2,'y':_0x19fbff['y']+_0x19fbff['height']/0x2-_0x8c736c/0x2,'width':_0x447ee6,'height':_0x8c736c};}this['$']['*cropBox']=constraintRect(roundRect(_0x16ecbf),_0x19fbff);}['_drawImage'](){const _0x4fa223=this['_ctx'];if(!_0x4fa223)return;const _0x432a06=this['$']['image'],_0x7a8fac=this['$']['*imageBox'],_0x2c22ab=this['$']['*operations'],{mirror:_0x338e6,flip:_0x4745cf,rotate:_0x4613e9}=_0x2c22ab,_0xeab934=rotateSize({'width':_0x7a8fac['width'],'height':_0x7a8fac['height']},_0x4613e9);_0x4fa223['save'](),_0x4fa223['translate'](_0x7a8fac['x']+_0x7a8fac['width']/0x2,_0x7a8fac['y']+_0x7a8fac['height']/0x2),_0x4fa223['rotate'](_0x4613e9*Math['PI']*-0x1/0xb4),_0x4fa223['scale'](_0x338e6?-0x1:0x1,_0x4745cf?-0x1:0x1),_0x4fa223['drawImage'](_0x432a06,-_0xeab934['width']/0x2,-_0xeab934['height']/0x2,_0xeab934['width'],_0xeab934['height']),_0x4fa223['restore']();}['_draw'](){if(!(this['_isActive']&&this['$']['image']&&this['_canvas']&&this['_ctx']))return;const _0x3113df=this['_canvas'];this['_ctx']['clearRect'](0x0,0x0,_0x3113df['width'],_0x3113df['height']),this['_drawImage']();}['_animateIn']({fromViewer:_0xb5f7fc}){this['$']['image']&&(this['ref']['frame-el']['toggleThumbs'](!0x0),this['_transitionToImage'](),setTimeout(()=>{this['className']=classNames({'uc-active_from_viewer':_0xb5f7fc,'uc-active_from_editor':!_0xb5f7fc,'uc-inactive_to_editor':!0x1});}));}['_getCropDimensions'](){const _0x3f490a=this['$']['*cropBox'],_0x576cab=this['$']['*imageBox'],_0x50c99c=this['$']['*operations'],{rotate:_0x46c423}=_0x50c99c,{width:_0x3ee021,height:_0x54fc4d}=_0x576cab,{width:_0x5c6926,height:_0x1607ea}=rotateSize(this['_imageSize'],_0x46c423),{width:_0x428401,height:_0x223633}=_0x3f490a,_0x2c96ec=_0x3ee021/_0x5c6926,_0x1f47ce=_0x54fc4d/_0x1607ea;return[clamp(Math['round'](_0x428401/_0x2c96ec),0x1,_0x5c6926),clamp(Math['round'](_0x223633/_0x1f47ce),0x1,_0x1607ea)];}['_getCropTransformation'](){const _0x341d4e=this['$']['*cropBox'],_0x533870=this['$']['*imageBox'],_0x959a9f=this['$']['*operations'],{rotate:_0x25050c}=_0x959a9f,{width:_0xb6ff3e,height:_0x56cef3,x:_0x1a624e,y:_0x2378fd}=_0x533870,{width:_0x1520ad,height:_0x3fc507}=rotateSize(this['_imageSize'],_0x25050c),{x:_0x79e96b,y:_0x28d072}=_0x341d4e,_0x4c650d=_0xb6ff3e/_0x1520ad,_0x2aa27c=_0x56cef3/_0x3fc507,_0x238c16=this['_getCropDimensions'](),_0x5af0ad={'dimensions':_0x238c16,'coords':[clamp(Math['round']((_0x79e96b-_0x1a624e)/_0x4c650d),0x0,_0x1520ad-_0x238c16[0x0]),clamp(Math['round']((_0x28d072-_0x2378fd)/_0x2aa27c),0x0,_0x3fc507-_0x238c16[0x1])]};if(validateCrop(_0x5af0ad)){if(_0x238c16[0x0]!==_0x1520ad||_0x238c16[0x1]!==_0x3fc507)return _0x5af0ad;}else console['error']('Cropper\x20is\x20trying\x20to\x20create\x20invalid\x20crop\x20object',{'payload':_0x5af0ad});}['_commit'](){if(!this['isConnected']||!this['_imageSize'])return;const _0x297cd4=this['$']['*operations'],{rotate:_0x5d9777,mirror:_0x369988,flip:_0x307a3f}=_0x297cd4,_0x3d2002=this['_getCropTransformation'](),_0x1e49a1={...this['$']['*editorTransformations'],'crop':_0x3d2002,'rotate':_0x5d9777,'mirror':_0x369988,'flip':_0x307a3f};this['$']['*editorTransformations']=_0x1e49a1;}['setValue'](_0x296784,_0x4a8c9c){this['$']['*operations']={...this['$']['*operations'],[_0x296784]:_0x4a8c9c},this['_isActive']&&(this['_alignImage'](),this['_alignCrop'](),this['_draw']());}['getValue'](_0x3db057){return this['$']['*operations'][_0x3db057];}async['activate'](_0xbf7dcc,{fromViewer:_0x38c68f}={}){if(!this['_isActive']){this['_isActive']=!0x0,this['_imageSize']=_0xbf7dcc,this['removeEventListener']('transitionend',this['_reset']);try{const _0x292273=this['$']['*originalUrl'],_0x5b3204=this['$']['*editorTransformations'];this['$']['image']=await this['_waitForImage'](_0x292273,_0x5b3204),this['_syncTransformations'](),this['_animateIn']({'fromViewer':_0x38c68f});}catch(_0x4fca9a){console['error']('Failed\x20to\x20activate\x20cropper',{'error':_0x4fca9a}),this['telemetryManager']['sendEventError'](_0x4fca9a,'cloud\x20editor\x20image.\x20Failed\x20to\x20activate\x20cropper');}this['_observer']=new ResizeObserver(_0x4a13d0=>{const [_0x11063d]=_0x4a13d0;if(!_0x11063d)return;_0x11063d['contentRect']['width']>0x0&&_0x11063d['contentRect']['height']>0x0&&this['_isActive']&&this['$']['image']&&this['_handleResizeThrottled']();}),this['_observer']['observe'](this);}}['deactivate']({reset:_0x28cb18=!0x1}={}){this['_isActive']&&(!_0x28cb18&&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 _0x85bce6=this['_getCropDimensions'](),_0x2a1cf1=this['$']['*cropBox'],_0x23c3fb=Math['min'](this['offsetWidth'],_0x85bce6[0x0])/_0x2a1cf1['width'],_0x2d7b28=Math['min'](this['offsetHeight'],_0x85bce6[0x1])/_0x2a1cf1['height'],_0x4b4163=Math['min'](_0x23c3fb,_0x2d7b28),_0x385ce2=_0x2a1cf1['x']+_0x2a1cf1['width']/0x2,_0x3ac21f=_0x2a1cf1['y']+_0x2a1cf1['height']/0x2;this['style']['transform']='scale('+_0x4b4163+')\x20translate('+(this['offsetWidth']/0x2-_0x385ce2)/_0x4b4163+'px,\x20'+(this['offsetHeight']/0x2-_0x3ac21f)/_0x4b4163+'px)',this['style']['transformOrigin']=_0x385ce2+'px\x20'+_0x3ac21f+'px';}['_transitionToImage'](){const _0x5881f4=this['$']['*cropBox'],_0x12e7f8=_0x5881f4['x']+_0x5881f4['width']/0x2,_0x2b8d9d=_0x5881f4['y']+_0x5881f4['height']/0x2;this['style']['transform']='scale(1)',this['style']['transformOrigin']=_0x12e7f8+'px\x20'+_0x2b8d9d+'px';}['_reset'](){this['_isActive']||(this['$']['image']=null);}async['_waitForImage'](_0x20f09b,_0x2fb56e){const _0x34e802=this['offsetWidth'];_0x2fb56e={..._0x2fb56e,'crop':void 0x0,'rotate':void 0x0,'flip':void 0x0,'mirror':void 0x0};const _0x102bf6=await this['proxyUrl'](viewerImageSrc(_0x20f09b,_0x34e802,_0x2fb56e)),{promise:_0x3eef80,cancel:_0x1b9106,image:_0x3e9527}=preloadImage(_0x102bf6),_0x5ce1d6=this['_handleImageLoading'](_0x102bf6);return _0x3e9527['addEventListener']('load',_0x5ce1d6,{'once':!0x0}),_0x3e9527['addEventListener']('error',_0x5ce1d6,{'once':!0x0}),this['_cancelPreload']?.(),this['_cancelPreload']=_0x1b9106,_0x3eef80['then'](()=>_0x3e9527)['catch'](_0x5cce0e=>(console['error']('Failed\x20to\x20load\x20image',{'error':_0x5cce0e}),this['$']['*networkProblems']=!0x0,_0x3e9527));}['_handleImageLoading'](_0x38ec84){const _0x3726e4='crop',_0x48b8c8=this['$']['*loadingOperations'];let _0x1a5a28=_0x48b8c8['get'](_0x3726e4);return _0x1a5a28||(_0x1a5a28=new Map(),_0x48b8c8['set'](_0x3726e4,_0x1a5a28)),_0x1a5a28['get'](_0x38ec84)||(_0x1a5a28['set'](_0x38ec84,!0x0),this['$']['*loadingOperations']=_0x48b8c8),()=>{const _0x272045=_0x48b8c8['get'](_0x3726e4);_0x272045?.['has'](_0x38ec84)&&(_0x272045['delete'](_0x38ec84),this['$']['*loadingOperations']=_0x48b8c8);};}['initCallback'](){super['initCallback'](),this['sub']('*imageBox',()=>{this['_draw']();}),this['sub']('*cropBox',()=>{this['$']['image']&&this['_commitDebounced']();}),this['sub']('*currentAspectRatio',()=>{this['_alignCrop']();}),setTimeout(()=>{this['sub']('*networkProblems',_0xf50e52=>{_0xf50e52||this['_isActive']&&this['activate'](this['_imageSize'],{'fromViewer':!0x1});});},0x0);}['destroyCallback'](){super['destroyCallback'](),this['_observer']?.['disconnect']();}};function linspace(_0x36b63a,_0x2c792e,_0x3918f5){const _0x6d8f5d=_0x3918f5-0x1,_0x226475=new Array(_0x3918f5);for(let _0x43a77b=_0x6d8f5d;_0x43a77b>=0x0;_0x43a77b-=0x1)_0x226475[_0x43a77b]=Math['ceil']((_0x43a77b*_0x2c792e+(_0x6d8f5d-_0x43a77b)*_0x36b63a)/_0x6d8f5d);return _0x226475;}function isOperationKey(_0x4d82df){return'string'==typeof _0x4d82df&&_0x4d82df in COLOR_OPERATIONS_CONFIG;}function splitBySections(_0xbaf74f){const _0x3964cf=[];for(let _0x495b09=0x0;_0x495b09<_0xbaf74f['length']-0x1;_0x495b09+=0x1){const _0x2d0db8=_0xbaf74f[_0x495b09],_0x402463=_0xbaf74f[_0x495b09+0x1];'number'==typeof _0x2d0db8&&'number'==typeof _0x402463&&_0x3964cf['push']([_0x2d0db8,_0x402463]);}return _0x3964cf;}function calculateOpacities(_0x950dc1,_0x1a0c05,_0x54a53f){const _0x5d2c80=splitBySections(_0x950dc1)['find'](([_0x47199a,_0x5bf61c])=>_0x47199a<=_0x1a0c05&&_0x1a0c05<=_0x5bf61c);if(!_0x5d2c80)return _0x950dc1['map'](()=>0x0);const [_0x231f56,_0x21c948]=_0x5d2c80;return _0x950dc1['map'](_0x3bad7e=>{const _0x716058=Math['abs'](_0x231f56-_0x21c948)||0x1,_0x3c185a=Math['abs'](_0x1a0c05-_0x231f56)/_0x716058;return _0x231f56===_0x3bad7e?_0x1a0c05>_0x54a53f?0x1:0x1-_0x3c185a:_0x21c948===_0x3bad7e?_0x1a0c05>=_0x54a53f?_0x3c185a:0x1:0x0;});}function calculateZIndices(_0x40613e,_0x1c4ad3){return _0x40613e['map']((_0x449f5e,_0x1fb445)=>_0x449f5e<_0x1c4ad3?_0x40613e['length']-_0x1fb445:_0x1fb445);}function keypointsRange(_0xa158b1,_0x3d2824){const _0x25acd2=COLOR_OPERATIONS_CONFIG[_0xa158b1]['keypointsNumber'],{range:_0x4f8cef,zero:_0x380939}=COLOR_OPERATIONS_CONFIG[_0xa158b1];return[...new Set([...linspace(_0x4f8cef[0x0],_0x380939,_0x25acd2+0x1),...linspace(_0x380939,_0x4f8cef[0x1],_0x25acd2+0x1),_0x380939,_0x3d2824])]['sort']((_0x3672b2,_0x3a65b5)=>_0x3672b2-_0x3a65b5);}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'](_0xc36f0b){const _0x2a5ed6=this['_operation'],_0x62e8c1=this['$']['*loadingOperations'];_0x62e8c1['has'](_0x2a5ed6)||_0x62e8c1['set'](_0x2a5ed6,new Map());const _0x4ba1f3=_0x62e8c1['get'](_0x2a5ed6);return _0x4ba1f3&&!_0x4ba1f3['get'](_0xc36f0b)&&(_0x4ba1f3['set'](_0xc36f0b,!0x0),this['$']['*loadingOperations']=_0x62e8c1),()=>{const _0x43e192=_0x62e8c1['get'](_0x2a5ed6);_0x43e192?.['has'](_0xc36f0b)&&(_0x43e192['delete'](_0xc36f0b),this['$']['*loadingOperations']=_0x62e8c1);};}['_flush'](){window['cancelAnimationFrame'](this['_raf']),this['_raf']=window['requestAnimationFrame'](()=>{for(const _0x21d9b6 of this['_keypoints']){const {image:_0x5ccf1a}=_0x21d9b6;_0x5ccf1a&&(_0x5ccf1a['style']['opacity']=_0x21d9b6['opacity']['toString'](),_0x5ccf1a['style']['zIndex']=_0x21d9b6['zIndex']['toString']());}});}['_imageSrc']({url:_0x2758ec=this['_url'],filter:_0xabfa10=this['_filter']??void 0x0,operation:_0x4a6c35,value:_0x294238}={}){if(!_0x2758ec)throw new Error('URL\x20is\x20not\x20defined');const _0x11ec37={...this['_transformations']};_0x4a6c35&&('filter'===_0x4a6c35?_0xabfa10&&'number'==typeof _0x294238&&(_0x11ec37['filter']={'name':_0xabfa10,'amount':_0x294238}):'number'==typeof _0x294238&&(_0x11ec37[_0x4a6c35]=_0x294238));const _0x199ebc=this['offsetWidth'];return this['proxyUrl'](viewerImageSrc(_0x2758ec,_0x199ebc,_0x11ec37));}async['_constructKeypoint'](_0x580752,_0x369ad2){return{'src':await this['_imageSrc']({'operation':_0x580752,'value':_0x369ad2}),'image':void 0x0,'opacity':0x0,'zIndex':0x0,'value':_0x369ad2};}['_isSame'](_0x3e2cb8,_0x464fc0){return this['_operation']===_0x3e2cb8&&this['_filter']===_0x464fc0;}async['_addKeypoint'](_0x2598cc,_0x5afad7,_0x353a8f){const _0x341d82=()=>!this['_isSame'](_0x2598cc,_0x5afad7)||this['_value']!==_0x353a8f||!!this['_keypoints']['find'](_0x1ac5c1=>_0x1ac5c1['value']===_0x353a8f);if(_0x341d82())return;const _0x172889=await this['_constructKeypoint'](_0x2598cc,_0x353a8f),_0x106d2b=new Image();_0x106d2b['src']=_0x172889['src'];const _0x2f439d=this['_handleImageLoading'](_0x172889['src']);_0x106d2b['addEventListener']('load',_0x2f439d,{'once':!0x0}),_0x106d2b['addEventListener']('error',_0x2f439d,{'once':!0x0}),_0x172889['image']=_0x106d2b,_0x106d2b['classList']['add']('uc-fader-image'),_0x106d2b['addEventListener']('load',()=>{if(_0x341d82())return;const _0x321ce9=this['_keypoints'];let _0x592ad4=_0x321ce9['findIndex'](_0x551873=>_0x551873['value']>_0x353a8f);-0x1===_0x592ad4&&(_0x592ad4=_0x321ce9['length']);const _0x59064d=_0x321ce9[_0x592ad4],_0x289da8=_0x59064d?.['image'],_0x161b5e=this['_container'];!_0x161b5e||_0x289da8&&!_0x161b5e['contains'](_0x289da8)||(_0x321ce9['splice'](_0x592ad4,0x0,_0x172889),_0x289da8&&_0x161b5e['insertBefore'](_0x106d2b,_0x289da8),this['_update'](_0x2598cc,_0x353a8f));},{'once':!0x0}),_0x106d2b['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}['set'](_0x4600f3){const _0x171088='string'==typeof _0x4600f3?parseInt(_0x4600f3,0xa):_0x4600f3;isOperationKey(this['_operation'])&&Number['isFinite'](_0x171088)&&(this['_update'](this['_operation'],_0x171088),this['_addKeypointDebounced'](this['_operation'],this['_filter'],_0x171088));}['_update'](_0x938694,_0x325321){this['_operation']=_0x938694,this['_value']=_0x325321;const {zero:_0xbf2c9f}=COLOR_OPERATIONS_CONFIG[_0x938694],_0x1d94b8=this['_keypoints']['map'](_0x17f30a=>_0x17f30a['value']),_0x364d05=calculateOpacities(_0x1d94b8,_0x325321,_0xbf2c9f),_0x428867=calculateZIndices(_0x1d94b8,_0xbf2c9f);this['_keypoints']['forEach']((_0xd7fc3a,_0x4b6ec3)=>{const _0x1dec66=_0x364d05[_0x4b6ec3],_0x2cf5a2=_0x428867[_0x4b6ec3];'number'==typeof _0x1dec66&&(_0xd7fc3a['opacity']=_0x1dec66),'number'==typeof _0x2cf5a2&&(_0xd7fc3a['zIndex']=_0x2cf5a2);}),this['_flush']();}['_createPreviewImage'](){const _0x2e5f08=new Image();return _0x2e5f08['classList']['add']('uc-fader-image','uc-fader-image--preview'),_0x2e5f08['style']['opacity']='0',_0x2e5f08;}async['_initNodes'](){const _0x519b47=document['createDocumentFragment']();this['_previewImage']=this['_previewImage']||this['_createPreviewImage']();const _0x238478=this['_previewImage'];this['contains'](_0x238478)||_0x519b47['appendChild'](_0x238478);const _0x4b9295=document['createElement']('div');_0x519b47['appendChild'](_0x4b9295);const _0x22ee8a=this['_keypoints']['map'](_0x208fbb=>_0x208fbb['src']),{images:_0x262d6d,promise:_0x50f018,cancel:_0x3496d7}=batchPreloadImages(_0x22ee8a);_0x262d6d['forEach'](_0x2f263c=>{const _0x39a8df=this['_handleImageLoading'](_0x2f263c['src']);_0x2f263c['addEventListener']('load',_0x39a8df),_0x2f263c['addEventListener']('error',_0x39a8df);}),this['_cancelLastImages']=()=>{_0x3496d7(),this['_cancelLastImages']=void 0x0;};const _0x51a14f=this['_operation'],_0x40381e=this['_filter'];await _0x50f018,this['_isActive']&&this['_isSame'](_0x51a14f,_0x40381e)&&(this['_container']?.['remove'](),this['_container']=_0x4b9295,this['_keypoints']['forEach']((_0x4b7652,_0x433d2d)=>{const _0x2c9eac=_0x262d6d[_0x433d2d];_0x2c9eac&&(_0x2c9eac['classList']['add']('uc-fader-image'),_0x4b7652['image']=_0x2c9eac,this['_container']?.['appendChild'](_0x2c9eac));}),this['appendChild'](_0x519b47),this['_flush']());}async['setTransformations'](_0x463bf2){if(this['_transformations']=_0x463bf2,this['_previewImage']){const _0x2a16a2=await this['_imageSrc'](),_0x16af81=this['_handleImageLoading'](_0x2a16a2);this['_previewImage']['src']=_0x2a16a2,this['_previewImage']['addEventListener']('load',_0x16af81,{'once':!0x0}),this['_previewImage']['addEventListener']('error',_0x16af81,{'once':!0x0}),this['_previewImage']['style']['opacity']='1',this['_previewImage']['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}}async['preload']({url:_0x5e0dff,filter:_0x3a199c,operation:_0x4f5002,value:_0x21a13f}){if(!_0x4f5002||'number'!=typeof _0x21a13f)return;this['_cancelBatchPreload']?.();const _0xd3349f=keypointsRange(_0x4f5002,_0x21a13f),_0x1634ce=await Promise['all'](_0xd3349f['map'](_0x208998=>this['_imageSrc']({'url':_0x5e0dff,'filter':_0x3a199c,'operation':_0x4f5002,'value':_0x208998}))),{cancel:_0x153f3e}=batchPreloadImages(_0x1634ce);this['_cancelBatchPreload']=_0x153f3e;}['_setOriginalSrc'](_0x4fd870){const _0x4de1d4=this['_previewImage']||this['_createPreviewImage']();if(this['contains'](_0x4de1d4)||this['appendChild'](_0x4de1d4),this['_previewImage']=_0x4de1d4,_0x4de1d4['src']===_0x4fd870)return _0x4de1d4['style']['opacity']='1',_0x4de1d4['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}));_0x4de1d4['style']['opacity']='0';const _0x146a28=this['_handleImageLoading'](_0x4fd870);_0x4de1d4['addEventListener']('error',_0x146a28,{'once':!0x0}),_0x4de1d4['src']=_0x4fd870,_0x4de1d4['addEventListener']('load',()=>{_0x146a28(),_0x4de1d4&&(_0x4de1d4['style']['opacity']='1',_0x4de1d4['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}),_0x4de1d4['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}async['activate']({url:_0x33a634,operation:_0x173fdf,value:_0x4d61d1,filter:_0x5408d1,fromViewer:_0x18c46b}){this['_isActive']=!0x0,this['_hidden']=!0x1,this['_url']=_0x33a634,this['_operation']=_0x173fdf??'initial',this['_value']=_0x4d61d1,this['_filter']=_0x5408d1,this['_fromViewer']=_0x18c46b;if('number'!=typeof _0x4d61d1&&!_0x5408d1){const _0x2d4265=await this['_imageSrc']({'operation':_0x173fdf,'value':_0x4d61d1});return this['_setOriginalSrc'](_0x2d4265),void this['_container']?.['remove']();}_0x173fdf&&'number'==typeof _0x4d61d1&&(this['_keypoints']=await Promise['all'](keypointsRange(_0x173fdf,_0x4d61d1)['map'](_0x45834a=>this['_constructKeypoint'](_0x173fdf,_0x45834a))),this['_update'](_0x173fdf,_0x4d61d1),this['_initNodes']());}['deactivate']({hide:_0x184802=!0x0}={}){this['_isActive']=!0x1,this['_cancelLastImages']?.(),this['_cancelBatchPreload']?.(),_0x184802&&!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']=_0x431209=>{this['$']['*sliderEl']['setOperation'](this['_operation']),this['$']['*showSlider']=!0x0,this['$']['*currentOperation']=this['_operation'],this['telemetryManager']['sendEventCloudImageEditor'](_0x431209,this['$']['*tabId'],{'operation':parseFilterValue(this['$']['*operationTooltip'])});},this['defineAccessor']('operation',_0x5dddf5=>{_0x5dddf5&&(this['_operation']=_0x5dddf5,this['$']['icon']=_0x5dddf5,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-tuning',{'name':this['l10n'](_0x5dddf5)['toLowerCase']()})),this['bindL10n']('title',()=>this['l10n'](_0x5dddf5)));}),this['sub']('*editorTransformations',_0x379b54=>{if(!this['_operation'])return;const {zero:_0x13e826}=COLOR_OPERATIONS_CONFIG[this['_operation']],_0x529ab4=_0x379b54[this['_operation']],_0x364558=void 0x0!==_0x529ab4&&_0x529ab4!==_0x13e826;this['$']['active']=_0x364558;});}},X_THRESHOLD=0x1,EditorScroller=class extends Block{['initCallback'](){super['initCallback'](),this['addEventListener']('wheel',_0x103d10=>{_0x103d10['preventDefault']();const {deltaY:_0x29c487,deltaX:_0x57a852}=_0x103d10;Math['abs'](_0x57a852)>X_THRESHOLD?this['scrollLeft']+=_0x57a852:this['scrollLeft']+=_0x29c487;},{'passive':!0x1}),this['addEventListener']('scroll',()=>{},{'passive':!0x0});}};function renderTabToggle(_0x2e4d31){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.'+_0x2e4d31+';\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-'+_0x2e4d31+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-id=\x22'+_0x2e4d31+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22'+_0x2e4d31+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20on.clickTab;\x20aria-role:tab_role;\x20aria-controls:tab_'+_0x2e4d31+';\x20title-prop:\x20a11y-editor-tab-'+_0x2e4d31+'\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(_0x630354){return'\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20id=\x22tab_'+_0x630354+'\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-tab-content\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.tabContent.'+_0x630354+';\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-'+_0x630354+'\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':_0x21dca6=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x21dca6,this['$']['*tabId'],{'action':'cancel'}),this['_cancelPreload']?.(),(0x0,this['$']['*on.cancel'])();},'on.apply':_0x719304=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x719304,this['$']['*tabId'],{'action':'apply'}),(0x0,this['$']['*on.apply'])(this['$']['*editorTransformations']);},'on.applySlider':_0x25e1b0=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x25e1b0,this['$']['*tabId'],{'action':'apply-slider','operation':parseFilterValue(this['$']['*operationTooltip'])}),(this['ref']['slider-el']['apply'](),this['_onSliderClose']());},'on.cancelSlider':_0x45cb8c=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x45cb8c,this['$']['*tabId'],{'action':'cancel-slider'}),(this['ref']['slider-el']['cancel'](),this['_onSliderClose']());},'on.clickTab':_0x182f25=>{const _0x30e7f4=_0x182f25['currentTarget'],_0x4921ee=_0x30e7f4?.['getAttribute']('data-id');_0x4921ee&&(this['telemetryManager']['sendEventCloudImageEditor'](_0x182f25,_0x4921ee),this['_activateTab'](_0x4921ee,{'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'](_0x254267){const _0x162cd7=new EditorOperationControl();return _0x162cd7['operation']=_0x254267,_0x162cd7;}['_createFilterControl'](_0x104aae){const _0x312960=new EditorFilterControl();return _0x312960['filter']=_0x104aae,_0x312960;}['_createToggleControl'](_0x52a101){const _0x464c81=new EditorCropButtonControl();return _0x464c81['operation']=_0x52a101,_0x464c81;}['_createAspectRatioControl'](_0x871f35){const _0x225587=new EditorAspectRatioButtonControl();return _0x225587['aspectRatio']=_0x871f35,_0x225587;}['_createFreeformControl'](){return new EditorFreeformButtonControl();}['_clearListAspectRatio'](){const _0x155cc2=this['$']['*listAspectRatioEl'];_0x155cc2&&(_0x155cc2['innerHTML']='');}['_renderControlsList'](_0x79aca8){const _0x2ccd75=this['ref']['controls-list-'+_0x79aca8],_0x489165=document['createDocumentFragment']();if(this['_clearListAspectRatio'](),_0x79aca8===TabId['CROP']){const _0xe30988=this['$']['*cropPresetList'],_0xfbe930=_0xe30988['length']>=0x3;if(_0xfbe930){const _0x9cc156=this['_createFreeformControl']();_0x489165['appendChild'](_0x9cc156);}for(const _0x3d45d5 of _0xe30988){const _0x3b45bb=this['_createAspectRatioControl'](_0x3d45d5);if(_0x489165['appendChild'](_0x3b45bb),_0xfbe930){const _0x4888ec=this['$']['*listAspectRatioEl'];_0x4888ec?.['appendChild'](_0x3b45bb);}}for(const _0x521971 of this['$']['cropOperations']){const _0x2ab62d=this['_createToggleControl'](_0x521971);_0x489165['appendChild'](_0x2ab62d);}}else{if(_0x79aca8===TabId['FILTERS']){const _0x162106=this['$']['filters'];[FAKE_ORIGINAL_FILTER,..._0x162106]['forEach'](_0x1bc296=>{const _0x2ce8db=this['_createFilterControl'](_0x1bc296);_0x489165['appendChild'](_0x2ce8db);});}else{if(_0x79aca8===TabId['TUNING'])for(const _0x4e3426 of this['$']['colorOperations']){const _0x36594a=this['_createOperationControl'](_0x4e3426);_0x489165['appendChild'](_0x36594a);}}}[..._0x489165['children']]['forEach']((_0xd1248d,_0x1ace56)=>{_0x1ace56===_0x489165['childNodes']['length']-0x1&&_0xd1248d['classList']['add']('uc-controls-list_last-item');}),_0x2ccd75['innerHTML']='',_0x2ccd75['appendChild'](_0x489165);}['_activateTab'](_0x3f4716,{fromViewer:_0x3f6c37}={}){this['$']['*tabId']=_0x3f4716;const _0x1fb410=this['$']['*faderEl'],_0x4f3a99=this['$']['*cropperEl'];_0x3f4716===TabId['CROP']?(_0x1fb410?.['deactivate'](),_0x4f3a99?.['activate'](this['$']['*imageSize'],{'fromViewer':_0x3f6c37})):(_0x1fb410?.['activate']({'url':this['$']['*originalUrl'],'fromViewer':_0x3f6c37}),_0x4f3a99?.['deactivate']());for(const _0x8e5b12 of ALL_TABS){const _0x56844f=_0x8e5b12===_0x3f4716;this['ref']['tab-toggle-'+_0x8e5b12]['active']=_0x56844f,_0x56844f?(this['_renderControlsList'](_0x3f4716),this['_syncTabIndicator']()):this['_unmountTabControls'](_0x8e5b12),this['$']['presence.tabContent.'+_0x8e5b12]=_0x56844f;}}['_unmountTabControls'](_0x57ec70){const _0x39993e=this['ref']['controls-list-'+_0x57ec70];_0x39993e&&(_0x39993e['innerHTML']='');}['_syncTabIndicator'](){const _0xe3a830=this['ref']['tab-toggle-'+this['$']['*tabId']];this['ref']['tabs-indicator']['style']['transform']='translateX('+_0xe3a830['offsetLeft']+'px)';}async['_preloadEditedImage'](){if(this['$']['*imgContainerEl']&&this['$']['*originalUrl']){const _0x27ff28=this['$']['*imgContainerEl']['offsetWidth'],_0x11b913=await this['proxyUrl'](viewerImageSrc(this['$']['*originalUrl'],_0x27ff28,this['$']['*editorTransformations']));this['_cancelPreload']?.();const {cancel:_0x1d493a}=batchPreloadImages([_0x11b913]);this['_cancelPreload']=()=>{_0x1d493a(),this['_cancelPreload']=void 0x0;};}}['_showLoader'](_0xa117a4){this['$']['showLoader']=_0xa117a4;}['_updateInfoTooltipHandler'](){const _0x2b303d=this['$']['*editorTransformations'],_0x3c5cac=this['$']['*currentOperation'];let _0x173c3c='',_0x303517=!0x1;if(this['$']['*tabId']===TabId['FILTERS']){if(_0x303517=!0x0,this['$']['*currentFilter']&&_0x2b303d?.['filter']?.['name']===this['$']['*currentFilter']){const _0x58c815=_0x2b303d?.['filter']?.['amount']||0x64;_0x173c3c=this['$']['*currentFilter']+'\x20'+_0x58c815;}else _0x173c3c=this['l10n'](FAKE_ORIGINAL_FILTER);}else{if(this['$']['*tabId']===TabId['TUNING']&&_0x3c5cac){_0x303517=!0x0;const _0x520a4c=_0x2b303d?.[_0x3c5cac]||COLOR_OPERATIONS_CONFIG[_0x3c5cac]['zero'];_0x173c3c=this['l10n'](_0x3c5cac)+'\x20'+_0x520a4c;}}_0x303517&&(this['$']['*operationTooltip']=_0x173c3c),this['ref']['tooltip-el']['classList']['toggle']('uc-info-tooltip_visible',_0x303517);}['initCallback'](){super['initCallback'](),this['$']['*sliderEl']=this['ref']['slider-el'],this['$']['*listAspectRatioEl']=this['ref']['list-el'],this['sub']('*imageSize',_0x4b2c78=>{_0x4b2c78&&setTimeout(()=>{this['_activateTab'](this['$']['*tabId'],{'fromViewer':!0x0});},0x0);}),this['sub']('*editorTransformations',_0x128799=>{const _0x55156e=_0x128799?.['filter']?.['name'];this['$']['*currentFilter']!==_0x55156e&&(this['$']['*currentFilter']=_0x55156e);}),this['sub']('*currentFilter',()=>{this['_updateInfoTooltip']();}),this['sub']('*currentOperation',()=>{this['_updateInfoTooltip']();}),this['sub']('*tabId',()=>{this['_updateInfoTooltip']();}),this['sub']('*originalUrl',()=>{this['$']['*faderEl']?.['deactivate']();}),this['sub']('*editorTransformations',_0x31c290=>{this['_preloadEditedImage'](),this['$']['*faderEl']?.['setTransformations'](_0x31c290);}),this['sub']('*loadingOperations',_0x573646=>{let _0x3764a9=!0x1;for(const [,_0x16c0b4]of _0x573646['entries']()){if(_0x3764a9)break;for(const [,_0xe27e58]of _0x16c0b4['entries']())if(_0xe27e58){_0x3764a9=!0x0;break;}}this['_debouncedShowLoader'](_0x3764a9);}),this['sub']('*showSlider',_0x869323=>{this['$']['presence.subToolbar']=_0x869323,this['$']['presence.mainToolbar']=!_0x869323,this['$']['hideSliderOrList']=!0x0;}),this['sub']('*showListAspectRatio',_0x125134=>{this['$']['presence.subToolbar']=_0x125134,this['$']['presence.mainToolbar']=!_0x125134,this['$']['hideSliderOrList']=!0x1;}),this['sub']('*tabList',_0x5b26bd=>{this['$']['presence.tabToggles']=_0x5b26bd['length']>0x1;for(const _0x306869 of ALL_TABS){this['$']['presence.tabToggle.'+_0x306869]=_0x5b26bd['includes'](_0x306869),this['ref']['tab-toggle-'+_0x306869]['style']['gridColumn']=''+(_0x5b26bd['indexOf'](_0x306869)+0x1);}if(!_0x5b26bd['includes'](this['$']['*tabId'])&&_0x5b26bd['length']>0x0){const [_0x1fd572]=_0x5b26bd;_0x1fd572&&this['_activateTab'](_0x1fd572,{'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',_0x4c2021=>{_0x4c2021?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',_0x145d25=>{this['_iconSingle']=!this['$']['text'],this['_iconHidden']=!_0x145d25,this['$']['iconCss']=this['_iconCss']();}),this['sub']('theme',_0x2ab977=>{_0x2ab977&&'custom'!==_0x2ab977&&(this['className']='uc-'+_0x2ab977);}),this['sub']('text',()=>{this['_iconSingle']=!0x1;}),this['hasAttribute']('theme')||this['setAttribute']('theme','default'),this['defineAccessor']('aria-role',_0xa8271=>{this['$']['aria-role']=_0xa8271||'';}),this['defineAccessor']('aria-controls',_0x596cc9=>{this['$']['aria-controls']=_0x596cc9||'';}),this['defineAccessor']('title-prop',_0x2c83e9=>{this['$']['title-prop']=_0x2c83e9||'';});}set['reverse'](_0x199083){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 _0x8fa321=this['ref']['line-el'];_0x8fa321['style']['transition']='initial',_0x8fa321['style']['opacity']='0',_0x8fa321['style']['transform']='translateX(-101%)',this['_active']&&this['_start']();};['initCallback'](){super['initCallback'](),this['defineAccessor']('active',_0x5e0b42=>{'boolean'==typeof _0x5e0b42&&(_0x5e0b42?this['_start']():this['_stop']());});}['_start'](){this['_active']=!0x0;const {width:_0x2ff274}=this['getBoundingClientRect'](),_0x392147=this['ref']['line-el'];_0x392147['style']['transition']='transform\x201s',_0x392147['style']['opacity']='1',_0x392147['style']['transform']='translateX('+_0x2ff274+'px)',_0x392147['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',_0x41827c=>{_0x41827c&&(this['_externalTransitions']=!0x0,this['_visibleStyle']=_0x41827c['visible']??DEFAULT_STYLE['visible'],this['_hiddenStyle']=_0x41827c['hidden']??DEFAULT_STYLE['hidden']);}),this['defineAccessor']('visible',_0x5bb714=>{'boolean'==typeof _0x5bb714&&(this['_visible']=_0x5bb714,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 _0x3135da=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x3135da),this['$']['onInput']?.(_0x3135da);},'on.sliderChange':()=>{const _0x18facf=Number['parseInt'](this['_inputEl']()['value'],0xa);this['$']['onChange']?.(_0x18facf);}},this['setAttribute']('with-effects','');}['initCallback'](){super['initCallback'](),this['defineAccessor']('disabled',_0x364ea4=>{this['$']['disabled']=_0x364ea4;}),this['defineAccessor']('min',_0x2782bf=>{this['$']['min']=_0x2782bf;}),this['defineAccessor']('max',_0x23c304=>{this['$']['max']=_0x23c304;}),this['defineAccessor']('defaultValue',_0x720809=>{this['$']['defaultValue']=_0x720809,(this['_inputEl']()['value']=String(_0x720809),this['_updateValue'](_0x720809));}),this['defineAccessor']('zero',_0x12de56=>{this['_zero']=_0x12de56;}),this['defineAccessor']('onInput',_0x2f893d=>{_0x2f893d&&(this['$']['onInput']=_0x2f893d);}),this['defineAccessor']('onChange',_0x5b8cb9=>{_0x5b8cb9&&(this['$']['onChange']=_0x5b8cb9);}),this['_updateSteps'](),this['_observer']=new ResizeObserver(()=>{this['_updateSteps']();const _0x44aa41=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x44aa41);}),this['_observer']['observe'](this),this['_thumbSize']=Number['parseInt'](window['getComputedStyle'](this)['getPropertyValue']('--l-thumb-size'),0xa),setTimeout(()=>{const _0x1d9f46=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x1d9f46);},0x0),this['sub']('disabled',_0x4f3e46=>{const _0x54f6eb=this['_inputEl']();_0x4f3e46?_0x54f6eb['setAttribute']('disabled','disabled'):_0x54f6eb['removeAttribute']('disabled');});const _0x2ce4d2=this['_inputEl']();_0x2ce4d2['addEventListener']('focus',()=>{this['style']['setProperty']('--color-effect','var(--hover-color-rgb)');}),_0x2ce4d2['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'](_0x568b09){this['_updateZeroDot'](_0x568b09);const {width:_0x5c1d37}=this['getBoundingClientRect'](),_0x2302ae=0x64/(this['$']['max']-this['$']['min'])*(_0x568b09-this['$']['min'])*(_0x5c1d37-this['_thumbSize'])/0x64;window['requestAnimationFrame'](()=>{this['_thumbEl']()['style']['transform']='translateX('+_0x2302ae+'px)';});}['_updateZeroDot'](_0x333546){if(!this['_zeroDotEl'])return;this['_zeroDotEl']['style']['opacity']=_0x333546===this['_zero']?'0':'1';const {width:_0x39d982}=this['getBoundingClientRect'](),_0x3b1c46=0x64/(this['$']['max']-this['$']['min'])*(this['_zero']-this['$']['min'])*(_0x39d982-this['_thumbSize'])/0x64;window['requestAnimationFrame'](()=>{this['_zeroDotEl']&&(this['_zeroDotEl']['style']['transform']='translateX('+_0x3b1c46+'px)');});}['_updateSteps'](){const _0x3f6c87=this['_stepsEl'](),{width:_0xd75619}=_0x3f6c87['getBoundingClientRect'](),_0x26f22f=Math['ceil'](_0xd75619/0x2),_0x57cca1=Math['ceil'](_0x26f22f/0xf)-0x2;if(this['_stepsCount']===_0x57cca1)return;const _0x2a8e0a=document['createDocumentFragment'](),_0x3f250c=document['createElement']('div'),_0x141d6b=document['createElement']('div');_0x3f250c['className']='uc-minor-step',_0x141d6b['className']='uc-border-step',_0x2a8e0a['appendChild'](_0x141d6b);for(let _0x2cff5e=0x0;_0x2cff5e<_0x57cca1;_0x2cff5e+=0x1)_0x2a8e0a['appendChild'](_0x3f250c['cloneNode']());_0x2a8e0a['appendChild'](_0x141d6b['cloneNode']());for(let _0x53e36e=0x0;_0x53e36e<_0x57cca1;_0x53e36e+=0x1)_0x2a8e0a['appendChild'](_0x3f250c['cloneNode']());_0x2a8e0a['appendChild'](_0x141d6b['cloneNode']());const _0x3cb4a6=document['createElement']('div');_0x3cb4a6['className']='uc-zero-dot',_0x2a8e0a['appendChild'](_0x3cb4a6),this['_zeroDotEl']=_0x3cb4a6,_0x3f6c87['innerHTML']='',_0x3f6c87['appendChild'](_0x2a8e0a),this['_stepsCount']=_0x57cca1;}['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 _0x429070=super['activityParams'];if('internalId'in _0x429070)return _0x429070;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',_0x22d802=>{this['_instance']&&this['_instance']['getAttribute']('crop-preset')!==_0x22d802&&this['_instance']['setAttribute']('crop-preset',_0x22d802);}),this['subConfigValue']('cloudImageEditorTabs',_0x214df8=>{this['_instance']&&this['_instance']['getAttribute']('tabs')!==_0x214df8&&this['_instance']['setAttribute']('tabs',_0x214df8);});}['handleApply'](_0x430b56){if(!this['_entry'])return;const _0x532a37=_0x430b56['detail'];this['_entry']['setMultipleValues']({'cdnUrl':_0x532a37['cdnUrl'],'cdnUrlModifiers':_0x532a37['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:_0x220f07}=this['activityParams'],_0x2fdb4a=this['uploadCollection']['read'](_0x220f07);if(!_0x2fdb4a)throw new Error('Entry\x20with\x20internalId\x20\x22'+_0x220f07+'\x22\x20not\x20found');this['_entry']=_0x2fdb4a;const _0x1053a5=this['_entry']['getValue']('cdnUrl');if(!_0x1053a5)throw new Error('Entry\x20with\x20internalId\x20\x22'+_0x220f07+'\x22\x20hasn\x27t\x20uploaded\x20yet');const _0x4770c8=new CloudImageEditorBlock(),_0x58aa36=this['cfg']['cropPreset'],_0x129ae6=this['cfg']['cloudImageEditorTabs'];_0x4770c8['setAttribute']('ctx-name',this['ctxName']),_0x4770c8['setAttribute']('cdn-url',_0x1053a5),_0x58aa36&&_0x4770c8['setAttribute']('crop-preset',_0x58aa36),_0x129ae6&&_0x4770c8['setAttribute']('tabs',_0x129ae6),_0x4770c8['addEventListener']('apply',_0x5bb97c=>{const _0x4aabb2=_0x5bb97c;this['handleApply'](_0x4aabb2),this['debugPrint']('editor\x20event\x20\x22apply\x22',_0x4aabb2['detail']);}),_0x4770c8['addEventListener']('cancel',_0x4dc4ed=>{const _0x5321b3=_0x4dc4ed;this['handleCancel'](),this['debugPrint']('editor\x20event\x20\x22cancel\x22',_0x5321b3['detail']);}),_0x4770c8['addEventListener']('change',_0x6b4ad2=>{const _0x384604=_0x6b4ad2;this['debugPrint']('editor\x20event\x20\x22change\x22',_0x384604['detail']);}),this['innerHTML']='',this['appendChild'](_0x4770c8),this['_instance']=_0x4770c8;}['unmountEditor'](){this['_instance']=void 0x0,this['_entry']=void 0x0,this['innerHTML']='';}},toKebabCase=_0x686a4b=>_0x686a4b['match'](/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.['map'](_0x3ed71c=>_0x3ed71c['toLowerCase']())['join']('-'),ASSERTIONS=[{'test':_0x3a834b=>!!_0x3a834b['accept']&&!!_0x3a834b['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':_0x1e8d10=>null!==_0x1e8d10['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':_0x1aa9ca=>null!==_0x1aa9ca['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(_0x224db5=>{for(const {test:_0x4d0e19,message:_0x3b3be0}of ASSERTIONS)_0x4d0e19(_0x224db5)&&warnOnce(_0x3b3be0);},0x0),isPromiseLike=_0x10967f=>_0x10967f instanceof Promise||Boolean(_0x10967f&&'object'==typeof _0x10967f&&'then'in _0x10967f&&'function'==typeof _0x10967f['then']),defineComputedProperty=_0x19d92a=>_0x19d92a,COMPUTED_PROPERTIES=[defineComputedProperty({'key':'cameraModes','deps':['enableVideoRecording'],'fn':({cameraModes:_0x3ca0d2,enableVideoRecording:_0x593210})=>{if(null===_0x593210)return _0x3ca0d2;let _0x29b7ae=deserializeCsv(_0x3ca0d2);return _0x593210&&!_0x29b7ae['includes']('video')?_0x29b7ae=_0x29b7ae['concat']('video'):_0x593210||(_0x29b7ae=_0x29b7ae['filter'](_0x10e6c7=>'video'!==_0x10e6c7)),serializeCsv(_0x29b7ae);}}),defineComputedProperty({'key':'cameraModes','deps':['defaultCameraMode'],'fn':({cameraModes:_0x57c10d,defaultCameraMode:_0xf2c2a0})=>{if(null===_0xf2c2a0)return _0x57c10d;let _0x43b50d=deserializeCsv(_0x57c10d);return _0x43b50d=_0x43b50d['sort']((_0x5cf31b,_0xb0ccdc)=>_0x5cf31b===_0xf2c2a0?-0x1:_0xb0ccdc===_0xf2c2a0?0x1:0x0),serializeCsv(_0x43b50d);}}),defineComputedProperty({'key':'cdnCname','deps':['pubkey','cdnCnamePrefixed'],'fn':({pubkey:_0x252962,cdnCname:_0x3be80e,cdnCnamePrefixed:_0x32cad6})=>_0x252962&&(_0x3be80e===DEFAULT_CDN_CNAME||c$1(_0x3be80e,_0x32cad6))?f(_0x252962,_0x32cad6):_0x3be80e})],computeProperty=({key:_0x3d38e9,setValue:_0x2cd77f,getValue:_0x58bb2a,computationControllers:_0x1e7fb0})=>{for(const _0x1cea89 of COMPUTED_PROPERTIES)if(_0x1cea89['deps']['includes'](_0x3d38e9)){const _0x52a896={[_0x1cea89['key']]:_0x58bb2a(_0x1cea89['key'])};for(const _0x359a4b of _0x1cea89['deps'])_0x52a896[_0x359a4b]=_0x58bb2a(_0x359a4b);const _0x5a3590=new AbortController();let _0x231034;_0x1e7fb0['get'](_0x1cea89['key'])?.['abort'](),_0x1e7fb0['set'](_0x1cea89['key'],_0x5a3590);try{_0x231034=_0x1cea89['fn'](_0x52a896,{'signal':_0x5a3590['signal']});}catch(_0x511604){return _0x1e7fb0['get'](_0x1cea89['key'])===_0x5a3590&&_0x1e7fb0['delete'](_0x1cea89['key']),void console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x1cea89['key']+'\x22',_0x511604);}isPromiseLike(_0x231034)?_0x231034['then'](_0x5bc478=>{_0x5a3590['signal']['aborted']||_0x2cd77f(_0x1cea89['key'],_0x5bc478);})['catch'](_0x230c91=>{_0x5a3590['signal']['aborted']||console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x1cea89['key']+'\x22',_0x230c91);})['finally'](()=>{_0x1e7fb0['get'](_0x1cea89['key'])===_0x5a3590&&_0x1e7fb0['delete'](_0x1cea89['key']);}):_0x2cd77f(_0x1cea89['key'],_0x231034);}},asString=_0x593f82=>String(_0x593f82),asNumber2=_0x21e922=>{const _0x2e9f7e=Number(_0x21e922);if(Number['isNaN'](_0x2e9f7e))throw new Error('Invalid\x20number:\x20\x22'+_0x21e922+'\x22');return _0x2e9f7e;},asBoolean2=_0x10de84=>{if(null==_0x10de84)return!0x1;if('boolean'==typeof _0x10de84)return _0x10de84;if('true'===_0x10de84)return!0x0;if(''===_0x10de84)return!0x0;if('false'===_0x10de84)return!0x1;throw new Error('Invalid\x20boolean:\x20\x22'+_0x10de84+'\x22');},asStore=_0x268f88=>'auto'===_0x268f88?_0x268f88:asBoolean2(_0x268f88),asCameraCapture=_0x57b9b2=>{const _0x4f13dd=asString(_0x57b9b2);if('user'!==_0x4f13dd&&'environment'!==_0x4f13dd&&''!==_0x4f13dd)throw new Error('Invalid\x20value:\x20\x22'+_0x4f13dd+'\x22');return _0x4f13dd;},asCameraMode=_0x118a80=>{const _0x4bcc1a=asString(_0x118a80);if(!Object['values'](CameraSourceTypes)['includes'](_0x4bcc1a))throw new Error('Invalid\x20value:\x20\x22'+_0x4bcc1a+'\x22');return _0x4bcc1a;},asCameraModes=_0xeef5a9=>{const _0x2d1775=asString(_0xeef5a9),_0x1cd12c=deserializeCsv(_0x2d1775);if(_0x1cd12c['some'](_0x13c1c5=>!Object['values'](CameraSourceTypes)['includes'](_0x13c1c5)))throw new Error('Invalid\x20value:\x20\x22'+JSON['stringify'](_0x1cd12c)+'\x22');return _0x2d1775;},asMetadata=_0x45907c=>{if('object'==typeof _0x45907c&&!Array['isArray'](_0x45907c))return _0x45907c;if('function'==typeof _0x45907c)return _0x45907c;throw new Error('Invalid\x20metadata\x20value.\x20Must\x20be\x20an\x20object\x20or\x20function.');},asObject=_0x2f52a7=>{if('object'==typeof _0x2f52a7)return _0x2f52a7;throw new Error('Invalid\x20value.\x20Must\x20be\x20an\x20object.');},asFunction=_0x1ffa1b=>{if('function'==typeof _0x1ffa1b)return _0x1ffa1b;throw new Error('Invalid\x20value.\x20Must\x20be\x20a\x20function.');},asArray=_0x2cd8ec=>{if(Array['isArray'](_0x2cd8ec))return _0x2cd8ec;throw new Error('Must\x20be\x20an\x20array.');},asFilesViewMode=_0x132375=>{const _0x389f8c=asString(_0x132375);if(['grid','list']['includes'](_0x389f8c))return _0x389f8c;throw new Error('Invalid\x20value:\x20\x22'+_0x389f8c+'\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':_0x4dcaeb=>asObject(_0x4dcaeb),'secureUploadsSignatureResolver':_0xdd361c=>asFunction(_0xdd361c),'secureDeliveryProxyUrlResolver':_0x5e82b6=>asFunction(_0x5e82b6),'iconHrefResolver':_0x521878=>asFunction(_0x521878),'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=(_0x107c3e,_0x1c180b)=>{if(null!=_0x1c180b)try{return mapping[_0x107c3e](_0x1c180b);}catch(_0x31344a){return console['error']('Invalid\x20value\x20for\x20config\x20key\x20\x22'+_0x107c3e+'\x22.',_0x31344a),initialConfig[_0x107c3e];}},allConfigKeys=[...new Set(['debug',...Object['keys'](initialConfig)])],complexConfigKeys=['metadata','localeDefinitionOverride','secureUploadsSignatureResolver','secureDeliveryProxyUrlResolver','iconHrefResolver','fileValidators','collectionValidators','mediaRecorderOptions'],isComplexKey=_0x4b92ed=>complexConfigKeys['includes'](_0x4b92ed),plainConfigKeys=allConfigKeys['filter'](_0x24c1ff=>!isComplexKey(_0x24c1ff)),attrKeyMapping={...Object['fromEntries'](plainConfigKeys['map'](_0x1008f3=>[toKebabCase(_0x1008f3),_0x1008f3])),...Object['fromEntries'](plainConfigKeys['map'](_0x44ac9d=>[_0x44ac9d['toLowerCase'](),_0x44ac9d]))},attrStateMapping={...Object['fromEntries'](plainConfigKeys['map'](_0x462477=>[toKebabCase(_0x462477),sharedConfigKey(_0x462477)])),...Object['fromEntries'](plainConfigKeys['map'](_0x38fb6d=>[_0x38fb6d['toLowerCase'](),sharedConfigKey(_0x38fb6d)]))},getLocalPropName=_0x122732=>'__'+_0x122732,Config=class extends Block{['requireCtxName']=!0x0;constructor(){super(),this['init$']={...this['init$'],...Object['fromEntries'](Object['entries'](initialConfig)['map'](([_0x5e33cf,_0xc2794e])=>[sharedConfigKey(_0x5e33cf),_0xc2794e])),'computationControllers':new Map()};}['_flushValueToAttribute'](_0x28bdcd,_0x14be9d){if(!isComplexKey(_0x28bdcd)){const _0x636050=[...new Set([toKebabCase(_0x28bdcd),_0x28bdcd['toLowerCase']()])];for(const _0x29e48d of _0x636050)null==_0x14be9d?this['removeAttribute'](_0x29e48d):this['getAttribute'](_0x29e48d)!==_0x14be9d['toString']()&&this['setAttribute'](_0x29e48d,_0x14be9d['toString']());}}['_flushValueToState'](_0x5bc367,_0x3afaab){this['$'][sharedConfigKey(_0x5bc367)]!==_0x3afaab&&(this['$'][sharedConfigKey(_0x5bc367)]=null==_0x3afaab?initialConfig[_0x5bc367]:_0x3afaab);}['_setValue'](_0x3fbb9d,_0x8c3fd8){const _0x107e61=this,_0x2b43ef=normalizeConfigValue(_0x3fbb9d,_0x8c3fd8),_0x22d5ab=getLocalPropName(_0x3fbb9d);_0x107e61[_0x22d5ab]!==_0x2b43ef&&(this['_assertSameValueDifferentReference'](_0x3fbb9d,_0x107e61[_0x22d5ab],_0x2b43ef),_0x107e61[_0x22d5ab]=_0x2b43ef,this['_flushValueToAttribute'](_0x3fbb9d,_0x2b43ef),this['_flushValueToState'](_0x3fbb9d,_0x2b43ef),this['debugPrint']('[uc-config]\x20\x22'+_0x3fbb9d+'\x22',_0x2b43ef),runAssertions(this['cfg']));}['_getValue'](_0x529b18){return this[getLocalPropName(_0x529b18)]??this['$'][sharedConfigKey(_0x529b18)];}['_assertSameValueDifferentReference'](_0x191a9b,_0x4db289,_0x25abe2){this['cfg']['debug']&&_0x25abe2!==_0x4db289&&'object'==typeof _0x25abe2&&'object'==typeof _0x4db289&&JSON['stringify'](_0x25abe2)===JSON['stringify'](_0x4db289)&&(console['warn']('[uc-config]\x20Option\x20\x22'+_0x191a9b+'\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'+_0x191a9b+'\x22\x20previous\x20value:',_0x4db289),console['warn']('[uc-config]\x20\x22'+_0x191a9b+'\x22\x20new\x20value:',_0x25abe2));}['initCallback'](){super['initCallback']();const _0xeb1f5=this;for(const _0x37c2a4 of plainConfigKeys)this['sub'](sharedConfigKey(_0x37c2a4),_0x337876=>{this['_setValue'](_0x37c2a4,_0x337876);},!0x1);for(const _0x14487c of allConfigKeys){const _0x228140=_0xeb1f5[_0x14487c]??this['$'][sharedConfigKey(_0x14487c)];_0x228140!==initialConfig[_0x14487c]&&this['_setValue'](_0x14487c,_0x228140),Object['defineProperty'](this,_0x14487c,{'set':_0x35e6ab=>{this['_setValue'](_0x14487c,_0x35e6ab);},'get':()=>this['_getValue'](_0x14487c)});}for(const _0x52fa2d of allConfigKeys)this['sub'](sharedConfigKey(_0x52fa2d),()=>{computeProperty({'key':_0x52fa2d,'setValue':this['_setValue']['bind'](this),'getValue':this['_getValue']['bind'](this),'computationControllers':this['computationControllers']});});}['attributeChangedCallback'](_0x3dcf39,_0x4d78ae,_0x2d6bf6){if(_0x4d78ae===_0x2d6bf6)return;const _0x11245a=this,_0x25344a=attrKeyMapping[_0x3dcf39];_0x25344a&&(_0x11245a[_0x25344a]=_0x2d6bf6);}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',_0x350e59=>{this['toggleAttribute']('hidden',!!_0x350e59);});}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(_0xe8ce6b){return new Promise(_0x4f8f73=>{'function'!=typeof window['FileReader']&&_0x4f8f73(!0x1);try{const _0x52bb0a=new FileReader();_0x52bb0a['onerror']=()=>{_0x4f8f73(!0x0);};const _0x752993=_0x4f8799=>{'loadend'!==_0x4f8799['type']&&_0x52bb0a['abort'](),_0x4f8f73(!0x1);};_0x52bb0a['onloadend']=_0x752993,_0x52bb0a['onprogress']=_0x752993,_0x52bb0a['readAsDataURL'](_0xe8ce6b);}catch{_0x4f8f73(!0x1);}});}function readEntryContentAsync(_0x1c45da,_0x418d4c){return new Promise(_0x590bba=>{let _0x329072=0x0;const _0x5e4301=[],_0x527487=_0x3a97a6=>{if(!_0x3a97a6)return console['warn']('Unexpectedly\x20received\x20empty\x20content\x20entry',{'scope':'drag-and-drop'}),void _0x590bba(null);_0x3a97a6['isFile']?(_0x329072++,_0x3a97a6['file'](_0x19fb73=>{_0x329072--;const _0x166c75=new File([_0x19fb73],_0x19fb73['name'],{'type':_0x19fb73['type']||_0x418d4c});_0x5e4301['push']({'type':'file','file':_0x166c75,'fullPath':_0x3a97a6['fullPath']}),0x0===_0x329072&&_0x590bba(_0x5e4301);})):_0x3a97a6['isDirectory']&&_0x9a1a43(_0x3a97a6['createReader']());},_0x9a1a43=_0x4d17ed=>{_0x329072++,_0x4d17ed['readEntries'](_0x24b89f=>{_0x329072--;for(const _0x501490 of _0x24b89f)_0x527487(_0x501490);0x0===_0x329072&&_0x590bba(_0x5e4301);});};_0x527487(_0x1c45da);});}function getDropItems(_0xd096af){const _0x4807f2=[],_0x206ffa=[];for(let _0x32a417=0x0;_0x32a417<_0xd096af['items']['length'];_0x32a417++){const _0x59ecac=_0xd096af['items'][_0x32a417];if(_0x59ecac){if('file'===_0x59ecac['kind']){const _0x5213ec=_0x59ecac['type'],_0x2b5dc3=_0x59ecac;if('function'==typeof _0x2b5dc3['webkitGetAsEntry']||'function'==typeof _0x2b5dc3['getAsEntry']){const _0x3c9ad4='function'==typeof _0x2b5dc3['webkitGetAsEntry']?_0x2b5dc3['webkitGetAsEntry']():_0x2b5dc3['getAsEntry']?.();_0x3c9ad4&&_0x206ffa['push'](readEntryContentAsync(_0x3c9ad4,_0x5213ec)['then'](_0x298abc=>{_0x298abc&&_0x4807f2['push'](..._0x298abc);}));continue;}const _0x18dddc=_0x59ecac['getAsFile']();_0x18dddc&&_0x206ffa['push'](checkIsDirectory(_0x18dddc)['then'](_0x290167=>{_0x290167||_0x4807f2['push']({'type':'file','file':_0x18dddc});}));}else'string'===_0x59ecac['kind']&&/^text\/uri-list/['test'](_0x59ecac['type'])&&_0x206ffa['push'](new Promise(_0x39af1c=>{_0x59ecac['getAsString'](_0x425b5e=>{_0x4807f2['push']({'type':'url','url':_0x425b5e}),_0x39af1c();});}));}}return Promise['all'](_0x206ffa)['then'](()=>_0x4807f2);}var DropzoneState=Object['freeze']({'ACTIVE':0x0,'INACTIVE':0x1,'NEAR':0x2,'OVER':0x3}),RESET_EVENTS=['focus'],NEAR_OFFSET=0x64,nearnessRegistry=new Map();function distance(_0x4b2726,_0x346e42){const _0x2eeef9=Math['max'](Math['min'](_0x4b2726[0x0],_0x346e42['x']+_0x346e42['width']),_0x346e42['x']),_0xb4826e=Math['max'](Math['min'](_0x4b2726[0x1],_0x346e42['y']+_0x346e42['height']),_0x346e42['y']);return Math['sqrt']((_0x4b2726[0x0]-_0x2eeef9)*(_0x4b2726[0x0]-_0x2eeef9)+(_0x4b2726[0x1]-_0xb4826e)*(_0x4b2726[0x1]-_0xb4826e));}function addDropzone(_0x402f72){let _0x5f2672=0x0;const _0x130eae=document['body'],_0x132300=new Set();let _0x48d16b=DropzoneState['INACTIVE'];const _0x4e6df0=_0x50b7d1=>{_0x402f72['shouldIgnore']()&&_0x50b7d1!==DropzoneState['INACTIVE']||(_0x48d16b!==_0x50b7d1&&_0x132300['forEach'](_0x52551a=>{_0x52551a(_0x50b7d1);}),_0x48d16b=_0x50b7d1);},_0x247d27=()=>_0x5f2672>0x0;var _0x16aae0;_0x16aae0=_0x2f195f=>_0x402f72['onChange'](_0x2f195f),_0x132300['add'](_0x16aae0);const _0x10f07d=()=>{_0x5f2672=0x0,_0x4e6df0(DropzoneState['INACTIVE']);},_0x158db4=()=>{_0x5f2672+=0x1,_0x48d16b===DropzoneState['INACTIVE']&&_0x4e6df0(DropzoneState['ACTIVE']);},_0x10edf0=()=>{_0x5f2672-=0x1,_0x247d27()||_0x4e6df0(DropzoneState['INACTIVE']);},_0x30f4b8=_0x4577c8=>{_0x4577c8['preventDefault'](),_0x5f2672=0x0,_0x4e6df0(DropzoneState['INACTIVE']);},_0x261730=_0x4d63c7=>{if(_0x402f72['shouldIgnore']())return;_0x247d27()||(_0x5f2672+=0x1);const _0x4b6bdb=[_0x4d63c7['x'],_0x4d63c7['y']],_0x300c40=_0x402f72['element']['getBoundingClientRect'](),_0x311538=Math['floor'](distance(_0x4b6bdb,_0x300c40)),_0x156b59=_0x311538<NEAR_OFFSET,_0x2d35da=_0x4d63c7['composedPath']()['includes'](_0x402f72['element']);nearnessRegistry['set'](_0x402f72['element'],_0x311538);const _0x493b89=Math['min'](...nearnessRegistry['values']())===_0x311538;_0x2d35da&&_0x493b89?(_0x4d63c7['preventDefault'](),_0x4e6df0(DropzoneState['OVER'])):_0x4e6df0(_0x156b59&&_0x493b89?DropzoneState['NEAR']:DropzoneState['ACTIVE']);},_0x32ef44=async _0x27568e=>{if(_0x402f72['shouldIgnore']())return;_0x27568e['preventDefault']();const {dataTransfer:_0x416af9}=_0x27568e;if(!_0x416af9)return;const _0x7f9ecd=await getDropItems(_0x416af9);_0x402f72['onItems'](_0x7f9ecd),_0x4e6df0(DropzoneState['INACTIVE']);};return _0x130eae['addEventListener']('drop',_0x30f4b8),_0x130eae['addEventListener']('dragleave',_0x10edf0),_0x130eae['addEventListener']('dragenter',_0x158db4),_0x130eae['addEventListener']('dragover',_0x261730),_0x402f72['element']['addEventListener']('drop',_0x32ef44),RESET_EVENTS['forEach'](_0x71f31f=>{window['addEventListener'](_0x71f31f,_0x10f07d);}),()=>{nearnessRegistry['delete'](_0x402f72['element']),_0x130eae['removeEventListener']('drop',_0x30f4b8),_0x130eae['removeEventListener']('dragleave',_0x10edf0),_0x130eae['removeEventListener']('dragenter',_0x158db4),_0x130eae['removeEventListener']('dragover',_0x261730),_0x402f72['element']['removeEventListener']('drop',_0x32ef44),RESET_EVENTS['forEach'](_0x30b734=>{window['removeEventListener'](_0x30b734,_0x10f07d);});};}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 _0x479d47=this['getBoundingClientRect'](),_0x30bacd=_0x479d47['width']>0x0&&_0x479d47['height']>0x0,_0x1b31d8=_0x479d47['top']>=0x0&&_0x479d47['left']>=0x0&&_0x479d47['bottom']<=(window['innerHeight']||document['documentElement']['clientHeight'])&&_0x479d47['right']<=(window['innerWidth']||document['documentElement']['clientWidth']),_0x3ed12d=window['getComputedStyle'](this),_0x4c9719='hidden'!==_0x3ed12d['visibility']&&'none'!==_0x3ed12d['display'];return _0x30bacd&&_0x4c9719&&_0x1b31d8;}['initCallback'](){super['initCallback'](),this['bindL10n']('text',()=>this['l10n']('drop-files-here')),(this['$'][REGISTRY_KEY]['add'](this),this['defineAccessor']('disabled',_0x1c4fd2=>{this['set$']({'isEnabled':!asBoolean2(_0x1c4fd2)});}),this['defineAccessor']('clickable',_0x4960c0=>{this['set$']({'isClickable':asBoolean2(_0x4960c0)});}),this['defineAccessor']('initflow',_0x135f60=>{this['set$']({'isInitFlow':asBoolean2(_0x135f60)});}),this['defineAccessor']('with-icon',_0x5a18b7=>{this['set$']({'withIcon':asBoolean2(_0x5a18b7)});}),this['defineAccessor']('fullscreen',_0x383604=>{this['set$']({'isFullscreen':asBoolean2(_0x383604)});}),this['defineAccessor']('text',_0x3fa148=>{'string'==typeof _0x3fa148?this['bindL10n']('text',()=>this['l10n'](_0x3fa148)||_0x3fa148):this['bindL10n']('text',()=>this['l10n']('drop-files-here'));}),this['_destroyDropzone']=addDropzone({'element':this,'shouldIgnore':()=>this['_shouldIgnore'](),'onChange':_0x5cb271=>{this['$']['state']=_0x5cb271;},'onItems':_0x5425eb=>{_0x5425eb['length']&&(_0x5425eb['forEach'](_0x296ddd=>{'url'===_0x296ddd['type']?this['api']['addFileFromUrl'](_0x296ddd['url'],{'source':UploadSource['DROP_AREA']}):'file'===_0x296ddd['type']&&this['api']['addFileFromObject'](_0x296ddd['file'],{'source':UploadSource['DROP_AREA'],'fullPath':_0x296ddd['fullPath']});}),this['uploadCollection']['size']&&(this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']})));}}));const _0x1faeaf=this['ref']['content-wrapper'];if(_0x1faeaf&&(this['_destroyContentWrapperDropzone']=addDropzone({'element':_0x1faeaf,'onChange':_0x1953a6=>{const _0x427fd7=Object['entries'](DropzoneState)['find'](([,_0x18b0e0])=>_0x18b0e0===_0x1953a6)?.[0x0]['toLowerCase']();_0x427fd7&&_0x1faeaf['setAttribute']('drag-state',_0x427fd7);},'onItems':()=>{},'shouldIgnore':()=>this['_shouldIgnore']()})),this['sub']('state',_0x524f48=>{const _0x52630a=Object['entries'](DropzoneState)['find'](([,_0x432638])=>_0x432638===_0x524f48)?.[0x0]['toLowerCase']();_0x52630a&&this['setAttribute']('drag-state',_0x52630a);}),this['subConfigValue']('sourceList',_0x525b4f=>{const _0x4d5de3=stringToArray(_0x525b4f);this['$']['isEnabled']=_0x4d5de3['includes'](UploadSource['LOCAL']),this['$']['isVisible']=this['$']['isEnabled']||!this['querySelector']('[data-default-slot]');}),this['sub']('isVisible',_0x333631=>{this['toggleAttribute']('hidden',!_0x333631);}),this['sub']('isClickable',_0x288728=>{this['toggleAttribute']('clickable',_0x288728);}),this['$']['isClickable']){const _0x13b03d=_0x3402b9=>{if(_0x3402b9 instanceof KeyboardEvent){if('Space'===_0x3402b9['code']||'Enter'===_0x3402b9['code']){if(this['$']['isInitFlow'])return void this['api']['initFlow']();this['api']['openSystemDialog']();}}else{if(_0x3402b9 instanceof MouseEvent){if(this['$']['isInitFlow'])return void this['api']['initFlow']();this['api']['openSystemDialog']();}}};this['_onAreaClicked']=_0x13b03d,this['addEventListener']('keydown',_0x13b03d),this['addEventListener']('click',_0x13b03d);}}['_shouldIgnore'](){if(!this['$']['isEnabled'])return!0x0;if(!this['_couldHandleFiles']())return!0x0;if(!this['$']['isFullscreen'])return!0x1;const _0x2bee9b=this['$'][REGISTRY_KEY];if(0x0===_0x2bee9b['size'])return!0x1;return[..._0x2bee9b]['filter'](_0x5d06f7=>_0x5d06f7!==this)['filter'](_0x41fda7=>_0x41fda7['isActive']())['length']>0x0;}['_couldHandleFiles'](){const _0x3f5a18=this['cfg']['multiple'],_0x1039e1=this['cfg']['multipleMax'],_0x59652e=this['uploadCollection']['size'];return!(_0x3f5a18&&_0x1039e1&&_0x59652e>=_0x1039e1)&&!(!_0x3f5a18&&_0x59652e>0x0);}['destroyCallback'](){super['destroyCallback']();const _0xa79d8a=this['$'][REGISTRY_KEY];_0xa79d8a['delete'](this),0x0===_0xa79d8a['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 _0x4e79fb=globalThis['top']??globalThis['parent']??globalThis['self'];try{return _0x4e79fb['location']['origin'];}catch(_0x3a4be2){return console['warn']('Unable\x20to\x20access\x20top-level\x20window\x20location:',_0x3a4be2),globalThis['location']['origin'];}},escapeRegExp=_0x3b3f42=>_0x3b3f42['replace'](/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\x5c$&'),wildcardRegexp=(_0x3d87a1,_0x3b204a='i')=>{const _0x37a003=_0x3d87a1['split']('*')['map'](escapeRegExp);return new RegExp('^'+_0x37a003['join']('.+')+'$',_0x3b204a);},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=(_0x52b4d0,_0x252664)=>window['getComputedStyle'](_0x52b4d0)['getPropertyValue'](_0x252664)['trim'](),buildThemeDefinition=_0x3e5f5e=>{const _0x1cc58c={};for(const _0x111bc9 of ucCustomProperties){const _0x4590f6=getCssValue(_0x3e5f5e,_0x111bc9);_0x4590f6&&(_0x1cc58c[_0x111bc9]=_0x4590f6);}return _0x1cc58c;},MESSAGE_TYPE_WHITELIST=['selected-files-change','toolbar-state-change'],isWhitelistedMessage=_0x542efc=>{if(!_0x542efc)return!0x1;if('object'!=typeof _0x542efc)return!0x1;if(!('type'in _0x542efc))return!0x1;const _0x169e77=_0x542efc['type'];return'string'==typeof _0x169e77&&!!MESSAGE_TYPE_WHITELIST['includes'](_0x169e77);},MessageBridge=class{['_handlerMap']=new Map();['_context'];['_getTargetOrigin'];constructor(_0x5ed004,_0x5ea552){this['_context']=_0x5ed004,this['_getTargetOrigin']=_0x5ea552,window['addEventListener']('message',this['_handleMessage']);}['_handleMessage']=_0x4b8c3d=>{if(_0x4b8c3d['source']!==this['_context'])return;const _0x4d7cf9=_0x4b8c3d['data'];if(!isWhitelistedMessage(_0x4d7cf9))return;const _0x3b2643=this['_handlerMap']['get'](_0x4d7cf9['type']);if(_0x3b2643){for(const _0x9bdee1 of _0x3b2643)_0x9bdee1(_0x4d7cf9);}};['on'](_0x92a2f3,_0x342525){const _0x43bc4b=this['_handlerMap']['get'](_0x92a2f3)??new Set();this['_handlerMap']['has'](_0x92a2f3)||this['_handlerMap']['set'](_0x92a2f3,_0x43bc4b),_0x43bc4b['add'](_0x342525);}['send'](_0xb24d03){const _0x22b136=this['_getTargetOrigin']();this['_context']['postMessage'](_0xb24d03,_0x22b136);}['destroy'](){window['removeEventListener']('message',this['_handleMessage']);}};function queryString(_0x5e5c82){const _0x544b13=[];for(const [_0x5f28ab,_0x60a4ac]of Object['entries'](_0x5e5c82))null==_0x60a4ac||'string'==typeof _0x60a4ac&&0x0===_0x60a4ac['length']||_0x544b13['push'](_0x5f28ab+'='+encodeURIComponent(_0x60a4ac));return _0x544b13['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 _0x41cb60 of this['$']['selectedList']){const _0x2769d6=this['extractUrlFromSelectedFile'](_0x41cb60),{filename:_0xe9f6de}=_0x41cb60,{externalSourceType:_0x17c0a5}=this['activityParams'];this['api']['addFileFromUrl'](_0x2769d6,{'fileName':_0xe9f6de,'source':_0x17c0a5});}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 _0x1da476=super['activityParams'];if('externalSourceType'in _0x1da476)return _0x1da476;throw new Error('External\x20Source\x20activity\x20params\x20not\x20found');}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':()=>{const {externalSourceType:_0xa10ebc}=this['activityParams'];if(!_0xa10ebc)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':''+_0xa10ebc[0x0]?.['toUpperCase']()+_0xa10ebc?.['slice'](0x1),'activityIcon':_0xa10ebc}),this['mountIframe']();}}),this['sub']('*currentActivityParams',_0x76e3af=>{this['isActivityActive']&&(this['unmountIframe'](),this['mountIframe']());}),this['sub']('*currentActivity',_0x19ef19=>{_0x19ef19!==this['activityType']&&this['unmountIframe']();}),this['subConfigValue']('multiple',_0x2db30d=>{this['$']['showSelectionStatus']=_0x2db30d;}),this['subConfigValue']('localeName',_0x1096a7=>{this['setupL10n']();}),this['subConfigValue']('externalSourcesEmbedCss',_0x10b214=>{this['applyEmbedCss'](_0x10b214);});}['extractUrlFromSelectedFile'](_0x397a15){if(_0x397a15['alternatives']){const _0x4b1ea3=stringToArray(this['cfg']['externalSourcesPreferredTypes']);for(const _0x327cd5 of _0x4b1ea3){const _0x3f7313=wildcardRegexp(_0x327cd5);for(const [_0x4ca575,_0x259442]of Object['entries'](_0x397a15['alternatives']))if(_0x3f7313['test'](_0x4ca575))return _0x259442;}}return _0x397a15['url'];}['handleToolbarStateChange'](_0xbafe03){this['set$']({'toolbarVisible':_0xbafe03['isVisible']});}async['handleSelectedFilesChange'](_0x2d4e8a){this['cfg']['multiple']===_0x2d4e8a['isMultipleMode']?(this['bindL10n']('counterText',()=>this['l10n']('selected-count',{'count':_0x2d4e8a['selectedCount'],'total':_0x2d4e8a['total']})),this['set$']({'doneBtnTextClass':_0x2d4e8a['isReady']?'':'uc-hidden','isSelectionReady':_0x2d4e8a['isReady'],'isDoneBtnEnabled':_0x2d4e8a['isReady']&&_0x2d4e8a['selectedFiles']['length']>0x0,'showSelectionStatus':_0x2d4e8a['isMultipleMode']&&_0x2d4e8a['total']>0x0,'couldSelectAll':_0x2d4e8a['selectedCount']<_0x2d4e8a['total'],'couldDeselectAll':_0x2d4e8a['selectedCount']===_0x2d4e8a['total'],'selectedList':_0x2d4e8a['selectedFiles'],'showDoneBtn':_0x2d4e8a['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'](_0x5d2a36){this['_messageBridge']?.['send']({'type':'set-embed-css','css':_0x5d2a36});}['setupL10n'](){this['_messageBridge']?.['send']({'type':'set-locale-definition','localeDefinition':this['cfg']['localeName']});}['remoteUrl'](){const {pubkey:_0x514b31,remoteTabSessionKey:_0x270327,socialBaseUrl:_0xf162f1,multiple:_0x5123f4}=this['cfg'],{externalSourceType:_0x4b085f}=this['activityParams'],_0x428a82=SOCIAL_SOURCE_MAPPING[_0x4b085f]??_0x4b085f,_0x4118c0={'lang':this['l10n']('social-source-lang')?.['split']('-')?.[0x0]||'en','public_key':_0x514b31,'images_only':(!0x1)['toString'](),'session_key':_0x270327,'wait_for_theme':!0x0,'multiple':_0x5123f4['toString'](),'origin':this['cfg']['topLevelOrigin']||getTopLevelOrigin(),'debug':this['cfg']['debug']},_0x312f03=new URL('/window4/'+_0x428a82,_0xf162f1);return _0x312f03['search']=queryString(_0x4118c0),_0x312f03['toString']();}['mountIframe'](){const _0x57e287=create({'tag':'iframe','attributes':{'src':this['remoteUrl'](),'marginheight':0x0,'marginwidth':0x0,'frameborder':0x0,'allowTransparency':!0x0}});_0x57e287['addEventListener']('load',this['handleIframeLoad']['bind'](this)),this['ref']['iframeWrapper']['innerHTML']='',this['ref']['iframeWrapper']['appendChild'](_0x57e287),_0x57e287['contentWindow']&&(this['_messageBridge']?.['destroy'](),this['_messageBridge']=new MessageBridge(_0x57e287['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=_0x3a97ca=>{if('string'!=typeof _0x3a97ca)return!0x1;const _0x211af2=regExpShrink['exec'](_0x3a97ca['toLocaleLowerCase']())??[];if(0x0===_0x211af2['length'])return!0x1;const _0x4ce3e8=Number(_0x211af2[0x1])*Number(_0x211af2[0x2]),_0x7f260b=MAX_SQUARE_SIDE*MAX_SQUARE_SIDE;return _0x4ce3e8>_0x7f260b?(console['warn']('Shrinked\x20size\x20can\x20not\x20be\x20larger\x20than\x20'+Math['floor'](_0x7f260b/0x3e8/0x3e8)+'MP.\x20You\x20have\x20set\x20'+_0x211af2[0x1]+'x'+_0x211af2[0x2]+'\x20('+Math['ceil'](_0x4ce3e8/0x3e8/0x64)/0xa+'MP).'),!0x1):{'quality':_0x211af2[0x3]?Number(_0x211af2[0x3])/0x64:void 0x0,'size':_0x4ce3e8};},FileItemConfig=class extends UploaderBlock{['_entrySubs']=new Set();['_entry']=null;['_withEntry'](_0x3d2224){return(..._0x3588ab)=>{const _0x10fa0c=this['_entry'];if(_0x10fa0c)return _0x3d2224(_0x10fa0c,..._0x3588ab);console['warn']('No\x20entry\x20found');};}['_subEntry'](_0x37502b,_0x37d9e8){this['_withEntry']((_0x8037d7,_0xe2fac2,_0x2c8b0b)=>{const _0x48b3e8=_0x8037d7['subscribe'](_0xe2fac2,_0x5e9cb9=>{this['isConnected']&&_0x2c8b0b(_0x5e9cb9);});this['_entrySubs']['add'](_0x48b3e8);})(_0x37502b,_0x37d9e8);}['_reset'](){for(const _0x177c4e of this['_entrySubs'])_0x177c4e['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'](_0x1abbd3=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'edit-file','node':this['tagName']}}}),this['$']['*currentActivityParams']={'internalId':_0x1abbd3['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'],c=i===FileItemState['QUEUED_UPLOADING'],l=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||c||l||u,'progressValue':l||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'](_0x115ea4){const [_0x1388a7]=_0x115ea4;_0x1388a7&&(this['_isIntersecting']=_0x1388a7['isIntersecting'],this['_thumbRect']=_0x1388a7['boundingClientRect'],_0x1388a7['isIntersecting']&&!this['_renderedOnce']&&(this['render'](),this['_renderedOnce']=!0x0));}['_handleEntryId'](_0x1dfc69){this['_reset']();const _0x2ead2a=this['uploadCollection']?.['read'](_0x1dfc69);this['_entry']=_0x2ead2a,_0x2ead2a&&(this['_subEntry']('isQueuedForValidation',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('isValidationPending',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('uploadProgress',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('isQueuedForUploading',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('fileName',_0xa2d2c3=>{this['$']['itemName']=_0xa2d2c3||_0x2ead2a['getValue']('externalUrl')||this['l10n']('file-no-name'),this['_debouncedCalculateState']();}),this['_subEntry']('externalUrl',_0x5bf26c=>{this['$']['itemName']=_0x2ead2a['getValue']('fileName')||_0x5bf26c||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'](_0x1c341d){'list'===this['cfg']['filesViewMode']?this['$']['showFileNames']=!0x0:this['$']['showFileNames']=_0x1c341d;}['initCallback'](){super['initCallback'](),this['sub']('uid',_0x7795f9=>{this['_handleEntryId'](_0x7795f9);}),this['sub']('state',_0x251487=>{this['_handleState'](_0x251487);}),this['subConfigValue']('useCloudImageEditor',()=>this['_debouncedCalculateState']()),this['subConfigValue']('filesViewMode',_0x4c4a29=>{this['_updateShowFileNames'](this['cfg']['gridShowFileNames']),this['setAttribute']('mode',_0x4c4a29);}),this['subConfigValue']('gridShowFileNames',_0x1867dd=>{this['_updateShowFileNames'](_0x1867dd);}),this['onclick']=()=>{e['activeInstances']['forEach'](_0x591324=>{_0x591324===this?_0x591324['setAttribute']('focused',''):_0x591324['removeAttribute']('focused');});},this['sub']('*uploadTrigger',_0x116fc7=>{this['_entry']&&!_0x116fc7['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'](_0x7bd73b){const _0x1202d4=this['_settingsOfShrink']();return _0x1202d4?await shrinkFile(_0x7bd73b,_0x1202d4):(console['warn']('Image\x20shrink\x20settings\x20are\x20invalid,\x20skipping\x20shrinking'),_0x7bd73b);}['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 _0xfeb15d=document['createElement']('input');return _0xfeb15d['type']='text',_0xfeb15d['name']=this['ctxName'],_0xfeb15d['required']=this['cfg']['multipleMin']>0x0,_0xfeb15d['tabIndex']=-0x1,applyStyles(_0xfeb15d,{'opacity':0x0,'height':0x0,'width':0x0}),_0xfeb15d;}['initCallback'](){super['initCallback'](),this['_validationInputElement']=this['_createValidationInput'](),this['appendChild'](this['_validationInputElement']),this['sub']('*collectionState',_0x4d8cc8=>{{if(!this['_dynamicInputsContainer']){const _0x12ebd5=document['createElement']('div');this['appendChild'](_0x12ebd5),this['_dynamicInputsContainer']=_0x12ebd5;}if(!this['_validationInputElement']){const _0x5ef487=this['_createValidationInput']();this['appendChild'](_0x5ef487),this['_validationInputElement']=_0x5ef487;}if(this['_dynamicInputsContainer']['innerHTML']='','uploading'===_0x4d8cc8['status']||'idle'===_0x4d8cc8['status'])return this['_validationInputElement']['value']='',void this['_validationInputElement']['setCustomValidity']('');if('failed'===_0x4d8cc8['status']){const _0x569fc7=_0x4d8cc8['errors'][0x0]?.['message'];return this['_validationInputElement']['value']='',void this['_validationInputElement']['setCustomValidity'](_0x569fc7??'');}const _0x17dc62=_0x4d8cc8['group']?_0x4d8cc8['group']:null;if(_0x17dc62)return this['_validationInputElement']['value']=_0x17dc62['cdnUrl']??'',void this['_validationInputElement']['setCustomValidity']('');const _0x350920=_0x4d8cc8['allEntries']['map'](_0x2b67b6=>_0x2b67b6['cdnUrl'])['filter'](_0x1e2b71=>'string'==typeof _0x1e2b71);if(!this['cfg']['multiple']&&0x1===_0x350920['length']&&_0x350920[0x0])return this['_validationInputElement']['value']=_0x350920[0x0],void this['_validationInputElement']['setCustomValidity']('');this['_validationInputElement']['remove'](),this['_validationInputElement']=null;const _0x223455=new DocumentFragment();for(const _0x12b67c of _0x350920){const _0xc8906b=document['createElement']('input');_0xc8906b['type']='hidden',_0xc8906b['name']=this['ctxName']+'[]',_0xc8906b['value']=_0x12b67c,_0x223455['appendChild'](_0xc8906b);}this['_dynamicInputsContainer']['replaceChildren'](_0x223455);}},!0x1);}},Icon=class extends Block{constructor(){super(),this['init$']={...this['init$'],'name':'','href':''};}['initCallback'](){super['initCallback'](),this['sub']('name',_0x513532=>{if(!_0x513532)return;let _0xc18435='#uc-icon-'+_0x513532;this['subConfigValue']('iconHrefResolver',_0x1b8888=>{if(_0x1b8888){const _0x69f38b=_0x1b8888(_0x513532);_0xc18435=_0x69f38b??_0xc18435;}this['$']['href']=_0xc18435;});}),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=_0x18a5ae=>[...new Set(_0x18a5ae)],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;['$$'](_0x16e48b){return this['$'][CSS_PREF+_0x16e48b];}['set$$'](_0x43e2f2){for(const _0x3bddd9 in _0x43e2f2)this['$'][CSS_PREF+_0x3bddd9]=_0x43e2f2[_0x3bddd9];}['sub$$'](_0x3a4328,_0x5d39e6){this['sub'](CSS_PREF+_0x3a4328,_0x5da945=>{null!==_0x5da945&&''!==_0x5da945&&_0x5d39e6(_0x5da945);});}['analyticsParams'](){return'-/@clib/'+PACKAGE_NAME+'/'+PACKAGE_VERSION+'/uc-img/';}['initAttributes'](_0x540975){[...this['attributes']]['forEach'](_0x5a385c=>{PROPS_MAP[_0x5a385c['name']]||_0x540975['setAttribute'](_0x5a385c['name'],_0x5a385c['value']);});}['initIntersection'](_0x505732,_0x51a9b0){this['_isnObserver']=new IntersectionObserver(_0x48dd34=>{_0x48dd34['forEach'](_0x3104cf=>{_0x3104cf['isIntersecting']&&(_0x51a9b0(),this['_isnObserver']['unobserve'](_0x505732));});},{'root':null,'rootMargin':'0px'}),this['_isnObserver']['observe'](_0x505732),this['_observed']||(this['_observed']=new Set()),this['_observed']['add'](_0x505732);}['destroyCallback'](){super['destroyCallback'](),this['_isnObserver']&&(this['_observed']['forEach'](_0x1a828b=>{this['_isnObserver']['unobserve'](_0x1a828b);}),this['_isnObserver']=null),Data['deleteCtx'](this);}static get['observedAttributes'](){return Object['keys'](PROPS_MAP);}['attributeChangedCallback'](_0x202006,_0x4bca64,_0x27f8df){window['setTimeout'](()=>{this['$'][CSS_PREF+_0x202006]=_0x27f8df;});}},parseObjectToString=_0x13752b=>Object['entries'](_0x13752b)['filter'](([_0x1bcddf,_0x27ca66])=>void 0x0!==_0x27ca66&&''!==_0x27ca66)['map'](([_0x132066,_0x2658b4])=>'cdn-operations'===_0x132066||'analytics'===_0x132066?_0x2658b4:_0x132066+'/'+_0x2658b4),ImgBase=class extends ImgConfig{['_img']=new Image();['_imgPreview']=new Image();['_fmtAbs'](_0x560985){return!_0x560985['includes']('//')&&!DEV_MODE&&(_0x560985=new URL(_0x560985,document['baseURI'])['href']),_0x560985;}['_validateSize'](_0x300131){if(''!==_0x300131?.['trim']()){const _0x371aab=_0x300131['match'](/\d+/)[0x0],_0x26f8bd=_0x300131['match'](/[a-zA-Z]+/)[0x0],_0x5b05be=parseInt(_0x371aab,0xa);if(Number(_0x5b05be)>MAX_WIDTH_JPG&&this['hasFormatJPG'])return MAX_WIDTH_JPG+_0x26f8bd;if(Number(_0x5b05be)>MAX_WIDTH&&!this['hasFormatJPG'])return MAX_WIDTH+_0x26f8bd;}return _0x300131;}['_getCdnModifiers'](_0x2a67ef,_0x5210e5){const _0x27974d={'format':this['$$']('format'),'quality':this['$$']('quality'),'resize':this['_validateSize'](_0x2a67ef),'blur':_0x5210e5,'cdn-operations':this['$$']('cdn-operations'),'analytics':this['analyticsParams']()};return createCdnUrlModifiers(...parseObjectToString(_0x27974d));}['_getUrlBase'](_0x3a37da='',_0x27ba9e=''){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 _0x18ea4d=this['_getCdnModifiers'](_0x3a37da,_0x27ba9e);return this['$$']('src')['startsWith'](this['$$']('cdn-cname'))?createCdnUrl(this['$$']('src'),_0x18ea4d):this['$$']('cdn-cname')&&this['$$']('uuid')||this['$$']('uuid')?this['_proxyUrl'](createCdnUrl(createOriginalUrl(this['$$']('cdn-cname'),this['$$']('uuid')),_0x18ea4d)):this['$$']('proxy-cname')?this['_proxyUrl'](createCdnUrl(this['$$']('proxy-cname'),_0x18ea4d,this['_fmtAbs'](this['$$']('src')))):this['$$']('pubkey')?this['_proxyUrl'](createCdnUrl('https://'+this['$$']('pubkey')+'.ucr.io/',_0x18ea4d,this['_fmtAbs'](this['$$']('src')))):void 0x0;}['_proxyUrl'](_0x4bc488){return this['$$']('secure-delivery-proxy')?applyTemplateData(this['$$']('secure-delivery-proxy'),{'previewUrl':_0x4bc488},{'transform':_0x380218=>window['encodeURIComponent'](_0x380218)}):_0x4bc488;}['_getElSize'](_0x5946d2,_0x5765c5=0x1,_0xecd20e=!0x0){const _0x367328=_0x5946d2['getBoundingClientRect'](),_0x37dd0a=_0x5765c5*Math['round'](_0x367328['width']),_0x33dd45=_0xecd20e?'':_0x5765c5*Math['round'](_0x367328['height']);return _0x37dd0a||_0x33dd45?(_0x37dd0a||'')+'x'+(_0x33dd45||''):null;}['_setupEventProxy'](_0x8c57e8){const _0x43915a=_0x9eccdf=>{_0x9eccdf['stopPropagation']();const _0x5611c7=new Event(_0x9eccdf['type'],_0x9eccdf);this['dispatchEvent'](_0x5611c7);},_0x321b26=['load','error'];for(const _0x48479 of _0x321b26)_0x8c57e8['addEventListener'](_0x48479,_0x43915a);}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 _0x7b9b5e=stringToArray(this['$$']('breakpoints'));return uniqueArray(_0x7b9b5e['map'](_0x2cc0b1=>parseInt(_0x2cc0b1,0xa)));}return null;}get['hasFormatJPG'](){return'jpeg'===this['$$']('format')['toLowerCase']();}['renderBg'](_0x27c703){const _0x2fe2b3=new Set();_0x2fe2b3['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x27c703))+'\x22)\x201x'),this['$$']('hi-res-support')&&_0x2fe2b3['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x27c703,HI_RES_K))+'\x22)\x20'+HI_RES_K+'x'),this['$$']('ultra-res-support')&&_0x2fe2b3['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x27c703,ULTRA_RES_K))+'\x22)\x20'+ULTRA_RES_K+'x');const _0x5e4f22='image-set('+[..._0x2fe2b3]['join'](',\x20')+')';_0x27c703['style']['setProperty']('background-image',_0x5e4f22),_0x27c703['style']['setProperty']('background-image','-webkit-'+_0x5e4f22);}['getSrcset'](){const _0x3d1779=new Set();return this['breakpoints']?this['breakpoints']['forEach'](_0x5d0dd6=>{_0x3d1779['add'](this['_getUrlBase'](_0x5d0dd6+'x')+('\x20'+this['_validateSize'](_0x5d0dd6+'w'))),this['$$']('hi-res-support')&&_0x3d1779['add'](this['_getUrlBase'](_0x5d0dd6*HI_RES_K+'x')+('\x20'+this['_validateSize'](_0x5d0dd6*HI_RES_K+'w'))),this['$$']('ultra-res-support')&&_0x3d1779['add'](this['_getUrlBase'](_0x5d0dd6*ULTRA_RES_K+'x')+('\x20'+this['_validateSize'](_0x5d0dd6*ULTRA_RES_K+'w')));}):(_0x3d1779['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img']))+'\x201x'),this['$$']('hi-res-support')&&_0x3d1779['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img'],0x2))+'\x202x'),this['$$']('ultra-res-support')&&_0x3d1779['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img'],0x3))+'\x203x')),[..._0x3d1779]['join']();}['getSrc'](){return this['_getUrlBase']();}get['srcUrlPreview'](){return this['_getUrlBase']('100x','100');}['renderBackground'](){[...document['querySelectorAll'](this['bgSelector'])]['forEach'](_0x24258a=>{this['$$']('intersection')?this['initIntersection'](_0x24258a,()=>{this['renderBg'](_0x24258a);}):this['renderBg'](_0x24258a);});}['_appendURL']({elNode:_0x6e5f62,src:_0x10e3e5,srcset:_0x1ce1ed}){_0x10e3e5&&(_0x6e5f62['src']=_0x10e3e5),_0x1ce1ed&&(_0x6e5f62['srcset']=_0x1ce1ed);}['_setupConfigForImage']({elNode:_0x2cb9e0}){this['_setupEventProxy'](_0x2cb9e0),this['initAttributes'](_0x2cb9e0);}['loaderImage']({src:_0x50ec77,srcset:_0xbbd388,elNode:_0xb6f897}){return new Promise((_0x342876,_0x567dae)=>{this['_setupConfigForImage']({'elNode':_0xb6f897}),_0xb6f897['setAttribute'](UNRESOLVED_ATTR,''),_0xb6f897['addEventListener']('load',()=>{_0xb6f897['removeAttribute'](UNRESOLVED_ATTR),_0x342876(_0xb6f897);}),_0xb6f897['addEventListener']('error',()=>{_0x567dae(!0x1);}),this['_appendURL']({'elNode':_0xb6f897,'src':_0x50ec77,'srcset':_0xbbd388});});}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(_0x2ca6bd){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(_0x1aef15){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',_0x50a099=>{this['$$']('is-background-for')||this['$$']('is-preview-blur')||(this['img']['loading']=_0x50a099?'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']=_0x5978d1=>{this['_mouseDownTarget']=_0x5978d1['target'];};['_handleDialogMouseUp']=_0xe5837d=>{const _0x4f2998=_0xe5837d['target'];_0x4f2998===this['ref']['dialog']&&_0x4f2998===this['_mouseDownTarget']&&this['_closeDialog']();};['show'](){const _0x4eb15d=this['ref']['dialog'];'function'==typeof _0x4eb15d['showModal']?(this['setAttribute']('aria-modal','true'),_0x4eb15d['showModal']()):_0x4eb15d['setAttribute']('open',''),this['cfg']['modalScrollLock']&&(document['body']['style']['overflow']='hidden');}['hide'](){const _0x18fdee=this['ref']['dialog'];'function'==typeof _0x18fdee['close']?(this['setAttribute']('aria-modal','false'),_0x18fdee['close']()):_0x18fdee['removeAttribute']('open');}['_handleModalOpen']({id:_0x354992}){_0x354992===this['id']?(LAST_ACTIVE_MODAL_ID=_0x354992,this['show'](),this['emit'](EventType['MODAL_OPEN'],{'modalId':_0x354992},{'debounce':!0x0})):this['hide']();}['_handleModalClose']({id:_0x27b253}){_0x27b253===this['id']&&(this['hide'](),this['emit'](EventType['MODAL_CLOSE'],{'modalId':_0x27b253,'hasActiveModals':this['modalManager']?.['hasActiveModals']},{'debounce':!0x0}));}['_handleModalCloseAll'](_0x20afb0){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 _0x28f24e=this['ref']['dialog'];_0x28f24e['addEventListener']('close',this['_handleDialogClose']),_0x28f24e['addEventListener']('mousedown',this['_handleDialogMouseDown']),_0x28f24e['addEventListener']('mouseup',this['_handleDialogMouseUp']),this['subConfigValue']('modalBackdropStrokes',_0x4b33a3=>{_0x4b33a3?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 _0x14889b=this['ref']['dialog'];_0x14889b['removeEventListener']('close',this['_handleDialogClose']),_0x14889b['removeEventListener']('mousedown',this['_handleDialogMouseDown']),_0x14889b['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 _0x117ccb=this['ref']['fakeProgressLine'];this['_visible']?this['_value']>0x0&&_0x117ccb['classList']['add']('uc-fake-progress--hidden'):_0x117ccb['classList']['add']('uc-fake-progress--hidden');}),this['defineAccessor']('value',_0x330434=>{null!=_0x330434&&(this['_value']=_0x330434,this['_visible']&&this['style']['setProperty']('--l-progress-value',this['_value']['toString']()));}),this['defineAccessor']('visible',_0x364ebc=>{this['_visible']=_0x364ebc,this['classList']['toggle']('uc-progress-bar--hidden',!_0x364ebc);}));}};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 _0x13f485=this['uploadCollection']['items']()['some'](_0xbd3c23=>{const _0x170d16=this['uploadCollection']['read'](_0xbd3c23);return _0x170d16?.['getValue']('isUploading')??!0x1;});this['$']['visible']=_0x13f485;}),this['sub']('visible',_0x51a172=>{_0x51a172?this['setAttribute']('active',''):this['removeAttribute']('active');}),this['sub']('*commonProgress',_0x472d85=>{this['$']['value']=_0x472d85;});}['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':_0x122f1f=>{_0x122f1f['preventDefault'](),_0x122f1f['stopPropagation']();const _0x3236c0=this['ref']['select'];this['value']=_0x3236c0['value'],this['$']['currentText']=this['$']['options']['find'](_0x3a49d3=>_0x3a49d3['value']===this['value'])?.['text']||'',this['dispatchEvent'](new Event('change'));}};}['initCallback'](){super['initCallback'](),this['sub']('options',_0x1a7283=>{this['$']['currentText']=_0x1a7283?.[0x0]?.['text']||'';let _0x37c7f7='';_0x1a7283?.['forEach'](_0x3c2c60=>{_0x37c7f7+='<option\x20value=\x22'+_0x3c2c60['value']+'\x22>'+_0x3c2c60['text']+'</option>';}),this['$']['selectHtml']=_0x37c7f7;});}};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',_0x192295=>{void 0x0!==_0x192295&&(this['$']['withDropZone']=asBoolean2(_0x192295));}),this['subConfigValue']('multiple',_0x1d09bf=>{this['$']['button-text']=_0x1d09bf?'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 _0x27ee4b=browserFeatures['htmlMediaCapture'];return _0x27ee4b&&this['api']['openSystemDialog']({'captureCamera':!0x0}),!_0x27ee4b;}}),this['registerType']({'type':'draw','activity':ActivityBlock['activities']['DRAW'],'icon':'edit-draw'});for(const _0x2f5191 of Object['values'](UploadSourceMobile))this['registerType']({'type':_0x2f5191,'activity':ActivityBlock['activities']['CAMERA'],'activate':()=>{const _0x5c8846=browserFeatures['htmlMediaCapture'];return _0x5c8846&&this['api']['openSystemDialog']({'captureCamera':!0x0,'modeCamera':'mobile-photo-camera'===_0x2f5191?CameraSourceTypes['PHOTO']:CameraSourceTypes['VIDEO']}),!_0x5c8846;}});for(const _0x291d3c of Object['values'](ExternalUploadSource))this['registerType']({'type':_0x291d3c,'activity':ActivityBlock['activities']['EXTERNAL'],'activityParams':{'externalSourceType':_0x291d3c}});}['initCallback'](){super['initCallback'](),this['initTypes'](),this['defineAccessor']('type',_0x36ead9=>{_0x36ead9&&this['applyType'](_0x36ead9);});}['registerType'](_0x805ad1){this['_registeredTypes'][_0x805ad1['type']]=_0x805ad1;}['getType'](_0x576e85){return this['_registeredTypes'][_0x576e85];}['activate'](){if(!this['type'])return;const _0x6ac81e=this['_registeredTypes'][this['type']];if(!_0x6ac81e)return;const {activity:_0x2e6f6b,activate:_0x187097,activityParams:_0x42ba99={}}=_0x6ac81e;(_0x187097?_0x187097():!!_0x2e6f6b)&&_0x2e6f6b&&(this['modalManager']?.['open'](_0x2e6f6b),this['set$']({'*currentActivityParams':_0x42ba99,'*currentActivity':_0x2e6f6b}));}['applyType'](_0x26869d){const _0x169328=this['_registeredTypes'][_0x26869d];if(!_0x169328)return void console['warn']('Unsupported\x20source\x20type:\x20'+_0x26869d);const {textKey:_0x26ba18=_0x26869d,icon:_0x31d480=_0x26869d}=_0x169328;this['$']['src-type']=''+L10N_PREFIX+_0x26ba18,this['$']['iconName']=_0x31d480,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',_0x196cf1=>{const _0x5175c3=stringToArray(_0x196cf1);let _0x8992cc='';_0x5175c3['forEach'](_0x518d44=>{'instagram'!==_0x518d44?'camera'===_0x518d44&&browserFeatures['htmlMediaCapture']?this['subConfigValue']('cameraModes',_0x26f259=>{const _0x1e5d2d=deserializeCsv(_0x26f259);_0x1e5d2d['forEach'](_0x5c2954=>{_0x8992cc+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22mobile-'+_0x5c2954+'-camera\x22></uc-source-btn>';}),0x0===_0x1e5d2d['length']&&(_0x8992cc+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22mobile-photo-camera\x22></uc-source-btn>');}):_0x8992cc+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22'+_0x518d44+'\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']=_0x8992cc:this['outerHTML']=_0x8992cc;});}},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(_0x4212b7,_0x142c49=0x28){if('image/svg+xml'===_0x4212b7['type'])return URL['createObjectURL'](_0x4212b7);const _0x2b2443=document['createElement']('canvas'),_0x19bea2=_0x2b2443['getContext']('2d');if(!_0x19bea2)return Promise['reject'](new Error('Canvas\x20context\x20not\x20supported'));const _0x4972ac=new Image(),_0x18235e=new Promise((_0xa3d3d8,_0xa03cfd)=>{_0x4972ac['onload']=()=>{const _0x1b3e08=_0x4972ac['height']/_0x4972ac['width'];_0x1b3e08>0x1?(_0x2b2443['width']=_0x142c49,_0x2b2443['height']=_0x142c49*_0x1b3e08):(_0x2b2443['height']=_0x142c49,_0x2b2443['width']=_0x142c49/_0x1b3e08),_0x19bea2['fillStyle']='rgb(240,\x20240,\x20240)',_0x19bea2['fillRect'](0x0,0x0,_0x2b2443['width'],_0x2b2443['height']),_0x19bea2['drawImage'](_0x4972ac,0x0,0x0,_0x2b2443['width'],_0x2b2443['height']),_0x2b2443['toBlob'](_0x51de0f=>{if(!_0x51de0f)return void _0xa03cfd();const _0x198bf3=URL['createObjectURL'](_0x51de0f);_0xa3d3d8(_0x198bf3);});},_0x4972ac['onerror']=_0x203d3c=>{_0xa03cfd(_0x203d3c);};});return _0x4972ac['src']=URL['createObjectURL'](_0x4212b7),_0x18235e;}function createSvgBlobUrl(_0x3a0714){const _0x50d783=new Blob([_0x3a0714],{'type':'image/svg+xml'});return URL['createObjectURL'](_0x50d783);}function fileCssBg(_0x39943f='hsl(209,\x2021%,\x2065%)',_0x5b4dee=0x20,_0x480e5d=0x20){return createSvgBlobUrl('\x0a\x20\x20<svg\x20width=\x22'+_0x5b4dee+'\x22\x20height=\x22'+_0x480e5d+'\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'+_0x39943f+'\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'](_0x1b52c2=!0x1){_0x1b52c2&&(this['_thumbRect']=this['getBoundingClientRect']());let _0x474fe7=Math['max'](parseInt(String(this?.['_thumbRect']?.['height']||0x0),0xa),parseInt(String(this?.['_thumbRect']?.['width']||0x0),0xa),this['cfg']['thumbSize']);return window['devicePixelRatio']>0x1&&(_0x474fe7*=window['devicePixelRatio']),Math['min'](_0x474fe7,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 c=e['getValue']('file');if(c?.['type']['includes']('image'))try{const i=await generateThumb(c,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'](_0x40bcfe){const [_0x23c332]=_0x40bcfe;_0x23c332&&(this['_isIntersecting']=_0x23c332['isIntersecting'],_0x23c332['isIntersecting']&&(this['_thumbRect']=_0x23c332['boundingClientRect'],this['_debouncedGenerateThumb'](),this['_observer']?.['disconnect']()),0x0===_0x23c332['intersectionRatio']&&this['_debouncedGenerateThumb']['cancel']());}['_reset'](){super['_reset'](),this['_debouncedGenerateThumb']['cancel']();}['_handleEntryId'](_0x3d026b){this['_reset']();const _0x52d80c=this['uploadCollection']?.['read'](_0x3d026b);this['_entry']=_0x52d80c,_0x52d80c&&(this['_subEntry']('fileInfo',_0x4c1c95=>{_0x4c1c95?.['isImage']&&this['_isIntersecting']&&this['_debouncedGenerateThumb']();}),this['_subEntry']('thumbUrl',_0x3e3504=>{this['$']['thumbUrl']=_0x3e3504?'url('+_0x3e3504+')':'';}),this['_subEntry']('cdnUrlModifiers',()=>{this['_isIntersecting']&&this['_debouncedGenerateThumb']();}),this['_isIntersecting']&&this['_debouncedGenerateThumb']());}['initCallback'](){super['initCallback'](),this['defineAccessor']('badgeIcon',_0x4bff34=>{this['$']['badgeIcon']=_0x4bff34;}),this['defineAccessor']('uid',_0x247600=>{this['set$']({'uid':_0x247600});}),this['sub']('uid',_0xd39eb4=>{this['_handleEntryId'](_0xd39eb4);}),this['subConfigValue']('filesViewMode',_0x30f9f8=>{'grid'!==_0x30f9f8||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 _0xaaa840=this['api']['getOutputCollectionState'](),_0x5135fe={'total':_0xaaa840['totalCount'],'succeed':_0xaaa840['successCount'],'uploading':_0xaaa840['uploadingCount'],'failed':_0xaaa840['failedCount'],'validatingBeforeUploading':_0xaaa840['idleEntries']['filter'](_0x409a09=>_0x409a09['isValidationPending'])['length']},_0x5411a0=!_0xaaa840['errors']['some'](_0x3d175f=>'TOO_MANY_FILES'===_0x3d175f['type']||'TOO_FEW_FILES'===_0x3d175f['type']),_0xcf23f=_0xaaa840['errors']['some'](_0x5a2a3d=>'TOO_MANY_FILES'===_0x5a2a3d['type']),_0xdc8b10=_0xaaa840['totalCount']===(this['cfg']['multiple']?this['cfg']['multipleMax']:0x1),_0x44ba1c=_0xaaa840['allEntries']['some'](_0x6e1348=>_0x6e1348['isValidationPending']),_0x2f6bc4=0x0===_0x5135fe['failed']&&0x0===_0xaaa840['errors']['length']&&!_0x44ba1c;let _0x3b9392=!0x1,_0x240f26=!0x1,_0x1fdacf=!0x1;if(_0x5135fe['total']-_0x5135fe['succeed']-_0x5135fe['uploading']-_0x5135fe['failed']>0x0&&_0x5411a0&&_0x2f6bc4)_0x3b9392=!0x0;else{_0x240f26=!0x0;const _0x4472d0=!this['cfg']['groupOutput']||!!_0xaaa840['group'];_0x1fdacf=_0x5135fe['total']===_0x5135fe['succeed']&&_0x5411a0&&_0x2f6bc4&&_0x4472d0;}this['set$']({'doneBtnVisible':_0x240f26,'doneBtnEnabled':_0x1fdacf,'uploadBtnVisible':_0x3b9392,'addMoreBtnEnabled':0x0===_0x5135fe['total']||!_0xcf23f&&!_0xdc8b10,'addMoreBtnVisible':!_0xdc8b10||this['cfg']['multiple'],'hasFiles':_0x5135fe['total']>0x0}),this['bindL10n']('headerText',()=>this['_getHeaderText'](_0x5135fe));}['_getHeaderText'](_0x5ed992){const _0x159724=_0x28e120=>{let _0x52113d=_0x5ed992[_0x28e120];return'uploading'===_0x28e120&&(_0x52113d+=_0x5ed992['validatingBeforeUploading']),this['l10n']('header-'+_0x28e120,{'count':_0x52113d});};return _0x5ed992['uploading']>0x0||_0x5ed992['validatingBeforeUploading']>0x0?_0x159724('uploading'):_0x5ed992['failed']>0x0?_0x159724('failed'):_0x5ed992['succeed']>0x0?_0x159724('succeed'):_0x159724('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',_0x8b1331=>{_0x8b1331&&this['_throttledHandleCollectionUpdate']();}),this['subConfigValue']('filesViewMode',_0x48c147=>{this['setAttribute']('mode',_0x48c147);}),this['sub']('*currentActivity',_0x1cf2e6=>{this['couldOpenActivity']||_0x1cf2e6!==this['activityType']||(this['$']['*currentActivity']=this['initActivity']);}),this['uploadCollection']['observeProperties'](this['_throttledHandleCollectionUpdate']),this['uploadCollection']['observeCollection'](this['_throttledHandleCollectionUpdate']),this['sub']('*collectionErrors',_0x5021c0=>{const _0x39d0e7=_0x5021c0['filter'](_0x4e4f20=>'SOME_FILES_HAS_ERRORS'!==_0x4e4f20['type'])[0x0];_0x39d0e7?this['set$']({'commonErrorMessage':_0x39d0e7['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':_0x5e37d5=>{_0x5e37d5['preventDefault'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'upload-from-url','node':this['tagName']}}});const _0x4e23fb=this['ref']['input']['value'];this['api']['addFileFromUrl'](_0x4e23fb,{'source':UploadSource['URL']}),this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'];},'onCancel':()=>{this['historyBack']();},'onInput':_0x822d10=>{const _0x598fdb=_0x822d10['target']?.['value']??'';this['set$']({'importDisabled':!_0x598fdb});}};}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']??'',{'onActivate':()=>{const _0x4a9831=this['ref']['input'];_0x4a9831['value']='',_0x4a9831['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 _0x4cd28e=this['$']['*historyBack'];return void _0x4cd28e?.();}this['couldShowList']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}};}get['couldHistoryBack'](){const _0x1f80be=this['$']['*history'];return!(!_0x1f80be||_0x1f80be['length']<=0x1)&&_0x1f80be[_0x1f80be['length']-0x1]!==ActivityBlock['activities']['START_FROM'];}get['couldShowList'](){const _0x24e9d3=this['$']['*uploadList'];return this['cfg']['showEmptyList']||Array['isArray'](_0x24e9d3)&&_0x24e9d3['length']>0x0;}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']});const _0x29cf78=this['ref']['uBlock'];_0x29cf78&&(this['sub']('*currentActivity',_0x2da97c=>{_0x2da97c||(this['$']['*currentActivity']=_0x29cf78['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['sub']('*uploadList',_0xcdee8a=>{Array['isArray'](_0xcdee8a)&&_0xcdee8a['length']>0x0&&this['$']['*currentActivity']===(_0x29cf78['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'](_0x3f4d35){_0x3f4d35['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 _0x31e774=this['$']['*uploadList'];(!_0x31e774||_0x31e774['length']<=0x0)&&this['set$']({'classStartFrom':ACTIVE_CLASS});}['_handleModalClose'](_0xd4e41c){_0xd4e41c['id']===this['$']['*currentActivity']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['set$']({'isHiddenStartFrom':!0x1})),_0xd4e41c['id']===ActivityBlock['activities']['CLOUD_IMG_EDIT']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']});const _0x2af704=this['ref']['uBlock'];_0x2af704&&(this['sub']('*currentActivity',_0x3e234b=>{_0x3e234b===ActivityBlock['activities']['UPLOAD_LIST']&&this['modalManager']?.['closeAll'](),_0x3e234b||(this['$']['*currentActivity']=_0x2af704['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['sub']('*uploadList',_0x5e3dd3=>{Array['isArray'](_0x5e3dd3)&&_0x5e3dd3['length']>0x0?(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['set$']({'classStartFrom':EMPTY_CLASS})):(this['set$']({'classUploadList':EMPTY_CLASS,'isHiddenStartFrom':!0x1}),this['$']['*currentActivity']=_0x2af704['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['subConfigValue']('confirmUpload',_0x212da1=>{!0x1!==_0x212da1&&(this['cfg']['confirmUpload']=!0x1);}),this['subConfigValue']('filesViewMode',_0x4cf072=>{this['setAttribute']('mode',_0x4cf072),this['subConfigValue']('multiple',_0x7ae0f3=>{'grid'===_0x4cf072?(_0x7ae0f3?this['style']['removeProperty']('--uc-grid-col'):this['style']['setProperty']('--uc-grid-col','1'),this['$']['singleUpload']=!_0x7ae0f3):(this['style']['removeProperty']('--uc-grid-col'),this['$']['singleUpload']=!0x1);});}),this['handleModalOpen']=_0x515e9d=>{this['_handleModalOpen'](_0x515e9d);},this['handleModalClose']=_0x3b8bd=>{this['_handleModalClose'](_0x3b8bd);},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 _0x2ee854={...this['init$'],'isHidden':!0x1,'*solution':this['tagName']};this['init$']=_0x2ee854;}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']}),this['defineAccessor']('headless',_0x5d4d46=>{this['set$']({'isHidden':asBoolean2(_0x5d4d46)});});}};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(_0x376d49){super(_0x376d49),_0x376d49['config']['define']('uploadcare.uploader.sourceList',[UploadcareSource['Local'],UploadcareSource['URL']]),defineComponents(UC),this['_defineLocale']();}['_defineLocale'](){const _0x124928=this['editor']['config']['get']('uploadcare.locale'),_0x3adb5a=this['editor']['locale']['contentLanguage'];_0x124928&&defineLocale(_0x3adb5a,_0x124928);}}class UploadcareImageEditFormLoadingView extends View{constructor(_0x468069){super(_0x468069);const t=_0x468069['t'],_0x2848c3=this['bindTemplate'],_0x24cc30=new SpinnerView();_0x24cc30['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':[_0x24cc30,{'text':_0x2848c3['to']('imageUploadProgress',_0x2febee=>t('Loading\x20image...')+'\x20('+(_0x2febee||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(_0x18646e){super(_0x18646e);const t=_0x18646e['t'];this['set']('errorType',null);const _0x37bce3=new ButtonView(_0x18646e);_0x37bce3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x37bce3['withText']=!0x0,_0x37bce3['class']='ck-button-action',_0x37bce3['on']('execute',()=>{this['fire']('retry');}),_0x37bce3['bind']('isVisible')['to'](this,'errorType',_0x30019=>'NotFound'!==_0x30019);const _0x2d02de=new IconView();_0x2d02de['content']=IconError,_0x2d02de['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xa6093a=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':[_0x2d02de,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xa6093a['to']('errorType',_0xf5b2e7=>t('NotFound'!==_0xf5b2e7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x37bce3]},{'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(_0x10b71a,_0x29f746){super(_0x10b71a);const _0x1333d7=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x29f746,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1333d7['to']('imageSrc')}});}}class UploadcareImageEditFormView extends DialogFocusManagerView{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4323ef,_0x2220f6,_0x385681){super(_0x4323ef),this['_items']=this['createCollection'](),this['_loadingView']=new UploadcareImageEditFormLoadingView(_0x4323ef),this['_errorView']=new UploadcareImageEditFormErrorView(_0x4323ef),this['_editingView']=new UploadcareImageEditFormEditingView(_0x4323ef,_0x385681),this['_focusableView']=new View(_0x4323ef),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2220f6),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'],_0x39c6b0=>{this['_addUploadcareImageEditorListeners'](_0x39c6b0);});}),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'](_0xb18f33,_0x348e78){const _0x1e43c2='uc-cloud-image-editor',_0xfca32=_0xb18f33['querySelector'](_0x1e43c2);if(_0xfca32)return _0x348e78(_0xfca32);const _0x2ebefc=new MutationObserver(_0x9bc0c8=>{const _0x4e8ed4=_0x9bc0c8['filter'](_0x33084f=>_0x33084f['target']===_0xb18f33&&_0x33084f['addedNodes']['length']>0x0&&_0x33084f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1e43c2);_0x4e8ed4['length']&&(_0x2ebefc['disconnect'](),_0x348e78(_0x4e8ed4[0x0]['addedNodes'][0x0]));});_0x2ebefc['observe'](_0xb18f33,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x23abf7){_0x23abf7['addEventListener']('apply',_0xeed56b=>{this['fire']('apply',{'imageSrc':_0xeed56b['detail']['cdnUrl']});}),_0x23abf7['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(_0x343463,_0x380829,_0x44fe4a){super(),this['_editor']=_0x343463,this['_dialog']=_0x380829,this['_imageElement']=_0x44fe4a,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 _0x5252ae=this['_imageElement'],_0x4c34c6=_0x5252ae['getAttribute']('uploadcareImageId'),_0x1beb71=_0x5252ae['getAttribute']('src');if(_0x4c34c6)await this['_loadImageInfo'](_0x4c34c6,_0x1beb71);else{if(this['_imageCache']['has'](_0x1beb71)){const _0x2fa8a9=this['_imageCache']['get'](_0x1beb71);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2fa8a9['url'],this['imageDimension']=_0x2fa8a9['dimension'],this['imageId']=_0x2fa8a9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5183bb}=this['_editor'],t=_0x5183bb['t'],_0x51d501=new UploadcareImageEditFormView(_0x5183bb,this['imageStatus'],this['_attributes']);_0x51d501['bind']('status')['to'](this,'imageStatus'),_0x51d501['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x51d501['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x51d501['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x51d501,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':IconUploadcareImageEdit,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x51d501,'position':DialogViewPosition['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x51d501['focus']();},'onHide':()=>{_0x51d501['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xa974b6=>!isAncestor(_0xa974b6,_0x51d501['element'])}});}['_loadImageInfo'](_0x789d04,_0x1e2259){return UploadUtils['getInfo'](_0x789d04,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5ea678=>{const {width:_0x2df3a7,height:_0x2b92af}=_0x5ea678['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e2259,this['imageDimension']={'width':_0x2df3a7,'height':_0x2b92af},this['imageId']=_0x789d04;})['catch'](_0x196dfe=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x196dfe['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3cd9f6,_0x2a0aee){return this['_getImageAsFile'](_0x3cd9f6)['then'](_0x562354=>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':_0x2a0aee['signal'],'file':_0x562354,'onProgress':_0x5354dc=>{_0x5354dc&&_0x5354dc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5354dc['value']));}}))['then'](_0x551ba0=>{const {width:_0x1c77dc,height:_0x5c701e}=_0x551ba0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x551ba0['cdnUrl'],this['imageDimension']={'width':_0x1c77dc,'height':_0x5c701e},this['imageId']=_0x551ba0['uuid'],this['imageUploadProgress']=null;const _0x2ecdb2=_0x3cd9f6['getAttribute']('src');this['_imageCache']['set'](_0x2ecdb2,{'id':_0x551ba0['uuid'],'url':_0x551ba0['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x13e379=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13e379['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x356eaf,_0x43ddb5){_0x356eaf['on']('apply',(_0x274fb9,_0x554ec1)=>{this['_replaceImage'](_0x43ddb5,_0x554ec1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x356eaf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x356eaf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2c5390,_0x3996a0,_0xc993c9){const _0x14bcb4=this['_editor'],{width:_0x3a3d42,height:_0x3ae7de}=getImageDimension(_0x3996a0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1632e9,imageSources:_0x8bcd2}=getImageUrls(_0x3996a0,_0x3a3d42);_0x14bcb4['model']['change'](_0x4d29dc=>{if('$graveyard'===_0x2c5390['root']['rootName']){_0x14bcb4['execute']('insertImage',{'imageType':_0x2c5390['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2c5390['getAttributes']()),'uploadcareImageId':_0xc993c9,'src':_0x1632e9,'sources':_0x8bcd2,'width':_0x3a3d42,'height':_0x3ae7de}});const _0x524467=_0x2c5390['getChildren']();_0x2c5390=_0x14bcb4['model']['document']['selection']['getSelectedElement']();for(const _0x545a6d of _0x524467)_0x4d29dc['append'](_0x4d29dc['cloneElement'](_0x545a6d),_0x2c5390);}else _0x4d29dc['setSelection'](_0x2c5390,'on'),_0x14bcb4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2c5390['getAttributes']()),'uploadcareImageId':_0xc993c9,'src':_0x1632e9,'sources':_0x8bcd2,'width':_0x3a3d42,'height':_0x3ae7de},_0x2c5390);_0x4d29dc['setSelection'](_0x2c5390,'on');});}async['_getImageAsFile'](_0x1d41bb){const _0x1a1491=_0x42cc73['window'],_0x4e62c8=_0x42cc73['document']['location']['href'],_0x49f162=new _0x1a1491['URL'](_0x1d41bb['getAttribute']('src'),_0x4e62c8);if('data:'===_0x49f162['protocol']){const _0x2fff5c=_0x49f162['href']['split'](','),_0x35fc99=_0x2fff5c[0x0]['match'](/:(.*?);/)[0x1],_0x22bcd1=_0x35fc99['split']('/')[0x1],_0x559cf3=_0x1a1491['atob'](_0x2fff5c[_0x2fff5c['length']-0x1]);let _0x5e772f=_0x559cf3['length'];const _0x4c9db2=new _0x1a1491['Uint8Array'](_0x5e772f);for(;_0x5e772f--;)_0x4c9db2[_0x5e772f]=_0x559cf3['charCodeAt'](_0x5e772f);return new _0x1a1491['File']([_0x4c9db2],'image.'+_0x22bcd1,{'type':_0x35fc99});}const _0x482b76=_0x49f162['href']['split']('/'),_0x329d4a=_0x482b76[_0x482b76['length']-0x1],_0x52335e=_0x329d4a['split']('.')[0x1];return _0x1a1491['fetch'](_0x49f162['href'])['then'](_0x948a39=>_0x948a39['clone']()['blob']())['then'](_0x56bd72=>new _0x1a1491['File']([_0x56bd72],_0x329d4a,{'type':'image/'+_0x52335e}));}}class UploadcareImageEditCommand extends _0x210666{['imageEditController'];static get['requires'](){return[Dialog];}['_isEditable'];constructor(_0x543049){super(_0x543049),this['imageEditController']=void 0x0,this['_isEditable']=createEditabilityChecker(_0x543049['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4cacb1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4cacb1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1123e7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1123e7&&(_0x1123e7['is']('element','imageBlock')||_0x1123e7['is']('element','imageInline'))&&(this['imageEditController']=new UploadcareImageEditController(this['editor'],this['editor']['plugins']['get'](Dialog),_0x1123e7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class UploadcareImageReplaceCommand extends _0x210666{['refresh'](){const _0x583981=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x583981&&(_0x583981['is']('element','imageBlock')||_0x583981['is']('element','imageInline')));}['execute'](_0x38c6b4){const _0x14d2af=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4761c0=>{_0x4761c0['setAttributes'](_0x38c6b4,_0x14d2af),_0x4761c0['removeAttribute']('srcset',_0x14d2af),_0x4761c0['removeAttribute']('sizes',_0x14d2af);});}}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:_0x4d28b5}=this;_0x4d28b5['commands']['add']('uploadcareImageEdit',new UploadcareImageEditCommand(_0x4d28b5)),_0x4d28b5['commands']['add']('uploadcareImageReplace',new UploadcareImageReplaceCommand(_0x4d28b5));}}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 _0x400ae5=this['editor'];_0x400ae5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x405af3=>{const _0x5df5e9=_0x400ae5['commands']['get']('uploadcareImageEdit'),_0x1a7867=new ButtonView(_0x405af3),t=_0x405af3['t'];return _0x1a7867['set']({'icon':IconUploadcareImageEdit,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1a7867['bind']('isEnabled')['to'](_0x5df5e9),_0x1a7867['bind']('isOn')['to'](_0x5df5e9,'isActive'),this['listenTo'](_0x1a7867,'execute',()=>{_0x400ae5['execute']('uploadcareImageEdit'),_0x400ae5['editing']['view']['focus']();}),_0x1a7867;}),this['_initConfig']();}['_initConfig'](){const _0x1d3c5d=createElement(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d3c5d),this['listenTo'](this['editor'],'destroy',()=>{_0x1d3c5d['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;}}class EventStreamSerde{['marshaller'];['serializer'];['deserializer'];['serdeContext'];['defaultContentType'];constructor({marshaller:_0x189f5d,serializer:_0x20e09d,deserializer:_0x207fd6,serdeContext:_0x2401f8,defaultContentType:_0x53a087}){this['marshaller']=_0x189f5d,this['serializer']=_0x20e09d,this['deserializer']=_0x207fd6,this['serdeContext']=_0x2401f8,this['defaultContentType']=_0x53a087;}async['serializeEventStream']({eventStream:_0x2368fd,requestSchema:_0x415a58,initialRequest:_0x3c6118}){const _0x575f18=this['marshaller'],_0x985b9d=_0x415a58['getEventStreamMember'](),_0x2580d7=_0x415a58['getMemberSchema'](_0x985b9d),_0x22a91e=this['serializer'],_0x3e384a=this['defaultContentType'],_0x3acdb7=Symbol('initialRequestMarker'),_0x51ef41={async*[Symbol['asyncIterator']](){if(_0x3c6118){const _0x3a7678={':event-type':{'type':'string','value':'initial-request'},':message-type':{'type':'string','value':'event'},':content-type':{'type':'string','value':_0x3e384a}};_0x22a91e['write'](_0x415a58,_0x3c6118);const _0x1496ef=_0x22a91e['flush']();yield{[_0x3acdb7]:!0x0,'headers':_0x3a7678,'body':_0x1496ef};}for await(const _0x1a4345 of _0x2368fd)yield _0x1a4345;}};return _0x575f18['serialize'](_0x51ef41,_0x43da63=>{if(_0x43da63[_0x3acdb7])return{'headers':_0x43da63['headers'],'body':_0x43da63['body']};const _0x30153d=Object['keys'](_0x43da63)['find'](_0x47d4de=>'__type'!==_0x47d4de)??'',{additionalHeaders:_0x4815a1,body:_0x336845,eventType:_0x2a7041,explicitPayloadContentType:_0x5cc35a}=this['writeEventBody'](_0x30153d,_0x2580d7,_0x43da63);return{'headers':{':event-type':{'type':'string','value':_0x2a7041},':message-type':{'type':'string','value':'event'},':content-type':{'type':'string','value':_0x5cc35a??_0x3e384a},..._0x4815a1},'body':_0x336845};});}async['deserializeEventStream']({response:_0x492def,responseSchema:_0x38dbc8,initialResponseContainer:_0x57c22c}){const _0x97c5a9=this['marshaller'],_0x525c89=_0x38dbc8['getEventStreamMember'](),_0x5a87f5=_0x38dbc8['getMemberSchema'](_0x525c89)['getMemberSchemas'](),_0xf08e04=Symbol('initialResponseMarker'),_0x240fa9=_0x97c5a9['deserialize'](_0x492def['body'],async _0x1e05e4=>{const _0x57a5b7=Object['keys'](_0x1e05e4)['find'](_0x2e1fb6=>'__type'!==_0x2e1fb6)??'',_0x574255=_0x1e05e4[_0x57a5b7]['body'];if('initial-response'===_0x57a5b7){const _0x5ea720=await this['deserializer']['read'](_0x38dbc8,_0x574255);return delete _0x5ea720[_0x525c89],{[_0xf08e04]:!0x0,..._0x5ea720};}if(_0x57a5b7 in _0x5a87f5){const _0x13801f=_0x5a87f5[_0x57a5b7];if(_0x13801f['isStructSchema']()){const _0x163b87={};let _0x27a25e=!0x1;for(const [_0x58c8b2,_0x24c438]of _0x13801f['structIterator']()){const {eventHeader:_0x58c72c,eventPayload:_0x53cbc2}=_0x24c438['getMergedTraits']();if(_0x27a25e=_0x27a25e||Boolean(_0x58c72c||_0x53cbc2),_0x53cbc2)_0x24c438['isBlobSchema']()?_0x163b87[_0x58c8b2]=_0x574255:_0x24c438['isStringSchema']()?_0x163b87[_0x58c8b2]=(this['serdeContext']?.['utf8Encoder']??toUtf8)(_0x574255):_0x24c438['isStructSchema']()&&(_0x163b87[_0x58c8b2]=await this['deserializer']['read'](_0x24c438,_0x574255));else{if(_0x58c72c){const _0x5d8704=_0x1e05e4[_0x57a5b7]['headers'][_0x58c8b2]?.['value'];null!=_0x5d8704&&(_0x24c438['isNumericSchema']()?_0x163b87[_0x58c8b2]=_0x5d8704&&'object'==typeof _0x5d8704&&'bytes'in _0x5d8704?BigInt(_0x5d8704['toString']()):Number(_0x5d8704):_0x163b87[_0x58c8b2]=_0x5d8704);}}}if(_0x27a25e)return{[_0x57a5b7]:_0x163b87};if(0x0===_0x574255['byteLength'])return{[_0x57a5b7]:{}};}return{[_0x57a5b7]:await this['deserializer']['read'](_0x13801f,_0x574255)};}return{'$unknown':_0x1e05e4};}),_0x42b993=_0x240fa9[Symbol['asyncIterator']](),_0x34aa0e=await _0x42b993['next']();if(_0x34aa0e['done'])return _0x240fa9;if(_0x34aa0e['value']?.[_0xf08e04]){if(!_0x38dbc8)throw new Error('@smithy::core/protocols\x20-\x20initial-response\x20event\x20encountered\x20in\x20event\x20stream\x20but\x20no\x20response\x20schema\x20given.');for(const [_0x4b16a3,_0x54e273]of Object['entries'](_0x34aa0e['value']))_0x57c22c[_0x4b16a3]=_0x54e273;}return{async*[Symbol['asyncIterator']](){for(_0x34aa0e?.['value']?.[_0xf08e04]||(yield _0x34aa0e['value']);;){const {done:_0x417a9e,value:_0x4163eb}=await _0x42b993['next']();if(_0x417a9e)break;yield _0x4163eb;}}};}['writeEventBody'](_0x2108f7,_0xb01894,_0x36ec69){const _0x1f3f9a=this['serializer'];let _0x15234b,_0x286711=_0x2108f7,_0x3b3e62=null;const _0x4a30ac={};if(_0xb01894['getSchema']()[0x4]['includes'](_0x2108f7)){const _0x5bc85c=_0xb01894['getMemberSchema'](_0x2108f7);if(_0x5bc85c['isStructSchema']()){for(const [_0x1c2c0d,_0xac338f]of _0x5bc85c['structIterator']()){const {eventHeader:_0xdbb6f0,eventPayload:_0x5848ac}=_0xac338f['getMergedTraits']();if(_0x5848ac)_0x3b3e62=_0x1c2c0d;else{if(_0xdbb6f0){const _0x5910a7=_0x36ec69[_0x2108f7][_0x1c2c0d];let _0x578aa7='binary';_0xac338f['isNumericSchema']()?_0x578aa7=(-0x2)**0x1f<=_0x5910a7&&_0x5910a7<=0x2**0x1f-0x1?'integer':'long':_0xac338f['isTimestampSchema']()?_0x578aa7='timestamp':_0xac338f['isStringSchema']()?_0x578aa7='string':_0xac338f['isBooleanSchema']()&&(_0x578aa7='boolean'),null!=_0x5910a7&&(_0x4a30ac[_0x1c2c0d]={'type':_0x578aa7,'value':_0x5910a7},delete _0x36ec69[_0x2108f7][_0x1c2c0d]);}}}if(null!==_0x3b3e62){const _0x3c5e18=_0x5bc85c['getMemberSchema'](_0x3b3e62);_0x3c5e18['isBlobSchema']()?_0x15234b='application/octet-stream':_0x3c5e18['isStringSchema']()&&(_0x15234b='text/plain'),_0x1f3f9a['write'](_0x3c5e18,_0x36ec69[_0x2108f7][_0x3b3e62]);}else _0x1f3f9a['write'](_0x5bc85c,_0x36ec69[_0x2108f7]);}else{if(!_0x5bc85c['isUnitSchema']())throw new Error('@smithy/core/event-streams\x20-\x20non-struct\x20member\x20not\x20supported\x20in\x20event\x20stream\x20union.');_0x1f3f9a['write'](_0x5bc85c,{});}}else{const [_0x32822c,_0x493f91]=_0x36ec69[_0x2108f7];_0x286711=_0x32822c,_0x1f3f9a['write'](0xf,_0x493f91);}const _0x4997ca=_0x1f3f9a['flush']();return{'body':'string'==typeof _0x4997ca?(this['serdeContext']?.['utf8Decoder']??fromUtf8$2)(_0x4997ca):_0x4997ca,'eventType':_0x286711,'explicitPayloadContentType':_0x15234b,'additionalHeaders':_0x4a30ac};}}var index=Object['freeze']({'__proto__':null,'EventStreamSerde':EventStreamSerde});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};