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

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 (130) 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/aichatfeedinteractionheaderview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  58. package/src/aichat/utils/promisequeue.js +1 -1
  59. package/src/aichathistory/aichathistory.js +1 -1
  60. package/src/aichathistory/aichathistorycontroller.js +1 -1
  61. package/src/aichathistory/aichathistoryui.js +1 -1
  62. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  63. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  64. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  65. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  66. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  67. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  68. package/src/aicore/aiconnector.js +1 -1
  69. package/src/aicore/aiediting.js +1 -1
  70. package/src/aicore/model/aicapabilities.js +1 -1
  71. package/src/aicore/model/aiinteraction.js +1 -1
  72. package/src/aicore/model/aimodels.js +1 -1
  73. package/src/aicore/model/aireply.js +1 -1
  74. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  75. package/src/aicore/pipeline/airesponseparser.js +2 -2
  76. package/src/aicore/ui/aidisclaimerview.js +1 -1
  77. package/src/aicore/ui/aiskeleton.js +1 -1
  78. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  79. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  80. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  83. package/src/aicore/utils/createresizebutton.js +1 -1
  84. package/src/aicore/utils/documentposition.js +1 -1
  85. package/src/aicore/utils/documentrange.js +1 -1
  86. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  87. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  88. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  89. package/src/aicore/utils/htmlparser.js +1 -1
  90. package/src/aicore/utils/htmlstreamer.js +1 -1
  91. package/src/aicore/utils/scrollmanager.js +1 -1
  92. package/src/aieditorintegration/aieditorintegration.js +1 -1
  93. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  94. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  95. package/src/aiquickactions/aiquickactions.js +1 -1
  96. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  97. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  98. package/src/aiquickactions/aiquickactionsui.js +1 -1
  99. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  100. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  101. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  103. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  104. package/src/aireviewmode/aireviewmode.js +1 -1
  105. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  106. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  107. package/src/aireviewmode/aireviewmodeui.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  109. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  110. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  112. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  113. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  114. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  123. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  124. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  125. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  126. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  127. package/src/aitabs/aitabs.js +1 -1
  128. package/src/aitabs/tabs/aitabsview.js +1 -1
  129. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  130. 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.5",
