@ckeditor/ckeditor5-ai 47.4.0-alpha.6 → 47.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  59. package/src/aichat/utils/eventnames.js +1 -1
  60. package/src/aichat/utils/promisequeue.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  70. package/src/aicore/aiconnector.js +1 -1
  71. package/src/aicore/aiediting.js +1 -1
  72. package/src/aicore/model/aicapabilities.js +1 -1
  73. package/src/aicore/model/aiinteraction.js +1 -1
  74. package/src/aicore/model/aimodels.js +1 -1
  75. package/src/aicore/model/aireply.js +1 -1
  76. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  77. package/src/aicore/pipeline/airesponseparser.js +2 -2
  78. package/src/aicore/ui/aidisclaimerview.js +1 -1
  79. package/src/aicore/ui/aiskeleton.js +1 -1
  80. package/src/aicore/ui/aispinner.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  86. package/src/aicore/utils/createresizebutton.js +1 -1
  87. package/src/aicore/utils/documentposition.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aicore/utils/scrollmanager.js +1 -1
  95. package/src/aieditorintegration/aieditorintegration.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  97. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  98. package/src/aiquickactions/aiquickactions.js +1 -1
  99. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  100. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  101. package/src/aiquickactions/aiquickactionsui.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  104. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  105. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  106. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  107. package/src/aireviewmode/aireviewmode.js +1 -1
  108. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  109. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  110. package/src/aireviewmode/aireviewmodeui.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  112. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  113. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  114. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  115. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  116. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  117. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  118. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  123. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  124. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  125. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  126. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  127. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  128. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  129. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  130. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  131. package/src/aitabs/aitabs.js +1 -1
  132. package/src/aitabs/tabs/aitabsview.js +1 -1
  133. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  134. package/src/aitabs/tabs/tabpanelview.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "47.4.0-alpha.6",
3
+ "version": "47.4.0",
4
4
  "description": "AI features for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -29,20 +29,20 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@aws-sdk/client-bedrock-runtime": "3.823.0",
32
- "@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.6",
33
- "@ckeditor/ckeditor5-cloud-services": "47.4.0-alpha.6",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.4.0-alpha.6",
35
- "@ckeditor/ckeditor5-core": "47.4.0-alpha.6",
36
- "@ckeditor/ckeditor5-engine": "47.4.0-alpha.6",
37
- "@ckeditor/ckeditor5-icons": "47.4.0-alpha.6",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.4.0-alpha.6",
39
- "@ckeditor/ckeditor5-table": "47.4.0-alpha.6",
40
- "@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.6",
41
- "@ckeditor/ckeditor5-ui": "47.4.0-alpha.6",
42
- "@ckeditor/ckeditor5-utils": "47.4.0-alpha.6",
43
- "@ckeditor/ckeditor5-real-time-collaboration": "47.4.0-alpha.6",
44
- "ckeditor5": "47.4.0-alpha.6",
45
- "ckeditor5-collaboration": "47.4.0-alpha.6",
32
+ "@ckeditor/ckeditor5-clipboard": "47.4.0",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.4.0",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.4.0",
35
+ "@ckeditor/ckeditor5-core": "47.4.0",
36
+ "@ckeditor/ckeditor5-engine": "47.4.0",
37
+ "@ckeditor/ckeditor5-icons": "47.4.0",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.4.0",
39
+ "@ckeditor/ckeditor5-table": "47.4.0",
40
+ "@ckeditor/ckeditor5-theme-lark": "47.4.0",
41
+ "@ckeditor/ckeditor5-ui": "47.4.0",
42
+ "@ckeditor/ckeditor5-utils": "47.4.0",
43
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.4.0",
44
+ "ckeditor5": "47.4.0",
45
+ "ckeditor5-collaboration": "47.4.0",
46
46
  "es-toolkit": "1.39.5",
47
47
  "eventsource-parser": "3.0.2",