3
+ "version": "47.4.0-alpha.6",
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.5",
33
- "@ckeditor/ckeditor5-cloud-services": "47.4.0-alpha.5",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.4.0-alpha.5",
35
- "@ckeditor/ckeditor5-core": "47.4.0-alpha.5",
36
- "@ckeditor/ckeditor5-engine": "47.4.0-alpha.5",
37
- "@ckeditor/ckeditor5-icons": "47.4.0-alpha.5",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.4.0-alpha.5",
39
- "@ckeditor/ckeditor5-table": "47.4.0-alpha.5",
40
- "@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.5",
41
- "@ckeditor/ckeditor5-ui": "47.4.0-alpha.5",
42
- "@ckeditor/ckeditor5-utils": "47.4.0-alpha.5",
43
- "@ckeditor/ckeditor5-real-time-collaboration": "47.4.0-alpha.5",
44
- "ckeditor5": "47.4.0-alpha.5",
45
- "ckeditor5-collaboration": "47.4.0-alpha.5",
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",
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 _0x2eeabb=_0x18da;function _0x270b(){const _0x556e9c=['bind','_clearLoadingState','message','1/1','rename','change','isBusy','isPremiumPlugin','getFirstRange','enqueue','first','reinsert','howMany','_aiConnector','getChildAtOffset','getLimitElement','indexOf','add','_applyOperationsAsSuggestions','createPositionAt','forEach','_setupCustomViews','getChild','getDocumentContext','editor','setChangeGroupState','updateContent','_isAbortError','ck-ai-custom-action-button','plugins','position','insertSuggestion','addNavigationItem','_navigationCounter','changeGroups','12976eSFezx','hideError','textContent','queueEmptyPromise','_displayInteractionAtIndex','removeNavigationItem','execute','_createInteraction','getSelectedBlocks','filter','_setLoadingState','_clearInteractionHistory','baseVersion','interactionFinished','path','executeAction','processor','hasPendingParts','operationsA','pluginName','setSelection','dialogClosed','startsWith','replyCreated','clearErrorState','config','locale','_appendChild','balloonView','upsertCustomAIActionRating','ai-no-track-changes','setTemplate','_bodyCollection','modelToViewWithIds','AIBalloon','includes','_children','isDocumentOperation','stopInteraction','upsertAIActionRating','16595rVjyNa','ai-request-aborted','attachToDom','insert','Error\x20updating\x20content\x20in\x20replyContentUpdated:','AI_ACTIONS_GENERIC_ERROR','hasError','mainView','accepted','createPositionBefore','element','state','_interactionParams','close','batch','schema','getRanges','createRange','toolbar','replyChangeGroupStateUpdated','pending','rootName','ck-ai-navigation-button\x20ck-ai-previous-button','detachFromDom','createPositionAfter','data','_getExecuteDataInTable','model','ck-ai-interaction-counter','remove','slice','isOfficialPlugin','getSelectionAsFragment','_getExecuteDataRegular','documentContextContent','ck-ai-navigation-button\x20ck-ai-next-button','_navigateToPrevious','applyOperation','clearLoading','version','_applyChanges','isCollapsed','getCommonAncestor','getOperations','_wrapWithCommonAncestors','miniToolbarView','span','selection','getRoot','random','showError','replyContentUpdated','_interaction','nextSibling','_executeAction','_isNavigationNextButtonInView','static','get','_navigationNextButton','sourcePosition','abort','getSelectedTableCells','_currentInteractionIndex','clone','type','621vWBuie','actionName','parent','1pNDRhU','_customViews','_updateNavigationUI','_setErrorState','areChangesVisible','icon','399984YMnclS','AIActions','toData','requires','move','aiBalloon','TrackChanges','_filterOperationsOutsideRange','length','rejected','has','documentFragment','TableSelection','merge','nodeAfter','_navigationPreviousButton','showChangesButton','setErrorState','streaming','signal','focus','document','getAncestors','addOperation','_interactions','start','_execute','82534uBTgXL','stopListening','end','listenTo','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','stopAutoScroll','$graveyard','Attribute','selectionRemoved','AI_ACTIONS_TRY_AGAIN','map','catch','_disableCustomViews','_clone','_clearErrorState','_promiseQueue','Error\x20refreshing\x20interaction:','474NVAmks','isLoading','_isNavigationPreviousButtonInView','_balloonShowDiff','bodyView','_stopInteraction','hideLoader','_clearSuggestionContent','startAutoScroll','77vVAXfD','AI_ACTIONS_PREVIOUS_INTERACTION','replies','showLoader','applySuggestion','_refreshInteraction','setLoading','AI_ACTIONS_NEXT_INTERACTION','Error\x20updating\x20content\x20in\x20replyCreated:','AIConnector','_anchorOperation','error','_isNavigationCounterInView','split','range','Error\x20updating\x20content\x20during\x20navigation:','1083610VgiySo','4552751dMZfVE','root','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_navigateToNext','set','actionCallId','TrackChangesEditing','toggleSuggestionDisplayMode','push','destroy','history','open','stickiness','getSelectedContent','stop','856452yafRBf','ai.availableReplyActions','isEnabled'];_0x270b=function(){return _0x556e9c;};return _0x270b();}(function(_0x1404d4,_0x43b065){const _0x15510c=_0x18da,_0x4de3eb=_0x1404d4();while(!![]){try{const _0xfabc8e=parseInt(_0x15510c(0x171))/0x1*(parseInt(_0x15510c(0x192))/0x2)+-parseInt(_0x15510c(0x1cc))/0x3+parseInt(_0x15510c(0x177))/0x4+parseInt(_0x15510c(0x21a))/0x5*(parseInt(_0x15510c(0x1a3))/0x6)+-parseInt(_0x15510c(0x1bd))/0x7+-parseInt(_0x15510c(0x1f2))/0x8*(-parseInt(_0x15510c(0x16e))/0x9)+-parseInt(_0x15510c(0x1bc))/0xa*(-parseInt(_0x15510c(0x1ac))/0xb);if(_0xfabc8e===_0x43b065)break;else _0x4de3eb['push'](_0x4de3eb['shift']());}catch(_0x431afa){_0x4de3eb['push'](_0x4de3eb['shift']());}}}(_0x270b,0x52870));import{Plugin as _0x3b951e}from'ckeditor5/src/core.js';import{AIConnector as _0x27015a}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x28f346}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x33775e,ButtonView as _0x339298,ViewCollection as _0x2e4715,View as _0x48f5c5,BodyCollection as _0xe74b06}from'ckeditor5/src/ui.js';import{AIEditing as _0x58b19e}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x5e2469}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x1a5355,first as _0x2def81}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x1530d9,IconRefresh as _0x3c65ac,IconNextArrow as _0x2150a1,IconPreviousArrow as _0x5d872f,IconShowChangesOff as _0x5026f4}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x19ec3b}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x15a720}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x118c41}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x194eb6}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3ea68e}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x33cead,getOperationsFromReply as _0x48ed0a}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x94c305,ModelRange as _0x1d9f3b,ModelPosition as _0x28c289,_DetachOperation as _0x59f959,transformOperationSets as _0x3ea885}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x30ba48}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x18da(_0x2ecf3d,_0xbda0e3){const _0x270be3=_0x270b();return _0x18da=function(_0x18da46,_0x3f4a0c){_0x18da46=_0x18da46-0x160;let _0x4e1d65=_0x270be3[_0x18da46];return _0x4e1d65;},_0x18da(_0x2ecf3d,_0xbda0e3);}export class AIActions extends _0x3b951e{static get[_0x2eeabb(0x17a)](){return[_0x27015a,_0x33775e,_0x58b19e,_0x19ec3b,_0x3ea68e];}static get[_0x2eeabb(0x205)](){const _0x3d2de8=_0x2eeabb;return _0x3d2de8(0x178);}static get[_0x2eeabb(0x239)](){return!0x0;}static get[_0x2eeabb(0x1d6)](){return!0x0;}[_0x2eeabb(0x1dc)];[_0x2eeabb(0x18f)]=[];[_0x2eeabb(0x16b)]=0x0;[_0x2eeabb(0x226)];[_0x2eeabb(0x1a6)]=!0x1;[_0x2eeabb(0x172)]=new _0x2e4715();[_0x2eeabb(0x186)];[_0x2eeabb(0x1f0)];[_0x2eeabb(0x1b8)]=!0x1;[_0x2eeabb(0x167)];[_0x2eeabb(0x1a5)]=!0x1;[_0x2eeabb(0x164)]=!0x1;[_0x2eeabb(0x1a1)];[_0x2eeabb(0x212)];get[_0x2eeabb(0x161)](){const _0x3fb4a3=_0x2eeabb;return this[_0x3fb4a3(0x18f)][this[_0x3fb4a3(0x18f)][_0x3fb4a3(0x17f)]-0x1];}constructor(_0x1a390d){const _0x2ea655=_0x2eeabb;super(_0x1a390d),this[_0x2ea655(0x212)]=new _0xe74b06(this[_0x2ea655(0x1e7)][_0x2ea655(0x20c)]),this[_0x2ea655(0x212)][_0x2ea655(0x21c)](),this[_0x2ea655(0x1dc)]=this[_0x2ea655(0x1e7)][_0x2ea655(0x1ec)][_0x2ea655(0x166)](_0x2ea655(0x1b5)),this[_0x2ea655(0x1c1)](_0x2ea655(0x1d5),!0x1),this[_0x2ea655(0x1a1)]=new _0x15a720(),this[_0x2ea655(0x1e4)]();}[_0x2eeabb(0x218)](){const _0x4734c0=_0x2eeabb;this[_0x4734c0(0x1a8)]();}async[_0x2eeabb(0x201)](_0x4d98d7,_0x211b0b,_0x10e298){const _0x47d09d=_0x2eeabb;if(this[_0x47d09d(0x1e7)][_0x47d09d(0x1ec)][_0x47d09d(0x181)](_0x47d09d(0x183))){if(this[_0x47d09d(0x1e7)][_0x47d09d(0x1ec)][_0x47d09d(0x166)](_0x47d09d(0x183))[_0x47d09d(0x16a)]()){const {modelFragment:_0x1d9c36,anchorData:_0x1e914c}=this[_0x47d09d(0x234)]();return this[_0x47d09d(0x163)](_0x4d98d7,_0x1d9c36,_0x1e914c,_0x211b0b,_0x10e298);}}const {modelFragment:_0x55c941,anchorData:_0x4665ea}=this[_0x47d09d(0x23b)]();return this[_0x47d09d(0x163)](_0x4d98d7,_0x55c941,_0x4665ea,_0x211b0b,_0x10e298);}[_0x2eeabb(0x1c6)](){const _0x325779=_0x2eeabb;this[_0x325779(0x212)][_0x325779(0x231)](),super[_0x325779(0x1c6)]();}[_0x2eeabb(0x23b)](){const _0x4381a5=_0x2eeabb,_0x11b19b=this[_0x4381a5(0x1e7)][_0x4381a5(0x235)][_0x4381a5(0x18c)][_0x4381a5(0x249)];if(_0x11b19b[_0x4381a5(0x243)]){const _0x8a838c=_0x2def81(_0x11b19b[_0x4381a5(0x1fa)]())||this[_0x4381a5(0x1e7)][_0x4381a5(0x235)][_0x4381a5(0x229)][_0x4381a5(0x1de)](_0x11b19b);this[_0x4381a5(0x1e7)][_0x4381a5(0x235)][_0x4381a5(0x1d4)](_0x51365a=>{const _0x319ad8=_0x4381a5;_0x51365a[_0x319ad8(0x206)](_0x8a838c,'in');});}const _0x304114=_0x11b19b[_0x4381a5(0x1d7)](),_0x1c264b=this[_0x4381a5(0x246)](this[_0x4381a5(0x1e7)][_0x4381a5(0x235)][_0x4381a5(0x1ca)](_0x11b19b),_0x304114[_0x4381a5(0x190)],_0x304114[_0x4381a5(0x194)]),_0x169f03=_0x11b19b[_0x4381a5(0x1d7)]()[_0x4381a5(0x190)],_0x28116b=new Map();let _0x2a1552=_0x1c264b;for(let _0x457af6=0x0;_0x457af6<_0x169f03[_0x4381a5(0x200)][_0x4381a5(0x17f)];_0x457af6++)_0x28116b[_0x4381a5(0x1c1)](_0x2a1552,_0x169f03[_0x4381a5(0x200)][_0x457af6]),_0x2a1552=_0x2a1552[_0x4381a5(0x1e5)](0x0);return{'modelFragment':_0x1c264b,'anchorData':_0x28116b};}[_0x2eeabb(0x234)](){const _0x1e3ed2=_0x2eeabb,_0x37b3e8=this[_0x1e3ed2(0x1e7)][_0x1e3ed2(0x235)][_0x1e3ed2(0x18c)][_0x1e3ed2(0x249)],_0x57c717=this[_0x1e3ed2(0x1e7)][_0x1e3ed2(0x1ec)][_0x1e3ed2(0x166)](_0x1e3ed2(0x183))[_0x1e3ed2(0x23a)](),_0x26397b=_0x37b3e8[_0x1e3ed2(0x1d7)]()[_0x1e3ed2(0x190)][_0x1e3ed2(0x170)][_0x1e3ed2(0x170)],_0xccac05=this[_0x1e3ed2(0x246)](_0x57c717,this[_0x1e3ed2(0x1e7)][_0x1e3ed2(0x235)][_0x1e3ed2(0x223)](_0x26397b),this[_0x1e3ed2(0x1e7)][_0x1e3ed2(0x235)][_0x1e3ed2(0x232)](_0x26397b)),_0x322a45=_0x37b3e8[_0x1e3ed2(0x1d7)]()[_0x1e3ed2(0x190)],_0x5f2de2=new Map();let _0x424465=_0xccac05;for(let _0x32de02=0x0;_0x32de02<_0x322a45[_0x1e3ed2(0x200)][_0x1e3ed2(0x17f)];_0x32de02++)if(_0x5f2de2[_0x1e3ed2(0x1c1)](_0x424465,_0x322a45[_0x1e3ed2(0x200)][_0x32de02]),_0x32de02<_0x322a45[_0x1e3ed2(0x200)][_0x1e3ed2(0x17f)]-0x1)_0x424465=_0x424465[_0x1e3ed2(0x1e5)](0x0);else{let _0x579715=_0x424465[_0x1e3ed2(0x162)];for(;_0x579715;)_0x5f2de2[_0x1e3ed2(0x1c1)](_0x579715,_0x322a45[_0x1e3ed2(0x200)][_0x32de02]),_0x579715=_0x579715[_0x1e3ed2(0x162)];}return{'modelFragment':_0xccac05,'anchorData':_0x5f2de2};}[_0x2eeabb(0x163)](_0x19e2e7,_0x8d9fdd,_0xef0ceb,_0xc1cdbe,_0xff0d12){const _0x2ddc57=_0x2eeabb,_0x39fee8=this[_0x2ddc57(0x1e7)][_0x2ddc57(0x1ec)][_0x2ddc57(0x166)](_0x58b19e),_0x494153=this[_0x2ddc57(0x1e7)][_0x2ddc57(0x1ec)][_0x2ddc57(0x166)](_0x19ec3b),_0x2d0acd=this[_0x2ddc57(0x1e7)][_0x2ddc57(0x235)][_0x2ddc57(0x18c)][_0x2ddc57(0x249)],_0x819cdf=_0x39fee8[_0x2ddc57(0x213)](_0x8d9fdd),_0x2b0f08=this[_0x2ddc57(0x1e7)][_0x2ddc57(0x233)][_0x2ddc57(0x202)][_0x2ddc57(0x179)](_0x819cdf),_0xe55d71=this[_0x2ddc57(0x1e7)][_0x2ddc57(0x235)][_0x2ddc57(0x18c)][_0x2ddc57(0x241)],_0xd5cdff=[..._0x2d0acd[_0x2ddc57(0x22a)]()];let _0x337596=this[_0x2ddc57(0x1e7)][_0x2ddc57(0x20b)][_0x2ddc57(0x166)](_0x2ddc57(0x1cd))||[..._0x30ba48];this[_0x2ddc57(0x1e7)][_0x2ddc57(0x1ec)][_0x2ddc57(0x181)](_0x2ddc57(0x17d))||(_0x337596=_0x337596[_0x2ddc57(0x1fb)](_0x5755e9=>_0x2ddc57(0x1ee)!=_0x5755e9));const _0x46b403=new _0x28f346(this[_0x2ddc57(0x1e7)][_0x2ddc57(0x20c)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x2ddc57(0x176),'customView':this[_0x2ddc57(0x172)]},'showUnchangedParts':!0x0,'availableActions':_0x337596},this[_0x2ddc57(0x212)]);return _0x494153[_0x2ddc57(0x1c8)]({'index':0x3e8*Math[_0x2ddc57(0x24b)]()%0x3e8,'title':_0xc1cdbe,'icon':_0xff0d12||_0x1530d9,'mainView':_0x46b403,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x2ddc57(0x1e7)][_0x2ddc57(0x1ec)][_0x2ddc57(0x181)](_0x2ddc57(0x17d)),'ranges':_0xd5cdff}),this[_0x2ddc57(0x1fc)](_0x46b403,_0x494153),this[_0x2ddc57(0x195)](_0x494153,_0x2ddc57(0x1b0),()=>{const _0x5c9b7d=_0x2ddc57;this[_0x5c9b7d(0x242)](_0x8d9fdd,_0xef0ceb,!0x1);}),this[_0x2ddc57(0x195)](_0x494153,_0x2ddc57(0x1ee),()=>{const _0x76aaeb=_0x2ddc57;this[_0x76aaeb(0x242)](_0x8d9fdd,_0xef0ceb,!0x0);}),this[_0x2ddc57(0x195)](_0x494153,_0x2ddc57(0x19a),()=>{const _0x36c769=_0x2ddc57;this[_0x36c769(0x1a8)](),this[_0x36c769(0x19e)]();}),this[_0x2ddc57(0x195)](_0x494153,_0x2ddc57(0x207),()=>{const _0x4469e0=_0x2ddc57;if(this[_0x4469e0(0x161)]&&this[_0x4469e0(0x161)][_0x4469e0(0x1ae)][_0x4469e0(0x17f)]>0x0){const _0x43f657=this[_0x4469e0(0x161)][_0x4469e0(0x1ae)][this[_0x4469e0(0x161)][_0x4469e0(0x1ae)][_0x4469e0(0x17f)]-0x1],_0x385213=_0x43f657[_0x4469e0(0x1f1)][0x0];_0x385213&&_0x4469e0(0x22e)===_0x385213[_0x4469e0(0x225)]&&_0x43f657[_0x4469e0(0x1e8)](0x0,_0x4469e0(0x180));}this[_0x4469e0(0x1a8)](),this[_0x4469e0(0x1fd)](),this[_0x4469e0(0x193)](_0x494153);}),this[_0x2ddc57(0x1f9)](_0x2b0f08,_0xe55d71,_0x46b403,_0x494153,_0x19e2e7);}[_0x2eeabb(0x246)](_0x5876b0,_0x58367b,_0x4779fd){const _0x59e739=_0x2eeabb,_0x1770ed=this[_0x59e739(0x1e7)][_0x59e739(0x235)][_0x59e739(0x22b)](_0x58367b,_0x4779fd)[_0x59e739(0x244)](),_0x3291fd=_0x1770ed['is'](_0x59e739(0x182))?[]:_0x1770ed[_0x59e739(0x18d)]({'includeSelf':!0x0})[_0x59e739(0x238)](0x1);if(_0x3291fd[_0x59e739(0x17f)]){const _0x13093e=_0x3291fd[_0x59e739(0x19c)](_0x24d2e4=>_0x24d2e4[_0x59e739(0x19f)](!0x1));for(let _0x4921e4=0x1;_0x4921e4<_0x13093e[_0x59e739(0x17f)];_0x4921e4++)_0x13093e[_0x4921e4-0x1][_0x59e739(0x20d)](_0x13093e[_0x4921e4]);return _0x13093e[_0x13093e[_0x59e739(0x17f)]-0x1][_0x59e739(0x20d)](_0x5876b0),new _0x94c305(_0x13093e[0x0]);}return _0x5876b0;}async[_0x2eeabb(0x1f9)](_0xec9843,_0x201dca,_0x2aca1f,_0x18c5e9,_0x262ee6){const _0x490fd3=_0x2eeabb,_0x5dfa6b=this[_0x490fd3(0x1e7)];this[_0x490fd3(0x226)]={'action':_0x262ee6,'content':_0xec9843,'version':_0x201dca,'mainView':_0x2aca1f,'aiBalloon':_0x18c5e9};const _0x4aacfa=new _0x5e2469({'connector':this[_0x490fd3(0x1dc)],'editor':_0x5dfa6b,'content':_0xec9843,'version':_0x201dca,..._0x262ee6});this[_0x490fd3(0x18f)][_0x490fd3(0x1c5)](_0x4aacfa),_0x2aca1f[_0x490fd3(0x1f3)]();const _0x297e9c=(_0x577ebc,_0x317371,_0x6870ec=!0x1,_0x1c28d0=_0x490fd3(0x189))=>this[_0x490fd3(0x1a1)][_0x490fd3(0x1d8)](async _0x247d2f=>{const _0x1c0421=_0x490fd3;try{const _0x8e9d24=_0x194eb6({'editor':_0x5dfa6b,'changeGroups':_0x577ebc[_0x1c0421(0x1f1)],'documentContextContent':_0x577ebc[_0x1c0421(0x23c)],'showDiff':_0x6870ec,'trimUnchanged':!0x1});await _0x317371[_0x1c0421(0x1e9)]({'parts':_0x8e9d24,'renderingStrategy':_0x1c28d0,'abortSignal':_0x247d2f});}catch(_0x309e41){if(this[_0x1c0421(0x1ea)](_0x309e41))return;throw _0x309e41;}});this[_0x490fd3(0x161)]['on'](_0x490fd3(0x209),(_0x4dde29,_0x1fa7e2)=>{const _0x3727e2=_0x490fd3;_0x2aca1f[_0x3727e2(0x1a9)](),_0x18c5e9[_0x3727e2(0x1ab)](),_0x297e9c(_0x1fa7e2,_0x2aca1f)[_0x3727e2(0x19d)](_0x285969=>{const _0x35431e=_0x3727e2;this[_0x35431e(0x1ea)](_0x285969)||(console[_0x35431e(0x1b7)](_0x35431e(0x1b4),_0x285969),this[_0x35431e(0x174)](_0x4aacfa,_0x2aca1f));});}),this[_0x490fd3(0x161)]['on'](_0x490fd3(0x160),(_0x3532d4,_0x5da737)=>{const _0x20fd7e=_0x490fd3;_0x297e9c(_0x5da737,_0x2aca1f)[_0x20fd7e(0x19d)](_0x2caa82=>{const _0x343161=_0x20fd7e;this[_0x343161(0x1ea)](_0x2caa82)||(console[_0x343161(0x1b7)](_0x343161(0x21e),_0x2caa82),this[_0x343161(0x174)](_0x4aacfa,_0x2aca1f));});}),this[_0x490fd3(0x161)]['on'](_0x490fd3(0x1ff),async()=>{const _0x265503=_0x490fd3;try{await this[_0x265503(0x1d0)](_0x2aca1f,_0x18c5e9),this[_0x265503(0x173)](),await this[_0x265503(0x1a1)][_0x265503(0x1f5)];}catch(_0x5273af){this[_0x265503(0x1ea)](_0x5273af)||(console[_0x265503(0x1b7)](_0x265503(0x1bf),_0x5273af),this[_0x265503(0x174)](_0x4aacfa,_0x2aca1f));}finally{_0x18c5e9[_0x265503(0x197)]();}}),this[_0x490fd3(0x195)](_0x2aca1f,_0x490fd3(0x1c4),async(_0x1205a3,{showDiff:_0x1ffca2})=>{const _0x514075=_0x490fd3;try{this[_0x514075(0x1a6)]=_0x1ffca2;const _0x4227ec=this[_0x514075(0x161)][_0x514075(0x1ae)][this[_0x514075(0x161)][_0x514075(0x1ae)][_0x514075(0x17f)]-0x1];_0x4227ec&&await _0x297e9c(_0x4227ec,_0x2aca1f,_0x1ffca2,_0x514075(0x165));}catch(_0x4c814b){this[_0x514075(0x1ea)](_0x4c814b)||(console[_0x514075(0x1b7)](_0x514075(0x196),_0x4c814b),this[_0x514075(0x174)](_0x4aacfa,_0x2aca1f));}}),this[_0x490fd3(0x161)]['on'](_0x490fd3(0x22d),(_0x59793b,{reply:_0xb0e377})=>{const _0x5dac73=_0x490fd3,_0x565f46={'positiveCount':_0xb0e377[_0x5dac73(0x1f1)][_0x5dac73(0x1fb)](_0x3805ec=>_0x5dac73(0x222)===_0x3805ec[_0x5dac73(0x225)])[_0x5dac73(0x17f)],'totalCount':_0xb0e377[_0x5dac73(0x1f1)][_0x5dac73(0x17f)]},_0x43d30a=this[_0x5dac73(0x161)][_0x5dac73(0x1c2)],_0x772ee4=this[_0x5dac73(0x161)][_0x5dac73(0x16f)];_0x772ee4?this[_0x5dac73(0x1dc)][_0x5dac73(0x219)](_0x772ee4,_0x43d30a,_0x565f46):this[_0x5dac73(0x1dc)][_0x5dac73(0x20f)](_0x43d30a,_0x565f46);}),this[_0x490fd3(0x1fc)](_0x2aca1f,_0x18c5e9);try{const _0xe95954=await this[_0x490fd3(0x161)][_0x490fd3(0x190)]();return this[_0x490fd3(0x173)](),_0xe95954;}catch(_0x516469){if(this[_0x490fd3(0x1ea)](_0x516469))return;_0x2aca1f[_0x490fd3(0x1a9)](),this[_0x490fd3(0x174)](_0x4aacfa,_0x2aca1f);}}[_0x2eeabb(0x242)](_0xe83e76,_0x1d54ba,_0x2258b4){const _0x2b610f=_0x2eeabb,_0x5dafe2=this[_0x2b610f(0x1e7)];if(_0x2258b4&&!_0x5dafe2[_0x2b610f(0x1ec)][_0x2b610f(0x181)](_0x2b610f(0x17d)))throw new _0x1a5355(_0x2b610f(0x210),null);const _0x3cb45f=this[_0x2b610f(0x1e7)][_0x2b610f(0x1ec)][_0x2b610f(0x166)](_0x3ea68e),_0x5ab7d9=this[_0x2b610f(0x161)],_0x484eb2=this[_0x2b610f(0x161)][_0x2b610f(0x1ae)][this[_0x2b610f(0x161)][_0x2b610f(0x1ae)][_0x2b610f(0x17f)]-0x1],_0x1f0384=_0x484eb2[_0x2b610f(0x1f1)];_0x484eb2[_0x2b610f(0x1e8)](0x0,_0x2b610f(0x222));let _0x16ddde=_0x48ed0a({'editor':_0x5dafe2,'reply':_0x484eb2,'interaction':_0x5ab7d9,'groups':_0x1f0384,'transform':!0x1,'documentCompare':_0x3cb45f,'documentCompareOptions':{'anchor':_0x5dafe2[_0x2b610f(0x235)][_0x2b610f(0x1e2)](_0xe83e76,0x0),'markDeletions':_0x2258b4}});_0x16ddde=this[_0x2b610f(0x17e)](_0x16ddde,_0x1d54ba);for(const _0x32c929 of _0x16ddde)this[_0x2b610f(0x1b6)](_0x1d54ba,_0x32c929,_0x5dafe2[_0x2b610f(0x235)][_0x2b610f(0x18c)][_0x2b610f(0x24a)]());const _0x221824=_0x5ab7d9[_0x2b610f(0x1e6)]()[_0x2b610f(0x241)],_0x51fae3=_0x5dafe2[_0x2b610f(0x235)][_0x2b610f(0x18c)][_0x2b610f(0x1c7)][_0x2b610f(0x245)](_0x221824),_0x39c0e9={'document':_0x5dafe2[_0x2b610f(0x235)][_0x2b610f(0x18c)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x5cc2ab=_0x3ea885(_0x16ddde,_0x51fae3,_0x39c0e9)[_0x2b610f(0x204)];_0x5dafe2[_0x2b610f(0x235)][_0x2b610f(0x1d4)](_0x50ccf4=>{const _0x281009=_0x2b610f;if(_0x50ccf4[_0x281009(0x206)](_0x5dafe2[_0x281009(0x235)][_0x281009(0x18c)][_0x281009(0x249)][_0x281009(0x18b)]),_0x2258b4)_0x5dafe2[_0x281009(0x1ec)][_0x281009(0x166)](_0x281009(0x1c3))[_0x281009(0x1e1)](_0x5cc2ab);else{for(const _0x2cccce of _0x5cc2ab)_0x2cccce[_0x281009(0x1fe)]=_0x5dafe2[_0x281009(0x235)][_0x281009(0x18c)][_0x281009(0x241)],_0x33cead(_0x5dafe2,_0x2cccce),_0x50ccf4[_0x281009(0x228)][_0x281009(0x18e)](_0x2cccce),_0x5dafe2[_0x281009(0x235)][_0x281009(0x23f)](_0x2cccce);}}),this[_0x2b610f(0x1e7)][_0x2b610f(0x1ec)][_0x2b610f(0x166)](_0x2b610f(0x214))[_0x2b610f(0x227)]();}[_0x2eeabb(0x17e)](_0x5e0e96,_0x342e7){const _0x1580d8=_0x2eeabb;return _0x5e0e96[_0x1580d8(0x1fb)](_0x1739e0=>{const _0x24a48d=_0x1580d8;if(_0x24a48d(0x1d3)==_0x1739e0[_0x24a48d(0x16d)]){const _0x4d6a37=_0x1739e0[_0x24a48d(0x1ed)][_0x24a48d(0x185)];return!_0x342e7[_0x24a48d(0x181)](_0x4d6a37);}if(_0x1739e0[_0x24a48d(0x16d)][_0x24a48d(0x1df)](_0x24a48d(0x199))>-0x1){const _0x5c4fe9=_0x1739e0[_0x24a48d(0x1ba)][_0x24a48d(0x190)][_0x24a48d(0x185)];return!_0x342e7[_0x24a48d(0x181)](_0x5c4fe9);}return!0x0;});}[_0x2eeabb(0x1b6)](_0x3376b2,_0x1cb2bf,_0x379c0f){const _0x27219b=_0x2eeabb,_0x223254=_0x1cb2bf[_0x27219b(0x16c)]();for(const _0x502aad in _0x1cb2bf){const _0x4663b9=_0x1cb2bf[_0x502aad];_0x4663b9 instanceof _0x1d9f3b?_0x1cb2bf[_0x502aad]=new _0x1d9f3b(_0x2a814f(_0x4663b9[_0x27219b(0x190)]),_0x2a814f(_0x4663b9[_0x27219b(0x194)])):_0x4663b9 instanceof _0x28c289&&(_0x1cb2bf[_0x502aad]=_0x2a814f(_0x4663b9));}if([_0x27219b(0x21d),_0x27219b(0x17b),_0x27219b(0x237),_0x27219b(0x1da),_0x27219b(0x1b9),_0x27219b(0x184)][_0x27219b(0x215)](_0x223254[_0x27219b(0x16d)])){if(_0x223254[_0x27219b(0x217)]=!0x1,_0x223254[_0x27219b(0x1fe)]=null,_0x27219b(0x237)==_0x223254[_0x27219b(0x16d)]){const _0x36f33e=_0x223254[_0x27219b(0x168)],_0x266395=_0x223254[_0x27219b(0x1db)];new _0x59f959(_0x36f33e,_0x266395)[_0x27219b(0x191)]();}else _0x223254[_0x27219b(0x191)]();}function _0x2a814f(_0x43fb5b){const _0x149c5c=_0x27219b;if(_0x149c5c(0x198)==_0x43fb5b[_0x149c5c(0x1be)][_0x149c5c(0x22f)])return _0x43fb5b;const _0x5cb216=[];let _0x3f2222=_0x43fb5b[_0x149c5c(0x1be)];for(let _0x4cbb91=0x0;_0x4cbb91<_0x43fb5b[_0x149c5c(0x200)][_0x149c5c(0x17f)];_0x4cbb91++){const _0x57612d=_0x3376b2[_0x149c5c(0x166)](_0x3f2222)||0x0;_0x5cb216[_0x4cbb91]=_0x43fb5b[_0x149c5c(0x200)][_0x4cbb91]+_0x57612d,_0x3f2222=_0x3f2222[_0x149c5c(0x1dd)](_0x43fb5b[_0x149c5c(0x200)][_0x4cbb91]);}return new _0x28c289(_0x379c0f,_0x5cb216,_0x43fb5b[_0x149c5c(0x1c9)]);}}[_0x2eeabb(0x1b1)](){const _0x1e39b3=_0x2eeabb;if(!this[_0x1e39b3(0x226)])return;this[_0x1e39b3(0x18f)][_0x1e39b3(0x17f)]>0x0&&this[_0x1e39b3(0x1a8)](),this[_0x1e39b3(0x16b)]=0x0,this[_0x1e39b3(0x1a6)]=!0x1;const {action:_0x79b9c,content:_0x5e18bd,version:_0x102190,mainView:_0x15889c,aiBalloon:_0x52eca5}=this[_0x1e39b3(0x226)];_0x15889c[_0x1e39b3(0x175)]=!0x1,_0x15889c[_0x1e39b3(0x1f3)](),this[_0x1e39b3(0x1a0)](_0x15889c,_0x52eca5);const _0x5595dc=_0x15889c;_0x5595dc[_0x1e39b3(0x247)]&&_0x5595dc[_0x1e39b3(0x247)][_0x1e39b3(0x187)]&&_0x5595dc[_0x1e39b3(0x247)][_0x1e39b3(0x187)][_0x1e39b3(0x1c1)]({'isOn':!0x1,'icon':_0x5026f4}),this[_0x1e39b3(0x1aa)](_0x15889c),_0x15889c[_0x1e39b3(0x1af)](),this[_0x1e39b3(0x173)](),this[_0x1e39b3(0x193)](_0x15889c),this[_0x1e39b3(0x1f9)](_0x5e18bd,_0x102190,_0x15889c,_0x52eca5,_0x79b9c)[_0x1e39b3(0x19d)](_0x4fcdf3=>{const _0x90b064=_0x1e39b3;this[_0x90b064(0x1ea)](_0x4fcdf3)||console[_0x90b064(0x1b7)](_0x90b064(0x1a2),_0x4fcdf3);});}[_0x2eeabb(0x1aa)](_0x258ced){const _0x1a5e2e=_0x2eeabb,_0x193f3d=_0x258ced[_0x1a5e2e(0x1a7)][_0x1a5e2e(0x216)];for(;_0x193f3d[_0x1a5e2e(0x17f)]>0x0;)_0x193f3d[_0x1a5e2e(0x237)](_0x193f3d[_0x1a5e2e(0x1d9)]);_0x258ced[_0x1a5e2e(0x1a7)][_0x1a5e2e(0x203)]=!0x1;}[_0x2eeabb(0x1ea)](_0x31b578){const _0x5e4b30=_0x2eeabb;return!!_0x31b578[_0x5e4b30(0x1d1)]&&_0x31b578[_0x5e4b30(0x1d1)][_0x5e4b30(0x208)](_0x5e4b30(0x21b));}[_0x2eeabb(0x1fd)](){const _0x1c7764=_0x2eeabb;this[_0x1c7764(0x18f)]=[],this[_0x1c7764(0x226)]=void 0x0,this[_0x1c7764(0x16b)]=0x0,this[_0x1c7764(0x173)]();}[_0x2eeabb(0x1a8)](){const _0x366c6f=_0x2eeabb;this[_0x366c6f(0x161)]&&this[_0x366c6f(0x161)][_0x366c6f(0x1cb)](),this[_0x366c6f(0x1a1)][_0x366c6f(0x169)](),this[_0x366c6f(0x1d5)]=!0x1,this[_0x366c6f(0x226)]&&this[_0x366c6f(0x226)][_0x366c6f(0x17c)][_0x366c6f(0x197)]();}[_0x2eeabb(0x1e4)](){const _0x2ebe05=_0x2eeabb,_0x1739b0=new _0x339298(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)]),_0x213c96=new _0x339298(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)]),_0x306dae=new _0x48f5c5(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)]),_0x565b13=new _0x339298(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)]);_0x1739b0[_0x2ebe05(0x1c1)]({'icon':_0x3c65ac,'label':_0x118c41(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)],_0x2ebe05(0x19b)),'tooltip':!0x0,'class':_0x2ebe05(0x1eb)}),_0x213c96[_0x2ebe05(0x1c1)]({'icon':_0x5d872f,'tooltip':_0x118c41(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)],_0x2ebe05(0x1ad)),'class':_0x2ebe05(0x230)}),_0x306dae[_0x2ebe05(0x211)]({'tag':_0x2ebe05(0x248),'attributes':{'class':[_0x2ebe05(0x236)]},'children':[_0x2ebe05(0x1d2)]}),_0x565b13[_0x2ebe05(0x1c1)]({'icon':_0x2150a1,'tooltip':_0x118c41(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)],_0x2ebe05(0x1b3)),'class':_0x2ebe05(0x23d)}),_0x1739b0[_0x2ebe05(0x1cf)](_0x2ebe05(0x1ce))['to'](this,_0x2ebe05(0x1d5),_0x18f700=>!_0x18f700),_0x1739b0['on'](_0x2ebe05(0x1f8),()=>{const _0x3a3cd2=_0x2ebe05;this[_0x3a3cd2(0x1b1)]();}),_0x213c96[_0x2ebe05(0x1cf)](_0x2ebe05(0x1ce))['to'](this,_0x2ebe05(0x1d5),_0x45ab7c=>!_0x45ab7c),_0x213c96['on'](_0x2ebe05(0x1f8),()=>{const _0x590db5=_0x2ebe05;this[_0x590db5(0x23e)]();}),_0x565b13[_0x2ebe05(0x1cf)](_0x2ebe05(0x1ce))['to'](this,_0x2ebe05(0x1d5),_0xb57df8=>!_0xb57df8),_0x565b13['on'](_0x2ebe05(0x1f8),()=>{const _0x28a6a4=_0x2ebe05;this[_0x28a6a4(0x1c0)]();}),this[_0x2ebe05(0x186)]=_0x213c96,this[_0x2ebe05(0x1f0)]=_0x306dae,this[_0x2ebe05(0x167)]=_0x565b13,this[_0x2ebe05(0x172)][_0x2ebe05(0x1e0)](_0x1739b0);}[_0x2eeabb(0x23e)](){const _0x55ea96=_0x2eeabb,_0x175657=this[_0x55ea96(0x18f)][_0x55ea96(0x17f)];this[_0x55ea96(0x16b)]<_0x175657-0x1&&this[_0x55ea96(0x1f6)](this[_0x55ea96(0x16b)]+0x1);}[_0x2eeabb(0x1c0)](){const _0x4efcb1=_0x2eeabb;this[_0x4efcb1(0x16b)]>0x0&&this[_0x4efcb1(0x1f6)](this[_0x4efcb1(0x16b)]-0x1);}async[_0x2eeabb(0x1f6)](_0x13cd12){const _0x57d522=_0x2eeabb;if(!this[_0x57d522(0x226)])return;this[_0x57d522(0x16b)]=_0x13cd12;const {mainView:_0x5a8c41}=this[_0x57d522(0x226)],_0x153a95=this[_0x57d522(0x18f)][this[_0x57d522(0x18f)][_0x57d522(0x17f)]-0x1-this[_0x57d522(0x16b)]];if(!_0x153a95)return;if(_0x153a95[_0x57d522(0x220)])return this[_0x57d522(0x174)](_0x153a95,_0x5a8c41),void this[_0x57d522(0x173)]();if(!_0x153a95[_0x57d522(0x1ae)][_0x57d522(0x17f)])return;_0x5a8c41[_0x57d522(0x1f3)](),this[_0x57d522(0x226)]&&this[_0x57d522(0x1a0)](_0x5a8c41,this[_0x57d522(0x226)][_0x57d522(0x17c)]);const _0x3d382a=_0x153a95[_0x57d522(0x1ae)][_0x153a95[_0x57d522(0x1ae)][_0x57d522(0x17f)]-0x1];if(_0x3d382a){const _0x1eff5a=this[_0x57d522(0x1e7)];this[_0x57d522(0x1aa)](_0x5a8c41);try{const _0x5ce30d=_0x194eb6({'editor':_0x1eff5a,'changeGroups':_0x3d382a[_0x57d522(0x1f1)],'documentContextContent':_0x3d382a[_0x57d522(0x23c)],'showDiff':this[_0x57d522(0x1a6)],'trimUnchanged':!0x1});this[_0x57d522(0x1aa)](_0x5a8c41),await new Promise(_0x437c9f=>setTimeout(_0x437c9f,0x32)),await _0x5a8c41[_0x57d522(0x1e9)]({'parts':_0x5ce30d,'renderingStrategy':_0x57d522(0x165),'abortSignal':new AbortController()[_0x57d522(0x18a)]});}catch(_0x406f6c){this[_0x57d522(0x1ea)](_0x406f6c)||console[_0x57d522(0x1b7)](_0x57d522(0x1bb),_0x406f6c);}}this[_0x57d522(0x173)]();}[_0x2eeabb(0x173)](){const _0x42db4a=_0x2eeabb;if(!this[_0x42db4a(0x186)]||!this[_0x42db4a(0x1f0)]||!this[_0x42db4a(0x167)])return;const _0x39275f=this[_0x42db4a(0x18f)][_0x42db4a(0x17f)],_0x2a05df=_0x39275f>0x1,_0x59fe2e=this[_0x42db4a(0x226)]?.[_0x42db4a(0x221)];if(_0x2a05df){this[_0x42db4a(0x1a5)]||this[_0x42db4a(0x1b8)]||this[_0x42db4a(0x164)]||(this[_0x42db4a(0x172)][_0x42db4a(0x1e0)](this[_0x42db4a(0x186)]),_0x59fe2e?.[_0x42db4a(0x1ef)](this[_0x42db4a(0x186)]),this[_0x42db4a(0x1a5)]=!0x0,this[_0x42db4a(0x172)][_0x42db4a(0x1e0)](this[_0x42db4a(0x1f0)]),_0x59fe2e?.[_0x42db4a(0x1ef)](this[_0x42db4a(0x1f0)]),this[_0x42db4a(0x1b8)]=!0x0,this[_0x42db4a(0x172)][_0x42db4a(0x1e0)](this[_0x42db4a(0x167)]),_0x59fe2e?.[_0x42db4a(0x1ef)](this[_0x42db4a(0x167)]),this[_0x42db4a(0x164)]=!0x0);const _0x2475fe=_0x39275f-this[_0x42db4a(0x16b)];this[_0x42db4a(0x1f0)][_0x42db4a(0x224)]&&(this[_0x42db4a(0x1f0)][_0x42db4a(0x224)][_0x42db4a(0x1f4)]=_0x2475fe+'/'+_0x39275f),this[_0x42db4a(0x186)][_0x42db4a(0x1ce)]=this[_0x42db4a(0x16b)]<_0x39275f-0x1,this[_0x42db4a(0x167)][_0x42db4a(0x1ce)]=this[_0x42db4a(0x16b)]>0x0;}else(this[_0x42db4a(0x1a5)]||this[_0x42db4a(0x1b8)]||this[_0x42db4a(0x164)])&&(this[_0x42db4a(0x172)][_0x42db4a(0x237)](this[_0x42db4a(0x186)]),_0x59fe2e?.[_0x42db4a(0x1f7)](this[_0x42db4a(0x186)]),this[_0x42db4a(0x1a5)]=!0x1,this[_0x42db4a(0x172)][_0x42db4a(0x237)](this[_0x42db4a(0x1f0)]),_0x59fe2e?.[_0x42db4a(0x1f7)](this[_0x42db4a(0x1f0)]),this[_0x42db4a(0x1b8)]=!0x1,this[_0x42db4a(0x172)][_0x42db4a(0x237)](this[_0x42db4a(0x167)]),_0x59fe2e?.[_0x42db4a(0x1f7)](this[_0x42db4a(0x167)]),this[_0x42db4a(0x164)]=!0x1);}[_0x2eeabb(0x1fc)](_0x5e644c,_0xb3b0cc){const _0x5ddea2=_0x2eeabb;_0x5e644c[_0x5ddea2(0x1b2)](),_0xb3b0cc[_0x5ddea2(0x20e)][_0x5ddea2(0x1b2)](),this[_0x5ddea2(0x1d5)]=!0x0;}async[_0x2eeabb(0x174)](_0x5a8cdc,_0xbfeaea){const _0x530d92=_0x2eeabb,_0x435821=_0x118c41(this[_0x530d92(0x1e7)][_0x530d92(0x20c)],_0x530d92(0x21f));_0xbfeaea[_0x530d92(0x24c)](_0x435821),_0x5a8cdc[_0x530d92(0x220)]=!0x0,await this[_0x530d92(0x1a1)][_0x530d92(0x1f5)],_0xbfeaea[_0x530d92(0x188)](),this[_0x530d92(0x226)]?.[_0x530d92(0x17c)][_0x530d92(0x20e)][_0x530d92(0x22c)]&&(this[_0x530d92(0x226)][_0x530d92(0x17c)][_0x530d92(0x20e)][_0x530d92(0x22c)][_0x530d92(0x1a4)]=!0x0);}[_0x2eeabb(0x1a0)](_0x38d15b,_0x36db1d){const _0x478250=_0x2eeabb;_0x38d15b[_0x478250(0x20a)](),_0x36db1d[_0x478250(0x20e)][_0x478250(0x22c)]&&(_0x36db1d[_0x478250(0x20e)][_0x478250(0x22c)][_0x478250(0x1a4)]=!0x1);}async[_0x2eeabb(0x1d0)](_0x1325e9,_0x29ff15){const _0x312453=_0x2eeabb;await this[_0x312453(0x1a1)][_0x312453(0x1f5)],this[_0x312453(0x1d5)]=!0x1,_0x1325e9[_0x312453(0x240)](),_0x29ff15[_0x312453(0x20e)][_0x312453(0x240)]();}[_0x2eeabb(0x19e)](){const _0x58bc46=_0x2eeabb;this[_0x58bc46(0x172)][_0x58bc46(0x1e3)](_0x3debf6=>{const _0x16f2b5=_0x58bc46;_0x16f2b5(0x1ce)in _0x3debf6&&(_0x3debf6[_0x16f2b5(0x1ce)]=!0x1);});}}
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);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11b057=_0x305f;function _0x305f(_0x1a900e,_0x31d1a0){const _0x1f6eec=_0x1f6e();return _0x305f=function(_0x305f96,_0x475f86){_0x305f96=_0x305f96-0x9f;let _0x1cf124=_0x1f6eec[_0x305f96];return _0x1cf124;},_0x305f(_0x1a900e,_0x31d1a0);}(function(_0x352da9,_0xab31e4){const _0x136547=_0x305f,_0x3209c7=_0x352da9();while(!![]){try{const _0x41f24d=parseInt(_0x136547(0xb4))/0x1*(-parseInt(_0x136547(0xa7))/0x2)+parseInt(_0x136547(0xbd))/0x3*(parseInt(_0x136547(0xbf))/0x4)+parseInt(_0x136547(0xb2))/0x5*(parseInt(_0x136547(0xb7))/0x6)+-parseInt(_0x136547(0xac))/0x7+-parseInt(_0x136547(0xa8))/0x8*(-parseInt(_0x136547(0xb1))/0x9)+-parseInt(_0x136547(0xbb))/0xa+-parseInt(_0x136547(0xa9))/0xb;if(_0x41f24d===_0xab31e4)break;else _0x3209c7['push'](_0x3209c7['shift']());}catch(_0x5b317a){_0x3209c7['push'](_0x3209c7['shift']());}}}(_0x1f6e,0x20b40));import{AIInteraction as _0x591631,AI_MODEL_EVENT_NAMES as _0x10578b}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x45e07d}from'../../aicore/model/aicontext.js';function _0x1f6e(){const _0x1cf14f=['executeCustomAction','delegate','createReply','1755130mxlVCX','version','365409NNODJp','executeAction','4YOptUw','connector','content','userMessage','model','push','Current\x20document','hasError','html','replyCreated','138VCuIiP','104UjiKfZ','785037tTdCBX','args','TEXT','77105OkhqRn','getDocumentContext','editor','sendRequest','replies','168417UVgbpi','5590Vkplda','fire','3209zuBuph','actionName','current-document','1332IbwSxk'];_0x1f6e=function(){return _0x1cf14f;};return _0x1f6e();}import{AIActionsReply as _0x2e73c0}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x591631{[_0x11b057(0x9f)];[_0x11b057(0xbc)];[_0x11b057(0xb5)];[_0x11b057(0xaa)];[_0x11b057(0xa0)];[_0x11b057(0xa1)];[_0x11b057(0xa4)]=!0x1;constructor(_0x59a3e6){const _0x2fd036=_0x11b057;super(_0x59a3e6),this[_0x2fd036(0x9f)]=_0x59a3e6[_0x2fd036(0x9f)],this[_0x2fd036(0xbc)]=_0x59a3e6[_0x2fd036(0xbc)],this[_0x2fd036(0xb5)]=_0x59a3e6[_0x2fd036(0xb5)],this[_0x2fd036(0xaa)]=_0x59a3e6[_0x2fd036(0xaa)],this[_0x2fd036(0xa0)]=_0x59a3e6[_0x2fd036(0xa0)],this[_0x2fd036(0xa1)]=_0x59a3e6[_0x2fd036(0xa1)];}async[_0x11b057(0xaf)](){const _0x21ce41=_0x11b057;return this[_0x21ce41(0xb5)]?this[_0x21ce41(0xc0)][_0x21ce41(0xbe)]({'content':this[_0x21ce41(0x9f)],'actionName':this[_0x21ce41(0xb5)],'args':this[_0x21ce41(0xaa)]}):this[_0x21ce41(0xc0)][_0x21ce41(0xb8)]({'content':this[_0x21ce41(0x9f)],'message':this[_0x21ce41(0xa0)],'model':this[_0x21ce41(0xa1)],'outputFormat':_0x21ce41(0xa5)});}[_0x11b057(0xad)](){const _0x2d1ea2=_0x11b057;return{'type':_0x45e07d[_0x2d1ea2(0xab)],'content':this[_0x2d1ea2(0x9f)],'version':this[_0x2d1ea2(0xbc)],'label':_0x2d1ea2(0xa3),'uiId':_0x2d1ea2(0xb6)};}[_0x11b057(0xba)](_0x3d96f6){const _0x4e8b70=_0x11b057,_0x2314f0=new _0x2e73c0({'editor':this[_0x4e8b70(0xae)],'documentContextContent':this[_0x4e8b70(0x9f)],..._0x3d96f6});return this[_0x4e8b70(0xb0)][_0x4e8b70(0xa2)](_0x2314f0),_0x2314f0[_0x4e8b70(0xb9)](..._0x10578b)['to'](this),this[_0x4e8b70(0xb3)](_0x4e8b70(0xa6),_0x2314f0),_0x2314f0;}}
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;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x585b5b=_0x3f2f;(function(_0x5c273c,_0x11b80e){const _0x4c97ba=_0x3f2f,_0x268daf=_0x5c273c();while(!![]){try{const _0x3d885b=parseInt(_0x4c97ba(0x157))/0x1+parseInt(_0x4c97ba(0x155))/0x2+parseInt(_0x4c97ba(0x144))/0x3+parseInt(_0x4c97ba(0x15a))/0x4+parseInt(_0x4c97ba(0x146))/0x5*(-parseInt(_0x4c97ba(0x14d))/0x6)+parseInt(_0x4c97ba(0x153))/0x7*(-parseInt(_0x4c97ba(0x152))/0x8)+parseInt(_0x4c97ba(0x142))/0x9;if(_0x3d885b===_0x11b80e)break;else _0x268daf['push'](_0x268daf['shift']());}catch(_0x4e271a){_0x268daf['push'](_0x268daf['shift']());}}}(_0x381b,0x5ce29));import{AIReply as _0xe0c763}from'../../aicore/model/aireply.js';import{getAttribute as _0x332fd7}from'../../aicore/utils/htmlparser.js';import{uid as _0x44c8bd}from'ckeditor5/src/utils.js';function _0x381b(){const _0x27d7c8=['parsedContent','updateChangeGroups','value','isDone','96lsijSN','294434wDvMUg','map','319246TrfhEs','added','404794hCzFuh','pending','parsedMergedContent','515988UBqoMw','data-id','documentContextContent','cloneNode','pop','children','2337354lyQSbp','length','1183128RnedWv','node','5QfGtKT','new','childNodes','_getDifferentChangeGroups','changeGroups','removed','modified','2773770jkLBev'];_0x381b=function(){return _0x27d7c8;};return _0x381b();}import{diffArrays as _0x42423b}from'diff';function _0x3f2f(_0x3d8639,_0x1dba7a){const _0x381b25=_0x381b();return _0x3f2f=function(_0x3f2f8b,_0x1a0a75){_0x3f2f8b=_0x3f2f8b-0x13d;let _0x5b112e=_0x381b25[_0x3f2f8b];return _0x5b112e;},_0x3f2f(_0x3d8639,_0x1dba7a);}export class AIActionsReply extends _0xe0c763{[_0x585b5b(0x14f)](){const _0x2eed41=_0x585b5b;if(this[_0x2eed41(0x159)]=this[_0x2eed41(0x14e)][_0x2eed41(0x13f)](!0x0),0x0==this[_0x2eed41(0x159)][_0x2eed41(0x148)][_0x2eed41(0x143)])return void(this[_0x2eed41(0x14a)]=[]);const _0x294ba6=this[_0x2eed41(0x13e)][_0x2eed41(0x141)][_0x2eed41(0x154)](_0xb7b6b1=>({'node':_0xb7b6b1,'id':_0x332fd7(_0xb7b6b1,_0x2eed41(0x13d))})),_0x295e05=this[_0x2eed41(0x159)][_0x2eed41(0x141)][_0x2eed41(0x154)](_0x4c7c85=>({'node':_0x4c7c85,'id':_0x332fd7(_0x4c7c85,_0x2eed41(0x13d))||_0x44c8bd()})),_0x376eda=_0x42423b(_0x294ba6,_0x295e05,{'comparator':(_0x90b822,_0x2db7ce)=>_0x90b822['id']==_0x2db7ce['id'],'oneChangePerToken':!0x0});if(!this[_0x2eed41(0x151)]){for(;_0x376eda[_0x2eed41(0x143)]&&_0x376eda[_0x376eda[_0x2eed41(0x143)]-0x1][_0x2eed41(0x14b)];)_0x376eda[_0x2eed41(0x140)]();}const _0x33fe26=_0x376eda[_0x2eed41(0x154)](_0x2087ea=>{const _0x28d7f9=_0x2eed41,_0x279495=_0x2087ea[_0x28d7f9(0x156)]?_0x28d7f9(0x147):_0x2087ea[_0x28d7f9(0x14b)]?_0x28d7f9(0x14b):_0x28d7f9(0x14c);return{'node':_0x2087ea[_0x28d7f9(0x150)][0x0][_0x28d7f9(0x145)],'type':_0x279495,'id':_0x2087ea[_0x28d7f9(0x150)][0x0]['id']};});this[_0x2eed41(0x14a)]=[{'changes':_0x33fe26,'state':_0x2eed41(0x158),'index':0x0}];}[_0x585b5b(0x149)](_0x1f2a09,_0x58c9d9){return _0x58c9d9;}}
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;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x96db2=_0x285e;(function(_0x7a15af,_0xf0d1a1){var _0x34573e=_0x285e,_0x2bcf6b=_0x7a15af();while(!![]){try{var _0x355674=-parseInt(_0x34573e(0x117))/0x1*(parseInt(_0x34573e(0x111))/0x2)+parseInt(_0x34573e(0x114))/0x3+parseInt(_0x34573e(0x115))/0x4+-parseInt(_0x34573e(0x10f))/0x5*(-parseInt(_0x34573e(0x11b))/0x6)+parseInt(_0x34573e(0x10c))/0x7+parseInt(_0x34573e(0x11a))/0x8*(-parseInt(_0x34573e(0x11d))/0x9)+-parseInt(_0x34573e(0x110))/0xa;if(_0x355674===_0xf0d1a1)break;else _0x2bcf6b['push'](_0x2bcf6b['shift']());}catch(_0xd202e0){_0x2bcf6b['push'](_0x2bcf6b['shift']());}}}(_0x1ef5,0x3ecc1));function _0x285e(_0x170694,_0x205099){var _0x1ef536=_0x1ef5();return _0x285e=function(_0x285e17,_0x20fabd){_0x285e17=_0x285e17-0x10c;var _0x54f899=_0x1ef536[_0x285e17];return _0x54f899;},_0x285e(_0x170694,_0x205099);}import{Plugin as _0x2c920a}from'ckeditor5/src/core.js';import{CKEditorError as _0x1a7f7b}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x2c920a{static get[_0x96db2(0x113)](){var _0x521828=_0x96db2;return _0x521828(0x119);}static get[_0x96db2(0x11c)](){return!0x0;}static get[_0x96db2(0x118)](){return!0x0;}[_0x96db2(0x11e)](){var _0xef721a=_0x96db2;if(!this[_0xef721a(0x10e)])throw new _0x1a7f7b(_0xef721a(0x116),null);}}function _0x1ef5(){var _0x286ae8=['1zrdINR','isPremiumPlugin','AIAdapter','105880GKjXVX','1901238LmqvSU','isOfficialPlugin','216ckSaWg','afterInit','2659405eMWvjO','AIRequestError','textAdapter','5rkhMtl','3823870KRZHzo','450212NRofsU','name','pluginName','834834kxwpHb','829136mkxpPy','aiadapter-text-adapter-not-set'];_0x1ef5=function(){return _0x286ae8;};return _0x1ef5();}export class AIRequestError extends Error{constructor(_0x807eb){var _0x4c65d4=_0x96db2;super(_0x807eb),this[_0x4c65d4(0x112)]=_0x4c65d4(0x10d);}}
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);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7d6b26=_0x19c7;(function(_0x22fe46,_0x419297){const _0x14577e=_0x19c7,_0x171eef=_0x22fe46();while(!![]){try{const _0x584dc4=parseInt(_0x14577e(0x1af))/0x1*(-parseInt(_0x14577e(0x197))/0x2)+-parseInt(_0x14577e(0x19d))/0x3+parseInt(_0x14577e(0x1b3))/0x4*(-parseInt(_0x14577e(0x194))/0x5)+parseInt(_0x14577e(0x1b2))/0x6+parseInt(_0x14577e(0x1a2))/0x7+parseInt(_0x14577e(0x191))/0x8+parseInt(_0x14577e(0x1a0))/0x9;if(_0x584dc4===_0x419297)break;else _0x171eef['push'](_0x171eef['shift']());}catch(_0x277ed1){_0x171eef['push'](_0x171eef['shift']());}}}(_0x3585,0xf3610));import{Plugin as _0x86cc70}from'ckeditor5/src/core.js';import{CKEditorError as _0x141785}from'ckeditor5/src/utils.js';import{AIAdapter as _0x1145b8,AIRequestError as _0x577f4c}from'./aiadapter.js';import{getTranslation as _0x4cb85d}from'../utils/common-translations.js';function _0x3585(){const _0x32f743=['resolve','abortController','278534PRwKYn','locale','AI_ERROR_GET_HEADERS','7928820kVvdzs','1112852YfQzoD','sendRequest','3577240hMZwgu','editor','AI_ERROR_GET_PARAMETERS','10ILVffS','assign','signal','14VoRQLE','object','get','error','name','catch','2746608ZFhKIJ','requires','aitextadapter-send-request-failed','12323403JXziRl','application/json','8964816hILzUJ','_prepareRequestParameters','plugins','_prepareRequestHeaders','aborted','reject','textAdapter','init','AbortError','abort','makeRequest'];_0x3585=function(){return _0x32f743;};return _0x3585();}function _0x19c7(_0x100a0e,_0x587b40){const _0x3585d7=_0x3585();return _0x19c7=function(_0x19c71c,_0x320ea5){_0x19c71c=_0x19c71c-0x190;let _0x43c9d1=_0x3585d7[_0x19c71c];return _0x43c9d1;},_0x19c7(_0x100a0e,_0x587b40);}export class AITextAdapter extends _0x86cc70{[_0x7d6b26(0x1ae)];static get[_0x7d6b26(0x19e)](){return[_0x1145b8];}constructor(_0x548c24){const _0x2132c3=_0x7d6b26;super(_0x548c24),this[_0x2132c3(0x1ae)]=new AbortController();}[_0x7d6b26(0x1a9)](){const _0x395912=_0x7d6b26;this[_0x395912(0x192)][_0x395912(0x1a4)][_0x395912(0x199)](_0x1145b8)[_0x395912(0x1a8)]=this;}[_0x7d6b26(0x1ab)](){const _0x1c0e73=_0x7d6b26;this[_0x1c0e73(0x1ae)][_0x1c0e73(0x196)][_0x1c0e73(0x1a6)]||(this[_0x1c0e73(0x1ae)][_0x1c0e73(0x1ab)](),this[_0x1c0e73(0x1ae)]=new AbortController());}async[_0x7d6b26(0x1ac)](_0x46865a){const _0x43b6ab=_0x7d6b26;return this[_0x43b6ab(0x190)](_0x46865a)[_0x43b6ab(0x19c)](_0x19d6e4=>{const _0x49c3ad=_0x43b6ab;if(_0x19d6e4 instanceof _0x577f4c)return Promise[_0x49c3ad(0x1a7)](_0x19d6e4);if(_0x49c3ad(0x1aa)==_0x19d6e4[_0x49c3ad(0x19b)])return Promise[_0x49c3ad(0x1ad)]();throw console[_0x49c3ad(0x19a)](_0x19d6e4),new _0x141785(_0x49c3ad(0x19f),null);});}async[_0x7d6b26(0x1a5)](_0x21d779,_0x587e50){const _0x3a9194=_0x7d6b26,_0x5df599=this[_0x3a9194(0x192)][_0x3a9194(0x1b0)],_0x5748cb={'Content-Type':_0x3a9194(0x1a1)};if(_0x3a9194(0x198)==typeof _0x21d779)Object[_0x3a9194(0x195)](_0x5748cb,_0x21d779);else{if(_0x21d779)try{const _0xaa3e87=await _0x21d779(_0x587e50);Object[_0x3a9194(0x195)](_0x5748cb,_0xaa3e87);}catch{return Promise[_0x3a9194(0x1a7)](new _0x577f4c(_0x4cb85d(_0x5df599,_0x3a9194(0x1b1))));}}return _0x5748cb;}async[_0x7d6b26(0x1a3)](_0x4cb7e8,_0x562b55){const _0x22128d=_0x7d6b26,_0x515898=this[_0x22128d(0x192)][_0x22128d(0x1b0)];if(_0x22128d(0x198)==typeof _0x4cb7e8)return _0x4cb7e8;try{return await _0x4cb7e8(_0x562b55);}catch{return Promise[_0x22128d(0x1a7)](new _0x577f4c(_0x4cb85d(_0x515898,_0x22128d(0x193))));}}}
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))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f5d02=_0x4778;(function(_0x388a27,_0x4b03a2){const _0x226fa0=_0x4778,_0x3fbb10=_0x388a27();while(!![]){try{const _0x2d962f=-parseInt(_0x226fa0(0xfa))/0x1+parseInt(_0x226fa0(0xc8))/0x2+-parseInt(_0x226fa0(0xc7))/0x3*(-parseInt(_0x226fa0(0xe2))/0x4)+-parseInt(_0x226fa0(0xca))/0x5+-parseInt(_0x226fa0(0xec))/0x6+parseInt(_0x226fa0(0x101))/0x7+parseInt(_0x226fa0(0xe6))/0x8;if(_0x2d962f===_0x4b03a2)break;else _0x3fbb10['push'](_0x3fbb10['shift']());}catch(_0x39d845){_0x3fbb10['push'](_0x3fbb10['shift']());}}}(_0x78a5,0x87931));import{AITextAdapter as _0x37af24}from'./aitextadapter.js';function _0x78a5(){const _0xdf1ee9=['completions','AI_ERROR_UNSUPPORTED_MODEL','generation','decode','anthropic.claude-v2','join','getModelFamily','text','_bedrockClientConfig','_processProxyRequest','\x0a<</SYS>>\x0a[INST]\x0a','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.','_requestParameters','89175JpWJSP','786106RiWxWI','bytes','3989185hUgBlk','sendRequest','config','map','ai.assistant.adapter.aws.requestHeaders','stringify','\x0a\x0aAssistant:','anthropic.claude','split','data','_readAsyncIterableResponse','locale','cohere.command','parse','signal','filter','ai.assistant.adapter.aws.apiUrl','completion','<<SYS>>\x0a','_prepareRequestHeaders','preparePrompt','editor','_readStreamableResponse','_prepareRequestParameters','4dBvpcd','length','_getGeneratedText','bedrock-2023-05-31','14905856CGHczv','send','AWSTextAdapter','ai.assistant.adapter.aws.requestParameters','meta.llama','_readStaticResponse','1244490FGUhXr','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.','generations','utf-8','Instruction:\x0a','Human:\x0a','pluginName','_apiUrl','ai21.j2','read','json','application/json','POST','test','749367lOAVQH','resolve','define','getReader','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_requestHeaders','\x0a[/INST]','167454GPZtLy','get','abortController','ai.assistant.adapter.aws.bedrockClientConfig','_processAWSRequest','chunk','body'];_0x78a5=function(){return _0xdf1ee9;};return _0x78a5();}function _0x4778(_0x385681,_0x43a7c4){const _0x78a5e0=_0x78a5();return _0x4778=function(_0x47788b,_0x2405a3){_0x47788b=_0x47788b-0xbb;let _0x2a96fb=_0x78a5e0[_0x47788b];return _0x2a96fb;},_0x4778(_0x385681,_0x43a7c4);}import{AIRequestError as _0x10d08a}from'./aiadapter.js';import{BedrockRuntimeClient as _0x44bc35,InvokeModelCommand as _0x49da3f,InvokeModelWithResponseStreamCommand as _0x221ef1}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0xd3fbdc}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x37af24{[_0x4f5d02(0xf3)];[_0x4f5d02(0xff)];[_0x4f5d02(0xc2)];[_0x4f5d02(0xc6)];static get[_0x4f5d02(0xf2)](){const _0x2664db=_0x4f5d02;return _0x2664db(0xe8);}constructor(_0x55125e){const _0x4e60d5=_0x4f5d02;super(_0x55125e),_0x55125e[_0x4e60d5(0xcc)][_0x4e60d5(0x102)](_0x4e60d5(0xe9))||_0x55125e[_0x4e60d5(0xcc)][_0x4e60d5(0xfc)](_0x4e60d5(0xe9),{'model':_0x4e60d5(0xbe),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x4e60d5(0xe5),'stream':!0x0}),this[_0x4e60d5(0xf3)]=_0x55125e[_0x4e60d5(0xcc)][_0x4e60d5(0x102)](_0x4e60d5(0xda)),this[_0x4e60d5(0xc2)]=_0x55125e[_0x4e60d5(0xcc)][_0x4e60d5(0x102)](_0x4e60d5(0x104)),this[_0x4e60d5(0xff)]=_0x55125e[_0x4e60d5(0xcc)][_0x4e60d5(0x102)](_0x4e60d5(0xce)),this[_0x4e60d5(0xc6)]=_0x55125e[_0x4e60d5(0xcc)][_0x4e60d5(0x102)](_0x4e60d5(0xe9));}async[_0x4f5d02(0xcb)]({query:_0x3cdd2e,context:_0x5e0ecc,onData:_0x404b39,actionId:_0x20c2a0}){const _0x6b566c=_0x4f5d02,{model:_0x4d8f95,stream:_0x3d24a8,..._0x46e42a}=await this[_0x6b566c(0xe1)](this[_0x6b566c(0xc6)],_0x20c2a0),_0x2217c3={'prompt':await this[_0x6b566c(0xde)](_0x3cdd2e,_0x5e0ecc,_0x4d8f95,_0x20c2a0),..._0x46e42a};this[_0x6b566c(0xf3)]?await this[_0x6b566c(0xc3)](_0x2217c3,_0x4d8f95,_0x3d24a8,_0x404b39,_0x20c2a0):await this[_0x6b566c(0x105)](_0x2217c3,_0x4d8f95,_0x3d24a8,_0x404b39);}async[_0x4f5d02(0xde)](_0xc3242c,_0x530103,_0x23e3a7,_0x2bd019){const _0x4b2420=_0x4f5d02;let _0x422613,_0x2bae25;return _0x530103?(_0x422613=_0x4b2420(0xed),_0x2bae25=_0x4b2420(0xf0)+_0xc3242c+_0x4b2420(0xfe)+_0x530103):(_0x422613=_0x4b2420(0xc5),_0x2bae25=_0xc3242c),_0x4b2420(0xea)==this[_0x4b2420(0xc0)](_0x23e3a7)?_0x4b2420(0xdc)+_0x422613+_0x4b2420(0xc4)+_0x2bae25+_0x4b2420(0x100):_0x4b2420(0xf1)+_0x422613+'\x0a'+_0x2bae25+_0x4b2420(0xd0);}[_0x4f5d02(0xc0)](_0x257481){const _0x537336=_0x4f5d02;if(/^anthropic\.claude/[_0x537336(0xf9)](_0x257481))return _0x537336(0xd1);if(/^ai21\.j2/[_0x537336(0xf9)](_0x257481))return _0x537336(0xf4);if(/^cohere\.command/[_0x537336(0xf9)](_0x257481))return _0x537336(0xd6);if(/^meta\.llama/[_0x537336(0xf9)](_0x257481))return _0x537336(0xea);throw new _0x10d08a(_0xd3fbdc(this[_0x537336(0xdf)][_0x537336(0xd5)],_0x537336(0xbb),_0x257481));}async[_0x4f5d02(0xc3)](_0x43d866,_0x18bf79,_0xbdc7bc,_0x29466b,_0x4a2e74){const _0x7f8706=_0x4f5d02,_0x43f499={'method':_0x7f8706(0xf8),'headers':await this[_0x7f8706(0xdd)](this[_0x7f8706(0xff)],_0x4a2e74),'body':JSON[_0x7f8706(0xcf)]({..._0x43d866,'model':_0x18bf79,'stream':_0xbdc7bc}),'signal':this[_0x7f8706(0x103)][_0x7f8706(0xd8)]},_0x326994=await fetch(this[_0x7f8706(0xf3)],_0x43f499);_0xbdc7bc?await this[_0x7f8706(0xe0)](_0x326994,_0x18bf79,_0x29466b):await this[_0x7f8706(0xeb)](_0x326994,_0x18bf79,_0x29466b);}async[_0x4f5d02(0x105)](_0x14abde,_0x20ffef,_0x190191,_0x3cd579){const _0x39b3dd=_0x4f5d02,_0x5c4603=new _0x44bc35(this[_0x39b3dd(0xc2)]),_0x4695bc={'body':JSON[_0x39b3dd(0xcf)](_0x14abde),'contentType':_0x39b3dd(0xf7),'accept':_0x39b3dd(0xf7),'modelId':_0x20ffef};let _0xc56b12;if(_0x190191){const _0x15835c=new _0x221ef1(_0x4695bc);_0xc56b12=await _0x5c4603[_0x39b3dd(0xe7)](_0x15835c,{'abortSignal':this[_0x39b3dd(0x103)][_0x39b3dd(0xd8)]}),await this[_0x39b3dd(0xd4)](_0xc56b12,_0x20ffef,_0x3cd579);}else{const _0x5727ec=new _0x49da3f(_0x4695bc);_0xc56b12=await _0x5c4603[_0x39b3dd(0xe7)](_0x5727ec,{'abortSignal':this[_0x39b3dd(0x103)][_0x39b3dd(0xd8)]}),await this[_0x39b3dd(0xeb)](_0xc56b12,_0x20ffef,_0x3cd579);}}async[_0x4f5d02(0xd4)](_0x3f801e,_0x418865,_0x49a8c9){const _0x4e2363=_0x4f5d02,_0x3bcda9=_0x3f801e[_0x4e2363(0x107)],_0x8a44a5=new TextDecoder(_0x4e2363(0xef));let _0x16a0e1='';for await(const _0xb7fd43 of _0x3bcda9)if(_0xb7fd43[_0x4e2363(0x106)]){const _0x2b2e60=_0x8a44a5[_0x4e2363(0xbd)](_0xb7fd43[_0x4e2363(0x106)][_0x4e2363(0xc9)]),_0xbea416=JSON[_0x4e2363(0xd7)](_0x2b2e60);_0x16a0e1+=this[_0x4e2363(0xe4)](_0xbea416,_0x418865),_0x49a8c9(_0x16a0e1);}return Promise[_0x4e2363(0xfb)]();}async[_0x4f5d02(0xe0)](_0x2879b1,_0x57fbaf,_0x157e7e){const _0x18d4ef=_0x4f5d02,_0x2651f4=_0x2879b1[_0x18d4ef(0x107)],_0xc6c34c=new TextDecoder(_0x18d4ef(0xef)),_0x574aff=_0x2651f4[_0x18d4ef(0xfd)]();let _0x342b59='',_0x396bbe='',_0x5bc3a1=!0x1;for(;!_0x5bc3a1;){const {done:_0x157349,value:_0x2a69e5}=await _0x574aff[_0x18d4ef(0xf5)]();if(_0x5bc3a1=_0x157349,_0x5bc3a1)break;const _0x203984=(_0x342b59+_0xc6c34c[_0x18d4ef(0xbd)](_0x2a69e5))[_0x18d4ef(0xd2)]('\x0a')[_0x18d4ef(0xcd)](_0xa51c68=>{const _0x1b315b=_0x18d4ef;try{return _0x342b59='',JSON[_0x1b315b(0xd7)](_0xa51c68);}catch{return _0x342b59=_0xa51c68,null;}})[_0x18d4ef(0xd9)](_0xbc966b=>null!==_0xbc966b);_0x203984[_0x18d4ef(0xe3)]&&(_0x396bbe+=_0x203984[_0x18d4ef(0xcd)](_0x5b21c9=>this[_0x18d4ef(0xe4)](_0x5b21c9,_0x57fbaf))[_0x18d4ef(0xbf)](''),_0x157e7e(_0x396bbe));}return Promise[_0x18d4ef(0xfb)]();}async[_0x4f5d02(0xeb)](_0x5aafa9,_0x7ef401,_0x11bbaa){const _0x4179ad=_0x4f5d02;let _0x4e73f1;return _0x4e73f1=_0x5aafa9 instanceof Response?await _0x5aafa9[_0x4179ad(0xf6)]():JSON[_0x4179ad(0xd7)](new TextDecoder(_0x4179ad(0xef))[_0x4179ad(0xbd)](_0x5aafa9[_0x4179ad(0x107)])),(_0x11bbaa(this[_0x4179ad(0xe4)](_0x4e73f1,_0x7ef401)),Promise[_0x4179ad(0xfb)]());}[_0x4f5d02(0xe4)](_0x49a5f0,_0x21d614){const _0x1e9c2b=_0x4f5d02;switch(this[_0x1e9c2b(0xc0)](_0x21d614)){case _0x1e9c2b(0xd1):return _0x49a5f0[_0x1e9c2b(0xdb)];case _0x1e9c2b(0xf4):return _0x49a5f0[_0x1e9c2b(0x108)][0x0][_0x1e9c2b(0xd3)][_0x1e9c2b(0xc1)];case _0x1e9c2b(0xd6):return _0x49a5f0[_0x1e9c2b(0xee)][0x0][_0x1e9c2b(0xc1)];case _0x1e9c2b(0xea):return _0x49a5f0[_0x1e9c2b(0xbc)];}}}
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)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xeb86(_0x44cd6e,_0x18fe55){const _0x1aa6ea=_0x1aa6();return _0xeb86=function(_0xeb8669,_0x4d6d7d){_0xeb8669=_0xeb8669-0x11f;let _0x385440=_0x1aa6ea[_0xeb8669];return _0x385440;},_0xeb86(_0x44cd6e,_0x18fe55);}function _0x1aa6(){const _0x44ce54=['_cleanUpData','map','stream','resolve','join','373944RJRdbh','gpt-4o','decode','message','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.','includes','prepareMessages','[DONE]','replace','define','signal','Moderation','stringify','content','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.','147772GkWNFd','json','_requestHeaders','_apiUrl','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_readStreamableResponse','AI_ERROR_CONTEXT_LENGTH','149193mEkSwr','text','split','parse','15yUbXTy','reject','8BOvIqb','filter','pluginName','editor','845432UMjoIj','sendRequest','Instruction:\x0a','locale','ai.assistant.adapter.openAI.requestHeaders','getReader','read','delta','context_length_exceeded','config','ai.assistant.adapter.openAI.requestParameters','user','body','POST','AI_ERROR_MODERATION','20TLPCeO','data:\x20','255253LFzbfs','_readStaticResponse','107310HxukXm','ai.assistant.adapter.openAI.apiUrl','https://api.openai.com/v1/chat/completions','_prepareRequestParameters','517pyelFD','_isBufferIncomplete','_prepareRequestHeaders','get','1120959GTjgov','OpenAITextAdapter','choices','abortController','length','system','_requestParameters'];_0x1aa6=function(){return _0x44ce54;};return _0x1aa6();}const _0x4ccec0=_0xeb86;(function(_0x4b6ebb,_0x2c1ed7){const _0x37629a=_0xeb86,_0xeaf491=_0x4b6ebb();while(!![]){try{const _0x3acb18=parseInt(_0x37629a(0x12d))/0x1+-parseInt(_0x37629a(0x152))/0x2*(-parseInt(_0x37629a(0x15d))/0x3)+parseInt(_0x37629a(0x163))/0x4+-parseInt(_0x37629a(0x12b))/0x5*(parseInt(_0x37629a(0x143))/0x6)+parseInt(_0x37629a(0x137))/0x7*(parseInt(_0x37629a(0x15f))/0x8)+-parseInt(_0x37629a(0x159))/0x9+-parseInt(_0x37629a(0x12f))/0xa*(parseInt(_0x37629a(0x133))/0xb);if(_0x3acb18===_0x2c1ed7)break;else _0xeaf491['push'](_0xeaf491['shift']());}catch(_0x3c0172){_0xeaf491['push'](_0xeaf491['shift']());}}}(_0x1aa6,0x3729c));import{AITextAdapter as _0x597f54}from'./aitextadapter.js';import{AIRequestError as _0x28e0c2}from'./aiadapter.js';import{getTranslation as _0x3592dc}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x597f54{[_0x4ccec0(0x155)];[_0x4ccec0(0x154)];[_0x4ccec0(0x13d)];static get[_0x4ccec0(0x161)](){const _0x49e832=_0x4ccec0;return _0x49e832(0x138);}constructor(_0x1dc5e1){const _0x174e38=_0x4ccec0;super(_0x1dc5e1),_0x1dc5e1[_0x174e38(0x125)][_0x174e38(0x14c)](_0x174e38(0x130),_0x174e38(0x131)),_0x1dc5e1[_0x174e38(0x125)][_0x174e38(0x136)](_0x174e38(0x126))||_0x1dc5e1[_0x174e38(0x125)][_0x174e38(0x14c)](_0x174e38(0x126),{'model':_0x174e38(0x144),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x174e38(0x155)]=_0x1dc5e1[_0x174e38(0x125)][_0x174e38(0x136)](_0x174e38(0x130)),this[_0x174e38(0x154)]=_0x1dc5e1[_0x174e38(0x125)][_0x174e38(0x136)](_0x174e38(0x120))||{},this[_0x174e38(0x13d)]=_0x1dc5e1[_0x174e38(0x125)][_0x174e38(0x136)](_0x174e38(0x126));}async[_0x4ccec0(0x164)]({query:_0x332c88,context:_0x69cf2c,onData:_0x389149,actionId:_0x2842ff}){const _0x6deb52=_0x4ccec0,_0x16716a=this[_0x6deb52(0x162)][_0x6deb52(0x11f)],_0x5712f4=await this[_0x6deb52(0x149)](_0x332c88,_0x69cf2c,_0x2842ff),_0x166a1f=await this[_0x6deb52(0x135)](this[_0x6deb52(0x154)],_0x2842ff),_0x190f4e=await this[_0x6deb52(0x132)](this[_0x6deb52(0x13d)],_0x2842ff),_0x7c02a5={'messages':_0x5712f4,..._0x190f4e},_0xa68141={'method':_0x6deb52(0x129),'headers':_0x166a1f,'body':JSON[_0x6deb52(0x14f)](_0x7c02a5),'signal':this[_0x6deb52(0x13a)][_0x6deb52(0x14d)]},_0x2a12d9=await fetch(this[_0x6deb52(0x155)],_0xa68141);if(_0x2a12d9['ok'])return _0x190f4e[_0x6deb52(0x140)]?await this[_0x6deb52(0x157)](_0x2a12d9,_0x389149):await this[_0x6deb52(0x12e)](_0x2a12d9,_0x389149),Promise[_0x6deb52(0x141)]();{const _0x8c8b97=await _0x2a12d9[_0x6deb52(0x15a)]();return _0x8c8b97[_0x6deb52(0x148)](_0x6deb52(0x124))?Promise[_0x6deb52(0x15e)](new _0x28e0c2(_0x3592dc(_0x16716a,_0x6deb52(0x158)))):_0x8c8b97[_0x6deb52(0x148)](_0x6deb52(0x14e))?Promise[_0x6deb52(0x15e)](new _0x28e0c2(_0x3592dc(_0x16716a,_0x6deb52(0x12a)))):Promise[_0x6deb52(0x15e)](new Error(_0x8c8b97));}}async[_0x4ccec0(0x149)](_0x504b42,_0x3d3e1b,_0x3f2069){const _0xc62e45=_0x4ccec0;let _0x11a1e9,_0x267c32;return _0x3d3e1b?(_0x11a1e9=_0xc62e45(0x147),_0x267c32=_0xc62e45(0x165)+_0x504b42+_0xc62e45(0x156)+_0x3d3e1b):(_0x11a1e9=_0xc62e45(0x151),_0x267c32=_0x504b42),[{'role':_0xc62e45(0x13c),'content':_0x11a1e9},{'role':_0xc62e45(0x127),'content':_0x267c32}];}async[_0x4ccec0(0x157)](_0x5394dc,_0x19ff01){const _0x3a6909=_0x4ccec0,_0x21f913=_0x5394dc[_0x3a6909(0x128)][_0x3a6909(0x121)](),_0x473a53=new TextDecoder();let _0x1966d9='',_0x302f2d='',_0x1c6f60='',_0x4a4268=!0x1;for(;!_0x4a4268;){const {done:_0x513eef,value:_0x404a8a}=await _0x21f913[_0x3a6909(0x122)](),_0x37de77=_0x1966d9+_0x473a53[_0x3a6909(0x145)](_0x404a8a);let _0xfd8ca7='';_0x4a4268=_0x513eef;try{_0xfd8ca7=this[_0x3a6909(0x13e)](_0x37de77),_0x1966d9='';}catch{_0x1966d9=_0x37de77;continue;}_0x302f2d+=_0xfd8ca7,!_0x4a4268&&this[_0x3a6909(0x134)](_0x302f2d)||_0x302f2d&&(_0x1c6f60+=_0x302f2d,_0x302f2d='',_0x19ff01(_0x1c6f60));}return Promise[_0x3a6909(0x141)]();}async[_0x4ccec0(0x12e)](_0x4e5d58,_0x130b5f){const _0x3bdc9e=_0x4ccec0;return _0x130b5f((await _0x4e5d58[_0x3bdc9e(0x153)]())[_0x3bdc9e(0x139)][0x0][_0x3bdc9e(0x146)][_0x3bdc9e(0x150)]),Promise[_0x3bdc9e(0x141)]();}[_0x4ccec0(0x134)](_0x5ea740){const _0x189295=_0x4ccec0,_0x3a87bd=_0x5ea740[_0x189295(0x15b)]('<')[_0x189295(0x13b)]!==_0x5ea740[_0x189295(0x15b)]('>')[_0x189295(0x13b)],_0x13461e=_0x5ea740[_0x189295(0x13b)]<0x1e;return _0x3a87bd&&_0x13461e;}[_0x4ccec0(0x13e)](_0x5666aa){const _0xd11c4e=_0x4ccec0;return _0x5666aa[_0xd11c4e(0x15b)](/\n(?![^{]*\})/g)[_0xd11c4e(0x13f)](_0x1a6d31=>_0x1a6d31[_0xd11c4e(0x14b)](_0xd11c4e(0x12c),''))[_0xd11c4e(0x160)](_0x3dcb23=>_0x3dcb23&&_0x3dcb23[_0xd11c4e(0x13b)]>0x0&&_0xd11c4e(0x14a)!==_0x3dcb23)[_0xd11c4e(0x13f)](_0x3a9637=>{const _0x3551bb=_0xd11c4e,{choices:_0x5e8230}=JSON[_0x3551bb(0x15c)](_0x3a9637);if(_0x5e8230[0x0]?.[_0x3551bb(0x123)]?.[_0x3551bb(0x150)])return _0x5e8230[0x0][_0x3551bb(0x123)][_0x3551bb(0x150)];})[_0xd11c4e(0x160)](_0x273b66=>_0x273b66)[_0xd11c4e(0x142)]('');}}
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)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc1bdd2=_0x443d;function _0x443d(_0x28da39,_0x36e2c7){const _0x314709=_0x3147();return _0x443d=function(_0x443d91,_0x1e3050){_0x443d91=_0x443d91-0xe3;let _0x208c21=_0x314709[_0x443d91];return _0x208c21;},_0x443d(_0x28da39,_0x36e2c7);}(function(_0x17ea68,_0x796f23){const _0x349b41=_0x443d,_0x493342=_0x17ea68();while(!![]){try{const _0xda66f1=parseInt(_0x349b41(0x11e))/0x1+-parseInt(_0x349b41(0x14d))/0x2+parseInt(_0x349b41(0xf3))/0x3*(parseInt(_0x349b41(0x109))/0x4)+-parseInt(_0x349b41(0x101))/0x5+parseInt(_0x349b41(0xe4))/0x6+-parseInt(_0x349b41(0x103))/0x7+parseInt(_0x349b41(0x12d))/0x8*(-parseInt(_0x349b41(0x14b))/0x9);if(_0xda66f1===_0x796f23)break;else _0x493342['push'](_0x493342['shift']());}catch(_0x539e1f){_0x493342['push'](_0x493342['shift']());}}}(_0x3147,0x3aed8));import{Plugin as _0x16a564}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x262ea2}from'./aiassistantui.js';import{AIAssistantEditing as _0x552dc2}from'./aiassistantediting.js';import{getTranslation as _0x5a4506}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x15874d}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x16a564{static get[_0xc1bdd2(0xed)](){return[_0x262ea2,_0x552dc2];}static get[_0xc1bdd2(0xf4)](){const _0x39df58=_0xc1bdd2;return _0x39df58(0x133);}static get[_0xc1bdd2(0x14f)](){return!0x0;}static get[_0xc1bdd2(0x150)](){return!0x0;}constructor(_0x171ab3){const _0x5b5c6b=_0xc1bdd2;super(_0x171ab3);const _0x22147c=_0x171ab3[_0x5b5c6b(0x125)],_0x4068f9=_0x171ab3[_0x5b5c6b(0x100)];_0x22147c[_0x5b5c6b(0xff)](_0x5b5c6b(0xe6),!0x0),_0x22147c[_0x5b5c6b(0xff)](_0x5b5c6b(0x148),getDefaultAICommands(_0x4068f9)),_0x22147c[_0x5b5c6b(0xff)](_0x5b5c6b(0x12a),[]),_0x22147c[_0x5b5c6b(0xff)](_0x5b5c6b(0xf7),[]);let _0x5d7beb=_0x15874d(_0x22147c[_0x5b5c6b(0xe3)](_0x5b5c6b(0x148)),_0x4068f9);const _0x5785bc=_0x22147c[_0x5b5c6b(0xe3)](_0x5b5c6b(0x12a)),_0x3008fa=_0x22147c[_0x5b5c6b(0xe3)](_0x5b5c6b(0xf7));_0x5785bc[_0x5b5c6b(0xfc)](_0x443cb4=>{const _0x2f80af=_0x5b5c6b,_0x4d34cc=_0x5d7beb[_0x2f80af(0x110)](_0x597970=>_0x597970[_0x2f80af(0xfe)]===_0x443cb4[_0x2f80af(0xfe)]);_0x4d34cc?_0x4d34cc[_0x2f80af(0xf8)]=_0x4d34cc[_0x2f80af(0xf8)][_0x2f80af(0x134)](_0x443cb4[_0x2f80af(0xf8)]):_0x5d7beb[_0x2f80af(0x14c)](_0x443cb4);}),_0x5d7beb=_0x5d7beb[_0x5b5c6b(0x126)](_0x347f0e=>!_0x3008fa[_0x5b5c6b(0xee)](_0x347f0e[_0x5b5c6b(0xfe)])),_0x5d7beb[_0x5b5c6b(0xfc)](_0x31e249=>{const _0xbe54e4=_0x5b5c6b;_0x31e249[_0xbe54e4(0xf8)]=_0x31e249[_0xbe54e4(0xf8)][_0xbe54e4(0x126)](_0x283f9a=>!_0x3008fa[_0xbe54e4(0xee)](_0x283f9a['id']));}),_0x22147c[_0x5b5c6b(0xef)](_0x5b5c6b(0x148),_0x5d7beb);}}function _0x3147(){const _0x47c70a=['11493fClFiq','push','476248ZCjsvv','translateFrench','isOfficialPlugin','isPremiumPlugin','get','1917006mOoPLJ','Professional','ai.assistant.preserveComments','translateArabic','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Confident','journalism','Legal','Make\x20longer','requires','includes','set','Summarize','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','English','99LqwHEi','pluginName','makeLonger','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','ai.assistant.removeCommands','commands','professional','Translate','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','forEach','Translate\x20the\x20content\x20to\x20English\x20language.','groupId','define','locale','244545YXfKJT','poetic','2081996QzuUvF','business','summarize','Casual','changeTone','continue','54900ALUrnA','direct','Change\x20style','translateHindi','Portuguese','Translate\x20the\x20content\x20to\x20French\x20language.','Business','find','German','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','friendly','Simplify\x20language','Poetic','translateChinese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','confident','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','makeShorter','improveWriting','French','437780UQpzdi','Friendly','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Generate\x20from\x20selection','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Make\x20shorter','config','filter','casual','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','translatePortuguese','ai.assistant.extraCommandGroups','Simplified\x20Chinese','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','2408FMBFGa','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Spanish','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','editOrReview','translateGerman','AIAssistant','concat','Translate\x20the\x20content\x20to\x20German\x20language.','changeStyle','translateSpanish','Arabic','Improve\x20writing','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Journalism','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','translate','Edit\x20or\x20review','Continue','translateEnglish','legal','Hindi','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Change\x20tone','Direct','ai.assistant.commands','generate','simplifyLanguage'];_0x3147=function(){return _0x47c70a;};return _0x3147();}export function getDefaultAICommands(_0x543036){const _0x2ed2c9=_0xc1bdd2;return[{'groupId':_0x2ed2c9(0x131),'groupLabel':_0x5a4506(_0x543036,_0x2ed2c9(0x13f)),'commands':[{'id':_0x2ed2c9(0x11c),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x139)),'prompt':_0x2ed2c9(0xf6)},{'id':_0x2ed2c9(0x11b),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x124)),'prompt':_0x2ed2c9(0x11a)},{'id':_0x2ed2c9(0xf5),'label':_0x5a4506(_0x543036,_0x2ed2c9(0xec)),'prompt':_0x2ed2c9(0x130)},{'id':_0x2ed2c9(0x14a),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x115)),'prompt':_0x2ed2c9(0x13d)}]},{'groupId':_0x2ed2c9(0x149),'groupLabel':_0x5a4506(_0x543036,_0x2ed2c9(0x122)),'commands':[{'id':_0x2ed2c9(0x105),'label':_0x5a4506(_0x543036,_0x2ed2c9(0xf0)),'prompt':_0x2ed2c9(0x144)},{'id':_0x2ed2c9(0x108),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x140)),'prompt':_0x2ed2c9(0x113)}]},{'groupId':_0x2ed2c9(0x107),'groupLabel':_0x5a4506(_0x543036,_0x2ed2c9(0x146)),'commands':[{'id':_0x2ed2c9(0xf9),'label':_0x5a4506(_0x543036,_0x2ed2c9(0xe5)),'prompt':_0x2ed2c9(0x118)},{'id':_0x2ed2c9(0x127),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x106)),'prompt':_0x2ed2c9(0x13c)},{'id':_0x2ed2c9(0x10a),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x147)),'prompt':_0x2ed2c9(0x13a)},{'id':_0x2ed2c9(0x119),'label':_0x5a4506(_0x543036,_0x2ed2c9(0xe9)),'prompt':_0x2ed2c9(0x12e)},{'id':_0x2ed2c9(0x114),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x11f)),'prompt':_0x2ed2c9(0xfb)}]},{'groupId':_0x2ed2c9(0x136),'groupLabel':_0x5a4506(_0x543036,_0x2ed2c9(0x10b)),'commands':[{'id':_0x2ed2c9(0x104),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x10f)),'prompt':_0x2ed2c9(0x121)},{'id':_0x2ed2c9(0x142),'label':_0x5a4506(_0x543036,_0x2ed2c9(0xeb)),'prompt':_0x2ed2c9(0x12c)},{'id':_0x2ed2c9(0xea),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x13b)),'prompt':_0x2ed2c9(0xf1)},{'id':_0x2ed2c9(0x102),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x116)),'prompt':_0x2ed2c9(0x128)}]},{'groupId':_0x2ed2c9(0x13e),'groupLabel':_0x5a4506(_0x543036,_0x2ed2c9(0xfa)),'commands':[{'id':_0x2ed2c9(0x141),'label':_0x5a4506(_0x543036,_0x2ed2c9(0xf2)),'prompt':_0x2ed2c9(0xfd)},{'id':_0x2ed2c9(0x137),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x12f)),'prompt':_0x2ed2c9(0xe8)},{'id':_0x2ed2c9(0x129),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x10d)),'prompt':_0x2ed2c9(0x145)},{'id':_0x2ed2c9(0x132),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x111)),'prompt':_0x2ed2c9(0x135)},{'id':_0x2ed2c9(0x14e),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x11d)),'prompt':_0x2ed2c9(0x10e)},{'id':_0x2ed2c9(0x117),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x12b)),'prompt':_0x2ed2c9(0x123)},{'id':_0x2ed2c9(0x10c),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x143)),'prompt':_0x2ed2c9(0x120)},{'id':_0x2ed2c9(0xe7),'label':_0x5a4506(_0x543036,_0x2ed2c9(0x138)),'prompt':_0x2ed2c9(0x112)}]}];}
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)}]}];}