48
48
  "htmlparser2": "10.0.0",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3916ac=_0x2258;(function(_0x2bb34e,_0x2228f4){const _0x4c8c36=_0x2258,_0x47307c=_0x2bb34e();while(!![]){try{const _0x29ac0a=parseInt(_0x4c8c36(0x175))/0x1+-parseInt(_0x4c8c36(0x13a))/0x2+-parseInt(_0x4c8c36(0x121))/0x3+-parseInt(_0x4c8c36(0xcf))/0x4+parseInt(_0x4c8c36(0xdd))/0x5+-parseInt(_0x4c8c36(0xfd))/0x6+parseInt(_0x4c8c36(0x184))/0x7*(-parseInt(_0x4c8c36(0x18e))/0x8);if(_0x29ac0a===_0x2228f4)break;else _0x47307c['push'](_0x47307c['shift']());}catch(_0x39385b){_0x47307c['push'](_0x47307c['shift']());}}}(_0x5817,0xb264d));import{Plugin as _0x47219b}from'ckeditor5/src/core.js';import{AIConnector as _0xd32f0b}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x400db8}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x5f3baf,ButtonView as _0x195466,ViewCollection as _0x4b16ba,View as _0xc5d3c9,BodyCollection as _0x198a07}from'ckeditor5/src/ui.js';import{AIEditing as _0x1897ed}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x5d3719}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x58462d,first as _0x3e106c}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x527de3,IconRefresh as _0x33433b,IconNextArrow as _0x241fe2,IconPreviousArrow as _0x44d609,IconShowChangesOff as _0x4d9b90}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x515f5e}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x1aeb2f}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x20cafc}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x13e402}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x4c6323}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x3a6fe2,getOperationsFromReply as _0x1d9460}from'../aicore/utils/getoperationsfromreply.js';function _0x2258(_0x7a377d,_0x3a07c8){const _0x5817ef=_0x5817();return _0x2258=function(_0x225866,_0x1a67c2){_0x225866=_0x225866-0xc6;let _0x313fb5=_0x5817ef[_0x225866];return _0x313fb5;},_0x2258(_0x7a377d,_0x3a07c8);}import{ModelDocumentFragment as _0xedfd,ModelRange as _0x13e0de,ModelPosition as _0x5e5f1e,_DetachOperation as _0x4e2211,transformOperationSets as _0x1c26e6}from'ckeditor5/src/engine.js';function _0x5817(){const _0x5c26b3=['ck-ai-custom-action-button','actionCallId','startsWith','remove','toolbar','_clone','getSelectedContent','TrackChangesEditing','TrackChanges','executeAction','308uWruab','_navigateToPrevious','AI_ACTIONS_PREVIOUS_INTERACTION','detachFromDom','isPremiumPlugin','_children','operationsA','getCommonAncestor','hasPendingParts','_interactions','84032DObNas','_bodyCollection','selectionRemoved','_navigateToNext','forEach','setErrorState','model','plugins','_aiConnector','_navigationCounter','span','replyContentUpdated','startAutoScroll','_setupCustomViews','getChildAtOffset','textContent','slice','interactionFinished','static','_clearSuggestionContent','_applyOperationsAsSuggestions','_customViews','clearErrorState','close','move','map','$graveyard','upsertAIActionRating','pluginName','set','element','get','pending','AIConnector','isBusy','bodyView','position','_updateNavigationUI','_displayInteractionAtIndex','addOperation','replyCreated','setSelection','bind','453656rXNjQp','nodeAfter','removeNavigationItem','rename','stop','_clearErrorState','accepted','reinsert','getOperations','createPositionBefore','ck-ai-navigation-button\x20ck-ai-next-button','split','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_filterOperationsOutsideRange','7283645epsvnV','applySuggestion','isCollapsed','_appendChild','state','stopListening','streaming','mainView','_anchorOperation','hideLoader','aiBalloon','toggleSuggestionDisplayMode','message','Error\x20updating\x20content\x20in\x20replyCreated:','howMany','rejected','createRange','includes','AI_ACTIONS_NEXT_INTERACTION','Error\x20updating\x20content\x20in\x20replyContentUpdated:','insertSuggestion','areChangesVisible','start','locale','ck-ai-interaction-counter','merge','AI_ACTIONS_TRY_AGAIN','Attribute','TableSelection','documentFragment','getRoot','createPositionAfter','2287446wUyYyK','_getExecuteDataInTable','_setLoadingState','createPositionAt','_navigationPreviousButton','isOfficialPlugin','_clearLoadingState','getChild','type','getSelectedBlocks','first','applyOperation','getDocumentContext','ai-no-track-changes','version','_interaction','getSelectionAsFragment','_executeAction','AIActions','_navigationNextButton','open','_isAbortError','path','1/1','execute','document','attachToDom','insert','range','signal','AI_ACTIONS_GENERIC_ERROR','push','requires','changeGroups','_setErrorState','balloonView','1956612oQXnzO','dialogClosed','_wrapWithCommonAncestors','enqueue','getLimitElement','abort','showLoader','setTemplate','replyChangeGroupStateUpdated','_isNavigationNextButtonInView','destroy','config','Error\x20refreshing\x20interaction:','selection','sourcePosition','has','getFirstRange','baseVersion','toData','_createInteraction','clearLoading','history','_isNavigationPreviousButtonInView','updateContent','Error\x20updating\x20content\x20during\x20navigation:','802312kIOOGh','_stopInteraction','length','_execute','hasError','root','documentContextContent','listenTo','_interactionParams','_balloonShowDiff','setChangeGroupState','stickiness','ai.availableReplyActions','error','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','miniToolbarView','_currentInteractionIndex','upsertCustomAIActionRating','isLoading','batch','end','_getExecuteDataRegular','filter','change','rootName','getRanges','ck-ai-navigation-button\x20ck-ai-previous-button','_refreshInteraction','_promiseQueue','queueEmptyPromise','_applyChanges','clone','showChangesButton','getSelectedTableCells','ai-request-aborted','isDocumentOperation','addNavigationItem','actionName','_isNavigationCounterInView','_clearInteractionHistory','catch','getAncestors','processor','focus','AIBalloon','add','data','parent','nextSibling','stopInteraction','replies','icon','schema','_disableCustomViews','isEnabled','showError','modelToViewWithIds','stopAutoScroll','indexOf','1284163bttMVc','random','editor','hideError','setLoading'];_0x5817=function(){return _0x5c26b3;};return _0x5817();}import{AI_REPLY_ACTIONS as _0x1027ef}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x47219b{static get[_0x3916ac(0x11d)](){return[_0xd32f0b,_0x5f3baf,_0x1897ed,_0x515f5e,_0x4c6323];}static get[_0x3916ac(0x1aa)](){const _0x15104f=_0x3916ac;return _0x15104f(0x10f);}static get[_0x3916ac(0x102)](){return!0x0;}static get[_0x3916ac(0x188)](){return!0x0;}[_0x3916ac(0x196)];[_0x3916ac(0x18d)]=[];[_0x3916ac(0x14a)]=0x0;[_0x3916ac(0x142)];[_0x3916ac(0x143)]=!0x1;[_0x3916ac(0x1a3)]=new _0x4b16ba();[_0x3916ac(0x101)];[_0x3916ac(0x197)];[_0x3916ac(0x160)]=!0x1;[_0x3916ac(0x110)];[_0x3916ac(0x137)]=!0x1;[_0x3916ac(0x12a)]=!0x1;[_0x3916ac(0x156)];[_0x3916ac(0x18f)];get[_0x3916ac(0x10c)](){const _0x1fade2=_0x3916ac;return this[_0x1fade2(0x18d)][this[_0x1fade2(0x18d)][_0x1fade2(0x13c)]-0x1];}constructor(_0x4ea9c3){const _0x30e52d=_0x3916ac;super(_0x4ea9c3),this[_0x30e52d(0x18f)]=new _0x198a07(this[_0x30e52d(0x177)][_0x30e52d(0xf4)]),this[_0x30e52d(0x18f)][_0x30e52d(0x117)](),this[_0x30e52d(0x196)]=this[_0x30e52d(0x177)][_0x30e52d(0x195)][_0x30e52d(0x1ad)](_0x30e52d(0x1af)),this[_0x30e52d(0x1ab)](_0x30e52d(0xc6),!0x1),this[_0x30e52d(0x156)]=new _0x1aeb2f(),this[_0x30e52d(0x19b)]();}[_0x3916ac(0x16b)](){const _0x5be6f0=_0x3916ac;this[_0x5be6f0(0x13b)]();}async[_0x3916ac(0x183)](_0x4fe9e9,_0x8334b6,_0x23c76a){const _0x5383cb=_0x3916ac;if(this[_0x5383cb(0x177)][_0x5383cb(0x195)][_0x5383cb(0x130)](_0x5383cb(0xf9))){if(this[_0x5383cb(0x177)][_0x5383cb(0x195)][_0x5383cb(0x1ad)](_0x5383cb(0xf9))[_0x5383cb(0x15b)]()){const {modelFragment:_0xb96847,anchorData:_0x13015f}=this[_0x5383cb(0xfe)]();return this[_0x5383cb(0x10e)](_0x4fe9e9,_0xb96847,_0x13015f,_0x8334b6,_0x23c76a);}}const {modelFragment:_0x3d45b6,anchorData:_0x157b9a}=this[_0x5383cb(0x14f)]();return this[_0x5383cb(0x10e)](_0x4fe9e9,_0x3d45b6,_0x157b9a,_0x8334b6,_0x23c76a);}[_0x3916ac(0x12b)](){const _0x3d2b32=_0x3916ac;this[_0x3d2b32(0x18f)][_0x3d2b32(0x187)](),super[_0x3d2b32(0x12b)]();}[_0x3916ac(0x14f)](){const _0x22db06=_0x3916ac,_0xf47001=this[_0x22db06(0x177)][_0x22db06(0x194)][_0x22db06(0x116)][_0x22db06(0x12e)];if(_0xf47001[_0x22db06(0xdf)]){const _0x22874f=_0x3e106c(_0xf47001[_0x22db06(0x106)]())||this[_0x22db06(0x177)][_0x22db06(0x194)][_0x22db06(0x16e)][_0x22db06(0x125)](_0xf47001);this[_0x22db06(0x177)][_0x22db06(0x194)][_0x22db06(0x151)](_0x5289ec=>{const _0x5d4e44=_0x22db06;_0x5289ec[_0x5d4e44(0xcd)](_0x22874f,'in');});}const _0x3a7fee=_0xf47001[_0x22db06(0x131)](),_0xaff190=this[_0x22db06(0x123)](this[_0x22db06(0x177)][_0x22db06(0x194)][_0x22db06(0x180)](_0xf47001),_0x3a7fee[_0x22db06(0xf3)],_0x3a7fee[_0x22db06(0x14e)]),_0x50c9ef=_0xf47001[_0x22db06(0x131)]()[_0x22db06(0xf3)],_0x53118e=new Map();let _0x146b44=_0xaff190;for(let _0x1c023a=0x0;_0x1c023a<_0x50c9ef[_0x22db06(0x113)][_0x22db06(0x13c)];_0x1c023a++)_0x53118e[_0x22db06(0x1ab)](_0x146b44,_0x50c9ef[_0x22db06(0x113)][_0x1c023a]),_0x146b44=_0x146b44[_0x22db06(0x104)](0x0);return{'modelFragment':_0xaff190,'anchorData':_0x53118e};}[_0x3916ac(0xfe)](){const _0x284c0a=_0x3916ac,_0x2e2bca=this[_0x284c0a(0x177)][_0x284c0a(0x194)][_0x284c0a(0x116)][_0x284c0a(0x12e)],_0x5bb9fd=this[_0x284c0a(0x177)][_0x284c0a(0x195)][_0x284c0a(0x1ad)](_0x284c0a(0xf9))[_0x284c0a(0x10d)](),_0x1013bc=_0x2e2bca[_0x284c0a(0x131)]()[_0x284c0a(0xf3)][_0x284c0a(0x169)][_0x284c0a(0x169)],_0x5cd86c=this[_0x284c0a(0x123)](_0x5bb9fd,this[_0x284c0a(0x177)][_0x284c0a(0x194)][_0x284c0a(0xd8)](_0x1013bc),this[_0x284c0a(0x177)][_0x284c0a(0x194)][_0x284c0a(0xfc)](_0x1013bc)),_0x37c168=_0x2e2bca[_0x284c0a(0x131)]()[_0x284c0a(0xf3)],_0x5aabc7=new Map();let _0x115c29=_0x5cd86c;for(let _0x538f6a=0x0;_0x538f6a<_0x37c168[_0x284c0a(0x113)][_0x284c0a(0x13c)];_0x538f6a++)if(_0x5aabc7[_0x284c0a(0x1ab)](_0x115c29,_0x37c168[_0x284c0a(0x113)][_0x538f6a]),_0x538f6a<_0x37c168[_0x284c0a(0x113)][_0x284c0a(0x13c)]-0x1)_0x115c29=_0x115c29[_0x284c0a(0x104)](0x0);else{let _0x57294a=_0x115c29[_0x284c0a(0x16a)];for(;_0x57294a;)_0x5aabc7[_0x284c0a(0x1ab)](_0x57294a,_0x37c168[_0x284c0a(0x113)][_0x538f6a]),_0x57294a=_0x57294a[_0x284c0a(0x16a)];}return{'modelFragment':_0x5cd86c,'anchorData':_0x5aabc7};}[_0x3916ac(0x10e)](_0x502be8,_0x17946e,_0x4cd44a,_0x3ee114,_0x50cf95){const _0x390e2c=_0x3916ac,_0x1d4819=this[_0x390e2c(0x177)][_0x390e2c(0x195)][_0x390e2c(0x1ad)](_0x1897ed),_0x459b88=this[_0x390e2c(0x177)][_0x390e2c(0x195)][_0x390e2c(0x1ad)](_0x515f5e),_0x9089df=this[_0x390e2c(0x177)][_0x390e2c(0x194)][_0x390e2c(0x116)][_0x390e2c(0x12e)],_0x2bec96=_0x1d4819[_0x390e2c(0x172)](_0x17946e),_0x22320a=this[_0x390e2c(0x177)][_0x390e2c(0x168)][_0x390e2c(0x164)][_0x390e2c(0x133)](_0x2bec96),_0x57e1f2=this[_0x390e2c(0x177)][_0x390e2c(0x194)][_0x390e2c(0x116)][_0x390e2c(0x10b)],_0x48db1f=[..._0x9089df[_0x390e2c(0x153)]()];let _0x217ab9=this[_0x390e2c(0x177)][_0x390e2c(0x12c)][_0x390e2c(0x1ad)](_0x390e2c(0x146))||[..._0x1027ef];this[_0x390e2c(0x177)][_0x390e2c(0x195)][_0x390e2c(0x130)](_0x390e2c(0x182))||(_0x217ab9=_0x217ab9[_0x390e2c(0x150)](_0x128cdd=>_0x390e2c(0xf1)!=_0x128cdd));const _0x648759=new _0x400db8(this[_0x390e2c(0x177)][_0x390e2c(0xf4)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x390e2c(0x16d),'customView':this[_0x390e2c(0x1a3)]},'showUnchangedParts':!0x0,'availableActions':_0x217ab9},this[_0x390e2c(0x18f)]);return _0x459b88[_0x390e2c(0x111)]({'index':0x3e8*Math[_0x390e2c(0x176)]()%0x3e8,'title':_0x3ee114,'icon':_0x50cf95||_0x527de3,'mainView':_0x648759,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x390e2c(0x177)][_0x390e2c(0x195)][_0x390e2c(0x130)](_0x390e2c(0x182)),'ranges':_0x48db1f}),this[_0x390e2c(0xff)](_0x648759,_0x459b88),this[_0x390e2c(0x141)](_0x459b88,_0x390e2c(0xde),()=>{const _0x125cc3=_0x390e2c;this[_0x125cc3(0x158)](_0x17946e,_0x4cd44a,!0x1);}),this[_0x390e2c(0x141)](_0x459b88,_0x390e2c(0xf1),()=>{const _0x5e98b5=_0x390e2c;this[_0x5e98b5(0x158)](_0x17946e,_0x4cd44a,!0x0);}),this[_0x390e2c(0x141)](_0x459b88,_0x390e2c(0x190),()=>{const _0x3cc78c=_0x390e2c;this[_0x3cc78c(0x13b)](),this[_0x3cc78c(0x16f)]();}),this[_0x390e2c(0x141)](_0x459b88,_0x390e2c(0x122),()=>{const _0x2c9da7=_0x390e2c;if(this[_0x2c9da7(0x10c)]&&this[_0x2c9da7(0x10c)][_0x2c9da7(0x16c)][_0x2c9da7(0x13c)]>0x0){const _0x2ddf22=this[_0x2c9da7(0x10c)][_0x2c9da7(0x16c)][this[_0x2c9da7(0x10c)][_0x2c9da7(0x16c)][_0x2c9da7(0x13c)]-0x1],_0xd69423=_0x2ddf22[_0x2c9da7(0x11e)][0x0];_0xd69423&&_0x2c9da7(0x1ae)===_0xd69423[_0x2c9da7(0xe1)]&&_0x2ddf22[_0x2c9da7(0x144)](0x0,_0x2c9da7(0xec));}this[_0x2c9da7(0x13b)](),this[_0x2c9da7(0x161)](),this[_0x2c9da7(0xe2)](_0x459b88);}),this[_0x390e2c(0x134)](_0x22320a,_0x57e1f2,_0x648759,_0x459b88,_0x502be8);}[_0x3916ac(0x123)](_0x111476,_0x51f325,_0x499afd){const _0x2b2bf8=_0x3916ac,_0xb96ced=this[_0x2b2bf8(0x177)][_0x2b2bf8(0x194)][_0x2b2bf8(0xed)](_0x51f325,_0x499afd)[_0x2b2bf8(0x18b)](),_0x21f340=_0xb96ced['is'](_0x2b2bf8(0xfa))?[]:_0xb96ced[_0x2b2bf8(0x163)]({'includeSelf':!0x0})[_0x2b2bf8(0x19e)](0x1);if(_0x21f340[_0x2b2bf8(0x13c)]){const _0x4c3e47=_0x21f340[_0x2b2bf8(0x1a7)](_0x22113c=>_0x22113c[_0x2b2bf8(0x17f)](!0x1));for(let _0x1892a3=0x1;_0x1892a3<_0x4c3e47[_0x2b2bf8(0x13c)];_0x1892a3++)_0x4c3e47[_0x1892a3-0x1][_0x2b2bf8(0xe0)](_0x4c3e47[_0x1892a3]);return _0x4c3e47[_0x4c3e47[_0x2b2bf8(0x13c)]-0x1][_0x2b2bf8(0xe0)](_0x111476),new _0xedfd(_0x4c3e47[0x0]);}return _0x111476;}async[_0x3916ac(0x134)](_0x1ca963,_0x455c18,_0x5e127d,_0x4db4c8,_0x136338){const _0x46d588=_0x3916ac,_0x5370d2=this[_0x46d588(0x177)];this[_0x46d588(0x142)]={'action':_0x136338,'content':_0x1ca963,'version':_0x455c18,'mainView':_0x5e127d,'aiBalloon':_0x4db4c8};const _0x3f213c=new _0x5d3719({'connector':this[_0x46d588(0x196)],'editor':_0x5370d2,'content':_0x1ca963,'version':_0x455c18,..._0x136338});this[_0x46d588(0x18d)][_0x46d588(0x11c)](_0x3f213c),_0x5e127d[_0x46d588(0x178)]();const _0x2ea5ad=(_0x44ba7d,_0x4bf651,_0x13e466=!0x1,_0x46596e=_0x46d588(0xe3))=>this[_0x46d588(0x156)][_0x46d588(0x124)](async _0x114f06=>{const _0xd339cb=_0x46d588;try{const _0xc2eeac=_0x13e402({'editor':_0x5370d2,'changeGroups':_0x44ba7d[_0xd339cb(0x11e)],'documentContextContent':_0x44ba7d[_0xd339cb(0x140)],'showDiff':_0x13e466,'trimUnchanged':!0x1});await _0x4bf651[_0xd339cb(0x138)]({'parts':_0xc2eeac,'renderingStrategy':_0x46596e,'abortSignal':_0x114f06});}catch(_0x1ccad1){if(this[_0xd339cb(0x112)](_0x1ccad1))return;throw _0x1ccad1;}});this[_0x46d588(0x10c)]['on'](_0x46d588(0xcc),(_0xd5e623,_0xb18e87)=>{const _0xa0d722=_0x46d588;_0x5e127d[_0xa0d722(0xe6)](),_0x4db4c8[_0xa0d722(0x19a)](),_0x2ea5ad(_0xb18e87,_0x5e127d)[_0xa0d722(0x162)](_0x36b441=>{const _0x18e7de=_0xa0d722;this[_0x18e7de(0x112)](_0x36b441)||(console[_0x18e7de(0x147)](_0x18e7de(0xea),_0x36b441),this[_0x18e7de(0x11f)](_0x3f213c,_0x5e127d));});}),this[_0x46d588(0x10c)]['on'](_0x46d588(0x199),(_0x4e7bba,_0x1e6fce)=>{const _0x1c6a44=_0x46d588;_0x2ea5ad(_0x1e6fce,_0x5e127d)[_0x1c6a44(0x162)](_0x3e5841=>{const _0x5567c5=_0x1c6a44;this[_0x5567c5(0x112)](_0x3e5841)||(console[_0x5567c5(0x147)](_0x5567c5(0xf0),_0x3e5841),this[_0x5567c5(0x11f)](_0x3f213c,_0x5e127d));});}),this[_0x46d588(0x10c)]['on'](_0x46d588(0x19f),async()=>{const _0x42b928=_0x46d588;try{await this[_0x42b928(0x103)](_0x5e127d,_0x4db4c8),this[_0x42b928(0xc9)](),await this[_0x42b928(0x156)][_0x42b928(0x157)];}catch(_0x2cb42d){this[_0x42b928(0x112)](_0x2cb42d)||(console[_0x42b928(0x147)](_0x42b928(0x148),_0x2cb42d),this[_0x42b928(0x11f)](_0x3f213c,_0x5e127d));}finally{_0x4db4c8[_0x42b928(0x173)]();}}),this[_0x46d588(0x141)](_0x5e127d,_0x46d588(0xe8),async(_0xb3740a,{showDiff:_0xa8a254})=>{const _0x4c9bb8=_0x46d588;try{this[_0x4c9bb8(0x143)]=_0xa8a254;const _0x42a804=this[_0x4c9bb8(0x10c)][_0x4c9bb8(0x16c)][this[_0x4c9bb8(0x10c)][_0x4c9bb8(0x16c)][_0x4c9bb8(0x13c)]-0x1];_0x42a804&&await _0x2ea5ad(_0x42a804,_0x5e127d,_0xa8a254,_0x4c9bb8(0x1a0));}catch(_0x39d135){this[_0x4c9bb8(0x112)](_0x39d135)||(console[_0x4c9bb8(0x147)](_0x4c9bb8(0xdb),_0x39d135),this[_0x4c9bb8(0x11f)](_0x3f213c,_0x5e127d));}}),this[_0x46d588(0x10c)]['on'](_0x46d588(0x129),(_0x53ce5f,{reply:_0x525fba})=>{const _0x323c88=_0x46d588,_0x3f86ea={'positiveCount':_0x525fba[_0x323c88(0x11e)][_0x323c88(0x150)](_0xa3bab7=>_0x323c88(0xd5)===_0xa3bab7[_0x323c88(0xe1)])[_0x323c88(0x13c)],'totalCount':_0x525fba[_0x323c88(0x11e)][_0x323c88(0x13c)]},_0x20c1f0=this[_0x323c88(0x10c)][_0x323c88(0x17b)],_0x3c3fc6=this[_0x323c88(0x10c)][_0x323c88(0x15f)];_0x3c3fc6?this[_0x323c88(0x196)][_0x323c88(0x1a9)](_0x3c3fc6,_0x20c1f0,_0x3f86ea):this[_0x323c88(0x196)][_0x323c88(0x14b)](_0x20c1f0,_0x3f86ea);}),this[_0x46d588(0xff)](_0x5e127d,_0x4db4c8);try{const _0x3e0343=await this[_0x46d588(0x10c)][_0x46d588(0xf3)]();return this[_0x46d588(0xc9)](),_0x3e0343;}catch(_0x4ed7ed){if(this[_0x46d588(0x112)](_0x4ed7ed))return;_0x5e127d[_0x46d588(0xe6)](),this[_0x46d588(0x11f)](_0x3f213c,_0x5e127d);}}[_0x3916ac(0x158)](_0x449402,_0x3aba6f,_0x3bf026){const _0x58df22=_0x3916ac,_0x5780ba=this[_0x58df22(0x177)];if(_0x3bf026&&!_0x5780ba[_0x58df22(0x195)][_0x58df22(0x130)](_0x58df22(0x182)))throw new _0x58462d(_0x58df22(0x10a),null);const _0x5911c2=this[_0x58df22(0x177)][_0x58df22(0x195)][_0x58df22(0x1ad)](_0x4c6323),_0x3ca4c4=this[_0x58df22(0x10c)],_0x2dde47=this[_0x58df22(0x10c)][_0x58df22(0x16c)][this[_0x58df22(0x10c)][_0x58df22(0x16c)][_0x58df22(0x13c)]-0x1],_0x143a8c=_0x2dde47[_0x58df22(0x11e)];_0x2dde47[_0x58df22(0x144)](0x0,_0x58df22(0xd5));let _0x501f74=_0x1d9460({'editor':_0x5780ba,'reply':_0x2dde47,'interaction':_0x3ca4c4,'groups':_0x143a8c,'transform':!0x1,'documentCompare':_0x5911c2,'documentCompareOptions':{'anchor':_0x5780ba[_0x58df22(0x194)][_0x58df22(0x100)](_0x449402,0x0),'markDeletions':_0x3bf026}});_0x501f74=this[_0x58df22(0xdc)](_0x501f74,_0x3aba6f);for(const _0x2bfb7e of _0x501f74)this[_0x58df22(0xe5)](_0x3aba6f,_0x2bfb7e,_0x5780ba[_0x58df22(0x194)][_0x58df22(0x116)][_0x58df22(0xfb)]());const _0x21403e=_0x3ca4c4[_0x58df22(0x109)]()[_0x58df22(0x10b)],_0x3cd813=_0x5780ba[_0x58df22(0x194)][_0x58df22(0x116)][_0x58df22(0x136)][_0x58df22(0xd7)](_0x21403e),_0x4ec952={'document':_0x5780ba[_0x58df22(0x194)][_0x58df22(0x116)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x211cb3=_0x1c26e6(_0x501f74,_0x3cd813,_0x4ec952)[_0x58df22(0x18a)];_0x5780ba[_0x58df22(0x194)][_0x58df22(0x151)](_0x44a8e7=>{const _0x795d84=_0x58df22;if(_0x44a8e7[_0x795d84(0xcd)](_0x5780ba[_0x795d84(0x194)][_0x795d84(0x116)][_0x795d84(0x12e)][_0x795d84(0x165)]),_0x3bf026)_0x5780ba[_0x795d84(0x195)][_0x795d84(0x1ad)](_0x795d84(0x181))[_0x795d84(0x1a2)](_0x211cb3);else{for(const _0x16688e of _0x211cb3)_0x16688e[_0x795d84(0x132)]=_0x5780ba[_0x795d84(0x194)][_0x795d84(0x116)][_0x795d84(0x10b)],_0x3a6fe2(_0x5780ba,_0x16688e),_0x44a8e7[_0x795d84(0x14d)][_0x795d84(0xcb)](_0x16688e),_0x5780ba[_0x795d84(0x194)][_0x795d84(0x108)](_0x16688e);}}),this[_0x58df22(0x177)][_0x58df22(0x195)][_0x58df22(0x1ad)](_0x58df22(0x166))[_0x58df22(0x1a5)]();}[_0x3916ac(0xdc)](_0x40df8f,_0x450492){const _0x113efe=_0x3916ac;return _0x40df8f[_0x113efe(0x150)](_0x3f974c=>{const _0x231768=_0x113efe;if(_0x231768(0xd2)==_0x3f974c[_0x231768(0x105)]){const _0x31bba3=_0x3f974c[_0x231768(0xc8)][_0x231768(0xd0)];return!_0x450492[_0x231768(0x130)](_0x31bba3);}if(_0x3f974c[_0x231768(0x105)][_0x231768(0x174)](_0x231768(0xf8))>-0x1){const _0x1040fe=_0x3f974c[_0x231768(0x119)][_0x231768(0xf3)][_0x231768(0xd0)];return!_0x450492[_0x231768(0x130)](_0x1040fe);}return!0x0;});}[_0x3916ac(0xe5)](_0x14c163,_0xd83dee,_0x21bcb2){const _0x161042=_0x3916ac,_0x318068=_0xd83dee[_0x161042(0x159)]();for(const _0x17bc68 in _0xd83dee){const _0x4cb5af=_0xd83dee[_0x17bc68];_0x4cb5af instanceof _0x13e0de?_0xd83dee[_0x17bc68]=new _0x13e0de(_0x348676(_0x4cb5af[_0x161042(0xf3)]),_0x348676(_0x4cb5af[_0x161042(0x14e)])):_0x4cb5af instanceof _0x5e5f1e&&(_0xd83dee[_0x17bc68]=_0x348676(_0x4cb5af));}if([_0x161042(0x118),_0x161042(0x1a6),_0x161042(0x17d),_0x161042(0xd6),_0x161042(0xda),_0x161042(0xf6)][_0x161042(0xee)](_0x318068[_0x161042(0x105)])){if(_0x318068[_0x161042(0x15d)]=!0x1,_0x318068[_0x161042(0x132)]=null,_0x161042(0x17d)==_0x318068[_0x161042(0x105)]){const _0x465135=_0x318068[_0x161042(0x12f)],_0x1916bd=_0x318068[_0x161042(0xeb)];new _0x4e2211(_0x465135,_0x1916bd)[_0x161042(0x13d)]();}else _0x318068[_0x161042(0x13d)]();}function _0x348676(_0x5c88bf){const _0x40092d=_0x161042;if(_0x40092d(0x1a8)==_0x5c88bf[_0x40092d(0x13f)][_0x40092d(0x152)])return _0x5c88bf;const _0x18c683=[];let _0x5238d4=_0x5c88bf[_0x40092d(0x13f)];for(let _0x2a5a3e=0x0;_0x2a5a3e<_0x5c88bf[_0x40092d(0x113)][_0x40092d(0x13c)];_0x2a5a3e++){const _0x121f19=_0x14c163[_0x40092d(0x1ad)](_0x5238d4)||0x0;_0x18c683[_0x2a5a3e]=_0x5c88bf[_0x40092d(0x113)][_0x2a5a3e]+_0x121f19,_0x5238d4=_0x5238d4[_0x40092d(0x19c)](_0x5c88bf[_0x40092d(0x113)][_0x2a5a3e]);}return new _0x5e5f1e(_0x21bcb2,_0x18c683,_0x5c88bf[_0x40092d(0x145)]);}}[_0x3916ac(0x155)](){const _0x53eae4=_0x3916ac;if(!this[_0x53eae4(0x142)])return;this[_0x53eae4(0x18d)][_0x53eae4(0x13c)]>0x0&&this[_0x53eae4(0x13b)](),this[_0x53eae4(0x14a)]=0x0,this[_0x53eae4(0x143)]=!0x1;const {action:_0x12a523,content:_0x344628,version:_0x50a0f2,mainView:_0x15baca,aiBalloon:_0x2e1138}=this[_0x53eae4(0x142)];_0x15baca[_0x53eae4(0xf2)]=!0x1,_0x15baca[_0x53eae4(0x178)](),this[_0x53eae4(0xd4)](_0x15baca,_0x2e1138);const _0x48a2e1=_0x15baca;_0x48a2e1[_0x53eae4(0x149)]&&_0x48a2e1[_0x53eae4(0x149)][_0x53eae4(0x15a)]&&_0x48a2e1[_0x53eae4(0x149)][_0x53eae4(0x15a)][_0x53eae4(0x1ab)]({'isOn':!0x1,'icon':_0x4d9b90}),this[_0x53eae4(0x1a1)](_0x15baca),_0x15baca[_0x53eae4(0x127)](),this[_0x53eae4(0xc9)](),this[_0x53eae4(0xe2)](_0x15baca),this[_0x53eae4(0x134)](_0x344628,_0x50a0f2,_0x15baca,_0x2e1138,_0x12a523)[_0x53eae4(0x162)](_0x2cc3a7=>{const _0x36444a=_0x53eae4;this[_0x36444a(0x112)](_0x2cc3a7)||console[_0x36444a(0x147)](_0x36444a(0x12d),_0x2cc3a7);});}[_0x3916ac(0x1a1)](_0x161172){const _0x5dbf22=_0x3916ac,_0x271e51=_0x161172[_0x5dbf22(0xc7)][_0x5dbf22(0x189)];for(;_0x271e51[_0x5dbf22(0x13c)]>0x0;)_0x271e51[_0x5dbf22(0x17d)](_0x271e51[_0x5dbf22(0x107)]);_0x161172[_0x5dbf22(0xc7)][_0x5dbf22(0x18c)]=!0x1;}[_0x3916ac(0x112)](_0x19039d){const _0x47bd45=_0x3916ac;return!!_0x19039d[_0x47bd45(0xe9)]&&_0x19039d[_0x47bd45(0xe9)][_0x47bd45(0x17c)](_0x47bd45(0x15c));}[_0x3916ac(0x161)](){const _0x4baae9=_0x3916ac;this[_0x4baae9(0x18d)]=[],this[_0x4baae9(0x142)]=void 0x0,this[_0x4baae9(0x14a)]=0x0,this[_0x4baae9(0xc9)]();}[_0x3916ac(0x13b)](){const _0x6fd22e=_0x3916ac;this[_0x6fd22e(0x10c)]&&this[_0x6fd22e(0x10c)][_0x6fd22e(0xd3)](),this[_0x6fd22e(0x156)][_0x6fd22e(0x126)](),this[_0x6fd22e(0xc6)]=!0x1,this[_0x6fd22e(0x142)]&&this[_0x6fd22e(0x142)][_0x6fd22e(0xe7)][_0x6fd22e(0x173)]();}[_0x3916ac(0x19b)](){const _0x42bffe=_0x3916ac,_0x551266=new _0x195466(this[_0x42bffe(0x177)][_0x42bffe(0xf4)]),_0x40d462=new _0x195466(this[_0x42bffe(0x177)][_0x42bffe(0xf4)]),_0x50db8e=new _0xc5d3c9(this[_0x42bffe(0x177)][_0x42bffe(0xf4)]),_0x271163=new _0x195466(this[_0x42bffe(0x177)][_0x42bffe(0xf4)]);_0x551266[_0x42bffe(0x1ab)]({'icon':_0x33433b,'label':_0x20cafc(this[_0x42bffe(0x177)][_0x42bffe(0xf4)],_0x42bffe(0xf7)),'tooltip':!0x0,'class':_0x42bffe(0x17a)}),_0x40d462[_0x42bffe(0x1ab)]({'icon':_0x44d609,'tooltip':_0x20cafc(this[_0x42bffe(0x177)][_0x42bffe(0xf4)],_0x42bffe(0x186)),'class':_0x42bffe(0x154)}),_0x50db8e[_0x42bffe(0x128)]({'tag':_0x42bffe(0x198),'attributes':{'class':[_0x42bffe(0xf5)]},'children':[_0x42bffe(0x114)]}),_0x271163[_0x42bffe(0x1ab)]({'icon':_0x241fe2,'tooltip':_0x20cafc(this[_0x42bffe(0x177)][_0x42bffe(0xf4)],_0x42bffe(0xef)),'class':_0x42bffe(0xd9)}),_0x551266[_0x42bffe(0xce)](_0x42bffe(0x170))['to'](this,_0x42bffe(0xc6),_0x2f7f68=>!_0x2f7f68),_0x551266['on'](_0x42bffe(0x115),()=>{const _0x445aea=_0x42bffe;this[_0x445aea(0x155)]();}),_0x40d462[_0x42bffe(0xce)](_0x42bffe(0x170))['to'](this,_0x42bffe(0xc6),_0x2faa48=>!_0x2faa48),_0x40d462['on'](_0x42bffe(0x115),()=>{const _0x376c01=_0x42bffe;this[_0x376c01(0x185)]();}),_0x271163[_0x42bffe(0xce)](_0x42bffe(0x170))['to'](this,_0x42bffe(0xc6),_0xe3dbd5=>!_0xe3dbd5),_0x271163['on'](_0x42bffe(0x115),()=>{const _0x10ef42=_0x42bffe;this[_0x10ef42(0x191)]();}),this[_0x42bffe(0x101)]=_0x40d462,this[_0x42bffe(0x197)]=_0x50db8e,this[_0x42bffe(0x110)]=_0x271163,this[_0x42bffe(0x1a3)][_0x42bffe(0x167)](_0x551266);}[_0x3916ac(0x185)](){const _0x500693=_0x3916ac,_0x15cc2a=this[_0x500693(0x18d)][_0x500693(0x13c)];this[_0x500693(0x14a)]<_0x15cc2a-0x1&&this[_0x500693(0xca)](this[_0x500693(0x14a)]+0x1);}[_0x3916ac(0x191)](){const _0x319435=_0x3916ac;this[_0x319435(0x14a)]>0x0&&this[_0x319435(0xca)](this[_0x319435(0x14a)]-0x1);}async[_0x3916ac(0xca)](_0x558a25){const _0x2c5b82=_0x3916ac;if(!this[_0x2c5b82(0x142)])return;this[_0x2c5b82(0x14a)]=_0x558a25;const {mainView:_0x31b599}=this[_0x2c5b82(0x142)],_0x31866c=this[_0x2c5b82(0x18d)][this[_0x2c5b82(0x18d)][_0x2c5b82(0x13c)]-0x1-this[_0x2c5b82(0x14a)]];if(!_0x31866c)return;if(_0x31866c[_0x2c5b82(0x13e)])return this[_0x2c5b82(0x11f)](_0x31866c,_0x31b599),void this[_0x2c5b82(0xc9)]();if(!_0x31866c[_0x2c5b82(0x16c)][_0x2c5b82(0x13c)])return;_0x31b599[_0x2c5b82(0x178)](),this[_0x2c5b82(0x142)]&&this[_0x2c5b82(0xd4)](_0x31b599,this[_0x2c5b82(0x142)][_0x2c5b82(0xe7)]);const _0x567b2a=_0x31866c[_0x2c5b82(0x16c)][_0x31866c[_0x2c5b82(0x16c)][_0x2c5b82(0x13c)]-0x1];if(_0x567b2a){const _0xba2efc=this[_0x2c5b82(0x177)];this[_0x2c5b82(0x1a1)](_0x31b599);try{const _0x5a27f3=_0x13e402({'editor':_0xba2efc,'changeGroups':_0x567b2a[_0x2c5b82(0x11e)],'documentContextContent':_0x567b2a[_0x2c5b82(0x140)],'showDiff':this[_0x2c5b82(0x143)],'trimUnchanged':!0x1});this[_0x2c5b82(0x1a1)](_0x31b599),await new Promise(_0x4e3138=>setTimeout(_0x4e3138,0x32)),await _0x31b599[_0x2c5b82(0x138)]({'parts':_0x5a27f3,'renderingStrategy':_0x2c5b82(0x1a0),'abortSignal':new AbortController()[_0x2c5b82(0x11a)]});}catch(_0x7dde1b){this[_0x2c5b82(0x112)](_0x7dde1b)||console[_0x2c5b82(0x147)](_0x2c5b82(0x139),_0x7dde1b);}}this[_0x2c5b82(0xc9)]();}[_0x3916ac(0xc9)](){const _0x554364=_0x3916ac;if(!this[_0x554364(0x101)]||!this[_0x554364(0x197)]||!this[_0x554364(0x110)])return;const _0x57ee39=this[_0x554364(0x18d)][_0x554364(0x13c)],_0x23e1aa=_0x57ee39>0x1,_0x402bc0=this[_0x554364(0x142)]?.[_0x554364(0xe4)];if(_0x23e1aa){this[_0x554364(0x137)]||this[_0x554364(0x160)]||this[_0x554364(0x12a)]||(this[_0x554364(0x1a3)][_0x554364(0x167)](this[_0x554364(0x101)]),_0x402bc0?.[_0x554364(0x15e)](this[_0x554364(0x101)]),this[_0x554364(0x137)]=!0x0,this[_0x554364(0x1a3)][_0x554364(0x167)](this[_0x554364(0x197)]),_0x402bc0?.[_0x554364(0x15e)](this[_0x554364(0x197)]),this[_0x554364(0x160)]=!0x0,this[_0x554364(0x1a3)][_0x554364(0x167)](this[_0x554364(0x110)]),_0x402bc0?.[_0x554364(0x15e)](this[_0x554364(0x110)]),this[_0x554364(0x12a)]=!0x0);const _0xa70189=_0x57ee39-this[_0x554364(0x14a)];this[_0x554364(0x197)][_0x554364(0x1ac)]&&(this[_0x554364(0x197)][_0x554364(0x1ac)][_0x554364(0x19d)]=_0xa70189+'/'+_0x57ee39),this[_0x554364(0x101)][_0x554364(0x170)]=this[_0x554364(0x14a)]<_0x57ee39-0x1,this[_0x554364(0x110)][_0x554364(0x170)]=this[_0x554364(0x14a)]>0x0;}else(this[_0x554364(0x137)]||this[_0x554364(0x160)]||this[_0x554364(0x12a)])&&(this[_0x554364(0x1a3)][_0x554364(0x17d)](this[_0x554364(0x101)]),_0x402bc0?.[_0x554364(0xd1)](this[_0x554364(0x101)]),this[_0x554364(0x137)]=!0x1,this[_0x554364(0x1a3)][_0x554364(0x17d)](this[_0x554364(0x197)]),_0x402bc0?.[_0x554364(0xd1)](this[_0x554364(0x197)]),this[_0x554364(0x160)]=!0x1,this[_0x554364(0x1a3)][_0x554364(0x17d)](this[_0x554364(0x110)]),_0x402bc0?.[_0x554364(0xd1)](this[_0x554364(0x110)]),this[_0x554364(0x12a)]=!0x1);}[_0x3916ac(0xff)](_0x2b3e5d,_0x36fe2c){const _0x1e0f31=_0x3916ac;_0x2b3e5d[_0x1e0f31(0x179)](),_0x36fe2c[_0x1e0f31(0x120)][_0x1e0f31(0x179)](),this[_0x1e0f31(0xc6)]=!0x0;}async[_0x3916ac(0x11f)](_0x383dac,_0xeff87e){const _0x5a396e=_0x3916ac,_0x390ef5=_0x20cafc(this[_0x5a396e(0x177)][_0x5a396e(0xf4)],_0x5a396e(0x11b));_0xeff87e[_0x5a396e(0x171)](_0x390ef5),_0x383dac[_0x5a396e(0x13e)]=!0x0,await this[_0x5a396e(0x156)][_0x5a396e(0x157)],_0xeff87e[_0x5a396e(0x193)](),this[_0x5a396e(0x142)]?.[_0x5a396e(0xe7)][_0x5a396e(0x120)][_0x5a396e(0x17e)]&&(this[_0x5a396e(0x142)][_0x5a396e(0xe7)][_0x5a396e(0x120)][_0x5a396e(0x17e)][_0x5a396e(0x14c)]=!0x0);}[_0x3916ac(0xd4)](_0x3df4d3,_0x3d96a2){const _0x470553=_0x3916ac;_0x3df4d3[_0x470553(0x1a4)](),_0x3d96a2[_0x470553(0x120)][_0x470553(0x17e)]&&(_0x3d96a2[_0x470553(0x120)][_0x470553(0x17e)][_0x470553(0x14c)]=!0x1);}async[_0x3916ac(0x103)](_0x570610,_0x3da5f0){const _0x3b2b68=_0x3916ac;await this[_0x3b2b68(0x156)][_0x3b2b68(0x157)],this[_0x3b2b68(0xc6)]=!0x1,_0x570610[_0x3b2b68(0x135)](),_0x3da5f0[_0x3b2b68(0x120)][_0x3b2b68(0x135)]();}[_0x3916ac(0x16f)](){const _0x2f482c=_0x3916ac;this[_0x2f482c(0x1a3)][_0x2f482c(0x192)](_0x7345f9=>{const _0x3bfc38=_0x2f482c;_0x3bfc38(0x170)in _0x7345f9&&(_0x7345f9[_0x3bfc38(0x170)]=!0x1);});}}
23
+ const _0x5b3354=_0x383a;(function(_0x56a2a7,_0x2a732d){const _0x538fcd=_0x383a,_0xced2f5=_0x56a2a7();while(!![]){try{const _0x2990bf=-parseInt(_0x538fcd(0x28f))/0x1+parseInt(_0x538fcd(0x29e))/0x2+parseInt(_0x538fcd(0x243))/0x3+-parseInt(_0x538fcd(0x1f0))/0x4*(-parseInt(_0x538fcd(0x26b))/0x5)+parseInt(_0x538fcd(0x245))/0x6+-parseInt(_0x538fcd(0x208))/0x7+parseInt(_0x538fcd(0x1c8))/0x8;if(_0x2990bf===_0x2a732d)break;else _0xced2f5['push'](_0xced2f5['shift']());}catch(_0xf357b7){_0xced2f5['push'](_0xced2f5['shift']());}}}(_0x2a49,0x192e0));import{Plugin as _0x5ac00d}from'ckeditor5/src/core.js';import{AIConnector as _0x1932af}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x204954}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x58d420,ButtonView as _0x3a1089,ViewCollection as _0x188297,View as _0x330230,BodyCollection as _0x37a76f}from'ckeditor5/src/ui.js';import{AIEditing as _0x95b872}from'../aicore/aiediting.js';function _0x2a49(){const _0x498fe8=['_navigationNextButton','Error\x20refreshing\x20interaction:','pending','addNavigationItem','root','applySuggestion','_promiseQueue','Attribute','areChangesVisible','removeNavigationItem','document','_navigateToNext','Error\x20updating\x20content\x20in\x20replyCreated:','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','textContent','attachToDom','filter','AI_ACTIONS_NEXT_INTERACTION','_disableCustomViews','push','TableSelection','AIConnector','position','updateContent','_filterOperationsOutsideRange','_stopInteraction','271626MvcVIj','_isNavigationPreviousButtonInView','380466cUySYO','_navigationPreviousButton','setSelection','element','isCollapsed','baseVersion','isBusy','isPremiumPlugin','getSelectedTableCells','documentFragment','insert','1/1','miniToolbarView','_anchorOperation','open','slice','getDocumentContext','setChangeGroupState','applyOperation','path','first','_bodyCollection','destroy','_execute','documentContextContent','_customViews','_clone','end','showLoader','remove','change','createPositionBefore','type','isDocumentOperation','parent','startAutoScroll','sourcePosition','range','5QLzmOj','rename','_refreshInteraction','interactionFinished','stopInteraction','replies','getLimitElement','_navigateToPrevious','includes','addOperation','_wrapWithCommonAncestors','queueEmptyPromise','showError','static','upsertAIActionRating','move','locale','actionName','getSelectionAsFragment','startsWith','insertSuggestion','ai.availableReplyActions','_clearSuggestionContent','createRange','_currentInteractionIndex','get','ai-no-track-changes','getRanges','listenTo','forEach','model','streaming','aiBalloon','balloonView','_isNavigationCounterInView','actionCallId','164615plQWbi','AI_ACTIONS_TRY_AGAIN','has','_isAbortError','focus','setLoading','span','TrackChangesEditing','signal','_applyOperationsAsSuggestions','getSelectedContent','getFirstRange','_interactionParams','set','abort','172626iOJcZt','close','modelToViewWithIds','nodeAfter','_clearErrorState','_children','merge','_interactions','_clearLoadingState','howMany','state','config','stop','accepted','ck-ai-navigation-button\x20ck-ai-next-button','rejected','isOfficialPlugin','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_setLoadingState','getAncestors','322464ejDWPf','schema','isEnabled','_isNavigationNextButtonInView','rootName','replyContentUpdated','upsertCustomAIActionRating','replyCreated','createPositionAfter','ck-ai-custom-action-button','version','icon','mainView','random','_setupCustomViews','_executeAction','_interaction','clone','data','map','batch','_createInteraction','_clearInteractionHistory','length','toolbar','_updateNavigationUI','catch','start','_applyChanges','add','toData','AIActions','requires','selectionRemoved','showChangesButton','editor','stickiness','clearLoading','reinsert','selection','172148jfNyBR','_navigationCounter','hasPendingParts','detachFromDom','getChild','_displayInteractionAtIndex','getRoot','_setErrorState','setTemplate','operationsA','indexOf','isLoading','hideError','message','hasError','nextSibling','AI_ACTIONS_PREVIOUS_INTERACTION','bind','execute','dialogClosed','plugins','replyChangeGroupStateUpdated','clearErrorState','split','391020ucwFlH','$graveyard','_getExecuteDataInTable','hideLoader','enqueue','TrackChanges','_getExecuteDataRegular','ai-request-aborted','getSelectedBlocks','_balloonShowDiff','stopAutoScroll','ck-ai-navigation-button\x20ck-ai-previous-button','bodyView','processor','getOperations','history','changeGroups','createPositionAt','_aiConnector','ck-ai-interaction-counter','getCommonAncestor','AIBalloon','_appendChild','toggleSuggestionDisplayMode','Error\x20updating\x20content\x20during\x20navigation:','executeAction','pluginName','error','setErrorState','AI_ACTIONS_GENERIC_ERROR','getChildAtOffset','stopListening','Error\x20updating\x20content\x20in\x20replyContentUpdated:'];_0x2a49=function(){return _0x498fe8;};return _0x2a49();}import{AIActionsInteraction as _0x25f476}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x94a4f3,first as _0x411376}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x4bf878,IconRefresh as _0x3f999b,IconNextArrow as _0x5acb7,IconPreviousArrow as _0x49d882,IconShowChangesOff as _0x33e389}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x406c9f}from'../aiballoon/aiballoon.js';function _0x383a(_0x1da306,_0x512988){const _0x2a49d5=_0x2a49();return _0x383a=function(_0x383acb,_0x2ec8f3){_0x383acb=_0x383acb-0x1be;let _0xa7f8c5=_0x2a49d5[_0x383acb];return _0xa7f8c5;},_0x383a(_0x1da306,_0x512988);}import{PromiseQueue as _0x38d1d2}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x46a3b0}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x401ad0}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3007da}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x100c91,getOperationsFromReply as _0x4859a1}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x8eeec8,ModelRange as _0x3541b2,ModelPosition as _0x3610e6,_DetachOperation as _0x32b203,transformOperationSets as _0x582b69}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x211c12}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x5ac00d{static get[_0x5b3354(0x1e8)](){return[_0x1932af,_0x58d420,_0x95b872,_0x406c9f,_0x3007da];}static get[_0x5b3354(0x222)](){const _0x50b9ce=_0x5b3354;return _0x50b9ce(0x1e7);}static get[_0x5b3354(0x1c4)](){return!0x0;}static get[_0x5b3354(0x24c)](){return!0x0;}[_0x5b3354(0x21a)];[_0x5b3354(0x2a5)]=[];[_0x5b3354(0x283)]=0x0;[_0x5b3354(0x29b)];[_0x5b3354(0x211)]=!0x1;[_0x5b3354(0x25e)]=new _0x188297();[_0x5b3354(0x246)];[_0x5b3354(0x1f1)];[_0x5b3354(0x28d)]=!0x1;[_0x5b3354(0x229)];[_0x5b3354(0x244)]=!0x1;[_0x5b3354(0x1cb)]=!0x1;[_0x5b3354(0x22f)];[_0x5b3354(0x25a)];get[_0x5b3354(0x1d8)](){const _0x3356fe=_0x5b3354;return this[_0x3356fe(0x2a5)][this[_0x3356fe(0x2a5)][_0x3356fe(0x1df)]-0x1];}constructor(_0x2dfa8c){const _0xff05a3=_0x5b3354;super(_0x2dfa8c),this[_0xff05a3(0x25a)]=new _0x37a76f(this[_0xff05a3(0x1eb)][_0xff05a3(0x27b)]),this[_0xff05a3(0x25a)][_0xff05a3(0x238)](),this[_0xff05a3(0x21a)]=this[_0xff05a3(0x1eb)][_0xff05a3(0x204)][_0xff05a3(0x284)](_0xff05a3(0x23e)),this[_0xff05a3(0x29c)](_0xff05a3(0x24b),!0x1),this[_0xff05a3(0x22f)]=new _0x38d1d2(),this[_0xff05a3(0x1d6)]();}[_0x5b3354(0x26f)](){const _0x4a2907=_0x5b3354;this[_0x4a2907(0x242)]();}async[_0x5b3354(0x221)](_0x5191e8,_0x211fbc,_0x4f909f){const _0x274bbf=_0x5b3354;if(this[_0x274bbf(0x1eb)][_0x274bbf(0x204)][_0x274bbf(0x291)](_0x274bbf(0x23d))){if(this[_0x274bbf(0x1eb)][_0x274bbf(0x204)][_0x274bbf(0x284)](_0x274bbf(0x23d))[_0x274bbf(0x24d)]()){const {modelFragment:_0x306b30,anchorData:_0x1626b}=this[_0x274bbf(0x20a)]();return this[_0x274bbf(0x1d7)](_0x5191e8,_0x306b30,_0x1626b,_0x211fbc,_0x4f909f);}}const {modelFragment:_0x3ae538,anchorData:_0x1fedd4}=this[_0x274bbf(0x20e)]();return this[_0x274bbf(0x1d7)](_0x5191e8,_0x3ae538,_0x1fedd4,_0x211fbc,_0x4f909f);}[_0x5b3354(0x25b)](){const _0xc18c3e=_0x5b3354;this[_0xc18c3e(0x25a)][_0xc18c3e(0x1f3)](),super[_0xc18c3e(0x25b)]();}[_0x5b3354(0x20e)](){const _0x5c69f9=_0x5b3354,_0xa96780=this[_0x5c69f9(0x1eb)][_0x5c69f9(0x289)][_0x5c69f9(0x233)][_0x5c69f9(0x1ef)];if(_0xa96780[_0x5c69f9(0x249)]){const _0x557c01=_0x411376(_0xa96780[_0x5c69f9(0x210)]())||this[_0x5c69f9(0x1eb)][_0x5c69f9(0x289)][_0x5c69f9(0x1c9)][_0x5c69f9(0x271)](_0xa96780);this[_0x5c69f9(0x1eb)][_0x5c69f9(0x289)][_0x5c69f9(0x263)](_0x5a4b47=>{const _0x2a8425=_0x5c69f9;_0x5a4b47[_0x2a8425(0x247)](_0x557c01,'in');});}const _0x25cc0a=_0xa96780[_0x5c69f9(0x29a)](),_0x2a48dd=this[_0x5c69f9(0x275)](this[_0x5c69f9(0x1eb)][_0x5c69f9(0x289)][_0x5c69f9(0x299)](_0xa96780),_0x25cc0a[_0x5c69f9(0x1e3)],_0x25cc0a[_0x5c69f9(0x260)]),_0x262a29=_0xa96780[_0x5c69f9(0x29a)]()[_0x5c69f9(0x1e3)],_0x69edf7=new Map();let _0x1e828e=_0x2a48dd;for(let _0x3bdba1=0x0;_0x3bdba1<_0x262a29[_0x5c69f9(0x258)][_0x5c69f9(0x1df)];_0x3bdba1++)_0x69edf7[_0x5c69f9(0x29c)](_0x1e828e,_0x262a29[_0x5c69f9(0x258)][_0x3bdba1]),_0x1e828e=_0x1e828e[_0x5c69f9(0x1f4)](0x0);return{'modelFragment':_0x2a48dd,'anchorData':_0x69edf7};}[_0x5b3354(0x20a)](){const _0x360ad7=_0x5b3354,_0x39d916=this[_0x360ad7(0x1eb)][_0x360ad7(0x289)][_0x360ad7(0x233)][_0x360ad7(0x1ef)],_0x133994=this[_0x360ad7(0x1eb)][_0x360ad7(0x204)][_0x360ad7(0x284)](_0x360ad7(0x23d))[_0x360ad7(0x27d)](),_0x550023=_0x39d916[_0x360ad7(0x29a)]()[_0x360ad7(0x1e3)][_0x360ad7(0x267)][_0x360ad7(0x267)],_0x5699c4=this[_0x360ad7(0x275)](_0x133994,this[_0x360ad7(0x1eb)][_0x360ad7(0x289)][_0x360ad7(0x264)](_0x550023),this[_0x360ad7(0x1eb)][_0x360ad7(0x289)][_0x360ad7(0x1d0)](_0x550023)),_0x278520=_0x39d916[_0x360ad7(0x29a)]()[_0x360ad7(0x1e3)],_0xf3993a=new Map();let _0x2ce9b7=_0x5699c4;for(let _0x45f868=0x0;_0x45f868<_0x278520[_0x360ad7(0x258)][_0x360ad7(0x1df)];_0x45f868++)if(_0xf3993a[_0x360ad7(0x29c)](_0x2ce9b7,_0x278520[_0x360ad7(0x258)][_0x45f868]),_0x45f868<_0x278520[_0x360ad7(0x258)][_0x360ad7(0x1df)]-0x1)_0x2ce9b7=_0x2ce9b7[_0x360ad7(0x1f4)](0x0);else{let _0x75cb32=_0x2ce9b7[_0x360ad7(0x1ff)];for(;_0x75cb32;)_0xf3993a[_0x360ad7(0x29c)](_0x75cb32,_0x278520[_0x360ad7(0x258)][_0x45f868]),_0x75cb32=_0x75cb32[_0x360ad7(0x1ff)];}return{'modelFragment':_0x5699c4,'anchorData':_0xf3993a};}[_0x5b3354(0x1d7)](_0x206945,_0x265985,_0xc6a5e0,_0x190f2b,_0x4823dc){const _0x4dc3e9=_0x5b3354,_0x455d34=this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x204)][_0x4dc3e9(0x284)](_0x95b872),_0x231552=this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x204)][_0x4dc3e9(0x284)](_0x406c9f),_0x5fa41c=this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x289)][_0x4dc3e9(0x233)][_0x4dc3e9(0x1ef)],_0xa94fc6=_0x455d34[_0x4dc3e9(0x2a0)](_0x265985),_0x21a35d=this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x1da)][_0x4dc3e9(0x215)][_0x4dc3e9(0x1e6)](_0xa94fc6),_0x156846=this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x289)][_0x4dc3e9(0x233)][_0x4dc3e9(0x1d2)],_0x2a4ec9=[..._0x5fa41c[_0x4dc3e9(0x286)]()];let _0x219afa=this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x1bf)][_0x4dc3e9(0x284)](_0x4dc3e9(0x280))||[..._0x211c12];this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x204)][_0x4dc3e9(0x291)](_0x4dc3e9(0x20d))||(_0x219afa=_0x219afa[_0x4dc3e9(0x239)](_0x272b61=>_0x4dc3e9(0x27f)!=_0x272b61));const _0x533e8e=new _0x204954(this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x27b)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x4dc3e9(0x1d3),'customView':this[_0x4dc3e9(0x25e)]},'showUnchangedParts':!0x0,'availableActions':_0x219afa},this[_0x4dc3e9(0x25a)]);return _0x231552[_0x4dc3e9(0x253)]({'index':0x3e8*Math[_0x4dc3e9(0x1d5)]()%0x3e8,'title':_0x190f2b,'icon':_0x4823dc||_0x4bf878,'mainView':_0x533e8e,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x204)][_0x4dc3e9(0x291)](_0x4dc3e9(0x20d)),'ranges':_0x2a4ec9}),this[_0x4dc3e9(0x1c6)](_0x533e8e,_0x231552),this[_0x4dc3e9(0x287)](_0x231552,_0x4dc3e9(0x22e),()=>{const _0x37796f=_0x4dc3e9;this[_0x37796f(0x1e4)](_0x265985,_0xc6a5e0,!0x1);}),this[_0x4dc3e9(0x287)](_0x231552,_0x4dc3e9(0x27f),()=>{const _0x40d4bc=_0x4dc3e9;this[_0x40d4bc(0x1e4)](_0x265985,_0xc6a5e0,!0x0);}),this[_0x4dc3e9(0x287)](_0x231552,_0x4dc3e9(0x1e9),()=>{const _0x2a0396=_0x4dc3e9;this[_0x2a0396(0x242)](),this[_0x2a0396(0x23b)]();}),this[_0x4dc3e9(0x287)](_0x231552,_0x4dc3e9(0x203),()=>{const _0x46f824=_0x4dc3e9;if(this[_0x46f824(0x1d8)]&&this[_0x46f824(0x1d8)][_0x46f824(0x270)][_0x46f824(0x1df)]>0x0){const _0x12ee1f=this[_0x46f824(0x1d8)][_0x46f824(0x270)][this[_0x46f824(0x1d8)][_0x46f824(0x270)][_0x46f824(0x1df)]-0x1],_0x4c7b6c=_0x12ee1f[_0x46f824(0x218)][0x0];_0x4c7b6c&&_0x46f824(0x22b)===_0x4c7b6c[_0x46f824(0x1be)]&&_0x12ee1f[_0x46f824(0x256)](0x0,_0x46f824(0x1c3));}this[_0x46f824(0x242)](),this[_0x46f824(0x1de)](),this[_0x46f824(0x227)](_0x231552);}),this[_0x4dc3e9(0x1dd)](_0x21a35d,_0x156846,_0x533e8e,_0x231552,_0x206945);}[_0x5b3354(0x275)](_0x5f937b,_0x116e61,_0x53be17){const _0x4dabd5=_0x5b3354,_0xe77b5a=this[_0x4dabd5(0x1eb)][_0x4dabd5(0x289)][_0x4dabd5(0x282)](_0x116e61,_0x53be17)[_0x4dabd5(0x21c)](),_0x1ad4c8=_0xe77b5a['is'](_0x4dabd5(0x24e))?[]:_0xe77b5a[_0x4dabd5(0x1c7)]({'includeSelf':!0x0})[_0x4dabd5(0x254)](0x1);if(_0x1ad4c8[_0x4dabd5(0x1df)]){const _0x3c06ec=_0x1ad4c8[_0x4dabd5(0x1db)](_0x499dd1=>_0x499dd1[_0x4dabd5(0x25f)](!0x1));for(let _0x263cb6=0x1;_0x263cb6<_0x3c06ec[_0x4dabd5(0x1df)];_0x263cb6++)_0x3c06ec[_0x263cb6-0x1][_0x4dabd5(0x21e)](_0x3c06ec[_0x263cb6]);return _0x3c06ec[_0x3c06ec[_0x4dabd5(0x1df)]-0x1][_0x4dabd5(0x21e)](_0x5f937b),new _0x8eeec8(_0x3c06ec[0x0]);}return _0x5f937b;}async[_0x5b3354(0x1dd)](_0x5ecfff,_0xc341a7,_0x4b5b15,_0x24fb6a,_0x19ad21){const _0x3ebfb3=_0x5b3354,_0x1c6aa3=this[_0x3ebfb3(0x1eb)];this[_0x3ebfb3(0x29b)]={'action':_0x19ad21,'content':_0x5ecfff,'version':_0xc341a7,'mainView':_0x4b5b15,'aiBalloon':_0x24fb6a};const _0x965728=new _0x25f476({'connector':this[_0x3ebfb3(0x21a)],'editor':_0x1c6aa3,'content':_0x5ecfff,'version':_0xc341a7,..._0x19ad21});this[_0x3ebfb3(0x2a5)][_0x3ebfb3(0x23c)](_0x965728),_0x4b5b15[_0x3ebfb3(0x1fc)]();const _0x17313d=(_0x1369d9,_0x41cf3f,_0x4317ce=!0x1,_0xdbaec4=_0x3ebfb3(0x28a))=>this[_0x3ebfb3(0x22f)][_0x3ebfb3(0x20c)](async _0x537338=>{const _0x3a45db=_0x3ebfb3;try{const _0x2b6021=_0x401ad0({'editor':_0x1c6aa3,'changeGroups':_0x1369d9[_0x3a45db(0x218)],'documentContextContent':_0x1369d9[_0x3a45db(0x25d)],'showDiff':_0x4317ce,'trimUnchanged':!0x1});await _0x41cf3f[_0x3a45db(0x240)]({'parts':_0x2b6021,'renderingStrategy':_0xdbaec4,'abortSignal':_0x537338});}catch(_0x316913){if(this[_0x3a45db(0x292)](_0x316913))return;throw _0x316913;}});this[_0x3ebfb3(0x1d8)]['on'](_0x3ebfb3(0x1cf),(_0x6b6d2f,_0x24f427)=>{const _0x4ad3d9=_0x3ebfb3;_0x4b5b15[_0x4ad3d9(0x20b)](),_0x24fb6a[_0x4ad3d9(0x268)](),_0x17313d(_0x24f427,_0x4b5b15)[_0x4ad3d9(0x1e2)](_0x441e68=>{const _0x3af22d=_0x4ad3d9;this[_0x3af22d(0x292)](_0x441e68)||(console[_0x3af22d(0x223)](_0x3af22d(0x235),_0x441e68),this[_0x3af22d(0x1f7)](_0x965728,_0x4b5b15));});}),this[_0x3ebfb3(0x1d8)]['on'](_0x3ebfb3(0x1cd),(_0x85948e,_0x19efd9)=>{const _0x5c66fe=_0x3ebfb3;_0x17313d(_0x19efd9,_0x4b5b15)[_0x5c66fe(0x1e2)](_0x51c966=>{const _0x209556=_0x5c66fe;this[_0x209556(0x292)](_0x51c966)||(console[_0x209556(0x223)](_0x209556(0x228),_0x51c966),this[_0x209556(0x1f7)](_0x965728,_0x4b5b15));});}),this[_0x3ebfb3(0x1d8)]['on'](_0x3ebfb3(0x26e),async()=>{const _0x43041f=_0x3ebfb3;try{await this[_0x43041f(0x2a6)](_0x4b5b15,_0x24fb6a),this[_0x43041f(0x1e1)](),await this[_0x43041f(0x22f)][_0x43041f(0x276)];}catch(_0x1f3d22){this[_0x43041f(0x292)](_0x1f3d22)||(console[_0x43041f(0x223)](_0x43041f(0x1c5),_0x1f3d22),this[_0x43041f(0x1f7)](_0x965728,_0x4b5b15));}finally{_0x24fb6a[_0x43041f(0x212)]();}}),this[_0x3ebfb3(0x287)](_0x4b5b15,_0x3ebfb3(0x21f),async(_0x237433,{showDiff:_0x3ffbe8})=>{const _0x22c121=_0x3ebfb3;try{this[_0x22c121(0x211)]=_0x3ffbe8;const _0x453c47=this[_0x22c121(0x1d8)][_0x22c121(0x270)][this[_0x22c121(0x1d8)][_0x22c121(0x270)][_0x22c121(0x1df)]-0x1];_0x453c47&&await _0x17313d(_0x453c47,_0x4b5b15,_0x3ffbe8,_0x22c121(0x278));}catch(_0x195fe4){this[_0x22c121(0x292)](_0x195fe4)||(console[_0x22c121(0x223)](_0x22c121(0x236),_0x195fe4),this[_0x22c121(0x1f7)](_0x965728,_0x4b5b15));}}),this[_0x3ebfb3(0x1d8)]['on'](_0x3ebfb3(0x205),(_0x579691,{reply:_0x4fed22})=>{const _0x56ffc6=_0x3ebfb3,_0x1bc669={'positiveCount':_0x4fed22[_0x56ffc6(0x218)][_0x56ffc6(0x239)](_0x199bba=>_0x56ffc6(0x1c1)===_0x199bba[_0x56ffc6(0x1be)])[_0x56ffc6(0x1df)],'totalCount':_0x4fed22[_0x56ffc6(0x218)][_0x56ffc6(0x1df)]},_0x31af2c=this[_0x56ffc6(0x1d8)][_0x56ffc6(0x28e)],_0xdc11b0=this[_0x56ffc6(0x1d8)][_0x56ffc6(0x27c)];_0xdc11b0?this[_0x56ffc6(0x21a)][_0x56ffc6(0x279)](_0xdc11b0,_0x31af2c,_0x1bc669):this[_0x56ffc6(0x21a)][_0x56ffc6(0x1ce)](_0x31af2c,_0x1bc669);}),this[_0x3ebfb3(0x1c6)](_0x4b5b15,_0x24fb6a);try{const _0x26ddb1=await this[_0x3ebfb3(0x1d8)][_0x3ebfb3(0x1e3)]();return this[_0x3ebfb3(0x1e1)](),_0x26ddb1;}catch(_0x581f9e){if(this[_0x3ebfb3(0x292)](_0x581f9e))return;_0x4b5b15[_0x3ebfb3(0x20b)](),this[_0x3ebfb3(0x1f7)](_0x965728,_0x4b5b15);}}[_0x5b3354(0x1e4)](_0x589645,_0x436d57,_0x40f662){const _0x1c55f7=_0x5b3354,_0x54d636=this[_0x1c55f7(0x1eb)];if(_0x40f662&&!_0x54d636[_0x1c55f7(0x204)][_0x1c55f7(0x291)](_0x1c55f7(0x20d)))throw new _0x94a4f3(_0x1c55f7(0x285),null);const _0x213e85=this[_0x1c55f7(0x1eb)][_0x1c55f7(0x204)][_0x1c55f7(0x284)](_0x3007da),_0x16720e=this[_0x1c55f7(0x1d8)],_0x98bbbe=this[_0x1c55f7(0x1d8)][_0x1c55f7(0x270)][this[_0x1c55f7(0x1d8)][_0x1c55f7(0x270)][_0x1c55f7(0x1df)]-0x1],_0x416ee1=_0x98bbbe[_0x1c55f7(0x218)];_0x98bbbe[_0x1c55f7(0x256)](0x0,_0x1c55f7(0x1c1));let _0x4e8fab=_0x4859a1({'editor':_0x54d636,'reply':_0x98bbbe,'interaction':_0x16720e,'groups':_0x416ee1,'transform':!0x1,'documentCompare':_0x213e85,'documentCompareOptions':{'anchor':_0x54d636[_0x1c55f7(0x289)][_0x1c55f7(0x219)](_0x589645,0x0),'markDeletions':_0x40f662}});_0x4e8fab=this[_0x1c55f7(0x241)](_0x4e8fab,_0x436d57);for(const _0x3397c7 of _0x4e8fab)this[_0x1c55f7(0x252)](_0x436d57,_0x3397c7,_0x54d636[_0x1c55f7(0x289)][_0x1c55f7(0x233)][_0x1c55f7(0x1f6)]());const _0x4f548a=_0x16720e[_0x1c55f7(0x255)]()[_0x1c55f7(0x1d2)],_0xa6927a=_0x54d636[_0x1c55f7(0x289)][_0x1c55f7(0x233)][_0x1c55f7(0x217)][_0x1c55f7(0x216)](_0x4f548a),_0x2e47bd={'document':_0x54d636[_0x1c55f7(0x289)][_0x1c55f7(0x233)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x431b27=_0x582b69(_0x4e8fab,_0xa6927a,_0x2e47bd)[_0x1c55f7(0x1f9)];_0x54d636[_0x1c55f7(0x289)][_0x1c55f7(0x263)](_0x1eed1b=>{const _0x227d5d=_0x1c55f7;if(_0x1eed1b[_0x227d5d(0x247)](_0x54d636[_0x227d5d(0x289)][_0x227d5d(0x233)][_0x227d5d(0x1ef)][_0x227d5d(0x293)]),_0x40f662)_0x54d636[_0x227d5d(0x204)][_0x227d5d(0x284)](_0x227d5d(0x296))[_0x227d5d(0x298)](_0x431b27);else{for(const _0x5bf35c of _0x431b27)_0x5bf35c[_0x227d5d(0x24a)]=_0x54d636[_0x227d5d(0x289)][_0x227d5d(0x233)][_0x227d5d(0x1d2)],_0x100c91(_0x54d636,_0x5bf35c),_0x1eed1b[_0x227d5d(0x1dc)][_0x227d5d(0x274)](_0x5bf35c),_0x54d636[_0x227d5d(0x289)][_0x227d5d(0x257)](_0x5bf35c);}}),this[_0x1c55f7(0x1eb)][_0x1c55f7(0x204)][_0x1c55f7(0x284)](_0x1c55f7(0x21d))[_0x1c55f7(0x29f)]();}[_0x5b3354(0x241)](_0x40b9ce,_0x17d87e){const _0x1a63b7=_0x5b3354;return _0x40b9ce[_0x1a63b7(0x239)](_0x5a86d3=>{const _0x332e77=_0x1a63b7;if(_0x332e77(0x26c)==_0x5a86d3[_0x332e77(0x265)]){const _0x11f1f2=_0x5a86d3[_0x332e77(0x23f)][_0x332e77(0x2a1)];return!_0x17d87e[_0x332e77(0x291)](_0x11f1f2);}if(_0x5a86d3[_0x332e77(0x265)][_0x332e77(0x1fa)](_0x332e77(0x230))>-0x1){const _0x400f1f=_0x5a86d3[_0x332e77(0x26a)][_0x332e77(0x1e3)][_0x332e77(0x2a1)];return!_0x17d87e[_0x332e77(0x291)](_0x400f1f);}return!0x0;});}[_0x5b3354(0x252)](_0x225840,_0xa35b0d,_0x1c250b){const _0x249920=_0x5b3354,_0x56e0c1=_0xa35b0d[_0x249920(0x1d9)]();for(const _0x2b625b in _0xa35b0d){const _0x4ad203=_0xa35b0d[_0x2b625b];_0x4ad203 instanceof _0x3541b2?_0xa35b0d[_0x2b625b]=new _0x3541b2(_0x18ca1f(_0x4ad203[_0x249920(0x1e3)]),_0x18ca1f(_0x4ad203[_0x249920(0x260)])):_0x4ad203 instanceof _0x3610e6&&(_0xa35b0d[_0x2b625b]=_0x18ca1f(_0x4ad203));}if([_0x249920(0x24f),_0x249920(0x27a),_0x249920(0x262),_0x249920(0x1ee),_0x249920(0x207),_0x249920(0x2a4)][_0x249920(0x273)](_0x56e0c1[_0x249920(0x265)])){if(_0x56e0c1[_0x249920(0x266)]=!0x1,_0x56e0c1[_0x249920(0x24a)]=null,_0x249920(0x262)==_0x56e0c1[_0x249920(0x265)]){const _0x2fd1eb=_0x56e0c1[_0x249920(0x269)],_0xca2ddb=_0x56e0c1[_0x249920(0x2a7)];new _0x32b203(_0x2fd1eb,_0xca2ddb)[_0x249920(0x25c)]();}else _0x56e0c1[_0x249920(0x25c)]();}function _0x18ca1f(_0x3c144c){const _0x25e407=_0x249920;if(_0x25e407(0x209)==_0x3c144c[_0x25e407(0x22d)][_0x25e407(0x1cc)])return _0x3c144c;const _0x3884ec=[];let _0x1ccf93=_0x3c144c[_0x25e407(0x22d)];for(let _0x4456e5=0x0;_0x4456e5<_0x3c144c[_0x25e407(0x258)][_0x25e407(0x1df)];_0x4456e5++){const _0x5dfe02=_0x225840[_0x25e407(0x284)](_0x1ccf93)||0x0;_0x3884ec[_0x4456e5]=_0x3c144c[_0x25e407(0x258)][_0x4456e5]+_0x5dfe02,_0x1ccf93=_0x1ccf93[_0x25e407(0x226)](_0x3c144c[_0x25e407(0x258)][_0x4456e5]);}return new _0x3610e6(_0x1c250b,_0x3884ec,_0x3c144c[_0x25e407(0x1ec)]);}}[_0x5b3354(0x26d)](){const _0x1ed844=_0x5b3354;if(!this[_0x1ed844(0x29b)])return;this[_0x1ed844(0x2a5)][_0x1ed844(0x1df)]>0x0&&this[_0x1ed844(0x242)](),this[_0x1ed844(0x283)]=0x0,this[_0x1ed844(0x211)]=!0x1;const {action:_0x8a9956,content:_0x44f426,version:_0x1d7e72,mainView:_0x485652,aiBalloon:_0x45bab8}=this[_0x1ed844(0x29b)];_0x485652[_0x1ed844(0x231)]=!0x1,_0x485652[_0x1ed844(0x1fc)](),this[_0x1ed844(0x2a2)](_0x485652,_0x45bab8);const _0x1f09dd=_0x485652;_0x1f09dd[_0x1ed844(0x251)]&&_0x1f09dd[_0x1ed844(0x251)][_0x1ed844(0x1ea)]&&_0x1f09dd[_0x1ed844(0x251)][_0x1ed844(0x1ea)][_0x1ed844(0x29c)]({'isOn':!0x1,'icon':_0x33e389}),this[_0x1ed844(0x281)](_0x485652),_0x485652[_0x1ed844(0x261)](),this[_0x1ed844(0x1e1)](),this[_0x1ed844(0x227)](_0x485652),this[_0x1ed844(0x1dd)](_0x44f426,_0x1d7e72,_0x485652,_0x45bab8,_0x8a9956)[_0x1ed844(0x1e2)](_0x71d253=>{const _0x2f61b3=_0x1ed844;this[_0x2f61b3(0x292)](_0x71d253)||console[_0x2f61b3(0x223)](_0x2f61b3(0x22a),_0x71d253);});}[_0x5b3354(0x281)](_0xfe2b56){const _0x43dd2d=_0x5b3354,_0x3bd5c5=_0xfe2b56[_0x43dd2d(0x214)][_0x43dd2d(0x2a3)];for(;_0x3bd5c5[_0x43dd2d(0x1df)]>0x0;)_0x3bd5c5[_0x43dd2d(0x262)](_0x3bd5c5[_0x43dd2d(0x259)]);_0xfe2b56[_0x43dd2d(0x214)][_0x43dd2d(0x1f2)]=!0x1;}[_0x5b3354(0x292)](_0x58b0d7){const _0x26e23a=_0x5b3354;return!!_0x58b0d7[_0x26e23a(0x1fd)]&&_0x58b0d7[_0x26e23a(0x1fd)][_0x26e23a(0x27e)](_0x26e23a(0x20f));}[_0x5b3354(0x1de)](){const _0x5c4eee=_0x5b3354;this[_0x5c4eee(0x2a5)]=[],this[_0x5c4eee(0x29b)]=void 0x0,this[_0x5c4eee(0x283)]=0x0,this[_0x5c4eee(0x1e1)]();}[_0x5b3354(0x242)](){const _0x4a07ca=_0x5b3354;this[_0x4a07ca(0x1d8)]&&this[_0x4a07ca(0x1d8)][_0x4a07ca(0x1c0)](),this[_0x4a07ca(0x22f)][_0x4a07ca(0x29d)](),this[_0x4a07ca(0x24b)]=!0x1,this[_0x4a07ca(0x29b)]&&this[_0x4a07ca(0x29b)][_0x4a07ca(0x28b)][_0x4a07ca(0x212)]();}[_0x5b3354(0x1d6)](){const _0x595476=_0x5b3354,_0x57d9e2=new _0x3a1089(this[_0x595476(0x1eb)][_0x595476(0x27b)]),_0x18f48e=new _0x3a1089(this[_0x595476(0x1eb)][_0x595476(0x27b)]),_0xaf5d6f=new _0x330230(this[_0x595476(0x1eb)][_0x595476(0x27b)]),_0x113a96=new _0x3a1089(this[_0x595476(0x1eb)][_0x595476(0x27b)]);_0x57d9e2[_0x595476(0x29c)]({'icon':_0x3f999b,'label':_0x46a3b0(this[_0x595476(0x1eb)][_0x595476(0x27b)],_0x595476(0x290)),'tooltip':!0x0,'class':_0x595476(0x1d1)}),_0x18f48e[_0x595476(0x29c)]({'icon':_0x49d882,'tooltip':_0x46a3b0(this[_0x595476(0x1eb)][_0x595476(0x27b)],_0x595476(0x200)),'class':_0x595476(0x213)}),_0xaf5d6f[_0x595476(0x1f8)]({'tag':_0x595476(0x295),'attributes':{'class':[_0x595476(0x21b)]},'children':[_0x595476(0x250)]}),_0x113a96[_0x595476(0x29c)]({'icon':_0x5acb7,'tooltip':_0x46a3b0(this[_0x595476(0x1eb)][_0x595476(0x27b)],_0x595476(0x23a)),'class':_0x595476(0x1c2)}),_0x57d9e2[_0x595476(0x201)](_0x595476(0x1ca))['to'](this,_0x595476(0x24b),_0x3f3fbf=>!_0x3f3fbf),_0x57d9e2['on'](_0x595476(0x202),()=>{const _0x59feab=_0x595476;this[_0x59feab(0x26d)]();}),_0x18f48e[_0x595476(0x201)](_0x595476(0x1ca))['to'](this,_0x595476(0x24b),_0x22bf79=>!_0x22bf79),_0x18f48e['on'](_0x595476(0x202),()=>{const _0x534e4d=_0x595476;this[_0x534e4d(0x272)]();}),_0x113a96[_0x595476(0x201)](_0x595476(0x1ca))['to'](this,_0x595476(0x24b),_0x9c133f=>!_0x9c133f),_0x113a96['on'](_0x595476(0x202),()=>{const _0x27ba57=_0x595476;this[_0x27ba57(0x234)]();}),this[_0x595476(0x246)]=_0x18f48e,this[_0x595476(0x1f1)]=_0xaf5d6f,this[_0x595476(0x229)]=_0x113a96,this[_0x595476(0x25e)][_0x595476(0x1e5)](_0x57d9e2);}[_0x5b3354(0x272)](){const _0x36d63e=_0x5b3354,_0x414de3=this[_0x36d63e(0x2a5)][_0x36d63e(0x1df)];this[_0x36d63e(0x283)]<_0x414de3-0x1&&this[_0x36d63e(0x1f5)](this[_0x36d63e(0x283)]+0x1);}[_0x5b3354(0x234)](){const _0x3a058a=_0x5b3354;this[_0x3a058a(0x283)]>0x0&&this[_0x3a058a(0x1f5)](this[_0x3a058a(0x283)]-0x1);}async[_0x5b3354(0x1f5)](_0x2ac654){const _0x21ba53=_0x5b3354;if(!this[_0x21ba53(0x29b)])return;this[_0x21ba53(0x283)]=_0x2ac654;const {mainView:_0x245399}=this[_0x21ba53(0x29b)],_0x327100=this[_0x21ba53(0x2a5)][this[_0x21ba53(0x2a5)][_0x21ba53(0x1df)]-0x1-this[_0x21ba53(0x283)]];if(!_0x327100)return;if(_0x327100[_0x21ba53(0x1fe)])return this[_0x21ba53(0x1f7)](_0x327100,_0x245399),void this[_0x21ba53(0x1e1)]();if(!_0x327100[_0x21ba53(0x270)][_0x21ba53(0x1df)])return;_0x245399[_0x21ba53(0x1fc)](),this[_0x21ba53(0x29b)]&&this[_0x21ba53(0x2a2)](_0x245399,this[_0x21ba53(0x29b)][_0x21ba53(0x28b)]);const _0x2fce18=_0x327100[_0x21ba53(0x270)][_0x327100[_0x21ba53(0x270)][_0x21ba53(0x1df)]-0x1];if(_0x2fce18){const _0xecde06=this[_0x21ba53(0x1eb)];this[_0x21ba53(0x281)](_0x245399);try{const _0x43efc2=_0x401ad0({'editor':_0xecde06,'changeGroups':_0x2fce18[_0x21ba53(0x218)],'documentContextContent':_0x2fce18[_0x21ba53(0x25d)],'showDiff':this[_0x21ba53(0x211)],'trimUnchanged':!0x1});this[_0x21ba53(0x281)](_0x245399),await new Promise(_0xcf908e=>setTimeout(_0xcf908e,0x32)),await _0x245399[_0x21ba53(0x240)]({'parts':_0x43efc2,'renderingStrategy':_0x21ba53(0x278),'abortSignal':new AbortController()[_0x21ba53(0x297)]});}catch(_0x305ebf){this[_0x21ba53(0x292)](_0x305ebf)||console[_0x21ba53(0x223)](_0x21ba53(0x220),_0x305ebf);}}this[_0x21ba53(0x1e1)]();}[_0x5b3354(0x1e1)](){const _0x948541=_0x5b3354;if(!this[_0x948541(0x246)]||!this[_0x948541(0x1f1)]||!this[_0x948541(0x229)])return;const _0x669286=this[_0x948541(0x2a5)][_0x948541(0x1df)],_0x33fa4b=_0x669286>0x1,_0x470155=this[_0x948541(0x29b)]?.[_0x948541(0x1d4)];if(_0x33fa4b){this[_0x948541(0x244)]||this[_0x948541(0x28d)]||this[_0x948541(0x1cb)]||(this[_0x948541(0x25e)][_0x948541(0x1e5)](this[_0x948541(0x246)]),_0x470155?.[_0x948541(0x22c)](this[_0x948541(0x246)]),this[_0x948541(0x244)]=!0x0,this[_0x948541(0x25e)][_0x948541(0x1e5)](this[_0x948541(0x1f1)]),_0x470155?.[_0x948541(0x22c)](this[_0x948541(0x1f1)]),this[_0x948541(0x28d)]=!0x0,this[_0x948541(0x25e)][_0x948541(0x1e5)](this[_0x948541(0x229)]),_0x470155?.[_0x948541(0x22c)](this[_0x948541(0x229)]),this[_0x948541(0x1cb)]=!0x0);const _0x44cdad=_0x669286-this[_0x948541(0x283)];this[_0x948541(0x1f1)][_0x948541(0x248)]&&(this[_0x948541(0x1f1)][_0x948541(0x248)][_0x948541(0x237)]=_0x44cdad+'/'+_0x669286),this[_0x948541(0x246)][_0x948541(0x1ca)]=this[_0x948541(0x283)]<_0x669286-0x1,this[_0x948541(0x229)][_0x948541(0x1ca)]=this[_0x948541(0x283)]>0x0;}else(this[_0x948541(0x244)]||this[_0x948541(0x28d)]||this[_0x948541(0x1cb)])&&(this[_0x948541(0x25e)][_0x948541(0x262)](this[_0x948541(0x246)]),_0x470155?.[_0x948541(0x232)](this[_0x948541(0x246)]),this[_0x948541(0x244)]=!0x1,this[_0x948541(0x25e)][_0x948541(0x262)](this[_0x948541(0x1f1)]),_0x470155?.[_0x948541(0x232)](this[_0x948541(0x1f1)]),this[_0x948541(0x28d)]=!0x1,this[_0x948541(0x25e)][_0x948541(0x262)](this[_0x948541(0x229)]),_0x470155?.[_0x948541(0x232)](this[_0x948541(0x229)]),this[_0x948541(0x1cb)]=!0x1);}[_0x5b3354(0x1c6)](_0x1ed0c6,_0x26d665){const _0xcd9252=_0x5b3354;_0x1ed0c6[_0xcd9252(0x294)](),_0x26d665[_0xcd9252(0x28c)][_0xcd9252(0x294)](),this[_0xcd9252(0x24b)]=!0x0;}async[_0x5b3354(0x1f7)](_0x16ed00,_0x167f86){const _0x31028e=_0x5b3354,_0x149525=_0x46a3b0(this[_0x31028e(0x1eb)][_0x31028e(0x27b)],_0x31028e(0x225));_0x167f86[_0x31028e(0x277)](_0x149525),_0x16ed00[_0x31028e(0x1fe)]=!0x0,await this[_0x31028e(0x22f)][_0x31028e(0x276)],_0x167f86[_0x31028e(0x224)](),this[_0x31028e(0x29b)]?.[_0x31028e(0x28b)][_0x31028e(0x28c)][_0x31028e(0x1e0)]&&(this[_0x31028e(0x29b)][_0x31028e(0x28b)][_0x31028e(0x28c)][_0x31028e(0x1e0)][_0x31028e(0x1fb)]=!0x0);}[_0x5b3354(0x2a2)](_0x538493,_0x26d523){const _0x58edfd=_0x5b3354;_0x538493[_0x58edfd(0x206)](),_0x26d523[_0x58edfd(0x28c)][_0x58edfd(0x1e0)]&&(_0x26d523[_0x58edfd(0x28c)][_0x58edfd(0x1e0)][_0x58edfd(0x1fb)]=!0x1);}async[_0x5b3354(0x2a6)](_0x218622,_0xb4196e){const _0x1291f2=_0x5b3354;await this[_0x1291f2(0x22f)][_0x1291f2(0x276)],this[_0x1291f2(0x24b)]=!0x1,_0x218622[_0x1291f2(0x1ed)](),_0xb4196e[_0x1291f2(0x28c)][_0x1291f2(0x1ed)]();}[_0x5b3354(0x23b)](){const _0x1eca9f=_0x5b3354;this[_0x1eca9f(0x25e)][_0x1eca9f(0x288)](_0x566db7=>{const _0x2bd703=_0x1eca9f;_0x2bd703(0x1ca)in _0x566db7&&(_0x566db7[_0x2bd703(0x1ca)]=!0x1);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22f5d3=_0x1eb9;(function(_0x5b8dd2,_0x55195c){const _0x3bdb5e=_0x1eb9,_0x5672bd=_0x5b8dd2();while(!![]){try{const _0x28f679=-parseInt(_0x3bdb5e(0xa3))/0x1+parseInt(_0x3bdb5e(0xa1))/0x2*(parseInt(_0x3bdb5e(0xb1))/0x3)+parseInt(_0x3bdb5e(0xb8))/0x4+-parseInt(_0x3bdb5e(0x9e))/0x5*(-parseInt(_0x3bdb5e(0x99))/0x6)+parseInt(_0x3bdb5e(0xa0))/0x7*(parseInt(_0x3bdb5e(0xaf))/0x8)+parseInt(_0x3bdb5e(0xa8))/0x9+-parseInt(_0x3bdb5e(0xb3))/0xa;if(_0x28f679===_0x55195c)break;else _0x5672bd['push'](_0x5672bd['shift']());}catch(_0x575cef){_0x5672bd['push'](_0x5672bd['shift']());}}}(_0x1396,0xe36d1));import{AIInteraction as _0x5828cd,AI_MODEL_EVENT_NAMES as _0x281925}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x27d4d2}from'../../aicore/model/aicontext.js';function _0x1eb9(_0x35e47b,_0x47bff5){const _0x13962e=_0x1396();return _0x1eb9=function(_0x1eb9e7,_0x3d9047){_0x1eb9e7=_0x1eb9e7-0x98;let _0x1f1ca9=_0x13962e[_0x1eb9e7];return _0x1f1ca9;},_0x1eb9(_0x35e47b,_0x47bff5);}function _0x1396(){const _0x4e103c=['7421428GwFRyS','model','36FLchdi','delegate','createReply','replies','current-document','1285675kBsvjJ','hasError','26341CgIQGn','2kngrRC','userMessage','1795992Uxvyhi','connector','replyCreated','content','Current\x20document','15331023iaxbzx','fire','version','actionName','executeCustomAction','editor','getDocumentContext','3880idZwev','args','3682359ZgDDGd','executeAction','54265930lfwXue','TEXT','html','sendRequest','push'];_0x1396=function(){return _0x4e103c;};return _0x1396();}import{AIActionsReply as _0x56f216}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x5828cd{[_0x22f5d3(0xa6)];[_0x22f5d3(0xaa)];[_0x22f5d3(0xab)];[_0x22f5d3(0xb0)];[_0x22f5d3(0xa2)];[_0x22f5d3(0x98)];[_0x22f5d3(0x9f)]=!0x1;constructor(_0x362c23){const _0x218921=_0x22f5d3;super(_0x362c23),this[_0x218921(0xa6)]=_0x362c23[_0x218921(0xa6)],this[_0x218921(0xaa)]=_0x362c23[_0x218921(0xaa)],this[_0x218921(0xab)]=_0x362c23[_0x218921(0xab)],this[_0x218921(0xb0)]=_0x362c23[_0x218921(0xb0)],this[_0x218921(0xa2)]=_0x362c23[_0x218921(0xa2)],this[_0x218921(0x98)]=_0x362c23[_0x218921(0x98)];}async[_0x22f5d3(0xb6)](){const _0xf36423=_0x22f5d3;return this[_0xf36423(0xab)]?this[_0xf36423(0xa4)][_0xf36423(0xb2)]({'content':this[_0xf36423(0xa6)],'actionName':this[_0xf36423(0xab)],'args':this[_0xf36423(0xb0)]}):this[_0xf36423(0xa4)][_0xf36423(0xac)]({'content':this[_0xf36423(0xa6)],'message':this[_0xf36423(0xa2)],'model':this[_0xf36423(0x98)],'outputFormat':_0xf36423(0xb5)});}[_0x22f5d3(0xae)](){const _0xc62134=_0x22f5d3;return{'type':_0x27d4d2[_0xc62134(0xb4)],'content':this[_0xc62134(0xa6)],'version':this[_0xc62134(0xaa)],'label':_0xc62134(0xa7),'uiId':_0xc62134(0x9d)};}[_0x22f5d3(0x9b)](_0x4edd81){const _0x414257=_0x22f5d3,_0x9283fa=new _0x56f216({'editor':this[_0x414257(0xad)],'documentContextContent':this[_0x414257(0xa6)],..._0x4edd81});return this[_0x414257(0x9c)][_0x414257(0xb7)](_0x9283fa),_0x9283fa[_0x414257(0x9a)](..._0x281925)['to'](this),this[_0x414257(0xa9)](_0x414257(0xa5),_0x9283fa),_0x9283fa;}}
23
+ const _0x4271e8=_0x49d0;(function(_0x404484,_0x211573){const _0xe69f43=_0x49d0,_0x59a7e4=_0x404484();while(!![]){try{const _0x5c99d5=parseInt(_0xe69f43(0x1ac))/0x1*(-parseInt(_0xe69f43(0x1bc))/0x2)+parseInt(_0xe69f43(0x1b4))/0x3+-parseInt(_0xe69f43(0x1cb))/0x4*(-parseInt(_0xe69f43(0x1ad))/0x5)+parseInt(_0xe69f43(0x1b2))/0x6+-parseInt(_0xe69f43(0x1c6))/0x7*(parseInt(_0xe69f43(0x1be))/0x8)+parseInt(_0xe69f43(0x1bf))/0x9+-parseInt(_0xe69f43(0x1c8))/0xa;if(_0x5c99d5===_0x211573)break;else _0x59a7e4['push'](_0x59a7e4['shift']());}catch(_0xfba5a6){_0x59a7e4['push'](_0x59a7e4['shift']());}}}(_0x26c6,0x43da9));import{AIInteraction as _0x382ca7,AI_MODEL_EVENT_NAMES as _0x55acf0}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0xcb19c2}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x5b16f8}from'./aiactionsreply.js';function _0x26c6(){const _0x116d5d=['version','args','delegate','268877DVmalb','replies','6183820AnKiRh','userMessage','Current\x20document','1509812OfWMRY','sendRequest','1dLFTlC','5oftOEE','push','hasError','connector','content','842082pppUmI','actionName','1545324LPQdaq','html','TEXT','executeAction','editor','createReply','replyCreated','executeCustomAction','53048TaYCiY','fire','48ETUgEU','1083537nEnOgL','getDocumentContext','model','current-document'];_0x26c6=function(){return _0x116d5d;};return _0x26c6();}function _0x49d0(_0x5b304f,_0x952e3e){const _0x26c603=_0x26c6();return _0x49d0=function(_0x49d098,_0x34ce70){_0x49d098=_0x49d098-0x1ab;let _0x24ab06=_0x26c603[_0x49d098];return _0x24ab06;},_0x49d0(_0x5b304f,_0x952e3e);}export class AIActionsInteraction extends _0x382ca7{[_0x4271e8(0x1b1)];[_0x4271e8(0x1c3)];[_0x4271e8(0x1b3)];[_0x4271e8(0x1c4)];[_0x4271e8(0x1c9)];[_0x4271e8(0x1c1)];[_0x4271e8(0x1af)]=!0x1;constructor(_0x1339c0){const _0x520005=_0x4271e8;super(_0x1339c0),this[_0x520005(0x1b1)]=_0x1339c0[_0x520005(0x1b1)],this[_0x520005(0x1c3)]=_0x1339c0[_0x520005(0x1c3)],this[_0x520005(0x1b3)]=_0x1339c0[_0x520005(0x1b3)],this[_0x520005(0x1c4)]=_0x1339c0[_0x520005(0x1c4)],this[_0x520005(0x1c9)]=_0x1339c0[_0x520005(0x1c9)],this[_0x520005(0x1c1)]=_0x1339c0[_0x520005(0x1c1)];}async[_0x4271e8(0x1ab)](){const _0x163a71=_0x4271e8;return this[_0x163a71(0x1b3)]?this[_0x163a71(0x1b0)][_0x163a71(0x1b7)]({'content':this[_0x163a71(0x1b1)],'actionName':this[_0x163a71(0x1b3)],'args':this[_0x163a71(0x1c4)]}):this[_0x163a71(0x1b0)][_0x163a71(0x1bb)]({'content':this[_0x163a71(0x1b1)],'message':this[_0x163a71(0x1c9)],'model':this[_0x163a71(0x1c1)],'outputFormat':_0x163a71(0x1b5)});}[_0x4271e8(0x1c0)](){const _0x5072b6=_0x4271e8;return{'type':_0xcb19c2[_0x5072b6(0x1b6)],'content':this[_0x5072b6(0x1b1)],'version':this[_0x5072b6(0x1c3)],'label':_0x5072b6(0x1ca),'uiId':_0x5072b6(0x1c2)};}[_0x4271e8(0x1b9)](_0x4bef40){const _0x2544b9=_0x4271e8,_0x31d5c7=new _0x5b16f8({'editor':this[_0x2544b9(0x1b8)],'documentContextContent':this[_0x2544b9(0x1b1)],..._0x4bef40});return this[_0x2544b9(0x1c7)][_0x2544b9(0x1ae)](_0x31d5c7),_0x31d5c7[_0x2544b9(0x1c5)](..._0x55acf0)['to'](this),this[_0x2544b9(0x1bd)](_0x2544b9(0x1ba),_0x31d5c7),_0x31d5c7;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47ad58=_0x4d34;function _0x4d34(_0x7863c6,_0x2b7f9a){const _0x38f52d=_0x38f5();return _0x4d34=function(_0x4d341d,_0x23ad03){_0x4d341d=_0x4d341d-0x69;let _0x228246=_0x38f52d[_0x4d341d];return _0x228246;},_0x4d34(_0x7863c6,_0x2b7f9a);}(function(_0x341296,_0x270a3b){const _0x2a77d2=_0x4d34,_0x24633d=_0x341296();while(!![]){try{const _0x36d5b7=parseInt(_0x2a77d2(0x6d))/0x1*(-parseInt(_0x2a77d2(0x81))/0x2)+-parseInt(_0x2a77d2(0x69))/0x3+-parseInt(_0x2a77d2(0x75))/0x4*(-parseInt(_0x2a77d2(0x7d))/0x5)+-parseInt(_0x2a77d2(0x6a))/0x6+-parseInt(_0x2a77d2(0x7e))/0x7+parseInt(_0x2a77d2(0x6b))/0x8+parseInt(_0x2a77d2(0x6c))/0x9;if(_0x36d5b7===_0x270a3b)break;else _0x24633d['push'](_0x24633d['shift']());}catch(_0x202c78){_0x24633d['push'](_0x24633d['shift']());}}}(_0x38f5,0xc8df0));import{AIReply as _0x39e061}from'../../aicore/model/aireply.js';function _0x38f5(){const _0x34a60f=['documentContextContent','parsedContent','childNodes','parsedMergedContent','removed','value','cloneNode','120TqaWgB','pop','node','children','new','data-id','updateChangeGroups','modified','200710NOxpkt','3422958zlNASp','added','changeGroups','1188AuINJm','map','length','pending','isDone','_getDifferentChangeGroups','2217357DllwkY','9344772DwAhio','2471472NKYjxG','20305107nTTIWI','271kqcYhr'];_0x38f5=function(){return _0x34a60f;};return _0x38f5();}import{getAttribute as _0x1fa119}from'../../aicore/utils/htmlparser.js';import{uid as _0x47c1b1}from'ckeditor5/src/utils.js';import{diffArrays as _0x331d99}from'diff';export class AIActionsReply extends _0x39e061{[_0x47ad58(0x7b)](){const _0x243764=_0x47ad58;if(this[_0x243764(0x71)]=this[_0x243764(0x6f)][_0x243764(0x74)](!0x0),0x0==this[_0x243764(0x71)][_0x243764(0x70)][_0x243764(0x83)])return void(this[_0x243764(0x80)]=[]);const _0x36c9c9=this[_0x243764(0x6e)][_0x243764(0x78)][_0x243764(0x82)](_0xfaedfc=>({'node':_0xfaedfc,'id':_0x1fa119(_0xfaedfc,_0x243764(0x7a))})),_0x1e3029=this[_0x243764(0x71)][_0x243764(0x78)][_0x243764(0x82)](_0x3aa928=>({'node':_0x3aa928,'id':_0x1fa119(_0x3aa928,_0x243764(0x7a))||_0x47c1b1()})),_0xa76d6d=_0x331d99(_0x36c9c9,_0x1e3029,{'comparator':(_0x163db2,_0x120c9f)=>_0x163db2['id']==_0x120c9f['id'],'oneChangePerToken':!0x0});if(!this[_0x243764(0x85)]){for(;_0xa76d6d[_0x243764(0x83)]&&_0xa76d6d[_0xa76d6d[_0x243764(0x83)]-0x1][_0x243764(0x72)];)_0xa76d6d[_0x243764(0x76)]();}const _0x4d6857=_0xa76d6d[_0x243764(0x82)](_0x99fc58=>{const _0x431fd0=_0x243764,_0x588395=_0x99fc58[_0x431fd0(0x7f)]?_0x431fd0(0x79):_0x99fc58[_0x431fd0(0x72)]?_0x431fd0(0x72):_0x431fd0(0x7c);return{'node':_0x99fc58[_0x431fd0(0x73)][0x0][_0x431fd0(0x77)],'type':_0x588395,'id':_0x99fc58[_0x431fd0(0x73)][0x0]['id']};});this[_0x243764(0x80)]=[{'changes':_0x4d6857,'state':_0x243764(0x84),'index':0x0}];}[_0x47ad58(0x86)](_0x289b2b,_0x3a17fc){return _0x3a17fc;}}
23
+ const _0x27a7b8=_0x5a34;(function(_0x4e0546,_0x4a180){const _0x4367cf=_0x5a34,_0xe11b2f=_0x4e0546();while(!![]){try{const _0x22d2c8=parseInt(_0x4367cf(0xb7))/0x1+parseInt(_0x4367cf(0xd0))/0x2*(-parseInt(_0x4367cf(0xc3))/0x3)+parseInt(_0x4367cf(0xb6))/0x4*(-parseInt(_0x4367cf(0xbb))/0x5)+parseInt(_0x4367cf(0xbd))/0x6+parseInt(_0x4367cf(0xcd))/0x7+parseInt(_0x4367cf(0xb9))/0x8*(parseInt(_0x4367cf(0xbe))/0x9)+-parseInt(_0x4367cf(0xc6))/0xa;if(_0x22d2c8===_0x4a180)break;else _0xe11b2f['push'](_0xe11b2f['shift']());}catch(_0x36627c){_0xe11b2f['push'](_0xe11b2f['shift']());}}}(_0x597d,0xc9fa5));import{AIReply as _0x1dcf04}from'../../aicore/model/aireply.js';import{getAttribute as _0x5ebb21}from'../../aicore/utils/htmlparser.js';import{uid as _0x1e0b93}from'ckeditor5/src/utils.js';import{diffArrays as _0x3eed02}from'diff';function _0x5a34(_0xc60f4,_0x436d08){const _0x597d2e=_0x597d();return _0x5a34=function(_0x5a3449,_0x8570f3){_0x5a3449=_0x5a3449-0xb3;let _0x112deb=_0x597d2e[_0x5a3449];return _0x112deb;},_0x5a34(_0xc60f4,_0x436d08);}export class AIActionsReply extends _0x1dcf04{[_0x27a7b8(0xc1)](){const _0x2207fd=_0x27a7b8;if(this[_0x2207fd(0xcc)]=this[_0x2207fd(0xbf)][_0x2207fd(0xc5)](!0x0),0x0==this[_0x2207fd(0xcc)][_0x2207fd(0xca)][_0x2207fd(0xc9)])return void(this[_0x2207fd(0xd1)]=[]);const _0x373eed=this[_0x2207fd(0xc8)][_0x2207fd(0xb4)][_0x2207fd(0xc0)](_0x1f1a1d=>({'node':_0x1f1a1d,'id':_0x5ebb21(_0x1f1a1d,_0x2207fd(0xb3))})),_0x5dc4ff=this[_0x2207fd(0xcc)][_0x2207fd(0xb4)][_0x2207fd(0xc0)](_0x4eb77c=>({'node':_0x4eb77c,'id':_0x5ebb21(_0x4eb77c,_0x2207fd(0xb3))||_0x1e0b93()})),_0x314e58=_0x3eed02(_0x373eed,_0x5dc4ff,{'comparator':(_0x4d05f2,_0x437296)=>_0x4d05f2['id']==_0x437296['id'],'oneChangePerToken':!0x0});if(!this[_0x2207fd(0xc4)]){for(;_0x314e58[_0x2207fd(0xc9)]&&_0x314e58[_0x314e58[_0x2207fd(0xc9)]-0x1][_0x2207fd(0xba)];)_0x314e58[_0x2207fd(0xc7)]();}const _0x3e6129=_0x314e58[_0x2207fd(0xc0)](_0x12a26d=>{const _0x56b595=_0x2207fd,_0x5b7678=_0x12a26d[_0x56b595(0xcf)]?_0x56b595(0xb8):_0x12a26d[_0x56b595(0xba)]?_0x56b595(0xba):_0x56b595(0xce);return{'node':_0x12a26d[_0x56b595(0xcb)][0x0][_0x56b595(0xb5)],'type':_0x5b7678,'id':_0x12a26d[_0x56b595(0xcb)][0x0]['id']};});this[_0x2207fd(0xd1)]=[{'changes':_0x3e6129,'state':_0x2207fd(0xc2),'index':0x0}];}[_0x27a7b8(0xbc)](_0x1c4494,_0x105da8){return _0x105da8;}}function _0x597d(){const _0x37c17f=['_getDifferentChangeGroups','1341684hZkblJ','769536oCmsjx','parsedContent','map','updateChangeGroups','pending','184557hlAdUX','isDone','cloneNode','987090sTwCIR','pop','documentContextContent','length','childNodes','value','parsedMergedContent','5209932qAyjbY','modified','added','20UKaFCG','changeGroups','data-id','children','node','187080yuYwgQ','542612ixdiSq','new','16QWcdVe','removed','15Pamdup'];_0x597d=function(){return _0x37c17f;};return _0x597d();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3ca5(_0x175b5d,_0x21aad5){var _0x30444d=_0x3044();return _0x3ca5=function(_0x3ca5dc,_0x22f967){_0x3ca5dc=_0x3ca5dc-0xbf;var _0xfb8454=_0x30444d[_0x3ca5dc];return _0xfb8454;},_0x3ca5(_0x175b5d,_0x21aad5);}var _0x436aa8=_0x3ca5;function _0x3044(){var _0x495d28=['4234587HvGYOh','83574OlnoqK','AIAdapter','14221600vGouxw','1932280eABNLA','395393WanABg','8oYbiwr','9NmXInb','aiadapter-text-adapter-not-set','name','pluginName','textAdapter','isOfficialPlugin','886419FWIGwQ','afterInit','323780txujdm','145GBlfyE','isPremiumPlugin','AIRequestError'];_0x3044=function(){return _0x495d28;};return _0x3044();}(function(_0x14e0b6,_0x1ddb7d){var _0x1fe0b2=_0x3ca5,_0x1bdd6f=_0x14e0b6();while(!![]){try{var _0x55e4f7=parseInt(_0x1fe0b2(0xc0))/0x1+parseInt(_0x1fe0b2(0xca))/0x2+-parseInt(_0x1fe0b2(0xc2))/0x3*(-parseInt(_0x1fe0b2(0xbf))/0x4)+parseInt(_0x1fe0b2(0xcb))/0x5*(-parseInt(_0x1fe0b2(0xcf))/0x6)+parseInt(_0x1fe0b2(0xce))/0x7+parseInt(_0x1fe0b2(0xc1))/0x8*(parseInt(_0x1fe0b2(0xc8))/0x9)+-parseInt(_0x1fe0b2(0xd1))/0xa;if(_0x55e4f7===_0x1ddb7d)break;else _0x1bdd6f['push'](_0x1bdd6f['shift']());}catch(_0x1d0fa2){_0x1bdd6f['push'](_0x1bdd6f['shift']());}}}(_0x3044,0xd7c70));import{Plugin as _0x568397}from'ckeditor5/src/core.js';import{CKEditorError as _0x39986d}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x568397{static get[_0x436aa8(0xc5)](){var _0x446893=_0x436aa8;return _0x446893(0xd0);}static get[_0x436aa8(0xc7)](){return!0x0;}static get[_0x436aa8(0xcc)](){return!0x0;}[_0x436aa8(0xc9)](){var _0x1bd06d=_0x436aa8;if(!this[_0x1bd06d(0xc6)])throw new _0x39986d(_0x1bd06d(0xc3),null);}}export class AIRequestError extends Error{constructor(_0x24cfe5){var _0x565a90=_0x436aa8;super(_0x24cfe5),this[_0x565a90(0xc4)]=_0x565a90(0xcd);}}
23
+ var _0x236b24=_0xc93e;function _0xc93e(_0x469106,_0x24204c){var _0x424a17=_0x424a();return _0xc93e=function(_0xc93e81,_0x3c0e1e){_0xc93e81=_0xc93e81-0x135;var _0x7ae043=_0x424a17[_0xc93e81];return _0x7ae043;},_0xc93e(_0x469106,_0x24204c);}(function(_0x5aa12c,_0x5b1971){var _0x1cabd7=_0xc93e,_0x4f4be6=_0x5aa12c();while(!![]){try{var _0x2a5ce6=-parseInt(_0x1cabd7(0x142))/0x1+parseInt(_0x1cabd7(0x145))/0x2+parseInt(_0x1cabd7(0x137))/0x3*(-parseInt(_0x1cabd7(0x13a))/0x4)+parseInt(_0x1cabd7(0x147))/0x5*(parseInt(_0x1cabd7(0x139))/0x6)+-parseInt(_0x1cabd7(0x140))/0x7*(parseInt(_0x1cabd7(0x146))/0x8)+parseInt(_0x1cabd7(0x13f))/0x9*(parseInt(_0x1cabd7(0x13c))/0xa)+parseInt(_0x1cabd7(0x144))/0xb;if(_0x2a5ce6===_0x5b1971)break;else _0x4f4be6['push'](_0x4f4be6['shift']());}catch(_0xd1e83c){_0x4f4be6['push'](_0x4f4be6['shift']());}}}(_0x424a,0xd58ee));import{Plugin as _0x1562a3}from'ckeditor5/src/core.js';import{CKEditorError as _0x17b740}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x1562a3{static get[_0x236b24(0x138)](){var _0x48282e=_0x236b24;return _0x48282e(0x13e);}static get[_0x236b24(0x143)](){return!0x0;}static get[_0x236b24(0x141)](){return!0x0;}[_0x236b24(0x148)](){var _0x1aba6e=_0x236b24;if(!this[_0x1aba6e(0x13d)])throw new _0x17b740(_0x1aba6e(0x136),null);}}function _0x424a(){var _0x12eca1=['name','aiadapter-text-adapter-not-set','9WkotLU','pluginName','141546wsYltU','285788YnzzPW','AIRequestError','10CQUCGb','textAdapter','AIAdapter','8094699TwHtlr','805581MmQrqh','isPremiumPlugin','1293621YBCHwp','isOfficialPlugin','24322914CngJhl','79482XTKIKr','96ItTxYb','130fHZhzH','afterInit'];_0x424a=function(){return _0x12eca1;};return _0x424a();}export class AIRequestError extends Error{constructor(_0xb56959){var _0x4bdb85=_0x236b24;super(_0xb56959),this[_0x4bdb85(0x135)]=_0x4bdb85(0x13b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x544946=_0x1f3b;(function(_0x528fa6,_0x39d4f0){const _0x31d33d=_0x1f3b,_0x333097=_0x528fa6();while(!![]){try{const _0x28b8d8=-parseInt(_0x31d33d(0x73))/0x1+-parseInt(_0x31d33d(0x72))/0x2+-parseInt(_0x31d33d(0x86))/0x3*(parseInt(_0x31d33d(0x70))/0x4)+-parseInt(_0x31d33d(0x87))/0x5*(-parseInt(_0x31d33d(0x75))/0x6)+-parseInt(_0x31d33d(0x82))/0x7+-parseInt(_0x31d33d(0x76))/0x8+parseInt(_0x31d33d(0x81))/0x9*(parseInt(_0x31d33d(0x74))/0xa);if(_0x28b8d8===_0x39d4f0)break;else _0x333097['push'](_0x333097['shift']());}catch(_0x2fe41a){_0x333097['push'](_0x333097['shift']());}}}(_0x4727,0x71ddf));import{Plugin as _0x1eb163}from'ckeditor5/src/core.js';import{CKEditorError as _0x34ce8f}from'ckeditor5/src/utils.js';function _0x1f3b(_0x4cb9bd,_0x4aa5b7){const _0x4727c5=_0x4727();return _0x1f3b=function(_0x1f3b54,_0x571bec){_0x1f3b54=_0x1f3b54-0x64;let _0x3bc4ea=_0x4727c5[_0x1f3b54];return _0x3bc4ea;},_0x1f3b(_0x4cb9bd,_0x4aa5b7);}function _0x4727(){const _0x49b0ec=['AI_ERROR_GET_PARAMETERS','signal','catch','AbortError','_prepareRequestHeaders','aborted','object','assign','textAdapter','sendRequest','abortController','application/json','name','4QiFpPg','resolve','1349292kEUIvD','875699pPPHDd','10CsCUtt','2148gaQURV','6112344DowsWn','init','get','aitextadapter-send-request-failed','editor','AI_ERROR_GET_HEADERS','locale','requires','plugins','error','makeRequest','27554436LWVZPd','1743868rdMrmw','reject','abort','_prepareRequestParameters','737331yHCPlf','2990XPEuTV'];_0x4727=function(){return _0x49b0ec;};return _0x4727();}import{AIAdapter as _0x484b66,AIRequestError as _0x458af0}from'./aiadapter.js';import{getTranslation as _0x510480}from'../utils/common-translations.js';export class AITextAdapter extends _0x1eb163{[_0x544946(0x6d)];static get[_0x544946(0x7d)](){return[_0x484b66];}constructor(_0x2e9293){const _0x154aa3=_0x544946;super(_0x2e9293),this[_0x154aa3(0x6d)]=new AbortController();}[_0x544946(0x77)](){const _0x51fb21=_0x544946;this[_0x51fb21(0x7a)][_0x51fb21(0x7e)][_0x51fb21(0x78)](_0x484b66)[_0x51fb21(0x6b)]=this;}[_0x544946(0x84)](){const _0x4d4c6c=_0x544946;this[_0x4d4c6c(0x6d)][_0x4d4c6c(0x64)][_0x4d4c6c(0x68)]||(this[_0x4d4c6c(0x6d)][_0x4d4c6c(0x84)](),this[_0x4d4c6c(0x6d)]=new AbortController());}async[_0x544946(0x80)](_0x3d2af6){const _0x549e28=_0x544946;return this[_0x549e28(0x6c)](_0x3d2af6)[_0x549e28(0x65)](_0x2da538=>{const _0x252be5=_0x549e28;if(_0x2da538 instanceof _0x458af0)return Promise[_0x252be5(0x83)](_0x2da538);if(_0x252be5(0x66)==_0x2da538[_0x252be5(0x6f)])return Promise[_0x252be5(0x71)]();throw console[_0x252be5(0x7f)](_0x2da538),new _0x34ce8f(_0x252be5(0x79),null);});}async[_0x544946(0x67)](_0x27173a,_0x5614ad){const _0x31aebf=_0x544946,_0x44d01a=this[_0x31aebf(0x7a)][_0x31aebf(0x7c)],_0x673058={'Content-Type':_0x31aebf(0x6e)};if(_0x31aebf(0x69)==typeof _0x27173a)Object[_0x31aebf(0x6a)](_0x673058,_0x27173a);else{if(_0x27173a)try{const _0x398a7=await _0x27173a(_0x5614ad);Object[_0x31aebf(0x6a)](_0x673058,_0x398a7);}catch{return Promise[_0x31aebf(0x83)](new _0x458af0(_0x510480(_0x44d01a,_0x31aebf(0x7b))));}}return _0x673058;}async[_0x544946(0x85)](_0x1e5020,_0x553e5e){const _0x105663=_0x544946,_0xa46c0d=this[_0x105663(0x7a)][_0x105663(0x7c)];if(_0x105663(0x69)==typeof _0x1e5020)return _0x1e5020;try{return await _0x1e5020(_0x553e5e);}catch{return Promise[_0x105663(0x83)](new _0x458af0(_0x510480(_0xa46c0d,_0x105663(0x88))));}}}
23
+ const _0x789e1f=_0xac87;(function(_0x164cb8,_0x12661b){const _0x2f8154=_0xac87,_0x3e97b3=_0x164cb8();while(!![]){try{const _0x4d21b3=parseInt(_0x2f8154(0xa4))/0x1+parseInt(_0x2f8154(0x9a))/0x2*(-parseInt(_0x2f8154(0xb5))/0x3)+parseInt(_0x2f8154(0x98))/0x4+parseInt(_0x2f8154(0xa1))/0x5*(-parseInt(_0x2f8154(0xa7))/0x6)+parseInt(_0x2f8154(0xab))/0x7*(-parseInt(_0x2f8154(0xb9))/0x8)+parseInt(_0x2f8154(0x99))/0x9*(parseInt(_0x2f8154(0xa3))/0xa)+-parseInt(_0x2f8154(0xaf))/0xb*(-parseInt(_0x2f8154(0xb0))/0xc);if(_0x4d21b3===_0x12661b)break;else _0x3e97b3['push'](_0x3e97b3['shift']());}catch(_0x4f6dfd){_0x3e97b3['push'](_0x3e97b3['shift']());}}}(_0x1318,0x65cb3));function _0xac87(_0x50c0f7,_0x46fcbc){const _0x1318d8=_0x1318();return _0xac87=function(_0xac8765,_0x2038d1){_0xac8765=_0xac8765-0x95;let _0x1c19a2=_0x1318d8[_0xac8765];return _0x1c19a2;},_0xac87(_0x50c0f7,_0x46fcbc);}import{Plugin as _0x591707}from'ckeditor5/src/core.js';import{CKEditorError as _0x11178d}from'ckeditor5/src/utils.js';import{AIAdapter as _0x3b5e1f,AIRequestError as _0x479999}from'./aiadapter.js';import{getTranslation as _0x461e8a}from'../utils/common-translations.js';function _0x1318(){const _0x1f8ab6=['192968seeTxu','name','locale','signal','error','catch','385044fPlxKH','18yTyeJy','20bGUwJm','textAdapter','assign','sendRequest','abortController','get','makeRequest','5JqMcHu','application/json','177880toFLvt','233666ZHZWeI','abort','_prepareRequestHeaders','3025734GYwvTA','plugins','object','AbortError','182RyHMVt','init','AI_ERROR_GET_PARAMETERS','_prepareRequestParameters','18425209HGizjW','12PXWulU','reject','resolve','aitextadapter-send-request-failed','AI_ERROR_GET_HEADERS','147642XmjEpQ','editor','requires','aborted'];_0x1318=function(){return _0x1f8ab6;};return _0x1318();}export class AITextAdapter extends _0x591707{[_0x789e1f(0x9e)];static get[_0x789e1f(0xb7)](){return[_0x3b5e1f];}constructor(_0x5518dc){const _0x5ddc77=_0x789e1f;super(_0x5518dc),this[_0x5ddc77(0x9e)]=new AbortController();}[_0x789e1f(0xac)](){const _0x295c24=_0x789e1f;this[_0x295c24(0xb6)][_0x295c24(0xa8)][_0x295c24(0x9f)](_0x3b5e1f)[_0x295c24(0x9b)]=this;}[_0x789e1f(0xa5)](){const _0x146733=_0x789e1f;this[_0x146733(0x9e)][_0x146733(0x95)][_0x146733(0xb8)]||(this[_0x146733(0x9e)][_0x146733(0xa5)](),this[_0x146733(0x9e)]=new AbortController());}async[_0x789e1f(0xa0)](_0x50116d){const _0x520155=_0x789e1f;return this[_0x520155(0x9d)](_0x50116d)[_0x520155(0x97)](_0x336de0=>{const _0x279004=_0x520155;if(_0x336de0 instanceof _0x479999)return Promise[_0x279004(0xb1)](_0x336de0);if(_0x279004(0xaa)==_0x336de0[_0x279004(0xba)])return Promise[_0x279004(0xb2)]();throw console[_0x279004(0x96)](_0x336de0),new _0x11178d(_0x279004(0xb3),null);});}async[_0x789e1f(0xa6)](_0x59cb6f,_0x29be94){const _0x158d7f=_0x789e1f,_0x13f7ba=this[_0x158d7f(0xb6)][_0x158d7f(0xbb)],_0x4eb1cf={'Content-Type':_0x158d7f(0xa2)};if(_0x158d7f(0xa9)==typeof _0x59cb6f)Object[_0x158d7f(0x9c)](_0x4eb1cf,_0x59cb6f);else{if(_0x59cb6f)try{const _0x81021b=await _0x59cb6f(_0x29be94);Object[_0x158d7f(0x9c)](_0x4eb1cf,_0x81021b);}catch{return Promise[_0x158d7f(0xb1)](new _0x479999(_0x461e8a(_0x13f7ba,_0x158d7f(0xb4))));}}return _0x4eb1cf;}async[_0x789e1f(0xae)](_0x521abc,_0x1a080c){const _0x289e7b=_0x789e1f,_0x4ab2c0=this[_0x289e7b(0xb6)][_0x289e7b(0xbb)];if(_0x289e7b(0xa9)==typeof _0x521abc)return _0x521abc;try{return await _0x521abc(_0x1a080c);}catch{return Promise[_0x289e7b(0xb1)](new _0x479999(_0x461e8a(_0x4ab2c0,_0x289e7b(0xad))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x207204=_0x2fc8;(function(_0x5bc3b8,_0x2cc1a8){const _0x51f40c=_0x2fc8,_0x285921=_0x5bc3b8();while(!![]){try{const _0x41319c=parseInt(_0x51f40c(0xec))/0x1+parseInt(_0x51f40c(0xca))/0x2*(parseInt(_0x51f40c(0xf8))/0x3)+-parseInt(_0x51f40c(0xe6))/0x4+-parseInt(_0x51f40c(0xc3))/0x5+-parseInt(_0x51f40c(0x102))/0x6*(-parseInt(_0x51f40c(0xe4))/0x7)+-parseInt(_0x51f40c(0xc8))/0x8+-parseInt(_0x51f40c(0xc5))/0x9;if(_0x41319c===_0x2cc1a8)break;else _0x285921['push'](_0x285921['shift']());}catch(_0x83a744){_0x285921['push'](_0x285921['shift']());}}}(_0xf99d,0x46f8f));import{AITextAdapter as _0x15c6bc}from'./aitextadapter.js';function _0x2fc8(_0x4ea744,_0x2bea02){const _0xf99dc2=_0xf99d();return _0x2fc8=function(_0x2fc8c6,_0x320bed){_0x2fc8c6=_0x2fc8c6-0xb4;let _0x21e840=_0xf99dc2[_0x2fc8c6];return _0x21e840;},_0x2fc8(_0x4ea744,_0x2bea02);}import{AIRequestError as _0x13723f}from'./aiadapter.js';function _0xf99d(){const _0x5e5cff=['AI_ERROR_UNSUPPORTED_MODEL','_prepareRequestHeaders','generations','meta.llama','\x0a\x0aAssistant:','bytes','anthropic.claude-v2','get','parse','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.','data','sendRequest','send','_bedrockClientConfig','signal','Human:\x0a','length','split','2691059wuJJJu','decode','266628AlIczq','chunk','\x0a[/INST]','<<SYS>>\x0a','editor','text','269077aHgdxf','map','POST','_processAWSRequest','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.','ai.assistant.adapter.aws.requestHeaders','json','config','ai21.j2','filter','_readStreamableResponse','ai.assistant.adapter.aws.apiUrl','87oErhLr','ai.assistant.adapter.aws.bedrockClientConfig','Instruction:\x0a','_readStaticResponse','getModelFamily','_prepareRequestParameters','\x0a<</SYS>>\x0a[INST]\x0a','test','resolve','_getGeneratedText','6RsQwEg','_apiUrl','define','body','pluginName','application/json','_requestParameters','generation','getReader','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','join','preparePrompt','_processProxyRequest','cohere.command','utf-8','bedrock-2023-05-31','874145evmVtK','completion','3640689AYsrgM','locale','ai.assistant.adapter.aws.requestParameters','1103304WUHjHr','read','29042ugncIT','AWSTextAdapter','stringify','abortController','completions','_requestHeaders','anthropic.claude','_readAsyncIterableResponse'];_0xf99d=function(){return _0x5e5cff;};return _0xf99d();}import{BedrockRuntimeClient as _0x5a3d3f,InvokeModelCommand as _0x5e5e98,InvokeModelWithResponseStreamCommand as _0x2983d7}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x2abcc3}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x15c6bc{[_0x207204(0xb4)];[_0x207204(0xcf)];[_0x207204(0xdf)];[_0x207204(0xb9)];static get[_0x207204(0xb7)](){const _0x20d2cb=_0x207204;return _0x20d2cb(0xcb);}constructor(_0xf78d48){const _0x5ee027=_0x207204;super(_0xf78d48),_0xf78d48[_0x5ee027(0xf3)][_0x5ee027(0xd9)](_0x5ee027(0xc7))||_0xf78d48[_0x5ee027(0xf3)][_0x5ee027(0xb5)](_0x5ee027(0xc7),{'model':_0x5ee027(0xd8),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x5ee027(0xc2),'stream':!0x0}),this[_0x5ee027(0xb4)]=_0xf78d48[_0x5ee027(0xf3)][_0x5ee027(0xd9)](_0x5ee027(0xf7)),this[_0x5ee027(0xdf)]=_0xf78d48[_0x5ee027(0xf3)][_0x5ee027(0xd9)](_0x5ee027(0xf9)),this[_0x5ee027(0xcf)]=_0xf78d48[_0x5ee027(0xf3)][_0x5ee027(0xd9)](_0x5ee027(0xf1)),this[_0x5ee027(0xb9)]=_0xf78d48[_0x5ee027(0xf3)][_0x5ee027(0xd9)](_0x5ee027(0xc7));}async[_0x207204(0xdd)]({query:_0x17adec,context:_0x4e8539,onData:_0x36eb02,actionId:_0x442428}){const _0xd451be=_0x207204,{model:_0x3df452,stream:_0x415ea2,..._0x3d1e06}=await this[_0xd451be(0xfd)](this[_0xd451be(0xb9)],_0x442428),_0x591434={'prompt':await this[_0xd451be(0xbe)](_0x17adec,_0x4e8539,_0x3df452,_0x442428),..._0x3d1e06};this[_0xd451be(0xb4)]?await this[_0xd451be(0xbf)](_0x591434,_0x3df452,_0x415ea2,_0x36eb02,_0x442428):await this[_0xd451be(0xef)](_0x591434,_0x3df452,_0x415ea2,_0x36eb02);}async[_0x207204(0xbe)](_0x4ec4f0,_0x3031c5,_0x2aca75,_0x25df57){const _0x384ea1=_0x207204;let _0x4b3da5,_0x56bf73;return _0x3031c5?(_0x4b3da5=_0x384ea1(0xdb),_0x56bf73=_0x384ea1(0xfa)+_0x4ec4f0+_0x384ea1(0xbc)+_0x3031c5):(_0x4b3da5=_0x384ea1(0xf0),_0x56bf73=_0x4ec4f0),_0x384ea1(0xd5)==this[_0x384ea1(0xfc)](_0x2aca75)?_0x384ea1(0xe9)+_0x4b3da5+_0x384ea1(0xfe)+_0x56bf73+_0x384ea1(0xe8):_0x384ea1(0xe1)+_0x4b3da5+'\x0a'+_0x56bf73+_0x384ea1(0xd6);}[_0x207204(0xfc)](_0xa7ab22){const _0x588877=_0x207204;if(/^anthropic\.claude/[_0x588877(0xff)](_0xa7ab22))return _0x588877(0xd0);if(/^ai21\.j2/[_0x588877(0xff)](_0xa7ab22))return _0x588877(0xf4);if(/^cohere\.command/[_0x588877(0xff)](_0xa7ab22))return _0x588877(0xc0);if(/^meta\.llama/[_0x588877(0xff)](_0xa7ab22))return _0x588877(0xd5);throw new _0x13723f(_0x2abcc3(this[_0x588877(0xea)][_0x588877(0xc6)],_0x588877(0xd2),_0xa7ab22));}async[_0x207204(0xbf)](_0x33a4ea,_0x160f79,_0x350def,_0x32f666,_0xa9f44c){const _0x32c5c8=_0x207204,_0x533743={'method':_0x32c5c8(0xee),'headers':await this[_0x32c5c8(0xd3)](this[_0x32c5c8(0xcf)],_0xa9f44c),'body':JSON[_0x32c5c8(0xcc)]({..._0x33a4ea,'model':_0x160f79,'stream':_0x350def}),'signal':this[_0x32c5c8(0xcd)][_0x32c5c8(0xe0)]},_0x3db730=await fetch(this[_0x32c5c8(0xb4)],_0x533743);_0x350def?await this[_0x32c5c8(0xf6)](_0x3db730,_0x160f79,_0x32f666):await this[_0x32c5c8(0xfb)](_0x3db730,_0x160f79,_0x32f666);}async[_0x207204(0xef)](_0x5032e1,_0x4357d8,_0x4c4dee,_0x547e1b){const _0x56289b=_0x207204,_0x4d67e7=new _0x5a3d3f(this[_0x56289b(0xdf)]),_0x544180={'body':JSON[_0x56289b(0xcc)](_0x5032e1),'contentType':_0x56289b(0xb8),'accept':_0x56289b(0xb8),'modelId':_0x4357d8};let _0x2cb98d;if(_0x4c4dee){const _0x4d2e1b=new _0x2983d7(_0x544180);_0x2cb98d=await _0x4d67e7[_0x56289b(0xde)](_0x4d2e1b,{'abortSignal':this[_0x56289b(0xcd)][_0x56289b(0xe0)]}),await this[_0x56289b(0xd1)](_0x2cb98d,_0x4357d8,_0x547e1b);}else{const _0x12aa78=new _0x5e5e98(_0x544180);_0x2cb98d=await _0x4d67e7[_0x56289b(0xde)](_0x12aa78,{'abortSignal':this[_0x56289b(0xcd)][_0x56289b(0xe0)]}),await this[_0x56289b(0xfb)](_0x2cb98d,_0x4357d8,_0x547e1b);}}async[_0x207204(0xd1)](_0x23c20f,_0x3c9b48,_0x32bb5f){const _0x491314=_0x207204,_0x101f25=_0x23c20f[_0x491314(0xb6)],_0x177c0e=new TextDecoder(_0x491314(0xc1));let _0x3d242a='';for await(const _0x3d2010 of _0x101f25)if(_0x3d2010[_0x491314(0xe7)]){const _0x2286ab=_0x177c0e[_0x491314(0xe5)](_0x3d2010[_0x491314(0xe7)][_0x491314(0xd7)]),_0x1a4149=JSON[_0x491314(0xda)](_0x2286ab);_0x3d242a+=this[_0x491314(0x101)](_0x1a4149,_0x3c9b48),_0x32bb5f(_0x3d242a);}return Promise[_0x491314(0x100)]();}async[_0x207204(0xf6)](_0xd50ea1,_0x162032,_0x2eef32){const _0x258d6d=_0x207204,_0x641450=_0xd50ea1[_0x258d6d(0xb6)],_0x4cc0a4=new TextDecoder(_0x258d6d(0xc1)),_0x7f4f44=_0x641450[_0x258d6d(0xbb)]();let _0x42c2ef='',_0x3afc88='',_0x265f2a=!0x1;for(;!_0x265f2a;){const {done:_0x333b7d,value:_0xe23159}=await _0x7f4f44[_0x258d6d(0xc9)]();if(_0x265f2a=_0x333b7d,_0x265f2a)break;const _0x44c66b=(_0x42c2ef+_0x4cc0a4[_0x258d6d(0xe5)](_0xe23159))[_0x258d6d(0xe3)]('\x0a')[_0x258d6d(0xed)](_0x30021e=>{const _0xd4e1c8=_0x258d6d;try{return _0x42c2ef='',JSON[_0xd4e1c8(0xda)](_0x30021e);}catch{return _0x42c2ef=_0x30021e,null;}})[_0x258d6d(0xf5)](_0x465d39=>null!==_0x465d39);_0x44c66b[_0x258d6d(0xe2)]&&(_0x3afc88+=_0x44c66b[_0x258d6d(0xed)](_0x469fd6=>this[_0x258d6d(0x101)](_0x469fd6,_0x162032))[_0x258d6d(0xbd)](''),_0x2eef32(_0x3afc88));}return Promise[_0x258d6d(0x100)]();}async[_0x207204(0xfb)](_0x2673e3,_0x3f66eb,_0x5471b3){const _0x48bfef=_0x207204;let _0x3740ba;return _0x3740ba=_0x2673e3 instanceof Response?await _0x2673e3[_0x48bfef(0xf2)]():JSON[_0x48bfef(0xda)](new TextDecoder(_0x48bfef(0xc1))[_0x48bfef(0xe5)](_0x2673e3[_0x48bfef(0xb6)])),(_0x5471b3(this[_0x48bfef(0x101)](_0x3740ba,_0x3f66eb)),Promise[_0x48bfef(0x100)]());}[_0x207204(0x101)](_0x1de875,_0x29d696){const _0x1e07b2=_0x207204;switch(this[_0x1e07b2(0xfc)](_0x29d696)){case _0x1e07b2(0xd0):return _0x1de875[_0x1e07b2(0xc4)];case _0x1e07b2(0xf4):return _0x1de875[_0x1e07b2(0xce)][0x0][_0x1e07b2(0xdc)][_0x1e07b2(0xeb)];case _0x1e07b2(0xc0):return _0x1de875[_0x1e07b2(0xd4)][0x0][_0x1e07b2(0xeb)];case _0x1e07b2(0xd5):return _0x1de875[_0x1e07b2(0xba)];}}}
23
+ const _0x4e5dde=_0x1683;(function(_0x4e573a,_0x8574c){const _0x4d281f=_0x1683,_0x1aa495=_0x4e573a();while(!![]){try{const _0x6f1f81=-parseInt(_0x4d281f(0xcf))/0x1*(-parseInt(_0x4d281f(0xab))/0x2)+-parseInt(_0x4d281f(0xa3))/0x3+-parseInt(_0x4d281f(0xaa))/0x4+-parseInt(_0x4d281f(0xa1))/0x5+-parseInt(_0x4d281f(0xd4))/0x6*(parseInt(_0x4d281f(0x9d))/0x7)+-parseInt(_0x4d281f(0xc2))/0x8*(parseInt(_0x4d281f(0xdb))/0x9)+parseInt(_0x4d281f(0xa4))/0xa*(parseInt(_0x4d281f(0xd1))/0xb);if(_0x6f1f81===_0x8574c)break;else _0x1aa495['push'](_0x1aa495['shift']());}catch(_0x2fb2ad){_0x1aa495['push'](_0x1aa495['shift']());}}}(_0x17cf,0x4de8e));import{AITextAdapter as _0x4e1312}from'./aitextadapter.js';import{AIRequestError as _0x2194d7}from'./aiadapter.js';function _0x1683(_0x5b0c29,_0x1683d6){const _0x17cfc5=_0x17cf();return _0x1683=function(_0x168381,_0xdd3d26){_0x168381=_0x168381-0x9a;let _0x4e85ba=_0x17cfc5[_0x168381];return _0x4e85ba;},_0x1683(_0x5b0c29,_0x1683d6);}import{BedrockRuntimeClient as _0x2d48b7,InvokeModelCommand as _0x2cb0c0,InvokeModelWithResponseStreamCommand as _0x3bda19}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x19ee8b}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x4e1312{[_0x4e5dde(0xd6)];[_0x4e5dde(0xe9)];[_0x4e5dde(0x9b)];[_0x4e5dde(0xad)];static get[_0x4e5dde(0xa5)](){const _0x46d214=_0x4e5dde;return _0x46d214(0xea);}constructor(_0x3a17ba){const _0x4976a8=_0x4e5dde;super(_0x3a17ba),_0x3a17ba[_0x4976a8(0xa7)][_0x4976a8(0xba)](_0x4976a8(0xbb))||_0x3a17ba[_0x4976a8(0xa7)][_0x4976a8(0xe6)](_0x4976a8(0xbb),{'model':_0x4976a8(0xb7),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x4976a8(0xb0),'stream':!0x0}),this[_0x4976a8(0xd6)]=_0x3a17ba[_0x4976a8(0xa7)][_0x4976a8(0xba)](_0x4976a8(0xb9)),this[_0x4976a8(0x9b)]=_0x3a17ba[_0x4976a8(0xa7)][_0x4976a8(0xba)](_0x4976a8(0xc6)),this[_0x4976a8(0xe9)]=_0x3a17ba[_0x4976a8(0xa7)][_0x4976a8(0xba)](_0x4976a8(0xcb)),this[_0x4976a8(0xad)]=_0x3a17ba[_0x4976a8(0xa7)][_0x4976a8(0xba)](_0x4976a8(0xbb));}async[_0x4e5dde(0xb6)]({query:_0x18db87,context:_0x3c2e51,onData:_0x5db3fb,actionId:_0x481b4b}){const _0xb42102=_0x4e5dde,{model:_0x45f46f,stream:_0x247536,..._0x475605}=await this[_0xb42102(0xe4)](this[_0xb42102(0xad)],_0x481b4b),_0xc10a2a={'prompt':await this[_0xb42102(0xae)](_0x18db87,_0x3c2e51,_0x45f46f,_0x481b4b),..._0x475605};this[_0xb42102(0xd6)]?await this[_0xb42102(0xcc)](_0xc10a2a,_0x45f46f,_0x247536,_0x5db3fb,_0x481b4b):await this[_0xb42102(0xa8)](_0xc10a2a,_0x45f46f,_0x247536,_0x5db3fb);}async[_0x4e5dde(0xae)](_0x2df570,_0x5bf43c,_0x4f7bc1,_0x32c84e){const _0x4f6ce3=_0x4e5dde;let _0x29c85b,_0x36a1cd;return _0x5bf43c?(_0x29c85b=_0x4f6ce3(0xb3),_0x36a1cd=_0x4f6ce3(0xb8)+_0x2df570+_0x4f6ce3(0xca)+_0x5bf43c):(_0x29c85b=_0x4f6ce3(0xb4),_0x36a1cd=_0x2df570),_0x4f6ce3(0xc7)==this[_0x4f6ce3(0xdd)](_0x4f7bc1)?_0x4f6ce3(0xbe)+_0x29c85b+_0x4f6ce3(0xcd)+_0x36a1cd+_0x4f6ce3(0xdc):_0x4f6ce3(0xc5)+_0x29c85b+'\x0a'+_0x36a1cd+_0x4f6ce3(0xc1);}[_0x4e5dde(0xdd)](_0x350076){const _0x286fa9=_0x4e5dde;if(/^anthropic\.claude/[_0x286fa9(0x9c)](_0x350076))return _0x286fa9(0xb1);if(/^ai21\.j2/[_0x286fa9(0x9c)](_0x350076))return _0x286fa9(0xb2);if(/^cohere\.command/[_0x286fa9(0x9c)](_0x350076))return _0x286fa9(0x9e);if(/^meta\.llama/[_0x286fa9(0x9c)](_0x350076))return _0x286fa9(0xc7);throw new _0x2194d7(_0x19ee8b(this[_0x286fa9(0xa0)][_0x286fa9(0xce)],_0x286fa9(0xb5),_0x350076));}async[_0x4e5dde(0xcc)](_0x45344a,_0xff914,_0x5cdc5e,_0x48db8a,_0x3514af){const _0x46e231=_0x4e5dde,_0x4493da={'method':_0x46e231(0xdf),'headers':await this[_0x46e231(0xd2)](this[_0x46e231(0xe9)],_0x3514af),'body':JSON[_0x46e231(0xd0)]({..._0x45344a,'model':_0xff914,'stream':_0x5cdc5e}),'signal':this[_0x46e231(0xe1)][_0x46e231(0xe3)]},_0x263812=await fetch(this[_0x46e231(0xd6)],_0x4493da);_0x5cdc5e?await this[_0x46e231(0xbd)](_0x263812,_0xff914,_0x48db8a):await this[_0x46e231(0xbf)](_0x263812,_0xff914,_0x48db8a);}async[_0x4e5dde(0xa8)](_0x1d4bd8,_0x440bcd,_0x3077c3,_0x366c75){const _0x191050=_0x4e5dde,_0xe3f83a=new _0x2d48b7(this[_0x191050(0x9b)]),_0x5e1839={'body':JSON[_0x191050(0xd0)](_0x1d4bd8),'contentType':_0x191050(0xe5),'accept':_0x191050(0xe5),'modelId':_0x440bcd};let _0x47e6e7;if(_0x3077c3){const _0x4f3369=new _0x3bda19(_0x5e1839);_0x47e6e7=await _0xe3f83a[_0x191050(0x9a)](_0x4f3369,{'abortSignal':this[_0x191050(0xe1)][_0x191050(0xe3)]}),await this[_0x191050(0xe2)](_0x47e6e7,_0x440bcd,_0x366c75);}else{const _0x4b77e7=new _0x2cb0c0(_0x5e1839);_0x47e6e7=await _0xe3f83a[_0x191050(0x9a)](_0x4b77e7,{'abortSignal':this[_0x191050(0xe1)][_0x191050(0xe3)]}),await this[_0x191050(0xbf)](_0x47e6e7,_0x440bcd,_0x366c75);}}async[_0x4e5dde(0xe2)](_0x2656e3,_0x4c656d,_0x5db7c1){const _0xfeed69=_0x4e5dde,_0x2dda97=_0x2656e3[_0xfeed69(0xe8)],_0x1fce87=new TextDecoder(_0xfeed69(0xc3));let _0x33a17d='';for await(const _0x799185 of _0x2dda97)if(_0x799185[_0xfeed69(0xc0)]){const _0x5b6c9f=_0x1fce87[_0xfeed69(0xaf)](_0x799185[_0xfeed69(0xc0)][_0xfeed69(0xda)]),_0x2e021e=JSON[_0xfeed69(0xa2)](_0x5b6c9f);_0x33a17d+=this[_0xfeed69(0xbc)](_0x2e021e,_0x4c656d),_0x5db7c1(_0x33a17d);}return Promise[_0xfeed69(0xc8)]();}async[_0x4e5dde(0xbd)](_0x50b12d,_0x14a8fc,_0x32a267){const _0xa79d85=_0x4e5dde,_0x4c1e02=_0x50b12d[_0xa79d85(0xe8)],_0x43ab7b=new TextDecoder(_0xa79d85(0xc3)),_0x3613e2=_0x4c1e02[_0xa79d85(0xe0)]();let _0x4fc4f1='',_0x25f132='',_0x11aacf=!0x1;for(;!_0x11aacf;){const {done:_0x551e7f,value:_0x1a6834}=await _0x3613e2[_0xa79d85(0xd5)]();if(_0x11aacf=_0x551e7f,_0x11aacf)break;const _0x2528c2=(_0x4fc4f1+_0x43ab7b[_0xa79d85(0xaf)](_0x1a6834))[_0xa79d85(0xd7)]('\x0a')[_0xa79d85(0xc4)](_0x23b129=>{const _0x32910c=_0xa79d85;try{return _0x4fc4f1='',JSON[_0x32910c(0xa2)](_0x23b129);}catch{return _0x4fc4f1=_0x23b129,null;}})[_0xa79d85(0xd9)](_0x28a7db=>null!==_0x28a7db);_0x2528c2[_0xa79d85(0xd8)]&&(_0x25f132+=_0x2528c2[_0xa79d85(0xc4)](_0x43b99f=>this[_0xa79d85(0xbc)](_0x43b99f,_0x14a8fc))[_0xa79d85(0x9f)](''),_0x32a267(_0x25f132));}return Promise[_0xa79d85(0xc8)]();}async[_0x4e5dde(0xbf)](_0x5749de,_0x5e0855,_0x217228){const _0x45887d=_0x4e5dde;let _0x3a0fd2;return _0x3a0fd2=_0x5749de instanceof Response?await _0x5749de[_0x45887d(0xa9)]():JSON[_0x45887d(0xa2)](new TextDecoder(_0x45887d(0xc3))[_0x45887d(0xaf)](_0x5749de[_0x45887d(0xe8)])),(_0x217228(this[_0x45887d(0xbc)](_0x3a0fd2,_0x5e0855)),Promise[_0x45887d(0xc8)]());}[_0x4e5dde(0xbc)](_0x16a389,_0x569ec3){const _0x403a6c=_0x4e5dde;switch(this[_0x403a6c(0xdd)](_0x569ec3)){case _0x403a6c(0xb1):return _0x16a389[_0x403a6c(0xac)];case _0x403a6c(0xb2):return _0x16a389[_0x403a6c(0xd3)][0x0][_0x403a6c(0xe7)][_0x403a6c(0xa6)];case _0x403a6c(0x9e):return _0x16a389[_0x403a6c(0xde)][0x0][_0x403a6c(0xa6)];case _0x403a6c(0xc7):return _0x16a389[_0x403a6c(0xc9)];}}}function _0x17cf(){const _0x2861d3=['getReader','abortController','_readAsyncIterableResponse','signal','_prepareRequestParameters','application/json','define','data','body','_requestHeaders','AWSTextAdapter','send','_bedrockClientConfig','test','14iwdVtV','cohere.command','join','editor','3147750jUVHhI','parse','1171944uujqbx','30yjIIuD','pluginName','text','config','_processAWSRequest','json','2142224bBAxKJ','406UnvMWw','completion','_requestParameters','preparePrompt','decode','bedrock-2023-05-31','anthropic.claude','ai21.j2','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.','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.','AI_ERROR_UNSUPPORTED_MODEL','sendRequest','anthropic.claude-v2','Instruction:\x0a','ai.assistant.adapter.aws.apiUrl','get','ai.assistant.adapter.aws.requestParameters','_getGeneratedText','_readStreamableResponse','<<SYS>>\x0a','_readStaticResponse','chunk','\x0a\x0aAssistant:','5464WVriHE','utf-8','map','Human:\x0a','ai.assistant.adapter.aws.bedrockClientConfig','meta.llama','resolve','generation','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.assistant.adapter.aws.requestHeaders','_processProxyRequest','\x0a<</SYS>>\x0a[INST]\x0a','locale','889zGjlIO','stringify','9970818nJpUjQ','_prepareRequestHeaders','completions','1548222rZDtRB','read','_apiUrl','split','length','filter','bytes','6705eAvDjP','\x0a[/INST]','getModelFamily','generations','POST'];_0x17cf=function(){return _0x2861d3;};return _0x17cf();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x10d8(_0x1bbe98,_0x2dc50f){const _0x16f8f1=_0x16f8();return _0x10d8=function(_0x10d80,_0xe0b045){_0x10d80=_0x10d80-0x1ad;let _0x5c5675=_0x16f8f1[_0x10d80];return _0x5c5675;},_0x10d8(_0x1bbe98,_0x2dc50f);}const _0x32dd30=_0x10d8;function _0x16f8(){const _0x29f0ec=['652nNlyfY','context_length_exceeded','content','Instruction:\x0a','editor','get','_cleanUpData','_prepareRequestHeaders','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.','sendRequest','ai.assistant.adapter.openAI.requestHeaders','_readStaticResponse','join','split','Moderation','delta','AI_ERROR_CONTEXT_LENGTH','getReader','33pxZenh','locale','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','message','60024yoJvbf','_readStreamableResponse','gpt-4o','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.','POST','_isBufferIncomplete','resolve','body','choices','system','1738410wVzJDs','decode','_apiUrl','35YBwEbR','https://api.openai.com/v1/chat/completions','user','config','text','562290woAnNt','806LxMHsw','map','prepareMessages','1227990eTKVzQ','parse','ai.assistant.adapter.openAI.requestParameters','ai.assistant.adapter.openAI.apiUrl','includes','32BjWmdq','AI_ERROR_MODERATION','_requestParameters','_requestHeaders','3860SOmXfK','filter','read','json','OpenAITextAdapter','pluginName','data:\x20','_prepareRequestParameters','define','abortController','reject','stream','397646UTQKBz','[DONE]','signal','stringify','879471bIfNyV','length','replace','2vPWGeB'];_0x16f8=function(){return _0x29f0ec;};return _0x16f8();}(function(_0x23b98c,_0x2d16e9){const _0x1fd686=_0x10d8,_0x35f882=_0x23b98c();while(!![]){try{const _0x2cea01=-parseInt(_0x1fd686(0x1f2))/0x1*(parseInt(_0x1fd686(0x1eb))/0x2)+parseInt(_0x1fd686(0x1d6))/0x3+parseInt(_0x1fd686(0x1f3))/0x4*(parseInt(_0x1fd686(0x1df))/0x5)+parseInt(_0x1fd686(0x1d2))/0x6*(-parseInt(_0x1fd686(0x1cd))/0x7)+-parseInt(_0x1fd686(0x1db))/0x8*(-parseInt(_0x1fd686(0x1ef))/0x9)+-parseInt(_0x1fd686(0x1ca))/0xa*(-parseInt(_0x1fd686(0x1bc))/0xb)+-parseInt(_0x1fd686(0x1c0))/0xc*(parseInt(_0x1fd686(0x1d3))/0xd);if(_0x2cea01===_0x2d16e9)break;else _0x35f882['push'](_0x35f882['shift']());}catch(_0x33f4c3){_0x35f882['push'](_0x35f882['shift']());}}}(_0x16f8,0x42374));import{AITextAdapter as _0x15682f}from'./aitextadapter.js';import{AIRequestError as _0x44fa11}from'./aiadapter.js';import{getTranslation as _0x253cd3}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x15682f{[_0x32dd30(0x1cc)];[_0x32dd30(0x1de)];[_0x32dd30(0x1dd)];static get[_0x32dd30(0x1e4)](){const _0x3415b1=_0x32dd30;return _0x3415b1(0x1e3);}constructor(_0x45af72){const _0x372f67=_0x32dd30;super(_0x45af72),_0x45af72[_0x372f67(0x1d0)][_0x372f67(0x1e7)](_0x372f67(0x1d9),_0x372f67(0x1ce)),_0x45af72[_0x372f67(0x1d0)][_0x372f67(0x1af)](_0x372f67(0x1d8))||_0x45af72[_0x372f67(0x1d0)][_0x372f67(0x1e7)](_0x372f67(0x1d8),{'model':_0x372f67(0x1c2),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x372f67(0x1cc)]=_0x45af72[_0x372f67(0x1d0)][_0x372f67(0x1af)](_0x372f67(0x1d9)),this[_0x372f67(0x1de)]=_0x45af72[_0x372f67(0x1d0)][_0x372f67(0x1af)](_0x372f67(0x1b4))||{},this[_0x372f67(0x1dd)]=_0x45af72[_0x372f67(0x1d0)][_0x372f67(0x1af)](_0x372f67(0x1d8));}async[_0x32dd30(0x1b3)]({query:_0x57b1c3,context:_0x19eebe,onData:_0x2bbe38,actionId:_0x192429}){const _0x269ad6=_0x32dd30,_0x44eb4d=this[_0x269ad6(0x1ae)][_0x269ad6(0x1bd)],_0x487895=await this[_0x269ad6(0x1d5)](_0x57b1c3,_0x19eebe,_0x192429),_0x30f780=await this[_0x269ad6(0x1b1)](this[_0x269ad6(0x1de)],_0x192429),_0x4043a6=await this[_0x269ad6(0x1e6)](this[_0x269ad6(0x1dd)],_0x192429),_0x3ea49e={'messages':_0x487895,..._0x4043a6},_0x4a37bf={'method':_0x269ad6(0x1c4),'headers':_0x30f780,'body':JSON[_0x269ad6(0x1ee)](_0x3ea49e),'signal':this[_0x269ad6(0x1e8)][_0x269ad6(0x1ed)]},_0x51dd09=await fetch(this[_0x269ad6(0x1cc)],_0x4a37bf);if(_0x51dd09['ok'])return _0x4043a6[_0x269ad6(0x1ea)]?await this[_0x269ad6(0x1c1)](_0x51dd09,_0x2bbe38):await this[_0x269ad6(0x1b5)](_0x51dd09,_0x2bbe38),Promise[_0x269ad6(0x1c6)]();{const _0x1f6721=await _0x51dd09[_0x269ad6(0x1d1)]();return _0x1f6721[_0x269ad6(0x1da)](_0x269ad6(0x1f4))?Promise[_0x269ad6(0x1e9)](new _0x44fa11(_0x253cd3(_0x44eb4d,_0x269ad6(0x1ba)))):_0x1f6721[_0x269ad6(0x1da)](_0x269ad6(0x1b8))?Promise[_0x269ad6(0x1e9)](new _0x44fa11(_0x253cd3(_0x44eb4d,_0x269ad6(0x1dc)))):Promise[_0x269ad6(0x1e9)](new Error(_0x1f6721));}}async[_0x32dd30(0x1d5)](_0x3a938d,_0x47d3b7,_0x16dec4){const _0x576225=_0x32dd30;let _0x19ede7,_0x22a0ec;return _0x47d3b7?(_0x19ede7=_0x576225(0x1b2),_0x22a0ec=_0x576225(0x1ad)+_0x3a938d+_0x576225(0x1be)+_0x47d3b7):(_0x19ede7=_0x576225(0x1c3),_0x22a0ec=_0x3a938d),[{'role':_0x576225(0x1c9),'content':_0x19ede7},{'role':_0x576225(0x1cf),'content':_0x22a0ec}];}async[_0x32dd30(0x1c1)](_0x322282,_0x53f82a){const _0x5aaaeb=_0x32dd30,_0x59a048=_0x322282[_0x5aaaeb(0x1c7)][_0x5aaaeb(0x1bb)](),_0xda4ecc=new TextDecoder();let _0x450e3c='',_0x596b8a='',_0x1fa286='',_0x55e203=!0x1;for(;!_0x55e203;){const {done:_0x216680,value:_0x18ae5c}=await _0x59a048[_0x5aaaeb(0x1e1)](),_0x44b625=_0x450e3c+_0xda4ecc[_0x5aaaeb(0x1cb)](_0x18ae5c);let _0x58a2a6='';_0x55e203=_0x216680;try{_0x58a2a6=this[_0x5aaaeb(0x1b0)](_0x44b625),_0x450e3c='';}catch{_0x450e3c=_0x44b625;continue;}_0x596b8a+=_0x58a2a6,!_0x55e203&&this[_0x5aaaeb(0x1c5)](_0x596b8a)||_0x596b8a&&(_0x1fa286+=_0x596b8a,_0x596b8a='',_0x53f82a(_0x1fa286));}return Promise[_0x5aaaeb(0x1c6)]();}async[_0x32dd30(0x1b5)](_0x8be84f,_0x53fe1d){const _0xcdaf0d=_0x32dd30;return _0x53fe1d((await _0x8be84f[_0xcdaf0d(0x1e2)]())[_0xcdaf0d(0x1c8)][0x0][_0xcdaf0d(0x1bf)][_0xcdaf0d(0x1f5)]),Promise[_0xcdaf0d(0x1c6)]();}[_0x32dd30(0x1c5)](_0x1ce0aa){const _0x3c0cad=_0x32dd30,_0xb35d58=_0x1ce0aa[_0x3c0cad(0x1b7)]('<')[_0x3c0cad(0x1f0)]!==_0x1ce0aa[_0x3c0cad(0x1b7)]('>')[_0x3c0cad(0x1f0)],_0x1e1190=_0x1ce0aa[_0x3c0cad(0x1f0)]<0x1e;return _0xb35d58&&_0x1e1190;}[_0x32dd30(0x1b0)](_0x3cfe27){const _0x15a1ab=_0x32dd30;return _0x3cfe27[_0x15a1ab(0x1b7)](/\n(?![^{]*\})/g)[_0x15a1ab(0x1d4)](_0x49124b=>_0x49124b[_0x15a1ab(0x1f1)](_0x15a1ab(0x1e5),''))[_0x15a1ab(0x1e0)](_0x6f7b9=>_0x6f7b9&&_0x6f7b9[_0x15a1ab(0x1f0)]>0x0&&_0x15a1ab(0x1ec)!==_0x6f7b9)[_0x15a1ab(0x1d4)](_0x39fe51=>{const _0x3581b0=_0x15a1ab,{choices:_0x538e60}=JSON[_0x3581b0(0x1d7)](_0x39fe51);if(_0x538e60[0x0]?.[_0x3581b0(0x1b9)]?.[_0x3581b0(0x1f5)])return _0x538e60[0x0][_0x3581b0(0x1b9)][_0x3581b0(0x1f5)];})[_0x15a1ab(0x1e0)](_0x4d2510=>_0x4d2510)[_0x15a1ab(0x1b6)]('');}}
23
+ function _0x5e79(_0x5e98fc,_0x4d9010){const _0x55a711=_0x55a7();return _0x5e79=function(_0x5e79f9,_0x28a49d){_0x5e79f9=_0x5e79f9-0x119;let _0x532657=_0x55a711[_0x5e79f9];return _0x532657;},_0x5e79(_0x5e98fc,_0x4d9010);}const _0x47978c=_0x5e79;(function(_0x5a6c59,_0x1cfdec){const _0x4391a7=_0x5e79,_0x21661c=_0x5a6c59();while(!![]){try{const _0x3332a0=parseInt(_0x4391a7(0x125))/0x1*(parseInt(_0x4391a7(0x123))/0x2)+-parseInt(_0x4391a7(0x14b))/0x3*(parseInt(_0x4391a7(0x135))/0x4)+-parseInt(_0x4391a7(0x12c))/0x5+-parseInt(_0x4391a7(0x140))/0x6*(-parseInt(_0x4391a7(0x149))/0x7)+parseInt(_0x4391a7(0x158))/0x8*(-parseInt(_0x4391a7(0x133))/0x9)+-parseInt(_0x4391a7(0x141))/0xa+parseInt(_0x4391a7(0x12a))/0xb;if(_0x3332a0===_0x1cfdec)break;else _0x21661c['push'](_0x21661c['shift']());}catch(_0x22eb2c){_0x21661c['push'](_0x21661c['shift']());}}}(_0x55a7,0x692e7));function _0x55a7(){const _0x262ed5=['_apiUrl','split','https://api.openai.com/v1/chat/completions','ai.assistant.adapter.openAI.apiUrl','read','user','POST','stringify','ai.assistant.adapter.openAI.requestHeaders','_cleanUpData','json','abortController','locale','6BDjcmj','length','203271evcmql','choices','content','system','_prepareRequestParameters','9662543iuVidt','reject','915915KEkWKB','define','text','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.','AI_ERROR_CONTEXT_LENGTH','OpenAITextAdapter','sendRequest','207SlIOzZ','pluginName','127948UYaDiG','join','_isBufferIncomplete','prepareMessages','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.','map','_requestHeaders','message','signal','data:\x20','getReader','3993342xtNMQc','6510780vyEtQv','decode','replace','_readStreamableResponse','resolve','config','_requestParameters','_prepareRequestHeaders','7oHxrjc','includes','45WZJVao','stream','[DONE]','gpt-4o','Instruction:\x0a','filter','editor','context_length_exceeded','body','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','AI_ERROR_MODERATION','get','parse','142224jUWFYu','ai.assistant.adapter.openAI.requestParameters','Moderation','delta','_readStaticResponse'];_0x55a7=function(){return _0x262ed5;};return _0x55a7();}import{AITextAdapter as _0x493300}from'./aitextadapter.js';import{AIRequestError as _0x259097}from'./aiadapter.js';import{getTranslation as _0x366300}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x493300{[_0x47978c(0x15d)];[_0x47978c(0x13b)];[_0x47978c(0x147)];static get[_0x47978c(0x134)](){const _0x1175de=_0x47978c;return _0x1175de(0x131);}constructor(_0x175357){const _0x13e243=_0x47978c;super(_0x175357),_0x175357[_0x13e243(0x146)][_0x13e243(0x12d)](_0x13e243(0x119),_0x13e243(0x15f)),_0x175357[_0x13e243(0x146)][_0x13e243(0x156)](_0x13e243(0x159))||_0x175357[_0x13e243(0x146)][_0x13e243(0x12d)](_0x13e243(0x159),{'model':_0x13e243(0x14e),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x13e243(0x15d)]=_0x175357[_0x13e243(0x146)][_0x13e243(0x156)](_0x13e243(0x119)),this[_0x13e243(0x13b)]=_0x175357[_0x13e243(0x146)][_0x13e243(0x156)](_0x13e243(0x11e))||{},this[_0x13e243(0x147)]=_0x175357[_0x13e243(0x146)][_0x13e243(0x156)](_0x13e243(0x159));}async[_0x47978c(0x132)]({query:_0x2ad689,context:_0x5dda52,onData:_0x1f0872,actionId:_0x38bdbc}){const _0x41e06d=_0x47978c,_0x2f115a=this[_0x41e06d(0x151)][_0x41e06d(0x122)],_0x73ae82=await this[_0x41e06d(0x138)](_0x2ad689,_0x5dda52,_0x38bdbc),_0x3ba8ca=await this[_0x41e06d(0x148)](this[_0x41e06d(0x13b)],_0x38bdbc),_0xb7ea3f=await this[_0x41e06d(0x129)](this[_0x41e06d(0x147)],_0x38bdbc),_0x2090bc={'messages':_0x73ae82,..._0xb7ea3f},_0x5b05a7={'method':_0x41e06d(0x11c),'headers':_0x3ba8ca,'body':JSON[_0x41e06d(0x11d)](_0x2090bc),'signal':this[_0x41e06d(0x121)][_0x41e06d(0x13d)]},_0x214ac3=await fetch(this[_0x41e06d(0x15d)],_0x5b05a7);if(_0x214ac3['ok'])return _0xb7ea3f[_0x41e06d(0x14c)]?await this[_0x41e06d(0x144)](_0x214ac3,_0x1f0872):await this[_0x41e06d(0x15c)](_0x214ac3,_0x1f0872),Promise[_0x41e06d(0x145)]();{const _0x522b3e=await _0x214ac3[_0x41e06d(0x12e)]();return _0x522b3e[_0x41e06d(0x14a)](_0x41e06d(0x152))?Promise[_0x41e06d(0x12b)](new _0x259097(_0x366300(_0x2f115a,_0x41e06d(0x130)))):_0x522b3e[_0x41e06d(0x14a)](_0x41e06d(0x15a))?Promise[_0x41e06d(0x12b)](new _0x259097(_0x366300(_0x2f115a,_0x41e06d(0x155)))):Promise[_0x41e06d(0x12b)](new Error(_0x522b3e));}}async[_0x47978c(0x138)](_0x46ede7,_0x1ba256,_0x3488fa){const _0x4d0bb5=_0x47978c;let _0x1bac53,_0x4f462a;return _0x1ba256?(_0x1bac53=_0x4d0bb5(0x139),_0x4f462a=_0x4d0bb5(0x14f)+_0x46ede7+_0x4d0bb5(0x154)+_0x1ba256):(_0x1bac53=_0x4d0bb5(0x12f),_0x4f462a=_0x46ede7),[{'role':_0x4d0bb5(0x128),'content':_0x1bac53},{'role':_0x4d0bb5(0x11b),'content':_0x4f462a}];}async[_0x47978c(0x144)](_0x4cf2a1,_0x158efa){const _0x20a5f8=_0x47978c,_0x3a4be3=_0x4cf2a1[_0x20a5f8(0x153)][_0x20a5f8(0x13f)](),_0x70df95=new TextDecoder();let _0xb0fbcc='',_0x20684c='',_0x4d6ce0='',_0x3e00b2=!0x1;for(;!_0x3e00b2;){const {done:_0x23594c,value:_0xffde36}=await _0x3a4be3[_0x20a5f8(0x11a)](),_0x537acf=_0xb0fbcc+_0x70df95[_0x20a5f8(0x142)](_0xffde36);let _0x5dd999='';_0x3e00b2=_0x23594c;try{_0x5dd999=this[_0x20a5f8(0x11f)](_0x537acf),_0xb0fbcc='';}catch{_0xb0fbcc=_0x537acf;continue;}_0x20684c+=_0x5dd999,!_0x3e00b2&&this[_0x20a5f8(0x137)](_0x20684c)||_0x20684c&&(_0x4d6ce0+=_0x20684c,_0x20684c='',_0x158efa(_0x4d6ce0));}return Promise[_0x20a5f8(0x145)]();}async[_0x47978c(0x15c)](_0x147526,_0x31a7eb){const _0x3f8dd3=_0x47978c;return _0x31a7eb((await _0x147526[_0x3f8dd3(0x120)]())[_0x3f8dd3(0x126)][0x0][_0x3f8dd3(0x13c)][_0x3f8dd3(0x127)]),Promise[_0x3f8dd3(0x145)]();}[_0x47978c(0x137)](_0x52f9e6){const _0x503874=_0x47978c,_0xa51189=_0x52f9e6[_0x503874(0x15e)]('<')[_0x503874(0x124)]!==_0x52f9e6[_0x503874(0x15e)]('>')[_0x503874(0x124)],_0x30b4cc=_0x52f9e6[_0x503874(0x124)]<0x1e;return _0xa51189&&_0x30b4cc;}[_0x47978c(0x11f)](_0xb7033c){const _0x386c9b=_0x47978c;return _0xb7033c[_0x386c9b(0x15e)](/\n(?![^{]*\})/g)[_0x386c9b(0x13a)](_0x5d6618=>_0x5d6618[_0x386c9b(0x143)](_0x386c9b(0x13e),''))[_0x386c9b(0x150)](_0x487202=>_0x487202&&_0x487202[_0x386c9b(0x124)]>0x0&&_0x386c9b(0x14d)!==_0x487202)[_0x386c9b(0x13a)](_0x328ff7=>{const _0x1f361f=_0x386c9b,{choices:_0x5032c1}=JSON[_0x1f361f(0x157)](_0x328ff7);if(_0x5032c1[0x0]?.[_0x1f361f(0x15b)]?.[_0x1f361f(0x127)])return _0x5032c1[0x0][_0x1f361f(0x15b)][_0x1f361f(0x127)];})[_0x386c9b(0x150)](_0x24855d=>_0x24855d)[_0x386c9b(0x136)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9481f6=_0x252a;(function(_0x34b5c3,_0x71cdae){const _0x107146=_0x252a,_0x11ded7=_0x34b5c3();while(!![]){try{const _0x312853=parseInt(_0x107146(0x195))/0x1+parseInt(_0x107146(0x185))/0x2+parseInt(_0x107146(0x179))/0x3*(-parseInt(_0x107146(0x19f))/0x4)+-parseInt(_0x107146(0x142))/0x5*(-parseInt(_0x107146(0x16c))/0x6)+parseInt(_0x107146(0x149))/0x7*(-parseInt(_0x107146(0x1a2))/0x8)+parseInt(_0x107146(0x15b))/0x9+parseInt(_0x107146(0x18e))/0xa;if(_0x312853===_0x71cdae)break;else _0x11ded7['push'](_0x11ded7['shift']());}catch(_0x5eed24){_0x11ded7['push'](_0x11ded7['shift']());}}}(_0xc062,0x81310));import{Plugin as _0x20a63f}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x210e97}from'./aiassistantui.js';import{AIAssistantEditing as _0x3fa113}from'./aiassistantediting.js';import{getTranslation as _0x1790fe}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x37b765}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x20a63f{static get[_0x9481f6(0x163)](){return[_0x210e97,_0x3fa113];}static get[_0x9481f6(0x158)](){const _0x579c22=_0x9481f6;return _0x579c22(0x184);}static get[_0x9481f6(0x14e)](){return!0x0;}static get[_0x9481f6(0x13c)](){return!0x0;}constructor(_0x5e3f24){const _0x5c9bce=_0x9481f6;super(_0x5e3f24);const _0x3f10bb=_0x5e3f24[_0x5c9bce(0x159)],_0x4ee001=_0x5e3f24[_0x5c9bce(0x175)];_0x3f10bb[_0x5c9bce(0x1a0)](_0x5c9bce(0x151),!0x0),_0x3f10bb[_0x5c9bce(0x1a0)](_0x5c9bce(0x161),getDefaultAICommands(_0x4ee001)),_0x3f10bb[_0x5c9bce(0x1a0)](_0x5c9bce(0x173),[]),_0x3f10bb[_0x5c9bce(0x1a0)](_0x5c9bce(0x186),[]);let _0x4090ce=_0x37b765(_0x3f10bb[_0x5c9bce(0x154)](_0x5c9bce(0x161)),_0x4ee001);const _0x40b7f8=_0x3f10bb[_0x5c9bce(0x154)](_0x5c9bce(0x173)),_0x1a30fb=_0x3f10bb[_0x5c9bce(0x154)](_0x5c9bce(0x186));_0x40b7f8[_0x5c9bce(0x160)](_0x49fa40=>{const _0x1a67df=_0x5c9bce,_0x6ac9b1=_0x4090ce[_0x1a67df(0x143)](_0x57da30=>_0x57da30[_0x1a67df(0x168)]===_0x49fa40[_0x1a67df(0x168)]);_0x6ac9b1?_0x6ac9b1[_0x1a67df(0x181)]=_0x6ac9b1[_0x1a67df(0x181)][_0x1a67df(0x178)](_0x49fa40[_0x1a67df(0x181)]):_0x4090ce[_0x1a67df(0x15a)](_0x49fa40);}),_0x4090ce=_0x4090ce[_0x5c9bce(0x167)](_0x383a41=>!_0x1a30fb[_0x5c9bce(0x13d)](_0x383a41[_0x5c9bce(0x168)])),_0x4090ce[_0x5c9bce(0x160)](_0x5e7d71=>{const _0x257ef7=_0x5c9bce;_0x5e7d71[_0x257ef7(0x181)]=_0x5e7d71[_0x257ef7(0x181)][_0x257ef7(0x167)](_0x506446=>!_0x1a30fb[_0x257ef7(0x13d)](_0x506446['id']));}),_0x3f10bb[_0x5c9bce(0x18a)](_0x5c9bce(0x161),_0x4090ce);}}function _0x252a(_0x5e9a38,_0x441a5a){const _0xc0620=_0xc062();return _0x252a=function(_0x252ac7,_0x153e34){_0x252ac7=_0x252ac7-0x13a;let _0x153ba5=_0xc0620[_0x252ac7];return _0x153ba5;},_0x252a(_0x5e9a38,_0x441a5a);}function _0xc062(){const _0x3d561b=['Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','professional','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','legal','34523skHdFx','editOrReview','Translate\x20the\x20content\x20to\x20English\x20language.','translate','Casual','translatePortuguese','confident','Change\x20style','translateSpanish','improveWriting','20348SdnIPg','define','Translate\x20the\x20content\x20to\x20Spanish\x20language.','1016EOBxlE','translateArabic','Translate\x20the\x20content\x20to\x20French\x20language.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Improve\x20writing','translateChinese','Summarize','changeStyle','German','isPremiumPlugin','includes','casual','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20German\x20language.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','865040pounoB','find','French','Simplify\x20language','Legal','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Journalism','42364tBkQVq','Generate\x20from\x20selection','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Continue','isOfficialPlugin','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','ai.assistant.preserveComments','Spanish','direct','get','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Hindi','translateHindi','pluginName','config','push','9502281osuubz','poetic','English','translateFrench','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','forEach','ai.assistant.commands','translateEnglish','requires','friendly','translateGerman','Professional','filter','groupId','Change\x20tone','Simplified\x20Chinese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','12FxJpmy','Portuguese','makeLonger','journalism','Edit\x20or\x20review','Arabic','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','ai.assistant.extraCommandGroups','Direct','locale','Business','Confident','concat','624XYtsOL','summarize','Make\x20shorter','generate','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','continue','Friendly','Translate\x20the\x20content\x20to\x20Arabic\x20language.','commands','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','business','AIAssistant','1308582puhOpX','ai.assistant.removeCommands','simplifyLanguage','makeShorter','Make\x20longer','set','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Translate','Translate\x20the\x20content\x20to\x20Hindi\x20language.','2652290hTwlxz','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','changeTone'];_0xc062=function(){return _0x3d561b;};return _0xc062();}export function getDefaultAICommands(_0x4cf39e){const _0x5ebefc=_0x9481f6;return[{'groupId':_0x5ebefc(0x196),'groupLabel':_0x1790fe(_0x4cf39e,_0x5ebefc(0x170)),'commands':[{'id':_0x5ebefc(0x19e),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x1a6)),'prompt':_0x5ebefc(0x1a5)},{'id':_0x5ebefc(0x188),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x17b)),'prompt':_0x5ebefc(0x191)},{'id':_0x5ebefc(0x16e),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x189)),'prompt':_0x5ebefc(0x18f)},{'id':_0x5ebefc(0x187),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x145)),'prompt':_0x5ebefc(0x150)}]},{'groupId':_0x5ebefc(0x17c),'groupLabel':_0x1790fe(_0x4cf39e,_0x5ebefc(0x14a)),'commands':[{'id':_0x5ebefc(0x17a),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x1a8)),'prompt':_0x5ebefc(0x193)},{'id':_0x5ebefc(0x17e),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x14d)),'prompt':_0x5ebefc(0x17d)}]},{'groupId':_0x5ebefc(0x190),'groupLabel':_0x1790fe(_0x4cf39e,_0x5ebefc(0x169)),'commands':[{'id':_0x5ebefc(0x192),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x166)),'prompt':_0x5ebefc(0x16b)},{'id':_0x5ebefc(0x13e),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x199)),'prompt':_0x5ebefc(0x182)},{'id':_0x5ebefc(0x153),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x174)),'prompt':_0x5ebefc(0x18b)},{'id':_0x5ebefc(0x19b),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x177)),'prompt':_0x5ebefc(0x155)},{'id':_0x5ebefc(0x164),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x17f)),'prompt':_0x5ebefc(0x14f)}]},{'groupId':_0x5ebefc(0x13a),'groupLabel':_0x1790fe(_0x4cf39e,_0x5ebefc(0x19c)),'commands':[{'id':_0x5ebefc(0x183),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x176)),'prompt':_0x5ebefc(0x14c)},{'id':_0x5ebefc(0x194),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x146)),'prompt':_0x5ebefc(0x13f)},{'id':_0x5ebefc(0x16f),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x148)),'prompt':_0x5ebefc(0x15f)},{'id':_0x5ebefc(0x15c),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x14b)),'prompt':_0x5ebefc(0x172)}]},{'groupId':_0x5ebefc(0x198),'groupLabel':_0x1790fe(_0x4cf39e,_0x5ebefc(0x18c)),'commands':[{'id':_0x5ebefc(0x162),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x15d)),'prompt':_0x5ebefc(0x197)},{'id':_0x5ebefc(0x19d),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x152)),'prompt':_0x5ebefc(0x1a1)},{'id':_0x5ebefc(0x19a),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x16d)),'prompt':_0x5ebefc(0x147)},{'id':_0x5ebefc(0x165),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x13b)),'prompt':_0x5ebefc(0x140)},{'id':_0x5ebefc(0x15e),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x144)),'prompt':_0x5ebefc(0x1a4)},{'id':_0x5ebefc(0x1a7),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x16a)),'prompt':_0x5ebefc(0x141)},{'id':_0x5ebefc(0x157),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x156)),'prompt':_0x5ebefc(0x18d)},{'id':_0x5ebefc(0x1a3),'label':_0x1790fe(_0x4cf39e,_0x5ebefc(0x171)),'prompt':_0x5ebefc(0x180)}]}];}
23
+ const _0x3d9218=_0x3798;(function(_0x4f8bd7,_0x29548b){const _0x109053=_0x3798,_0x48e810=_0x4f8bd7();while(!![]){try{const _0x12846c=-parseInt(_0x109053(0x1f3))/0x1*(-parseInt(_0x109053(0x1ff))/0x2)+parseInt(_0x109053(0x244))/0x3+-parseInt(_0x109053(0x23d))/0x4*(parseInt(_0x109053(0x1fe))/0x5)+-parseInt(_0x109053(0x23a))/0x6+parseInt(_0x109053(0x220))/0x7*(parseInt(_0x109053(0x222))/0x8)+parseInt(_0x109053(0x23e))/0x9*(parseInt(_0x109053(0x248))/0xa)+-parseInt(_0x109053(0x231))/0xb;if(_0x12846c===_0x29548b)break;else _0x48e810['push'](_0x48e810['shift']());}catch(_0x144c08){_0x48e810['push'](_0x48e810['shift']());}}}(_0x5e3c,0xab255));import{Plugin as _0x591572}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x654074}from'./aiassistantui.js';import{AIAssistantEditing as _0x19fe3f}from'./aiassistantediting.js';import{getTranslation as _0x28d518}from'./utils/common-translations.js';function _0x3798(_0x5d8496,_0x4b88e2){const _0x5e3c45=_0x5e3c();return _0x3798=function(_0x379811,_0x5411e9){_0x379811=_0x379811-0x1eb;let _0x372e89=_0x5e3c45[_0x379811];return _0x372e89;},_0x3798(_0x5d8496,_0x4b88e2);}import{normalizeCommandsConfig as _0x4e60f8}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x591572{static get[_0x3d9218(0x1f6)](){return[_0x654074,_0x19fe3f];}static get[_0x3d9218(0x23f)](){const _0x57bcd0=_0x3d9218;return _0x57bcd0(0x21b);}static get[_0x3d9218(0x235)](){return!0x0;}static get[_0x3d9218(0x246)](){return!0x0;}constructor(_0x5e4661){const _0x1dcb22=_0x3d9218;super(_0x5e4661);const _0x376f3e=_0x5e4661[_0x1dcb22(0x252)],_0x3eccb5=_0x5e4661[_0x1dcb22(0x216)];_0x376f3e[_0x1dcb22(0x201)](_0x1dcb22(0x221),!0x0),_0x376f3e[_0x1dcb22(0x201)](_0x1dcb22(0x1ed),getDefaultAICommands(_0x3eccb5)),_0x376f3e[_0x1dcb22(0x201)](_0x1dcb22(0x240),[]),_0x376f3e[_0x1dcb22(0x201)](_0x1dcb22(0x1f8),[]);let _0x3b4015=_0x4e60f8(_0x376f3e[_0x1dcb22(0x1ee)](_0x1dcb22(0x1ed)),_0x3eccb5);const _0x26e482=_0x376f3e[_0x1dcb22(0x1ee)](_0x1dcb22(0x240)),_0x40df7b=_0x376f3e[_0x1dcb22(0x1ee)](_0x1dcb22(0x1f8));_0x26e482[_0x1dcb22(0x255)](_0x27effe=>{const _0x1eb8c7=_0x1dcb22,_0x3d1e4e=_0x3b4015[_0x1eb8c7(0x200)](_0x262242=>_0x262242[_0x1eb8c7(0x20d)]===_0x27effe[_0x1eb8c7(0x20d)]);_0x3d1e4e?_0x3d1e4e[_0x1eb8c7(0x21f)]=_0x3d1e4e[_0x1eb8c7(0x21f)][_0x1eb8c7(0x204)](_0x27effe[_0x1eb8c7(0x21f)]):_0x3b4015[_0x1eb8c7(0x1fc)](_0x27effe);}),_0x3b4015=_0x3b4015[_0x1dcb22(0x238)](_0x294a33=>!_0x40df7b[_0x1dcb22(0x209)](_0x294a33[_0x1dcb22(0x20d)])),_0x3b4015[_0x1dcb22(0x255)](_0x239689=>{const _0x2bd42e=_0x1dcb22;_0x239689[_0x2bd42e(0x21f)]=_0x239689[_0x2bd42e(0x21f)][_0x2bd42e(0x238)](_0x1debcd=>!_0x40df7b[_0x2bd42e(0x209)](_0x1debcd['id']));}),_0x376f3e[_0x1dcb22(0x1f5)](_0x1dcb22(0x1ed),_0x3b4015);}}export function getDefaultAICommands(_0x4eefa6){const _0x1c13c2=_0x3d9218;return[{'groupId':_0x1c13c2(0x219),'groupLabel':_0x28d518(_0x4eefa6,_0x1c13c2(0x21a)),'commands':[{'id':_0x1c13c2(0x20f),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x24a)),'prompt':_0x1c13c2(0x232)},{'id':_0x1c13c2(0x1f9),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x210)),'prompt':_0x1c13c2(0x20e)},{'id':_0x1c13c2(0x21e),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x21d)),'prompt':_0x1c13c2(0x245)},{'id':_0x1c13c2(0x213),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x254)),'prompt':_0x1c13c2(0x203)}]},{'groupId':_0x1c13c2(0x24d),'groupLabel':_0x28d518(_0x4eefa6,_0x1c13c2(0x259)),'commands':[{'id':_0x1c13c2(0x257),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x24f)),'prompt':_0x1c13c2(0x20b)},{'id':_0x1c13c2(0x211),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x233)),'prompt':_0x1c13c2(0x23b)}]},{'groupId':_0x1c13c2(0x249),'groupLabel':_0x28d518(_0x4eefa6,_0x1c13c2(0x230)),'commands':[{'id':_0x1c13c2(0x22b),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x218)),'prompt':_0x1c13c2(0x20a)},{'id':_0x1c13c2(0x25a),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x212)),'prompt':_0x1c13c2(0x215)},{'id':_0x1c13c2(0x253),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x22c)),'prompt':_0x1c13c2(0x22a)},{'id':_0x1c13c2(0x1f1),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x1ef)),'prompt':_0x1c13c2(0x24e)},{'id':_0x1c13c2(0x214),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x21c)),'prompt':_0x1c13c2(0x242)}]},{'groupId':_0x1c13c2(0x250),'groupLabel':_0x28d518(_0x4eefa6,_0x1c13c2(0x229)),'commands':[{'id':_0x1c13c2(0x202),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x1ec)),'prompt':_0x1c13c2(0x239)},{'id':_0x1c13c2(0x207),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x24c)),'prompt':_0x1c13c2(0x1f7)},{'id':_0x1c13c2(0x225),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x22d)),'prompt':_0x1c13c2(0x228)},{'id':_0x1c13c2(0x217),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x241)),'prompt':_0x1c13c2(0x208)}]},{'groupId':_0x1c13c2(0x243),'groupLabel':_0x28d518(_0x4eefa6,_0x1c13c2(0x205)),'commands':[{'id':_0x1c13c2(0x23c),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x258)),'prompt':_0x1c13c2(0x236)},{'id':_0x1c13c2(0x206),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x226)),'prompt':_0x1c13c2(0x24b)},{'id':_0x1c13c2(0x234),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x22f)),'prompt':_0x1c13c2(0x1f0)},{'id':_0x1c13c2(0x1f4),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x227)),'prompt':_0x1c13c2(0x224)},{'id':_0x1c13c2(0x1f2),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x20c)),'prompt':_0x1c13c2(0x237)},{'id':_0x1c13c2(0x223),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x247)),'prompt':_0x1c13c2(0x256)},{'id':_0x1c13c2(0x22e),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x1eb)),'prompt':_0x1c13c2(0x1fa)},{'id':_0x1c13c2(0x251),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x1fd)),'prompt':_0x1c13c2(0x1fb)}]}];}function _0x5e3c(){const _0x102f97=['Summarize','changeStyle','translateArabic','config','direct','Simplify\x20language','forEach','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','summarize','English','Generate\x20from\x20selection','casual','Hindi','Business','ai.assistant.commands','get','Confident','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','confident','translateFrench','149VzcuOs','translateGerman','set','requires','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','ai.assistant.removeCommands','makeShorter','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','push','Arabic','5ZLxnEE','7348rChDOY','find','define','business','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','concat','Translate','translateSpanish','legal','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','includes','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','French','groupId','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','improveWriting','Make\x20shorter','continue','Casual','simplifyLanguage','friendly','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','locale','poetic','Professional','editOrReview','Edit\x20or\x20review','AIAssistant','Friendly','Make\x20longer','makeLonger','commands','2023ZREMnw','ai.assistant.preserveComments','37256CbAVLa','translateChinese','Translate\x20the\x20content\x20to\x20German\x20language.','journalism','Spanish','German','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Change\x20style','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','professional','Direct','Journalism','translateHindi','Portuguese','Change\x20tone','16983626XmcdLe','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Continue','translatePortuguese','isOfficialPlugin','Translate\x20the\x20content\x20to\x20English\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','filter','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','1839876CboaKK','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','translateEnglish','702524CXpFpK','1431WTlslD','pluginName','ai.assistant.extraCommandGroups','Poetic','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','translate','2049198mlgzvs','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','isPremiumPlugin','Simplified\x20Chinese','9490djIEyY','changeTone','Improve\x20writing','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Legal','generate','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'];_0x5e3c=function(){return _0x102f97;};return _0x5e3c();}